From a5386abac72adefeeb1b0f85fccbf27978bf0bce Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 18 Feb 2024 17:45:32 +0800 Subject: [PATCH] fix(deps): bump semver to v7.6.0 (#5392) --- .changeset/lemon-kiwis-switch.md | 7 +++ .../toolkit/utils/compiled/semver/index.js | 2 +- .../utils/compiled/semver/package.json | 2 +- pnpm-lock.yaml | 48 +++++++++++-------- scripts/prebundle/package.json | 2 +- 5 files changed, 38 insertions(+), 23 deletions(-) create mode 100644 .changeset/lemon-kiwis-switch.md diff --git a/.changeset/lemon-kiwis-switch.md b/.changeset/lemon-kiwis-switch.md new file mode 100644 index 000000000000..124bbcb40c2b --- /dev/null +++ b/.changeset/lemon-kiwis-switch.md @@ -0,0 +1,7 @@ +--- +'@modern-js/utils': patch +--- + +fix(deps): bump semver to v7.6.0 + +fix(deps): 升级 semver 到 v7.6.0 diff --git a/packages/toolkit/utils/compiled/semver/index.js b/packages/toolkit/utils/compiled/semver/index.js index 0339de3b0d66..a5dedbcf858e 100644 --- a/packages/toolkit/utils/compiled/semver/index.js +++ b/packages/toolkit/utils/compiled/semver/index.js @@ -1 +1 @@ -(()=>{var e={844:(e,t,r)=>{"use strict";const s=r(605);const n=Symbol("max");const i=Symbol("length");const o=Symbol("lengthCalculator");const l=Symbol("allowStale");const a=Symbol("maxAge");const h=Symbol("dispose");const c=Symbol("noDisposeOnSet");const u=Symbol("lruList");const f=Symbol("cache");const p=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const t=this[n]=e.max||Infinity;const r=e.length||naiveLength;this[o]=typeof r!=="function"?naiveLength:r;this[l]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[a]=e.maxAge||0;this[h]=e.dispose;this[c]=e.noDisposeOnSet||false;this[p]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[n]=e||Infinity;trim(this)}get max(){return this[n]}set allowStale(e){this[l]=!!e}get allowStale(){return this[l]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[a]=e;trim(this)}get maxAge(){return this[a]}set lengthCalculator(e){if(typeof e!=="function")e=naiveLength;if(e!==this[o]){this[o]=e;this[i]=0;this[u].forEach((e=>{e.length=this[o](e.value,e.key);this[i]+=e.length}))}trim(this)}get lengthCalculator(){return this[o]}get length(){return this[i]}get itemCount(){return this[u].length}rforEach(e,t){t=t||this;for(let r=this[u].tail;r!==null;){const s=r.prev;forEachStep(this,e,r,t);r=s}}forEach(e,t){t=t||this;for(let r=this[u].head;r!==null;){const s=r.next;forEachStep(this,e,r,t);r=s}}keys(){return this[u].toArray().map((e=>e.key))}values(){return this[u].toArray().map((e=>e.value))}reset(){if(this[h]&&this[u]&&this[u].length){this[u].forEach((e=>this[h](e.key,e.value)))}this[f]=new Map;this[u]=new s;this[i]=0}dump(){return this[u].map((e=>isStale(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[u]}set(e,t,r){r=r||this[a];if(r&&typeof r!=="number")throw new TypeError("maxAge must be a number");const s=r?Date.now():0;const l=this[o](t,e);if(this[f].has(e)){if(l>this[n]){del(this,this[f].get(e));return false}const o=this[f].get(e);const a=o.value;if(this[h]){if(!this[c])this[h](e,a.value)}a.now=s;a.maxAge=r;a.value=t;this[i]+=l-a.length;a.length=l;this.get(e);trim(this);return true}const p=new Entry(e,t,l,s,r);if(p.length>this[n]){if(this[h])this[h](e,t);return false}this[i]+=p.length;this[u].unshift(p);this[f].set(e,this[u].head);trim(this);return true}has(e){if(!this[f].has(e))return false;const t=this[f].get(e).value;return!isStale(this,t)}get(e){return get(this,e,true)}peek(e){return get(this,e,false)}pop(){const e=this[u].tail;if(!e)return null;del(this,e);return e.value}del(e){del(this,this[f].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const s=e[r];const n=s.e||0;if(n===0)this.set(s.k,s.v);else{const e=n-t;if(e>0){this.set(s.k,s.v,e)}}}}prune(){this[f].forEach(((e,t)=>get(this,t,false)))}}const get=(e,t,r)=>{const s=e[f].get(t);if(s){const t=s.value;if(isStale(e,t)){del(e,s);if(!e[l])return undefined}else{if(r){if(e[p])s.value.now=Date.now();e[u].unshiftNode(s)}}return t.value}};const isStale=(e,t)=>{if(!t||!t.maxAge&&!e[a])return false;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[a]&&r>e[a]};const trim=e=>{if(e[i]>e[n]){for(let t=e[u].tail;e[i]>e[n]&&t!==null;){const r=t.prev;del(e,t);t=r}}};const del=(e,t)=>{if(t){const r=t.value;if(e[h])e[h](r.key,r.value);e[i]-=r.length;e[f].delete(r.key);e[u].removeNode(t)}};class Entry{constructor(e,t,r,s,n){this.key=e;this.value=t;this.length=r;this.now=s;this.maxAge=n||0}}const forEachStep=(e,t,r,s)=>{let n=r.value;if(isStale(e,n)){del(e,r);if(!e[l])n=undefined}if(n)t.call(s,n.value,n.key,e)};e.exports=LRUCache},685:(e,t,r)=>{const s=Symbol("SemVer ANY");class Comparator{static get ANY(){return s}constructor(e,t){t=n(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}a("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===s){this.value=""}else{this.value=this.operator+this.semver.version}a("comp",this)}parse(e){const t=this.options.loose?i[o.COMPARATORLOOSE]:i[o.COMPARATOR];const r=e.match(t);if(!r){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=s}else{this.semver=new h(r[2],this.options.loose)}}toString(){return this.value}test(e){a("Comparator.test",e,this.options.loose);if(this.semver===s||e===s){return true}if(typeof e==="string"){try{e=new h(e,this.options)}catch(e){return false}}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new c(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new c(this.value,t).test(e.semver)}const r=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");const s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");const n=this.semver.version===e.semver.version;const i=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");const o=l(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<");const a=l(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return r||s||n&&i||o||a}}e.exports=Comparator;const n=r(912);const{re:i,t:o}=r(475);const l=r(852);const a=r(805);const h=r(607);const c=r(12)},12:(e,t,r)=>{class Range{constructor(e,t){t=i(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof o){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${e}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=Object.keys(this.options).join(",");const r=`parseRange:${t}:${e}`;const s=n.get(r);if(s){return s}const i=this.options.loose;const a=i?h[c.HYPHENRANGELOOSE]:h[c.HYPHENRANGE];e=e.replace(a,hyphenReplace(this.options.includePrerelease));l("hyphen replace",e);e=e.replace(h[c.COMPARATORTRIM],u);l("comparator trim",e);e=e.replace(h[c.TILDETRIM],f);e=e.replace(h[c.CARETTRIM],p);e=e.split(/\s+/).join(" ");let E=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(i){E=E.filter((e=>{l("loose invalid filter",e,this.options);return!!e.match(h[c.COMPARATORLOOSE])}))}l("range list",E);const m=new Map;const v=E.map((e=>new o(e,this.options)));for(const e of v){if(isNullSet(e)){return[e]}m.set(e.value,e)}if(m.size>1&&m.has("")){m.delete("")}const $=[...m.values()];n.set(r,$);return $}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((r=>isSatisfiable(r,t)&&e.set.some((e=>isSatisfiable(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new a(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let r=true;const s=e.slice();let n=s.pop();while(r&&s.length){r=s.every((e=>n.intersects(e,t)));n=s.pop()}return r};const parseComparator=(e,t)=>{l("comp",e,t);e=replaceCarets(e,t);l("caret",e);e=replaceTildes(e,t);l("tildes",e);e=replaceXRanges(e,t);l("xrange",e);e=replaceStars(e,t);l("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const r=t.loose?h[c.TILDELOOSE]:h[c.TILDE];return e.replace(r,((t,r,s,n,i)=>{l("tilde",e,t,r,s,n,i);let o;if(isX(r)){o=""}else if(isX(s)){o=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(isX(n)){o=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`}else if(i){l("replaceTilde pr",i);o=`>=${r}.${s}.${n}-${i} <${r}.${+s+1}.0-0`}else{o=`>=${r}.${s}.${n} <${r}.${+s+1}.0-0`}l("tilde return",o);return o}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{l("caret",e,t);const r=t.loose?h[c.CARETLOOSE]:h[c.CARET];const s=t.includePrerelease?"-0":"";return e.replace(r,((t,r,n,i,o)=>{l("caret",e,t,r,n,i,o);let a;if(isX(r)){a=""}else if(isX(n)){a=`>=${r}.0.0${s} <${+r+1}.0.0-0`}else if(isX(i)){if(r==="0"){a=`>=${r}.${n}.0${s} <${r}.${+n+1}.0-0`}else{a=`>=${r}.${n}.0${s} <${+r+1}.0.0-0`}}else if(o){l("replaceCaret pr",o);if(r==="0"){if(n==="0"){a=`>=${r}.${n}.${i}-${o} <${r}.${n}.${+i+1}-0`}else{a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`}}else{a=`>=${r}.${n}.${i}-${o} <${+r+1}.0.0-0`}}else{l("no pr");if(r==="0"){if(n==="0"){a=`>=${r}.${n}.${i}${s} <${r}.${n}.${+i+1}-0`}else{a=`>=${r}.${n}.${i}${s} <${r}.${+n+1}.0-0`}}else{a=`>=${r}.${n}.${i} <${+r+1}.0.0-0`}}l("caret return",a);return a}))};const replaceXRanges=(e,t)=>{l("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const r=t.loose?h[c.XRANGELOOSE]:h[c.XRANGE];return e.replace(r,((r,s,n,i,o,a)=>{l("xRange",e,r,s,n,i,o,a);const h=isX(n);const c=h||isX(i);const u=c||isX(o);const f=u;if(s==="="&&f){s=""}a=t.includePrerelease?"-0":"";if(h){if(s===">"||s==="<"){r="<0.0.0-0"}else{r="*"}}else if(s&&f){if(c){i=0}o=0;if(s===">"){s=">=";if(c){n=+n+1;i=0;o=0}else{i=+i+1;o=0}}else if(s==="<="){s="<";if(c){n=+n+1}else{i=+i+1}}if(s==="<"){a="-0"}r=`${s+n}.${i}.${o}${a}`}else if(c){r=`>=${n}.0.0${a} <${+n+1}.0.0-0`}else if(u){r=`>=${n}.${i}.0${a} <${n}.${+i+1}.0-0`}l("xRange return",r);return r}))};const replaceStars=(e,t)=>{l("replaceStars",e,t);return e.trim().replace(h[c.STAR],"")};const replaceGTE0=(e,t)=>{l("replaceGTE0",e,t);return e.trim().replace(h[t.includePrerelease?c.GTE0PRE:c.GTE0],"")};const hyphenReplace=e=>(t,r,s,n,i,o,l,a,h,c,u,f,p)=>{if(isX(s)){r=""}else if(isX(n)){r=`>=${s}.0.0${e?"-0":""}`}else if(isX(i)){r=`>=${s}.${n}.0${e?"-0":""}`}else if(o){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(isX(h)){a=""}else if(isX(c)){a=`<${+h+1}.0.0-0`}else if(isX(u)){a=`<${h}.${+c+1}.0-0`}else if(f){a=`<=${h}.${c}.${u}-${f}`}else if(e){a=`<${h}.${c}.${+u+1}-0`}else{a=`<=${a}`}return`${r} ${a}`.trim()};const testSet=(e,t,r)=>{for(let r=0;r0){const s=e[r].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}},607:(e,t,r)=>{const s=r(805);const{MAX_LENGTH:n,MAX_SAFE_INTEGER:i}=r(393);const{re:o,t:l}=r(475);const a=r(912);const{compareIdentifiers:h}=r(350);class SemVer{constructor(e,t){t=a(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid Version: ${e}`)}if(e.length>n){throw new TypeError(`version is longer than ${n} characters`)}s("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?o[l.LOOSE]:o[l.FULL]);if(!r){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+r[1];this.minor=+r[2];this.patch=+r[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!r[4]){this.prerelease=[]}else{this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[e]==="number"){this.prerelease[e]++;e=-2}}if(e===-1){this.prerelease.push(0)}}if(t){if(h(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error(`invalid increment argument: ${e}`)}this.format();this.raw=this.version;return this}}e.exports=SemVer},219:(e,t,r)=>{const s=r(278);const clean=(e,t)=>{const r=s(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=clean},852:(e,t,r)=>{const s=r(620);const n=r(443);const i=r(421);const o=r(294);const l=r(808);const a=r(923);const cmp=(e,t,r,h)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e===r;case"!==":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e!==r;case"":case"=":case"==":return s(e,r,h);case"!=":return n(e,r,h);case">":return i(e,r,h);case">=":return o(e,r,h);case"<":return l(e,r,h);case"<=":return a(e,r,h);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},970:(e,t,r)=>{const s=r(607);const n=r(278);const{re:i,t:o}=r(475);const coerce=(e,t)=>{if(e instanceof s){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let r=null;if(!t.rtl){r=e.match(i[o.COERCE])}else{let t;while((t=i[o.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||t.index+t[0].length!==r.index+r[0].length){r=t}i[o.COERCERTL].lastIndex=t.index+t[1].length+t[2].length}i[o.COERCERTL].lastIndex=-1}if(r===null){return null}return n(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};e.exports=coerce},25:(e,t,r)=>{const s=r(607);const compareBuild=(e,t,r)=>{const n=new s(e,r);const i=new s(t,r);return n.compare(i)||n.compareBuild(i)};e.exports=compareBuild},414:(e,t,r)=>{const s=r(433);const compareLoose=(e,t)=>s(e,t,true);e.exports=compareLoose},433:(e,t,r)=>{const s=r(607);const compare=(e,t,r)=>new s(e,r).compare(new s(t,r));e.exports=compare},74:(e,t,r)=>{const s=r(278);const n=r(620);const diff=(e,t)=>{if(n(e,t)){return null}else{const r=s(e);const n=s(t);const i=r.prerelease.length||n.prerelease.length;const o=i?"pre":"";const l=i?"prerelease":"";for(const e in r){if(e==="major"||e==="minor"||e==="patch"){if(r[e]!==n[e]){return o+e}}}return l}};e.exports=diff},620:(e,t,r)=>{const s=r(433);const eq=(e,t,r)=>s(e,t,r)===0;e.exports=eq},421:(e,t,r)=>{const s=r(433);const gt=(e,t,r)=>s(e,t,r)>0;e.exports=gt},294:(e,t,r)=>{const s=r(433);const gte=(e,t,r)=>s(e,t,r)>=0;e.exports=gte},779:(e,t,r)=>{const s=r(607);const inc=(e,t,r,n)=>{if(typeof r==="string"){n=r;r=undefined}try{return new s(e instanceof s?e.version:e,r).inc(t,n).version}catch(e){return null}};e.exports=inc},808:(e,t,r)=>{const s=r(433);const lt=(e,t,r)=>s(e,t,r)<0;e.exports=lt},923:(e,t,r)=>{const s=r(433);const lte=(e,t,r)=>s(e,t,r)<=0;e.exports=lte},972:(e,t,r)=>{const s=r(607);const major=(e,t)=>new s(e,t).major;e.exports=major},857:(e,t,r)=>{const s=r(607);const minor=(e,t)=>new s(e,t).minor;e.exports=minor},443:(e,t,r)=>{const s=r(433);const neq=(e,t,r)=>s(e,t,r)!==0;e.exports=neq},278:(e,t,r)=>{const{MAX_LENGTH:s}=r(393);const{re:n,t:i}=r(475);const o=r(607);const l=r(912);const parse=(e,t)=>{t=l(t);if(e instanceof o){return e}if(typeof e!=="string"){return null}if(e.length>s){return null}const r=t.loose?n[i.LOOSE]:n[i.FULL];if(!r.test(e)){return null}try{return new o(e,t)}catch(e){return null}};e.exports=parse},410:(e,t,r)=>{const s=r(607);const patch=(e,t)=>new s(e,t).patch;e.exports=patch},235:(e,t,r)=>{const s=r(278);const prerelease=(e,t)=>{const r=s(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=prerelease},9:(e,t,r)=>{const s=r(433);const rcompare=(e,t,r)=>s(t,e,r);e.exports=rcompare},190:(e,t,r)=>{const s=r(25);const rsort=(e,t)=>e.sort(((e,r)=>s(r,e,t)));e.exports=rsort},27:(e,t,r)=>{const s=r(12);const satisfies=(e,t,r)=>{try{t=new s(t,r)}catch(e){return false}return t.test(e)};e.exports=satisfies},297:(e,t,r)=>{const s=r(25);const sort=(e,t)=>e.sort(((e,r)=>s(e,r,t)));e.exports=sort},862:(e,t,r)=>{const s=r(278);const valid=(e,t)=>{const r=s(e,t);return r?r.version:null};e.exports=valid},124:(e,t,r)=>{const s=r(475);e.exports={re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:r(393).SEMVER_SPEC_VERSION,SemVer:r(607),compareIdentifiers:r(350).compareIdentifiers,rcompareIdentifiers:r(350).rcompareIdentifiers,parse:r(278),valid:r(862),clean:r(219),inc:r(779),diff:r(74),major:r(972),minor:r(857),patch:r(410),prerelease:r(235),compare:r(433),rcompare:r(9),compareLoose:r(414),compareBuild:r(25),sort:r(297),rsort:r(190),gt:r(421),lt:r(808),eq:r(620),neq:r(443),gte:r(294),lte:r(923),cmp:r(852),coerce:r(970),Comparator:r(685),Range:r(12),satisfies:r(27),toComparators:r(564),maxSatisfying:r(771),minSatisfying:r(758),minVersion:r(521),validRange:r(764),outside:r(866),gtr:r(234),ltr:r(63),intersects:r(875),simplifyRange:r(843),subset:r(747)}},393:e=>{const t="2.0.0";const r=256;const s=Number.MAX_SAFE_INTEGER||9007199254740991;const n=16;e.exports={SEMVER_SPEC_VERSION:t,MAX_LENGTH:r,MAX_SAFE_INTEGER:s,MAX_SAFE_COMPONENT_LENGTH:n}},805:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},350:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,r)=>{const s=t.test(e);const n=t.test(r);if(s&&n){e=+e;r=+r}return e===r?0:s&&!n?-1:n&&!s?1:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},912:e=>{const t=["includePrerelease","loose","rtl"];const parseOptions=e=>!e?{}:typeof e!=="object"?{loose:true}:t.filter((t=>e[t])).reduce(((e,t)=>{e[t]=true;return e}),{});e.exports=parseOptions},475:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:s}=r(393);const n=r(805);t=e.exports={};const i=t.re=[];const o=t.src=[];const l=t.t={};let a=0;const createToken=(e,t,r)=>{const s=a++;n(e,s,t);l[e]=s;o[s]=t;i[s]=new RegExp(t,r?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","[0-9]+");createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");createToken("MAINVERSION",`(${o[l.NUMERICIDENTIFIER]})\\.`+`(${o[l.NUMERICIDENTIFIER]})\\.`+`(${o[l.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${o[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${o[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${o[l.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${o[l.NUMERICIDENTIFIER]}|${o[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${o[l.NUMERICIDENTIFIERLOOSE]}|${o[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${o[l.PRERELEASEIDENTIFIER]}(?:\\.${o[l.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${o[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[l.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+");createToken("BUILD",`(?:\\+(${o[l.BUILDIDENTIFIER]}(?:\\.${o[l.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${o[l.MAINVERSION]}${o[l.PRERELEASE]}?${o[l.BUILD]}?`);createToken("FULL",`^${o[l.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${o[l.MAINVERSIONLOOSE]}${o[l.PRERELEASELOOSE]}?${o[l.BUILD]}?`);createToken("LOOSE",`^${o[l.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${o[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${o[l.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${o[l.XRANGEIDENTIFIER]})`+`(?:\\.(${o[l.XRANGEIDENTIFIER]})`+`(?:\\.(${o[l.XRANGEIDENTIFIER]})`+`(?:${o[l.PRERELEASE]})?${o[l.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${o[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${o[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${o[l.XRANGEIDENTIFIERLOOSE]})`+`(?:${o[l.PRERELEASELOOSE]})?${o[l.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${o[l.GTLT]}\\s*${o[l.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${o[l.GTLT]}\\s*${o[l.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${s}})`+`(?:\\.(\\d{1,${s}}))?`+`(?:\\.(\\d{1,${s}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",o[l.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${o[l.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${o[l.LONETILDE]}${o[l.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${o[l.LONETILDE]}${o[l.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${o[l.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${o[l.LONECARET]}${o[l.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${o[l.LONECARET]}${o[l.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${o[l.GTLT]}\\s*(${o[l.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${o[l.GTLT]}\\s*(${o[l.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${o[l.GTLT]}\\s*(${o[l.LOOSEPLAIN]}|${o[l.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${o[l.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${o[l.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${o[l.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${o[l.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},234:(e,t,r)=>{const s=r(866);const gtr=(e,t,r)=>s(e,t,">",r);e.exports=gtr},875:(e,t,r)=>{const s=r(12);const intersects=(e,t,r)=>{e=new s(e,r);t=new s(t,r);return e.intersects(t)};e.exports=intersects},63:(e,t,r)=>{const s=r(866);const ltr=(e,t,r)=>s(e,t,"<",r);e.exports=ltr},771:(e,t,r)=>{const s=r(607);const n=r(12);const maxSatisfying=(e,t,r)=>{let i=null;let o=null;let l=null;try{l=new n(t,r)}catch(e){return null}e.forEach((e=>{if(l.test(e)){if(!i||o.compare(e)===-1){i=e;o=new s(i,r)}}}));return i};e.exports=maxSatisfying},758:(e,t,r)=>{const s=r(607);const n=r(12);const minSatisfying=(e,t,r)=>{let i=null;let o=null;let l=null;try{l=new n(t,r)}catch(e){return null}e.forEach((e=>{if(l.test(e)){if(!i||o.compare(e)===1){i=e;o=new s(i,r)}}}));return i};e.exports=minSatisfying},521:(e,t,r)=>{const s=r(607);const n=r(12);const i=r(421);const minVersion=(e,t)=>{e=new n(e,t);let r=new s("0.0.0");if(e.test(r)){return r}r=new s("0.0.0-0");if(e.test(r)){return r}r=null;for(let t=0;t{const t=new s(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!o||i(t,o)){o=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(o&&(!r||i(r,o))){r=o}}if(r&&e.test(r)){return r}return null};e.exports=minVersion},866:(e,t,r)=>{const s=r(607);const n=r(685);const{ANY:i}=n;const o=r(12);const l=r(27);const a=r(421);const h=r(808);const c=r(923);const u=r(294);const outside=(e,t,r,f)=>{e=new s(e,f);t=new o(t,f);let p,E,m,v,$;switch(r){case">":p=a;E=c;m=h;v=">";$=">=";break;case"<":p=h;E=u;m=a;v="<";$="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(l(e,t,f)){return false}for(let r=0;r{if(e.semver===i){e=new n(">=0.0.0")}o=o||e;l=l||e;if(p(e.semver,o.semver,f)){o=e}else if(m(e.semver,l.semver,f)){l=e}}));if(o.operator===v||o.operator===$){return false}if((!l.operator||l.operator===v)&&E(e,l.semver)){return false}else if(l.operator===$&&m(e,l.semver)){return false}}return true};e.exports=outside},843:(e,t,r)=>{const s=r(27);const n=r(433);e.exports=(e,t,r)=>{const i=[];let o=null;let l=null;const a=e.sort(((e,t)=>n(e,t,r)));for(const e of a){const n=s(e,t,r);if(n){l=e;if(!o){o=e}}else{if(l){i.push([o,l])}l=null;o=null}}if(o){i.push([o,null])}const h=[];for(const[e,t]of i){if(e===t){h.push(e)}else if(!t&&e===a[0]){h.push("*")}else if(!t){h.push(`>=${e}`)}else if(e===a[0]){h.push(`<=${t}`)}else{h.push(`${e} - ${t}`)}}const c=h.join(" || ");const u=typeof t.raw==="string"?t.raw:String(t);return c.length{const s=r(12);const n=r(685);const{ANY:i}=n;const o=r(27);const l=r(433);const subset=(e,t,r={})=>{if(e===t){return true}e=new s(e,r);t=new s(t,r);let n=false;e:for(const s of e.set){for(const e of t.set){const t=simpleSubset(s,e,r);n=n||t!==null;if(t){continue e}}if(n){return false}}return true};const simpleSubset=(e,t,r)=>{if(e===t){return true}if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i){return true}else if(r.includePrerelease){e=[new n(">=0.0.0-0")]}else{e=[new n(">=0.0.0")]}}if(t.length===1&&t[0].semver===i){if(r.includePrerelease){return true}else{t=[new n(">=0.0.0")]}}const s=new Set;let a,h;for(const t of e){if(t.operator===">"||t.operator===">="){a=higherGT(a,t,r)}else if(t.operator==="<"||t.operator==="<="){h=lowerLT(h,t,r)}else{s.add(t.semver)}}if(s.size>1){return null}let c;if(a&&h){c=l(a.semver,h.semver,r);if(c>0){return null}else if(c===0&&(a.operator!==">="||h.operator!=="<=")){return null}}for(const e of s){if(a&&!o(e,String(a),r)){return null}if(h&&!o(e,String(h),r)){return null}for(const s of t){if(!o(e,String(s),r)){return false}}return true}let u,f;let p,E;let m=h&&!r.includePrerelease&&h.semver.prerelease.length?h.semver:false;let v=a&&!r.includePrerelease&&a.semver.prerelease.length?a.semver:false;if(m&&m.prerelease.length===1&&h.operator==="<"&&m.prerelease[0]===0){m=false}for(const e of t){E=E||e.operator===">"||e.operator===">=";p=p||e.operator==="<"||e.operator==="<=";if(a){if(v){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch){v=false}}if(e.operator===">"||e.operator===">="){u=higherGT(a,e,r);if(u===e&&u!==a){return false}}else if(a.operator===">="&&!o(a.semver,String(e),r)){return false}}if(h){if(m){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===m.major&&e.semver.minor===m.minor&&e.semver.patch===m.patch){m=false}}if(e.operator==="<"||e.operator==="<="){f=lowerLT(h,e,r);if(f===e&&f!==h){return false}}else if(h.operator==="<="&&!o(h.semver,String(e),r)){return false}}if(!e.operator&&(h||a)&&c!==0){return false}}if(a&&p&&!h&&c!==0){return false}if(h&&E&&!a&&c!==0){return false}if(v||m){return false}return true};const higherGT=(e,t,r)=>{if(!e){return t}const s=l(e.semver,t.semver,r);return s>0?e:s<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,r)=>{if(!e){return t}const s=l(e.semver,t.semver,r);return s<0?e:s>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},564:(e,t,r)=>{const s=r(12);const toComparators=(e,t)=>new s(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},764:(e,t,r)=>{const s=r(12);const validRange=(e,t)=>{try{return new s(e,t).range||"*"}catch(e){return null}};e.exports=validRange},77:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},605:(e,t,r)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){t.push(e)}))}else if(arguments.length>0){for(var r=0,s=arguments.length;r1){r=t}else if(this.head){s=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var n=0;s!==null;n++){r=e(r,s.value,n);s=s.next}return r};Yallist.prototype.reduceReverse=function(e,t){var r;var s=this.tail;if(arguments.length>1){r=t}else if(this.tail){s=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var n=this.length-1;s!==null;n--){r=e(r,s.value,n);s=s.prev}return r};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(tthis.length){t=this.length}for(var s=0,n=this.head;n!==null&&sthis.length){t=this.length}for(var s=this.length,n=this.tail;n!==null&&s>t;s--){n=n.prev}for(;n!==null&&s>e;s--,n=n.prev){r.push(n.value)}return r};Yallist.prototype.splice=function(e,t,...r){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var s=0,n=this.head;n!==null&&s{var e={844:(e,t,r)=>{"use strict";const s=r(605);const n=Symbol("max");const i=Symbol("length");const o=Symbol("lengthCalculator");const l=Symbol("allowStale");const a=Symbol("maxAge");const h=Symbol("dispose");const c=Symbol("noDisposeOnSet");const u=Symbol("lruList");const f=Symbol("cache");const p=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const t=this[n]=e.max||Infinity;const r=e.length||naiveLength;this[o]=typeof r!=="function"?naiveLength:r;this[l]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[a]=e.maxAge||0;this[h]=e.dispose;this[c]=e.noDisposeOnSet||false;this[p]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[n]=e||Infinity;trim(this)}get max(){return this[n]}set allowStale(e){this[l]=!!e}get allowStale(){return this[l]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[a]=e;trim(this)}get maxAge(){return this[a]}set lengthCalculator(e){if(typeof e!=="function")e=naiveLength;if(e!==this[o]){this[o]=e;this[i]=0;this[u].forEach((e=>{e.length=this[o](e.value,e.key);this[i]+=e.length}))}trim(this)}get lengthCalculator(){return this[o]}get length(){return this[i]}get itemCount(){return this[u].length}rforEach(e,t){t=t||this;for(let r=this[u].tail;r!==null;){const s=r.prev;forEachStep(this,e,r,t);r=s}}forEach(e,t){t=t||this;for(let r=this[u].head;r!==null;){const s=r.next;forEachStep(this,e,r,t);r=s}}keys(){return this[u].toArray().map((e=>e.key))}values(){return this[u].toArray().map((e=>e.value))}reset(){if(this[h]&&this[u]&&this[u].length){this[u].forEach((e=>this[h](e.key,e.value)))}this[f]=new Map;this[u]=new s;this[i]=0}dump(){return this[u].map((e=>isStale(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[u]}set(e,t,r){r=r||this[a];if(r&&typeof r!=="number")throw new TypeError("maxAge must be a number");const s=r?Date.now():0;const l=this[o](t,e);if(this[f].has(e)){if(l>this[n]){del(this,this[f].get(e));return false}const o=this[f].get(e);const a=o.value;if(this[h]){if(!this[c])this[h](e,a.value)}a.now=s;a.maxAge=r;a.value=t;this[i]+=l-a.length;a.length=l;this.get(e);trim(this);return true}const p=new Entry(e,t,l,s,r);if(p.length>this[n]){if(this[h])this[h](e,t);return false}this[i]+=p.length;this[u].unshift(p);this[f].set(e,this[u].head);trim(this);return true}has(e){if(!this[f].has(e))return false;const t=this[f].get(e).value;return!isStale(this,t)}get(e){return get(this,e,true)}peek(e){return get(this,e,false)}pop(){const e=this[u].tail;if(!e)return null;del(this,e);return e.value}del(e){del(this,this[f].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const s=e[r];const n=s.e||0;if(n===0)this.set(s.k,s.v);else{const e=n-t;if(e>0){this.set(s.k,s.v,e)}}}}prune(){this[f].forEach(((e,t)=>get(this,t,false)))}}const get=(e,t,r)=>{const s=e[f].get(t);if(s){const t=s.value;if(isStale(e,t)){del(e,s);if(!e[l])return undefined}else{if(r){if(e[p])s.value.now=Date.now();e[u].unshiftNode(s)}}return t.value}};const isStale=(e,t)=>{if(!t||!t.maxAge&&!e[a])return false;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[a]&&r>e[a]};const trim=e=>{if(e[i]>e[n]){for(let t=e[u].tail;e[i]>e[n]&&t!==null;){const r=t.prev;del(e,t);t=r}}};const del=(e,t)=>{if(t){const r=t.value;if(e[h])e[h](r.key,r.value);e[i]-=r.length;e[f].delete(r.key);e[u].removeNode(t)}};class Entry{constructor(e,t,r,s,n){this.key=e;this.value=t;this.length=r;this.now=s;this.maxAge=n||0}}const forEachStep=(e,t,r,s)=>{let n=r.value;if(isStale(e,n)){del(e,r);if(!e[l])n=undefined}if(n)t.call(s,n.value,n.key,e)};e.exports=LRUCache},584:(e,t,r)=>{const s=Symbol("SemVer ANY");class Comparator{static get ANY(){return s}constructor(e,t){t=n(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");a("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===s){this.value=""}else{this.value=this.operator+this.semver.version}a("comp",this)}parse(e){const t=this.options.loose?i[o.COMPARATORLOOSE]:i[o.COMPARATOR];const r=e.match(t);if(!r){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=s}else{this.semver=new h(r[2],this.options.loose)}}toString(){return this.value}test(e){a("Comparator.test",e,this.options.loose);if(this.semver===s||e===s){return true}if(typeof e==="string"){try{e=new h(e,this.options)}catch(e){return false}}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new c(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new c(this.value,t).test(e.semver)}t=n(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const n=r(110);const{safeRe:i,t:o}=r(258);const l=r(159);const a=r(935);const h=r(649);const c=r(530)},530:(e,t,r)=>{class Range{constructor(e,t){t=i(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof o){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&E)|(this.options.loose&&m);const r=t+":"+e;const s=n.get(r);if(s){return s}const i=this.options.loose;const a=i?h[c.HYPHENRANGELOOSE]:h[c.HYPHENRANGE];e=e.replace(a,hyphenReplace(this.options.includePrerelease));l("hyphen replace",e);e=e.replace(h[c.COMPARATORTRIM],u);l("comparator trim",e);e=e.replace(h[c.TILDETRIM],f);l("tilde trim",e);e=e.replace(h[c.CARETTRIM],p);l("caret trim",e);let v=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(i){v=v.filter((e=>{l("loose invalid filter",e,this.options);return!!e.match(h[c.COMPARATORLOOSE])}))}l("range list",v);const $=new Map;const R=v.map((e=>new o(e,this.options)));for(const e of R){if(isNullSet(e)){return[e]}$.set(e.value,e)}if($.size>1&&$.has("")){$.delete("")}const d=[...$.values()];n.set(r,d);return d}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((r=>isSatisfiable(r,t)&&e.set.some((e=>isSatisfiable(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new a(e,this.options)}catch(e){return false}}for(let t=0;te.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let r=true;const s=e.slice();let n=s.pop();while(r&&s.length){r=s.every((e=>n.intersects(e,t)));n=s.pop()}return r};const parseComparator=(e,t)=>{l("comp",e,t);e=replaceCarets(e,t);l("caret",e);e=replaceTildes(e,t);l("tildes",e);e=replaceXRanges(e,t);l("xrange",e);e=replaceStars(e,t);l("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const r=t.loose?h[c.TILDELOOSE]:h[c.TILDE];return e.replace(r,((t,r,s,n,i)=>{l("tilde",e,t,r,s,n,i);let o;if(isX(r)){o=""}else if(isX(s)){o=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(isX(n)){o=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`}else if(i){l("replaceTilde pr",i);o=`>=${r}.${s}.${n}-${i} <${r}.${+s+1}.0-0`}else{o=`>=${r}.${s}.${n} <${r}.${+s+1}.0-0`}l("tilde return",o);return o}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{l("caret",e,t);const r=t.loose?h[c.CARETLOOSE]:h[c.CARET];const s=t.includePrerelease?"-0":"";return e.replace(r,((t,r,n,i,o)=>{l("caret",e,t,r,n,i,o);let a;if(isX(r)){a=""}else if(isX(n)){a=`>=${r}.0.0${s} <${+r+1}.0.0-0`}else if(isX(i)){if(r==="0"){a=`>=${r}.${n}.0${s} <${r}.${+n+1}.0-0`}else{a=`>=${r}.${n}.0${s} <${+r+1}.0.0-0`}}else if(o){l("replaceCaret pr",o);if(r==="0"){if(n==="0"){a=`>=${r}.${n}.${i}-${o} <${r}.${n}.${+i+1}-0`}else{a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`}}else{a=`>=${r}.${n}.${i}-${o} <${+r+1}.0.0-0`}}else{l("no pr");if(r==="0"){if(n==="0"){a=`>=${r}.${n}.${i}${s} <${r}.${n}.${+i+1}-0`}else{a=`>=${r}.${n}.${i}${s} <${r}.${+n+1}.0-0`}}else{a=`>=${r}.${n}.${i} <${+r+1}.0.0-0`}}l("caret return",a);return a}))};const replaceXRanges=(e,t)=>{l("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const r=t.loose?h[c.XRANGELOOSE]:h[c.XRANGE];return e.replace(r,((r,s,n,i,o,a)=>{l("xRange",e,r,s,n,i,o,a);const h=isX(n);const c=h||isX(i);const u=c||isX(o);const f=u;if(s==="="&&f){s=""}a=t.includePrerelease?"-0":"";if(h){if(s===">"||s==="<"){r="<0.0.0-0"}else{r="*"}}else if(s&&f){if(c){i=0}o=0;if(s===">"){s=">=";if(c){n=+n+1;i=0;o=0}else{i=+i+1;o=0}}else if(s==="<="){s="<";if(c){n=+n+1}else{i=+i+1}}if(s==="<"){a="-0"}r=`${s+n}.${i}.${o}${a}`}else if(c){r=`>=${n}.0.0${a} <${+n+1}.0.0-0`}else if(u){r=`>=${n}.${i}.0${a} <${n}.${+i+1}.0-0`}l("xRange return",r);return r}))};const replaceStars=(e,t)=>{l("replaceStars",e,t);return e.trim().replace(h[c.STAR],"")};const replaceGTE0=(e,t)=>{l("replaceGTE0",e,t);return e.trim().replace(h[t.includePrerelease?c.GTE0PRE:c.GTE0],"")};const hyphenReplace=e=>(t,r,s,n,i,o,l,a,h,c,u,f,p)=>{if(isX(s)){r=""}else if(isX(n)){r=`>=${s}.0.0${e?"-0":""}`}else if(isX(i)){r=`>=${s}.${n}.0${e?"-0":""}`}else if(o){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(isX(h)){a=""}else if(isX(c)){a=`<${+h+1}.0.0-0`}else if(isX(u)){a=`<${h}.${+c+1}.0-0`}else if(f){a=`<=${h}.${c}.${u}-${f}`}else if(e){a=`<${h}.${c}.${+u+1}-0`}else{a=`<=${a}`}return`${r} ${a}`.trim()};const testSet=(e,t,r)=>{for(let r=0;r0){const s=e[r].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}},649:(e,t,r)=>{const s=r(935);const{MAX_LENGTH:n,MAX_SAFE_INTEGER:i}=r(745);const{safeRe:o,t:l}=r(258);const a=r(110);const{compareIdentifiers:h}=r(74);class SemVer{constructor(e,t){t=a(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>n){throw new TypeError(`version is longer than ${n} characters`)}s("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?o[l.LOOSE]:o[l.FULL]);if(!r){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+r[1];this.minor=+r[2];this.patch=+r[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!r[4]){this.prerelease=[]}else{this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[s]==="number"){this.prerelease[s]++;s=-2}}if(s===-1){if(t===this.prerelease.join(".")&&r===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let s=[t,e];if(r===false){s=[t]}if(h(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=s}}else{this.prerelease=s}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},640:(e,t,r)=>{const s=r(447);const clean=(e,t)=>{const r=s(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=clean},159:(e,t,r)=>{const s=r(164);const n=r(196);const i=r(478);const o=r(528);const l=r(654);const a=r(355);const cmp=(e,t,r,h)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e===r;case"!==":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e!==r;case"":case"=":case"==":return s(e,r,h);case"!=":return n(e,r,h);case">":return i(e,r,h);case">=":return o(e,r,h);case"<":return l(e,r,h);case"<=":return a(e,r,h);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},732:(e,t,r)=>{const s=r(649);const n=r(447);const{safeRe:i,t:o}=r(258);const coerce=(e,t)=>{if(e instanceof s){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let r=null;if(!t.rtl){r=e.match(t.includePrerelease?i[o.COERCEFULL]:i[o.COERCE])}else{const s=t.includePrerelease?i[o.COERCERTLFULL]:i[o.COERCERTL];let n;while((n=s.exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||n.index+n[0].length!==r.index+r[0].length){r=n}s.lastIndex=n.index+n[1].length+n[2].length}s.lastIndex=-1}if(r===null){return null}const l=r[2];const a=r[3]||"0";const h=r[4]||"0";const c=t.includePrerelease&&r[5]?`-${r[5]}`:"";const u=t.includePrerelease&&r[6]?`+${r[6]}`:"";return n(`${l}.${a}.${h}${c}${u}`,t)};e.exports=coerce},425:(e,t,r)=>{const s=r(649);const compareBuild=(e,t,r)=>{const n=new s(e,r);const i=new s(t,r);return n.compare(i)||n.compareBuild(i)};e.exports=compareBuild},59:(e,t,r)=>{const s=r(936);const compareLoose=(e,t)=>s(e,t,true);e.exports=compareLoose},936:(e,t,r)=>{const s=r(649);const compare=(e,t,r)=>new s(e,r).compare(new s(t,r));e.exports=compare},163:(e,t,r)=>{const s=r(447);const diff=(e,t)=>{const r=s(e,null,true);const n=s(t,null,true);const i=r.compare(n);if(i===0){return null}const o=i>0;const l=o?r:n;const a=o?n:r;const h=!!l.prerelease.length;const c=!!a.prerelease.length;if(c&&!h){if(!a.patch&&!a.minor){return"major"}if(l.patch){return"patch"}if(l.minor){return"minor"}return"major"}const u=h?"pre":"";if(r.major!==n.major){return u+"major"}if(r.minor!==n.minor){return u+"minor"}if(r.patch!==n.patch){return u+"patch"}return"prerelease"};e.exports=diff},164:(e,t,r)=>{const s=r(936);const eq=(e,t,r)=>s(e,t,r)===0;e.exports=eq},478:(e,t,r)=>{const s=r(936);const gt=(e,t,r)=>s(e,t,r)>0;e.exports=gt},528:(e,t,r)=>{const s=r(936);const gte=(e,t,r)=>s(e,t,r)>=0;e.exports=gte},53:(e,t,r)=>{const s=r(649);const inc=(e,t,r,n,i)=>{if(typeof r==="string"){i=n;n=r;r=undefined}try{return new s(e instanceof s?e.version:e,r).inc(t,n,i).version}catch(e){return null}};e.exports=inc},654:(e,t,r)=>{const s=r(936);const lt=(e,t,r)=>s(e,t,r)<0;e.exports=lt},355:(e,t,r)=>{const s=r(936);const lte=(e,t,r)=>s(e,t,r)<=0;e.exports=lte},86:(e,t,r)=>{const s=r(649);const major=(e,t)=>new s(e,t).major;e.exports=major},753:(e,t,r)=>{const s=r(649);const minor=(e,t)=>new s(e,t).minor;e.exports=minor},196:(e,t,r)=>{const s=r(936);const neq=(e,t,r)=>s(e,t,r)!==0;e.exports=neq},447:(e,t,r)=>{const s=r(649);const parse=(e,t,r=false)=>{if(e instanceof s){return e}try{return new s(e,t)}catch(e){if(!r){return null}throw e}};e.exports=parse},772:(e,t,r)=>{const s=r(649);const patch=(e,t)=>new s(e,t).patch;e.exports=patch},973:(e,t,r)=>{const s=r(447);const prerelease=(e,t)=>{const r=s(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=prerelease},580:(e,t,r)=>{const s=r(936);const rcompare=(e,t,r)=>s(t,e,r);e.exports=rcompare},573:(e,t,r)=>{const s=r(425);const rsort=(e,t)=>e.sort(((e,r)=>s(r,e,t)));e.exports=rsort},727:(e,t,r)=>{const s=r(530);const satisfies=(e,t,r)=>{try{t=new s(t,r)}catch(e){return false}return t.test(e)};e.exports=satisfies},318:(e,t,r)=>{const s=r(425);const sort=(e,t)=>e.sort(((e,r)=>s(e,r,t)));e.exports=sort},458:(e,t,r)=>{const s=r(447);const valid=(e,t)=>{const r=s(e,t);return r?r.version:null};e.exports=valid},921:(e,t,r)=>{const s=r(258);const n=r(745);const i=r(649);const o=r(74);const l=r(447);const a=r(458);const h=r(640);const c=r(53);const u=r(163);const f=r(86);const p=r(753);const E=r(772);const m=r(973);const v=r(936);const $=r(580);const R=r(59);const d=r(425);const g=r(318);const I=r(573);const N=r(478);const L=r(654);const A=r(164);const w=r(196);const O=r(528);const S=r(355);const T=r(159);const y=r(732);const x=r(584);const P=r(530);const C=r(727);const b=r(857);const D=r(754);const _=r(786);const G=r(200);const M=r(115);const F=r(443);const j=r(490);const Y=r(987);const U=r(219);const X=r(333);const k=r(958);e.exports={parse:l,valid:a,clean:h,inc:c,diff:u,major:f,minor:p,patch:E,prerelease:m,compare:v,rcompare:$,compareLoose:R,compareBuild:d,sort:g,rsort:I,gt:N,lt:L,eq:A,neq:w,gte:O,lte:S,cmp:T,coerce:y,Comparator:x,Range:P,satisfies:C,toComparators:b,maxSatisfying:D,minSatisfying:_,minVersion:G,validRange:M,outside:F,gtr:j,ltr:Y,intersects:U,simplifyRange:X,subset:k,SemVer:i,re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},745:e=>{const t="2.0.0";const r=256;const s=Number.MAX_SAFE_INTEGER||9007199254740991;const n=16;const i=r-6;const o=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_SAFE_INTEGER:s,RELEASE_TYPES:o,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},935:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},74:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,r)=>{const s=t.test(e);const n=t.test(r);if(s&&n){e=+e;r=+r}return e===r?0:s&&!n?-1:n&&!s?1:ecompareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},110:e=>{const t=Object.freeze({loose:true});const r=Object.freeze({});const parseOptions=e=>{if(!e){return r}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},258:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=r(745);const o=r(935);t=e.exports={};const l=t.re=[];const a=t.safeRe=[];const h=t.src=[];const c=t.t={};let u=0;const f="[a-zA-Z0-9-]";const p=[["\\s",1],["\\d",i],[f,n]];const makeSafeRegex=e=>{for(const[t,r]of p){e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`)}return e};const createToken=(e,t,r)=>{const s=makeSafeRegex(t);const n=u++;o(e,n,t);c[e]=n;h[n]=t;l[n]=new RegExp(t,r?"g":undefined);a[n]=new RegExp(s,r?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`);createToken("MAINVERSION",`(${h[c.NUMERICIDENTIFIER]})\\.`+`(${h[c.NUMERICIDENTIFIER]})\\.`+`(${h[c.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${h[c.NUMERICIDENTIFIERLOOSE]})\\.`+`(${h[c.NUMERICIDENTIFIERLOOSE]})\\.`+`(${h[c.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${h[c.NUMERICIDENTIFIER]}|${h[c.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${h[c.NUMERICIDENTIFIERLOOSE]}|${h[c.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${h[c.PRERELEASEIDENTIFIER]}(?:\\.${h[c.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${h[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${h[c.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${f}+`);createToken("BUILD",`(?:\\+(${h[c.BUILDIDENTIFIER]}(?:\\.${h[c.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${h[c.MAINVERSION]}${h[c.PRERELEASE]}?${h[c.BUILD]}?`);createToken("FULL",`^${h[c.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${h[c.MAINVERSIONLOOSE]}${h[c.PRERELEASELOOSE]}?${h[c.BUILD]}?`);createToken("LOOSE",`^${h[c.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${h[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${h[c.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${h[c.XRANGEIDENTIFIER]})`+`(?:\\.(${h[c.XRANGEIDENTIFIER]})`+`(?:\\.(${h[c.XRANGEIDENTIFIER]})`+`(?:${h[c.PRERELEASE]})?${h[c.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${h[c.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${h[c.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${h[c.XRANGEIDENTIFIERLOOSE]})`+`(?:${h[c.PRERELEASELOOSE]})?${h[c.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${h[c.GTLT]}\\s*${h[c.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${h[c.GTLT]}\\s*${h[c.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${s}})`+`(?:\\.(\\d{1,${s}}))?`+`(?:\\.(\\d{1,${s}}))?`);createToken("COERCE",`${h[c.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",h[c.COERCEPLAIN]+`(?:${h[c.PRERELEASE]})?`+`(?:${h[c.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",h[c.COERCE],true);createToken("COERCERTLFULL",h[c.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${h[c.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${h[c.LONETILDE]}${h[c.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${h[c.LONETILDE]}${h[c.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${h[c.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${h[c.LONECARET]}${h[c.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${h[c.LONECARET]}${h[c.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${h[c.GTLT]}\\s*(${h[c.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${h[c.GTLT]}\\s*(${h[c.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${h[c.GTLT]}\\s*(${h[c.LOOSEPLAIN]}|${h[c.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${h[c.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${h[c.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${h[c.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${h[c.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},490:(e,t,r)=>{const s=r(443);const gtr=(e,t,r)=>s(e,t,">",r);e.exports=gtr},219:(e,t,r)=>{const s=r(530);const intersects=(e,t,r)=>{e=new s(e,r);t=new s(t,r);return e.intersects(t,r)};e.exports=intersects},987:(e,t,r)=>{const s=r(443);const ltr=(e,t,r)=>s(e,t,"<",r);e.exports=ltr},754:(e,t,r)=>{const s=r(649);const n=r(530);const maxSatisfying=(e,t,r)=>{let i=null;let o=null;let l=null;try{l=new n(t,r)}catch(e){return null}e.forEach((e=>{if(l.test(e)){if(!i||o.compare(e)===-1){i=e;o=new s(i,r)}}}));return i};e.exports=maxSatisfying},786:(e,t,r)=>{const s=r(649);const n=r(530);const minSatisfying=(e,t,r)=>{let i=null;let o=null;let l=null;try{l=new n(t,r)}catch(e){return null}e.forEach((e=>{if(l.test(e)){if(!i||o.compare(e)===1){i=e;o=new s(i,r)}}}));return i};e.exports=minSatisfying},200:(e,t,r)=>{const s=r(649);const n=r(530);const i=r(478);const minVersion=(e,t)=>{e=new n(e,t);let r=new s("0.0.0");if(e.test(r)){return r}r=new s("0.0.0-0");if(e.test(r)){return r}r=null;for(let t=0;t{const t=new s(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!o||i(t,o)){o=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(o&&(!r||i(r,o))){r=o}}if(r&&e.test(r)){return r}return null};e.exports=minVersion},443:(e,t,r)=>{const s=r(649);const n=r(584);const{ANY:i}=n;const o=r(530);const l=r(727);const a=r(478);const h=r(654);const c=r(355);const u=r(528);const outside=(e,t,r,f)=>{e=new s(e,f);t=new o(t,f);let p,E,m,v,$;switch(r){case">":p=a;E=c;m=h;v=">";$=">=";break;case"<":p=h;E=u;m=a;v="<";$="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(l(e,t,f)){return false}for(let r=0;r{if(e.semver===i){e=new n(">=0.0.0")}o=o||e;l=l||e;if(p(e.semver,o.semver,f)){o=e}else if(m(e.semver,l.semver,f)){l=e}}));if(o.operator===v||o.operator===$){return false}if((!l.operator||l.operator===v)&&E(e,l.semver)){return false}else if(l.operator===$&&m(e,l.semver)){return false}}return true};e.exports=outside},333:(e,t,r)=>{const s=r(727);const n=r(936);e.exports=(e,t,r)=>{const i=[];let o=null;let l=null;const a=e.sort(((e,t)=>n(e,t,r)));for(const e of a){const n=s(e,t,r);if(n){l=e;if(!o){o=e}}else{if(l){i.push([o,l])}l=null;o=null}}if(o){i.push([o,null])}const h=[];for(const[e,t]of i){if(e===t){h.push(e)}else if(!t&&e===a[0]){h.push("*")}else if(!t){h.push(`>=${e}`)}else if(e===a[0]){h.push(`<=${t}`)}else{h.push(`${e} - ${t}`)}}const c=h.join(" || ");const u=typeof t.raw==="string"?t.raw:String(t);return c.length{const s=r(530);const n=r(584);const{ANY:i}=n;const o=r(727);const l=r(936);const subset=(e,t,r={})=>{if(e===t){return true}e=new s(e,r);t=new s(t,r);let n=false;e:for(const s of e.set){for(const e of t.set){const t=simpleSubset(s,e,r);n=n||t!==null;if(t){continue e}}if(n){return false}}return true};const a=[new n(">=0.0.0-0")];const h=[new n(">=0.0.0")];const simpleSubset=(e,t,r)=>{if(e===t){return true}if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i){return true}else if(r.includePrerelease){e=a}else{e=h}}if(t.length===1&&t[0].semver===i){if(r.includePrerelease){return true}else{t=h}}const s=new Set;let n,c;for(const t of e){if(t.operator===">"||t.operator===">="){n=higherGT(n,t,r)}else if(t.operator==="<"||t.operator==="<="){c=lowerLT(c,t,r)}else{s.add(t.semver)}}if(s.size>1){return null}let u;if(n&&c){u=l(n.semver,c.semver,r);if(u>0){return null}else if(u===0&&(n.operator!==">="||c.operator!=="<=")){return null}}for(const e of s){if(n&&!o(e,String(n),r)){return null}if(c&&!o(e,String(c),r)){return null}for(const s of t){if(!o(e,String(s),r)){return false}}return true}let f,p;let E,m;let v=c&&!r.includePrerelease&&c.semver.prerelease.length?c.semver:false;let $=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:false;if(v&&v.prerelease.length===1&&c.operator==="<"&&v.prerelease[0]===0){v=false}for(const e of t){m=m||e.operator===">"||e.operator===">=";E=E||e.operator==="<"||e.operator==="<=";if(n){if($){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===$.major&&e.semver.minor===$.minor&&e.semver.patch===$.patch){$=false}}if(e.operator===">"||e.operator===">="){f=higherGT(n,e,r);if(f===e&&f!==n){return false}}else if(n.operator===">="&&!o(n.semver,String(e),r)){return false}}if(c){if(v){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch){v=false}}if(e.operator==="<"||e.operator==="<="){p=lowerLT(c,e,r);if(p===e&&p!==c){return false}}else if(c.operator==="<="&&!o(c.semver,String(e),r)){return false}}if(!e.operator&&(c||n)&&u!==0){return false}}if(n&&E&&!c&&u!==0){return false}if(c&&m&&!n&&u!==0){return false}if($||v){return false}return true};const higherGT=(e,t,r)=>{if(!e){return t}const s=l(e.semver,t.semver,r);return s>0?e:s<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,r)=>{if(!e){return t}const s=l(e.semver,t.semver,r);return s<0?e:s>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},857:(e,t,r)=>{const s=r(530);const toComparators=(e,t)=>new s(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},115:(e,t,r)=>{const s=r(530);const validRange=(e,t)=>{try{return new s(e,t).range||"*"}catch(e){return null}};e.exports=validRange},77:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},605:(e,t,r)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){t.push(e)}))}else if(arguments.length>0){for(var r=0,s=arguments.length;r1){r=t}else if(this.head){s=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var n=0;s!==null;n++){r=e(r,s.value,n);s=s.next}return r};Yallist.prototype.reduceReverse=function(e,t){var r;var s=this.tail;if(arguments.length>1){r=t}else if(this.tail){s=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var n=this.length-1;s!==null;n--){r=e(r,s.value,n);s=s.prev}return r};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(tthis.length){t=this.length}for(var s=0,n=this.head;n!==null&&sthis.length){t=this.length}for(var s=this.length,n=this.tail;n!==null&&s>t;s--){n=n.prev}for(;n!==null&&s>e;s--,n=n.prev){r.push(n.value)}return r};Yallist.prototype.splice=function(e,t,...r){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var s=0,n=this.head;n!==null&&s=10'} + hasBin: true + dependencies: + lru-cache: 6.0.0 /send@0.18.0: resolution: {integrity: sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==} @@ -30754,7 +30762,7 @@ packages: resolution: {integrity: sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==} engines: {node: '>=10'} dependencies: - semver: 7.5.4 + semver: 7.6.0 dev: false /sirv@2.0.3: @@ -31425,7 +31433,7 @@ packages: mime: 2.6.0 qs: 6.11.0 readable-stream: 3.6.0 - semver: 7.3.7 + semver: 7.6.0 transitivePeerDependencies: - supports-color diff --git a/scripts/prebundle/package.json b/scripts/prebundle/package.json index 2c28e94fc984..86f7b8b2788b 100644 --- a/scripts/prebundle/package.json +++ b/scripts/prebundle/package.json @@ -111,7 +111,7 @@ "sass": "1.54.4", "sass-loader": "13.0.2", "schema-utils3": "npm:schema-utils@3.1.1", - "semver": "7.3.7", + "semver": "7.6.0", "serialize-javascript": "^6.0.0", "signal-exit": "3.0.7", "signale": "1.4.0",