@nice-move/init 0.8.5 → 0.8.7

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 +3 -4
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{createRequire as t}from"module";var e={2407:t=>{t.exports=function(){return/^\s*([^<(]*?)\s*([<(]([^>)]*?)[>)])?\s*([<(]([^>)]*?)[>)])*\s*$/}},1882:(t,e,r)=>{const i=r(7229),s=["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","punycode","querystring","readline","repl","stream","string_decoder","sys","timers","tls","tty","url","util","vm","zlib"],n={freelist:"<6.0.0",v8:">=1.0.0",process:">=1.1.0",inspector:">=8.0.0",async_hooks:">=8.1.0",http2:">=8.4.0",perf_hooks:">=8.5.0",trace_events:">=10.0.0",worker_threads:">=12.0.0","node:test":">=18.0.0"},o={worker_threads:">=10.5.0",wasi:">=12.16.0",diagnostics_channel:"^14.17.0 || >=15.1.0"};t.exports=({version:t=process.version,experimental:e=!1}={})=>{const r=[...s];for(const[e,s]of Object.entries(n))("*"===t||i(t,s))&&r.push(e);if(e)for(const[e,s]of Object.entries(o))r.includes(e)||"*"!==t&&!i(t,s)||r.push(e);return r}},3424:(t,e,r)=>{const i=r(6255);t.exports=(t,e)=>new i(t,e)},6255:(t,e,r)=>{const i=r(6928),s=r(8611),n=r(5692),o=r(1251),a=r(3480),u=r(3106),{URL:l}=r(7016),c=r(2475),h=["gzip","deflate","br"];t.exports=class{constructor(t,e="GET"){return this.url="string"==typeof t?new l(t):t,this.method=e,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(t){return this.maxRedirects=t,this}query(t,e){return"object"==typeof t?Object.keys(t).forEach((e=>{this.url.searchParams.append(e,t[e])})):this.url.searchParams.append(t,e),this}path(t){return this.url.pathname=i.join(this.url.pathname,t),this}body(t,e){return this.sendDataAs="object"!=typeof t||e||Buffer.isBuffer(t)?e?e.toLowerCase():"buffer":"json",this.data="form"===this.sendDataAs?a.stringify(t):"json"===this.sendDataAs?JSON.stringify(t):t,this}header(t,e){return"object"==typeof t?Object.keys(t).forEach((e=>{this.reqHeaders[e.toLowerCase()]=t[e]})):this.reqHeaders[t.toLowerCase()]=e,this}timeout(t){return this.timeoutTime=t,this}option(t,e){return this.coreOptions[t]=e,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(((t,e)=>{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 i;const a=((t,e)=>{let r,i;if(e<=0?(r=s.request,i=n.request):(r=o.http.request,i=o.https.request),"http:"===t)return r;if("https:"===t)return i;throw new Error("Bad URL protocol: "+t)})(this.url.protocol,this.maxRedirects);i=a(r,(r=>{let i,s=r;this.compressionEnabled&&("gzip"===r.headers["content-encoding"]?s=r.pipe(u.createGunzip()):"deflate"===r.headers["content-encoding"]?s=r.pipe(u.createInflate()):"br"===r.headers["content-encoding"]&&(s=r.pipe(u.createBrotliDecompress()))),this.streamEnabled?t(s):(i=new c(r,this.resOptions),s.on("error",(t=>{e(t)})),s.on("aborted",(()=>{e(new Error("Server aborted request"))})),s.on("data",(t=>{i._addChunk(t),null!==this.resOptions.maxBuffer&&i.body.length>this.resOptions.maxBuffer&&(s.destroy(),e("Received a response which was longer than acceptable when buffering. ("+this.body.length+" bytes)"))})),s.on("end",(()=>{t(i)})))})),this.timeoutTime&&i.setTimeout(this.timeoutTime,(()=>{i.abort(),this.streamEnabled||e(new Error("Timeout reached"))})),i.on("error",(t=>{e(t)})),this.data&&i.write(this.data),i.end()}))}}},2475:t=>{t.exports=class{constructor(t,e){this.coreRes=t,this.resOptions=e,this.body=Buffer.alloc(0),this.headers=t.headers,this.statusCode=t.statusCode}_addChunk(t){this.body=Buffer.concat([this.body,t])}async json(){return 204===this.statusCode?null:JSON.parse(this.body)}async text(){return this.body.toString()}}},7661:(t,e,r)=>{const i=Object.assign({},r(3900)),s=Object.keys(i);Object.defineProperty(i,"random",{get(){const t=Math.floor(Math.random()*s.length),e=s[t];return i[e]}}),t.exports=i},9246:(t,e,r)=>{const i=r(6931),s={};for(const t of Object.keys(i))s[i[t]]=t;const n={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"]}};t.exports=n;for(const t of Object.keys(n)){if(!("channels"in n[t]))throw new Error("missing channels property: "+t);if(!("labels"in n[t]))throw new Error("missing channel labels property: "+t);if(n[t].labels.length!==n[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:r}=n[t];delete n[t].channels,delete n[t].labels,Object.defineProperty(n[t],"channels",{value:e}),Object.defineProperty(n[t],"labels",{value:r})}n.rgb.hsl=function(t){const e=t[0]/255,r=t[1]/255,i=t[2]/255,s=Math.min(e,r,i),n=Math.max(e,r,i),o=n-s;let a,u;n===s?a=0:e===n?a=(r-i)/o:r===n?a=2+(i-e)/o:i===n&&(a=4+(e-r)/o),a=Math.min(60*a,360),a<0&&(a+=360);const l=(s+n)/2;return u=n===s?0:l<=.5?o/(n+s):o/(2-n-s),[a,100*u,100*l]},n.rgb.hsv=function(t){let e,r,i,s,n;const o=t[0]/255,a=t[1]/255,u=t[2]/255,l=Math.max(o,a,u),c=l-Math.min(o,a,u),h=function(t){return(l-t)/6/c+.5};return 0===c?(s=0,n=0):(n=c/l,e=h(o),r=h(a),i=h(u),o===l?s=i-r:a===l?s=1/3+e-i:u===l&&(s=2/3+r-e),s<0?s+=1:s>1&&(s-=1)),[360*s,100*n,100*l]},n.rgb.hwb=function(t){const e=t[0],r=t[1];let i=t[2];const s=n.rgb.hsl(t)[0],o=1/255*Math.min(e,Math.min(r,i));return i=1-1/255*Math.max(e,Math.max(r,i)),[s,100*o,100*i]},n.rgb.cmyk=function(t){const e=t[0]/255,r=t[1]/255,i=t[2]/255,s=Math.min(1-e,1-r,1-i);return[100*((1-e-s)/(1-s)||0),100*((1-r-s)/(1-s)||0),100*((1-i-s)/(1-s)||0),100*s]},n.rgb.keyword=function(t){const e=s[t];if(e)return e;let r,n=1/0;for(const e of Object.keys(i)){const s=i[e],u=(a=s,((o=t)[0]-a[0])**2+(o[1]-a[1])**2+(o[2]-a[2])**2);u<n&&(n=u,r=e)}var o,a;return r},n.keyword.rgb=function(t){return i[t]},n.rgb.xyz=function(t){let e=t[0]/255,r=t[1]/255,i=t[2]/255;e=e>.04045?((e+.055)/1.055)**2.4:e/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;return[100*(.4124*e+.3576*r+.1805*i),100*(.2126*e+.7152*r+.0722*i),100*(.0193*e+.1192*r+.9505*i)]},n.rgb.lab=function(t){const e=n.rgb.xyz(t);let r=e[0],i=e[1],s=e[2];r/=95.047,i/=100,s/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;return[116*i-16,500*(r-i),200*(i-s)]},n.hsl.rgb=function(t){const e=t[0]/360,r=t[1]/100,i=t[2]/100;let s,n,o;if(0===r)return o=255*i,[o,o,o];s=i<.5?i*(1+r):i+r-i*r;const a=2*i-s,u=[0,0,0];for(let t=0;t<3;t++)n=e+1/3*-(t-1),n<0&&n++,n>1&&n--,o=6*n<1?a+6*(s-a)*n:2*n<1?s:3*n<2?a+(s-a)*(2/3-n)*6:a,u[t]=255*o;return u},n.hsl.hsv=function(t){const e=t[0];let r=t[1]/100,i=t[2]/100,s=r;const n=Math.max(i,.01);i*=2,r*=i<=1?i:2-i,s*=n<=1?n:2-n;return[e,100*(0===i?2*s/(n+s):2*r/(i+r)),100*((i+r)/2)]},n.hsv.rgb=function(t){const e=t[0]/60,r=t[1]/100;let i=t[2]/100;const s=Math.floor(e)%6,n=e-Math.floor(e),o=255*i*(1-r),a=255*i*(1-r*n),u=255*i*(1-r*(1-n));switch(i*=255,s){case 0:return[i,u,o];case 1:return[a,i,o];case 2:return[o,i,u];case 3:return[o,a,i];case 4:return[u,o,i];case 5:return[i,o,a]}},n.hsv.hsl=function(t){const e=t[0],r=t[1]/100,i=t[2]/100,s=Math.max(i,.01);let n,o;o=(2-r)*i;const a=(2-r)*s;return n=r*s,n/=a<=1?a:2-a,n=n||0,o/=2,[e,100*n,100*o]},n.hwb.rgb=function(t){const e=t[0]/360;let r=t[1]/100,i=t[2]/100;const s=r+i;let n;s>1&&(r/=s,i/=s);const o=Math.floor(6*e),a=1-i;n=6*e-o,1&o&&(n=1-n);const u=r+n*(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]},n.cmyk.rgb=function(t){const e=t[0]/100,r=t[1]/100,i=t[2]/100,s=t[3]/100;return[255*(1-Math.min(1,e*(1-s)+s)),255*(1-Math.min(1,r*(1-s)+s)),255*(1-Math.min(1,i*(1-s)+s))]},n.xyz.rgb=function(t){const e=t[0]/100,r=t[1]/100,i=t[2]/100;let s,n,o;return s=3.2406*e+-1.5372*r+-.4986*i,n=-.9689*e+1.8758*r+.0415*i,o=.0557*e+-.204*r+1.057*i,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,n=n>.0031308?1.055*n**(1/2.4)-.055:12.92*n,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=Math.min(Math.max(0,s),1),n=Math.min(Math.max(0,n),1),o=Math.min(Math.max(0,o),1),[255*s,255*n,255*o]},n.xyz.lab=function(t){let e=t[0],r=t[1],i=t[2];e/=95.047,r/=100,i/=108.883,e=e>.008856?e**(1/3):7.787*e+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*r-16,500*(e-r),200*(r-i)]},n.lab.xyz=function(t){let e,r,i;r=(t[0]+16)/116,e=t[1]/500+r,i=r-t[2]/200;const s=r**3,n=e**3,o=i**3;return r=s>.008856?s:(r-16/116)/7.787,e=n>.008856?n:(e-16/116)/7.787,i=o>.008856?o:(i-16/116)/7.787,e*=95.047,r*=100,i*=108.883,[e,r,i]},n.lab.lch=function(t){const e=t[0],r=t[1],i=t[2];let s;s=360*Math.atan2(i,r)/2/Math.PI,s<0&&(s+=360);return[e,Math.sqrt(r*r+i*i),s]},n.lch.lab=function(t){const e=t[0],r=t[1],i=t[2]/360*2*Math.PI;return[e,r*Math.cos(i),r*Math.sin(i)]},n.rgb.ansi16=function(t,e=null){const[r,i,s]=t;let o=null===e?n.rgb.hsv(t)[2]:e;if(o=Math.round(o/50),0===o)return 30;let a=30+(Math.round(s/255)<<2|Math.round(i/255)<<1|Math.round(r/255));return 2===o&&(a+=60),a},n.hsv.ansi16=function(t){return n.rgb.ansi16(n.hsv.rgb(t),t[2])},n.rgb.ansi256=function(t){const e=t[0],r=t[1],i=t[2];if(e===r&&r===i)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;return 16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)},n.ansi16.rgb=function(t){let e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];const r=.5*(1+~~(t>50));return[(1&e)*r*255,(e>>1&1)*r*255,(e>>2&1)*r*255]},n.ansi256.rgb=function(t){if(t>=232){const e=10*(t-232)+8;return[e,e,e]}let e;t-=16;return[Math.floor(t/36)/5*255,Math.floor((e=t%36)/6)/5*255,e%6/5*255]},n.rgb.hex=function(t){const e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},n.hex.rgb=function(t){const e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];let r=e[0];3===e[0].length&&(r=r.split("").map((t=>t+t)).join(""));const i=parseInt(r,16);return[i>>16&255,i>>8&255,255&i]},n.rgb.hcg=function(t){const e=t[0]/255,r=t[1]/255,i=t[2]/255,s=Math.max(Math.max(e,r),i),n=Math.min(Math.min(e,r),i),o=s-n;let a,u;return a=o<1?n/(1-o):0,u=o<=0?0:s===e?(r-i)/o%6:s===r?2+(i-e)/o:4+(e-r)/o,u/=6,u%=1,[360*u,100*o,100*a]},n.hsl.hcg=function(t){const e=t[1]/100,r=t[2]/100,i=r<.5?2*e*r:2*e*(1-r);let s=0;return i<1&&(s=(r-.5*i)/(1-i)),[t[0],100*i,100*s]},n.hsv.hcg=function(t){const e=t[1]/100,r=t[2]/100,i=e*r;let s=0;return i<1&&(s=(r-i)/(1-i)),[t[0],100*i,100*s]},n.hcg.rgb=function(t){const e=t[0]/360,r=t[1]/100,i=t[2]/100;if(0===r)return[255*i,255*i,255*i];const s=[0,0,0],n=e%1*6,o=n%1,a=1-o;let u=0;switch(Math.floor(n)){case 0:s[0]=1,s[1]=o,s[2]=0;break;case 1:s[0]=a,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=o;break;case 3:s[0]=0,s[1]=a,s[2]=1;break;case 4:s[0]=o,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=a}return u=(1-r)*i,[255*(r*s[0]+u),255*(r*s[1]+u),255*(r*s[2]+u)]},n.hcg.hsv=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);let i=0;return r>0&&(i=e/r),[t[0],100*i,100*r]},n.hcg.hsl=function(t){const e=t[1]/100,r=t[2]/100*(1-e)+.5*e;let i=0;return r>0&&r<.5?i=e/(2*r):r>=.5&&r<1&&(i=e/(2*(1-r))),[t[0],100*i,100*r]},n.hcg.hwb=function(t){const e=t[1]/100,r=e+t[2]/100*(1-e);return[t[0],100*(r-e),100*(1-r)]},n.hwb.hcg=function(t){const e=t[1]/100,r=1-t[2]/100,i=r-e;let s=0;return i<1&&(s=(r-i)/(1-i)),[t[0],100*i,100*s]},n.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},n.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},n.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},n.gray.hsl=function(t){return[0,0,t[0]]},n.gray.hsv=n.gray.hsl,n.gray.hwb=function(t){return[0,100,t[0]]},n.gray.cmyk=function(t){return[0,0,0,t[0]]},n.gray.lab=function(t){return[t[0],0,0]},n.gray.hex=function(t){const e=255&Math.round(t[0]/100*255),r=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(r.length)+r},n.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}},9047:(t,e,r)=>{const i=r(9246),s=r(802),n={};Object.keys(i).forEach((t=>{n[t]={},Object.defineProperty(n[t],"channels",{value:i[t].channels}),Object.defineProperty(n[t],"labels",{value:i[t].labels});const e=s(t);Object.keys(e).forEach((r=>{const i=e[r];n[t][r]=function(t){const e=function(...e){const r=e[0];if(null==r)return r;r.length>1&&(e=r);const i=t(e);if("object"==typeof i)for(let t=i.length,e=0;e<t;e++)i[e]=Math.round(i[e]);return i};return"conversion"in t&&(e.conversion=t.conversion),e}(i),n[t][r].raw=function(t){const e=function(...e){const r=e[0];return null==r?r:(r.length>1&&(e=r),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(i)}))})),t.exports=n},802:(t,e,r)=>{const i=r(9246);function s(t){const e=function(){const t={},e=Object.keys(i);for(let r=e.length,i=0;i<r;i++)t[e[i]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;){const t=r.pop(),s=Object.keys(i[t]);for(let i=s.length,n=0;n<i;n++){const i=s[n],o=e[i];-1===o.distance&&(o.distance=e[t].distance+1,o.parent=t,r.unshift(i))}}return e}function n(t,e){return function(r){return e(t(r))}}function o(t,e){const r=[e[t].parent,t];let s=i[e[t].parent][t],o=e[t].parent;for(;e[o].parent;)r.unshift(e[o].parent),s=n(i[e[o].parent][o],s),o=e[o].parent;return s.conversion=r,s}t.exports=function(t){const e=s(t),r={},i=Object.keys(e);for(let t=i.length,s=0;s<t;s++){const t=i[s];null!==e[t].parent&&(r[t]=o(t,e))}return r}},6931:t=>{t.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]}},1092:(t,e,r)=>{const i=r(5317),s=r(8147),n=r(995);function o(t,e,r){const o=s(t,e,r),a=i.spawn(o.command,o.args,o.options);return n.hookChildProcess(a,o),a}t.exports=o,t.exports.spawn=o,t.exports.sync=function(t,e,r){const o=s(t,e,r),a=i.spawnSync(o.command,o.args,o.options);return a.error=a.error||n.verifyENOENTSync(a.status,o),a},t.exports._parse=s,t.exports._enoent=n},995:t=>{const e="win32"===process.platform;function r(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}function i(t,i){return e&&1===t&&!i.file?r(i.original,"spawn"):null}t.exports={hookChildProcess:function(t,r){if(!e)return;const s=t.emit;t.emit=function(e,n){if("exit"===e){const e=i(n,r);if(e)return s.call(t,"error",e)}return s.apply(t,arguments)}},verifyENOENT:i,verifyENOENTSync:function(t,i){return e&&1===t&&!i.file?r(i.original,"spawnSync"):null},notFoundError:r}},8147:(t,e,r)=>{const i=r(6928),s=r(4080),n=r(78),o=r(4489),a="win32"===process.platform,u=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function c(t){if(!a)return t;const e=function(t){t.file=s(t);const e=t.file&&o(t.file);return e?(t.args.unshift(t.file),t.command=e,s(t)):t.file}(t),r=!u.test(e);if(t.options.forceShell||r){const r=l.test(e);t.command=i.normalize(t.command),t.command=n.command(t.command),t.args=t.args.map((t=>n.argument(t,r)));const s=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${s}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}t.exports=function(t,e,r){e&&!Array.isArray(e)&&(r=e,e=null);const i={command:t,args:e=e?e.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:t,args:e}};return r.shell?i:c(i)}},78:t=>{const e=/([()\][%!^"`<>&|;, *?])/g;t.exports.command=function(t){return t=t.replace(e,"^$1")},t.exports.argument=function(t,r){return t=(t=`"${t=(t=(t=`${t}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(e,"^$1"),r&&(t=t.replace(e,"^$1")),t}},4489:(t,e,r)=>{const i=r(9896),s=r(230);t.exports=function(t){const e=Buffer.alloc(150);let r;try{r=i.openSync(t,"r"),i.readSync(r,e,0,150,0),i.closeSync(r)}catch(t){}return s(e.toString())}},4080:(t,e,r)=>{const i=r(6928),s=r(4644),n=r(8139);function o(t,e){const r=t.options.env||process.env,o=process.cwd(),a=null!=t.options.cwd,u=a&&void 0!==process.chdir&&!process.chdir.disabled;if(u)try{process.chdir(t.options.cwd)}catch(t){}let l;try{l=s.sync(t.command,{path:r[n({env:r})],pathExt:e?i.delimiter:void 0})}catch(t){}finally{u&&process.chdir(o)}return l&&(l=i.resolve(a?t.options.cwd:"",l)),l}t.exports=function(t){return o(t)||o(t,!0)}},4644:(t,e,r)=>{const i="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,s=r(6928),n=i?";":":",o=r(9882),a=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),u=(t,e)=>{const r=e.colon||n,s=t.match(/\//)||i&&t.match(/\\/)?[""]:[...i?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(r)],o=i?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=i?o.split(r):[""];return i&&-1!==t.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:s,pathExt:a,pathExtExe:o}},l=(t,e,r)=>{"function"==typeof e&&(r=e,e={}),e||(e={});const{pathEnv:i,pathExt:n,pathExtExe:l}=u(t,e),c=[],h=r=>new Promise(((n,o)=>{if(r===i.length)return e.all&&c.length?n(c):o(a(t));const u=i[r],l=/^".*"$/.test(u)?u.slice(1,-1):u,h=s.join(l,t),p=!l&&/^\.[\\\/]/.test(t)?t.slice(0,2)+h:h;n(d(p,r,0))})),d=(t,r,i)=>new Promise(((s,a)=>{if(i===n.length)return s(h(r+1));const u=n[i];o(t+u,{pathExt:l},((n,o)=>{if(!n&&o){if(!e.all)return s(t+u);c.push(t+u)}return s(d(t,r,i+1))}))}));return r?h(0).then((t=>r(null,t)),r):h(0)};t.exports=l,l.sync=(t,e)=>{e=e||{};const{pathEnv:r,pathExt:i,pathExtExe:n}=u(t,e),l=[];for(let a=0;a<r.length;a++){const u=r[a],c=/^".*"$/.test(u)?u.slice(1,-1):u,h=s.join(c,t),d=!c&&/^\.[\\\/]/.test(t)?t.slice(0,2)+h:h;for(let t=0;t<i.length;t++){const r=d+i[t];try{if(o.sync(r,{pathExt:n})){if(!e.all)return r;l.push(r)}}catch(t){}}}if(e.all&&l.length)return l;if(e.nothrow)return null;throw a(t)}},8437:t=>{var e=1e3,r=60*e,i=60*r,s=24*i,n=7*s,o=365.25*s;function a(t,e,r,i){var s=e>=1.5*r;return Math.round(t/r)+" "+i+(s?"s":"")}t.exports=function(t,u){u=u||{};var l=typeof t;if("string"===l&&t.length>0)return function(t){if((t=String(t)).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(t);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*n;case"days":case"day":case"d":return u*s;case"hours":case"hour":case"hrs":case"hr":case"h":return u*i;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*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return}}(t);if("number"===l&&isFinite(t))return u.long?function(t){var n=Math.abs(t);if(n>=s)return a(t,n,s,"day");if(n>=i)return a(t,n,i,"hour");if(n>=r)return a(t,n,r,"minute");if(n>=e)return a(t,n,e,"second");return t+" ms"}(t):function(t){var n=Math.abs(t);if(n>=s)return Math.round(t/s)+"d";if(n>=i)return Math.round(t/i)+"h";if(n>=r)return Math.round(t/r)+"m";if(n>=e)return Math.round(t/e)+"s";return t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},124:(t,e,r)=>{e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;e.splice(1,0,r,"color: inherit");let i=0,s=0;e[0].replace(/%[a-zA-Z%]/g,(t=>{"%%"!==t&&(i++,"%c"===t&&(s=i))})),e.splice(s,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG);return t},e.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;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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!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`."))}})(),e.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"],e.log=console.debug||console.log||(()=>{}),t.exports=r(7891)(e);const{formatters:i}=t.exports;i.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},7891:(t,e,r)=>{t.exports=function(t){function e(t){let r,s,n,o=null;function a(...t){if(!a.enabled)return;const i=a,s=Number(new Date),n=s-(r||s);i.diff=n,i.prev=r,i.curr=s,r=s,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let o=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,((r,s)=>{if("%%"===r)return"%";o++;const n=e.formatters[s];if("function"==typeof n){const e=t[o];r=n.call(i,e),t.splice(o,1),o--}return r})),e.formatArgs.call(i,t);(i.log||e.log).apply(i,t)}return a.namespace=t,a.useColors=e.useColors(),a.color=e.selectColor(t),a.extend=i,a.destroy=e.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(s!==e.namespaces&&(s=e.namespaces,n=e.enabled(t)),n),set:t=>{o=t}}),"function"==typeof e.init&&e.init(a),a}function i(t,r){const i=e(this.namespace+(void 0===r?":":r)+t);return i.log=this.log,i}function s(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return e.debug=e,e.default=e,e.coerce=function(t){if(t instanceof Error)return t.stack||t.message;return t},e.disable=function(){const t=[...e.names.map(s),...e.skips.map(s).map((t=>"-"+t))].join(",");return e.enable(""),t},e.enable=function(t){let r;e.save(t),e.namespaces=t,e.names=[],e.skips=[];const i=("string"==typeof t?t:"").split(/[\s,]+/),s=i.length;for(r=0;r<s;r++)i[r]&&("-"===(t=i[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.slice(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;let r,i;for(r=0,i=e.skips.length;r<i;r++)if(e.skips[r].test(t))return!1;for(r=0,i=e.names.length;r<i;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=r(8437),e.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(t).forEach((r=>{e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},3680:(t,e,r)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?t.exports=r(124):t.exports=r(5038)},5038:(t,e,r)=>{const i=r(2018),s=r(9023);e.init=function(t){t.inspectOpts={};const r=Object.keys(e.inspectOpts);for(let i=0;i<r.length;i++)t.inspectOpts[r[i]]=e.inspectOpts[r[i]]},e.log=function(...t){return process.stderr.write(s.format(...t)+"\n")},e.formatArgs=function(r){const{namespace:i,useColors:s}=this;if(s){const e=this.color,s="\x1b[3"+(e<8?e:"8;5;"+e),n=` ${s};1m${i} \x1b[0m`;r[0]=n+r[0].split("\n").join("\n"+n),r.push(s+"m+"+t.exports.humanize(this.diff)+"\x1b[0m")}else r[0]=function(){if(e.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+i+" "+r[0]},e.save=function(t){t?process.env.DEBUG=t:delete process.env.DEBUG},e.load=function(){return process.env.DEBUG},e.useColors=function(){return"colors"in e.inspectOpts?Boolean(e.inspectOpts.colors):i.isatty(process.stderr.fd)},e.destroy=s.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{const t=r(5600);t&&(t.stderr||t).level>=2&&(e.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(t){}e.inspectOpts=Object.keys(process.env).filter((t=>/^debug_/i.test(t))).reduce(((t,e)=>{const r=e.substring(6).toLowerCase().replace(/_([a-z])/g,((t,e)=>e.toUpperCase()));let i=process.env[e];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),t[r]=i,t}),{}),t.exports=r(7891)(e);const{formatters:n}=t.exports;n.o=function(t){return this.inspectOpts.colors=this.useColors,s.inspect(t,this.inspectOpts).split("\n").map((t=>t.trim())).join(" ")},n.O=function(t){return this.inspectOpts.colors=this.useColors,s.inspect(t,this.inspectOpts)}},2743:t=>{var e=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===r}(t)}(t)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(t,e){return!1!==e.clone&&e.isMergeableObject(t)?u((r=t,Array.isArray(r)?[]:{}),t,e):t;var r}function s(t,e,r){return t.concat(e).map((function(t){return i(t,r)}))}function n(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function o(t,e){try{return e in t}catch(t){return!1}}function a(t,e,r){var s={};return r.isMergeableObject(t)&&n(t).forEach((function(e){s[e]=i(t[e],r)})),n(e).forEach((function(n){(function(t,e){return o(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,n)||(o(t,n)&&r.isMergeableObject(e[n])?s[n]=function(t,e){if(!e.customMerge)return u;var r=e.customMerge(t);return"function"==typeof r?r:u}(n,r)(t[n],e[n],r):s[n]=i(e[n],r))})),s}function u(t,r,n){(n=n||{}).arrayMerge=n.arrayMerge||s,n.isMergeableObject=n.isMergeableObject||e,n.cloneUnlessOtherwiseSpecified=i;var o=Array.isArray(r);return o===Array.isArray(t)?o?n.arrayMerge(t,r,n):a(t,r,n):i(r,n)}u.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return u(t,r,e)}),{})};var l=u;t.exports=l},9836:(t,e,r)=>{var i;t.exports=function(){if(!i){try{i=r(3680)("follow-redirects")}catch(t){}"function"!=typeof i&&(i=function(){})}i.apply(null,arguments)}},1251:(t,e,r)=>{var i=r(7016),s=i.URL,n=r(8611),o=r(5692),a=r(2203).Writable,u=r(2613),l=r(9836),c=!1;try{u(new s)}catch(t){c="ERR_INVALID_URL"===t.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(t){p[t]=function(e,r,i){this._redirectable.emit(t,e,r,i)}}));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),D=O("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),y=O("ERR_STREAM_WRITE_AFTER_END","write after end"),v=a.prototype.destroy||E;function b(t,e){a.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(t){try{r._processResponse(t)}catch(t){r.emit("error",t instanceof m?t:new m({cause:t}))}},this._performRequest()}function w(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach((function(i){var n=i+":",o=r[n]=t[i],a=e[i]=Object.create(o);Object.defineProperties(a,{request:{value:function(t,i,o){var a;return a=t,s&&a instanceof s?t=x(t):A(t)?t=x(F(t)):(o=i,i=C(t),t={protocol:n}),T(i)&&(o=i,i=null),(i=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},t,i)).nativeProtocols=r,A(i.host)||A(i.hostname)||(i.hostname="::1"),u.equal(i.protocol,n,"protocol mismatch"),l("options",i),new b(i,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(t,e,r){var i=a.request(t,e,r);return i.end(),i},configurable:!0,enumerable:!0,writable:!0}})})),e}function E(){}function F(t){var e;if(c)e=new s(t);else if(!A((e=C(i.parse(t))).protocol))throw new f({input:t});return e}function C(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new f({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new f({input:t.href||t});return t}function x(t,e){var r=e||{};for(var i of h)r[i]=t[i];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 _(t,e){var r;for(var i in e)t.test(i)&&(r=e[i],delete e[i]);return null==r?void 0:String(r).trim()}function O(t,e,r){function i(r){Error.captureStackTrace(this,this.constructor),Object.assign(this,r||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return i.prototype=new(r||Error),Object.defineProperties(i.prototype,{constructor:{value:i,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),i}function S(t,e){for(var r of d)t.removeListener(r,p[r]);t.on("error",E),t.destroy(e)}function A(t){return"string"==typeof t||t instanceof String}function T(t){return"function"==typeof t}b.prototype=Object.create(a.prototype),b.prototype.abort=function(){S(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},b.prototype.destroy=function(t){return S(this._currentRequest,t),v.call(this,t),this},b.prototype.write=function(t,e,r){if(this._ending)throw new y;if(!A(t)&&("object"!=typeof(i=t)||!("length"in i)))throw new TypeError("data should be a string, Buffer or Uint8Array");var i;T(e)&&(r=e,e=null),0!==t.length?this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new D),this.abort()):r&&r()},b.prototype.end=function(t,e,r){if(T(t)?(r=t,t=e=null):T(e)&&(r=e,e=null),t){var i=this,s=this._currentRequest;this.write(t,e,(function(){i._ended=!0,s.end(null,null,r)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,r)},b.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)},b.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)},b.prototype.setTimeout=function(t,e){var r=this;function i(e){e.setTimeout(t),e.removeListener("timeout",e.destroy),e.addListener("timeout",e.destroy)}function s(e){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout((function(){r.emit("timeout"),n()}),t),i(e)}function n(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",n),r.removeListener("error",n),r.removeListener("response",n),r.removeListener("close",n),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",s)}return e&&this.on("timeout",e),this.socket?s(this.socket):this._currentRequest.once("socket",s),this.on("socket",i),this.on("abort",n),this.on("error",n),this.on("response",n),this.on("close",n),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(t){b.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}})),["aborted","connection","socket"].forEach((function(t){Object.defineProperty(b.prototype,t,{get:function(){return this._currentRequest[t]}})})),b.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}},b.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var s=this._currentRequest=e.request(this._options,this._onNativeResponse);for(var n of(s._redirectable=this,d))s.on(n,p[n]);if(this._currentUrl=/^\//.test(this._options.path)?i.format(this._options):this._options.path,this._isRedirect){var o=0,a=this,u=this._requestBodyBuffers;!function t(e){if(s===a._currentRequest)if(e)a.emit("error",e);else if(o<u.length){var r=u[o++];s.finished||s.write(r.data,r.encoding,t)}else a._ended&&s.end()}()}},b.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r,n=t.headers.location;if(!n||!1===this._options.followRedirects||e<300||e>=400)return t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),void(this._requestBodyBuffers=[]);if(S(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new g;var o=this._options.beforeRedirect;o&&(r=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var a=this._options.method;((301===e||302===e)&&"POST"===this._options.method||303===e&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],_(/^content-/i,this._options.headers));var h,d,p=_(/^host$/i,this._options.headers),f=F(this._currentUrl),m=p||f.host,D=/^\w+:/.test(n)?this._currentUrl:i.format(Object.assign(f,{host:m})),y=(h=n,d=D,c?new s(h,d):F(i.resolve(d,h)));if(l("redirecting to",y.href),this._isRedirect=!0,x(y,this._options),(y.protocol!==f.protocol&&"https:"!==y.protocol||y.host!==m&&!function(t,e){u(A(t)&&A(e));var r=t.length-e.length-1;return r>0&&"."===t[r]&&t.endsWith(e)}(y.host,m))&&_(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),T(o)){var v={headers:t.headers,statusCode:e},b={url:D,method:a,headers:r};o(this._options,v,b),this._sanitizeOptions(this._options)}this._performRequest()},t.exports=w({http:n,https:o}),t.exports.wrap=w},155:(t,e,r)=>{t=r.nmd(t);const i=(t,e)=>(...r)=>`\x1b[${t(...r)+e}m`,s=(t,e)=>(...r)=>{const i=t(...r);return`\x1b[${38+e};5;${i}m`},n=(t,e)=>(...r)=>{const i=t(...r);return`\x1b[${38+e};2;${i[0]};${i[1]};${i[2]}m`},o=t=>t,a=(t,e,r)=>[t,e,r],u=(t,e,r)=>{Object.defineProperty(t,e,{get:()=>{const i=r();return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0}),i},enumerable:!0,configurable:!0})};let l;const c=(t,e,i,s)=>{void 0===l&&(l=r(9047));const n=s?10:0,o={};for(const[r,s]of Object.entries(l)){const a="ansi16"===r?"ansi":r;r===e?o[a]=t(i,n):"object"==typeof s&&(o[a]=t(s[e],n))}return o};Object.defineProperty(t,"exports",{enumerable:!0,get:function(){const t=new Map,e={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]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(const[r,i]of Object.entries(e)){for(const[r,s]of Object.entries(i))e[r]={open:`\x1b[${s[0]}m`,close:`\x1b[${s[1]}m`},i[r]=e[r],t.set(s[0],s[1]);Object.defineProperty(e,r,{value:i,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1b[39m",e.bgColor.close="\x1b[49m",u(e.color,"ansi",(()=>c(i,"ansi16",o,!1))),u(e.color,"ansi256",(()=>c(s,"ansi256",o,!1))),u(e.color,"ansi16m",(()=>c(n,"rgb",a,!1))),u(e.bgColor,"ansi",(()=>c(i,"ansi16",o,!0))),u(e.bgColor,"ansi256",(()=>c(s,"ansi256",o,!0))),u(e.bgColor,"ansi16m",(()=>c(n,"rgb",a,!0))),e}})},5992:(t,e,r)=>{const i=r(155),{stdout:s,stderr:n}=r(8511),{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:a}=r(9778),{isArray:u}=Array,l=["ansi","ansi","ansi256","ansi16m"],c=Object.create(null);class h{constructor(t){return d(t)}}const d=t=>{const e={};return((t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=s?s.level:0;t.level=void 0===e.level?r:e.level})(e,t),e.template=(...t)=>b(e.template,...t),Object.setPrototypeOf(e,p.prototype),Object.setPrototypeOf(e.template,e),e.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},e.template.Instance=h,e.template};function p(t){return d(t)}for(const[t,e]of Object.entries(i))c[t]={get(){const r=D(this,g(e.open,e.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:r}),r}};c.visible={get(){const t=D(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:t}),t}};const f=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of f)c[t]={get(){const{level:e}=this;return function(...r){const s=g(i.color[l[e]][t](...r),i.color.close,this._styler);return D(this,s,this._isEmpty)}}};for(const t of f){c["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const{level:e}=this;return function(...r){const s=g(i.bgColor[l[e]][t](...r),i.bgColor.close,this._styler);return D(this,s,this._isEmpty)}}}}const m=Object.defineProperties((()=>{}),{...c,level:{enumerable:!0,get(){return this._generator.level},set(t){this._generator.level=t}}}),g=(t,e,r)=>{let i,s;return void 0===r?(i=t,s=e):(i=r.openAll+t,s=e+r.closeAll),{open:t,close:e,openAll:i,closeAll:s,parent:r}},D=(t,e,r)=>{const i=(...t)=>u(t[0])&&u(t[0].raw)?y(i,b(i,...t)):y(i,1===t.length?""+t[0]:t.join(" "));return Object.setPrototypeOf(i,m),i._generator=t,i._styler=e,i._isEmpty=r,i},y=(t,e)=>{if(t.level<=0||!e)return t._isEmpty?"":e;let r=t._styler;if(void 0===r)return e;const{openAll:i,closeAll:s}=r;if(-1!==e.indexOf("\x1b"))for(;void 0!==r;)e=o(e,r.close,r.open),r=r.parent;const n=e.indexOf("\n");return-1!==n&&(e=a(e,s,i,n)),i+e+s};let v;const b=(t,...e)=>{const[i]=e;if(!u(i)||!u(i.raw))return e.join(" ");const s=e.slice(1),n=[i.raw[0]];for(let t=1;t<i.length;t++)n.push(String(s[t-1]).replace(/[{}\\]/g,"\\$&"),String(i.raw[t]));return void 0===v&&(v=r(8551)),v(t,n.join(""))};Object.defineProperties(p.prototype,c);const w=p();w.supportsColor=s,w.stderr=p({level:n?n.level:0}),w.stderr.supportsColor=n,t.exports=w},8551:t=>{const e=/(?:\\(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,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,s=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,n=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1b"],["a","\x07"]]);function o(t){const e="u"===t[0],r="{"===t[1];return e&&!r&&5===t.length||"x"===t[0]&&3===t.length?String.fromCharCode(parseInt(t.slice(1),16)):e&&r?String.fromCodePoint(parseInt(t.slice(2,-1),16)):n.get(t)||t}function a(t,e){const r=[],n=e.trim().split(/\s*,\s*/g);let a;for(const e of n){const n=Number(e);if(Number.isNaN(n)){if(!(a=e.match(i)))throw new Error(`Invalid Chalk template style argument: ${e} (in style '${t}')`);r.push(a[2].replace(s,((t,e,r)=>e?o(e):r)))}else r.push(n)}return r}function u(t){r.lastIndex=0;const e=[];let i;for(;null!==(i=r.exec(t));){const t=i[1];if(i[2]){const r=a(t,i[2]);e.push([t].concat(r))}else e.push([t])}return e}function l(t,e){const r={};for(const t of e)for(const e of t.styles)r[e[0]]=t.inverse?null:e.slice(1);let i=t;for(const[t,e]of Object.entries(r))if(Array.isArray(e)){if(!(t in i))throw new Error(`Unknown Chalk style: ${t}`);i=e.length>0?i[t](...e):i[t]}return i}t.exports=(t,r)=>{const i=[],s=[];let n=[];if(r.replace(e,((e,r,a,c,h,d)=>{if(r)n.push(o(r));else if(c){const e=n.join("");n=[],s.push(0===i.length?e:l(t,i)(e)),i.push({inverse:a,styles:u(c)})}else if(h){if(0===i.length)throw new Error("Found extraneous } in Chalk template literal");s.push(l(t,i)(n.join(""))),n=[],i.pop()}else n.push(d)})),s.push(n.join("")),i.length>0){const t=`Chalk template literal is missing ${i.length} closing bracket${1===i.length?"":"s"} (\`}\`)`;throw new Error(t)}return s.join("")}},9778:t=>{t.exports={stringReplaceAll:(t,e,r)=>{let i=t.indexOf(e);if(-1===i)return t;const s=e.length;let n=0,o="";do{o+=t.substr(n,i-n)+e+r,n=i+s,i=t.indexOf(e,n)}while(-1!==i);return o+=t.substr(n),o},stringEncaseCRLFWithFirstIndex:(t,e,r,i)=>{let s=0,n="";do{const o="\r"===t[i-1];n+=t.substr(s,(o?i-1:i)-s)+e+(o?"\r\n":"\n")+r,s=i+1,i=t.indexOf("\n",s)}while(-1!==i);return n+=t.substr(s),n}}},8511:(t,e,r)=>{const i=r(857),s=r(2018),n=r(6071),{env:o}=process;let a;function u(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function l(t,e){if(0===a)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(t&&!e&&void 0===a)return 0;const r=a||0;if("dumb"===o.TERM)return r;if("win32"===process.platform){const t=i.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in o)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((t=>t 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 t=parseInt((o.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(o.TERM_PROGRAM){case"iTerm.app":return t>=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}n("no-color")||n("no-colors")||n("color=false")||n("color=never")?a=0:(n("color")||n("colors")||n("color=true")||n("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)),t.exports={supportsColor:function(t){return u(l(t,t&&t.isTTY))},stdout:u(l(!0,s.isatty(1))),stderr:u(l(!0,s.isatty(2)))}},8897:(t,e,r)=>{const i=r(8998),s=r(6928),n=r(4135).mkdirsSync,o=r(5372).utimesMillisSync,a=r(5853);function u(t,e,r,n){const o=(n.dereference?i.statSync:i.lstatSync)(e);if(o.isDirectory())return function(t,e,r,s,n){return e?h(r,s,n):function(t,e,r,s){return i.mkdirSync(r),h(e,r,s),c(r,t)}(t.mode,r,s,n)}(o,t,e,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return function(t,e,r,s,n){return e?function(t,e,r,s){if(s.overwrite)return i.unlinkSync(r),l(t,e,r,s);if(s.errorOnExist)throw new Error(`'${r}' already exists`)}(t,r,s,n):l(t,r,s,n)}(o,t,e,r,n);if(o.isSymbolicLink())return function(t,e,r,n){let o=i.readlinkSync(e);n.dereference&&(o=s.resolve(process.cwd(),o));if(t){let t;try{t=i.readlinkSync(r)}catch(t){if("EINVAL"===t.code||"UNKNOWN"===t.code)return i.symlinkSync(o,r);throw t}if(n.dereference&&(t=s.resolve(process.cwd(),t)),a.isSrcSubdir(o,t))throw new Error(`Cannot copy '${o}' to a subdirectory of itself, '${t}'.`);if(a.isSrcSubdir(t,o))throw new Error(`Cannot overwrite '${t}' with '${o}'.`);return function(t,e){return i.unlinkSync(e),i.symlinkSync(t,e)}(o,r)}return i.symlinkSync(o,r)}(t,e,r,n);if(o.isSocket())throw new Error(`Cannot copy a socket file: ${e}`);if(o.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${e}`);throw new Error(`Unknown file: ${e}`)}function l(t,e,r,s){return i.copyFileSync(e,r),s.preserveTimestamps&&function(t,e,r){(function(t){return!(128&t)})(t)&&function(t,e){c(t,128|e)}(r,t);(function(t,e){const r=i.statSync(t);o(e,r.atime,r.mtime)})(e,r)}(t.mode,e,r),c(r,t.mode)}function c(t,e){return i.chmodSync(t,e)}function h(t,e,r){i.readdirSync(t).forEach((i=>function(t,e,r,i){const n=s.join(e,t),o=s.join(r,t);if(i.filter&&!i.filter(n,o))return;const{destStat:l}=a.checkPathsSync(n,o,"copy",i);return u(l,n,o,i)}(i,t,e,r)))}t.exports=function(t,e,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(t,e,"copy",r);if(a.checkParentPathsSync(t,o,e,"copy"),r.filter&&!r.filter(t,e))return;const c=s.dirname(e);return i.existsSync(c)||n(c),u(l,t,e,r)}},481:(t,e,r)=>{const i=r(1012),s=r(6928),{mkdirs:n}=r(4135),{pathExists:o}=r(2151),{utimesMillis:a}=r(5372),u=r(5853);async function l(t,e,r){return!r.filter||r.filter(t,e)}async function c(t,e,r,n){const o=n.dereference?i.stat:i.lstat,a=await o(e);if(a.isDirectory())return async function(t,e,r,n,o){e||await i.mkdir(n);const a=await i.readdir(r);await Promise.all(a.map((async t=>{const e=s.join(r,t),i=s.join(n,t);if(!await l(e,i,o))return;const{destStat:a}=await u.checkPaths(e,i,"copy",o);return c(a,e,i,o)}))),e||await i.chmod(n,t.mode)}(a,t,e,r,n);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return async function(t,e,r,s,n){if(!e)return h(t,r,s,n);if(n.overwrite)return await i.unlink(s),h(t,r,s,n);if(n.errorOnExist)throw new Error(`'${s}' already exists`)}(a,t,e,r,n);if(a.isSymbolicLink())return async function(t,e,r,n){let o=await i.readlink(e);n.dereference&&(o=s.resolve(process.cwd(),o));if(!t)return i.symlink(o,r);let a=null;try{a=await i.readlink(r)}catch(t){if("EINVAL"===t.code||"UNKNOWN"===t.code)return i.symlink(o,r);throw t}n.dereference&&(a=s.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 i.unlink(r),i.symlink(o,r)}(t,e,r,n);if(a.isSocket())throw new Error(`Cannot copy a socket file: ${e}`);if(a.isFIFO())throw new Error(`Cannot copy a FIFO pipe: ${e}`);throw new Error(`Unknown file: ${e}`)}async function h(t,e,r,s){if(await i.copyFile(e,r),s.preserveTimestamps){128&t.mode||await function(t,e){return i.chmod(t,128|e)}(r,t.mode);const s=await i.stat(e);await a(r,s.atime,s.mtime)}return i.chmod(r,t.mode)}t.exports=async function(t,e,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:i,destStat:a}=await u.checkPaths(t,e,"copy",r);if(await u.checkParentPaths(t,i,e,"copy"),!await l(t,e,r))return;const h=s.dirname(e);await o(h)||await n(h),await c(a,t,e,r)}},1254:(t,e,r)=>{const i=r(7111).fromPromise;t.exports={copy:i(r(481)),copySync:r(8897)}},2432:(t,e,r)=>{const i=r(7111).fromPromise,s=r(1012),n=r(6928),o=r(4135),a=r(3),u=i((async function(t){let e;try{e=await s.readdir(t)}catch{return o.mkdirs(t)}return Promise.all(e.map((e=>a.remove(n.join(t,e)))))}));function l(t){let e;try{e=s.readdirSync(t)}catch{return o.mkdirsSync(t)}e.forEach((e=>{e=n.join(t,e),a.removeSync(e)}))}t.exports={emptyDirSync:l,emptydirSync:l,emptyDir:u,emptydir:u}},2443:(t,e,r)=>{const i=r(7111).fromPromise,s=r(6928),n=r(1012),o=r(4135);t.exports={createFile:i((async function(t){let e;try{e=await n.stat(t)}catch{}if(e&&e.isFile())return;const r=s.dirname(t);let i=null;try{i=await n.stat(r)}catch(e){if("ENOENT"===e.code)return await o.mkdirs(r),void await n.writeFile(t,"");throw e}i.isDirectory()?await n.writeFile(t,""):await n.readdir(r)})),createFileSync:function(t){let e;try{e=n.statSync(t)}catch{}if(e&&e.isFile())return;const r=s.dirname(t);try{n.statSync(r).isDirectory()||n.readdirSync(r)}catch(t){if(!t||"ENOENT"!==t.code)throw t;o.mkdirsSync(r)}n.writeFileSync(t,"")}}},2889:(t,e,r)=>{const{createFile:i,createFileSync:s}=r(2443),{createLink:n,createLinkSync:o}=r(2853),{createSymlink:a,createSymlinkSync:u}=r(2662);t.exports={createFile:i,createFileSync:s,ensureFile:i,ensureFileSync:s,createLink:n,createLinkSync:o,ensureLink:n,ensureLinkSync:o,createSymlink:a,createSymlinkSync:u,ensureSymlink:a,ensureSymlinkSync:u}},2853:(t,e,r)=>{const i=r(7111).fromPromise,s=r(6928),n=r(1012),o=r(4135),{pathExists:a}=r(2151),{areIdentical:u}=r(5853);t.exports={createLink:i((async function(t,e){let r,i;try{r=await n.lstat(e)}catch{}try{i=await n.lstat(t)}catch(t){throw t.message=t.message.replace("lstat","ensureLink"),t}if(r&&u(i,r))return;const l=s.dirname(e);await a(l)||await o.mkdirs(l),await n.link(t,e)})),createLinkSync:function(t,e){let r;try{r=n.lstatSync(e)}catch{}try{const e=n.lstatSync(t);if(r&&u(e,r))return}catch(t){throw t.message=t.message.replace("lstat","ensureLink"),t}const i=s.dirname(e);return n.existsSync(i)||o.mkdirsSync(i),n.linkSync(t,e)}}},8683:(t,e,r)=>{const i=r(6928),s=r(1012),{pathExists:n}=r(2151),o=r(7111).fromPromise;t.exports={symlinkPaths:o((async function(t,e){if(i.isAbsolute(t)){try{await s.lstat(t)}catch(t){throw t.message=t.message.replace("lstat","ensureSymlink"),t}return{toCwd:t,toDst:t}}const r=i.dirname(e),o=i.join(r,t);if(await n(o))return{toCwd:o,toDst:t};try{await s.lstat(t)}catch(t){throw t.message=t.message.replace("lstat","ensureSymlink"),t}return{toCwd:t,toDst:i.relative(r,t)}})),symlinkPathsSync:function(t,e){if(i.isAbsolute(t)){if(!s.existsSync(t))throw new Error("absolute srcpath does not exist");return{toCwd:t,toDst:t}}const r=i.dirname(e),n=i.join(r,t);if(s.existsSync(n))return{toCwd:n,toDst:t};if(!s.existsSync(t))throw new Error("relative srcpath does not exist");return{toCwd:t,toDst:i.relative(r,t)}}}},6639:(t,e,r)=>{const i=r(1012),s=r(7111).fromPromise;t.exports={symlinkType:s((async function(t,e){if(e)return e;let r;try{r=await i.lstat(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"})),symlinkTypeSync:function(t,e){if(e)return e;let r;try{r=i.lstatSync(t)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}}},2662:(t,e,r)=>{const i=r(7111).fromPromise,s=r(6928),n=r(1012),{mkdirs:o,mkdirsSync:a}=r(4135),{symlinkPaths:u,symlinkPathsSync:l}=r(8683),{symlinkType:c,symlinkTypeSync:h}=r(6639),{pathExists:d}=r(2151),{areIdentical:p}=r(5853);t.exports={createSymlink:i((async function(t,e,r){let i;try{i=await n.lstat(e)}catch{}if(i&&i.isSymbolicLink()){const[r,i]=await Promise.all([n.stat(t),n.stat(e)]);if(p(r,i))return}const a=await u(t,e);t=a.toDst;const l=await c(a.toCwd,r),h=s.dirname(e);return await d(h)||await o(h),n.symlink(t,e,l)})),createSymlinkSync:function(t,e,r){let i;try{i=n.lstatSync(e)}catch{}if(i&&i.isSymbolicLink()){const r=n.statSync(t),i=n.statSync(e);if(p(r,i))return}const o=l(t,e);t=o.toDst,r=h(o.toCwd,r);const u=s.dirname(e);return n.existsSync(u)||a(u),n.symlinkSync(t,e,r)}}},1012:(t,e,r)=>{const i=r(7111).fromCallback,s=r(8998),n=["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((t=>"function"==typeof s[t]));Object.assign(e,s),n.forEach((t=>{e[t]=i(s[t])})),e.exists=function(t,e){return"function"==typeof e?s.exists(t,e):new Promise((e=>s.exists(t,e)))},e.read=function(t,e,r,i,n,o){return"function"==typeof o?s.read(t,e,r,i,n,o):new Promise(((o,a)=>{s.read(t,e,r,i,n,((t,e,r)=>{if(t)return a(t);o({bytesRead:e,buffer:r})}))}))},e.write=function(t,e,...r){return"function"==typeof r[r.length-1]?s.write(t,e,...r):new Promise(((i,n)=>{s.write(t,e,...r,((t,e,r)=>{if(t)return n(t);i({bytesWritten:e,buffer:r})}))}))},e.readv=function(t,e,...r){return"function"==typeof r[r.length-1]?s.readv(t,e,...r):new Promise(((i,n)=>{s.readv(t,e,...r,((t,e,r)=>{if(t)return n(t);i({bytesRead:e,buffers:r})}))}))},e.writev=function(t,e,...r){return"function"==typeof r[r.length-1]?s.writev(t,e,...r):new Promise(((i,n)=>{s.writev(t,e,...r,((t,e,r)=>{if(t)return n(t);i({bytesWritten:e,buffers:r})}))}))},"function"==typeof s.realpath.native?e.realpath.native=i(s.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")},8634:(t,e,r)=>{t.exports={...r(1012),...r(1254),...r(2432),...r(2889),...r(7265),...r(4135),...r(9598),...r(9083),...r(2151),...r(3)}},7265:(t,e,r)=>{const i=r(7111).fromPromise,s=r(581);s.outputJson=i(r(5363)),s.outputJsonSync=r(7379),s.outputJSON=s.outputJson,s.outputJSONSync=s.outputJsonSync,s.writeJSON=s.writeJson,s.writeJSONSync=s.writeJsonSync,s.readJSON=s.readJson,s.readJSONSync=s.readJsonSync,t.exports=s},581:(t,e,r)=>{const i=r(5202);t.exports={readJson:i.readFile,readJsonSync:i.readFileSync,writeJson:i.writeFile,writeJsonSync:i.writeFileSync}},7379:(t,e,r)=>{const{stringify:i}=r(7283),{outputFileSync:s}=r(9083);t.exports=function(t,e,r){const n=i(e,r);s(t,n,r)}},5363:(t,e,r)=>{const{stringify:i}=r(7283),{outputFile:s}=r(9083);t.exports=async function(t,e,r={}){const n=i(e,r);await s(t,n,r)}},4135:(t,e,r)=>{const i=r(7111).fromPromise,{makeDir:s,makeDirSync:n}=r(8367),o=i(s);t.exports={mkdirs:o,mkdirsSync:n,mkdirp:o,mkdirpSync:n,ensureDir:o,ensureDirSync:n}},8367:(t,e,r)=>{const i=r(1012),{checkPath:s}=r(9458),n=t=>"number"==typeof t?t:{mode:511,...t}.mode;t.exports.makeDir=async(t,e)=>(s(t),i.mkdir(t,{mode:n(e),recursive:!0})),t.exports.makeDirSync=(t,e)=>(s(t),i.mkdirSync(t,{mode:n(e),recursive:!0}))},9458:(t,e,r)=>{const i=r(6928);t.exports.checkPath=function(t){if("win32"===process.platform){if(/[<>:"|?*]/.test(t.replace(i.parse(t).root,""))){const e=new Error(`Path contains invalid characters: ${t}`);throw e.code="EINVAL",e}}}},9598:(t,e,r)=>{const i=r(7111).fromPromise;t.exports={move:i(r(4249)),moveSync:r(9481)}},9481:(t,e,r)=>{const i=r(8998),s=r(6928),n=r(1254).copySync,o=r(3).removeSync,a=r(4135).mkdirpSync,u=r(5853);function l(t,e,r){try{i.renameSync(t,e)}catch(i){if("EXDEV"!==i.code)throw i;return function(t,e,r){const i={overwrite:r,errorOnExist:!0,preserveTimestamps:!0};return n(t,e,i),o(t)}(t,e,r)}}t.exports=function(t,e,r){const n=(r=r||{}).overwrite||r.clobber||!1,{srcStat:c,isChangingCase:h=!1}=u.checkPathsSync(t,e,"move",r);return u.checkParentPathsSync(t,c,e,"move"),function(t){const e=s.dirname(t);return s.parse(e).root===e}(e)||a(s.dirname(e)),function(t,e,r,s){if(s)return l(t,e,r);if(r)return o(e),l(t,e,r);if(i.existsSync(e))throw new Error("dest already exists.");return l(t,e,r)}(t,e,n,h)}},4249:(t,e,r)=>{const i=r(1012),s=r(6928),{copy:n}=r(1254),{remove:o}=r(3),{mkdirp:a}=r(4135),{pathExists:u}=r(2151),l=r(5853);t.exports=async function(t,e,r={}){const c=r.overwrite||r.clobber||!1,{srcStat:h,isChangingCase:d=!1}=await l.checkPaths(t,e,"move",r);await l.checkParentPaths(t,h,e,"move");const p=s.dirname(e);return s.parse(p).root!==p&&await a(p),async function(t,e,r,s){if(!s)if(r)await o(e);else if(await u(e))throw new Error("dest already exists.");try{await i.rename(t,e)}catch(i){if("EXDEV"!==i.code)throw i;await async function(t,e,r){const i={overwrite:r,errorOnExist:!0,preserveTimestamps:!0};return await n(t,e,i),o(t)}(t,e,r)}}(t,e,c,d)}},9083:(t,e,r)=>{const i=r(7111).fromPromise,s=r(1012),n=r(6928),o=r(4135),a=r(2151).pathExists;t.exports={outputFile:i((async function(t,e,r="utf-8"){const i=n.dirname(t);return await a(i)||await o.mkdirs(i),s.writeFile(t,e,r)})),outputFileSync:function(t,...e){const r=n.dirname(t);s.existsSync(r)||o.mkdirsSync(r),s.writeFileSync(t,...e)}}},2151:(t,e,r)=>{const i=r(7111).fromPromise,s=r(1012);t.exports={pathExists:i((function(t){return s.access(t).then((()=>!0)).catch((()=>!1))})),pathExistsSync:s.existsSync}},3:(t,e,r)=>{const i=r(8998),s=r(7111).fromCallback;t.exports={remove:s((function(t,e){i.rm(t,{recursive:!0,force:!0},e)})),removeSync:function(t){i.rmSync(t,{recursive:!0,force:!0})}}},5853:(t,e,r)=>{const i=r(1012),s=r(6928),n=r(7111).fromPromise;function o(t,e){return e.ino&&e.dev&&e.ino===t.ino&&e.dev===t.dev}function a(t,e){const r=s.resolve(t).split(s.sep).filter((t=>t)),i=s.resolve(e).split(s.sep).filter((t=>t));return r.every(((t,e)=>i[e]===t))}function u(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}t.exports={checkPaths:n((async function(t,e,r,n){const{srcStat:l,destStat:c}=await function(t,e,r){const s=r.dereference?t=>i.stat(t,{bigint:!0}):t=>i.lstat(t,{bigint:!0});return Promise.all([s(t),s(e).catch((t=>{if("ENOENT"===t.code)return null;throw t}))]).then((([t,e])=>({srcStat:t,destStat:e})))}(t,e,n);if(c){if(o(l,c)){const i=s.basename(t),n=s.basename(e);if("move"===r&&i!==n&&i.toLowerCase()===n.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 '${e}' with directory '${t}'.`);if(!l.isDirectory()&&c.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(l.isDirectory()&&a(t,e))throw new Error(u(t,e,r));return{srcStat:l,destStat:c}})),checkPathsSync:function(t,e,r,n){const{srcStat:l,destStat:c}=function(t,e,r){let s;const n=r.dereference?t=>i.statSync(t,{bigint:!0}):t=>i.lstatSync(t,{bigint:!0}),o=n(t);try{s=n(e)}catch(t){if("ENOENT"===t.code)return{srcStat:o,destStat:null};throw t}return{srcStat:o,destStat:s}}(t,e,n);if(c){if(o(l,c)){const i=s.basename(t),n=s.basename(e);if("move"===r&&i!==n&&i.toLowerCase()===n.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 '${e}' with directory '${t}'.`);if(!l.isDirectory()&&c.isDirectory())throw new Error(`Cannot overwrite directory '${e}' with non-directory '${t}'.`)}if(l.isDirectory()&&a(t,e))throw new Error(u(t,e,r));return{srcStat:l,destStat:c}},checkParentPaths:n((async function t(e,r,n,a){const l=s.resolve(s.dirname(e)),c=s.resolve(s.dirname(n));if(c===l||c===s.parse(c).root)return;let h;try{h=await i.stat(c,{bigint:!0})}catch(t){if("ENOENT"===t.code)return;throw t}if(o(r,h))throw new Error(u(e,n,a));return t(e,r,c,a)})),checkParentPathsSync:function t(e,r,n,a){const l=s.resolve(s.dirname(e)),c=s.resolve(s.dirname(n));if(c===l||c===s.parse(c).root)return;let h;try{h=i.statSync(c,{bigint:!0})}catch(t){if("ENOENT"===t.code)return;throw t}if(o(r,h))throw new Error(u(e,n,a));return t(e,r,c,a)},isSrcSubdir:a,areIdentical:o}},5372:(t,e,r)=>{const i=r(1012),s=r(7111).fromPromise;t.exports={utimesMillis:s((async function(t,e,r){const s=await i.open(t,"r+");let n=null;try{await i.futimes(s,e,r)}finally{try{await i.close(s)}catch(t){n=t}}if(n)throw n})),utimesMillisSync:function(t,e,r){const s=i.openSync(t,"r+");return i.futimesSync(s,e,r),i.closeSync(s)}}},5702:t=>{t.exports=function(t){if(null===t||"object"!=typeof t)return t;if(t instanceof Object)var r={__proto__:e(t)};else r=Object.create(null);return Object.getOwnPropertyNames(t).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))})),r};var e=Object.getPrototypeOf||function(t){return t.__proto__}},8998:(t,e,r)=>{var i,s,n=r(9896),o=r(3439),a=r(9012),u=r(5702),l=r(9023);function c(t,e){Object.defineProperty(t,i,{get:function(){return e}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(i=Symbol.for("graceful-fs.queue"),s=Symbol.for("graceful-fs.previous")):(i="___graceful-fs.queue",s="___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 t=l.format.apply(l,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: "),console.error(t)}),!n[i]){var p=global[i]||[];c(n,p),n.close=function(t){function e(e,r){return t.call(n,e,(function(t){t||g(),"function"==typeof r&&r.apply(this,arguments)}))}return Object.defineProperty(e,s,{value:t}),e}(n.close),n.closeSync=function(t){function e(e){t.apply(n,arguments),g()}return Object.defineProperty(e,s,{value:t}),e}(n.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(n[i]),r(2613).equal(n[i].length,0)}))}function f(t){o(t),t.gracefulify=f,t.createReadStream=function(e,r){return new t.ReadStream(e,r)},t.createWriteStream=function(e,r){return new t.WriteStream(e,r)};var e=t.readFile;t.readFile=function(t,r,i){"function"==typeof r&&(i=r,r=null);return function t(r,i,s,n){return e(r,i,(function(e){!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?"function"==typeof s&&s.apply(this,arguments):m([t,[r,i,s],e,n||Date.now(),Date.now()])}))}(t,r,i)};var r=t.writeFile;t.writeFile=function(t,e,i,s){"function"==typeof i&&(s=i,i=null);return function t(e,i,s,n,o){return r(e,i,s,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof n&&n.apply(this,arguments):m([t,[e,i,s,n],r,o||Date.now(),Date.now()])}))}(t,e,i,s)};var i=t.appendFile;i&&(t.appendFile=function(t,e,r,s){"function"==typeof r&&(s=r,r=null);return function t(e,r,s,n,o){return i(e,r,s,(function(i){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?"function"==typeof n&&n.apply(this,arguments):m([t,[e,r,s,n],i,o||Date.now(),Date.now()])}))}(t,e,r,s)});var s=t.copyFile;s&&(t.copyFile=function(t,e,r,i){"function"==typeof r&&(i=r,r=0);return function t(e,r,i,n,o){return s(e,r,i,(function(s){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof n&&n.apply(this,arguments):m([t,[e,r,i,n],s,o||Date.now(),Date.now()])}))}(t,e,r,i)});var n=t.readdir;t.readdir=function(t,e,r){"function"==typeof e&&(r=e,e=null);var i=u.test(process.version)?function(t,e,r,i){return n(t,s(t,e,r,i))}:function(t,e,r,i){return n(t,e,s(t,e,r,i))};return i(t,e,r);function s(t,e,r,s){return function(n,o){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?(o&&o.sort&&o.sort(),"function"==typeof r&&r.call(this,n,o)):m([i,[t,e,r],n,s||Date.now(),Date.now()])}}};var u=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var l=a(t);g=l.ReadStream,D=l.WriteStream}var c=t.ReadStream;c&&(g.prototype=Object.create(c.prototype),g.prototype.open=function(){var t=this;v(t.path,t.flags,t.mode,(function(e,r){e?(t.autoClose&&t.destroy(),t.emit("error",e)):(t.fd=r,t.emit("open",r),t.read())}))});var h=t.WriteStream;h&&(D.prototype=Object.create(h.prototype),D.prototype.open=function(){var t=this;v(t.path,t.flags,t.mode,(function(e,r){e?(t.destroy(),t.emit("error",e)):(t.fd=r,t.emit("open",r))}))}),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(t){g=t},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return D},set:function(t){D=t},enumerable:!0,configurable:!0});var d=g;Object.defineProperty(t,"FileReadStream",{get:function(){return d},set:function(t){d=t},enumerable:!0,configurable:!0});var p=D;function g(t,e){return this instanceof g?(c.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function D(t,e){return this instanceof D?(h.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}Object.defineProperty(t,"FileWriteStream",{get:function(){return p},set:function(t){p=t},enumerable:!0,configurable:!0});var y=t.open;function v(t,e,r,i){return"function"==typeof r&&(i=r,r=null),function t(e,r,i,s,n){return y(e,r,i,(function(o,a){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?"function"==typeof s&&s.apply(this,arguments):m([t,[e,r,i,s],o,n||Date.now(),Date.now()])}))}(t,e,r,i)}return t.open=v,t}function m(t){d("ENQUEUE",t[0].name,t[1]),n[i].push(t),D()}function g(){for(var t=Date.now(),e=0;e<n[i].length;++e)n[i][e].length>2&&(n[i][e][3]=t,n[i][e][4]=t);D()}function D(){if(clearTimeout(h),h=void 0,0!==n[i].length){var t=n[i].shift(),e=t[0],r=t[1],s=t[2],o=t[3],a=t[4];if(void 0===o)d("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-o>=6e4){d("TIMEOUT",e.name,r);var u=r.pop();"function"==typeof u&&u.call(null,s)}else{var l=Date.now()-a,c=Math.max(a-o,1);l>=Math.min(1.2*c,100)?(d("RETRY",e.name,r),e.apply(null,r.concat([o]))):n[i].push(t)}void 0===h&&(h=setTimeout(D,0))}}global[i]||c(global,n[i]),t.exports=f(u(n)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched&&(t.exports=f(n),n.__patched=!0)},9012:(t,e,r)=>{var i=r(2203).Stream;t.exports=function(t){return{ReadStream:function e(r,s){if(!(this instanceof e))return new e(r,s);i.call(this);var n=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,s=s||{};for(var o=Object.keys(s),a=0,u=o.length;a<u;a++){var l=o[a];this[l]=s[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(){n._read()}));t.open(this.path,this.flags,this.mode,(function(t,e){if(t)return n.emit("error",t),void(n.readable=!1);n.fd=e,n.emit("open",e),n._read()}))},WriteStream:function e(r,s){if(!(this instanceof e))return new e(r,s);i.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var n=Object.keys(s),o=0,a=n.length;o<a;o++){var u=n[o];this[u]=s[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=t.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},3439:(t,e,r)=>{var i=r(9140),s=process.cwd,n=null,o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return n||(n=s.call(process)),n};try{process.cwd()}catch(t){}if("function"==typeof process.chdir){var a=process.chdir;process.chdir=function(t){n=null,a.call(process,t)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a)}t.exports=function(t){i.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(t){t.lchmod=function(e,r,s){t.open(e,i.O_WRONLY|i.O_SYMLINK,r,(function(e,i){e?s&&s(e):t.fchmod(i,r,(function(e){t.close(i,(function(t){s&&s(e||t)}))}))}))},t.lchmodSync=function(e,r){var s,n=t.openSync(e,i.O_WRONLY|i.O_SYMLINK,r),o=!0;try{s=t.fchmodSync(n,r),o=!1}finally{if(o)try{t.closeSync(n)}catch(t){}else t.closeSync(n)}return s}}(t);t.lutimes||function(t){i.hasOwnProperty("O_SYMLINK")&&t.futimes?(t.lutimes=function(e,r,s,n){t.open(e,i.O_SYMLINK,(function(e,i){e?n&&n(e):t.futimes(i,r,s,(function(e){t.close(i,(function(t){n&&n(e||t)}))}))}))},t.lutimesSync=function(e,r,s){var n,o=t.openSync(e,i.O_SYMLINK),a=!0;try{n=t.futimesSync(o,r,s),a=!1}finally{if(a)try{t.closeSync(o)}catch(t){}else t.closeSync(o)}return n}):t.futimes&&(t.lutimes=function(t,e,r,i){i&&process.nextTick(i)},t.lutimesSync=function(){})}(t);t.chown=s(t.chown),t.fchown=s(t.fchown),t.lchown=s(t.lchown),t.chmod=e(t.chmod),t.fchmod=e(t.fchmod),t.lchmod=e(t.lchmod),t.chownSync=n(t.chownSync),t.fchownSync=n(t.fchownSync),t.lchownSync=n(t.lchownSync),t.chmodSync=r(t.chmodSync),t.fchmodSync=r(t.fchmodSync),t.lchmodSync=r(t.lchmodSync),t.stat=a(t.stat),t.fstat=a(t.fstat),t.lstat=a(t.lstat),t.statSync=u(t.statSync),t.fstatSync=u(t.fstatSync),t.lstatSync=u(t.lstatSync),t.chmod&&!t.lchmod&&(t.lchmod=function(t,e,r){r&&process.nextTick(r)},t.lchmodSync=function(){});t.chown&&!t.lchown&&(t.lchown=function(t,e,r,i){i&&process.nextTick(i)},t.lchownSync=function(){});"win32"===o&&(t.rename="function"!=typeof t.rename?t.rename:function(e){function r(r,i,s){var n=Date.now(),o=0;e(r,i,(function a(u){if(u&&("EACCES"===u.code||"EPERM"===u.code||"EBUSY"===u.code)&&Date.now()-n<6e4)return setTimeout((function(){t.stat(i,(function(t,n){t&&"ENOENT"===t.code?e(r,i,a):s(u)}))}),o),void(o<100&&(o+=10));s&&s(u)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(r,e),r}(t.rename));function e(e){return e?function(r,i,s){return e.call(t,r,i,(function(t){l(t)&&(t=null),s&&s.apply(this,arguments)}))}:e}function r(e){return e?function(r,i){try{return e.call(t,r,i)}catch(t){if(!l(t))throw t}}:e}function s(e){return e?function(r,i,s,n){return e.call(t,r,i,s,(function(t){l(t)&&(t=null),n&&n.apply(this,arguments)}))}:e}function n(e){return e?function(r,i,s){try{return e.call(t,r,i,s)}catch(t){if(!l(t))throw t}}:e}function a(e){return e?function(r,i,s){function n(t,e){e&&(e.uid<0&&(e.uid+=4294967296),e.gid<0&&(e.gid+=4294967296)),s&&s.apply(this,arguments)}return"function"==typeof i&&(s=i,i=null),i?e.call(t,r,i,n):e.call(t,r,n)}:e}function u(e){return e?function(r,i){var s=i?e.call(t,r,i):e.call(t,r);return s&&(s.uid<0&&(s.uid+=4294967296),s.gid<0&&(s.gid+=4294967296)),s}:e}function l(t){return!t||("ENOSYS"===t.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==t.code&&"EPERM"!==t.code))}t.read="function"!=typeof t.read?t.read:function(e){function r(r,i,s,n,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++,e.call(t,r,i,s,n,o,u);a.apply(this,arguments)}}return e.call(t,r,i,s,n,o,u)}return Object.setPrototypeOf&&Object.setPrototypeOf(r,e),r}(t.read),t.readSync="function"!=typeof t.readSync?t.readSync:(c=t.readSync,function(e,r,i,s,n){for(var o=0;;)try{return c.call(t,e,r,i,s,n)}catch(t){if("EAGAIN"===t.code&&o<10){o++;continue}throw t}});var c}},6071:t=>{t.exports=(t,e=process.argv)=>{const r=t.startsWith("-")?"":1===t.length?"-":"--",i=e.indexOf(r+t),s=e.indexOf("--");return-1!==i&&(-1===s||i<s)}},9264:t=>{t.exports=t=>{if("object"!=typeof t||null===t)throw new TypeError("Expected an object");const e={};for(const[r,i]of Object.entries(t))e[i]=r;for(const r of Object.getOwnPropertySymbols(t)){e[t[r]]=r}return e}},9882:(t,e,r)=>{var i;r(9896);function s(t,e,r){if("function"==typeof e&&(r=e,e={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(r,i){s(t,e||{},(function(t,e){t?i(t):r(e)}))}))}i(t,e||{},(function(t,i){t&&("EACCES"===t.code||e&&e.ignoreErrors)&&(t=null,i=!1),r(t,i)}))}i="win32"===process.platform||global.TESTING_WINDOWS?r(6095):r(4155),t.exports=s,s.sync=function(t,e){try{return i.sync(t,e||{})}catch(t){if(e&&e.ignoreErrors||"EACCES"===t.code)return!1;throw t}}},4155:(t,e,r)=>{t.exports=s,s.sync=function(t,e){return n(i.statSync(t),e)};var i=r(9896);function s(t,e,r){i.stat(t,(function(t,i){r(t,!t&&n(i,e))}))}function n(t,e){return t.isFile()&&function(t,e){var r=t.mode,i=t.uid,s=t.gid,n=void 0!==e.uid?e.uid:process.getuid&&process.getuid(),o=void 0!==e.gid?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),l=parseInt("001",8),c=a|u;return r&l||r&u&&s===o||r&a&&i===n||r&c&&0===n}(t,e)}},6095:(t,e,r)=>{t.exports=n,n.sync=function(t,e){return s(i.statSync(t),t,e)};var i=r(9896);function s(t,e,r){return!(!t.isSymbolicLink()&&!t.isFile())&&function(t,e){var r=void 0!==e.pathExt?e.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var i=0;i<r.length;i++){var s=r[i].toLowerCase();if(s&&t.substr(-s.length).toLowerCase()===s)return!0}return!1}(e,r)}function n(t,e,r){i.stat(t,(function(i,n){r(i,!i&&s(n,t,e))}))}},5202:(t,e,r)=>{let i;try{i=r(8998)}catch(t){i=r(9896)}const s=r(7111),{stringify:n,stripBom:o}=r(7283);const a={readFile:s.fromPromise((async function(t,e={}){"string"==typeof e&&(e={encoding:e});const r=e.fs||i,n=!("throws"in e)||e.throws;let a,u=await s.fromCallback(r.readFile)(t,e);u=o(u);try{a=JSON.parse(u,e?e.reviver:null)}catch(e){if(n)throw e.message=`${t}: ${e.message}`,e;return null}return a})),readFileSync:function(t,e={}){"string"==typeof e&&(e={encoding:e});const r=e.fs||i,s=!("throws"in e)||e.throws;try{let i=r.readFileSync(t,e);return i=o(i),JSON.parse(i,e.reviver)}catch(e){if(s)throw e.message=`${t}: ${e.message}`,e;return null}},writeFile:s.fromPromise((async function(t,e,r={}){const o=r.fs||i,a=n(e,r);await s.fromCallback(o.writeFile)(t,a,r)})),writeFileSync:function(t,e,r={}){const s=r.fs||i,o=n(e,r);return s.writeFileSync(t,o,r)}};t.exports=a},7283:t=>{t.exports={stringify:function(t,{EOL:e="\n",finalEOL:r=!0,replacer:i=null,spaces:s}={}){const n=r?e:"";return JSON.stringify(t,i,s).replace(/\n/g,e)+n},stripBom:function(t){return Buffer.isBuffer(t)&&(t=t.toString("utf8")),t.replace(/^\uFEFF/,"")}}},8631:t=>{const{FORCE_COLOR:e,NODE_DISABLE_COLORS:r,TERM:i}=process.env,s={enabled:!r&&"dumb"!==i&&"0"!==e,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 n(t,e){let r,i=0,s="",n="";for(;i<t.length;i++)r=t[i],s+=r.open,n+=r.close,e.includes(r.close)&&(e=e.replace(r.rgx,r.close+r.open));return s+e+n}function o(t,e){let r={open:`\x1b[${t}m`,close:`\x1b[${e}m`,rgx:new RegExp(`\\x1b\\[${e}m`,"g")};return function(e){return void 0!==this&&void 0!==this.has?(this.has.includes(t)||(this.has.push(t),this.keys.push(r)),void 0===e?this:s.enabled?n(this.keys,e+""):e+""):void 0===e?function(t,e){let r={has:t,keys:e};return r.reset=s.reset.bind(r),r.bold=s.bold.bind(r),r.dim=s.dim.bind(r),r.italic=s.italic.bind(r),r.underline=s.underline.bind(r),r.inverse=s.inverse.bind(r),r.hidden=s.hidden.bind(r),r.strikethrough=s.strikethrough.bind(r),r.black=s.black.bind(r),r.red=s.red.bind(r),r.green=s.green.bind(r),r.yellow=s.yellow.bind(r),r.blue=s.blue.bind(r),r.magenta=s.magenta.bind(r),r.cyan=s.cyan.bind(r),r.white=s.white.bind(r),r.gray=s.gray.bind(r),r.grey=s.grey.bind(r),r.bgBlack=s.bgBlack.bind(r),r.bgRed=s.bgRed.bind(r),r.bgGreen=s.bgGreen.bind(r),r.bgYellow=s.bgYellow.bind(r),r.bgBlue=s.bgBlue.bind(r),r.bgMagenta=s.bgMagenta.bind(r),r.bgCyan=s.bgCyan.bind(r),r.bgWhite=s.bgWhite.bind(r),r}([t],[r]):s.enabled?n([r],e+""):e+""}}t.exports=s},2102:(t,e,r)=>{const i=r(9264),s=r(6891),n=i(s);e.from=t=>{if("number"!=typeof t)throw new TypeError("Expected a number");return s[t]},e.to=t=>{if("string"!=typeof t)throw new TypeError("Expected a string");if(n[t])return Number(n[t])},e.all=new Proxy(n,{get(t,e){const r=t[e];if(r)return Number(r)}})},3624:(t,e,r)=>{const i=r(222),s=Symbol("max"),n=Symbol("length"),o=Symbol("lengthCalculator"),a=Symbol("allowStale"),u=Symbol("maxAge"),l=Symbol("dispose"),c=Symbol("noDisposeOnSet"),h=Symbol("lruList"),d=Symbol("cache"),p=Symbol("updateAgeOnGet"),f=()=>1;const m=(t,e,r)=>{const i=t[d].get(e);if(i){const e=i.value;if(g(t,e)){if(y(t,i),!t[a])return}else r&&(t[p]&&(i.value.now=Date.now()),t[h].unshiftNode(i));return e.value}},g=(t,e)=>{if(!e||!e.maxAge&&!t[u])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[u]&&r>t[u]},D=t=>{if(t[n]>t[s])for(let e=t[h].tail;t[n]>t[s]&&null!==e;){const r=e.prev;y(t,e),e=r}},y=(t,e)=>{if(e){const r=e.value;t[l]&&t[l](r.key,r.value),t[n]-=r.length,t[d].delete(r.key),t[h].removeNode(e)}};class v{constructor(t,e,r,i,s){this.key=t,this.value=e,this.length=r,this.now=i,this.maxAge=s||0}}const b=(t,e,r,i)=>{let s=r.value;g(t,s)&&(y(t,r),t[a]||(s=void 0)),s&&e.call(i,s.value,s.key,t)};t.exports=class{constructor(t){if("number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[s]=t.max||1/0;const e=t.length||f;if(this[o]="function"!=typeof e?f:e,this[a]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[u]=t.maxAge||0,this[l]=t.dispose,this[c]=t.noDisposeOnSet||!1,this[p]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!=typeof t||t<0)throw new TypeError("max must be a non-negative number");this[s]=t||1/0,D(this)}get max(){return this[s]}set allowStale(t){this[a]=!!t}get allowStale(){return this[a]}set maxAge(t){if("number"!=typeof t)throw new TypeError("maxAge must be a non-negative number");this[u]=t,D(this)}get maxAge(){return this[u]}set lengthCalculator(t){"function"!=typeof t&&(t=f),t!==this[o]&&(this[o]=t,this[n]=0,this[h].forEach((t=>{t.length=this[o](t.value,t.key),this[n]+=t.length}))),D(this)}get lengthCalculator(){return this[o]}get length(){return this[n]}get itemCount(){return this[h].length}rforEach(t,e){e=e||this;for(let r=this[h].tail;null!==r;){const i=r.prev;b(this,t,r,e),r=i}}forEach(t,e){e=e||this;for(let r=this[h].head;null!==r;){const i=r.next;b(this,t,r,e),r=i}}keys(){return this[h].toArray().map((t=>t.key))}values(){return this[h].toArray().map((t=>t.value))}reset(){this[l]&&this[h]&&this[h].length&&this[h].forEach((t=>this[l](t.key,t.value))),this[d]=new Map,this[h]=new i,this[n]=0}dump(){return this[h].map((t=>!g(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[h]}set(t,e,r){if((r=r||this[u])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const i=r?Date.now():0,a=this[o](e,t);if(this[d].has(t)){if(a>this[s])return y(this,this[d].get(t)),!1;const o=this[d].get(t).value;return this[l]&&(this[c]||this[l](t,o.value)),o.now=i,o.maxAge=r,o.value=e,this[n]+=a-o.length,o.length=a,this.get(t),D(this),!0}const p=new v(t,e,a,i,r);return p.length>this[s]?(this[l]&&this[l](t,e),!1):(this[n]+=p.length,this[h].unshift(p),this[d].set(t,this[h].head),D(this),!0)}has(t){if(!this[d].has(t))return!1;const e=this[d].get(t).value;return!g(this,e)}get(t){return m(this,t,!0)}peek(t){return m(this,t,!1)}pop(){const t=this[h].tail;return t?(y(this,t),t.value):null}del(t){y(this,this[d].get(t))}load(t){this.reset();const e=Date.now();for(let r=t.length-1;r>=0;r--){const i=t[r],s=i.e||0;if(0===s)this.set(i.k,i.v);else{const t=s-e;t>0&&this.set(i.k,i.v,t)}}}prune(){this[d].forEach(((t,e)=>m(this,e,!1)))}}},257:(t,e,r)=>{const{PassThrough:i}=r(2203);t.exports=function(){var t=[],e=new i({objectMode:!0});return e.setMaxListeners(0),e.add=r,e.isEmpty=function(){return 0==t.length},e.on("unpipe",s),Array.prototype.slice.call(arguments).forEach(r),e;function r(i){return Array.isArray(i)?(i.forEach(r),this):(t.push(i),i.once("end",s.bind(null,i)),i.once("error",e.emit.bind(e,"error")),i.pipe(e,{end:!1}),this)}function s(r){!(t=t.filter((function(t){return t!==r}))).length&&e.readable&&e.end()}}},6362:t=>{const e=(t,e)=>{for(const r of Reflect.ownKeys(e))Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r));return t};t.exports=e,t.exports.default=e},8227:(t,e,r)=>{const i=r(6362),s=new WeakMap,n=(t,e={})=>{if("function"!=typeof t)throw new TypeError("Expected a function");let r,n=0;const o=t.displayName||t.name||"<anonymous>",a=function(...i){if(s.set(a,++n),1===n)r=t.apply(this,i),t=null;else if(!0===e.throw)throw new Error(`Function \`${o}\` can only be called once`);return r};return i(a,t),s.set(a,n),a};t.exports=n,t.exports.default=n,t.exports.callCount=t=>{if(!s.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return s.get(t)}},9939:(t,e,r)=>{var i=r(2407);t.exports=function(t){if("string"!=typeof t)throw new TypeError("expected author to be a string");if(!t||!/\w/.test(t))return{};var e=[].concat.apply([],i().exec(t)),r={};e[1]&&(r.name=e[1]);for(var s=2;s<e.length;s++){var n=e[s];s%2==0&&n&&e[s+1]&&("<"===n.charAt(0)?(r.email=e[s+1],s++):"("===n.charAt(0)&&(r.url=e[s+1],s++))}return r}},8139:t=>{const e=(t={})=>{const e=t.env||process.env;return"win32"!==(t.platform||process.platform)?"PATH":Object.keys(e).reverse().find((t=>"PATH"===t.toUpperCase()))||"Path"};t.exports=e,t.exports.default=e},978:t=>{class e{constructor({token:t,date:e,parts:r,locales:i}){this.token=t,this.date=e||new Date,this.parts=r||[this],this.locales=i||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,i)=>i>t&&r instanceof e))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,i)=>i>r&&t instanceof e))}toString(){return String(this.date)}}t.exports=e},1413:(t,e,r)=>{const i=r(978);t.exports=class extends i{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate(),e=this.date.getDay();return"DD"===this.token?String(t).padStart(2,"0"):"Do"===this.token?t+(r=t,1==(r%=10)?"st":2===r?"nd":3===r?"rd":"th"):"d"===this.token?e+1:"ddd"===this.token?this.locales.weekdaysShort[e]:"dddd"===this.token?this.locales.weekdays[e]:t;var r}}},8588:(t,e,r)=>{const i=r(978);t.exports=class extends i{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();return/h/.test(this.token)&&(t=t%12||12),this.token.length>1?String(t).padStart(2,"0"):t}}},9195:(t,e,r)=>{t.exports={DatePart:r(978),Meridiem:r(1465),Day:r(1413),Hours:r(8588),Milliseconds:r(2129),Minutes:r(9637),Month:r(3017),Seconds:r(7246),Year:r(6882)}},1465:(t,e,r)=>{const i=r(978);t.exports=class extends i{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}},2129:(t,e,r)=>{const i=r(978);t.exports=class extends i{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}},9637:(t,e,r)=>{const i=r(978);t.exports=class extends i{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}},3017:(t,e,r)=>{const i=r(978);t.exports=class extends i{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1,this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth(),e=this.token.length;return 2===e?String(t+1).padStart(2,"0"):3===e?this.locales.monthsShort[t]:4===e?this.locales.months[t]:String(t+1)}}},7246:(t,e,r)=>{const i=r(978);t.exports=class extends i{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}},6882:(t,e,r)=>{const i=r(978);t.exports=class extends i{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?t.substr(-2):t}}},4484:(t,e,r)=>{function i(t,e,r,i,s,n,o){try{var a=t[n](o),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(i,s)}const s=r(8631),n=r(6930),o=r(6876),a=o.erase,u=o.cursor,l=r(7359),c=l.style,h=l.clear,d=l.figures,p=l.wrap,f=l.entriesToDisplay,m=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),g=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]);t.exports=class extends n{constructor(t={}){super(t),this.msg=t.message,this.suggest=t.suggest,this.choices=t.choices,this.initial="number"==typeof t.initial?t.initial:((t,e)=>{const r=t.findIndex((t=>t.value===e||t.title===e));return r>-1?r:void 0})(t.choices,t.initial),this.select=this.initial||t.cursor||0,this.i18n={noMatches:t.noMatches||"no matches found"},this.fallback=t.fallback||this.initial,this.clearFirst=t.clearFirst||!1,this.suggestions=[],this.input="",this.limit=t.limit||10,this.cursor=0,this.transform=c.render(t.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(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;return"number"==typeof this._fb?t=this.choices[this._fb]:"string"==typeof this._fb&&(t={title:this._fb}),t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t,this.suggestions.length>0?this.value=m(this.suggestions,t):this.value=this.fallback.value,this.fire()}complete(t){var e,r=this;return(e=function*(){const e=r.completing=r.suggest(r.input,r.choices),i=yield e;if(r.completing!==e)return;r.suggestions=i.map(((t,e,r)=>({title:g(r,e),value:m(r,e),description:t.description}))),r.completing=!1;const s=Math.max(i.length-1,0);r.moveSelect(Math.min(s,r.select)),t&&t()},function(){var t=this,r=arguments;return new Promise((function(s,n){var o=e.apply(t,r);function a(t){i(o,s,n,a,u,"next",t)}function u(t){i(o,s,n,a,u,"throw",t)}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()}_(t,e){let r=this.input.slice(0,this.cursor),i=this.input.slice(this.cursor);this.input=`${r}${t}${i}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let t=this.input.slice(0,this.cursor-1),e=this.input.slice(this.cursor);this.input=`${t}${e}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor),e=this.input.slice(this.cursor+1);this.input=`${t}${e}`,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(t,e,r,i){let n,o=r?d.arrowUp:i?d.arrowDown:" ",a=e?s.cyan().underline(t.title):t.title;return o=(e?s.cyan(d.pointer)+" ":" ")+o,t.description&&(n=` - ${t.description}`,(o.length+a.length+n.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(n="\n"+p(t.description,{margin:3,width:this.out.columns}))),o+" "+a+s.gray(n||"")}render(){if(this.closed)return;this.firstRender?this.out.write(u.hide):this.out.write(h(this.outputText,this.out.columns)),super.render();let t=f(this.select,this.choices.length,this.limit),e=t.startIndex,r=t.endIndex;if(this.outputText=[c.symbol(this.done,this.aborted,this.exited),s.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 t=this.suggestions.slice(e,r).map(((t,i)=>this.renderOption(t,this.select===i+e,0===i&&e>0,i+e===r-1&&r<this.choices.length))).join("\n");this.outputText+="\n"+(t||s.gray(this.fallback.title))}this.out.write(a.line+u.to(0)+this.outputText)}}},3263:(t,e,r)=>{const i=r(8631),s=r(6876).cursor,n=r(7515),o=r(7359),a=o.clear,u=o.style,l=o.figures;t.exports=class extends n{constructor(t={}){t.overrideRender=!0,super(t),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((t=>t.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 t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>!this.inputValue||(!("string"!=typeof t.title||!t.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof t.value||!t.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const e=this.filteredOptions.findIndex((e=>e===t));this.cursor=e<0?0:e,this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t,this.updateFilteredOptions()}_(t,e){" "===t?this.handleSpaceToggle():this.handleInputChange(t)}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:i.gray("Enter something to filter")}\n`}renderOption(t,e,r){let s;return s=e.disabled?t===r?i.gray().underline(e.title):i.strikethrough().gray(e.title):t===r?i.cyan().underline(e.title):e.title,(e.selected?i.green(l.radioOn):l.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[i.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&t.push(i.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(s.hide),super.render();let t=[u.symbol(this.done,this.aborted),i.bold(this.msg),u.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=i.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+t),this.clear=a(t,this.out.columns)}}},2894:(t,e,r)=>{const i=r(8631),s=r(6930),n=r(7359),o=n.style,a=n.clear,u=r(6876),l=u.erase,c=u.cursor;t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.value=t.initial,this.initialValue=!!t.initial,this.yesMsg=t.yes||"yes",this.yesOption=t.yesOption||"(Y/n)",this.noMsg=t.no||"no",this.noOption=t.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()}_(t,e){return"y"===t.toLowerCase()?(this.value=!0,this.submit()):"n"===t.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),i.bold(this.msg),o.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:i.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(l.line+c.to(0)+this.outputText))}}},4460:(t,e,r)=>{function i(t,e,r,i,s,n,o){try{var a=t[n](o),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(i,s)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(s,n){var o=t.apply(e,r);function a(t){i(o,s,n,a,u,"next",t)}function u(t){i(o,s,n,a,u,"throw",t)}a(void 0)}))}}const n=r(8631),o=r(6930),a=r(7359),u=a.style,l=a.clear,c=a.figures,h=r(6876),d=h.erase,p=h.cursor,f=r(9195),m=f.DatePart,g=f.Meridiem,D=f.Day,y=f.Hours,v=f.Milliseconds,b=f.Minutes,w=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,x={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new D(t),3:t=>new w(t),4:t=>new F(t),5:t=>new g(t),6:t=>new y(t),7:t=>new b(t),8:t=>new E(t),9:t=>new v(t)},_={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(",")};t.exports=class extends o{constructor(t={}){super(t),this.msg=t.message,this.cursor=0,this.typed="",this.locales=Object.assign(_,t.locales),this._date=t.initial||new Date,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.mask=t.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(t){t&&this._date.setTime(t.getTime())}set mask(t){let e;for(this.parts=[];e=C.exec(t);){let t=e.shift(),r=e.findIndex((t=>null!=t));this.parts.push(r in x?x[r]({token:e[r]||t,date:this.date,parts:this.parts,locales:this.locales}):e[r]||t)}let r=this.parts.reduce(((t,e)=>("string"==typeof e&&"string"==typeof t[t.length-1]?t[t.length-1]+=e:t.push(e),t)),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(t){this.typed="",this.cursor=t,this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t 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 t=this;return s((function*(){let e=yield t.validator(t.value);"string"==typeof e&&(t.errorMsg=e,e=!1),t.error=!e}))()}submit(){var t=this;return s((function*(){if(yield t.validate(),t.error)return t.color="red",t.fire(),void t.render();t.done=!0,t.aborted=!1,t.fire(),t.render(),t.out.write("\n"),t.close()}))()}up(){this.typed="",this.parts[this.cursor].up(),this.render()}down(){this.typed="",this.parts[this.cursor].down(),this.render()}left(){let t=this.parts[this.cursor].prev();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}right(){let t=this.parts[this.cursor].next();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof m))),this.render()}_(t){/\d/.test(t)&&(this.typed+=t,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),n.bold(this.msg),u.delimiter(!1),this.parts.reduce(((t,e,r)=>t.concat(r!==this.cursor||this.done?e:n.cyan().underline(e.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":c.pointerSmall} ${n.red().italic(e)}`),"")),this.out.write(d.line+p.to(0)+this.outputText))}}},162:(t,e,r)=>{t.exports={TextPrompt:r(5075),SelectPrompt:r(2696),TogglePrompt:r(1284),DatePrompt:r(4460),NumberPrompt:r(9925),MultiselectPrompt:r(7515),AutocompletePrompt:r(4484),AutocompleteMultiselectPrompt:r(3263),ConfirmPrompt:r(2894)}},7515:(t,e,r)=>{const i=r(8631),s=r(6876).cursor,n=r(6930),o=r(7359),a=o.clear,u=o.figures,l=o.style,c=o.wrap,h=o.entriesToDisplay;t.exports=class extends n{constructor(t={}){super(t),this.msg=t.message,this.cursor=t.cursor||0,this.scrollIndex=t.cursor||0,this.hint=t.hint||"",this.warn=t.warn||"- This option is disabled -",this.minSelected=t.min,this.showMinError=!1,this.maxChoices=t.max,this.instructions=t.instructions,this.optionsPerPage=t.optionsPerPage||10,this.value=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(void 0===t.value?e:t.value),selected:t&&t.selected,disabled:t&&t.disabled}))),this.clear=a("",this.out.columns),t.overrideRender||this.render()}reset(){this.value.map((t=>!t.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const t=this.value.filter((t=>t.selected));this.minSelected&&t.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((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((e=>e.selected=t)),this.render()}_(t,e){if(" "===t)this.handleSpaceToggle();else{if("a"!==t)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(t,e,r,s){const n=(e.selected?i.green(u.radioOn):u.radioOff)+" "+s+" ";let o,a;return e.disabled?o=t===r?i.gray().underline(e.title):i.strikethrough().gray(e.title):(o=t===r?i.cyan().underline(e.title):e.title,t===r&&e.description&&(a=` - ${e.description}`,(n.length+o.length+a.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(a="\n"+c(e.description,{margin:n.length,width:this.out.columns})))),n+o+i.gray(a||"")}paginateOptions(t){if(0===t.length)return i.red("No matches for this query.");let e,r=h(this.cursor,t.length,this.optionsPerPage),s=r.startIndex,n=r.endIndex,o=[];for(let r=s;r<n;r++)e=r===s&&s>0?u.arrowUp:r===n-1&&n<t.length?u.arrowDown:" ",o.push(this.renderOption(this.cursor,t[r],r,e));return"\n"+o.join("\n")}renderOptions(t){return this.done?"":this.paginateOptions(t)}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[i.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&t.push(i.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(s.hide),super.render();let t=[l.symbol(this.done,this.aborted),i.bold(this.msg),l.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=i.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.value),this.out.write(this.clear+t),this.clear=a(t,this.out.columns)}}},9925:(t,e,r)=>{function i(t,e,r,i,s,n,o){try{var a=t[n](o),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(i,s)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(s,n){var o=t.apply(e,r);function a(t){i(o,s,n,a,u,"next",t)}function u(t){i(o,s,n,a,u,"throw",t)}a(void 0)}))}}const n=r(8631),o=r(6930),a=r(6876),u=a.cursor,l=a.erase,c=r(7359),h=c.style,d=c.figures,p=c.clear,f=c.lines,m=/[0-9]/,g=t=>void 0!==t,D=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r};t.exports=class extends o{constructor(t={}){super(t),this.transform=h.render(t.style),this.msg=t.message,this.initial=g(t.initial)?t.initial:"",this.float=!!t.float,this.round=t.round||2,this.inc=t.increment||1,this.min=g(t.min)?t.min:-1/0,this.max=g(t.max)?t.max:1/0,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(t){t||0===t?(this.placeholder=!1,this.rendered=this.transform.render(`${D(t,this.round)}`),this._value=D(t,this.round)):(this.placeholder=!0,this.rendered=n.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return"-"===t||"."===t&&this.float||m.test(t)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=""!==t?t:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}validate(){var t=this;return s((function*(){let e=yield t.validator(t.value);"string"==typeof e&&(t.errorMsg=e,e=!1),t.error=!e}))()}submit(){var t=this;return s((function*(){if(yield t.validate(),t.error)return t.color="red",t.fire(),void t.render();let e=t.value;t.value=""!==e?e:t.initial,t.done=!0,t.aborted=!1,t.error=!1,t.fire(),t.render(),t.out.write("\n"),t.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 t=this.value.toString();if(0===t.length)return this.bell();this.value=this.parse(t=t.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()}_(t,e){if(!this.valid(t))return this.bell();const r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=t,this.lastHit=r,this.color="cyan","."===t)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),n.bold(this.msg),h.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(((t,e,r)=>t+`\n${r?" ":d.pointerSmall} ${n.red().italic(e)}`),"")),this.out.write(l.line+u.to(0)+this.outputText+u.save+this.outputError+u.restore))}}},6930:(t,e,r)=>{const i=r(3785),s=r(7359).action,n=r(4434),o=r(6876),a=o.beep,u=o.cursor,l=r(8631);t.exports=class extends n{constructor(t={}){super(),this.firstRender=!0,this.in=t.stdin||process.stdin,this.out=t.stdout||process.stdout,this.onRender=(t.onRender||(()=>{})).bind(this);const e=i.createInterface({input:this.in,escapeCodeTimeout:50});i.emitKeypressEvents(this.in,e),this.in.isTTY&&this.in.setRawMode(!0);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,n=(t,e)=>{let i=s(e,r);!1===i?this._&&this._(t,e):"function"==typeof this[i]?this[i](e):this.bell()};this.close=()=>{this.out.write(u.show),this.in.removeListener("keypress",n),this.in.isTTY&&this.in.setRawMode(!1),e.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",n)}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)}}},2696:(t,e,r)=>{const i=r(8631),s=r(6930),n=r(7359),o=n.style,a=n.clear,u=n.figures,l=n.wrap,c=n.entriesToDisplay,h=r(6876).cursor;t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.hint=t.hint||"- Use arrow-keys. Return to submit.",this.warn=t.warn||"- This option is disabled",this.cursor=t.initial||0,this.choices=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),value:t&&(void 0===t.value?e:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}))),this.optionsPerPage=t.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=a("",this.out.columns),this.render()}moveCursor(t){this.cursor=t,this.value=this.choices[t].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()}_(t,e){if(" "===t)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 t=c(this.cursor,this.choices.length,this.optionsPerPage),e=t.startIndex,r=t.endIndex;if(this.outputText=[o.symbol(this.done,this.aborted),i.bold(this.msg),o.delimiter(!1),this.done?this.selection.title:this.selection.disabled?i.yellow(this.warn):i.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let t=e;t<r;t++){let s,n,o="",a=this.choices[t];n=t===e&&e>0?u.arrowUp:t===r-1&&r<this.choices.length?u.arrowDown:" ",a.disabled?(s=this.cursor===t?i.gray().underline(a.title):i.strikethrough().gray(a.title),n=(this.cursor===t?i.bold().gray(u.pointer)+" ":" ")+n):(s=this.cursor===t?i.cyan().underline(a.title):a.title,n=(this.cursor===t?i.cyan(u.pointer)+" ":" ")+n,a.description&&this.cursor===t&&(o=` - ${a.description}`,(n.length+s.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+=`${n} ${s}${i.gray(o)}\n`}}this.out.write(this.outputText)}}},5075:(t,e,r)=>{function i(t,e,r,i,s,n,o){try{var a=t[n](o),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(i,s)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(s,n){var o=t.apply(e,r);function a(t){i(o,s,n,a,u,"next",t)}function u(t){i(o,s,n,a,u,"throw",t)}a(void 0)}))}}const n=r(8631),o=r(6930),a=r(6876),u=a.erase,l=a.cursor,c=r(7359),h=c.style,d=c.clear,p=c.lines,f=c.figures;t.exports=class extends o{constructor(t={}){super(t),this.transform=h.render(t.style),this.scale=this.transform.scale,this.msg=t.message,this.initial=t.initial||"",this.validator=t.validate||(()=>!0),this.value="",this.errorMsg=t.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=d("",this.out.columns),this.render()}set value(t){!t&&this.initial?(this.placeholder=!0,this.rendered=n.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(t)),this._value=t,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 t=this;return s((function*(){let e=yield t.validator(t.value);"string"==typeof e&&(t.errorMsg=e,e=!1),t.error=!e}))()}submit(){var t=this;return s((function*(){if(t.value=t.value||t.initial,t.cursorOffset=0,t.cursor=t.rendered.length,yield t.validate(),t.error)return t.red=!0,t.fire(),void t.render();t.done=!0,t.aborted=!1,t.fire(),t.render(),t.out.write("\n"),t.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial,this.cursor=this.rendered.length,this.fire(),this.render()}moveCursor(t){this.placeholder||(this.cursor=this.cursor+t,this.cursorOffset+=t)}_(t,e){let r=this.value.slice(0,this.cursor),i=this.value.slice(this.cursor);this.value=`${r}${t}${i}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1),e=this.value.slice(this.cursor);this.value=`${t}${e}`,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 t=this.value.slice(0,this.cursor),e=this.value.slice(this.cursor+1);this.value=`${t}${e}`,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),n.bold(this.msg),h.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":f.pointerSmall} ${n.red().italic(e)}`),"")),this.out.write(u.line+l.to(0)+this.outputText+l.save+this.outputError+l.restore+l.move(this.cursorOffset,0)))}}},1284:(t,e,r)=>{const i=r(8631),s=r(6930),n=r(7359),o=n.style,a=n.clear,u=r(6876),l=u.cursor,c=u.erase;t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.value=!!t.initial,this.active=t.active||"on",this.inactive=t.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()}_(t,e){if(" "===t)this.value=!this.value;else if("1"===t)this.value=!0;else{if("0"!==t)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),i.bold(this.msg),o.delimiter(this.done),this.value?this.inactive:i.cyan().underline(this.inactive),i.gray("/"),this.value?i.cyan().underline(this.active):this.active].join(" "),this.out.write(c.line+l.to(0)+this.outputText))}}},2742:(t,e,r)=>{function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0,s=function(){};return{s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},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 n,o=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){u=!0,n=t},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw n}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function u(t,e,r,i,s,n,o){try{var a=t[n](o),u=a.value}catch(t){return void r(t)}a.done?e(u):Promise.resolve(u).then(i,s)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(i,s){var n=t.apply(e,r);function o(t){u(n,i,s,o,a,"next",t)}function a(t){u(n,i,s,o,a,"throw",t)}o(void 0)}))}}const c=r(1493),h=["suggest","format","onState","validate","onRender","type"],d=()=>{};function p(){return f.apply(this,arguments)}function f(){return f=l((function*(t=[],{onSubmit:e=d,onCancel:r=d}={}){const i={},n=p._override||{};let a,u,f,g,D,y;t=[].concat(t);const v=function(){var t=l((function*(t,e,r=!1){if(r||!t.validate||!0===t.validate(e))return t.format?yield t.format(e,i):e}));return function(e,r){return t.apply(this,arguments)}}();var b,w=o(t);try{for(w.s();!(b=w.n()).done;){u=b.value;var E=u;if(g=E.name,D=E.type,"function"==typeof D&&(D=yield D(a,s({},i),u),u.type=D),D){for(let t in u){if(h.includes(t))continue;let e=u[t];u[t]="function"==typeof e?yield e(a,s({},i),y):e}if(y=u,"string"!=typeof u.message)throw new Error("prompt message is required");var F=u;if(g=F.name,D=F.type,void 0===c[D])throw new Error(`prompt type (${D}) is not defined`);if(void 0===n[u.name]||(a=yield v(u,n[u.name]),void 0===a)){try{a=p._injected?m(p._injected,u.initial):yield c[D](u),i[g]=a=yield v(u,a,!0),f=yield e(u,a,i)}catch(t){f=!(yield r(u,i))}if(f)return i}else i[g]=a}}}catch(t){w.e(t)}finally{w.f()}return i})),f.apply(this,arguments)}function m(t,e){const r=t.shift();if(r instanceof Error)throw r;return void 0===r?e:r}t.exports=Object.assign(p,{prompt:p,prompts:c,inject:function(t){p._injected=(p._injected||[]).concat(t)},override:function(t){p._override=Object.assign({},t)}})},1493:(t,e,r)=>{const i=e,s=r(162),n=t=>t;function o(t,e,r={}){return new Promise(((i,o)=>{const a=new s[t](e),u=r.onAbort||n,l=r.onSubmit||n,c=r.onExit||n;a.on("state",e.onState||n),a.on("submit",(t=>i(l(t)))),a.on("exit",(t=>i(c(t)))),a.on("abort",(t=>o(u(t))))}))}i.text=t=>o("TextPrompt",t),i.password=t=>(t.style="password",i.text(t)),i.invisible=t=>(t.style="invisible",i.text(t)),i.number=t=>o("NumberPrompt",t),i.date=t=>o("DatePrompt",t),i.confirm=t=>o("ConfirmPrompt",t),i.list=t=>{const e=t.separator||",";return o("TextPrompt",t,{onSubmit:t=>t.split(e).map((t=>t.trim()))})},i.toggle=t=>o("TogglePrompt",t),i.select=t=>o("SelectPrompt",t),i.multiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("MultiselectPrompt",t,{onAbort:e,onSubmit:e})},i.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};const a=(t,e)=>Promise.resolve(e.filter((e=>e.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));i.autocomplete=t=>(t.suggest=t.suggest||a,t.choices=[].concat(t.choices||[]),o("AutocompletePrompt",t))},2073:t=>{t.exports=(t,e)=>{if(!t.meta||"escape"===t.name){if(t.ctrl){if("a"===t.name)return"first";if("c"===t.name)return"abort";if("d"===t.name)return"abort";if("e"===t.name)return"last";if("g"===t.name)return"reset"}if(e){if("j"===t.name)return"down";if("k"===t.name)return"up"}return"return"===t.name||"enter"===t.name?"submit":"backspace"===t.name?"delete":"delete"===t.name?"deleteForward":"abort"===t.name?"abort":"escape"===t.name?"exit":"tab"===t.name?"next":"pagedown"===t.name?"nextPage":"pageup"===t.name?"prevPage":"home"===t.name?"home":"end"===t.name?"end":"up"===t.name?"up":"down"===t.name?"down":"right"===t.name?"right":"left"===t.name&&"left"}}},9338:(t,e,r)=>{function i(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}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(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}const n=r(7085),o=r(6876),a=o.erase,u=o.cursor;t.exports=function(t,e){if(!e)return a.line+u.to(0);let r=0;var s,o=i(t.split(/\r?\n/));try{for(o.s();!(s=o.n()).done;){let t=s.value;r+=1+Math.floor(Math.max([...n(t)].length-1,0)/e)}}catch(t){o.e(t)}finally{o.f()}return a.lines(r)}},1078:t=>{t.exports=(t,e,r)=>{r=r||e;let i=Math.min(e-r,t-Math.floor(r/2));return i<0&&(i=0),{startIndex:i,endIndex:Math.min(i+r,e)}}},606:t=>{const e={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:e.arrowUp,arrowDown:e.arrowDown,arrowLeft:e.arrowLeft,arrowRight:e.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221a",cross:"\xd7",ellipsis:"...",pointerSmall:"\xbb",line:"\u2500",pointer:">"},i="win32"===process.platform?r:e;t.exports=i},7359:(t,e,r)=>{t.exports={action:r(2073),clear:r(9338),style:r(9298),strip:r(7085),figures:r(606),lines:r(2268),wrap:r(9655),entriesToDisplay:r(1078)}},2268:(t,e,r)=>{const i=r(7085);t.exports=function(t,e){let r=String(i(t)||"").split(/\r?\n/);return e?r.map((t=>Math.ceil(t.length/e))).reduce(((t,e)=>t+e)):r.length}},7085:t=>{t.exports=t=>{const e=["[\\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(e,"g");return"string"==typeof t?t.replace(r,""):t}},9298:(t,e,r)=>{const i=r(8631),s=r(606),n=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1f603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),o=Object.freeze({aborted:i.red(s.cross),done:i.green(s.tick),exited:i.yellow(s.cross),default:i.cyan("?")});t.exports={styles:n,render:t=>n[t]||n.default,symbols:o,symbol:(t,e,r)=>e?o.aborted:r?o.exited:t?o.done:o.default,delimiter:t=>i.gray(t?s.ellipsis:s.pointerSmall),item:(t,e)=>i.gray(t?e?s.pointerSmall:"+":s.line)}},9655:t=>{t.exports=(t,e={})=>{const r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",i=e.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,e)=>(e.length+r.length>=i||t[t.length-1].length+e.length+1<i?t[t.length-1]+=` ${e}`:t.push(`${r}${e}`),t)),[r]).join("\n"))).join("\n")}},4653:(t,e,r)=>{t.exports=function(t){t=(Array.isArray(t)?t:t.split(".")).map(Number);let e=0,r=process.versions.node.split(".").map(Number);for(;e<t.length;e++){if(r[e]>t[e])return!1;if(t[e]>r[e])return!0}return!1}("8.6.0")?r(2742):r(1285)},3399:t=>{class e{constructor({token:t,date:e,parts:r,locales:i}){this.token=t,this.date=e||new Date,this.parts=r||[this],this.locales=i||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,i)=>i>t&&r instanceof e))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,i)=>i>r&&t instanceof e))}toString(){return String(this.date)}}t.exports=e},4758:(t,e,r)=>{const i=r(3399);t.exports=class extends i{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate(),e=this.date.getDay();return"DD"===this.token?String(t).padStart(2,"0"):"Do"===this.token?t+(r=t,1==(r%=10)?"st":2===r?"nd":3===r?"rd":"th"):"d"===this.token?e+1:"ddd"===this.token?this.locales.weekdaysShort[e]:"dddd"===this.token?this.locales.weekdays[e]:t;var r}}},4091:(t,e,r)=>{const i=r(3399);t.exports=class extends i{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();return/h/.test(this.token)&&(t=t%12||12),this.token.length>1?String(t).padStart(2,"0"):t}}},2536:(t,e,r)=>{t.exports={DatePart:r(3399),Meridiem:r(9560),Day:r(4758),Hours:r(4091),Milliseconds:r(8960),Minutes:r(4625),Month:r(5942),Seconds:r(1853),Year:r(499)}},9560:(t,e,r)=>{const i=r(3399);t.exports=class extends i{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}},8960:(t,e,r)=>{const i=r(3399);t.exports=class extends i{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}},4625:(t,e,r)=>{const i=r(3399);t.exports=class extends i{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}},5942:(t,e,r)=>{const i=r(3399);t.exports=class extends i{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1,this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth(),e=this.token.length;return 2===e?String(t+1).padStart(2,"0"):3===e?this.locales.monthsShort[t]:4===e?this.locales.months[t]:String(t+1)}}},1853:(t,e,r)=>{const i=r(3399);t.exports=class extends i{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}},499:(t,e,r)=>{const i=r(3399);t.exports=class extends i{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return 2===this.token.length?t.substr(-2):t}}},7339:(t,e,r)=>{const i=r(8631),s=r(1057),{erase:n,cursor:o}=r(6876),{style:a,clear:u,figures:l,wrap:c,entriesToDisplay:h}=r(5342),d=(t,e)=>t[e]&&(t[e].value||t[e].title||t[e]),p=(t,e)=>t[e]&&(t[e].title||t[e].value||t[e]);t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.suggest=t.suggest,this.choices=t.choices,this.initial="number"==typeof t.initial?t.initial:((t,e)=>{const r=t.findIndex((t=>t.value===e||t.title===e));return r>-1?r:void 0})(t.choices,t.initial),this.select=this.initial||t.cursor||0,this.i18n={noMatches:t.noMatches||"no matches found"},this.fallback=t.fallback||this.initial,this.clearFirst=t.clearFirst||!1,this.suggestions=[],this.input="",this.limit=t.limit||10,this.cursor=0,this.transform=a.render(t.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(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;return"number"==typeof this._fb?t=this.choices[this._fb]:"string"==typeof this._fb&&(t={title:this._fb}),t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t,this.suggestions.length>0?this.value=d(this.suggestions,t):this.value=this.fallback.value,this.fire()}async complete(t){const e=this.completing=this.suggest(this.input,this.choices),r=await e;if(this.completing!==e)return;this.suggestions=r.map(((t,e,r)=>({title:p(r,e),value:d(r,e),description:t.description}))),this.completing=!1;const i=Math.max(r.length-1,0);this.moveSelect(Math.min(i,this.select)),t&&t()}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()}_(t,e){let r=this.input.slice(0,this.cursor),i=this.input.slice(this.cursor);this.input=`${r}${t}${i}`,this.cursor=r.length+1,this.complete(this.render),this.render()}delete(){if(0===this.cursor)return this.bell();let t=this.input.slice(0,this.cursor-1),e=this.input.slice(this.cursor);this.input=`${t}${e}`,this.complete(this.render),this.cursor=this.cursor-1,this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor),e=this.input.slice(this.cursor+1);this.input=`${t}${e}`,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(t,e,r,s){let n,o=r?l.arrowUp:s?l.arrowDown:" ",a=e?i.cyan().underline(t.title):t.title;return o=(e?i.cyan(l.pointer)+" ":" ")+o,t.description&&(n=` - ${t.description}`,(o.length+a.length+n.length>=this.out.columns||t.description.split(/\r?\n/).length>1)&&(n="\n"+c(t.description,{margin:3,width:this.out.columns}))),o+" "+a+i.gray(n||"")}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:t,endIndex:e}=h(this.select,this.choices.length,this.limit);if(this.outputText=[a.symbol(this.done,this.aborted,this.exited),i.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(t,e).map(((r,i)=>this.renderOption(r,this.select===i+t,0===i&&t>0,i+t===e-1&&e<this.choices.length))).join("\n");this.outputText+="\n"+(r||i.gray(this.fallback.title))}this.out.write(n.line+o.to(0)+this.outputText)}}},1706:(t,e,r)=>{const i=r(8631),{cursor:s}=r(6876),n=r(3790),{clear:o,style:a,figures:u}=r(5342);t.exports=class extends n{constructor(t={}){t.overrideRender=!0,super(t),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((t=>t.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 t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>!this.inputValue||(!("string"!=typeof t.title||!t.title.toLowerCase().includes(this.inputValue.toLowerCase()))||!("string"!=typeof t.value||!t.value.toLowerCase().includes(this.inputValue.toLowerCase())))));const e=this.filteredOptions.findIndex((e=>e===t));this.cursor=e<0?0:e,this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t,this.updateFilteredOptions()}_(t,e){" "===t?this.handleSpaceToggle():this.handleInputChange(t)}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:i.gray("Enter something to filter")}\n`}renderOption(t,e,r){let s;return s=e.disabled?t===r?i.gray().underline(e.title):i.strikethrough().gray(e.title):t===r?i.cyan().underline(e.title):e.title,(e.selected?i.green(u.radioOn):u.radioOff)+" "+s}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[i.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];return this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled&&t.push(i.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(s.hide),super.render();let t=[a.symbol(this.done,this.aborted),i.bold(this.msg),a.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=i.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.filteredOptions),this.out.write(this.clear+t),this.clear=o(t,this.out.columns)}}},2159:(t,e,r)=>{const i=r(8631),s=r(1057),{style:n,clear:o}=r(5342),{erase:a,cursor:u}=r(6876);t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.value=t.initial,this.initialValue=!!t.initial,this.yesMsg=t.yes||"yes",this.yesOption=t.yesOption||"(Y/n)",this.noMsg=t.no||"no",this.noOption=t.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()}_(t,e){return"y"===t.toLowerCase()?(this.value=!0,this.submit()):"n"===t.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=[n.symbol(this.done,this.aborted),i.bold(this.msg),n.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:i.gray(this.initialValue?this.yesOption:this.noOption)].join(" "),this.out.write(a.line+u.to(0)+this.outputText))}}},4795:(t,e,r)=>{const i=r(8631),s=r(1057),{style:n,clear:o,figures:a}=r(5342),{erase:u,cursor:l}=r(6876),{DatePart:c,Meridiem:h,Day:d,Hours:p,Milliseconds:f,Minutes:m,Month:g,Seconds:D,Year:y}=r(2536),v=/\\(.)|"((?:\\["\\]|[^"])+)"|(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,b={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new d(t),3:t=>new g(t),4:t=>new y(t),5:t=>new h(t),6:t=>new p(t),7:t=>new m(t),8:t=>new D(t),9:t=>new f(t)},w={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(",")};t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.cursor=0,this.typed="",this.locales=Object.assign(w,t.locales),this._date=t.initial||new Date,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.mask=t.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(t){t&&this._date.setTime(t.getTime())}set mask(t){let e;for(this.parts=[];e=v.exec(t);){let t=e.shift(),r=e.findIndex((t=>null!=t));this.parts.push(r in b?b[r]({token:e[r]||t,date:this.date,parts:this.parts,locales:this.locales}):e[r]||t)}let r=this.parts.reduce(((t,e)=>("string"==typeof e&&"string"==typeof t[t.length-1]?t[t.length-1]+=e:t.push(e),t)),[]);this.parts.splice(0),this.parts.push(...r),this.reset()}moveCursor(t){this.typed="",this.cursor=t,this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t 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 t=await this.validator(this.value);"string"==typeof t&&(this.errorMsg=t,t=!1),this.error=!t}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 t=this.parts[this.cursor].prev();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}right(){let t=this.parts[this.cursor].next();if(null==t)return this.bell();this.moveCursor(this.parts.indexOf(t)),this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof c))),this.render()}_(t){/\d/.test(t)&&(this.typed+=t,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=[n.symbol(this.done,this.aborted),i.bold(this.msg),n.delimiter(!1),this.parts.reduce(((t,e,r)=>t.concat(r!==this.cursor||this.done?e:i.cyan().underline(e.toString()))),[]).join("")].join(" "),this.error&&(this.outputText+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":a.pointerSmall} ${i.red().italic(e)}`),"")),this.out.write(u.line+l.to(0)+this.outputText))}}},9867:(t,e,r)=>{t.exports={TextPrompt:r(3060),SelectPrompt:r(5551),TogglePrompt:r(8475),DatePrompt:r(4795),NumberPrompt:r(626),MultiselectPrompt:r(3790),AutocompletePrompt:r(7339),AutocompleteMultiselectPrompt:r(1706),ConfirmPrompt:r(2159)}},3790:(t,e,r)=>{const i=r(8631),{cursor:s}=r(6876),n=r(1057),{clear:o,figures:a,style:u,wrap:l,entriesToDisplay:c}=r(5342);t.exports=class extends n{constructor(t={}){super(t),this.msg=t.message,this.cursor=t.cursor||0,this.scrollIndex=t.cursor||0,this.hint=t.hint||"",this.warn=t.warn||"- This option is disabled -",this.minSelected=t.min,this.showMinError=!1,this.maxChoices=t.max,this.instructions=t.instructions,this.optionsPerPage=t.optionsPerPage||10,this.value=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(void 0===t.value?e:t.value),selected:t&&t.selected,disabled:t&&t.disabled}))),this.clear=o("",this.out.columns),t.overrideRender||this.render()}reset(){this.value.map((t=>!t.selected)),this.cursor=0,this.fire(),this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=!0,this.fire(),this.render(),this.out.write("\n"),this.close()}submit(){const t=this.value.filter((t=>t.selected));this.minSelected&&t.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((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=!0,this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected)t.selected=!1,this.render();else{if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();t.selected=!0,this.render()}}toggleAll(){if(void 0!==this.maxChoices||this.value[this.cursor].disabled)return this.bell();const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((e=>e.selected=t)),this.render()}_(t,e){if(" "===t)this.handleSpaceToggle();else{if("a"!==t)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(t,e,r,s){const n=(e.selected?i.green(a.radioOn):a.radioOff)+" "+s+" ";let o,u;return e.disabled?o=t===r?i.gray().underline(e.title):i.strikethrough().gray(e.title):(o=t===r?i.cyan().underline(e.title):e.title,t===r&&e.description&&(u=` - ${e.description}`,(n.length+o.length+u.length>=this.out.columns||e.description.split(/\r?\n/).length>1)&&(u="\n"+l(e.description,{margin:n.length,width:this.out.columns})))),n+o+i.gray(u||"")}paginateOptions(t){if(0===t.length)return i.red("No matches for this query.");let e,{startIndex:r,endIndex:s}=c(this.cursor,t.length,this.optionsPerPage),n=[];for(let i=r;i<s;i++)e=i===r&&r>0?a.arrowUp:i===s-1&&s<t.length?a.arrowDown:" ",n.push(this.renderOption(this.cursor,t[i],i,e));return"\n"+n.join("\n")}renderOptions(t){return this.done?"":this.paginateOptions(t)}renderDoneOrInstructions(){if(this.done)return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ");const t=[i.gray(this.hint),this.renderInstructions()];return this.value[this.cursor].disabled&&t.push(i.yellow(this.warn)),t.join(" ")}render(){if(this.closed)return;this.firstRender&&this.out.write(s.hide),super.render();let t=[u.symbol(this.done,this.aborted),i.bold(this.msg),u.delimiter(!1),this.renderDoneOrInstructions()].join(" ");this.showMinError&&(t+=i.red(`You must select a minimum of ${this.minSelected} choices.`),this.showMinError=!1),t+=this.renderOptions(this.value),this.out.write(this.clear+t),this.clear=o(t,this.out.columns)}}},626:(t,e,r)=>{const i=r(8631),s=r(1057),{cursor:n,erase:o}=r(6876),{style:a,figures:u,clear:l,lines:c}=r(5342),h=/[0-9]/,d=t=>void 0!==t,p=(t,e)=>{let r=Math.pow(10,e);return Math.round(t*r)/r};t.exports=class extends s{constructor(t={}){super(t),this.transform=a.render(t.style),this.msg=t.message,this.initial=d(t.initial)?t.initial:"",this.float=!!t.float,this.round=t.round||2,this.inc=t.increment||1,this.min=d(t.min)?t.min:-1/0,this.max=d(t.max)?t.max:1/0,this.errorMsg=t.error||"Please Enter A Valid Value",this.validator=t.validate||(()=>!0),this.color="cyan",this.value="",this.typed="",this.lastHit=0,this.render()}set value(t){t||0===t?(this.placeholder=!1,this.rendered=this.transform.render(`${p(t,this.round)}`),this._value=p(t,this.round)):(this.placeholder=!0,this.rendered=i.gray(this.transform.render(`${this.initial}`)),this._value=""),this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return"-"===t||"."===t&&this.float||h.test(t)}reset(){this.typed="",this.value="",this.fire(),this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=""!==t?t:this.initial,this.done=this.aborted=!0,this.error=!1,this.fire(),this.render(),this.out.write("\n"),this.close()}async validate(){let t=await this.validator(this.value);"string"==typeof t&&(this.errorMsg=t,t=!1),this.error=!t}async submit(){if(await this.validate(),this.error)return this.color="red",this.fire(),void this.render();let t=this.value;this.value=""!==t?t: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 t=this.value.toString();if(0===t.length)return this.bell();this.value=this.parse(t=t.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()}_(t,e){if(!this.valid(t))return this.bell();const r=Date.now();if(r-this.lastHit>1e3&&(this.typed=""),this.typed+=t,this.lastHit=r,this.color="cyan","."===t)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(n.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),i.bold(this.msg),a.delimiter(this.done),this.done&&(this.done||this.placeholder)?this.rendered:i[this.color]().underline(this.rendered)].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":u.pointerSmall} ${i.red().italic(e)}`),"")),this.out.write(o.line+n.to(0)+this.outputText+n.save+this.outputError+n.restore))}}},1057:(t,e,r)=>{const i=r(3785),{action:s}=r(5342),n=r(4434),{beep:o,cursor:a}=r(6876),u=r(8631);t.exports=class extends n{constructor(t={}){super(),this.firstRender=!0,this.in=t.stdin||process.stdin,this.out=t.stdout||process.stdout,this.onRender=(t.onRender||(()=>{})).bind(this);const e=i.createInterface({input:this.in,escapeCodeTimeout:50});i.emitKeypressEvents(this.in,e),this.in.isTTY&&this.in.setRawMode(!0);const r=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1,n=(t,e)=>{let i=s(e,r);!1===i?this._&&this._(t,e):"function"==typeof this[i]?this[i](e):this.bell()};this.close=()=>{this.out.write(a.show),this.in.removeListener("keypress",n),this.in.isTTY&&this.in.setRawMode(!1),e.close(),this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value),this.closed=!0},this.in.on("keypress",n)}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)}}},5551:(t,e,r)=>{const i=r(8631),s=r(1057),{style:n,clear:o,figures:a,wrap:u,entriesToDisplay:l}=r(5342),{cursor:c}=r(6876);t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.hint=t.hint||"- Use arrow-keys. Return to submit.",this.warn=t.warn||"- This option is disabled",this.cursor=t.initial||0,this.choices=t.choices.map(((t,e)=>("string"==typeof t&&(t={title:t,value:e}),{title:t&&(t.title||t.value||t),value:t&&(void 0===t.value?e:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}))),this.optionsPerPage=t.optionsPerPage||10,this.value=(this.choices[this.cursor]||{}).value,this.clear=o("",this.out.columns),this.render()}moveCursor(t){this.cursor=t,this.value=this.choices[t].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()}_(t,e){if(" "===t)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:t,endIndex:e}=l(this.cursor,this.choices.length,this.optionsPerPage);if(this.outputText=[n.symbol(this.done,this.aborted),i.bold(this.msg),n.delimiter(!1),this.done?this.selection.title:this.selection.disabled?i.yellow(this.warn):i.gray(this.hint)].join(" "),!this.done){this.outputText+="\n";for(let r=t;r<e;r++){let s,n,o="",l=this.choices[r];n=r===t&&t>0?a.arrowUp:r===e-1&&e<this.choices.length?a.arrowDown:" ",l.disabled?(s=this.cursor===r?i.gray().underline(l.title):i.strikethrough().gray(l.title),n=(this.cursor===r?i.bold().gray(a.pointer)+" ":" ")+n):(s=this.cursor===r?i.cyan().underline(l.title):l.title,n=(this.cursor===r?i.cyan(a.pointer)+" ":" ")+n,l.description&&this.cursor===r&&(o=` - ${l.description}`,(n.length+s.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+=`${n} ${s}${i.gray(o)}\n`}}this.out.write(this.outputText)}}},3060:(t,e,r)=>{const i=r(8631),s=r(1057),{erase:n,cursor:o}=r(6876),{style:a,clear:u,lines:l,figures:c}=r(5342);t.exports=class extends s{constructor(t={}){super(t),this.transform=a.render(t.style),this.scale=this.transform.scale,this.msg=t.message,this.initial=t.initial||"",this.validator=t.validate||(()=>!0),this.value="",this.errorMsg=t.error||"Please Enter A Valid Value",this.cursor=Number(!!this.initial),this.cursorOffset=0,this.clear=u("",this.out.columns),this.render()}set value(t){!t&&this.initial?(this.placeholder=!0,this.rendered=i.gray(this.transform.render(this.initial))):(this.placeholder=!1,this.rendered=this.transform.render(t)),this._value=t,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 t=await this.validator(this.value);"string"==typeof t&&(this.errorMsg=t,t=!1),this.error=!t}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(t){this.placeholder||(this.cursor=this.cursor+t,this.cursorOffset+=t)}_(t,e){let r=this.value.slice(0,this.cursor),i=this.value.slice(this.cursor);this.value=`${r}${t}${i}`,this.red=!1,this.cursor=this.placeholder?0:r.length+1,this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1),e=this.value.slice(this.cursor);this.value=`${t}${e}`,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 t=this.value.slice(0,this.cursor),e=this.value.slice(this.cursor+1);this.value=`${t}${e}`,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),i.bold(this.msg),a.delimiter(this.done),this.red?i.red(this.rendered):this.rendered].join(" "),this.error&&(this.outputError+=this.errorMsg.split("\n").reduce(((t,e,r)=>t+`\n${r?" ":c.pointerSmall} ${i.red().italic(e)}`),"")),this.out.write(n.line+o.to(0)+this.outputText+o.save+this.outputError+o.restore+o.move(this.cursorOffset,0)))}}},8475:(t,e,r)=>{const i=r(8631),s=r(1057),{style:n,clear:o}=r(5342),{cursor:a,erase:u}=r(6876);t.exports=class extends s{constructor(t={}){super(t),this.msg=t.message,this.value=!!t.initial,this.active=t.active||"on",this.inactive=t.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()}_(t,e){if(" "===t)this.value=!this.value;else if("1"===t)this.value=!0;else{if("0"!==t)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=[n.symbol(this.done,this.aborted),i.bold(this.msg),n.delimiter(this.done),this.value?this.inactive:i.cyan().underline(this.inactive),i.gray("/"),this.value?i.cyan().underline(this.active):this.active].join(" "),this.out.write(u.line+a.to(0)+this.outputText))}}},1285:(t,e,r)=>{const i=r(3334),s=["suggest","format","onState","validate","onRender","type"],n=()=>{};async function o(t=[],{onSubmit:e=n,onCancel:r=n}={}){const u={},l=o._override||{};let c,h,d,p,f,m;t=[].concat(t);const g=async(t,e,r=!1)=>{if(r||!t.validate||!0===t.validate(e))return t.format?await t.format(e,u):e};for(h of t)if(({name:p,type:f}=h),"function"==typeof f&&(f=await f(c,{...u},h),h.type=f),f){for(let t in h){if(s.includes(t))continue;let e=h[t];h[t]="function"==typeof e?await e(c,{...u},m):e}if(m=h,"string"!=typeof h.message)throw new Error("prompt message is required");if(({name:p,type:f}=h),void 0===i[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 i[f](h),u[p]=c=await g(h,c,!0),d=await e(h,c,u)}catch(t){d=!await r(h,u)}if(d)return u}else u[p]=c}return u}function a(t,e){const r=t.shift();if(r instanceof Error)throw r;return void 0===r?e:r}t.exports=Object.assign(o,{prompt:o,prompts:i,inject:function(t){o._injected=(o._injected||[]).concat(t)},override:function(t){o._override=Object.assign({},t)}})},3334:(t,e,r)=>{const i=e,s=r(9867),n=t=>t;function o(t,e,r={}){return new Promise(((i,o)=>{const a=new s[t](e),u=r.onAbort||n,l=r.onSubmit||n,c=r.onExit||n;a.on("state",e.onState||n),a.on("submit",(t=>i(l(t)))),a.on("exit",(t=>i(c(t)))),a.on("abort",(t=>o(u(t))))}))}i.text=t=>o("TextPrompt",t),i.password=t=>(t.style="password",i.text(t)),i.invisible=t=>(t.style="invisible",i.text(t)),i.number=t=>o("NumberPrompt",t),i.date=t=>o("DatePrompt",t),i.confirm=t=>o("ConfirmPrompt",t),i.list=t=>{const e=t.separator||",";return o("TextPrompt",t,{onSubmit:t=>t.split(e).map((t=>t.trim()))})},i.toggle=t=>o("TogglePrompt",t),i.select=t=>o("SelectPrompt",t),i.multiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("MultiselectPrompt",t,{onAbort:e,onSubmit:e})},i.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const e=t=>t.filter((t=>t.selected)).map((t=>t.value));return o("AutocompleteMultiselectPrompt",t,{onAbort:e,onSubmit:e})};const a=(t,e)=>Promise.resolve(e.filter((e=>e.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));i.autocomplete=t=>(t.suggest=t.suggest||a,t.choices=[].concat(t.choices||[]),o("AutocompletePrompt",t))},4886:t=>{t.exports=(t,e)=>{if(!t.meta||"escape"===t.name){if(t.ctrl){if("a"===t.name)return"first";if("c"===t.name)return"abort";if("d"===t.name)return"abort";if("e"===t.name)return"last";if("g"===t.name)return"reset"}if(e){if("j"===t.name)return"down";if("k"===t.name)return"up"}return"return"===t.name||"enter"===t.name?"submit":"backspace"===t.name?"delete":"delete"===t.name?"deleteForward":"abort"===t.name?"abort":"escape"===t.name?"exit":"tab"===t.name?"next":"pagedown"===t.name?"nextPage":"pageup"===t.name?"prevPage":"home"===t.name?"home":"end"===t.name?"end":"up"===t.name?"up":"down"===t.name?"down":"right"===t.name?"right":"left"===t.name&&"left"}}},4207:(t,e,r)=>{const i=r(2092),{erase:s,cursor:n}=r(6876);t.exports=function(t,e){if(!e)return s.line+n.to(0);let r=0;const o=t.split(/\r?\n/);for(let t of o)r+=1+Math.floor(Math.max([...i(t)].length-1,0)/e);return s.lines(r)}},7413:t=>{t.exports=(t,e,r)=>{r=r||e;let i=Math.min(e-r,t-Math.floor(r/2));return i<0&&(i=0),{startIndex:i,endIndex:Math.min(i+r,e)}}},9947:t=>{const e={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:e.arrowUp,arrowDown:e.arrowDown,arrowLeft:e.arrowLeft,arrowRight:e.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"\u221a",cross:"\xd7",ellipsis:"...",pointerSmall:"\xbb",line:"\u2500",pointer:">"},i="win32"===process.platform?r:e;t.exports=i},5342:(t,e,r)=>{t.exports={action:r(4886),clear:r(4207),style:r(4407),strip:r(2092),figures:r(9947),lines:r(5637),wrap:r(1748),entriesToDisplay:r(7413)}},5637:(t,e,r)=>{const i=r(2092);t.exports=function(t,e){let r=String(i(t)||"").split(/\r?\n/);return e?r.map((t=>Math.ceil(t.length/e))).reduce(((t,e)=>t+e)):r.length}},2092:t=>{t.exports=t=>{const e=["[\\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(e,"g");return"string"==typeof t?t.replace(r,""):t}},4407:(t,e,r)=>{const i=r(8631),s=r(9947),n=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"\u{1f603}".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}}),o=Object.freeze({aborted:i.red(s.cross),done:i.green(s.tick),exited:i.yellow(s.cross),default:i.cyan("?")});t.exports={styles:n,render:t=>n[t]||n.default,symbols:o,symbol:(t,e,r)=>e?o.aborted:r?o.exited:t?o.done:o.default,delimiter:t=>i.gray(t?s.ellipsis:s.pointerSmall),item:(t,e)=>i.gray(t?e?s.pointerSmall:"+":s.line)}},1748:t=>{t.exports=(t,e={})=>{const r=Number.isSafeInteger(parseInt(e.margin))?new Array(parseInt(e.margin)).fill(" ").join(""):e.margin||"",i=e.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,e)=>(e.length+r.length>=i||t[t.length-1].length+e.length+1<i?t[t.length-1]+=` ${e}`:t.push(`${r}${e}`),t)),[r]).join("\n"))).join("\n")}},3004:(t,e,r)=>{"pseudomap"===process.env.npm_package_name&&"test"===process.env.npm_lifecycle_script&&(process.env.TEST_PSEUDOMAP="true"),"function"!=typeof Map||process.env.TEST_PSEUDOMAP?t.exports=r(7518):t.exports=Map},7518:t=>{var e=Object.prototype.hasOwnProperty;function r(t){if(!(this instanceof r))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),t)if(t instanceof r||"function"==typeof Map&&t instanceof Map)t.forEach((function(t,e){this.set(e,t)}),this);else{if(!Array.isArray(t))throw new TypeError("invalid argument");t.forEach((function(t){this.set(t[0],t[1])}),this)}}function i(t,e){return t===e||t!=t&&e!=e}function s(t,e,r){this.key=t,this.value=e,this._index=r}function n(t,r){for(var s=0,n="_"+r,o=n;e.call(t,o);o=n+s++)if(i(t[o].key,r))return t[o]}t.exports=r,r.prototype.forEach=function(t,e){e=e||this,Object.keys(this._data).forEach((function(r){"size"!==r&&t.call(e,this._data[r].value,this._data[r].key)}),this)},r.prototype.has=function(t){return!!n(this._data,t)},r.prototype.get=function(t){var e=n(this._data,t);return e&&e.value},r.prototype.set=function(t,r){!function(t,r,n){for(var o=0,a="_"+r,u=a;e.call(t,u);u=a+o++)if(i(t[u].key,r))return void(t[u].value=n);t.size++,t[u]=new s(r,n,u)}(this._data,t,r)},r.prototype.delete=function(t){var e=n(this._data,t);e&&(delete this._data[e._index],this._data.size--)},r.prototype.clear=function(){var t=Object.create(null);t.size=0,Object.defineProperty(this,"_data",{value:t,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(r.prototype,"size",{get:function(){return this._data.size},set:function(t){},enumerable:!0,configurable:!0}),r.prototype.values=r.prototype.keys=r.prototype.entries=function(){throw new Error("iterators are not implemented in this version")}},1565:(t,e,r)=>{const i=Symbol("SemVer ANY");class s{static get ANY(){return i}constructor(t,e){if(e=n(e),t instanceof s){if(t.loose===!!e.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),l("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===i?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(t){const e=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],r=t.match(e);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=i}toString(){return this.value}test(t){if(l("Comparator.test",t,this.options.loose),this.semver===i||t===i)return!0;if("string"==typeof t)try{t=new c(t,this.options)}catch(t){return!1}return u(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof s))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new h(t.value,e).test(this.value):""===t.operator?""===t.value||new h(this.value,e).test(t.semver):(!(e=n(e)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==t.value)&&(!(!e.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!t.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!t.operator.startsWith("<"))||(!(this.semver.version!==t.semver.version||!this.operator.includes("=")||!t.operator.includes("="))||(!!(u(this.semver,"<",t.semver,e)&&this.operator.startsWith(">")&&t.operator.startsWith("<"))||!!(u(this.semver,">",t.semver,e)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))))))}}t.exports=s;const n=r(3990),{safeRe:o,t:a}=r(2841),u=r(4004),l=r(1361),c=r(4517),h=r(7476)},7476:(t,e,r)=>{class i{constructor(t,e){if(e=n(e),t instanceof i)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new i(t.raw,e);if(t instanceof o)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter((t=>!g(t[0]))),0===this.set.length)this.set=[t];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&D(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((t=>t.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(t){const e=((this.options.includePrerelease&&f)|(this.options.loose&&m))+":"+t,r=s.get(e);if(r)return r;const i=this.options.loose,n=i?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];t=t.replace(n,A(this.options.includePrerelease)),a("hyphen replace",t),t=t.replace(l[c.COMPARATORTRIM],h),a("comparator trim",t),t=t.replace(l[c.TILDETRIM],d),a("tilde trim",t),t=t.replace(l[c.CARETTRIM],p),a("caret trim",t);let u=t.split(" ").map((t=>v(t,this.options))).join(" ").split(/\s+/).map((t=>S(t,this.options)));i&&(u=u.filter((t=>(a("loose invalid filter",t,this.options),!!t.match(l[c.COMPARATORLOOSE]))))),a("range list",u);const D=new Map,y=u.map((t=>new o(t,this.options)));for(const t of y){if(g(t))return[t];D.set(t.value,t)}D.size>1&&D.has("")&&D.delete("");const b=[...D.values()];return s.set(e,b),b}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Range is required");return this.set.some((r=>y(r,e)&&t.set.some((t=>y(t,e)&&r.every((r=>t.every((t=>r.intersects(t,e)))))))))}test(t){if(!t)return!1;if("string"==typeof t)try{t=new u(t,this.options)}catch(t){return!1}for(let e=0;e<this.set.length;e++)if(T(this.set[e],t,this.options))return!0;return!1}}t.exports=i;const s=new(r(3624))({max:1e3}),n=r(3990),o=r(1565),a=r(1361),u=r(4517),{safeRe:l,t:c,comparatorTrimReplace:h,tildeTrimReplace:d,caretTrimReplace:p}=r(2841),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:m}=r(9543),g=t=>"<0.0.0-0"===t.value,D=t=>""===t.value,y=(t,e)=>{let r=!0;const i=t.slice();let s=i.pop();for(;r&&i.length;)r=i.every((t=>s.intersects(t,e))),s=i.pop();return r},v=(t,e)=>(a("comp",t,e),t=F(t,e),a("caret",t),t=w(t,e),a("tildes",t),t=x(t,e),a("xrange",t),t=O(t,e),a("stars",t),t),b=t=>!t||"x"===t.toLowerCase()||"*"===t,w=(t,e)=>t.trim().split(/\s+/).map((t=>E(t,e))).join(" "),E=(t,e)=>{const r=e.loose?l[c.TILDELOOSE]:l[c.TILDE];return t.replace(r,((e,r,i,s,n)=>{let o;return a("tilde",t,e,r,i,s,n),b(r)?o="":b(i)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:b(s)?o=`>=${r}.${i}.0 <${r}.${+i+1}.0-0`:n?(a("replaceTilde pr",n),o=`>=${r}.${i}.${s}-${n} <${r}.${+i+1}.0-0`):o=`>=${r}.${i}.${s} <${r}.${+i+1}.0-0`,a("tilde return",o),o}))},F=(t,e)=>t.trim().split(/\s+/).map((t=>C(t,e))).join(" "),C=(t,e)=>{a("caret",t,e);const r=e.loose?l[c.CARETLOOSE]:l[c.CARET],i=e.includePrerelease?"-0":"";return t.replace(r,((e,r,s,n,o)=>{let u;return a("caret",t,e,r,s,n,o),b(r)?u="":b(s)?u=`>=${r}.0.0${i} <${+r+1}.0.0-0`:b(n)?u="0"===r?`>=${r}.${s}.0${i} <${r}.${+s+1}.0-0`:`>=${r}.${s}.0${i} <${+r+1}.0.0-0`:o?(a("replaceCaret pr",o),u="0"===r?"0"===s?`>=${r}.${s}.${n}-${o} <${r}.${s}.${+n+1}-0`:`>=${r}.${s}.${n}-${o} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${n}-${o} <${+r+1}.0.0-0`):(a("no pr"),u="0"===r?"0"===s?`>=${r}.${s}.${n}${i} <${r}.${s}.${+n+1}-0`:`>=${r}.${s}.${n}${i} <${r}.${+s+1}.0-0`:`>=${r}.${s}.${n} <${+r+1}.0.0-0`),a("caret return",u),u}))},x=(t,e)=>(a("replaceXRanges",t,e),t.split(/\s+/).map((t=>_(t,e))).join(" ")),_=(t,e)=>{t=t.trim();const r=e.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return t.replace(r,((r,i,s,n,o,u)=>{a("xRange",t,r,i,s,n,o,u);const l=b(s),c=l||b(n),h=c||b(o),d=h;return"="===i&&d&&(i=""),u=e.includePrerelease?"-0":"",l?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&d?(c&&(n=0),o=0,">"===i?(i=">=",c?(s=+s+1,n=0,o=0):(n=+n+1,o=0)):"<="===i&&(i="<",c?s=+s+1:n=+n+1),"<"===i&&(u="-0"),r=`${i+s}.${n}.${o}${u}`):c?r=`>=${s}.0.0${u} <${+s+1}.0.0-0`:h&&(r=`>=${s}.${n}.0${u} <${s}.${+n+1}.0-0`),a("xRange return",r),r}))},O=(t,e)=>(a("replaceStars",t,e),t.trim().replace(l[c.STAR],"")),S=(t,e)=>(a("replaceGTE0",t,e),t.trim().replace(l[e.includePrerelease?c.GTE0PRE:c.GTE0],"")),A=t=>(e,r,i,s,n,o,a,u,l,c,h,d,p)=>`${r=b(i)?"":b(s)?`>=${i}.0.0${t?"-0":""}`:b(n)?`>=${i}.${s}.0${t?"-0":""}`:o?`>=${r}`:`>=${r}${t?"-0":""}`} ${u=b(l)?"":b(c)?`<${+l+1}.0.0-0`:b(h)?`<${l}.${+c+1}.0-0`:d?`<=${l}.${c}.${h}-${d}`:t?`<${l}.${c}.${+h+1}-0`:`<=${u}`}`.trim(),T=(t,e,r)=>{for(let r=0;r<t.length;r++)if(!t[r].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let r=0;r<t.length;r++)if(a(t[r].semver),t[r].semver!==o.ANY&&t[r].semver.prerelease.length>0){const i=t[r].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0}},4517:(t,e,r)=>{const i=r(1361),{MAX_LENGTH:s,MAX_SAFE_INTEGER:n}=r(9543),{safeRe:o,t:a}=r(2841),u=r(3990),{compareIdentifiers:l}=r(3806);class c{constructor(t,e){if(e=u(e),t instanceof c){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>s)throw new TypeError(`version is longer than ${s} characters`);i("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const r=t.trim().match(e.loose?o[a.LOOSE]:o[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<n)return e}return t})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(i("SemVer.compare",this.version,this.options,t),!(t instanceof c)){if("string"==typeof t&&t===this.version)return 0;t=new c(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof c||(t=new c(t,this.options)),l(this.major,t.major)||l(this.minor,t.minor)||l(this.patch,t.patch)}comparePre(t){if(t instanceof c||(t=new c(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{const r=this.prerelease[e],s=t.prerelease[e];if(i("prerelease compare",e,r,s),void 0===r&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===r)return-1;if(r!==s)return l(r,s)}while(++e)}compareBuild(t){t instanceof c||(t=new c(t,this.options));let e=0;do{const r=this.build[e],s=t.build[e];if(i("prerelease compare",e,r,s),void 0===r&&void 0===s)return 0;if(void 0===s)return 1;if(void 0===r)return-1;if(r!==s)return l(r,s)}while(++e)}inc(t,e,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,r),this.inc("pre",e,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,r),this.inc("pre",e,r);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const t=Number(r)?1:0;if(!e&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[t];else{let i=this.prerelease.length;for(;--i>=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);if(-1===i){if(e===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let i=[e,t];!1===r&&(i=[e]),0===l(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=c},4004:(t,e,r)=>{const i=r(8848),s=r(8220),n=r(9761),o=r(2386),a=r(1262),u=r(9639);t.exports=(t,e,r,l)=>{switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t===r;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t!==r;case"":case"=":case"==":return i(t,r,l);case"!=":return s(t,r,l);case">":return n(t,r,l);case">=":return o(t,r,l);case"<":return a(t,r,l);case"<=":return u(t,r,l);default:throw new TypeError(`Invalid operator: ${e}`)}}},7851:(t,e,r)=>{const i=r(4517);t.exports=(t,e,r)=>new i(t,r).compare(new i(e,r))},8848:(t,e,r)=>{const i=r(7851);t.exports=(t,e,r)=>0===i(t,e,r)},9761:(t,e,r)=>{const i=r(7851);t.exports=(t,e,r)=>i(t,e,r)>0},2386:(t,e,r)=>{const i=r(7851);t.exports=(t,e,r)=>i(t,e,r)>=0},1262:(t,e,r)=>{const i=r(7851);t.exports=(t,e,r)=>i(t,e,r)<0},9639:(t,e,r)=>{const i=r(7851);t.exports=(t,e,r)=>i(t,e,r)<=0},8220:(t,e,r)=>{const i=r(7851);t.exports=(t,e,r)=>0!==i(t,e,r)},7229:(t,e,r)=>{const i=r(7476);t.exports=(t,e,r)=>{try{e=new i(e,r)}catch(t){return!1}return e.test(t)}},9543:t=>{const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},1361:t=>{const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=e},3806:t=>{const e=/^[0-9]+$/,r=(t,r)=>{const i=e.test(t),s=e.test(r);return i&&s&&(t=+t,r=+r),t===r?0:i&&!s?-1:s&&!i?1:t<r?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(t,e)=>r(e,t)}},3990:t=>{const e=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=t=>t?"object"!=typeof t?e:t:r},2841:(t,e,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:n}=r(9543),o=r(1361),a=(e=t.exports={}).re=[],u=e.safeRe=[],l=e.src=[],c=e.t={};let h=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",n],[d,s]],f=(t,e,r)=>{const i=(t=>{for(const[e,r]of p)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t})(e),s=h++;o(t,s,e),c[t]=s,l[s]=e,a[s]=new RegExp(e,r?"g":void 0),u[s]=new RegExp(i,r?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),f("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${d}+`),f("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),f("FULL",`^${l[c.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),f("LOOSE",`^${l[c.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),f("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),f("COERCEPLAIN",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?`),f("COERCE",`${l[c.COERCEPLAIN]}(?:$|[^\\d])`),f("COERCEFULL",l[c.COERCEPLAIN]+`(?:${l[c.PRERELEASE]})?`+`(?:${l[c.BUILD]})?(?:$|[^\\d])`),f("COERCERTL",l[c.COERCE],!0),f("COERCERTLFULL",l[c.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",f("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",f("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},230:(t,e,r)=>{const i=r(5672);t.exports=(t="")=>{const e=t.match(i);if(!e)return null;const[r,s]=e[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return"env"===n?s:s?`${n} ${s}`:n}},5672:t=>{t.exports=/^#!(.*)/},7417:(t,e,r)=>{var i=global.process;const s=function(t){return t&&"object"==typeof t&&"function"==typeof t.removeListener&&"function"==typeof t.emit&&"function"==typeof t.reallyExit&&"function"==typeof t.listeners&&"function"==typeof t.kill&&"number"==typeof t.pid&&"function"==typeof t.on};if(s(i)){var n,o=r(2613),a=r(1888),u=/^win/i.test(i.platform),l=r(4434);"function"!=typeof l&&(l=l.EventEmitter),i.__signal_exit_emitter__?n=i.__signal_exit_emitter__:((n=i.__signal_exit_emitter__=new l).count=0,n.emitted={}),n.infinite||(n.setMaxListeners(1/0),n.infinite=!0),t.exports=function(t,e){if(!s(global.process))return function(){};o.equal(typeof t,"function","a callback must be provided for exit handler"),!1===p&&f();var r="exit";e&&e.alwaysLast&&(r="afterexit");return n.on(r,t),function(){n.removeListener(r,t),0===n.listeners("exit").length&&0===n.listeners("afterexit").length&&c()}};var c=function(){p&&s(global.process)&&(p=!1,a.forEach((function(t){try{i.removeListener(t,d[t])}catch(t){}})),i.emit=D,i.reallyExit=m,n.count-=1)};t.exports.unload=c;var h=function(t,e,r){n.emitted[t]||(n.emitted[t]=!0,n.emit(t,e,r))},d={};a.forEach((function(t){d[t]=function(){s(global.process)&&(i.listeners(t).length===n.count&&(c(),h("exit",null,t),h("afterexit",null,t),u&&"SIGHUP"===t&&(t="SIGINT"),i.kill(i.pid,t)))}})),t.exports.signals=function(){return a};var p=!1,f=function(){!p&&s(global.process)&&(p=!0,n.count+=1,a=a.filter((function(t){try{return i.on(t,d[t]),!0}catch(t){return!1}})),i.emit=y,i.reallyExit=g)};t.exports.load=f;var m=i.reallyExit,g=function(t){s(global.process)&&(i.exitCode=t||0,h("exit",i.exitCode,null),h("afterexit",i.exitCode,null),m.call(i,i.exitCode))},D=i.emit,y=function(t,e){if("exit"===t&&s(global.process)){void 0!==e&&(i.exitCode=e);var r=D.apply(this,arguments);return h("exit",i.exitCode,null),h("afterexit",i.exitCode,null),r}return D.apply(this,arguments)}}else t.exports=function(){return function(){}}},1888:t=>{t.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&t.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&t.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},6876:t=>{const e="\x1b[",r={to:(t,r)=>r?`${e}${r+1};${t+1}H`:`${e}${t+1}G`,move(t,r){let i="";return t<0?i+=`${e}${-t}D`:t>0&&(i+=`${e}${t}C`),r<0?i+=`${e}${-r}A`:r>0&&(i+=`${e}${r}B`),i},up:(t=1)=>`${e}${t}A`,down:(t=1)=>`${e}${t}B`,forward:(t=1)=>`${e}${t}C`,backward:(t=1)=>`${e}${t}D`,nextLine:(t=1)=>`${e}E`.repeat(t),prevLine:(t=1)=>`${e}F`.repeat(t),left:`${e}G`,hide:`${e}?25l`,show:`${e}?25h`,save:"\x1b7",restore:"\x1b8"},i={up:(t=1)=>`${e}S`.repeat(t),down:(t=1)=>`${e}T`.repeat(t)},s={screen:`${e}2J`,up:(t=1)=>`${e}1J`.repeat(t),down:(t=1)=>`${e}J`.repeat(t),line:`${e}2K`,lineEnd:`${e}K`,lineStart:`${e}1K`,lines(t){let e="";for(let i=0;i<t;i++)e+=this.line+(i<t-1?r.up():"");return t&&(e+=r.left),e}};t.exports={cursor:r,scroll:i,erase:s,beep:"\x07"}},1:t=>{t.exports=function(t){if("object"!=typeof t)throw new Error("expected an author to be an object");var e={name:["",""],email:["<",">"],url:["(",")"]},r="";for(var i in t.url&&(t.url=function(t){return t.replace(/\/$/,"")}(t.url)),e)t[i]&&(r+=e[i][0]+t[i]+e[i][1]+" ");return r.trim()}},5600:(t,e,r)=>{const i=r(857),s=r(6925),n=process.env;let o;function a(t){const e=function(t){if(!1===o)return 0;if(s("color=16m")||s("color=full")||s("color=truecolor"))return 3;if(s("color=256"))return 2;if(t&&!t.isTTY&&!0!==o)return 0;const e=o?1:0;if("win32"===process.platform){const t=i.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in n)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((t=>t in n))||"codeship"===n.CI_NAME?1:e;if("TEAMCITY_VERSION"in n)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(n.TEAMCITY_VERSION)?1:0;if("truecolor"===n.COLORTERM)return 3;if("TERM_PROGRAM"in n){const t=parseInt((n.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(n.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(n.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(n.TERM)||"COLORTERM"in n?1:(n.TERM,e)}(t);return function(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(e)}s("no-color")||s("no-colors")||s("color=false")?o=!1:(s("color")||s("colors")||s("color=true")||s("color=always"))&&(o=!0),"FORCE_COLOR"in n&&(o=0===n.FORCE_COLOR.length||0!==parseInt(n.FORCE_COLOR,10)),t.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},6925:t=>{t.exports=(t,e)=>{e=e||process.argv;const r=t.startsWith("-")?"":1===t.length?"-":"--",i=e.indexOf(r+t),s=e.indexOf("--");return-1!==i&&(-1===s||i<s)}},7111:(t,e)=>{e.fromCallback=function(t){return Object.defineProperty((function(...e){if("function"!=typeof e[e.length-1])return new Promise(((r,i)=>{e.push(((t,e)=>null!=t?i(t):r(e))),t.apply(this,e)}));t.apply(this,e)}),"name",{value:t.name})},e.fromPromise=function(t){return Object.defineProperty((function(...e){const r=e[e.length-1];if("function"!=typeof r)return t.apply(this,e);e.pop(),t.apply(this,e).then((t=>r(null,t)),r)}),"name",{value:t.name})}},1651:(t,e,r)=>{var i=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),s=r(1882),n=["node_modules","favicon.ico"];var o=function(t,e){var r={validForNewPackages:0===e.length&&0===t.length,validForOldPackages:0===e.length,warnings:t,errors:e};return r.warnings.length||delete r.warnings,r.errors.length||delete r.errors,r};t.exports=function(t){var e=[],r=[];if(null===t)return r.push("name cannot be null"),o(e,r);if(void 0===t)return r.push("name cannot be undefined"),o(e,r);if("string"!=typeof t)return r.push("name must be a string"),o(e,r);if(t.length||r.push("name length must be greater than zero"),t.match(/^\./)&&r.push("name cannot start with a period"),t.match(/^_/)&&r.push("name cannot start with an underscore"),t.trim()!==t&&r.push("name cannot contain leading or trailing spaces"),n.forEach((function(e){t.toLowerCase()===e&&r.push(e+" is a blacklisted name")})),s({version:"*"}).forEach((function(r){t.toLowerCase()===r&&e.push(r+" is a core module name")})),t.length>214&&e.push("name can no longer contain more than 214 characters"),t.toLowerCase()!==t&&e.push("name can no longer contain capital letters"),/[~'!()*]/.test(t.split("/").slice(-1)[0])&&e.push('name can no longer contain special characters ("~\'!()*")'),encodeURIComponent(t)!==t){var a=t.match(i);if(a){var u=a[1],l=a[2];if(encodeURIComponent(u)===u&&encodeURIComponent(l)===l)return o(e,r)}r.push("name can only contain URL-friendly characters")}return o(e,r)}},4326:(t,e,r)=>{t.exports=l,l.sync=function(t,e){for(var r=u(t,e=e||{}),i=r.env,n=r.ext,l=r.extExe,c=[],h=0,d=i.length;h<d;h++){var p=i[h];'"'===p.charAt(0)&&'"'===p.slice(-1)&&(p=p.slice(1,-1));var f=s.join(p,t);!p&&/^\.[\\\/]/.test(t)&&(f=t.slice(0,2)+f);for(var m=0,g=n.length;m<g;m++){var D=f+n[m];try{if(o.sync(D,{pathExt:l})){if(!e.all)return D;c.push(D)}}catch(t){}}}if(e.all&&c.length)return c;if(e.nothrow)return null;throw a(t)};var i="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,s=r(6928),n=i?";":":",o=r(9882);function a(t){var e=new Error("not found: "+t);return e.code="ENOENT",e}function u(t,e){var r=e.colon||n,s=e.path||process.env.PATH||"",o=[""];s=s.split(r);var a="";return i&&(s.unshift(process.cwd()),o=(a=e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM").split(r),-1!==t.indexOf(".")&&""!==o[0]&&o.unshift("")),(t.match(/\//)||i&&t.match(/\\/))&&(s=[""]),{env:s,ext:o,extExe:a}}function l(t,e,r){"function"==typeof e&&(r=e,e={});var i=u(t,e),n=i.env,l=i.ext,c=i.extExe,h=[];!function i(u,d){if(u===d)return e.all&&h.length?r(null,h):r(a(t));var p=n[u];'"'===p.charAt(0)&&'"'===p.slice(-1)&&(p=p.slice(1,-1));var f=s.join(p,t);!p&&/^\.[\\\/]/.test(t)&&(f=t.slice(0,2)+f),function t(s,n){if(s===n)return i(u+1,d);var a=l[s];o(f+a,{pathExt:c},(function(i,o){if(!i&&o){if(!e.all)return r(null,f+a);h.push(f+a)}return t(s+1,n)}))}(0,l.length)}(0,n.length)}},9428:t=>{t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},222:(t,e,r)=>{function i(t){var e=this;if(e instanceof i||(e=new i),e.tail=null,e.head=null,e.length=0,t&&"function"==typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var r=0,s=arguments.length;r<s;r++)e.push(arguments[r]);return e}function s(t,e,r){var i=e===t.head?new a(r,null,e,t):new a(r,e,e.next,t);return null===i.next&&(t.tail=i),null===i.prev&&(t.head=i),t.length++,i}function n(t,e){t.tail=new a(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function o(t,e){t.head=new a(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function a(t,e,r,i){if(!(this instanceof a))return new a(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}t.exports=i,i.Node=a,i.create=i,i.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e},i.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},i.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},i.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)n(this,arguments[t]);return this.length},i.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)o(this,arguments[t]);return this.length},i.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},i.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},i.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;null!==r;i++)t.call(e,r.value,i,this),r=r.next},i.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;null!==r;i--)t.call(e,r.value,i,this),r=r.prev},i.prototype.get=function(t){for(var e=0,r=this.head;null!==r&&e<t;e++)r=r.next;if(e===t&&null!==r)return r.value},i.prototype.getReverse=function(t){for(var e=0,r=this.tail;null!==r&&e<t;e++)r=r.prev;if(e===t&&null!==r)return r.value},i.prototype.map=function(t,e){e=e||this;for(var r=new i,s=this.head;null!==s;)r.push(t.call(e,s.value,this)),s=s.next;return r},i.prototype.mapReverse=function(t,e){e=e||this;for(var r=new i,s=this.tail;null!==s;)r.push(t.call(e,s.value,this)),s=s.prev;return r},i.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");i=this.head.next,r=this.head.value}for(var s=0;null!==i;s++)r=t(r,i.value,s),i=i.next;return r},i.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");i=this.tail.prev,r=this.tail.value}for(var s=this.length-1;null!==i;s--)r=t(r,i.value,s),i=i.prev;return r},i.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},i.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},i.prototype.slice=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new i;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var s=0,n=this.head;null!==n&&s<t;s++)n=n.next;for(;null!==n&&s<e;s++,n=n.next)r.push(n.value);return r},i.prototype.sliceReverse=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new i;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var s=this.length,n=this.tail;null!==n&&s>e;s--)n=n.prev;for(;null!==n&&s>t;s--,n=n.prev)r.push(n.value);return r},i.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,n=this.head;null!==n&&i<t;i++)n=n.next;var o=[];for(i=0;n&&i<e;i++)o.push(n.value),n=this.removeNode(n);null===n&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev);for(i=0;i<r.length;i++)n=s(this,n,r[i]);return o},i.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;null!==r;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};try{r(9428)(i)}catch(t){}},2422:(t,e,r)=>{const i=r(3168);let s,n;function o({respectNpm5:t}={}){return t&&function(){if(void 0!==n)return n;const t=i.sync("npm",["--version"]).stdout.toString().trim().split(".")[0];return n=t>=5,n}()||!function(){if(void 0!==s)return s;const t=i.sync("yarn",["--version"]),e=t.stdout&&t.stdout.toString().trim();return s=e,e}()?"npm":"yarn"}function a(t){return Object.keys(t).filter((e=>Boolean(t[e])))}function u(t,e){const r=Object.assign({},process.env);return t.registry&&(e?r.yarn_registry=t.registry:r.npm_config_registry=t.registry),r}t.exports=function(t={}){const e=t.cwd,r=void 0===t.stdio?"inherit":t.stdio,s=o({respectNpm5:t.respectNpm5}),n=t.deps&&t.deps.length>0?t.deps:null;let l;l=a("yarn"===s?{global:t.global,add:n&&!t.remove,remove:t.remove,"--dev":t.dev,"--production":t.production}:{install:!t.remove,uninstall:t.remove,"--save":!t.dev&&!t.global,"--save-dev":t.dev,"--global":t.global,"--production":t.production}),n&&(l=l.concat(n)),t.showCommand&&console.log(">",s,l.join(" "));const c=i.sync(s,l,{stdio:r,cwd:e,env:u(t,"yarn"===s)});return 0!==c.status&&(process.exitCode=c.status),c},t.exports.yarnInstalled=s,t.exports.isNpm5=n,t.exports.getPm=o},3168:(t,e,r)=>{var i=r(5317),s=r(5375),n=r(351),o=i.spawnSync;function a(t,e,r){var o,a;return o=s(t,e,r),a=i.spawn(o.command,o.args,o.options),n.hookChildProcess(a,o),a}t.exports=a,t.exports.spawn=a,t.exports.sync=function(t,e,i){var a,u;if(!o)try{o=r(5182)}catch(t){throw new Error("In order to use spawnSync on node 0.10 or older, you must install spawn-sync:\n\n npm install spawn-sync --save")}return a=s(t,e,i),(u=o(a.command,a.args,a.options)).error=u.error||n.verifyENOENTSync(u.status,a),u},t.exports._parse=s,t.exports._enoent=n},351:(t,e,r)=>{var i="win32"===process.platform,s=r(1163),n=0===process.version.indexOf("v0.10.");function o(t,e){var r;return(r=new Error(e+" "+t+" ENOENT")).code=r.errno="ENOENT",r.syscall=e+" "+t,r}function a(t,e){return i&&1===t&&!e.file?o(e.original,"spawn"):null}t.exports.hookChildProcess=function(t,e){var r;i&&(r=t.emit,t.emit=function(i,s){var n;return"exit"===i&&(n=a(s,e))?r.call(t,"error",n):r.apply(t,arguments)})},t.exports.verifyENOENT=a,t.exports.verifyENOENTSync=function(t,e){return i&&1===t&&!e.file||n&&-1===t&&(e.file=i?e.file:s(e.original),!e.file)?o(e.original,"spawnSync"):null},t.exports.notFoundError=o},6430:t=>{t.exports=function(){if("win32"!==process.platform)return!1;var t=process.version.substr(1).split(".").map((function(t){return parseInt(t,10)}));return 0===t[0]&&t[1]<12}()},5375:(t,e,r)=>{var i=r(9896),s=r(3156),n=r(1163),o=r(6430),a="win32"===process.platform,u=new s({max:50,maxAge:3e4});function l(t,e){return t=""+t,t=e?'"'+(t=(t=t.replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"))+'"':t.replace(/([\(\)%!\^<>&|;,"'\s])/g,"^$1")}function c(t){return!/\.(?:com|exe)$/i.test(t)}t.exports=function(t,e,r){var s,h,d,p,f;return e&&!Array.isArray(e)&&(r=e,e=null),e=e?e.slice(0):[],r=r||{},p=t,a&&(s=(d=(d=n(t))||n(t,!0))&&function(t){var e,r,s,n;if(u.has(t))return u.get(t);e=new Buffer(150);try{r=i.openSync(t,"r"),i.readSync(r,e,0,150,0),i.closeSync(r)}catch(t){}return(s=e.toString().trim().match(/#!(.+)/i))&&(n=s[1].replace(/\/usr\/bin\/env\s+/i,"")),u.set(t,n),n}(d),f=r.shell||o,s?(e.unshift(d),t=s,f=f||c(n(s)||n(s,!0))):f=f||c(d),f&&(h="echo"!==t,e=["/s","/c",'"'+(t=function(t){return/^[a-z0-9_-]+$/i.test(t)?t:l(t,!0)}(t))+((e=e.map((function(t){return l(t,h)}))).length?" "+e.join(" "):"")+'"'],t=process.env.comspec||"cmd.exe",r.windowsVerbatimArguments=!0)),{command:t,args:e,options:r,file:d,original:p}}},1163:(t,e,r)=>{var i=r(6928),s=r(4326),n=new(r(3156))({max:50,maxAge:3e4});t.exports=function(t,e){var r;if(e=!!e,r=n.get(t+"!"+e),n.has(t))return n.get(t);try{r=e?s.sync(t,{pathExt:i.delimiter+(process.env.PATHEXT||"")}):s.sync(t)}catch(t){}return n.set(t+"!"+e,r),r}},3156:(t,e,r)=>{t.exports=D;var i,s=r(3004),n=r(9023),o=r(8962),a=(i="function"==typeof Symbol&&"1"!==process.env._nodeLRUCacheForceNoSymbol?function(t){return Symbol(t)}:function(t){return"_"+t})("max"),u=i("length"),l=i("lengthCalculator"),c=i("allowStale"),h=i("maxAge"),d=i("dispose"),p=i("noDisposeOnSet"),f=i("lruList"),m=i("cache");function g(){return 1}function D(t){if(!(this instanceof D))return new D(t);"number"==typeof t&&(t={max:t}),t||(t={});var e=this[a]=t.max;(!e||"number"!=typeof e||e<=0)&&(this[a]=1/0);var r=t.length||g;"function"!=typeof r&&(r=g),this[l]=r,this[c]=t.stale||!1,this[h]=t.maxAge||0,this[d]=t.dispose,this[p]=t.noDisposeOnSet||!1,this.reset()}function y(t,e,r,i){var s=r.value;b(t,s)&&(E(t,r),t[c]||(s=void 0)),s&&e.call(i,s.value,s.key,t)}function v(t,e,r){var i=t[m].get(e);if(i){var s=i.value;b(t,s)?(E(t,i),t[c]||(s=void 0)):r&&t[f].unshiftNode(i),s&&(s=s.value)}return s}function b(t,e){if(!e||!e.maxAge&&!t[h])return!1;var r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[h]&&r>t[h]}function w(t){if(t[u]>t[a])for(var e=t[f].tail;t[u]>t[a]&&null!==e;){var r=e.prev;E(t,e),e=r}}function E(t,e){if(e){var r=e.value;t[d]&&t[d](r.key,r.value),t[u]-=r.length,t[m].delete(r.key),t[f].removeNode(e)}}function F(t,e,r,i,s){this.key=t,this.value=e,this.length=r,this.now=i,this.maxAge=s||0}Object.defineProperty(D.prototype,"max",{set:function(t){(!t||"number"!=typeof t||t<=0)&&(t=1/0),this[a]=t,w(this)},get:function(){return this[a]},enumerable:!0}),Object.defineProperty(D.prototype,"allowStale",{set:function(t){this[c]=!!t},get:function(){return this[c]},enumerable:!0}),Object.defineProperty(D.prototype,"maxAge",{set:function(t){(!t||"number"!=typeof t||t<0)&&(t=0),this[h]=t,w(this)},get:function(){return this[h]},enumerable:!0}),Object.defineProperty(D.prototype,"lengthCalculator",{set:function(t){"function"!=typeof t&&(t=g),t!==this[l]&&(this[l]=t,this[u]=0,this[f].forEach((function(t){t.length=this[l](t.value,t.key),this[u]+=t.length}),this)),w(this)},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(D.prototype,"length",{get:function(){return this[u]},enumerable:!0}),Object.defineProperty(D.prototype,"itemCount",{get:function(){return this[f].length},enumerable:!0}),D.prototype.rforEach=function(t,e){e=e||this;for(var r=this[f].tail;null!==r;){var i=r.prev;y(this,t,r,e),r=i}},D.prototype.forEach=function(t,e){e=e||this;for(var r=this[f].head;null!==r;){var i=r.next;y(this,t,r,e),r=i}},D.prototype.keys=function(){return this[f].toArray().map((function(t){return t.key}),this)},D.prototype.values=function(){return this[f].toArray().map((function(t){return t.value}),this)},D.prototype.reset=function(){this[d]&&this[f]&&this[f].length&&this[f].forEach((function(t){this[d](t.key,t.value)}),this),this[m]=new s,this[f]=new o,this[u]=0},D.prototype.dump=function(){return this[f].map((function(t){if(!b(this,t))return{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}}),this).toArray().filter((function(t){return t}))},D.prototype.dumpLru=function(){return this[f]},D.prototype.inspect=function(t,e){var r="LRUCache {",i=!1;this[c]&&(r+="\n allowStale: true",i=!0);var s=this[a];s&&s!==1/0&&(i&&(r+=","),r+="\n max: "+n.inspect(s,e),i=!0);var o=this[h];o&&(i&&(r+=","),r+="\n maxAge: "+n.inspect(o,e),i=!0);var d=this[l];d&&d!==g&&(i&&(r+=","),r+="\n length: "+n.inspect(this[u],e),i=!0);var p=!1;return this[f].forEach((function(t){p?r+=",\n ":(i&&(r+=",\n"),p=!0,r+="\n ");var s=n.inspect(t.key).split("\n").join("\n "),a={value:t.value};t.maxAge!==o&&(a.maxAge=t.maxAge),d!==g&&(a.length=t.length),b(this,t)&&(a.stale=!0),a=n.inspect(a,e).split("\n").join("\n "),r+=s+" => "+a})),(p||i)&&(r+="\n"),r+="}"},D.prototype.set=function(t,e,r){var i=(r=r||this[h])?Date.now():0,s=this[l](e,t);if(this[m].has(t)){if(s>this[a])return E(this,this[m].get(t)),!1;var n=this[m].get(t).value;return this[d]&&(this[p]||this[d](t,n.value)),n.now=i,n.maxAge=r,n.value=e,this[u]+=s-n.length,n.length=s,this.get(t),w(this),!0}var o=new F(t,e,s,i,r);return o.length>this[a]?(this[d]&&this[d](t,e),!1):(this[u]+=o.length,this[f].unshift(o),this[m].set(t,this[f].head),w(this),!0)},D.prototype.has=function(t){return!!this[m].has(t)&&!b(this,this[m].get(t).value)},D.prototype.get=function(t){return v(this,t,!0)},D.prototype.peek=function(t){return v(this,t,!1)},D.prototype.pop=function(){var t=this[f].tail;return t?(E(this,t),t.value):null},D.prototype.del=function(t){E(this,this[m].get(t))},D.prototype.load=function(t){this.reset();for(var e=Date.now(),r=t.length-1;r>=0;r--){var i=t[r],s=i.e||0;if(0===s)this.set(i.k,i.v);else{var n=s-e;n>0&&this.set(i.k,i.v,n)}}},D.prototype.prune=function(){var t=this;this[m].forEach((function(e,r){v(t,r,!1)}))}},8962:t=>{function e(t){var r=this;if(r instanceof e||(r=new e),r.tail=null,r.head=null,r.length=0,t&&"function"==typeof t.forEach)t.forEach((function(t){r.push(t)}));else if(arguments.length>0)for(var i=0,s=arguments.length;i<s;i++)r.push(arguments[i]);return r}function r(t,e){t.tail=new s(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function i(t,e){t.head=new s(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function s(t,e,r,i){if(!(this instanceof s))return new s(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}t.exports=e,e.Node=s,e.create=e,e.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null},e.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},e.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},e.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)r(this,arguments[t]);return this.length},e.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)i(this,arguments[t]);return this.length},e.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},e.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},e.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;null!==r;i++)t.call(e,r.value,i,this),r=r.next},e.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;null!==r;i--)t.call(e,r.value,i,this),r=r.prev},e.prototype.get=function(t){for(var e=0,r=this.head;null!==r&&e<t;e++)r=r.next;if(e===t&&null!==r)return r.value},e.prototype.getReverse=function(t){for(var e=0,r=this.tail;null!==r&&e<t;e++)r=r.prev;if(e===t&&null!==r)return r.value},e.prototype.map=function(t,r){r=r||this;for(var i=new e,s=this.head;null!==s;)i.push(t.call(r,s.value,this)),s=s.next;return i},e.prototype.mapReverse=function(t,r){r=r||this;for(var i=new e,s=this.tail;null!==s;)i.push(t.call(r,s.value,this)),s=s.prev;return i},e.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");i=this.head.next,r=this.head.value}for(var s=0;null!==i;s++)r=t(r,i.value,s),i=i.next;return r},e.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");i=this.tail.prev,r=this.tail.value}for(var s=this.length-1;null!==i;s--)r=t(r,i.value,s),i=i.prev;return r},e.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},e.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},e.prototype.slice=function(t,r){(r=r||this.length)<0&&(r+=this.length),(t=t||0)<0&&(t+=this.length);var i=new e;if(r<t||r<0)return i;t<0&&(t=0),r>this.length&&(r=this.length);for(var s=0,n=this.head;null!==n&&s<t;s++)n=n.next;for(;null!==n&&s<r;s++,n=n.next)i.push(n.value);return i},e.prototype.sliceReverse=function(t,r){(r=r||this.length)<0&&(r+=this.length),(t=t||0)<0&&(t+=this.length);var i=new e;if(r<t||r<0)return i;t<0&&(t=0),r>this.length&&(r=this.length);for(var s=this.length,n=this.tail;null!==n&&s>r;s--)n=n.prev;for(;null!==n&&s>t;s--,n=n.prev)i.push(n.value);return i},e.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;null!==r;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this}},2613:e=>{e.exports=t(import.meta.url)("assert")},5317:e=>{e.exports=t(import.meta.url)("child_process")},9140:e=>{e.exports=t(import.meta.url)("constants")},4434:e=>{e.exports=t(import.meta.url)("events")},9896:e=>{e.exports=t(import.meta.url)("fs")},8611:e=>{e.exports=t(import.meta.url)("http")},5692:e=>{e.exports=t(import.meta.url)("https")},8995:e=>{e.exports=t(import.meta.url)("node:module")},6760:e=>{e.exports=t(import.meta.url)("node:path")},3136:e=>{e.exports=t(import.meta.url)("node:url")},857:e=>{e.exports=t(import.meta.url)("os")},6928:e=>{e.exports=t(import.meta.url)("path")},3480:e=>{e.exports=t(import.meta.url)("querystring")},3785:e=>{e.exports=t(import.meta.url)("readline")},5182:e=>{e.exports=t(import.meta.url)("spawn-sync")},2203:e=>{e.exports=t(import.meta.url)("stream")},2018:e=>{e.exports=t(import.meta.url)("tty")},7016:e=>{e.exports=t(import.meta.url)("url")},9023:e=>{e.exports=t(import.meta.url)("util")},3106:e=>{e.exports=t(import.meta.url)("zlib")},9811:(t,e,r)=>{const i=r(8634),{resolver:s}=r(2600),{Creator:n}=r(3999),{readFile:o,readJson:a,outputFile:u,outputJson:l}=i,c={spaces:2,replacer:null};function h(t){return o(t,{encoding:"utf8"})}function d(t,e){return u(t,e,{encoding:"utf8"})}function p(t,e,{pretty:r=!1}={}){return l(t,e,r?c:void 0)}const f=n({read:h,write:d}),m=n({read:a,write:p}),g=n({read:h,write:p}),D=n({read:a,write:d});t.exports={Creator:n,Json:m,JsonToText:D,Text:f,TextToJson:g,resolver:s,fs:i}},3999:(t,e,r)=>{const{resolver:i,Base:s,logger:n}=r(2600);t.exports={Creator:function({read:t,write:e}){return class extends s{constructor(t){super(),t&&(this.root=t)}config(t){return void 0!==t&&(this.option=t),this}source(e,r=this.root){if(!e)throw new Error("path cannot be empty");return this.action=this.action.then((()=>{this.source=i(e,r)})).then((()=>t(this.source))),this}output(t,r=this.root){return this.action=this.action.then((s=>{const n=i(void 0===t?this.source:t,r);if(!n)throw new Error("path cannot be empty");return this.source=n,e(n,s,this.option).then((()=>s))})),this}logger(...t){if(0===t.length)throw new Error("message cannot be empty");return this.action=this.action.then((e=>(n.okay(...t),e)),(e=>{throw n.fail(...t),e})),this}}}}},2600:(t,e,r)=>{const{createRequire:i}=r(8995),{isAbsolute:s,resolve:n}=r(6760),{fileURLToPath:o}=r(3136),{green:a,red:u}=r(5992),l=i(`${process.cwd()}/`);function c(t){return t.startsWith("file:")?o(t):t}const h=new class{okay(...t){console.log(a("\u2714"),...t)}fail(...t){console.log(u("\u2718"),...t)}};t.exports={logger:h,resolver:function(t,e=process.cwd()){if(t.startsWith("~"))return l.resolve(t.replace(/^~/,""));const r=c(t);if(s(r))return r;const i=c(e);return n(i,r)},Base:class{constructor(){this.action=Promise.resolve()}onDone(t=(t=>t)){return this.action=this.action.then((t=>(this.temp=t,t))).then(t),this}onFail(t=(()=>this.temp)){return this.action=this.action.then((t=>(this.temp=t,t))).catch(t),this}then(t){return this.action.then(t)}catch(t){return this.action.catch(t)}finally(t){return this.action.finally(t)}}}},3900:t=>{t.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 "]}}')},6891:t=>{t.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 i(t){var s=r[t];if(void 0!==s)return s.exports;var n=r[t]={id:t,loaded:!1,exports:{}};return e[t](n,n.exports,i),n.loaded=!0,n.exports}i.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var e=i(9896),r=i(2613);const s={right:function(t,e){t=t.trim();const r=a.stringWidth(t);if(r<e)return" ".repeat(e-r)+t;return t},center:function(t,e){t=t.trim();const r=a.stringWidth(t);if(r>=e)return t;return" ".repeat(e-r>>1)+t}};class n{constructor(t){var e;this.width=t.width,this.wrap=null===(e=t.wrap)||void 0===e||e,this.rows=[]}span(...t){this.div(...t).span=!0}resetOutput(){this.rows=[]}div(...t){if(0===t.length&&this.div(""),this.wrap&&this.shouldApplyLayoutDSL(...t)&&"string"==typeof t[0])return this.applyLayoutDSL(t[0]);const e=t.map((t=>"string"==typeof t?this.colFromString(t):t));return this.rows.push(e),e}shouldApplyLayoutDSL(...t){return 1===t.length&&"string"==typeof t[0]&&/[\t\n]/.test(t[0])}applyLayoutDSL(t){const e=t.split("\n").map((t=>t.split("\t")));let r=0;return e.forEach((t=>{t.length>1&&a.stringWidth(t[0])>r&&(r=Math.min(Math.floor(.5*this.width),a.stringWidth(t[0])))})),e.forEach((t=>{this.div(...t.map(((e,i)=>({text:e.trim(),padding:this.measurePadding(e),width:0===i&&t.length>1?r:void 0}))))})),this.rows[this.rows.length-1]}colFromString(t){return{text:t,padding:this.measurePadding(t)}}measurePadding(t){const e=a.stripAnsi(t);return[0,e.match(/\s*$/)[0].length,0,e.match(/^\s*/)[0].length]}toString(){const t=[];return this.rows.forEach((e=>{this.rowToString(e,t)})),t.filter((t=>!t.hidden)).map((t=>t.text)).join("\n")}rowToString(t,e){return this.rasterize(t).forEach(((r,i)=>{let n="";r.forEach(((r,u)=>{const{width:l}=t[u],c=this.negatePadding(t[u]);let h=r;if(c>a.stringWidth(r)&&(h+=" ".repeat(c-a.stringWidth(r))),t[u].align&&"left"!==t[u].align&&this.wrap){h=(0,s[t[u].align])(h,c),a.stringWidth(h)<c&&(h+=" ".repeat((l||0)-a.stringWidth(h)-1))}const d=t[u].padding||[0,0,0,0];d[3]&&(n+=" ".repeat(d[3])),n+=o(t[u],h,"| "),n+=h,n+=o(t[u],h," |"),d[1]&&(n+=" ".repeat(d[1])),0===i&&e.length>0&&(n=this.renderInline(n,e[e.length-1]))})),e.push({text:n.replace(/ +$/,""),span:t.span})})),e}renderInline(t,e){const r=t.match(/^ */),i=r?r[0].length:0,s=e.text,n=a.stringWidth(s.trimRight());return e.span?this.wrap?i<n?t:(e.hidden=!0,s.trimRight()+" ".repeat(i-n)+t.trimLeft()):(e.hidden=!0,s+t):t}rasterize(t){const e=[],r=this.columnWidths(t);let i;return t.forEach(((t,s)=>{t.width=r[s],i=this.wrap?a.wrap(t.text,this.negatePadding(t),{hard:!0}).split("\n"):t.text.split("\n"),t.border&&(i.unshift("."+"-".repeat(this.negatePadding(t)+2)+"."),i.push("'"+"-".repeat(this.negatePadding(t)+2)+"'")),t.padding&&(i.unshift(...new Array(t.padding[0]||0).fill("")),i.push(...new Array(t.padding[2]||0).fill(""))),i.forEach(((t,r)=>{e[r]||e.push([]);const i=e[r];for(let t=0;t<s;t++)void 0===i[t]&&i.push("");i.push(t)}))})),e}negatePadding(t){let e=t.width||0;return t.padding&&(e-=(t.padding[3]||0)+(t.padding[1]||0)),t.border&&(e-=4),e}columnWidths(t){if(!this.wrap)return t.map((t=>t.width||a.stringWidth(t.text)));let e=t.length,r=this.width;const i=t.map((t=>{if(t.width)return e--,r-=t.width,t.width})),s=e?Math.floor(r/e):0;return i.map(((e,r)=>void 0===e?Math.max(s,function(t){const e=t.padding||[],r=1+(e[3]||0)+(e[1]||0);if(t.border)return r+4;return r}(t[r])):e))}}function o(t,e,r){return t.border?/[.']-+[.']/.test(e)?"":0!==e.trim().length?r:" ":""}let a;const u=new RegExp("\x1b(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function l(t){return t.replace(u,"")}function c(t,e){const[r,i]=t.match(u)||["",""];t=l(t);let s="";for(let r=0;r<t.length;r++)0!==r&&r%e==0&&(s+="\n"),s+=t.charAt(r);return r&&i&&(s=`${r}${s}${i}`),s}var h=i(6928);var d,p=i(9023),f=i(7016);function m(t){if(t!==t.toLowerCase()&&t!==t.toUpperCase()||(t=t.toLowerCase()),-1===t.indexOf("-")&&-1===t.indexOf("_"))return t;{let e="",r=!1;const i=t.match(/^-+/);for(let s=i?i[0].length:0;s<t.length;s++){let i=t.charAt(s);r&&(r=!1,i=i.toUpperCase()),0===s||"-"!==i&&"_"!==i?"-"!==i&&"_"!==i&&(e+=i):r=!0}return e}}function g(t,e){const r=t.toLowerCase();e=e||"-";let i="";for(let s=0;s<t.length;s++){const n=r.charAt(s),o=t.charAt(s);i+=n!==o&&s>0?`${e}${r.charAt(s)}`:o}return i}function D(t){return null!=t&&("number"==typeof t||(!!/^0x[0-9a-f]+$/i.test(t)||!/^0[^.]/.test(t)&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)))}let y;!function(t){t.BOOLEAN="boolean",t.STRING="string",t.NUMBER="number",t.ARRAY="array"}(d||(d={}));function v(t){return void 0!==t?t+1:1}function b(t){return"__proto__"===t?"___proto___":t}var w,E,F;const C=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,x=null!==(E=null===(w=null===process||void 0===process?void 0:process.versions)||void 0===w?void 0:w.node)&&void 0!==E?E:null===(F=null===process||void 0===process?void 0:process.version)||void 0===F?void 0:F.slice(1);if(x){if(Number(x.match(/^([^.]+)/)[1])<C)throw Error(`yargs parser supports a minimum Node.js version of ${C}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`)}const _=process?process.env:{},O=new class{constructor(t){y=t}parse(t,e){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},e),i=function(t){if(Array.isArray(t))return t.map((t=>"string"!=typeof t?t+"":t));t=t.trim();let e=0,r=null,i=null,s=null;const n=[];for(let o=0;o<t.length;o++)r=i,i=t.charAt(o)," "!==i||s?(i===s?s=null:"'"!==i&&'"'!==i||s||(s=i),n[e]||(n[e]=""),n[e]+=i):" "!==r&&e++;return n}(t),s="string"==typeof t,n=function(t){const e=[],r=Object.create(null);let i=!0;Object.keys(t).forEach((function(r){e.push([].concat(t[r],r))}));for(;i;){i=!1;for(let t=0;t<e.length;t++)for(let r=t+1;r<e.length;r++){if(e[t].filter((function(t){return-1!==e[r].indexOf(t)})).length){e[t]=e[t].concat(e[r]),e.splice(r,1),i=!0;break}}}return e.forEach((function(t){const e=(t=t.filter((function(t,e,r){return r.indexOf(t)===e}))).pop();void 0!==e&&"string"==typeof e&&(r[e]=t)})),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?"--":"_",p=Object.create(null),f=Object.create(null),w=r.__||y.format,E={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(t){const e="object"==typeof t?t.key:t,r=Object.keys(t).map((function(t){return{boolean:"bools",string:"strings",number:"numbers"}[t]})).filter(Boolean).pop();r&&(E[r][e]=!0),E.arrays[e]=!0,E.keys.push(e)})),[].concat(r.boolean||[]).filter(Boolean).forEach((function(t){E.bools[t]=!0,E.keys.push(t)})),[].concat(r.string||[]).filter(Boolean).forEach((function(t){E.strings[t]=!0,E.keys.push(t)})),[].concat(r.number||[]).filter(Boolean).forEach((function(t){E.numbers[t]=!0,E.keys.push(t)})),[].concat(r.count||[]).filter(Boolean).forEach((function(t){E.counts[t]=!0,E.keys.push(t)})),[].concat(r.normalize||[]).filter(Boolean).forEach((function(t){E.normalize[t]=!0,E.keys.push(t)})),"object"==typeof r.narg&&Object.entries(r.narg).forEach((([t,e])=>{"number"==typeof e&&(E.nargs[t]=e,E.keys.push(t))})),"object"==typeof r.coerce&&Object.entries(r.coerce).forEach((([t,e])=>{"function"==typeof e&&(E.coercions[t]=e,E.keys.push(t))})),void 0!==r.config&&(Array.isArray(r.config)||"string"==typeof r.config?[].concat(r.config).filter(Boolean).forEach((function(t){E.configs[t]=!0})):"object"==typeof r.config&&Object.entries(r.config).forEach((([t,e])=>{"boolean"!=typeof e&&"function"!=typeof e||(E.configs[t]=e)}))),function(...t){t.forEach((function(t){Object.keys(t||{}).forEach((function(t){E.aliases[t]||(E.aliases[t]=[].concat(n[t]||[]),E.aliases[t].concat(t).forEach((function(e){if(/-/.test(e)&&o["camel-case-expansion"]){const r=m(e);r!==t&&-1===E.aliases[t].indexOf(r)&&(E.aliases[t].push(r),p[r]=!0)}})),E.aliases[t].concat(t).forEach((function(e){if(e.length>1&&/[A-Z]/.test(e)&&o["camel-case-expansion"]){const r=g(e,"-");r!==t&&-1===E.aliases[t].indexOf(r)&&(E.aliases[t].push(r),p[r]=!0)}})),E.aliases[t].forEach((function(e){E.aliases[e]=[t].concat(E.aliases[t].filter((function(t){return e!==t})))})))}))}))}(r.key,n,r.default,E.arrays),Object.keys(a).forEach((function(t){(E.aliases[t]||[]).forEach((function(e){a[e]=a[t]}))}));let x=null;Object.keys(E.counts).find((t=>U(t,E.arrays)?(x=Error(w("Invalid configuration: %s, opts.count excludes opts.array.",t)),!0):!!U(t,E.nargs)&&(x=Error(w("Invalid configuration: %s, opts.count excludes opts.narg.",t)),!0)));let _=[];const O=Object.assign(Object.create(null),{_:[]}),S={};for(let t=0;t<i.length;t++){const e=i[t],r=e.replace(/^-{3,}/,"---");let s,n,a,u,l,c;if("--"!==e&&/^-/.test(e)&&H(e))A(e);else{if(r.match(/^---+(=|$)/)){A(e);continue}if(e.match(/^--.+=/)||!o["short-option-groups"]&&e.match(/^-.+=/))u=e.match(/^--?([^=]+)=([\s\S]*)$/),null!==u&&Array.isArray(u)&&u.length>=3&&(U(u[1],E.arrays)?t=I(t,u[1],i,u[2]):!1!==U(u[1],E.nargs)?t=T(t,u[1],i,u[2]):k(u[1],u[2],!0));else if(e.match(C)&&o["boolean-negation"])u=e.match(C),null!==u&&Array.isArray(u)&&u.length>=2&&(n=u[1],k(n,!!U(n,E.arrays)&&[!1]));else if(e.match(/^--.+/)||!o["short-option-groups"]&&e.match(/^-[^-]+/))u=e.match(/^--?(.+)/),null!==u&&Array.isArray(u)&&u.length>=2&&(n=u[1],U(n,E.arrays)?t=I(t,n,i):!1!==U(n,E.nargs)?t=T(t,n,i):(l=i[t+1],void 0===l||l.match(/^-/)&&!l.match(F)||U(n,E.bools)||U(n,E.counts)?/^(true|false)$/.test(l)?(k(n,l),t++):k(n,W(n)):(k(n,l),t++)));else if(e.match(/^-.\..+=/))u=e.match(/^-([^=]+)=([\s\S]*)$/),null!==u&&Array.isArray(u)&&u.length>=3&&k(u[1],u[2]);else if(e.match(/^-.\..+/)&&!e.match(F))l=i[t+1],u=e.match(/^-(.\..+)/),null!==u&&Array.isArray(u)&&u.length>=2&&(n=u[1],void 0===l||l.match(/^-/)||U(n,E.bools)||U(n,E.counts)?k(n,W(n)):(k(n,l),t++));else if(e.match(/^-[^-]+/)&&!e.match(F)){a=e.slice(1,-1).split(""),s=!1;for(let r=0;r<a.length;r++){if(l=e.slice(r+2),a[r+1]&&"="===a[r+1]){c=e.slice(r+3),n=a[r],U(n,E.arrays)?t=I(t,n,i,c):!1!==U(n,E.nargs)?t=T(t,n,i,c):k(n,c),s=!0;break}if("-"!==l){if(/[A-Za-z]/.test(a[r])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(l)&&!1===U(l,E.bools)){k(a[r],l),s=!0;break}if(a[r+1]&&a[r+1].match(/\W/)){k(a[r],l),s=!0;break}k(a[r],W(a[r]))}else k(a[r],l)}n=e.slice(-1)[0],s||"-"===n||(U(n,E.arrays)?t=I(t,n,i):!1!==U(n,E.nargs)?t=T(t,n,i):(l=i[t+1],void 0===l||/^(-|--)[^-]/.test(l)&&!l.match(F)||U(n,E.bools)||U(n,E.counts)?/^(true|false)$/.test(l)?(k(n,l),t++):k(n,W(n)):(k(n,l),t++)))}else if(e.match(/^-[0-9]$/)&&e.match(F)&&U(e.slice(1),E.bools))n=e.slice(1),k(n,W(n));else{if("--"===e){_=i.slice(t+1);break}if(o["halt-at-non-option"]){_=i.slice(t);break}A(e)}}}function A(t){const e=M("_",t);"string"!=typeof e&&"number"!=typeof e||O._.push(e)}function T(t,e,r,i){let s,n=U(e,E.nargs);if(n="number"!=typeof n||isNaN(n)?1:n,0===n)return z(i)||(x=Error(w("Argument unexpected for: %s",e))),k(e,W(e)),t;let a=z(i)?0:1;if(o["nargs-eats-options"])r.length-(t+1)+a<n&&(x=Error(w("Not enough arguments following: %s",e))),a=n;else{for(s=t+1;s<r.length&&(!r[s].match(/^-[^0-9]/)||r[s].match(F)||H(r[s]));s++)a++;a<n&&(x=Error(w("Not enough arguments following: %s",e)))}let u=Math.min(a,n);for(!z(i)&&u>0&&(k(e,i),u--),s=t+1;s<u+t+1;s++)k(e,r[s]);return t+u}function I(t,e,r,i){let n=[],u=i||r[t+1];const l=U(e,E.nargs);if(U(e,E.bools)&&!/^(true|false)$/.test(u))n.push(!0);else if(z(u)||z(i)&&/^-/.test(u)&&!F.test(u)&&!H(u)){if(void 0!==a[e]){const t=a[e];n=Array.isArray(t)?t:[t]}}else{z(i)||n.push($(e,i,!0));for(let i=t+1;i<r.length&&!(!o["greedy-arrays"]&&n.length>0||l&&"number"==typeof l&&n.length>=l)&&(u=r[i],!/^-/.test(u)||F.test(u)||H(u));i++)t=i,n.push($(e,u,s))}return"number"==typeof l&&(l&&n.length<l||isNaN(l)&&0===n.length)&&(x=Error(w("Not enough arguments following: %s",e))),k(e,n),t}function k(t,e,r=s){if(/-/.test(t)&&o["camel-case-expansion"]){const e=t.split(".").map((function(t){return m(t)})).join(".");R(t,e)}const i=$(t,e,r),n=t.split(".");if(L(O,n,i),E.aliases[t]&&E.aliases[t].forEach((function(t){const e=t.split(".");L(O,e,i)})),n.length>1&&o["dot-notation"]&&(E.aliases[n[0]]||[]).forEach((function(e){let r=e.split(".");const s=[].concat(n);s.shift(),r=r.concat(s),(E.aliases[t]||[]).includes(r.join("."))||L(O,r,i)})),U(t,E.normalize)&&!U(t,E.arrays)){[t].concat(E.aliases[t]||[]).forEach((function(t){Object.defineProperty(S,t,{enumerable:!0,get:()=>e,set(t){e="string"==typeof t?y.normalize(t):t}})}))}}function R(t,e){E.aliases[t]&&E.aliases[t].length||(E.aliases[t]=[e],p[e]=!0),E.aliases[e]&&E.aliases[e].length||R(e,t)}function $(t,e,r){r&&(e=function(t){return"string"!=typeof t||"'"!==t[0]&&'"'!==t[0]||t[t.length-1]!==t[0]?t:t.substring(1,t.length-1)}(e)),(U(t,E.bools)||U(t,E.counts))&&"string"==typeof e&&(e="true"===e);let i=Array.isArray(e)?e.map((function(e){return M(t,e)})):M(t,e);return U(t,E.counts)&&(z(i)||"boolean"==typeof i)&&(i=v()),U(t,E.normalize)&&U(t,E.arrays)&&(i=Array.isArray(e)?e.map((t=>y.normalize(t))):y.normalize(e)),i}function M(t,e){if(!o["parse-positional-numbers"]&&"_"===t)return e;if(!U(t,E.strings)&&!U(t,E.bools)&&!Array.isArray(e)){(D(e)&&o["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${e}`)))||!z(e)&&U(t,E.numbers))&&(e=Number(e))}return e}function P(t,e){Object.keys(t).forEach((function(r){const i=t[r],s=e?e+"."+r:r;"object"==typeof i&&null!==i&&!Array.isArray(i)&&o["dot-notation"]?P(i,s):(!B(O,s.split("."))||U(s,E.arrays)&&o["combine-arrays"])&&k(s,i)}))}function j(t,e){if(void 0===l)return;const r="string"==typeof l?l:"",i=y.env();Object.keys(i).forEach((function(s){if(""===r||0===s.lastIndexOf(r,0)){const n=s.split("__").map((function(t,e){return 0===e&&(t=t.substring(r.length)),m(t)}));(e&&E.configs[n.join(".")]||!e)&&!B(t,n)&&k(n.join("."),i[s])}}))}function N(t,e,r,i=!1){Object.keys(r).forEach((function(s){B(t,s.split("."))||(L(t,s.split("."),r[s]),i&&(f[s]=!0),(e[s]||[]).forEach((function(e){B(t,e.split("."))||L(t,e.split("."),r[s])})))}))}function B(t,e){let r=t;o["dot-notation"]||(e=[e.join(".")]),e.slice(0,-1).forEach((function(t){r=r[t]||{}}));const i=e[e.length-1];return"object"==typeof r&&i in r}function L(t,e,r){let i=t;o["dot-notation"]||(e=[e.join(".")]),e.slice(0,-1).forEach((function(t){t=b(t),"object"==typeof i&&void 0===i[t]&&(i[t]={}),"object"!=typeof i[t]||Array.isArray(i[t])?(Array.isArray(i[t])?i[t].push({}):i[t]=[i[t],{}],i=i[t][i[t].length-1]):i=i[t]}));const s=b(e[e.length-1]),n=U(e.join("."),E.arrays),a=Array.isArray(r);let u=o["duplicate-arguments-array"];!u&&U(s,E.nargs)&&(u=!0,(!z(i[s])&&1===E.nargs[s]||Array.isArray(i[s])&&i[s].length===E.nargs[s])&&(i[s]=void 0)),r===v()?i[s]=v(i[s]):Array.isArray(i[s])?u&&n&&a?i[s]=o["flatten-duplicate-arrays"]?i[s].concat(r):(Array.isArray(i[s][0])?i[s]:[i[s]]).concat([r]):u||Boolean(n)!==Boolean(a)?i[s]=i[s].concat([r]):i[s]=r:void 0===i[s]&&n?i[s]=a?r:[r]:!u||void 0===i[s]||U(s,E.counts)||U(s,E.bools)?i[s]=r:i[s]=[i[s],r]}function U(t,e){const r=[].concat(E.aliases[t]||[],t),i=Object.keys(e),s=r.find((t=>i.includes(t)));return!!s&&e[s]}function G(t){const e=Object.keys(E);return[].concat(e.map((t=>E[t]))).some((function(e){return Array.isArray(e)?e.includes(t):e[t]}))}function H(t){return o["unknown-options-as-args"]&&function(t){if(t=t.replace(/^-{3,}/,"--"),t.match(F))return!1;if(function(t){if(t.match(F)||!t.match(/^-[^-]+/))return!1;let e,r=!0;const i=t.slice(1).split("");for(let s=0;s<i.length;s++){if(e=t.slice(s+2),!G(i[s])){r=!1;break}if(i[s+1]&&"="===i[s+1]||"-"===e||/[A-Za-z]/.test(i[s])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(e)||i[s+1]&&i[s+1].match(/\W/))break}return r}(t))return!1;return!function(t,...e){return[].concat(...e).some((function(e){const r=t.match(e);return r&&G(r[1])}))}(t,/^-+([^=]+?)=[\s\S]*$/,C,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}(t)}function W(t){return U(t,E.bools)||U(t,E.counts)||!(`${t}`in a)?(e=function(t){let e=d.BOOLEAN;return U(t,E.strings)?e=d.STRING:U(t,E.numbers)?e=d.NUMBER:U(t,E.bools)?e=d.BOOLEAN:U(t,E.arrays)&&(e=d.ARRAY),e}(t),{[d.BOOLEAN]:!0,[d.STRING]:"",[d.NUMBER]:void 0,[d.ARRAY]:[]}[e]):a[t];var e}function z(t){return void 0===t}return j(O,!0),j(O,!1),function(t){const e=Object.create(null);N(e,E.aliases,a),Object.keys(E.configs).forEach((function(r){const i=t[r]||e[r];if(i)try{let t=null;const e=y.resolve(y.cwd(),i),s=E.configs[r];if("function"==typeof s){try{t=s(e)}catch(e){t=e}if(t instanceof Error)return void(x=t)}else t=y.require(e);P(t)}catch(e){"PermissionDenied"===e.name?x=e:t[r]&&(x=Error(w("Invalid JSON config file: %s",i)))}}))}(O),void 0!==u&&u.forEach((function(t){P(t)})),N(O,E.aliases,a,!0),function(t){let e;const r=new Set;Object.keys(t).forEach((function(i){if(!r.has(i)&&(e=U(i,E.coercions),"function"==typeof e))try{const s=M(i,e(t[i]));[].concat(E.aliases[i]||[],i).forEach((e=>{r.add(e),t[e]=s}))}catch(t){x=t}}))}(O),o["set-placeholder-key"]&&function(t){E.keys.forEach((e=>{~e.indexOf(".")||void 0===t[e]&&(t[e]=void 0)}))}(O),Object.keys(E.counts).forEach((function(t){B(O,t.split("."))||k(t,0)})),c&&_.length&&(O[h]=[]),_.forEach((function(t){O[h].push(t)})),o["camel-case-expansion"]&&o["strip-dashed"]&&Object.keys(O).filter((t=>"--"!==t&&t.includes("-"))).forEach((t=>{delete O[t]})),o["strip-aliased"]&&[].concat(...Object.keys(n).map((t=>n[t]))).forEach((t=>{o["camel-case-expansion"]&&t.includes("-")&&delete O[t.split(".").map((t=>m(t))).join(".")],delete O[t]})),{aliases:Object.assign({},E.aliases),argv:Object.assign(S,O),configuration:o,defaulted:Object.assign({},f),error:x,newAliases:Object.assign({},p)}}}({cwd:process.cwd,env:()=>_,format:p.format,normalize:h.normalize,resolve:h.resolve,require:t=>{if("undefined"!=typeof require)return require(t);if(t.match(/\.json$/))return JSON.parse((0,e.readFileSync)(t,"utf8"));throw Error("only .json config files are supported in ESM")}}),S=function(t,e){return O.parse(t.slice(),e).argv};S.detailed=function(t,e){return O.parse(t.slice(),e)},S.camelCase=m,S.decamelize=g,S.looksLikeNumber=D;const A=S;function T(){return process.versions.electron&&!process.defaultApp?0:1}class I extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,I)}}const k={fs:{readFileSync:e.readFileSync,writeFile:e.writeFile},format:p.format,resolve:h.resolve,exists:t=>{try{return(0,e.statSync)(t).isFile()}catch(t){return!1}}};let R;class ${constructor(t){t=t||{},this.directory=t.directory||"./locales",this.updateFiles="boolean"!=typeof t.updateFiles||t.updateFiles,this.locale=t.locale||"en",this.fallbackToLanguage="boolean"!=typeof t.fallbackToLanguage||t.fallbackToLanguage,this.cache=Object.create(null),this.writeQueue=[]}__(...t){if("string"!=typeof arguments[0])return this._taggedLiteral(arguments[0],...arguments);const e=t.shift();let r=function(){};return"function"==typeof t[t.length-1]&&(r=t.pop()),r=r||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][e]&&this.updateFiles?(this.cache[this.locale][e]=e,this._enqueueWrite({directory:this.directory,locale:this.locale,cb:r})):r(),R.format.apply(R.format,[this.cache[this.locale][e]||e].concat(t))}__n(){const t=Array.prototype.slice.call(arguments),e=t.shift(),r=t.shift(),i=t.shift();let s=function(){};"function"==typeof t[t.length-1]&&(s=t.pop()),this.cache[this.locale]||this._readLocaleFile();let n=1===i?e:r;if(this.cache[this.locale][e]){n=this.cache[this.locale][e][1===i?"one":"other"]}!this.cache[this.locale][e]&&this.updateFiles?(this.cache[this.locale][e]={one:e,other:r},this._enqueueWrite({directory:this.directory,locale:this.locale,cb:s})):s();const o=[n];return~n.indexOf("%d")&&o.push(i),R.format.apply(R.format,o.concat(t))}setLocale(t){this.locale=t}getLocale(){return this.locale}updateLocale(t){this.cache[this.locale]||this._readLocaleFile();for(const e in t)Object.prototype.hasOwnProperty.call(t,e)&&(this.cache[this.locale][e]=t[e])}_taggedLiteral(t,...e){let r="";return t.forEach((function(t,i){const s=e[i+1];r+=t,void 0!==s&&(r+="%s")})),this.__.apply(this,[r].concat([].slice.call(e,1)))}_enqueueWrite(t){this.writeQueue.push(t),1===this.writeQueue.length&&this._processWriteQueue()}_processWriteQueue(){const t=this,e=this.writeQueue[0],r=e.directory,i=e.locale,s=e.cb,n=this._resolveLocaleFile(r,i),o=JSON.stringify(this.cache[i],null,2);R.fs.writeFile(n,o,"utf-8",(function(e){t.writeQueue.shift(),t.writeQueue.length>0&&t._processWriteQueue(),s(e)}))}_readLocaleFile(){let t={};const e=this._resolveLocaleFile(this.directory,this.locale);try{R.fs.readFileSync&&(t=JSON.parse(R.fs.readFileSync(e,"utf-8")))}catch(r){if(r instanceof SyntaxError&&(r.message="syntax error in "+e),"ENOENT"!==r.code)throw r;t={}}this.cache[this.locale]=t}_resolveLocaleFile(t,e){let r=R.resolve(t,"./",e+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(r)&&~e.lastIndexOf("_")){const i=R.resolve(t,"./",e.split("_")[0]+".json");this._fileExistsSync(i)&&(r=i)}return r}_fileExistsSync(t){return R.exists(t)}}const M=t=>function(t,e){R=e;const r=new $(t);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}}(t,k),P="loading a directory of commands is not supported yet for ESM";let j;try{j=(0,f.fileURLToPath)(import.meta.url)}catch(t){j=process.cwd()}const N=j.substring(0,j.lastIndexOf("node_modules")),B={assert:{notStrictEqual:r.notStrictEqual,strictEqual:r.strictEqual},cliui:function(t){return function(t,e){return a=e,new n({width:(null==t?void 0:t.width)||("object"==typeof process&&process.stdout&&process.stdout.columns?process.stdout.columns:80),wrap:null==t?void 0:t.wrap})}(t,{stringWidth:t=>[...t].length,stripAnsi:l,wrap:c})},findUp:function(t,r){let i,s=(0,h.resolve)(".",t);for((0,e.statSync)(s).isDirectory()||(s=(0,h.dirname)(s));;){if(i=r(s,(0,e.readdirSync)(s)),i)return(0,h.resolve)(s,i);if(s=(0,h.dirname)(i=s),i===s)break}},getEnv:t=>process.env[t],inspect:p.inspect,getCallerFile:()=>{throw new I(P)},getProcessArgvBin:function(){return process.argv[T()]},mainFilename:N||process.cwd(),Parser:A,path:{basename:h.basename,dirname:h.dirname,extname:h.extname,relative:h.relative,resolve:h.resolve},process:{argv:()=>process.argv,cwd:process.cwd,emitWarning:(t,e)=>process.emitWarning(t,e),execPath:()=>process.execPath,exit:process.exit,nextTick:process.nextTick,stdColumns:void 0!==process.stdout.columns?process.stdout.columns:null},readFileSync:e.readFileSync,require:()=>{throw new I("require is not supported by ESM")},requireDirectory:()=>{throw new I(P)},stringWidth:t=>[...t].length,y18n:M({directory:(0,h.resolve)(j,"../../../locales"),updateFiles:!1})};function L(t,e,r,i){r.assert.notStrictEqual(t,e,i)}function U(t,e){e.assert.strictEqual(typeof t,"string")}function G(t){return Object.keys(t)}function H(t){return!!t&&!!t.then&&"function"==typeof t.then}function W(t){const e=t.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),r=/\.*[\][<>]/g,i=e.shift();if(!i)throw new Error(`No command found in: ${t}`);const s={cmd:i.replace(r,""),demanded:[],optional:[]};return e.forEach(((t,i)=>{let n=!1;t=t.replace(/\s/g,""),/\.+[\]>]/.test(t)&&i===e.length-1&&(n=!0),/^\[/.test(t)?s.optional.push({cmd:t.replace(r,"").split("|"),variadic:n}):s.demanded.push({cmd:t.replace(r,"").split("|"),variadic:n})})),s}const z=["first","second","third","fourth","fifth","sixth"];function Y(t,e,r){try{let i=0;const[s,n,o]="object"==typeof t?[{demanded:[],optional:[]},t,e]:[W(`cmd ${t}`),e,r],a=[].slice.call(n);for(;a.length&&void 0===a[a.length-1];)a.pop();const u=o||a.length;if(u<s.demanded.length)throw new I(`Not enough arguments provided. Expected ${s.demanded.length} but received ${a.length}.`);const l=s.demanded.length+s.optional.length;if(u>l)throw new I(`Too many arguments provided. Expected max ${l} but received ${u}.`);s.demanded.forEach((t=>{const e=q(a.shift());0===t.cmd.filter((t=>t===e||"*"===t)).length&&V(e,t.cmd,i),i+=1})),s.optional.forEach((t=>{if(0===a.length)return;const e=q(a.shift());0===t.cmd.filter((t=>t===e||"*"===t)).length&&V(e,t.cmd,i),i+=1}))}catch(t){console.warn(t.stack)}}function q(t){return Array.isArray(t)?"array":null===t?"null":typeof t}function V(t,e,r){throw new I(`Invalid ${z[r]||"manyith"} argument. Expected ${e.join(" or ")} but received ${t}.`)}class J{constructor(t){this.globalMiddleware=[],this.frozens=[],this.yargs=t}addMiddleware(t,e,r=!0,i=!1){if(Y("<array|function> [boolean] [boolean] [boolean]",[t,e,r],arguments.length),Array.isArray(t)){for(let i=0;i<t.length;i++){if("function"!=typeof t[i])throw Error("middleware must be a function");const s=t[i];s.applyBeforeValidation=e,s.global=r}Array.prototype.push.apply(this.globalMiddleware,t)}else if("function"==typeof t){const s=t;s.applyBeforeValidation=e,s.global=r,s.mutates=i,this.globalMiddleware.push(t)}return this.yargs}addCoerceMiddleware(t,e){const r=this.yargs.getAliases();return this.globalMiddleware=this.globalMiddleware.filter((t=>{const i=[...r[e]||[],e];return!t.option||!i.includes(t.option)})),t.option=e,this.addMiddleware(t,!0,!0,!0)}getMiddleware(){return this.globalMiddleware}freeze(){this.frozens.push([...this.globalMiddleware])}unfreeze(){const t=this.frozens.pop();void 0!==t&&(this.globalMiddleware=t)}reset(){this.globalMiddleware=this.globalMiddleware.filter((t=>t.global))}}function K(t,e,r,i){return r.reduce(((t,r)=>{if(r.applyBeforeValidation!==i)return t;if(r.mutates){if(r.applied)return t;r.applied=!0}if(H(t))return t.then((t=>Promise.all([t,r(t,e)]))).then((([t,e])=>Object.assign(t,e)));{const i=r(t,e);return H(i)?i.then((e=>Object.assign(t,e))):Object.assign(t,i)}}),t)}function X(t,e,r=(t=>{throw t})){try{const r="function"==typeof t?t():t;return H(r)?r.then((t=>e(t))):e(r)}catch(t){return r(t)}}const Z=/(^\*)|(^\$0)/;class Q{constructor(t,e,r,i){this.requireCache=new Set,this.handlers={},this.aliasMap={},this.frozens=[],this.shim=i,this.usage=t,this.globalMiddleware=r,this.validation=e}addDirectory(t,e,r,i){"boolean"!=typeof(i=i||{}).recurse&&(i.recurse=!1),Array.isArray(i.extensions)||(i.extensions=["js"]);const s="function"==typeof i.visit?i.visit:t=>t;i.visit=(t,e,r)=>{const i=s(t,e,r);if(i){if(this.requireCache.has(e))return i;this.requireCache.add(e),this.addHandler(i)}return i},this.shim.requireDirectory({require:e,filename:r},t,i)}addHandler(t,e,r,i,s,n){let o=[];const a=function(t){return t?t.map((t=>(t.applyBeforeValidation=!1,t))):[]}(s);if(i=i||(()=>{}),Array.isArray(t))if(function(t){return t.every((t=>"string"==typeof t))}(t))[t,...o]=t;else for(const e of t)this.addHandler(e);else{if(function(t){return"object"==typeof t&&!Array.isArray(t)}(t)){let e=Array.isArray(t.command)||"string"==typeof t.command?t.command:this.moduleName(t);return t.aliases&&(e=[].concat(e).concat(t.aliases)),void this.addHandler(e,this.extractDesc(t),t.builder,t.handler,t.middlewares,t.deprecated)}if(tt(r))return void this.addHandler([t].concat(o),e,r.builder,r.handler,r.middlewares,r.deprecated)}if("string"==typeof t){const s=W(t);o=o.map((t=>W(t).cmd));let u=!1;const l=[s.cmd].concat(o).filter((t=>!Z.test(t)||(u=!0,!1)));0===l.length&&u&&l.push("$0"),u&&(s.cmd=l[0],o=l.slice(1),t=t.replace(Z,s.cmd)),o.forEach((t=>{this.aliasMap[t]=s.cmd})),!1!==e&&this.usage.command(t,e,u,o,n),this.handlers[s.cmd]={original:t,description:e,handler:i,builder:r||{},middlewares:a,deprecated:n,demanded:s.demanded,optional:s.optional},u&&(this.defaultCommand=this.handlers[s.cmd])}}getCommandHandlers(){return this.handlers}getCommands(){return Object.keys(this.handlers).concat(Object.keys(this.aliasMap))}hasDefaultCommand(){return!!this.defaultCommand}runCommand(t,e,r,i,s,n){const o=this.handlers[t]||this.handlers[this.aliasMap[t]]||this.defaultCommand,a=e.getInternalMethods().getContext(),u=a.commands.slice(),l=!t;t&&(a.commands.push(t),a.fullCommands.push(o.original));const c=this.applyBuilderUpdateUsageAndParse(l,o,e,r.aliases,u,i,s,n);return H(c)?c.then((t=>this.applyMiddlewareAndGetResult(l,o,t.innerArgv,a,s,t.aliases,e))):this.applyMiddlewareAndGetResult(l,o,c.innerArgv,a,s,c.aliases,e)}applyBuilderUpdateUsageAndParse(t,e,r,i,s,n,o,a){const u=e.builder;let l=r;if(et(u)){r.getInternalMethods().getUsageInstance().freeze();const c=u(r.getInternalMethods().reset(i),a);if(H(c))return c.then((i=>{var a;return l=(a=i)&&"function"==typeof a.getInternalMethods?i:r,this.parseAndUpdateUsage(t,e,l,s,n,o)}))}else(function(t){return"object"==typeof t})(u)&&(r.getInternalMethods().getUsageInstance().freeze(),l=r.getInternalMethods().reset(i),Object.keys(e.builder).forEach((t=>{l.option(t,u[t])})));return this.parseAndUpdateUsage(t,e,l,s,n,o)}parseAndUpdateUsage(t,e,r,i,s,n){t&&r.getInternalMethods().getUsageInstance().unfreeze(!0),this.shouldUpdateUsage(r)&&r.getInternalMethods().getUsageInstance().usage(this.usageFromParentCommandsCommandHandler(i,e),e.description);const o=r.getInternalMethods().runYargsParserAndExecuteCommands(null,void 0,!0,s,n);return H(o)?o.then((t=>({aliases:r.parsed.aliases,innerArgv:t}))):{aliases:r.parsed.aliases,innerArgv:o}}shouldUpdateUsage(t){return!t.getInternalMethods().getUsageInstance().getUsageDisabled()&&0===t.getInternalMethods().getUsageInstance().getUsage().length}usageFromParentCommandsCommandHandler(t,e){const r=Z.test(e.original)?e.original.replace(Z,"").trim():e.original,i=t.filter((t=>!Z.test(t)));return i.push(r),`$0 ${i.join(" ")}`}handleValidationAndGetResult(t,e,r,i,s,n,o,a){if(!n.getInternalMethods().getHasOutput()){const e=n.getInternalMethods().runValidation(s,a,n.parsed.error,t);r=X(r,(t=>(e(t),t)))}if(e.handler&&!n.getInternalMethods().getHasOutput()){n.getInternalMethods().setHasOutput();const i=!!n.getOptions().configuration["populate--"];n.getInternalMethods().postProcess(r,i,!1,!1),r=X(r=K(r,n,o,!1),(t=>{const r=e.handler(t);return H(r)?r.then((()=>t)):t})),t||n.getInternalMethods().getUsageInstance().cacheHelpMessage(),H(r)&&!n.getInternalMethods().hasParseCallback()&&r.catch((t=>{try{n.getInternalMethods().getUsageInstance().fail(null,t)}catch(t){}}))}return t||(i.commands.pop(),i.fullCommands.pop()),r}applyMiddlewareAndGetResult(t,e,r,i,s,n,o){let a={};if(s)return r;o.getInternalMethods().getHasOutput()||(a=this.populatePositionals(e,r,i,o));const u=this.globalMiddleware.getMiddleware().slice(0).concat(e.middlewares),l=K(r,o,u,!0);return H(l)?l.then((r=>this.handleValidationAndGetResult(t,e,r,i,n,o,u,a))):this.handleValidationAndGetResult(t,e,l,i,n,o,u,a)}populatePositionals(t,e,r,i){e._=e._.slice(r.commands.length);const s=t.demanded.slice(0),n=t.optional.slice(0),o={};for(this.validation.positionalCount(s.length,e._.length);s.length;){const t=s.shift();this.populatePositional(t,e,o)}for(;n.length;){const t=n.shift();this.populatePositional(t,e,o)}return e._=r.commands.concat(e._.map((t=>""+t))),this.postProcessPositionals(e,o,this.cmdToParseOptions(t.original),i),o}populatePositional(t,e,r){const i=t.cmd[0];t.variadic?r[i]=e._.splice(0).map(String):e._.length&&(r[i]=[String(e._.shift())])}cmdToParseOptions(t){const e={array:[],default:{},alias:{},demand:{}},r=W(t);return r.demanded.forEach((t=>{const[r,...i]=t.cmd;t.variadic&&(e.array.push(r),e.default[r]=[]),e.alias[r]=i,e.demand[r]=!0})),r.optional.forEach((t=>{const[r,...i]=t.cmd;t.variadic&&(e.array.push(r),e.default[r]=[]),e.alias[r]=i})),e}postProcessPositionals(t,e,r,i){const s=Object.assign({},i.getOptions());s.default=Object.assign(r.default,s.default);for(const t of Object.keys(r.alias))s.alias[t]=(s.alias[t]||[]).concat(r.alias[t]);s.array=s.array.concat(r.array),s.config={};const n=[];if(Object.keys(e).forEach((t=>{e[t].map((e=>{s.configuration["unknown-options-as-args"]&&(s.key[t]=!0),n.push(`--${t}`),n.push(e)}))})),!n.length)return;const o=Object.assign({},s.configuration,{"populate--":!1}),a=this.shim.Parser.detailed(n,Object.assign({},s,{configuration:o}));if(a.error)i.getInternalMethods().getUsageInstance().fail(a.error.message,a.error);else{const r=Object.keys(e);Object.keys(e).forEach((t=>{r.push(...a.aliases[t])})),Object.keys(a.argv).forEach((s=>{r.includes(s)&&(e[s]||(e[s]=a.argv[s]),!this.isInConfigs(i,s)&&!this.isDefaulted(i,s)&&Object.prototype.hasOwnProperty.call(t,s)&&Object.prototype.hasOwnProperty.call(a.argv,s)&&(Array.isArray(t[s])||Array.isArray(a.argv[s]))?t[s]=[].concat(t[s],a.argv[s]):t[s]=a.argv[s])}))}}isDefaulted(t,e){const{default:r}=t.getOptions();return Object.prototype.hasOwnProperty.call(r,e)||Object.prototype.hasOwnProperty.call(r,this.shim.Parser.camelCase(e))}isInConfigs(t,e){const{configObjects:r}=t.getOptions();return r.some((t=>Object.prototype.hasOwnProperty.call(t,e)))||r.some((t=>Object.prototype.hasOwnProperty.call(t,this.shim.Parser.camelCase(e))))}runDefaultBuilderOn(t){if(!this.defaultCommand)return;if(this.shouldUpdateUsage(t)){const e=Z.test(this.defaultCommand.original)?this.defaultCommand.original:this.defaultCommand.original.replace(/^[^[\]<>]*/,"$0 ");t.getInternalMethods().getUsageInstance().usage(e,this.defaultCommand.description)}const e=this.defaultCommand.builder;if(et(e))return e(t,!0);tt(e)||Object.keys(e).forEach((r=>{t.option(r,e[r])}))}moduleName(t){const e=function(t){if("undefined"==typeof require)return null;for(let e,r=0,i=Object.keys(require.cache);r<i.length;r++)if(e=require.cache[i[r]],e.exports===t)return e;return null}(t);if(!e)throw new Error(`No command name given for module: ${this.shim.inspect(t)}`);return this.commandFromFilename(e.filename)}commandFromFilename(t){return this.shim.path.basename(t,this.shim.path.extname(t))}extractDesc({describe:t,description:e,desc:r}){for(const i of[t,e,r]){if("string"==typeof i||!1===i)return i;L(i,!0,this.shim)}return!1}freeze(){this.frozens.push({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand})}unfreeze(){const t=this.frozens.pop();L(t,void 0,this.shim),({handlers:this.handlers,aliasMap:this.aliasMap,defaultCommand:this.defaultCommand}=t)}reset(){return this.handlers={},this.aliasMap={},this.defaultCommand=void 0,this.requireCache=new Set,this}}function tt(t){return"object"==typeof t&&!!t.builder&&"function"==typeof t.handler}function et(t){return"function"==typeof t}function rt(t={},e=(()=>!0)){const r={};return G(t).forEach((i=>{e(i,t[i])&&(r[i]=t[i])})),r}function it(t){"undefined"!=typeof process&&[process.stdout,process.stderr].forEach((e=>{const r=e;r._handle&&r.isTTY&&"function"==typeof r._handle.setBlocking&&r._handle.setBlocking(t)}))}function st(t){return"boolean"==typeof t}function nt(t,e){const r=e.y18n.__,i={},s=[];i.failFn=function(t){s.push(t)};let n=null,o=null,a=!0;i.showHelpOnFail=function(e=!0,r){const[s,u]="string"==typeof e?[!0,e]:[e,r];return t.getInternalMethods().isGlobalContext()&&(o=u),n=u,a=s,i};let u=!1;i.fail=function(e,r){const l=t.getInternalMethods().getLoggerInstance();if(!s.length){if(t.getExitProcess()&&it(!0),!u){u=!0,a&&(t.showHelp("error"),l.error()),(e||r)&&l.error(e||r);const i=n||o;i&&((e||r)&&l.error(""),l.error(i))}if(r=r||new I(e),t.getExitProcess())return t.exit(1);if(t.getInternalMethods().hasParseCallback())return t.exit(1,r);throw r}for(let t=s.length-1;t>=0;--t){const n=s[t];if(st(n)){if(r)throw r;if(e)throw Error(e)}else n(e,r,i)}};let l=[],c=!1;i.usage=(t,e)=>null===t?(c=!0,l=[],i):(c=!1,l.push([t,e||""]),i),i.getUsage=()=>l,i.getUsageDisabled=()=>c,i.getPositionalGroupName=()=>r("Positionals:");let h=[];i.example=(t,e)=>{h.push([t,e||""])};let d=[];i.command=function(t,e,r,i,s=!1){r&&(d=d.map((t=>(t[2]=!1,t)))),d.push([t,e||"",r,i,s])},i.getCommands=()=>d;let p={};i.describe=function(t,e){Array.isArray(t)?t.forEach((t=>{i.describe(t,e)})):"object"==typeof t?Object.keys(t).forEach((e=>{i.describe(e,t[e])})):p[t]=e},i.getDescriptions=()=>p;let f=[];i.epilog=t=>{f.push(t)};let m,g=!1;i.wrap=t=>{g=!0,m=t},i.getWrap=()=>e.getEnv("YARGS_DISABLE_WRAP")?null:(g||(m=function(){const t=80;return e.process.stdColumns?Math.min(t,e.process.stdColumns):t}(),g=!0),m);const D="__yargsString__:";function y(t,r,i){let s=0;return Array.isArray(t)||(t=Object.values(t).map((t=>[t]))),t.forEach((t=>{s=Math.max(e.stringWidth(i?`${i} ${ut(t[0])}`:ut(t[0]))+at(t[0]),s)})),r&&(s=Math.min(s,parseInt((.5*r).toString(),10))),s}let v;function b(e){return t.getOptions().hiddenOptions.indexOf(e)<0||t.parsed.argv[t.getOptions().showHiddenOpt]}function w(t,e){let i=`[${r("default:")} `;if(void 0===t&&!e)return null;if(e)i+=e;else switch(typeof t){case"string":i+=`"${t}"`;break;case"object":i+=JSON.stringify(t);break;default:i+=t}return`${i}]`}i.deferY18nLookup=t=>D+t,i.help=function(){if(v)return v;!function(){const e=t.getDemandedOptions(),r=t.getOptions();(Object.keys(r.alias)||[]).forEach((s=>{r.alias[s].forEach((n=>{p[n]&&i.describe(s,p[n]),n in e&&t.demandOption(s,e[n]),r.boolean.includes(n)&&t.boolean(s),r.count.includes(n)&&t.count(s),r.string.includes(n)&&t.string(s),r.normalize.includes(n)&&t.normalize(s),r.array.includes(n)&&t.array(s),r.number.includes(n)&&t.number(s)}))}))}();const s=t.customScriptName?t.$0:e.path.basename(t.$0),n=t.getDemandedOptions(),o=t.getDemandedCommands(),a=t.getDeprecatedOptions(),u=t.getGroups(),m=t.getOptions();let g=[];g=g.concat(Object.keys(p)),g=g.concat(Object.keys(n)),g=g.concat(Object.keys(o)),g=g.concat(Object.keys(m.default)),g=g.filter(b),g=Object.keys(g.reduce(((t,e)=>("_"!==e&&(t[e]=!0),t)),{}));const E=i.getWrap(),F=e.cliui({width:E,wrap:!!E});if(!c)if(l.length)l.forEach((t=>{F.div({text:`${t[0].replace(/\$0/g,s)}`}),t[1]&&F.div({text:`${t[1]}`,padding:[1,0,0,0]})})),F.div();else if(d.length){let t=null;t=o._?`${s} <${r("command")}>\n`:`${s} [${r("command")}]\n`,F.div(`${t}`)}if(d.length>1||1===d.length&&!d[0][2]){F.div(r("Commands:"));const e=t.getInternalMethods().getContext(),i=e.commands.length?`${e.commands.join(" ")} `:"";!0===t.getInternalMethods().getParserConfiguration()["sort-commands"]&&(d=d.sort(((t,e)=>t[0].localeCompare(e[0]))));const n=s?`${s} `:"";d.forEach((t=>{const e=`${n}${i}${t[0].replace(/^\$0 ?/,"")}`;F.span({text:e,padding:[0,2,0,2],width:y(d,E,`${s}${i}`)+4},{text:t[1]});const o=[];t[2]&&o.push(`[${r("default")}]`),t[3]&&t[3].length&&o.push(`[${r("aliases:")} ${t[3].join(", ")}]`),t[4]&&("string"==typeof t[4]?o.push(`[${r("deprecated: %s",t[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(t.parsed.newAliases)||[]);g=g.filter((e=>!t.parsed.newAliases[e]&&C.every((t=>-1===(m.alias[t]||[]).indexOf(e)))));const x=r("Options:");u[x]||(u[x]=[]),function(t,e,r,i){let s=[],n=null;Object.keys(r).forEach((t=>{s=s.concat(r[t])})),t.forEach((t=>{n=[t].concat(e[t]),n.some((t=>-1!==s.indexOf(t)))||r[i].push(t)}))}(g,m.alias,u,x);const _=t=>/^--/.test(ut(t)),O=Object.keys(u).filter((t=>u[t].length>0)).map((t=>({groupName:t,normalizedKeys:u[t].filter(b).map((t=>{if(C.includes(t))return t;for(let e,r=0;void 0!==(e=C[r]);r++)if((m.alias[e]||[]).includes(t))return e;return t}))}))).filter((({normalizedKeys:t})=>t.length>0)).map((({groupName:t,normalizedKeys:e})=>{const r=e.reduce(((e,r)=>(e[r]=[r].concat(m.alias[r]||[]).map((e=>t===i.getPositionalGroupName()?e:(/^[0-9]$/.test(e)?m.boolean.includes(r)?"-":"--":e.length>1?"--":"-")+e)).sort(((t,e)=>_(t)===_(e)?0:_(t)?1:-1)).join(", "),e)),{});return{groupName:t,normalizedKeys:e,switches:r}}));if(O.filter((({groupName:t})=>t!==i.getPositionalGroupName())).some((({normalizedKeys:t,switches:e})=>!t.every((t=>_(e[t])))))&&O.filter((({groupName:t})=>t!==i.getPositionalGroupName())).forEach((({normalizedKeys:t,switches:e})=>{t.forEach((t=>{var r,i;_(e[t])&&(e[t]=(r=e[t],i=4,ot(r)?{text:r.text,indentation:r.indentation+i}:{text:r,indentation:i}))}))})),O.forEach((({groupName:e,normalizedKeys:s,switches:o})=>{F.div(e),s.forEach((e=>{const s=o[e];let u=p[e]||"",l=null;u.includes(D)&&(u=r(u.substring(16))),m.boolean.includes(e)&&(l=`[${r("boolean")}]`),m.count.includes(e)&&(l=`[${r("count")}]`),m.string.includes(e)&&(l=`[${r("string")}]`),m.normalize.includes(e)&&(l=`[${r("string")}]`),m.array.includes(e)&&(l=`[${r("array")}]`),m.number.includes(e)&&(l=`[${r("number")}]`);const c=[e in a?(h=a[e],"string"==typeof h?`[${r("deprecated: %s",h)}]`:`[${r("deprecated")}]`):null,l,e in n?`[${r("required")}]`:null,m.choices&&m.choices[e]?`[${r("choices:")} ${i.stringifiedValues(m.choices[e])}]`:null,w(m.default[e],m.defaultDescription[e])].filter(Boolean).join(" ");var h;F.span({text:ut(s),padding:[0,2,0,2+at(s)],width:y(o,E)+4},u);const d=!0===t.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((t=>{t[0]=t[0].replace(/\$0/g,s)})),h.forEach((t=>{""===t[1]?F.div({text:t[0],padding:[0,2,0,2]}):F.div({text:t[0],padding:[0,2,0,2],width:y(h,E)+4},{text:t[1]})})),F.div()),f.length>0){const t=f.map((t=>t.replace(/\$0/g,s))).join("\n");F.div(`${t}\n`)}return F.toString().replace(/\s*$/,"")},i.cacheHelpMessage=function(){v=this.help()},i.clearCachedHelpMessage=function(){v=void 0},i.hasCachedHelpMessage=function(){return!!v},i.showHelp=e=>{const r=t.getInternalMethods().getLoggerInstance();e||(e="error");("function"==typeof e?e:r[e])(i.help())},i.functionDescription=t=>["(",t.name?e.Parser.decamelize(t.name,"-"):r("generated-value"),")"].join(""),i.stringifiedValues=function(t,e){let r="";const i=e||", ",s=[].concat(t);return t&&s.length?(s.forEach((t=>{r.length&&(r+=i),r+=JSON.stringify(t)})),r):r};let E=null;i.version=t=>{E=t},i.showVersion=e=>{const r=t.getInternalMethods().getLoggerInstance();e||(e="error");("function"==typeof e?e:r[e])(E)},i.reset=function(t){return n=null,u=!1,l=[],c=!1,f=[],h=[],d=[],p=rt(p,(e=>!t[e])),i};const F=[];return i.freeze=function(){F.push({failMessage:n,failureOutput:u,usages:l,usageDisabled:c,epilogs:f,examples:h,commands:d,descriptions:p})},i.unfreeze=function(t=!1){const e=F.pop();e&&(t?(p={...e.descriptions,...p},d=[...e.commands,...d],l=[...e.usages,...l],h=[...e.examples,...h],f=[...e.epilogs,...f]):({failMessage:n,failureOutput:u,usages:l,usageDisabled:c,epilogs:f,examples:h,commands:d,descriptions:p}=e))},i}function ot(t){return"object"==typeof t}function at(t){return ot(t)?t.indentation:0}function ut(t){return ot(t)?t.text:t}class lt{constructor(t,e,r,i){var s,n,o;this.yargs=t,this.usage=e,this.command=r,this.shim=i,this.completionKey="get-yargs-completions",this.aliases=null,this.customCompletionFunction=null,this.indexAfterLastReset=0,this.zshShell=null!==(o=(null===(s=this.shim.getEnv("SHELL"))||void 0===s?void 0:s.includes("zsh"))||(null===(n=this.shim.getEnv("ZSH_NAME"))||void 0===n?void 0:n.includes("zsh")))&&void 0!==o&&o}defaultCompletion(t,e,r,i){const s=this.command.getCommandHandlers();for(let e=0,r=t.length;e<r;++e)if(s[t[e]]&&s[t[e]].builder){const r=s[t[e]].builder;if(et(r)){this.indexAfterLastReset=e+1;const t=this.yargs.getInternalMethods().reset();return r(t,!0),t.argv}}const n=[];this.commandCompletions(n,t,r),this.optionCompletions(n,t,e,r),this.choicesFromOptionsCompletions(n,t,e,r),this.choicesFromPositionalsCompletions(n,t,e,r),i(null,n)}commandCompletions(t,e,r){const i=this.yargs.getInternalMethods().getContext().commands;r.match(/^-/)||i[i.length-1]===r||this.previousArgHasChoices(e)||this.usage.getCommands().forEach((r=>{const i=W(r[0]).cmd;if(-1===e.indexOf(i))if(this.zshShell){const e=r[1]||"";t.push(i.replace(/:/g,"\\:")+":"+e)}else t.push(i)}))}optionCompletions(t,e,r,i){if((i.match(/^-/)||""===i&&0===t.length)&&!this.previousArgHasChoices(e)){const r=this.yargs.getOptions(),s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[];Object.keys(r.key).forEach((n=>{const o=!!r.configuration["boolean-negation"]&&r.boolean.includes(n);s.includes(n)||r.hiddenOptions.includes(n)||this.argsContainKey(e,n,o)||this.completeOptionKey(n,t,i,o&&!!r.default[n])}))}}choicesFromOptionsCompletions(t,e,r,i){if(this.previousArgHasChoices(e)){const r=this.getPreviousArgChoices(e);r&&r.length>0&&t.push(...r.map((t=>t.replace(/:/g,"\\:"))))}}choicesFromPositionalsCompletions(t,e,r,i){if(""===i&&t.length>0&&this.previousArgHasChoices(e))return;const s=this.yargs.getGroups()[this.usage.getPositionalGroupName()]||[],n=Math.max(this.indexAfterLastReset,this.yargs.getInternalMethods().getContext().commands.length+1),o=s[r._.length-n-1];if(!o)return;const a=this.yargs.getOptions().choices[o]||[];for(const e of a)e.startsWith(i)&&t.push(e.replace(/:/g,"\\:"))}getPreviousArgChoices(t){if(t.length<1)return;let e=t[t.length-1],r="";if(!e.startsWith("-")&&t.length>1&&(r=e,e=t[t.length-2]),!e.startsWith("-"))return;const i=e.replace(/^-+/,""),s=this.yargs.getOptions(),n=[i,...this.yargs.getAliases()[i]||[]];let o;for(const t of n)if(Object.prototype.hasOwnProperty.call(s.key,t)&&Array.isArray(s.choices[t])){o=s.choices[t];break}return o?o.filter((t=>!r||t.startsWith(r))):void 0}previousArgHasChoices(t){const e=this.getPreviousArgChoices(t);return void 0!==e&&e.length>0}argsContainKey(t,e,r){const i=e=>-1!==t.indexOf((/^[^0-9]$/.test(e)?"-":"--")+e);if(i(e))return!0;if(r&&i(`no-${e}`))return!0;if(this.aliases)for(const t of this.aliases[e])if(i(t))return!0;return!1}completeOptionKey(t,e,r,i){var s,n,o,a;let u=t;if(this.zshShell){const e=this.usage.getDescriptions(),r=null===(n=null===(s=null==this?void 0:this.aliases)||void 0===s?void 0:s[t])||void 0===n?void 0:n.find((t=>{const r=e[t];return"string"==typeof r&&r.length>0})),i=r?e[r]:void 0,l=null!==(a=null!==(o=e[t])&&void 0!==o?o:i)&&void 0!==a?a:"";u=`${t.replace(/:/g,"\\:")}:${l.replace("__yargsString__:","").replace(/(\r\n|\n|\r)/gm," ")}`}const l=!/^--/.test(r)&&(t=>/^[^0-9]$/.test(t))(t)?"-":"--";e.push(l+u),i&&e.push(l+"no-"+u)}customCompletion(t,e,r,i){if(L(this.customCompletionFunction,null,this.shim),this.customCompletionFunction.length<3){const t=this.customCompletionFunction(r,e);return H(t)?t.then((t=>{this.shim.process.nextTick((()=>{i(null,t)}))})).catch((t=>{this.shim.process.nextTick((()=>{i(t,void 0)}))})):i(null,t)}return function(t){return t.length>3}(this.customCompletionFunction)?this.customCompletionFunction(r,e,((s=i)=>this.defaultCompletion(t,e,r,s)),(t=>{i(null,t)})):this.customCompletionFunction(r,e,(t=>{i(null,t)}))}getCompletion(t,e){const r=t.length?t[t.length-1]:"",i=this.yargs.parse(t,!0),s=this.customCompletionFunction?i=>this.customCompletion(t,i,r,e):i=>this.defaultCompletion(t,i,r,e);return H(i)?i.then(s):s(i)}generateCompletionScript(t,e){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 i=this.shim.path.basename(t);return t.match(/\.js$/)&&(t=`./${t}`),r=r.replace(/{{app_name}}/g,i),r=r.replace(/{{completion_command}}/g,e),r.replace(/{{app_path}}/g,t)}registerFunction(t){this.customCompletionFunction=t}setParsed(t){this.aliases=t.aliases}}function ct(t,e){if(0===t.length)return e.length;if(0===e.length)return t.length;const r=[];let i,s;for(i=0;i<=e.length;i++)r[i]=[i];for(s=0;s<=t.length;s++)r[0][s]=s;for(i=1;i<=e.length;i++)for(s=1;s<=t.length;s++)e.charAt(i-1)===t.charAt(s-1)?r[i][s]=r[i-1][s-1]:i>1&&s>1&&e.charAt(i-2)===t.charAt(s-1)&&e.charAt(i-1)===t.charAt(s-2)?r[i][s]=r[i-2][s-2]+1:r[i][s]=Math.min(r[i-1][s-1]+1,Math.min(r[i][s-1]+1,r[i-1][s]+1));return r[e.length][t.length]}const ht=["$0","--","_"];let dt,pt=[];function ft(t,e,r,i){dt=i;let s={};if(Object.prototype.hasOwnProperty.call(t,"extends")){if("string"!=typeof t.extends)return s;const i=/\.json|\..*rc$/.test(t.extends);let n=null;if(i)n=function(t,e){return dt.path.resolve(t,e)}(e,t.extends);else try{n=require.resolve(t.extends)}catch(e){return t}!function(t){if(pt.indexOf(t)>-1)throw new I(`Circular extended configurations: '${t}'.`)}(n),pt.push(n),s=i?JSON.parse(dt.readFileSync(n,"utf8")):require(t.extends),delete t.extends,s=ft(s,dt.path.dirname(n),r,dt)}return pt=[],r?mt(s,t):Object.assign({},s,t)}function mt(t,e){const r={};function i(t){return t&&"object"==typeof t&&!Array.isArray(t)}Object.assign(r,t);for(const s of Object.keys(e))i(e[s])&&i(r[s])?r[s]=mt(t[s],e[s]):r[s]=e[s];return r}var gt,Dt,yt,vt,bt,wt,Et,Ft,Ct,xt,_t,Ot,St,At,Tt,It,kt,Rt,$t,Mt,Pt,jt,Nt,Bt,Lt,Ut,Gt,Ht,Wt,zt,Yt,qt,Vt,Jt,Kt,Xt=function(t,e,r,i,s){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?s.call(t,r):s?s.value=r:e.set(t,r),r},Zt=function(t,e,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:e.get(t)};const Qt=Symbol("copyDoubleDash"),te=Symbol("copyDoubleDash"),ee=Symbol("deleteFromParserHintObject"),re=Symbol("emitWarning"),ie=Symbol("freeze"),se=Symbol("getDollarZero"),ne=Symbol("getParserConfiguration"),oe=Symbol("getUsageConfiguration"),ae=Symbol("guessLocale"),ue=Symbol("guessVersion"),le=Symbol("parsePositionalNumbers"),ce=Symbol("pkgUp"),he=Symbol("populateParserHintArray"),de=Symbol("populateParserHintSingleValueDictionary"),pe=Symbol("populateParserHintArrayDictionary"),fe=Symbol("populateParserHintDictionary"),me=Symbol("sanitizeKey"),ge=Symbol("setKey"),De=Symbol("unfreeze"),ye=Symbol("validateAsync"),ve=Symbol("getCommandInstance"),be=Symbol("getContext"),we=Symbol("getHasOutput"),Ee=Symbol("getLoggerInstance"),Fe=Symbol("getParseContext"),Ce=Symbol("getUsageInstance"),xe=Symbol("getValidationInstance"),_e=Symbol("hasParseCallback"),Oe=Symbol("isGlobalContext"),Se=Symbol("postProcess"),Ae=Symbol("rebase"),Te=Symbol("reset"),Ie=Symbol("runYargsParserAndExecuteCommands"),ke=Symbol("runValidation"),Re=Symbol("setHasOutput"),$e=Symbol("kTrackManuallySetKeys");class Me{constructor(t=[],e,r,i){this.customScriptName=!1,this.parsed=!1,gt.set(this,void 0),Dt.set(this,void 0),yt.set(this,{commands:[],fullCommands:[]}),vt.set(this,null),bt.set(this,null),wt.set(this,"show-hidden"),Et.set(this,null),Ft.set(this,!0),Ct.set(this,{}),xt.set(this,!0),_t.set(this,[]),Ot.set(this,void 0),St.set(this,{}),At.set(this,!1),Tt.set(this,null),It.set(this,!0),kt.set(this,void 0),Rt.set(this,""),$t.set(this,void 0),Mt.set(this,void 0),Pt.set(this,{}),jt.set(this,null),Nt.set(this,null),Bt.set(this,{}),Lt.set(this,{}),Ut.set(this,void 0),Gt.set(this,!1),Ht.set(this,void 0),Wt.set(this,!1),zt.set(this,!1),Yt.set(this,!1),qt.set(this,void 0),Vt.set(this,{}),Jt.set(this,null),Kt.set(this,void 0),Xt(this,Ht,i,"f"),Xt(this,Ut,t,"f"),Xt(this,Dt,e,"f"),Xt(this,Mt,r,"f"),Xt(this,Ot,new J(this),"f"),this.$0=this[se](),this[Te](),Xt(this,gt,Zt(this,gt,"f"),"f"),Xt(this,qt,Zt(this,qt,"f"),"f"),Xt(this,Kt,Zt(this,Kt,"f"),"f"),Xt(this,$t,Zt(this,$t,"f"),"f"),Zt(this,$t,"f").showHiddenOpt=Zt(this,wt,"f"),Xt(this,kt,this[te](),"f")}addHelpOpt(t,e){return Y("[string|boolean] [string]",[t,e],arguments.length),Zt(this,Tt,"f")&&(this[ee](Zt(this,Tt,"f")),Xt(this,Tt,null,"f")),!1===t&&void 0===e||(Xt(this,Tt,"string"==typeof t?t:"help","f"),this.boolean(Zt(this,Tt,"f")),this.describe(Zt(this,Tt,"f"),e||Zt(this,qt,"f").deferY18nLookup("Show help"))),this}help(t,e){return this.addHelpOpt(t,e)}addShowHiddenOpt(t,e){if(Y("[string|boolean] [string]",[t,e],arguments.length),!1===t&&void 0===e)return this;const r="string"==typeof t?t:Zt(this,wt,"f");return this.boolean(r),this.describe(r,e||Zt(this,qt,"f").deferY18nLookup("Show hidden options")),Zt(this,$t,"f").showHiddenOpt=r,this}showHidden(t,e){return this.addShowHiddenOpt(t,e)}alias(t,e){return Y("<object|string|array> [string|array]",[t,e],arguments.length),this[pe](this.alias.bind(this),"alias",t,e),this}array(t){return Y("<array|string>",[t],arguments.length),this[he]("array",t),this[$e](t),this}boolean(t){return Y("<array|string>",[t],arguments.length),this[he]("boolean",t),this[$e](t),this}check(t,e){return Y("<function> [boolean]",[t,e],arguments.length),this.middleware(((e,r)=>X((()=>t(e,r.getOptions())),(r=>(r?("string"==typeof r||r instanceof Error)&&Zt(this,qt,"f").fail(r.toString(),r):Zt(this,qt,"f").fail(Zt(this,Ht,"f").y18n.__("Argument check failed: %s",t.toString())),e)),(t=>(Zt(this,qt,"f").fail(t.message?t.message:t.toString(),t),e)))),!1,e),this}choices(t,e){return Y("<object|string|array> [string|array]",[t,e],arguments.length),this[pe](this.choices.bind(this),"choices",t,e),this}coerce(t,e){if(Y("<object|string|array> [function]",[t,e],arguments.length),Array.isArray(t)){if(!e)throw new I("coerce callback must be provided");for(const r of t)this.coerce(r,e);return this}if("object"==typeof t){for(const e of Object.keys(t))this.coerce(e,t[e]);return this}if(!e)throw new I("coerce callback must be provided");return Zt(this,$t,"f").key[t]=!0,Zt(this,Ot,"f").addCoerceMiddleware(((r,i)=>{let s;return Object.prototype.hasOwnProperty.call(r,t)?X((()=>(s=i.getAliases(),e(r[t]))),(e=>{r[t]=e;const n=i.getInternalMethods().getParserConfiguration()["strip-aliased"];if(s[t]&&!0!==n)for(const i of s[t])r[i]=e;return r}),(t=>{throw new I(t.message)})):r}),t),this}conflicts(t,e){return Y("<string|object> [string|array]",[t,e],arguments.length),Zt(this,Kt,"f").conflicts(t,e),this}config(t="config",e,r){return Y("[object|string] [string|function] [function]",[t,e,r],arguments.length),"object"!=typeof t||Array.isArray(t)?("function"==typeof e&&(r=e,e=void 0),this.describe(t,e||Zt(this,qt,"f").deferY18nLookup("Path to JSON config file")),(Array.isArray(t)?t:[t]).forEach((t=>{Zt(this,$t,"f").config[t]=r||!0})),this):(t=ft(t,Zt(this,Dt,"f"),this[ne]()["deep-merge-config"]||!1,Zt(this,Ht,"f")),Zt(this,$t,"f").configObjects=(Zt(this,$t,"f").configObjects||[]).concat(t),this)}completion(t,e,r){return Y("[string] [string|boolean|function] [function]",[t,e,r],arguments.length),"function"==typeof e&&(r=e,e=void 0),Xt(this,bt,t||Zt(this,bt,"f")||"completion","f"),e||!1===e||(e="generate completion script"),this.command(Zt(this,bt,"f"),e),r&&Zt(this,vt,"f").registerFunction(r),this}command(t,e,r,i,s,n){return Y("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[t,e,r,i,s,n],arguments.length),Zt(this,gt,"f").addHandler(t,e,r,i,s,n),this}commands(t,e,r,i,s,n){return this.command(t,e,r,i,s,n)}commandDir(t,e){Y("<string> [object]",[t,e],arguments.length);const r=Zt(this,Mt,"f")||Zt(this,Ht,"f").require;return Zt(this,gt,"f").addDirectory(t,r,Zt(this,Ht,"f").getCallerFile(),e),this}count(t){return Y("<array|string>",[t],arguments.length),this[he]("count",t),this[$e](t),this}default(t,e,r){return Y("<object|string|array> [*] [string]",[t,e,r],arguments.length),r&&(U(t,Zt(this,Ht,"f")),Zt(this,$t,"f").defaultDescription[t]=r),"function"==typeof e&&(U(t,Zt(this,Ht,"f")),Zt(this,$t,"f").defaultDescription[t]||(Zt(this,$t,"f").defaultDescription[t]=Zt(this,qt,"f").functionDescription(e)),e=e.call()),this[de](this.default.bind(this),"default",t,e),this}defaults(t,e,r){return this.default(t,e,r)}demandCommand(t=1,e,r,i){return Y("[number] [number|string] [string|null|undefined] [string|null|undefined]",[t,e,r,i],arguments.length),"number"!=typeof e&&(r=e,e=1/0),this.global("_",!1),Zt(this,$t,"f").demandedCommands._={min:t,max:e,minMsg:r,maxMsg:i},this}demand(t,e,r){return Array.isArray(e)?(e.forEach((t=>{L(r,!0,Zt(this,Ht,"f")),this.demandOption(t,r)})),e=1/0):"number"!=typeof e&&(r=e,e=1/0),"number"==typeof t?(L(r,!0,Zt(this,Ht,"f")),this.demandCommand(t,e,r,r)):Array.isArray(t)?t.forEach((t=>{L(r,!0,Zt(this,Ht,"f")),this.demandOption(t,r)})):"string"==typeof r?this.demandOption(t,r):!0!==r&&void 0!==r||this.demandOption(t),this}demandOption(t,e){return Y("<object|string|array> [string]",[t,e],arguments.length),this[de](this.demandOption.bind(this),"demandedOptions",t,e),this}deprecateOption(t,e){return Y("<string> [string|boolean]",[t,e],arguments.length),Zt(this,$t,"f").deprecatedOptions[t]=e,this}describe(t,e){return Y("<object|string|array> [string]",[t,e],arguments.length),this[ge](t,!0),Zt(this,qt,"f").describe(t,e),this}detectLocale(t){return Y("<boolean>",[t],arguments.length),Xt(this,Ft,t,"f"),this}env(t){return Y("[string|boolean]",[t],arguments.length),!1===t?delete Zt(this,$t,"f").envPrefix:Zt(this,$t,"f").envPrefix=t||"",this}epilogue(t){return Y("<string>",[t],arguments.length),Zt(this,qt,"f").epilog(t),this}epilog(t){return this.epilogue(t)}example(t,e){return Y("<string|array> [string]",[t,e],arguments.length),Array.isArray(t)?t.forEach((t=>this.example(...t))):Zt(this,qt,"f").example(t,e),this}exit(t,e){Xt(this,At,!0,"f"),Xt(this,Et,e,"f"),Zt(this,xt,"f")&&Zt(this,Ht,"f").process.exit(t)}exitProcess(t=!0){return Y("[boolean]",[t],arguments.length),Xt(this,xt,t,"f"),this}fail(t){if(Y("<function|boolean>",[t],arguments.length),"boolean"==typeof t&&!1!==t)throw new I("Invalid first argument. Expected function or boolean 'false'");return Zt(this,qt,"f").failFn(t),this}getAliases(){return this.parsed?this.parsed.aliases:{}}async getCompletion(t,e){return Y("<array> [function]",[t,e],arguments.length),e?Zt(this,vt,"f").getCompletion(t,e):new Promise(((e,r)=>{Zt(this,vt,"f").getCompletion(t,((t,i)=>{t?r(t):e(i)}))}))}getDemandedOptions(){return Y([],0),Zt(this,$t,"f").demandedOptions}getDemandedCommands(){return Y([],0),Zt(this,$t,"f").demandedCommands}getDeprecatedOptions(){return Y([],0),Zt(this,$t,"f").deprecatedOptions}getDetectLocale(){return Zt(this,Ft,"f")}getExitProcess(){return Zt(this,xt,"f")}getGroups(){return Object.assign({},Zt(this,St,"f"),Zt(this,Lt,"f"))}getHelp(){if(Xt(this,At,!0,"f"),!Zt(this,qt,"f").hasCachedHelpMessage()){if(!this.parsed){const t=this[Ie](Zt(this,Ut,"f"),void 0,void 0,0,!0);if(H(t))return t.then((()=>Zt(this,qt,"f").help()))}const t=Zt(this,gt,"f").runDefaultBuilderOn(this);if(H(t))return t.then((()=>Zt(this,qt,"f").help()))}return Promise.resolve(Zt(this,qt,"f").help())}getOptions(){return Zt(this,$t,"f")}getStrict(){return Zt(this,Wt,"f")}getStrictCommands(){return Zt(this,zt,"f")}getStrictOptions(){return Zt(this,Yt,"f")}global(t,e){return Y("<string|array> [boolean]",[t,e],arguments.length),t=[].concat(t),!1!==e?Zt(this,$t,"f").local=Zt(this,$t,"f").local.filter((e=>-1===t.indexOf(e))):t.forEach((t=>{Zt(this,$t,"f").local.includes(t)||Zt(this,$t,"f").local.push(t)})),this}group(t,e){Y("<string|array> <string>",[t,e],arguments.length);const r=Zt(this,Lt,"f")[e]||Zt(this,St,"f")[e];Zt(this,Lt,"f")[e]&&delete Zt(this,Lt,"f")[e];const i={};return Zt(this,St,"f")[e]=(r||[]).concat(t).filter((t=>!i[t]&&(i[t]=!0))),this}hide(t){return Y("<string>",[t],arguments.length),Zt(this,$t,"f").hiddenOptions.push(t),this}implies(t,e){return Y("<string|object> [number|string|array]",[t,e],arguments.length),Zt(this,Kt,"f").implies(t,e),this}locale(t){return Y("[string]",[t],arguments.length),void 0===t?(this[ae](),Zt(this,Ht,"f").y18n.getLocale()):(Xt(this,Ft,!1,"f"),Zt(this,Ht,"f").y18n.setLocale(t),this)}middleware(t,e,r){return Zt(this,Ot,"f").addMiddleware(t,!!e,r)}nargs(t,e){return Y("<string|object|array> [number]",[t,e],arguments.length),this[de](this.nargs.bind(this),"narg",t,e),this}normalize(t){return Y("<array|string>",[t],arguments.length),this[he]("normalize",t),this}number(t){return Y("<array|string>",[t],arguments.length),this[he]("number",t),this[$e](t),this}option(t,e){if(Y("<string|object> [object]",[t,e],arguments.length),"object"==typeof t)Object.keys(t).forEach((e=>{this.options(e,t[e])}));else{"object"!=typeof e&&(e={}),this[$e](t),!Zt(this,Jt,"f")||"version"!==t&&"version"!==(null==e?void 0:e.alias)||this[re](['"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"),Zt(this,$t,"f").key[t]=!0,e.alias&&this.alias(t,e.alias);const r=e.deprecate||e.deprecated;r&&this.deprecateOption(t,r);const i=e.demand||e.required||e.require;i&&this.demand(t,i),e.demandOption&&this.demandOption(t,"string"==typeof e.demandOption?e.demandOption:void 0),e.conflicts&&this.conflicts(t,e.conflicts),"default"in e&&this.default(t,e.default),void 0!==e.implies&&this.implies(t,e.implies),void 0!==e.nargs&&this.nargs(t,e.nargs),e.config&&this.config(t,e.configParser),e.normalize&&this.normalize(t),e.choices&&this.choices(t,e.choices),e.coerce&&this.coerce(t,e.coerce),e.group&&this.group(t,e.group),(e.boolean||"boolean"===e.type)&&(this.boolean(t),e.alias&&this.boolean(e.alias)),(e.array||"array"===e.type)&&(this.array(t),e.alias&&this.array(e.alias)),(e.number||"number"===e.type)&&(this.number(t),e.alias&&this.number(e.alias)),(e.string||"string"===e.type)&&(this.string(t),e.alias&&this.string(e.alias)),(e.count||"count"===e.type)&&this.count(t),"boolean"==typeof e.global&&this.global(t,e.global),e.defaultDescription&&(Zt(this,$t,"f").defaultDescription[t]=e.defaultDescription),e.skipValidation&&this.skipValidation(t);const s=e.describe||e.description||e.desc,n=Zt(this,qt,"f").getDescriptions();Object.prototype.hasOwnProperty.call(n,t)&&"string"!=typeof s||this.describe(t,s),e.hidden&&this.hide(t),e.requiresArg&&this.requiresArg(t)}return this}options(t,e){return this.option(t,e)}parse(t,e,r){Y("[string|array] [function|boolean|object] [function]",[t,e,r],arguments.length),this[ie](),void 0===t&&(t=Zt(this,Ut,"f")),"object"==typeof e&&(Xt(this,Nt,e,"f"),e=r),"function"==typeof e&&(Xt(this,jt,e,"f"),e=!1),e||Xt(this,Ut,t,"f"),Zt(this,jt,"f")&&Xt(this,xt,!1,"f");const i=this[Ie](t,!!e),s=this.parsed;return Zt(this,vt,"f").setParsed(this.parsed),H(i)?i.then((t=>(Zt(this,jt,"f")&&Zt(this,jt,"f").call(this,Zt(this,Et,"f"),t,Zt(this,Rt,"f")),t))).catch((t=>{throw Zt(this,jt,"f")&&Zt(this,jt,"f")(t,this.parsed.argv,Zt(this,Rt,"f")),t})).finally((()=>{this[De](),this.parsed=s})):(Zt(this,jt,"f")&&Zt(this,jt,"f").call(this,Zt(this,Et,"f"),i,Zt(this,Rt,"f")),this[De](),this.parsed=s,i)}parseAsync(t,e,r){const i=this.parse(t,e,r);return H(i)?i:Promise.resolve(i)}parseSync(t,e,r){const i=this.parse(t,e,r);if(H(i))throw new I(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return i}parserConfiguration(t){return Y("<object>",[t],arguments.length),Xt(this,Pt,t,"f"),this}pkgConf(t,e){Y("<string> [string]",[t,e],arguments.length);let r=null;const i=this[ce](e||Zt(this,Dt,"f"));return i[t]&&"object"==typeof i[t]&&(r=ft(i[t],e||Zt(this,Dt,"f"),this[ne]()["deep-merge-config"]||!1,Zt(this,Ht,"f")),Zt(this,$t,"f").configObjects=(Zt(this,$t,"f").configObjects||[]).concat(r)),this}positional(t,e){Y("<string> <object>",[t,e],arguments.length);const r=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];e=rt(e,((t,e)=>!("type"===t&&!["string","number","boolean"].includes(e))&&r.includes(t)));const i=Zt(this,yt,"f").fullCommands[Zt(this,yt,"f").fullCommands.length-1],s=i?Zt(this,gt,"f").cmdToParseOptions(i):{array:[],alias:{},default:{},demand:{}};return G(s).forEach((r=>{const i=s[r];Array.isArray(i)?-1!==i.indexOf(t)&&(e[r]=!0):i[t]&&!(r in e)&&(e[r]=i[t])})),this.group(t,Zt(this,qt,"f").getPositionalGroupName()),this.option(t,e)}recommendCommands(t=!0){return Y("[boolean]",[t],arguments.length),Xt(this,Gt,t,"f"),this}required(t,e,r){return this.demand(t,e,r)}require(t,e,r){return this.demand(t,e,r)}requiresArg(t){return Y("<array|string|object> [number]",[t],arguments.length),"string"==typeof t&&Zt(this,$t,"f").narg[t]||this[de](this.requiresArg.bind(this),"narg",t,NaN),this}showCompletionScript(t,e){return Y("[string] [string]",[t,e],arguments.length),t=t||this.$0,Zt(this,kt,"f").log(Zt(this,vt,"f").generateCompletionScript(t,e||Zt(this,bt,"f")||"completion")),this}showHelp(t){if(Y("[string|function]",[t],arguments.length),Xt(this,At,!0,"f"),!Zt(this,qt,"f").hasCachedHelpMessage()){if(!this.parsed){const e=this[Ie](Zt(this,Ut,"f"),void 0,void 0,0,!0);if(H(e))return e.then((()=>{Zt(this,qt,"f").showHelp(t)})),this}const e=Zt(this,gt,"f").runDefaultBuilderOn(this);if(H(e))return e.then((()=>{Zt(this,qt,"f").showHelp(t)})),this}return Zt(this,qt,"f").showHelp(t),this}scriptName(t){return this.customScriptName=!0,this.$0=t,this}showHelpOnFail(t,e){return Y("[boolean|string] [string]",[t,e],arguments.length),Zt(this,qt,"f").showHelpOnFail(t,e),this}showVersion(t){return Y("[string|function]",[t],arguments.length),Zt(this,qt,"f").showVersion(t),this}skipValidation(t){return Y("<array|string>",[t],arguments.length),this[he]("skipValidation",t),this}strict(t){return Y("[boolean]",[t],arguments.length),Xt(this,Wt,!1!==t,"f"),this}strictCommands(t){return Y("[boolean]",[t],arguments.length),Xt(this,zt,!1!==t,"f"),this}strictOptions(t){return Y("[boolean]",[t],arguments.length),Xt(this,Yt,!1!==t,"f"),this}string(t){return Y("<array|string>",[t],arguments.length),this[he]("string",t),this[$e](t),this}terminalWidth(){return Y([],0),Zt(this,Ht,"f").process.stdColumns}updateLocale(t){return this.updateStrings(t)}updateStrings(t){return Y("<object>",[t],arguments.length),Xt(this,Ft,!1,"f"),Zt(this,Ht,"f").y18n.updateLocale(t),this}usage(t,e,r,i){if(Y("<string|null|undefined> [string|boolean] [function|object] [function]",[t,e,r,i],arguments.length),void 0!==e){if(L(t,null,Zt(this,Ht,"f")),(t||"").match(/^\$0( |$)/))return this.command(t,e,r,i);throw new I(".usage() description must start with $0 if being used as alias for .command()")}return Zt(this,qt,"f").usage(t),this}usageConfiguration(t){return Y("<object>",[t],arguments.length),Xt(this,Vt,t,"f"),this}version(t,e,r){const i="version";if(Y("[boolean|string] [string] [string]",[t,e,r],arguments.length),Zt(this,Jt,"f")&&(this[ee](Zt(this,Jt,"f")),Zt(this,qt,"f").version(void 0),Xt(this,Jt,null,"f")),0===arguments.length)r=this[ue](),t=i;else if(1===arguments.length){if(!1===t)return this;r=t,t=i}else 2===arguments.length&&(r=e,e=void 0);return Xt(this,Jt,"string"==typeof t?t:i,"f"),e=e||Zt(this,qt,"f").deferY18nLookup("Show version number"),Zt(this,qt,"f").version(r||void 0),this.boolean(Zt(this,Jt,"f")),this.describe(Zt(this,Jt,"f"),e),this}wrap(t){return Y("<number|null|undefined>",[t],arguments.length),Zt(this,qt,"f").wrap(t),this}[(gt=new WeakMap,Dt=new WeakMap,yt=new WeakMap,vt=new WeakMap,bt=new WeakMap,wt=new WeakMap,Et=new WeakMap,Ft=new WeakMap,Ct=new WeakMap,xt=new WeakMap,_t=new WeakMap,Ot=new WeakMap,St=new WeakMap,At=new WeakMap,Tt=new WeakMap,It=new WeakMap,kt=new WeakMap,Rt=new WeakMap,$t=new WeakMap,Mt=new WeakMap,Pt=new WeakMap,jt=new WeakMap,Nt=new WeakMap,Bt=new WeakMap,Lt=new WeakMap,Ut=new WeakMap,Gt=new WeakMap,Ht=new WeakMap,Wt=new WeakMap,zt=new WeakMap,Yt=new WeakMap,qt=new WeakMap,Vt=new WeakMap,Jt=new WeakMap,Kt=new WeakMap,Qt)](t){if(!t._||!t["--"])return t;t._.push.apply(t._,t["--"]);try{delete t["--"]}catch(t){}return t}[te](){return{log:(...t)=>{this[_e]()||console.log(...t),Xt(this,At,!0,"f"),Zt(this,Rt,"f").length&&Xt(this,Rt,Zt(this,Rt,"f")+"\n","f"),Xt(this,Rt,Zt(this,Rt,"f")+t.join(" "),"f")},error:(...t)=>{this[_e]()||console.error(...t),Xt(this,At,!0,"f"),Zt(this,Rt,"f").length&&Xt(this,Rt,Zt(this,Rt,"f")+"\n","f"),Xt(this,Rt,Zt(this,Rt,"f")+t.join(" "),"f")}}}[ee](t){G(Zt(this,$t,"f")).forEach((e=>{if("configObjects"===e)return;const r=Zt(this,$t,"f")[e];Array.isArray(r)?r.includes(t)&&r.splice(r.indexOf(t),1):"object"==typeof r&&delete r[t]})),delete Zt(this,qt,"f").getDescriptions()[t]}[re](t,e,r){Zt(this,Ct,"f")[r]||(Zt(this,Ht,"f").process.emitWarning(t,e),Zt(this,Ct,"f")[r]=!0)}[ie](){Zt(this,_t,"f").push({options:Zt(this,$t,"f"),configObjects:Zt(this,$t,"f").configObjects.slice(0),exitProcess:Zt(this,xt,"f"),groups:Zt(this,St,"f"),strict:Zt(this,Wt,"f"),strictCommands:Zt(this,zt,"f"),strictOptions:Zt(this,Yt,"f"),completionCommand:Zt(this,bt,"f"),output:Zt(this,Rt,"f"),exitError:Zt(this,Et,"f"),hasOutput:Zt(this,At,"f"),parsed:this.parsed,parseFn:Zt(this,jt,"f"),parseContext:Zt(this,Nt,"f")}),Zt(this,qt,"f").freeze(),Zt(this,Kt,"f").freeze(),Zt(this,gt,"f").freeze(),Zt(this,Ot,"f").freeze()}[se](){let t,e="";return t=/\b(node|iojs|electron)(\.exe)?$/.test(Zt(this,Ht,"f").process.argv()[0])?Zt(this,Ht,"f").process.argv().slice(1,2):Zt(this,Ht,"f").process.argv().slice(0,1),e=t.map((t=>{const e=this[Ae](Zt(this,Dt,"f"),t);return t.match(/^(\/|([a-zA-Z]:)?\\)/)&&e.length<t.length?e:t})).join(" ").trim(),Zt(this,Ht,"f").getEnv("_")&&Zt(this,Ht,"f").getProcessArgvBin()===Zt(this,Ht,"f").getEnv("_")&&(e=Zt(this,Ht,"f").getEnv("_").replace(`${Zt(this,Ht,"f").path.dirname(Zt(this,Ht,"f").process.execPath())}/`,"")),e}[ne](){return Zt(this,Pt,"f")}[oe](){return Zt(this,Vt,"f")}[ae](){if(!Zt(this,Ft,"f"))return;const t=Zt(this,Ht,"f").getEnv("LC_ALL")||Zt(this,Ht,"f").getEnv("LC_MESSAGES")||Zt(this,Ht,"f").getEnv("LANG")||Zt(this,Ht,"f").getEnv("LANGUAGE")||"en_US";this.locale(t.replace(/[.:].*/,""))}[ue](){return this[ce]().version||"unknown"}[le](t){const e=t["--"]?t["--"]:t._;for(let t,r=0;void 0!==(t=e[r]);r++)Zt(this,Ht,"f").Parser.looksLikeNumber(t)&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))&&(e[r]=Number(t));return t}[ce](t){const e=t||"*";if(Zt(this,Bt,"f")[e])return Zt(this,Bt,"f")[e];let r={};try{let e=t||Zt(this,Ht,"f").mainFilename;!t&&Zt(this,Ht,"f").path.extname(e)&&(e=Zt(this,Ht,"f").path.dirname(e));const i=Zt(this,Ht,"f").findUp(e,((t,e)=>e.includes("package.json")?"package.json":void 0));L(i,void 0,Zt(this,Ht,"f")),r=JSON.parse(Zt(this,Ht,"f").readFileSync(i,"utf8"))}catch(t){}return Zt(this,Bt,"f")[e]=r||{},Zt(this,Bt,"f")[e]}[he](t,e){(e=[].concat(e)).forEach((e=>{e=this[me](e),Zt(this,$t,"f")[t].push(e)}))}[de](t,e,r,i){this[fe](t,e,r,i,((t,e,r)=>{Zt(this,$t,"f")[t][e]=r}))}[pe](t,e,r,i){this[fe](t,e,r,i,((t,e,r)=>{Zt(this,$t,"f")[t][e]=(Zt(this,$t,"f")[t][e]||[]).concat(r)}))}[fe](t,e,r,i,s){if(Array.isArray(r))r.forEach((e=>{t(e,i)}));else if((t=>"object"==typeof t)(r))for(const e of G(r))t(e,r[e]);else s(e,this[me](r),i)}[me](t){return"__proto__"===t?"___proto___":t}[ge](t,e){return this[de](this[ge].bind(this),"key",t,e),this}[De](){var t,e,r,i,s,n,o,a,u,l,c,h;const d=Zt(this,_t,"f").pop();let p;L(d,void 0,Zt(this,Ht,"f")),t=this,e=this,r=this,i=this,s=this,n=this,o=this,a=this,u=this,l=this,c=this,h=this,({options:{set value(e){Xt(t,$t,e,"f")}}.value,configObjects:p,exitProcess:{set value(t){Xt(e,xt,t,"f")}}.value,groups:{set value(t){Xt(r,St,t,"f")}}.value,output:{set value(t){Xt(i,Rt,t,"f")}}.value,exitError:{set value(t){Xt(s,Et,t,"f")}}.value,hasOutput:{set value(t){Xt(n,At,t,"f")}}.value,parsed:this.parsed,strict:{set value(t){Xt(o,Wt,t,"f")}}.value,strictCommands:{set value(t){Xt(a,zt,t,"f")}}.value,strictOptions:{set value(t){Xt(u,Yt,t,"f")}}.value,completionCommand:{set value(t){Xt(l,bt,t,"f")}}.value,parseFn:{set value(t){Xt(c,jt,t,"f")}}.value,parseContext:{set value(t){Xt(h,Nt,t,"f")}}.value}=d),Zt(this,$t,"f").configObjects=p,Zt(this,qt,"f").unfreeze(),Zt(this,Kt,"f").unfreeze(),Zt(this,gt,"f").unfreeze(),Zt(this,Ot,"f").unfreeze()}[ye](t,e){return X(e,(e=>(t(e),e)))}getInternalMethods(){return{getCommandInstance:this[ve].bind(this),getContext:this[be].bind(this),getHasOutput:this[we].bind(this),getLoggerInstance:this[Ee].bind(this),getParseContext:this[Fe].bind(this),getParserConfiguration:this[ne].bind(this),getUsageConfiguration:this[oe].bind(this),getUsageInstance:this[Ce].bind(this),getValidationInstance:this[xe].bind(this),hasParseCallback:this[_e].bind(this),isGlobalContext:this[Oe].bind(this),postProcess:this[Se].bind(this),reset:this[Te].bind(this),runValidation:this[ke].bind(this),runYargsParserAndExecuteCommands:this[Ie].bind(this),setHasOutput:this[Re].bind(this)}}[ve](){return Zt(this,gt,"f")}[be](){return Zt(this,yt,"f")}[we](){return Zt(this,At,"f")}[Ee](){return Zt(this,kt,"f")}[Fe](){return Zt(this,Nt,"f")||{}}[Ce](){return Zt(this,qt,"f")}[xe](){return Zt(this,Kt,"f")}[_e](){return!!Zt(this,jt,"f")}[Oe](){return Zt(this,It,"f")}[Se](t,e,r,i){if(r)return t;if(H(t))return t;e||(t=this[Qt](t));return(this[ne]()["parse-positional-numbers"]||void 0===this[ne]()["parse-positional-numbers"])&&(t=this[le](t)),i&&(t=K(t,this,Zt(this,Ot,"f").getMiddleware(),!1)),t}[Te](t={}){Xt(this,$t,Zt(this,$t,"f")||{},"f");const e={};e.local=Zt(this,$t,"f").local||[],e.configObjects=Zt(this,$t,"f").configObjects||[];const r={};e.local.forEach((e=>{r[e]=!0,(t[e]||[]).forEach((t=>{r[t]=!0}))})),Object.assign(Zt(this,Lt,"f"),Object.keys(Zt(this,St,"f")).reduce(((t,e)=>{const i=Zt(this,St,"f")[e].filter((t=>!(t in r)));return i.length>0&&(t[e]=i),t}),{})),Xt(this,St,{},"f");return["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach((t=>{e[t]=(Zt(this,$t,"f")[t]||[]).filter((t=>!r[t]))})),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","deprecatedOptions"].forEach((t=>{e[t]=rt(Zt(this,$t,"f")[t],(t=>!r[t]))})),e.envPrefix=Zt(this,$t,"f").envPrefix,Xt(this,$t,e,"f"),Xt(this,qt,Zt(this,qt,"f")?Zt(this,qt,"f").reset(r):nt(this,Zt(this,Ht,"f")),"f"),Xt(this,Kt,Zt(this,Kt,"f")?Zt(this,Kt,"f").reset(r):function(t,e,r){const i=r.y18n.__,s=r.y18n.__n,n={nonOptionCount:function(r){const i=t.getDemandedCommands(),n=r._.length+(r["--"]?r["--"].length:0)-t.getInternalMethods().getContext().commands.length;i._&&(n<i._.min||n>i._.max)&&(n<i._.min?void 0!==i._.minMsg?e.fail(i._.minMsg?i._.minMsg.replace(/\$0/g,n.toString()).replace(/\$1/,i._.min.toString()):null):e.fail(s("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",n,n.toString(),i._.min.toString())):n>i._.max&&(void 0!==i._.maxMsg?e.fail(i._.maxMsg?i._.maxMsg.replace(/\$0/g,n.toString()).replace(/\$1/,i._.max.toString()):null):e.fail(s("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",n,n.toString(),i._.max.toString()))))},positionalCount:function(t,r){r<t&&e.fail(s("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",r,r+"",t+""))},requiredArguments:function(t,r){let i=null;for(const e of Object.keys(r))Object.prototype.hasOwnProperty.call(t,e)&&void 0!==t[e]||(i=i||{},i[e]=r[e]);if(i){const t=[];for(const e of Object.keys(i)){const r=i[e];r&&t.indexOf(r)<0&&t.push(r)}const r=t.length?`\n${t.join("\n")}`:"";e.fail(s("Missing required argument: %s","Missing required arguments: %s",Object.keys(i).length,Object.keys(i).join(", ")+r))}},unknownArguments:function(r,i,o,a,u=!0){var l;const c=t.getInternalMethods().getCommandInstance().getCommands(),h=[],d=t.getInternalMethods().getContext();if(Object.keys(r).forEach((e=>{ht.includes(e)||Object.prototype.hasOwnProperty.call(o,e)||Object.prototype.hasOwnProperty.call(t.getInternalMethods().getParseContext(),e)||n.isValidAndSomeAliasIsNotNew(e,i)||h.push(e)})),u&&(d.commands.length>0||c.length>0||a)&&r._.slice(d.commands.length).forEach((t=>{c.includes(""+t)||h.push(""+t)})),u){const e=(null===(l=t.getDemandedCommands()._)||void 0===l?void 0:l.max)||0,i=d.commands.length+e;i<r._.length&&r._.slice(i).forEach((t=>{t=String(t),d.commands.includes(t)||h.includes(t)||h.push(t)}))}h.length&&e.fail(s("Unknown argument: %s","Unknown arguments: %s",h.length,h.map((t=>t.trim()?t:`"${t}"`)).join(", ")))},unknownCommands:function(r){const i=t.getInternalMethods().getCommandInstance().getCommands(),n=[],o=t.getInternalMethods().getContext();return(o.commands.length>0||i.length>0)&&r._.slice(o.commands.length).forEach((t=>{i.includes(""+t)||n.push(""+t)})),n.length>0&&(e.fail(s("Unknown command: %s","Unknown commands: %s",n.length,n.join(", "))),!0)},isValidAndSomeAliasIsNotNew:function(e,r){if(!Object.prototype.hasOwnProperty.call(r,e))return!1;const i=t.parsed.newAliases;return[e,...r[e]].some((t=>!Object.prototype.hasOwnProperty.call(i,t)||!i[e]))},limitedChoices:function(r){const s=t.getOptions(),n={};if(!Object.keys(s.choices).length)return;Object.keys(r).forEach((t=>{-1===ht.indexOf(t)&&Object.prototype.hasOwnProperty.call(s.choices,t)&&[].concat(r[t]).forEach((e=>{-1===s.choices[t].indexOf(e)&&void 0!==e&&(n[t]=(n[t]||[]).concat(e))}))}));const o=Object.keys(n);if(!o.length)return;let a=i("Invalid values:");o.forEach((t=>{a+=`\n ${i("Argument: %s, Given: %s, Choices: %s",t,e.stringifiedValues(n[t]),e.stringifiedValues(s.choices[t]))}`})),e.fail(a)}};let o={};function a(t,e){const r=Number(e);return"number"==typeof(e=isNaN(r)?e:r)?e=t._.length>=e:e.match(/^--no-.+/)?(e=e.match(/^--no-(.+)/)[1],e=!Object.prototype.hasOwnProperty.call(t,e)):e=Object.prototype.hasOwnProperty.call(t,e),e}n.implies=function(e,i){Y("<string|object> [array|number|string]",[e,i],arguments.length),"object"==typeof e?Object.keys(e).forEach((t=>{n.implies(t,e[t])})):(t.global(e),o[e]||(o[e]=[]),Array.isArray(i)?i.forEach((t=>n.implies(e,t))):(L(i,void 0,r),o[e].push(i)))},n.getImplied=function(){return o},n.implications=function(t){const r=[];if(Object.keys(o).forEach((e=>{const i=e;(o[e]||[]).forEach((e=>{let s=i;const n=e;s=a(t,s),e=a(t,e),s&&!e&&r.push(` ${i} -> ${n}`)}))})),r.length){let t=`${i("Implications failed:")}\n`;r.forEach((e=>{t+=e})),e.fail(t)}};let u={};n.conflicts=function(e,r){Y("<string|object> [array|string]",[e,r],arguments.length),"object"==typeof e?Object.keys(e).forEach((t=>{n.conflicts(t,e[t])})):(t.global(e),u[e]||(u[e]=[]),Array.isArray(r)?r.forEach((t=>n.conflicts(e,t))):u[e].push(r))},n.getConflicting=()=>u,n.conflicting=function(s){Object.keys(s).forEach((t=>{u[t]&&u[t].forEach((r=>{r&&void 0!==s[t]&&void 0!==s[r]&&e.fail(i("Arguments %s and %s are mutually exclusive",t,r))}))})),t.getInternalMethods().getParserConfiguration()["strip-dashed"]&&Object.keys(u).forEach((t=>{u[t].forEach((n=>{n&&void 0!==s[r.Parser.camelCase(t)]&&void 0!==s[r.Parser.camelCase(n)]&&e.fail(i("Arguments %s and %s are mutually exclusive",t,n))}))}))},n.recommendCommands=function(t,r){r=r.sort(((t,e)=>e.length-t.length));let s=null,n=1/0;for(let e,i=0;void 0!==(e=r[i]);i++){const r=ct(t,e);r<=3&&r<n&&(n=r,s=e)}s&&e.fail(i("Did you mean %s?",s))},n.reset=function(t){return o=rt(o,(e=>!t[e])),u=rt(u,(e=>!t[e])),n};const l=[];return n.freeze=function(){l.push({implied:o,conflicting:u})},n.unfreeze=function(){const t=l.pop();L(t,void 0,r),({implied:o,conflicting:u}=t)},n}(this,Zt(this,qt,"f"),Zt(this,Ht,"f")),"f"),Xt(this,gt,Zt(this,gt,"f")?Zt(this,gt,"f").reset():function(t,e,r,i){return new Q(t,e,r,i)}(Zt(this,qt,"f"),Zt(this,Kt,"f"),Zt(this,Ot,"f"),Zt(this,Ht,"f")),"f"),Zt(this,vt,"f")||Xt(this,vt,function(t,e,r,i){return new lt(t,e,r,i)}(this,Zt(this,qt,"f"),Zt(this,gt,"f"),Zt(this,Ht,"f")),"f"),Zt(this,Ot,"f").reset(),Xt(this,bt,null,"f"),Xt(this,Rt,"","f"),Xt(this,Et,null,"f"),Xt(this,At,!1,"f"),this.parsed=!1,this}[Ae](t,e){return Zt(this,Ht,"f").path.relative(t,e)}[Ie](t,e,r,i=0,s=!1){let n=!!r||s;t=t||Zt(this,Ut,"f"),Zt(this,$t,"f").__=Zt(this,Ht,"f").y18n.__,Zt(this,$t,"f").configuration=this[ne]();const o=!!Zt(this,$t,"f").configuration["populate--"],a=Object.assign({},Zt(this,$t,"f").configuration,{"populate--":!0}),u=Zt(this,Ht,"f").Parser.detailed(t,Object.assign({},Zt(this,$t,"f"),{configuration:{"parse-positional-numbers":!1,...a}})),l=Object.assign(u.argv,Zt(this,Nt,"f"));let c;const h=u.aliases;let d=!1,p=!1;Object.keys(l).forEach((t=>{t===Zt(this,Tt,"f")&&l[t]?d=!0:t===Zt(this,Jt,"f")&&l[t]&&(p=!0)})),l.$0=this.$0,this.parsed=u,0===i&&Zt(this,qt,"f").clearCachedHelpMessage();try{if(this[ae](),e)return this[Se](l,o,!!r,!1);if(Zt(this,Tt,"f")){[Zt(this,Tt,"f")].concat(h[Zt(this,Tt,"f")]||[]).filter((t=>t.length>1)).includes(""+l._[l._.length-1])&&(l._.pop(),d=!0)}Xt(this,It,!1,"f");const a=Zt(this,gt,"f").getCommands(),f=Zt(this,vt,"f").completionKey in l,m=d||f||s;if(l._.length){if(a.length){let t;for(let e,n=i||0;void 0!==l._[n];n++){if(e=String(l._[n]),a.includes(e)&&e!==Zt(this,bt,"f")){const t=Zt(this,gt,"f").runCommand(e,this,u,n+1,s,d||p||s);return this[Se](t,o,!!r,!1)}if(!t&&e!==Zt(this,bt,"f")){t=e;break}}!Zt(this,gt,"f").hasDefaultCommand()&&Zt(this,Gt,"f")&&t&&!m&&Zt(this,Kt,"f").recommendCommands(t,a)}Zt(this,bt,"f")&&l._.includes(Zt(this,bt,"f"))&&!f&&(Zt(this,xt,"f")&&it(!0),this.showCompletionScript(),this.exit(0))}if(Zt(this,gt,"f").hasDefaultCommand()&&!m){const t=Zt(this,gt,"f").runCommand(null,this,u,0,s,d||p||s);return this[Se](t,o,!!r,!1)}if(f){Zt(this,xt,"f")&&it(!0);const e=(t=[].concat(t)).slice(t.indexOf(`--${Zt(this,vt,"f").completionKey}`)+1);return Zt(this,vt,"f").getCompletion(e,((t,e)=>{if(t)throw new I(t.message);(e||[]).forEach((t=>{Zt(this,kt,"f").log(t)})),this.exit(0)})),this[Se](l,!o,!!r,!1)}if(Zt(this,At,"f")||(d?(Zt(this,xt,"f")&&it(!0),n=!0,this.showHelp("log"),this.exit(0)):p&&(Zt(this,xt,"f")&&it(!0),n=!0,Zt(this,qt,"f").showVersion("log"),this.exit(0))),!n&&Zt(this,$t,"f").skipValidation.length>0&&(n=Object.keys(l).some((t=>Zt(this,$t,"f").skipValidation.indexOf(t)>=0&&!0===l[t]))),!n){if(u.error)throw new I(u.error.message);if(!f){const t=this[ke](h,{},u.error);r||(c=K(l,this,Zt(this,Ot,"f").getMiddleware(),!0)),c=this[ye](t,null!=c?c:l),H(c)&&!r&&(c=c.then((()=>K(l,this,Zt(this,Ot,"f").getMiddleware(),!1))))}}}catch(t){if(!(t instanceof I))throw t;Zt(this,qt,"f").fail(t.message,t)}return this[Se](null!=c?c:l,o,!!r,!0)}[ke](t,e,r,i){const s={...this.getDemandedOptions()};return n=>{if(r)throw new I(r.message);Zt(this,Kt,"f").nonOptionCount(n),Zt(this,Kt,"f").requiredArguments(n,s);let o=!1;Zt(this,zt,"f")&&(o=Zt(this,Kt,"f").unknownCommands(n)),Zt(this,Wt,"f")&&!o?Zt(this,Kt,"f").unknownArguments(n,t,e,!!i):Zt(this,Yt,"f")&&Zt(this,Kt,"f").unknownArguments(n,t,{},!1,!1),Zt(this,Kt,"f").limitedChoices(n),Zt(this,Kt,"f").implications(n),Zt(this,Kt,"f").conflicting(n)}}[Re](){Xt(this,At,!0,"f")}[$e](t){if("string"==typeof t)Zt(this,$t,"f").key[t]=!0;else for(const e of t)Zt(this,$t,"f").key[e]=!0}}const Pe=(je=B,(t=[],e=je.process.cwd(),r)=>{const i=new Me(t,e,r,je);return Object.defineProperty(i,"argv",{get:()=>i.parse(),enumerable:!0}),i.help(),i.version(),i});var je;const Ne=Pe;function Be(t,e){const r=t.startsWith(".")?(0,h.join)(e,t):t;return import(r)}function Le(t,e){const{homepage:r,site:i=r,repository:s}=e,n=i&&i!==s,o=t.getInternalMethods(),a=(u=o.getCommandInstance().handlers,Object.keys(u).some((t=>t&&"$0"!==t)));var u;return 0===o.getUsageInstance().getUsage().length&&(a?t.usage("Usage: $0 <command>"):t.usage("Usage: $0")),a&&t.demandCommand(1,"Won't work without a command"),n&&t.epilogue(`Website: ${i}`),s&&t.epilogue(`Repository: ${s}`),t}var Ue=i(9811);const Ge=(t=0)=>e=>`\x1b[${e+t}m`,He=(t=0)=>e=>`\x1b[${38+t};5;${e}m`,We=(t=0)=>(e,r,i)=>`\x1b[${38+t};2;${e};${r};${i}m`,ze={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(ze.modifier),Object.keys(ze.color),Object.keys(ze.bgColor);const Ye=function(){const t=new Map;for(const[e,r]of Object.entries(ze)){for(const[e,i]of Object.entries(r))ze[e]={open:`\x1b[${i[0]}m`,close:`\x1b[${i[1]}m`},r[e]=ze[e],t.set(i[0],i[1]);Object.defineProperty(ze,e,{value:r,enumerable:!1})}return Object.defineProperty(ze,"codes",{value:t,enumerable:!1}),ze.color.close="\x1b[39m",ze.bgColor.close="\x1b[49m",ze.color.ansi=Ge(),ze.color.ansi256=He(),ze.color.ansi16m=We(),ze.bgColor.ansi=Ge(10),ze.bgColor.ansi256=He(10),ze.bgColor.ansi16m=We(10),Object.defineProperties(ze,{rgbToAnsi256:{value:(t,e,r)=>t===e&&e===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(e/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value(t){const e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!e)return[0,0,0];let[r]=e;3===r.length&&(r=[...r].map((t=>t+t)).join(""));const i=Number.parseInt(r,16);return[i>>16&255,i>>8&255,255&i]},enumerable:!1},hexToAnsi256:{value:t=>ze.rgbToAnsi256(...ze.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return t-8+90;let e,r,i;if(t>=232)e=(10*(t-232)+8)/255,r=e,i=e;else{const s=(t-=16)%36;e=Math.floor(t/36)/5,r=Math.floor(s/6)/5,i=s%6/5}const s=2*Math.max(e,r,i);if(0===s)return 30;let n=30+(Math.round(i)<<2|Math.round(r)<<1|Math.round(e));return 2===s&&(n+=60),n},enumerable:!1},rgbToAnsi:{value:(t,e,r)=>ze.ansi256ToAnsi(ze.rgbToAnsi256(t,e,r)),enumerable:!1},hexToAnsi:{value:t=>ze.ansi256ToAnsi(ze.hexToAnsi256(t)),enumerable:!1}}),ze}(),qe=Ye,Ve=t(import.meta.url)("node:process"),Je=t(import.meta.url)("node:os"),Ke=t(import.meta.url)("node:tty");function Xe(t,e=(globalThis.Deno?globalThis.Deno.args:Ve.argv)){const r=t.startsWith("-")?"":1===t.length?"-":"--",i=e.indexOf(r+t),s=e.indexOf("--");return-1!==i&&(-1===s||i<s)}const{env:Ze}=Ve;let Qe;function tr(t,{streamIsTTY:e,sniffFlags:r=!0}={}){const i=function(){if("FORCE_COLOR"in Ze)return"true"===Ze.FORCE_COLOR?1:"false"===Ze.FORCE_COLOR?0:0===Ze.FORCE_COLOR.length?1:Math.min(Number.parseInt(Ze.FORCE_COLOR,10),3)}();void 0!==i&&(Qe=i);const s=r?Qe:i;if(0===s)return 0;if(r){if(Xe("color=16m")||Xe("color=full")||Xe("color=truecolor"))return 3;if(Xe("color=256"))return 2}if("TF_BUILD"in Ze&&"AGENT_NAME"in Ze)return 1;if(t&&!e&&void 0===s)return 0;const n=s||0;if("dumb"===Ze.TERM)return n;if("win32"===Ve.platform){const t=Je.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in Ze)return"GITHUB_ACTIONS"in Ze||"GITEA_ACTIONS"in Ze?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((t=>t in Ze))||"codeship"===Ze.CI_NAME?1:n;if("TEAMCITY_VERSION"in Ze)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ze.TEAMCITY_VERSION)?1:0;if("truecolor"===Ze.COLORTERM)return 3;if("xterm-kitty"===Ze.TERM)return 3;if("TERM_PROGRAM"in Ze){const t=Number.parseInt((Ze.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ze.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ze.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ze.TERM)||"COLORTERM"in Ze?1:n}function er(t,e={}){return function(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(tr(t,{streamIsTTY:t&&t.isTTY,...e}))}Xe("no-color")||Xe("no-colors")||Xe("color=false")||Xe("color=never")?Qe=0:(Xe("color")||Xe("colors")||Xe("color=true")||Xe("color=always"))&&(Qe=1);const rr={stdout:er({isTTY:Ke.isatty(1)}),stderr:er({isTTY:Ke.isatty(2)})};function ir(t,e,r){let i=t.indexOf(e);if(-1===i)return t;const s=e.length;let n=0,o="";do{o+=t.slice(n,i)+e+r,n=i+s,i=t.indexOf(e,n)}while(-1!==i);return o+=t.slice(n),o}const{stdout:sr,stderr:nr}=rr,or=Symbol("GENERATOR"),ar=Symbol("STYLER"),ur=Symbol("IS_EMPTY"),lr=["ansi","ansi","ansi256","ansi16m"],cr=Object.create(null);const hr=t=>{const e=(...t)=>t.join(" ");return((t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const r=sr?sr.level:0;t.level=void 0===e.level?r:e.level})(e,t),Object.setPrototypeOf(e,dr.prototype),e};function dr(t){return hr(t)}Object.setPrototypeOf(dr.prototype,Function.prototype);for(const[t,e]of Object.entries(qe))cr[t]={get(){const r=Dr(this,gr(e.open,e.close,this[ar]),this[ur]);return Object.defineProperty(this,t,{value:r}),r}};cr.visible={get(){const t=Dr(this,this[ar],!0);return Object.defineProperty(this,"visible",{value:t}),t}};const pr=(t,e,r,...i)=>"rgb"===t?"ansi16m"===e?qe[r].ansi16m(...i):"ansi256"===e?qe[r].ansi256(qe.rgbToAnsi256(...i)):qe[r].ansi(qe.rgbToAnsi(...i)):"hex"===t?pr("rgb",e,r,...qe.hexToRgb(...i)):qe[r][t](...i),fr=["rgb","hex","ansi256"];for(const t of fr){cr[t]={get(){const{level:e}=this;return function(...r){const i=gr(pr(t,lr[e],"color",...r),qe.color.close,this[ar]);return Dr(this,i,this[ur])}}};cr["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const{level:e}=this;return function(...r){const i=gr(pr(t,lr[e],"bgColor",...r),qe.bgColor.close,this[ar]);return Dr(this,i,this[ur])}}}}const mr=Object.defineProperties((()=>{}),{...cr,level:{enumerable:!0,get(){return this[or].level},set(t){this[or].level=t}}}),gr=(t,e,r)=>{let i,s;return void 0===r?(i=t,s=e):(i=r.openAll+t,s=e+r.closeAll),{open:t,close:e,openAll:i,closeAll:s,parent:r}},Dr=(t,e,r)=>{const i=(...t)=>yr(i,1===t.length?""+t[0]:t.join(" "));return Object.setPrototypeOf(i,mr),i[or]=t,i[ar]=e,i[ur]=r,i},yr=(t,e)=>{if(t.level<=0||!e)return t[ur]?"":e;let r=t[ar];if(void 0===r)return e;const{openAll:i,closeAll:s}=r;if(e.includes("\x1b"))for(;void 0!==r;)e=ir(e,r.close,r.open),r=r.parent;const n=e.indexOf("\n");return-1!==n&&(e=function(t,e,r,i){let s=0,n="";do{const o="\r"===t[i-1];n+=t.slice(s,o?i-1:i)+e+(o?"\r\n":"\n")+r,s=i+1,i=t.indexOf("\n",s)}while(-1!==i);return n+=t.slice(s),n}(e,s,i,n)),i+e+s};Object.defineProperties(dr.prototype,cr);const vr=dr(),br=(dr({level:nr?nr.level:0}),vr),{cyan:wr,red:Er,green:Fr}=br,Cr="# 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 xr(){return(new Ue.Text).onDone((()=>Cr)).output(".editorconfig").logger("Create/Overwrite",wr(".editorconfig")).catch(console.warn)}var _r=i(8227),Or=i(7417);const Sr=_r((()=>{Or((()=>{Ve.stderr.write("\x1b[?25h")}),{alwaysLast:!0})}));let Ar=!1;const Tr={show:(t=Ve.stderr)=>{t.isTTY&&(Ar=!1,t.write("\x1b[?25h"))},hide:(t=Ve.stderr)=>{t.isTTY&&(Sr(),Ar=!0,t.write("\x1b[?25l"))},toggle:(t,e)=>{void 0!==t&&(Ar=t),Ar?Tr.show(e):Tr.hide(e)}},Ir=Tr;var kr=i(7661);const Rr={info:br.blue("\u2139"),success:br.green("\u2714"),warning:br.yellow("\u26a0"),error:br.red("\u2716")},$r={info:br.blue("i"),success:br.green("\u221a"),warning:br.yellow("\u203c"),error:br.red("\xd7")},Mr=("win32"!==Ve.platform?"linux"!==Ve.env.TERM:Boolean(Ve.env.CI)||Boolean(Ve.env.WT_SESSION)||Boolean(Ve.env.TERMINUS_SUBLIME)||"{cmd::Cmder}"===Ve.env.ConEmuTask||"Terminus-Sublime"===Ve.env.TERM_PROGRAM||"vscode"===Ve.env.TERM_PROGRAM||"xterm-256color"===Ve.env.TERM||"alacritty"===Ve.env.TERM||"JetBrains-JediTerm"===Ve.env.TERMINAL_EMULATOR)?Rr:$r;const Pr=function({onlyFirst:t=!1}={}){const e=["[\\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(e,t?void 0:"g")}();function jr(t){if("string"!=typeof t)throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(Pr,"")}function Nr(t){return 161===t||164===t||167===t||168===t||170===t||173===t||174===t||t>=176&&t<=180||t>=182&&t<=186||t>=188&&t<=191||198===t||208===t||215===t||216===t||t>=222&&t<=225||230===t||t>=232&&t<=234||236===t||237===t||240===t||242===t||243===t||t>=247&&t<=250||252===t||254===t||257===t||273===t||275===t||283===t||294===t||295===t||299===t||t>=305&&t<=307||312===t||t>=319&&t<=322||324===t||t>=328&&t<=331||333===t||338===t||339===t||358===t||359===t||363===t||462===t||464===t||466===t||468===t||470===t||472===t||474===t||476===t||593===t||609===t||708===t||711===t||t>=713&&t<=715||717===t||720===t||t>=728&&t<=731||733===t||735===t||t>=768&&t<=879||t>=913&&t<=929||t>=931&&t<=937||t>=945&&t<=961||t>=963&&t<=969||1025===t||t>=1040&&t<=1103||1105===t||8208===t||t>=8211&&t<=8214||8216===t||8217===t||8220===t||8221===t||t>=8224&&t<=8226||t>=8228&&t<=8231||8240===t||8242===t||8243===t||8245===t||8251===t||8254===t||8308===t||8319===t||t>=8321&&t<=8324||8364===t||8451===t||8453===t||8457===t||8467===t||8470===t||8481===t||8482===t||8486===t||8491===t||8531===t||8532===t||t>=8539&&t<=8542||t>=8544&&t<=8555||t>=8560&&t<=8569||8585===t||t>=8592&&t<=8601||8632===t||8633===t||8658===t||8660===t||8679===t||8704===t||8706===t||8707===t||8711===t||8712===t||8715===t||8719===t||8721===t||8725===t||8730===t||t>=8733&&t<=8736||8739===t||8741===t||t>=8743&&t<=8748||8750===t||t>=8756&&t<=8759||8764===t||8765===t||8776===t||8780===t||8786===t||8800===t||8801===t||t>=8804&&t<=8807||8810===t||8811===t||8814===t||8815===t||8834===t||8835===t||8838===t||8839===t||8853===t||8857===t||8869===t||8895===t||8978===t||t>=9312&&t<=9449||t>=9451&&t<=9547||t>=9552&&t<=9587||t>=9600&&t<=9615||t>=9618&&t<=9621||9632===t||9633===t||t>=9635&&t<=9641||9650===t||9651===t||9654===t||9655===t||9660===t||9661===t||9664===t||9665===t||t>=9670&&t<=9672||9675===t||t>=9678&&t<=9681||t>=9698&&t<=9701||9711===t||9733===t||9734===t||9737===t||9742===t||9743===t||9756===t||9758===t||9792===t||9794===t||9824===t||9825===t||t>=9827&&t<=9829||t>=9831&&t<=9834||9836===t||9837===t||9839===t||9886===t||9887===t||9919===t||t>=9926&&t<=9933||t>=9935&&t<=9939||t>=9941&&t<=9953||9955===t||9960===t||9961===t||t>=9963&&t<=9969||9972===t||t>=9974&&t<=9977||9979===t||9980===t||9982===t||9983===t||10045===t||t>=10102&&t<=10111||t>=11094&&t<=11097||t>=12872&&t<=12879||t>=57344&&t<=63743||t>=65024&&t<=65039||65533===t||t>=127232&&t<=127242||t>=127248&&t<=127277||t>=127280&&t<=127337||t>=127344&&t<=127373||127375===t||127376===t||t>=127387&&t<=127404||t>=917760&&t<=917999||t>=983040&&t<=1048573||t>=1048576&&t<=1114109}function Br(t){return 12288===t||t>=65281&&t<=65376||t>=65504&&t<=65510}function Lr(t){return t>=4352&&t<=4447||8986===t||8987===t||9001===t||9002===t||t>=9193&&t<=9196||9200===t||9203===t||9725===t||9726===t||9748===t||9749===t||t>=9800&&t<=9811||9855===t||9875===t||9889===t||9898===t||9899===t||9917===t||9918===t||9924===t||9925===t||9934===t||9940===t||9962===t||9970===t||9971===t||9973===t||9978===t||9981===t||9989===t||9994===t||9995===t||10024===t||10060===t||10062===t||t>=10067&&t<=10069||10071===t||t>=10133&&t<=10135||10160===t||10175===t||11035===t||11036===t||11088===t||11093===t||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12771||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=19903||t>=19968&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||94192===t||94193===t||t>=94208&&t<=100343||t>=100352&&t<=101589||t>=101632&&t<=101640||t>=110576&&t<=110579||t>=110581&&t<=110587||110589===t||110590===t||t>=110592&&t<=110882||110898===t||t>=110928&&t<=110930||110933===t||t>=110948&&t<=110951||t>=110960&&t<=111355||126980===t||127183===t||127374===t||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||127568===t||127569===t||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||127988===t||t>=127992&&t<=128062||128064===t||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||128378===t||128405===t||128406===t||128420===t||t>=128507&&t<=128591||t>=128640&&t<=128709||128716===t||t>=128720&&t<=128722||t>=128725&&t<=128727||t>=128732&&t<=128735||128747===t||128748===t||t>=128756&&t<=128764||t>=128992&&t<=129003||129008===t||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129672||t>=129680&&t<=129725||t>=129727&&t<=129733||t>=129742&&t<=129755||t>=129760&&t<=129768||t>=129776&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141}function Ur(t){if(!Number.isSafeInteger(t))throw new TypeError(`Expected a code point, got \`${typeof t}\`.`)}function Gr(t,{ambiguousAsWide:e=!1}={}){return Ur(t),Br(t)||Lr(t)||e&&Nr(t)?2:1}const Hr=new Intl.Segmenter;function Wr(t,e={}){if("string"!=typeof t||0===t.length)return 0;const{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:i=!1}=e;if(i||(t=jr(t)),0===t.length)return 0;let s=0;const n={ambiguousAsWide:!r};for(const{segment:e}of Hr.segment(t)){const t=e.codePointAt(0);t<=31||t>=127&&t<=159||(t>=768&&t<=879||(/[#*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(e)?s+=2:s+=Gr(t,n)))}return s}const zr=new class{#t=0;start(){this.#t++,1===this.#t&&this.#e()}stop(){if(this.#t<=0)throw new Error("`stop` called more times than `start`");this.#t--,0===this.#t&&this.#r()}#e(){"win32"!==Ve.platform&&Ve.stdin.isTTY&&(Ve.stdin.setRawMode(!0),Ve.stdin.on("data",this.#i),Ve.stdin.resume())}#r(){Ve.stdin.isTTY&&(Ve.stdin.off("data",this.#i),Ve.stdin.pause(),Ve.stdin.setRawMode(!1))}#i(t){3===t[0]&&Ve.emit("SIGINT")}};class Yr{#s=0;#n=!1;#o=0;#a=0;#u;#l;#c;#h;#d;#p;#f;#m;#g;#D;#y;color;constructor(t){"string"==typeof t&&(t={text:t}),this.#u={color:"cyan",stream:Ve.stderr,discardStdin:!0,hideCursor:!0,...t},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:t=process.stdout}={}){return Boolean(t&&t.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"===Ve.env.NODE_ENV&&(this._stream=this.#c,this._isEnabled=this.#p,Object.defineProperty(this,"_linesToClear",{get(){return this.#s},set(t){this.#s=t}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#a}}),Object.defineProperty(this,"_lineCount",{get(){return this.#o}}))}get indent(){return this.#m}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#m=t,this.#v()}get interval(){return this.#d??this.#l.interval??100}get spinner(){return this.#l}set spinner(t){if(this.#a=0,this.#d=void 0,"object"==typeof t){if(void 0===t.frames)throw new Error("The given spinner must have a `frames` property");this.#l=t}else if("win32"!==Ve.platform?"linux"!==Ve.env.TERM:Boolean(Ve.env.WT_SESSION)||Boolean(Ve.env.TERMINUS_SUBLIME)||"{cmd::Cmder}"===Ve.env.ConEmuTask||"Terminus-Sublime"===Ve.env.TERM_PROGRAM||"vscode"===Ve.env.TERM_PROGRAM||"xterm-256color"===Ve.env.TERM||"alacritty"===Ve.env.TERM||"JetBrains-JediTerm"===Ve.env.TERMINAL_EMULATOR)if(void 0===t)this.#l=kr.dots;else{if("default"===t||!kr[t])throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this.#l=kr[t]}else this.#l=kr.line}get text(){return this.#g}set text(t=""){this.#g=t,this.#v()}get prefixText(){return this.#D}set prefixText(t=""){this.#D=t,this.#v()}get suffixText(){return this.#y}set suffixText(t=""){this.#y=t,this.#v()}get isSpinning(){return void 0!==this.#h}#b(t=this.#D,e=" "){return"string"==typeof t&&""!==t?t+e:"function"==typeof t?t()+e:""}#w(t=this.#y,e=" "){return"string"==typeof t&&""!==t?e+t:"function"==typeof t?e+t():""}#v(){const t=this.#c.columns??80,e=this.#b(this.#D,"-"),r=this.#w(this.#y,"-"),i=" ".repeat(this.#m)+e+"--"+this.#g+"--"+r;this.#o=0;for(const e of jr(i).split("\n"))this.#o+=Math.max(1,Math.ceil(Wr(e,{countAnsiEscapeCodes:!0})/t))}get isEnabled(){return this.#p&&!this.#f}set isEnabled(t){if("boolean"!=typeof t)throw new TypeError("The `isEnabled` option must be a boolean");this.#p=t}get isSilent(){return this.#f}set isSilent(t){if("boolean"!=typeof t)throw new TypeError("The `isSilent` option must be a boolean");this.#f=t}frame(){const{frames:t}=this.#l;let e=t[this.#a];this.color&&(e=br[this.color](e)),this.#a=++this.#a%t.length;return("string"==typeof this.#D&&""!==this.#D?this.#D+" ":"")+e+("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 t=0;t<this.#s;t++)t>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.#s=0,this}render(){return this.#f||(this.clear(),this.#c.write(this.frame()),this.#s=this.#o),this}start(t){return t&&(this.text=t),this.#f?this:this.#p?(this.isSpinning||(this.#u.hideCursor&&Ir.hide(this.#c),this.#u.discardStdin&&Ve.stdin.isTTY&&(this.#n=!0,zr.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&&Ir.show(this.#c),this.#u.discardStdin&&Ve.stdin.isTTY&&this.#n&&(zr.stop(),this.#n=!1),this):this}succeed(t){return this.stopAndPersist({symbol:Mr.success,text:t})}fail(t){return this.stopAndPersist({symbol:Mr.error,text:t})}warn(t){return this.stopAndPersist({symbol:Mr.warning,text:t})}info(t){return this.stopAndPersist({symbol:Mr.info,text:t})}stopAndPersist(t={}){if(this.#f)return this;const e=t.prefixText??this.#D,r=this.#b(e," "),i=t.symbol??" ",s=t.text??this.text,n="string"==typeof s?" "+s:"",o=t.suffixText??this.#y,a=r+i+n+this.#w(o," ")+"\n";return this.stop(),this.#c.write(a),this}}function qr(t){return new Yr(t)}const Vr=t(import.meta.url)("node:child_process"),Jr=t(import.meta.url)("node:fs");var Kr=i(6760),Xr=i(3424),Zr=i(1);function Qr(t){return Xr(t).timeout(5e3).send().then((t=>301===t.statusCode?Qr(t.headers.location):t.text())).then((t=>{const e=t.trim();if(e)return e;throw new Error("template download fail")}))}function ti(t){return t?t.trim():void 0}async function ei(t){if(t)return t;const e=function(){try{return{name:(0,Vr.execSync)("git config user.name").toString().trim(),email:(0,Vr.execSync)("git config user.email").toString().trim()}}catch{return{}}}();return e.name?Zr(e):"Unknown"}function ri(){try{return JSON.parse((0,Jr.readFileSync)((0,Kr.join)(process.cwd(),"package.json")))}catch{return{}}}const ii="# Created by nice-move\n\n* text=auto eol=lf\n",si={Windows_NT:"windows",Linux:"linux",Darwin:"macos"};async function ni(){await(new Ue.Text).onDone((()=>ii)).output(".gitattributes").logger("Create/Overwrite",wr(".gitattributes"));const t=qr({text:"Downloading template from `gitignore.io`"}).start(),e=`Create/Overwrite ${wr(".gitignore")}`;return(new Ue.Text).source(".gitignore").onFail().onDone(((t="")=>Qr(`https://gitignore.io/api/ssh,certificates,node,${si[(0,Je.type)()]}`).then((t=>`${t.replaceAll(/(www\.)?toptal\.com\/developers\/gitignore/g,"gitignore.io").trim()}\n`)).catch((()=>t||"node_modules\n")))).output().then((()=>{t.stopAndPersist({symbol:Fr("\u221a"),text:e})})).catch((r=>{t.stopAndPersist({symbol:Er("\xd7"),text:`${e} - ${r.message}`})}))}const oi='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',ai='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 ui(){const{license:t,author:e=""}=ri(),r="MIT"===t;if(r||"Unlicense"===t){const t=await async function(t){return(await ei(t)).name||"Unknown"}(e);return(new Ue.Text).onDone((()=>r?oi.replace("{{year}}",(new Date).getFullYear()).replace("{{holder}}",t):ai)).output("LICENSE").logger("Create/Overwrite",wr("LICENSE")).catch(console.warn)}}var li=i(2743),ci=i(2102);const hi=t(import.meta.url)("node:util"),di=(0,hi.promisify)(Vr.execFile);const pi={spawn:!0},fi="en-US";async function mi(t,e){return(await async function(t,e){const r=await di(t,e,{encoding:"utf8"});return r.stdout=r.stdout.trim(),r}(t,e)).stdout}function gi(t=process.env){return t.LC_ALL||t.LC_MESSAGES||t.LANG||t.LANGUAGE}function Di(t){const e={};for(const r of t.split("\n")){const[t,i]=r.split("=");e[t]=i.replace(/^"|"$/g,"")}return gi(e)}function yi(t){return t&&t.replace(/[.:].*/,"")}async function vi(){return mi("locale",["-a"])}function bi(t,e=""){return e.includes(t)?t:fi}function wi(t){return t.replace(/_/,"-")}const Ei=new Map;async function Fi(t=pi){if(Ei.has(t.spawn))return Ei.get(t.spawn);let e;try{const r=gi();e=r||!1===t.spawn?yi(r):"win32"===process.platform?await async function(){const t=await mi("wmic",["os","get","locale"]),e=Number.parseInt(t.replace("Locale",""),16);return ci.from(e)}():"darwin"===process.platform?await async function(){const t=await Promise.all([mi("defaults",["read","-globalDomain","AppleLocale"]),vi()]);return bi(t[0],t[1])}():await async function(){return yi(Di(await mi("locale")))}()}catch{}const r=wi(e||fi);return Ei.set(t.spawn,r),r}const Ci={"@bring-it/npm":"^0.5.2","@cospaia/prettier-plugin-clojure":"^0.0.2",ava:"^6.1.2","best-shot":"^0.5.4",eslint:"^8.57.0","eslint-plugin-ava":"^14.0.0",garou:"^0.7.4",prettier:"^3.2.5",sass:"^1.75.0",stylelint:"^16.4.0",syncpack:"^12.3.2",typescript:"~5.4.5","@bring-it/sftp":"^0.3.1","@playwright/test":"^1.43.1","@types/react":"^18.2.79","prettier-plugin-tailwindcss":"^0.5.14",react:"^18.2.0","react-dom":"^18.2.0",tailwindcss:"^3.4.3",vue:"^3.4.22","eslint-config-base":"^0.11.6","stylelint-config":"^0.10.6","prettier-config":"^0.11.3","syncpack-config":"^0.1.1",tsconfig:"^0.2.3",cli:"^0.11.11",lts:"^18.12.0 || ^20.0.0"},xi="package.json";function _i(t){return(new Ue.Json).config({pretty:!0}).source(xi).onFail().onDone(((e={})=>li.all([{engines:{node:Ci.lts},publishConfig:t.private||e.private?void 0:{access:"public",registry:"https://registry.npmjs.org/"}},e,t]))).onDone((t=>(!0===t.private&&async function(){"zh-CN"===await Fi()&&(new Ue.Text).source(".npmrc").onFail().onDone(((t="")=>t.trim()&&/registry\s*=\s*["']?https:\/\/mirrors\.tencent\.com\/npm\/["']?/i.test(t)?t:`registry = https://mirrors.tencent.com/npm/\r${t}`)).output().logger("Set registry to China mirror in",wr(".npmrc")).catch(console.warn)}(),t))).output().logger("Add project info to",wr(xi)).catch(console.warn)}async function Oi(){const{name:t,description:e}=ri();(new Ue.Text).source("README.md").onFail().onDone((r=>r||[`# ${t}`,e?`${e}.\n`:""].filter(Boolean).join("\n\n"))).output().logger("Create",wr("README.md")).catch(console.warn)}const Si=t(import.meta.url)("node:buffer");var Ai=i(1092);var Ti=i(3136);function Ii(t={}){const{env:e=process.env,platform:r=process.platform}=t;return"win32"!==r?"PATH":Object.keys(e).reverse().find((t=>"PATH"===t.toUpperCase()))||"Path"}const ki=(t,e)=>{let r;for(;r!==e;)t.push(Kr.join(e,"node_modules/.bin")),r=e,e=Kr.resolve(e,"..")},Ri=(t,e,r)=>{const i=e instanceof URL?(0,Ti.fileURLToPath)(e):e;t.push(Kr.resolve(r,i,".."))},$i=({env:t=Ve.env,...e}={})=>{const r=Ii({env:t={...t}});return e.path=t[r],t[r]=(({cwd:t=Ve.cwd(),path:e=Ve.env[Ii()],preferLocal:r=!0,execPath:i=Ve.execPath,addExecPath:s=!0}={})=>{const n=t instanceof URL?(0,Ti.fileURLToPath)(t):t,o=Kr.resolve(n),a=[];return r&&ki(a,o),s&&Ri(a,i,o),[...a,e].join(Kr.delimiter)})(e),t},Mi=(t,e,r,i)=>{if("length"===r||"prototype"===r)return;if("arguments"===r||"caller"===r)return;const s=Object.getOwnPropertyDescriptor(t,r),n=Object.getOwnPropertyDescriptor(e,r);!Pi(s,n)&&i||Object.defineProperty(t,r,n)},Pi=function(t,e){return void 0===t||t.configurable||t.writable===e.writable&&t.enumerable===e.enumerable&&t.configurable===e.configurable&&(t.writable||t.value===e.value)},ji=(t,e)=>`/* Wrapped ${t}*/\n${e}`,Ni=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Bi=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");function Li(t,e,{ignoreNonConfigurable:r=!1}={}){const{name:i}=t;for(const i of Reflect.ownKeys(e))Mi(t,e,i,r);return((t,e)=>{const r=Object.getPrototypeOf(e);r!==Object.getPrototypeOf(t)&&Object.setPrototypeOf(t,r)})(t,e),((t,e,r)=>{const i=""===r?"":`with ${r.trim()}() `,s=ji.bind(null,i,e.toString());Object.defineProperty(s,"name",Bi),Object.defineProperty(t,"toString",{...Ni,value:s})})(t,e,i),t}const Ui=new WeakMap,Gi=(t,e={})=>{if("function"!=typeof t)throw new TypeError("Expected a function");let r,i=0;const s=t.displayName||t.name||"<anonymous>",n=function(...o){if(Ui.set(n,++i),1===i)r=t.apply(this,o),t=null;else if(!0===e.throw)throw new Error(`Function \`${s}\` can only be called once`);return r};return Li(n,t),Ui.set(n,i),n};Gi.callCount=t=>{if(!Ui.has(t))throw new Error(`The given function \`${t.name}\` is not wrapped by the \`onetime\` package`);return Ui.get(t)};const Hi=Gi,Wi=(t,e)=>({name:`SIGRT${e+1}`,number:zi+e,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),zi=34,Yi=64,qi=[{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"}],Vi=()=>{const t=(()=>{const t=Yi-zi+1;return Array.from({length:t},Wi)})();return[...qi,...t].map(Ji)},Ji=({name:t,number:e,description:r,action:i,forced:s=!1,standard:n})=>{const{signals:{[t]:o}}=Je.constants,a=void 0!==o;return{name:t,number:a?o:e,description:r,supported:a,action:i,forced:s,standard:n}},Ki=({name:t,number:e,description:r,supported:i,action:s,forced:n,standard:o})=>[t,{name:t,number:e,description:r,supported:i,action:s,forced:n,standard:o}],Xi=(()=>{const t=Vi();return Object.fromEntries(t.map(Ki))})(),Zi=(t,e)=>{const r=Qi(t,e);if(void 0===r)return{};const{name:i,description:s,supported:n,action:o,forced:a,standard:u}=r;return{[t]:{name:i,number:t,description:s,supported:n,action:o,forced:a,standard:u}}},Qi=(t,e)=>{const r=e.find((({name:e})=>Je.constants.signals[e]===t));return void 0!==r?r:e.find((e=>e.number===t))},ts=((()=>{const t=Vi(),e=Yi+1,r=Array.from({length:e},((e,r)=>Zi(r,t)));Object.assign({},...r)})(),({stdout:t,stderr:e,all:r,error:i,signal:s,exitCode:n,command:o,escapedCommand:a,timedOut:u,isCanceled:l,killed:c,parsed:{options:{timeout:h,cwd:d=Ve.cwd()}}})=>{n=null===n?void 0:n;const p=void 0===(s=null===s?void 0:s)?void 0:Xi[s].description,f=(({timedOut:t,timeout:e,errorCode:r,signal:i,signalDescription:s,exitCode:n,isCanceled:o})=>t?`timed out after ${e} milliseconds`:o?"was canceled":void 0!==r?`failed with ${r}`:void 0!==i?`was killed with ${i} (${s})`:void 0!==n?`failed with exit code ${n}`:"failed")({timedOut:u,timeout:h,errorCode:i&&i.code,signal:s,signalDescription:p,exitCode:n,isCanceled:l}),m=`Command ${f}: ${o}`,g="[object Error]"===Object.prototype.toString.call(i),D=g?`${m}\n${i.message}`:m,y=[D,e,t].filter(Boolean).join("\n");return g?(i.originalMessage=i.message,i.message=y):i=new Error(y),i.shortMessage=D,i.command=o,i.escapedCommand=a,i.exitCode=n,i.signal=s,i.signalDescription=p,i.stdout=t,i.stderr=e,i.cwd=d,void 0!==r&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=Boolean(u),i.isCanceled=l,i.killed=c&&!u,i}),es=["stdin","stdout","stderr"],rs=t=>{if(!t)return;const{stdio:e}=t;if(void 0===e)return es.map((e=>t[e]));if((t=>es.some((e=>void 0!==t[e])))(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${es.map((t=>`\`${t}\``)).join(", ")}`);if("string"==typeof e)return 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,es.length);return Array.from({length:r},((t,r)=>e[r]))},is=[];is.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&is.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&is.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const ss=t=>!!t&&"object"==typeof t&&"function"==typeof t.removeListener&&"function"==typeof t.emit&&"function"==typeof t.reallyExit&&"function"==typeof t.listeners&&"function"==typeof t.kill&&"number"==typeof t.pid&&"function"==typeof t.on,ns=Symbol.for("signal-exit emitter"),os=globalThis,as=Object.defineProperty.bind(Object);class us{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(os[ns])return os[ns];as(os,ns,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,e){this.listeners[t].push(e)}removeListener(t,e){const r=this.listeners[t],i=r.indexOf(e);-1!==i&&(0===i&&1===r.length?r.length=0:r.splice(i,1))}emit(t,e,r){if(this.emitted[t])return!1;this.emitted[t]=!0;let i=!1;for(const s of this.listeners[t])i=!0===s(e,r)||i;return"exit"===t&&(i=this.emit("afterExit",e,r)||i),i}}class ls{}const cs=globalThis.process,{onExit:hs,load:ds,unload:ps}=(fs=ss(cs)?new class extends ls{#E="win32"===cs.platform?"SIGINT":"SIGHUP";#F=new us;#C;#x;#_;#O={};#S=!1;constructor(t){super(),this.#C=t,this.#O={};for(const e of is)this.#O[e]=()=>{const r=this.#C.listeners(e);let{count:i}=this.#F;const s=t;if("object"==typeof s.__signal_exit_emitter__&&"number"==typeof s.__signal_exit_emitter__.count&&(i+=s.__signal_exit_emitter__.count),r.length===i){this.unload();const r=this.#F.emit("exit",null,e),i="SIGHUP"===e?this.#E:e;r||t.kill(t.pid,i)}};this.#_=t.reallyExit,this.#x=t.emit}onExit(t,e){if(!ss(this.#C))return()=>{};!1===this.#S&&this.load();const r=e?.alwaysLast?"afterExit":"exit";return this.#F.on(r,t),()=>{this.#F.removeListener(r,t),0===this.#F.listeners.exit.length&&0===this.#F.listeners.afterExit.length&&this.unload()}}load(){if(!this.#S){this.#S=!0,this.#F.count+=1;for(const t of is)try{const e=this.#O[t];e&&this.#C.on(t,e)}catch(t){}this.#C.emit=(t,...e)=>this.#A(t,...e),this.#C.reallyExit=t=>this.#T(t)}}unload(){this.#S&&(this.#S=!1,is.forEach((t=>{const e=this.#O[t];if(!e)throw new Error("Listener not defined for signal: "+t);try{this.#C.removeListener(t,e)}catch(t){}})),this.#C.emit=this.#x,this.#C.reallyExit=this.#_,this.#F.count-=1)}#T(t){return ss(this.#C)?(this.#C.exitCode=t||0,this.#F.emit("exit",this.#C.exitCode,null),this.#_.call(this.#C,this.#C.exitCode)):0}#A(t,...e){const r=this.#x;if("exit"===t&&ss(this.#C)){"number"==typeof e[0]&&(this.#C.exitCode=e[0]);const i=r.call(this.#C,t,...e);return this.#F.emit("exit",this.#C.exitCode,null),i}return r.call(this.#C,t,...e)}}(cs):new class extends ls{onExit(){return()=>{}}load(){}unload(){}},{onExit:(t,e)=>fs.onExit(t,e),load:()=>fs.load(),unload:()=>fs.unload()});var fs;const ms=(t,e="SIGTERM",r={})=>{const i=t(e);return gs(t,e,r,i),i},gs=(t,e,r,i)=>{if(!Ds(e,r,i))return;const s=vs(r),n=setTimeout((()=>{t("SIGKILL")}),s);n.unref&&n.unref()},Ds=(t,{forceKillAfterTimeout:e},r)=>ys(t)&&!1!==e&&r,ys=t=>t===Je.constants.signals.SIGTERM||"string"==typeof t&&"SIGTERM"===t.toUpperCase(),vs=({forceKillAfterTimeout:t=!0})=>{if(!0===t)return 5e3;if(!Number.isFinite(t)||t<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`);return t},bs=(t,e)=>{t.kill()&&(e.isCanceled=!0)},ws=(t,{timeout:e,killSignal:r="SIGTERM"},i)=>{if(0===e||void 0===e)return i;let s;const n=new Promise(((i,n)=>{s=setTimeout((()=>{((t,e,r)=>{t.kill(e),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:e}))})(t,r,n)}),e)})),o=i.finally((()=>{clearTimeout(s)}));return Promise.race([n,o])},Es=({timeout:t})=>{if(void 0!==t&&(!Number.isFinite(t)||t<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${t}\` (${typeof t})`)},Fs=async(t,{cleanup:e,detached:r},i)=>{if(!e||r)return i;const s=hs((()=>{t.kill()}));return i.finally((()=>{s()}))};function Cs(t){return null!==t&&"object"==typeof t&&"function"==typeof t.pipe}function xs(t){return Cs(t)&&!1!==t.writable&&"function"==typeof t._write&&"object"==typeof t._writableState}const _s=(t,e,r)=>{if("string"==typeof r)return t[e].pipe((0,Jr.createWriteStream)(r)),t;if(xs(r))return t[e].pipe(r),t;if(!(t=>t instanceof Vr.ChildProcess&&"function"==typeof t.then)(r))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!xs(r.stdin))throw new TypeError("The target child process's stdin must be available.");return t[e].pipe(r.stdin),r},Os=t=>{null!==t.stdout&&(t.pipeStdout=_s.bind(void 0,t,"stdout")),null!==t.stderr&&(t.pipeStderr=_s.bind(void 0,t,"stderr")),void 0!==t.all&&(t.pipeAll=_s.bind(void 0,t,"all"))},Ss=t(import.meta.url)("node:timers/promises"),As=async(t,{init:e,convertChunk:r,getSize:i,truncateChunk:s,addChunk:n,getFinalChunk:o,finalize:a},{maxBuffer:u=Number.POSITIVE_INFINITY}={})=>{if(!Rs(t))throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");const l=e();l.length=0;try{for await(const e of t){const t=r[$s(e)](e,l);Is({convertedChunk:t,state:l,getSize:i,truncateChunk:s,addChunk:n,maxBuffer:u})}return Ts({state:l,convertChunk:r,getSize:i,truncateChunk:s,addChunk:n,getFinalChunk:o,maxBuffer:u}),a(l)}catch(t){throw t.bufferedData=a(l),t}},Ts=({state:t,getSize:e,truncateChunk:r,addChunk:i,getFinalChunk:s,maxBuffer:n})=>{const o=s(t);void 0!==o&&Is({convertedChunk:o,state:t,getSize:e,truncateChunk:r,addChunk:i,maxBuffer:n})},Is=({convertedChunk:t,state:e,getSize:r,truncateChunk:i,addChunk:s,maxBuffer:n})=>{const o=r(t),a=e.length+o;if(a<=n)return void ks(t,e,s,a);const u=i(t,n-e.length);throw void 0!==u&&ks(u,e,s,n),new Ps},ks=(t,e,r,i)=>{e.contents=r(t,e,i),e.length=i},Rs=t=>"object"==typeof t&&null!==t&&"function"==typeof t[Symbol.asyncIterator],$s=t=>{const e=typeof t;if("string"===e)return"string";if("object"!==e||null===t)return"others";if(globalThis.Buffer?.isBuffer(t))return"buffer";const r=Ms.call(t);return"[object ArrayBuffer]"===r?"arrayBuffer":"[object DataView]"===r?"dataView":Number.isInteger(t.byteLength)&&Number.isInteger(t.byteOffset)&&"[object ArrayBuffer]"===Ms.call(t.buffer)?"typedArray":"others"},{toString:Ms}=Object.prototype;class Ps extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const js=t=>t,Ns=()=>{},Bs=({contents:t})=>t,Ls=t=>{throw new Error(`Streams in object mode are not supported: ${String(t)}`)},Us=t=>t.length;const Gs=new TextEncoder,Hs=t=>new Uint8Array(t),Ws=t=>new Uint8Array(t.buffer,t.byteOffset,t.byteLength),zs=(t,e)=>{if(e<=t.byteLength)return t;const r=new ArrayBuffer(qs(e));return new Uint8Array(r).set(new Uint8Array(t),0),r},Ys=(t,e)=>{if(e<=t.maxByteLength)return t.resize(e),t;const r=new ArrayBuffer(e,{maxByteLength:qs(e)});return new Uint8Array(r).set(new Uint8Array(t),0),r},qs=t=>Vs**Math.ceil(Math.log(t)/Math.log(Vs)),Vs=2,Js=()=>"resize"in ArrayBuffer.prototype,Ks={init:()=>({contents:new ArrayBuffer(0)}),convertChunk:{string:t=>Gs.encode(t),buffer:Hs,arrayBuffer:Hs,dataView:Ws,typedArray:Ws,others:Ls},getSize:Us,truncateChunk:(t,e)=>t.slice(0,e),addChunk:(t,{contents:e,length:r},i)=>{const s=Js()?Ys(e,i):zs(e,i);return new Uint8Array(s).set(t,r),s},getFinalChunk:Ns,finalize:({contents:t,length:e})=>Js()?t:t.slice(0,e)};async function Xs(t,e){if(!("Buffer"in globalThis))throw new Error("getStreamAsBuffer() is only supported in Node.js");try{return Zs(await async function(t,e){return As(t,Ks,e)}(t,e))}catch(t){throw void 0!==t.bufferedData&&(t.bufferedData=Zs(t.bufferedData)),t}}const Zs=t=>globalThis.Buffer.from(t);const Qs=(t,{textDecoder:e})=>e.decode(t,{stream:!0}),tn={init:()=>({contents:"",textDecoder:new TextDecoder}),convertChunk:{string:js,buffer:Qs,arrayBuffer:Qs,dataView:Qs,typedArray:Qs,others:Ls},getSize:Us,truncateChunk:(t,e)=>t.slice(0,e),addChunk:(t,{contents:e})=>e+t,getFinalChunk:({textDecoder:t})=>{const e=t.decode();return""===e?void 0:e},finalize:Bs};var en=i(257);const rn=t=>{if(void 0!==t)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},sn=t=>{const e=(({input:t,inputFile:e})=>"string"!=typeof e?t:(rn(t),(0,Jr.readFileSync)(e)))(t);if(Cs(e))throw new TypeError("The `input` option cannot be a stream in sync mode");return e},nn=(t,e)=>{const r=(({input:t,inputFile:e})=>"string"!=typeof e?t:(rn(t),(0,Jr.createReadStream)(e)))(e);void 0!==r&&(Cs(r)?r.pipe(t.stdin):t.stdin.end(r))},on=(t,{all:e})=>{if(!e||!t.stdout&&!t.stderr)return;const r=en();return t.stdout&&r.add(t.stdout),t.stderr&&r.add(t.stderr),r},an=async(t,e)=>{if(t&&void 0!==e){await(0,Ss.setTimeout)(0),t.destroy();try{return await e}catch(t){return t.bufferedData}}},un=(t,{encoding:e,buffer:r,maxBuffer:i})=>{if(t&&r)return"utf8"===e||"utf-8"===e?async function(t,e){return As(t,tn,e)}(t,{maxBuffer:i}):null===e||"buffer"===e?Xs(t,{maxBuffer:i}):ln(t,i,e)},ln=async(t,e,r)=>(await Xs(t,{maxBuffer:e})).toString(r),cn=async({stdout:t,stderr:e,all:r},{encoding:i,buffer:s,maxBuffer:n},o)=>{const a=un(t,{encoding:i,buffer:s,maxBuffer:n}),u=un(e,{encoding:i,buffer:s,maxBuffer:n}),l=un(r,{encoding:i,buffer:s,maxBuffer:2*n});try{return await Promise.all([o,a,u,l])}catch(i){return Promise.all([{error:i,signal:i.signal,timedOut:i.timedOut},an(t,a),an(e,u),an(r,l)])}},hn=(async()=>{})().constructor.prototype,dn=["then","catch","finally"].map((t=>[t,Reflect.getOwnPropertyDescriptor(hn,t)])),pn=(t,e)=>{for(const[r,i]of dn){const s="function"==typeof e?(...t)=>Reflect.apply(i.value,e(),t):i.value.bind(e);Reflect.defineProperty(t,r,{...i,value:s})}},fn=t=>new Promise(((e,r)=>{t.on("exit",((t,r)=>{e({exitCode:t,signal:r})})),t.on("error",(t=>{r(t)})),t.stdin&&t.stdin.on("error",(t=>{r(t)}))})),mn=(t,e=[])=>Array.isArray(e)?[t,...e]:[t],gn=/^[\w.-]+$/,Dn=(t,e)=>mn(t,e).join(" "),yn=(t,e)=>mn(t,e).map((t=>(t=>"string"!=typeof t||gn.test(t)?t:`"${t.replaceAll('"','\\"')}"`)(t))).join(" "),vn=/ +/g,bn=t=>{const e=typeof t;if("string"===e)return t;if("number"===e)return String(t);if("object"===e&&null!==t&&!(t instanceof Vr.ChildProcess)&&"stdout"in t){const e=typeof t.stdout;if("string"===e)return t.stdout;if(Si.Buffer.isBuffer(t.stdout))return t.stdout.toString();throw new TypeError(`Unexpected "${e}" stdout in template expression`)}throw new TypeError(`Unexpected "${e}" in template expression`)},wn=(t,e,r)=>r||0===t.length||0===e.length?[...t,...e]:[...t.slice(0,-1),`${t.at(-1)}${e[0]}`,...e.slice(1)],En=({templates:t,expressions:e,tokens:r,index:i,template:s})=>{const n=s??t.raw[i],o=n.split(vn).filter(Boolean),a=wn(r,o,n.startsWith(" "));if(i===e.length)return a;const u=e[i],l=Array.isArray(u)?u.map((t=>bn(t))):[bn(u)];return wn(a,l,n.endsWith(" "))},Fn=(t,e)=>{let r=[];for(const[i,s]of t.entries())r=En({templates:t,expressions:e,tokens:r,index:i,template:s});return r},Cn=(0,hi.debuglog)("execa").enabled,xn=(t,e)=>String(t).padStart(e,"0"),_n=(t,{verbose:e})=>{e&&Ve.stderr.write(`[${(()=>{const t=new Date;return`${xn(t.getHours(),2)}:${xn(t.getMinutes(),2)}:${xn(t.getSeconds(),2)}.${xn(t.getMilliseconds(),3)}`})()}] ${t}\n`)},On=(t,e,r={})=>{const i=Ai._parse(t,e,r);return t=i.command,e=i.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=i.options).cwd||Ve.cwd(),execPath:Ve.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:Cn,...r}).env=(({env:t,extendEnv:e,preferLocal:r,localDir:i,execPath:s})=>{const n=e?{...Ve.env,...t}:t;return r?$i({env:n,cwd:i,execPath:s}):n})(r),r.stdio=rs(r),"win32"===Ve.platform&&"cmd"===Kr.basename(t,".exe")&&e.unshift("/q"),{file:t,args:e,options:r,parsed:i}},Sn=(t,e,r)=>"string"==typeof e||Si.Buffer.isBuffer(e)?t.stripFinalNewline?function(t){const e="string"==typeof t?"\n":"\n".charCodeAt(),r="string"==typeof t?"\r":"\r".charCodeAt();return t[t.length-1]===e&&(t=t.slice(0,-1)),t[t.length-1]===r&&(t=t.slice(0,-1)),t}(e):e:void 0===r?void 0:"";function An(t,e,r){const i=On(t,e,r),s=Dn(t,e),n=yn(t,e);let o;_n(n,i.options),Es(i.options);try{o=Vr.spawn(i.file,i.args,i.options)}catch(t){const e=new Vr.ChildProcess,r=Promise.reject(ts({error:t,stdout:"",stderr:"",all:"",command:s,escapedCommand:n,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return pn(e,r),e}const a=fn(o),u=ws(o,i.options,a),l=Fs(o,i.options,u),c={isCanceled:!1};o.kill=ms.bind(null,o.kill.bind(o)),o.cancel=bs.bind(null,o,c);const h=Hi((async()=>{const[{error:t,exitCode:e,signal:r,timedOut:a},u,h,d]=await cn(o,i.options,l),p=Sn(i.options,u),f=Sn(i.options,h),m=Sn(i.options,d);if(t||0!==e||null!==r){const u=ts({error:t,exitCode:e,signal:r,stdout:p,stderr:f,all:m,command:s,escapedCommand:n,parsed:i,timedOut:a,isCanceled:c.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:o.killed});if(!i.options.reject)return u;throw u}return{command:s,escapedCommand:n,exitCode:0,stdout:p,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return nn(o,i.options),o.all=on(o,i.options),Os(o),pn(o,h),o}function Tn(t,e,r){const i=On(t,e,r),s=Dn(t,e),n=yn(t,e);_n(n,i.options);const o=sn(i.options);let a;try{a=Vr.spawnSync(i.file,i.args,{...i.options,input:o})}catch(t){throw ts({error:t,stdout:"",stderr:"",all:"",command:s,escapedCommand:n,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}const u=Sn(i.options,a.stdout,a.error),l=Sn(i.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const t=ts({stdout:u,stderr:l,error:a.error,signal:a.signal,exitCode:a.status,command:s,escapedCommand:n,parsed:i,timedOut:a.error&&"ETIMEDOUT"===a.error.code,isCanceled:!1,killed:null!==a.signal});if(!i.options.reject)return t;throw t}return{command:s,escapedCommand:n,exitCode:0,stdout:u,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}const In=({input:t,inputFile:e,stdio:r})=>void 0===t&&void 0===e&&void 0===r?{stdin:"inherit"}:{},kn=(t={})=>({preferLocal:!0,...In(t),...t});(function t(e){function r(r,...i){if(!Array.isArray(r))return t({...e,...r});const[s,...n]=Fn(r,i);return An(s,n,kn(e))}return r.sync=(t,...r)=>{if(!Array.isArray(t))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");const[i,...s]=Fn(t,r);return Tn(i,s,kn(e))},r})();var Rn=i(4653);function $n({vue:t,react:e}){const r=e&&t||!e&&!t?"base":e?"react":"vue";return{eslintConfig:{extends:`@nice-move/eslint-config-${r}`},devDependencies:{[`@nice-move/eslint-config-${r}`]:Ci["eslint-config-base"],eslint:Ci.eslint}}}const Mn="Add/Reset project dependencies";function Pn(){const{dependencies:t={},devDependencies:e={}}=ri();return{instructions:!1,optionsPerPage:20,message:Mn,name:"Dependencies",type:t=>!1===t?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 t||r in e}))),format:t=>{if(t.length>0)return e=>function(t,e={}){return(new Ue.Json).config({pretty:!0}).source("package.json").onFail().onDone((async(r={})=>{const{devDependencies:i={},dependencies:s={}}=r,{ava:n="ava"in i,commitlint:o="commitlint"in i,eslint:a="eslint"in i,garou:u="garou"in i,prettier:l="prettier"in i,react:c="react"in s,stylelint:h="stylelint"in i,syncpack:d="syncpack"in i,typescript:p="typescript"in i,vue:f="vue"in s,tailwindcss:m="tailwindcss"in s||"tailwindcss"in i,playwright:g,"@bring-it/sftp":D="@bring-it/sftp"in i,"@bring-it/npm":y="@bring-it/npm"in i,"best-shot":v="best-shot"in i}=e,b=a||h||l||u,w=[b?"npm run lint:staged":void 0,p?"npm run lint:type":void 0,n?"npm test":void 0].filter(Boolean);return w.length>0&&await(new Ue.Text).onDone((()=>["#!/bin/sh","",...w,""].join("\n"))).output(".githooks/pre-commit"),o&&await(new Ue.Text).onDone((()=>["#!/bin/sh","","npx --no-install nice-move lint commit",""].join("\n"))).output(".githooks/commit-msg"),d&&await(new Ue.Text).onDone((()=>["// @ts-check","","import defineConfig from '@nice-move/syncpack-config';","","export default defineConfig(import.meta.url, {});"].join("\n"))).output("syncpack.config.mjs"),p&&await(new Ue.Json).config({pretty:!0}).onDone((()=>({extends:"@nice-move/tsconfig/base.json",include:["./"]}))).output("tsconfig.json"),li.all([r,t&&(b||n||o||g||p)?{scripts:{prepare:"nice-move git hooks"}}:void 0,u?{devDependencies:{garou:Ci.garou},"nice-move":{"import-groups":["nice-move-preset"]}}:void 0,p?{devDependencies:{typescript:Ci.typescript,"@nice-move/tsconfig":Ci.tsconfig},scripts:{"lint:type":"tsc --noEmit"}}:void 0,b||o?{devDependencies:{"@nice-move/cli":Ci.cli}}:void 0,b?{scripts:{"lint:staged":"nice-move lint staged"}}:void 0,n?{devDependencies:{ava:Ci.ava,...a?{"eslint-plugin-ava":Ci["eslint-plugin-ava"]}:void 0},scripts:{prepublishOnly:r.private?void 0:w.join(" && ")||void 0,test:"ava --fail-fast",snapshot:"ava --fail-fast -u"}}:void 0,a?$n({react:c,vue:f}):void 0,h?{devDependencies:{"@nice-move/stylelint-config":Ci["stylelint-config"],stylelint:Ci.stylelint},stylelint:{extends:"@nice-move/stylelint-config"}}:void 0,d?{devDependencies:{"@nice-move/syncpack-config":Ci["syncpack-config"],syncpack:Ci.syncpack},scripts:{"lint:version":"syncpack lint","version:pin":"syncpack fix-mismatches"}}:void 0,l?{devDependencies:{"@nice-move/prettier-config":Ci["prettier-config"],prettier:Ci.prettier},prettier:"@nice-move/prettier-config"}:void 0,c?{dependencies:{react:Ci.react,"react-dom":Ci["react-dom"]},peerDependencies:{"@types/react":Ci["@types/react"]}}:void 0,f?{dependencies:{vue:Ci.vue}}:void 0,m?{dependencies:{tailwindcss:Ci.tailwindcss},devDependencies:{"prettier-plugin-tailwindcss":l?Ci["prettier-plugin-tailwindcss"]:void 0}}:void 0,g?{scripts:{"pretest:e2e":"npm link @playwright/test","test:e2e":"playwright test"}}:void 0,D?{devDependencies:{"@bring-it/sftp":Ci["@bring-it/sftp"]}}:void 0,y?{devDependencies:{"@bring-it/npm":Ci["@bring-it/npm"]}}:void 0,v?{devDependencies:{"best-shot":Ci["best-shot"]},"nice-move":{globals:{BEST_SHOT:"readonly"}},scripts:{build:"best-shot prod"}}:void 0].filter(Boolean))})).output().logger(Mn).catch(console.warn)}(e,Object.fromEntries(t.map((t=>[t,!0]))))}}}const jn="Initialize as git repository";function Nn(){return An("git",["init"]).then((t=>(console.log(Fr("\u221a"),jn),t)),(t=>{throw console.log(Er("\xd7"),jn),t}))}function Bn({gitSupported:t,isRoot:e}){return{message:jn,name:"GitInit",initial:!0,type:r=>!1===r||!t||e?null:"confirm",format(t){if(!0===t)return Nn}}}var Ln=i(2422);const Un=`Run ${wr("npm")} / ${wr("yarn")} install command`;var Gn=i(9939);var Hn=i(1651);const Wn=/(?<=^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 zn({cwd:t,pkg:{author:e,description:r,license:i,name:s,private:n,version:o,workspaces:a}={}}){return[{format:ti,initial:(0,Kr.parse)(t).base,message:"package.json \xbb name",name:"name",type:t=>!1===t||s?null:"text",validate:t=>Hn(ti(t)||"").validForNewPackages},{format:ti,initial:"0.0.0",message:"package.json \xbb version",name:"version",type:t=>!1===t||o?null:"text",validate:t=>Wn.test(ti(t)||"")},{format:ti,message:"package.json \xbb description",name:"description",type:t=>!1===t||r?null:"text"},{active:"MIT",format:t=>t?"MIT":"UNLICENSED",inactive:"UNLICENSED",initial:!0,message:"package.json \xbb license",name:"license",type:t=>!1===t||i?null:"toggle"},{type:t=>!1===t||("string"==typeof e?e:e&&e.name)?null:"text",format:Gn,initial:await ei(e),message:"package.json \xbb author",name:"author"},{active:"true",inactive:"false",initial:!1,message:"package.json \xbb private",name:"private",format:t=>!1===t?void 0:t,type:t=>!1===t||void 0!==n?null:"toggle"},{active:"recommend",inactive:"false",initial:!1,message:"package.json \xbb workspaces",name:"workspaces",format:t=>t?["packages/*","tools/*"]:void 0,type:(t,e)=>{return!1===t||!1===n||!1===e.private||(r=a&&a.packages?a.packages:a,Array.isArray(r)&&r.length>0)?null:"toggle";var r}}]}async function Yn(){const t=await An("git",["--version"]).then((({stdout:t})=>Boolean(t))),e=t&&await An("git",["rev-parse","--git-dir"]).then((({stdout:t})=>".git"===t)).catch((()=>!1)),r=!!e&&await An("git",["status","--short"]).then((({stdout:t})=>t.length>0)),i=0===(0,Jr.readdirSync)(process.cwd()).filter((t=>".git"!==t)).length,s=ri(),n=process.cwd(),o={gitSupported:t,isRoot:e,isDirty:r,isEmpty:i,pkg:s,cwd:n},a=await zn(o);return Rn([{active:"do it",inactive:"cancel",message:!0===r?"Repository not clean":"Workspace not empty",name:"okay",type:()=>i||!1===r?null:"toggle"},Bn(o),...a,Pn(),{message:Un,name:"Install",initial:!1,type:t=>!1===t?null:"confirm",format(t){if(!0===t)return()=>{console.log("-".repeat(32)),Ln()}}}],{onCancel(){throw new Error("cancel")}}).then((({okay:t,...e})=>{if(!1===t)throw new Error("cancel");return Object.entries(e)})).then((t=>{const e=a.map((({name:t})=>t)),r=Object.fromEntries(t.filter((([t])=>e.includes(t))));return{...Object.fromEntries(t.filter((([t])=>!e.includes(t)))),info:r,options:o}}))}process.on("SIGINT",(()=>{})),new class{constructor(t,r){this.root=r;const{bin:i,homepage:s,name:n="cheetor",repository:{url:o=""}={},version:a}="string"==typeof t?JSON.parse((0,e.readFileSync)(new URL(t,r))):t;this.homepage=s,this.repository=o.includes("github.com")?o.replace(/\.git$/,""):"";const u=Ne(process.argv.slice(2)).strict().alias("help","h").alias("version","v").hide("help").version(a).hide("version").detectLocale(!1),l=function(t,e){if("string"==typeof t||!t)return e;const r=Object.keys(t);return 1===r.length&&r[0]}(i,n);l&&u.scriptName(l),this.cli=Promise.resolve(u)}config(t){return this.cli=this.cli.then(t),this}command(...t){return this.cli=this.cli.then((e=>e.command(...t))),this}commandFrom(t){return this.cli=this.cli.then((async e=>{const r=await Be(t,this.root);return e.command(r)})),this}commandSafe(t){return this.cli=this.cli.then((e=>function(t,e){return Be(t,e).catch((t=>{if("ERR_MODULE_NOT_FOUND"===t.code&&t.message.endsWith(` imported from ${(0,f.fileURLToPath)(import.meta.url)}`))return!1;throw t}))}(t,this.root).then((t=>t&&t.command?e.command(t):e)))),this}commandSmart(t){return this.cli=this.cli.then((async e=>{const r=t();return r&&r.command?e.command(r):e})),this}website(t){return this.site=t,this}middleware(...t){return this.cli=this.cli.then((e=>e.middleware(...t))),this}setup(t){return this.cli.then((t=>Le(t,this))).then((e=>"function"==typeof t?t(e.parse()):e.parse()))}}("../package.json",import.meta.url).website("https://www.npmjs.com/org/nice-move").setup((()=>{(async function(){const{Dependencies:t,GitInit:e,Install:r,info:i,options:{isRoot:s}={}}=await Yn();console.log("-".repeat(32));const n=[e,()=>_i(i),Oi,ui,xr,()=>e||s?ni():void 0,()=>t?t(e||s):void 0,r].filter((t=>"function"==typeof t));for(const t of n){const e=await t();e&&e.catch&&e.catch((t=>{console.warn(t.message)}))}})().catch((t=>{if("cancel"!==t.message)throw t}))}))})();
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,f.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 f(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 p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of p)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 p){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(f.prototype,c);const v=f();v.supportsColor=i,v.stderr=f({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)}},6800:(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;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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$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(415)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},415:(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}},7124:(e,t,r)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=r(6800):e.exports=r(7698)},7698:(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(415)(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(7124)("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"],f=Object.create(null);d.forEach((function(e){f[e]=function(t,r,n){this._redirectable.emit(e,t,r,n)}}));var p=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 p({input:e});return t}function C(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new p({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new p({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,f[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,f[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,f=x(/^host$/i,this._options.headers),p=F(this._currentUrl),m=f||p.host,b=/^\w+:/.test(s)?this._currentUrl:n.format(Object.assign(p,{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!==p.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:f}=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(f(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(f(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 f=i.dirname(t);return i.parse(f).root!==f&&await a(f),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 f=global[n]||[];c(s,f),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 p(e){o(e),e.gracefulify=p,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 f=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 f},set:function(e){f=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=p(u(s)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!s.__patched&&(e.exports=p(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;return r&l||r&u&&i===o||r&a&&n===s||r&c&&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);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+(r=e,1==(r%=10)?"st":2===r?"nd":3===r?"rd":"th"):"d"===this.token?t+1:"ddd"===this.token?this.locales.weekdaysShort[t]:"dddd"===this.token?this.locales.weekdays[t]:e;var r}}},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,f=l.wrap,p=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"+f(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=p(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,f=h.cursor,p=r(9180),m=p.DatePart,g=p.Meridiem,b=p.Day,y=p.Hours,D=p.Milliseconds,w=p.Minutes,v=p.Month,E=p.Seconds,F=p.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(f.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+f.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,f=c.clear,p=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(p(this.outputError,this.out.columns)-1)+f(this.outputError,this.out.columns)),this.out.write(f(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,f=c.lines,p=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(f(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?" ":p.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 f(){return p.apply(this,arguments)}function p(){return p=l((function*(e=[],{onSubmit:t=d,onCancel:r=d}={}){const n={},s=f._override||{};let a,u,p,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=f._injected?m(f._injected,u.initial):yield c[b](u),n[g]=a=yield D(u,a,!0),p=yield t(u,a,n)}catch(e){p=!(yield r(u,n))}if(p)return n}else n[g]=a}}}catch(e){v.e(e)}finally{v.f()}return n})),p.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(f,{prompt:f,prompts:c,inject:function(e){f._injected=(f._injected||[]).concat(e)},override:function(e){f._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+(r=e,1==(r%=10)?"st":2===r?"nd":3===r?"rd":"th"):"d"===this.token?t+1:"ddd"===this.token?this.locales.weekdaysShort[t]:"dddd"===this.token?this.locales.weekdays[t]:e;var r}}},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]),f=(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:f(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:f,Milliseconds:p,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 f(e),7:e=>new m(e),8:e=>new b(e),9:e=>new p(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,f=(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(`${f(e,this.round)}`),this._value=f(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,f,p,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:f,type:p}=h),"function"==typeof p&&(p=await p(c,{...u},h),h.type=p),p){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:f,type:p}=h),void 0===n[p])throw new Error(`prompt type (${p}) 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[p](h),u[f]=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[f]=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===f&&p();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(){f&&i(global.process)&&(f=!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 f=!1,p=function(){!f&&i(global.process)&&(f=!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=p;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),f=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+h:h;s(d(f,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 f(e,t,{pretty:r=!1}={}){return l(e,t,r?c:void 0)}const p=s({read:h,write:d}),m=s({read:a,write:f}),g=s({read:h,write:f}),b=s({read:a,write:d});e.exports={Creator:s,Json:m,JsonToText:b,Text:p,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 t=n(9896),r=n(2613);const i={right:function(e,t){e=e.trim();const r=a.stringWidth(e);if(r<t)return" ".repeat(t-r)+e;return e},center:function(e,t){e=e.trim();const r=a.stringWidth(e);if(r>=t)return e;return" ".repeat(t-r>>1)+e}};class s{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&&a.stringWidth(e[0])>r&&(r=Math.min(Math.floor(.5*this.width),a.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=a.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 s="";r.forEach(((r,u)=>{const{width:l}=e[u],c=this.negatePadding(e[u]);let h=r;if(c>a.stringWidth(r)&&(h+=" ".repeat(c-a.stringWidth(r))),e[u].align&&"left"!==e[u].align&&this.wrap){h=(0,i[e[u].align])(h,c),a.stringWidth(h)<c&&(h+=" ".repeat((l||0)-a.stringWidth(h)-1))}const d=e[u].padding||[0,0,0,0];d[3]&&(s+=" ".repeat(d[3])),s+=o(e[u],h,"| "),s+=h,s+=o(e[u],h," |"),d[1]&&(s+=" ".repeat(d[1])),0===n&&t.length>0&&(s=this.renderInline(s,t[t.length-1]))})),t.push({text:s.replace(/ +$/,""),span:e.span})})),t}renderInline(e,t){const r=e.match(/^ */),n=r?r[0].length:0,i=t.text,s=a.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?a.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||a.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 o(e,t,r){return e.border?/[.']-+[.']/.test(t)?"":0!==t.trim().length?r:" ":""}let a;const u=new RegExp("\x1b(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)","g");function l(e){return e.replace(u,"")}function c(e,t){const[r,n]=e.match(u)||["",""];e=l(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 h=n(6928);var d,f=n(9023),p=n(7016);function m(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 g(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 b(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 y;!function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"}(d||(d={}));function D(e){return void 0!==e?e+1:1}function w(e){return"__proto__"===e?"___proto___":e}var v,E,F;const C=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):12,S=null!==(E=null===(v=null===process||void 0===process?void 0:process.versions)||void 0===v?void 0:v.node)&&void 0!==E?E:null===(F=null===process||void 0===process?void 0:process.version)||void 0===F?void 0:F.slice(1);if(S){if(Number(S.match(/^([^.]+)/)[1])<C)throw Error(`yargs parser supports a minimum Node.js version of ${C}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`)}const x=process?process.env:{},O=new class{constructor(e){y=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?"--":"_",f=Object.create(null),p=Object.create(null),v=r.__||y.format,E={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&&(E[r][t]=!0),E.arrays[t]=!0,E.keys.push(t)})),[].concat(r.boolean||[]).filter(Boolean).forEach((function(e){E.bools[e]=!0,E.keys.push(e)})),[].concat(r.string||[]).filter(Boolean).forEach((function(e){E.strings[e]=!0,E.keys.push(e)})),[].concat(r.number||[]).filter(Boolean).forEach((function(e){E.numbers[e]=!0,E.keys.push(e)})),[].concat(r.count||[]).filter(Boolean).forEach((function(e){E.counts[e]=!0,E.keys.push(e)})),[].concat(r.normalize||[]).filter(Boolean).forEach((function(e){E.normalize[e]=!0,E.keys.push(e)})),"object"==typeof r.narg&&Object.entries(r.narg).forEach((([e,t])=>{"number"==typeof t&&(E.nargs[e]=t,E.keys.push(e))})),"object"==typeof r.coerce&&Object.entries(r.coerce).forEach((([e,t])=>{"function"==typeof t&&(E.coercions[e]=t,E.keys.push(e))})),void 0!==r.config&&(Array.isArray(r.config)||"string"==typeof r.config?[].concat(r.config).filter(Boolean).forEach((function(e){E.configs[e]=!0})):"object"==typeof r.config&&Object.entries(r.config).forEach((([e,t])=>{"boolean"!=typeof t&&"function"!=typeof t||(E.configs[e]=t)}))),function(...e){e.forEach((function(e){Object.keys(e||{}).forEach((function(e){E.aliases[e]||(E.aliases[e]=[].concat(s[e]||[]),E.aliases[e].concat(e).forEach((function(t){if(/-/.test(t)&&o["camel-case-expansion"]){const r=m(t);r!==e&&-1===E.aliases[e].indexOf(r)&&(E.aliases[e].push(r),f[r]=!0)}})),E.aliases[e].concat(e).forEach((function(t){if(t.length>1&&/[A-Z]/.test(t)&&o["camel-case-expansion"]){const r=g(t,"-");r!==e&&-1===E.aliases[e].indexOf(r)&&(E.aliases[e].push(r),f[r]=!0)}})),E.aliases[e].forEach((function(t){E.aliases[t]=[e].concat(E.aliases[e].filter((function(e){return t!==e})))})))}))}))}(r.key,s,r.default,E.arrays),Object.keys(a).forEach((function(e){(E.aliases[e]||[]).forEach((function(t){a[t]=a[e]}))}));let S=null;Object.keys(E.counts).find((e=>U(e,E.arrays)?(S=Error(v("Invalid configuration: %s, opts.count excludes opts.array.",e)),!0):!!U(e,E.nargs)&&(S=Error(v("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],E.arrays)?e=M(e,u[1],n,u[2]):!1!==U(u[1],E.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,E.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,E.arrays)?e=M(e,s,n):!1!==U(s,E.nargs)?e=T(e,s,n):(l=n[e+1],void 0===l||l.match(/^-/)&&!l.match(F)||U(s,E.bools)||U(s,E.counts)?/^(true|false)$/.test(l)?(k(s,l),e++):k(s,H(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,E.bools)||U(s,E.counts)?k(s,H(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,E.arrays)?e=M(e,s,n,c):!1!==U(s,E.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,E.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],H(a[r]))}else k(a[r],l)}s=t.slice(-1)[0],i||"-"===s||(U(s,E.arrays)?e=M(e,s,n):!1!==U(s,E.nargs)?e=T(e,s,n):(l=n[e+1],void 0===l||/^(-|--)[^-]/.test(l)&&!l.match(F)||U(s,E.bools)||U(s,E.counts)?/^(true|false)$/.test(l)?(k(s,l),e++):k(s,H(s)):(k(s,l),e++)))}else if(t.match(/^-[0-9]$/)&&t.match(F)&&U(t.slice(1),E.bools))s=t.slice(1),k(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,E.nargs);if(s="number"!=typeof s||isNaN(s)?1:s,0===s)return z(n)||(S=Error(v("Argument unexpected for: %s",t))),k(t,H(t)),e;let a=z(n)?0:1;if(o["nargs-eats-options"])r.length-(e+1)+a<s&&(S=Error(v("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(v("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,E.nargs);if(U(t,E.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(v("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 m(e)})).join(".");I(e,t)}const n=j(e,t,r),s=e.split(".");if(L(O,s,n),E.aliases[e]&&E.aliases[e].forEach((function(e){const t=e.split(".");L(O,t,n)})),s.length>1&&o["dot-notation"]&&(E.aliases[s[0]]||[]).forEach((function(t){let r=t.split(".");const i=[].concat(s);i.shift(),r=r.concat(i),(E.aliases[e]||[]).includes(r.join("."))||L(O,r,n)})),U(e,E.normalize)&&!U(e,E.arrays)){[e].concat(E.aliases[e]||[]).forEach((function(e){Object.defineProperty(_,e,{enumerable:!0,get:()=>t,set(e){t="string"==typeof e?y.normalize(e):e}})}))}}function I(e,t){E.aliases[e]&&E.aliases[e].length||(E.aliases[e]=[t],f[t]=!0),E.aliases[t]&&E.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,E.bools)||U(e,E.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,E.counts)&&(z(n)||"boolean"==typeof n)&&(n=D()),U(e,E.normalize)&&U(e,E.arrays)&&(n=Array.isArray(t)?t.map((e=>y.normalize(e))):y.normalize(t)),n}function B(e,t){if(!o["parse-positional-numbers"]&&"_"===e)return t;if(!U(e,E.strings)&&!U(e,E.bools)&&!Array.isArray(t)){(b(t)&&o["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${t}`)))||!z(t)&&U(e,E.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,E.arrays)&&o["combine-arrays"])&&k(i,n)}))}function R(e,t){if(void 0===l)return;const r="string"==typeof l?l:"",n=y.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)),m(e)}));(t&&E.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&&(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=w(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=w(t[t.length-1]),s=U(t.join("."),E.arrays),a=Array.isArray(r);let u=o["duplicate-arguments-array"];!u&&U(i,E.nargs)&&(u=!0,(!z(n[i])&&1===E.nargs[i]||Array.isArray(n[i])&&n[i].length===E.nargs[i])&&(n[i]=void 0)),r===D()?n[i]=D(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,E.counts)||U(i,E.bools)?n[i]=r:n[i]=[n[i],r]}function U(e,t){const r=[].concat(E.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(E);return[].concat(t.map((e=>E[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,E.bools)||U(e,E.counts)||!(`${e}`in a)?(t=function(e){let t=d.BOOLEAN;return U(e,E.strings)?t=d.STRING:U(e,E.numbers)?t=d.NUMBER:U(e,E.bools)?t=d.BOOLEAN:U(e,E.arrays)&&(t=d.ARRAY),t}(e),{[d.BOOLEAN]:!0,[d.STRING]:"",[d.NUMBER]:void 0,[d.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,E.aliases,a),Object.keys(E.configs).forEach((function(r){const n=e[r]||t[r];if(n)try{let e=null;const t=y.resolve(y.cwd(),n),i=E.configs[r];if("function"==typeof i){try{e=i(t)}catch(t){e=t}if(e instanceof Error)return void(S=e)}else e=y.require(t);P(e)}catch(t){"PermissionDenied"===t.name?S=t:e[r]&&(S=Error(v("Invalid JSON config file: %s",n)))}}))}(O),void 0!==u&&u.forEach((function(e){P(e)})),$(O,E.aliases,a,!0),function(e){let t;const r=new Set;Object.keys(e).forEach((function(n){if(!r.has(n)&&(t=U(n,E.coercions),"function"==typeof t))try{const i=B(n,t(e[n]));[].concat(E.aliases[n]||[],n).forEach((t=>{r.add(t),e[t]=i}))}catch(e){S=e}}))}(O),o["set-placeholder-key"]&&function(e){E.keys.forEach((t=>{~t.indexOf(".")||void 0===e[t]&&(e[t]=void 0)}))}(O),Object.keys(E.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=>m(e))).join(".")],delete O[e]})),{aliases:Object.assign({},E.aliases),argv:Object.assign(_,O),configuration:o,defaulted:Object.assign({},p),error:S,newAliases:Object.assign({},f)}}}({cwd:process.cwd,env:()=>x,format:f.format,normalize:h.normalize,resolve:h.resolve,require:e=>{if("undefined"!=typeof require)return require(e);if(e.match(/\.json$/))return JSON.parse((0,t.readFileSync)(e,"utf8"));throw Error("only .json config files are supported in ESM")}}),_=function(e,t){return O.parse(e.slice(),t).argv};_.detailed=function(e,t){return O.parse(e.slice(),t)},_.camelCase=m,_.decamelize=g,_.looksLikeNumber=b;const A=_;function T(){return process.versions.electron&&!process.defaultApp?0:1}class M extends Error{constructor(e){super(e||"yargs error"),this.name="YError",Error.captureStackTrace&&Error.captureStackTrace(this,M)}}const k={fs:{readFileSync:t.readFileSync,writeFile:t.writeFile},format:f.format,resolve:h.resolve,exists:e=>{try{return(0,t.statSync)(e).isFile()}catch(e){return!1}}};let I;class j{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(),I.format.apply(I.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),I.format.apply(I.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);I.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{I.fs.readFileSync&&(e=JSON.parse(I.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=I.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(r)&&~t.lastIndexOf("_")){const n=I.resolve(e,"./",t.split("_")[0]+".json");this._fileExistsSync(n)&&(r=n)}return r}_fileExistsSync(e){return I.exists(e)}}const B=e=>function(e,t){I=t;const r=new j(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,k),P="loading a directory of commands is not supported yet for ESM";let R;try{R=(0,p.fileURLToPath)(import.meta.url)}catch(e){R=process.cwd()}const $=R.substring(0,R.lastIndexOf("node_modules")),N={assert:{notStrictEqual:r.notStrictEqual,strictEqual:r.strictEqual},cliui:function(e){return function(e,t){return a=t,new s({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:l,wrap:c})},findUp:function(e,r){let n,i=(0,h.resolve)(".",e);for((0,t.statSync)(i).isDirectory()||(i=(0,h.dirname)(i));;){if(n=r(i,(0,t.readdirSync)(i)),n)return(0,h.resolve)(i,n);if(i=(0,h.dirname)(n=i),n===i)break}},getEnv:e=>process.env[e],inspect:f.inspect,getCallerFile:()=>{throw new M(P)},getProcessArgvBin:function(){return process.argv[T()]},mainFilename:$||process.cwd(),Parser:A,path:{basename:h.basename,dirname:h.dirname,extname:h.extname,relative:h.relative,resolve:h.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:t.readFileSync,require:()=>{throw new M("require is not supported by ESM")},requireDirectory:()=>{throw new M(P)},stringWidth:e=>[...e].length,y18n:B({directory:(0,h.resolve)(R,"../../../locales"),updateFiles:!1})};function L(e,t,r,n){r.assert.notStrictEqual(e,t,n)}function U(e,t){t.assert.strictEqual(typeof e,"string")}function W(e){return Object.keys(e)}function G(e){return!!e&&!!e.then&&"function"==typeof e.then}function H(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 z=["first","second","third","fourth","fifth","sixth"];function V(e,t,r){try{let n=0;const[i,s,o]="object"==typeof e?[{demanded:[],optional:[]},e,t]:[H(`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 M(`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 M(`Too many arguments provided. Expected max ${l} but received ${u}.`);i.demanded.forEach((e=>{const t=q(a.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&Y(t,e.cmd,n),n+=1})),i.optional.forEach((e=>{if(0===a.length)return;const t=q(a.shift());0===e.cmd.filter((e=>e===t||"*"===e)).length&&Y(t,e.cmd,n),n+=1}))}catch(e){console.warn(e.stack)}}function q(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function Y(e,t,r){throw new M(`Invalid ${z[r]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}class K{constructor(e){this.globalMiddleware=[],this.frozens=[],this.yargs=e}addMiddleware(e,t,r=!0,n=!1){if(V("<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 J(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 Z(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 Q=/(^\*)|(^\$0)/;class X{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(ee(r))return void this.addHandler([e].concat(o),t,r.builder,r.handler,r.middlewares,r.deprecated)}if("string"==typeof e){const i=H(e);o=o.map((e=>H(e).cmd));let u=!1;const l=[i.cmd].concat(o).filter((e=>!Q.test(e)||(u=!0,!1)));0===l.length&&u&&l.push("$0"),u&&(i.cmd=l[0],o=l.slice(1),e=e.replace(Q,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(te(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=Q.test(t.original)?t.original.replace(Q,"").trim():t.original,n=e.filter((e=>!Q.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=Z(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=Z(r=J(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=J(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=H(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=Q.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(te(t))return t(e,!0);ee(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;L(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();L(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 ee(e){return"object"==typeof e&&!!e.builder&&"function"==typeof e.handler}function te(e){return"function"==typeof e}function re(e={},t=(()=>!0)){const r={};return W(e).forEach((n=>{t(n,e[n])&&(r[n]=e[n])})),r}function ne(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 ie(e){return"boolean"==typeof e}function se(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()&&ne(!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 M(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(ie(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 f={};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])})):f[e]=t},n.getDescriptions=()=>f;let p=[];n.epilog=e=>{p.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} ${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=>{f[s]&&n.describe(i,f[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(f)),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,n;x(t[e])&&(t[e]=(r=t[e],n=4,oe(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=f[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()),p.length>0){const e=p.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,p=[],h=[],d=[],f=re(f,(t=>!e[t])),n};const F=[];return n.freeze=function(){F.push({failMessage:s,failureOutput:u,usages:l,usageDisabled:c,epilogs:p,examples:h,commands:d,descriptions:f})},n.unfreeze=function(e=!1){const t=F.pop();t&&(e?(f={...t.descriptions,...f},d=[...t.commands,...d],l=[...t.usages,...l],h=[...t.examples,...h],p=[...t.epilogs,...p]):({failMessage:s,failureOutput:u,usages:l,usageDisabled:c,epilogs:p,examples:h,commands:d,descriptions:f}=t))},n}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(te(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=H(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(L(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 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 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,fe=[];function pe(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(fe.indexOf(e)>-1)throw new M(`Circular extended configurations: '${e}'.`)}(s),fe.push(s),i=n?JSON.parse(de.readFileSync(s,"utf8")):require(e.extends),delete e.extends,i=pe(i,de.path.dirname(s),r,de)}return fe=[],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,Ge,He,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"),ft=Symbol("populateParserHintArrayDictionary"),pt=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),Ge.set(this,void 0),He.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,Ge,n,"f"),Ze(this,Ue,e,"f"),Ze(this,be,t,"f"),Ze(this,Be,r,"f"),Ze(this,Oe,new K(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 V("[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(V("[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 V("<object|string|array> [string|array]",[e,t],arguments.length),this[ft](this.alias.bind(this),"alias",e,t),this}array(e){return V("<array|string>",[e],arguments.length),this[ht]("array",e),this[jt](e),this}boolean(e){return V("<array|string>",[e],arguments.length),this[ht]("boolean",e),this[jt](e),this}check(e,t){return V("<function> [boolean]",[e,t],arguments.length),this.middleware(((t,r)=>Z((()=>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,Ge,"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 V("<object|string|array> [string|array]",[e,t],arguments.length),this[ft](this.choices.bind(this),"choices",e,t),this}coerce(e,t){if(V("<object|string|array> [function]",[e,t],arguments.length),Array.isArray(e)){if(!t)throw new M("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 M("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)?Z((()=>(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 M(e.message)})):r}),e),this}conflicts(e,t){return V("<string|object> [string|array]",[e,t],arguments.length),Qe(this,Je,"f").conflicts(e,t),this}config(e="config",t,r){return V("[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=pe(e,Qe(this,be,"f"),this[st]()["deep-merge-config"]||!1,Qe(this,Ge,"f")),Qe(this,je,"f").configObjects=(Qe(this,je,"f").configObjects||[]).concat(e),this)}completion(e,t,r){return V("[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 V("<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){V("<string> [object]",[e,t],arguments.length);const r=Qe(this,Be,"f")||Qe(this,Ge,"f").require;return Qe(this,ge,"f").addDirectory(e,r,Qe(this,Ge,"f").getCallerFile(),t),this}count(e){return V("<array|string>",[e],arguments.length),this[ht]("count",e),this[jt](e),this}default(e,t,r){return V("<object|string|array> [*] [string]",[e,t,r],arguments.length),r&&(U(e,Qe(this,Ge,"f")),Qe(this,je,"f").defaultDescription[e]=r),"function"==typeof t&&(U(e,Qe(this,Ge,"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 V("[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=>{L(r,!0,Qe(this,Ge,"f")),this.demandOption(e,r)})),t=1/0):"number"!=typeof t&&(r=t,t=1/0),"number"==typeof e?(L(r,!0,Qe(this,Ge,"f")),this.demandCommand(e,t,r,r)):Array.isArray(e)?e.forEach((e=>{L(r,!0,Qe(this,Ge,"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 V("<object|string|array> [string]",[e,t],arguments.length),this[dt](this.demandOption.bind(this),"demandedOptions",e,t),this}deprecateOption(e,t){return V("<string> [string|boolean]",[e,t],arguments.length),Qe(this,je,"f").deprecatedOptions[e]=t,this}describe(e,t){return V("<object|string|array> [string]",[e,t],arguments.length),this[gt](e,!0),Qe(this,qe,"f").describe(e,t),this}detectLocale(e){return V("<boolean>",[e],arguments.length),Ze(this,Fe,e,"f"),this}env(e){return V("[string|boolean]",[e],arguments.length),!1===e?delete Qe(this,je,"f").envPrefix:Qe(this,je,"f").envPrefix=e||"",this}epilogue(e){return V("<string>",[e],arguments.length),Qe(this,qe,"f").epilog(e),this}epilog(e){return this.epilogue(e)}example(e,t){return V("<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,Ge,"f").process.exit(e)}exitProcess(e=!0){return V("[boolean]",[e],arguments.length),Ze(this,Se,e,"f"),this}fail(e){if(V("<function|boolean>",[e],arguments.length),"boolean"==typeof e&&!1!==e)throw new M("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 V("<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 V([],0),Qe(this,je,"f").demandedOptions}getDemandedCommands(){return V([],0),Qe(this,je,"f").demandedCommands}getDeprecatedOptions(){return V([],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,He,"f")}getStrictCommands(){return Qe(this,ze,"f")}getStrictOptions(){return Qe(this,Ve,"f")}global(e,t){return V("<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){V("<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 V("<string>",[e],arguments.length),Qe(this,je,"f").hiddenOptions.push(e),this}implies(e,t){return V("<string|object> [number|string|array]",[e,t],arguments.length),Qe(this,Je,"f").implies(e,t),this}locale(e){return V("[string]",[e],arguments.length),void 0===e?(this[at](),Qe(this,Ge,"f").y18n.getLocale()):(Ze(this,Fe,!1,"f"),Qe(this,Ge,"f").y18n.setLocale(e),this)}middleware(e,t,r){return Qe(this,Oe,"f").addMiddleware(e,!!t,r)}nargs(e,t){return V("<string|object|array> [number]",[e,t],arguments.length),this[dt](this.nargs.bind(this),"narg",e,t),this}normalize(e){return V("<array|string>",[e],arguments.length),this[ht]("normalize",e),this}number(e){return V("<array|string>",[e],arguments.length),this[ht]("number",e),this[jt](e),this}option(e,t){if(V("<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){V("[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 M(".parseSync() must not be used with asynchronous builders, handlers, or middleware");return n}parserConfiguration(e){return V("<object>",[e],arguments.length),Ze(this,Pe,e,"f"),this}pkgConf(e,t){V("<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=pe(n[e],t||Qe(this,be,"f"),this[st]()["deep-merge-config"]||!1,Qe(this,Ge,"f")),Qe(this,je,"f").configObjects=(Qe(this,je,"f").configObjects||[]).concat(r)),this}positional(e,t){V("<string> <object>",[e,t],arguments.length);const r=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];t=re(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 W(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 V("[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 V("<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 V("[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(V("[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 V("[boolean|string] [string]",[e,t],arguments.length),Qe(this,qe,"f").showHelpOnFail(e,t),this}showVersion(e){return V("[string|function]",[e],arguments.length),Qe(this,qe,"f").showVersion(e),this}skipValidation(e){return V("<array|string>",[e],arguments.length),this[ht]("skipValidation",e),this}strict(e){return V("[boolean]",[e],arguments.length),Ze(this,He,!1!==e,"f"),this}strictCommands(e){return V("[boolean]",[e],arguments.length),Ze(this,ze,!1!==e,"f"),this}strictOptions(e){return V("[boolean]",[e],arguments.length),Ze(this,Ve,!1!==e,"f"),this}string(e){return V("<array|string>",[e],arguments.length),this[ht]("string",e),this[jt](e),this}terminalWidth(){return V([],0),Qe(this,Ge,"f").process.stdColumns}updateLocale(e){return this.updateStrings(e)}updateStrings(e){return V("<object>",[e],arguments.length),Ze(this,Fe,!1,"f"),Qe(this,Ge,"f").y18n.updateLocale(e),this}usage(e,t,r,n){if(V("<string|null|undefined> [string|boolean] [function|object] [function]",[e,t,r,n],arguments.length),void 0!==t){if(L(e,null,Qe(this,Ge,"f")),(e||"").match(/^\$0( |$)/))return this.command(e,t,r,n);throw new M(".usage() description must start with $0 if being used as alias for .command()")}return Qe(this,qe,"f").usage(e),this}usageConfiguration(e){return V("<object>",[e],arguments.length),Ze(this,Ye,e,"f"),this}version(e,t,r){const n="version";if(V("[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 V("<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,Ge=new WeakMap,He=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){W(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,Ge,"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,He,"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,Ge,"f").process.argv()[0])?Qe(this,Ge,"f").process.argv().slice(1,2):Qe(this,Ge,"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,Ge,"f").getEnv("_")&&Qe(this,Ge,"f").getProcessArgvBin()===Qe(this,Ge,"f").getEnv("_")&&(t=Qe(this,Ge,"f").getEnv("_").replace(`${Qe(this,Ge,"f").path.dirname(Qe(this,Ge,"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,Ge,"f").getEnv("LC_ALL")||Qe(this,Ge,"f").getEnv("LC_MESSAGES")||Qe(this,Ge,"f").getEnv("LANG")||Qe(this,Ge,"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,Ge,"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,Ge,"f").mainFilename;!e&&Qe(this,Ge,"f").path.extname(t)&&(t=Qe(this,Ge,"f").path.dirname(t));const n=Qe(this,Ge,"f").findUp(t,((e,t)=>t.includes("package.json")?"package.json":void 0));L(n,void 0,Qe(this,Ge,"f")),r=JSON.parse(Qe(this,Ge,"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[pt](e,t,r,n,((e,t,r)=>{Qe(this,je,"f")[e][t]=r}))}[ft](e,t,r,n){this[pt](e,t,r,n,((e,t,r)=>{Qe(this,je,"f")[e][t]=(Qe(this,je,"f")[e][t]||[]).concat(r)}))}[pt](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 W(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 f;L(d,void 0,Qe(this,Ge,"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:f,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,He,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=f,Qe(this,qe,"f").unfreeze(),Qe(this,Je,"f").unfreeze(),Qe(this,ge,"f").unfreeze(),Qe(this,Oe,"f").unfreeze()}[yt](e,t){return Z(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){if(r)return e;if(G(e))return e;t||(e=this[Xe](e));return(this[st]()["parse-positional-numbers"]||void 0===this[st]()["parse-positional-numbers"])&&(e=this[lt](e)),n&&(e=J(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={};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");return["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]=re(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):se(this,Qe(this,Ge,"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){V("<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))):(L(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){V("<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=re(o,(t=>!e[t])),u=re(u,(t=>!e[t])),s};const l=[];return s.freeze=function(){l.push({implied:o,conflicting:u})},s.unfreeze=function(){const e=l.pop();L(e,void 0,r),({implied:o,conflicting:u}=e)},s}(this,Qe(this,qe,"f"),Qe(this,Ge,"f")),"f"),Ze(this,ge,Qe(this,ge,"f")?Qe(this,ge,"f").reset():function(e,t,r,n){return new X(e,t,r,n)}(Qe(this,qe,"f"),Qe(this,Je,"f"),Qe(this,Oe,"f"),Qe(this,Ge,"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,Ge,"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,Ge,"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,Ge,"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,Ge,"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,f=!1;Object.keys(l).forEach((e=>{e===Qe(this,Te,"f")&&l[e]?d=!0:e===Qe(this,Ke,"f")&&l[e]&&(f=!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);if(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(),p=Qe(this,De,"f").completionKey in l,m=d||p||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||f||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"))&&!p&&(Qe(this,Se,"f")&&ne(!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||f||i);return this[_t](e,o,!!r,!1)}if(p){Qe(this,Se,"f")&&ne(!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 M(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")&&ne(!0),s=!0,this.showHelp("log"),this.exit(0)):f&&(Qe(this,Se,"f")&&ne(!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 M(u.error.message);if(!p){const e=this[kt](h,{},u.error);r||(c=J(l,this,Qe(this,Oe,"f").getMiddleware(),!0)),c=this[yt](e,null!=c?c:l),G(c)&&!r&&(c=c.then((()=>J(l,this,Qe(this,Oe,"f").getMiddleware(),!1))))}}}catch(e){if(!(e instanceof M))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 M(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,He,"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,h.join)(t,e):e;return import(r)}function Lt(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 Ut=n(9523);const Wt=(e=0)=>t=>`\x1b[${t+e}m`,Gt=(e=0)=>t=>`\x1b[${38+e};5;${t}m`,Ht=(e=0)=>(t,r,n)=>`\x1b[${38+e};2;${t};${r};${n}m`,zt={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(zt.modifier),Object.keys(zt.color),Object.keys(zt.bgColor);const Vt=function(){const e=new Map;for(const[t,r]of Object.entries(zt)){for(const[t,n]of Object.entries(r))zt[t]={open:`\x1b[${n[0]}m`,close:`\x1b[${n[1]}m`},r[t]=zt[t],e.set(n[0],n[1]);Object.defineProperty(zt,t,{value:r,enumerable:!1})}return Object.defineProperty(zt,"codes",{value:e,enumerable:!1}),zt.color.close="\x1b[39m",zt.bgColor.close="\x1b[49m",zt.color.ansi=Wt(),zt.color.ansi256=Gt(),zt.color.ansi16m=Ht(),zt.bgColor.ansi=Wt(10),zt.bgColor.ansi256=Gt(10),zt.bgColor.ansi16m=Ht(10),Object.defineProperties(zt,{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=>zt.rgbToAnsi256(...zt.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)=>zt.ansi256ToAnsi(zt.rgbToAnsi256(e,t,r)),enumerable:!1},hexToAnsi:{value:e=>zt.ansi256ToAnsi(zt.hexToAnsi256(e)),enumerable:!1}}),zt}(),qt=Vt,Yt=e(import.meta.url)("node:process"),Kt=e(import.meta.url)("node:os"),Jt=e(import.meta.url)("node:tty");function Zt(e,t=(globalThis.Deno?globalThis.Deno.args:Yt.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:Qt}=Yt;let Xt;function er(e,{streamIsTTY:t,sniffFlags:r=!0}={}){const n=function(){if("FORCE_COLOR"in Qt)return"true"===Qt.FORCE_COLOR?1:"false"===Qt.FORCE_COLOR?0:0===Qt.FORCE_COLOR.length?1:Math.min(Number.parseInt(Qt.FORCE_COLOR,10),3)}();void 0!==n&&(Xt=n);const i=r?Xt:n;if(0===i)return 0;if(r){if(Zt("color=16m")||Zt("color=full")||Zt("color=truecolor"))return 3;if(Zt("color=256"))return 2}if("TF_BUILD"in Qt&&"AGENT_NAME"in Qt)return 1;if(e&&!t&&void 0===i)return 0;const s=i||0;if("dumb"===Qt.TERM)return s;if("win32"===Yt.platform){const e=Kt.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Qt)return"GITHUB_ACTIONS"in Qt||"GITEA_ACTIONS"in Qt?3:["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((e=>e in Qt))||"codeship"===Qt.CI_NAME?1:s;if("TEAMCITY_VERSION"in Qt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Qt.TEAMCITY_VERSION)?1:0;if("truecolor"===Qt.COLORTERM)return 3;if("xterm-kitty"===Qt.TERM)return 3;if("TERM_PROGRAM"in Qt){const e=Number.parseInt((Qt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Qt.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Qt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Qt.TERM)||"COLORTERM"in Qt?1:s}function tr(e,t={}){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(er(e,{streamIsTTY:e&&e.isTTY,...t}))}Zt("no-color")||Zt("no-colors")||Zt("color=false")||Zt("color=never")?Xt=0:(Zt("color")||Zt("colors")||Zt("color=true")||Zt("color=always"))&&(Xt=1);const rr={stdout:tr({isTTY:Jt.isatty(1)}),stderr:tr({isTTY:Jt.isatty(2)})};function nr(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:ir,stderr:sr}=rr,or=Symbol("GENERATOR"),ar=Symbol("STYLER"),ur=Symbol("IS_EMPTY"),lr=["ansi","ansi","ansi256","ansi16m"],cr=Object.create(null);const hr=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=ir?ir.level:0;e.level=void 0===t.level?r:t.level})(t,e),Object.setPrototypeOf(t,dr.prototype),t};function dr(e){return hr(e)}Object.setPrototypeOf(dr.prototype,Function.prototype);for(const[e,t]of Object.entries(qt))cr[e]={get(){const r=br(this,gr(t.open,t.close,this[ar]),this[ur]);return Object.defineProperty(this,e,{value:r}),r}};cr.visible={get(){const e=br(this,this[ar],!0);return Object.defineProperty(this,"visible",{value:e}),e}};const fr=(e,t,r,...n)=>"rgb"===e?"ansi16m"===t?qt[r].ansi16m(...n):"ansi256"===t?qt[r].ansi256(qt.rgbToAnsi256(...n)):qt[r].ansi(qt.rgbToAnsi(...n)):"hex"===e?fr("rgb",t,r,...qt.hexToRgb(...n)):qt[r][e](...n),pr=["rgb","hex","ansi256"];for(const e of pr){cr[e]={get(){const{level:t}=this;return function(...r){const n=gr(fr(e,lr[t],"color",...r),qt.color.close,this[ar]);return br(this,n,this[ur])}}};cr["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:t}=this;return function(...r){const n=gr(fr(e,lr[t],"bgColor",...r),qt.bgColor.close,this[ar]);return br(this,n,this[ur])}}}}const mr=Object.defineProperties((()=>{}),{...cr,level:{enumerable:!0,get(){return this[or].level},set(e){this[or].level=e}}}),gr=(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}},br=(e,t,r)=>{const n=(...e)=>yr(n,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(n,mr),n[or]=e,n[ar]=t,n[ur]=r,n},yr=(e,t)=>{if(e.level<=0||!t)return e[ur]?"":t;let r=e[ar];if(void 0===r)return t;const{openAll:n,closeAll:i}=r;if(t.includes("\x1b"))for(;void 0!==r;)t=nr(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(dr.prototype,cr);const Dr=dr(),wr=(dr({level:sr?sr.level:0}),Dr),{cyan:vr,red:Er,green:Fr}=wr,Cr="# 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 Sr(){return(new Ut.Text).onDone((()=>Cr)).output(".editorconfig").logger("Create/Overwrite",vr(".editorconfig")).catch(console.warn)}var xr=n(7862),Or=n(112);const _r=xr((()=>{Or((()=>{Yt.stderr.write("\x1b[?25h")}),{alwaysLast:!0})}));let Ar=!1;const Tr={show:(e=Yt.stderr)=>{e.isTTY&&(Ar=!1,e.write("\x1b[?25h"))},hide:(e=Yt.stderr)=>{e.isTTY&&(_r(),Ar=!0,e.write("\x1b[?25l"))},toggle:(e,t)=>{void 0!==e&&(Ar=e),Ar?Tr.show(t):Tr.hide(t)}},Mr=Tr;var kr=n(1473);const Ir={info:wr.blue("\u2139"),success:wr.green("\u2714"),warning:wr.yellow("\u26a0"),error:wr.red("\u2716")},jr={info:wr.blue("i"),success:wr.green("\u221a"),warning:wr.yellow("\u203c"),error:wr.red("\xd7")},Br=("win32"!==Yt.platform?"linux"!==Yt.env.TERM:Boolean(Yt.env.CI)||Boolean(Yt.env.WT_SESSION)||Boolean(Yt.env.TERMINUS_SUBLIME)||"{cmd::Cmder}"===Yt.env.ConEmuTask||"Terminus-Sublime"===Yt.env.TERM_PROGRAM||"vscode"===Yt.env.TERM_PROGRAM||"xterm-256color"===Yt.env.TERM||"alacritty"===Yt.env.TERM||"JetBrains-JediTerm"===Yt.env.TERMINAL_EMULATOR)?Ir:jr;const Pr=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 Rr(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Pr,"")}function $r(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 Nr(e){return 12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510}function Lr(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 Ur(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Wr(e,{ambiguousAsWide:t=!1}={}){return Ur(e),Nr(e)||Lr(e)||t&&$r(e)?2:1}const Gr=new Intl.Segmenter;function Hr(e,t={}){if("string"!=typeof e||0===e.length)return 0;const{ambiguousIsNarrow:r=!0,countAnsiEscapeCodes:n=!1}=t;if(n||(e=Rr(e)),0===e.length)return 0;let i=0;const s={ambiguousAsWide:!r};for(const{segment:t}of Gr.segment(e)){const e=t.codePointAt(0);e<=31||e>=127&&e<=159||(e>=768&&e<=879||(/[#*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+=Wr(e,s)))}return i}function zr(){return"win32"!==Yt.platform?"linux"!==Yt.env.TERM:Boolean(Yt.env.WT_SESSION)||Boolean(Yt.env.TERMINUS_SUBLIME)||"{cmd::Cmder}"===Yt.env.ConEmuTask||"Terminus-Sublime"===Yt.env.TERM_PROGRAM||"vscode"===Yt.env.TERM_PROGRAM||"xterm-256color"===Yt.env.TERM||"alacritty"===Yt.env.TERM||"JetBrains-JediTerm"===Yt.env.TERMINAL_EMULATOR}const Vr=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"!==Yt.platform&&Yt.stdin.isTTY&&(Yt.stdin.setRawMode(!0),Yt.stdin.on("data",this.#n),Yt.stdin.resume())}#r(){Yt.stdin.isTTY&&(Yt.stdin.off("data",this.#n),Yt.stdin.pause(),Yt.stdin.setRawMode(!1))}#n(e){3===e[0]&&Yt.emit("SIGINT")}};class qr{#i=0;#s=!1;#o=0;#a=0;#u;#l;#c;#h;#d;#f;#p;#m;#g;#b;#y;color;constructor(e){"string"==typeof e&&(e={text:e}),this.#u={color:"cyan",stream:Yt.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.#f="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.#p="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"===Yt.env.NODE_ENV&&(this._stream=this.#c,this._isEnabled=this.#f,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(zr())if(void 0===e)this.#l=kr.dots;else{if("default"===e||!kr[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=kr[e]}else this.#l=kr.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 Rr(n).split("\n"))this.#o+=Math.max(1,Math.ceil(Hr(t,{countAnsiEscapeCodes:!0})/e))}get isEnabled(){return this.#f&&!this.#p}set isEnabled(e){if("boolean"!=typeof e)throw new TypeError("The `isEnabled` option must be a boolean");this.#f=e}get isSilent(){return this.#p}set isSilent(e){if("boolean"!=typeof e)throw new TypeError("The `isSilent` option must be a boolean");this.#p=e}frame(){const{frames:e}=this.#l;let t=e[this.#a];this.color&&(t=wr[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.#f||!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.#p||(this.clear(),this.#c.write(this.frame()),this.#i=this.#o),this}start(e){return e&&(this.text=e),this.#p?this:this.#f?(this.isSpinning||(this.#u.hideCursor&&Mr.hide(this.#c),this.#u.discardStdin&&Yt.stdin.isTTY&&(this.#s=!0,Vr.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.#f?(clearInterval(this.#h),this.#h=void 0,this.#a=0,this.clear(),this.#u.hideCursor&&Mr.show(this.#c),this.#u.discardStdin&&Yt.stdin.isTTY&&this.#s&&(Vr.stop(),this.#s=!1),this):this}succeed(e){return this.stopAndPersist({symbol:Br.success,text:e})}fail(e){return this.stopAndPersist({symbol:Br.error,text:e})}warn(e){return this.stopAndPersist({symbol:Br.warning,text:e})}info(e){return this.stopAndPersist({symbol:Br.info,text:e})}stopAndPersist(e={}){if(this.#p)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 Yr(e){return new qr(e)}const Kr=e(import.meta.url)("node:child_process"),Jr=e(import.meta.url)("node:fs");var Zr=n(6760),Qr=n(1364),Xr=n(3396);function en(e){return Qr(e).timeout(5e3).send().then((e=>301===e.statusCode?en(e.headers.location):e.text())).then((e=>{const t=e.trim();if(t)return t;throw new Error("template download fail")}))}function tn(e){return e?e.trim():void 0}async function rn(e){if(e)return e;const t=function(){try{return{name:(0,Kr.execSync)("git config user.name").toString().trim(),email:(0,Kr.execSync)("git config user.email").toString().trim()}}catch{return{}}}();return t.name?Xr(t):"Unknown"}function nn(){try{return JSON.parse((0,Jr.readFileSync)((0,Zr.join)(process.cwd(),"package.json")))}catch{return{}}}const sn="# Created by nice-move\n\n* text=auto eol=lf\n",on={Windows_NT:"windows",Linux:"linux",Darwin:"macos"};async function an(){await(new Ut.Text).onDone((()=>sn)).output(".gitattributes").logger("Create/Overwrite",vr(".gitattributes"));const e=Yr({text:"Downloading template from `gitignore.io`"}).start(),t=`Create/Overwrite ${vr(".gitignore")}`;return(new Ut.Text).source(".gitignore").onFail().onDone(((e="")=>en(`https://gitignore.io/api/ssh,certificates,node,${on[(0,Kt.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:Fr("\u221a"),text:t})})).catch((r=>{e.stopAndPersist({symbol:Er("\xd7"),text:`${t} - ${r.message}`})}))}const un='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',ln='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 cn(){const{license:e,author:t=""}=nn(),r="MIT"===e;if(r||"Unlicense"===e){const e=await async function(e){return(await rn(e)).name||"Unknown"}(t);return(new Ut.Text).onDone((()=>r?un.replace("{{year}}",(new Date).getFullYear()).replace("{{holder}}",e):ln)).output("LICENSE").logger("Create/Overwrite",vr("LICENSE")).catch(console.warn)}}var hn=n(4579),dn=n(323);const fn=e(import.meta.url)("node:util"),pn=(0,fn.promisify)(Kr.execFile);const mn={spawn:!0},gn="en-US";async function bn(e,t){return(await async function(e,t){const r=await pn(e,t,{encoding:"utf8"});return r.stdout=r.stdout.trim(),r}(e,t)).stdout}function yn(e=process.env){return e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE}function Dn(e){const t={};for(const r of e.split("\n")){const[e,n]=r.split("=");t[e]=n.replace(/^"|"$/g,"")}return yn(t)}function wn(e){return e&&e.replace(/[.:].*/,"")}async function vn(){return bn("locale",["-a"])}function En(e,t=""){return t.includes(e)?e:gn}function Fn(e){return e.replace(/_/,"-")}const Cn=new Map;async function Sn(e=mn){if(Cn.has(e.spawn))return Cn.get(e.spawn);let t;try{const r=yn();t=r||!1===e.spawn?wn(r):"win32"===process.platform?await async function(){const e=await bn("wmic",["os","get","locale"]),t=Number.parseInt(e.replace("Locale",""),16);return dn.from(t)}():"darwin"===process.platform?await async function(){const e=await Promise.all([bn("defaults",["read","-globalDomain","AppleLocale"]),vn()]);return En(e[0],e[1])}():await async function(){return wn(Dn(await bn("locale")))}()}catch{}const r=Fn(t||gn);return Cn.set(e.spawn,r),r}const xn={"@bring-it/npm":"^0.5.4","@cospaia/prettier-plugin-clojure":"^0.0.2",ava:"^6.1.3","best-shot":"^0.5.7",eslint:"^8.57.0","eslint-plugin-ava":"^14.0.0",garou:"^0.7.5",postcss:"^8.4.38",prettier:"^3.3.1","prettier-plugin-tailwindcss":"^0.6.1",sass:"^1.77.4",stylelint:"^16.6.1",syncpack:"^12.3.2",typescript:"~5.4.5","@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.9","stylelint-config":"^0.10.6","prettier-config":"^0.12.4","syncpack-config":"^0.1.3",tsconfig:"^0.2.3",cli:"^0.11.13",lts:"^18.12.0 || ^20.0.0"},On="package.json";function _n(e){return(new Ut.Json).config({pretty:!0}).source(On).onFail().onDone(((t={})=>hn.all([{engines:{node:xn.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 Sn()&&(new Ut.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",vr(".npmrc")).catch(console.warn)}(),e))).output().logger("Add project info to",vr(On)).catch(console.warn)}async function An(){const{name:e,description:t}=nn();(new Ut.Text).source("README.md").onFail().onDone((r=>r||[`# ${e}`,t?`${t}.\n`:""].filter(Boolean).join("\n\n"))).output().logger("Create",vr("README.md")).catch(console.warn)}function Tn(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 Mn=n(3136);const kn=(e,t)=>{const r=In(e);if("string"!=typeof r)throw new TypeError(`${t} must be a string or a file URL: ${r}.`);return r},In=e=>e instanceof URL?(0,Mn.fileURLToPath)(e):e,jn=(e,t=[],r={})=>{const n=kn(e,"First argument"),[i,s]=Tn(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(!Tn(s))throw new TypeError(`Last argument must be an options object: ${s}`);return[n,o,s]},Bn=e(import.meta.url)("node:string_decoder"),{toString:Pn}=Object.prototype,Rn=e=>"[object Uint8Array]"===Pn.call(e),$n=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Nn=new TextEncoder,Ln=e=>Nn.encode(e),Un=new TextDecoder,Wn=e=>Un.decode(e),Gn=(e,t)=>{if("utf8"===t&&e.every((e=>"string"==typeof e)))return e;const r=new Bn.StringDecoder(t),n=e.map((e=>"string"==typeof e?Ln(e):e)).map((e=>r.write(e))),i=r.end();return""===i?n:[...n,i]},Hn=e=>1===e.length&&Rn(e[0])?e[0]:Vn(zn(e)),zn=e=>e.map((e=>"string"==typeof e?Ln(e):e)),Vn=e=>{const t=new Uint8Array(qn(e));let r=0;for(const n of e)t.set(n,r),r+=n.length;return t},qn=e=>{let t=0;for(const r of e)t+=r.length;return t},Yn=({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}=Kn(i,e.raw[n]),u=Qn(r,s,o);if(n===t.length)return u;const l=t[n],c=Array.isArray(l)?l.map((e=>Xn(e))):[Xn(l)];return Qn(u,c,a)},Kn=(e,t)=>{if(0===t.length)return{nextTokens:[],leadingWhitespaces:!1,trailingWhitespaces:!1};const r=[];let n=0;const i=Jn.has(t[0]);for(let i=0,s=0;i<e.length;i+=1,s+=1){const o=t[s];if(Jn.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+=Zn[e]??1}}const s=n===e.length;return s||r.push(e.slice(n)),{nextTokens:r,leadingWhitespaces:i,trailingWhitespaces:s}},Jn=new Set([" ","\t","\r","\n"]),Zn={x:3,u:5},Qn=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],Xn=e=>{const t=typeof e;if("string"===t)return e;if("number"===t)return String(e);if(Tn(e)&&("stdout"in e||"isMaxBuffer"in e))return ei(e);if(e instanceof Kr.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`)},ei=({stdout:e})=>{if("string"==typeof e)return e;if(Rn(e))return Wn(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`)},ti=Jt.WriteStream.prototype.hasColors(),ri=(e,t)=>{if(!ti)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}},ni=(ri(0,0),ri(1,22)),ii=(ri(2,22),ri(3,23),ri(4,24),ri(53,55),ri(7,27),ri(8,28),ri(9,29),ri(30,39),ri(31,39),ri(32,39),ri(33,39),ri(34,39),ri(35,39),ri(36,39),ri(37,39),ri(90,39)),si=(ri(40,49),ri(41,49),ri(42,49),ri(43,49),ri(44,49),ri(45,49),ri(46,49),ri(47,49),ri(100,49),ri(91,39)),oi=(ri(92,39),ri(93,39)),ai=(ri(94,39),ri(95,39),ri(96,39),ri(97,39),ri(101,49),ri(102,49),ri(103,49),ri(104,49),ri(105,49),ri(106,49),ri(107,49),(0,fn.debuglog)("execa").enabled?"full":"none");let ui=0n;const li=e=>e.some((e=>"none"!==e)),ci=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(!hi.has(t)){const e=[...hi].map((e=>`'${e}'`)).join(", ");throw new TypeError(`The "verbose" option must not be ${t}. Allowed values are: ${e}.`)}}},hi=new Set(["none","short","full"]),di={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"},fi={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"},pi={...di,...fi},mi={...di,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"},gi=zr(),bi=gi?pi:mi,yi=(Object.entries(fi),e=>(0,fn.stripVTControlCharacters)(e).split("\n").map((e=>Di(e))).join("\n")),Di=e=>e.replaceAll(vi,(e=>wi(e))),wi=e=>{const t=Ei[e];if(void 0!==t)return t;const r=e.codePointAt(0),n=r.toString(16);return r<=Fi?`\\u${n.padStart(4,"0")}`:`\\U${n}`},vi=/\p{Separator}|\p{Other}/gu,Ei={" ":" ","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},Fi=65535,Ci=e=>Si.test(e)?e:"win32"===Yt.platform?`"${e.replaceAll('"','""')}"`:`'${e.replaceAll("'","'\\''")}'`,Si=/^[\w./-]+$/,xi=(e,t,r,n)=>{const i=_i(e,t,r,n);(0,Jr.writeFileSync)(Oi,`${i}\n`)},Oi=2,_i=(e,t,r,n)=>e.includes("\n")?e.split("\n").map((e=>Ai(e,t,r,n))).join("\n"):Ai(e,t,r,n),Ai=(e,t,r,n=Ti)=>[ii(`[${Mi()}]`),ii(`[${t}]`),n(Ii[r]),n(e)].join(" "),Ti=e=>e,Mi=()=>{const e=new Date;return`${ki(e.getHours(),2)}:${ki(e.getMinutes(),2)}:${ki(e.getSeconds(),2)}.${ki(e.getMilliseconds(),3)}`},ki=(e,t)=>String(e).padStart(t,"0"),Ii={command:"$",pipedCommand:"|",output:" ",ipc:"*",error:bi.cross,warning:bi.warning,success:bi.tick},ji=e=>{const t="string"==typeof e?e:(0,fn.inspect)(e);return yi(t).replaceAll("\t"," ".repeat(Bi))},Bi=2,Pi=()=>Yt.hrtime.bigint(),Ri=e=>Number(Yt.hrtime.bigint()-e)/1e6,$i=e=>Ni.includes(e),Ni=[Yt.stdin,Yt.stdout,Yt.stderr],Li=["stdin","stdout","stderr"],Ui=e=>Li[e]??`stdio[${e}]`,Wi=(e,t)=>{const r=Array.from({length:Gi(e)+1}),n=Hi(e[t],r,t);return Zi(n,t)},Gi=({stdio:e})=>Array.isArray(e)?Math.max(e.length,Li.length):Li.length,Hi=(e,t,r)=>Tn(e)?zi(e,t,r):t.fill(e),zi=(e,t,r)=>{for(const n of Object.keys(e).sort(Vi))for(const i of Yi(n,r,t))t[i]=e[n];return t},Vi=(e,t)=>qi(e)<qi(t)?1:-1,qi=e=>"stdout"===e||"stderr"===e?0:"all"===e?2:1,Yi=(e,t,r)=>{if("ipc"===e)return[r.length-1];const n=Ki(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]},Ki=e=>{if("all"===e)return e;if(Li.includes(e))return Li.indexOf(e);const t=Ji.exec(e);return null!==t?Number(t[1]):void 0},Ji=/^fd(\d+)$/,Zi=(e,t)=>e.map((e=>void 0===e?Qi[t]:e)),Qi={lines:!1,buffer:!0,maxBuffer:1e8,verbose:ai,stripFinalNewline:!0},Xi=["lines","buffer","maxBuffer","verbose","stripFinalNewline"],es=(e,t,r)=>{const n=Pi(),{command:i,escapedCommand:s}=((e,t)=>{const r=[e,...t];return{command:r.join(" "),escapedCommand:r.map((e=>Ci(Di(e)))).join(" ")}})(e,t),o=(e=>{const t=li(e)?ui++:void 0;return ci(e),{verbose:e,verboseId:t}})(Wi(r,"verbose"));return((e,{verbose:t,verboseId:r},{piped:n=!1})=>{if(!li(t))return;xi(e,r,n?"pipedCommand":"command",ni)})(s,o,r),{command:i,escapedCommand:s,startTime:n,verboseInfo:o}};var ts=n(526);function rs(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 ns=(e,t)=>{let r;for(;r!==t;)e.push(Zr.join(t,"node_modules/.bin")),r=t,t=Zr.resolve(t,"..")},is=(e,t,r)=>{const n=t instanceof URL?(0,Mn.fileURLToPath)(t):t;e.push(Zr.resolve(r,n,".."))},ss=({env:e=Yt.env,...t}={})=>{const r=rs({env:e={...e}});return t.path=e[r],e[r]=(({cwd:e=Yt.cwd(),path:t=Yt.env[rs()],preferLocal:r=!0,execPath:n=Yt.execPath,addExecPath:i=!0}={})=>{const s=e instanceof URL?(0,Mn.fileURLToPath)(e):e,o=Zr.resolve(s),a=[];return r&&ns(a,o),i&&is(a,n,o),[...a,t].join(Zr.delimiter)})(t),e},os=e(import.meta.url)("node:timers/promises");class as extends Error{}const us=(e,t)=>{Object.defineProperty(e.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,ls,{value:!0,writable:!1,enumerable:!1,configurable:!1})},ls=Symbol("isExecaError"),cs=e=>"[object Error]"===Object.prototype.toString.call(e);class hs extends Error{}us(hs,hs.name);class ds extends Error{}us(ds,ds.name);const fs=(e,t)=>({name:`SIGRT${t+1}`,number:ps+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ps=34,ms=64,gs=[{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"}],bs=()=>{const e=(()=>{const e=ms-ps+1;return Array.from({length:e},fs)})();return[...gs,...e].map(ys)},ys=({name:e,number:t,description:r,action:n,forced:i=!1,standard:s})=>{const{signals:{[e]:o}}=Kt.constants,a=void 0!==o;return{name:e,number:a?o:t,description:r,supported:a,action:n,forced:i,standard:s}},Ds=({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}],ws=(()=>{const e=bs();return Object.fromEntries(e.map(Ds))})(),vs=(e,t)=>{const r=Es(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}}},Es=(e,t)=>{const r=t.find((({name:t})=>Kt.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))},Fs=((()=>{const e=bs(),t=ms+1,r=Array.from({length:t},((t,r)=>vs(r,e)));Object.assign({},...r)})(),e=>0===e?e:Cs(e,"`subprocess.kill()`'s argument")),Cs=(e,t)=>{if(Number.isInteger(e))return Ss(e,t);if("string"==typeof e)return Os(e,t);throw new TypeError(`Invalid ${t} ${String(e)}: it must be a string or an integer.\n${_s()}`)},Ss=(e,t)=>{if(xs.has(e))return xs.get(e);throw new TypeError(`Invalid ${t} ${e}: this signal integer does not exist.\n${_s()}`)},xs=new Map(Object.entries(Kt.constants.signals).reverse().map((([e,t])=>[t,e]))),Os=(e,t)=>{if(e in Kt.constants.signals)return e;if(e.toUpperCase()in Kt.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${_s()}`)},_s=()=>`Available signal names: ${As()}.\nAvailable signal numbers: ${Ts()}.`,As=()=>Object.keys(Kt.constants.signals).sort().map((e=>`'${e}'`)).join(", "),Ts=()=>[...new Set(Object.values(Kt.constants.signals).sort(((e,t)=>e-t)))].join(", "),Ms=e=>ws[e].description,ks=5e3,Is=({kill:e,options:{forceKillAfterDelay:t,killSignal:r},onInternalError:n,context:i,controller:s},o,a)=>{const{signal:u,error:l}=js(o,a,r);Bs(l,n);const c=e(u);return Ps({kill:e,signal:u,forceKillAfterDelay:t,killSignal:r,killResult:c,context:i,controller:s}),c},js=(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:Fs(n),error:i}},Bs=(e,t)=>{void 0!==e&&t.reject(e)},Ps=async({kill:e,signal:t,forceKillAfterDelay:r,killSignal:n,killResult:i,context:s,controller:o})=>{t===n&&i&&Rs({kill:e,forceKillAfterDelay:r,context:s,controllerSignal:o.signal})},Rs=async({kill:e,forceKillAfterDelay:t,context:r,controllerSignal:n})=>{if(!1!==t)try{await(0,os.setTimeout)(t,void 0,{signal:n}),e("SIGKILL")&&(r.isForcefullyTerminated??=!0)}catch{}},$s=e(import.meta.url)("node:events"),Ns=async(e,t)=>{e.aborted||await(0,$s.once)(e,"abort",{signal:t})},Ls=({subprocess:e,cancelSignal:t,gracefulCancel:r,context:n,controller:i})=>void 0===t||r?[]:[Us(e,t,n,i)],Us=async(e,t,r,{signal:n})=>{throw await Ns(t,n),r.terminationReason??="cancel",e.kill(),t.reason},Ws=({methodName:e,isSubprocess:t,ipc:r,isConnected:n})=>{Gs(e,t,r),Hs(e,t,n)},Gs=(e,t,r)=>{if(!r)throw new Error(`${Ks(e,t)} can only be used if the \`ipc\` option is \`true\`.`)},Hs=(e,t,r)=>{if(!r)throw new Error(`${Ks(e,t)} cannot be used: the ${Zs(t)} has already exited or disconnected.`)},zs=(e,t)=>new Error(`${Ks("sendMessage",t)} failed when sending an acknowledgment response to the ${Zs(t)}.`,{cause:e}),Vs=({code:e,message:t})=>qs.has(e)||Ys.some((e=>t.includes(e))),qs=new Set(["ERR_MISSING_ARGS","ERR_INVALID_ARG_TYPE"]),Ys=["could not be cloned","circular structure","call stack size exceeded"],Ks=(e,t,r="")=>"cancelSignal"===e?"`cancelSignal`'s `controller.abort()`":`${Js(t)}${e}(${r})`,Js=e=>e?"":"subprocess.",Zs=e=>e?"parent process":"subprocess",Qs=e=>{e.connected&&e.disconnect()},Xs=()=>{const e={},t=new Promise(((t,r)=>{Object.assign(e,{resolve:t,reject:r})}));return Object.assign(t,e)},eo=(e,t="stdin")=>{const r=!0,{options:n,fileDescriptors:i}=ro.get(e),s=no(i,t,r),o=e.stdio[s];if(null===o)throw new TypeError(oo(s,t,n,r));return o},to=(e,t="stdout")=>{const r=!1,{options:n,fileDescriptors:i}=ro.get(e),s=no(i,t,r),o="all"===s?e.all:e.stdio[s];if(null==o)throw new TypeError(oo(s,t,n,r));return o},ro=new WeakMap,no=(e,t,r)=>{const n=io(t,r);return so(n,t,r,e),n},io=(e,t)=>{const r=Ki(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(`"${lo(t)}" must not be "${e}".\nIt must be ${n} or "fd3", "fd4" (and so on).\nIt is optional and defaults to "${i}".`)},so=(e,t,r,n)=>{const i=n[uo(e)];if(void 0===i)throw new TypeError(`"${lo(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(`"${lo(r)}" must not be ${t}. It must be a readable stream, not writable.`);if("input"!==i.direction&&r)throw new TypeError(`"${lo(r)}" must not be ${t}. It must be a writable stream, not readable.`)},oo=(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}=ao(e,r);return`The "${i}: ${co(s)}" option is incompatible with using "${lo(n)}: ${co(t)}".\nPlease set this option with "pipe" instead.`},ao=(e,{stdin:t,stdout:r,stderr:n,stdio:i})=>{const s=uo(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]}},uo=e=>"all"===e?1:e,lo=e=>e?"to":"from",co=e=>"string"==typeof e?`'${e}'`:"number"==typeof e?`${e}`:"Stream",ho=(e,t,r)=>{const n=e.getMaxListeners();0!==n&&n!==Number.POSITIVE_INFINITY&&(e.setMaxListeners(n+t),(0,$s.addAbortListener)(r,(()=>{e.setMaxListeners(e.getMaxListeners()-t)})))},fo=(e,t)=>{t&&po(e)},po=e=>{e.refCounted()},mo=(e,t)=>{t&&go(e)},go=e=>{e.unrefCounted()},bo=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n},i)=>{if(Oo(i)||zo(i))return;Do.has(e)||Do.set(e,[]);const s=Do.get(e);if(s.push(i),!(s.length>1))for(;s.length>0;){await Io(e,n,i),await os.scheduler.yield();const o=await xo({wrappedMessage:s[0],anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n});s.shift(),n.emit("message",o),n.emit("message:done")}},yo=async({anyProcess:e,channel:t,isSubprocess:r,ipcEmitter:n,boundOnMessage:i})=>{qo();const s=Do.get(e);for(;s?.length>0;)await(0,$s.once)(n,"message:done");e.removeListener("message",i),((e,t)=>{t&&(po(e),po(e))})(t,r),n.connected=!1,n.emit("disconnect")},Do=new WeakMap,wo=(e,t,r)=>{if(vo.has(e))return vo.get(e);const n=new $s.EventEmitter;return n.connected=!0,vo.set(e,n),Eo({ipcEmitter:n,anyProcess:e,channel:t,isSubprocess:r}),n},vo=new WeakMap,Eo=({ipcEmitter:e,anyProcess:t,channel:r,isSubprocess:n})=>{const i=bo.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e});t.on("message",i),t.once("disconnect",yo.bind(void 0,{anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:e,boundOnMessage:i})),((e,t)=>{t&&(go(e),go(e))})(r,n)},Fo=e=>{const t=vo.get(e);return void 0===t?null!==e.channel:t.connected};let Co=0n;const So=(e,t)=>{if(t?.type===Mo&&!t.hasListeners)for(const{id:t}of e)void 0!==t&&Ao[t].resolve({isDeadlock:!0,hasListeners:!1})},xo=async({wrappedMessage:e,anyProcess:t,channel:r,isSubprocess:n,ipcEmitter:i})=>{if(e?.type!==Mo||!t.connected)return e;const{id:s,message:o}=e,a={id:s,type:ko,message:Bo(t,i)};try{await Ro({anyProcess:t,channel:r,isSubprocess:n,ipc:!0},a)}catch(e){i.emit("strict:error",e)}return o},Oo=e=>{if(e?.type!==ko)return!1;const{id:t,message:r}=e;return Ao[t]?.resolve({isDeadlock:!1,hasListeners:r}),!0},_o=async(e,t,r)=>{if(e?.type!==Mo)return;const n=Xs();Ao[e.id]=n;const i=new AbortController;try{const{isDeadlock:e,hasListeners:s}=await Promise.race([n,To(t,r,i)]);e&&(e=>{throw new Error(`${Ks("sendMessage",e)} failed: the ${Zs(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${Ks("getOneMessage",e)},\n\t${Ks("sendMessage",e,"message, {strict: true}")},\n]);`)})(r),s||(e=>{throw new Error(`${Ks("sendMessage",e)} failed: the ${Zs(e)} is not listening to incoming messages.`)})(r)}finally{i.abort(),delete Ao[e.id]}},Ao={},To=async(e,t,{signal:r})=>{ho(e,1,r),await(0,$s.once)(e,"disconnect",{signal:r}),(e=>{throw new Error(`${Ks("sendMessage",e)} failed: the ${Zs(e)} exited without listening to incoming messages.`)})(t)},Mo="execa:ipc:request",ko="execa:ipc:response",Io=async(e,t,r)=>{for(;!Bo(e,t)&&jo.get(e)?.size>0;){const t=[...jo.get(e)];So(t,r),await Promise.all(t.map((({onMessageSent:e})=>e)))}},jo=new WeakMap,Bo=(e,t)=>t.listenerCount("message")>Po(e),Po=e=>ro.has(e)&&!ro.get(e).options.buffer.at(-1)?1:0,Ro=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},i,{strict:s=!1}={})=>{const o="sendMessage";return Ws({methodName:o,isSubprocess:r,ipc:n,isConnected:e.connected}),$o({anyProcess:e,channel:t,methodName:o,isSubprocess:r,message:i,strict:s})},$o=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=wo(e,t,r),o=Bo(e,s);return{id:Co++,type:Mo,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:Xs(),id:r?t.id:void 0};return n.add(i),{outgoingMessages:n,outgoingMessage:i}})(e,o,s);try{await No({anyProcess:e,methodName:r,isSubprocess:n,wrappedMessage:o,message:i})}catch(t){throw Qs(e),t}finally{(({outgoingMessages:e,outgoingMessage:t})=>{e.delete(t),t.onMessageSent.resolve()})(a)}},No=async({anyProcess:e,methodName:t,isSubprocess:r,wrappedMessage:n,message:i})=>{const s=Lo(e);try{await Promise.all([_o(n,e,r),s(n)])}catch(e){throw(({error:e,methodName:t,isSubprocess:r})=>{if("EPIPE"===e.code)throw new Error(`${Ks(t,r)} cannot be used: the ${Zs(r)} is disconnecting.`,{cause:e})})({error:e,methodName:t,isSubprocess:r}),(({error:e,methodName:t,isSubprocess:r,message:n})=>{if(Vs(e))throw new Error(`${Ks(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}},Lo=e=>{if(Uo.has(e))return Uo.get(e);const t=(0,fn.promisify)(e.send.bind(e));return Uo.set(e,t),t},Uo=new WeakMap,Wo=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>(await Go({anyProcess:e,channel:t,isSubprocess:r,ipc:n}),Yo.signal),Go=async({anyProcess:e,channel:t,isSubprocess:r,ipc:n})=>{Ho||(Ho=!0,n?null!==t?(wo(e,t,r),await os.scheduler.yield()):qo():(()=>{throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")})())};let Ho=!1;const zo=e=>e?.type===Vo&&(Yo.abort(e.message),!0),Vo="execa:ipc:cancel",qo=()=>{Yo.abort(new Error(`\`cancelSignal\` aborted: the ${Zs(!0)} disconnected.`))},Yo=new AbortController,Ko=({subprocess:e,cancelSignal:t,gracefulCancel:r,forceKillAfterDelay:n,context:i,controller:s})=>r?[Jo({subprocess:e,cancelSignal:t,forceKillAfterDelay:n,context:i,controller:s})]:[],Jo=async({subprocess:e,cancelSignal:t,forceKillAfterDelay:r,context:n,controller:{signal:i}})=>{await Ns(t,i);const s=Zo(t);throw await((e,t)=>{const r="cancelSignal";return Hs(r,!1,e.connected),No({anyProcess:e,methodName:r,isSubprocess:!1,wrappedMessage:{type:Vo,message:t},message:t})})(e,s),Rs({kill:e.kill,forceKillAfterDelay:r,context:n,controllerSignal:i}),n.terminationReason??="gracefulCancel",t.reason},Zo=({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},Qo=(e,t,r,n)=>0===t||void 0===t?[]:[Xo(e,t,r,n)],Xo=async(e,t,r,{signal:n})=>{throw await(0,os.setTimeout)(t,void 0,{signal:n}),r.terminationReason??="timeout",e.kill(),new as},ea=e(import.meta.url)("node:v8"),ta={advanced:e=>{try{(0,ea.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})}}},ra=async(e,t)=>{void 0!==t&&await e.sendMessage(t)},na=new Set(["utf8","utf16le"]),ia=new Set(["buffer","hex","base64","base64url","latin1","ascii"]),sa=new Set([...na,...ia]),oa=e=>{if(null===e)return"buffer";if("string"!=typeof e)return;const t=e.toLowerCase();return t in aa?aa[t]:sa.has(t)?t:void 0},aa={"utf-8":"utf8","utf-16le":"utf16le","ucs-2":"utf16le",ucs2:"utf16le",binary:"latin1"},ua=e=>"string"==typeof e?`"${e}"`:String(e),la=()=>{try{return Yt.cwd()}catch(e){throw e.message=`The current directory does not exist.\n${e.message}`,e}},ca=(e,t,r)=>{r.cwd=((e=la())=>{const t=kn(e,'The "cwd" option');return(0,Zr.resolve)(t)})(r.cwd);const[n,i,s]=((e,t,{node:r=!1,nodePath:n=Yt.execPath,nodeOptions:i=Yt.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=kn(n,'The "nodePath" option'),l=(0,Zr.resolve)(s,u),c={...a,nodePath:l,node:r,cwd:s};if(!r)return[e,t,c];if("node"===(0,Zr.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}=ts._parse(n,i,s),l=(e=>{const t={...e};for(const r of Xi)t[r]=Wi(e,r);return t})(u),c=ha(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(sa.has(e))return;const t=oa(e);if(void 0!==t)throw new TypeError(`Invalid option \`encoding: ${ua(e)}\`.\nPlease rename it to ${ua(t)}.`);const r=[...sa].map((e=>ua(e))).join(", ");throw new TypeError(`Invalid option \`encoding: ${ua(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`.");ta[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=In(c.shell),c.env=da(c),c.killSignal=(e=>{const t="option `killSignal`";if(0===e)throw new TypeError(`Invalid ${t}: 0 cannot be used.`);return Cs(e,t)})(c.killSignal),c.forceKillAfterDelay=(e=>{if(!1===e)return e;if(!0===e)return ks;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&&!ia.has(c.encoding)&&c.buffer[t])),"win32"===Yt.platform&&"cmd"===(0,Zr.basename)(o,".exe")&&a.unshift("/q"),{file:o,commandArguments:a,options:c}},ha=({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:f=void 0!==d||h,serialization:p="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:f,serialization:p}),da=({env:e,extendEnv:t,preferLocal:r,node:n,localDirectory:i,nodePath:s})=>{const o=t?{...Yt.env,...e}:e;return r||n?ss({env:o,cwd:i,execPath:s,preferLocal:r,addExecPath:n}):o};function fa(e){if("string"==typeof e)return pa(e);if(!ArrayBuffer.isView(e)||1!==e.BYTES_PER_ELEMENT)throw new Error("Input must be a string or a Uint8Array");return ma(e)}const pa=e=>e.at(-1)===ga?e.slice(0,e.at(-2)===ya?-2:-1):e,ma=e=>e.at(-1)===ba?e.subarray(0,e.at(-2)===Da?-2:-1):e,ga="\n",ba=ga.codePointAt(0),ya="\r",Da=ya.codePointAt(0);function wa(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 va(e,{checkOpen:t=!0}={}){return wa(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 Ea(e,{checkOpen:t=!0}={}){return wa(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 Fa(e,t){return va(e,t)&&Ea(e,t)}const Ca=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);class Sa{#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 xa=Symbol();function Oa(){return this[xa].next()}function _a(e){return this[xa].return(e)}Object.defineProperty(Oa,"name",{value:"next"}),Object.defineProperty(_a,"name",{value:"return"});const Aa=Object.create(Ca,{next:{enumerable:!0,configurable:!0,writable:!0,value:Oa},return:{enumerable:!0,configurable:!0,writable:!0,value:_a}});function Ta({preventCancel:e=!1}={}){const t=this.getReader(),r=new Sa(t,e),n=Object.create(Aa);return n[xa]=r,n}const Ma=e=>{if(Ea(e,{checkOpen:!1})&&void 0!==Ba.on)return Ia(e);if("function"==typeof e?.[Symbol.asyncIterator])return e;if("[object ReadableStream]"===ka.call(e))return Ta.call(e);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:ka}=Object.prototype,Ia=async function*(e){const t=new AbortController,r={};ja(e,t,r);try{for await(const[r]of Ba.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()}},ja=async(e,t,r)=>{try{await Ba.finished(e,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(e){r.error=e}finally{t.abort()}},Ba={},Pa=async(e,{init:t,convertChunk:r,getSize:n,truncateChunk:i,addChunk:s,getFinalChunk:o,finalize:a},{maxBuffer:u=Number.POSITIVE_INFINITY}={})=>{const l=Ma(e),c=t();c.length=0;try{for await(const e of l){const t=r[La(e)](e,c);$a({convertedChunk:t,state:c,getSize:n,truncateChunk:i,addChunk:s,maxBuffer:u})}return Ra({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}},Ra=({state:e,getSize:t,truncateChunk:r,addChunk:n,getFinalChunk:i,maxBuffer:s})=>{const o=i(e);void 0!==o&&$a({convertedChunk:o,state:e,getSize:t,truncateChunk:r,addChunk:n,maxBuffer:s})},$a=({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 Na(e,t,i,a);const u=n(e,s-t.length);throw void 0!==u&&Na(u,t,i,s),new Wa},Na=(e,t,r,n)=>{t.contents=r(e,t,n),t.length=n},La=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=Ua.call(e);return"[object ArrayBuffer]"===r?"arrayBuffer":"[object DataView]"===r?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&"[object ArrayBuffer]"===Ua.call(e.buffer)?"typedArray":"others"},{toString:Ua}=Object.prototype;class Wa extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const Ga=(e,t,r)=>e?"objects":t?"lines":"buffer"===r?"bytes":"characters",Ha=(e,t,r)=>{if(t.length!==r)return;const n=new Wa;throw n.maxBufferInfo={fdNumber:"ipc"},n},za=(e,t)=>{if(void 0===e?.maxBufferInfo)return{streamName:"output",threshold:t[1],unit:"bytes"};const{maxBufferInfo:{fdNumber:r,unit:n}}=e;return delete e.maxBufferInfo,"ipc"===r?{streamName:"IPC output",threshold:t.at(-1),unit:"messages"}:{streamName:Ui(r),threshold:t[r],unit:n}},Va=([,e])=>e,qa=({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:f})=>{const p=Ya(h,d);return t?`Command timed out after ${r} milliseconds${p}`:c?void 0===o?`Command was gracefully canceled with exit code ${u}`:h?`Command was gracefully canceled${p}`:`Command was gracefully canceled with ${o} (${a})`:l?`Command was canceled${p}`:n?`${((e,t)=>{const{streamName:r,threshold:n,unit:i}=za(e,t);return`Command's ${r} was larger than ${n} ${i}`})(e,i)}${p}`:void 0!==s?`Command failed with ${s}${p}`:h?`Command was killed with ${f} (${Ms(f)})${p}`:void 0!==o?`Command was killed with ${o} (${a})`:void 0!==u?`Command failed with exit code ${u}`:"Command failed"},Ya=(e,t)=>e?` and was forcefully terminated after ${t} milliseconds`:"",Ka=(e,t)=>{if(e instanceof as)return;const r=cs(n=e)&&ls in n?e.originalMessage:String(e?.message??e);var n;const i=yi(((e,t)=>{if(t===la())return e;let r;try{r=(0,Jr.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},Ja=e=>"string"==typeof e?e:(0,fn.inspect)(e),Za=e=>Array.isArray(e)?e.map((e=>fa(Qa(e)))).filter(Boolean).join("\n"):Qa(e),Qa=e=>"string"==typeof e?e:Rn(e)?Wn(e):"",Xa=({command:e,escapedCommand:t,stdio:r,all:n,ipcOutput:i,options:{cwd:s},startTime:o})=>nu({command:e,escapedCommand:t,cwd:s,durationMs:Ri(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:[]}),eu=({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:i,startTime:s,isSync:o})=>tu({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}),tu=({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:f,options:{timeoutDuration:p,timeout:m=p,forceKillAfterDelay:g,killSignal:b,cwd:y,maxBuffer:D},isSync:w})=>{const{exitCode:v,signal:E,signalDescription:F}=iu(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:f,killSignal:p,maxBuffer:m,timeout:g,cwd:b})=>{const y=n?.code,D=qa({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:f,killSignal:p}),w=Ka(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=>Ja(e))).join("\n")].map((e=>yi(fa(Za(e))))).filter(Boolean).join("\n\n");return{originalMessage:w,shortMessage:v,message:E}})({stdio:h,all:d,ipcOutput:f,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?ds:hs)(t,e instanceof as?{}:{cause:e}))(e,x,w);return Object.assign(O,ru({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:f,cwd:y,originalMessage:C,shortMessage:S})),O},ru=({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:f,ipcOutput:p,cwd:m,originalMessage:g,shortMessage:b})=>nu({shortMessage:b,originalMessage:g,command:t,escapedCommand:r,cwd:m,durationMs:Ri(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:f,stdio:d,ipcOutput:p,pipedFrom:[]}),nu=e=>Object.fromEntries(Object.entries(e).filter((([,e])=>void 0!==e))),iu=(e,t)=>{const r=null===t?void 0:t;return{exitCode:null===e?void 0:e,signal:r,signalDescription:void 0===r?void 0:Ms(t)}},su=e=>Number.isFinite(e)?e:0;function ou(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(su(1e3*e)%1e3),nanoseconds:Math.trunc(su(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 au(e,t){const r="bigint"==typeof e;if(!r&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");(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 n=[];const i=(e,r,i,s)=>{if(0!==n.length&&t.colonNotation||!(e=>0===e||0n===e)(e)||t.colonNotation&&"m"===i){if(s=s??String(e),t.colonNotation){const e=s.includes(".")?s.split(".")[0].length:s.length,t=n.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):i;n.push(s)}},s=ou(e),o=BigInt(s.days);if(i(o/365n,"year","y"),i(o%365n,"day","d"),i(Number(s.hours),"hour","h"),i(Number(s.minutes),"minute","m"),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3){const e=Number(s.seconds),r=Number(s.milliseconds),n=Number(s.microseconds),o=Number(s.nanoseconds);if(i(e,"second","s"),t.formatSubMilliseconds)i(r,"millisecond","ms"),i(n,"microsecond","\xb5s"),i(o,"nanosecond","ns");else{const e=r+n/1e3+o/1e6,s="number"==typeof t.millisecondsDecimalDigits?t.millisecondsDecimalDigits:0,a=e>=1?Math.round(e):Math.ceil(e),u=s?e.toFixed(s):a;i(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),s=t.keepDecimalsOnWholeSeconds?n:n.replace(/\.0+$/,"");i(Number.parseFloat(s),"second","s",s)}if(0===n.length)return"0"+(t.verbose?" milliseconds":"ms");const a=t.colonNotation?":":" ";return"number"==typeof t.unitCount&&(n=n.slice(0,Math.max(t.unitCount,1))),n.join(a)}const uu=(e,t,r)=>{lu({message:yi(String(e)),failed:!0,reject:!0,durationMs:Ri(t),verboseInfo:r})},lu=({message:e,failed:t,reject:r,durationMs:n,verboseInfo:{verbose:i,verboseId:s}})=>{if(!li(i))return;const o=hu(t,r);(({message:e,failed:t,reject:r,verboseId:n,icon:i})=>{if(!t)return;xi(e,n,i,r?si:oi)})({message:e,failed:t,reject:r,verboseId:s,icon:o}),cu(n,s,o)},cu=(e,t,r)=>{const n=`(done in ${au(e)})`;xi(n,t,r,ii)},hu=(e,t)=>e?t?"error":"warning":"success",du=(e,t,{reject:r})=>{if((({shortMessage:e,failed:t,durationMs:r},n,i)=>{lu({message:e,failed:t,reject:n,durationMs:r,verboseInfo:i})})(e,r,t),e.failed&&r)throw e;return e},fu=(e,t)=>Eu(e)?"asyncGenerator":Fu(e)?"generator":Su(e)?"fileUrl":xu(e)?"filePath":Mu(e)?"webStream":wa(e,{checkOpen:!1})?"native":Rn(e)?"uint8Array":Iu(e)?"asyncIterable":ju(e)?"iterable":ku(e)?gu({transform:e},t):Cu(e)?pu(e,t):"native",pu=(e,t)=>Fa(e.transform,{checkOpen:!1})?mu(e,t):ku(e.transform)?gu(e,t):Du(e,t),mu=(e,t)=>(bu(e,t,"Duplex stream"),"duplex"),gu=(e,t)=>(bu(e,t,"web TransformStream"),"webTransform"),bu=({final:e,binary:t,objectMode:r},n,i)=>{yu(e,`${n}.final`,i),yu(t,`${n}.binary`,i),wu(r,`${n}.objectMode`)},yu=(e,t,r)=>{if(void 0!==e)throw new TypeError(`The \`${t}\` option can only be defined when using a generator, not a ${r}.`)},Du=({transform:e,final:t,binary:r,objectMode:n},i)=>{if(void 0!==e&&!vu(e))throw new TypeError(`The \`${i}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`);if(Fa(t,{checkOpen:!1}))throw new TypeError(`The \`${i}.final\` option must not be a Duplex stream.`);if(ku(t))throw new TypeError(`The \`${i}.final\` option must not be a web TransformStream.`);if(void 0!==t&&!vu(t))throw new TypeError(`The \`${i}.final\` option must be a generator.`);return wu(r,`${i}.binary`),wu(n,`${i}.objectMode`),Eu(e)||Eu(t)?"asyncGenerator":"generator"},wu=(e,t)=>{if(void 0!==e&&"boolean"!=typeof e)throw new TypeError(`The \`${t}\` option must use a boolean.`)},vu=e=>Eu(e)||Fu(e),Eu=e=>"[object AsyncGeneratorFunction]"===Object.prototype.toString.call(e),Fu=e=>"[object GeneratorFunction]"===Object.prototype.toString.call(e),Cu=e=>Tn(e)&&(void 0!==e.transform||void 0!==e.final),Su=e=>"[object URL]"===Object.prototype.toString.call(e),xu=e=>Tn(e)&&1===Object.keys(e).length&&Ou(e.file),Ou=e=>"string"==typeof e,_u=new Set(["ipc","ignore","inherit","overlapped","pipe"]),Au=e=>"[object ReadableStream]"===Object.prototype.toString.call(e),Tu=e=>"[object WritableStream]"===Object.prototype.toString.call(e),Mu=e=>Au(e)||Tu(e),ku=e=>Au(e?.readable)&&Tu(e?.writable),Iu=e=>Bu(e)&&"function"==typeof e[Symbol.asyncIterator],ju=e=>Bu(e)&&"function"==typeof e[Symbol.iterator],Bu=e=>"object"==typeof e&&null!==e,Pu=new Set(["generator","asyncGenerator","duplex","webTransform"]),Ru=new Set(["fileUrl","filePath","fileNumber"]),$u=new Set(["fileUrl","filePath"]),Nu=new Set([...$u,"webStream","nodeStream"]),Lu=new Set(["webTransform","duplex"]),Uu={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"},Wu=(e,t,r,n)=>"output"===n?Gu(e,t,r):Hu(e,t,r),Gu=(e,t,r)=>{const n=0!==t&&r[t-1].value.readableObjectMode;return{writableObjectMode:n,readableObjectMode:e??n}},Hu=(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})=>Pu.has(e))),s=Array.from({length:i.length});for(const[e,o]of Object.entries(i))s[e]=Vu({stdioItem:o,index:Number(e),newTransforms:s,optionName:t,direction:r,encoding:n});return Ju(s,r)},Vu=({stdioItem:e,stdioItem:{type:t},index:r,newTransforms:n,optionName:i,direction:s,encoding:o})=>"duplex"===t?qu({stdioItem:e,optionName:i}):"webTransform"===t?Yu({stdioItem:e,index:r,newTransforms:n,direction:s}):Ku({stdioItem:e,index:r,newTransforms:n,direction:s,encoding:o}),qu=({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}}},Yu=({stdioItem:e,stdioItem:{value:t},index:r,newTransforms:n,direction:i})=>{const{transform:s,objectMode:o}=Tn(t)?t:{transform:t},{writableObjectMode:a,readableObjectMode:u}=Wu(o,r,n,i);return{...e,value:{transform:s,writableObjectMode:a,readableObjectMode:u}}},Ku=({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}=Tn(t)?t:{transform:t},h=u||ia.has(s),{writableObjectMode:d,readableObjectMode:f}=Wu(c,r,n,i);return{...e,value:{transform:o,final:a,binary:h,preserveNewlines:l,writableObjectMode:d,readableObjectMode:f}}},Ju=(e,t)=>"input"===t?e.reverse():e,Zu=({type:e,value:t},r)=>Qu[r]??tl[e](t),Qu=["input","output","output"],Xu=()=>{},el=()=>"input",tl={generator:Xu,asyncGenerator:Xu,fileUrl:Xu,filePath:Xu,iterable:el,asyncIterable:el,uint8Array:el,webStream:e=>Tu(e)?"output":"input",nodeStream:e=>Ea(e,{checkOpen:!1})?va(e,{checkOpen:!1})?void 0:"input":"output",webTransform:Xu,duplex:Xu,native(e){const t=rl(e);return void 0!==t?t:wa(e,{checkOpen:!1})?tl.nodeStream(e):void 0}},rl=e=>[0,Yt.stdin].includes(e)?"input":[1,2,Yt.stdout,Yt.stderr].includes(e)?"output":void 0,nl="output",il=(e,t)=>{if(void 0===e)return Li.map((e=>t[e]));if(sl(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Li.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,Li.length);return Array.from({length:r},((t,r)=>e[r]))},sl=e=>Li.some((t=>void 0!==e[t])),ol=(e,t)=>Array.isArray(e)?e.map((e=>ol(e,t))):null==e?t>=Li.length?"ignore":"pipe":e,al=(e,t,r)=>e.map(((e,n)=>!t[n]&&0!==n&&"full"!==r[n]&&ul(e)?"ignore":e)),ul=e=>"pipe"===e||Array.isArray(e)&&e.every((e=>"pipe"===e)),ll=({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n,direction:i})=>{const s=cl({value:t,optionName:r,fdNumber:n,direction:i});if(void 0!==s)return s;if(wa(t,{checkOpen:!1}))throw new TypeError(`The \`${r}: Stream\` option cannot both be an array and include a stream with synchronous methods.`);return e},cl=({value:e,optionName:t,fdNumber:r,direction:n})=>{const i=hl(e,r);if(void 0!==i){if("output"===n)return{type:"fileNumber",value:i,optionName:t};if(Jt.isatty(i))throw new TypeError(`The \`${t}: ${co(e)}\` option is invalid: it cannot be a TTY with synchronous methods.`);return{type:"uint8Array",value:$n((0,Jr.readFileSync)(i)),optionName:t}}},hl=(e,t)=>{if("inherit"===e)return t;if("number"==typeof e)return e;const r=Ni.indexOf(e);return-1!==r?r:void 0},dl=({stdioItem:e,stdioItem:{value:t,optionName:r},fdNumber:n})=>"inherit"===t?{type:"nodeStream",value:fl(n,t,r),optionName:r}:"number"==typeof t?{type:"nodeStream",value:fl(t,t,r),optionName:r}:wa(t,{checkOpen:!1})?{type:"nodeStream",value:t,optionName:r}:e,fl=(e,t,r)=>{const n=Ni[e];if(void 0===n)throw new TypeError(`The \`${r}: ${t}\` option is invalid: no such standard stream.`);return n},pl=({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(Ea(e,{checkOpen:!1}))return"nodeStream";if("string"==typeof e)return"string";if(Rn(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(Su(e))return{type:"fileUrl",value:e};if(Ou(e))return{type:"filePath",value:{file:e}};throw new Error("The `inputFile` option must be a file path string or a file URL.")},Dl=(e,t)=>e.flatMap((({direction:e,stdioItems:r})=>r.filter((e=>e.type===t)).map((t=>({...t,direction:e}))))),wl=({otherStdioItems:e,type:t,value:r,optionName:n,direction:i})=>{$u.has(t)&&vl({otherStdioItems:e,type:t,value:r,optionName:n,direction:i})},vl=({otherStdioItems:e,type:t,value:r,optionName:n,direction:i})=>{const s=e.filter((e=>El(e,r)));if(0===s.length)return;const o=s.find((e=>e.direction!==i));return Cl(o,n,t),"output"===i?s[0].stream:void 0},El=({type:e,value:t},r)=>"filePath"===e?t.file===r.file:"fileUrl"===e?t.href===r.href:t===r,Fl=({otherStdioItems:e,type:t,value:r,optionName:n})=>{const i=e.find((({value:{transform:e}})=>e===r.transform));Cl(i,n,t)},Cl=(e,t,r)=>{if(void 0!==e)throw new TypeError(`The \`${e.optionName}\` and \`${t}\` options must not target ${Uu[r]} that is the same.`)},Sl=(e,t,r,n)=>{const i=(({stdio:e,ipc:t,buffer:r,verbose:n,...i},s)=>{const o=il(e,i).map(((e,t)=>ol(e,t)));return s?al(o,r,n):((e,t)=>t&&!e.includes("ipc")?[...e,"ipc"]:e)(o,t)})(t,n),s=i.map(((e,r)=>xl({stdioOption:e,fdNumber:r,options:t,isSync:n}))),o=jl({initialFileDescriptors:s,addProperties:e,options:t,isSync:n});return t.stdio=o.map((({stdioItems:e})=>$l(e))),o},xl=({stdioOption:e,fdNumber:t,options:r,isSync:n})=>{const i=Ui(t),{stdioItems:s,isStdioArray:o}=Ol({stdioOption:e,fdNumber:t,options:r,optionName:i}),a=((e,t,r)=>{const n=e.map((e=>Zu(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)??nl})(s,t,i),u=s.map((e=>(({stdioItem:e,stdioItem:{type:t},isStdioArray:r,fdNumber:n,direction:i,isSync:s})=>r&&"native"===t?s?ll({stdioItem:e,fdNumber:n,direction:i}):dl({stdioItem:e,fdNumber:n}):e)({stdioItem:e,isStdioArray:o,fdNumber:t,direction:a,isSync:n}))),l=((e,t,r,n)=>[...e.filter((({type:e})=>!Pu.has(e))),...zu(e,t,r,n)])(u,i,a,r),c=((e,t)=>{const r=e.findLast((({type:e})=>Pu.has(e)));return void 0!==r&&("input"===t?r.value.writableObjectMode:r.value.readableObjectMode)})(l,a);return Il(l,c),{direction:a,objectMode:c,stdioItems:l}},Ol=({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=>_l(e,n))),...pl(r,t)]),s=i.length>1;return Al(i,s,n),Ml(i),{stdioItems:i,isStdioArray:s}},_l=(e,t)=>({type:fu(e,t),value:e,optionName:t}),Al=(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(Tl.has(t))throw new Error(`The \`${r}\` option must not include \`${t}\`.`)},Tl=new Set(["ignore","ipc"]),Ml=e=>{for(const t of e)kl(t)},kl=({type:e,value:t,optionName:r})=>{if((e=>Su(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&&!_u.has(t))(e,t))throw new TypeError(`The \`${r}: { file: '...' }\` option must be used instead of \`${r}: '...'\`.`)},Il=(e,t)=>{if(!t)return;const r=e.find((({type:e})=>Ru.has(e)));if(void 0!==r)throw new TypeError(`The \`${r.optionName}\` option cannot use both files and transforms in objectMode.`)},jl=({initialFileDescriptors:e,addProperties:t,options:r,isSync:n})=>{const i=[];try{for(const s of e)i.push(Bl({fileDescriptor:s,fileDescriptors:i,addProperties:t,options:r,isSync:n}));return i}catch(e){throw Rl(i),e}},Bl=({fileDescriptor:{direction:e,objectMode:t,stdioItems:r},fileDescriptors:n,addProperties:i,options:s,isSync:o})=>{const a=r.map((t=>Pl({stdioItem:t,addProperties:i,direction:e,options:s,fileDescriptors:n,isSync:o})));return{direction:e,objectMode:t,stdioItems:a}},Pl=({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=Dl(i,e);if(0!==o.length){if(!s)return Nu.has(e)?vl({otherStdioItems:o,type:e,value:t,optionName:r,direction:n}):void(Lu.has(e)&&Fl({otherStdioItems:o,type:e,value:t,optionName:r}));wl({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)}},Rl=e=>{for(const{stdioItems:t}of e)for(const{stream:e}of t)void 0===e||$i(e)||e.destroy()},$l=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"},Nl=({type:e,optionName:t})=>{Ll(t,Uu[e])},Ll=(e,t)=>{throw new TypeError(`The \`${e}\` option cannot be ${t} with synchronous methods.`)},Ul={generator(){},asyncGenerator:Nl,webStream:Nl,nodeStream:Nl,webTransform:Nl,duplex:Nl,asyncIterable:Nl,native:({optionName:e,value:t})=>("ipc"!==t&&"overlapped"!==t||Ll(e,`"${t}"`),{})},Wl={input:{...Ul,fileUrl:({value:e})=>({contents:[$n((0,Jr.readFileSync)(e))]}),filePath:({value:{file:e}})=>({contents:[$n((0,Jr.readFileSync)(e))]}),fileNumber:Nl,iterable:({value:e})=>({contents:[...e]}),string:({value:e})=>({contents:[e]}),uint8Array:({value:e})=>({contents:[e]})},output:{...Ul,fileUrl:({value:e})=>({path:e}),filePath:({value:{file:e}})=>({path:e}),fileNumber:({value:e})=>({path:e}),iterable:Nl,string:Nl,uint8Array:Nl}},Gl=(e,{stripFinalNewline:t},r)=>Hl(t,r)&&void 0!==e&&!Array.isArray(e)?fa(e):e,Hl=(e,t)=>"all"===t?e[1]||e[2]:e[t],zl=e(import.meta.url)("node:stream"),Vl=(e,t,r,n)=>e||r?void 0:Kl(t,n),ql=(e,t,r)=>r?e.flatMap((e=>Yl(e,t))):Yl(e,t),Yl=(e,t)=>{const{transform:r,final:n}=Kl(t,{});return[...r(e),...n()]},Kl=(e,t)=>(t.previousChunks="",{transform:Jl.bind(void 0,t,e),final:Ql.bind(void 0,t)}),Jl=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=Zl(r,s,t,e);let a=r.slice(i+1,s+1-o);n.length>0&&(a=tc(n,a),n=""),yield a,i=s}i!==r.length-1&&(n=tc(n,r.slice(i+1))),e.previousChunks=n},Zl=(e,t,r,n)=>r?0:(n.isWindowsNewline=0!==t&&"\r"===e[t-1],n.isWindowsNewline?2:1),Ql=function*({previousChunks:e}){e.length>0&&(yield e)},Xl=({binary:e,preserveNewlines:t,readableObjectMode:r,state:n})=>e||t||r?void 0:{transform:ec.bind(void 0,n)},ec=function*({isWindowsNewline:e=!1},t){const{unixNewline:r,windowsNewline:n,LF:i,concatBytes:s}="string"==typeof t?rc:nc;if(t.at(-1)===i)return void(yield t);const o=e?n:r;yield s(t,o)},tc=(e,t)=>`${e}${t}`,rc={windowsNewline:"\r\n",unixNewline:"\n",LF:"\n",concatBytes:tc},nc={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}},ic=e(import.meta.url)("node:buffer"),sc=(e,t)=>e?void 0:oc.bind(void 0,t),oc=function*(e,t){if("string"!=typeof t&&!Rn(t)&&!ic.Buffer.isBuffer(t))throw new TypeError(`The \`${e}\` option's transform must use "objectMode: true" to receive as input: ${typeof t}.`);yield t},ac=(e,t)=>e?uc.bind(void 0,t):lc.bind(void 0,t),uc=function*(e,t){cc(e,t),yield t},lc=function*(e,t){if(cc(e,t),"string"!=typeof t&&!Rn(t))throw new TypeError(`The \`${e}\` option's function must yield a string or an Uint8Array, not ${typeof t}.`);yield t},cc=(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; }`)},hc=(e,t,r)=>{if(r)return;if(e)return{transform:dc.bind(void 0,new TextEncoder)};const n=new Bn.StringDecoder(t);return{transform:fc.bind(void 0,n),final:pc.bind(void 0,n)}},dc=function*(e,t){ic.Buffer.isBuffer(t)?yield $n(t):"string"==typeof t?yield e.encode(t):yield t},fc=function*(e,t){yield Rn(t)?e.write(t):t},pc=function*(e){const t=e.end();""!==t&&(yield t)},mc=(0,fn.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}})),gc=async function*(e,t,r){if(r===t.length)return void(yield e);const{transform:n=wc}=t[r];for await(const i of n(e))yield*gc(i,t,r+1)},bc=async function*(e){for(const[t,{final:r}]of Object.entries(e))yield*yc(r,Number(t),e)},yc=async function*(e,t,r){if(void 0!==e)for await(const n of e())yield*gc(n,r,t+1)},Dc=(0,fn.callbackify)((async({currentIterable:e},t)=>{if(void 0===e){if(t)throw t}else await(t?e.throw(t):e.return())})),wc=function*(e){yield e},vc=(e,t,r,n)=>{try{for(const n of e(...t))r.push(n);n()}catch(e){n(e)}},Ec=(e,t)=>[...t.flatMap((t=>[...Fc(t,e,0)])),...Cc(e)],Fc=function*(e,t,r){if(r===t.length)return void(yield e);const{transform:n=xc}=t[r];for(const i of n(e))yield*Fc(i,t,r+1)},Cc=function*(e){for(const[t,{final:r}]of Object.entries(e))yield*Sc(r,Number(t),e)},Sc=function*(e,t,r){if(void 0!==e)for(const n of e())yield*Fc(n,r,t+1)},xc=function*(e){yield e},Oc=({value:e,value:{transform:t,final:r,writableObjectMode:n,readableObjectMode:i},optionName:s},{encoding:o})=>{const a={},u=Ac(e,o,s),l=Eu(t),c=Eu(r),h=l?mc.bind(void 0,gc,a):vc.bind(void 0,Fc),d=l||c?mc.bind(void 0,bc,a):vc.bind(void 0,Cc),f=l||c?Dc.bind(void 0,a):void 0;return{stream:new zl.Transform({writableObjectMode:n,writableHighWaterMark:(0,zl.getDefaultHighWaterMark)(n),readableObjectMode:i,readableHighWaterMark:(0,zl.getDefaultHighWaterMark)(i),transform(e,t,r){h([e,u,0],this,r)},flush(e){d([u],this,e)},destroy:f})}},_c=(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=Ac(t,r,n);e=Ec(i,e)}return e},Ac=({transform:e,final:t,binary:r,writableObjectMode:n,readableObjectMode:i,preserveNewlines:s},o,a)=>{const u={};return[{transform:sc(n,a)},hc(r,o,n),Vl(r,s,n,u),{transform:e,final:t},{transform:ac(i,a)},Xl({binary:r,preserveNewlines:s,readableObjectMode:i,state:u})].filter(Boolean)},Tc=e=>new Set(Object.entries(e).filter((([,{direction:e}])=>"input"===e)).map((([e])=>Number(e)))),Mc=(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 ${Uu[e]} with synchronous methods.`)}const s=i.map((({contents:e})=>e)).map((e=>kc(e,n)));r.input=Hn(s)},kc=(e,t)=>{const r=_c(e,t,"utf8",!0);return Ic(r),Hn(r)},Ic=e=>{const t=e.find((e=>"string"!=typeof e&&!Rn(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}.`)},jc=({stdioItems:e,encoding:t,verboseInfo:{verbose:r},fdNumber:n})=>"all"!==n&&"full"===r[n]&&!ia.has(t)&&Bc(n)&&(e.some((({type:e,value:t})=>"native"===e&&Pc.has(t)))||e.every((({type:e})=>Pu.has(e)))),Bc=e=>1===e||2===e,Pc=new Set(["pipe","overlapped"]),Rc=e=>e._readableState.pipes.length>0,$c=(e,{verboseId:t})=>{xi(ji(e),t,"output")},Nc=({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=Va(r);return e.length>n?e.slice(0,n):e})(e,s,h),f=$n(d),{stdioItems:p,objectMode:m}=t[r],g=Lc([f],p,u,n),{serializedResult:b,finalResult:y=b}=Uc({chunks:g,objectMode:m,encoding:u,lines:l,stripFinalNewline:c,fdNumber:r});if(jc({stdioItems:p,encoding:u,verboseInfo:o,fdNumber:r})){((e,t)=>{for(const r of e)$c(r,t)})(ql(b,!1,m),o)}const D=a[r]?y:void 0;try{return void 0===n.error&&Wc(b,p,i),D}catch(e){return n.error=e,D}},Lc=(e,t,r,n)=>{try{return _c(e,t,r,!1)}catch(t){return n.error=t,e}},Uc=({chunks:e,objectMode:t,encoding:r,lines:n,stripFinalNewline:i,fdNumber:s})=>{if(t)return{serializedResult:e};if("buffer"===r)return{serializedResult:Hn(e)};const o=((e,t)=>Gn(e,t).join(""))(e,r);return n[s]?{serializedResult:o,finalResult:ql(o,!i[s],t)}:{serializedResult:o}},Wc=(e,t,r)=>{for(const{path:n}of t.filter((({type:e})=>Ru.has(e)))){const t="string"==typeof n?n:n.toString();r.has(t)?(0,Jr.appendFileSync)(n,e):(r.add(t),(0,Jr.writeFileSync)(n,e))}},Gc=async e=>{const[t,r]=await Promise.allSettled([(0,$s.once)(e,"spawn"),(0,$s.once)(e,"exit")]);return"rejected"===t.status?[]:"rejected"===r.status?Hc(e):r.value},Hc=async e=>{try{return await(0,$s.once)(e,"exit")}catch{return Hc(e)}},zc=async e=>{const[t,r]=await e;if(!Vc(t,r)&&qc(t,r))throw new as;return[t,r]},Vc=(e,t)=>void 0===e&&void 0===t,qc=(e,t)=>0!==e||null!==t,Yc=({error:e,status:t,signal:r,output:n},{maxBuffer:i})=>{const s=Kc(e,t,r),o="ETIMEDOUT"===s?.code,a=((e,t,r)=>"ENOBUFS"===e?.code&&null!==t&&t.some((e=>null!==e&&e.length>Va(r))))(s,n,i);return{resultError:s,exitCode:t,signal:r,timedOut:o,isMaxBuffer:a}},Kc=(e,t,r)=>void 0!==e?e:qc(t,r)?new as:void 0,Jc=(e,t,r)=>{const{command:n,escapedCommand:i,startTime:s,verboseInfo:o}=es(e,t,r);try{const a=Zc(r),{file:u,commandArguments:l,options:c}=ca(e,t,a);Qc(c);const h=((e,t)=>Sl(Wl,e,0,!0))(c);return{file:u,commandArguments:l,command:n,escapedCommand:i,startTime:s,verboseInfo:o,options:c,fileDescriptors:h}}catch(e){throw uu(e,s,o),e}},Zc=e=>e.node&&!e.ipc?{...e,ipc:!1}:e,Qc=({ipc:e,ipcInput:t,detached:r,cancelSignal:n})=>{t&&Xc("ipcInput"),e&&Xc("ipc: true"),r&&Xc("detached: true"),n&&Xc("cancelSignal")},Xc=e=>{throw new TypeError(`The "${e}" option cannot be used with synchronous methods.`)},eh=({file:e,commandArguments:t,options:r,command:n,escapedCommand:i,verboseInfo:s,fileDescriptors:o,startTime:a})=>{const u=th({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:f}=Yc(u,r),{output:p,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)=>Nc({result:t,fileDescriptors:e,fdNumber:a,state:s,outputFiles:o,isMaxBuffer:n,verboseInfo:i},r))),...s}})({fileDescriptors:o,syncResult:u,options:r,isMaxBuffer:f,verboseInfo:s}),g=p.map(((e,t)=>Gl(e,r,t))),b=Gl((([,e,t],r)=>{if(r.all)return void 0===e?t:void 0===t?e:Array.isArray(e)?Array.isArray(t)?[...e,...t]:[...e,Gl(t,r,"all")]:Array.isArray(t)?[Gl(e,r,"all"),...t]:Rn(e)&&Rn(t)?Vn([e,t]):`${e}${t}`})(p,r),r,"all");return nh({error:m,exitCode:c,signal:h,timedOut:d,isMaxBuffer:f,stdio:g,all:b,options:r,command:n,escapedCommand:i,startTime:a})},th=({file:e,commandArguments:t,options:r,command:n,escapedCommand:i,fileDescriptors:s,startTime:o})=>{try{((e,t)=>{for(const r of Tc(e))Mc(e,r,t)})(s,r);const n=rh(r);return(0,Kr.spawnSync)(e,t,n)}catch(e){return eu({error:e,command:n,escapedCommand:i,fileDescriptors:s,options:r,startTime:o,isSync:!0})}},rh=({encoding:e,maxBuffer:t,...r})=>({...r,encoding:"buffer",maxBuffer:Va(t)}),nh=({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?Xa({command:u,escapedCommand:l,stdio:s,all:o,ipcOutput:[],options:a,startTime:c}):tu({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}),ih=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:i=!0,filter:s}={})=>(Ws({methodName:"getOneMessage",isSubprocess:r,ipc:n,isConnected:Fo(e)}),sh({anyProcess:e,channel:t,isSubprocess:r,filter:s,reference:i})),sh=async({anyProcess:e,channel:t,isSubprocess:r,filter:n,reference:i})=>{fo(t,i);const s=wo(e,t,r),o=new AbortController;try{return await Promise.race([oh(s,n,o),ah(s,r,o),uh(s,r,o)])}catch(t){throw Qs(e),t}finally{o.abort(),mo(t,i)}},oh=async(e,t,{signal:r})=>{if(void 0===t){const[t]=await(0,$s.once)(e,"message",{signal:r});return t}for await(const[n]of(0,$s.on)(e,"message",{signal:r}))if(t(n))return n},ah=async(e,t,{signal:r})=>{await(0,$s.once)(e,"disconnect",{signal:r}),(e=>{throw new Error(`${Ks("getOneMessage",e)} could not complete: the ${Zs(e)} exited or disconnected.`)})(t)},uh=async(e,t,{signal:r})=>{const[n]=await(0,$s.once)(e,"strict:error",{signal:r});throw zs(n,t)},lh=({anyProcess:e,channel:t,isSubprocess:r,ipc:n},{reference:i=!0}={})=>ch({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:!r,reference:i}),ch=({anyProcess:e,channel:t,isSubprocess:r,ipc:n,shouldAwait:i,reference:s})=>{Ws({methodName:"getEachMessage",isSubprocess:r,ipc:n,isConnected:Fo(e)}),fo(t,s);const o=wo(e,t,r),a=new AbortController,u={};return hh(e,o,a),dh({ipcEmitter:o,isSubprocess:r,controller:a,state:u}),fh({anyProcess:e,channel:t,ipcEmitter:o,isSubprocess:r,shouldAwait:i,controller:a,state:u,reference:s})},hh=async(e,t,r)=>{try{await(0,$s.once)(t,"disconnect",{signal:r.signal}),r.abort()}catch{}},dh=async({ipcEmitter:e,isSubprocess:t,controller:r,state:n})=>{try{const[i]=await(0,$s.once)(e,"strict:error",{signal:r.signal});n.error=zs(i,t),r.abort()}catch{}},fh=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,$s.on)(r,"message",{signal:s.signal}))ph(o),yield e}catch{ph(o)}finally{s.abort(),mo(t,a),n||Qs(e),i&&await e}},ph=({error:e})=>{if(e)throw e},mh=(e,t,r)=>({sendMessage:Ro.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getOneMessage:ih.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r}),getEachMessage:lh.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})}),gh=(e,t)=>{const r=bh(),n=bh(),i=bh(),s=Array.from({length:t.length-3},bh),o=bh(),a=[r,n,i,...s];Object.assign(e,{stdin:r,stdout:n,stderr:i,all:o,stdio:a})},bh=()=>{const e=new zl.PassThrough;return e.end(),e},yh=()=>new zl.Readable({read(){}}),Dh=()=>new zl.Writable({write(){}}),wh=()=>new zl.Duplex({read(){},write(){}}),vh=async(e,t,r)=>du(e,t,r),Eh=({type:e,optionName:t})=>{throw new TypeError(`The \`${t}\` option cannot be ${Uu[e]}.`)},Fh={fileNumber:Eh,generator:Oc,asyncGenerator:Oc,nodeStream:({value:e})=>({stream:e}),webTransform({value:{transform:e,writableObjectMode:t,readableObjectMode:r}}){const n=t||r;return{stream:zl.Duplex.fromWeb(e,{objectMode:n})}},duplex:({value:{transform:e}})=>({stream:e}),native(){}},Ch={input:{...Fh,fileUrl:({value:e})=>({stream:(0,Jr.createReadStream)(e)}),filePath:({value:{file:e}})=>({stream:(0,Jr.createReadStream)(e)}),webStream:({value:e})=>({stream:zl.Readable.fromWeb(e)}),iterable:({value:e})=>({stream:zl.Readable.from(e)}),asyncIterable:({value:e})=>({stream:zl.Readable.from(e)}),string:({value:e})=>({stream:zl.Readable.from(e)}),uint8Array:({value:e})=>({stream:zl.Readable.from(ic.Buffer.from(e))})},output:{...Fh,fileUrl:({value:e})=>({stream:(0,Jr.createWriteStream)(e)}),filePath:({value:{file:e}})=>({stream:(0,Jr.createWriteStream)(e)}),webStream:({value:e})=>({stream:zl.Writable.fromWeb(e)}),iterable:Eh,asyncIterable:Eh,string:Eh,uint8Array:Eh}},Sh=e(import.meta.url)("node:stream/promises");function xh(e){if(!Array.isArray(e))throw new TypeError(`Expected an array, got \`${typeof e}\`.`);for(const t of e)kh(t);const t=e.some((({readableObjectMode:e})=>e)),r=Oh(e,t),n=new _h({objectMode:t,writableHighWaterMark:r,readableHighWaterMark:r});for(const t of e)n.add(t);return n}const Oh=(e,t)=>{if(0===e.length)return(0,zl.getDefaultHighWaterMark)(t);const r=e.filter((({readableObjectMode:e})=>e===t)).map((({readableHighWaterMark:e})=>e));return Math.max(...r)};class _h extends zl.PassThrough{#_=new Set([]);#A=new Set([]);#T=new Set([]);#M;#k=Symbol("unpipe");#I=new WeakMap;add(e){if(kh(e),this.#_.has(e))return;this.#_.add(e),this.#M??=Ah(this,this.#_,this.#k);const t=Ih({passThroughStream:this,stream:e,streams:this.#_,ended:this.#A,aborted:this.#T,onFinished:this.#M,unpipeEvent:this.#k});this.#I.set(e,t),e.pipe(this,{end:!1})}async remove(e){if(kh(e),!this.#_.has(e))return!1;const t=this.#I.get(e);return void 0!==t&&(this.#I.delete(e),e.unpipe(this),await t,!0)}}const Ah=async(e,t,r)=>{Gh(e,Hh);const n=new AbortController;try{await Promise.race([Th(e,n),Mh(e,t,r,n)])}finally{n.abort(),Gh(e,-Hh)}},Th=async(e,{signal:t})=>{try{await(0,Sh.finished)(e,{signal:t,cleanup:!0})}catch(t){throw $h(e,t),t}},Mh=async(e,t,r,{signal:n})=>{for await(const[i]of(0,$s.on)(e,"unpipe",{signal:n}))t.has(i)&&i.emit(r)},kh=e=>{if("function"!=typeof e?.pipe)throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)},Ih=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:i,onFinished:s,unpipeEvent:o})=>{Gh(e,zh);const a=new AbortController;try{await Promise.race([jh(s,t,a),Bh({passThroughStream:e,stream:t,streams:r,ended:n,aborted:i,controller:a}),Ph({stream:t,streams:r,ended:n,aborted:i,unpipeEvent:o,controller:a})])}finally{a.abort(),Gh(e,-zh)}r.size>0&&r.size===n.size+i.size&&(0===n.size&&i.size>0?Lh(e):Rh(e))},jh=async(e,t,{signal:r})=>{try{await e,r.aborted||Lh(t)}catch(e){r.aborted||$h(t,e)}},Bh=async({passThroughStream:e,stream:t,streams:r,ended:n,aborted:i,controller:{signal:s}})=>{try{await(0,Sh.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;Nh(n)?i.add(t):Uh(e,n)}},Ph=async({stream:e,streams:t,ended:r,aborted:n,unpipeEvent:i,controller:{signal:s}})=>{if(await(0,$s.once)(e,i,{signal:s}),!e.readable)return(0,$s.once)(s,"abort",{signal:s});t.delete(e),r.delete(e),n.delete(e)},Rh=e=>{e.writable&&e.end()},$h=(e,t)=>{Nh(t)?Lh(e):Uh(e,t)},Nh=e=>"ERR_STREAM_PREMATURE_CLOSE"===e?.code,Lh=e=>{(e.readable||e.writable)&&e.destroy()},Uh=(e,t)=>{e.destroyed||(e.once("error",Wh),e.destroy(t))},Wh=()=>{},Gh=(e,t)=>{const r=e.getMaxListeners();0!==r&&r!==Number.POSITIVE_INFINITY&&e.setMaxListeners(r+t)},Hh=2,zh=1,Vh=(e,t)=>{e.pipe(t),qh(e,t),Kh(e,t)},qh=async(e,t)=>{if(!$i(e)&&!$i(t)){try{await(0,Sh.finished)(e,{cleanup:!0,readable:!0,writable:!1})}catch{}Yh(t)}},Yh=e=>{e.writable&&e.end()},Kh=async(e,t)=>{if(!$i(e)&&!$i(t)){try{await(0,Sh.finished)(t,{cleanup:!0,readable:!1,writable:!0})}catch{}Jh(e)}},Jh=e=>{e.readable&&e.destroy()},Zh=(e,t,r,n)=>{"output"===r?Vh(e.stdio[n],t):Vh(t,e.stdio[n]);const i=Qh[n];void 0!==i&&(e[i]=t),e.stdio[n]=t},Qh=["stdin","stdout","stderr"],Xh=({subprocess:e,stream:t,direction:r,fdNumber:n,pipeGroups:i,controller:s})=>{if(void 0===t)return;ed(t,s);const[o,a]="output"===r?[t,e.stdio[n]]:[e.stdio[n],t],u=i.get(o)??[];i.set(o,[...u,a])},ed=(e,{signal:t})=>{$i(e)&&ho(e,td,t)},td=2,rd=[];rd.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&rd.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&rd.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const nd=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,id=Symbol.for("signal-exit emitter"),sd=globalThis,od=Object.defineProperty.bind(Object);class ad{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(sd[id])return sd[id];od(sd,id,{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 ud{}const ld=globalThis.process,{onExit:cd,load:hd,unload:dd}=(fd=nd(ld)?new class extends ud{#j="win32"===ld.platform?"SIGINT":"SIGHUP";#B=new ad;#P;#R;#$;#N={};#L=!1;constructor(e){super(),this.#P=e,this.#N={};for(const t of rd)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(!nd(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 rd)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,rd.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 nd(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&&nd(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)}}(ld):new class extends ud{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>fd.onExit(e,t),load:()=>fd.load(),unload:()=>fd.unload()});var fd;const pd=(e,t,r)=>{try{const{destination:n,pipeOptions:{from:i,to:s,unpipeSignal:o}={}}=md(e,t,...r);return{destination:n,destinationStream:eo(n,s),from:i,unpipeSignal:o}}catch(e){return{destinationError:e}}},md=(e,t,r,...n)=>{if(Array.isArray(r)){return{destination:t(gd,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]=jn(r,...n);return{destination:t(gd)(i,s,o),pipeOptions:o}}if(ro.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}`)},gd=({options:e})=>({options:{...e,stdin:"pipe",piped:!0}}),bd=(e,t)=>{try{return{sourceStream:to(e,t)}}catch(e){return{sourceError:e}}},yd=({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n})=>void 0!==t&&void 0!==n?n:void 0!==n?(Jh(e),n):void 0!==t?(Yh(r),t):void 0,Dd=({error:e,fileDescriptors:t,sourceOptions:r,startTime:n})=>eu({error:e,command:wd,escapedCommand:wd,fileDescriptors:t,options:r,startTime:n,isSync:!1}),wd="source.pipe(destination)",vd=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},Ed=(e,t)=>{const r=xh([e]);return Vh(r,t),Sd.set(t,r),r},Fd=(e,t)=>{const r=Sd.get(t);return r.add(e),r},Cd=async e=>{try{await(0,Sh.finished)(e,{cleanup:!0,readable:!1,writable:!0})}catch{}Sd.delete(e)},Sd=new WeakMap,xd=2,Od=1,_d=(e,t)=>void 0===e?[]:[Ad(e,t)],Ad=async(e,{sourceStream:t,mergedStream:r,fileDescriptors:n,sourceOptions:i,startTime:s})=>{await(0,fn.aborted)(e,t),await r.remove(t);const o=new Error("Pipe canceled by `unpipeSignal` option.");throw Dd({error:o,fileDescriptors:n,sourceOptions:i,startTime:s})},Td=(e,...t)=>{if(Tn(t[0]))return Td.bind(void 0,{...e,boundOptions:{...e.boundOptions,...t[0]}});const{destination:r,...n}=(({source:e,sourcePromise:t,boundOptions:r,createNested:n},...i)=>{const s=Pi(),{destination:o,destinationStream:a,destinationError:u,from:l,unpipeSignal:c}=pd(r,n,i),{sourceStream:h,sourceError:d}=bd(e,l),{options:f,fileDescriptors:p}=ro.get(e);return{sourcePromise:t,sourceStream:h,sourceOptions:f,sourceError:d,destination:o,destinationStream:a,destinationError:u,unpipeSignal:c,fileDescriptors:p,startTime:s}})(e,...t),i=Md({...n,destination:r});return i.pipe=Td.bind(void 0,{...e,source:r,sourcePromise:i,boundOptions:{}}),i},Md=async({sourcePromise:e,sourceStream:t,sourceOptions:r,sourceError:n,destination:i,destinationStream:s,destinationError:o,unpipeSignal:a,fileDescriptors:u,startTime:l})=>{const c=kd(e,i);(({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n,fileDescriptors:i,sourceOptions:s,startTime:o})=>{const a=yd({sourceStream:e,sourceError:t,destinationStream:r,destinationError:n});if(void 0!==a)throw Dd({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=Sd.has(t)?Fd(e,t):Ed(e,t);return ho(e,xd,r.signal),ho(t,Od,r.signal),Cd(t),n})(t,s,h);return await Promise.race([vd(c),..._d(a,{sourceStream:t,mergedStream:e,sourceOptions:r,fileDescriptors:u,startTime:l})])}finally{h.abort()}},kd=(e,t)=>Promise.allSettled([e,t]),Id=e=>e,jd=()=>{},Bd=({contents:e})=>e,Pd=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},Rd=e=>e.length;const $d={init:()=>({contents:[]}),convertChunk:{string:Id,buffer:Id,arrayBuffer:Id,dataView:Id,typedArray:Id,others:Id},getSize:()=>1,truncateChunk:jd,addChunk:(e,{contents:t})=>(t.push(e),t),getFinalChunk:jd,finalize:Bd};const Nd=new TextEncoder,Ld=e=>new Uint8Array(e),Ud=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),Wd=(e,t)=>{if(t<=e.byteLength)return e;const r=new ArrayBuffer(Hd(t));return new Uint8Array(r).set(new Uint8Array(e),0),r},Gd=(e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;const r=new ArrayBuffer(t,{maxByteLength:Hd(t)});return new Uint8Array(r).set(new Uint8Array(e),0),r},Hd=e=>zd**Math.ceil(Math.log(e)/Math.log(zd)),zd=2,Vd=()=>"resize"in ArrayBuffer.prototype,qd={init:()=>({contents:new ArrayBuffer(0)}),convertChunk:{string:e=>Nd.encode(e),buffer:Ld,arrayBuffer:Ld,dataView:Ud,typedArray:Ud,others:Pd},getSize:Rd,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t,length:r},n)=>{const i=Vd()?Gd(t,n):Wd(t,n);return new Uint8Array(i).set(e,r),i},getFinalChunk:jd,finalize:({contents:e,length:t})=>Vd()?e:e.slice(0,t)};const Yd=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),Kd={init:()=>({contents:"",textDecoder:new TextDecoder}),convertChunk:{string:Id,buffer:Yd,arrayBuffer:Yd,dataView:Yd,typedArray:Yd,others:Pd},getSize:Rd,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:Bd},Jd=({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:n,encoding:i,preserveNewlines:s})=>{const o=new AbortController;return Zd(t,o),ef({stream:e,controller:o,binary:r,shouldEncode:!e.readableObjectMode&&n,encoding:i,shouldSplit:!e.readableObjectMode,preserveNewlines:s})},Zd=async(e,t)=>{try{await e}catch{}finally{t.abort()}},Qd=({stream:e,onStreamEnd:t,lines:r,encoding:n,stripFinalNewline:i,allMixed:s})=>{const o=new AbortController;Xd(t,o,e);const a=e.readableObjectMode&&!s;return ef({stream:e,controller:o,binary:"buffer"===n,shouldEncode:!a,encoding:n,shouldSplit:!a&&r,preserveNewlines:!i})},Xd=async(e,t,r)=>{try{await e}catch{r.destroy()}finally{t.abort()}},ef=({stream:e,controller:t,binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o})=>{const a=(0,$s.on)(e,"data",{signal:t.signal,highWaterMark:rf,highWatermark:rf});return nf({onStdoutChunk:a,controller:t,binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o})},tf=(0,zl.getDefaultHighWaterMark)(!0),rf=tf,nf=async function*({onStdoutChunk:e,controller:t,binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o}){const a=sf({binary:r,shouldEncode:n,encoding:i,shouldSplit:s,preserveNewlines:o});try{for await(const[t]of e)yield*Fc(t,a,0)}catch(e){if(!t.signal.aborted)throw e}finally{yield*Cc(a)}},sf=({binary:e,shouldEncode:t,encoding:r,shouldSplit:n,preserveNewlines:i})=>[hc(e,r,!t),Vl(e,i,!n,{})].filter(Boolean),of=async({stream:e,onStreamEnd:t,fdNumber:r,encoding:n,buffer:i,maxBuffer:s,lines:o,allMixed:a,stripFinalNewline:u,verboseInfo:l,streamInfo:{fileDescriptors:c}})=>{if(jc({stdioItems:c[r]?.stdioItems,encoding:n,verboseInfo:l,fdNumber:r})){(async(e,t,r)=>{for await(const n of e)Rc(t)||$c(n,r)})(Qd({stream:e,onStreamEnd:t,lines:!0,encoding:n,stripFinalNewline:!0,allMixed:a}),e,l)}if(!i)return void await af(e);const h=Hl(u,r),d=Qd({stream:e,onStreamEnd:t,lines:o,encoding:n,stripFinalNewline:h,allMixed:a});return uf({stream:e,iterable:d,fdNumber:r,encoding:n,maxBuffer:s,lines:o})},af=async e=>{await(0,os.setImmediate)(),null===e.readableFlowing&&e.resume()},uf=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 Pa(e,$d,t)}(r,{maxBuffer:s}):"buffer"===i?new Uint8Array(await async function(e,t){return Pa(e,qd,t)}(r,{maxBuffer:s})):await async function(e,t){return Pa(e,Kd,t)}(r,{maxBuffer:s})}catch(r){return cf((({error:e,stream:t,readableObjectMode:r,lines:n,encoding:i,fdNumber:s})=>{if(!(e instanceof Wa))throw e;if("all"===s)return e;const o=Ga(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}))}},lf=async e=>{try{return await e}catch(e){return cf(e)}},cf=({bufferedData:e})=>{return t=e,"[object ArrayBuffer]"===Pn.call(t)?new Uint8Array(e):e;var t},hf=async(e,t,r,{isSameDirection:n,stopOnExit:i=!1}={})=>{const s=df(e,r),o=new AbortController;try{await Promise.race([...i?[r.exitPromise]:[],(0,Sh.finished)(e,{cleanup:!0,signal:o.signal})])}catch(e){s.stdinCleanedUp||mf(e,t,r,n)}finally{o.abort()}},df=(e,{originalStreams:[t],subprocess:r})=>{const n={stdinCleanedUp:!1};return e===t&&ff(e,r,n),n},ff=(e,t,r)=>{const{_destroy:n}=e;e._destroy=(...i)=>{pf(t,r),n.call(e,...i)}},pf=({exitCode:e,signalCode:t},r)=>{null===e&&null===t||(r.stdinCleanedUp=!0)},mf=(e,t,r,n)=>{if(!gf(e,t,r,n))throw e},gf=(e,t,r,n=!0)=>r.propagating?Df(e)||yf(e):(r.propagating=!0,bf(r,t)===n?Df(e):yf(e)),bf=({fileDescriptors:e},t)=>"all"!==t&&"input"===e[t].direction,yf=e=>"ERR_STREAM_PREMATURE_CLOSE"===e?.code,Df=e=>"EPIPE"===e?.code,wf=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=hf(e,t,l);if(bf(l,t))return void await c;const[h]=await Promise.all([of({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},vf=({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}},Ef=({all:e,stdout:t,stderr:r})=>e&&t&&r&&t.readableObjectMode!==r.readableObjectMode,Ff=(e,{verboseId:t})=>{xi(ji(e),t,"ipc")},Cf=async(e,t)=>(await Promise.allSettled([e]),t),Sf=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:f,fileDescriptors:p,originalStreams:m,onInternalError:g,controller:b})=>{const y=(async(e,t)=>{const[r,n]=await Gc(e);return t.isForcefullyTerminated??=!1,[r,n]})(e,d),D={originalStreams:m,fileDescriptors:p,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)=>wf({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:f,streamInfo:D}),v=(({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:i,stripFinalNewline:s,verboseInfo:o,streamInfo:a})=>wf({...vf(e,r),fdNumber:"all",encoding:t,maxBuffer:n[1]+n[2],lines:i[1]||i[2],allMixed:Ef(e),stripFinalNewline:s,verboseInfo:o,streamInfo:a}))({subprocess:e,encoding:t,buffer:r,maxBuffer:n,lines:i,stripFinalNewline:l,verboseInfo:f,streamInfo:D}),E=[],F=(async({subprocess:e,buffer:t,maxBuffer:r,ipc:n,ipcOutput:i,verboseInfo:s})=>{if(!n)return i;const o=(({verbose:e})=>"full"===e.at(-1))(s),a=t.at(-1),u=r.at(-1);for await(const t of ch({anyProcess:e,channel:e.channel,isSubprocess:!1,ipc:n,shouldAwait:!1,reference:!0}))a&&(Ha(0,i,u),i.push(t)),o&&Ff(t,s);return i})({subprocess:e,buffer:r,maxBuffer:n,ipc:c,ipcOutput:E,verboseInfo:f}),C=xf(m,e,D),S=Of(p,D);try{return await Promise.race([Promise.all([{},zc(y),Promise.all(w),v,F,ra(e,h),...C,...S]),g,_f(e,b),...Qo(e,s,d,b),...Ls({subprocess:e,cancelSignal:o,gracefulCancel:a,context:d,controller:b}),...Ko({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=>lf(e)))),lf(v),Cf(F,E),Promise.allSettled(C),Promise.allSettled(S)])}},xf=(e,t,r)=>e.map(((e,n)=>e===t.stdio[n]?void 0:hf(e,n,r))),Of=(e,t)=>e.flatMap((({stdioItems:e},r)=>e.filter((({value:e,stream:t=e})=>wa(t,{checkOpen:!1})&&!$i(t))).map((({type:e,value:n,stream:i=n})=>hf(i,r,t,{isSameDirection:Pu.has(e),stopOnExit:"native"===e}))))),_f=async(e,{signal:t})=>{const[r]=await(0,$s.once)(e,"error",{signal:t});throw r},Af=(e,t,r)=>{const n=e[r];n.has(t)||n.set(t,[]);const i=n.get(t),s=Xs();i.push(s);return{resolve:s.resolve.bind(s),promises:i}},Tf=async({resolve:e,promises:t},r)=>{e();const[n]=await Promise.race([Promise.allSettled([!0,r]),Promise.all([!1,...t])]);return!n},Mf=async e=>{if(void 0!==e)try{await kf(e)}catch{}},kf=async e=>{await(0,Sh.finished)(e,{cleanup:!0,readable:!1,writable:!0})},If=async e=>{await(0,Sh.finished)(e,{cleanup:!0,readable:!0,writable:!1})},jf=async(e,t)=>{if(await e,t)throw t},Bf=(e,t,r)=>{r&&!yf(r)?e.destroy(r):t&&e.destroy()},Pf=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,binary:i=!0,preserveNewlines:s=!0}={})=>{const o=i||ia.has(r),{subprocessStdout:a,waitReadableDestroy:u}=Rf(e,n,t),{readableEncoding:l,readableObjectMode:c,readableHighWaterMark:h}=$f(a,o),{read:d,onStdoutDataDone:f}=Nf({subprocessStdout:a,subprocess:e,binary:o,encoding:r,preserveNewlines:s}),p=new zl.Readable({read:d,destroy:(0,fn.callbackify)(Wf.bind(void 0,{subprocessStdout:a,subprocess:e,waitReadableDestroy:u})),highWaterMark:h,objectMode:c,encoding:l});return Uf({subprocessStdout:a,onStdoutDataDone:f,readable:p,subprocess:e}),p},Rf=(e,t,r)=>{const n=to(e,t);return{subprocessStdout:n,waitReadableDestroy:Af(r,n,"readableDestroy")}},$f=({readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r},n)=>n?{readableEncoding:e,readableObjectMode:t,readableHighWaterMark:r}:{readableEncoding:e,readableObjectMode:!0,readableHighWaterMark:tf},Nf=({subprocessStdout:e,subprocess:t,binary:r,encoding:n,preserveNewlines:i})=>{const s=Xs(),o=Jd({subprocessStdout:e,subprocess:t,binary:r,shouldEncode:!r,encoding:n,preserveNewlines:i});return{read(){Lf(this,o,s)},onStdoutDataDone:s}},Lf=async(e,t,r)=>{try{const{value:n,done:i}=await t.next();i?r.resolve():e.push(n)}catch{}},Uf=async({subprocessStdout:e,onStdoutDataDone:t,readable:r,subprocess:n,subprocessStdin:i})=>{try{await If(e),await n,await Mf(i),await t,r.readable&&r.push(null)}catch(e){await Mf(i),Gf(r,e)}},Wf=async({subprocessStdout:e,subprocess:t,waitReadableDestroy:r},n)=>{await Tf(r,t)&&(Gf(e,n),await jf(t,n))},Gf=(e,t)=>{Bf(e,e.readable,t)},Hf=({subprocess:e,concurrentStreams:t},{to:r}={})=>{const{subprocessStdin:n,waitWritableFinal:i,waitWritableDestroy:s}=zf(e,r,t),o=new zl.Writable({...Vf(n,e,i),destroy:(0,fn.callbackify)(Jf.bind(void 0,{subprocessStdin:n,subprocess:e,waitWritableFinal:i,waitWritableDestroy:s})),highWaterMark:n.writableHighWaterMark,objectMode:n.writableObjectMode});return Kf(n,o),o},zf=(e,t,r)=>{const n=eo(e,t);return{subprocessStdin:n,waitWritableFinal:Af(r,n,"writableFinal"),waitWritableDestroy:Af(r,n,"writableDestroy")}},Vf=(e,t,r)=>({write:qf.bind(void 0,e),final:(0,fn.callbackify)(Yf.bind(void 0,e,t,r))}),qf=(e,t,r,n)=>{e.write(t,r)?n():e.once("drain",n)},Yf=async(e,t,r)=>{await Tf(r,t)&&(e.writable&&e.end(),await t)},Kf=async(e,t,r)=>{try{await kf(e),t.writable&&t.end()}catch(e){await(async e=>{if(void 0!==e)try{await If(e)}catch{}})(r),Zf(t,e)}},Jf=async({subprocessStdin:e,subprocess:t,waitWritableFinal:r,waitWritableDestroy:n},i)=>{await Tf(r,t),await Tf(n,t)&&(Zf(e,i),await jf(t,i))},Zf=(e,t)=>{Bf(e,e.writable,t)},Qf=({subprocess:e,concurrentStreams:t,encoding:r},{from:n,to:i,binary:s=!0,preserveNewlines:o=!0}={})=>{const a=s||ia.has(r),{subprocessStdout:u,waitReadableDestroy:l}=Rf(e,n,t),{subprocessStdin:c,waitWritableFinal:h,waitWritableDestroy:d}=zf(e,i,t),{readableEncoding:f,readableObjectMode:p,readableHighWaterMark:m}=$f(u,a),{read:g,onStdoutDataDone:b}=Nf({subprocessStdout:u,subprocess:e,binary:a,encoding:r,preserveNewlines:o}),y=new zl.Duplex({read:g,...Vf(c,e,h),destroy:(0,fn.callbackify)(Xf.bind(void 0,{subprocessStdout:u,subprocessStdin:c,subprocess:e,waitReadableDestroy:l,waitWritableFinal:h,waitWritableDestroy:d})),readableHighWaterMark:m,writableHighWaterMark:c.writableHighWaterMark,readableObjectMode:p,writableObjectMode:c.writableObjectMode,encoding:f});return Uf({subprocessStdout:u,onStdoutDataDone:b,readable:y,subprocess:e,subprocessStdin:c}),Kf(c,y,u),y},Xf=async({subprocessStdout:e,subprocessStdin:t,subprocess:r,waitReadableDestroy:n,waitWritableFinal:i,waitWritableDestroy:s},o)=>{await Promise.all([Wf({subprocessStdout:e,subprocess:r,waitReadableDestroy:n},o),Jf({subprocessStdin:t,subprocess:r,waitWritableFinal:i,waitWritableDestroy:s},o)])},ep=(e,t,{from:r,binary:n=!1,preserveNewlines:i=!1}={})=>{const s=n||ia.has(t),o=to(e,r),a=Jd({subprocessStdout:o,subprocess:e,binary:s,shouldEncode:!0,encoding:t,preserveNewlines:i});return tp(a,o,e)},tp=async function*(e,t,r){try{yield*e}finally{t.readable&&t.destroy(),await r}},rp=(e,{encoding:t})=>{const r={readableDestroy:new WeakMap,writableFinal:new WeakMap,writableDestroy:new WeakMap};e.readable=Pf.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.writable=Hf.bind(void 0,{subprocess:e,concurrentStreams:r}),e.duplex=Qf.bind(void 0,{subprocess:e,concurrentStreams:r,encoding:t}),e.iterable=ep.bind(void 0,e,t),e[Symbol.asyncIterator]=ep.bind(void 0,e,t,{})},np=(async()=>{})().constructor.prototype,ip=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(np,e)])),sp=(e,t,r,n)=>{const{file:i,commandArguments:s,command:o,escapedCommand:a,startTime:u,verboseInfo:l,options:c,fileDescriptors:h}=op(e,t,r),{subprocess:d,promise:f}=up({file:i,commandArguments:s,options:c,startTime:u,verboseInfo:l,command:o,escapedCommand:a,fileDescriptors:h});return d.pipe=Td.bind(void 0,{source:d,sourcePromise:f,boundOptions:{},createNested:n}),((e,t)=>{for(const[r,n]of ip){const i=n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}})(d,f),ro.set(d,{options:c,fileDescriptors:h}),d},op=(e,t,r)=>{const{command:n,escapedCommand:i,startTime:s,verboseInfo:o}=es(e,t,r);try{const{file:a,commandArguments:u,options:l}=ca(e,t,r),c=ap(l),h=((e,t)=>Sl(Ch,e,0,!1))(c);return{file:a,commandArguments:u,command:n,escapedCommand:i,startTime:s,verboseInfo:o,options:c,fileDescriptors:h}}catch(e){throw uu(e,s,o),e}},ap=({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}},up=({file:e,commandArguments:t,options:r,startTime:n,verboseInfo:i,command:s,escapedCommand:o,fileDescriptors:a})=>{let u;try{u=(0,Kr.spawn)(e,t,r)}catch(e){return(({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:i,startTime:s,verboseInfo:o})=>{Rl(n);const a=new Kr.ChildProcess;gh(a,n),Object.assign(a,{readable:yh,writable:Dh,duplex:wh});const u=eu({error:e,command:t,escapedCommand:r,fileDescriptors:n,options:i,startTime:s,isSync:!1});return{subprocess:a,promise:vh(u,o,i)}})({error:e,command:s,escapedCommand:o,fileDescriptors:a,options:r,startTime:n,verboseInfo:i})}const l=new AbortController;(0,$s.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})=>Pu.has(e))))Zh(e,t,o,i);for(const{stream:t}of s.filter((({type:e})=>!Pu.has(e))))Xh({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]:xh(t);Vh(r,e)}})(u,a,l),((e,{cleanup:t,detached:r},{signal:n})=>{if(!t||r)return;const i=cd((()=>{e.kill()}));(0,$s.addAbortListener)(n,(()=>{i()}))})(u,r,l);const h={},d=Xs();u.kill=Is.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)?xh([e,t].filter(Boolean)):void 0)(u,r),rp(u,r),((e,{ipc:t})=>{Object.assign(e,mh(e,!1,t))})(u,r);return{subprocess:u,promise:lp({subprocess:u,options:r,startTime:n,verboseInfo:i,fileDescriptors:a,originalStreams:c,command:s,escapedCommand:o,context:h,onInternalError:d,controller:l})}},lp=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,f],p,m,g]=await Sf({subprocess:e,options:t,context:u,verboseInfo:n,fileDescriptors:i,originalStreams:s,onInternalError:l,controller:c});c.abort(),l.resolve();const b=p.map(((e,r)=>Gl(e,t,r))),y=Gl(m,t,"all"),D=cp({errorInfo:h,exitCode:d,signal:f,stdio:b,all:y,ipcOutput:g,context:u,options:t,command:o,escapedCommand:a,startTime:r});return du(D,n,t)},cp=({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?tu({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 Wa,isForcefullyTerminated:o.isForcefullyTerminated,exitCode:t,signal:r,stdio:n,all:i,ipcOutput:s,options:a,startTime:c,isSync:!1}):Xa({command:u,escapedCommand:l,stdio:n,all:i,ipcOutput:s,options:a,startTime:c}),hp=(e,t)=>{const r=Object.fromEntries(Object.entries(t).map((([t,r])=>[t,dp(t,e[t],r)])));return{...e,...r}},dp=(e,t,r)=>fp.has(e)&&Tn(t)&&Tn(r)?{...t,...r}:r,fp=new Set(["env",...Xi]),pp=(e,t,r,n)=>{const i=(e,t,n)=>pp(e,t,r,n),s=(...s)=>mp({mapArguments:e,deepOptions:r,boundOptions:t,setBoundExeca:n,createNested:i},...s);return void 0!==n&&n(s,i,t),s},mp=({mapArguments:e,deepOptions:t={},boundOptions:r={},setBoundExeca:n,createNested:i},s,...o)=>{if(Tn(s))return i(e,hp(r,s),n);const{file:a,commandArguments:u,options:l,isSync:c}=gp({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}=Jc(e,t,r),h=eh({file:n,commandArguments:i,options:l,command:s,escapedCommand:o,verboseInfo:u,fileDescriptors:c,startTime:a});return du(h,u,l)})(a,u,l):sp(a,u,l,i)},gp=({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=Yn({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]=jn(...s),c=hp(hp(n,i),l),{file:h=a,commandArguments:d=u,options:f=c,isSync:p=!1}=e({file:a,commandArguments:u,options:c});return{file:h,commandArguments:d,options:f,isSync:p}},bp=(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]=yp(e);return{file:r,commandArguments:n}},yp=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(Dp)){const t=r.at(-1);t&&t.endsWith("\\")?r[r.length-1]=`${t.slice(0,-1)} ${e}`:r.push(e)}return r},Dp=/ +/g,wp=({options:e})=>({...vp(e),isSync:!0}),vp=e=>({options:{...Ep(e),...e}}),Ep=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},Fp=pp((()=>({}))),{sendMessage:Cp,getOneMessage:Sp,getEachMessage:xp,getCancelSignal:Op}=(pp((()=>({isSync:!0}))),pp((({file:e,commandArguments:t})=>bp(e,t))),pp((({file:e,commandArguments:t})=>({...bp(e,t),isSync:!0}))),pp((({options:e})=>{if(!1===e.node)throw new TypeError('The "node" option cannot be false with `execaNode()`.');return{options:{...e,node:!0}}})),pp((({options:e})=>vp(e)),{},{preferLocal:!0},((e,t,r)=>{e.sync=t(wp,r),e.s=e.sync})),(()=>{const e=Yt,t=!0,r=void 0!==Yt.channel;return{...mh(e,t,r),getCancelSignal:Wo.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:r})}})());var _p=n(5600);function Ap({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}`]:xn["eslint-config-base"],eslint:xn.eslint}}}const Tp="Add/Reset project dependencies";function Mp(){const{dependencies:e={},devDependencies:t={}}=nn();return{instructions:!1,optionsPerPage:20,message:Tp,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 Ut.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:f="typescript"in n,vue:p="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,f?"npm run lint:type":void 0,s?"npm test":void 0].filter(Boolean);return v.length>0&&await(new Ut.Text).onDone((()=>["#!/bin/sh","",...v,""].join("\n"))).output(".githooks/pre-commit"),o&&await(new Ut.Text).onDone((()=>["#!/bin/sh","","npx --no-install nice-move lint commit",""].join("\n"))).output(".githooks/commit-msg"),d&&await(new Ut.Text).onDone((()=>["// @ts-check","","import defineConfig from '@nice-move/syncpack-config';","","export default defineConfig(import.meta.url, {});"].join("\n"))).output("syncpack.config.mjs"),f&&await(new Ut.Json).config({pretty:!0}).onDone((()=>({extends:"@nice-move/tsconfig/base.json",include:["./"]}))).output("tsconfig.json"),hn.all([r,e&&(w||s||o||g||f)?{scripts:{prepare:"nice-move git hooks"}}:void 0,u?{devDependencies:{garou:xn.garou},"nice-move":{"import-groups":["nice-move-preset"]}}:void 0,f?{devDependencies:{typescript:xn.typescript,"@nice-move/tsconfig":xn.tsconfig},scripts:{"lint:type":"tsc --noEmit"}}:void 0,w||o?{devDependencies:{"@nice-move/cli":xn.cli}}:void 0,w?{scripts:{"lint:staged":"nice-move lint staged"}}:void 0,s?{devDependencies:{ava:xn.ava,...a?{"eslint-plugin-ava":xn["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?Ap({react:c,vue:p}):void 0,h?{devDependencies:{"@nice-move/stylelint-config":xn["stylelint-config"],stylelint:xn.stylelint},stylelint:{extends:"@nice-move/stylelint-config"}}:void 0,d?{devDependencies:{"@nice-move/syncpack-config":xn["syncpack-config"],syncpack:xn.syncpack},scripts:{"lint:version":"syncpack lint","version:pin":"syncpack fix-mismatches"}}:void 0,l?{devDependencies:{"@nice-move/prettier-config":xn["prettier-config"],prettier:xn.prettier},prettier:"@nice-move/prettier-config"}:void 0,c?{dependencies:{react:xn.react,"react-dom":xn["react-dom"]},peerDependencies:{"@types/react":xn["@types/react"]}}:void 0,p?{dependencies:{vue:xn.vue}}:void 0,m?{dependencies:{tailwindcss:xn.tailwindcss},devDependencies:{"prettier-plugin-tailwindcss":l?xn["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":xn["@bring-it/sftp"]}}:void 0,y?{devDependencies:{"@bring-it/npm":xn["@bring-it/npm"]}}:void 0,D?{devDependencies:{"best-shot":xn["best-shot"]},"nice-move":{globals:{BEST_SHOT:"readonly"}},scripts:{build:"best-shot prod"}}:void 0].filter(Boolean))})).output().logger(Tp).catch(console.warn)}(t,Object.fromEntries(e.map((e=>[e,!0]))))}}}const kp="Initialize as git repository";function Ip(){return Fp("git",["init"]).then((e=>(console.log(Fr("\u221a"),kp),e)),(e=>{throw console.log(Er("\xd7"),kp),e}))}function jp({gitSupported:e,isRoot:t}){return{message:kp,name:"GitInit",initial:!0,type:r=>!1===r||!e||t?null:"confirm",format(e){if(!0===e)return Ip}}}var Bp=n(1416);var Pp=n(6756);const Rp=/(?<=^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 $p({cwd:e,pkg:{author:t,description:r,license:n,name:i,private:s,version:o,workspaces:a}={}}){return[{format:tn,initial:(0,Zr.parse)(e).base,message:"package.json \xbb name",name:"name",type:e=>!1===e||i?null:"text",validate:e=>Pp(tn(e)||"").validForNewPackages},{format:tn,initial:"0.0.0",message:"package.json \xbb version",name:"version",type:e=>!1===e||o?null:"text",validate:e=>Rp.test(tn(e)||"")},{format:tn,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:Bp,initial:await rn(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 Np(){const e=await Fp("git",["--version"]).then((({stdout:e})=>Boolean(e))),t=e&&await Fp("git",["rev-parse","--git-dir"]).then((({stdout:e})=>".git"===e)).catch((()=>!1)),r=!!t&&await Fp("git",["status","--short"]).then((({stdout:e})=>e.length>0)),n=0===(0,Jr.readdirSync)(process.cwd()).filter((e=>".git"!==e)).length,i=nn(),s=process.cwd(),o={gitSupported:e,isRoot:t,isDirty:r,isEmpty:n,pkg:i,cwd:s},a=await $p(o);return _p([{active:"do it",inactive:"cancel",message:!0===r?"Repository not clean":"Workspace not empty",name:"okay",type:()=>n||!1===r?null:"toggle"},jp(o),...a,Mp()],{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,r){this.root=r;const{bin:n,homepage:i,name:s="cheetor",repository:{url:o=""}={},version:a}="string"==typeof e?JSON.parse((0,t.readFileSync)(new URL(e,r))):e;this.homepage=i,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]}(n,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,p.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=>Lt(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 Np();console.log("-".repeat(32));const s=[t,()=>_n(n),An,cn,Sr,()=>t||i?an():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}))}))})();