|
|
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var util$1=_interopDefault(require("util")),path=require("path"),fs=require("fs"),os=_interopDefault(require("os")),tty$1=_interopDefault(require("tty")),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(e,u){return e(u={exports:{}},u.exports),u.exports}function getCjsExportFromNamespace(e){return e&&e.default||e}var vendors=[{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Shippable",constant:"SHIPPABLE",env:"SHIPPABLE",pr:{IS_PULL_REQUEST:"true"}},{name:"Solano CI",constant:"SOLANO",env:"TDDIUM",pr:"TDDIUM_PR_ID"},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"Solano CI",constant:"TDDIUM",env:"TDDIUM",pr:"TDDIUM_PR_ID",deprecated:!0},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Team Foundation Server",constant:"TFS",env:"TF_BUILD"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}}],vendors$1=Object.freeze({__proto__:null,default:vendors}),vendors$2=getCjsExportFromNamespace(vendors$1),ciInfo=createCommonjsModule(function(e,u){var t=process.env;function D(e){return"string"==typeof e?!!t[e]:Object.keys(e).every(function(u){return t[u]===e[u]})}Object.defineProperty(u,"_vendors",{value:vendors$2.map(function(e){return e.constant})}),u.name=null,u.isPR=null,vendors$2.forEach(function(e){var r=(Array.isArray(e.env)?e.env:[e.env]).every(function(e){return D(e)});if(u[e.constant]=r,r)switch(u.name=e.name,typeof e.pr){case"string":u.isPR=!!t[e.pr];break;case"object":"env"in e.pr?u.isPR=e.pr.env in t&&t[e.pr.env]!==e.pr.ne:"any"in e.pr?u.isPR=e.pr.any.some(function(e){return!!t[e]}):u.isPR=D(e.pr);break;default:u.isPR=null}}),u.isCI=!!(t.CI||t.CONTINUOUS_INTEGRATION||t.BUILD_NUMBER||t.RUN_ID||u.name)}),ciInfo_1=ciInfo.name,ciInfo_2=ciInfo.isPR,ciInfo_3=ciInfo.isCI,isCI=!1,debug=!1,tty=!1,nodeENV="development",browser="undefined"!=typeof window,platform="",minimal=!1;function toBoolean(e){return!(!e||"false"===e)}"undefined"!=typeof process&&(process.platform&&(platform=String(process.platform)),process.stdout&&(tty=toBoolean(process.stdout.isTTY)),isCI=Boolean(ciInfo.isCI),process.env&&(process.env.NODE_ENV&&(nodeENV=process.env.NODE_ENV),debug=toBoolean(process.env.DEBUG),minimal=toBoolean(process.env.MINIMAL)));var env={browser:browser,test:"test"===nodeENV,dev:"development"===nodeENV||"dev"===nodeENV,production:"production"===nodeENV,debug:debug,ci:isCI,tty:tty,minimal:void 0,minimalCLI:void 0,windows:/^win/i.test(platform),darwin:/^darwin/i.test(platform),linux:/^linux/i.test(platform)};env.minimal=minimal||env.ci||env.test||!env.tty,env.minimalCLI=env.minimal;var stdEnv=Object.freeze(env),Types={fatal:{level:0},error:{level:0},warn:{level:1},log:{level:2},info:{level:3},success:{level:3},debug:{level:4},trace:{level:5},silent:{level:1/0},ready:{level:3},start:{level:3}};function isPlainObject(e){return"[object Object]"===Object.prototype.toString.call(e)}function isLogObj(e){return!!isPlainObject(e)&&(!(!e.message&&!e.args)&&!e.stack)}let paused=!1;const queue=[];class Consola{constructor(e={}){this._reporters=e.reporters||[],this._types=e.types||Types,this._level=null!=e.level?e.level:3,this._defaults=e.defaults||{},this._async=void 0!==e.async?e.async:null,this._stdout=e.stdout,this._stderr=e.stderr,this._mockFn=e.mockFn,this._throttle=e.throttle||2e3;for(const e in this._types)this[e]=this._wrapLogFn(Object.assign({type:e},this._types[e],this._defaults));this._mockFn&&this.mockTypes(),this._lastLogSerialized=null,this._lastLog=null,this._lastLogTime=null,this._lastLogCount=0,this._throttleTimeout=null}get level(){return this._level}set level(e){let u=0,t=0;for(const e in this._types){const D=this._types[e];D.level>t?t=D.level:D.level<u&&(u=D.level)}this._level=Math.min(t,Math.max(u,e))}get stdout(){return this._stdout||console._stdout}get stderr(){return this._stderr||console._stderr}create(e){return new Consola(Object.assign({reporters:this._reporters,level:this._level,types:this._types,defaults:this._defaults,stdout:this._stdout,stderr:this._stderr,mockFn:this._mockFn},e))}withDefaults(e){return this.create({defaults:Object.assign({},this._defaults,e)})}withTag(e){return this.withDefaults({tag:this._defaults.tag?this._defaults.tag+":"+e:e})}addReporter(e){return this._reporters.push(e),this}removeReporter(e){if(e){const u=this._reporters.indexOf(e);if(u>=0)return this._reporters.splice(u,1)}else this._reporters.splice(0);return this}setReporters(e){return this._reporters=Array.isArray(e)?e:[e],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const e in this._types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e]}restoreConsole(){for(const e in this._types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapStd(){this._wrapStream(this.stdout,"log"),this._wrapStream(this.stderr,"log")}_wrapStream(e,u){e&&(e.__write||(e.__write=e.write),e.write=(e=>{this[u](String(e).trim())}))}restoreStd(){this._restoreStream(this.stdout),this._restoreStream(this.stderr)}_restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}pauseLogs(){paused=!0}resumeLogs(){paused=!1;const e=queue.splice(0);for(const u of e)u[0]._logFn(u[1],u[2])}mockTypes(e){if(this._mockFn=e||this._mockFn,"function"==typeof this._mockFn)for(const e in this._types)this[e]=this._mockFn(e,this._types[e])||this[e]}_wrapLogFn(e){return function(){if(!paused)return this._logFn(e,arguments);queue.push([this,e,arguments])}.bind(this)}_logFn(e,u){if(e.level>this._level)return!!this._async&&Promise.resolve(!1);const t=Object.assign({date:new Date,args:[]},e);1===u.length&&isLogObj(u[0])?Object.assign(t,u[0]):t.args=Array.from(u),t.message&&(t.args.unshift(t.message),delete t.message),t.additional&&(Array.isArray(t.additional)||(t.additional=t.additional.split("\n")),t.args.push("\n"+t.additional.join("\n")),delete t.additional),t.type="string"==typeof t.type?t.type.toLowerCase():"",t.tag="string"==typeof t.tag?t.tag.toLowerCase():"";const D=(e=!1)=>{if(this._lastLogCount&&(this._log({...this._lastLog,args:[...this._lastLog.args,`(repeated ${this._lastLogCount-(e?1:0)} times)`]}),this._lastLogCount=0),this._lastLog=t,e){if(this._async)return this._logAsync(t);this._log(t)}};clearTimeout(this._throttleTimeout);const r=this._lastLogTime?t.date-this._lastLogTime:0;if(this._lastLogTime=t.date,r<this._throttle)try{const e=JSON.stringify([t.type,t.tag,t.args]),u=this._lastLogSerialized===e;if(this._lastLogSerialized=e,u)return this._lastLogCount++,void(this._throttleTimeout=setTimeout(D,this._throttle))}catch(e){}D(!0)}_log(e){for(const u of this._reporters)u.log(e,{async:!1,stdout:this.stdout,stderr:this.stderr})}_logAsync(e){return Promise.all(this._reporters.map(u=>u.log(e,{async:!0,stdout:this.stdout,stderr:this.stderr})))}}function parseStack(e){const u=process.cwd()+path.sep;return e.split("\n").splice(1).map(e=>e.trim().replace("file://","").replace(u,""))}function writeStream(e,u,t="default"){const D=u.__write||u.write;switch(t){case"async":return new Promise(t=>{!0===D.call(u,e)?t():u.once("drain",()=>{t()})});case"sync":return fs.writeSync(u.fd,e);default:return D.call(u,e)}}Consola.prototype.add=Consola.prototype.addReporter,Consola.prototype.remove=Consola.prototype.removeReporter,Consola.prototype.clear=Consola.prototype.removeReporter,Consola.prototype.withScope=Consola.prototype.withTag,Consola.prototype.mock=Consola.prototype.mockTypes,Consola.prototype.pause=Consola.prototype.pauseLogs,Consola.prototype.resume=Consola.prototype.resumeLogs;var dayjs_min=createCommonjsModule(function(e,u){e.exports=function(){var e="millisecond",u="second",t="minute",D="hour",r="day",n="week",o="month",s="quarter",i="year",a=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,l=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,c=function(e,u,t){var D=String(e);return!D||D.length>=u?e:""+Array(u+1-D.length).join(t)+e},h={s:c,z:function(e){var u=-e.utcOffset(),t=Math.abs(u),D=Math.floor(t/60),r=t%60;return(u<=0?"+":"-")+c(D,2,"0")+":"+c(r,2,"0")},m:function(e,u){var t=12*(u.year()-e.year())+(u.month()-e.month()),D=e.clone().add(t,o),r=u-D<0,n=e.clone().add(t+(r?-1:1),o);return Number(-(t+(u-D)/(r?D-n:n-D))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(a){return{M:o,y:i,w:n,d:r,h:D,m:t,s:u,ms:e,Q:s}[a]||String(a||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},F="en",f={};f[F]=C;var E=function(e){return e instanceof m},d=function(e,u,t){var D;if(!e)return F;if("string"==typeof e)f[e]&&(D=e),u&&(f[e]=u,D=e);else{var r=e.name;f[r]=e,D=r}return t||(F=D),D},p=function(e,u,t){if(E(e))return e.clone();var D=u?"string"==typeof u?{format:u,pl:t}:u:{};return D.date=e,new m(D)},g=h;g.l=d,g.i=E,g.w=function(e,u){return p(e,{locale:u.$L,utc:u.$u,$offset:u.$offset})};var m=function(){function c(e){this.$L=this.$L||d(e.locale,null,!0),this.parse(e)}var h=c.prototype;return h.parse=function(e){this.$d=function(e){var u=e.date,t=e.utc;if(null===u)return new Date(NaN);if(g.u(u))return new Date;if(u instanceof Date)return new Date(u);if("string"==typeof u&&!/Z$/i.test(u)){var D=u.match(a);if(D)return t?new Date(Date.UTC(D[1],D[2]-1,D[3]||1,D[4]||0,D[5]||0,D[6]||0,D[7]||0)):new Date(D[1],D[2]-1,D[3]||1,D[4]||0,D[5]||0,D[6]||0,D[7]||0)}return new Date(u)}(e),this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return g},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(e,u){var t=p(e);return this.startOf(u)<=t&&t<=this.endOf(u)},h.isAfter=function(e,u){return p(e)<this.startOf(u)},h.isBefore=function(e,u){return this.endOf(u)<p(e)},h.$g=function(e,u,t){return g.u(e)?this[u]:this.set(t,e)},h.year=function(e){return this.$g(e,"$y",i)},h.month=function(e){return this.$g(e,"$M",o)},h.day=function(e){return this.$g(e,"$W",r)},h.date=function(e){return this.$g(e,"$D","date")},h.hour=function(e){return this.$g(e,"$H",D)},h.minute=function(e){return this.$g(e,"$m",t)},h.second=function(e){return this.$g(e,"$s",u)},h.millisecond=function(u){return this.$g(u,"$ms",e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,s){var a=this,l=!!g.u(s)||s,c=g.p(e),h=function(e,u){var t=g.w(a.$u?Date.UTC(a.$y,u,e):new Date(a.$y,u,e),a);return l?t:t.endOf(r)},C=function(e,u){return g.w(a.toDate()[e].apply(a.toDate(),(l?[0,0,0,0]:[23,59,59,999]).slice(u)),a)},F=this.$W,f=this.$M,E=this.$D,d="set"+(this.$u?"UTC":"");switch(c){case i:return l?h(1,0):h(31,11);case o:return l?h(1,f):h(0,f+1);case n:var p=this.$locale().weekStart||0,m=(F<p?F+7:F)-p;return h(l?E-m:E+(6-m),f);case r:case"date":return C(d+"Hours",0);case D:return C(d+"Minutes",1);case t:return C(d+"Seconds",2);case u:return C(d+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(n,s){var a,l=g.p(n),c="set"+(this.$u?"UTC":""),h=(a={},a[r]=c+"Date",a.date=c+"Date",a[o]=c+"Month",a[i]=c+"FullYear",a[D]=c+"Hours",a[t]=c+"Minutes",a[u]=c+"Seconds",a[e]=c+"Milliseconds",a)[l],C=l===r?this.$D+(s-this.$W):s;if(l===o||l===i){var F=this.clone().set("date",1);F.$d[h](C),F.init(),this.$d=F.set("date",Math.min(this.$D,F.daysInMonth())).toDate()}else h&&this.$d[h](C);return this.init(),this},h.set=function(e,u){return this.clone().$set(e,u)},h.get=function(e){return this[g.p(e)]()},h.add=function(e,s){var a,l=this;e=Number(e);var c=g.p(s),h=function(u){var t=p(l);return g.w(t.date(t.date()+Math.round(u*e)),l)};if(c===o)return this.set(o,this.$M+e);if(c===i)return this.set(i,this.$y+e);if(c===r)return h(1);if(c===n)return h(7);var C=(a={},a[t]=6e4,a[D]=36e5,a[u]=1e3,a)[c]||1,F=this.$d.getTime()+e*C;return g.w(F,this)},h.subtract=function(e,u){return this.add(-1*e,u)},h.format=function(e){var u=this;if(!this.isValid())return"Invalid Date";var t=e||"YYYY-MM-DDTHH:mm:ssZ",D=g.z(this),r=this.$locale(),n=this.$H,o=this.$m,s=this.$M,i=r.weekdays,a=r.months,c=function(e,D,r,n){return e&&(e[D]||e(u,t))||r[D].substr(0,n)},h=function(e){return g.s(n%12||12,e,"0")},C=r.meridiem||function(e,u,t){var D=e<12?"AM":"PM";return t?D.toLowerCase():D},F={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:g.s(s+1,2,"0"),MMM:c(r.monthsShort,s,a,3),MMMM:a[s]||a(this,t),D:this.$D,DD:g.s(this.$D,2,"0"),d:String(this.$W),dd:c(r.weekdaysMin,this.$W,i,2),ddd:c(r.weekdaysShort,this.$W,i,3),dddd:i[this.$W],H:String(n),HH:g.s(n,2,"0"),h:h(1),hh:h(2),a:C(n,o,!0),A:C(n,o,!1),m:String(o),mm:g.s(o,2,"0"),s:String(this.$s),ss:g.s(this.$s,2,"0"),SSS:g.s(this.$ms,3,"0"),Z:D};return t.replace(l,function(e,u){return u||F[e]||D.replace(":","")})},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(e,a,l){var c,h=g.p(a),C=p(e),F=6e4*(C.utcOffset()-this.utcOffset()),f=this-C,E=g.m(this,C);return E=(c={},c[i]=E/12,c[o]=E,c[s]=E/3,c[n]=(f-F)/6048e5,c[r]=(f-F)/864e5,c[D]=f/36e5,c[t]=f/6e4,c[u]=f/1e3,c)[h]||f,l?E:g.a(E)},h.daysInMonth=function(){return this.endOf(o).$D},h.$locale=function(){return f[this.$L]},h.locale=function(e,u){if(!e)return this.$L;var t=this.clone(),D=d(e,u,!0);return D&&(t.$L=D),t},h.clone=function(){return g.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},c}();return p.prototype=m.prototype,p.extend=function(e,u){return e(u,m,p),p},p.locale=d,p.isDayjs=E,p.unix=function(e){return p(1e3*e)},p.en=f[F],p.Ls=f,p}()});function formatDate(e,u){return dayjs_min(u).format(e)}const DEFAULTS={dateFormat:"HH:mm:ss",formatOptions:{colors:!1,compact:!0}},bracket=e=>e?`[${e}]`:"";class BasicReporter{constructor(e){this.options=Object.assign({},DEFAULTS,e)}formatStack(e){return" "+parseStack(e).join("\n ")}formatArgs(e){const u=e.map(e=>e&&"string"==typeof e.stack?e.message+"\n"+this.formatStack(e.stack):e);return"function"==typeof util$1.formatWithOptions?util$1.formatWithOptions(this.options.formatOptions,...u):util$1.format(...u)}formatDate(e){return formatDate(this.options.dateFormat,e)}filterAndJoin(e){return e.filter(e=>e).join(" ")}formatLogObj(e){const u=this.formatArgs(e.args);return this.filterAndJoin([bracket(e.type),bracket(e.tag),u])}log(e,{async:u,stdout:t,stderr:D}={}){return writeStream(this.formatLogObj(e,{width:t.columns||0})+"\n",e.level<2?D:t,u?"async":"default")}}var ansiRegex=({onlyFirst:e=!1}={})=>{const u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(u,e?void 0:"g")},stripAnsi=e=>"string"==typeof e?e.replace(ansiRegex(),""):e;const isFullwidthCodePoint=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141));var isFullwidthCodePoint_1=isFullwidthCodePoint,default_1=isFullwidthCodePoint;isFullwidthCodePoint_1.default=default_1;var emojiRegex=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g};const stringWidth=e=>{if("string"!=typeof(e=e.replace(emojiRegex()," "))||0===e.length)return 0;e=stripAnsi(e);let u=0;for(let t=0;t<e.length;t++){const D=e.codePointAt(t);D<=31||D>=127&&D<=159||(D>=768&&D<=879||(D>65535&&t++,u+=isFullwidthCodePoint_1(D)?2:1))}return u};var stringWidth_1=stringWidth,default_1$1=stringWidth;stringWidth_1.default=default_1$1;var matchOperatorsRe=/[|\\{}()[\]^$+*?.]/g,escapeStringRegexp=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(matchOperatorsRe,"\\$&")};const{platform:platform$1}=process,main={tick:"✔",cross:"✖",star:"★",square:"▇",squareSmall:"◻",squareSmallFilled:"◼",play:"▶",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",circleQuestionMark:"?⃝",bullet:"●",dot:"․",line:"─",ellipsis:"…",pointer:"❯",pointerSmall:"›",info:"ℹ",warning:"⚠",hamburger:"☰",smiley:"㋡",mustache:"෴",heart:"♥",nodejs:"⬢",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",questionMarkPrefix:"?⃝",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneSeventh:"⅐",oneEighth:"⅛",oneNinth:"⅑",oneTenth:"⅒",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞"},windows={tick:"√",cross:"×",star:"*",square:"█",squareSmall:"[ ]",squareSmallFilled:"[█]",play:"►",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",circleQuestionMark:"(?)",bullet:"*",dot:".",line:"─",ellipsis:"...",pointer:">",pointerSmall:"»",info:"i",warning:"‼",hamburger:"≡",smiley:"☺",mustache:"┌─┐",heart:main.heart,nodejs:"♦",arrowUp:main.arrowUp,arrowDown:main.arrowDown,arrowLeft:main.arrowLeft,arrowRight:main.arrowRight,radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",questionMarkPrefix:"?",oneHalf:"1/2",oneThird:"1/3",oneQuarter:"1/4",oneFifth:"1/5",oneSixth:"1/6",oneSeventh:"1/7",oneEighth:"1/8",oneNinth:"1/9",oneTenth:"1/10",twoThirds:"2/3",twoFifths:"2/5",threeQuarters:"3/4",threeFifths:"3/5",threeEighths:"3/8",fourFifths:"4/5",fiveSixths:"5/6",fiveEighths:"5/8",sevenEighths:"7/8"};"linux"===platform$1&&(main.questionMarkPrefix="?");const figures="win32"===platform$1?windows:main,fn=e=>{if(figures===main)return e;for(const[u,t]of Object.entries(main))t!==figures[u]&&(e=e.replace(new RegExp(escapeStringRegexp(t),"g"),figures[u]));return e};var figures_1=Object.assign(fn,figures),colorName={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]};const reverseKeywords={};for(const e of Object.keys(colorName))reverseKeywords[colorName[e]]=e;const convert={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 conversions=convert;for(const e of Object.keys(convert)){if(!("channels"in convert[e]))throw new Error("missing channels property: "+e);if(!("labels"in convert[e]))throw new Error("missing channel labels property: "+e);if(convert[e].labels.length!==convert[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:u,labels:t}=convert[e];delete convert[e].channels,delete convert[e].labels,Object.defineProperty(convert[e],"channels",{value:u}),Object.defineProperty(convert[e],"labels",{value:t})}function comparativeDistance(e,u){return(e[0]-u[0])**2+(e[1]-u[1])**2+(e[2]-u[2])**2}function buildGraph(){const e={},u=Object.keys(conversions);for(let t=u.length,D=0;D<t;D++)e[u[D]]={distance:-1,parent:null};return e}function deriveBFS(e){const u=buildGraph(),t=[e];for(u[e].distance=0;t.length;){const e=t.pop(),D=Object.keys(conversions[e]);for(let r=D.length,n=0;n<r;n++){const r=D[n],o=u[r];-1===o.distance&&(o.distance=u[e].distance+1,o.parent=e,t.unshift(r))}}return u}function link(e,u){return function(t){return u(e(t))}}function wrapConversion(e,u){const t=[u[e].parent,e];let D=conversions[u[e].parent][e],r=u[e].parent;for(;u[r].parent;)t.unshift(u[r].parent),D=link(conversions[u[r].parent][r],D),r=u[r].parent;return D.conversion=t,D}convert.rgb.hsl=function(e){const u=e[0]/255,t=e[1]/255,D=e[2]/255,r=Math.min(u,t,D),n=Math.max(u,t,D),o=n-r;let s,i;n===r?s=0:u===n?s=(t-D)/o:t===n?s=2+(D-u)/o:D===n&&(s=4+(u-t)/o),(s=Math.min(60*s,360))<0&&(s+=360);const a=(r+n)/2;return[s,100*(i=n===r?0:a<=.5?o/(n+r):o/(2-n-r)),100*a]},convert.rgb.hsv=function(e){let u,t,D,r,n;const o=e[0]/255,s=e[1]/255,i=e[2]/255,a=Math.max(o,s,i),l=a-Math.min(o,s,i),c=function(e){return(a-e)/6/l+.5};return 0===l?(r=0,n=0):(n=l/a,u=c(o),t=c(s),D=c(i),o===a?r=D-t:s===a?r=1/3+u-D:i===a&&(r=2/3+t-u),r<0?r+=1:r>1&&(r-=1)),[360*r,100*n,100*a]},convert.rgb.hwb=function(e){const u=e[0],t=e[1];let D=e[2];return[convert.rgb.hsl(e)[0],100*(1/255*Math.min(u,Math.min(t,D))),100*(D=1-1/255*Math.max(u,Math.max(t,D)))]},convert.rgb.cmyk=function(e){const u=e[0]/255,t=e[1]/255,D=e[2]/255,r=Math.min(1-u,1-t,1-D);return[100*((1-u-r)/(1-r)||0),100*((1-t-r)/(1-r)||0),100*((1-D-r)/(1-r)||0),100*r]},convert.rgb.keyword=function(e){const u=reverseKeywords[e];if(u)return u;let t,D=1/0;for(const u of Object.keys(colorName)){const r=comparativeDistance(e,colorName[u]);r<D&&(D=r,t=u)}return t},convert.keyword.rgb=function(e){return colorName[e]},convert.rgb.xyz=function(e){let u=e[0]/255,t=e[1]/255,D=e[2]/255;return[100*(.4124*(u=u>.04045?((u+.055)/1.055)**2.4:u/12.92)+.3576*(t=t>.04045?((t+.055)/1.055)**2.4:t/12.92)+.1805*(D=D>.04045?((D+.055)/1.055)**2.4:D/12.92)),100*(.2126*u+.7152*t+.0722*D),100*(.0193*u+.1192*t+.9505*D)]},convert.rgb.lab=function(e){const u=convert.rgb.xyz(e);let t=u[0],D=u[1],r=u[2];return[116*(D=(D/=100)>.008856?D**(1/3):7.787*D+16/116)-16,500*((t=(t/=95.047)>.008856?t**(1/3):7.787*t+16/116)-D),200*(D-(r=(r/=108.883)>.008856?r**(1/3):7.787*r+16/116))]},convert.hsl.rgb=function(e){const u=e[0]/360,t=e[1]/100,D=e[2]/100;let r,n,o;if(0===t)return[o=255*D,o,o];const s=2*D-(r=D<.5?D*(1+t):D+t-D*t),i=[0,0,0];for(let e=0;e<3;e++)(n=u+1/3*-(e-1))<0&&n++,n>1&&n--,o=6*n<1?s+6*(r-s)*n:2*n<1?r:3*n<2?s+(r-s)*(2/3-n)*6:s,i[e]=255*o;return i},convert.hsl.hsv=function(e){const u=e[0];let t=e[1]/100,D=e[2]/100,r=t;const n=Math.max(D,.01);return t*=(D*=2)<=1?D:2-D,r*=n<=1?n:2-n,[u,100*(0===D?2*r/(n+r):2*t/(D+t)),100*((D+t)/2)]},convert.hsv.rgb=function(e){const u=e[0]/60,t=e[1]/100;let D=e[2]/100;const r=Math.floor(u)%6,n=u-Math.floor(u),o=255*D*(1-t),s=255*D*(1-t*n),i=255*D*(1-t*(1-n));switch(D*=255,r){case 0:return[D,i,o];case 1:return[s,D,o];case 2:return[o,D,i];case 3:return[o,s,D];case 4:return[i,o,D];case 5:return[D,o,s]}},convert.hsv.hsl=function(e){const u=e[0],t=e[1]/100,D=e[2]/100,r=Math.max(D,.01);let n,o;o=(2-t)*D;const s=(2-t)*r;return n=t*r,[u,100*(n=(n/=s<=1?s:2-s)||0),100*(o/=2)]},convert.hwb.rgb=function(e){const u=e[0]/360;let t=e[1]/100,D=e[2]/100;const r=t+D;let n;r>1&&(t/=r,D/=r);const o=Math.floor(6*u),s=1-D;n=6*u-o,0!=(1&o)&&(n=1-n);const i=t+n*(s-t);let a,l,c;switch(o){default:case 6:case 0:a=s,l=i,c=t;break;case 1:a=i,l=s,c=t;break;case 2:a=t,l=s,c=i;break;case 3:a=t,l=i,c=s;break;case 4:a=i,l=t,c=s;break;case 5:a=s,l=t,c=i}return[255*a,255*l,255*c]},convert.cmyk.rgb=function(e){const u=e[0]/100,t=e[1]/100,D=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,u*(1-r)+r)),255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,D*(1-r)+r))]},convert.xyz.rgb=function(e){const u=e[0]/100,t=e[1]/100,D=e[2]/100;let r,n,o;return r=(r=3.2406*u+-1.5372*t+-.4986*D)>.0031308?1.055*r**(1/2.4)-.055:12.92*r,n=(n=-.9689*u+1.8758*t+.0415*D)>.0031308?1.055*n**(1/2.4)-.055:12.92*n,o=(o=.0557*u+-.204*t+1.057*D)>.0031308?1.055*o**(1/2.4)-.055:12.92*o,[255*(r=Math.min(Math.max(0,r),1)),255*(n=Math.min(Math.max(0,n),1)),255*(o=Math.min(Math.max(0,o),1))]},convert.xyz.lab=function(e){let u=e[0],t=e[1],D=e[2];return[116*(t=(t/=100)>.008856?t**(1/3):7.787*t+16/116)-16,500*((u=(u/=95.047)>.008856?u**(1/3):7.787*u+16/116)-t),200*(t-(D=(D/=108.883)>.008856?D**(1/3):7.787*D+16/116))]},convert.lab.xyz=function(e){let u,t,D;const r=(t=(e[0]+16)/116)**3,n=(u=e[1]/500+t)**3,o=(D=t-e[2]/200)**3;return t=r>.008856?r:(t-16/116)/7.787,u=n>.008856?n:(u-16/116)/7.787,D=o>.008856?o:(D-16/116)/7.787,[u*=95.047,t*=100,D*=108.883]},convert.lab.lch=function(e){const u=e[0],t=e[1],D=e[2];let r;return(r=360*Math.atan2(D,t)/2/Math.PI)<0&&(r+=360),[u,Math.sqrt(t*t+D*D),r]},convert.lch.lab=function(e){const u=e[0],t=e[1],D=e[2]/360*2*Math.PI;return[u,t*Math.cos(D),t*Math.sin(D)]},convert.rgb.ansi16=function(e,u=null){const[t,D,r]=e;let n=null===u?convert.rgb.hsv(e)[2]:u;if(0===(n=Math.round(n/50)))return 30;let o=30+(Math.round(r/255)<<2|Math.round(D/255)<<1|Math.round(t/255));return 2===n&&(o+=60),o},convert.hsv.ansi16=function(e){return convert.rgb.ansi16(convert.hsv.rgb(e),e[2])},convert.rgb.ansi256=function(e){const u=e[0],t=e[1],D=e[2];return u===t&&t===D?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(t/255*5)+Math.round(D/255*5)},convert.ansi16.rgb=function(e){let u=e%10;if(0===u||7===u)return e>50&&(u+=3.5),[u=u/10.5*255,u,u];const t=.5*(1+~~(e>50));return[(1&u)*t*255,(u>>1&1)*t*255,(u>>2&1)*t*255]},convert.ansi256.rgb=function(e){if(e>=232){const u=10*(e-232)+8;return[u,u,u]}let u;return e-=16,[Math.floor(e/36)/5*255,Math.floor((u=e%36)/6)/5*255,u%6/5*255]},convert.rgb.hex=function(e){const u=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(u.length)+u},convert.hex.rgb=function(e){const u=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!u)return[0,0,0];let t=u[0];3===u[0].length&&(t=t.split("").map(e=>e+e).join(""));const D=parseInt(t,16);return[D>>16&255,D>>8&255,255&D]},convert.rgb.hcg=function(e){const u=e[0]/255,t=e[1]/255,D=e[2]/255,r=Math.max(Math.max(u,t),D),n=Math.min(Math.min(u,t),D),o=r-n;let s,i;return i=o<=0?0:r===u?(t-D)/o%6:r===t?2+(D-u)/o:4+(u-t)/o,i/=6,[360*(i%=1),100*o,100*(s=o<1?n/(1-o):0)]},convert.hsl.hcg=function(e){const u=e[1]/100,t=e[2]/100,D=t<.5?2*u*t:2*u*(1-t);let r=0;return D<1&&(r=(t-.5*D)/(1-D)),[e[0],100*D,100*r]},convert.hsv.hcg=function(e){const u=e[1]/100,t=e[2]/100,D=u*t;let r=0;return D<1&&(r=(t-D)/(1-D)),[e[0],100*D,100*r]},convert.hcg.rgb=function(e){const u=e[0]/360,t=e[1]/100,D=e[2]/100;if(0===t)return[255*D,255*D,255*D];const r=[0,0,0],n=u%1*6,o=n%1,s=1-o;let i=0;switch(Math.floor(n)){case 0:r[0]=1,r[1]=o,r[2]=0;break;case 1:r[0]=s,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=o;break;case 3:r[0]=0,r[1]=s,r[2]=1;break;case 4:r[0]=o,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=s}return i=(1-t)*D,[255*(t*r[0]+i),255*(t*r[1]+i),255*(t*r[2]+i)]},convert.hcg.hsv=function(e){const u=e[1]/100,t=u+e[2]/100*(1-u);let D=0;return t>0&&(D=u/t),[e[0],100*D,100*t]},convert.hcg.hsl=function(e){const u=e[1]/100,t=e[2]/100*(1-u)+.5*u;let D=0;return t>0&&t<.5?D=u/(2*t):t>=.5&&t<1&&(D=u/(2*(1-t))),[e[0],100*D,100*t]},convert.hcg.hwb=function(e){const u=e[1]/100,t=u+e[2]/100*(1-u);return[e[0],100*(t-u),100*(1-t)]},convert.hwb.hcg=function(e){const u=e[1]/100,t=1-e[2]/100,D=t-u;let r=0;return D<1&&(r=(t-D)/(1-D)),[e[0],100*D,100*r]},convert.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},convert.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},convert.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},convert.gray.hsl=function(e){return[0,0,e[0]]},convert.gray.hsv=convert.gray.hsl,convert.gray.hwb=function(e){return[0,100,e[0]]},convert.gray.cmyk=function(e){return[0,0,0,e[0]]},convert.gray.lab=function(e){return[e[0],0,0]},convert.gray.hex=function(e){const u=255&Math.round(e[0]/100*255),t=((u<<16)+(u<<8)+u).toString(16).toUpperCase();return"000000".substring(t.length)+t},convert.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};var route=function(e){const u=deriveBFS(e),t={},D=Object.keys(u);for(let e=D.length,r=0;r<e;r++){const e=D[r];null!==u[e].parent&&(t[e]=wrapConversion(e,u))}return t};const convert$1={},models=Object.keys(conversions);function wrapRaw(e){const u=function(...u){const t=u[0];return null==t?t:(t.length>1&&(u=t),e(u))};return"conversion"in e&&(u.conversion=e.conversion),u}function wrapRounded(e){const u=function(...u){const t=u[0];if(null==t)return t;t.length>1&&(u=t);const D=e(u);if("object"==typeof D)for(let e=D.length,u=0;u<e;u++)D[u]=Math.round(D[u]);return D};return"conversion"in e&&(u.conversion=e.conversion),u}models.forEach(e=>{convert$1[e]={},Object.defineProperty(convert$1[e],"channels",{value:conversions[e].channels}),Object.defineProperty(convert$1[e],"labels",{value:conversions[e].labels});const u=route(e);Object.keys(u).forEach(t=>{const D=u[t];convert$1[e][t]=wrapRounded(D),convert$1[e][t].raw=wrapRaw(D)})});var colorConvert=convert$1,ansiStyles=createCommonjsModule(function(e){const u=(e,u)=>(...t)=>{return`[${e(...t)+u}m`},t=(e,u)=>(...t)=>{const D=e(...t);return`[${38+u};5;${D}m`},D=(e,u)=>(...t)=>{const D=e(...t);return`[${38+u};2;${D[0]};${D[1]};${D[2]}m`},r=e=>e,n=(e,u,t)=>[e,u,t],o=(e,u,t)=>{Object.defineProperty(e,u,{get:()=>{const D=t();return Object.defineProperty(e,u,{value:D,enumerable:!0,configurable:!0}),D},enumerable:!0,configurable:!0})};let s;const i=(e,u,t,D)=>{void 0===s&&(s=colorConvert);const r=D?10:0,n={};for(const[D,o]of Object.entries(s)){const s="ansi16"===D?"ansi":D;D===u?n[s]=e(t,r):"object"==typeof o&&(n[s]=e(o[u],r))}return n};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,s={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]}};s.color.gray=s.color.blackBright,s.bgColor.bgGray=s.bgColor.bgBlackBright,s.color.grey=s.color.blackBright,s.bgColor.bgGrey=s.bgColor.bgBlackBright;for(const[u,t]of Object.entries(s)){for(const[u,D]of Object.entries(t))s[u]={open:`[${D[0]}m`,close:`[${D[1]}m`},t[u]=s[u],e.set(D[0],D[1]);Object.defineProperty(s,u,{value:t,enumerable:!1})}return Object.defineProperty(s,"codes",{value:e,enumerable:!1}),s.color.close="[39m",s.bgColor.close="[49m",o(s.color,"ansi",()=>i(u,"ansi16",r,!1)),o(s.color,"ansi256",()=>i(t,"ansi256",r,!1)),o(s.color,"ansi16m",()=>i(D,"rgb",n,!1)),o(s.bgColor,"ansi",()=>i(u,"ansi16",r,!0)),o(s.bgColor,"ansi256",()=>i(t,"ansi256",r,!0)),o(s.bgColor,"ansi16m",()=>i(D,"rgb",n,!0)),s}})}),hasFlag=(e,u=process.argv)=>{const t=e.startsWith("-")?"":1===e.length?"-":"--",D=u.indexOf(t+e),r=u.indexOf("--");return-1!==D&&(-1===r||D<r)};const{env:env$1}=process;let forceColor;function translateLevel(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function supportsColor(e,u){if(0===forceColor)return 0;if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor"))return 3;if(hasFlag("color=256"))return 2;if(e&&!u&&void 0===forceColor)return 0;const t=forceColor||0;if("dumb"===env$1.TERM)return t;if("win32"===process.platform){const e=os.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in env$1)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in env$1)||"codeship"===env$1.CI_NAME?1:t;if("TEAMCITY_VERSION"in env$1)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env$1.TEAMCITY_VERSION)?1:0;if("GITHUB_ACTIONS"in env$1)return 1;if("truecolor"===env$1.COLORTERM)return 3;if("TERM_PROGRAM"in env$1){const e=parseInt((env$1.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(env$1.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(env$1.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env$1.TERM)?1:"COLORTERM"in env$1?1:t}function getSupportLevel(e){return translateLevel(supportsColor(e,e&&e.isTTY))}hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")||hasFlag("color=never")?forceColor=0:(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always"))&&(forceColor=1),"FORCE_COLOR"in env$1&&(forceColor="true"===env$1.FORCE_COLOR?1:"false"===env$1.FORCE_COLOR?0:0===env$1.FORCE_COLOR.length?1:Math.min(parseInt(env$1.FORCE_COLOR,10),3));var supportsColor_1={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(!0,tty$1.isatty(1))),stderr:translateLevel(supportsColor(!0,tty$1.isatty(2)))};const stringReplaceAll=(e,u,t)=>{let D=e.indexOf(u);if(-1===D)return e;const r=u.length;let n=0,o="";do{o+=e.substr(n,D-n)+u+t,n=D+r,D=e.indexOf(u,n)}while(-1!==D);return o+=e.substr(n)},stringEncaseCRLFWithFirstIndex=(e,u,t,D)=>{let r=0,n="";do{const o="\r"===e[D-1];n+=e.substr(r,(o?D-1:D)-r)+u+(o?"\r\n":"\n")+t,r=D+1,D=e.indexOf("\n",r)}while(-1!==D);return n+=e.substr(r)};var util={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex};const TEMPLATE_REGEX=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,STYLE_REGEX=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,STRING_REGEX=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,ESCAPE_REGEX=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,ESCAPES=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){const u="u"===e[0],t="{"===e[1];return u&&!t&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):u&&t?String.fromCodePoint(parseInt(e.slice(2,-1),16)):ESCAPES.get(e)||e}function parseArguments(e,u){const t=[],D=u.trim().split(/\s*,\s*/g);let r;for(const u of D){const D=Number(u);if(Number.isNaN(D)){if(!(r=u.match(STRING_REGEX)))throw new Error(`Invalid Chalk template style argument: ${u} (in style '${e}')`);t.push(r[2].replace(ESCAPE_REGEX,(e,u,t)=>u?unescape(u):t))}else t.push(D)}return t}function parseStyle(e){STYLE_REGEX.lastIndex=0;const u=[];let t;for(;null!==(t=STYLE_REGEX.exec(e));){const e=t[1];if(t[2]){const D=parseArguments(e,t[2]);u.push([e].concat(D))}else u.push([e])}return u}function buildStyle(e,u){const t={};for(const e of u)for(const u of e.styles)t[u[0]]=e.inverse?null:u.slice(1);let D=e;for(const[e,u]of Object.entries(t))if(Array.isArray(u)){if(!(e in D))throw new Error(`Unknown Chalk style: ${e}`);D=u.length>0?D[e](...u):D[e]}return D}var templates=(e,u)=>{const t=[],D=[];let r=[];if(u.replace(TEMPLATE_REGEX,(u,n,o,s,i,a)=>{if(n)r.push(unescape(n));else if(s){const u=r.join("");r=[],D.push(0===t.length?u:buildStyle(e,t)(u)),t.push({inverse:o,styles:parseStyle(s)})}else if(i){if(0===t.length)throw new Error("Found extraneous } in Chalk template literal");D.push(buildStyle(e,t)(r.join(""))),r=[],t.pop()}else r.push(a)}),D.push(r.join("")),t.length>0){const e=`Chalk template literal is missing ${t.length} closing bracket${1===t.length?"":"s"} (\`}\`)`;throw new Error(e)}return D.join("")};const{stdout:stdoutColor,stderr:stderrColor}=supportsColor_1,{stringReplaceAll:stringReplaceAll$1,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex$1}=util,levelMapping=["ansi","ansi","ansi256","ansi16m"],styles=Object.create(null),applyOptions=(e,u={})=>{if(u.level>3||u.level<0)throw new Error("The `level` option should be an integer from 0 to 3");const t=stdoutColor?stdoutColor.level:0;e.level=void 0===u.level?t:u.level};class ChalkClass{constructor(e){return chalkFactory(e)}}const chalkFactory=e=>{const u={};return applyOptions(u,e),u.template=((...e)=>chalkTag(u.template,...e)),Object.setPrototypeOf(u,Chalk.prototype),Object.setPrototypeOf(u.template,u),u.template.constructor=(()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")}),u.template.Instance=ChalkClass,u.template};function Chalk(e){return chalkFactory(e)}for(const[e,u]of Object.entries(ansiStyles))styles[e]={get(){const t=createBuilder(this,createStyler(u.open,u.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:t}),t}};styles.visible={get(){const e=createBuilder(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const usedModels=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const e of usedModels)styles[e]={get(){const{level:u}=this;return function(...t){const D=createStyler(ansiStyles.color[levelMapping[u]][e](...t),ansiStyles.color.close,this._styler);return createBuilder(this,D,this._isEmpty)}}};for(const e of usedModels){styles["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const{level:u}=this;return function(...t){const D=createStyler(ansiStyles.bgColor[levelMapping[u]][e](...t),ansiStyles.bgColor.close,this._styler);return createBuilder(this,D,this._isEmpty)}}}}const proto=Object.defineProperties(()=>{},{...styles,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),createStyler=(e,u,t)=>{let D,r;return void 0===t?(D=e,r=u):(D=t.openAll+e,r=u+t.closeAll),{open:e,close:u,openAll:D,closeAll:r,parent:t}},createBuilder=(e,u,t)=>{const D=(...e)=>applyStyle(D,1===e.length?""+e[0]:e.join(" "));return D.__proto__=proto,D._generator=e,D._styler=u,D._isEmpty=t,D},applyStyle=(e,u)=>{if(e.level<=0||!u)return e._isEmpty?"":u;let t=e._styler;if(void 0===t)return u;const{openAll:D,closeAll:r}=t;if(-1!==u.indexOf(""))for(;void 0!==t;)u=stringReplaceAll$1(u,t.close,t.open),t=t.parent;const n=u.indexOf("\n");return-1!==n&&(u=stringEncaseCRLFWithFirstIndex$1(u,r,D,n)),D+u+r};let template;const chalkTag=(e,...u)=>{const[t]=u;if(!Array.isArray(t))return u.join(" ");const D=u.slice(1),r=[t.raw[0]];for(let e=1;e<t.length;e++)r.push(String(D[e-1]).replace(/[{}\\]/g,"\\$&"),String(t.raw[e]));return void 0===template&&(template=templates),template(e,r.join(""))};Object.defineProperties(Chalk.prototype,styles);const chalk=Chalk();chalk.supportsColor=stdoutColor,chalk.stderr=Chalk({level:stderrColor?stderrColor.level:0}),chalk.stderr.supportsColor=stderrColor,chalk.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"};var source=chalk;const _colorCache={};function chalkColor(e){let u=_colorCache[e];return u||(u="#"===e[0]?source.hex(e):source[e]||source.keyword(e),_colorCache[e]=u,u)}const _bgColorCache={};function chalkBgColor(e){let u=_bgColorCache[e];return u||(u="#"===e[0]?source.bgHex(e):source["bg"+e[0].toUpperCase()+e.slice(1)]||source.bgKeyword(e),_bgColorCache[e]=u,u)}const TYPE_COLOR_MAP={info:"cyan"},LEVEL_COLOR_MAP={0:"red",1:"yellow",2:"white",3:"green"},DEFAULTS$1={secondaryColor:"grey",formatOptions:{colors:!0,compact:!1}},TYPE_ICONS={info:figures_1("ℹ"),success:figures_1("✔"),debug:figures_1("›"),trace:figures_1("›"),log:""};class FancyReporter extends BasicReporter{constructor(e){super(Object.assign({},DEFAULTS$1,e))}formatStack(e){const u=chalkColor("grey"),t=chalkColor("cyan");return"\n"+parseStack(e).map(e=>" "+e.replace(/^at +/,e=>u(e)).replace(/\((.+)\)/,(e,u)=>`(${t(u)})`)).join("\n")}formatType(e,u){const t=TYPE_COLOR_MAP[e.type]||LEVEL_COLOR_MAP[e.level]||this.options.secondaryColor;if(u)return chalkBgColor(t).black(` ${e.type.toUpperCase()} `);const D="string"==typeof TYPE_ICONS[e.type]?TYPE_ICONS[e.type]:e.icon||e.type;return D?chalkColor(t)(D):""}formatLogObj(e,{width:u}){const[t,...D]=this.formatArgs(e.args).split("\n"),r=void 0!==e.badge?Boolean(e.badge):e.level<2,n=chalkColor(this.options.secondaryColor),o=n(this.formatDate(e.date)),s=this.formatType(e,r),i=e.tag?n(e.tag):"",a=t.replace(/`([^`]+)`/g,(e,u)=>source.cyan(u));let l;const c=this.filterAndJoin([s,a]),h=this.filterAndJoin([i,o]),C=u-stringWidth_1(c)-stringWidth_1(h)-2;return l=C>0&&u>=80?c+" ".repeat(C)+h:c,l+=D.length?"\n"+D.join("\n"):"",r?"\n"+l+"\n":l}}class JSONReporter{constructor({stream:e}={}){this.stream=e||process.stdout}log(e){this.stream.write(JSON.stringify(e)+"\n")}}const _require="undefined"!=typeof __non_webpack_require__?__non_webpack_require__:require;class WinstonReporter{constructor(e){if(e&&e.log)this.logger=e;else{const u=_require("winston");this.logger=u.createLogger(Object.assign({level:"info",format:u.format.simple(),transports:[new u.transports.Console]},e))}}log(e){const u=[].concat(e.args),t=u.shift();this.logger.log({level:levels[e.level]||"info",label:e.tag,message:t,args:u,timestamp:e.date.getTime()/1e3})}}const levels={0:"error",1:"warn",2:"info",3:"verbose",4:"debug",5:"silly"};function createConsola(){let e=stdEnv.debug?4:3;process.env.CONSOLA_LEVEL&&(e=parseInt(process.env.CONSOLA_LEVEL)||e);const u=new Consola({level:e,reporters:[stdEnv.ci||stdEnv.test?new BasicReporter:new FancyReporter]});return u.Consola=Consola,u.BasicReporter=BasicReporter,u.FancyReporter=FancyReporter,u.JSONReporter=JSONReporter,u.WinstonReporter=WinstonReporter,u}global.consola||(global.consola=createConsola());var node=global.consola;module.exports=node;
|