@serverless-devs/s 2.0.103-beta.1 → 2.0.103
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.
- package/CNAME +1 -0
- package/_config.yml +1 -0
- package/lib/clean/index.js +1 -1
- package/lib/cli/index.js +1 -1
- package/lib/component/index.js +1 -1
- package/lib/config/add/index.js +1 -1
- package/lib/config/delete/index.js +1 -1
- package/lib/config/get/index.js +1 -1
- package/lib/config/index.js +3 -3
- package/lib/index.js +1 -1
- package/lib/init/index.js +1 -1
- package/lib/set/analysis/index.js +1 -1
- package/lib/set/index.js +3 -3
- package/lib/set/locale/index.js +1 -1
- package/lib/set/registry/index.js +1 -1
- package/lib/set/workspace/index.js +1 -1
- package/lib/update-notifier/index.js +1 -1
- package/lib/verify/index.js +1 -1
- package/package.json +2 -2
- package/readme.md +1 -0
- package/a.yaml +0 -38
package/lib/config/index.js
CHANGED
|
@@ -12,12 +12,12 @@
|
|
|
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 a=this.padWidth(),m=(process.stdout.columns||80)-a-5;e.push("Arguments:"),this._args.forEach(p=>{e.push(" "+Le(p.name,a)+" "+tt(c[p.name]||"",m,a+4))}),e.push("")}}let t=this._name;this._aliases[0]&&(t=t+"|"+this._aliases[0]);let i="";for(let c=this.parent;c;c=c.parent)i=c.name()+" "+i;let s=["Usage: "+i+t+" "+this.usage(),""],n=[],o=this.commandHelp();o&&(n=[o]);let l=[];return(this._hasHelpOption||this.options.length>0)&&(l=["Options:",""+this.optionHelp().replace(/^/gm," "),""]),s.concat(e).concat(l).concat(n).join(`
|
|
13
13
|
`)}outputHelp(e){e||(e=i=>i);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 i=rt(this._helpFlags);return this._helpShortFlag=i.shortFlag,this._helpLongFlag=i.longFlag,this}help(e){this.outputHelp(e),this._exit(process.exitCode||0,"commander.help","(outputHelp)")}_helpAndError(){this.outputHelp(),this._exit(1,"commander.help","(outputHelp)")}};H=it.exports=new K;H.program=H;H.Command=K;H.Option=fe;H.CommanderError=Z;function $i(r){return r.split("-").reduce((e,t)=>e+t[0].toUpperCase()+t.slice(1))}function Le(r,e){let t=Math.max(0,e-r.length);return r+Array(t+1).join(" ")}function tt(r,e,t){let i=new RegExp(".{1,"+(e-1)+"}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)","g");return(r.match(i)||[]).map((n,o)=>(n.slice(-1)===`
|
|
14
14
|
`&&(n=n.slice(0,n.length-1)),(o>0&&t?Array(t+1).join(" "):"")+n.trimRight())).join(`
|
|
15
|
-
`)}function Ze(r,e,t){return r.match(/[\n]\s+/)||e<40?r:tt(r,e,t)}function Ke(r,e){r._hasHelpOption&&e.find(i=>i===r._helpLongFlag||i===r._helpShortFlag)&&(r.outputHelp(),r._exit(0,"commander.helpDisplayed","(outputHelp)"))}function Qe(r){let e=r.name+(r.variadic===!0?"...":"");return r.required?"<"+e+">":"["+e+"]"}function rt(r){let e,t,i=r.split(/[ |,]+/);return i.length>1&&!/^[[<]/.test(i[1])&&(e=i.shift()),t=i.shift(),!e&&/^-[^-]$/.test(t)&&(e=t,t=void 0),{shortFlag:e,longFlag:t}}function et(r){return r.map(e=>{if(!e.startsWith("--inspect"))return e;let t,i="127.0.0.1",s="9229",n;return(n=e.match(/^(--inspect(-brk)?)$/))!==null?t=n[1]:(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=n[1],/^\d+$/.test(n[3])?s=n[3]:i=n[3]):(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=n[1],i=n[3],s=n[4]),t&&s!=="0"?`${t}=${i}:${parseInt(s)+1}`:e})}});var Q=g((Ro,nt)=>{var bi="2.0.0",Ai=Number.MAX_SAFE_INTEGER||9007199254740991,Ri=16;nt.exports={SEMVER_SPEC_VERSION:bi,MAX_LENGTH:256,MAX_SAFE_INTEGER:Ai,MAX_SAFE_COMPONENT_LENGTH:Ri}});var ee=g((Io,ot)=>{var Ii=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};ot.exports=Ii});var G=g((D,at)=>{var{MAX_SAFE_COMPONENT_LENGTH:qe}=Q(),wi=ee();D=at.exports={};var Si=D.re=[],h=D.src=[],f=D.t={},Ci=0,v=(r,e,t)=>{let i=Ci++;wi(i,e),f[r]=i,h[i]=e,Si[i]=new RegExp(e,t?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*");v("NUMERICIDENTIFIERLOOSE","[0-9]+");v("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");v("MAINVERSION",`(${h[f.NUMERICIDENTIFIER]})\\.(${h[f.NUMERICIDENTIFIER]})\\.(${h[f.NUMERICIDENTIFIER]})`);v("MAINVERSIONLOOSE",`(${h[f.NUMERICIDENTIFIERLOOSE]})\\.(${h[f.NUMERICIDENTIFIERLOOSE]})\\.(${h[f.NUMERICIDENTIFIERLOOSE]})`);v("PRERELEASEIDENTIFIER",`(?:${h[f.NUMERICIDENTIFIER]}|${h[f.NONNUMERICIDENTIFIER]})`);v("PRERELEASEIDENTIFIERLOOSE",`(?:${h[f.NUMERICIDENTIFIERLOOSE]}|${h[f.NONNUMERICIDENTIFIER]})`);v("PRERELEASE",`(?:-(${h[f.PRERELEASEIDENTIFIER]}(?:\\.${h[f.PRERELEASEIDENTIFIER]})*))`);v("PRERELEASELOOSE",`(?:-?(${h[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${h[f.PRERELEASEIDENTIFIERLOOSE]})*))`);v("BUILDIDENTIFIER","[0-9A-Za-z-]+");v("BUILD",`(?:\\+(${h[f.BUILDIDENTIFIER]}(?:\\.${h[f.BUILDIDENTIFIER]})*))`);v("FULLPLAIN",`v?${h[f.MAINVERSION]}${h[f.PRERELEASE]}?${h[f.BUILD]}?`);v("FULL",`^${h[f.FULLPLAIN]}$`);v("LOOSEPLAIN",`[v=\\s]*${h[f.MAINVERSIONLOOSE]}${h[f.PRERELEASELOOSE]}?${h[f.BUILD]}?`);v("LOOSE",`^${h[f.LOOSEPLAIN]}$`);v("GTLT","((?:<|>)?=?)");v("XRANGEIDENTIFIERLOOSE",`${h[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);v("XRANGEIDENTIFIER",`${h[f.NUMERICIDENTIFIER]}|x|X|\\*`);v("XRANGEPLAIN",`[v=\\s]*(${h[f.XRANGEIDENTIFIER]})(?:\\.(${h[f.XRANGEIDENTIFIER]})(?:\\.(${h[f.XRANGEIDENTIFIER]})(?:${h[f.PRERELEASE]})?${h[f.BUILD]}?)?)?`);v("XRANGEPLAINLOOSE",`[v=\\s]*(${h[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${h[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${h[f.XRANGEIDENTIFIERLOOSE]})(?:${h[f.PRERELEASELOOSE]})?${h[f.BUILD]}?)?)?`);v("XRANGE",`^${h[f.GTLT]}\\s*${h[f.XRANGEPLAIN]}$`);v("XRANGELOOSE",`^${h[f.GTLT]}\\s*${h[f.XRANGEPLAINLOOSE]}$`);v("COERCE",`(^|[^\\d])(\\d{1,${qe}})(?:\\.(\\d{1,${qe}}))?(?:\\.(\\d{1,${qe}}))?(?:$|[^\\d])`);v("COERCERTL",h[f.COERCE],!0);v("LONETILDE","(?:~>?)");v("TILDETRIM",`(\\s*)${h[f.LONETILDE]}\\s+`,!0);D.tildeTrimReplace="$1~";v("TILDE",`^${h[f.LONETILDE]}${h[f.XRANGEPLAIN]}$`);v("TILDELOOSE",`^${h[f.LONETILDE]}${h[f.XRANGEPLAINLOOSE]}$`);v("LONECARET","(?:\\^)");v("CARETTRIM",`(\\s*)${h[f.LONECARET]}\\s+`,!0);D.caretTrimReplace="$1^";v("CARET",`^${h[f.LONECARET]}${h[f.XRANGEPLAIN]}$`);v("CARETLOOSE",`^${h[f.LONECARET]}${h[f.XRANGEPLAINLOOSE]}$`);v("COMPARATORLOOSE",`^${h[f.GTLT]}\\s*(${h[f.LOOSEPLAIN]})$|^$`);v("COMPARATOR",`^${h[f.GTLT]}\\s*(${h[f.FULLPLAIN]})$|^$`);v("COMPARATORTRIM",`(\\s*)${h[f.GTLT]}\\s*(${h[f.LOOSEPLAIN]}|${h[f.XRANGEPLAIN]})`,!0);D.comparatorTrimReplace="$1$2$3";v("HYPHENRANGE",`^\\s*(${h[f.XRANGEPLAIN]})\\s+-\\s+(${h[f.XRANGEPLAIN]})\\s*$`);v("HYPHENRANGELOOSE",`^\\s*(${h[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${h[f.XRANGEPLAINLOOSE]})\\s*$`);v("STAR","(<|>)?=?\\s*\\*");v("GTE0","^\\s*>=\\s*0.0.0\\s*$");v("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var te=g((wo,lt)=>{var xi=["includePrerelease","loose","rtl"],Ni=r=>r?typeof r!="object"?{loose:!0}:xi.filter(e=>r[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};lt.exports=Ni});var pe=g((So,ht)=>{var ct=/^[0-9]+$/,ut=(r,e)=>{let t=ct.test(r),i=ct.test(e);return t&&i&&(r=+r,e=+e),r===e?0:t&&!i?-1:i&&!t?1:r<e?-1:1},Li=(r,e)=>ut(e,r);ht.exports={compareIdentifiers:ut,rcompareIdentifiers:Li}});var b=g((Co,dt)=>{var me=ee(),{MAX_LENGTH:ft,MAX_SAFE_INTEGER:de}=Q(),{re:pt,t:mt}=G(),qi=te(),{compareIdentifiers:re}=pe(),C=class{constructor(e,t){if(t=qi(t),e instanceof C){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>ft)throw new TypeError(`version is longer than ${ft} characters`);me("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let i=e.trim().match(t.loose?pt[mt.LOOSE]:pt[mt.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>de||this.major<0)throw new TypeError("Invalid major version");if(this.minor>de||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>de||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let n=+s;if(n>=0&&n<de)return n}return s}):this.prerelease=[],this.build=i[5]?i[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(me("SemVer.compare",this.version,this.options,e),!(e instanceof C)){if(typeof e=="string"&&e===this.version)return 0;e=new C(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof C||(e=new C(e,this.options)),re(this.major,e.major)||re(this.minor,e.minor)||re(this.patch,e.patch)}comparePre(e){if(e instanceof C||(e=new C(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 i=this.prerelease[t],s=e.prerelease[t];if(me("prerelease compare",t,i,s),i===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(i===void 0)return-1;if(i===s)continue;return re(i,s)}while(++t)}compareBuild(e){e instanceof C||(e=new C(e,this.options));let t=0;do{let i=this.build[t],s=e.build[t];if(me("prerelease compare",t,i,s),i===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(i===void 0)return-1;if(i===s)continue;return re(i,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 i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);i===-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}};dt.exports=C});var V=g((xo,_t)=>{var{MAX_LENGTH:Ti}=Q(),{re:gt,t:Et}=G(),vt=b(),Pi=te(),Di=(r,e)=>{if(e=Pi(e),r instanceof vt)return r;if(typeof r!="string"||r.length>Ti||!(e.loose?gt[Et.LOOSE]:gt[Et.FULL]).test(r))return null;try{return new vt(r,e)}catch{return null}};_t.exports=Di});var Ot=g((No,yt)=>{var Fi=V(),ji=(r,e)=>{let t=Fi(r,e);return t?t.version:null};yt.exports=ji});var bt=g((Lo,$t)=>{var Hi=V(),Gi=(r,e)=>{let t=Hi(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};$t.exports=Gi});var Rt=g((qo,At)=>{var Vi=b(),Mi=(r,e,t,i)=>{typeof t=="string"&&(i=t,t=void 0);try{return new Vi(r,t).inc(e,i).version}catch{return null}};At.exports=Mi});var x=g((To,wt)=>{var It=b(),Ui=(r,e,t)=>new It(r,t).compare(new It(e,t));wt.exports=Ui});var ge=g((Po,St)=>{var Xi=x(),Bi=(r,e,t)=>Xi(r,e,t)===0;St.exports=Bi});var Nt=g((Do,xt)=>{var Ct=V(),Wi=ge(),zi=(r,e)=>{if(Wi(r,e))return null;{let t=Ct(r),i=Ct(e),s=t.prerelease.length||i.prerelease.length,n=s?"pre":"",o=s?"prerelease":"";for(let l in t)if((l==="major"||l==="minor"||l==="patch")&&t[l]!==i[l])return n+l;return o}};xt.exports=zi});var qt=g((Fo,Lt)=>{var ki=b(),Yi=(r,e)=>new ki(r,e).major;Lt.exports=Yi});var Pt=g((jo,Tt)=>{var Ji=b(),Zi=(r,e)=>new Ji(r,e).minor;Tt.exports=Zi});var Ft=g((Ho,Dt)=>{var Ki=b(),Qi=(r,e)=>new Ki(r,e).patch;Dt.exports=Qi});var Ht=g((Go,jt)=>{var es=V(),ts=(r,e)=>{let t=es(r,e);return t&&t.prerelease.length?t.prerelease:null};jt.exports=ts});var Vt=g((Vo,Gt)=>{var rs=x(),is=(r,e,t)=>rs(e,r,t);Gt.exports=is});var Ut=g((Mo,Mt)=>{var ss=x(),ns=(r,e)=>ss(r,e,!0);Mt.exports=ns});var Ee=g((Uo,Bt)=>{var Xt=b(),os=(r,e,t)=>{let i=new Xt(r,t),s=new Xt(e,t);return i.compare(s)||i.compareBuild(s)};Bt.exports=os});var zt=g((Xo,Wt)=>{var as=Ee(),ls=(r,e)=>r.sort((t,i)=>as(t,i,e));Wt.exports=ls});var Yt=g((Bo,kt)=>{var cs=Ee(),us=(r,e)=>r.sort((t,i)=>cs(i,t,e));kt.exports=us});var ie=g((Wo,Jt)=>{var hs=x(),fs=(r,e,t)=>hs(r,e,t)>0;Jt.exports=fs});var ve=g((zo,Zt)=>{var ps=x(),ms=(r,e,t)=>ps(r,e,t)<0;Zt.exports=ms});var Te=g((ko,Kt)=>{var ds=x(),gs=(r,e,t)=>ds(r,e,t)!==0;Kt.exports=gs});var _e=g((Yo,Qt)=>{var Es=x(),vs=(r,e,t)=>Es(r,e,t)>=0;Qt.exports=vs});var ye=g((Jo,er)=>{var _s=x(),ys=(r,e,t)=>_s(r,e,t)<=0;er.exports=ys});var Pe=g((Zo,tr)=>{var Os=ge(),$s=Te(),bs=ie(),As=_e(),Rs=ve(),Is=ye(),ws=(r,e,t,i)=>{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 Os(r,t,i);case"!=":return $s(r,t,i);case">":return bs(r,t,i);case">=":return As(r,t,i);case"<":return Rs(r,t,i);case"<=":return Is(r,t,i);default:throw new TypeError(`Invalid operator: ${e}`)}};tr.exports=ws});var ir=g((Ko,rr)=>{var Ss=b(),Cs=V(),{re:Oe,t:$e}=G(),xs=(r,e)=>{if(r instanceof Ss)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(Oe[$e.COERCE]);else{let i;for(;(i=Oe[$e.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||i.index+i[0].length!==t.index+t[0].length)&&(t=i),Oe[$e.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;Oe[$e.COERCERTL].lastIndex=-1}return t===null?null:Cs(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};rr.exports=xs});var nr=g((Qo,sr)=>{"use strict";sr.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var ar=g((ea,or)=>{"use strict";or.exports=_;_.Node=M;_.create=_;function _(r){var e=this;if(e instanceof _||(e=new _),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,i=arguments.length;t<i;t++)e.push(arguments[t]);return e}_.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};_.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++}};_.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++}};_.prototype.push=function(){for(var r=0,e=arguments.length;r<e;r++)Ls(this,arguments[r]);return this.length};_.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)qs(this,arguments[r]);return this.length};_.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}};_.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}};_.prototype.forEach=function(r,e){e=e||this;for(var t=this.head,i=0;t!==null;i++)r.call(e,t.value,i,this),t=t.next};_.prototype.forEachReverse=function(r,e){e=e||this;for(var t=this.tail,i=this.length-1;t!==null;i--)r.call(e,t.value,i,this),t=t.prev};_.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};_.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};_.prototype.map=function(r,e){e=e||this;for(var t=new _,i=this.head;i!==null;)t.push(r.call(e,i.value,this)),i=i.next;return t};_.prototype.mapReverse=function(r,e){e=e||this;for(var t=new _,i=this.tail;i!==null;)t.push(r.call(e,i.value,this)),i=i.prev;return t};_.prototype.reduce=function(r,e){var t,i=this.head;if(arguments.length>1)t=e;else if(this.head)i=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;i!==null;s++)t=r(t,i.value,s),i=i.next;return t};_.prototype.reduceReverse=function(r,e){var t,i=this.tail;if(arguments.length>1)t=e;else if(this.tail)i=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;i!==null;s--)t=r(t,i.value,s),i=i.prev;return t};_.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};_.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};_.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 _;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var i=0,s=this.head;s!==null&&i<r;i++)s=s.next;for(;s!==null&&i<e;i++,s=s.next)t.push(s.value);return t};_.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 _;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var i=this.length,s=this.tail;s!==null&&i>e;i--)s=s.prev;for(;s!==null&&i>r;i--,s=s.prev)t.push(s.value);return t};_.prototype.splice=function(r,e,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var i=0,s=this.head;s!==null&&i<r;i++)s=s.next;for(var n=[],i=0;s&&i<e;i++)n.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var i=0;i<t.length;i++)s=Ns(this,s,t[i]);return n};_.prototype.reverse=function(){for(var r=this.head,e=this.tail,t=r;t!==null;t=t.prev){var i=t.prev;t.prev=t.next,t.next=i}return this.head=e,this.tail=r,this};function Ns(r,e,t){var i=e===r.head?new M(t,null,e,r):new M(t,e,e.next,r);return i.next===null&&(r.tail=i),i.prev===null&&(r.head=i),r.length++,i}function Ls(r,e){r.tail=new M(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function qs(r,e){r.head=new M(e,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function M(r,e,t,i){if(!(this instanceof M))return new M(r,e,t,i);this.list=i,this.value=r,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{nr()(_)}catch{}});var mr=g((ta,pr)=>{"use strict";var Ts=ar(),U=Symbol("max"),P=Symbol("length"),B=Symbol("lengthCalculator"),ne=Symbol("allowStale"),X=Symbol("maxAge"),T=Symbol("dispose"),lr=Symbol("noDisposeOnSet"),O=Symbol("lruList"),L=Symbol("cache"),ur=Symbol("updateAgeOnGet"),De=()=>1,hr=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[U]=e.max||1/0,i=e.length||De;if(this[B]=typeof i!="function"?De:i,this[ne]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[X]=e.maxAge||0,this[T]=e.dispose,this[lr]=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[U]=e||1/0,se(this)}get max(){return this[U]}set allowStale(e){this[ne]=!!e}get allowStale(){return this[ne]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[X]=e,se(this)}get maxAge(){return this[X]}set lengthCalculator(e){typeof e!="function"&&(e=De),e!==this[B]&&(this[B]=e,this[P]=0,this[O].forEach(t=>{t.length=this[B](t.value,t.key),this[P]+=t.length})),se(this)}get lengthCalculator(){return this[B]}get length(){return this[P]}get itemCount(){return this[O].length}rforEach(e,t){t=t||this;for(let i=this[O].tail;i!==null;){let s=i.prev;cr(this,e,i,t),i=s}}forEach(e,t){t=t||this;for(let i=this[O].head;i!==null;){let s=i.next;cr(this,e,i,t),i=s}}keys(){return this[O].toArray().map(e=>e.key)}values(){return this[O].toArray().map(e=>e.value)}reset(){this[T]&&this[O]&&this[O].length&&this[O].forEach(e=>this[T](e.key,e.value)),this[L]=new Map,this[O]=new Ts,this[P]=0}dump(){return this[O].map(e=>be(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[O]}set(e,t,i){if(i=i||this[X],i&&typeof i!="number")throw new TypeError("maxAge must be a number");let s=i?Date.now():0,n=this[B](t,e);if(this[L].has(e)){if(n>this[U])return W(this,this[L].get(e)),!1;let c=this[L].get(e).value;return this[T]&&(this[lr]||this[T](e,c.value)),c.now=s,c.maxAge=i,c.value=t,this[P]+=n-c.length,c.length=n,this.get(e),se(this),!0}let o=new fr(e,t,n,s,i);return o.length>this[U]?(this[T]&&this[T](e,t),!1):(this[P]+=o.length,this[O].unshift(o),this[L].set(e,this[O].head),se(this),!0)}has(e){if(!this[L].has(e))return!1;let t=this[L].get(e).value;return!be(this,t)}get(e){return Fe(this,e,!0)}peek(e){return Fe(this,e,!1)}pop(){let e=this[O].tail;return e?(W(this,e),e.value):null}del(e){W(this,this[L].get(e))}load(e){this.reset();let t=Date.now();for(let i=e.length-1;i>=0;i--){let s=e[i],n=s.e||0;if(n===0)this.set(s.k,s.v);else{let o=n-t;o>0&&this.set(s.k,s.v,o)}}}prune(){this[L].forEach((e,t)=>Fe(this,t,!1))}},Fe=(r,e,t)=>{let i=r[L].get(e);if(i){let s=i.value;if(be(r,s)){if(W(r,i),!r[ne])return}else t&&(r[ur]&&(i.value.now=Date.now()),r[O].unshiftNode(i));return s.value}},be=(r,e)=>{if(!e||!e.maxAge&&!r[X])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:r[X]&&t>r[X]},se=r=>{if(r[P]>r[U])for(let e=r[O].tail;r[P]>r[U]&&e!==null;){let t=e.prev;W(r,e),e=t}},W=(r,e)=>{if(e){let t=e.value;r[T]&&r[T](t.key,t.value),r[P]-=t.length,r[L].delete(t.key),r[O].removeNode(e)}},fr=class{constructor(e,t,i,s,n){this.key=e,this.value=t,this.length=i,this.now=s,this.maxAge=n||0}},cr=(r,e,t,i)=>{let s=t.value;be(r,s)&&(W(r,t),r[ne]||(s=void 0)),s&&e.call(i,s.value,s.key,r)};pr.exports=hr});var N=g((ra,vr)=>{var z=class{constructor(e,t){if(t=Ds(t),e instanceof z)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new z(e.raw,t);if(e instanceof je)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(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(s=>!gr(s[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&Vs(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 i=`parseRange:${Object.keys(this.options).join(",")}:${e}`,s=dr.get(i);if(s)return s;let n=this.options.loose,o=n?A[$.HYPHENRANGELOOSE]:A[$.HYPHENRANGE];e=e.replace(o,Zs(this.options.includePrerelease)),y("hyphen replace",e),e=e.replace(A[$.COMPARATORTRIM],js),y("comparator trim",e,A[$.COMPARATORTRIM]),e=e.replace(A[$.TILDETRIM],Hs),e=e.replace(A[$.CARETTRIM],Gs),e=e.split(/\s+/).join(" ");let l=n?A[$.COMPARATORLOOSE]:A[$.COMPARATOR],c=e.split(" ").map(p=>Ms(p,this.options)).join(" ").split(/\s+/).map(p=>Js(p,this.options)).filter(this.options.loose?p=>!!p.match(l):()=>!0).map(p=>new je(p,this.options)),a=c.length,u=new Map;for(let p of c){if(gr(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let m=[...u.values()];return dr.set(i,m),m}intersects(e,t){if(!(e instanceof z))throw new TypeError("a Range is required");return this.set.some(i=>Er(i,t)&&e.set.some(s=>Er(s,t)&&i.every(n=>s.every(o=>n.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Fs(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Ks(this.set[t],e,this.options))return!0;return!1}};vr.exports=z;var Ps=mr(),dr=new Ps({max:1e3}),Ds=te(),je=oe(),y=ee(),Fs=b(),{re:A,t:$,comparatorTrimReplace:js,tildeTrimReplace:Hs,caretTrimReplace:Gs}=G(),gr=r=>r.value==="<0.0.0-0",Vs=r=>r.value==="",Er=(r,e)=>{let t=!0,i=r.slice(),s=i.pop();for(;t&&i.length;)t=i.every(n=>s.intersects(n,e)),s=i.pop();return t},Ms=(r,e)=>(y("comp",r,e),r=Bs(r,e),y("caret",r),r=Us(r,e),y("tildes",r),r=zs(r,e),y("xrange",r),r=Ys(r,e),y("stars",r),r),I=r=>!r||r.toLowerCase()==="x"||r==="*",Us=(r,e)=>r.trim().split(/\s+/).map(t=>Xs(t,e)).join(" "),Xs=(r,e)=>{let t=e.loose?A[$.TILDELOOSE]:A[$.TILDE];return r.replace(t,(i,s,n,o,l)=>{y("tilde",r,i,s,n,o,l);let c;return I(s)?c="":I(n)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:I(o)?c=`>=${s}.${n}.0 <${s}.${+n+1}.0-0`:l?(y("replaceTilde pr",l),c=`>=${s}.${n}.${o}-${l} <${s}.${+n+1}.0-0`):c=`>=${s}.${n}.${o} <${s}.${+n+1}.0-0`,y("tilde return",c),c})},Bs=(r,e)=>r.trim().split(/\s+/).map(t=>Ws(t,e)).join(" "),Ws=(r,e)=>{y("caret",r,e);let t=e.loose?A[$.CARETLOOSE]:A[$.CARET],i=e.includePrerelease?"-0":"";return r.replace(t,(s,n,o,l,c)=>{y("caret",r,s,n,o,l,c);let a;return I(n)?a="":I(o)?a=`>=${n}.0.0${i} <${+n+1}.0.0-0`:I(l)?n==="0"?a=`>=${n}.${o}.0${i} <${n}.${+o+1}.0-0`:a=`>=${n}.${o}.0${i} <${+n+1}.0.0-0`:c?(y("replaceCaret pr",c),n==="0"?o==="0"?a=`>=${n}.${o}.${l}-${c} <${n}.${o}.${+l+1}-0`:a=`>=${n}.${o}.${l}-${c} <${n}.${+o+1}.0-0`:a=`>=${n}.${o}.${l}-${c} <${+n+1}.0.0-0`):(y("no pr"),n==="0"?o==="0"?a=`>=${n}.${o}.${l}${i} <${n}.${o}.${+l+1}-0`:a=`>=${n}.${o}.${l}${i} <${n}.${+o+1}.0-0`:a=`>=${n}.${o}.${l} <${+n+1}.0.0-0`),y("caret return",a),a})},zs=(r,e)=>(y("replaceXRanges",r,e),r.split(/\s+/).map(t=>ks(t,e)).join(" ")),ks=(r,e)=>{r=r.trim();let t=e.loose?A[$.XRANGELOOSE]:A[$.XRANGE];return r.replace(t,(i,s,n,o,l,c)=>{y("xRange",r,i,s,n,o,l,c);let a=I(n),u=a||I(o),m=u||I(l),p=m;return s==="="&&p&&(s=""),c=e.includePrerelease?"-0":"",a?s===">"||s==="<"?i="<0.0.0-0":i="*":s&&p?(u&&(o=0),l=0,s===">"?(s=">=",u?(n=+n+1,o=0,l=0):(o=+o+1,l=0)):s==="<="&&(s="<",u?n=+n+1:o=+o+1),s==="<"&&(c="-0"),i=`${s+n}.${o}.${l}${c}`):u?i=`>=${n}.0.0${c} <${+n+1}.0.0-0`:m&&(i=`>=${n}.${o}.0${c} <${n}.${+o+1}.0-0`),y("xRange return",i),i})},Ys=(r,e)=>(y("replaceStars",r,e),r.trim().replace(A[$.STAR],"")),Js=(r,e)=>(y("replaceGTE0",r,e),r.trim().replace(A[e.includePrerelease?$.GTE0PRE:$.GTE0],"")),Zs=r=>(e,t,i,s,n,o,l,c,a,u,m,p,d)=>(I(i)?t="":I(s)?t=`>=${i}.0.0${r?"-0":""}`:I(n)?t=`>=${i}.${s}.0${r?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,I(a)?c="":I(u)?c=`<${+a+1}.0.0-0`:I(m)?c=`<${a}.${+u+1}.0-0`:p?c=`<=${a}.${u}.${m}-${p}`:r?c=`<${a}.${u}.${+m+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),Ks=(r,e,t)=>{for(let i=0;i<r.length;i++)if(!r[i].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let i=0;i<r.length;i++)if(y(r[i].semver),r[i].semver!==je.ANY&&r[i].semver.prerelease.length>0){let s=r[i].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var oe=g((ia,br)=>{var ae=Symbol("SemVer ANY"),le=class{static get ANY(){return ae}constructor(e,t){if(t=Qs(t),e instanceof le){if(e.loose===!!t.loose)return e;e=e.value}Ge("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ae?this.value="":this.value=this.operator+this.semver.version,Ge("comp",this)}parse(e){let t=this.options.loose?_r[yr.COMPARATORLOOSE]:_r[yr.COMPARATOR],i=e.match(t);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new Or(i[2],this.options.loose):this.semver=ae}toString(){return this.value}test(e){if(Ge("Comparator.test",e,this.options.loose),this.semver===ae||e===ae)return!0;if(typeof e=="string")try{e=new Or(e,this.options)}catch{return!1}return He(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof le))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new $r(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new $r(this.value,t).test(e.semver);let i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),n=this.semver.version===e.semver.version,o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),l=He(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),c=He(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return i||s||n&&o||l||c}};br.exports=le;var Qs=te(),{re:_r,t:yr}=G(),He=Pe(),Ge=ee(),Or=b(),$r=N()});var ce=g((sa,Ar)=>{var en=N(),tn=(r,e,t)=>{try{e=new en(e,t)}catch{return!1}return e.test(r)};Ar.exports=tn});var Ir=g((na,Rr)=>{var rn=N(),sn=(r,e)=>new rn(r,e).set.map(t=>t.map(i=>i.value).join(" ").trim().split(" "));Rr.exports=sn});var Sr=g((oa,wr)=>{var nn=b(),on=N(),an=(r,e,t)=>{let i=null,s=null,n=null;try{n=new on(e,t)}catch{return null}return r.forEach(o=>{n.test(o)&&(!i||s.compare(o)===-1)&&(i=o,s=new nn(i,t))}),i};wr.exports=an});var xr=g((aa,Cr)=>{var ln=b(),cn=N(),un=(r,e,t)=>{let i=null,s=null,n=null;try{n=new cn(e,t)}catch{return null}return r.forEach(o=>{n.test(o)&&(!i||s.compare(o)===1)&&(i=o,s=new ln(i,t))}),i};Cr.exports=un});var qr=g((la,Lr)=>{var Ve=b(),hn=N(),Nr=ie(),fn=(r,e)=>{r=new hn(r,e);let t=new Ve("0.0.0");if(r.test(t)||(t=new Ve("0.0.0-0"),r.test(t)))return t;t=null;for(let i=0;i<r.set.length;++i){let s=r.set[i],n=null;s.forEach(o=>{let l=new Ve(o.semver.version);switch(o.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!n||Nr(l,n))&&(n=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),n&&(!t||Nr(t,n))&&(t=n)}return t&&r.test(t)?t:null};Lr.exports=fn});var Pr=g((ca,Tr)=>{var pn=N(),mn=(r,e)=>{try{return new pn(r,e).range||"*"}catch{return null}};Tr.exports=mn});var Ae=g((ua,Hr)=>{var dn=b(),jr=oe(),{ANY:gn}=jr,En=N(),vn=ce(),Dr=ie(),Fr=ve(),_n=ye(),yn=_e(),On=(r,e,t,i)=>{r=new dn(r,i),e=new En(e,i);let s,n,o,l,c;switch(t){case">":s=Dr,n=_n,o=Fr,l=">",c=">=";break;case"<":s=Fr,n=yn,o=Dr,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(vn(r,e,i))return!1;for(let a=0;a<e.set.length;++a){let u=e.set[a],m=null,p=null;if(u.forEach(d=>{d.semver===gn&&(d=new jr(">=0.0.0")),m=m||d,p=p||d,s(d.semver,m.semver,i)?m=d:o(d.semver,p.semver,i)&&(p=d)}),m.operator===l||m.operator===c||(!p.operator||p.operator===l)&&n(r,p.semver))return!1;if(p.operator===c&&o(r,p.semver))return!1}return!0};Hr.exports=On});var Vr=g((ha,Gr)=>{var $n=Ae(),bn=(r,e,t)=>$n(r,e,">",t);Gr.exports=bn});var Ur=g((fa,Mr)=>{var An=Ae(),Rn=(r,e,t)=>An(r,e,"<",t);Mr.exports=Rn});var Wr=g((pa,Br)=>{var Xr=N(),In=(r,e,t)=>(r=new Xr(r,t),e=new Xr(e,t),r.intersects(e));Br.exports=In});var kr=g((ma,zr)=>{var wn=ce(),Sn=x();zr.exports=(r,e,t)=>{let i=[],s=null,n=null,o=r.sort((u,m)=>Sn(u,m,t));for(let u of o)wn(u,e,t)?(n=u,s||(s=u)):(n&&i.push([s,n]),n=null,s=null);s&&i.push([s,null]);let l=[];for(let[u,m]of i)u===m?l.push(u):!m&&u===o[0]?l.push("*"):m?u===o[0]?l.push(`<=${m}`):l.push(`${u} - ${m}`):l.push(`>=${u}`);let c=l.join(" || "),a=typeof e.raw=="string"?e.raw:String(e);return c.length<a.length?c:e}});var Qr=g((da,Kr)=>{var Yr=N(),Re=oe(),{ANY:Me}=Re,ue=ce(),Ue=x(),Cn=(r,e,t={})=>{if(r===e)return!0;r=new Yr(r,t),e=new Yr(e,t);let i=!1;e:for(let s of r.set){for(let n of e.set){let o=xn(s,n,t);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},xn=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===Me){if(e.length===1&&e[0].semver===Me)return!0;t.includePrerelease?r=[new Re(">=0.0.0-0")]:r=[new Re(">=0.0.0")]}if(e.length===1&&e[0].semver===Me){if(t.includePrerelease)return!0;e=[new Re(">=0.0.0")]}let i=new Set,s,n;for(let d of r)d.operator===">"||d.operator===">="?s=Jr(s,d,t):d.operator==="<"||d.operator==="<="?n=Zr(n,d,t):i.add(d.semver);if(i.size>1)return null;let o;if(s&&n){if(o=Ue(s.semver,n.semver,t),o>0)return null;if(o===0&&(s.operator!==">="||n.operator!=="<="))return null}for(let d of i){if(s&&!ue(d,String(s),t)||n&&!ue(d,String(n),t))return null;for(let yi of e)if(!ue(d,String(yi),t))return!1;return!0}let l,c,a,u,m=n&&!t.includePrerelease&&n.semver.prerelease.length?n.semver:!1,p=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;m&&m.prerelease.length===1&&n.operator==="<"&&m.prerelease[0]===0&&(m=!1);for(let d of e){if(u=u||d.operator===">"||d.operator===">=",a=a||d.operator==="<"||d.operator==="<=",s){if(p&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===p.major&&d.semver.minor===p.minor&&d.semver.patch===p.patch&&(p=!1),d.operator===">"||d.operator===">="){if(l=Jr(s,d,t),l===d&&l!==s)return!1}else if(s.operator===">="&&!ue(s.semver,String(d),t))return!1}if(n){if(m&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===m.major&&d.semver.minor===m.minor&&d.semver.patch===m.patch&&(m=!1),d.operator==="<"||d.operator==="<="){if(c=Zr(n,d,t),c===d&&c!==n)return!1}else if(n.operator==="<="&&!ue(n.semver,String(d),t))return!1}if(!d.operator&&(n||s)&&o!==0)return!1}return!(s&&a&&!n&&o!==0||n&&u&&!s&&o!==0||p||m)},Jr=(r,e,t)=>{if(!r)return e;let i=Ue(r.semver,e.semver,t);return i>0?r:i<0||e.operator===">"&&r.operator===">="?e:r},Zr=(r,e,t)=>{if(!r)return e;let i=Ue(r.semver,e.semver,t);return i<0?r:i>0||e.operator==="<"&&r.operator==="<="?e:r};Kr.exports=Cn});var ti=g((ga,ei)=>{var Xe=G();ei.exports={re:Xe.re,src:Xe.src,tokens:Xe.t,SEMVER_SPEC_VERSION:Q().SEMVER_SPEC_VERSION,SemVer:b(),compareIdentifiers:pe().compareIdentifiers,rcompareIdentifiers:pe().rcompareIdentifiers,parse:V(),valid:Ot(),clean:bt(),inc:Rt(),diff:Nt(),major:qt(),minor:Pt(),patch:Ft(),prerelease:Ht(),compare:x(),rcompare:Vt(),compareLoose:Ut(),compareBuild:Ee(),sort:zt(),rsort:Yt(),gt:ie(),lt:ve(),eq:ge(),neq:Te(),gte:_e(),lte:ye(),cmp:Pe(),coerce:ir(),Comparator:oe(),Range:N(),satisfies:ce(),toComparators:Ir(),maxSatisfying:Sr(),minSatisfying:xr(),minVersion:qr(),validRange:Pr(),outside:Ae(),gtr:Vr(),ltr:Ur(),intersects:Wr(),simplifyRange:kr(),subset:Qr()}});var Ie=g(S=>{"use strict";var Nn=S&&S.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=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,i,s)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),Ln=S&&S.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),qn=S&&S.__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)&&Nn(e,r,t);return Ln(e,r),e},ri=S&&S.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(S,"__esModule",{value:!0});S.getCoreVersion=void 0;var ii=ri(require("path")),si=ri(require("fs")),Be=qn(require("@serverless-devs/core")),Tn=ti(),ni=ii.default.join(Be.getRootHome(),"cache","core"),We=ii.default.join(ni,"package.json");function Pn(){if(si.default.existsSync(We)){var r=require("@serverless-devs/core/package.json").version,e=oi();return Tn.gt(e,r)?require(ni):Be}return Be}function oi(){return si.default.existsSync(We)?require(We).version:void 0}S.getCoreVersion=oi;S.default=Pn()});var hi=g(w=>{"use strict";var Dn=w&&w.__awaiter||function(r,e,t,i){function s(n){return n instanceof t?n:new t(function(o){o(n)})}return new(t||(t=Promise))(function(n,o){function l(u){try{a(i.next(u))}catch(m){o(m)}}function c(u){try{a(i.throw(u))}catch(m){o(m)}}function a(u){u.done?n(u.value):s(u.value).then(l,c)}a((i=i.apply(r,e||[])).next())})},Fn=w&&w.__generator||function(r,e){var t={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,s,n,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(a){return function(u){return c([a,u])}}function c(a){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,s&&(n=a[0]&2?s.return:a[0]?s.throw||((n=s.return)&&n.call(s),0):s.next)&&!(n=n.call(s,a[1])).done)return n;switch(s=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,s=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(n=t.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){t.label=a[1];break}if(a[0]===6&&t.label<n[1]){t.label=n[1],n=a;break}if(n&&t.label<n[2]){t.label=n[2],t.ops.push(a);break}n[2]&&t.ops.pop(),t.trys.pop();continue}a=e.call(r,t)}catch(u){a=[6,u],s=0}finally{i=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},ai=w&&w.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(w,"__esModule",{value:!0});w.handlerProfileFile=w.getConfig=w.setConfig=void 0;var li=ai(require("path")),ke=ai(Ie()),q=ke.default.fse,we=ke.default.jsyaml,ze=ke.default.getRootHome;function jn(r){var e=ui();q.writeFileSync(e,we.dump(r))}function ci(){var r=ui();if(!q.existsSync(r))return{};try{var e=we.load(q.readFileSync(r,"utf8"))||{};return e}catch(t){throw t}}function ui(){var r=li.default.join(ze(),"set-config.yml");return q.existsSync(r)||q.createFileSync(r),r}function Hn(r,e){var t=ci();t[r]=e,jn(t)}w.setConfig=Hn;function Gn(r,e){var t=ci();return t[r]||e}w.getConfig=Gn;function Vn(r){return Dn(this,void 0,void 0,function(){var e,t,i,s,n,o,l;return Fn(this,function(c){switch(c.label){case 0:if(e=r.filePath||"set-config.yml",t=li.default.join(ze(),e),i=q.existsSync(t),s={},i)return[3,5];n=ze(),c.label=1;case 1:return c.trys.push([1,2,,4]),q.statSync(n),[3,4];case 2:return o=c.sent(),[4,q.mkdirSync(n)];case 3:return c.sent(),[3,4];case 4:return[3,6];case 5:try{s=we.load(q.readFileSync(t,"utf8"))||{}}catch(a){throw a}c.label=6;case 6:return r.read?[2,s]:(l=r.configKey||"",s[l]=r.data,[4,q.writeFileSync(t,we.dump(s))]);case 7:return c.sent(),[2,s]}})})}w.handlerProfileFile=Vn});var fi=g((_a,Mn)=>{Mn.exports={name:"@serverless-devs/s",version:"2.0.103-beta.1",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 vi=g(E=>{"use strict";var Un=E&&E.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=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,i,s)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),Xn=E&&E.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Bn=E&&E.__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)&&Un(e,r,t);return Xn(e,r),e},k=E&&E.__awaiter||function(r,e,t,i){function s(n){return n instanceof t?n:new t(function(o){o(n)})}return new(t||(t=Promise))(function(n,o){function l(u){try{a(i.next(u))}catch(m){o(m)}}function c(u){try{a(i.throw(u))}catch(m){o(m)}}function a(u){u.done?n(u.value):s(u.value).then(l,c)}a((i=i.apply(r,e||[])).next())})},Y=E&&E.__generator||function(r,e){var t={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,s,n,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(a){return function(u){return c([a,u])}}function c(a){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,s&&(n=a[0]&2?s.return:a[0]?s.throw||((n=s.return)&&n.call(s),0):s.next)&&!(n=n.call(s,a[1])).done)return n;switch(s=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,s=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(n=t.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){t.label=a[1];break}if(a[0]===6&&t.label<n[1]){t.label=n[1],n=a;break}if(n&&t.label<n[2]){t.label=n[2],t.ops.push(a);break}n[2]&&t.ops.pop(),t.trys.pop();continue}a=e.call(r,t)}catch(u){a=[6,u],s=0}finally{i=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Je=E&&E.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(E,"__esModule",{value:!0});E.specifyServiceHelp=E.getTempCommandStr=E.emoji=E.mark=E.replaceTemplate=E.replaceFun=E.getLang=E.printn=E.getFolderSize=E.getVersion=E.getPid=E.aiRequest=E.getCredentialWithAll=E.getCredentialWithExisted=E.getProcessArgv=E.bgRed=E.yellow=E.red=void 0;var Wn=Je(require("path")),he=Je(require("fs")),zn=Je(require("os")),R=Bn(Ie()),kn=hi(),pi=fi(),J=R.default.colors,Yn=R.default.got,Jn=R.default.getMAC,Zn=R.default.isDocker,Kn=R.default.isCiCdEnv,F=R.default.lodash,mi=R.default.publishHelp,Qn=F.get,eo=F.trim,to=F.assign,ro=F.filter,di=F.includes,io=F.omit,so=F.isPlainObject,no=F.isEmpty,oo=J.underline,ao=J.bold;E.red=J.hex("#fd5750");E.yellow=J.hex("#F3F99D");E.bgRed=J.hex("#000").bgHex("#fd5750");var lo=function(){var r=process.env.serverless_devs_temp_argv;try{var e=JSON.parse(r),t=R.default.getGlobalArgs(e);return process.argv=process.argv.slice(0,2).concat(t._argsObj),to({},t,{noHelpArgv:process.argv.slice(0,2).concat(ro(t._argsObj,function(i){return!di(["-h","--help"],i)}))})}catch{return{}}};E.getProcessArgv=lo;var co=function(r){return k(void 0,void 0,void 0,function(){var e,t;return Y(this,function(i){switch(i.label){case 0:return[4,R.default.getCredentialAliasList()];case 1:return e=i.sent(),di(e,r)?[4,R.default.getCredential(r)]:[3,3];case 2:return t=i.sent(),[2,t];case 3:return[2]}})})};E.getCredentialWithExisted=co;var uo=function(){return k(void 0,void 0,void 0,function(){var r,e,t,i,s,n;return Y(this,function(o){switch(o.label){case 0:return[4,R.default.getCredentialAliasList()];case 1:if(r=o.sent(),!(r.length>0))return[3,6];e={},t=0,i=r,o.label=2;case 2:return t<i.length?(s=i[t],[4,R.default.getCredential(s)]):[3,5];case 3:n=o.sent(),e[n.Alias]=io(n,"Alias"),o.label=4;case 4:return t++,[3,2];case 5:return[2,e];case 6:return[2]}})})};E.getCredentialWithAll=uo;var ho=function(r,e){return e===void 0&&(e="unknow"),k(void 0,void 0,void 0,function(){var t,i,s,n;return Y(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),t=(0,kn.getConfig)("analysis"),t!=="enable"?[2]:Zn()||Kn()?[2]:[4,Yn("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(e,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0})];case 1:return i=o.sent(),s=Qn(i.body,"shorturl"),s&&console.log(`AI Tips:
|
|
15
|
+
`)}function Ze(r,e,t){return r.match(/[\n]\s+/)||e<40?r:tt(r,e,t)}function Ke(r,e){r._hasHelpOption&&e.find(i=>i===r._helpLongFlag||i===r._helpShortFlag)&&(r.outputHelp(),r._exit(0,"commander.helpDisplayed","(outputHelp)"))}function Qe(r){let e=r.name+(r.variadic===!0?"...":"");return r.required?"<"+e+">":"["+e+"]"}function rt(r){let e,t,i=r.split(/[ |,]+/);return i.length>1&&!/^[[<]/.test(i[1])&&(e=i.shift()),t=i.shift(),!e&&/^-[^-]$/.test(t)&&(e=t,t=void 0),{shortFlag:e,longFlag:t}}function et(r){return r.map(e=>{if(!e.startsWith("--inspect"))return e;let t,i="127.0.0.1",s="9229",n;return(n=e.match(/^(--inspect(-brk)?)$/))!==null?t=n[1]:(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=n[1],/^\d+$/.test(n[3])?s=n[3]:i=n[3]):(n=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=n[1],i=n[3],s=n[4]),t&&s!=="0"?`${t}=${i}:${parseInt(s)+1}`:e})}});var Q=g((Ro,nt)=>{var Ai="2.0.0",bi=Number.MAX_SAFE_INTEGER||9007199254740991,Ri=16;nt.exports={SEMVER_SPEC_VERSION:Ai,MAX_LENGTH:256,MAX_SAFE_INTEGER:bi,MAX_SAFE_COMPONENT_LENGTH:Ri}});var ee=g((Io,ot)=>{var Ii=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};ot.exports=Ii});var G=g((D,at)=>{var{MAX_SAFE_COMPONENT_LENGTH:qe}=Q(),wi=ee();D=at.exports={};var Si=D.re=[],h=D.src=[],f=D.t={},Ci=0,v=(r,e,t)=>{let i=Ci++;wi(i,e),f[r]=i,h[i]=e,Si[i]=new RegExp(e,t?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*");v("NUMERICIDENTIFIERLOOSE","[0-9]+");v("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");v("MAINVERSION",`(${h[f.NUMERICIDENTIFIER]})\\.(${h[f.NUMERICIDENTIFIER]})\\.(${h[f.NUMERICIDENTIFIER]})`);v("MAINVERSIONLOOSE",`(${h[f.NUMERICIDENTIFIERLOOSE]})\\.(${h[f.NUMERICIDENTIFIERLOOSE]})\\.(${h[f.NUMERICIDENTIFIERLOOSE]})`);v("PRERELEASEIDENTIFIER",`(?:${h[f.NUMERICIDENTIFIER]}|${h[f.NONNUMERICIDENTIFIER]})`);v("PRERELEASEIDENTIFIERLOOSE",`(?:${h[f.NUMERICIDENTIFIERLOOSE]}|${h[f.NONNUMERICIDENTIFIER]})`);v("PRERELEASE",`(?:-(${h[f.PRERELEASEIDENTIFIER]}(?:\\.${h[f.PRERELEASEIDENTIFIER]})*))`);v("PRERELEASELOOSE",`(?:-?(${h[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${h[f.PRERELEASEIDENTIFIERLOOSE]})*))`);v("BUILDIDENTIFIER","[0-9A-Za-z-]+");v("BUILD",`(?:\\+(${h[f.BUILDIDENTIFIER]}(?:\\.${h[f.BUILDIDENTIFIER]})*))`);v("FULLPLAIN",`v?${h[f.MAINVERSION]}${h[f.PRERELEASE]}?${h[f.BUILD]}?`);v("FULL",`^${h[f.FULLPLAIN]}$`);v("LOOSEPLAIN",`[v=\\s]*${h[f.MAINVERSIONLOOSE]}${h[f.PRERELEASELOOSE]}?${h[f.BUILD]}?`);v("LOOSE",`^${h[f.LOOSEPLAIN]}$`);v("GTLT","((?:<|>)?=?)");v("XRANGEIDENTIFIERLOOSE",`${h[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);v("XRANGEIDENTIFIER",`${h[f.NUMERICIDENTIFIER]}|x|X|\\*`);v("XRANGEPLAIN",`[v=\\s]*(${h[f.XRANGEIDENTIFIER]})(?:\\.(${h[f.XRANGEIDENTIFIER]})(?:\\.(${h[f.XRANGEIDENTIFIER]})(?:${h[f.PRERELEASE]})?${h[f.BUILD]}?)?)?`);v("XRANGEPLAINLOOSE",`[v=\\s]*(${h[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${h[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${h[f.XRANGEIDENTIFIERLOOSE]})(?:${h[f.PRERELEASELOOSE]})?${h[f.BUILD]}?)?)?`);v("XRANGE",`^${h[f.GTLT]}\\s*${h[f.XRANGEPLAIN]}$`);v("XRANGELOOSE",`^${h[f.GTLT]}\\s*${h[f.XRANGEPLAINLOOSE]}$`);v("COERCE",`(^|[^\\d])(\\d{1,${qe}})(?:\\.(\\d{1,${qe}}))?(?:\\.(\\d{1,${qe}}))?(?:$|[^\\d])`);v("COERCERTL",h[f.COERCE],!0);v("LONETILDE","(?:~>?)");v("TILDETRIM",`(\\s*)${h[f.LONETILDE]}\\s+`,!0);D.tildeTrimReplace="$1~";v("TILDE",`^${h[f.LONETILDE]}${h[f.XRANGEPLAIN]}$`);v("TILDELOOSE",`^${h[f.LONETILDE]}${h[f.XRANGEPLAINLOOSE]}$`);v("LONECARET","(?:\\^)");v("CARETTRIM",`(\\s*)${h[f.LONECARET]}\\s+`,!0);D.caretTrimReplace="$1^";v("CARET",`^${h[f.LONECARET]}${h[f.XRANGEPLAIN]}$`);v("CARETLOOSE",`^${h[f.LONECARET]}${h[f.XRANGEPLAINLOOSE]}$`);v("COMPARATORLOOSE",`^${h[f.GTLT]}\\s*(${h[f.LOOSEPLAIN]})$|^$`);v("COMPARATOR",`^${h[f.GTLT]}\\s*(${h[f.FULLPLAIN]})$|^$`);v("COMPARATORTRIM",`(\\s*)${h[f.GTLT]}\\s*(${h[f.LOOSEPLAIN]}|${h[f.XRANGEPLAIN]})`,!0);D.comparatorTrimReplace="$1$2$3";v("HYPHENRANGE",`^\\s*(${h[f.XRANGEPLAIN]})\\s+-\\s+(${h[f.XRANGEPLAIN]})\\s*$`);v("HYPHENRANGELOOSE",`^\\s*(${h[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${h[f.XRANGEPLAINLOOSE]})\\s*$`);v("STAR","(<|>)?=?\\s*\\*");v("GTE0","^\\s*>=\\s*0.0.0\\s*$");v("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var te=g((wo,lt)=>{var xi=["includePrerelease","loose","rtl"],Ni=r=>r?typeof r!="object"?{loose:!0}:xi.filter(e=>r[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};lt.exports=Ni});var pe=g((So,ht)=>{var ct=/^[0-9]+$/,ut=(r,e)=>{let t=ct.test(r),i=ct.test(e);return t&&i&&(r=+r,e=+e),r===e?0:t&&!i?-1:i&&!t?1:r<e?-1:1},Li=(r,e)=>ut(e,r);ht.exports={compareIdentifiers:ut,rcompareIdentifiers:Li}});var A=g((Co,dt)=>{var me=ee(),{MAX_LENGTH:ft,MAX_SAFE_INTEGER:de}=Q(),{re:pt,t:mt}=G(),qi=te(),{compareIdentifiers:re}=pe(),C=class{constructor(e,t){if(t=qi(t),e instanceof C){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>ft)throw new TypeError(`version is longer than ${ft} characters`);me("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let i=e.trim().match(t.loose?pt[mt.LOOSE]:pt[mt.FULL]);if(!i)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>de||this.major<0)throw new TypeError("Invalid major version");if(this.minor>de||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>de||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let n=+s;if(n>=0&&n<de)return n}return s}):this.prerelease=[],this.build=i[5]?i[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(me("SemVer.compare",this.version,this.options,e),!(e instanceof C)){if(typeof e=="string"&&e===this.version)return 0;e=new C(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof C||(e=new C(e,this.options)),re(this.major,e.major)||re(this.minor,e.minor)||re(this.patch,e.patch)}comparePre(e){if(e instanceof C||(e=new C(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 i=this.prerelease[t],s=e.prerelease[t];if(me("prerelease compare",t,i,s),i===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(i===void 0)return-1;if(i===s)continue;return re(i,s)}while(++t)}compareBuild(e){e instanceof C||(e=new C(e,this.options));let t=0;do{let i=this.build[t],s=e.build[t];if(me("prerelease compare",t,i,s),i===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(i===void 0)return-1;if(i===s)continue;return re(i,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 i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);i===-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}};dt.exports=C});var V=g((xo,_t)=>{var{MAX_LENGTH:Ti}=Q(),{re:gt,t:Et}=G(),vt=A(),Pi=te(),Di=(r,e)=>{if(e=Pi(e),r instanceof vt)return r;if(typeof r!="string"||r.length>Ti||!(e.loose?gt[Et.LOOSE]:gt[Et.FULL]).test(r))return null;try{return new vt(r,e)}catch{return null}};_t.exports=Di});var Ot=g((No,yt)=>{var Fi=V(),ji=(r,e)=>{let t=Fi(r,e);return t?t.version:null};yt.exports=ji});var At=g((Lo,$t)=>{var Hi=V(),Gi=(r,e)=>{let t=Hi(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};$t.exports=Gi});var Rt=g((qo,bt)=>{var Vi=A(),Mi=(r,e,t,i)=>{typeof t=="string"&&(i=t,t=void 0);try{return new Vi(r,t).inc(e,i).version}catch{return null}};bt.exports=Mi});var x=g((To,wt)=>{var It=A(),Ui=(r,e,t)=>new It(r,t).compare(new It(e,t));wt.exports=Ui});var ge=g((Po,St)=>{var Xi=x(),Bi=(r,e,t)=>Xi(r,e,t)===0;St.exports=Bi});var Nt=g((Do,xt)=>{var Ct=V(),Wi=ge(),zi=(r,e)=>{if(Wi(r,e))return null;{let t=Ct(r),i=Ct(e),s=t.prerelease.length||i.prerelease.length,n=s?"pre":"",o=s?"prerelease":"";for(let l in t)if((l==="major"||l==="minor"||l==="patch")&&t[l]!==i[l])return n+l;return o}};xt.exports=zi});var qt=g((Fo,Lt)=>{var ki=A(),Yi=(r,e)=>new ki(r,e).major;Lt.exports=Yi});var Pt=g((jo,Tt)=>{var Ji=A(),Zi=(r,e)=>new Ji(r,e).minor;Tt.exports=Zi});var Ft=g((Ho,Dt)=>{var Ki=A(),Qi=(r,e)=>new Ki(r,e).patch;Dt.exports=Qi});var Ht=g((Go,jt)=>{var es=V(),ts=(r,e)=>{let t=es(r,e);return t&&t.prerelease.length?t.prerelease:null};jt.exports=ts});var Vt=g((Vo,Gt)=>{var rs=x(),is=(r,e,t)=>rs(e,r,t);Gt.exports=is});var Ut=g((Mo,Mt)=>{var ss=x(),ns=(r,e)=>ss(r,e,!0);Mt.exports=ns});var Ee=g((Uo,Bt)=>{var Xt=A(),os=(r,e,t)=>{let i=new Xt(r,t),s=new Xt(e,t);return i.compare(s)||i.compareBuild(s)};Bt.exports=os});var zt=g((Xo,Wt)=>{var as=Ee(),ls=(r,e)=>r.sort((t,i)=>as(t,i,e));Wt.exports=ls});var Yt=g((Bo,kt)=>{var cs=Ee(),us=(r,e)=>r.sort((t,i)=>cs(i,t,e));kt.exports=us});var ie=g((Wo,Jt)=>{var hs=x(),fs=(r,e,t)=>hs(r,e,t)>0;Jt.exports=fs});var ve=g((zo,Zt)=>{var ps=x(),ms=(r,e,t)=>ps(r,e,t)<0;Zt.exports=ms});var Te=g((ko,Kt)=>{var ds=x(),gs=(r,e,t)=>ds(r,e,t)!==0;Kt.exports=gs});var _e=g((Yo,Qt)=>{var Es=x(),vs=(r,e,t)=>Es(r,e,t)>=0;Qt.exports=vs});var ye=g((Jo,er)=>{var _s=x(),ys=(r,e,t)=>_s(r,e,t)<=0;er.exports=ys});var Pe=g((Zo,tr)=>{var Os=ge(),$s=Te(),As=ie(),bs=_e(),Rs=ve(),Is=ye(),ws=(r,e,t,i)=>{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 Os(r,t,i);case"!=":return $s(r,t,i);case">":return As(r,t,i);case">=":return bs(r,t,i);case"<":return Rs(r,t,i);case"<=":return Is(r,t,i);default:throw new TypeError(`Invalid operator: ${e}`)}};tr.exports=ws});var ir=g((Ko,rr)=>{var Ss=A(),Cs=V(),{re:Oe,t:$e}=G(),xs=(r,e)=>{if(r instanceof Ss)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(Oe[$e.COERCE]);else{let i;for(;(i=Oe[$e.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||i.index+i[0].length!==t.index+t[0].length)&&(t=i),Oe[$e.COERCERTL].lastIndex=i.index+i[1].length+i[2].length;Oe[$e.COERCERTL].lastIndex=-1}return t===null?null:Cs(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};rr.exports=xs});var nr=g((Qo,sr)=>{"use strict";sr.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var ar=g((ea,or)=>{"use strict";or.exports=_;_.Node=M;_.create=_;function _(r){var e=this;if(e instanceof _||(e=new _),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,i=arguments.length;t<i;t++)e.push(arguments[t]);return e}_.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};_.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++}};_.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++}};_.prototype.push=function(){for(var r=0,e=arguments.length;r<e;r++)Ls(this,arguments[r]);return this.length};_.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)qs(this,arguments[r]);return this.length};_.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}};_.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}};_.prototype.forEach=function(r,e){e=e||this;for(var t=this.head,i=0;t!==null;i++)r.call(e,t.value,i,this),t=t.next};_.prototype.forEachReverse=function(r,e){e=e||this;for(var t=this.tail,i=this.length-1;t!==null;i--)r.call(e,t.value,i,this),t=t.prev};_.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};_.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};_.prototype.map=function(r,e){e=e||this;for(var t=new _,i=this.head;i!==null;)t.push(r.call(e,i.value,this)),i=i.next;return t};_.prototype.mapReverse=function(r,e){e=e||this;for(var t=new _,i=this.tail;i!==null;)t.push(r.call(e,i.value,this)),i=i.prev;return t};_.prototype.reduce=function(r,e){var t,i=this.head;if(arguments.length>1)t=e;else if(this.head)i=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;i!==null;s++)t=r(t,i.value,s),i=i.next;return t};_.prototype.reduceReverse=function(r,e){var t,i=this.tail;if(arguments.length>1)t=e;else if(this.tail)i=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;i!==null;s--)t=r(t,i.value,s),i=i.prev;return t};_.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};_.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};_.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 _;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var i=0,s=this.head;s!==null&&i<r;i++)s=s.next;for(;s!==null&&i<e;i++,s=s.next)t.push(s.value);return t};_.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 _;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var i=this.length,s=this.tail;s!==null&&i>e;i--)s=s.prev;for(;s!==null&&i>r;i--,s=s.prev)t.push(s.value);return t};_.prototype.splice=function(r,e,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var i=0,s=this.head;s!==null&&i<r;i++)s=s.next;for(var n=[],i=0;s&&i<e;i++)n.push(s.value),s=this.removeNode(s);s===null&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev);for(var i=0;i<t.length;i++)s=Ns(this,s,t[i]);return n};_.prototype.reverse=function(){for(var r=this.head,e=this.tail,t=r;t!==null;t=t.prev){var i=t.prev;t.prev=t.next,t.next=i}return this.head=e,this.tail=r,this};function Ns(r,e,t){var i=e===r.head?new M(t,null,e,r):new M(t,e,e.next,r);return i.next===null&&(r.tail=i),i.prev===null&&(r.head=i),r.length++,i}function Ls(r,e){r.tail=new M(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function qs(r,e){r.head=new M(e,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function M(r,e,t,i){if(!(this instanceof M))return new M(r,e,t,i);this.list=i,this.value=r,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{nr()(_)}catch{}});var mr=g((ta,pr)=>{"use strict";var Ts=ar(),U=Symbol("max"),P=Symbol("length"),B=Symbol("lengthCalculator"),ne=Symbol("allowStale"),X=Symbol("maxAge"),T=Symbol("dispose"),lr=Symbol("noDisposeOnSet"),O=Symbol("lruList"),L=Symbol("cache"),ur=Symbol("updateAgeOnGet"),De=()=>1,hr=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[U]=e.max||1/0,i=e.length||De;if(this[B]=typeof i!="function"?De:i,this[ne]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[X]=e.maxAge||0,this[T]=e.dispose,this[lr]=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[U]=e||1/0,se(this)}get max(){return this[U]}set allowStale(e){this[ne]=!!e}get allowStale(){return this[ne]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[X]=e,se(this)}get maxAge(){return this[X]}set lengthCalculator(e){typeof e!="function"&&(e=De),e!==this[B]&&(this[B]=e,this[P]=0,this[O].forEach(t=>{t.length=this[B](t.value,t.key),this[P]+=t.length})),se(this)}get lengthCalculator(){return this[B]}get length(){return this[P]}get itemCount(){return this[O].length}rforEach(e,t){t=t||this;for(let i=this[O].tail;i!==null;){let s=i.prev;cr(this,e,i,t),i=s}}forEach(e,t){t=t||this;for(let i=this[O].head;i!==null;){let s=i.next;cr(this,e,i,t),i=s}}keys(){return this[O].toArray().map(e=>e.key)}values(){return this[O].toArray().map(e=>e.value)}reset(){this[T]&&this[O]&&this[O].length&&this[O].forEach(e=>this[T](e.key,e.value)),this[L]=new Map,this[O]=new Ts,this[P]=0}dump(){return this[O].map(e=>Ae(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[O]}set(e,t,i){if(i=i||this[X],i&&typeof i!="number")throw new TypeError("maxAge must be a number");let s=i?Date.now():0,n=this[B](t,e);if(this[L].has(e)){if(n>this[U])return W(this,this[L].get(e)),!1;let c=this[L].get(e).value;return this[T]&&(this[lr]||this[T](e,c.value)),c.now=s,c.maxAge=i,c.value=t,this[P]+=n-c.length,c.length=n,this.get(e),se(this),!0}let o=new fr(e,t,n,s,i);return o.length>this[U]?(this[T]&&this[T](e,t),!1):(this[P]+=o.length,this[O].unshift(o),this[L].set(e,this[O].head),se(this),!0)}has(e){if(!this[L].has(e))return!1;let t=this[L].get(e).value;return!Ae(this,t)}get(e){return Fe(this,e,!0)}peek(e){return Fe(this,e,!1)}pop(){let e=this[O].tail;return e?(W(this,e),e.value):null}del(e){W(this,this[L].get(e))}load(e){this.reset();let t=Date.now();for(let i=e.length-1;i>=0;i--){let s=e[i],n=s.e||0;if(n===0)this.set(s.k,s.v);else{let o=n-t;o>0&&this.set(s.k,s.v,o)}}}prune(){this[L].forEach((e,t)=>Fe(this,t,!1))}},Fe=(r,e,t)=>{let i=r[L].get(e);if(i){let s=i.value;if(Ae(r,s)){if(W(r,i),!r[ne])return}else t&&(r[ur]&&(i.value.now=Date.now()),r[O].unshiftNode(i));return s.value}},Ae=(r,e)=>{if(!e||!e.maxAge&&!r[X])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:r[X]&&t>r[X]},se=r=>{if(r[P]>r[U])for(let e=r[O].tail;r[P]>r[U]&&e!==null;){let t=e.prev;W(r,e),e=t}},W=(r,e)=>{if(e){let t=e.value;r[T]&&r[T](t.key,t.value),r[P]-=t.length,r[L].delete(t.key),r[O].removeNode(e)}},fr=class{constructor(e,t,i,s,n){this.key=e,this.value=t,this.length=i,this.now=s,this.maxAge=n||0}},cr=(r,e,t,i)=>{let s=t.value;Ae(r,s)&&(W(r,t),r[ne]||(s=void 0)),s&&e.call(i,s.value,s.key,r)};pr.exports=hr});var N=g((ra,vr)=>{var z=class{constructor(e,t){if(t=Ds(t),e instanceof z)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new z(e.raw,t);if(e instanceof je)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(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(s=>!gr(s[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&Vs(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 i=`parseRange:${Object.keys(this.options).join(",")}:${e}`,s=dr.get(i);if(s)return s;let n=this.options.loose,o=n?b[$.HYPHENRANGELOOSE]:b[$.HYPHENRANGE];e=e.replace(o,Zs(this.options.includePrerelease)),y("hyphen replace",e),e=e.replace(b[$.COMPARATORTRIM],js),y("comparator trim",e,b[$.COMPARATORTRIM]),e=e.replace(b[$.TILDETRIM],Hs),e=e.replace(b[$.CARETTRIM],Gs),e=e.split(/\s+/).join(" ");let l=n?b[$.COMPARATORLOOSE]:b[$.COMPARATOR],c=e.split(" ").map(p=>Ms(p,this.options)).join(" ").split(/\s+/).map(p=>Js(p,this.options)).filter(this.options.loose?p=>!!p.match(l):()=>!0).map(p=>new je(p,this.options)),a=c.length,u=new Map;for(let p of c){if(gr(p))return[p];u.set(p.value,p)}u.size>1&&u.has("")&&u.delete("");let m=[...u.values()];return dr.set(i,m),m}intersects(e,t){if(!(e instanceof z))throw new TypeError("a Range is required");return this.set.some(i=>Er(i,t)&&e.set.some(s=>Er(s,t)&&i.every(n=>s.every(o=>n.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Fs(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Ks(this.set[t],e,this.options))return!0;return!1}};vr.exports=z;var Ps=mr(),dr=new Ps({max:1e3}),Ds=te(),je=oe(),y=ee(),Fs=A(),{re:b,t:$,comparatorTrimReplace:js,tildeTrimReplace:Hs,caretTrimReplace:Gs}=G(),gr=r=>r.value==="<0.0.0-0",Vs=r=>r.value==="",Er=(r,e)=>{let t=!0,i=r.slice(),s=i.pop();for(;t&&i.length;)t=i.every(n=>s.intersects(n,e)),s=i.pop();return t},Ms=(r,e)=>(y("comp",r,e),r=Bs(r,e),y("caret",r),r=Us(r,e),y("tildes",r),r=zs(r,e),y("xrange",r),r=Ys(r,e),y("stars",r),r),I=r=>!r||r.toLowerCase()==="x"||r==="*",Us=(r,e)=>r.trim().split(/\s+/).map(t=>Xs(t,e)).join(" "),Xs=(r,e)=>{let t=e.loose?b[$.TILDELOOSE]:b[$.TILDE];return r.replace(t,(i,s,n,o,l)=>{y("tilde",r,i,s,n,o,l);let c;return I(s)?c="":I(n)?c=`>=${s}.0.0 <${+s+1}.0.0-0`:I(o)?c=`>=${s}.${n}.0 <${s}.${+n+1}.0-0`:l?(y("replaceTilde pr",l),c=`>=${s}.${n}.${o}-${l} <${s}.${+n+1}.0-0`):c=`>=${s}.${n}.${o} <${s}.${+n+1}.0-0`,y("tilde return",c),c})},Bs=(r,e)=>r.trim().split(/\s+/).map(t=>Ws(t,e)).join(" "),Ws=(r,e)=>{y("caret",r,e);let t=e.loose?b[$.CARETLOOSE]:b[$.CARET],i=e.includePrerelease?"-0":"";return r.replace(t,(s,n,o,l,c)=>{y("caret",r,s,n,o,l,c);let a;return I(n)?a="":I(o)?a=`>=${n}.0.0${i} <${+n+1}.0.0-0`:I(l)?n==="0"?a=`>=${n}.${o}.0${i} <${n}.${+o+1}.0-0`:a=`>=${n}.${o}.0${i} <${+n+1}.0.0-0`:c?(y("replaceCaret pr",c),n==="0"?o==="0"?a=`>=${n}.${o}.${l}-${c} <${n}.${o}.${+l+1}-0`:a=`>=${n}.${o}.${l}-${c} <${n}.${+o+1}.0-0`:a=`>=${n}.${o}.${l}-${c} <${+n+1}.0.0-0`):(y("no pr"),n==="0"?o==="0"?a=`>=${n}.${o}.${l}${i} <${n}.${o}.${+l+1}-0`:a=`>=${n}.${o}.${l}${i} <${n}.${+o+1}.0-0`:a=`>=${n}.${o}.${l} <${+n+1}.0.0-0`),y("caret return",a),a})},zs=(r,e)=>(y("replaceXRanges",r,e),r.split(/\s+/).map(t=>ks(t,e)).join(" ")),ks=(r,e)=>{r=r.trim();let t=e.loose?b[$.XRANGELOOSE]:b[$.XRANGE];return r.replace(t,(i,s,n,o,l,c)=>{y("xRange",r,i,s,n,o,l,c);let a=I(n),u=a||I(o),m=u||I(l),p=m;return s==="="&&p&&(s=""),c=e.includePrerelease?"-0":"",a?s===">"||s==="<"?i="<0.0.0-0":i="*":s&&p?(u&&(o=0),l=0,s===">"?(s=">=",u?(n=+n+1,o=0,l=0):(o=+o+1,l=0)):s==="<="&&(s="<",u?n=+n+1:o=+o+1),s==="<"&&(c="-0"),i=`${s+n}.${o}.${l}${c}`):u?i=`>=${n}.0.0${c} <${+n+1}.0.0-0`:m&&(i=`>=${n}.${o}.0${c} <${n}.${+o+1}.0-0`),y("xRange return",i),i})},Ys=(r,e)=>(y("replaceStars",r,e),r.trim().replace(b[$.STAR],"")),Js=(r,e)=>(y("replaceGTE0",r,e),r.trim().replace(b[e.includePrerelease?$.GTE0PRE:$.GTE0],"")),Zs=r=>(e,t,i,s,n,o,l,c,a,u,m,p,d)=>(I(i)?t="":I(s)?t=`>=${i}.0.0${r?"-0":""}`:I(n)?t=`>=${i}.${s}.0${r?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,I(a)?c="":I(u)?c=`<${+a+1}.0.0-0`:I(m)?c=`<${a}.${+u+1}.0-0`:p?c=`<=${a}.${u}.${m}-${p}`:r?c=`<${a}.${u}.${+m+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),Ks=(r,e,t)=>{for(let i=0;i<r.length;i++)if(!r[i].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let i=0;i<r.length;i++)if(y(r[i].semver),r[i].semver!==je.ANY&&r[i].semver.prerelease.length>0){let s=r[i].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var oe=g((ia,Ar)=>{var ae=Symbol("SemVer ANY"),le=class{static get ANY(){return ae}constructor(e,t){if(t=Qs(t),e instanceof le){if(e.loose===!!t.loose)return e;e=e.value}Ge("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ae?this.value="":this.value=this.operator+this.semver.version,Ge("comp",this)}parse(e){let t=this.options.loose?_r[yr.COMPARATORLOOSE]:_r[yr.COMPARATOR],i=e.match(t);if(!i)throw new TypeError(`Invalid comparator: ${e}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new Or(i[2],this.options.loose):this.semver=ae}toString(){return this.value}test(e){if(Ge("Comparator.test",e,this.options.loose),this.semver===ae||e===ae)return!0;if(typeof e=="string")try{e=new Or(e,this.options)}catch{return!1}return He(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof le))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new $r(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new $r(this.value,t).test(e.semver);let i=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),n=this.semver.version===e.semver.version,o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),l=He(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),c=He(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return i||s||n&&o||l||c}};Ar.exports=le;var Qs=te(),{re:_r,t:yr}=G(),He=Pe(),Ge=ee(),Or=A(),$r=N()});var ce=g((sa,br)=>{var en=N(),tn=(r,e,t)=>{try{e=new en(e,t)}catch{return!1}return e.test(r)};br.exports=tn});var Ir=g((na,Rr)=>{var rn=N(),sn=(r,e)=>new rn(r,e).set.map(t=>t.map(i=>i.value).join(" ").trim().split(" "));Rr.exports=sn});var Sr=g((oa,wr)=>{var nn=A(),on=N(),an=(r,e,t)=>{let i=null,s=null,n=null;try{n=new on(e,t)}catch{return null}return r.forEach(o=>{n.test(o)&&(!i||s.compare(o)===-1)&&(i=o,s=new nn(i,t))}),i};wr.exports=an});var xr=g((aa,Cr)=>{var ln=A(),cn=N(),un=(r,e,t)=>{let i=null,s=null,n=null;try{n=new cn(e,t)}catch{return null}return r.forEach(o=>{n.test(o)&&(!i||s.compare(o)===1)&&(i=o,s=new ln(i,t))}),i};Cr.exports=un});var qr=g((la,Lr)=>{var Ve=A(),hn=N(),Nr=ie(),fn=(r,e)=>{r=new hn(r,e);let t=new Ve("0.0.0");if(r.test(t)||(t=new Ve("0.0.0-0"),r.test(t)))return t;t=null;for(let i=0;i<r.set.length;++i){let s=r.set[i],n=null;s.forEach(o=>{let l=new Ve(o.semver.version);switch(o.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!n||Nr(l,n))&&(n=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),n&&(!t||Nr(t,n))&&(t=n)}return t&&r.test(t)?t:null};Lr.exports=fn});var Pr=g((ca,Tr)=>{var pn=N(),mn=(r,e)=>{try{return new pn(r,e).range||"*"}catch{return null}};Tr.exports=mn});var be=g((ua,Hr)=>{var dn=A(),jr=oe(),{ANY:gn}=jr,En=N(),vn=ce(),Dr=ie(),Fr=ve(),_n=ye(),yn=_e(),On=(r,e,t,i)=>{r=new dn(r,i),e=new En(e,i);let s,n,o,l,c;switch(t){case">":s=Dr,n=_n,o=Fr,l=">",c=">=";break;case"<":s=Fr,n=yn,o=Dr,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(vn(r,e,i))return!1;for(let a=0;a<e.set.length;++a){let u=e.set[a],m=null,p=null;if(u.forEach(d=>{d.semver===gn&&(d=new jr(">=0.0.0")),m=m||d,p=p||d,s(d.semver,m.semver,i)?m=d:o(d.semver,p.semver,i)&&(p=d)}),m.operator===l||m.operator===c||(!p.operator||p.operator===l)&&n(r,p.semver))return!1;if(p.operator===c&&o(r,p.semver))return!1}return!0};Hr.exports=On});var Vr=g((ha,Gr)=>{var $n=be(),An=(r,e,t)=>$n(r,e,">",t);Gr.exports=An});var Ur=g((fa,Mr)=>{var bn=be(),Rn=(r,e,t)=>bn(r,e,"<",t);Mr.exports=Rn});var Wr=g((pa,Br)=>{var Xr=N(),In=(r,e,t)=>(r=new Xr(r,t),e=new Xr(e,t),r.intersects(e));Br.exports=In});var kr=g((ma,zr)=>{var wn=ce(),Sn=x();zr.exports=(r,e,t)=>{let i=[],s=null,n=null,o=r.sort((u,m)=>Sn(u,m,t));for(let u of o)wn(u,e,t)?(n=u,s||(s=u)):(n&&i.push([s,n]),n=null,s=null);s&&i.push([s,null]);let l=[];for(let[u,m]of i)u===m?l.push(u):!m&&u===o[0]?l.push("*"):m?u===o[0]?l.push(`<=${m}`):l.push(`${u} - ${m}`):l.push(`>=${u}`);let c=l.join(" || "),a=typeof e.raw=="string"?e.raw:String(e);return c.length<a.length?c:e}});var Qr=g((da,Kr)=>{var Yr=N(),Re=oe(),{ANY:Me}=Re,ue=ce(),Ue=x(),Cn=(r,e,t={})=>{if(r===e)return!0;r=new Yr(r,t),e=new Yr(e,t);let i=!1;e:for(let s of r.set){for(let n of e.set){let o=xn(s,n,t);if(i=i||o!==null,o)continue e}if(i)return!1}return!0},xn=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===Me){if(e.length===1&&e[0].semver===Me)return!0;t.includePrerelease?r=[new Re(">=0.0.0-0")]:r=[new Re(">=0.0.0")]}if(e.length===1&&e[0].semver===Me){if(t.includePrerelease)return!0;e=[new Re(">=0.0.0")]}let i=new Set,s,n;for(let d of r)d.operator===">"||d.operator===">="?s=Jr(s,d,t):d.operator==="<"||d.operator==="<="?n=Zr(n,d,t):i.add(d.semver);if(i.size>1)return null;let o;if(s&&n){if(o=Ue(s.semver,n.semver,t),o>0)return null;if(o===0&&(s.operator!==">="||n.operator!=="<="))return null}for(let d of i){if(s&&!ue(d,String(s),t)||n&&!ue(d,String(n),t))return null;for(let yi of e)if(!ue(d,String(yi),t))return!1;return!0}let l,c,a,u,m=n&&!t.includePrerelease&&n.semver.prerelease.length?n.semver:!1,p=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;m&&m.prerelease.length===1&&n.operator==="<"&&m.prerelease[0]===0&&(m=!1);for(let d of e){if(u=u||d.operator===">"||d.operator===">=",a=a||d.operator==="<"||d.operator==="<=",s){if(p&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===p.major&&d.semver.minor===p.minor&&d.semver.patch===p.patch&&(p=!1),d.operator===">"||d.operator===">="){if(l=Jr(s,d,t),l===d&&l!==s)return!1}else if(s.operator===">="&&!ue(s.semver,String(d),t))return!1}if(n){if(m&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===m.major&&d.semver.minor===m.minor&&d.semver.patch===m.patch&&(m=!1),d.operator==="<"||d.operator==="<="){if(c=Zr(n,d,t),c===d&&c!==n)return!1}else if(n.operator==="<="&&!ue(n.semver,String(d),t))return!1}if(!d.operator&&(n||s)&&o!==0)return!1}return!(s&&a&&!n&&o!==0||n&&u&&!s&&o!==0||p||m)},Jr=(r,e,t)=>{if(!r)return e;let i=Ue(r.semver,e.semver,t);return i>0?r:i<0||e.operator===">"&&r.operator===">="?e:r},Zr=(r,e,t)=>{if(!r)return e;let i=Ue(r.semver,e.semver,t);return i<0?r:i>0||e.operator==="<"&&r.operator==="<="?e:r};Kr.exports=Cn});var ti=g((ga,ei)=>{var Xe=G();ei.exports={re:Xe.re,src:Xe.src,tokens:Xe.t,SEMVER_SPEC_VERSION:Q().SEMVER_SPEC_VERSION,SemVer:A(),compareIdentifiers:pe().compareIdentifiers,rcompareIdentifiers:pe().rcompareIdentifiers,parse:V(),valid:Ot(),clean:At(),inc:Rt(),diff:Nt(),major:qt(),minor:Pt(),patch:Ft(),prerelease:Ht(),compare:x(),rcompare:Vt(),compareLoose:Ut(),compareBuild:Ee(),sort:zt(),rsort:Yt(),gt:ie(),lt:ve(),eq:ge(),neq:Te(),gte:_e(),lte:ye(),cmp:Pe(),coerce:ir(),Comparator:oe(),Range:N(),satisfies:ce(),toComparators:Ir(),maxSatisfying:Sr(),minSatisfying:xr(),minVersion:qr(),validRange:Pr(),outside:be(),gtr:Vr(),ltr:Ur(),intersects:Wr(),simplifyRange:kr(),subset:Qr()}});var Ie=g(S=>{"use strict";var Nn=S&&S.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=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,i,s)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),Ln=S&&S.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),qn=S&&S.__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)&&Nn(e,r,t);return Ln(e,r),e},ri=S&&S.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(S,"__esModule",{value:!0});S.getCoreVersion=void 0;var ii=ri(require("path")),si=ri(require("fs")),Be=qn(require("@serverless-devs/core")),Tn=ti(),ni=ii.default.join(Be.getRootHome(),"cache","core"),We=ii.default.join(ni,"package.json");function Pn(){if(si.default.existsSync(We)){var r=require("@serverless-devs/core/package.json").version,e=oi();return Tn.gt(e,r)?require(ni):Be}return Be}function oi(){return si.default.existsSync(We)?require(We).version:void 0}S.getCoreVersion=oi;S.default=Pn()});var hi=g(w=>{"use strict";var Dn=w&&w.__awaiter||function(r,e,t,i){function s(n){return n instanceof t?n:new t(function(o){o(n)})}return new(t||(t=Promise))(function(n,o){function l(u){try{a(i.next(u))}catch(m){o(m)}}function c(u){try{a(i.throw(u))}catch(m){o(m)}}function a(u){u.done?n(u.value):s(u.value).then(l,c)}a((i=i.apply(r,e||[])).next())})},Fn=w&&w.__generator||function(r,e){var t={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,s,n,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(a){return function(u){return c([a,u])}}function c(a){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,s&&(n=a[0]&2?s.return:a[0]?s.throw||((n=s.return)&&n.call(s),0):s.next)&&!(n=n.call(s,a[1])).done)return n;switch(s=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,s=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(n=t.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){t.label=a[1];break}if(a[0]===6&&t.label<n[1]){t.label=n[1],n=a;break}if(n&&t.label<n[2]){t.label=n[2],t.ops.push(a);break}n[2]&&t.ops.pop(),t.trys.pop();continue}a=e.call(r,t)}catch(u){a=[6,u],s=0}finally{i=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},ai=w&&w.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(w,"__esModule",{value:!0});w.handlerProfileFile=w.getConfig=w.setConfig=void 0;var li=ai(require("path")),ke=ai(Ie()),q=ke.default.fse,we=ke.default.jsyaml,ze=ke.default.getRootHome;function jn(r){var e=ui();q.writeFileSync(e,we.dump(r))}function ci(){var r=ui();if(!q.existsSync(r))return{};try{var e=we.load(q.readFileSync(r,"utf8"))||{};return e}catch(t){throw t}}function ui(){var r=li.default.join(ze(),"set-config.yml");return q.existsSync(r)||q.createFileSync(r),r}function Hn(r,e){var t=ci();t[r]=e,jn(t)}w.setConfig=Hn;function Gn(r,e){var t=ci();return t[r]||e}w.getConfig=Gn;function Vn(r){return Dn(this,void 0,void 0,function(){var e,t,i,s,n,o,l;return Fn(this,function(c){switch(c.label){case 0:if(e=r.filePath||"set-config.yml",t=li.default.join(ze(),e),i=q.existsSync(t),s={},i)return[3,5];n=ze(),c.label=1;case 1:return c.trys.push([1,2,,4]),q.statSync(n),[3,4];case 2:return o=c.sent(),[4,q.mkdirSync(n)];case 3:return c.sent(),[3,4];case 4:return[3,6];case 5:try{s=we.load(q.readFileSync(t,"utf8"))||{}}catch(a){throw a}c.label=6;case 6:return r.read?[2,s]:(l=r.configKey||"",s[l]=r.data,[4,q.writeFileSync(t,we.dump(s))]);case 7:return c.sent(),[2,s]}})})}w.handlerProfileFile=Vn});var fi=g((_a,Mn)=>{Mn.exports={name:"@serverless-devs/s",version:"2.0.103",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 vi=g(E=>{"use strict";var Un=E&&E.__createBinding||(Object.create?function(r,e,t,i){i===void 0&&(i=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,i,s)}:function(r,e,t,i){i===void 0&&(i=t),r[i]=e[t]}),Xn=E&&E.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Bn=E&&E.__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)&&Un(e,r,t);return Xn(e,r),e},k=E&&E.__awaiter||function(r,e,t,i){function s(n){return n instanceof t?n:new t(function(o){o(n)})}return new(t||(t=Promise))(function(n,o){function l(u){try{a(i.next(u))}catch(m){o(m)}}function c(u){try{a(i.throw(u))}catch(m){o(m)}}function a(u){u.done?n(u.value):s(u.value).then(l,c)}a((i=i.apply(r,e||[])).next())})},Y=E&&E.__generator||function(r,e){var t={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,s,n,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(a){return function(u){return c([a,u])}}function c(a){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,s&&(n=a[0]&2?s.return:a[0]?s.throw||((n=s.return)&&n.call(s),0):s.next)&&!(n=n.call(s,a[1])).done)return n;switch(s=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,s=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(n=t.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){t.label=a[1];break}if(a[0]===6&&t.label<n[1]){t.label=n[1],n=a;break}if(n&&t.label<n[2]){t.label=n[2],t.ops.push(a);break}n[2]&&t.ops.pop(),t.trys.pop();continue}a=e.call(r,t)}catch(u){a=[6,u],s=0}finally{i=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Je=E&&E.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(E,"__esModule",{value:!0});E.specifyServiceHelp=E.getTempCommandStr=E.emoji=E.mark=E.replaceTemplate=E.replaceFun=E.getLang=E.printn=E.getFolderSize=E.getVersion=E.getPid=E.aiRequest=E.getCredentialWithAll=E.getCredentialWithExisted=E.getProcessArgv=E.bgRed=E.yellow=E.red=void 0;var Wn=Je(require("path")),he=Je(require("fs")),zn=Je(require("os")),R=Bn(Ie()),kn=hi(),pi=fi(),J=R.default.colors,Yn=R.default.got,Jn=R.default.getMAC,Zn=R.default.isDocker,Kn=R.default.isCiCdEnv,F=R.default.lodash,mi=R.default.publishHelp,Qn=F.get,eo=F.trim,to=F.assign,ro=F.filter,di=F.includes,io=F.omit,so=F.isPlainObject,no=F.isEmpty,oo=J.underline,ao=J.bold;E.red=J.hex("#fd5750");E.yellow=J.hex("#F3F99D");E.bgRed=J.hex("#000").bgHex("#fd5750");var lo=function(){var r=process.env.serverless_devs_temp_argv;try{var e=JSON.parse(r),t=R.default.getGlobalArgs(e);return process.argv=process.argv.slice(0,2).concat(t._argsObj),to({},t,{noHelpArgv:process.argv.slice(0,2).concat(ro(t._argsObj,function(i){return!di(["-h","--help"],i)}))})}catch{return{}}};E.getProcessArgv=lo;var co=function(r){return k(void 0,void 0,void 0,function(){var e,t;return Y(this,function(i){switch(i.label){case 0:return[4,R.default.getCredentialAliasList()];case 1:return e=i.sent(),di(e,r)?[4,R.default.getCredential(r)]:[3,3];case 2:return t=i.sent(),[2,t];case 3:return[2]}})})};E.getCredentialWithExisted=co;var uo=function(){return k(void 0,void 0,void 0,function(){var r,e,t,i,s,n;return Y(this,function(o){switch(o.label){case 0:return[4,R.default.getCredentialAliasList()];case 1:if(r=o.sent(),!(r.length>0))return[3,6];e={},t=0,i=r,o.label=2;case 2:return t<i.length?(s=i[t],[4,R.default.getCredential(s)]):[3,5];case 3:n=o.sent(),e[n.Alias]=io(n,"Alias"),o.label=4;case 4:return t++,[3,2];case 5:return[2,e];case 6:return[2]}})})};E.getCredentialWithAll=uo;var ho=function(r,e){return e===void 0&&(e="unknow"),k(void 0,void 0,void 0,function(){var t,i,s,n;return Y(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),t=(0,kn.getConfig)("analysis"),t!=="enable"?[2]:Zn()||Kn()?[2]:[4,Yn("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(e,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0})];case 1:return i=o.sent(),s=Qn(i.body,"shorturl"),s&&console.log(`AI Tips:
|
|
16
16
|
You can try to solve the problem through: `.concat(J.underline(s),`
|
|
17
17
|
`)),[3,3];case 2:return n=o.sent(),[3,3];case 3:return[2]}})})};E.aiRequest=ho;var fo=function(){try{return Jn().replace(/:/g,"")}catch{return"unknown"}};E.getPid=fo;function po(){var r=(0,R.getCoreVersion)(),e=["".concat(pi.name,": ").concat(pi.version),r?"core: ".concat(r):void 0,"s-home: ".concat(R.default.getRootHome()),"".concat(process.platform,"-").concat(process.arch),"node-".concat(process.version)];return e.filter(function(t){return t}).join(", ")}E.getVersion=po;function mo(r){return k(this,void 0,void 0,function(){function e(s){return k(this,void 0,void 0,function(){var n,o;return Y(this,function(l){switch(l.label){case 0:return n=he.default.lstatSync(s),typeof n!="object"?[2]:(t.set(n.ino,n.size),n.isDirectory()?(o=he.default.readdirSync(s),typeof o!="object"?[2]:[4,Promise.all(o.map(function(c){return e(Wn.default.join(s,c))}))]):[3,2]);case 1:l.sent(),l.label=2;case 2:return[2]}})})}var t,i;return Y(this,function(s){switch(s.label){case 0:return t=new Map,[4,e(r)];case 1:return s.sent(),i=Array.from(t.values()).reduce(function(n,o){return n+o},0),[2,i]}})})}E.getFolderSize=mo;function go(r,e){e===void 0&&(e=" ");for(var t="",i=0;i<r;i++)t=t+e;return t}E.printn=go;function Eo(){return"en"}E.getLang=Eo;function gi(r,e){var t=/\{\{(.*?)\}\}/g,i=r.match(t);if(i)for(var s=0;s<i.length;s++){var n=i[s].replace(/{{|}}/g,""),o=eo(n.split("|")[0]);e[o]&&(r=r.replace(i[s],e[o]))}return r}E.replaceFun=gi;function vo(r,e){r.forEach(function(t){if(he.default.existsSync(t)){var i=he.default.readFileSync(t,"utf-8"),s=gi(i,e);he.default.writeFileSync(t,s,"utf-8")}})}E.replaceTemplate=vo;function _o(r){if(!r)return r;var e=r.slice(-4);return"***********".concat(e)}E.mark=_o;function Ye(r,e){return zn.default.platform()==="win32"?e||"\u25C6":"".concat(r," ")}E.emoji=Ye;function Ei(r,e){var t=r.length,i=new Array(e-t).fill(" ");return"".concat(r).concat(i.join("")," : ")}E.getTempCommandStr=Ei;function yo(r){return k(this,void 0,void 0,function(){var e,t,i,s,n,l,o,l;return Y(this,function(c){switch(c.label){case 0:return[4,R.default.getYamlContent(r)];case 1:if(e=c.sent(),console.log(`
|
|
18
18
|
`.concat(Ye("\u{1F680}")," ").concat(e.Name,"@").concat(e.Version,": ").concat(e.Description,`
|
|
19
19
|
`)),t=e.Commands,t){i=mi.maxLen(t),s=[],n={};for(l in t)o=t[l],so(o)?s.push(mi.helpInfo(o,oo(ao(l)),i,4)):n[l]=o;if(s.length>0&&console.log(s.join(`
|
|
20
20
|
`)),!no(n)){for(l in n)console.log(" ".concat(Ei(l,i)," ").concat(n[l]));console.log("")}console.log(e.HomePage?" ".concat(Ye("\u{1F9ED}")," ").concat(R.default.makeUnderLine("More information: "+e.HomePage)," ")+`
|
|
21
|
-
`:"")}return[2]}})})}E.specifyServiceHelp=yo});var _i=exports&&exports.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0});var Oo=_i(st()),Se=vi(),$o=_i(Ie()),Ce=$o.default.colors,
|
|
21
|
+
`:"")}return[2]}})})}E.specifyServiceHelp=yo});var _i=exports&&exports.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0});var Oo=_i(st()),Se=vi(),$o=_i(Ie()),Ce=$o.default.colors,Ao=`Configure venders account, including Alibaba Cloud, Baidu Cloud, Huawei Cloud, Tencent Cloud, etc.
|
|
22
22
|
|
|
23
|
-
`.concat((0,Se.emoji)("\u{1F4D6}")," Document: ").concat(Ce.underline("https://github.com/Serverless-Devs/Serverless-Devs/tree/master/docs/zh/command/config.md"));Oo.default.name("s config").usage("[commands] [options]").helpOption("-h, --help","Display help for command").command("add","".concat((0,Se.emoji)(Ce.bold("+")))+"Add an account").command("get","".concat((0,Se.emoji)(Ce.bold("\u221A")))+"Get accounts").command("delete","".concat((0,Se.emoji)(Ce.bold("\xD7")))+"Delete an account").description(
|
|
23
|
+
`.concat((0,Se.emoji)("\u{1F4D6}")," Document: ").concat(Ce.underline("https://github.com/Serverless-Devs/Serverless-Devs/tree/master/docs/zh/command/config.md"));Oo.default.name("s config").usage("[commands] [options]").helpOption("-h, --help","Display help for command").command("add","".concat((0,Se.emoji)(Ce.bold("+")))+"Add an account").command("get","".concat((0,Se.emoji)(Ce.bold("\u221A")))+"Get accounts").command("delete","".concat((0,Se.emoji)(Ce.bold("\xD7")))+"Delete an account").description(Ao).addHelpCommand(!1).parse(process.argv);
|
package/lib/index.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
`)}helpInformation(){if(this._name==="s")return"";let r=[];if(this._description){r=[this._description,""];let c=this._argsDescription;if(c&&this._args.length){let a=this.padWidth(),f=(process.stdout.columns||80)-a-5;r.push("Arguments:"),this._args.forEach(p=>{r.push(" "+Sv(p.name,a)+" "+S1(c[p.name]||"",f,a+4))}),r.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 i=["Usage: "+n+t+" "+this.usage(),""],o=[],u=this.commandHelp();u&&(o=[u]);let s=[];return(this._hasHelpOption||this.options.length>0)&&(s=["Options:",""+this.optionHelp().replace(/^/gm," "),""]),i.concat(r).concat(s).concat(o).join(`
|
|
13
13
|
`)}outputHelp(r){r||(r=n=>n);let t=r(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(r,t){if(typeof r=="boolean")return this._hasHelpOption=r,this;this._helpFlags=r||this._helpFlags,this._helpDescription=t||this._helpDescription;let n=D1(this._helpFlags);return this._helpShortFlag=n.shortFlag,this._helpLongFlag=n.longFlag,this}help(r){this.outputHelp(r),this._exit(process.exitCode||0,"commander.help","(outputHelp)")}_helpAndError(){this.outputHelp(),this._exit(1,"commander.help","(outputHelp)")}};un=q1.exports=new pu;un.program=un;un.Command=pu;un.Option=lc;un.CommanderError=hu;function R6(e){return e.split("-").reduce((r,t)=>r+t[0].toUpperCase()+t.slice(1))}function Sv(e,r){let t=Math.max(0,r-e.length);return e+Array(t+1).join(" ")}function S1(e,r,t){let n=new RegExp(".{1,"+(r-1)+"}([\\s\u200B]|$)|[^\\s\u200B]+?([\\s\u200B]|$)","g");return(e.match(n)||[]).map((o,u)=>(o.slice(-1)===`
|
|
14
14
|
`&&(o=o.slice(0,o.length-1)),(u>0&&t?Array(t+1).join(" "):"")+o.trimRight())).join(`
|
|
15
|
-
`)}function g1(e,r,t){return e.match(/[\n]\s+/)||r<40?e:S1(e,r,t)}function w1(e,r){e._hasHelpOption&&r.find(n=>n===e._helpLongFlag||n===e._helpShortFlag)&&(e.outputHelp(),e._exit(0,"commander.helpDisplayed","(outputHelp)"))}function O1(e){let r=e.name+(e.variadic===!0?"...":"");return e.required?"<"+r+">":"["+r+"]"}function D1(e){let r,t,n=e.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(r=n.shift()),t=n.shift(),!r&&/^-[^-]$/.test(t)&&(r=t,t=void 0),{shortFlag:r,longFlag:t}}function E1(e){return e.map(r=>{if(!r.startsWith("--inspect"))return r;let t,n="127.0.0.1",i="9229",o;return(o=r.match(/^(--inspect(-brk)?)$/))!==null?t=o[1]:(o=r.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=o[1],/^\d+$/.test(o[3])?i=o[3]:n=o[3]):(o=r.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=o[1],n=o[3],i=o[4]),t&&i!=="0"?`${t}=${n}:${parseInt(i)+1}`:r})}});var du=l((c3e,x1)=>{var F6="2.0.0",M6=Number.MAX_SAFE_INTEGER||9007199254740991,L6=16;x1.exports={SEMVER_SPEC_VERSION:F6,MAX_LENGTH:256,MAX_SAFE_INTEGER:M6,MAX_SAFE_COMPONENT_LENGTH:L6}});var vu=l((l3e,A1)=>{var N6=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};A1.exports=N6});var sn=l((et,C1)=>{var{MAX_SAFE_COMPONENT_LENGTH:qv}=du(),k6=vu();et=C1.exports={};var B6=et.re=[],P=et.src=[],j=et.t={},U6=0,W=(e,r,t)=>{let n=U6++;k6(n,r),j[e]=n,P[n]=r,B6[n]=new RegExp(r,t?"g":void 0)};W("NUMERICIDENTIFIER","0|[1-9]\\d*");W("NUMERICIDENTIFIERLOOSE","[0-9]+");W("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");W("MAINVERSION",`(${P[j.NUMERICIDENTIFIER]})\\.(${P[j.NUMERICIDENTIFIER]})\\.(${P[j.NUMERICIDENTIFIER]})`);W("MAINVERSIONLOOSE",`(${P[j.NUMERICIDENTIFIERLOOSE]})\\.(${P[j.NUMERICIDENTIFIERLOOSE]})\\.(${P[j.NUMERICIDENTIFIERLOOSE]})`);W("PRERELEASEIDENTIFIER",`(?:${P[j.NUMERICIDENTIFIER]}|${P[j.NONNUMERICIDENTIFIER]})`);W("PRERELEASEIDENTIFIERLOOSE",`(?:${P[j.NUMERICIDENTIFIERLOOSE]}|${P[j.NONNUMERICIDENTIFIER]})`);W("PRERELEASE",`(?:-(${P[j.PRERELEASEIDENTIFIER]}(?:\\.${P[j.PRERELEASEIDENTIFIER]})*))`);W("PRERELEASELOOSE",`(?:-?(${P[j.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${P[j.PRERELEASEIDENTIFIERLOOSE]})*))`);W("BUILDIDENTIFIER","[0-9A-Za-z-]+");W("BUILD",`(?:\\+(${P[j.BUILDIDENTIFIER]}(?:\\.${P[j.BUILDIDENTIFIER]})*))`);W("FULLPLAIN",`v?${P[j.MAINVERSION]}${P[j.PRERELEASE]}?${P[j.BUILD]}?`);W("FULL",`^${P[j.FULLPLAIN]}$`);W("LOOSEPLAIN",`[v=\\s]*${P[j.MAINVERSIONLOOSE]}${P[j.PRERELEASELOOSE]}?${P[j.BUILD]}?`);W("LOOSE",`^${P[j.LOOSEPLAIN]}$`);W("GTLT","((?:<|>)?=?)");W("XRANGEIDENTIFIERLOOSE",`${P[j.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);W("XRANGEIDENTIFIER",`${P[j.NUMERICIDENTIFIER]}|x|X|\\*`);W("XRANGEPLAIN",`[v=\\s]*(${P[j.XRANGEIDENTIFIER]})(?:\\.(${P[j.XRANGEIDENTIFIER]})(?:\\.(${P[j.XRANGEIDENTIFIER]})(?:${P[j.PRERELEASE]})?${P[j.BUILD]}?)?)?`);W("XRANGEPLAINLOOSE",`[v=\\s]*(${P[j.XRANGEIDENTIFIERLOOSE]})(?:\\.(${P[j.XRANGEIDENTIFIERLOOSE]})(?:\\.(${P[j.XRANGEIDENTIFIERLOOSE]})(?:${P[j.PRERELEASELOOSE]})?${P[j.BUILD]}?)?)?`);W("XRANGE",`^${P[j.GTLT]}\\s*${P[j.XRANGEPLAIN]}$`);W("XRANGELOOSE",`^${P[j.GTLT]}\\s*${P[j.XRANGEPLAINLOOSE]}$`);W("COERCE",`(^|[^\\d])(\\d{1,${qv}})(?:\\.(\\d{1,${qv}}))?(?:\\.(\\d{1,${qv}}))?(?:$|[^\\d])`);W("COERCERTL",P[j.COERCE],!0);W("LONETILDE","(?:~>?)");W("TILDETRIM",`(\\s*)${P[j.LONETILDE]}\\s+`,!0);et.tildeTrimReplace="$1~";W("TILDE",`^${P[j.LONETILDE]}${P[j.XRANGEPLAIN]}$`);W("TILDELOOSE",`^${P[j.LONETILDE]}${P[j.XRANGEPLAINLOOSE]}$`);W("LONECARET","(?:\\^)");W("CARETTRIM",`(\\s*)${P[j.LONECARET]}\\s+`,!0);et.caretTrimReplace="$1^";W("CARET",`^${P[j.LONECARET]}${P[j.XRANGEPLAIN]}$`);W("CARETLOOSE",`^${P[j.LONECARET]}${P[j.XRANGEPLAINLOOSE]}$`);W("COMPARATORLOOSE",`^${P[j.GTLT]}\\s*(${P[j.LOOSEPLAIN]})$|^$`);W("COMPARATOR",`^${P[j.GTLT]}\\s*(${P[j.FULLPLAIN]})$|^$`);W("COMPARATORTRIM",`(\\s*)${P[j.GTLT]}\\s*(${P[j.LOOSEPLAIN]}|${P[j.XRANGEPLAIN]})`,!0);et.comparatorTrimReplace="$1$2$3";W("HYPHENRANGE",`^\\s*(${P[j.XRANGEPLAIN]})\\s+-\\s+(${P[j.XRANGEPLAIN]})\\s*$`);W("HYPHENRANGELOOSE",`^\\s*(${P[j.XRANGEPLAINLOOSE]})\\s+-\\s+(${P[j.XRANGEPLAINLOOSE]})\\s*$`);W("STAR","(<|>)?=?\\s*\\*");W("GTE0","^\\s*>=\\s*0.0.0\\s*$");W("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var bu=l((f3e,P1)=>{var W6=["includePrerelease","loose","rtl"],$6=e=>e?typeof e!="object"?{loose:!0}:W6.filter(r=>e[r]).reduce((r,t)=>(r[t]=!0,r),{}):{};P1.exports=$6});var fc=l((h3e,I1)=>{var j1=/^[0-9]+$/,T1=(e,r)=>{let t=j1.test(e),n=j1.test(r);return t&&n&&(e=+e,r=+r),e===r?0:t&&!n?-1:n&&!t?1:e<r?-1:1},V6=(e,r)=>T1(r,e);I1.exports={compareIdentifiers:T1,rcompareIdentifiers:V6}});var Ce=l((p3e,L1)=>{var hc=vu(),{MAX_LENGTH:R1,MAX_SAFE_INTEGER:pc}=du(),{re:F1,t:M1}=sn(),H6=bu(),{compareIdentifiers:_u}=fc(),Qe=class{constructor(r,t){if(t=H6(t),r instanceof Qe){if(r.loose===!!t.loose&&r.includePrerelease===!!t.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>R1)throw new TypeError(`version is longer than ${R1} characters`);hc("SemVer",r,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=r.trim().match(t.loose?F1[M1.LOOSE]:F1[M1.FULL]);if(!n)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>pc||this.major<0)throw new TypeError("Invalid major version");if(this.minor>pc||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>pc||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let o=+i;if(o>=0&&o<pc)return o}return i}):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(r){if(hc("SemVer.compare",this.version,this.options,r),!(r instanceof Qe)){if(typeof r=="string"&&r===this.version)return 0;r=new Qe(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof Qe||(r=new Qe(r,this.options)),_u(this.major,r.major)||_u(this.minor,r.minor)||_u(this.patch,r.patch)}comparePre(r){if(r instanceof Qe||(r=new Qe(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],i=r.prerelease[t];if(hc("prerelease compare",t,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return _u(n,i)}while(++t)}compareBuild(r){r instanceof Qe||(r=new Qe(r,this.options));let t=0;do{let n=this.build[t],i=r.build[t];if(hc("prerelease compare",t,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return _u(n,i)}while(++t)}inc(r,t){switch(r){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: ${r}`)}return this.format(),this.raw=this.version,this}};L1.exports=Qe});var an=l((d3e,U1)=>{var{MAX_LENGTH:G6}=du(),{re:N1,t:k1}=sn(),B1=Ce(),z6=bu(),X6=(e,r)=>{if(r=z6(r),e instanceof B1)return e;if(typeof e!="string"||e.length>G6||!(r.loose?N1[k1.LOOSE]:N1[k1.FULL]).test(e))return null;try{return new B1(e,r)}catch{return null}};U1.exports=X6});var $1=l((v3e,W1)=>{var Y6=an(),K6=(e,r)=>{let t=Y6(e,r);return t?t.version:null};W1.exports=K6});var H1=l((b3e,V1)=>{var J6=an(),Q6=(e,r)=>{let t=J6(e.trim().replace(/^[=v]+/,""),r);return t?t.version:null};V1.exports=Q6});var z1=l((_3e,G1)=>{var Z6=Ce(),e4=(e,r,t,n)=>{typeof t=="string"&&(n=t,t=void 0);try{return new Z6(e,t).inc(r,n).version}catch{return null}};G1.exports=e4});var Ze=l((y3e,Y1)=>{var X1=Ce(),r4=(e,r,t)=>new X1(e,t).compare(new X1(r,t));Y1.exports=r4});var dc=l((m3e,K1)=>{var t4=Ze(),n4=(e,r,t)=>t4(e,r,t)===0;K1.exports=n4});var Z1=l((g3e,Q1)=>{var J1=an(),i4=dc(),o4=(e,r)=>{if(i4(e,r))return null;{let t=J1(e),n=J1(r),i=t.prerelease.length||n.prerelease.length,o=i?"pre":"",u=i?"prerelease":"";for(let s in t)if((s==="major"||s==="minor"||s==="patch")&&t[s]!==n[s])return o+s;return u}};Q1.exports=o4});var rE=l((w3e,eE)=>{var u4=Ce(),s4=(e,r)=>new u4(e,r).major;eE.exports=s4});var nE=l((O3e,tE)=>{var a4=Ce(),c4=(e,r)=>new a4(e,r).minor;tE.exports=c4});var oE=l((E3e,iE)=>{var l4=Ce(),f4=(e,r)=>new l4(e,r).patch;iE.exports=f4});var sE=l((S3e,uE)=>{var h4=an(),p4=(e,r)=>{let t=h4(e,r);return t&&t.prerelease.length?t.prerelease:null};uE.exports=p4});var cE=l((D3e,aE)=>{var d4=Ze(),v4=(e,r,t)=>d4(r,e,t);aE.exports=v4});var fE=l((q3e,lE)=>{var b4=Ze(),_4=(e,r)=>b4(e,r,!0);lE.exports=_4});var vc=l((x3e,pE)=>{var hE=Ce(),y4=(e,r,t)=>{let n=new hE(e,t),i=new hE(r,t);return n.compare(i)||n.compareBuild(i)};pE.exports=y4});var vE=l((A3e,dE)=>{var m4=vc(),g4=(e,r)=>e.sort((t,n)=>m4(t,n,r));dE.exports=g4});var _E=l((C3e,bE)=>{var w4=vc(),O4=(e,r)=>e.sort((t,n)=>w4(n,t,r));bE.exports=O4});var yu=l((P3e,yE)=>{var E4=Ze(),S4=(e,r,t)=>E4(e,r,t)>0;yE.exports=S4});var bc=l((j3e,mE)=>{var D4=Ze(),q4=(e,r,t)=>D4(e,r,t)<0;mE.exports=q4});var xv=l((T3e,gE)=>{var x4=Ze(),A4=(e,r,t)=>x4(e,r,t)!==0;gE.exports=A4});var _c=l((I3e,wE)=>{var C4=Ze(),P4=(e,r,t)=>C4(e,r,t)>=0;wE.exports=P4});var yc=l((R3e,OE)=>{var j4=Ze(),T4=(e,r,t)=>j4(e,r,t)<=0;OE.exports=T4});var Av=l((F3e,EE)=>{var I4=dc(),R4=xv(),F4=yu(),M4=_c(),L4=bc(),N4=yc(),k4=(e,r,t,n)=>{switch(r){case"===":return typeof e=="object"&&(e=e.version),typeof t=="object"&&(t=t.version),e===t;case"!==":return typeof e=="object"&&(e=e.version),typeof t=="object"&&(t=t.version),e!==t;case"":case"=":case"==":return I4(e,t,n);case"!=":return R4(e,t,n);case">":return F4(e,t,n);case">=":return M4(e,t,n);case"<":return L4(e,t,n);case"<=":return N4(e,t,n);default:throw new TypeError(`Invalid operator: ${r}`)}};EE.exports=k4});var DE=l((M3e,SE)=>{var B4=Ce(),U4=an(),{re:mc,t:gc}=sn(),W4=(e,r)=>{if(e instanceof B4)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;r=r||{};let t=null;if(!r.rtl)t=e.match(mc[gc.COERCE]);else{let n;for(;(n=mc[gc.COERCERTL].exec(e))&&(!t||t.index+t[0].length!==e.length);)(!t||n.index+n[0].length!==t.index+t[0].length)&&(t=n),mc[gc.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;mc[gc.COERCERTL].lastIndex=-1}return t===null?null:U4(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,r)};SE.exports=W4});var xE=l((L3e,qE)=>{"use strict";qE.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var CE=l((N3e,AE)=>{"use strict";AE.exports=Z;Z.Node=cn;Z.create=Z;function Z(e){var r=this;if(r instanceof Z||(r=new Z),r.tail=null,r.head=null,r.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){r.push(i)});else if(arguments.length>0)for(var t=0,n=arguments.length;t<n;t++)r.push(arguments[t]);return r}Z.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var r=e.next,t=e.prev;return r&&(r.prev=t),t&&(t.next=r),e===this.head&&(this.head=r),e===this.tail&&(this.tail=t),e.list.length--,e.next=null,e.prev=null,e.list=null,r};Z.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var r=this.head;e.list=this,e.next=r,r&&(r.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};Z.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var r=this.tail;e.list=this,e.prev=r,r&&(r.next=e),this.tail=e,this.head||(this.head=e),this.length++}};Z.prototype.push=function(){for(var e=0,r=arguments.length;e<r;e++)V4(this,arguments[e]);return this.length};Z.prototype.unshift=function(){for(var e=0,r=arguments.length;e<r;e++)H4(this,arguments[e]);return this.length};Z.prototype.pop=function(){if(!!this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};Z.prototype.shift=function(){if(!!this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};Z.prototype.forEach=function(e,r){r=r||this;for(var t=this.head,n=0;t!==null;n++)e.call(r,t.value,n,this),t=t.next};Z.prototype.forEachReverse=function(e,r){r=r||this;for(var t=this.tail,n=this.length-1;t!==null;n--)e.call(r,t.value,n,this),t=t.prev};Z.prototype.get=function(e){for(var r=0,t=this.head;t!==null&&r<e;r++)t=t.next;if(r===e&&t!==null)return t.value};Z.prototype.getReverse=function(e){for(var r=0,t=this.tail;t!==null&&r<e;r++)t=t.prev;if(r===e&&t!==null)return t.value};Z.prototype.map=function(e,r){r=r||this;for(var t=new Z,n=this.head;n!==null;)t.push(e.call(r,n.value,this)),n=n.next;return t};Z.prototype.mapReverse=function(e,r){r=r||this;for(var t=new Z,n=this.tail;n!==null;)t.push(e.call(r,n.value,this)),n=n.prev;return t};Z.prototype.reduce=function(e,r){var t,n=this.head;if(arguments.length>1)t=r;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 i=0;n!==null;i++)t=e(t,n.value,i),n=n.next;return t};Z.prototype.reduceReverse=function(e,r){var t,n=this.tail;if(arguments.length>1)t=r;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 i=this.length-1;n!==null;i--)t=e(t,n.value,i),n=n.prev;return t};Z.prototype.toArray=function(){for(var e=new Array(this.length),r=0,t=this.head;t!==null;r++)e[r]=t.value,t=t.next;return e};Z.prototype.toArrayReverse=function(){for(var e=new Array(this.length),r=0,t=this.tail;t!==null;r++)e[r]=t.value,t=t.prev;return e};Z.prototype.slice=function(e,r){r=r||this.length,r<0&&(r+=this.length),e=e||0,e<0&&(e+=this.length);var t=new Z;if(r<e||r<0)return t;e<0&&(e=0),r>this.length&&(r=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<r;n++,i=i.next)t.push(i.value);return t};Z.prototype.sliceReverse=function(e,r){r=r||this.length,r<0&&(r+=this.length),e=e||0,e<0&&(e+=this.length);var t=new Z;if(r<e||r<0)return t;e<0&&(e=0),r>this.length&&(r=this.length);for(var n=this.length,i=this.tail;i!==null&&n>r;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)t.push(i.value);return t};Z.prototype.splice=function(e,r,...t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var o=[],n=0;i&&n<r;n++)o.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<t.length;n++)i=$4(this,i,t[n]);return o};Z.prototype.reverse=function(){for(var e=this.head,r=this.tail,t=e;t!==null;t=t.prev){var n=t.prev;t.prev=t.next,t.next=n}return this.head=r,this.tail=e,this};function $4(e,r,t){var n=r===e.head?new cn(t,null,r,e):new cn(t,r,r.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function V4(e,r){e.tail=new cn(r,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function H4(e,r){e.head=new cn(r,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function cn(e,r,t,n){if(!(this instanceof cn))return new cn(e,r,t,n);this.list=n,this.value=e,r?(r.next=this,this.prev=r):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{xE()(Z)}catch{}});var ME=l((k3e,FE)=>{"use strict";var G4=CE(),ln=Symbol("max"),Fr=Symbol("length"),ui=Symbol("lengthCalculator"),gu=Symbol("allowStale"),fn=Symbol("maxAge"),Rr=Symbol("dispose"),PE=Symbol("noDisposeOnSet"),we=Symbol("lruList"),cr=Symbol("cache"),TE=Symbol("updateAgeOnGet"),Cv=()=>1,IE=class{constructor(r){if(typeof r=="number"&&(r={max:r}),r||(r={}),r.max&&(typeof r.max!="number"||r.max<0))throw new TypeError("max must be a non-negative number");let t=this[ln]=r.max||1/0,n=r.length||Cv;if(this[ui]=typeof n!="function"?Cv:n,this[gu]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[fn]=r.maxAge||0,this[Rr]=r.dispose,this[PE]=r.noDisposeOnSet||!1,this[TE]=r.updateAgeOnGet||!1,this.reset()}set max(r){if(typeof r!="number"||r<0)throw new TypeError("max must be a non-negative number");this[ln]=r||1/0,mu(this)}get max(){return this[ln]}set allowStale(r){this[gu]=!!r}get allowStale(){return this[gu]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[fn]=r,mu(this)}get maxAge(){return this[fn]}set lengthCalculator(r){typeof r!="function"&&(r=Cv),r!==this[ui]&&(this[ui]=r,this[Fr]=0,this[we].forEach(t=>{t.length=this[ui](t.value,t.key),this[Fr]+=t.length})),mu(this)}get lengthCalculator(){return this[ui]}get length(){return this[Fr]}get itemCount(){return this[we].length}rforEach(r,t){t=t||this;for(let n=this[we].tail;n!==null;){let i=n.prev;jE(this,r,n,t),n=i}}forEach(r,t){t=t||this;for(let n=this[we].head;n!==null;){let i=n.next;jE(this,r,n,t),n=i}}keys(){return this[we].toArray().map(r=>r.key)}values(){return this[we].toArray().map(r=>r.value)}reset(){this[Rr]&&this[we]&&this[we].length&&this[we].forEach(r=>this[Rr](r.key,r.value)),this[cr]=new Map,this[we]=new G4,this[Fr]=0}dump(){return this[we].map(r=>wc(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[we]}set(r,t,n){if(n=n||this[fn],n&&typeof n!="number")throw new TypeError("maxAge must be a number");let i=n?Date.now():0,o=this[ui](t,r);if(this[cr].has(r)){if(o>this[ln])return si(this,this[cr].get(r)),!1;let c=this[cr].get(r).value;return this[Rr]&&(this[PE]||this[Rr](r,c.value)),c.now=i,c.maxAge=n,c.value=t,this[Fr]+=o-c.length,c.length=o,this.get(r),mu(this),!0}let u=new RE(r,t,o,i,n);return u.length>this[ln]?(this[Rr]&&this[Rr](r,t),!1):(this[Fr]+=u.length,this[we].unshift(u),this[cr].set(r,this[we].head),mu(this),!0)}has(r){if(!this[cr].has(r))return!1;let t=this[cr].get(r).value;return!wc(this,t)}get(r){return Pv(this,r,!0)}peek(r){return Pv(this,r,!1)}pop(){let r=this[we].tail;return r?(si(this,r),r.value):null}del(r){si(this,this[cr].get(r))}load(r){this.reset();let t=Date.now();for(let n=r.length-1;n>=0;n--){let i=r[n],o=i.e||0;if(o===0)this.set(i.k,i.v);else{let u=o-t;u>0&&this.set(i.k,i.v,u)}}}prune(){this[cr].forEach((r,t)=>Pv(this,t,!1))}},Pv=(e,r,t)=>{let n=e[cr].get(r);if(n){let i=n.value;if(wc(e,i)){if(si(e,n),!e[gu])return}else t&&(e[TE]&&(n.value.now=Date.now()),e[we].unshiftNode(n));return i.value}},wc=(e,r)=>{if(!r||!r.maxAge&&!e[fn])return!1;let t=Date.now()-r.now;return r.maxAge?t>r.maxAge:e[fn]&&t>e[fn]},mu=e=>{if(e[Fr]>e[ln])for(let r=e[we].tail;e[Fr]>e[ln]&&r!==null;){let t=r.prev;si(e,r),r=t}},si=(e,r)=>{if(r){let t=r.value;e[Rr]&&e[Rr](t.key,t.value),e[Fr]-=t.length,e[cr].delete(t.key),e[we].removeNode(r)}},RE=class{constructor(r,t,n,i,o){this.key=r,this.value=t,this.length=n,this.now=i,this.maxAge=o||0}},jE=(e,r,t,n)=>{let i=t.value;wc(e,i)&&(si(e,t),e[gu]||(i=void 0)),i&&r.call(n,i.value,i.key,e)};FE.exports=IE});var er=l((B3e,BE)=>{var ai=class{constructor(r,t){if(t=X4(t),r instanceof ai)return r.loose===!!t.loose&&r.includePrerelease===!!t.includePrerelease?r:new ai(r.raw,t);if(r instanceof jv)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=r,this.set=r.split(/\s*\|\|\s*/).map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!NE(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&Z4(i[0])){this.set=[i];break}}}this.format()}format(){return this.range=this.set.map(r=>r.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(r){r=r.trim();let n=`parseRange:${Object.keys(this.options).join(",")}:${r}`,i=LE.get(n);if(i)return i;let o=this.options.loose,u=o?Pe[De.HYPHENRANGELOOSE]:Pe[De.HYPHENRANGE];r=r.replace(u,cU(this.options.includePrerelease)),ye("hyphen replace",r),r=r.replace(Pe[De.COMPARATORTRIM],K4),ye("comparator trim",r,Pe[De.COMPARATORTRIM]),r=r.replace(Pe[De.TILDETRIM],J4),r=r.replace(Pe[De.CARETTRIM],Q4),r=r.split(/\s+/).join(" ");let s=o?Pe[De.COMPARATORLOOSE]:Pe[De.COMPARATOR],c=r.split(" ").map(p=>eU(p,this.options)).join(" ").split(/\s+/).map(p=>aU(p,this.options)).filter(this.options.loose?p=>!!p.match(s):()=>!0).map(p=>new jv(p,this.options)),a=c.length,h=new Map;for(let p of c){if(NE(p))return[p];h.set(p.value,p)}h.size>1&&h.has("")&&h.delete("");let f=[...h.values()];return LE.set(n,f),f}intersects(r,t){if(!(r instanceof ai))throw new TypeError("a Range is required");return this.set.some(n=>kE(n,t)&&r.set.some(i=>kE(i,t)&&n.every(o=>i.every(u=>o.intersects(u,t)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new Y4(r,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(lU(this.set[t],r,this.options))return!0;return!1}};BE.exports=ai;var z4=ME(),LE=new z4({max:1e3}),X4=bu(),jv=wu(),ye=vu(),Y4=Ce(),{re:Pe,t:De,comparatorTrimReplace:K4,tildeTrimReplace:J4,caretTrimReplace:Q4}=sn(),NE=e=>e.value==="<0.0.0-0",Z4=e=>e.value==="",kE=(e,r)=>{let t=!0,n=e.slice(),i=n.pop();for(;t&&n.length;)t=n.every(o=>i.intersects(o,r)),i=n.pop();return t},eU=(e,r)=>(ye("comp",e,r),e=nU(e,r),ye("caret",e),e=rU(e,r),ye("tildes",e),e=oU(e,r),ye("xrange",e),e=sU(e,r),ye("stars",e),e),Le=e=>!e||e.toLowerCase()==="x"||e==="*",rU=(e,r)=>e.trim().split(/\s+/).map(t=>tU(t,r)).join(" "),tU=(e,r)=>{let t=r.loose?Pe[De.TILDELOOSE]:Pe[De.TILDE];return e.replace(t,(n,i,o,u,s)=>{ye("tilde",e,n,i,o,u,s);let c;return Le(i)?c="":Le(o)?c=`>=${i}.0.0 <${+i+1}.0.0-0`:Le(u)?c=`>=${i}.${o}.0 <${i}.${+o+1}.0-0`:s?(ye("replaceTilde pr",s),c=`>=${i}.${o}.${u}-${s} <${i}.${+o+1}.0-0`):c=`>=${i}.${o}.${u} <${i}.${+o+1}.0-0`,ye("tilde return",c),c})},nU=(e,r)=>e.trim().split(/\s+/).map(t=>iU(t,r)).join(" "),iU=(e,r)=>{ye("caret",e,r);let t=r.loose?Pe[De.CARETLOOSE]:Pe[De.CARET],n=r.includePrerelease?"-0":"";return e.replace(t,(i,o,u,s,c)=>{ye("caret",e,i,o,u,s,c);let a;return Le(o)?a="":Le(u)?a=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Le(s)?o==="0"?a=`>=${o}.${u}.0${n} <${o}.${+u+1}.0-0`:a=`>=${o}.${u}.0${n} <${+o+1}.0.0-0`:c?(ye("replaceCaret pr",c),o==="0"?u==="0"?a=`>=${o}.${u}.${s}-${c} <${o}.${u}.${+s+1}-0`:a=`>=${o}.${u}.${s}-${c} <${o}.${+u+1}.0-0`:a=`>=${o}.${u}.${s}-${c} <${+o+1}.0.0-0`):(ye("no pr"),o==="0"?u==="0"?a=`>=${o}.${u}.${s}${n} <${o}.${u}.${+s+1}-0`:a=`>=${o}.${u}.${s}${n} <${o}.${+u+1}.0-0`:a=`>=${o}.${u}.${s} <${+o+1}.0.0-0`),ye("caret return",a),a})},oU=(e,r)=>(ye("replaceXRanges",e,r),e.split(/\s+/).map(t=>uU(t,r)).join(" ")),uU=(e,r)=>{e=e.trim();let t=r.loose?Pe[De.XRANGELOOSE]:Pe[De.XRANGE];return e.replace(t,(n,i,o,u,s,c)=>{ye("xRange",e,n,i,o,u,s,c);let a=Le(o),h=a||Le(u),f=h||Le(s),p=f;return i==="="&&p&&(i=""),c=r.includePrerelease?"-0":"",a?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&p?(h&&(u=0),s=0,i===">"?(i=">=",h?(o=+o+1,u=0,s=0):(u=+u+1,s=0)):i==="<="&&(i="<",h?o=+o+1:u=+u+1),i==="<"&&(c="-0"),n=`${i+o}.${u}.${s}${c}`):h?n=`>=${o}.0.0${c} <${+o+1}.0.0-0`:f&&(n=`>=${o}.${u}.0${c} <${o}.${+u+1}.0-0`),ye("xRange return",n),n})},sU=(e,r)=>(ye("replaceStars",e,r),e.trim().replace(Pe[De.STAR],"")),aU=(e,r)=>(ye("replaceGTE0",e,r),e.trim().replace(Pe[r.includePrerelease?De.GTE0PRE:De.GTE0],"")),cU=e=>(r,t,n,i,o,u,s,c,a,h,f,p,v)=>(Le(n)?t="":Le(i)?t=`>=${n}.0.0${e?"-0":""}`:Le(o)?t=`>=${n}.${i}.0${e?"-0":""}`:u?t=`>=${t}`:t=`>=${t}${e?"-0":""}`,Le(a)?c="":Le(h)?c=`<${+a+1}.0.0-0`:Le(f)?c=`<${a}.${+h+1}.0-0`:p?c=`<=${a}.${h}.${f}-${p}`:e?c=`<${a}.${h}.${+f+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),lU=(e,r,t)=>{for(let n=0;n<e.length;n++)if(!e[n].test(r))return!1;if(r.prerelease.length&&!t.includePrerelease){for(let n=0;n<e.length;n++)if(ye(e[n].semver),e[n].semver!==jv.ANY&&e[n].semver.prerelease.length>0){let i=e[n].semver;if(i.major===r.major&&i.minor===r.minor&&i.patch===r.patch)return!0}return!1}return!0}});var wu=l((U3e,HE)=>{var Ou=Symbol("SemVer ANY"),Eu=class{static get ANY(){return Ou}constructor(r,t){if(t=fU(t),r instanceof Eu){if(r.loose===!!t.loose)return r;r=r.value}Iv("comparator",r,t),this.options=t,this.loose=!!t.loose,this.parse(r),this.semver===Ou?this.value="":this.value=this.operator+this.semver.version,Iv("comp",this)}parse(r){let t=this.options.loose?UE[WE.COMPARATORLOOSE]:UE[WE.COMPARATOR],n=r.match(t);if(!n)throw new TypeError(`Invalid comparator: ${r}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new $E(n[2],this.options.loose):this.semver=Ou}toString(){return this.value}test(r){if(Iv("Comparator.test",r,this.options.loose),this.semver===Ou||r===Ou)return!0;if(typeof r=="string")try{r=new $E(r,this.options)}catch{return!1}return Tv(r,this.operator,this.semver,this.options)}intersects(r,t){if(!(r instanceof Eu))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new VE(r.value,t).test(this.value);if(r.operator==="")return r.value===""?!0:new VE(this.value,t).test(r.semver);let n=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),o=this.semver.version===r.semver.version,u=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),s=Tv(this.semver,"<",r.semver,t)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),c=Tv(this.semver,">",r.semver,t)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return n||i||o&&u||s||c}};HE.exports=Eu;var fU=bu(),{re:UE,t:WE}=sn(),Tv=Av(),Iv=vu(),$E=Ce(),VE=er()});var Su=l((W3e,GE)=>{var hU=er(),pU=(e,r,t)=>{try{r=new hU(r,t)}catch{return!1}return r.test(e)};GE.exports=pU});var XE=l(($3e,zE)=>{var dU=er(),vU=(e,r)=>new dU(e,r).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));zE.exports=vU});var KE=l((V3e,YE)=>{var bU=Ce(),_U=er(),yU=(e,r,t)=>{let n=null,i=null,o=null;try{o=new _U(r,t)}catch{return null}return e.forEach(u=>{o.test(u)&&(!n||i.compare(u)===-1)&&(n=u,i=new bU(n,t))}),n};YE.exports=yU});var QE=l((H3e,JE)=>{var mU=Ce(),gU=er(),wU=(e,r,t)=>{let n=null,i=null,o=null;try{o=new gU(r,t)}catch{return null}return e.forEach(u=>{o.test(u)&&(!n||i.compare(u)===1)&&(n=u,i=new mU(n,t))}),n};JE.exports=wU});var rS=l((G3e,eS)=>{var Rv=Ce(),OU=er(),ZE=yu(),EU=(e,r)=>{e=new OU(e,r);let t=new Rv("0.0.0");if(e.test(t)||(t=new Rv("0.0.0-0"),e.test(t)))return t;t=null;for(let n=0;n<e.set.length;++n){let i=e.set[n],o=null;i.forEach(u=>{let s=new Rv(u.semver.version);switch(u.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!o||ZE(s,o))&&(o=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${u.operator}`)}}),o&&(!t||ZE(t,o))&&(t=o)}return t&&e.test(t)?t:null};eS.exports=EU});var nS=l((z3e,tS)=>{var SU=er(),DU=(e,r)=>{try{return new SU(e,r).range||"*"}catch{return null}};tS.exports=DU});var Oc=l((X3e,sS)=>{var qU=Ce(),uS=wu(),{ANY:xU}=uS,AU=er(),CU=Su(),iS=yu(),oS=bc(),PU=yc(),jU=_c(),TU=(e,r,t,n)=>{e=new qU(e,n),r=new AU(r,n);let i,o,u,s,c;switch(t){case">":i=iS,o=PU,u=oS,s=">",c=">=";break;case"<":i=oS,o=jU,u=iS,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(CU(e,r,n))return!1;for(let a=0;a<r.set.length;++a){let h=r.set[a],f=null,p=null;if(h.forEach(v=>{v.semver===xU&&(v=new uS(">=0.0.0")),f=f||v,p=p||v,i(v.semver,f.semver,n)?f=v:u(v.semver,p.semver,n)&&(p=v)}),f.operator===s||f.operator===c||(!p.operator||p.operator===s)&&o(e,p.semver))return!1;if(p.operator===c&&u(e,p.semver))return!1}return!0};sS.exports=TU});var cS=l((Y3e,aS)=>{var IU=Oc(),RU=(e,r,t)=>IU(e,r,">",t);aS.exports=RU});var fS=l((K3e,lS)=>{var FU=Oc(),MU=(e,r,t)=>FU(e,r,"<",t);lS.exports=MU});var dS=l((J3e,pS)=>{var hS=er(),LU=(e,r,t)=>(e=new hS(e,t),r=new hS(r,t),e.intersects(r));pS.exports=LU});var bS=l((Q3e,vS)=>{var NU=Su(),kU=Ze();vS.exports=(e,r,t)=>{let n=[],i=null,o=null,u=e.sort((h,f)=>kU(h,f,t));for(let h of u)NU(h,r,t)?(o=h,i||(i=h)):(o&&n.push([i,o]),o=null,i=null);i&&n.push([i,null]);let s=[];for(let[h,f]of n)h===f?s.push(h):!f&&h===u[0]?s.push("*"):f?h===u[0]?s.push(`<=${f}`):s.push(`${h} - ${f}`):s.push(`>=${h}`);let c=s.join(" || "),a=typeof r.raw=="string"?r.raw:String(r);return c.length<a.length?c:r}});var wS=l((Z3e,gS)=>{var _S=er(),Ec=wu(),{ANY:Fv}=Ec,Du=Su(),Mv=Ze(),BU=(e,r,t={})=>{if(e===r)return!0;e=new _S(e,t),r=new _S(r,t);let n=!1;e:for(let i of e.set){for(let o of r.set){let u=UU(i,o,t);if(n=n||u!==null,u)continue e}if(n)return!1}return!0},UU=(e,r,t)=>{if(e===r)return!0;if(e.length===1&&e[0].semver===Fv){if(r.length===1&&r[0].semver===Fv)return!0;t.includePrerelease?e=[new Ec(">=0.0.0-0")]:e=[new Ec(">=0.0.0")]}if(r.length===1&&r[0].semver===Fv){if(t.includePrerelease)return!0;r=[new Ec(">=0.0.0")]}let n=new Set,i,o;for(let v of e)v.operator===">"||v.operator===">="?i=yS(i,v,t):v.operator==="<"||v.operator==="<="?o=mS(o,v,t):n.add(v.semver);if(n.size>1)return null;let u;if(i&&o){if(u=Mv(i.semver,o.semver,t),u>0)return null;if(u===0&&(i.operator!==">="||o.operator!=="<="))return null}for(let v of n){if(i&&!Du(v,String(i),t)||o&&!Du(v,String(o),t))return null;for(let y of r)if(!Du(v,String(y),t))return!1;return!0}let s,c,a,h,f=o&&!t.includePrerelease&&o.semver.prerelease.length?o.semver:!1,p=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&o.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let v of r){if(h=h||v.operator===">"||v.operator===">=",a=a||v.operator==="<"||v.operator==="<=",i){if(p&&v.semver.prerelease&&v.semver.prerelease.length&&v.semver.major===p.major&&v.semver.minor===p.minor&&v.semver.patch===p.patch&&(p=!1),v.operator===">"||v.operator===">="){if(s=yS(i,v,t),s===v&&s!==i)return!1}else if(i.operator===">="&&!Du(i.semver,String(v),t))return!1}if(o){if(f&&v.semver.prerelease&&v.semver.prerelease.length&&v.semver.major===f.major&&v.semver.minor===f.minor&&v.semver.patch===f.patch&&(f=!1),v.operator==="<"||v.operator==="<="){if(c=mS(o,v,t),c===v&&c!==o)return!1}else if(o.operator==="<="&&!Du(o.semver,String(v),t))return!1}if(!v.operator&&(o||i)&&u!==0)return!1}return!(i&&a&&!o&&u!==0||o&&h&&!i&&u!==0||p||f)},yS=(e,r,t)=>{if(!e)return r;let n=Mv(e.semver,r.semver,t);return n>0?e:n<0||r.operator===">"&&e.operator===">="?r:e},mS=(e,r,t)=>{if(!e)return r;let n=Mv(e.semver,r.semver,t);return n<0?e:n>0||r.operator==="<"&&e.operator==="<="?r:e};gS.exports=BU});var Nv=l((eke,OS)=>{var Lv=sn();OS.exports={re:Lv.re,src:Lv.src,tokens:Lv.t,SEMVER_SPEC_VERSION:du().SEMVER_SPEC_VERSION,SemVer:Ce(),compareIdentifiers:fc().compareIdentifiers,rcompareIdentifiers:fc().rcompareIdentifiers,parse:an(),valid:$1(),clean:H1(),inc:z1(),diff:Z1(),major:rE(),minor:nE(),patch:oE(),prerelease:sE(),compare:Ze(),rcompare:cE(),compareLoose:fE(),compareBuild:vc(),sort:vE(),rsort:_E(),gt:yu(),lt:bc(),eq:dc(),neq:xv(),gte:_c(),lte:yc(),cmp:Av(),coerce:DE(),Comparator:wu(),Range:er(),satisfies:Su(),toComparators:XE(),maxSatisfying:KE(),minSatisfying:QE(),minVersion:rS(),validRange:nS(),outside:Oc(),gtr:cS(),ltr:fS(),intersects:dS(),simplifyRange:bS(),subset:wS()}});var je=l(Ke=>{"use strict";var WU=Ke&&Ke.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),$U=Ke&&Ke.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),VU=Ke&&Ke.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&WU(r,e,t);return $U(r,e),r},ES=Ke&&Ke.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.getCoreVersion=void 0;var SS=ES(require("path")),DS=ES(require("fs")),kv=VU(require("@serverless-devs/core")),HU=Nv(),qS=SS.default.join(kv.getRootHome(),"cache","core"),Bv=SS.default.join(qS,"package.json");function GU(){if(DS.default.existsSync(Bv)){var e=require("@serverless-devs/core/package.json").version,r=xS();return HU.gt(r,e)?require(qS):kv}return kv}function xS(){return DS.default.existsSync(Bv)?require(Bv).version:void 0}Ke.getCoreVersion=xS;Ke.default=GU()});var Wv=l(qu=>{"use strict";var zU=qu&&qu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qu,"__esModule",{value:!0});var XU=zU(je()),YU=XU.default.Logger,Uv=new YU("S-CLI");Uv.success=function(e){return Uv.log(e,"green")};qu.default=Uv});var Hv=l(We=>{"use strict";var KU=We&&We.__awaiter||function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(u){u(o)})}return new(t||(t=Promise))(function(o,u){function s(h){try{a(n.next(h))}catch(f){u(f)}}function c(h){try{a(n.throw(h))}catch(f){u(f)}}function a(h){h.done?o(h.value):i(h.value).then(s,c)}a((n=n.apply(e,r||[])).next())})},JU=We&&We.__generator||function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,u;return u={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function s(a){return function(h){return c([a,h])}}function c(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(h){a=[6,h],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},AS=We&&We.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(We,"__esModule",{value:!0});We.handlerProfileFile=We.getConfig=We.setConfig=void 0;var CS=AS(require("path")),Vv=AS(je()),mr=Vv.default.fse,Sc=Vv.default.jsyaml,$v=Vv.default.getRootHome;function QU(e){var r=jS();mr.writeFileSync(r,Sc.dump(e))}function PS(){var e=jS();if(!mr.existsSync(e))return{};try{var r=Sc.load(mr.readFileSync(e,"utf8"))||{};return r}catch(t){throw t}}function jS(){var e=CS.default.join($v(),"set-config.yml");return mr.existsSync(e)||mr.createFileSync(e),e}function ZU(e,r){var t=PS();t[e]=r,QU(t)}We.setConfig=ZU;function eW(e,r){var t=PS();return t[e]||r}We.getConfig=eW;function rW(e){return KU(this,void 0,void 0,function(){var r,t,n,i,o,u,s;return JU(this,function(c){switch(c.label){case 0:if(r=e.filePath||"set-config.yml",t=CS.default.join($v(),r),n=mr.existsSync(t),i={},n)return[3,5];o=$v(),c.label=1;case 1:return c.trys.push([1,2,,4]),mr.statSync(o),[3,4];case 2:return u=c.sent(),[4,mr.mkdirSync(o)];case 3:return c.sent(),[3,4];case 4:return[3,6];case 5:try{i=Sc.load(mr.readFileSync(t,"utf8"))||{}}catch(a){throw a}c.label=6;case 6:return e.read?[2,i]:(s=e.configKey||"",i[s]=e.data,[4,mr.writeFileSync(t,Sc.dump(i))]);case 7:return c.sent(),[2,i]}})})}We.handlerProfileFile=rW});var Dc=l((ike,tW)=>{tW.exports={name:"@serverless-devs/s",version:"2.0.103-beta.1",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 hn=l(M=>{"use strict";var nW=M&&M.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),iW=M&&M.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),oW=M&&M.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&nW(r,e,t);return iW(r,e),r},ci=M&&M.__awaiter||function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(u){u(o)})}return new(t||(t=Promise))(function(o,u){function s(h){try{a(n.next(h))}catch(f){u(f)}}function c(h){try{a(n.throw(h))}catch(f){u(f)}}function a(h){h.done?o(h.value):i(h.value).then(s,c)}a((n=n.apply(e,r||[])).next())})},li=M&&M.__generator||function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,u;return u={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function s(a){return function(h){return c([a,h])}}function c(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(h){a=[6,h],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},zv=M&&M.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(M,"__esModule",{value:!0});M.specifyServiceHelp=M.getTempCommandStr=M.emoji=M.mark=M.replaceTemplate=M.replaceFun=M.getLang=M.printn=M.getFolderSize=M.getVersion=M.getPid=M.aiRequest=M.getCredentialWithAll=M.getCredentialWithExisted=M.getProcessArgv=M.bgRed=M.yellow=M.red=void 0;var uW=zv(require("path")),xu=zv(require("fs")),sW=zv(require("os")),Te=oW(je()),aW=Hv(),TS=Dc(),fi=Te.default.colors,cW=Te.default.got,lW=Te.default.getMAC,fW=Te.default.isDocker,hW=Te.default.isCiCdEnv,rt=Te.default.lodash,IS=Te.default.publishHelp,pW=rt.get,dW=rt.trim,vW=rt.assign,bW=rt.filter,RS=rt.includes,_W=rt.omit,yW=rt.isPlainObject,mW=rt.isEmpty,gW=fi.underline,wW=fi.bold;M.red=fi.hex("#fd5750");M.yellow=fi.hex("#F3F99D");M.bgRed=fi.hex("#000").bgHex("#fd5750");var OW=function(){var e=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(e),t=Te.default.getGlobalArgs(r);return process.argv=process.argv.slice(0,2).concat(t._argsObj),vW({},t,{noHelpArgv:process.argv.slice(0,2).concat(bW(t._argsObj,function(n){return!RS(["-h","--help"],n)}))})}catch{return{}}};M.getProcessArgv=OW;var EW=function(e){return ci(void 0,void 0,void 0,function(){var r,t;return li(this,function(n){switch(n.label){case 0:return[4,Te.default.getCredentialAliasList()];case 1:return r=n.sent(),RS(r,e)?[4,Te.default.getCredential(e)]:[3,3];case 2:return t=n.sent(),[2,t];case 3:return[2]}})})};M.getCredentialWithExisted=EW;var SW=function(){return ci(void 0,void 0,void 0,function(){var e,r,t,n,i,o;return li(this,function(u){switch(u.label){case 0:return[4,Te.default.getCredentialAliasList()];case 1:if(e=u.sent(),!(e.length>0))return[3,6];r={},t=0,n=e,u.label=2;case 2:return t<n.length?(i=n[t],[4,Te.default.getCredential(i)]):[3,5];case 3:o=u.sent(),r[o.Alias]=_W(o,"Alias"),u.label=4;case 4:return t++,[3,2];case 5:return[2,r];case 6:return[2]}})})};M.getCredentialWithAll=SW;var DW=function(e,r){return r===void 0&&(r="unknow"),ci(void 0,void 0,void 0,function(){var t,n,i,o;return li(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),t=(0,aW.getConfig)("analysis"),t!=="enable"?[2]:fW()||hW()?[2]:[4,cW("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(e),{timeout:2e3,json:!0})];case 1:return n=u.sent(),i=pW(n.body,"shorturl"),i&&console.log(`AI Tips:
|
|
15
|
+
`)}function g1(e,r,t){return e.match(/[\n]\s+/)||r<40?e:S1(e,r,t)}function w1(e,r){e._hasHelpOption&&r.find(n=>n===e._helpLongFlag||n===e._helpShortFlag)&&(e.outputHelp(),e._exit(0,"commander.helpDisplayed","(outputHelp)"))}function O1(e){let r=e.name+(e.variadic===!0?"...":"");return e.required?"<"+r+">":"["+r+"]"}function D1(e){let r,t,n=e.split(/[ |,]+/);return n.length>1&&!/^[[<]/.test(n[1])&&(r=n.shift()),t=n.shift(),!r&&/^-[^-]$/.test(t)&&(r=t,t=void 0),{shortFlag:r,longFlag:t}}function E1(e){return e.map(r=>{if(!r.startsWith("--inspect"))return r;let t,n="127.0.0.1",i="9229",o;return(o=r.match(/^(--inspect(-brk)?)$/))!==null?t=o[1]:(o=r.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=o[1],/^\d+$/.test(o[3])?i=o[3]:n=o[3]):(o=r.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=o[1],n=o[3],i=o[4]),t&&i!=="0"?`${t}=${n}:${parseInt(i)+1}`:r})}});var du=l((c3e,x1)=>{var F6="2.0.0",M6=Number.MAX_SAFE_INTEGER||9007199254740991,L6=16;x1.exports={SEMVER_SPEC_VERSION:F6,MAX_LENGTH:256,MAX_SAFE_INTEGER:M6,MAX_SAFE_COMPONENT_LENGTH:L6}});var vu=l((l3e,A1)=>{var N6=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};A1.exports=N6});var sn=l((et,C1)=>{var{MAX_SAFE_COMPONENT_LENGTH:qv}=du(),k6=vu();et=C1.exports={};var B6=et.re=[],P=et.src=[],j=et.t={},U6=0,W=(e,r,t)=>{let n=U6++;k6(n,r),j[e]=n,P[n]=r,B6[n]=new RegExp(r,t?"g":void 0)};W("NUMERICIDENTIFIER","0|[1-9]\\d*");W("NUMERICIDENTIFIERLOOSE","[0-9]+");W("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");W("MAINVERSION",`(${P[j.NUMERICIDENTIFIER]})\\.(${P[j.NUMERICIDENTIFIER]})\\.(${P[j.NUMERICIDENTIFIER]})`);W("MAINVERSIONLOOSE",`(${P[j.NUMERICIDENTIFIERLOOSE]})\\.(${P[j.NUMERICIDENTIFIERLOOSE]})\\.(${P[j.NUMERICIDENTIFIERLOOSE]})`);W("PRERELEASEIDENTIFIER",`(?:${P[j.NUMERICIDENTIFIER]}|${P[j.NONNUMERICIDENTIFIER]})`);W("PRERELEASEIDENTIFIERLOOSE",`(?:${P[j.NUMERICIDENTIFIERLOOSE]}|${P[j.NONNUMERICIDENTIFIER]})`);W("PRERELEASE",`(?:-(${P[j.PRERELEASEIDENTIFIER]}(?:\\.${P[j.PRERELEASEIDENTIFIER]})*))`);W("PRERELEASELOOSE",`(?:-?(${P[j.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${P[j.PRERELEASEIDENTIFIERLOOSE]})*))`);W("BUILDIDENTIFIER","[0-9A-Za-z-]+");W("BUILD",`(?:\\+(${P[j.BUILDIDENTIFIER]}(?:\\.${P[j.BUILDIDENTIFIER]})*))`);W("FULLPLAIN",`v?${P[j.MAINVERSION]}${P[j.PRERELEASE]}?${P[j.BUILD]}?`);W("FULL",`^${P[j.FULLPLAIN]}$`);W("LOOSEPLAIN",`[v=\\s]*${P[j.MAINVERSIONLOOSE]}${P[j.PRERELEASELOOSE]}?${P[j.BUILD]}?`);W("LOOSE",`^${P[j.LOOSEPLAIN]}$`);W("GTLT","((?:<|>)?=?)");W("XRANGEIDENTIFIERLOOSE",`${P[j.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);W("XRANGEIDENTIFIER",`${P[j.NUMERICIDENTIFIER]}|x|X|\\*`);W("XRANGEPLAIN",`[v=\\s]*(${P[j.XRANGEIDENTIFIER]})(?:\\.(${P[j.XRANGEIDENTIFIER]})(?:\\.(${P[j.XRANGEIDENTIFIER]})(?:${P[j.PRERELEASE]})?${P[j.BUILD]}?)?)?`);W("XRANGEPLAINLOOSE",`[v=\\s]*(${P[j.XRANGEIDENTIFIERLOOSE]})(?:\\.(${P[j.XRANGEIDENTIFIERLOOSE]})(?:\\.(${P[j.XRANGEIDENTIFIERLOOSE]})(?:${P[j.PRERELEASELOOSE]})?${P[j.BUILD]}?)?)?`);W("XRANGE",`^${P[j.GTLT]}\\s*${P[j.XRANGEPLAIN]}$`);W("XRANGELOOSE",`^${P[j.GTLT]}\\s*${P[j.XRANGEPLAINLOOSE]}$`);W("COERCE",`(^|[^\\d])(\\d{1,${qv}})(?:\\.(\\d{1,${qv}}))?(?:\\.(\\d{1,${qv}}))?(?:$|[^\\d])`);W("COERCERTL",P[j.COERCE],!0);W("LONETILDE","(?:~>?)");W("TILDETRIM",`(\\s*)${P[j.LONETILDE]}\\s+`,!0);et.tildeTrimReplace="$1~";W("TILDE",`^${P[j.LONETILDE]}${P[j.XRANGEPLAIN]}$`);W("TILDELOOSE",`^${P[j.LONETILDE]}${P[j.XRANGEPLAINLOOSE]}$`);W("LONECARET","(?:\\^)");W("CARETTRIM",`(\\s*)${P[j.LONECARET]}\\s+`,!0);et.caretTrimReplace="$1^";W("CARET",`^${P[j.LONECARET]}${P[j.XRANGEPLAIN]}$`);W("CARETLOOSE",`^${P[j.LONECARET]}${P[j.XRANGEPLAINLOOSE]}$`);W("COMPARATORLOOSE",`^${P[j.GTLT]}\\s*(${P[j.LOOSEPLAIN]})$|^$`);W("COMPARATOR",`^${P[j.GTLT]}\\s*(${P[j.FULLPLAIN]})$|^$`);W("COMPARATORTRIM",`(\\s*)${P[j.GTLT]}\\s*(${P[j.LOOSEPLAIN]}|${P[j.XRANGEPLAIN]})`,!0);et.comparatorTrimReplace="$1$2$3";W("HYPHENRANGE",`^\\s*(${P[j.XRANGEPLAIN]})\\s+-\\s+(${P[j.XRANGEPLAIN]})\\s*$`);W("HYPHENRANGELOOSE",`^\\s*(${P[j.XRANGEPLAINLOOSE]})\\s+-\\s+(${P[j.XRANGEPLAINLOOSE]})\\s*$`);W("STAR","(<|>)?=?\\s*\\*");W("GTE0","^\\s*>=\\s*0.0.0\\s*$");W("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var bu=l((f3e,P1)=>{var W6=["includePrerelease","loose","rtl"],$6=e=>e?typeof e!="object"?{loose:!0}:W6.filter(r=>e[r]).reduce((r,t)=>(r[t]=!0,r),{}):{};P1.exports=$6});var fc=l((h3e,I1)=>{var j1=/^[0-9]+$/,T1=(e,r)=>{let t=j1.test(e),n=j1.test(r);return t&&n&&(e=+e,r=+r),e===r?0:t&&!n?-1:n&&!t?1:e<r?-1:1},V6=(e,r)=>T1(r,e);I1.exports={compareIdentifiers:T1,rcompareIdentifiers:V6}});var Ce=l((p3e,L1)=>{var hc=vu(),{MAX_LENGTH:R1,MAX_SAFE_INTEGER:pc}=du(),{re:F1,t:M1}=sn(),H6=bu(),{compareIdentifiers:_u}=fc(),Qe=class{constructor(r,t){if(t=H6(t),r instanceof Qe){if(r.loose===!!t.loose&&r.includePrerelease===!!t.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>R1)throw new TypeError(`version is longer than ${R1} characters`);hc("SemVer",r,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=r.trim().match(t.loose?F1[M1.LOOSE]:F1[M1.FULL]);if(!n)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>pc||this.major<0)throw new TypeError("Invalid major version");if(this.minor>pc||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>pc||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let o=+i;if(o>=0&&o<pc)return o}return i}):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(r){if(hc("SemVer.compare",this.version,this.options,r),!(r instanceof Qe)){if(typeof r=="string"&&r===this.version)return 0;r=new Qe(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof Qe||(r=new Qe(r,this.options)),_u(this.major,r.major)||_u(this.minor,r.minor)||_u(this.patch,r.patch)}comparePre(r){if(r instanceof Qe||(r=new Qe(r,this.options)),this.prerelease.length&&!r.prerelease.length)return-1;if(!this.prerelease.length&&r.prerelease.length)return 1;if(!this.prerelease.length&&!r.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],i=r.prerelease[t];if(hc("prerelease compare",t,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return _u(n,i)}while(++t)}compareBuild(r){r instanceof Qe||(r=new Qe(r,this.options));let t=0;do{let n=this.build[t],i=r.build[t];if(hc("prerelease compare",t,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return _u(n,i)}while(++t)}inc(r,t){switch(r){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: ${r}`)}return this.format(),this.raw=this.version,this}};L1.exports=Qe});var an=l((d3e,U1)=>{var{MAX_LENGTH:G6}=du(),{re:N1,t:k1}=sn(),B1=Ce(),z6=bu(),X6=(e,r)=>{if(r=z6(r),e instanceof B1)return e;if(typeof e!="string"||e.length>G6||!(r.loose?N1[k1.LOOSE]:N1[k1.FULL]).test(e))return null;try{return new B1(e,r)}catch{return null}};U1.exports=X6});var $1=l((v3e,W1)=>{var Y6=an(),K6=(e,r)=>{let t=Y6(e,r);return t?t.version:null};W1.exports=K6});var H1=l((b3e,V1)=>{var J6=an(),Q6=(e,r)=>{let t=J6(e.trim().replace(/^[=v]+/,""),r);return t?t.version:null};V1.exports=Q6});var z1=l((_3e,G1)=>{var Z6=Ce(),e4=(e,r,t,n)=>{typeof t=="string"&&(n=t,t=void 0);try{return new Z6(e,t).inc(r,n).version}catch{return null}};G1.exports=e4});var Ze=l((y3e,Y1)=>{var X1=Ce(),r4=(e,r,t)=>new X1(e,t).compare(new X1(r,t));Y1.exports=r4});var dc=l((m3e,K1)=>{var t4=Ze(),n4=(e,r,t)=>t4(e,r,t)===0;K1.exports=n4});var Z1=l((g3e,Q1)=>{var J1=an(),i4=dc(),o4=(e,r)=>{if(i4(e,r))return null;{let t=J1(e),n=J1(r),i=t.prerelease.length||n.prerelease.length,o=i?"pre":"",u=i?"prerelease":"";for(let s in t)if((s==="major"||s==="minor"||s==="patch")&&t[s]!==n[s])return o+s;return u}};Q1.exports=o4});var rE=l((w3e,eE)=>{var u4=Ce(),s4=(e,r)=>new u4(e,r).major;eE.exports=s4});var nE=l((O3e,tE)=>{var a4=Ce(),c4=(e,r)=>new a4(e,r).minor;tE.exports=c4});var oE=l((E3e,iE)=>{var l4=Ce(),f4=(e,r)=>new l4(e,r).patch;iE.exports=f4});var sE=l((S3e,uE)=>{var h4=an(),p4=(e,r)=>{let t=h4(e,r);return t&&t.prerelease.length?t.prerelease:null};uE.exports=p4});var cE=l((D3e,aE)=>{var d4=Ze(),v4=(e,r,t)=>d4(r,e,t);aE.exports=v4});var fE=l((q3e,lE)=>{var b4=Ze(),_4=(e,r)=>b4(e,r,!0);lE.exports=_4});var vc=l((x3e,pE)=>{var hE=Ce(),y4=(e,r,t)=>{let n=new hE(e,t),i=new hE(r,t);return n.compare(i)||n.compareBuild(i)};pE.exports=y4});var vE=l((A3e,dE)=>{var m4=vc(),g4=(e,r)=>e.sort((t,n)=>m4(t,n,r));dE.exports=g4});var _E=l((C3e,bE)=>{var w4=vc(),O4=(e,r)=>e.sort((t,n)=>w4(n,t,r));bE.exports=O4});var yu=l((P3e,yE)=>{var E4=Ze(),S4=(e,r,t)=>E4(e,r,t)>0;yE.exports=S4});var bc=l((j3e,mE)=>{var D4=Ze(),q4=(e,r,t)=>D4(e,r,t)<0;mE.exports=q4});var xv=l((T3e,gE)=>{var x4=Ze(),A4=(e,r,t)=>x4(e,r,t)!==0;gE.exports=A4});var _c=l((I3e,wE)=>{var C4=Ze(),P4=(e,r,t)=>C4(e,r,t)>=0;wE.exports=P4});var yc=l((R3e,OE)=>{var j4=Ze(),T4=(e,r,t)=>j4(e,r,t)<=0;OE.exports=T4});var Av=l((F3e,EE)=>{var I4=dc(),R4=xv(),F4=yu(),M4=_c(),L4=bc(),N4=yc(),k4=(e,r,t,n)=>{switch(r){case"===":return typeof e=="object"&&(e=e.version),typeof t=="object"&&(t=t.version),e===t;case"!==":return typeof e=="object"&&(e=e.version),typeof t=="object"&&(t=t.version),e!==t;case"":case"=":case"==":return I4(e,t,n);case"!=":return R4(e,t,n);case">":return F4(e,t,n);case">=":return M4(e,t,n);case"<":return L4(e,t,n);case"<=":return N4(e,t,n);default:throw new TypeError(`Invalid operator: ${r}`)}};EE.exports=k4});var DE=l((M3e,SE)=>{var B4=Ce(),U4=an(),{re:mc,t:gc}=sn(),W4=(e,r)=>{if(e instanceof B4)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;r=r||{};let t=null;if(!r.rtl)t=e.match(mc[gc.COERCE]);else{let n;for(;(n=mc[gc.COERCERTL].exec(e))&&(!t||t.index+t[0].length!==e.length);)(!t||n.index+n[0].length!==t.index+t[0].length)&&(t=n),mc[gc.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;mc[gc.COERCERTL].lastIndex=-1}return t===null?null:U4(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,r)};SE.exports=W4});var xE=l((L3e,qE)=>{"use strict";qE.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var CE=l((N3e,AE)=>{"use strict";AE.exports=Z;Z.Node=cn;Z.create=Z;function Z(e){var r=this;if(r instanceof Z||(r=new Z),r.tail=null,r.head=null,r.length=0,e&&typeof e.forEach=="function")e.forEach(function(i){r.push(i)});else if(arguments.length>0)for(var t=0,n=arguments.length;t<n;t++)r.push(arguments[t]);return r}Z.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var r=e.next,t=e.prev;return r&&(r.prev=t),t&&(t.next=r),e===this.head&&(this.head=r),e===this.tail&&(this.tail=t),e.list.length--,e.next=null,e.prev=null,e.list=null,r};Z.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var r=this.head;e.list=this,e.next=r,r&&(r.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};Z.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var r=this.tail;e.list=this,e.prev=r,r&&(r.next=e),this.tail=e,this.head||(this.head=e),this.length++}};Z.prototype.push=function(){for(var e=0,r=arguments.length;e<r;e++)V4(this,arguments[e]);return this.length};Z.prototype.unshift=function(){for(var e=0,r=arguments.length;e<r;e++)H4(this,arguments[e]);return this.length};Z.prototype.pop=function(){if(!!this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};Z.prototype.shift=function(){if(!!this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};Z.prototype.forEach=function(e,r){r=r||this;for(var t=this.head,n=0;t!==null;n++)e.call(r,t.value,n,this),t=t.next};Z.prototype.forEachReverse=function(e,r){r=r||this;for(var t=this.tail,n=this.length-1;t!==null;n--)e.call(r,t.value,n,this),t=t.prev};Z.prototype.get=function(e){for(var r=0,t=this.head;t!==null&&r<e;r++)t=t.next;if(r===e&&t!==null)return t.value};Z.prototype.getReverse=function(e){for(var r=0,t=this.tail;t!==null&&r<e;r++)t=t.prev;if(r===e&&t!==null)return t.value};Z.prototype.map=function(e,r){r=r||this;for(var t=new Z,n=this.head;n!==null;)t.push(e.call(r,n.value,this)),n=n.next;return t};Z.prototype.mapReverse=function(e,r){r=r||this;for(var t=new Z,n=this.tail;n!==null;)t.push(e.call(r,n.value,this)),n=n.prev;return t};Z.prototype.reduce=function(e,r){var t,n=this.head;if(arguments.length>1)t=r;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 i=0;n!==null;i++)t=e(t,n.value,i),n=n.next;return t};Z.prototype.reduceReverse=function(e,r){var t,n=this.tail;if(arguments.length>1)t=r;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 i=this.length-1;n!==null;i--)t=e(t,n.value,i),n=n.prev;return t};Z.prototype.toArray=function(){for(var e=new Array(this.length),r=0,t=this.head;t!==null;r++)e[r]=t.value,t=t.next;return e};Z.prototype.toArrayReverse=function(){for(var e=new Array(this.length),r=0,t=this.tail;t!==null;r++)e[r]=t.value,t=t.prev;return e};Z.prototype.slice=function(e,r){r=r||this.length,r<0&&(r+=this.length),e=e||0,e<0&&(e+=this.length);var t=new Z;if(r<e||r<0)return t;e<0&&(e=0),r>this.length&&(r=this.length);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(;i!==null&&n<r;n++,i=i.next)t.push(i.value);return t};Z.prototype.sliceReverse=function(e,r){r=r||this.length,r<0&&(r+=this.length),e=e||0,e<0&&(e+=this.length);var t=new Z;if(r<e||r<0)return t;e<0&&(e=0),r>this.length&&(r=this.length);for(var n=this.length,i=this.tail;i!==null&&n>r;n--)i=i.prev;for(;i!==null&&n>e;n--,i=i.prev)t.push(i.value);return t};Z.prototype.splice=function(e,r,...t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,i=this.head;i!==null&&n<e;n++)i=i.next;for(var o=[],n=0;i&&n<r;n++)o.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<t.length;n++)i=$4(this,i,t[n]);return o};Z.prototype.reverse=function(){for(var e=this.head,r=this.tail,t=e;t!==null;t=t.prev){var n=t.prev;t.prev=t.next,t.next=n}return this.head=r,this.tail=e,this};function $4(e,r,t){var n=r===e.head?new cn(t,null,r,e):new cn(t,r,r.next,e);return n.next===null&&(e.tail=n),n.prev===null&&(e.head=n),e.length++,n}function V4(e,r){e.tail=new cn(r,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function H4(e,r){e.head=new cn(r,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function cn(e,r,t,n){if(!(this instanceof cn))return new cn(e,r,t,n);this.list=n,this.value=e,r?(r.next=this,this.prev=r):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{xE()(Z)}catch{}});var ME=l((k3e,FE)=>{"use strict";var G4=CE(),ln=Symbol("max"),Fr=Symbol("length"),ui=Symbol("lengthCalculator"),gu=Symbol("allowStale"),fn=Symbol("maxAge"),Rr=Symbol("dispose"),PE=Symbol("noDisposeOnSet"),we=Symbol("lruList"),cr=Symbol("cache"),TE=Symbol("updateAgeOnGet"),Cv=()=>1,IE=class{constructor(r){if(typeof r=="number"&&(r={max:r}),r||(r={}),r.max&&(typeof r.max!="number"||r.max<0))throw new TypeError("max must be a non-negative number");let t=this[ln]=r.max||1/0,n=r.length||Cv;if(this[ui]=typeof n!="function"?Cv:n,this[gu]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[fn]=r.maxAge||0,this[Rr]=r.dispose,this[PE]=r.noDisposeOnSet||!1,this[TE]=r.updateAgeOnGet||!1,this.reset()}set max(r){if(typeof r!="number"||r<0)throw new TypeError("max must be a non-negative number");this[ln]=r||1/0,mu(this)}get max(){return this[ln]}set allowStale(r){this[gu]=!!r}get allowStale(){return this[gu]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[fn]=r,mu(this)}get maxAge(){return this[fn]}set lengthCalculator(r){typeof r!="function"&&(r=Cv),r!==this[ui]&&(this[ui]=r,this[Fr]=0,this[we].forEach(t=>{t.length=this[ui](t.value,t.key),this[Fr]+=t.length})),mu(this)}get lengthCalculator(){return this[ui]}get length(){return this[Fr]}get itemCount(){return this[we].length}rforEach(r,t){t=t||this;for(let n=this[we].tail;n!==null;){let i=n.prev;jE(this,r,n,t),n=i}}forEach(r,t){t=t||this;for(let n=this[we].head;n!==null;){let i=n.next;jE(this,r,n,t),n=i}}keys(){return this[we].toArray().map(r=>r.key)}values(){return this[we].toArray().map(r=>r.value)}reset(){this[Rr]&&this[we]&&this[we].length&&this[we].forEach(r=>this[Rr](r.key,r.value)),this[cr]=new Map,this[we]=new G4,this[Fr]=0}dump(){return this[we].map(r=>wc(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[we]}set(r,t,n){if(n=n||this[fn],n&&typeof n!="number")throw new TypeError("maxAge must be a number");let i=n?Date.now():0,o=this[ui](t,r);if(this[cr].has(r)){if(o>this[ln])return si(this,this[cr].get(r)),!1;let c=this[cr].get(r).value;return this[Rr]&&(this[PE]||this[Rr](r,c.value)),c.now=i,c.maxAge=n,c.value=t,this[Fr]+=o-c.length,c.length=o,this.get(r),mu(this),!0}let u=new RE(r,t,o,i,n);return u.length>this[ln]?(this[Rr]&&this[Rr](r,t),!1):(this[Fr]+=u.length,this[we].unshift(u),this[cr].set(r,this[we].head),mu(this),!0)}has(r){if(!this[cr].has(r))return!1;let t=this[cr].get(r).value;return!wc(this,t)}get(r){return Pv(this,r,!0)}peek(r){return Pv(this,r,!1)}pop(){let r=this[we].tail;return r?(si(this,r),r.value):null}del(r){si(this,this[cr].get(r))}load(r){this.reset();let t=Date.now();for(let n=r.length-1;n>=0;n--){let i=r[n],o=i.e||0;if(o===0)this.set(i.k,i.v);else{let u=o-t;u>0&&this.set(i.k,i.v,u)}}}prune(){this[cr].forEach((r,t)=>Pv(this,t,!1))}},Pv=(e,r,t)=>{let n=e[cr].get(r);if(n){let i=n.value;if(wc(e,i)){if(si(e,n),!e[gu])return}else t&&(e[TE]&&(n.value.now=Date.now()),e[we].unshiftNode(n));return i.value}},wc=(e,r)=>{if(!r||!r.maxAge&&!e[fn])return!1;let t=Date.now()-r.now;return r.maxAge?t>r.maxAge:e[fn]&&t>e[fn]},mu=e=>{if(e[Fr]>e[ln])for(let r=e[we].tail;e[Fr]>e[ln]&&r!==null;){let t=r.prev;si(e,r),r=t}},si=(e,r)=>{if(r){let t=r.value;e[Rr]&&e[Rr](t.key,t.value),e[Fr]-=t.length,e[cr].delete(t.key),e[we].removeNode(r)}},RE=class{constructor(r,t,n,i,o){this.key=r,this.value=t,this.length=n,this.now=i,this.maxAge=o||0}},jE=(e,r,t,n)=>{let i=t.value;wc(e,i)&&(si(e,t),e[gu]||(i=void 0)),i&&r.call(n,i.value,i.key,e)};FE.exports=IE});var er=l((B3e,BE)=>{var ai=class{constructor(r,t){if(t=X4(t),r instanceof ai)return r.loose===!!t.loose&&r.includePrerelease===!!t.includePrerelease?r:new ai(r.raw,t);if(r instanceof jv)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=r,this.set=r.split(/\s*\|\|\s*/).map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!NE(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&Z4(i[0])){this.set=[i];break}}}this.format()}format(){return this.range=this.set.map(r=>r.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(r){r=r.trim();let n=`parseRange:${Object.keys(this.options).join(",")}:${r}`,i=LE.get(n);if(i)return i;let o=this.options.loose,u=o?Pe[De.HYPHENRANGELOOSE]:Pe[De.HYPHENRANGE];r=r.replace(u,cU(this.options.includePrerelease)),ye("hyphen replace",r),r=r.replace(Pe[De.COMPARATORTRIM],K4),ye("comparator trim",r,Pe[De.COMPARATORTRIM]),r=r.replace(Pe[De.TILDETRIM],J4),r=r.replace(Pe[De.CARETTRIM],Q4),r=r.split(/\s+/).join(" ");let s=o?Pe[De.COMPARATORLOOSE]:Pe[De.COMPARATOR],c=r.split(" ").map(p=>eU(p,this.options)).join(" ").split(/\s+/).map(p=>aU(p,this.options)).filter(this.options.loose?p=>!!p.match(s):()=>!0).map(p=>new jv(p,this.options)),a=c.length,h=new Map;for(let p of c){if(NE(p))return[p];h.set(p.value,p)}h.size>1&&h.has("")&&h.delete("");let f=[...h.values()];return LE.set(n,f),f}intersects(r,t){if(!(r instanceof ai))throw new TypeError("a Range is required");return this.set.some(n=>kE(n,t)&&r.set.some(i=>kE(i,t)&&n.every(o=>i.every(u=>o.intersects(u,t)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new Y4(r,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(lU(this.set[t],r,this.options))return!0;return!1}};BE.exports=ai;var z4=ME(),LE=new z4({max:1e3}),X4=bu(),jv=wu(),ye=vu(),Y4=Ce(),{re:Pe,t:De,comparatorTrimReplace:K4,tildeTrimReplace:J4,caretTrimReplace:Q4}=sn(),NE=e=>e.value==="<0.0.0-0",Z4=e=>e.value==="",kE=(e,r)=>{let t=!0,n=e.slice(),i=n.pop();for(;t&&n.length;)t=n.every(o=>i.intersects(o,r)),i=n.pop();return t},eU=(e,r)=>(ye("comp",e,r),e=nU(e,r),ye("caret",e),e=rU(e,r),ye("tildes",e),e=oU(e,r),ye("xrange",e),e=sU(e,r),ye("stars",e),e),Le=e=>!e||e.toLowerCase()==="x"||e==="*",rU=(e,r)=>e.trim().split(/\s+/).map(t=>tU(t,r)).join(" "),tU=(e,r)=>{let t=r.loose?Pe[De.TILDELOOSE]:Pe[De.TILDE];return e.replace(t,(n,i,o,u,s)=>{ye("tilde",e,n,i,o,u,s);let c;return Le(i)?c="":Le(o)?c=`>=${i}.0.0 <${+i+1}.0.0-0`:Le(u)?c=`>=${i}.${o}.0 <${i}.${+o+1}.0-0`:s?(ye("replaceTilde pr",s),c=`>=${i}.${o}.${u}-${s} <${i}.${+o+1}.0-0`):c=`>=${i}.${o}.${u} <${i}.${+o+1}.0-0`,ye("tilde return",c),c})},nU=(e,r)=>e.trim().split(/\s+/).map(t=>iU(t,r)).join(" "),iU=(e,r)=>{ye("caret",e,r);let t=r.loose?Pe[De.CARETLOOSE]:Pe[De.CARET],n=r.includePrerelease?"-0":"";return e.replace(t,(i,o,u,s,c)=>{ye("caret",e,i,o,u,s,c);let a;return Le(o)?a="":Le(u)?a=`>=${o}.0.0${n} <${+o+1}.0.0-0`:Le(s)?o==="0"?a=`>=${o}.${u}.0${n} <${o}.${+u+1}.0-0`:a=`>=${o}.${u}.0${n} <${+o+1}.0.0-0`:c?(ye("replaceCaret pr",c),o==="0"?u==="0"?a=`>=${o}.${u}.${s}-${c} <${o}.${u}.${+s+1}-0`:a=`>=${o}.${u}.${s}-${c} <${o}.${+u+1}.0-0`:a=`>=${o}.${u}.${s}-${c} <${+o+1}.0.0-0`):(ye("no pr"),o==="0"?u==="0"?a=`>=${o}.${u}.${s}${n} <${o}.${u}.${+s+1}-0`:a=`>=${o}.${u}.${s}${n} <${o}.${+u+1}.0-0`:a=`>=${o}.${u}.${s} <${+o+1}.0.0-0`),ye("caret return",a),a})},oU=(e,r)=>(ye("replaceXRanges",e,r),e.split(/\s+/).map(t=>uU(t,r)).join(" ")),uU=(e,r)=>{e=e.trim();let t=r.loose?Pe[De.XRANGELOOSE]:Pe[De.XRANGE];return e.replace(t,(n,i,o,u,s,c)=>{ye("xRange",e,n,i,o,u,s,c);let a=Le(o),h=a||Le(u),f=h||Le(s),p=f;return i==="="&&p&&(i=""),c=r.includePrerelease?"-0":"",a?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&p?(h&&(u=0),s=0,i===">"?(i=">=",h?(o=+o+1,u=0,s=0):(u=+u+1,s=0)):i==="<="&&(i="<",h?o=+o+1:u=+u+1),i==="<"&&(c="-0"),n=`${i+o}.${u}.${s}${c}`):h?n=`>=${o}.0.0${c} <${+o+1}.0.0-0`:f&&(n=`>=${o}.${u}.0${c} <${o}.${+u+1}.0-0`),ye("xRange return",n),n})},sU=(e,r)=>(ye("replaceStars",e,r),e.trim().replace(Pe[De.STAR],"")),aU=(e,r)=>(ye("replaceGTE0",e,r),e.trim().replace(Pe[r.includePrerelease?De.GTE0PRE:De.GTE0],"")),cU=e=>(r,t,n,i,o,u,s,c,a,h,f,p,v)=>(Le(n)?t="":Le(i)?t=`>=${n}.0.0${e?"-0":""}`:Le(o)?t=`>=${n}.${i}.0${e?"-0":""}`:u?t=`>=${t}`:t=`>=${t}${e?"-0":""}`,Le(a)?c="":Le(h)?c=`<${+a+1}.0.0-0`:Le(f)?c=`<${a}.${+h+1}.0-0`:p?c=`<=${a}.${h}.${f}-${p}`:e?c=`<${a}.${h}.${+f+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),lU=(e,r,t)=>{for(let n=0;n<e.length;n++)if(!e[n].test(r))return!1;if(r.prerelease.length&&!t.includePrerelease){for(let n=0;n<e.length;n++)if(ye(e[n].semver),e[n].semver!==jv.ANY&&e[n].semver.prerelease.length>0){let i=e[n].semver;if(i.major===r.major&&i.minor===r.minor&&i.patch===r.patch)return!0}return!1}return!0}});var wu=l((U3e,HE)=>{var Ou=Symbol("SemVer ANY"),Eu=class{static get ANY(){return Ou}constructor(r,t){if(t=fU(t),r instanceof Eu){if(r.loose===!!t.loose)return r;r=r.value}Iv("comparator",r,t),this.options=t,this.loose=!!t.loose,this.parse(r),this.semver===Ou?this.value="":this.value=this.operator+this.semver.version,Iv("comp",this)}parse(r){let t=this.options.loose?UE[WE.COMPARATORLOOSE]:UE[WE.COMPARATOR],n=r.match(t);if(!n)throw new TypeError(`Invalid comparator: ${r}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new $E(n[2],this.options.loose):this.semver=Ou}toString(){return this.value}test(r){if(Iv("Comparator.test",r,this.options.loose),this.semver===Ou||r===Ou)return!0;if(typeof r=="string")try{r=new $E(r,this.options)}catch{return!1}return Tv(r,this.operator,this.semver,this.options)}intersects(r,t){if(!(r instanceof Eu))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new VE(r.value,t).test(this.value);if(r.operator==="")return r.value===""?!0:new VE(this.value,t).test(r.semver);let n=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),o=this.semver.version===r.semver.version,u=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),s=Tv(this.semver,"<",r.semver,t)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),c=Tv(this.semver,">",r.semver,t)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return n||i||o&&u||s||c}};HE.exports=Eu;var fU=bu(),{re:UE,t:WE}=sn(),Tv=Av(),Iv=vu(),$E=Ce(),VE=er()});var Su=l((W3e,GE)=>{var hU=er(),pU=(e,r,t)=>{try{r=new hU(r,t)}catch{return!1}return r.test(e)};GE.exports=pU});var XE=l(($3e,zE)=>{var dU=er(),vU=(e,r)=>new dU(e,r).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));zE.exports=vU});var KE=l((V3e,YE)=>{var bU=Ce(),_U=er(),yU=(e,r,t)=>{let n=null,i=null,o=null;try{o=new _U(r,t)}catch{return null}return e.forEach(u=>{o.test(u)&&(!n||i.compare(u)===-1)&&(n=u,i=new bU(n,t))}),n};YE.exports=yU});var QE=l((H3e,JE)=>{var mU=Ce(),gU=er(),wU=(e,r,t)=>{let n=null,i=null,o=null;try{o=new gU(r,t)}catch{return null}return e.forEach(u=>{o.test(u)&&(!n||i.compare(u)===1)&&(n=u,i=new mU(n,t))}),n};JE.exports=wU});var rS=l((G3e,eS)=>{var Rv=Ce(),OU=er(),ZE=yu(),EU=(e,r)=>{e=new OU(e,r);let t=new Rv("0.0.0");if(e.test(t)||(t=new Rv("0.0.0-0"),e.test(t)))return t;t=null;for(let n=0;n<e.set.length;++n){let i=e.set[n],o=null;i.forEach(u=>{let s=new Rv(u.semver.version);switch(u.operator){case">":s.prerelease.length===0?s.patch++:s.prerelease.push(0),s.raw=s.format();case"":case">=":(!o||ZE(s,o))&&(o=s);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${u.operator}`)}}),o&&(!t||ZE(t,o))&&(t=o)}return t&&e.test(t)?t:null};eS.exports=EU});var nS=l((z3e,tS)=>{var SU=er(),DU=(e,r)=>{try{return new SU(e,r).range||"*"}catch{return null}};tS.exports=DU});var Oc=l((X3e,sS)=>{var qU=Ce(),uS=wu(),{ANY:xU}=uS,AU=er(),CU=Su(),iS=yu(),oS=bc(),PU=yc(),jU=_c(),TU=(e,r,t,n)=>{e=new qU(e,n),r=new AU(r,n);let i,o,u,s,c;switch(t){case">":i=iS,o=PU,u=oS,s=">",c=">=";break;case"<":i=oS,o=jU,u=iS,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(CU(e,r,n))return!1;for(let a=0;a<r.set.length;++a){let h=r.set[a],f=null,p=null;if(h.forEach(v=>{v.semver===xU&&(v=new uS(">=0.0.0")),f=f||v,p=p||v,i(v.semver,f.semver,n)?f=v:u(v.semver,p.semver,n)&&(p=v)}),f.operator===s||f.operator===c||(!p.operator||p.operator===s)&&o(e,p.semver))return!1;if(p.operator===c&&u(e,p.semver))return!1}return!0};sS.exports=TU});var cS=l((Y3e,aS)=>{var IU=Oc(),RU=(e,r,t)=>IU(e,r,">",t);aS.exports=RU});var fS=l((K3e,lS)=>{var FU=Oc(),MU=(e,r,t)=>FU(e,r,"<",t);lS.exports=MU});var dS=l((J3e,pS)=>{var hS=er(),LU=(e,r,t)=>(e=new hS(e,t),r=new hS(r,t),e.intersects(r));pS.exports=LU});var bS=l((Q3e,vS)=>{var NU=Su(),kU=Ze();vS.exports=(e,r,t)=>{let n=[],i=null,o=null,u=e.sort((h,f)=>kU(h,f,t));for(let h of u)NU(h,r,t)?(o=h,i||(i=h)):(o&&n.push([i,o]),o=null,i=null);i&&n.push([i,null]);let s=[];for(let[h,f]of n)h===f?s.push(h):!f&&h===u[0]?s.push("*"):f?h===u[0]?s.push(`<=${f}`):s.push(`${h} - ${f}`):s.push(`>=${h}`);let c=s.join(" || "),a=typeof r.raw=="string"?r.raw:String(r);return c.length<a.length?c:r}});var wS=l((Z3e,gS)=>{var _S=er(),Ec=wu(),{ANY:Fv}=Ec,Du=Su(),Mv=Ze(),BU=(e,r,t={})=>{if(e===r)return!0;e=new _S(e,t),r=new _S(r,t);let n=!1;e:for(let i of e.set){for(let o of r.set){let u=UU(i,o,t);if(n=n||u!==null,u)continue e}if(n)return!1}return!0},UU=(e,r,t)=>{if(e===r)return!0;if(e.length===1&&e[0].semver===Fv){if(r.length===1&&r[0].semver===Fv)return!0;t.includePrerelease?e=[new Ec(">=0.0.0-0")]:e=[new Ec(">=0.0.0")]}if(r.length===1&&r[0].semver===Fv){if(t.includePrerelease)return!0;r=[new Ec(">=0.0.0")]}let n=new Set,i,o;for(let v of e)v.operator===">"||v.operator===">="?i=yS(i,v,t):v.operator==="<"||v.operator==="<="?o=mS(o,v,t):n.add(v.semver);if(n.size>1)return null;let u;if(i&&o){if(u=Mv(i.semver,o.semver,t),u>0)return null;if(u===0&&(i.operator!==">="||o.operator!=="<="))return null}for(let v of n){if(i&&!Du(v,String(i),t)||o&&!Du(v,String(o),t))return null;for(let y of r)if(!Du(v,String(y),t))return!1;return!0}let s,c,a,h,f=o&&!t.includePrerelease&&o.semver.prerelease.length?o.semver:!1,p=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&o.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let v of r){if(h=h||v.operator===">"||v.operator===">=",a=a||v.operator==="<"||v.operator==="<=",i){if(p&&v.semver.prerelease&&v.semver.prerelease.length&&v.semver.major===p.major&&v.semver.minor===p.minor&&v.semver.patch===p.patch&&(p=!1),v.operator===">"||v.operator===">="){if(s=yS(i,v,t),s===v&&s!==i)return!1}else if(i.operator===">="&&!Du(i.semver,String(v),t))return!1}if(o){if(f&&v.semver.prerelease&&v.semver.prerelease.length&&v.semver.major===f.major&&v.semver.minor===f.minor&&v.semver.patch===f.patch&&(f=!1),v.operator==="<"||v.operator==="<="){if(c=mS(o,v,t),c===v&&c!==o)return!1}else if(o.operator==="<="&&!Du(o.semver,String(v),t))return!1}if(!v.operator&&(o||i)&&u!==0)return!1}return!(i&&a&&!o&&u!==0||o&&h&&!i&&u!==0||p||f)},yS=(e,r,t)=>{if(!e)return r;let n=Mv(e.semver,r.semver,t);return n>0?e:n<0||r.operator===">"&&e.operator===">="?r:e},mS=(e,r,t)=>{if(!e)return r;let n=Mv(e.semver,r.semver,t);return n<0?e:n>0||r.operator==="<"&&e.operator==="<="?r:e};gS.exports=BU});var Nv=l((eke,OS)=>{var Lv=sn();OS.exports={re:Lv.re,src:Lv.src,tokens:Lv.t,SEMVER_SPEC_VERSION:du().SEMVER_SPEC_VERSION,SemVer:Ce(),compareIdentifiers:fc().compareIdentifiers,rcompareIdentifiers:fc().rcompareIdentifiers,parse:an(),valid:$1(),clean:H1(),inc:z1(),diff:Z1(),major:rE(),minor:nE(),patch:oE(),prerelease:sE(),compare:Ze(),rcompare:cE(),compareLoose:fE(),compareBuild:vc(),sort:vE(),rsort:_E(),gt:yu(),lt:bc(),eq:dc(),neq:xv(),gte:_c(),lte:yc(),cmp:Av(),coerce:DE(),Comparator:wu(),Range:er(),satisfies:Su(),toComparators:XE(),maxSatisfying:KE(),minSatisfying:QE(),minVersion:rS(),validRange:nS(),outside:Oc(),gtr:cS(),ltr:fS(),intersects:dS(),simplifyRange:bS(),subset:wS()}});var je=l(Ke=>{"use strict";var WU=Ke&&Ke.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),$U=Ke&&Ke.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),VU=Ke&&Ke.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&WU(r,e,t);return $U(r,e),r},ES=Ke&&Ke.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ke,"__esModule",{value:!0});Ke.getCoreVersion=void 0;var SS=ES(require("path")),DS=ES(require("fs")),kv=VU(require("@serverless-devs/core")),HU=Nv(),qS=SS.default.join(kv.getRootHome(),"cache","core"),Bv=SS.default.join(qS,"package.json");function GU(){if(DS.default.existsSync(Bv)){var e=require("@serverless-devs/core/package.json").version,r=xS();return HU.gt(r,e)?require(qS):kv}return kv}function xS(){return DS.default.existsSync(Bv)?require(Bv).version:void 0}Ke.getCoreVersion=xS;Ke.default=GU()});var Wv=l(qu=>{"use strict";var zU=qu&&qu.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qu,"__esModule",{value:!0});var XU=zU(je()),YU=XU.default.Logger,Uv=new YU("S-CLI");Uv.success=function(e){return Uv.log(e,"green")};qu.default=Uv});var Hv=l(We=>{"use strict";var KU=We&&We.__awaiter||function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(u){u(o)})}return new(t||(t=Promise))(function(o,u){function s(h){try{a(n.next(h))}catch(f){u(f)}}function c(h){try{a(n.throw(h))}catch(f){u(f)}}function a(h){h.done?o(h.value):i(h.value).then(s,c)}a((n=n.apply(e,r||[])).next())})},JU=We&&We.__generator||function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,u;return u={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function s(a){return function(h){return c([a,h])}}function c(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(h){a=[6,h],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},AS=We&&We.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(We,"__esModule",{value:!0});We.handlerProfileFile=We.getConfig=We.setConfig=void 0;var CS=AS(require("path")),Vv=AS(je()),mr=Vv.default.fse,Sc=Vv.default.jsyaml,$v=Vv.default.getRootHome;function QU(e){var r=jS();mr.writeFileSync(r,Sc.dump(e))}function PS(){var e=jS();if(!mr.existsSync(e))return{};try{var r=Sc.load(mr.readFileSync(e,"utf8"))||{};return r}catch(t){throw t}}function jS(){var e=CS.default.join($v(),"set-config.yml");return mr.existsSync(e)||mr.createFileSync(e),e}function ZU(e,r){var t=PS();t[e]=r,QU(t)}We.setConfig=ZU;function eW(e,r){var t=PS();return t[e]||r}We.getConfig=eW;function rW(e){return KU(this,void 0,void 0,function(){var r,t,n,i,o,u,s;return JU(this,function(c){switch(c.label){case 0:if(r=e.filePath||"set-config.yml",t=CS.default.join($v(),r),n=mr.existsSync(t),i={},n)return[3,5];o=$v(),c.label=1;case 1:return c.trys.push([1,2,,4]),mr.statSync(o),[3,4];case 2:return u=c.sent(),[4,mr.mkdirSync(o)];case 3:return c.sent(),[3,4];case 4:return[3,6];case 5:try{i=Sc.load(mr.readFileSync(t,"utf8"))||{}}catch(a){throw a}c.label=6;case 6:return e.read?[2,i]:(s=e.configKey||"",i[s]=e.data,[4,mr.writeFileSync(t,Sc.dump(i))]);case 7:return c.sent(),[2,i]}})})}We.handlerProfileFile=rW});var Dc=l((ike,tW)=>{tW.exports={name:"@serverless-devs/s",version:"2.0.103",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 hn=l(M=>{"use strict";var nW=M&&M.__createBinding||(Object.create?function(e,r,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(r,t);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,i)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]}),iW=M&&M.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),oW=M&&M.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&nW(r,e,t);return iW(r,e),r},ci=M&&M.__awaiter||function(e,r,t,n){function i(o){return o instanceof t?o:new t(function(u){u(o)})}return new(t||(t=Promise))(function(o,u){function s(h){try{a(n.next(h))}catch(f){u(f)}}function c(h){try{a(n.throw(h))}catch(f){u(f)}}function a(h){h.done?o(h.value):i(h.value).then(s,c)}a((n=n.apply(e,r||[])).next())})},li=M&&M.__generator||function(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,u;return u={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function s(a){return function(h){return c([a,h])}}function c(a){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return t.label++,{value:a[1],done:!1};case 5:t.label++,i=a[1],a=[0];continue;case 7:a=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){t.label=a[1];break}if(a[0]===6&&t.label<o[1]){t.label=o[1],o=a;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(a);break}o[2]&&t.ops.pop(),t.trys.pop();continue}a=r.call(e,t)}catch(h){a=[6,h],i=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},zv=M&&M.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(M,"__esModule",{value:!0});M.specifyServiceHelp=M.getTempCommandStr=M.emoji=M.mark=M.replaceTemplate=M.replaceFun=M.getLang=M.printn=M.getFolderSize=M.getVersion=M.getPid=M.aiRequest=M.getCredentialWithAll=M.getCredentialWithExisted=M.getProcessArgv=M.bgRed=M.yellow=M.red=void 0;var uW=zv(require("path")),xu=zv(require("fs")),sW=zv(require("os")),Te=oW(je()),aW=Hv(),TS=Dc(),fi=Te.default.colors,cW=Te.default.got,lW=Te.default.getMAC,fW=Te.default.isDocker,hW=Te.default.isCiCdEnv,rt=Te.default.lodash,IS=Te.default.publishHelp,pW=rt.get,dW=rt.trim,vW=rt.assign,bW=rt.filter,RS=rt.includes,_W=rt.omit,yW=rt.isPlainObject,mW=rt.isEmpty,gW=fi.underline,wW=fi.bold;M.red=fi.hex("#fd5750");M.yellow=fi.hex("#F3F99D");M.bgRed=fi.hex("#000").bgHex("#fd5750");var OW=function(){var e=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(e),t=Te.default.getGlobalArgs(r);return process.argv=process.argv.slice(0,2).concat(t._argsObj),vW({},t,{noHelpArgv:process.argv.slice(0,2).concat(bW(t._argsObj,function(n){return!RS(["-h","--help"],n)}))})}catch{return{}}};M.getProcessArgv=OW;var EW=function(e){return ci(void 0,void 0,void 0,function(){var r,t;return li(this,function(n){switch(n.label){case 0:return[4,Te.default.getCredentialAliasList()];case 1:return r=n.sent(),RS(r,e)?[4,Te.default.getCredential(e)]:[3,3];case 2:return t=n.sent(),[2,t];case 3:return[2]}})})};M.getCredentialWithExisted=EW;var SW=function(){return ci(void 0,void 0,void 0,function(){var e,r,t,n,i,o;return li(this,function(u){switch(u.label){case 0:return[4,Te.default.getCredentialAliasList()];case 1:if(e=u.sent(),!(e.length>0))return[3,6];r={},t=0,n=e,u.label=2;case 2:return t<n.length?(i=n[t],[4,Te.default.getCredential(i)]):[3,5];case 3:o=u.sent(),r[o.Alias]=_W(o,"Alias"),u.label=4;case 4:return t++,[3,2];case 5:return[2,r];case 6:return[2]}})})};M.getCredentialWithAll=SW;var DW=function(e,r){return r===void 0&&(r="unknow"),ci(void 0,void 0,void 0,function(){var t,n,i,o;return li(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),t=(0,aW.getConfig)("analysis"),t!=="enable"?[2]:fW()||hW()?[2]:[4,cW("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(e),{timeout:2e3,json:!0})];case 1:return n=u.sent(),i=pW(n.body,"shorturl"),i&&console.log(`AI Tips:
|
|
16
16
|
You can try to solve the problem through: `.concat(fi.underline(i),`
|
|
17
17
|
`)),[3,3];case 2:return o=u.sent(),[3,3];case 3:return[2]}})})};M.aiRequest=DW;var qW=function(){try{return lW().replace(/:/g,"")}catch{return"unknown"}};M.getPid=qW;function xW(){var e=(0,Te.getCoreVersion)(),r=["".concat(TS.name,": ").concat(TS.version),e?"core: ".concat(e):void 0,"s-home: ".concat(Te.default.getRootHome()),"".concat(process.platform,"-").concat(process.arch),"node-".concat(process.version)];return r.filter(function(t){return t}).join(", ")}M.getVersion=xW;function AW(e){return ci(this,void 0,void 0,function(){function r(i){return ci(this,void 0,void 0,function(){var o,u;return li(this,function(s){switch(s.label){case 0:return o=xu.default.lstatSync(i),typeof o!="object"?[2]:(t.set(o.ino,o.size),o.isDirectory()?(u=xu.default.readdirSync(i),typeof u!="object"?[2]:[4,Promise.all(u.map(function(c){return r(uW.default.join(i,c))}))]):[3,2]);case 1:s.sent(),s.label=2;case 2:return[2]}})})}var t,n;return li(this,function(i){switch(i.label){case 0:return t=new Map,[4,r(e)];case 1:return i.sent(),n=Array.from(t.values()).reduce(function(o,u){return o+u},0),[2,n]}})})}M.getFolderSize=AW;function CW(e,r){r===void 0&&(r=" ");for(var t="",n=0;n<e;n++)t=t+r;return t}M.printn=CW;function PW(){return"en"}M.getLang=PW;function FS(e,r){var t=/\{\{(.*?)\}\}/g,n=e.match(t);if(n)for(var i=0;i<n.length;i++){var o=n[i].replace(/{{|}}/g,""),u=dW(o.split("|")[0]);r[u]&&(e=e.replace(n[i],r[u]))}return e}M.replaceFun=FS;function jW(e,r){e.forEach(function(t){if(xu.default.existsSync(t)){var n=xu.default.readFileSync(t,"utf-8"),i=FS(n,r);xu.default.writeFileSync(t,i,"utf-8")}})}M.replaceTemplate=jW;function TW(e){if(!e)return e;var r=e.slice(-4);return"***********".concat(r)}M.mark=TW;function Gv(e,r){return sW.default.platform()==="win32"?r||"\u25C6":"".concat(e," ")}M.emoji=Gv;function MS(e,r){var t=e.length,n=new Array(r-t).fill(" ");return"".concat(e).concat(n.join("")," : ")}M.getTempCommandStr=MS;function IW(e){return ci(this,void 0,void 0,function(){var r,t,n,i,o,s,u,s;return li(this,function(c){switch(c.label){case 0:return[4,Te.default.getYamlContent(e)];case 1:if(r=c.sent(),console.log(`
|
|
18
18
|
`.concat(Gv("\u{1F680}")," ").concat(r.Name,"@").concat(r.Version,": ").concat(r.Description,`
|