@serverless-devs/s 2.0.95 → 2.0.96
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/docs/readme.md +8 -2
- package/docs/zh/command/component.md +0 -1
- package/docs/zh/command/config.md +6 -10
- package/docs/zh/command/init.md +15 -14
- package/docs/zh/command/set.md +4 -4
- package/docs/zh/readme.md +4 -2
- package/docs/zh/tool.md +23 -2
- package/docs/zh/yaml.md +1 -1
- package/lib/clean/index.js +1 -1
- package/lib/cli/index.js +1 -1
- package/lib/component/index.js +1 -1
- package/lib/config/add/index.js +1 -1
- package/lib/config/delete/index.js +1 -1
- package/lib/config/get/index.js +1 -1
- package/lib/config/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/init/index.js +1 -1
- package/lib/set/analysis/index.js +1 -1
- package/lib/set/index.js +1 -1
- package/lib/set/locale/index.js +1 -1
- package/lib/set/registry/index.js +1 -1
- package/lib/set/workspace/index.js +1 -1
- package/lib/update-notifier/index.js +1 -1
- package/package.json +1 -1
- package/readme.md +8 -3
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 B=xc(function(){return Q(d,q+"return "+A).apply(i,m)});if(B.source=A,$o(B))throw B;return B}function yy(e){return te(e).toLowerCase()}function Ey(e){return te(e).toUpperCase()}function wy(e,t,s){if(e=te(e),e&&(s||t===i))return qa(e);if(!e||!(t=ze(t)))return e;var l=ht(e),f=ht(t),d=$a(l,f),m=Fa(l,f)+1;return tr(l,d,m).join("")}function by(e,t,s){if(e=te(e),e&&(s||t===i))return e.slice(0,Ma(e)+1);if(!e||!(t=ze(t)))return e;var l=ht(e),f=Fa(l,ht(t))+1;return tr(l,0,f).join("")}function Sy(e,t,s){if(e=te(e),e&&(s||t===i))return e.replace(qs,"");if(!e||!(t=ze(t)))return e;var l=ht(e),f=$a(l,ht(t));return tr(l,f).join("")}function Cy(e,t){var s=Rt,l=_d;if(fe(t)){var f="separator"in t?t.separator:f;s="length"in t?W(t.length):s,l="omission"in t?ze(t.omission):l}e=te(e);var d=e.length;if(qr(e)){var m=ht(e);d=m.length}if(s>=d)return e;var y=s-$r(l);if(y<1)return l;var w=m?tr(m,0,y).join(""):e.slice(0,y);if(f===i)return w+l;if(m&&(y+=w.length-y),Fo(f)){if(e.slice(y).search(f)){var O,x=w;for(f.global||(f=Zs(f.source,te(na.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var A=O.index;w=w.slice(0,A===i?y:A)}}else if(e.indexOf(ze(f),y)!=y){var T=w.lastIndexOf(f);T>-1&&(w=w.slice(0,T))}return w+l}function Oy(e){return e=te(e),e&&$d.test(e)?e.replace(ea,em):e}var xy=Gr(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),Ho=Al("toUpperCase");function Oc(e,t,s){return e=te(e),t=s?i:t,t===i?Yg(e)?nm(e):Hg(e):e.match(t)||[]}var xc=V(function(e,t){try{return ke(e,i,t)}catch(s){return $o(s)?s:new M(s)}}),Ay=qt(function(e,t){return et(t,function(s){s=Et(s),Nt(e,s,Do(e[s],e))}),e});function Iy(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 Ry(e){return ev(nt(e,c))}function Uo(e){return function(){return e}}function Py(e,t){return e==null||e!==e?t:e}var Ty=Rl(),Ly=Rl(!0);function We(e){return e}function Go(e){return sl(typeof e=="function"?e:nt(e,c))}function Ny(e){return ul(nt(e,c))}function Dy(e,t){return al(e,nt(t,c))}var qy=V(function(e,t){return function(s){return Cn(s,e,t)}}),$y=V(function(e,t){return function(s){return Cn(e,s,t)}});function Wo(e,t,s){var l=be(t),f=Ri(t,l);s==null&&!(fe(t)&&(f.length||!l.length))&&(s=t,t=e,e=this,f=Ri(t,be(t)));var d=!(fe(s)&&"chain"in s)||!!s.chain,m=Ft(e);return et(f,function(y){var w=t[y];e[y]=w,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:w,args:arguments,thisArg:e}),x.__chain__=O,x}return w.apply(e,Xt([this.value()],arguments))})}),e}function Fy(){return we._===this&&(we._=lm),this}function Bo(){}function jy(e){return e=W(e),V(function(t){return ll(t,e)})}var My=wo(ce),Hy=wo(Pa),Uy=wo(ks);function Ac(e){return Io(e)?Vs(Et(e)):vv(e)}function Gy(e){return function(t){return e==null?i:pr(e,t)}}var Wy=Tl(),By=Tl(!0);function ko(){return[]}function Vo(){return!1}function ky(){return{}}function Vy(){return""}function zy(){return!0}function Xy(e,t){if(e=W(e),e<1||e>Vt)return[];var s=vt,l=Re(e,vt);t=$(t),e-=vt;for(var f=Ys(l,t);++s<e;)t(s);return f}function Yy(e){return U(e)?ce(e,Et):Xe(e)?[e]:He(zl(te(e)))}function Ky(e){var t=++um;return te(e)+t}var Jy=qi(function(e,t){return e+t},0),Zy=bo("ceil"),Qy=qi(function(e,t){return e/t},1),eE=bo("floor");function tE(e){return e&&e.length?Ii(e,We,oo):i}function rE(e,t){return e&&e.length?Ii(e,$(t,2),oo):i}function nE(e){return Na(e,We)}function iE(e,t){return Na(e,$(t,2))}function sE(e){return e&&e.length?Ii(e,We,co):i}function oE(e,t){return e&&e.length?Ii(e,$(t,2),co):i}var uE=qi(function(e,t){return e*t},1),aE=bo("round"),lE=qi(function(e,t){return e-t},0);function cE(e){return e&&e.length?Xs(e,We):0}function fE(e,t){return e&&e.length?Xs(e,$(t,2)):0}return h.after=N0,h.ary=ic,h.assign=E1,h.assignIn=_c,h.assignInWith=Xi,h.assignWith=w1,h.at=b1,h.before=sc,h.bind=Do,h.bindAll=Ay,h.bindKey=oc,h.castArray=k0,h.chain=tc,h.chunk=e_,h.compact=t_,h.concat=r_,h.cond=Iy,h.conforms=Ry,h.constant=Uo,h.countBy=c0,h.create=S1,h.curry=uc,h.curryRight=ac,h.debounce=lc,h.defaults=C1,h.defaultsDeep=O1,h.defer=D0,h.delay=q0,h.difference=n_,h.differenceBy=i_,h.differenceWith=s_,h.drop=o_,h.dropRight=u_,h.dropRightWhile=a_,h.dropWhile=l_,h.fill=c_,h.filter=h0,h.flatMap=g0,h.flatMapDeep=m0,h.flatMapDepth=v0,h.flatten=Jl,h.flattenDeep=f_,h.flattenDepth=h_,h.flip=$0,h.flow=Ty,h.flowRight=Ly,h.fromPairs=p_,h.functions=L1,h.functionsIn=N1,h.groupBy=_0,h.initial=g_,h.intersection=m_,h.intersectionBy=v_,h.intersectionWith=__,h.invert=q1,h.invertBy=$1,h.invokeMap=E0,h.iteratee=Go,h.keyBy=w0,h.keys=be,h.keysIn=Ge,h.map=Gi,h.mapKeys=j1,h.mapValues=M1,h.matches=Ny,h.matchesProperty=Dy,h.memoize=Bi,h.merge=H1,h.mergeWith=yc,h.method=qy,h.methodOf=$y,h.mixin=Wo,h.negate=ki,h.nthArg=jy,h.omit=U1,h.omitBy=G1,h.once=F0,h.orderBy=b0,h.over=My,h.overArgs=j0,h.overEvery=Hy,h.overSome=Uy,h.partial=qo,h.partialRight=cc,h.partition=S0,h.pick=W1,h.pickBy=Ec,h.property=Ac,h.propertyOf=Gy,h.pull=b_,h.pullAll=Ql,h.pullAllBy=S_,h.pullAllWith=C_,h.pullAt=O_,h.range=Wy,h.rangeRight=By,h.rearg=M0,h.reject=x0,h.remove=x_,h.rest=H0,h.reverse=Lo,h.sampleSize=I0,h.set=k1,h.setWith=V1,h.shuffle=R0,h.slice=A_,h.sortBy=L0,h.sortedUniq=D_,h.sortedUniqBy=q_,h.split=gy,h.spread=U0,h.tail=$_,h.take=F_,h.takeRight=j_,h.takeRightWhile=M_,h.takeWhile=H_,h.tap=t0,h.throttle=G0,h.thru=Ui,h.toArray=gc,h.toPairs=wc,h.toPairsIn=bc,h.toPath=Yy,h.toPlainObject=vc,h.transform=z1,h.unary=W0,h.union=U_,h.unionBy=G_,h.unionWith=W_,h.uniq=B_,h.uniqBy=k_,h.uniqWith=V_,h.unset=X1,h.unzip=No,h.unzipWith=ec,h.update=Y1,h.updateWith=K1,h.values=kr,h.valuesIn=J1,h.without=z_,h.words=Oc,h.wrap=B0,h.xor=X_,h.xorBy=Y_,h.xorWith=K_,h.zip=J_,h.zipObject=Z_,h.zipObjectDeep=Q_,h.zipWith=e0,h.entries=wc,h.entriesIn=bc,h.extend=_c,h.extendWith=Xi,Wo(h,h),h.add=Jy,h.attempt=xc,h.camelCase=ty,h.capitalize=Sc,h.ceil=Zy,h.clamp=Z1,h.clone=V0,h.cloneDeep=X0,h.cloneDeepWith=Y0,h.cloneWith=z0,h.conformsTo=K0,h.deburr=Cc,h.defaultTo=Py,h.divide=Qy,h.endsWith=ry,h.eq=dt,h.escape=ny,h.escapeRegExp=iy,h.every=f0,h.find=p0,h.findIndex=Yl,h.findKey=x1,h.findLast=d0,h.findLastIndex=Kl,h.findLastKey=A1,h.floor=eE,h.forEach=rc,h.forEachRight=nc,h.forIn=I1,h.forInRight=R1,h.forOwn=P1,h.forOwnRight=T1,h.get=jo,h.gt=J0,h.gte=Z0,h.has=D1,h.hasIn=Mo,h.head=Zl,h.identity=We,h.includes=y0,h.indexOf=d_,h.inRange=Q1,h.invoke=F1,h.isArguments=mr,h.isArray=U,h.isArrayBuffer=Q0,h.isArrayLike=Ue,h.isArrayLikeObject=de,h.isBoolean=e1,h.isBuffer=rr,h.isDate=t1,h.isElement=r1,h.isEmpty=n1,h.isEqual=i1,h.isEqualWith=s1,h.isError=$o,h.isFinite=o1,h.isFunction=Ft,h.isInteger=fc,h.isLength=Vi,h.isMap=hc,h.isMatch=u1,h.isMatchWith=a1,h.isNaN=l1,h.isNative=c1,h.isNil=h1,h.isNull=f1,h.isNumber=pc,h.isObject=fe,h.isObjectLike=he,h.isPlainObject=Pn,h.isRegExp=Fo,h.isSafeInteger=p1,h.isSet=dc,h.isString=zi,h.isSymbol=Xe,h.isTypedArray=Br,h.isUndefined=d1,h.isWeakMap=g1,h.isWeakSet=m1,h.join=y_,h.kebabCase=sy,h.last=st,h.lastIndexOf=E_,h.lowerCase=oy,h.lowerFirst=uy,h.lt=v1,h.lte=_1,h.max=tE,h.maxBy=rE,h.mean=nE,h.meanBy=iE,h.min=sE,h.minBy=oE,h.stubArray=ko,h.stubFalse=Vo,h.stubObject=ky,h.stubString=Vy,h.stubTrue=zy,h.multiply=uE,h.nth=w_,h.noConflict=Fy,h.noop=Bo,h.now=Wi,h.pad=ay,h.padEnd=ly,h.padStart=cy,h.parseInt=fy,h.random=ey,h.reduce=C0,h.reduceRight=O0,h.repeat=hy,h.replace=py,h.result=B1,h.round=aE,h.runInContext=E,h.sample=A0,h.size=P0,h.snakeCase=dy,h.some=T0,h.sortedIndex=I_,h.sortedIndexBy=R_,h.sortedIndexOf=P_,h.sortedLastIndex=T_,h.sortedLastIndexBy=L_,h.sortedLastIndexOf=N_,h.startCase=my,h.startsWith=vy,h.subtract=lE,h.sum=cE,h.sumBy=fE,h.template=_y,h.times=Xy,h.toFinite=jt,h.toInteger=W,h.toLength=mc,h.toLower=yy,h.toNumber=ot,h.toSafeInteger=y1,h.toString=te,h.toUpper=Ey,h.trim=wy,h.trimEnd=by,h.trimStart=Sy,h.truncate=Cy,h.unescape=Oy,h.uniqueId=Ky,h.upperCase=xy,h.upperFirst=Ho,h.each=rc,h.eachRight=nc,h.first=Zl,Wo(h,function(){var e={};return _t(h,function(t,s){ne.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){Y.prototype[e]=function(s){s=s===i?1:Ee(W(s),0);var l=this.__filtered__&&!t?new Y(this):this.clone();return l.__filtered__?l.__takeCount__=Re(s,l.__takeCount__):l.__views__.push({size:Re(s,vt),type:e+(l.__dir__<0?"Right":"")}),l},Y.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),et(["filter","map","takeWhile"],function(e,t){var s=t+1,l=s==Ju||s==bd;Y.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":"");Y.prototype[e]=function(){return this[s](1).value()[0]}}),et(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[s](1)}}),Y.prototype.compact=function(){return this.filter(We)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=V(function(e,t){return typeof e=="function"?new Y(this):this.map(function(s){return Cn(s,e,t)})}),Y.prototype.reject=function(e){return this.filter(ki($(e)))},Y.prototype.slice=function(e,t){e=W(e);var s=this;return s.__filtered__&&(e>0||t<0)?new Y(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==i&&(t=W(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(vt)},_t(Y.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,w=m instanceof Y,O=y[0],x=w||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&&(w=x=!1);var T=this.__chain__,q=!!this.__actions__.length,F=d&&!T,B=w&&!q;if(!d&&x){m=B?m:new Y(this);var j=e.apply(m,y);return j.__actions__.push({func:Ui,args:[A],thisArg:i}),new rt(j,T)}return F&&B?e.apply(this,y):(j=this.thru(A),F?l?j.value()[0]:j.value():j)})}),et(["pop","push","shift","sort","splice","unshift"],function(e){var t=pi[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(Y.prototype,function(e,t){var s=h[t];if(s){var l=s.name+"";ne.call(Mr,l)||(Mr[l]=[]),Mr[l].push({name:t,func:s})}}),Mr[Di(i,re).name]=[{name:"wrapper",func:i}],Y.prototype.clone=Om,Y.prototype.reverse=xm,Y.prototype.value=Am,h.prototype.at=r0,h.prototype.chain=n0,h.prototype.commit=i0,h.prototype.next=s0,h.prototype.plant=u0,h.prototype.reverse=a0,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=l0,h.prototype.first=h.prototype.head,vn&&(h.prototype[vn]=o0),h},Kt=im();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(we._=Kt,define(function(){return Kt})):ar?((ar.exports=Kt)._=Kt,Us._=Kt):we._=Kt}).call(Vr)});var Dn=R((bO,$c)=>{var dE="2.0.0",gE=256,mE=Number.MAX_SAFE_INTEGER||9007199254740991,vE=16;$c.exports={SEMVER_SPEC_VERSION:dE,MAX_LENGTH:gE,MAX_SAFE_INTEGER:mE,MAX_SAFE_COMPONENT_LENGTH:vE}});var qn=R((SO,Fc)=>{var _E=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Fc.exports=_E});var yr=R((nr,jc)=>{var{MAX_SAFE_COMPONENT_LENGTH:Jo}=Dn(),yE=qn();nr=jc.exports={};var EE=nr.re=[],N=nr.src=[],D=nr.t={},wE=0,k=(i,r,n)=>{let u=wE++;yE(u,r),D[i]=u,N[u]=r,EE[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,${Jo}})(?:\\.(\\d{1,${Jo}}))?(?:\\.(\\d{1,${Jo}}))?(?:$|[^\\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 $n=R((CO,Mc)=>{var bE=["includePrerelease","loose","rtl"],SE=i=>i?typeof i!="object"?{loose:!0}:bE.filter(r=>i[r]).reduce((r,n)=>(r[n]=!0,r),{}):{};Mc.exports=SE});var Ki=R((OO,Gc)=>{var Hc=/^[0-9]+$/,Uc=(i,r)=>{let n=Hc.test(i),u=Hc.test(r);return n&&u&&(i=+i,r=+r),i===r?0:n&&!u?-1:u&&!n?1:i<r?-1:1},CE=(i,r)=>Uc(r,i);Gc.exports={compareIdentifiers:Uc,rcompareIdentifiers:CE}});var Te=R((xO,Vc)=>{var Ji=qn(),{MAX_LENGTH:Wc,MAX_SAFE_INTEGER:Zi}=Dn(),{re:Bc,t:kc}=yr(),OE=$n(),{compareIdentifiers:Fn}=Ki(),ut=class{constructor(r,n){if(n=OE(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>Wc)throw new TypeError(`version is longer than ${Wc} characters`);Ji("SemVer",r,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let u=r.trim().match(n.loose?Bc[kc.LOOSE]:Bc[kc.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>Zi||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Zi||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Zi||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<Zi)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(Ji("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)),Fn(this.major,r.major)||Fn(this.minor,r.minor)||Fn(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(Ji("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 Fn(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(Ji("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 Fn(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}};Vc.exports=ut});var Er=R((AO,Kc)=>{var{MAX_LENGTH:xE}=Dn(),{re:zc,t:Xc}=yr(),Yc=Te(),AE=$n(),IE=(i,r)=>{if(r=AE(r),i instanceof Yc)return i;if(typeof i!="string"||i.length>xE||!(r.loose?zc[Xc.LOOSE]:zc[Xc.FULL]).test(i))return null;try{return new Yc(i,r)}catch{return null}};Kc.exports=IE});var Zc=R((IO,Jc)=>{var RE=Er(),PE=(i,r)=>{let n=RE(i,r);return n?n.version:null};Jc.exports=PE});var ef=R((RO,Qc)=>{var TE=Er(),LE=(i,r)=>{let n=TE(i.trim().replace(/^[=v]+/,""),r);return n?n.version:null};Qc.exports=LE});var rf=R((PO,tf)=>{var NE=Te(),DE=(i,r,n,u)=>{typeof n=="string"&&(u=n,n=void 0);try{return new NE(i,n).inc(r,u).version}catch{return null}};tf.exports=DE});var at=R((TO,sf)=>{var nf=Te(),qE=(i,r,n)=>new nf(i,n).compare(new nf(r,n));sf.exports=qE});var Qi=R((LO,of)=>{var $E=at(),FE=(i,r,n)=>$E(i,r,n)===0;of.exports=FE});var lf=R((NO,af)=>{var uf=Er(),jE=Qi(),ME=(i,r)=>{if(jE(i,r))return null;{let n=uf(i),u=uf(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}};af.exports=ME});var ff=R((DO,cf)=>{var HE=Te(),UE=(i,r)=>new HE(i,r).major;cf.exports=UE});var pf=R((qO,hf)=>{var GE=Te(),WE=(i,r)=>new GE(i,r).minor;hf.exports=WE});var gf=R(($O,df)=>{var BE=Te(),kE=(i,r)=>new BE(i,r).patch;df.exports=kE});var vf=R((FO,mf)=>{var VE=Er(),zE=(i,r)=>{let n=VE(i,r);return n&&n.prerelease.length?n.prerelease:null};mf.exports=zE});var yf=R((jO,_f)=>{var XE=at(),YE=(i,r,n)=>XE(r,i,n);_f.exports=YE});var wf=R((MO,Ef)=>{var KE=at(),JE=(i,r)=>KE(i,r,!0);Ef.exports=JE});var es=R((HO,Sf)=>{var bf=Te(),ZE=(i,r,n)=>{let u=new bf(i,n),a=new bf(r,n);return u.compare(a)||u.compareBuild(a)};Sf.exports=ZE});var Of=R((UO,Cf)=>{var QE=es(),ew=(i,r)=>i.sort((n,u)=>QE(n,u,r));Cf.exports=ew});var Af=R((GO,xf)=>{var tw=es(),rw=(i,r)=>i.sort((n,u)=>tw(u,n,r));xf.exports=rw});var jn=R((WO,If)=>{var nw=at(),iw=(i,r,n)=>nw(i,r,n)>0;If.exports=iw});var ts=R((BO,Rf)=>{var sw=at(),ow=(i,r,n)=>sw(i,r,n)<0;Rf.exports=ow});var Zo=R((kO,Pf)=>{var uw=at(),aw=(i,r,n)=>uw(i,r,n)!==0;Pf.exports=aw});var rs=R((VO,Tf)=>{var lw=at(),cw=(i,r,n)=>lw(i,r,n)>=0;Tf.exports=cw});var ns=R((zO,Lf)=>{var fw=at(),hw=(i,r,n)=>fw(i,r,n)<=0;Lf.exports=hw});var Qo=R((XO,Nf)=>{var pw=Qi(),dw=Zo(),gw=jn(),mw=rs(),vw=ts(),_w=ns(),yw=(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 pw(i,n,u);case"!=":return dw(i,n,u);case">":return gw(i,n,u);case">=":return mw(i,n,u);case"<":return vw(i,n,u);case"<=":return _w(i,n,u);default:throw new TypeError(`Invalid operator: ${r}`)}};Nf.exports=yw});var qf=R((YO,Df)=>{var Ew=Te(),ww=Er(),{re:is,t:ss}=yr(),bw=(i,r)=>{if(i instanceof Ew)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(is[ss.COERCE]);else{let u;for(;(u=is[ss.COERCERTL].exec(i))&&(!n||n.index+n[0].length!==i.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),is[ss.COERCERTL].lastIndex=u.index+u[1].length+u[2].length;is[ss.COERCERTL].lastIndex=-1}return n===null?null:ww(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,r)};Df.exports=bw});var Ff=R((KO,$f)=>{"use strict";$f.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var Mf=R((JO,jf)=>{"use strict";jf.exports=Z;Z.Node=wr;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++)Cw(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)Ow(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=Sw(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 Sw(i,r,n){var u=r===i.head?new wr(n,null,r,i):new wr(n,r,r.next,i);return u.next===null&&(i.tail=u),u.prev===null&&(i.head=u),i.length++,u}function Cw(i,r){i.tail=new wr(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function Ow(i,r){i.head=new wr(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function wr(i,r,n,u){if(!(this instanceof wr))return new wr(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{Ff()(Z)}catch{}});var Vf=R((ZO,kf)=>{"use strict";var xw=Mf(),br=Symbol("max"),Ht=Symbol("length"),Xr=Symbol("lengthCalculator"),Mn=Symbol("allowStale"),Sr=Symbol("maxAge"),Ut=Symbol("dispose"),Hf=Symbol("noDisposeOnSet"),Se=Symbol("lruList"),mt=Symbol("cache"),Uf=Symbol("updateAgeOnGet"),eu=()=>1,Gf=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[br]=r.max||1/0,u=r.length||eu;if(this[Xr]=typeof u!="function"?eu:u,this[Mn]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[Sr]=r.maxAge||0,this[Ut]=r.dispose,this[Hf]=r.noDisposeOnSet||!1,this[Uf]=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[br]=r||1/0,Hn(this)}get max(){return this[br]}set allowStale(r){this[Mn]=!!r}get allowStale(){return this[Mn]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[Sr]=r,Hn(this)}get maxAge(){return this[Sr]}set lengthCalculator(r){typeof r!="function"&&(r=eu),r!==this[Xr]&&(this[Xr]=r,this[Ht]=0,this[Se].forEach(n=>{n.length=this[Xr](n.value,n.key),this[Ht]+=n.length})),Hn(this)}get lengthCalculator(){return this[Xr]}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;Bf(this,r,u,n),u=a}}forEach(r,n){n=n||this;for(let u=this[Se].head;u!==null;){let a=u.next;Bf(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 xw,this[Ht]=0}dump(){return this[Se].map(r=>os(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[Sr],u&&typeof u!="number")throw new TypeError("maxAge must be a number");let a=u?Date.now():0,o=this[Xr](n,r);if(this[mt].has(r)){if(o>this[br])return Yr(this,this[mt].get(r)),!1;let v=this[mt].get(r).value;return this[Ut]&&(this[Hf]||this[Ut](r,v.value)),v.now=a,v.maxAge=u,v.value=n,this[Ht]+=o-v.length,v.length=o,this.get(r),Hn(this),!0}let p=new Wf(r,n,o,a,u);return p.length>this[br]?(this[Ut]&&this[Ut](r,n),!1):(this[Ht]+=p.length,this[Se].unshift(p),this[mt].set(r,this[Se].head),Hn(this),!0)}has(r){if(!this[mt].has(r))return!1;let n=this[mt].get(r).value;return!os(this,n)}get(r){return tu(this,r,!0)}peek(r){return tu(this,r,!1)}pop(){let r=this[Se].tail;return r?(Yr(this,r),r.value):null}del(r){Yr(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)=>tu(this,n,!1))}},tu=(i,r,n)=>{let u=i[mt].get(r);if(u){let a=u.value;if(os(i,a)){if(Yr(i,u),!i[Mn])return}else n&&(i[Uf]&&(u.value.now=Date.now()),i[Se].unshiftNode(u));return a.value}},os=(i,r)=>{if(!r||!r.maxAge&&!i[Sr])return!1;let n=Date.now()-r.now;return r.maxAge?n>r.maxAge:i[Sr]&&n>i[Sr]},Hn=i=>{if(i[Ht]>i[br])for(let r=i[Se].tail;i[Ht]>i[br]&&r!==null;){let n=r.prev;Yr(i,r),r=n}},Yr=(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)}},Wf=class{constructor(r,n,u,a,o){this.key=r,this.value=n,this.length=u,this.now=a,this.maxAge=o||0}},Bf=(i,r,n,u)=>{let a=n.value;os(i,a)&&(Yr(i,n),i[Mn]||(a=void 0)),a&&r.call(u,a.value,a.key,i)};kf.exports=Gf});var lt=R((QO,Kf)=>{var Kr=class{constructor(r,n){if(n=Iw(n),r instanceof Kr)return r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease?r:new Kr(r.raw,n);if(r instanceof ru)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=>!Xf(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&&Nw(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=zf.get(u);if(a)return a;let o=this.options.loose,p=o?Le[xe.HYPHENRANGELOOSE]:Le[xe.HYPHENRANGE];r=r.replace(p,Ww(this.options.includePrerelease)),me("hyphen replace",r),r=r.replace(Le[xe.COMPARATORTRIM],Pw),me("comparator trim",r,Le[xe.COMPARATORTRIM]),r=r.replace(Le[xe.TILDETRIM],Tw),r=r.replace(Le[xe.CARETTRIM],Lw),r=r.split(/\s+/).join(" ");let g=o?Le[xe.COMPARATORLOOSE]:Le[xe.COMPARATOR],v=r.split(" ").map(I=>Dw(I,this.options)).join(" ").split(/\s+/).map(I=>Gw(I,this.options)).filter(this.options.loose?I=>!!I.match(g):()=>!0).map(I=>new ru(I,this.options)),c=v.length,_=new Map;for(let I of v){if(Xf(I))return[I];_.set(I.value,I)}_.size>1&&_.has("")&&_.delete("");let b=[..._.values()];return zf.set(u,b),b}intersects(r,n){if(!(r instanceof Kr))throw new TypeError("a Range is required");return this.set.some(u=>Yf(u,n)&&r.set.some(a=>Yf(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 Rw(r,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(Bw(this.set[n],r,this.options))return!0;return!1}};Kf.exports=Kr;var Aw=Vf(),zf=new Aw({max:1e3}),Iw=$n(),ru=Un(),me=qn(),Rw=Te(),{re:Le,t:xe,comparatorTrimReplace:Pw,tildeTrimReplace:Tw,caretTrimReplace:Lw}=yr(),Xf=i=>i.value==="<0.0.0-0",Nw=i=>i.value==="",Yf=(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},Dw=(i,r)=>(me("comp",i,r),i=Fw(i,r),me("caret",i),i=qw(i,r),me("tildes",i),i=Mw(i,r),me("xrange",i),i=Uw(i,r),me("stars",i),i),Fe=i=>!i||i.toLowerCase()==="x"||i==="*",qw=(i,r)=>i.trim().split(/\s+/).map(n=>$w(n,r)).join(" "),$w=(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 v;return Fe(a)?v="":Fe(o)?v=`>=${a}.0.0 <${+a+1}.0.0-0`:Fe(p)?v=`>=${a}.${o}.0 <${a}.${+o+1}.0-0`:g?(me("replaceTilde pr",g),v=`>=${a}.${o}.${p}-${g} <${a}.${+o+1}.0-0`):v=`>=${a}.${o}.${p} <${a}.${+o+1}.0-0`,me("tilde return",v),v})},Fw=(i,r)=>i.trim().split(/\s+/).map(n=>jw(n,r)).join(" "),jw=(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,v)=>{me("caret",i,a,o,p,g,v);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`:v?(me("replaceCaret pr",v),o==="0"?p==="0"?c=`>=${o}.${p}.${g}-${v} <${o}.${p}.${+g+1}-0`:c=`>=${o}.${p}.${g}-${v} <${o}.${+p+1}.0-0`:c=`>=${o}.${p}.${g}-${v} <${+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})},Mw=(i,r)=>(me("replaceXRanges",i,r),i.split(/\s+/).map(n=>Hw(n,r)).join(" ")),Hw=(i,r)=>{i=i.trim();let n=r.loose?Le[xe.XRANGELOOSE]:Le[xe.XRANGE];return i.replace(n,(u,a,o,p,g,v)=>{me("xRange",i,u,a,o,p,g,v);let c=Fe(o),_=c||Fe(p),b=_||Fe(g),I=b;return a==="="&&I&&(a=""),v=r.includePrerelease?"-0":"",c?a===">"||a==="<"?u="<0.0.0-0":u="*":a&&I?(_&&(p=0),g=0,a===">"?(a=">=",_?(o=+o+1,p=0,g=0):(p=+p+1,g=0)):a==="<="&&(a="<",_?o=+o+1:p=+p+1),a==="<"&&(v="-0"),u=`${a+o}.${p}.${g}${v}`):_?u=`>=${o}.0.0${v} <${+o+1}.0.0-0`:b&&(u=`>=${o}.${p}.0${v} <${o}.${+p+1}.0-0`),me("xRange return",u),u})},Uw=(i,r)=>(me("replaceStars",i,r),i.trim().replace(Le[xe.STAR],"")),Gw=(i,r)=>(me("replaceGTE0",i,r),i.trim().replace(Le[r.includePrerelease?xe.GTE0PRE:xe.GTE0],"")),Ww=i=>(r,n,u,a,o,p,g,v,c,_,b,I,P)=>(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)?v="":Fe(_)?v=`<${+c+1}.0.0-0`:Fe(b)?v=`<${c}.${+_+1}.0-0`:I?v=`<=${c}.${_}.${b}-${I}`:i?v=`<${c}.${_}.${+b+1}-0`:v=`<=${v}`,`${n} ${v}`.trim()),Bw=(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!==ru.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 Un=R((ex,th)=>{var Gn=Symbol("SemVer ANY"),Wn=class{static get ANY(){return Gn}constructor(r,n){if(n=kw(n),r instanceof Wn){if(r.loose===!!n.loose)return r;r=r.value}iu("comparator",r,n),this.options=n,this.loose=!!n.loose,this.parse(r),this.semver===Gn?this.value="":this.value=this.operator+this.semver.version,iu("comp",this)}parse(r){let n=this.options.loose?Jf[Zf.COMPARATORLOOSE]:Jf[Zf.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 Qf(u[2],this.options.loose):this.semver=Gn}toString(){return this.value}test(r){if(iu("Comparator.test",r,this.options.loose),this.semver===Gn||r===Gn)return!0;if(typeof r=="string")try{r=new Qf(r,this.options)}catch{return!1}return nu(r,this.operator,this.semver,this.options)}intersects(r,n){if(!(r instanceof Wn))throw new TypeError("a Comparator is required");if((!n||typeof n!="object")&&(n={loose:!!n,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new eh(r.value,n).test(this.value);if(r.operator==="")return r.value===""?!0:new eh(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=nu(this.semver,"<",r.semver,n)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),v=nu(this.semver,">",r.semver,n)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return u||a||o&&p||g||v}};th.exports=Wn;var kw=$n(),{re:Jf,t:Zf}=yr(),nu=Qo(),iu=qn(),Qf=Te(),eh=lt()});var Bn=R((tx,rh)=>{var Vw=lt(),zw=(i,r,n)=>{try{r=new Vw(r,n)}catch{return!1}return r.test(i)};rh.exports=zw});var ih=R((rx,nh)=>{var Xw=lt(),Yw=(i,r)=>new Xw(i,r).set.map(n=>n.map(u=>u.value).join(" ").trim().split(" "));nh.exports=Yw});var oh=R((nx,sh)=>{var Kw=Te(),Jw=lt(),Zw=(i,r,n)=>{let u=null,a=null,o=null;try{o=new Jw(r,n)}catch{return null}return i.forEach(p=>{o.test(p)&&(!u||a.compare(p)===-1)&&(u=p,a=new Kw(u,n))}),u};sh.exports=Zw});var ah=R((ix,uh)=>{var Qw=Te(),eb=lt(),tb=(i,r,n)=>{let u=null,a=null,o=null;try{o=new eb(r,n)}catch{return null}return i.forEach(p=>{o.test(p)&&(!u||a.compare(p)===1)&&(u=p,a=new Qw(u,n))}),u};uh.exports=tb});var fh=R((sx,ch)=>{var su=Te(),rb=lt(),lh=jn(),nb=(i,r)=>{i=new rb(i,r);let n=new su("0.0.0");if(i.test(n)||(n=new su("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 su(p.semver.version);switch(p.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!o||lh(g,o))&&(o=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${p.operator}`)}}),o&&(!n||lh(n,o))&&(n=o)}return n&&i.test(n)?n:null};ch.exports=nb});var ph=R((ox,hh)=>{var ib=lt(),sb=(i,r)=>{try{return new ib(i,r).range||"*"}catch{return null}};hh.exports=sb});var us=R((ux,vh)=>{var ob=Te(),dh=Un(),{ANY:ub}=dh,ab=lt(),lb=Bn(),gh=jn(),mh=ts(),cb=ns(),fb=rs(),hb=(i,r,n,u)=>{i=new ob(i,u),r=new ab(r,u);let a,o,p,g,v;switch(n){case">":a=gh,o=cb,p=mh,g=">",v=">=";break;case"<":a=mh,o=fb,p=gh,g="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(lb(i,r,u))return!1;for(let c=0;c<r.set.length;++c){let _=r.set[c],b=null,I=null;if(_.forEach(P=>{P.semver===ub&&(P=new dh(">=0.0.0")),b=b||P,I=I||P,a(P.semver,b.semver,u)?b=P:p(P.semver,I.semver,u)&&(I=P)}),b.operator===g||b.operator===v||(!I.operator||I.operator===g)&&o(i,I.semver))return!1;if(I.operator===v&&p(i,I.semver))return!1}return!0};vh.exports=hb});var yh=R((ax,_h)=>{var pb=us(),db=(i,r,n)=>pb(i,r,">",n);_h.exports=db});var wh=R((lx,Eh)=>{var gb=us(),mb=(i,r,n)=>gb(i,r,"<",n);Eh.exports=mb});var Ch=R((cx,Sh)=>{var bh=lt(),vb=(i,r,n)=>(i=new bh(i,n),r=new bh(r,n),i.intersects(r));Sh.exports=vb});var xh=R((fx,Oh)=>{var _b=Bn(),yb=at();Oh.exports=(i,r,n)=>{let u=[],a=null,o=null,p=i.sort((_,b)=>yb(_,b,n));for(let _ of p)_b(_,r,n)?(o=_,a||(a=_)):(o&&u.push([a,o]),o=null,a=null);a&&u.push([a,null]);let g=[];for(let[_,b]of u)_===b?g.push(_):!b&&_===p[0]?g.push("*"):b?_===p[0]?g.push(`<=${b}`):g.push(`${_} - ${b}`):g.push(`>=${_}`);let v=g.join(" || "),c=typeof r.raw=="string"?r.raw:String(r);return v.length<c.length?v:r}});var Th=R((hx,Ph)=>{var Ah=lt(),as=Un(),{ANY:ou}=as,kn=Bn(),uu=at(),Eb=(i,r,n={})=>{if(i===r)return!0;i=new Ah(i,n),r=new Ah(r,n);let u=!1;e:for(let a of i.set){for(let o of r.set){let p=wb(a,o,n);if(u=u||p!==null,p)continue e}if(u)return!1}return!0},wb=(i,r,n)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===ou){if(r.length===1&&r[0].semver===ou)return!0;n.includePrerelease?i=[new as(">=0.0.0-0")]:i=[new as(">=0.0.0")]}if(r.length===1&&r[0].semver===ou){if(n.includePrerelease)return!0;r=[new as(">=0.0.0")]}let u=new Set,a,o;for(let P of i)P.operator===">"||P.operator===">="?a=Ih(a,P,n):P.operator==="<"||P.operator==="<="?o=Rh(o,P,n):u.add(P.semver);if(u.size>1)return null;let p;if(a&&o){if(p=uu(a.semver,o.semver,n),p>0)return null;if(p===0&&(a.operator!==">="||o.operator!=="<="))return null}for(let P of u){if(a&&!kn(P,String(a),n)||o&&!kn(P,String(o),n))return null;for(let H of r)if(!kn(P,String(H),n))return!1;return!0}let g,v,c,_,b=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1,I=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 P of r){if(_=_||P.operator===">"||P.operator===">=",c=c||P.operator==="<"||P.operator==="<=",a){if(I&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===I.major&&P.semver.minor===I.minor&&P.semver.patch===I.patch&&(I=!1),P.operator===">"||P.operator===">="){if(g=Ih(a,P,n),g===P&&g!==a)return!1}else if(a.operator===">="&&!kn(a.semver,String(P),n))return!1}if(o){if(b&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===b.major&&P.semver.minor===b.minor&&P.semver.patch===b.patch&&(b=!1),P.operator==="<"||P.operator==="<="){if(v=Rh(o,P,n),v===P&&v!==o)return!1}else if(o.operator==="<="&&!kn(o.semver,String(P),n))return!1}if(!P.operator&&(o||a)&&p!==0)return!1}return!(a&&c&&!o&&p!==0||o&&_&&!a&&p!==0||I||b)},Ih=(i,r,n)=>{if(!i)return r;let u=uu(i.semver,r.semver,n);return u>0?i:u<0||r.operator===">"&&i.operator===">="?r:i},Rh=(i,r,n)=>{if(!i)return r;let u=uu(i.semver,r.semver,n);return u<0?i:u>0||r.operator==="<"&&i.operator==="<="?r:i};Ph.exports=Eb});var Nh=R((px,Lh)=>{var au=yr();Lh.exports={re:au.re,src:au.src,tokens:au.t,SEMVER_SPEC_VERSION:Dn().SEMVER_SPEC_VERSION,SemVer:Te(),compareIdentifiers:Ki().compareIdentifiers,rcompareIdentifiers:Ki().rcompareIdentifiers,parse:Er(),valid:Zc(),clean:ef(),inc:rf(),diff:lf(),major:ff(),minor:pf(),patch:gf(),prerelease:vf(),compare:at(),rcompare:yf(),compareLoose:wf(),compareBuild:es(),sort:Of(),rsort:Af(),gt:jn(),lt:ts(),eq:Qi(),neq:Zo(),gte:rs(),lte:ns(),cmp:Qo(),coerce:qf(),Comparator:Un(),Range:lt(),satisfies:Bn(),toComparators:ih(),maxSatisfying:oh(),minSatisfying:ah(),minVersion:fh(),validRange:ph(),outside:us(),gtr:yh(),ltr:wh(),intersects:Ch(),simplifyRange:xh(),subset:Th()}});var Ae=R(Cr=>{"use strict";var Dh=Cr&&Cr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Cr,"__esModule",{value:!0});Cr.getCoreVersion=void 0;var qh=Dh(require("path")),$h=Dh(require("fs")),bb=Nh(),Sb=require("@serverless-devs/core"),lu=qh.default.join(Sb.getRootHome(),"cache","core"),Fh=qh.default.join(lu,"package.json");function Cb(){if($h.default.existsSync(Fh)){var i=require("@serverless-devs/core/package.json").version,r=jh();return bb.gt(r,i)?require(lu):require("@serverless-devs/core")}return require("@serverless-devs/core")}function jh(){return $h.default.existsSync(lu)?require(Fh).version:void 0}Cr.getCoreVersion=jh;Cr.default=Cb()});var Mh=R((gx,Ob)=>{Ob.exports={name:"@serverless-devs/s",version:"2.0.95",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=R(G=>{"use strict";var xb=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]}),Ab=G&&G.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Ib=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)&&xb(r,i,n);return Ab(r,i),r},Hh=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(_){try{c(u.next(_))}catch(b){p(b)}}function v(_){try{c(u.throw(_))}catch(b){p(b)}}function c(_){_.done?o(_.value):a(_.value).then(g,v)}c((u=u.apply(i,r||[])).next())})},Uh=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(_){return v([c,_])}}function v(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(_){c=[6,_],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ls=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=ls(require("path")),Je=ls(require("fs")),cu=ls(zr()),Rb=ls(require("os")),Pb=Or(),cs=Ib(Ae()),fu=cs.default.colors,Tb=cs.default.jsyaml,fs=Mh();G.red=fu.hex("#fd5750");G.bgRed=fu.hex("#000").bgHex("#fd5750");function Lb(){return(0,cs.getCoreVersion)()?fs.name+": "+fs.version+", @serverless-devs/core: "+(0,cs.getCoreVersion)()+", "+process.platform+"-"+process.arch+", node-"+process.version:fs.name+": "+fs.version+", "+process.platform+"-"+process.arch+", node-"+process.version}G.getVersion=Lb;function Nb(i){return Hh(this,void 0,void 0,function(){function r(a){return Hh(this,void 0,void 0,function(){var o,p;return Uh(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(v){return r(Ce.default.join(a,v))}))]):[3,2]);case 1:g.sent(),g.label=2;case 2:return[2]}})})}var n,u;return Uh(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=Nb;function Gh(i){var r=Je.default.readFileSync(i,"utf8");try{return Tb.load(r)}catch{if(["-h","--help"].includes(process.argv[2]))return;var n=Ce.default.basename(i);new Pb.HumanError({errorMessage:n+" format is incorrect",tips:"Please check the configuration of "+n+", Serverless Devs' Yaml specification document can refer to\uFF1A"+fu.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/yaml.md")}),process.exit(1)}}G.yamlLoad=Gh;function Vn(i,r){r===void 0&&(r=!1);var n=Je.default.readFileSync(i,"utf8"),u=r?JSON.parse(n):Gh(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 Wh(){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))&&Vn(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)&&Vn(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"))&&Vn(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"))&&Vn(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"))&&Vn(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=Wh;function Bh(i){return Je.default.existsSync(i)?i:null}G.checkTemplateFile=Bh;function kh(i,r){r===void 0&&(r=" ");for(var n="",u=0;u<i;u++)n=n+r;return n}G.printn=kh;function Vh(){return"en"}G.getLang=Vh;function hu(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=cu.default.trim(o.split("|")[0]);r[p]&&(i=i.replace(u[a],r[p]))}return i}G.replaceFun=hu;function zh(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:cu.default.trim(o[0]),desc:cu.default.trim(o[1])}}):[]}G.getTemplatekey=zh;function Xh(i,r){i.forEach(function(n){if(Je.default.existsSync(n)){var u=Je.default.readFileSync(n,"utf-8"),a=hu(u,r);Je.default.writeFileSync(n,a,"utf-8")}})}G.replaceTemplate=Xh;function Yh(i){if(!i)return i;var r=i.slice(-4);return"***********"+r}G.mark=Yh;function Db(i){return Rb.default.platform()==="win32"?"":i}G.emoji=Db;G.default={checkAndReturnTemplateFile:Wh,checkTemplateFile:Bh,printn:kh,mark:Yh,getLang:Vh,replaceTemplate:Xh,replaceFun:hu,getTemplatekey:zh}});var ps=R(Wt=>{"use strict";var Kh=Wt&&Wt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.getHistoryFile=Wt.getHomeDir=void 0;var qb=Kh(require("path")),Jh=Kh(Ae()),hs=Jh.default.fse,$b=Jh.default.getRootHome;function pu(){var i=$b();return hs.existsSync(i)||hs.mkdirSync(i),i}Wt.getHomeDir=pu;function Zh(){var i=qb.default.join(pu(),"history");return hs.existsSync(i)||hs.createFileSync(i),i}Wt.getHistoryFile=Zh;Wt.default={getHomeDir:pu,getHistoryFile:Zh}});var mu=R(je=>{"use strict";var Fb=je&&je.__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(_){try{c(u.next(_))}catch(b){p(b)}}function v(_){try{c(u.throw(_))}catch(b){p(b)}}function c(_){_.done?o(_.value):a(_.value).then(g,v)}c((u=u.apply(i,r||[])).next())})},jb=je&&je.__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(_){return v([c,_])}}function v(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(_){c=[6,_],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},du=je&&je.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(je,"__esModule",{value:!0});je.handlerProfileFile=je.getConfig=je.setConfig=void 0;var Qh=du(require("path")),Mb=du(ps()),gu=du(Ae()),wt=gu.default.fse,ds=gu.default.jsyaml,ep=gu.default.getRootHome;function Hb(i){var r=rp();wt.writeFileSync(r,ds.dump(i))}function tp(){var i=rp();if(!wt.existsSync(i))return{};try{var r=ds.load(wt.readFileSync(i,"utf8"))||{};return r}catch(n){throw n}}function rp(){var i=Qh.default.join(Mb.default.getHomeDir(),"set-config.yml");return wt.existsSync(i)||wt.createFileSync(i),i}function np(i,r){var n=tp();n[i]=r,Hb(n)}je.setConfig=np;function ip(i,r){var n=tp();return n[i]||r}je.getConfig=ip;function sp(i){return Fb(this,void 0,void 0,function(){var r,n,u,a,o,p,g;return jb(this,function(v){switch(v.label){case 0:if(r=i.filePath||"set-config.yml",n=Qh.default.join(ep(),r),u=wt.existsSync(n),a={},u)return[3,5];o=ep(),v.label=1;case 1:return v.trys.push([1,2,,4]),wt.statSync(o),[3,4];case 2:return p=v.sent(),[4,wt.mkdirSync(o)];case 3:return v.sent(),[3,4];case 4:return[3,6];case 5:try{a=ds.load(wt.readFileSync(n,"utf8"))||{}}catch(c){throw c}v.label=6;case 6:return i.read?[2,a]:(g=i.configKey||"",a[g]=i.data,[4,wt.writeFileSync(n,ds.dump(a))]);case 7:return v.sent(),[2,a]}})})}je.handlerProfileFile=sp;je.default={setConfig:np,getConfig:ip,handlerProfileFile:sp}});var xr=R(Jr=>{"use strict";var Ub=Jr&&Jr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.ServerlessError=void 0;var Gb=Ub(Ae()),Wb=Gb.default.Logger,Bb=new Wb("S-CLI-ERROR"),kb=function(){function i(r,n,u){Bb.error(r+": "+n,u),process.exit(1)}return i}();Jr.ServerlessError=kb});var op=R(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.CommandError=void 0;var zb=xr(),Xb=function(i){Vb(r,i);function r(n,u){return i.call(this,"Error",n,u)||this}return r}(zb.ServerlessError);Zr.CommandError=Xb});var up=R(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.ConfigDeleteError=void 0;var Kb=xr(),Jb=function(i){Yb(r,i);function r(n,u){return i.call(this,"Deletion failed",n,u)||this}return r}(Kb.ServerlessError);Qr.ConfigDeleteError=Jb});var ap=R(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.ConfigError=void 0;var Qb=xr(),eS=function(i){Zb(r,i);function r(n,u){return i.call(this,"Config failed",n,u)||this}return r}(Qb.ServerlessError);en.ConfigError=eS});var lp=R(tn=>{"use strict";var tS=tn&&tn.__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(tn,"__esModule",{value:!0});tn.ConfigGetError=void 0;var rS=xr(),nS=function(i){tS(r,i);function r(n,u){return i.call(this,"Get failed",n,u)||this}return r}(rS.ServerlessError);tn.ConfigGetError=nS});var cp=R(rn=>{"use strict";var iS=rn&&rn.__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(rn,"__esModule",{value:!0});rn.InitError=void 0;var sS=xr(),oS=function(i){iS(r,i);function r(n,u){return i.call(this,"Initialization failed",n,u)||this}return r}(sS.ServerlessError);rn.InitError=oS});var hp=R(bt=>{"use strict";var uS=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(_){try{c(u.next(_))}catch(b){p(b)}}function v(_){try{c(u.throw(_))}catch(b){p(b)}}function c(_){_.done?o(_.value):a(_.value).then(g,v)}c((u=u.apply(i,r||[])).next())})},aS=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(_){return v([c,_])}}function v(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(_){c=[6,_],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},lS=bt&&bt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(bt,"__esModule",{value:!0});bt.HumanError=void 0;var fp=lS(Ae()),cS=Gt(),fS=fp.default.colors,hS=function(){function i(r){var n=r.errorMessage,u=r.tips;this.errorMessage=n,console.log(`
|
|
34
|
+
}`;var B=xc(function(){return Q(d,q+"return "+A).apply(i,m)});if(B.source=A,$o(B))throw B;return B}function yy(e){return te(e).toLowerCase()}function Ey(e){return te(e).toUpperCase()}function wy(e,t,s){if(e=te(e),e&&(s||t===i))return qa(e);if(!e||!(t=ze(t)))return e;var l=ht(e),f=ht(t),d=$a(l,f),m=Fa(l,f)+1;return tr(l,d,m).join("")}function by(e,t,s){if(e=te(e),e&&(s||t===i))return e.slice(0,Ma(e)+1);if(!e||!(t=ze(t)))return e;var l=ht(e),f=Fa(l,ht(t))+1;return tr(l,0,f).join("")}function Sy(e,t,s){if(e=te(e),e&&(s||t===i))return e.replace(qs,"");if(!e||!(t=ze(t)))return e;var l=ht(e),f=$a(l,ht(t));return tr(l,f).join("")}function Cy(e,t){var s=Rt,l=_d;if(fe(t)){var f="separator"in t?t.separator:f;s="length"in t?W(t.length):s,l="omission"in t?ze(t.omission):l}e=te(e);var d=e.length;if(qr(e)){var m=ht(e);d=m.length}if(s>=d)return e;var y=s-$r(l);if(y<1)return l;var w=m?tr(m,0,y).join(""):e.slice(0,y);if(f===i)return w+l;if(m&&(y+=w.length-y),Fo(f)){if(e.slice(y).search(f)){var O,x=w;for(f.global||(f=Zs(f.source,te(na.exec(f))+"g")),f.lastIndex=0;O=f.exec(x);)var A=O.index;w=w.slice(0,A===i?y:A)}}else if(e.indexOf(ze(f),y)!=y){var T=w.lastIndexOf(f);T>-1&&(w=w.slice(0,T))}return w+l}function Oy(e){return e=te(e),e&&$d.test(e)?e.replace(ea,em):e}var xy=Gr(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),Ho=Al("toUpperCase");function Oc(e,t,s){return e=te(e),t=s?i:t,t===i?Yg(e)?nm(e):Hg(e):e.match(t)||[]}var xc=V(function(e,t){try{return ke(e,i,t)}catch(s){return $o(s)?s:new M(s)}}),Ay=qt(function(e,t){return et(t,function(s){s=Et(s),Nt(e,s,Do(e[s],e))}),e});function Iy(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 Ry(e){return ev(nt(e,c))}function Uo(e){return function(){return e}}function Py(e,t){return e==null||e!==e?t:e}var Ty=Rl(),Ly=Rl(!0);function We(e){return e}function Go(e){return sl(typeof e=="function"?e:nt(e,c))}function Ny(e){return ul(nt(e,c))}function Dy(e,t){return al(e,nt(t,c))}var qy=V(function(e,t){return function(s){return Cn(s,e,t)}}),$y=V(function(e,t){return function(s){return Cn(e,s,t)}});function Wo(e,t,s){var l=be(t),f=Ri(t,l);s==null&&!(fe(t)&&(f.length||!l.length))&&(s=t,t=e,e=this,f=Ri(t,be(t)));var d=!(fe(s)&&"chain"in s)||!!s.chain,m=Ft(e);return et(f,function(y){var w=t[y];e[y]=w,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:w,args:arguments,thisArg:e}),x.__chain__=O,x}return w.apply(e,Xt([this.value()],arguments))})}),e}function Fy(){return we._===this&&(we._=lm),this}function Bo(){}function jy(e){return e=W(e),V(function(t){return ll(t,e)})}var My=wo(ce),Hy=wo(Pa),Uy=wo(ks);function Ac(e){return Io(e)?Vs(Et(e)):vv(e)}function Gy(e){return function(t){return e==null?i:pr(e,t)}}var Wy=Tl(),By=Tl(!0);function ko(){return[]}function Vo(){return!1}function ky(){return{}}function Vy(){return""}function zy(){return!0}function Xy(e,t){if(e=W(e),e<1||e>Vt)return[];var s=vt,l=Re(e,vt);t=$(t),e-=vt;for(var f=Ys(l,t);++s<e;)t(s);return f}function Yy(e){return U(e)?ce(e,Et):Xe(e)?[e]:He(zl(te(e)))}function Ky(e){var t=++um;return te(e)+t}var Jy=qi(function(e,t){return e+t},0),Zy=bo("ceil"),Qy=qi(function(e,t){return e/t},1),eE=bo("floor");function tE(e){return e&&e.length?Ii(e,We,oo):i}function rE(e,t){return e&&e.length?Ii(e,$(t,2),oo):i}function nE(e){return Na(e,We)}function iE(e,t){return Na(e,$(t,2))}function sE(e){return e&&e.length?Ii(e,We,co):i}function oE(e,t){return e&&e.length?Ii(e,$(t,2),co):i}var uE=qi(function(e,t){return e*t},1),aE=bo("round"),lE=qi(function(e,t){return e-t},0);function cE(e){return e&&e.length?Xs(e,We):0}function fE(e,t){return e&&e.length?Xs(e,$(t,2)):0}return h.after=N0,h.ary=ic,h.assign=E1,h.assignIn=_c,h.assignInWith=Xi,h.assignWith=w1,h.at=b1,h.before=sc,h.bind=Do,h.bindAll=Ay,h.bindKey=oc,h.castArray=k0,h.chain=tc,h.chunk=e_,h.compact=t_,h.concat=r_,h.cond=Iy,h.conforms=Ry,h.constant=Uo,h.countBy=c0,h.create=S1,h.curry=uc,h.curryRight=ac,h.debounce=lc,h.defaults=C1,h.defaultsDeep=O1,h.defer=D0,h.delay=q0,h.difference=n_,h.differenceBy=i_,h.differenceWith=s_,h.drop=o_,h.dropRight=u_,h.dropRightWhile=a_,h.dropWhile=l_,h.fill=c_,h.filter=h0,h.flatMap=g0,h.flatMapDeep=m0,h.flatMapDepth=v0,h.flatten=Jl,h.flattenDeep=f_,h.flattenDepth=h_,h.flip=$0,h.flow=Ty,h.flowRight=Ly,h.fromPairs=p_,h.functions=L1,h.functionsIn=N1,h.groupBy=_0,h.initial=g_,h.intersection=m_,h.intersectionBy=v_,h.intersectionWith=__,h.invert=q1,h.invertBy=$1,h.invokeMap=E0,h.iteratee=Go,h.keyBy=w0,h.keys=be,h.keysIn=Ge,h.map=Gi,h.mapKeys=j1,h.mapValues=M1,h.matches=Ny,h.matchesProperty=Dy,h.memoize=Bi,h.merge=H1,h.mergeWith=yc,h.method=qy,h.methodOf=$y,h.mixin=Wo,h.negate=ki,h.nthArg=jy,h.omit=U1,h.omitBy=G1,h.once=F0,h.orderBy=b0,h.over=My,h.overArgs=j0,h.overEvery=Hy,h.overSome=Uy,h.partial=qo,h.partialRight=cc,h.partition=S0,h.pick=W1,h.pickBy=Ec,h.property=Ac,h.propertyOf=Gy,h.pull=b_,h.pullAll=Ql,h.pullAllBy=S_,h.pullAllWith=C_,h.pullAt=O_,h.range=Wy,h.rangeRight=By,h.rearg=M0,h.reject=x0,h.remove=x_,h.rest=H0,h.reverse=Lo,h.sampleSize=I0,h.set=k1,h.setWith=V1,h.shuffle=R0,h.slice=A_,h.sortBy=L0,h.sortedUniq=D_,h.sortedUniqBy=q_,h.split=gy,h.spread=U0,h.tail=$_,h.take=F_,h.takeRight=j_,h.takeRightWhile=M_,h.takeWhile=H_,h.tap=t0,h.throttle=G0,h.thru=Ui,h.toArray=gc,h.toPairs=wc,h.toPairsIn=bc,h.toPath=Yy,h.toPlainObject=vc,h.transform=z1,h.unary=W0,h.union=U_,h.unionBy=G_,h.unionWith=W_,h.uniq=B_,h.uniqBy=k_,h.uniqWith=V_,h.unset=X1,h.unzip=No,h.unzipWith=ec,h.update=Y1,h.updateWith=K1,h.values=kr,h.valuesIn=J1,h.without=z_,h.words=Oc,h.wrap=B0,h.xor=X_,h.xorBy=Y_,h.xorWith=K_,h.zip=J_,h.zipObject=Z_,h.zipObjectDeep=Q_,h.zipWith=e0,h.entries=wc,h.entriesIn=bc,h.extend=_c,h.extendWith=Xi,Wo(h,h),h.add=Jy,h.attempt=xc,h.camelCase=ty,h.capitalize=Sc,h.ceil=Zy,h.clamp=Z1,h.clone=V0,h.cloneDeep=X0,h.cloneDeepWith=Y0,h.cloneWith=z0,h.conformsTo=K0,h.deburr=Cc,h.defaultTo=Py,h.divide=Qy,h.endsWith=ry,h.eq=dt,h.escape=ny,h.escapeRegExp=iy,h.every=f0,h.find=p0,h.findIndex=Yl,h.findKey=x1,h.findLast=d0,h.findLastIndex=Kl,h.findLastKey=A1,h.floor=eE,h.forEach=rc,h.forEachRight=nc,h.forIn=I1,h.forInRight=R1,h.forOwn=P1,h.forOwnRight=T1,h.get=jo,h.gt=J0,h.gte=Z0,h.has=D1,h.hasIn=Mo,h.head=Zl,h.identity=We,h.includes=y0,h.indexOf=d_,h.inRange=Q1,h.invoke=F1,h.isArguments=mr,h.isArray=U,h.isArrayBuffer=Q0,h.isArrayLike=Ue,h.isArrayLikeObject=de,h.isBoolean=e1,h.isBuffer=rr,h.isDate=t1,h.isElement=r1,h.isEmpty=n1,h.isEqual=i1,h.isEqualWith=s1,h.isError=$o,h.isFinite=o1,h.isFunction=Ft,h.isInteger=fc,h.isLength=Vi,h.isMap=hc,h.isMatch=u1,h.isMatchWith=a1,h.isNaN=l1,h.isNative=c1,h.isNil=h1,h.isNull=f1,h.isNumber=pc,h.isObject=fe,h.isObjectLike=he,h.isPlainObject=Pn,h.isRegExp=Fo,h.isSafeInteger=p1,h.isSet=dc,h.isString=zi,h.isSymbol=Xe,h.isTypedArray=Br,h.isUndefined=d1,h.isWeakMap=g1,h.isWeakSet=m1,h.join=y_,h.kebabCase=sy,h.last=st,h.lastIndexOf=E_,h.lowerCase=oy,h.lowerFirst=uy,h.lt=v1,h.lte=_1,h.max=tE,h.maxBy=rE,h.mean=nE,h.meanBy=iE,h.min=sE,h.minBy=oE,h.stubArray=ko,h.stubFalse=Vo,h.stubObject=ky,h.stubString=Vy,h.stubTrue=zy,h.multiply=uE,h.nth=w_,h.noConflict=Fy,h.noop=Bo,h.now=Wi,h.pad=ay,h.padEnd=ly,h.padStart=cy,h.parseInt=fy,h.random=ey,h.reduce=C0,h.reduceRight=O0,h.repeat=hy,h.replace=py,h.result=B1,h.round=aE,h.runInContext=E,h.sample=A0,h.size=P0,h.snakeCase=dy,h.some=T0,h.sortedIndex=I_,h.sortedIndexBy=R_,h.sortedIndexOf=P_,h.sortedLastIndex=T_,h.sortedLastIndexBy=L_,h.sortedLastIndexOf=N_,h.startCase=my,h.startsWith=vy,h.subtract=lE,h.sum=cE,h.sumBy=fE,h.template=_y,h.times=Xy,h.toFinite=jt,h.toInteger=W,h.toLength=mc,h.toLower=yy,h.toNumber=ot,h.toSafeInteger=y1,h.toString=te,h.toUpper=Ey,h.trim=wy,h.trimEnd=by,h.trimStart=Sy,h.truncate=Cy,h.unescape=Oy,h.uniqueId=Ky,h.upperCase=xy,h.upperFirst=Ho,h.each=rc,h.eachRight=nc,h.first=Zl,Wo(h,function(){var e={};return _t(h,function(t,s){ne.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){Y.prototype[e]=function(s){s=s===i?1:Ee(W(s),0);var l=this.__filtered__&&!t?new Y(this):this.clone();return l.__filtered__?l.__takeCount__=Re(s,l.__takeCount__):l.__views__.push({size:Re(s,vt),type:e+(l.__dir__<0?"Right":"")}),l},Y.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),et(["filter","map","takeWhile"],function(e,t){var s=t+1,l=s==Ju||s==bd;Y.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":"");Y.prototype[e]=function(){return this[s](1).value()[0]}}),et(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");Y.prototype[e]=function(){return this.__filtered__?new Y(this):this[s](1)}}),Y.prototype.compact=function(){return this.filter(We)},Y.prototype.find=function(e){return this.filter(e).head()},Y.prototype.findLast=function(e){return this.reverse().find(e)},Y.prototype.invokeMap=V(function(e,t){return typeof e=="function"?new Y(this):this.map(function(s){return Cn(s,e,t)})}),Y.prototype.reject=function(e){return this.filter(ki($(e)))},Y.prototype.slice=function(e,t){e=W(e);var s=this;return s.__filtered__&&(e>0||t<0)?new Y(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==i&&(t=W(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},Y.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Y.prototype.toArray=function(){return this.take(vt)},_t(Y.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,w=m instanceof Y,O=y[0],x=w||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&&(w=x=!1);var T=this.__chain__,q=!!this.__actions__.length,F=d&&!T,B=w&&!q;if(!d&&x){m=B?m:new Y(this);var j=e.apply(m,y);return j.__actions__.push({func:Ui,args:[A],thisArg:i}),new rt(j,T)}return F&&B?e.apply(this,y):(j=this.thru(A),F?l?j.value()[0]:j.value():j)})}),et(["pop","push","shift","sort","splice","unshift"],function(e){var t=pi[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(Y.prototype,function(e,t){var s=h[t];if(s){var l=s.name+"";ne.call(Mr,l)||(Mr[l]=[]),Mr[l].push({name:t,func:s})}}),Mr[Di(i,re).name]=[{name:"wrapper",func:i}],Y.prototype.clone=Om,Y.prototype.reverse=xm,Y.prototype.value=Am,h.prototype.at=r0,h.prototype.chain=n0,h.prototype.commit=i0,h.prototype.next=s0,h.prototype.plant=u0,h.prototype.reverse=a0,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=l0,h.prototype.first=h.prototype.head,vn&&(h.prototype[vn]=o0),h},Kt=im();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(we._=Kt,define(function(){return Kt})):ar?((ar.exports=Kt)._=Kt,Us._=Kt):we._=Kt}).call(Vr)});var Dn=R((bO,$c)=>{var dE="2.0.0",gE=256,mE=Number.MAX_SAFE_INTEGER||9007199254740991,vE=16;$c.exports={SEMVER_SPEC_VERSION:dE,MAX_LENGTH:gE,MAX_SAFE_INTEGER:mE,MAX_SAFE_COMPONENT_LENGTH:vE}});var qn=R((SO,Fc)=>{var _E=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Fc.exports=_E});var yr=R((nr,jc)=>{var{MAX_SAFE_COMPONENT_LENGTH:Jo}=Dn(),yE=qn();nr=jc.exports={};var EE=nr.re=[],N=nr.src=[],D=nr.t={},wE=0,k=(i,r,n)=>{let u=wE++;yE(u,r),D[i]=u,N[u]=r,EE[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,${Jo}})(?:\\.(\\d{1,${Jo}}))?(?:\\.(\\d{1,${Jo}}))?(?:$|[^\\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 $n=R((CO,Mc)=>{var bE=["includePrerelease","loose","rtl"],SE=i=>i?typeof i!="object"?{loose:!0}:bE.filter(r=>i[r]).reduce((r,n)=>(r[n]=!0,r),{}):{};Mc.exports=SE});var Ki=R((OO,Gc)=>{var Hc=/^[0-9]+$/,Uc=(i,r)=>{let n=Hc.test(i),u=Hc.test(r);return n&&u&&(i=+i,r=+r),i===r?0:n&&!u?-1:u&&!n?1:i<r?-1:1},CE=(i,r)=>Uc(r,i);Gc.exports={compareIdentifiers:Uc,rcompareIdentifiers:CE}});var Te=R((xO,Vc)=>{var Ji=qn(),{MAX_LENGTH:Wc,MAX_SAFE_INTEGER:Zi}=Dn(),{re:Bc,t:kc}=yr(),OE=$n(),{compareIdentifiers:Fn}=Ki(),ut=class{constructor(r,n){if(n=OE(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>Wc)throw new TypeError(`version is longer than ${Wc} characters`);Ji("SemVer",r,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let u=r.trim().match(n.loose?Bc[kc.LOOSE]:Bc[kc.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>Zi||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Zi||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Zi||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<Zi)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(Ji("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)),Fn(this.major,r.major)||Fn(this.minor,r.minor)||Fn(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(Ji("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 Fn(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(Ji("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 Fn(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}};Vc.exports=ut});var Er=R((AO,Kc)=>{var{MAX_LENGTH:xE}=Dn(),{re:zc,t:Xc}=yr(),Yc=Te(),AE=$n(),IE=(i,r)=>{if(r=AE(r),i instanceof Yc)return i;if(typeof i!="string"||i.length>xE||!(r.loose?zc[Xc.LOOSE]:zc[Xc.FULL]).test(i))return null;try{return new Yc(i,r)}catch{return null}};Kc.exports=IE});var Zc=R((IO,Jc)=>{var RE=Er(),PE=(i,r)=>{let n=RE(i,r);return n?n.version:null};Jc.exports=PE});var ef=R((RO,Qc)=>{var TE=Er(),LE=(i,r)=>{let n=TE(i.trim().replace(/^[=v]+/,""),r);return n?n.version:null};Qc.exports=LE});var rf=R((PO,tf)=>{var NE=Te(),DE=(i,r,n,u)=>{typeof n=="string"&&(u=n,n=void 0);try{return new NE(i,n).inc(r,u).version}catch{return null}};tf.exports=DE});var at=R((TO,sf)=>{var nf=Te(),qE=(i,r,n)=>new nf(i,n).compare(new nf(r,n));sf.exports=qE});var Qi=R((LO,of)=>{var $E=at(),FE=(i,r,n)=>$E(i,r,n)===0;of.exports=FE});var lf=R((NO,af)=>{var uf=Er(),jE=Qi(),ME=(i,r)=>{if(jE(i,r))return null;{let n=uf(i),u=uf(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}};af.exports=ME});var ff=R((DO,cf)=>{var HE=Te(),UE=(i,r)=>new HE(i,r).major;cf.exports=UE});var pf=R((qO,hf)=>{var GE=Te(),WE=(i,r)=>new GE(i,r).minor;hf.exports=WE});var gf=R(($O,df)=>{var BE=Te(),kE=(i,r)=>new BE(i,r).patch;df.exports=kE});var vf=R((FO,mf)=>{var VE=Er(),zE=(i,r)=>{let n=VE(i,r);return n&&n.prerelease.length?n.prerelease:null};mf.exports=zE});var yf=R((jO,_f)=>{var XE=at(),YE=(i,r,n)=>XE(r,i,n);_f.exports=YE});var wf=R((MO,Ef)=>{var KE=at(),JE=(i,r)=>KE(i,r,!0);Ef.exports=JE});var es=R((HO,Sf)=>{var bf=Te(),ZE=(i,r,n)=>{let u=new bf(i,n),a=new bf(r,n);return u.compare(a)||u.compareBuild(a)};Sf.exports=ZE});var Of=R((UO,Cf)=>{var QE=es(),ew=(i,r)=>i.sort((n,u)=>QE(n,u,r));Cf.exports=ew});var Af=R((GO,xf)=>{var tw=es(),rw=(i,r)=>i.sort((n,u)=>tw(u,n,r));xf.exports=rw});var jn=R((WO,If)=>{var nw=at(),iw=(i,r,n)=>nw(i,r,n)>0;If.exports=iw});var ts=R((BO,Rf)=>{var sw=at(),ow=(i,r,n)=>sw(i,r,n)<0;Rf.exports=ow});var Zo=R((kO,Pf)=>{var uw=at(),aw=(i,r,n)=>uw(i,r,n)!==0;Pf.exports=aw});var rs=R((VO,Tf)=>{var lw=at(),cw=(i,r,n)=>lw(i,r,n)>=0;Tf.exports=cw});var ns=R((zO,Lf)=>{var fw=at(),hw=(i,r,n)=>fw(i,r,n)<=0;Lf.exports=hw});var Qo=R((XO,Nf)=>{var pw=Qi(),dw=Zo(),gw=jn(),mw=rs(),vw=ts(),_w=ns(),yw=(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 pw(i,n,u);case"!=":return dw(i,n,u);case">":return gw(i,n,u);case">=":return mw(i,n,u);case"<":return vw(i,n,u);case"<=":return _w(i,n,u);default:throw new TypeError(`Invalid operator: ${r}`)}};Nf.exports=yw});var qf=R((YO,Df)=>{var Ew=Te(),ww=Er(),{re:is,t:ss}=yr(),bw=(i,r)=>{if(i instanceof Ew)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(is[ss.COERCE]);else{let u;for(;(u=is[ss.COERCERTL].exec(i))&&(!n||n.index+n[0].length!==i.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),is[ss.COERCERTL].lastIndex=u.index+u[1].length+u[2].length;is[ss.COERCERTL].lastIndex=-1}return n===null?null:ww(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,r)};Df.exports=bw});var Ff=R((KO,$f)=>{"use strict";$f.exports=function(i){i.prototype[Symbol.iterator]=function*(){for(let r=this.head;r;r=r.next)yield r.value}}});var Mf=R((JO,jf)=>{"use strict";jf.exports=Z;Z.Node=wr;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++)Cw(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)Ow(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=Sw(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 Sw(i,r,n){var u=r===i.head?new wr(n,null,r,i):new wr(n,r,r.next,i);return u.next===null&&(i.tail=u),u.prev===null&&(i.head=u),i.length++,u}function Cw(i,r){i.tail=new wr(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function Ow(i,r){i.head=new wr(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function wr(i,r,n,u){if(!(this instanceof wr))return new wr(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{Ff()(Z)}catch{}});var Vf=R((ZO,kf)=>{"use strict";var xw=Mf(),br=Symbol("max"),Ht=Symbol("length"),Xr=Symbol("lengthCalculator"),Mn=Symbol("allowStale"),Sr=Symbol("maxAge"),Ut=Symbol("dispose"),Hf=Symbol("noDisposeOnSet"),Se=Symbol("lruList"),mt=Symbol("cache"),Uf=Symbol("updateAgeOnGet"),eu=()=>1,Gf=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[br]=r.max||1/0,u=r.length||eu;if(this[Xr]=typeof u!="function"?eu:u,this[Mn]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[Sr]=r.maxAge||0,this[Ut]=r.dispose,this[Hf]=r.noDisposeOnSet||!1,this[Uf]=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[br]=r||1/0,Hn(this)}get max(){return this[br]}set allowStale(r){this[Mn]=!!r}get allowStale(){return this[Mn]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[Sr]=r,Hn(this)}get maxAge(){return this[Sr]}set lengthCalculator(r){typeof r!="function"&&(r=eu),r!==this[Xr]&&(this[Xr]=r,this[Ht]=0,this[Se].forEach(n=>{n.length=this[Xr](n.value,n.key),this[Ht]+=n.length})),Hn(this)}get lengthCalculator(){return this[Xr]}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;Bf(this,r,u,n),u=a}}forEach(r,n){n=n||this;for(let u=this[Se].head;u!==null;){let a=u.next;Bf(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 xw,this[Ht]=0}dump(){return this[Se].map(r=>os(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[Sr],u&&typeof u!="number")throw new TypeError("maxAge must be a number");let a=u?Date.now():0,o=this[Xr](n,r);if(this[mt].has(r)){if(o>this[br])return Yr(this,this[mt].get(r)),!1;let v=this[mt].get(r).value;return this[Ut]&&(this[Hf]||this[Ut](r,v.value)),v.now=a,v.maxAge=u,v.value=n,this[Ht]+=o-v.length,v.length=o,this.get(r),Hn(this),!0}let p=new Wf(r,n,o,a,u);return p.length>this[br]?(this[Ut]&&this[Ut](r,n),!1):(this[Ht]+=p.length,this[Se].unshift(p),this[mt].set(r,this[Se].head),Hn(this),!0)}has(r){if(!this[mt].has(r))return!1;let n=this[mt].get(r).value;return!os(this,n)}get(r){return tu(this,r,!0)}peek(r){return tu(this,r,!1)}pop(){let r=this[Se].tail;return r?(Yr(this,r),r.value):null}del(r){Yr(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)=>tu(this,n,!1))}},tu=(i,r,n)=>{let u=i[mt].get(r);if(u){let a=u.value;if(os(i,a)){if(Yr(i,u),!i[Mn])return}else n&&(i[Uf]&&(u.value.now=Date.now()),i[Se].unshiftNode(u));return a.value}},os=(i,r)=>{if(!r||!r.maxAge&&!i[Sr])return!1;let n=Date.now()-r.now;return r.maxAge?n>r.maxAge:i[Sr]&&n>i[Sr]},Hn=i=>{if(i[Ht]>i[br])for(let r=i[Se].tail;i[Ht]>i[br]&&r!==null;){let n=r.prev;Yr(i,r),r=n}},Yr=(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)}},Wf=class{constructor(r,n,u,a,o){this.key=r,this.value=n,this.length=u,this.now=a,this.maxAge=o||0}},Bf=(i,r,n,u)=>{let a=n.value;os(i,a)&&(Yr(i,n),i[Mn]||(a=void 0)),a&&r.call(u,a.value,a.key,i)};kf.exports=Gf});var lt=R((QO,Kf)=>{var Kr=class{constructor(r,n){if(n=Iw(n),r instanceof Kr)return r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease?r:new Kr(r.raw,n);if(r instanceof ru)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=>!Xf(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&&Nw(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=zf.get(u);if(a)return a;let o=this.options.loose,p=o?Le[xe.HYPHENRANGELOOSE]:Le[xe.HYPHENRANGE];r=r.replace(p,Ww(this.options.includePrerelease)),me("hyphen replace",r),r=r.replace(Le[xe.COMPARATORTRIM],Pw),me("comparator trim",r,Le[xe.COMPARATORTRIM]),r=r.replace(Le[xe.TILDETRIM],Tw),r=r.replace(Le[xe.CARETTRIM],Lw),r=r.split(/\s+/).join(" ");let g=o?Le[xe.COMPARATORLOOSE]:Le[xe.COMPARATOR],v=r.split(" ").map(I=>Dw(I,this.options)).join(" ").split(/\s+/).map(I=>Gw(I,this.options)).filter(this.options.loose?I=>!!I.match(g):()=>!0).map(I=>new ru(I,this.options)),c=v.length,_=new Map;for(let I of v){if(Xf(I))return[I];_.set(I.value,I)}_.size>1&&_.has("")&&_.delete("");let b=[..._.values()];return zf.set(u,b),b}intersects(r,n){if(!(r instanceof Kr))throw new TypeError("a Range is required");return this.set.some(u=>Yf(u,n)&&r.set.some(a=>Yf(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 Rw(r,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(Bw(this.set[n],r,this.options))return!0;return!1}};Kf.exports=Kr;var Aw=Vf(),zf=new Aw({max:1e3}),Iw=$n(),ru=Un(),me=qn(),Rw=Te(),{re:Le,t:xe,comparatorTrimReplace:Pw,tildeTrimReplace:Tw,caretTrimReplace:Lw}=yr(),Xf=i=>i.value==="<0.0.0-0",Nw=i=>i.value==="",Yf=(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},Dw=(i,r)=>(me("comp",i,r),i=Fw(i,r),me("caret",i),i=qw(i,r),me("tildes",i),i=Mw(i,r),me("xrange",i),i=Uw(i,r),me("stars",i),i),Fe=i=>!i||i.toLowerCase()==="x"||i==="*",qw=(i,r)=>i.trim().split(/\s+/).map(n=>$w(n,r)).join(" "),$w=(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 v;return Fe(a)?v="":Fe(o)?v=`>=${a}.0.0 <${+a+1}.0.0-0`:Fe(p)?v=`>=${a}.${o}.0 <${a}.${+o+1}.0-0`:g?(me("replaceTilde pr",g),v=`>=${a}.${o}.${p}-${g} <${a}.${+o+1}.0-0`):v=`>=${a}.${o}.${p} <${a}.${+o+1}.0-0`,me("tilde return",v),v})},Fw=(i,r)=>i.trim().split(/\s+/).map(n=>jw(n,r)).join(" "),jw=(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,v)=>{me("caret",i,a,o,p,g,v);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`:v?(me("replaceCaret pr",v),o==="0"?p==="0"?c=`>=${o}.${p}.${g}-${v} <${o}.${p}.${+g+1}-0`:c=`>=${o}.${p}.${g}-${v} <${o}.${+p+1}.0-0`:c=`>=${o}.${p}.${g}-${v} <${+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})},Mw=(i,r)=>(me("replaceXRanges",i,r),i.split(/\s+/).map(n=>Hw(n,r)).join(" ")),Hw=(i,r)=>{i=i.trim();let n=r.loose?Le[xe.XRANGELOOSE]:Le[xe.XRANGE];return i.replace(n,(u,a,o,p,g,v)=>{me("xRange",i,u,a,o,p,g,v);let c=Fe(o),_=c||Fe(p),b=_||Fe(g),I=b;return a==="="&&I&&(a=""),v=r.includePrerelease?"-0":"",c?a===">"||a==="<"?u="<0.0.0-0":u="*":a&&I?(_&&(p=0),g=0,a===">"?(a=">=",_?(o=+o+1,p=0,g=0):(p=+p+1,g=0)):a==="<="&&(a="<",_?o=+o+1:p=+p+1),a==="<"&&(v="-0"),u=`${a+o}.${p}.${g}${v}`):_?u=`>=${o}.0.0${v} <${+o+1}.0.0-0`:b&&(u=`>=${o}.${p}.0${v} <${o}.${+p+1}.0-0`),me("xRange return",u),u})},Uw=(i,r)=>(me("replaceStars",i,r),i.trim().replace(Le[xe.STAR],"")),Gw=(i,r)=>(me("replaceGTE0",i,r),i.trim().replace(Le[r.includePrerelease?xe.GTE0PRE:xe.GTE0],"")),Ww=i=>(r,n,u,a,o,p,g,v,c,_,b,I,P)=>(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)?v="":Fe(_)?v=`<${+c+1}.0.0-0`:Fe(b)?v=`<${c}.${+_+1}.0-0`:I?v=`<=${c}.${_}.${b}-${I}`:i?v=`<${c}.${_}.${+b+1}-0`:v=`<=${v}`,`${n} ${v}`.trim()),Bw=(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!==ru.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 Un=R((ex,th)=>{var Gn=Symbol("SemVer ANY"),Wn=class{static get ANY(){return Gn}constructor(r,n){if(n=kw(n),r instanceof Wn){if(r.loose===!!n.loose)return r;r=r.value}iu("comparator",r,n),this.options=n,this.loose=!!n.loose,this.parse(r),this.semver===Gn?this.value="":this.value=this.operator+this.semver.version,iu("comp",this)}parse(r){let n=this.options.loose?Jf[Zf.COMPARATORLOOSE]:Jf[Zf.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 Qf(u[2],this.options.loose):this.semver=Gn}toString(){return this.value}test(r){if(iu("Comparator.test",r,this.options.loose),this.semver===Gn||r===Gn)return!0;if(typeof r=="string")try{r=new Qf(r,this.options)}catch{return!1}return nu(r,this.operator,this.semver,this.options)}intersects(r,n){if(!(r instanceof Wn))throw new TypeError("a Comparator is required");if((!n||typeof n!="object")&&(n={loose:!!n,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new eh(r.value,n).test(this.value);if(r.operator==="")return r.value===""?!0:new eh(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=nu(this.semver,"<",r.semver,n)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),v=nu(this.semver,">",r.semver,n)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return u||a||o&&p||g||v}};th.exports=Wn;var kw=$n(),{re:Jf,t:Zf}=yr(),nu=Qo(),iu=qn(),Qf=Te(),eh=lt()});var Bn=R((tx,rh)=>{var Vw=lt(),zw=(i,r,n)=>{try{r=new Vw(r,n)}catch{return!1}return r.test(i)};rh.exports=zw});var ih=R((rx,nh)=>{var Xw=lt(),Yw=(i,r)=>new Xw(i,r).set.map(n=>n.map(u=>u.value).join(" ").trim().split(" "));nh.exports=Yw});var oh=R((nx,sh)=>{var Kw=Te(),Jw=lt(),Zw=(i,r,n)=>{let u=null,a=null,o=null;try{o=new Jw(r,n)}catch{return null}return i.forEach(p=>{o.test(p)&&(!u||a.compare(p)===-1)&&(u=p,a=new Kw(u,n))}),u};sh.exports=Zw});var ah=R((ix,uh)=>{var Qw=Te(),eb=lt(),tb=(i,r,n)=>{let u=null,a=null,o=null;try{o=new eb(r,n)}catch{return null}return i.forEach(p=>{o.test(p)&&(!u||a.compare(p)===1)&&(u=p,a=new Qw(u,n))}),u};uh.exports=tb});var fh=R((sx,ch)=>{var su=Te(),rb=lt(),lh=jn(),nb=(i,r)=>{i=new rb(i,r);let n=new su("0.0.0");if(i.test(n)||(n=new su("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 su(p.semver.version);switch(p.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!o||lh(g,o))&&(o=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${p.operator}`)}}),o&&(!n||lh(n,o))&&(n=o)}return n&&i.test(n)?n:null};ch.exports=nb});var ph=R((ox,hh)=>{var ib=lt(),sb=(i,r)=>{try{return new ib(i,r).range||"*"}catch{return null}};hh.exports=sb});var us=R((ux,vh)=>{var ob=Te(),dh=Un(),{ANY:ub}=dh,ab=lt(),lb=Bn(),gh=jn(),mh=ts(),cb=ns(),fb=rs(),hb=(i,r,n,u)=>{i=new ob(i,u),r=new ab(r,u);let a,o,p,g,v;switch(n){case">":a=gh,o=cb,p=mh,g=">",v=">=";break;case"<":a=mh,o=fb,p=gh,g="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(lb(i,r,u))return!1;for(let c=0;c<r.set.length;++c){let _=r.set[c],b=null,I=null;if(_.forEach(P=>{P.semver===ub&&(P=new dh(">=0.0.0")),b=b||P,I=I||P,a(P.semver,b.semver,u)?b=P:p(P.semver,I.semver,u)&&(I=P)}),b.operator===g||b.operator===v||(!I.operator||I.operator===g)&&o(i,I.semver))return!1;if(I.operator===v&&p(i,I.semver))return!1}return!0};vh.exports=hb});var yh=R((ax,_h)=>{var pb=us(),db=(i,r,n)=>pb(i,r,">",n);_h.exports=db});var wh=R((lx,Eh)=>{var gb=us(),mb=(i,r,n)=>gb(i,r,"<",n);Eh.exports=mb});var Ch=R((cx,Sh)=>{var bh=lt(),vb=(i,r,n)=>(i=new bh(i,n),r=new bh(r,n),i.intersects(r));Sh.exports=vb});var xh=R((fx,Oh)=>{var _b=Bn(),yb=at();Oh.exports=(i,r,n)=>{let u=[],a=null,o=null,p=i.sort((_,b)=>yb(_,b,n));for(let _ of p)_b(_,r,n)?(o=_,a||(a=_)):(o&&u.push([a,o]),o=null,a=null);a&&u.push([a,null]);let g=[];for(let[_,b]of u)_===b?g.push(_):!b&&_===p[0]?g.push("*"):b?_===p[0]?g.push(`<=${b}`):g.push(`${_} - ${b}`):g.push(`>=${_}`);let v=g.join(" || "),c=typeof r.raw=="string"?r.raw:String(r);return v.length<c.length?v:r}});var Th=R((hx,Ph)=>{var Ah=lt(),as=Un(),{ANY:ou}=as,kn=Bn(),uu=at(),Eb=(i,r,n={})=>{if(i===r)return!0;i=new Ah(i,n),r=new Ah(r,n);let u=!1;e:for(let a of i.set){for(let o of r.set){let p=wb(a,o,n);if(u=u||p!==null,p)continue e}if(u)return!1}return!0},wb=(i,r,n)=>{if(i===r)return!0;if(i.length===1&&i[0].semver===ou){if(r.length===1&&r[0].semver===ou)return!0;n.includePrerelease?i=[new as(">=0.0.0-0")]:i=[new as(">=0.0.0")]}if(r.length===1&&r[0].semver===ou){if(n.includePrerelease)return!0;r=[new as(">=0.0.0")]}let u=new Set,a,o;for(let P of i)P.operator===">"||P.operator===">="?a=Ih(a,P,n):P.operator==="<"||P.operator==="<="?o=Rh(o,P,n):u.add(P.semver);if(u.size>1)return null;let p;if(a&&o){if(p=uu(a.semver,o.semver,n),p>0)return null;if(p===0&&(a.operator!==">="||o.operator!=="<="))return null}for(let P of u){if(a&&!kn(P,String(a),n)||o&&!kn(P,String(o),n))return null;for(let H of r)if(!kn(P,String(H),n))return!1;return!0}let g,v,c,_,b=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1,I=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 P of r){if(_=_||P.operator===">"||P.operator===">=",c=c||P.operator==="<"||P.operator==="<=",a){if(I&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===I.major&&P.semver.minor===I.minor&&P.semver.patch===I.patch&&(I=!1),P.operator===">"||P.operator===">="){if(g=Ih(a,P,n),g===P&&g!==a)return!1}else if(a.operator===">="&&!kn(a.semver,String(P),n))return!1}if(o){if(b&&P.semver.prerelease&&P.semver.prerelease.length&&P.semver.major===b.major&&P.semver.minor===b.minor&&P.semver.patch===b.patch&&(b=!1),P.operator==="<"||P.operator==="<="){if(v=Rh(o,P,n),v===P&&v!==o)return!1}else if(o.operator==="<="&&!kn(o.semver,String(P),n))return!1}if(!P.operator&&(o||a)&&p!==0)return!1}return!(a&&c&&!o&&p!==0||o&&_&&!a&&p!==0||I||b)},Ih=(i,r,n)=>{if(!i)return r;let u=uu(i.semver,r.semver,n);return u>0?i:u<0||r.operator===">"&&i.operator===">="?r:i},Rh=(i,r,n)=>{if(!i)return r;let u=uu(i.semver,r.semver,n);return u<0?i:u>0||r.operator==="<"&&i.operator==="<="?r:i};Ph.exports=Eb});var Nh=R((px,Lh)=>{var au=yr();Lh.exports={re:au.re,src:au.src,tokens:au.t,SEMVER_SPEC_VERSION:Dn().SEMVER_SPEC_VERSION,SemVer:Te(),compareIdentifiers:Ki().compareIdentifiers,rcompareIdentifiers:Ki().rcompareIdentifiers,parse:Er(),valid:Zc(),clean:ef(),inc:rf(),diff:lf(),major:ff(),minor:pf(),patch:gf(),prerelease:vf(),compare:at(),rcompare:yf(),compareLoose:wf(),compareBuild:es(),sort:Of(),rsort:Af(),gt:jn(),lt:ts(),eq:Qi(),neq:Zo(),gte:rs(),lte:ns(),cmp:Qo(),coerce:qf(),Comparator:Un(),Range:lt(),satisfies:Bn(),toComparators:ih(),maxSatisfying:oh(),minSatisfying:ah(),minVersion:fh(),validRange:ph(),outside:us(),gtr:yh(),ltr:wh(),intersects:Ch(),simplifyRange:xh(),subset:Th()}});var Ae=R(Cr=>{"use strict";var Dh=Cr&&Cr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Cr,"__esModule",{value:!0});Cr.getCoreVersion=void 0;var qh=Dh(require("path")),$h=Dh(require("fs")),bb=Nh(),Sb=require("@serverless-devs/core"),lu=qh.default.join(Sb.getRootHome(),"cache","core"),Fh=qh.default.join(lu,"package.json");function Cb(){if($h.default.existsSync(Fh)){var i=require("@serverless-devs/core/package.json").version,r=jh();return bb.gt(r,i)?require(lu):require("@serverless-devs/core")}return require("@serverless-devs/core")}function jh(){return $h.default.existsSync(lu)?require(Fh).version:void 0}Cr.getCoreVersion=jh;Cr.default=Cb()});var Mh=R((gx,Ob)=>{Ob.exports={name:"@serverless-devs/s",version:"2.0.96",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=R(G=>{"use strict";var xb=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]}),Ab=G&&G.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Ib=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)&&xb(r,i,n);return Ab(r,i),r},Hh=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(_){try{c(u.next(_))}catch(b){p(b)}}function v(_){try{c(u.throw(_))}catch(b){p(b)}}function c(_){_.done?o(_.value):a(_.value).then(g,v)}c((u=u.apply(i,r||[])).next())})},Uh=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(_){return v([c,_])}}function v(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(_){c=[6,_],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ls=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=ls(require("path")),Je=ls(require("fs")),cu=ls(zr()),Rb=ls(require("os")),Pb=Or(),cs=Ib(Ae()),fu=cs.default.colors,Tb=cs.default.jsyaml,fs=Mh();G.red=fu.hex("#fd5750");G.bgRed=fu.hex("#000").bgHex("#fd5750");function Lb(){return(0,cs.getCoreVersion)()?fs.name+": "+fs.version+", @serverless-devs/core: "+(0,cs.getCoreVersion)()+", "+process.platform+"-"+process.arch+", node-"+process.version:fs.name+": "+fs.version+", "+process.platform+"-"+process.arch+", node-"+process.version}G.getVersion=Lb;function Nb(i){return Hh(this,void 0,void 0,function(){function r(a){return Hh(this,void 0,void 0,function(){var o,p;return Uh(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(v){return r(Ce.default.join(a,v))}))]):[3,2]);case 1:g.sent(),g.label=2;case 2:return[2]}})})}var n,u;return Uh(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=Nb;function Gh(i){var r=Je.default.readFileSync(i,"utf8");try{return Tb.load(r)}catch{if(["-h","--help"].includes(process.argv[2]))return;var n=Ce.default.basename(i);new Pb.HumanError({errorMessage:n+" format is incorrect",tips:"Please check the configuration of "+n+", Serverless Devs' Yaml specification document can refer to\uFF1A"+fu.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/yaml.md")}),process.exit(1)}}G.yamlLoad=Gh;function Vn(i,r){r===void 0&&(r=!1);var n=Je.default.readFileSync(i,"utf8"),u=r?JSON.parse(n):Gh(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 Wh(){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))&&Vn(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)&&Vn(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"))&&Vn(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"))&&Vn(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"))&&Vn(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=Wh;function Bh(i){return Je.default.existsSync(i)?i:null}G.checkTemplateFile=Bh;function kh(i,r){r===void 0&&(r=" ");for(var n="",u=0;u<i;u++)n=n+r;return n}G.printn=kh;function Vh(){return"en"}G.getLang=Vh;function hu(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=cu.default.trim(o.split("|")[0]);r[p]&&(i=i.replace(u[a],r[p]))}return i}G.replaceFun=hu;function zh(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:cu.default.trim(o[0]),desc:cu.default.trim(o[1])}}):[]}G.getTemplatekey=zh;function Xh(i,r){i.forEach(function(n){if(Je.default.existsSync(n)){var u=Je.default.readFileSync(n,"utf-8"),a=hu(u,r);Je.default.writeFileSync(n,a,"utf-8")}})}G.replaceTemplate=Xh;function Yh(i){if(!i)return i;var r=i.slice(-4);return"***********"+r}G.mark=Yh;function Db(i){return Rb.default.platform()==="win32"?"":i}G.emoji=Db;G.default={checkAndReturnTemplateFile:Wh,checkTemplateFile:Bh,printn:kh,mark:Yh,getLang:Vh,replaceTemplate:Xh,replaceFun:hu,getTemplatekey:zh}});var ps=R(Wt=>{"use strict";var Kh=Wt&&Wt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.getHistoryFile=Wt.getHomeDir=void 0;var qb=Kh(require("path")),Jh=Kh(Ae()),hs=Jh.default.fse,$b=Jh.default.getRootHome;function pu(){var i=$b();return hs.existsSync(i)||hs.mkdirSync(i),i}Wt.getHomeDir=pu;function Zh(){var i=qb.default.join(pu(),"history");return hs.existsSync(i)||hs.createFileSync(i),i}Wt.getHistoryFile=Zh;Wt.default={getHomeDir:pu,getHistoryFile:Zh}});var mu=R(je=>{"use strict";var Fb=je&&je.__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(_){try{c(u.next(_))}catch(b){p(b)}}function v(_){try{c(u.throw(_))}catch(b){p(b)}}function c(_){_.done?o(_.value):a(_.value).then(g,v)}c((u=u.apply(i,r||[])).next())})},jb=je&&je.__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(_){return v([c,_])}}function v(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(_){c=[6,_],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},du=je&&je.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(je,"__esModule",{value:!0});je.handlerProfileFile=je.getConfig=je.setConfig=void 0;var Qh=du(require("path")),Mb=du(ps()),gu=du(Ae()),wt=gu.default.fse,ds=gu.default.jsyaml,ep=gu.default.getRootHome;function Hb(i){var r=rp();wt.writeFileSync(r,ds.dump(i))}function tp(){var i=rp();if(!wt.existsSync(i))return{};try{var r=ds.load(wt.readFileSync(i,"utf8"))||{};return r}catch(n){throw n}}function rp(){var i=Qh.default.join(Mb.default.getHomeDir(),"set-config.yml");return wt.existsSync(i)||wt.createFileSync(i),i}function np(i,r){var n=tp();n[i]=r,Hb(n)}je.setConfig=np;function ip(i,r){var n=tp();return n[i]||r}je.getConfig=ip;function sp(i){return Fb(this,void 0,void 0,function(){var r,n,u,a,o,p,g;return jb(this,function(v){switch(v.label){case 0:if(r=i.filePath||"set-config.yml",n=Qh.default.join(ep(),r),u=wt.existsSync(n),a={},u)return[3,5];o=ep(),v.label=1;case 1:return v.trys.push([1,2,,4]),wt.statSync(o),[3,4];case 2:return p=v.sent(),[4,wt.mkdirSync(o)];case 3:return v.sent(),[3,4];case 4:return[3,6];case 5:try{a=ds.load(wt.readFileSync(n,"utf8"))||{}}catch(c){throw c}v.label=6;case 6:return i.read?[2,a]:(g=i.configKey||"",a[g]=i.data,[4,wt.writeFileSync(n,ds.dump(a))]);case 7:return v.sent(),[2,a]}})})}je.handlerProfileFile=sp;je.default={setConfig:np,getConfig:ip,handlerProfileFile:sp}});var xr=R(Jr=>{"use strict";var Ub=Jr&&Jr.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Jr,"__esModule",{value:!0});Jr.ServerlessError=void 0;var Gb=Ub(Ae()),Wb=Gb.default.Logger,Bb=new Wb("S-CLI-ERROR"),kb=function(){function i(r,n,u){Bb.error(r+": "+n,u),process.exit(1)}return i}();Jr.ServerlessError=kb});var op=R(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.CommandError=void 0;var zb=xr(),Xb=function(i){Vb(r,i);function r(n,u){return i.call(this,"Error",n,u)||this}return r}(zb.ServerlessError);Zr.CommandError=Xb});var up=R(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.ConfigDeleteError=void 0;var Kb=xr(),Jb=function(i){Yb(r,i);function r(n,u){return i.call(this,"Deletion failed",n,u)||this}return r}(Kb.ServerlessError);Qr.ConfigDeleteError=Jb});var ap=R(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.ConfigError=void 0;var Qb=xr(),eS=function(i){Zb(r,i);function r(n,u){return i.call(this,"Config failed",n,u)||this}return r}(Qb.ServerlessError);en.ConfigError=eS});var lp=R(tn=>{"use strict";var tS=tn&&tn.__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(tn,"__esModule",{value:!0});tn.ConfigGetError=void 0;var rS=xr(),nS=function(i){tS(r,i);function r(n,u){return i.call(this,"Get failed",n,u)||this}return r}(rS.ServerlessError);tn.ConfigGetError=nS});var cp=R(rn=>{"use strict";var iS=rn&&rn.__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(rn,"__esModule",{value:!0});rn.InitError=void 0;var sS=xr(),oS=function(i){iS(r,i);function r(n,u){return i.call(this,"Initialization failed",n,u)||this}return r}(sS.ServerlessError);rn.InitError=oS});var hp=R(bt=>{"use strict";var uS=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(_){try{c(u.next(_))}catch(b){p(b)}}function v(_){try{c(u.throw(_))}catch(b){p(b)}}function c(_){_.done?o(_.value):a(_.value).then(g,v)}c((u=u.apply(i,r||[])).next())})},aS=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(_){return v([c,_])}}function v(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(_){c=[6,_],a=0}finally{u=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},lS=bt&&bt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(bt,"__esModule",{value:!0});bt.HumanError=void 0;var fp=lS(Ae()),cS=Gt(),fS=fp.default.colors,hS=function(){function i(r){var n=r.errorMessage,u=r.tips;this.errorMessage=n,console.log(`
|
|
35
35
|
`+(0,cS.bgRed)("ERROR:")),console.log("TypeError: "+n+`
|
|
36
36
|
`),console.log(fS.gray(u)+`
|
|
37
37
|
`)}return i.prototype.report=function(r){return uS(this,void 0,void 0,function(){var n;return aS(this,function(u){switch(u.label){case 0:return n=r.error,[4,fp.default.report({type:"jsError",content:this.errorMessage+"||"+n.stack})];case 1:return u.sent(),[2]}})})},i}();bt.HumanError=hS});var dp=R(nn=>{"use strict";var pS=nn&&nn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(nn,"__esModule",{value:!0});nn.HumanWarning=void 0;var dS=pS(Ae()),pp=dS.default.colors,gS=function(){function i(r){var n=r.warningMessage,u=r.tips;console.log(`
|
package/lib/component/index.js
CHANGED
|
@@ -42,7 +42,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
42
42
|
`)),console.log((0,rc.bgRed)("ERROR:")+`
|
|
43
43
|
`+t+`
|
|
44
44
|
`),a!=="disable"&&console.log(Nn.gray("Please copy traceId: "+this.traceId+" and join Dingding group: 33947367 for consultation.")),console.log(Nn.gray("You can run 's clean --cache' to prune Serverless devs.")),console.log(Nn.gray(`And run again with the '--debug' option or 's -h' to get more logs.
|
|
45
|
-
`))}return r.prototype.report=function(e){return WI(this,void 0,void 0,function(){return GI(this,function(t){return zI({type:"jsError",content:e.message+"||"+e.stack,traceId:this.traceId}),[2]})})},r}();Ke.HandleError=n8});var Cm=C((wN,i8)=>{i8.exports={name:"@serverless-devs/s",version:"2.0.95",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 Fi=C(be=>{"use strict";var s8=be&&be.__createBinding||(Object.create?function(r,e,t,s){s===void 0&&(s=t),Object.defineProperty(r,s,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,s){s===void 0&&(s=t),r[s]=e[t]}),o8=be&&be.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),u8=be&&be.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&s8(e,r,t);return o8(e,r),e},Am=be&&be.__awaiter||function(r,e,t,s){function o(a){return a instanceof t?a:new t(function(c){c(a)})}return new(t||(t=Promise))(function(a,c){function f(m){try{p(s.next(m))}catch(b){c(b)}}function d(m){try{p(s.throw(m))}catch(b){c(b)}}function p(m){m.done?a(m.value):o(m.value).then(f,d)}p((s=s.apply(r,e||[])).next())})},Om=be&&be.__generator||function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},s,o,a,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(p){return function(m){return d([p,m])}}function d(p){if(s)throw new TypeError("Generator is already executing.");for(;t;)try{if(s=1,o&&(a=p[0]&2?o.return:p[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,p[1])).done)return a;switch(o=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return t.label++,{value:p[1],done:!1};case 5:t.label++,o=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){t.label=p[1];break}if(p[0]===6&&t.label<a[1]){t.label=a[1],a=p;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(p);break}a[2]&&t.ops.pop(),t.trys.pop();continue}p=e.call(r,t)}catch(m){p=[6,m],o=0}finally{s=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},gu=be&&be.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(be,"__esModule",{value:!0});be.emoji=be.mark=be.replaceTemplate=be.getTemplatekey=be.replaceFun=be.getLang=be.printn=be.checkTemplateFile=be.checkAndReturnTemplateFile=be.yamlLoad=be.getFolderSize=be.getVersion=be.bgRed=be.red=void 0;var vt=gu(require("path")),Vt=gu(require("fs")),oc=gu(im()),a8=gu(require("os")),l8=sc(),mu=u8(Fr()),uc=mu.default.colors,c8=mu.default.jsyaml,yu=Cm();be.red=uc.hex("#fd5750");be.bgRed=uc.hex("#000").bgHex("#fd5750");function f8(){return(0,mu.getCoreVersion)()?yu.name+": "+yu.version+", @serverless-devs/core: "+(0,mu.getCoreVersion)()+", "+process.platform+"-"+process.arch+", node-"+process.version:yu.name+": "+yu.version+", "+process.platform+"-"+process.arch+", node-"+process.version}be.getVersion=f8;function h8(r){return Am(this,void 0,void 0,function(){function e(o){return Am(this,void 0,void 0,function(){var a,c;return Om(this,function(f){switch(f.label){case 0:return a=Vt.default.lstatSync(o),typeof a!="object"?[2]:(t.set(a.ino,a.size),a.isDirectory()?(c=Vt.default.readdirSync(o),typeof c!="object"?[2]:[4,Promise.all(c.map(function(d){return e(vt.default.join(o,d))}))]):[3,2]);case 1:f.sent(),f.label=2;case 2:return[2]}})})}var t,s;return Om(this,function(o){switch(o.label){case 0:return t=new Map,[4,e(r)];case 1:return o.sent(),s=Array.from(t.values()).reduce(function(a,c){return a+c},0),[2,s]}})})}be.getFolderSize=h8;function Fm(r){var e=Vt.default.readFileSync(r,"utf8");try{return c8.load(e)}catch{if(["-h","--help"].includes(process.argv[2]))return;var t=vt.default.basename(r);new l8.HumanError({errorMessage:t+" format is incorrect",tips:"Please check the configuration of "+t+", Serverless Devs' Yaml specification document can refer to\uFF1A"+uc.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/yaml.md")}),process.exit(1)}}be.yamlLoad=Fm;function Is(r,e){e===void 0&&(e=!1);var t=Vt.default.readFileSync(r,"utf8"),s=e?JSON.parse(t):Fm(r);if(!s)return!1;for(var o in s)if(s[o].Component&&s[o].Provider&&s[o].Properties)return!0;return s.hasOwnProperty("edition")}function Sm(){if(process.env.serverless_devs_temp_template)return process.env.serverless_devs_temp_template;var r=process.cwd(),e=process.argv.includes("-t")?"-t":process.argv.includes("--template")?"--template":null,t=e?process.argv.indexOf(e):-1;if(t!==-1){var s=t+1,o=process.argv[s];if(o&&(o.endsWith(".yaml")||o.endsWith(".yml")||o.endsWith(".json"))){var a=!!o.endsWith(".json");if(Vt.default.existsSync(vt.default.join(r,o))&&Is(vt.default.join(r,o),a)){process.argv.splice(t,2);var c=JSON.parse(process.env.serverless_devs_temp_argv);return c.splice(c.indexOf(e),2),process.env.serverless_devs_temp_argv=JSON.stringify(c),process.env.serverless_devs_temp_template=vt.default.join(r,o),vt.default.join(r,o)}else if(Vt.default.existsSync(o)&&Is(o,a)){process.argv.splice(t,2);var c=JSON.parse(process.env.serverless_devs_temp_argv);return c.splice(c.indexOf(e),2),process.env.serverless_devs_temp_argv=JSON.stringify(c),process.env.serverless_devs_temp_template=o,o}}}return Vt.default.existsSync(vt.default.join(r,"s.yaml"))&&Is(vt.default.join(r,"s.yaml"))?(process.env.serverless_devs_temp_template=vt.default.join(r,"s.yaml"),vt.default.join(r,"s.yaml")):Vt.default.existsSync(vt.default.join(r,"s.yml"))&&Is(vt.default.join(r,"s.yml"))?(process.env.serverless_devs_temp_template=vt.default.join(r,"s.yml"),vt.default.join(r,"s.yml")):Vt.default.existsSync(vt.default.join(r,"s.json"))&&Is(vt.default.join(r,"s.json"),!0)?(process.env.serverless_devs_temp_template=vt.default.join(r,"s.json"),vt.default.join(r,"s.json")):null}be.checkAndReturnTemplateFile=Sm;function Im(r){return Vt.default.existsSync(r)?r:null}be.checkTemplateFile=Im;function Rm(r,e){e===void 0&&(e=" ");for(var t="",s=0;s<r;s++)t=t+e;return t}be.printn=Rm;function Tm(){return"en"}be.getLang=Tm;function ac(r,e){var t=/\{\{(.*?)\}\}/g,s=r.match(t);if(s)for(var o=0;o<s.length;o++){var a=s[o].replace(/{{|}}/g,""),c=oc.default.trim(a.split("|")[0]);e[c]&&(r=r.replace(s[o],e[c]))}return r}be.replaceFun=ac;function qm(r){var e=/\{\{(.*?)\}\}/g,t=r.match(e);return t?t.filter(function(s){return s}).map(function(s){var o=s.replace(/{{|}}/g,""),a=o.split("|");return{name:oc.default.trim(a[0]),desc:oc.default.trim(a[1])}}):[]}be.getTemplatekey=qm;function Pm(r,e){r.forEach(function(t){if(Vt.default.existsSync(t)){var s=Vt.default.readFileSync(t,"utf-8"),o=ac(s,e);Vt.default.writeFileSync(t,o,"utf-8")}})}be.replaceTemplate=Pm;function $m(r){if(!r)return r;var e=r.slice(-4);return"***********"+e}be.mark=$m;function p8(r){return a8.default.platform()==="win32"?"":r}be.emoji=p8;be.default={checkAndReturnTemplateFile:Sm,checkTemplateFile:Im,printn:Rm,mark:$m,getLang:Tm,replaceTemplate:Pm,replaceFun:ac,getTemplatekey:qm}});var Bm=C(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.default={clean_up_the_environment:"\u6E05\u7406\u73AF\u5883",display_help_for_command:"\u663E\u793A\u547D\u4EE4\u5E2E\u52A9",remove_components:"\u5220\u9664\u7EC4\u4EF6",delete_the_file_under_the_cache:"\u5220\u9664\u7F13\u5B58\u91CC\u7684\u7684<dirname>\u6587\u4EF6",record_your_log_information:"\u662F\u5426\u8BB0\u5F55\u60A8\u7684\u65E5\u5FD7\u4FE1\u606F\uFF1F",init_pproject_deploy_tip:"\u662F\u5426\u7ACB\u5373\u90E8\u7F72\u8BE5\u9879\u76EE\uFF1F",tip_for_a_serverless_project:"\u68C0\u6D4B\u5230\u5F53\u524D\u76EE\u5F55\u4E0B\u5DF2\u5B58\u5728\u4E00\u4E2AServerless-Devs\u9879\u76EE\uFF0C\u8BF7\u901A\u8FC7 's deploy' \u8FDB\u884C\u90E8\u7F72\u6216\u901A\u8FC7 's -h' \u83B7\u53D6\u66F4\u591A\u4FE1\u606F",create_a_new_project:"\u672A\u68C0\u6D4B\u5230 Serverless-Devs \u9879\u76EE\uFF0C\u662F\u5426\u65B0\u5EFA\u4E00\u4E2A\u9879\u76EE\uFF1F",en:"English (en)",zh:"\u4E2D\u6587 (zh)",select_current_language:"\u8BF7\u9009\u62E9\u5F53\u524D\u8BED\u8A00","app-tip":"\u8BF7\u9009\u62E9\u60A8\u5E0C\u671B\u521B\u5EFA\u7684 Serverless-Devs \u5E94\u7528","template-tip":"\u8BF7\u9009\u62E9\u60A8\u559C\u6B22\u7684\u6A21\u7248","fc-runtime-starter":"fc-runtime-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A FC \u51FD\u6570","fc-custom-container-stater":"fc-custom-container-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A custom-container \u5E94\u7528",web:"web-framework-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Web \u6846\u67B6","static-site":"static-website-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","best-practice":"serverless-best-practice - \u5FEB\u901F\u4F53\u9A8C Serverless \u6700\u4F73\u5B9E\u8DF5","devs-template":"Serverless Devs \u5F00\u53D1\u6A21\u677F","fc-http-nodejs":"fc-http-nodejs - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nodejs12 \u51FD\u6570","fc-http-python":"fc-http-python - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A python3 \u51FD\u6570","fc-http-java":"fc-http-java - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A java8 \u51FD\u6570","fc-custom-container-event-python3":"fc-custom-container-event-python3 - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 python3 \u5E94\u7528","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 cpp \u5E94\u7528","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 springboot \u5E94\u7528","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 aspdotnetcore \u5E94\u7528","express-starter":"express-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A express \u57FA\u7840\u5E94\u7528","koa-starter":"koa-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A koa \u57FA\u7840\u5E94\u7528","nuxtjs-starter":"nuxtjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nuxtjs \u57FA\u7840\u5E94\u7528","eggjs-starter":"eggjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A eggjs \u57FA\u7840\u5E94\u7528","flask-starter":"flask-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A flask \u57FA\u7840\u5E94\u7528","SpringBoot-starter":"SpringBoot-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A SpringBoot \u57FA\u7840\u5E94\u7528","Zblog-starter":"Zblog-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Zblog \u57FA\u7840\u5E94\u7528","website-starter":"website-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","react-starter":"react-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A React.js \u5E94\u7528","vue-starter":"vue-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Vue.js \u5E94\u7528",puppeteer:"puppeteer - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E puppeteer \u622A\u56FE\u7684 Web \u5E94\u7528",ffmpeg:"ffmpeg - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E ffmpeg \u5B9E\u73B0\u97F3\u89C6\u9891\u5904\u7406\u5E94\u7528",pdf2Img:"pdf2Img - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A pdf \u8F6C\u56FE\u7247\u5E94\u7528",tensorflow:"tensorflow - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A tensorflow \u5E94\u7528",todoList:"todoList - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E nodejs \u7684\u7F51\u9875 TodoList \u5E94\u7528"}});var Nm=C(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.default={clean_up_the_environment:"Clean up the environment",display_help_for_command:"Display help for command",remove_components:"Remove component (like: fc, fc@0.0.1)",delete_the_file_under_the_cache:"Delete the <dirname> file in the cache",record_your_log_information:"Do you record your log information?",init_pproject_deploy_tip:"Do you want to deploy the project immediately?",tip_for_a_serverless_project:"A Serverless-Devs project is detected in the current directory, please deploy via 's deploy' or get more information via 's -h'",create_a_new_project:"No Serverless-Devs project is currently detected. Do you want to create a new project?",en:"English (en)",zh:"Chinese (zh)",select_current_language:"Please select current language","app-tip":"Hello, serverlesser. Which template do you like?","template-tip":"Which template do you like?","fc-runtime-starter":"fc-runtime-starter - Deploy FC function in 5 minutes","fc-custom-container-stater":"fc-custom-container-stater - Deploy FC function with custom-container",web:"web-framework-stater-Quickly deploy a web framework","static-site":"static-website-stater-Quickly deploy a static website","best-practice":"serverless-best-practice-Quickly experience serverless best practices","devs-template":"Serverless Develop scaffold","fc-http-nodejs":"fc-http-nodejs - Deploy FC nodejs12 runtime function","fc-http-python":"fc-http-python - Deploy FC python3 runtime function","fc-http-java":"fc-http-java - Deploy FC java8 runtime function","fc-custom-container-event-python3":"fc-custom-container-event-python3 - Deploy python3 event-triggered application","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - Deploy cpp event-triggered application","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - Deploy springboot HTTP Request-triggered application","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - Deploy dotnetcore HTTP Request-triggered application","express-starter":"express-starter - Deploy express application","koa-starter":"koa-starter - Deploy koa application","nuxtjs-starter":"nuxtjs-starter - Deploy nuxtjs application","eggjs-starter":"eggjs-starter - Deploy eggjs application","flask-starter":"flask-starter - Deploy flask application","SpringBoot-starter":"SpringBoot-starter - Deploy SpringBoot application","Zblog-starter":"Zblog-starter - Deploy Zblog application","website-starter":"website-starter - Deploy static website","react-starter":"react-starter - Deploy React.js application","vue-starter":"vue-starter - Deploy Vue.js application",puppeteer:"puppeteer - Deploy screenshot application base on puppeteer + fc",ffmpeg:"ffmpeg - Deploy audio and video processing application base on ffmpeg + fc",pdf2Img:"pdf2Img - Deploy pdf to images application",tensorflow:"tensorflow - Deploy tensorflow application",todoList:"todoList - Deploy todoList application"}});var Lm=C(Rs=>{"use strict";var jm=Rs&&Rs.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Rs,"__esModule",{value:!0});var d8=Fi(),g8=jm(Bm()),m8=jm(Nm()),fc={en:m8.default,zh:g8.default},y8=function(r){var e=(0,d8.getLang)(),t=fc[e]?fc[e][r]:fc.en[r];return t||r};Rs.default=y8});var km=C(Ts=>{"use strict";var D8=Ts&&Ts.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ts,"__esModule",{value:!0});var Mm=D8(Fr()),v8=Mm.default.Logger,_8=Mm.default.spinner,jn=new v8("S-CLI"),b8=function(){function r(){}return r.log=function(e){jn.log(e)},r.info=function(e){jn.info(e)},r.debug=function(e){jn.debug(e)},r.error=function(e){jn.error(e)},r.warning=function(e){jn.warn(e)},r.success=function(e){jn.log(e,"green")},r.spinner=function(e){return _8(e)},r.output=function(e){return jn.output(e)},r}();Ts.default=b8});var Gm=C((SN,hc)=>{var Wm=require("stream"),E8=require("util");hc.exports=function(){let r,e;arguments.length===2?(r=arguments[0],e=arguments[1]):arguments.length===1?typeof arguments[0]=="function"?(r={},e=arguments[0]):r=arguments[0]:arguments.length===0&&(r={});let t=new Generator(r);if(e){let s=[];t.on("readable",function(){let o;for(;o=t.read();)s.push(o)}),t.on("error",e),t.on("end",function(){t.options.objectMode?e(null,s):t.options.encoding?e(null,s.join("")):e(null,Buffer.concat(s))})}return t};Generator=function(r={}){r.high_water_mark&&(r.highWaterMark=r.high_water_mark),r.object_mode&&(r.objectMode=r.object_mode),Wm.Readable.call(this,r),this.options={};for(let s in r)this.options[Generator.camelize(s)]=r[s];let e={columns:8,delimiter:",",duration:null,encoding:null,end:null,eof:!1,fixedSize:!1,length:-1,maxWordLength:16,rowDelimiter:`
|
|
45
|
+
`))}return r.prototype.report=function(e){return WI(this,void 0,void 0,function(){return GI(this,function(t){return zI({type:"jsError",content:e.message+"||"+e.stack,traceId:this.traceId}),[2]})})},r}();Ke.HandleError=n8});var Cm=C((wN,i8)=>{i8.exports={name:"@serverless-devs/s",version:"2.0.96",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 Fi=C(be=>{"use strict";var s8=be&&be.__createBinding||(Object.create?function(r,e,t,s){s===void 0&&(s=t),Object.defineProperty(r,s,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,s){s===void 0&&(s=t),r[s]=e[t]}),o8=be&&be.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),u8=be&&be.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&s8(e,r,t);return o8(e,r),e},Am=be&&be.__awaiter||function(r,e,t,s){function o(a){return a instanceof t?a:new t(function(c){c(a)})}return new(t||(t=Promise))(function(a,c){function f(m){try{p(s.next(m))}catch(b){c(b)}}function d(m){try{p(s.throw(m))}catch(b){c(b)}}function p(m){m.done?a(m.value):o(m.value).then(f,d)}p((s=s.apply(r,e||[])).next())})},Om=be&&be.__generator||function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},s,o,a,c;return c={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function f(p){return function(m){return d([p,m])}}function d(p){if(s)throw new TypeError("Generator is already executing.");for(;t;)try{if(s=1,o&&(a=p[0]&2?o.return:p[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,p[1])).done)return a;switch(o=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return t.label++,{value:p[1],done:!1};case 5:t.label++,o=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){t.label=p[1];break}if(p[0]===6&&t.label<a[1]){t.label=a[1],a=p;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(p);break}a[2]&&t.ops.pop(),t.trys.pop();continue}p=e.call(r,t)}catch(m){p=[6,m],o=0}finally{s=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},gu=be&&be.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(be,"__esModule",{value:!0});be.emoji=be.mark=be.replaceTemplate=be.getTemplatekey=be.replaceFun=be.getLang=be.printn=be.checkTemplateFile=be.checkAndReturnTemplateFile=be.yamlLoad=be.getFolderSize=be.getVersion=be.bgRed=be.red=void 0;var vt=gu(require("path")),Vt=gu(require("fs")),oc=gu(im()),a8=gu(require("os")),l8=sc(),mu=u8(Fr()),uc=mu.default.colors,c8=mu.default.jsyaml,yu=Cm();be.red=uc.hex("#fd5750");be.bgRed=uc.hex("#000").bgHex("#fd5750");function f8(){return(0,mu.getCoreVersion)()?yu.name+": "+yu.version+", @serverless-devs/core: "+(0,mu.getCoreVersion)()+", "+process.platform+"-"+process.arch+", node-"+process.version:yu.name+": "+yu.version+", "+process.platform+"-"+process.arch+", node-"+process.version}be.getVersion=f8;function h8(r){return Am(this,void 0,void 0,function(){function e(o){return Am(this,void 0,void 0,function(){var a,c;return Om(this,function(f){switch(f.label){case 0:return a=Vt.default.lstatSync(o),typeof a!="object"?[2]:(t.set(a.ino,a.size),a.isDirectory()?(c=Vt.default.readdirSync(o),typeof c!="object"?[2]:[4,Promise.all(c.map(function(d){return e(vt.default.join(o,d))}))]):[3,2]);case 1:f.sent(),f.label=2;case 2:return[2]}})})}var t,s;return Om(this,function(o){switch(o.label){case 0:return t=new Map,[4,e(r)];case 1:return o.sent(),s=Array.from(t.values()).reduce(function(a,c){return a+c},0),[2,s]}})})}be.getFolderSize=h8;function Fm(r){var e=Vt.default.readFileSync(r,"utf8");try{return c8.load(e)}catch{if(["-h","--help"].includes(process.argv[2]))return;var t=vt.default.basename(r);new l8.HumanError({errorMessage:t+" format is incorrect",tips:"Please check the configuration of "+t+", Serverless Devs' Yaml specification document can refer to\uFF1A"+uc.underline("https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/yaml.md")}),process.exit(1)}}be.yamlLoad=Fm;function Is(r,e){e===void 0&&(e=!1);var t=Vt.default.readFileSync(r,"utf8"),s=e?JSON.parse(t):Fm(r);if(!s)return!1;for(var o in s)if(s[o].Component&&s[o].Provider&&s[o].Properties)return!0;return s.hasOwnProperty("edition")}function Sm(){if(process.env.serverless_devs_temp_template)return process.env.serverless_devs_temp_template;var r=process.cwd(),e=process.argv.includes("-t")?"-t":process.argv.includes("--template")?"--template":null,t=e?process.argv.indexOf(e):-1;if(t!==-1){var s=t+1,o=process.argv[s];if(o&&(o.endsWith(".yaml")||o.endsWith(".yml")||o.endsWith(".json"))){var a=!!o.endsWith(".json");if(Vt.default.existsSync(vt.default.join(r,o))&&Is(vt.default.join(r,o),a)){process.argv.splice(t,2);var c=JSON.parse(process.env.serverless_devs_temp_argv);return c.splice(c.indexOf(e),2),process.env.serverless_devs_temp_argv=JSON.stringify(c),process.env.serverless_devs_temp_template=vt.default.join(r,o),vt.default.join(r,o)}else if(Vt.default.existsSync(o)&&Is(o,a)){process.argv.splice(t,2);var c=JSON.parse(process.env.serverless_devs_temp_argv);return c.splice(c.indexOf(e),2),process.env.serverless_devs_temp_argv=JSON.stringify(c),process.env.serverless_devs_temp_template=o,o}}}return Vt.default.existsSync(vt.default.join(r,"s.yaml"))&&Is(vt.default.join(r,"s.yaml"))?(process.env.serverless_devs_temp_template=vt.default.join(r,"s.yaml"),vt.default.join(r,"s.yaml")):Vt.default.existsSync(vt.default.join(r,"s.yml"))&&Is(vt.default.join(r,"s.yml"))?(process.env.serverless_devs_temp_template=vt.default.join(r,"s.yml"),vt.default.join(r,"s.yml")):Vt.default.existsSync(vt.default.join(r,"s.json"))&&Is(vt.default.join(r,"s.json"),!0)?(process.env.serverless_devs_temp_template=vt.default.join(r,"s.json"),vt.default.join(r,"s.json")):null}be.checkAndReturnTemplateFile=Sm;function Im(r){return Vt.default.existsSync(r)?r:null}be.checkTemplateFile=Im;function Rm(r,e){e===void 0&&(e=" ");for(var t="",s=0;s<r;s++)t=t+e;return t}be.printn=Rm;function Tm(){return"en"}be.getLang=Tm;function ac(r,e){var t=/\{\{(.*?)\}\}/g,s=r.match(t);if(s)for(var o=0;o<s.length;o++){var a=s[o].replace(/{{|}}/g,""),c=oc.default.trim(a.split("|")[0]);e[c]&&(r=r.replace(s[o],e[c]))}return r}be.replaceFun=ac;function qm(r){var e=/\{\{(.*?)\}\}/g,t=r.match(e);return t?t.filter(function(s){return s}).map(function(s){var o=s.replace(/{{|}}/g,""),a=o.split("|");return{name:oc.default.trim(a[0]),desc:oc.default.trim(a[1])}}):[]}be.getTemplatekey=qm;function Pm(r,e){r.forEach(function(t){if(Vt.default.existsSync(t)){var s=Vt.default.readFileSync(t,"utf-8"),o=ac(s,e);Vt.default.writeFileSync(t,o,"utf-8")}})}be.replaceTemplate=Pm;function $m(r){if(!r)return r;var e=r.slice(-4);return"***********"+e}be.mark=$m;function p8(r){return a8.default.platform()==="win32"?"":r}be.emoji=p8;be.default={checkAndReturnTemplateFile:Sm,checkTemplateFile:Im,printn:Rm,mark:$m,getLang:Tm,replaceTemplate:Pm,replaceFun:ac,getTemplatekey:qm}});var Bm=C(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.default={clean_up_the_environment:"\u6E05\u7406\u73AF\u5883",display_help_for_command:"\u663E\u793A\u547D\u4EE4\u5E2E\u52A9",remove_components:"\u5220\u9664\u7EC4\u4EF6",delete_the_file_under_the_cache:"\u5220\u9664\u7F13\u5B58\u91CC\u7684\u7684<dirname>\u6587\u4EF6",record_your_log_information:"\u662F\u5426\u8BB0\u5F55\u60A8\u7684\u65E5\u5FD7\u4FE1\u606F\uFF1F",init_pproject_deploy_tip:"\u662F\u5426\u7ACB\u5373\u90E8\u7F72\u8BE5\u9879\u76EE\uFF1F",tip_for_a_serverless_project:"\u68C0\u6D4B\u5230\u5F53\u524D\u76EE\u5F55\u4E0B\u5DF2\u5B58\u5728\u4E00\u4E2AServerless-Devs\u9879\u76EE\uFF0C\u8BF7\u901A\u8FC7 's deploy' \u8FDB\u884C\u90E8\u7F72\u6216\u901A\u8FC7 's -h' \u83B7\u53D6\u66F4\u591A\u4FE1\u606F",create_a_new_project:"\u672A\u68C0\u6D4B\u5230 Serverless-Devs \u9879\u76EE\uFF0C\u662F\u5426\u65B0\u5EFA\u4E00\u4E2A\u9879\u76EE\uFF1F",en:"English (en)",zh:"\u4E2D\u6587 (zh)",select_current_language:"\u8BF7\u9009\u62E9\u5F53\u524D\u8BED\u8A00","app-tip":"\u8BF7\u9009\u62E9\u60A8\u5E0C\u671B\u521B\u5EFA\u7684 Serverless-Devs \u5E94\u7528","template-tip":"\u8BF7\u9009\u62E9\u60A8\u559C\u6B22\u7684\u6A21\u7248","fc-runtime-starter":"fc-runtime-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A FC \u51FD\u6570","fc-custom-container-stater":"fc-custom-container-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A custom-container \u5E94\u7528",web:"web-framework-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Web \u6846\u67B6","static-site":"static-website-stater - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","best-practice":"serverless-best-practice - \u5FEB\u901F\u4F53\u9A8C Serverless \u6700\u4F73\u5B9E\u8DF5","devs-template":"Serverless Devs \u5F00\u53D1\u6A21\u677F","fc-http-nodejs":"fc-http-nodejs - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nodejs12 \u51FD\u6570","fc-http-python":"fc-http-python - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A python3 \u51FD\u6570","fc-http-java":"fc-http-java - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A java8 \u51FD\u6570","fc-custom-container-event-python3":"fc-custom-container-event-python3 - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 python3 \u5E94\u7528","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7\u4E8B\u4EF6\u89E6\u53D1\u7684 cpp \u5E94\u7528","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 springboot \u5E94\u7528","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u901A\u8FC7 HTTP \u8BF7\u6C42\u89E6\u53D1\u7684 aspdotnetcore \u5E94\u7528","express-starter":"express-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A express \u57FA\u7840\u5E94\u7528","koa-starter":"koa-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A koa \u57FA\u7840\u5E94\u7528","nuxtjs-starter":"nuxtjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A nuxtjs \u57FA\u7840\u5E94\u7528","eggjs-starter":"eggjs-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A eggjs \u57FA\u7840\u5E94\u7528","flask-starter":"flask-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A flask \u57FA\u7840\u5E94\u7528","SpringBoot-starter":"SpringBoot-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A SpringBoot \u57FA\u7840\u5E94\u7528","Zblog-starter":"Zblog-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Zblog \u57FA\u7840\u5E94\u7528","website-starter":"website-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u9759\u6001\u7F51\u7AD9","react-starter":"react-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A React.js \u5E94\u7528","vue-starter":"vue-starter - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A Vue.js \u5E94\u7528",puppeteer:"puppeteer - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E puppeteer \u622A\u56FE\u7684 Web \u5E94\u7528",ffmpeg:"ffmpeg - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E ffmpeg \u5B9E\u73B0\u97F3\u89C6\u9891\u5904\u7406\u5E94\u7528",pdf2Img:"pdf2Img - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A pdf \u8F6C\u56FE\u7247\u5E94\u7528",tensorflow:"tensorflow - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A tensorflow \u5E94\u7528",todoList:"todoList - \u5FEB\u901F\u90E8\u7F72\u4E00\u4E2A\u57FA\u4E8E nodejs \u7684\u7F51\u9875 TodoList \u5E94\u7528"}});var Nm=C(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.default={clean_up_the_environment:"Clean up the environment",display_help_for_command:"Display help for command",remove_components:"Remove component (like: fc, fc@0.0.1)",delete_the_file_under_the_cache:"Delete the <dirname> file in the cache",record_your_log_information:"Do you record your log information?",init_pproject_deploy_tip:"Do you want to deploy the project immediately?",tip_for_a_serverless_project:"A Serverless-Devs project is detected in the current directory, please deploy via 's deploy' or get more information via 's -h'",create_a_new_project:"No Serverless-Devs project is currently detected. Do you want to create a new project?",en:"English (en)",zh:"Chinese (zh)",select_current_language:"Please select current language","app-tip":"Hello, serverlesser. Which template do you like?","template-tip":"Which template do you like?","fc-runtime-starter":"fc-runtime-starter - Deploy FC function in 5 minutes","fc-custom-container-stater":"fc-custom-container-stater - Deploy FC function with custom-container",web:"web-framework-stater-Quickly deploy a web framework","static-site":"static-website-stater-Quickly deploy a static website","best-practice":"serverless-best-practice-Quickly experience serverless best practices","devs-template":"Serverless Develop scaffold","fc-http-nodejs":"fc-http-nodejs - Deploy FC nodejs12 runtime function","fc-http-python":"fc-http-python - Deploy FC python3 runtime function","fc-http-java":"fc-http-java - Deploy FC java8 runtime function","fc-custom-container-event-python3":"fc-custom-container-event-python3 - Deploy python3 event-triggered application","fc-custom-container-event-cpp":"fc-custom-container-event-cpp - Deploy cpp event-triggered application","fc-custom-container-http-springboot":"fc-custom-container-http-springboot - Deploy springboot HTTP Request-triggered application","fc-custom-container-http-aspdotnetcore":"fc-custom-container-http-aspdotnetcore - Deploy dotnetcore HTTP Request-triggered application","express-starter":"express-starter - Deploy express application","koa-starter":"koa-starter - Deploy koa application","nuxtjs-starter":"nuxtjs-starter - Deploy nuxtjs application","eggjs-starter":"eggjs-starter - Deploy eggjs application","flask-starter":"flask-starter - Deploy flask application","SpringBoot-starter":"SpringBoot-starter - Deploy SpringBoot application","Zblog-starter":"Zblog-starter - Deploy Zblog application","website-starter":"website-starter - Deploy static website","react-starter":"react-starter - Deploy React.js application","vue-starter":"vue-starter - Deploy Vue.js application",puppeteer:"puppeteer - Deploy screenshot application base on puppeteer + fc",ffmpeg:"ffmpeg - Deploy audio and video processing application base on ffmpeg + fc",pdf2Img:"pdf2Img - Deploy pdf to images application",tensorflow:"tensorflow - Deploy tensorflow application",todoList:"todoList - Deploy todoList application"}});var Lm=C(Rs=>{"use strict";var jm=Rs&&Rs.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Rs,"__esModule",{value:!0});var d8=Fi(),g8=jm(Bm()),m8=jm(Nm()),fc={en:m8.default,zh:g8.default},y8=function(r){var e=(0,d8.getLang)(),t=fc[e]?fc[e][r]:fc.en[r];return t||r};Rs.default=y8});var km=C(Ts=>{"use strict";var D8=Ts&&Ts.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ts,"__esModule",{value:!0});var Mm=D8(Fr()),v8=Mm.default.Logger,_8=Mm.default.spinner,jn=new v8("S-CLI"),b8=function(){function r(){}return r.log=function(e){jn.log(e)},r.info=function(e){jn.info(e)},r.debug=function(e){jn.debug(e)},r.error=function(e){jn.error(e)},r.warning=function(e){jn.warn(e)},r.success=function(e){jn.log(e,"green")},r.spinner=function(e){return _8(e)},r.output=function(e){return jn.output(e)},r}();Ts.default=b8});var Gm=C((SN,hc)=>{var Wm=require("stream"),E8=require("util");hc.exports=function(){let r,e;arguments.length===2?(r=arguments[0],e=arguments[1]):arguments.length===1?typeof arguments[0]=="function"?(r={},e=arguments[0]):r=arguments[0]:arguments.length===0&&(r={});let t=new Generator(r);if(e){let s=[];t.on("readable",function(){let o;for(;o=t.read();)s.push(o)}),t.on("error",e),t.on("end",function(){t.options.objectMode?e(null,s):t.options.encoding?e(null,s.join("")):e(null,Buffer.concat(s))})}return t};Generator=function(r={}){r.high_water_mark&&(r.highWaterMark=r.high_water_mark),r.object_mode&&(r.objectMode=r.object_mode),Wm.Readable.call(this,r),this.options={};for(let s in r)this.options[Generator.camelize(s)]=r[s];let e={columns:8,delimiter:",",duration:null,encoding:null,end:null,eof:!1,fixedSize:!1,length:-1,maxWordLength:16,rowDelimiter:`
|
|
46
46
|
`,seed:!1,sleep:0};for(let s in e)this.options[s]===void 0&&(this.options[s]=e[s]);this.options.eof===!0&&(this.options.eof=this.options.rowDelimiter),this._={start_time:this.options.duration?Date.now():null,fixed_size_buffer:"",count_written:0,count_created:0},typeof this.options.columns=="number"&&(this.options.columns=new Array(this.options.columns));let t=Object.keys(Generator).filter(s=>!["super_","camelize"].includes(s));for(let s=0;s<this.options.columns.length;s++){let o=this.options.columns[s]||"ascii";if(typeof o=="string"){if(!t.includes(o))throw Error(`Invalid column type: got "${o}", default values are ${JSON.stringify(t)}`);this.options.columns[s]=Generator[o]}}return this};E8.inherits(Generator,Wm.Readable);hc.exports.Generator=Generator;Generator.prototype.random=function(){return this.options.seed?this.options.seed=this.options.seed*Math.PI*100%100/100:Math.random()};Generator.prototype.end=function(){this.push(null)};Generator.prototype._read=function(r){let e=[],t=this._.fixed_size_buffer.length;for(t!==0&&e.push(this._.fixed_size_buffer);;){if(this._.count_created===this.options.length||this.options.end&&Date.now()>this.options.end||this.options.duration&&Date.now()>this._.start_time+this.options.duration){if(e.length)if(this.options.objectMode)for(let a of e)this.__push(a);else this.__push(e.join("")+(this.options.eof?this.options.eof:""));return this.push(null)}let s=[],o;if(this.options.columns.forEach(a=>{s.push(a(this))}),this.options.objectMode){o=0;for(let a of s)o+=a.length}else s=(this._.count_created===0?"":this.options.rowDelimiter)+s.join(this.options.delimiter),o=s.length;if(this._.count_created++,t+o>r){if(this.options.objectMode){e.push(s);for(let a of e)this.__push(a)}else this.options.fixedSize?(this._.fixed_size_buffer=s.substr(r-t),e.push(s.substr(0,r-t))):e.push(s),this.__push(e.join(""));return}t+=o,e.push(s)}};Generator.prototype.__push=function(r){this._.count_written++,this.options.sleep>0?setTimeout(()=>{this.push(r)},this.options.sleep):this.push(r)};Generator.ascii=function(r){let e=[],t=Math.ceil(r.random()*r.options.maxWordLength);for(let s=0;s<t;s++){let o=Math.floor(r.random()*32);e.push(String.fromCharCode(o+(o<16?65:97-16)))}return e.join("")};Generator.int=function(r){return Math.floor(r.random()*Math.pow(2,52))};Generator.bool=function(r){return Math.floor(r.random()*2)};Generator.camelize=function(r){return r.replace(/_([a-z])/gi,function(e,t,s){return t.toUpperCase()})}});var zm=C((IN,Hm)=>{var Um=class{constructor(e=100){this.size=e,this.length=0,this.buf=Buffer.alloc(e)}prepend(e){if(Buffer.isBuffer(e)){let t=this.length+e.length;if(t>=this.size&&(this.resize(),t>=this.size))throw Error("INVALID_BUFFER_STATE");let s=this.buf;this.buf=Buffer.alloc(this.size),e.copy(this.buf,0),s.copy(this.buf,e.length),this.length+=e.length}else{let t=this.length++;t===this.size&&this.resize();let s=this.clone();this.buf[0]=e,s.copy(this.buf,1,0,t)}}append(e){let t=this.length++;t===this.size&&this.resize(),this.buf[t]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size=this.size*2;let t=Buffer.alloc(this.size);this.buf.copy(t,0,0,e),this.buf=t}toString(e){return e?this.buf.slice(0,this.length).toString(e):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}};Hm.exports=Um});var Zm=C((RN,Xm)=>{var{Transform:w8}=require("stream"),Vm=zm(),x8=9,Du=10,C8=12,pc=13,A8=32,vu={utf8:Buffer.from([239,187,191]),utf16le:Buffer.from([255,254])},dc=class extends w8{constructor(e={}){super(sn(qt({readableObjectMode:!0},e),{encoding:null}));this.__originalOptions=e,this.__normalizeOptions(e)}__normalizeOptions(e){let t={};for(let c in e)t[O8(c)]=e[c];if(t.encoding===void 0||t.encoding===!0)t.encoding="utf8";else if(t.encoding===null||t.encoding===!1)t.encoding=null;else if(typeof t.encoding!="string"&&t.encoding!==null)throw new Ue("CSV_INVALID_OPTION_ENCODING",["Invalid option encoding:","encoding must be a string or null to return a buffer,",`got ${JSON.stringify(t.encoding)}`],t);if(t.bom===void 0||t.bom===null||t.bom===!1)t.bom=!1;else if(t.bom!==!0)throw new Ue("CSV_INVALID_OPTION_BOM",["Invalid option bom:","bom must be true,",`got ${JSON.stringify(t.bom)}`],t);let s=null;if(t.cast===void 0||t.cast===null||t.cast===!1||t.cast==="")t.cast=void 0;else if(typeof t.cast=="function")s=t.cast,t.cast=!0;else if(t.cast!==!0)throw new Ue("CSV_INVALID_OPTION_CAST",["Invalid option cast:","cast must be true or a function,",`got ${JSON.stringify(t.cast)}`],t);if(t.cast_date===void 0||t.cast_date===null||t.cast_date===!1||t.cast_date==="")t.cast_date=!1;else if(t.cast_date===!0)t.cast_date=function(c){let f=Date.parse(c);return isNaN(f)?c:new Date(f)};else throw new Ue("CSV_INVALID_OPTION_CAST_DATE",["Invalid option cast_date:","cast_date must be true or a function,",`got ${JSON.stringify(t.cast_date)}`],t);let o=null;if(t.columns===!0)o=void 0;else if(typeof t.columns=="function")o=t.columns,t.columns=!0;else if(Array.isArray(t.columns))t.columns=Ym(t.columns);else if(t.columns===void 0||t.columns===null||t.columns===!1)t.columns=!1;else throw new Ue("CSV_INVALID_OPTION_COLUMNS",["Invalid option columns:","expect an array, a function or true,",`got ${JSON.stringify(t.columns)}`],t);if(t.columns_duplicates_to_array===void 0||t.columns_duplicates_to_array===null||t.columns_duplicates_to_array===!1)t.columns_duplicates_to_array=!1;else{if(t.columns_duplicates_to_array!==!0)throw new Ue("CSV_INVALID_OPTION_COLUMNS_DUPLICATES_TO_ARRAY",["Invalid option columns_duplicates_to_array:","expect an boolean,",`got ${JSON.stringify(t.columns_duplicates_to_array)}`],t);if(t.columns===!1)throw new Ue("CSV_INVALID_OPTION_COLUMNS_DUPLICATES_TO_ARRAY",["Invalid option columns_duplicates_to_array:","the `columns` mode must be activated."],t)}if(t.comment===void 0||t.comment===null||t.comment===!1||t.comment==="")t.comment=null;else if(typeof t.comment=="string"&&(t.comment=Buffer.from(t.comment,t.encoding)),!Buffer.isBuffer(t.comment))throw new Ue("CSV_INVALID_OPTION_COMMENT",["Invalid option comment:","comment must be a buffer or a string,",`got ${JSON.stringify(t.comment)}`],t);let a=JSON.stringify(t.delimiter);if(Array.isArray(t.delimiter)||(t.delimiter=[t.delimiter]),t.delimiter.length===0)throw new Ue("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${a}`],t);if(t.delimiter=t.delimiter.map(function(c){if(c==null||c===!1)return Buffer.from(",",t.encoding);if(typeof c=="string"&&(c=Buffer.from(c,t.encoding)),!Buffer.isBuffer(c)||c.length===0)throw new Ue("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${a}`],t);return c}),t.escape===void 0||t.escape===!0?t.escape=Buffer.from('"',t.encoding):typeof t.escape=="string"?t.escape=Buffer.from(t.escape,t.encoding):(t.escape===null||t.escape===!1)&&(t.escape=null),t.escape!==null&&!Buffer.isBuffer(t.escape))throw new Error(`Invalid Option: escape must be a buffer, a string or a boolean, got ${JSON.stringify(t.escape)}`);if(t.from===void 0||t.from===null)t.from=1;else if(typeof t.from=="string"&&/\d+/.test(t.from)&&(t.from=parseInt(t.from)),Number.isInteger(t.from)){if(t.from<0)throw new Error(`Invalid Option: from must be a positive integer, got ${JSON.stringify(e.from)}`)}else throw new Error(`Invalid Option: from must be an integer, got ${JSON.stringify(t.from)}`);if(t.from_line===void 0||t.from_line===null)t.from_line=1;else if(typeof t.from_line=="string"&&/\d+/.test(t.from_line)&&(t.from_line=parseInt(t.from_line)),Number.isInteger(t.from_line)){if(t.from_line<=0)throw new Error(`Invalid Option: from_line must be a positive integer greater than 0, got ${JSON.stringify(e.from_line)}`)}else throw new Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(e.from_line)}`);if(t.ignore_last_delimiters===void 0||t.ignore_last_delimiters===null)t.ignore_last_delimiters=!1;else if(typeof t.ignore_last_delimiters=="number")t.ignore_last_delimiters=Math.floor(t.ignore_last_delimiters),t.ignore_last_delimiters===0&&(t.ignore_last_delimiters=!1);else if(typeof t.ignore_last_delimiters!="boolean")throw new Ue("CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS",["Invalid option `ignore_last_delimiters`:","the value must be a boolean value or an integer,",`got ${JSON.stringify(t.ignore_last_delimiters)}`],t);if(t.ignore_last_delimiters===!0&&t.columns===!1)throw new Ue("CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS",["The option `ignore_last_delimiters`","requires the activation of the `columns` option"],t);if(t.info===void 0||t.info===null||t.info===!1)t.info=!1;else if(t.info!==!0)throw new Error(`Invalid Option: info must be true, got ${JSON.stringify(t.info)}`);if(t.max_record_size===void 0||t.max_record_size===null||t.max_record_size===!1)t.max_record_size=0;else if(!(Number.isInteger(t.max_record_size)&&t.max_record_size>=0))if(typeof t.max_record_size=="string"&&/\d+/.test(t.max_record_size))t.max_record_size=parseInt(t.max_record_size);else throw new Error(`Invalid Option: max_record_size must be a positive integer, got ${JSON.stringify(t.max_record_size)}`);if(t.objname===void 0||t.objname===null||t.objname===!1)t.objname=void 0;else if(Buffer.isBuffer(t.objname)){if(t.objname.length===0)throw new Error("Invalid Option: objname must be a non empty buffer");t.encoding===null||(t.objname=t.objname.toString(t.encoding))}else if(typeof t.objname=="string"){if(t.objname.length===0)throw new Error("Invalid Option: objname must be a non empty string")}else throw new Error(`Invalid Option: objname must be a string or a buffer, got ${t.objname}`);if(t.on_record===void 0||t.on_record===null)t.on_record=void 0;else if(typeof t.on_record!="function")throw new Ue("CSV_INVALID_OPTION_ON_RECORD",["Invalid option `on_record`:","expect a function,",`got ${JSON.stringify(t.on_record)}`],t);if(t.quote===null||t.quote===!1||t.quote==="")t.quote=null;else if(t.quote===void 0||t.quote===!0?t.quote=Buffer.from('"',t.encoding):typeof t.quote=="string"&&(t.quote=Buffer.from(t.quote,t.encoding)),!Buffer.isBuffer(t.quote))throw new Error(`Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(t.quote)}`);if(t.raw===void 0||t.raw===null||t.raw===!1)t.raw=!1;else if(t.raw!==!0)throw new Error(`Invalid Option: raw must be true, got ${JSON.stringify(t.raw)}`);if(t.record_delimiter?Array.isArray(t.record_delimiter)||(t.record_delimiter=[t.record_delimiter]):t.record_delimiter=[],t.record_delimiter=t.record_delimiter.map(function(c){return typeof c=="string"&&(c=Buffer.from(c,t.encoding)),c}),typeof t.relax!="boolean")if(t.relax===void 0||t.relax===null)t.relax=!1;else throw new Error(`Invalid Option: relax must be a boolean, got ${JSON.stringify(t.relax)}`);if(typeof t.relax_column_count!="boolean")if(t.relax_column_count===void 0||t.relax_column_count===null)t.relax_column_count=!1;else throw new Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(t.relax_column_count)}`);if(typeof t.relax_column_count_less!="boolean")if(t.relax_column_count_less===void 0||t.relax_column_count_less===null)t.relax_column_count_less=!1;else throw new Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(t.relax_column_count_less)}`);if(typeof t.relax_column_count_more!="boolean")if(t.relax_column_count_more===void 0||t.relax_column_count_more===null)t.relax_column_count_more=!1;else throw new Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(t.relax_column_count_more)}`);if(typeof t.skip_empty_lines!="boolean")if(t.skip_empty_lines===void 0||t.skip_empty_lines===null)t.skip_empty_lines=!1;else throw new Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(t.skip_empty_lines)}`);if(typeof t.skip_lines_with_empty_values!="boolean")if(t.skip_lines_with_empty_values===void 0||t.skip_lines_with_empty_values===null)t.skip_lines_with_empty_values=!1;else throw new Error(`Invalid Option: skip_lines_with_empty_values must be a boolean, got ${JSON.stringify(t.skip_lines_with_empty_values)}`);if(typeof t.skip_lines_with_error!="boolean")if(t.skip_lines_with_error===void 0||t.skip_lines_with_error===null)t.skip_lines_with_error=!1;else throw new Error(`Invalid Option: skip_lines_with_error must be a boolean, got ${JSON.stringify(t.skip_lines_with_error)}`);if(t.rtrim===void 0||t.rtrim===null||t.rtrim===!1)t.rtrim=!1;else if(t.rtrim!==!0)throw new Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(t.rtrim)}`);if(t.ltrim===void 0||t.ltrim===null||t.ltrim===!1)t.ltrim=!1;else if(t.ltrim!==!0)throw new Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(t.ltrim)}`);if(t.trim===void 0||t.trim===null||t.trim===!1)t.trim=!1;else if(t.trim!==!0)throw new Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(t.trim)}`);if(t.trim===!0&&e.ltrim!==!1?t.ltrim=!0:t.ltrim!==!0&&(t.ltrim=!1),t.trim===!0&&e.rtrim!==!1?t.rtrim=!0:t.rtrim!==!0&&(t.rtrim=!1),t.to===void 0||t.to===null)t.to=-1;else if(typeof t.to=="string"&&/\d+/.test(t.to)&&(t.to=parseInt(t.to)),Number.isInteger(t.to)){if(t.to<=0)throw new Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(e.to)}`)}else throw new Error(`Invalid Option: to must be an integer, got ${JSON.stringify(e.to)}`);if(t.to_line===void 0||t.to_line===null)t.to_line=-1;else if(typeof t.to_line=="string"&&/\d+/.test(t.to_line)&&(t.to_line=parseInt(t.to_line)),Number.isInteger(t.to_line)){if(t.to_line<=0)throw new Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(e.to_line)}`)}else throw new Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(e.to_line)}`);this.info={bytes:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},this.options=t,this.state={bomSkipped:!1,bufBytesStart:0,castField:s,commenting:!1,error:void 0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Array.isArray(t.columns)?t.columns.length:void 0,field:new Vm(20),firstLineToHeaders:o,needMoreDataSize:Math.max(t.comment!==null?t.comment.length:0,...t.delimiter.map(c=>c.length),t.quote!==null?t.quote.length:0),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new Vm(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:t.record_delimiter.length===0?2:Math.max(...t.record_delimiter.map(c=>c.length)),trimChars:[Buffer.from(" ",t.encoding)[0],Buffer.from(" ",t.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1}}_transform(e,t,s){if(this.state.stop===!0)return;let o=this.__parse(e,!1);o!==void 0&&(this.state.stop=!0),s(o)}_flush(e){if(this.state.stop===!0)return;let t=this.__parse(void 0,!0);e(t)}__parse(e,t){let{bom:s,comment:o,escape:a,from_line:c,ltrim:f,max_record_size:d,quote:p,raw:m,relax:b,rtrim:w,skip_empty_lines:q,to:I,to_line:_}=this.options,{record_delimiter:T}=this.options,{bomSkipped:M,previousBuf:W,rawBuffer:K,escapeIsQuote:Y}=this.state,Q;if(W===void 0)if(e===void 0){this.push(null);return}else Q=e;else W!==void 0&&e===void 0?Q=W:Q=Buffer.concat([W,e]);if(M===!1)if(s===!1)this.state.bomSkipped=!0;else if(Q.length<3){if(t===!1){this.state.previousBuf=Q;return}}else{for(let $ in vu)if(vu[$].compare(Q,0,vu[$].length)===0){let G=vu[$].length;this.state.bufBytesStart+=G,Q=Q.slice(G),this.__normalizeOptions(sn(qt({},this.__originalOptions),{encoding:$}));break}this.state.bomSkipped=!0}let Pe=Q.length,X;for(X=0;X<Pe&&!this.__needMoreData(X,Pe,t);X++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),_!==-1&&this.info.lines>_){this.state.stop=!0,this.push(null);return}this.state.quoting===!1&&T.length===0&&this.__autoDiscoverRecordDelimiter(Q,X)&&(T=this.options.record_delimiter);let $=Q[X];if(m===!0&&K.append($),($===pc||$===Du)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(a!==null&&this.state.quoting===!0&&this.__isEscape(Q,X,$)&&X+a.length<Pe)if(Y){if(this.__isQuote(Q,X+a.length)){this.state.escaping=!0,X+=a.length-1;continue}}else{this.state.escaping=!0,X+=a.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(Q,X))if(this.state.quoting===!0){let ee=Q[X+p.length],Se=w&&this.__isCharTrimable(ee),Oe=o!==null&&this.__compareBytes(o,Q,X+p.length,ee),Ie=this.__isDelimiter(Q,X+p.length,ee),ze=T.length===0?this.__autoDiscoverRecordDelimiter(Q,X+p.length):this.__isRecordDelimiter(ee,Q,X+p.length);if(a!==null&&this.__isEscape(Q,X,$)&&this.__isQuote(Q,X+a.length))X+=a.length-1;else if(!ee||Ie||ze||Oe||Se){this.state.quoting=!1,this.state.wasQuoting=!0,X+=p.length-1;continue}else if(b===!1){let ye=this.__error(new Ue("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(ee)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(ye!==void 0)return ye}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(p),X+=p.length-1}else if(this.state.field.length!==0){if(b===!1){let ee=this.__error(new Ue("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found inside a field at line ${this.info.lines}`],this.options,this.__infoField(),{field:this.state.field}));if(ee!==void 0)return ee}}else{this.state.quoting=!0,X+=p.length-1;continue}if(this.state.quoting===!1){let ee=this.__isRecordDelimiter($,Q,X);if(ee!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=c){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),X+=ee-1;continue}if(q===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,X+=ee-1;continue}this.info.bytes=this.state.bufBytesStart+X;let ze=this.__onField();if(ze!==void 0)return ze;this.info.bytes=this.state.bufBytesStart+X+ee;let ye=this.__onRecord();if(ye!==void 0)return ye;if(I!==-1&&this.info.records>=I){this.state.stop=!0,this.push(null);return}}this.state.commenting=!1,X+=ee-1;continue}if(this.state.commenting)continue;if((o===null?0:this.__compareBytes(o,Q,X,$))!==0){this.state.commenting=!0;continue}let Oe=this.__isDelimiter(Q,X,$);if(Oe!==0){this.info.bytes=this.state.bufBytesStart+X;let Ie=this.__onField();if(Ie!==void 0)return Ie;X+=Oe-1;continue}}}if(this.state.commenting===!1&&d!==0&&this.state.record_length+this.state.field.length>d){let ee=this.__error(new Ue("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${d}`,`at line ${this.info.lines}`],this.options,this.__infoField()));if(ee!==void 0)return ee}let G=f===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable($),fe=w===!1||this.state.wasQuoting===!1;if(G===!0&&fe===!0)this.state.field.append($);else if(w===!0&&!this.__isCharTrimable($)){let ee=this.__error(new Ue("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));if(ee!==void 0)return ee}}if(t===!0)if(this.state.quoting===!0){let $=this.__error(new Ue("CSV_QUOTE_NOT_CLOSED",["Quote Not Closed:",`the parsing is finished with an opening quote at line ${this.info.lines}`],this.options,this.__infoField()));if($!==void 0)return $}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+X;let $=this.__onField();if($!==void 0)return $;let G=this.__onRecord();if(G!==void 0)return G}else this.state.wasRowDelimiter===!0?this.info.empty_lines++:this.state.commenting===!0&&this.info.comment_lines++;else this.state.bufBytesStart+=X,this.state.previousBuf=Q.slice(X);this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1)}__onRecord(){let{columns:e,columns_duplicates_to_array:t,encoding:s,info:o,from:a,relax_column_count:c,relax_column_count_less:f,relax_column_count_more:d,raw:p,skip_lines_with_empty_values:m}=this.options,{enabled:b,record:w}=this.state;if(b===!1)return this.__resetRecord();let q=w.length;if(e===!0){if(m===!0&&Km(w)){this.__resetRecord();return}return this.__firstLineToColumns(w)}if(e===!1&&this.info.records===0&&(this.state.expectedRecordLength=q),q!==this.state.expectedRecordLength){let I=e===!1?new Ue("CSV_INCONSISTENT_RECORD_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${q} on line ${this.info.lines}`],this.options,this.__infoField(),{record:w}):new Ue("CSV_RECORD_DONT_MATCH_COLUMNS_LENGTH",["Invalid Record Length:",`columns length is ${e.length},`,`got ${q} on line ${this.info.lines}`],this.options,this.__infoField(),{record:w});if(c===!0||f===!0&&q<this.state.expectedRecordLength||d===!0&&q>this.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=I;else{let _=this.__error(I);if(_)return _}}if(m===!0&&Km(w)){this.__resetRecord();return}if(this.state.recordHasError===!0){this.__resetRecord(),this.state.recordHasError=!1;return}if(this.info.records++,a===1||this.info.records>=a)if(e!==!1){let I={};for(let T=0,M=w.length;T<M;T++)e[T]===void 0||e[T].disabled||(t===!0&&I[e[T].name]!==void 0?Array.isArray(I[e[T].name])?I[e[T].name]=I[e[T].name].concat(w[T]):I[e[T].name]=[I[e[T].name],w[T]]:I[e[T].name]=w[T]);let{objname:_}=this.options;if(_===void 0)if(p===!0||o===!0){let T=this.__push(Object.assign({record:I},p===!0?{raw:this.state.rawBuffer.toString(s)}:{},o===!0?{info:this.__infoRecord()}:{}));if(T)return T}else{let T=this.__push(I);if(T)return T}else if(p===!0||o===!0){let T=this.__push(Object.assign({record:[I[_],I]},p===!0?{raw:this.state.rawBuffer.toString(s)}:{},o===!0?{info:this.__infoRecord()}:{}));if(T)return T}else{let T=this.__push([I[_],I]);if(T)return T}}else if(p===!0||o===!0){let I=this.__push(Object.assign({record:w},p===!0?{raw:this.state.rawBuffer.toString(s)}:{},o===!0?{info:this.__infoRecord()}:{}));if(I)return I}else{let I=this.__push(w);if(I)return I}this.__resetRecord()}__firstLineToColumns(e){let{firstLineToHeaders:t}=this.state;try{let s=t===void 0?e:t.call(null,e);if(!Array.isArray(s))return this.__error(new Ue("CSV_INVALID_COLUMN_MAPPING",["Invalid Column Mapping:","expect an array from column function,",`got ${JSON.stringify(s)}`],this.options,this.__infoField(),{headers:s}));let o=Ym(s);this.state.expectedRecordLength=o.length,this.options.columns=o,this.__resetRecord();return}catch(s){return s}}__resetRecord(){this.options.raw===!0&&this.state.rawBuffer.reset(),this.state.error=void 0,this.state.record=[],this.state.record_length=0}__onField(){let{cast:e,encoding:t,rtrim:s,max_record_size:o}=this.options,{enabled:a,wasQuoting:c}=this.state;if(a===!1)return this.__resetField();let f=this.state.field.toString(t);if(s===!0&&c===!1&&(f=f.trimRight()),e===!0){let[d,p]=this.__cast(f);if(d!==void 0)return d;f=p}this.state.record.push(f),o!==0&&typeof f=="string"&&(this.state.record_length+=f.length),this.__resetField()}__resetField(){this.state.field.reset(),this.state.wasQuoting=!1}__push(e){let{on_record:t}=this.options;if(t!==void 0){let s=this.__infoRecord();try{e=t.call(null,e,s)}catch(o){return o}if(e==null)return}this.push(e)}__cast(e){let{columns:t,relax_column_count:s}=this.options;if(Array.isArray(t)===!0&&s&&this.options.columns.length<=this.state.record.length)return[void 0,void 0];if(this.state.castField!==null)try{let a=this.__infoField();return[void 0,this.state.castField.call(null,e,a)]}catch(a){return[a]}if(this.__isFloat(e))return[void 0,parseFloat(e)];if(this.options.cast_date!==!1){let a=this.__infoField();return[void 0,this.options.cast_date.call(null,e,a)]}return[void 0,e]}__isCharTrimable(e){return e===A8||e===x8||e===pc||e===Du||e===C8}__isFloat(e){return e-parseFloat(e)+1>=0}__compareBytes(e,t,s,o){if(e[0]!==o)return 0;let a=e.length;for(let c=1;c<a;c++)if(e[c]!==t[s+c])return 0;return a}__needMoreData(e,t,s){if(s)return!1;let{quote:o}=this.options,{quoting:a,needMoreDataSize:c,recordDelimiterMaxLength:f}=this.state,d=t-e-1,p=Math.max(c,f,a?o.length+f:0);return d<p}__isDelimiter(e,t,s){let{delimiter:o,ignore_last_delimiters:a}=this.options;if(a===!0&&this.state.record.length===this.options.columns.length-1)return 0;if(a!==!1&&typeof a=="number"&&this.state.record.length===a-1)return 0;e:for(let c=0;c<o.length;c++){let f=o[c];if(f[0]===s){for(let d=1;d<f.length;d++)if(f[d]!==e[t+d])continue e;return f.length}}return 0}__isRecordDelimiter(e,t,s){let{record_delimiter:o}=this.options,a=o.length;e:for(let c=0;c<a;c++){let f=o[c],d=f.length;if(f[0]===e){for(let p=1;p<d;p++)if(f[p]!==t[s+p])continue e;return f.length}}return 0}__isEscape(e,t,s){let{escape:o}=this.options;if(o===null)return!1;let a=o.length;if(o[0]===s){for(let c=0;c<a;c++)if(o[c]!==e[t+c])return!1;return!0}return!1}__isQuote(e,t){let{quote:s}=this.options;if(s===null)return!1;let o=s.length;for(let a=0;a<o;a++)if(s[a]!==e[t+a])return!1;return!0}__autoDiscoverRecordDelimiter(e,t){let{encoding:s}=this.options,o=e[t];return o===pc?e[t+1]===Du?(this.options.record_delimiter.push(Buffer.from(`\r
|
|
47
47
|
`,s)),this.state.recordDelimiterMaxLength=2,2):(this.options.record_delimiter.push(Buffer.from("\r",s)),this.state.recordDelimiterMaxLength=1,1):o===Du?(this.options.record_delimiter.push(Buffer.from(`
|
|
48
48
|
`,s)),this.state.recordDelimiterMaxLength=1,1):0}__error(e){let{skip_lines_with_error:t}=this.options,s=typeof e=="string"?new Error(e):e;if(t){this.state.recordHasError=!0,this.emit("skip",s);return}else return s}__infoDataSet(){return sn(qt({},this.info),{columns:this.options.columns})}__infoRecord(){let{columns:e}=this.options;return sn(qt({},this.__infoDataSet()),{error:this.state.error,header:e===!0,index:this.state.record.length})}__infoField(){let{columns:e}=this.options,t=Array.isArray(e);return sn(qt({},this.__infoRecord()),{column:t===!0?e.length>this.state.record.length?e[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting})}},gc=function(){let r,e,t;for(let o in arguments){let a=arguments[o],c=typeof a;if(r===void 0&&(typeof a=="string"||Buffer.isBuffer(a)))r=a;else if(e===void 0&&Jm(a))e=a;else if(t===void 0&&c==="function")t=a;else throw new Ue("CSV_INVALID_ARGUMENT",["Invalid argument:",`got ${JSON.stringify(a)} at index ${o}`],e||{})}let s=new dc(e);if(t){let o=e===void 0||e.objname===void 0?[]:{};s.on("readable",function(){let a;for(;(a=this.read())!==null;)e===void 0||e.objname===void 0?o.push(a):o[a[0]]=a[1]}),s.on("error",function(a){t(a,void 0,s.__infoDataSet())}),s.on("end",function(){t(void 0,o,s.__infoDataSet())})}return r!==void 0&&(typeof setImmediate=="function"?setImmediate(function(){s.write(r),s.end()}):(s.write(r),s.end())),s},Ue=class extends Error{constructor(e,t,s,...o){Array.isArray(t)&&(t=t.join(" "));super(t);Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,Ue),this.code=e;for(let a of o)for(let c in a){let f=a[c];this[c]=Buffer.isBuffer(f)?f.toString(s.encoding):f==null?f:JSON.parse(JSON.stringify(f))}}};gc.Parser=dc;gc.CsvError=Ue;Xm.exports=gc;var O8=function(r){return r.replace(/([A-Z])/g,function(e,t){return"_"+t.toLowerCase()})},Jm=function(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)},Km=function(r){return r.every(e=>e==null||e.toString&&e.toString().trim()==="")},Ym=function(r){let e=[];for(let t=0,s=r.length;t<s;t++){let o=r[t];if(o==null||o===!1)e[t]={disabled:!0};else if(typeof o=="string")e[t]={name:o};else if(Jm(o)){if(typeof o.name!="string")throw new Ue("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${t}`,"when column is an object literal"]);e[t]=o}else throw new Ue("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(o)} at position ${t}`])}return e}});var ey=C(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});function Ii(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ii=function(e){return typeof e}:Ii=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ii(r)}var Qm;We.clone=void 0;We.compare=void 0;We.is_object=void 0;We.is_object_literal=void 0;We.merge=void 0;We.mutate=void 0;We.snake_case=void 0;We.merge=function(){return We.mutate.apply(void 0,[{}].concat(Array.prototype.slice.call(arguments)))};We.clone=function(e){return Array.isArray(e)?e.map(function(t){return We.clone(t)}):e&&Ii(e)==="object"?We.mutate({},e):e};We.mutate=function(){var e,t,s,o,a,c,f;for(c=arguments[0],e=t=1,o=arguments.length;1<=o?t<o:t>o;e=1<=o?++t:--t)if(a=arguments[e],We.is_object_literal(a)){We.is_object_literal(c)||(c={});for(s in a)/__proto__|prototype/.test(s)||(c[s]=We.mutate(c[s],a[s]))}else Array.isArray(a)?c=function(){var d,p,m;for(m=[],d=0,p=a.length;d<p;d++)f=a[d],m.push(We.mutate(void 0,f));return m}():a!==void 0&&(c=a);return c};We.snake_case=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s,o,a,c;if(a={},We.is_object_literal(e)){c=typeof t=="number"&&t>0?t-1:t;for(s in e)o=e[s],t&&(s=Qm(s)),a[s]=We.snake_case(o,c)}else a=e;return a};We.compare=function(e,t){var s,o,a,c,f,d,p,m;if(We.is_object_literal(e)){if(!We.is_object_literal(t)||(f=Object.keys(e).sort(),d=Object.keys(t).sort(),f.length!==d.length))return!1;for(s=o=0,p=f.length;o<p;s=++o)if(c=f[s],c!==d[s]||!We.compare(e[c],t[c]))return!1}else if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(s=a=0,m=e.length;0<=m?a<m:a>m;s=0<=m?++a:--a)if(!We.compare(e[s],t[s]))return!1}else if(e!==t)return!1;return!0};Qm=function(e){return e.replace(/([A-Z])/g,function(t,s,o){return"_"+s.toLowerCase()})};We.is_object=function(e){return e&&Ii(e)==="object"&&!Array.isArray(e)};We.is_object_literal=function(e){var t;if(t=e,Ii(e)!=="object"||e===null)return!1;if(Object.getPrototypeOf(t)===null)return!0;for(;Object.getPrototypeOf(t=Object.getPrototypeOf(t))!==null;);return Object.getPrototypeOf(e)===t}});var ny=C((qN,yc)=>{var Ln,ty,mc,ry;mc=require("stream");ry=require("util");({clone:ty}=ey());yc.exports=function(){var r,e,t,s,o,a,c,f,d,p,m,b;for(f={},o=a=0,c=arguments.length;a<c;o=++a)if(r=arguments[o],b=typeof r,r===null?b="null":b==="object"&&Array.isArray(r)&&(b="array"),b==="array")d=r;else if(b==="object")f=ty(r);else if(b==="function")s&&o===arguments.length-1?e=r:s=r;else if(b!=="null")throw new Error(`Invalid Arguments: got ${JSON.stringify(r)} at position ${o}`);return m=new Ln(f,s),t=!1,d&&setImmediate(function(){var w,q,I;for(w=0,q=d.length;w<q&&(I=d[w],!t);w++)m.write(I);return m.end()}),(e||f.consume)&&(p=[],m.on("readable",function(){var w,q;for(q=[];w=m.read();)e?q.push(p.push(w)):q.push(void 0);return q}),m.on("error",function(w){if(t=!0,e)return e(w)}),m.on("end",function(){if(e&&!t)return e(null,p)})),m};Ln=function(r={},e){var t,s;return this.options=r,this.handler=e,(t=this.options).consume==null&&(t.consume=!1),this.options.objectMode=!0,(s=this.options).parallel==null&&(s.parallel=100),mc.Transform.call(this,this.options),this.state={running:0,started:0,finished:0},this};ry.inherits(Ln,mc.Transform);yc.exports.Transformer=Ln;Ln.prototype._transform=function(r,e,t){var s,o,a;this.state.started++,this.state.running++,this.state.running<this.options.parallel&&(t(),t=null);try{if(a=this.handler.length,this.options.params!=null&&a--,a===1)this.__done(null,[this.handler.call(this,r,this.options.params)],t);else if(a===2)s=(c,...f)=>this.__done(c,f,t),this.handler.call(this,r,s,this.options.params);else throw Error("Invalid handler arguments");return!1}catch(c){return o=c,this.__done(o)}};Ln.prototype._flush=function(r){return this._ending=function(){if(this.state.running===0)return this._ending=void 0,r()},this._ending()};Ln.prototype.__done=function(r,e,t){var s,o,a;if(this.state.running--,r)return this.emit("error",r);for(this.state.finished++,o=0,a=e.length;o<a;o++)s=e[o],typeof s=="number"&&(s=`${s}`),s!=null&&s!==""&&this.push(s);if(t&&t(),this._ending)return this._ending()}});var uy=C((PN,oy)=>{var{Transform:F8}=require("stream"),S8=Buffer.from([239,187,191]),Dc=class extends F8{constructor(e={}){super(qt({writableObjectMode:!0},e));let t={},s;for(let o in e)t[I8(o)]=e[o];if(s=this.normalize(t))throw s;switch(t.record_delimiter){case"auto":t.record_delimiter=null;break;case"unix":t.record_delimiter=`
|