verlog
Version:
Generate Version and Changelog for git repo
4 lines • 104 kB
JavaScript
var Eu=typeof require!="undefined"?require:e=>{throw new Error('Dynamic require of "'+e+'" is not supported')};var E=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Pt=E((wu,Ct)=>{"use strict";var ro=Object.prototype.toString;Ct.exports=function(e){var r;return ro.call(e)==="[object Object]"&&(r=Object.getPrototypeOf(e),r===null||r===Object.getPrototypeOf({}))}});var Ot=E((Cu,bt)=>{"use strict";bt.exports=function(e){return e==null?[]:Array.isArray(e)?e:[e]}});var xt=E((Pu,Nt)=>{"use strict";var to=Pt(),no=Ot(),At=(e,r,t)=>{e[r]||(e[r]=[]),e[r].push(t)},Dt=(e,r,t,n)=>{e[r]||(e[r]={}),e[r][t]=n},io=["stopEarly","unknown","--"];Nt.exports=e=>{e=e||{};let r={};return io.forEach(t=>{e[t]&&(r[t]=e[t])}),Object.keys(e).forEach(t=>{let n=e[t];if(t==="arguments"&&(t="_"),typeof n=="string"&&(n={type:n}),to(n)){let i=n;if(i.type){let o=i.type;o==="string"&&At(r,"string",t),o==="boolean"&&At(r,"boolean",t)}no(i.alias).forEach(o=>{Dt(r,"alias",o,t)}),{}.hasOwnProperty.call(i,"default")&&Dt(r,"default",t,i.default)}}),r}});var Er=E((bu,_t)=>{"use strict";function so(e){let r=!1,t=!1,n=!1;for(let i=0;i<e.length;i++){let s=e[i];r&&/[a-zA-Z]/.test(s)&&s.toUpperCase()===s?(e=e.substr(0,i)+"-"+e.substr(i),r=!1,n=t,t=!0,i++):t&&n&&/[a-zA-Z]/.test(s)&&s.toLowerCase()===s?(e=e.substr(0,i-1)+"-"+e.substr(i-1),n=t,t=!1,r=!0):(r=s.toLowerCase()===s,n=t,t=s.toUpperCase()===s)}return e}_t.exports=function(e){return arguments.length>1?e=Array.from(arguments).map(t=>t.trim()).filter(t=>t.length).join("-"):e=e.trim(),e.length===0?"":e.length===1?e.toLowerCase():/^[a-z0-9]+$/.test(e)?e:(e!==e.toLowerCase()&&(e=so(e)),e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(t,n)=>n.toUpperCase()))}});var Ft=E((Ou,It)=>{It.exports=function(e){if(Array.isArray(e))return e;e=e.trim();for(var r=0,t=null,n=null,i=null,s=[],o=0;o<e.length;o++){if(t=n,n=e.charAt(o),n===" "&&!i){t!==" "&&r++;continue}if(n===i){i=null;continue}else if((n==="'"||n==='"')&&!i){i=n;continue}s[r]||(s[r]=""),s[r]+=n}return s}});var Bt=E((Au,Gt)=>{var Sr=Er(),Ge=require("path"),oo=Ft(),Rt=require("util");function Tt(e,r){r||(r={}),e=oo(e);var t=ao(r.alias||{}),n=co({"short-option-groups":!0,"camel-case-expansion":!0,"dot-notation":!0,"parse-numbers":!0,"boolean-negation":!0,"negation-prefix":"no-","duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"populate--":!1,"combine-arrays":!1,"set-placeholder-key":!1},r.configuration),i=r.default||{},s=r.configObjects||[],o=r.envPrefix,c=n["populate--"],f=c?"--":"_",w={},u=r.__||function(l){return Rt.format.apply(Rt,Array.prototype.slice.call(arguments))},d=null,a={aliases:{},arrays:{},bools:{},strings:{},numbers:{},counts:{},normalize:{},configs:{},defaulted:{},nargs:{},coercions:{},keys:[]},m=/^-[0-9]+(\.[0-9]+)?/,g=new RegExp("^--"+n["negation-prefix"]+"(.+)");[].concat(r.array).filter(Boolean).forEach(function(l){a.arrays[l]=!0,a.keys.push(l)}),[].concat(r.boolean).filter(Boolean).forEach(function(l){a.bools[l]=!0,a.keys.push(l)}),[].concat(r.string).filter(Boolean).forEach(function(l){a.strings[l]=!0,a.keys.push(l)}),[].concat(r.number).filter(Boolean).forEach(function(l){a.numbers[l]=!0,a.keys.push(l)}),[].concat(r.count).filter(Boolean).forEach(function(l){a.counts[l]=!0,a.keys.push(l)}),[].concat(r.normalize).filter(Boolean).forEach(function(l){a.normalize[l]=!0,a.keys.push(l)}),Object.keys(r.narg||{}).forEach(function(l){a.nargs[l]=r.narg[l],a.keys.push(l)}),Object.keys(r.coerce||{}).forEach(function(l){a.coercions[l]=r.coerce[l],a.keys.push(l)}),Array.isArray(r.config)||typeof r.config=="string"?[].concat(r.config).filter(Boolean).forEach(function(l){a.configs[l]=!0}):Object.keys(r.config||{}).forEach(function(l){a.configs[l]=r.config[l]}),pe(r.key,t,r.default,a.arrays),Object.keys(i).forEach(function(l){(a.aliases[l]||[]).forEach(function(h){i[h]=i[l]})});var y={_:[]};Object.keys(a.bools).forEach(function(l){Object.prototype.hasOwnProperty.call(i,l)&&(L(l,i[l]),ue(l))});var A=[];e.indexOf("--")!==-1&&(A=e.slice(e.indexOf("--")+1),e=e.slice(0,e.indexOf("--")));for(var C=0;C<e.length;C++){var _=e[C],H,I,X,k,D,O;if(_.match(/^--.+=/)||!n["short-option-groups"]&&_.match(/^-.+=/))k=_.match(/^--?([^=]+)=([\s\S]*)$/),U(k[1],a.nargs)?(e.splice(C+1,0,k[2]),C=F(C,k[1],e)):U(k[1],a.arrays)&&e.length>C+1?(e.splice(C+1,0,k[2]),C=S(C,k[1],e)):L(k[1],k[2]);else if(_.match(g)&&n["boolean-negation"])I=_.match(g)[1],L(I,!1);else if(_.match(/^--.+/)||!n["short-option-groups"]&&_.match(/^-.+/))I=_.match(/^--?(.+)/)[1],U(I,a.nargs)?C=F(C,I,e):U(I,a.arrays)&&e.length>C+1?C=S(C,I,e):(D=e[C+1],D!==void 0&&(!D.match(/^-/)||D.match(m))&&!U(I,a.bools)&&!U(I,a.counts)||/^(true|false)$/.test(D)?(L(I,D),C++):L(I,he(de(I,a))));else if(_.match(/^-.\..+=/))k=_.match(/^-([^=]+)=([\s\S]*)$/),L(k[1],k[2]);else if(_.match(/^-.\..+/))D=e[C+1],I=_.match(/^-(.\..+)/)[1],D!==void 0&&!D.match(/^-/)&&!U(I,a.bools)&&!U(I,a.counts)?(L(I,D),C++):L(I,he(de(I,a)));else if(_.match(/^-[^-]+/)&&!_.match(m)){X=_.slice(1,-1).split(""),H=!1;for(var P=0;P<X.length;P++){if(D=_.slice(P+2),X[P+1]&&X[P+1]==="="){O=_.slice(P+3),I=X[P],U(I,a.nargs)?(e.splice(C+1,0,O),C=F(C,I,e)):U(I,a.arrays)&&e.length>C+1?(e.splice(C+1,0,O),C=S(C,I,e)):L(I,O),H=!0;break}if(D==="-"){L(X[P],D);continue}if(/[A-Za-z]/.test(X[P])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(D)){L(X[P],D),H=!0;break}if(X[P+1]&&X[P+1].match(/\W/)){L(X[P],D),H=!0;break}else L(X[P],he(de(X[P],a)))}I=_.slice(-1)[0],!H&&I!=="-"&&(U(I,a.nargs)?C=F(C,I,e):U(I,a.arrays)&&e.length>C+1?C=S(C,I,e):(D=e[C+1],D!==void 0&&(!/^(-|--)[^-]/.test(D)||D.match(m))&&!U(I,a.bools)&&!U(I,a.counts)||/^(true|false)$/.test(D)?(L(I,D),C++):L(I,he(de(I,a)))))}else y._.push(G("_",_))}Q(y,!0),Q(y,!1),B(y),R(),oe(y,a.aliases,i),ce(y),n["set-placeholder-key"]&&me(y),Object.keys(a.counts).forEach(function(l){J(y,l.split("."))||L(l,0)}),c&&A.length&&(y[f]=[]),A.forEach(function(l){y[f].push(l)});function F(l,h,b){var v;let x=U(h,a.nargs);var M=0;for(v=l+1;v<b.length&&!b[v].match(/^-[^0-9]/);v++)M++;M<x&&(d=Error(u("Not enough arguments following: %s",h)));let V=Math.min(M,x);for(v=l+1;v<V+l+1;v++)L(h,b[v]);return l+V}function S(l,h,b){for(var v=l+1,x=[],M=l>0,V=l+1;V<b.length;V++){if(/^-/.test(b[V])&&!m.test(b[V])){V===v&&L(h,he("array")),M=!0;break}l=V,x.push(b[V])}return M?L(h,x.map(function(Se){return N(h,Se)})):x.forEach(function(Se){L(h,Se)}),l}function L(l,h){De(l),/-/.test(l)&&n["camel-case-expansion"]&&j(l,Sr(l));var b=N(l,h),v=l.split(".");if(fe(y,v,b),a.aliases[l]&&a.aliases[l].forEach(function(M){M=M.split("."),fe(y,M,b)}),v.length>1&&n["dot-notation"]&&(a.aliases[v[0]]||[]).forEach(function(M){M=M.split(".");var V=[].concat(v);V.shift(),M=M.concat(V),fe(y,M,b)}),U(l,a.normalize)&&!U(l,a.arrays)){var x=[l].concat(a.aliases[l]||[]);x.forEach(function(M){y.__defineSetter__(M,function(V){h=Ge.normalize(V)}),y.__defineGetter__(M,function(){return typeof h=="string"?Ge.normalize(h):h})})}}function j(l,h){a.aliases[l]&&a.aliases[l].length||(a.aliases[l]=[h],w[h]=!0),a.aliases[h]&&a.aliases[h].length||j(h,l)}function N(l,h){(U(l,a.bools)||U(l,a.counts))&&typeof h=="string"&&(h=h==="true");var b=G(l,h);return U(l,a.counts)&&(wt(b)||typeof b=="boolean")&&(b=wr),U(l,a.normalize)&&U(l,a.arrays)&&(Array.isArray(h)?b=h.map(Ge.normalize):b=Ge.normalize(h)),b}function G(l,h){return!U(l,a.strings)&&!U(l,a.coercions)&&(Xe(h)&&n["parse-numbers"]&&Number.isSafeInteger(Math.floor(h))||!wt(h)&&U(l,a.numbers))&&(h=Number(h)),h}function B(l){var h={};oe(h,a.aliases,i),Object.keys(a.configs).forEach(function(b){var v=l[b]||h[b];if(v)try{var x=null,M=Ge.resolve(process.cwd(),v);if(typeof a.configs[b]=="function"){try{x=a.configs[b](M)}catch(V){x=V}if(x instanceof Error){d=x;return}}else x=require(M);q(x)}catch(V){l[b]&&(d=Error(u("Invalid JSON config file: %s",v)))}})}function q(l,h){Object.keys(l).forEach(function(b){var v=l[b],x=h?h+"."+b:b;typeof v=="object"&&v!==null&&!Array.isArray(v)&&n["dot-notation"]?q(v,x):(!J(y,x.split("."))||a.defaulted[x]||a.arrays[x]&&n["combine-arrays"])&&L(x,v)})}function R(){typeof s!="undefined"&&s.forEach(function(l){q(l)})}function Q(l,h){if(typeof o!="undefined"){var b=typeof o=="string"?o:"";Object.keys(process.env).forEach(function(v){if(b===""||v.lastIndexOf(b,0)===0){var x=v.split("__").map(function(M,V){return V===0&&(M=M.substring(b.length)),Sr(M)});(h&&a.configs[x.join(".")]||!h)&&(!J(l,x)||a.defaulted[x.join(".")])&&L(x.join("."),process.env[v])}})}}function ce(l){var h,b={};Object.keys(l).forEach(function(v){if(!b.hasOwnProperty(v)&&(h=U(v,a.coercions),typeof h=="function"))try{var x=h(l[v]);[].concat(a.aliases[v]||[],v).forEach(M=>{b[M]=l[M]=x})}catch(M){d=M}})}function me(l){return a.keys.forEach(h=>{~h.indexOf(".")||typeof l[h]=="undefined"&&(l[h]=void 0)}),l}function oe(l,h,b){Object.keys(b).forEach(function(v){J(l,v.split("."))||(fe(l,v.split("."),b[v]),(h[v]||[]).forEach(function(x){J(l,x.split("."))||fe(l,x.split("."),b[v])}))})}function J(l,h){var b=l;n["dot-notation"]||(h=[h.join(".")]),h.slice(0,-1).forEach(function(x){b=b[x]||{}});var v=h[h.length-1];return typeof b!="object"?!1:v in b}function fe(l,h,b){var v=l;n["dot-notation"]||(h=[h.join(".")]),h.slice(0,-1).forEach(function(le,Lu){typeof v=="object"&&v[le]===void 0&&(v[le]={}),typeof v[le]!="object"||Array.isArray(v[le])?(Array.isArray(v[le])?v[le].push({}):v[le]=[v[le],{}],v=v[le][v[le].length-1]):v=v[le]});var x=h[h.length-1],M=U(h.join("."),a.arrays),V=Array.isArray(b),Se=n["duplicate-arguments-array"];b===wr?v[x]=wr(v[x]):Array.isArray(v[x])?Se&&M&&V?v[x]=n["flatten-duplicate-arrays"]?v[x].concat(b):[v[x]].concat([b]):!Se&&Boolean(M)===Boolean(V)?v[x]=b:v[x]=v[x].concat([b]):v[x]===void 0&&M?v[x]=V?b:[b]:Se&&!(v[x]===void 0||U(x,a.bools)||U(h.join("."),a.bools)||U(x,a.counts))?v[x]=[v[x],b]:v[x]=b}function pe(){Array.prototype.slice.call(arguments).forEach(function(l){Object.keys(l||{}).forEach(function(h){a.aliases[h]||(a.aliases[h]=[].concat(t[h]||[]),a.aliases[h].concat(h).forEach(function(b){if(/-/.test(b)&&n["camel-case-expansion"]){var v=Sr(b);v!==h&&a.aliases[h].indexOf(v)===-1&&(a.aliases[h].push(v),w[v]=!0)}}),a.aliases[h].forEach(function(b){a.aliases[b]=[h].concat(a.aliases[h].filter(function(v){return b!==v}))}))})})}function U(l,h){var b=!1,v=[].concat(a.aliases[l]||[],l);return v.forEach(function(x){h[x]&&(b=h[x])}),b}function ue(l){[].concat(a.aliases[l]||[],l).forEach(function(h){a.defaulted[h]=!0})}function De(l){[].concat(a.aliases[l]||[],l).forEach(function(h){delete a.defaulted[h]})}function he(l){var h={boolean:!0,string:"",number:void 0,array:[]};return h[l]}function de(l,h){var b="boolean";return U(l,h.strings)?b="string":U(l,h.numbers)?b="number":U(l,h.arrays)&&(b="array"),b}function Xe(l){return typeof l=="number"||/^0x[0-9a-f]+$/i.test(l)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(l)}function wt(l){return l===void 0}return{argv:y,error:d,aliases:a.aliases,newAliases:w,configuration:n}}function ao(e){var r=[],t=!0,n={};for(Object.keys(e).forEach(function(c){r.push([].concat(e[c],c))});t;){t=!1;for(var i=0;i<r.length;i++)for(var s=i+1;s<r.length;s++){var o=r[i].filter(function(c){return r[s].indexOf(c)!==-1});if(o.length){r[i]=r[i].concat(r[s]),r.splice(s,1),t=!0;break}}}return r.forEach(function(c){c=c.filter(function(f,w,u){return u.indexOf(f)===w}),n[c.pop()]=c}),n}function co(e,r){var t={};return r=r||{},Object.keys(e).forEach(function(n){t[n]=e[n]}),Object.keys(r).forEach(function(n){t[n]=r[n]}),t}function wr(e){return e!==void 0?e+1:1}function jt(e,r){var t=Tt(e.slice(),r);return t.argv}jt.detailed=function(e,r){return Tt(e.slice(),r)};Gt.exports=jt});var $t=E((Du,qt)=>{"use strict";var Ut=e=>typeof e=="object"&&e!==null&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date);qt.exports=function e(r,t,n,i){if(n=Object.assign({deep:!1,target:{}},n),i=i||new WeakMap,i.has(r))return i.get(r);i.set(r,n.target);let s=n.target;delete n.target;for(let o of Object.keys(r)){let c=r[o],f=t(o,c,r),w=f[1];n.deep&&Ut(w)&&(Array.isArray(w)?w=w.map(u=>Ut(u)?e(u,t,n,i):u):w=e(w,t,n,i)),s[f[0]]=w}return s}});var Yt=E((Nu,zt)=>{"use strict";var Mt=class{constructor(r){if(r=Object.assign({},r),!(r.maxSize&&r.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=r.maxSize,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(r,t){this.cache.set(r,t),this._size++,this._size>=this.maxSize&&(this._size=0,this.oldCache=this.cache,this.cache=new Map)}get(r){if(this.cache.has(r))return this.cache.get(r);if(this.oldCache.has(r)){let t=this.oldCache.get(r);return this._set(r,t),t}}set(r,t){return this.cache.has(r)?this.cache.set(r,t):this._set(r,t),this}has(r){return this.cache.has(r)||this.oldCache.has(r)}peek(r){if(this.cache.has(r))return this.cache.get(r);if(this.oldCache.has(r))return this.oldCache.get(r)}delete(r){this.cache.delete(r)&&this._size--,this.oldCache.delete(r)}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let r of this)yield r[0]}*values(){for(let r of this)yield r[1]}*[Symbol.iterator](){for(let r of this.cache)yield r;for(let r of this.oldCache)this.cache.has(r[0])||(yield r)}get size(){let r=0;for(let t of this.oldCache)this.cache.has(t[0])||r++;return this._size+r}};zt.exports=Mt});var kt=E((xu,Ht)=>{"use strict";var uo=$t(),lo=Er(),fo=Yt(),po=(e,r)=>e.some(t=>typeof t=="string"?t===r:t.test(r)),Cr=new fo({maxSize:1e5}),Wt=(e,r)=>{r=Object.assign({deep:!1},r);let t=r.exclude;return uo(e,(n,i)=>{if(!(t&&po(t,n)))if(Cr.has(n))n=Cr.get(n);else{let s=lo(n);n.length<100&&Cr.set(n,s),n=s}return[n,i]},{deep:r.deep})};Ht.exports=(e,r)=>Array.isArray(e)?Object.keys(e).map(t=>Wt(e[t],r)):Wt(e,r)});var Xt=E((_u,Vt)=>{"use strict";Vt.exports=function(e,r){for(var t={},n=Object.keys(e),i=0;i<n.length;i++){var s=n[i],o=r(s,e[s],e);t[o[0]]=o[1]}return t}});var Kt=E((Iu,Zt)=>{"use strict";Zt.exports=function(e,r){if(typeof e!="string")throw new TypeError("Expected a string");return r=typeof r=="undefined"?"_":r,e.replace(/([a-z\d])([A-Z])/g,"$1"+r+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+r+"$2").toLowerCase()}});var Qt=E((Fu,Jt)=>{"use strict";var ho=Xt(),mo=Kt();Jt.exports=function(e,r,t){typeof r!="string"&&(t=r,r=null),t=t||{},r=r||t.separator;var n=t.exclude||[];return ho(e,function(i,s){return i=n.indexOf(i)===-1?mo(i,r):i,[i,s]})}});var en=E((Ru,Ze)=>{"use strict";Ze.exports=e=>e.replace(/^[\r\n]+/,"").replace(/[\r\n]+$/,"");Ze.exports.start=e=>e.replace(/^[\r\n]+/,"");Ze.exports.end=e=>e.replace(/[\r\n]+$/,"")});var tn=E((Tu,rn)=>{"use strict";rn.exports=e=>{let r=e.match(/^[ \t]*(?=\S)/gm);if(!r)return e;let t=Math.min.apply(Math,r.map(i=>i.length)),n=new RegExp(`^[ \\t]{${t}}`,"gm");return t>0?e.replace(n,""):e}});var sn=E((ju,nn)=>{"use strict";nn.exports=(e,r,t)=>{let n=typeof t=="object"?Object.assign({indent:" "},t):{indent:t||" "};if(r=r===void 0?1:r,typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof r!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof r}\``);if(typeof n.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);if(r===0)return e;let i=n.includeEmptyLines?/^/mg:/^(?!\s*$)/mg;return e.replace(i,n.indent.repeat(r))}});var an=E((Gu,on)=>{"use strict";var vo=tn(),go=sn();on.exports=(e,r,t)=>go(vo(e),r||0,t)});var un=E((Bu,Pr)=>{"use strict";var cn=require("fs");Pr.exports=e=>new Promise(r=>{cn.access(e,t=>{r(!t)})});Pr.exports.sync=e=>{try{return cn.accessSync(e),!0}catch(r){return!1}}});var fn=E((Uu,ln)=>{"use strict";ln.exports=e=>new Promise(r=>{r(e())})});var hn=E((qu,pn)=>{"use strict";var yo=fn();pn.exports=e=>{if(e<1)throw new TypeError("Expected `concurrency` to be a number from 1 and up");let r=[],t=0,n=()=>{t--,r.length>0&&r.shift()()};return i=>new Promise((s,o)=>{let c=()=>{t++,yo(i).then(f=>{s(f),n()},f=>{o(f),n()})};t<e?c():r.push(c)})}});var vn=E(($u,mn)=>{"use strict";var dn=hn(),br=class extends Error{constructor(r){super();this.value=r}},Lo=e=>Promise.all(e).then(r=>r[1]===!0&&Promise.reject(new br(r[0])));mn.exports=(e,r,t)=>{t=Object.assign({concurrency:1/0,preserveOrder:!0},t);let n=dn(t.concurrency),i=Array.from(e).map(o=>[o,n(()=>Promise.resolve(o).then(r))]),s=dn(t.preserveOrder?1:1/0);return Promise.all(i.map(o=>s(()=>Lo(o)))).then(()=>{}).catch(o=>o instanceof br?o.value:Promise.reject(o))}});var Ln=E((Mu,Or)=>{"use strict";var gn=require("path"),yn=un(),Eo=vn();Or.exports=(e,r)=>(r=Object.assign({cwd:process.cwd()},r),Eo(e,t=>yn(gn.resolve(r.cwd,t)),r));Or.exports.sync=(e,r)=>{r=Object.assign({cwd:process.cwd()},r);for(let t of e)if(yn.sync(gn.resolve(r.cwd,t)))return t}});var Sn=E((zu,Ar)=>{"use strict";var ge=require("path"),En=Ln();Ar.exports=(e,r)=>{r=r||{};let t=ge.resolve(r.cwd||""),n=ge.parse(t).root,i=[].concat(e);return new Promise(s=>{(function o(c){En(i,{cwd:c}).then(f=>{f?s(ge.join(c,f)):c===n?s(null):o(ge.dirname(c))})})(t)})};Ar.exports.sync=(e,r)=>{r=r||{};let t=ge.resolve(r.cwd||""),n=ge.parse(t).root,i=[].concat(e);for(;;){let s=En.sync(i,{cwd:t});if(s)return ge.join(t,s);if(t===n)return null;t=ge.dirname(t)}}});var Cn=E((Yu,wn)=>{var ye=require("constants"),So=process.cwd,Ke=null,wo=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Ke||(Ke=So.call(process)),Ke};try{process.cwd()}catch(e){}typeof process.chdir=="function"&&(Dr=process.chdir,process.chdir=function(e){Ke=null,Dr.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Dr));var Dr;wn.exports=Co;function Co(e){ye.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&r(e),e.lutimes||t(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=c(e.stat),e.fstat=c(e.fstat),e.lstat=c(e.lstat),e.statSync=f(e.statSync),e.fstatSync=f(e.fstatSync),e.lstatSync=f(e.lstatSync),e.lchmod||(e.lchmod=function(u,d,a){a&&process.nextTick(a)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(u,d,a,m){m&&process.nextTick(m)},e.lchownSync=function(){}),wo==="win32"&&(e.rename=function(u){return function(d,a,m){var g=Date.now(),y=0;u(d,a,function A(C){if(C&&(C.code==="EACCES"||C.code==="EPERM")&&Date.now()-g<6e4){setTimeout(function(){e.stat(a,function(_,H){_&&_.code==="ENOENT"?u(d,a,A):m(C)})},y),y<100&&(y+=10);return}m&&m(C)})}}(e.rename)),e.read=function(u){function d(a,m,g,y,A,C){var _;if(C&&typeof C=="function"){var H=0;_=function(I,X,k){if(I&&I.code==="EAGAIN"&&H<10)return H++,u.call(e,a,m,g,y,A,_);C.apply(this,arguments)}}return u.call(e,a,m,g,y,A,_)}return Object.setPrototypeOf&&Object.setPrototypeOf(d,u),d}(e.read),e.readSync=function(u){return function(d,a,m,g,y){for(var A=0;;)try{return u.call(e,d,a,m,g,y)}catch(C){if(C.code==="EAGAIN"&&A<10){A++;continue}throw C}}}(e.readSync);function r(u){u.lchmod=function(d,a,m){u.open(d,ye.O_WRONLY|ye.O_SYMLINK,a,function(g,y){if(g){m&&m(g);return}u.fchmod(y,a,function(A){u.close(y,function(C){m&&m(A||C)})})})},u.lchmodSync=function(d,a){var m=u.openSync(d,ye.O_WRONLY|ye.O_SYMLINK,a),g=!0,y;try{y=u.fchmodSync(m,a),g=!1}finally{if(g)try{u.closeSync(m)}catch(A){}else u.closeSync(m)}return y}}function t(u){ye.hasOwnProperty("O_SYMLINK")?(u.lutimes=function(d,a,m,g){u.open(d,ye.O_SYMLINK,function(y,A){if(y){g&&g(y);return}u.futimes(A,a,m,function(C){u.close(A,function(_){g&&g(C||_)})})})},u.lutimesSync=function(d,a,m){var g=u.openSync(d,ye.O_SYMLINK),y,A=!0;try{y=u.futimesSync(g,a,m),A=!1}finally{if(A)try{u.closeSync(g)}catch(C){}else u.closeSync(g)}return y}):(u.lutimes=function(d,a,m,g){g&&process.nextTick(g)},u.lutimesSync=function(){})}function n(u){return u&&function(d,a,m){return u.call(e,d,a,function(g){w(g)&&(g=null),m&&m.apply(this,arguments)})}}function i(u){return u&&function(d,a){try{return u.call(e,d,a)}catch(m){if(!w(m))throw m}}}function s(u){return u&&function(d,a,m,g){return u.call(e,d,a,m,function(y){w(y)&&(y=null),g&&g.apply(this,arguments)})}}function o(u){return u&&function(d,a,m){try{return u.call(e,d,a,m)}catch(g){if(!w(g))throw g}}}function c(u){return u&&function(d,a,m){typeof a=="function"&&(m=a,a=null);function g(y,A){A&&(A.uid<0&&(A.uid+=4294967296),A.gid<0&&(A.gid+=4294967296)),m&&m.apply(this,arguments)}return a?u.call(e,d,a,g):u.call(e,d,g)}}function f(u){return u&&function(d,a){var m=a?u.call(e,d,a):u.call(e,d);return m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296),m}}function w(u){if(!u||u.code==="ENOSYS")return!0;var d=!process.getuid||process.getuid()!==0;return!!(d&&(u.code==="EINVAL"||u.code==="EPERM"))}}});var On=E((Wu,bn)=>{var Pn=require("stream").Stream;bn.exports=Po;function Po(e){return{ReadStream:r,WriteStream:t};function r(n,i){if(!(this instanceof r))return new r(n,i);Pn.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),c=0,f=o.length;c<f;c++){var w=o[c];this[w]=i[w]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(u,d){if(u){s.emit("error",u),s.readable=!1;return}s.fd=d,s.emit("open",d),s._read()})}function t(n,i){if(!(this instanceof t))return new t(n,i);Pn.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),o=0,c=s.length;o<c;o++){var f=s[o];this[f]=i[f]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Dn=E((Hu,An)=>{"use strict";An.exports=Oo;var bo=Object.getPrototypeOf||function(e){return e.__proto__};function Oo(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var r={__proto__:bo(e)};else var r=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))}),r}});var In=E((ku,_r)=>{var Z=require("fs"),Ao=Cn(),Do=On(),No=Dn(),Je=require("util"),re,Qe;typeof Symbol=="function"&&typeof Symbol.for=="function"?(re=Symbol.for("graceful-fs.queue"),Qe=Symbol.for("graceful-fs.previous")):(re="___graceful-fs.queue",Qe="___graceful-fs.previous");function xo(){}function Nn(e,r){Object.defineProperty(e,re,{get:function(){return r}})}var we=xo;Je.debuglog?we=Je.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(we=function(){var e=Je.format.apply(Je,arguments);e="GFS4: "+e.split(/\n/).join(`
GFS4: `),console.error(e)});Z[re]||(xn=global[re]||[],Nn(Z,xn),Z.close=function(e){function r(t,n){return e.call(Z,t,function(i){i||_n(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(r,Qe,{value:e}),r}(Z.close),Z.closeSync=function(e){function r(t){e.apply(Z,arguments),_n()}return Object.defineProperty(r,Qe,{value:e}),r}(Z.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){we(Z[re]),require("assert").equal(Z[re].length,0)}));var xn;global[re]||Nn(global,Z[re]);_r.exports=Nr(No(Z));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Z.__patched&&(_r.exports=Nr(Z),Z.__patched=!0);function Nr(e){Ao(e),e.gracefulify=Nr,e.createReadStream=I,e.createWriteStream=X;var r=e.readFile;e.readFile=t;function t(O,P,F){return typeof P=="function"&&(F=P,P=null),S(O,P,F);function S(L,j,N,G){return r(L,j,function(B){B&&(B.code==="EMFILE"||B.code==="ENFILE")?Ne([S,[L,j,N],B,G||Date.now(),Date.now()]):typeof N=="function"&&N.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(O,P,F,S){return typeof F=="function"&&(S=F,F=null),L(O,P,F,S);function L(j,N,G,B,q){return n(j,N,G,function(R){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Ne([L,[j,N,G,B],R,q||Date.now(),Date.now()]):typeof B=="function"&&B.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(O,P,F,S){return typeof F=="function"&&(S=F,F=null),L(O,P,F,S);function L(j,N,G,B,q){return s(j,N,G,function(R){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Ne([L,[j,N,G,B],R,q||Date.now(),Date.now()]):typeof B=="function"&&B.apply(this,arguments)})}}var c=e.copyFile;c&&(e.copyFile=f);function f(O,P,F,S){return typeof F=="function"&&(S=F,F=0),L(O,P,F,S);function L(j,N,G,B,q){return c(j,N,G,function(R){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Ne([L,[j,N,G,B],R,q||Date.now(),Date.now()]):typeof B=="function"&&B.apply(this,arguments)})}}var w=e.readdir;e.readdir=u;function u(O,P,F){return typeof P=="function"&&(F=P,P=null),S(O,P,F);function S(L,j,N,G){return w(L,j,function(B,q){B&&(B.code==="EMFILE"||B.code==="ENFILE")?Ne([S,[L,j,N],B,G||Date.now(),Date.now()]):(q&&q.sort&&q.sort(),typeof N=="function"&&N.call(this,B,q))})}}if(process.version.substr(0,4)==="v0.8"){var d=Do(e);A=d.ReadStream,_=d.WriteStream}var a=e.ReadStream;a&&(A.prototype=Object.create(a.prototype),A.prototype.open=C);var m=e.WriteStream;m&&(_.prototype=Object.create(m.prototype),_.prototype.open=H),Object.defineProperty(e,"ReadStream",{get:function(){return A},set:function(O){A=O},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return _},set:function(O){_=O},enumerable:!0,configurable:!0});var g=A;Object.defineProperty(e,"FileReadStream",{get:function(){return g},set:function(O){g=O},enumerable:!0,configurable:!0});var y=_;Object.defineProperty(e,"FileWriteStream",{get:function(){return y},set:function(O){y=O},enumerable:!0,configurable:!0});function A(O,P){return this instanceof A?(a.apply(this,arguments),this):A.apply(Object.create(A.prototype),arguments)}function C(){var O=this;D(O.path,O.flags,O.mode,function(P,F){P?(O.autoClose&&O.destroy(),O.emit("error",P)):(O.fd=F,O.emit("open",F),O.read())})}function _(O,P){return this instanceof _?(m.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}function H(){var O=this;D(O.path,O.flags,O.mode,function(P,F){P?(O.destroy(),O.emit("error",P)):(O.fd=F,O.emit("open",F))})}function I(O,P){return new e.ReadStream(O,P)}function X(O,P){return new e.WriteStream(O,P)}var k=e.open;e.open=D;function D(O,P,F,S){return typeof F=="function"&&(S=F,F=null),L(O,P,F,S);function L(j,N,G,B,q){return k(j,N,G,function(R,Q){R&&(R.code==="EMFILE"||R.code==="ENFILE")?Ne([L,[j,N,G,B],R,q||Date.now(),Date.now()]):typeof B=="function"&&B.apply(this,arguments)})}}return e}function Ne(e){we("ENQUEUE",e[0].name,e[1]),Z[re].push(e),xr()}var er;function _n(){for(var e=Date.now(),r=0;r<Z[re].length;++r)Z[re][r].length>2&&(Z[re][r][3]=e,Z[re][r][4]=e);xr()}function xr(){if(clearTimeout(er),er=void 0,Z[re].length!==0){var e=Z[re].shift(),r=e[0],t=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)we("RETRY",r.name,t),r.apply(null,t);else if(Date.now()-i>=6e4){we("TIMEOUT",r.name,t);var o=t.pop();typeof o=="function"&&o.call(null,n)}else{var c=Date.now()-s,f=Math.max(s-i,1),w=Math.min(f*1.2,100);c>=w?(we("RETRY",r.name,t),r.apply(null,t.concat([i]))):Z[re].push(e)}er===void 0&&(er=setTimeout(xr,0))}}});var Rn=E((Vu,Fn)=>{"use strict";Fn.exports=e=>{if(typeof e!="string")throw new TypeError("Expected a string, got "+typeof e);return e.charCodeAt(0)===65279?e.slice(1):e}});var jn=E((Xu,Tn)=>{"use strict";Tn.exports=function(r){return r?r instanceof Array||Array.isArray(r)||r.length>=0&&r.splice instanceof Function:!1}});var Bn=E((Zu,Gn)=>{"use strict";var _o=require("util"),Io=jn(),Ir=function(r,t){(!r||r.constructor!==String)&&(t=r||{},r=Error.name);var n=function i(s){if(!this)return new i(s);s=s instanceof Error?s.message:s||this.message,Error.call(this,s),Error.captureStackTrace(this,n),this.name=r,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var u=s.split(/\r?\n/g);for(var d in t)if(!!t.hasOwnProperty(d)){var a=t[d];"message"in a&&(u=a.message(this[d],u)||u,Io(u)||(u=[u]))}return u.join(`
`)},set:function(u){s=u}});var o=null,c=Object.getOwnPropertyDescriptor(this,"stack"),f=c.get,w=c.value;delete c.value,delete c.writable,c.set=function(u){o=u},c.get=function(){var u=(o||(f?f.call(this):w)).split(/\r?\n+/g);o||(u[0]=this.name+": "+this.message);var d=1;for(var a in t)if(!!t.hasOwnProperty(a)){var m=t[a];if("line"in m){var g=m.line(this[a]);g&&u.splice(d++,0," "+g)}"stack"in m&&m.stack(this[a],u)}return u.join(`
`)},Object.defineProperty(this,"stack",c)};return Object.setPrototypeOf?(Object.setPrototypeOf(n.prototype,Error.prototype),Object.setPrototypeOf(n,Error)):_o.inherits(n,Error),n};Ir.append=function(e,r){return{message:function(t,n){return t=t||r,t&&(n[0]+=" "+e.replace("%s",t.toString())),n}}};Ir.line=function(e,r){return{line:function(t){return t=t||r,t?e.replace("%s",t.toString()):null}}};Gn.exports=Ir});var qn=E((Ku,Un)=>{"use strict";Un.exports=Fo;function Fo(e,r,t){t=t||20;try{return JSON.parse(e,r)}catch(n){if(typeof e!="string"){let o=Array.isArray(e)&&e.length===0,c="Cannot parse "+(o?"an empty array":String(e));throw new TypeError(c)}let i=n.message.match(/^Unexpected token.*position\s+(\d+)/i),s=i?+i[1]:n.message.match(/^Unexpected end of JSON.*/i)?e.length-1:null;if(s!=null){let o=s<=t?0:s-t,c=s+t>=e.length?e.length:s+t;n.message+=` while parsing near '${o===0?"":"..."}${e.slice(o,c)}${c===e.length?"":"..."}'`}else n.message+=` while parsing '${e.slice(0,t*2)}'`;throw n}}});var zn=E((Ju,Mn)=>{"use strict";var $n=Bn(),Ro=qn(),To=$n("JSONError",{fileName:$n.append("in %s")});Mn.exports=(e,r,t)=>{typeof r=="string"&&(t=r,r=null);try{try{return JSON.parse(e,r)}catch(n){throw Ro(e,r),n}}catch(n){n.message=n.message.replace(/\n/g,"");let i=new To(n);throw t&&(i.fileName=t),i}}});var Hn=E((Qu,Wn)=>{"use strict";var Yn=(e,r)=>function(){let t=r.promiseModule,n=new Array(arguments.length);for(let i=0;i<arguments.length;i++)n[i]=arguments[i];return new t((i,s)=>{r.errorFirst?n.push(function(o,c){if(r.multiArgs){let f=new Array(arguments.length-1);for(let w=1;w<arguments.length;w++)f[w-1]=arguments[w];o?(f.unshift(o),s(f)):i(f)}else o?s(o):i(c)}):n.push(function(o){if(r.multiArgs){let c=new Array(arguments.length-1);for(let f=0;f<arguments.length;f++)c[f]=arguments[f];i(c)}else i(o)}),e.apply(this,n)})};Wn.exports=(e,r)=>{r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},r);let t=i=>{let s=o=>typeof o=="string"?i===o:o.test(i);return r.include?r.include.some(s):!r.exclude.some(s)},n;typeof e=="function"?n=function(){return r.excludeMain?e.apply(this,arguments):Yn(e,r).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(e));for(let i in e){let s=e[i];n[i]=typeof s=="function"&&t(i)?Yn(s,r):s}return n}});var Xn=E((el,Fr)=>{"use strict";var jo=require("path"),kn=In(),Go=Rn(),Bo=zn(),Uo=Hn(),Vn=(e,r)=>Bo(Go(e),jo.relative(".",r));Fr.exports=e=>Uo(kn.readFile)(e,"utf8").then(r=>Vn(r,e));Fr.exports.sync=e=>Vn(kn.readFileSync(e,"utf8"),e)});var Jn=E((rl,Kn)=>{"use strict";var Zn=(e,r)=>function(){let t=r.promiseModule,n=new Array(arguments.length);for(let i=0;i<arguments.length;i++)n[i]=arguments[i];return new t((i,s)=>{r.errorFirst?n.push(function(o,c){if(r.multiArgs){let f=new Array(arguments.length-1);for(let w=1;w<arguments.length;w++)f[w-1]=arguments[w];o?(f.unshift(o),s(f)):i(f)}else o?s(o):i(c)}):n.push(function(o){if(r.multiArgs){let c=new Array(arguments.length-1);for(let f=0;f<arguments.length;f++)c[f]=arguments[f];i(c)}else i(o)}),e.apply(this,n)})};Kn.exports=(e,r)=>{r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},r);let t=i=>{let s=o=>typeof o=="string"?i===o:o.test(i);return r.include?r.include.some(s):!r.exclude.some(s)},n;typeof e=="function"?n=function(){return r.excludeMain?e.apply(this,arguments):Zn(e,r).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(e));for(let i in e){let s=e[i];n[i]=typeof s=="function"&&t(i)?Zn(s,r):s}return n}});var ei=E(Ce=>{"use strict";var Qn=require("fs"),qo=Jn();function Rr(e,r,t){return typeof t!="string"?Promise.reject(new TypeError(`Expected a string, got ${typeof t}`)):qo(Qn[e])(t).then(n=>n[r]()).catch(n=>{if(n.code==="ENOENT")return!1;throw n})}function Tr(e,r,t){if(typeof t!="string")throw new TypeError(`Expected a string, got ${typeof t}`);try{return Qn[e](t)[r]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}Ce.file=Rr.bind(null,"stat","isFile");Ce.dir=Rr.bind(null,"stat","isDirectory");Ce.symlink=Rr.bind(null,"lstat","isSymbolicLink");Ce.fileSync=Tr.bind(null,"statSync","isFile");Ce.dirSync=Tr.bind(null,"statSync","isDirectory");Ce.symlinkSync=Tr.bind(null,"lstatSync","isSymbolicLink")});var gi=E((T,vi)=>{T=vi.exports=z;var Y;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?Y=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:Y=function(){};T.SEMVER_SPEC_VERSION="2.0.0";var jr=256,rr=Number.MAX_SAFE_INTEGER||9007199254740991,Gr=16,W=T.re=[],p=T.src=[],$=0,xe=$++;p[xe]="0|[1-9]\\d*";var _e=$++;p[_e]="[0-9]+";var Br=$++;p[Br]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var ri=$++;p[ri]="("+p[xe]+")\\.("+p[xe]+")\\.("+p[xe]+")";var ti=$++;p[ti]="("+p[_e]+")\\.("+p[_e]+")\\.("+p[_e]+")";var Ur=$++;p[Ur]="(?:"+p[xe]+"|"+p[Br]+")";var qr=$++;p[qr]="(?:"+p[_e]+"|"+p[Br]+")";var $r=$++;p[$r]="(?:-("+p[Ur]+"(?:\\."+p[Ur]+")*))";var Mr=$++;p[Mr]="(?:-?("+p[qr]+"(?:\\."+p[qr]+")*))";var zr=$++;p[zr]="[0-9A-Za-z-]+";var Be=$++;p[Be]="(?:\\+("+p[zr]+"(?:\\."+p[zr]+")*))";var Yr=$++,ni="v?"+p[ri]+p[$r]+"?"+p[Be]+"?";p[Yr]="^"+ni+"$";var Wr="[v=\\s]*"+p[ti]+p[Mr]+"?"+p[Be]+"?",Hr=$++;p[Hr]="^"+Wr+"$";var Ie=$++;p[Ie]="((?:<|>)?=?)";var tr=$++;p[tr]=p[_e]+"|x|X|\\*";var nr=$++;p[nr]=p[xe]+"|x|X|\\*";var Pe=$++;p[Pe]="[v=\\s]*("+p[nr]+")(?:\\.("+p[nr]+")(?:\\.("+p[nr]+")(?:"+p[$r]+")?"+p[Be]+"?)?)?";var Fe=$++;p[Fe]="[v=\\s]*("+p[tr]+")(?:\\.("+p[tr]+")(?:\\.("+p[tr]+")(?:"+p[Mr]+")?"+p[Be]+"?)?)?";var ii=$++;p[ii]="^"+p[Ie]+"\\s*"+p[Pe]+"$";var si=$++;p[si]="^"+p[Ie]+"\\s*"+p[Fe]+"$";var oi=$++;p[oi]="(?:^|[^\\d])(\\d{1,"+Gr+"})(?:\\.(\\d{1,"+Gr+"}))?(?:\\.(\\d{1,"+Gr+"}))?(?:$|[^\\d])";var ir=$++;p[ir]="(?:~>?)";var sr=$++;p[sr]="(\\s*)"+p[ir]+"\\s+";W[sr]=new RegExp(p[sr],"g");var $o="$1~",ai=$++;p[ai]="^"+p[ir]+p[Pe]+"$";var ci=$++;p[ci]="^"+p[ir]+p[Fe]+"$";var or=$++;p[or]="(?:\\^)";var ar=$++;p[ar]="(\\s*)"+p[or]+"\\s+";W[ar]=new RegExp(p[ar],"g");var Mo="$1^",ui=$++;p[ui]="^"+p[or]+p[Pe]+"$";var li=$++;p[li]="^"+p[or]+p[Fe]+"$";var kr=$++;p[kr]="^"+p[Ie]+"\\s*("+Wr+")$|^$";var Vr=$++;p[Vr]="^"+p[Ie]+"\\s*("+ni+")$|^$";var Ue=$++;p[Ue]="(\\s*)"+p[Ie]+"\\s*("+Wr+"|"+p[Pe]+")";W[Ue]=new RegExp(p[Ue],"g");var zo="$1$2$3",fi=$++;p[fi]="^\\s*("+p[Pe]+")\\s+-\\s+("+p[Pe]+")\\s*$";var pi=$++;p[pi]="^\\s*("+p[Fe]+")\\s+-\\s+("+p[Fe]+")\\s*$";var hi=$++;p[hi]="(<|>)?=?\\s*\\*";for(Le=0;Le<$;Le++)Y(Le,p[Le]),W[Le]||(W[Le]=new RegExp(p[Le]));var Le;T.parse=be;function be(e,r){if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),e instanceof z)return e;if(typeof e!="string"||e.length>jr)return null;var t=r.loose?W[Hr]:W[Yr];if(!t.test(e))return null;try{return new z(e,r)}catch(n){return null}}T.valid=Yo;function Yo(e,r){var t=be(e,r);return t?t.version:null}T.clean=Wo;function Wo(e,r){var t=be(e.trim().replace(/^[=v]+/,""),r);return t?t.version:null}T.SemVer=z;function z(e,r){if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),e instanceof z){if(e.loose===r.loose)return e;e=e.version}else if(typeof e!="string")throw new TypeError("Invalid Version: "+e);if(e.length>jr)throw new TypeError("version is longer than "+jr+" characters");if(!(this instanceof z))return new z(e,r);Y("SemVer",e,r),this.options=r,this.loose=!!r.loose;var t=e.trim().match(r.loose?W[Hr]:W[Yr]);if(!t)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>rr||this.major<0)throw new TypeError("Invalid major version");if(this.minor>rr||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>rr||this.patch<0)throw new TypeError("Invalid patch version");t[4]?this.prerelease=t[4].split(".").map(function(n){if(/^[0-9]+$/.test(n)){var i=+n;if(i>=0&&i<rr)return i}return n}):this.prerelease=[],this.build=t[5]?t[5].split("."):[],this.format()}z.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version};z.prototype.toString=function(){return this.version};z.prototype.compare=function(e){return Y("SemVer.compare",this.version,this.options,e),e instanceof z||(e=new z(e,this.options)),this.compareMain(e)||this.comparePre(e)};z.prototype.compareMain=function(e){return e instanceof z||(e=new z(e,this.options)),Re(this.major,e.major)||Re(this.minor,e.minor)||Re(this.patch,e.patch)};z.prototype.comparePre=function(e){if(e instanceof z||(e=new z(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;var r=0;do{var t=this.prerelease[r],n=e.prerelease[r];if(Y("prerelease compare",r,t,n),t===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(t===void 0)return-1;if(t===n)continue;return Re(t,n)}while(++r)};z.prototype.inc=function(e,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r),this.inc("pre",r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r),this.inc("pre",r);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{for(var t=this.prerelease.length;--t>=0;)typeof this.prerelease[t]=="number"&&(this.prerelease[t]++,t=-2);t===-1&&this.prerelease.push(0)}r&&(this.prerelease[0]===r?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this};T.inc=Ho;function Ho(e,r,t,n){typeof t=="string"&&(n=t,t=void 0);try{return new z(e,t).inc(r,n).version}catch(i){return null}}T.diff=ko;function ko(e,r){if(Xr(e,r))return null;var t=be(e),n=be(r),i="";if(t.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in t)if((o==="major"||o==="minor"||o==="patch")&&t[o]!==n[o])return i+o;return s}T.compareIdentifiers=Re;var di=/^[0-9]+$/;function Re(e,r){var t=di.test(e),n=di.test(r);return t&&n&&(e=+e,r=+r),e===r?0:t&&!n?-1:n&&!t?1:e<r?-1:1}T.rcompareIdentifiers=Vo;function Vo(e,r){return Re(r,e)}T.major=Xo;function Xo(e,r){return new z(e,r).major}T.minor=Zo;function Zo(e,r){return new z(e,r).minor}T.patch=Ko;function Ko(e,r){return new z(e,r).patch}T.compare=ve;function ve(e,r,t){return new z(e,t).compare(new z(r,t))}T.compareLoose=Jo;function Jo(e,r){return ve(e,r,!0)}T.rcompare=Qo;function Qo(e,r,t){return ve(r,e,t)}T.sort=ea;function ea(e,r){return e.sort(function(t,n){return T.compare(t,n,r)})}T.rsort=ra;function ra(e,r){return e.sort(function(t,n){return T.rcompare(t,n,r)})}T.gt=qe;function qe(e,r,t){return ve(e,r,t)>0}T.lt=cr;function cr(e,r,t){return ve(e,r,t)<0}T.eq=Xr;function Xr(e,r,t){return ve(e,r,t)===0}T.neq=mi;function mi(e,r,t){return ve(e,r,t)!==0}T.gte=Zr;function Zr(e,r,t){return ve(e,r,t)>=0}T.lte=Kr;function Kr(e,r,t){return ve(e,r,t)<=0}T.cmp=ur;function ur(e,r,t,n){switch(r){case"===":return typeof e=="object"&&(e=e.version),typeof t=="object"&&(t=t.version),e===t;case"!==":return typeof e=="object"&&(e=e.version),typeof t=="object"&&(t=t.version),e!==t;case"":case"=":case"==":return Xr(e,t,n);case"!=":return mi(e,t,n);case">":return qe(e,t,n);case">=":return Zr(e,t,n);case"<":return cr(e,t,n);case"<=":return Kr(e,t,n);default:throw new TypeError("Invalid operator: "+r)}}T.Comparator=ae;function ae(e,r){if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),e instanceof ae){if(e.loose===!!r.loose)return e;e=e.value}if(!(this instanceof ae))return new ae(e,r);Y("comparator",e,r),this.options=r,this.loose=!!r.loose,this.parse(e),this.semver===$e?this.value="":this.value=this.operator+this.semver.version,Y("comp",this)}var $e={};ae.prototype.parse=function(e){var r=this.options.loose?W[kr]:W[Vr],t=e.match(r);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=t[1],this.operator==="="&&(this.operator=""),t[2]?this.semver=new z(t[2],this.options.loose):this.semver=$e};ae.prototype.toString=function(){return this.value};ae.prototype.test=function(e){return Y("Comparator.test",e,this.options.loose),this.semver===$e?!0:(typeof e=="string"&&(e=new z(e,this.options)),ur(e,this.operator,this.semver,this.options))};ae.prototype.intersects=function(e,r){if(!(e instanceof ae))throw new TypeError("a Comparator is required");(!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1});var t;if(this.operator==="")return t=new K(e.value,r),lr(this.value,t,r);if(e.operator==="")return t=new K(this.value,r),lr(e.semver,t,r);var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),s=this.semver.version===e.semver.version,o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),c=ur(this.semver,"<",e.semver,r)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),f=ur(this.semver,">",e.semver,r)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||i||s&&o||c||f};T.Range=K;function K(e,r){if((!r||typeof r!="object")&&(r={loose:!!r,includePrerelease:!1}),e instanceof K)return e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease?e:new K(e.raw,r);if(e instanceof ae)return new K(e.value,r);if(!(this instanceof K))return new K(e,r);if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(t){return this.parseRange(t.trim())},this).filter(function(t){return t.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}K.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range};K.prototype.toString=function(){return this.range};K.prototype.parseRange=function(e){var r=this.options.loose;e=e.trim();var t=r?W[pi]:W[fi];e=e.replace(t,fa),Y("hyphen replace",e),e=e.replace(W[Ue],zo),Y("comparator trim",e,W[Ue]),e=e.replace(W[sr],$o),e=e.replace(W[ar],Mo),e=e.split(/\s+/).join(" ");var n=r?W[kr]:W[Vr],i=e.split(" ").map(function(s){return na(s,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(s){return!!s.match(n)})),i=i.map(function(s){return new ae(s,this.options)},this),i};K.prototype.intersects=function(e,r){if(!(e instanceof K))throw new TypeError("a Range is required");return this.set.some(function(t){return t.every(function(n){return e.set.some(function(i){return i.every(function(s){return n.intersects(s,r)})})})})};T.toComparators=ta;function ta(e,r){return new K(e,r).set.map(function(t){return t.map(function(n){return n.value}).join(" ").trim().split(" ")})}function na(e,r){return Y("comp",e,r),e=oa(e,r),Y("caret",e),e=ia(e,r),Y("tildes",e),e=ca(e,r),Y("xrange",e),e=la(e,r),Y("stars",e),e}function ie(e){return!e||e.toLowerCase()==="x"||e==="*"}function ia(e,r){return e.trim().split(/\s+/).map(function(t){return sa(t,r)}).join(" ")}function sa(e,r){var t=r.loose?W[ci]:W[ai];return e.replace(t,function(n,i,s,o,c){Y("tilde",e,n,i,s,o,c);var f;return ie(i)?f="":ie(s)?f=">="+i+".0.0 <"+(+i+1)+".0.0":ie(o)?f=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0":c?(Y("replaceTilde pr",c),f=">="+i+"."+s+"."+o+"-"+c+" <"+i+"."+(+s+1)+".0"):f=">="+i+"."+s+"."+o+" <"+i+"."+(+s+1)+".0",Y("tilde return",f),f})}function oa(e,r){return e.trim().split(/\s+/).map(function(t){return aa(t,r)}).join(" ")}function aa(e,r){Y("caret",e,r);var t=r.loose?W[li]:W[ui];return e.replace(t,function(n,i,s,o,c){Y("caret",e,n,i,s,o,c);var f;return ie(i)?f="":ie(s)?f=">="+i+".0.0 <"+(+i+1)+".0.0":ie(o)?i==="0"?f=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0":f=">="+i+"."+s+".0 <"+(+i+1)+".0.0":c?(Y("replaceCaret pr",c),i==="0"?s==="0"?f=">="+i+"."+s+"."+o+"-"+c+" <"+i+"."+s+"."+(+o+1):f=">="+i+"."+s+"."+o+"-"+c+" <"+i+"."+(+s+1)+".0":f=">="+i+"."+s+"."+o+"-"+c+" <"+(+i+1)+".0.0"):(Y("no pr"),i==="0"?s==="0"?f=">="+i+"."+s+"."+o+" <"+i+"."+s+"."+(+o+1):f=">="+i+"."+s+"."+o+" <"+i+"."+(+s+1)+".0":f=">="+i+"."+s+"."+o+" <"+(+i+1)+".0.0"),Y("caret return",f),f})}function ca(e,r){return Y("replaceXRanges",e,r),e.split(/\s+/).map(function(t){return ua(t,r)}).join(" ")}function ua(e,r){e=e.trim();var t=r.loose?W[si]:W[ii];return e.replace(t,function(n,i,s,o,c,f){Y("xRange",e,n,i,s,o,c,f);var w=ie(s),u=w||ie(o),d=u||ie(c),a=d;return i==="="&&a&&(i=""),w?i===">"||i==="<"?n="<0.0.0":n="*":i&&a?(u&&(o=0),c=0,i===">"?(i=">=",u?(s=+s+1,o=0,c=0):(o=+o+1,c=0)):i==="<="&&(i="<",u?s=+s+1:o=+o+1),n=i+s+"."+o+"."+c):u?n=">="+s+".0.0 <"+(+s+1)+".0.0":d&&(n=">="+s+"."+o+".0 <"+s+"."+(+o+1)+".0"),Y("xRange return",n),n})}function la(e,r){return Y("replaceStars",e,r),e.trim().replace(W[hi],"")}function fa(e,r,t,n,i,s,o,c,f,w,u,d,a){return ie(t)?r="":ie(n)?r=">="+t+".0.0":ie(i)?r=">="+t+"."+n+".0":r=">="+r,ie(f)?c="":ie(w)?c="<"+(+f+1)+".0.0":ie(u)?c="<"+f+"."+(+w+1)+".0":d?c="<="+f+"."+w+"."+u+"-"+d:c="<="+c,(r+" "+c).trim()}K.prototype.test=function(e){if(!e)return!1;typeof e=="string"&&(e=new z(e,this.options));for(var r=0;r<this.set.length;r++)if(pa(this.set[r],e,this.options))return!0;return!1};function pa(e,r,t){for(var n=0;n<e.length;n++)if(!e[n].test(r))return!1;if(r.prerelease.length&&!t.includePrerelease){for(n=0;n<e.length;n++)if(Y(e[n].semver),e[n].semver!==$e&&e[n].semver.prerelease.length>0){var i=e[n].semver;if(i.major===r.major&&i.minor===r.minor&&i.patch===r.patch)return!0}return!1}return!0}T.satisfies=lr;function lr(e,r,t){try{r=new K(r,t)}catch(n){return!1}return r.test(e)}T.maxSatisfying=ha;function ha(e,r,t){var n=null,i=null;try{var s=new K(r,t)}catch(o){return null}return e.forEach(function(o){s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new z(n,t))}),n}T.minSatisfying=da;function da(e,r,t){var n=null,i=null;try{var s=new K(r,t)}catch(o){return null}return e.forEach(function(o){s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new z(n,t))}),n}T.minVersion=ma;function ma(e,r){e=new K(e,r);var t=new z("0.0.0");if(e.test(t)||(t=new z("0.0.0-0"),e.test(t)))return t;t=null;for(var n=0;n<e.set.length;++n){var i=e.set[n];i.forEach(function(s){var o=new z(s.semver.version);switch(s.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!t||qe(t,o))&&(t=o);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+s.operator)}})}return t&&e.test(t)?t:null}T.validRange=va;function va(e,r){try{return new K(e,r).range||"*"}catch(t){return null}}T.ltr=ga;function ga(e,r,t){return Jr(e,r,"<",t)}T.gtr=ya;function ya(e,r,t){return Jr(e,r,">",t)}T.outside=Jr;function Jr(e,r,t,n){e=new z(e,n),r=new K(r,n);var i,s,o,c,f;switch(t){case">":i=qe,s=Kr,o=cr,c=">",f=">=";break;case"<":i=cr,s=Zr,o=qe,c="<",f="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(lr(e,r,n))return!1;for(var w=0;w<r.set.length;++w){var u=r.set[w],d=null,a=null;if(u.forEach(function(m){m.semver===$e&&(m=new ae(">=0.0.0")),d=d||m,a=a||m,i(m.semver,d.semver,n)?d=m:o(m.semver,a.semver,n)&&(a=m)}),d.operator===c||d.operator===f||(!a.operator||a.operator===c)&&s(e,a.semver))return!1;if(a.operator===f&&o(e,a.semver))return!1}return!0}T.prerelease=La;function La(e,r){var t=be(e,r);return t&&t.prerelease.length?t.prerelease:null}T.intersects=Ea;function Ea(e,r,t){return e=new K(e,t),r=new K(r,t),e.intersects(r)}T.coerce=Sa;function Sa(e){if(e instanceof z)return e;if(typeof e!="string")return null;var r=e.match(W[oi]);return r==null?null:be(r[1]+"."+(r[2]||"0")+"."+(r[3]||"0"))}});var Qr=E((nl,wa)=>{wa.exports=["0BSD","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMDPLPA","AML","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Abstyles","Adobe-2006","Adobe-Glyph","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-Protection","BSD-Source-Code","BSL-1.0","BUSL-1.1","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","BlueOak-1.0.0","Borceux","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-