@serverless-devs/s 2.0.100-beta.8 → 2.0.100-beta.9

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/lib/set/index.js CHANGED
@@ -31,7 +31,7 @@ __p += '`),K&&(O+=`' +
31
31
  function print() { __p += __j.call(arguments, '') }
32
32
  `:`;
33
33
  `)+O+`return __p
34
- }`;var B=Da(function(){return J(c,N+"return "+O).apply(i,p)});if(B.source=O,Ls(B))throw B;return B}function hm(e){return Q(e).toLowerCase()}function pm(e){return Q(e).toUpperCase()}function gm(e,t,n){if(e=Q(e),e&&(n||t===i))return zu(e);if(!e||!(t=Te(t)))return e;var u=Ze(e),a=Ze(t),c=Vu(u,a),p=Yu(u,a)+1;return bt(u,c,p).join("")}function dm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Zu(e)+1);if(!e||!(t=Te(t)))return e;var u=Ze(e),a=Yu(u,Ze(t))+1;return bt(u,0,a).join("")}function _m(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Li,"");if(!e||!(t=Te(t)))return e;var u=Ze(e),a=Vu(u,Ze(t));return bt(u,a).join("")}function mm(e,t){var n=fc,u=cc;if(re(t)){var a="separator"in t?t.separator:a;n="length"in t?G(t.length):n,u="omission"in t?Te(t.omission):u}e=Q(e);var c=e.length;if(sn(e)){var p=Ze(e);c=p.length}if(n>=c)return e;var g=n-un(u);if(g<1)return u;var _=p?bt(p,0,g).join(""):e.slice(0,g);if(a===i)return _+u;if(p&&(g+=_.length-g),bs(a)){if(e.slice(g).search(a)){var y,R=_;for(a.global||(a=Vi(a.source,Q(pu.exec(a))+"g")),a.lastIndex=0;y=a.exec(R);)var O=y.index;_=_.slice(0,O===i?g:O)}}else if(e.indexOf(Te(a),g)!=g){var S=_.lastIndexOf(a);S>-1&&(_=_.slice(0,S))}return _+u}function vm(e){return e=Q(e),e&&Lc.test(e)?e.replace(fu,Yh):e}var Em=hn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ns=Mo("toUpperCase");function qa(e,t,n){return e=Q(e),t=n?i:t,t===i?Gh(e)?Jh(e):Nh(e):e.match(t)||[]}var Da=z(function(e,t){try{return Le(e,i,t)}catch(n){return Ls(n)?n:new H(n)}}),wm=gt(function(e,t){return De(t,function(n){n=st(n),ht(e,n,Ss(e[n],e))}),e});function xm(e){var t=e==null?0:e.length,n=q();return e=t?ne(e,function(u){if(typeof u[1]!="function")throw new Me(f);return[n(u[0]),u[1]]}):[],z(function(u){for(var a=-1;++a<t;){var c=e[a];if(Le(c[0],this,u))return Le(c[1],this,u)}})}function Am(e){return Yp(He(e,v))}function Ps(e){return function(){return e}}function ym(e,t){return e==null||e!==e?t:e}var Rm=Ho(),Om=Ho(!0);function Se(e){return e}function Fs(e){return _o(typeof e=="function"?e:He(e,v))}function Im(e){return vo(He(e,v))}function Sm(e,t){return Eo(e,He(t,v))}var Cm=z(function(e,t){return function(n){return qn(n,e,t)}}),Lm=z(function(e,t){return function(n){return qn(e,n,t)}});function qs(e,t,n){var u=ce(t),a=Pr(t,u);n==null&&!(re(t)&&(a.length||!u.length))&&(n=t,t=e,e=this,a=Pr(t,ce(t)));var c=!(re(n)&&"chain"in n)||!!n.chain,p=_t(e);return De(a,function(g){var _=t[g];e[g]=_,p&&(e.prototype[g]=function(){var y=this.__chain__;if(c||y){var R=e(this.__wrapped__),O=R.__actions__=Re(this.__actions__);return O.push({func:_,args:arguments,thisArg:e}),R.__chain__=y,R}return _.apply(e,yt([this.value()],arguments))})}),e}function bm(){return fe._===this&&(fe._=np),this}function Ds(){}function Tm(e){return e=G(e),z(function(t){return wo(t,e)})}var $m=gs(ne),Nm=gs(Hu),Pm=gs(Ui);function Ma(e){return xs(e)?Hi(st(e)):fg(e)}function Fm(e){return function(t){return e==null?i:Wt(e,t)}}var qm=Go(),Dm=Go(!0);function Ms(){return[]}function Us(){return!1}function Mm(){return{}}function Um(){return""}function Hm(){return!0}function Wm(e,t){if(e=G(e),e<1||e>xt)return[];var n=nt,u=de(e,nt);t=q(t),e-=nt;for(var a=Bi(u,t);++n<e;)t(n);return a}function Gm(e){return W(e)?ne(e,st):$e(e)?[e]:Re(ia(Q(e)))}function Bm(e){var t=++ep;return Q(e)+t}var Xm=Hr(function(e,t){return e+t},0),zm=ds("ceil"),Vm=Hr(function(e,t){return e/t},1),Ym=ds("floor");function Km(e){return e&&e.length?Nr(e,Se,es):i}function Zm(e,t){return e&&e.length?Nr(e,q(t,2),es):i}function Jm(e){return Bu(e,Se)}function Qm(e,t){return Bu(e,q(t,2))}function jm(e){return e&&e.length?Nr(e,Se,is):i}function km(e,t){return e&&e.length?Nr(e,q(t,2),is):i}var ev=Hr(function(e,t){return e*t},1),tv=ds("round"),nv=Hr(function(e,t){return e-t},0);function rv(e){return e&&e.length?Gi(e,Se):0}function iv(e,t){return e&&e.length?Gi(e,q(t,2)):0}return l.after=I0,l.ary=da,l.assign=p_,l.assignIn=La,l.assignInWith=kr,l.assignWith=g_,l.at=d_,l.before=_a,l.bind=Ss,l.bindAll=wm,l.bindKey=ma,l.castArray=M0,l.chain=ha,l.chunk=Yg,l.compact=Kg,l.concat=Zg,l.cond=xm,l.conforms=Am,l.constant=Ps,l.countBy=r0,l.create=__,l.curry=va,l.curryRight=Ea,l.debounce=wa,l.defaults=m_,l.defaultsDeep=v_,l.defer=S0,l.delay=C0,l.difference=Jg,l.differenceBy=Qg,l.differenceWith=jg,l.drop=kg,l.dropRight=ed,l.dropRightWhile=td,l.dropWhile=nd,l.fill=rd,l.filter=s0,l.flatMap=a0,l.flatMapDeep=l0,l.flatMapDepth=f0,l.flatten=aa,l.flattenDeep=id,l.flattenDepth=sd,l.flip=L0,l.flow=Rm,l.flowRight=Om,l.fromPairs=ud,l.functions=O_,l.functionsIn=I_,l.groupBy=c0,l.initial=ad,l.intersection=ld,l.intersectionBy=fd,l.intersectionWith=cd,l.invert=C_,l.invertBy=L_,l.invokeMap=p0,l.iteratee=Fs,l.keyBy=g0,l.keys=ce,l.keysIn=Ie,l.map=Yr,l.mapKeys=T_,l.mapValues=$_,l.matches=Im,l.matchesProperty=Sm,l.memoize=Zr,l.merge=N_,l.mergeWith=ba,l.method=Cm,l.methodOf=Lm,l.mixin=qs,l.negate=Jr,l.nthArg=Tm,l.omit=P_,l.omitBy=F_,l.once=b0,l.orderBy=d0,l.over=$m,l.overArgs=T0,l.overEvery=Nm,l.overSome=Pm,l.partial=Cs,l.partialRight=xa,l.partition=_0,l.pick=q_,l.pickBy=Ta,l.property=Ma,l.propertyOf=Fm,l.pull=dd,l.pullAll=fa,l.pullAllBy=_d,l.pullAllWith=md,l.pullAt=vd,l.range=qm,l.rangeRight=Dm,l.rearg=$0,l.reject=E0,l.remove=Ed,l.rest=N0,l.reverse=Os,l.sampleSize=x0,l.set=M_,l.setWith=U_,l.shuffle=A0,l.slice=wd,l.sortBy=O0,l.sortedUniq=Sd,l.sortedUniqBy=Cd,l.split=am,l.spread=P0,l.tail=Ld,l.take=bd,l.takeRight=Td,l.takeRightWhile=$d,l.takeWhile=Nd,l.tap=Kd,l.throttle=F0,l.thru=Vr,l.toArray=Ia,l.toPairs=$a,l.toPairsIn=Na,l.toPath=Gm,l.toPlainObject=Ca,l.transform=H_,l.unary=q0,l.union=Pd,l.unionBy=Fd,l.unionWith=qd,l.uniq=Dd,l.uniqBy=Md,l.uniqWith=Ud,l.unset=W_,l.unzip=Is,l.unzipWith=ca,l.update=G_,l.updateWith=B_,l.values=dn,l.valuesIn=X_,l.without=Hd,l.words=qa,l.wrap=D0,l.xor=Wd,l.xorBy=Gd,l.xorWith=Bd,l.zip=Xd,l.zipObject=zd,l.zipObjectDeep=Vd,l.zipWith=Yd,l.entries=$a,l.entriesIn=Na,l.extend=La,l.extendWith=kr,qs(l,l),l.add=Xm,l.attempt=Da,l.camelCase=K_,l.capitalize=Pa,l.ceil=zm,l.clamp=z_,l.clone=U0,l.cloneDeep=W0,l.cloneDeepWith=G0,l.cloneWith=H0,l.conformsTo=B0,l.deburr=Fa,l.defaultTo=ym,l.divide=Vm,l.endsWith=Z_,l.eq=Qe,l.escape=J_,l.escapeRegExp=Q_,l.every=i0,l.find=u0,l.findIndex=ua,l.findKey=E_,l.findLast=o0,l.findLastIndex=oa,l.findLastKey=w_,l.floor=Ym,l.forEach=pa,l.forEachRight=ga,l.forIn=x_,l.forInRight=A_,l.forOwn=y_,l.forOwnRight=R_,l.get=Ts,l.gt=X0,l.gte=z0,l.has=S_,l.hasIn=$s,l.head=la,l.identity=Se,l.includes=h0,l.indexOf=od,l.inRange=V_,l.invoke=b_,l.isArguments=Xt,l.isArray=W,l.isArrayBuffer=V0,l.isArrayLike=Oe,l.isArrayLikeObject=se,l.isBoolean=Y0,l.isBuffer=Tt,l.isDate=K0,l.isElement=Z0,l.isEmpty=J0,l.isEqual=Q0,l.isEqualWith=j0,l.isError=Ls,l.isFinite=k0,l.isFunction=_t,l.isInteger=Aa,l.isLength=Qr,l.isMap=ya,l.isMatch=e_,l.isMatchWith=t_,l.isNaN=n_,l.isNative=r_,l.isNil=s_,l.isNull=i_,l.isNumber=Ra,l.isObject=re,l.isObjectLike=ie,l.isPlainObject=Gn,l.isRegExp=bs,l.isSafeInteger=u_,l.isSet=Oa,l.isString=jr,l.isSymbol=$e,l.isTypedArray=gn,l.isUndefined=o_,l.isWeakMap=a_,l.isWeakSet=l_,l.join=hd,l.kebabCase=j_,l.last=Ge,l.lastIndexOf=pd,l.lowerCase=k_,l.lowerFirst=em,l.lt=f_,l.lte=c_,l.max=Km,l.maxBy=Zm,l.mean=Jm,l.meanBy=Qm,l.min=jm,l.minBy=km,l.stubArray=Ms,l.stubFalse=Us,l.stubObject=Mm,l.stubString=Um,l.stubTrue=Hm,l.multiply=ev,l.nth=gd,l.noConflict=bm,l.noop=Ds,l.now=Kr,l.pad=tm,l.padEnd=nm,l.padStart=rm,l.parseInt=im,l.random=Y_,l.reduce=m0,l.reduceRight=v0,l.repeat=sm,l.replace=um,l.result=D_,l.round=tv,l.runInContext=d,l.sample=w0,l.size=y0,l.snakeCase=om,l.some=R0,l.sortedIndex=xd,l.sortedIndexBy=Ad,l.sortedIndexOf=yd,l.sortedLastIndex=Rd,l.sortedLastIndexBy=Od,l.sortedLastIndexOf=Id,l.startCase=lm,l.startsWith=fm,l.subtract=nv,l.sum=rv,l.sumBy=iv,l.template=cm,l.times=Wm,l.toFinite=mt,l.toInteger=G,l.toLength=Sa,l.toLower=hm,l.toNumber=Be,l.toSafeInteger=h_,l.toString=Q,l.toUpper=pm,l.trim=gm,l.trimEnd=dm,l.trimStart=_m,l.truncate=mm,l.unescape=vm,l.uniqueId=Bm,l.upperCase=Em,l.upperFirst=Ns,l.each=pa,l.eachRight=ga,l.first=la,qs(l,function(){var e={};return rt(l,function(t,n){j.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=r,De(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),De(["drop","take"],function(e,t){Y.prototype[e]=function(n){n=n===i?1:le(G(n),0);var u=this.__filtered__&&!t?new Y(this):this.clone();return u.__filtered__?u.__takeCount__=de(n,u.__takeCount__):u.__views__.push({size:de(n,nt),type:e+(u.__dir__<0?"Right":"")}),u},Y.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),De(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==ou||n==dc;Y.prototype[e]=function(a){var c=this.clone();return c.__iteratees__.push({iteratee:q(a,3),type:n}),c.__filtered__=c.__filtered__||u,c}}),De(["head","last"],function(e,t){var n="take"+(t?"Right":"");Y.prototype[e]=function(){return this[n](1).value()[0]}}),De(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[n](1)}}),Y.prototype.compact=function(){return this.filter(Se)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new Y(this):this.map(function(n){return qn(n,e,t)})}),Y.prototype.reject=function(e){return this.filter(Jr(q(e)))},Y.prototype.slice=function(e,t){e=G(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(nt)},rt(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),a=l[u?"take"+(t=="last"?"Right":""):t],c=u||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,g=u?[1]:arguments,_=p instanceof Y,y=g[0],R=_||W(p),O=function(V){var K=a.apply(l,yt([V],g));return u&&S?K[0]:K};R&&n&&typeof y=="function"&&y.length!=1&&(_=R=!1);var S=this.__chain__,N=!!this.__actions__.length,D=c&&!S,B=_&&!N;if(!c&&R){p=B?p:new Y(this);var M=e.apply(p,g);return M.__actions__.push({func:Vr,args:[O],thisArg:i}),new Ue(M,S)}return D&&B?e.apply(this,g):(M=this.thru(O),D?u?M.value()[0]:M.value():M)})}),De(["pop","push","shift","sort","splice","unshift"],function(e){var t=vr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(u&&!this.__chain__){var c=this.value();return t.apply(W(c)?c:[],a)}return this[n](function(p){return t.apply(W(p)?p:[],a)})}}),rt(Y.prototype,function(e,t){var n=l[t];if(n){var u=n.name+"";j.call(ln,u)||(ln[u]=[]),ln[u].push({name:t,func:n})}}),ln[Ur(i,Pt).name]=[{name:"wrapper",func:i}],Y.prototype.clone=vp,Y.prototype.reverse=Ep,Y.prototype.value=wp,l.prototype.at=Zd,l.prototype.chain=Jd,l.prototype.commit=Qd,l.prototype.next=jd,l.prototype.plant=e0,l.prototype.reverse=t0,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=n0,l.prototype.first=l.prototype.head,Ln&&(l.prototype[Ln]=kd),l},Ot=Qh();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(fe._=Ot,define(function(){return Ot})):qt?((qt.exports=Ot)._=Ot,Fi._=Ot):fe._=Ot}).call(_n)});var Vn=F((ew,Za)=>{var ov="2.0.0",av=Number.MAX_SAFE_INTEGER||9007199254740991,lv=16;Za.exports={SEMVER_SPEC_VERSION:ov,MAX_LENGTH:256,MAX_SAFE_INTEGER:av,MAX_SAFE_COMPONENT_LENGTH:lv}});var Yn=F((tw,Ja)=>{var fv=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Ja.exports=fv});var Yt=F(($t,Qa)=>{var{MAX_SAFE_COMPONENT_LENGTH:Bs}=Vn(),cv=Yn();$t=Qa.exports={};var hv=$t.re=[],L=$t.src=[],b=$t.t={},pv=0,X=(i,r,s)=>{let o=pv++;cv(o,r),b[i]=o,L[o]=r,hv[o]=new RegExp(r,s?"g":void 0)};X("NUMERICIDENTIFIER","0|[1-9]\\d*");X("NUMERICIDENTIFIERLOOSE","[0-9]+");X("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");X("MAINVERSION",`(${L[b.NUMERICIDENTIFIER]})\\.(${L[b.NUMERICIDENTIFIER]})\\.(${L[b.NUMERICIDENTIFIER]})`);X("MAINVERSIONLOOSE",`(${L[b.NUMERICIDENTIFIERLOOSE]})\\.(${L[b.NUMERICIDENTIFIERLOOSE]})\\.(${L[b.NUMERICIDENTIFIERLOOSE]})`);X("PRERELEASEIDENTIFIER",`(?:${L[b.NUMERICIDENTIFIER]}|${L[b.NONNUMERICIDENTIFIER]})`);X("PRERELEASEIDENTIFIERLOOSE",`(?:${L[b.NUMERICIDENTIFIERLOOSE]}|${L[b.NONNUMERICIDENTIFIER]})`);X("PRERELEASE",`(?:-(${L[b.PRERELEASEIDENTIFIER]}(?:\\.${L[b.PRERELEASEIDENTIFIER]})*))`);X("PRERELEASELOOSE",`(?:-?(${L[b.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[b.PRERELEASEIDENTIFIERLOOSE]})*))`);X("BUILDIDENTIFIER","[0-9A-Za-z-]+");X("BUILD",`(?:\\+(${L[b.BUILDIDENTIFIER]}(?:\\.${L[b.BUILDIDENTIFIER]})*))`);X("FULLPLAIN",`v?${L[b.MAINVERSION]}${L[b.PRERELEASE]}?${L[b.BUILD]}?`);X("FULL",`^${L[b.FULLPLAIN]}$`);X("LOOSEPLAIN",`[v=\\s]*${L[b.MAINVERSIONLOOSE]}${L[b.PRERELEASELOOSE]}?${L[b.BUILD]}?`);X("LOOSE",`^${L[b.LOOSEPLAIN]}$`);X("GTLT","((?:<|>)?=?)");X("XRANGEIDENTIFIERLOOSE",`${L[b.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);X("XRANGEIDENTIFIER",`${L[b.NUMERICIDENTIFIER]}|x|X|\\*`);X("XRANGEPLAIN",`[v=\\s]*(${L[b.XRANGEIDENTIFIER]})(?:\\.(${L[b.XRANGEIDENTIFIER]})(?:\\.(${L[b.XRANGEIDENTIFIER]})(?:${L[b.PRERELEASE]})?${L[b.BUILD]}?)?)?`);X("XRANGEPLAINLOOSE",`[v=\\s]*(${L[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[b.XRANGEIDENTIFIERLOOSE]})(?:${L[b.PRERELEASELOOSE]})?${L[b.BUILD]}?)?)?`);X("XRANGE",`^${L[b.GTLT]}\\s*${L[b.XRANGEPLAIN]}$`);X("XRANGELOOSE",`^${L[b.GTLT]}\\s*${L[b.XRANGEPLAINLOOSE]}$`);X("COERCE",`(^|[^\\d])(\\d{1,${Bs}})(?:\\.(\\d{1,${Bs}}))?(?:\\.(\\d{1,${Bs}}))?(?:$|[^\\d])`);X("COERCERTL",L[b.COERCE],!0);X("LONETILDE","(?:~>?)");X("TILDETRIM",`(\\s*)${L[b.LONETILDE]}\\s+`,!0);$t.tildeTrimReplace="$1~";X("TILDE",`^${L[b.LONETILDE]}${L[b.XRANGEPLAIN]}$`);X("TILDELOOSE",`^${L[b.LONETILDE]}${L[b.XRANGEPLAINLOOSE]}$`);X("LONECARET","(?:\\^)");X("CARETTRIM",`(\\s*)${L[b.LONECARET]}\\s+`,!0);$t.caretTrimReplace="$1^";X("CARET",`^${L[b.LONECARET]}${L[b.XRANGEPLAIN]}$`);X("CARETLOOSE",`^${L[b.LONECARET]}${L[b.XRANGEPLAINLOOSE]}$`);X("COMPARATORLOOSE",`^${L[b.GTLT]}\\s*(${L[b.LOOSEPLAIN]})$|^$`);X("COMPARATOR",`^${L[b.GTLT]}\\s*(${L[b.FULLPLAIN]})$|^$`);X("COMPARATORTRIM",`(\\s*)${L[b.GTLT]}\\s*(${L[b.LOOSEPLAIN]}|${L[b.XRANGEPLAIN]})`,!0);$t.comparatorTrimReplace="$1$2$3";X("HYPHENRANGE",`^\\s*(${L[b.XRANGEPLAIN]})\\s+-\\s+(${L[b.XRANGEPLAIN]})\\s*$`);X("HYPHENRANGELOOSE",`^\\s*(${L[b.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[b.XRANGEPLAINLOOSE]})\\s*$`);X("STAR","(<|>)?=?\\s*\\*");X("GTE0","^\\s*>=\\s*0.0.0\\s*$");X("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var Kn=F((nw,ja)=>{var gv=["includePrerelease","loose","rtl"],dv=i=>i?typeof i!="object"?{loose:!0}:gv.filter(r=>i[r]).reduce((r,s)=>(r[s]=!0,r),{}):{};ja.exports=dv});var ti=F((rw,tl)=>{var ka=/^[0-9]+$/,el=(i,r)=>{let s=ka.test(i),o=ka.test(r);return s&&o&&(i=+i,r=+r),i===r?0:s&&!o?-1:o&&!s?1:i<r?-1:1},_v=(i,r)=>el(r,i);tl.exports={compareIdentifiers:el,rcompareIdentifiers:_v}});var me=F((iw,sl)=>{var ni=Yn(),{MAX_LENGTH:nl,MAX_SAFE_INTEGER:ri}=Vn(),{re:rl,t:il}=Yt(),mv=Kn(),{compareIdentifiers:Zn}=ti(),Xe=class{constructor(r,s){if(s=mv(s),r instanceof Xe){if(r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>nl)throw new TypeError(`version is longer than ${nl} characters`);ni("SemVer",r,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;let o=r.trim().match(s.loose?rl[il.LOOSE]:rl[il.FULL]);if(!o)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>ri||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ri||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ri||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){let h=+f;if(h>=0&&h<ri)return h}return f}):this.prerelease=[],this.build=o[5]?o[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(ni("SemVer.compare",this.version,this.options,r),!(r instanceof Xe)){if(typeof r=="string"&&r===this.version)return 0;r=new Xe(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof Xe||(r=new Xe(r,this.options)),Zn(this.major,r.major)||Zn(this.minor,r.minor)||Zn(this.patch,r.patch)}comparePre(r){if(r instanceof Xe||(r=new Xe(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 s=0;do{let o=this.prerelease[s],f=r.prerelease[s];if(ni("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return Zn(o,f)}while(++s)}compareBuild(r){r instanceof Xe||(r=new Xe(r,this.options));let s=0;do{let o=this.build[s],f=r.build[s];if(ni("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return Zn(o,f)}while(++s)}inc(r,s){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s),this.inc("pre",s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",s),this.inc("pre",s);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 o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);o===-1&&this.prerelease.push(0)}s&&(this.prerelease[0]===s?isNaN(this.prerelease[1])&&(this.prerelease=[s,0]):this.prerelease=[s,0]);break;default:throw new Error(`invalid increment argument: ${r}`)}return this.format(),this.raw=this.version,this}};sl.exports=Xe});var Kt=F((sw,ll)=>{var{MAX_LENGTH:vv}=Vn(),{re:ul,t:ol}=Yt(),al=me(),Ev=Kn(),wv=(i,r)=>{if(r=Ev(r),i instanceof al)return i;if(typeof i!="string"||i.length>vv||!(r.loose?ul[ol.LOOSE]:ul[ol.FULL]).test(i))return null;try{return new al(i,r)}catch{return null}};ll.exports=wv});var cl=F((uw,fl)=>{var xv=Kt(),Av=(i,r)=>{let s=xv(i,r);return s?s.version:null};fl.exports=Av});var pl=F((ow,hl)=>{var yv=Kt(),Rv=(i,r)=>{let s=yv(i.trim().replace(/^[=v]+/,""),r);return s?s.version:null};hl.exports=Rv});var dl=F((aw,gl)=>{var Ov=me(),Iv=(i,r,s,o)=>{typeof s=="string"&&(o=s,s=void 0);try{return new Ov(i,s).inc(r,o).version}catch{return null}};gl.exports=Iv});var ze=F((lw,ml)=>{var _l=me(),Sv=(i,r,s)=>new _l(i,s).compare(new _l(r,s));ml.exports=Sv});var ii=F((fw,vl)=>{var Cv=ze(),Lv=(i,r,s)=>Cv(i,r,s)===0;vl.exports=Lv});var xl=F((cw,wl)=>{var El=Kt(),bv=ii(),Tv=(i,r)=>{if(bv(i,r))return null;{let s=El(i),o=El(r),f=s.prerelease.length||o.prerelease.length,h=f?"pre":"",m=f?"prerelease":"";for(let x in s)if((x==="major"||x==="minor"||x==="patch")&&s[x]!==o[x])return h+x;return m}};wl.exports=Tv});var yl=F((hw,Al)=>{var $v=me(),Nv=(i,r)=>new $v(i,r).major;Al.exports=Nv});var Ol=F((pw,Rl)=>{var Pv=me(),Fv=(i,r)=>new Pv(i,r).minor;Rl.exports=Fv});var Sl=F((gw,Il)=>{var qv=me(),Dv=(i,r)=>new qv(i,r).patch;Il.exports=Dv});var Ll=F((dw,Cl)=>{var Mv=Kt(),Uv=(i,r)=>{let s=Mv(i,r);return s&&s.prerelease.length?s.prerelease:null};Cl.exports=Uv});var Tl=F((_w,bl)=>{var Hv=ze(),Wv=(i,r,s)=>Hv(r,i,s);bl.exports=Wv});var Nl=F((mw,$l)=>{var Gv=ze(),Bv=(i,r)=>Gv(i,r,!0);$l.exports=Bv});var si=F((vw,Fl)=>{var Pl=me(),Xv=(i,r,s)=>{let o=new Pl(i,s),f=new Pl(r,s);return o.compare(f)||o.compareBuild(f)};Fl.exports=Xv});var Dl=F((Ew,ql)=>{var zv=si(),Vv=(i,r)=>i.sort((s,o)=>zv(s,o,r));ql.exports=Vv});var Ul=F((ww,Ml)=>{var Yv=si(),Kv=(i,r)=>i.sort((s,o)=>Yv(o,s,r));Ml.exports=Kv});var Jn=F((xw,Hl)=>{var Zv=ze(),Jv=(i,r,s)=>Zv(i,r,s)>0;Hl.exports=Jv});var ui=F((Aw,Wl)=>{var Qv=ze(),jv=(i,r,s)=>Qv(i,r,s)<0;Wl.exports=jv});var Xs=F((yw,Gl)=>{var kv=ze(),e1=(i,r,s)=>kv(i,r,s)!==0;Gl.exports=e1});var oi=F((Rw,Bl)=>{var t1=ze(),n1=(i,r,s)=>t1(i,r,s)>=0;Bl.exports=n1});var ai=F((Ow,Xl)=>{var r1=ze(),i1=(i,r,s)=>r1(i,r,s)<=0;Xl.exports=i1});var zs=F((Iw,zl)=>{var s1=ii(),u1=Xs(),o1=Jn(),a1=oi(),l1=ui(),f1=ai(),c1=(i,r,s,o)=>{switch(r){case"===":return typeof i=="object"&&(i=i.version),typeof s=="object"&&(s=s.version),i===s;case"!==":return typeof i=="object"&&(i=i.version),typeof s=="object"&&(s=s.version),i!==s;case"":case"=":case"==":return s1(i,s,o);case"!=":return u1(i,s,o);case">":return o1(i,s,o);case">=":return a1(i,s,o);case"<":return l1(i,s,o);case"<=":return f1(i,s,o);default:throw new TypeError(`Invalid operator: ${r}`)}};zl.exports=c1});var Yl=F((Sw,Vl)=>{var h1=me(),p1=Kt(),{re:li,t:fi}=Yt(),g1=(i,r)=>{if(i instanceof h1)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;r=r||{};let s=null;if(!r.rtl)s=i.match(li[fi.COERCE]);else{let o;for(;(o=li[fi.COERCERTL].exec(i))&&(!s||s.index+s[0].length!==i.length);)(!s||o.index+o[0].length!==s.index+s[0].length)&&(s=o),li[fi.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;li[fi.COERCERTL].lastIndex=-1}return s===null?null:p1(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)};Vl.exports=g1});var Zl=F((Cw,Kl)=>{"use strict";Kl.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var Ql=F((Lw,Jl)=>{"use strict";Jl.exports=Z;Z.Node=Zt;Z.create=Z;function Z(i){var r=this;if(r instanceof Z||(r=new Z),r.tail=null,r.head=null,r.length=0,i&&typeof i.forEach=="function")i.forEach(function(f){r.push(f)});else if(arguments.length>0)for(var s=0,o=arguments.length;s<o;s++)r.push(arguments[s]);return r}Z.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var r=i.next,s=i.prev;return r&&(r.prev=s),s&&(s.next=r),i===this.head&&(this.head=r),i===this.tail&&(this.tail=s),i.list.length--,i.next=null,i.prev=null,i.list=null,r};Z.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var r=this.head;i.list=this,i.next=r,r&&(r.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}};Z.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var r=this.tail;i.list=this,i.prev=r,r&&(r.next=i),this.tail=i,this.head||(this.head=i),this.length++}};Z.prototype.push=function(){for(var i=0,r=arguments.length;i<r;i++)_1(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)m1(this,arguments[i]);return this.length};Z.prototype.pop=function(){if(!!this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}};Z.prototype.shift=function(){if(!!this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}};Z.prototype.forEach=function(i,r){r=r||this;for(var s=this.head,o=0;s!==null;o++)i.call(r,s.value,o,this),s=s.next};Z.prototype.forEachReverse=function(i,r){r=r||this;for(var s=this.tail,o=this.length-1;s!==null;o--)i.call(r,s.value,o,this),s=s.prev};Z.prototype.get=function(i){for(var r=0,s=this.head;s!==null&&r<i;r++)s=s.next;if(r===i&&s!==null)return s.value};Z.prototype.getReverse=function(i){for(var r=0,s=this.tail;s!==null&&r<i;r++)s=s.prev;if(r===i&&s!==null)return s.value};Z.prototype.map=function(i,r){r=r||this;for(var s=new Z,o=this.head;o!==null;)s.push(i.call(r,o.value,this)),o=o.next;return s};Z.prototype.mapReverse=function(i,r){r=r||this;for(var s=new Z,o=this.tail;o!==null;)s.push(i.call(r,o.value,this)),o=o.prev;return s};Z.prototype.reduce=function(i,r){var s,o=this.head;if(arguments.length>1)s=r;else if(this.head)o=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=0;o!==null;f++)s=i(s,o.value,f),o=o.next;return s};Z.prototype.reduceReverse=function(i,r){var s,o=this.tail;if(arguments.length>1)s=r;else if(this.tail)o=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=this.length-1;o!==null;f--)s=i(s,o.value,f),o=o.prev;return s};Z.prototype.toArray=function(){for(var i=new Array(this.length),r=0,s=this.head;s!==null;r++)i[r]=s.value,s=s.next;return i};Z.prototype.toArrayReverse=function(){for(var i=new Array(this.length),r=0,s=this.tail;s!==null;r++)i[r]=s.value,s=s.prev;return i};Z.prototype.slice=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new Z;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(;f!==null&&o<r;o++,f=f.next)s.push(f.value);return s};Z.prototype.sliceReverse=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new Z;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=this.length,f=this.tail;f!==null&&o>r;o--)f=f.prev;for(;f!==null&&o>i;o--,f=f.prev)s.push(f.value);return s};Z.prototype.splice=function(i,r,...s){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(var h=[],o=0;f&&o<r;o++)h.push(f.value),f=this.removeNode(f);f===null&&(f=this.tail),f!==this.head&&f!==this.tail&&(f=f.prev);for(var o=0;o<s.length;o++)f=d1(this,f,s[o]);return h};Z.prototype.reverse=function(){for(var i=this.head,r=this.tail,s=i;s!==null;s=s.prev){var o=s.prev;s.prev=s.next,s.next=o}return this.head=r,this.tail=i,this};function d1(i,r,s){var o=r===i.head?new Zt(s,null,r,i):new Zt(s,r,r.next,i);return o.next===null&&(i.tail=o),o.prev===null&&(i.head=o),i.length++,o}function _1(i,r){i.tail=new Zt(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function m1(i,r){i.head=new Zt(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function Zt(i,r,s,o){if(!(this instanceof Zt))return new Zt(i,r,s,o);this.list=o,this.value=i,r?(r.next=this,this.prev=r):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}try{Zl()(Z)}catch{}});var sf=F((bw,rf)=>{"use strict";var v1=Ql(),Jt=Symbol("max"),wt=Symbol("length"),mn=Symbol("lengthCalculator"),jn=Symbol("allowStale"),Qt=Symbol("maxAge"),Et=Symbol("dispose"),jl=Symbol("noDisposeOnSet"),he=Symbol("lruList"),ke=Symbol("cache"),ef=Symbol("updateAgeOnGet"),Vs=()=>1,tf=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 s=this[Jt]=r.max||1/0,o=r.length||Vs;if(this[mn]=typeof o!="function"?Vs:o,this[jn]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[Qt]=r.maxAge||0,this[Et]=r.dispose,this[jl]=r.noDisposeOnSet||!1,this[ef]=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[Jt]=r||1/0,Qn(this)}get max(){return this[Jt]}set allowStale(r){this[jn]=!!r}get allowStale(){return this[jn]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[Qt]=r,Qn(this)}get maxAge(){return this[Qt]}set lengthCalculator(r){typeof r!="function"&&(r=Vs),r!==this[mn]&&(this[mn]=r,this[wt]=0,this[he].forEach(s=>{s.length=this[mn](s.value,s.key),this[wt]+=s.length})),Qn(this)}get lengthCalculator(){return this[mn]}get length(){return this[wt]}get itemCount(){return this[he].length}rforEach(r,s){s=s||this;for(let o=this[he].tail;o!==null;){let f=o.prev;kl(this,r,o,s),o=f}}forEach(r,s){s=s||this;for(let o=this[he].head;o!==null;){let f=o.next;kl(this,r,o,s),o=f}}keys(){return this[he].toArray().map(r=>r.key)}values(){return this[he].toArray().map(r=>r.value)}reset(){this[Et]&&this[he]&&this[he].length&&this[he].forEach(r=>this[Et](r.key,r.value)),this[ke]=new Map,this[he]=new v1,this[wt]=0}dump(){return this[he].map(r=>ci(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[he]}set(r,s,o){if(o=o||this[Qt],o&&typeof o!="number")throw new TypeError("maxAge must be a number");let f=o?Date.now():0,h=this[mn](s,r);if(this[ke].has(r)){if(h>this[Jt])return vn(this,this[ke].get(r)),!1;let w=this[ke].get(r).value;return this[Et]&&(this[jl]||this[Et](r,w.value)),w.now=f,w.maxAge=o,w.value=s,this[wt]+=h-w.length,w.length=h,this.get(r),Qn(this),!0}let m=new nf(r,s,h,f,o);return m.length>this[Jt]?(this[Et]&&this[Et](r,s),!1):(this[wt]+=m.length,this[he].unshift(m),this[ke].set(r,this[he].head),Qn(this),!0)}has(r){if(!this[ke].has(r))return!1;let s=this[ke].get(r).value;return!ci(this,s)}get(r){return Ys(this,r,!0)}peek(r){return Ys(this,r,!1)}pop(){let r=this[he].tail;return r?(vn(this,r),r.value):null}del(r){vn(this,this[ke].get(r))}load(r){this.reset();let s=Date.now();for(let o=r.length-1;o>=0;o--){let f=r[o],h=f.e||0;if(h===0)this.set(f.k,f.v);else{let m=h-s;m>0&&this.set(f.k,f.v,m)}}}prune(){this[ke].forEach((r,s)=>Ys(this,s,!1))}},Ys=(i,r,s)=>{let o=i[ke].get(r);if(o){let f=o.value;if(ci(i,f)){if(vn(i,o),!i[jn])return}else s&&(i[ef]&&(o.value.now=Date.now()),i[he].unshiftNode(o));return f.value}},ci=(i,r)=>{if(!r||!r.maxAge&&!i[Qt])return!1;let s=Date.now()-r.now;return r.maxAge?s>r.maxAge:i[Qt]&&s>i[Qt]},Qn=i=>{if(i[wt]>i[Jt])for(let r=i[he].tail;i[wt]>i[Jt]&&r!==null;){let s=r.prev;vn(i,r),r=s}},vn=(i,r)=>{if(r){let s=r.value;i[Et]&&i[Et](s.key,s.value),i[wt]-=s.length,i[ke].delete(s.key),i[he].removeNode(r)}},nf=class{constructor(r,s,o,f,h){this.key=r,this.value=s,this.length=o,this.now=f,this.maxAge=h||0}},kl=(i,r,s,o)=>{let f=s.value;ci(i,f)&&(vn(i,s),i[jn]||(f=void 0)),f&&r.call(o,f.value,f.key,i)};rf.exports=tf});var Ve=F((Tw,lf)=>{var En=class{constructor(r,s){if(s=w1(s),r instanceof En)return r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease?r:new En(r.raw,s);if(r instanceof Ks)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease,this.raw=r,this.set=r.split(/\s*\|\|\s*/).map(o=>this.parseRange(o.trim())).filter(o=>o.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);if(this.set.length>1){let o=this.set[0];if(this.set=this.set.filter(f=>!of(f[0])),this.set.length===0)this.set=[o];else if(this.set.length>1){for(let f of this.set)if(f.length===1&&O1(f[0])){this.set=[f];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 o=`parseRange:${Object.keys(this.options).join(",")}:${r}`,f=uf.get(o);if(f)return f;let h=this.options.loose,m=h?ve[ge.HYPHENRANGELOOSE]:ve[ge.HYPHENRANGE];r=r.replace(m,F1(this.options.includePrerelease)),oe("hyphen replace",r),r=r.replace(ve[ge.COMPARATORTRIM],A1),oe("comparator trim",r,ve[ge.COMPARATORTRIM]),r=r.replace(ve[ge.TILDETRIM],y1),r=r.replace(ve[ge.CARETTRIM],R1),r=r.split(/\s+/).join(" ");let x=h?ve[ge.COMPARATORLOOSE]:ve[ge.COMPARATOR],w=r.split(" ").map(T=>I1(T,this.options)).join(" ").split(/\s+/).map(T=>P1(T,this.options)).filter(this.options.loose?T=>!!T.match(x):()=>!0).map(T=>new Ks(T,this.options)),v=w.length,I=new Map;for(let T of w){if(of(T))return[T];I.set(T.value,T)}I.size>1&&I.has("")&&I.delete("");let $=[...I.values()];return uf.set(o,$),$}intersects(r,s){if(!(r instanceof En))throw new TypeError("a Range is required");return this.set.some(o=>af(o,s)&&r.set.some(f=>af(f,s)&&o.every(h=>f.every(m=>h.intersects(m,s)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new x1(r,this.options)}catch{return!1}for(let s=0;s<this.set.length;s++)if(q1(this.set[s],r,this.options))return!0;return!1}};lf.exports=En;var E1=sf(),uf=new E1({max:1e3}),w1=Kn(),Ks=kn(),oe=Yn(),x1=me(),{re:ve,t:ge,comparatorTrimReplace:A1,tildeTrimReplace:y1,caretTrimReplace:R1}=Yt(),of=i=>i.value==="<0.0.0-0",O1=i=>i.value==="",af=(i,r)=>{let s=!0,o=i.slice(),f=o.pop();for(;s&&o.length;)s=o.every(h=>f.intersects(h,r)),f=o.pop();return s},I1=(i,r)=>(oe("comp",i,r),i=L1(i,r),oe("caret",i),i=S1(i,r),oe("tildes",i),i=T1(i,r),oe("xrange",i),i=N1(i,r),oe("stars",i),i),Ae=i=>!i||i.toLowerCase()==="x"||i==="*",S1=(i,r)=>i.trim().split(/\s+/).map(s=>C1(s,r)).join(" "),C1=(i,r)=>{let s=r.loose?ve[ge.TILDELOOSE]:ve[ge.TILDE];return i.replace(s,(o,f,h,m,x)=>{oe("tilde",i,o,f,h,m,x);let w;return Ae(f)?w="":Ae(h)?w=`>=${f}.0.0 <${+f+1}.0.0-0`:Ae(m)?w=`>=${f}.${h}.0 <${f}.${+h+1}.0-0`:x?(oe("replaceTilde pr",x),w=`>=${f}.${h}.${m}-${x} <${f}.${+h+1}.0-0`):w=`>=${f}.${h}.${m} <${f}.${+h+1}.0-0`,oe("tilde return",w),w})},L1=(i,r)=>i.trim().split(/\s+/).map(s=>b1(s,r)).join(" "),b1=(i,r)=>{oe("caret",i,r);let s=r.loose?ve[ge.CARETLOOSE]:ve[ge.CARET],o=r.includePrerelease?"-0":"";return i.replace(s,(f,h,m,x,w)=>{oe("caret",i,f,h,m,x,w);let v;return Ae(h)?v="":Ae(m)?v=`>=${h}.0.0${o} <${+h+1}.0.0-0`:Ae(x)?h==="0"?v=`>=${h}.${m}.0${o} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.0${o} <${+h+1}.0.0-0`:w?(oe("replaceCaret pr",w),h==="0"?m==="0"?v=`>=${h}.${m}.${x}-${w} <${h}.${m}.${+x+1}-0`:v=`>=${h}.${m}.${x}-${w} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.${x}-${w} <${+h+1}.0.0-0`):(oe("no pr"),h==="0"?m==="0"?v=`>=${h}.${m}.${x}${o} <${h}.${m}.${+x+1}-0`:v=`>=${h}.${m}.${x}${o} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.${x} <${+h+1}.0.0-0`),oe("caret return",v),v})},T1=(i,r)=>(oe("replaceXRanges",i,r),i.split(/\s+/).map(s=>$1(s,r)).join(" ")),$1=(i,r)=>{i=i.trim();let s=r.loose?ve[ge.XRANGELOOSE]:ve[ge.XRANGE];return i.replace(s,(o,f,h,m,x,w)=>{oe("xRange",i,o,f,h,m,x,w);let v=Ae(h),I=v||Ae(m),$=I||Ae(x),T=$;return f==="="&&T&&(f=""),w=r.includePrerelease?"-0":"",v?f===">"||f==="<"?o="<0.0.0-0":o="*":f&&T?(I&&(m=0),x=0,f===">"?(f=">=",I?(h=+h+1,m=0,x=0):(m=+m+1,x=0)):f==="<="&&(f="<",I?h=+h+1:m=+m+1),f==="<"&&(w="-0"),o=`${f+h}.${m}.${x}${w}`):I?o=`>=${h}.0.0${w} <${+h+1}.0.0-0`:$&&(o=`>=${h}.${m}.0${w} <${h}.${+m+1}.0-0`),oe("xRange return",o),o})},N1=(i,r)=>(oe("replaceStars",i,r),i.trim().replace(ve[ge.STAR],"")),P1=(i,r)=>(oe("replaceGTE0",i,r),i.trim().replace(ve[r.includePrerelease?ge.GTE0PRE:ge.GTE0],"")),F1=i=>(r,s,o,f,h,m,x,w,v,I,$,T,P)=>(Ae(o)?s="":Ae(f)?s=`>=${o}.0.0${i?"-0":""}`:Ae(h)?s=`>=${o}.${f}.0${i?"-0":""}`:m?s=`>=${s}`:s=`>=${s}${i?"-0":""}`,Ae(v)?w="":Ae(I)?w=`<${+v+1}.0.0-0`:Ae($)?w=`<${v}.${+I+1}.0-0`:T?w=`<=${v}.${I}.${$}-${T}`:i?w=`<${v}.${I}.${+$+1}-0`:w=`<=${w}`,`${s} ${w}`.trim()),q1=(i,r,s)=>{for(let o=0;o<i.length;o++)if(!i[o].test(r))return!1;if(r.prerelease.length&&!s.includePrerelease){for(let o=0;o<i.length;o++)if(oe(i[o].semver),i[o].semver!==Ks.ANY&&i[o].semver.prerelease.length>0){let f=i[o].semver;if(f.major===r.major&&f.minor===r.minor&&f.patch===r.patch)return!0}return!1}return!0}});var kn=F(($w,gf)=>{var er=Symbol("SemVer ANY"),tr=class{static get ANY(){return er}constructor(r,s){if(s=D1(s),r instanceof tr){if(r.loose===!!s.loose)return r;r=r.value}Js("comparator",r,s),this.options=s,this.loose=!!s.loose,this.parse(r),this.semver===er?this.value="":this.value=this.operator+this.semver.version,Js("comp",this)}parse(r){let s=this.options.loose?ff[cf.COMPARATORLOOSE]:ff[cf.COMPARATOR],o=r.match(s);if(!o)throw new TypeError(`Invalid comparator: ${r}`);this.operator=o[1]!==void 0?o[1]:"",this.operator==="="&&(this.operator=""),o[2]?this.semver=new hf(o[2],this.options.loose):this.semver=er}toString(){return this.value}test(r){if(Js("Comparator.test",r,this.options.loose),this.semver===er||r===er)return!0;if(typeof r=="string")try{r=new hf(r,this.options)}catch{return!1}return Zs(r,this.operator,this.semver,this.options)}intersects(r,s){if(!(r instanceof tr))throw new TypeError("a Comparator is required");if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new pf(r.value,s).test(this.value);if(r.operator==="")return r.value===""?!0:new pf(this.value,s).test(r.semver);let o=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),f=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),h=this.semver.version===r.semver.version,m=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),x=Zs(this.semver,"<",r.semver,s)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),w=Zs(this.semver,">",r.semver,s)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return o||f||h&&m||x||w}};gf.exports=tr;var D1=Kn(),{re:ff,t:cf}=Yt(),Zs=zs(),Js=Yn(),hf=me(),pf=Ve()});var nr=F((Nw,df)=>{var M1=Ve(),U1=(i,r,s)=>{try{r=new M1(r,s)}catch{return!1}return r.test(i)};df.exports=U1});var mf=F((Pw,_f)=>{var H1=Ve(),W1=(i,r)=>new H1(i,r).set.map(s=>s.map(o=>o.value).join(" ").trim().split(" "));_f.exports=W1});var Ef=F((Fw,vf)=>{var G1=me(),B1=Ve(),X1=(i,r,s)=>{let o=null,f=null,h=null;try{h=new B1(r,s)}catch{return null}return i.forEach(m=>{h.test(m)&&(!o||f.compare(m)===-1)&&(o=m,f=new G1(o,s))}),o};vf.exports=X1});var xf=F((qw,wf)=>{var z1=me(),V1=Ve(),Y1=(i,r,s)=>{let o=null,f=null,h=null;try{h=new V1(r,s)}catch{return null}return i.forEach(m=>{h.test(m)&&(!o||f.compare(m)===1)&&(o=m,f=new z1(o,s))}),o};wf.exports=Y1});var Rf=F((Dw,yf)=>{var Qs=me(),K1=Ve(),Af=Jn(),Z1=(i,r)=>{i=new K1(i,r);let s=new Qs("0.0.0");if(i.test(s)||(s=new Qs("0.0.0-0"),i.test(s)))return s;s=null;for(let o=0;o<i.set.length;++o){let f=i.set[o],h=null;f.forEach(m=>{let x=new Qs(m.semver.version);switch(m.operator){case">":x.prerelease.length===0?x.patch++:x.prerelease.push(0),x.raw=x.format();case"":case">=":(!h||Af(x,h))&&(h=x);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${m.operator}`)}}),h&&(!s||Af(s,h))&&(s=h)}return s&&i.test(s)?s:null};yf.exports=Z1});var If=F((Mw,Of)=>{var J1=Ve(),Q1=(i,r)=>{try{return new J1(i,r).range||"*"}catch{return null}};Of.exports=Q1});var hi=F((Uw,bf)=>{var j1=me(),Lf=kn(),{ANY:k1}=Lf,eE=Ve(),tE=nr(),Sf=Jn(),Cf=ui(),nE=ai(),rE=oi(),iE=(i,r,s,o)=>{i=new j1(i,o),r=new eE(r,o);let f,h,m,x,w;switch(s){case">":f=Sf,h=nE,m=Cf,x=">",w=">=";break;case"<":f=Cf,h=rE,m=Sf,x="<",w="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(tE(i,r,o))return!1;for(let v=0;v<r.set.length;++v){let I=r.set[v],$=null,T=null;if(I.forEach(P=>{P.semver===k1&&(P=new Lf(">=0.0.0")),$=$||P,T=T||P,f(P.semver,$.semver,o)?$=P:m(P.semver,T.semver,o)&&(T=P)}),$.operator===x||$.operator===w||(!T.operator||T.operator===x)&&h(i,T.semver))return!1;if(T.operator===w&&m(i,T.semver))return!1}return!0};bf.exports=iE});var $f=F((Hw,Tf)=>{var sE=hi(),uE=(i,r,s)=>sE(i,r,">",s);Tf.exports=uE});var Pf=F((Ww,Nf)=>{var oE=hi(),aE=(i,r,s)=>oE(i,r,"<",s);Nf.exports=aE});var Df=F((Gw,qf)=>{var Ff=Ve(),lE=(i,r,s)=>(i=new Ff(i,s),r=new Ff(r,s),i.intersects(r));qf.exports=lE});var Uf=F((Bw,Mf)=>{var fE=nr(),cE=ze();Mf.exports=(i,r,s)=>{let o=[],f=null,h=null,m=i.sort((I,$)=>cE(I,$,s));for(let I of m)fE(I,r,s)?(h=I,f||(f=I)):(h&&o.push([f,h]),h=null,f=null);f&&o.push([f,null]);let x=[];for(let[I,$]of o)I===$?x.push(I):!$&&I===m[0]?x.push("*"):$?I===m[0]?x.push(`<=${$}`):x.push(`${I} - ${$}`):x.push(`>=${I}`);let w=x.join(" || "),v=typeof r.raw=="string"?r.raw:String(r);return w.length<v.length?w:r}});var Xf=F((Xw,Bf)=>{var Hf=Ve(),pi=kn(),{ANY:js}=pi,rr=nr(),ks=ze(),hE=(i,r,s={})=>{if(i===r)return!0;i=new Hf(i,s),r=new Hf(r,s);let o=!1;e:for(let f of i.set){for(let h of r.set){let m=pE(f,h,s);if(o=o||m!==null,m)continue e}if(o)return!1}return!0},pE=(i,r,s)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===js){if(r.length===1&&r[0].semver===js)return!0;s.includePrerelease?i=[new pi(">=0.0.0-0")]:i=[new pi(">=0.0.0")]}if(r.length===1&&r[0].semver===js){if(s.includePrerelease)return!0;r=[new pi(">=0.0.0")]}let o=new Set,f,h;for(let P of i)P.operator===">"||P.operator===">="?f=Wf(f,P,s):P.operator==="<"||P.operator==="<="?h=Gf(h,P,s):o.add(P.semver);if(o.size>1)return null;let m;if(f&&h){if(m=ks(f.semver,h.semver,s),m>0)return null;if(m===0&&(f.operator!==">="||h.operator!=="<="))return null}for(let P of o){if(f&&!rr(P,String(f),s)||h&&!rr(P,String(h),s))return null;for(let ye of r)if(!rr(P,String(ye),s))return!1;return!0}let x,w,v,I,$=h&&!s.includePrerelease&&h.semver.prerelease.length?h.semver:!1,T=f&&!s.includePrerelease&&f.semver.prerelease.length?f.semver:!1;$&&$.prerelease.length===1&&h.operator==="<"&&$.prerelease[0]===0&&($=!1);for(let P of r){if(I=I||P.operator===">"||P.operator===">=",v=v||P.operator==="<"||P.operator==="<=",f){if(T&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===T.major&&P.semver.minor===T.minor&&P.semver.patch===T.patch&&(T=!1),P.operator===">"||P.operator===">="){if(x=Wf(f,P,s),x===P&&x!==f)return!1}else if(f.operator===">="&&!rr(f.semver,String(P),s))return!1}if(h){if($&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===$.major&&P.semver.minor===$.minor&&P.semver.patch===$.patch&&($=!1),P.operator==="<"||P.operator==="<="){if(w=Gf(h,P,s),w===P&&w!==h)return!1}else if(h.operator==="<="&&!rr(h.semver,String(P),s))return!1}if(!P.operator&&(h||f)&&m!==0)return!1}return!(f&&v&&!h&&m!==0||h&&I&&!f&&m!==0||T||$)},Wf=(i,r,s)=>{if(!i)return r;let o=ks(i.semver,r.semver,s);return o>0?i:o<0||r.operator===">"&&i.operator===">="?r:i},Gf=(i,r,s)=>{if(!i)return r;let o=ks(i.semver,r.semver,s);return o<0?i:o>0||r.operator==="<"&&i.operator==="<="?r:i};Bf.exports=hE});var Vf=F((zw,zf)=>{var eu=Yt();zf.exports={re:eu.re,src:eu.src,tokens:eu.t,SEMVER_SPEC_VERSION:Vn().SEMVER_SPEC_VERSION,SemVer:me(),compareIdentifiers:ti().compareIdentifiers,rcompareIdentifiers:ti().rcompareIdentifiers,parse:Kt(),valid:cl(),clean:pl(),inc:dl(),diff:xl(),major:yl(),minor:Ol(),patch:Sl(),prerelease:Ll(),compare:ze(),rcompare:Tl(),compareLoose:Nl(),compareBuild:si(),sort:Dl(),rsort:Ul(),gt:Jn(),lt:ui(),eq:ii(),neq:Xs(),gte:oi(),lte:ai(),cmp:zs(),coerce:Yl(),Comparator:kn(),Range:Ve(),satisfies:nr(),toComparators:mf(),maxSatisfying:Ef(),minSatisfying:xf(),minVersion:Rf(),validRange:If(),outside:hi(),gtr:$f(),ltr:Pf(),intersects:Df(),simplifyRange:Uf(),subset:Xf()}});var gi=F(Fe=>{"use strict";var gE=Fe&&Fe.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),dE=Fe&&Fe.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),_E=Fe&&Fe.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&gE(r,i,s);return dE(r,i),r},Yf=Fe&&Fe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.getCoreVersion=void 0;var Kf=Yf(require("path")),Zf=Yf(require("fs")),tu=_E(require("@serverless-devs/core")),mE=Vf(),Jf=Kf.default.join(tu.getRootHome(),"cache","core"),nu=Kf.default.join(Jf,"package.json");function vE(){if(Zf.default.existsSync(nu)){var i=require("@serverless-devs/core/package.json").version,r=Qf();return mE.gt(r,i)?require(Jf):tu}return tu}function Qf(){return Zf.default.existsSync(nu)?require(nu).version:void 0}Fe.getCoreVersion=Qf;Fe.default=vE()});var nc=F(Ce=>{"use strict";var EE=Ce&&Ce.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function x(I){try{v(o.next(I))}catch($){m($)}}function w(I){try{v(o.throw(I))}catch($){m($)}}function v(I){I.done?h(I.value):f(I.value).then(x,w)}v((o=o.apply(i,r||[])).next())})},wE=Ce&&Ce.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:x(0),throw:x(1),return:x(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function x(v){return function(I){return w([v,I])}}function w(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(I){v=[6,I],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},jf=Ce&&Ce.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.handlerProfileFile=Ce.getConfig=Ce.setConfig=void 0;var kf=jf(require("path")),iu=jf(gi()),ut=iu.default.fse,di=iu.default.jsyaml,ru=iu.default.getRootHome;function xE(i){var r=tc();ut.writeFileSync(r,di.dump(i))}function ec(){var i=tc();if(!ut.existsSync(i))return{};try{var r=di.load(ut.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function tc(){var i=kf.default.join(ru(),"set-config.yml");return ut.existsSync(i)||ut.createFileSync(i),i}function AE(i,r){var s=ec();s[i]=r,xE(s)}Ce.setConfig=AE;function yE(i,r){var s=ec();return s[i]||r}Ce.getConfig=yE;function RE(i){return EE(this,void 0,void 0,function(){var r,s,o,f,h,m,x;return wE(this,function(w){switch(w.label){case 0:if(r=i.filePath||"set-config.yml",s=kf.default.join(ru(),r),o=ut.existsSync(s),f={},o)return[3,5];h=ru(),w.label=1;case 1:return w.trys.push([1,2,,4]),ut.statSync(h),[3,4];case 2:return m=w.sent(),[4,ut.mkdirSync(h)];case 3:return w.sent(),[3,4];case 4:return[3,6];case 5:try{f=di.load(ut.readFileSync(s,"utf8"))||{}}catch(v){throw v}w.label=6;case 6:return i.read?[2,f]:(x=i.configKey||"",f[x]=i.data,[4,ut.writeFileSync(s,di.dump(f))]);case 7:return w.sent(),[2,f]}})})}Ce.handlerProfileFile=RE});var rc=F((Kw,OE)=>{OE.exports={name:"@serverless-devs/s",version:"2.0.100-beta.8",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/lodash":"^4.14.168","@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",lodash:"^4.17.20","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","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var ac=F(U=>{"use strict";var IE=U&&U.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),SE=U&&U.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),CE=U&&U.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&IE(r,i,s);return SE(r,i),r},sr=U&&U.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function x(I){try{v(o.next(I))}catch($){m($)}}function w(I){try{v(o.throw(I))}catch($){m($)}}function v(I){I.done?h(I.value):f(I.value).then(x,w)}v((o=o.apply(i,r||[])).next())})},ur=U&&U.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:x(0),throw:x(1),return:x(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function x(v){return function(I){return w([v,I])}}function w(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(I){v=[6,I],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},su=U&&U.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(U,"__esModule",{value:!0});U.emoji=U.mark=U.replaceTemplate=U.replaceFun=U.getLang=U.printn=U.getFolderSize=U.getVersion=U.getPid=U.aiRequest=U.getCredentialWithAll=U.getCredentialWithExisted=U.getProcessArgv=U.bgRed=U.yellow=U.red=void 0;var LE=su(require("path")),ir=su(require("fs")),Nt=Ka(),bE=su(require("os")),ot=CE(gi()),TE=nc(),ic=rc(),_i=ot.default.colors,$E=ot.default.got,NE=ot.default.getMAC,PE=ot.default.isDocker,FE=ot.default.isCiCdEnv,qE=ot.default.getGlobalArgs,sc=ot.default.getCredential,uc=ot.default.getCredentialAliasList;U.red=_i.hex("#fd5750");U.yellow=_i.hex("#F3F99D");U.bgRed=_i.hex("#000").bgHex("#fd5750");var DE=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=qE(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Nt.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Nt.filter)(s._argsObj,function(o){return!(0,Nt.includes)(["-h","--help"],o)}))})}catch{return{}}};U.getProcessArgv=DE;var ME=function(i){return sr(void 0,void 0,void 0,function(){var r,s;return ur(this,function(o){switch(o.label){case 0:return[4,uc()];case 1:return r=o.sent(),(0,Nt.includes)(r,i)?[4,sc(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Nt.omit)(s,"Alias")];case 3:return[2]}})})};U.getCredentialWithExisted=ME;var UE=function(){return sr(void 0,void 0,void 0,function(){var i,r,s,o,f,h;return ur(this,function(m){switch(m.label){case 0:return[4,uc()];case 1:if(i=m.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,m.label=2;case 2:return s<o.length?(f=o[s],[4,sc(f)]):[3,5];case 3:h=m.sent(),r[h.Alias]=(0,Nt.omit)(h,"Alias"),m.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};U.getCredentialWithAll=UE;var HE=function(i,r){return r===void 0&&(r="unknow"),sr(void 0,void 0,void 0,function(){var s,o,f,h;return ur(this,function(m){switch(m.label){case 0:return m.trys.push([0,2,,3]),s=(0,TE.getConfig)("analysis"),s!=="enable"?[2]:PE()||FE()?[2]:[4,$E("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0})];case 1:return o=m.sent(),f=(0,Nt.get)(o.body,"shorturl"),f&&console.log(`AI Tips:
34
+ }`;var B=Da(function(){return J(c,N+"return "+O).apply(i,p)});if(B.source=O,Ls(B))throw B;return B}function hm(e){return Q(e).toLowerCase()}function pm(e){return Q(e).toUpperCase()}function gm(e,t,n){if(e=Q(e),e&&(n||t===i))return zu(e);if(!e||!(t=Te(t)))return e;var u=Ze(e),a=Ze(t),c=Vu(u,a),p=Yu(u,a)+1;return bt(u,c,p).join("")}function dm(e,t,n){if(e=Q(e),e&&(n||t===i))return e.slice(0,Zu(e)+1);if(!e||!(t=Te(t)))return e;var u=Ze(e),a=Yu(u,Ze(t))+1;return bt(u,0,a).join("")}function _m(e,t,n){if(e=Q(e),e&&(n||t===i))return e.replace(Li,"");if(!e||!(t=Te(t)))return e;var u=Ze(e),a=Vu(u,Ze(t));return bt(u,a).join("")}function mm(e,t){var n=fc,u=cc;if(re(t)){var a="separator"in t?t.separator:a;n="length"in t?G(t.length):n,u="omission"in t?Te(t.omission):u}e=Q(e);var c=e.length;if(sn(e)){var p=Ze(e);c=p.length}if(n>=c)return e;var g=n-un(u);if(g<1)return u;var _=p?bt(p,0,g).join(""):e.slice(0,g);if(a===i)return _+u;if(p&&(g+=_.length-g),bs(a)){if(e.slice(g).search(a)){var y,R=_;for(a.global||(a=Vi(a.source,Q(pu.exec(a))+"g")),a.lastIndex=0;y=a.exec(R);)var O=y.index;_=_.slice(0,O===i?g:O)}}else if(e.indexOf(Te(a),g)!=g){var S=_.lastIndexOf(a);S>-1&&(_=_.slice(0,S))}return _+u}function vm(e){return e=Q(e),e&&Lc.test(e)?e.replace(fu,Yh):e}var Em=hn(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Ns=Mo("toUpperCase");function qa(e,t,n){return e=Q(e),t=n?i:t,t===i?Gh(e)?Jh(e):Nh(e):e.match(t)||[]}var Da=z(function(e,t){try{return Le(e,i,t)}catch(n){return Ls(n)?n:new H(n)}}),wm=gt(function(e,t){return De(t,function(n){n=st(n),ht(e,n,Ss(e[n],e))}),e});function xm(e){var t=e==null?0:e.length,n=q();return e=t?ne(e,function(u){if(typeof u[1]!="function")throw new Me(f);return[n(u[0]),u[1]]}):[],z(function(u){for(var a=-1;++a<t;){var c=e[a];if(Le(c[0],this,u))return Le(c[1],this,u)}})}function Am(e){return Yp(He(e,v))}function Ps(e){return function(){return e}}function ym(e,t){return e==null||e!==e?t:e}var Rm=Ho(),Om=Ho(!0);function Se(e){return e}function Fs(e){return _o(typeof e=="function"?e:He(e,v))}function Im(e){return vo(He(e,v))}function Sm(e,t){return Eo(e,He(t,v))}var Cm=z(function(e,t){return function(n){return qn(n,e,t)}}),Lm=z(function(e,t){return function(n){return qn(e,n,t)}});function qs(e,t,n){var u=ce(t),a=Pr(t,u);n==null&&!(re(t)&&(a.length||!u.length))&&(n=t,t=e,e=this,a=Pr(t,ce(t)));var c=!(re(n)&&"chain"in n)||!!n.chain,p=_t(e);return De(a,function(g){var _=t[g];e[g]=_,p&&(e.prototype[g]=function(){var y=this.__chain__;if(c||y){var R=e(this.__wrapped__),O=R.__actions__=Re(this.__actions__);return O.push({func:_,args:arguments,thisArg:e}),R.__chain__=y,R}return _.apply(e,yt([this.value()],arguments))})}),e}function bm(){return fe._===this&&(fe._=np),this}function Ds(){}function Tm(e){return e=G(e),z(function(t){return wo(t,e)})}var $m=gs(ne),Nm=gs(Hu),Pm=gs(Ui);function Ma(e){return xs(e)?Hi(st(e)):fg(e)}function Fm(e){return function(t){return e==null?i:Wt(e,t)}}var qm=Go(),Dm=Go(!0);function Ms(){return[]}function Us(){return!1}function Mm(){return{}}function Um(){return""}function Hm(){return!0}function Wm(e,t){if(e=G(e),e<1||e>xt)return[];var n=nt,u=de(e,nt);t=q(t),e-=nt;for(var a=Bi(u,t);++n<e;)t(n);return a}function Gm(e){return W(e)?ne(e,st):$e(e)?[e]:Re(ia(Q(e)))}function Bm(e){var t=++ep;return Q(e)+t}var Xm=Hr(function(e,t){return e+t},0),zm=ds("ceil"),Vm=Hr(function(e,t){return e/t},1),Ym=ds("floor");function Km(e){return e&&e.length?Nr(e,Se,es):i}function Zm(e,t){return e&&e.length?Nr(e,q(t,2),es):i}function Jm(e){return Bu(e,Se)}function Qm(e,t){return Bu(e,q(t,2))}function jm(e){return e&&e.length?Nr(e,Se,is):i}function km(e,t){return e&&e.length?Nr(e,q(t,2),is):i}var ev=Hr(function(e,t){return e*t},1),tv=ds("round"),nv=Hr(function(e,t){return e-t},0);function rv(e){return e&&e.length?Gi(e,Se):0}function iv(e,t){return e&&e.length?Gi(e,q(t,2)):0}return l.after=I0,l.ary=da,l.assign=p_,l.assignIn=La,l.assignInWith=kr,l.assignWith=g_,l.at=d_,l.before=_a,l.bind=Ss,l.bindAll=wm,l.bindKey=ma,l.castArray=M0,l.chain=ha,l.chunk=Yg,l.compact=Kg,l.concat=Zg,l.cond=xm,l.conforms=Am,l.constant=Ps,l.countBy=r0,l.create=__,l.curry=va,l.curryRight=Ea,l.debounce=wa,l.defaults=m_,l.defaultsDeep=v_,l.defer=S0,l.delay=C0,l.difference=Jg,l.differenceBy=Qg,l.differenceWith=jg,l.drop=kg,l.dropRight=ed,l.dropRightWhile=td,l.dropWhile=nd,l.fill=rd,l.filter=s0,l.flatMap=a0,l.flatMapDeep=l0,l.flatMapDepth=f0,l.flatten=aa,l.flattenDeep=id,l.flattenDepth=sd,l.flip=L0,l.flow=Rm,l.flowRight=Om,l.fromPairs=ud,l.functions=O_,l.functionsIn=I_,l.groupBy=c0,l.initial=ad,l.intersection=ld,l.intersectionBy=fd,l.intersectionWith=cd,l.invert=C_,l.invertBy=L_,l.invokeMap=p0,l.iteratee=Fs,l.keyBy=g0,l.keys=ce,l.keysIn=Ie,l.map=Yr,l.mapKeys=T_,l.mapValues=$_,l.matches=Im,l.matchesProperty=Sm,l.memoize=Zr,l.merge=N_,l.mergeWith=ba,l.method=Cm,l.methodOf=Lm,l.mixin=qs,l.negate=Jr,l.nthArg=Tm,l.omit=P_,l.omitBy=F_,l.once=b0,l.orderBy=d0,l.over=$m,l.overArgs=T0,l.overEvery=Nm,l.overSome=Pm,l.partial=Cs,l.partialRight=xa,l.partition=_0,l.pick=q_,l.pickBy=Ta,l.property=Ma,l.propertyOf=Fm,l.pull=dd,l.pullAll=fa,l.pullAllBy=_d,l.pullAllWith=md,l.pullAt=vd,l.range=qm,l.rangeRight=Dm,l.rearg=$0,l.reject=E0,l.remove=Ed,l.rest=N0,l.reverse=Os,l.sampleSize=x0,l.set=M_,l.setWith=U_,l.shuffle=A0,l.slice=wd,l.sortBy=O0,l.sortedUniq=Sd,l.sortedUniqBy=Cd,l.split=am,l.spread=P0,l.tail=Ld,l.take=bd,l.takeRight=Td,l.takeRightWhile=$d,l.takeWhile=Nd,l.tap=Kd,l.throttle=F0,l.thru=Vr,l.toArray=Ia,l.toPairs=$a,l.toPairsIn=Na,l.toPath=Gm,l.toPlainObject=Ca,l.transform=H_,l.unary=q0,l.union=Pd,l.unionBy=Fd,l.unionWith=qd,l.uniq=Dd,l.uniqBy=Md,l.uniqWith=Ud,l.unset=W_,l.unzip=Is,l.unzipWith=ca,l.update=G_,l.updateWith=B_,l.values=dn,l.valuesIn=X_,l.without=Hd,l.words=qa,l.wrap=D0,l.xor=Wd,l.xorBy=Gd,l.xorWith=Bd,l.zip=Xd,l.zipObject=zd,l.zipObjectDeep=Vd,l.zipWith=Yd,l.entries=$a,l.entriesIn=Na,l.extend=La,l.extendWith=kr,qs(l,l),l.add=Xm,l.attempt=Da,l.camelCase=K_,l.capitalize=Pa,l.ceil=zm,l.clamp=z_,l.clone=U0,l.cloneDeep=W0,l.cloneDeepWith=G0,l.cloneWith=H0,l.conformsTo=B0,l.deburr=Fa,l.defaultTo=ym,l.divide=Vm,l.endsWith=Z_,l.eq=Qe,l.escape=J_,l.escapeRegExp=Q_,l.every=i0,l.find=u0,l.findIndex=ua,l.findKey=E_,l.findLast=o0,l.findLastIndex=oa,l.findLastKey=w_,l.floor=Ym,l.forEach=pa,l.forEachRight=ga,l.forIn=x_,l.forInRight=A_,l.forOwn=y_,l.forOwnRight=R_,l.get=Ts,l.gt=X0,l.gte=z0,l.has=S_,l.hasIn=$s,l.head=la,l.identity=Se,l.includes=h0,l.indexOf=od,l.inRange=V_,l.invoke=b_,l.isArguments=Xt,l.isArray=W,l.isArrayBuffer=V0,l.isArrayLike=Oe,l.isArrayLikeObject=se,l.isBoolean=Y0,l.isBuffer=Tt,l.isDate=K0,l.isElement=Z0,l.isEmpty=J0,l.isEqual=Q0,l.isEqualWith=j0,l.isError=Ls,l.isFinite=k0,l.isFunction=_t,l.isInteger=Aa,l.isLength=Qr,l.isMap=ya,l.isMatch=e_,l.isMatchWith=t_,l.isNaN=n_,l.isNative=r_,l.isNil=s_,l.isNull=i_,l.isNumber=Ra,l.isObject=re,l.isObjectLike=ie,l.isPlainObject=Gn,l.isRegExp=bs,l.isSafeInteger=u_,l.isSet=Oa,l.isString=jr,l.isSymbol=$e,l.isTypedArray=gn,l.isUndefined=o_,l.isWeakMap=a_,l.isWeakSet=l_,l.join=hd,l.kebabCase=j_,l.last=Ge,l.lastIndexOf=pd,l.lowerCase=k_,l.lowerFirst=em,l.lt=f_,l.lte=c_,l.max=Km,l.maxBy=Zm,l.mean=Jm,l.meanBy=Qm,l.min=jm,l.minBy=km,l.stubArray=Ms,l.stubFalse=Us,l.stubObject=Mm,l.stubString=Um,l.stubTrue=Hm,l.multiply=ev,l.nth=gd,l.noConflict=bm,l.noop=Ds,l.now=Kr,l.pad=tm,l.padEnd=nm,l.padStart=rm,l.parseInt=im,l.random=Y_,l.reduce=m0,l.reduceRight=v0,l.repeat=sm,l.replace=um,l.result=D_,l.round=tv,l.runInContext=d,l.sample=w0,l.size=y0,l.snakeCase=om,l.some=R0,l.sortedIndex=xd,l.sortedIndexBy=Ad,l.sortedIndexOf=yd,l.sortedLastIndex=Rd,l.sortedLastIndexBy=Od,l.sortedLastIndexOf=Id,l.startCase=lm,l.startsWith=fm,l.subtract=nv,l.sum=rv,l.sumBy=iv,l.template=cm,l.times=Wm,l.toFinite=mt,l.toInteger=G,l.toLength=Sa,l.toLower=hm,l.toNumber=Be,l.toSafeInteger=h_,l.toString=Q,l.toUpper=pm,l.trim=gm,l.trimEnd=dm,l.trimStart=_m,l.truncate=mm,l.unescape=vm,l.uniqueId=Bm,l.upperCase=Em,l.upperFirst=Ns,l.each=pa,l.eachRight=ga,l.first=la,qs(l,function(){var e={};return rt(l,function(t,n){j.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=r,De(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),De(["drop","take"],function(e,t){Y.prototype[e]=function(n){n=n===i?1:le(G(n),0);var u=this.__filtered__&&!t?new Y(this):this.clone();return u.__filtered__?u.__takeCount__=de(n,u.__takeCount__):u.__views__.push({size:de(n,nt),type:e+(u.__dir__<0?"Right":"")}),u},Y.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),De(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==ou||n==dc;Y.prototype[e]=function(a){var c=this.clone();return c.__iteratees__.push({iteratee:q(a,3),type:n}),c.__filtered__=c.__filtered__||u,c}}),De(["head","last"],function(e,t){var n="take"+(t?"Right":"");Y.prototype[e]=function(){return this[n](1).value()[0]}}),De(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[n](1)}}),Y.prototype.compact=function(){return this.filter(Se)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new Y(this):this.map(function(n){return qn(n,e,t)})}),Y.prototype.reject=function(e){return this.filter(Jr(q(e)))},Y.prototype.slice=function(e,t){e=G(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Y(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=G(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(nt)},rt(Y.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),a=l[u?"take"+(t=="last"?"Right":""):t],c=u||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,g=u?[1]:arguments,_=p instanceof Y,y=g[0],R=_||W(p),O=function(V){var K=a.apply(l,yt([V],g));return u&&S?K[0]:K};R&&n&&typeof y=="function"&&y.length!=1&&(_=R=!1);var S=this.__chain__,N=!!this.__actions__.length,D=c&&!S,B=_&&!N;if(!c&&R){p=B?p:new Y(this);var M=e.apply(p,g);return M.__actions__.push({func:Vr,args:[O],thisArg:i}),new Ue(M,S)}return D&&B?e.apply(this,g):(M=this.thru(O),D?u?M.value()[0]:M.value():M)})}),De(["pop","push","shift","sort","splice","unshift"],function(e){var t=vr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(u&&!this.__chain__){var c=this.value();return t.apply(W(c)?c:[],a)}return this[n](function(p){return t.apply(W(p)?p:[],a)})}}),rt(Y.prototype,function(e,t){var n=l[t];if(n){var u=n.name+"";j.call(ln,u)||(ln[u]=[]),ln[u].push({name:t,func:n})}}),ln[Ur(i,Pt).name]=[{name:"wrapper",func:i}],Y.prototype.clone=vp,Y.prototype.reverse=Ep,Y.prototype.value=wp,l.prototype.at=Zd,l.prototype.chain=Jd,l.prototype.commit=Qd,l.prototype.next=jd,l.prototype.plant=e0,l.prototype.reverse=t0,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=n0,l.prototype.first=l.prototype.head,Ln&&(l.prototype[Ln]=kd),l},Ot=Qh();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(fe._=Ot,define(function(){return Ot})):qt?((qt.exports=Ot)._=Ot,Fi._=Ot):fe._=Ot}).call(_n)});var Vn=F((ew,Za)=>{var ov="2.0.0",av=Number.MAX_SAFE_INTEGER||9007199254740991,lv=16;Za.exports={SEMVER_SPEC_VERSION:ov,MAX_LENGTH:256,MAX_SAFE_INTEGER:av,MAX_SAFE_COMPONENT_LENGTH:lv}});var Yn=F((tw,Ja)=>{var fv=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Ja.exports=fv});var Yt=F(($t,Qa)=>{var{MAX_SAFE_COMPONENT_LENGTH:Bs}=Vn(),cv=Yn();$t=Qa.exports={};var hv=$t.re=[],L=$t.src=[],b=$t.t={},pv=0,X=(i,r,s)=>{let o=pv++;cv(o,r),b[i]=o,L[o]=r,hv[o]=new RegExp(r,s?"g":void 0)};X("NUMERICIDENTIFIER","0|[1-9]\\d*");X("NUMERICIDENTIFIERLOOSE","[0-9]+");X("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");X("MAINVERSION",`(${L[b.NUMERICIDENTIFIER]})\\.(${L[b.NUMERICIDENTIFIER]})\\.(${L[b.NUMERICIDENTIFIER]})`);X("MAINVERSIONLOOSE",`(${L[b.NUMERICIDENTIFIERLOOSE]})\\.(${L[b.NUMERICIDENTIFIERLOOSE]})\\.(${L[b.NUMERICIDENTIFIERLOOSE]})`);X("PRERELEASEIDENTIFIER",`(?:${L[b.NUMERICIDENTIFIER]}|${L[b.NONNUMERICIDENTIFIER]})`);X("PRERELEASEIDENTIFIERLOOSE",`(?:${L[b.NUMERICIDENTIFIERLOOSE]}|${L[b.NONNUMERICIDENTIFIER]})`);X("PRERELEASE",`(?:-(${L[b.PRERELEASEIDENTIFIER]}(?:\\.${L[b.PRERELEASEIDENTIFIER]})*))`);X("PRERELEASELOOSE",`(?:-?(${L[b.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[b.PRERELEASEIDENTIFIERLOOSE]})*))`);X("BUILDIDENTIFIER","[0-9A-Za-z-]+");X("BUILD",`(?:\\+(${L[b.BUILDIDENTIFIER]}(?:\\.${L[b.BUILDIDENTIFIER]})*))`);X("FULLPLAIN",`v?${L[b.MAINVERSION]}${L[b.PRERELEASE]}?${L[b.BUILD]}?`);X("FULL",`^${L[b.FULLPLAIN]}$`);X("LOOSEPLAIN",`[v=\\s]*${L[b.MAINVERSIONLOOSE]}${L[b.PRERELEASELOOSE]}?${L[b.BUILD]}?`);X("LOOSE",`^${L[b.LOOSEPLAIN]}$`);X("GTLT","((?:<|>)?=?)");X("XRANGEIDENTIFIERLOOSE",`${L[b.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);X("XRANGEIDENTIFIER",`${L[b.NUMERICIDENTIFIER]}|x|X|\\*`);X("XRANGEPLAIN",`[v=\\s]*(${L[b.XRANGEIDENTIFIER]})(?:\\.(${L[b.XRANGEIDENTIFIER]})(?:\\.(${L[b.XRANGEIDENTIFIER]})(?:${L[b.PRERELEASE]})?${L[b.BUILD]}?)?)?`);X("XRANGEPLAINLOOSE",`[v=\\s]*(${L[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[b.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[b.XRANGEIDENTIFIERLOOSE]})(?:${L[b.PRERELEASELOOSE]})?${L[b.BUILD]}?)?)?`);X("XRANGE",`^${L[b.GTLT]}\\s*${L[b.XRANGEPLAIN]}$`);X("XRANGELOOSE",`^${L[b.GTLT]}\\s*${L[b.XRANGEPLAINLOOSE]}$`);X("COERCE",`(^|[^\\d])(\\d{1,${Bs}})(?:\\.(\\d{1,${Bs}}))?(?:\\.(\\d{1,${Bs}}))?(?:$|[^\\d])`);X("COERCERTL",L[b.COERCE],!0);X("LONETILDE","(?:~>?)");X("TILDETRIM",`(\\s*)${L[b.LONETILDE]}\\s+`,!0);$t.tildeTrimReplace="$1~";X("TILDE",`^${L[b.LONETILDE]}${L[b.XRANGEPLAIN]}$`);X("TILDELOOSE",`^${L[b.LONETILDE]}${L[b.XRANGEPLAINLOOSE]}$`);X("LONECARET","(?:\\^)");X("CARETTRIM",`(\\s*)${L[b.LONECARET]}\\s+`,!0);$t.caretTrimReplace="$1^";X("CARET",`^${L[b.LONECARET]}${L[b.XRANGEPLAIN]}$`);X("CARETLOOSE",`^${L[b.LONECARET]}${L[b.XRANGEPLAINLOOSE]}$`);X("COMPARATORLOOSE",`^${L[b.GTLT]}\\s*(${L[b.LOOSEPLAIN]})$|^$`);X("COMPARATOR",`^${L[b.GTLT]}\\s*(${L[b.FULLPLAIN]})$|^$`);X("COMPARATORTRIM",`(\\s*)${L[b.GTLT]}\\s*(${L[b.LOOSEPLAIN]}|${L[b.XRANGEPLAIN]})`,!0);$t.comparatorTrimReplace="$1$2$3";X("HYPHENRANGE",`^\\s*(${L[b.XRANGEPLAIN]})\\s+-\\s+(${L[b.XRANGEPLAIN]})\\s*$`);X("HYPHENRANGELOOSE",`^\\s*(${L[b.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[b.XRANGEPLAINLOOSE]})\\s*$`);X("STAR","(<|>)?=?\\s*\\*");X("GTE0","^\\s*>=\\s*0.0.0\\s*$");X("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var Kn=F((nw,ja)=>{var gv=["includePrerelease","loose","rtl"],dv=i=>i?typeof i!="object"?{loose:!0}:gv.filter(r=>i[r]).reduce((r,s)=>(r[s]=!0,r),{}):{};ja.exports=dv});var ti=F((rw,tl)=>{var ka=/^[0-9]+$/,el=(i,r)=>{let s=ka.test(i),o=ka.test(r);return s&&o&&(i=+i,r=+r),i===r?0:s&&!o?-1:o&&!s?1:i<r?-1:1},_v=(i,r)=>el(r,i);tl.exports={compareIdentifiers:el,rcompareIdentifiers:_v}});var me=F((iw,sl)=>{var ni=Yn(),{MAX_LENGTH:nl,MAX_SAFE_INTEGER:ri}=Vn(),{re:rl,t:il}=Yt(),mv=Kn(),{compareIdentifiers:Zn}=ti(),Xe=class{constructor(r,s){if(s=mv(s),r instanceof Xe){if(r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>nl)throw new TypeError(`version is longer than ${nl} characters`);ni("SemVer",r,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;let o=r.trim().match(s.loose?rl[il.LOOSE]:rl[il.FULL]);if(!o)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>ri||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ri||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ri||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(f=>{if(/^[0-9]+$/.test(f)){let h=+f;if(h>=0&&h<ri)return h}return f}):this.prerelease=[],this.build=o[5]?o[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(ni("SemVer.compare",this.version,this.options,r),!(r instanceof Xe)){if(typeof r=="string"&&r===this.version)return 0;r=new Xe(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof Xe||(r=new Xe(r,this.options)),Zn(this.major,r.major)||Zn(this.minor,r.minor)||Zn(this.patch,r.patch)}comparePre(r){if(r instanceof Xe||(r=new Xe(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 s=0;do{let o=this.prerelease[s],f=r.prerelease[s];if(ni("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return Zn(o,f)}while(++s)}compareBuild(r){r instanceof Xe||(r=new Xe(r,this.options));let s=0;do{let o=this.build[s],f=r.build[s];if(ni("prerelease compare",s,o,f),o===void 0&&f===void 0)return 0;if(f===void 0)return 1;if(o===void 0)return-1;if(o===f)continue;return Zn(o,f)}while(++s)}inc(r,s){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",s),this.inc("pre",s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",s),this.inc("pre",s);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 o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);o===-1&&this.prerelease.push(0)}s&&(this.prerelease[0]===s?isNaN(this.prerelease[1])&&(this.prerelease=[s,0]):this.prerelease=[s,0]);break;default:throw new Error(`invalid increment argument: ${r}`)}return this.format(),this.raw=this.version,this}};sl.exports=Xe});var Kt=F((sw,ll)=>{var{MAX_LENGTH:vv}=Vn(),{re:ul,t:ol}=Yt(),al=me(),Ev=Kn(),wv=(i,r)=>{if(r=Ev(r),i instanceof al)return i;if(typeof i!="string"||i.length>vv||!(r.loose?ul[ol.LOOSE]:ul[ol.FULL]).test(i))return null;try{return new al(i,r)}catch{return null}};ll.exports=wv});var cl=F((uw,fl)=>{var xv=Kt(),Av=(i,r)=>{let s=xv(i,r);return s?s.version:null};fl.exports=Av});var pl=F((ow,hl)=>{var yv=Kt(),Rv=(i,r)=>{let s=yv(i.trim().replace(/^[=v]+/,""),r);return s?s.version:null};hl.exports=Rv});var dl=F((aw,gl)=>{var Ov=me(),Iv=(i,r,s,o)=>{typeof s=="string"&&(o=s,s=void 0);try{return new Ov(i,s).inc(r,o).version}catch{return null}};gl.exports=Iv});var ze=F((lw,ml)=>{var _l=me(),Sv=(i,r,s)=>new _l(i,s).compare(new _l(r,s));ml.exports=Sv});var ii=F((fw,vl)=>{var Cv=ze(),Lv=(i,r,s)=>Cv(i,r,s)===0;vl.exports=Lv});var xl=F((cw,wl)=>{var El=Kt(),bv=ii(),Tv=(i,r)=>{if(bv(i,r))return null;{let s=El(i),o=El(r),f=s.prerelease.length||o.prerelease.length,h=f?"pre":"",m=f?"prerelease":"";for(let x in s)if((x==="major"||x==="minor"||x==="patch")&&s[x]!==o[x])return h+x;return m}};wl.exports=Tv});var yl=F((hw,Al)=>{var $v=me(),Nv=(i,r)=>new $v(i,r).major;Al.exports=Nv});var Ol=F((pw,Rl)=>{var Pv=me(),Fv=(i,r)=>new Pv(i,r).minor;Rl.exports=Fv});var Sl=F((gw,Il)=>{var qv=me(),Dv=(i,r)=>new qv(i,r).patch;Il.exports=Dv});var Ll=F((dw,Cl)=>{var Mv=Kt(),Uv=(i,r)=>{let s=Mv(i,r);return s&&s.prerelease.length?s.prerelease:null};Cl.exports=Uv});var Tl=F((_w,bl)=>{var Hv=ze(),Wv=(i,r,s)=>Hv(r,i,s);bl.exports=Wv});var Nl=F((mw,$l)=>{var Gv=ze(),Bv=(i,r)=>Gv(i,r,!0);$l.exports=Bv});var si=F((vw,Fl)=>{var Pl=me(),Xv=(i,r,s)=>{let o=new Pl(i,s),f=new Pl(r,s);return o.compare(f)||o.compareBuild(f)};Fl.exports=Xv});var Dl=F((Ew,ql)=>{var zv=si(),Vv=(i,r)=>i.sort((s,o)=>zv(s,o,r));ql.exports=Vv});var Ul=F((ww,Ml)=>{var Yv=si(),Kv=(i,r)=>i.sort((s,o)=>Yv(o,s,r));Ml.exports=Kv});var Jn=F((xw,Hl)=>{var Zv=ze(),Jv=(i,r,s)=>Zv(i,r,s)>0;Hl.exports=Jv});var ui=F((Aw,Wl)=>{var Qv=ze(),jv=(i,r,s)=>Qv(i,r,s)<0;Wl.exports=jv});var Xs=F((yw,Gl)=>{var kv=ze(),e1=(i,r,s)=>kv(i,r,s)!==0;Gl.exports=e1});var oi=F((Rw,Bl)=>{var t1=ze(),n1=(i,r,s)=>t1(i,r,s)>=0;Bl.exports=n1});var ai=F((Ow,Xl)=>{var r1=ze(),i1=(i,r,s)=>r1(i,r,s)<=0;Xl.exports=i1});var zs=F((Iw,zl)=>{var s1=ii(),u1=Xs(),o1=Jn(),a1=oi(),l1=ui(),f1=ai(),c1=(i,r,s,o)=>{switch(r){case"===":return typeof i=="object"&&(i=i.version),typeof s=="object"&&(s=s.version),i===s;case"!==":return typeof i=="object"&&(i=i.version),typeof s=="object"&&(s=s.version),i!==s;case"":case"=":case"==":return s1(i,s,o);case"!=":return u1(i,s,o);case">":return o1(i,s,o);case">=":return a1(i,s,o);case"<":return l1(i,s,o);case"<=":return f1(i,s,o);default:throw new TypeError(`Invalid operator: ${r}`)}};zl.exports=c1});var Yl=F((Sw,Vl)=>{var h1=me(),p1=Kt(),{re:li,t:fi}=Yt(),g1=(i,r)=>{if(i instanceof h1)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;r=r||{};let s=null;if(!r.rtl)s=i.match(li[fi.COERCE]);else{let o;for(;(o=li[fi.COERCERTL].exec(i))&&(!s||s.index+s[0].length!==i.length);)(!s||o.index+o[0].length!==s.index+s[0].length)&&(s=o),li[fi.COERCERTL].lastIndex=o.index+o[1].length+o[2].length;li[fi.COERCERTL].lastIndex=-1}return s===null?null:p1(`${s[2]}.${s[3]||"0"}.${s[4]||"0"}`,r)};Vl.exports=g1});var Zl=F((Cw,Kl)=>{"use strict";Kl.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var Ql=F((Lw,Jl)=>{"use strict";Jl.exports=Z;Z.Node=Zt;Z.create=Z;function Z(i){var r=this;if(r instanceof Z||(r=new Z),r.tail=null,r.head=null,r.length=0,i&&typeof i.forEach=="function")i.forEach(function(f){r.push(f)});else if(arguments.length>0)for(var s=0,o=arguments.length;s<o;s++)r.push(arguments[s]);return r}Z.prototype.removeNode=function(i){if(i.list!==this)throw new Error("removing node which does not belong to this list");var r=i.next,s=i.prev;return r&&(r.prev=s),s&&(s.next=r),i===this.head&&(this.head=r),i===this.tail&&(this.tail=s),i.list.length--,i.next=null,i.prev=null,i.list=null,r};Z.prototype.unshiftNode=function(i){if(i!==this.head){i.list&&i.list.removeNode(i);var r=this.head;i.list=this,i.next=r,r&&(r.prev=i),this.head=i,this.tail||(this.tail=i),this.length++}};Z.prototype.pushNode=function(i){if(i!==this.tail){i.list&&i.list.removeNode(i);var r=this.tail;i.list=this,i.prev=r,r&&(r.next=i),this.tail=i,this.head||(this.head=i),this.length++}};Z.prototype.push=function(){for(var i=0,r=arguments.length;i<r;i++)_1(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)m1(this,arguments[i]);return this.length};Z.prototype.pop=function(){if(!!this.tail){var i=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,i}};Z.prototype.shift=function(){if(!!this.head){var i=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,i}};Z.prototype.forEach=function(i,r){r=r||this;for(var s=this.head,o=0;s!==null;o++)i.call(r,s.value,o,this),s=s.next};Z.prototype.forEachReverse=function(i,r){r=r||this;for(var s=this.tail,o=this.length-1;s!==null;o--)i.call(r,s.value,o,this),s=s.prev};Z.prototype.get=function(i){for(var r=0,s=this.head;s!==null&&r<i;r++)s=s.next;if(r===i&&s!==null)return s.value};Z.prototype.getReverse=function(i){for(var r=0,s=this.tail;s!==null&&r<i;r++)s=s.prev;if(r===i&&s!==null)return s.value};Z.prototype.map=function(i,r){r=r||this;for(var s=new Z,o=this.head;o!==null;)s.push(i.call(r,o.value,this)),o=o.next;return s};Z.prototype.mapReverse=function(i,r){r=r||this;for(var s=new Z,o=this.tail;o!==null;)s.push(i.call(r,o.value,this)),o=o.prev;return s};Z.prototype.reduce=function(i,r){var s,o=this.head;if(arguments.length>1)s=r;else if(this.head)o=this.head.next,s=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=0;o!==null;f++)s=i(s,o.value,f),o=o.next;return s};Z.prototype.reduceReverse=function(i,r){var s,o=this.tail;if(arguments.length>1)s=r;else if(this.tail)o=this.tail.prev,s=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var f=this.length-1;o!==null;f--)s=i(s,o.value,f),o=o.prev;return s};Z.prototype.toArray=function(){for(var i=new Array(this.length),r=0,s=this.head;s!==null;r++)i[r]=s.value,s=s.next;return i};Z.prototype.toArrayReverse=function(){for(var i=new Array(this.length),r=0,s=this.tail;s!==null;r++)i[r]=s.value,s=s.prev;return i};Z.prototype.slice=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new Z;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(;f!==null&&o<r;o++,f=f.next)s.push(f.value);return s};Z.prototype.sliceReverse=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var s=new Z;if(r<i||r<0)return s;i<0&&(i=0),r>this.length&&(r=this.length);for(var o=this.length,f=this.tail;f!==null&&o>r;o--)f=f.prev;for(;f!==null&&o>i;o--,f=f.prev)s.push(f.value);return s};Z.prototype.splice=function(i,r,...s){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var o=0,f=this.head;f!==null&&o<i;o++)f=f.next;for(var h=[],o=0;f&&o<r;o++)h.push(f.value),f=this.removeNode(f);f===null&&(f=this.tail),f!==this.head&&f!==this.tail&&(f=f.prev);for(var o=0;o<s.length;o++)f=d1(this,f,s[o]);return h};Z.prototype.reverse=function(){for(var i=this.head,r=this.tail,s=i;s!==null;s=s.prev){var o=s.prev;s.prev=s.next,s.next=o}return this.head=r,this.tail=i,this};function d1(i,r,s){var o=r===i.head?new Zt(s,null,r,i):new Zt(s,r,r.next,i);return o.next===null&&(i.tail=o),o.prev===null&&(i.head=o),i.length++,o}function _1(i,r){i.tail=new Zt(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function m1(i,r){i.head=new Zt(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function Zt(i,r,s,o){if(!(this instanceof Zt))return new Zt(i,r,s,o);this.list=o,this.value=i,r?(r.next=this,this.prev=r):this.prev=null,s?(s.prev=this,this.next=s):this.next=null}try{Zl()(Z)}catch{}});var sf=F((bw,rf)=>{"use strict";var v1=Ql(),Jt=Symbol("max"),wt=Symbol("length"),mn=Symbol("lengthCalculator"),jn=Symbol("allowStale"),Qt=Symbol("maxAge"),Et=Symbol("dispose"),jl=Symbol("noDisposeOnSet"),he=Symbol("lruList"),ke=Symbol("cache"),ef=Symbol("updateAgeOnGet"),Vs=()=>1,tf=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 s=this[Jt]=r.max||1/0,o=r.length||Vs;if(this[mn]=typeof o!="function"?Vs:o,this[jn]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[Qt]=r.maxAge||0,this[Et]=r.dispose,this[jl]=r.noDisposeOnSet||!1,this[ef]=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[Jt]=r||1/0,Qn(this)}get max(){return this[Jt]}set allowStale(r){this[jn]=!!r}get allowStale(){return this[jn]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[Qt]=r,Qn(this)}get maxAge(){return this[Qt]}set lengthCalculator(r){typeof r!="function"&&(r=Vs),r!==this[mn]&&(this[mn]=r,this[wt]=0,this[he].forEach(s=>{s.length=this[mn](s.value,s.key),this[wt]+=s.length})),Qn(this)}get lengthCalculator(){return this[mn]}get length(){return this[wt]}get itemCount(){return this[he].length}rforEach(r,s){s=s||this;for(let o=this[he].tail;o!==null;){let f=o.prev;kl(this,r,o,s),o=f}}forEach(r,s){s=s||this;for(let o=this[he].head;o!==null;){let f=o.next;kl(this,r,o,s),o=f}}keys(){return this[he].toArray().map(r=>r.key)}values(){return this[he].toArray().map(r=>r.value)}reset(){this[Et]&&this[he]&&this[he].length&&this[he].forEach(r=>this[Et](r.key,r.value)),this[ke]=new Map,this[he]=new v1,this[wt]=0}dump(){return this[he].map(r=>ci(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[he]}set(r,s,o){if(o=o||this[Qt],o&&typeof o!="number")throw new TypeError("maxAge must be a number");let f=o?Date.now():0,h=this[mn](s,r);if(this[ke].has(r)){if(h>this[Jt])return vn(this,this[ke].get(r)),!1;let w=this[ke].get(r).value;return this[Et]&&(this[jl]||this[Et](r,w.value)),w.now=f,w.maxAge=o,w.value=s,this[wt]+=h-w.length,w.length=h,this.get(r),Qn(this),!0}let m=new nf(r,s,h,f,o);return m.length>this[Jt]?(this[Et]&&this[Et](r,s),!1):(this[wt]+=m.length,this[he].unshift(m),this[ke].set(r,this[he].head),Qn(this),!0)}has(r){if(!this[ke].has(r))return!1;let s=this[ke].get(r).value;return!ci(this,s)}get(r){return Ys(this,r,!0)}peek(r){return Ys(this,r,!1)}pop(){let r=this[he].tail;return r?(vn(this,r),r.value):null}del(r){vn(this,this[ke].get(r))}load(r){this.reset();let s=Date.now();for(let o=r.length-1;o>=0;o--){let f=r[o],h=f.e||0;if(h===0)this.set(f.k,f.v);else{let m=h-s;m>0&&this.set(f.k,f.v,m)}}}prune(){this[ke].forEach((r,s)=>Ys(this,s,!1))}},Ys=(i,r,s)=>{let o=i[ke].get(r);if(o){let f=o.value;if(ci(i,f)){if(vn(i,o),!i[jn])return}else s&&(i[ef]&&(o.value.now=Date.now()),i[he].unshiftNode(o));return f.value}},ci=(i,r)=>{if(!r||!r.maxAge&&!i[Qt])return!1;let s=Date.now()-r.now;return r.maxAge?s>r.maxAge:i[Qt]&&s>i[Qt]},Qn=i=>{if(i[wt]>i[Jt])for(let r=i[he].tail;i[wt]>i[Jt]&&r!==null;){let s=r.prev;vn(i,r),r=s}},vn=(i,r)=>{if(r){let s=r.value;i[Et]&&i[Et](s.key,s.value),i[wt]-=s.length,i[ke].delete(s.key),i[he].removeNode(r)}},nf=class{constructor(r,s,o,f,h){this.key=r,this.value=s,this.length=o,this.now=f,this.maxAge=h||0}},kl=(i,r,s,o)=>{let f=s.value;ci(i,f)&&(vn(i,s),i[jn]||(f=void 0)),f&&r.call(o,f.value,f.key,i)};rf.exports=tf});var Ve=F((Tw,lf)=>{var En=class{constructor(r,s){if(s=w1(s),r instanceof En)return r.loose===!!s.loose&&r.includePrerelease===!!s.includePrerelease?r:new En(r.raw,s);if(r instanceof Ks)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease,this.raw=r,this.set=r.split(/\s*\|\|\s*/).map(o=>this.parseRange(o.trim())).filter(o=>o.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);if(this.set.length>1){let o=this.set[0];if(this.set=this.set.filter(f=>!of(f[0])),this.set.length===0)this.set=[o];else if(this.set.length>1){for(let f of this.set)if(f.length===1&&O1(f[0])){this.set=[f];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 o=`parseRange:${Object.keys(this.options).join(",")}:${r}`,f=uf.get(o);if(f)return f;let h=this.options.loose,m=h?ve[ge.HYPHENRANGELOOSE]:ve[ge.HYPHENRANGE];r=r.replace(m,F1(this.options.includePrerelease)),oe("hyphen replace",r),r=r.replace(ve[ge.COMPARATORTRIM],A1),oe("comparator trim",r,ve[ge.COMPARATORTRIM]),r=r.replace(ve[ge.TILDETRIM],y1),r=r.replace(ve[ge.CARETTRIM],R1),r=r.split(/\s+/).join(" ");let x=h?ve[ge.COMPARATORLOOSE]:ve[ge.COMPARATOR],w=r.split(" ").map(T=>I1(T,this.options)).join(" ").split(/\s+/).map(T=>P1(T,this.options)).filter(this.options.loose?T=>!!T.match(x):()=>!0).map(T=>new Ks(T,this.options)),v=w.length,I=new Map;for(let T of w){if(of(T))return[T];I.set(T.value,T)}I.size>1&&I.has("")&&I.delete("");let $=[...I.values()];return uf.set(o,$),$}intersects(r,s){if(!(r instanceof En))throw new TypeError("a Range is required");return this.set.some(o=>af(o,s)&&r.set.some(f=>af(f,s)&&o.every(h=>f.every(m=>h.intersects(m,s)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new x1(r,this.options)}catch{return!1}for(let s=0;s<this.set.length;s++)if(q1(this.set[s],r,this.options))return!0;return!1}};lf.exports=En;var E1=sf(),uf=new E1({max:1e3}),w1=Kn(),Ks=kn(),oe=Yn(),x1=me(),{re:ve,t:ge,comparatorTrimReplace:A1,tildeTrimReplace:y1,caretTrimReplace:R1}=Yt(),of=i=>i.value==="<0.0.0-0",O1=i=>i.value==="",af=(i,r)=>{let s=!0,o=i.slice(),f=o.pop();for(;s&&o.length;)s=o.every(h=>f.intersects(h,r)),f=o.pop();return s},I1=(i,r)=>(oe("comp",i,r),i=L1(i,r),oe("caret",i),i=S1(i,r),oe("tildes",i),i=T1(i,r),oe("xrange",i),i=N1(i,r),oe("stars",i),i),Ae=i=>!i||i.toLowerCase()==="x"||i==="*",S1=(i,r)=>i.trim().split(/\s+/).map(s=>C1(s,r)).join(" "),C1=(i,r)=>{let s=r.loose?ve[ge.TILDELOOSE]:ve[ge.TILDE];return i.replace(s,(o,f,h,m,x)=>{oe("tilde",i,o,f,h,m,x);let w;return Ae(f)?w="":Ae(h)?w=`>=${f}.0.0 <${+f+1}.0.0-0`:Ae(m)?w=`>=${f}.${h}.0 <${f}.${+h+1}.0-0`:x?(oe("replaceTilde pr",x),w=`>=${f}.${h}.${m}-${x} <${f}.${+h+1}.0-0`):w=`>=${f}.${h}.${m} <${f}.${+h+1}.0-0`,oe("tilde return",w),w})},L1=(i,r)=>i.trim().split(/\s+/).map(s=>b1(s,r)).join(" "),b1=(i,r)=>{oe("caret",i,r);let s=r.loose?ve[ge.CARETLOOSE]:ve[ge.CARET],o=r.includePrerelease?"-0":"";return i.replace(s,(f,h,m,x,w)=>{oe("caret",i,f,h,m,x,w);let v;return Ae(h)?v="":Ae(m)?v=`>=${h}.0.0${o} <${+h+1}.0.0-0`:Ae(x)?h==="0"?v=`>=${h}.${m}.0${o} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.0${o} <${+h+1}.0.0-0`:w?(oe("replaceCaret pr",w),h==="0"?m==="0"?v=`>=${h}.${m}.${x}-${w} <${h}.${m}.${+x+1}-0`:v=`>=${h}.${m}.${x}-${w} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.${x}-${w} <${+h+1}.0.0-0`):(oe("no pr"),h==="0"?m==="0"?v=`>=${h}.${m}.${x}${o} <${h}.${m}.${+x+1}-0`:v=`>=${h}.${m}.${x}${o} <${h}.${+m+1}.0-0`:v=`>=${h}.${m}.${x} <${+h+1}.0.0-0`),oe("caret return",v),v})},T1=(i,r)=>(oe("replaceXRanges",i,r),i.split(/\s+/).map(s=>$1(s,r)).join(" ")),$1=(i,r)=>{i=i.trim();let s=r.loose?ve[ge.XRANGELOOSE]:ve[ge.XRANGE];return i.replace(s,(o,f,h,m,x,w)=>{oe("xRange",i,o,f,h,m,x,w);let v=Ae(h),I=v||Ae(m),$=I||Ae(x),T=$;return f==="="&&T&&(f=""),w=r.includePrerelease?"-0":"",v?f===">"||f==="<"?o="<0.0.0-0":o="*":f&&T?(I&&(m=0),x=0,f===">"?(f=">=",I?(h=+h+1,m=0,x=0):(m=+m+1,x=0)):f==="<="&&(f="<",I?h=+h+1:m=+m+1),f==="<"&&(w="-0"),o=`${f+h}.${m}.${x}${w}`):I?o=`>=${h}.0.0${w} <${+h+1}.0.0-0`:$&&(o=`>=${h}.${m}.0${w} <${h}.${+m+1}.0-0`),oe("xRange return",o),o})},N1=(i,r)=>(oe("replaceStars",i,r),i.trim().replace(ve[ge.STAR],"")),P1=(i,r)=>(oe("replaceGTE0",i,r),i.trim().replace(ve[r.includePrerelease?ge.GTE0PRE:ge.GTE0],"")),F1=i=>(r,s,o,f,h,m,x,w,v,I,$,T,P)=>(Ae(o)?s="":Ae(f)?s=`>=${o}.0.0${i?"-0":""}`:Ae(h)?s=`>=${o}.${f}.0${i?"-0":""}`:m?s=`>=${s}`:s=`>=${s}${i?"-0":""}`,Ae(v)?w="":Ae(I)?w=`<${+v+1}.0.0-0`:Ae($)?w=`<${v}.${+I+1}.0-0`:T?w=`<=${v}.${I}.${$}-${T}`:i?w=`<${v}.${I}.${+$+1}-0`:w=`<=${w}`,`${s} ${w}`.trim()),q1=(i,r,s)=>{for(let o=0;o<i.length;o++)if(!i[o].test(r))return!1;if(r.prerelease.length&&!s.includePrerelease){for(let o=0;o<i.length;o++)if(oe(i[o].semver),i[o].semver!==Ks.ANY&&i[o].semver.prerelease.length>0){let f=i[o].semver;if(f.major===r.major&&f.minor===r.minor&&f.patch===r.patch)return!0}return!1}return!0}});var kn=F(($w,gf)=>{var er=Symbol("SemVer ANY"),tr=class{static get ANY(){return er}constructor(r,s){if(s=D1(s),r instanceof tr){if(r.loose===!!s.loose)return r;r=r.value}Js("comparator",r,s),this.options=s,this.loose=!!s.loose,this.parse(r),this.semver===er?this.value="":this.value=this.operator+this.semver.version,Js("comp",this)}parse(r){let s=this.options.loose?ff[cf.COMPARATORLOOSE]:ff[cf.COMPARATOR],o=r.match(s);if(!o)throw new TypeError(`Invalid comparator: ${r}`);this.operator=o[1]!==void 0?o[1]:"",this.operator==="="&&(this.operator=""),o[2]?this.semver=new hf(o[2],this.options.loose):this.semver=er}toString(){return this.value}test(r){if(Js("Comparator.test",r,this.options.loose),this.semver===er||r===er)return!0;if(typeof r=="string")try{r=new hf(r,this.options)}catch{return!1}return Zs(r,this.operator,this.semver,this.options)}intersects(r,s){if(!(r instanceof tr))throw new TypeError("a Comparator is required");if((!s||typeof s!="object")&&(s={loose:!!s,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new pf(r.value,s).test(this.value);if(r.operator==="")return r.value===""?!0:new pf(this.value,s).test(r.semver);let o=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),f=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),h=this.semver.version===r.semver.version,m=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),x=Zs(this.semver,"<",r.semver,s)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),w=Zs(this.semver,">",r.semver,s)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return o||f||h&&m||x||w}};gf.exports=tr;var D1=Kn(),{re:ff,t:cf}=Yt(),Zs=zs(),Js=Yn(),hf=me(),pf=Ve()});var nr=F((Nw,df)=>{var M1=Ve(),U1=(i,r,s)=>{try{r=new M1(r,s)}catch{return!1}return r.test(i)};df.exports=U1});var mf=F((Pw,_f)=>{var H1=Ve(),W1=(i,r)=>new H1(i,r).set.map(s=>s.map(o=>o.value).join(" ").trim().split(" "));_f.exports=W1});var Ef=F((Fw,vf)=>{var G1=me(),B1=Ve(),X1=(i,r,s)=>{let o=null,f=null,h=null;try{h=new B1(r,s)}catch{return null}return i.forEach(m=>{h.test(m)&&(!o||f.compare(m)===-1)&&(o=m,f=new G1(o,s))}),o};vf.exports=X1});var xf=F((qw,wf)=>{var z1=me(),V1=Ve(),Y1=(i,r,s)=>{let o=null,f=null,h=null;try{h=new V1(r,s)}catch{return null}return i.forEach(m=>{h.test(m)&&(!o||f.compare(m)===1)&&(o=m,f=new z1(o,s))}),o};wf.exports=Y1});var Rf=F((Dw,yf)=>{var Qs=me(),K1=Ve(),Af=Jn(),Z1=(i,r)=>{i=new K1(i,r);let s=new Qs("0.0.0");if(i.test(s)||(s=new Qs("0.0.0-0"),i.test(s)))return s;s=null;for(let o=0;o<i.set.length;++o){let f=i.set[o],h=null;f.forEach(m=>{let x=new Qs(m.semver.version);switch(m.operator){case">":x.prerelease.length===0?x.patch++:x.prerelease.push(0),x.raw=x.format();case"":case">=":(!h||Af(x,h))&&(h=x);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${m.operator}`)}}),h&&(!s||Af(s,h))&&(s=h)}return s&&i.test(s)?s:null};yf.exports=Z1});var If=F((Mw,Of)=>{var J1=Ve(),Q1=(i,r)=>{try{return new J1(i,r).range||"*"}catch{return null}};Of.exports=Q1});var hi=F((Uw,bf)=>{var j1=me(),Lf=kn(),{ANY:k1}=Lf,eE=Ve(),tE=nr(),Sf=Jn(),Cf=ui(),nE=ai(),rE=oi(),iE=(i,r,s,o)=>{i=new j1(i,o),r=new eE(r,o);let f,h,m,x,w;switch(s){case">":f=Sf,h=nE,m=Cf,x=">",w=">=";break;case"<":f=Cf,h=rE,m=Sf,x="<",w="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(tE(i,r,o))return!1;for(let v=0;v<r.set.length;++v){let I=r.set[v],$=null,T=null;if(I.forEach(P=>{P.semver===k1&&(P=new Lf(">=0.0.0")),$=$||P,T=T||P,f(P.semver,$.semver,o)?$=P:m(P.semver,T.semver,o)&&(T=P)}),$.operator===x||$.operator===w||(!T.operator||T.operator===x)&&h(i,T.semver))return!1;if(T.operator===w&&m(i,T.semver))return!1}return!0};bf.exports=iE});var $f=F((Hw,Tf)=>{var sE=hi(),uE=(i,r,s)=>sE(i,r,">",s);Tf.exports=uE});var Pf=F((Ww,Nf)=>{var oE=hi(),aE=(i,r,s)=>oE(i,r,"<",s);Nf.exports=aE});var Df=F((Gw,qf)=>{var Ff=Ve(),lE=(i,r,s)=>(i=new Ff(i,s),r=new Ff(r,s),i.intersects(r));qf.exports=lE});var Uf=F((Bw,Mf)=>{var fE=nr(),cE=ze();Mf.exports=(i,r,s)=>{let o=[],f=null,h=null,m=i.sort((I,$)=>cE(I,$,s));for(let I of m)fE(I,r,s)?(h=I,f||(f=I)):(h&&o.push([f,h]),h=null,f=null);f&&o.push([f,null]);let x=[];for(let[I,$]of o)I===$?x.push(I):!$&&I===m[0]?x.push("*"):$?I===m[0]?x.push(`<=${$}`):x.push(`${I} - ${$}`):x.push(`>=${I}`);let w=x.join(" || "),v=typeof r.raw=="string"?r.raw:String(r);return w.length<v.length?w:r}});var Xf=F((Xw,Bf)=>{var Hf=Ve(),pi=kn(),{ANY:js}=pi,rr=nr(),ks=ze(),hE=(i,r,s={})=>{if(i===r)return!0;i=new Hf(i,s),r=new Hf(r,s);let o=!1;e:for(let f of i.set){for(let h of r.set){let m=pE(f,h,s);if(o=o||m!==null,m)continue e}if(o)return!1}return!0},pE=(i,r,s)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===js){if(r.length===1&&r[0].semver===js)return!0;s.includePrerelease?i=[new pi(">=0.0.0-0")]:i=[new pi(">=0.0.0")]}if(r.length===1&&r[0].semver===js){if(s.includePrerelease)return!0;r=[new pi(">=0.0.0")]}let o=new Set,f,h;for(let P of i)P.operator===">"||P.operator===">="?f=Wf(f,P,s):P.operator==="<"||P.operator==="<="?h=Gf(h,P,s):o.add(P.semver);if(o.size>1)return null;let m;if(f&&h){if(m=ks(f.semver,h.semver,s),m>0)return null;if(m===0&&(f.operator!==">="||h.operator!=="<="))return null}for(let P of o){if(f&&!rr(P,String(f),s)||h&&!rr(P,String(h),s))return null;for(let ye of r)if(!rr(P,String(ye),s))return!1;return!0}let x,w,v,I,$=h&&!s.includePrerelease&&h.semver.prerelease.length?h.semver:!1,T=f&&!s.includePrerelease&&f.semver.prerelease.length?f.semver:!1;$&&$.prerelease.length===1&&h.operator==="<"&&$.prerelease[0]===0&&($=!1);for(let P of r){if(I=I||P.operator===">"||P.operator===">=",v=v||P.operator==="<"||P.operator==="<=",f){if(T&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===T.major&&P.semver.minor===T.minor&&P.semver.patch===T.patch&&(T=!1),P.operator===">"||P.operator===">="){if(x=Wf(f,P,s),x===P&&x!==f)return!1}else if(f.operator===">="&&!rr(f.semver,String(P),s))return!1}if(h){if($&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===$.major&&P.semver.minor===$.minor&&P.semver.patch===$.patch&&($=!1),P.operator==="<"||P.operator==="<="){if(w=Gf(h,P,s),w===P&&w!==h)return!1}else if(h.operator==="<="&&!rr(h.semver,String(P),s))return!1}if(!P.operator&&(h||f)&&m!==0)return!1}return!(f&&v&&!h&&m!==0||h&&I&&!f&&m!==0||T||$)},Wf=(i,r,s)=>{if(!i)return r;let o=ks(i.semver,r.semver,s);return o>0?i:o<0||r.operator===">"&&i.operator===">="?r:i},Gf=(i,r,s)=>{if(!i)return r;let o=ks(i.semver,r.semver,s);return o<0?i:o>0||r.operator==="<"&&i.operator==="<="?r:i};Bf.exports=hE});var Vf=F((zw,zf)=>{var eu=Yt();zf.exports={re:eu.re,src:eu.src,tokens:eu.t,SEMVER_SPEC_VERSION:Vn().SEMVER_SPEC_VERSION,SemVer:me(),compareIdentifiers:ti().compareIdentifiers,rcompareIdentifiers:ti().rcompareIdentifiers,parse:Kt(),valid:cl(),clean:pl(),inc:dl(),diff:xl(),major:yl(),minor:Ol(),patch:Sl(),prerelease:Ll(),compare:ze(),rcompare:Tl(),compareLoose:Nl(),compareBuild:si(),sort:Dl(),rsort:Ul(),gt:Jn(),lt:ui(),eq:ii(),neq:Xs(),gte:oi(),lte:ai(),cmp:zs(),coerce:Yl(),Comparator:kn(),Range:Ve(),satisfies:nr(),toComparators:mf(),maxSatisfying:Ef(),minSatisfying:xf(),minVersion:Rf(),validRange:If(),outside:hi(),gtr:$f(),ltr:Pf(),intersects:Df(),simplifyRange:Uf(),subset:Xf()}});var gi=F(Fe=>{"use strict";var gE=Fe&&Fe.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),dE=Fe&&Fe.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),_E=Fe&&Fe.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&gE(r,i,s);return dE(r,i),r},Yf=Fe&&Fe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Fe,"__esModule",{value:!0});Fe.getCoreVersion=void 0;var Kf=Yf(require("path")),Zf=Yf(require("fs")),tu=_E(require("@serverless-devs/core")),mE=Vf(),Jf=Kf.default.join(tu.getRootHome(),"cache","core"),nu=Kf.default.join(Jf,"package.json");function vE(){if(Zf.default.existsSync(nu)){var i=require("@serverless-devs/core/package.json").version,r=Qf();return mE.gt(r,i)?require(Jf):tu}return tu}function Qf(){return Zf.default.existsSync(nu)?require(nu).version:void 0}Fe.getCoreVersion=Qf;Fe.default=vE()});var nc=F(Ce=>{"use strict";var EE=Ce&&Ce.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function x(I){try{v(o.next(I))}catch($){m($)}}function w(I){try{v(o.throw(I))}catch($){m($)}}function v(I){I.done?h(I.value):f(I.value).then(x,w)}v((o=o.apply(i,r||[])).next())})},wE=Ce&&Ce.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:x(0),throw:x(1),return:x(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function x(v){return function(I){return w([v,I])}}function w(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(I){v=[6,I],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},jf=Ce&&Ce.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ce,"__esModule",{value:!0});Ce.handlerProfileFile=Ce.getConfig=Ce.setConfig=void 0;var kf=jf(require("path")),iu=jf(gi()),ut=iu.default.fse,di=iu.default.jsyaml,ru=iu.default.getRootHome;function xE(i){var r=tc();ut.writeFileSync(r,di.dump(i))}function ec(){var i=tc();if(!ut.existsSync(i))return{};try{var r=di.load(ut.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function tc(){var i=kf.default.join(ru(),"set-config.yml");return ut.existsSync(i)||ut.createFileSync(i),i}function AE(i,r){var s=ec();s[i]=r,xE(s)}Ce.setConfig=AE;function yE(i,r){var s=ec();return s[i]||r}Ce.getConfig=yE;function RE(i){return EE(this,void 0,void 0,function(){var r,s,o,f,h,m,x;return wE(this,function(w){switch(w.label){case 0:if(r=i.filePath||"set-config.yml",s=kf.default.join(ru(),r),o=ut.existsSync(s),f={},o)return[3,5];h=ru(),w.label=1;case 1:return w.trys.push([1,2,,4]),ut.statSync(h),[3,4];case 2:return m=w.sent(),[4,ut.mkdirSync(h)];case 3:return w.sent(),[3,4];case 4:return[3,6];case 5:try{f=di.load(ut.readFileSync(s,"utf8"))||{}}catch(v){throw v}w.label=6;case 6:return i.read?[2,f]:(x=i.configKey||"",f[x]=i.data,[4,ut.writeFileSync(s,di.dump(f))]);case 7:return w.sent(),[2,f]}})})}Ce.handlerProfileFile=RE});var rc=F((Kw,OE)=>{OE.exports={name:"@serverless-devs/s",version:"2.0.100-beta.9",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/lodash":"^4.14.168","@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",lodash:"^4.17.20","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","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var ac=F(U=>{"use strict";var IE=U&&U.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),SE=U&&U.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),CE=U&&U.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&IE(r,i,s);return SE(r,i),r},sr=U&&U.__awaiter||function(i,r,s,o){function f(h){return h instanceof s?h:new s(function(m){m(h)})}return new(s||(s=Promise))(function(h,m){function x(I){try{v(o.next(I))}catch($){m($)}}function w(I){try{v(o.throw(I))}catch($){m($)}}function v(I){I.done?h(I.value):f(I.value).then(x,w)}v((o=o.apply(i,r||[])).next())})},ur=U&&U.__generator||function(i,r){var s={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},o,f,h,m;return m={next:x(0),throw:x(1),return:x(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function x(v){return function(I){return w([v,I])}}function w(v){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(h=v[0]&2?f.return:v[0]?f.throw||((h=f.return)&&h.call(f),0):f.next)&&!(h=h.call(f,v[1])).done)return h;switch(f=0,h&&(v=[v[0]&2,h.value]),v[0]){case 0:case 1:h=v;break;case 4:return s.label++,{value:v[1],done:!1};case 5:s.label++,f=v[1],v=[0];continue;case 7:v=s.ops.pop(),s.trys.pop();continue;default:if(h=s.trys,!(h=h.length>0&&h[h.length-1])&&(v[0]===6||v[0]===2)){s=0;continue}if(v[0]===3&&(!h||v[1]>h[0]&&v[1]<h[3])){s.label=v[1];break}if(v[0]===6&&s.label<h[1]){s.label=h[1],h=v;break}if(h&&s.label<h[2]){s.label=h[2],s.ops.push(v);break}h[2]&&s.ops.pop(),s.trys.pop();continue}v=r.call(i,s)}catch(I){v=[6,I],f=0}finally{o=h=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}},su=U&&U.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(U,"__esModule",{value:!0});U.emoji=U.mark=U.replaceTemplate=U.replaceFun=U.getLang=U.printn=U.getFolderSize=U.getVersion=U.getPid=U.aiRequest=U.getCredentialWithAll=U.getCredentialWithExisted=U.getProcessArgv=U.bgRed=U.yellow=U.red=void 0;var LE=su(require("path")),ir=su(require("fs")),Nt=Ka(),bE=su(require("os")),ot=CE(gi()),TE=nc(),ic=rc(),_i=ot.default.colors,$E=ot.default.got,NE=ot.default.getMAC,PE=ot.default.isDocker,FE=ot.default.isCiCdEnv,qE=ot.default.getGlobalArgs,sc=ot.default.getCredential,uc=ot.default.getCredentialAliasList;U.red=_i.hex("#fd5750");U.yellow=_i.hex("#F3F99D");U.bgRed=_i.hex("#000").bgHex("#fd5750");var DE=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=qE(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Nt.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Nt.filter)(s._argsObj,function(o){return!(0,Nt.includes)(["-h","--help"],o)}))})}catch{return{}}};U.getProcessArgv=DE;var ME=function(i){return sr(void 0,void 0,void 0,function(){var r,s;return ur(this,function(o){switch(o.label){case 0:return[4,uc()];case 1:return r=o.sent(),(0,Nt.includes)(r,i)?[4,sc(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Nt.omit)(s,"Alias")];case 3:return[2]}})})};U.getCredentialWithExisted=ME;var UE=function(){return sr(void 0,void 0,void 0,function(){var i,r,s,o,f,h;return ur(this,function(m){switch(m.label){case 0:return[4,uc()];case 1:if(i=m.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,m.label=2;case 2:return s<o.length?(f=o[s],[4,sc(f)]):[3,5];case 3:h=m.sent(),r[h.Alias]=(0,Nt.omit)(h,"Alias"),m.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};U.getCredentialWithAll=UE;var HE=function(i,r){return r===void 0&&(r="unknow"),sr(void 0,void 0,void 0,function(){var s,o,f,h;return ur(this,function(m){switch(m.label){case 0:return m.trys.push([0,2,,3]),s=(0,TE.getConfig)("analysis"),s!=="enable"?[2]:PE()||FE()?[2]:[4,$E("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0})];case 1:return o=m.sent(),f=(0,Nt.get)(o.body,"shorturl"),f&&console.log(`AI Tips:
35
35
  You can try to solve the problem through: `.concat(_i.underline(f),`
36
36
  `)),[3,3];case 2:return h=m.sent(),[3,3];case 3:return[2]}})})};U.aiRequest=HE;var WE=function(){try{return NE().replace(/:/g,"")}catch{return"unknown"}};U.getPid=WE;function GE(){var i=(0,ot.getCoreVersion)(),r="".concat(process.platform,"-").concat(process.arch),s="node-".concat(process.version),o="core: ".concat(i),f="s-home: ".concat(ot.default.getRootHome()),h="".concat(ic.name,": ").concat(ic.version);return i?"".concat(h,", ").concat(o,", ").concat(f,", ").concat(r,", ").concat(s):"".concat(h,", ").concat(f,", ").concat(r,", ").concat(s)}U.getVersion=GE;function BE(i){return sr(this,void 0,void 0,function(){function r(f){return sr(this,void 0,void 0,function(){var h,m;return ur(this,function(x){switch(x.label){case 0:return h=ir.default.lstatSync(f),typeof h!="object"?[2]:(s.set(h.ino,h.size),h.isDirectory()?(m=ir.default.readdirSync(f),typeof m!="object"?[2]:[4,Promise.all(m.map(function(w){return r(LE.default.join(f,w))}))]):[3,2]);case 1:x.sent(),x.label=2;case 2:return[2]}})})}var s,o;return ur(this,function(f){switch(f.label){case 0:return s=new Map,[4,r(i)];case 1:return f.sent(),o=Array.from(s.values()).reduce(function(h,m){return h+m},0),[2,o]}})})}U.getFolderSize=BE;function XE(i,r){r===void 0&&(r=" ");for(var s="",o=0;o<i;o++)s=s+r;return s}U.printn=XE;function zE(){return"en"}U.getLang=zE;function oc(i,r){var s=/\{\{(.*?)\}\}/g,o=i.match(s);if(o)for(var f=0;f<o.length;f++){var h=o[f].replace(/{{|}}/g,""),m=(0,Nt.trim)(h.split("|")[0]);r[m]&&(i=i.replace(o[f],r[m]))}return i}U.replaceFun=oc;function VE(i,r){i.forEach(function(s){if(ir.default.existsSync(s)){var o=ir.default.readFileSync(s,"utf-8"),f=oc(o,r);ir.default.writeFileSync(s,f,"utf-8")}})}U.replaceTemplate=VE;function YE(i){if(!i)return i;var r=i.slice(-4);return"***********".concat(r)}U.mark=YE;function KE(i,r){return bE.default.platform()==="win32"?r||"\u25C6":"".concat(i," ")}U.emoji=KE});var lc=exports&&exports.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(exports,"__esModule",{value:!0});var ZE=lc(Ya()),mi=ac(),JE=lc(gi()),QE=JE.default.colors,jE=`You can make some default settings for the tool here.
37
37
 
@@ -31,7 +31,7 @@ __p += '`),Y&&(S+=`' +
31
31
  function print() { __p += __j.call(arguments, '') }
32
32
  `:`;
33
33
  `)+S+`return __p
34
- }`;var B=hl(function(){return Z(h,P+"return "+S).apply(i,g)});if(B.source=S,Ys(B))throw B;return B}function tm(e){return J(e).toLowerCase()}function nm(e){return J(e).toUpperCase()}function rm(e,t,n){if(e=J(e),e&&(n||t===i))return wo(e);if(!e||!(t=De(t)))return e;var u=Je(e),l=Je(t),h=xo(u,l),g=Ao(u,l)+1;return Nt(u,h,g).join("")}function im(e,t,n){if(e=J(e),e&&(n||t===i))return e.slice(0,bo(e)+1);if(!e||!(t=De(t)))return e;var u=Je(e),l=Ao(u,Je(t))+1;return Nt(u,0,l).join("")}function sm(e,t,n){if(e=J(e),e&&(n||t===i))return e.replace(Yi,"");if(!e||!(t=De(t)))return e;var u=Je(e),l=xo(u,Je(t));return Nt(u,l).join("")}function um(e,t){var n=Qc,u=eh;if(ie(t)){var l="separator"in t?t.separator:l;n="length"in t?U(t.length):n,u="omission"in t?De(t.omission):u}e=J(e);var h=e.length;if(hn(e)){var g=Je(e);h=g.length}if(n>=h)return e;var _=n-pn(u);if(_<1)return u;var m=g?Nt(g,0,_).join(""):e.slice(0,_);if(l===i)return m+u;if(g&&(_+=m.length-_),Ks(l)){if(e.slice(_).search(l)){var O,b=m;for(l.global||(l=cs(l.source,J(Uu.exec(l))+"g")),l.lastIndex=0;O=l.exec(b);)var S=O.index;m=m.slice(0,S===i?_:S)}}else if(e.indexOf(De(l),_)!=_){var R=m.lastIndexOf(l);R>-1&&(m=m.slice(0,R))}return m+u}function om(e){return e=J(e),e&&mh.test(e)?e.replace(Hu,qp):e}var am=En(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ks=pa("toUpperCase");function cl(e,t,n){return e=J(e),t=n?i:t,t===i?Tp(e)?Hp(e):xp(e):e.match(t)||[]}var hl=X(function(e,t){try{return Te(e,i,t)}catch(n){return Ys(n)?n:new W(n)}}),lm=mt(function(e,t){return He(t,function(n){n=ot(n),_t(e,n,zs(e[n],e))}),e});function fm(e){var t=e==null?0:e.length,n=q();return e=t?re(e,function(u){if(typeof u[1]!="function")throw new We(f);return[n(u[0]),u[1]]}):[],X(function(u){for(var l=-1;++l<t;){var h=e[l];if(Te(h[0],this,u))return Te(h[1],this,u)}})}function cm(e){return qg(Ue(e,p))}function Qs(e){return function(){return e}}function hm(e,t){return e==null||e!==e?t:e}var pm=da(),gm=da(!0);function Ce(e){return e}function eu(e){return Xo(typeof e=="function"?e:Ue(e,p))}function dm(e){return Vo(Ue(e,p))}function _m(e,t){return Yo(e,Ue(t,p))}var vm=X(function(e,t){return function(n){return Jn(n,e,t)}}),mm=X(function(e,t){return function(n){return Jn(e,n,t)}});function tu(e,t,n){var u=he(t),l=kr(t,u);n==null&&!(ie(t)&&(l.length||!u.length))&&(n=t,t=e,e=this,l=kr(t,he(t)));var h=!(ie(n)&&"chain"in n)||!!n.chain,g=yt(e);return He(l,function(_){var m=t[_];e[_]=m,g&&(e.prototype[_]=function(){var O=this.__chain__;if(h||O){var b=e(this.__wrapped__),S=b.__actions__=Se(this.__actions__);return S.push({func:m,args:arguments,thisArg:e}),b.__chain__=O,b}return m.apply(e,It([this.value()],arguments))})}),e}function Em(){return ce._===this&&(ce._=Xp),this}function nu(){}function ym(e){return e=U(e),X(function(t){return Ko(t,e)})}var wm=Ds(re),xm=Ds(_o),Am=Ds(is);function pl(e){return Ws(e)?ss(ot(e)):Qg(e)}function Om(e){return function(t){return e==null?i:Vt(e,t)}}var bm=va(),Sm=va(!0);function ru(){return[]}function iu(){return!1}function Rm(){return{}}function Im(){return""}function Cm(){return!0}function Lm(e,t){if(e=U(e),e<1||e>St)return[];var n=it,u=_e(e,it);t=q(t),e-=it;for(var l=as(u,t);++n<e;)t(n);return l}function Tm(e){return G(e)?re(e,ot):Pe(e)?[e]:Se(Da(J(e)))}function $m(e){var t=++Bp;return J(e)+t}var Dm=ii(function(e,t){return e+t},0),Pm=Ps("ceil"),Nm=ii(function(e,t){return e/t},1),qm=Ps("floor");function Fm(e){return e&&e.length?Jr(e,Ce,Es):i}function Mm(e,t){return e&&e.length?Jr(e,q(t,2),Es):i}function Hm(e){return Eo(e,Ce)}function Wm(e,t){return Eo(e,q(t,2))}function Gm(e){return e&&e.length?Jr(e,Ce,As):i}function Um(e,t){return e&&e.length?Jr(e,q(t,2),As):i}var Bm=ii(function(e,t){return e*t},1),jm=Ps("round"),Xm=ii(function(e,t){return e-t},0);function zm(e){return e&&e.length?os(e,Ce):0}function Vm(e,t){return e&&e.length?os(e,q(t,2)):0}return c.after=d0,c.ary=ja,c.assign=nv,c.assignIn=il,c.assignInWith=vi,c.assignWith=rv,c.at=iv,c.before=Xa,c.bind=zs,c.bindAll=lm,c.bindKey=za,c.castArray=R0,c.chain=Ga,c.chunk=qd,c.compact=Fd,c.concat=Md,c.cond=fm,c.conforms=cm,c.constant=Qs,c.countBy=z_,c.create=sv,c.curry=Va,c.curryRight=Ya,c.debounce=Ka,c.defaults=uv,c.defaultsDeep=ov,c.defer=_0,c.delay=v0,c.difference=Hd,c.differenceBy=Wd,c.differenceWith=Gd,c.drop=Ud,c.dropRight=Bd,c.dropRightWhile=jd,c.dropWhile=Xd,c.fill=zd,c.filter=Y_,c.flatMap=J_,c.flatMapDeep=k_,c.flatMapDepth=Q_,c.flatten=Fa,c.flattenDeep=Vd,c.flattenDepth=Yd,c.flip=m0,c.flow=pm,c.flowRight=gm,c.fromPairs=Kd,c.functions=gv,c.functionsIn=dv,c.groupBy=e0,c.initial=Jd,c.intersection=kd,c.intersectionBy=Qd,c.intersectionWith=e_,c.invert=vv,c.invertBy=mv,c.invokeMap=n0,c.iteratee=eu,c.keyBy=r0,c.keys=he,c.keysIn=Ie,c.map=ci,c.mapKeys=yv,c.mapValues=wv,c.matches=dm,c.matchesProperty=_m,c.memoize=pi,c.merge=xv,c.mergeWith=sl,c.method=vm,c.methodOf=mm,c.mixin=tu,c.negate=gi,c.nthArg=ym,c.omit=Av,c.omitBy=Ov,c.once=E0,c.orderBy=i0,c.over=wm,c.overArgs=y0,c.overEvery=xm,c.overSome=Am,c.partial=Vs,c.partialRight=Za,c.partition=s0,c.pick=bv,c.pickBy=ul,c.property=pl,c.propertyOf=Om,c.pull=i_,c.pullAll=Ha,c.pullAllBy=s_,c.pullAllWith=u_,c.pullAt=o_,c.range=bm,c.rangeRight=Sm,c.rearg=w0,c.reject=a0,c.remove=a_,c.rest=x0,c.reverse=js,c.sampleSize=f0,c.set=Rv,c.setWith=Iv,c.shuffle=c0,c.slice=l_,c.sortBy=g0,c.sortedUniq=__,c.sortedUniqBy=v_,c.split=Jv,c.spread=A0,c.tail=m_,c.take=E_,c.takeRight=y_,c.takeRightWhile=w_,c.takeWhile=x_,c.tap=F_,c.throttle=O0,c.thru=fi,c.toArray=tl,c.toPairs=ol,c.toPairsIn=al,c.toPath=Tm,c.toPlainObject=rl,c.transform=Cv,c.unary=b0,c.union=A_,c.unionBy=O_,c.unionWith=b_,c.uniq=S_,c.uniqBy=R_,c.uniqWith=I_,c.unset=Lv,c.unzip=Xs,c.unzipWith=Wa,c.update=Tv,c.updateWith=$v,c.values=xn,c.valuesIn=Dv,c.without=C_,c.words=cl,c.wrap=S0,c.xor=L_,c.xorBy=T_,c.xorWith=$_,c.zip=D_,c.zipObject=P_,c.zipObjectDeep=N_,c.zipWith=q_,c.entries=ol,c.entriesIn=al,c.extend=il,c.extendWith=vi,tu(c,c),c.add=Dm,c.attempt=hl,c.camelCase=Fv,c.capitalize=ll,c.ceil=Pm,c.clamp=Pv,c.clone=I0,c.cloneDeep=L0,c.cloneDeepWith=T0,c.cloneWith=C0,c.conformsTo=$0,c.deburr=fl,c.defaultTo=hm,c.divide=Nm,c.endsWith=Mv,c.eq=Qe,c.escape=Hv,c.escapeRegExp=Wv,c.every=V_,c.find=K_,c.findIndex=Na,c.findKey=av,c.findLast=Z_,c.findLastIndex=qa,c.findLastKey=lv,c.floor=qm,c.forEach=Ua,c.forEachRight=Ba,c.forIn=fv,c.forInRight=cv,c.forOwn=hv,c.forOwnRight=pv,c.get=Zs,c.gt=D0,c.gte=P0,c.has=_v,c.hasIn=Js,c.head=Ma,c.identity=Ce,c.includes=t0,c.indexOf=Zd,c.inRange=Nv,c.invoke=Ev,c.isArguments=Zt,c.isArray=G,c.isArrayBuffer=N0,c.isArrayLike=Re,c.isArrayLikeObject=ue,c.isBoolean=q0,c.isBuffer=qt,c.isDate=F0,c.isElement=M0,c.isEmpty=H0,c.isEqual=W0,c.isEqualWith=G0,c.isError=Ys,c.isFinite=U0,c.isFunction=yt,c.isInteger=Ja,c.isLength=di,c.isMap=ka,c.isMatch=B0,c.isMatchWith=j0,c.isNaN=X0,c.isNative=z0,c.isNil=Y0,c.isNull=V0,c.isNumber=Qa,c.isObject=ie,c.isObjectLike=se,c.isPlainObject=rr,c.isRegExp=Ks,c.isSafeInteger=K0,c.isSet=el,c.isString=_i,c.isSymbol=Pe,c.isTypedArray=wn,c.isUndefined=Z0,c.isWeakMap=J0,c.isWeakSet=k0,c.join=t_,c.kebabCase=Gv,c.last=je,c.lastIndexOf=n_,c.lowerCase=Uv,c.lowerFirst=Bv,c.lt=Q0,c.lte=ev,c.max=Fm,c.maxBy=Mm,c.mean=Hm,c.meanBy=Wm,c.min=Gm,c.minBy=Um,c.stubArray=ru,c.stubFalse=iu,c.stubObject=Rm,c.stubString=Im,c.stubTrue=Cm,c.multiply=Bm,c.nth=r_,c.noConflict=Em,c.noop=nu,c.now=hi,c.pad=jv,c.padEnd=Xv,c.padStart=zv,c.parseInt=Vv,c.random=qv,c.reduce=u0,c.reduceRight=o0,c.repeat=Yv,c.replace=Kv,c.result=Sv,c.round=jm,c.runInContext=v,c.sample=l0,c.size=h0,c.snakeCase=Zv,c.some=p0,c.sortedIndex=f_,c.sortedIndexBy=c_,c.sortedIndexOf=h_,c.sortedLastIndex=p_,c.sortedLastIndexBy=g_,c.sortedLastIndexOf=d_,c.startCase=kv,c.startsWith=Qv,c.subtract=Xm,c.sum=zm,c.sumBy=Vm,c.template=em,c.times=Lm,c.toFinite=wt,c.toInteger=U,c.toLength=nl,c.toLower=tm,c.toNumber=Xe,c.toSafeInteger=tv,c.toString=J,c.toUpper=nm,c.trim=rm,c.trimEnd=im,c.trimStart=sm,c.truncate=um,c.unescape=om,c.uniqueId=$m,c.upperCase=am,c.upperFirst=ks,c.each=Ua,c.eachRight=Ba,c.first=Ma,tu(c,function(){var e={};return st(c,function(t,n){k.call(c.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),c.VERSION=r,He(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),He(["drop","take"],function(e,t){V.prototype[e]=function(n){n=n===i?1:fe(U(n),0);var u=this.__filtered__&&!t?new V(this):this.clone();return u.__filtered__?u.__takeCount__=_e(n,u.__takeCount__):u.__views__.push({size:_e(n,it),type:e+(u.__dir__<0?"Right":"")}),u},V.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),He(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==qu||n==ih;V.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:q(l,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),He(["head","last"],function(e,t){var n="take"+(t?"Right":"");V.prototype[e]=function(){return this[n](1).value()[0]}}),He(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");V.prototype[e]=function(){return this.__filtered__?new V(this):this[n](1)}}),V.prototype.compact=function(){return this.filter(Ce)},V.prototype.find=function(e){return this.filter(e).head()},V.prototype.findLast=function(e){return this.reverse().find(e)},V.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new V(this):this.map(function(n){return Jn(n,e,t)})}),V.prototype.reject=function(e){return this.filter(gi(q(e)))},V.prototype.slice=function(e,t){e=U(e);var n=this;return n.__filtered__&&(e>0||t<0)?new V(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=U(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},V.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},V.prototype.toArray=function(){return this.take(it)},st(V.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),l=c[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!l||(c.prototype[t]=function(){var g=this.__wrapped__,_=u?[1]:arguments,m=g instanceof V,O=_[0],b=m||G(g),S=function(z){var Y=l.apply(c,It([z],_));return u&&R?Y[0]:Y};b&&n&&typeof O=="function"&&O.length!=1&&(m=b=!1);var R=this.__chain__,P=!!this.__actions__.length,F=h&&!R,B=m&&!P;if(!h&&b){g=B?g:new V(this);var M=e.apply(g,_);return M.__actions__.push({func:fi,args:[S],thisArg:i}),new Ge(M,R)}return F&&B?e.apply(this,_):(M=this.thru(S),F?u?M.value()[0]:M.value():M)})}),He(["pop","push","shift","sort","splice","unshift"],function(e){var t=qr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var l=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(G(h)?h:[],l)}return this[n](function(g){return t.apply(G(g)?g:[],l)})}}),st(V.prototype,function(e,t){var n=c[t];if(n){var u=n.name+"";k.call(_n,u)||(_n[u]=[]),_n[u].push({name:t,func:n})}}),_n[ri(i,Wt).name]=[{name:"wrapper",func:i}],V.prototype.clone=og,V.prototype.reverse=ag,V.prototype.value=lg,c.prototype.at=M_,c.prototype.chain=H_,c.prototype.commit=W_,c.prototype.next=G_,c.prototype.plant=B_,c.prototype.reverse=j_,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=X_,c.prototype.first=c.prototype.head,jn&&(c.prototype[jn]=U_),c},Lt=Wp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ce._=Lt,define(function(){return Lt})):Ut?((Ut.exports=Lt)._=Lt,es._=Lt):ce._=Lt}).call(Sn)});var Di=L(Le=>{"use strict";var cy=Le&&Le.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},hy=Le&&Le.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Rc=Le&&Le.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Le,"__esModule",{value:!0});Le.handlerProfileFile=Le.getConfig=Le.setConfig=void 0;var Ic=Rc(require("path")),bu=Rc(bt()),at=bu.default.fse,$i=bu.default.jsyaml,Ou=bu.default.getRootHome;function py(i){var r=Lc();at.writeFileSync(r,$i.dump(i))}function Cc(){var i=Lc();if(!at.existsSync(i))return{};try{var r=$i.load(at.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function Lc(){var i=Ic.default.join(Ou(),"set-config.yml");return at.existsSync(i)||at.createFileSync(i),i}function gy(i,r){var s=Cc();s[i]=r,py(s)}Le.setConfig=gy;function dy(i,r){var s=Cc();return s[i]||r}Le.getConfig=dy;function _y(i){return cy(this,void 0,void 0,function(){var r,s,o,f,a,d,E;return hy(this,function(y){switch(y.label){case 0:if(r=i.filePath||"set-config.yml",s=Ic.default.join(Ou(),r),o=at.existsSync(s),f={},o)return[3,5];a=Ou(),y.label=1;case 1:return y.trys.push([1,2,,4]),at.statSync(a),[3,4];case 2:return d=y.sent(),[4,at.mkdirSync(a)];case 3:return y.sent(),[3,4];case 4:return[3,6];case 5:try{f=$i.load(at.readFileSync(s,"utf8"))||{}}catch(p){throw p}y.label=6;case 6:return i.read?[2,f]:(E=i.configKey||"",f[E]=i.data,[4,at.writeFileSync(s,$i.dump(f))]);case 7:return y.sent(),[2,f]}})})}Le.handlerProfileFile=_y});var Tc=L((Bx,vy)=>{vy.exports={name:"@serverless-devs/s",version:"2.0.100-beta.8",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/lodash":"^4.14.168","@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",lodash:"^4.17.20","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","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var Ar=L(H=>{"use strict";var my=H&&H.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),Ey=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),yy=H&&H.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&my(r,i,s);return Ey(r,i),r},wr=H&&H.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},xr=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Su=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.replaceFun=H.getLang=H.printn=H.getFolderSize=H.getVersion=H.getPid=H.aiRequest=H.getCredentialWithAll=H.getCredentialWithExisted=H.getProcessArgv=H.bgRed=H.yellow=H.red=void 0;var wy=Su(require("path")),yr=Su(require("fs")),Mt=Sc(),xy=Su(require("os")),lt=yy(bt()),Ay=Di(),$c=Tc(),Pi=lt.default.colors,Oy=lt.default.got,by=lt.default.getMAC,Sy=lt.default.isDocker,Ry=lt.default.isCiCdEnv,Iy=lt.default.getGlobalArgs,Dc=lt.default.getCredential,Pc=lt.default.getCredentialAliasList;H.red=Pi.hex("#fd5750");H.yellow=Pi.hex("#F3F99D");H.bgRed=Pi.hex("#000").bgHex("#fd5750");var Cy=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=Iy(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Mt.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Mt.filter)(s._argsObj,function(o){return!(0,Mt.includes)(["-h","--help"],o)}))})}catch{return{}}};H.getProcessArgv=Cy;var Ly=function(i){return wr(void 0,void 0,void 0,function(){var r,s;return xr(this,function(o){switch(o.label){case 0:return[4,Pc()];case 1:return r=o.sent(),(0,Mt.includes)(r,i)?[4,Dc(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Mt.omit)(s,"Alias")];case 3:return[2]}})})};H.getCredentialWithExisted=Ly;var Ty=function(){return wr(void 0,void 0,void 0,function(){var i,r,s,o,f,a;return xr(this,function(d){switch(d.label){case 0:return[4,Pc()];case 1:if(i=d.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,d.label=2;case 2:return s<o.length?(f=o[s],[4,Dc(f)]):[3,5];case 3:a=d.sent(),r[a.Alias]=(0,Mt.omit)(a,"Alias"),d.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};H.getCredentialWithAll=Ty;var $y=function(i,r){return r===void 0&&(r="unknow"),wr(void 0,void 0,void 0,function(){var s,o,f,a;return xr(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),s=(0,Ay.getConfig)("analysis"),s!=="enable"?[2]:Sy()||Ry()?[2]:[4,Oy("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0})];case 1:return o=d.sent(),f=(0,Mt.get)(o.body,"shorturl"),f&&console.log(`AI Tips:
34
+ }`;var B=hl(function(){return Z(h,P+"return "+S).apply(i,g)});if(B.source=S,Ys(B))throw B;return B}function tm(e){return J(e).toLowerCase()}function nm(e){return J(e).toUpperCase()}function rm(e,t,n){if(e=J(e),e&&(n||t===i))return wo(e);if(!e||!(t=De(t)))return e;var u=Je(e),l=Je(t),h=xo(u,l),g=Ao(u,l)+1;return Nt(u,h,g).join("")}function im(e,t,n){if(e=J(e),e&&(n||t===i))return e.slice(0,bo(e)+1);if(!e||!(t=De(t)))return e;var u=Je(e),l=Ao(u,Je(t))+1;return Nt(u,0,l).join("")}function sm(e,t,n){if(e=J(e),e&&(n||t===i))return e.replace(Yi,"");if(!e||!(t=De(t)))return e;var u=Je(e),l=xo(u,Je(t));return Nt(u,l).join("")}function um(e,t){var n=Qc,u=eh;if(ie(t)){var l="separator"in t?t.separator:l;n="length"in t?U(t.length):n,u="omission"in t?De(t.omission):u}e=J(e);var h=e.length;if(hn(e)){var g=Je(e);h=g.length}if(n>=h)return e;var _=n-pn(u);if(_<1)return u;var m=g?Nt(g,0,_).join(""):e.slice(0,_);if(l===i)return m+u;if(g&&(_+=m.length-_),Ks(l)){if(e.slice(_).search(l)){var O,b=m;for(l.global||(l=cs(l.source,J(Uu.exec(l))+"g")),l.lastIndex=0;O=l.exec(b);)var S=O.index;m=m.slice(0,S===i?_:S)}}else if(e.indexOf(De(l),_)!=_){var R=m.lastIndexOf(l);R>-1&&(m=m.slice(0,R))}return m+u}function om(e){return e=J(e),e&&mh.test(e)?e.replace(Hu,qp):e}var am=En(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ks=pa("toUpperCase");function cl(e,t,n){return e=J(e),t=n?i:t,t===i?Tp(e)?Hp(e):xp(e):e.match(t)||[]}var hl=X(function(e,t){try{return Te(e,i,t)}catch(n){return Ys(n)?n:new W(n)}}),lm=mt(function(e,t){return He(t,function(n){n=ot(n),_t(e,n,zs(e[n],e))}),e});function fm(e){var t=e==null?0:e.length,n=q();return e=t?re(e,function(u){if(typeof u[1]!="function")throw new We(f);return[n(u[0]),u[1]]}):[],X(function(u){for(var l=-1;++l<t;){var h=e[l];if(Te(h[0],this,u))return Te(h[1],this,u)}})}function cm(e){return qg(Ue(e,p))}function Qs(e){return function(){return e}}function hm(e,t){return e==null||e!==e?t:e}var pm=da(),gm=da(!0);function Ce(e){return e}function eu(e){return Xo(typeof e=="function"?e:Ue(e,p))}function dm(e){return Vo(Ue(e,p))}function _m(e,t){return Yo(e,Ue(t,p))}var vm=X(function(e,t){return function(n){return Jn(n,e,t)}}),mm=X(function(e,t){return function(n){return Jn(e,n,t)}});function tu(e,t,n){var u=he(t),l=kr(t,u);n==null&&!(ie(t)&&(l.length||!u.length))&&(n=t,t=e,e=this,l=kr(t,he(t)));var h=!(ie(n)&&"chain"in n)||!!n.chain,g=yt(e);return He(l,function(_){var m=t[_];e[_]=m,g&&(e.prototype[_]=function(){var O=this.__chain__;if(h||O){var b=e(this.__wrapped__),S=b.__actions__=Se(this.__actions__);return S.push({func:m,args:arguments,thisArg:e}),b.__chain__=O,b}return m.apply(e,It([this.value()],arguments))})}),e}function Em(){return ce._===this&&(ce._=Xp),this}function nu(){}function ym(e){return e=U(e),X(function(t){return Ko(t,e)})}var wm=Ds(re),xm=Ds(_o),Am=Ds(is);function pl(e){return Ws(e)?ss(ot(e)):Qg(e)}function Om(e){return function(t){return e==null?i:Vt(e,t)}}var bm=va(),Sm=va(!0);function ru(){return[]}function iu(){return!1}function Rm(){return{}}function Im(){return""}function Cm(){return!0}function Lm(e,t){if(e=U(e),e<1||e>St)return[];var n=it,u=_e(e,it);t=q(t),e-=it;for(var l=as(u,t);++n<e;)t(n);return l}function Tm(e){return G(e)?re(e,ot):Pe(e)?[e]:Se(Da(J(e)))}function $m(e){var t=++Bp;return J(e)+t}var Dm=ii(function(e,t){return e+t},0),Pm=Ps("ceil"),Nm=ii(function(e,t){return e/t},1),qm=Ps("floor");function Fm(e){return e&&e.length?Jr(e,Ce,Es):i}function Mm(e,t){return e&&e.length?Jr(e,q(t,2),Es):i}function Hm(e){return Eo(e,Ce)}function Wm(e,t){return Eo(e,q(t,2))}function Gm(e){return e&&e.length?Jr(e,Ce,As):i}function Um(e,t){return e&&e.length?Jr(e,q(t,2),As):i}var Bm=ii(function(e,t){return e*t},1),jm=Ps("round"),Xm=ii(function(e,t){return e-t},0);function zm(e){return e&&e.length?os(e,Ce):0}function Vm(e,t){return e&&e.length?os(e,q(t,2)):0}return c.after=d0,c.ary=ja,c.assign=nv,c.assignIn=il,c.assignInWith=vi,c.assignWith=rv,c.at=iv,c.before=Xa,c.bind=zs,c.bindAll=lm,c.bindKey=za,c.castArray=R0,c.chain=Ga,c.chunk=qd,c.compact=Fd,c.concat=Md,c.cond=fm,c.conforms=cm,c.constant=Qs,c.countBy=z_,c.create=sv,c.curry=Va,c.curryRight=Ya,c.debounce=Ka,c.defaults=uv,c.defaultsDeep=ov,c.defer=_0,c.delay=v0,c.difference=Hd,c.differenceBy=Wd,c.differenceWith=Gd,c.drop=Ud,c.dropRight=Bd,c.dropRightWhile=jd,c.dropWhile=Xd,c.fill=zd,c.filter=Y_,c.flatMap=J_,c.flatMapDeep=k_,c.flatMapDepth=Q_,c.flatten=Fa,c.flattenDeep=Vd,c.flattenDepth=Yd,c.flip=m0,c.flow=pm,c.flowRight=gm,c.fromPairs=Kd,c.functions=gv,c.functionsIn=dv,c.groupBy=e0,c.initial=Jd,c.intersection=kd,c.intersectionBy=Qd,c.intersectionWith=e_,c.invert=vv,c.invertBy=mv,c.invokeMap=n0,c.iteratee=eu,c.keyBy=r0,c.keys=he,c.keysIn=Ie,c.map=ci,c.mapKeys=yv,c.mapValues=wv,c.matches=dm,c.matchesProperty=_m,c.memoize=pi,c.merge=xv,c.mergeWith=sl,c.method=vm,c.methodOf=mm,c.mixin=tu,c.negate=gi,c.nthArg=ym,c.omit=Av,c.omitBy=Ov,c.once=E0,c.orderBy=i0,c.over=wm,c.overArgs=y0,c.overEvery=xm,c.overSome=Am,c.partial=Vs,c.partialRight=Za,c.partition=s0,c.pick=bv,c.pickBy=ul,c.property=pl,c.propertyOf=Om,c.pull=i_,c.pullAll=Ha,c.pullAllBy=s_,c.pullAllWith=u_,c.pullAt=o_,c.range=bm,c.rangeRight=Sm,c.rearg=w0,c.reject=a0,c.remove=a_,c.rest=x0,c.reverse=js,c.sampleSize=f0,c.set=Rv,c.setWith=Iv,c.shuffle=c0,c.slice=l_,c.sortBy=g0,c.sortedUniq=__,c.sortedUniqBy=v_,c.split=Jv,c.spread=A0,c.tail=m_,c.take=E_,c.takeRight=y_,c.takeRightWhile=w_,c.takeWhile=x_,c.tap=F_,c.throttle=O0,c.thru=fi,c.toArray=tl,c.toPairs=ol,c.toPairsIn=al,c.toPath=Tm,c.toPlainObject=rl,c.transform=Cv,c.unary=b0,c.union=A_,c.unionBy=O_,c.unionWith=b_,c.uniq=S_,c.uniqBy=R_,c.uniqWith=I_,c.unset=Lv,c.unzip=Xs,c.unzipWith=Wa,c.update=Tv,c.updateWith=$v,c.values=xn,c.valuesIn=Dv,c.without=C_,c.words=cl,c.wrap=S0,c.xor=L_,c.xorBy=T_,c.xorWith=$_,c.zip=D_,c.zipObject=P_,c.zipObjectDeep=N_,c.zipWith=q_,c.entries=ol,c.entriesIn=al,c.extend=il,c.extendWith=vi,tu(c,c),c.add=Dm,c.attempt=hl,c.camelCase=Fv,c.capitalize=ll,c.ceil=Pm,c.clamp=Pv,c.clone=I0,c.cloneDeep=L0,c.cloneDeepWith=T0,c.cloneWith=C0,c.conformsTo=$0,c.deburr=fl,c.defaultTo=hm,c.divide=Nm,c.endsWith=Mv,c.eq=Qe,c.escape=Hv,c.escapeRegExp=Wv,c.every=V_,c.find=K_,c.findIndex=Na,c.findKey=av,c.findLast=Z_,c.findLastIndex=qa,c.findLastKey=lv,c.floor=qm,c.forEach=Ua,c.forEachRight=Ba,c.forIn=fv,c.forInRight=cv,c.forOwn=hv,c.forOwnRight=pv,c.get=Zs,c.gt=D0,c.gte=P0,c.has=_v,c.hasIn=Js,c.head=Ma,c.identity=Ce,c.includes=t0,c.indexOf=Zd,c.inRange=Nv,c.invoke=Ev,c.isArguments=Zt,c.isArray=G,c.isArrayBuffer=N0,c.isArrayLike=Re,c.isArrayLikeObject=ue,c.isBoolean=q0,c.isBuffer=qt,c.isDate=F0,c.isElement=M0,c.isEmpty=H0,c.isEqual=W0,c.isEqualWith=G0,c.isError=Ys,c.isFinite=U0,c.isFunction=yt,c.isInteger=Ja,c.isLength=di,c.isMap=ka,c.isMatch=B0,c.isMatchWith=j0,c.isNaN=X0,c.isNative=z0,c.isNil=Y0,c.isNull=V0,c.isNumber=Qa,c.isObject=ie,c.isObjectLike=se,c.isPlainObject=rr,c.isRegExp=Ks,c.isSafeInteger=K0,c.isSet=el,c.isString=_i,c.isSymbol=Pe,c.isTypedArray=wn,c.isUndefined=Z0,c.isWeakMap=J0,c.isWeakSet=k0,c.join=t_,c.kebabCase=Gv,c.last=je,c.lastIndexOf=n_,c.lowerCase=Uv,c.lowerFirst=Bv,c.lt=Q0,c.lte=ev,c.max=Fm,c.maxBy=Mm,c.mean=Hm,c.meanBy=Wm,c.min=Gm,c.minBy=Um,c.stubArray=ru,c.stubFalse=iu,c.stubObject=Rm,c.stubString=Im,c.stubTrue=Cm,c.multiply=Bm,c.nth=r_,c.noConflict=Em,c.noop=nu,c.now=hi,c.pad=jv,c.padEnd=Xv,c.padStart=zv,c.parseInt=Vv,c.random=qv,c.reduce=u0,c.reduceRight=o0,c.repeat=Yv,c.replace=Kv,c.result=Sv,c.round=jm,c.runInContext=v,c.sample=l0,c.size=h0,c.snakeCase=Zv,c.some=p0,c.sortedIndex=f_,c.sortedIndexBy=c_,c.sortedIndexOf=h_,c.sortedLastIndex=p_,c.sortedLastIndexBy=g_,c.sortedLastIndexOf=d_,c.startCase=kv,c.startsWith=Qv,c.subtract=Xm,c.sum=zm,c.sumBy=Vm,c.template=em,c.times=Lm,c.toFinite=wt,c.toInteger=U,c.toLength=nl,c.toLower=tm,c.toNumber=Xe,c.toSafeInteger=tv,c.toString=J,c.toUpper=nm,c.trim=rm,c.trimEnd=im,c.trimStart=sm,c.truncate=um,c.unescape=om,c.uniqueId=$m,c.upperCase=am,c.upperFirst=ks,c.each=Ua,c.eachRight=Ba,c.first=Ma,tu(c,function(){var e={};return st(c,function(t,n){k.call(c.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),c.VERSION=r,He(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){c[e].placeholder=c}),He(["drop","take"],function(e,t){V.prototype[e]=function(n){n=n===i?1:fe(U(n),0);var u=this.__filtered__&&!t?new V(this):this.clone();return u.__filtered__?u.__takeCount__=_e(n,u.__takeCount__):u.__views__.push({size:_e(n,it),type:e+(u.__dir__<0?"Right":"")}),u},V.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),He(["filter","map","takeWhile"],function(e,t){var n=t+1,u=n==qu||n==ih;V.prototype[e]=function(l){var h=this.clone();return h.__iteratees__.push({iteratee:q(l,3),type:n}),h.__filtered__=h.__filtered__||u,h}}),He(["head","last"],function(e,t){var n="take"+(t?"Right":"");V.prototype[e]=function(){return this[n](1).value()[0]}}),He(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");V.prototype[e]=function(){return this.__filtered__?new V(this):this[n](1)}}),V.prototype.compact=function(){return this.filter(Ce)},V.prototype.find=function(e){return this.filter(e).head()},V.prototype.findLast=function(e){return this.reverse().find(e)},V.prototype.invokeMap=X(function(e,t){return typeof e=="function"?new V(this):this.map(function(n){return Jn(n,e,t)})}),V.prototype.reject=function(e){return this.filter(gi(q(e)))},V.prototype.slice=function(e,t){e=U(e);var n=this;return n.__filtered__&&(e>0||t<0)?new V(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=U(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},V.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},V.prototype.toArray=function(){return this.take(it)},st(V.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),l=c[u?"take"+(t=="last"?"Right":""):t],h=u||/^find/.test(t);!l||(c.prototype[t]=function(){var g=this.__wrapped__,_=u?[1]:arguments,m=g instanceof V,O=_[0],b=m||G(g),S=function(z){var Y=l.apply(c,It([z],_));return u&&R?Y[0]:Y};b&&n&&typeof O=="function"&&O.length!=1&&(m=b=!1);var R=this.__chain__,P=!!this.__actions__.length,F=h&&!R,B=m&&!P;if(!h&&b){g=B?g:new V(this);var M=e.apply(g,_);return M.__actions__.push({func:fi,args:[S],thisArg:i}),new Ge(M,R)}return F&&B?e.apply(this,_):(M=this.thru(S),F?u?M.value()[0]:M.value():M)})}),He(["pop","push","shift","sort","splice","unshift"],function(e){var t=qr[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",u=/^(?:pop|shift)$/.test(e);c.prototype[e]=function(){var l=arguments;if(u&&!this.__chain__){var h=this.value();return t.apply(G(h)?h:[],l)}return this[n](function(g){return t.apply(G(g)?g:[],l)})}}),st(V.prototype,function(e,t){var n=c[t];if(n){var u=n.name+"";k.call(_n,u)||(_n[u]=[]),_n[u].push({name:t,func:n})}}),_n[ri(i,Wt).name]=[{name:"wrapper",func:i}],V.prototype.clone=og,V.prototype.reverse=ag,V.prototype.value=lg,c.prototype.at=M_,c.prototype.chain=H_,c.prototype.commit=W_,c.prototype.next=G_,c.prototype.plant=B_,c.prototype.reverse=j_,c.prototype.toJSON=c.prototype.valueOf=c.prototype.value=X_,c.prototype.first=c.prototype.head,jn&&(c.prototype[jn]=U_),c},Lt=Wp();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ce._=Lt,define(function(){return Lt})):Ut?((Ut.exports=Lt)._=Lt,es._=Lt):ce._=Lt}).call(Sn)});var Di=L(Le=>{"use strict";var cy=Le&&Le.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},hy=Le&&Le.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Rc=Le&&Le.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Le,"__esModule",{value:!0});Le.handlerProfileFile=Le.getConfig=Le.setConfig=void 0;var Ic=Rc(require("path")),bu=Rc(bt()),at=bu.default.fse,$i=bu.default.jsyaml,Ou=bu.default.getRootHome;function py(i){var r=Lc();at.writeFileSync(r,$i.dump(i))}function Cc(){var i=Lc();if(!at.existsSync(i))return{};try{var r=$i.load(at.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function Lc(){var i=Ic.default.join(Ou(),"set-config.yml");return at.existsSync(i)||at.createFileSync(i),i}function gy(i,r){var s=Cc();s[i]=r,py(s)}Le.setConfig=gy;function dy(i,r){var s=Cc();return s[i]||r}Le.getConfig=dy;function _y(i){return cy(this,void 0,void 0,function(){var r,s,o,f,a,d,E;return hy(this,function(y){switch(y.label){case 0:if(r=i.filePath||"set-config.yml",s=Ic.default.join(Ou(),r),o=at.existsSync(s),f={},o)return[3,5];a=Ou(),y.label=1;case 1:return y.trys.push([1,2,,4]),at.statSync(a),[3,4];case 2:return d=y.sent(),[4,at.mkdirSync(a)];case 3:return y.sent(),[3,4];case 4:return[3,6];case 5:try{f=$i.load(at.readFileSync(s,"utf8"))||{}}catch(p){throw p}y.label=6;case 6:return i.read?[2,f]:(E=i.configKey||"",f[E]=i.data,[4,at.writeFileSync(s,$i.dump(f))]);case 7:return y.sent(),[2,f]}})})}Le.handlerProfileFile=_y});var Tc=L((Bx,vy)=>{vy.exports={name:"@serverless-devs/s",version:"2.0.100-beta.9",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/lodash":"^4.14.168","@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",lodash:"^4.17.20","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","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"beta"}}});var Ar=L(H=>{"use strict";var my=H&&H.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),Ey=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),yy=H&&H.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&my(r,i,s);return Ey(r,i),r},wr=H&&H.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},xr=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Su=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.replaceFun=H.getLang=H.printn=H.getFolderSize=H.getVersion=H.getPid=H.aiRequest=H.getCredentialWithAll=H.getCredentialWithExisted=H.getProcessArgv=H.bgRed=H.yellow=H.red=void 0;var wy=Su(require("path")),yr=Su(require("fs")),Mt=Sc(),xy=Su(require("os")),lt=yy(bt()),Ay=Di(),$c=Tc(),Pi=lt.default.colors,Oy=lt.default.got,by=lt.default.getMAC,Sy=lt.default.isDocker,Ry=lt.default.isCiCdEnv,Iy=lt.default.getGlobalArgs,Dc=lt.default.getCredential,Pc=lt.default.getCredentialAliasList;H.red=Pi.hex("#fd5750");H.yellow=Pi.hex("#F3F99D");H.bgRed=Pi.hex("#000").bgHex("#fd5750");var Cy=function(){var i=process.env.serverless_devs_temp_argv;try{var r=JSON.parse(i),s=Iy(r);return process.argv=process.argv.slice(0,2).concat(s._argsObj),(0,Mt.assign)({},s,{noHelpArgv:process.argv.slice(0,2).concat((0,Mt.filter)(s._argsObj,function(o){return!(0,Mt.includes)(["-h","--help"],o)}))})}catch{return{}}};H.getProcessArgv=Cy;var Ly=function(i){return wr(void 0,void 0,void 0,function(){var r,s;return xr(this,function(o){switch(o.label){case 0:return[4,Pc()];case 1:return r=o.sent(),(0,Mt.includes)(r,i)?[4,Dc(i)]:[3,3];case 2:return s=o.sent(),[2,(0,Mt.omit)(s,"Alias")];case 3:return[2]}})})};H.getCredentialWithExisted=Ly;var Ty=function(){return wr(void 0,void 0,void 0,function(){var i,r,s,o,f,a;return xr(this,function(d){switch(d.label){case 0:return[4,Pc()];case 1:if(i=d.sent(),!(i.length>0))return[3,6];r={},s=0,o=i,d.label=2;case 2:return s<o.length?(f=o[s],[4,Dc(f)]):[3,5];case 3:a=d.sent(),r[a.Alias]=(0,Mt.omit)(a,"Alias"),d.label=4;case 4:return s++,[3,2];case 5:return[2,r];case 6:return[2]}})})};H.getCredentialWithAll=Ty;var $y=function(i,r){return r===void 0&&(r="unknow"),wr(void 0,void 0,void 0,function(){var s,o,f,a;return xr(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),s=(0,Ay.getConfig)("analysis"),s!=="enable"?[2]:Sy()||Ry()?[2]:[4,Oy("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(r,"&code=TypeError&s=").concat(i),{timeout:2e3,json:!0})];case 1:return o=d.sent(),f=(0,Mt.get)(o.body,"shorturl"),f&&console.log(`AI Tips:
35
35
  You can try to solve the problem through: `.concat(Pi.underline(f),`
36
36
  `)),[3,3];case 2:return a=d.sent(),[3,3];case 3:return[2]}})})};H.aiRequest=$y;var Dy=function(){try{return by().replace(/:/g,"")}catch{return"unknown"}};H.getPid=Dy;function Py(){var i=(0,lt.getCoreVersion)(),r="".concat(process.platform,"-").concat(process.arch),s="node-".concat(process.version),o="core: ".concat(i),f="s-home: ".concat(lt.default.getRootHome()),a="".concat($c.name,": ").concat($c.version);return i?"".concat(a,", ").concat(o,", ").concat(f,", ").concat(r,", ").concat(s):"".concat(a,", ").concat(f,", ").concat(r,", ").concat(s)}H.getVersion=Py;function Ny(i){return wr(this,void 0,void 0,function(){function r(f){return wr(this,void 0,void 0,function(){var a,d;return xr(this,function(E){switch(E.label){case 0:return a=yr.default.lstatSync(f),typeof a!="object"?[2]:(s.set(a.ino,a.size),a.isDirectory()?(d=yr.default.readdirSync(f),typeof d!="object"?[2]:[4,Promise.all(d.map(function(y){return r(wy.default.join(f,y))}))]):[3,2]);case 1:E.sent(),E.label=2;case 2:return[2]}})})}var s,o;return xr(this,function(f){switch(f.label){case 0:return s=new Map,[4,r(i)];case 1:return f.sent(),o=Array.from(s.values()).reduce(function(a,d){return a+d},0),[2,o]}})})}H.getFolderSize=Ny;function qy(i,r){r===void 0&&(r=" ");for(var s="",o=0;o<i;o++)s=s+r;return s}H.printn=qy;function Fy(){return"en"}H.getLang=Fy;function Nc(i,r){var s=/\{\{(.*?)\}\}/g,o=i.match(s);if(o)for(var f=0;f<o.length;f++){var a=o[f].replace(/{{|}}/g,""),d=(0,Mt.trim)(a.split("|")[0]);r[d]&&(i=i.replace(o[f],r[d]))}return i}H.replaceFun=Nc;function My(i,r){i.forEach(function(s){if(yr.default.existsSync(s)){var o=yr.default.readFileSync(s,"utf-8"),f=Nc(o,r);yr.default.writeFileSync(s,f,"utf-8")}})}H.replaceTemplate=My;function Hy(i){if(!i)return i;var r=i.slice(-4);return"***********".concat(r)}H.mark=Hy;function Wy(i,r){return xy.default.platform()==="win32"?r||"\u25C6":"".concat(i," ")}H.emoji=Wy});var qc=L(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.default={clean_up_the_environment:"\u6E05\u7406\u73AF\u5883",display_help_for_command:"\u663E\u793A\u547D\u4EE4\u5E2E\u52A9",remove_components:"\u5220\u9664\u7EC4\u4EF6",delete_the_file_under_the_cache:"\u5220\u9664\u7F13\u5B58\u91CC\u7684\u7684<dirname>\u6587\u4EF6",record_your_log_information:"\u662F\u5426\u8BB0\u5F55\u60A8\u7684\u65E5\u5FD7\u4FE1\u606F\uFF1F",init_pproject_deploy_tip:"\u662F\u5426\u7ACB\u5373\u90E8\u7F72\u8BE5\u9879\u76EE\uFF1F",tip_for_a_serverless_project:"\u68C0\u6D4B\u5230\u5F53\u524D\u76EE\u5F55\u4E0B\u5DF2\u5B58\u5728\u4E00\u4E2AServerless-Devs\u9879\u76EE\uFF0C\u8BF7\u901A\u8FC7 's deploy' \u8FDB\u884C\u90E8\u7F72\u6216\u901A\u8FC7 's -h' \u83B7\u53D6\u66F4\u591A\u4FE1\u606F",create_a_new_project:"\u672A\u68C0\u6D4B\u5230 Serverless-Devs \u9879\u76EE\uFF0C\u662F\u5426\u65B0\u5EFA\u4E00\u4E2A\u9879\u76EE\uFF1F",en:"English (en)",zh:"\u4E2D\u6587 (zh)",select_current_language:"\u8BF7\u9009\u62E9\u5F53\u524D\u8BED\u8A00","app-tip":"\u8BF7\u9009\u62E9\u60A8\u5E0C\u671B\u521B\u5EFA\u7684 Serverless-Devs \u5E94\u7528","template-tip":"\u8BF7\u9009\u62E9\u60A8\u559C\u6B22\u7684\u6A21\u7248","fc-runtime-starter":"fc-runtime-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A FC \u51FD\u6570","fc-custom-container-stater":"fc-custom-container-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A custom-container \u5E94\u7528",web:"web-framework-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Web \u6846\u67B6","static-site":"static-website-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","best-practice":"serverless-best-practice - \u5FEB\u901F\u4F53\u9A8C Serverless \u6700\u4F73\u5B9E\u8DF5","devs-template":"Serverless Devs \u5F00\u53D1\u6A21\u677F","fc-http-nodejs":"fc-http-nodejs - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nodejs12 \u51FD\u6570","fc-http-python":"fc-http-python - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A python3 \u51FD\u6570","fc-http-java":"fc-http-java - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A java8 \u51FD\u6570","fc-custom-container-event-python3":"fc-custom-container-event-python3 - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 python3 \u5E94\u7528","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 cpp \u5E94\u7528","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 springboot \u5E94\u7528","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 aspdotnetcore \u5E94\u7528","express-starter":"express-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A express \u57FA\u7840\u5E94\u7528","koa-starter":"koa-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A koa \u57FA\u7840\u5E94\u7528","nuxtjs-starter":"nuxtjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nuxtjs \u57FA\u7840\u5E94\u7528","eggjs-starter":"eggjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A eggjs \u57FA\u7840\u5E94\u7528","flask-starter":"flask-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A flask \u57FA\u7840\u5E94\u7528","SpringBoot-starter":"SpringBoot-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A SpringBoot \u57FA\u7840\u5E94\u7528","Zblog-starter":"Zblog-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Zblog \u57FA\u7840\u5E94\u7528","website-starter":"website-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","react-starter":"react-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A React.js \u5E94\u7528","vue-starter":"vue-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Vue.js \u5E94\u7528",puppeteer:"puppeteer - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E puppeteer \u622A\u56FE\u7684 Web \u5E94\u7528",ffmpeg:"ffmpeg - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E ffmpeg \u5B9E\u73B0\u97F3\u89C6\u9891\u5904\u7406\u5E94\u7528",pdf2Img:"pdf2Img - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A pdf \u8F6C\u56FE\u7247\u5E94\u7528",tensorflow:"tensorflow - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A tensorflow \u5E94\u7528",todoList:"todoList - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E nodejs \u7684\u7F51\u9875 TodoList \u5E94\u7528"}});var Fc=L(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.default={clean_up_the_environment:"Clean up the environment",display_help_for_command:"Display help for command",remove_components:"Remove component (like: fc, fc@0.0.1)",delete_the_file_under_the_cache:"Delete the <dirname> file in the cache",record_your_log_information:"Do you record your log information?",init_pproject_deploy_tip:"Do you want to deploy the project immediately?",tip_for_a_serverless_project:"A Serverless-Devs project is detected in the current directory, please deploy via 's deploy' or get more information via 's -h'",create_a_new_project:"No Serverless-Devs project is currently detected. Do you want to create a new project?",en:"English (en)",zh:"Chinese (zh)",select_current_language:"Please select current language","app-tip":"Hello, serverlesser. Which template do you like?","template-tip":"Which template do you like?","fc-runtime-starter":"fc-runtime-starter - Deploy FC function in 5 minutes","fc-custom-container-stater":"fc-custom-container-stater - Deploy FC function with custom-container",web:"web-framework-stater-Quickly deploy a web framework","static-site":"static-website-stater-Quickly deploy a static website","best-practice":"serverless-best-practice-Quickly experience serverless best practices","devs-template":"Serverless Develop scaffold","fc-http-nodejs":"fc-http-nodejs - Deploy FC nodejs12 runtime function","fc-http-python":"fc-http-python - Deploy FC python3 runtime function","fc-http-java":"fc-http-java - Deploy FC java8 runtime function","fc-custom-container-event-python3":"fc-custom-container-event-python3 - Deploy python3 event-triggered application","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - Deploy cpp event-triggered application","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - Deploy springboot HTTP Request-triggered application","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - Deploy dotnetcore HTTP Request-triggered application","express-starter":"express-starter - Deploy express application","koa-starter":"koa-starter - Deploy koa application","nuxtjs-starter":"nuxtjs-starter - Deploy nuxtjs application","eggjs-starter":"eggjs-starter - Deploy eggjs application","flask-starter":"flask-starter - Deploy flask application","SpringBoot-starter":"SpringBoot-starter - Deploy SpringBoot application","Zblog-starter":"Zblog-starter - Deploy Zblog application","website-starter":"website-starter - Deploy static website","react-starter":"react-starter - Deploy React.js application","vue-starter":"vue-starter - Deploy Vue.js application",puppeteer:"puppeteer - Deploy screenshot application base on puppeteer + fc",ffmpeg:"ffmpeg - Deploy audio and video processing application base on ffmpeg + fc",pdf2Img:"pdf2Img - Deploy pdf to images application",tensorflow:"tensorflow - Deploy tensorflow application",todoList:"todoList - Deploy todoList application"}});var Hc=L(Or=>{"use strict";var Mc=Or&&Or.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Or,"__esModule",{value:!0});var Gy=Ar(),Uy=Mc(qc()),By=Mc(Fc()),Cu={en:By.default,zh:Uy.default},jy=function(i){var r=(0,Gy.getLang)(),s=Cu[r]?Cu[r][i]:Cu.en[i];return s||i};Or.default=jy});var Tu=L(ye=>{"use strict";var Xy=ye&&ye.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),Wc=ye&&ye.__exportStar||function(i,r){for(var s in i)s!=="default"&&!Object.prototype.hasOwnProperty.call(r,s)&&Xy(r,i,s)},Lu=ye&&ye.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ye,"__esModule",{value:!0});ye.registerCommandChecker=ye.i18n=ye.logger=void 0;var zy=Lu(Au());Wc(Ar(),ye);Wc(Di(),ye);var Vy=Au();Object.defineProperty(ye,"logger",{enumerable:!0,get:function(){return Lu(Vy).default}});var Yy=Hc();Object.defineProperty(ye,"i18n",{enumerable:!0,get:function(){return Lu(Yy).default}});function Ky(i){i.on("command:*",function(r){var s=i.commands.map(function(o){return o.name()});s.includes(r[0])||(zy.default.error(" error: unknown command ".concat(r[0])),i.help())})}ye.registerCommandChecker=Ky});var sn=L(Rn=>{"use strict";var Zy=Rn&&Rn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Rn,"__esModule",{value:!0});Rn.ServerlessError=void 0;var Jy=Zy(bt()),ky=Jy.default.Logger,Qy=new ky("S-CLI-ERROR"),ew=function(){function i(r,s,o){Qy.error(r+": "+s,o),process.exit(1)}return i}();Rn.ServerlessError=ew});var Gc=L(In=>{"use strict";var tw=In&&In.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(In,"__esModule",{value:!0});In.CommandError=void 0;var nw=sn(),rw=function(i){tw(r,i);function r(s,o){return i.call(this,"Error",s,o)||this}return r}(nw.ServerlessError);In.CommandError=rw});var Uc=L(Cn=>{"use strict";var iw=Cn&&Cn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Cn,"__esModule",{value:!0});Cn.ConfigDeleteError=void 0;var sw=sn(),uw=function(i){iw(r,i);function r(s,o){return i.call(this,"Deletion failed",s,o)||this}return r}(sw.ServerlessError);Cn.ConfigDeleteError=uw});var Bc=L(Ln=>{"use strict";var ow=Ln&&Ln.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Ln,"__esModule",{value:!0});Ln.ConfigError=void 0;var aw=sn(),lw=function(i){ow(r,i);function r(s,o){return i.call(this,"Config failed",s,o)||this}return r}(aw.ServerlessError);Ln.ConfigError=lw});var jc=L(Tn=>{"use strict";var fw=Tn&&Tn.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty(Tn,"__esModule",{value:!0});Tn.ConfigGetError=void 0;var cw=sn(),hw=function(i){fw(r,i);function r(s,o){return i.call(this,"Get failed",s,o)||this}return r}(cw.ServerlessError);Tn.ConfigGetError=hw});var Xc=L($n=>{"use strict";var pw=$n&&$n.__extends||function(){var i=function(r,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,f){o.__proto__=f}||function(o,f){for(var a in f)Object.prototype.hasOwnProperty.call(f,a)&&(o[a]=f[a])},i(r,s)};return function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(r,s);function o(){this.constructor=r}r.prototype=s===null?Object.create(s):(o.prototype=s.prototype,new o)}}();Object.defineProperty($n,"__esModule",{value:!0});$n.InitError=void 0;var gw=sn(),dw=function(i){pw(r,i);function r(s,o){return i.call(this,"Initialization failed",s,o)||this}return r}(gw.ServerlessError);$n.InitError=dw});var Vc=L(ft=>{"use strict";var _w=ft&&ft.__awaiter||function(i,r,s,o){function f(a){return a instanceof s?a:new s(function(d){d(a)})}return new(s||(s=Promise))(function(a,d){function E(A){try{p(o.next(A))}catch(I){d(I)}}function y(A){try{p(o.throw(A))}catch(I){d(I)}}function p(A){A.done?a(A.value):f(A.value).then(E,y)}p((o=o.apply(i,r||[])).next())})},vw=ft&&ft.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,f,a,d;return d={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function E(p){return function(A){return y([p,A])}}function y(p){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,f&&(a=p[0]&2?f.return:p[0]?f.throw||((a=f.return)&&a.call(f),0):f.next)&&!(a=a.call(f,p[1])).done)return a;switch(f=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,f=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(A){p=[6,A],f=0}finally{o=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},mw=ft&&ft.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ft,"__esModule",{value:!0});ft.HumanError=void 0;var zc=mw(bt()),Ew=Ar(),yw=zc.default.colors,ww=function(){function i(r){var s=r.errorMessage,o=r.tips;this.errorMessage=s,console.log(`
37
37
  `.concat((0,Ew.bgRed)("ERROR:"))),console.log("TypeError: ".concat(s,`