updates 13.1.11 → 13.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/updates.js +2 -2
- package/package.json +1 -4
package/bin/updates.js
CHANGED
|
@@ -66,7 +66,7 @@ Content-Type: ${n.type||"application/octet-stream"}\r
|
|
|
66
66
|
`)n=!1,g+=l(A,o,u),o=u;else if(!n&&t+r==="/*"){g+=A.slice(o,u),o=u,n=sf,u++;continue}else if(n===sf&&t+r==="*/"){u++,n=!1,g+=l(A,o,u+1),o=u+1;continue}}}return g+(n?l(A.substr(o)):A.substr(o))}});var lf=y(pi=>{"use strict";var gf=L("fs"),gN=nf(),Xn=L("path"),lN=af(),cN=pi.parse=function(A){return/^\s*{/.test(A)?JSON.parse(lN(A)):gN.parse(A)},uN=pi.file=function(){var A=[].slice.call(arguments).filter(function(i){return i!=null});for(var e in A)if(typeof A[e]!="string")return;var t=Xn.join.apply(null,A),r;try{return gf.readFileSync(t,"utf-8")}catch{return}},AJ=pi.json=function(){var A=uN.apply(null,arguments);return A?cN(A):null},tJ=pi.env=function(A,e){e=e||process.env;var t={},r=A.length;for(var i in e)if(i.toLowerCase().indexOf(A.toLowerCase())===0){for(var n=i.substring(r).split("__"),o;(o=n.indexOf(""))>-1;)n.splice(o,1);var g=t;n.forEach(function(u,h){!u||typeof g!="object"||(h===n.length-1&&(g[u]=e[i]),g[u]===void 0&&(g[u]={}),g=g[u])})}return t},rJ=pi.find=function(){var A=Xn.join.apply(null,[].slice.call(arguments));function e(t,r){var i=Xn.join(t,r);try{return gf.statSync(i),i}catch{if(Xn.dirname(t)!==t)return e(Xn.dirname(t),r)}}return e(process.cwd(),A)}});var Cf=y((nJ,Ef)=>{"use strict";function uf(A){return A instanceof Buffer||A instanceof Date||A instanceof RegExp}function hf(A){if(A instanceof Buffer){var e=Buffer.alloc?Buffer.alloc(A.length):new Buffer(A.length);return A.copy(e),e}else{if(A instanceof Date)return new Date(A.getTime());if(A instanceof RegExp)return new RegExp(A);throw new Error("Unexpected situation")}}function If(A){var e=[];return A.forEach(function(t,r){typeof t=="object"&&t!==null?Array.isArray(t)?e[r]=If(t):uf(t)?e[r]=hf(t):e[r]=wc({},t):e[r]=t}),e}function cf(A,e){return e==="__proto__"?void 0:A[e]}var wc=Ef.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var A=arguments[0],e=Array.prototype.slice.call(arguments,1),t,r,i;return e.forEach(function(n){typeof n!="object"||n===null||Array.isArray(n)||Object.keys(n).forEach(function(o){if(r=cf(A,o),t=cf(n,o),t!==A)if(typeof t!="object"||t===null){A[o]=t;return}else if(Array.isArray(t)){A[o]=If(t);return}else if(uf(t)){A[o]=hf(t);return}else if(typeof r!="object"||r===null||Array.isArray(r)){A[o]=wc({},t);return}else{A[o]=wc(r,t);return}})}),A}});var ta=y((sJ,ff)=>{var es=lf(),yi=L("path").join,hN=Cf(),Qf="/etc",Bf=process.platform==="win32",As=Bf?process.env.USERPROFILE:process.env.HOME;ff.exports=function(A,e,t,r){if(typeof A!="string")throw new Error("rc(name): name *must* be string");t||(t=lc()(process.argv.slice(2))),e=(typeof e=="string"?es.json(e):e)||{},r=r||es.parse;var i=es.env(A+"_"),n=[e],o=[];function g(l){if(!(o.indexOf(l)>=0)){var u=es.file(l);u&&(n.push(r(u)),o.push(l))}}return Bf||[yi(Qf,A,"config"),yi(Qf,A+"rc")].forEach(g),As&&[yi(As,".config",A,"config"),yi(As,".config",A),yi(As,"."+A,"config"),yi(As,"."+A+"rc")].forEach(g),g(es.find("."+A+"rc")),i.config&&g(i.config),t.config&&g(t.config),hN.apply(null,n.concat([i,t,o.length?{configs:o,config:o[o.length-1]}:void 0]))}});var Df=y((oJ,Rf)=>{var mc=L("url"),mf=ef(),IN=mf.decodeBase64,EN=mf.encodeBase64,df=":_authToken",pf=":_auth",yf=":username",wf=":_password";Rf.exports=function(){var A,e;return arguments.length>=2?(A=arguments[0],e=arguments[1]):typeof arguments[0]=="string"?A=arguments[0]:e=arguments[0],e=e||{},e.npmrc=e.npmrc||ta()("npm",{registry:"https://registry.npmjs.org/"},{config:process.env.npm_config_userconfig||process.env.NPM_CONFIG_USERCONFIG}),A=A||e.npmrc.registry,bf(A,e)||CN(e.npmrc)};function bf(A,e){for(var t=mc.parse(A,!1,!0),r;r!=="/"&&t.pathname!==r;){r=t.pathname||"/";var i="//"+t.host+r.replace(/\/$/,""),n=BN(i,e.npmrc);if(n)return n;if(!e.recursive)return/\/$/.test(A)?void 0:bf(mc.resolve(A,"."),e);t.pathname=mc.resolve(QN(r),"..")||"/"}}function CN(A){if(!!A._auth){var e=ra(A._auth);return{token:e,type:"Basic"}}}function QN(A){return A[A.length-1]==="/"?A:A+"/"}function BN(A,e){var t=fN(e[A+df]||e[A+"/"+df]);if(t)return t;var r=e[A+yf]||e[A+"/"+yf],i=e[A+wf]||e[A+"/"+wf],n=dN(r,i);if(n)return n;var o=pN(e[A+pf]||e[A+"/"+pf]);if(o)return o}function ra(A){return A.replace(/^\$\{?([^}]*)\}?$/,function(e,t){return process.env[t]})}function fN(A){if(!!A){var e=ra(A);return{token:e,type:"Bearer"}}}function dN(A,e){if(!(!A||!e)){var t=IN(ra(e)),r=EN(A+":"+t);return{token:r,type:"Basic",password:t,username:A}}}function pN(A){if(!!A){var e=ra(A);return{token:e,type:"Basic"}}}});var kf=y((aJ,Sf)=>{Sf.exports=function(A,e){var t=e||ta()("npm",{registry:"https://registry.npmjs.org/"}),r=t[A+":registry"]||t.registry;return r.slice(-1)==="/"?r:r+"/"}});var ts=y((gJ,Lf)=>{var yN="2.0.0",wN=Number.MAX_SAFE_INTEGER||9007199254740991,mN=16;Lf.exports={SEMVER_SPEC_VERSION:yN,MAX_LENGTH:256,MAX_SAFE_INTEGER:wN,MAX_SAFE_COMPONENT_LENGTH:mN}});var rs=y((lJ,Nf)=>{var bN=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...A)=>console.error("SEMVER",...A):()=>{};Nf.exports=bN});var dr=y((_t,Hf)=>{var{MAX_SAFE_COMPONENT_LENGTH:bc}=ts(),RN=rs();_t=Hf.exports={};var DN=_t.re=[],U=_t.src=[],T=_t.t={},SN=0,x=(A,e,t)=>{let r=SN++;RN(A,r,e),T[A]=r,U[r]=e,DN[r]=new RegExp(e,t?"g":void 0)};x("NUMERICIDENTIFIER","0|[1-9]\\d*");x("NUMERICIDENTIFIERLOOSE","[0-9]+");x("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");x("MAINVERSION",`(${U[T.NUMERICIDENTIFIER]})\\.(${U[T.NUMERICIDENTIFIER]})\\.(${U[T.NUMERICIDENTIFIER]})`);x("MAINVERSIONLOOSE",`(${U[T.NUMERICIDENTIFIERLOOSE]})\\.(${U[T.NUMERICIDENTIFIERLOOSE]})\\.(${U[T.NUMERICIDENTIFIERLOOSE]})`);x("PRERELEASEIDENTIFIER",`(?:${U[T.NUMERICIDENTIFIER]}|${U[T.NONNUMERICIDENTIFIER]})`);x("PRERELEASEIDENTIFIERLOOSE",`(?:${U[T.NUMERICIDENTIFIERLOOSE]}|${U[T.NONNUMERICIDENTIFIER]})`);x("PRERELEASE",`(?:-(${U[T.PRERELEASEIDENTIFIER]}(?:\\.${U[T.PRERELEASEIDENTIFIER]})*))`);x("PRERELEASELOOSE",`(?:-?(${U[T.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${U[T.PRERELEASEIDENTIFIERLOOSE]})*))`);x("BUILDIDENTIFIER","[0-9A-Za-z-]+");x("BUILD",`(?:\\+(${U[T.BUILDIDENTIFIER]}(?:\\.${U[T.BUILDIDENTIFIER]})*))`);x("FULLPLAIN",`v?${U[T.MAINVERSION]}${U[T.PRERELEASE]}?${U[T.BUILD]}?`);x("FULL",`^${U[T.FULLPLAIN]}$`);x("LOOSEPLAIN",`[v=\\s]*${U[T.MAINVERSIONLOOSE]}${U[T.PRERELEASELOOSE]}?${U[T.BUILD]}?`);x("LOOSE",`^${U[T.LOOSEPLAIN]}$`);x("GTLT","((?:<|>)?=?)");x("XRANGEIDENTIFIERLOOSE",`${U[T.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);x("XRANGEIDENTIFIER",`${U[T.NUMERICIDENTIFIER]}|x|X|\\*`);x("XRANGEPLAIN",`[v=\\s]*(${U[T.XRANGEIDENTIFIER]})(?:\\.(${U[T.XRANGEIDENTIFIER]})(?:\\.(${U[T.XRANGEIDENTIFIER]})(?:${U[T.PRERELEASE]})?${U[T.BUILD]}?)?)?`);x("XRANGEPLAINLOOSE",`[v=\\s]*(${U[T.XRANGEIDENTIFIERLOOSE]})(?:\\.(${U[T.XRANGEIDENTIFIERLOOSE]})(?:\\.(${U[T.XRANGEIDENTIFIERLOOSE]})(?:${U[T.PRERELEASELOOSE]})?${U[T.BUILD]}?)?)?`);x("XRANGE",`^${U[T.GTLT]}\\s*${U[T.XRANGEPLAIN]}$`);x("XRANGELOOSE",`^${U[T.GTLT]}\\s*${U[T.XRANGEPLAINLOOSE]}$`);x("COERCE",`(^|[^\\d])(\\d{1,${bc}})(?:\\.(\\d{1,${bc}}))?(?:\\.(\\d{1,${bc}}))?(?:$|[^\\d])`);x("COERCERTL",U[T.COERCE],!0);x("LONETILDE","(?:~>?)");x("TILDETRIM",`(\\s*)${U[T.LONETILDE]}\\s+`,!0);_t.tildeTrimReplace="$1~";x("TILDE",`^${U[T.LONETILDE]}${U[T.XRANGEPLAIN]}$`);x("TILDELOOSE",`^${U[T.LONETILDE]}${U[T.XRANGEPLAINLOOSE]}$`);x("LONECARET","(?:\\^)");x("CARETTRIM",`(\\s*)${U[T.LONECARET]}\\s+`,!0);_t.caretTrimReplace="$1^";x("CARET",`^${U[T.LONECARET]}${U[T.XRANGEPLAIN]}$`);x("CARETLOOSE",`^${U[T.LONECARET]}${U[T.XRANGEPLAINLOOSE]}$`);x("COMPARATORLOOSE",`^${U[T.GTLT]}\\s*(${U[T.LOOSEPLAIN]})$|^$`);x("COMPARATOR",`^${U[T.GTLT]}\\s*(${U[T.FULLPLAIN]})$|^$`);x("COMPARATORTRIM",`(\\s*)${U[T.GTLT]}\\s*(${U[T.LOOSEPLAIN]}|${U[T.XRANGEPLAIN]})`,!0);_t.comparatorTrimReplace="$1$2$3";x("HYPHENRANGE",`^\\s*(${U[T.XRANGEPLAIN]})\\s+-\\s+(${U[T.XRANGEPLAIN]})\\s*$`);x("HYPHENRANGELOOSE",`^\\s*(${U[T.XRANGEPLAINLOOSE]})\\s+-\\s+(${U[T.XRANGEPLAINLOOSE]})\\s*$`);x("STAR","(<|>)?=?\\s*\\*");x("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");x("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var is=y((cJ,Ff)=>{var kN=["includePrerelease","loose","rtl"],LN=A=>A?typeof A!="object"?{loose:!0}:kN.filter(e=>A[e]).reduce((e,t)=>(e[t]=!0,e),{}):{};Ff.exports=LN});var Rc=y((uJ,Tf)=>{var Mf=/^[0-9]+$/,Uf=(A,e)=>{let t=Mf.test(A),r=Mf.test(e);return t&&r&&(A=+A,e=+e),A===e?0:t&&!r?-1:r&&!t?1:A<e?-1:1},NN=(A,e)=>Uf(e,A);Tf.exports={compareIdentifiers:Uf,rcompareIdentifiers:NN}});var Ke=y((hJ,qf)=>{var ia=rs(),{MAX_LENGTH:Jf,MAX_SAFE_INTEGER:na}=ts(),{re:vf,t:Gf}=dr(),HN=is(),{compareIdentifiers:wi}=Rc(),CA=class{constructor(e,t){if(t=HN(t),e instanceof CA){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid Version: ${e}`);if(e.length>Jf)throw new TypeError(`version is longer than ${Jf} characters`);ia("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let r=e.trim().match(t.loose?vf[Gf.LOOSE]:vf[Gf.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>na||this.major<0)throw new TypeError("Invalid major version");if(this.minor>na||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>na||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let n=+i;if(n>=0&&n<na)return n}return i}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(ia("SemVer.compare",this.version,this.options,e),!(e instanceof CA)){if(typeof e=="string"&&e===this.version)return 0;e=new CA(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof CA||(e=new CA(e,this.options)),wi(this.major,e.major)||wi(this.minor,e.minor)||wi(this.patch,e.patch)}comparePre(e){if(e instanceof CA||(e=new CA(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let r=this.prerelease[t],i=e.prerelease[t];if(ia("prerelease compare",t,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return wi(r,i)}while(++t)}compareBuild(e){e instanceof CA||(e=new CA(e,this.options));let t=0;do{let r=this.build[t],i=e.build[t];if(ia("prerelease compare",t,r,i),r===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(r===void 0)return-1;if(r===i)continue;return wi(r,i)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t),this.inc("pre",t);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]=="number"&&(this.prerelease[r]++,r=-2);r===-1&&this.prerelease.push(0)}t&&(wi(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error(`invalid increment argument: ${e}`)}return this.format(),this.raw=this.version,this}};qf.exports=CA});var pr=y((IJ,Of)=>{var{MAX_LENGTH:FN}=ts(),{re:Yf,t:_f}=dr(),xf=Ke(),MN=is(),UN=(A,e)=>{if(e=MN(e),A instanceof xf)return A;if(typeof A!="string"||A.length>FN||!(e.loose?Yf[_f.LOOSE]:Yf[_f.FULL]).test(A))return null;try{return new xf(A,e)}catch{return null}};Of.exports=UN});var Wf=y((EJ,Pf)=>{var TN=pr(),JN=(A,e)=>{let t=TN(A,e);return t?t.version:null};Pf.exports=JN});var $f=y((CJ,Vf)=>{var vN=pr(),GN=(A,e)=>{let t=vN(A.trim().replace(/^[=v]+/,""),e);return t?t.version:null};Vf.exports=GN});var Kf=y((QJ,jf)=>{var zf=Ke(),qN=(A,e,t,r)=>{typeof t=="string"&&(r=t,t=void 0);try{return new zf(A instanceof zf?A.version:A,t).inc(e,r).version}catch{return null}};jf.exports=qN});var UA=y((BJ,Xf)=>{var Zf=Ke(),YN=(A,e,t)=>new Zf(A,t).compare(new Zf(e,t));Xf.exports=YN});var sa=y((fJ,ed)=>{var _N=UA(),xN=(A,e,t)=>_N(A,e,t)===0;ed.exports=xN});var rd=y((dJ,td)=>{var Ad=pr(),ON=sa(),PN=(A,e)=>{if(ON(A,e))return null;{let t=Ad(A),r=Ad(e),i=t.prerelease.length||r.prerelease.length,n=i?"pre":"",o=i?"prerelease":"";for(let g in t)if((g==="major"||g==="minor"||g==="patch")&&t[g]!==r[g])return n+g;return o}};td.exports=PN});var nd=y((pJ,id)=>{var WN=Ke(),VN=(A,e)=>new WN(A,e).major;id.exports=VN});var od=y((yJ,sd)=>{var $N=Ke(),zN=(A,e)=>new $N(A,e).minor;sd.exports=zN});var gd=y((wJ,ad)=>{var jN=Ke(),KN=(A,e)=>new jN(A,e).patch;ad.exports=KN});var cd=y((mJ,ld)=>{var ZN=pr(),XN=(A,e)=>{let t=ZN(A,e);return t&&t.prerelease.length?t.prerelease:null};ld.exports=XN});var hd=y((bJ,ud)=>{var e1=UA(),A1=(A,e,t)=>e1(e,A,t);ud.exports=A1});var Ed=y((RJ,Id)=>{var t1=UA(),r1=(A,e)=>t1(A,e,!0);Id.exports=r1});var oa=y((DJ,Qd)=>{var Cd=Ke(),i1=(A,e,t)=>{let r=new Cd(A,t),i=new Cd(e,t);return r.compare(i)||r.compareBuild(i)};Qd.exports=i1});var fd=y((SJ,Bd)=>{var n1=oa(),s1=(A,e)=>A.sort((t,r)=>n1(t,r,e));Bd.exports=s1});var pd=y((kJ,dd)=>{var o1=oa(),a1=(A,e)=>A.sort((t,r)=>o1(r,t,e));dd.exports=a1});var ns=y((LJ,yd)=>{var g1=UA(),l1=(A,e,t)=>g1(A,e,t)>0;yd.exports=l1});var aa=y((NJ,wd)=>{var c1=UA(),u1=(A,e,t)=>c1(A,e,t)<0;wd.exports=u1});var Dc=y((HJ,md)=>{var h1=UA(),I1=(A,e,t)=>h1(A,e,t)!==0;md.exports=I1});var ga=y((FJ,bd)=>{var E1=UA(),C1=(A,e,t)=>E1(A,e,t)>=0;bd.exports=C1});var la=y((MJ,Rd)=>{var Q1=UA(),B1=(A,e,t)=>Q1(A,e,t)<=0;Rd.exports=B1});var Sc=y((UJ,Dd)=>{var f1=sa(),d1=Dc(),p1=ns(),y1=ga(),w1=aa(),m1=la(),b1=(A,e,t,r)=>{switch(e){case"===":return typeof A=="object"&&(A=A.version),typeof t=="object"&&(t=t.version),A===t;case"!==":return typeof A=="object"&&(A=A.version),typeof t=="object"&&(t=t.version),A!==t;case"":case"=":case"==":return f1(A,t,r);case"!=":return d1(A,t,r);case">":return p1(A,t,r);case">=":return y1(A,t,r);case"<":return w1(A,t,r);case"<=":return m1(A,t,r);default:throw new TypeError(`Invalid operator: ${e}`)}};Dd.exports=b1});var kd=y((TJ,Sd)=>{var R1=Ke(),D1=pr(),{re:ca,t:ua}=dr(),S1=(A,e)=>{if(A instanceof R1)return A;if(typeof A=="number"&&(A=String(A)),typeof A!="string")return null;e=e||{};let t=null;if(!e.rtl)t=A.match(ca[ua.COERCE]);else{let r;for(;(r=ca[ua.COERCERTL].exec(A))&&(!t||t.index+t[0].length!==A.length);)(!t||r.index+r[0].length!==t.index+t[0].length)&&(t=r),ca[ua.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;ca[ua.COERCERTL].lastIndex=-1}return t===null?null:D1(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)};Sd.exports=S1});var Nd=y((JJ,Ld)=>{"use strict";Ld.exports=function(A){A.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var Fd=y((vJ,Hd)=>{"use strict";Hd.exports=j;j.Node=yr;j.create=j;function j(A){var e=this;if(e instanceof j||(e=new j),e.tail=null,e.head=null,e.length=0,A&&typeof A.forEach=="function")A.forEach(function(i){e.push(i)});else if(arguments.length>0)for(var t=0,r=arguments.length;t<r;t++)e.push(arguments[t]);return e}j.prototype.removeNode=function(A){if(A.list!==this)throw new Error("removing node which does not belong to this list");var e=A.next,t=A.prev;return e&&(e.prev=t),t&&(t.next=e),A===this.head&&(this.head=e),A===this.tail&&(this.tail=t),A.list.length--,A.next=null,A.prev=null,A.list=null,e};j.prototype.unshiftNode=function(A){if(A!==this.head){A.list&&A.list.removeNode(A);var e=this.head;A.list=this,A.next=e,e&&(e.prev=A),this.head=A,this.tail||(this.tail=A),this.length++}};j.prototype.pushNode=function(A){if(A!==this.tail){A.list&&A.list.removeNode(A);var e=this.tail;A.list=this,A.prev=e,e&&(e.next=A),this.tail=A,this.head||(this.head=A),this.length++}};j.prototype.push=function(){for(var A=0,e=arguments.length;A<e;A++)L1(this,arguments[A]);return this.length};j.prototype.unshift=function(){for(var A=0,e=arguments.length;A<e;A++)N1(this,arguments[A]);return this.length};j.prototype.pop=function(){if(!!this.tail){var A=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,A}};j.prototype.shift=function(){if(!!this.head){var A=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,A}};j.prototype.forEach=function(A,e){e=e||this;for(var t=this.head,r=0;t!==null;r++)A.call(e,t.value,r,this),t=t.next};j.prototype.forEachReverse=function(A,e){e=e||this;for(var t=this.tail,r=this.length-1;t!==null;r--)A.call(e,t.value,r,this),t=t.prev};j.prototype.get=function(A){for(var e=0,t=this.head;t!==null&&e<A;e++)t=t.next;if(e===A&&t!==null)return t.value};j.prototype.getReverse=function(A){for(var e=0,t=this.tail;t!==null&&e<A;e++)t=t.prev;if(e===A&&t!==null)return t.value};j.prototype.map=function(A,e){e=e||this;for(var t=new j,r=this.head;r!==null;)t.push(A.call(e,r.value,this)),r=r.next;return t};j.prototype.mapReverse=function(A,e){e=e||this;for(var t=new j,r=this.tail;r!==null;)t.push(A.call(e,r.value,this)),r=r.prev;return t};j.prototype.reduce=function(A,e){var t,r=this.head;if(arguments.length>1)t=e;else if(this.head)r=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=0;r!==null;i++)t=A(t,r.value,i),r=r.next;return t};j.prototype.reduceReverse=function(A,e){var t,r=this.tail;if(arguments.length>1)t=e;else if(this.tail)r=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;r!==null;i--)t=A(t,r.value,i),r=r.prev;return t};j.prototype.toArray=function(){for(var A=new Array(this.length),e=0,t=this.head;t!==null;e++)A[e]=t.value,t=t.next;return A};j.prototype.toArrayReverse=function(){for(var A=new Array(this.length),e=0,t=this.tail;t!==null;e++)A[e]=t.value,t=t.prev;return A};j.prototype.slice=function(A,e){e=e||this.length,e<0&&(e+=this.length),A=A||0,A<0&&(A+=this.length);var t=new j;if(e<A||e<0)return t;A<0&&(A=0),e>this.length&&(e=this.length);for(var r=0,i=this.head;i!==null&&r<A;r++)i=i.next;for(;i!==null&&r<e;r++,i=i.next)t.push(i.value);return t};j.prototype.sliceReverse=function(A,e){e=e||this.length,e<0&&(e+=this.length),A=A||0,A<0&&(A+=this.length);var t=new j;if(e<A||e<0)return t;A<0&&(A=0),e>this.length&&(e=this.length);for(var r=this.length,i=this.tail;i!==null&&r>e;r--)i=i.prev;for(;i!==null&&r>A;r--,i=i.prev)t.push(i.value);return t};j.prototype.splice=function(A,e,...t){A>this.length&&(A=this.length-1),A<0&&(A=this.length+A);for(var r=0,i=this.head;i!==null&&r<A;r++)i=i.next;for(var n=[],r=0;i&&r<e;r++)n.push(i.value),i=this.removeNode(i);i===null&&(i=this.tail),i!==this.head&&i!==this.tail&&(i=i.prev);for(var r=0;r<t.length;r++)i=k1(this,i,t[r]);return n};j.prototype.reverse=function(){for(var A=this.head,e=this.tail,t=A;t!==null;t=t.prev){var r=t.prev;t.prev=t.next,t.next=r}return this.head=e,this.tail=A,this};function k1(A,e,t){var r=e===A.head?new yr(t,null,e,A):new yr(t,e,e.next,A);return r.next===null&&(A.tail=r),r.prev===null&&(A.head=r),A.length++,r}function L1(A,e){A.tail=new yr(e,A.tail,null,A),A.head||(A.head=A.tail),A.length++}function N1(A,e){A.head=new yr(e,null,A.head,A),A.tail||(A.tail=A.head),A.length++}function yr(A,e,t,r){if(!(this instanceof yr))return new yr(A,e,t,r);this.list=r,this.value=A,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{Nd()(j)}catch{}});var vd=y((GJ,Jd)=>{"use strict";var H1=Fd(),wr=Symbol("max"),dt=Symbol("length"),mi=Symbol("lengthCalculator"),os=Symbol("allowStale"),mr=Symbol("maxAge"),ft=Symbol("dispose"),Md=Symbol("noDisposeOnSet"),ve=Symbol("lruList"),xA=Symbol("cache"),Td=Symbol("updateAgeOnGet"),kc=()=>1,Nc=class{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");let t=this[wr]=e.max||1/0,r=e.length||kc;if(this[mi]=typeof r!="function"?kc:r,this[os]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[mr]=e.maxAge||0,this[ft]=e.dispose,this[Md]=e.noDisposeOnSet||!1,this[Td]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[wr]=e||1/0,ss(this)}get max(){return this[wr]}set allowStale(e){this[os]=!!e}get allowStale(){return this[os]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[mr]=e,ss(this)}get maxAge(){return this[mr]}set lengthCalculator(e){typeof e!="function"&&(e=kc),e!==this[mi]&&(this[mi]=e,this[dt]=0,this[ve].forEach(t=>{t.length=this[mi](t.value,t.key),this[dt]+=t.length})),ss(this)}get lengthCalculator(){return this[mi]}get length(){return this[dt]}get itemCount(){return this[ve].length}rforEach(e,t){t=t||this;for(let r=this[ve].tail;r!==null;){let i=r.prev;Ud(this,e,r,t),r=i}}forEach(e,t){t=t||this;for(let r=this[ve].head;r!==null;){let i=r.next;Ud(this,e,r,t),r=i}}keys(){return this[ve].toArray().map(e=>e.key)}values(){return this[ve].toArray().map(e=>e.value)}reset(){this[ft]&&this[ve]&&this[ve].length&&this[ve].forEach(e=>this[ft](e.key,e.value)),this[xA]=new Map,this[ve]=new H1,this[dt]=0}dump(){return this[ve].map(e=>ha(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[ve]}set(e,t,r){if(r=r||this[mr],r&&typeof r!="number")throw new TypeError("maxAge must be a number");let i=r?Date.now():0,n=this[mi](t,e);if(this[xA].has(e)){if(n>this[wr])return bi(this,this[xA].get(e)),!1;let l=this[xA].get(e).value;return this[ft]&&(this[Md]||this[ft](e,l.value)),l.now=i,l.maxAge=r,l.value=t,this[dt]+=n-l.length,l.length=n,this.get(e),ss(this),!0}let o=new Hc(e,t,n,i,r);return o.length>this[wr]?(this[ft]&&this[ft](e,t),!1):(this[dt]+=o.length,this[ve].unshift(o),this[xA].set(e,this[ve].head),ss(this),!0)}has(e){if(!this[xA].has(e))return!1;let t=this[xA].get(e).value;return!ha(this,t)}get(e){return Lc(this,e,!0)}peek(e){return Lc(this,e,!1)}pop(){let e=this[ve].tail;return e?(bi(this,e),e.value):null}del(e){bi(this,this[xA].get(e))}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let i=e[r],n=i.e||0;if(n===0)this.set(i.k,i.v);else{let o=n-t;o>0&&this.set(i.k,i.v,o)}}}prune(){this[xA].forEach((e,t)=>Lc(this,t,!1))}},Lc=(A,e,t)=>{let r=A[xA].get(e);if(r){let i=r.value;if(ha(A,i)){if(bi(A,r),!A[os])return}else t&&(A[Td]&&(r.value.now=Date.now()),A[ve].unshiftNode(r));return i.value}},ha=(A,e)=>{if(!e||!e.maxAge&&!A[mr])return!1;let t=Date.now()-e.now;return e.maxAge?t>e.maxAge:A[mr]&&t>A[mr]},ss=A=>{if(A[dt]>A[wr])for(let e=A[ve].tail;A[dt]>A[wr]&&e!==null;){let t=e.prev;bi(A,e),e=t}},bi=(A,e)=>{if(e){let t=e.value;A[ft]&&A[ft](t.key,t.value),A[dt]-=t.length,A[xA].delete(t.key),A[ve].removeNode(e)}},Hc=class{constructor(e,t,r,i,n){this.key=e,this.value=t,this.length=r,this.now=i,this.maxAge=n||0}},Ud=(A,e,t,r)=>{let i=t.value;ha(A,i)&&(bi(A,t),A[os]||(i=void 0)),i&&e.call(r,i.value,i.key,A)};Jd.exports=Nc});var TA=y((qJ,_d)=>{var br=class{constructor(e,t){if(t=M1(t),e instanceof br)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new br(e.raw,t);if(e instanceof Fc)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split("||").map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${e}`);if(this.set.length>1){let r=this.set[0];if(this.set=this.set.filter(i=>!qd(i[0])),this.set.length===0)this.set=[r];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&G1(i[0])){this.set=[i];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();let r=`parseRange:${Object.keys(this.options).join(",")}:${e}`,i=Gd.get(r);if(i)return i;let n=this.options.loose,o=n?lA[AA.HYPHENRANGELOOSE]:lA[AA.HYPHENRANGE];e=e.replace(o,z1(this.options.includePrerelease)),ce("hyphen replace",e),e=e.replace(lA[AA.COMPARATORTRIM],T1),ce("comparator trim",e),e=e.replace(lA[AA.TILDETRIM],J1),e=e.replace(lA[AA.CARETTRIM],v1),e=e.split(/\s+/).join(" ");let g=e.split(" ").map(I=>q1(I,this.options)).join(" ").split(/\s+/).map(I=>$1(I,this.options));n&&(g=g.filter(I=>(ce("loose invalid filter",I,this.options),!!I.match(lA[AA.COMPARATORLOOSE])))),ce("range list",g);let l=new Map,u=g.map(I=>new Fc(I,this.options));for(let I of u){if(qd(I))return[I];l.set(I.value,I)}l.size>1&&l.has("")&&l.delete("");let h=[...l.values()];return Gd.set(r,h),h}intersects(e,t){if(!(e instanceof br))throw new TypeError("a Range is required");return this.set.some(r=>Yd(r,t)&&e.set.some(i=>Yd(i,t)&&r.every(n=>i.every(o=>n.intersects(o,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new U1(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(j1(this.set[t],e,this.options))return!0;return!1}};_d.exports=br;var F1=vd(),Gd=new F1({max:1e3}),M1=is(),Fc=as(),ce=rs(),U1=Ke(),{re:lA,t:AA,comparatorTrimReplace:T1,tildeTrimReplace:J1,caretTrimReplace:v1}=dr(),qd=A=>A.value==="<0.0.0-0",G1=A=>A.value==="",Yd=(A,e)=>{let t=!0,r=A.slice(),i=r.pop();for(;t&&r.length;)t=r.every(n=>i.intersects(n,e)),i=r.pop();return t},q1=(A,e)=>(ce("comp",A,e),A=x1(A,e),ce("caret",A),A=Y1(A,e),ce("tildes",A),A=P1(A,e),ce("xrange",A),A=V1(A,e),ce("stars",A),A),tA=A=>!A||A.toLowerCase()==="x"||A==="*",Y1=(A,e)=>A.trim().split(/\s+/).map(t=>_1(t,e)).join(" "),_1=(A,e)=>{let t=e.loose?lA[AA.TILDELOOSE]:lA[AA.TILDE];return A.replace(t,(r,i,n,o,g)=>{ce("tilde",A,r,i,n,o,g);let l;return tA(i)?l="":tA(n)?l=`>=${i}.0.0 <${+i+1}.0.0-0`:tA(o)?l=`>=${i}.${n}.0 <${i}.${+n+1}.0-0`:g?(ce("replaceTilde pr",g),l=`>=${i}.${n}.${o}-${g} <${i}.${+n+1}.0-0`):l=`>=${i}.${n}.${o} <${i}.${+n+1}.0-0`,ce("tilde return",l),l})},x1=(A,e)=>A.trim().split(/\s+/).map(t=>O1(t,e)).join(" "),O1=(A,e)=>{ce("caret",A,e);let t=e.loose?lA[AA.CARETLOOSE]:lA[AA.CARET],r=e.includePrerelease?"-0":"";return A.replace(t,(i,n,o,g,l)=>{ce("caret",A,i,n,o,g,l);let u;return tA(n)?u="":tA(o)?u=`>=${n}.0.0${r} <${+n+1}.0.0-0`:tA(g)?n==="0"?u=`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:u=`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:l?(ce("replaceCaret pr",l),n==="0"?o==="0"?u=`>=${n}.${o}.${g}-${l} <${n}.${o}.${+g+1}-0`:u=`>=${n}.${o}.${g}-${l} <${n}.${+o+1}.0-0`:u=`>=${n}.${o}.${g}-${l} <${+n+1}.0.0-0`):(ce("no pr"),n==="0"?o==="0"?u=`>=${n}.${o}.${g}${r} <${n}.${o}.${+g+1}-0`:u=`>=${n}.${o}.${g}${r} <${n}.${+o+1}.0-0`:u=`>=${n}.${o}.${g} <${+n+1}.0.0-0`),ce("caret return",u),u})},P1=(A,e)=>(ce("replaceXRanges",A,e),A.split(/\s+/).map(t=>W1(t,e)).join(" ")),W1=(A,e)=>{A=A.trim();let t=e.loose?lA[AA.XRANGELOOSE]:lA[AA.XRANGE];return A.replace(t,(r,i,n,o,g,l)=>{ce("xRange",A,r,i,n,o,g,l);let u=tA(n),h=u||tA(o),I=h||tA(g),C=I;return i==="="&&C&&(i=""),l=e.includePrerelease?"-0":"",u?i===">"||i==="<"?r="<0.0.0-0":r="*":i&&C?(h&&(o=0),g=0,i===">"?(i=">=",h?(n=+n+1,o=0,g=0):(o=+o+1,g=0)):i==="<="&&(i="<",h?n=+n+1:o=+o+1),i==="<"&&(l="-0"),r=`${i+n}.${o}.${g}${l}`):h?r=`>=${n}.0.0${l} <${+n+1}.0.0-0`:I&&(r=`>=${n}.${o}.0${l} <${n}.${+o+1}.0-0`),ce("xRange return",r),r})},V1=(A,e)=>(ce("replaceStars",A,e),A.trim().replace(lA[AA.STAR],"")),$1=(A,e)=>(ce("replaceGTE0",A,e),A.trim().replace(lA[e.includePrerelease?AA.GTE0PRE:AA.GTE0],"")),z1=A=>(e,t,r,i,n,o,g,l,u,h,I,C,Q)=>(tA(r)?t="":tA(i)?t=`>=${r}.0.0${A?"-0":""}`:tA(n)?t=`>=${r}.${i}.0${A?"-0":""}`:o?t=`>=${t}`:t=`>=${t}${A?"-0":""}`,tA(u)?l="":tA(h)?l=`<${+u+1}.0.0-0`:tA(I)?l=`<${u}.${+h+1}.0-0`:C?l=`<=${u}.${h}.${I}-${C}`:A?l=`<${u}.${h}.${+I+1}-0`:l=`<=${l}`,`${t} ${l}`.trim()),j1=(A,e,t)=>{for(let r=0;r<A.length;r++)if(!A[r].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let r=0;r<A.length;r++)if(ce(A[r].semver),A[r].semver!==Fc.ANY&&A[r].semver.prerelease.length>0){let i=A[r].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0}});var as=y((YJ,Vd)=>{var gs=Symbol("SemVer ANY"),Ri=class{static get ANY(){return gs}constructor(e,t){if(t=K1(t),e instanceof Ri){if(e.loose===!!t.loose)return e;e=e.value}Uc("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===gs?this.value="":this.value=this.operator+this.semver.version,Uc("comp",this)}parse(e){let t=this.options.loose?xd[Od.COMPARATORLOOSE]:xd[Od.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new Pd(r[2],this.options.loose):this.semver=gs}toString(){return this.value}test(e){if(Uc("Comparator.test",e,this.options.loose),this.semver===gs||e===gs)return!0;if(typeof e=="string")try{e=new Pd(e,this.options)}catch{return!1}return Mc(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Ri))throw new TypeError("a Comparator is required");if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new Wd(e.value,t).test(this.value);if(e.operator==="")return e.value===""?!0:new Wd(this.value,t).test(e.semver);let r=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),n=this.semver.version===e.semver.version,o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),g=Mc(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),l=Mc(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return r||i||n&&o||g||l}};Vd.exports=Ri;var K1=is(),{re:xd,t:Od}=dr(),Mc=Sc(),Uc=rs(),Pd=Ke(),Wd=TA()});var ls=y((_J,$d)=>{var Z1=TA(),X1=(A,e,t)=>{try{e=new Z1(e,t)}catch{return!1}return e.test(A)};$d.exports=X1});var jd=y((xJ,zd)=>{var eH=TA(),AH=(A,e)=>new eH(A,e).set.map(t=>t.map(r=>r.value).join(" ").trim().split(" "));zd.exports=AH});var Zd=y((OJ,Kd)=>{var tH=Ke(),rH=TA(),iH=(A,e,t)=>{let r=null,i=null,n=null;try{n=new rH(e,t)}catch{return null}return A.forEach(o=>{n.test(o)&&(!r||i.compare(o)===-1)&&(r=o,i=new tH(r,t))}),r};Kd.exports=iH});var ep=y((PJ,Xd)=>{var nH=Ke(),sH=TA(),oH=(A,e,t)=>{let r=null,i=null,n=null;try{n=new sH(e,t)}catch{return null}return A.forEach(o=>{n.test(o)&&(!r||i.compare(o)===1)&&(r=o,i=new nH(r,t))}),r};Xd.exports=oH});var rp=y((WJ,tp)=>{var Tc=Ke(),aH=TA(),Ap=ns(),gH=(A,e)=>{A=new aH(A,e);let t=new Tc("0.0.0");if(A.test(t)||(t=new Tc("0.0.0-0"),A.test(t)))return t;t=null;for(let r=0;r<A.set.length;++r){let i=A.set[r],n=null;i.forEach(o=>{let g=new Tc(o.semver.version);switch(o.operator){case">":g.prerelease.length===0?g.patch++:g.prerelease.push(0),g.raw=g.format();case"":case">=":(!n||Ap(g,n))&&(n=g);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),n&&(!t||Ap(t,n))&&(t=n)}return t&&A.test(t)?t:null};tp.exports=gH});var np=y((VJ,ip)=>{var lH=TA(),cH=(A,e)=>{try{return new lH(A,e).range||"*"}catch{return null}};ip.exports=cH});var Ia=y(($J,gp)=>{var uH=Ke(),ap=as(),{ANY:hH}=ap,IH=TA(),EH=ls(),sp=ns(),op=aa(),CH=la(),QH=ga(),BH=(A,e,t,r)=>{A=new uH(A,r),e=new IH(e,r);let i,n,o,g,l;switch(t){case">":i=sp,n=CH,o=op,g=">",l=">=";break;case"<":i=op,n=QH,o=sp,g="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(EH(A,e,r))return!1;for(let u=0;u<e.set.length;++u){let h=e.set[u],I=null,C=null;if(h.forEach(Q=>{Q.semver===hH&&(Q=new ap(">=0.0.0")),I=I||Q,C=C||Q,i(Q.semver,I.semver,r)?I=Q:o(Q.semver,C.semver,r)&&(C=Q)}),I.operator===g||I.operator===l||(!C.operator||C.operator===g)&&n(A,C.semver))return!1;if(C.operator===l&&o(A,C.semver))return!1}return!0};gp.exports=BH});var cp=y((zJ,lp)=>{var fH=Ia(),dH=(A,e,t)=>fH(A,e,">",t);lp.exports=dH});var hp=y((jJ,up)=>{var pH=Ia(),yH=(A,e,t)=>pH(A,e,"<",t);up.exports=yH});var Cp=y((KJ,Ep)=>{var Ip=TA(),wH=(A,e,t)=>(A=new Ip(A,t),e=new Ip(e,t),A.intersects(e));Ep.exports=wH});var Bp=y((ZJ,Qp)=>{var mH=ls(),bH=UA();Qp.exports=(A,e,t)=>{let r=[],i=null,n=null,o=A.sort((h,I)=>bH(h,I,t));for(let h of o)mH(h,e,t)?(n=h,i||(i=h)):(n&&r.push([i,n]),n=null,i=null);i&&r.push([i,null]);let g=[];for(let[h,I]of r)h===I?g.push(h):!I&&h===o[0]?g.push("*"):I?h===o[0]?g.push(`<=${I}`):g.push(`${h} - ${I}`):g.push(`>=${h}`);let l=g.join(" || "),u=typeof e.raw=="string"?e.raw:String(e);return l.length<u.length?l:e}});var wp=y((XJ,yp)=>{var fp=TA(),Ea=as(),{ANY:Jc}=Ea,cs=ls(),vc=UA(),RH=(A,e,t={})=>{if(A===e)return!0;A=new fp(A,t),e=new fp(e,t);let r=!1;e:for(let i of A.set){for(let n of e.set){let o=DH(i,n,t);if(r=r||o!==null,o)continue e}if(r)return!1}return!0},DH=(A,e,t)=>{if(A===e)return!0;if(A.length===1&&A[0].semver===Jc){if(e.length===1&&e[0].semver===Jc)return!0;t.includePrerelease?A=[new Ea(">=0.0.0-0")]:A=[new Ea(">=0.0.0")]}if(e.length===1&&e[0].semver===Jc){if(t.includePrerelease)return!0;e=[new Ea(">=0.0.0")]}let r=new Set,i,n;for(let Q of A)Q.operator===">"||Q.operator===">="?i=dp(i,Q,t):Q.operator==="<"||Q.operator==="<="?n=pp(n,Q,t):r.add(Q.semver);if(r.size>1)return null;let o;if(i&&n){if(o=vc(i.semver,n.semver,t),o>0)return null;if(o===0&&(i.operator!==">="||n.operator!=="<="))return null}for(let Q of r){if(i&&!cs(Q,String(i),t)||n&&!cs(Q,String(n),t))return null;for(let E of e)if(!cs(Q,String(E),t))return!1;return!0}let g,l,u,h,I=n&&!t.includePrerelease&&n.semver.prerelease.length?n.semver:!1,C=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1;I&&I.prerelease.length===1&&n.operator==="<"&&I.prerelease[0]===0&&(I=!1);for(let Q of e){if(h=h||Q.operator===">"||Q.operator===">=",u=u||Q.operator==="<"||Q.operator==="<=",i){if(C&&Q.semver.prerelease&&Q.semver.prerelease.length&&Q.semver.major===C.major&&Q.semver.minor===C.minor&&Q.semver.patch===C.patch&&(C=!1),Q.operator===">"||Q.operator===">="){if(g=dp(i,Q,t),g===Q&&g!==i)return!1}else if(i.operator===">="&&!cs(i.semver,String(Q),t))return!1}if(n){if(I&&Q.semver.prerelease&&Q.semver.prerelease.length&&Q.semver.major===I.major&&Q.semver.minor===I.minor&&Q.semver.patch===I.patch&&(I=!1),Q.operator==="<"||Q.operator==="<="){if(l=pp(n,Q,t),l===Q&&l!==n)return!1}else if(n.operator==="<="&&!cs(n.semver,String(Q),t))return!1}if(!Q.operator&&(n||i)&&o!==0)return!1}return!(i&&u&&!n&&o!==0||n&&h&&!i&&o!==0||C||I)},dp=(A,e,t)=>{if(!A)return e;let r=vc(A.semver,e.semver,t);return r>0?A:r<0||e.operator===">"&&A.operator===">="?e:A},pp=(A,e,t)=>{if(!A)return e;let r=vc(A.semver,e.semver,t);return r<0?A:r>0||e.operator==="<"&&A.operator==="<="?e:A};yp.exports=RH});var Rp=y((ev,bp)=>{var Gc=dr(),SH=ts(),kH=Ke(),mp=Rc(),LH=pr(),NH=Wf(),HH=$f(),FH=Kf(),MH=rd(),UH=nd(),TH=od(),JH=gd(),vH=cd(),GH=UA(),qH=hd(),YH=Ed(),_H=oa(),xH=fd(),OH=pd(),PH=ns(),WH=aa(),VH=sa(),$H=Dc(),zH=ga(),jH=la(),KH=Sc(),ZH=kd(),XH=as(),eF=TA(),AF=ls(),tF=jd(),rF=Zd(),iF=ep(),nF=rp(),sF=np(),oF=Ia(),aF=cp(),gF=hp(),lF=Cp(),cF=Bp(),uF=wp();bp.exports={parse:LH,valid:NH,clean:HH,inc:FH,diff:MH,major:UH,minor:TH,patch:JH,prerelease:vH,compare:GH,rcompare:qH,compareLoose:YH,compareBuild:_H,sort:xH,rsort:OH,gt:PH,lt:WH,eq:VH,neq:$H,gte:zH,lte:jH,cmp:KH,coerce:ZH,Comparator:XH,Range:eF,satisfies:AF,toComparators:tF,maxSatisfying:rF,minSatisfying:iF,minVersion:nF,validRange:sF,outside:oF,gtr:aF,ltr:gF,intersects:lF,simplifyRange:cF,subset:uF,SemVer:kH,re:Gc.re,src:Gc.src,tokens:Gc.t,SEMVER_SPEC_VERSION:SH.SEMVER_SPEC_VERSION,compareIdentifiers:mp.compareIdentifiers,rcompareIdentifiers:mp.rcompareIdentifiers}});var Np=y((Av,Lp)=>{Lp.exports=function(A,e){e||(e={});var t=e.hsep===void 0?" ":e.hsep,r=e.align||[],i=e.stringLength||function(l){return String(l).length},n=Sp(A,function(l,u){return kp(u,function(h,I){var C=Dp(h);(!l[I]||C>l[I])&&(l[I]=C)}),l},[]),o=Ca(A,function(l){return Ca(l,function(u,h){var I=String(u);if(r[h]==="."){var C=Dp(I),Q=n[h]+(/\./.test(I)?1:2)-(i(I)-C);return I+Array(Q).join(" ")}else return I})}),g=Sp(o,function(l,u){return kp(u,function(h,I){var C=i(h);(!l[I]||C>l[I])&&(l[I]=C)}),l},[]);return Ca(o,function(l){return Ca(l,function(u,h){var I=g[h]-i(u)||0,C=Array(Math.max(I+1,1)).join(" ");return r[h]==="r"||r[h]==="."?C+u:r[h]==="c"?Array(Math.ceil(I/2+1)).join(" ")+u+Array(Math.floor(I/2+1)).join(" "):u+C}).join(t).replace(/\s+$/,"")}).join(`
|
|
67
67
|
`)};function Dp(A){var e=/\.[^.]*$/.exec(A);return e?e.index+1:A.length}function Sp(A,e,t){if(A.reduce)return A.reduce(e,t);for(var r=0,i=arguments.length>=3?t:A[r++];r<A.length;r++)e(i,A[r],r);return i}function kp(A,e){if(A.forEach)return A.forEach(e);for(var t=0;t<A.length;t++)e.call(A,A[t],t)}function Ca(A,e){if(A.map)return A.map(e);for(var t=[],r=0;r<A.length;r++)t.push(e.call(A,A[r],r));return t}});var Up=y((iv,Mp)=>{var qc=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,hF=typeof AbortController<"u",Hp=hF?AbortController:Object.assign(class{constructor(){this.signal=new Hp.AbortSignal}abort(){this.signal.aborted=!0}},{AbortSignal:class{constructor(){this.aborted=!1}}}),Oc=new Set,Yc=(A,e)=>{let t=`LRU_CACHE_OPTION_${A}`;Qa(t)&&Pc(t,`${A} option`,`options.${e}`,tt)},_c=(A,e)=>{let t=`LRU_CACHE_METHOD_${A}`;if(Qa(t)){let{prototype:r}=tt,{get:i}=Object.getOwnPropertyDescriptor(r,A);Pc(t,`${A} method`,`cache.${e}()`,i)}},IF=(A,e)=>{let t=`LRU_CACHE_PROPERTY_${A}`;if(Qa(t)){let{prototype:r}=tt,{get:i}=Object.getOwnPropertyDescriptor(r,A);Pc(t,`${A} property`,`cache.${e}`,i)}},Qa=A=>typeof process=="object"&&process&&!Oc.has(A),Pc=(A,e,t,r)=>{Oc.add(A);let i=`The ${e} is deprecated. Please use ${t} instead.`;process.emitWarning(i,"DeprecationWarning",A,r)},Rr=A=>A&&A===Math.floor(A)&&A>0&&isFinite(A),Fp=A=>Rr(A)?A<=Math.pow(2,8)?Uint8Array:A<=Math.pow(2,16)?Uint16Array:A<=Math.pow(2,32)?Uint32Array:A<=Number.MAX_SAFE_INTEGER?Di:null:null,Di=class extends Array{constructor(e){super(e),this.fill(0)}},xc=class{constructor(e){let t=e?Fp(e):Array;this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},tt=class{constructor(e={}){let{max:t=0,ttl:r,ttlResolution:i=1,ttlAutopurge:n,updateAgeOnGet:o,allowStale:g,dispose:l,disposeAfter:u,noDisposeOnSet:h,noUpdateTTL:I,maxSize:C=0,sizeCalculation:Q,fetchMethod:E}=e,{length:p,maxAge:w,stale:d}=e instanceof tt?{}:e;if(t!==0&&!Rr(t))throw new TypeError("max option must be a nonnegative integer");let D=t?Fp(t):Array;if(!D)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=C,this.sizeCalculation=Q||p,this.sizeCalculation){if(!this.maxSize)throw new TypeError("cannot set sizeCalculation without setting maxSize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=E||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new D(t),this.prev=new D(t),this.head=0,this.tail=0,this.free=new xc(t),this.initialFill=1,this.size=0,typeof l=="function"&&(this.dispose=l),typeof u=="function"?(this.disposeAfter=u,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!h,this.noUpdateTTL=!!I,this.maxSize!==0){if(!Rr(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!g||!!d,this.updateAgeOnGet=!!o,this.ttlResolution=Rr(i)||i===0?i:1,this.ttlAutopurge=!!n,this.ttl=r||w||0,this.ttl){if(!Rr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){let k="LRU_CACHE_UNBOUNDED";if(Qa(k)){Oc.add(k);let b="TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.";process.emitWarning(b,"UnboundedCacheWarning",k,tt)}}d&&Yc("stale","allowStale"),w&&Yc("maxAge","ttl"),p&&Yc("length","sizeCalculation")}getRemainingTTL(e){return this.has(e)?1/0:0}initializeTTLTracking(){this.ttls=new Di(this.max),this.starts=new Di(this.max),this.setItemTTL=(r,i)=>{if(this.starts[r]=i!==0?qc.now():0,this.ttls[r]=i,i!==0&&this.ttlAutopurge){let n=setTimeout(()=>{this.isStale(r)&&this.delete(this.keyList[r])},i+1);n.unref&&n.unref()}},this.updateItemAge=r=>{this.starts[r]=this.ttls[r]!==0?qc.now():0};let e=0,t=()=>{let r=qc.now();if(this.ttlResolution>0){e=r;let i=setTimeout(()=>e=0,this.ttlResolution);i.unref&&i.unref()}return r};this.getRemainingTTL=r=>{let i=this.keyMap.get(r);return i===void 0?0:this.ttls[i]===0||this.starts[i]===0?1/0:this.starts[i]+this.ttls[i]-(e||t())},this.isStale=r=>this.ttls[r]!==0&&this.starts[r]!==0&&(e||t())-this.starts[r]>this.ttls[r]}updateItemAge(e){}setItemTTL(e,t){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new Di(this.max),this.removeItemSize=e=>this.calculatedSize-=this.sizes[e],this.requireSize=(e,t,r,i)=>{if(!Rr(r))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(r=i(t,e),!Rr(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer)");return r},this.addItemSize=(e,t,r,i)=>{this.sizes[e]=i;let n=this.maxSize-this.sizes[e];for(;this.calculatedSize>n;)this.evict();this.calculatedSize+=this.sizes[e]},this.delete=e=>{if(this.size!==0){let t=this.keyMap.get(e);t!==void 0&&(this.calculatedSize-=this.sizes[t])}return tt.prototype.delete.call(this,e)}}removeItemSize(e){}addItemSize(e,t,r,i){}requireSize(e,t,r,i){if(r||i)throw new TypeError("cannot set size without setting maxSize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;!(!this.isValidIndex(t)||((e||!this.isStale(t))&&(yield t),t===this.head));)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;!(!this.isValidIndex(t)||((e||!this.isStale(t))&&(yield t),t===this.tail));)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(let e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(let e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(let e of this.indexes())yield this.keyList[e]}*rkeys(){for(let e of this.rindexes())yield this.keyList[e]}*values(){for(let e of this.indexes())yield this.valList[e]}*rvalues(){for(let e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(let r of this.indexes())if(e(this.valList[r],this.keyList[r],this))return this.get(this.keyList[r],t)}forEach(e,t=this){for(let r of this.indexes())e.call(t,this.valList[r],this.keyList[r],this)}rforEach(e,t=this){for(let r of this.rindexes())e.call(t,this.valList[r],this.keyList[r],this)}get prune(){return _c("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(let t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){let e=[];for(let t of this.indexes()){let r=this.keyList[t],n={value:this.valList[t]};this.ttls&&(n.ttl=this.ttls[t]),this.sizes&&(n.size=this.sizes[t]),e.unshift([r,n])}return e}load(e){this.clear();for(let[t,r]of e)this.set(t,r.value,r)}dispose(e,t,r){}set(e,t,{ttl:r=this.ttl,noDisposeOnSet:i=this.noDisposeOnSet,size:n=0,sizeCalculation:o=this.sizeCalculation,noUpdateTTL:g=this.noUpdateTTL}={}){n=this.requireSize(e,t,n,o);let l=this.size===0?void 0:this.keyMap.get(e);if(l===void 0)l=this.newIndex(),this.keyList[l]=e,this.valList[l]=t,this.keyMap.set(e,l),this.next[this.tail]=l,this.prev[l]=this.tail,this.tail=l,this.size++,this.addItemSize(l,t,e,n),g=!1;else{let u=this.valList[l];t!==u&&(this.isBackgroundFetch(u)?u.__abortController.abort():i||(this.dispose(u,e,"set"),this.disposeAfter&&this.disposed.push([u,e,"set"])),this.removeItemSize(l),this.valList[l]=t,this.addItemSize(l,t,e,n)),this.moveToTail(l)}if(r!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),g||this.setItemTTL(l,r),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return this.size===0?this.tail:this.size===this.max?this.evict():this.free.length!==0?this.free.pop():this.initialFill++}pop(){if(this.size){let e=this.valList[this.head];return this.evict(),e}}evict(){let e=this.head,t=this.keyList[e],r=this.valList[e];return this.isBackgroundFetch(r)?r.__abortController.abort():(this.dispose(r,t,"evict"),this.disposeAfter&&this.disposed.push([r,t,"evict"])),this.removeItemSize(e),this.head=this.next[e],this.keyMap.delete(t),this.size--,e}has(e){return this.keyMap.has(e)&&!this.isStale(this.keyMap.get(e))}peek(e,{allowStale:t=this.allowStale}={}){let r=this.keyMap.get(e);if(r!==void 0&&(t||!this.isStale(r)))return this.valList[r]}backgroundFetch(e,t,r){let i=t===void 0?void 0:this.valList[t];if(this.isBackgroundFetch(i))return i;let n=new Hp,o={signal:n.signal,options:r},g=Promise.resolve(this.fetchMethod(e,i,o)).then(l=>(n.signal.aborted||this.set(e,l,o.options),l));return g.__abortController=n,g.__staleWhileFetching=i,t===void 0?(this.set(e,g,o.options),t=this.keyMap.get(e)):this.valList[t]=g,g}isBackgroundFetch(e){return e&&typeof e=="object"&&typeof e.then=="function"&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,ttl:i=this.ttl,noDisposeOnSet:n=this.noDisposeOnSet,size:o=0,sizeCalculation:g=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:r});let u={allowStale:t,updateAgeOnGet:r,ttl:i,noDisposeOnSet:n,size:o,sizeCalculation:g,noUpdateTTL:l},h=this.keyMap.get(e);if(h===void 0)return this.backgroundFetch(e,h,u);{let I=this.valList[h];if(this.isBackgroundFetch(I))return t&&I.__staleWhileFetching!==void 0?I.__staleWhileFetching:I;if(!this.isStale(h))return this.moveToTail(h),r&&this.updateItemAge(h),I;let C=this.backgroundFetch(e,h,u);return t&&C.__staleWhileFetching!==void 0?C.__staleWhileFetching:C}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet}={}){let i=this.keyMap.get(e);if(i!==void 0){let n=this.valList[i],o=this.isBackgroundFetch(n);return this.isStale(i)?o?t?n.__staleWhileFetching:void 0:(this.delete(e),t?n:void 0):o?void 0:(this.moveToTail(i),r&&this.updateItemAge(i),n)}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return _c("del","delete"),this.delete}delete(e){let t=!1;if(this.size!==0){let r=this.keyMap.get(e);if(r!==void 0)if(t=!0,this.size===1)this.clear();else{this.removeItemSize(r);let i=this.valList[r];this.isBackgroundFetch(i)?i.__abortController.abort():(this.dispose(i,e,"delete"),this.disposeAfter&&this.disposed.push([i,e,"delete"])),this.keyMap.delete(e),this.keyList[r]=null,this.valList[r]=null,r===this.tail?this.tail=this.prev[r]:r===this.head?this.head=this.next[r]:(this.next[this.prev[r]]=this.next[r],this.prev[this.next[r]]=this.prev[r]),this.size--,this.free.push(r)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(let e of this.rindexes({allowStale:!0})){let t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{let r=this.keyList[e];this.dispose(t,r,"delete"),this.disposeAfter&&this.disposed.push([t,r,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return _c("reset","clear"),this.clear}get length(){return IF("length","size"),this.size}};Mp.exports=tt});var vp=y((nv,Jp)=>{"use strict";var K=(...A)=>A.every(e=>e)?A.join(""):"",De=A=>A?encodeURIComponent(A):"",Tp=A=>A.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-"),EF={sshtemplate:({domain:A,user:e,project:t,committish:r})=>`git@${A}:${e}/${t}.git${K("#",r)}`,sshurltemplate:({domain:A,user:e,project:t,committish:r})=>`git+ssh://git@${A}/${e}/${t}.git${K("#",r)}`,edittemplate:({domain:A,user:e,project:t,committish:r,editpath:i,path:n})=>`https://${A}/${e}/${t}${K("/",i,"/",De(r||"HEAD"),"/",n)}`,browsetemplate:({domain:A,user:e,project:t,committish:r,treepath:i})=>`https://${A}/${e}/${t}${K("/",i,"/",De(r))}`,browsetreetemplate:({domain:A,user:e,project:t,committish:r,treepath:i,path:n,fragment:o,hashformat:g})=>`https://${A}/${e}/${t}/${i}/${De(r||"HEAD")}/${n}${K("#",g(o||""))}`,browseblobtemplate:({domain:A,user:e,project:t,committish:r,blobpath:i,path:n,fragment:o,hashformat:g})=>`https://${A}/${e}/${t}/${i}/${De(r||"HEAD")}/${n}${K("#",g(o||""))}`,docstemplate:({domain:A,user:e,project:t,treepath:r,committish:i})=>`https://${A}/${e}/${t}${K("/",r,"/",De(i))}#readme`,httpstemplate:({auth:A,domain:e,user:t,project:r,committish:i})=>`git+https://${K(A,"@")}${e}/${t}/${r}.git${K("#",i)}`,filetemplate:({domain:A,user:e,project:t,committish:r,path:i})=>`https://${A}/${e}/${t}/raw/${De(r||"HEAD")}/${i}`,shortcuttemplate:({type:A,user:e,project:t,committish:r})=>`${A}:${e}/${t}${K("#",r)}`,pathtemplate:({user:A,project:e,committish:t})=>`${A}/${e}${K("#",t)}`,bugstemplate:({domain:A,user:e,project:t})=>`https://${A}/${e}/${t}/issues`,hashformat:Tp},xt={};xt.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:A,user:e,project:t,committish:r,path:i})=>`https://${K(A,"@")}raw.githubusercontent.com/${e}/${t}/${De(r||"HEAD")}/${i}`,gittemplate:({auth:A,domain:e,user:t,project:r,committish:i})=>`git://${K(A,"@")}${e}/${t}/${r}.git${K("#",i)}`,tarballtemplate:({domain:A,user:e,project:t,committish:r})=>`https://codeload.${A}/${e}/${t}/tar.gz/${De(r||"HEAD")}`,extract:A=>{let[,e,t,r,i]=A.pathname.split("/",5);if(!(r&&r!=="tree")&&(r||(i=A.hash.slice(1)),t&&t.endsWith(".git")&&(t=t.slice(0,-4)),!(!e||!t)))return{user:e,project:t,committish:i}}};xt.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:A,user:e,project:t,committish:r,treepath:i,path:n,editpath:o})=>`https://${A}/${e}/${t}${K("/",i,"/",De(r||"HEAD"),"/",n,o)}`,tarballtemplate:({domain:A,user:e,project:t,committish:r})=>`https://${A}/${e}/${t}/get/${De(r||"HEAD")}.tar.gz`,extract:A=>{let[,e,t,r]=A.pathname.split("/",4);if(!["get"].includes(r)&&(t&&t.endsWith(".git")&&(t=t.slice(0,-4)),!(!e||!t)))return{user:e,project:t,committish:A.hash.slice(1)}}};xt.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:A,domain:e,user:t,project:r,committish:i})=>`git+https://${K(A,"@")}${e}/${t}/${r}.git${K("#",i)}`,tarballtemplate:({domain:A,user:e,project:t,committish:r})=>`https://${A}/${e}/${t}/repository/archive.tar.gz?ref=${De(r||"HEAD")}`,extract:A=>{let e=A.pathname.slice(1);if(e.includes("/-/")||e.includes("/archive.tar.gz"))return;let t=e.split("/"),r=t.pop();r.endsWith(".git")&&(r=r.slice(0,-4));let i=t.join("/");if(!(!i||!r))return{user:i,project:r,committish:A.hash.slice(1)}}};xt.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:A,project:e,committish:t})=>`git@${A}:${e}.git${K("#",t)}`,sshurltemplate:({domain:A,project:e,committish:t})=>`git+ssh://git@${A}/${e}.git${K("#",t)}`,edittemplate:({domain:A,user:e,project:t,committish:r,editpath:i})=>`https://${A}/${e}/${t}${K("/",De(r))}/${i}`,browsetemplate:({domain:A,project:e,committish:t})=>`https://${A}/${e}${K("/",De(t))}`,browsetreetemplate:({domain:A,project:e,committish:t,path:r,hashformat:i})=>`https://${A}/${e}${K("/",De(t))}${K("#",i(r))}`,browseblobtemplate:({domain:A,project:e,committish:t,path:r,hashformat:i})=>`https://${A}/${e}${K("/",De(t))}${K("#",i(r))}`,docstemplate:({domain:A,project:e,committish:t})=>`https://${A}/${e}${K("/",De(t))}`,httpstemplate:({domain:A,project:e,committish:t})=>`git+https://${A}/${e}.git${K("#",t)}`,filetemplate:({user:A,project:e,committish:t,path:r})=>`https://gist.githubusercontent.com/${A}/${e}/raw${K("/",De(t))}/${r}`,shortcuttemplate:({type:A,project:e,committish:t})=>`${A}:${e}${K("#",t)}`,pathtemplate:({project:A,committish:e})=>`${A}${K("#",e)}`,bugstemplate:({domain:A,project:e})=>`https://${A}/${e}`,gittemplate:({domain:A,project:e,committish:t})=>`git://${A}/${e}.git${K("#",t)}`,tarballtemplate:({project:A,committish:e})=>`https://codeload.github.com/gist/${A}/tar.gz/${De(e||"HEAD")}`,extract:A=>{let[,e,t,r]=A.pathname.split("/",4);if(r!=="raw"){if(!t){if(!e)return;t=e,e=null}return t.endsWith(".git")&&(t=t.slice(0,-4)),{user:e,project:t,committish:A.hash.slice(1)}}},hashformat:function(A){return A&&"file-"+Tp(A)}};xt.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:A,user:e,project:t,committish:r,path:i})=>`https://${A}/${e}/${t}/blob/${De(r)||"HEAD"}/${i}`,httpstemplate:({domain:A,user:e,project:t,committish:r})=>`https://${A}/${e}/${t}.git${K("#",r)}`,tarballtemplate:({domain:A,user:e,project:t,committish:r})=>`https://${A}/${e}/${t}/archive/${De(r)||"HEAD"}.tar.gz`,bugstemplate:({user:A,project:e})=>`https://todo.sr.ht/${A}/${e}`,extract:A=>{let[,e,t,r]=A.pathname.split("/",4);if(!["archive"].includes(r)&&(t&&t.endsWith(".git")&&(t=t.slice(0,-4)),!(!e||!t)))return{user:e,project:t,committish:A.hash.slice(1)}}};for(let[A,e]of Object.entries(xt))xt[A]=Object.assign({},EF,e);Jp.exports=xt});var Yp=y((sv,qp)=>{"use strict";var CF=L("url"),Gp=A=>{try{return new CF.URL(A)}catch{}},Wc=(A,e,t)=>{let r=A.indexOf(t);return A.lastIndexOf(e,r>-1?r:1/0)},QF=(A,e)=>{let t=A.indexOf(":"),r=A.slice(0,t+1);if(Object.prototype.hasOwnProperty.call(e,r))return A;let i=A.indexOf("@");return i>-1?i>t?`git+ssh://${A}`:A:A.indexOf("//")===t+1?A:`${A.slice(0,t+1)}//${A.slice(t+1)}`},BF=A=>{let e=A.indexOf("#"),t=A.indexOf("/"),r=A.indexOf("/",t+1),i=A.indexOf(":"),n=/\s/.exec(A),o=A.indexOf("@"),g=!n||e>-1&&n.index>e,l=o===-1||e>-1&&o>e,u=i===-1||e>-1&&i>e,h=r===-1||e>-1&&r>e,I=t>0,C=e>-1?A[e-1]!=="/":!A.endsWith("/"),Q=!A.startsWith(".");return g&&I&&C&&Q&&l&&u&&h},fF=A=>{let e=Wc(A,"@","#"),t=Wc(A,":","#");return t>e&&(A=A.slice(0,t)+"/"+A.slice(t+1)),Wc(A,":","#")===-1&&A.indexOf("//")===-1&&(A=`git+ssh://${A}`),A};qp.exports=(A,e,{gitHosts:t,protocols:r})=>{var p,w;if(!A)return;let i=BF(A)?`github:${A}`:QF(A,r),n=Gp(i)||Gp(fF(i));if(!n)return;let o=t.byShortcut[n.protocol],g=t.byDomain[n.hostname.startsWith("www.")?n.hostname.slice(4):n.hostname],l=o||g;if(!l)return;let u=t[o||g],h=null;((p=r[n.protocol])==null?void 0:p.auth)&&(n.username||n.password)&&(h=`${n.username}${n.password?":"+n.password:""}`);let I=null,C=null,Q=null,E=null;try{if(o){let d=n.pathname.startsWith("/")?n.pathname.slice(1):n.pathname,D=d.indexOf("@");D>-1&&(d=d.slice(D+1));let k=d.lastIndexOf("/");k>-1?(C=decodeURIComponent(d.slice(0,k)),C||(C=null),Q=decodeURIComponent(d.slice(k+1))):Q=decodeURIComponent(d),Q.endsWith(".git")&&(Q=Q.slice(0,-4)),n.hash&&(I=decodeURIComponent(n.hash.slice(1))),E="shortcut"}else{if(!u.protocols.includes(n.protocol))return;let d=u.extract(n);if(!d)return;C=d.user&&decodeURIComponent(d.user),Q=decodeURIComponent(d.project),I=decodeURIComponent(d.committish),E=((w=r[n.protocol])==null?void 0:w.name)||n.protocol.slice(0,-1)}}catch(d){if(d instanceof URIError)return;throw d}return[l,C,h,Q,I,E,e]}});var xp=y((ov,_p)=>{"use strict";var dF=Up(),pF=vp(),yF=Yp(),Vc=new dF({max:1e3}),Ot,us,Le,xe,rt=class{constructor(e,t,r,i,n,o,g={}){Ge(this,Le);Object.assign(this,W(rt,Ot)[e],{type:e,user:t,auth:r,project:i,committish:n,default:o,opts:g})}static addHost(e,t){W(rt,Ot)[e]=t,W(rt,Ot).byDomain[t.domain]=e,W(rt,Ot).byShortcut[`${e}:`]=e,W(rt,us)[`${e}:`]={name:e}}static fromUrl(e,t){if(typeof e!="string")return;let r=e+JSON.stringify(t||{});if(!Vc.has(r)){let i=yF(e,t,{gitHosts:W(rt,Ot),protocols:W(rt,us)});Vc.set(r,i?new rt(...i):void 0)}return Vc.get(r)}hash(){return this.committish?`#${this.committish}`:""}ssh(e){return qe(this,Le,xe).call(this,this.sshtemplate,e)}sshurl(e){return qe(this,Le,xe).call(this,this.sshurltemplate,e)}browse(e,...t){return typeof e!="string"?qe(this,Le,xe).call(this,this.browsetemplate,e):typeof t[0]!="string"?qe(this,Le,xe).call(this,this.browsetreetemplate,{...t[0],path:e}):qe(this,Le,xe).call(this,this.browsetreetemplate,{...t[1],fragment:t[0],path:e})}browseFile(e,...t){return typeof t[0]!="string"?qe(this,Le,xe).call(this,this.browseblobtemplate,{...t[0],path:e}):qe(this,Le,xe).call(this,this.browseblobtemplate,{...t[1],fragment:t[0],path:e})}docs(e){return qe(this,Le,xe).call(this,this.docstemplate,e)}bugs(e){return qe(this,Le,xe).call(this,this.bugstemplate,e)}https(e){return qe(this,Le,xe).call(this,this.httpstemplate,e)}git(e){return qe(this,Le,xe).call(this,this.gittemplate,e)}shortcut(e){return qe(this,Le,xe).call(this,this.shortcuttemplate,e)}path(e){return qe(this,Le,xe).call(this,this.pathtemplate,e)}tarball(e){return qe(this,Le,xe).call(this,this.tarballtemplate,{...e,noCommittish:!1})}file(e,t){return qe(this,Le,xe).call(this,this.filetemplate,{...t,path:e})}edit(e,t){return qe(this,Le,xe).call(this,this.edittemplate,{...t,path:e})}getDefaultRepresentation(){return this.default}toString(e){return this.default&&typeof this[this.default]=="function"?this[this.default](e):this.sshurl(e)}},Si=rt;Ot=new WeakMap,us=new WeakMap,Le=new WeakSet,xe=function(e,t){if(typeof e!="function")return null;let r={...this,...this.opts,...t};r.path||(r.path=""),r.path.startsWith("/")&&(r.path=r.path.slice(1)),r.noCommittish&&(r.committish=null);let i=e(r);return r.noGitPlus&&i.startsWith("git+")?i.slice(4):i},Ge(Si,Ot,{byShortcut:{},byDomain:{}}),Ge(Si,us,{"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}});for(let[A,e]of Object.entries(pF))Si.addHost(A,e);_p.exports=Si});function Xa({onlyFirst:A=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,A?void 0:"g")}var ui=BA(rB(),1);var ac=BA(sB(),1);var oB=ac.default.HttpProxyAgent,aB=ac.default.HttpsProxyAgent;var xn=class extends Map{constructor(e={}){if(super(),!(e.maxSize&&e.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");if(typeof e.maxAge=="number"&&e.maxAge===0)throw new TypeError("`maxAge` must be a number greater than 0");this.maxSize=e.maxSize,this.maxAge=e.maxAge||Number.POSITIVE_INFINITY,this.onEviction=e.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_emitEvictions(e){if(typeof this.onEviction=="function")for(let[t,r]of e)this.onEviction(t,r.value)}_deleteIfExpired(e,t){return typeof t.expiry=="number"&&t.expiry<=Date.now()?(typeof this.onEviction=="function"&&this.onEviction(e,t.value),this.delete(e)):!1}_getOrDeleteIfExpired(e,t){if(this._deleteIfExpired(e,t)===!1)return t.value}_getItemValue(e,t){return t.expiry?this._getOrDeleteIfExpired(e,t):t.value}_peek(e,t){let r=t.get(e);return this._getItemValue(e,r)}_set(e,t){this.cache.set(e,t),this._size++,this._size>=this.maxSize&&(this._size=0,this._emitEvictions(this.oldCache),this.oldCache=this.cache,this.cache=new Map)}_moveToRecent(e,t){this.oldCache.delete(e),this._set(e,t)}*_entriesAscending(){for(let e of this.oldCache){let[t,r]=e;this.cache.has(t)||this._deleteIfExpired(t,r)===!1&&(yield e)}for(let e of this.cache){let[t,r]=e;this._deleteIfExpired(t,r)===!1&&(yield e)}}get(e){if(this.cache.has(e)){let t=this.cache.get(e);return this._getItemValue(e,t)}if(this.oldCache.has(e)){let t=this.oldCache.get(e);if(this._deleteIfExpired(e,t)===!1)return this._moveToRecent(e,t),t.value}}set(e,t,{maxAge:r=this.maxAge}={}){let i=typeof r=="number"&&r!==Number.POSITIVE_INFINITY?Date.now()+r:void 0;this.cache.has(e)?this.cache.set(e,{value:t,expiry:i}):this._set(e,{value:t,expiry:i})}has(e){return this.cache.has(e)?!this._deleteIfExpired(e,this.cache.get(e)):this.oldCache.has(e)?!this._deleteIfExpired(e,this.oldCache.get(e)):!1}peek(e){if(this.cache.has(e))return this._peek(e,this.cache);if(this.oldCache.has(e))return this._peek(e,this.oldCache)}delete(e){let t=this.cache.delete(e);return t&&this._size--,this.oldCache.delete(e)||t}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}resize(e){if(!(e&&e>0))throw new TypeError("`maxSize` must be a number greater than 0");let t=[...this._entriesAscending()],r=t.length-e;r<0?(this.cache=new Map(t),this.oldCache=new Map,this._size=t.length):(r>0&&this._emitEvictions(t.slice(0,r)),this.oldCache=new Map(t.slice(r)),this.cache=new Map,this._size=0),this.maxSize=e}*keys(){for(let[e]of this)yield e}*values(){for(let[,e]of this)yield e}*[Symbol.iterator](){for(let e of this.cache){let[t,r]=e;this._deleteIfExpired(t,r)===!1&&(yield[t,r.value])}for(let e of this.oldCache){let[t,r]=e;this.cache.has(t)||this._deleteIfExpired(t,r)===!1&&(yield[t,r.value])}}*entriesDescending(){let e=[...this.cache];for(let t=e.length-1;t>=0;--t){let r=e[t],[i,n]=r;this._deleteIfExpired(i,n)===!1&&(yield[i,n.value])}e=[...this.oldCache];for(let t=e.length-1;t>=0;--t){let r=e[t],[i,n]=r;this.cache.has(i)||this._deleteIfExpired(i,n)===!1&&(yield[i,n.value])}}*entriesAscending(){for(let[e,t]of this._entriesAscending())yield[e,t.value]}get size(){if(!this._size)return this.oldCache.size;let e=0;for(let t of this.oldCache.keys())this.cache.has(t)||e++;return Math.min(this._size+e,this.maxSize)}entries(){return this.entriesAscending()}forEach(e,t=this){for(let[r,i]of this.entriesAscending())e.call(t,i,r,this)}get[Symbol.toStringTag](){return JSON.stringify([...this.entriesAscending()])}};var uB=BA(lB(),1);import{Agent as mL}from"http";import{Agent as bL}from"https";var RL={agentCacheSize:512},cB={maxSockets:64,keepAlive:!1},On=class extends Error{constructor(e){super(e),this.name="TimeoutError",Error.captureStackTrace(this,On)}};function gc(A,e={}){let t={...RL,...e},r=new xn({maxSize:t.agentCacheSize});function i(o,g={},l){let{origin:u,protocol:h}=new URL(o),I=g!=null&&g.noProxy?null:(0,uB.getProxyForUrl)(o),C=JSON.stringify({proxyUrl:I,origin:u,isUndici:l,...g});if(r.has(C))return r.get(C);let Q,E=h==="https:";if("noProxy"in g&&delete g.noProxy,l){let p={...g};"keepAlive"in p&&(p.pipelining=p.keepAlive?1:0,delete p.keepAlive),"maxSockets"in p&&(p.connections=p.maxSockets,delete p.maxSockets),I?Q=new ui.ProxyAgent({...p,uri:I}):Q=new ui.Agent(p)}else I?Q=new(E?aB:oB)({...g,proxy:I}):Q=new(E?bL:mL)(g);return r.set(C,Q),Q}let n=(o,{timeout:g=0,agentOpts:l={},...u}={})=>new Promise((h,I)=>{var p;let C=[globalThis.fetch,ui.fetch].includes(A);if(!C&&!("agent"in u)){let w=i(o,{...cB,...l},C);w&&(u.agent=w)}else if(C&&!("dispatcher"in u)){let w=i(o,{...cB,...l},C);w&&(u.dispatcher=w)}let Q,E;g&&(!("signal"in u)&&globalThis.AbortController&&(E=new AbortController,u.signal=E.signal),Q=setTimeout(()=>{var d;(d=E==null?void 0:E.abort)==null||d.call(E);let w=new On(`${u.method||"GET"} ${o} timed out after ${g}ms`);I(w)},g),(p=Q==null?void 0:Q.unref)==null||p.call(Q)),A(o,u).then(w=>{Q&&clearTimeout(Q),h(w)}).catch(w=>{if(Q&&clearTimeout(Q),w.name==="AbortError")return h(null);I(w)})});return n.clearCache=()=>{for(let o of r.values())"destroy"in o&&o.destroy();r.clear()},n}var Xp=BA(lc(),1);import eN from"http";import AN from"https";import Bi from"zlib";import KB,{PassThrough as ZB,pipeline as fi}from"stream";import{Buffer as Xo}from"buffer";function SL(A){if(!/^data:/i.test(A))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');A=A.replace(/\r?\n/g,"");let e=A.indexOf(",");if(e===-1||e<=4)throw new TypeError("malformed data: URI");let t=A.substring(5,e).split(";"),r="",i=!1,n=t[0]||"text/plain",o=n;for(let h=1;h<t.length;h++)t[h]==="base64"?i=!0:(o+=`;${t[h]}`,t[h].indexOf("charset=")===0&&(r=t[h].substring(8)));!t[0]&&!r.length&&(o+=";charset=US-ASCII",r="US-ASCII");let g=i?"base64":"ascii",l=unescape(A.substring(e+1)),u=Buffer.from(l,g);return u.type=n,u.typeFull=o,u.charset=r,u}var CB=SL;Wn();Oo();import Yt,{PassThrough as JB}from"stream";import{types as vB,deprecate as fc,promisify as PL}from"util";import{Buffer as MA}from"buffer";var Qt=class extends Error{constructor(e,t){super(e),Error.captureStackTrace(this,this.constructor),this.type=t}get name(){return this.constructor.name}get[Symbol.toStringTag](){return this.constructor.name}};var oA=class extends Qt{constructor(e,t,r){super(e,t),r&&(this.code=this.errno=r.code,this.erroredSysCall=r.syscall)}};var Po=Symbol.toStringTag,Ic=A=>typeof A=="object"&&typeof A.append=="function"&&typeof A.delete=="function"&&typeof A.get=="function"&&typeof A.getAll=="function"&&typeof A.has=="function"&&typeof A.set=="function"&&typeof A.sort=="function"&&A[Po]==="URLSearchParams",jn=A=>A&&typeof A=="object"&&typeof A.arrayBuffer=="function"&&typeof A.type=="string"&&typeof A.stream=="function"&&typeof A.constructor=="function"&&/^(Blob|File)$/.test(A[Po]),DB=A=>typeof A=="object"&&(A[Po]==="AbortSignal"||A[Po]==="EventTarget"),SB=(A,e)=>{let t=new URL(e).hostname,r=new URL(A).hostname;return t===r||t.endsWith(`.${r}`)},kB=(A,e)=>{let t=new URL(e).protocol,r=new URL(A).protocol;return t===r};var WL=PL(Yt.pipeline),aA=Symbol("Body internals"),At=class{constructor(e,{size:t=0}={}){let r=null;e===null?e=null:Ic(e)?e=MA.from(e.toString()):jn(e)||MA.isBuffer(e)||(vB.isAnyArrayBuffer(e)?e=MA.from(e):ArrayBuffer.isView(e)?e=MA.from(e.buffer,e.byteOffset,e.byteLength):e instanceof Yt||(e instanceof Er?(e=RB(e),r=e.type.split("=")[1]):e=MA.from(String(e))));let i=e;MA.isBuffer(e)?i=Yt.Readable.from(e):jn(e)&&(i=Yt.Readable.from(e.stream())),this[aA]={body:e,stream:i,boundary:r,disturbed:!1,error:null},this.size=t,e instanceof Yt&&e.on("error",n=>{let o=n instanceof Qt?n:new oA(`Invalid response body while trying to fetch ${this.url}: ${n.message}`,"system",n);this[aA].error=o})}get body(){return this[aA].stream}get bodyUsed(){return this[aA].disturbed}async arrayBuffer(){let{buffer:e,byteOffset:t,byteLength:r}=await Bc(this);return e.slice(t,t+r)}async formData(){let e=this.headers.get("content-type");if(e.startsWith("application/x-www-form-urlencoded")){let r=new Er,i=new URLSearchParams(await this.text());for(let[n,o]of i)r.append(n,o);return r}let{toFormData:t}=await Promise.resolve().then(()=>(TB(),UB));return t(this.body,e)}async blob(){let e=this.headers&&this.headers.get("content-type")||this[aA].body&&this[aA].body.type||"",t=await this.arrayBuffer();return new Ct([t],{type:e})}async json(){let e=await this.text();return JSON.parse(e)}async text(){let e=await Bc(this);return new TextDecoder().decode(e)}buffer(){return Bc(this)}};At.prototype.buffer=fc(At.prototype.buffer,"Please use 'response.arrayBuffer()' instead of 'response.buffer()'","node-fetch#buffer");Object.defineProperties(At.prototype,{body:{enumerable:!0},bodyUsed:{enumerable:!0},arrayBuffer:{enumerable:!0},blob:{enumerable:!0},json:{enumerable:!0},text:{enumerable:!0},data:{get:fc(()=>{},"data doesn't exist, use json(), text(), arrayBuffer(), or body instead","https://github.com/node-fetch/node-fetch/issues/1000 (response)")}});async function Bc(A){if(A[aA].disturbed)throw new TypeError(`body used already for: ${A.url}`);if(A[aA].disturbed=!0,A[aA].error)throw A[aA].error;let{body:e}=A;if(e===null)return MA.alloc(0);if(!(e instanceof Yt))return MA.alloc(0);let t=[],r=0;try{for await(let i of e){if(A.size>0&&r+i.length>A.size){let n=new oA(`content size at ${A.url} over limit: ${A.size}`,"max-size");throw e.destroy(n),n}r+=i.length,t.push(i)}}catch(i){throw i instanceof Qt?i:new oA(`Invalid response body while trying to fetch ${A.url}: ${i.message}`,"system",i)}if(e.readableEnded===!0||e._readableState.ended===!0)try{return t.every(i=>typeof i=="string")?MA.from(t.join("")):MA.concat(t,r)}catch(i){throw new oA(`Could not create Buffer from response body for ${A.url}: ${i.message}`,"system",i)}else throw new oA(`Premature close of server response while trying to fetch ${A.url}`)}var Ci=(A,e)=>{let t,r,{body:i}=A[aA];if(A.bodyUsed)throw new Error("cannot clone body after it is used");return i instanceof Yt&&typeof i.getBoundary!="function"&&(t=new JB({highWaterMark:e}),r=new JB({highWaterMark:e}),i.pipe(t),i.pipe(r),A[aA].stream=t,i=r),i},VL=fc(A=>A.getBoundary(),"form-data doesn't follow the spec and requires special treatment. Use alternative package","https://github.com/node-fetch/node-fetch/issues/1167"),$o=(A,e)=>A===null?null:typeof A=="string"?"text/plain;charset=UTF-8":Ic(A)?"application/x-www-form-urlencoded;charset=UTF-8":jn(A)?A.type||null:MA.isBuffer(A)||vB.isAnyArrayBuffer(A)||ArrayBuffer.isView(A)?null:A instanceof Er?`multipart/form-data; boundary=${e[aA].boundary}`:A&&typeof A.getBoundary=="function"?`multipart/form-data;boundary=${VL(A)}`:A instanceof Yt?null:"text/plain;charset=UTF-8",GB=A=>{let{body:e}=A[aA];return e===null?0:jn(e)?e.size:MA.isBuffer(e)?e.length:e&&typeof e.getLengthSync=="function"&&e.hasKnownLength&&e.hasKnownLength()?e.getLengthSync():null},qB=async(A,{body:e})=>{e===null?A.end():await WL(e,A)};import{types as YB}from"util";import jo from"http";var zo=typeof jo.validateHeaderName=="function"?jo.validateHeaderName:A=>{if(!/^[\^`\-\w!#$%&'*+.|~]+$/.test(A)){let e=new TypeError(`Header name must be a valid HTTP token [${A}]`);throw Object.defineProperty(e,"code",{value:"ERR_INVALID_HTTP_TOKEN"}),e}},dc=typeof jo.validateHeaderValue=="function"?jo.validateHeaderValue:(A,e)=>{if(/[^\t\u0020-\u007E\u0080-\u00FF]/.test(e)){let t=new TypeError(`Invalid character in header content ["${A}"]`);throw Object.defineProperty(t,"code",{value:"ERR_INVALID_CHAR"}),t}},gA=class extends URLSearchParams{constructor(e){let t=[];if(e instanceof gA){let r=e.raw();for(let[i,n]of Object.entries(r))t.push(...n.map(o=>[i,o]))}else if(e!=null)if(typeof e=="object"&&!YB.isBoxedPrimitive(e)){let r=e[Symbol.iterator];if(r==null)t.push(...Object.entries(e));else{if(typeof r!="function")throw new TypeError("Header pairs must be iterable");t=[...e].map(i=>{if(typeof i!="object"||YB.isBoxedPrimitive(i))throw new TypeError("Each header pair must be an iterable object");return[...i]}).map(i=>{if(i.length!==2)throw new TypeError("Each header pair must be a name/value tuple");return[...i]})}}else throw new TypeError("Failed to construct 'Headers': The provided value is not of type '(sequence<sequence<ByteString>> or record<ByteString, ByteString>)");return t=t.length>0?t.map(([r,i])=>(zo(r),dc(r,String(i)),[String(r).toLowerCase(),String(i)])):void 0,super(t),new Proxy(this,{get(r,i,n){switch(i){case"append":case"set":return(o,g)=>(zo(o),dc(o,String(g)),URLSearchParams.prototype[i].call(r,String(o).toLowerCase(),String(g)));case"delete":case"has":case"getAll":return o=>(zo(o),URLSearchParams.prototype[i].call(r,String(o).toLowerCase()));case"keys":return()=>(r.sort(),new Set(URLSearchParams.prototype.keys.call(r)).keys());default:return Reflect.get(r,i,n)}}})}get[Symbol.toStringTag](){return this.constructor.name}toString(){return Object.prototype.toString.call(this)}get(e){let t=this.getAll(e);if(t.length===0)return null;let r=t.join(", ");return/^content-encoding$/i.test(e)&&(r=r.toLowerCase()),r}forEach(e,t=void 0){for(let r of this.keys())Reflect.apply(e,t,[this.get(r),r,this])}*values(){for(let e of this.keys())yield this.get(e)}*entries(){for(let e of this.keys())yield[e,this.get(e)]}[Symbol.iterator](){return this.entries()}raw(){return[...this.keys()].reduce((e,t)=>(e[t]=this.getAll(t),e),{})}[Symbol.for("nodejs.util.inspect.custom")](){return[...this.keys()].reduce((e,t)=>{let r=this.getAll(t);return t==="host"?e[t]=r[0]:e[t]=r.length>1?r:r[0],e},{})}};Object.defineProperties(gA.prototype,["get","entries","forEach","values"].reduce((A,e)=>(A[e]={enumerable:!0},A),{}));function _B(A=[]){return new gA(A.reduce((e,t,r,i)=>(r%2===0&&e.push(i.slice(r,r+2)),e),[]).filter(([e,t])=>{try{return zo(e),dc(e,String(t)),!0}catch{return!1}}))}var $L=new Set([301,302,303,307,308]),Ko=A=>$L.has(A);var _A=Symbol("Response internals"),je=class extends At{constructor(e=null,t={}){super(e,t);let r=t.status!=null?t.status:200,i=new gA(t.headers);if(e!==null&&!i.has("Content-Type")){let n=$o(e,this);n&&i.append("Content-Type",n)}this[_A]={type:"default",url:t.url,status:r,statusText:t.statusText||"",headers:i,counter:t.counter,highWaterMark:t.highWaterMark}}get type(){return this[_A].type}get url(){return this[_A].url||""}get status(){return this[_A].status}get ok(){return this[_A].status>=200&&this[_A].status<300}get redirected(){return this[_A].counter>0}get statusText(){return this[_A].statusText}get headers(){return this[_A].headers}get highWaterMark(){return this[_A].highWaterMark}clone(){return new je(Ci(this,this.highWaterMark),{type:this.type,url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected,size:this.size,highWaterMark:this.highWaterMark})}static redirect(e,t=302){if(!Ko(t))throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');return new je(null,{headers:{location:new URL(e).toString()},status:t})}static error(){let e=new je(null,{status:0,statusText:""});return e[_A].type="error",e}get[Symbol.toStringTag](){return"Response"}};Object.defineProperties(je.prototype,{type:{enumerable:!0},url:{enumerable:!0},status:{enumerable:!0},ok:{enumerable:!0},redirected:{enumerable:!0},statusText:{enumerable:!0},headers:{enumerable:!0},clone:{enumerable:!0}});import{format as KL}from"url";import{deprecate as ZL}from"util";var xB=A=>{if(A.search)return A.search;let e=A.href.length-1,t=A.hash||(A.href[e]==="#"?"#":"");return A.href[e-t.length]==="?"?"?":""};import{isIP as zL}from"net";function OB(A,e=!1){return A==null||(A=new URL(A),/^(about|blob|data):$/.test(A.protocol))?"no-referrer":(A.username="",A.password="",A.hash="",e&&(A.pathname="",A.search=""),A)}var PB=new Set(["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"]),WB="strict-origin-when-cross-origin";function VB(A){if(!PB.has(A))throw new TypeError(`Invalid referrerPolicy: ${A}`);return A}function jL(A){if(/^(http|ws)s:$/.test(A.protocol))return!0;let e=A.host.replace(/(^\[)|(]$)/g,""),t=zL(e);return t===4&&/^127\./.test(e)||t===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(e)?!0:A.host==="localhost"||A.host.endsWith(".localhost")?!1:A.protocol==="file:"}function Qi(A){return/^about:(blank|srcdoc)$/.test(A)||A.protocol==="data:"||/^(blob|filesystem):$/.test(A.protocol)?!0:jL(A)}function $B(A,{referrerURLCallback:e,referrerOriginCallback:t}={}){if(A.referrer==="no-referrer"||A.referrerPolicy==="")return null;let r=A.referrerPolicy;if(A.referrer==="about:client")return"no-referrer";let i=A.referrer,n=OB(i),o=OB(i,!0);n.toString().length>4096&&(n=o),e&&(n=e(n)),t&&(o=t(o));let g=new URL(A.url);switch(r){case"no-referrer":return"no-referrer";case"origin":return o;case"unsafe-url":return n;case"strict-origin":return Qi(n)&&!Qi(g)?"no-referrer":o.toString();case"strict-origin-when-cross-origin":return n.origin===g.origin?n:Qi(n)&&!Qi(g)?"no-referrer":o;case"same-origin":return n.origin===g.origin?n:"no-referrer";case"origin-when-cross-origin":return n.origin===g.origin?n:o;case"no-referrer-when-downgrade":return Qi(n)&&!Qi(g)?"no-referrer":n;default:throw new TypeError(`Invalid referrerPolicy: ${r}`)}}function zB(A){let e=(A.get("referrer-policy")||"").split(/[,\s]+/),t="";for(let r of e)r&&PB.has(r)&&(t=r);return t}var Je=Symbol("Request internals"),Zn=A=>typeof A=="object"&&typeof A[Je]=="object",XL=ZL(()=>{},".data is not a valid RequestInit property, use .body instead","https://github.com/node-fetch/node-fetch/issues/1000 (request)"),Bt=class extends At{constructor(e,t={}){let r;if(Zn(e)?r=new URL(e.url):(r=new URL(e),e={}),r.username!==""||r.password!=="")throw new TypeError(`${r} is an url with embedded credentials.`);let i=t.method||e.method||"GET";if(/^(delete|get|head|options|post|put)$/i.test(i)&&(i=i.toUpperCase()),!Zn(t)&&"data"in t&&XL(),(t.body!=null||Zn(e)&&e.body!==null)&&(i==="GET"||i==="HEAD"))throw new TypeError("Request with GET/HEAD method cannot have body");let n=t.body?t.body:Zn(e)&&e.body!==null?Ci(e):null;super(n,{size:t.size||e.size||0});let o=new gA(t.headers||e.headers||{});if(n!==null&&!o.has("Content-Type")){let u=$o(n,this);u&&o.set("Content-Type",u)}let g=Zn(e)?e.signal:null;if("signal"in t&&(g=t.signal),g!=null&&!DB(g))throw new TypeError("Expected signal to be an instanceof AbortSignal or EventTarget");let l=t.referrer==null?e.referrer:t.referrer;if(l==="")l="no-referrer";else if(l){let u=new URL(l);l=/^about:(\/\/)?client$/.test(u)?"client":u}else l=void 0;this[Je]={method:i,redirect:t.redirect||e.redirect||"follow",headers:o,parsedURL:r,signal:g,referrer:l},this.follow=t.follow===void 0?e.follow===void 0?20:e.follow:t.follow,this.compress=t.compress===void 0?e.compress===void 0?!0:e.compress:t.compress,this.counter=t.counter||e.counter||0,this.agent=t.agent||e.agent,this.highWaterMark=t.highWaterMark||e.highWaterMark||16384,this.insecureHTTPParser=t.insecureHTTPParser||e.insecureHTTPParser||!1,this.referrerPolicy=t.referrerPolicy||e.referrerPolicy||""}get method(){return this[Je].method}get url(){return KL(this[Je].parsedURL)}get headers(){return this[Je].headers}get redirect(){return this[Je].redirect}get signal(){return this[Je].signal}get referrer(){if(this[Je].referrer==="no-referrer")return"";if(this[Je].referrer==="client")return"about:client";if(this[Je].referrer)return this[Je].referrer.toString()}get referrerPolicy(){return this[Je].referrerPolicy}set referrerPolicy(e){this[Je].referrerPolicy=VB(e)}clone(){return new Bt(this)}get[Symbol.toStringTag](){return"Request"}};Object.defineProperties(Bt.prototype,{method:{enumerable:!0},url:{enumerable:!0},headers:{enumerable:!0},redirect:{enumerable:!0},clone:{enumerable:!0},signal:{enumerable:!0},referrer:{enumerable:!0},referrerPolicy:{enumerable:!0}});var jB=A=>{let{parsedURL:e}=A[Je],t=new gA(A[Je].headers);t.has("Accept")||t.set("Accept","*/*");let r=null;if(A.body===null&&/^(post|put)$/i.test(A.method)&&(r="0"),A.body!==null){let g=GB(A);typeof g=="number"&&!Number.isNaN(g)&&(r=String(g))}r&&t.set("Content-Length",r),A.referrerPolicy===""&&(A.referrerPolicy=WB),A.referrer&&A.referrer!=="no-referrer"?A[Je].referrer=$B(A):A[Je].referrer="no-referrer",A[Je].referrer instanceof URL&&t.set("Referer",A.referrer),t.has("User-Agent")||t.set("User-Agent","node-fetch"),A.compress&&!t.has("Accept-Encoding")&&t.set("Accept-Encoding","gzip, deflate, br");let{agent:i}=A;typeof i=="function"&&(i=i(e)),!t.has("Connection")&&!i&&t.set("Connection","close");let n=xB(e),o={path:e.pathname+n,method:A.method,headers:t[Symbol.for("nodejs.util.inspect.custom")](),insecureHTTPParser:A.insecureHTTPParser,agent:i};return{parsedURL:e,options:o}};var Zo=class extends Qt{constructor(e,t="aborted"){super(e,t)}};Oo();Cc();var tN=new Set(["data:","http:","https:"]);async function ea(A,e){return new Promise((t,r)=>{let i=new Bt(A,e),{parsedURL:n,options:o}=jB(i);if(!tN.has(n.protocol))throw new TypeError(`node-fetch cannot load ${A}. URL scheme "${n.protocol.replace(/:$/,"")}" is not supported.`);if(n.protocol==="data:"){let E=CB(i.url),p=new je(E,{headers:{"Content-Type":E.typeFull}});t(p);return}let g=(n.protocol==="https:"?AN:eN).request,{signal:l}=i,u=null,h=()=>{let E=new Zo("The operation was aborted.");r(E),i.body&&i.body instanceof KB.Readable&&i.body.destroy(E),!(!u||!u.body)&&u.body.emit("error",E)};if(l&&l.aborted){h();return}let I=()=>{h(),Q()},C=g(n.toString(),o);l&&l.addEventListener("abort",I);let Q=()=>{C.abort(),l&&l.removeEventListener("abort",I)};C.on("error",E=>{r(new oA(`request to ${i.url} failed, reason: ${E.message}`,"system",E)),Q()}),rN(C,E=>{u&&u.body&&u.body.destroy(E)}),process.version<"v14"&&C.on("socket",E=>{let p;E.prependListener("end",()=>{p=E._eventsCount}),E.prependListener("close",w=>{if(u&&p<E._eventsCount&&!w){let d=new Error("Premature close");d.code="ERR_STREAM_PREMATURE_CLOSE",u.body.emit("error",d)}})}),C.on("response",E=>{C.setTimeout(0);let p=_B(E.rawHeaders);if(Ko(E.statusCode)){let b=p.get("Location"),M=null;try{M=b===null?null:new URL(b,i.url)}catch{if(i.redirect!=="manual"){r(new oA(`uri requested responds with an invalid redirect URL: ${b}`,"invalid-redirect")),Q();return}}switch(i.redirect){case"error":r(new oA(`uri requested responds with a redirect, redirect mode is set to error: ${i.url}`,"no-redirect")),Q();return;case"manual":break;case"follow":{if(M===null)break;if(i.counter>=i.follow){r(new oA(`maximum redirect reached at: ${i.url}`,"max-redirect")),Q();return}let J={headers:new gA(i.headers),follow:i.follow,counter:i.counter+1,agent:i.agent,compress:i.compress,method:i.method,body:Ci(i),signal:i.signal,size:i.size,referrer:i.referrer,referrerPolicy:i.referrerPolicy};if(!SB(i.url,M)||!kB(i.url,M))for(let V of["authorization","www-authenticate","cookie","cookie2"])J.headers.delete(V);if(E.statusCode!==303&&i.body&&e.body instanceof KB.Readable){r(new oA("Cannot follow redirect with body being a readable stream","unsupported-redirect")),Q();return}(E.statusCode===303||(E.statusCode===301||E.statusCode===302)&&i.method==="POST")&&(J.method="GET",J.body=void 0,J.headers.delete("content-length"));let G=zB(p);G&&(J.referrerPolicy=G),t(ea(new Bt(M,J))),Q();return}default:return r(new TypeError(`Redirect option '${i.redirect}' is not a valid value of RequestRedirect`))}}l&&E.once("end",()=>{l.removeEventListener("abort",I)});let w=fi(E,new ZB,b=>{b&&r(b)});process.version<"v12.10"&&E.on("aborted",I);let d={url:i.url,status:E.statusCode,statusText:E.statusMessage,headers:p,size:i.size,counter:i.counter,highWaterMark:i.highWaterMark},D=p.get("Content-Encoding");if(!i.compress||i.method==="HEAD"||D===null||E.statusCode===204||E.statusCode===304){u=new je(w,d),t(u);return}let k={flush:Bi.Z_SYNC_FLUSH,finishFlush:Bi.Z_SYNC_FLUSH};if(D==="gzip"||D==="x-gzip"){w=fi(w,Bi.createGunzip(k),b=>{b&&r(b)}),u=new je(w,d),t(u);return}if(D==="deflate"||D==="x-deflate"){let b=fi(E,new ZB,M=>{M&&r(M)});b.once("data",M=>{(M[0]&15)===8?w=fi(w,Bi.createInflate(),J=>{J&&r(J)}):w=fi(w,Bi.createInflateRaw(),J=>{J&&r(J)}),u=new je(w,d),t(u)}),b.once("end",()=>{u||(u=new je(w,d),t(u))});return}if(D==="br"){w=fi(w,Bi.createBrotliDecompress(),b=>{b&&r(b)}),u=new je(w,d),t(u);return}u=new je(w,d),t(u)}),qB(C,i).catch(r)})}function rN(A,e){let t=Xo.from(`0\r
|
|
68
68
|
\r
|
|
69
|
-
`),r=!1,i=!1,n;A.on("response",o=>{let{headers:g}=o;r=g["transfer-encoding"]==="chunked"&&!g["content-length"]}),A.on("socket",o=>{let g=()=>{if(r&&!i){let u=new Error("Premature close");u.code="ERR_STREAM_PREMATURE_CLOSE",e(u)}},l=u=>{i=Xo.compare(u.slice(-5),t)===0,!i&&n&&(i=Xo.compare(n.slice(-3),t.slice(0,3))===0&&Xo.compare(u.slice(-2),t.slice(3))===0),n=u};o.prependListener("close",g),o.on("data",l),A.on("close",()=>{o.removeListener("close",g),o.removeListener("data",l)})})}var ey=BA(Df(),1),Ay=BA(ta(),1),ty=BA(kf(),1),Ne=BA(Rp(),1),ry=BA(Np(),1),iy=BA(xp(),1);import{cwd as bF,stdout as RF,argv as DF,env as Zc,exit as hs}from"process";import{join as ny,dirname as SF}from"path";import{lstatSync as kF,readFileSync as Pp,truncateSync as LF,writeFileSync as NF,accessSync as HF}from"fs";import{platform as FF}from"os";import{rootCertificates as Wp}from"tls";var wF=[[1e3,6e4,"sec"],[6e4,36e5,"min"],[36e5,864e5,"hour"],[864e5,6048e5,"day"],[6048e5,2628e6,"week"],[2628e6,31536e6,"month"],[31536e6,1/0,"year"]];function $c(A,{noAffix:e=!1}={}){if(A=typeof A=="number"?A:Date.parse(A),Number.isNaN(A))return"unknown";let t=Date.now(),r=!1,i=t-A;if(i<0&&(r=!0,i=Math.abs(i)),i<1e4)return"now";let n,o;for(let g of wF)if(!(i>=g[1])){n=Math.floor(i/g[0]),o=g[2],n>1&&(o+="s");break}return`${r&&!e?"in ":""}${n} ${o}${!r&&!e?" ago":""}`}var Op="13.1.
|
|
69
|
+
`),r=!1,i=!1,n;A.on("response",o=>{let{headers:g}=o;r=g["transfer-encoding"]==="chunked"&&!g["content-length"]}),A.on("socket",o=>{let g=()=>{if(r&&!i){let u=new Error("Premature close");u.code="ERR_STREAM_PREMATURE_CLOSE",e(u)}},l=u=>{i=Xo.compare(u.slice(-5),t)===0,!i&&n&&(i=Xo.compare(n.slice(-3),t.slice(0,3))===0&&Xo.compare(u.slice(-2),t.slice(3))===0),n=u};o.prependListener("close",g),o.on("data",l),A.on("close",()=>{o.removeListener("close",g),o.removeListener("data",l)})})}var ey=BA(Df(),1),Ay=BA(ta(),1),ty=BA(kf(),1),Ne=BA(Rp(),1),ry=BA(Np(),1),iy=BA(xp(),1);import{cwd as bF,stdout as RF,argv as DF,env as Zc,exit as hs}from"process";import{join as ny,dirname as SF}from"path";import{lstatSync as kF,readFileSync as Pp,truncateSync as LF,writeFileSync as NF,accessSync as HF}from"fs";import{platform as FF}from"os";import{rootCertificates as Wp}from"tls";var wF=[[1e3,6e4,"sec"],[6e4,36e5,"min"],[36e5,864e5,"hour"],[864e5,6048e5,"day"],[6048e5,2628e6,"week"],[2628e6,31536e6,"month"],[31536e6,1/0,"year"]];function $c(A,{noAffix:e=!1}={}){if(A=typeof A=="number"?A:Date.parse(A),Number.isNaN(A))return"unknown";let t=Date.now(),r=!1,i=t-A;if(i<0&&(r=!0,i=Math.abs(i)),i<1e4)return"now";let n,o;for(let g of wF)if(!(i>=g[1])){n=Math.floor(i/g[0]),o=g[2],n>1&&(o+="s");break}return`${r&&!e?"in ":""}${n} ${o}${!r&&!e?" ago":""}`}var Op="13.1.12";var Xc=gc(ea),sy=96,Pt="\0",Vp=bF(),MF=/^.*?:\/\/(.*?@)?(github\.com[:/])/i,UF=/^([^/]+)\/([^/#]+)?.*?\/([0-9a-f]+|v?[0-9]+\.[0-9]+\.[0-9]+)$/i,eu=/^[0-9a-f]{7,}$/i,$p=A=>A.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&"),TF=ya(iy.fromUrl),Ba=ya(ey.default),JF=ya(ty.default),ru=ya(A=>A.endsWith("/")?A.substring(0,A.length-1):A),vF=new Set(["patch"]),GF=new Set(["patch","minor"]),qF=new Set(["patch","minor","major"]),da,Zp;for(let A of[process.stdout,process.stderr])(Zp=(da=A==null?void 0:A._handle)==null?void 0:da.setBlocking)==null||Zp.call(da,!0);var O=(0,Xp.default)(DF.slice(2),{boolean:["E","error-on-outdated","U","error-on-unchanged","h","help","j","json","n","no-color","u","update","v","version","V","verbose"],string:["d","allow-downgrade","f","file","g","greatest","G","githubapi","m","minor","P","patch","p","prerelease","R","release","r","registry","t","types"],alias:{d:"allow-downgrade",E:"error-on-outdated",U:"error-on-unchanged",e:"exclude",f:"file",g:"greatest",G:"githubapi",h:"help",i:"include",j:"json",m:"minor",n:"no-color",P:"patch",p:"prerelease",r:"registry",R:"release",s:"semver",S:"sockets",t:"types",u:"update",v:"version",V:"verbose"}});O.color===!1&&(Zc.NO_COLOR="1");var Au,pa,Is,tu;"NO_COLOR"in Zc||Zc.TERM==="dumb"?Au=pa=Is=tu=A=>A:(Au=A=>`\x1B[35m${A}\x1B[0m`,pa=A=>`\x1B[31m${A}\x1B[0m`,Is=A=>`\x1B[32m${A}\x1B[0m`,tu=A=>`\x1B[90m${A}\x1B[0m`);O.help&&(RF.write(`usage: updates [options]
|
|
70
70
|
|
|
71
71
|
Options:
|
|
72
72
|
-u, --update Update versions and write package.json
|
|
@@ -96,4 +96,4 @@ Content-Type: ${n.type||"application/octet-stream"}\r
|
|
|
96
96
|
$ updates -u
|
|
97
97
|
$ updates -u -m -e eslint
|
|
98
98
|
$ updates -u -U && rm -rf node_modules && npm i
|
|
99
|
-
`),hs(0));O.version&&(console.info(Op),hs(0));var ki=Fi(O.greatest),zc=Fi(O.prerelease),jc=Fi(O.release),Li=Fi(O.patch),Ni=Fi(O.minor),Hi=Fi(O["allow-downgrade"]),it=(0,Ay.default)("npm",{registry:"https://registry.npmjs.org"}),fa={npmrc:it,recursive:!0},YF=ru(O.registry||it.registry),zp=O.githubapi?ru(O.githubapi):"https://api.github.com",_F=typeof O.sockets=="number"?parseInt(O.sockets):sy,jp=A=>Array.from(A.matchAll(/(----BEGIN CERT[^]+?IFICATE----)/g)).map(e=>e[0]);function ya(A){let e=Object.create(null);return(t,r)=>t in e?e[t]:e[t]=A(t,r)}function oy(A,e,t){let r=ny(e,A);try{return HF(r),r}catch{}let i=SF(e);return t&&r===t||i===e?null:oy(A,i,t)}function xF(A,e){if(A.startsWith("@")){let t=(/@[a-z0-9][\w-.]+/.exec(A)||[])[0],r=ru(JF(t,it));if(r!==e)try{let i=Ba(r,fa);if(i!=null&&i.token)return[i,r]}catch{return[Ba(e,fa),e]}else return[Ba(e,fa),e]}else return[Ba(e,fa),e]}async function OF(A,e,t,r){let[i,n]=xF(A,t),o={maxSockets:_F};Object.keys(r).length&&(o.agentOpts=r),i!=null&&i.token&&(o.headers={Authorization:`${i.type} ${i.token}`});let l=(e==="resolutions"?eM(A):A).replace(/\//g,"%2f"),u=`${n}/${l}`;O.verbose&&console.error(`${Au("fetch")} ${u}`);let h=await Xc(u,o);if(h!=null&&h.ok)return O.verbose&&console.error(`${Is("done")} ${u}`),[await h.json(),e,n,A];throw(h==null?void 0:h.status)&&(h==null?void 0:h.statusText)?new Error(`Received ${h.status} ${h.statusText} for ${A} from ${n}`):new Error(`Unable to fetch ${A} from ${n}`)}function PF({repository:A,homepage:e},t,r){let i;if(t==="https://npm.pkg.github.com")return`https://github.com/${r.replace(/^@/,"")}`;if(A){let o=typeof A=="string"?A:A.url,g=TF(o);g!=null&&g.browse&&(i=g.browse()),i&&A.directory&&g.treepath&&(i=`${i}/${g.treepath}/HEAD/${A.directory}`),!i&&(A==null?void 0:A.url)&&/^https?:/.test(A.url)&&(i=A.url)}let n=i||e||"";if(n){let o=new URL(n);o.protocol==="http:"&&o.hostname==="github.com"&&(o.protocol="https:",n=String(o))}return n}function OA(A,e={}){let t={},r=A instanceof Error;typeof A=="string"?t.message=A:r&&(t.error=A.stack);for(let i of Object.values(e))"oldPrint"in i&&(i.old=i.oldPrint,delete i.oldPrint),"newPrint"in i&&(i.new=i.newPrint,delete i.newPrint);if(O.json){if(!r){t.results={};for(let[i,n]of Object.entries(e)){let[o,g]=i.split(Pt);t.results[o]||(t.results[o]={}),t.results[o][g]=n}}console.info(JSON.stringify(t))}else if(Object.keys(e).length&&!r&&console.info(VF(e)),t.message||t.error){if(t.message)console.info(t.message);else if(t.error){let i=t.error.split(/\r?\n/);for(let[n,o]of Object.entries(i))console.info((n==="0"?pa:tu)(o))}}O["error-on-outdated"]?hs(Object.keys(e).length?2:0):O["error-on-unchanged"]?hs(Object.keys(e).length?0:2):hs(t.error?1:0)}function WF(A,e){let t=FF()==="win32";t&&LF(A,0),NF(A,e,t?{flag:"r+"}:void 0)}function Kp(A,e,t){let r=A.split(/\./),i=e.split(/\./),n=t?Is:pa,o=/^[0-9a-zA-Z-.]+$/,g="";for(let l=0;l<r.length;l++)if(r[l]!==i[l]){o.test(r[l])?g+=n(r.slice(l).join(".")):g+=r[l].split("").map(u=>o.test(u)?n(u):u).join("")+n(`.${r.slice(l+1).join(".")}`);break}else g+=`${r[l]}.`;return g}function VF(A){let e=[["NAME","OLD","NEW","AGE","INFO"]];for(let[t,r]of Object.entries(A)){let[i,n]=t.split(Pt);e.push([n,Kp(r.old,r.new,!1),Kp(r.new,r.old,!0),r.age||"",r.info])}return(0,ry.default)(e,{hsep:" ",stringLength:t=>t.replace(Xa(),"").length})}function $F(A,e){let t=A;for(let r of Object.keys(e)){let i=r.split(Pt)[1],n=new RegExp(`"${$p(i)}": +"${$p(e[r].old)}"`,"g");t=t.replace(n,`"${i}": "${e[r].new}"`)}return t}function zF(A,e){return A.replace(/[0-9]+\.[0-9]+\.[0-9]+(-.+)?/g,e)}function Kc(A){let e=Ne.default.parse(A);return e?Boolean(e.prerelease.length):!1}function ay(A){return/[0-9]+\.[0-9]+\.[0-9]+-.+/.test(A)}function jF(A){try{return Ne.default.coerce(A).version}catch{return null}}function KF(A,e,{range:t,semvers:r,usePre:i,useRel:n,useGreatest:o}={}){let g=jF(t),l=0;r=new Set(r),i=ay(t)||i,i&&(r.add("prerelease"),r.has("patch")&&r.add("prepatch"),r.has("minor")&&r.add("preminor"),r.has("major")&&r.add("premajor"));for(let u of e){let h=Ne.default.parse(u);if(h.prerelease.length&&(!i||n))continue;let I=Ne.default.diff(g,h.version);if(!(!I||!r.has(I)))if(o||!("time"in A))Ne.default.gte(Ne.default.coerce(h.version).version,g)&&(g=h.version);else{let C=new Date(A.time[u]).getTime();C>=0&&C>l&&(g=h.version,l=C)}}return g||null}function ZF(A,e){var i;if(e.range==="*"||e.range.includes("||"))return null;let t=Object.keys(A.versions).filter(n=>Ne.default.valid(n)),r=KF(A,t,e);if(e.useGreatest)return r;{let n=A["dist-tags"].latest,o=Ne.default.coerce(e.range).version,g=ay(e.range),l=Kc(r),u=Kc(n),h=Ne.default.gt(r,o);if(!e.useRel&&e.usePre||g&&l||e.useRel&&!h&&g&&!l||g&&!l&&h)return r;if(g&&!l&&!h)return null;let I=Ne.default.diff(o,n);return I&&I!=="prerelease"&&!e.semvers.has(I.replace(/^pre/,""))||e.useRel&&Kc(n)?r:Ne.default.lt(n,o)&&!u?Hi===!0||((i=Hi==null?void 0:Hi.has)==null?void 0:i.call(Hi,A.name))?n:null:n}}async function XF([A,e],{useGreatest:t}={}){var l,u;let r=e.old.replace(MF,""),[i,n,o,g]=UF.exec(r)||[];if(!(!n||!o||!g))if(eu.test(g)){let h=await Xc(`${zp}/repos/${n}/${o}/commits`);if(!h||!h.ok)return;let I=await h.json(),{sha:C,commit:Q}=I[0];if(!C||!C.length)return;let E=((l=Q==null?void 0:Q.committer)==null?void 0:l.date)??((u=Q==null?void 0:Q.author)==null?void 0:u.date);if(C=C.substring(0,g.length),g!==C){let p=e.old.replace(g,C);return{key:A,newRange:p,user:n,repo:o,oldRef:g,newRef:C,newDate:E}}}else{let h=await Xc(`${zp}/repos/${n}/${o}/git/refs/tags`);if(!h||!h.ok)return;let C=(await h.json()).map(E=>E.ref.replace(/^refs\/tags\//,"")),Q=g.replace(/^v/,"");if(!Ne.default.valid(Q))return;if(t){let E=g,p=g.replace(/^v/,"");for(let w of C){let d=w.replace(/^v/,"");!Ne.default.valid(d)||(!E||Ne.default.gt(d,p))&&(E=w,p=d)}if(Ne.default.neq(Q,p))return{key:A,newRange:E,user:n,repo:o,oldRef:g,newRef:E}}else{let E=C[C.length-1],p=E.replace(/^v/,"");if(!Ne.default.valid(p))return;if(Ne.default.neq(Q,p))return{key:A,newRange:E,user:n,repo:o,oldRef:g,newRef:E}}}}function eM(A){let e=A.match(/(@[^/]+\/)?([^/]+)/g)||[];return e[e.length-1]}function Fi(A){return A===void 0?!1:A===""?!0:typeof A=="string"?A.includes(",")?new Set(A.split(",")):new Set([A]):Array.isArray(A)?new Set(A):!1}async function AM(){var I,C,Q;let A={};if(it["strict-ssl"]===!1)A.rejectUnauthorized=!1;else if("cafile"in it&&(A.ca=Wp.concat(jp(Pp(it.cafile,"utf8")))),"ca"in it){let E=Array.isArray(it.ca)?it.ca:[it.ca];A.ca=Wp.concat(E.map(p=>jp(p)))}let e;if(O.file){let E;try{E=kF(O.file)}catch(p){OA(new Error(`Unable to open ${O.file}: ${p.message}`))}E!=null&&E.isFile()?e=O.file:E!=null&&E.isDirectory()?e=ny(O.file,"package.json"):OA(new Error(`${O.file} is neither a file nor directory`))}else e=oy("package.json",Vp),e||OA(new Error(`Unable to find package.json in ${Vp} or any of its parents`));let t;O.types?t=Array.isArray(O.types)?O.types:O.types.split(","):t=["dependencies","devDependencies","optionalDependencies","peerDependencies","resolutions"];let r,i;try{i=Pp(e,"utf8")}catch(E){OA(new Error(`Unable to open package.json: ${E.message}`))}try{r=JSON.parse(i)}catch(E){OA(new Error(`Error parsing package.json: ${E.message}`))}let n,o;O.include&&O.include!==!0&&(n=new Set((Array.isArray(O.include)?O.include:[O.include]).flatMap(E=>E.split(",")))),O.exclude&&O.exclude!==!0&&(o=new Set((Array.isArray(O.exclude)?O.exclude:[O.exclude]).flatMap(E=>E.split(","))));function g(E){var p,w;return!(((p=o==null?void 0:o.has)==null?void 0:p.call(o,E))===!0||((w=n==null?void 0:n.has)==null?void 0:w.call(n,E))===!1)}let l={},u={};for(let E of t)for(let[p,w]of Object.entries(r[E]||{}))Ne.default.validRange(w)&&g(p)?l[`${E}${Pt}${p}`]={old:w}:g(p)&&(u[`${E}${Pt}${p}`]={old:w});!Object.keys(l).length&&!Object.keys(u).length&&OA(
|
|
99
|
+
`),hs(0));O.version&&(console.info(Op),hs(0));var ki=Fi(O.greatest),zc=Fi(O.prerelease),jc=Fi(O.release),Li=Fi(O.patch),Ni=Fi(O.minor),Hi=Fi(O["allow-downgrade"]),it=(0,Ay.default)("npm",{registry:"https://registry.npmjs.org"}),fa={npmrc:it,recursive:!0},YF=ru(O.registry||it.registry),zp=O.githubapi?ru(O.githubapi):"https://api.github.com",_F=typeof O.sockets=="number"?parseInt(O.sockets):sy,jp=A=>Array.from(A.matchAll(/(----BEGIN CERT[^]+?IFICATE----)/g)).map(e=>e[0]);function ya(A){let e=Object.create(null);return(t,r)=>t in e?e[t]:e[t]=A(t,r)}function oy(A,e,t){let r=ny(e,A);try{return HF(r),r}catch{}let i=SF(e);return t&&r===t||i===e?null:oy(A,i,t)}function xF(A,e){if(A.startsWith("@")){let t=(/@[a-z0-9][\w-.]+/.exec(A)||[])[0],r=ru(JF(t,it));if(r!==e)try{let i=Ba(r,fa);if(i!=null&&i.token)return[i,r]}catch{return[Ba(e,fa),e]}else return[Ba(e,fa),e]}else return[Ba(e,fa),e]}async function OF(A,e,t,r){let[i,n]=xF(A,t),o={maxSockets:_F};Object.keys(r).length&&(o.agentOpts=r),i!=null&&i.token&&(o.headers={Authorization:`${i.type} ${i.token}`});let l=(e==="resolutions"?eM(A):A).replace(/\//g,"%2f"),u=`${n}/${l}`;O.verbose&&console.error(`${Au("fetch")} ${u}`);let h=await Xc(u,o);if(h!=null&&h.ok)return O.verbose&&console.error(`${Is("done")} ${u}`),[await h.json(),e,n,A];throw(h==null?void 0:h.status)&&(h==null?void 0:h.statusText)?new Error(`Received ${h.status} ${h.statusText} for ${A} from ${n}`):new Error(`Unable to fetch ${A} from ${n}`)}function PF({repository:A,homepage:e},t,r){let i;if(t==="https://npm.pkg.github.com")return`https://github.com/${r.replace(/^@/,"")}`;if(A){let o=typeof A=="string"?A:A.url,g=TF(o);g!=null&&g.browse&&(i=g.browse()),i&&A.directory&&g.treepath&&(i=`${i}/${g.treepath}/HEAD/${A.directory}`),!i&&(A==null?void 0:A.url)&&/^https?:/.test(A.url)&&(i=A.url)}let n=i||e||"";if(n){let o=new URL(n);o.protocol==="http:"&&o.hostname==="github.com"&&(o.protocol="https:",n=String(o))}return n}function OA(A,e={}){let t={},r=A instanceof Error;typeof A=="string"?t.message=A:r&&(t.error=A.stack);for(let i of Object.values(e))"oldPrint"in i&&(i.old=i.oldPrint,delete i.oldPrint),"newPrint"in i&&(i.new=i.newPrint,delete i.newPrint);if(O.json){if(!r){t.results={};for(let[i,n]of Object.entries(e)){let[o,g]=i.split(Pt);t.results[o]||(t.results[o]={}),t.results[o][g]=n}}console.info(JSON.stringify(t))}else if(Object.keys(e).length&&!r&&console.info(VF(e)),t.message||t.error){if(t.message)console.info(t.message);else if(t.error){let i=t.error.split(/\r?\n/);for(let[n,o]of Object.entries(i))console.info((n==="0"?pa:tu)(o))}}O["error-on-outdated"]?hs(Object.keys(e).length?2:0):O["error-on-unchanged"]?hs(Object.keys(e).length?0:2):hs(t.error?1:0)}function WF(A,e){let t=FF()==="win32";t&&LF(A,0),NF(A,e,t?{flag:"r+"}:void 0)}function Kp(A,e,t){let r=A.split(/\./),i=e.split(/\./),n=t?Is:pa,o=/^[0-9a-zA-Z-.]+$/,g="";for(let l=0;l<r.length;l++)if(r[l]!==i[l]){o.test(r[l])?g+=n(r.slice(l).join(".")):g+=r[l].split("").map(u=>o.test(u)?n(u):u).join("")+n(`.${r.slice(l+1).join(".")}`);break}else g+=`${r[l]}.`;return g}function VF(A){let e=[["NAME","OLD","NEW","AGE","INFO"]];for(let[t,r]of Object.entries(A)){let[i,n]=t.split(Pt);e.push([n,Kp(r.old,r.new,!1),Kp(r.new,r.old,!0),r.age||"",r.info])}return(0,ry.default)(e,{hsep:" ",stringLength:t=>t.replace(Xa(),"").length})}function $F(A,e){let t=A;for(let r of Object.keys(e)){let i=r.split(Pt)[1],n=new RegExp(`"${$p(i)}": +"${$p(e[r].old)}"`,"g");t=t.replace(n,`"${i}": "${e[r].new}"`)}return t}function zF(A,e){return A.replace(/[0-9]+\.[0-9]+\.[0-9]+(-.+)?/g,e)}function Kc(A){let e=Ne.default.parse(A);return e?Boolean(e.prerelease.length):!1}function ay(A){return/[0-9]+\.[0-9]+\.[0-9]+-.+/.test(A)}function jF(A){try{return Ne.default.coerce(A).version}catch{return null}}function KF(A,e,{range:t,semvers:r,usePre:i,useRel:n,useGreatest:o}={}){let g=jF(t),l=0;r=new Set(r),i=ay(t)||i,i&&(r.add("prerelease"),r.has("patch")&&r.add("prepatch"),r.has("minor")&&r.add("preminor"),r.has("major")&&r.add("premajor"));for(let u of e){let h=Ne.default.parse(u);if(h.prerelease.length&&(!i||n))continue;let I=Ne.default.diff(g,h.version);if(!(!I||!r.has(I)))if(o||!("time"in A))Ne.default.gte(Ne.default.coerce(h.version).version,g)&&(g=h.version);else{let C=new Date(A.time[u]).getTime();C>=0&&C>l&&(g=h.version,l=C)}}return g||null}function ZF(A,e){var i;if(e.range==="*"||e.range.includes("||"))return null;let t=Object.keys(A.versions).filter(n=>Ne.default.valid(n)),r=KF(A,t,e);if(e.useGreatest)return r;{let n=A["dist-tags"].latest,o=Ne.default.coerce(e.range).version,g=ay(e.range),l=Kc(r),u=Kc(n),h=Ne.default.gt(r,o);if(!e.useRel&&e.usePre||g&&l||e.useRel&&!h&&g&&!l||g&&!l&&h)return r;if(g&&!l&&!h)return null;let I=Ne.default.diff(o,n);return I&&I!=="prerelease"&&!e.semvers.has(I.replace(/^pre/,""))||e.useRel&&Kc(n)?r:Ne.default.lt(n,o)&&!u?Hi===!0||((i=Hi==null?void 0:Hi.has)==null?void 0:i.call(Hi,A.name))?n:null:n}}async function XF([A,e],{useGreatest:t}={}){var l,u;let r=e.old.replace(MF,""),[i,n,o,g]=UF.exec(r)||[];if(!(!n||!o||!g))if(eu.test(g)){let h=await Xc(`${zp}/repos/${n}/${o}/commits`);if(!h||!h.ok)return;let I=await h.json(),{sha:C,commit:Q}=I[0];if(!C||!C.length)return;let E=((l=Q==null?void 0:Q.committer)==null?void 0:l.date)??((u=Q==null?void 0:Q.author)==null?void 0:u.date);if(C=C.substring(0,g.length),g!==C){let p=e.old.replace(g,C);return{key:A,newRange:p,user:n,repo:o,oldRef:g,newRef:C,newDate:E}}}else{let h=await Xc(`${zp}/repos/${n}/${o}/git/refs/tags`);if(!h||!h.ok)return;let C=(await h.json()).map(E=>E.ref.replace(/^refs\/tags\//,"")),Q=g.replace(/^v/,"");if(!Ne.default.valid(Q))return;if(t){let E=g,p=g.replace(/^v/,"");for(let w of C){let d=w.replace(/^v/,"");!Ne.default.valid(d)||(!E||Ne.default.gt(d,p))&&(E=w,p=d)}if(Ne.default.neq(Q,p))return{key:A,newRange:E,user:n,repo:o,oldRef:g,newRef:E}}else{let E=C[C.length-1],p=E.replace(/^v/,"");if(!Ne.default.valid(p))return;if(Ne.default.neq(Q,p))return{key:A,newRange:E,user:n,repo:o,oldRef:g,newRef:E}}}}function eM(A){let e=A.match(/(@[^/]+\/)?([^/]+)/g)||[];return e[e.length-1]}function Fi(A){return A===void 0?!1:A===""?!0:typeof A=="string"?A.includes(",")?new Set(A.split(",")):new Set([A]):Array.isArray(A)?new Set(A):!1}async function AM(){var I,C,Q;let A={};if(it["strict-ssl"]===!1)A.rejectUnauthorized=!1;else if("cafile"in it&&(A.ca=Wp.concat(jp(Pp(it.cafile,"utf8")))),"ca"in it){let E=Array.isArray(it.ca)?it.ca:[it.ca];A.ca=Wp.concat(E.map(p=>jp(p)))}let e;if(O.file){let E;try{E=kF(O.file)}catch(p){OA(new Error(`Unable to open ${O.file}: ${p.message}`))}E!=null&&E.isFile()?e=O.file:E!=null&&E.isDirectory()?e=ny(O.file,"package.json"):OA(new Error(`${O.file} is neither a file nor directory`))}else e=oy("package.json",Vp),e||OA(new Error(`Unable to find package.json in ${Vp} or any of its parents`));let t;O.types?t=Array.isArray(O.types)?O.types:O.types.split(","):t=["dependencies","devDependencies","optionalDependencies","peerDependencies","resolutions"];let r,i;try{i=Pp(e,"utf8")}catch(E){OA(new Error(`Unable to open package.json: ${E.message}`))}try{r=JSON.parse(i)}catch(E){OA(new Error(`Error parsing package.json: ${E.message}`))}let n,o;O.include&&O.include!==!0&&(n=new Set((Array.isArray(O.include)?O.include:[O.include]).flatMap(E=>E.split(",")))),O.exclude&&O.exclude!==!0&&(o=new Set((Array.isArray(O.exclude)?O.exclude:[O.exclude]).flatMap(E=>E.split(","))));function g(E){var p,w;return!(((p=o==null?void 0:o.has)==null?void 0:p.call(o,E))===!0||((w=n==null?void 0:n.has)==null?void 0:w.call(n,E))===!1)}let l={},u={};for(let E of t)for(let[p,w]of Object.entries(r[E]||{}))Ne.default.validRange(w)&&g(p)?l[`${E}${Pt}${p}`]={old:w}:g(p)&&(u[`${E}${Pt}${p}`]={old:w});!Object.keys(l).length&&!Object.keys(u).length&&OA(`No packages ${n||o?"match the given filters":"present"}`);let h=await Promise.all(Object.keys(l).map(E=>{let[p,w]=E.split(Pt);return OF(w,p,YF,A)}));for(let[E,p,w,d]of h){if(E!=null&&E.error)throw new Error(E.error);let D=typeof ki=="boolean"?ki:ki.has(E.name),k=typeof zc=="boolean"?zc:zc.has(E.name),b=typeof jc=="boolean"?jc:jc.has(E.name),M;Li===!0||((I=Li==null?void 0:Li.has)==null?void 0:I.call(Li,E.name))?M=vF:Ni===!0||((C=Ni==null?void 0:Ni.has)==null?void 0:C.call(Ni,E.name))?M=GF:M=qF;let J=`${p}${Pt}${d}`,G=l[J].old,V=ZF(E,{usePre:k,useRel:b,useGreatest:D,semvers:M,range:G}),P=zF(G,V);!V||G===P?delete l[J]:(l[J].new=P,l[J].info=PF(E.versions[V]||E,w,E.name),(Q=E.time)!=null&&Q[V]&&(l[J].age=$c(E.time[V],{noAffix:!0})))}if(Object.keys(u).length){let E=await Promise.all(Object.entries(u).map(([p,w])=>{let d=p.split(Pt)[1],D=typeof ki=="boolean"?ki:ki.has(d);return XF([p,w],{useGreatest:D})}));E=E.filter(Boolean);for(let p of E||[]){let{key:w,newRange:d,user:D,repo:k,oldRef:b,newRef:M,newDate:J}=p;l[w]={old:u[w].old,new:d,oldPrint:eu.test(b)?b.substring(0,7):b,newPrint:eu.test(M)?M.substring(0,7):M,info:`https://github.com/${D}/${k}`,...J?{age:$c(J,{noAffix:!0})}:{}}}}Object.keys(l).length||OA("All packages are up to date."),O.update||OA(void 0,l);try{WF(e,$F(i,l))}catch(E){OA(new Error(`Error writing ${e}: ${E.message}`))}OA(Is("\u2728 package.json updated"))}AM().catch(OA);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "updates",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.12",
|
|
4
4
|
"description": "Flexible npm dependency update tool",
|
|
5
5
|
"author": "silverwind",
|
|
6
6
|
"repository": "silverwind/updates",
|
|
@@ -25,7 +25,6 @@
|
|
|
25
25
|
],
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"ansi-regex": "6.0.1",
|
|
28
|
-
"del": "7.0.0",
|
|
29
28
|
"esbuild": "0.15.12",
|
|
30
29
|
"eslint": "8.26.0",
|
|
31
30
|
"eslint-config-silverwind": "61.0.0",
|
|
@@ -38,8 +37,6 @@
|
|
|
38
37
|
"registry-auth-token": "4.2.2",
|
|
39
38
|
"restana": "4.9.6",
|
|
40
39
|
"semver": "7.3.8",
|
|
41
|
-
"server-destroy": "1.0.1",
|
|
42
|
-
"tempy": "3.0.0",
|
|
43
40
|
"text-table": "0.2.0",
|
|
44
41
|
"timerel": "5.0.4",
|
|
45
42
|
"versions": "10.1.0",
|