@serverless-devs/s 2.1.8-beta.1 → 2.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/clean/index.js +166 -37
- package/lib/cli/index.js +191 -35
- package/lib/component/index.js +291 -39
- package/lib/config/add/index.js +174 -44
- package/lib/config/delete/index.js +122 -33
- package/lib/config/get/index.js +132 -43
- package/lib/config/index.js +39 -72
- package/lib/config/rename/index.js +132 -33
- package/lib/edit/index.js +106 -33
- package/lib/index.js +93 -93
- package/lib/init/index.js +101 -74
- package/lib/init/init-manager.js +3 -3
- package/lib/set/analysis/index.js +118 -36
- package/lib/set/index.js +38 -62
- package/lib/set/locale/index.js +118 -36
- package/lib/set/proxy/index.js +125 -35
- package/lib/set/registry/index.js +147 -36
- package/lib/set/workspace/index.js +119 -36
- package/lib/update-notifier/index.js +146 -49
- package/lib/verify/index.js +224 -42
- package/package.json +3 -3
- package/s-2.1.9-linux +0 -0
- package/s-2.1.9-linux.zip +0 -0
- package/s-2.1.9-macos +0 -0
- package/s-2.1.9-macos.zip +0 -0
- package/s-2.1.9-win.exe +0 -0
- package/s-2.1.9-win.exe.zip +0 -0
- package/shell/pkg.sh +0 -25
- package/shell/postbuild.sh +0 -22
|
@@ -1,33 +1,132 @@
|
|
|
1
|
-
"use strict";var h=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var de=h((Yl,St)=>{var ns="2.0.0",ss=Number.MAX_SAFE_INTEGER||9007199254740991,is=16;St.exports={SEMVER_SPEC_VERSION:ns,MAX_LENGTH:256,MAX_SAFE_INTEGER:ss,MAX_SAFE_COMPONENT_LENGTH:is}});var ve=h((zl,Ot)=>{var os=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};Ot.exports=os});var V=h((H,Rt)=>{var{MAX_SAFE_COMPONENT_LENGTH:Be}=de(),as=ve();H=Rt.exports={};var ls=H.re=[],p=H.src=[],d=H.t={},cs=0,m=(r,e,t)=>{let n=cs++;as(r,n,e),d[r]=n,p[n]=e,ls[n]=new RegExp(e,t?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*");m("NUMERICIDENTIFIERLOOSE","[0-9]+");m("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");m("MAINVERSION",`(${p[d.NUMERICIDENTIFIER]})\\.(${p[d.NUMERICIDENTIFIER]})\\.(${p[d.NUMERICIDENTIFIER]})`);m("MAINVERSIONLOOSE",`(${p[d.NUMERICIDENTIFIERLOOSE]})\\.(${p[d.NUMERICIDENTIFIERLOOSE]})\\.(${p[d.NUMERICIDENTIFIERLOOSE]})`);m("PRERELEASEIDENTIFIER",`(?:${p[d.NUMERICIDENTIFIER]}|${p[d.NONNUMERICIDENTIFIER]})`);m("PRERELEASEIDENTIFIERLOOSE",`(?:${p[d.NUMERICIDENTIFIERLOOSE]}|${p[d.NONNUMERICIDENTIFIER]})`);m("PRERELEASE",`(?:-(${p[d.PRERELEASEIDENTIFIER]}(?:\\.${p[d.PRERELEASEIDENTIFIER]})*))`);m("PRERELEASELOOSE",`(?:-?(${p[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${p[d.PRERELEASEIDENTIFIERLOOSE]})*))`);m("BUILDIDENTIFIER","[0-9A-Za-z-]+");m("BUILD",`(?:\\+(${p[d.BUILDIDENTIFIER]}(?:\\.${p[d.BUILDIDENTIFIER]})*))`);m("FULLPLAIN",`v?${p[d.MAINVERSION]}${p[d.PRERELEASE]}?${p[d.BUILD]}?`);m("FULL",`^${p[d.FULLPLAIN]}$`);m("LOOSEPLAIN",`[v=\\s]*${p[d.MAINVERSIONLOOSE]}${p[d.PRERELEASELOOSE]}?${p[d.BUILD]}?`);m("LOOSE",`^${p[d.LOOSEPLAIN]}$`);m("GTLT","((?:<|>)?=?)");m("XRANGEIDENTIFIERLOOSE",`${p[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);m("XRANGEIDENTIFIER",`${p[d.NUMERICIDENTIFIER]}|x|X|\\*`);m("XRANGEPLAIN",`[v=\\s]*(${p[d.XRANGEIDENTIFIER]})(?:\\.(${p[d.XRANGEIDENTIFIER]})(?:\\.(${p[d.XRANGEIDENTIFIER]})(?:${p[d.PRERELEASE]})?${p[d.BUILD]}?)?)?`);m("XRANGEPLAINLOOSE",`[v=\\s]*(${p[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[d.XRANGEIDENTIFIERLOOSE]})(?:${p[d.PRERELEASELOOSE]})?${p[d.BUILD]}?)?)?`);m("XRANGE",`^${p[d.GTLT]}\\s*${p[d.XRANGEPLAIN]}$`);m("XRANGELOOSE",`^${p[d.GTLT]}\\s*${p[d.XRANGEPLAINLOOSE]}$`);m("COERCE",`(^|[^\\d])(\\d{1,${Be}})(?:\\.(\\d{1,${Be}}))?(?:\\.(\\d{1,${Be}}))?(?:$|[^\\d])`);m("COERCERTL",p[d.COERCE],!0);m("LONETILDE","(?:~>?)");m("TILDETRIM",`(\\s*)${p[d.LONETILDE]}\\s+`,!0);H.tildeTrimReplace="$1~";m("TILDE",`^${p[d.LONETILDE]}${p[d.XRANGEPLAIN]}$`);m("TILDELOOSE",`^${p[d.LONETILDE]}${p[d.XRANGEPLAINLOOSE]}$`);m("LONECARET","(?:\\^)");m("CARETTRIM",`(\\s*)${p[d.LONECARET]}\\s+`,!0);H.caretTrimReplace="$1^";m("CARET",`^${p[d.LONECARET]}${p[d.XRANGEPLAIN]}$`);m("CARETLOOSE",`^${p[d.LONECARET]}${p[d.XRANGEPLAINLOOSE]}$`);m("COMPARATORLOOSE",`^${p[d.GTLT]}\\s*(${p[d.LOOSEPLAIN]})$|^$`);m("COMPARATOR",`^${p[d.GTLT]}\\s*(${p[d.FULLPLAIN]})$|^$`);m("COMPARATORTRIM",`(\\s*)${p[d.GTLT]}\\s*(${p[d.LOOSEPLAIN]}|${p[d.XRANGEPLAIN]})`,!0);H.comparatorTrimReplace="$1$2$3";m("HYPHENRANGE",`^\\s*(${p[d.XRANGEPLAIN]})\\s+-\\s+(${p[d.XRANGEPLAIN]})\\s*$`);m("HYPHENRANGELOOSE",`^\\s*(${p[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${p[d.XRANGEPLAINLOOSE]})\\s*$`);m("STAR","(<|>)?=?\\s*\\*");m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ge=h((Wl,It)=>{var us=["includePrerelease","loose","rtl"],fs=r=>r?typeof r!="object"?{loose:!0}:us.filter(e=>r[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};It.exports=fs});var ke=h((Zl,jt)=>{var $t=/^[0-9]+$/,qt=(r,e)=>{let t=$t.test(r),n=$t.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},hs=(r,e)=>qt(e,r);jt.exports={compareIdentifiers:qt,rcompareIdentifiers:hs}});var O=h((Kl,Tt)=>{var $e=ve(),{MAX_LENGTH:At,MAX_SAFE_INTEGER:qe}=de(),{re:Nt,t:Dt}=V(),ps=ge(),{compareIdentifiers:K}=ke(),N=class{constructor(e,t){if(t=ps(t),e instanceof N){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>At)throw new TypeError(`version is longer than ${At} characters`);$e("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?Nt[Dt.LOOSE]:Nt[Dt.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>qe||this.major<0)throw new TypeError("Invalid major version");if(this.minor>qe||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>qe||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<qe)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if($e("SemVer.compare",this.version,this.options,e),!(e instanceof N)){if(typeof e=="string"&&e===this.version)return 0;e=new N(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof N||(e=new N(e,this.options)),K(this.major,e.major)||K(this.minor,e.minor)||K(this.patch,e.patch)}comparePre(e){if(e instanceof N||(e=new N(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],i=e.prerelease[t];if($e("prerelease compare",t,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return K(n,i)}while(++t)}compareBuild(e){e instanceof N||(e=new N(e,this.options));let t=0;do{let n=this.build[t],i=e.build[t];if($e("prerelease compare",t,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return K(n,i)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let n=this.prerelease.length;for(;--n>=0;)typeof this.prerelease[n]=="number"&&(this.prerelease[n]++,n=-2);n===-1&&this.prerelease.push(0)}t&&(K(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};Tt.exports=N});var B=h((Ql,Pt)=>{var{MAX_LENGTH:ds}=de(),{re:Lt,t:Ct}=V(),xt=O(),vs=ge(),gs=(r,e)=>{if(e=vs(e),r instanceof xt)return r;if(typeof r!="string"||r.length>ds||!(e.loose?Lt[Ct.LOOSE]:Lt[Ct.FULL]).test(r))return null;try{return new xt(r,e)}catch{return null}};Pt.exports=gs});var Gt=h((Jl,Ft)=>{var ms=B(),Es=(r,e)=>{let t=ms(r,e);return t?t.version:null};Ft.exports=Es});var Ht=h((ec,Mt)=>{var ys=B(),_s=(r,e)=>{let t=ys(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};Mt.exports=_s});var Vt=h((tc,Ut)=>{var Xt=O(),bs=(r,e,t,n)=>{typeof t=="string"&&(n=t,t=void 0);try{return new Xt(r instanceof Xt?r.version:r,t).inc(e,n).version}catch{return null}};Ut.exports=bs});var T=h((rc,kt)=>{var Bt=O(),ws=(r,e,t)=>new Bt(r,t).compare(new Bt(e,t));kt.exports=ws});var je=h((nc,Yt)=>{var Ss=T(),Os=(r,e,t)=>Ss(r,e,t)===0;Yt.exports=Os});var Zt=h((sc,Wt)=>{var zt=B(),Rs=je(),Is=(r,e)=>{if(Rs(r,e))return null;{let t=zt(r),n=zt(e),i=t.prerelease.length||n.prerelease.length,s=i?"pre":"",a=i?"prerelease":"";for(let l in t)if((l==="major"||l==="minor"||l==="patch")&&t[l]!==n[l])return s+l;return a}};Wt.exports=Is});var Qt=h((ic,Kt)=>{var $s=O(),qs=(r,e)=>new $s(r,e).major;Kt.exports=qs});var er=h((oc,Jt)=>{var js=O(),As=(r,e)=>new js(r,e).minor;Jt.exports=As});var rr=h((ac,tr)=>{var Ns=O(),Ds=(r,e)=>new Ns(r,e).patch;tr.exports=Ds});var sr=h((lc,nr)=>{var Ts=B(),Ls=(r,e)=>{let t=Ts(r,e);return t&&t.prerelease.length?t.prerelease:null};nr.exports=Ls});var or=h((cc,ir)=>{var Cs=T(),xs=(r,e,t)=>Cs(e,r,t);ir.exports=xs});var lr=h((uc,ar)=>{var Ps=T(),Fs=(r,e)=>Ps(r,e,!0);ar.exports=Fs});var Ae=h((fc,ur)=>{var cr=O(),Gs=(r,e,t)=>{let n=new cr(r,t),i=new cr(e,t);return n.compare(i)||n.compareBuild(i)};ur.exports=Gs});var hr=h((hc,fr)=>{var Ms=Ae(),Hs=(r,e)=>r.sort((t,n)=>Ms(t,n,e));fr.exports=Hs});var dr=h((pc,pr)=>{var Xs=Ae(),Us=(r,e)=>r.sort((t,n)=>Xs(n,t,e));pr.exports=Us});var me=h((dc,vr)=>{var Vs=T(),Bs=(r,e,t)=>Vs(r,e,t)>0;vr.exports=Bs});var Ne=h((vc,gr)=>{var ks=T(),Ys=(r,e,t)=>ks(r,e,t)<0;gr.exports=Ys});var Ye=h((gc,mr)=>{var zs=T(),Ws=(r,e,t)=>zs(r,e,t)!==0;mr.exports=Ws});var De=h((mc,Er)=>{var Zs=T(),Ks=(r,e,t)=>Zs(r,e,t)>=0;Er.exports=Ks});var Te=h((Ec,yr)=>{var Qs=T(),Js=(r,e,t)=>Qs(r,e,t)<=0;yr.exports=Js});var ze=h((yc,_r)=>{var ei=je(),ti=Ye(),ri=me(),ni=De(),si=Ne(),ii=Te(),oi=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return ei(r,t,n);case"!=":return ti(r,t,n);case">":return ri(r,t,n);case">=":return ni(r,t,n);case"<":return si(r,t,n);case"<=":return ii(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};_r.exports=oi});var wr=h((_c,br)=>{var ai=O(),li=B(),{re:Le,t:Ce}=V(),ci=(r,e)=>{if(r instanceof ai)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(Le[Ce.COERCE]);else{let n;for(;(n=Le[Ce.COERCERTL].exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||n.index+n[0].length!==t.index+t[0].length)&&(t=n),Le[Ce.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;Le[Ce.COERCERTL].lastIndex=-1}return t===null?null:li(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};br.exports=ci});var Or=h((bc,Sr)=>{"use strict";Sr.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Ir=h((wc,Rr)=>{"use strict";Rr.exports=E;E.Node=k;E.create=E;function E(r){var e=this;if(e instanceof E||(e=new E),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var t=0,n=arguments.length;t<n;t++)e.push(arguments[t]);return e}E.prototype.removeNode=function(r){if(r.list!==this)throw new Error("removing node which does not belong to this list");var e=r.next,t=r.prev;return e&&(e.prev=t),t&&(t.next=e),r===this.head&&(this.head=e),r===this.tail&&(this.tail=t),r.list.length--,r.next=null,r.prev=null,r.list=null,e};E.prototype.unshiftNode=function(r){if(r!==this.head){r.list&&r.list.removeNode(r);var e=this.head;r.list=this,r.next=e,e&&(e.prev=r),this.head=r,this.tail||(this.tail=r),this.length++}};E.prototype.pushNode=function(r){if(r!==this.tail){r.list&&r.list.removeNode(r);var e=this.tail;r.list=this,r.prev=e,e&&(e.next=r),this.tail=r,this.head||(this.head=r),this.length++}};E.prototype.push=function(){for(var r=0,e=arguments.length;r<e;r++)fi(this,arguments[r]);return this.length};E.prototype.unshift=function(){for(var r=0,e=arguments.length;r<e;r++)hi(this,arguments[r]);return this.length};E.prototype.pop=function(){if(!!this.tail){var r=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,r}};E.prototype.shift=function(){if(!!this.head){var r=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,r}};E.prototype.forEach=function(r,e){e=e||this;for(var t=this.head,n=0;t!==null;n++)r.call(e,t.value,n,this),t=t.next};E.prototype.forEachReverse=function(r,e){e=e||this;for(var t=this.tail,n=this.length-1;t!==null;n--)r.call(e,t.value,n,this),t=t.prev};E.prototype.get=function(r){for(var e=0,t=this.head;t!==null&&e<r;e++)t=t.next;if(e===r&&t!==null)return t.value};E.prototype.getReverse=function(r){for(var e=0,t=this.tail;t!==null&&e<r;e++)t=t.prev;if(e===r&&t!==null)return t.value};E.prototype.map=function(r,e){e=e||this;for(var t=new E,n=this.head;n!==null;)t.push(r.call(e,n.value,this)),n=n.next;return t};E.prototype.mapReverse=function(r,e){e=e||this;for(var t=new E,n=this.tail;n!==null;)t.push(r.call(e,n.value,this)),n=n.prev;return t};E.prototype.reduce=function(r,e){var t,n=this.head;if(arguments.length>1)t=e;else if(this.head)n=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;n!==null;i++)t=r(t,n.value,i),n=n.next;return t};E.prototype.reduceReverse=function(r,e){var t,n=this.tail;if(arguments.length>1)t=e;else if(this.tail)n=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;n!==null;i--)t=r(t,n.value,i),n=n.prev;return t};E.prototype.toArray=function(){for(var r=new Array(this.length),e=0,t=this.head;t!==null;e++)r[e]=t.value,t=t.next;return r};E.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,t=this.tail;t!==null;e++)r[e]=t.value,t=t.prev;return r};E.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new E;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=0,i=this.head;i!==null&&n<r;n++)i=i.next;for(;i!==null&&n<e;n++,i=i.next)t.push(i.value);return t};E.prototype.sliceReverse=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new E;if(e<r||e<0)return t;r<0&&(r=0),e>this.length&&(e=this.length);for(var n=this.length,i=this.tail;i!==null&&n>e;n--)i=i.prev;for(;i!==null&&n>r;n--,i=i.prev)t.push(i.value);return t};E.prototype.splice=function(r,e,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var n=0,i=this.head;i!==null&&n<r;n++)i=i.next;for(var s=[],n=0;i&&n<e;n++)s.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var n=0;n<t.length;n++)i=ui(this,i,t[n]);return s};E.prototype.reverse=function(){for(var r=this.head,e=this.tail,t=r;t!==null;t=t.prev){var n=t.prev;t.prev=t.next,t.next=n}return this.head=e,this.tail=r,this};function ui(r,e,t){var n=e===r.head?new k(t,null,e,r):new k(t,e,e.next,r);return n.next===null&&(r.tail=n),n.prev===null&&(r.head=n),r.length++,n}function fi(r,e){r.tail=new k(e,r.tail,null,r),r.head||(r.head=r.tail),r.length++}function hi(r,e){r.head=new k(e,null,r.head,r),r.tail||(r.tail=r.head),r.length++}function k(r,e,t,n){if(!(this instanceof k))return new k(r,e,t,n);this.list=n,this.value=r,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{Or()(E)}catch{}});var Nr=h((Sc,Ar)=>{"use strict";var pi=Ir(),Y=Symbol("max"),G=Symbol("length"),Q=Symbol("lengthCalculator"),ye=Symbol("allowStale"),z=Symbol("maxAge"),F=Symbol("dispose"),$r=Symbol("noDisposeOnSet"),S=Symbol("lruList"),C=Symbol("cache"),jr=Symbol("updateAgeOnGet"),We=()=>1,Ke=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[Y]=e.max||1/0,n=e.length||We;if(this[Q]=typeof n!="function"?We:n,this[ye]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[z]=e.maxAge||0,this[F]=e.dispose,this[$r]=e.noDisposeOnSet||!1,this[jr]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Y]=e||1/0,Ee(this)}get max(){return this[Y]}set allowStale(e){this[ye]=!!e}get allowStale(){return this[ye]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[z]=e,Ee(this)}get maxAge(){return this[z]}set lengthCalculator(e){typeof e!="function"&&(e=We),e!==this[Q]&&(this[Q]=e,this[G]=0,this[S].forEach(t=>{t.length=this[Q](t.value,t.key),this[G]+=t.length})),Ee(this)}get lengthCalculator(){return this[Q]}get length(){return this[G]}get itemCount(){return this[S].length}rforEach(e,t){t=t||this;for(let n=this[S].tail;n!==null;){let i=n.prev;qr(this,e,n,t),n=i}}forEach(e,t){t=t||this;for(let n=this[S].head;n!==null;){let i=n.next;qr(this,e,n,t),n=i}}keys(){return this[S].toArray().map(e=>e.key)}values(){return this[S].toArray().map(e=>e.value)}reset(){this[F]&&this[S]&&this[S].length&&this[S].forEach(e=>this[F](e.key,e.value)),this[C]=new Map,this[S]=new pi,this[G]=0}dump(){return this[S].map(e=>xe(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[S]}set(e,t,n){if(n=n||this[z],n&&typeof n!="number")throw new TypeError("maxAge must be a number");let i=n?Date.now():0,s=this[Q](t,e);if(this[C].has(e)){if(s>this[Y])return J(this,this[C].get(e)),!1;let c=this[C].get(e).value;return this[F]&&(this[$r]||this[F](e,c.value)),c.now=i,c.maxAge=n,c.value=t,this[G]+=s-c.length,c.length=s,this.get(e),Ee(this),!0}let a=new Qe(e,t,s,i,n);return a.length>this[Y]?(this[F]&&this[F](e,t),!1):(this[G]+=a.length,this[S].unshift(a),this[C].set(e,this[S].head),Ee(this),!0)}has(e){if(!this[C].has(e))return!1;let t=this[C].get(e).value;return!xe(this,t)}get(e){return Ze(this,e,!0)}peek(e){return Ze(this,e,!1)}pop(){let e=this[S].tail;return e?(J(this,e),e.value):null}del(e){J(this,this[C].get(e))}load(e){this.reset();let t=Date.now();for(let n=e.length-1;n>=0;n--){let i=e[n],s=i.e||0;if(s===0)this.set(i.k,i.v);else{let a=s-t;a>0&&this.set(i.k,i.v,a)}}}prune(){this[C].forEach((e,t)=>Ze(this,t,!1))}},Ze=(r,e,t)=>{let n=r[C].get(e);if(n){let i=n.value;if(xe(r,i)){if(J(r,n),!r[ye])return}else t&&(r[jr]&&(n.value.now=Date.now()),r[S].unshiftNode(n));return i.value}},xe=(r,e)=>{if(!e||!e.maxAge&&!r[z])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:r[z]&&t>r[z]},Ee=r=>{if(r[G]>r[Y])for(let e=r[S].tail;r[G]>r[Y]&&e!==null;){let t=e.prev;J(r,e),e=t}},J=(r,e)=>{if(e){let t=e.value;r[F]&&r[F](t.key,t.value),r[G]-=t.length,r[C].delete(t.key),r[S].removeNode(e)}},Qe=class{constructor(e,t,n,i,s){this.key=e,this.value=t,this.length=n,this.now=i,this.maxAge=s||0}},qr=(r,e,t,n)=>{let i=t.value;xe(r,i)&&(J(r,t),r[ye]||(i=void 0)),i&&e.call(n,i.value,i.key,r)};Ar.exports=Ke});var L=h((Oc,Cr)=>{var W=class{constructor(e,t){if(t=vi(t),e instanceof W)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new W(e.raw,t);if(e instanceof Je)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!Tr(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&_i(i[0])){this.set=[i];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let n=`parseRange:${Object.keys(this.options).join(",")}:${e}`,i=Dr.get(n);if(i)return i;let s=this.options.loose,a=s?j[I.HYPHENRANGELOOSE]:j[I.HYPHENRANGE];e=e.replace(a,Ai(this.options.includePrerelease)),b("hyphen replace",e),e=e.replace(j[I.COMPARATORTRIM],mi),b("comparator trim",e),e=e.replace(j[I.TILDETRIM],Ei),e=e.replace(j[I.CARETTRIM],yi),e=e.split(/\s+/).join(" ");let l=e.split(" ").map(f=>bi(f,this.options)).join(" ").split(/\s+/).map(f=>ji(f,this.options));s&&(l=l.filter(f=>(b("loose invalid filter",f,this.options),!!f.match(j[I.COMPARATORLOOSE])))),b("range list",l);let c=new Map,o=l.map(f=>new Je(f,this.options));for(let f of o){if(Tr(f))return[f];c.set(f.value,f)}c.size>1&&c.has("")&&c.delete("");let u=[...c.values()];return Dr.set(n,u),u}intersects(e,t){if(!(e instanceof W))throw new TypeError("a Range is required");return this.set.some(n=>Lr(n,t)&&e.set.some(i=>Lr(i,t)&&n.every(s=>i.every(a=>s.intersects(a,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new gi(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Ni(this.set[t],e,this.options))return!0;return!1}};Cr.exports=W;var di=Nr(),Dr=new di({max:1e3}),vi=ge(),Je=_e(),b=ve(),gi=O(),{re:j,t:I,comparatorTrimReplace:mi,tildeTrimReplace:Ei,caretTrimReplace:yi}=V(),Tr=r=>r.value==="<0.0.0-0",_i=r=>r.value==="",Lr=(r,e)=>{let t=!0,n=r.slice(),i=n.pop();for(;t&&n.length;)t=n.every(s=>i.intersects(s,e)),i=n.pop();return t},bi=(r,e)=>(b("comp",r,e),r=Oi(r,e),b("caret",r),r=wi(r,e),b("tildes",r),r=Ii(r,e),b("xrange",r),r=qi(r,e),b("stars",r),r),$=r=>!r||r.toLowerCase()==="x"||r==="*",wi=(r,e)=>r.trim().split(/\s+/).map(t=>Si(t,e)).join(" "),Si=(r,e)=>{let t=e.loose?j[I.TILDELOOSE]:j[I.TILDE];return r.replace(t,(n,i,s,a,l)=>{b("tilde",r,n,i,s,a,l);let c;return $(i)?c="":$(s)?c=`>=${i}.0.0 <${+i+1}.0.0-0`:$(a)?c=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:l?(b("replaceTilde pr",l),c=`>=${i}.${s}.${a}-${l} <${i}.${+s+1}.0-0`):c=`>=${i}.${s}.${a} <${i}.${+s+1}.0-0`,b("tilde return",c),c})},Oi=(r,e)=>r.trim().split(/\s+/).map(t=>Ri(t,e)).join(" "),Ri=(r,e)=>{b("caret",r,e);let t=e.loose?j[I.CARETLOOSE]:j[I.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(i,s,a,l,c)=>{b("caret",r,i,s,a,l,c);let o;return $(s)?o="":$(a)?o=`>=${s}.0.0${n} <${+s+1}.0.0-0`:$(l)?s==="0"?o=`>=${s}.${a}.0${n} <${s}.${+a+1}.0-0`:o=`>=${s}.${a}.0${n} <${+s+1}.0.0-0`:c?(b("replaceCaret pr",c),s==="0"?a==="0"?o=`>=${s}.${a}.${l}-${c} <${s}.${a}.${+l+1}-0`:o=`>=${s}.${a}.${l}-${c} <${s}.${+a+1}.0-0`:o=`>=${s}.${a}.${l}-${c} <${+s+1}.0.0-0`):(b("no pr"),s==="0"?a==="0"?o=`>=${s}.${a}.${l}${n} <${s}.${a}.${+l+1}-0`:o=`>=${s}.${a}.${l}${n} <${s}.${+a+1}.0-0`:o=`>=${s}.${a}.${l} <${+s+1}.0.0-0`),b("caret return",o),o})},Ii=(r,e)=>(b("replaceXRanges",r,e),r.split(/\s+/).map(t=>$i(t,e)).join(" ")),$i=(r,e)=>{r=r.trim();let t=e.loose?j[I.XRANGELOOSE]:j[I.XRANGE];return r.replace(t,(n,i,s,a,l,c)=>{b("xRange",r,n,i,s,a,l,c);let o=$(s),u=o||$(a),f=u||$(l),w=f;return i==="="&&w&&(i=""),c=e.includePrerelease?"-0":"",o?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&w?(u&&(a=0),l=0,i===">"?(i=">=",u?(s=+s+1,a=0,l=0):(a=+a+1,l=0)):i==="<="&&(i="<",u?s=+s+1:a=+a+1),i==="<"&&(c="-0"),n=`${i+s}.${a}.${l}${c}`):u?n=`>=${s}.0.0${c} <${+s+1}.0.0-0`:f&&(n=`>=${s}.${a}.0${c} <${s}.${+a+1}.0-0`),b("xRange return",n),n})},qi=(r,e)=>(b("replaceStars",r,e),r.trim().replace(j[I.STAR],"")),ji=(r,e)=>(b("replaceGTE0",r,e),r.trim().replace(j[e.includePrerelease?I.GTE0PRE:I.GTE0],"")),Ai=r=>(e,t,n,i,s,a,l,c,o,u,f,w,g)=>($(n)?t="":$(i)?t=`>=${n}.0.0${r?"-0":""}`:$(s)?t=`>=${n}.${i}.0${r?"-0":""}`:a?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,$(o)?c="":$(u)?c=`<${+o+1}.0.0-0`:$(f)?c=`<${o}.${+u+1}.0-0`:w?c=`<=${o}.${u}.${f}-${w}`:r?c=`<${o}.${u}.${+f+1}-0`:c=`<=${c}`,`${t} ${c}`.trim()),Ni=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(b(r[n].semver),r[n].semver!==Je.ANY&&r[n].semver.prerelease.length>0){let i=r[n].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0}});var _e=h((Rc,Mr)=>{var be=Symbol("SemVer ANY"),ee=class{static get ANY(){return be}constructor(e,t){if(t=Di(t),e instanceof ee){if(e.loose===!!t.loose)return e;e=e.value}tt("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===be?this.value="":this.value=this.operator+this.semver.version,tt("comp",this)}parse(e){let t=this.options.loose?xr[Pr.COMPARATORLOOSE]:xr[Pr.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new Fr(n[2],this.options.loose):this.semver=be}toString(){return this.value}test(e){if(tt("Comparator.test",e,this.options.loose),this.semver===be||e===be)return!0;if(typeof e=="string")try{e=new Fr(e,this.options)}catch{return!1}return et(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof ee))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Gr(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new Gr(this.value,t).test(e.semver);let n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),s=this.semver.version===e.semver.version,a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),l=et(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),c=et(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||i||s&&a||l||c}};Mr.exports=ee;var Di=ge(),{re:xr,t:Pr}=V(),et=ze(),tt=ve(),Fr=O(),Gr=L()});var we=h((Ic,Hr)=>{var Ti=L(),Li=(r,e,t)=>{try{e=new Ti(e,t)}catch{return!1}return e.test(r)};Hr.exports=Li});var Ur=h(($c,Xr)=>{var Ci=L(),xi=(r,e)=>new Ci(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));Xr.exports=xi});var Br=h((qc,Vr)=>{var Pi=O(),Fi=L(),Gi=(r,e,t)=>{let n=null,i=null,s=null;try{s=new Fi(e,t)}catch{return null}return r.forEach(a=>{s.test(a)&&(!n||i.compare(a)===-1)&&(n=a,i=new Pi(n,t))}),n};Vr.exports=Gi});var Yr=h((jc,kr)=>{var Mi=O(),Hi=L(),Xi=(r,e,t)=>{let n=null,i=null,s=null;try{s=new Hi(e,t)}catch{return null}return r.forEach(a=>{s.test(a)&&(!n||i.compare(a)===1)&&(n=a,i=new Mi(n,t))}),n};kr.exports=Xi});var Zr=h((Ac,Wr)=>{var rt=O(),Ui=L(),zr=me(),Vi=(r,e)=>{r=new Ui(r,e);let t=new rt("0.0.0");if(r.test(t)||(t=new rt("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){let i=r.set[n],s=null;i.forEach(a=>{let l=new rt(a.semver.version);switch(a.operator){case">":l.prerelease.length===0?l.patch++:l.prerelease.push(0),l.raw=l.format();case"":case">=":(!s||zr(l,s))&&(s=l);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!t||zr(t,s))&&(t=s)}return t&&r.test(t)?t:null};Wr.exports=Vi});var Qr=h((Nc,Kr)=>{var Bi=L(),ki=(r,e)=>{try{return new Bi(r,e).range||"*"}catch{return null}};Kr.exports=ki});var Pe=h((Dc,rn)=>{var Yi=O(),tn=_e(),{ANY:zi}=tn,Wi=L(),Zi=we(),Jr=me(),en=Ne(),Ki=Te(),Qi=De(),Ji=(r,e,t,n)=>{r=new Yi(r,n),e=new Wi(e,n);let i,s,a,l,c;switch(t){case">":i=Jr,s=Ki,a=en,l=">",c=">=";break;case"<":i=en,s=Qi,a=Jr,l="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Zi(r,e,n))return!1;for(let o=0;o<e.set.length;++o){let u=e.set[o],f=null,w=null;if(u.forEach(g=>{g.semver===zi&&(g=new tn(">=0.0.0")),f=f||g,w=w||g,i(g.semver,f.semver,n)?f=g:a(g.semver,w.semver,n)&&(w=g)}),f.operator===l||f.operator===c||(!w.operator||w.operator===l)&&s(r,w.semver))return!1;if(w.operator===c&&a(r,w.semver))return!1}return!0};rn.exports=Ji});var sn=h((Tc,nn)=>{var eo=Pe(),to=(r,e,t)=>eo(r,e,">",t);nn.exports=to});var an=h((Lc,on)=>{var ro=Pe(),no=(r,e,t)=>ro(r,e,"<",t);on.exports=no});var un=h((Cc,cn)=>{var ln=L(),so=(r,e,t)=>(r=new ln(r,t),e=new ln(e,t),r.intersects(e));cn.exports=so});var hn=h((xc,fn)=>{var io=we(),oo=T();fn.exports=(r,e,t)=>{let n=[],i=null,s=null,a=r.sort((u,f)=>oo(u,f,t));for(let u of a)io(u,e,t)?(s=u,i||(i=u)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let l=[];for(let[u,f]of n)u===f?l.push(u):!f&&u===a[0]?l.push("*"):f?u===a[0]?l.push(`<=${f}`):l.push(`${u} - ${f}`):l.push(`>=${u}`);let c=l.join(" || "),o=typeof e.raw=="string"?e.raw:String(e);return c.length<o.length?c:e}});var mn=h((Pc,gn)=>{var pn=L(),Fe=_e(),{ANY:nt}=Fe,Se=we(),st=T(),ao=(r,e,t={})=>{if(r===e)return!0;r=new pn(r,t),e=new pn(e,t);let n=!1;e:for(let i of r.set){for(let s of e.set){let a=lo(i,s,t);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},lo=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===nt){if(e.length===1&&e[0].semver===nt)return!0;t.includePrerelease?r=[new Fe(">=0.0.0-0")]:r=[new Fe(">=0.0.0")]}if(e.length===1&&e[0].semver===nt){if(t.includePrerelease)return!0;e=[new Fe(">=0.0.0")]}let n=new Set,i,s;for(let g of r)g.operator===">"||g.operator===">="?i=dn(i,g,t):g.operator==="<"||g.operator==="<="?s=vn(s,g,t):n.add(g.semver);if(n.size>1)return null;let a;if(i&&s){if(a=st(i.semver,s.semver,t),a>0)return null;if(a===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let g of n){if(i&&!Se(g,String(i),t)||s&&!Se(g,String(s),t))return null;for(let rs of e)if(!Se(g,String(rs),t))return!1;return!0}let l,c,o,u,f=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1,w=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let g of e){if(u=u||g.operator===">"||g.operator===">=",o=o||g.operator==="<"||g.operator==="<=",i){if(w&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===w.major&&g.semver.minor===w.minor&&g.semver.patch===w.patch&&(w=!1),g.operator===">"||g.operator===">="){if(l=dn(i,g,t),l===g&&l!==i)return!1}else if(i.operator===">="&&!Se(i.semver,String(g),t))return!1}if(s){if(f&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===f.major&&g.semver.minor===f.minor&&g.semver.patch===f.patch&&(f=!1),g.operator==="<"||g.operator==="<="){if(c=vn(s,g,t),c===g&&c!==s)return!1}else if(s.operator==="<="&&!Se(s.semver,String(g),t))return!1}if(!g.operator&&(s||i)&&a!==0)return!1}return!(i&&o&&!s&&a!==0||s&&u&&!i&&a!==0||w||f)},dn=(r,e,t)=>{if(!r)return e;let n=st(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},vn=(r,e,t)=>{if(!r)return e;let n=st(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};gn.exports=ao});var _n=h((Fc,yn)=>{var it=V(),co=de(),uo=O(),En=ke(),fo=B(),ho=Gt(),po=Ht(),vo=Vt(),go=Zt(),mo=Qt(),Eo=er(),yo=rr(),_o=sr(),bo=T(),wo=or(),So=lr(),Oo=Ae(),Ro=hr(),Io=dr(),$o=me(),qo=Ne(),jo=je(),Ao=Ye(),No=De(),Do=Te(),To=ze(),Lo=wr(),Co=_e(),xo=L(),Po=we(),Fo=Ur(),Go=Br(),Mo=Yr(),Ho=Zr(),Xo=Qr(),Uo=Pe(),Vo=sn(),Bo=an(),ko=un(),Yo=hn(),zo=mn();yn.exports={parse:fo,valid:ho,clean:po,inc:vo,diff:go,major:mo,minor:Eo,patch:yo,prerelease:_o,compare:bo,rcompare:wo,compareLoose:So,compareBuild:Oo,sort:Ro,rsort:Io,gt:$o,lt:qo,eq:jo,neq:Ao,gte:No,lte:Do,cmp:To,coerce:Lo,Comparator:Co,Range:xo,satisfies:Po,toComparators:Fo,maxSatisfying:Go,minSatisfying:Mo,minVersion:Ho,validRange:Xo,outside:Uo,gtr:Vo,ltr:Bo,intersects:ko,simplifyRange:Yo,subset:zo,SemVer:uo,re:it.re,src:it.src,tokens:it.t,SEMVER_SPEC_VERSION:co.SEMVER_SPEC_VERSION,compareIdentifiers:En.compareIdentifiers,rcompareIdentifiers:En.rcompareIdentifiers}});var M=h(D=>{"use strict";var Wo=D&&D.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,i)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Zo=D&&D.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Ko=D&&D.__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)&&Wo(e,r,t);return Zo(e,r),e},bn=D&&D.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(D,"__esModule",{value:!0});D.getCoreVersion=void 0;var wn=bn(require("path")),Sn=bn(require("fs")),ot=Ko(require("@serverless-devs/core")),Qo=_n(),On=wn.default.join(ot.getRootHome(),"cache","core"),at=wn.default.join(On,"package.json");function Jo(){if(Sn.default.existsSync(at)){var r=require("@serverless-devs/core/package.json").version,e=Rn();return Qo.gt(e,r)?require(On):ot}return ot}function Rn(){return Sn.default.existsSync(at)?require(at).version:void 0}D.getCoreVersion=Rn;D.default=Jo()});var Ge=h(Oe=>{"use strict";var ea=Oe&&Oe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Oe,"__esModule",{value:!0});var ta=ea(M()),ra=ta.default.Logger,lt=new ra("S-CLI");lt.success=function(r){return lt.log(r,"green")};Oe.default=lt});var ft=h(A=>{"use strict";var na=A&&A.__awaiter||function(r,e,t,n){function i(s){return s instanceof t?s:new t(function(a){a(s)})}return new(t||(t=Promise))(function(s,a){function l(u){try{o(n.next(u))}catch(f){a(f)}}function c(u){try{o(n.throw(u))}catch(f){a(f)}}function o(u){u.done?s(u.value):i(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},sa=A&&A.__generator||function(r,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(t=0)),t;)try{if(n=1,i&&(s=o[0]&2?i.return:o[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,o[1])).done)return s;switch(i=0,s&&(o=[o[0]&2,s.value]),o[0]){case 0:case 1:s=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,i=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){t.label=o[1];break}if(o[0]===6&&t.label<s[1]){t.label=s[1],s=o;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(o);break}s[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],i=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},In=A&&A.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(A,"__esModule",{value:!0});A.handlerProfileFile=A.getConfig=A.setConfig=void 0;var $n=In(require("path")),ut=In(M()),x=ut.default.fse,Me=ut.default.jsyaml,ct=ut.default.getRootHome;function ia(r){var e=jn();x.writeFileSync(e,Me.dump(r))}function qn(){var r=jn();if(!x.existsSync(r))return{};try{var e=Me.load(x.readFileSync(r,"utf8"))||{};return e}catch(t){throw t}}function jn(){var r=$n.default.join(ct(),"set-config.yml");return x.existsSync(r)||x.createFileSync(r),r}function oa(r,e){var t=qn();t[r]=e,ia(t)}A.setConfig=oa;function aa(r,e){var t=qn();return t[r]||e}A.getConfig=aa;function la(r){return na(this,void 0,void 0,function(){var e,t,n,i,s,a,l;return sa(this,function(c){switch(c.label){case 0:if(e=r.filePath||"set-config.yml",t=$n.default.join(ct(),e),n=x.existsSync(t),i={},n)return[3,5];s=ct(),c.label=1;case 1:return c.trys.push([1,2,,4]),x.statSync(s),[3,4];case 2:return a=c.sent(),[4,x.mkdirSync(s)];case 3:return c.sent(),[3,4];case 4:return[3,6];case 5:try{i=Me.load(x.readFileSync(t,"utf8"))||{}}catch(o){throw o}c.label=6;case 6:return r.read?[2,i]:(l=r.configKey||"",i[l]=r.data,[4,x.writeFileSync(t,Me.dump(i))]);case 7:return c.sent(),[2,i]}})})}A.handlerProfileFile=la});var An=h((Xc,ca)=>{ca.exports={name:"@serverless-devs/s",version:"2.1.8-beta.1",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"Apache 2.0",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"jest test/special-command.test",prebuild:"rm -rf lib/*",build:"tsc && cp -r ./src/daemon ./lib",postbuild:"./shell/postbuild.sh","test:cov":"jest --coverage",lint:"npm run typecheck && f2elint scan -i src",fix:"f2elint fix",typecheck:"npx tsc -p tsconfig.json --noEmit",update:"rm -rf yarn.lock && rm -rf package-lock.json && rm -rf node_modules && yarn",beta:"npm publish --tag=beta",pkg:"tsc && ./shell/pkg.sh"},main:"./lib/index.js",bin:{s:"bin/s"},devDependencies:{"@serverless-devs/commander":"^6.2.6","@types/jest":"^27.4.0","@types/node":"^14.0.23","@typescript-eslint/eslint-plugin":"^4.14.1","@typescript-eslint/parser":"^4.14.1",ajv:"^8.10.0","babel-eslint":"^10.1.0",boxen:"^5.0.0",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2","global-agent":"^3.0.0",husky:"^4.2.3",inquirer:"8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.4.7","latest-version":"^5.1.0","lint-staged":"^10.0.8",open:"^8.4.0","os-locale":"5.0.0",pkg:"^5.8.0",prettier:"^2.2.1",semver:"^7.3.5","semver-diff":"^3.1.1","ts-jest":"^27.1.3","ts-node":"^9.1.1",typescript:"^4.1.3"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"},dependencies:{"@serverless-devs/core":"latest","@serverless-devs/ui":"latest"}}});var pt=h(v=>{"use strict";var ua=v&&v.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,i)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),fa=v&&v.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),ha=v&&v.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&ua(e,r,t);return fa(e,r),e},re=v&&v.__awaiter||function(r,e,t,n){function i(s){return s instanceof t?s:new t(function(a){a(s)})}return new(t||(t=Promise))(function(s,a){function l(u){try{o(n.next(u))}catch(f){a(f)}}function c(u){try{o(n.throw(u))}catch(f){a(f)}}function o(u){u.done?s(u.value):i(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},ne=v&&v.__generator||function(r,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(t=0)),t;)try{if(n=1,i&&(s=o[0]&2?i.return:o[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,o[1])).done)return s;switch(i=0,s&&(o=[o[0]&2,s.value]),o[0]){case 0:case 1:s=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,i=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){t.label=o[1];break}if(o[0]===6&&t.label<s[1]){t.label=s[1],s=o;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(o);break}s[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],i=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},He=v&&v.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(v,"__esModule",{value:!0});v.specifyServiceHelp=v.getTempCommandStr=v.emoji=v.mark=v.replaceTemplate=v.replaceFun=v.getLang=v.printn=v.getFolderSize=v.getVersion=v.aiRequest=v.getCredentialWithAll=v.getCredentialWithExisted=v.getProcessArgv=v.bgRed=v.yellow=v.red=void 0;var pa=He(require("path")),Re=He(require("fs")),da=He(require("os")),q=ha(M()),va=ft(),te=He(Ge()),Nn=An(),se=q.default.colors,ga=q.default.got,ma=q.default.isDocker,Ea=q.default.isCiCdEnv,X=q.default.lodash,Dn=q.default.publishHelp,ya=X.get,_a=X.trim,ba=X.assign,wa=X.filter,Tn=X.includes,Sa=X.omit,Oa=X.isPlainObject,Ra=X.isEmpty,Ia=se.underline,$a=se.bold;v.red=se.hex("#fd5750");v.yellow=se.hex("#F3F99D");v.bgRed=se.hex("#000").bgHex("#fd5750");var qa=function(){var r=process.env.serverless_devs_temp_argv;try{var e=JSON.parse(r),t=q.default.getGlobalArgs(e);return process.argv=process.argv.slice(0,2).concat(t._argsObj),ba({},t,{noHelpArgv:process.argv.slice(0,2).concat(wa(t._argsObj,function(n){return!Tn(["-h","--help"],n)}))})}catch{return{}}};v.getProcessArgv=qa;var ja=function(r){return re(void 0,void 0,void 0,function(){var e,t;return ne(this,function(n){switch(n.label){case 0:return[4,q.default.getCredentialAliasList()];case 1:return e=n.sent(),Tn(e,r)?[4,q.default.getCredential(r)]:[3,3];case 2:return t=n.sent(),[2,t];case 3:return[2]}})})};v.getCredentialWithExisted=ja;var Aa=function(){return re(void 0,void 0,void 0,function(){var r,e,t,n,i,s;return ne(this,function(a){switch(a.label){case 0:return[4,q.default.getCredentialAliasList()];case 1:if(r=a.sent(),!(r.length>0))return[3,6];e={},t=0,n=r,a.label=2;case 2:return t<n.length?(i=n[t],[4,q.default.getCredential(i)]):[3,5];case 3:s=a.sent(),e[s.Alias]=Sa(s,"Alias"),a.label=4;case 4:return t++,[3,2];case 5:return[2,e];case 6:return[2]}})})};v.getCredentialWithAll=Aa;var Na=function(r,e){return e===void 0&&(e="unknow"),re(void 0,void 0,void 0,function(){var t,n,i,s;return ne(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),t=(0,va.getConfig)("analysis"),t!=="enable"?[2]:ma()||Ea()?[2]:[4,ga("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(e,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0})];case 1:return n=a.sent(),i=ya(n.body,"shorturl"),i&&te.default.log(`AI Tips:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
`:"")}return[2]}})})}v.specifyServiceHelp=Fa});var xn=h(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.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 Pn=h(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.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 Gn=h(Ie=>{"use strict";var Fn=Ie&&Ie.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ie,"__esModule",{value:!0});var Ga=pt(),Ma=Fn(xn()),Ha=Fn(Pn()),gt={en:Ha.default,zh:Ma.default},Xa=function(r){var e=(0,Ga.getLang)(),t=gt[e]?gt[e][r]:gt.en[r];return t||r};Ie.default=Xa});var ie=h(R=>{"use strict";var Ua=R&&R.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(r,n,i)}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Mn=R&&R.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Ua(e,r,t)},mt=R&&R.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(R,"__esModule",{value:!0});R.registerCommandChecker=R.i18n=R.logger=void 0;var Va=mt(Ge());Mn(pt(),R);Mn(ft(),R);var Ba=Ge();Object.defineProperty(R,"logger",{enumerable:!0,get:function(){return mt(Ba).default}});var ka=Gn();Object.defineProperty(R,"i18n",{enumerable:!0,get:function(){return mt(ka).default}});function Ya(r){r.on("command:*",function(e){var t=r.commands.map(function(n){return n.name()});t.includes(e[0])||(Va.default.error(" error: unknown command ".concat(e[0])),r.help())})}R.registerCommandChecker=Ya});var Z=h(oe=>{"use strict";var za=oe&&oe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(oe,"__esModule",{value:!0});oe.ServerlessError=void 0;var Wa=za(M()),Za=Wa.default.Logger,Ka=new Za("S-CLI-ERROR"),Qa=function(){function r(e,t,n){Ka.error(e+": "+t,n),process.exit(1)}return r}();oe.ServerlessError=Qa});var Hn=h(ae=>{"use strict";var Ja=ae&&ae.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ae,"__esModule",{value:!0});ae.CommandError=void 0;var el=Z(),tl=function(r){Ja(e,r);function e(t,n){return r.call(this,"Error",t,n)||this}return e}(el.ServerlessError);ae.CommandError=tl});var Xn=h(le=>{"use strict";var rl=le&&le.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(le,"__esModule",{value:!0});le.ConfigDeleteError=void 0;var nl=Z(),sl=function(r){rl(e,r);function e(t,n){return r.call(this,"Deletion failed",t,n)||this}return e}(nl.ServerlessError);le.ConfigDeleteError=sl});var Un=h(ce=>{"use strict";var il=ce&&ce.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ce,"__esModule",{value:!0});ce.ConfigError=void 0;var ol=Z(),al=function(r){il(e,r);function e(t,n){return r.call(this,"Config failed",t,n)||this}return e}(ol.ServerlessError);ce.ConfigError=al});var Vn=h(ue=>{"use strict";var ll=ue&&ue.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ue,"__esModule",{value:!0});ue.ConfigGetError=void 0;var cl=Z(),ul=function(r){ll(e,r);function e(t,n){return r.call(this,"Get failed",t,n)||this}return e}(cl.ServerlessError);ue.ConfigGetError=ul});var Bn=h(fe=>{"use strict";var fl=fe&&fe.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(fe,"__esModule",{value:!0});fe.InitError=void 0;var hl=Z(),pl=function(r){fl(e,r);function e(t,n){return r.call(this,"Initialization failed",t,n)||this}return e}(hl.ServerlessError);fe.InitError=pl});var Yn=h(P=>{"use strict";var dl=P&&P.__awaiter||function(r,e,t,n){function i(s){return s instanceof t?s:new t(function(a){a(s)})}return new(t||(t=Promise))(function(s,a){function l(u){try{o(n.next(u))}catch(f){a(f)}}function c(u){try{o(n.throw(u))}catch(f){a(f)}}function o(u){u.done?s(u.value):i(u.value).then(l,c)}o((n=n.apply(r,e||[])).next())})},vl=P&&P.__generator||function(r,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(o){return function(u){return c([o,u])}}function c(o){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(t=0)),t;)try{if(n=1,i&&(s=o[0]&2?i.return:o[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,o[1])).done)return s;switch(i=0,s&&(o=[o[0]&2,s.value]),o[0]){case 0:case 1:s=o;break;case 4:return t.label++,{value:o[1],done:!1};case 5:t.label++,i=o[1],o=[0];continue;case 7:o=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){t.label=o[1];break}if(o[0]===6&&t.label<s[1]){t.label=s[1],s=o;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(o);break}s[2]&&t.ops.pop(),t.trys.pop();continue}o=e.call(r,t)}catch(u){o=[6,u],i=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},gl=P&&P.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(P,"__esModule",{value:!0});P.HumanError=void 0;var kn=gl(M()),Xe=ie(),ml=kn.default.colors,El=function(){function r(e){var t=e.errorMessage,n=e.tips;this.errorMessage=t,Xe.logger.log(`
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
var path_1 = __importDefault(require("path"));
|
|
42
|
+
var fs_1 = __importDefault(require("fs"));
|
|
43
|
+
var utils_1 = require("../../utils");
|
|
44
|
+
var error_1 = require("../../error");
|
|
45
|
+
var utils_2 = require("../../utils");
|
|
46
|
+
var core_1 = __importDefault(require("../../utils/core"));
|
|
47
|
+
var colors = core_1.default.colors, yaml = core_1.default.jsyaml, getRootHome = core_1.default.getRootHome, getYamlContent = core_1.default.getYamlContent;
|
|
48
|
+
var description = "You can rename an account.\n \n Example:\n $ s config rename sourceAliasName targetAliasName\n \n".concat((0, utils_2.emoji)('📖'), " Document: ").concat(colors.underline('https://github.com/Serverless-Devs/Serverless-Devs/tree/master/docs/zh/command/config.md'));
|
|
49
|
+
function notFound(_a) {
|
|
50
|
+
var source = _a.source, accessFileInfo = _a.accessFileInfo;
|
|
51
|
+
var errorMessage = accessFileInfo
|
|
52
|
+
? "Unable to get key information with alias ".concat(source, ", You have configured these keys: [").concat(String(Object.keys(accessFileInfo)), "].")
|
|
53
|
+
: "Unable to get key information with alias ".concat(source);
|
|
54
|
+
new error_1.HumanError({
|
|
55
|
+
errorMessage: errorMessage,
|
|
56
|
+
tips: "You can use [s config add -h] to view configuration help, Serverless Devs' config document can refer to\uFF1A".concat(colors.underline('https://github.com/Serverless-Devs/Serverless-Devs/blob/master/docs/zh/command/config.md')),
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function exists(_a) {
|
|
60
|
+
var target = _a.target, accessFileInfo = _a.accessFileInfo;
|
|
61
|
+
var errorMessage = "".concat(target, " had exists, please do not configured these keys: [").concat(String(Object.keys(accessFileInfo)), "].");
|
|
62
|
+
new error_1.HumanError({
|
|
63
|
+
errorMessage: errorMessage,
|
|
64
|
+
tips: "You can use [s config get] list accounts",
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function run(program) {
|
|
68
|
+
var _this = this;
|
|
69
|
+
var command = program
|
|
70
|
+
.command('rename')
|
|
71
|
+
.usage('<sourceAliasName> <targetAliasName>')
|
|
72
|
+
.helpOption('-h, --help', 'Display help for command')
|
|
73
|
+
.description(description)
|
|
74
|
+
.addHelpCommand(false)
|
|
75
|
+
.action(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
76
|
+
var error_2;
|
|
77
|
+
return __generator(this, function (_a) {
|
|
78
|
+
switch (_a.label) {
|
|
79
|
+
case 0:
|
|
80
|
+
_a.trys.push([0, 2, , 4]);
|
|
81
|
+
return [4 /*yield*/, doAction()];
|
|
82
|
+
case 1:
|
|
83
|
+
_a.sent();
|
|
84
|
+
return [3 /*break*/, 4];
|
|
85
|
+
case 2:
|
|
86
|
+
error_2 = _a.sent();
|
|
87
|
+
return [4 /*yield*/, (0, error_1.HandleError)(error_2)];
|
|
88
|
+
case 3:
|
|
89
|
+
_a.sent();
|
|
90
|
+
return [3 /*break*/, 4];
|
|
91
|
+
case 4: return [2 /*return*/];
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
}); });
|
|
95
|
+
var doAction = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
96
|
+
var source, target, filePath, accessFileInfo;
|
|
97
|
+
return __generator(this, function (_a) {
|
|
98
|
+
switch (_a.label) {
|
|
99
|
+
case 0:
|
|
100
|
+
source = process.argv[process.argv.indexOf('rename') + 1];
|
|
101
|
+
target = process.argv[process.argv.indexOf('rename') + 2];
|
|
102
|
+
if (!source || !target) {
|
|
103
|
+
command.help();
|
|
104
|
+
}
|
|
105
|
+
filePath = path_1.default.join(getRootHome(), 'access.yaml');
|
|
106
|
+
return [4 /*yield*/, getYamlContent(filePath)];
|
|
107
|
+
case 1:
|
|
108
|
+
accessFileInfo = _a.sent();
|
|
109
|
+
if (accessFileInfo) {
|
|
110
|
+
if (accessFileInfo[target]) {
|
|
111
|
+
exists({ target: target, accessFileInfo: accessFileInfo });
|
|
112
|
+
}
|
|
113
|
+
else if (accessFileInfo[source]) {
|
|
114
|
+
accessFileInfo[target] = accessFileInfo[source];
|
|
115
|
+
delete accessFileInfo[source];
|
|
116
|
+
fs_1.default.writeFileSync(filePath, yaml.dump(accessFileInfo));
|
|
117
|
+
utils_1.logger.success("Key [".concat(source, "] has been successfully rename to [").concat(target, "]."));
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
notFound({ source: source, accessFileInfo: accessFileInfo });
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
notFound({ source: source, accessFileInfo: accessFileInfo });
|
|
125
|
+
}
|
|
126
|
+
return [2 /*return*/];
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
}); };
|
|
130
|
+
}
|
|
131
|
+
module.exports = run;
|
|
132
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29uZmlnL3JlbmFtZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsOENBQXdCO0FBQ3hCLDBDQUFvQjtBQUVwQixxQ0FBcUM7QUFDckMscUNBQXNEO0FBQ3RELHFDQUFvQztBQUNwQywwREFBb0M7QUFDNUIsSUFBQSxNQUFNLEdBQWdELGNBQUksT0FBcEQsRUFBVSxJQUFJLEdBQWtDLGNBQUksT0FBdEMsRUFBRSxXQUFXLEdBQXFCLGNBQUksWUFBekIsRUFBRSxjQUFjLEdBQUssY0FBSSxlQUFULENBQVU7QUFFbkUsSUFBTSxXQUFXLEdBQUcsbUhBS2xCLElBQUEsYUFBSyxFQUFDLElBQUksQ0FBQyx3QkFBYyxNQUFNLENBQUMsU0FBUyxDQUN6QywwRkFBMEYsQ0FDM0YsQ0FBRSxDQUFDO0FBRUosU0FBUyxRQUFRLENBQUMsRUFBb0U7UUFBbEUsTUFBTSxZQUFBLEVBQUUsY0FBYyxvQkFBQTtJQUN4QyxJQUFNLFlBQVksR0FBRyxjQUFjO1FBQ2pDLENBQUMsQ0FBQyxtREFBNEMsTUFBTSxnREFBc0MsTUFBTSxDQUM1RixNQUFNLENBQUMsSUFBSSxDQUFDLGNBQWMsQ0FBQyxDQUM1QixPQUFJO1FBQ1AsQ0FBQyxDQUFDLG1EQUE0QyxNQUFNLENBQUUsQ0FBQztJQUN6RCxJQUFJLGtCQUFVLENBQUM7UUFDYixZQUFZLGNBQUE7UUFDWixJQUFJLEVBQUUsdUhBQTJHLE1BQU0sQ0FBQyxTQUFTLENBQy9ILDBGQUEwRixDQUMzRixDQUFFO0tBQ0osQ0FBQyxDQUFDO0FBQ0wsQ0FBQztBQUVELFNBQVMsTUFBTSxDQUFDLEVBQW9FO1FBQWxFLE1BQU0sWUFBQSxFQUFFLGNBQWMsb0JBQUE7SUFDdEMsSUFBTSxZQUFZLEdBQUcsVUFBRyxNQUFNLGdFQUFzRCxNQUFNLENBQ3hGLE1BQU0sQ0FBQyxJQUFJLENBQUMsY0FBYyxDQUFDLENBQzVCLE9BQUksQ0FBQztJQUNOLElBQUksa0JBQVUsQ0FBQztRQUNiLFlBQVksY0FBQTtRQUNaLElBQUksRUFBRSwwQ0FBMEM7S0FDakQsQ0FBQyxDQUFDO0FBQ0wsQ0FBQztBQUVELFNBQVMsR0FBRyxDQUFDLE9BQWdCO0lBQTdCLGlCQXNDQztJQXJDQyxJQUFNLE9BQU8sR0FBRyxPQUFPO1NBQ3BCLE9BQU8sQ0FBQyxRQUFRLENBQUM7U0FDakIsS0FBSyxDQUFDLHFDQUFxQyxDQUFDO1NBQzVDLFVBQVUsQ0FBQyxZQUFZLEVBQUUsMEJBQTBCLENBQUM7U0FDcEQsV0FBVyxDQUFDLFdBQVcsQ0FBQztTQUN4QixjQUFjLENBQUMsS0FBSyxDQUFDO1NBQ3JCLE1BQU0sQ0FBQzs7Ozs7O29CQUVKLHFCQUFNLFFBQVEsRUFBRSxFQUFBOztvQkFBaEIsU0FBZ0IsQ0FBQzs7OztvQkFFakIscUJBQU0sSUFBQSxtQkFBVyxFQUFDLE9BQUssQ0FBQyxFQUFBOztvQkFBeEIsU0FBd0IsQ0FBQzs7Ozs7U0FFNUIsQ0FBQyxDQUFDO0lBRUwsSUFBTSxRQUFRLEdBQUc7Ozs7O29CQUNULE1BQU0sR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLFFBQVEsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFDO29CQUMxRCxNQUFNLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQztvQkFDaEUsSUFBSSxDQUFDLE1BQU0sSUFBSSxDQUFDLE1BQU0sRUFBRTt3QkFDdEIsT0FBTyxDQUFDLElBQUksRUFBRSxDQUFDO3FCQUNoQjtvQkFDSyxRQUFRLEdBQUcsY0FBSSxDQUFDLElBQUksQ0FBQyxXQUFXLEVBQUUsRUFBRSxhQUFhLENBQUMsQ0FBQztvQkFDbEMscUJBQU0sY0FBYyxDQUFDLFFBQVEsQ0FBQyxFQUFBOztvQkFBL0MsY0FBYyxHQUFHLFNBQThCO29CQUNyRCxJQUFJLGNBQWMsRUFBRTt3QkFDbEIsSUFBSSxjQUFjLENBQUMsTUFBTSxDQUFDLEVBQUU7NEJBQzFCLE1BQU0sQ0FBQyxFQUFFLE1BQU0sUUFBQSxFQUFFLGNBQWMsZ0JBQUEsRUFBRSxDQUFDLENBQUM7eUJBQ3BDOzZCQUFNLElBQUksY0FBYyxDQUFDLE1BQU0sQ0FBQyxFQUFFOzRCQUNqQyxjQUFjLENBQUMsTUFBTSxDQUFDLEdBQUcsY0FBYyxDQUFDLE1BQU0sQ0FBQyxDQUFDOzRCQUNoRCxPQUFPLGNBQWMsQ0FBQyxNQUFNLENBQUMsQ0FBQzs0QkFDOUIsWUFBRSxDQUFDLGFBQWEsQ0FBQyxRQUFRLEVBQUUsSUFBSSxDQUFDLElBQUksQ0FBQyxjQUFjLENBQUMsQ0FBQyxDQUFDOzRCQUN0RCxjQUFNLENBQUMsT0FBTyxDQUFDLGVBQVEsTUFBTSxnREFBc0MsTUFBTSxPQUFJLENBQUMsQ0FBQzt5QkFDaEY7NkJBQU07NEJBQ0wsUUFBUSxDQUFDLEVBQUUsTUFBTSxRQUFBLEVBQUUsY0FBYyxnQkFBQSxFQUFFLENBQUMsQ0FBQzt5QkFDdEM7cUJBQ0Y7eUJBQU07d0JBQ0wsUUFBUSxDQUFDLEVBQUUsTUFBTSxRQUFBLEVBQUUsY0FBYyxnQkFBQSxFQUFFLENBQUMsQ0FBQztxQkFDdEM7Ozs7U0FDRixDQUFDO0FBQ0osQ0FBQztBQUVELGlCQUFTLEdBQUcsQ0FBQyJ9
|