UNPKG

sml-cli

Version:
46 lines (44 loc) 4.88 MB
"use strict";var Ecr=Object.create;var Mve=Object.defineProperty;var Acr=Object.getOwnPropertyDescriptor;var wcr=Object.getOwnPropertyNames;var kcr=Object.getPrototypeOf,Pcr=Object.prototype.hasOwnProperty;var ch=(n,r)=>()=>(n&&(r=n(n=0)),r);var Ve=(n,r)=>()=>(r||n((r={exports:{}}).exports,r),r.exports),Rne=(n,r)=>{for(var i in r)Mve(n,i,{get:r[i],enumerable:!0})},X_t=(n,r,i,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let u of wcr(r))!Pcr.call(n,u)&&u!==i&&Mve(n,u,{get:()=>r[u],enumerable:!(c=Acr(r,u))||c.enumerable});return n};var uu=(n,r,i)=>(i=n!=null?Ecr(kcr(n)):{},X_t(r||!n||!n.__esModule?Mve(i,"default",{value:n,enumerable:!0}):i,n)),Ncr=n=>X_t(Mve({},"__esModule",{value:!0}),n);var Q_t=Ve((ozr,Ocr)=>{Ocr.exports={name:"dotenv",version:"16.3.1",description:"Loads environment variables from .env file",main:"lib/main.js",types:"lib/main.d.ts",exports:{".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},scripts:{"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec",prerelease:"npm test",release:"standard-version"},repository:{type:"git",url:"git://github.com/motdotla/dotenv.git"},funding:"https://github.com/motdotla/dotenv?sponsor=1",keywords:["dotenv","env",".env","environment","variables","config","settings"],readmeFilename:"README.md",license:"BSD-2-Clause",devDependencies:{"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3",decache:"^4.6.1",sinon:"^14.0.1",standard:"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0",tap:"^16.3.0",tar:"^6.1.11",typescript:"^4.8.4"},engines:{node:">=12"},browser:{fs:!1}}});var oMe=Ve((czr,xF)=>{var K_t=require("fs"),sMe=require("path"),Fcr=require("os"),Rcr=require("crypto"),Mcr=Q_t(),aMe=Mcr.version,Lcr=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function jcr(n){let r={},i=n.toString();i=i.replace(/\r\n?/mg,` `);let c;for(;(c=Lcr.exec(i))!=null;){let u=c[1],_=c[2]||"";_=_.trim();let g=_[0];_=_.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),g==='"'&&(_=_.replace(/\\n/g,` `),_=_.replace(/\\r/g,"\r")),r[u]=_}return r}function Bcr(n){let r=edt(n),i=mv.configDotenv({path:r});if(!i.parsed)throw new Error(`MISSING_DATA: Cannot parse ${r} for an unknown reason`);let c=Z_t(n).split(","),u=c.length,_;for(let g=0;g<u;g++)try{let x=c[g].trim(),E=Jcr(i,x);_=mv.decrypt(E.ciphertext,E.key);break}catch(x){if(g+1>=u)throw x}return mv.parse(_)}function qcr(n){console.log(`[dotenv@${aMe}][INFO] ${n}`)}function $cr(n){console.log(`[dotenv@${aMe}][WARN] ${n}`)}function iMe(n){console.log(`[dotenv@${aMe}][DEBUG] ${n}`)}function Z_t(n){return n&&n.DOTENV_KEY&&n.DOTENV_KEY.length>0?n.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function Jcr(n,r){let i;try{i=new URL(r)}catch(x){throw x.code==="ERR_INVALID_URL"?new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenv.org/vault/.env.vault?environment=development"):x}let c=i.password;if(!c)throw new Error("INVALID_DOTENV_KEY: Missing key part");let u=i.searchParams.get("environment");if(!u)throw new Error("INVALID_DOTENV_KEY: Missing environment part");let _=`DOTENV_VAULT_${u.toUpperCase()}`,g=n.parsed[_];if(!g)throw new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${_} in your .env.vault file.`);return{ciphertext:g,key:c}}function edt(n){let r=sMe.resolve(process.cwd(),".env");return n&&n.path&&n.path.length>0&&(r=n.path),r.endsWith(".vault")?r:`${r}.vault`}function Ucr(n){return n[0]==="~"?sMe.join(Fcr.homedir(),n.slice(1)):n}function Vcr(n){qcr("Loading env from encrypted .env.vault");let r=mv._parseVault(n),i=process.env;return n&&n.processEnv!=null&&(i=n.processEnv),mv.populate(i,r,n),{parsed:r}}function Wcr(n){let r=sMe.resolve(process.cwd(),".env"),i="utf8",c=!!(n&&n.debug);n&&(n.path!=null&&(r=Ucr(n.path)),n.encoding!=null&&(i=n.encoding));try{let u=mv.parse(K_t.readFileSync(r,{encoding:i})),_=process.env;return n&&n.processEnv!=null&&(_=n.processEnv),mv.populate(_,u,n),{parsed:u}}catch(u){return c&&iMe(`Failed to load ${r} ${u.message}`),{error:u}}}function zcr(n){let r=edt(n);return Z_t(n).length===0?mv.configDotenv(n):K_t.existsSync(r)?mv._configVault(n):($cr(`You set DOTENV_KEY but you are missing a .env.vault file at ${r}. Did you forget to build it?`),mv.configDotenv(n))}function Gcr(n,r){let i=Buffer.from(r.slice(-64),"hex"),c=Buffer.from(n,"base64"),u=c.slice(0,12),_=c.slice(-16);c=c.slice(12,-16);try{let g=Rcr.createDecipheriv("aes-256-gcm",i,u);return g.setAuthTag(_),`${g.update(c)}${g.final()}`}catch(g){let x=g instanceof RangeError,E=g.message==="Invalid key length",w=g.message==="Unsupported state or unable to authenticate data";if(x||E){let L="INVALID_DOTENV_KEY: It must be 64 characters long (or more)";throw new Error(L)}else if(w){let L="DECRYPTION_FAILED: Please check your DOTENV_KEY";throw new Error(L)}else throw console.error("Error: ",g.code),console.error("Error: ",g.message),g}}function Hcr(n,r,i={}){let c=!!(i&&i.debug),u=!!(i&&i.override);if(typeof r!="object")throw new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");for(let _ of Object.keys(r))Object.prototype.hasOwnProperty.call(n,_)?(u===!0&&(n[_]=r[_]),c&&iMe(u===!0?`"${_}" is already defined and WAS overwritten`:`"${_}" is already defined and was NOT overwritten`)):n[_]=r[_]}var mv={configDotenv:Wcr,_configVault:Vcr,_parseVault:Bcr,config:zcr,decrypt:Gcr,parse:jcr,populate:Hcr};xF.exports.configDotenv=mv.configDotenv;xF.exports._configVault=mv._configVault;xF.exports._parseVault=mv._parseVault;xF.exports.config=mv.config;xF.exports.decrypt=mv.decrypt;xF.exports.parse=mv.parse;xF.exports.populate=mv.populate;xF.exports=mv});var rdt=Ve((lzr,tdt)=>{var pz={};process.env.DOTENV_CONFIG_ENCODING!=null&&(pz.encoding=process.env.DOTENV_CONFIG_ENCODING);process.env.DOTENV_CONFIG_PATH!=null&&(pz.path=process.env.DOTENV_CONFIG_PATH);process.env.DOTENV_CONFIG_DEBUG!=null&&(pz.debug=process.env.DOTENV_CONFIG_DEBUG);process.env.DOTENV_CONFIG_OVERRIDE!=null&&(pz.override=process.env.DOTENV_CONFIG_OVERRIDE);process.env.DOTENV_CONFIG_DOTENV_KEY!=null&&(pz.DOTENV_KEY=process.env.DOTENV_CONFIG_DOTENV_KEY);tdt.exports=pz});var idt=Ve((uzr,ndt)=>{var Ycr=/^dotenv_config_(encoding|path|debug|override|DOTENV_KEY)=(.+)$/;ndt.exports=function(r){return r.reduce(function(i,c){let u=c.match(Ycr);return u&&(i[u[1]]=u[2]),i},{})}});var Ty=Ve(f1=>{"use strict";Object.defineProperty(f1,"__esModule",{value:!0});f1.pickBy=Xcr;f1.compact=Qcr;f1.uniqBy=Kcr;f1.last=Zcr;f1.sortBy=elr;f1.castArray=tlr;f1.isProd=rlr;f1.maxBy=nlr;f1.sumBy=ilr;f1.capitalize=slr;f1.isTruthy=alr;f1.isNotFalsy=olr;f1.uniq=clr;f1.mapValues=llr;f1.mergeNestedObjects=flr;function Xcr(n,r){return Object.entries(n).reduce((i,[c,u])=>(r(u)&&(i[c]=u),i),{})}function Qcr(n){return n.filter(r=>!!r)}function Kcr(n,r){return n.filter((i,c)=>{let u=r(i);return!n.some((_,g)=>g>c&&r(_)===u)})}function Zcr(n){if(n)return n.at(-1)}function cMe(n,r){if(n=n===void 0?0:n,r=r===void 0?0:r,Array.isArray(n)&&Array.isArray(r)){if(n.length===0&&r.length===0)return 0;let i=cMe(n[0],r[0]);return i!==0?i:cMe(n.slice(1),r.slice(1))}return n<r?-1:n>r?1:0}function elr(n,r){return n.sort((i,c)=>cMe(r(i),r(c)))}function tlr(n){return n===void 0?[]:Array.isArray(n)?n:[n]}function rlr(){return!["development","test"].includes(process.env.NODE_ENV??"")}function nlr(n,r){if(n.length!==0)return n.reduce((i,c)=>{let u=r(c),_=r(i);return u>_?c:i})}function ilr(n,r){return n.reduce((i,c)=>i+r(c),0)}function slr(n){return n?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():""}function alr(n){return["1","true","y","yes"].includes(n.toLowerCase())}function olr(n){return!["0","false","n","no"].includes(n.toLowerCase())}function clr(n){return[...new Set(n)].sort()}function llr(n,r){return Object.entries(n).reduce((i,[c,u])=>(i[c]=r(u,c),i),{})}function ulr(n,r){return r.split(".").reduce((i,c)=>i?.[c],n)}function flr(n,r){return Object.fromEntries(n.flatMap(i=>Object.entries(ulr(i,r)??{})).reverse())}});var Mne=Ve((pzr,sdt)=>{var plr="2.0.0",_lr=Number.MAX_SAFE_INTEGER||9007199254740991,dlr=16,mlr=250,glr=["major","premajor","minor","preminor","patch","prepatch","prerelease"];sdt.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:dlr,MAX_SAFE_BUILD_LENGTH:mlr,MAX_SAFE_INTEGER:_lr,RELEASE_TYPES:glr,SEMVER_SPEC_VERSION:plr,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Lne=Ve((_zr,adt)=>{var hlr=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};adt.exports=hlr});var _z=Ve((TF,odt)=>{var{MAX_SAFE_COMPONENT_LENGTH:lMe,MAX_SAFE_BUILD_LENGTH:ylr,MAX_LENGTH:vlr}=Mne(),blr=Lne();TF=odt.exports={};var Dlr=TF.re=[],Slr=TF.safeRe=[],yo=TF.src=[],vo=TF.t={},xlr=0,uMe="[a-zA-Z0-9-]",Tlr=[["\\s",1],["\\d",vlr],[uMe,ylr]],Clr=n=>{for(let[r,i]of Tlr)n=n.split(`${r}*`).join(`${r}{0,${i}}`).split(`${r}+`).join(`${r}{1,${i}}`);return n},ru=(n,r,i)=>{let c=Clr(r),u=xlr++;blr(n,u,r),vo[n]=u,yo[u]=r,Dlr[u]=new RegExp(r,i?"g":void 0),Slr[u]=new RegExp(c,i?"g":void 0)};ru("NUMERICIDENTIFIER","0|[1-9]\\d*");ru("NUMERICIDENTIFIERLOOSE","\\d+");ru("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${uMe}*`);ru("MAINVERSION",`(${yo[vo.NUMERICIDENTIFIER]})\\.(${yo[vo.NUMERICIDENTIFIER]})\\.(${yo[vo.NUMERICIDENTIFIER]})`);ru("MAINVERSIONLOOSE",`(${yo[vo.NUMERICIDENTIFIERLOOSE]})\\.(${yo[vo.NUMERICIDENTIFIERLOOSE]})\\.(${yo[vo.NUMERICIDENTIFIERLOOSE]})`);ru("PRERELEASEIDENTIFIER",`(?:${yo[vo.NUMERICIDENTIFIER]}|${yo[vo.NONNUMERICIDENTIFIER]})`);ru("PRERELEASEIDENTIFIERLOOSE",`(?:${yo[vo.NUMERICIDENTIFIERLOOSE]}|${yo[vo.NONNUMERICIDENTIFIER]})`);ru("PRERELEASE",`(?:-(${yo[vo.PRERELEASEIDENTIFIER]}(?:\\.${yo[vo.PRERELEASEIDENTIFIER]})*))`);ru("PRERELEASELOOSE",`(?:-?(${yo[vo.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${yo[vo.PRERELEASEIDENTIFIERLOOSE]})*))`);ru("BUILDIDENTIFIER",`${uMe}+`);ru("BUILD",`(?:\\+(${yo[vo.BUILDIDENTIFIER]}(?:\\.${yo[vo.BUILDIDENTIFIER]})*))`);ru("FULLPLAIN",`v?${yo[vo.MAINVERSION]}${yo[vo.PRERELEASE]}?${yo[vo.BUILD]}?`);ru("FULL",`^${yo[vo.FULLPLAIN]}$`);ru("LOOSEPLAIN",`[v=\\s]*${yo[vo.MAINVERSIONLOOSE]}${yo[vo.PRERELEASELOOSE]}?${yo[vo.BUILD]}?`);ru("LOOSE",`^${yo[vo.LOOSEPLAIN]}$`);ru("GTLT","((?:<|>)?=?)");ru("XRANGEIDENTIFIERLOOSE",`${yo[vo.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ru("XRANGEIDENTIFIER",`${yo[vo.NUMERICIDENTIFIER]}|x|X|\\*`);ru("XRANGEPLAIN",`[v=\\s]*(${yo[vo.XRANGEIDENTIFIER]})(?:\\.(${yo[vo.XRANGEIDENTIFIER]})(?:\\.(${yo[vo.XRANGEIDENTIFIER]})(?:${yo[vo.PRERELEASE]})?${yo[vo.BUILD]}?)?)?`);ru("XRANGEPLAINLOOSE",`[v=\\s]*(${yo[vo.XRANGEIDENTIFIERLOOSE]})(?:\\.(${yo[vo.XRANGEIDENTIFIERLOOSE]})(?:\\.(${yo[vo.XRANGEIDENTIFIERLOOSE]})(?:${yo[vo.PRERELEASELOOSE]})?${yo[vo.BUILD]}?)?)?`);ru("XRANGE",`^${yo[vo.GTLT]}\\s*${yo[vo.XRANGEPLAIN]}$`);ru("XRANGELOOSE",`^${yo[vo.GTLT]}\\s*${yo[vo.XRANGEPLAINLOOSE]}$`);ru("COERCEPLAIN",`(^|[^\\d])(\\d{1,${lMe}})(?:\\.(\\d{1,${lMe}}))?(?:\\.(\\d{1,${lMe}}))?`);ru("COERCE",`${yo[vo.COERCEPLAIN]}(?:$|[^\\d])`);ru("COERCEFULL",yo[vo.COERCEPLAIN]+`(?:${yo[vo.PRERELEASE]})?(?:${yo[vo.BUILD]})?(?:$|[^\\d])`);ru("COERCERTL",yo[vo.COERCE],!0);ru("COERCERTLFULL",yo[vo.COERCEFULL],!0);ru("LONETILDE","(?:~>?)");ru("TILDETRIM",`(\\s*)${yo[vo.LONETILDE]}\\s+`,!0);TF.tildeTrimReplace="$1~";ru("TILDE",`^${yo[vo.LONETILDE]}${yo[vo.XRANGEPLAIN]}$`);ru("TILDELOOSE",`^${yo[vo.LONETILDE]}${yo[vo.XRANGEPLAINLOOSE]}$`);ru("LONECARET","(?:\\^)");ru("CARETTRIM",`(\\s*)${yo[vo.LONECARET]}\\s+`,!0);TF.caretTrimReplace="$1^";ru("CARET",`^${yo[vo.LONECARET]}${yo[vo.XRANGEPLAIN]}$`);ru("CARETLOOSE",`^${yo[vo.LONECARET]}${yo[vo.XRANGEPLAINLOOSE]}$`);ru("COMPARATORLOOSE",`^${yo[vo.GTLT]}\\s*(${yo[vo.LOOSEPLAIN]})$|^$`);ru("COMPARATOR",`^${yo[vo.GTLT]}\\s*(${yo[vo.FULLPLAIN]})$|^$`);ru("COMPARATORTRIM",`(\\s*)${yo[vo.GTLT]}\\s*(${yo[vo.LOOSEPLAIN]}|${yo[vo.XRANGEPLAIN]})`,!0);TF.comparatorTrimReplace="$1$2$3";ru("HYPHENRANGE",`^\\s*(${yo[vo.XRANGEPLAIN]})\\s+-\\s+(${yo[vo.XRANGEPLAIN]})\\s*$`);ru("HYPHENRANGELOOSE",`^\\s*(${yo[vo.XRANGEPLAINLOOSE]})\\s+-\\s+(${yo[vo.XRANGEPLAINLOOSE]})\\s*$`);ru("STAR","(<|>)?=?\\s*\\*");ru("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ru("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Lve=Ve((dzr,cdt)=>{var Ilr=Object.freeze({loose:!0}),Elr=Object.freeze({}),Alr=n=>n?typeof n!="object"?Ilr:n:Elr;cdt.exports=Alr});var fMe=Ve((mzr,fdt)=>{var ldt=/^[0-9]+$/,udt=(n,r)=>{let i=ldt.test(n),c=ldt.test(r);return i&&c&&(n=+n,r=+r),n===r?0:i&&!c?-1:c&&!i?1:n<r?-1:1},wlr=(n,r)=>udt(r,n);fdt.exports={compareIdentifiers:udt,rcompareIdentifiers:wlr}});var bb=Ve((gzr,mdt)=>{var jve=Lne(),{MAX_LENGTH:pdt,MAX_SAFE_INTEGER:Bve}=Mne(),{safeRe:_dt,t:ddt}=_z(),klr=Lve(),{compareIdentifiers:dz}=fMe(),pMe=class n{constructor(r,i){if(i=klr(i),r instanceof n){if(r.loose===!!i.loose&&r.includePrerelease===!!i.includePrerelease)return r;r=r.version}else if(typeof r!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof r}".`);if(r.length>pdt)throw new TypeError(`version is longer than ${pdt} characters`);jve("SemVer",r,i),this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease;let c=r.trim().match(i.loose?_dt[ddt.LOOSE]:_dt[ddt.FULL]);if(!c)throw new TypeError(`Invalid Version: ${r}`);if(this.raw=r,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>Bve||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Bve||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Bve||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map(u=>{if(/^[0-9]+$/.test(u)){let _=+u;if(_>=0&&_<Bve)return _}return u}):this.prerelease=[],this.build=c[5]?c[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(jve("SemVer.compare",this.version,this.options,r),!(r instanceof n)){if(typeof r=="string"&&r===this.version)return 0;r=new n(r,this.options)}return r.version===this.version?0:this.compareMain(r)||this.comparePre(r)}compareMain(r){return r instanceof n||(r=new n(r,this.options)),dz(this.major,r.major)||dz(this.minor,r.minor)||dz(this.patch,r.patch)}comparePre(r){if(r instanceof n||(r=new n(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 i=0;do{let c=this.prerelease[i],u=r.prerelease[i];if(jve("prerelease compare",i,c,u),c===void 0&&u===void 0)return 0;if(u===void 0)return 1;if(c===void 0)return-1;if(c===u)continue;return dz(c,u)}while(++i)}compareBuild(r){r instanceof n||(r=new n(r,this.options));let i=0;do{let c=this.build[i],u=r.build[i];if(jve("build compare",i,c,u),c===void 0&&u===void 0)return 0;if(u===void 0)return 1;if(c===void 0)return-1;if(c===u)continue;return dz(c,u)}while(++i)}inc(r,i,c){switch(r){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",i,c);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",i,c);break;case"prepatch":this.prerelease.length=0,this.inc("patch",i,c),this.inc("pre",i,c);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",i,c),this.inc("pre",i,c);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":{let u=Number(c)?1:0;if(!i&&c===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[u];else{let _=this.prerelease.length;for(;--_>=0;)typeof this.prerelease[_]=="number"&&(this.prerelease[_]++,_=-2);if(_===-1){if(i===this.prerelease.join(".")&&c===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(u)}}if(i){let _=[i,u];c===!1&&(_=[i]),dz(this.prerelease[0],i)===0?isNaN(this.prerelease[1])&&(this.prerelease=_):this.prerelease=_}break}default:throw new Error(`invalid increment argument: ${r}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};mdt.exports=pMe});var M9=Ve((hzr,hdt)=>{var gdt=bb(),Plr=(n,r,i=!1)=>{if(n instanceof gdt)return n;try{return new gdt(n,r)}catch(c){if(!i)return null;throw c}};hdt.exports=Plr});var vdt=Ve((yzr,ydt)=>{var Nlr=M9(),Olr=(n,r)=>{let i=Nlr(n,r);return i?i.version:null};ydt.exports=Olr});var Ddt=Ve((vzr,bdt)=>{var Flr=M9(),Rlr=(n,r)=>{let i=Flr(n.trim().replace(/^[=v]+/,""),r);return i?i.version:null};bdt.exports=Rlr});var Tdt=Ve((bzr,xdt)=>{var Sdt=bb(),Mlr=(n,r,i,c,u)=>{typeof i=="string"&&(u=c,c=i,i=void 0);try{return new Sdt(n instanceof Sdt?n.version:n,i).inc(r,c,u).version}catch{return null}};xdt.exports=Mlr});var Edt=Ve((Dzr,Idt)=>{var Cdt=M9(),Llr=(n,r)=>{let i=Cdt(n,null,!0),c=Cdt(r,null,!0),u=i.compare(c);if(u===0)return null;let _=u>0,g=_?i:c,x=_?c:i,E=!!g.prerelease.length;if(!!x.prerelease.length&&!E)return!x.patch&&!x.minor?"major":g.patch?"patch":g.minor?"minor":"major";let L=E?"pre":"";return i.major!==c.major?L+"major":i.minor!==c.minor?L+"minor":i.patch!==c.patch?L+"patch":"prerelease"};Idt.exports=Llr});var wdt=Ve((Szr,Adt)=>{var jlr=bb(),Blr=(n,r)=>new jlr(n,r).major;Adt.exports=Blr});var Pdt=Ve((xzr,kdt)=>{var qlr=bb(),$lr=(n,r)=>new qlr(n,r).minor;kdt.exports=$lr});var Odt=Ve((Tzr,Ndt)=>{var Jlr=bb(),Ulr=(n,r)=>new Jlr(n,r).patch;Ndt.exports=Ulr});var Rdt=Ve((Czr,Fdt)=>{var Vlr=M9(),Wlr=(n,r)=>{let i=Vlr(n,r);return i&&i.prerelease.length?i.prerelease:null};Fdt.exports=Wlr});var QC=Ve((Izr,Ldt)=>{var Mdt=bb(),zlr=(n,r,i)=>new Mdt(n,i).compare(new Mdt(r,i));Ldt.exports=zlr});var Bdt=Ve((Ezr,jdt)=>{var Glr=QC(),Hlr=(n,r,i)=>Glr(r,n,i);jdt.exports=Hlr});var $dt=Ve((Azr,qdt)=>{var Ylr=QC(),Xlr=(n,r)=>Ylr(n,r,!0);qdt.exports=Xlr});var qve=Ve((wzr,Udt)=>{var Jdt=bb(),Qlr=(n,r,i)=>{let c=new Jdt(n,i),u=new Jdt(r,i);return c.compare(u)||c.compareBuild(u)};Udt.exports=Qlr});var Wdt=Ve((kzr,Vdt)=>{var Klr=qve(),Zlr=(n,r)=>n.sort((i,c)=>Klr(i,c,r));Vdt.exports=Zlr});var Gdt=Ve((Pzr,zdt)=>{var eur=qve(),tur=(n,r)=>n.sort((i,c)=>eur(c,i,r));zdt.exports=tur});var jne=Ve((Nzr,Hdt)=>{var rur=QC(),nur=(n,r,i)=>rur(n,r,i)>0;Hdt.exports=nur});var $ve=Ve((Ozr,Ydt)=>{var iur=QC(),sur=(n,r,i)=>iur(n,r,i)<0;Ydt.exports=sur});var _Me=Ve((Fzr,Xdt)=>{var aur=QC(),our=(n,r,i)=>aur(n,r,i)===0;Xdt.exports=our});var dMe=Ve((Rzr,Qdt)=>{var cur=QC(),lur=(n,r,i)=>cur(n,r,i)!==0;Qdt.exports=lur});var Jve=Ve((Mzr,Kdt)=>{var uur=QC(),fur=(n,r,i)=>uur(n,r,i)>=0;Kdt.exports=fur});var Uve=Ve((Lzr,Zdt)=>{var pur=QC(),_ur=(n,r,i)=>pur(n,r,i)<=0;Zdt.exports=_ur});var mMe=Ve((jzr,emt)=>{var dur=_Me(),mur=dMe(),gur=jne(),hur=Jve(),yur=$ve(),vur=Uve(),bur=(n,r,i,c)=>{switch(r){case"===":return typeof n=="object"&&(n=n.version),typeof i=="object"&&(i=i.version),n===i;case"!==":return typeof n=="object"&&(n=n.version),typeof i=="object"&&(i=i.version),n!==i;case"":case"=":case"==":return dur(n,i,c);case"!=":return mur(n,i,c);case">":return gur(n,i,c);case">=":return hur(n,i,c);case"<":return yur(n,i,c);case"<=":return vur(n,i,c);default:throw new TypeError(`Invalid operator: ${r}`)}};emt.exports=bur});var rmt=Ve((Bzr,tmt)=>{var Dur=bb(),Sur=M9(),{safeRe:Vve,t:Wve}=_z(),xur=(n,r)=>{if(n instanceof Dur)return n;if(typeof n=="number"&&(n=String(n)),typeof n!="string")return null;r=r||{};let i=null;if(!r.rtl)i=n.match(r.includePrerelease?Vve[Wve.COERCEFULL]:Vve[Wve.COERCE]);else{let E=r.includePrerelease?Vve[Wve.COERCERTLFULL]:Vve[Wve.COERCERTL],w;for(;(w=E.exec(n))&&(!i||i.index+i[0].length!==n.length);)(!i||w.index+w[0].length!==i.index+i[0].length)&&(i=w),E.lastIndex=w.index+w[1].length+w[2].length;E.lastIndex=-1}if(i===null)return null;let c=i[2],u=i[3]||"0",_=i[4]||"0",g=r.includePrerelease&&i[5]?`-${i[5]}`:"",x=r.includePrerelease&&i[6]?`+${i[6]}`:"";return Sur(`${c}.${u}.${_}${g}${x}`,r)};tmt.exports=xur});var imt=Ve((qzr,nmt)=>{var gMe=class{constructor(){this.max=1e3,this.map=new Map}get(r){let i=this.map.get(r);if(i!==void 0)return this.map.delete(r),this.map.set(r,i),i}delete(r){return this.map.delete(r)}set(r,i){if(!this.delete(r)&&i!==void 0){if(this.map.size>=this.max){let u=this.map.keys().next().value;this.delete(u)}this.map.set(r,i)}return this}};nmt.exports=gMe});var KC=Ve(($zr,cmt)=>{var Tur=/\s+/g,hMe=class n{constructor(r,i){if(i=Iur(i),r instanceof n)return r.loose===!!i.loose&&r.includePrerelease===!!i.includePrerelease?r:new n(r.raw,i);if(r instanceof yMe)return this.raw=r.value,this.set=[[r]],this.formatted=void 0,this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=r.trim().replace(Tur," "),this.set=this.raw.split("||").map(c=>this.parseRange(c.trim())).filter(c=>c.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let c=this.set[0];if(this.set=this.set.filter(u=>!amt(u[0])),this.set.length===0)this.set=[c];else if(this.set.length>1){for(let u of this.set)if(u.length===1&&Our(u[0])){this.set=[u];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let r=0;r<this.set.length;r++){r>0&&(this.formatted+="||");let i=this.set[r];for(let c=0;c<i.length;c++)c>0&&(this.formatted+=" "),this.formatted+=i[c].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(r){let c=((this.options.includePrerelease&&Pur)|(this.options.loose&&Nur))+":"+r,u=smt.get(c);if(u)return u;let _=this.options.loose,g=_?vx[WD.HYPHENRANGELOOSE]:vx[WD.HYPHENRANGE];r=r.replace(g,Uur(this.options.includePrerelease)),gm("hyphen replace",r),r=r.replace(vx[WD.COMPARATORTRIM],Aur),gm("comparator trim",r),r=r.replace(vx[WD.TILDETRIM],wur),gm("tilde trim",r),r=r.replace(vx[WD.CARETTRIM],kur),gm("caret trim",r);let x=r.split(" ").map(U=>Fur(U,this.options)).join(" ").split(/\s+/).map(U=>Jur(U,this.options));_&&(x=x.filter(U=>(gm("loose invalid filter",U,this.options),!!U.match(vx[WD.COMPARATORLOOSE])))),gm("range list",x);let E=new Map,w=x.map(U=>new yMe(U,this.options));for(let U of w){if(amt(U))return[U];E.set(U.value,U)}E.size>1&&E.has("")&&E.delete("");let L=[...E.values()];return smt.set(c,L),L}intersects(r,i){if(!(r instanceof n))throw new TypeError("a Range is required");return this.set.some(c=>omt(c,i)&&r.set.some(u=>omt(u,i)&&c.every(_=>u.every(g=>_.intersects(g,i)))))}test(r){if(!r)return!1;if(typeof r=="string")try{r=new Eur(r,this.options)}catch{return!1}for(let i=0;i<this.set.length;i++)if(Vur(this.set[i],r,this.options))return!0;return!1}};cmt.exports=hMe;var Cur=imt(),smt=new Cur,Iur=Lve(),yMe=Bne(),gm=Lne(),Eur=bb(),{safeRe:vx,t:WD,comparatorTrimReplace:Aur,tildeTrimReplace:wur,caretTrimReplace:kur}=_z(),{FLAG_INCLUDE_PRERELEASE:Pur,FLAG_LOOSE:Nur}=Mne(),amt=n=>n.value==="<0.0.0-0",Our=n=>n.value==="",omt=(n,r)=>{let i=!0,c=n.slice(),u=c.pop();for(;i&&c.length;)i=c.every(_=>u.intersects(_,r)),u=c.pop();return i},Fur=(n,r)=>(gm("comp",n,r),n=Lur(n,r),gm("caret",n),n=Rur(n,r),gm("tildes",n),n=Bur(n,r),gm("xrange",n),n=$ur(n,r),gm("stars",n),n),zD=n=>!n||n.toLowerCase()==="x"||n==="*",Rur=(n,r)=>n.trim().split(/\s+/).map(i=>Mur(i,r)).join(" "),Mur=(n,r)=>{let i=r.loose?vx[WD.TILDELOOSE]:vx[WD.TILDE];return n.replace(i,(c,u,_,g,x)=>{gm("tilde",n,c,u,_,g,x);let E;return zD(u)?E="":zD(_)?E=`>=${u}.0.0 <${+u+1}.0.0-0`:zD(g)?E=`>=${u}.${_}.0 <${u}.${+_+1}.0-0`:x?(gm("replaceTilde pr",x),E=`>=${u}.${_}.${g}-${x} <${u}.${+_+1}.0-0`):E=`>=${u}.${_}.${g} <${u}.${+_+1}.0-0`,gm("tilde return",E),E})},Lur=(n,r)=>n.trim().split(/\s+/).map(i=>jur(i,r)).join(" "),jur=(n,r)=>{gm("caret",n,r);let i=r.loose?vx[WD.CARETLOOSE]:vx[WD.CARET],c=r.includePrerelease?"-0":"";return n.replace(i,(u,_,g,x,E)=>{gm("caret",n,u,_,g,x,E);let w;return zD(_)?w="":zD(g)?w=`>=${_}.0.0${c} <${+_+1}.0.0-0`:zD(x)?_==="0"?w=`>=${_}.${g}.0${c} <${_}.${+g+1}.0-0`:w=`>=${_}.${g}.0${c} <${+_+1}.0.0-0`:E?(gm("replaceCaret pr",E),_==="0"?g==="0"?w=`>=${_}.${g}.${x}-${E} <${_}.${g}.${+x+1}-0`:w=`>=${_}.${g}.${x}-${E} <${_}.${+g+1}.0-0`:w=`>=${_}.${g}.${x}-${E} <${+_+1}.0.0-0`):(gm("no pr"),_==="0"?g==="0"?w=`>=${_}.${g}.${x}${c} <${_}.${g}.${+x+1}-0`:w=`>=${_}.${g}.${x}${c} <${_}.${+g+1}.0-0`:w=`>=${_}.${g}.${x} <${+_+1}.0.0-0`),gm("caret return",w),w})},Bur=(n,r)=>(gm("replaceXRanges",n,r),n.split(/\s+/).map(i=>qur(i,r)).join(" ")),qur=(n,r)=>{n=n.trim();let i=r.loose?vx[WD.XRANGELOOSE]:vx[WD.XRANGE];return n.replace(i,(c,u,_,g,x,E)=>{gm("xRange",n,c,u,_,g,x,E);let w=zD(_),L=w||zD(g),U=L||zD(x),Q=U;return u==="="&&Q&&(u=""),E=r.includePrerelease?"-0":"",w?u===">"||u==="<"?c="<0.0.0-0":c="*":u&&Q?(L&&(g=0),x=0,u===">"?(u=">=",L?(_=+_+1,g=0,x=0):(g=+g+1,x=0)):u==="<="&&(u="<",L?_=+_+1:g=+g+1),u==="<"&&(E="-0"),c=`${u+_}.${g}.${x}${E}`):L?c=`>=${_}.0.0${E} <${+_+1}.0.0-0`:U&&(c=`>=${_}.${g}.0${E} <${_}.${+g+1}.0-0`),gm("xRange return",c),c})},$ur=(n,r)=>(gm("replaceStars",n,r),n.trim().replace(vx[WD.STAR],"")),Jur=(n,r)=>(gm("replaceGTE0",n,r),n.trim().replace(vx[r.includePrerelease?WD.GTE0PRE:WD.GTE0],"")),Uur=n=>(r,i,c,u,_,g,x,E,w,L,U,Q)=>(zD(c)?i="":zD(u)?i=`>=${c}.0.0${n?"-0":""}`:zD(_)?i=`>=${c}.${u}.0${n?"-0":""}`:g?i=`>=${i}`:i=`>=${i}${n?"-0":""}`,zD(w)?E="":zD(L)?E=`<${+w+1}.0.0-0`:zD(U)?E=`<${w}.${+L+1}.0-0`:Q?E=`<=${w}.${L}.${U}-${Q}`:n?E=`<${w}.${L}.${+U+1}-0`:E=`<=${E}`,`${i} ${E}`.trim()),Vur=(n,r,i)=>{for(let c=0;c<n.length;c++)if(!n[c].test(r))return!1;if(r.prerelease.length&&!i.includePrerelease){for(let c=0;c<n.length;c++)if(gm(n[c].semver),n[c].semver!==yMe.ANY&&n[c].semver.prerelease.length>0){let u=n[c].semver;if(u.major===r.major&&u.minor===r.minor&&u.patch===r.patch)return!0}return!1}return!0}});var Bne=Ve((Jzr,dmt)=>{var qne=Symbol("SemVer ANY"),DMe=class n{static get ANY(){return qne}constructor(r,i){if(i=lmt(i),r instanceof n){if(r.loose===!!i.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),bMe("comparator",r,i),this.options=i,this.loose=!!i.loose,this.parse(r),this.semver===qne?this.value="":this.value=this.operator+this.semver.version,bMe("comp",this)}parse(r){let i=this.options.loose?umt[fmt.COMPARATORLOOSE]:umt[fmt.COMPARATOR],c=r.match(i);if(!c)throw new TypeError(`Invalid comparator: ${r}`);this.operator=c[1]!==void 0?c[1]:"",this.operator==="="&&(this.operator=""),c[2]?this.semver=new pmt(c[2],this.options.loose):this.semver=qne}toString(){return this.value}test(r){if(bMe("Comparator.test",r,this.options.loose),this.semver===qne||r===qne)return!0;if(typeof r=="string")try{r=new pmt(r,this.options)}catch{return!1}return vMe(r,this.operator,this.semver,this.options)}intersects(r,i){if(!(r instanceof n))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new _mt(r.value,i).test(this.value):r.operator===""?r.value===""?!0:new _mt(this.value,i).test(r.semver):(i=lmt(i),i.includePrerelease&&(this.value==="<0.0.0-0"||r.value==="<0.0.0-0")||!i.includePrerelease&&(this.value.startsWith("<0.0.0")||r.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&r.operator.startsWith(">")||this.operator.startsWith("<")&&r.operator.startsWith("<")||this.semver.version===r.semver.version&&this.operator.includes("=")&&r.operator.includes("=")||vMe(this.semver,"<",r.semver,i)&&this.operator.startsWith(">")&&r.operator.startsWith("<")||vMe(this.semver,">",r.semver,i)&&this.operator.startsWith("<")&&r.operator.startsWith(">")))}};dmt.exports=DMe;var lmt=Lve(),{safeRe:umt,t:fmt}=_z(),vMe=mMe(),bMe=Lne(),pmt=bb(),_mt=KC()});var $ne=Ve((Uzr,mmt)=>{var Wur=KC(),zur=(n,r,i)=>{try{r=new Wur(r,i)}catch{return!1}return r.test(n)};mmt.exports=zur});var hmt=Ve((Vzr,gmt)=>{var Gur=KC(),Hur=(n,r)=>new Gur(n,r).set.map(i=>i.map(c=>c.value).join(" ").trim().split(" "));gmt.exports=Hur});var vmt=Ve((Wzr,ymt)=>{var Yur=bb(),Xur=KC(),Qur=(n,r,i)=>{let c=null,u=null,_=null;try{_=new Xur(r,i)}catch{return null}return n.forEach(g=>{_.test(g)&&(!c||u.compare(g)===-1)&&(c=g,u=new Yur(c,i))}),c};ymt.exports=Qur});var Dmt=Ve((zzr,bmt)=>{var Kur=bb(),Zur=KC(),efr=(n,r,i)=>{let c=null,u=null,_=null;try{_=new Zur(r,i)}catch{return null}return n.forEach(g=>{_.test(g)&&(!c||u.compare(g)===1)&&(c=g,u=new Kur(c,i))}),c};bmt.exports=efr});var Tmt=Ve((Gzr,xmt)=>{var SMe=bb(),tfr=KC(),Smt=jne(),rfr=(n,r)=>{n=new tfr(n,r);let i=new SMe("0.0.0");if(n.test(i)||(i=new SMe("0.0.0-0"),n.test(i)))return i;i=null;for(let c=0;c<n.set.length;++c){let u=n.set[c],_=null;u.forEach(g=>{let x=new SMe(g.semver.version);switch(g.operator){case">":x.prerelease.length===0?x.patch++:x.prerelease.push(0),x.raw=x.format();case"":case">=":(!_||Smt(x,_))&&(_=x);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${g.operator}`)}}),_&&(!i||Smt(i,_))&&(i=_)}return i&&n.test(i)?i:null};xmt.exports=rfr});var Imt=Ve((Hzr,Cmt)=>{var nfr=KC(),ifr=(n,r)=>{try{return new nfr(n,r).range||"*"}catch{return null}};Cmt.exports=ifr});var zve=Ve((Yzr,kmt)=>{var sfr=bb(),wmt=Bne(),{ANY:afr}=wmt,ofr=KC(),cfr=$ne(),Emt=jne(),Amt=$ve(),lfr=Uve(),ufr=Jve(),ffr=(n,r,i,c)=>{n=new sfr(n,c),r=new ofr(r,c);let u,_,g,x,E;switch(i){case">":u=Emt,_=lfr,g=Amt,x=">",E=">=";break;case"<":u=Amt,_=ufr,g=Emt,x="<",E="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(cfr(n,r,c))return!1;for(let w=0;w<r.set.length;++w){let L=r.set[w],U=null,Q=null;if(L.forEach(oe=>{oe.semver===afr&&(oe=new wmt(">=0.0.0")),U=U||oe,Q=Q||oe,u(oe.semver,U.semver,c)?U=oe:g(oe.semver,Q.semver,c)&&(Q=oe)}),U.operator===x||U.operator===E||(!Q.operator||Q.operator===x)&&_(n,Q.semver))return!1;if(Q.operator===E&&g(n,Q.semver))return!1}return!0};kmt.exports=ffr});var Nmt=Ve((Xzr,Pmt)=>{var pfr=zve(),_fr=(n,r,i)=>pfr(n,r,">",i);Pmt.exports=_fr});var Fmt=Ve((Qzr,Omt)=>{var dfr=zve(),mfr=(n,r,i)=>dfr(n,r,"<",i);Omt.exports=mfr});var Lmt=Ve((Kzr,Mmt)=>{var Rmt=KC(),gfr=(n,r,i)=>(n=new Rmt(n,i),r=new Rmt(r,i),n.intersects(r,i));Mmt.exports=gfr});var Bmt=Ve((Zzr,jmt)=>{var hfr=$ne(),yfr=QC();jmt.exports=(n,r,i)=>{let c=[],u=null,_=null,g=n.sort((L,U)=>yfr(L,U,i));for(let L of g)hfr(L,r,i)?(_=L,u||(u=L)):(_&&c.push([u,_]),_=null,u=null);u&&c.push([u,null]);let x=[];for(let[L,U]of c)L===U?x.push(L):!U&&L===g[0]?x.push("*"):U?L===g[0]?x.push(`<=${U}`):x.push(`${L} - ${U}`):x.push(`>=${L}`);let E=x.join(" || "),w=typeof r.raw=="string"?r.raw:String(r);return E.length<w.length?E:r}});var Wmt=Ve((eGr,Vmt)=>{var qmt=KC(),TMe=Bne(),{ANY:xMe}=TMe,Jne=$ne(),CMe=QC(),vfr=(n,r,i={})=>{if(n===r)return!0;n=new qmt(n,i),r=new qmt(r,i);let c=!1;e:for(let u of n.set){for(let _ of r.set){let g=Dfr(u,_,i);if(c=c||g!==null,g)continue e}if(c)return!1}return!0},bfr=[new TMe(">=0.0.0-0")],$mt=[new TMe(">=0.0.0")],Dfr=(n,r,i)=>{if(n===r)return!0;if(n.length===1&&n[0].semver===xMe){if(r.length===1&&r[0].semver===xMe)return!0;i.includePrerelease?n=bfr:n=$mt}if(r.length===1&&r[0].semver===xMe){if(i.includePrerelease)return!0;r=$mt}let c=new Set,u,_;for(let oe of n)oe.operator===">"||oe.operator===">="?u=Jmt(u,oe,i):oe.operator==="<"||oe.operator==="<="?_=Umt(_,oe,i):c.add(oe.semver);if(c.size>1)return null;let g;if(u&&_){if(g=CMe(u.semver,_.semver,i),g>0)return null;if(g===0&&(u.operator!==">="||_.operator!=="<="))return null}for(let oe of c){if(u&&!Jne(oe,String(u),i)||_&&!Jne(oe,String(_),i))return null;for(let ge of r)if(!Jne(oe,String(ge),i))return!1;return!0}let x,E,w,L,U=_&&!i.includePrerelease&&_.semver.prerelease.length?_.semver:!1,Q=u&&!i.includePrerelease&&u.semver.prerelease.length?u.semver:!1;U&&U.prerelease.length===1&&_.operator==="<"&&U.prerelease[0]===0&&(U=!1);for(let oe of r){if(L=L||oe.operator===">"||oe.operator===">=",w=w||oe.operator==="<"||oe.operator==="<=",u){if(Q&&oe.semver.prerelease&&oe.semver.prerelease.length&&oe.semver.major===Q.major&&oe.semver.minor===Q.minor&&oe.semver.patch===Q.patch&&(Q=!1),oe.operator===">"||oe.operator===">="){if(x=Jmt(u,oe,i),x===oe&&x!==u)return!1}else if(u.operator===">="&&!Jne(u.semver,String(oe),i))return!1}if(_){if(U&&oe.semver.prerelease&&oe.semver.prerelease.length&&oe.semver.major===U.major&&oe.semver.minor===U.minor&&oe.semver.patch===U.patch&&(U=!1),oe.operator==="<"||oe.operator==="<="){if(E=Umt(_,oe,i),E===oe&&E!==_)return!1}else if(_.operator==="<="&&!Jne(_.semver,String(oe),i))return!1}if(!oe.operator&&(_||u)&&g!==0)return!1}return!(u&&w&&!_&&g!==0||_&&L&&!u&&g!==0||Q||U)},Jmt=(n,r,i)=>{if(!n)return r;let c=CMe(n.semver,r.semver,i);return c>0?n:c<0||r.operator===">"&&n.operator===">="?r:n},Umt=(n,r,i)=>{if(!n)return r;let c=CMe(n.semver,r.semver,i);return c<0?n:c>0||r.operator==="<"&&n.operator==="<="?r:n};Vmt.exports=vfr});var Ymt=Ve((tGr,Hmt)=>{var IMe=_z(),zmt=Mne(),Sfr=bb(),Gmt=fMe(),xfr=M9(),Tfr=vdt(),Cfr=Ddt(),Ifr=Tdt(),Efr=Edt(),Afr=wdt(),wfr=Pdt(),kfr=Odt(),Pfr=Rdt(),Nfr=QC(),Ofr=Bdt(),Ffr=$dt(),Rfr=qve(),Mfr=Wdt(),Lfr=Gdt(),jfr=jne(),Bfr=$ve(),qfr=_Me(),$fr=dMe(),Jfr=Jve(),Ufr=Uve(),Vfr=mMe(),Wfr=rmt(),zfr=Bne(),Gfr=KC(),Hfr=$ne(),Yfr=hmt(),Xfr=vmt(),Qfr=Dmt(),Kfr=Tmt(),Zfr=Imt(),epr=zve(),tpr=Nmt(),rpr=Fmt(),npr=Lmt(),ipr=Bmt(),spr=Wmt();Hmt.exports={parse:xfr,valid:Tfr,clean:Cfr,inc:Ifr,diff:Efr,major:Afr,minor:wfr,patch:kfr,prerelease:Pfr,compare:Nfr,rcompare:Ofr,compareLoose:Ffr,compareBuild:Rfr,sort:Mfr,rsort:Lfr,gt:jfr,lt:Bfr,eq:qfr,neq:$fr,gte:Jfr,lte:Ufr,cmp:Vfr,coerce:Wfr,Comparator:zfr,Range:Gfr,satisfies:Hfr,toComparators:Yfr,maxSatisfying:Xfr,minSatisfying:Qfr,minVersion:Kfr,validRange:Zfr,outside:epr,gtr:tpr,ltr:rpr,intersects:npr,simplifyRange:ipr,subset:spr,SemVer:Sfr,re:IMe.re,src:IMe.src,tokens:IMe.t,SEMVER_SPEC_VERSION:zmt.SEMVER_SPEC_VERSION,RELEASE_TYPES:zmt.RELEASE_TYPES,compareIdentifiers:Gmt.compareIdentifiers,rcompareIdentifiers:Gmt.rcompareIdentifiers}});var _P=Ve(CF=>{"use strict";Object.defineProperty(CF,"__esModule",{value:!0});CF.fileExists=CF.dirExists=void 0;CF.readJson=Xmt;CF.safeReadJson=upr;CF.existsSync=fpr;var apr=require("node:fs"),wMe=require("node:fs/promises"),opr=Ty(),cpr=async n=>{let r;try{r=await(0,wMe.stat)(n)}catch{throw new Error(`No directory found at ${n}`)}if(!r.isDirectory())throw new Error(`${n} exists but is not a directory`);return n};CF.dirExists=cpr;var lpr=async n=>{let r;try{r=await(0,wMe.stat)(n)}catch{throw new Error(`No file found at ${n}`)}if(!r.isFile())throw new Error(`${n} exists but is not a file`);return n};CF.fileExists=lpr;var AMe=class extends Map{set(r,i){return((0,opr.isProd)()??!1)&&super.set(r,i),this}},EMe=new AMe;async function Xmt(n,r=!0){if(r&&EMe.has(n))return JSON.parse(EMe.get(n));let i=await(0,wMe.readFile)(n,"utf8");return EMe.set(n,i),JSON.parse(i)}async function upr(n,r=!0){try{return await Xmt(n,r)}catch{}}function fpr(n){return(0,apr.existsSync)(n)}});var Kmt=Ve(GD=>{"use strict";Object.defineProperty(GD,"__esModule",{value:!0});GD.string=GD.url=GD.file=GD.directory=GD.integer=GD.boolean=void 0;GD.custom=L9;var ppr=require("node:url"),Qmt=_P(),_pr=Ty();function L9(n){return(r={})=>({parse:async(i,c,u)=>i,...n,...r,input:[],type:"option"})}GD.boolean=L9({parse:async n=>!!n&&(0,_pr.isNotFalsy)(n)});GD.integer=L9({async parse(n,r,i){if(!/^-?\d+$/.test(n))throw new Error(`Expected an integer but received: ${n}`);let c=Number.parseInt(n,10);if(i.min!==void 0&&c<i.min)throw new Error(`Expected an integer greater than or equal to ${i.min} but received: ${n}`);if(i.max!==void 0&&c>i.max)throw new Error(`Expected an integer less than or equal to ${i.max} but received: ${n}`);return c}});GD.directory=L9({async parse(n,r,i){return i.exists?(0,Qmt.dirExists)(n):n}});GD.file=L9({async parse(n,r,i){return i.exists?(0,Qmt.fileExists)(n):n}});GD.url=L9({async parse(n){try{return new ppr.URL(n)}catch{throw new Error(`Expected a valid url but received: ${n}`)}}});var dpr=L9({});GD.string=dpr});var Zmt=Ve((iGr,mpr)=>{mpr.exports={name:"@oclif/core",description:"base library for oclif CLIs",version:"4.2.6",author:"Salesforce",bugs:"https://github.com/oclif/core/issues",dependencies:{"ansi-escapes":"^4.3.2",ansis:"^3.10.0","clean-stack":"^3.0.1","cli-spinners":"^2.9.2",debug:"^4.4.0",ejs:"^3.1.10","get-package-type":"^0.1.0",globby:"^11.1.0","indent-string":"^4.0.0","is-wsl":"^2.2.0",lilconfig:"^3.1.3",minimatch:"^9.0.5",semver:"^7.6.3","string-width":"^4.2.3","supports-color":"^8","widest-line":"^3.1.0",wordwrap:"^1.0.0","wrap-ansi":"^7.0.0"},devDependencies:{"@commitlint/config-conventional":"^19","@eslint/compat":"^1.2.5","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^5","@oclif/prettier-config":"^0.2.1","@oclif/test":"^4","@types/benchmark":"^2.1.5","@types/chai":"^4.3.16","@types/chai-as-promised":"^7.1.8","@types/clean-stack":"^2.1.1","@types/debug":"^4.1.10","@types/ejs":"^3.1.5","@types/indent-string":"^4.0.1","@types/mocha":"^10.0.10","@types/node":"^18","@types/pnpapi":"^0.0.5","@types/sinon":"^17.0.3","@types/supports-color":"^8.1.3","@types/wordwrap":"^1.0.3","@types/wrap-ansi":"^3.0.0",benchmark:"^2.1.4",chai:"^4.5.0","chai-as-promised":"^7.1.2",commitlint:"^19","cross-env":"^7.0.3",eslint:"^9","eslint-config-oclif":"^6","eslint-config-prettier":"^10",husky:"^9.1.7","lint-staged":"^15",madge:"^6.1.0",mocha:"^10.8.2",nyc:"^15.1.0",prettier:"^3.4.2",shx:"^0.3.4",sinon:"^18","ts-node":"^10.9.2",tsd:"^0.31.2",typescript:"^5"},engines:{node:">=18.0.0"},files:["/lib"],homepage:"https://github.com/oclif/core",keywords:["oclif","cli","command","command line","parser","args","argv"],license:"MIT",exports:{".":"./lib/index.js","./args":"./lib/args.js","./command":"./lib/command.js","./config":"./lib/config/index.js","./errors":"./lib/errors/index.js","./execute":"./lib/execute.js","./flags":"./lib/flags.js","./flush":"./lib/flush.js","./handle":"./lib/errors/handle.js","./help":"./lib/help/index.js","./hooks":"./lib/interfaces/hooks.js","./interfaces":"./lib/interfaces/index.js","./logger":"./lib/logger.js","./package.json":"./package.json","./parser":"./lib/parser/index.js","./performance":"./lib/performance.js","./run":"./lib/main.js","./settings":"./lib/settings.js","./util/ids":"./lib/util/ids.js","./ux":"./lib/ux/index.js"},repository:"oclif/core",oclif:{bin:"oclif",devPlugins:["@oclif/plugin-help","@oclif/plugin-plugins"]},publishConfig:{access:"public"},scripts:{build:"shx rm -rf lib && tsc",compile:"tsc",format:'prettier --write "+(src|test)/**/*.+(ts|js|json)"',lint:"eslint",posttest:"yarn lint && yarn test:circular-deps",prepack:"yarn run build",prepare:"husky","test:circular-deps":"yarn build && madge lib/ -c","test:debug":'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',"test:integration":'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',"test:interoperability":"cross-env DEBUG=integration:* ts-node test/integration/interop.ts","test:perf":"ts-node test/perf/parser.perf.ts",test:'nyc mocha --forbid-only "test/**/*.test.ts" --parallel'},types:"lib/index.d.ts"}});var gA=Ve(PMe=>{"use strict";Object.defineProperty(PMe,"__esModule",{value:!0});var gpr=require("node:fs"),hpr=require("node:path"),kMe=class n extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return n.instance||(n.instance=new n),n.instance}get(r){return super.get(r)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:Zmt().version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,gpr.readFileSync)((0,hpr.join)(__dirname,"..","package.json"),"utf8")).version}}catch{return{name:"@oclif/core",version:"unknown"}}}}};PMe.default=kMe});var tgt=Ve(ZC=>{"use strict";var ypr=/[|\\{}()[\]^$+*?.]/g,vpr=Object.prototype.hasOwnProperty,NMe=function(n,r){return vpr.apply(n,[r])};ZC.escapeRegExpChars=function(n){return n?String(n).replace(ypr,"\\$&"):""};var bpr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},Dpr=/[&<>'"]/g;function Spr(n){return bpr[n]||n}var xpr=`var _ENCODE_HTML_RULES = { "&": "&amp;" , "<": "&lt;" , ">": "&gt;" , '"': "&#34;" , "'": "&#39;" } , _MATCH_HTML = /[&<>'"]/g; function encode_char(c) { return _ENCODE_HTML_RULES[c] || c; }; `;ZC.escapeXML=function(n){return n==null?"":String(n).replace(Dpr,Spr)};function egt(){return Function.prototype.toString.call(this)+`; `+xpr}try{typeof Object.defineProperty=="function"?Object.defineProperty(ZC.escapeXML,"toString",{value:egt}):ZC.escapeXML.toString=egt}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}ZC.shallowCopy=function(n,r){if(r=r||{},n!=null)for(var i in r)NMe(r,i)&&(i==="__proto__"||i==="constructor"||(n[i]=r[i]));return n};ZC.shallowCopyFromList=function(n,r,i){if(i=i||[],r=r||{},n!=null)for(var c=0;c<i.length;c++){var u=i[c];if(typeof r[u]<"u"){if(!NMe(r,u)||u==="__proto__"||u==="constructor")continue;n[u]=r[u]}}return n};ZC.cache={_data:{},set:function(n,r){this._data[n]=r},get:function(n){return this._data[n]},remove:function(n){delete this._data[n]},reset:function(){this._data={}}};ZC.hyphenToCamel=function(n){return n.replace(/-[a-z]/g,function(r){return r[1].toUpperCase()})};ZC.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();ZC.hasOwnOnlyObject=function(n){var r=ZC.createNullProtoObjWherePossible();for(var i in n)NMe(n,i)&&(r[i]=n[i]);return r}});var rgt=Ve((oGr,Tpr)=>{Tpr.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.10",author:"Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",license:"Apache-2.0",bin:{ejs:"./bin/cli.js"},main:"./lib/ejs.js",jsdelivr:"ejs.min.js",unpkg:"ejs.min.js",repository:{type:"git",url:"git://github.com/mde/ejs.git"},bugs:"https://github.com/mde/ejs/issues",homepage:"https://github.com/mde/ejs",dependencies:{jake:"^10.8.5"},devDependencies:{browserify:"^16.5.1",eslint:"^6.8.0","git-directory-deploy":"^1.5.1",jsdoc:"^4.0.2","lru-cache":"^4.0.1",mocha:"^10.2.0","uglify-js":"^3.3.16"},engines:{node:">=0.10.0"},scripts:{test:"npx jake test"}}});var RMe=Ve(t_=>{"use strict";var FMe=require("fs"),Une=require("path"),zh=tgt(),ngt=!1,Cpr=rgt().version,Ipr="<",Epr=">",Apr="%",lgt="locals",wpr="ejs",kpr="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",ugt=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],Ppr=ugt.concat("cache"),igt=/^\uFEFF/,OMe=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;t_.cache=zh.cache;t_.fileLoader=FMe.readFileSync;t_.localsName=lgt;t_.promiseImpl=new Function("return this;")().Promise;t_.resolveInclude=function(n,r,i){var c=Une.dirname,u=Une.extname,_=Une.resolve,g=_(i?r:c(r),n),x=u(n);return x||(g+=".ejs"),g};function sgt(n,r){var i;if(r.some(function(c){return i=t_.resolveInclude(n,c,!0),FMe.existsSync(i)}))return i}function Npr(n,r){var i,c,u=r.views,_=/^[A-Za-z]+:\\|^\//.exec(n);if(_&&_.length)n=n.replace(/^\/*/,""),Array.isArray(r.root)?i=sgt(n,r.root):i=t_.resolveInclude(n,r.root||"/",!0);else if(r.filename&&(c=t_.resolveInclude(n,r.filename),FMe.existsSync(c)&&(i=c)),!i&&Array.isArray(u)&&(i=sgt(n,u)),!i&&typeof r.includer!="function")throw new Error('Could not find the include file "'+r.escapeFunction(n)+'"');return i}function Vne(n,r){var i,c=n.filename,u=arguments.length>1;if(n.cache){if(!c)throw new Error("cache option requires a filename");if(i=t_.cache.get(c),i)return i;u||(r=agt(c).toString().replace(igt,""))}else if(!u){if(!c)throw new Error("Internal EJS error: no file name or template provided");r=agt(c).toString().replace(igt,"")}return i=t_.compile(r,n),n.cache&&t_.cache.set(c,i),i}function Opr(n,r,i){var c;if(i){try{c=Vne(n)(r)}catch(u){return i(u)}i(null,c)}else{if(typeof t_.promiseImpl=="function")return new t_.promiseImpl(function(u,_){try{c=Vne(n)(r),u(c)}catch(g){_(g)}});throw new Error("Please provide a callback function")}}function agt(n){return t_.fileLoader(n)}function Fpr(n,r){var i=zh.shallowCopy(zh.createNullProtoObjWherePossible(),r);if(i.filename=Npr(n,i),typeof r.includer=="function"){var c=r.includer(n,i.filename);if(c&&(c.filename&&(i.filename=c.filename),c.template))return Vne(i,c.template)}return Vne(i)}function ogt(n,r,i,c,u){var _=r.split(` `),g=Math.max(c-3,0),x=Math.min(_.length,c+3),E=u(i),w=_.slice(g,x).map(function(L,U){var Q=U+g+1;return(Q==c?" >> ":" ")+Q+"| "+L}).join(` `);throw n.path=E,n.message=(E||"ejs")+":"+c+` `+w+` `+n.message,n}function cgt(n){return n.replace(/;(\s*$)/,"$1")}t_.compile=function(r,i){var c;return i&&i.scope&&(ngt||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),ngt=!0),i.context||(i.context=i.scope),delete i.scope),c=new _0(r,i),c.compile()};t_.render=function(n,r,i){var c=r||zh.createNullProtoObjWherePossible(),u=i||zh.createNullProtoObjWherePossible();return arguments.length==2&&zh.shallowCopyFromList(u,c,ugt),Vne(u,n)(c)};t_.renderFile=function(){var n=Array.prototype.slice.call(arguments),r=n.shift(),i,c={filename:r},u,_;return typeof arguments[arguments.length-1]=="function"&&(i=n.pop()),n.length?(u=n.shift(),n.length?zh.shallowCopy(c,n.pop()):(u.settings&&(u.settings.views&&(c.views=u.settings.views),u.settings["view cache"]&&(c.cache=!0),_=u.settings["view options"],_&&zh.shallowCopy(c,_)),zh.shallowCopyFromList(c,u,Ppr)),c.filename=r):u=zh.createNullProtoObjWherePossible(),Opr(c,u,i)};t_.Template=_0;t_.clearCache=function(){t_.cache.reset()};function _0(n,r){var i=zh.hasOwnOnlyObject(r),c=zh.createNullProtoObjWherePossible();this.templateText=n,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",c.client=i.client||!1,c.escapeFunction=i.escape||i.escapeFunction||zh.escapeXML,c.compileDebug=i.compileDebug!==!1,c.debug=!!i.debug,c.filename=i.filename,c.openDelimiter=i.openDelimiter||t_.openDelimiter||Ipr,c.closeDelimiter=i.closeDelimiter||t_.closeDelimiter||Epr,c.delimiter=i.delimiter||t_.delimiter||Apr,c.strict=i.strict||!1,c.context=i.context,c.cache=i.cache||!1,c.rmWhitespace=i.rmWhitespace,c.root=i.root,c.includer=i.includer,c.outputFunctionName=i.outputFunctionName,c.localsName=i.localsName||t_.localsName||lgt,c.views=i.views,c.async=i.async,c.destructuredLocals=i.destructuredLocals,c.legacyInclude=typeof i.legacyInclude<"u"?!!i.legacyInclude:!0,c.strict?c._with=!1:c._with=typeof i._with<"u"?i._with:!0,this.opts=c,this.regex=this.createRegex()}_0.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};_0.prototype={createRegex:function(){var n=kpr,r=zh.escapeRegExpChars(this.opts.delimiter),i=zh.escapeRegExpChars(this.opts.openDelimiter),c=zh.escapeRegExpChars(this.opts.closeDelimiter);return n=n.replace(/%/g,r).replace(/</g,i).replace(/>/g,c),new RegExp(n)},compile:function(){var n,r,i=this.opts,c="",u="",_=i.escapeFunction,g,x=i.filename?JSON.stringify(i.filename):"undefined";if(!this.source){if(this.generateSource(),c+=` var __output = ""; function __append(s) { if (s !== undefined && s !== null) __output += s } `,i.outputFunctionName){if(!OMe.test(i.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");c+=" var "+i.outputFunctionName+` = __append; `}if(i.localsName&&!OMe.test(i.localsName))throw new Error("localsName is not a valid JS identifier.");if(i.destructuredLocals&&i.destructuredLocals.length){for(var E=" var __locals = ("+i.localsName+` || {}), `,w=0;w<i.destructuredLocals.length;w++){var L=i.destructuredLocals[w];if(!OMe.test(L))throw new Error("destructuredLocals["+w+"] is not a valid JS identifier.");w>0&&(E+=`, `),E+=L+" = __locals."+L}c+=E+`; `}i._with!==!1&&(c+=" with ("+i.localsName+` || {}) { `,u+=` } `),u+=` return __output; `,this.source=c+this.source+u}i.compileDebug?n=`var __line = 1 , __lines = `+JSON.stringify(this.templateText)+` , __filename = `+x+`; try { `+this.source+`} catch (e) { rethrow(e, __lines, __filename, __line, escapeFn); } `:n=this.source,i.client&&(n="escapeFn = escapeFn || "+_.toString()+`; `+n,i.compileDebug&&(n="rethrow = rethrow || "+ogt.toString()+`; `+n)),i.strict&&(n=`"use strict"; `+n),i.debug&&console.log(n),i.compileDebug&&i.filename&&(n=n+` //# sourceURL=`+x+` `);try{if(i.async)try{g=new Function("return (async function(){}).constructor;")()}catch(ge){throw ge instanceof SyntaxError?new Error("This environment does not support async/await"):ge}else g=Function;r=new g(i.localsName+", escapeFn, include, rethrow",n)}catch(ge){throw ge instanceof SyntaxError&&(i.filename&&(ge.message+=" in "+i.filename),ge.message+=` while compiling ejs `,ge.message+=`If the above error is not helpful, you may want to try EJS-Lint: `,ge.message+="https://github.com/RyanZim/EJS-Lint",i.async||(ge.message+=` `,ge.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),ge}var U=i.client?r:function(Ae){var Xe=function(He,it){var vt=zh.shallowCopy(zh.createNullProtoObjWherePossible(),Ae);return it&&(vt=zh.shallowCopy(vt,it)),Fpr(He,i)(vt)};return r.apply(i.context,[Ae||zh.createNullProtoObjWherePossible(),_,Xe,ogt])};if(i.filename&&typeof Object.defineProperty=="function"){var Q=i.filename,oe=Une.basename(Q,Une.extname(Q));try{Object.defineProperty(U,"name",{value:oe,writable:!1,enumerable:!1,configurable:!0})}catch{}}return U},generateSource:function(){var n=this.opts;n.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,` `).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(