@serverless-devs/s 2.0.99-beta.1 → 2.0.99
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 +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/lib/clean/index.js
CHANGED
|
@@ -38,7 +38,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
38
38
|
`.concat(jc.hex("#000").bgYellow("WARNING:"))),console.log("".concat(s,`
|
|
39
39
|
`)),o&&console.log("".concat(jc.gray(o),`
|
|
40
40
|
`))}return i}();Hn.HumanWarning=uw});var Vc=T(te=>{"use strict";var ow=te&&te.__awaiter||function(i,r,s,o){function l(f){return f instanceof s?f:new s(function(_){_(f)})}return new(s||(s=Promise))(function(f,_){function y(O){try{d(o.next(O))}catch(I){_(I)}}function E(O){try{d(o.throw(O))}catch(I){_(I)}}function d(O){O.done?f(O.value):l(O.value).then(y,E)}d((o=o.apply(i,r||[])).next())})},aw=te&&te.__generator||function(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},o,l,f,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(d){return function(O){return E([d,O])}}function E(d){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(f=d[0]&2?l.return:d[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,d[1])).done)return f;switch(l=0,f&&(d=[d[0]&2,f.value]),d[0]){case 0:case 1:f=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,l=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!f||d[1]>f[0]&&d[1]<f[3])){s.label=d[1];break}if(d[0]===6&&s.label<f[1]){s.label=f[1],f=d;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(d);break}f[2]&&s.ops.pop(),s.trys.pop();continue}d=r.call(i,s)}catch(O){d=[6,O],l=0}finally{o=f=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},lw=te&&te.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(te,"__esModule",{value:!0});te.HandleError=te.HumanWarning=te.HumanError=te.ServerlessError=te.InitError=te.ConfigGetError=te.ConfigError=te.ConfigDeleteError=te.CommandError=void 0;var fw=Mn(),zc=lw(ft()),cw=Mn(),Wn=zc.default.colors,hw=zc.default.report,pw=Fc();Object.defineProperty(te,"CommandError",{enumerable:!0,get:function(){return pw.CommandError}});var dw=Mc();Object.defineProperty(te,"ConfigDeleteError",{enumerable:!0,get:function(){return dw.ConfigDeleteError}});var gw=Hc();Object.defineProperty(te,"ConfigError",{enumerable:!0,get:function(){return gw.ConfigError}});var _w=Wc();Object.defineProperty(te,"ConfigGetError",{enumerable:!0,get:function(){return _w.ConfigGetError}});var vw=Gc();Object.defineProperty(te,"InitError",{enumerable:!0,get:function(){return vw.InitError}});var mw=on();Object.defineProperty(te,"ServerlessError",{enumerable:!0,get:function(){return mw.ServerlessError}});var yw=Bc();Object.defineProperty(te,"HumanError",{enumerable:!0,get:function(){return yw.HumanError}});var Ew=Xc();Object.defineProperty(te,"HumanWarning",{enumerable:!0,get:function(){return Ew.HumanWarning}});function Tu(i,r){return"".concat(Wn.gray(i)).concat(Wn.gray.underline(r))}var ww=function(i){return ow(void 0,void 0,void 0,function(){var r,s,o,l,f,_;return aw(this,function(y){switch(y.label){case 0:return r=i.error,s=i.prefix,o=s===void 0?"Message:":s,[4,(0,cw.getErrorMessage)(r,o)];case 1:return l=y.sent(),f=l.traceId,_=l.catchableError,_||(f&&console.log(Wn.gray("TraceId: ".concat(f))),console.log(Wn.gray("Environment: ".concat((0,fw.getVersion)()))),console.log(Tu("Documents: ","https://www.serverless-devs.com")),console.log(Tu("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log(Tu("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
|
|
41
|
-
`)),f&&console.log(Wn.gray("Please copy traceId: ".concat(f," and join Dingding group: 33947367 for consultation.")))),console.log(Wn.gray("You can run 's clean --all' to clean Serverless devs.")),f&&!_?[4,hw({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:f})]:[3,3];case 2:y.sent(),y.label=3;case 3:return[2]}})})};te.HandleError=ww});var Yc=T((pA,xw)=>{xw.exports={name:"@serverless-devs/s",version:"2.0.99
|
|
41
|
+
`)),f&&console.log(Wn.gray("Please copy traceId: ".concat(f," and join Dingding group: 33947367 for consultation.")))),console.log(Wn.gray("You can run 's clean --all' to clean Serverless devs.")),f&&!_?[4,hw({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:f})]:[3,3];case 2:y.sent(),y.label=3;case 3:return[2]}})})};te.HandleError=ww});var Yc=T((pA,xw)=>{xw.exports={name:"@serverless-devs/s",version:"2.0.99",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"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:{"@serverless-devs/commander":"^6.0.0","@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",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.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 Jc=T(It=>{"use strict";var Kc=It&&It.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(It,"__esModule",{value:!0});It.getHistoryFile=It.getHomeDir=void 0;var Aw=Kc(require("path")),Zc=Kc(ft()),Wi=Zc.default.fse,Sw=Zc.default.getRootHome;function Lu(){var i=Sw();return Wi.existsSync(i)||Wi.mkdirSync(i),i}It.getHomeDir=Lu;function kc(){var i=Aw.default.join(Lu(),"history");return Wi.existsSync(i)||Wi.createFileSync(i),i}It.getHistoryFile=kc;It.default={getHomeDir:Lu,getHistoryFile:kc}});var Nu=T(Re=>{"use strict";var Ow=Re&&Re.__awaiter||function(i,r,s,o){function l(f){return f instanceof s?f:new s(function(_){_(f)})}return new(s||(s=Promise))(function(f,_){function y(O){try{d(o.next(O))}catch(I){_(I)}}function E(O){try{d(o.throw(O))}catch(I){_(I)}}function d(O){O.done?f(O.value):l(O.value).then(y,E)}d((o=o.apply(i,r||[])).next())})},Rw=Re&&Re.__generator||function(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},o,l,f,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(d){return function(O){return E([d,O])}}function E(d){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(f=d[0]&2?l.return:d[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,d[1])).done)return f;switch(l=0,f&&(d=[d[0]&2,f.value]),d[0]){case 0:case 1:f=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,l=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!f||d[1]>f[0]&&d[1]<f[3])){s.label=d[1];break}if(d[0]===6&&s.label<f[1]){s.label=f[1],f=d;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(d);break}f[2]&&s.ops.pop(),s.trys.pop();continue}d=r.call(i,s)}catch(O){d=[6,O],l=0}finally{o=f=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},Du=Re&&Re.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Re,"__esModule",{value:!0});Re.handlerProfileFile=Re.getConfig=Re.setConfig=void 0;var Qc=Du(require("path")),bw=Du(Jc()),$u=Du(ft()),ht=$u.default.fse,Gi=$u.default.jsyaml,eh=$u.default.getRootHome;function Iw(i){var r=nh();ht.writeFileSync(r,Gi.dump(i))}function th(){var i=nh();if(!ht.existsSync(i))return{};try{var r=Gi.load(ht.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function nh(){var i=Qc.default.join(bw.default.getHomeDir(),"set-config.yml");return ht.existsSync(i)||ht.createFileSync(i),i}function rh(i,r){var s=th();s[i]=r,Iw(s)}Re.setConfig=rh;function ih(i,r){var s=th();return s[i]||r}Re.getConfig=ih;function sh(i){return Ow(this,void 0,void 0,function(){var r,s,o,l,f,_,y;return Rw(this,function(E){switch(E.label){case 0:if(r=i.filePath||"set-config.yml",s=Qc.default.join(eh(),r),o=ht.existsSync(s),l={},o)return[3,5];f=eh(),E.label=1;case 1:return E.trys.push([1,2,,4]),ht.statSync(f),[3,4];case 2:return _=E.sent(),[4,ht.mkdirSync(f)];case 3:return E.sent(),[3,4];case 4:return[3,6];case 5:try{l=Gi.load(ht.readFileSync(s,"utf8"))||{}}catch(d){throw d}E.label=6;case 6:return i.read?[2,l]:(y=i.configKey||"",l[y]=i.data,[4,ht.writeFileSync(s,Gi.dump(l))]);case 7:return E.sent(),[2,l]}})})}Re.handlerProfileFile=sh;Re.default={setConfig:rh,getConfig:ih,handlerProfileFile:sh}});var Mn=T(H=>{"use strict";var Cw=H&&H.__createBinding||(Object.create?function(i,r,s,o){o===void 0&&(o=s),Object.defineProperty(i,o,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,o){o===void 0&&(o=s),i[o]=r[s]}),Tw=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Lw=H&&H.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&Cw(r,i,s);return Tw(r,i),r},qu=H&&H.__awaiter||function(i,r,s,o){function l(f){return f instanceof s?f:new s(function(_){_(f)})}return new(s||(s=Promise))(function(f,_){function y(O){try{d(o.next(O))}catch(I){_(I)}}function E(O){try{d(o.throw(O))}catch(I){_(I)}}function d(O){O.done?f(O.value):l(O.value).then(y,E)}d((o=o.apply(i,r||[])).next())})},Pu=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},o,l,f,_;return _={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function y(d){return function(O){return E([d,O])}}function E(d){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,l&&(f=d[0]&2?l.return:d[0]?l.throw||((f=l.return)&&f.call(l),0):l.next)&&!(f=f.call(l,d[1])).done)return f;switch(l=0,f&&(d=[d[0]&2,f.value]),d[0]){case 0:case 1:f=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,l=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(f=s.trys,!(f=f.length>0&&f[f.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!f||d[1]>f[0]&&d[1]<f[3])){s.label=d[1];break}if(d[0]===6&&s.label<f[1]){s.label=f[1],f=d;break}if(f&&s.label<f[2]){s.label=f[2],s.ops.push(d);break}f[2]&&s.ops.pop(),s.trys.pop();continue}d=r.call(i,s)}catch(O){d=[6,O],l=0}finally{o=f=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},Ui=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var ge=Ui(require("path")),Me=Ui(require("fs")),Gt=Ui(Pc()),Dw=Ui(require("os")),$w=Vc(),Ze=Lw(ft()),an=Ze.default.colors,Nw=Ze.default.jsyaml,qw=Ze.default.makeUnderLine,Pw=Ze.default.got,Fw=Ze.default.Logger,uh=Ze.default.isDebugMode,Mw=Ze.default.getMAC,Hw=Ze.default.getYamlContent,Ww=Ze.default.isDocker,Gw=Ze.default.isCiCdEnv,oh=Yc(),Uw=Nu();H.red=an.hex("#fd5750");H.yellow=an.hex("#F3F99D");H.bgRed=an.hex("#000").bgHex("#fd5750");var Bw=function(i,r){if(!(Ww()||Gw()))return Pw("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(i,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0}).then(function(s){var o=Gt.default.get(s.body,"shorturl");o&&console.log(`AI Tips:
|
|
42
42
|
You can try to solve the problem through: `.concat(an.underline(o),`
|
|
43
43
|
`))}).catch(function(){})},jw=function(i,r){return qu(void 0,void 0,void 0,function(){var s,o,l,f,_,y,E,d,O,I,L,q;return Pu(this,function(ue){switch(ue.label){case 0:if(s={traceId:"",catchableError:!1},o=function(){try{return Mw().replace(/:/g,"")}catch{return"unknown"}},l=(0,Uw.getConfig)("analysis"),l!=="disable"&&(s.traceId="".concat(o()).concat(Date.now())),f=uh?uh():void 0,f)return console.log(i),[2,s];_=i.message?i.message:"";try{y=JSON.parse(_)}catch{}return y&&y.tips?(E=y.message?"Message: ".concat(y.message,`
|
|
44
44
|
`):"",d=y.tips?"* ".concat(qw(y.tips.replace(/\n/,`
|
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=xl(function(){return ee(d,q+"return "+A).apply(i,v)});if(B.source=A,$o(B))throw B;return B}function Sy(e){return te(e).toLowerCase()}function Cy(e){return te(e).toUpperCase()}function Oy(e,t,s){if(e=te(e),e&&(s||t===i))return qa(e);if(!e||!(t=Ye(t)))return e;var c=dt(e),f=dt(t),d=$a(c,f),v=Fa(c,f)+1;return nn(c,d,v).join("")}function xy(e,t,s){if(e=te(e),e&&(s||t===i))return e.slice(0,ja(e)+1);if(!e||!(t=Ye(t)))return e;var c=dt(e),f=Fa(c,dt(t))+1;return nn(c,0,f).join("")}function Ay(e,t,s){if(e=te(e),e&&(s||t===i))return e.replace(qs,"");if(!e||!(t=Ye(t)))return e;var c=dt(e),f=$a(c,dt(t));return nn(c,f).join("")}function Iy(e,t){var s=wd,c=bd;if(fe(t)){var f="separator"in t?t.separator:f;s="length"in t?W(t.length):s,c="omission"in t?Ye(t.omission):c}e=te(e);var d=e.length;if(Fn(e)){var v=dt(e);d=v.length}if(s>=d)return e;var y=s-Mn(c);if(y<1)return c;var w=v?nn(v,0,y).join(""):e.slice(0,y);if(f===i)return w+c;if(v&&(y+=w.length-y),Fo(f)){if(e.slice(y).search(f)){var O,x=w;for(f.global||(f=Zs(f.source,te(ra.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(Ye(f),y)!=y){var T=w.lastIndexOf(f);T>-1&&(w=w.slice(0,T))}return w+c}function Ry(e){return e=te(e),e&&Hd.test(e)?e.replace(ea,iv):e}var Py=Bn(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),Ho=Ac("toUpperCase");function Ol(e,t,s){return e=te(e),t=s?i:t,t===i?Qg(e)?uv(e):Bg(e):e.match(t)||[]}var xl=V(function(e,t){try{return Ve(e,i,t)}catch(s){return $o(s)?s:new U(s)}}),Ty=Ft(function(e,t){return tt(t,function(s){s=bt(s),qt(e,s,Do(e[s],e))}),e});function Ly(e){var t=e==null?0:e.length,s=F();return e=t?le(e,function(c){if(typeof c[1]!="function")throw new nt(a);return[s(c[0]),c[1]]}):[],V(function(c){for(var f=-1;++f<t;){var d=e[f];if(Ve(d[0],this,c))return Ve(d[1],this,c)}})}function Ny(e){return im(it(e,l))}function Uo(e){return function(){return e}}function Dy(e,t){return e==null||e!==e?t:e}var qy=Rc(),$y=Rc(!0);function We(e){return e}function Go(e){return sc(typeof e=="function"?e:it(e,l))}function Fy(e){return uc(it(e,l))}function My(e,t){return ac(e,it(t,l))}var jy=V(function(e,t){return function(s){return xr(s,e,t)}}),Hy=V(function(e,t){return function(s){return xr(e,s,t)}});function Wo(e,t,s){var c=Ee(t),f=Ni(t,c);s==null&&!(fe(t)&&(f.length||!c.length))&&(s=t,t=e,e=this,f=Ni(t,Ee(t)));var d=!(fe(s)&&"chain"in s)||!!s.chain,v=jt(e);return tt(f,function(y){var w=t[y];e[y]=w,v&&(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 Uy(){return ye._===this&&(ye._=pv),this}function Bo(){}function Gy(e){return e=W(e),V(function(t){return cc(t,e)})}var Wy=wo(le),By=wo(Pa),ky=wo(ks);function Al(e){return Io(e)?Vs(bt(e)):wm(e)}function Vy(e){return function(t){return e==null?i:vn(e,t)}}var zy=Tc(),Yy=Tc(!0);function ko(){return[]}function Vo(){return!1}function Xy(){return{}}function Ky(){return""}function Jy(){return!0}function Zy(e,t){if(e=W(e),e<1||e>zt)return[];var s=yt,c=Ie(e,yt);t=F(t),e-=yt;for(var f=Xs(c,t);++s<e;)t(s);return f}function Qy(e){return G(e)?le(e,bt):Xe(e)?[e]:He(zc(te(e)))}function eE(e){var t=++fv;return te(e)+t}var tE=ji(function(e,t){return e+t},0),nE=bo("ceil"),rE=ji(function(e,t){return e/t},1),iE=bo("floor");function sE(e){return e&&e.length?Li(e,We,oo):i}function oE(e,t){return e&&e.length?Li(e,F(t,2),oo):i}function uE(e){return Na(e,We)}function aE(e,t){return Na(e,F(t,2))}function cE(e){return e&&e.length?Li(e,We,lo):i}function lE(e,t){return e&&e.length?Li(e,F(t,2),lo):i}var fE=ji(function(e,t){return e*t},1),hE=bo("round"),pE=ji(function(e,t){return e-t},0);function dE(e){return e&&e.length?Ys(e,We):0}function gE(e,t){return e&&e.length?Ys(e,F(t,2)):0}return p.after=F0,p.ary=il,p.assign=C1,p.assignIn=_l,p.assignInWith=Zi,p.assignWith=O1,p.at=x1,p.before=sl,p.bind=Do,p.bindAll=Ty,p.bindKey=ol,p.castArray=X0,p.chain=tl,p.chunk=i_,p.compact=s_,p.concat=o_,p.cond=Ly,p.conforms=Ny,p.constant=Uo,p.countBy=d0,p.create=A1,p.curry=ul,p.curryRight=al,p.debounce=cl,p.defaults=I1,p.defaultsDeep=R1,p.defer=M0,p.delay=j0,p.difference=u_,p.differenceBy=a_,p.differenceWith=c_,p.drop=l_,p.dropRight=f_,p.dropRightWhile=h_,p.dropWhile=p_,p.fill=d_,p.filter=v0,p.flatMap=y0,p.flatMapDeep=E0,p.flatMapDepth=w0,p.flatten=Jc,p.flattenDeep=g_,p.flattenDepth=v_,p.flip=H0,p.flow=qy,p.flowRight=$y,p.fromPairs=m_,p.functions=$1,p.functionsIn=F1,p.groupBy=b0,p.initial=y_,p.intersection=E_,p.intersectionBy=w_,p.intersectionWith=b_,p.invert=j1,p.invertBy=H1,p.invokeMap=C0,p.iteratee=Go,p.keyBy=O0,p.keys=Ee,p.keysIn=Ge,p.map=Vi,p.mapKeys=G1,p.mapValues=W1,p.matches=Fy,p.matchesProperty=My,p.memoize=Yi,p.merge=B1,p.mergeWith=yl,p.method=jy,p.methodOf=Hy,p.mixin=Wo,p.negate=Xi,p.nthArg=Gy,p.omit=k1,p.omitBy=V1,p.once=U0,p.orderBy=x0,p.over=Wy,p.overArgs=G0,p.overEvery=By,p.overSome=ky,p.partial=qo,p.partialRight=ll,p.partition=A0,p.pick=z1,p.pickBy=El,p.property=Al,p.propertyOf=Vy,p.pull=x_,p.pullAll=Qc,p.pullAllBy=A_,p.pullAllWith=I_,p.pullAt=R_,p.range=zy,p.rangeRight=Yy,p.rearg=W0,p.reject=P0,p.remove=P_,p.rest=B0,p.reverse=Lo,p.sampleSize=L0,p.set=X1,p.setWith=K1,p.shuffle=N0,p.slice=T_,p.sortBy=$0,p.sortedUniq=M_,p.sortedUniqBy=j_,p.split=yy,p.spread=k0,p.tail=H_,p.take=U_,p.takeRight=G_,p.takeRightWhile=W_,p.takeWhile=B_,p.tap=s0,p.throttle=V0,p.thru=ki,p.toArray=gl,p.toPairs=wl,p.toPairsIn=bl,p.toPath=Qy,p.toPlainObject=ml,p.transform=J1,p.unary=z0,p.union=k_,p.unionBy=V_,p.unionWith=z_,p.uniq=Y_,p.uniqBy=X_,p.uniqWith=K_,p.unset=Z1,p.unzip=No,p.unzipWith=el,p.update=Q1,p.updateWith=ey,p.values=zn,p.valuesIn=ty,p.without=J_,p.words=Ol,p.wrap=Y0,p.xor=Z_,p.xorBy=Q_,p.xorWith=e0,p.zip=t0,p.zipObject=n0,p.zipObjectDeep=r0,p.zipWith=i0,p.entries=wl,p.entriesIn=bl,p.extend=_l,p.extendWith=Zi,Wo(p,p),p.add=tE,p.attempt=xl,p.camelCase=sy,p.capitalize=Sl,p.ceil=nE,p.clamp=ny,p.clone=K0,p.cloneDeep=Z0,p.cloneDeepWith=Q0,p.cloneWith=J0,p.conformsTo=e1,p.deburr=Cl,p.defaultTo=Dy,p.divide=rE,p.endsWith=oy,p.eq=vt,p.escape=uy,p.escapeRegExp=ay,p.every=g0,p.find=m0,p.findIndex=Xc,p.findKey=P1,p.findLast=_0,p.findLastIndex=Kc,p.findLastKey=T1,p.floor=iE,p.forEach=nl,p.forEachRight=rl,p.forIn=L1,p.forInRight=N1,p.forOwn=D1,p.forOwnRight=q1,p.get=Mo,p.gt=t1,p.gte=n1,p.has=M1,p.hasIn=jo,p.head=Zc,p.identity=We,p.includes=S0,p.indexOf=__,p.inRange=ry,p.invoke=U1,p.isArguments=yn,p.isArray=G,p.isArrayBuffer=r1,p.isArrayLike=Ue,p.isArrayLikeObject=pe,p.isBoolean=i1,p.isBuffer=rn,p.isDate=s1,p.isElement=o1,p.isEmpty=u1,p.isEqual=a1,p.isEqualWith=c1,p.isError=$o,p.isFinite=l1,p.isFunction=jt,p.isInteger=fl,p.isLength=Ki,p.isMap=hl,p.isMatch=f1,p.isMatchWith=h1,p.isNaN=p1,p.isNative=d1,p.isNil=v1,p.isNull=g1,p.isNumber=pl,p.isObject=fe,p.isObjectLike=he,p.isPlainObject=Lr,p.isRegExp=Fo,p.isSafeInteger=m1,p.isSet=dl,p.isString=Ji,p.isSymbol=Xe,p.isTypedArray=Vn,p.isUndefined=_1,p.isWeakMap=y1,p.isWeakSet=E1,p.join=S_,p.kebabCase=cy,p.last=ot,p.lastIndexOf=C_,p.lowerCase=ly,p.lowerFirst=fy,p.lt=w1,p.lte=b1,p.max=sE,p.maxBy=oE,p.mean=uE,p.meanBy=aE,p.min=cE,p.minBy=lE,p.stubArray=ko,p.stubFalse=Vo,p.stubObject=Xy,p.stubString=Ky,p.stubTrue=Jy,p.multiply=fE,p.nth=O_,p.noConflict=Uy,p.noop=Bo,p.now=zi,p.pad=hy,p.padEnd=py,p.padStart=dy,p.parseInt=gy,p.random=iy,p.reduce=I0,p.reduceRight=R0,p.repeat=vy,p.replace=my,p.result=Y1,p.round=hE,p.runInContext=E,p.sample=T0,p.size=D0,p.snakeCase=_y,p.some=q0,p.sortedIndex=L_,p.sortedIndexBy=N_,p.sortedIndexOf=D_,p.sortedLastIndex=q_,p.sortedLastIndexBy=$_,p.sortedLastIndexOf=F_,p.startCase=Ey,p.startsWith=wy,p.subtract=pE,p.sum=dE,p.sumBy=gE,p.template=by,p.times=Zy,p.toFinite=Ht,p.toInteger=W,p.toLength=vl,p.toLower=Sy,p.toNumber=ut,p.toSafeInteger=S1,p.toString=te,p.toUpper=Cy,p.trim=Oy,p.trimEnd=xy,p.trimStart=Ay,p.truncate=Iy,p.unescape=Ry,p.uniqueId=eE,p.upperCase=Py,p.upperFirst=Ho,p.each=nl,p.eachRight=rl,p.first=Zc,Wo(p,function(){var e={};return Et(p,function(t,s){re.call(p.prototype,s)||(e[s]=t)}),e}(),{chain:!1}),p.VERSION=r,tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){p[e].placeholder=p}),tt(["drop","take"],function(e,t){X.prototype[e]=function(s){s=s===i?1:_e(W(s),0);var c=this.__filtered__&&!t?new X(this):this.clone();return c.__filtered__?c.__takeCount__=Ie(s,c.__takeCount__):c.__views__.push({size:Ie(s,yt),type:e+(c.__dir__<0?"Right":"")}),c},X.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),tt(["filter","map","takeWhile"],function(e,t){var s=t+1,c=s==Ju||s==xd;X.prototype[e]=function(f){var d=this.clone();return d.__iteratees__.push({iteratee:F(f,3),type:s}),d.__filtered__=d.__filtered__||c,d}}),tt(["head","last"],function(e,t){var s="take"+(t?"Right":"");X.prototype[e]=function(){return this[s](1).value()[0]}}),tt(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");X.prototype[e]=function(){return this.__filtered__?new X(this):this[s](1)}}),X.prototype.compact=function(){return this.filter(We)},X.prototype.find=function(e){return this.filter(e).head()},X.prototype.findLast=function(e){return this.reverse().find(e)},X.prototype.invokeMap=V(function(e,t){return typeof e=="function"?new X(this):this.map(function(s){return xr(s,e,t)})}),X.prototype.reject=function(e){return this.filter(Xi(F(e)))},X.prototype.slice=function(e,t){e=W(e);var s=this;return s.__filtered__&&(e>0||t<0)?new X(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==i&&(t=W(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},X.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},X.prototype.toArray=function(){return this.take(yt)},Et(X.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),c=/^(?:head|last)$/.test(t),f=p[c?"take"+(t=="last"?"Right":""):t],d=c||/^find/.test(t);!f||(p.prototype[t]=function(){var v=this.__wrapped__,y=c?[1]:arguments,w=v instanceof X,O=y[0],x=w||G(v),A=function(z){var J=f.apply(p,Xt([z],y));return c&&T?J[0]:J};x&&s&&typeof O=="function"&&O.length!=1&&(w=x=!1);var T=this.__chain__,q=!!this.__actions__.length,M=d&&!T,B=w&&!q;if(!d&&x){v=B?v:new X(this);var j=e.apply(v,y);return j.__actions__.push({func:ki,args:[A],thisArg:i}),new rt(j,T)}return M&&B?e.apply(this,y):(j=this.thru(A),M?c?j.value()[0]:j.value():j)})}),tt(["pop","push","shift","sort","splice","unshift"],function(e){var t=mi[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",c=/^(?:pop|shift)$/.test(e);p.prototype[e]=function(){var f=arguments;if(c&&!this.__chain__){var d=this.value();return t.apply(G(d)?d:[],f)}return this[s](function(v){return t.apply(G(v)?v:[],f)})}}),Et(X.prototype,function(e,t){var s=p[t];if(s){var c=s.name+"";re.call(Un,c)||(Un[c]=[]),Un[c].push({name:t,func:s})}}),Un[Mi(i,ne).name]=[{name:"wrapper",func:i}],X.prototype.clone=Rv,X.prototype.reverse=Pv,X.prototype.value=Tv,p.prototype.at=o0,p.prototype.chain=u0,p.prototype.commit=a0,p.prototype.next=c0,p.prototype.plant=f0,p.prototype.reverse=h0,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=p0,p.prototype.first=p.prototype.head,yr&&(p.prototype[yr]=l0),p},Jt=av();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ye._=Jt,define(function(){return Jt})):fn?((fn.exports=Jt)._=Jt,Us._=Jt):ye._=Jt}).call(Yn)});var $r=P(($O,$l)=>{var _E="2.0.0",yE=256,EE=Number.MAX_SAFE_INTEGER||9007199254740991,wE=16;$l.exports={SEMVER_SPEC_VERSION:_E,MAX_LENGTH:yE,MAX_SAFE_INTEGER:EE,MAX_SAFE_COMPONENT_LENGTH:wE}});var Fr=P((FO,Fl)=>{var bE=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Fl.exports=bE});var bn=P((sn,Ml)=>{var{MAX_SAFE_COMPONENT_LENGTH:Jo}=$r(),SE=Fr();sn=Ml.exports={};var CE=sn.re=[],N=sn.src=[],D=sn.t={},OE=0,k=(i,r,n)=>{let u=OE++;SE(u,r),D[i]=u,N[u]=r,CE[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);sn.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);sn.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);sn.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 Mr=P((MO,jl)=>{var xE=["includePrerelease","loose","rtl"],AE=i=>i?typeof i!="object"?{loose:!0}:xE.filter(r=>i[r]).reduce((r,n)=>(r[n]=!0,r),{}):{};jl.exports=AE});var es=P((jO,Gl)=>{var Hl=/^[0-9]+$/,Ul=(i,r)=>{let n=Hl.test(i),u=Hl.test(r);return n&&u&&(i=+i,r=+r),i===r?0:n&&!u?-1:u&&!n?1:i<r?-1:1},IE=(i,r)=>Ul(r,i);Gl.exports={compareIdentifiers:Ul,rcompareIdentifiers:IE}});var Pe=P((HO,Vl)=>{var ts=Fr(),{MAX_LENGTH:Wl,MAX_SAFE_INTEGER:ns}=$r(),{re:Bl,t:kl}=bn(),RE=Mr(),{compareIdentifiers:jr}=es(),at=class{constructor(r,n){if(n=RE(n),r instanceof at){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>Wl)throw new TypeError(`version is longer than ${Wl} characters`);ts("SemVer",r,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let u=r.trim().match(n.loose?Bl[kl.LOOSE]:Bl[kl.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>ns||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ns||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ns||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<ns)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(ts("SemVer.compare",this.version,this.options,r),!(r instanceof at)){if(typeof r=="string"&&r===this.version)return 0;r=new at(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof at||(r=new at(r,this.options)),jr(this.major,r.major)||jr(this.minor,r.minor)||jr(this.patch,r.patch)}comparePre(r){if(r instanceof at||(r=new at(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(ts("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 jr(u,a)}while(++n)}compareBuild(r){r instanceof at||(r=new at(r,this.options));let n=0;do{let u=this.build[n],a=r.build[n];if(ts("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 jr(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}};Vl.exports=at});var Sn=P((UO,Kl)=>{var{MAX_LENGTH:PE}=$r(),{re:zl,t:Yl}=bn(),Xl=Pe(),TE=Mr(),LE=(i,r)=>{if(r=TE(r),i instanceof Xl)return i;if(typeof i!="string"||i.length>PE||!(r.loose?zl[Yl.LOOSE]:zl[Yl.FULL]).test(i))return null;try{return new Xl(i,r)}catch{return null}};Kl.exports=LE});var Zl=P((GO,Jl)=>{var NE=Sn(),DE=(i,r)=>{let n=NE(i,r);return n?n.version:null};Jl.exports=DE});var ef=P((WO,Ql)=>{var qE=Sn(),$E=(i,r)=>{let n=qE(i.trim().replace(/^[=v]+/,""),r);return n?n.version:null};Ql.exports=$E});var nf=P((BO,tf)=>{var FE=Pe(),ME=(i,r,n,u)=>{typeof n=="string"&&(u=n,n=void 0);try{return new FE(i,n).inc(r,u).version}catch{return null}};tf.exports=ME});var ct=P((kO,sf)=>{var rf=Pe(),jE=(i,r,n)=>new rf(i,n).compare(new rf(r,n));sf.exports=jE});var rs=P((VO,of)=>{var HE=ct(),UE=(i,r,n)=>HE(i,r,n)===0;of.exports=UE});var cf=P((zO,af)=>{var uf=Sn(),GE=rs(),WE=(i,r)=>{if(GE(i,r))return null;{let n=uf(i),u=uf(r),a=n.prerelease.length||u.prerelease.length,o=a?"pre":"",h=a?"prerelease":"";for(let g in n)if((g==="major"||g==="minor"||g==="patch")&&n[g]!==u[g])return o+g;return h}};af.exports=WE});var ff=P((YO,lf)=>{var BE=Pe(),kE=(i,r)=>new BE(i,r).major;lf.exports=kE});var pf=P((XO,hf)=>{var VE=Pe(),zE=(i,r)=>new VE(i,r).minor;hf.exports=zE});var gf=P((KO,df)=>{var YE=Pe(),XE=(i,r)=>new YE(i,r).patch;df.exports=XE});var mf=P((JO,vf)=>{var KE=Sn(),JE=(i,r)=>{let n=KE(i,r);return n&&n.prerelease.length?n.prerelease:null};vf.exports=JE});var yf=P((ZO,_f)=>{var ZE=ct(),QE=(i,r,n)=>ZE(r,i,n);_f.exports=QE});var wf=P((QO,Ef)=>{var ew=ct(),tw=(i,r)=>ew(i,r,!0);Ef.exports=tw});var is=P((ex,Sf)=>{var bf=Pe(),nw=(i,r,n)=>{let u=new bf(i,n),a=new bf(r,n);return u.compare(a)||u.compareBuild(a)};Sf.exports=nw});var Of=P((tx,Cf)=>{var rw=is(),iw=(i,r)=>i.sort((n,u)=>rw(n,u,r));Cf.exports=iw});var Af=P((nx,xf)=>{var sw=is(),ow=(i,r)=>i.sort((n,u)=>sw(u,n,r));xf.exports=ow});var Hr=P((rx,If)=>{var uw=ct(),aw=(i,r,n)=>uw(i,r,n)>0;If.exports=aw});var ss=P((ix,Rf)=>{var cw=ct(),lw=(i,r,n)=>cw(i,r,n)<0;Rf.exports=lw});var Zo=P((sx,Pf)=>{var fw=ct(),hw=(i,r,n)=>fw(i,r,n)!==0;Pf.exports=hw});var os=P((ox,Tf)=>{var pw=ct(),dw=(i,r,n)=>pw(i,r,n)>=0;Tf.exports=dw});var us=P((ux,Lf)=>{var gw=ct(),vw=(i,r,n)=>gw(i,r,n)<=0;Lf.exports=vw});var Qo=P((ax,Nf)=>{var mw=rs(),_w=Zo(),yw=Hr(),Ew=os(),ww=ss(),bw=us(),Sw=(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 mw(i,n,u);case"!=":return _w(i,n,u);case">":return yw(i,n,u);case">=":return Ew(i,n,u);case"<":return ww(i,n,u);case"<=":return bw(i,n,u);default:throw new TypeError(`Invalid operator: ${r}`)}};Nf.exports=Sw});var qf=P((cx,Df)=>{var Cw=Pe(),Ow=Sn(),{re:as,t:cs}=bn(),xw=(i,r)=>{if(i instanceof Cw)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(as[cs.COERCE]);else{let u;for(;(u=as[cs.COERCERTL].exec(i))&&(!n||n.index+n[0].length!==i.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),as[cs.COERCERTL].lastIndex=u.index+u[1].length+u[2].length;as[cs.COERCERTL].lastIndex=-1}return n===null?null:Ow(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,r)};Df.exports=xw});var Ff=P((lx,$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 jf=P((fx,Mf)=>{"use strict";Mf.exports=Z;Z.Node=Cn;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++)Iw(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)Rw(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=Aw(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 Aw(i,r,n){var u=r===i.head?new Cn(n,null,r,i):new Cn(n,r,r.next,i);return u.next===null&&(i.tail=u),u.prev===null&&(i.head=u),i.length++,u}function Iw(i,r){i.tail=new Cn(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function Rw(i,r){i.head=new Cn(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function Cn(i,r,n,u){if(!(this instanceof Cn))return new Cn(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=P((hx,kf)=>{"use strict";var Pw=jf(),On=Symbol("max"),Gt=Symbol("length"),Kn=Symbol("lengthCalculator"),Ur=Symbol("allowStale"),xn=Symbol("maxAge"),Wt=Symbol("dispose"),Hf=Symbol("noDisposeOnSet"),we=Symbol("lruList"),_t=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[On]=r.max||1/0,u=r.length||eu;if(this[Kn]=typeof u!="function"?eu:u,this[Ur]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[xn]=r.maxAge||0,this[Wt]=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[On]=r||1/0,Gr(this)}get max(){return this[On]}set allowStale(r){this[Ur]=!!r}get allowStale(){return this[Ur]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[xn]=r,Gr(this)}get maxAge(){return this[xn]}set lengthCalculator(r){typeof r!="function"&&(r=eu),r!==this[Kn]&&(this[Kn]=r,this[Gt]=0,this[we].forEach(n=>{n.length=this[Kn](n.value,n.key),this[Gt]+=n.length})),Gr(this)}get lengthCalculator(){return this[Kn]}get length(){return this[Gt]}get itemCount(){return this[we].length}rforEach(r,n){n=n||this;for(let u=this[we].tail;u!==null;){let a=u.prev;Bf(this,r,u,n),u=a}}forEach(r,n){n=n||this;for(let u=this[we].head;u!==null;){let a=u.next;Bf(this,r,u,n),u=a}}keys(){return this[we].toArray().map(r=>r.key)}values(){return this[we].toArray().map(r=>r.value)}reset(){this[Wt]&&this[we]&&this[we].length&&this[we].forEach(r=>this[Wt](r.key,r.value)),this[_t]=new Map,this[we]=new Pw,this[Gt]=0}dump(){return this[we].map(r=>ls(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[we]}set(r,n,u){if(u=u||this[xn],u&&typeof u!="number")throw new TypeError("maxAge must be a number");let a=u?Date.now():0,o=this[Kn](n,r);if(this[_t].has(r)){if(o>this[On])return Jn(this,this[_t].get(r)),!1;let _=this[_t].get(r).value;return this[Wt]&&(this[Hf]||this[Wt](r,_.value)),_.now=a,_.maxAge=u,_.value=n,this[Gt]+=o-_.length,_.length=o,this.get(r),Gr(this),!0}let h=new Wf(r,n,o,a,u);return h.length>this[On]?(this[Wt]&&this[Wt](r,n),!1):(this[Gt]+=h.length,this[we].unshift(h),this[_t].set(r,this[we].head),Gr(this),!0)}has(r){if(!this[_t].has(r))return!1;let n=this[_t].get(r).value;return!ls(this,n)}get(r){return tu(this,r,!0)}peek(r){return tu(this,r,!1)}pop(){let r=this[we].tail;return r?(Jn(this,r),r.value):null}del(r){Jn(this,this[_t].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 h=o-n;h>0&&this.set(a.k,a.v,h)}}}prune(){this[_t].forEach((r,n)=>tu(this,n,!1))}},tu=(i,r,n)=>{let u=i[_t].get(r);if(u){let a=u.value;if(ls(i,a)){if(Jn(i,u),!i[Ur])return}else n&&(i[Uf]&&(u.value.now=Date.now()),i[we].unshiftNode(u));return a.value}},ls=(i,r)=>{if(!r||!r.maxAge&&!i[xn])return!1;let n=Date.now()-r.now;return r.maxAge?n>r.maxAge:i[xn]&&n>i[xn]},Gr=i=>{if(i[Gt]>i[On])for(let r=i[we].tail;i[Gt]>i[On]&&r!==null;){let n=r.prev;Jn(i,r),r=n}},Jn=(i,r)=>{if(r){let n=r.value;i[Wt]&&i[Wt](n.key,n.value),i[Gt]-=n.length,i[_t].delete(n.key),i[we].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;ls(i,a)&&(Jn(i,n),i[Ur]||(a=void 0)),a&&r.call(u,a.value,a.key,i)};kf.exports=Gf});var lt=P((px,Kf)=>{var Zn=class{constructor(r,n){if(n=Lw(n),r instanceof Zn)return r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease?r:new Zn(r.raw,n);if(r instanceof nu)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=>!Yf(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&&Fw(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,h=o?Te[Oe.HYPHENRANGELOOSE]:Te[Oe.HYPHENRANGE];r=r.replace(h,zw(this.options.includePrerelease)),ge("hyphen replace",r),r=r.replace(Te[Oe.COMPARATORTRIM],Dw),ge("comparator trim",r,Te[Oe.COMPARATORTRIM]),r=r.replace(Te[Oe.TILDETRIM],qw),r=r.replace(Te[Oe.CARETTRIM],$w),r=r.split(/\s+/).join(" ");let g=o?Te[Oe.COMPARATORLOOSE]:Te[Oe.COMPARATOR],_=r.split(" ").map(I=>Mw(I,this.options)).join(" ").split(/\s+/).map(I=>Vw(I,this.options)).filter(this.options.loose?I=>!!I.match(g):()=>!0).map(I=>new nu(I,this.options)),l=_.length,m=new Map;for(let I of _){if(Yf(I))return[I];m.set(I.value,I)}m.size>1&&m.has("")&&m.delete("");let b=[...m.values()];return zf.set(u,b),b}intersects(r,n){if(!(r instanceof Zn))throw new TypeError("a Range is required");return this.set.some(u=>Xf(u,n)&&r.set.some(a=>Xf(a,n)&&u.every(o=>a.every(h=>o.intersects(h,n)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new Nw(r,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(Yw(this.set[n],r,this.options))return!0;return!1}};Kf.exports=Zn;var Tw=Vf(),zf=new Tw({max:1e3}),Lw=Mr(),nu=Wr(),ge=Fr(),Nw=Pe(),{re:Te,t:Oe,comparatorTrimReplace:Dw,tildeTrimReplace:qw,caretTrimReplace:$w}=bn(),Yf=i=>i.value==="<0.0.0-0",Fw=i=>i.value==="",Xf=(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},Mw=(i,r)=>(ge("comp",i,r),i=Uw(i,r),ge("caret",i),i=jw(i,r),ge("tildes",i),i=Ww(i,r),ge("xrange",i),i=kw(i,r),ge("stars",i),i),Fe=i=>!i||i.toLowerCase()==="x"||i==="*",jw=(i,r)=>i.trim().split(/\s+/).map(n=>Hw(n,r)).join(" "),Hw=(i,r)=>{let n=r.loose?Te[Oe.TILDELOOSE]:Te[Oe.TILDE];return i.replace(n,(u,a,o,h,g)=>{ge("tilde",i,u,a,o,h,g);let _;return Fe(a)?_="":Fe(o)?_=`>=${a}.0.0 <${+a+1}.0.0-0`:Fe(h)?_=`>=${a}.${o}.0 <${a}.${+o+1}.0-0`:g?(ge("replaceTilde pr",g),_=`>=${a}.${o}.${h}-${g} <${a}.${+o+1}.0-0`):_=`>=${a}.${o}.${h} <${a}.${+o+1}.0-0`,ge("tilde return",_),_})},Uw=(i,r)=>i.trim().split(/\s+/).map(n=>Gw(n,r)).join(" "),Gw=(i,r)=>{ge("caret",i,r);let n=r.loose?Te[Oe.CARETLOOSE]:Te[Oe.CARET],u=r.includePrerelease?"-0":"";return i.replace(n,(a,o,h,g,_)=>{ge("caret",i,a,o,h,g,_);let l;return Fe(o)?l="":Fe(h)?l=`>=${o}.0.0${u} <${+o+1}.0.0-0`:Fe(g)?o==="0"?l=`>=${o}.${h}.0${u} <${o}.${+h+1}.0-0`:l=`>=${o}.${h}.0${u} <${+o+1}.0.0-0`:_?(ge("replaceCaret pr",_),o==="0"?h==="0"?l=`>=${o}.${h}.${g}-${_} <${o}.${h}.${+g+1}-0`:l=`>=${o}.${h}.${g}-${_} <${o}.${+h+1}.0-0`:l=`>=${o}.${h}.${g}-${_} <${+o+1}.0.0-0`):(ge("no pr"),o==="0"?h==="0"?l=`>=${o}.${h}.${g}${u} <${o}.${h}.${+g+1}-0`:l=`>=${o}.${h}.${g}${u} <${o}.${+h+1}.0-0`:l=`>=${o}.${h}.${g} <${+o+1}.0.0-0`),ge("caret return",l),l})},Ww=(i,r)=>(ge("replaceXRanges",i,r),i.split(/\s+/).map(n=>Bw(n,r)).join(" ")),Bw=(i,r)=>{i=i.trim();let n=r.loose?Te[Oe.XRANGELOOSE]:Te[Oe.XRANGE];return i.replace(n,(u,a,o,h,g,_)=>{ge("xRange",i,u,a,o,h,g,_);let l=Fe(o),m=l||Fe(h),b=m||Fe(g),I=b;return a==="="&&I&&(a=""),_=r.includePrerelease?"-0":"",l?a===">"||a==="<"?u="<0.0.0-0":u="*":a&&I?(m&&(h=0),g=0,a===">"?(a=">=",m?(o=+o+1,h=0,g=0):(h=+h+1,g=0)):a==="<="&&(a="<",m?o=+o+1:h=+h+1),a==="<"&&(_="-0"),u=`${a+o}.${h}.${g}${_}`):m?u=`>=${o}.0.0${_} <${+o+1}.0.0-0`:b&&(u=`>=${o}.${h}.0${_} <${o}.${+h+1}.0-0`),ge("xRange return",u),u})},kw=(i,r)=>(ge("replaceStars",i,r),i.trim().replace(Te[Oe.STAR],"")),Vw=(i,r)=>(ge("replaceGTE0",i,r),i.trim().replace(Te[r.includePrerelease?Oe.GTE0PRE:Oe.GTE0],"")),zw=i=>(r,n,u,a,o,h,g,_,l,m,b,I,R)=>(Fe(u)?n="":Fe(a)?n=`>=${u}.0.0${i?"-0":""}`:Fe(o)?n=`>=${u}.${a}.0${i?"-0":""}`:h?n=`>=${n}`:n=`>=${n}${i?"-0":""}`,Fe(l)?_="":Fe(m)?_=`<${+l+1}.0.0-0`:Fe(b)?_=`<${l}.${+m+1}.0-0`:I?_=`<=${l}.${m}.${b}-${I}`:i?_=`<${l}.${m}.${+b+1}-0`:_=`<=${_}`,`${n} ${_}`.trim()),Yw=(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(ge(i[u].semver),i[u].semver!==nu.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 Wr=P((dx,th)=>{var Br=Symbol("SemVer ANY"),kr=class{static get ANY(){return Br}constructor(r,n){if(n=Xw(n),r instanceof kr){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===Br?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=Br}toString(){return this.value}test(r){if(iu("Comparator.test",r,this.options.loose),this.semver===Br||r===Br)return!0;if(typeof r=="string")try{r=new Qf(r,this.options)}catch{return!1}return ru(r,this.operator,this.semver,this.options)}intersects(r,n){if(!(r instanceof kr))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,h=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),g=ru(this.semver,"<",r.semver,n)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),_=ru(this.semver,">",r.semver,n)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return u||a||o&&h||g||_}};th.exports=kr;var Xw=Mr(),{re:Jf,t:Zf}=bn(),ru=Qo(),iu=Fr(),Qf=Pe(),eh=lt()});var Vr=P((gx,nh)=>{var Kw=lt(),Jw=(i,r,n)=>{try{r=new Kw(r,n)}catch{return!1}return r.test(i)};nh.exports=Jw});var ih=P((vx,rh)=>{var Zw=lt(),Qw=(i,r)=>new Zw(i,r).set.map(n=>n.map(u=>u.value).join(" ").trim().split(" "));rh.exports=Qw});var oh=P((mx,sh)=>{var eb=Pe(),tb=lt(),nb=(i,r,n)=>{let u=null,a=null,o=null;try{o=new tb(r,n)}catch{return null}return i.forEach(h=>{o.test(h)&&(!u||a.compare(h)===-1)&&(u=h,a=new eb(u,n))}),u};sh.exports=nb});var ah=P((_x,uh)=>{var rb=Pe(),ib=lt(),sb=(i,r,n)=>{let u=null,a=null,o=null;try{o=new ib(r,n)}catch{return null}return i.forEach(h=>{o.test(h)&&(!u||a.compare(h)===1)&&(u=h,a=new rb(u,n))}),u};uh.exports=sb});var fh=P((yx,lh)=>{var su=Pe(),ob=lt(),ch=Hr(),ub=(i,r)=>{i=new ob(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(h=>{let g=new su(h.semver.version);switch(h.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!o||ch(g,o))&&(o=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${h.operator}`)}}),o&&(!n||ch(n,o))&&(n=o)}return n&&i.test(n)?n:null};lh.exports=ub});var ph=P((Ex,hh)=>{var ab=lt(),cb=(i,r)=>{try{return new ab(i,r).range||"*"}catch{return null}};hh.exports=cb});var fs=P((wx,mh)=>{var lb=Pe(),dh=Wr(),{ANY:fb}=dh,hb=lt(),pb=Vr(),gh=Hr(),vh=ss(),db=us(),gb=os(),vb=(i,r,n,u)=>{i=new lb(i,u),r=new hb(r,u);let a,o,h,g,_;switch(n){case">":a=gh,o=db,h=vh,g=">",_=">=";break;case"<":a=vh,o=gb,h=gh,g="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(pb(i,r,u))return!1;for(let l=0;l<r.set.length;++l){let m=r.set[l],b=null,I=null;if(m.forEach(R=>{R.semver===fb&&(R=new dh(">=0.0.0")),b=b||R,I=I||R,a(R.semver,b.semver,u)?b=R:h(R.semver,I.semver,u)&&(I=R)}),b.operator===g||b.operator===_||(!I.operator||I.operator===g)&&o(i,I.semver))return!1;if(I.operator===_&&h(i,I.semver))return!1}return!0};mh.exports=vb});var yh=P((bx,_h)=>{var mb=fs(),_b=(i,r,n)=>mb(i,r,">",n);_h.exports=_b});var wh=P((Sx,Eh)=>{var yb=fs(),Eb=(i,r,n)=>yb(i,r,"<",n);Eh.exports=Eb});var Ch=P((Cx,Sh)=>{var bh=lt(),wb=(i,r,n)=>(i=new bh(i,n),r=new bh(r,n),i.intersects(r));Sh.exports=wb});var xh=P((Ox,Oh)=>{var bb=Vr(),Sb=ct();Oh.exports=(i,r,n)=>{let u=[],a=null,o=null,h=i.sort((m,b)=>Sb(m,b,n));for(let m of h)bb(m,r,n)?(o=m,a||(a=m)):(o&&u.push([a,o]),o=null,a=null);a&&u.push([a,null]);let g=[];for(let[m,b]of u)m===b?g.push(m):!b&&m===h[0]?g.push("*"):b?m===h[0]?g.push(`<=${b}`):g.push(`${m} - ${b}`):g.push(`>=${m}`);let _=g.join(" || "),l=typeof r.raw=="string"?r.raw:String(r);return _.length<l.length?_:r}});var Th=P((xx,Ph)=>{var Ah=lt(),hs=Wr(),{ANY:ou}=hs,zr=Vr(),uu=ct(),Cb=(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 h=Ob(a,o,n);if(u=u||h!==null,h)continue e}if(u)return!1}return!0},Ob=(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 hs(">=0.0.0-0")]:i=[new hs(">=0.0.0")]}if(r.length===1&&r[0].semver===ou){if(n.includePrerelease)return!0;r=[new hs(">=0.0.0")]}let u=new Set,a,o;for(let R of i)R.operator===">"||R.operator===">="?a=Ih(a,R,n):R.operator==="<"||R.operator==="<="?o=Rh(o,R,n):u.add(R.semver);if(u.size>1)return null;let h;if(a&&o){if(h=uu(a.semver,o.semver,n),h>0)return null;if(h===0&&(a.operator!==">="||o.operator!=="<="))return null}for(let R of u){if(a&&!zr(R,String(a),n)||o&&!zr(R,String(o),n))return null;for(let $ of r)if(!zr(R,String($),n))return!1;return!0}let g,_,l,m,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 R of r){if(m=m||R.operator===">"||R.operator===">=",l=l||R.operator==="<"||R.operator==="<=",a){if(I&&R.semver.prerelease&&R.semver.prerelease.length&&R.semver.major===I.major&&R.semver.minor===I.minor&&R.semver.patch===I.patch&&(I=!1),R.operator===">"||R.operator===">="){if(g=Ih(a,R,n),g===R&&g!==a)return!1}else if(a.operator===">="&&!zr(a.semver,String(R),n))return!1}if(o){if(b&&R.semver.prerelease&&R.semver.prerelease.length&&R.semver.major===b.major&&R.semver.minor===b.minor&&R.semver.patch===b.patch&&(b=!1),R.operator==="<"||R.operator==="<="){if(_=Rh(o,R,n),_===R&&_!==o)return!1}else if(o.operator==="<="&&!zr(o.semver,String(R),n))return!1}if(!R.operator&&(o||a)&&h!==0)return!1}return!(a&&l&&!o&&h!==0||o&&m&&!a&&h!==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=Cb});var Nh=P((Ax,Lh)=>{var au=bn();Lh.exports={re:au.re,src:au.src,tokens:au.t,SEMVER_SPEC_VERSION:$r().SEMVER_SPEC_VERSION,SemVer:Pe(),compareIdentifiers:es().compareIdentifiers,rcompareIdentifiers:es().rcompareIdentifiers,parse:Sn(),valid:Zl(),clean:ef(),inc:nf(),diff:cf(),major:ff(),minor:pf(),patch:gf(),prerelease:mf(),compare:ct(),rcompare:yf(),compareLoose:wf(),compareBuild:is(),sort:Of(),rsort:Af(),gt:Hr(),lt:ss(),eq:rs(),neq:Zo(),gte:os(),lte:us(),cmp:Qo(),coerce:qf(),Comparator:Wr(),Range:lt(),satisfies:Vr(),toComparators:ih(),maxSatisfying:oh(),minSatisfying:ah(),minVersion:fh(),validRange:ph(),outside:fs(),gtr:yh(),ltr:wh(),intersects:Ch(),simplifyRange:xh(),subset:Th()}});var xe=P(An=>{"use strict";var Dh=An&&An.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(An,"__esModule",{value:!0});An.getCoreVersion=void 0;var qh=Dh(require("path")),$h=Dh(require("fs")),xb=Nh(),Ab=require("@serverless-devs/core"),Fh=qh.default.join(Ab.getRootHome(),"cache","core"),cu=qh.default.join(Fh,"package.json");function Ib(){if($h.default.existsSync(cu)){var i=require("@serverless-devs/core/package.json").version,r=Mh();return xb.gt(r,i)?require(Fh):require("@serverless-devs/core")}return require("@serverless-devs/core")}function Mh(){return $h.default.existsSync(cu)?require(cu).version:void 0}An.getCoreVersion=Mh;An.default=Ib()});var jh=P((Rx,Rb)=>{Rb.exports={name:"@serverless-devs/s",version:"2.0.99-beta.1",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"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:{"@serverless-devs/commander":"^6.0.0","@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",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.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 ds=P(Bt=>{"use strict";var Hh=Bt&&Bt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getHistoryFile=Bt.getHomeDir=void 0;var Pb=Hh(require("path")),Uh=Hh(xe()),ps=Uh.default.fse,Tb=Uh.default.getRootHome;function lu(){var i=Tb();return ps.existsSync(i)||ps.mkdirSync(i),i}Bt.getHomeDir=lu;function Gh(){var i=Pb.default.join(lu(),"history");return ps.existsSync(i)||ps.createFileSync(i),i}Bt.getHistoryFile=Gh;Bt.default={getHomeDir:lu,getHistoryFile:Gh}});var pu=P(Me=>{"use strict";var Lb=Me&&Me.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(h){h(o)})}return new(n||(n=Promise))(function(o,h){function g(m){try{l(u.next(m))}catch(b){h(b)}}function _(m){try{l(u.throw(m))}catch(b){h(b)}}function l(m){m.done?o(m.value):a(m.value).then(g,_)}l((u=u.apply(i,r||[])).next())})},Nb=Me&&Me.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,h;return h={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function g(l){return function(m){return _([l,m])}}function _(l){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){n.label=l[1];break}if(l[0]===6&&n.label<o[1]){n.label=o[1],o=l;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(l);break}o[2]&&n.ops.pop(),n.trys.pop();continue}l=r.call(i,n)}catch(m){l=[6,m],a=0}finally{u=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},fu=Me&&Me.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Me,"__esModule",{value:!0});Me.handlerProfileFile=Me.getConfig=Me.setConfig=void 0;var Wh=fu(require("path")),Db=fu(ds()),hu=fu(xe()),St=hu.default.fse,gs=hu.default.jsyaml,Bh=hu.default.getRootHome;function qb(i){var r=Vh();St.writeFileSync(r,gs.dump(i))}function kh(){var i=Vh();if(!St.existsSync(i))return{};try{var r=gs.load(St.readFileSync(i,"utf8"))||{};return r}catch(n){throw n}}function Vh(){var i=Wh.default.join(Db.default.getHomeDir(),"set-config.yml");return St.existsSync(i)||St.createFileSync(i),i}function zh(i,r){var n=kh();n[i]=r,qb(n)}Me.setConfig=zh;function Yh(i,r){var n=kh();return n[i]||r}Me.getConfig=Yh;function Xh(i){return Lb(this,void 0,void 0,function(){var r,n,u,a,o,h,g;return Nb(this,function(_){switch(_.label){case 0:if(r=i.filePath||"set-config.yml",n=Wh.default.join(Bh(),r),u=St.existsSync(n),a={},u)return[3,5];o=Bh(),_.label=1;case 1:return _.trys.push([1,2,,4]),St.statSync(o),[3,4];case 2:return h=_.sent(),[4,St.mkdirSync(o)];case 3:return _.sent(),[3,4];case 4:return[3,6];case 5:try{a=gs.load(St.readFileSync(n,"utf8"))||{}}catch(l){throw l}_.label=6;case 6:return i.read?[2,a]:(g=i.configKey||"",a[g]=i.data,[4,St.writeFileSync(n,gs.dump(a))]);case 7:return _.sent(),[2,a]}})})}Me.handlerProfileFile=Xh;Me.default={setConfig:zh,getConfig:Yh,handlerProfileFile:Xh}});var Ct=P(H=>{"use strict";var $b=H&&H.__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]}),Fb=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Mb=H&&H.__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)&&$b(r,i,n);return Fb(r,i),r},du=H&&H.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(h){h(o)})}return new(n||(n=Promise))(function(o,h){function g(m){try{l(u.next(m))}catch(b){h(b)}}function _(m){try{l(u.throw(m))}catch(b){h(b)}}function l(m){m.done?o(m.value):a(m.value).then(g,_)}l((u=u.apply(i,r||[])).next())})},gu=H&&H.__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,h;return h={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function g(l){return function(m){return _([l,m])}}function _(l){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){n.label=l[1];break}if(l[0]===6&&n.label<o[1]){n.label=o[1],o=l;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(l);break}o[2]&&n.ops.pop(),n.trys.pop();continue}l=r.call(i,n)}catch(m){l=[6,m],a=0}finally{u=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},vs=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var be=vs(require("path")),Ze=vs(require("fs")),on=vs(Xn()),jb=vs(require("os")),Hb=Rn(),ft=Mb(xe()),In=ft.default.colors,Ub=ft.default.jsyaml,Gb=ft.default.makeUnderLine,Wb=ft.default.got,Bb=ft.default.Logger,Kh=ft.default.isDebugMode,kb=ft.default.getMAC,Vb=ft.default.getYamlContent,zb=ft.default.isDocker,Yb=ft.default.isCiCdEnv,Jh=jh(),Xb=pu();H.red=In.hex("#fd5750");H.yellow=In.hex("#F3F99D");H.bgRed=In.hex("#000").bgHex("#fd5750");var Kb=function(i,r){if(!(zb()||Yb()))return Wb("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(i,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0}).then(function(n){var u=on.default.get(n.body,"shorturl");u&&console.log(`AI Tips:
|
|
34
|
+
}`;var B=xl(function(){return ee(d,q+"return "+A).apply(i,v)});if(B.source=A,$o(B))throw B;return B}function Sy(e){return te(e).toLowerCase()}function Cy(e){return te(e).toUpperCase()}function Oy(e,t,s){if(e=te(e),e&&(s||t===i))return qa(e);if(!e||!(t=Ye(t)))return e;var c=dt(e),f=dt(t),d=$a(c,f),v=Fa(c,f)+1;return nn(c,d,v).join("")}function xy(e,t,s){if(e=te(e),e&&(s||t===i))return e.slice(0,ja(e)+1);if(!e||!(t=Ye(t)))return e;var c=dt(e),f=Fa(c,dt(t))+1;return nn(c,0,f).join("")}function Ay(e,t,s){if(e=te(e),e&&(s||t===i))return e.replace(qs,"");if(!e||!(t=Ye(t)))return e;var c=dt(e),f=$a(c,dt(t));return nn(c,f).join("")}function Iy(e,t){var s=wd,c=bd;if(fe(t)){var f="separator"in t?t.separator:f;s="length"in t?W(t.length):s,c="omission"in t?Ye(t.omission):c}e=te(e);var d=e.length;if(Fn(e)){var v=dt(e);d=v.length}if(s>=d)return e;var y=s-Mn(c);if(y<1)return c;var w=v?nn(v,0,y).join(""):e.slice(0,y);if(f===i)return w+c;if(v&&(y+=w.length-y),Fo(f)){if(e.slice(y).search(f)){var O,x=w;for(f.global||(f=Zs(f.source,te(ra.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(Ye(f),y)!=y){var T=w.lastIndexOf(f);T>-1&&(w=w.slice(0,T))}return w+c}function Ry(e){return e=te(e),e&&Hd.test(e)?e.replace(ea,iv):e}var Py=Bn(function(e,t,s){return e+(s?" ":"")+t.toUpperCase()}),Ho=Ac("toUpperCase");function Ol(e,t,s){return e=te(e),t=s?i:t,t===i?Qg(e)?uv(e):Bg(e):e.match(t)||[]}var xl=V(function(e,t){try{return Ve(e,i,t)}catch(s){return $o(s)?s:new U(s)}}),Ty=Ft(function(e,t){return tt(t,function(s){s=bt(s),qt(e,s,Do(e[s],e))}),e});function Ly(e){var t=e==null?0:e.length,s=F();return e=t?le(e,function(c){if(typeof c[1]!="function")throw new nt(a);return[s(c[0]),c[1]]}):[],V(function(c){for(var f=-1;++f<t;){var d=e[f];if(Ve(d[0],this,c))return Ve(d[1],this,c)}})}function Ny(e){return im(it(e,l))}function Uo(e){return function(){return e}}function Dy(e,t){return e==null||e!==e?t:e}var qy=Rc(),$y=Rc(!0);function We(e){return e}function Go(e){return sc(typeof e=="function"?e:it(e,l))}function Fy(e){return uc(it(e,l))}function My(e,t){return ac(e,it(t,l))}var jy=V(function(e,t){return function(s){return xr(s,e,t)}}),Hy=V(function(e,t){return function(s){return xr(e,s,t)}});function Wo(e,t,s){var c=Ee(t),f=Ni(t,c);s==null&&!(fe(t)&&(f.length||!c.length))&&(s=t,t=e,e=this,f=Ni(t,Ee(t)));var d=!(fe(s)&&"chain"in s)||!!s.chain,v=jt(e);return tt(f,function(y){var w=t[y];e[y]=w,v&&(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 Uy(){return ye._===this&&(ye._=pv),this}function Bo(){}function Gy(e){return e=W(e),V(function(t){return cc(t,e)})}var Wy=wo(le),By=wo(Pa),ky=wo(ks);function Al(e){return Io(e)?Vs(bt(e)):wm(e)}function Vy(e){return function(t){return e==null?i:vn(e,t)}}var zy=Tc(),Yy=Tc(!0);function ko(){return[]}function Vo(){return!1}function Xy(){return{}}function Ky(){return""}function Jy(){return!0}function Zy(e,t){if(e=W(e),e<1||e>zt)return[];var s=yt,c=Ie(e,yt);t=F(t),e-=yt;for(var f=Xs(c,t);++s<e;)t(s);return f}function Qy(e){return G(e)?le(e,bt):Xe(e)?[e]:He(zc(te(e)))}function eE(e){var t=++fv;return te(e)+t}var tE=ji(function(e,t){return e+t},0),nE=bo("ceil"),rE=ji(function(e,t){return e/t},1),iE=bo("floor");function sE(e){return e&&e.length?Li(e,We,oo):i}function oE(e,t){return e&&e.length?Li(e,F(t,2),oo):i}function uE(e){return Na(e,We)}function aE(e,t){return Na(e,F(t,2))}function cE(e){return e&&e.length?Li(e,We,lo):i}function lE(e,t){return e&&e.length?Li(e,F(t,2),lo):i}var fE=ji(function(e,t){return e*t},1),hE=bo("round"),pE=ji(function(e,t){return e-t},0);function dE(e){return e&&e.length?Ys(e,We):0}function gE(e,t){return e&&e.length?Ys(e,F(t,2)):0}return p.after=F0,p.ary=il,p.assign=C1,p.assignIn=_l,p.assignInWith=Zi,p.assignWith=O1,p.at=x1,p.before=sl,p.bind=Do,p.bindAll=Ty,p.bindKey=ol,p.castArray=X0,p.chain=tl,p.chunk=i_,p.compact=s_,p.concat=o_,p.cond=Ly,p.conforms=Ny,p.constant=Uo,p.countBy=d0,p.create=A1,p.curry=ul,p.curryRight=al,p.debounce=cl,p.defaults=I1,p.defaultsDeep=R1,p.defer=M0,p.delay=j0,p.difference=u_,p.differenceBy=a_,p.differenceWith=c_,p.drop=l_,p.dropRight=f_,p.dropRightWhile=h_,p.dropWhile=p_,p.fill=d_,p.filter=v0,p.flatMap=y0,p.flatMapDeep=E0,p.flatMapDepth=w0,p.flatten=Jc,p.flattenDeep=g_,p.flattenDepth=v_,p.flip=H0,p.flow=qy,p.flowRight=$y,p.fromPairs=m_,p.functions=$1,p.functionsIn=F1,p.groupBy=b0,p.initial=y_,p.intersection=E_,p.intersectionBy=w_,p.intersectionWith=b_,p.invert=j1,p.invertBy=H1,p.invokeMap=C0,p.iteratee=Go,p.keyBy=O0,p.keys=Ee,p.keysIn=Ge,p.map=Vi,p.mapKeys=G1,p.mapValues=W1,p.matches=Fy,p.matchesProperty=My,p.memoize=Yi,p.merge=B1,p.mergeWith=yl,p.method=jy,p.methodOf=Hy,p.mixin=Wo,p.negate=Xi,p.nthArg=Gy,p.omit=k1,p.omitBy=V1,p.once=U0,p.orderBy=x0,p.over=Wy,p.overArgs=G0,p.overEvery=By,p.overSome=ky,p.partial=qo,p.partialRight=ll,p.partition=A0,p.pick=z1,p.pickBy=El,p.property=Al,p.propertyOf=Vy,p.pull=x_,p.pullAll=Qc,p.pullAllBy=A_,p.pullAllWith=I_,p.pullAt=R_,p.range=zy,p.rangeRight=Yy,p.rearg=W0,p.reject=P0,p.remove=P_,p.rest=B0,p.reverse=Lo,p.sampleSize=L0,p.set=X1,p.setWith=K1,p.shuffle=N0,p.slice=T_,p.sortBy=$0,p.sortedUniq=M_,p.sortedUniqBy=j_,p.split=yy,p.spread=k0,p.tail=H_,p.take=U_,p.takeRight=G_,p.takeRightWhile=W_,p.takeWhile=B_,p.tap=s0,p.throttle=V0,p.thru=ki,p.toArray=gl,p.toPairs=wl,p.toPairsIn=bl,p.toPath=Qy,p.toPlainObject=ml,p.transform=J1,p.unary=z0,p.union=k_,p.unionBy=V_,p.unionWith=z_,p.uniq=Y_,p.uniqBy=X_,p.uniqWith=K_,p.unset=Z1,p.unzip=No,p.unzipWith=el,p.update=Q1,p.updateWith=ey,p.values=zn,p.valuesIn=ty,p.without=J_,p.words=Ol,p.wrap=Y0,p.xor=Z_,p.xorBy=Q_,p.xorWith=e0,p.zip=t0,p.zipObject=n0,p.zipObjectDeep=r0,p.zipWith=i0,p.entries=wl,p.entriesIn=bl,p.extend=_l,p.extendWith=Zi,Wo(p,p),p.add=tE,p.attempt=xl,p.camelCase=sy,p.capitalize=Sl,p.ceil=nE,p.clamp=ny,p.clone=K0,p.cloneDeep=Z0,p.cloneDeepWith=Q0,p.cloneWith=J0,p.conformsTo=e1,p.deburr=Cl,p.defaultTo=Dy,p.divide=rE,p.endsWith=oy,p.eq=vt,p.escape=uy,p.escapeRegExp=ay,p.every=g0,p.find=m0,p.findIndex=Xc,p.findKey=P1,p.findLast=_0,p.findLastIndex=Kc,p.findLastKey=T1,p.floor=iE,p.forEach=nl,p.forEachRight=rl,p.forIn=L1,p.forInRight=N1,p.forOwn=D1,p.forOwnRight=q1,p.get=Mo,p.gt=t1,p.gte=n1,p.has=M1,p.hasIn=jo,p.head=Zc,p.identity=We,p.includes=S0,p.indexOf=__,p.inRange=ry,p.invoke=U1,p.isArguments=yn,p.isArray=G,p.isArrayBuffer=r1,p.isArrayLike=Ue,p.isArrayLikeObject=pe,p.isBoolean=i1,p.isBuffer=rn,p.isDate=s1,p.isElement=o1,p.isEmpty=u1,p.isEqual=a1,p.isEqualWith=c1,p.isError=$o,p.isFinite=l1,p.isFunction=jt,p.isInteger=fl,p.isLength=Ki,p.isMap=hl,p.isMatch=f1,p.isMatchWith=h1,p.isNaN=p1,p.isNative=d1,p.isNil=v1,p.isNull=g1,p.isNumber=pl,p.isObject=fe,p.isObjectLike=he,p.isPlainObject=Lr,p.isRegExp=Fo,p.isSafeInteger=m1,p.isSet=dl,p.isString=Ji,p.isSymbol=Xe,p.isTypedArray=Vn,p.isUndefined=_1,p.isWeakMap=y1,p.isWeakSet=E1,p.join=S_,p.kebabCase=cy,p.last=ot,p.lastIndexOf=C_,p.lowerCase=ly,p.lowerFirst=fy,p.lt=w1,p.lte=b1,p.max=sE,p.maxBy=oE,p.mean=uE,p.meanBy=aE,p.min=cE,p.minBy=lE,p.stubArray=ko,p.stubFalse=Vo,p.stubObject=Xy,p.stubString=Ky,p.stubTrue=Jy,p.multiply=fE,p.nth=O_,p.noConflict=Uy,p.noop=Bo,p.now=zi,p.pad=hy,p.padEnd=py,p.padStart=dy,p.parseInt=gy,p.random=iy,p.reduce=I0,p.reduceRight=R0,p.repeat=vy,p.replace=my,p.result=Y1,p.round=hE,p.runInContext=E,p.sample=T0,p.size=D0,p.snakeCase=_y,p.some=q0,p.sortedIndex=L_,p.sortedIndexBy=N_,p.sortedIndexOf=D_,p.sortedLastIndex=q_,p.sortedLastIndexBy=$_,p.sortedLastIndexOf=F_,p.startCase=Ey,p.startsWith=wy,p.subtract=pE,p.sum=dE,p.sumBy=gE,p.template=by,p.times=Zy,p.toFinite=Ht,p.toInteger=W,p.toLength=vl,p.toLower=Sy,p.toNumber=ut,p.toSafeInteger=S1,p.toString=te,p.toUpper=Cy,p.trim=Oy,p.trimEnd=xy,p.trimStart=Ay,p.truncate=Iy,p.unescape=Ry,p.uniqueId=eE,p.upperCase=Py,p.upperFirst=Ho,p.each=nl,p.eachRight=rl,p.first=Zc,Wo(p,function(){var e={};return Et(p,function(t,s){re.call(p.prototype,s)||(e[s]=t)}),e}(),{chain:!1}),p.VERSION=r,tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){p[e].placeholder=p}),tt(["drop","take"],function(e,t){X.prototype[e]=function(s){s=s===i?1:_e(W(s),0);var c=this.__filtered__&&!t?new X(this):this.clone();return c.__filtered__?c.__takeCount__=Ie(s,c.__takeCount__):c.__views__.push({size:Ie(s,yt),type:e+(c.__dir__<0?"Right":"")}),c},X.prototype[e+"Right"]=function(s){return this.reverse()[e](s).reverse()}}),tt(["filter","map","takeWhile"],function(e,t){var s=t+1,c=s==Ju||s==xd;X.prototype[e]=function(f){var d=this.clone();return d.__iteratees__.push({iteratee:F(f,3),type:s}),d.__filtered__=d.__filtered__||c,d}}),tt(["head","last"],function(e,t){var s="take"+(t?"Right":"");X.prototype[e]=function(){return this[s](1).value()[0]}}),tt(["initial","tail"],function(e,t){var s="drop"+(t?"":"Right");X.prototype[e]=function(){return this.__filtered__?new X(this):this[s](1)}}),X.prototype.compact=function(){return this.filter(We)},X.prototype.find=function(e){return this.filter(e).head()},X.prototype.findLast=function(e){return this.reverse().find(e)},X.prototype.invokeMap=V(function(e,t){return typeof e=="function"?new X(this):this.map(function(s){return xr(s,e,t)})}),X.prototype.reject=function(e){return this.filter(Xi(F(e)))},X.prototype.slice=function(e,t){e=W(e);var s=this;return s.__filtered__&&(e>0||t<0)?new X(s):(e<0?s=s.takeRight(-e):e&&(s=s.drop(e)),t!==i&&(t=W(t),s=t<0?s.dropRight(-t):s.take(t-e)),s)},X.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},X.prototype.toArray=function(){return this.take(yt)},Et(X.prototype,function(e,t){var s=/^(?:filter|find|map|reject)|While$/.test(t),c=/^(?:head|last)$/.test(t),f=p[c?"take"+(t=="last"?"Right":""):t],d=c||/^find/.test(t);!f||(p.prototype[t]=function(){var v=this.__wrapped__,y=c?[1]:arguments,w=v instanceof X,O=y[0],x=w||G(v),A=function(z){var J=f.apply(p,Xt([z],y));return c&&T?J[0]:J};x&&s&&typeof O=="function"&&O.length!=1&&(w=x=!1);var T=this.__chain__,q=!!this.__actions__.length,M=d&&!T,B=w&&!q;if(!d&&x){v=B?v:new X(this);var j=e.apply(v,y);return j.__actions__.push({func:ki,args:[A],thisArg:i}),new rt(j,T)}return M&&B?e.apply(this,y):(j=this.thru(A),M?c?j.value()[0]:j.value():j)})}),tt(["pop","push","shift","sort","splice","unshift"],function(e){var t=mi[e],s=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",c=/^(?:pop|shift)$/.test(e);p.prototype[e]=function(){var f=arguments;if(c&&!this.__chain__){var d=this.value();return t.apply(G(d)?d:[],f)}return this[s](function(v){return t.apply(G(v)?v:[],f)})}}),Et(X.prototype,function(e,t){var s=p[t];if(s){var c=s.name+"";re.call(Un,c)||(Un[c]=[]),Un[c].push({name:t,func:s})}}),Un[Mi(i,ne).name]=[{name:"wrapper",func:i}],X.prototype.clone=Rv,X.prototype.reverse=Pv,X.prototype.value=Tv,p.prototype.at=o0,p.prototype.chain=u0,p.prototype.commit=a0,p.prototype.next=c0,p.prototype.plant=f0,p.prototype.reverse=h0,p.prototype.toJSON=p.prototype.valueOf=p.prototype.value=p0,p.prototype.first=p.prototype.head,yr&&(p.prototype[yr]=l0),p},Jt=av();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(ye._=Jt,define(function(){return Jt})):fn?((fn.exports=Jt)._=Jt,Us._=Jt):ye._=Jt}).call(Yn)});var $r=P(($O,$l)=>{var _E="2.0.0",yE=256,EE=Number.MAX_SAFE_INTEGER||9007199254740991,wE=16;$l.exports={SEMVER_SPEC_VERSION:_E,MAX_LENGTH:yE,MAX_SAFE_INTEGER:EE,MAX_SAFE_COMPONENT_LENGTH:wE}});var Fr=P((FO,Fl)=>{var bE=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...i)=>console.error("SEMVER",...i):()=>{};Fl.exports=bE});var bn=P((sn,Ml)=>{var{MAX_SAFE_COMPONENT_LENGTH:Jo}=$r(),SE=Fr();sn=Ml.exports={};var CE=sn.re=[],N=sn.src=[],D=sn.t={},OE=0,k=(i,r,n)=>{let u=OE++;SE(u,r),D[i]=u,N[u]=r,CE[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);sn.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);sn.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);sn.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 Mr=P((MO,jl)=>{var xE=["includePrerelease","loose","rtl"],AE=i=>i?typeof i!="object"?{loose:!0}:xE.filter(r=>i[r]).reduce((r,n)=>(r[n]=!0,r),{}):{};jl.exports=AE});var es=P((jO,Gl)=>{var Hl=/^[0-9]+$/,Ul=(i,r)=>{let n=Hl.test(i),u=Hl.test(r);return n&&u&&(i=+i,r=+r),i===r?0:n&&!u?-1:u&&!n?1:i<r?-1:1},IE=(i,r)=>Ul(r,i);Gl.exports={compareIdentifiers:Ul,rcompareIdentifiers:IE}});var Pe=P((HO,Vl)=>{var ts=Fr(),{MAX_LENGTH:Wl,MAX_SAFE_INTEGER:ns}=$r(),{re:Bl,t:kl}=bn(),RE=Mr(),{compareIdentifiers:jr}=es(),at=class{constructor(r,n){if(n=RE(n),r instanceof at){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>Wl)throw new TypeError(`version is longer than ${Wl} characters`);ts("SemVer",r,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let u=r.trim().match(n.loose?Bl[kl.LOOSE]:Bl[kl.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>ns||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ns||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ns||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<ns)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(ts("SemVer.compare",this.version,this.options,r),!(r instanceof at)){if(typeof r=="string"&&r===this.version)return 0;r=new at(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof at||(r=new at(r,this.options)),jr(this.major,r.major)||jr(this.minor,r.minor)||jr(this.patch,r.patch)}comparePre(r){if(r instanceof at||(r=new at(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(ts("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 jr(u,a)}while(++n)}compareBuild(r){r instanceof at||(r=new at(r,this.options));let n=0;do{let u=this.build[n],a=r.build[n];if(ts("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 jr(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}};Vl.exports=at});var Sn=P((UO,Kl)=>{var{MAX_LENGTH:PE}=$r(),{re:zl,t:Yl}=bn(),Xl=Pe(),TE=Mr(),LE=(i,r)=>{if(r=TE(r),i instanceof Xl)return i;if(typeof i!="string"||i.length>PE||!(r.loose?zl[Yl.LOOSE]:zl[Yl.FULL]).test(i))return null;try{return new Xl(i,r)}catch{return null}};Kl.exports=LE});var Zl=P((GO,Jl)=>{var NE=Sn(),DE=(i,r)=>{let n=NE(i,r);return n?n.version:null};Jl.exports=DE});var ef=P((WO,Ql)=>{var qE=Sn(),$E=(i,r)=>{let n=qE(i.trim().replace(/^[=v]+/,""),r);return n?n.version:null};Ql.exports=$E});var nf=P((BO,tf)=>{var FE=Pe(),ME=(i,r,n,u)=>{typeof n=="string"&&(u=n,n=void 0);try{return new FE(i,n).inc(r,u).version}catch{return null}};tf.exports=ME});var ct=P((kO,sf)=>{var rf=Pe(),jE=(i,r,n)=>new rf(i,n).compare(new rf(r,n));sf.exports=jE});var rs=P((VO,of)=>{var HE=ct(),UE=(i,r,n)=>HE(i,r,n)===0;of.exports=UE});var cf=P((zO,af)=>{var uf=Sn(),GE=rs(),WE=(i,r)=>{if(GE(i,r))return null;{let n=uf(i),u=uf(r),a=n.prerelease.length||u.prerelease.length,o=a?"pre":"",h=a?"prerelease":"";for(let g in n)if((g==="major"||g==="minor"||g==="patch")&&n[g]!==u[g])return o+g;return h}};af.exports=WE});var ff=P((YO,lf)=>{var BE=Pe(),kE=(i,r)=>new BE(i,r).major;lf.exports=kE});var pf=P((XO,hf)=>{var VE=Pe(),zE=(i,r)=>new VE(i,r).minor;hf.exports=zE});var gf=P((KO,df)=>{var YE=Pe(),XE=(i,r)=>new YE(i,r).patch;df.exports=XE});var mf=P((JO,vf)=>{var KE=Sn(),JE=(i,r)=>{let n=KE(i,r);return n&&n.prerelease.length?n.prerelease:null};vf.exports=JE});var yf=P((ZO,_f)=>{var ZE=ct(),QE=(i,r,n)=>ZE(r,i,n);_f.exports=QE});var wf=P((QO,Ef)=>{var ew=ct(),tw=(i,r)=>ew(i,r,!0);Ef.exports=tw});var is=P((ex,Sf)=>{var bf=Pe(),nw=(i,r,n)=>{let u=new bf(i,n),a=new bf(r,n);return u.compare(a)||u.compareBuild(a)};Sf.exports=nw});var Of=P((tx,Cf)=>{var rw=is(),iw=(i,r)=>i.sort((n,u)=>rw(n,u,r));Cf.exports=iw});var Af=P((nx,xf)=>{var sw=is(),ow=(i,r)=>i.sort((n,u)=>sw(u,n,r));xf.exports=ow});var Hr=P((rx,If)=>{var uw=ct(),aw=(i,r,n)=>uw(i,r,n)>0;If.exports=aw});var ss=P((ix,Rf)=>{var cw=ct(),lw=(i,r,n)=>cw(i,r,n)<0;Rf.exports=lw});var Zo=P((sx,Pf)=>{var fw=ct(),hw=(i,r,n)=>fw(i,r,n)!==0;Pf.exports=hw});var os=P((ox,Tf)=>{var pw=ct(),dw=(i,r,n)=>pw(i,r,n)>=0;Tf.exports=dw});var us=P((ux,Lf)=>{var gw=ct(),vw=(i,r,n)=>gw(i,r,n)<=0;Lf.exports=vw});var Qo=P((ax,Nf)=>{var mw=rs(),_w=Zo(),yw=Hr(),Ew=os(),ww=ss(),bw=us(),Sw=(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 mw(i,n,u);case"!=":return _w(i,n,u);case">":return yw(i,n,u);case">=":return Ew(i,n,u);case"<":return ww(i,n,u);case"<=":return bw(i,n,u);default:throw new TypeError(`Invalid operator: ${r}`)}};Nf.exports=Sw});var qf=P((cx,Df)=>{var Cw=Pe(),Ow=Sn(),{re:as,t:cs}=bn(),xw=(i,r)=>{if(i instanceof Cw)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(as[cs.COERCE]);else{let u;for(;(u=as[cs.COERCERTL].exec(i))&&(!n||n.index+n[0].length!==i.length);)(!n||u.index+u[0].length!==n.index+n[0].length)&&(n=u),as[cs.COERCERTL].lastIndex=u.index+u[1].length+u[2].length;as[cs.COERCERTL].lastIndex=-1}return n===null?null:Ow(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,r)};Df.exports=xw});var Ff=P((lx,$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 jf=P((fx,Mf)=>{"use strict";Mf.exports=Z;Z.Node=Cn;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++)Iw(this,arguments[i]);return this.length};Z.prototype.unshift=function(){for(var i=0,r=arguments.length;i<r;i++)Rw(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=Aw(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 Aw(i,r,n){var u=r===i.head?new Cn(n,null,r,i):new Cn(n,r,r.next,i);return u.next===null&&(i.tail=u),u.prev===null&&(i.head=u),i.length++,u}function Iw(i,r){i.tail=new Cn(r,i.tail,null,i),i.head||(i.head=i.tail),i.length++}function Rw(i,r){i.head=new Cn(r,null,i.head,i),i.tail||(i.tail=i.head),i.length++}function Cn(i,r,n,u){if(!(this instanceof Cn))return new Cn(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=P((hx,kf)=>{"use strict";var Pw=jf(),On=Symbol("max"),Gt=Symbol("length"),Kn=Symbol("lengthCalculator"),Ur=Symbol("allowStale"),xn=Symbol("maxAge"),Wt=Symbol("dispose"),Hf=Symbol("noDisposeOnSet"),we=Symbol("lruList"),_t=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[On]=r.max||1/0,u=r.length||eu;if(this[Kn]=typeof u!="function"?eu:u,this[Ur]=r.stale||!1,r.maxAge&&typeof r.maxAge!="number")throw new TypeError("maxAge must be a number");this[xn]=r.maxAge||0,this[Wt]=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[On]=r||1/0,Gr(this)}get max(){return this[On]}set allowStale(r){this[Ur]=!!r}get allowStale(){return this[Ur]}set maxAge(r){if(typeof r!="number")throw new TypeError("maxAge must be a non-negative number");this[xn]=r,Gr(this)}get maxAge(){return this[xn]}set lengthCalculator(r){typeof r!="function"&&(r=eu),r!==this[Kn]&&(this[Kn]=r,this[Gt]=0,this[we].forEach(n=>{n.length=this[Kn](n.value,n.key),this[Gt]+=n.length})),Gr(this)}get lengthCalculator(){return this[Kn]}get length(){return this[Gt]}get itemCount(){return this[we].length}rforEach(r,n){n=n||this;for(let u=this[we].tail;u!==null;){let a=u.prev;Bf(this,r,u,n),u=a}}forEach(r,n){n=n||this;for(let u=this[we].head;u!==null;){let a=u.next;Bf(this,r,u,n),u=a}}keys(){return this[we].toArray().map(r=>r.key)}values(){return this[we].toArray().map(r=>r.value)}reset(){this[Wt]&&this[we]&&this[we].length&&this[we].forEach(r=>this[Wt](r.key,r.value)),this[_t]=new Map,this[we]=new Pw,this[Gt]=0}dump(){return this[we].map(r=>ls(this,r)?!1:{k:r.key,v:r.value,e:r.now+(r.maxAge||0)}).toArray().filter(r=>r)}dumpLru(){return this[we]}set(r,n,u){if(u=u||this[xn],u&&typeof u!="number")throw new TypeError("maxAge must be a number");let a=u?Date.now():0,o=this[Kn](n,r);if(this[_t].has(r)){if(o>this[On])return Jn(this,this[_t].get(r)),!1;let _=this[_t].get(r).value;return this[Wt]&&(this[Hf]||this[Wt](r,_.value)),_.now=a,_.maxAge=u,_.value=n,this[Gt]+=o-_.length,_.length=o,this.get(r),Gr(this),!0}let h=new Wf(r,n,o,a,u);return h.length>this[On]?(this[Wt]&&this[Wt](r,n),!1):(this[Gt]+=h.length,this[we].unshift(h),this[_t].set(r,this[we].head),Gr(this),!0)}has(r){if(!this[_t].has(r))return!1;let n=this[_t].get(r).value;return!ls(this,n)}get(r){return tu(this,r,!0)}peek(r){return tu(this,r,!1)}pop(){let r=this[we].tail;return r?(Jn(this,r),r.value):null}del(r){Jn(this,this[_t].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 h=o-n;h>0&&this.set(a.k,a.v,h)}}}prune(){this[_t].forEach((r,n)=>tu(this,n,!1))}},tu=(i,r,n)=>{let u=i[_t].get(r);if(u){let a=u.value;if(ls(i,a)){if(Jn(i,u),!i[Ur])return}else n&&(i[Uf]&&(u.value.now=Date.now()),i[we].unshiftNode(u));return a.value}},ls=(i,r)=>{if(!r||!r.maxAge&&!i[xn])return!1;let n=Date.now()-r.now;return r.maxAge?n>r.maxAge:i[xn]&&n>i[xn]},Gr=i=>{if(i[Gt]>i[On])for(let r=i[we].tail;i[Gt]>i[On]&&r!==null;){let n=r.prev;Jn(i,r),r=n}},Jn=(i,r)=>{if(r){let n=r.value;i[Wt]&&i[Wt](n.key,n.value),i[Gt]-=n.length,i[_t].delete(n.key),i[we].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;ls(i,a)&&(Jn(i,n),i[Ur]||(a=void 0)),a&&r.call(u,a.value,a.key,i)};kf.exports=Gf});var lt=P((px,Kf)=>{var Zn=class{constructor(r,n){if(n=Lw(n),r instanceof Zn)return r.loose===!!n.loose&&r.includePrerelease===!!n.includePrerelease?r:new Zn(r.raw,n);if(r instanceof nu)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=>!Yf(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&&Fw(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,h=o?Te[Oe.HYPHENRANGELOOSE]:Te[Oe.HYPHENRANGE];r=r.replace(h,zw(this.options.includePrerelease)),ge("hyphen replace",r),r=r.replace(Te[Oe.COMPARATORTRIM],Dw),ge("comparator trim",r,Te[Oe.COMPARATORTRIM]),r=r.replace(Te[Oe.TILDETRIM],qw),r=r.replace(Te[Oe.CARETTRIM],$w),r=r.split(/\s+/).join(" ");let g=o?Te[Oe.COMPARATORLOOSE]:Te[Oe.COMPARATOR],_=r.split(" ").map(I=>Mw(I,this.options)).join(" ").split(/\s+/).map(I=>Vw(I,this.options)).filter(this.options.loose?I=>!!I.match(g):()=>!0).map(I=>new nu(I,this.options)),l=_.length,m=new Map;for(let I of _){if(Yf(I))return[I];m.set(I.value,I)}m.size>1&&m.has("")&&m.delete("");let b=[...m.values()];return zf.set(u,b),b}intersects(r,n){if(!(r instanceof Zn))throw new TypeError("a Range is required");return this.set.some(u=>Xf(u,n)&&r.set.some(a=>Xf(a,n)&&u.every(o=>a.every(h=>o.intersects(h,n)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new Nw(r,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(Yw(this.set[n],r,this.options))return!0;return!1}};Kf.exports=Zn;var Tw=Vf(),zf=new Tw({max:1e3}),Lw=Mr(),nu=Wr(),ge=Fr(),Nw=Pe(),{re:Te,t:Oe,comparatorTrimReplace:Dw,tildeTrimReplace:qw,caretTrimReplace:$w}=bn(),Yf=i=>i.value==="<0.0.0-0",Fw=i=>i.value==="",Xf=(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},Mw=(i,r)=>(ge("comp",i,r),i=Uw(i,r),ge("caret",i),i=jw(i,r),ge("tildes",i),i=Ww(i,r),ge("xrange",i),i=kw(i,r),ge("stars",i),i),Fe=i=>!i||i.toLowerCase()==="x"||i==="*",jw=(i,r)=>i.trim().split(/\s+/).map(n=>Hw(n,r)).join(" "),Hw=(i,r)=>{let n=r.loose?Te[Oe.TILDELOOSE]:Te[Oe.TILDE];return i.replace(n,(u,a,o,h,g)=>{ge("tilde",i,u,a,o,h,g);let _;return Fe(a)?_="":Fe(o)?_=`>=${a}.0.0 <${+a+1}.0.0-0`:Fe(h)?_=`>=${a}.${o}.0 <${a}.${+o+1}.0-0`:g?(ge("replaceTilde pr",g),_=`>=${a}.${o}.${h}-${g} <${a}.${+o+1}.0-0`):_=`>=${a}.${o}.${h} <${a}.${+o+1}.0-0`,ge("tilde return",_),_})},Uw=(i,r)=>i.trim().split(/\s+/).map(n=>Gw(n,r)).join(" "),Gw=(i,r)=>{ge("caret",i,r);let n=r.loose?Te[Oe.CARETLOOSE]:Te[Oe.CARET],u=r.includePrerelease?"-0":"";return i.replace(n,(a,o,h,g,_)=>{ge("caret",i,a,o,h,g,_);let l;return Fe(o)?l="":Fe(h)?l=`>=${o}.0.0${u} <${+o+1}.0.0-0`:Fe(g)?o==="0"?l=`>=${o}.${h}.0${u} <${o}.${+h+1}.0-0`:l=`>=${o}.${h}.0${u} <${+o+1}.0.0-0`:_?(ge("replaceCaret pr",_),o==="0"?h==="0"?l=`>=${o}.${h}.${g}-${_} <${o}.${h}.${+g+1}-0`:l=`>=${o}.${h}.${g}-${_} <${o}.${+h+1}.0-0`:l=`>=${o}.${h}.${g}-${_} <${+o+1}.0.0-0`):(ge("no pr"),o==="0"?h==="0"?l=`>=${o}.${h}.${g}${u} <${o}.${h}.${+g+1}-0`:l=`>=${o}.${h}.${g}${u} <${o}.${+h+1}.0-0`:l=`>=${o}.${h}.${g} <${+o+1}.0.0-0`),ge("caret return",l),l})},Ww=(i,r)=>(ge("replaceXRanges",i,r),i.split(/\s+/).map(n=>Bw(n,r)).join(" ")),Bw=(i,r)=>{i=i.trim();let n=r.loose?Te[Oe.XRANGELOOSE]:Te[Oe.XRANGE];return i.replace(n,(u,a,o,h,g,_)=>{ge("xRange",i,u,a,o,h,g,_);let l=Fe(o),m=l||Fe(h),b=m||Fe(g),I=b;return a==="="&&I&&(a=""),_=r.includePrerelease?"-0":"",l?a===">"||a==="<"?u="<0.0.0-0":u="*":a&&I?(m&&(h=0),g=0,a===">"?(a=">=",m?(o=+o+1,h=0,g=0):(h=+h+1,g=0)):a==="<="&&(a="<",m?o=+o+1:h=+h+1),a==="<"&&(_="-0"),u=`${a+o}.${h}.${g}${_}`):m?u=`>=${o}.0.0${_} <${+o+1}.0.0-0`:b&&(u=`>=${o}.${h}.0${_} <${o}.${+h+1}.0-0`),ge("xRange return",u),u})},kw=(i,r)=>(ge("replaceStars",i,r),i.trim().replace(Te[Oe.STAR],"")),Vw=(i,r)=>(ge("replaceGTE0",i,r),i.trim().replace(Te[r.includePrerelease?Oe.GTE0PRE:Oe.GTE0],"")),zw=i=>(r,n,u,a,o,h,g,_,l,m,b,I,R)=>(Fe(u)?n="":Fe(a)?n=`>=${u}.0.0${i?"-0":""}`:Fe(o)?n=`>=${u}.${a}.0${i?"-0":""}`:h?n=`>=${n}`:n=`>=${n}${i?"-0":""}`,Fe(l)?_="":Fe(m)?_=`<${+l+1}.0.0-0`:Fe(b)?_=`<${l}.${+m+1}.0-0`:I?_=`<=${l}.${m}.${b}-${I}`:i?_=`<${l}.${m}.${+b+1}-0`:_=`<=${_}`,`${n} ${_}`.trim()),Yw=(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(ge(i[u].semver),i[u].semver!==nu.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 Wr=P((dx,th)=>{var Br=Symbol("SemVer ANY"),kr=class{static get ANY(){return Br}constructor(r,n){if(n=Xw(n),r instanceof kr){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===Br?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=Br}toString(){return this.value}test(r){if(iu("Comparator.test",r,this.options.loose),this.semver===Br||r===Br)return!0;if(typeof r=="string")try{r=new Qf(r,this.options)}catch{return!1}return ru(r,this.operator,this.semver,this.options)}intersects(r,n){if(!(r instanceof kr))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,h=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<="),g=ru(this.semver,"<",r.semver,n)&&(this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"),_=ru(this.semver,">",r.semver,n)&&(this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">");return u||a||o&&h||g||_}};th.exports=kr;var Xw=Mr(),{re:Jf,t:Zf}=bn(),ru=Qo(),iu=Fr(),Qf=Pe(),eh=lt()});var Vr=P((gx,nh)=>{var Kw=lt(),Jw=(i,r,n)=>{try{r=new Kw(r,n)}catch{return!1}return r.test(i)};nh.exports=Jw});var ih=P((vx,rh)=>{var Zw=lt(),Qw=(i,r)=>new Zw(i,r).set.map(n=>n.map(u=>u.value).join(" ").trim().split(" "));rh.exports=Qw});var oh=P((mx,sh)=>{var eb=Pe(),tb=lt(),nb=(i,r,n)=>{let u=null,a=null,o=null;try{o=new tb(r,n)}catch{return null}return i.forEach(h=>{o.test(h)&&(!u||a.compare(h)===-1)&&(u=h,a=new eb(u,n))}),u};sh.exports=nb});var ah=P((_x,uh)=>{var rb=Pe(),ib=lt(),sb=(i,r,n)=>{let u=null,a=null,o=null;try{o=new ib(r,n)}catch{return null}return i.forEach(h=>{o.test(h)&&(!u||a.compare(h)===1)&&(u=h,a=new rb(u,n))}),u};uh.exports=sb});var fh=P((yx,lh)=>{var su=Pe(),ob=lt(),ch=Hr(),ub=(i,r)=>{i=new ob(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(h=>{let g=new su(h.semver.version);switch(h.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!o||ch(g,o))&&(o=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${h.operator}`)}}),o&&(!n||ch(n,o))&&(n=o)}return n&&i.test(n)?n:null};lh.exports=ub});var ph=P((Ex,hh)=>{var ab=lt(),cb=(i,r)=>{try{return new ab(i,r).range||"*"}catch{return null}};hh.exports=cb});var fs=P((wx,mh)=>{var lb=Pe(),dh=Wr(),{ANY:fb}=dh,hb=lt(),pb=Vr(),gh=Hr(),vh=ss(),db=us(),gb=os(),vb=(i,r,n,u)=>{i=new lb(i,u),r=new hb(r,u);let a,o,h,g,_;switch(n){case">":a=gh,o=db,h=vh,g=">",_=">=";break;case"<":a=vh,o=gb,h=gh,g="<",_="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(pb(i,r,u))return!1;for(let l=0;l<r.set.length;++l){let m=r.set[l],b=null,I=null;if(m.forEach(R=>{R.semver===fb&&(R=new dh(">=0.0.0")),b=b||R,I=I||R,a(R.semver,b.semver,u)?b=R:h(R.semver,I.semver,u)&&(I=R)}),b.operator===g||b.operator===_||(!I.operator||I.operator===g)&&o(i,I.semver))return!1;if(I.operator===_&&h(i,I.semver))return!1}return!0};mh.exports=vb});var yh=P((bx,_h)=>{var mb=fs(),_b=(i,r,n)=>mb(i,r,">",n);_h.exports=_b});var wh=P((Sx,Eh)=>{var yb=fs(),Eb=(i,r,n)=>yb(i,r,"<",n);Eh.exports=Eb});var Ch=P((Cx,Sh)=>{var bh=lt(),wb=(i,r,n)=>(i=new bh(i,n),r=new bh(r,n),i.intersects(r));Sh.exports=wb});var xh=P((Ox,Oh)=>{var bb=Vr(),Sb=ct();Oh.exports=(i,r,n)=>{let u=[],a=null,o=null,h=i.sort((m,b)=>Sb(m,b,n));for(let m of h)bb(m,r,n)?(o=m,a||(a=m)):(o&&u.push([a,o]),o=null,a=null);a&&u.push([a,null]);let g=[];for(let[m,b]of u)m===b?g.push(m):!b&&m===h[0]?g.push("*"):b?m===h[0]?g.push(`<=${b}`):g.push(`${m} - ${b}`):g.push(`>=${m}`);let _=g.join(" || "),l=typeof r.raw=="string"?r.raw:String(r);return _.length<l.length?_:r}});var Th=P((xx,Ph)=>{var Ah=lt(),hs=Wr(),{ANY:ou}=hs,zr=Vr(),uu=ct(),Cb=(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 h=Ob(a,o,n);if(u=u||h!==null,h)continue e}if(u)return!1}return!0},Ob=(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 hs(">=0.0.0-0")]:i=[new hs(">=0.0.0")]}if(r.length===1&&r[0].semver===ou){if(n.includePrerelease)return!0;r=[new hs(">=0.0.0")]}let u=new Set,a,o;for(let R of i)R.operator===">"||R.operator===">="?a=Ih(a,R,n):R.operator==="<"||R.operator==="<="?o=Rh(o,R,n):u.add(R.semver);if(u.size>1)return null;let h;if(a&&o){if(h=uu(a.semver,o.semver,n),h>0)return null;if(h===0&&(a.operator!==">="||o.operator!=="<="))return null}for(let R of u){if(a&&!zr(R,String(a),n)||o&&!zr(R,String(o),n))return null;for(let $ of r)if(!zr(R,String($),n))return!1;return!0}let g,_,l,m,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 R of r){if(m=m||R.operator===">"||R.operator===">=",l=l||R.operator==="<"||R.operator==="<=",a){if(I&&R.semver.prerelease&&R.semver.prerelease.length&&R.semver.major===I.major&&R.semver.minor===I.minor&&R.semver.patch===I.patch&&(I=!1),R.operator===">"||R.operator===">="){if(g=Ih(a,R,n),g===R&&g!==a)return!1}else if(a.operator===">="&&!zr(a.semver,String(R),n))return!1}if(o){if(b&&R.semver.prerelease&&R.semver.prerelease.length&&R.semver.major===b.major&&R.semver.minor===b.minor&&R.semver.patch===b.patch&&(b=!1),R.operator==="<"||R.operator==="<="){if(_=Rh(o,R,n),_===R&&_!==o)return!1}else if(o.operator==="<="&&!zr(o.semver,String(R),n))return!1}if(!R.operator&&(o||a)&&h!==0)return!1}return!(a&&l&&!o&&h!==0||o&&m&&!a&&h!==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=Cb});var Nh=P((Ax,Lh)=>{var au=bn();Lh.exports={re:au.re,src:au.src,tokens:au.t,SEMVER_SPEC_VERSION:$r().SEMVER_SPEC_VERSION,SemVer:Pe(),compareIdentifiers:es().compareIdentifiers,rcompareIdentifiers:es().rcompareIdentifiers,parse:Sn(),valid:Zl(),clean:ef(),inc:nf(),diff:cf(),major:ff(),minor:pf(),patch:gf(),prerelease:mf(),compare:ct(),rcompare:yf(),compareLoose:wf(),compareBuild:is(),sort:Of(),rsort:Af(),gt:Hr(),lt:ss(),eq:rs(),neq:Zo(),gte:os(),lte:us(),cmp:Qo(),coerce:qf(),Comparator:Wr(),Range:lt(),satisfies:Vr(),toComparators:ih(),maxSatisfying:oh(),minSatisfying:ah(),minVersion:fh(),validRange:ph(),outside:fs(),gtr:yh(),ltr:wh(),intersects:Ch(),simplifyRange:xh(),subset:Th()}});var xe=P(An=>{"use strict";var Dh=An&&An.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(An,"__esModule",{value:!0});An.getCoreVersion=void 0;var qh=Dh(require("path")),$h=Dh(require("fs")),xb=Nh(),Ab=require("@serverless-devs/core"),Fh=qh.default.join(Ab.getRootHome(),"cache","core"),cu=qh.default.join(Fh,"package.json");function Ib(){if($h.default.existsSync(cu)){var i=require("@serverless-devs/core/package.json").version,r=Mh();return xb.gt(r,i)?require(Fh):require("@serverless-devs/core")}return require("@serverless-devs/core")}function Mh(){return $h.default.existsSync(cu)?require(cu).version:void 0}An.getCoreVersion=Mh;An.default=Ib()});var jh=P((Rx,Rb)=>{Rb.exports={name:"@serverless-devs/s",version:"2.0.99",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"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:{"@serverless-devs/commander":"^6.0.0","@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",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.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 ds=P(Bt=>{"use strict";var Hh=Bt&&Bt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getHistoryFile=Bt.getHomeDir=void 0;var Pb=Hh(require("path")),Uh=Hh(xe()),ps=Uh.default.fse,Tb=Uh.default.getRootHome;function lu(){var i=Tb();return ps.existsSync(i)||ps.mkdirSync(i),i}Bt.getHomeDir=lu;function Gh(){var i=Pb.default.join(lu(),"history");return ps.existsSync(i)||ps.createFileSync(i),i}Bt.getHistoryFile=Gh;Bt.default={getHomeDir:lu,getHistoryFile:Gh}});var pu=P(Me=>{"use strict";var Lb=Me&&Me.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(h){h(o)})}return new(n||(n=Promise))(function(o,h){function g(m){try{l(u.next(m))}catch(b){h(b)}}function _(m){try{l(u.throw(m))}catch(b){h(b)}}function l(m){m.done?o(m.value):a(m.value).then(g,_)}l((u=u.apply(i,r||[])).next())})},Nb=Me&&Me.__generator||function(i,r){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},u,a,o,h;return h={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function g(l){return function(m){return _([l,m])}}function _(l){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){n.label=l[1];break}if(l[0]===6&&n.label<o[1]){n.label=o[1],o=l;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(l);break}o[2]&&n.ops.pop(),n.trys.pop();continue}l=r.call(i,n)}catch(m){l=[6,m],a=0}finally{u=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},fu=Me&&Me.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Me,"__esModule",{value:!0});Me.handlerProfileFile=Me.getConfig=Me.setConfig=void 0;var Wh=fu(require("path")),Db=fu(ds()),hu=fu(xe()),St=hu.default.fse,gs=hu.default.jsyaml,Bh=hu.default.getRootHome;function qb(i){var r=Vh();St.writeFileSync(r,gs.dump(i))}function kh(){var i=Vh();if(!St.existsSync(i))return{};try{var r=gs.load(St.readFileSync(i,"utf8"))||{};return r}catch(n){throw n}}function Vh(){var i=Wh.default.join(Db.default.getHomeDir(),"set-config.yml");return St.existsSync(i)||St.createFileSync(i),i}function zh(i,r){var n=kh();n[i]=r,qb(n)}Me.setConfig=zh;function Yh(i,r){var n=kh();return n[i]||r}Me.getConfig=Yh;function Xh(i){return Lb(this,void 0,void 0,function(){var r,n,u,a,o,h,g;return Nb(this,function(_){switch(_.label){case 0:if(r=i.filePath||"set-config.yml",n=Wh.default.join(Bh(),r),u=St.existsSync(n),a={},u)return[3,5];o=Bh(),_.label=1;case 1:return _.trys.push([1,2,,4]),St.statSync(o),[3,4];case 2:return h=_.sent(),[4,St.mkdirSync(o)];case 3:return _.sent(),[3,4];case 4:return[3,6];case 5:try{a=gs.load(St.readFileSync(n,"utf8"))||{}}catch(l){throw l}_.label=6;case 6:return i.read?[2,a]:(g=i.configKey||"",a[g]=i.data,[4,St.writeFileSync(n,gs.dump(a))]);case 7:return _.sent(),[2,a]}})})}Me.handlerProfileFile=Xh;Me.default={setConfig:zh,getConfig:Yh,handlerProfileFile:Xh}});var Ct=P(H=>{"use strict";var $b=H&&H.__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]}),Fb=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Mb=H&&H.__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)&&$b(r,i,n);return Fb(r,i),r},du=H&&H.__awaiter||function(i,r,n,u){function a(o){return o instanceof n?o:new n(function(h){h(o)})}return new(n||(n=Promise))(function(o,h){function g(m){try{l(u.next(m))}catch(b){h(b)}}function _(m){try{l(u.throw(m))}catch(b){h(b)}}function l(m){m.done?o(m.value):a(m.value).then(g,_)}l((u=u.apply(i,r||[])).next())})},gu=H&&H.__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,h;return h={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(h[Symbol.iterator]=function(){return this}),h;function g(l){return function(m){return _([l,m])}}function _(l){if(u)throw new TypeError("Generator is already executing.");for(;n;)try{if(u=1,a&&(o=l[0]&2?a.return:l[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,l[1])).done)return o;switch(a=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,a=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){n.label=l[1];break}if(l[0]===6&&n.label<o[1]){n.label=o[1],o=l;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(l);break}o[2]&&n.ops.pop(),n.trys.pop();continue}l=r.call(i,n)}catch(m){l=[6,m],a=0}finally{u=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},vs=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var be=vs(require("path")),Ze=vs(require("fs")),on=vs(Xn()),jb=vs(require("os")),Hb=Rn(),ft=Mb(xe()),In=ft.default.colors,Ub=ft.default.jsyaml,Gb=ft.default.makeUnderLine,Wb=ft.default.got,Bb=ft.default.Logger,Kh=ft.default.isDebugMode,kb=ft.default.getMAC,Vb=ft.default.getYamlContent,zb=ft.default.isDocker,Yb=ft.default.isCiCdEnv,Jh=jh(),Xb=pu();H.red=In.hex("#fd5750");H.yellow=In.hex("#F3F99D");H.bgRed=In.hex("#000").bgHex("#fd5750");var Kb=function(i,r){if(!(zb()||Yb()))return Wb("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(i,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0}).then(function(n){var u=on.default.get(n.body,"shorturl");u&&console.log(`AI Tips:
|
|
35
35
|
You can try to solve the problem through: `.concat(In.underline(u),`
|
|
36
36
|
`))}).catch(function(){})},Jb=function(i,r){return du(void 0,void 0,void 0,function(){var n,u,a,o,h,g,_,l,m,b,I,R;return gu(this,function($){switch($.label){case 0:if(n={traceId:"",catchableError:!1},u=function(){try{return kb().replace(/:/g,"")}catch{return"unknown"}},a=(0,Xb.getConfig)("analysis"),a!=="disable"&&(n.traceId="".concat(u()).concat(Date.now())),o=Kh?Kh():void 0,o)return console.log(i),[2,n];h=i.message?i.message:"";try{g=JSON.parse(h)}catch{}return g&&g.tips?(_=g.message?"Message: ".concat(g.message,`
|
|
37
37
|
`):"",l=g.tips?"* ".concat(Gb(g.tips.replace(/\n/,`
|
package/lib/component/index.js
CHANGED
|
@@ -38,7 +38,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
38
38
|
`.concat(Uc.hex("#000").bgYellow("WARNING:"))),console.log("".concat(s,`
|
|
39
39
|
`)),u&&console.log("".concat(Uc.gray(u),`
|
|
40
40
|
`))}return i}();zn.HumanWarning=nw});var Po=D(te=>{"use strict";var rw=te&&te.__awaiter||function(i,r,s,u){function l(a){return a instanceof s?a:new s(function(g){g(a)})}return new(s||(s=Promise))(function(a,g){function y(x){try{p(u.next(x))}catch(R){g(R)}}function E(x){try{p(u.throw(x))}catch(R){g(R)}}function p(x){x.done?a(x.value):l(x.value).then(y,E)}p((u=u.apply(i,r||[])).next())})},iw=te&&te.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},u,l,a,g;return g={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function y(p){return function(x){return E([p,x])}}function E(p){if(u)throw new TypeError("Generator is already executing.");for(;s;)try{if(u=1,l&&(a=p[0]&2?l.return:p[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,p[1])).done)return a;switch(l=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,l=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(x){p=[6,x],l=0}finally{u=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},sw=te&&te.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(te,"__esModule",{value:!0});te.HandleError=te.HumanWarning=te.HumanError=te.ServerlessError=te.InitError=te.ConfigGetError=te.ConfigError=te.ConfigDeleteError=te.CommandError=void 0;var ow=_n(),jc=sw(_t()),uw=_n(),Vn=jc.default.colors,aw=jc.default.report,lw=Nc();Object.defineProperty(te,"CommandError",{enumerable:!0,get:function(){return lw.CommandError}});var fw=qc();Object.defineProperty(te,"ConfigDeleteError",{enumerable:!0,get:function(){return fw.ConfigDeleteError}});var cw=Fc();Object.defineProperty(te,"ConfigError",{enumerable:!0,get:function(){return cw.ConfigError}});var hw=Mc();Object.defineProperty(te,"ConfigGetError",{enumerable:!0,get:function(){return hw.ConfigGetError}});var pw=Hc();Object.defineProperty(te,"InitError",{enumerable:!0,get:function(){return pw.InitError}});var dw=gn();Object.defineProperty(te,"ServerlessError",{enumerable:!0,get:function(){return dw.ServerlessError}});var gw=Gc();Object.defineProperty(te,"HumanError",{enumerable:!0,get:function(){return gw.HumanError}});var _w=Bc();Object.defineProperty(te,"HumanWarning",{enumerable:!0,get:function(){return _w.HumanWarning}});function $o(i,r){return"".concat(Vn.gray(i)).concat(Vn.gray.underline(r))}var mw=function(i){return rw(void 0,void 0,void 0,function(){var r,s,u,l,a,g;return iw(this,function(y){switch(y.label){case 0:return r=i.error,s=i.prefix,u=s===void 0?"Message:":s,[4,(0,uw.getErrorMessage)(r,u)];case 1:return l=y.sent(),a=l.traceId,g=l.catchableError,g||(a&&console.log(Vn.gray("TraceId: ".concat(a))),console.log(Vn.gray("Environment: ".concat((0,ow.getVersion)()))),console.log($o("Documents: ","https://www.serverless-devs.com")),console.log($o("Discussions: ","https://github.com/Serverless-Devs/Serverless-Devs/discussions")),console.log($o("Issues: ",`https://github.com/Serverless-Devs/Serverless-Devs/issues
|
|
41
|
-
`)),a&&console.log(Vn.gray("Please copy traceId: ".concat(a," and join Dingding group: 33947367 for consultation.")))),console.log(Vn.gray("You can run 's clean --all' to clean Serverless devs.")),a&&!g?[4,aw({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:a})]:[3,3];case 2:y.sent(),y.label=3;case 3:return[2]}})})};te.HandleError=mw});var zc=D((cS,vw)=>{vw.exports={name:"@serverless-devs/s",version:"2.0.99
|
|
41
|
+
`)),a&&console.log(Vn.gray("Please copy traceId: ".concat(a," and join Dingding group: 33947367 for consultation.")))),console.log(Vn.gray("You can run 's clean --all' to clean Serverless devs.")),a&&!g?[4,aw({type:"jsError",content:"".concat(r.message,"||").concat(r.stack),traceId:a})]:[3,3];case 2:y.sent(),y.label=3;case 3:return[2]}})})};te.HandleError=mw});var zc=D((cS,vw)=>{vw.exports={name:"@serverless-devs/s",version:"2.0.99",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"MIT",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",prewatch:"rm -rf lib/* && cp -r ./src/daemon ./lib",watch:"tsc -w",test:"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:{"@serverless-devs/commander":"^6.0.0","@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",dotenv:"^10.0.0",esbuild:"^0.14.0",eslint:"^7.7.0","eslint-config-prettier":"^7.2.0","eslint-plugin-import":"^2.20.1","eslint-plugin-prettier":"^3.1.2",husky:"^4.2.3",inquirer:"^8.2.0","inquirer-autocomplete-prompt":"^1.3.0",jest:"^27.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 kc=D(Dt=>{"use strict";var Vc=Dt&&Dt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.getHistoryFile=Dt.getHomeDir=void 0;var yw=Vc(require("path")),Xc=Vc(_t()),Ui=Xc.default.fse,Ew=Xc.default.getRootHome;function No(){var i=Ew();return Ui.existsSync(i)||Ui.mkdirSync(i),i}Dt.getHomeDir=No;function Yc(){var i=yw.default.join(No(),"history");return Ui.existsSync(i)||Ui.createFileSync(i),i}Dt.getHistoryFile=Yc;Dt.default={getHomeDir:No,getHistoryFile:Yc}});var Mo=D(De=>{"use strict";var ww=De&&De.__awaiter||function(i,r,s,u){function l(a){return a instanceof s?a:new s(function(g){g(a)})}return new(s||(s=Promise))(function(a,g){function y(x){try{p(u.next(x))}catch(R){g(R)}}function E(x){try{p(u.throw(x))}catch(R){g(R)}}function p(x){x.done?a(x.value):l(x.value).then(y,E)}p((u=u.apply(i,r||[])).next())})},xw=De&&De.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},u,l,a,g;return g={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function y(p){return function(x){return E([p,x])}}function E(p){if(u)throw new TypeError("Generator is already executing.");for(;s;)try{if(u=1,l&&(a=p[0]&2?l.return:p[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,p[1])).done)return a;switch(l=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,l=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(x){p=[6,x],l=0}finally{u=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},qo=De&&De.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(De,"__esModule",{value:!0});De.handlerProfileFile=De.getConfig=De.setConfig=void 0;var Kc=qo(require("path")),Sw=qo(kc()),Fo=qo(_t()),vt=Fo.default.fse,Bi=Fo.default.jsyaml,Zc=Fo.default.getRootHome;function Aw(i){var r=Qc();vt.writeFileSync(r,Bi.dump(i))}function Jc(){var i=Qc();if(!vt.existsSync(i))return{};try{var r=Bi.load(vt.readFileSync(i,"utf8"))||{};return r}catch(s){throw s}}function Qc(){var i=Kc.default.join(Sw.default.getHomeDir(),"set-config.yml");return vt.existsSync(i)||vt.createFileSync(i),i}function eh(i,r){var s=Jc();s[i]=r,Aw(s)}De.setConfig=eh;function th(i,r){var s=Jc();return s[i]||r}De.getConfig=th;function nh(i){return ww(this,void 0,void 0,function(){var r,s,u,l,a,g,y;return xw(this,function(E){switch(E.label){case 0:if(r=i.filePath||"set-config.yml",s=Kc.default.join(Zc(),r),u=vt.existsSync(s),l={},u)return[3,5];a=Zc(),E.label=1;case 1:return E.trys.push([1,2,,4]),vt.statSync(a),[3,4];case 2:return g=E.sent(),[4,vt.mkdirSync(a)];case 3:return E.sent(),[3,4];case 4:return[3,6];case 5:try{l=Bi.load(vt.readFileSync(s,"utf8"))||{}}catch(p){throw p}E.label=6;case 6:return i.read?[2,l]:(y=i.configKey||"",l[y]=i.data,[4,vt.writeFileSync(s,Bi.dump(l))]);case 7:return E.sent(),[2,l]}})})}De.handlerProfileFile=nh;De.default={setConfig:eh,getConfig:th,handlerProfileFile:nh}});var _n=D(H=>{"use strict";var bw=H&&H.__createBinding||(Object.create?function(i,r,s,u){u===void 0&&(u=s),Object.defineProperty(i,u,{enumerable:!0,get:function(){return r[s]}})}:function(i,r,s,u){u===void 0&&(u=s),i[u]=r[s]}),Ow=H&&H.__setModuleDefault||(Object.create?function(i,r){Object.defineProperty(i,"default",{enumerable:!0,value:r})}:function(i,r){i.default=r}),Rw=H&&H.__importStar||function(i){if(i&&i.__esModule)return i;var r={};if(i!=null)for(var s in i)s!=="default"&&Object.prototype.hasOwnProperty.call(i,s)&&bw(r,i,s);return Ow(r,i),r},Ho=H&&H.__awaiter||function(i,r,s,u){function l(a){return a instanceof s?a:new s(function(g){g(a)})}return new(s||(s=Promise))(function(a,g){function y(x){try{p(u.next(x))}catch(R){g(R)}}function E(x){try{p(u.throw(x))}catch(R){g(R)}}function p(x){x.done?a(x.value):l(x.value).then(y,E)}p((u=u.apply(i,r||[])).next())})},Wo=H&&H.__generator||function(i,r){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},u,l,a,g;return g={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function y(p){return function(x){return E([p,x])}}function E(p){if(u)throw new TypeError("Generator is already executing.");for(;s;)try{if(u=1,l&&(a=p[0]&2?l.return:p[0]?l.throw||((a=l.return)&&a.call(l),0):l.next)&&!(a=a.call(l,p[1])).done)return a;switch(l=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return s.label++,{value:p[1],done:!1};case 5:s.label++,l=p[1],p=[0];continue;case 7:p=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){s=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){s.label=p[1];break}if(p[0]===6&&s.label<a[1]){s.label=a[1],a=p;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(p);break}a[2]&&s.ops.pop(),s.trys.pop();continue}p=r.call(i,s)}catch(x){p=[6,x],l=0}finally{u=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},ji=H&&H.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(H,"__esModule",{value:!0});H.emoji=H.mark=H.replaceTemplate=H.getTemplatekey=H.replaceFun=H.getLang=H.printn=H.checkTemplateFile=H.checkAndReturnTemplateFile=H.yamlLoad=H.getFolderSize=H.getVersion=H.getErrorMessage=H.bgRed=H.yellow=H.red=void 0;var ve=ji(require("path")),ze=ji(require("fs")),Vt=ji(Do()),Cw=ji(require("os")),Iw=Po(),it=Rw(_t()),mn=it.default.colors,Tw=it.default.jsyaml,Lw=it.default.makeUnderLine,Dw=it.default.got,$w=it.default.Logger,rh=it.default.isDebugMode,Pw=it.default.getMAC,Nw=it.default.getYamlContent,qw=it.default.isDocker,Fw=it.default.isCiCdEnv,ih=zc(),Mw=Mo();H.red=mn.hex("#fd5750");H.yellow=mn.hex("#F3F99D");H.bgRed=mn.hex("#000").bgHex("#fd5750");var Hw=function(i,r){if(!(qw()||Fw()))return Dw("http://qaapis.devsapp.cn/apis/v1/search?category=".concat(i,"&code=TypeError&s=").concat(r),{timeout:2e3,json:!0}).then(function(s){var u=Vt.default.get(s.body,"shorturl");u&&console.log(`AI Tips:
|
|
42
42
|
You can try to solve the problem through: `.concat(mn.underline(u),`
|
|
43
43
|
`))}).catch(function(){})},Ww=function(i,r){return Ho(void 0,void 0,void 0,function(){var s,u,l,a,g,y,E,p,x,R,I,T;return Wo(this,function(ne){switch(ne.label){case 0:if(s={traceId:"",catchableError:!1},u=function(){try{return Pw().replace(/:/g,"")}catch{return"unknown"}},l=(0,Mw.getConfig)("analysis"),l!=="disable"&&(s.traceId="".concat(u()).concat(Date.now())),a=rh?rh():void 0,a)return console.log(i),[2,s];g=i.message?i.message:"";try{y=JSON.parse(g)}catch{}return y&&y.tips?(E=y.message?"Message: ".concat(y.message,`
|
|
44
44
|
`):"",p=y.tips?"* ".concat(Lw(y.tips.replace(/\n/,`
|