@serverless-devs/s 2.0.101 → 2.0.102-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,13 +12,13 @@
12
12
  `)}helpInformation(){if(this._name==="s")return"";let e=[];if(this._description){e=[this._description,""];let c=this._argsDescription;if(c&&this._args.length){let o=this.padWidth(),h=(process.stdout.columns||80)-o-5;e.push("Arguments:"),this._args.forEach(m=>{e.push(" "+tt(m.name,o)+" "+jt(c[m.name]||"",h,o+4))}),e.push("")}}let t=this._name;this._aliases[0]&&(t=t+"|"+this._aliases[0]);let n="";for(let c=this.parent;c;c=c.parent)n=c.name()+" "+n;let s=["Usage: "+n+t+" "+this.usage(),""],i=[],a=this.commandHelp();a&&(i=[a]);let l=[];return(this._hasHelpOption||this.options.length>0)&&(l=["Options:",""+this.optionHelp().replace(/^/gm," "),""]),s.concat(e).concat(l).concat(i).join(`
13
13
  `)}outputHelp(e){e||(e=n=>n);let t=e(this.helpInformation());if(typeof t!="string"&&!Buffer.isBuffer(t))throw new Error("outputHelp callback must return a string or a Buffer");process.stdout.write(t),this.emit(this._helpLongFlag)}helpOption(e,t){if(typeof e=="boolean")return this._hasHelpOption=e,this;this._helpFlags=e||this._helpFlags,this._helpDescription=t||this._helpDescription;let n=Pt(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(e){this.outputHelp(e),this._exit(process.exitCode||0,"commander.help","(outputHelp)")}_helpAndError(){this.outputHelp(),this._exit(1,"commander.help","(outputHelp)")}};B=Ft.exports=new ve;B.program=B;B.Command=ve;B.Option=Te;B.CommanderError=ge;function bi(r){return r.split("-").reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}function tt(r,e){let t=Math.max(0,e-r.length);return r+Array(t+1).join(" ")}function jt(r,e,t){let n=new RegExp(".{1,"+(e-1)+"}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)","g");return(r.match(n)||[]).map((i,a)=>(i.slice(-1)===`
14
14
  `&&(i=i.slice(0,i.length-1)),(a>0&&t?Array(t+1).join(" "):"")+i.trimRight())).join(`
15
- `)}function qt(r,e,t){return r.match(/[\n]\s+/)||e<40?r:jt(r,e,t)}function Lt(r,e){r._hasHelpOption&&e.find(n=>n===r._helpLongFlag||n===r._helpShortFlag)&&(r.outputHelp(),r._exit(0,"commander.helpDisplayed","(outputHelp)"))}function Nt(r){let e=r.name+(r.variadic===!0?"...":"");return r.required?"<"+e+">":"["+e+"]"}function Pt(r){let e,t,n=r.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),t=n.shift(),!e&&/^-[^-]$/.test(t)&&(e=t,t=void 0),{shortFlag:e,longFlag:t}}function Tt(r){return r.map(e=>{if(!e.startsWith("--inspect"))return e;let t,n="127.0.0.1",s="9229",i;return(i=e.match(/^(--inspect(-brk)?)$/))!==null?t=i[1]:(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=i[1],/^\d+$/.test(i[3])?s=i[3]:n=i[3]):(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=i[1],n=i[3],s=i[4]),t&&s!=="0"?`${t}=${n}:${parseInt(s)+1}`:e})}});var _e=f((Rl,kt)=>{var wi="2.0.0",Oi=Number.MAX_SAFE_INTEGER||9007199254740991,Si=16;kt.exports={SEMVER_SPEC_VERSION:wi,MAX_LENGTH:256,MAX_SAFE_INTEGER:Oi,MAX_SAFE_COMPONENT_LENGTH:Si}});var ye=f(($l,Mt)=>{var Ai=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};Mt.exports=Ai});var W=f((K,Gt)=>{var{MAX_SAFE_COMPONENT_LENGTH:rt}=_e(),Ii=ye();K=Gt.exports={};var Ci=K.re=[],p=K.src=[],d=K.t={},Ri=0,_=(r,e,t)=>{let n=Ri++;Ii(n,e),d[r]=n,p[n]=e,Ci[n]=new RegExp(e,t?"g":void 0)};_("NUMERICIDENTIFIER","0|[1-9]\\d*");_("NUMERICIDENTIFIERLOOSE","[0-9]+");_("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");_("MAINVERSION",`(${p[d.NUMERICIDENTIFIER]})\\.(${p[d.NUMERICIDENTIFIER]})\\.(${p[d.NUMERICIDENTIFIER]})`);_("MAINVERSIONLOOSE",`(${p[d.NUMERICIDENTIFIERLOOSE]})\\.(${p[d.NUMERICIDENTIFIERLOOSE]})\\.(${p[d.NUMERICIDENTIFIERLOOSE]})`);_("PRERELEASEIDENTIFIER",`(?:${p[d.NUMERICIDENTIFIER]}|${p[d.NONNUMERICIDENTIFIER]})`);_("PRERELEASEIDENTIFIERLOOSE",`(?:${p[d.NUMERICIDENTIFIERLOOSE]}|${p[d.NONNUMERICIDENTIFIER]})`);_("PRERELEASE",`(?:-(${p[d.PRERELEASEIDENTIFIER]}(?:\\.${p[d.PRERELEASEIDENTIFIER]})*))`);_("PRERELEASELOOSE",`(?:-?(${p[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${p[d.PRERELEASEIDENTIFIERLOOSE]})*))`);_("BUILDIDENTIFIER","[0-9A-Za-z-]+");_("BUILD",`(?:\\+(${p[d.BUILDIDENTIFIER]}(?:\\.${p[d.BUILDIDENTIFIER]})*))`);_("FULLPLAIN",`v?${p[d.MAINVERSION]}${p[d.PRERELEASE]}?${p[d.BUILD]}?`);_("FULL",`^${p[d.FULLPLAIN]}$`);_("LOOSEPLAIN",`[v=\\s]*${p[d.MAINVERSIONLOOSE]}${p[d.PRERELEASELOOSE]}?${p[d.BUILD]}?`);_("LOOSE",`^${p[d.LOOSEPLAIN]}$`);_("GTLT","((?:<|>)?=?)");_("XRANGEIDENTIFIERLOOSE",`${p[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);_("XRANGEIDENTIFIER",`${p[d.NUMERICIDENTIFIER]}|x|X|\\*`);_("XRANGEPLAIN",`[v=\\s]*(${p[d.XRANGEIDENTIFIER]})(?:\\.(${p[d.XRANGEIDENTIFIER]})(?:\\.(${p[d.XRANGEIDENTIFIER]})(?:${p[d.PRERELEASE]})?${p[d.BUILD]}?)?)?`);_("XRANGEPLAINLOOSE",`[v=\\s]*(${p[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[d.XRANGEIDENTIFIERLOOSE]})(?:${p[d.PRERELEASELOOSE]})?${p[d.BUILD]}?)?)?`);_("XRANGE",`^${p[d.GTLT]}\\s*${p[d.XRANGEPLAIN]}$`);_("XRANGELOOSE",`^${p[d.GTLT]}\\s*${p[d.XRANGEPLAINLOOSE]}$`);_("COERCE",`(^|[^\\d])(\\d{1,${rt}})(?:\\.(\\d{1,${rt}}))?(?:\\.(\\d{1,${rt}}))?(?:$|[^\\d])`);_("COERCERTL",p[d.COERCE],!0);_("LONETILDE","(?:~>?)");_("TILDETRIM",`(\\s*)${p[d.LONETILDE]}\\s+`,!0);K.tildeTrimReplace="$1~";_("TILDE",`^${p[d.LONETILDE]}${p[d.XRANGEPLAIN]}$`);_("TILDELOOSE",`^${p[d.LONETILDE]}${p[d.XRANGEPLAINLOOSE]}$`);_("LONECARET","(?:\\^)");_("CARETTRIM",`(\\s*)${p[d.LONECARET]}\\s+`,!0);K.caretTrimReplace="$1^";_("CARET",`^${p[d.LONECARET]}${p[d.XRANGEPLAIN]}$`);_("CARETLOOSE",`^${p[d.LONECARET]}${p[d.XRANGEPLAINLOOSE]}$`);_("COMPARATORLOOSE",`^${p[d.GTLT]}\\s*(${p[d.LOOSEPLAIN]})$|^$`);_("COMPARATOR",`^${p[d.GTLT]}\\s*(${p[d.FULLPLAIN]})$|^$`);_("COMPARATORTRIM",`(\\s*)${p[d.GTLT]}\\s*(${p[d.LOOSEPLAIN]}|${p[d.XRANGEPLAIN]})`,!0);K.comparatorTrimReplace="$1$2$3";_("HYPHENRANGE",`^\\s*(${p[d.XRANGEPLAIN]})\\s+-\\s+(${p[d.XRANGEPLAIN]})\\s*$`);_("HYPHENRANGELOOSE",`^\\s*(${p[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${p[d.XRANGEPLAINLOOSE]})\\s*$`);_("STAR","(<|>)?=?\\s*\\*");_("GTE0","^\\s*>=\\s*0.0.0\\s*$");_("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var Ee=f((Dl,Kt)=>{var $i=["includePrerelease","loose","rtl"],Di=r=>r?typeof r!="object"?{loose:!0}:$i.filter(e=>r[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};Kt.exports=Di});var je=f((xl,Xt)=>{var Vt=/^[0-9]+$/,Ut=(r,e)=>{let t=Vt.test(r),n=Vt.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},xi=(r,e)=>Ut(e,r);Xt.exports={compareIdentifiers:Ut,rcompareIdentifiers:xi}});var S=f((ql,Yt)=>{var Pe=ye(),{MAX_LENGTH:Bt,MAX_SAFE_INTEGER:Fe}=_e(),{re:Wt,t:zt}=W(),qi=Ee(),{compareIdentifiers:be}=je(),L=class{constructor(e,t){if(t=qi(t),e instanceof L){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>Bt)throw new TypeError(`version is longer than ${Bt} characters`);Pe("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?Wt[zt.LOOSE]:Wt[zt.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Fe||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Fe||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Fe||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<Fe)return i}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Pe("SemVer.compare",this.version,this.options,e),!(e instanceof L)){if(typeof e=="string"&&e===this.version)return 0;e=new L(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof L||(e=new L(e,this.options)),be(this.major,e.major)||be(this.minor,e.minor)||be(this.patch,e.patch)}comparePre(e){if(e instanceof L||(e=new L(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(Pe("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return be(n,s)}while(++t)}compareBuild(e){e instanceof L||(e=new L(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(Pe("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return be(n,s)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};Yt.exports=L});var z=f((Ll,er)=>{var{MAX_LENGTH:Li}=_e(),{re:Zt,t:Jt}=W(),Qt=S(),Ni=Ee(),Ti=(r,e)=>{if(e=Ni(e),r instanceof Qt)return r;if(typeof r!="string"||r.length>Li||!(e.loose?Zt[Jt.LOOSE]:Zt[Jt.FULL]).test(r))return null;try{return new Qt(r,e)}catch{return null}};er.exports=Ti});var rr=f((Nl,tr)=>{var ji=z(),Pi=(r,e)=>{let t=ji(r,e);return t?t.version:null};tr.exports=Pi});var ir=f((Tl,nr)=>{var Fi=z(),Hi=(r,e)=>{let t=Fi(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};nr.exports=Hi});var or=f((jl,sr)=>{var ki=S(),Mi=(r,e,t,n)=>{typeof t=="string"&&(n=t,t=void 0);try{return new ki(r,t).inc(e,n).version}catch{return null}};sr.exports=Mi});var N=f((Pl,lr)=>{var ar=S(),Gi=(r,e,t)=>new ar(r,t).compare(new ar(e,t));lr.exports=Gi});var He=f((Fl,cr)=>{var Ki=N(),Vi=(r,e,t)=>Ki(r,e,t)===0;cr.exports=Vi});var fr=f((Hl,hr)=>{var ur=z(),Ui=He(),Xi=(r,e)=>{if(Ui(r,e))return null;{let t=ur(r),n=ur(e),s=t.prerelease.length||n.prerelease.length,i=s?"pre":"",a=s?"prerelease":"";for(let l in t)if((l==="major"||l==="minor"||l==="patch")&&t[l]!==n[l])return i+l;return a}};hr.exports=Xi});var dr=f((kl,pr)=>{var Bi=S(),Wi=(r,e)=>new Bi(r,e).major;pr.exports=Wi});var gr=f((Ml,mr)=>{var zi=S(),Yi=(r,e)=>new zi(r,e).minor;mr.exports=Yi});var _r=f((Gl,vr)=>{var Zi=S(),Ji=(r,e)=>new Zi(r,e).patch;vr.exports=Ji});var Er=f((Kl,yr)=>{var Qi=z(),es=(r,e)=>{let t=Qi(r,e);return t&&t.prerelease.length?t.prerelease:null};yr.exports=es});var wr=f((Vl,br)=>{var ts=N(),rs=(r,e,t)=>ts(e,r,t);br.exports=rs});var Sr=f((Ul,Or)=>{var ns=N(),is=(r,e)=>ns(r,e,!0);Or.exports=is});var ke=f((Xl,Ir)=>{var Ar=S(),ss=(r,e,t)=>{let n=new Ar(r,t),s=new Ar(e,t);return n.compare(s)||n.compareBuild(s)};Ir.exports=ss});var Rr=f((Bl,Cr)=>{var os=ke(),as=(r,e)=>r.sort((t,n)=>os(t,n,e));Cr.exports=as});var Dr=f((Wl,$r)=>{var ls=ke(),cs=(r,e)=>r.sort((t,n)=>ls(n,t,e));$r.exports=cs});var we=f((zl,xr)=>{var us=N(),hs=(r,e,t)=>us(r,e,t)>0;xr.exports=hs});var Me=f((Yl,qr)=>{var fs=N(),ps=(r,e,t)=>fs(r,e,t)<0;qr.exports=ps});var nt=f((Zl,Lr)=>{var ds=N(),ms=(r,e,t)=>ds(r,e,t)!==0;Lr.exports=ms});var Ge=f((Jl,Nr)=>{var gs=N(),vs=(r,e,t)=>gs(r,e,t)>=0;Nr.exports=vs});var Ke=f((Ql,Tr)=>{var _s=N(),ys=(r,e,t)=>_s(r,e,t)<=0;Tr.exports=ys});var it=f((ec,jr)=>{var Es=He(),bs=nt(),ws=we(),Os=Ge(),Ss=Me(),As=Ke(),Is=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return Es(r,t,n);case"!=":return bs(r,t,n);case">":return ws(r,t,n);case">=":return Os(r,t,n);case"<":return Ss(r,t,n);case"<=":return As(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};jr.exports=Is});var Fr=f((tc,Pr)=>{var Cs=S(),Rs=z(),{re:Ve,t:Ue}=W(),$s=(r,e)=>{if(r instanceof Cs)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(Ve[Ue.COERCE]);else{let n;for(;(n=Ve[Ue.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||n.index+n[0].length!==t.index+t[0].length)&&(t=n),Ve[Ue.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;Ve[Ue.COERCERTL].lastIndex=-1}return t===null?null:Rs(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};Pr.exports=$s});var kr=f((rc,Hr)=>{"use strict";Hr.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Gr=f((nc,Mr)=>{"use strict";Mr.exports=y;y.Node=Y;y.create=y;function y(r){var e=this;if(e instanceof y||(e=new y),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var t=0,n=arguments.length;t<n;t++)e.push(arguments[t]);return e}y.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var e=r.next,t=r.prev;return e&&(e.prev=t),t&&(t.next=e),r===this.head&&(this.head=e),r===this.tail&&(this.tail=t),r.list.length--,r.next=null,r.prev=null,r.list=null,e};y.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var e=this.head;r.list=this,r.next=e,e&&(e.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}};y.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var e=this.tail;r.list=this,r.prev=e,e&&(e.next=r),this.tail=r,this.head||(this.head=r),this.length++}};y.prototype.push=function(){for(var r=0,e=arguments.length;r<e;r++)xs(this,arguments[r]);return this.length};y.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)qs(this,arguments[r]);return this.length};y.prototype.pop=function(){if(!!this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}};y.prototype.shift=function(){if(!!this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}};y.prototype.forEach=function(r,e){e=e||this;for(var t=this.head,n=0;t!==null;n++)r.call(e,t.value,n,this),t=t.next};y.prototype.forEachReverse=function(r,e){e=e||this;for(var t=this.tail,n=this.length-1;t!==null;n--)r.call(e,t.value,n,this),t=t.prev};y.prototype.get=function(r){for(var e=0,t=this.head;t!==null&&e<r;e++)t=t.next;if(e===r&&t!==null)return t.value};y.prototype.getReverse=function(r){for(var e=0,t=this.tail;t!==null&&e<r;e++)t=t.prev;if(e===r&&t!==null)return t.value};y.prototype.map=function(r,e){e=e||this;for(var t=new y,n=this.head;n!==null;)t.push(r.call(e,n.value,this)),n=n.next;return t};y.prototype.mapReverse=function(r,e){e=e||this;for(var t=new y,n=this.tail;n!==null;)t.push(r.call(e,n.value,this)),n=n.prev;return t};y.prototype.reduce=function(r,e){var t,n=this.head;if(arguments.length>1)t=e;else if(this.head)n=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;n!==null;s++)t=r(t,n.value,s),n=n.next;return t};y.prototype.reduceReverse=function(r,e){var t,n=this.tail;if(arguments.length>1)t=e;else if(this.tail)n=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;n!==null;s--)t=r(t,n.value,s),n=n.prev;return t};y.prototype.toArray=function(){for(var r=new Array(this.length),e=0,t=this.head;t!==null;e++)r[e]=t.value,t=t.next;return r};y.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,t=this.tail;t!==null;e++)r[e]=t.value,t=t.prev;return r};y.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new y;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=0,s=this.head;s!==null&&n<r;n++)s=s.next;for(;s!==null&&n<e;n++,s=s.next)t.push(s.value);return t};y.prototype.sliceReverse=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new y;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=this.length,s=this.tail;s!==null&&n>e;n--)s=s.prev;for(;s!==null&&n>r;n--,s=s.prev)t.push(s.value);return t};y.prototype.splice=function(r,e,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var n=0,s=this.head;s!==null&&n<r;n++)s=s.next;for(var i=[],n=0;s&&n<e;n++)i.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var n=0;n<t.length;n++)s=Ds(this,s,t[n]);return i};y.prototype.reverse=function(){for(var r=this.head,e=this.tail,t=r;t!==null;t=t.prev){var n=t.prev;t.prev=t.next,t.next=n}return this.head=e,this.tail=r,this};function Ds(r,e,t){var n=e===r.head?new Y(t,null,e,r):new Y(t,e,e.next,r);return n.next===null&&(r.tail=n),n.prev===null&&(r.head=n),r.length++,n}function xs(r,e){r.tail=new Y(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function qs(r,e){r.head=new Y(e,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function Y(r,e,t,n){if(!(this instanceof Y))return new Y(r,e,t,n);this.list=n,this.value=r,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{kr()(y)}catch{}});var zr=f((ic,Wr)=>{"use strict";var Ls=Gr(),Z=Symbol("max"),M=Symbol("length"),te=Symbol("lengthCalculator"),Se=Symbol("allowStale"),J=Symbol("maxAge"),k=Symbol("dispose"),Kr=Symbol("noDisposeOnSet"),w=Symbol("lruList"),j=Symbol("cache"),Ur=Symbol("updateAgeOnGet"),st=()=>1,Xr=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[Z]=e.max||1/0,n=e.length||st;if(this[te]=typeof n!="function"?st:n,this[Se]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[J]=e.maxAge||0,this[k]=e.dispose,this[Kr]=e.noDisposeOnSet||!1,this[Ur]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Z]=e||1/0,Oe(this)}get max(){return this[Z]}set allowStale(e){this[Se]=!!e}get allowStale(){return this[Se]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[J]=e,Oe(this)}get maxAge(){return this[J]}set lengthCalculator(e){typeof e!="function"&&(e=st),e!==this[te]&&(this[te]=e,this[M]=0,this[w].forEach(t=>{t.length=this[te](t.value,t.key),this[M]+=t.length})),Oe(this)}get lengthCalculator(){return this[te]}get length(){return this[M]}get itemCount(){return this[w].length}rforEach(e,t){t=t||this;for(let n=this[w].tail;n!==null;){let s=n.prev;Vr(this,e,n,t),n=s}}forEach(e,t){t=t||this;for(let n=this[w].head;n!==null;){let s=n.next;Vr(this,e,n,t),n=s}}keys(){return this[w].toArray().map(e=>e.key)}values(){return this[w].toArray().map(e=>e.value)}reset(){this[k]&&this[w]&&this[w].length&&this[w].forEach(e=>this[k](e.key,e.value)),this[j]=new Map,this[w]=new Ls,this[M]=0}dump(){return this[w].map(e=>Xe(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[w]}set(e,t,n){if(n=n||this[J],n&&typeof n!="number")throw new TypeError("maxAge must be a number");let s=n?Date.now():0,i=this[te](t,e);if(this[j].has(e)){if(i>this[Z])return re(this,this[j].get(e)),!1;let c=this[j].get(e).value;return this[k]&&(this[Kr]||this[k](e,c.value)),c.now=s,c.maxAge=n,c.value=t,this[M]+=i-c.length,c.length=i,this.get(e),Oe(this),!0}let a=new Br(e,t,i,s,n);return a.length>this[Z]?(this[k]&&this[k](e,t),!1):(this[M]+=a.length,this[w].unshift(a),this[j].set(e,this[w].head),Oe(this),!0)}has(e){if(!this[j].has(e))return!1;let t=this[j].get(e).value;return!Xe(this,t)}get(e){return ot(this,e,!0)}peek(e){return ot(this,e,!1)}pop(){let e=this[w].tail;return e?(re(this,e),e.value):null}del(e){re(this,this[j].get(e))}load(e){this.reset();let t=Date.now();for(let n=e.length-1;n>=0;n--){let s=e[n],i=s.e||0;if(i===0)this.set(s.k,s.v);else{let a=i-t;a>0&&this.set(s.k,s.v,a)}}}prune(){this[j].forEach((e,t)=>ot(this,t,!1))}},ot=(r,e,t)=>{let n=r[j].get(e);if(n){let s=n.value;if(Xe(r,s)){if(re(r,n),!r[Se])return}else t&&(r[Ur]&&(n.value.now=Date.now()),r[w].unshiftNode(n));return s.value}},Xe=(r,e)=>{if(!e||!e.maxAge&&!r[J])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:r[J]&&t>r[J]},Oe=r=>{if(r[M]>r[Z])for(let e=r[w].tail;r[M]>r[Z]&&e!==null;){let t=e.prev;re(r,e),e=t}},re=(r,e)=>{if(e){let t=e.value;r[k]&&r[k](t.key,t.value),r[M]-=t.length,r[j].delete(t.key),r[w].removeNode(e)}},Br=class{constructor(e,t,n,s,i){this.key=e,this.value=t,this.length=n,this.now=s,this.maxAge=i||0}},Vr=(r,e,t,n)=>{let s=t.value;Xe(r,s)&&(re(r,t),r[Se]||(s=void 0)),s&&e.call(n,s.value,s.key,r)};Wr.exports=Xr});var T=f((sc,Qr)=>{var ne=class{constructor(e,t){if(t=Ts(t),e instanceof ne)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ne(e.raw,t);if(e instanceof at)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!Zr(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&ks(s[0])){this.set=[s];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let n=`parseRange:${Object.keys(this.options).join(",")}:${e}`,s=Yr.get(n);if(s)return s;let i=this.options.loose,a=i?A[O.HYPHENRANGELOOSE]:A[O.HYPHENRANGE];e=e.replace(a,Ys(this.options.includePrerelease)),b("hyphen replace",e),e=e.replace(A[O.COMPARATORTRIM],Ps),b("comparator trim",e,A[O.COMPARATORTRIM]),e=e.replace(A[O.TILDETRIM],Fs),e=e.replace(A[O.CARETTRIM],Hs),e=e.split(/\s+/).join(" ");let l=i?A[O.COMPARATORLOOSE]:A[O.COMPARATOR],c=e.split(" ").map(m=>Ms(m,this.options)).join(" ").split(/\s+/).map(m=>zs(m,this.options)).filter(this.options.loose?m=>!!m.match(l):()=>!0).map(m=>new at(m,this.options)),o=c.length,u=new Map;for(let m of c){if(Zr(m))return[m];u.set(m.value,m)}u.size>1&&u.has("")&&u.delete("");let h=[...u.values()];return Yr.set(n,h),h}intersects(e,t){if(!(e instanceof ne))throw new TypeError("a Range is required");return this.set.some(n=>Jr(n,t)&&e.set.some(s=>Jr(s,t)&&n.every(i=>s.every(a=>i.intersects(a,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new js(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Zs(this.set[t],e,this.options))return!0;return!1}};Qr.exports=ne;var Ns=zr(),Yr=new Ns({max:1e3}),Ts=Ee(),at=Ae(),b=ye(),js=S(),{re:A,t:O,comparatorTrimReplace:Ps,tildeTrimReplace:Fs,caretTrimReplace:Hs}=W(),Zr=r=>r.value==="<0.0.0-0",ks=r=>r.value==="",Jr=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(i=>s.intersects(i,e)),s=n.pop();return t},Ms=(r,e)=>(b("comp",r,e),r=Vs(r,e),b("caret",r),r=Gs(r,e),b("tildes",r),r=Xs(r,e),b("xrange",r),r=Ws(r,e),b("stars",r),r),$=r=>!r||r.toLowerCase()==="x"||r==="*",Gs=(r,e)=>r.trim().split(/\s+/).map(t=>Ks(t,e)).join(" "),Ks=(r,e)=>{let t=e.loose?A[O.TILDELOOSE]:A[O.TILDE];return r.replace(t,(n,s,i,a,l)=>{b("tilde",r,n,s,i,a,l);let c;return $(s)?c="":$(i)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:$(a)?c=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:l?(b("replaceTilde pr",l),c=`>=${s}.${i}.${a}-${l} <${s}.${+i+1}.0-0`):c=`>=${s}.${i}.${a} <${s}.${+i+1}.0-0`,b("tilde return",c),c})},Vs=(r,e)=>r.trim().split(/\s+/).map(t=>Us(t,e)).join(" "),Us=(r,e)=>{b("caret",r,e);let t=e.loose?A[O.CARETLOOSE]:A[O.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,i,a,l,c)=>{b("caret",r,s,i,a,l,c);let o;return $(i)?o="":$(a)?o=`>=${i}.0.0${n} <${+i+1}.0.0-0`:$(l)?i==="0"?o=`>=${i}.${a}.0${n} <${i}.${+a+1}.0-0`:o=`>=${i}.${a}.0${n} <${+i+1}.0.0-0`:c?(b("replaceCaret pr",c),i==="0"?a==="0"?o=`>=${i}.${a}.${l}-${c} <${i}.${a}.${+l+1}-0`:o=`>=${i}.${a}.${l}-${c} <${i}.${+a+1}.0-0`:o=`>=${i}.${a}.${l}-${c} <${+i+1}.0.0-0`):(b("no pr"),i==="0"?a==="0"?o=`>=${i}.${a}.${l}${n} <${i}.${a}.${+l+1}-0`:o=`>=${i}.${a}.${l}${n} <${i}.${+a+1}.0-0`:o=`>=${i}.${a}.${l} <${+i+1}.0.0-0`),b("caret return",o),o})},Xs=(r,e)=>(b("replaceXRanges",r,e),r.split(/\s+/).map(t=>Bs(t,e)).join(" ")),Bs=(r,e)=>{r=r.trim();let t=e.loose?A[O.XRANGELOOSE]:A[O.XRANGE];return r.replace(t,(n,s,i,a,l,c)=>{b("xRange",r,n,s,i,a,l,c);let o=$(i),u=o||$(a),h=u||$(l),m=h;return s==="="&&m&&(s=""),c=e.includePrerelease?"-0":"",o?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&m?(u&&(a=0),l=0,s===">"?(s=">=",u?(i=+i+1,a=0,l=0):(a=+a+1,l=0)):s==="<="&&(s="<",u?i=+i+1:a=+a+1),s==="<"&&(c="-0"),n=`${s+i}.${a}.${l}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:h&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),b("xRange return",n),n})},Ws=(r,e)=>(b("replaceStars",r,e),r.trim().replace(A[O.STAR],"")),zs=(r,e)=>(b("replaceGTE0",r,e),r.trim().replace(A[e.includePrerelease?O.GTE0PRE:O.GTE0],"")),Ys=r=>(e,t,n,s,i,a,l,c,o,u,h,m,g)=>($(n)?t="":$(s)?t=`>=${n}.0.0${r?"-0":""}`:$(i)?t=`>=${n}.${s}.0${r?"-0":""}`:a?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,$(o)?c="":$(u)?c=`<${+o+1}.0.0-0`:$(h)?c=`<${o}.${+u+1}.0-0`:m?c=`<=${o}.${u}.${h}-${m}`:r?c=`<${o}.${u}.${+h+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),Zs=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(b(r[n].semver),r[n].semver!==at.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var Ae=f((oc,sn)=>{var Ie=Symbol("SemVer ANY"),Ce=class{static get ANY(){return Ie}constructor(e,t){if(t=Js(t),e instanceof Ce){if(e.loose===!!t.loose)return e;e=e.value}ct("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Ie?this.value="":this.value=this.operator+this.semver.version,ct("comp",this)}parse(e){let t=this.options.loose?en[tn.COMPARATORLOOSE]:en[tn.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new rn(n[2],this.options.loose):this.semver=Ie}toString(){return this.value}test(e){if(ct("Comparator.test",e,this.options.loose),this.semver===Ie||e===Ie)return!0;if(typeof e=="string")try{e=new rn(e,this.options)}catch{return!1}return lt(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Ce))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new nn(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new nn(this.value,t).test(e.semver);let n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),i=this.semver.version===e.semver.version,a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),l=lt(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),c=lt(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||s||i&&a||l||c}};sn.exports=Ce;var Js=Ee(),{re:en,t:tn}=W(),lt=it(),ct=ye(),rn=S(),nn=T()});var Re=f((ac,on)=>{var Qs=T(),eo=(r,e,t)=>{try{e=new Qs(e,t)}catch{return!1}return e.test(r)};on.exports=eo});var ln=f((lc,an)=>{var to=T(),ro=(r,e)=>new to(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));an.exports=ro});var un=f((cc,cn)=>{var no=S(),io=T(),so=(r,e,t)=>{let n=null,s=null,i=null;try{i=new io(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new no(n,t))}),n};cn.exports=so});var fn=f((uc,hn)=>{var oo=S(),ao=T(),lo=(r,e,t)=>{let n=null,s=null,i=null;try{i=new ao(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new oo(n,t))}),n};hn.exports=lo});var mn=f((hc,dn)=>{var ut=S(),co=T(),pn=we(),uo=(r,e)=>{r=new co(r,e);let t=new ut("0.0.0");if(r.test(t)||(t=new ut("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){let s=r.set[n],i=null;s.forEach(a=>{let l=new ut(a.semver.version);switch(a.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!i||pn(l,i))&&(i=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!t||pn(t,i))&&(t=i)}return t&&r.test(t)?t:null};dn.exports=uo});var vn=f((fc,gn)=>{var ho=T(),fo=(r,e)=>{try{return new ho(r,e).range||"*"}catch{return null}};gn.exports=fo});var Be=f((pc,bn)=>{var po=S(),En=Ae(),{ANY:mo}=En,go=T(),vo=Re(),_n=we(),yn=Me(),_o=Ke(),yo=Ge(),Eo=(r,e,t,n)=>{r=new po(r,n),e=new go(e,n);let s,i,a,l,c;switch(t){case">":s=_n,i=_o,a=yn,l=">",c=">=";break;case"<":s=yn,i=yo,a=_n,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(vo(r,e,n))return!1;for(let o=0;o<e.set.length;++o){let u=e.set[o],h=null,m=null;if(u.forEach(g=>{g.semver===mo&&(g=new En(">=0.0.0")),h=h||g,m=m||g,s(g.semver,h.semver,n)?h=g:a(g.semver,m.semver,n)&&(m=g)}),h.operator===l||h.operator===c||(!m.operator||m.operator===l)&&i(r,m.semver))return!1;if(m.operator===c&&a(r,m.semver))return!1}return!0};bn.exports=Eo});var On=f((dc,wn)=>{var bo=Be(),wo=(r,e,t)=>bo(r,e,">",t);wn.exports=wo});var An=f((mc,Sn)=>{var Oo=Be(),So=(r,e,t)=>Oo(r,e,"<",t);Sn.exports=So});var Rn=f((gc,Cn)=>{var In=T(),Ao=(r,e,t)=>(r=new In(r,t),e=new In(e,t),r.intersects(e));Cn.exports=Ao});var Dn=f((vc,$n)=>{var Io=Re(),Co=N();$n.exports=(r,e,t)=>{let n=[],s=null,i=null,a=r.sort((u,h)=>Co(u,h,t));for(let u of a)Io(u,e,t)?(i=u,s||(s=u)):(i&&n.push([s,i]),i=null,s=null);s&&n.push([s,null]);let l=[];for(let[u,h]of n)u===h?l.push(u):!h&&u===a[0]?l.push("*"):h?u===a[0]?l.push(`<=${h}`):l.push(`${u} - ${h}`):l.push(`>=${u}`);let c=l.join(" || "),o=typeof e.raw=="string"?e.raw:String(e);return c.length<o.length?c:e}});var Tn=f((_c,Nn)=>{var xn=T(),We=Ae(),{ANY:ht}=We,$e=Re(),ft=N(),Ro=(r,e,t={})=>{if(r===e)return!0;r=new xn(r,t),e=new xn(e,t);let n=!1;e:for(let s of r.set){for(let i of e.set){let a=$o(s,i,t);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},$o=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===ht){if(e.length===1&&e[0].semver===ht)return!0;t.includePrerelease?r=[new We(">=0.0.0-0")]:r=[new We(">=0.0.0")]}if(e.length===1&&e[0].semver===ht){if(t.includePrerelease)return!0;e=[new We(">=0.0.0")]}let n=new Set,s,i;for(let g of r)g.operator===">"||g.operator===">="?s=qn(s,g,t):g.operator==="<"||g.operator==="<="?i=Ln(i,g,t):n.add(g.semver);if(n.size>1)return null;let a;if(s&&i){if(a=ft(s.semver,i.semver,t),a>0)return null;if(a===0&&(s.operator!==">="||i.operator!=="<="))return null}for(let g of n){if(s&&!$e(g,String(s),t)||i&&!$e(g,String(i),t))return null;for(let Le of e)if(!$e(g,String(Le),t))return!1;return!0}let l,c,o,u,h=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1,m=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;h&&h.prerelease.length===1&&i.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(let g of e){if(u=u||g.operator===">"||g.operator===">=",o=o||g.operator==="<"||g.operator==="<=",s){if(m&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===m.major&&g.semver.minor===m.minor&&g.semver.patch===m.patch&&(m=!1),g.operator===">"||g.operator===">="){if(l=qn(s,g,t),l===g&&l!==s)return!1}else if(s.operator===">="&&!$e(s.semver,String(g),t))return!1}if(i){if(h&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===h.major&&g.semver.minor===h.minor&&g.semver.patch===h.patch&&(h=!1),g.operator==="<"||g.operator==="<="){if(c=Ln(i,g,t),c===g&&c!==i)return!1}else if(i.operator==="<="&&!$e(i.semver,String(g),t))return!1}if(!g.operator&&(i||s)&&a!==0)return!1}return!(s&&o&&!i&&a!==0||i&&u&&!s&&a!==0||m||h)},qn=(r,e,t)=>{if(!r)return e;let n=ft(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},Ln=(r,e,t)=>{if(!r)return e;let n=ft(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};Nn.exports=Ro});var Pn=f((yc,jn)=>{var pt=W();jn.exports={re:pt.re,src:pt.src,tokens:pt.t,SEMVER_SPEC_VERSION:_e().SEMVER_SPEC_VERSION,SemVer:S(),compareIdentifiers:je().compareIdentifiers,rcompareIdentifiers:je().rcompareIdentifiers,parse:z(),valid:rr(),clean:ir(),inc:or(),diff:fr(),major:dr(),minor:gr(),patch:_r(),prerelease:Er(),compare:N(),rcompare:wr(),compareLoose:Sr(),compareBuild:ke(),sort:Rr(),rsort:Dr(),gt:we(),lt:Me(),eq:He(),neq:nt(),gte:Ge(),lte:Ke(),cmp:it(),coerce:Fr(),Comparator:Ae(),Range:T(),satisfies:Re(),toComparators:ln(),maxSatisfying:un(),minSatisfying:fn(),minVersion:mn(),validRange:vn(),outside:Be(),gtr:On(),ltr:An(),intersects:Rn(),simplifyRange:Dn(),subset:Tn()}});var G=f(x=>{"use strict";var Do=x&&x.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,s)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),xo=x&&x.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),qo=x&&x.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Do(e,r,t);return xo(e,r),e},Fn=x&&x.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(x,"__esModule",{value:!0});x.getCoreVersion=void 0;var Hn=Fn(require("path")),kn=Fn(require("fs")),dt=qo(require("@serverless-devs/core")),Lo=Pn(),Mn=Hn.default.join(dt.getRootHome(),"cache","core"),mt=Hn.default.join(Mn,"package.json");function No(){if(kn.default.existsSync(mt)){var r=require("@serverless-devs/core/package.json").version,e=Gn();return Lo.gt(e,r)?require(Mn):dt}return dt}function Gn(){return kn.default.existsSync(mt)?require(mt).version:void 0}x.getCoreVersion=Gn;x.default=No()});var vt=f(De=>{"use strict";var To=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(De,"__esModule",{value:!0});var jo=To(G()),Po=jo.default.Logger,gt=new Po("S-CLI");gt.success=function(r){return gt.log(r,"green")};De.default=gt});var Et=f(D=>{"use strict";var Fo=D&&D.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},Ho=D&&D.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Kn=D&&D.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(D,"__esModule",{value:!0});D.handlerProfileFile=D.getConfig=D.setConfig=void 0;var Vn=Kn(require("path")),yt=Kn(G()),P=yt.default.fse,ze=yt.default.jsyaml,_t=yt.default.getRootHome;function ko(r){var e=Xn();P.writeFileSync(e,ze.dump(r))}function Un(){var r=Xn();if(!P.existsSync(r))return{};try{var e=ze.load(P.readFileSync(r,"utf8"))||{};return e}catch(t){throw t}}function Xn(){var r=Vn.default.join(_t(),"set-config.yml");return P.existsSync(r)||P.createFileSync(r),r}function Mo(r,e){var t=Un();t[r]=e,ko(t)}D.setConfig=Mo;function Go(r,e){var t=Un();return t[r]||e}D.getConfig=Go;function Ko(r){return Fo(this,void 0,void 0,function(){var e,t,n,s,i,a,l;return Ho(this,function(c){switch(c.label){case 0:if(e=r.filePath||"set-config.yml",t=Vn.default.join(_t(),e),n=P.existsSync(t),s={},n)return[3,5];i=_t(),c.label=1;case 1:return c.trys.push([1,2,,4]),P.statSync(i),[3,4];case 2:return a=c.sent(),[4,P.mkdirSync(i)];case 3:return c.sent(),[3,4];case 4:return[3,6];case 5:try{s=ze.load(P.readFileSync(t,"utf8"))||{}}catch(o){throw o}c.label=6;case 6:return r.read?[2,s]:(l=r.configKey||"",s[l]=r.data,[4,P.writeFileSync(t,ze.dump(s))]);case 7:return c.sent(),[2,s]}})})}D.handlerProfileFile=Ko});var Bn=f((Oc,Vo)=>{Vo.exports={name:"@serverless-devs/s",version:"2.0.101",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1",ajv:"^8.10.0","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.4.7","latest-version":"^5.1.0","lint-staged":"^10.0.8","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.1.3","ts-node":"^9.1.1",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"latest"}}});var Ye=f(v=>{"use strict";var Uo=v&&v.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,s)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Xo=v&&v.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Bo=v&&v.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Uo(e,r,t);return Xo(e,r),e},ie=v&&v.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},se=v&&v.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},wt=v&&v.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(v,"__esModule",{value:!0});v.specifyServiceHelp=v.getTempCommandStr=v.emoji=v.mark=v.replaceTemplate=v.replaceFun=v.getLang=v.printn=v.getFolderSize=v.getVersion=v.getPid=v.aiRequest=v.getCredentialWithAll=v.getCredentialWithExisted=v.getProcessArgv=v.bgRed=v.yellow=v.red=void 0;var Wo=wt(require("path")),xe=wt(require("fs")),zo=wt(require("os")),I=Bo(G()),Yo=Et(),Wn=Bn(),oe=I.default.colors,Zo=I.default.got,Jo=I.default.getMAC,Qo=I.default.isDocker,ea=I.default.isCiCdEnv,V=I.default.lodash,zn=I.default.publishHelp,ta=V.get,ra=V.trim,na=V.assign,ia=V.filter,Yn=V.includes,Zn=V.omit,sa=V.isPlainObject,oa=V.isEmpty,aa=oe.underline,la=oe.bold;v.red=oe.hex("#fd5750");v.yellow=oe.hex("#F3F99D");v.bgRed=oe.hex("#000").bgHex("#fd5750");var ca=function(){var r=process.env.serverless_devs_temp_argv;try{var e=JSON.parse(r),t=I.default.getGlobalArgs(e);return process.argv=process.argv.slice(0,2).concat(t._argsObj),na({},t,{noHelpArgv:process.argv.slice(0,2).concat(ia(t._argsObj,function(n){return!Yn(["-h","--help"],n)}))})}catch{return{}}};v.getProcessArgv=ca;var ua=function(r){return ie(void 0,void 0,void 0,function(){var e,t;return se(this,function(n){switch(n.label){case 0:return[4,I.default.getCredentialAliasList()];case 1:return e=n.sent(),Yn(e,r)?[4,I.default.getCredential(r)]:[3,3];case 2:return t=n.sent(),[2,Zn(t,"Alias")];case 3:return[2]}})})};v.getCredentialWithExisted=ua;var ha=function(){return ie(void 0,void 0,void 0,function(){var r,e,t,n,s,i;return se(this,function(a){switch(a.label){case 0:return[4,I.default.getCredentialAliasList()];case 1:if(r=a.sent(),!(r.length>0))return[3,6];e={},t=0,n=r,a.label=2;case 2:return t<n.length?(s=n[t],[4,I.default.getCredential(s)]):[3,5];case 3:i=a.sent(),e[i.Alias]=Zn(i,"Alias"),a.label=4;case 4:return t++,[3,2];case 5:return[2,e];case 6:return[2]}})})};v.getCredentialWithAll=ha;var fa=function(r,e){return e===void 0&&(e="unknow"),ie(void 0,void 0,void 0,function(){var t,n,s,i;return se(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),t=(0,Yo.getConfig)("analysis"),t!=="enable"?[2]:Qo()||ea()?[2]:[4,Zo("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(e,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0})];case 1:return n=a.sent(),s=ta(n.body,"shorturl"),s&&console.log(`AI Tips:
15
+ `)}function qt(r,e,t){return r.match(/[\n]\s+/)||e<40?r:jt(r,e,t)}function Lt(r,e){r._hasHelpOption&&e.find(n=>n===r._helpLongFlag||n===r._helpShortFlag)&&(r.outputHelp(),r._exit(0,"commander.helpDisplayed","(outputHelp)"))}function Nt(r){let e=r.name+(r.variadic===!0?"...":"");return r.required?"<"+e+">":"["+e+"]"}function Pt(r){let e,t,n=r.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(e=n.shift()),t=n.shift(),!e&&/^-[^-]$/.test(t)&&(e=t,t=void 0),{shortFlag:e,longFlag:t}}function Tt(r){return r.map(e=>{if(!e.startsWith("--inspect"))return e;let t,n="127.0.0.1",s="9229",i;return(i=e.match(/^(--inspect(-brk)?)$/))!==null?t=i[1]:(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=i[1],/^\d+$/.test(i[3])?s=i[3]:n=i[3]):(i=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=i[1],n=i[3],s=i[4]),t&&s!=="0"?`${t}=${n}:${parseInt(s)+1}`:e})}});var _e=f((Rl,kt)=>{var wi="2.0.0",Oi=Number.MAX_SAFE_INTEGER||9007199254740991,Si=16;kt.exports={SEMVER_SPEC_VERSION:wi,MAX_LENGTH:256,MAX_SAFE_INTEGER:Oi,MAX_SAFE_COMPONENT_LENGTH:Si}});var ye=f(($l,Mt)=>{var Ai=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};Mt.exports=Ai});var W=f((V,Gt)=>{var{MAX_SAFE_COMPONENT_LENGTH:rt}=_e(),Ii=ye();V=Gt.exports={};var Ci=V.re=[],p=V.src=[],d=V.t={},Ri=0,_=(r,e,t)=>{let n=Ri++;Ii(n,e),d[r]=n,p[n]=e,Ci[n]=new RegExp(e,t?"g":void 0)};_("NUMERICIDENTIFIER","0|[1-9]\\d*");_("NUMERICIDENTIFIERLOOSE","[0-9]+");_("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");_("MAINVERSION",`(${p[d.NUMERICIDENTIFIER]})\\.(${p[d.NUMERICIDENTIFIER]})\\.(${p[d.NUMERICIDENTIFIER]})`);_("MAINVERSIONLOOSE",`(${p[d.NUMERICIDENTIFIERLOOSE]})\\.(${p[d.NUMERICIDENTIFIERLOOSE]})\\.(${p[d.NUMERICIDENTIFIERLOOSE]})`);_("PRERELEASEIDENTIFIER",`(?:${p[d.NUMERICIDENTIFIER]}|${p[d.NONNUMERICIDENTIFIER]})`);_("PRERELEASEIDENTIFIERLOOSE",`(?:${p[d.NUMERICIDENTIFIERLOOSE]}|${p[d.NONNUMERICIDENTIFIER]})`);_("PRERELEASE",`(?:-(${p[d.PRERELEASEIDENTIFIER]}(?:\\.${p[d.PRERELEASEIDENTIFIER]})*))`);_("PRERELEASELOOSE",`(?:-?(${p[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${p[d.PRERELEASEIDENTIFIERLOOSE]})*))`);_("BUILDIDENTIFIER","[0-9A-Za-z-]+");_("BUILD",`(?:\\+(${p[d.BUILDIDENTIFIER]}(?:\\.${p[d.BUILDIDENTIFIER]})*))`);_("FULLPLAIN",`v?${p[d.MAINVERSION]}${p[d.PRERELEASE]}?${p[d.BUILD]}?`);_("FULL",`^${p[d.FULLPLAIN]}$`);_("LOOSEPLAIN",`[v=\\s]*${p[d.MAINVERSIONLOOSE]}${p[d.PRERELEASELOOSE]}?${p[d.BUILD]}?`);_("LOOSE",`^${p[d.LOOSEPLAIN]}$`);_("GTLT","((?:<|>)?=?)");_("XRANGEIDENTIFIERLOOSE",`${p[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);_("XRANGEIDENTIFIER",`${p[d.NUMERICIDENTIFIER]}|x|X|\\*`);_("XRANGEPLAIN",`[v=\\s]*(${p[d.XRANGEIDENTIFIER]})(?:\\.(${p[d.XRANGEIDENTIFIER]})(?:\\.(${p[d.XRANGEIDENTIFIER]})(?:${p[d.PRERELEASE]})?${p[d.BUILD]}?)?)?`);_("XRANGEPLAINLOOSE",`[v=\\s]*(${p[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[d.XRANGEIDENTIFIERLOOSE]})(?:${p[d.PRERELEASELOOSE]})?${p[d.BUILD]}?)?)?`);_("XRANGE",`^${p[d.GTLT]}\\s*${p[d.XRANGEPLAIN]}$`);_("XRANGELOOSE",`^${p[d.GTLT]}\\s*${p[d.XRANGEPLAINLOOSE]}$`);_("COERCE",`(^|[^\\d])(\\d{1,${rt}})(?:\\.(\\d{1,${rt}}))?(?:\\.(\\d{1,${rt}}))?(?:$|[^\\d])`);_("COERCERTL",p[d.COERCE],!0);_("LONETILDE","(?:~>?)");_("TILDETRIM",`(\\s*)${p[d.LONETILDE]}\\s+`,!0);V.tildeTrimReplace="$1~";_("TILDE",`^${p[d.LONETILDE]}${p[d.XRANGEPLAIN]}$`);_("TILDELOOSE",`^${p[d.LONETILDE]}${p[d.XRANGEPLAINLOOSE]}$`);_("LONECARET","(?:\\^)");_("CARETTRIM",`(\\s*)${p[d.LONECARET]}\\s+`,!0);V.caretTrimReplace="$1^";_("CARET",`^${p[d.LONECARET]}${p[d.XRANGEPLAIN]}$`);_("CARETLOOSE",`^${p[d.LONECARET]}${p[d.XRANGEPLAINLOOSE]}$`);_("COMPARATORLOOSE",`^${p[d.GTLT]}\\s*(${p[d.LOOSEPLAIN]})$|^$`);_("COMPARATOR",`^${p[d.GTLT]}\\s*(${p[d.FULLPLAIN]})$|^$`);_("COMPARATORTRIM",`(\\s*)${p[d.GTLT]}\\s*(${p[d.LOOSEPLAIN]}|${p[d.XRANGEPLAIN]})`,!0);V.comparatorTrimReplace="$1$2$3";_("HYPHENRANGE",`^\\s*(${p[d.XRANGEPLAIN]})\\s+-\\s+(${p[d.XRANGEPLAIN]})\\s*$`);_("HYPHENRANGELOOSE",`^\\s*(${p[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${p[d.XRANGEPLAINLOOSE]})\\s*$`);_("STAR","(<|>)?=?\\s*\\*");_("GTE0","^\\s*>=\\s*0.0.0\\s*$");_("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var Ee=f((Dl,Vt)=>{var $i=["includePrerelease","loose","rtl"],Di=r=>r?typeof r!="object"?{loose:!0}:$i.filter(e=>r[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};Vt.exports=Di});var je=f((xl,Xt)=>{var Kt=/^[0-9]+$/,Ut=(r,e)=>{let t=Kt.test(r),n=Kt.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},xi=(r,e)=>Ut(e,r);Xt.exports={compareIdentifiers:Ut,rcompareIdentifiers:xi}});var S=f((ql,Yt)=>{var Pe=ye(),{MAX_LENGTH:Bt,MAX_SAFE_INTEGER:Fe}=_e(),{re:Wt,t:zt}=W(),qi=Ee(),{compareIdentifiers:be}=je(),L=class{constructor(e,t){if(t=qi(t),e instanceof L){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>Bt)throw new TypeError(`version is longer than ${Bt} characters`);Pe("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?Wt[zt.LOOSE]:Wt[zt.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Fe||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Fe||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Fe||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let i=+s;if(i>=0&&i<Fe)return i}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Pe("SemVer.compare",this.version,this.options,e),!(e instanceof L)){if(typeof e=="string"&&e===this.version)return 0;e=new L(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof L||(e=new L(e,this.options)),be(this.major,e.major)||be(this.minor,e.minor)||be(this.patch,e.patch)}comparePre(e){if(e instanceof L||(e=new L(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(Pe("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return be(n,s)}while(++t)}compareBuild(e){e instanceof L||(e=new L(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(Pe("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return be(n,s)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};Yt.exports=L});var z=f((Ll,er)=>{var{MAX_LENGTH:Li}=_e(),{re:Zt,t:Jt}=W(),Qt=S(),Ni=Ee(),Ti=(r,e)=>{if(e=Ni(e),r instanceof Qt)return r;if(typeof r!="string"||r.length>Li||!(e.loose?Zt[Jt.LOOSE]:Zt[Jt.FULL]).test(r))return null;try{return new Qt(r,e)}catch{return null}};er.exports=Ti});var rr=f((Nl,tr)=>{var ji=z(),Pi=(r,e)=>{let t=ji(r,e);return t?t.version:null};tr.exports=Pi});var ir=f((Tl,nr)=>{var Fi=z(),Hi=(r,e)=>{let t=Fi(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};nr.exports=Hi});var or=f((jl,sr)=>{var ki=S(),Mi=(r,e,t,n)=>{typeof t=="string"&&(n=t,t=void 0);try{return new ki(r,t).inc(e,n).version}catch{return null}};sr.exports=Mi});var N=f((Pl,lr)=>{var ar=S(),Gi=(r,e,t)=>new ar(r,t).compare(new ar(e,t));lr.exports=Gi});var He=f((Fl,cr)=>{var Vi=N(),Ki=(r,e,t)=>Vi(r,e,t)===0;cr.exports=Ki});var fr=f((Hl,hr)=>{var ur=z(),Ui=He(),Xi=(r,e)=>{if(Ui(r,e))return null;{let t=ur(r),n=ur(e),s=t.prerelease.length||n.prerelease.length,i=s?"pre":"",a=s?"prerelease":"";for(let l in t)if((l==="major"||l==="minor"||l==="patch")&&t[l]!==n[l])return i+l;return a}};hr.exports=Xi});var dr=f((kl,pr)=>{var Bi=S(),Wi=(r,e)=>new Bi(r,e).major;pr.exports=Wi});var gr=f((Ml,mr)=>{var zi=S(),Yi=(r,e)=>new zi(r,e).minor;mr.exports=Yi});var _r=f((Gl,vr)=>{var Zi=S(),Ji=(r,e)=>new Zi(r,e).patch;vr.exports=Ji});var Er=f((Vl,yr)=>{var Qi=z(),es=(r,e)=>{let t=Qi(r,e);return t&&t.prerelease.length?t.prerelease:null};yr.exports=es});var wr=f((Kl,br)=>{var ts=N(),rs=(r,e,t)=>ts(e,r,t);br.exports=rs});var Sr=f((Ul,Or)=>{var ns=N(),is=(r,e)=>ns(r,e,!0);Or.exports=is});var ke=f((Xl,Ir)=>{var Ar=S(),ss=(r,e,t)=>{let n=new Ar(r,t),s=new Ar(e,t);return n.compare(s)||n.compareBuild(s)};Ir.exports=ss});var Rr=f((Bl,Cr)=>{var os=ke(),as=(r,e)=>r.sort((t,n)=>os(t,n,e));Cr.exports=as});var Dr=f((Wl,$r)=>{var ls=ke(),cs=(r,e)=>r.sort((t,n)=>ls(n,t,e));$r.exports=cs});var we=f((zl,xr)=>{var us=N(),hs=(r,e,t)=>us(r,e,t)>0;xr.exports=hs});var Me=f((Yl,qr)=>{var fs=N(),ps=(r,e,t)=>fs(r,e,t)<0;qr.exports=ps});var nt=f((Zl,Lr)=>{var ds=N(),ms=(r,e,t)=>ds(r,e,t)!==0;Lr.exports=ms});var Ge=f((Jl,Nr)=>{var gs=N(),vs=(r,e,t)=>gs(r,e,t)>=0;Nr.exports=vs});var Ve=f((Ql,Tr)=>{var _s=N(),ys=(r,e,t)=>_s(r,e,t)<=0;Tr.exports=ys});var it=f((ec,jr)=>{var Es=He(),bs=nt(),ws=we(),Os=Ge(),Ss=Me(),As=Ve(),Is=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return Es(r,t,n);case"!=":return bs(r,t,n);case">":return ws(r,t,n);case">=":return Os(r,t,n);case"<":return Ss(r,t,n);case"<=":return As(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};jr.exports=Is});var Fr=f((tc,Pr)=>{var Cs=S(),Rs=z(),{re:Ke,t:Ue}=W(),$s=(r,e)=>{if(r instanceof Cs)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(Ke[Ue.COERCE]);else{let n;for(;(n=Ke[Ue.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||n.index+n[0].length!==t.index+t[0].length)&&(t=n),Ke[Ue.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;Ke[Ue.COERCERTL].lastIndex=-1}return t===null?null:Rs(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};Pr.exports=$s});var kr=f((rc,Hr)=>{"use strict";Hr.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Gr=f((nc,Mr)=>{"use strict";Mr.exports=y;y.Node=Y;y.create=y;function y(r){var e=this;if(e instanceof y||(e=new y),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(s){e.push(s)});else if(arguments.length>0)for(var t=0,n=arguments.length;t<n;t++)e.push(arguments[t]);return e}y.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var e=r.next,t=r.prev;return e&&(e.prev=t),t&&(t.next=e),r===this.head&&(this.head=e),r===this.tail&&(this.tail=t),r.list.length--,r.next=null,r.prev=null,r.list=null,e};y.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var e=this.head;r.list=this,r.next=e,e&&(e.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}};y.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var e=this.tail;r.list=this,r.prev=e,e&&(e.next=r),this.tail=r,this.head||(this.head=r),this.length++}};y.prototype.push=function(){for(var r=0,e=arguments.length;r<e;r++)xs(this,arguments[r]);return this.length};y.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)qs(this,arguments[r]);return this.length};y.prototype.pop=function(){if(!!this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}};y.prototype.shift=function(){if(!!this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}};y.prototype.forEach=function(r,e){e=e||this;for(var t=this.head,n=0;t!==null;n++)r.call(e,t.value,n,this),t=t.next};y.prototype.forEachReverse=function(r,e){e=e||this;for(var t=this.tail,n=this.length-1;t!==null;n--)r.call(e,t.value,n,this),t=t.prev};y.prototype.get=function(r){for(var e=0,t=this.head;t!==null&&e<r;e++)t=t.next;if(e===r&&t!==null)return t.value};y.prototype.getReverse=function(r){for(var e=0,t=this.tail;t!==null&&e<r;e++)t=t.prev;if(e===r&&t!==null)return t.value};y.prototype.map=function(r,e){e=e||this;for(var t=new y,n=this.head;n!==null;)t.push(r.call(e,n.value,this)),n=n.next;return t};y.prototype.mapReverse=function(r,e){e=e||this;for(var t=new y,n=this.tail;n!==null;)t.push(r.call(e,n.value,this)),n=n.prev;return t};y.prototype.reduce=function(r,e){var t,n=this.head;if(arguments.length>1)t=e;else if(this.head)n=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;n!==null;s++)t=r(t,n.value,s),n=n.next;return t};y.prototype.reduceReverse=function(r,e){var t,n=this.tail;if(arguments.length>1)t=e;else if(this.tail)n=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;n!==null;s--)t=r(t,n.value,s),n=n.prev;return t};y.prototype.toArray=function(){for(var r=new Array(this.length),e=0,t=this.head;t!==null;e++)r[e]=t.value,t=t.next;return r};y.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,t=this.tail;t!==null;e++)r[e]=t.value,t=t.prev;return r};y.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new y;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=0,s=this.head;s!==null&&n<r;n++)s=s.next;for(;s!==null&&n<e;n++,s=s.next)t.push(s.value);return t};y.prototype.sliceReverse=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new y;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=this.length,s=this.tail;s!==null&&n>e;n--)s=s.prev;for(;s!==null&&n>r;n--,s=s.prev)t.push(s.value);return t};y.prototype.splice=function(r,e,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var n=0,s=this.head;s!==null&&n<r;n++)s=s.next;for(var i=[],n=0;s&&n<e;n++)i.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var n=0;n<t.length;n++)s=Ds(this,s,t[n]);return i};y.prototype.reverse=function(){for(var r=this.head,e=this.tail,t=r;t!==null;t=t.prev){var n=t.prev;t.prev=t.next,t.next=n}return this.head=e,this.tail=r,this};function Ds(r,e,t){var n=e===r.head?new Y(t,null,e,r):new Y(t,e,e.next,r);return n.next===null&&(r.tail=n),n.prev===null&&(r.head=n),r.length++,n}function xs(r,e){r.tail=new Y(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function qs(r,e){r.head=new Y(e,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function Y(r,e,t,n){if(!(this instanceof Y))return new Y(r,e,t,n);this.list=n,this.value=r,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{kr()(y)}catch{}});var zr=f((ic,Wr)=>{"use strict";var Ls=Gr(),Z=Symbol("max"),M=Symbol("length"),te=Symbol("lengthCalculator"),Se=Symbol("allowStale"),J=Symbol("maxAge"),k=Symbol("dispose"),Vr=Symbol("noDisposeOnSet"),w=Symbol("lruList"),j=Symbol("cache"),Ur=Symbol("updateAgeOnGet"),st=()=>1,Xr=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[Z]=e.max||1/0,n=e.length||st;if(this[te]=typeof n!="function"?st:n,this[Se]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[J]=e.maxAge||0,this[k]=e.dispose,this[Vr]=e.noDisposeOnSet||!1,this[Ur]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Z]=e||1/0,Oe(this)}get max(){return this[Z]}set allowStale(e){this[Se]=!!e}get allowStale(){return this[Se]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[J]=e,Oe(this)}get maxAge(){return this[J]}set lengthCalculator(e){typeof e!="function"&&(e=st),e!==this[te]&&(this[te]=e,this[M]=0,this[w].forEach(t=>{t.length=this[te](t.value,t.key),this[M]+=t.length})),Oe(this)}get lengthCalculator(){return this[te]}get length(){return this[M]}get itemCount(){return this[w].length}rforEach(e,t){t=t||this;for(let n=this[w].tail;n!==null;){let s=n.prev;Kr(this,e,n,t),n=s}}forEach(e,t){t=t||this;for(let n=this[w].head;n!==null;){let s=n.next;Kr(this,e,n,t),n=s}}keys(){return this[w].toArray().map(e=>e.key)}values(){return this[w].toArray().map(e=>e.value)}reset(){this[k]&&this[w]&&this[w].length&&this[w].forEach(e=>this[k](e.key,e.value)),this[j]=new Map,this[w]=new Ls,this[M]=0}dump(){return this[w].map(e=>Xe(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[w]}set(e,t,n){if(n=n||this[J],n&&typeof n!="number")throw new TypeError("maxAge must be a number");let s=n?Date.now():0,i=this[te](t,e);if(this[j].has(e)){if(i>this[Z])return re(this,this[j].get(e)),!1;let c=this[j].get(e).value;return this[k]&&(this[Vr]||this[k](e,c.value)),c.now=s,c.maxAge=n,c.value=t,this[M]+=i-c.length,c.length=i,this.get(e),Oe(this),!0}let a=new Br(e,t,i,s,n);return a.length>this[Z]?(this[k]&&this[k](e,t),!1):(this[M]+=a.length,this[w].unshift(a),this[j].set(e,this[w].head),Oe(this),!0)}has(e){if(!this[j].has(e))return!1;let t=this[j].get(e).value;return!Xe(this,t)}get(e){return ot(this,e,!0)}peek(e){return ot(this,e,!1)}pop(){let e=this[w].tail;return e?(re(this,e),e.value):null}del(e){re(this,this[j].get(e))}load(e){this.reset();let t=Date.now();for(let n=e.length-1;n>=0;n--){let s=e[n],i=s.e||0;if(i===0)this.set(s.k,s.v);else{let a=i-t;a>0&&this.set(s.k,s.v,a)}}}prune(){this[j].forEach((e,t)=>ot(this,t,!1))}},ot=(r,e,t)=>{let n=r[j].get(e);if(n){let s=n.value;if(Xe(r,s)){if(re(r,n),!r[Se])return}else t&&(r[Ur]&&(n.value.now=Date.now()),r[w].unshiftNode(n));return s.value}},Xe=(r,e)=>{if(!e||!e.maxAge&&!r[J])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:r[J]&&t>r[J]},Oe=r=>{if(r[M]>r[Z])for(let e=r[w].tail;r[M]>r[Z]&&e!==null;){let t=e.prev;re(r,e),e=t}},re=(r,e)=>{if(e){let t=e.value;r[k]&&r[k](t.key,t.value),r[M]-=t.length,r[j].delete(t.key),r[w].removeNode(e)}},Br=class{constructor(e,t,n,s,i){this.key=e,this.value=t,this.length=n,this.now=s,this.maxAge=i||0}},Kr=(r,e,t,n)=>{let s=t.value;Xe(r,s)&&(re(r,t),r[Se]||(s=void 0)),s&&e.call(n,s.value,s.key,r)};Wr.exports=Xr});var T=f((sc,Qr)=>{var ne=class{constructor(e,t){if(t=Ts(t),e instanceof ne)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ne(e.raw,t);if(e instanceof at)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!Zr(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&ks(s[0])){this.set=[s];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let n=`parseRange:${Object.keys(this.options).join(",")}:${e}`,s=Yr.get(n);if(s)return s;let i=this.options.loose,a=i?A[O.HYPHENRANGELOOSE]:A[O.HYPHENRANGE];e=e.replace(a,Ys(this.options.includePrerelease)),b("hyphen replace",e),e=e.replace(A[O.COMPARATORTRIM],Ps),b("comparator trim",e,A[O.COMPARATORTRIM]),e=e.replace(A[O.TILDETRIM],Fs),e=e.replace(A[O.CARETTRIM],Hs),e=e.split(/\s+/).join(" ");let l=i?A[O.COMPARATORLOOSE]:A[O.COMPARATOR],c=e.split(" ").map(m=>Ms(m,this.options)).join(" ").split(/\s+/).map(m=>zs(m,this.options)).filter(this.options.loose?m=>!!m.match(l):()=>!0).map(m=>new at(m,this.options)),o=c.length,u=new Map;for(let m of c){if(Zr(m))return[m];u.set(m.value,m)}u.size>1&&u.has("")&&u.delete("");let h=[...u.values()];return Yr.set(n,h),h}intersects(e,t){if(!(e instanceof ne))throw new TypeError("a Range is required");return this.set.some(n=>Jr(n,t)&&e.set.some(s=>Jr(s,t)&&n.every(i=>s.every(a=>i.intersects(a,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new js(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Zs(this.set[t],e,this.options))return!0;return!1}};Qr.exports=ne;var Ns=zr(),Yr=new Ns({max:1e3}),Ts=Ee(),at=Ae(),b=ye(),js=S(),{re:A,t:O,comparatorTrimReplace:Ps,tildeTrimReplace:Fs,caretTrimReplace:Hs}=W(),Zr=r=>r.value==="<0.0.0-0",ks=r=>r.value==="",Jr=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(i=>s.intersects(i,e)),s=n.pop();return t},Ms=(r,e)=>(b("comp",r,e),r=Ks(r,e),b("caret",r),r=Gs(r,e),b("tildes",r),r=Xs(r,e),b("xrange",r),r=Ws(r,e),b("stars",r),r),$=r=>!r||r.toLowerCase()==="x"||r==="*",Gs=(r,e)=>r.trim().split(/\s+/).map(t=>Vs(t,e)).join(" "),Vs=(r,e)=>{let t=e.loose?A[O.TILDELOOSE]:A[O.TILDE];return r.replace(t,(n,s,i,a,l)=>{b("tilde",r,n,s,i,a,l);let c;return $(s)?c="":$(i)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:$(a)?c=`>=${s}.${i}.0 <${s}.${+i+1}.0-0`:l?(b("replaceTilde pr",l),c=`>=${s}.${i}.${a}-${l} <${s}.${+i+1}.0-0`):c=`>=${s}.${i}.${a} <${s}.${+i+1}.0-0`,b("tilde return",c),c})},Ks=(r,e)=>r.trim().split(/\s+/).map(t=>Us(t,e)).join(" "),Us=(r,e)=>{b("caret",r,e);let t=e.loose?A[O.CARETLOOSE]:A[O.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,i,a,l,c)=>{b("caret",r,s,i,a,l,c);let o;return $(i)?o="":$(a)?o=`>=${i}.0.0${n} <${+i+1}.0.0-0`:$(l)?i==="0"?o=`>=${i}.${a}.0${n} <${i}.${+a+1}.0-0`:o=`>=${i}.${a}.0${n} <${+i+1}.0.0-0`:c?(b("replaceCaret pr",c),i==="0"?a==="0"?o=`>=${i}.${a}.${l}-${c} <${i}.${a}.${+l+1}-0`:o=`>=${i}.${a}.${l}-${c} <${i}.${+a+1}.0-0`:o=`>=${i}.${a}.${l}-${c} <${+i+1}.0.0-0`):(b("no pr"),i==="0"?a==="0"?o=`>=${i}.${a}.${l}${n} <${i}.${a}.${+l+1}-0`:o=`>=${i}.${a}.${l}${n} <${i}.${+a+1}.0-0`:o=`>=${i}.${a}.${l} <${+i+1}.0.0-0`),b("caret return",o),o})},Xs=(r,e)=>(b("replaceXRanges",r,e),r.split(/\s+/).map(t=>Bs(t,e)).join(" ")),Bs=(r,e)=>{r=r.trim();let t=e.loose?A[O.XRANGELOOSE]:A[O.XRANGE];return r.replace(t,(n,s,i,a,l,c)=>{b("xRange",r,n,s,i,a,l,c);let o=$(i),u=o||$(a),h=u||$(l),m=h;return s==="="&&m&&(s=""),c=e.includePrerelease?"-0":"",o?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&m?(u&&(a=0),l=0,s===">"?(s=">=",u?(i=+i+1,a=0,l=0):(a=+a+1,l=0)):s==="<="&&(s="<",u?i=+i+1:a=+a+1),s==="<"&&(c="-0"),n=`${s+i}.${a}.${l}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:h&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),b("xRange return",n),n})},Ws=(r,e)=>(b("replaceStars",r,e),r.trim().replace(A[O.STAR],"")),zs=(r,e)=>(b("replaceGTE0",r,e),r.trim().replace(A[e.includePrerelease?O.GTE0PRE:O.GTE0],"")),Ys=r=>(e,t,n,s,i,a,l,c,o,u,h,m,g)=>($(n)?t="":$(s)?t=`>=${n}.0.0${r?"-0":""}`:$(i)?t=`>=${n}.${s}.0${r?"-0":""}`:a?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,$(o)?c="":$(u)?c=`<${+o+1}.0.0-0`:$(h)?c=`<${o}.${+u+1}.0-0`:m?c=`<=${o}.${u}.${h}-${m}`:r?c=`<${o}.${u}.${+h+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),Zs=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(b(r[n].semver),r[n].semver!==at.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var Ae=f((oc,sn)=>{var Ie=Symbol("SemVer ANY"),Ce=class{static get ANY(){return Ie}constructor(e,t){if(t=Js(t),e instanceof Ce){if(e.loose===!!t.loose)return e;e=e.value}ct("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Ie?this.value="":this.value=this.operator+this.semver.version,ct("comp",this)}parse(e){let t=this.options.loose?en[tn.COMPARATORLOOSE]:en[tn.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new rn(n[2],this.options.loose):this.semver=Ie}toString(){return this.value}test(e){if(ct("Comparator.test",e,this.options.loose),this.semver===Ie||e===Ie)return!0;if(typeof e=="string")try{e=new rn(e,this.options)}catch{return!1}return lt(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Ce))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new nn(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new nn(this.value,t).test(e.semver);let n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),i=this.semver.version===e.semver.version,a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),l=lt(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),c=lt(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||s||i&&a||l||c}};sn.exports=Ce;var Js=Ee(),{re:en,t:tn}=W(),lt=it(),ct=ye(),rn=S(),nn=T()});var Re=f((ac,on)=>{var Qs=T(),eo=(r,e,t)=>{try{e=new Qs(e,t)}catch{return!1}return e.test(r)};on.exports=eo});var ln=f((lc,an)=>{var to=T(),ro=(r,e)=>new to(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));an.exports=ro});var un=f((cc,cn)=>{var no=S(),io=T(),so=(r,e,t)=>{let n=null,s=null,i=null;try{i=new io(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new no(n,t))}),n};cn.exports=so});var fn=f((uc,hn)=>{var oo=S(),ao=T(),lo=(r,e,t)=>{let n=null,s=null,i=null;try{i=new ao(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new oo(n,t))}),n};hn.exports=lo});var mn=f((hc,dn)=>{var ut=S(),co=T(),pn=we(),uo=(r,e)=>{r=new co(r,e);let t=new ut("0.0.0");if(r.test(t)||(t=new ut("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){let s=r.set[n],i=null;s.forEach(a=>{let l=new ut(a.semver.version);switch(a.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!i||pn(l,i))&&(i=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!t||pn(t,i))&&(t=i)}return t&&r.test(t)?t:null};dn.exports=uo});var vn=f((fc,gn)=>{var ho=T(),fo=(r,e)=>{try{return new ho(r,e).range||"*"}catch{return null}};gn.exports=fo});var Be=f((pc,bn)=>{var po=S(),En=Ae(),{ANY:mo}=En,go=T(),vo=Re(),_n=we(),yn=Me(),_o=Ve(),yo=Ge(),Eo=(r,e,t,n)=>{r=new po(r,n),e=new go(e,n);let s,i,a,l,c;switch(t){case">":s=_n,i=_o,a=yn,l=">",c=">=";break;case"<":s=yn,i=yo,a=_n,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(vo(r,e,n))return!1;for(let o=0;o<e.set.length;++o){let u=e.set[o],h=null,m=null;if(u.forEach(g=>{g.semver===mo&&(g=new En(">=0.0.0")),h=h||g,m=m||g,s(g.semver,h.semver,n)?h=g:a(g.semver,m.semver,n)&&(m=g)}),h.operator===l||h.operator===c||(!m.operator||m.operator===l)&&i(r,m.semver))return!1;if(m.operator===c&&a(r,m.semver))return!1}return!0};bn.exports=Eo});var On=f((dc,wn)=>{var bo=Be(),wo=(r,e,t)=>bo(r,e,">",t);wn.exports=wo});var An=f((mc,Sn)=>{var Oo=Be(),So=(r,e,t)=>Oo(r,e,"<",t);Sn.exports=So});var Rn=f((gc,Cn)=>{var In=T(),Ao=(r,e,t)=>(r=new In(r,t),e=new In(e,t),r.intersects(e));Cn.exports=Ao});var Dn=f((vc,$n)=>{var Io=Re(),Co=N();$n.exports=(r,e,t)=>{let n=[],s=null,i=null,a=r.sort((u,h)=>Co(u,h,t));for(let u of a)Io(u,e,t)?(i=u,s||(s=u)):(i&&n.push([s,i]),i=null,s=null);s&&n.push([s,null]);let l=[];for(let[u,h]of n)u===h?l.push(u):!h&&u===a[0]?l.push("*"):h?u===a[0]?l.push(`<=${h}`):l.push(`${u} - ${h}`):l.push(`>=${u}`);let c=l.join(" || "),o=typeof e.raw=="string"?e.raw:String(e);return c.length<o.length?c:e}});var Tn=f((_c,Nn)=>{var xn=T(),We=Ae(),{ANY:ht}=We,$e=Re(),ft=N(),Ro=(r,e,t={})=>{if(r===e)return!0;r=new xn(r,t),e=new xn(e,t);let n=!1;e:for(let s of r.set){for(let i of e.set){let a=$o(s,i,t);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},$o=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===ht){if(e.length===1&&e[0].semver===ht)return!0;t.includePrerelease?r=[new We(">=0.0.0-0")]:r=[new We(">=0.0.0")]}if(e.length===1&&e[0].semver===ht){if(t.includePrerelease)return!0;e=[new We(">=0.0.0")]}let n=new Set,s,i;for(let g of r)g.operator===">"||g.operator===">="?s=qn(s,g,t):g.operator==="<"||g.operator==="<="?i=Ln(i,g,t):n.add(g.semver);if(n.size>1)return null;let a;if(s&&i){if(a=ft(s.semver,i.semver,t),a>0)return null;if(a===0&&(s.operator!==">="||i.operator!=="<="))return null}for(let g of n){if(s&&!$e(g,String(s),t)||i&&!$e(g,String(i),t))return null;for(let Le of e)if(!$e(g,String(Le),t))return!1;return!0}let l,c,o,u,h=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1,m=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;h&&h.prerelease.length===1&&i.operator==="<"&&h.prerelease[0]===0&&(h=!1);for(let g of e){if(u=u||g.operator===">"||g.operator===">=",o=o||g.operator==="<"||g.operator==="<=",s){if(m&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===m.major&&g.semver.minor===m.minor&&g.semver.patch===m.patch&&(m=!1),g.operator===">"||g.operator===">="){if(l=qn(s,g,t),l===g&&l!==s)return!1}else if(s.operator===">="&&!$e(s.semver,String(g),t))return!1}if(i){if(h&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===h.major&&g.semver.minor===h.minor&&g.semver.patch===h.patch&&(h=!1),g.operator==="<"||g.operator==="<="){if(c=Ln(i,g,t),c===g&&c!==i)return!1}else if(i.operator==="<="&&!$e(i.semver,String(g),t))return!1}if(!g.operator&&(i||s)&&a!==0)return!1}return!(s&&o&&!i&&a!==0||i&&u&&!s&&a!==0||m||h)},qn=(r,e,t)=>{if(!r)return e;let n=ft(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},Ln=(r,e,t)=>{if(!r)return e;let n=ft(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};Nn.exports=Ro});var Pn=f((yc,jn)=>{var pt=W();jn.exports={re:pt.re,src:pt.src,tokens:pt.t,SEMVER_SPEC_VERSION:_e().SEMVER_SPEC_VERSION,SemVer:S(),compareIdentifiers:je().compareIdentifiers,rcompareIdentifiers:je().rcompareIdentifiers,parse:z(),valid:rr(),clean:ir(),inc:or(),diff:fr(),major:dr(),minor:gr(),patch:_r(),prerelease:Er(),compare:N(),rcompare:wr(),compareLoose:Sr(),compareBuild:ke(),sort:Rr(),rsort:Dr(),gt:we(),lt:Me(),eq:He(),neq:nt(),gte:Ge(),lte:Ve(),cmp:it(),coerce:Fr(),Comparator:Ae(),Range:T(),satisfies:Re(),toComparators:ln(),maxSatisfying:un(),minSatisfying:fn(),minVersion:mn(),validRange:vn(),outside:Be(),gtr:On(),ltr:An(),intersects:Rn(),simplifyRange:Dn(),subset:Tn()}});var G=f(x=>{"use strict";var Do=x&&x.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,s)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),xo=x&&x.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),qo=x&&x.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Do(e,r,t);return xo(e,r),e},Fn=x&&x.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(x,"__esModule",{value:!0});x.getCoreVersion=void 0;var Hn=Fn(require("path")),kn=Fn(require("fs")),dt=qo(require("@serverless-devs/core")),Lo=Pn(),Mn=Hn.default.join(dt.getRootHome(),"cache","core"),mt=Hn.default.join(Mn,"package.json");function No(){if(kn.default.existsSync(mt)){var r=require("@serverless-devs/core/package.json").version,e=Gn();return Lo.gt(e,r)?require(Mn):dt}return dt}function Gn(){return kn.default.existsSync(mt)?require(mt).version:void 0}x.getCoreVersion=Gn;x.default=No()});var vt=f(De=>{"use strict";var To=De&&De.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(De,"__esModule",{value:!0});var jo=To(G()),Po=jo.default.Logger,gt=new Po("S-CLI");gt.success=function(r){return gt.log(r,"green")};De.default=gt});var Et=f(D=>{"use strict";var Fo=D&&D.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},Ho=D&&D.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Vn=D&&D.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(D,"__esModule",{value:!0});D.handlerProfileFile=D.getConfig=D.setConfig=void 0;var Kn=Vn(require("path")),yt=Vn(G()),P=yt.default.fse,ze=yt.default.jsyaml,_t=yt.default.getRootHome;function ko(r){var e=Xn();P.writeFileSync(e,ze.dump(r))}function Un(){var r=Xn();if(!P.existsSync(r))return{};try{var e=ze.load(P.readFileSync(r,"utf8"))||{};return e}catch(t){throw t}}function Xn(){var r=Kn.default.join(_t(),"set-config.yml");return P.existsSync(r)||P.createFileSync(r),r}function Mo(r,e){var t=Un();t[r]=e,ko(t)}D.setConfig=Mo;function Go(r,e){var t=Un();return t[r]||e}D.getConfig=Go;function Vo(r){return Fo(this,void 0,void 0,function(){var e,t,n,s,i,a,l;return Ho(this,function(c){switch(c.label){case 0:if(e=r.filePath||"set-config.yml",t=Kn.default.join(_t(),e),n=P.existsSync(t),s={},n)return[3,5];i=_t(),c.label=1;case 1:return c.trys.push([1,2,,4]),P.statSync(i),[3,4];case 2:return a=c.sent(),[4,P.mkdirSync(i)];case 3:return c.sent(),[3,4];case 4:return[3,6];case 5:try{s=ze.load(P.readFileSync(t,"utf8"))||{}}catch(o){throw o}c.label=6;case 6:return r.read?[2,s]:(l=r.configKey||"",s[l]=r.data,[4,P.writeFileSync(t,ze.dump(s))]);case 7:return c.sent(),[2,s]}})})}D.handlerProfileFile=Vo});var Bn=f((Oc,Ko)=>{Ko.exports={name:"@serverless-devs/s",version:"2.0.102-beta.3",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.0.0","@types/jest":"^27.4.0","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1",ajv:"^8.10.0","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.4.7","latest-version":"^5.1.0","lint-staged":"^10.0.8","os-locale":"5.0.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.1.3","ts-node":"^9.1.1",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var Ye=f(v=>{"use strict";var Uo=v&&v.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,s)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Xo=v&&v.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Bo=v&&v.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&Uo(e,r,t);return Xo(e,r),e},ie=v&&v.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},se=v&&v.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},wt=v&&v.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(v,"__esModule",{value:!0});v.specifyServiceHelp=v.getTempCommandStr=v.emoji=v.mark=v.replaceTemplate=v.replaceFun=v.getLang=v.printn=v.getFolderSize=v.getVersion=v.getPid=v.aiRequest=v.getCredentialWithAll=v.getCredentialWithExisted=v.getProcessArgv=v.bgRed=v.yellow=v.red=void 0;var Wo=wt(require("path")),xe=wt(require("fs")),zo=wt(require("os")),I=Bo(G()),Yo=Et(),Wn=Bn(),oe=I.default.colors,Zo=I.default.got,Jo=I.default.getMAC,Qo=I.default.isDocker,ea=I.default.isCiCdEnv,K=I.default.lodash,zn=I.default.publishHelp,ta=K.get,ra=K.trim,na=K.assign,ia=K.filter,Yn=K.includes,Zn=K.omit,sa=K.isPlainObject,oa=K.isEmpty,aa=oe.underline,la=oe.bold;v.red=oe.hex("#fd5750");v.yellow=oe.hex("#F3F99D");v.bgRed=oe.hex("#000").bgHex("#fd5750");var ca=function(){var r=process.env.serverless_devs_temp_argv;try{var e=JSON.parse(r),t=I.default.getGlobalArgs(e);return process.argv=process.argv.slice(0,2).concat(t._argsObj),na({},t,{noHelpArgv:process.argv.slice(0,2).concat(ia(t._argsObj,function(n){return!Yn(["-h","--help"],n)}))})}catch{return{}}};v.getProcessArgv=ca;var ua=function(r){return ie(void 0,void 0,void 0,function(){var e,t;return se(this,function(n){switch(n.label){case 0:return[4,I.default.getCredentialAliasList()];case 1:return e=n.sent(),Yn(e,r)?[4,I.default.getCredential(r)]:[3,3];case 2:return t=n.sent(),[2,Zn(t,"Alias")];case 3:return[2]}})})};v.getCredentialWithExisted=ua;var ha=function(){return ie(void 0,void 0,void 0,function(){var r,e,t,n,s,i;return se(this,function(a){switch(a.label){case 0:return[4,I.default.getCredentialAliasList()];case 1:if(r=a.sent(),!(r.length>0))return[3,6];e={},t=0,n=r,a.label=2;case 2:return t<n.length?(s=n[t],[4,I.default.getCredential(s)]):[3,5];case 3:i=a.sent(),e[i.Alias]=Zn(i,"Alias"),a.label=4;case 4:return t++,[3,2];case 5:return[2,e];case 6:return[2]}})})};v.getCredentialWithAll=ha;var fa=function(r,e){return e===void 0&&(e="unknow"),ie(void 0,void 0,void 0,function(){var t,n,s,i;return se(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),t=(0,Yo.getConfig)("analysis"),t!=="enable"?[2]:Qo()||ea()?[2]:[4,Zo("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(e,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0})];case 1:return n=a.sent(),s=ta(n.body,"shorturl"),s&&console.log(`AI Tips:
16
16
  You can try to solve the problem through: `.concat(oe.underline(s),`
17
17
  `)),[3,3];case 2:return i=a.sent(),[3,3];case 3:return[2]}})})};v.aiRequest=fa;var pa=function(){try{return Jo().replace(/:/g,"")}catch{return"unknown"}};v.getPid=pa;function da(){var r=(0,I.getCoreVersion)(),e=["".concat(Wn.name,": ").concat(Wn.version),r?"core: ".concat(r):void 0,"s-home: ".concat(I.default.getRootHome()),"".concat(process.platform,"-").concat(process.arch),"node-".concat(process.version)];return e.filter(function(t){return t}).join(", ")}v.getVersion=da;function ma(r){return ie(this,void 0,void 0,function(){function e(s){return ie(this,void 0,void 0,function(){var i,a;return se(this,function(l){switch(l.label){case 0:return i=xe.default.lstatSync(s),typeof i!="object"?[2]:(t.set(i.ino,i.size),i.isDirectory()?(a=xe.default.readdirSync(s),typeof a!="object"?[2]:[4,Promise.all(a.map(function(c){return e(Wo.default.join(s,c))}))]):[3,2]);case 1:l.sent(),l.label=2;case 2:return[2]}})})}var t,n;return se(this,function(s){switch(s.label){case 0:return t=new Map,[4,e(r)];case 1:return s.sent(),n=Array.from(t.values()).reduce(function(i,a){return i+a},0),[2,n]}})})}v.getFolderSize=ma;function ga(r,e){e===void 0&&(e=" ");for(var t="",n=0;n<r;n++)t=t+e;return t}v.printn=ga;function va(){return"en"}v.getLang=va;function Jn(r,e){var t=/\{\{(.*?)\}\}/g,n=r.match(t);if(n)for(var s=0;s<n.length;s++){var i=n[s].replace(/{{|}}/g,""),a=ra(i.split("|")[0]);e[a]&&(r=r.replace(n[s],e[a]))}return r}v.replaceFun=Jn;function _a(r,e){r.forEach(function(t){if(xe.default.existsSync(t)){var n=xe.default.readFileSync(t,"utf-8"),s=Jn(n,e);xe.default.writeFileSync(t,s,"utf-8")}})}v.replaceTemplate=_a;function ya(r){if(!r)return r;var e=r.slice(-4);return"***********".concat(e)}v.mark=ya;function bt(r,e){return zo.default.platform()==="win32"?e||"\u25C6":"".concat(r," ")}v.emoji=bt;function Qn(r,e){var t=r.length,n=new Array(e-t).fill(" ");return"".concat(r).concat(n.join("")," : ")}v.getTempCommandStr=Qn;function Ea(r){return ie(this,void 0,void 0,function(){var e,t,n,s,i,l,a,l;return se(this,function(c){switch(c.label){case 0:return[4,I.default.getYamlContent(r)];case 1:if(e=c.sent(),console.log(`
18
18
  `.concat(bt("\u{1F680}")," ").concat(e.Name,"@").concat(e.Version,": ").concat(e.Description,`
19
19
  `)),t=e.Commands,t){n=zn.maxLen(t),s=[],i={};for(l in t)a=t[l],sa(a)?s.push(zn.helpInfo(a,aa(la(l)),n,4)):i[l]=a;if(s.length>0&&console.log(s.join(`
20
20
  `)),!oa(i)){for(l in i)console.log(" ".concat(Qn(l,n)," ").concat(i[l]));console.log("")}console.log(e.HomePage?" ".concat(bt("\u{1F9ED}")," ").concat(I.default.makeUnderLine("More information: "+e.HomePage)," ")+`
21
- `:"")}return[2]}})})}v.specifyServiceHelp=Ea});var ei=f(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.default={clean_up_the_environment:"\u6E05\u7406\u73AF\u5883",display_help_for_command:"\u663E\u793A\u547D\u4EE4\u5E2E\u52A9",remove_components:"\u5220\u9664\u7EC4\u4EF6",delete_the_file_under_the_cache:"\u5220\u9664\u7F13\u5B58\u91CC\u7684\u7684<dirname>\u6587\u4EF6",record_your_log_information:"\u662F\u5426\u8BB0\u5F55\u60A8\u7684\u65E5\u5FD7\u4FE1\u606F\uFF1F",init_pproject_deploy_tip:"\u662F\u5426\u7ACB\u5373\u90E8\u7F72\u8BE5\u9879\u76EE\uFF1F",tip_for_a_serverless_project:"\u68C0\u6D4B\u5230\u5F53\u524D\u76EE\u5F55\u4E0B\u5DF2\u5B58\u5728\u4E00\u4E2AServerless-Devs\u9879\u76EE\uFF0C\u8BF7\u901A\u8FC7 's deploy' \u8FDB\u884C\u90E8\u7F72\u6216\u901A\u8FC7 's -h' \u83B7\u53D6\u66F4\u591A\u4FE1\u606F",create_a_new_project:"\u672A\u68C0\u6D4B\u5230 Serverless-Devs \u9879\u76EE\uFF0C\u662F\u5426\u65B0\u5EFA\u4E00\u4E2A\u9879\u76EE\uFF1F",en:"English (en)",zh:"\u4E2D\u6587 (zh)",select_current_language:"\u8BF7\u9009\u62E9\u5F53\u524D\u8BED\u8A00","app-tip":"\u8BF7\u9009\u62E9\u60A8\u5E0C\u671B\u521B\u5EFA\u7684 Serverless-Devs \u5E94\u7528","template-tip":"\u8BF7\u9009\u62E9\u60A8\u559C\u6B22\u7684\u6A21\u7248","fc-runtime-starter":"fc-runtime-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A FC \u51FD\u6570","fc-custom-container-stater":"fc-custom-container-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A custom-container \u5E94\u7528",web:"web-framework-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Web \u6846\u67B6","static-site":"static-website-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","best-practice":"serverless-best-practice - \u5FEB\u901F\u4F53\u9A8C Serverless \u6700\u4F73\u5B9E\u8DF5","devs-template":"Serverless Devs \u5F00\u53D1\u6A21\u677F","fc-http-nodejs":"fc-http-nodejs - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nodejs12 \u51FD\u6570","fc-http-python":"fc-http-python - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A python3 \u51FD\u6570","fc-http-java":"fc-http-java - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A java8 \u51FD\u6570","fc-custom-container-event-python3":"fc-custom-container-event-python3 - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 python3 \u5E94\u7528","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 cpp \u5E94\u7528","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 springboot \u5E94\u7528","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 aspdotnetcore \u5E94\u7528","express-starter":"express-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A express \u57FA\u7840\u5E94\u7528","koa-starter":"koa-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A koa \u57FA\u7840\u5E94\u7528","nuxtjs-starter":"nuxtjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nuxtjs \u57FA\u7840\u5E94\u7528","eggjs-starter":"eggjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A eggjs \u57FA\u7840\u5E94\u7528","flask-starter":"flask-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A flask \u57FA\u7840\u5E94\u7528","SpringBoot-starter":"SpringBoot-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A SpringBoot \u57FA\u7840\u5E94\u7528","Zblog-starter":"Zblog-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Zblog \u57FA\u7840\u5E94\u7528","website-starter":"website-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","react-starter":"react-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A React.js \u5E94\u7528","vue-starter":"vue-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Vue.js \u5E94\u7528",puppeteer:"puppeteer - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E puppeteer \u622A\u56FE\u7684 Web \u5E94\u7528",ffmpeg:"ffmpeg - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E ffmpeg \u5B9E\u73B0\u97F3\u89C6\u9891\u5904\u7406\u5E94\u7528",pdf2Img:"pdf2Img - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A pdf \u8F6C\u56FE\u7247\u5E94\u7528",tensorflow:"tensorflow - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A tensorflow \u5E94\u7528",todoList:"todoList - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E nodejs \u7684\u7F51\u9875 TodoList \u5E94\u7528"}});var ti=f(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.default={clean_up_the_environment:"Clean up the environment",display_help_for_command:"Display help for command",remove_components:"Remove component (like: fc, fc@0.0.1)",delete_the_file_under_the_cache:"Delete the <dirname> file in the cache",record_your_log_information:"Do you record your log information?",init_pproject_deploy_tip:"Do you want to deploy the project immediately?",tip_for_a_serverless_project:"A Serverless-Devs project is detected in the current directory, please deploy via 's deploy' or get more information via 's -h'",create_a_new_project:"No Serverless-Devs project is currently detected. Do you want to create a new project?",en:"English (en)",zh:"Chinese (zh)",select_current_language:"Please select current language","app-tip":"Hello, serverlesser. Which template do you like?","template-tip":"Which template do you like?","fc-runtime-starter":"fc-runtime-starter - Deploy FC function in 5 minutes","fc-custom-container-stater":"fc-custom-container-stater - Deploy FC function with custom-container",web:"web-framework-stater-Quickly deploy a web framework","static-site":"static-website-stater-Quickly deploy a static website","best-practice":"serverless-best-practice-Quickly experience serverless best practices","devs-template":"Serverless Develop scaffold","fc-http-nodejs":"fc-http-nodejs - Deploy FC nodejs12 runtime function","fc-http-python":"fc-http-python - Deploy FC python3 runtime function","fc-http-java":"fc-http-java - Deploy FC java8 runtime function","fc-custom-container-event-python3":"fc-custom-container-event-python3 - Deploy python3 event-triggered application","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - Deploy cpp event-triggered application","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - Deploy springboot HTTP Request-triggered application","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - Deploy dotnetcore HTTP Request-triggered application","express-starter":"express-starter - Deploy express application","koa-starter":"koa-starter - Deploy koa application","nuxtjs-starter":"nuxtjs-starter - Deploy nuxtjs application","eggjs-starter":"eggjs-starter - Deploy eggjs application","flask-starter":"flask-starter - Deploy flask application","SpringBoot-starter":"SpringBoot-starter - Deploy SpringBoot application","Zblog-starter":"Zblog-starter - Deploy Zblog application","website-starter":"website-starter - Deploy static website","react-starter":"react-starter - Deploy React.js application","vue-starter":"vue-starter - Deploy Vue.js application",puppeteer:"puppeteer - Deploy screenshot application base on puppeteer + fc",ffmpeg:"ffmpeg - Deploy audio and video processing application base on ffmpeg + fc",pdf2Img:"pdf2Img - Deploy pdf to images application",tensorflow:"tensorflow - Deploy tensorflow application",todoList:"todoList - Deploy todoList application"}});var ni=f(qe=>{"use strict";var ri=qe&&qe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(qe,"__esModule",{value:!0});var ba=Ye(),wa=ri(ei()),Oa=ri(ti()),At={en:Oa.default,zh:wa.default},Sa=function(r){var e=(0,ba.getLang)(),t=At[e]?At[e][r]:At.en[r];return t||r};qe.default=Sa});var Ct=f(C=>{"use strict";var Aa=C&&C.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,s)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),ii=C&&C.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Aa(e,r,t)},It=C&&C.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(C,"__esModule",{value:!0});C.registerCommandChecker=C.i18n=C.logger=void 0;var Ia=It(vt());ii(Ye(),C);ii(Et(),C);var Ca=vt();Object.defineProperty(C,"logger",{enumerable:!0,get:function(){return It(Ca).default}});var Ra=ni();Object.defineProperty(C,"i18n",{enumerable:!0,get:function(){return It(Ra).default}});function $a(r){r.on("command:*",function(e){var t=r.commands.map(function(n){return n.name()});t.includes(e[0])||(Ia.default.error(" error: unknown command ".concat(e[0])),r.help())})}C.registerCommandChecker=$a});var Q=f(ae=>{"use strict";var Da=ae&&ae.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ae,"__esModule",{value:!0});ae.ServerlessError=void 0;var xa=Da(G()),qa=xa.default.Logger,La=new qa("S-CLI-ERROR"),Na=function(){function r(e,t,n){La.error(e+": "+t,n),process.exit(1)}return r}();ae.ServerlessError=Na});var si=f(le=>{"use strict";var Ta=le&&le.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(le,"__esModule",{value:!0});le.CommandError=void 0;var ja=Q(),Pa=function(r){Ta(e,r);function e(t,n){return r.call(this,"Error",t,n)||this}return e}(ja.ServerlessError);le.CommandError=Pa});var oi=f(ce=>{"use strict";var Fa=ce&&ce.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ce,"__esModule",{value:!0});ce.ConfigDeleteError=void 0;var Ha=Q(),ka=function(r){Fa(e,r);function e(t,n){return r.call(this,"Deletion failed",t,n)||this}return e}(Ha.ServerlessError);ce.ConfigDeleteError=ka});var ai=f(ue=>{"use strict";var Ma=ue&&ue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ue,"__esModule",{value:!0});ue.ConfigError=void 0;var Ga=Q(),Ka=function(r){Ma(e,r);function e(t,n){return r.call(this,"Config failed",t,n)||this}return e}(Ga.ServerlessError);ue.ConfigError=Ka});var li=f(he=>{"use strict";var Va=he&&he.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(he,"__esModule",{value:!0});he.ConfigGetError=void 0;var Ua=Q(),Xa=function(r){Va(e,r);function e(t,n){return r.call(this,"Get failed",t,n)||this}return e}(Ua.ServerlessError);he.ConfigGetError=Xa});var ci=f(fe=>{"use strict";var Ba=fe&&fe.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(fe,"__esModule",{value:!0});fe.InitError=void 0;var Wa=Q(),za=function(r){Ba(e,r);function e(t,n){return r.call(this,"Initialization failed",t,n)||this}return e}(Wa.ServerlessError);fe.InitError=za});var hi=f(F=>{"use strict";var Ya=F&&F.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},Za=F&&F.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Ja=F&&F.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(F,"__esModule",{value:!0});F.HumanError=void 0;var ui=Ja(G()),Qa=Ye(),el=ui.default.colors,tl=function(){function r(e){var t=e.errorMessage,n=e.tips;this.errorMessage=t,console.log(`
21
+ `:"")}return[2]}})})}v.specifyServiceHelp=Ea});var ei=f(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.default={clean_up_the_environment:"\u6E05\u7406\u73AF\u5883",display_help_for_command:"\u663E\u793A\u547D\u4EE4\u5E2E\u52A9",remove_components:"\u5220\u9664\u7EC4\u4EF6",delete_the_file_under_the_cache:"\u5220\u9664\u7F13\u5B58\u91CC\u7684\u7684<dirname>\u6587\u4EF6",record_your_log_information:"\u662F\u5426\u8BB0\u5F55\u60A8\u7684\u65E5\u5FD7\u4FE1\u606F\uFF1F",init_pproject_deploy_tip:"\u662F\u5426\u7ACB\u5373\u90E8\u7F72\u8BE5\u9879\u76EE\uFF1F",tip_for_a_serverless_project:"\u68C0\u6D4B\u5230\u5F53\u524D\u76EE\u5F55\u4E0B\u5DF2\u5B58\u5728\u4E00\u4E2AServerless-Devs\u9879\u76EE\uFF0C\u8BF7\u901A\u8FC7 's deploy' \u8FDB\u884C\u90E8\u7F72\u6216\u901A\u8FC7 's -h' \u83B7\u53D6\u66F4\u591A\u4FE1\u606F",create_a_new_project:"\u672A\u68C0\u6D4B\u5230 Serverless-Devs \u9879\u76EE\uFF0C\u662F\u5426\u65B0\u5EFA\u4E00\u4E2A\u9879\u76EE\uFF1F",en:"English (en)",zh:"\u4E2D\u6587 (zh)",select_current_language:"\u8BF7\u9009\u62E9\u5F53\u524D\u8BED\u8A00","app-tip":"\u8BF7\u9009\u62E9\u60A8\u5E0C\u671B\u521B\u5EFA\u7684 Serverless-Devs \u5E94\u7528","template-tip":"\u8BF7\u9009\u62E9\u60A8\u559C\u6B22\u7684\u6A21\u7248","fc-runtime-starter":"fc-runtime-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A FC \u51FD\u6570","fc-custom-container-stater":"fc-custom-container-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A custom-container \u5E94\u7528",web:"web-framework-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Web \u6846\u67B6","static-site":"static-website-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","best-practice":"serverless-best-practice - \u5FEB\u901F\u4F53\u9A8C Serverless \u6700\u4F73\u5B9E\u8DF5","devs-template":"Serverless Devs \u5F00\u53D1\u6A21\u677F","fc-http-nodejs":"fc-http-nodejs - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nodejs12 \u51FD\u6570","fc-http-python":"fc-http-python - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A python3 \u51FD\u6570","fc-http-java":"fc-http-java - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A java8 \u51FD\u6570","fc-custom-container-event-python3":"fc-custom-container-event-python3 - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 python3 \u5E94\u7528","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 cpp \u5E94\u7528","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 springboot \u5E94\u7528","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 aspdotnetcore \u5E94\u7528","express-starter":"express-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A express \u57FA\u7840\u5E94\u7528","koa-starter":"koa-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A koa \u57FA\u7840\u5E94\u7528","nuxtjs-starter":"nuxtjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nuxtjs \u57FA\u7840\u5E94\u7528","eggjs-starter":"eggjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A eggjs \u57FA\u7840\u5E94\u7528","flask-starter":"flask-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A flask \u57FA\u7840\u5E94\u7528","SpringBoot-starter":"SpringBoot-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A SpringBoot \u57FA\u7840\u5E94\u7528","Zblog-starter":"Zblog-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Zblog \u57FA\u7840\u5E94\u7528","website-starter":"website-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","react-starter":"react-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A React.js \u5E94\u7528","vue-starter":"vue-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Vue.js \u5E94\u7528",puppeteer:"puppeteer - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E puppeteer \u622A\u56FE\u7684 Web \u5E94\u7528",ffmpeg:"ffmpeg - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E ffmpeg \u5B9E\u73B0\u97F3\u89C6\u9891\u5904\u7406\u5E94\u7528",pdf2Img:"pdf2Img - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A pdf \u8F6C\u56FE\u7247\u5E94\u7528",tensorflow:"tensorflow - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A tensorflow \u5E94\u7528",todoList:"todoList - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E nodejs \u7684\u7F51\u9875 TodoList \u5E94\u7528"}});var ti=f(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.default={clean_up_the_environment:"Clean up the environment",display_help_for_command:"Display help for command",remove_components:"Remove component (like: fc, fc@0.0.1)",delete_the_file_under_the_cache:"Delete the <dirname> file in the cache",record_your_log_information:"Do you record your log information?",init_pproject_deploy_tip:"Do you want to deploy the project immediately?",tip_for_a_serverless_project:"A Serverless-Devs project is detected in the current directory, please deploy via 's deploy' or get more information via 's -h'",create_a_new_project:"No Serverless-Devs project is currently detected. Do you want to create a new project?",en:"English (en)",zh:"Chinese (zh)",select_current_language:"Please select current language","app-tip":"Hello, serverlesser. Which template do you like?","template-tip":"Which template do you like?","fc-runtime-starter":"fc-runtime-starter - Deploy FC function in 5 minutes","fc-custom-container-stater":"fc-custom-container-stater - Deploy FC function with custom-container",web:"web-framework-stater-Quickly deploy a web framework","static-site":"static-website-stater-Quickly deploy a static website","best-practice":"serverless-best-practice-Quickly experience serverless best practices","devs-template":"Serverless Develop scaffold","fc-http-nodejs":"fc-http-nodejs - Deploy FC nodejs12 runtime function","fc-http-python":"fc-http-python - Deploy FC python3 runtime function","fc-http-java":"fc-http-java - Deploy FC java8 runtime function","fc-custom-container-event-python3":"fc-custom-container-event-python3 - Deploy python3 event-triggered application","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - Deploy cpp event-triggered application","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - Deploy springboot HTTP Request-triggered application","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - Deploy dotnetcore HTTP Request-triggered application","express-starter":"express-starter - Deploy express application","koa-starter":"koa-starter - Deploy koa application","nuxtjs-starter":"nuxtjs-starter - Deploy nuxtjs application","eggjs-starter":"eggjs-starter - Deploy eggjs application","flask-starter":"flask-starter - Deploy flask application","SpringBoot-starter":"SpringBoot-starter - Deploy SpringBoot application","Zblog-starter":"Zblog-starter - Deploy Zblog application","website-starter":"website-starter - Deploy static website","react-starter":"react-starter - Deploy React.js application","vue-starter":"vue-starter - Deploy Vue.js application",puppeteer:"puppeteer - Deploy screenshot application base on puppeteer + fc",ffmpeg:"ffmpeg - Deploy audio and video processing application base on ffmpeg + fc",pdf2Img:"pdf2Img - Deploy pdf to images application",tensorflow:"tensorflow - Deploy tensorflow application",todoList:"todoList - Deploy todoList application"}});var ni=f(qe=>{"use strict";var ri=qe&&qe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(qe,"__esModule",{value:!0});var ba=Ye(),wa=ri(ei()),Oa=ri(ti()),At={en:Oa.default,zh:wa.default},Sa=function(r){var e=(0,ba.getLang)(),t=At[e]?At[e][r]:At.en[r];return t||r};qe.default=Sa});var Ct=f(C=>{"use strict";var Aa=C&&C.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var s=Object.getOwnPropertyDescriptor(e,t);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,s)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),ii=C&&C.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Aa(e,r,t)},It=C&&C.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(C,"__esModule",{value:!0});C.registerCommandChecker=C.i18n=C.logger=void 0;var Ia=It(vt());ii(Ye(),C);ii(Et(),C);var Ca=vt();Object.defineProperty(C,"logger",{enumerable:!0,get:function(){return It(Ca).default}});var Ra=ni();Object.defineProperty(C,"i18n",{enumerable:!0,get:function(){return It(Ra).default}});function $a(r){r.on("command:*",function(e){var t=r.commands.map(function(n){return n.name()});t.includes(e[0])||(Ia.default.error(" error: unknown command ".concat(e[0])),r.help())})}C.registerCommandChecker=$a});var Q=f(ae=>{"use strict";var Da=ae&&ae.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ae,"__esModule",{value:!0});ae.ServerlessError=void 0;var xa=Da(G()),qa=xa.default.Logger,La=new qa("S-CLI-ERROR"),Na=function(){function r(e,t,n){La.error(e+": "+t,n),process.exit(1)}return r}();ae.ServerlessError=Na});var si=f(le=>{"use strict";var Ta=le&&le.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(le,"__esModule",{value:!0});le.CommandError=void 0;var ja=Q(),Pa=function(r){Ta(e,r);function e(t,n){return r.call(this,"Error",t,n)||this}return e}(ja.ServerlessError);le.CommandError=Pa});var oi=f(ce=>{"use strict";var Fa=ce&&ce.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ce,"__esModule",{value:!0});ce.ConfigDeleteError=void 0;var Ha=Q(),ka=function(r){Fa(e,r);function e(t,n){return r.call(this,"Deletion failed",t,n)||this}return e}(Ha.ServerlessError);ce.ConfigDeleteError=ka});var ai=f(ue=>{"use strict";var Ma=ue&&ue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ue,"__esModule",{value:!0});ue.ConfigError=void 0;var Ga=Q(),Va=function(r){Ma(e,r);function e(t,n){return r.call(this,"Config failed",t,n)||this}return e}(Ga.ServerlessError);ue.ConfigError=Va});var li=f(he=>{"use strict";var Ka=he&&he.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(he,"__esModule",{value:!0});he.ConfigGetError=void 0;var Ua=Q(),Xa=function(r){Ka(e,r);function e(t,n){return r.call(this,"Get failed",t,n)||this}return e}(Ua.ServerlessError);he.ConfigGetError=Xa});var ci=f(fe=>{"use strict";var Ba=fe&&fe.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[i]=s[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(fe,"__esModule",{value:!0});fe.InitError=void 0;var Wa=Q(),za=function(r){Ba(e,r);function e(t,n){return r.call(this,"Initialization failed",t,n)||this}return e}(Wa.ServerlessError);fe.InitError=za});var hi=f(F=>{"use strict";var Ya=F&&F.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},Za=F&&F.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},Ja=F&&F.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(F,"__esModule",{value:!0});F.HumanError=void 0;var ui=Ja(G()),Qa=Ye(),el=ui.default.colors,tl=function(){function r(e){var t=e.errorMessage,n=e.tips;this.errorMessage=t,console.log(`
22
22
  `.concat((0,Qa.bgRed)("ERROR:"))),console.log("TypeError: ".concat(t,`
23
23
  `)),n&&console.log("".concat(el.gray(n),`
24
24
  `))}return r.prototype.report=function(e){return Ya(this,void 0,void 0,function(){var t;return Za(this,function(n){switch(n.label){case 0:return t=e.error,[4,ui.default.report({type:"jsError",content:"".concat(this.errorMessage,"||").concat(t.stack)})];case 1:return n.sent(),[2]}})})},r}();F.HumanError=tl});var pi=f(pe=>{"use strict";var rl=pe&&pe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(pe,"__esModule",{value:!0});pe.HumanWarning=void 0;var nl=rl(G()),fi=nl.default.colors,il=function(){function r(e){var t=e.warningMessage,n=e.tips;console.log(`
@@ -38,7 +38,7 @@ You can try to solve the problem through: `.concat(oe.underline(s),`
38
38
  `))),console.log("".concat((0,H.bgRed)("ERROR:"),`
39
39
  `)),console.log(Rt()?r.stack:"".concat(i,`
40
40
  `)),[4,(0,H.aiRequest)(i)];case 4:o.sent(),o.label=5;case 5:return t.catchableError||(t.traceId&&console.log(U.gray("TraceId: ".concat(t.traceId))),console.log(U.gray("Environment: ".concat((0,H.getVersion)()))),console.log($t("Documents: ","https://www.serverless-devs.com")),console.log($t("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log($t("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
41
- `)),t.traceId&&console.log(U.gray("Please copy traceId: ".concat(t.traceId," and join Dingding group: 33947367 for consultation.")))),console.log(U.gray("You can run 's clean --all' to clean Serverless devs.")),t.traceId&&!t.catchableError?[4,ll({type:"jsError",content:"".concat(n.message,"||").concat(n.stack),traceId:t.traceId})]:[3,7];case 6:o.sent(),o.label=7;case 7:return process.exit(n.code||1),[2]}})})};E.HandleError=_l});var yl=exports&&exports.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},El=exports&&exports.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},gi=exports&&exports.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0});var q=gi(Ht()),di=Dt(),vi=Ct(),de=gi(G()),bl=de.default.setCredential,wl=de.default.setKnownCredential,_i=de.default.colors,Ol=de.default.getAccountId,Sl=de.default.getCommand,Al=de.default.chalk,mi=Dt(),Il=`You can add an account
41
+ `)),t.traceId&&console.log(U.gray("Please copy traceId: ".concat(t.traceId," and join Dingding group: 33947367 for consultation.")))),console.log(U.gray("You can run 's clean --all' to clean Serverless devs.")),t.traceId&&!t.catchableError?[4,ll({type:"jsError",content:"".concat(n.message,"||").concat(n.stack),traceId:t.traceId})]:[3,7];case 6:o.sent(),o.label=7;case 7:return process.exit(n.code||1),[2]}})})};E.HandleError=_l});var di=exports&&exports.__awaiter||function(r,e,t,n){function s(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(u){try{o(n.next(u))}catch(h){a(h)}}function c(u){try{o(n.throw(u))}catch(h){a(h)}}function o(u){u.done?i(u.value):s(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},mi=exports&&exports.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,s,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,s&&(i=o[0]&2?s.return:o[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,o[1])).done)return i;switch(s=0,i&&(o=[o[0]&2,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,s=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){t.label=o[1];break}if(o[0]===6&&t.label<i[1]){t.label=i[1],i=o;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(o);break}i[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],s=0}finally{n=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},vi=exports&&exports.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0});var q=vi(Ht()),yl=Dt(),_i=Ct(),de=vi(G()),El=de.default.setCredential,bl=de.default.setKnownCredential,wl=de.default.colors,Ol=de.default.getAccountId,Sl=de.default.getCommand,Al=de.default.chalk,gi=Dt(),Il=`You can add an account
42
42
 
43
43
  Example:
44
44
  $ s config add
@@ -54,4 +54,4 @@ You can try to solve the problem through: `.concat(oe.underline(s),`
54
54
  google: PrivateKeyData
55
55
  tencent: AccountID, SecretID, SecretKey
56
56
 
57
- `.concat((0,vi.emoji)("\u{1F9ED}")," How to get the key: ").concat(_i.underline("https://github.com/Serverless-Devs/docs/tree/master/zh/others/provider-config"));(function(){return yl(void 0,void 0,void 0,function(){var r,e,t,n,s,i,a,l,c,o,u,h,m,g,Le,R,Ne,Je,me,xt,yi;return El(this,function(ee){switch(ee.label){case 0:return r=(0,vi.getProcessArgv)(),e=r.access,t=r.aliasName,q.default.name("s config add").usage("[options]").option("--AccountID <AccountID>","AccountID of key information").option("--AccessKeyID <AccessKeyID>","AccessKeyID of key information").option("--AccessKeySecret <AccessKeySecret>","AccessKeySecret of key information").option("--SecurityToken <SecurityToken>","SecurityToken of key information").option("--SecretAccessKey <SecretAccessKey>","SecretAccessKey of key information").option("--AccessKey <AccessKey>","AccessKey of key information").option("--SecretKey <SecretKey>","SecretKey of key information").option("--SecretID <SecretID>","SecretID of key information").option("--PrivateKeyData <PrivateKeyData>","PrivateKeyData of key information").option("-kl, --keyList <keyList>","Keys of key information, like: -kl key1,key2,key3").option("-il, --infoList <infoList>","Values of key information, like: -il info1,info2,info3").option("-a, --access <aliasName>","Specify the access alias name.").option("-f","Mandatory overwrite key information").helpOption("-h, --help","Display help for command").allowUnknownOption().description(Il).addHelpCommand(!1).parse(process.argv),n=q.default.AccountID,s=q.default.AccessKeyID,i=q.default.AccessKeySecret,a=q.default.SecretAccessKey,l=q.default.AccessKey,c=q.default.SecretKey,o=q.default.PrivateKeyData,u=q.default.SecretID,h=q.default.keyList,m=q.default.infoList,g=q.default.SecurityToken,Le=q.default.f,process.argv.length!==2?[3,2]:[4,bl()];case 1:return[2,ee.sent()];case 2:if(R={},h&&m)if(Ne=h.split(","),Je=m.split(","),Ne.length===Je.length)for(me=0;me<Ne.length;me++)R[Ne[me]]=Je[me];else throw new di.CommandError("Please make sure -kl/--keyList is as long as -il/--infoList");if(n&&(R.AccountID=n),s&&(R.AccessKeyID=s),i&&(R.AccessKeySecret=i),g&&(R.SecurityToken=g),!(s&&i))return[3,6];ee.label=3;case 3:return ee.trys.push([3,5,,6]),[4,Ol({AccessKeyID:s,AccessKeySecret:i,SecurityToken:g})];case 4:return xt=ee.sent(),R.AccountID=xt.AccountId,[3,6];case 5:return yi=ee.sent(),Le||(new mi.HumanWarning({warningMessage:"You may be configuring an incorrect Alibaba Cloud SecretKey.",tips:"Please check the accuracy of Alibaba Cloud SecretKey. If your configuration is not an Alibaba Cloud SecretKey, you can force writing by adding the -f parameter. Or execute ".concat(Al.yellow("".concat(Sl()," -f")))}),process.exit(1)),[3,6];case 6:return a&&(R.SecretAccessKey=a),l&&(R.AccessKey=l),c&&(R.SecretKey=c),c&&(R.SecretKey=c),u&&(R.SecretID=u),o&&(R.PrivateKeyData=o),Object.keys(R).length>0&&wl(R,e||t),[2]}})})})().catch(function(r){if(r.message==="alibaba")new mi.HumanError({errorMessage:"You are configuring an incorrect Alibaba Cloud SecretKey.",tips:"Please check the accuracy of Alibaba Cloud SecretKey. documents: ".concat(_i.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/default_provider_config/alibabacloud.md"))}),process.exit(1);else throw new di.CommandError(r.message)});
57
+ `.concat((0,_i.emoji)("\u{1F9ED}")," How to get the key: ").concat(wl.underline("https://github.com/Serverless-Devs/docs/tree/master/zh/others/provider-config"));(function(){return di(void 0,void 0,void 0,function(){var r,e,t,n,s,i,a,l,c,o,u,h,m,g,Le,R,Ne,Je,me,xt,yi;return mi(this,function(ee){switch(ee.label){case 0:return r=(0,_i.getProcessArgv)(),e=r.access,t=r.aliasName,q.default.name("s config add").usage("[options]").option("--AccountID <AccountID>","AccountID of key information").option("--AccessKeyID <AccessKeyID>","AccessKeyID of key information").option("--AccessKeySecret <AccessKeySecret>","AccessKeySecret of key information").option("--SecurityToken <SecurityToken>","SecurityToken of key information").option("--SecretAccessKey <SecretAccessKey>","SecretAccessKey of key information").option("--AccessKey <AccessKey>","AccessKey of key information").option("--SecretKey <SecretKey>","SecretKey of key information").option("--SecretID <SecretID>","SecretID of key information").option("--PrivateKeyData <PrivateKeyData>","PrivateKeyData of key information").option("-kl, --keyList <keyList>","Keys of key information, like: -kl key1,key2,key3").option("-il, --infoList <infoList>","Values of key information, like: -il info1,info2,info3").option("-a, --access <aliasName>","Specify the access alias name.").option("-f","Mandatory overwrite key information").helpOption("-h, --help","Display help for command").allowUnknownOption().description(Il).addHelpCommand(!1).parse(process.argv),n=q.default.AccountID,s=q.default.AccessKeyID,i=q.default.AccessKeySecret,a=q.default.SecretAccessKey,l=q.default.AccessKey,c=q.default.SecretKey,o=q.default.PrivateKeyData,u=q.default.SecretID,h=q.default.keyList,m=q.default.infoList,g=q.default.SecurityToken,Le=q.default.f,process.argv.length!==2?[3,2]:[4,El()];case 1:return[2,ee.sent()];case 2:if(R={},h&&m)if(Ne=h.split(","),Je=m.split(","),Ne.length===Je.length)for(me=0;me<Ne.length;me++)R[Ne[me]]=Je[me];else throw new yl.CommandError("Please make sure -kl/--keyList is as long as -il/--infoList");if(n&&(R.AccountID=n),s&&(R.AccessKeyID=s),i&&(R.AccessKeySecret=i),g&&(R.SecurityToken=g),!(s&&i))return[3,6];ee.label=3;case 3:return ee.trys.push([3,5,,6]),[4,Ol({AccessKeyID:s,AccessKeySecret:i,SecurityToken:g})];case 4:return xt=ee.sent(),R.AccountID=xt.AccountId,[3,6];case 5:return yi=ee.sent(),Le||(new gi.HumanWarning({warningMessage:"You may be configuring an incorrect Alibaba Cloud SecretKey.",tips:"Please check the accuracy of Alibaba Cloud SecretKey. If your configuration is not an Alibaba Cloud SecretKey, you can force writing by adding the -f parameter. Or execute ".concat(Al.yellow("".concat(Sl()," -f")))}),process.exit(1)),[3,6];case 6:return a&&(R.SecretAccessKey=a),l&&(R.AccessKey=l),c&&(R.SecretKey=c),c&&(R.SecretKey=c),u&&(R.SecretID=u),o&&(R.PrivateKeyData=o),Object.keys(R).length>0&&bl(R,e||t),[2]}})})})().catch(function(r){return di(void 0,void 0,void 0,function(){return mi(this,function(e){switch(e.label){case 0:return[4,(0,gi.HandleError)(r)];case 1:return e.sent(),[2]}})})});