0;e[r+v]=255&l,v+=w,l/=256,m-=8);e[r+v-w]|=128*S}var q4={}.toString,Sb=Array.isArray||function(e){return q4.call(e)=="[object Array]"};function sh(){return ee.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Wn(e,t){if(sh()=sh())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+sh().toString(16)+" bytes");return 0|e}function kn(e){return!(e==null||!e._isBuffer)}function Bb(e,t){if(kn(e))return e.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;typeof e!="string"&&(e=""+e);var r=e.length;if(r===0)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Mc(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Mb(e).length;default:if(n)return Mc(e).length;t=(""+t).toLowerCase(),n=!0}}function G4(e,t,r){var n=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return K4(this,t,r);case"utf8":case"utf-8":return Nb(this,t,r);case"ascii":return Y4(this,t,r);case"latin1":case"binary":return X4(this,t,r);case"base64":return J4(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q4(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function $i(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function Tb(e,t,r,n,a){if(e.length===0)return-1;if(typeof r=="string"?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=a?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(a)return-1;r=e.length-1}else if(r<0){if(!a)return-1;r=0}if(typeof t=="string"&&(t=ee.from(t,n)),kn(t))return t.length===0?-1:kb(e,t,r,n,a);if(typeof t=="number")return t&=255,ee.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):kb(e,[t],r,n,a);throw new TypeError("val must be string, number or Buffer")}function kb(e,t,r,n,a){var o,l=1,p=e.length,d=t.length;if(n!==void 0&&((n=String(n).toLowerCase())==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||t.length<2)return-1;l=2,p/=2,d/=2,r/=2}function m(v,w){return l===1?v[w]:v.readUInt16BE(w*l)}if(a){var y=-1;for(o=r;op&&(r=p-d),o=r;o>=0;o--){for(var D=!0,b=0;ba&&(n=a):n=a;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var l=0;l>8,d=l%256,m.push(d),m.push(p);return m}(t,e.length-r),e,r,n)}function J4(e,t,r){return t===0&&r===e.length?vb(e):vb(e.slice(t,r))}function Nb(e,t,r){r=Math.min(e.length,r);for(var n=[],a=t;a239?4:m>223?3:m>191?2:1;if(a+D<=r)switch(D){case 1:m<128&&(y=m);break;case 2:(192&(o=e[a+1]))==128&&(d=(31&m)<<6|63&o)>127&&(y=d);break;case 3:o=e[a+1],l=e[a+2],(192&o)==128&&(192&l)==128&&(d=(15&m)<<12|(63&o)<<6|63&l)>2047&&(d<55296||d>57343)&&(y=d);break;case 4:o=e[a+1],l=e[a+2],p=e[a+3],(192&o)==128&&(192&l)==128&&(192&p)==128&&(d=(15&m)<<18|(63&o)<<12|(63&l)<<6|63&p)>65535&&d<1114112&&(y=d)}y===null?(y=65533,D=1):y>65535&&(y-=65536,n.push(y>>>10&1023|55296),y=56320|1023&y),n.push(y),a+=D}return function(b){var v=b.length;if(v<=Ib)return String.fromCharCode.apply(String,b);for(var w="",S=0;S0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},ee.prototype.compare=function(e,t,r,n,a){if(!kn(e))throw new TypeError("Argument must be a Buffer");if(t===void 0&&(t=0),r===void 0&&(r=e?e.length:0),n===void 0&&(n=0),a===void 0&&(a=this.length),t<0||r>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&t>=r)return 0;if(n>=a)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(a>>>=0)-(n>>>=0),l=(r>>>=0)-(t>>>=0),p=Math.min(o,l),d=this.slice(n,a),m=e.slice(t,r),y=0;ya)&&(r=a),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return U4(this,e,t,r);case"utf8":case"utf-8":return W4(this,e,t,r);case"ascii":return _b(this,e,t,r);case"latin1":case"binary":return z4(this,e,t,r);case"base64":return $4(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H4(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},ee.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Ib=4096;function Y4(e,t,r){var n="";r=Math.min(e.length,r);for(var a=t;an)&&(r=n);for(var a="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function gr(e,t,r,n,a,o){if(!kn(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function Oc(e,t,r,n){t<0&&(t=65535+t+1);for(var a=0,o=Math.min(e.length-r,2);a>>8*(n?a:1-a)}function Lc(e,t,r,n){t<0&&(t=4294967295+t+1);for(var a=0,o=Math.min(e.length-r,4);a>>8*(n?a:3-a)&255}function Pb(e,t,r,n,a,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ob(e,t,r,n,a){return a||Pb(e,0,r,4),xb(e,t,r,n,23,4),r+4}function Lb(e,t,r,n,a){return a||Pb(e,0,r,8),xb(e,t,r,n,52,8),r+8}ee.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===void 0?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t0&&(a*=256);)n+=this[e+--t]*a;return n},ee.prototype.readUInt8=function(e,t){return t||Ft(e,1,this.length),this[e]},ee.prototype.readUInt16LE=function(e,t){return t||Ft(e,2,this.length),this[e]|this[e+1]<<8},ee.prototype.readUInt16BE=function(e,t){return t||Ft(e,2,this.length),this[e]<<8|this[e+1]},ee.prototype.readUInt32LE=function(e,t){return t||Ft(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},ee.prototype.readUInt32BE=function(e,t){return t||Ft(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},ee.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||Ft(e,t,this.length);for(var n=this[e],a=1,o=0;++o=(a*=128)&&(n-=Math.pow(2,8*t)),n},ee.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||Ft(e,t,this.length);for(var n=t,a=1,o=this[e+--n];n>0&&(a*=256);)o+=this[e+--n]*a;return o>=(a*=128)&&(o-=Math.pow(2,8*t)),o},ee.prototype.readInt8=function(e,t){return t||Ft(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},ee.prototype.readInt16LE=function(e,t){t||Ft(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},ee.prototype.readInt16BE=function(e,t){t||Ft(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},ee.prototype.readInt32LE=function(e,t){return t||Ft(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},ee.prototype.readInt32BE=function(e,t){return t||Ft(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},ee.prototype.readFloatLE=function(e,t){return t||Ft(e,4,this.length),Pc(this,e,!0,23,4)},ee.prototype.readFloatBE=function(e,t){return t||Ft(e,4,this.length),Pc(this,e,!1,23,4)},ee.prototype.readDoubleLE=function(e,t){return t||Ft(e,8,this.length),Pc(this,e,!0,52,8)},ee.prototype.readDoubleBE=function(e,t){return t||Ft(e,8,this.length),Pc(this,e,!1,52,8)},ee.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||gr(this,e,t,r,Math.pow(2,8*r)-1,0);var a=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+a]=e/o&255;return t+r},ee.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,1,255,0),ee.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},ee.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,2,65535,0),ee.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Oc(this,e,t,!0),t+2},ee.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,2,65535,0),ee.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Oc(this,e,t,!1),t+2},ee.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,4,4294967295,0),ee.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Lc(this,e,t,!0),t+4},ee.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,4,4294967295,0),ee.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Lc(this,e,t,!1),t+4},ee.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*r-1);gr(this,e,t,r,a-1,-a)}var o=0,l=1,p=0;for(this[t]=255&e;++o>0)-p&255;return t+r},ee.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var a=Math.pow(2,8*r-1);gr(this,e,t,r,a-1,-a)}var o=r-1,l=1,p=0;for(this[t+o]=255&e;--o>=0&&(l*=256);)e<0&&p===0&&this[t+o+1]!==0&&(p=1),this[t+o]=(e/l>>0)-p&255;return t+r},ee.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,1,127,-128),ee.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},ee.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,2,32767,-32768),ee.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):Oc(this,e,t,!0),t+2},ee.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,2,32767,-32768),ee.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):Oc(this,e,t,!1),t+2},ee.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,4,2147483647,-2147483648),ee.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Lc(this,e,t,!0),t+4},ee.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||gr(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),ee.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Lc(this,e,t,!1),t+4},ee.prototype.writeFloatLE=function(e,t,r){return Ob(this,e,t,!0,r)},ee.prototype.writeFloatBE=function(e,t,r){return Ob(this,e,t,!1,r)},ee.prototype.writeDoubleLE=function(e,t,r){return Lb(this,e,t,!0,r)},ee.prototype.writeDoubleBE=function(e,t,r){return Lb(this,e,t,!1,r)},ee.prototype.copy=function(e,t,r,n){if(r||(r=0),n||n===0||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--a)e[a+t]=this[a+r];else if(o<1e3||!ee.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,r=r===void 0?this.length:r>>>0,e||(e=0),typeof e=="number")for(o=t;o55295&&r<57344){if(!a){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(l+1===n){(t-=3)>-1&&o.push(239,191,189);continue}a=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),a=r;continue}r=65536+(a-55296<<10|r-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Mb(e){return function(t){var r,n,a,o,l,p;ih||Ab();var d=t.length;if(d%4>0)throw new Error("Invalid string. Length must be a multiple of 4");l=t[d-2]==="="?2:t[d-1]==="="?1:0,p=new R4(3*d/4-l),a=l>0?d-4:d;var m=0;for(r=0,n=0;r>16&255,p[m++]=o>>8&255,p[m++]=255&o;return l===2?(o=Rr[t.charCodeAt(r)]<<2|Rr[t.charCodeAt(r+1)]>>4,p[m++]=255&o):l===1&&(o=Rr[t.charCodeAt(r)]<<10|Rr[t.charCodeAt(r+1)]<<4|Rr[t.charCodeAt(r+2)]>>2,p[m++]=o>>8&255,p[m++]=255&o),p}(function(t){if((t=function(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}(t).replace(Z4,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(e))}function jc(e,t,r,n){for(var a=0;a=t.length||a>=e.length);++a)t[a+r]=e[a];return a}function Qs(e){return e!=null&&(!!e._isBuffer||jb(e)||function(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&jb(t.slice(0,0))}(e))}function jb(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}let ch=mb;var tI=class{constructor(e,t){(t=t||{}).readChunk||(t.readChunk=1024),t.newLineCharacter?t.newLineCharacter=t.newLineCharacter.charCodeAt(0):t.newLineCharacter=10,this.fd=typeof e=="number"?e:ch.openSync(e,"r"),this.options=t,this.newLineCharacter=t.newLineCharacter,this.reset()}_searchInBuffer(e,t){let r=-1;for(let n=0;n<=e.length;n++)if(e[n]===t){r=n;break}return r}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){ch.closeSync(this.fd),this.fd=null}_extractLines(e){let t,r=[],n=0,a=0;for(;;){let l=e[n++];if(l===this.newLineCharacter)t=e.slice(a,n),r.push(t),a=n;else if(l===void 0)break}let o=e.slice(a,n);return o.length&&r.push(o),r}_readChunk(e){let t,r=0,n=[];do{let o=new ee(this.options.readChunk);t=ch.readSync(this.fd,o,0,this.options.readChunk,this.fdPosition),r+=t,this.fdPosition=this.fdPosition+t,n.push(o)}while(t&&this._searchInBuffer(n[n.length-1],this.options.newLineCharacter)===-1);let a=ee.concat(n);return t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qb(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),l=[];try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)l.push(n.value)}catch(p){a={error:p}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return l}function Au(e){return this instanceof Au?(this.v=e,this):new Au(e)}var hi=Object.freeze({__proto__:null,__extends:function(e,t){function r(){this.constructor=e}lh(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)},get __assign(){return ph},__rest:function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var a=0;for(n=Object.getOwnPropertySymbols(e);a=0;p--)(a=e[p])&&(l=(o<3?a(l):o>3?a(t,r,l):a(t,r))||l);return o>3&&l&&Object.defineProperty(t,r,l),l},__param:function(e,t){return function(r,n){t(r,n,e)}},__metadata:function(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)},__awaiter:function(e,t,r,n){return new(r||(r=Promise))(function(a,o){function l(m){try{d(n.next(m))}catch(y){o(y)}}function p(m){try{d(n.throw(m))}catch(y){o(y)}}function d(m){var y;m.done?a(m.value):(y=m.value,y instanceof r?y:new r(function(D){D(y)})).then(l,p)}d((n=n.apply(e,t||[])).next())})},__generator:function(e,t){var r,n,a,o,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:p(0),throw:p(1),return:p(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function p(d){return function(m){return function(y){if(r)throw new TypeError("Generator is already executing.");for(;l;)try{if(r=1,n&&(a=2&y[0]?n.return:y[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,y[1])).done)return a;switch(n=0,a&&(y=[2&y[0],a.value]),y[0]){case 0:case 1:a=y;break;case 4:return l.label++,{value:y[1],done:!1};case 5:l.label++,n=y[1],y=[0];continue;case 7:y=l.ops.pop(),l.trys.pop();continue;default:if(a=l.trys,!((a=a.length>0&&a[a.length-1])||y[0]!==6&&y[0]!==2)){l=0;continue}if(y[0]===3&&(!a||y[1]>a[0]&&y[1]1||p(D,b)})})}function p(D,b){try{(v=a[D](b)).value instanceof Au?Promise.resolve(v.value.v).then(d,m):y(o[0][2],v)}catch(w){y(o[0][3],w)}var v}function d(D){p("next",D)}function m(D){p("throw",D)}function y(D,b){D(b),o.shift(),o.length&&p(o[0][0],o[0][1])}},__asyncDelegator:function(e){var t,r;return t={},n("next"),n("throw",function(a){throw a}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(a,o){t[a]=e[a]?function(l){return(r=!r)?{value:Au(e[a](l)),done:a==="return"}:o?o(l):l}:o}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=Vb(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(a){t[a]=e[a]&&function(o){return new Promise(function(l,p){(function(d,m,y,D){Promise.resolve(D).then(function(b){d({value:b,done:y})},m)})(l,p,(o=e[a](o)).done,o.value)})}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}}),Gb={},fh={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.apiDescriptor={key:t=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?t:JSON.stringify(t),value(t){if(t===null||typeof t!="object")return JSON.stringify(t);if(Array.isArray(t))return"[".concat(t.map(n=>e.apiDescriptor.value(n)).join(", "),"]");let r=Object.keys(t);return r.length===0?"{}":"{ ".concat(r.map(n=>"".concat(e.apiDescriptor.key(n),": ").concat(e.apiDescriptor.value(t[n]))).join(", ")," }")},pair:t=>{let{key:r,value:n}=t;return e.apiDescriptor.value({[r]:n})}}})(fh),function(e){Object.defineProperty(e,"__esModule",{value:!0}),hi.__exportStar(fh,e)}(Gb);var Ub={},Wb={},Rc={},Vc={exports:{}},aI=/[|\\{}()[\]^$+*?.]/g,uI=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(aI,"\\$&")},hh={exports:{}},dh={exports:{}},Hi={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]},zb={};for(var mh in Hi)Hi.hasOwnProperty(mh)&&(zb[Hi[mh]]=mh);var Ce=dh.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var yr in Ce)if(Ce.hasOwnProperty(yr)){if(!("channels"in Ce[yr]))throw new Error("missing channels property: "+yr);if(!("labels"in Ce[yr]))throw new Error("missing channel labels property: "+yr);if(Ce[yr].labels.length!==Ce[yr].channels)throw new Error("channel and label counts mismatch: "+yr);var oI=Ce[yr].channels,cI=Ce[yr].labels;delete Ce[yr].channels,delete Ce[yr].labels,Object.defineProperty(Ce[yr],"channels",{value:oI}),Object.defineProperty(Ce[yr],"labels",{value:cI})}Ce.rgb.hsl=function(e){var t,r,n=e[0]/255,a=e[1]/255,o=e[2]/255,l=Math.min(n,a,o),p=Math.max(n,a,o),d=p-l;return p===l?t=0:n===p?t=(a-o)/d:a===p?t=2+(o-n)/d:o===p&&(t=4+(n-a)/d),(t=Math.min(60*t,360))<0&&(t+=360),r=(l+p)/2,[t,100*(p===l?0:r<=.5?d/(p+l):d/(2-p-l)),100*r]},Ce.rgb.hsv=function(e){var t,r,n,a,o,l=e[0]/255,p=e[1]/255,d=e[2]/255,m=Math.max(l,p,d),y=m-Math.min(l,p,d),D=function(b){return(m-b)/6/y+.5};return y===0?a=o=0:(o=y/m,t=D(l),r=D(p),n=D(d),l===m?a=n-r:p===m?a=1/3+t-n:d===m&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*m]},Ce.rgb.hwb=function(e){var t=e[0],r=e[1],n=e[2];return[Ce.rgb.hsl(e)[0],100*(1/255*Math.min(t,Math.min(r,n))),100*(n=1-1/255*Math.max(t,Math.max(r,n)))]},Ce.rgb.cmyk=function(e){var t,r=e[0]/255,n=e[1]/255,a=e[2]/255;return[100*((1-r-(t=Math.min(1-r,1-n,1-a)))/(1-t)||0),100*((1-n-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]},Ce.rgb.keyword=function(e){var t=zb[e];if(t)return t;var r,n,a,o=1/0;for(var l in Hi)if(Hi.hasOwnProperty(l)){var p=Hi[l],d=(n=e,a=p,Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2)+Math.pow(n[2]-a[2],2));d.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},Ce.rgb.lab=function(e){var t=Ce.rgb.xyz(e),r=t[0],n=t[1],a=t[2];return n/=100,a/=108.883,r=(r/=95.047)>.008856?Math.pow(r,1/3):7.787*r+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(r-n),200*(n-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},Ce.hsl.rgb=function(e){var t,r,n,a,o,l=e[0]/360,p=e[1]/100,d=e[2]/100;if(p===0)return[o=255*d,o,o];t=2*d-(r=d<.5?d*(1+p):d+p-d*p),a=[0,0,0];for(var m=0;m<3;m++)(n=l+1/3*-(m-1))<0&&n++,n>1&&n--,o=6*n<1?t+6*(r-t)*n:2*n<1?r:3*n<2?t+(r-t)*(2/3-n)*6:t,a[m]=255*o;return a},Ce.hsl.hsv=function(e){var t=e[0],r=e[1]/100,n=e[2]/100,a=r,o=Math.max(n,.01);return r*=(n*=2)<=1?n:2-n,a*=o<=1?o:2-o,[t,100*(n===0?2*a/(o+a):2*r/(n+r)),100*((n+r)/2)]},Ce.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,n=e[2]/100,a=Math.floor(t)%6,o=t-Math.floor(t),l=255*n*(1-r),p=255*n*(1-r*o),d=255*n*(1-r*(1-o));switch(n*=255,a){case 0:return[n,d,l];case 1:return[p,n,l];case 2:return[l,n,d];case 3:return[l,p,n];case 4:return[d,l,n];case 5:return[n,l,p]}},Ce.hsv.hsl=function(e){var t,r,n,a=e[0],o=e[1]/100,l=e[2]/100,p=Math.max(l,.01);return n=(2-o)*l,r=o*p,[a,100*(r=(r/=(t=(2-o)*p)<=1?t:2-t)||0),100*(n/=2)]},Ce.hwb.rgb=function(e){var t,r,n,a,o,l,p,d=e[0]/360,m=e[1]/100,y=e[2]/100,D=m+y;switch(D>1&&(m/=D,y/=D),n=6*d-(t=Math.floor(6*d)),(1&t)!=0&&(n=1-n),a=m+n*((r=1-y)-m),t){default:case 6:case 0:o=r,l=a,p=m;break;case 1:o=a,l=r,p=m;break;case 2:o=m,l=r,p=a;break;case 3:o=m,l=a,p=r;break;case 4:o=a,l=m,p=r;break;case 5:o=r,l=m,p=a}return[255*o,255*l,255*p]},Ce.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},Ce.xyz.rgb=function(e){var t,r,n,a=e[0]/100,o=e[1]/100,l=e[2]/100;return r=-.9689*a+1.8758*o+.0415*l,n=.0557*a+-.204*o+1.057*l,t=(t=3.2406*a+-1.5372*o+-.4986*l)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,[255*(t=Math.min(Math.max(0,t),1)),255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1))]},Ce.xyz.lab=function(e){var t=e[0],r=e[1],n=e[2];return r/=100,n/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(t-r),200*(r-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]},Ce.lab.xyz=function(e){var t,r,n,a=e[0];t=e[1]/500+(r=(a+16)/116),n=r-e[2]/200;var o=Math.pow(r,3),l=Math.pow(t,3),p=Math.pow(n,3);return r=o>.008856?o:(r-16/116)/7.787,t=l>.008856?l:(t-16/116)/7.787,n=p>.008856?p:(n-16/116)/7.787,[t*=95.047,r*=100,n*=108.883]},Ce.lab.lch=function(e){var t,r=e[0],n=e[1],a=e[2];return(t=360*Math.atan2(a,n)/2/Math.PI)<0&&(t+=360),[r,Math.sqrt(n*n+a*a),t]},Ce.lch.lab=function(e){var t,r=e[0],n=e[1];return t=e[2]/360*2*Math.PI,[r,n*Math.cos(t),n*Math.sin(t)]},Ce.rgb.ansi16=function(e){var t=e[0],r=e[1],n=e[2],a=1 in arguments?arguments[1]:Ce.rgb.hsv(e)[2];if((a=Math.round(a/50))===0)return 30;var o=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return a===2&&(o+=60),o},Ce.hsv.ansi16=function(e){return Ce.rgb.ansi16(Ce.hsv.rgb(e),e[2])},Ce.rgb.ansi256=function(e){var t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},Ce.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},Ce.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var r;return e-=16,[Math.floor(e/36)/5*255,Math.floor((r=e%36)/6)/5*255,r%6/5*255]},Ce.rgb.hex=function(e){var 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},Ce.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(a){return a+a}).join(""));var n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},Ce.rgb.hcg=function(e){var t,r=e[0]/255,n=e[1]/255,a=e[2]/255,o=Math.max(Math.max(r,n),a),l=Math.min(Math.min(r,n),a),p=o-l;return t=p<=0?0:o===r?(n-a)/p%6:o===n?2+(a-r)/p:4+(r-n)/p+4,t/=6,[360*(t%=1),100*p,100*(p<1?l/(1-p):0)]},Ce.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=1,a=0;return(n=r<.5?2*t*r:2*t*(1-r))<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]},Ce.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,n=t*r,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},Ce.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[255*n,255*n,255*n];var a,o=[0,0,0],l=t%1*6,p=l%1,d=1-p;switch(Math.floor(l)){case 0:o[0]=1,o[1]=p,o[2]=0;break;case 1:o[0]=d,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=p;break;case 3:o[0]=0,o[1]=d,o[2]=1;break;case 4:o[0]=p,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=d}return a=(1-r)*n,[255*(r*o[0]+a),255*(r*o[1]+a),255*(r*o[2]+a)]},Ce.hcg.hsv=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},Ce.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100*(1-t)+.5*t,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]},Ce.hcg.hwb=function(e){var t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},Ce.hwb.hcg=function(e){var t=e[1]/100,r=1-e[2]/100,n=r-t,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},Ce.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Ce.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Ce.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Ce.gray.hsl=Ce.gray.hsv=function(e){return[0,0,e[0]]},Ce.gray.hwb=function(e){return[0,100,e[0]]},Ce.gray.cmyk=function(e){return[0,0,0,e[0]]},Ce.gray.lab=function(e){return[e[0],0,0]},Ce.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},Ce.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};var qc=dh.exports;function lI(e){var t=function(){for(var m={},y=Object.keys(qc),D=y.length,b=0;b1&&(l=Array.prototype.slice.call(arguments));var p=a(l);if(typeof p=="object")for(var d=p.length,m=0;m1&&(l=Array.prototype.slice.call(arguments)),a(l))};return"conversion"in a&&(o.conversion=a.conversion),o}(n)})});var Gc,dI=Zs;function $b(){if(Gc===void 0){var e=new ArrayBuffer(2),t=new Uint8Array(e),r=new Uint16Array(e);if(t[0]=1,t[1]=2,r[0]===258)Gc="BE";else{if(r[0]!==513)throw new Error("unable to figure out endianess");Gc="LE"}}return Gc}function Hb(){return jr.location!==void 0?jr.location.hostname:""}function Jb(){return[]}function Yb(){return 0}function Xb(){return Number.MAX_VALUE}function Kb(){return Number.MAX_VALUE}function Qb(){return[]}function Zb(){return"Browser"}function eC(){return jr.navigator!==void 0?jr.navigator.appVersion:""}function tC(){}function rC(){}function nC(){return"javascript"}function iC(){return"browser"}function yh(){return"/tmp"}(function(e){let t=dI,r=(o,l)=>function(){let p=o.apply(t,arguments);return"\x1B[".concat(p+l,"m")},n=(o,l)=>function(){let p=o.apply(t,arguments);return"\x1B[".concat(38+l,";5;").concat(p,"m")},a=(o,l)=>function(){let p=o.apply(t,arguments);return"\x1B[".concat(38+l,";2;").concat(p[0],";").concat(p[1],";").concat(p[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){let o=new Map,l={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};l.color.grey=l.color.gray;for(let m of Object.keys(l)){let y=l[m];for(let D of Object.keys(y)){let b=y[D];l[D]={open:"\x1B[".concat(b[0],"m"),close:"\x1B[".concat(b[1],"m")},y[D]=l[D],o.set(b[0],b[1])}Object.defineProperty(l,m,{value:y,enumerable:!1}),Object.defineProperty(l,"codes",{value:o,enumerable:!1})}let p=m=>m,d=(m,y,D)=>[m,y,D];l.color.close="\x1B[39m",l.bgColor.close="\x1B[49m",l.color.ansi={ansi:r(p,0)},l.color.ansi256={ansi256:n(p,0)},l.color.ansi16m={rgb:a(d,0)},l.bgColor.ansi={ansi:r(p,10)},l.bgColor.ansi256={ansi256:n(p,10)},l.bgColor.ansi16m={rgb:a(d,10)};for(let m of Object.keys(t)){if(typeof t[m]!="object")continue;let y=t[m];m==="ansi16"&&(m="ansi"),"ansi16"in y&&(l.color.ansi[m]=r(y.ansi16,0),l.bgColor.ansi[m]=r(y.ansi16,10)),"ansi256"in y&&(l.color.ansi256[m]=n(y.ansi256,0),l.bgColor.ansi256[m]=n(y.ansi256,10)),"rgb"in y&&(l.color.ansi16m[m]=a(y.rgb,0),l.bgColor.ansi16m[m]=a(y.rgb,10))}return l}})})(hh);var sC=yh,mI={EOL:`
+`,arch:nC,platform:iC,tmpdir:sC,tmpDir:yh,networkInterfaces:tC,getNetworkInterfaces:rC,release:eC,type:Zb,cpus:Qb,totalmem:Kb,freemem:Xb,uptime:Yb,loadavg:Jb,hostname:Hb,endianness:$b},Uc=s(Object.freeze({__proto__:null,endianness:$b,hostname:Hb,loadavg:Jb,uptime:Yb,freemem:Xb,totalmem:Kb,cpus:Qb,type:Zb,release:eC,networkInterfaces:tC,getNetworkInterfaces:rC,arch:nC,platform:iC,tmpDir:yh,tmpdir:sC,EOL:`
+`,default:mI}));let gI=Uc,fn=(e,t)=>{t=t||et.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),a=t.indexOf("--");return n!==-1&&(a===-1||n=8&&Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in Wt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(a=>a in Wt)||Wt.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in Wt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Wt.TEAMCITY_VERSION)?1:0;if(Wt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Wt){let a=parseInt((Wt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Wt.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Wt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Wt.TERM)||"COLORTERM"in Wt?1:(Wt.TERM,n)}(e);return function(r){return r!==0&&{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}(t)}fn("no-color")||fn("no-colors")||fn("color=false")?ea=!1:(fn("color")||fn("colors")||fn("color=true")||fn("color=always"))&&(ea=!0),"FORCE_COLOR"in Wt&&(ea=Wt.FORCE_COLOR.length===0||parseInt(Wt.FORCE_COLOR,10)!==0);var yI={supportsColor:Dh,stdout:Dh(et.stdout),stderr:Dh(et.stderr)};let DI=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,aC=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,EI=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,bI=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,CI=new Map([["n",`
+`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function uC(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):CI.get(e)||e}function AI(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),a;for(let o of n)if(isNaN(o)){if(!(a=o.match(EI)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(e,"')"));r.push(a[2].replace(bI,(l,p,d)=>p?uC(p):d))}else r.push(Number(o));return r}function vI(e){aC.lastIndex=0;let t=[],r;for(;(r=aC.exec(e))!==null;){let n=r[1];if(r[2]){let a=AI(n,r[2]);t.push([n].concat(a))}else t.push([n])}return t}function oC(e,t){let r={};for(let a of t)for(let o of a.styles)r[o[0]]=a.inverse?null:o.slice(1);let n=e;for(let a of Object.keys(r))if(Array.isArray(r[a])){if(!(a in n))throw new Error("Unknown Chalk style: ".concat(a));n=r[a].length>0?n[a].apply(n,r[a]):n[a]}return n}var xI=(e,t)=>{let r=[],n=[],a=[];if(t.replace(DI,(o,l,p,d,m,y)=>{if(l)a.push(uC(l));else if(d){let D=a.join("");a=[],n.push(r.length===0?D:oC(e,r)(D)),r.push({inverse:p,styles:vI(d)})}else if(m){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(oC(e,r)(a.join(""))),a=[],r.pop()}else a.push(y)}),n.push(a.join("")),r.length>0){let o="Chalk template literal is missing ".concat(r.length," closing bracket").concat(r.length===1?"":"s"," (`}`)");throw new Error(o)}return n.join("")};(function(e){let t=uI,r=hh.exports,n=yI.stdout,a=xI,o=et.platform==="win32"&&!(et.env.TERM||"").toLowerCase().startsWith("xterm"),l=["ansi","ansi","ansi256","ansi16m"],p=new Set(["gray"]),d=Object.create(null);function m(S,k){k=k||{};let P=n?n.level:0;S.level=k.level===void 0?P:k.level,S.enabled="enabled"in k?k.enabled:S.level>0}function y(S){if(!this||!(this instanceof y)||this.template){let k={};return m(k,S),k.template=function(){let P=[].slice.call(arguments);return w.apply(null,[k.template].concat(P))},Object.setPrototypeOf(k,y.prototype),Object.setPrototypeOf(k.template,k),k.template.constructor=y,k.template}m(this,S)}o&&(r.blue.open="\x1B[94m");for(let S of Object.keys(r))r[S].closeRe=new RegExp(t(r[S].close),"g"),d[S]={get(){let k=r[S];return b.call(this,this._styles?this._styles.concat(k):[k],this._empty,S)}};d.visible={get(){return b.call(this,this._styles||[],!0,"visible")}},r.color.closeRe=new RegExp(t(r.color.close),"g");for(let S of Object.keys(r.color.ansi))p.has(S)||(d[S]={get(){let k=this.level;return function(){let P=r.color[l[k]][S].apply(null,arguments),_={open:P,close:r.color.close,closeRe:r.color.closeRe};return b.call(this,this._styles?this._styles.concat(_):[_],this._empty,S)}}});r.bgColor.closeRe=new RegExp(t(r.bgColor.close),"g");for(let S of Object.keys(r.bgColor.ansi))p.has(S)||(d["bg"+S[0].toUpperCase()+S.slice(1)]={get(){let k=this.level;return function(){let P=r.bgColor[l[k]][S].apply(null,arguments),_={open:P,close:r.bgColor.close,closeRe:r.bgColor.closeRe};return b.call(this,this._styles?this._styles.concat(_):[_],this._empty,S)}}});let D=Object.defineProperties(()=>{},d);function b(S,k,P){let _=function(){return v.apply(_,arguments)};_._styles=S,_._empty=k;let M=this;return Object.defineProperty(_,"level",{enumerable:!0,get:()=>M.level,set(U){M.level=U}}),Object.defineProperty(_,"enabled",{enumerable:!0,get:()=>M.enabled,set(U){M.enabled=U}}),_.hasGrey=this.hasGrey||P==="gray"||P==="grey",_.__proto__=D,_}function v(){let S=arguments,k=S.length,P=String(arguments[0]);if(k===0)return"";if(k>1)for(let M=1;M{let{descriptor:n}=r,a=["".concat(cC.default.yellow(typeof e=="string"?n.key(e):n.pair(e))," is deprecated")];return t&&a.push("we now treat it as ".concat(cC.default.blue(typeof t=="string"?n.key(t):n.pair(t)))),a.join("; ")+"."},function(e){Object.defineProperty(e,"__esModule",{value:!0}),hi.__exportStar(Rc,e)}(Wb);var Eh={},bh={};Object.defineProperty(bh,"__esModule",{value:!0});let Ch=Vc.exports;bh.commonInvalidHandler=(e,t,r)=>["Invalid ".concat(Ch.default.red(r.descriptor.key(e))," value."),"Expected ".concat(Ch.default.blue(r.schemas[e].expected(r)),","),"but received ".concat(Ch.default.red(r.descriptor.value(t)),".")].join(" "),function(e){Object.defineProperty(e,"__esModule",{value:!0}),hi.__exportStar(bh,e)}(Eh);var lC={},Wc={},Ah=[],pC=[];Object.defineProperty(Wc,"__esModule",{value:!0});let fC=Vc.exports,SI=function(e,t){if(e===t)return 0;var r=e;e.length>t.length&&(e=t,t=r);var n=e.length,a=t.length;if(n===0)return a;if(a===0)return n;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-a);)n--,a--;if(n===0)return a;for(var o,l,p,d,m=0;ml?d>l?l+1:d:d>p?p+1:d;return l};Wc.levenUnknownHandler=(e,t,r)=>{let{descriptor:n,logger:a,schemas:o}=r,l=["Ignored unknown option ".concat(fC.default.yellow(n.pair({key:e,value:t})),".")],p=Object.keys(o).sort().find(d=>SI(e,d)<3);p&&l.push("Did you mean ".concat(fC.default.blue(n.key(p)),"?")),a.warn(l.join(" "))},function(e){Object.defineProperty(e,"__esModule",{value:!0}),hi.__exportStar(Wc,e)}(lC),function(e){Object.defineProperty(e,"__esModule",{value:!0});let t=hi;t.__exportStar(Wb,e),t.__exportStar(Eh,e),t.__exportStar(lC,e)}(Ub);var hC={},vh={},hn={};Object.defineProperty(hn,"__esModule",{value:!0});let FI=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function dC(e,t){let r=new e(t),n=Object.create(r);for(let a of FI)a in t&&(n[a]=wI(t[a],r,mC.prototype[a].length));return n}hn.createSchema=dC;class mC{constructor(t){this.name=t.name}static create(t){return dC(this,t)}default(t){}expected(t){return"nothing"}validate(t,r){return!1}deprecated(t,r){return!1}forward(t,r){}redirect(t,r){}overlap(t,r,n){return t}preprocess(t,r){return t}postprocess(t,r){return t}}function wI(e,t,r){return typeof e=="function"?function(){for(var n=arguments.length,a=new Array(n),o=0;oe}hn.Schema=mC,Object.defineProperty(vh,"__esModule",{value:!0});let BI=hn;class TI extends BI.Schema{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,r){return r.schemas[this._sourceName].validate(t,r)}redirect(t,r){return this._sourceName}}vh.AliasSchema=TI;var xh={};Object.defineProperty(xh,"__esModule",{value:!0});let kI=hn;class _I extends kI.Schema{expected(){return"anything"}validate(){return!0}}xh.AnySchema=_I;var Sh={};Object.defineProperty(Sh,"__esModule",{value:!0});let NI=hi,II=hn;class PI extends II.Schema{constructor(t){var{valueSchema:r,name:n=r.name}=t,a=NI.__rest(t,["valueSchema","name"]);super(Object.assign({},a,{name:n})),this._valueSchema=r}expected(t){return"an array of ".concat(this._valueSchema.expected(t))}validate(t,r){if(!Array.isArray(t))return!1;let n=[];for(let a of t){let o=r.normalizeValidateResult(this._valueSchema.validate(a,r),a);o!==!0&&n.push(o.value)}return n.length===0||{value:n}}deprecated(t,r){let n=[];for(let a of t){let o=r.normalizeDeprecatedResult(this._valueSchema.deprecated(a,r),a);o!==!1&&n.push(...o.map(l=>{let{value:p}=l;return{value:[p]}}))}return n}forward(t,r){let n=[];for(let a of t){let o=r.normalizeForwardResult(this._valueSchema.forward(a,r),a);n.push(...o.map(gC))}return n}redirect(t,r){let n=[],a=[];for(let o of t){let l=r.normalizeRedirectResult(this._valueSchema.redirect(o,r),o);"remain"in l&&n.push(l.remain),a.push(...l.redirect.map(gC))}return n.length===0?{redirect:a}:{redirect:a,remain:n}}overlap(t,r){return t.concat(r)}}function gC(e){let{from:t,to:r}=e;return{from:[t],to:r}}Sh.ArraySchema=PI;var Fh={};Object.defineProperty(Fh,"__esModule",{value:!0});let OI=hn;class LI extends OI.Schema{expected(){return"true or false"}validate(t){return typeof t=="boolean"}}Fh.BooleanSchema=LI;var wh={},zt={};function Bh(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function yC(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>Bh(r,t)):[Bh(e,t)]}Object.defineProperty(zt,"__esModule",{value:!0}),zt.recordFromArray=function(e,t){let r=Object.create(null);for(let n of e){let a=n[t];if(r[a])throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(a)));r[a]=n}return r},zt.mapFromArray=function(e,t){let r=new Map;for(let n of e){let a=n[t];if(r.has(a))throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(a)));r.set(a,n)}return r},zt.createAutoChecklist=function(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return!!e[r]||(e[r]=!0,!1)}},zt.partition=function(e,t){let r=[],n=[];for(let a of e)t(a)?r.push(a):n.push(a);return[r,n]},zt.isInt=function(e){return e===Math.floor(e)},zt.comparePrimitive=function(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,a=["undefined","object","boolean","number","string"];return r!==n?a.indexOf(r)-a.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)},zt.normalizeDefaultResult=function(e){return e===void 0?{}:e},zt.normalizeValidateResult=function(e,t){return e===!0||(e===!1?{value:t}:e)},zt.normalizeDeprecatedResult=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return e!==!1&&(e===!0?!!r||[{value:t}]:"value"in e?[e]:e.length!==0&&e)},zt.normalizeTransferResult=Bh,zt.normalizeForwardResult=yC,zt.normalizeRedirectResult=function(e,t){let r=yC(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}},Object.defineProperty(wh,"__esModule",{value:!0});let MI=hn,DC=zt;class jI extends MI.Schema{constructor(t){super(t),this._choices=DC.mapFromArray(t.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected(t){let{descriptor:r}=t,n=Array.from(this._choices.keys()).map(l=>this._choices.get(l)).filter(l=>!l.deprecated).map(l=>l.value).sort(DC.comparePrimitive).map(r.value),a=n.slice(0,-2),o=n.slice(-2);return a.concat(o.join(" or ")).join(", ")}validate(t){return this._choices.has(t)}deprecated(t){let r=this._choices.get(t);return!(!r||!r.deprecated)&&{value:t}}forward(t){let r=this._choices.get(t);return r?r.forward:void 0}redirect(t){let r=this._choices.get(t);return r?r.redirect:void 0}}wh.ChoiceSchema=jI;var Th={},zc={};Object.defineProperty(zc,"__esModule",{value:!0});let RI=hn;class VI extends RI.Schema{expected(){return"a number"}validate(t,r){return typeof t=="number"}}zc.NumberSchema=VI,Object.defineProperty(Th,"__esModule",{value:!0});let qI=zt,GI=zc;class UI extends GI.NumberSchema{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&qI.isInt(t)}}Th.IntegerSchema=UI;var kh={};Object.defineProperty(kh,"__esModule",{value:!0});let WI=hn;class zI extends WI.Schema{expected(){return"a string"}validate(t){return typeof t=="string"}}kh.StringSchema=zI,function(e){Object.defineProperty(e,"__esModule",{value:!0});let t=hi;t.__exportStar(vh,e),t.__exportStar(xh,e),t.__exportStar(Sh,e),t.__exportStar(Fh,e),t.__exportStar(wh,e),t.__exportStar(Th,e),t.__exportStar(zc,e),t.__exportStar(kh,e)}(hC);var $c={},ta={};Object.defineProperty(ta,"__esModule",{value:!0});let $I=fh,HI=Rc,JI=Eh,YI=Wc;ta.defaultDescriptor=$I.apiDescriptor,ta.defaultUnknownHandler=YI.levenUnknownHandler,ta.defaultInvalidHandler=JI.commonInvalidHandler,ta.defaultDeprecatedHandler=HI.commonDeprecatedHandler,Object.defineProperty($c,"__esModule",{value:!0});let Hc=ta,Fr=zt;$c.normalize=(e,t,r)=>new EC(t,r).normalize(e);class EC{constructor(t,r){let{logger:n=console,descriptor:a=Hc.defaultDescriptor,unknown:o=Hc.defaultUnknownHandler,invalid:l=Hc.defaultInvalidHandler,deprecated:p=Hc.defaultDeprecatedHandler}=r||{};this._utils={descriptor:a,logger:n||{warn:()=>{}},schemas:Fr.recordFromArray(t,"name"),normalizeDefaultResult:Fr.normalizeDefaultResult,normalizeDeprecatedResult:Fr.normalizeDeprecatedResult,normalizeForwardResult:Fr.normalizeForwardResult,normalizeRedirectResult:Fr.normalizeRedirectResult,normalizeValidateResult:Fr.normalizeValidateResult},this._unknownHandler=o,this._invalidHandler=l,this._deprecatedHandler=p,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Fr.createAutoChecklist()}normalize(t){let r={},n=[t],a=()=>{for(;n.length!==0;){let o=n.shift(),l=this._applyNormalization(o,r);n.push(...l)}};a();for(let o of Object.keys(this._utils.schemas)){let l=this._utils.schemas[o];if(!(o in r)){let p=Fr.normalizeDefaultResult(l.default(this._utils));"value"in p&&n.push({[o]:p.value})}}a();for(let o of Object.keys(this._utils.schemas)){let l=this._utils.schemas[o];o in r&&(r[o]=l.postprocess(r[o],this._utils))}return r}_applyNormalization(t,r){let n=[],[a,o]=Fr.partition(Object.keys(t),l=>l in this._utils.schemas);for(let l of a){let p=this._utils.schemas[l],d=p.preprocess(t[l],this._utils),m=Fr.normalizeValidateResult(p.validate(d,this._utils),d);if(m!==!0){let{value:v}=m,w=this._invalidHandler(l,v,this._utils);throw typeof w=="string"?new Error(w):w}let y=v=>{let{from:w,to:S}=v;n.push(typeof S=="string"?{[S]:w}:{[S.key]:S.value})},D=v=>{let{value:w,redirectTo:S}=v,k=Fr.normalizeDeprecatedResult(p.deprecated(w,this._utils),d,!0);if(k!==!1)if(k===!0)this._hasDeprecationWarned(l)||this._utils.logger.warn(this._deprecatedHandler(l,S,this._utils));else for(let{value:P}of k){let _={key:l,value:P};if(!this._hasDeprecationWarned(_)){let M=typeof S=="string"?{key:S,value:P}:S;this._utils.logger.warn(this._deprecatedHandler(_,M,this._utils))}}};Fr.normalizeForwardResult(p.forward(d,this._utils),d).forEach(y);let b=Fr.normalizeRedirectResult(p.redirect(d,this._utils),d);if(b.redirect.forEach(y),"remain"in b){let v=b.remain;r[l]=l in r?p.overlap(r[l],v,this._utils):v,D({value:v})}for(let{from:v,to:w}of b.redirect)D({value:v,redirectTo:w})}for(let l of o){let p=t[l],d=this._unknownHandler(l,p,this._utils);if(d)for(let m of Object.keys(d)){let y={[m]:d[m]};m in this._utils.schemas?n.push(y):Object.assign(r,y)}}return n}}$c.Normalizer=EC,function(e){Object.defineProperty(e,"__esModule",{value:!0});let t=hi;t.__exportStar(Gb,e),t.__exportStar(Ub,e),t.__exportStar(hC,e),t.__exportStar($c,e),t.__exportStar(hn,e)}(Rb);var _h={exports:{}};let Nh=[],bC=[],CC=(e,t)=>{if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,a=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-a);)n--,a--;let o,l,p,d,m=0;for(;ml?d>l?l+1:d:d>p?p+1:d;return l};_h.exports=CC,_h.exports.default=CC;var AC={exports:{}};let vu={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]},vC={};for(let e of Object.keys(vu))vC[vu[e]]=e;let Ae={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"]}};var xC=Ae;for(let e of Object.keys(Ae)){if(!("channels"in Ae[e]))throw new Error("missing channels property: "+e);if(!("labels"in Ae[e]))throw new Error("missing channel labels property: "+e);if(Ae[e].labels.length!==Ae[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=Ae[e];delete Ae[e].channels,delete Ae[e].labels,Object.defineProperty(Ae[e],"channels",{value:t}),Object.defineProperty(Ae[e],"labels",{value:r})}Ae.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(t,r,n),o=Math.max(t,r,n),l=o-a,p,d;o===a?p=0:t===o?p=(r-n)/l:r===o?p=2+(n-t)/l:n===o&&(p=4+(t-r)/l),p=Math.min(60*p,360),p<0&&(p+=360);let m=(a+o)/2;return d=o===a?0:m<=.5?l/(o+a):l/(2-o-a),[p,100*d,100*m]},Ae.rgb.hsv=function(e){let t,r,n,a,o,l=e[0]/255,p=e[1]/255,d=e[2]/255,m=Math.max(l,p,d),y=m-Math.min(l,p,d),D=function(b){return(m-b)/6/y+.5};return y===0?(a=0,o=0):(o=y/m,t=D(l),r=D(p),n=D(d),l===m?a=n-r:p===m?a=1/3+t-n:d===m&&(a=2/3+r-t),a<0?a+=1:a>1&&(a-=1)),[360*a,100*o,100*m]},Ae.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],a=Ae.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)),[a,100*o,100*n]},Ae.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.min(1-t,1-r,1-n);return[100*((1-t-a)/(1-a)||0),100*((1-r-a)/(1-a)||0),100*((1-n-a)/(1-a)||0),100*a]},Ae.rgb.keyword=function(e){let t=vC[e];if(t)return t;let r,n=1/0;for(let l of Object.keys(vu)){let p=(o=vu[l],((a=e)[0]-o[0])**2+(a[1]-o[1])**2+(a[2]-o[2])**2);p.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,[100*(.4124*t+.3576*r+.1805*n),100*(.2126*t+.7152*r+.0722*n),100*(.0193*t+.1192*r+.9505*n)]},Ae.rgb.lab=function(e){let t=Ae.rgb.xyz(e),r=t[0],n=t[1],a=t[2];return r/=95.047,n/=100,a/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,[116*n-16,500*(r-n),200*(n-a)]},Ae.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,a,o,l;if(r===0)return l=255*n,[l,l,l];a=n<.5?n*(1+r):n+r-n*r;let p=2*n-a,d=[0,0,0];for(let m=0;m<3;m++)o=t+1/3*-(m-1),o<0&&o++,o>1&&o--,l=6*o<1?p+6*(a-p)*o:2*o<1?a:3*o<2?p+(a-p)*(2/3-o)*6:p,d[m]=255*l;return d},Ae.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,a=r,o=Math.max(n,.01);return n*=2,r*=n<=1?n:2-n,a*=o<=1?o:2-o,[t,100*(n===0?2*a/(o+a):2*r/(n+r)),100*((n+r)/2)]},Ae.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,a=Math.floor(t)%6,o=t-Math.floor(t),l=255*n*(1-r),p=255*n*(1-r*o),d=255*n*(1-r*(1-o));switch(n*=255,a){case 0:return[n,d,l];case 1:return[p,n,l];case 2:return[l,n,d];case 3:return[l,p,n];case 4:return[d,l,n];case 5:return[n,l,p]}},Ae.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,a=Math.max(n,.01),o,l;l=(2-r)*n;let p=(2-r)*a;return o=r*a,o/=p<=1?p:2-p,o=o||0,l/=2,[t,100*o,100*l]},Ae.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,a=r+n,o;a>1&&(r/=a,n/=a);let l=Math.floor(6*t),p=1-n;o=6*t-l,(1&l)!=0&&(o=1-o);let d=r+o*(p-r),m,y,D;switch(l){default:case 6:case 0:m=p,y=d,D=r;break;case 1:m=d,y=p,D=r;break;case 2:m=r,y=p,D=d;break;case 3:m=r,y=d,D=p;break;case 4:m=d,y=r,D=p;break;case 5:m=p,y=r,D=d}return[255*m,255*y,255*D]},Ae.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a))]},Ae.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,a,o,l;return a=3.2406*t+-1.5372*r+-.4986*n,o=-.9689*t+1.8758*r+.0415*n,l=.0557*t+-.204*r+1.057*n,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,l=l>.0031308?1.055*l**(1/2.4)-.055:12.92*l,a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),l=Math.min(Math.max(0,l),1),[255*a,255*o,255*l]},Ae.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];return t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,[116*r-16,500*(t-r),200*(r-n)]},Ae.lab.xyz=function(e){let t,r,n;r=(e[0]+16)/116,t=e[1]/500+r,n=r-e[2]/200;let a=r**3,o=t**3,l=n**3;return r=a>.008856?a:(r-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,n=l>.008856?l:(n-16/116)/7.787,t*=95.047,r*=100,n*=108.883,[t,r,n]},Ae.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],a;return a=360*Math.atan2(n,r)/2/Math.PI,a<0&&(a+=360),[t,Math.sqrt(r*r+n*n),a]},Ae.lch.lab=function(e){let t=e[0],r=e[1],n=e[2]/360*2*Math.PI;return[t,r*Math.cos(n),r*Math.sin(n)]},Ae.rgb.ansi16=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,[r,n,a]=e,o=t===null?Ae.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),o===0)return 30;let l=30+(Math.round(a/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return o===2&&(l+=60),l},Ae.hsv.ansi16=function(e){return Ae.rgb.ansi16(Ae.hsv.rgb(e),e[2])},Ae.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)},Ae.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=.5*(1+~~(e>50));return[(1&t)*r*255,(t>>1&1)*r*255,(t>>2&1)*r*255]},Ae.ansi256.rgb=function(e){if(e>=232){let r=10*(e-232)+8;return[r,r,r]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},Ae.rgb.hex=function(e){let 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},Ae.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(a=>a+a).join(""));let n=parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},Ae.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(Math.max(t,r),n),o=Math.min(Math.min(t,r),n),l=a-o,p,d;return p=l<1?o/(1-l):0,d=l<=0?0:a===t?(r-n)/l%6:a===r?2+(n-t)/l:4+(t-r)/l,d/=6,d%=1,[360*d,100*l,100*p]},Ae.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),a=0;return n<1&&(a=(r-.5*n)/(1-n)),[e[0],100*n,100*a]},Ae.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},Ae.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[255*n,255*n,255*n];let a=[0,0,0],o=t%1*6,l=o%1,p=1-l,d=0;switch(Math.floor(o)){case 0:a[0]=1,a[1]=l,a[2]=0;break;case 1:a[0]=p,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=l;break;case 3:a[0]=0,a[1]=p,a[2]=1;break;case 4:a[0]=l,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=p}return d=(1-r)*n,[255*(r*a[0]+d),255*(r*a[1]+d),255*(r*a[2]+d)]},Ae.hcg.hsv=function(e){let t=e[1]/100,r=t+e[2]/100*(1-t),n=0;return r>0&&(n=t/r),[e[0],100*n,100*r]},Ae.hcg.hsl=function(e){let t=e[1]/100,r=e[2]/100*(1-t)+.5*t,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]},Ae.hcg.hwb=function(e){let t=e[1]/100,r=t+e[2]/100*(1-t);return[e[0],100*(r-t),100*(1-r)]},Ae.hwb.hcg=function(e){let t=e[1]/100,r=1-e[2]/100,n=r-t,a=0;return n<1&&(a=(r-n)/(1-n)),[e[0],100*n,100*a]},Ae.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Ae.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Ae.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Ae.gray.hsl=function(e){return[0,0,e[0]]},Ae.gray.hsv=Ae.gray.hsl,Ae.gray.hwb=function(e){return[0,100,e[0]]},Ae.gray.cmyk=function(e){return[0,0,0,e[0]]},Ae.gray.lab=function(e){return[e[0],0,0]},Ae.gray.hex=function(e){let t=255&Math.round(e[0]/100*255),r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r},Ae.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};let Jc=xC;function XI(e){let t=function(){let n={},a=Object.keys(Jc);for(let o=a.length,l=0;l{ra[e]={},Object.defineProperty(ra[e],"channels",{value:Ih[e].channels}),Object.defineProperty(ra[e],"labels",{value:Ih[e].labels});let t=ZI(e);Object.keys(t).forEach(r=>{let n=t[r];ra[e][r]=function(a){let o=function(){for(var l=arguments.length,p=new Array(l),d=0;d1&&(p=m);let y=a(p);if(typeof y=="object")for(let D=y.length,b=0;b1&&(p=m),a(p))};return"conversion"in a&&(o.conversion=a.conversion),o}(n)})});var e7=ra;function SC(){return!1}function FC(){throw new Error("tty.ReadStream is not implemented")}function wC(){throw new Error("tty.ReadStream is not implemented")}(function(e){let t=(m,y)=>function(){let D=m(...arguments);return"\x1B[".concat(D+y,"m")},r=(m,y)=>function(){let D=m(...arguments);return"\x1B[".concat(38+y,";5;").concat(D,"m")},n=(m,y)=>function(){let D=m(...arguments);return"\x1B[".concat(38+y,";2;").concat(D[0],";").concat(D[1],";").concat(D[2],"m")},a=m=>m,o=(m,y,D)=>[m,y,D],l=(m,y,D)=>{Object.defineProperty(m,y,{get:()=>{let b=D();return Object.defineProperty(m,y,{value:b,enumerable:!0,configurable:!0}),b},enumerable:!0,configurable:!0})},p,d=(m,y,D,b)=>{p===void 0&&(p=e7);let v=b?10:0,w={};for(let[S,k]of Object.entries(p)){let P=S==="ansi16"?"ansi":S;S===y?w[P]=m(D,v):typeof k=="object"&&(w[P]=m(k[y],v))}return w};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){let m=new Map,y={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]}};y.color.gray=y.color.blackBright,y.bgColor.bgGray=y.bgColor.bgBlackBright,y.color.grey=y.color.blackBright,y.bgColor.bgGrey=y.bgColor.bgBlackBright;for(let[D,b]of Object.entries(y)){for(let[v,w]of Object.entries(b))y[v]={open:"\x1B[".concat(w[0],"m"),close:"\x1B[".concat(w[1],"m")},b[v]=y[v],m.set(w[0],w[1]);Object.defineProperty(y,D,{value:b,enumerable:!1})}return Object.defineProperty(y,"codes",{value:m,enumerable:!1}),y.color.close="\x1B[39m",y.bgColor.close="\x1B[49m",l(y.color,"ansi",()=>d(t,"ansi16",a,!1)),l(y.color,"ansi256",()=>d(r,"ansi256",a,!1)),l(y.color,"ansi16m",()=>d(n,"rgb",o,!1)),l(y.bgColor,"ansi",()=>d(t,"ansi16",a,!0)),l(y.bgColor,"ansi256",()=>d(r,"ansi256",a,!0)),l(y.bgColor,"ansi16m",()=>d(n,"rgb",o,!0)),y}})})(AC);var t7={isatty:SC,ReadStream:FC,WriteStream:wC};let r7=Uc,BC=s(Object.freeze({__proto__:null,isatty:SC,ReadStream:FC,WriteStream:wC,default:t7})),Vr=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:et.argv,r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),a=t.indexOf("--");return n!==-1&&(a===-1||n=2,has16m:e>=3}}function Oh(e,t){if(na===0)return 0;if(Vr("color=16m")||Vr("color=full")||Vr("color=truecolor"))return 3;if(Vr("color=256"))return 2;if(e&&!t&&na===void 0)return 0;let r=na||0;if(wt.TERM==="dumb")return r;if(et.platform==="win32"){let n=r7.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in wt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(n=>n in wt)||wt.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in wt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(wt.TEAMCITY_VERSION)?1:0;if(wt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in wt){let n=parseInt((wt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(wt.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(wt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(wt.TERM)||"COLORTERM"in wt?1:r}Vr("no-color")||Vr("no-colors")||Vr("color=false")||Vr("color=never")?na=0:(Vr("color")||Vr("colors")||Vr("color=true")||Vr("color=always"))&&(na=1),"FORCE_COLOR"in wt&&(na=wt.FORCE_COLOR==="true"?1:wt.FORCE_COLOR==="false"?0:wt.FORCE_COLOR.length===0?1:Math.min(parseInt(wt.FORCE_COLOR,10),3));var n7={supportsColor:function(e){return Ph(Oh(e,e&&e.isTTY))},stdout:Ph(Oh(!0,BC.isatty(1))),stderr:Ph(Oh(!0,BC.isatty(2)))},i7={stringReplaceAll:(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let a=t.length,o=0,l="";do l+=e.substr(o,n-o)+t+r,o=n+a,n=e.indexOf(t,o);while(n!==-1);return l+=e.substr(o),l},stringEncaseCRLFWithFirstIndex:(e,t,r,n)=>{let a=0,o="";do{let l=e[n-1]==="\r";o+=e.substr(a,(l?n-1:n)-a)+t+(l?`\r
+`:`
+`)+r,a=n+1,n=e.indexOf(`
+`,a)}while(n!==-1);return o+=e.substr(a),o}};let s7=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,TC=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,a7=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,u7=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,o7=new Map([["n",`
+`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function kC(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):o7.get(e)||e}function c7(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),a;for(let o of n){let l=Number(o);if(Number.isNaN(l)){if(!(a=o.match(a7)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(e,"')"));r.push(a[2].replace(u7,(p,d,m)=>d?kC(d):m))}else r.push(l)}return r}function l7(e){TC.lastIndex=0;let t=[],r;for(;(r=TC.exec(e))!==null;){let n=r[1];if(r[2]){let a=c7(n,r[2]);t.push([n].concat(a))}else t.push([n])}return t}function _C(e,t){let r={};for(let a of t)for(let o of a.styles)r[o[0]]=a.inverse?null:o.slice(1);let n=e;for(let[a,o]of Object.entries(r))if(Array.isArray(o)){if(!(a in n))throw new Error("Unknown Chalk style: ".concat(a));n=o.length>0?n[a](...o):n[a]}return n}var p7=(e,t)=>{let r=[],n=[],a=[];if(t.replace(s7,(o,l,p,d,m,y)=>{if(l)a.push(kC(l));else if(d){let D=a.join("");a=[],n.push(r.length===0?D:_C(e,r)(D)),r.push({inverse:p,styles:l7(d)})}else if(m){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(_C(e,r)(a.join(""))),a=[],r.pop()}else a.push(y)}),n.push(a.join("")),r.length>0){let o="Chalk template literal is missing ".concat(r.length," closing bracket").concat(r.length===1?"":"s"," (`}`)");throw new Error(o)}return n.join("")};let xu=AC.exports,{stdout:Lh,stderr:Mh}=n7,{stringReplaceAll:f7,stringEncaseCRLFWithFirstIndex:h7}=i7,{isArray:Yc}=Array,NC=["ansi","ansi","ansi256","ansi16m"],ia=Object.create(null);class d7{constructor(t){return IC(t)}}let IC=e=>{let t={};return function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(n.level&&!(Number.isInteger(n.level)&&n.level>=0&&n.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let a=Lh?Lh.level:0;r.level=n.level===void 0?a:n.level}(t,e),t.template=function(){for(var r=arguments.length,n=new Array(r),a=0;a{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=d7,t.template};function Xc(e){return IC(e)}for(let[e,t]of Object.entries(xu))ia[e]={get(){let r=Kc(this,jh(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};ia.visible={get(){let e=Kc(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};let PC=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of PC)ia[e]={get(){let{level:t}=this;return function(){let r=jh(xu.color[NC[t]][e](...arguments),xu.color.close,this._styler);return Kc(this,r,this._isEmpty)}}};for(let e of PC)ia["bg"+e[0].toUpperCase()+e.slice(1)]={get(){let{level:t}=this;return function(){let r=jh(xu.bgColor[NC[t]][e](...arguments),xu.bgColor.close,this._styler);return Kc(this,r,this._isEmpty)}}};let m7=Object.defineProperties(()=>{},Object.assign(Object.assign({},ia),{},{level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}})),jh=(e,t,r)=>{let n,a;return r===void 0?(n=e,a=t):(n=r.openAll+e,a=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:a,parent:r}},Kc=(e,t,r)=>{let n=function(){for(var a=arguments.length,o=new Array(a),l=0;l{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:a}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=f7(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
+`);return o!==-1&&(t=h7(t,a,n,o)),n+t+a},Rh,LC=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;ne.length===1?"-".concat(e):"--".concat(e),value:e=>qr.apiDescriptor.value(e),pair:e=>{let{key:t,value:r}=e;return r===!1?"--no-".concat(t):r===!0?Zc.key(t):r===""?"".concat(Zc.key(t)," without an argument"):"".concat(Zc.key(t),"=").concat(r)}};class b7 extends qr.ChoiceSchema{constructor(t){let{name:r,flags:n}=t;super({name:r,choices:n}),this._flags=[...n].sort()}preprocess(t,r){if(typeof t=="string"&&t.length>0&&!this._flags.includes(t)){let n=this._flags.find(a=>D7(a,t)<3);if(n)return r.logger.warn(["Unknown flag ".concat(MC.yellow(r.descriptor.value(t)),","),"did you mean ".concat(MC.blue(r.descriptor.value(n)),"?")].join(" ")),n}return t}expected(){return"a flag"}}let Vh;function jC(e,t){let{logger:r,isCLI:n=!1,passThrough:a=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=a?Array.isArray(a)?(D,b)=>a.includes(D)?{[D]:b}:void 0:(D,b)=>({[D]:b}):(D,b,v)=>{let w=P0(v.schemas,y7);return qr.levenUnknownHandler(D,b,Object.assign(Object.assign({},v),{},{schemas:w}))},l=n?Zc:qr.apiDescriptor,p=C7(t,{isCLI:n}),d=new qr.Normalizer(p,{logger:r,unknown:o,descriptor:l}),m=r!==!1;m&&Vh&&(d._hasDeprecationWarned=Vh);let y=d.normalize(e);return m&&(Vh=d._hasDeprecationWarned),y}function C7(e,t){let{isCLI:r}=t,n=[];r&&n.push(qr.AnySchema.create({name:"_"}));for(let a of e)n.push(A7(a,{isCLI:r,optionInfos:e})),a.alias&&r&&n.push(qr.AliasSchema.create({name:a.alias,sourceName:a.name}));return n}function A7(e,t){let r,{isCLI:n,optionInfos:a}=t,o={name:e.name},l={};switch(e.type){case"int":r=qr.IntegerSchema,n&&(o.preprocess=p=>Number(p));break;case"string":case"path":r=qr.StringSchema;break;case"choice":r=qr.ChoiceSchema,o.choices=e.choices.map(p=>typeof p=="object"&&p.redirect?Object.assign(Object.assign({},p),{},{redirect:{to:{key:e.name,value:p.redirect}}}):p);break;case"boolean":r=qr.BooleanSchema;break;case"flag":r=b7,o.flags=a.flatMap(p=>[p.alias,p.description&&p.name,p.oppositeDescription&&"no-".concat(p.name)].filter(Boolean));break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?o.validate=(p,d,m)=>e.exception(p)||d.validate(p,m):o.validate=(p,d,m)=>p===void 0||d.validate(p,m),e.redirect&&(l.redirect=p=>p?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(l.deprecated=!0),n&&!e.array){let p=o.preprocess||(d=>d);o.preprocess=(d,m,y)=>m.preprocess(p(Array.isArray(d)?E7(d):d),y)}return e.array?qr.ArraySchema.create(Object.assign(Object.assign(Object.assign({},n?{preprocess:p=>Array.isArray(p)?p:[p]}:{}),l),{},{valueSchema:r.create(o)})):r.create(Object.assign(Object.assign({},o),l))}var v7={normalizeApiOptions:function(e,t,r){return jC(e,t,r)},normalizeCliOptions:function(e,t,r){return jC(e,t,Object.assign({isCLI:!0},r))}};let{isNonEmptyArray:x7}=ke;function el(e,t){let{ignoreDecorators:r}=t||{};if(!r){let n=e.declaration&&e.declaration.decorators||e.decorators;if(x7(n))return el(n[0])}return e.range?e.range[0]:e.start}function qh(e){return e.range?e.range[1]:e.end}function RC(e,t){return el(e)===el(t)}var $t={locStart:el,locEnd:qh,hasSameLocStart:RC,hasSameLoc:function(e,t){return RC(e,t)&&function(r,n){return qh(r)===qh(n)}(e,t)}},tl={},Su={},rl={};Object.defineProperty(rl,"__esModule",{value:!0}),rl.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,rl.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t};var VC={},Fu={};Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.isIdentifierStart=UC,Fu.isIdentifierChar=WC,Fu.isIdentifierName=function(e){let t=!0;for(let r=0;re)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function UC(e){return e<65?e===36:e<=90||(e<97?e===95:e<=122||(e<=65535?e>=170&&S7.test(String.fromCharCode(e)):Uh(e,GC)))}function WC(e){return e<48?e===36:e<58||!(e<65)&&(e<=90||(e<97?e===95:e<=122||(e<=65535?e>=170&&F7.test(String.fromCharCode(e)):Uh(e,GC)||Uh(e,w7))))}var Ji={};Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.isReservedWord=zC,Ji.isStrictReservedWord=$C,Ji.isStrictBindOnlyReservedWord=HC,Ji.isStrictBindReservedWord=function(e,t){return $C(e,t)||HC(e)},Ji.isKeyword=function(e){return k7.has(e)};let B7=["implements","interface","let","package","private","protected","public","static","yield"],T7=["eval","arguments"],k7=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),_7=new Set(B7),N7=new Set(T7);function zC(e,t){return t&&e==="await"||e==="enum"}function $C(e,t){return zC(e,t)||_7.has(e)}function HC(e){return N7.has(e)}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}});var t=Fu,r=Ji})(VC);var JC={exports:{}},I7=/[|\\{}()[\]^$+*?.]/g,P7=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(I7,"\\$&")};let O7=Uc,dn=(e,t)=>{t=t||et.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),a=t.indexOf("--");return n!==-1&&(a===-1||n