@serverless-devs/s 2.0.93-alpha.3 → 2.0.93-beta.4
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/bin/s-set-workspace +2 -0
- package/docs/zh/command/clean.md +1 -0
- package/docs/zh/command/cli.md +1 -0
- package/docs/zh/command/component.md +1 -0
- package/docs/zh/command/init.md +1 -1
- package/docs/zh/command/readme.md +2 -1
- package/docs/zh/command/set.md +4 -4
- package/lib/clean/index.js +2 -1
- package/lib/cli/index.js +3 -2
- package/lib/component/index.js +2 -1
- package/lib/config/add/index.js +1 -1
- package/lib/config/delete/index.js +22 -20
- package/lib/config/get/index.js +30 -28
- package/lib/config/index.js +1 -1
- package/lib/core/command/command-manager.js +1 -2
- package/lib/core/component/index.js +3 -3
- package/lib/index.js +62 -61
- package/lib/init/index.js +16 -16
- package/lib/set/analysis/index.js +18 -16
- package/lib/set/index.js +14 -14
- package/lib/set/locale/index.js +23 -21
- package/lib/set/registry/index.js +27 -25
- package/lib/set/workspace/index.d.ts +1 -0
- package/lib/set/workspace/index.js +61 -0
- package/lib/update-notifier/index.js +1 -1
- package/package.json +1 -1
- package/shell/postbuild.sh +1 -0
package/lib/cli/index.js
CHANGED
|
@@ -31,7 +31,7 @@ __p += '`),J&&(A+=`' +
|
|
|
31
31
|
function print() { __p += __j.call(arguments, '') }
|
|
32
32
|
`:`;
|
|
33
33
|
`)+A+`return __p
|
|
34
|
-
}`;var W=wc(function(){return Q(d,q+"return "+A).apply(i,m)});if(W.source=A,Do(W))throw W;return W}function py(e){return ee(e).toLowerCase()}function dy(e){return ee(e).toUpperCase()}function gy(e,t,s){if(e=ee(e),e&&(s||t===i))return Ia(e);if(!e||!(t=ze(t)))return e;var l=ht(e),f=ht(t),d=Pa(l,f),m=Ta(l,f)+1;return tr(l,d,m).join("")}function my(e,t,s){if(e=ee(e),e&&(s||t===i))return e.slice(0,Na(e)+1);if(!e||!(t=ze(t)))return e;var l=ht(e),f=Ta(l,ht(t))+1;return tr(l,0,f).join("")}function vy(e,t,s){if(e=ee(e),e&&(s||t===i))return e.replace(Ns,"");if(!e||!(t=ze(t)))return e;var l=ht(e),f=Pa(l,ht(t));return tr(l,f).join("")}function _y(e,t){var s=It,l=hd;if(fe(t)){var f="separator"in t?t.separator:f;s="length"in t?B(t.length):s,l="omission"in t?ze(t.omission):l}e=ee(e);var d=e.length;if(Dr(e)){var m=ht(e);d=m.length}if(s>=d)return e;var y=s-qr(l);if(y<1)return l;var E=m?tr(m,0,y).join(""):e.slice(0,y);if(f===i)return E+l;if(m&&(y+=E.length-y),qo(f)){if(e.slice(y).search(f)){var O,x=E;for(f.global||(f=Ks(f.source,ee(Ju.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var A=O.index;E=E.slice(0,A===i?y:A)}}else if(e.indexOf(ze(f),y)!=y){var T=E.lastIndexOf(f);T>-1&&(E=E.slice(0,T))}return E+l}function yy(e){return e=ee(e),e&&Pd.test(e)?e.replace(Xu,Xg):e}var wy=Ur(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),Mo=El("toUpperCase");function yc(e,t,s){return e=ee(e),t=s?i:t,t===i?Bg(e)?Jg(e):Dg(e):e.match(t)||[]}var wc=V(function(e,t){try{return ke(e,i,t)}catch(s){return Do(s)?s:new j(s)}}),Ey=qt(function(e,t){return et(t,function(s){s=wt(s),Nt(e,s,Lo(e[s],e))}),e});function by(e){var t=e==null?0:e.length,s=$();return e=t?ce(e,function(l){if(typeof l[1]!="function")throw new tt(a);return[s(l[0]),l[1]]}):[],V(function(l){for(var f=-1;++f<t;){var d=e[f];if(ke(d[0],this,l))return ke(d[1],this,l)}})}function Sy(e){return Xm(nt(e,c))}function jo(e){return function(){return e}}function Cy(e,t){return e==null||e!==e?t:e}var Oy=Sl(),xy=Sl(!0);function Be(e){return e}function Ho(e){return Qa(typeof e=="function"?e:nt(e,c))}function Ay(e){return tl(nt(e,c))}function Ry(e,t){return rl(e,nt(t,c))}var Iy=V(function(e,t){return function(s){return En(s,e,t)}}),Py=V(function(e,t){return function(s){return En(e,s,t)}});function Uo(e,t,s){var l=be(t),f=Ai(t,l);s==null&&!(fe(t)&&(f.length||!l.length))&&(s=t,t=e,e=this,f=Ai(t,be(t)));var d=!(fe(s)&&"chain"in s)||!!s.chain,m=Ft(e);return et(f,function(y){var E=t[y];e[y]=E,m&&(e.prototype[y]=function(){var O=this.__chain__;if(d||O){var x=e(this.__wrapped__),A=x.__actions__=He(this.__actions__);return A.push({func:E,args:arguments,thisArg:e}),x.__chain__=O,x}return E.apply(e,Xt([this.value()],arguments))})}),e}function Ty(){return Ee._===this&&(Ee._=nm),this}function Go(){}function Ly(e){return e=B(e),V(function(t){return nl(t,e)})}var Ny=yo(ce),Dy=yo(Ca),qy=yo(Bs);function Ec(e){return xo(e)?Ws(wt(e)):fv(e)}function $y(e){return function(t){return e==null?i:fr(e,t)}}var Fy=Ol(),My=Ol(!0);function Bo(){return[]}function Wo(){return!1}function jy(){return{}}function Hy(){return""}function Uy(){return!0}function Gy(e,t){if(e=B(e),e<1||e>Vt)return[];var s=vt,l=Ie(e,vt);t=$(t),e-=vt;for(var f=zs(l,t);++s<e;)t(s);return f}function By(e){return U(e)?ce(e,wt):Xe(e)?[e]:He(Ul(ee(e)))}function Wy(e){var t=++tm;return ee(e)+t}var ky=Ni(function(e,t){return e+t},0),Vy=wo("ceil"),zy=Ni(function(e,t){return e/t},1),Xy=wo("floor");function Yy(e){return e&&e.length?xi(e,Be,io):i}function Ky(e,t){return e&&e.length?xi(e,$(t,2),io):i}function Jy(e){return Aa(e,Be)}function Zy(e,t){return Aa(e,$(t,2))}function Qy(e){return e&&e.length?xi(e,Be,ao):i}function ew(e,t){return e&&e.length?xi(e,$(t,2),ao):i}var tw=Ni(function(e,t){return e*t},1),rw=wo("round"),nw=Ni(function(e,t){return e-t},0);function iw(e){return e&&e.length?Vs(e,Be):0}function sw(e,t){return e&&e.length?Vs(e,$(t,2)):0}return h.after=A0,h.ary=Zl,h.assign=d1,h.assignIn=hc,h.assignInWith=Vi,h.assignWith=g1,h.at=m1,h.before=Ql,h.bind=Lo,h.bindAll=Ey,h.bindKey=ec,h.castArray=j0,h.chain=Yl,h.chunk=Xv,h.compact=Yv,h.concat=Kv,h.cond=by,h.conforms=Sy,h.constant=jo,h.countBy=i0,h.create=v1,h.curry=tc,h.curryRight=rc,h.debounce=nc,h.defaults=_1,h.defaultsDeep=y1,h.defer=R0,h.delay=I0,h.difference=Jv,h.differenceBy=Zv,h.differenceWith=Qv,h.drop=e_,h.dropRight=t_,h.dropRightWhile=r_,h.dropWhile=n_,h.fill=i_,h.filter=o0,h.flatMap=l0,h.flatMapDeep=c0,h.flatMapDepth=f0,h.flatten=kl,h.flattenDeep=s_,h.flattenDepth=o_,h.flip=P0,h.flow=Oy,h.flowRight=xy,h.fromPairs=u_,h.functions=x1,h.functionsIn=A1,h.groupBy=h0,h.initial=l_,h.intersection=c_,h.intersectionBy=f_,h.intersectionWith=h_,h.invert=I1,h.invertBy=P1,h.invokeMap=d0,h.iteratee=Ho,h.keyBy=g0,h.keys=be,h.keysIn=Ge,h.map=Hi,h.mapKeys=L1,h.mapValues=N1,h.matches=Ay,h.matchesProperty=Ry,h.memoize=Gi,h.merge=D1,h.mergeWith=pc,h.method=Iy,h.methodOf=Py,h.mixin=Uo,h.negate=Bi,h.nthArg=Ly,h.omit=q1,h.omitBy=$1,h.once=T0,h.orderBy=m0,h.over=Ny,h.overArgs=L0,h.overEvery=Dy,h.overSome=qy,h.partial=No,h.partialRight=ic,h.partition=v0,h.pick=F1,h.pickBy=dc,h.property=Ec,h.propertyOf=$y,h.pull=m_,h.pullAll=zl,h.pullAllBy=v_,h.pullAllWith=__,h.pullAt=y_,h.range=Fy,h.rangeRight=My,h.rearg=N0,h.reject=w0,h.remove=w_,h.rest=D0,h.reverse=Po,h.sampleSize=b0,h.set=j1,h.setWith=H1,h.shuffle=S0,h.slice=E_,h.sortBy=x0,h.sortedUniq=R_,h.sortedUniqBy=I_,h.split=ly,h.spread=q0,h.tail=P_,h.take=T_,h.takeRight=L_,h.takeRightWhile=N_,h.takeWhile=D_,h.tap=Y_,h.throttle=$0,h.thru=ji,h.toArray=lc,h.toPairs=gc,h.toPairsIn=mc,h.toPath=By,h.toPlainObject=fc,h.transform=U1,h.unary=F0,h.union=q_,h.unionBy=$_,h.unionWith=F_,h.uniq=M_,h.uniqBy=j_,h.uniqWith=H_,h.unset=G1,h.unzip=To,h.unzipWith=Xl,h.update=B1,h.updateWith=W1,h.values=Wr,h.valuesIn=k1,h.without=U_,h.words=yc,h.wrap=M0,h.xor=G_,h.xorBy=B_,h.xorWith=W_,h.zip=k_,h.zipObject=V_,h.zipObjectDeep=z_,h.zipWith=X_,h.entries=gc,h.entriesIn=mc,h.extend=hc,h.extendWith=Vi,Uo(h,h),h.add=ky,h.attempt=wc,h.camelCase=Y1,h.capitalize=vc,h.ceil=Vy,h.clamp=V1,h.clone=H0,h.cloneDeep=G0,h.cloneDeepWith=B0,h.cloneWith=U0,h.conformsTo=W0,h.deburr=_c,h.defaultTo=Cy,h.divide=zy,h.endsWith=K1,h.eq=dt,h.escape=J1,h.escapeRegExp=Z1,h.every=s0,h.find=u0,h.findIndex=Bl,h.findKey=w1,h.findLast=a0,h.findLastIndex=Wl,h.findLastKey=E1,h.floor=Xy,h.forEach=Kl,h.forEachRight=Jl,h.forIn=b1,h.forInRight=S1,h.forOwn=C1,h.forOwnRight=O1,h.get=$o,h.gt=k0,h.gte=V0,h.has=R1,h.hasIn=Fo,h.head=Vl,h.identity=Be,h.includes=p0,h.indexOf=a_,h.inRange=z1,h.invoke=T1,h.isArguments=dr,h.isArray=U,h.isArrayBuffer=z0,h.isArrayLike=Ue,h.isArrayLikeObject=de,h.isBoolean=X0,h.isBuffer=rr,h.isDate=Y0,h.isElement=K0,h.isEmpty=J0,h.isEqual=Z0,h.isEqualWith=Q0,h.isError=Do,h.isFinite=e1,h.isFunction=Ft,h.isInteger=sc,h.isLength=Wi,h.isMap=oc,h.isMatch=t1,h.isMatchWith=r1,h.isNaN=n1,h.isNative=i1,h.isNil=o1,h.isNull=s1,h.isNumber=uc,h.isObject=fe,h.isObjectLike=he,h.isPlainObject=An,h.isRegExp=qo,h.isSafeInteger=u1,h.isSet=ac,h.isString=ki,h.isSymbol=Xe,h.isTypedArray=Br,h.isUndefined=a1,h.isWeakMap=l1,h.isWeakSet=c1,h.join=p_,h.kebabCase=Q1,h.last=st,h.lastIndexOf=d_,h.lowerCase=ey,h.lowerFirst=ty,h.lt=f1,h.lte=h1,h.max=Yy,h.maxBy=Ky,h.mean=Jy,h.meanBy=Zy,h.min=Qy,h.minBy=ew,h.stubArray=Bo,h.stubFalse=Wo,h.stubObject=jy,h.stubString=Hy,h.stubTrue=Uy,h.multiply=tw,h.nth=g_,h.noConflict=Ty,h.noop=Go,h.now=Ui,h.pad=ry,h.padEnd=ny,h.padStart=iy,h.parseInt=sy,h.random=X1,h.reduce=_0,h.reduceRight=y0,h.repeat=oy,h.replace=uy,h.result=M1,h.round=rw,h.runInContext=w,h.sample=E0,h.size=C0,h.snakeCase=ay,h.some=O0,h.sortedIndex=b_,h.sortedIndexBy=S_,h.sortedIndexOf=C_,h.sortedLastIndex=O_,h.sortedLastIndexBy=x_,h.sortedLastIndexOf=A_,h.startCase=cy,h.startsWith=fy,h.subtract=nw,h.sum=iw,h.sumBy=sw,h.template=hy,h.times=Gy,h.toFinite=Mt,h.toInteger=B,h.toLength=cc,h.toLower=py,h.toNumber=ot,h.toSafeInteger=p1,h.toString=ee,h.toUpper=dy,h.trim=gy,h.trimEnd=my,h.trimStart=vy,h.truncate=_y,h.unescape=yy,h.uniqueId=Wy,h.upperCase=wy,h.upperFirst=Mo,h.each=Kl,h.eachRight=Jl,h.first=Vl,Uo(h,function(){var e={};return _t(h,function(t,s){re.call(h.prototype,s)||(e[s]=t)}),e}(),{chain:!1}),h.VERSION=r,et(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){h[e].placeholder=h}),et(["drop","take"],function(e,t){X.prototype[e]=function(s){s=s===i?1:we(B(s),0);var l=this.__filtered__&&!t?new X(this):this.clone();return l.__filtered__?l.__takeCount__=Ie(s,l.__takeCount__):l.__views__.push({size:Ie(s,vt),type:e+(l.__dir__<0?"Right":"")}),l},X.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),et(["filter","map","takeWhile"],function(e,t){var s=t+1,l=s==ku||s==md;X.prototype[e]=function(f){var d=this.clone();return d.__iteratees__.push({iteratee:$(f,3),type:s}),d.__filtered__=d.__filtered__||l,d}}),et(["head","last"],function(e,t){var s="take"+(t?"Right":"");X.prototype[e]=function(){return this[s](1).value()[0]}}),et(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");X.prototype[e]=function(){return this.__filtered__?new X(this):this[s](1)}}),X.prototype.compact=function(){return this.filter(Be)},X.prototype.find=function(e){return this.filter(e).head()},X.prototype.findLast=function(e){return this.reverse().find(e)},X.prototype.invokeMap=V(function(e,t){return typeof e=="function"?new X(this):this.map(function(s){return En(s,e,t)})}),X.prototype.reject=function(e){return this.filter(Bi($(e)))},X.prototype.slice=function(e,t){e=B(e);var s=this;return s.__filtered__&&(e>0||t<0)?new X(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==i&&(t=B(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},X.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},X.prototype.toArray=function(){return this.take(vt)},_t(X.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),l=/^(?:head|last)$/.test(t),f=h[l?"take"+(t=="last"?"Right":""):t],d=l||/^find/.test(t);!f||(h.prototype[t]=function(){var m=this.__wrapped__,y=l?[1]:arguments,E=m instanceof X,O=y[0],x=E||U(m),A=function(z){var J=f.apply(h,Xt([z],y));return l&&T?J[0]:J};x&&s&&typeof O=="function"&&O.length!=1&&(E=x=!1);var T=this.__chain__,q=!!this.__actions__.length,F=d&&!T,W=E&&!q;if(!d&&x){m=W?m:new X(this);var M=e.apply(m,y);return M.__actions__.push({func:ji,args:[A],thisArg:i}),new rt(M,T)}return F&&W?e.apply(this,y):(M=this.thru(A),F?l?M.value()[0]:M.value():M)})}),et(["pop","push","shift","sort","splice","unshift"],function(e){var t=fi[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",l=/^(?:pop|shift)$/.test(e);h.prototype[e]=function(){var f=arguments;if(l&&!this.__chain__){var d=this.value();return t.apply(U(d)?d:[],f)}return this[s](function(m){return t.apply(U(m)?m:[],f)})}}),_t(X.prototype,function(e,t){var s=h[t];if(s){var l=s.name+"";re.call(Mr,l)||(Mr[l]=[]),Mr[l].push({name:t,func:s})}}),Mr[Li(i,te).name]=[{name:"wrapper",func:i}],X.prototype.clone=ym,X.prototype.reverse=wm,X.prototype.value=Em,h.prototype.at=K_,h.prototype.chain=J_,h.prototype.commit=Z_,h.prototype.next=Q_,h.prototype.plant=t0,h.prototype.reverse=r0,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=n0,h.prototype.first=h.prototype.head,dn&&(h.prototype[dn]=e0),h},Kt=Zg();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Ee._=Kt,define(function(){return Kt})):or?((or.exports=Kt)._=Kt,js._=Kt):Ee._=Kt}).call(kr)});var Tn=P((sO,Pc)=>{var aw="2.0.0",lw=256,cw=Number.MAX_SAFE_INTEGER||9007199254740991,fw=16;Pc.exports={SEMVER_SPEC_VERSION:aw,MAX_LENGTH:lw,MAX_SAFE_INTEGER:cw,MAX_SAFE_COMPONENT_LENGTH:fw}});var Ln=P((oO,Tc)=>{var hw=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Tc.exports=hw});var vr=P((nr,Lc)=>{var{MAX_SAFE_COMPONENT_LENGTH:Yo}=Tn(),pw=Ln();nr=Lc.exports={};var dw=nr.re=[],N=nr.src=[],D=nr.t={},gw=0,k=(i,r,n)=>{let u=gw++;pw(u,r),D[i]=u,N[u]=r,dw[u]=new RegExp(r,n?"g":void 0)};k("NUMERICIDENTIFIER","0|[1-9]\\d*");k("NUMERICIDENTIFIERLOOSE","[0-9]+");k("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");k("MAINVERSION",`(${N[D.NUMERICIDENTIFIER]})\\.(${N[D.NUMERICIDENTIFIER]})\\.(${N[D.NUMERICIDENTIFIER]})`);k("MAINVERSIONLOOSE",`(${N[D.NUMERICIDENTIFIERLOOSE]})\\.(${N[D.NUMERICIDENTIFIERLOOSE]})\\.(${N[D.NUMERICIDENTIFIERLOOSE]})`);k("PRERELEASEIDENTIFIER",`(?:${N[D.NUMERICIDENTIFIER]}|${N[D.NONNUMERICIDENTIFIER]})`);k("PRERELEASEIDENTIFIERLOOSE",`(?:${N[D.NUMERICIDENTIFIERLOOSE]}|${N[D.NONNUMERICIDENTIFIER]})`);k("PRERELEASE",`(?:-(${N[D.PRERELEASEIDENTIFIER]}(?:\\.${N[D.PRERELEASEIDENTIFIER]})*))`);k("PRERELEASELOOSE",`(?:-?(${N[D.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${N[D.PRERELEASEIDENTIFIERLOOSE]})*))`);k("BUILDIDENTIFIER","[0-9A-Za-z-]+");k("BUILD",`(?:\\+(${N[D.BUILDIDENTIFIER]}(?:\\.${N[D.BUILDIDENTIFIER]})*))`);k("FULLPLAIN",`v?${N[D.MAINVERSION]}${N[D.PRERELEASE]}?${N[D.BUILD]}?`);k("FULL",`^${N[D.FULLPLAIN]}$`);k("LOOSEPLAIN",`[v=\\s]*${N[D.MAINVERSIONLOOSE]}${N[D.PRERELEASELOOSE]}?${N[D.BUILD]}?`);k("LOOSE",`^${N[D.LOOSEPLAIN]}$`);k("GTLT","((?:<|>)?=?)");k("XRANGEIDENTIFIERLOOSE",`${N[D.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);k("XRANGEIDENTIFIER",`${N[D.NUMERICIDENTIFIER]}|x|X|\\*`);k("XRANGEPLAIN",`[v=\\s]*(${N[D.XRANGEIDENTIFIER]})(?:\\.(${N[D.XRANGEIDENTIFIER]})(?:\\.(${N[D.XRANGEIDENTIFIER]})(?:${N[D.PRERELEASE]})?${N[D.BUILD]}?)?)?`);k("XRANGEPLAINLOOSE",`[v=\\s]*(${N[D.XRANGEIDENTIFIERLOOSE]})(?:\\.(${N[D.XRANGEIDENTIFIERLOOSE]})(?:\\.(${N[D.XRANGEIDENTIFIERLOOSE]})(?:${N[D.PRERELEASELOOSE]})?${N[D.BUILD]}?)?)?`);k("XRANGE",`^${N[D.GTLT]}\\s*${N[D.XRANGEPLAIN]}$`);k("XRANGELOOSE",`^${N[D.GTLT]}\\s*${N[D.XRANGEPLAINLOOSE]}$`);k("COERCE",`(^|[^\\d])(\\d{1,${Yo}})(?:\\.(\\d{1,${Yo}}))?(?:\\.(\\d{1,${Yo}}))?(?:$|[^\\d])`);k("COERCERTL",N[D.COERCE],!0);k("LONETILDE","(?:~>?)");k("TILDETRIM",`(\\s*)${N[D.LONETILDE]}\\s+`,!0);nr.tildeTrimReplace="$1~";k("TILDE",`^${N[D.LONETILDE]}${N[D.XRANGEPLAIN]}$`);k("TILDELOOSE",`^${N[D.LONETILDE]}${N[D.XRANGEPLAINLOOSE]}$`);k("LONECARET","(?:\\^)");k("CARETTRIM",`(\\s*)${N[D.LONECARET]}\\s+`,!0);nr.caretTrimReplace="$1^";k("CARET",`^${N[D.LONECARET]}${N[D.XRANGEPLAIN]}$`);k("CARETLOOSE",`^${N[D.LONECARET]}${N[D.XRANGEPLAINLOOSE]}$`);k("COMPARATORLOOSE",`^${N[D.GTLT]}\\s*(${N[D.LOOSEPLAIN]})$|^$`);k("COMPARATOR",`^${N[D.GTLT]}\\s*(${N[D.FULLPLAIN]})$|^$`);k("COMPARATORTRIM",`(\\s*)${N[D.GTLT]}\\s*(${N[D.LOOSEPLAIN]}|${N[D.XRANGEPLAIN]})`,!0);nr.comparatorTrimReplace="$1$2$3";k("HYPHENRANGE",`^\\s*(${N[D.XRANGEPLAIN]})\\s+-\\s+(${N[D.XRANGEPLAIN]})\\s*$`);k("HYPHENRANGELOOSE",`^\\s*(${N[D.XRANGEPLAINLOOSE]})\\s+-\\s+(${N[D.XRANGEPLAINLOOSE]})\\s*$`);k("STAR","(<|>)?=?\\s*\\*");k("GTE0","^\\s*>=\\s*0.0.0\\s*$");k("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var Nn=P((uO,Nc)=>{var mw=["includePrerelease","loose","rtl"],vw=i=>i?typeof i!="object"?{loose:!0}:mw.filter(r=>i[r]).reduce((r,n)=>(r[n]=!0,r),{}):{};Nc.exports=vw});var Yi=P((aO,$c)=>{var Dc=/^[0-9]+$/,qc=(i,r)=>{let n=Dc.test(i),u=Dc.test(r);return n&&u&&(i=+i,r=+r),i===r?0:n&&!u?-1:u&&!n?1:i<r?-1:1},_w=(i,r)=>qc(r,i);$c.exports={compareIdentifiers:qc,rcompareIdentifiers:_w}});var Te=P((lO,Hc)=>{var Ki=Ln(),{MAX_LENGTH:Fc,MAX_SAFE_INTEGER:Ji}=Tn(),{re:Mc,t:jc}=vr(),yw=Nn(),{compareIdentifiers:Dn}=Yi(),ut=class{constructor(r,n){if(n=yw(n),r instanceof ut){if(r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>Fc)throw new TypeError(`version is longer than ${Fc} characters`);Ki("SemVer",r,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let u=r.trim().match(n.loose?Mc[jc.LOOSE]:Mc[jc.FULL]);if(!u)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+u[1],this.minor=+u[2],this.patch=+u[3],this.major>Ji||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ji||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ji||this.patch<0)throw new TypeError("Invalid patch version");u[4]?this.prerelease=u[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let o=+a;if(o>=0&&o<Ji)return o}return a}):this.prerelease=[],this.build=u[5]?u[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(Ki("SemVer.compare",this.version,this.options,r),!(r instanceof ut)){if(typeof r=="string"&&r===this.version)return 0;r=new ut(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof ut||(r=new ut(r,this.options)),Dn(this.major,r.major)||Dn(this.minor,r.minor)||Dn(this.patch,r.patch)}comparePre(r){if(r instanceof ut||(r=new ut(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 n=0;do{let u=this.prerelease[n],a=r.prerelease[n];if(Ki("prerelease compare",n,u,a),u===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(u===void 0)return-1;if(u===a)continue;return Dn(u,a)}while(++n)}compareBuild(r){r instanceof ut||(r=new ut(r,this.options));let n=0;do{let u=this.build[n],a=r.build[n];if(Ki("prerelease compare",n,u,a),u===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(u===void 0)return-1;if(u===a)continue;return Dn(u,a)}while(++n)}inc(r,n){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n),this.inc("pre",n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n),this.inc("pre",n);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 u=this.prerelease.length;for(;--u>=0;)typeof this.prerelease[u]=="number"&&(this.prerelease[u]++,u=-2);u===-1&&this.prerelease.push(0)}n&&(this.prerelease[0]===n?isNaN(this.prerelease[1])&&(this.prerelease=[n,0]):this.prerelease=[n,0]);break;default:throw new Error(`invalid increment argument: ${r}`)}return this.format(),this.raw=this.version,this}};Hc.exports=ut});var _r=P((cO,Wc)=>{var{MAX_LENGTH:ww}=Tn(),{re:Uc,t:Gc}=vr(),Bc=Te(),Ew=Nn(),bw=(i,r)=>{if(r=Ew(r),i instanceof Bc)return i;if(typeof i!="string"||i.length>ww||!(r.loose?Uc[Gc.LOOSE]:Uc[Gc.FULL]).test(i))return null;try{return new Bc(i,r)}catch{return null}};Wc.exports=bw});var Vc=P((fO,kc)=>{var Sw=_r(),Cw=(i,r)=>{let n=Sw(i,r);return n?n.version:null};kc.exports=Cw});var Xc=P((hO,zc)=>{var Ow=_r(),xw=(i,r)=>{let n=Ow(i.trim().replace(/^[=v]+/,""),r);return n?n.version:null};zc.exports=xw});var Kc=P((pO,Yc)=>{var Aw=Te(),Rw=(i,r,n,u)=>{typeof n=="string"&&(u=n,n=void 0);try{return new Aw(i,n).inc(r,u).version}catch{return null}};Yc.exports=Rw});var at=P((dO,Zc)=>{var Jc=Te(),Iw=(i,r,n)=>new Jc(i,n).compare(new Jc(r,n));Zc.exports=Iw});var Zi=P((gO,Qc)=>{var Pw=at(),Tw=(i,r,n)=>Pw(i,r,n)===0;Qc.exports=Tw});var rf=P((mO,tf)=>{var ef=_r(),Lw=Zi(),Nw=(i,r)=>{if(Lw(i,r))return null;{let n=ef(i),u=ef(r),a=n.prerelease.length||u.prerelease.length,o=a?"pre":"",p=a?"prerelease":"";for(let g in n)if((g==="major"||g==="minor"||g==="patch")&&n[g]!==u[g])return o+g;return p}};tf.exports=Nw});var sf=P((vO,nf)=>{var Dw=Te(),qw=(i,r)=>new Dw(i,r).major;nf.exports=qw});var uf=P((_O,of)=>{var $w=Te(),Fw=(i,r)=>new $w(i,r).minor;of.exports=Fw});var lf=P((yO,af)=>{var Mw=Te(),jw=(i,r)=>new Mw(i,r).patch;af.exports=jw});var ff=P((wO,cf)=>{var Hw=_r(),Uw=(i,r)=>{let n=Hw(i,r);return n&&n.prerelease.length?n.prerelease:null};cf.exports=Uw});var pf=P((EO,hf)=>{var Gw=at(),Bw=(i,r,n)=>Gw(r,i,n);hf.exports=Bw});var gf=P((bO,df)=>{var Ww=at(),kw=(i,r)=>Ww(i,r,!0);df.exports=kw});var Qi=P((SO,vf)=>{var mf=Te(),Vw=(i,r,n)=>{let u=new mf(i,n),a=new mf(r,n);return u.compare(a)||u.compareBuild(a)};vf.exports=Vw});var yf=P((CO,_f)=>{var zw=Qi(),Xw=(i,r)=>i.sort((n,u)=>zw(n,u,r));_f.exports=Xw});var Ef=P((OO,wf)=>{var Yw=Qi(),Kw=(i,r)=>i.sort((n,u)=>Yw(u,n,r));wf.exports=Kw});var qn=P((xO,bf)=>{var Jw=at(),Zw=(i,r,n)=>Jw(i,r,n)>0;bf.exports=Zw});var es=P((AO,Sf)=>{var Qw=at(),eE=(i,r,n)=>Qw(i,r,n)<0;Sf.exports=eE});var Ko=P((RO,Cf)=>{var tE=at(),rE=(i,r,n)=>tE(i,r,n)!==0;Cf.exports=rE});var ts=P((IO,Of)=>{var nE=at(),iE=(i,r,n)=>nE(i,r,n)>=0;Of.exports=iE});var rs=P((PO,xf)=>{var sE=at(),oE=(i,r,n)=>sE(i,r,n)<=0;xf.exports=oE});var Jo=P((TO,Af)=>{var uE=Zi(),aE=Ko(),lE=qn(),cE=ts(),fE=es(),hE=rs(),pE=(i,r,n,u)=>{switch(r){case"===":return typeof i=="object"&&(i=i.version),typeof n=="object"&&(n=n.version),i===n;case"!==":return typeof i=="object"&&(i=i.version),typeof n=="object"&&(n=n.version),i!==n;case"":case"=":case"==":return uE(i,n,u);case"!=":return aE(i,n,u);case">":return lE(i,n,u);case">=":return cE(i,n,u);case"<":return fE(i,n,u);case"<=":return hE(i,n,u);default:throw new TypeError(`Invalid operator: ${r}`)}};Af.exports=pE});var If=P((LO,Rf)=>{var dE=Te(),gE=_r(),{re:ns,t:is}=vr(),mE=(i,r)=>{if(i instanceof dE)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;r=r||{};let n=null;if(!r.rtl)n=i.match(ns[is.COERCE]);else{let u;for(;(u=ns[is.COERCERTL].exec(i))&&(!n||n.index+n[0].length!==i.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),ns[is.COERCERTL].lastIndex=u.index+u[1].length+u[2].length;ns[is.COERCERTL].lastIndex=-1}return n===null?null:gE(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,r)};Rf.exports=mE});var Tf=P((NO,Pf)=>{"use strict";Pf.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var Nf=P((DO,Lf)=>{"use strict";Lf.exports=Z;Z.Node=yr;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(a){r.push(a)});else if(arguments.length>0)for(var n=0,u=arguments.length;n<u;n++)r.push(arguments[n]);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,n=i.prev;return r&&(r.prev=n),n&&(n.next=r),i===this.head&&(this.head=r),i===this.tail&&(this.tail=n),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++)_E(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)yE(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 n=this.head,u=0;n!==null;u++)i.call(r,n.value,u,this),n=n.next};Z.prototype.forEachReverse=function(i,r){r=r||this;for(var n=this.tail,u=this.length-1;n!==null;u--)i.call(r,n.value,u,this),n=n.prev};Z.prototype.get=function(i){for(var r=0,n=this.head;n!==null&&r<i;r++)n=n.next;if(r===i&&n!==null)return n.value};Z.prototype.getReverse=function(i){for(var r=0,n=this.tail;n!==null&&r<i;r++)n=n.prev;if(r===i&&n!==null)return n.value};Z.prototype.map=function(i,r){r=r||this;for(var n=new Z,u=this.head;u!==null;)n.push(i.call(r,u.value,this)),u=u.next;return n};Z.prototype.mapReverse=function(i,r){r=r||this;for(var n=new Z,u=this.tail;u!==null;)n.push(i.call(r,u.value,this)),u=u.prev;return n};Z.prototype.reduce=function(i,r){var n,u=this.head;if(arguments.length>1)n=r;else if(this.head)u=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;u!==null;a++)n=i(n,u.value,a),u=u.next;return n};Z.prototype.reduceReverse=function(i,r){var n,u=this.tail;if(arguments.length>1)n=r;else if(this.tail)u=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;u!==null;a--)n=i(n,u.value,a),u=u.prev;return n};Z.prototype.toArray=function(){for(var i=new Array(this.length),r=0,n=this.head;n!==null;r++)i[r]=n.value,n=n.next;return i};Z.prototype.toArrayReverse=function(){for(var i=new Array(this.length),r=0,n=this.tail;n!==null;r++)i[r]=n.value,n=n.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 n=new Z;if(r<i||r<0)return n;i<0&&(i=0),r>this.length&&(r=this.length);for(var u=0,a=this.head;a!==null&&u<i;u++)a=a.next;for(;a!==null&&u<r;u++,a=a.next)n.push(a.value);return n};Z.prototype.sliceReverse=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var n=new Z;if(r<i||r<0)return n;i<0&&(i=0),r>this.length&&(r=this.length);for(var u=this.length,a=this.tail;a!==null&&u>r;u--)a=a.prev;for(;a!==null&&u>i;u--,a=a.prev)n.push(a.value);return n};Z.prototype.splice=function(i,r,...n){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var u=0,a=this.head;a!==null&&u<i;u++)a=a.next;for(var o=[],u=0;a&&u<r;u++)o.push(a.value),a=this.removeNode(a);a===null&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev);for(var u=0;u<n.length;u++)a=vE(this,a,n[u]);return o};Z.prototype.reverse=function(){for(var i=this.head,r=this.tail,n=i;n!==null;n=n.prev){var u=n.prev;n.prev=n.next,n.next=u}return this.head=r,this.tail=i,this};function vE(i,r,n){var u=r===i.head?new yr(n,null,r,i):new yr(n,r,r.next,i);return u.next===null&&(i.tail=u),u.prev===null&&(i.head=u),i.length++,u}function _E(i,r){i.tail=new yr(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function yE(i,r){i.head=new yr(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function yr(i,r,n,u){if(!(this instanceof yr))return new yr(i,r,n,u);this.list=u,this.value=i,r?(r.next=this,this.prev=r):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{Tf()(Z)}catch{}});var Hf=P((qO,jf)=>{"use strict";var wE=Nf(),wr=Symbol("max"),Ht=Symbol("length"),Vr=Symbol("lengthCalculator"),$n=Symbol("allowStale"),Er=Symbol("maxAge"),Ut=Symbol("dispose"),Df=Symbol("noDisposeOnSet"),Se=Symbol("lruList"),mt=Symbol("cache"),qf=Symbol("updateAgeOnGet"),Zo=()=>1,$f=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 n=this[wr]=r.max||1/0,u=r.length||Zo;if(this[Vr]=typeof u!="function"?Zo:u,this[$n]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[Er]=r.maxAge||0,this[Ut]=r.dispose,this[Df]=r.noDisposeOnSet||!1,this[qf]=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[wr]=r||1/0,Fn(this)}get max(){return this[wr]}set allowStale(r){this[$n]=!!r}get allowStale(){return this[$n]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[Er]=r,Fn(this)}get maxAge(){return this[Er]}set lengthCalculator(r){typeof r!="function"&&(r=Zo),r!==this[Vr]&&(this[Vr]=r,this[Ht]=0,this[Se].forEach(n=>{n.length=this[Vr](n.value,n.key),this[Ht]+=n.length})),Fn(this)}get lengthCalculator(){return this[Vr]}get length(){return this[Ht]}get itemCount(){return this[Se].length}rforEach(r,n){n=n||this;for(let u=this[Se].tail;u!==null;){let a=u.prev;Mf(this,r,u,n),u=a}}forEach(r,n){n=n||this;for(let u=this[Se].head;u!==null;){let a=u.next;Mf(this,r,u,n),u=a}}keys(){return this[Se].toArray().map(r=>r.key)}values(){return this[Se].toArray().map(r=>r.value)}reset(){this[Ut]&&this[Se]&&this[Se].length&&this[Se].forEach(r=>this[Ut](r.key,r.value)),this[mt]=new Map,this[Se]=new wE,this[Ht]=0}dump(){return this[Se].map(r=>ss(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[Se]}set(r,n,u){if(u=u||this[Er],u&&typeof u!="number")throw new TypeError("maxAge must be a number");let a=u?Date.now():0,o=this[Vr](n,r);if(this[mt].has(r)){if(o>this[wr])return zr(this,this[mt].get(r)),!1;let _=this[mt].get(r).value;return this[Ut]&&(this[Df]||this[Ut](r,_.value)),_.now=a,_.maxAge=u,_.value=n,this[Ht]+=o-_.length,_.length=o,this.get(r),Fn(this),!0}let p=new Ff(r,n,o,a,u);return p.length>this[wr]?(this[Ut]&&this[Ut](r,n),!1):(this[Ht]+=p.length,this[Se].unshift(p),this[mt].set(r,this[Se].head),Fn(this),!0)}has(r){if(!this[mt].has(r))return!1;let n=this[mt].get(r).value;return!ss(this,n)}get(r){return Qo(this,r,!0)}peek(r){return Qo(this,r,!1)}pop(){let r=this[Se].tail;return r?(zr(this,r),r.value):null}del(r){zr(this,this[mt].get(r))}load(r){this.reset();let n=Date.now();for(let u=r.length-1;u>=0;u--){let a=r[u],o=a.e||0;if(o===0)this.set(a.k,a.v);else{let p=o-n;p>0&&this.set(a.k,a.v,p)}}}prune(){this[mt].forEach((r,n)=>Qo(this,n,!1))}},Qo=(i,r,n)=>{let u=i[mt].get(r);if(u){let a=u.value;if(ss(i,a)){if(zr(i,u),!i[$n])return}else n&&(i[qf]&&(u.value.now=Date.now()),i[Se].unshiftNode(u));return a.value}},ss=(i,r)=>{if(!r||!r.maxAge&&!i[Er])return!1;let n=Date.now()-r.now;return r.maxAge?n>r.maxAge:i[Er]&&n>i[Er]},Fn=i=>{if(i[Ht]>i[wr])for(let r=i[Se].tail;i[Ht]>i[wr]&&r!==null;){let n=r.prev;zr(i,r),r=n}},zr=(i,r)=>{if(r){let n=r.value;i[Ut]&&i[Ut](n.key,n.value),i[Ht]-=n.length,i[mt].delete(n.key),i[Se].removeNode(r)}},Ff=class{constructor(r,n,u,a,o){this.key=r,this.value=n,this.length=u,this.now=a,this.maxAge=o||0}},Mf=(i,r,n,u)=>{let a=n.value;ss(i,a)&&(zr(i,n),i[$n]||(a=void 0)),a&&r.call(u,a.value,a.key,i)};jf.exports=$f});var lt=P(($O,Wf)=>{var Xr=class{constructor(r,n){if(n=bE(n),r instanceof Xr)return r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease?r:new Xr(r.raw,n);if(r instanceof eu)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=r,this.set=r.split(/\s*\|\|\s*/).map(u=>this.parseRange(u.trim())).filter(u=>u.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);if(this.set.length>1){let u=this.set[0];if(this.set=this.set.filter(a=>!Gf(a[0])),this.set.length===0)this.set=[u];else if(this.set.length>1){for(let a of this.set)if(a.length===1&&AE(a[0])){this.set=[a];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 u=`parseRange:${Object.keys(this.options).join(",")}:${r}`,a=Uf.get(u);if(a)return a;let o=this.options.loose,p=o?Le[xe.HYPHENRANGELOOSE]:Le[xe.HYPHENRANGE];r=r.replace(p,FE(this.options.includePrerelease)),me("hyphen replace",r),r=r.replace(Le[xe.COMPARATORTRIM],CE),me("comparator trim",r,Le[xe.COMPARATORTRIM]),r=r.replace(Le[xe.TILDETRIM],OE),r=r.replace(Le[xe.CARETTRIM],xE),r=r.split(/\s+/).join(" ");let g=o?Le[xe.COMPARATORLOOSE]:Le[xe.COMPARATOR],_=r.split(" ").map(R=>RE(R,this.options)).join(" ").split(/\s+/).map(R=>$E(R,this.options)).filter(this.options.loose?R=>!!R.match(g):()=>!0).map(R=>new eu(R,this.options)),c=_.length,v=new Map;for(let R of _){if(Gf(R))return[R];v.set(R.value,R)}v.size>1&&v.has("")&&v.delete("");let b=[...v.values()];return Uf.set(u,b),b}intersects(r,n){if(!(r instanceof Xr))throw new TypeError("a Range is required");return this.set.some(u=>Bf(u,n)&&r.set.some(a=>Bf(a,n)&&u.every(o=>a.every(p=>o.intersects(p,n)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new SE(r,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(ME(this.set[n],r,this.options))return!0;return!1}};Wf.exports=Xr;var EE=Hf(),Uf=new EE({max:1e3}),bE=Nn(),eu=Mn(),me=Ln(),SE=Te(),{re:Le,t:xe,comparatorTrimReplace:CE,tildeTrimReplace:OE,caretTrimReplace:xE}=vr(),Gf=i=>i.value==="<0.0.0-0",AE=i=>i.value==="",Bf=(i,r)=>{let n=!0,u=i.slice(),a=u.pop();for(;n&&u.length;)n=u.every(o=>a.intersects(o,r)),a=u.pop();return n},RE=(i,r)=>(me("comp",i,r),i=TE(i,r),me("caret",i),i=IE(i,r),me("tildes",i),i=NE(i,r),me("xrange",i),i=qE(i,r),me("stars",i),i),Fe=i=>!i||i.toLowerCase()==="x"||i==="*",IE=(i,r)=>i.trim().split(/\s+/).map(n=>PE(n,r)).join(" "),PE=(i,r)=>{let n=r.loose?Le[xe.TILDELOOSE]:Le[xe.TILDE];return i.replace(n,(u,a,o,p,g)=>{me("tilde",i,u,a,o,p,g);let _;return Fe(a)?_="":Fe(o)?_=`>=${a}.0.0 <${+a+1}.0.0-0`:Fe(p)?_=`>=${a}.${o}.0 <${a}.${+o+1}.0-0`:g?(me("replaceTilde pr",g),_=`>=${a}.${o}.${p}-${g} <${a}.${+o+1}.0-0`):_=`>=${a}.${o}.${p} <${a}.${+o+1}.0-0`,me("tilde return",_),_})},TE=(i,r)=>i.trim().split(/\s+/).map(n=>LE(n,r)).join(" "),LE=(i,r)=>{me("caret",i,r);let n=r.loose?Le[xe.CARETLOOSE]:Le[xe.CARET],u=r.includePrerelease?"-0":"";return i.replace(n,(a,o,p,g,_)=>{me("caret",i,a,o,p,g,_);let c;return Fe(o)?c="":Fe(p)?c=`>=${o}.0.0${u} <${+o+1}.0.0-0`:Fe(g)?o==="0"?c=`>=${o}.${p}.0${u} <${o}.${+p+1}.0-0`:c=`>=${o}.${p}.0${u} <${+o+1}.0.0-0`:_?(me("replaceCaret pr",_),o==="0"?p==="0"?c=`>=${o}.${p}.${g}-${_} <${o}.${p}.${+g+1}-0`:c=`>=${o}.${p}.${g}-${_} <${o}.${+p+1}.0-0`:c=`>=${o}.${p}.${g}-${_} <${+o+1}.0.0-0`):(me("no pr"),o==="0"?p==="0"?c=`>=${o}.${p}.${g}${u} <${o}.${p}.${+g+1}-0`:c=`>=${o}.${p}.${g}${u} <${o}.${+p+1}.0-0`:c=`>=${o}.${p}.${g} <${+o+1}.0.0-0`),me("caret return",c),c})},NE=(i,r)=>(me("replaceXRanges",i,r),i.split(/\s+/).map(n=>DE(n,r)).join(" ")),DE=(i,r)=>{i=i.trim();let n=r.loose?Le[xe.XRANGELOOSE]:Le[xe.XRANGE];return i.replace(n,(u,a,o,p,g,_)=>{me("xRange",i,u,a,o,p,g,_);let c=Fe(o),v=c||Fe(p),b=v||Fe(g),R=b;return a==="="&&R&&(a=""),_=r.includePrerelease?"-0":"",c?a===">"||a==="<"?u="<0.0.0-0":u="*":a&&R?(v&&(p=0),g=0,a===">"?(a=">=",v?(o=+o+1,p=0,g=0):(p=+p+1,g=0)):a==="<="&&(a="<",v?o=+o+1:p=+p+1),a==="<"&&(_="-0"),u=`${a+o}.${p}.${g}${_}`):v?u=`>=${o}.0.0${_} <${+o+1}.0.0-0`:b&&(u=`>=${o}.${p}.0${_} <${o}.${+p+1}.0-0`),me("xRange return",u),u})},qE=(i,r)=>(me("replaceStars",i,r),i.trim().replace(Le[xe.STAR],"")),$E=(i,r)=>(me("replaceGTE0",i,r),i.trim().replace(Le[r.includePrerelease?xe.GTE0PRE:xe.GTE0],"")),FE=i=>(r,n,u,a,o,p,g,_,c,v,b,R,I)=>(Fe(u)?n="":Fe(a)?n=`>=${u}.0.0${i?"-0":""}`:Fe(o)?n=`>=${u}.${a}.0${i?"-0":""}`:p?n=`>=${n}`:n=`>=${n}${i?"-0":""}`,Fe(c)?_="":Fe(v)?_=`<${+c+1}.0.0-0`:Fe(b)?_=`<${c}.${+v+1}.0-0`:R?_=`<=${c}.${v}.${b}-${R}`:i?_=`<${c}.${v}.${+b+1}-0`:_=`<=${_}`,`${n} ${_}`.trim()),ME=(i,r,n)=>{for(let u=0;u<i.length;u++)if(!i[u].test(r))return!1;if(r.prerelease.length&&!n.includePrerelease){for(let u=0;u<i.length;u++)if(me(i[u].semver),i[u].semver!==eu.ANY&&i[u].semver.prerelease.length>0){let a=i[u].semver;if(a.major===r.major&&a.minor===r.minor&&a.patch===r.patch)return!0}return!1}return!0}});var Mn=P((FO,Yf)=>{var jn=Symbol("SemVer ANY"),Hn=class{static get ANY(){return jn}constructor(r,n){if(n=jE(n),r instanceof Hn){if(r.loose===!!n.loose)return r;r=r.value}ru("comparator",r,n),this.options=n,this.loose=!!n.loose,this.parse(r),this.semver===jn?this.value="":this.value=this.operator+this.semver.version,ru("comp",this)}parse(r){let n=this.options.loose?kf[Vf.COMPARATORLOOSE]:kf[Vf.COMPARATOR],u=r.match(n);if(!u)throw new TypeError(`Invalid comparator: ${r}`);this.operator=u[1]!==void 0?u[1]:"",this.operator==="="&&(this.operator=""),u[2]?this.semver=new zf(u[2],this.options.loose):this.semver=jn}toString(){return this.value}test(r){if(ru("Comparator.test",r,this.options.loose),this.semver===jn||r===jn)return!0;if(typeof r=="string")try{r=new zf(r,this.options)}catch{return!1}return tu(r,this.operator,this.semver,this.options)}intersects(r,n){if(!(r instanceof Hn))throw new TypeError("a Comparator is required");if((!n||typeof n!="object")&&(n={loose:!!n,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Xf(r.value,n).test(this.value);if(r.operator==="")return r.value===""?!0:new Xf(this.value,n).test(r.semver);let u=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),a=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),o=this.semver.version===r.semver.version,p=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),g=tu(this.semver,"<",r.semver,n)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),_=tu(this.semver,">",r.semver,n)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return u||a||o&&p||g||_}};Yf.exports=Hn;var jE=Nn(),{re:kf,t:Vf}=vr(),tu=Jo(),ru=Ln(),zf=Te(),Xf=lt()});var Un=P((MO,Kf)=>{var HE=lt(),UE=(i,r,n)=>{try{r=new HE(r,n)}catch{return!1}return r.test(i)};Kf.exports=UE});var Zf=P((jO,Jf)=>{var GE=lt(),BE=(i,r)=>new GE(i,r).set.map(n=>n.map(u=>u.value).join(" ").trim().split(" "));Jf.exports=BE});var eh=P((HO,Qf)=>{var WE=Te(),kE=lt(),VE=(i,r,n)=>{let u=null,a=null,o=null;try{o=new kE(r,n)}catch{return null}return i.forEach(p=>{o.test(p)&&(!u||a.compare(p)===-1)&&(u=p,a=new WE(u,n))}),u};Qf.exports=VE});var rh=P((UO,th)=>{var zE=Te(),XE=lt(),YE=(i,r,n)=>{let u=null,a=null,o=null;try{o=new XE(r,n)}catch{return null}return i.forEach(p=>{o.test(p)&&(!u||a.compare(p)===1)&&(u=p,a=new zE(u,n))}),u};th.exports=YE});var sh=P((GO,ih)=>{var nu=Te(),KE=lt(),nh=qn(),JE=(i,r)=>{i=new KE(i,r);let n=new nu("0.0.0");if(i.test(n)||(n=new nu("0.0.0-0"),i.test(n)))return n;n=null;for(let u=0;u<i.set.length;++u){let a=i.set[u],o=null;a.forEach(p=>{let g=new nu(p.semver.version);switch(p.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!o||nh(g,o))&&(o=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${p.operator}`)}}),o&&(!n||nh(n,o))&&(n=o)}return n&&i.test(n)?n:null};ih.exports=JE});var uh=P((BO,oh)=>{var ZE=lt(),QE=(i,r)=>{try{return new ZE(i,r).range||"*"}catch{return null}};oh.exports=QE});var os=P((WO,fh)=>{var eb=Te(),ah=Mn(),{ANY:tb}=ah,rb=lt(),nb=Un(),lh=qn(),ch=es(),ib=rs(),sb=ts(),ob=(i,r,n,u)=>{i=new eb(i,u),r=new rb(r,u);let a,o,p,g,_;switch(n){case">":a=lh,o=ib,p=ch,g=">",_=">=";break;case"<":a=ch,o=sb,p=lh,g="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(nb(i,r,u))return!1;for(let c=0;c<r.set.length;++c){let v=r.set[c],b=null,R=null;if(v.forEach(I=>{I.semver===tb&&(I=new ah(">=0.0.0")),b=b||I,R=R||I,a(I.semver,b.semver,u)?b=I:p(I.semver,R.semver,u)&&(R=I)}),b.operator===g||b.operator===_||(!R.operator||R.operator===g)&&o(i,R.semver))return!1;if(R.operator===_&&p(i,R.semver))return!1}return!0};fh.exports=ob});var ph=P((kO,hh)=>{var ub=os(),ab=(i,r,n)=>ub(i,r,">",n);hh.exports=ab});var gh=P((VO,dh)=>{var lb=os(),cb=(i,r,n)=>lb(i,r,"<",n);dh.exports=cb});var _h=P((zO,vh)=>{var mh=lt(),fb=(i,r,n)=>(i=new mh(i,n),r=new mh(r,n),i.intersects(r));vh.exports=fb});var wh=P((XO,yh)=>{var hb=Un(),pb=at();yh.exports=(i,r,n)=>{let u=[],a=null,o=null,p=i.sort((v,b)=>pb(v,b,n));for(let v of p)hb(v,r,n)?(o=v,a||(a=v)):(o&&u.push([a,o]),o=null,a=null);a&&u.push([a,null]);let g=[];for(let[v,b]of u)v===b?g.push(v):!b&&v===p[0]?g.push("*"):b?v===p[0]?g.push(`<=${b}`):g.push(`${v} - ${b}`):g.push(`>=${v}`);let _=g.join(" || "),c=typeof r.raw=="string"?r.raw:String(r);return _.length<c.length?_:r}});var Oh=P((YO,Ch)=>{var Eh=lt(),us=Mn(),{ANY:iu}=us,Gn=Un(),su=at(),db=(i,r,n={})=>{if(i===r)return!0;i=new Eh(i,n),r=new Eh(r,n);let u=!1;e:for(let a of i.set){for(let o of r.set){let p=gb(a,o,n);if(u=u||p!==null,p)continue e}if(u)return!1}return!0},gb=(i,r,n)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===iu){if(r.length===1&&r[0].semver===iu)return!0;n.includePrerelease?i=[new us(">=0.0.0-0")]:i=[new us(">=0.0.0")]}if(r.length===1&&r[0].semver===iu){if(n.includePrerelease)return!0;r=[new us(">=0.0.0")]}let u=new Set,a,o;for(let I of i)I.operator===">"||I.operator===">="?a=bh(a,I,n):I.operator==="<"||I.operator==="<="?o=Sh(o,I,n):u.add(I.semver);if(u.size>1)return null;let p;if(a&&o){if(p=su(a.semver,o.semver,n),p>0)return null;if(p===0&&(a.operator!==">="||o.operator!=="<="))return null}for(let I of u){if(a&&!Gn(I,String(a),n)||o&&!Gn(I,String(o),n))return null;for(let H of r)if(!Gn(I,String(H),n))return!1;return!0}let g,_,c,v,b=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1,R=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1;b&&b.prerelease.length===1&&o.operator==="<"&&b.prerelease[0]===0&&(b=!1);for(let I of r){if(v=v||I.operator===">"||I.operator===">=",c=c||I.operator==="<"||I.operator==="<=",a){if(R&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===R.major&&I.semver.minor===R.minor&&I.semver.patch===R.patch&&(R=!1),I.operator===">"||I.operator===">="){if(g=bh(a,I,n),g===I&&g!==a)return!1}else if(a.operator===">="&&!Gn(a.semver,String(I),n))return!1}if(o){if(b&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===b.major&&I.semver.minor===b.minor&&I.semver.patch===b.patch&&(b=!1),I.operator==="<"||I.operator==="<="){if(_=Sh(o,I,n),_===I&&_!==o)return!1}else if(o.operator==="<="&&!Gn(o.semver,String(I),n))return!1}if(!I.operator&&(o||a)&&p!==0)return!1}return!(a&&c&&!o&&p!==0||o&&v&&!a&&p!==0||R||b)},bh=(i,r,n)=>{if(!i)return r;let u=su(i.semver,r.semver,n);return u>0?i:u<0||r.operator===">"&&i.operator===">="?r:i},Sh=(i,r,n)=>{if(!i)return r;let u=su(i.semver,r.semver,n);return u<0?i:u>0||r.operator==="<"&&i.operator==="<="?r:i};Ch.exports=db});var Ah=P((KO,xh)=>{var ou=vr();xh.exports={re:ou.re,src:ou.src,tokens:ou.t,SEMVER_SPEC_VERSION:Tn().SEMVER_SPEC_VERSION,SemVer:Te(),compareIdentifiers:Yi().compareIdentifiers,rcompareIdentifiers:Yi().rcompareIdentifiers,parse:_r(),valid:Vc(),clean:Xc(),inc:Kc(),diff:rf(),major:sf(),minor:uf(),patch:lf(),prerelease:ff(),compare:at(),rcompare:pf(),compareLoose:gf(),compareBuild:Qi(),sort:yf(),rsort:Ef(),gt:qn(),lt:es(),eq:Zi(),neq:Ko(),gte:ts(),lte:rs(),cmp:Jo(),coerce:If(),Comparator:Mn(),Range:lt(),satisfies:Un(),toComparators:Zf(),maxSatisfying:eh(),minSatisfying:rh(),minVersion:sh(),validRange:uh(),outside:os(),gtr:ph(),ltr:gh(),intersects:_h(),simplifyRange:wh(),subset:Oh()}});var Ae=P(br=>{"use strict";var Rh=br&&br.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(br,"__esModule",{value:!0});br.getCoreVersion=void 0;var Ih=Rh(require("path")),Ph=Rh(require("fs")),mb=Ah(),vb=require("@serverless-devs/core"),uu=Ih.default.join(vb.getRootHome(),"cache","core"),Th=Ih.default.join(uu,"package.json");function _b(){if(Ph.default.existsSync(Th)){var i=require("@serverless-devs/core/package.json").version,r=Lh();return mb.gt(i,r)?require("@serverless-devs/core"):require(uu)}return require("@serverless-devs/core")}function Lh(){return Ph.default.existsSync(uu)?require(Th).version:void 0}br.getCoreVersion=Lh;br.default=_b()});var Nh=P((ZO,yb)=>{yb.exports={name:"@serverless-devs/s",version:"2.0.93-alpha.3",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",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:{"@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",commander:"^6.0.0",dotenv:"^10.0.0",esbuild:"^0.13.6",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.1.0","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.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"latest"}}});var Gt=P(G=>{"use strict";var wb=G&&G.__createBinding||(Object.create?function(i,r,n,u){u===void 0&&(u=n),Object.defineProperty(i,u,{enumerable:!0,get:function(){return r[n]}})}:function(i,r,n,u){u===void 0&&(u=n),i[u]=r[n]}),Eb=G&&G.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),bb=G&&G.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var n in i)n!=="default"&&Object.prototype.hasOwnProperty.call(i,n)&&wb(r,i,n);return Eb(r,i),r},Dh=G&&G.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},qh=G&&G.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},as=G&&G.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(G,"__esModule",{value:!0});G.emoji=G.mark=G.replaceTemplate=G.getTemplatekey=G.replaceFun=G.getLang=G.printn=G.checkTemplateFile=G.checkAndReturnTemplateFile=G.yamlLoad=G.getFolderSize=G.getVersion=G.bgRed=G.red=void 0;var Ce=as(require("path")),Je=as(require("fs")),au=as(Xi()),Sb=as(require("os")),Cb=Sr(),ls=bb(Ae()),lu=ls.default.colors,Ob=ls.default.jsyaml,cs=Nh();G.red=lu.hex("#fd5750");G.bgRed=lu.hex("#000").bgHex("#fd5750");function xb(){return(0,ls.getCoreVersion)()?cs.name+": "+cs.version+", @serverless-devs/core: "+(0,ls.getCoreVersion)()+", "+process.platform+"-"+process.arch+", node-"+process.version:cs.name+": "+cs.version+", "+process.platform+"-"+process.arch+", node-"+process.version}G.getVersion=xb;function Ab(i){return Dh(this,void 0,void 0,function(){function r(a){return Dh(this,void 0,void 0,function(){var o,p;return qh(this,function(g){switch(g.label){case 0:return o=Je.default.lstatSync(a),typeof o!="object"?[2]:(n.set(o.ino,o.size),o.isDirectory()?(p=Je.default.readdirSync(a),typeof p!="object"?[2]:[4,Promise.all(p.map(function(_){return r(Ce.default.join(a,_))}))]):[3,2]);case 1:g.sent(),g.label=2;case 2:return[2]}})})}var n,u;return qh(this,function(a){switch(a.label){case 0:return n=new Map,[4,r(i)];case 1:return a.sent(),u=Array.from(n.values()).reduce(function(o,p){return o+p},0),[2,u]}})})}G.getFolderSize=Ab;function $h(i){var r=Je.default.readFileSync(i,"utf8");try{return Ob.load(r)}catch{var n=Ce.default.basename(i);new Cb.HumanError({errorMessage:n+" format is incorrect",tips:"Please check the configuration of "+n+", Serverless Devs' Yaml specification document can refer to\uFF1A"+lu.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/yaml.md")}),process.exit(1)}}G.yamlLoad=$h;function Bn(i,r){r===void 0&&(r=!1);var n=Je.default.readFileSync(i,"utf8"),u=r?JSON.parse(n):$h(i);if(!u)return!1;for(var a in u)if(u[a].Component&&u[a].Provider&&u[a].Properties)return!0;return u.hasOwnProperty("edition")}function Fh(){if(process.env.serverless_devs_temp_template)return process.env.serverless_devs_temp_template;var i=process.cwd(),r=process.argv.includes("-t")?"-t":process.argv.includes("--template")?"--template":null,n=r?process.argv.indexOf(r):-1;if(n!==-1){var u=n+1,a=process.argv[u];if(a&&(a.endsWith(".yaml")||a.endsWith(".yml")||a.endsWith(".json"))){var o=!!a.endsWith(".json");if(Je.default.existsSync(Ce.default.join(i,a))&&Bn(Ce.default.join(i,a),o)){process.argv.splice(n,2);var p=JSON.parse(process.env.serverless_devs_temp_argv);return p.splice(p.indexOf(r),2),process.env.serverless_devs_temp_argv=JSON.stringify(p),process.env.serverless_devs_temp_template=Ce.default.join(i,a),Ce.default.join(i,a)}else if(Je.default.existsSync(a)&&Bn(a,o)){process.argv.splice(n,2);var p=JSON.parse(process.env.serverless_devs_temp_argv);return p.splice(p.indexOf(r),2),process.env.serverless_devs_temp_argv=JSON.stringify(p),process.env.serverless_devs_temp_template=a,a}}}return Je.default.existsSync(Ce.default.join(i,"s.yaml"))&&Bn(Ce.default.join(i,"s.yaml"))?(process.env.serverless_devs_temp_template=Ce.default.join(i,"s.yaml"),Ce.default.join(i,"s.yaml")):Je.default.existsSync(Ce.default.join(i,"s.yml"))&&Bn(Ce.default.join(i,"s.yml"))?(process.env.serverless_devs_temp_template=Ce.default.join(i,"s.yml"),Ce.default.join(i,"s.yml")):Je.default.existsSync(Ce.default.join(i,"s.json"))&&Bn(Ce.default.join(i,"s.json"),!0)?(process.env.serverless_devs_temp_template=Ce.default.join(i,"s.json"),Ce.default.join(i,"s.json")):null}G.checkAndReturnTemplateFile=Fh;function Mh(i){return Je.default.existsSync(i)?i:null}G.checkTemplateFile=Mh;function jh(i,r){r===void 0&&(r=" ");for(var n="",u=0;u<i;u++)n=n+r;return n}G.printn=jh;function Hh(){return"en"}G.getLang=Hh;function cu(i,r){var n=/\{\{(.*?)\}\}/g,u=i.match(n);if(u)for(var a=0;a<u.length;a++){var o=u[a].replace(/{{|}}/g,""),p=au.default.trim(o.split("|")[0]);r[p]&&(i=i.replace(u[a],r[p]))}return i}G.replaceFun=cu;function Uh(i){var r=/\{\{(.*?)\}\}/g,n=i.match(r);return n?n.filter(function(u){return u}).map(function(u){var a=u.replace(/{{|}}/g,""),o=a.split("|");return{name:au.default.trim(o[0]),desc:au.default.trim(o[1])}}):[]}G.getTemplatekey=Uh;function Gh(i,r){i.forEach(function(n){if(Je.default.existsSync(n)){var u=Je.default.readFileSync(n,"utf-8"),a=cu(u,r);Je.default.writeFileSync(n,a,"utf-8")}})}G.replaceTemplate=Gh;function Bh(i){if(!i)return i;var r=i.slice(-4);return"***********"+r}G.mark=Bh;function Rb(i){return Sb.default.platform()==="win32"?"":i}G.emoji=Rb;G.default={checkAndReturnTemplateFile:Fh,checkTemplateFile:Mh,printn:jh,mark:Bh,getLang:Hh,replaceTemplate:Gh,replaceFun:cu,getTemplatekey:Uh}});var hs=P(Bt=>{"use strict";var Wh=Bt&&Bt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getHistoryFile=Bt.getHomeDir=void 0;var Ib=Wh(require("path")),kh=Wh(Ae()),fs=kh.default.fse,Pb=kh.default.getRootHome;function fu(){var i=Pb();return fs.existsSync(i)||fs.mkdirSync(i),i}Bt.getHomeDir=fu;function Vh(){var i=Ib.default.join(fu(),"history");return fs.existsSync(i)||fs.createFileSync(i),i}Bt.getHistoryFile=Vh;Bt.default={getHomeDir:fu,getHistoryFile:Vh}});var du=P(Me=>{"use strict";var Tb=Me&&Me.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},Lb=Me&&Me.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},hu=Me&&Me.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Me,"__esModule",{value:!0});Me.handlerProfileFile=Me.getConfig=Me.setConfig=void 0;var zh=hu(require("path")),Nb=hu(hs()),pu=hu(Ae()),Et=pu.default.fse,ps=pu.default.jsyaml,Xh=pu.default.getRootHome;function Db(i){var r=Kh();Et.writeFileSync(r,ps.dump(i))}function Yh(){var i=Kh();if(!Et.existsSync(i))return{};try{var r=ps.load(Et.readFileSync(i,"utf8"))||{};return r}catch(n){throw n}}function Kh(){var i=zh.default.join(Nb.default.getHomeDir(),"set-config.yml");return Et.existsSync(i)||Et.createFileSync(i),i}function Jh(i,r){var n=Yh();n[i]=r,Db(n)}Me.setConfig=Jh;function Zh(i,r){var n=Yh();return n[i]||r}Me.getConfig=Zh;function Qh(i){return Tb(this,void 0,void 0,function(){var r,n,u,a,o,p,g;return Lb(this,function(_){switch(_.label){case 0:if(r=i.filePath||"set-config.yml",n=zh.default.join(Xh(),r),u=Et.existsSync(n),a={},u)return[3,5];o=Xh(),_.label=1;case 1:return _.trys.push([1,2,,4]),Et.statSync(o),[3,4];case 2:return p=_.sent(),[4,Et.mkdirSync(o)];case 3:return _.sent(),[3,4];case 4:return[3,6];case 5:try{a=ps.load(Et.readFileSync(n,"utf8"))||{}}catch(c){throw c}_.label=6;case 6:return i.read?[2,a]:(g=i.configKey||"",a[g]=i.data,[4,Et.writeFileSync(n,ps.dump(a))]);case 7:return _.sent(),[2,a]}})})}Me.handlerProfileFile=Qh;Me.default={setConfig:Jh,getConfig:Zh,handlerProfileFile:Qh}});var Cr=P(Yr=>{"use strict";var qb=Yr&&Yr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Yr,"__esModule",{value:!0});Yr.ServerlessError=void 0;var $b=qb(Ae()),Fb=$b.default.Logger,Mb=new Fb("S-CLI-ERROR"),jb=function(){function i(r,n,u){Mb.error(r+": "+n,u),process.exit(1)}return i}();Yr.ServerlessError=jb});var ep=P(Kr=>{"use strict";var Hb=Kr&&Kr.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(Kr,"__esModule",{value:!0});Kr.CommandError=void 0;var Ub=Cr(),Gb=function(i){Hb(r,i);function r(n,u){return i.call(this,"Error",n,u)||this}return r}(Ub.ServerlessError);Kr.CommandError=Gb});var tp=P(Jr=>{"use strict";var Bb=Jr&&Jr.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(Jr,"__esModule",{value:!0});Jr.ConfigDeleteError=void 0;var Wb=Cr(),kb=function(i){Bb(r,i);function r(n,u){return i.call(this,"Deletion failed",n,u)||this}return r}(Wb.ServerlessError);Jr.ConfigDeleteError=kb});var rp=P(Zr=>{"use strict";var Vb=Zr&&Zr.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(Zr,"__esModule",{value:!0});Zr.ConfigError=void 0;var zb=Cr(),Xb=function(i){Vb(r,i);function r(n,u){return i.call(this,"Config failed",n,u)||this}return r}(zb.ServerlessError);Zr.ConfigError=Xb});var np=P(Qr=>{"use strict";var Yb=Qr&&Qr.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(Qr,"__esModule",{value:!0});Qr.ConfigGetError=void 0;var Kb=Cr(),Jb=function(i){Yb(r,i);function r(n,u){return i.call(this,"Get failed",n,u)||this}return r}(Kb.ServerlessError);Qr.ConfigGetError=Jb});var ip=P(en=>{"use strict";var Zb=en&&en.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(en,"__esModule",{value:!0});en.InitError=void 0;var Qb=Cr(),eS=function(i){Zb(r,i);function r(n,u){return i.call(this,"Initialization failed",n,u)||this}return r}(Qb.ServerlessError);en.InitError=eS});var op=P(bt=>{"use strict";var tS=bt&&bt.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},rS=bt&&bt.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},nS=bt&&bt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(bt,"__esModule",{value:!0});bt.HumanError=void 0;var sp=nS(Ae()),iS=Gt(),sS=sp.default.colors,oS=function(){function i(r){var n=r.errorMessage,u=r.tips;this.errorMessage=n,console.log(`
|
|
34
|
+
}`;var W=wc(function(){return Q(d,q+"return "+A).apply(i,m)});if(W.source=A,Do(W))throw W;return W}function py(e){return ee(e).toLowerCase()}function dy(e){return ee(e).toUpperCase()}function gy(e,t,s){if(e=ee(e),e&&(s||t===i))return Ia(e);if(!e||!(t=ze(t)))return e;var l=ht(e),f=ht(t),d=Pa(l,f),m=Ta(l,f)+1;return tr(l,d,m).join("")}function my(e,t,s){if(e=ee(e),e&&(s||t===i))return e.slice(0,Na(e)+1);if(!e||!(t=ze(t)))return e;var l=ht(e),f=Ta(l,ht(t))+1;return tr(l,0,f).join("")}function vy(e,t,s){if(e=ee(e),e&&(s||t===i))return e.replace(Ns,"");if(!e||!(t=ze(t)))return e;var l=ht(e),f=Pa(l,ht(t));return tr(l,f).join("")}function _y(e,t){var s=It,l=hd;if(fe(t)){var f="separator"in t?t.separator:f;s="length"in t?B(t.length):s,l="omission"in t?ze(t.omission):l}e=ee(e);var d=e.length;if(Dr(e)){var m=ht(e);d=m.length}if(s>=d)return e;var y=s-qr(l);if(y<1)return l;var E=m?tr(m,0,y).join(""):e.slice(0,y);if(f===i)return E+l;if(m&&(y+=E.length-y),qo(f)){if(e.slice(y).search(f)){var O,x=E;for(f.global||(f=Ks(f.source,ee(Ju.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var A=O.index;E=E.slice(0,A===i?y:A)}}else if(e.indexOf(ze(f),y)!=y){var T=E.lastIndexOf(f);T>-1&&(E=E.slice(0,T))}return E+l}function yy(e){return e=ee(e),e&&Pd.test(e)?e.replace(Xu,Xg):e}var wy=Ur(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),Mo=El("toUpperCase");function yc(e,t,s){return e=ee(e),t=s?i:t,t===i?Bg(e)?Jg(e):Dg(e):e.match(t)||[]}var wc=V(function(e,t){try{return ke(e,i,t)}catch(s){return Do(s)?s:new j(s)}}),Ey=qt(function(e,t){return et(t,function(s){s=wt(s),Nt(e,s,Lo(e[s],e))}),e});function by(e){var t=e==null?0:e.length,s=$();return e=t?ce(e,function(l){if(typeof l[1]!="function")throw new tt(a);return[s(l[0]),l[1]]}):[],V(function(l){for(var f=-1;++f<t;){var d=e[f];if(ke(d[0],this,l))return ke(d[1],this,l)}})}function Sy(e){return Xm(nt(e,c))}function jo(e){return function(){return e}}function Cy(e,t){return e==null||e!==e?t:e}var Oy=Sl(),xy=Sl(!0);function Be(e){return e}function Ho(e){return Qa(typeof e=="function"?e:nt(e,c))}function Ay(e){return tl(nt(e,c))}function Ry(e,t){return rl(e,nt(t,c))}var Iy=V(function(e,t){return function(s){return En(s,e,t)}}),Py=V(function(e,t){return function(s){return En(e,s,t)}});function Uo(e,t,s){var l=be(t),f=Ai(t,l);s==null&&!(fe(t)&&(f.length||!l.length))&&(s=t,t=e,e=this,f=Ai(t,be(t)));var d=!(fe(s)&&"chain"in s)||!!s.chain,m=Ft(e);return et(f,function(y){var E=t[y];e[y]=E,m&&(e.prototype[y]=function(){var O=this.__chain__;if(d||O){var x=e(this.__wrapped__),A=x.__actions__=He(this.__actions__);return A.push({func:E,args:arguments,thisArg:e}),x.__chain__=O,x}return E.apply(e,Xt([this.value()],arguments))})}),e}function Ty(){return Ee._===this&&(Ee._=nm),this}function Go(){}function Ly(e){return e=B(e),V(function(t){return nl(t,e)})}var Ny=yo(ce),Dy=yo(Ca),qy=yo(Bs);function Ec(e){return xo(e)?Ws(wt(e)):fv(e)}function $y(e){return function(t){return e==null?i:fr(e,t)}}var Fy=Ol(),My=Ol(!0);function Bo(){return[]}function Wo(){return!1}function jy(){return{}}function Hy(){return""}function Uy(){return!0}function Gy(e,t){if(e=B(e),e<1||e>Vt)return[];var s=vt,l=Ie(e,vt);t=$(t),e-=vt;for(var f=zs(l,t);++s<e;)t(s);return f}function By(e){return U(e)?ce(e,wt):Xe(e)?[e]:He(Ul(ee(e)))}function Wy(e){var t=++tm;return ee(e)+t}var ky=Ni(function(e,t){return e+t},0),Vy=wo("ceil"),zy=Ni(function(e,t){return e/t},1),Xy=wo("floor");function Yy(e){return e&&e.length?xi(e,Be,io):i}function Ky(e,t){return e&&e.length?xi(e,$(t,2),io):i}function Jy(e){return Aa(e,Be)}function Zy(e,t){return Aa(e,$(t,2))}function Qy(e){return e&&e.length?xi(e,Be,ao):i}function ew(e,t){return e&&e.length?xi(e,$(t,2),ao):i}var tw=Ni(function(e,t){return e*t},1),rw=wo("round"),nw=Ni(function(e,t){return e-t},0);function iw(e){return e&&e.length?Vs(e,Be):0}function sw(e,t){return e&&e.length?Vs(e,$(t,2)):0}return h.after=A0,h.ary=Zl,h.assign=d1,h.assignIn=hc,h.assignInWith=Vi,h.assignWith=g1,h.at=m1,h.before=Ql,h.bind=Lo,h.bindAll=Ey,h.bindKey=ec,h.castArray=j0,h.chain=Yl,h.chunk=Xv,h.compact=Yv,h.concat=Kv,h.cond=by,h.conforms=Sy,h.constant=jo,h.countBy=i0,h.create=v1,h.curry=tc,h.curryRight=rc,h.debounce=nc,h.defaults=_1,h.defaultsDeep=y1,h.defer=R0,h.delay=I0,h.difference=Jv,h.differenceBy=Zv,h.differenceWith=Qv,h.drop=e_,h.dropRight=t_,h.dropRightWhile=r_,h.dropWhile=n_,h.fill=i_,h.filter=o0,h.flatMap=l0,h.flatMapDeep=c0,h.flatMapDepth=f0,h.flatten=kl,h.flattenDeep=s_,h.flattenDepth=o_,h.flip=P0,h.flow=Oy,h.flowRight=xy,h.fromPairs=u_,h.functions=x1,h.functionsIn=A1,h.groupBy=h0,h.initial=l_,h.intersection=c_,h.intersectionBy=f_,h.intersectionWith=h_,h.invert=I1,h.invertBy=P1,h.invokeMap=d0,h.iteratee=Ho,h.keyBy=g0,h.keys=be,h.keysIn=Ge,h.map=Hi,h.mapKeys=L1,h.mapValues=N1,h.matches=Ay,h.matchesProperty=Ry,h.memoize=Gi,h.merge=D1,h.mergeWith=pc,h.method=Iy,h.methodOf=Py,h.mixin=Uo,h.negate=Bi,h.nthArg=Ly,h.omit=q1,h.omitBy=$1,h.once=T0,h.orderBy=m0,h.over=Ny,h.overArgs=L0,h.overEvery=Dy,h.overSome=qy,h.partial=No,h.partialRight=ic,h.partition=v0,h.pick=F1,h.pickBy=dc,h.property=Ec,h.propertyOf=$y,h.pull=m_,h.pullAll=zl,h.pullAllBy=v_,h.pullAllWith=__,h.pullAt=y_,h.range=Fy,h.rangeRight=My,h.rearg=N0,h.reject=w0,h.remove=w_,h.rest=D0,h.reverse=Po,h.sampleSize=b0,h.set=j1,h.setWith=H1,h.shuffle=S0,h.slice=E_,h.sortBy=x0,h.sortedUniq=R_,h.sortedUniqBy=I_,h.split=ly,h.spread=q0,h.tail=P_,h.take=T_,h.takeRight=L_,h.takeRightWhile=N_,h.takeWhile=D_,h.tap=Y_,h.throttle=$0,h.thru=ji,h.toArray=lc,h.toPairs=gc,h.toPairsIn=mc,h.toPath=By,h.toPlainObject=fc,h.transform=U1,h.unary=F0,h.union=q_,h.unionBy=$_,h.unionWith=F_,h.uniq=M_,h.uniqBy=j_,h.uniqWith=H_,h.unset=G1,h.unzip=To,h.unzipWith=Xl,h.update=B1,h.updateWith=W1,h.values=Wr,h.valuesIn=k1,h.without=U_,h.words=yc,h.wrap=M0,h.xor=G_,h.xorBy=B_,h.xorWith=W_,h.zip=k_,h.zipObject=V_,h.zipObjectDeep=z_,h.zipWith=X_,h.entries=gc,h.entriesIn=mc,h.extend=hc,h.extendWith=Vi,Uo(h,h),h.add=ky,h.attempt=wc,h.camelCase=Y1,h.capitalize=vc,h.ceil=Vy,h.clamp=V1,h.clone=H0,h.cloneDeep=G0,h.cloneDeepWith=B0,h.cloneWith=U0,h.conformsTo=W0,h.deburr=_c,h.defaultTo=Cy,h.divide=zy,h.endsWith=K1,h.eq=dt,h.escape=J1,h.escapeRegExp=Z1,h.every=s0,h.find=u0,h.findIndex=Bl,h.findKey=w1,h.findLast=a0,h.findLastIndex=Wl,h.findLastKey=E1,h.floor=Xy,h.forEach=Kl,h.forEachRight=Jl,h.forIn=b1,h.forInRight=S1,h.forOwn=C1,h.forOwnRight=O1,h.get=$o,h.gt=k0,h.gte=V0,h.has=R1,h.hasIn=Fo,h.head=Vl,h.identity=Be,h.includes=p0,h.indexOf=a_,h.inRange=z1,h.invoke=T1,h.isArguments=dr,h.isArray=U,h.isArrayBuffer=z0,h.isArrayLike=Ue,h.isArrayLikeObject=de,h.isBoolean=X0,h.isBuffer=rr,h.isDate=Y0,h.isElement=K0,h.isEmpty=J0,h.isEqual=Z0,h.isEqualWith=Q0,h.isError=Do,h.isFinite=e1,h.isFunction=Ft,h.isInteger=sc,h.isLength=Wi,h.isMap=oc,h.isMatch=t1,h.isMatchWith=r1,h.isNaN=n1,h.isNative=i1,h.isNil=o1,h.isNull=s1,h.isNumber=uc,h.isObject=fe,h.isObjectLike=he,h.isPlainObject=An,h.isRegExp=qo,h.isSafeInteger=u1,h.isSet=ac,h.isString=ki,h.isSymbol=Xe,h.isTypedArray=Br,h.isUndefined=a1,h.isWeakMap=l1,h.isWeakSet=c1,h.join=p_,h.kebabCase=Q1,h.last=st,h.lastIndexOf=d_,h.lowerCase=ey,h.lowerFirst=ty,h.lt=f1,h.lte=h1,h.max=Yy,h.maxBy=Ky,h.mean=Jy,h.meanBy=Zy,h.min=Qy,h.minBy=ew,h.stubArray=Bo,h.stubFalse=Wo,h.stubObject=jy,h.stubString=Hy,h.stubTrue=Uy,h.multiply=tw,h.nth=g_,h.noConflict=Ty,h.noop=Go,h.now=Ui,h.pad=ry,h.padEnd=ny,h.padStart=iy,h.parseInt=sy,h.random=X1,h.reduce=_0,h.reduceRight=y0,h.repeat=oy,h.replace=uy,h.result=M1,h.round=rw,h.runInContext=w,h.sample=E0,h.size=C0,h.snakeCase=ay,h.some=O0,h.sortedIndex=b_,h.sortedIndexBy=S_,h.sortedIndexOf=C_,h.sortedLastIndex=O_,h.sortedLastIndexBy=x_,h.sortedLastIndexOf=A_,h.startCase=cy,h.startsWith=fy,h.subtract=nw,h.sum=iw,h.sumBy=sw,h.template=hy,h.times=Gy,h.toFinite=Mt,h.toInteger=B,h.toLength=cc,h.toLower=py,h.toNumber=ot,h.toSafeInteger=p1,h.toString=ee,h.toUpper=dy,h.trim=gy,h.trimEnd=my,h.trimStart=vy,h.truncate=_y,h.unescape=yy,h.uniqueId=Wy,h.upperCase=wy,h.upperFirst=Mo,h.each=Kl,h.eachRight=Jl,h.first=Vl,Uo(h,function(){var e={};return _t(h,function(t,s){re.call(h.prototype,s)||(e[s]=t)}),e}(),{chain:!1}),h.VERSION=r,et(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){h[e].placeholder=h}),et(["drop","take"],function(e,t){X.prototype[e]=function(s){s=s===i?1:we(B(s),0);var l=this.__filtered__&&!t?new X(this):this.clone();return l.__filtered__?l.__takeCount__=Ie(s,l.__takeCount__):l.__views__.push({size:Ie(s,vt),type:e+(l.__dir__<0?"Right":"")}),l},X.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),et(["filter","map","takeWhile"],function(e,t){var s=t+1,l=s==ku||s==md;X.prototype[e]=function(f){var d=this.clone();return d.__iteratees__.push({iteratee:$(f,3),type:s}),d.__filtered__=d.__filtered__||l,d}}),et(["head","last"],function(e,t){var s="take"+(t?"Right":"");X.prototype[e]=function(){return this[s](1).value()[0]}}),et(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");X.prototype[e]=function(){return this.__filtered__?new X(this):this[s](1)}}),X.prototype.compact=function(){return this.filter(Be)},X.prototype.find=function(e){return this.filter(e).head()},X.prototype.findLast=function(e){return this.reverse().find(e)},X.prototype.invokeMap=V(function(e,t){return typeof e=="function"?new X(this):this.map(function(s){return En(s,e,t)})}),X.prototype.reject=function(e){return this.filter(Bi($(e)))},X.prototype.slice=function(e,t){e=B(e);var s=this;return s.__filtered__&&(e>0||t<0)?new X(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==i&&(t=B(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},X.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},X.prototype.toArray=function(){return this.take(vt)},_t(X.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),l=/^(?:head|last)$/.test(t),f=h[l?"take"+(t=="last"?"Right":""):t],d=l||/^find/.test(t);!f||(h.prototype[t]=function(){var m=this.__wrapped__,y=l?[1]:arguments,E=m instanceof X,O=y[0],x=E||U(m),A=function(z){var J=f.apply(h,Xt([z],y));return l&&T?J[0]:J};x&&s&&typeof O=="function"&&O.length!=1&&(E=x=!1);var T=this.__chain__,q=!!this.__actions__.length,F=d&&!T,W=E&&!q;if(!d&&x){m=W?m:new X(this);var M=e.apply(m,y);return M.__actions__.push({func:ji,args:[A],thisArg:i}),new rt(M,T)}return F&&W?e.apply(this,y):(M=this.thru(A),F?l?M.value()[0]:M.value():M)})}),et(["pop","push","shift","sort","splice","unshift"],function(e){var t=fi[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",l=/^(?:pop|shift)$/.test(e);h.prototype[e]=function(){var f=arguments;if(l&&!this.__chain__){var d=this.value();return t.apply(U(d)?d:[],f)}return this[s](function(m){return t.apply(U(m)?m:[],f)})}}),_t(X.prototype,function(e,t){var s=h[t];if(s){var l=s.name+"";re.call(Mr,l)||(Mr[l]=[]),Mr[l].push({name:t,func:s})}}),Mr[Li(i,te).name]=[{name:"wrapper",func:i}],X.prototype.clone=ym,X.prototype.reverse=wm,X.prototype.value=Em,h.prototype.at=K_,h.prototype.chain=J_,h.prototype.commit=Z_,h.prototype.next=Q_,h.prototype.plant=t0,h.prototype.reverse=r0,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=n0,h.prototype.first=h.prototype.head,dn&&(h.prototype[dn]=e0),h},Kt=Zg();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Ee._=Kt,define(function(){return Kt})):or?((or.exports=Kt)._=Kt,js._=Kt):Ee._=Kt}).call(kr)});var Tn=P((sO,Pc)=>{var aw="2.0.0",lw=256,cw=Number.MAX_SAFE_INTEGER||9007199254740991,fw=16;Pc.exports={SEMVER_SPEC_VERSION:aw,MAX_LENGTH:lw,MAX_SAFE_INTEGER:cw,MAX_SAFE_COMPONENT_LENGTH:fw}});var Ln=P((oO,Tc)=>{var hw=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Tc.exports=hw});var vr=P((nr,Lc)=>{var{MAX_SAFE_COMPONENT_LENGTH:Yo}=Tn(),pw=Ln();nr=Lc.exports={};var dw=nr.re=[],N=nr.src=[],D=nr.t={},gw=0,k=(i,r,n)=>{let u=gw++;pw(u,r),D[i]=u,N[u]=r,dw[u]=new RegExp(r,n?"g":void 0)};k("NUMERICIDENTIFIER","0|[1-9]\\d*");k("NUMERICIDENTIFIERLOOSE","[0-9]+");k("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");k("MAINVERSION",`(${N[D.NUMERICIDENTIFIER]})\\.(${N[D.NUMERICIDENTIFIER]})\\.(${N[D.NUMERICIDENTIFIER]})`);k("MAINVERSIONLOOSE",`(${N[D.NUMERICIDENTIFIERLOOSE]})\\.(${N[D.NUMERICIDENTIFIERLOOSE]})\\.(${N[D.NUMERICIDENTIFIERLOOSE]})`);k("PRERELEASEIDENTIFIER",`(?:${N[D.NUMERICIDENTIFIER]}|${N[D.NONNUMERICIDENTIFIER]})`);k("PRERELEASEIDENTIFIERLOOSE",`(?:${N[D.NUMERICIDENTIFIERLOOSE]}|${N[D.NONNUMERICIDENTIFIER]})`);k("PRERELEASE",`(?:-(${N[D.PRERELEASEIDENTIFIER]}(?:\\.${N[D.PRERELEASEIDENTIFIER]})*))`);k("PRERELEASELOOSE",`(?:-?(${N[D.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${N[D.PRERELEASEIDENTIFIERLOOSE]})*))`);k("BUILDIDENTIFIER","[0-9A-Za-z-]+");k("BUILD",`(?:\\+(${N[D.BUILDIDENTIFIER]}(?:\\.${N[D.BUILDIDENTIFIER]})*))`);k("FULLPLAIN",`v?${N[D.MAINVERSION]}${N[D.PRERELEASE]}?${N[D.BUILD]}?`);k("FULL",`^${N[D.FULLPLAIN]}$`);k("LOOSEPLAIN",`[v=\\s]*${N[D.MAINVERSIONLOOSE]}${N[D.PRERELEASELOOSE]}?${N[D.BUILD]}?`);k("LOOSE",`^${N[D.LOOSEPLAIN]}$`);k("GTLT","((?:<|>)?=?)");k("XRANGEIDENTIFIERLOOSE",`${N[D.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);k("XRANGEIDENTIFIER",`${N[D.NUMERICIDENTIFIER]}|x|X|\\*`);k("XRANGEPLAIN",`[v=\\s]*(${N[D.XRANGEIDENTIFIER]})(?:\\.(${N[D.XRANGEIDENTIFIER]})(?:\\.(${N[D.XRANGEIDENTIFIER]})(?:${N[D.PRERELEASE]})?${N[D.BUILD]}?)?)?`);k("XRANGEPLAINLOOSE",`[v=\\s]*(${N[D.XRANGEIDENTIFIERLOOSE]})(?:\\.(${N[D.XRANGEIDENTIFIERLOOSE]})(?:\\.(${N[D.XRANGEIDENTIFIERLOOSE]})(?:${N[D.PRERELEASELOOSE]})?${N[D.BUILD]}?)?)?`);k("XRANGE",`^${N[D.GTLT]}\\s*${N[D.XRANGEPLAIN]}$`);k("XRANGELOOSE",`^${N[D.GTLT]}\\s*${N[D.XRANGEPLAINLOOSE]}$`);k("COERCE",`(^|[^\\d])(\\d{1,${Yo}})(?:\\.(\\d{1,${Yo}}))?(?:\\.(\\d{1,${Yo}}))?(?:$|[^\\d])`);k("COERCERTL",N[D.COERCE],!0);k("LONETILDE","(?:~>?)");k("TILDETRIM",`(\\s*)${N[D.LONETILDE]}\\s+`,!0);nr.tildeTrimReplace="$1~";k("TILDE",`^${N[D.LONETILDE]}${N[D.XRANGEPLAIN]}$`);k("TILDELOOSE",`^${N[D.LONETILDE]}${N[D.XRANGEPLAINLOOSE]}$`);k("LONECARET","(?:\\^)");k("CARETTRIM",`(\\s*)${N[D.LONECARET]}\\s+`,!0);nr.caretTrimReplace="$1^";k("CARET",`^${N[D.LONECARET]}${N[D.XRANGEPLAIN]}$`);k("CARETLOOSE",`^${N[D.LONECARET]}${N[D.XRANGEPLAINLOOSE]}$`);k("COMPARATORLOOSE",`^${N[D.GTLT]}\\s*(${N[D.LOOSEPLAIN]})$|^$`);k("COMPARATOR",`^${N[D.GTLT]}\\s*(${N[D.FULLPLAIN]})$|^$`);k("COMPARATORTRIM",`(\\s*)${N[D.GTLT]}\\s*(${N[D.LOOSEPLAIN]}|${N[D.XRANGEPLAIN]})`,!0);nr.comparatorTrimReplace="$1$2$3";k("HYPHENRANGE",`^\\s*(${N[D.XRANGEPLAIN]})\\s+-\\s+(${N[D.XRANGEPLAIN]})\\s*$`);k("HYPHENRANGELOOSE",`^\\s*(${N[D.XRANGEPLAINLOOSE]})\\s+-\\s+(${N[D.XRANGEPLAINLOOSE]})\\s*$`);k("STAR","(<|>)?=?\\s*\\*");k("GTE0","^\\s*>=\\s*0.0.0\\s*$");k("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")});var Nn=P((uO,Nc)=>{var mw=["includePrerelease","loose","rtl"],vw=i=>i?typeof i!="object"?{loose:!0}:mw.filter(r=>i[r]).reduce((r,n)=>(r[n]=!0,r),{}):{};Nc.exports=vw});var Yi=P((aO,$c)=>{var Dc=/^[0-9]+$/,qc=(i,r)=>{let n=Dc.test(i),u=Dc.test(r);return n&&u&&(i=+i,r=+r),i===r?0:n&&!u?-1:u&&!n?1:i<r?-1:1},_w=(i,r)=>qc(r,i);$c.exports={compareIdentifiers:qc,rcompareIdentifiers:_w}});var Te=P((lO,Hc)=>{var Ki=Ln(),{MAX_LENGTH:Fc,MAX_SAFE_INTEGER:Ji}=Tn(),{re:Mc,t:jc}=vr(),yw=Nn(),{compareIdentifiers:Dn}=Yi(),ut=class{constructor(r,n){if(n=yw(n),r instanceof ut){if(r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid Version: ${r}`);if(r.length>Fc)throw new TypeError(`version is longer than ${Fc} characters`);Ki("SemVer",r,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let u=r.trim().match(n.loose?Mc[jc.LOOSE]:Mc[jc.FULL]);if(!u)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+u[1],this.minor=+u[2],this.patch=+u[3],this.major>Ji||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ji||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ji||this.patch<0)throw new TypeError("Invalid patch version");u[4]?this.prerelease=u[4].split(".").map(a=>{if(/^[0-9]+$/.test(a)){let o=+a;if(o>=0&&o<Ji)return o}return a}):this.prerelease=[],this.build=u[5]?u[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(Ki("SemVer.compare",this.version,this.options,r),!(r instanceof ut)){if(typeof r=="string"&&r===this.version)return 0;r=new ut(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof ut||(r=new ut(r,this.options)),Dn(this.major,r.major)||Dn(this.minor,r.minor)||Dn(this.patch,r.patch)}comparePre(r){if(r instanceof ut||(r=new ut(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 n=0;do{let u=this.prerelease[n],a=r.prerelease[n];if(Ki("prerelease compare",n,u,a),u===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(u===void 0)return-1;if(u===a)continue;return Dn(u,a)}while(++n)}compareBuild(r){r instanceof ut||(r=new ut(r,this.options));let n=0;do{let u=this.build[n],a=r.build[n];if(Ki("prerelease compare",n,u,a),u===void 0&&a===void 0)return 0;if(a===void 0)return 1;if(u===void 0)return-1;if(u===a)continue;return Dn(u,a)}while(++n)}inc(r,n){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n),this.inc("pre",n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n),this.inc("pre",n);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 u=this.prerelease.length;for(;--u>=0;)typeof this.prerelease[u]=="number"&&(this.prerelease[u]++,u=-2);u===-1&&this.prerelease.push(0)}n&&(this.prerelease[0]===n?isNaN(this.prerelease[1])&&(this.prerelease=[n,0]):this.prerelease=[n,0]);break;default:throw new Error(`invalid increment argument: ${r}`)}return this.format(),this.raw=this.version,this}};Hc.exports=ut});var _r=P((cO,Wc)=>{var{MAX_LENGTH:ww}=Tn(),{re:Uc,t:Gc}=vr(),Bc=Te(),Ew=Nn(),bw=(i,r)=>{if(r=Ew(r),i instanceof Bc)return i;if(typeof i!="string"||i.length>ww||!(r.loose?Uc[Gc.LOOSE]:Uc[Gc.FULL]).test(i))return null;try{return new Bc(i,r)}catch{return null}};Wc.exports=bw});var Vc=P((fO,kc)=>{var Sw=_r(),Cw=(i,r)=>{let n=Sw(i,r);return n?n.version:null};kc.exports=Cw});var Xc=P((hO,zc)=>{var Ow=_r(),xw=(i,r)=>{let n=Ow(i.trim().replace(/^[=v]+/,""),r);return n?n.version:null};zc.exports=xw});var Kc=P((pO,Yc)=>{var Aw=Te(),Rw=(i,r,n,u)=>{typeof n=="string"&&(u=n,n=void 0);try{return new Aw(i,n).inc(r,u).version}catch{return null}};Yc.exports=Rw});var at=P((dO,Zc)=>{var Jc=Te(),Iw=(i,r,n)=>new Jc(i,n).compare(new Jc(r,n));Zc.exports=Iw});var Zi=P((gO,Qc)=>{var Pw=at(),Tw=(i,r,n)=>Pw(i,r,n)===0;Qc.exports=Tw});var rf=P((mO,tf)=>{var ef=_r(),Lw=Zi(),Nw=(i,r)=>{if(Lw(i,r))return null;{let n=ef(i),u=ef(r),a=n.prerelease.length||u.prerelease.length,o=a?"pre":"",p=a?"prerelease":"";for(let g in n)if((g==="major"||g==="minor"||g==="patch")&&n[g]!==u[g])return o+g;return p}};tf.exports=Nw});var sf=P((vO,nf)=>{var Dw=Te(),qw=(i,r)=>new Dw(i,r).major;nf.exports=qw});var uf=P((_O,of)=>{var $w=Te(),Fw=(i,r)=>new $w(i,r).minor;of.exports=Fw});var lf=P((yO,af)=>{var Mw=Te(),jw=(i,r)=>new Mw(i,r).patch;af.exports=jw});var ff=P((wO,cf)=>{var Hw=_r(),Uw=(i,r)=>{let n=Hw(i,r);return n&&n.prerelease.length?n.prerelease:null};cf.exports=Uw});var pf=P((EO,hf)=>{var Gw=at(),Bw=(i,r,n)=>Gw(r,i,n);hf.exports=Bw});var gf=P((bO,df)=>{var Ww=at(),kw=(i,r)=>Ww(i,r,!0);df.exports=kw});var Qi=P((SO,vf)=>{var mf=Te(),Vw=(i,r,n)=>{let u=new mf(i,n),a=new mf(r,n);return u.compare(a)||u.compareBuild(a)};vf.exports=Vw});var yf=P((CO,_f)=>{var zw=Qi(),Xw=(i,r)=>i.sort((n,u)=>zw(n,u,r));_f.exports=Xw});var Ef=P((OO,wf)=>{var Yw=Qi(),Kw=(i,r)=>i.sort((n,u)=>Yw(u,n,r));wf.exports=Kw});var qn=P((xO,bf)=>{var Jw=at(),Zw=(i,r,n)=>Jw(i,r,n)>0;bf.exports=Zw});var es=P((AO,Sf)=>{var Qw=at(),eE=(i,r,n)=>Qw(i,r,n)<0;Sf.exports=eE});var Ko=P((RO,Cf)=>{var tE=at(),rE=(i,r,n)=>tE(i,r,n)!==0;Cf.exports=rE});var ts=P((IO,Of)=>{var nE=at(),iE=(i,r,n)=>nE(i,r,n)>=0;Of.exports=iE});var rs=P((PO,xf)=>{var sE=at(),oE=(i,r,n)=>sE(i,r,n)<=0;xf.exports=oE});var Jo=P((TO,Af)=>{var uE=Zi(),aE=Ko(),lE=qn(),cE=ts(),fE=es(),hE=rs(),pE=(i,r,n,u)=>{switch(r){case"===":return typeof i=="object"&&(i=i.version),typeof n=="object"&&(n=n.version),i===n;case"!==":return typeof i=="object"&&(i=i.version),typeof n=="object"&&(n=n.version),i!==n;case"":case"=":case"==":return uE(i,n,u);case"!=":return aE(i,n,u);case">":return lE(i,n,u);case">=":return cE(i,n,u);case"<":return fE(i,n,u);case"<=":return hE(i,n,u);default:throw new TypeError(`Invalid operator: ${r}`)}};Af.exports=pE});var If=P((LO,Rf)=>{var dE=Te(),gE=_r(),{re:ns,t:is}=vr(),mE=(i,r)=>{if(i instanceof dE)return i;if(typeof i=="number"&&(i=String(i)),typeof i!="string")return null;r=r||{};let n=null;if(!r.rtl)n=i.match(ns[is.COERCE]);else{let u;for(;(u=ns[is.COERCERTL].exec(i))&&(!n||n.index+n[0].length!==i.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),ns[is.COERCERTL].lastIndex=u.index+u[1].length+u[2].length;ns[is.COERCERTL].lastIndex=-1}return n===null?null:gE(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,r)};Rf.exports=mE});var Tf=P((NO,Pf)=>{"use strict";Pf.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var Nf=P((DO,Lf)=>{"use strict";Lf.exports=Z;Z.Node=yr;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(a){r.push(a)});else if(arguments.length>0)for(var n=0,u=arguments.length;n<u;n++)r.push(arguments[n]);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,n=i.prev;return r&&(r.prev=n),n&&(n.next=r),i===this.head&&(this.head=r),i===this.tail&&(this.tail=n),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++)_E(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)yE(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 n=this.head,u=0;n!==null;u++)i.call(r,n.value,u,this),n=n.next};Z.prototype.forEachReverse=function(i,r){r=r||this;for(var n=this.tail,u=this.length-1;n!==null;u--)i.call(r,n.value,u,this),n=n.prev};Z.prototype.get=function(i){for(var r=0,n=this.head;n!==null&&r<i;r++)n=n.next;if(r===i&&n!==null)return n.value};Z.prototype.getReverse=function(i){for(var r=0,n=this.tail;n!==null&&r<i;r++)n=n.prev;if(r===i&&n!==null)return n.value};Z.prototype.map=function(i,r){r=r||this;for(var n=new Z,u=this.head;u!==null;)n.push(i.call(r,u.value,this)),u=u.next;return n};Z.prototype.mapReverse=function(i,r){r=r||this;for(var n=new Z,u=this.tail;u!==null;)n.push(i.call(r,u.value,this)),u=u.prev;return n};Z.prototype.reduce=function(i,r){var n,u=this.head;if(arguments.length>1)n=r;else if(this.head)u=this.head.next,n=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;u!==null;a++)n=i(n,u.value,a),u=u.next;return n};Z.prototype.reduceReverse=function(i,r){var n,u=this.tail;if(arguments.length>1)n=r;else if(this.tail)u=this.tail.prev,n=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;u!==null;a--)n=i(n,u.value,a),u=u.prev;return n};Z.prototype.toArray=function(){for(var i=new Array(this.length),r=0,n=this.head;n!==null;r++)i[r]=n.value,n=n.next;return i};Z.prototype.toArrayReverse=function(){for(var i=new Array(this.length),r=0,n=this.tail;n!==null;r++)i[r]=n.value,n=n.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 n=new Z;if(r<i||r<0)return n;i<0&&(i=0),r>this.length&&(r=this.length);for(var u=0,a=this.head;a!==null&&u<i;u++)a=a.next;for(;a!==null&&u<r;u++,a=a.next)n.push(a.value);return n};Z.prototype.sliceReverse=function(i,r){r=r||this.length,r<0&&(r+=this.length),i=i||0,i<0&&(i+=this.length);var n=new Z;if(r<i||r<0)return n;i<0&&(i=0),r>this.length&&(r=this.length);for(var u=this.length,a=this.tail;a!==null&&u>r;u--)a=a.prev;for(;a!==null&&u>i;u--,a=a.prev)n.push(a.value);return n};Z.prototype.splice=function(i,r,...n){i>this.length&&(i=this.length-1),i<0&&(i=this.length+i);for(var u=0,a=this.head;a!==null&&u<i;u++)a=a.next;for(var o=[],u=0;a&&u<r;u++)o.push(a.value),a=this.removeNode(a);a===null&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev);for(var u=0;u<n.length;u++)a=vE(this,a,n[u]);return o};Z.prototype.reverse=function(){for(var i=this.head,r=this.tail,n=i;n!==null;n=n.prev){var u=n.prev;n.prev=n.next,n.next=u}return this.head=r,this.tail=i,this};function vE(i,r,n){var u=r===i.head?new yr(n,null,r,i):new yr(n,r,r.next,i);return u.next===null&&(i.tail=u),u.prev===null&&(i.head=u),i.length++,u}function _E(i,r){i.tail=new yr(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function yE(i,r){i.head=new yr(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function yr(i,r,n,u){if(!(this instanceof yr))return new yr(i,r,n,u);this.list=u,this.value=i,r?(r.next=this,this.prev=r):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}try{Tf()(Z)}catch{}});var Hf=P((qO,jf)=>{"use strict";var wE=Nf(),wr=Symbol("max"),Ht=Symbol("length"),Vr=Symbol("lengthCalculator"),$n=Symbol("allowStale"),Er=Symbol("maxAge"),Ut=Symbol("dispose"),Df=Symbol("noDisposeOnSet"),Se=Symbol("lruList"),mt=Symbol("cache"),qf=Symbol("updateAgeOnGet"),Zo=()=>1,$f=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 n=this[wr]=r.max||1/0,u=r.length||Zo;if(this[Vr]=typeof u!="function"?Zo:u,this[$n]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[Er]=r.maxAge||0,this[Ut]=r.dispose,this[Df]=r.noDisposeOnSet||!1,this[qf]=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[wr]=r||1/0,Fn(this)}get max(){return this[wr]}set allowStale(r){this[$n]=!!r}get allowStale(){return this[$n]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[Er]=r,Fn(this)}get maxAge(){return this[Er]}set lengthCalculator(r){typeof r!="function"&&(r=Zo),r!==this[Vr]&&(this[Vr]=r,this[Ht]=0,this[Se].forEach(n=>{n.length=this[Vr](n.value,n.key),this[Ht]+=n.length})),Fn(this)}get lengthCalculator(){return this[Vr]}get length(){return this[Ht]}get itemCount(){return this[Se].length}rforEach(r,n){n=n||this;for(let u=this[Se].tail;u!==null;){let a=u.prev;Mf(this,r,u,n),u=a}}forEach(r,n){n=n||this;for(let u=this[Se].head;u!==null;){let a=u.next;Mf(this,r,u,n),u=a}}keys(){return this[Se].toArray().map(r=>r.key)}values(){return this[Se].toArray().map(r=>r.value)}reset(){this[Ut]&&this[Se]&&this[Se].length&&this[Se].forEach(r=>this[Ut](r.key,r.value)),this[mt]=new Map,this[Se]=new wE,this[Ht]=0}dump(){return this[Se].map(r=>ss(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[Se]}set(r,n,u){if(u=u||this[Er],u&&typeof u!="number")throw new TypeError("maxAge must be a number");let a=u?Date.now():0,o=this[Vr](n,r);if(this[mt].has(r)){if(o>this[wr])return zr(this,this[mt].get(r)),!1;let _=this[mt].get(r).value;return this[Ut]&&(this[Df]||this[Ut](r,_.value)),_.now=a,_.maxAge=u,_.value=n,this[Ht]+=o-_.length,_.length=o,this.get(r),Fn(this),!0}let p=new Ff(r,n,o,a,u);return p.length>this[wr]?(this[Ut]&&this[Ut](r,n),!1):(this[Ht]+=p.length,this[Se].unshift(p),this[mt].set(r,this[Se].head),Fn(this),!0)}has(r){if(!this[mt].has(r))return!1;let n=this[mt].get(r).value;return!ss(this,n)}get(r){return Qo(this,r,!0)}peek(r){return Qo(this,r,!1)}pop(){let r=this[Se].tail;return r?(zr(this,r),r.value):null}del(r){zr(this,this[mt].get(r))}load(r){this.reset();let n=Date.now();for(let u=r.length-1;u>=0;u--){let a=r[u],o=a.e||0;if(o===0)this.set(a.k,a.v);else{let p=o-n;p>0&&this.set(a.k,a.v,p)}}}prune(){this[mt].forEach((r,n)=>Qo(this,n,!1))}},Qo=(i,r,n)=>{let u=i[mt].get(r);if(u){let a=u.value;if(ss(i,a)){if(zr(i,u),!i[$n])return}else n&&(i[qf]&&(u.value.now=Date.now()),i[Se].unshiftNode(u));return a.value}},ss=(i,r)=>{if(!r||!r.maxAge&&!i[Er])return!1;let n=Date.now()-r.now;return r.maxAge?n>r.maxAge:i[Er]&&n>i[Er]},Fn=i=>{if(i[Ht]>i[wr])for(let r=i[Se].tail;i[Ht]>i[wr]&&r!==null;){let n=r.prev;zr(i,r),r=n}},zr=(i,r)=>{if(r){let n=r.value;i[Ut]&&i[Ut](n.key,n.value),i[Ht]-=n.length,i[mt].delete(n.key),i[Se].removeNode(r)}},Ff=class{constructor(r,n,u,a,o){this.key=r,this.value=n,this.length=u,this.now=a,this.maxAge=o||0}},Mf=(i,r,n,u)=>{let a=n.value;ss(i,a)&&(zr(i,n),i[$n]||(a=void 0)),a&&r.call(u,a.value,a.key,i)};jf.exports=$f});var lt=P(($O,Wf)=>{var Xr=class{constructor(r,n){if(n=bE(n),r instanceof Xr)return r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease?r:new Xr(r.raw,n);if(r instanceof eu)return this.raw=r.value,this.set=[[r]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=r,this.set=r.split(/\s*\|\|\s*/).map(u=>this.parseRange(u.trim())).filter(u=>u.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${r}`);if(this.set.length>1){let u=this.set[0];if(this.set=this.set.filter(a=>!Gf(a[0])),this.set.length===0)this.set=[u];else if(this.set.length>1){for(let a of this.set)if(a.length===1&&AE(a[0])){this.set=[a];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 u=`parseRange:${Object.keys(this.options).join(",")}:${r}`,a=Uf.get(u);if(a)return a;let o=this.options.loose,p=o?Le[xe.HYPHENRANGELOOSE]:Le[xe.HYPHENRANGE];r=r.replace(p,FE(this.options.includePrerelease)),me("hyphen replace",r),r=r.replace(Le[xe.COMPARATORTRIM],CE),me("comparator trim",r,Le[xe.COMPARATORTRIM]),r=r.replace(Le[xe.TILDETRIM],OE),r=r.replace(Le[xe.CARETTRIM],xE),r=r.split(/\s+/).join(" ");let g=o?Le[xe.COMPARATORLOOSE]:Le[xe.COMPARATOR],_=r.split(" ").map(R=>RE(R,this.options)).join(" ").split(/\s+/).map(R=>$E(R,this.options)).filter(this.options.loose?R=>!!R.match(g):()=>!0).map(R=>new eu(R,this.options)),c=_.length,v=new Map;for(let R of _){if(Gf(R))return[R];v.set(R.value,R)}v.size>1&&v.has("")&&v.delete("");let b=[...v.values()];return Uf.set(u,b),b}intersects(r,n){if(!(r instanceof Xr))throw new TypeError("a Range is required");return this.set.some(u=>Bf(u,n)&&r.set.some(a=>Bf(a,n)&&u.every(o=>a.every(p=>o.intersects(p,n)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new SE(r,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(ME(this.set[n],r,this.options))return!0;return!1}};Wf.exports=Xr;var EE=Hf(),Uf=new EE({max:1e3}),bE=Nn(),eu=Mn(),me=Ln(),SE=Te(),{re:Le,t:xe,comparatorTrimReplace:CE,tildeTrimReplace:OE,caretTrimReplace:xE}=vr(),Gf=i=>i.value==="<0.0.0-0",AE=i=>i.value==="",Bf=(i,r)=>{let n=!0,u=i.slice(),a=u.pop();for(;n&&u.length;)n=u.every(o=>a.intersects(o,r)),a=u.pop();return n},RE=(i,r)=>(me("comp",i,r),i=TE(i,r),me("caret",i),i=IE(i,r),me("tildes",i),i=NE(i,r),me("xrange",i),i=qE(i,r),me("stars",i),i),Fe=i=>!i||i.toLowerCase()==="x"||i==="*",IE=(i,r)=>i.trim().split(/\s+/).map(n=>PE(n,r)).join(" "),PE=(i,r)=>{let n=r.loose?Le[xe.TILDELOOSE]:Le[xe.TILDE];return i.replace(n,(u,a,o,p,g)=>{me("tilde",i,u,a,o,p,g);let _;return Fe(a)?_="":Fe(o)?_=`>=${a}.0.0 <${+a+1}.0.0-0`:Fe(p)?_=`>=${a}.${o}.0 <${a}.${+o+1}.0-0`:g?(me("replaceTilde pr",g),_=`>=${a}.${o}.${p}-${g} <${a}.${+o+1}.0-0`):_=`>=${a}.${o}.${p} <${a}.${+o+1}.0-0`,me("tilde return",_),_})},TE=(i,r)=>i.trim().split(/\s+/).map(n=>LE(n,r)).join(" "),LE=(i,r)=>{me("caret",i,r);let n=r.loose?Le[xe.CARETLOOSE]:Le[xe.CARET],u=r.includePrerelease?"-0":"";return i.replace(n,(a,o,p,g,_)=>{me("caret",i,a,o,p,g,_);let c;return Fe(o)?c="":Fe(p)?c=`>=${o}.0.0${u} <${+o+1}.0.0-0`:Fe(g)?o==="0"?c=`>=${o}.${p}.0${u} <${o}.${+p+1}.0-0`:c=`>=${o}.${p}.0${u} <${+o+1}.0.0-0`:_?(me("replaceCaret pr",_),o==="0"?p==="0"?c=`>=${o}.${p}.${g}-${_} <${o}.${p}.${+g+1}-0`:c=`>=${o}.${p}.${g}-${_} <${o}.${+p+1}.0-0`:c=`>=${o}.${p}.${g}-${_} <${+o+1}.0.0-0`):(me("no pr"),o==="0"?p==="0"?c=`>=${o}.${p}.${g}${u} <${o}.${p}.${+g+1}-0`:c=`>=${o}.${p}.${g}${u} <${o}.${+p+1}.0-0`:c=`>=${o}.${p}.${g} <${+o+1}.0.0-0`),me("caret return",c),c})},NE=(i,r)=>(me("replaceXRanges",i,r),i.split(/\s+/).map(n=>DE(n,r)).join(" ")),DE=(i,r)=>{i=i.trim();let n=r.loose?Le[xe.XRANGELOOSE]:Le[xe.XRANGE];return i.replace(n,(u,a,o,p,g,_)=>{me("xRange",i,u,a,o,p,g,_);let c=Fe(o),v=c||Fe(p),b=v||Fe(g),R=b;return a==="="&&R&&(a=""),_=r.includePrerelease?"-0":"",c?a===">"||a==="<"?u="<0.0.0-0":u="*":a&&R?(v&&(p=0),g=0,a===">"?(a=">=",v?(o=+o+1,p=0,g=0):(p=+p+1,g=0)):a==="<="&&(a="<",v?o=+o+1:p=+p+1),a==="<"&&(_="-0"),u=`${a+o}.${p}.${g}${_}`):v?u=`>=${o}.0.0${_} <${+o+1}.0.0-0`:b&&(u=`>=${o}.${p}.0${_} <${o}.${+p+1}.0-0`),me("xRange return",u),u})},qE=(i,r)=>(me("replaceStars",i,r),i.trim().replace(Le[xe.STAR],"")),$E=(i,r)=>(me("replaceGTE0",i,r),i.trim().replace(Le[r.includePrerelease?xe.GTE0PRE:xe.GTE0],"")),FE=i=>(r,n,u,a,o,p,g,_,c,v,b,R,I)=>(Fe(u)?n="":Fe(a)?n=`>=${u}.0.0${i?"-0":""}`:Fe(o)?n=`>=${u}.${a}.0${i?"-0":""}`:p?n=`>=${n}`:n=`>=${n}${i?"-0":""}`,Fe(c)?_="":Fe(v)?_=`<${+c+1}.0.0-0`:Fe(b)?_=`<${c}.${+v+1}.0-0`:R?_=`<=${c}.${v}.${b}-${R}`:i?_=`<${c}.${v}.${+b+1}-0`:_=`<=${_}`,`${n} ${_}`.trim()),ME=(i,r,n)=>{for(let u=0;u<i.length;u++)if(!i[u].test(r))return!1;if(r.prerelease.length&&!n.includePrerelease){for(let u=0;u<i.length;u++)if(me(i[u].semver),i[u].semver!==eu.ANY&&i[u].semver.prerelease.length>0){let a=i[u].semver;if(a.major===r.major&&a.minor===r.minor&&a.patch===r.patch)return!0}return!1}return!0}});var Mn=P((FO,Yf)=>{var jn=Symbol("SemVer ANY"),Hn=class{static get ANY(){return jn}constructor(r,n){if(n=jE(n),r instanceof Hn){if(r.loose===!!n.loose)return r;r=r.value}ru("comparator",r,n),this.options=n,this.loose=!!n.loose,this.parse(r),this.semver===jn?this.value="":this.value=this.operator+this.semver.version,ru("comp",this)}parse(r){let n=this.options.loose?kf[Vf.COMPARATORLOOSE]:kf[Vf.COMPARATOR],u=r.match(n);if(!u)throw new TypeError(`Invalid comparator: ${r}`);this.operator=u[1]!==void 0?u[1]:"",this.operator==="="&&(this.operator=""),u[2]?this.semver=new zf(u[2],this.options.loose):this.semver=jn}toString(){return this.value}test(r){if(ru("Comparator.test",r,this.options.loose),this.semver===jn||r===jn)return!0;if(typeof r=="string")try{r=new zf(r,this.options)}catch{return!1}return tu(r,this.operator,this.semver,this.options)}intersects(r,n){if(!(r instanceof Hn))throw new TypeError("a Comparator is required");if((!n||typeof n!="object")&&(n={loose:!!n,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Xf(r.value,n).test(this.value);if(r.operator==="")return r.value===""?!0:new Xf(this.value,n).test(r.semver);let u=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">"),a=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<"),o=this.semver.version===r.semver.version,p=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),g=tu(this.semver,"<",r.semver,n)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),_=tu(this.semver,">",r.semver,n)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return u||a||o&&p||g||_}};Yf.exports=Hn;var jE=Nn(),{re:kf,t:Vf}=vr(),tu=Jo(),ru=Ln(),zf=Te(),Xf=lt()});var Un=P((MO,Kf)=>{var HE=lt(),UE=(i,r,n)=>{try{r=new HE(r,n)}catch{return!1}return r.test(i)};Kf.exports=UE});var Zf=P((jO,Jf)=>{var GE=lt(),BE=(i,r)=>new GE(i,r).set.map(n=>n.map(u=>u.value).join(" ").trim().split(" "));Jf.exports=BE});var eh=P((HO,Qf)=>{var WE=Te(),kE=lt(),VE=(i,r,n)=>{let u=null,a=null,o=null;try{o=new kE(r,n)}catch{return null}return i.forEach(p=>{o.test(p)&&(!u||a.compare(p)===-1)&&(u=p,a=new WE(u,n))}),u};Qf.exports=VE});var rh=P((UO,th)=>{var zE=Te(),XE=lt(),YE=(i,r,n)=>{let u=null,a=null,o=null;try{o=new XE(r,n)}catch{return null}return i.forEach(p=>{o.test(p)&&(!u||a.compare(p)===1)&&(u=p,a=new zE(u,n))}),u};th.exports=YE});var sh=P((GO,ih)=>{var nu=Te(),KE=lt(),nh=qn(),JE=(i,r)=>{i=new KE(i,r);let n=new nu("0.0.0");if(i.test(n)||(n=new nu("0.0.0-0"),i.test(n)))return n;n=null;for(let u=0;u<i.set.length;++u){let a=i.set[u],o=null;a.forEach(p=>{let g=new nu(p.semver.version);switch(p.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!o||nh(g,o))&&(o=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${p.operator}`)}}),o&&(!n||nh(n,o))&&(n=o)}return n&&i.test(n)?n:null};ih.exports=JE});var uh=P((BO,oh)=>{var ZE=lt(),QE=(i,r)=>{try{return new ZE(i,r).range||"*"}catch{return null}};oh.exports=QE});var os=P((WO,fh)=>{var eb=Te(),ah=Mn(),{ANY:tb}=ah,rb=lt(),nb=Un(),lh=qn(),ch=es(),ib=rs(),sb=ts(),ob=(i,r,n,u)=>{i=new eb(i,u),r=new rb(r,u);let a,o,p,g,_;switch(n){case">":a=lh,o=ib,p=ch,g=">",_=">=";break;case"<":a=ch,o=sb,p=lh,g="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(nb(i,r,u))return!1;for(let c=0;c<r.set.length;++c){let v=r.set[c],b=null,R=null;if(v.forEach(I=>{I.semver===tb&&(I=new ah(">=0.0.0")),b=b||I,R=R||I,a(I.semver,b.semver,u)?b=I:p(I.semver,R.semver,u)&&(R=I)}),b.operator===g||b.operator===_||(!R.operator||R.operator===g)&&o(i,R.semver))return!1;if(R.operator===_&&p(i,R.semver))return!1}return!0};fh.exports=ob});var ph=P((kO,hh)=>{var ub=os(),ab=(i,r,n)=>ub(i,r,">",n);hh.exports=ab});var gh=P((VO,dh)=>{var lb=os(),cb=(i,r,n)=>lb(i,r,"<",n);dh.exports=cb});var _h=P((zO,vh)=>{var mh=lt(),fb=(i,r,n)=>(i=new mh(i,n),r=new mh(r,n),i.intersects(r));vh.exports=fb});var wh=P((XO,yh)=>{var hb=Un(),pb=at();yh.exports=(i,r,n)=>{let u=[],a=null,o=null,p=i.sort((v,b)=>pb(v,b,n));for(let v of p)hb(v,r,n)?(o=v,a||(a=v)):(o&&u.push([a,o]),o=null,a=null);a&&u.push([a,null]);let g=[];for(let[v,b]of u)v===b?g.push(v):!b&&v===p[0]?g.push("*"):b?v===p[0]?g.push(`<=${b}`):g.push(`${v} - ${b}`):g.push(`>=${v}`);let _=g.join(" || "),c=typeof r.raw=="string"?r.raw:String(r);return _.length<c.length?_:r}});var Oh=P((YO,Ch)=>{var Eh=lt(),us=Mn(),{ANY:iu}=us,Gn=Un(),su=at(),db=(i,r,n={})=>{if(i===r)return!0;i=new Eh(i,n),r=new Eh(r,n);let u=!1;e:for(let a of i.set){for(let o of r.set){let p=gb(a,o,n);if(u=u||p!==null,p)continue e}if(u)return!1}return!0},gb=(i,r,n)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===iu){if(r.length===1&&r[0].semver===iu)return!0;n.includePrerelease?i=[new us(">=0.0.0-0")]:i=[new us(">=0.0.0")]}if(r.length===1&&r[0].semver===iu){if(n.includePrerelease)return!0;r=[new us(">=0.0.0")]}let u=new Set,a,o;for(let I of i)I.operator===">"||I.operator===">="?a=bh(a,I,n):I.operator==="<"||I.operator==="<="?o=Sh(o,I,n):u.add(I.semver);if(u.size>1)return null;let p;if(a&&o){if(p=su(a.semver,o.semver,n),p>0)return null;if(p===0&&(a.operator!==">="||o.operator!=="<="))return null}for(let I of u){if(a&&!Gn(I,String(a),n)||o&&!Gn(I,String(o),n))return null;for(let H of r)if(!Gn(I,String(H),n))return!1;return!0}let g,_,c,v,b=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1,R=a&&!n.includePrerelease&&a.semver.prerelease.length?a.semver:!1;b&&b.prerelease.length===1&&o.operator==="<"&&b.prerelease[0]===0&&(b=!1);for(let I of r){if(v=v||I.operator===">"||I.operator===">=",c=c||I.operator==="<"||I.operator==="<=",a){if(R&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===R.major&&I.semver.minor===R.minor&&I.semver.patch===R.patch&&(R=!1),I.operator===">"||I.operator===">="){if(g=bh(a,I,n),g===I&&g!==a)return!1}else if(a.operator===">="&&!Gn(a.semver,String(I),n))return!1}if(o){if(b&&I.semver.prerelease&&I.semver.prerelease.length&&I.semver.major===b.major&&I.semver.minor===b.minor&&I.semver.patch===b.patch&&(b=!1),I.operator==="<"||I.operator==="<="){if(_=Sh(o,I,n),_===I&&_!==o)return!1}else if(o.operator==="<="&&!Gn(o.semver,String(I),n))return!1}if(!I.operator&&(o||a)&&p!==0)return!1}return!(a&&c&&!o&&p!==0||o&&v&&!a&&p!==0||R||b)},bh=(i,r,n)=>{if(!i)return r;let u=su(i.semver,r.semver,n);return u>0?i:u<0||r.operator===">"&&i.operator===">="?r:i},Sh=(i,r,n)=>{if(!i)return r;let u=su(i.semver,r.semver,n);return u<0?i:u>0||r.operator==="<"&&i.operator==="<="?r:i};Ch.exports=db});var Ah=P((KO,xh)=>{var ou=vr();xh.exports={re:ou.re,src:ou.src,tokens:ou.t,SEMVER_SPEC_VERSION:Tn().SEMVER_SPEC_VERSION,SemVer:Te(),compareIdentifiers:Yi().compareIdentifiers,rcompareIdentifiers:Yi().rcompareIdentifiers,parse:_r(),valid:Vc(),clean:Xc(),inc:Kc(),diff:rf(),major:sf(),minor:uf(),patch:lf(),prerelease:ff(),compare:at(),rcompare:pf(),compareLoose:gf(),compareBuild:Qi(),sort:yf(),rsort:Ef(),gt:qn(),lt:es(),eq:Zi(),neq:Ko(),gte:ts(),lte:rs(),cmp:Jo(),coerce:If(),Comparator:Mn(),Range:lt(),satisfies:Un(),toComparators:Zf(),maxSatisfying:eh(),minSatisfying:rh(),minVersion:sh(),validRange:uh(),outside:os(),gtr:ph(),ltr:gh(),intersects:_h(),simplifyRange:wh(),subset:Oh()}});var Ae=P(br=>{"use strict";var Rh=br&&br.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(br,"__esModule",{value:!0});br.getCoreVersion=void 0;var Ih=Rh(require("path")),Ph=Rh(require("fs")),mb=Ah(),vb=require("@serverless-devs/core"),uu=Ih.default.join(vb.getRootHome(),"cache","core"),Th=Ih.default.join(uu,"package.json");function _b(){if(Ph.default.existsSync(Th)){var i=require("@serverless-devs/core/package.json").version,r=Lh();return mb.gt(i,r)?require("@serverless-devs/core"):require(uu)}return require("@serverless-devs/core")}function Lh(){return Ph.default.existsSync(uu)?require(Th).version:void 0}br.getCoreVersion=Lh;br.default=_b()});var Nh=P((ZO,yb)=>{yb.exports={name:"@serverless-devs/s",version:"2.0.93-beta.4",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:{prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"npx jest",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:{"@types/jest":"^27.0.1","@types/lodash":"^4.14.168","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1","babel-eslint":"^10.1.0",boxen:"^5.0.0",commander:"^6.0.0",dotenv:"^10.0.0",esbuild:"^0.13.6",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.1.0","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.0.1","ts-node":"^9.1.1","tty-table":"^4.1.5",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},jest:{coverageDirectory:"coverage",testEnvironment:"node",coverageProvider:"v8",preset:"ts-jest",testMatch:["**/test/**/*test.[jt]s"],setupFilesAfterEnv:["./jest.setup.ts"]},dependencies:{"@serverless-devs/core":"latest"}}});var Gt=P(G=>{"use strict";var wb=G&&G.__createBinding||(Object.create?function(i,r,n,u){u===void 0&&(u=n),Object.defineProperty(i,u,{enumerable:!0,get:function(){return r[n]}})}:function(i,r,n,u){u===void 0&&(u=n),i[u]=r[n]}),Eb=G&&G.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),bb=G&&G.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var n in i)n!=="default"&&Object.prototype.hasOwnProperty.call(i,n)&&wb(r,i,n);return Eb(r,i),r},Dh=G&&G.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},qh=G&&G.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},as=G&&G.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(G,"__esModule",{value:!0});G.emoji=G.mark=G.replaceTemplate=G.getTemplatekey=G.replaceFun=G.getLang=G.printn=G.checkTemplateFile=G.checkAndReturnTemplateFile=G.yamlLoad=G.getFolderSize=G.getVersion=G.bgRed=G.red=void 0;var Ce=as(require("path")),Je=as(require("fs")),au=as(Xi()),Sb=as(require("os")),Cb=Sr(),ls=bb(Ae()),lu=ls.default.colors,Ob=ls.default.jsyaml,cs=Nh();G.red=lu.hex("#fd5750");G.bgRed=lu.hex("#000").bgHex("#fd5750");function xb(){return(0,ls.getCoreVersion)()?cs.name+": "+cs.version+", @serverless-devs/core: "+(0,ls.getCoreVersion)()+", "+process.platform+"-"+process.arch+", node-"+process.version:cs.name+": "+cs.version+", "+process.platform+"-"+process.arch+", node-"+process.version}G.getVersion=xb;function Ab(i){return Dh(this,void 0,void 0,function(){function r(a){return Dh(this,void 0,void 0,function(){var o,p;return qh(this,function(g){switch(g.label){case 0:return o=Je.default.lstatSync(a),typeof o!="object"?[2]:(n.set(o.ino,o.size),o.isDirectory()?(p=Je.default.readdirSync(a),typeof p!="object"?[2]:[4,Promise.all(p.map(function(_){return r(Ce.default.join(a,_))}))]):[3,2]);case 1:g.sent(),g.label=2;case 2:return[2]}})})}var n,u;return qh(this,function(a){switch(a.label){case 0:return n=new Map,[4,r(i)];case 1:return a.sent(),u=Array.from(n.values()).reduce(function(o,p){return o+p},0),[2,u]}})})}G.getFolderSize=Ab;function $h(i){var r=Je.default.readFileSync(i,"utf8");try{return Ob.load(r)}catch{var n=Ce.default.basename(i);new Cb.HumanError({errorMessage:n+" format is incorrect",tips:"Please check the configuration of "+n+", Serverless Devs' Yaml specification document can refer to\uFF1A"+lu.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/yaml.md")}),process.exit(1)}}G.yamlLoad=$h;function Bn(i,r){r===void 0&&(r=!1);var n=Je.default.readFileSync(i,"utf8"),u=r?JSON.parse(n):$h(i);if(!u)return!1;for(var a in u)if(u[a].Component&&u[a].Provider&&u[a].Properties)return!0;return u.hasOwnProperty("edition")}function Fh(){if(process.env.serverless_devs_temp_template)return process.env.serverless_devs_temp_template;var i=process.cwd(),r=process.argv.includes("-t")?"-t":process.argv.includes("--template")?"--template":null,n=r?process.argv.indexOf(r):-1;if(n!==-1){var u=n+1,a=process.argv[u];if(a&&(a.endsWith(".yaml")||a.endsWith(".yml")||a.endsWith(".json"))){var o=!!a.endsWith(".json");if(Je.default.existsSync(Ce.default.join(i,a))&&Bn(Ce.default.join(i,a),o)){process.argv.splice(n,2);var p=JSON.parse(process.env.serverless_devs_temp_argv);return p.splice(p.indexOf(r),2),process.env.serverless_devs_temp_argv=JSON.stringify(p),process.env.serverless_devs_temp_template=Ce.default.join(i,a),Ce.default.join(i,a)}else if(Je.default.existsSync(a)&&Bn(a,o)){process.argv.splice(n,2);var p=JSON.parse(process.env.serverless_devs_temp_argv);return p.splice(p.indexOf(r),2),process.env.serverless_devs_temp_argv=JSON.stringify(p),process.env.serverless_devs_temp_template=a,a}}}return Je.default.existsSync(Ce.default.join(i,"s.yaml"))&&Bn(Ce.default.join(i,"s.yaml"))?(process.env.serverless_devs_temp_template=Ce.default.join(i,"s.yaml"),Ce.default.join(i,"s.yaml")):Je.default.existsSync(Ce.default.join(i,"s.yml"))&&Bn(Ce.default.join(i,"s.yml"))?(process.env.serverless_devs_temp_template=Ce.default.join(i,"s.yml"),Ce.default.join(i,"s.yml")):Je.default.existsSync(Ce.default.join(i,"s.json"))&&Bn(Ce.default.join(i,"s.json"),!0)?(process.env.serverless_devs_temp_template=Ce.default.join(i,"s.json"),Ce.default.join(i,"s.json")):null}G.checkAndReturnTemplateFile=Fh;function Mh(i){return Je.default.existsSync(i)?i:null}G.checkTemplateFile=Mh;function jh(i,r){r===void 0&&(r=" ");for(var n="",u=0;u<i;u++)n=n+r;return n}G.printn=jh;function Hh(){return"en"}G.getLang=Hh;function cu(i,r){var n=/\{\{(.*?)\}\}/g,u=i.match(n);if(u)for(var a=0;a<u.length;a++){var o=u[a].replace(/{{|}}/g,""),p=au.default.trim(o.split("|")[0]);r[p]&&(i=i.replace(u[a],r[p]))}return i}G.replaceFun=cu;function Uh(i){var r=/\{\{(.*?)\}\}/g,n=i.match(r);return n?n.filter(function(u){return u}).map(function(u){var a=u.replace(/{{|}}/g,""),o=a.split("|");return{name:au.default.trim(o[0]),desc:au.default.trim(o[1])}}):[]}G.getTemplatekey=Uh;function Gh(i,r){i.forEach(function(n){if(Je.default.existsSync(n)){var u=Je.default.readFileSync(n,"utf-8"),a=cu(u,r);Je.default.writeFileSync(n,a,"utf-8")}})}G.replaceTemplate=Gh;function Bh(i){if(!i)return i;var r=i.slice(-4);return"***********"+r}G.mark=Bh;function Rb(i){return Sb.default.platform()==="win32"?"":i}G.emoji=Rb;G.default={checkAndReturnTemplateFile:Fh,checkTemplateFile:Mh,printn:jh,mark:Bh,getLang:Hh,replaceTemplate:Gh,replaceFun:cu,getTemplatekey:Uh}});var hs=P(Bt=>{"use strict";var Wh=Bt&&Bt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getHistoryFile=Bt.getHomeDir=void 0;var Ib=Wh(require("path")),kh=Wh(Ae()),fs=kh.default.fse,Pb=kh.default.getRootHome;function fu(){var i=Pb();return fs.existsSync(i)||fs.mkdirSync(i),i}Bt.getHomeDir=fu;function Vh(){var i=Ib.default.join(fu(),"history");return fs.existsSync(i)||fs.createFileSync(i),i}Bt.getHistoryFile=Vh;Bt.default={getHomeDir:fu,getHistoryFile:Vh}});var du=P(Me=>{"use strict";var Tb=Me&&Me.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},Lb=Me&&Me.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},hu=Me&&Me.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Me,"__esModule",{value:!0});Me.handlerProfileFile=Me.getConfig=Me.setConfig=void 0;var zh=hu(require("path")),Nb=hu(hs()),pu=hu(Ae()),Et=pu.default.fse,ps=pu.default.jsyaml,Xh=pu.default.getRootHome;function Db(i){var r=Kh();Et.writeFileSync(r,ps.dump(i))}function Yh(){var i=Kh();if(!Et.existsSync(i))return{};try{var r=ps.load(Et.readFileSync(i,"utf8"))||{};return r}catch(n){throw n}}function Kh(){var i=zh.default.join(Nb.default.getHomeDir(),"set-config.yml");return Et.existsSync(i)||Et.createFileSync(i),i}function Jh(i,r){var n=Yh();n[i]=r,Db(n)}Me.setConfig=Jh;function Zh(i,r){var n=Yh();return n[i]||r}Me.getConfig=Zh;function Qh(i){return Tb(this,void 0,void 0,function(){var r,n,u,a,o,p,g;return Lb(this,function(_){switch(_.label){case 0:if(r=i.filePath||"set-config.yml",n=zh.default.join(Xh(),r),u=Et.existsSync(n),a={},u)return[3,5];o=Xh(),_.label=1;case 1:return _.trys.push([1,2,,4]),Et.statSync(o),[3,4];case 2:return p=_.sent(),[4,Et.mkdirSync(o)];case 3:return _.sent(),[3,4];case 4:return[3,6];case 5:try{a=ps.load(Et.readFileSync(n,"utf8"))||{}}catch(c){throw c}_.label=6;case 6:return i.read?[2,a]:(g=i.configKey||"",a[g]=i.data,[4,Et.writeFileSync(n,ps.dump(a))]);case 7:return _.sent(),[2,a]}})})}Me.handlerProfileFile=Qh;Me.default={setConfig:Jh,getConfig:Zh,handlerProfileFile:Qh}});var Cr=P(Yr=>{"use strict";var qb=Yr&&Yr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Yr,"__esModule",{value:!0});Yr.ServerlessError=void 0;var $b=qb(Ae()),Fb=$b.default.Logger,Mb=new Fb("S-CLI-ERROR"),jb=function(){function i(r,n,u){Mb.error(r+": "+n,u),process.exit(1)}return i}();Yr.ServerlessError=jb});var ep=P(Kr=>{"use strict";var Hb=Kr&&Kr.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(Kr,"__esModule",{value:!0});Kr.CommandError=void 0;var Ub=Cr(),Gb=function(i){Hb(r,i);function r(n,u){return i.call(this,"Error",n,u)||this}return r}(Ub.ServerlessError);Kr.CommandError=Gb});var tp=P(Jr=>{"use strict";var Bb=Jr&&Jr.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(Jr,"__esModule",{value:!0});Jr.ConfigDeleteError=void 0;var Wb=Cr(),kb=function(i){Bb(r,i);function r(n,u){return i.call(this,"Deletion failed",n,u)||this}return r}(Wb.ServerlessError);Jr.ConfigDeleteError=kb});var rp=P(Zr=>{"use strict";var Vb=Zr&&Zr.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(Zr,"__esModule",{value:!0});Zr.ConfigError=void 0;var zb=Cr(),Xb=function(i){Vb(r,i);function r(n,u){return i.call(this,"Config failed",n,u)||this}return r}(zb.ServerlessError);Zr.ConfigError=Xb});var np=P(Qr=>{"use strict";var Yb=Qr&&Qr.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(Qr,"__esModule",{value:!0});Qr.ConfigGetError=void 0;var Kb=Cr(),Jb=function(i){Yb(r,i);function r(n,u){return i.call(this,"Get failed",n,u)||this}return r}(Kb.ServerlessError);Qr.ConfigGetError=Jb});var ip=P(en=>{"use strict";var Zb=en&&en.__extends||function(){var i=function(r,n){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,a){u.__proto__=a}||function(u,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(u[o]=a[o])},i(r,n)};return function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");i(r,n);function u(){this.constructor=r}r.prototype=n===null?Object.create(n):(u.prototype=n.prototype,new u)}}();Object.defineProperty(en,"__esModule",{value:!0});en.InitError=void 0;var Qb=Cr(),eS=function(i){Zb(r,i);function r(n,u){return i.call(this,"Initialization failed",n,u)||this}return r}(Qb.ServerlessError);en.InitError=eS});var op=P(bt=>{"use strict";var tS=bt&&bt.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},rS=bt&&bt.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},nS=bt&&bt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(bt,"__esModule",{value:!0});bt.HumanError=void 0;var sp=nS(Ae()),iS=Gt(),sS=sp.default.colors,oS=function(){function i(r){var n=r.errorMessage,u=r.tips;this.errorMessage=n,console.log(`
|
|
35
35
|
`+(0,iS.bgRed)("ERROR:")),console.log("TypeError: "+n+`
|
|
36
36
|
`),console.log(sS.gray(u)+`
|
|
37
37
|
`)}return i.prototype.report=function(r){return tS(this,void 0,void 0,function(){var n;return rS(this,function(u){switch(u.label){case 0:return n=r.error,[4,sp.default.report({type:"jsError",content:this.errorMessage+"||"+n.stack})];case 1:return u.sent(),[2]}})})},i}();bt.HumanError=oS});var ap=P(tn=>{"use strict";var uS=tn&&tn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(tn,"__esModule",{value:!0});tn.HumanWarning=void 0;var aS=uS(Ae()),up=aS.default.colors,lS=function(){function i(r){var n=r.warningMessage,u=r.tips;console.log(`
|
|
@@ -43,7 +43,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
43
43
|
`+n+`
|
|
44
44
|
`),o!=="disable"&&console.log(Or.gray("Please copy traceId: "+this.traceId+" and join Dingding group: 33947367 for consultation.")),console.log(Or.gray("You can run 's clean --cache' to prune Serverless devs.")),console.log(Or.gray(`And run again with the '--debug' option or 's -h' to get more logs.
|
|
45
45
|
`))}return i.prototype.report=function(r){return cS(this,void 0,void 0,function(){return fS(this,function(n){return dS({type:"jsError",content:r.message+"||"+r.stack,traceId:this.traceId}),[2]})})},i}();oe.HandleError=OS});var pp=P(Ze=>{"use strict";var xS=Ze&&Ze.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.extractTemplateInfo=Ze.isUrlFormat=Ze.getProjectNameFromUrl=Ze.parse=void 0;var AS=xS(require("url"));function lp(i){return AS.default.parse(i)}Ze.parse=lp;function cp(i){var r=i.lastIndexOf("/");return r&&r>=0&&(i=i.substr(r+1)),i.endsWith(".git")?i.substr(0,i.length-4):i}Ze.getProjectNameFromUrl=cp;function fp(i){return i.includes(":")||i.includes("/")}Ze.isUrlFormat=fp;function hp(i){var r=i.pathname||"",n=r.split("/"),u=n[1],a=n[3];return{host:i.host,ownerName:u,repoName:a,branch:"",hasSubPath:!1,subPath:"",zipFile:""}}Ze.extractTemplateInfo=hp;Ze.default={extractTemplateInfo:hp,getProjectNameFromUrl:cp,isUrlFormat:fp,parse:lp}});var ds=P(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.getServiceList=je.getServiceActions=je.getServiceInputs=je.getServiceConfigDetail=je.getServiceConfig=je.getSubcommand=void 0;function dp(i){var r=i.edition||"0.0.1";if(r==="0.0.1")return Object.keys(i).filter(function(u){return u!=="Global"});var n=i.services||{};return Object.keys(n)}je.getSubcommand=dp;function gp(i,r){var n=i.edition||"0.0.1";if(n==="0.0.1")return i[r];var u=i.services||{},a=u[r],o=a.provider?a.provider:i.provider,p=a.access?a.access:i.access,g=Object.assign({},a,{access:p,provider:o});return g}je.getServiceConfig=gp;function mp(i){var r=i.Component||i.component,n=i.Provider||i.provider,u=i.Access||i.access||"default",a=i.autoCredential;return{name:r,provider:n,access:u,autoCredential:a}}je.getServiceConfigDetail=mp;function vp(i,r,n){if(r==="0.0.1"){var u=i.Properties,a=i.Params,o=i.Provider,p=i.Access,g=i.Component,_=i.ProjectName,c=n.credentials,v=n.method,b={Properties:u,Credentials:c,Project:{ProjectName:_,Component:g,Provider:o,AccessAlias:p||""},Command:v,Args:a||"",Path:{ConfigPath:process.env.templateFile||""}};return b}var R=i.props,I=i.params,H=i.provider,te=i.access,ue=i.component,Y=i.ProjectName,Re=i.appName,pe=n.credentials,le=n.method,ve={props:R,Properties:R,Credentials:pe,credentials:pe,appName:Re,Project:{ProjectName:Y,projectName:Y,component:ue,Component:ue,provider:H,Provider:H,accessAlias:te||"",AccessAlias:te||""},project:{component:ue,access:te||"",projectName:Y},command:le,Command:le,args:I||"",Args:I||"",argsObj:process.temp_params||[],ArgsObj:process.temp_params||[],path:{configPath:process.env.templateFile||""},Path:{ConfigPath:process.env.templateFile||""}};return ve}je.getServiceInputs=vp;function _p(i,r,n){var u=n.method;if(r==="0.0.1"){var a=i.Extends,o=a===void 0?{}:a,p=o[u];return p}var g=i.actions,_=g===void 0?{}:g,c=[];return Object.keys(_).forEach(function(v){var b=v.split("-"),R=_[v];if(b.length>1){var I=b[1];if(I===u){var H=b[0];R.forEach(function(te){var ue={Hook:te.run,Path:te.path,Pre:H==="pre"};c.push(ue)})}}else v===u&&R.forEach(function(te){var ue={Hook:te.run,Path:te.path,Pre:!1};c.push(ue)})}),c}je.getServiceActions=_p;function yp(i){var r=i.edition||"0.0.1";return r==="0.0.1"?i:i.services}je.getServiceList=yp;je.default={getSubcommand:dp,getServiceConfig:gp,getServiceConfigDetail:mp,getServiceInputs:vp,getServiceActions:_p,getServiceList:yp}});var xp=P(Ne=>{"use strict";var RS=Ne&&Ne.__createBinding||(Object.create?function(i,r,n,u){u===void 0&&(u=n),Object.defineProperty(i,u,{enumerable:!0,get:function(){return r[n]}})}:function(i,r,n,u){u===void 0&&(u=n),i[u]=r[n]}),IS=Ne&&Ne.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),wp=Ne&&Ne.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var n in i)n!=="default"&&Object.prototype.hasOwnProperty.call(i,n)&&RS(r,i,n);return IS(r,i),r},Ep=Ne&&Ne.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},bp=Ne&&Ne.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},PS=Ne&&Ne.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.Parse=void 0;var _u=wp(require("fs")),Sp=wp(require("path")),TS=ds(),LS=Sr(),Cp=Xi(),NS=PS(Ae()),DS=NS.default.jsyaml,qS=Xi(),Op=new RegExp(/\$\{(.*)\}/,"i"),$S=new RegExp(/(.*)\((.*)\)/,"i"),FS=["[object Number]","[object Boolean]"],MS=function(){function i(r){if(this.path=r,this.parsedObj={},this.dependenciesMap={},this.globalJsonKeyMap={},this.globalKeyArr=[],this.magicVariablesArray=[],_u.existsSync(r))try{this.init(r)}catch(n){throw new Error(n.message)}}return i.prototype.getFileObj=function(r){var n={};try{var u=Sp.extname(r);(u.indexOf(".yaml")!==-1||u.indexOf(".yml")!==-1)&&(n=DS.load(_u.readFileSync(r,"utf8"))),u.indexOf(".json")!==-1&&(n=JSON.parse(_u.readFileSync(r).toString()))}catch(a){new LS.HandleError({error:a}).report(a).then(function(){return process.exit(1)})}return n},i.prototype.init=function(r){return Ep(this,void 0,void 0,function(){return bp(this,function(n){return this.parsedObj=this.getFileObj(r),[2]})})},i.prototype.getOriginalParsedObj=function(){return this.parsedObj},i.prototype.findVariableValue=function(r){var n=r.variableName,u=r.type,a=r.funName,o=r.funVariable,p="";return u==="Literal"?this.globalJsonKeyMap[n]||this.globalJsonKeyMap["services."+n]||"${"+n+"}":u==="Fun"&&(a==="Env"||a==="env")?process.env[o]:u==="Fun"&&(a==="Path"||a==="path")?Sp.join(process.cwd(),o):u==="Fun"&&(a==="File"||a==="file")?this.getFileObj(o):p},i.prototype.generateMagicVariables=function(r,n,u){var a=this;return n===void 0&&(n=[]),u===void 0&&(u=""),Object.prototype.toString.call(r)==="[object Object]"?(u!==""&&(u=u+"."),Object.keys(r).map(function(o){var p=""+u+o,g=r[o];n.push(p),n.concat(a.generateMagicVariables(g,n,""+p)),a.globalJsonKeyMap[p]=g})):Object.prototype.toString.call(r)==="[object Array]"?r.forEach(function(o,p){var g=u+"["+p+"]",_=u+"["+(p-r.length)+"]";n.push(g),n.push(_),n.concat(a.generateMagicVariables(o,n,""+g)),n.concat(a.generateMagicVariables(o,n,""+_)),a.globalJsonKeyMap[g]=o,a.globalJsonKeyMap[_]=o}):n=[],n},i.prototype.isProjectProperties=function(r,n){var u=!1;return n==="Properties"&&this.globalJsonKeyMap[r+"."+n]&&(u=!0),u},i.prototype.iteratorToSetValue=function(r,n,u){var a=this;if(FS.includes(Object.prototype.toString.call(r)))return r;if(Object.prototype.toString.call(r)==="[object String]"){var o=r.match(Op);if(o){var p=o[1],g={variableName:p,type:"Literal",funName:null,funVariable:""},_=p.match($S);if(_)g.funName=_[1],g.funVariable=_[2],g.type="Fun";else{var c=this.dependenciesMap[n];c||(c={});var v=p.split(".")[0];c[v]=1,this.dependenciesMap[n]=c}var b=(0,Cp.startsWith)(p,"env.")?(0,Cp.get)(process,p):this.findVariableValue(g);return Object.prototype.toString.call(b)==="[object String]"?r.replace(Op,b):b}return(!this.dependenciesMap[n]||Object.keys(this.dependenciesMap[n]).length==0)&&(this.dependenciesMap[n]={}),r}if(Object.prototype.toString.call(r)==="[object Array]")return r.map(function(R){return a.iteratorToSetValue(R,n)});if(Object.prototype.toString.call(r)==="[object Object]")return Object.keys(r).forEach(function(R){r[R]=a.iteratorToSetValue(r[R],n,u||R)}),r},i.prototype.replaceVariable=function(r){var n=this,u=(0,TS.getServiceList)(r);return Object.keys(u).forEach(function(a){var o=u[a];u[a]=n.iteratorToSetValue(o,a)}),r.services?r.services=u:r=u,(0,qS.cloneDeep)(r)},i.prototype.getRealVariables=function(r){return Ep(this,void 0,void 0,function(){return bp(this,function(n){return this.globalKeyArr=this.generateMagicVariables(r),[2,this.replaceVariable(r)]})})},i}();Ne.Parse=MS});var Ap=P(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.Analysis=void 0;var jS=function(){function i(r,n){this.parsedObj=r,this.dependenciesMap=n,this.componentOrderKeyMap={}}return i.prototype.getComponentOrderKeyMap=function(r){var n=this;r.forEach(function(u){n.componentOrderKeyMap[u]=1})},i.prototype.calculateOrderNumber=function(r){var n=this;r.forEach(function(u){var a=n.dependenciesMap[u];Object.keys(a).forEach(function(o){n.componentOrderKeyMap[o]&&(n.componentOrderKeyMap[o]+=a[o])})})},i.prototype.getProjectOrder=function(){var r=this,n=Object.keys(this.dependenciesMap).filter(function(a){return a!=="Global"});this.getComponentOrderKeyMap(n),this.calculateOrderNumber(n);var u=Object.keys(this.componentOrderKeyMap).map(function(a){return{name:a,order:r.componentOrderKeyMap[a]}});return u.sort(function(a,o){return o.order-a.order}).map(function(a){return a.name})},i}();gs.Analysis=jS});var ms=P(St=>{"use strict";var HS=St&&St.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(St,"__esModule",{value:!0});St.version=St.Analysis=St.Parse=void 0;var US=xp();Object.defineProperty(St,"Parse",{enumerable:!0,get:function(){return US.Parse}});var GS=Ap();Object.defineProperty(St,"Analysis",{enumerable:!0,get:function(){return GS.Analysis}});var BS=ds();Object.defineProperty(St,"version",{enumerable:!0,get:function(){return HS(BS).default}})});var yu=P(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.UPDATE_CHECK_INTERVAL=ir.DEFAULT_REGIRSTRY=ir.PROCESS_ENV_TEMPLATE_NAME=void 0;ir.PROCESS_ENV_TEMPLATE_NAME="templateFile";ir.DEFAULT_REGIRSTRY="http://registry.devsapp.cn/simple";ir.UPDATE_CHECK_INTERVAL=1e3*60*60*12});var Rp=P(Ct=>{"use strict";var wu=Ct&&Ct.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},Eu=Ct&&Ct.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},bu=Ct&&Ct.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.PluginExeCute=void 0;var Wn=bu(require("fs")),Su=bu(require("path")),WS=bu(Ae()),kS=WS.default.getRootHome,vs=Su.default.join(kS(),"plugins"),VS=function(){function i(r){this.pluginConfig=r,Wn.default.existsSync(vs)||Wn.default.mkdirSync(vs);var n=this.pluginConfig.name;this.pluginPath=Su.default.join(vs,n)}return i.prototype.init=function(){return wu(this,void 0,void 0,function(){var r;return Eu(this,function(n){switch(n.label){case 0:return r=this.pluginConfig.name,this.pluginExist()?[3,2]:[4,this.downLoadPlugin(r)];case 1:n.sent(),n.label=2;case 2:return[2]}})})},i.prototype.pluginExist=function(){return Wn.default.existsSync(this.pluginPath)},i.prototype.downLoadPlugin=function(r){return wu(this,void 0,void 0,function(){var n;return Eu(this,function(u){return n=Su.default.join(vs,r),Wn.default.existsSync(n)||Wn.default.mkdirSync(n),[2]})})},i.prototype.loadPlugin=function(){return wu(this,void 0,void 0,function(){var r;return Eu(this,function(n){return r=require(this.pluginPath),[2,r]})})},i}();Ct.PluginExeCute=VS});var Tp=P(Ot=>{"use strict";var kn=Ot&&Ot.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},Vn=Ot&&Ot.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Ip=Ot&&Ot.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ot,"__esModule",{value:!0});Ot.Hook=void 0;var Pp=Ip(require("fs")),zS=Ip(require("path")),rn=zn(),XS=Rp(),YS=require("child_process").spawnSync,KS=function(){function i(r){var n=this;r===void 0&&(r=[]),this.preHooks=[],this.afterHooks=[],r.forEach(function(u){u.Pre?n.preHooks.push(u):n.afterHooks.push(u)})}return i.prototype.executePreHook=function(){return kn(this,void 0,void 0,function(){var r,n;return Vn(this,function(u){switch(u.label){case 0:if(!(this.preHooks.length>0))return[3,5];rn.logger.info("Start the pre-action"),r=0,u.label=1;case 1:return r<this.preHooks.length?(n=r,rn.logger.info("Action: "+(this.preHooks[n].Hook||this.preHooks[n].Plugin)),[4,this.executeByConfig(this.preHooks[n])]):[3,4];case 2:u.sent(),u.label=3;case 3:return r++,[3,1];case 4:rn.logger.info("End the pre-action"),u.label=5;case 5:return[2]}})})},i.prototype.executeAfterHook=function(){return kn(this,void 0,void 0,function(){var r,n;return Vn(this,function(u){switch(u.label){case 0:if(!(this.afterHooks.length>0))return[3,5];rn.logger.info("Start the after-action"),r=0,u.label=1;case 1:return r<this.afterHooks.length?(n=r,rn.logger.info("Action: "+(this.afterHooks[n].Hook||this.afterHooks[n].Plugin)),[4,this.executeByConfig(this.afterHooks[n])]):[3,4];case 2:u.sent(),u.label=3;case 3:return r++,[3,1];case 4:rn.logger.info("End the after-action"),u.label=5;case 5:return[2]}})})},i.prototype.commandExecute=function(r,n){return kn(this,void 0,void 0,function(){var u,a,o;return Vn(this,function(p){if(u=process.cwd(),a=n?zS.default.resolve(u,n):u,Pp.default.existsSync(a)&&Pp.default.lstatSync(a).isDirectory()&&(process.env["next-command-execute-flag"]="true",o=YS(r,[],{cwd:a,stdio:"inherit",shell:!0}),o&&o.status!==0))throw new Error("Action ["+r+"] run error.");return[2]})})},i.prototype.pluginExecute=function(r){return kn(this,void 0,void 0,function(){var n,u;return Vn(this,function(a){switch(a.label){case 0:return n=new XS.PluginExeCute({name:r}),[4,n.init()];case 1:return a.sent(),[4,n.loadPlugin()];case 2:return u=a.sent(),u.apply(null,[]),[2]}})})},i.prototype.executeByConfig=function(r){return kn(this,void 0,void 0,function(){return Vn(this,function(n){switch(n.label){case 0:return r.Hook?[4,this.commandExecute(r.Hook,r.Path)]:[3,2];case 1:return n.sent(),[3,4];case 2:return r.Plugin?[4,this.pluginExecute(r.Plugin)]:[3,4];case 3:n.sent(),n.label=4;case 4:return[2]}})})},i}();Ot.Hook=KS});var jp=P(We=>{"use strict";var xt=We&&We.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},At=We&&We.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Cu=We&&We.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(We,"__esModule",{value:!0});We.ComponentExeCute=We.generateSynchronizeComponentExeList=We.synchronizeExecuteComponentList=void 0;var Ou=Cu(require("fs")),Lp=Cu(require("path")),JS=yu(),xu=ms(),Au=zn(),ZS=Tp(),_s=Sr(),Xn=Cu(Ae()),QS=Xn.default.getCredential,eC=Xn.default.loadComponent,tC=Xn.default.jsyaml,Np=Xn.default.colors,Dp=Xn.default.getRootHome,qp=xu.version.getServiceConfigDetail,rC=xu.version.getServiceInputs,nC=xu.version.getServiceActions,$p=Lp.default.join(Dp(),"components");function Fp(i,r,n){return i===void 0&&(i=[]),r===void 0&&(r=0),n===void 0&&(n={}),xt(this,void 0,void 0,function(){var u=this;return At(this,function(a){switch(a.label){case 0:return r>=0&&r<i.length?[4,i[r]().then(function(o){var p=o.name,g=o.data;return xt(u,void 0,void 0,function(){return At(this,function(_){switch(_.label){case 0:return p&&(n[p]=g),[4,Fp(i,r+1,n)];case 1:return[2,_.sent()]}})})})]:[3,2];case 1:return[2,a.sent()];case 2:return[2,n]}})})}We.synchronizeExecuteComponentList=Fp;function iC(i,r){var n=this,u=i.list,a=i.parse,o=i.parsedObj,p=i.method,g=i.params;return u.map(function(_){return function(){return new Promise(function(c,v){return xt(n,void 0,void 0,function(){var b,R,I;return At(this,function(H){switch(H.label){case 0:return o.Params=g||"",Au.logger.info("Start executing project "+_),[4,r(a,_,o)];case 1:return b=H.sent(),process.env.serverless_devs_temp_access&&(b.Access=process.env.serverless_devs_temp_access,b.access=process.env.serverless_devs_temp_access),R=new Mp({componentConfig:b,method:p,version:o.edition}),[4,R.init()];case 2:return I=H.sent(),o.edition?o.services[_].output=I:o[_].Output=I,Au.logger.info("Project "+_+` successfully to execute
|
|
46
|
-
`),c({name:_,data:I}),[2]}})})})}})}We.generateSynchronizeComponentExeList=iC;var Mp=function(){function i(r){this.version="0.0.1",this.componentConfig=r.componentConfig,this.method=r.method,this.version=r.version,this.customerCommandName=r.customerCommandName,Ou.default.existsSync($p)||Ou.default.mkdirSync($p)}return i.prototype.init=function(){return xt(this,void 0,void 0,function(){var r;return At(this,function(n){switch(n.label){case 0:return r=this,[4,this.getCredentials()];case 1:return r.credentials=n.sent()||{},[4,this.startExecute()];case 2:return[2,n.sent()]}})})},i.prototype.getCredentials=function(){return xt(this,void 0,void 0,function(){var r,n,u,a,o,p,g,_;return At(this,function(c){switch(c.label){case 0:if(r=qp(this.componentConfig),n=r.access,u=r.autoCredential,u===!1)return[2,null];c.label=1;case 1:return c.trys.push([1,5,,6]),a=Lp.default.join(Dp(),"access.yaml"),o=tC.load(Ou.default.readFileSync(a,"utf8")||"{}"),o[n]?[4,QS(n)]:[3,3];case 2:return g=c.sent(),[3,4];case 3:g={},c.label=4;case 4:return p=g,this.componentConfig.access=n,[2,p];case 5:return _=c.sent(),[3,6];case 6:return[2,{}]}})})},i.prototype.loadExtends=function(){var r=nC(this.componentConfig,this.version,{method:this.method}),n=null;return r&&(n=new ZS.Hook(r)),n},i.prototype.loadPreExtends=function(r){return xt(this,void 0,void 0,function(){return At(this,function(n){switch(n.label){case 0:return r?[4,r.executePreHook()]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},i.prototype.loadAfterExtend=function(r){return xt(this,void 0,void 0,function(){return At(this,function(n){switch(n.label){case 0:return r?[4,r.executeAfterHook()]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},i.prototype.invokeMethod=function(r,n,u){return xt(this,void 0,void 0,function(){var a,o,a,p;return At(this,function(g){switch(g.label){case 0:if(!this.customerCommandName)return[3,6];if(!r[n])return[3,5];g.label=1;case 1:return g.trys.push([1,3,,5]),[4,r[n](u)];case 2:return a=g.sent(),[2,a];case 3:return o=g.sent(),[4,new _s.HandleError({error:o,prefix:"Project "+this.componentConfig.ProjectName+" failed to execute:"}).report(o)];case 4:return g.sent(),process.exit(101),[3,5];case 5:new _s.HumanError({errorMessage:"The ["+this.method+"] command was not found.",tips:"Please check the component "+this.componentConfig.component+" has the "+this.method+" method. Serverless Devs documents\uFF1A"+Np.underline("https://github.com/Serverless-Devs/Serverless-Devs/
|
|
46
|
+
`),c({name:_,data:I}),[2]}})})})}})}We.generateSynchronizeComponentExeList=iC;var Mp=function(){function i(r){this.version="0.0.1",this.componentConfig=r.componentConfig,this.method=r.method,this.version=r.version,this.customerCommandName=r.customerCommandName,Ou.default.existsSync($p)||Ou.default.mkdirSync($p)}return i.prototype.init=function(){return xt(this,void 0,void 0,function(){var r;return At(this,function(n){switch(n.label){case 0:return r=this,[4,this.getCredentials()];case 1:return r.credentials=n.sent()||{},[4,this.startExecute()];case 2:return[2,n.sent()]}})})},i.prototype.getCredentials=function(){return xt(this,void 0,void 0,function(){var r,n,u,a,o,p,g,_;return At(this,function(c){switch(c.label){case 0:if(r=qp(this.componentConfig),n=r.access,u=r.autoCredential,u===!1)return[2,null];c.label=1;case 1:return c.trys.push([1,5,,6]),a=Lp.default.join(Dp(),"access.yaml"),o=tC.load(Ou.default.readFileSync(a,"utf8")||"{}"),o[n]?[4,QS(n)]:[3,3];case 2:return g=c.sent(),[3,4];case 3:g={},c.label=4;case 4:return p=g,this.componentConfig.access=n,[2,p];case 5:return _=c.sent(),[3,6];case 6:return[2,{}]}})})},i.prototype.loadExtends=function(){var r=nC(this.componentConfig,this.version,{method:this.method}),n=null;return r&&(n=new ZS.Hook(r)),n},i.prototype.loadPreExtends=function(r){return xt(this,void 0,void 0,function(){return At(this,function(n){switch(n.label){case 0:return r?[4,r.executePreHook()]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},i.prototype.loadAfterExtend=function(r){return xt(this,void 0,void 0,function(){return At(this,function(n){switch(n.label){case 0:return r?[4,r.executeAfterHook()]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},i.prototype.invokeMethod=function(r,n,u){return xt(this,void 0,void 0,function(){var a,o,a,p;return At(this,function(g){switch(g.label){case 0:if(!this.customerCommandName)return[3,6];if(!r[n])return[3,5];g.label=1;case 1:return g.trys.push([1,3,,5]),[4,r[n](u)];case 2:return a=g.sent(),[2,a];case 3:return o=g.sent(),[4,new _s.HandleError({error:o,prefix:"Project "+this.componentConfig.ProjectName+" failed to execute:"}).report(o)];case 4:return g.sent(),process.exit(101),[3,5];case 5:new _s.HumanError({errorMessage:"The ["+this.method+"] command was not found.",tips:"Please check the component "+this.componentConfig.component+" has the "+this.method+" method. Serverless Devs documents\uFF1A"+Np.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/command")}),process.exit(100),g.label=6;case 6:if(!r[n])return[3,12];g.label=7;case 7:return g.trys.push([7,9,,11]),[4,r[n](u)];case 8:return a=g.sent(),[2,a];case 9:return p=g.sent(),[4,new _s.HandleError({error:p,prefix:"Project "+this.componentConfig.ProjectName+" failed to execute:"}).report(p)];case 10:return g.sent(),process.exit(101),[3,11];case 11:return[3,13];case 12:new _s.HumanWarning({warningMessage:"The ["+this.method+"] command was not found.",tips:"Please check the component "+this.componentConfig.component+" has the "+this.method+" method, Serverless Devs documents\uFF1A"+Np.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/command")}),g.label=13;case 13:return[2]}})})},i.prototype.executeCommand=function(){return xt(this,void 0,void 0,function(){var r,n,u,a,o;return At(this,function(p){switch(p.label){case 0:return r=rC(this.componentConfig,this.version,{method:this.method,credentials:this.credentials}),n=qp(this.componentConfig).name,u=Au.configSet.getConfig("registry")||JS.DEFAULT_REGIRSTRY,[4,eC(n,u)];case 1:return a=p.sent(),[4,this.invokeMethod(a,this.method,r)];case 2:return o=p.sent(),[2,o]}})})},i.prototype.startExecute=function(){return xt(this,void 0,void 0,function(){var r,n,u,a,o;return At(this,function(p){switch(p.label){case 0:return r={},n=process.env.temp_params||"",u=n.includes("--help")||n.includes("-h"),process.env["skip-actions"]==="true"||u?(o=null,[3,3]):[3,1];case 1:return[4,this.loadExtends()];case 2:o=p.sent(),p.label=3;case 3:return a=o,[4,this.loadPreExtends(a)];case 4:return p.sent(),[4,this.executeCommand()];case 5:return r=p.sent(),[4,this.loadAfterExtend(a)];case 6:return p.sent(),[2,r]}})})},i}();We.ComponentExeCute=Mp});var Wp=P(Rt=>{"use strict";var Hp=Rt&&Rt.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},Up=Rt&&Rt.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},sC=Rt&&Rt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.CommandManager=void 0;var Gp=ms(),oC=ds(),Yn=zn(),Ru=jp(),nn=Gt(),uC=sC(Ae()),Bp=uC.default.colors,aC=Sr(),lC=function(){function i(r,n,u,a){this.templateFile=r,this.method=n,this.customerCommandName=u,this.deployParams=a}return i.prototype.assemblyProjectConfig=function(r,n,u){return Hp(this,void 0,void 0,function(){var a,o;return Up(this,function(p){switch(p.label){case 0:return[4,r.getRealVariables(u)];case 1:return a=p.sent(),o=(0,oC.getServiceConfig)(a,n),o.appName=a.name,o.ProjectName=n,this.deployParams&&(o.params=this.deployParams),[2,o]}})})},i.prototype.init=function(){return Hp(this,void 0,void 0,function(){var r,n,u,a,o,p,g,_,c,v,b,R,I,b,H,te,ue;return Up(this,function(Y){switch(Y.label){case 0:return Y.trys.push([0,9,,11]),Yn.logger.info("Start ..."),r=(0,nn.checkTemplateFile)(this.templateFile),r?(n={},u=new Gp.Parse(r),a=u.getOriginalParsedObj(),[4,u.getRealVariables(a)]):[3,7];case 1:return o=Y.sent(),p=new Gp.Analysis(o,u.dependenciesMap),g=p.getProjectOrder(),this.customerCommandName||g.length===1?(_=g[0],[4,this.assemblyProjectConfig(u,this.customerCommandName||_,a)]):[3,4];case 2:return c=Y.sent(),process.env.serverless_devs_temp_access&&(c.Access=process.env.serverless_devs_temp_access,c.access=process.env.serverless_devs_temp_access),v=new Ru.ComponentExeCute({componentConfig:c,method:this.method,version:a.edition,customerCommandName:this.customerCommandName}),[4,v.init()];case 3:return b=Y.sent(),b&&(n[c.ProjectName]=b),[3,6];case 4:return R=this.deployParams||"",Yn.logger.info("It is detected that your project has the following projects < "+g.join(",")+" > to be execute"),I=(0,Ru.generateSynchronizeComponentExeList)({list:g,parse:u,parsedObj:a,method:this.method,params:R},this.assemblyProjectConfig.bind(this)),[4,(0,Ru.synchronizeExecuteComponentList)(I)];case 5:b=Y.sent();for(H in b)g.includes(H)&&b[H]&&(n[H]=b[H]);Y.label=6;case 6:return te=JSON.parse(JSON.stringify(n)),Object.keys(n).length===0?Yn.logger.success("End of method: "+this.method):Yn.logger.output(te),[3,8];case 7:Yn.logger.error(`Failed to execute:
|
|
47
47
|
|
|
48
48
|
`+(0,nn.emoji)("\u274C")+" Message: Cannot find s.yaml / s.yml / template.yaml / template.yml file, please check the directory "+this.templateFile+`
|
|
49
49
|
`+(0,nn.emoji)("\u{1F9ED}")+` If you want to use Serverless Devs, you should have a s.yaml or use [s cli] command.
|
|
@@ -65,6 +65,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
65
65
|
`+(0,Es.emoji)("\u{1F9ED}")+" You can get help for this component by [s cli "+u+` -h]
|
|
66
66
|
`+(0,Es.emoji)("\u{1F608}")+" If you have questions, please tell us: "+BC.underline("https://github.com/Serverless-Devs/Serverless-Devs/issues")+`
|
|
67
67
|
`),process.exit(1),K.label=20;case 20:return[3,23];case 21:return ve=K.sent(),[4,new ad.HandleError({error:ve,prefix:"Failed to execute:"}).report(ve)];case 22:return K.sent(),process.exit(1),[3,23];case 23:return[2,r]}})})},i}();kt.default=kC});"use strict";var VC=exports&&exports.__createBinding||(Object.create?function(i,r,n,u){u===void 0&&(u=n),Object.defineProperty(i,u,{enumerable:!0,get:function(){return r[n]}})}:function(i,r,n,u){u===void 0&&(u=n),i[u]=r[n]}),zC=exports&&exports.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),XC=exports&&exports.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var n in i)n!=="default"&&Object.prototype.hasOwnProperty.call(i,n)&&VC(r,i,n);return zC(r,i),r},YC=exports&&exports.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(p){p(o)})}return new(n||(n=Promise))(function(o,p){function g(v){try{c(u.next(v))}catch(b){p(b)}}function _(v){try{c(u.throw(v))}catch(b){p(b)}}function c(v){v.done?o(v.value):a(v.value).then(g,_)}c((u=u.apply(i,r||[])).next())})},KC=exports&&exports.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,p;return p={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function g(c){return function(v){return _([c,v])}}function _(c){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=c[0]&2?a.return:c[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,c[1])).done)return o;switch(a=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,a=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1],o=c;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(c);break}o[2]&&n.ops.pop(),n.trys.pop();continue}c=r.call(i,n)}catch(v){c=[6,v],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},cd=exports&&exports.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(exports,"__esModule",{value:!0});var sn=XC(Xo()),JC=Sr(),ZC=cd(ld()),QC=cd(Ae()),eO=Gt(),tO=QC.default.colors,rO=`Directly use serverless devs to use components, develop and manage applications without yaml configuration.
|
|
68
|
+
|
|
68
69
|
Example:
|
|
69
70
|
$ s cli fc-api listServices
|
|
70
71
|
$ s cli fc-api listFunctions --service-name my-service
|