From 9ca626c2227d58e0d8cf98b930c85ebdd9ea2368 Mon Sep 17 00:00:00 2001 From: hustcer Date: Thu, 27 Jun 2024 21:15:38 +0800 Subject: [PATCH] Try to fix plugin register issue --- dist/index.js | 31 +++++++++++++++++++-- nu/register-plugins.nu | 14 +++------- src/plugins.ts | 62 +++++++++++++++++++++++++----------------- 3 files changed, 69 insertions(+), 38 deletions(-) diff --git a/dist/index.js b/dist/index.js index c2ce108..95907e4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -24,14 +24,39 @@ var s=r(5327);var n={"{":"}","(":")","[":"]"};var strictCheck=function(e){if(e[0 * * Copyright (c) 2014-present, Jon Schlinkert. * Released under the MIT License. - */e.exports=function(e){if(typeof e==="number"){return e-e===0}if(typeof e==="string"&&e.trim()!==""){return Number.isFinite?Number.isFinite(+e):isFinite(+e)}return false}},7033:(e,t,r)=>{"use strict";const s=r(2781);const n=s.PassThrough;const o=Array.prototype.slice;e.exports=merge2;function merge2(){const e=[];const t=o.call(arguments);let r=false;let s=t[t.length-1];if(s&&!Array.isArray(s)&&s.pipe==null){t.pop()}else{s={}}const i=s.end!==false;const a=s.pipeError===true;if(s.objectMode==null){s.objectMode=true}if(s.highWaterMark==null){s.highWaterMark=64*1024}const c=n(s);function addStream(){for(let t=0,r=arguments.length;t0){return}r=false;mergeStream()}function pipe(e){function onend(){e.removeListener("merge2UnpipeEnd",onend);e.removeListener("end",onend);if(a){e.removeListener("error",onerror)}next()}function onerror(e){c.emit("error",e)}if(e._readableState.endEmitted){return next()}e.on("merge2UnpipeEnd",onend);e.on("end",onend);if(a){e.on("error",onerror)}e.pipe(c,{end:false});e.resume()}for(let e=0;e{"use strict";const s=r(3837);const n=r(32);const o=r(4317);const i=r(6807);const isEmptyString=e=>e===""||e==="./";const micromatch=(e,t,r)=>{t=[].concat(t);e=[].concat(e);let s=new Set;let n=new Set;let i=new Set;let a=0;let onResult=e=>{i.add(e.output);if(r&&r.onResult){r.onResult(e)}};for(let i=0;i!s.has(e)));if(r&&u.length===0){if(r.failglob===true){throw new Error(`No matches found for "${t.join(", ")}"`)}if(r.nonull===true||r.nullglob===true){return r.unescape?t.map((e=>e.replace(/\\/g,""))):t}}return u};micromatch.match=micromatch;micromatch.matcher=(e,t)=>o(e,t);micromatch.isMatch=(e,t,r)=>o(t,r)(e);micromatch.any=micromatch.isMatch;micromatch.not=(e,t,r={})=>{t=[].concat(t).map(String);let s=new Set;let n=[];let onResult=e=>{if(r.onResult)r.onResult(e);n.push(e.output)};let o=new Set(micromatch(e,t,{...r,onResult:onResult}));for(let e of n){if(!o.has(e)){s.add(e)}}return[...s]};micromatch.contains=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${s.inspect(e)}"`)}if(Array.isArray(t)){return t.some((t=>micromatch.contains(e,t,r)))}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t)){return true}}return micromatch.isMatch(e,t,{...r,contains:true})};micromatch.matchKeys=(e,t,r)=>{if(!i.isObject(e)){throw new TypeError("Expected the first argument to be an object")}let s=micromatch(Object.keys(e),t,r);let n={};for(let t of s)n[t]=e[t];return n};micromatch.some=(e,t,r)=>{let s=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),r);if(s.some((e=>t(e)))){return true}}return false};micromatch.every=(e,t,r)=>{let s=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),r);if(!s.every((e=>t(e)))){return false}}return true};micromatch.all=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${s.inspect(e)}"`)}return[].concat(t).every((t=>o(t,r)(e)))};micromatch.capture=(e,t,r)=>{let s=i.isWindows(r);let n=o.makeRe(String(e),{...r,capture:true});let a=n.exec(s?i.toPosixSlashes(t):t);if(a){return a.slice(1).map((e=>e===void 0?"":e))}};micromatch.makeRe=(...e)=>o.makeRe(...e);micromatch.scan=(...e)=>o.scan(...e);micromatch.parse=(e,t)=>{let r=[];for(let s of[].concat(e||[])){for(let e of n(String(s),t)){r.push(o.parse(e,t))}}return r};micromatch.braces=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return[e]}return n(e,t)};micromatch.braceExpand=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");return micromatch.braces(e,{...t,expand:true})};e.exports=micromatch},7151:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var s=function(){try{return r(1017)}catch(e){}}()||{sep:"/"};minimatch.sep=s.sep;var n=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var o=r(5862);var i={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var c=a+"*?";var u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var p=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var d=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,s,n){return minimatch(r,e,t)}}function ext(e,t){t=t||{};var r={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));return r}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var r=function minimatch(r,s,n){return t(r,s,ext(e,n))};r.Minimatch=function Minimatch(r,s){return new t.Minimatch(r,ext(e,s))};r.Minimatch.defaults=function defaults(r){return t.defaults(ext(e,r)).Minimatch};r.filter=function filter(r,s){return t.filter(r,ext(e,s))};r.defaults=function defaults(r){return t.defaults(ext(e,r))};r.makeRe=function makeRe(r,s){return t.makeRe(r,ext(e,s))};r.braceExpand=function braceExpand(r,s){return t.braceExpand(r,ext(e,s))};r.match=function(r,s,n){return t.match(r,s,ext(e,n))};return r};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){assertValidPattern(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&s.sep!=="/"){e=e.split(s.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(d)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var s=0;if(r.nonegate)return;for(var n=0,o=e.length;nh){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var m={};function parse(e,t){assertValidPattern(e);var r=this.options;if(e==="**"){if(!r.noglobstar)return n;else e="*"}if(e==="")return"";var s="";var o=!!r.nocase;var u=false;var l=[];var d=[];var h;var g=false;var E=-1;var v=-1;var y=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var _=this;function clearStateChar(){if(h){switch(h){case"*":s+=c;o=true;break;case"?":s+=a;o=true;break;default:s+="\\"+h;break}_.debug("clearStateChar %j %j",h,s);h=false}}for(var b=0,w=e.length,T;b-1;C--){var x=d[C];var G=s.slice(0,x.reStart);var L=s.slice(x.reStart,x.reEnd-8);var D=s.slice(x.reEnd-8,x.reEnd);var F=s.slice(x.reEnd);D+=F;var I=G.split("(").length-1;var j=F;for(b=0;b=0;i--){o=e[i];if(o)break}for(i=0;i>> no match, partial?",e,p,t,d);if(p===a)return true}return false}var m;if(typeof u==="string"){m=l===u;this.debug("string match",u,l,m)}else{m=l.match(u);this.debug("pattern match",u,l,m)}if(!m)return false}if(o===a&&i===c){return true}else if(o===a){return r}else if(i===c){return o===a-1&&e[o]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},9472:(e,t,r)=>{var s=r(666);e.exports=s(once);e.exports.strict=s(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},312:e=>{"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var s=r[1]||"";var n=Boolean(s&&s.charAt(1)!==":");return Boolean(r[2]||n)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},4317:(e,t,r)=>{"use strict";e.exports=r(4181)},7682:(e,t,r)=>{"use strict";const s=r(1017);const n="\\\\/";const o=`[^${n}]`;const i="\\.";const a="\\+";const c="\\?";const u="\\/";const l="(?=.)";const p="[^/]";const d=`(?:${u}|$)`;const h=`(?:^|${u})`;const m=`${i}{1,2}${d}`;const g=`(?!${i})`;const E=`(?!${h}${m})`;const v=`(?!${i}{0,1}${d})`;const y=`(?!${m})`;const _=`[^.${u}]`;const b=`${p}*?`;const w={DOT_LITERAL:i,PLUS_LITERAL:a,QMARK_LITERAL:c,SLASH_LITERAL:u,ONE_CHAR:l,QMARK:p,END_ANCHOR:d,DOTS_SLASH:m,NO_DOT:g,NO_DOTS:E,NO_DOT_SLASH:v,NO_DOTS_SLASH:y,QMARK_NO_DOT:_,STAR:b,START_ANCHOR:h};const T={...w,SLASH_LITERAL:`[${n}]`,QMARK:o,STAR:`${o}*?`,DOTS_SLASH:`${i}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${i})`,NO_DOTS:`(?!(?:^|[${n}])${i}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${i}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${i}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`};const S={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:S,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:s.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===true?T:w}}},5018:(e,t,r)=>{"use strict";const s=r(7682);const n=r(6807);const{MAX_LENGTH:o,POSIX_REGEX_SOURCE:i,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:u}=s;const expandRange=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>n.escapeRegex(e))).join("..")}return r};const syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`;const parse=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=u[e]||e;const r={...t};const l=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;let p=e.length;if(p>l){throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${l}`)}const d={type:"bos",value:"",output:r.prepend||""};const h=[d];const m=r.capture?"":"?:";const g=n.isWindows(t);const E=s.globChars(g);const v=s.extglobChars(E);const{DOT_LITERAL:y,PLUS_LITERAL:_,SLASH_LITERAL:b,ONE_CHAR:w,DOTS_SLASH:T,NO_DOT:S,NO_DOT_SLASH:O,NO_DOTS_SLASH:R,QMARK:P,QMARK_NO_DOT:k,STAR:A,START_ANCHOR:C}=E;const globstar=e=>`(${m}(?:(?!${C}${e.dot?T:y}).)*?)`;const x=r.dot?"":S;const G=r.dot?P:k;let L=r.bash===true?globstar(r):A;if(r.capture){L=`(${L})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const D={input:e,index:-1,start:0,dot:r.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:h};e=n.removePrefix(e,D);p=e.length;const F=[];const I=[];const j=[];let $=d;let N;const eos=()=>D.index===p-1;const U=D.peek=(t=1)=>e[D.index+t];const M=D.advance=()=>e[++D.index]||"";const remaining=()=>e.slice(D.index+1);const consume=(e="",t=0)=>{D.consumed+=e;D.index+=t};const append=e=>{D.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while(U()==="!"&&(U(2)!=="("||U(3)==="?")){M();D.start++;e++}if(e%2===0){return false}D.negated=true;D.start++;return true};const increment=e=>{D[e]++;j.push(e)};const decrement=e=>{D[e]--;j.pop()};const push=e=>{if($.type==="globstar"){const t=D.braces>0&&(e.type==="comma"||e.type==="brace");const r=e.extglob===true||F.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!r){D.output=D.output.slice(0,-$.output.length);$.type="star";$.value="*";$.output=L;D.output+=$.output}}if(F.length&&e.type!=="paren"){F[F.length-1].inner+=e.value}if(e.value||e.output)append(e);if($&&$.type==="text"&&e.type==="text"){$.value+=e.value;$.output=($.output||"")+e.value;return}e.prev=$;h.push(e);$=e};const extglobOpen=(e,t)=>{const s={...v[t],conditions:1,inner:""};s.prev=$;s.parens=D.parens;s.output=D.output;const n=(r.capture?"(":"")+s.open;increment("parens");push({type:e,value:t,output:D.output?"":w});push({type:"paren",extglob:true,value:M(),output:n});F.push(s)};const extglobClose=e=>{let s=e.close+(r.capture?")":"");let n;if(e.type==="negate"){let o=L;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){o=globstar(r)}if(o!==L||eos()||/^\)+$/.test(remaining())){s=e.close=`)$))${o}`}if(e.inner.includes("*")&&(n=remaining())&&/^\.[^\\/.]+$/.test(n)){const r=parse(n,{...t,fastpaths:false}).output;s=e.close=`)${r})${o})`}if(e.prev.type==="bos"){D.negatedExtglob=true}}push({type:"paren",extglob:true,value:N,output:s});decrement("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let s=false;let o=e.replace(c,((e,t,r,n,o,i)=>{if(n==="\\"){s=true;return e}if(n==="?"){if(t){return t+n+(o?P.repeat(o.length):"")}if(i===0){return G+(o?P.repeat(o.length):"")}return P.repeat(r.length)}if(n==="."){return y.repeat(r.length)}if(n==="*"){if(t){return t+n+(o?L:"")}return L}return t?e:`\\${e}`}));if(s===true){if(r.unescape===true){o=o.replace(/\\/g,"")}else{o=o.replace(/\\+/g,(e=>e.length%2===0?"\\\\":e?"\\":""))}}if(o===e&&r.contains===true){D.output=e;return D}D.output=n.wrapOutput(o,D,t);return D}while(!eos()){N=M();if(N==="\0"){continue}if(N==="\\"){const e=U();if(e==="/"&&r.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){N+="\\";push({type:"text",value:N});continue}const t=/^\\+/.exec(remaining());let s=0;if(t&&t[0].length>2){s=t[0].length;D.index+=s;if(s%2!==0){N+="\\"}}if(r.unescape===true){N=M()}else{N+=M()}if(D.brackets===0){push({type:"text",value:N});continue}}if(D.brackets>0&&(N!=="]"||$.value==="["||$.value==="[^")){if(r.posix!==false&&N===":"){const e=$.value.slice(1);if(e.includes("[")){$.posix=true;if(e.includes(":")){const e=$.value.lastIndexOf("[");const t=$.value.slice(0,e);const r=$.value.slice(e+2);const s=i[r];if(s){$.value=t+s;D.backtrack=true;M();if(!d.output&&h.indexOf($)===1){d.output=w}continue}}}}if(N==="["&&U()!==":"||N==="-"&&U()==="]"){N=`\\${N}`}if(N==="]"&&($.value==="["||$.value==="[^")){N=`\\${N}`}if(r.posix===true&&N==="!"&&$.value==="["){N="^"}$.value+=N;append({value:N});continue}if(D.quotes===1&&N!=='"'){N=n.escapeRegex(N);$.value+=N;append({value:N});continue}if(N==='"'){D.quotes=D.quotes===1?0:1;if(r.keepQuotes===true){push({type:"text",value:N})}continue}if(N==="("){increment("parens");push({type:"paren",value:N});continue}if(N===")"){if(D.parens===0&&r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=F[F.length-1];if(e&&D.parens===e.parens+1){extglobClose(F.pop());continue}push({type:"paren",value:N,output:D.parens?")":"\\)"});decrement("parens");continue}if(N==="["){if(r.nobracket===true||!remaining().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}N=`\\${N}`}else{increment("brackets")}push({type:"bracket",value:N});continue}if(N==="]"){if(r.nobracket===true||$&&$.type==="bracket"&&$.value.length===1){push({type:"text",value:N,output:`\\${N}`});continue}if(D.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:N,output:`\\${N}`});continue}decrement("brackets");const e=$.value.slice(1);if($.posix!==true&&e[0]==="^"&&!e.includes("/")){N=`/${N}`}$.value+=N;append({value:N});if(r.literalBrackets===false||n.hasRegexChars(e)){continue}const t=n.escapeRegex($.value);D.output=D.output.slice(0,-$.value.length);if(r.literalBrackets===true){D.output+=t;$.value=t;continue}$.value=`(${m}${t}|${$.value})`;D.output+=$.value;continue}if(N==="{"&&r.nobrace!==true){increment("braces");const e={type:"brace",value:N,output:"(",outputIndex:D.output.length,tokensIndex:D.tokens.length};I.push(e);push(e);continue}if(N==="}"){const e=I[I.length-1];if(r.nobrace===true||!e){push({type:"text",value:N,output:N});continue}let t=")";if(e.dots===true){const e=h.slice();const s=[];for(let t=e.length-1;t>=0;t--){h.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){s.unshift(e[t].value)}}t=expandRange(s,r);D.backtrack=true}if(e.comma!==true&&e.dots!==true){const r=D.output.slice(0,e.outputIndex);const s=D.tokens.slice(e.tokensIndex);e.value=e.output="\\{";N=t="\\}";D.output=r;for(const e of s){D.output+=e.output||e.value}}push({type:"brace",value:N,output:t});decrement("braces");I.pop();continue}if(N==="|"){if(F.length>0){F[F.length-1].conditions++}push({type:"text",value:N});continue}if(N===","){let e=N;const t=I[I.length-1];if(t&&j[j.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:N,output:e});continue}if(N==="/"){if($.type==="dot"&&D.index===D.start+1){D.start=D.index+1;D.consumed="";D.output="";h.pop();$=d;continue}push({type:"slash",value:N,output:b});continue}if(N==="."){if(D.braces>0&&$.type==="dot"){if($.value===".")$.output=y;const e=I[I.length-1];$.type="dots";$.output+=N;$.value+=N;e.dots=true;continue}if(D.braces+D.parens===0&&$.type!=="bos"&&$.type!=="slash"){push({type:"text",value:N,output:y});continue}push({type:"dot",value:N,output:y});continue}if(N==="?"){const e=$&&$.value==="(";if(!e&&r.noextglob!==true&&U()==="("&&U(2)!=="?"){extglobOpen("qmark",N);continue}if($&&$.type==="paren"){const e=U();let t=N;if(e==="<"&&!n.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if($.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${N}`}push({type:"text",value:N,output:t});continue}if(r.dot!==true&&($.type==="slash"||$.type==="bos")){push({type:"qmark",value:N,output:k});continue}push({type:"qmark",value:N,output:P});continue}if(N==="!"){if(r.noextglob!==true&&U()==="("){if(U(2)!=="?"||!/[!=<:]/.test(U(3))){extglobOpen("negate",N);continue}}if(r.nonegate!==true&&D.index===0){negate();continue}}if(N==="+"){if(r.noextglob!==true&&U()==="("&&U(2)!=="?"){extglobOpen("plus",N);continue}if($&&$.value==="("||r.regex===false){push({type:"plus",value:N,output:_});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||D.parens>0){push({type:"plus",value:N});continue}push({type:"plus",value:_});continue}if(N==="@"){if(r.noextglob!==true&&U()==="("&&U(2)!=="?"){push({type:"at",extglob:true,value:N,output:""});continue}push({type:"text",value:N});continue}if(N!=="*"){if(N==="$"||N==="^"){N=`\\${N}`}const e=a.exec(remaining());if(e){N+=e[0];D.index+=e[0].length}push({type:"text",value:N});continue}if($&&($.type==="globstar"||$.star===true)){$.type="star";$.star=true;$.value+=N;$.output=L;D.backtrack=true;D.globstar=true;consume(N);continue}let t=remaining();if(r.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",N);continue}if($.type==="star"){if(r.noglobstar===true){consume(N);continue}const s=$.prev;const n=s.prev;const o=s.type==="slash"||s.type==="bos";const i=n&&(n.type==="star"||n.type==="globstar");if(r.bash===true&&(!o||t[0]&&t[0]!=="/")){push({type:"star",value:N,output:""});continue}const a=D.braces>0&&(s.type==="comma"||s.type==="brace");const c=F.length&&(s.type==="pipe"||s.type==="paren");if(!o&&s.type!=="paren"&&!a&&!c){push({type:"star",value:N,output:""});continue}while(t.slice(0,3)==="/**"){const r=e[D.index+4];if(r&&r!=="/"){break}t=t.slice(3);consume("/**",3)}if(s.type==="bos"&&eos()){$.type="globstar";$.value+=N;$.output=globstar(r);D.output=$.output;D.globstar=true;consume(N);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&!i&&eos()){D.output=D.output.slice(0,-(s.output+$.output).length);s.output=`(?:${s.output}`;$.type="globstar";$.output=globstar(r)+(r.strictSlashes?")":"|$)");$.value+=N;D.globstar=true;D.output+=s.output+$.output;consume(N);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";D.output=D.output.slice(0,-(s.output+$.output).length);s.output=`(?:${s.output}`;$.type="globstar";$.output=`${globstar(r)}${b}|${b}${e})`;$.value+=N;D.output+=s.output+$.output;D.globstar=true;consume(N+M());push({type:"slash",value:"/",output:""});continue}if(s.type==="bos"&&t[0]==="/"){$.type="globstar";$.value+=N;$.output=`(?:^|${b}|${globstar(r)}${b})`;D.output=$.output;D.globstar=true;consume(N+M());push({type:"slash",value:"/",output:""});continue}D.output=D.output.slice(0,-$.output.length);$.type="globstar";$.output=globstar(r);$.value+=N;D.output+=$.output;D.globstar=true;consume(N);continue}const s={type:"star",value:N,output:L};if(r.bash===true){s.output=".*?";if($.type==="bos"||$.type==="slash"){s.output=x+s.output}push(s);continue}if($&&($.type==="bracket"||$.type==="paren")&&r.regex===true){s.output=N;push(s);continue}if(D.index===D.start||$.type==="slash"||$.type==="dot"){if($.type==="dot"){D.output+=O;$.output+=O}else if(r.dot===true){D.output+=R;$.output+=R}else{D.output+=x;$.output+=x}if(U()!=="*"){D.output+=w;$.output+=w}}push(s)}while(D.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));D.output=n.escapeLast(D.output,"[");decrement("brackets")}while(D.parens>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));D.output=n.escapeLast(D.output,"(");decrement("parens")}while(D.braces>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));D.output=n.escapeLast(D.output,"{");decrement("braces")}if(r.strictSlashes!==true&&($.type==="star"||$.type==="bracket")){push({type:"maybe_slash",value:"",output:`${b}?`})}if(D.backtrack===true){D.output="";for(const e of D.tokens){D.output+=e.output!=null?e.output:e.value;if(e.suffix){D.output+=e.suffix}}}return D};parse.fastpaths=(e,t)=>{const r={...t};const i=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;const a=e.length;if(a>i){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${i}`)}e=u[e]||e;const c=n.isWindows(t);const{DOT_LITERAL:l,SLASH_LITERAL:p,ONE_CHAR:d,DOTS_SLASH:h,NO_DOT:m,NO_DOTS:g,NO_DOTS_SLASH:E,STAR:v,START_ANCHOR:y}=s.globChars(c);const _=r.dot?g:m;const b=r.dot?E:m;const w=r.capture?"":"?:";const T={negated:false,prefix:""};let S=r.bash===true?".*?":v;if(r.capture){S=`(${S})`}const globstar=e=>{if(e.noglobstar===true)return S;return`(${w}(?:(?!${y}${e.dot?h:l}).)*?)`};const create=e=>{switch(e){case"*":return`${_}${d}${S}`;case".*":return`${l}${d}${S}`;case"*.*":return`${_}${S}${l}${d}${S}`;case"*/*":return`${_}${S}${p}${d}${b}${S}`;case"**":return _+globstar(r);case"**/*":return`(?:${_}${globstar(r)}${p})?${b}${d}${S}`;case"**/*.*":return`(?:${_}${globstar(r)}${p})?${b}${S}${l}${d}${S}`;case"**/.*":return`(?:${_}${globstar(r)}${p})?${l}${d}${S}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=create(t[1]);if(!r)return;return r+l+t[2]}}};const O=n.removePrefix(e,T);let R=create(O);if(R&&r.strictSlashes!==true){R+=`${p}?`}return R};e.exports=parse},4181:(e,t,r)=>{"use strict";const s=r(1017);const n=r(369);const o=r(5018);const i=r(6807);const a=r(7682);const isObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const picomatch=(e,t,r=false)=>{if(Array.isArray(e)){const s=e.map((e=>picomatch(e,t,r)));const arrayMatcher=e=>{for(const t of s){const r=t(e);if(r)return r}return false};return arrayMatcher}const s=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!s){throw new TypeError("Expected pattern to be a non-empty string")}const n=t||{};const o=i.isWindows(t);const a=s?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const c=a.state;delete a.state;let isIgnored=()=>false;if(n.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(n.ignore,e,r)}const matcher=(r,s=false)=>{const{isMatch:i,match:u,output:l}=picomatch.test(r,a,t,{glob:e,posix:o});const p={glob:e,state:c,regex:a,posix:o,input:r,output:l,match:u,isMatch:i};if(typeof n.onResult==="function"){n.onResult(p)}if(i===false){p.isMatch=false;return s?p:false}if(isIgnored(r)){if(typeof n.onIgnore==="function"){n.onIgnore(p)}p.isMatch=false;return s?p:false}if(typeof n.onMatch==="function"){n.onMatch(p)}return s?p:true};if(r){matcher.state=c}return matcher};picomatch.test=(e,t,r,{glob:s,posix:n}={})=>{if(typeof e!=="string"){throw new TypeError("Expected input to be a string")}if(e===""){return{isMatch:false,output:""}}const o=r||{};const a=o.format||(n?i.toPosixSlashes:null);let c=e===s;let u=c&&a?a(e):e;if(c===false){u=a?a(e):e;c=u===s}if(c===false||o.capture===true){if(o.matchBase===true||o.basename===true){c=picomatch.matchBase(e,t,r,n)}else{c=t.exec(u)}}return{isMatch:Boolean(c),match:c,output:u}};picomatch.matchBase=(e,t,r,n=i.isWindows(r))=>{const o=t instanceof RegExp?t:picomatch.makeRe(t,r);return o.test(s.basename(e))};picomatch.isMatch=(e,t,r)=>picomatch(t,r)(e);picomatch.parse=(e,t)=>{if(Array.isArray(e))return e.map((e=>picomatch.parse(e,t)));return o(e,{...t,fastpaths:false})};picomatch.scan=(e,t)=>n(e,t);picomatch.compileRe=(e,t,r=false,s=false)=>{if(r===true){return e.output}const n=t||{};const o=n.contains?"":"^";const i=n.contains?"":"$";let a=`${o}(?:${e.output})${i}`;if(e&&e.negated===true){a=`^(?!${a}).*$`}const c=picomatch.toRegex(a,t);if(s===true){c.state=e}return c};picomatch.makeRe=(e,t={},r=false,s=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}let n={negated:false,fastpaths:true};if(t.fastpaths!==false&&(e[0]==="."||e[0]==="*")){n.output=o.fastpaths(e,t)}if(!n.output){n=o(e,t)}return picomatch.compileRe(n,t,r,s)};picomatch.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}};picomatch.constants=a;e.exports=picomatch},369:(e,t,r)=>{"use strict";const s=r(6807);const{CHAR_ASTERISK:n,CHAR_AT:o,CHAR_BACKWARD_SLASH:i,CHAR_COMMA:a,CHAR_DOT:c,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:m,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:E,CHAR_RIGHT_PARENTHESES:v,CHAR_RIGHT_SQUARE_BRACKET:y}=r(7682);const isPathSeparator=e=>e===l||e===i;const depth=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const scan=(e,t)=>{const r=t||{};const _=e.length-1;const b=r.parts===true||r.scanToEnd===true;const w=[];const T=[];const S=[];let O=e;let R=-1;let P=0;let k=0;let A=false;let C=false;let x=false;let G=false;let L=false;let D=false;let F=false;let I=false;let j=false;let $=false;let N=0;let U;let M;let H={value:"",depth:0,isGlob:false};const eos=()=>R>=_;const peek=()=>O.charCodeAt(R+1);const advance=()=>{U=M;return O.charCodeAt(++R)};while(R<_){M=advance();let e;if(M===i){F=H.backslashes=true;M=advance();if(M===p){D=true}continue}if(D===true||M===p){N++;while(eos()!==true&&(M=advance())){if(M===i){F=H.backslashes=true;advance();continue}if(M===p){N++;continue}if(D!==true&&M===c&&(M=advance())===c){A=H.isBrace=true;x=H.isGlob=true;$=true;if(b===true){continue}break}if(D!==true&&M===a){A=H.isBrace=true;x=H.isGlob=true;$=true;if(b===true){continue}break}if(M===E){N--;if(N===0){D=false;A=H.isBrace=true;$=true;break}}}if(b===true){continue}break}if(M===l){w.push(R);T.push(H);H={value:"",depth:0,isGlob:false};if($===true)continue;if(U===c&&R===P+1){P+=2;continue}k=R+1;continue}if(r.noext!==true){const e=M===m||M===o||M===n||M===g||M===u;if(e===true&&peek()===d){x=H.isGlob=true;G=H.isExtglob=true;$=true;if(M===u&&R===P){j=true}if(b===true){while(eos()!==true&&(M=advance())){if(M===i){F=H.backslashes=true;M=advance();continue}if(M===v){x=H.isGlob=true;$=true;break}}continue}break}}if(M===n){if(U===n)L=H.isGlobstar=true;x=H.isGlob=true;$=true;if(b===true){continue}break}if(M===g){x=H.isGlob=true;$=true;if(b===true){continue}break}if(M===h){while(eos()!==true&&(e=advance())){if(e===i){F=H.backslashes=true;advance();continue}if(e===y){C=H.isBracket=true;x=H.isGlob=true;$=true;break}}if(b===true){continue}break}if(r.nonegate!==true&&M===u&&R===P){I=H.negated=true;P++;continue}if(r.noparen!==true&&M===d){x=H.isGlob=true;if(b===true){while(eos()!==true&&(M=advance())){if(M===d){F=H.backslashes=true;M=advance();continue}if(M===v){$=true;break}}continue}break}if(x===true){$=true;if(b===true){continue}break}}if(r.noext===true){G=false;x=false}let q=O;let B="";let V="";if(P>0){B=O.slice(0,P);O=O.slice(P);k-=P}if(q&&x===true&&k>0){q=O.slice(0,k);V=O.slice(k)}else if(x===true){q="";V=O}else{q=O}if(q&&q!==""&&q!=="/"&&q!==O){if(isPathSeparator(q.charCodeAt(q.length-1))){q=q.slice(0,-1)}}if(r.unescape===true){if(V)V=s.removeBackslashes(V);if(q&&F===true){q=s.removeBackslashes(q)}}const W={prefix:B,input:e,start:P,base:q,glob:V,isBrace:A,isBracket:C,isGlob:x,isExtglob:G,isGlobstar:L,negated:I,negatedExtglob:j};if(r.tokens===true){W.maxDepth=0;if(!isPathSeparator(M)){T.push(H)}W.tokens=T}if(r.parts===true||r.tokens===true){let t;for(let s=0;s{"use strict";const s=r(1017);const n=process.platform==="win32";const{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:c}=r(7682);t.isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);t.hasRegexChars=e=>a.test(e);t.isRegexChar=e=>e.length===1&&t.hasRegexChars(e);t.escapeRegex=e=>e.replace(c,"\\$1");t.toPosixSlashes=e=>e.replace(o,"/");t.removeBackslashes=e=>e.replace(i,(e=>e==="\\"?"":e));t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10){return true}return false};t.isWindows=e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return n===true||s.sep==="\\"};t.escapeLast=(e,r,s)=>{const n=e.lastIndexOf(r,s);if(n===-1)return e;if(e[n-1]==="\\")return t.escapeLast(e,r,n-1);return`${e.slice(0,n)}\\${e.slice(n)}`};t.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./")){r=r.slice(2);t.prefix="./"}return r};t.wrapOutput=(e,t={},r={})=>{const s=r.contains?"":"^";const n=r.contains?"":"$";let o=`${s}(?:${e})${n}`;if(t.negated===true){o=`(?:^(?!${o}).*$)`}return o}},1504:e=>{ + */e.exports=function(e){if(typeof e==="number"){return e-e===0}if(typeof e==="string"&&e.trim()!==""){return Number.isFinite?Number.isFinite(+e):isFinite(+e)}return false}},7033:(e,t,r)=>{"use strict";const s=r(2781);const n=s.PassThrough;const o=Array.prototype.slice;e.exports=merge2;function merge2(){const e=[];const t=o.call(arguments);let r=false;let s=t[t.length-1];if(s&&!Array.isArray(s)&&s.pipe==null){t.pop()}else{s={}}const i=s.end!==false;const a=s.pipeError===true;if(s.objectMode==null){s.objectMode=true}if(s.highWaterMark==null){s.highWaterMark=64*1024}const c=n(s);function addStream(){for(let t=0,r=arguments.length;t0){return}r=false;mergeStream()}function pipe(e){function onend(){e.removeListener("merge2UnpipeEnd",onend);e.removeListener("end",onend);if(a){e.removeListener("error",onerror)}next()}function onerror(e){c.emit("error",e)}if(e._readableState.endEmitted){return next()}e.on("merge2UnpipeEnd",onend);e.on("end",onend);if(a){e.on("error",onerror)}e.pipe(c,{end:false});e.resume()}for(let e=0;e{"use strict";const s=r(3837);const n=r(32);const o=r(4317);const i=r(6807);const isEmptyString=e=>e===""||e==="./";const micromatch=(e,t,r)=>{t=[].concat(t);e=[].concat(e);let s=new Set;let n=new Set;let i=new Set;let a=0;let onResult=e=>{i.add(e.output);if(r&&r.onResult){r.onResult(e)}};for(let i=0;i!s.has(e)));if(r&&u.length===0){if(r.failglob===true){throw new Error(`No matches found for "${t.join(", ")}"`)}if(r.nonull===true||r.nullglob===true){return r.unescape?t.map((e=>e.replace(/\\/g,""))):t}}return u};micromatch.match=micromatch;micromatch.matcher=(e,t)=>o(e,t);micromatch.isMatch=(e,t,r)=>o(t,r)(e);micromatch.any=micromatch.isMatch;micromatch.not=(e,t,r={})=>{t=[].concat(t).map(String);let s=new Set;let n=[];let onResult=e=>{if(r.onResult)r.onResult(e);n.push(e.output)};let o=new Set(micromatch(e,t,{...r,onResult:onResult}));for(let e of n){if(!o.has(e)){s.add(e)}}return[...s]};micromatch.contains=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${s.inspect(e)}"`)}if(Array.isArray(t)){return t.some((t=>micromatch.contains(e,t,r)))}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t)){return true}}return micromatch.isMatch(e,t,{...r,contains:true})};micromatch.matchKeys=(e,t,r)=>{if(!i.isObject(e)){throw new TypeError("Expected the first argument to be an object")}let s=micromatch(Object.keys(e),t,r);let n={};for(let t of s)n[t]=e[t];return n};micromatch.some=(e,t,r)=>{let s=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),r);if(s.some((e=>t(e)))){return true}}return false};micromatch.every=(e,t,r)=>{let s=[].concat(e);for(let e of[].concat(t)){let t=o(String(e),r);if(!s.every((e=>t(e)))){return false}}return true};micromatch.all=(e,t,r)=>{if(typeof e!=="string"){throw new TypeError(`Expected a string: "${s.inspect(e)}"`)}return[].concat(t).every((t=>o(t,r)(e)))};micromatch.capture=(e,t,r)=>{let s=i.isWindows(r);let n=o.makeRe(String(e),{...r,capture:true});let a=n.exec(s?i.toPosixSlashes(t):t);if(a){return a.slice(1).map((e=>e===void 0?"":e))}};micromatch.makeRe=(...e)=>o.makeRe(...e);micromatch.scan=(...e)=>o.scan(...e);micromatch.parse=(e,t)=>{let r=[];for(let s of[].concat(e||[])){for(let e of n(String(s),t)){r.push(o.parse(e,t))}}return r};micromatch.braces=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return[e]}return n(e,t)};micromatch.braceExpand=(e,t)=>{if(typeof e!=="string")throw new TypeError("Expected a string");return micromatch.braces(e,{...t,expand:true})};e.exports=micromatch},7151:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var s=function(){try{return r(1017)}catch(e){}}()||{sep:"/"};minimatch.sep=s.sep;var n=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var o=r(5862);var i={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var c=a+"*?";var u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var p=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var d=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,s,n){return minimatch(r,e,t)}}function ext(e,t){t=t||{};var r={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));return r}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var r=function minimatch(r,s,n){return t(r,s,ext(e,n))};r.Minimatch=function Minimatch(r,s){return new t.Minimatch(r,ext(e,s))};r.Minimatch.defaults=function defaults(r){return t.defaults(ext(e,r)).Minimatch};r.filter=function filter(r,s){return t.filter(r,ext(e,s))};r.defaults=function defaults(r){return t.defaults(ext(e,r))};r.makeRe=function makeRe(r,s){return t.makeRe(r,ext(e,s))};r.braceExpand=function braceExpand(r,s){return t.braceExpand(r,ext(e,s))};r.match=function(r,s,n){return t.match(r,s,ext(e,n))};return r};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){assertValidPattern(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&s.sep!=="/"){e=e.split(s.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(d)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var s=0;if(r.nonegate)return;for(var n=0,o=e.length;nh){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var m={};function parse(e,t){assertValidPattern(e);var r=this.options;if(e==="**"){if(!r.noglobstar)return n;else e="*"}if(e==="")return"";var s="";var o=!!r.nocase;var u=false;var l=[];var d=[];var h;var g=false;var E=-1;var v=-1;var y=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var _=this;function clearStateChar(){if(h){switch(h){case"*":s+=c;o=true;break;case"?":s+=a;o=true;break;default:s+="\\"+h;break}_.debug("clearStateChar %j %j",h,s);h=false}}for(var b=0,w=e.length,T;b-1;C--){var x=d[C];var G=s.slice(0,x.reStart);var L=s.slice(x.reStart,x.reEnd-8);var F=s.slice(x.reEnd-8,x.reEnd);var D=s.slice(x.reEnd);F+=D;var I=G.split("(").length-1;var j=D;for(b=0;b=0;i--){o=e[i];if(o)break}for(i=0;i>> no match, partial?",e,p,t,d);if(p===a)return true}return false}var m;if(typeof u==="string"){m=l===u;this.debug("string match",u,l,m)}else{m=l.match(u);this.debug("pattern match",u,l,m)}if(!m)return false}if(o===a&&i===c){return true}else if(o===a){return r}else if(i===c){return o===a-1&&e[o]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},9472:(e,t,r)=>{var s=r(666);e.exports=s(once);e.exports.strict=s(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},312:e=>{"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var s=r[1]||"";var n=Boolean(s&&s.charAt(1)!==":");return Boolean(r[2]||n)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},4317:(e,t,r)=>{"use strict";e.exports=r(4181)},7682:(e,t,r)=>{"use strict";const s=r(1017);const n="\\\\/";const o=`[^${n}]`;const i="\\.";const a="\\+";const c="\\?";const u="\\/";const l="(?=.)";const p="[^/]";const d=`(?:${u}|$)`;const h=`(?:^|${u})`;const m=`${i}{1,2}${d}`;const g=`(?!${i})`;const E=`(?!${h}${m})`;const v=`(?!${i}{0,1}${d})`;const y=`(?!${m})`;const _=`[^.${u}]`;const b=`${p}*?`;const w={DOT_LITERAL:i,PLUS_LITERAL:a,QMARK_LITERAL:c,SLASH_LITERAL:u,ONE_CHAR:l,QMARK:p,END_ANCHOR:d,DOTS_SLASH:m,NO_DOT:g,NO_DOTS:E,NO_DOT_SLASH:v,NO_DOTS_SLASH:y,QMARK_NO_DOT:_,STAR:b,START_ANCHOR:h};const T={...w,SLASH_LITERAL:`[${n}]`,QMARK:o,STAR:`${o}*?`,DOTS_SLASH:`${i}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${i})`,NO_DOTS:`(?!(?:^|[${n}])${i}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${i}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${i}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`};const S={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};e.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:S,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:s.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===true?T:w}}},5018:(e,t,r)=>{"use strict";const s=r(7682);const n=r(6807);const{MAX_LENGTH:o,POSIX_REGEX_SOURCE:i,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:u}=s;const expandRange=(e,t)=>{if(typeof t.expandRange==="function"){return t.expandRange(...e,t)}e.sort();const r=`[${e.join("-")}]`;try{new RegExp(r)}catch(t){return e.map((e=>n.escapeRegex(e))).join("..")}return r};const syntaxError=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`;const parse=(e,t)=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}e=u[e]||e;const r={...t};const l=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;let p=e.length;if(p>l){throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${l}`)}const d={type:"bos",value:"",output:r.prepend||""};const h=[d];const m=r.capture?"":"?:";const g=n.isWindows(t);const E=s.globChars(g);const v=s.extglobChars(E);const{DOT_LITERAL:y,PLUS_LITERAL:_,SLASH_LITERAL:b,ONE_CHAR:w,DOTS_SLASH:T,NO_DOT:S,NO_DOT_SLASH:O,NO_DOTS_SLASH:R,QMARK:P,QMARK_NO_DOT:k,STAR:A,START_ANCHOR:C}=E;const globstar=e=>`(${m}(?:(?!${C}${e.dot?T:y}).)*?)`;const x=r.dot?"":S;const G=r.dot?P:k;let L=r.bash===true?globstar(r):A;if(r.capture){L=`(${L})`}if(typeof r.noext==="boolean"){r.noextglob=r.noext}const F={input:e,index:-1,start:0,dot:r.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:h};e=n.removePrefix(e,F);p=e.length;const D=[];const I=[];const j=[];let $=d;let N;const eos=()=>F.index===p-1;const U=F.peek=(t=1)=>e[F.index+t];const M=F.advance=()=>e[++F.index]||"";const remaining=()=>e.slice(F.index+1);const consume=(e="",t=0)=>{F.consumed+=e;F.index+=t};const append=e=>{F.output+=e.output!=null?e.output:e.value;consume(e.value)};const negate=()=>{let e=1;while(U()==="!"&&(U(2)!=="("||U(3)==="?")){M();F.start++;e++}if(e%2===0){return false}F.negated=true;F.start++;return true};const increment=e=>{F[e]++;j.push(e)};const decrement=e=>{F[e]--;j.pop()};const push=e=>{if($.type==="globstar"){const t=F.braces>0&&(e.type==="comma"||e.type==="brace");const r=e.extglob===true||D.length&&(e.type==="pipe"||e.type==="paren");if(e.type!=="slash"&&e.type!=="paren"&&!t&&!r){F.output=F.output.slice(0,-$.output.length);$.type="star";$.value="*";$.output=L;F.output+=$.output}}if(D.length&&e.type!=="paren"){D[D.length-1].inner+=e.value}if(e.value||e.output)append(e);if($&&$.type==="text"&&e.type==="text"){$.value+=e.value;$.output=($.output||"")+e.value;return}e.prev=$;h.push(e);$=e};const extglobOpen=(e,t)=>{const s={...v[t],conditions:1,inner:""};s.prev=$;s.parens=F.parens;s.output=F.output;const n=(r.capture?"(":"")+s.open;increment("parens");push({type:e,value:t,output:F.output?"":w});push({type:"paren",extglob:true,value:M(),output:n});D.push(s)};const extglobClose=e=>{let s=e.close+(r.capture?")":"");let n;if(e.type==="negate"){let o=L;if(e.inner&&e.inner.length>1&&e.inner.includes("/")){o=globstar(r)}if(o!==L||eos()||/^\)+$/.test(remaining())){s=e.close=`)$))${o}`}if(e.inner.includes("*")&&(n=remaining())&&/^\.[^\\/.]+$/.test(n)){const r=parse(n,{...t,fastpaths:false}).output;s=e.close=`)${r})${o})`}if(e.prev.type==="bos"){F.negatedExtglob=true}}push({type:"paren",extglob:true,value:N,output:s});decrement("parens")};if(r.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(e)){let s=false;let o=e.replace(c,((e,t,r,n,o,i)=>{if(n==="\\"){s=true;return e}if(n==="?"){if(t){return t+n+(o?P.repeat(o.length):"")}if(i===0){return G+(o?P.repeat(o.length):"")}return P.repeat(r.length)}if(n==="."){return y.repeat(r.length)}if(n==="*"){if(t){return t+n+(o?L:"")}return L}return t?e:`\\${e}`}));if(s===true){if(r.unescape===true){o=o.replace(/\\/g,"")}else{o=o.replace(/\\+/g,(e=>e.length%2===0?"\\\\":e?"\\":""))}}if(o===e&&r.contains===true){F.output=e;return F}F.output=n.wrapOutput(o,F,t);return F}while(!eos()){N=M();if(N==="\0"){continue}if(N==="\\"){const e=U();if(e==="/"&&r.bash!==true){continue}if(e==="."||e===";"){continue}if(!e){N+="\\";push({type:"text",value:N});continue}const t=/^\\+/.exec(remaining());let s=0;if(t&&t[0].length>2){s=t[0].length;F.index+=s;if(s%2!==0){N+="\\"}}if(r.unescape===true){N=M()}else{N+=M()}if(F.brackets===0){push({type:"text",value:N});continue}}if(F.brackets>0&&(N!=="]"||$.value==="["||$.value==="[^")){if(r.posix!==false&&N===":"){const e=$.value.slice(1);if(e.includes("[")){$.posix=true;if(e.includes(":")){const e=$.value.lastIndexOf("[");const t=$.value.slice(0,e);const r=$.value.slice(e+2);const s=i[r];if(s){$.value=t+s;F.backtrack=true;M();if(!d.output&&h.indexOf($)===1){d.output=w}continue}}}}if(N==="["&&U()!==":"||N==="-"&&U()==="]"){N=`\\${N}`}if(N==="]"&&($.value==="["||$.value==="[^")){N=`\\${N}`}if(r.posix===true&&N==="!"&&$.value==="["){N="^"}$.value+=N;append({value:N});continue}if(F.quotes===1&&N!=='"'){N=n.escapeRegex(N);$.value+=N;append({value:N});continue}if(N==='"'){F.quotes=F.quotes===1?0:1;if(r.keepQuotes===true){push({type:"text",value:N})}continue}if(N==="("){increment("parens");push({type:"paren",value:N});continue}if(N===")"){if(F.parens===0&&r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const e=D[D.length-1];if(e&&F.parens===e.parens+1){extglobClose(D.pop());continue}push({type:"paren",value:N,output:F.parens?")":"\\)"});decrement("parens");continue}if(N==="["){if(r.nobracket===true||!remaining().includes("]")){if(r.nobracket!==true&&r.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}N=`\\${N}`}else{increment("brackets")}push({type:"bracket",value:N});continue}if(N==="]"){if(r.nobracket===true||$&&$.type==="bracket"&&$.value.length===1){push({type:"text",value:N,output:`\\${N}`});continue}if(F.brackets===0){if(r.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:N,output:`\\${N}`});continue}decrement("brackets");const e=$.value.slice(1);if($.posix!==true&&e[0]==="^"&&!e.includes("/")){N=`/${N}`}$.value+=N;append({value:N});if(r.literalBrackets===false||n.hasRegexChars(e)){continue}const t=n.escapeRegex($.value);F.output=F.output.slice(0,-$.value.length);if(r.literalBrackets===true){F.output+=t;$.value=t;continue}$.value=`(${m}${t}|${$.value})`;F.output+=$.value;continue}if(N==="{"&&r.nobrace!==true){increment("braces");const e={type:"brace",value:N,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};I.push(e);push(e);continue}if(N==="}"){const e=I[I.length-1];if(r.nobrace===true||!e){push({type:"text",value:N,output:N});continue}let t=")";if(e.dots===true){const e=h.slice();const s=[];for(let t=e.length-1;t>=0;t--){h.pop();if(e[t].type==="brace"){break}if(e[t].type!=="dots"){s.unshift(e[t].value)}}t=expandRange(s,r);F.backtrack=true}if(e.comma!==true&&e.dots!==true){const r=F.output.slice(0,e.outputIndex);const s=F.tokens.slice(e.tokensIndex);e.value=e.output="\\{";N=t="\\}";F.output=r;for(const e of s){F.output+=e.output||e.value}}push({type:"brace",value:N,output:t});decrement("braces");I.pop();continue}if(N==="|"){if(D.length>0){D[D.length-1].conditions++}push({type:"text",value:N});continue}if(N===","){let e=N;const t=I[I.length-1];if(t&&j[j.length-1]==="braces"){t.comma=true;e="|"}push({type:"comma",value:N,output:e});continue}if(N==="/"){if($.type==="dot"&&F.index===F.start+1){F.start=F.index+1;F.consumed="";F.output="";h.pop();$=d;continue}push({type:"slash",value:N,output:b});continue}if(N==="."){if(F.braces>0&&$.type==="dot"){if($.value===".")$.output=y;const e=I[I.length-1];$.type="dots";$.output+=N;$.value+=N;e.dots=true;continue}if(F.braces+F.parens===0&&$.type!=="bos"&&$.type!=="slash"){push({type:"text",value:N,output:y});continue}push({type:"dot",value:N,output:y});continue}if(N==="?"){const e=$&&$.value==="(";if(!e&&r.noextglob!==true&&U()==="("&&U(2)!=="?"){extglobOpen("qmark",N);continue}if($&&$.type==="paren"){const e=U();let t=N;if(e==="<"&&!n.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if($.value==="("&&!/[!=<:]/.test(e)||e==="<"&&!/<([!=]|\w+>)/.test(remaining())){t=`\\${N}`}push({type:"text",value:N,output:t});continue}if(r.dot!==true&&($.type==="slash"||$.type==="bos")){push({type:"qmark",value:N,output:k});continue}push({type:"qmark",value:N,output:P});continue}if(N==="!"){if(r.noextglob!==true&&U()==="("){if(U(2)!=="?"||!/[!=<:]/.test(U(3))){extglobOpen("negate",N);continue}}if(r.nonegate!==true&&F.index===0){negate();continue}}if(N==="+"){if(r.noextglob!==true&&U()==="("&&U(2)!=="?"){extglobOpen("plus",N);continue}if($&&$.value==="("||r.regex===false){push({type:"plus",value:N,output:_});continue}if($&&($.type==="bracket"||$.type==="paren"||$.type==="brace")||F.parens>0){push({type:"plus",value:N});continue}push({type:"plus",value:_});continue}if(N==="@"){if(r.noextglob!==true&&U()==="("&&U(2)!=="?"){push({type:"at",extglob:true,value:N,output:""});continue}push({type:"text",value:N});continue}if(N!=="*"){if(N==="$"||N==="^"){N=`\\${N}`}const e=a.exec(remaining());if(e){N+=e[0];F.index+=e[0].length}push({type:"text",value:N});continue}if($&&($.type==="globstar"||$.star===true)){$.type="star";$.star=true;$.value+=N;$.output=L;F.backtrack=true;F.globstar=true;consume(N);continue}let t=remaining();if(r.noextglob!==true&&/^\([^?]/.test(t)){extglobOpen("star",N);continue}if($.type==="star"){if(r.noglobstar===true){consume(N);continue}const s=$.prev;const n=s.prev;const o=s.type==="slash"||s.type==="bos";const i=n&&(n.type==="star"||n.type==="globstar");if(r.bash===true&&(!o||t[0]&&t[0]!=="/")){push({type:"star",value:N,output:""});continue}const a=F.braces>0&&(s.type==="comma"||s.type==="brace");const c=D.length&&(s.type==="pipe"||s.type==="paren");if(!o&&s.type!=="paren"&&!a&&!c){push({type:"star",value:N,output:""});continue}while(t.slice(0,3)==="/**"){const r=e[F.index+4];if(r&&r!=="/"){break}t=t.slice(3);consume("/**",3)}if(s.type==="bos"&&eos()){$.type="globstar";$.value+=N;$.output=globstar(r);F.output=$.output;F.globstar=true;consume(N);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&!i&&eos()){F.output=F.output.slice(0,-(s.output+$.output).length);s.output=`(?:${s.output}`;$.type="globstar";$.output=globstar(r)+(r.strictSlashes?")":"|$)");$.value+=N;F.globstar=true;F.output+=s.output+$.output;consume(N);continue}if(s.type==="slash"&&s.prev.type!=="bos"&&t[0]==="/"){const e=t[1]!==void 0?"|$":"";F.output=F.output.slice(0,-(s.output+$.output).length);s.output=`(?:${s.output}`;$.type="globstar";$.output=`${globstar(r)}${b}|${b}${e})`;$.value+=N;F.output+=s.output+$.output;F.globstar=true;consume(N+M());push({type:"slash",value:"/",output:""});continue}if(s.type==="bos"&&t[0]==="/"){$.type="globstar";$.value+=N;$.output=`(?:^|${b}|${globstar(r)}${b})`;F.output=$.output;F.globstar=true;consume(N+M());push({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-$.output.length);$.type="globstar";$.output=globstar(r);$.value+=N;F.output+=$.output;F.globstar=true;consume(N);continue}const s={type:"star",value:N,output:L};if(r.bash===true){s.output=".*?";if($.type==="bos"||$.type==="slash"){s.output=x+s.output}push(s);continue}if($&&($.type==="bracket"||$.type==="paren")&&r.regex===true){s.output=N;push(s);continue}if(F.index===F.start||$.type==="slash"||$.type==="dot"){if($.type==="dot"){F.output+=O;$.output+=O}else if(r.dot===true){F.output+=R;$.output+=R}else{F.output+=x;$.output+=x}if(U()!=="*"){F.output+=w;$.output+=w}}push(s)}while(F.brackets>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));F.output=n.escapeLast(F.output,"[");decrement("brackets")}while(F.parens>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));F.output=n.escapeLast(F.output,"(");decrement("parens")}while(F.braces>0){if(r.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));F.output=n.escapeLast(F.output,"{");decrement("braces")}if(r.strictSlashes!==true&&($.type==="star"||$.type==="bracket")){push({type:"maybe_slash",value:"",output:`${b}?`})}if(F.backtrack===true){F.output="";for(const e of F.tokens){F.output+=e.output!=null?e.output:e.value;if(e.suffix){F.output+=e.suffix}}}return F};parse.fastpaths=(e,t)=>{const r={...t};const i=typeof r.maxLength==="number"?Math.min(o,r.maxLength):o;const a=e.length;if(a>i){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${i}`)}e=u[e]||e;const c=n.isWindows(t);const{DOT_LITERAL:l,SLASH_LITERAL:p,ONE_CHAR:d,DOTS_SLASH:h,NO_DOT:m,NO_DOTS:g,NO_DOTS_SLASH:E,STAR:v,START_ANCHOR:y}=s.globChars(c);const _=r.dot?g:m;const b=r.dot?E:m;const w=r.capture?"":"?:";const T={negated:false,prefix:""};let S=r.bash===true?".*?":v;if(r.capture){S=`(${S})`}const globstar=e=>{if(e.noglobstar===true)return S;return`(${w}(?:(?!${y}${e.dot?h:l}).)*?)`};const create=e=>{switch(e){case"*":return`${_}${d}${S}`;case".*":return`${l}${d}${S}`;case"*.*":return`${_}${S}${l}${d}${S}`;case"*/*":return`${_}${S}${p}${d}${b}${S}`;case"**":return _+globstar(r);case"**/*":return`(?:${_}${globstar(r)}${p})?${b}${d}${S}`;case"**/*.*":return`(?:${_}${globstar(r)}${p})?${b}${S}${l}${d}${S}`;case"**/.*":return`(?:${_}${globstar(r)}${p})?${l}${d}${S}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=create(t[1]);if(!r)return;return r+l+t[2]}}};const O=n.removePrefix(e,T);let R=create(O);if(R&&r.strictSlashes!==true){R+=`${p}?`}return R};e.exports=parse},4181:(e,t,r)=>{"use strict";const s=r(1017);const n=r(369);const o=r(5018);const i=r(6807);const a=r(7682);const isObject=e=>e&&typeof e==="object"&&!Array.isArray(e);const picomatch=(e,t,r=false)=>{if(Array.isArray(e)){const s=e.map((e=>picomatch(e,t,r)));const arrayMatcher=e=>{for(const t of s){const r=t(e);if(r)return r}return false};return arrayMatcher}const s=isObject(e)&&e.tokens&&e.input;if(e===""||typeof e!=="string"&&!s){throw new TypeError("Expected pattern to be a non-empty string")}const n=t||{};const o=i.isWindows(t);const a=s?picomatch.compileRe(e,t):picomatch.makeRe(e,t,false,true);const c=a.state;delete a.state;let isIgnored=()=>false;if(n.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(n.ignore,e,r)}const matcher=(r,s=false)=>{const{isMatch:i,match:u,output:l}=picomatch.test(r,a,t,{glob:e,posix:o});const p={glob:e,state:c,regex:a,posix:o,input:r,output:l,match:u,isMatch:i};if(typeof n.onResult==="function"){n.onResult(p)}if(i===false){p.isMatch=false;return s?p:false}if(isIgnored(r)){if(typeof n.onIgnore==="function"){n.onIgnore(p)}p.isMatch=false;return s?p:false}if(typeof n.onMatch==="function"){n.onMatch(p)}return s?p:true};if(r){matcher.state=c}return matcher};picomatch.test=(e,t,r,{glob:s,posix:n}={})=>{if(typeof e!=="string"){throw new TypeError("Expected input to be a string")}if(e===""){return{isMatch:false,output:""}}const o=r||{};const a=o.format||(n?i.toPosixSlashes:null);let c=e===s;let u=c&&a?a(e):e;if(c===false){u=a?a(e):e;c=u===s}if(c===false||o.capture===true){if(o.matchBase===true||o.basename===true){c=picomatch.matchBase(e,t,r,n)}else{c=t.exec(u)}}return{isMatch:Boolean(c),match:c,output:u}};picomatch.matchBase=(e,t,r,n=i.isWindows(r))=>{const o=t instanceof RegExp?t:picomatch.makeRe(t,r);return o.test(s.basename(e))};picomatch.isMatch=(e,t,r)=>picomatch(t,r)(e);picomatch.parse=(e,t)=>{if(Array.isArray(e))return e.map((e=>picomatch.parse(e,t)));return o(e,{...t,fastpaths:false})};picomatch.scan=(e,t)=>n(e,t);picomatch.compileRe=(e,t,r=false,s=false)=>{if(r===true){return e.output}const n=t||{};const o=n.contains?"":"^";const i=n.contains?"":"$";let a=`${o}(?:${e.output})${i}`;if(e&&e.negated===true){a=`^(?!${a}).*$`}const c=picomatch.toRegex(a,t);if(s===true){c.state=e}return c};picomatch.makeRe=(e,t={},r=false,s=false)=>{if(!e||typeof e!=="string"){throw new TypeError("Expected a non-empty string")}let n={negated:false,fastpaths:true};if(t.fastpaths!==false&&(e[0]==="."||e[0]==="*")){n.output=o.fastpaths(e,t)}if(!n.output){n=o(e,t)}return picomatch.compileRe(n,t,r,s)};picomatch.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&t.debug===true)throw e;return/$^/}};picomatch.constants=a;e.exports=picomatch},369:(e,t,r)=>{"use strict";const s=r(6807);const{CHAR_ASTERISK:n,CHAR_AT:o,CHAR_BACKWARD_SLASH:i,CHAR_COMMA:a,CHAR_DOT:c,CHAR_EXCLAMATION_MARK:u,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:m,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:E,CHAR_RIGHT_PARENTHESES:v,CHAR_RIGHT_SQUARE_BRACKET:y}=r(7682);const isPathSeparator=e=>e===l||e===i;const depth=e=>{if(e.isPrefix!==true){e.depth=e.isGlobstar?Infinity:1}};const scan=(e,t)=>{const r=t||{};const _=e.length-1;const b=r.parts===true||r.scanToEnd===true;const w=[];const T=[];const S=[];let O=e;let R=-1;let P=0;let k=0;let A=false;let C=false;let x=false;let G=false;let L=false;let F=false;let D=false;let I=false;let j=false;let $=false;let N=0;let U;let M;let H={value:"",depth:0,isGlob:false};const eos=()=>R>=_;const peek=()=>O.charCodeAt(R+1);const advance=()=>{U=M;return O.charCodeAt(++R)};while(R<_){M=advance();let e;if(M===i){D=H.backslashes=true;M=advance();if(M===p){F=true}continue}if(F===true||M===p){N++;while(eos()!==true&&(M=advance())){if(M===i){D=H.backslashes=true;advance();continue}if(M===p){N++;continue}if(F!==true&&M===c&&(M=advance())===c){A=H.isBrace=true;x=H.isGlob=true;$=true;if(b===true){continue}break}if(F!==true&&M===a){A=H.isBrace=true;x=H.isGlob=true;$=true;if(b===true){continue}break}if(M===E){N--;if(N===0){F=false;A=H.isBrace=true;$=true;break}}}if(b===true){continue}break}if(M===l){w.push(R);T.push(H);H={value:"",depth:0,isGlob:false};if($===true)continue;if(U===c&&R===P+1){P+=2;continue}k=R+1;continue}if(r.noext!==true){const e=M===m||M===o||M===n||M===g||M===u;if(e===true&&peek()===d){x=H.isGlob=true;G=H.isExtglob=true;$=true;if(M===u&&R===P){j=true}if(b===true){while(eos()!==true&&(M=advance())){if(M===i){D=H.backslashes=true;M=advance();continue}if(M===v){x=H.isGlob=true;$=true;break}}continue}break}}if(M===n){if(U===n)L=H.isGlobstar=true;x=H.isGlob=true;$=true;if(b===true){continue}break}if(M===g){x=H.isGlob=true;$=true;if(b===true){continue}break}if(M===h){while(eos()!==true&&(e=advance())){if(e===i){D=H.backslashes=true;advance();continue}if(e===y){C=H.isBracket=true;x=H.isGlob=true;$=true;break}}if(b===true){continue}break}if(r.nonegate!==true&&M===u&&R===P){I=H.negated=true;P++;continue}if(r.noparen!==true&&M===d){x=H.isGlob=true;if(b===true){while(eos()!==true&&(M=advance())){if(M===d){D=H.backslashes=true;M=advance();continue}if(M===v){$=true;break}}continue}break}if(x===true){$=true;if(b===true){continue}break}}if(r.noext===true){G=false;x=false}let q=O;let B="";let V="";if(P>0){B=O.slice(0,P);O=O.slice(P);k-=P}if(q&&x===true&&k>0){q=O.slice(0,k);V=O.slice(k)}else if(x===true){q="";V=O}else{q=O}if(q&&q!==""&&q!=="/"&&q!==O){if(isPathSeparator(q.charCodeAt(q.length-1))){q=q.slice(0,-1)}}if(r.unescape===true){if(V)V=s.removeBackslashes(V);if(q&&D===true){q=s.removeBackslashes(q)}}const W={prefix:B,input:e,start:P,base:q,glob:V,isBrace:A,isBracket:C,isGlob:x,isExtglob:G,isGlobstar:L,negated:I,negatedExtglob:j};if(r.tokens===true){W.maxDepth=0;if(!isPathSeparator(M)){T.push(H)}W.tokens=T}if(r.parts===true||r.tokens===true){let t;for(let s=0;s{"use strict";const s=r(1017);const n=process.platform==="win32";const{REGEX_BACKSLASH:o,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:c}=r(7682);t.isObject=e=>e!==null&&typeof e==="object"&&!Array.isArray(e);t.hasRegexChars=e=>a.test(e);t.isRegexChar=e=>e.length===1&&t.hasRegexChars(e);t.escapeRegex=e=>e.replace(c,"\\$1");t.toPosixSlashes=e=>e.replace(o,"/");t.removeBackslashes=e=>e.replace(i,(e=>e==="\\"?"":e));t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);if(e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10){return true}return false};t.isWindows=e=>{if(e&&typeof e.windows==="boolean"){return e.windows}return n===true||s.sep==="\\"};t.escapeLast=(e,r,s)=>{const n=e.lastIndexOf(r,s);if(n===-1)return e;if(e[n-1]==="\\")return t.escapeLast(e,r,n-1);return`${e.slice(0,n)}\\${e.slice(n)}`};t.removePrefix=(e,t={})=>{let r=e;if(r.startsWith("./")){r=r.slice(2);t.prefix="./"}return r};t.wrapOutput=(e,t={},r={})=>{const s=r.contains?"":"^";const n=r.contains?"":"$";let o=`${s}(?:${e})${n}`;if(t.negated===true){o=`(?:^(?!${o}).*$)`}return o}},1504:e=>{ /*! queue-microtask. MIT License. Feross Aboukhadijeh */ let t;e.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window!=="undefined"?window:global):e=>(t||(t=Promise.resolve())).then(e).catch((e=>setTimeout((()=>{throw e}),0)))},7728:e=>{"use strict";function reusify(e){var t=new e;var r=t;function get(){var s=t;if(s.next){t=s.next}else{t=new e;r=t}s.next=null;return s}function release(e){r.next=e;r=e}return{get:get,release:release}}e.exports=reusify},7492:(e,t,r)=>{ /*! run-parallel. MIT License. Feross Aboukhadijeh */ -e.exports=runParallel;const s=r(1504);function runParallel(e,t){let r,n,o;let i=true;if(Array.isArray(e)){r=[];n=e.length}else{o=Object.keys(e);r={};n=o.length}function done(e){function end(){if(t)t(e,r);t=null}if(i)s(end);else end()}function each(e,t,s){r[e]=s;if(--n===0||t){done(t)}}if(!n){done(null)}else if(o){o.forEach((function(t){e[t]((function(e,r){each(t,e,r)}))}))}else{e.forEach((function(e,t){e((function(e,r){each(t,e,r)}))}))}i=false}},6531:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var s=256;var n=Number.MAX_SAFE_INTEGER||9007199254740991;var o=16;var i=t.re=[];var a=t.src=[];var c=t.tokens={};var u=0;function tok(e){c[e]=u++}tok("NUMERICIDENTIFIER");a[c.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");a[c.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");a[c.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");a[c.MAINVERSION]="("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");a[c.MAINVERSIONLOOSE]="("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");a[c.PRERELEASEIDENTIFIER]="(?:"+a[c.NUMERICIDENTIFIER]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");a[c.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[c.NUMERICIDENTIFIERLOOSE]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");a[c.PRERELEASE]="(?:-("+a[c.PRERELEASEIDENTIFIER]+"(?:\\."+a[c.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");a[c.PRERELEASELOOSE]="(?:-?("+a[c.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[c.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");a[c.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");a[c.BUILD]="(?:\\+("+a[c.BUILDIDENTIFIER]+"(?:\\."+a[c.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");a[c.FULLPLAIN]="v?"+a[c.MAINVERSION]+a[c.PRERELEASE]+"?"+a[c.BUILD]+"?";a[c.FULL]="^"+a[c.FULLPLAIN]+"$";tok("LOOSEPLAIN");a[c.LOOSEPLAIN]="[v=\\s]*"+a[c.MAINVERSIONLOOSE]+a[c.PRERELEASELOOSE]+"?"+a[c.BUILD]+"?";tok("LOOSE");a[c.LOOSE]="^"+a[c.LOOSEPLAIN]+"$";tok("GTLT");a[c.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");a[c.XRANGEIDENTIFIERLOOSE]=a[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");a[c.XRANGEIDENTIFIER]=a[c.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");a[c.XRANGEPLAIN]="[v=\\s]*("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:"+a[c.PRERELEASE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");a[c.XRANGEPLAINLOOSE]="[v=\\s]*("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+a[c.PRERELEASELOOSE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGE");a[c.XRANGE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAIN]+"$";tok("XRANGELOOSE");a[c.XRANGELOOSE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAINLOOSE]+"$";tok("COERCE");a[c.COERCE]="(^|[^\\d])"+"(\\d{1,"+o+"})"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");i[c.COERCERTL]=new RegExp(a[c.COERCE],"g");tok("LONETILDE");a[c.LONETILDE]="(?:~>?)";tok("TILDETRIM");a[c.TILDETRIM]="(\\s*)"+a[c.LONETILDE]+"\\s+";i[c.TILDETRIM]=new RegExp(a[c.TILDETRIM],"g");var l="$1~";tok("TILDE");a[c.TILDE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAIN]+"$";tok("TILDELOOSE");a[c.TILDELOOSE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAINLOOSE]+"$";tok("LONECARET");a[c.LONECARET]="(?:\\^)";tok("CARETTRIM");a[c.CARETTRIM]="(\\s*)"+a[c.LONECARET]+"\\s+";i[c.CARETTRIM]=new RegExp(a[c.CARETTRIM],"g");var p="$1^";tok("CARET");a[c.CARET]="^"+a[c.LONECARET]+a[c.XRANGEPLAIN]+"$";tok("CARETLOOSE");a[c.CARETLOOSE]="^"+a[c.LONECARET]+a[c.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");a[c.COMPARATORLOOSE]="^"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");a[c.COMPARATOR]="^"+a[c.GTLT]+"\\s*("+a[c.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");a[c.COMPARATORTRIM]="(\\s*)"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+"|"+a[c.XRANGEPLAIN]+")";i[c.COMPARATORTRIM]=new RegExp(a[c.COMPARATORTRIM],"g");var d="$1$2$3";tok("HYPHENRANGE");a[c.HYPHENRANGE]="^\\s*("+a[c.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");a[c.HYPHENRANGELOOSE]="^\\s*("+a[c.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");a[c.STAR]="(<|>)?=?\\s*\\*";for(var h=0;hs){return null}var r=t.loose?i[c.LOOSE]:i[c.FULL];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>s){throw new TypeError("version is longer than "+s+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var o=e.trim().match(t.loose?i[c.LOOSE]:i[c.FULL]);if(!o){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+o[1];this.minor=+o[2];this.patch=+o[3];if(this.major>n||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>n||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>n||this.patch<0){throw new TypeError("Invalid patch version")}if(!o[4]){this.prerelease=[]}else{this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){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};t.inc=inc;function inc(e,t,r,s){if(typeof r==="string"){s=r;r=undefined}try{return new SemVer(e,r).inc(t,s).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var s=parse(t);var n="";if(r.prerelease.length||s.prerelease.length){n="pre";var o="prerelease"}for(var i in r){if(i==="major"||i==="minor"||i==="patch"){if(r[i]!==s[i]){return n+i}}}return o}}t.compareIdentifiers=compareIdentifiers;var m=/^[0-9]+$/;function compareIdentifiers(e,t){var r=m.test(e);var s=m.test(t);if(r&&s){e=+e;t=+t}return e===t?0:r&&!s?-1:s&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,s){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 eq(e,r,s);case"!=":return neq(e,r,s);case">":return gt(e,r,s);case">=":return gte(e,r,s);case"<":return lt(e,r,s);case"<=":return lte(e,r,s);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===g){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var g={};Comparator.prototype.parse=function(e){var t=this.options.loose?i[c.COMPARATORLOOSE]:i[c.COMPARATOR];var 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=g}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===g||e===g){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){if(this.value===""){return true}r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){if(e.value===""){return true}r=new Range(this.value,t);return satisfies(e.semver,r,t)}var s=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var n=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var o=this.semver.version===e.semver.version;var i=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return s||n||o&&i||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}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 Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var s=t?i[c.HYPHENRANGELOOSE]:i[c.HYPHENRANGE];e=e.replace(s,hyphenReplace);r("hyphen replace",e);e=e.replace(i[c.COMPARATORTRIM],d);r("comparator trim",e,i[c.COMPARATORTRIM]);e=e.replace(i[c.TILDETRIM],l);e=e.replace(i[c.CARETTRIM],p);e=e.split(/\s+/).join(" ");var n=t?i[c.COMPARATORLOOSE]:i[c.COMPARATOR];var o=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){o=o.filter((function(e){return!!e.match(n)}))}o=o.map((function(e){return new Comparator(e,this.options)}),this);return o};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(r){return isSatisfiable(r,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))};function isSatisfiable(e,t){var r=true;var s=e.slice();var n=s.pop();while(r&&s.length){r=s.every((function(e){return n.intersects(e,t)}));n=s.pop()}return r}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var s=t.loose?i[c.TILDELOOSE]:i[c.TILDE];return e.replace(s,(function(t,s,n,o,i){r("tilde",e,t,s,n,o,i);var a;if(isX(s)){a=""}else if(isX(n)){a=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(isX(o)){a=">="+s+"."+n+".0 <"+s+"."+(+n+1)+".0"}else if(i){r("replaceTilde pr",i);a=">="+s+"."+n+"."+o+"-"+i+" <"+s+"."+(+n+1)+".0"}else{a=">="+s+"."+n+"."+o+" <"+s+"."+(+n+1)+".0"}r("tilde return",a);return a}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){r("caret",e,t);var s=t.loose?i[c.CARETLOOSE]:i[c.CARET];return e.replace(s,(function(t,s,n,o,i){r("caret",e,t,s,n,o,i);var a;if(isX(s)){a=""}else if(isX(n)){a=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(isX(o)){if(s==="0"){a=">="+s+"."+n+".0 <"+s+"."+(+n+1)+".0"}else{a=">="+s+"."+n+".0 <"+(+s+1)+".0.0"}}else if(i){r("replaceCaret pr",i);if(s==="0"){if(n==="0"){a=">="+s+"."+n+"."+o+"-"+i+" <"+s+"."+n+"."+(+o+1)}else{a=">="+s+"."+n+"."+o+"-"+i+" <"+s+"."+(+n+1)+".0"}}else{a=">="+s+"."+n+"."+o+"-"+i+" <"+(+s+1)+".0.0"}}else{r("no pr");if(s==="0"){if(n==="0"){a=">="+s+"."+n+"."+o+" <"+s+"."+n+"."+(+o+1)}else{a=">="+s+"."+n+"."+o+" <"+s+"."+(+n+1)+".0"}}else{a=">="+s+"."+n+"."+o+" <"+(+s+1)+".0.0"}}r("caret return",a);return a}))}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var s=t.loose?i[c.XRANGELOOSE]:i[c.XRANGE];return e.replace(s,(function(s,n,o,i,a,c){r("xRange",e,s,n,o,i,a,c);var u=isX(o);var l=u||isX(i);var p=l||isX(a);var d=p;if(n==="="&&d){n=""}c=t.includePrerelease?"-0":"";if(u){if(n===">"||n==="<"){s="<0.0.0-0"}else{s="*"}}else if(n&&d){if(l){i=0}a=0;if(n===">"){n=">=";if(l){o=+o+1;i=0;a=0}else{i=+i+1;a=0}}else if(n==="<="){n="<";if(l){o=+o+1}else{i=+i+1}}s=n+o+"."+i+"."+a+c}else if(l){s=">="+o+".0.0"+c+" <"+(+o+1)+".0.0"+c}else if(p){s=">="+o+"."+i+".0"+c+" <"+o+"."+(+i+1)+".0"+c}r("xRange return",s);return s}))}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(i[c.STAR],"")}function hyphenReplace(e,t,r,s,n,o,i,a,c,u,l,p,d){if(isX(r)){t=""}else if(isX(s)){t=">="+r+".0.0"}else if(isX(n)){t=">="+r+"."+s+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(p){a="<="+c+"."+u+"."+l+"-"+p}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var o=e[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var s=null;var n=null;try{var o=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(o.test(e)){if(!s||n.compare(e)===-1){s=e;n=new SemVer(s,r)}}}));return s}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var s=null;var n=null;try{var o=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(o.test(e)){if(!s||n.compare(e)===1){s=e;n=new SemVer(s,r)}}}));return s}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var s=0;s":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,s){e=new SemVer(e,s);t=new Range(t,s);var n,o,i,a,c;switch(r){case">":n=gt;o=lte;i=lt;a=">";c=">=";break;case"<":n=lt;o=gte;i=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,s)){return false}for(var u=0;u=0.0.0")}p=p||e;d=d||e;if(n(e.semver,p.semver,s)){p=e}else if(i(e.semver,d.semver,s)){d=e}}));if(p.operator===a||p.operator===c){return false}if((!d.operator||d.operator===a)&&o(e,d.semver)){return false}else if(d.operator===c&&i(e,d.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var r=null;if(!t.rtl){r=e.match(i[c.COERCE])}else{var s;while((s=i[c.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||s.index+s[0].length!==r.index+r[0].length){r=s}i[c.COERCERTL].lastIndex=s.index+s[1].length+s[2].length}i[c.COERCERTL].lastIndex=-1}if(r===null){return null}return parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},7767:(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(" ");c("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}c("comp",this)}parse(e){const t=this.options.loose?o[i.COMPARATORLOOSE]:o[i.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 u(r[2],this.options.loose)}}toString(){return this.value}test(e){c("Comparator.test",e,this.options.loose);if(this.semver===s||e===s){return true}if(typeof e==="string"){try{e=new u(e,this.options)}catch(e){return false}}return a(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 l(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new l(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(a(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(a(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const n=r(6969);const{safeRe:o,t:i}=r(4174);const a=r(1751);const c=r(7203);const u=r(6812);const l=r(5109)},5109:(e,t,r)=>{class Range{constructor(e,t){t=o(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 i){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&&m)|(this.options.loose&&g);const r=t+":"+e;const s=n.get(r);if(s){return s}const o=this.options.loose;const c=o?u[l.HYPHENRANGELOOSE]:u[l.HYPHENRANGE];e=e.replace(c,hyphenReplace(this.options.includePrerelease));a("hyphen replace",e);e=e.replace(u[l.COMPARATORTRIM],p);a("comparator trim",e);e=e.replace(u[l.TILDETRIM],d);a("tilde trim",e);e=e.replace(u[l.CARETTRIM],h);a("caret trim",e);let E=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(o){E=E.filter((e=>{a("loose invalid filter",e,this.options);return!!e.match(u[l.COMPARATORLOOSE])}))}a("range list",E);const v=new Map;const y=E.map((e=>new i(e,this.options)));for(const e of y){if(isNullSet(e)){return[e]}v.set(e.value,e)}if(v.size>1&&v.has("")){v.delete("")}const _=[...v.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 c(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)=>{a("comp",e,t);e=replaceCarets(e,t);a("caret",e);e=replaceTildes(e,t);a("tildes",e);e=replaceXRanges(e,t);a("xrange",e);e=replaceStars(e,t);a("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?u[l.TILDELOOSE]:u[l.TILDE];return e.replace(r,((t,r,s,n,o)=>{a("tilde",e,t,r,s,n,o);let i;if(isX(r)){i=""}else if(isX(s)){i=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(isX(n)){i=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`}else if(o){a("replaceTilde pr",o);i=`>=${r}.${s}.${n}-${o} <${r}.${+s+1}.0-0`}else{i=`>=${r}.${s}.${n} <${r}.${+s+1}.0-0`}a("tilde return",i);return i}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{a("caret",e,t);const r=t.loose?u[l.CARETLOOSE]:u[l.CARET];const s=t.includePrerelease?"-0":"";return e.replace(r,((t,r,n,o,i)=>{a("caret",e,t,r,n,o,i);let c;if(isX(r)){c=""}else if(isX(n)){c=`>=${r}.0.0${s} <${+r+1}.0.0-0`}else if(isX(o)){if(r==="0"){c=`>=${r}.${n}.0${s} <${r}.${+n+1}.0-0`}else{c=`>=${r}.${n}.0${s} <${+r+1}.0.0-0`}}else if(i){a("replaceCaret pr",i);if(r==="0"){if(n==="0"){c=`>=${r}.${n}.${o}-${i} <${r}.${n}.${+o+1}-0`}else{c=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`}}else{c=`>=${r}.${n}.${o}-${i} <${+r+1}.0.0-0`}}else{a("no pr");if(r==="0"){if(n==="0"){c=`>=${r}.${n}.${o}${s} <${r}.${n}.${+o+1}-0`}else{c=`>=${r}.${n}.${o}${s} <${r}.${+n+1}.0-0`}}else{c=`>=${r}.${n}.${o} <${+r+1}.0.0-0`}}a("caret return",c);return c}))};const replaceXRanges=(e,t)=>{a("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const r=t.loose?u[l.XRANGELOOSE]:u[l.XRANGE];return e.replace(r,((r,s,n,o,i,c)=>{a("xRange",e,r,s,n,o,i,c);const u=isX(n);const l=u||isX(o);const p=l||isX(i);const d=p;if(s==="="&&d){s=""}c=t.includePrerelease?"-0":"";if(u){if(s===">"||s==="<"){r="<0.0.0-0"}else{r="*"}}else if(s&&d){if(l){o=0}i=0;if(s===">"){s=">=";if(l){n=+n+1;o=0;i=0}else{o=+o+1;i=0}}else if(s==="<="){s="<";if(l){n=+n+1}else{o=+o+1}}if(s==="<"){c="-0"}r=`${s+n}.${o}.${i}${c}`}else if(l){r=`>=${n}.0.0${c} <${+n+1}.0.0-0`}else if(p){r=`>=${n}.${o}.0${c} <${n}.${+o+1}.0-0`}a("xRange return",r);return r}))};const replaceStars=(e,t)=>{a("replaceStars",e,t);return e.trim().replace(u[l.STAR],"")};const replaceGTE0=(e,t)=>{a("replaceGTE0",e,t);return e.trim().replace(u[t.includePrerelease?l.GTE0PRE:l.GTE0],"")};const hyphenReplace=e=>(t,r,s,n,o,i,a,c,u,l,p,d)=>{if(isX(s)){r=""}else if(isX(n)){r=`>=${s}.0.0${e?"-0":""}`}else if(isX(o)){r=`>=${s}.${n}.0${e?"-0":""}`}else if(i){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(isX(u)){c=""}else if(isX(l)){c=`<${+u+1}.0.0-0`}else if(isX(p)){c=`<${u}.${+l+1}.0-0`}else if(d){c=`<=${u}.${l}.${p}-${d}`}else if(e){c=`<${u}.${l}.${+p+1}-0`}else{c=`<=${c}`}return`${r} ${c}`.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}},6812:(e,t,r)=>{const s=r(7203);const{MAX_LENGTH:n,MAX_SAFE_INTEGER:o}=r(5426);const{safeRe:i,t:a}=r(4174);const c=r(6969);const{compareIdentifiers:u}=r(3343);class SemVer{constructor(e,t){t=c(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?i[a.LOOSE]:i[a.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>o||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>o||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>o||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(u(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},2683:(e,t,r)=>{const s=r(4559);const clean=(e,t)=>{const r=s(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=clean},1751:(e,t,r)=>{const s=r(9422);const n=r(9693);const o=r(4654);const i=r(7695);const a=r(5568);const c=r(6770);const cmp=(e,t,r,u)=>{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,u);case"!=":return n(e,r,u);case">":return o(e,r,u);case">=":return i(e,r,u);case"<":return a(e,r,u);case"<=":return c(e,r,u);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},6038:(e,t,r)=>{const s=r(6812);const n=r(4559);const{safeRe:o,t:i}=r(4174);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?o[i.COERCEFULL]:o[i.COERCE])}else{const s=t.includePrerelease?o[i.COERCERTLFULL]:o[i.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 a=r[2];const c=r[3]||"0";const u=r[4]||"0";const l=t.includePrerelease&&r[5]?`-${r[5]}`:"";const p=t.includePrerelease&&r[6]?`+${r[6]}`:"";return n(`${a}.${c}.${u}${l}${p}`,t)};e.exports=coerce},5747:(e,t,r)=>{const s=r(6812);const compareBuild=(e,t,r)=>{const n=new s(e,r);const o=new s(t,r);return n.compare(o)||n.compareBuild(o)};e.exports=compareBuild},8138:(e,t,r)=>{const s=r(684);const compareLoose=(e,t)=>s(e,t,true);e.exports=compareLoose},684:(e,t,r)=>{const s=r(6812);const compare=(e,t,r)=>new s(e,r).compare(new s(t,r));e.exports=compare},3095:(e,t,r)=>{const s=r(4559);const diff=(e,t)=>{const r=s(e,null,true);const n=s(t,null,true);const o=r.compare(n);if(o===0){return null}const i=o>0;const a=i?r:n;const c=i?n:r;const u=!!a.prerelease.length;const l=!!c.prerelease.length;if(l&&!u){if(!c.patch&&!c.minor){return"major"}if(a.patch){return"patch"}if(a.minor){return"minor"}return"major"}const p=u?"pre":"";if(r.major!==n.major){return p+"major"}if(r.minor!==n.minor){return p+"minor"}if(r.patch!==n.patch){return p+"patch"}return"prerelease"};e.exports=diff},9422:(e,t,r)=>{const s=r(684);const eq=(e,t,r)=>s(e,t,r)===0;e.exports=eq},4654:(e,t,r)=>{const s=r(684);const gt=(e,t,r)=>s(e,t,r)>0;e.exports=gt},7695:(e,t,r)=>{const s=r(684);const gte=(e,t,r)=>s(e,t,r)>=0;e.exports=gte},3572:(e,t,r)=>{const s=r(6812);const inc=(e,t,r,n,o)=>{if(typeof r==="string"){o=n;n=r;r=undefined}try{return new s(e instanceof s?e.version:e,r).inc(t,n,o).version}catch(e){return null}};e.exports=inc},5568:(e,t,r)=>{const s=r(684);const lt=(e,t,r)=>s(e,t,r)<0;e.exports=lt},6770:(e,t,r)=>{const s=r(684);const lte=(e,t,r)=>s(e,t,r)<=0;e.exports=lte},2641:(e,t,r)=>{const s=r(6812);const major=(e,t)=>new s(e,t).major;e.exports=major},3477:(e,t,r)=>{const s=r(6812);const minor=(e,t)=>new s(e,t).minor;e.exports=minor},9693:(e,t,r)=>{const s=r(684);const neq=(e,t,r)=>s(e,t,r)!==0;e.exports=neq},4559:(e,t,r)=>{const s=r(6812);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},9596:(e,t,r)=>{const s=r(6812);const patch=(e,t)=>new s(e,t).patch;e.exports=patch},5780:(e,t,r)=>{const s=r(4559);const prerelease=(e,t)=>{const r=s(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=prerelease},1587:(e,t,r)=>{const s=r(684);const rcompare=(e,t,r)=>s(t,e,r);e.exports=rcompare},8504:(e,t,r)=>{const s=r(5747);const rsort=(e,t)=>e.sort(((e,r)=>s(r,e,t)));e.exports=rsort},9228:(e,t,r)=>{const s=r(5109);const satisfies=(e,t,r)=>{try{t=new s(t,r)}catch(e){return false}return t.test(e)};e.exports=satisfies},2765:(e,t,r)=>{const s=r(5747);const sort=(e,t)=>e.sort(((e,r)=>s(e,r,t)));e.exports=sort},2348:(e,t,r)=>{const s=r(4559);const valid=(e,t)=>{const r=s(e,t);return r?r.version:null};e.exports=valid},7705:(e,t,r)=>{const s=r(4174);const n=r(5426);const o=r(6812);const i=r(3343);const a=r(4559);const c=r(2348);const u=r(2683);const l=r(3572);const p=r(3095);const d=r(2641);const h=r(3477);const m=r(9596);const g=r(5780);const E=r(684);const v=r(1587);const y=r(8138);const _=r(5747);const b=r(2765);const w=r(8504);const T=r(4654);const S=r(5568);const O=r(9422);const R=r(9693);const P=r(7695);const k=r(6770);const A=r(1751);const C=r(6038);const x=r(7767);const G=r(5109);const L=r(9228);const D=r(7115);const F=r(2998);const I=r(5203);const j=r(3757);const $=r(6954);const N=r(2550);const U=r(5491);const M=r(8475);const H=r(6313);const q=r(1512);const B=r(5551);e.exports={parse:a,valid:c,clean:u,inc:l,diff:p,major:d,minor:h,patch:m,prerelease:g,compare:E,rcompare:v,compareLoose:y,compareBuild:_,sort:b,rsort:w,gt:T,lt:S,eq:O,neq:R,gte:P,lte:k,cmp:A,coerce:C,Comparator:x,Range:G,satisfies:L,toComparators:D,maxSatisfying:F,minSatisfying:I,minVersion:j,validRange:$,outside:N,gtr:U,ltr:M,intersects:H,simplifyRange:q,subset:B,SemVer:o,re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},5426:e=>{const t="2.0.0";const r=256;const s=Number.MAX_SAFE_INTEGER||9007199254740991;const n=16;const o=r-6;const i=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:s,RELEASE_TYPES:i,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7203: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},3343: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}},1803:e=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const r=this.delete(e);if(!r&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},6969: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},4174:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=r(5426);const i=r(7203);t=e.exports={};const a=t.re=[];const c=t.safeRe=[];const u=t.src=[];const l=t.t={};let p=0;const d="[a-zA-Z0-9-]";const h=[["\\s",1],["\\d",o],[d,n]];const makeSafeRegex=e=>{for(const[t,r]of h){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=p++;i(e,n,t);l[e]=n;u[n]=t;a[n]=new RegExp(t,r?"g":undefined);c[n]=new RegExp(s,r?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`);createToken("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.`+`(${u[l.NUMERICIDENTIFIER]})\\.`+`(${u[l.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${u[l.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${d}+`);createToken("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`);createToken("FULL",`^${u[l.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`);createToken("LOOSE",`^${u[l.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})`+`(?:\\.(${u[l.XRANGEIDENTIFIER]})`+`(?:\\.(${u[l.XRANGEIDENTIFIER]})`+`(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})`+`(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${s}})`+`(?:\\.(\\d{1,${s}}))?`+`(?:\\.(\\d{1,${s}}))?`);createToken("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?`+`(?:${u[l.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",u[l.COERCE],true);createToken("COERCERTLFULL",u[l.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${u[l.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${u[l.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5491:(e,t,r)=>{const s=r(2550);const gtr=(e,t,r)=>s(e,t,">",r);e.exports=gtr},6313:(e,t,r)=>{const s=r(5109);const intersects=(e,t,r)=>{e=new s(e,r);t=new s(t,r);return e.intersects(t,r)};e.exports=intersects},8475:(e,t,r)=>{const s=r(2550);const ltr=(e,t,r)=>s(e,t,"<",r);e.exports=ltr},2998:(e,t,r)=>{const s=r(6812);const n=r(5109);const maxSatisfying=(e,t,r)=>{let o=null;let i=null;let a=null;try{a=new n(t,r)}catch(e){return null}e.forEach((e=>{if(a.test(e)){if(!o||i.compare(e)===-1){o=e;i=new s(o,r)}}}));return o};e.exports=maxSatisfying},5203:(e,t,r)=>{const s=r(6812);const n=r(5109);const minSatisfying=(e,t,r)=>{let o=null;let i=null;let a=null;try{a=new n(t,r)}catch(e){return null}e.forEach((e=>{if(a.test(e)){if(!o||i.compare(e)===1){o=e;i=new s(o,r)}}}));return o};e.exports=minSatisfying},3757:(e,t,r)=>{const s=r(6812);const n=r(5109);const o=r(4654);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(!i||o(t,i)){i=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(i&&(!r||o(r,i))){r=i}}if(r&&e.test(r)){return r}return null};e.exports=minVersion},2550:(e,t,r)=>{const s=r(6812);const n=r(7767);const{ANY:o}=n;const i=r(5109);const a=r(9228);const c=r(4654);const u=r(5568);const l=r(6770);const p=r(7695);const outside=(e,t,r,d)=>{e=new s(e,d);t=new i(t,d);let h,m,g,E,v;switch(r){case">":h=c;m=l;g=u;E=">";v=">=";break;case"<":h=u;m=p;g=c;E="<";v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,d)){return false}for(let r=0;r{if(e.semver===o){e=new n(">=0.0.0")}i=i||e;a=a||e;if(h(e.semver,i.semver,d)){i=e}else if(g(e.semver,a.semver,d)){a=e}}));if(i.operator===E||i.operator===v){return false}if((!a.operator||a.operator===E)&&m(e,a.semver)){return false}else if(a.operator===v&&g(e,a.semver)){return false}}return true};e.exports=outside},1512:(e,t,r)=>{const s=r(9228);const n=r(684);e.exports=(e,t,r)=>{const o=[];let i=null;let a=null;const c=e.sort(((e,t)=>n(e,t,r)));for(const e of c){const n=s(e,t,r);if(n){a=e;if(!i){i=e}}else{if(a){o.push([i,a])}a=null;i=null}}if(i){o.push([i,null])}const u=[];for(const[e,t]of o){if(e===t){u.push(e)}else if(!t&&e===c[0]){u.push("*")}else if(!t){u.push(`>=${e}`)}else if(e===c[0]){u.push(`<=${t}`)}else{u.push(`${e} - ${t}`)}}const l=u.join(" || ");const p=typeof t.raw==="string"?t.raw:String(t);return l.length{const s=r(5109);const n=r(7767);const{ANY:o}=n;const i=r(9228);const a=r(684);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 c=[new n(">=0.0.0-0")];const u=[new n(">=0.0.0")];const simpleSubset=(e,t,r)=>{if(e===t){return true}if(e.length===1&&e[0].semver===o){if(t.length===1&&t[0].semver===o){return true}else if(r.includePrerelease){e=c}else{e=u}}if(t.length===1&&t[0].semver===o){if(r.includePrerelease){return true}else{t=u}}const s=new Set;let n,l;for(const t of e){if(t.operator===">"||t.operator===">="){n=higherGT(n,t,r)}else if(t.operator==="<"||t.operator==="<="){l=lowerLT(l,t,r)}else{s.add(t.semver)}}if(s.size>1){return null}let p;if(n&&l){p=a(n.semver,l.semver,r);if(p>0){return null}else if(p===0&&(n.operator!==">="||l.operator!=="<=")){return null}}for(const e of s){if(n&&!i(e,String(n),r)){return null}if(l&&!i(e,String(l),r)){return null}for(const s of t){if(!i(e,String(s),r)){return false}}return true}let d,h;let m,g;let E=l&&!r.includePrerelease&&l.semver.prerelease.length?l.semver:false;let v=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:false;if(E&&E.prerelease.length===1&&l.operator==="<"&&E.prerelease[0]===0){E=false}for(const e of t){g=g||e.operator===">"||e.operator===">=";m=m||e.operator==="<"||e.operator==="<=";if(n){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===">="){d=higherGT(n,e,r);if(d===e&&d!==n){return false}}else if(n.operator===">="&&!i(n.semver,String(e),r)){return false}}if(l){if(E){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch){E=false}}if(e.operator==="<"||e.operator==="<="){h=lowerLT(l,e,r);if(h===e&&h!==l){return false}}else if(l.operator==="<="&&!i(l.semver,String(e),r)){return false}}if(!e.operator&&(l||n)&&p!==0){return false}}if(n&&m&&!l&&p!==0){return false}if(l&&g&&!n&&p!==0){return false}if(v||E){return false}return true};const higherGT=(e,t,r)=>{if(!e){return t}const s=a(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=a(e.semver,t.semver,r);return s<0?e:s>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},7115:(e,t,r)=>{const s=r(5109);const toComparators=(e,t)=>new s(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},6954:(e,t,r)=>{const s=r(5109);const validRange=(e,t)=>{try{return new s(e,t).range||"*"}catch(e){return null}};e.exports=validRange},2889:e=>{e.exports=["cat","cd","chmod","cp","dirs","echo","exec","find","grep","head","ln","ls","mkdir","mv","pwd","rm","sed","set","sort","tail","tempdir","test","to","toEnd","touch","uniq","which"]},2568:(e,t,r)=>{function __ncc_wildcard$0(e){if(e==="cat.js"||e==="cat")return r(1053);else if(e==="cd.js"||e==="cd")return r(6086);else if(e==="chmod.js"||e==="chmod")return r(2374);else if(e==="common.js"||e==="common")return r(700);else if(e==="cp.js"||e==="cp")return r(8566);else if(e==="dirs.js"||e==="dirs")return r(7346);else if(e==="echo.js"||e==="echo")return r(7724);else if(e==="error.js"||e==="error")return r(5321);else if(e==="exec-child.js"||e==="exec-child")return r(7110);else if(e==="exec.js"||e==="exec")return r(5702);else if(e==="find.js"||e==="find")return r(1403);else if(e==="grep.js"||e==="grep")return r(5186);else if(e==="head.js"||e==="head")return r(4240);else if(e==="ln.js"||e==="ln")return r(7543);else if(e==="ls.js"||e==="ls")return r(3090);else if(e==="mkdir.js"||e==="mkdir")return r(807);else if(e==="mv.js"||e==="mv")return r(8696);else if(e==="popd.js"||e==="popd")return r(9253);else if(e==="pushd.js"||e==="pushd")return r(7935);else if(e==="pwd.js"||e==="pwd")return r(9015);else if(e==="rm.js"||e==="rm")return r(8287);else if(e==="sed.js"||e==="sed")return r(5759);else if(e==="set.js"||e==="set")return r(3277);else if(e==="sort.js"||e==="sort")return r(8925);else if(e==="tail.js"||e==="tail")return r(3781);else if(e==="tempdir.js"||e==="tempdir")return r(2074);else if(e==="test.js"||e==="test")return r(5572);else if(e==="to.js"||e==="to")return r(7328);else if(e==="toEnd.js"||e==="toEnd")return r(9066);else if(e==="touch.js"||e==="touch")return r(8080);else if(e==="uniq.js"||e==="uniq")return r(7236);else if(e==="which.js"||e==="which")return r(7361)}var s=r(700);r(2889).forEach((function(e){__ncc_wildcard$0(e)}));t.exit=process.exit;t.error=r(5321);t.ShellString=s.ShellString;t.env=process.env;t.config=s.config},1053:(e,t,r)=>{var s=r(700);var n=r(7147);s.register("cat",_cat,{canReceivePipe:true,cmdOptions:{n:"number"}});function _cat(e,t){var r=s.readFromPipe();if(!t&&!r)s.error("no paths given");t=[].slice.call(arguments,1);t.forEach((function(e){if(!n.existsSync(e)){s.error("no such file or directory: "+e)}else if(s.statFollowLinks(e).isDirectory()){s.error(e+": Is a directory")}r+=n.readFileSync(e,"utf8")}));if(e.number){r=addNumbers(r)}return r}e.exports=_cat;function addNumbers(e){var t=e.split("\n");var r=t.pop();t=t.map((function(e,t){return numberedLine(t+1,e)}));if(r.length){r=numberedLine(t.length+1,r)}t.push(r);return t.join("\n")}function numberedLine(e,t){var r=(" "+e).slice(-6)+"\t";return r+t}},6086:(e,t,r)=>{var s=r(2037);var n=r(700);n.register("cd",_cd,{});function _cd(e,t){if(!t)t=s.homedir();if(t==="-"){if(!process.env.OLDPWD){n.error("could not find previous directory")}else{t=process.env.OLDPWD}}try{var r=process.cwd();process.chdir(t);process.env.OLDPWD=r}catch(e){var o;try{n.statFollowLinks(t);o="not a directory: "+t}catch(e){o="no such file or directory: "+t}if(o)n.error(o)}return""}e.exports=_cd},2374:(e,t,r)=>{var s=r(700);var n=r(7147);var o=r(1017);var i=function(e){return{OTHER_EXEC:e.EXEC,OTHER_WRITE:e.WRITE,OTHER_READ:e.READ,GROUP_EXEC:e.EXEC<<3,GROUP_WRITE:e.WRITE<<3,GROUP_READ:e.READ<<3,OWNER_EXEC:e.EXEC<<6,OWNER_WRITE:e.WRITE<<6,OWNER_READ:e.READ<<6,STICKY:parseInt("01000",8),SETGID:parseInt("02000",8),SETUID:parseInt("04000",8),TYPE_MASK:parseInt("0770000",8)}}({EXEC:1,WRITE:2,READ:4});s.register("chmod",_chmod,{});function _chmod(e,t,r){if(!r){if(e.length>0&&e.charAt(0)==="-"){[].unshift.call(arguments,"")}else{s.error("You must specify a file.")}}e=s.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"});r=[].slice.call(arguments,2);var a;if(e.recursive){a=[];r.forEach((function addFile(e){var t=s.statNoFollowLinks(e);if(!t.isSymbolicLink()){a.push(e);if(t.isDirectory()){n.readdirSync(e).forEach((function(t){addFile(e+"/"+t)}))}}}))}else{a=r}a.forEach((function innerChmod(r){r=o.resolve(r);if(!n.existsSync(r)){s.error("File not found: "+r)}if(e.recursive&&s.statNoFollowLinks(r).isSymbolicLink()){return}var a=s.statFollowLinks(r);var c=a.isDirectory();var u=a.mode;var l=u&i.TYPE_MASK;var p=u;if(isNaN(parseInt(t,8))){t.split(",").forEach((function(t){var o=/([ugoa]*)([=\+-])([rwxXst]*)/i;var a=o.exec(t);if(a){var d=a[1];var h=a[2];var m=a[3];var g=d.indexOf("u")!==-1||d==="a"||d==="";var E=d.indexOf("g")!==-1||d==="a"||d==="";var v=d.indexOf("o")!==-1||d==="a"||d==="";var y=m.indexOf("r")!==-1;var _=m.indexOf("w")!==-1;var b=m.indexOf("x")!==-1;var w=m.indexOf("X")!==-1;var T=m.indexOf("t")!==-1;var S=m.indexOf("s")!==-1;if(w&&c){b=true}var O=0;if(g){O|=(y?i.OWNER_READ:0)+(_?i.OWNER_WRITE:0)+(b?i.OWNER_EXEC:0)+(S?i.SETUID:0)}if(E){O|=(y?i.GROUP_READ:0)+(_?i.GROUP_WRITE:0)+(b?i.GROUP_EXEC:0)+(S?i.SETGID:0)}if(v){O|=(y?i.OTHER_READ:0)+(_?i.OTHER_WRITE:0)+(b?i.OTHER_EXEC:0)}if(T){O|=i.STICKY}switch(h){case"+":p|=O;break;case"-":p&=~O;break;case"=":p=l+O;if(s.statFollowLinks(r).isDirectory()){p|=i.SETUID+i.SETGID&u}break;default:s.error("Could not recognize operator: `"+h+"`")}if(e.verbose){console.log(r+" -> "+p.toString(8))}if(u!==p){if(!e.verbose&&e.changes){console.log(r+" -> "+p.toString(8))}n.chmodSync(r,p);u=p}}else{s.error("Invalid symbolic mode change: "+t)}}))}else{p=l+parseInt(t,8);if(s.statFollowLinks(r).isDirectory()){p|=i.SETUID+i.SETGID&u}n.chmodSync(r,p)}}));return""}e.exports=_chmod},700:(e,t,r)=>{"use strict";var s=r(2037);var n=r(7147);var o=r(1661);var i=r(2568);var a=Object.create(i);t.extend=Object.assign;var c=Boolean(process.versions.electron);var u={fatal:false,globOptions:{},maxdepth:255,noglob:false,silent:false,verbose:false,execPath:null,bufLength:64*1024};var l={reset:function(){Object.assign(this,u);if(!c){this.execPath=process.execPath}},resetForTesting:function(){this.reset();this.silent=true}};l.reset();t.config=l;var p={error:null,errorCode:0,currentCmd:"shell.js"};t.state=p;delete process.env.OLDPWD;function isObject(e){return typeof e==="object"&&e!==null}t.isObject=isObject;function log(){if(!l.silent){console.error.apply(console,arguments)}}t.log=log;function convertErrorOutput(e){if(typeof e!=="string"){throw new TypeError("input must be a string")}return e.replace(/\\/g,"/")}t.convertErrorOutput=convertErrorOutput;function error(e,t,r){if(typeof e!=="string")throw new Error("msg must be a string");var s={continue:false,code:1,prefix:p.currentCmd+": ",silent:false};if(typeof t==="number"&&isObject(r)){r.code=t}else if(isObject(t)){r=t}else if(typeof t==="number"){r={code:t}}else if(typeof t!=="number"){r={}}r=Object.assign({},s,r);if(!p.errorCode)p.errorCode=r.code;var n=convertErrorOutput(r.prefix+e);p.error=p.error?p.error+"\n":"";p.error+=n;if(l.fatal)throw new Error(n);if(e.length>0&&!r.silent)log(n);if(!r.continue){throw{msg:"earlyExit",retValue:new ShellString("",p.error,p.errorCode)}}}t.error=error;function ShellString(e,t,r){var s;if(e instanceof Array){s=e;s.stdout=e.join("\n");if(e.length>0)s.stdout+="\n"}else{s=new String(e);s.stdout=e}s.stderr=t;s.code=r;m.forEach((function(e){s[e]=a[e].bind(s)}));return s}t.ShellString=ShellString;function parseOptions(e,t,r){if(typeof e!=="string"&&!isObject(e)){throw new Error("options must be strings or key-value pairs")}else if(!isObject(t)){throw new Error("parseOptions() internal error: map must be an object")}else if(r&&!isObject(r)){throw new Error("parseOptions() internal error: errorOptions must be object")}if(e==="--"){return{}}var s={};Object.keys(t).forEach((function(e){var r=t[e];if(r[0]!=="!"){s[r]=false}}));if(e==="")return s;if(typeof e==="string"){if(e[0]!=="-"){throw new Error("Options string must start with a '-'")}var n=e.slice(1).split("");n.forEach((function(e){if(e in t){var n=t[e];if(n[0]==="!"){s[n.slice(1)]=false}else{s[n]=true}}else{error("option not recognized: "+e,r||{})}}))}else{Object.keys(e).forEach((function(n){var o=n[1];if(o in t){var i=t[o];s[i]=e[n]}else{error("option not recognized: "+o,r||{})}}))}return s}t.parseOptions=parseOptions;function expand(e){if(!Array.isArray(e)){throw new TypeError("must be an array")}var t=[];e.forEach((function(e){if(typeof e!=="string"){t.push(e)}else{var r;try{r=o.sync(e,l.globOptions);r=r.length>0?r:[e]}catch(t){r=[e]}t=t.concat(r)}}));return t}t.expand=expand;var d=typeof Buffer.alloc==="function"?function(e){return Buffer.alloc(e||l.bufLength)}:function(e){return new Buffer(e||l.bufLength)};t.buffer=d;function unlinkSync(e){try{n.unlinkSync(e)}catch(t){if(t.code==="EPERM"){n.chmodSync(e,"0666");n.unlinkSync(e)}else{throw t}}}t.unlinkSync=unlinkSync;function statFollowLinks(){return n.statSync.apply(n,arguments)}t.statFollowLinks=statFollowLinks;function statNoFollowLinks(){return n.lstatSync.apply(n,arguments)}t.statNoFollowLinks=statNoFollowLinks;function randomFileName(){function randomHash(e){if(e===1){return parseInt(16*Math.random(),10).toString(16)}var t="";for(var r=0;r{var s=r(7147);var n=r(1017);var o=r(700);o.register("cp",_cp,{cmdOptions:{f:"!no_force",n:"no_force",u:"update",R:"recursive",r:"recursive",L:"followsymlink",P:"noFollowsymlink"},wrapOutput:false});function copyFileSync(e,t,r){if(!s.existsSync(e)){o.error("copyFileSync: no such file or directory: "+e)}var n=process.platform==="win32";try{if(r.update&&o.statFollowLinks(e).mtime=o.config.maxdepth)return;r++;var i=process.platform==="win32";try{s.mkdirSync(t)}catch(e){if(e.code!=="EEXIST")throw e}var a=s.readdirSync(e);for(var c=0;c and/or ")}else{t=[].slice.call(arguments,1,arguments.length-1);r=arguments[arguments.length-1]}var i=s.existsSync(r);var a=i&&o.statFollowLinks(r);if((!i||!a.isDirectory())&&t.length>1){o.error("dest is not a directory (too many sources)")}if(i&&a.isFile()&&e.no_force){return new o.ShellString("","",0)}t.forEach((function(i,c){if(!s.existsSync(i)){if(i==="")i="''";o.error("no such file or directory: "+i,{continue:true});return}var u=o.statFollowLinks(i);if(!e.noFollowsymlink&&u.isDirectory()){if(!e.recursive){o.error("omitting directory '"+i+"'",{continue:true})}else{var l=a&&a.isDirectory()?n.join(r,n.basename(i)):r;try{o.statFollowLinks(n.dirname(r));cpdirSyncRecursive(i,l,0,{no_force:e.no_force,followsymlink:e.followsymlink})}catch(e){o.error("cannot create directory '"+r+"': No such file or directory")}}}else{var p=r;if(a&&a.isDirectory()){p=n.normalize(r+"/"+n.basename(i))}var d=s.existsSync(p);if(d&&checkRecentCreated(t,c)){if(!e.no_force){o.error("will not overwrite just-created '"+p+"' with '"+i+"'",{continue:true})}return}if(d&&e.no_force){return}if(n.relative(i,p)===""){o.error("'"+p+"' and '"+i+"' are the same file",{continue:true});return}copyFileSync(i,p,e)}}));return new o.ShellString("",o.state.error,o.state.errorCode)}e.exports=_cp},7346:(e,t,r)=>{var s=r(700);var n=r(6086);var o=r(1017);s.register("dirs",_dirs,{wrapOutput:false});s.register("pushd",_pushd,{wrapOutput:false});s.register("popd",_popd,{wrapOutput:false});var i=[];function _isStackIndex(e){return/^[\-+]\d+$/.test(e)}function _parseStackIndex(e){if(_isStackIndex(e)){if(Math.abs(e)1){r=r.splice(1,1).concat(r)}else{return s.error("no other directory")}}else if(_isStackIndex(t)){var a=_parseStackIndex(t);r=r.slice(a).concat(r.slice(0,a))}else{if(e["no-cd"]){r.splice(1,0,t)}else{r.unshift(t)}}if(e["no-cd"]){r=r.slice(1)}else{t=o.resolve(r.shift());n("",t)}i=r;return _dirs(e.quiet?"-q":"")}t.pushd=_pushd;function _popd(e,t){if(_isStackIndex(e)){t=e;e=""}e=s.parseOptions(e,{n:"no-cd",q:"quiet"});if(!i.length){return s.error("directory stack empty")}t=_parseStackIndex(t||"+0");if(e["no-cd"]||t>0||i.length+t===0){t=t>0?t-1:t;i.splice(t,1)}else{var r=o.resolve(i.shift());n("",r)}return _dirs(e.quiet?"-q":"")}t.popd=_popd;function _dirs(e,t){if(_isStackIndex(e)){t=e;e=""}e=s.parseOptions(e,{c:"clear",q:"quiet"});if(e.clear){i=[];return i}var r=_actualDirStack();if(t){t=_parseStackIndex(t);if(t<0){t=r.length+t}if(!e.quiet){s.log(r[t])}return r[t]}if(!e.quiet){s.log(r.join(" "))}return r}t.dirs=_dirs},7724:(e,t,r)=>{var s=r(3837).format;var n=r(700);n.register("echo",_echo,{allowGlobbing:false});function _echo(e){var t=[].slice.call(arguments,e?0:1);var r={};try{r=n.parseOptions(t[0],{e:"escapes",n:"no_newline"},{silent:true});if(t[0]){t.shift()}}catch(e){n.state.error=null}var o=s.apply(null,t);if(!r.no_newline){o+="\n"}process.stdout.write(o);return o}e.exports=_echo},5321:(e,t,r)=>{var s=r(700);function error(){return s.state.error}e.exports=error},7110:(e,t,r)=>{e=r.nmd(e);if(require.main!==e){throw new Error("This file should not be required")}var s=r(2081);var n=r(7147);var o=process.argv[2];var i=n.readFileSync(o,"utf8");var a=JSON.parse(i);var c=a.command;var u=a.execOptions;var l=a.pipe;var p=a.stdoutFile;var d=a.stderrFile;var h=s.exec(c,u,(function(e){if(!e){process.exitCode=0}else if(e.code===undefined){process.exitCode=1}else{process.exitCode=e.code}}));var m=n.createWriteStream(p);var g=n.createWriteStream(d);h.stdout.pipe(m);h.stderr.pipe(g);h.stdout.pipe(process.stdout);h.stderr.pipe(process.stderr);if(l){h.stdin.end(l)}},5702:(e,t,r)=>{var s=r(700);var n=r(2074).tempDir;var o=r(9015);var i=r(1017);var a=r(7147);var c=r(2081);var u=20*1024*1024;var l=1;s.register("exec",_exec,{unix:false,canReceivePipe:true,wrapOutput:false});function execSync(e,t,p){if(!s.config.execPath){s.error("Unable to find a path to the node binary. Please manually set config.execPath")}var d=n();var h=i.resolve(d+"/"+s.randomFileName());var m=i.resolve(d+"/"+s.randomFileName());var g=i.resolve(d+"/"+s.randomFileName());t=s.extend({silent:s.config.silent,cwd:o().toString(),env:process.env,maxBuffer:u,encoding:"utf8"},t);if(a.existsSync(h))s.unlinkSync(h);if(a.existsSync(m))s.unlinkSync(m);if(a.existsSync(g))s.unlinkSync(g);t.cwd=i.resolve(t.cwd);var E={command:e,execOptions:t,pipe:p,stdoutFile:g,stderrFile:m};function writeFileLockedDown(e,t){a.writeFileSync(e,t,{encoding:"utf8",mode:parseInt("600",8)})}writeFileLockedDown(g,"");writeFileLockedDown(m,"");writeFileLockedDown(h,JSON.stringify(E));var v=[r.ab+"exec-child.js",h];if(t.silent){t.stdio="ignore"}else{t.stdio=[0,1,2]}var y=0;try{delete t.shell;c.execFileSync(s.config.execPath,v,t)}catch(e){y=e.status||l}var _="";var b="";if(t.encoding==="buffer"){_=a.readFileSync(g);b=a.readFileSync(m)}else{_=a.readFileSync(g,t.encoding);b=a.readFileSync(m,t.encoding)}try{s.unlinkSync(h)}catch(e){}try{s.unlinkSync(m)}catch(e){}try{s.unlinkSync(g)}catch(e){}if(y!==0){s.error(b,y,{continue:true,silent:true})}var w=s.ShellString(_,b,y);return w}function execAsync(e,t,r,n){t=s.extend({silent:s.config.silent,cwd:o().toString(),env:process.env,maxBuffer:u,encoding:"utf8"},t);var i=c.exec(e,t,(function(e,t,r){if(n){if(!e){n(0,t,r)}else if(e.code===undefined){n(1,t,r)}else{n(e.code,t,r)}}}));if(r)i.stdin.end(r);if(!t.silent){i.stdout.pipe(process.stdout);i.stderr.pipe(process.stderr)}return i}function _exec(e,t,r){t=t||{};if(!e)s.error("must specify command");var n=s.readFromPipe();if(typeof t==="function"){r=t;t={async:true}}if(typeof t==="object"&&typeof r==="function"){t.async=true}t=s.extend({silent:s.config.silent,async:false},t);if(t.async){return execAsync(e,t,n,r)}else{return execSync(e,t,n)}}e.exports=_exec},1403:(e,t,r)=>{var s=r(1017);var n=r(700);var o=r(3090);n.register("find",_find,{});function _find(e,t){if(!t){n.error("no path specified")}else if(typeof t==="string"){t=[].slice.call(arguments,1)}var r=[];function pushFile(e){if(process.platform==="win32"){e=e.replace(/\\/g,"/")}r.push(e)}t.forEach((function(e){var t;try{t=n.statFollowLinks(e)}catch(t){n.error("no such file or directory: "+e)}pushFile(e);if(t.isDirectory()){o({recursive:true,all:true},e).forEach((function(t){pushFile(s.join(e,t))}))}}));return r}e.exports=_find},5186:(e,t,r)=>{var s=r(700);var n=r(7147);s.register("grep",_grep,{globStart:2,canReceivePipe:true,cmdOptions:{v:"inverse",l:"nameOnly",i:"ignoreCase"}});function _grep(e,t,r){var o=s.readFromPipe();if(!r&&!o)s.error("no paths given",2);r=[].slice.call(arguments,2);if(o){r.unshift("-")}var i=[];if(e.ignoreCase){t=new RegExp(t,"i")}r.forEach((function(r){if(!n.existsSync(r)&&r!=="-"){s.error("no such file or directory: "+r,2,{continue:true});return}var a=r==="-"?o:n.readFileSync(r,"utf8");if(e.nameOnly){if(a.match(t)){i.push(r)}}else{var c=a.split("\n");c.forEach((function(r){var s=r.match(t);if(e.inverse&&!s||!e.inverse&&s){i.push(r)}}))}}));return i.join("\n")+"\n"}e.exports=_grep},4240:(e,t,r)=>{var s=r(700);var n=r(7147);s.register("head",_head,{canReceivePipe:true,cmdOptions:{n:"numLines"}});function readSomeLines(e,t){var r=s.buffer();var o=r.length;var i=o;var a=0;var c=n.openSync(e,"r");var u=0;var l="";while(i===o&&u{var s=r(7147);var n=r(1017);var o=r(700);o.register("ln",_ln,{cmdOptions:{s:"symlink",f:"force"}});function _ln(e,t,r){if(!t||!r){o.error("Missing and/or ")}t=String(t);var i=n.normalize(t).replace(RegExp(n.sep+"$"),"");var a=n.resolve(t)===i;r=n.resolve(process.cwd(),String(r));if(s.existsSync(r)){if(!e.force){o.error("Destination file exists",{continue:true})}s.unlinkSync(r)}if(e.symlink){var c=process.platform==="win32";var u=c?"file":null;var l=a?i:n.resolve(process.cwd(),n.dirname(r),t);if(!s.existsSync(l)){o.error("Source file does not exist",{continue:true})}else if(c&&o.statFollowLinks(l).isDirectory()){u="junction"}try{s.symlinkSync(u==="junction"?l:t,r,u)}catch(e){o.error(e.message)}}else{if(!s.existsSync(t)){o.error("Source file does not exist",{continue:true})}try{s.linkSync(t,r)}catch(e){o.error(e.message)}}return""}e.exports=_ln},3090:(e,t,r)=>{var s=r(1017);var n=r(7147);var o=r(700);var i=r(1661);var a=s.sep+"**";o.register("ls",_ls,{cmdOptions:{R:"recursive",A:"all",L:"link",a:"all_deprecated",d:"directory",l:"long"}});function _ls(e,t){if(e.all_deprecated){o.log("ls: Option -a is deprecated. Use -A instead");e.all=true}if(!t){t=["."]}else{t=[].slice.call(arguments,1)}var r=[];function pushFile(t,s,n){if(process.platform==="win32"){s=s.replace(/\\/g,"/")}if(e.long){n=n||(e.link?o.statFollowLinks(t):o.statNoFollowLinks(t));r.push(addLsAttributes(s,n))}else{r.push(s)}}t.forEach((function(t){var r;try{r=e.link?o.statFollowLinks(t):o.statNoFollowLinks(t);if(r.isSymbolicLink()){try{var c=o.statFollowLinks(t);if(c.isDirectory()){r=c}}catch(e){}}}catch(e){o.error("no such file or directory: "+t,2,{continue:true});return}if(r.isDirectory()&&!e.directory){if(e.recursive){i.sync(t+a,{dot:e.all,follow:e.link}).forEach((function(e){if(s.relative(t,e)){pushFile(e,s.relative(t,e))}}))}else if(e.all){n.readdirSync(t).forEach((function(e){pushFile(s.join(t,e),e)}))}else{n.readdirSync(t).forEach((function(e){if(e[0]!=="."){pushFile(s.join(t,e),e)}}))}}else{pushFile(t,t,r)}}));return r}function addLsAttributes(e,t){t.name=e;t.toString=function(){return[this.mode,this.nlink,this.uid,this.gid,this.size,this.mtime,this.name].join(" ")};return t}e.exports=_ls},807:(e,t,r)=>{var s=r(700);var n=r(7147);var o=r(1017);s.register("mkdir",_mkdir,{cmdOptions:{p:"fullpath"}});function mkdirSyncRecursive(e){var t=o.dirname(e);if(t===e){s.error("dirname() failed: ["+e+"]")}if(n.existsSync(t)){n.mkdirSync(e,parseInt("0777",8));return}mkdirSyncRecursive(t);n.mkdirSync(e,parseInt("0777",8))}function _mkdir(e,t){if(!t)s.error("no paths given");if(typeof t==="string"){t=[].slice.call(arguments,1)}t.forEach((function(t){try{var r=s.statNoFollowLinks(t);if(!e.fullpath){s.error("path already exists: "+t,{continue:true})}else if(r.isFile()){s.error("cannot create directory "+t+": File exists",{continue:true})}return}catch(e){}var i=o.dirname(t);if(!n.existsSync(i)&&!e.fullpath){s.error("no such file or directory: "+i,{continue:true});return}try{if(e.fullpath){mkdirSyncRecursive(o.resolve(t))}else{n.mkdirSync(t,parseInt("0777",8))}}catch(e){var a;if(e.code==="EACCES"){a="Permission denied"}else if(e.code==="ENOTDIR"||e.code==="ENOENT"){a="Not a directory"}else{throw e}s.error("cannot create directory "+t+": "+a,{continue:true})}}));return""}e.exports=_mkdir},8696:(e,t,r)=>{var s=r(7147);var n=r(1017);var o=r(700);var i=r(8566);var a=r(8287);o.register("mv",_mv,{cmdOptions:{f:"!no_force",n:"no_force"}});function checkRecentCreated(e,t){var r=e[t];return e.slice(0,t).some((function(e){return n.basename(e)===n.basename(r)}))}function _mv(e,t,r){if(arguments.length<3){o.error("missing and/or ")}else if(arguments.length>3){t=[].slice.call(arguments,1,arguments.length-1);r=arguments[arguments.length-1]}else if(typeof t==="string"){t=[t]}else{o.error("invalid arguments")}var c=s.existsSync(r);var u=c&&o.statFollowLinks(r);if((!c||!u.isDirectory())&&t.length>1){o.error("dest is not a directory (too many sources)")}if(c&&u.isFile()&&e.no_force){o.error("dest file already exists: "+r)}t.forEach((function(c,u){if(!s.existsSync(c)){o.error("no such file or directory: "+c,{continue:true});return}var l=r;if(s.existsSync(r)&&o.statFollowLinks(r).isDirectory()){l=n.normalize(r+"/"+n.basename(c))}var p=s.existsSync(l);if(p&&checkRecentCreated(t,u)){if(!e.no_force){o.error("will not overwrite just-created '"+l+"' with '"+c+"'",{continue:true})}return}if(s.existsSync(l)&&e.no_force){o.error("dest file already exists: "+l,{continue:true});return}if(n.resolve(c)===n.dirname(n.resolve(l))){o.error("cannot move to self: "+c,{continue:true});return}try{s.renameSync(c,l)}catch(e){if(e.code==="EXDEV"){i("-r",c,l);a("-rf",c)}}}));return""}e.exports=_mv},9253:()=>{},7935:()=>{},9015:(e,t,r)=>{var s=r(1017);var n=r(700);n.register("pwd",_pwd,{allowGlobbing:false});function _pwd(){var e=s.resolve(process.cwd());return e}e.exports=_pwd},8287:(e,t,r)=>{var s=r(700);var n=r(7147);s.register("rm",_rm,{cmdOptions:{f:"force",r:"recursive",R:"recursive"}});function rmdirSyncRecursive(e,t,r){var o;o=n.readdirSync(e);for(var i=0;i1e3)throw e}else if(e.code==="ENOENT"){break}else{throw e}}}}catch(t){s.error("could not remove directory (code "+t.code+"): "+e,{continue:true})}return u}function isWriteable(e){var t=true;try{var r=n.openSync(e,"a");n.closeSync(r)}catch(e){t=false}return t}function handleFile(e,t){if(t.force||isWriteable(e)){s.unlinkSync(e)}else{s.error("permission denied: "+e,{continue:true})}}function handleDirectory(e,t){if(t.recursive){rmdirSyncRecursive(e,t.force)}else{s.error("path is a directory",{continue:true})}}function handleSymbolicLink(e,t){var r;try{r=s.statFollowLinks(e)}catch(t){s.unlinkSync(e);return}if(r.isFile()){s.unlinkSync(e)}else if(r.isDirectory()){if(e[e.length-1]==="/"){if(t.recursive){var n=true;rmdirSyncRecursive(e,t.force,n)}else{s.error("path is a directory",{continue:true})}}else{s.unlinkSync(e)}}}function handleFIFO(e){s.unlinkSync(e)}function _rm(e,t){if(!t)s.error("no paths given");t=[].slice.call(arguments,1);t.forEach((function(t){var r;try{var n=t[t.length-1]==="/"?t.slice(0,-1):t;r=s.statNoFollowLinks(n)}catch(r){if(!e.force){s.error("no such file or directory: "+t,{continue:true})}return}if(r.isFile()){handleFile(t,e)}else if(r.isDirectory()){handleDirectory(t,e)}else if(r.isSymbolicLink()){handleSymbolicLink(t,e)}else if(r.isFIFO()){handleFIFO(t)}}));return""}e.exports=_rm},5759:(e,t,r)=>{var s=r(700);var n=r(7147);s.register("sed",_sed,{globStart:3,canReceivePipe:true,cmdOptions:{i:"inplace"}});function _sed(e,t,r,o){var i=s.readFromPipe();if(typeof r!=="string"&&typeof r!=="function"){if(typeof r==="number"){r=r.toString()}else{s.error("invalid replacement string")}}if(typeof t==="string"){t=RegExp(t)}if(!o&&!i){s.error("no files given")}o=[].slice.call(arguments,3);if(i){o.unshift("-")}var a=[];o.forEach((function(o){if(!n.existsSync(o)&&o!=="-"){s.error("no such file or directory: "+o,2,{continue:true});return}var c=o==="-"?i:n.readFileSync(o,"utf8");var u=c.split("\n");var l=u.map((function(e){return e.replace(t,r)})).join("\n");a.push(l);if(e.inplace){n.writeFileSync(o,l,"utf8")}}));return a.join("\n")}e.exports=_sed},3277:(e,t,r)=>{var s=r(700);s.register("set",_set,{allowGlobbing:false,wrapOutput:false});function _set(e){if(!e){var t=[].slice.call(arguments,0);if(t.length<2)s.error("must provide an argument");e=t[1]}var r=e[0]==="+";if(r){e="-"+e.slice(1)}e=s.parseOptions(e,{e:"fatal",v:"verbose",f:"noglob"});if(r){Object.keys(e).forEach((function(t){e[t]=!e[t]}))}Object.keys(e).forEach((function(t){if(r!==e[t]){s.config[t]=e[t]}}));return}e.exports=_set},8925:(e,t,r)=>{var s=r(700);var n=r(7147);s.register("sort",_sort,{canReceivePipe:true,cmdOptions:{r:"reverse",n:"numerical"}});function parseNumber(e){var t=e.match(/^\s*(\d*)\s*(.*)$/);return{num:Number(t[1]),value:t[2]}}function unixCmp(e,t){var r=e.toLowerCase();var s=t.toLowerCase();return r===s?-1*e.localeCompare(t):r.localeCompare(s)}function numericalCmp(e,t){var r=parseNumber(e);var s=parseNumber(t);if(r.hasOwnProperty("num")&&s.hasOwnProperty("num")){return r.num!==s.num?r.num-s.num:unixCmp(r.value,s.value)}else{return unixCmp(r.value,s.value)}}function _sort(e,t){var r=s.readFromPipe();if(!t&&!r)s.error("no files given");t=[].slice.call(arguments,1);if(r){t.unshift("-")}var o=t.reduce((function(e,t){if(t!=="-"){if(!n.existsSync(t)){s.error("no such file or directory: "+t,{continue:true});return e}else if(s.statFollowLinks(t).isDirectory()){s.error("read failed: "+t+": Is a directory",{continue:true});return e}}var o=t==="-"?r:n.readFileSync(t,"utf8");return e.concat(o.trimRight().split("\n"))}),[]);var i=o.sort(e.numerical?numericalCmp:unixCmp);if(e.reverse){i=i.reverse()}return i.join("\n")+"\n"}e.exports=_sort},3781:(e,t,r)=>{var s=r(700);var n=r(7147);s.register("tail",_tail,{canReceivePipe:true,cmdOptions:{n:"numLines"}});function _tail(e,t){var r=[];var o=s.readFromPipe();if(!t&&!o)s.error("no paths given");var i=1;if(e.numLines===true){i=2;e.numLines=Number(arguments[1])}else if(e.numLines===false){e.numLines=10}e.numLines=-1*Math.abs(e.numLines);t=[].slice.call(arguments,i);if(o){t.unshift("-")}var a=false;t.forEach((function(t){if(t!=="-"){if(!n.existsSync(t)){s.error("no such file or directory: "+t,{continue:true});return}else if(s.statFollowLinks(t).isDirectory()){s.error("error reading '"+t+"': Is a directory",{continue:true});return}}var i=t==="-"?o:n.readFileSync(t,"utf8");var c=i.split("\n");if(c[c.length-1]===""){c.pop();a=true}else{a=false}r=r.concat(c.slice(e.numLines))}));if(a){r.push("")}return r.join("\n")}e.exports=_tail},2074:(e,t,r)=>{var s=r(700);var n=r(2037);var o=r(7147);s.register("tempdir",_tempDir,{allowGlobbing:false,wrapOutput:false});function writeableDir(e){if(!e||!o.existsSync(e))return false;if(!s.statFollowLinks(e).isDirectory())return false;var t=e+"/"+s.randomFileName();try{o.writeFileSync(t," ");s.unlinkSync(t);return e}catch(e){return false}}var i;function _tempDir(){if(i)return i;i=writeableDir(n.tmpdir())||writeableDir(process.env.TMPDIR)||writeableDir(process.env.TEMP)||writeableDir(process.env.TMP)||writeableDir(process.env.Wimp$ScrapDir)||writeableDir("C:\\TEMP")||writeableDir("C:\\TMP")||writeableDir("\\TEMP")||writeableDir("\\TMP")||writeableDir("/tmp")||writeableDir("/var/tmp")||writeableDir("/usr/tmp")||writeableDir(".");return i}function isCached(){return i}function clearCache(){i=undefined}e.exports.tempDir=_tempDir;e.exports.isCached=isCached;e.exports.clearCache=clearCache},5572:(e,t,r)=>{var s=r(700);var n=r(7147);s.register("test",_test,{cmdOptions:{b:"block",c:"character",d:"directory",e:"exists",f:"file",L:"link",p:"pipe",S:"socket"},wrapOutput:false,allowGlobbing:false});function _test(e,t){if(!t)s.error("no path given");var r=false;Object.keys(e).forEach((function(t){if(e[t]===true){r=true}}));if(!r)s.error("could not interpret expression");if(e.link){try{return s.statNoFollowLinks(t).isSymbolicLink()}catch(e){return false}}if(!n.existsSync(t))return false;if(e.exists)return true;var o=s.statFollowLinks(t);if(e.block)return o.isBlockDevice();if(e.character)return o.isCharacterDevice();if(e.directory)return o.isDirectory();if(e.file)return o.isFile();if(e.pipe)return o.isFIFO();if(e.socket)return o.isSocket();return false}e.exports=_test},7328:(e,t,r)=>{var s=r(700);var n=r(7147);var o=r(1017);s.register("to",_to,{pipeOnly:true,wrapOutput:false});function _to(e,t){if(!t)s.error("wrong arguments");if(!n.existsSync(o.dirname(t))){s.error("no such file or directory: "+o.dirname(t))}try{n.writeFileSync(t,this.stdout||this.toString(),"utf8");return this}catch(e){s.error("could not write to file (code "+e.code+"): "+t,{continue:true})}}e.exports=_to},9066:(e,t,r)=>{var s=r(700);var n=r(7147);var o=r(1017);s.register("toEnd",_toEnd,{pipeOnly:true,wrapOutput:false});function _toEnd(e,t){if(!t)s.error("wrong arguments");if(!n.existsSync(o.dirname(t))){s.error("no such file or directory: "+o.dirname(t))}try{n.appendFileSync(t,this.stdout||this.toString(),"utf8");return this}catch(e){s.error("could not append to file (code "+e.code+"): "+t,{continue:true})}}e.exports=_toEnd},8080:(e,t,r)=>{var s=r(700);var n=r(7147);s.register("touch",_touch,{cmdOptions:{a:"atime_only",c:"no_create",d:"date",m:"mtime_only",r:"reference"}});function _touch(e,t){if(!t){s.error("no files given")}else if(typeof t==="string"){t=[].slice.call(arguments,1)}else{s.error("file arg should be a string file path or an Array of string file paths")}t.forEach((function(t){touchFile(e,t)}));return""}function touchFile(e,t){var r=tryStatFile(t);if(r&&r.isDirectory()){return}if(!r&&e.no_create){return}n.closeSync(n.openSync(t,"a"));var o=new Date;var i=e.date||o;var a=e.date||o;if(e.reference){var c=tryStatFile(e.reference);if(!c){s.error("failed to get attributess of "+e.reference)}i=c.mtime;a=c.atime}else if(e.date){i=e.date;a=e.date}if(e.atime_only&&e.mtime_only){}else if(e.atime_only){i=r.mtime}else if(e.mtime_only){a=r.atime}n.utimesSync(t,a,i)}e.exports=_touch;function tryStatFile(e){try{return s.statFollowLinks(e)}catch(e){return null}}},7236:(e,t,r)=>{var s=r(700);var n=r(7147);function lpad(e,t){var r=""+t;if(r.length1:true})).map((function(t){return(e.count?lpad(7,t.count)+" ":"")+t.ln})).join("\n")+"\n";if(r){new s.ShellString(a).to(r);return""}else{return a}}e.exports=_uniq},7361:(e,t,r)=>{var s=r(700);var n=r(7147);var o=r(1017);s.register("which",_which,{allowGlobbing:false,cmdOptions:{a:"all"}});var i=".com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh";var a=1;function isWindowsPlatform(){return process.platform==="win32"}function splitPath(e){return e?e.split(o.delimiter):[]}function isExecutable(e){try{n.accessSync(e,a)}catch(e){return false}return true}function checkPath(e){return n.existsSync(e)&&!s.statFollowLinks(e).isDirectory()&&(isWindowsPlatform()||isExecutable(e))}function _which(e,t){if(!t)s.error("must specify command");var r=isWindowsPlatform();var n=splitPath(process.env.PATH);var a=[];if(t.indexOf("/")===-1){var c=[""];if(r){var u=process.env.PATHEXT||i;c=splitPath(u.toUpperCase())}for(var l=0;l0&&!e.all)break;var p=o.resolve(n[l],t);if(r){p=p.toUpperCase()}var d=p.match(/\.[^<>:"/\|?*.]+$/);if(d&&c.indexOf(d[0])>=0){if(checkPath(p)){a.push(p);break}}else{for(var h=0;h0){return e.all?a:a[0]}return e.all?[]:null}e.exports=_which},7513:(e,t,r)=>{"use strict"; +e.exports=runParallel;const s=r(1504);function runParallel(e,t){let r,n,o;let i=true;if(Array.isArray(e)){r=[];n=e.length}else{o=Object.keys(e);r={};n=o.length}function done(e){function end(){if(t)t(e,r);t=null}if(i)s(end);else end()}function each(e,t,s){r[e]=s;if(--n===0||t){done(t)}}if(!n){done(null)}else if(o){o.forEach((function(t){e[t]((function(e,r){each(t,e,r)}))}))}else{e.forEach((function(e,t){e((function(e,r){each(t,e,r)}))}))}i=false}},6531:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var s=256;var n=Number.MAX_SAFE_INTEGER||9007199254740991;var o=16;var i=t.re=[];var a=t.src=[];var c=t.tokens={};var u=0;function tok(e){c[e]=u++}tok("NUMERICIDENTIFIER");a[c.NUMERICIDENTIFIER]="0|[1-9]\\d*";tok("NUMERICIDENTIFIERLOOSE");a[c.NUMERICIDENTIFIERLOOSE]="[0-9]+";tok("NONNUMERICIDENTIFIER");a[c.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";tok("MAINVERSION");a[c.MAINVERSION]="("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")\\."+"("+a[c.NUMERICIDENTIFIER]+")";tok("MAINVERSIONLOOSE");a[c.MAINVERSIONLOOSE]="("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")\\."+"("+a[c.NUMERICIDENTIFIERLOOSE]+")";tok("PRERELEASEIDENTIFIER");a[c.PRERELEASEIDENTIFIER]="(?:"+a[c.NUMERICIDENTIFIER]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASEIDENTIFIERLOOSE");a[c.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[c.NUMERICIDENTIFIERLOOSE]+"|"+a[c.NONNUMERICIDENTIFIER]+")";tok("PRERELEASE");a[c.PRERELEASE]="(?:-("+a[c.PRERELEASEIDENTIFIER]+"(?:\\."+a[c.PRERELEASEIDENTIFIER]+")*))";tok("PRERELEASELOOSE");a[c.PRERELEASELOOSE]="(?:-?("+a[c.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[c.PRERELEASEIDENTIFIERLOOSE]+")*))";tok("BUILDIDENTIFIER");a[c.BUILDIDENTIFIER]="[0-9A-Za-z-]+";tok("BUILD");a[c.BUILD]="(?:\\+("+a[c.BUILDIDENTIFIER]+"(?:\\."+a[c.BUILDIDENTIFIER]+")*))";tok("FULL");tok("FULLPLAIN");a[c.FULLPLAIN]="v?"+a[c.MAINVERSION]+a[c.PRERELEASE]+"?"+a[c.BUILD]+"?";a[c.FULL]="^"+a[c.FULLPLAIN]+"$";tok("LOOSEPLAIN");a[c.LOOSEPLAIN]="[v=\\s]*"+a[c.MAINVERSIONLOOSE]+a[c.PRERELEASELOOSE]+"?"+a[c.BUILD]+"?";tok("LOOSE");a[c.LOOSE]="^"+a[c.LOOSEPLAIN]+"$";tok("GTLT");a[c.GTLT]="((?:<|>)?=?)";tok("XRANGEIDENTIFIERLOOSE");a[c.XRANGEIDENTIFIERLOOSE]=a[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");a[c.XRANGEIDENTIFIER]=a[c.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");a[c.XRANGEPLAIN]="[v=\\s]*("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIER]+")"+"(?:"+a[c.PRERELEASE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");a[c.XRANGEPLAINLOOSE]="[v=\\s]*("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+a[c.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+a[c.PRERELEASELOOSE]+")?"+a[c.BUILD]+"?"+")?)?";tok("XRANGE");a[c.XRANGE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAIN]+"$";tok("XRANGELOOSE");a[c.XRANGELOOSE]="^"+a[c.GTLT]+"\\s*"+a[c.XRANGEPLAINLOOSE]+"$";tok("COERCE");a[c.COERCE]="(^|[^\\d])"+"(\\d{1,"+o+"})"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:\\.(\\d{1,"+o+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");i[c.COERCERTL]=new RegExp(a[c.COERCE],"g");tok("LONETILDE");a[c.LONETILDE]="(?:~>?)";tok("TILDETRIM");a[c.TILDETRIM]="(\\s*)"+a[c.LONETILDE]+"\\s+";i[c.TILDETRIM]=new RegExp(a[c.TILDETRIM],"g");var l="$1~";tok("TILDE");a[c.TILDE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAIN]+"$";tok("TILDELOOSE");a[c.TILDELOOSE]="^"+a[c.LONETILDE]+a[c.XRANGEPLAINLOOSE]+"$";tok("LONECARET");a[c.LONECARET]="(?:\\^)";tok("CARETTRIM");a[c.CARETTRIM]="(\\s*)"+a[c.LONECARET]+"\\s+";i[c.CARETTRIM]=new RegExp(a[c.CARETTRIM],"g");var p="$1^";tok("CARET");a[c.CARET]="^"+a[c.LONECARET]+a[c.XRANGEPLAIN]+"$";tok("CARETLOOSE");a[c.CARETLOOSE]="^"+a[c.LONECARET]+a[c.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");a[c.COMPARATORLOOSE]="^"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");a[c.COMPARATOR]="^"+a[c.GTLT]+"\\s*("+a[c.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");a[c.COMPARATORTRIM]="(\\s*)"+a[c.GTLT]+"\\s*("+a[c.LOOSEPLAIN]+"|"+a[c.XRANGEPLAIN]+")";i[c.COMPARATORTRIM]=new RegExp(a[c.COMPARATORTRIM],"g");var d="$1$2$3";tok("HYPHENRANGE");a[c.HYPHENRANGE]="^\\s*("+a[c.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");a[c.HYPHENRANGELOOSE]="^\\s*("+a[c.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+a[c.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");a[c.STAR]="(<|>)?=?\\s*\\*";for(var h=0;hs){return null}var r=t.loose?i[c.LOOSE]:i[c.FULL];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>s){throw new TypeError("version is longer than "+s+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var o=e.trim().match(t.loose?i[c.LOOSE]:i[c.FULL]);if(!o){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+o[1];this.minor=+o[2];this.patch=+o[3];if(this.major>n||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>n||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>n||this.patch<0){throw new TypeError("Invalid patch version")}if(!o[4]){this.prerelease=[]}else{this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){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};t.inc=inc;function inc(e,t,r,s){if(typeof r==="string"){s=r;r=undefined}try{return new SemVer(e,r).inc(t,s).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var s=parse(t);var n="";if(r.prerelease.length||s.prerelease.length){n="pre";var o="prerelease"}for(var i in r){if(i==="major"||i==="minor"||i==="patch"){if(r[i]!==s[i]){return n+i}}}return o}}t.compareIdentifiers=compareIdentifiers;var m=/^[0-9]+$/;function compareIdentifiers(e,t){var r=m.test(e);var s=m.test(t);if(r&&s){e=+e;t=+t}return e===t?0:r&&!s?-1:s&&!r?1:e0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,s){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 eq(e,r,s);case"!=":return neq(e,r,s);case">":return gt(e,r,s);case">=":return gte(e,r,s);case"<":return lt(e,r,s);case"<=":return lte(e,r,s);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===g){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var g={};Comparator.prototype.parse=function(e){var t=this.options.loose?i[c.COMPARATORLOOSE]:i[c.COMPARATOR];var 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=g}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===g||e===g){return true}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){if(this.value===""){return true}r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){if(e.value===""){return true}r=new Range(this.value,t);return satisfies(e.semver,r,t)}var s=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var n=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var o=this.semver.version===e.semver.version;var i=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return s||n||o&&i||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}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 Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+e)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var s=t?i[c.HYPHENRANGELOOSE]:i[c.HYPHENRANGE];e=e.replace(s,hyphenReplace);r("hyphen replace",e);e=e.replace(i[c.COMPARATORTRIM],d);r("comparator trim",e,i[c.COMPARATORTRIM]);e=e.replace(i[c.TILDETRIM],l);e=e.replace(i[c.CARETTRIM],p);e=e.split(/\s+/).join(" ");var n=t?i[c.COMPARATORLOOSE]:i[c.COMPARATOR];var o=e.split(" ").map((function(e){return parseComparator(e,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){o=o.filter((function(e){return!!e.match(n)}))}o=o.map((function(e){return new Comparator(e,this.options)}),this);return o};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(r){return isSatisfiable(r,t)&&e.set.some((function(e){return isSatisfiable(e,t)&&r.every((function(r){return e.every((function(e){return r.intersects(e,t)}))}))}))}))};function isSatisfiable(e,t){var r=true;var s=e.slice();var n=s.pop();while(r&&s.length){r=s.every((function(e){return n.intersects(e,t)}));n=s.pop()}return r}t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map((function(e){return replaceTilde(e,t)})).join(" ")}function replaceTilde(e,t){var s=t.loose?i[c.TILDELOOSE]:i[c.TILDE];return e.replace(s,(function(t,s,n,o,i){r("tilde",e,t,s,n,o,i);var a;if(isX(s)){a=""}else if(isX(n)){a=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(isX(o)){a=">="+s+"."+n+".0 <"+s+"."+(+n+1)+".0"}else if(i){r("replaceTilde pr",i);a=">="+s+"."+n+"."+o+"-"+i+" <"+s+"."+(+n+1)+".0"}else{a=">="+s+"."+n+"."+o+" <"+s+"."+(+n+1)+".0"}r("tilde return",a);return a}))}function replaceCarets(e,t){return e.trim().split(/\s+/).map((function(e){return replaceCaret(e,t)})).join(" ")}function replaceCaret(e,t){r("caret",e,t);var s=t.loose?i[c.CARETLOOSE]:i[c.CARET];return e.replace(s,(function(t,s,n,o,i){r("caret",e,t,s,n,o,i);var a;if(isX(s)){a=""}else if(isX(n)){a=">="+s+".0.0 <"+(+s+1)+".0.0"}else if(isX(o)){if(s==="0"){a=">="+s+"."+n+".0 <"+s+"."+(+n+1)+".0"}else{a=">="+s+"."+n+".0 <"+(+s+1)+".0.0"}}else if(i){r("replaceCaret pr",i);if(s==="0"){if(n==="0"){a=">="+s+"."+n+"."+o+"-"+i+" <"+s+"."+n+"."+(+o+1)}else{a=">="+s+"."+n+"."+o+"-"+i+" <"+s+"."+(+n+1)+".0"}}else{a=">="+s+"."+n+"."+o+"-"+i+" <"+(+s+1)+".0.0"}}else{r("no pr");if(s==="0"){if(n==="0"){a=">="+s+"."+n+"."+o+" <"+s+"."+n+"."+(+o+1)}else{a=">="+s+"."+n+"."+o+" <"+s+"."+(+n+1)+".0"}}else{a=">="+s+"."+n+"."+o+" <"+(+s+1)+".0.0"}}r("caret return",a);return a}))}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map((function(e){return replaceXRange(e,t)})).join(" ")}function replaceXRange(e,t){e=e.trim();var s=t.loose?i[c.XRANGELOOSE]:i[c.XRANGE];return e.replace(s,(function(s,n,o,i,a,c){r("xRange",e,s,n,o,i,a,c);var u=isX(o);var l=u||isX(i);var p=l||isX(a);var d=p;if(n==="="&&d){n=""}c=t.includePrerelease?"-0":"";if(u){if(n===">"||n==="<"){s="<0.0.0-0"}else{s="*"}}else if(n&&d){if(l){i=0}a=0;if(n===">"){n=">=";if(l){o=+o+1;i=0;a=0}else{i=+i+1;a=0}}else if(n==="<="){n="<";if(l){o=+o+1}else{i=+i+1}}s=n+o+"."+i+"."+a+c}else if(l){s=">="+o+".0.0"+c+" <"+(+o+1)+".0.0"+c}else if(p){s=">="+o+"."+i+".0"+c+" <"+o+"."+(+i+1)+".0"+c}r("xRange return",s);return s}))}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(i[c.STAR],"")}function hyphenReplace(e,t,r,s,n,o,i,a,c,u,l,p,d){if(isX(r)){t=""}else if(isX(s)){t=">="+r+".0.0"}else if(isX(n)){t=">="+r+"."+s+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(p){a="<="+c+"."+u+"."+l+"-"+p}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){try{e=new SemVer(e,this.options)}catch(e){return false}}for(var t=0;t0){var o=e[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var s=null;var n=null;try{var o=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(o.test(e)){if(!s||n.compare(e)===-1){s=e;n=new SemVer(s,r)}}}));return s}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var s=null;var n=null;try{var o=new Range(t,r)}catch(e){return null}e.forEach((function(e){if(o.test(e)){if(!s||n.compare(e)===1){s=e;n=new SemVer(s,r)}}}));return s}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var s=0;s":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,s){e=new SemVer(e,s);t=new Range(t,s);var n,o,i,a,c;switch(r){case">":n=gt;o=lte;i=lt;a=">";c=">=";break;case"<":n=lt;o=gte;i=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,s)){return false}for(var u=0;u=0.0.0")}p=p||e;d=d||e;if(n(e.semver,p.semver,s)){p=e}else if(i(e.semver,d.semver,s)){d=e}}));if(p.operator===a||p.operator===c){return false}if((!d.operator||d.operator===a)&&o(e,d.semver)){return false}else if(d.operator===c&&i(e,d.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e,t){if(e instanceof SemVer){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};var r=null;if(!t.rtl){r=e.match(i[c.COERCE])}else{var s;while((s=i[c.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||s.index+s[0].length!==r.index+r[0].length){r=s}i[c.COERCERTL].lastIndex=s.index+s[1].length+s[2].length}i[c.COERCERTL].lastIndex=-1}if(r===null){return null}return parse(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}},7767:(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(" ");c("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}c("comp",this)}parse(e){const t=this.options.loose?o[i.COMPARATORLOOSE]:o[i.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 u(r[2],this.options.loose)}}toString(){return this.value}test(e){c("Comparator.test",e,this.options.loose);if(this.semver===s||e===s){return true}if(typeof e==="string"){try{e=new u(e,this.options)}catch(e){return false}}return a(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 l(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new l(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(a(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(a(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const n=r(6969);const{safeRe:o,t:i}=r(4174);const a=r(1751);const c=r(7203);const u=r(6812);const l=r(5109)},5109:(e,t,r)=>{class Range{constructor(e,t){t=o(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 i){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&&m)|(this.options.loose&&g);const r=t+":"+e;const s=n.get(r);if(s){return s}const o=this.options.loose;const c=o?u[l.HYPHENRANGELOOSE]:u[l.HYPHENRANGE];e=e.replace(c,hyphenReplace(this.options.includePrerelease));a("hyphen replace",e);e=e.replace(u[l.COMPARATORTRIM],p);a("comparator trim",e);e=e.replace(u[l.TILDETRIM],d);a("tilde trim",e);e=e.replace(u[l.CARETTRIM],h);a("caret trim",e);let E=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(o){E=E.filter((e=>{a("loose invalid filter",e,this.options);return!!e.match(u[l.COMPARATORLOOSE])}))}a("range list",E);const v=new Map;const y=E.map((e=>new i(e,this.options)));for(const e of y){if(isNullSet(e)){return[e]}v.set(e.value,e)}if(v.size>1&&v.has("")){v.delete("")}const _=[...v.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 c(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)=>{a("comp",e,t);e=replaceCarets(e,t);a("caret",e);e=replaceTildes(e,t);a("tildes",e);e=replaceXRanges(e,t);a("xrange",e);e=replaceStars(e,t);a("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?u[l.TILDELOOSE]:u[l.TILDE];return e.replace(r,((t,r,s,n,o)=>{a("tilde",e,t,r,s,n,o);let i;if(isX(r)){i=""}else if(isX(s)){i=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(isX(n)){i=`>=${r}.${s}.0 <${r}.${+s+1}.0-0`}else if(o){a("replaceTilde pr",o);i=`>=${r}.${s}.${n}-${o} <${r}.${+s+1}.0-0`}else{i=`>=${r}.${s}.${n} <${r}.${+s+1}.0-0`}a("tilde return",i);return i}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{a("caret",e,t);const r=t.loose?u[l.CARETLOOSE]:u[l.CARET];const s=t.includePrerelease?"-0":"";return e.replace(r,((t,r,n,o,i)=>{a("caret",e,t,r,n,o,i);let c;if(isX(r)){c=""}else if(isX(n)){c=`>=${r}.0.0${s} <${+r+1}.0.0-0`}else if(isX(o)){if(r==="0"){c=`>=${r}.${n}.0${s} <${r}.${+n+1}.0-0`}else{c=`>=${r}.${n}.0${s} <${+r+1}.0.0-0`}}else if(i){a("replaceCaret pr",i);if(r==="0"){if(n==="0"){c=`>=${r}.${n}.${o}-${i} <${r}.${n}.${+o+1}-0`}else{c=`>=${r}.${n}.${o}-${i} <${r}.${+n+1}.0-0`}}else{c=`>=${r}.${n}.${o}-${i} <${+r+1}.0.0-0`}}else{a("no pr");if(r==="0"){if(n==="0"){c=`>=${r}.${n}.${o}${s} <${r}.${n}.${+o+1}-0`}else{c=`>=${r}.${n}.${o}${s} <${r}.${+n+1}.0-0`}}else{c=`>=${r}.${n}.${o} <${+r+1}.0.0-0`}}a("caret return",c);return c}))};const replaceXRanges=(e,t)=>{a("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const r=t.loose?u[l.XRANGELOOSE]:u[l.XRANGE];return e.replace(r,((r,s,n,o,i,c)=>{a("xRange",e,r,s,n,o,i,c);const u=isX(n);const l=u||isX(o);const p=l||isX(i);const d=p;if(s==="="&&d){s=""}c=t.includePrerelease?"-0":"";if(u){if(s===">"||s==="<"){r="<0.0.0-0"}else{r="*"}}else if(s&&d){if(l){o=0}i=0;if(s===">"){s=">=";if(l){n=+n+1;o=0;i=0}else{o=+o+1;i=0}}else if(s==="<="){s="<";if(l){n=+n+1}else{o=+o+1}}if(s==="<"){c="-0"}r=`${s+n}.${o}.${i}${c}`}else if(l){r=`>=${n}.0.0${c} <${+n+1}.0.0-0`}else if(p){r=`>=${n}.${o}.0${c} <${n}.${+o+1}.0-0`}a("xRange return",r);return r}))};const replaceStars=(e,t)=>{a("replaceStars",e,t);return e.trim().replace(u[l.STAR],"")};const replaceGTE0=(e,t)=>{a("replaceGTE0",e,t);return e.trim().replace(u[t.includePrerelease?l.GTE0PRE:l.GTE0],"")};const hyphenReplace=e=>(t,r,s,n,o,i,a,c,u,l,p,d)=>{if(isX(s)){r=""}else if(isX(n)){r=`>=${s}.0.0${e?"-0":""}`}else if(isX(o)){r=`>=${s}.${n}.0${e?"-0":""}`}else if(i){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(isX(u)){c=""}else if(isX(l)){c=`<${+u+1}.0.0-0`}else if(isX(p)){c=`<${u}.${+l+1}.0-0`}else if(d){c=`<=${u}.${l}.${p}-${d}`}else if(e){c=`<${u}.${l}.${+p+1}-0`}else{c=`<=${c}`}return`${r} ${c}`.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}},6812:(e,t,r)=>{const s=r(7203);const{MAX_LENGTH:n,MAX_SAFE_INTEGER:o}=r(5426);const{safeRe:i,t:a}=r(4174);const c=r(6969);const{compareIdentifiers:u}=r(3343);class SemVer{constructor(e,t){t=c(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?i[a.LOOSE]:i[a.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>o||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>o||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>o||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(u(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},2683:(e,t,r)=>{const s=r(4559);const clean=(e,t)=>{const r=s(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=clean},1751:(e,t,r)=>{const s=r(9422);const n=r(9693);const o=r(4654);const i=r(7695);const a=r(5568);const c=r(6770);const cmp=(e,t,r,u)=>{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,u);case"!=":return n(e,r,u);case">":return o(e,r,u);case">=":return i(e,r,u);case"<":return a(e,r,u);case"<=":return c(e,r,u);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},6038:(e,t,r)=>{const s=r(6812);const n=r(4559);const{safeRe:o,t:i}=r(4174);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?o[i.COERCEFULL]:o[i.COERCE])}else{const s=t.includePrerelease?o[i.COERCERTLFULL]:o[i.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 a=r[2];const c=r[3]||"0";const u=r[4]||"0";const l=t.includePrerelease&&r[5]?`-${r[5]}`:"";const p=t.includePrerelease&&r[6]?`+${r[6]}`:"";return n(`${a}.${c}.${u}${l}${p}`,t)};e.exports=coerce},5747:(e,t,r)=>{const s=r(6812);const compareBuild=(e,t,r)=>{const n=new s(e,r);const o=new s(t,r);return n.compare(o)||n.compareBuild(o)};e.exports=compareBuild},8138:(e,t,r)=>{const s=r(684);const compareLoose=(e,t)=>s(e,t,true);e.exports=compareLoose},684:(e,t,r)=>{const s=r(6812);const compare=(e,t,r)=>new s(e,r).compare(new s(t,r));e.exports=compare},3095:(e,t,r)=>{const s=r(4559);const diff=(e,t)=>{const r=s(e,null,true);const n=s(t,null,true);const o=r.compare(n);if(o===0){return null}const i=o>0;const a=i?r:n;const c=i?n:r;const u=!!a.prerelease.length;const l=!!c.prerelease.length;if(l&&!u){if(!c.patch&&!c.minor){return"major"}if(a.patch){return"patch"}if(a.minor){return"minor"}return"major"}const p=u?"pre":"";if(r.major!==n.major){return p+"major"}if(r.minor!==n.minor){return p+"minor"}if(r.patch!==n.patch){return p+"patch"}return"prerelease"};e.exports=diff},9422:(e,t,r)=>{const s=r(684);const eq=(e,t,r)=>s(e,t,r)===0;e.exports=eq},4654:(e,t,r)=>{const s=r(684);const gt=(e,t,r)=>s(e,t,r)>0;e.exports=gt},7695:(e,t,r)=>{const s=r(684);const gte=(e,t,r)=>s(e,t,r)>=0;e.exports=gte},3572:(e,t,r)=>{const s=r(6812);const inc=(e,t,r,n,o)=>{if(typeof r==="string"){o=n;n=r;r=undefined}try{return new s(e instanceof s?e.version:e,r).inc(t,n,o).version}catch(e){return null}};e.exports=inc},5568:(e,t,r)=>{const s=r(684);const lt=(e,t,r)=>s(e,t,r)<0;e.exports=lt},6770:(e,t,r)=>{const s=r(684);const lte=(e,t,r)=>s(e,t,r)<=0;e.exports=lte},2641:(e,t,r)=>{const s=r(6812);const major=(e,t)=>new s(e,t).major;e.exports=major},3477:(e,t,r)=>{const s=r(6812);const minor=(e,t)=>new s(e,t).minor;e.exports=minor},9693:(e,t,r)=>{const s=r(684);const neq=(e,t,r)=>s(e,t,r)!==0;e.exports=neq},4559:(e,t,r)=>{const s=r(6812);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},9596:(e,t,r)=>{const s=r(6812);const patch=(e,t)=>new s(e,t).patch;e.exports=patch},5780:(e,t,r)=>{const s=r(4559);const prerelease=(e,t)=>{const r=s(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=prerelease},1587:(e,t,r)=>{const s=r(684);const rcompare=(e,t,r)=>s(t,e,r);e.exports=rcompare},8504:(e,t,r)=>{const s=r(5747);const rsort=(e,t)=>e.sort(((e,r)=>s(r,e,t)));e.exports=rsort},9228:(e,t,r)=>{const s=r(5109);const satisfies=(e,t,r)=>{try{t=new s(t,r)}catch(e){return false}return t.test(e)};e.exports=satisfies},2765:(e,t,r)=>{const s=r(5747);const sort=(e,t)=>e.sort(((e,r)=>s(e,r,t)));e.exports=sort},2348:(e,t,r)=>{const s=r(4559);const valid=(e,t)=>{const r=s(e,t);return r?r.version:null};e.exports=valid},7705:(e,t,r)=>{const s=r(4174);const n=r(5426);const o=r(6812);const i=r(3343);const a=r(4559);const c=r(2348);const u=r(2683);const l=r(3572);const p=r(3095);const d=r(2641);const h=r(3477);const m=r(9596);const g=r(5780);const E=r(684);const v=r(1587);const y=r(8138);const _=r(5747);const b=r(2765);const w=r(8504);const T=r(4654);const S=r(5568);const O=r(9422);const R=r(9693);const P=r(7695);const k=r(6770);const A=r(1751);const C=r(6038);const x=r(7767);const G=r(5109);const L=r(9228);const F=r(7115);const D=r(2998);const I=r(5203);const j=r(3757);const $=r(6954);const N=r(2550);const U=r(5491);const M=r(8475);const H=r(6313);const q=r(1512);const B=r(5551);e.exports={parse:a,valid:c,clean:u,inc:l,diff:p,major:d,minor:h,patch:m,prerelease:g,compare:E,rcompare:v,compareLoose:y,compareBuild:_,sort:b,rsort:w,gt:T,lt:S,eq:O,neq:R,gte:P,lte:k,cmp:A,coerce:C,Comparator:x,Range:G,satisfies:L,toComparators:F,maxSatisfying:D,minSatisfying:I,minVersion:j,validRange:$,outside:N,gtr:U,ltr:M,intersects:H,simplifyRange:q,subset:B,SemVer:o,re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},5426:e=>{const t="2.0.0";const r=256;const s=Number.MAX_SAFE_INTEGER||9007199254740991;const n=16;const o=r-6;const i=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:s,RELEASE_TYPES:i,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7203: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},3343: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}},1803:e=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const r=this.delete(e);if(!r&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},6969: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},4174:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=r(5426);const i=r(7203);t=e.exports={};const a=t.re=[];const c=t.safeRe=[];const u=t.src=[];const l=t.t={};let p=0;const d="[a-zA-Z0-9-]";const h=[["\\s",1],["\\d",o],[d,n]];const makeSafeRegex=e=>{for(const[t,r]of h){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=p++;i(e,n,t);l[e]=n;u[n]=t;a[n]=new RegExp(t,r?"g":undefined);c[n]=new RegExp(s,r?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`);createToken("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.`+`(${u[l.NUMERICIDENTIFIER]})\\.`+`(${u[l.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${u[l.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${d}+`);createToken("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`);createToken("FULL",`^${u[l.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`);createToken("LOOSE",`^${u[l.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})`+`(?:\\.(${u[l.XRANGEIDENTIFIER]})`+`(?:\\.(${u[l.XRANGEIDENTIFIER]})`+`(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})`+`(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${s}})`+`(?:\\.(\\d{1,${s}}))?`+`(?:\\.(\\d{1,${s}}))?`);createToken("COERCE",`${u[l.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",u[l.COERCEPLAIN]+`(?:${u[l.PRERELEASE]})?`+`(?:${u[l.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",u[l.COERCE],true);createToken("COERCERTLFULL",u[l.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${u[l.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${u[l.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5491:(e,t,r)=>{const s=r(2550);const gtr=(e,t,r)=>s(e,t,">",r);e.exports=gtr},6313:(e,t,r)=>{const s=r(5109);const intersects=(e,t,r)=>{e=new s(e,r);t=new s(t,r);return e.intersects(t,r)};e.exports=intersects},8475:(e,t,r)=>{const s=r(2550);const ltr=(e,t,r)=>s(e,t,"<",r);e.exports=ltr},2998:(e,t,r)=>{const s=r(6812);const n=r(5109);const maxSatisfying=(e,t,r)=>{let o=null;let i=null;let a=null;try{a=new n(t,r)}catch(e){return null}e.forEach((e=>{if(a.test(e)){if(!o||i.compare(e)===-1){o=e;i=new s(o,r)}}}));return o};e.exports=maxSatisfying},5203:(e,t,r)=>{const s=r(6812);const n=r(5109);const minSatisfying=(e,t,r)=>{let o=null;let i=null;let a=null;try{a=new n(t,r)}catch(e){return null}e.forEach((e=>{if(a.test(e)){if(!o||i.compare(e)===1){o=e;i=new s(o,r)}}}));return o};e.exports=minSatisfying},3757:(e,t,r)=>{const s=r(6812);const n=r(5109);const o=r(4654);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(!i||o(t,i)){i=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(i&&(!r||o(r,i))){r=i}}if(r&&e.test(r)){return r}return null};e.exports=minVersion},2550:(e,t,r)=>{const s=r(6812);const n=r(7767);const{ANY:o}=n;const i=r(5109);const a=r(9228);const c=r(4654);const u=r(5568);const l=r(6770);const p=r(7695);const outside=(e,t,r,d)=>{e=new s(e,d);t=new i(t,d);let h,m,g,E,v;switch(r){case">":h=c;m=l;g=u;E=">";v=">=";break;case"<":h=u;m=p;g=c;E="<";v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,d)){return false}for(let r=0;r{if(e.semver===o){e=new n(">=0.0.0")}i=i||e;a=a||e;if(h(e.semver,i.semver,d)){i=e}else if(g(e.semver,a.semver,d)){a=e}}));if(i.operator===E||i.operator===v){return false}if((!a.operator||a.operator===E)&&m(e,a.semver)){return false}else if(a.operator===v&&g(e,a.semver)){return false}}return true};e.exports=outside},1512:(e,t,r)=>{const s=r(9228);const n=r(684);e.exports=(e,t,r)=>{const o=[];let i=null;let a=null;const c=e.sort(((e,t)=>n(e,t,r)));for(const e of c){const n=s(e,t,r);if(n){a=e;if(!i){i=e}}else{if(a){o.push([i,a])}a=null;i=null}}if(i){o.push([i,null])}const u=[];for(const[e,t]of o){if(e===t){u.push(e)}else if(!t&&e===c[0]){u.push("*")}else if(!t){u.push(`>=${e}`)}else if(e===c[0]){u.push(`<=${t}`)}else{u.push(`${e} - ${t}`)}}const l=u.join(" || ");const p=typeof t.raw==="string"?t.raw:String(t);return l.length{const s=r(5109);const n=r(7767);const{ANY:o}=n;const i=r(9228);const a=r(684);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 c=[new n(">=0.0.0-0")];const u=[new n(">=0.0.0")];const simpleSubset=(e,t,r)=>{if(e===t){return true}if(e.length===1&&e[0].semver===o){if(t.length===1&&t[0].semver===o){return true}else if(r.includePrerelease){e=c}else{e=u}}if(t.length===1&&t[0].semver===o){if(r.includePrerelease){return true}else{t=u}}const s=new Set;let n,l;for(const t of e){if(t.operator===">"||t.operator===">="){n=higherGT(n,t,r)}else if(t.operator==="<"||t.operator==="<="){l=lowerLT(l,t,r)}else{s.add(t.semver)}}if(s.size>1){return null}let p;if(n&&l){p=a(n.semver,l.semver,r);if(p>0){return null}else if(p===0&&(n.operator!==">="||l.operator!=="<=")){return null}}for(const e of s){if(n&&!i(e,String(n),r)){return null}if(l&&!i(e,String(l),r)){return null}for(const s of t){if(!i(e,String(s),r)){return false}}return true}let d,h;let m,g;let E=l&&!r.includePrerelease&&l.semver.prerelease.length?l.semver:false;let v=n&&!r.includePrerelease&&n.semver.prerelease.length?n.semver:false;if(E&&E.prerelease.length===1&&l.operator==="<"&&E.prerelease[0]===0){E=false}for(const e of t){g=g||e.operator===">"||e.operator===">=";m=m||e.operator==="<"||e.operator==="<=";if(n){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===">="){d=higherGT(n,e,r);if(d===e&&d!==n){return false}}else if(n.operator===">="&&!i(n.semver,String(e),r)){return false}}if(l){if(E){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch){E=false}}if(e.operator==="<"||e.operator==="<="){h=lowerLT(l,e,r);if(h===e&&h!==l){return false}}else if(l.operator==="<="&&!i(l.semver,String(e),r)){return false}}if(!e.operator&&(l||n)&&p!==0){return false}}if(n&&m&&!l&&p!==0){return false}if(l&&g&&!n&&p!==0){return false}if(v||E){return false}return true};const higherGT=(e,t,r)=>{if(!e){return t}const s=a(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=a(e.semver,t.semver,r);return s<0?e:s>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},7115:(e,t,r)=>{const s=r(5109);const toComparators=(e,t)=>new s(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},6954:(e,t,r)=>{const s=r(5109);const validRange=(e,t)=>{try{return new s(e,t).range||"*"}catch(e){return null}};e.exports=validRange},2889:e=>{e.exports=["cat","cd","chmod","cp","dirs","echo","exec","find","grep","head","ln","ls","mkdir","mv","pwd","rm","sed","set","sort","tail","tempdir","test","to","toEnd","touch","uniq","which"]},2568:(e,t,r)=>{function __ncc_wildcard$0(e){if(e==="cat.js"||e==="cat")return r(1053);else if(e==="cd.js"||e==="cd")return r(6086);else if(e==="chmod.js"||e==="chmod")return r(2374);else if(e==="common.js"||e==="common")return r(700);else if(e==="cp.js"||e==="cp")return r(8566);else if(e==="dirs.js"||e==="dirs")return r(7346);else if(e==="echo.js"||e==="echo")return r(7724);else if(e==="error.js"||e==="error")return r(5321);else if(e==="exec-child.js"||e==="exec-child")return r(7110);else if(e==="exec.js"||e==="exec")return r(5702);else if(e==="find.js"||e==="find")return r(1403);else if(e==="grep.js"||e==="grep")return r(5186);else if(e==="head.js"||e==="head")return r(4240);else if(e==="ln.js"||e==="ln")return r(7543);else if(e==="ls.js"||e==="ls")return r(3090);else if(e==="mkdir.js"||e==="mkdir")return r(807);else if(e==="mv.js"||e==="mv")return r(8696);else if(e==="popd.js"||e==="popd")return r(9253);else if(e==="pushd.js"||e==="pushd")return r(7935);else if(e==="pwd.js"||e==="pwd")return r(9015);else if(e==="rm.js"||e==="rm")return r(8287);else if(e==="sed.js"||e==="sed")return r(5759);else if(e==="set.js"||e==="set")return r(3277);else if(e==="sort.js"||e==="sort")return r(8925);else if(e==="tail.js"||e==="tail")return r(3781);else if(e==="tempdir.js"||e==="tempdir")return r(2074);else if(e==="test.js"||e==="test")return r(5572);else if(e==="to.js"||e==="to")return r(7328);else if(e==="toEnd.js"||e==="toEnd")return r(9066);else if(e==="touch.js"||e==="touch")return r(8080);else if(e==="uniq.js"||e==="uniq")return r(7236);else if(e==="which.js"||e==="which")return r(7361)}var s=r(700);r(2889).forEach((function(e){__ncc_wildcard$0(e)}));t.exit=process.exit;t.error=r(5321);t.ShellString=s.ShellString;t.env=process.env;t.config=s.config},1053:(e,t,r)=>{var s=r(700);var n=r(7147);s.register("cat",_cat,{canReceivePipe:true,cmdOptions:{n:"number"}});function _cat(e,t){var r=s.readFromPipe();if(!t&&!r)s.error("no paths given");t=[].slice.call(arguments,1);t.forEach((function(e){if(!n.existsSync(e)){s.error("no such file or directory: "+e)}else if(s.statFollowLinks(e).isDirectory()){s.error(e+": Is a directory")}r+=n.readFileSync(e,"utf8")}));if(e.number){r=addNumbers(r)}return r}e.exports=_cat;function addNumbers(e){var t=e.split("\n");var r=t.pop();t=t.map((function(e,t){return numberedLine(t+1,e)}));if(r.length){r=numberedLine(t.length+1,r)}t.push(r);return t.join("\n")}function numberedLine(e,t){var r=(" "+e).slice(-6)+"\t";return r+t}},6086:(e,t,r)=>{var s=r(2037);var n=r(700);n.register("cd",_cd,{});function _cd(e,t){if(!t)t=s.homedir();if(t==="-"){if(!process.env.OLDPWD){n.error("could not find previous directory")}else{t=process.env.OLDPWD}}try{var r=process.cwd();process.chdir(t);process.env.OLDPWD=r}catch(e){var o;try{n.statFollowLinks(t);o="not a directory: "+t}catch(e){o="no such file or directory: "+t}if(o)n.error(o)}return""}e.exports=_cd},2374:(e,t,r)=>{var s=r(700);var n=r(7147);var o=r(1017);var i=function(e){return{OTHER_EXEC:e.EXEC,OTHER_WRITE:e.WRITE,OTHER_READ:e.READ,GROUP_EXEC:e.EXEC<<3,GROUP_WRITE:e.WRITE<<3,GROUP_READ:e.READ<<3,OWNER_EXEC:e.EXEC<<6,OWNER_WRITE:e.WRITE<<6,OWNER_READ:e.READ<<6,STICKY:parseInt("01000",8),SETGID:parseInt("02000",8),SETUID:parseInt("04000",8),TYPE_MASK:parseInt("0770000",8)}}({EXEC:1,WRITE:2,READ:4});s.register("chmod",_chmod,{});function _chmod(e,t,r){if(!r){if(e.length>0&&e.charAt(0)==="-"){[].unshift.call(arguments,"")}else{s.error("You must specify a file.")}}e=s.parseOptions(e,{R:"recursive",c:"changes",v:"verbose"});r=[].slice.call(arguments,2);var a;if(e.recursive){a=[];r.forEach((function addFile(e){var t=s.statNoFollowLinks(e);if(!t.isSymbolicLink()){a.push(e);if(t.isDirectory()){n.readdirSync(e).forEach((function(t){addFile(e+"/"+t)}))}}}))}else{a=r}a.forEach((function innerChmod(r){r=o.resolve(r);if(!n.existsSync(r)){s.error("File not found: "+r)}if(e.recursive&&s.statNoFollowLinks(r).isSymbolicLink()){return}var a=s.statFollowLinks(r);var c=a.isDirectory();var u=a.mode;var l=u&i.TYPE_MASK;var p=u;if(isNaN(parseInt(t,8))){t.split(",").forEach((function(t){var o=/([ugoa]*)([=\+-])([rwxXst]*)/i;var a=o.exec(t);if(a){var d=a[1];var h=a[2];var m=a[3];var g=d.indexOf("u")!==-1||d==="a"||d==="";var E=d.indexOf("g")!==-1||d==="a"||d==="";var v=d.indexOf("o")!==-1||d==="a"||d==="";var y=m.indexOf("r")!==-1;var _=m.indexOf("w")!==-1;var b=m.indexOf("x")!==-1;var w=m.indexOf("X")!==-1;var T=m.indexOf("t")!==-1;var S=m.indexOf("s")!==-1;if(w&&c){b=true}var O=0;if(g){O|=(y?i.OWNER_READ:0)+(_?i.OWNER_WRITE:0)+(b?i.OWNER_EXEC:0)+(S?i.SETUID:0)}if(E){O|=(y?i.GROUP_READ:0)+(_?i.GROUP_WRITE:0)+(b?i.GROUP_EXEC:0)+(S?i.SETGID:0)}if(v){O|=(y?i.OTHER_READ:0)+(_?i.OTHER_WRITE:0)+(b?i.OTHER_EXEC:0)}if(T){O|=i.STICKY}switch(h){case"+":p|=O;break;case"-":p&=~O;break;case"=":p=l+O;if(s.statFollowLinks(r).isDirectory()){p|=i.SETUID+i.SETGID&u}break;default:s.error("Could not recognize operator: `"+h+"`")}if(e.verbose){console.log(r+" -> "+p.toString(8))}if(u!==p){if(!e.verbose&&e.changes){console.log(r+" -> "+p.toString(8))}n.chmodSync(r,p);u=p}}else{s.error("Invalid symbolic mode change: "+t)}}))}else{p=l+parseInt(t,8);if(s.statFollowLinks(r).isDirectory()){p|=i.SETUID+i.SETGID&u}n.chmodSync(r,p)}}));return""}e.exports=_chmod},700:(e,t,r)=>{"use strict";var s=r(2037);var n=r(7147);var o=r(1661);var i=r(2568);var a=Object.create(i);t.extend=Object.assign;var c=Boolean(process.versions.electron);var u={fatal:false,globOptions:{},maxdepth:255,noglob:false,silent:false,verbose:false,execPath:null,bufLength:64*1024};var l={reset:function(){Object.assign(this,u);if(!c){this.execPath=process.execPath}},resetForTesting:function(){this.reset();this.silent=true}};l.reset();t.config=l;var p={error:null,errorCode:0,currentCmd:"shell.js"};t.state=p;delete process.env.OLDPWD;function isObject(e){return typeof e==="object"&&e!==null}t.isObject=isObject;function log(){if(!l.silent){console.error.apply(console,arguments)}}t.log=log;function convertErrorOutput(e){if(typeof e!=="string"){throw new TypeError("input must be a string")}return e.replace(/\\/g,"/")}t.convertErrorOutput=convertErrorOutput;function error(e,t,r){if(typeof e!=="string")throw new Error("msg must be a string");var s={continue:false,code:1,prefix:p.currentCmd+": ",silent:false};if(typeof t==="number"&&isObject(r)){r.code=t}else if(isObject(t)){r=t}else if(typeof t==="number"){r={code:t}}else if(typeof t!=="number"){r={}}r=Object.assign({},s,r);if(!p.errorCode)p.errorCode=r.code;var n=convertErrorOutput(r.prefix+e);p.error=p.error?p.error+"\n":"";p.error+=n;if(l.fatal)throw new Error(n);if(e.length>0&&!r.silent)log(n);if(!r.continue){throw{msg:"earlyExit",retValue:new ShellString("",p.error,p.errorCode)}}}t.error=error;function ShellString(e,t,r){var s;if(e instanceof Array){s=e;s.stdout=e.join("\n");if(e.length>0)s.stdout+="\n"}else{s=new String(e);s.stdout=e}s.stderr=t;s.code=r;m.forEach((function(e){s[e]=a[e].bind(s)}));return s}t.ShellString=ShellString;function parseOptions(e,t,r){if(typeof e!=="string"&&!isObject(e)){throw new Error("options must be strings or key-value pairs")}else if(!isObject(t)){throw new Error("parseOptions() internal error: map must be an object")}else if(r&&!isObject(r)){throw new Error("parseOptions() internal error: errorOptions must be object")}if(e==="--"){return{}}var s={};Object.keys(t).forEach((function(e){var r=t[e];if(r[0]!=="!"){s[r]=false}}));if(e==="")return s;if(typeof e==="string"){if(e[0]!=="-"){throw new Error("Options string must start with a '-'")}var n=e.slice(1).split("");n.forEach((function(e){if(e in t){var n=t[e];if(n[0]==="!"){s[n.slice(1)]=false}else{s[n]=true}}else{error("option not recognized: "+e,r||{})}}))}else{Object.keys(e).forEach((function(n){var o=n[1];if(o in t){var i=t[o];s[i]=e[n]}else{error("option not recognized: "+o,r||{})}}))}return s}t.parseOptions=parseOptions;function expand(e){if(!Array.isArray(e)){throw new TypeError("must be an array")}var t=[];e.forEach((function(e){if(typeof e!=="string"){t.push(e)}else{var r;try{r=o.sync(e,l.globOptions);r=r.length>0?r:[e]}catch(t){r=[e]}t=t.concat(r)}}));return t}t.expand=expand;var d=typeof Buffer.alloc==="function"?function(e){return Buffer.alloc(e||l.bufLength)}:function(e){return new Buffer(e||l.bufLength)};t.buffer=d;function unlinkSync(e){try{n.unlinkSync(e)}catch(t){if(t.code==="EPERM"){n.chmodSync(e,"0666");n.unlinkSync(e)}else{throw t}}}t.unlinkSync=unlinkSync;function statFollowLinks(){return n.statSync.apply(n,arguments)}t.statFollowLinks=statFollowLinks;function statNoFollowLinks(){return n.lstatSync.apply(n,arguments)}t.statNoFollowLinks=statNoFollowLinks;function randomFileName(){function randomHash(e){if(e===1){return parseInt(16*Math.random(),10).toString(16)}var t="";for(var r=0;r{var s=r(7147);var n=r(1017);var o=r(700);o.register("cp",_cp,{cmdOptions:{f:"!no_force",n:"no_force",u:"update",R:"recursive",r:"recursive",L:"followsymlink",P:"noFollowsymlink"},wrapOutput:false});function copyFileSync(e,t,r){if(!s.existsSync(e)){o.error("copyFileSync: no such file or directory: "+e)}var n=process.platform==="win32";try{if(r.update&&o.statFollowLinks(e).mtime=o.config.maxdepth)return;r++;var i=process.platform==="win32";try{s.mkdirSync(t)}catch(e){if(e.code!=="EEXIST")throw e}var a=s.readdirSync(e);for(var c=0;c and/or ")}else{t=[].slice.call(arguments,1,arguments.length-1);r=arguments[arguments.length-1]}var i=s.existsSync(r);var a=i&&o.statFollowLinks(r);if((!i||!a.isDirectory())&&t.length>1){o.error("dest is not a directory (too many sources)")}if(i&&a.isFile()&&e.no_force){return new o.ShellString("","",0)}t.forEach((function(i,c){if(!s.existsSync(i)){if(i==="")i="''";o.error("no such file or directory: "+i,{continue:true});return}var u=o.statFollowLinks(i);if(!e.noFollowsymlink&&u.isDirectory()){if(!e.recursive){o.error("omitting directory '"+i+"'",{continue:true})}else{var l=a&&a.isDirectory()?n.join(r,n.basename(i)):r;try{o.statFollowLinks(n.dirname(r));cpdirSyncRecursive(i,l,0,{no_force:e.no_force,followsymlink:e.followsymlink})}catch(e){o.error("cannot create directory '"+r+"': No such file or directory")}}}else{var p=r;if(a&&a.isDirectory()){p=n.normalize(r+"/"+n.basename(i))}var d=s.existsSync(p);if(d&&checkRecentCreated(t,c)){if(!e.no_force){o.error("will not overwrite just-created '"+p+"' with '"+i+"'",{continue:true})}return}if(d&&e.no_force){return}if(n.relative(i,p)===""){o.error("'"+p+"' and '"+i+"' are the same file",{continue:true});return}copyFileSync(i,p,e)}}));return new o.ShellString("",o.state.error,o.state.errorCode)}e.exports=_cp},7346:(e,t,r)=>{var s=r(700);var n=r(6086);var o=r(1017);s.register("dirs",_dirs,{wrapOutput:false});s.register("pushd",_pushd,{wrapOutput:false});s.register("popd",_popd,{wrapOutput:false});var i=[];function _isStackIndex(e){return/^[\-+]\d+$/.test(e)}function _parseStackIndex(e){if(_isStackIndex(e)){if(Math.abs(e)1){r=r.splice(1,1).concat(r)}else{return s.error("no other directory")}}else if(_isStackIndex(t)){var a=_parseStackIndex(t);r=r.slice(a).concat(r.slice(0,a))}else{if(e["no-cd"]){r.splice(1,0,t)}else{r.unshift(t)}}if(e["no-cd"]){r=r.slice(1)}else{t=o.resolve(r.shift());n("",t)}i=r;return _dirs(e.quiet?"-q":"")}t.pushd=_pushd;function _popd(e,t){if(_isStackIndex(e)){t=e;e=""}e=s.parseOptions(e,{n:"no-cd",q:"quiet"});if(!i.length){return s.error("directory stack empty")}t=_parseStackIndex(t||"+0");if(e["no-cd"]||t>0||i.length+t===0){t=t>0?t-1:t;i.splice(t,1)}else{var r=o.resolve(i.shift());n("",r)}return _dirs(e.quiet?"-q":"")}t.popd=_popd;function _dirs(e,t){if(_isStackIndex(e)){t=e;e=""}e=s.parseOptions(e,{c:"clear",q:"quiet"});if(e.clear){i=[];return i}var r=_actualDirStack();if(t){t=_parseStackIndex(t);if(t<0){t=r.length+t}if(!e.quiet){s.log(r[t])}return r[t]}if(!e.quiet){s.log(r.join(" "))}return r}t.dirs=_dirs},7724:(e,t,r)=>{var s=r(3837).format;var n=r(700);n.register("echo",_echo,{allowGlobbing:false});function _echo(e){var t=[].slice.call(arguments,e?0:1);var r={};try{r=n.parseOptions(t[0],{e:"escapes",n:"no_newline"},{silent:true});if(t[0]){t.shift()}}catch(e){n.state.error=null}var o=s.apply(null,t);if(!r.no_newline){o+="\n"}process.stdout.write(o);return o}e.exports=_echo},5321:(e,t,r)=>{var s=r(700);function error(){return s.state.error}e.exports=error},7110:(e,t,r)=>{e=r.nmd(e);if(require.main!==e){throw new Error("This file should not be required")}var s=r(2081);var n=r(7147);var o=process.argv[2];var i=n.readFileSync(o,"utf8");var a=JSON.parse(i);var c=a.command;var u=a.execOptions;var l=a.pipe;var p=a.stdoutFile;var d=a.stderrFile;var h=s.exec(c,u,(function(e){if(!e){process.exitCode=0}else if(e.code===undefined){process.exitCode=1}else{process.exitCode=e.code}}));var m=n.createWriteStream(p);var g=n.createWriteStream(d);h.stdout.pipe(m);h.stderr.pipe(g);h.stdout.pipe(process.stdout);h.stderr.pipe(process.stderr);if(l){h.stdin.end(l)}},5702:(e,t,r)=>{var s=r(700);var n=r(2074).tempDir;var o=r(9015);var i=r(1017);var a=r(7147);var c=r(2081);var u=20*1024*1024;var l=1;s.register("exec",_exec,{unix:false,canReceivePipe:true,wrapOutput:false});function execSync(e,t,p){if(!s.config.execPath){s.error("Unable to find a path to the node binary. Please manually set config.execPath")}var d=n();var h=i.resolve(d+"/"+s.randomFileName());var m=i.resolve(d+"/"+s.randomFileName());var g=i.resolve(d+"/"+s.randomFileName());t=s.extend({silent:s.config.silent,cwd:o().toString(),env:process.env,maxBuffer:u,encoding:"utf8"},t);if(a.existsSync(h))s.unlinkSync(h);if(a.existsSync(m))s.unlinkSync(m);if(a.existsSync(g))s.unlinkSync(g);t.cwd=i.resolve(t.cwd);var E={command:e,execOptions:t,pipe:p,stdoutFile:g,stderrFile:m};function writeFileLockedDown(e,t){a.writeFileSync(e,t,{encoding:"utf8",mode:parseInt("600",8)})}writeFileLockedDown(g,"");writeFileLockedDown(m,"");writeFileLockedDown(h,JSON.stringify(E));var v=[r.ab+"exec-child.js",h];if(t.silent){t.stdio="ignore"}else{t.stdio=[0,1,2]}var y=0;try{delete t.shell;c.execFileSync(s.config.execPath,v,t)}catch(e){y=e.status||l}var _="";var b="";if(t.encoding==="buffer"){_=a.readFileSync(g);b=a.readFileSync(m)}else{_=a.readFileSync(g,t.encoding);b=a.readFileSync(m,t.encoding)}try{s.unlinkSync(h)}catch(e){}try{s.unlinkSync(m)}catch(e){}try{s.unlinkSync(g)}catch(e){}if(y!==0){s.error(b,y,{continue:true,silent:true})}var w=s.ShellString(_,b,y);return w}function execAsync(e,t,r,n){t=s.extend({silent:s.config.silent,cwd:o().toString(),env:process.env,maxBuffer:u,encoding:"utf8"},t);var i=c.exec(e,t,(function(e,t,r){if(n){if(!e){n(0,t,r)}else if(e.code===undefined){n(1,t,r)}else{n(e.code,t,r)}}}));if(r)i.stdin.end(r);if(!t.silent){i.stdout.pipe(process.stdout);i.stderr.pipe(process.stderr)}return i}function _exec(e,t,r){t=t||{};if(!e)s.error("must specify command");var n=s.readFromPipe();if(typeof t==="function"){r=t;t={async:true}}if(typeof t==="object"&&typeof r==="function"){t.async=true}t=s.extend({silent:s.config.silent,async:false},t);if(t.async){return execAsync(e,t,n,r)}else{return execSync(e,t,n)}}e.exports=_exec},1403:(e,t,r)=>{var s=r(1017);var n=r(700);var o=r(3090);n.register("find",_find,{});function _find(e,t){if(!t){n.error("no path specified")}else if(typeof t==="string"){t=[].slice.call(arguments,1)}var r=[];function pushFile(e){if(process.platform==="win32"){e=e.replace(/\\/g,"/")}r.push(e)}t.forEach((function(e){var t;try{t=n.statFollowLinks(e)}catch(t){n.error("no such file or directory: "+e)}pushFile(e);if(t.isDirectory()){o({recursive:true,all:true},e).forEach((function(t){pushFile(s.join(e,t))}))}}));return r}e.exports=_find},5186:(e,t,r)=>{var s=r(700);var n=r(7147);s.register("grep",_grep,{globStart:2,canReceivePipe:true,cmdOptions:{v:"inverse",l:"nameOnly",i:"ignoreCase"}});function _grep(e,t,r){var o=s.readFromPipe();if(!r&&!o)s.error("no paths given",2);r=[].slice.call(arguments,2);if(o){r.unshift("-")}var i=[];if(e.ignoreCase){t=new RegExp(t,"i")}r.forEach((function(r){if(!n.existsSync(r)&&r!=="-"){s.error("no such file or directory: "+r,2,{continue:true});return}var a=r==="-"?o:n.readFileSync(r,"utf8");if(e.nameOnly){if(a.match(t)){i.push(r)}}else{var c=a.split("\n");c.forEach((function(r){var s=r.match(t);if(e.inverse&&!s||!e.inverse&&s){i.push(r)}}))}}));return i.join("\n")+"\n"}e.exports=_grep},4240:(e,t,r)=>{var s=r(700);var n=r(7147);s.register("head",_head,{canReceivePipe:true,cmdOptions:{n:"numLines"}});function readSomeLines(e,t){var r=s.buffer();var o=r.length;var i=o;var a=0;var c=n.openSync(e,"r");var u=0;var l="";while(i===o&&u{var s=r(7147);var n=r(1017);var o=r(700);o.register("ln",_ln,{cmdOptions:{s:"symlink",f:"force"}});function _ln(e,t,r){if(!t||!r){o.error("Missing and/or ")}t=String(t);var i=n.normalize(t).replace(RegExp(n.sep+"$"),"");var a=n.resolve(t)===i;r=n.resolve(process.cwd(),String(r));if(s.existsSync(r)){if(!e.force){o.error("Destination file exists",{continue:true})}s.unlinkSync(r)}if(e.symlink){var c=process.platform==="win32";var u=c?"file":null;var l=a?i:n.resolve(process.cwd(),n.dirname(r),t);if(!s.existsSync(l)){o.error("Source file does not exist",{continue:true})}else if(c&&o.statFollowLinks(l).isDirectory()){u="junction"}try{s.symlinkSync(u==="junction"?l:t,r,u)}catch(e){o.error(e.message)}}else{if(!s.existsSync(t)){o.error("Source file does not exist",{continue:true})}try{s.linkSync(t,r)}catch(e){o.error(e.message)}}return""}e.exports=_ln},3090:(e,t,r)=>{var s=r(1017);var n=r(7147);var o=r(700);var i=r(1661);var a=s.sep+"**";o.register("ls",_ls,{cmdOptions:{R:"recursive",A:"all",L:"link",a:"all_deprecated",d:"directory",l:"long"}});function _ls(e,t){if(e.all_deprecated){o.log("ls: Option -a is deprecated. Use -A instead");e.all=true}if(!t){t=["."]}else{t=[].slice.call(arguments,1)}var r=[];function pushFile(t,s,n){if(process.platform==="win32"){s=s.replace(/\\/g,"/")}if(e.long){n=n||(e.link?o.statFollowLinks(t):o.statNoFollowLinks(t));r.push(addLsAttributes(s,n))}else{r.push(s)}}t.forEach((function(t){var r;try{r=e.link?o.statFollowLinks(t):o.statNoFollowLinks(t);if(r.isSymbolicLink()){try{var c=o.statFollowLinks(t);if(c.isDirectory()){r=c}}catch(e){}}}catch(e){o.error("no such file or directory: "+t,2,{continue:true});return}if(r.isDirectory()&&!e.directory){if(e.recursive){i.sync(t+a,{dot:e.all,follow:e.link}).forEach((function(e){if(s.relative(t,e)){pushFile(e,s.relative(t,e))}}))}else if(e.all){n.readdirSync(t).forEach((function(e){pushFile(s.join(t,e),e)}))}else{n.readdirSync(t).forEach((function(e){if(e[0]!=="."){pushFile(s.join(t,e),e)}}))}}else{pushFile(t,t,r)}}));return r}function addLsAttributes(e,t){t.name=e;t.toString=function(){return[this.mode,this.nlink,this.uid,this.gid,this.size,this.mtime,this.name].join(" ")};return t}e.exports=_ls},807:(e,t,r)=>{var s=r(700);var n=r(7147);var o=r(1017);s.register("mkdir",_mkdir,{cmdOptions:{p:"fullpath"}});function mkdirSyncRecursive(e){var t=o.dirname(e);if(t===e){s.error("dirname() failed: ["+e+"]")}if(n.existsSync(t)){n.mkdirSync(e,parseInt("0777",8));return}mkdirSyncRecursive(t);n.mkdirSync(e,parseInt("0777",8))}function _mkdir(e,t){if(!t)s.error("no paths given");if(typeof t==="string"){t=[].slice.call(arguments,1)}t.forEach((function(t){try{var r=s.statNoFollowLinks(t);if(!e.fullpath){s.error("path already exists: "+t,{continue:true})}else if(r.isFile()){s.error("cannot create directory "+t+": File exists",{continue:true})}return}catch(e){}var i=o.dirname(t);if(!n.existsSync(i)&&!e.fullpath){s.error("no such file or directory: "+i,{continue:true});return}try{if(e.fullpath){mkdirSyncRecursive(o.resolve(t))}else{n.mkdirSync(t,parseInt("0777",8))}}catch(e){var a;if(e.code==="EACCES"){a="Permission denied"}else if(e.code==="ENOTDIR"||e.code==="ENOENT"){a="Not a directory"}else{throw e}s.error("cannot create directory "+t+": "+a,{continue:true})}}));return""}e.exports=_mkdir},8696:(e,t,r)=>{var s=r(7147);var n=r(1017);var o=r(700);var i=r(8566);var a=r(8287);o.register("mv",_mv,{cmdOptions:{f:"!no_force",n:"no_force"}});function checkRecentCreated(e,t){var r=e[t];return e.slice(0,t).some((function(e){return n.basename(e)===n.basename(r)}))}function _mv(e,t,r){if(arguments.length<3){o.error("missing and/or ")}else if(arguments.length>3){t=[].slice.call(arguments,1,arguments.length-1);r=arguments[arguments.length-1]}else if(typeof t==="string"){t=[t]}else{o.error("invalid arguments")}var c=s.existsSync(r);var u=c&&o.statFollowLinks(r);if((!c||!u.isDirectory())&&t.length>1){o.error("dest is not a directory (too many sources)")}if(c&&u.isFile()&&e.no_force){o.error("dest file already exists: "+r)}t.forEach((function(c,u){if(!s.existsSync(c)){o.error("no such file or directory: "+c,{continue:true});return}var l=r;if(s.existsSync(r)&&o.statFollowLinks(r).isDirectory()){l=n.normalize(r+"/"+n.basename(c))}var p=s.existsSync(l);if(p&&checkRecentCreated(t,u)){if(!e.no_force){o.error("will not overwrite just-created '"+l+"' with '"+c+"'",{continue:true})}return}if(s.existsSync(l)&&e.no_force){o.error("dest file already exists: "+l,{continue:true});return}if(n.resolve(c)===n.dirname(n.resolve(l))){o.error("cannot move to self: "+c,{continue:true});return}try{s.renameSync(c,l)}catch(e){if(e.code==="EXDEV"){i("-r",c,l);a("-rf",c)}}}));return""}e.exports=_mv},9253:()=>{},7935:()=>{},9015:(e,t,r)=>{var s=r(1017);var n=r(700);n.register("pwd",_pwd,{allowGlobbing:false});function _pwd(){var e=s.resolve(process.cwd());return e}e.exports=_pwd},8287:(e,t,r)=>{var s=r(700);var n=r(7147);s.register("rm",_rm,{cmdOptions:{f:"force",r:"recursive",R:"recursive"}});function rmdirSyncRecursive(e,t,r){var o;o=n.readdirSync(e);for(var i=0;i1e3)throw e}else if(e.code==="ENOENT"){break}else{throw e}}}}catch(t){s.error("could not remove directory (code "+t.code+"): "+e,{continue:true})}return u}function isWriteable(e){var t=true;try{var r=n.openSync(e,"a");n.closeSync(r)}catch(e){t=false}return t}function handleFile(e,t){if(t.force||isWriteable(e)){s.unlinkSync(e)}else{s.error("permission denied: "+e,{continue:true})}}function handleDirectory(e,t){if(t.recursive){rmdirSyncRecursive(e,t.force)}else{s.error("path is a directory",{continue:true})}}function handleSymbolicLink(e,t){var r;try{r=s.statFollowLinks(e)}catch(t){s.unlinkSync(e);return}if(r.isFile()){s.unlinkSync(e)}else if(r.isDirectory()){if(e[e.length-1]==="/"){if(t.recursive){var n=true;rmdirSyncRecursive(e,t.force,n)}else{s.error("path is a directory",{continue:true})}}else{s.unlinkSync(e)}}}function handleFIFO(e){s.unlinkSync(e)}function _rm(e,t){if(!t)s.error("no paths given");t=[].slice.call(arguments,1);t.forEach((function(t){var r;try{var n=t[t.length-1]==="/"?t.slice(0,-1):t;r=s.statNoFollowLinks(n)}catch(r){if(!e.force){s.error("no such file or directory: "+t,{continue:true})}return}if(r.isFile()){handleFile(t,e)}else if(r.isDirectory()){handleDirectory(t,e)}else if(r.isSymbolicLink()){handleSymbolicLink(t,e)}else if(r.isFIFO()){handleFIFO(t)}}));return""}e.exports=_rm},5759:(e,t,r)=>{var s=r(700);var n=r(7147);s.register("sed",_sed,{globStart:3,canReceivePipe:true,cmdOptions:{i:"inplace"}});function _sed(e,t,r,o){var i=s.readFromPipe();if(typeof r!=="string"&&typeof r!=="function"){if(typeof r==="number"){r=r.toString()}else{s.error("invalid replacement string")}}if(typeof t==="string"){t=RegExp(t)}if(!o&&!i){s.error("no files given")}o=[].slice.call(arguments,3);if(i){o.unshift("-")}var a=[];o.forEach((function(o){if(!n.existsSync(o)&&o!=="-"){s.error("no such file or directory: "+o,2,{continue:true});return}var c=o==="-"?i:n.readFileSync(o,"utf8");var u=c.split("\n");var l=u.map((function(e){return e.replace(t,r)})).join("\n");a.push(l);if(e.inplace){n.writeFileSync(o,l,"utf8")}}));return a.join("\n")}e.exports=_sed},3277:(e,t,r)=>{var s=r(700);s.register("set",_set,{allowGlobbing:false,wrapOutput:false});function _set(e){if(!e){var t=[].slice.call(arguments,0);if(t.length<2)s.error("must provide an argument");e=t[1]}var r=e[0]==="+";if(r){e="-"+e.slice(1)}e=s.parseOptions(e,{e:"fatal",v:"verbose",f:"noglob"});if(r){Object.keys(e).forEach((function(t){e[t]=!e[t]}))}Object.keys(e).forEach((function(t){if(r!==e[t]){s.config[t]=e[t]}}));return}e.exports=_set},8925:(e,t,r)=>{var s=r(700);var n=r(7147);s.register("sort",_sort,{canReceivePipe:true,cmdOptions:{r:"reverse",n:"numerical"}});function parseNumber(e){var t=e.match(/^\s*(\d*)\s*(.*)$/);return{num:Number(t[1]),value:t[2]}}function unixCmp(e,t){var r=e.toLowerCase();var s=t.toLowerCase();return r===s?-1*e.localeCompare(t):r.localeCompare(s)}function numericalCmp(e,t){var r=parseNumber(e);var s=parseNumber(t);if(r.hasOwnProperty("num")&&s.hasOwnProperty("num")){return r.num!==s.num?r.num-s.num:unixCmp(r.value,s.value)}else{return unixCmp(r.value,s.value)}}function _sort(e,t){var r=s.readFromPipe();if(!t&&!r)s.error("no files given");t=[].slice.call(arguments,1);if(r){t.unshift("-")}var o=t.reduce((function(e,t){if(t!=="-"){if(!n.existsSync(t)){s.error("no such file or directory: "+t,{continue:true});return e}else if(s.statFollowLinks(t).isDirectory()){s.error("read failed: "+t+": Is a directory",{continue:true});return e}}var o=t==="-"?r:n.readFileSync(t,"utf8");return e.concat(o.trimRight().split("\n"))}),[]);var i=o.sort(e.numerical?numericalCmp:unixCmp);if(e.reverse){i=i.reverse()}return i.join("\n")+"\n"}e.exports=_sort},3781:(e,t,r)=>{var s=r(700);var n=r(7147);s.register("tail",_tail,{canReceivePipe:true,cmdOptions:{n:"numLines"}});function _tail(e,t){var r=[];var o=s.readFromPipe();if(!t&&!o)s.error("no paths given");var i=1;if(e.numLines===true){i=2;e.numLines=Number(arguments[1])}else if(e.numLines===false){e.numLines=10}e.numLines=-1*Math.abs(e.numLines);t=[].slice.call(arguments,i);if(o){t.unshift("-")}var a=false;t.forEach((function(t){if(t!=="-"){if(!n.existsSync(t)){s.error("no such file or directory: "+t,{continue:true});return}else if(s.statFollowLinks(t).isDirectory()){s.error("error reading '"+t+"': Is a directory",{continue:true});return}}var i=t==="-"?o:n.readFileSync(t,"utf8");var c=i.split("\n");if(c[c.length-1]===""){c.pop();a=true}else{a=false}r=r.concat(c.slice(e.numLines))}));if(a){r.push("")}return r.join("\n")}e.exports=_tail},2074:(e,t,r)=>{var s=r(700);var n=r(2037);var o=r(7147);s.register("tempdir",_tempDir,{allowGlobbing:false,wrapOutput:false});function writeableDir(e){if(!e||!o.existsSync(e))return false;if(!s.statFollowLinks(e).isDirectory())return false;var t=e+"/"+s.randomFileName();try{o.writeFileSync(t," ");s.unlinkSync(t);return e}catch(e){return false}}var i;function _tempDir(){if(i)return i;i=writeableDir(n.tmpdir())||writeableDir(process.env.TMPDIR)||writeableDir(process.env.TEMP)||writeableDir(process.env.TMP)||writeableDir(process.env.Wimp$ScrapDir)||writeableDir("C:\\TEMP")||writeableDir("C:\\TMP")||writeableDir("\\TEMP")||writeableDir("\\TMP")||writeableDir("/tmp")||writeableDir("/var/tmp")||writeableDir("/usr/tmp")||writeableDir(".");return i}function isCached(){return i}function clearCache(){i=undefined}e.exports.tempDir=_tempDir;e.exports.isCached=isCached;e.exports.clearCache=clearCache},5572:(e,t,r)=>{var s=r(700);var n=r(7147);s.register("test",_test,{cmdOptions:{b:"block",c:"character",d:"directory",e:"exists",f:"file",L:"link",p:"pipe",S:"socket"},wrapOutput:false,allowGlobbing:false});function _test(e,t){if(!t)s.error("no path given");var r=false;Object.keys(e).forEach((function(t){if(e[t]===true){r=true}}));if(!r)s.error("could not interpret expression");if(e.link){try{return s.statNoFollowLinks(t).isSymbolicLink()}catch(e){return false}}if(!n.existsSync(t))return false;if(e.exists)return true;var o=s.statFollowLinks(t);if(e.block)return o.isBlockDevice();if(e.character)return o.isCharacterDevice();if(e.directory)return o.isDirectory();if(e.file)return o.isFile();if(e.pipe)return o.isFIFO();if(e.socket)return o.isSocket();return false}e.exports=_test},7328:(e,t,r)=>{var s=r(700);var n=r(7147);var o=r(1017);s.register("to",_to,{pipeOnly:true,wrapOutput:false});function _to(e,t){if(!t)s.error("wrong arguments");if(!n.existsSync(o.dirname(t))){s.error("no such file or directory: "+o.dirname(t))}try{n.writeFileSync(t,this.stdout||this.toString(),"utf8");return this}catch(e){s.error("could not write to file (code "+e.code+"): "+t,{continue:true})}}e.exports=_to},9066:(e,t,r)=>{var s=r(700);var n=r(7147);var o=r(1017);s.register("toEnd",_toEnd,{pipeOnly:true,wrapOutput:false});function _toEnd(e,t){if(!t)s.error("wrong arguments");if(!n.existsSync(o.dirname(t))){s.error("no such file or directory: "+o.dirname(t))}try{n.appendFileSync(t,this.stdout||this.toString(),"utf8");return this}catch(e){s.error("could not append to file (code "+e.code+"): "+t,{continue:true})}}e.exports=_toEnd},8080:(e,t,r)=>{var s=r(700);var n=r(7147);s.register("touch",_touch,{cmdOptions:{a:"atime_only",c:"no_create",d:"date",m:"mtime_only",r:"reference"}});function _touch(e,t){if(!t){s.error("no files given")}else if(typeof t==="string"){t=[].slice.call(arguments,1)}else{s.error("file arg should be a string file path or an Array of string file paths")}t.forEach((function(t){touchFile(e,t)}));return""}function touchFile(e,t){var r=tryStatFile(t);if(r&&r.isDirectory()){return}if(!r&&e.no_create){return}n.closeSync(n.openSync(t,"a"));var o=new Date;var i=e.date||o;var a=e.date||o;if(e.reference){var c=tryStatFile(e.reference);if(!c){s.error("failed to get attributess of "+e.reference)}i=c.mtime;a=c.atime}else if(e.date){i=e.date;a=e.date}if(e.atime_only&&e.mtime_only){}else if(e.atime_only){i=r.mtime}else if(e.mtime_only){a=r.atime}n.utimesSync(t,a,i)}e.exports=_touch;function tryStatFile(e){try{return s.statFollowLinks(e)}catch(e){return null}}},7236:(e,t,r)=>{var s=r(700);var n=r(7147);function lpad(e,t){var r=""+t;if(r.length1:true})).map((function(t){return(e.count?lpad(7,t.count)+" ":"")+t.ln})).join("\n")+"\n";if(r){new s.ShellString(a).to(r);return""}else{return a}}e.exports=_uniq},7361:(e,t,r)=>{var s=r(700);var n=r(7147);var o=r(1017);s.register("which",_which,{allowGlobbing:false,cmdOptions:{a:"all"}});var i=".com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh";var a=1;function isWindowsPlatform(){return process.platform==="win32"}function splitPath(e){return e?e.split(o.delimiter):[]}function isExecutable(e){try{n.accessSync(e,a)}catch(e){return false}return true}function checkPath(e){return n.existsSync(e)&&!s.statFollowLinks(e).isDirectory()&&(isWindowsPlatform()||isExecutable(e))}function _which(e,t){if(!t)s.error("must specify command");var r=isWindowsPlatform();var n=splitPath(process.env.PATH);var a=[];if(t.indexOf("/")===-1){var c=[""];if(r){var u=process.env.PATHEXT||i;c=splitPath(u.toUpperCase())}for(var l=0;l0&&!e.all)break;var p=o.resolve(n[l],t);if(r){p=p.toUpperCase()}var d=p.match(/\.[^<>:"/\|?*.]+$/);if(d&&c.indexOf(d[0])>=0){if(checkPath(p)){a.push(p);break}}else{for(var h=0;h0){return e.all?a:a[0]}return e.all?[]:null}e.exports=_which},7513:(e,t,r)=>{"use strict"; /*! * to-regex-range * * Copyright (c) 2015-present, Jon Schlinkert. * Released under the MIT License. - */const s=r(7378);const toRegexRange=(e,t,r)=>{if(s(e)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(t===void 0||e===t){return String(e)}if(s(t)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let n={relaxZeros:true,...r};if(typeof n.strictZeros==="boolean"){n.relaxZeros=n.strictZeros===false}let o=String(n.relaxZeros);let i=String(n.shorthand);let a=String(n.capture);let c=String(n.wrap);let u=e+":"+t+"="+o+i+a+c;if(toRegexRange.cache.hasOwnProperty(u)){return toRegexRange.cache[u].result}let l=Math.min(e,t);let p=Math.max(e,t);if(Math.abs(l-p)===1){let r=e+"|"+t;if(n.capture){return`(${r})`}if(n.wrap===false){return r}return`(?:${r})`}let d=hasPadding(e)||hasPadding(t);let h={min:e,max:t,a:l,b:p};let m=[];let g=[];if(d){h.isPadded=d;h.maxLen=String(h.max).length}if(l<0){let e=p<0?Math.abs(p):1;g=splitToPatterns(e,Math.abs(l),h,n);l=h.a=0}if(p>=0){m=splitToPatterns(l,p,h,n)}h.negatives=g;h.positives=m;h.result=collatePatterns(g,m,n);if(n.capture===true){h.result=`(${h.result})`}else if(n.wrap!==false&&m.length+g.length>1){h.result=`(?:${h.result})`}toRegexRange.cache[u]=h;return h.result};function collatePatterns(e,t,r){let s=filterPatterns(e,t,"-",false,r)||[];let n=filterPatterns(t,e,"",false,r)||[];let o=filterPatterns(e,t,"-?",true,r)||[];let i=s.concat(o).concat(n);return i.join("|")}function splitToRanges(e,t){let r=1;let s=1;let n=countNines(e,r);let o=new Set([t]);while(e<=n&&n<=t){o.add(n);r+=1;n=countNines(e,r)}n=countZeros(t+1,s)-1;while(e1){a.count.pop()}a.count.push(c.count[0]);a.string=a.pattern+toQuantifier(a.count);i=t+1;continue}if(r.isPadded){u=padZeros(t,r,s)}c.string=u+c.pattern+toQuantifier(c.count);o.push(c);i=t+1;a=c}return o}function filterPatterns(e,t,r,s,n){let o=[];for(let n of e){let{string:e}=n;if(!s&&!contains(t,"string",e)){o.push(r+e)}if(s&&contains(t,"string",e)){o.push(r+e)}}return o}function zip(e,t){let r=[];for(let s=0;st?1:t>e?-1:0}function contains(e,t,r){return e.some((e=>e[t]===r))}function countNines(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){let[t=0,r=""]=e;if(r||t>1){return`{${t+(r?","+r:"")}}`}return""}function toCharacterClass(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function hasPadding(e){return/^-?(0+)\d/.test(e)}function padZeros(e,t,r){if(!t.isPadded){return e}let s=Math.abs(t.maxLen-String(e).length);let n=r.relaxZeros!==false;switch(s){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:{return n?`0{0,${s}}`:`0{${s}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};e.exports=toRegexRange},4225:(e,t,r)=>{e.exports=r(4030)},4030:(e,t,r)=>{"use strict";var s=r(1808);var n=r(4404);var o=r(3685);var i=r(5687);var a=r(2361);var c=r(9491);var u=r(3837);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,s,n){var o=toOptions(r,s,n);for(var i=0,a=t.requests.length;i=this.maxSockets){n.requests.push(o);return}n.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){n.emit("free",t,o)}function onCloseOrRemove(e){n.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var s={};r.sockets.push(s);var n=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){n.localAddress=e.localAddress}if(n.proxyAuth){n.headers=n.headers||{};n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")}l("making CONNECT request");var o=r.request(n);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(n,i,a){o.removeAllListeners();i.removeAllListeners();if(n.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",n.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+n.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(s);return}if(a.length>0){l("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(s);return}l("tunneling connection has established");r.sockets[r.sockets.indexOf(s)]=i;return t(i)}function onError(t){o.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var n=new Error("tunneling socket could not be established, "+"cause="+t.message);n.code="ECONNRESET";e.request.emit("error",n);r.removeSocket(s)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(s){var o=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:s,servername:o?o.replace(/:.*$/,""):e.host});var a=n.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&"version"in process){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},2937:e=>{var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var s=r||0;var n=t;return[n[e[s++]],n[e[s++]],n[e[s++]],n[e[s++]],"-",n[e[s++]],n[e[s++]],"-",n[e[s++]],n[e[s++]],"-",n[e[s++]],n[e[s++]],"-",n[e[s++]],n[e[s++]],n[e[s++]],n[e[s++]],n[e[s++]],n[e[s++]]].join("")}e.exports=bytesToUuid},5403:(e,t,r)=>{var s=r(6113);e.exports=function nodeRNG(){return s.randomBytes(16)}},7191:(e,t,r)=>{var s=r(5403);var n=r(2937);function v4(e,t,r){var o=t&&r||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var i=e.random||(e.rng||s)();i[6]=i[6]&15|64;i[8]=i[8]&63|128;if(t){for(var a=0;a<16;++a){t[o+a]=i[a]}}return t||n(i)}e.exports=v4},7338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return l.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return p.default}});var s=_interopRequireDefault(r(6101));var n=_interopRequireDefault(r(9456));var o=_interopRequireDefault(r(1071));var i=_interopRequireDefault(r(8057));var a=_interopRequireDefault(r(7448));var c=_interopRequireDefault(r(5530));var u=_interopRequireDefault(r(324));var l=_interopRequireDefault(r(5284));var p=_interopRequireDefault(r(6067));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},8612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return s.default.createHash("md5").update(e).digest()}var n=md5;t["default"]=n},7448:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},6067:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(324));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,s.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var n=parse;t["default"]=n},7610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},6750:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var s=_interopRequireDefault(r(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const n=new Uint8Array(256);let o=n.length;function rng(){if(o>n.length-16){s.default.randomFillSync(n);o=0}return n.slice(o,o+=16)}},4920:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return s.default.createHash("sha1").update(e).digest()}var n=sha1;t["default"]=n},5284:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(324));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const n=[];for(let e=0;e<256;++e){n.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+"-"+n[e[t+4]]+n[e[t+5]]+"-"+n[e[t+6]]+n[e[t+7]]+"-"+n[e[t+8]]+n[e[t+9]]+"-"+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]).toLowerCase();if(!(0,s.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},6101:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(6750));var n=_interopRequireDefault(r(5284));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let i;let a=0;let c=0;function v1(e,t,r){let u=t&&r||0;const l=t||new Array(16);e=e||{};let p=e.node||o;let d=e.clockseq!==undefined?e.clockseq:i;if(p==null||d==null){const t=e.random||(e.rng||s.default)();if(p==null){p=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(d==null){d=i=(t[6]<<8|t[7])&16383}}let h=e.msecs!==undefined?e.msecs:Date.now();let m=e.nsecs!==undefined?e.nsecs:c+1;const g=h-a+(m-c)/1e4;if(g<0&&e.clockseq===undefined){d=d+1&16383}if((g<0||h>a)&&e.nsecs===undefined){m=0}if(m>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=h;c=m;i=d;h+=122192928e5;const E=((h&268435455)*1e4+m)%4294967296;l[u++]=E>>>24&255;l[u++]=E>>>16&255;l[u++]=E>>>8&255;l[u++]=E&255;const v=h/4294967296*1e4&268435455;l[u++]=v>>>8&255;l[u++]=v&255;l[u++]=v>>>24&15|16;l[u++]=v>>>16&255;l[u++]=d>>>8|128;l[u++]=d&255;for(let e=0;e<6;++e){l[u+e]=p[e]}return t||(0,n.default)(l)}var u=v1;t["default"]=u},9456:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(9390));var n=_interopRequireDefault(r(8612));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,s.default)("v3",48,n.default);var i=o;t["default"]=i},9390:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var s=_interopRequireDefault(r(5284));var n=_interopRequireDefault(r(6067));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(6750));var n=_interopRequireDefault(r(5284));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||s.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,n.default)(o)}var o=v4;t["default"]=o},8057:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(9390));var n=_interopRequireDefault(r(4920));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,s.default)("v5",80,n.default);var i=o;t["default"]=i},324:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(7610));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&s.default.test(e)}var n=validate;t["default"]=n},5530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(324));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,s.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var n=version;t["default"]=n},666:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;re.includes(o.default.basename(t))));p.forEach((e=>{console.log(`Register plugin: ${e}`);if(!t.includes("nightly")&&a.default.lte(t,r)){i.default.exec(`nu -c "'register ${e}'"`)}else{i.default.exec(`nu -c "'plugin add ${e}'"`)}}))}))}},5837:function(e,t,r){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,r,s){if(s===undefined)s=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,s,n)}:function(e,t,r,s){if(s===undefined)s=r;e[s]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))s(t,e,r);n(t,e);return t};var i=this&&this.__awaiter||function(e,t,r,s){function adopt(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function fulfilled(e){try{step(s.next(e))}catch(e){n(e)}}function rejected(e){try{step(s["throw"](e))}catch(e){n(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((s=s.apply(e,t||[])).next())}))};var a=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),r={},verb("next"),verb("throw"),verb("return"),r[Symbol.asyncIterator]=function(){return this},r);function verb(t){r[t]=e[t]&&function(r){return new Promise((function(s,n){r=e[t](r),settle(s,n,r.done,r.value)}))}}function settle(e,t,r,s){Promise.resolve(s).then((function(t){e({value:t,done:r})}),t)}};Object.defineProperty(t,"__esModule",{value:true});t.checkOrInstallTool=checkOrInstallTool;const c=o(r(1017));const u=r(9945);const l=o(r(7705));const p=o(r(9093));const d=o(r(5561));const h=r(4296);const m=r(7147);const g={darwin_x64:["x86_64-apple-darwin","macOS.zip"],darwin_arm64:["aarch64-apple-darwin","macOS.zip"],win32_x64:["x86_64-pc-windows-msvc.zip","windows.zip"],linux_x64:["x86_64-unknown-linux-musl","x86_64-unknown-linux-gnu","linux.tar.gz"]};const E={darwin_x64:["x86_64-darwin-full"],darwin_arm64:["aarch64-darwin-full"],win32_x64:["x86_64-windows-msvc-full.zip"],linux_x64:["x86_64-linux-musl-full","x86_64-linux-gnu-full"]};function getTargets(e){const{arch:t,platform:r}=process;const s=`${r}_${t}`;if(e==="default"){return g[s]}if(e==="full"){return E[s]}throw new Error(`Failed to determine any valid targets: arch = ${t}, platform = ${r}, feature = ${e}`)}function filterMatch(e,t,r){const s=getTargets(r);return e.data.map((e=>{const t=e.assets.find((e=>s.some((t=>e.name.includes(t)))));if(t){return{version:e.tag_name.replace(/^v/,""),downloadUrl:t.browser_download_url}}})).filter((e=>e&&t?l.satisfies(e.version,t):true))}function filterLatest(e,t){const r=getTargets(t);const s=e.data.map((e=>e.tag_name));const n=l.rsort(s)[0];return e.data.filter((e=>e&&e.tag_name===n)).map((e=>{const t=e.assets.find((e=>r.some((t=>e.name.includes(t)))));if(t){return{version:e.tag_name.replace(/^v/,""),downloadUrl:t.browser_download_url}}}))}function filterLatestNightly(e,t){const r=getTargets(t);const s=e.data.map((e=>e.published_at));const n=s.sort(((e,t)=>new Date(t).getTime()-new Date(e).getTime()));const o=n[0];p.info(`Try to get latest nightly version published at: ${o}`);return e.data.filter((e=>e&&e.published_at===o)).map((e=>{const t=e.assets.find((e=>r.some((t=>e.name.includes(t)))));if(t){return{version:e.tag_name.replace(/^v/,""),downloadUrl:t.browser_download_url}}}))}function getRelease(e){return i(this,void 0,void 0,(function*(){const{owner:t,name:r,versionSpec:s,checkLatest:n=false,features:o="default"}=e;const i=s==="nightly";const a=new h.Octokit({auth:e.githubToken});return a.paginate(a.repos.listReleases,{owner:t,repo:r},((e,t)=>{const r=i?filterLatestNightly(e,o):[];const a=n?filterLatest(e,o):filterMatch(e,s,o);const c=i?r:a;if(c){t()}return c})).then((e=>{const t=e.find((e=>e!=null));if(t===undefined){if(o==="full"){p.warning('The "full" feature was removed for Nu after v0.93.1, try to use "default" feature instead.')}throw new Error(`No release for Nusehll matching version specifier ${s} of ${o} feature.`)}return t}))}))}function handleBadBinaryPermissions(e,t){return i(this,void 0,void 0,(function*(){const{name:r,bin:s}=e;if(process.platform!=="win32"){const findBin=()=>i(this,void 0,void 0,(function*(){var e,s,n,o;const i=yield m.promises.readdir(t);try{for(var c=true,u=a(i),l;l=yield u.next(),e=l.done,!e;c=true){o=l.value;c=false;const e=o;if(e.toLowerCase()===r.toLowerCase()){return e}}}catch(e){s={error:e}}finally{try{if(!c&&!e&&(n=u.return))yield n.call(u)}finally{if(s)throw s.error}}return r}));const e=c.join(t,s?s:yield findBin());try{yield m.promises.access(e,m.constants.X_OK)}catch(t){yield m.promises.chmod(e,"755");p.debug(`Fixed file permissions (-> 0o755) for ${e}`)}}}))}function checkOrInstallTool(e){return i(this,void 0,void 0,(function*(){const{name:t,versionSpec:r}=e;let s=d.find(t,r||"*");if(!s){const{version:r,downloadUrl:n}=yield getRelease(e);const o=yield d.downloadTool(n);p.debug(`Successfully downloaded ${t} v${r}`);let i;if(n.endsWith(".zip")){i=yield d.extractZip(o)}else{i=yield d.extractTar(o)}p.debug(`Successfully extracted archive for ${t} v${r}`);const a=yield(0,u.globby)([`${i}/**/nu_plugin_*`,c.join(i,"**","nu_plugin_*").replace(/\\/g,"/")],{unique:true,absolute:true});s=yield d.cacheDir(c.dirname(a[0]),t,r);yield handleBadBinaryPermissions(e,s)}const n=c.basename(c.dirname(s));return Object.assign({version:n,dir:s},e)}))}},9491:e=>{"use strict";e.exports=require("assert")},2081:e=>{"use strict";e.exports=require("child_process")},6113:e=>{"use strict";e.exports=require("crypto")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},9512:e=>{"use strict";e.exports=require("timers")},4404:e=>{"use strict";e.exports=require("tls")},3837:e=>{"use strict";e.exports=require("util")},9945:(e,t,r)=>{"use strict";r.r(t);r.d(t,{convertPathToPattern:()=>L,generateGlobTasks:()=>x,generateGlobTasksSync:()=>G,globby:()=>P,globbyStream:()=>A,globbySync:()=>k,isDynamicPattern:()=>C,isGitIgnored:()=>isGitIgnored,isGitIgnoredSync:()=>isGitIgnoredSync});const s=require("node:process");const n=require("node:fs");const o=require("node:path");const i=require("node:events");const a=require("node:stream");const c=require("node:stream/promises");function mergeStreams(e){if(!Array.isArray(e)){throw new TypeError(`Expected an array, got \`${typeof e}\`.`)}for(const t of e){validateStream(t)}const t=e.some((({readableObjectMode:e})=>e));const r=getHighWaterMark(e,t);const s=new MergedStream({objectMode:t,writableHighWaterMark:r,readableHighWaterMark:r});for(const t of e){s.add(t)}if(e.length===0){s.end()}return s}const getHighWaterMark=(e,t)=>{if(e.length===0){return 16384}const r=e.filter((({readableObjectMode:e})=>e===t)).map((({readableHighWaterMark:e})=>e));return Math.max(...r)};class MergedStream extends a.PassThrough{#e=new Set([]);#t=new Set([]);#r;constructor(...e){super(...e);this.#r=onMergedStreamFinished(this,this.#e)}add(e){if(this.#e.has(e)){return}validateStream(e);if(!this.writable){throw new TypeError("The merged stream has already ended.")}this.#e.add(e);endWhenStreamsDone({passThroughStream:this,stream:e,streams:this.#e,ended:this.#t,onFinished:this.#r});updateMaxListeners(this,p);e.pipe(this,{end:false})}remove(e){if(!this.#e.has(e)){throw new TypeError("Stream cannot be removed because it was not piped.")}e.unpipe(this)}}const onMergedStreamFinished=async(e,t)=>{updateMaxListeners(e,l);const r=new AbortController;try{await Promise.race([onMergedStreamEnd(e,r),onInputStreamsUnpipe(e,t,r)])}finally{r.abort();updateMaxListeners(e,-l)}};const onMergedStreamEnd=async(e,{signal:t})=>{try{await(0,c.finished)(e,{signal:t,cleanup:true})}catch{}};const onInputStreamsUnpipe=async(e,t,{signal:r})=>{for await(const[s]of(0,i.on)(e,"unpipe",{signal:r})){if(t.has(s)){s.emit(u)}}};const validateStream=e=>{if(typeof e?.pipe!=="function"){throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)}};const endWhenStreamsDone=async({passThroughStream:e,stream:t,streams:r,ended:s,onFinished:n})=>{try{const o=new AbortController;try{await Promise.race([n,onInputStreamEnd({stream:t,streams:r,ended:s,abortController:o}),onInputStreamUnpipe({passThroughStream:e,stream:t,streams:r,ended:s,abortController:o})])}finally{o.abort()}if(r.size===s.size&&e.writable){e.end()}}catch(t){if(t?.code==="ERR_STREAM_PREMATURE_CLOSE"){e.destroy()}else{e.destroy(t)}}};const onInputStreamEnd=async({stream:e,streams:t,ended:r,abortController:{signal:s}})=>{await(0,c.finished)(e,{signal:s,cleanup:true,readable:true,writable:false});if(t.has(e)){r.add(e)}};const onInputStreamUnpipe=async({passThroughStream:e,stream:t,streams:r,ended:s,abortController:{signal:n}})=>{await(0,i.once)(t,u,{signal:n});r.delete(t);s.delete(t);updateMaxListeners(e,-p)};const u=Symbol("unpipe");const updateMaxListeners=(e,t)=>{e.setMaxListeners(e.getMaxListeners()+t)};const l=2;const p=1;var d=r(6581);var h=r(7147);async function isType(e,t,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{const s=await h.promises[e](r);return s[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}function isTypeSync(e,t,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{return h[e](r)[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}const m=isType.bind(null,"stat","isFile");const g=isType.bind(null,"stat","isDirectory");const E=isType.bind(null,"lstat","isSymbolicLink");const v=isTypeSync.bind(null,"statSync","isFile");const y=isTypeSync.bind(null,"statSync","isDirectory");const _=isTypeSync.bind(null,"lstatSync","isSymbolicLink");const b=require("node:url");function toPath(e){return e instanceof URL?(0,b.fileURLToPath)(e):e}const w=require("node:fs/promises");var T=r(8829);function slash(e){const t=e.startsWith("\\\\?\\");if(t){return e}return e.replace(/\\/g,"/")}const isNegativePattern=e=>e[0]==="!";const S=["**/node_modules","**/flow-typed","**/coverage","**/.git"];const O={absolute:true,dot:true};const R="**/.gitignore";const applyBaseToPattern=(e,t)=>isNegativePattern(e)?"!"+o.posix.join(t,e.slice(1)):o.posix.join(t,e);const parseIgnoreFile=(e,t)=>{const r=slash(o.relative(t,o.dirname(e.filePath)));return e.content.split(/\r?\n/).filter((e=>e&&!e.startsWith("#"))).map((e=>applyBaseToPattern(e,r)))};const toRelativePath=(e,t)=>{t=slash(t);if(o.isAbsolute(e)){if(slash(e).startsWith(t)){return o.relative(t,e)}throw new Error(`Path ${e} is not in cwd ${t}`)}return e};const getIsIgnoredPredicate=(e,t)=>{const r=e.flatMap((e=>parseIgnoreFile(e,t)));const s=T().add(r);return e=>{e=toPath(e);e=toRelativePath(e,t);return e?s.ignores(slash(e)):false}};const normalizeOptions=(e={})=>({cwd:toPath(e.cwd)??s.cwd(),suppressErrors:Boolean(e.suppressErrors),deep:typeof e.deep==="number"?e.deep:Number.POSITIVE_INFINITY,ignore:[...e.ignore??[],...S]});const isIgnoredByIgnoreFiles=async(e,t)=>{const{cwd:r,suppressErrors:s,deep:n,ignore:o}=normalizeOptions(t);const i=await d(e,{cwd:r,suppressErrors:s,deep:n,ignore:o,...O});const a=await Promise.all(i.map((async e=>({filePath:e,content:await w.readFile(e,"utf8")}))));return getIsIgnoredPredicate(a,r)};const isIgnoredByIgnoreFilesSync=(e,t)=>{const{cwd:r,suppressErrors:s,deep:o,ignore:i}=normalizeOptions(t);const a=d.sync(e,{cwd:r,suppressErrors:s,deep:o,ignore:i,...O});const c=a.map((e=>({filePath:e,content:n.readFileSync(e,"utf8")})));return getIsIgnoredPredicate(c,r)};const isGitIgnored=e=>isIgnoredByIgnoreFiles(R,e);const isGitIgnoredSync=e=>isIgnoredByIgnoreFilesSync(R,e);const assertPatternsInput=e=>{if(e.some((e=>typeof e!=="string"))){throw new TypeError("Patterns must be a string or an array of strings")}};const normalizePathForDirectoryGlob=(e,t)=>{const r=isNegativePattern(e)?e.slice(1):e;return o.isAbsolute(r)?r:o.join(t,r)};const getDirectoryGlob=({directoryPath:e,files:t,extensions:r})=>{const s=r?.length>0?`.${r.length>1?`{${r.join(",")}}`:r[0]}`:"";return t?t.map((t=>o.posix.join(e,`**/${o.extname(t)?t:`${t}${s}`}`))):[o.posix.join(e,`**${s?`/*${s}`:""}`)]};const directoryToGlob=async(e,{cwd:t=s.cwd(),files:r,extensions:n}={})=>{const o=await Promise.all(e.map((async e=>await g(normalizePathForDirectoryGlob(e,t))?getDirectoryGlob({directoryPath:e,files:r,extensions:n}):e)));return o.flat()};const directoryToGlobSync=(e,{cwd:t=s.cwd(),files:r,extensions:n}={})=>e.flatMap((e=>y(normalizePathForDirectoryGlob(e,t))?getDirectoryGlob({directoryPath:e,files:r,extensions:n}):e));const toPatternsArray=e=>{e=[...new Set([e].flat())];assertPatternsInput(e);return e};const checkCwdOption=e=>{if(!e){return}let t;try{t=n.statSync(e)}catch{return}if(!t.isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const globby_normalizeOptions=(e={})=>{e={...e,ignore:e.ignore??[],expandDirectories:e.expandDirectories??true,cwd:toPath(e.cwd)};checkCwdOption(e.cwd);return e};const normalizeArguments=e=>async(t,r)=>e(toPatternsArray(t),globby_normalizeOptions(r));const normalizeArgumentsSync=e=>(t,r)=>e(toPatternsArray(t),globby_normalizeOptions(r));const getIgnoreFilesPatterns=e=>{const{ignoreFiles:t,gitignore:r}=e;const s=t?toPatternsArray(t):[];if(r){s.push(R)}return s};const getFilter=async e=>{const t=getIgnoreFilesPatterns(e);return createFilterFunction(t.length>0&&await isIgnoredByIgnoreFiles(t,e))};const getFilterSync=e=>{const t=getIgnoreFilesPatterns(e);return createFilterFunction(t.length>0&&isIgnoredByIgnoreFilesSync(t,e))};const createFilterFunction=e=>{const t=new Set;return r=>{const s=o.normalize(r.path??r);if(t.has(s)||e&&e(s)){return false}t.add(s);return true}};const unionFastGlobResults=(e,t)=>e.flat().filter((e=>t(e)));const convertNegativePatterns=(e,t)=>{const r=[];while(e.length>0){const s=e.findIndex((e=>isNegativePattern(e)));if(s===-1){r.push({patterns:e,options:t});break}const n=e[s].slice(1);for(const e of r){e.options.ignore.push(n)}if(s!==0){r.push({patterns:e.slice(0,s),options:{...t,ignore:[...t.ignore,n]}})}e=e.slice(s+1)}return r};const normalizeExpandDirectoriesOption=(e,t)=>({...t?{cwd:t}:{},...Array.isArray(e)?{files:e}:e});const generateTasks=async(e,t)=>{const r=convertNegativePatterns(e,t);const{cwd:s,expandDirectories:n}=t;if(!n){return r}const o=normalizeExpandDirectoriesOption(n,s);return Promise.all(r.map((async e=>{let{patterns:t,options:r}=e;[t,r.ignore]=await Promise.all([directoryToGlob(t,o),directoryToGlob(r.ignore,{cwd:s})]);return{patterns:t,options:r}})))};const generateTasksSync=(e,t)=>{const r=convertNegativePatterns(e,t);const{cwd:s,expandDirectories:n}=t;if(!n){return r}const o=normalizeExpandDirectoriesOption(n,s);return r.map((e=>{let{patterns:t,options:r}=e;t=directoryToGlobSync(t,o);r.ignore=directoryToGlobSync(r.ignore,{cwd:s});return{patterns:t,options:r}}))};const P=normalizeArguments((async(e,t)=>{const[r,s]=await Promise.all([generateTasks(e,t),getFilter(t)]);const n=await Promise.all(r.map((e=>d(e.patterns,e.options))));return unionFastGlobResults(n,s)}));const k=normalizeArgumentsSync(((e,t)=>{const r=generateTasksSync(e,t);const s=getFilterSync(t);const n=r.map((e=>d.sync(e.patterns,e.options)));return unionFastGlobResults(n,s)}));const A=normalizeArgumentsSync(((e,t)=>{const r=generateTasksSync(e,t);const s=getFilterSync(t);const n=r.map((e=>d.stream(e.patterns,e.options)));const o=mergeStreams(n).filter((e=>s(e)));return o}));const C=normalizeArgumentsSync(((e,t)=>e.some((e=>d.isDynamicPattern(e,t)))));const x=normalizeArguments(generateTasks);const G=normalizeArgumentsSync(generateTasksSync);const{convertPathToPattern:L}=d}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var n=t[r]={id:r,loaded:false,exports:{}};var o=true;try{e[r].call(n.exports,n,n.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}n.loaded=true;return n.exports}(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(2694);module.exports=r})(); \ No newline at end of file + */const s=r(7378);const toRegexRange=(e,t,r)=>{if(s(e)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(t===void 0||e===t){return String(e)}if(s(t)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let n={relaxZeros:true,...r};if(typeof n.strictZeros==="boolean"){n.relaxZeros=n.strictZeros===false}let o=String(n.relaxZeros);let i=String(n.shorthand);let a=String(n.capture);let c=String(n.wrap);let u=e+":"+t+"="+o+i+a+c;if(toRegexRange.cache.hasOwnProperty(u)){return toRegexRange.cache[u].result}let l=Math.min(e,t);let p=Math.max(e,t);if(Math.abs(l-p)===1){let r=e+"|"+t;if(n.capture){return`(${r})`}if(n.wrap===false){return r}return`(?:${r})`}let d=hasPadding(e)||hasPadding(t);let h={min:e,max:t,a:l,b:p};let m=[];let g=[];if(d){h.isPadded=d;h.maxLen=String(h.max).length}if(l<0){let e=p<0?Math.abs(p):1;g=splitToPatterns(e,Math.abs(l),h,n);l=h.a=0}if(p>=0){m=splitToPatterns(l,p,h,n)}h.negatives=g;h.positives=m;h.result=collatePatterns(g,m,n);if(n.capture===true){h.result=`(${h.result})`}else if(n.wrap!==false&&m.length+g.length>1){h.result=`(?:${h.result})`}toRegexRange.cache[u]=h;return h.result};function collatePatterns(e,t,r){let s=filterPatterns(e,t,"-",false,r)||[];let n=filterPatterns(t,e,"",false,r)||[];let o=filterPatterns(e,t,"-?",true,r)||[];let i=s.concat(o).concat(n);return i.join("|")}function splitToRanges(e,t){let r=1;let s=1;let n=countNines(e,r);let o=new Set([t]);while(e<=n&&n<=t){o.add(n);r+=1;n=countNines(e,r)}n=countZeros(t+1,s)-1;while(e1){a.count.pop()}a.count.push(c.count[0]);a.string=a.pattern+toQuantifier(a.count);i=t+1;continue}if(r.isPadded){u=padZeros(t,r,s)}c.string=u+c.pattern+toQuantifier(c.count);o.push(c);i=t+1;a=c}return o}function filterPatterns(e,t,r,s,n){let o=[];for(let n of e){let{string:e}=n;if(!s&&!contains(t,"string",e)){o.push(r+e)}if(s&&contains(t,"string",e)){o.push(r+e)}}return o}function zip(e,t){let r=[];for(let s=0;st?1:t>e?-1:0}function contains(e,t,r){return e.some((e=>e[t]===r))}function countNines(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){let[t=0,r=""]=e;if(r||t>1){return`{${t+(r?","+r:"")}}`}return""}function toCharacterClass(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function hasPadding(e){return/^-?(0+)\d/.test(e)}function padZeros(e,t,r){if(!t.isPadded){return e}let s=Math.abs(t.maxLen-String(e).length);let n=r.relaxZeros!==false;switch(s){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:{return n?`0{0,${s}}`:`0{${s}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};e.exports=toRegexRange},4225:(e,t,r)=>{e.exports=r(4030)},4030:(e,t,r)=>{"use strict";var s=r(1808);var n=r(4404);var o=r(3685);var i=r(5687);var a=r(2361);var c=r(9491);var u=r(3837);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=o.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=i.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,r,s,n){var o=toOptions(r,s,n);for(var i=0,a=t.requests.length;i=this.maxSockets){n.requests.push(o);return}n.createSocket(o,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){n.emit("free",t,o)}function onCloseOrRemove(e){n.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var s={};r.sockets.push(s);var n=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){n.localAddress=e.localAddress}if(n.proxyAuth){n.headers=n.headers||{};n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")}l("making CONNECT request");var o=r.request(n);o.useChunkedEncodingByDefault=false;o.once("response",onResponse);o.once("upgrade",onUpgrade);o.once("connect",onConnect);o.once("error",onError);o.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick((function(){onConnect(e,t,r)}))}function onConnect(n,i,a){o.removeAllListeners();i.removeAllListeners();if(n.statusCode!==200){l("tunneling socket could not be established, statusCode=%d",n.statusCode);i.destroy();var c=new Error("tunneling socket could not be established, "+"statusCode="+n.statusCode);c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(s);return}if(a.length>0){l("got illegal response body from proxy");i.destroy();var c=new Error("got illegal response body from proxy");c.code="ECONNRESET";e.request.emit("error",c);r.removeSocket(s);return}l("tunneling connection has established");r.sockets[r.sockets.indexOf(s)]=i;return t(i)}function onError(t){o.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var n=new Error("tunneling socket could not be established, "+"cause="+t.message);n.code="ECONNRESET";e.request.emit("error",n);r.removeSocket(s)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,(function(e){r.request.onSocket(e)}))}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,(function(s){var o=e.request.getHeader("host");var i=mergeOptions({},r.options,{socket:s,servername:o?o.replace(/:.*$/,""):e.host});var a=n.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a;t(a)}))}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&"version"in process){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}t.getUserAgent=getUserAgent},2937:e=>{var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var s=r||0;var n=t;return[n[e[s++]],n[e[s++]],n[e[s++]],n[e[s++]],"-",n[e[s++]],n[e[s++]],"-",n[e[s++]],n[e[s++]],"-",n[e[s++]],n[e[s++]],"-",n[e[s++]],n[e[s++]],n[e[s++]],n[e[s++]],n[e[s++]],n[e[s++]]].join("")}e.exports=bytesToUuid},5403:(e,t,r)=>{var s=r(6113);e.exports=function nodeRNG(){return s.randomBytes(16)}},7191:(e,t,r)=>{var s=r(5403);var n=r(2937);function v4(e,t,r){var o=t&&r||0;if(typeof e=="string"){t=e==="binary"?new Array(16):null;e=null}e=e||{};var i=e.random||(e.rng||s)();i[6]=i[6]&15|64;i[8]=i[8]&63|128;if(t){for(var a=0;a<16;++a){t[o+a]=i[a]}}return t||n(i)}e.exports=v4},7338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return u.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return l.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return p.default}});var s=_interopRequireDefault(r(6101));var n=_interopRequireDefault(r(9456));var o=_interopRequireDefault(r(1071));var i=_interopRequireDefault(r(8057));var a=_interopRequireDefault(r(7448));var c=_interopRequireDefault(r(5530));var u=_interopRequireDefault(r(324));var l=_interopRequireDefault(r(5284));var p=_interopRequireDefault(r(6067));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},8612:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return s.default.createHash("md5").update(e).digest()}var n=md5;t["default"]=n},7448:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r="00000000-0000-0000-0000-000000000000";t["default"]=r},6067:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(324));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function parse(e){if(!(0,s.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var n=parse;t["default"]=n},7610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;t["default"]=r},6750:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=rng;var s=_interopRequireDefault(r(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const n=new Uint8Array(256);let o=n.length;function rng(){if(o>n.length-16){s.default.randomFillSync(n);o=0}return n.slice(o,o+=16)}},4920:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(6113));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return s.default.createHash("sha1").update(e).digest()}var n=sha1;t["default"]=n},5284:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(324));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const n=[];for(let e=0;e<256;++e){n.push((e+256).toString(16).substr(1))}function stringify(e,t=0){const r=(n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+"-"+n[e[t+4]]+n[e[t+5]]+"-"+n[e[t+6]]+n[e[t+7]]+"-"+n[e[t+8]]+n[e[t+9]]+"-"+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]).toLowerCase();if(!(0,s.default)(r)){throw TypeError("Stringified UUID is invalid")}return r}var o=stringify;t["default"]=o},6101:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(6750));var n=_interopRequireDefault(r(5284));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let o;let i;let a=0;let c=0;function v1(e,t,r){let u=t&&r||0;const l=t||new Array(16);e=e||{};let p=e.node||o;let d=e.clockseq!==undefined?e.clockseq:i;if(p==null||d==null){const t=e.random||(e.rng||s.default)();if(p==null){p=o=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(d==null){d=i=(t[6]<<8|t[7])&16383}}let h=e.msecs!==undefined?e.msecs:Date.now();let m=e.nsecs!==undefined?e.nsecs:c+1;const g=h-a+(m-c)/1e4;if(g<0&&e.clockseq===undefined){d=d+1&16383}if((g<0||h>a)&&e.nsecs===undefined){m=0}if(m>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}a=h;c=m;i=d;h+=122192928e5;const E=((h&268435455)*1e4+m)%4294967296;l[u++]=E>>>24&255;l[u++]=E>>>16&255;l[u++]=E>>>8&255;l[u++]=E&255;const v=h/4294967296*1e4&268435455;l[u++]=v>>>8&255;l[u++]=v&255;l[u++]=v>>>24&15|16;l[u++]=v>>>16&255;l[u++]=d>>>8|128;l[u++]=d&255;for(let e=0;e<6;++e){l[u+e]=p[e]}return t||(0,n.default)(l)}var u=v1;t["default"]=u},9456:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(9390));var n=_interopRequireDefault(r(8612));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,s.default)("v3",48,n.default);var i=o;t["default"]=i},9390:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=_default;t.URL=t.DNS=void 0;var s=_interopRequireDefault(r(5284));var n=_interopRequireDefault(r(6067));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(6750));var n=_interopRequireDefault(r(5284));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function v4(e,t,r){e=e||{};const o=e.random||(e.rng||s.default)();o[6]=o[6]&15|64;o[8]=o[8]&63|128;if(t){r=r||0;for(let e=0;e<16;++e){t[r+e]=o[e]}return t}return(0,n.default)(o)}var o=v4;t["default"]=o},8057:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(9390));var n=_interopRequireDefault(r(4920));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const o=(0,s.default)("v5",80,n.default);var i=o;t["default"]=i},324:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(7610));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function validate(e){return typeof e==="string"&&s.default.test(e)}var n=validate;t["default"]=n},5530:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t["default"]=void 0;var s=_interopRequireDefault(r(324));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function version(e){if(!(0,s.default)(e)){throw TypeError("Invalid UUID")}return parseInt(e.substr(14,1),16)}var n=version;t["default"]=n},666:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r{const t=e.assets.find((e=>s.some((t=>e.name.includes(t)))));if(t){return{version:e.tag_name.replace(/^v/,""),downloadUrl:t.browser_download_url}}})).filter((e=>e&&t?l.satisfies(e.version,t):true))}function filterLatest(e,t){const r=getTargets(t);const s=e.data.map((e=>e.tag_name));const n=l.rsort(s)[0];return e.data.filter((e=>e&&e.tag_name===n)).map((e=>{const t=e.assets.find((e=>r.some((t=>e.name.includes(t)))));if(t){return{version:e.tag_name.replace(/^v/,""),downloadUrl:t.browser_download_url}}}))}function filterLatestNightly(e,t){const r=getTargets(t);const s=e.data.map((e=>e.published_at));const n=s.sort(((e,t)=>new Date(t).getTime()-new Date(e).getTime()));const o=n[0];p.info(`Try to get latest nightly version published at: ${o}`);return e.data.filter((e=>e&&e.published_at===o)).map((e=>{const t=e.assets.find((e=>r.some((t=>e.name.includes(t)))));if(t){return{version:e.tag_name.replace(/^v/,""),downloadUrl:t.browser_download_url}}}))}function getRelease(e){return i(this,void 0,void 0,(function*(){const{owner:t,name:r,versionSpec:s,checkLatest:n=false,features:o="default"}=e;const i=s==="nightly";const a=new h.Octokit({auth:e.githubToken});return a.paginate(a.repos.listReleases,{owner:t,repo:r},((e,t)=>{const r=i?filterLatestNightly(e,o):[];const a=n?filterLatest(e,o):filterMatch(e,s,o);const c=i?r:a;if(c){t()}return c})).then((e=>{const t=e.find((e=>e!=null));if(t===undefined){if(o==="full"){p.warning('The "full" feature was removed for Nu after v0.93.1, try to use "default" feature instead.')}throw new Error(`No release for Nusehll matching version specifier ${s} of ${o} feature.`)}return t}))}))}function handleBadBinaryPermissions(e,t){return i(this,void 0,void 0,(function*(){const{name:r,bin:s}=e;if(process.platform!=="win32"){const findBin=()=>i(this,void 0,void 0,(function*(){var e,s,n,o;const i=yield m.promises.readdir(t);try{for(var c=true,u=a(i),l;l=yield u.next(),e=l.done,!e;c=true){o=l.value;c=false;const e=o;if(e.toLowerCase()===r.toLowerCase()){return e}}}catch(e){s={error:e}}finally{try{if(!c&&!e&&(n=u.return))yield n.call(u)}finally{if(s)throw s.error}}return r}));const e=c.join(t,s?s:yield findBin());try{yield m.promises.access(e,m.constants.X_OK)}catch(t){yield m.promises.chmod(e,"755");p.debug(`Fixed file permissions (-> 0o755) for ${e}`)}}}))}function checkOrInstallTool(e){return i(this,void 0,void 0,(function*(){const{name:t,versionSpec:r}=e;let s=d.find(t,r||"*");if(!s){const{version:r,downloadUrl:n}=yield getRelease(e);const o=yield d.downloadTool(n);p.debug(`Successfully downloaded ${t} v${r}`);let i;if(n.endsWith(".zip")){i=yield d.extractZip(o)}else{i=yield d.extractTar(o)}p.debug(`Successfully extracted archive for ${t} v${r}`);const a=yield(0,u.globby)([`${i}/**/nu_plugin_*`,c.join(i,"**","nu_plugin_*").replace(/\\/g,"/")],{unique:true,absolute:true});s=yield d.cacheDir(c.dirname(a[0]),t,r);yield handleBadBinaryPermissions(e,s)}const n=c.basename(c.dirname(s));return Object.assign({version:n,dir:s},e)}))}},9491:e=>{"use strict";e.exports=require("assert")},2081:e=>{"use strict";e.exports=require("child_process")},6113:e=>{"use strict";e.exports=require("crypto")},2361:e=>{"use strict";e.exports=require("events")},7147:e=>{"use strict";e.exports=require("fs")},3685:e=>{"use strict";e.exports=require("http")},5687:e=>{"use strict";e.exports=require("https")},1808:e=>{"use strict";e.exports=require("net")},2037:e=>{"use strict";e.exports=require("os")},1017:e=>{"use strict";e.exports=require("path")},2781:e=>{"use strict";e.exports=require("stream")},1576:e=>{"use strict";e.exports=require("string_decoder")},9512:e=>{"use strict";e.exports=require("timers")},4404:e=>{"use strict";e.exports=require("tls")},3837:e=>{"use strict";e.exports=require("util")},9945:(e,t,r)=>{"use strict";r.r(t);r.d(t,{convertPathToPattern:()=>L,generateGlobTasks:()=>x,generateGlobTasksSync:()=>G,globby:()=>P,globbyStream:()=>A,globbySync:()=>k,isDynamicPattern:()=>C,isGitIgnored:()=>isGitIgnored,isGitIgnoredSync:()=>isGitIgnoredSync});const s=require("node:process");const n=require("node:fs");const o=require("node:path");const i=require("node:events");const a=require("node:stream");const c=require("node:stream/promises");function mergeStreams(e){if(!Array.isArray(e)){throw new TypeError(`Expected an array, got \`${typeof e}\`.`)}for(const t of e){validateStream(t)}const t=e.some((({readableObjectMode:e})=>e));const r=getHighWaterMark(e,t);const s=new MergedStream({objectMode:t,writableHighWaterMark:r,readableHighWaterMark:r});for(const t of e){s.add(t)}if(e.length===0){s.end()}return s}const getHighWaterMark=(e,t)=>{if(e.length===0){return 16384}const r=e.filter((({readableObjectMode:e})=>e===t)).map((({readableHighWaterMark:e})=>e));return Math.max(...r)};class MergedStream extends a.PassThrough{#e=new Set([]);#t=new Set([]);#r;constructor(...e){super(...e);this.#r=onMergedStreamFinished(this,this.#e)}add(e){if(this.#e.has(e)){return}validateStream(e);if(!this.writable){throw new TypeError("The merged stream has already ended.")}this.#e.add(e);endWhenStreamsDone({passThroughStream:this,stream:e,streams:this.#e,ended:this.#t,onFinished:this.#r});updateMaxListeners(this,p);e.pipe(this,{end:false})}remove(e){if(!this.#e.has(e)){throw new TypeError("Stream cannot be removed because it was not piped.")}e.unpipe(this)}}const onMergedStreamFinished=async(e,t)=>{updateMaxListeners(e,l);const r=new AbortController;try{await Promise.race([onMergedStreamEnd(e,r),onInputStreamsUnpipe(e,t,r)])}finally{r.abort();updateMaxListeners(e,-l)}};const onMergedStreamEnd=async(e,{signal:t})=>{try{await(0,c.finished)(e,{signal:t,cleanup:true})}catch{}};const onInputStreamsUnpipe=async(e,t,{signal:r})=>{for await(const[s]of(0,i.on)(e,"unpipe",{signal:r})){if(t.has(s)){s.emit(u)}}};const validateStream=e=>{if(typeof e?.pipe!=="function"){throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)}};const endWhenStreamsDone=async({passThroughStream:e,stream:t,streams:r,ended:s,onFinished:n})=>{try{const o=new AbortController;try{await Promise.race([n,onInputStreamEnd({stream:t,streams:r,ended:s,abortController:o}),onInputStreamUnpipe({passThroughStream:e,stream:t,streams:r,ended:s,abortController:o})])}finally{o.abort()}if(r.size===s.size&&e.writable){e.end()}}catch(t){if(t?.code==="ERR_STREAM_PREMATURE_CLOSE"){e.destroy()}else{e.destroy(t)}}};const onInputStreamEnd=async({stream:e,streams:t,ended:r,abortController:{signal:s}})=>{await(0,c.finished)(e,{signal:s,cleanup:true,readable:true,writable:false});if(t.has(e)){r.add(e)}};const onInputStreamUnpipe=async({passThroughStream:e,stream:t,streams:r,ended:s,abortController:{signal:n}})=>{await(0,i.once)(t,u,{signal:n});r.delete(t);s.delete(t);updateMaxListeners(e,-p)};const u=Symbol("unpipe");const updateMaxListeners=(e,t)=>{e.setMaxListeners(e.getMaxListeners()+t)};const l=2;const p=1;var d=r(6581);var h=r(7147);async function isType(e,t,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{const s=await h.promises[e](r);return s[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}function isTypeSync(e,t,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{return h[e](r)[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}const m=isType.bind(null,"stat","isFile");const g=isType.bind(null,"stat","isDirectory");const E=isType.bind(null,"lstat","isSymbolicLink");const v=isTypeSync.bind(null,"statSync","isFile");const y=isTypeSync.bind(null,"statSync","isDirectory");const _=isTypeSync.bind(null,"lstatSync","isSymbolicLink");const b=require("node:url");function toPath(e){return e instanceof URL?(0,b.fileURLToPath)(e):e}const w=require("node:fs/promises");var T=r(8829);function slash(e){const t=e.startsWith("\\\\?\\");if(t){return e}return e.replace(/\\/g,"/")}const isNegativePattern=e=>e[0]==="!";const S=["**/node_modules","**/flow-typed","**/coverage","**/.git"];const O={absolute:true,dot:true};const R="**/.gitignore";const applyBaseToPattern=(e,t)=>isNegativePattern(e)?"!"+o.posix.join(t,e.slice(1)):o.posix.join(t,e);const parseIgnoreFile=(e,t)=>{const r=slash(o.relative(t,o.dirname(e.filePath)));return e.content.split(/\r?\n/).filter((e=>e&&!e.startsWith("#"))).map((e=>applyBaseToPattern(e,r)))};const toRelativePath=(e,t)=>{t=slash(t);if(o.isAbsolute(e)){if(slash(e).startsWith(t)){return o.relative(t,e)}throw new Error(`Path ${e} is not in cwd ${t}`)}return e};const getIsIgnoredPredicate=(e,t)=>{const r=e.flatMap((e=>parseIgnoreFile(e,t)));const s=T().add(r);return e=>{e=toPath(e);e=toRelativePath(e,t);return e?s.ignores(slash(e)):false}};const normalizeOptions=(e={})=>({cwd:toPath(e.cwd)??s.cwd(),suppressErrors:Boolean(e.suppressErrors),deep:typeof e.deep==="number"?e.deep:Number.POSITIVE_INFINITY,ignore:[...e.ignore??[],...S]});const isIgnoredByIgnoreFiles=async(e,t)=>{const{cwd:r,suppressErrors:s,deep:n,ignore:o}=normalizeOptions(t);const i=await d(e,{cwd:r,suppressErrors:s,deep:n,ignore:o,...O});const a=await Promise.all(i.map((async e=>({filePath:e,content:await w.readFile(e,"utf8")}))));return getIsIgnoredPredicate(a,r)};const isIgnoredByIgnoreFilesSync=(e,t)=>{const{cwd:r,suppressErrors:s,deep:o,ignore:i}=normalizeOptions(t);const a=d.sync(e,{cwd:r,suppressErrors:s,deep:o,ignore:i,...O});const c=a.map((e=>({filePath:e,content:n.readFileSync(e,"utf8")})));return getIsIgnoredPredicate(c,r)};const isGitIgnored=e=>isIgnoredByIgnoreFiles(R,e);const isGitIgnoredSync=e=>isIgnoredByIgnoreFilesSync(R,e);const assertPatternsInput=e=>{if(e.some((e=>typeof e!=="string"))){throw new TypeError("Patterns must be a string or an array of strings")}};const normalizePathForDirectoryGlob=(e,t)=>{const r=isNegativePattern(e)?e.slice(1):e;return o.isAbsolute(r)?r:o.join(t,r)};const getDirectoryGlob=({directoryPath:e,files:t,extensions:r})=>{const s=r?.length>0?`.${r.length>1?`{${r.join(",")}}`:r[0]}`:"";return t?t.map((t=>o.posix.join(e,`**/${o.extname(t)?t:`${t}${s}`}`))):[o.posix.join(e,`**${s?`/*${s}`:""}`)]};const directoryToGlob=async(e,{cwd:t=s.cwd(),files:r,extensions:n}={})=>{const o=await Promise.all(e.map((async e=>await g(normalizePathForDirectoryGlob(e,t))?getDirectoryGlob({directoryPath:e,files:r,extensions:n}):e)));return o.flat()};const directoryToGlobSync=(e,{cwd:t=s.cwd(),files:r,extensions:n}={})=>e.flatMap((e=>y(normalizePathForDirectoryGlob(e,t))?getDirectoryGlob({directoryPath:e,files:r,extensions:n}):e));const toPatternsArray=e=>{e=[...new Set([e].flat())];assertPatternsInput(e);return e};const checkCwdOption=e=>{if(!e){return}let t;try{t=n.statSync(e)}catch{return}if(!t.isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const globby_normalizeOptions=(e={})=>{e={...e,ignore:e.ignore??[],expandDirectories:e.expandDirectories??true,cwd:toPath(e.cwd)};checkCwdOption(e.cwd);return e};const normalizeArguments=e=>async(t,r)=>e(toPatternsArray(t),globby_normalizeOptions(r));const normalizeArgumentsSync=e=>(t,r)=>e(toPatternsArray(t),globby_normalizeOptions(r));const getIgnoreFilesPatterns=e=>{const{ignoreFiles:t,gitignore:r}=e;const s=t?toPatternsArray(t):[];if(r){s.push(R)}return s};const getFilter=async e=>{const t=getIgnoreFilesPatterns(e);return createFilterFunction(t.length>0&&await isIgnoredByIgnoreFiles(t,e))};const getFilterSync=e=>{const t=getIgnoreFilesPatterns(e);return createFilterFunction(t.length>0&&isIgnoredByIgnoreFilesSync(t,e))};const createFilterFunction=e=>{const t=new Set;return r=>{const s=o.normalize(r.path??r);if(t.has(s)||e&&e(s)){return false}t.add(s);return true}};const unionFastGlobResults=(e,t)=>e.flat().filter((e=>t(e)));const convertNegativePatterns=(e,t)=>{const r=[];while(e.length>0){const s=e.findIndex((e=>isNegativePattern(e)));if(s===-1){r.push({patterns:e,options:t});break}const n=e[s].slice(1);for(const e of r){e.options.ignore.push(n)}if(s!==0){r.push({patterns:e.slice(0,s),options:{...t,ignore:[...t.ignore,n]}})}e=e.slice(s+1)}return r};const normalizeExpandDirectoriesOption=(e,t)=>({...t?{cwd:t}:{},...Array.isArray(e)?{files:e}:e});const generateTasks=async(e,t)=>{const r=convertNegativePatterns(e,t);const{cwd:s,expandDirectories:n}=t;if(!n){return r}const o=normalizeExpandDirectoriesOption(n,s);return Promise.all(r.map((async e=>{let{patterns:t,options:r}=e;[t,r.ignore]=await Promise.all([directoryToGlob(t,o),directoryToGlob(r.ignore,{cwd:s})]);return{patterns:t,options:r}})))};const generateTasksSync=(e,t)=>{const r=convertNegativePatterns(e,t);const{cwd:s,expandDirectories:n}=t;if(!n){return r}const o=normalizeExpandDirectoriesOption(n,s);return r.map((e=>{let{patterns:t,options:r}=e;t=directoryToGlobSync(t,o);r.ignore=directoryToGlobSync(r.ignore,{cwd:s});return{patterns:t,options:r}}))};const P=normalizeArguments((async(e,t)=>{const[r,s]=await Promise.all([generateTasks(e,t),getFilter(t)]);const n=await Promise.all(r.map((e=>d(e.patterns,e.options))));return unionFastGlobResults(n,s)}));const k=normalizeArgumentsSync(((e,t)=>{const r=generateTasksSync(e,t);const s=getFilterSync(t);const n=r.map((e=>d.sync(e.patterns,e.options)));return unionFastGlobResults(n,s)}));const A=normalizeArgumentsSync(((e,t)=>{const r=generateTasksSync(e,t);const s=getFilterSync(t);const n=r.map((e=>d.stream(e.patterns,e.options)));const o=mergeStreams(n).filter((e=>s(e)));return o}));const C=normalizeArgumentsSync(((e,t)=>e.some((e=>d.isDynamicPattern(e,t)))));const x=normalizeArguments(generateTasks);const G=normalizeArgumentsSync(generateTasksSync);const{convertPathToPattern:L}=d}};var t={};function __nccwpck_require__(r){var s=t[r];if(s!==undefined){return s.exports}var n=t[r]={id:r,loaded:false,exports:{}};var o=true;try{e[r].call(n.exports,n,n.exports,__nccwpck_require__);o=false}finally{if(o)delete t[r]}n.loaded=true;return n.exports}(()=>{__nccwpck_require__.d=(e,t)=>{for(var r in t){if(__nccwpck_require__.o(t,r)&&!__nccwpck_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}}})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=e=>{e.paths=[];if(!e.children)e.children=[];return e}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(2694);module.exports=r})(); \ No newline at end of file diff --git a/nu/register-plugins.nu b/nu/register-plugins.nu index 1a4e9ff..a376c2d 100755 --- a/nu/register-plugins.nu +++ b/nu/register-plugins.nu @@ -6,19 +6,13 @@ # Config files are needed to avoid plugin register failure. # The following lines were used to fix `× Plugin failed to load: No such file or directory (os error 2)` -use common.nu [is-lower-ver] - def main [ - version: string, # The tag name or version of the release to use. + enablePlugins: string, # Whether to enable or disable plugins. + version: string, # The tag name or version of the release to use. + --is-legacy, # Whether to use the legacy plugin registration command for Nu 0.92.3 and below. ] { - let name = if $version =~ 'nightly' { 'nightly' } else { 'nushell' } - let useRegister = if $version =~ 'nightly' or $version == '*' or (is-lower-ver 0.92.3 $version) { false } else { true } - let config_path = ($nu.env-path | path dirname) - let config_prefix = $'https://github.com/nushell/($name)/blob/($version)/crates/nu-utils/src' - aria2c $'($config_prefix)/sample_config/default_env.nu' -o env.nu -d $config_path - aria2c $'($config_prefix)/sample_config/default_config.nu' -o config.nu -d $config_path - # config reset --without-backup + let useRegister = if $is_legacy { true } else { false } def register-plugins [] { ls (which nu | get 0.path | path dirname) diff --git a/src/plugins.ts b/src/plugins.ts index 90ec859..db04a2e 100644 --- a/src/plugins.ts +++ b/src/plugins.ts @@ -1,34 +1,46 @@ -import path from 'path'; +import fs from 'fs'; import shell from 'shelljs'; import semver from 'semver'; -import { globby } from 'globby'; + +const nu = String.raw; + +const pluginRegisterScript = nu` + def main [ + enablePlugins: string, # Whether to enable or disable plugins. + version: string, # The tag name or version of the release to use. + --is-legacy, # Whether to use the legacy plugin registration command for Nu 0.92.3 and below. + ] { + + let useRegister = if $is_legacy { true } else { false } + + def register-plugins [] { + ls (which nu | get 0.path | path dirname) + | where name =~ nu_plugin + | each {|plugin| + print $'Registering ($plugin.name)' + if $useRegister { + nu -c $'register ($plugin.name)' + } else { + nu -c $'plugin add ($plugin.name)' + } + } + } + + register-plugins + print $'(char nl)Plugins registered successfully for Nu ($version).' + } +`; export async function registerPlugins(enablePlugins: string, version: string) { if (enablePlugins === '' || enablePlugins === 'false') { return; } const LEGACY_VERSION = '0.92.3'; - const nuBin = shell.which('nu'); - console.log('Nu binary path:', nuBin?.stdout); - shell.exec('nu -c "config env --default | save -f $nu.env-path"'); - shell.exec('nu -c "config nu --default | save -f $nu.config-path"'); - const nuDir = nuBin ? path.dirname(nuBin.stdout) : ''; - console.log('Directory contents:', shell.ls(nuDir)); - const pattern = process.platform === 'win32' ? `${nuDir}${path.sep}nu_plugin_*.*` : `${nuDir}/nu_plugin_*`; - const plugins = await globby(pattern, { - absolute: true, - unique: true, - caseSensitiveMatch: false, - }); - console.log('All available Nu plugins:', plugins); - const filteredPlugins = - enablePlugins === 'true' ? plugins : plugins.filter((it) => enablePlugins.includes(path.basename(it))); - filteredPlugins.forEach((it) => { - console.log(`Register plugin: ${it}`); - if (!version.includes('nightly') && semver.lte(version, LEGACY_VERSION)) { - shell.exec(`nu -c "'register ${it}'"`); - } else { - shell.exec(`nu -c "'plugin add ${it}'"`); - } - }); + const isLegacyVersion = !version.includes('nightly') && semver.lte(version, LEGACY_VERSION); + fs.writeFileSync('register-plugins.nu', pluginRegisterScript); + if (isLegacyVersion) { + shell.exec(`nu register-plugins.nu ${enablePlugins} ${version} --is-legacy`); + } else { + shell.exec(`nu register-plugins.nu ${enablePlugins} ${version}"`); + } }