@nice-move/cli 0.11.21 → 0.11.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/312.mjs DELETED
@@ -1 +0,0 @@
1
- export const __webpack_id__=312;export const __webpack_ids__=[312];export const __webpack_modules__={4078:(e,t,r)=>{const s=r(303),n=r(5111),i=r(9288),o=r(3585),a=(e,t={})=>{let r=[];if(Array.isArray(e))for(const s of e){const e=a.create(s,t);Array.isArray(e)?r.push(...e):r.push(e)}else r=[].concat(a.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(r=[...new Set(r)]),r};a.parse=(e,t={})=>o(e,t),a.stringify=(e,t={})=>s("string"==typeof e?a.parse(e,t):e,t),a.compile=(e,t={})=>("string"==typeof e&&(e=a.parse(e,t)),n(e,t)),a.expand=(e,t={})=>{"string"==typeof e&&(e=a.parse(e,t));let r=i(e,t);return!0===t.noempty&&(r=r.filter(Boolean)),!0===t.nodupes&&(r=[...new Set(r)]),r},a.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?a.compile(e,t):a.expand(e,t),e.exports=a},5111:(e,t,r)=>{const s=r(2411),n=r(1811);e.exports=(e,t={})=>{const r=(e,i={})=>{const o=n.isInvalidBrace(i),a=!0===e.invalid&&!0===t.escapeInvalid,c=!0===o||!0===a,l=!0===t.escapeInvalid?"\\":"";let u="";if(!0===e.isOpen)return l+e.value;if(!0===e.isClose)return console.log("node.isClose",l,e.value),l+e.value;if("open"===e.type)return c?l+e.value:"(";if("close"===e.type)return c?l+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":c?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){const r=n.reduce(e.nodes),i=s(...r,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(0!==i.length)return r.length>1&&i.length>1?`(${i})`:i}if(e.nodes)for(const t of e.nodes)u+=r(t,e);return u};return r(e)}},803:e=>{e.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:"\xa0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},9288:(e,t,r)=>{const s=r(2411),n=r(303),i=r(1811),o=(e="",t="",r=!1)=>{const s=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return r?i.flatten(t).map((e=>`{${e}}`)):t;for(const n of e)if(Array.isArray(n))for(const e of n)s.push(o(e,t,r));else for(let e of t)!0===r&&"string"==typeof e&&(e=`{${e}}`),s.push(Array.isArray(e)?o(n,e,r):n+e);return i.flatten(s)};e.exports=(e,t={})=>{const r=void 0===t.rangeLimit?1e3:t.rangeLimit,a=(e,c={})=>{e.queue=[];let l=c,u=c.queue;for(;"brace"!==l.type&&"root"!==l.type&&l.parent;)l=l.parent,u=l.queue;if(e.invalid||e.dollar)return void u.push(o(u.pop(),n(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void u.push(o(u.pop(),["{}"]));if(e.nodes&&e.ranges>0){const a=i.reduce(e.nodes);if(i.exceedsLimit(...a,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let c=s(...a,t);return 0===c.length&&(c=n(e,t)),u.push(o(u.pop(),c)),void(e.nodes=[])}const p=i.encloseBrace(e);let d=e.queue,h=e;for(;"brace"!==h.type&&"root"!==h.type&&h.parent;)h=h.parent,d=h.queue;for(let t=0;t<e.nodes.length;t++){const r=e.nodes[t];"comma"!==r.type||"brace"!==e.type?"close"!==r.type?r.value&&"open"!==r.type?d.push(o(d.pop(),r.value)):r.nodes&&a(r,e):u.push(o(u.pop(),d,p)):(1===t&&d.push(""),d.push(""))}return d};return i.flatten(a(e))}},3585:(e,t,r)=>{const s=r(303),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:o,CHAR_COMMA:a,CHAR_DOT:c,CHAR_LEFT_PARENTHESES:l,CHAR_RIGHT_PARENTHESES:u,CHAR_LEFT_CURLY_BRACE:p,CHAR_RIGHT_CURLY_BRACE:d,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_RIGHT_SQUARE_BRACKET:f,CHAR_DOUBLE_QUOTE:g,CHAR_SINGLE_QUOTE:m,CHAR_NO_BREAK_SPACE:y,CHAR_ZERO_WIDTH_NOBREAK_SPACE:b}=r(803);e.exports=(e,t={})=>{if("string"!=typeof e)throw new TypeError("Expected a string");const r=t||{},E="number"==typeof r.maxLength?Math.min(n,r.maxLength):n;if(e.length>E)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${E})`);const w={type:"root",input:e,nodes:[]},A=[w];let S=w,R=w,C=0;const v=e.length;let T,O=0,x=0;const k=()=>e[O++],_=e=>{if("text"===e.type&&"dot"===R.type&&(R.type="text"),!R||"text"!==R.type||"text"!==e.type)return S.nodes.push(e),e.parent=S,e.prev=R,R=e,e;R.value+=e.value};for(_({type:"bos"});O<v;)if(S=A[A.length-1],T=k(),T!==b&&T!==y)if(T!==i)if(T!==f)if(T!==h)if(T!==l)if(T!==u)if(T!==g&&T!==m&&T!==o)if(T!==p)if(T!==d)if(T===a&&x>0){if(S.ranges>0){S.ranges=0;const e=S.nodes.shift();S.nodes=[e,{type:"text",value:s(S)}]}_({type:"comma",value:T}),S.commas++}else if(T===c&&x>0&&0===S.commas){const e=S.nodes;if(0===x||0===e.length){_({type:"text",value:T});continue}if("dot"===R.type){if(S.range=[],R.value+=T,R.type="range",3!==S.nodes.length&&5!==S.nodes.length){S.invalid=!0,S.ranges=0,R.type="text";continue}S.ranges++,S.args=[];continue}if("range"===R.type){e.pop();const t=e[e.length-1];t.value+=R.value+T,R=t,S.ranges--;continue}_({type:"dot",value:T})}else _({type:"text",value:T});else{if("brace"!==S.type){_({type:"text",value:T});continue}const e="close";S=A.pop(),S.close=!0,_({type:e,value:T}),x--,S=A[A.length-1]}else{x++;const e=R.value&&"$"===R.value.slice(-1)||!0===S.dollar;S=_({type:"brace",open:!0,close:!1,dollar:e,depth:x,commas:0,ranges:0,nodes:[]}),A.push(S),_({type:"open",value:T})}else{const e=T;let r;for(!0!==t.keepQuotes&&(T="");O<v&&(r=k());)if(r!==i){if(r===e){!0===t.keepQuotes&&(T+=r);break}T+=r}else T+=r+k();_({type:"text",value:T})}else{if("paren"!==S.type){_({type:"text",value:T});continue}S=A.pop(),_({type:"text",value:T}),S=A[A.length-1]}else S=_({type:"paren",nodes:[]}),A.push(S),_({type:"text",value:T});else{let e;for(C++;O<v&&(e=k());)if(T+=e,e!==h)if(e!==i){if(e===f&&(C--,0===C))break}else T+=k();else C++;_({type:"text",value:T})}else _({type:"text",value:"\\"+T});else _({type:"text",value:(t.keepEscaping?T:"")+k()});do{if(S=A.pop(),"root"!==S.type){S.nodes.forEach((e=>{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)}));const e=A[A.length-1],t=e.nodes.indexOf(S);e.nodes.splice(t,1,...S.nodes)}}while(A.length>0);return _({type:"eos"}),w}},303:(e,t,r)=>{const s=r(1811);e.exports=(e,t={})=>{const r=(e,n={})=>{const i=t.escapeInvalid&&s.isInvalidBrace(n),o=!0===e.invalid&&!0===t.escapeInvalid;let a="";if(e.value)return(i||o)&&s.isOpenOrClose(e)?"\\"+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(const t of e.nodes)a+=r(t);return a};return r(e)}},1811:(e,t)=>{t.isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),t.find=(e,t)=>e.nodes.find((e=>e.type===t)),t.exceedsLimit=(e,r,s=1,n)=>!1!==n&&!(!t.isInteger(e)||!t.isInteger(r))&&(Number(r)-Number(e))/Number(s)>=n,t.escapeNode=(e,t=0,r)=>{const s=e.nodes[t];s&&(r&&s.type===r||"open"===s.type||"close"===s.type)&&!0!==s.escaped&&(s.value="\\"+s.value,s.escaped=!0)},t.encloseBrace=e=>!("brace"!==e.type||e.commas>>0+e.ranges||(e.invalid=!0,0)),t.isInvalidBrace=e=>!("brace"!==e.type||!0!==e.invalid&&!e.dollar&&(e.commas>>0+e.ranges&&!0===e.open&&!0===e.close||(e.invalid=!0,0))),t.isOpenOrClose=e=>"open"===e.type||"close"===e.type||!0===e.open||!0===e.close,t.reduce=e=>e.reduce(((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e)),[]),t.flatten=(...e)=>{const t=[],r=e=>{for(let s=0;s<e.length;s++){const n=e[s];Array.isArray(n)?r(n):void 0!==n&&t.push(n)}return t};return r(e),t}},6507:(e,t,r)=>{const s=r(5317),n=r(8388),i=r(442);function o(e,t,r){const o=n(e,t,r),a=s.spawn(o.command,o.args,o.options);return i.hookChildProcess(a,o),a}e.exports=o,e.exports.spawn=o,e.exports.sync=function(e,t,r){const o=n(e,t,r),a=s.spawnSync(o.command,o.args,o.options);return a.error=a.error||i.verifyENOENTSync(a.status,o),a},e.exports._parse=n,e.exports._enoent=i},442:e=>{const t="win32"===process.platform;function r(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function s(e,s){return t&&1===e&&!s.file?r(s.original,"spawn"):null}e.exports={hookChildProcess:function(e,r){if(!t)return;const n=e.emit;e.emit=function(t,i){if("exit"===t){const t=s(i,r);if(t)return n.call(e,"error",t)}return n.apply(e,arguments)}},verifyENOENT:s,verifyENOENTSync:function(e,s){return t&&1===e&&!s.file?r(s.original,"spawnSync"):null},notFoundError:r}},8388:(e,t,r)=>{const s=r(6928),n=r(3803),i=r(2077),o=r(1880),a="win32"===process.platform,c=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;e.exports=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);const u={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?u:function(e){if(!a)return e;const t=function(e){e.file=n(e);const t=e.file&&o(e.file);return t?(e.args.unshift(e.file),e.command=t,n(e)):e.file}(e),r=!c.test(t);if(e.options.forceShell||r){const r=l.test(t);e.command=s.normalize(e.command),e.command=i.command(e.command),e.args=e.args.map((e=>i.argument(e,r)));const n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}(u)}},2077:e=>{const t=/([()\][%!^"`<>&|;, *?])/g;e.exports.command=function(e){return e.replace(t,"^$1")},e.exports.argument=function(e,r){return e=(e=`"${e=(e=(e=`${e}`).replace(/(?=(\\+?)?)\1"/g,'$1$1\\"')).replace(/(?=(\\+?)?)\1$/,"$1$1")}"`).replace(t,"^$1"),r&&(e=e.replace(t,"^$1")),e}},1880:(e,t,r)=>{const s=r(9896),n=r(600);e.exports=function(e){const t=Buffer.alloc(150);let r;try{r=s.openSync(e,"r"),s.readSync(r,t,0,150,0),s.closeSync(r)}catch(e){}return n(t.toString())}},3803:(e,t,r)=>{const s=r(6928),n=r(1905),i=r(9695);function o(e,t){const r=e.options.env||process.env,o=process.cwd(),a=null!=e.options.cwd,c=a&&void 0!==process.chdir&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch(e){}let l;try{l=n.sync(e.command,{path:r[i({env:r})],pathExt:t?s.delimiter:void 0})}catch(e){}finally{c&&process.chdir(o)}return l&&(l=s.resolve(a?e.options.cwd:"",l)),l}e.exports=function(e){return o(e)||o(e,!0)}},3298:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let s=0,n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(s++,"%c"===e&&(n=s))})),t.splice(n,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(9565)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},9565:(e,t,r)=>{e.exports=function(e){function t(e){let r,n,i,o=null;function a(...e){if(!a.enabled)return;const s=a,n=Number(new Date),i=n-(r||n);s.diff=i,s.prev=r,s.curr=n,r=n,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,n)=>{if("%%"===r)return"%";o++;const i=t.formatters[n];if("function"==typeof i){const t=e[o];r=i.call(s,t),e.splice(o,1),o--}return r})),t.formatArgs.call(s,e),(s.log||t.log).apply(s,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=s,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(n!==t.namespaces&&(n=t.namespaces,i=t.enabled(e)),i),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function s(e,r){const s=t(this.namespace+(void 0===r?":":r)+e);return s.log=this.log,s}function n(e,t){let r=0,s=0,n=-1,i=0;for(;r<e.length;)if(s<t.length&&(t[s]===e[r]||"*"===t[s]))"*"===t[s]?(n=s,i=r,s++):(r++,s++);else{if(-1===n)return!1;s=n+1,i++,r=i}for(;s<t.length&&"*"===t[s];)s++;return s===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean);for(const e of r)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const r of t.skips)if(n(e,r))return!1;for(const r of t.names)if(n(e,r))return!0;return!1},t.humanize=r(3866),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},8770:(e,t,r)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=r(3298):e.exports=r(2728)},2728:(e,t,r)=>{const s=r(2018),n=r(9023);t.init=function(e){e.inspectOpts={};const r=Object.keys(t.inspectOpts);for(let s=0;s<r.length;s++)e.inspectOpts[r[s]]=t.inspectOpts[r[s]]},t.log=function(...e){return process.stderr.write(n.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(r){const{namespace:s,useColors:n}=this;if(n){const t=this.color,n="\x1b[3"+(t<8?t:"8;5;"+t),i=` ${n};1m${s} \x1b[0m`;r[0]=i+r[0].split("\n").join("\n"+i),r.push(n+"m+"+e.exports.humanize(this.diff)+"\x1b[0m")}else r[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+s+" "+r[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):s.isatty(process.stderr.fd)},t.destroy=n.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=r(1754);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const r=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let s=process.env[t];return s=!!/^(yes|on|true|enabled)$/i.test(s)||!/^(no|off|false|disabled)$/i.test(s)&&("null"===s?null:Number(s)),e[r]=s,e}),{}),e.exports=r(9565)(t);const{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,n.inspect(e,this.inspectOpts)}},6296:e=>{var t=Object.prototype.hasOwnProperty,r="~";function s(){}function n(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,s,i,o){if("function"!=typeof s)throw new TypeError("The listener must be a function");var a=new n(s,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],a]:e._events[c].push(a):(e._events[c]=a,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new s:delete e._events[t]}function a(){this._events=new s,this._eventsCount=0}Object.create&&(s.prototype=Object.create(null),(new s).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,s,n=[];if(0===this._eventsCount)return n;for(s in e=this._events)t.call(e,s)&&n.push(r?s.slice(1):s);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},a.prototype.listeners=function(e){var t=r?r+e:e,s=this._events[t];if(!s)return[];if(s.fn)return[s.fn];for(var n=0,i=s.length,o=new Array(i);n<i;n++)o[n]=s[n].fn;return o},a.prototype.listenerCount=function(e){var t=r?r+e:e,s=this._events[t];return s?s.fn?1:s.length:0},a.prototype.emit=function(e,t,s,n,i,o){var a=r?r+e:e;if(!this._events[a])return!1;var c,l,u=this._events[a],p=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),p){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,s),!0;case 4:return u.fn.call(u.context,t,s,n),!0;case 5:return u.fn.call(u.context,t,s,n,i),!0;case 6:return u.fn.call(u.context,t,s,n,i,o),!0}for(l=1,c=new Array(p-1);l<p;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var d,h=u.length;for(l=0;l<h;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),p){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,s);break;case 4:u[l].fn.call(u[l].context,t,s,n);break;default:if(!c)for(d=1,c=new Array(p-1);d<p;d++)c[d-1]=arguments[d];u[l].fn.apply(u[l].context,c)}}return!0},a.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},a.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},a.prototype.removeListener=function(e,t,s,n){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return o(this,i),this;var a=this._events[i];if(a.fn)a.fn!==t||n&&!a.once||s&&a.context!==s||o(this,i);else{for(var c=0,l=[],u=a.length;c<u;c++)(a[c].fn!==t||n&&!a[c].once||s&&a[c].context!==s)&&l.push(a[c]);l.length?this._events[i]=1===l.length?l[0]:l:o(this,i)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&o(this,t)):(this._events=new s,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,e.exports=a},2411:(e,t,r)=>{const s=r(9023),n=r(4710),i=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),o=e=>"number"==typeof e||"string"==typeof e&&""!==e,a=e=>Number.isInteger(+e),c=e=>{let t=`${e}`,r=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++r];);return r>0},l=(e,t,r)=>{if(t>0){let r="-"===e[0]?"-":"";r&&(e=e.slice(1)),e=r+e.padStart(r?t-1:t,"0")}return!1===r?String(e):e},u=(e,t)=>{let r="-"===e[0]?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},p=(e,t,r,s)=>{if(r)return n(e,t,{wrap:!1,...s});let i=String.fromCharCode(e);return e===t?i:`[${i}-${String.fromCharCode(t)}]`},d=(e,t,r)=>{if(Array.isArray(e)){let t=!0===r.wrap,s=r.capture?"":"?:";return t?`(${s}${e.join("|")})`:e.join("|")}return n(e,t,r)},h=(...e)=>new RangeError("Invalid range arguments: "+s.inspect(...e)),f=(e,t,r)=>{if(!0===r.strictRanges)throw h([e,t]);return[]},g=(e,t,r,s={})=>{if(null==t&&o(e))return[e];if(!o(e)||!o(t))return f(e,t,s);if("function"==typeof r)return g(e,t,1,{transform:r});if(i(r))return g(e,t,0,r);let n={...s};return!0===n.capture&&(n.wrap=!0),r=r||n.step||1,a(r)?a(e)&&a(t)?((e,t,r=1,s={})=>{let n=Number(e),i=Number(t);if(!Number.isInteger(n)||!Number.isInteger(i)){if(!0===s.strictRanges)throw h([e,t]);return[]}0===n&&(n=0),0===i&&(i=0);let o=n>i,a=String(e),f=String(t),g=String(r);r=Math.max(Math.abs(r),1);let m=c(a)||c(f)||c(g),y=m?Math.max(a.length,f.length,g.length):0,b=!1===m&&!1===((e,t,r)=>"string"==typeof e||"string"==typeof t||!0===r.stringify)(e,t,s),E=s.transform||(e=>t=>!0===e?Number(t):String(t))(b);if(s.toRegex&&1===r)return p(u(e,y),u(t,y),!0,s);let w={negatives:[],positives:[]},A=[],S=0;for(;o?n>=i:n<=i;)!0===s.toRegex&&r>1?w[(R=n)<0?"negatives":"positives"].push(Math.abs(R)):A.push(l(E(n,S),y,b)),n=o?n-r:n+r,S++;var R;return!0===s.toRegex?r>1?((e,t,r)=>{e.negatives.sort(((e,t)=>e<t?-1:e>t?1:0)),e.positives.sort(((e,t)=>e<t?-1:e>t?1:0));let s,n=t.capture?"":"?:",i="",o="";return e.positives.length&&(i=e.positives.map((e=>u(String(e),r))).join("|")),e.negatives.length&&(o=`-(${n}${e.negatives.map((e=>u(String(e),r))).join("|")})`),s=i&&o?`${i}|${o}`:i||o,t.wrap?`(${n}${s})`:s})(w,s,y):d(A,null,{wrap:!1,...s}):A})(e,t,r,n):((e,t,r=1,s={})=>{if(!a(e)&&e.length>1||!a(t)&&t.length>1)return f(e,t,s);let n=s.transform||(e=>String.fromCharCode(e)),i=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),c=i>o,l=Math.min(i,o),u=Math.max(i,o);if(s.toRegex&&1===r)return p(l,u,!1,s);let h=[],g=0;for(;c?i>=o:i<=o;)h.push(n(i,g)),i=c?i-r:i+r,g++;return!0===s.toRegex?d(h,null,{wrap:!1,options:s}):h})(e,t,Math.max(Math.abs(r),1),n):null==r||i(r)?g(e,t,1,r):((e,t)=>{if(!0===t.strictRanges)throw new TypeError(`Expected step "${e}" to be a number`);return[]})(r,n)};e.exports=g},4891:e=>{e.exports=(e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":1===e.length?"-":"--",s=t.indexOf(r+e),n=t.indexOf("--");return-1!==s&&(-1===n||s<n)}},9789:e=>{e.exports=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))}},9344:(e,t,r)=>{var s;function n(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(r,s){n(e,t||{},(function(e,t){e?s(e):r(t)}))}))}s(e,t||{},(function(e,s){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,s=!1),r(e,s)}))}r(9896),s="win32"===process.platform||global.TESTING_WINDOWS?r(8541):r(709),e.exports=n,n.sync=function(e,t){try{return s.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}}},709:(e,t,r)=>{e.exports=n,n.sync=function(e,t){return i(s.statSync(e),t)};var s=r(9896);function n(e,t,r){s.stat(e,(function(e,s){r(e,!e&&i(s,t))}))}function i(e,t){return e.isFile()&&function(e,t){var r=e.mode,s=e.uid,n=e.gid,i=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),o=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8);return r&parseInt("001",8)||r&c&&n===o||r&a&&s===i||r&(a|c)&&0===i}(e,t)}},8541:(e,t,r)=>{e.exports=i,i.sync=function(e,t){return n(s.statSync(e),e,t)};var s=r(9896);function n(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var s=0;s<r.length;s++){var n=r[s].toLowerCase();if(n&&e.substr(-n.length).toLowerCase()===n)return!0}return!1}(t,r)}function i(e,t,r){s.stat(e,(function(s,i){r(s,!s&&n(i,e,t))}))}},1404:(e,t,r)=>{const{PassThrough:s}=r(2203);e.exports=function(){var e=[],t=new s({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=function(){return 0==e.length},t.on("unpipe",n),Array.prototype.slice.call(arguments).forEach(r),t;function r(s){return Array.isArray(s)?(s.forEach(r),this):(e.push(s),s.once("end",n.bind(null,s)),s.once("error",t.emit.bind(t,"error")),s.pipe(t,{end:!1}),this)}function n(r){!(e=e.filter((function(e){return e!==r}))).length&&t.readable&&t.end()}}},7498:(e,t,r)=>{const s=r(9023),n=r(4078),i=r(5562),o=r(6927),a=e=>""===e||"./"===e,c=e=>{const t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},l=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let s=new Set,n=new Set,o=new Set,a=0,c=e=>{o.add(e.output),r&&r.onResult&&r.onResult(e)};for(let o=0;o<t.length;o++){let l=i(String(t[o]),{...r,onResult:c},!0),u=l.state.negated||l.state.negatedExtglob;u&&a++;for(let t of e){let e=l(t,!0);(u?!e.isMatch:e.isMatch)&&(u?s.add(e.output):(s.delete(e.output),n.add(e.output)))}}let l=(a===t.length?[...o]:[...n]).filter((e=>!s.has(e)));if(r&&0===l.length){if(!0===r.failglob)throw new Error(`No matches found for "${t.join(", ")}"`);if(!0===r.nonull||!0===r.nullglob)return r.unescape?t.map((e=>e.replace(/\\/g,""))):t}return l};l.match=l,l.matcher=(e,t)=>i(e,t),l.any=l.isMatch=(e,t,r)=>i(t,r)(e),l.not=(e,t,r={})=>{t=[].concat(t).map(String);let s=new Set,n=[],i=new Set(l(e,t,{...r,onResult:e=>{r.onResult&&r.onResult(e),n.push(e.output)}}));for(let e of n)i.has(e)||s.add(e);return[...s]},l.contains=(e,t,r)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${s.inspect(e)}"`);if(Array.isArray(t))return t.some((t=>l.contains(e,t,r)));if("string"==typeof t){if(a(e)||a(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return l.isMatch(e,t,{...r,contains:!0})},l.matchKeys=(e,t,r)=>{if(!o.isObject(e))throw new TypeError("Expected the first argument to be an object");let s=l(Object.keys(e),t,r),n={};for(let t of s)n[t]=e[t];return n},l.some=(e,t,r)=>{let s=[].concat(e);for(let e of[].concat(t)){let t=i(String(e),r);if(s.some((e=>t(e))))return!0}return!1},l.every=(e,t,r)=>{let s=[].concat(e);for(let e of[].concat(t)){let t=i(String(e),r);if(!s.every((e=>t(e))))return!1}return!0},l.all=(e,t,r)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${s.inspect(e)}"`);return[].concat(t).every((t=>i(t,r)(e)))},l.capture=(e,t,r)=>{let s=o.isWindows(r),n=i.makeRe(String(e),{...r,capture:!0}).exec(s?o.toPosixSlashes(t):t);if(n)return n.slice(1).map((e=>void 0===e?"":e))},l.makeRe=(...e)=>i.makeRe(...e),l.scan=(...e)=>i.scan(...e),l.parse=(e,t)=>{let r=[];for(let s of[].concat(e||[]))for(let e of n(String(s),t))r.push(i.parse(e,t));return r},l.braces=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return t&&!0===t.nobrace||!c(e)?[e]:n(e,t)},l.braceExpand=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return l.braces(e,{...t,expand:!0})},l.hasBraces=c,e.exports=l},3866:e=>{var t=1e3,r=60*t,s=60*r,n=24*s,i=7*n;function o(e,t,r,s){var n=t>=1.5*r;return Math.round(e/r)+" "+s+(n?"s":"")}e.exports=function(e,a){a=a||{};var c,l,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var a=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return a*i;case"days":case"day":case"d":return a*n;case"hours":case"hour":case"hrs":case"hr":case"h":return a*s;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===u&&isFinite(e))return a.long?(c=e,(l=Math.abs(c))>=n?o(c,l,n,"day"):l>=s?o(c,l,s,"hour"):l>=r?o(c,l,r,"minute"):l>=t?o(c,l,t,"second"):c+" ms"):function(e){var i=Math.abs(e);return i>=n?Math.round(e/n)+"d":i>=s?Math.round(e/s)+"h":i>=r?Math.round(e/r)+"m":i>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},9695:e=>{const t=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};e.exports=t,e.exports.default=t},5562:(e,t,r)=>{e.exports=r(8996)},4751:(e,t,r)=>{const s=r(6928),n="\\\\/",i=`[^${n}]`,o="\\.",a="\\/",c="[^/]",l=`(?:${a}|$)`,u=`(?:^|${a})`,p=`${o}{1,2}${l}`,d={DOT_LITERAL:o,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:a,ONE_CHAR:"(?=.)",QMARK:c,END_ANCHOR:l,DOTS_SLASH:p,NO_DOT:`(?!${o})`,NO_DOTS:`(?!${u}${p})`,NO_DOT_SLASH:`(?!${o}{0,1}${l})`,NO_DOTS_SLASH:`(?!${p})`,QMARK_NO_DOT:`[^.${a}]`,STAR:`${c}*?`,START_ANCHOR:u},h={...d,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${o}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${o})`,NO_DOTS:`(?!(?:^|[${n}])${o}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${o}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${o}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`};e.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{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"},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=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?h:d}},5453:(e,t,r)=>{const s=r(4751),n=r(6927),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:o,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:c,REPLACEMENTS:l}=s,u=(e,t)=>{if("function"==typeof t.expandRange)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},p=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,d=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=l[e]||e;const r={...t},h="number"==typeof r.maxLength?Math.min(i,r.maxLength):i;let f=e.length;if(f>h)throw new SyntaxError(`Input length: ${f}, exceeds maximum allowed length: ${h}`);const g={type:"bos",value:"",output:r.prepend||""},m=[g],y=r.capture?"":"?:",b=n.isWindows(t),E=s.globChars(b),w=s.extglobChars(E),{DOT_LITERAL:A,PLUS_LITERAL:S,SLASH_LITERAL:R,ONE_CHAR:C,DOTS_SLASH:v,NO_DOT:T,NO_DOT_SLASH:O,NO_DOTS_SLASH:x,QMARK:k,QMARK_NO_DOT:_,STAR:L,START_ANCHOR:P}=E,I=e=>`(${y}(?:(?!${P}${e.dot?v:A}).)*?)`,$=r.dot?"":T,B=r.dot?k:_;let H=!0===r.bash?I(r):L;r.capture&&(H=`(${H})`),"boolean"==typeof r.noext&&(r.noextglob=r.noext);const F={input:e,index:-1,start:0,dot:!0===r.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:m};e=n.removePrefix(e,F),f=e.length;const D=[],M=[],N=[];let G,U=g;const j=()=>F.index===f-1,K=F.peek=(t=1)=>e[F.index+t],W=F.advance=()=>e[++F.index]||"",z=()=>e.slice(F.index+1),Y=(e="",t=0)=>{F.consumed+=e,F.index+=t},q=e=>{F.output+=null!=e.output?e.output:e.value,Y(e.value)},V=()=>{let e=1;for(;"!"===K()&&("("!==K(2)||"?"===K(3));)W(),F.start++,e++;return e%2!=0&&(F.negated=!0,F.start++,!0)},X=e=>{F[e]++,N.push(e)},Q=e=>{F[e]--,N.pop()},Z=e=>{if("globstar"===U.type){const t=F.braces>0&&("comma"===e.type||"brace"===e.type),r=!0===e.extglob||D.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||r||(F.output=F.output.slice(0,-U.output.length),U.type="star",U.value="*",U.output=H,F.output+=U.output)}if(D.length&&"paren"!==e.type&&(D[D.length-1].inner+=e.value),(e.value||e.output)&&q(e),U&&"text"===U.type&&"text"===e.type)return U.value+=e.value,void(U.output=(U.output||"")+e.value);e.prev=U,m.push(e),U=e},J=(e,t)=>{const s={...w[t],conditions:1,inner:""};s.prev=U,s.parens=F.parens,s.output=F.output;const n=(r.capture?"(":"")+s.open;X("parens"),Z({type:e,value:t,output:F.output?"":C}),Z({type:"paren",extglob:!0,value:W(),output:n}),D.push(s)},ee=e=>{let s,n=e.close+(r.capture?")":"");if("negate"===e.type){let i=H;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(i=I(r)),(i!==H||j()||/^\)+$/.test(z()))&&(n=e.close=`)$))${i}`),e.inner.includes("*")&&(s=z())&&/^\.[^\\/.]+$/.test(s)){const r=d(s,{...t,fastpaths:!1}).output;n=e.close=`)${r})${i})`}"bos"===e.prev.type&&(F.negatedExtglob=!0)}Z({type:"paren",extglob:!0,value:G,output:n}),Q("parens")};if(!1!==r.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let s=!1,i=e.replace(c,((e,t,r,n,i,o)=>"\\"===n?(s=!0,e):"?"===n?t?t+n+(i?k.repeat(i.length):""):0===o?B+(i?k.repeat(i.length):""):k.repeat(r.length):"."===n?A.repeat(r.length):"*"===n?t?t+n+(i?H:""):H:t?e:`\\${e}`));return!0===s&&(i=!0===r.unescape?i.replace(/\\/g,""):i.replace(/\\+/g,(e=>e.length%2==0?"\\\\":e?"\\":""))),i===e&&!0===r.contains?(F.output=e,F):(F.output=n.wrapOutput(i,F,t),F)}for(;!j();){if(G=W(),"\0"===G)continue;if("\\"===G){const e=K();if("/"===e&&!0!==r.bash)continue;if("."===e||";"===e)continue;if(!e){G+="\\",Z({type:"text",value:G});continue}const t=/^\\+/.exec(z());let s=0;if(t&&t[0].length>2&&(s=t[0].length,F.index+=s,s%2!=0&&(G+="\\")),!0===r.unescape?G=W():G+=W(),0===F.brackets){Z({type:"text",value:G});continue}}if(F.brackets>0&&("]"!==G||"["===U.value||"[^"===U.value)){if(!1!==r.posix&&":"===G){const e=U.value.slice(1);if(e.includes("[")&&(U.posix=!0,e.includes(":"))){const e=U.value.lastIndexOf("["),t=U.value.slice(0,e),r=U.value.slice(e+2),s=o[r];if(s){U.value=t+s,F.backtrack=!0,W(),g.output||1!==m.indexOf(U)||(g.output=C);continue}}}("["===G&&":"!==K()||"-"===G&&"]"===K())&&(G=`\\${G}`),"]"!==G||"["!==U.value&&"[^"!==U.value||(G=`\\${G}`),!0===r.posix&&"!"===G&&"["===U.value&&(G="^"),U.value+=G,q({value:G});continue}if(1===F.quotes&&'"'!==G){G=n.escapeRegex(G),U.value+=G,q({value:G});continue}if('"'===G){F.quotes=1===F.quotes?0:1,!0===r.keepQuotes&&Z({type:"text",value:G});continue}if("("===G){X("parens"),Z({type:"paren",value:G});continue}if(")"===G){if(0===F.parens&&!0===r.strictBrackets)throw new SyntaxError(p("opening","("));const e=D[D.length-1];if(e&&F.parens===e.parens+1){ee(D.pop());continue}Z({type:"paren",value:G,output:F.parens?")":"\\)"}),Q("parens");continue}if("["===G){if(!0!==r.nobracket&&z().includes("]"))X("brackets");else{if(!0!==r.nobracket&&!0===r.strictBrackets)throw new SyntaxError(p("closing","]"));G=`\\${G}`}Z({type:"bracket",value:G});continue}if("]"===G){if(!0===r.nobracket||U&&"bracket"===U.type&&1===U.value.length){Z({type:"text",value:G,output:`\\${G}`});continue}if(0===F.brackets){if(!0===r.strictBrackets)throw new SyntaxError(p("opening","["));Z({type:"text",value:G,output:`\\${G}`});continue}Q("brackets");const e=U.value.slice(1);if(!0===U.posix||"^"!==e[0]||e.includes("/")||(G=`/${G}`),U.value+=G,q({value:G}),!1===r.literalBrackets||n.hasRegexChars(e))continue;const t=n.escapeRegex(U.value);if(F.output=F.output.slice(0,-U.value.length),!0===r.literalBrackets){F.output+=t,U.value=t;continue}U.value=`(${y}${t}|${U.value})`,F.output+=U.value;continue}if("{"===G&&!0!==r.nobrace){X("braces");const e={type:"brace",value:G,output:"(",outputIndex:F.output.length,tokensIndex:F.tokens.length};M.push(e),Z(e);continue}if("}"===G){const e=M[M.length-1];if(!0===r.nobrace||!e){Z({type:"text",value:G,output:G});continue}let t=")";if(!0===e.dots){const e=m.slice(),s=[];for(let t=e.length-1;t>=0&&(m.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&s.unshift(e[t].value);t=u(s,r),F.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const r=F.output.slice(0,e.outputIndex),s=F.tokens.slice(e.tokensIndex);e.value=e.output="\\{",G=t="\\}",F.output=r;for(const e of s)F.output+=e.output||e.value}Z({type:"brace",value:G,output:t}),Q("braces"),M.pop();continue}if("|"===G){D.length>0&&D[D.length-1].conditions++,Z({type:"text",value:G});continue}if(","===G){let e=G;const t=M[M.length-1];t&&"braces"===N[N.length-1]&&(t.comma=!0,e="|"),Z({type:"comma",value:G,output:e});continue}if("/"===G){if("dot"===U.type&&F.index===F.start+1){F.start=F.index+1,F.consumed="",F.output="",m.pop(),U=g;continue}Z({type:"slash",value:G,output:R});continue}if("."===G){if(F.braces>0&&"dot"===U.type){"."===U.value&&(U.output=A);const e=M[M.length-1];U.type="dots",U.output+=G,U.value+=G,e.dots=!0;continue}if(F.braces+F.parens===0&&"bos"!==U.type&&"slash"!==U.type){Z({type:"text",value:G,output:A});continue}Z({type:"dot",value:G,output:A});continue}if("?"===G){if((!U||"("!==U.value)&&!0!==r.noextglob&&"("===K()&&"?"!==K(2)){J("qmark",G);continue}if(U&&"paren"===U.type){const e=K();let t=G;if("<"===e&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===U.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(z()))&&(t=`\\${G}`),Z({type:"text",value:G,output:t});continue}if(!0!==r.dot&&("slash"===U.type||"bos"===U.type)){Z({type:"qmark",value:G,output:_});continue}Z({type:"qmark",value:G,output:k});continue}if("!"===G){if(!0!==r.noextglob&&"("===K()&&("?"!==K(2)||!/[!=<:]/.test(K(3)))){J("negate",G);continue}if(!0!==r.nonegate&&0===F.index){V();continue}}if("+"===G){if(!0!==r.noextglob&&"("===K()&&"?"!==K(2)){J("plus",G);continue}if(U&&"("===U.value||!1===r.regex){Z({type:"plus",value:G,output:S});continue}if(U&&("bracket"===U.type||"paren"===U.type||"brace"===U.type)||F.parens>0){Z({type:"plus",value:G});continue}Z({type:"plus",value:S});continue}if("@"===G){if(!0!==r.noextglob&&"("===K()&&"?"!==K(2)){Z({type:"at",extglob:!0,value:G,output:""});continue}Z({type:"text",value:G});continue}if("*"!==G){"$"!==G&&"^"!==G||(G=`\\${G}`);const e=a.exec(z());e&&(G+=e[0],F.index+=e[0].length),Z({type:"text",value:G});continue}if(U&&("globstar"===U.type||!0===U.star)){U.type="star",U.star=!0,U.value+=G,U.output=H,F.backtrack=!0,F.globstar=!0,Y(G);continue}let t=z();if(!0!==r.noextglob&&/^\([^?]/.test(t)){J("star",G);continue}if("star"===U.type){if(!0===r.noglobstar){Y(G);continue}const s=U.prev,n=s.prev,i="slash"===s.type||"bos"===s.type,o=n&&("star"===n.type||"globstar"===n.type);if(!0===r.bash&&(!i||t[0]&&"/"!==t[0])){Z({type:"star",value:G,output:""});continue}const a=F.braces>0&&("comma"===s.type||"brace"===s.type),c=D.length&&("pipe"===s.type||"paren"===s.type);if(!i&&"paren"!==s.type&&!a&&!c){Z({type:"star",value:G,output:""});continue}for(;"/**"===t.slice(0,3);){const r=e[F.index+4];if(r&&"/"!==r)break;t=t.slice(3),Y("/**",3)}if("bos"===s.type&&j()){U.type="globstar",U.value+=G,U.output=I(r),F.output=U.output,F.globstar=!0,Y(G);continue}if("slash"===s.type&&"bos"!==s.prev.type&&!o&&j()){F.output=F.output.slice(0,-(s.output+U.output).length),s.output=`(?:${s.output}`,U.type="globstar",U.output=I(r)+(r.strictSlashes?")":"|$)"),U.value+=G,F.globstar=!0,F.output+=s.output+U.output,Y(G);continue}if("slash"===s.type&&"bos"!==s.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";F.output=F.output.slice(0,-(s.output+U.output).length),s.output=`(?:${s.output}`,U.type="globstar",U.output=`${I(r)}${R}|${R}${e})`,U.value+=G,F.output+=s.output+U.output,F.globstar=!0,Y(G+W()),Z({type:"slash",value:"/",output:""});continue}if("bos"===s.type&&"/"===t[0]){U.type="globstar",U.value+=G,U.output=`(?:^|${R}|${I(r)}${R})`,F.output=U.output,F.globstar=!0,Y(G+W()),Z({type:"slash",value:"/",output:""});continue}F.output=F.output.slice(0,-U.output.length),U.type="globstar",U.output=I(r),U.value+=G,F.output+=U.output,F.globstar=!0,Y(G);continue}const s={type:"star",value:G,output:H};!0!==r.bash?!U||"bracket"!==U.type&&"paren"!==U.type||!0!==r.regex?(F.index!==F.start&&"slash"!==U.type&&"dot"!==U.type||("dot"===U.type?(F.output+=O,U.output+=O):!0===r.dot?(F.output+=x,U.output+=x):(F.output+=$,U.output+=$),"*"!==K()&&(F.output+=C,U.output+=C)),Z(s)):(s.output=G,Z(s)):(s.output=".*?","bos"!==U.type&&"slash"!==U.type||(s.output=$+s.output),Z(s))}for(;F.brackets>0;){if(!0===r.strictBrackets)throw new SyntaxError(p("closing","]"));F.output=n.escapeLast(F.output,"["),Q("brackets")}for(;F.parens>0;){if(!0===r.strictBrackets)throw new SyntaxError(p("closing",")"));F.output=n.escapeLast(F.output,"("),Q("parens")}for(;F.braces>0;){if(!0===r.strictBrackets)throw new SyntaxError(p("closing","}"));F.output=n.escapeLast(F.output,"{"),Q("braces")}if(!0===r.strictSlashes||"star"!==U.type&&"bracket"!==U.type||Z({type:"maybe_slash",value:"",output:`${R}?`}),!0===F.backtrack){F.output="";for(const e of F.tokens)F.output+=null!=e.output?e.output:e.value,e.suffix&&(F.output+=e.suffix)}return F};d.fastpaths=(e,t)=>{const r={...t},o="number"==typeof r.maxLength?Math.min(i,r.maxLength):i,a=e.length;if(a>o)throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${o}`);e=l[e]||e;const c=n.isWindows(t),{DOT_LITERAL:u,SLASH_LITERAL:p,ONE_CHAR:d,DOTS_SLASH:h,NO_DOT:f,NO_DOTS:g,NO_DOTS_SLASH:m,STAR:y,START_ANCHOR:b}=s.globChars(c),E=r.dot?g:f,w=r.dot?m:f,A=r.capture?"":"?:";let S=!0===r.bash?".*?":y;r.capture&&(S=`(${S})`);const R=e=>!0===e.noglobstar?S:`(${A}(?:(?!${b}${e.dot?h:u}).)*?)`,C=e=>{switch(e){case"*":return`${E}${d}${S}`;case".*":return`${u}${d}${S}`;case"*.*":return`${E}${S}${u}${d}${S}`;case"*/*":return`${E}${S}${p}${d}${w}${S}`;case"**":return E+R(r);case"**/*":return`(?:${E}${R(r)}${p})?${w}${d}${S}`;case"**/*.*":return`(?:${E}${R(r)}${p})?${w}${S}${u}${d}${S}`;case"**/.*":return`(?:${E}${R(r)}${p})?${u}${d}${S}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const r=C(t[1]);if(!r)return;return r+u+t[2]}}},v=n.removePrefix(e,{negated:!1,prefix:""});let T=C(v);return T&&!0!==r.strictSlashes&&(T+=`${p}?`),T},e.exports=d},8996:(e,t,r)=>{const s=r(6928),n=r(3297),i=r(5453),o=r(6927),a=r(4751),c=(e,t,r=!1)=>{if(Array.isArray(e)){const s=e.map((e=>c(e,t,r))),n=e=>{for(const t of s){const r=t(e);if(r)return r}return!1};return n}const s=(n=e)&&"object"==typeof n&&!Array.isArray(n)&&e.tokens&&e.input;var n;if(""===e||"string"!=typeof e&&!s)throw new TypeError("Expected pattern to be a non-empty string");const i=t||{},a=o.isWindows(t),l=s?c.compileRe(e,t):c.makeRe(e,t,!1,!0),u=l.state;delete l.state;let p=()=>!1;if(i.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};p=c(i.ignore,e,r)}const d=(r,s=!1)=>{const{isMatch:n,match:o,output:d}=c.test(r,l,t,{glob:e,posix:a}),h={glob:e,state:u,regex:l,posix:a,input:r,output:d,match:o,isMatch:n};return"function"==typeof i.onResult&&i.onResult(h),!1===n?(h.isMatch=!1,!!s&&h):p(r)?("function"==typeof i.onIgnore&&i.onIgnore(h),h.isMatch=!1,!!s&&h):("function"==typeof i.onMatch&&i.onMatch(h),!s||h)};return r&&(d.state=u),d};c.test=(e,t,r,{glob:s,posix:n}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const i=r||{},a=i.format||(n?o.toPosixSlashes:null);let l=e===s,u=l&&a?a(e):e;return!1===l&&(u=a?a(e):e,l=u===s),!1!==l&&!0!==i.capture||(l=!0===i.matchBase||!0===i.basename?c.matchBase(e,t,r,n):t.exec(u)),{isMatch:Boolean(l),match:l,output:u}},c.matchBase=(e,t,r,n=o.isWindows(r))=>(t instanceof RegExp?t:c.makeRe(t,r)).test(s.basename(e)),c.isMatch=(e,t,r)=>c(t,r)(e),c.parse=(e,t)=>Array.isArray(e)?e.map((e=>c.parse(e,t))):i(e,{...t,fastpaths:!1}),c.scan=(e,t)=>n(e,t),c.compileRe=(e,t,r=!1,s=!1)=>{if(!0===r)return e.output;const n=t||{},i=n.contains?"":"^",o=n.contains?"":"$";let a=`${i}(?:${e.output})${o}`;e&&!0===e.negated&&(a=`^(?!${a}).*$`);const l=c.toRegex(a,t);return!0===s&&(l.state=e),l},c.makeRe=(e,t={},r=!1,s=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(n.output=i.fastpaths(e,t)),n.output||(n=i(e,t)),c.compileRe(n,t,r,s)},c.toRegex=(e,t)=>{try{const r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},c.constants=a,e.exports=c},3297:(e,t,r)=>{const s=r(6927),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:o,CHAR_COMMA:a,CHAR_DOT:c,CHAR_EXCLAMATION_MARK:l,CHAR_FORWARD_SLASH:u,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:d,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:f,CHAR_QUESTION_MARK:g,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:b}=r(4751),E=e=>e===u||e===o,w=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};e.exports=(e,t)=>{const r=t||{},A=e.length-1,S=!0===r.parts||!0===r.scanToEnd,R=[],C=[],v=[];let T,O,x=e,k=-1,_=0,L=0,P=!1,I=!1,$=!1,B=!1,H=!1,F=!1,D=!1,M=!1,N=!1,G=!1,U=0,j={value:"",depth:0,isGlob:!1};const K=()=>k>=A,W=()=>(T=O,x.charCodeAt(++k));for(;k<A;){let e;if(O=W(),O!==o){if(!0===F||O===p){for(U++;!0!==K()&&(O=W());)if(O!==o)if(O!==p){if(!0!==F&&O===c&&(O=W())===c){if(P=j.isBrace=!0,$=j.isGlob=!0,G=!0,!0===S)continue;break}if(!0!==F&&O===a){if(P=j.isBrace=!0,$=j.isGlob=!0,G=!0,!0===S)continue;break}if(O===m&&(U--,0===U)){F=!1,P=j.isBrace=!0,G=!0;break}}else U++;else D=j.backslashes=!0,W();if(!0===S)continue;break}if(O!==u){if(!0!==r.noext&&!0==(O===f||O===i||O===n||O===g||O===l)&&x.charCodeAt(k+1)===d){if($=j.isGlob=!0,B=j.isExtglob=!0,G=!0,O===l&&k===_&&(N=!0),!0===S){for(;!0!==K()&&(O=W());)if(O!==o){if(O===y){$=j.isGlob=!0,G=!0;break}}else D=j.backslashes=!0,O=W();continue}break}if(O===n){if(T===n&&(H=j.isGlobstar=!0),$=j.isGlob=!0,G=!0,!0===S)continue;break}if(O===g){if($=j.isGlob=!0,G=!0,!0===S)continue;break}if(O===h){for(;!0!==K()&&(e=W());)if(e!==o){if(e===b){I=j.isBracket=!0,$=j.isGlob=!0,G=!0;break}}else D=j.backslashes=!0,W();if(!0===S)continue;break}if(!0===r.nonegate||O!==l||k!==_){if(!0!==r.noparen&&O===d){if($=j.isGlob=!0,!0===S){for(;!0!==K()&&(O=W());)if(O!==d){if(O===y){G=!0;break}}else D=j.backslashes=!0,O=W();continue}break}if(!0===$){if(G=!0,!0===S)continue;break}}else M=j.negated=!0,_++}else{if(R.push(k),C.push(j),j={value:"",depth:0,isGlob:!1},!0===G)continue;if(T===c&&k===_+1){_+=2;continue}L=k+1}}else D=j.backslashes=!0,O=W(),O===p&&(F=!0)}!0===r.noext&&(B=!1,$=!1);let z=x,Y="",q="";_>0&&(Y=x.slice(0,_),x=x.slice(_),L-=_),z&&!0===$&&L>0?(z=x.slice(0,L),q=x.slice(L)):!0===$?(z="",q=x):z=x,z&&""!==z&&"/"!==z&&z!==x&&E(z.charCodeAt(z.length-1))&&(z=z.slice(0,-1)),!0===r.unescape&&(q&&(q=s.removeBackslashes(q)),z&&!0===D&&(z=s.removeBackslashes(z)));const V={prefix:Y,input:e,start:_,base:z,glob:q,isBrace:P,isBracket:I,isGlob:$,isExtglob:B,isGlobstar:H,negated:M,negatedExtglob:N};if(!0===r.tokens&&(V.maxDepth=0,E(O)||C.push(j),V.tokens=C),!0===r.parts||!0===r.tokens){let t;for(let s=0;s<R.length;s++){const n=t?t+1:_,i=R[s],o=e.slice(n,i);r.tokens&&(0===s&&0!==_?(C[s].isPrefix=!0,C[s].value=Y):C[s].value=o,w(C[s]),V.maxDepth+=C[s].depth),0===s&&""===o||v.push(o),t=i}if(t&&t+1<e.length){const s=e.slice(t+1);v.push(s),r.tokens&&(C[C.length-1].value=s,w(C[C.length-1]),V.maxDepth+=C[C.length-1].depth)}V.slashes=R,V.parts=v}return V}},6927:(e,t,r)=>{const s=r(6928),n="win32"===process.platform,{REGEX_BACKSLASH:i,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:c}=r(4751);t.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t.hasRegexChars=e=>a.test(e),t.isRegexChar=e=>1===e.length&&t.hasRegexChars(e),t.escapeRegex=e=>e.replace(c,"\\$1"),t.toPosixSlashes=e=>e.replace(i,"/"),t.removeBackslashes=e=>e.replace(o,(e=>"\\"===e?"":e)),t.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},t.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===n||"\\"===s.sep,t.escapeLast=(e,r,s)=>{const n=e.lastIndexOf(r,s);return-1===n?e:"\\"===e[n-1]?t.escapeLast(e,r,n-1):`${e.slice(0,n)}\\${e.slice(n)}`},t.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r},t.wrapOutput=(e,t={},r={})=>{let s=`${r.contains?"":"^"}(?:${e})${r.contains?"":"$"}`;return!0===t.negated&&(s=`(?:^(?!${s}).*$)`),s}},6454:(e,t,r)=>{String.prototype.startsWith||(String.prototype.startsWith=function(e){return this.substring(0,e.length)===e});var s=r(6179);e.exports=function(e,t,r){var n,i,o;if("function"==typeof t&&(r=t,t=void 0),"function"!=typeof r)return n=s,i=e,o=t,new Promise((function(e,t){n(i,o,(function(r,s){if(r)return t(r);e(s)}))}));s(e,t,r)}},2775:(e,t,r)=>{var s=r(5317).spawn;e.exports=function(e,t,r,n){"function"==typeof r&&(n=r,r=void 0);var i=!1,o=s(e,t,r),a="",c="";o.stdout.on("data",(function(e){a+=e.toString()})),o.stderr.on("data",(function(e){c+=e.toString()})),o.on("error",(function(e){i||(i=!0,n(new Error(e)))})),o.on("close",(function(e){if(!i){if(i=!0,c=function(e){if(e)return(e=(e=e.trim()).replace(/your \d+x\d+ screen size is bogus\. expect trouble/gi,"")).trim()}(c))return n(new Error(c));n(null,a,e)}}))}},4182:(e,t,r)=>{var s=r(857),n={ps:()=>r(433),wmic:()=>r(7868)},i=s.platform();i.startsWith("win")&&(i="win");var o={darwin:"ps",sunos:"ps",freebsd:"ps",netbsd:"ps",win:"wmic",linux:"ps",aix:"ps"}[i];e.exports=function(e){void 0===o&&e(new Error(s.platform()+" is not supported yet, please open an issue (https://github.com/simonepri/pidtree)")),n[o]()(e)}},6179:(e,t,r)=>{var s=r(4182);e.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),"object"!=typeof t&&(t={}),e=parseInt(e,10),isNaN(e)||e<-1?r(new TypeError("The pid provided is invalid")):s((function(s,n){if(s)r(s);else if(-1!==e){for(var i,o=0;o<n.length;o++){if(n[o][1]===e){i=t.advanced?{ppid:n[o][0],pid:e}:e;break}n[o][0]===e&&(i=t.advanced?{pid:e}:e)}if(i){for(var a={};n.length>0;){var c=n.pop();a[c[0]]?a[c[0]].push(c[1]):a[c[0]]=[c[1]]}for(var l=0,u=[i];l<u.length;){var p=t.advanced?u[l++].pid:u[l++];if(a[p]){for(var d=a[p].length,h=0;h<d;h++)u.push(t.advanced?{ppid:p,pid:a[p][h]}:a[p][h]);delete a[p]}}t.root||u.shift(),r(null,u)}else r(new Error("No matching pid found"))}else{for(var f=0;f<n.length;f++)n[f]=t.advanced?{ppid:n[f][0],pid:n[f][1]}:n[f]=n[f][1];r(null,n)}}))}},433:(e,t,r)=>{var s=r(857),n=r(2775);e.exports=function(e){n("ps",["-A","-o","ppid,pid"],(function(t,r,n){if(t)return e(t);if(0!==n)return e(new Error("pidtree ps command exited with code "+n));try{r=r.split(s.EOL);for(var i=[],o=1;o<r.length;o++)r[o]=r[o].trim(),r[o]&&(r[o]=r[o].split(/\s+/),r[o][0]=parseInt(r[o][0],10),r[o][1]=parseInt(r[o][1],10),i.push(r[o]));e(null,i)}catch(t){e(t)}}))}},7868:(e,t,r)=>{var s=r(857),n=r(2775);e.exports=function(e){n("wmic",["PROCESS","get","ParentProcessId,ProcessId"],{windowsHide:!0,windowsVerbatimArguments:!0},(function(t,r,n){if(t)e(t);else if(0===n)try{r=r.split(s.EOL);for(var i=[],o=1;o<r.length;o++)r[o]=r[o].trim(),r[o]&&(r[o]=r[o].split(/\s+/),r[o][0]=parseInt(r[o][0],10),r[o][1]=parseInt(r[o][1],10),i.push(r[o]));e(null,i)}catch(t){e(t)}else e(new Error("pidtree wmic command exited with code "+n))}))}},9018:e=>{function t(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){if((e=e||{}).circles)return function(e){const r=[],s=[],n=new Map;if(n.set(Date,(e=>new Date(e))),n.set(Map,((e,t)=>new Map(o(Array.from(e),t)))),n.set(Set,((e,t)=>new Set(o(Array.from(e),t)))),e.constructorHandlers)for(const t of e.constructorHandlers)n.set(t[0],t[1]);let i=null;return e.proto?function e(a){if("object"!=typeof a||null===a)return a;if(Array.isArray(a))return o(a,e);if(a.constructor!==Object&&(i=n.get(a.constructor)))return i(a,e);const c={};r.push(a),s.push(c);for(const o in a){const l=a[o];if("object"!=typeof l||null===l)c[o]=l;else if(l.constructor!==Object&&(i=n.get(l.constructor)))c[o]=i(l,e);else if(ArrayBuffer.isView(l))c[o]=t(l);else{const t=r.indexOf(l);c[o]=-1!==t?s[t]:e(l)}}return r.pop(),s.pop(),c}:function e(a){if("object"!=typeof a||null===a)return a;if(Array.isArray(a))return o(a,e);if(a.constructor!==Object&&(i=n.get(a.constructor)))return i(a,e);const c={};r.push(a),s.push(c);for(const o in a){if(!1===Object.hasOwnProperty.call(a,o))continue;const l=a[o];if("object"!=typeof l||null===l)c[o]=l;else if(l.constructor!==Object&&(i=n.get(l.constructor)))c[o]=i(l,e);else if(ArrayBuffer.isView(l))c[o]=t(l);else{const t=r.indexOf(l);c[o]=-1!==t?s[t]:e(l)}}return r.pop(),s.pop(),c};function o(e,o){const a=Object.keys(e),c=new Array(a.length);for(let l=0;l<a.length;l++){const u=a[l],p=e[u];if("object"!=typeof p||null===p)c[u]=p;else if(p.constructor!==Object&&(i=n.get(p.constructor)))c[u]=i(p,o);else if(ArrayBuffer.isView(p))c[u]=t(p);else{const e=r.indexOf(p);c[u]=-1!==e?s[e]:o(p)}}return c}}(e);const r=new Map;if(r.set(Date,(e=>new Date(e))),r.set(Map,((e,t)=>new Map(n(Array.from(e),t)))),r.set(Set,((e,t)=>new Set(n(Array.from(e),t)))),e.constructorHandlers)for(const t of e.constructorHandlers)r.set(t[0],t[1]);let s=null;return e.proto?function e(i){if("object"!=typeof i||null===i)return i;if(Array.isArray(i))return n(i,e);if(i.constructor!==Object&&(s=r.get(i.constructor)))return s(i,e);const o={};for(const n in i){const a=i[n];"object"!=typeof a||null===a?o[n]=a:a.constructor!==Object&&(s=r.get(a.constructor))?o[n]=s(a,e):ArrayBuffer.isView(a)?o[n]=t(a):o[n]=e(a)}return o}:function e(i){if("object"!=typeof i||null===i)return i;if(Array.isArray(i))return n(i,e);if(i.constructor!==Object&&(s=r.get(i.constructor)))return s(i,e);const o={};for(const n in i){if(!1===Object.hasOwnProperty.call(i,n))continue;const a=i[n];"object"!=typeof a||null===a?o[n]=a:a.constructor!==Object&&(s=r.get(a.constructor))?o[n]=s(a,e):ArrayBuffer.isView(a)?o[n]=t(a):o[n]=e(a)}return o};function n(e,n){const i=Object.keys(e),o=new Array(i.length);for(let a=0;a<i.length;a++){const c=i[a],l=e[c];"object"!=typeof l||null===l?o[c]=l:l.constructor!==Object&&(s=r.get(l.constructor))?o[c]=s(l,n):ArrayBuffer.isView(l)?o[c]=t(l):o[c]=n(l)}return o}}},600:(e,t,r)=>{const s=r(7257);e.exports=(e="")=>{const t=e.match(s);if(!t)return null;const[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i}},7257:e=>{e.exports=/^#!(.*)/},1754:(e,t,r)=>{const s=r(857),n=r(4891),i=process.env;let o;function a(e){const t=function(e){if(!1===o)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(e&&!e.isTTY&&!0!==o)return 0;const t=o?1:0;if("win32"===process.platform){const e=s.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in i))||"codeship"===i.CI_NAME?1:t;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("truecolor"===i.COLORTERM)return 3;if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}n("no-color")||n("no-colors")||n("color=false")?o=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(o=!0),"FORCE_COLOR"in i&&(o=0===i.FORCE_COLOR.length||0!==parseInt(i.FORCE_COLOR,10)),e.exports={supportsColor:a,stdout:a(process.stdout),stderr:a(process.stderr)}},4710:(e,t,r)=>{const s=r(9789),n=(e,t,r)=>{if(!1===s(e))throw new TypeError("toRegexRange: expected the first argument to be a number");if(void 0===t||e===t)return String(e);if(!1===s(t))throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...r};"boolean"==typeof i.strictZeros&&(i.relaxZeros=!1===i.strictZeros);let c=e+":"+t+"="+String(i.relaxZeros)+String(i.shorthand)+String(i.capture)+String(i.wrap);if(n.cache.hasOwnProperty(c))return n.cache[c].result;let l=Math.min(e,t),u=Math.max(e,t);if(1===Math.abs(l-u)){let r=e+"|"+t;return i.capture?`(${r})`:!1===i.wrap?r:`(?:${r})`}let p=h(e)||h(t),d={min:e,max:t,a:l,b:u},f=[],g=[];return p&&(d.isPadded=p,d.maxLen=String(d.max).length),l<0&&(g=o(u<0?Math.abs(u):1,Math.abs(l),d,i),l=d.a=0),u>=0&&(f=o(l,u,d,i)),d.negatives=g,d.positives=f,d.result=function(e,t){let r=a(e,t,"-",!1)||[],s=a(t,e,"",!1)||[],n=a(e,t,"-?",!0)||[];return r.concat(n).concat(s).join("|")}(g,f),!0===i.capture?d.result=`(${d.result})`:!1!==i.wrap&&f.length+g.length>1&&(d.result=`(?:${d.result})`),n.cache[c]=d,d.result};function i(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let s=function(e,t){let r=[];for(let s=0;s<e.length;s++)r.push([e[s],t[s]]);return r}(e,t),n=s.length,i="",o=0;for(let e=0;e<n;e++){let[t,r]=s[e];t===r?i+=t:"0"!==t||"9"!==r?i+=`[${a=t}${(c=r)-a==1?"":"-"}${c}]`:o++}var a,c;return o&&(i+=!0===r.shorthand?"\\d":"[0-9]"),{pattern:i,count:[o],digits:n}}function o(e,t,r,s){let n,o=function(e,t){let r=1,s=1,n=u(e,r),i=new Set([t]);for(;e<=n&&n<=t;)i.add(n),r+=1,n=u(e,r);for(n=p(t+1,s)-1;e<n&&n<=t;)i.add(n),s+=1,n=p(t+1,s)-1;return i=[...i],i.sort(c),i}(e,t),a=[],l=e;for(let e=0;e<o.length;e++){let t=o[e],c=i(String(l),String(t),s),u="";r.isPadded||!n||n.pattern!==c.pattern?(r.isPadded&&(u=f(t,r,s)),c.string=u+c.pattern+d(c.count),a.push(c),l=t+1,n=c):(n.count.length>1&&n.count.pop(),n.count.push(c.count[0]),n.string=n.pattern+d(n.count),l=t+1)}return a}function a(e,t,r,s,n){let i=[];for(let n of e){let{string:e}=n;s||l(t,"string",e)||i.push(r+e),s&&l(t,"string",e)&&i.push(r+e)}return i}function c(e,t){return e>t?1:t>e?-1:0}function l(e,t,r){return e.some((e=>e[t]===r))}function u(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function p(e,t){return e-e%Math.pow(10,t)}function d(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function h(e){return/^-?(0+)\d/.test(e)}function f(e,t,r){if(!t.isPadded)return e;let s=Math.abs(t.maxLen-String(e).length),n=!1!==r.relaxZeros;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}}`}}n.cache={},n.clearCache=()=>n.cache={},e.exports=n},1905:(e,t,r)=>{const s="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,n=r(6928),i=s?";":":",o=r(9344),a=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),c=(e,t)=>{const r=t.colon||i,n=e.match(/\//)||s&&e.match(/\\/)?[""]:[...s?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=s?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=s?o.split(r):[""];return s&&-1!==e.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:n,pathExt:a,pathExtExe:o}},l=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:s,pathExt:i,pathExtExe:l}=c(e,t),u=[],p=r=>new Promise(((i,o)=>{if(r===s.length)return t.all&&u.length?i(u):o(a(e));const c=s[r],l=/^".*"$/.test(c)?c.slice(1,-1):c,p=n.join(l,e),h=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;i(d(h,r,0))})),d=(e,r,s)=>new Promise(((n,a)=>{if(s===i.length)return n(p(r+1));const c=i[s];o(e+c,{pathExt:l},((i,o)=>{if(!i&&o){if(!t.all)return n(e+c);u.push(e+c)}return n(d(e,r,s+1))}))}));return r?p(0).then((e=>r(null,e)),r):p(0)};e.exports=l,l.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:s,pathExtExe:i}=c(e,t),l=[];for(let a=0;a<r.length;a++){const c=r[a],u=/^".*"$/.test(c)?c.slice(1,-1):c,p=n.join(u,e),d=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;for(let e=0;e<s.length;e++){const r=d+s[e];try{if(o.sync(r,{pathExt:i})){if(!t.all)return r;l.push(r)}}catch(e){}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw a(e)}},9947:(e,t,r)=>{e.exports=r.p+"../../node_modules/.pnpm/lint-staged@15.4.3_patch_hash=3cuz7yfxpc6xae4vidd2fzcycu/node_modules/lint-staged/package.json"},2312:(e,t,r)=>{r.d(t,{default:()=>Dn});var s=r(8770),n=r(4573),i=r(6760),o=r(1421),a=r(1708),c=r(6507),l=r(3136),u=r(7235);const p=({env:e=a.env,...t}={})=>{e={...e};const r=(0,u.A)({env:e});return t.path=e[r],e[r]=(({cwd:e=a.cwd(),path:t=a.env[(0,u.A)()],preferLocal:r=!0,execPath:s=a.execPath,addExecPath:n=!0}={})=>{const o=e instanceof URL?(0,l.fileURLToPath)(e):e,c=i.resolve(o),p=[];return r&&((e,t)=>{let r;for(;r!==t;)e.push(i.join(t,"node_modules/.bin")),r=t,t=i.resolve(t,"..")})(p,c),n&&((e,t,r)=>{const s=t instanceof URL?(0,l.fileURLToPath)(t):t;e.push(i.resolve(r,s,".."))})(p,s,c),[...p,t].join(i.delimiter)})(t),e},d=(e,t,r,s)=>{if("length"===r||"prototype"===r)return;if("arguments"===r||"caller"===r)return;const n=Object.getOwnPropertyDescriptor(e,r),i=Object.getOwnPropertyDescriptor(t,r);!h(n,i)&&s||Object.defineProperty(e,r,i)},h=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},f=(e,t)=>`/* Wrapped ${e}*/\n${t}`,g=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),m=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name");const y=new WeakMap,b=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,s=0;const n=e.displayName||e.name||"<anonymous>",i=function(...o){if(y.set(i,++s),1===s)r=e.apply(this,o),e=null;else if(!0===t.throw)throw new Error(`Function \`${n}\` can only be called once`);return r};return function(e,t,{ignoreNonConfigurable:r=!1}={}){const{name:s}=e;for(const s of Reflect.ownKeys(t))d(e,t,s,r);((e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)})(e,t),((e,t,r)=>{const s=""===r?"":`with ${r.trim()}() `,n=f.bind(null,s,t.toString());Object.defineProperty(n,"name",m),Object.defineProperty(e,"toString",{...g,value:n})})(e,t,s)}(i,e),y.set(i,s),i};b.callCount=e=>{if(!y.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return y.get(e)};const E=b;var w=r(8161);const A=(e,t)=>({name:`SIGRT${t+1}`,number:S+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),S=34,R=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],C=()=>{const e=(()=>{const e=64-S+1;return Array.from({length:e},A)})();return[...R,...e].map(v)},v=({name:e,number:t,description:r,action:s,forced:n=!1,standard:i})=>{const{signals:{[e]:o}}=w.constants,a=void 0!==o;return{name:e,number:a?o:t,description:r,supported:a,action:s,forced:n,standard:i}},T=({name:e,number:t,description:r,supported:s,action:n,forced:i,standard:o})=>[e,{name:e,number:t,description:r,supported:s,action:n,forced:i,standard:o}],O=(()=>{const e=C();return Object.fromEntries(e.map(T))})(),x=(e,t)=>{const r=t.find((({name:t})=>w.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))},k=((()=>{const e=C(),t=Array.from({length:65},((t,r)=>((e,t)=>{const r=x(e,t);if(void 0===r)return{};const{name:s,description:n,supported:i,action:o,forced:a,standard:c}=r;return{[e]:{name:s,number:e,description:n,supported:i,action:o,forced:a,standard:c}}})(r,e)));Object.assign({},...t)})(),({stdout:e,stderr:t,all:r,error:s,signal:n,exitCode:i,command:o,escapedCommand:c,timedOut:l,isCanceled:u,killed:p,parsed:{options:{timeout:d,cwd:h=a.cwd()}}})=>{i=null===i?void 0:i;const f=void 0===(n=null===n?void 0:n)?void 0:O[n].description,g=(({timedOut:e,timeout:t,errorCode:r,signal:s,signalDescription:n,exitCode:i,isCanceled:o})=>e?`timed out after ${t} milliseconds`:o?"was canceled":void 0!==r?`failed with ${r}`:void 0!==s?`was killed with ${s} (${n})`:void 0!==i?`failed with exit code ${i}`:"failed")({timedOut:l,timeout:d,errorCode:s&&s.code,signal:n,signalDescription:f,exitCode:i,isCanceled:u}),m=`Command ${g}: ${o}`,y="[object Error]"===Object.prototype.toString.call(s),b=y?`${m}\n${s.message}`:m,E=[b,t,e].filter(Boolean).join("\n");return y?(s.originalMessage=s.message,s.message=E):s=new Error(E),s.shortMessage=b,s.command=o,s.escapedCommand=c,s.exitCode=i,s.signal=n,s.signalDescription=f,s.stdout=e,s.stderr=t,s.cwd=h,void 0!==r&&(s.all=r),"bufferedData"in s&&delete s.bufferedData,s.failed=!0,s.timedOut=Boolean(l),s.isCanceled=u,s.killed=p&&!l,s}),_=["stdin","stdout","stderr"];var L=r(7017);const P=(e,t="SIGTERM",r={})=>{const s=e(t);return I(e,t,r,s),s},I=(e,t,r,s)=>{if(!$(t,r,s))return;const n=H(r),i=setTimeout((()=>{e("SIGKILL")}),n);i.unref&&i.unref()},$=(e,{forceKillAfterTimeout:t},r)=>B(e)&&!1!==t&&r,B=e=>e===w.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),H=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},F=(e,t)=>{e.kill()&&(t.isCanceled=!0)};var D=r(3024);function M(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe}function N(e){return M(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState}const G=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,D.createWriteStream)(r)),e;if(N(r))return e[t].pipe(r),e;if(!(e=>e instanceof o.ChildProcess&&"function"==typeof e.then)(r))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!N(r.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r};var U=r(8500);const j=async(e,{init:t,convertChunk:r,getSize:s,truncateChunk:n,addChunk:i,getFinalChunk:o,finalize:a},{maxBuffer:c=Number.POSITIVE_INFINITY}={})=>{if(!Y(e))throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");const l=t();l.length=0;try{for await(const t of e){const e=r[q(t)](t,l);W({convertedChunk:e,state:l,getSize:s,truncateChunk:n,addChunk:i,maxBuffer:c})}return K({state:l,convertChunk:r,getSize:s,truncateChunk:n,addChunk:i,getFinalChunk:o,maxBuffer:c}),a(l)}catch(e){throw e.bufferedData=a(l),e}},K=({state:e,getSize:t,truncateChunk:r,addChunk:s,getFinalChunk:n,maxBuffer:i})=>{const o=n(e);void 0!==o&&W({convertedChunk:o,state:e,getSize:t,truncateChunk:r,addChunk:s,maxBuffer:i})},W=({convertedChunk:e,state:t,getSize:r,truncateChunk:s,addChunk:n,maxBuffer:i})=>{const o=r(e),a=t.length+o;if(a<=i)return void z(e,t,n,a);const c=s(e,i-t.length);throw void 0!==c&&z(c,t,n,i),new X},z=(e,t,r,s)=>{t.contents=r(e,t,s),t.length=s},Y=e=>"object"==typeof e&&null!==e&&"function"==typeof e[Symbol.asyncIterator],q=e=>{const t=typeof e;if("string"===t)return"string";if("object"!==t||null===e)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";const r=V.call(e);return"[object ArrayBuffer]"===r?"arrayBuffer":"[object DataView]"===r?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&"[object ArrayBuffer]"===V.call(e.buffer)?"typedArray":"others"},{toString:V}=Object.prototype;class X extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const Q=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},Z=e=>e.length,J=new TextEncoder,ee=e=>new Uint8Array(e),te=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),re=e=>se**Math.ceil(Math.log(e)/Math.log(se)),se=2,ne=()=>"resize"in ArrayBuffer.prototype,ie={init:()=>({contents:new ArrayBuffer(0)}),convertChunk:{string:e=>J.encode(e),buffer:ee,arrayBuffer:ee,dataView:te,typedArray:te,others:Q},getSize:Z,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t,length:r},s)=>{const n=ne()?((e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;const r=new ArrayBuffer(t,{maxByteLength:re(t)});return new Uint8Array(r).set(new Uint8Array(e),0),r})(t,s):((e,t)=>{if(t<=e.byteLength)return e;const r=new ArrayBuffer(re(t));return new Uint8Array(r).set(new Uint8Array(e),0),r})(t,s);return new Uint8Array(n).set(e,r),n},getFinalChunk:()=>{},finalize:({contents:e,length:t})=>ne()?e:e.slice(0,t)};async function oe(e,t){if(!("Buffer"in globalThis))throw new Error("getStreamAsBuffer() is only supported in Node.js");try{return ae(await async function(e,t){return j(e,ie,t)}(e,t))}catch(e){throw void 0!==e.bufferedData&&(e.bufferedData=ae(e.bufferedData)),e}}const ae=e=>globalThis.Buffer.from(e),ce=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),le={init:()=>({contents:"",textDecoder:new TextDecoder}),convertChunk:{string:e=>e,buffer:ce,arrayBuffer:ce,dataView:ce,typedArray:ce,others:Q},getSize:Z,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t})=>t+e,getFinalChunk:({textDecoder:e})=>{const t=e.decode();return""===t?void 0:t},finalize:({contents:e})=>e};var ue=r(1404);const pe=e=>{if(void 0!==e)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},de=async(e,t)=>{if(e&&void 0!==t){await(0,U.setTimeout)(0),e.destroy();try{return await t}catch(e){return e.bufferedData}}},he=(e,{encoding:t,buffer:r,maxBuffer:s})=>{if(e&&r)return"utf8"===t||"utf-8"===t?async function(e,t){return j(e,le,t)}(e,{maxBuffer:s}):null===t||"buffer"===t?oe(e,{maxBuffer:s}):fe(e,s,t)},fe=async(e,t,r)=>(await oe(e,{maxBuffer:t})).toString(r),ge=(async()=>{})().constructor.prototype,me=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(ge,e)])),ye=(e,t)=>{for(const[r,s]of me){const n="function"==typeof t?(...e)=>Reflect.apply(s.value,t(),e):s.value.bind(t);Reflect.defineProperty(e,r,{...s,value:n})}},be=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Ee=/^[\w.-]+$/,we=(e,t)=>be(e,t).join(" "),Ae=(e,t)=>be(e,t).map((e=>(e=>"string"!=typeof e||Ee.test(e)?e:`"${e.replaceAll('"','\\"')}"`)(e))).join(" "),Se=/ +/g,Re=e=>{const t=typeof e;if("string"===t)return e;if("number"===t)return String(e);if("object"===t&&null!==e&&!(e instanceof o.ChildProcess)&&"stdout"in e){const t=typeof e.stdout;if("string"===t)return e.stdout;if(n.Buffer.isBuffer(e.stdout))return e.stdout.toString();throw new TypeError(`Unexpected "${t}" stdout in template expression`)}throw new TypeError(`Unexpected "${t}" in template expression`)},Ce=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],ve=({templates:e,expressions:t,tokens:r,index:s,template:n})=>{const i=n??e.raw[s],o=i.split(Se).filter(Boolean),a=Ce(r,o,i.startsWith(" "));if(s===t.length)return a;const c=t[s],l=Array.isArray(c)?c.map((e=>Re(e))):[Re(c)];return Ce(a,l,i.endsWith(" "))},Te=(e,t)=>{let r=[];for(const[s,n]of e.entries())r=ve({templates:e,expressions:t,tokens:r,index:s,template:n});return r};var Oe=r(7975);const xe=(0,Oe.debuglog)("execa").enabled,ke=(e,t)=>String(e).padStart(t,"0"),_e=(e,{verbose:t})=>{t&&a.stderr.write(`[${(()=>{const e=new Date;return`${ke(e.getHours(),2)}:${ke(e.getMinutes(),2)}:${ke(e.getSeconds(),2)}.${ke(e.getMilliseconds(),3)}`})()}] ${e}\n`)},Le=(e,t,r={})=>{const s=c._parse(e,t,r);return e=s.command,t=s.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=s.options).cwd||a.cwd(),execPath:a.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:xe,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:s,execPath:n})=>{const i=t?{...a.env,...e}:e;return r?p({env:i,cwd:s,execPath:n}):i})(r),r.stdio=(e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return _.map((t=>e[t]));if((e=>_.some((t=>void 0!==e[t])))(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${_.map((e=>`\`${e}\``)).join(", ")}`);if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);const r=Math.max(t.length,_.length);return Array.from({length:r},((e,r)=>t[r]))})(r),"win32"===a.platform&&"cmd"===i.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:s}},Pe=(e,t,r)=>"string"==typeof t||n.Buffer.isBuffer(t)?e.stripFinalNewline?function(e){const t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e}(t):t:void 0===r?void 0:"";function Ie(e,t,r){const s=Le(e,t,r),n=we(e,t),i=Ae(e,t);let a;_e(i,s.options),(({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)})(s.options);try{a=o.spawn(s.file,s.args,s.options)}catch(e){const t=new o.ChildProcess,r=Promise.reject(k({error:e,stdout:"",stderr:"",all:"",command:n,escapedCommand:i,parsed:s,timedOut:!1,isCanceled:!1,killed:!1}));return ye(t,r),t}const c=(e=>new Promise(((t,r)=>{e.on("exit",((e,r)=>{t({exitCode:e,signal:r})})),e.on("error",(e=>{r(e)})),e.stdin&&e.stdin.on("error",(e=>{r(e)}))})))(a),l=((e,{timeout:t,killSignal:r="SIGTERM"},s)=>{if(0===t||void 0===t)return s;let n;const i=new Promise(((s,i)=>{n=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,i)}),t)})),o=s.finally((()=>{clearTimeout(n)}));return Promise.race([i,o])})(a,s.options,c),u=(async(e,{cleanup:t,detached:r},s)=>{if(!t||r)return s;const n=(0,L.cf)((()=>{e.kill()}));return s.finally((()=>{n()}))})(a,s.options,l),p={isCanceled:!1};a.kill=P.bind(null,a.kill.bind(a)),a.cancel=F.bind(null,a,p);const d=E((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:o},c,l,d]=await(async({stdout:e,stderr:t,all:r},{encoding:s,buffer:n,maxBuffer:i},o)=>{const a=he(e,{encoding:s,buffer:n,maxBuffer:i}),c=he(t,{encoding:s,buffer:n,maxBuffer:i}),l=he(r,{encoding:s,buffer:n,maxBuffer:2*i});try{return await Promise.all([o,a,c,l])}catch(s){return Promise.all([{error:s,signal:s.signal,timedOut:s.timedOut},de(e,a),de(t,c),de(r,l)])}})(a,s.options,u),h=Pe(s.options,c),f=Pe(s.options,l),g=Pe(s.options,d);if(e||0!==t||null!==r){const c=k({error:e,exitCode:t,signal:r,stdout:h,stderr:f,all:g,command:n,escapedCommand:i,parsed:s,timedOut:o,isCanceled:p.isCanceled||!!s.options.signal&&s.options.signal.aborted,killed:a.killed});if(!s.options.reject)return c;throw c}return{command:n,escapedCommand:i,exitCode:0,stdout:h,stderr:f,all:g,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return((e,t)=>{const r=(({input:e,inputFile:t})=>"string"!=typeof t?e:(pe(e),(0,D.createReadStream)(t)))(t);void 0!==r&&(M(r)?r.pipe(e.stdin):e.stdin.end(r))})(a,s.options),a.all=((e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const r=ue();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r})(a,s.options),(e=>{null!==e.stdout&&(e.pipeStdout=G.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=G.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=G.bind(void 0,e,"all"))})(a),ye(a,d),a}function $e(e,t,r){const s=Le(e,t,r),n=we(e,t),i=Ae(e,t);_e(i,s.options);const a=(e=>{const t=(({input:e,inputFile:t})=>"string"!=typeof t?e:(pe(e),(0,D.readFileSync)(t)))(e);if(M(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t})(s.options);let c;try{c=o.spawnSync(s.file,s.args,{...s.options,input:a})}catch(e){throw k({error:e,stdout:"",stderr:"",all:"",command:n,escapedCommand:i,parsed:s,timedOut:!1,isCanceled:!1,killed:!1})}const l=Pe(s.options,c.stdout,c.error),u=Pe(s.options,c.stderr,c.error);if(c.error||0!==c.status||null!==c.signal){const e=k({stdout:l,stderr:u,error:c.error,signal:c.signal,exitCode:c.status,command:n,escapedCommand:i,parsed:s,timedOut:c.error&&"ETIMEDOUT"===c.error.code,isCanceled:!1,killed:null!==c.signal});if(!s.options.reject)return e;throw e}return{command:n,escapedCommand:i,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}const Be=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},He=(e={})=>({preferLocal:!0,...Be(e),...e});!function e(t){function r(r,...s){if(!Array.isArray(r))return e({...t,...r});const[n,...i]=Te(r,s);return Ie(n,i,He(t))}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");const[s,...n]=Te(e,r);return $e(s,n,He(t))},r}();const Fe=s("lint-staged:execGit"),De=["-c","submodule.recurse=false"],Me=async(e,t={})=>{Fe("Running git command",e);try{const{stdout:r}=await Ie("git",De.concat(e),{...t,all:!0,cwd:t.cwd||process.cwd(),stdin:"ignore"});return r}catch({all:e}){throw new Error(e)}};var Ne=r(8127);const Ge=r(6296);var Ue=r(2018),je=r.t(Ue,2);const{env:Ke={},argv:We=[],platform:ze=""}="undefined"==typeof process?{}:process,Ye="NO_COLOR"in Ke||We.includes("--no-color"),qe="FORCE_COLOR"in Ke||We.includes("--color"),Ve="win32"===ze,Xe="dumb"===Ke.TERM,Qe=je&&Ue.isatty&&Ue.isatty(1)&&Ke.TERM&&!Xe,Ze=!Ye&&(qe||Ve&&!Xe||Qe||"CI"in Ke&&("GITHUB_ACTIONS"in Ke||"GITLAB_CI"in Ke||"CIRCLECI"in Ke)),Je=(e,t,r,s,n=t.substring(0,e)+s,i=t.substring(e+r.length),o=i.indexOf(r))=>n+(o<0?i:Je(o,i,r,s)),et=(e,t,r)=>((e,t,r=e,s=e.length+1)=>n=>n||""!==n&&void 0!==n?((e,t,r,s,n)=>e<0?r+t+s:r+Je(e,t,s,n)+s)((""+n).indexOf(t,s),n,e,t,r):"")(`\x1b[${e}m`,`\x1b[${t}m`,r),tt={reset:et(0,0),bold:et(1,22,"\x1b[22m\x1b[1m"),dim:et(2,22,"\x1b[22m\x1b[2m"),italic:et(3,23),underline:et(4,24),inverse:et(7,27),hidden:et(8,28),strikethrough:et(9,29),black:et(30,39),red:et(31,39),green:et(32,39),yellow:et(33,39),blue:et(34,39),magenta:et(35,39),cyan:et(36,39),white:et(37,39),gray:et(90,39),bgBlack:et(40,49),bgRed:et(41,49),bgGreen:et(42,49),bgYellow:et(43,49),bgBlue:et(44,49),bgMagenta:et(45,49),bgCyan:et(46,49),bgWhite:et(47,49),blackBright:et(90,39),redBright:et(91,39),greenBright:et(92,39),yellowBright:et(93,39),blueBright:et(94,39),magentaBright:et(95,39),cyanBright:et(96,39),whiteBright:et(97,39),bgBlackBright:et(100,49),bgRedBright:et(101,49),bgGreenBright:et(102,49),bgYellowBright:et(103,49),bgBlueBright:et(104,49),bgMagentaBright:et(105,49),bgCyanBright:et(106,49),bgWhiteBright:et(107,49)},rt=({useColor:e=Ze}={})=>e?tt:Object.keys(tt).reduce(((e,t)=>({...e,[t]:String})),{}),{reset:st,bold:nt,dim:it,italic:ot,underline:at,inverse:ct,hidden:lt,strikethrough:ut,black:pt,red:dt,green:ht,yellow:ft,blue:gt,magenta:mt,cyan:yt,white:bt,gray:Et,bgBlack:wt,bgRed:At,bgGreen:St,bgYellow:Rt,bgBlue:Ct,bgMagenta:vt,bgCyan:Tt,bgWhite:Ot,blackBright:xt,redBright:kt,greenBright:_t,yellowBright:Lt,blueBright:Pt,magentaBright:It,cyanBright:$t,whiteBright:Bt,bgBlackBright:Ht,bgRedBright:Ft,bgGreenBright:Dt,bgYellowBright:Mt,bgBlueBright:Nt,bgMagentaBright:Gt,bgCyanBright:Ut,bgWhiteBright:jt}=rt();var Kt=r(9023),Wt=r(857),zt=r(3193),Yt=r(2203),qt=r(9018),Vt=r(6982),Xt=Object.defineProperty,Qt=(e,t)=>Xt(e,"name",{value:t,configurable:!0}),Zt="\x1b[?25l",Jt="\x1b[?25h",er=(e=>(e.WAITING="WAITING",e.STARTED="STARTED",e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.SKIPPED="SKIPPED",e.ROLLING_BACK="ROLLING_BACK",e.ROLLED_BACK="ROLLED_BACK",e.RETRY="RETRY",e.PAUSED="PAUSED",e.PROMPT="PROMPT",e.PROMPT_COMPLETED="PROMPT_COMPLETED",e.PROMPT_FAILED="PROMPT_FAILED",e))(er||{}),tr=class{static{Qt(this,"EventManager")}emitter=new Ge;emit(e,t){this.emitter.emit(e,t)}on(e,t){this.emitter.addListener(e,t)}once(e,t){this.emitter.once(e,t)}off(e,t){this.emitter.off(e,t)}complete(){this.emitter.removeAllListeners()}};function rr(e){return!!e&&"object"==typeof e&&"function"==typeof e.subscribe}function sr(e){return!!e&&"object"==typeof e&&!0===e.readable&&"function"==typeof e.read&&"function"==typeof e.on}function nr(){return!!process.env.LISTR_FORCE_UNICODE||"win32"!==process.platform||!!process.env.CI||!!process.env.WT_SESSION||"vscode"===process.env.TERM_PROGRAM||"xterm-256color"===process.env.TERM||"alacritty"===process.env.TERM}(class{static{Qt(this,"BaseEventMap")}}),Qt(rr,"isObservable"),Qt(sr,"isReadable"),Qt(nr,"isUnicodeSupported");var ir=/\u0007/;function or(e){return String(e).replace(new RegExp("(?:\\u001b|\\u009b)\\[[\\=><~/#&.:=?%@~_-]*[0-9]*[\\a-ln-tqyz=><~/#&.:=?%@~_-]+","gmi"),"").replace(new RegExp(ir,"gmi"),"").trim()}Qt(or,"cleanseAnsi");var ar=rt();function cr(e,t){return e.replace(/^(?!\s*$)/gm," ".repeat(t))}Qt(cr,"indent");var lr={warning:"\u26a0",cross:"\u2716",arrowDown:"\u2193",tick:"\u2714",arrowRight:"\u2192",pointer:"\u276f",checkboxOn:"\u2612",arrowLeft:"\u2190",squareSmallFilled:"\u25fc",pointerSmall:"\u203a"},ur={...lr,warning:"\u203c",cross:"\xd7",tick:"\u221a",pointer:">",checkboxOn:"[\xd7]",squareSmallFilled:"\u25a0"},pr=nr()?lr:ur;function dr(e,...t){return(0,Kt.format)(String(e),...t)}Qt(dr,"splat");var hr={STARTED:pr.pointer,FAILED:pr.cross,SKIPPED:pr.arrowDown,COMPLETED:pr.tick,OUTPUT:pr.pointerSmall,TITLE:pr.arrowRight,RETRY:pr.warning,ROLLBACK:pr.arrowLeft,PAUSED:pr.squareSmallFilled},fr={STARTED:ar.yellow,FAILED:ar.red,SKIPPED:ar.yellow,COMPLETED:ar.green,RETRY:ar.yellowBright,ROLLBACK:ar.redBright,PAUSED:ar.yellowBright},gr=["RETRY","ROLLBACK","FAILED"],mr=class{constructor(e){this.options=e,this.options={useIcons:!0,toStderr:[],...e??{}},this.options.fields??={},this.options.fields.prefix??=[],this.options.fields.suffix??=[],this.process=this.options.processOutput??new Er}static{Qt(this,"ListrLogger")}process;log(e,t,r){const s=this.format(e,t,r);this.options.toStderr.includes(e)?this.process.toStderr(s):this.process.toStdout(s)}toStdout(e,t,r=!0){this.process.toStdout(this.format(null,e,t),r)}toStderr(e,t,r=!0){this.process.toStderr(this.format(null,e,t),r)}wrap(e,t){return e?this.applyFormat(`[${e}]`,t):e}splat(...e){const t=e.shift()??"";return 0===e.length?t:dr(t,e)}suffix(e,...t){return t.filter(Boolean).forEach((t=>{if(e+=this.spacing(e),"string"==typeof t)e+=this.wrap(t);else if("object"==typeof t){if(t.args??=[],"function"==typeof t.condition?!t.condition(...t.args):!(t.condition??1))return e;e+=this.wrap("function"==typeof t.field?t.field(...t.args):t.field,{format:t?.format(...t.args)})}})),e}prefix(e,...t){return t.filter(Boolean).forEach((t=>{if(e=this.spacing(e)+e,"string"==typeof t)e=this.wrap(t)+e;else if("object"==typeof t){if(t.args??=[],"function"==typeof t.condition?!t.condition(...t.args):!(t.condition??1))return e;e=this.wrap("function"==typeof t.field?t.field(...t.args):t.field,{format:t?.format()})+e}})),e}fields(e,t){return this.options?.fields?.prefix&&(e=this.prefix(e,...this.options.fields.prefix)),t?.prefix&&(e=this.prefix(e,...t.prefix)),t?.suffix&&(e=this.suffix(e,...t.suffix)),this.options?.fields?.suffix&&(e=this.suffix(e,...this.options.fields.suffix)),e}icon(e,t){if(!e)return null;t||=this.options.icon?.[e];const r=this.options.color?.[e];return t&&r&&(t=r(t)),t}format(e,t,r){return Array.isArray(t)||(t=[t]),this.splat(t.shift(),...t).toString().split(Wt.EOL).filter((e=>!e||""!==e.trim())).map((t=>this.style(e,this.fields(t,{prefix:Array.isArray(r?.prefix)?r.prefix:[r?.prefix],suffix:Array.isArray(r?.suffix)?r.suffix:[r?.suffix]})))).join(Wt.EOL)}style(e,t){if(!e||!t)return t;const r=this.icon(e,!this.options.useIcons&&this.wrap(e));return r&&(t=r+" "+t),t}applyFormat(e,t){return t?.format?t.format(e):e}spacing(e){return void 0===e||""===e.trim()?"":" "}},yr=class{constructor(e){this.options=e}static{Qt(this,"ProcessOutputBuffer")}buffer=[];decoder=new zt.StringDecoder;get all(){return this.buffer}get last(){return this.buffer.at(-1)}get length(){return this.buffer.length}write(e,...t){const r=t[t.length-1];return this.buffer.push({time:Date.now(),stream:this.options?.stream,entry:this.decoder.write("string"==typeof e?Buffer.from(e,"string"==typeof t[0]?t[0]:void 0):Buffer.from(e))}),this.options?.limit&&(this.buffer=this.buffer.slice(-this.options.limit)),"function"==typeof r&&r(),!0}reset(){this.buffer=[]}},br=class{constructor(e){this.stream=e,this.method=e.write,this.buffer=new yr({stream:e})}static{Qt(this,"ProcessOutputStream")}method;buffer;get out(){return Object.assign({},this.stream,{write:this.write.bind(this)})}hijack(){this.stream.write=this.buffer.write.bind(this.buffer)}release(){this.stream.write=this.method;const e=[...this.buffer.all];return this.buffer.reset(),e}write(...e){return this.method.apply(this.stream,e)}},Er=class{constructor(e,t,r){this.options=r,this.stream={stdout:new br(e??process.stdout),stderr:new br(t??process.stderr)},this.options={dump:["stdout","stderr"],leaveEmptyLine:!0,...r}}static{Qt(this,"ProcessOutput")}stream;active;get stdout(){return this.stream.stdout.out}get stderr(){return this.stream.stderr.out}hijack(){if(this.active)throw new Error("ProcessOutput has been already hijacked!");this.stream.stdout.write(Zt),Object.values(this.stream).forEach((e=>e.hijack())),this.active=!0}release(){const e=Object.entries(this.stream).map((([e,t])=>({name:e,buffer:t.release()}))).filter((e=>this.options.dump.includes(e.name))).flatMap((e=>e.buffer)).sort(((e,t)=>e.time-t.time)).map((e=>({...e,entry:or(e.entry)}))).filter((e=>e.entry));e.length>0&&(this.options.leaveEmptyLine&&this.stdout.write(Wt.EOL),e.forEach((e=>{(e.stream??this.stdout).write(e.entry+Wt.EOL)}))),this.stream.stdout.write(Jt),this.active=!1}toStdout(e,t=!0){return t&&(e+=Wt.EOL),this.stream.stdout.write(e)}toStderr(e,t=!0){return t&&(e+=Wt.EOL),this.stream.stderr.write(e)}};function wr(e){const t=new Yt.Writable;return t.rows=1/0,t.columns=1/0,t.write=t=>(e(t.toString()),!0),t}Qt(wr,"createWritable"),class{constructor(e,t){this.task=e,this.wrapper=t}static{Qt(this,"ListrPromptAdapter")}state;reportStarted(){if(this.state=this.task.state,this.task.prompt)throw new Ur("There is already an active prompt attached to this task which may not be cleaned up properly.");this.task.prompt=this,this.task.state$="PROMPT"}reportFailed(){this.task.state$="PROMPT_FAILED",this.restoreState()}reportCompleted(){this.task.state$="PROMPT_COMPLETED",this.restoreState()}restoreState(){this.task.prompt=void 0,this.state&&(this.task.state=this.state)}};var Ar=class{static{Qt(this,"Spinner")}spinner=nr()?["\u280b","\u2819","\u2839","\u2838","\u283c","\u2834","\u2826","\u2827","\u2807","\u280f"]:["-","\\","|","/"];id;spinnerPosition=0;spin(){this.spinnerPosition=++this.spinnerPosition%this.spinner.length}fetch(){return this.spinner[this.spinnerPosition]}isRunning(){return!!this.id}start(e,t=100){this.id=setInterval((()=>{this.spin(),e&&e()}),t)}stop(){clearInterval(this.id)}},Sr={SKIPPED_WITH_COLLAPSE:pr.arrowDown,SKIPPED_WITHOUT_COLLAPSE:pr.warning,OUTPUT:pr.pointerSmall,OUTPUT_WITH_BOTTOMBAR:pr.pointerSmall,PENDING:pr.pointer,COMPLETED:pr.tick,COMPLETED_WITH_FAILED_SUBTASKS:pr.warning,COMPLETED_WITH_SISTER_TASKS_FAILED:pr.squareSmallFilled,RETRY:pr.warning,ROLLING_BACK:pr.warning,ROLLED_BACK:pr.arrowLeft,FAILED:pr.cross,FAILED_WITH_SUBTASKS:pr.pointer,WAITING:pr.squareSmallFilled,PAUSED:pr.squareSmallFilled},Rr={SKIPPED_WITH_COLLAPSE:ar.yellow,SKIPPED_WITHOUT_COLLAPSE:ar.yellow,PENDING:ar.yellow,COMPLETED:ar.green,COMPLETED_WITH_FAILED_SUBTASKS:ar.yellow,COMPLETED_WITH_SISTER_TASKS_FAILED:ar.red,RETRY:ar.yellowBright,ROLLING_BACK:ar.redBright,ROLLED_BACK:ar.redBright,FAILED:ar.red,FAILED_WITH_SUBTASKS:ar.red,WAITING:ar.dim,PAUSED:ar.yellowBright};function Cr(e){const t=Math.floor(e/1e3),r=Math.floor(t/60);let s;return 0===t&&0===r&&(s=`0.${Math.floor(e/100)}s`),t>0&&(s=t%60+"s"),r>0&&(s=`${r}m${s}`),s}Qt(Cr,"parseTimer");var vr={condition:!0,field:Cr,format:Qt((()=>ar.dim),"format")};Qt((function(){const e=new Date;return String(e.getHours()).padStart(2,"0")+":"+String(e.getMinutes()).padStart(2,"0")+":"+String(e.getSeconds()).padStart(2,"0")}),"parseTimestamp");var Tr=class e{constructor(t,r,s){this.tasks=t,this.options=r,this.events=s,this.options={...e.rendererOptions,...this.options,icon:{...Sr,...r?.icon??{}},color:{...Rr,...r?.color??{}}},this.spinner=this.options.spinner??new Ar,this.logger=this.options.logger??new mr({useIcons:!0,toStderr:[]}),this.logger.options.icon=this.options.icon,this.logger.options.color=this.options.color}static{Qt(this,"DefaultRenderer")}static nonTTY=!1;static rendererOptions={indentation:2,clearOutput:!1,showSubtasks:!0,collapseSubtasks:!0,collapseSkips:!0,showSkipMessage:!0,suffixSkips:!1,collapseErrors:!0,showErrorMessage:!0,suffixRetries:!0,lazy:!1,removeEmptyLines:!0,formatOutput:"wrap",pausedTimer:{...vr,format:Qt((()=>ar.yellowBright),"format")}};static rendererTaskOptions={outputBar:!0};prompt;activePrompt;spinner;logger;updater;truncate;wrap;buffer={output:new Map,bottom:new Map};cache={render:new Map,rendererOptions:new Map,rendererTaskOptions:new Map};async render(){const{createLogUpdate:e}=await Promise.all([r.e(799),r.e(782),r.e(216)]).then(r.bind(r,2216)),{default:t}=await Promise.all([r.e(799),r.e(145)]).then(r.bind(r,5145)),{default:s}=await Promise.all([r.e(799),r.e(782)]).then(r.bind(r,782));this.updater=e(this.logger.process.stdout),this.truncate=t,this.wrap=s,this.logger.process.hijack(),this.options?.lazy||this.spinner.start((()=>{this.update()})),this.events.on("SHOUD_REFRESH_RENDER",(()=>{this.update()}))}update(){this.updater(this.create())}end(){this.spinner.stop(),this.updater.clear(),this.updater.done(),this.options.clearOutput||this.logger.process.toStdout(this.create({prompt:!1})),this.logger.process.release()}create(e){e={tasks:!0,bottomBar:!0,prompt:!0,...e};const t=[],r=this.renderer(this.tasks),s=this.renderBottomBar(),n=this.renderPrompt();return e.tasks&&r.length>0&&t.push(...r),e.bottomBar&&s.length>0&&(t.length>0&&t.push(""),t.push(...s)),e.prompt&&n.length>0&&(t.length>0&&t.push(""),t.push(...n)),t.join(Wt.EOL)}style(e,t=!1){const r=this.cache.rendererOptions.get(e.id);if(e.isSkipped()){if(t||r.collapseSkips)return this.logger.icon("SKIPPED_WITH_COLLAPSE");if(!1===r.collapseSkips)return this.logger.icon("SKIPPED_WITHOUT_COLLAPSE")}if(t)return this.shouldOutputToBottomBar(e)?this.logger.icon("OUTPUT_WITH_BOTTOMBAR"):this.logger.icon("OUTPUT");if(e.hasSubtasks()){if(e.isStarted()||e.isPrompt()&&!1!==r.showSubtasks&&!e.subtasks.every((e=>!e.hasTitle())))return this.logger.icon("PENDING");if(e.isCompleted()&&e.subtasks.some((e=>e.hasFailed())))return this.logger.icon("COMPLETED_WITH_FAILED_SUBTASKS");if(e.hasFailed())return this.logger.icon("FAILED_WITH_SUBTASKS")}return e.isStarted()||e.isPrompt()?this.logger.icon("PENDING",!this.options?.lazy&&this.spinner.fetch()):e.isCompleted()?this.logger.icon("COMPLETED"):e.isRetrying()?this.logger.icon("RETRY",!this.options?.lazy&&this.spinner.fetch()):e.isRollingBack()?this.logger.icon("ROLLING_BACK",!this.options?.lazy&&this.spinner.fetch()):e.hasRolledBack()?this.logger.icon("ROLLED_BACK"):e.hasFailed()?this.logger.icon("FAILED"):e.isPaused()?this.logger.icon("PAUSED"):this.logger.icon("WAITING")}format(e,t,r){if(""===e.trim())return[];let s;t&&(e=t+" "+e);const n=(process.stdout.columns??80)-r*this.options.indentation-2;switch(this.options.formatOutput){case"truncate":s=e.split(Wt.EOL).map(((e,t)=>this.truncate(this.indent(e,t),n)));break;case"wrap":s=this.wrap(e,n,{hard:!0}).split(Wt.EOL).map(((e,t)=>this.indent(e,t)));break;default:throw new Gr("Format option for the renderer is wrong.")}return this.options.removeEmptyLines&&(s=s.filter(Boolean)),s.map((e=>cr(e,r*this.options.indentation)))}shouldOutputToOutputBar(e){const t=this.cache.rendererTaskOptions.get(e.id).outputBar;return"number"==typeof t&&0!==t||"boolean"==typeof t&&!1!==t}shouldOutputToBottomBar(e){const t=this.cache.rendererTaskOptions.get(e.id).bottomBar;return"number"==typeof t&&0!==t||"boolean"==typeof t&&!1!==t||!e.hasTitle()}renderer(e,t=0){return e.flatMap((r=>{if(!r.isEnabled())return[];if(this.cache.render.has(r.id))return this.cache.render.get(r.id);this.calculate(r),this.setupBuffer(r);const s=this.cache.rendererOptions.get(r.id),n=this.cache.rendererTaskOptions.get(r.id),i=[];if(r.isPrompt()){if(this.activePrompt&&this.activePrompt!==r.id)throw new Gr("Only one prompt can be active at the given time, please re-evaluate your task design.");this.activePrompt||(r.on("PROMPT",(e=>{const t=or(e);t&&(this.prompt=t)})),r.on("STATE",(e=>{("PROMPT_COMPLETED"===e||r.hasFinalized()||r.hasReset())&&(this.prompt=null,this.activePrompt=null,r.off("PROMPT"))})),this.activePrompt=r.id)}if(r.hasTitle()&&(!e.some((e=>e.hasFailed()))||r.hasFailed()||!1===r.options.exitOnError||r.isCompleted()||r.isSkipped()?r.hasFailed()&&s.collapseErrors?i.push(...this.format(!r.hasSubtasks()&&r.message.error&&s.showErrorMessage?r.message.error:r.title,this.style(r),t)):r.isSkipped()&&s.collapseSkips?i.push(...this.format(this.logger.suffix(r.message.skip&&s.showSkipMessage?r.message.skip:r.title,{field:"SKIPPED",condition:s.suffixSkips,format:Qt((()=>ar.dim),"format")}),this.style(r),t)):r.isRetrying()?i.push(...this.format(this.logger.suffix(r.title,{field:`RETRY:${r.message.retry.count}`,format:Qt((()=>ar.yellow),"format"),condition:s.suffixRetries}),this.style(r),t)):r.isCompleted()&&r.hasTitle()&&Br(n.timer?.condition,r.message.duration)?i.push(...this.format(this.logger.suffix(r?.title,{...n.timer,args:[r.message.duration]}),this.style(r),t)):r.isPaused()?i.push(...this.format(this.logger.suffix(r.title,{...s.pausedTimer,args:[r.message.paused-Date.now()]}),this.style(r),t)):i.push(...this.format(r.title,this.style(r),t)):i.push(...this.format(r.title,this.logger.icon("COMPLETED_WITH_SISTER_TASKS_FAILED"),t))),r.hasSubtasks()&&s.showSubtasks||(!r.hasFailed()||!1!==s.collapseErrors||!s.showErrorMessage&&s.showSubtasks?!r.isSkipped()||!1!==s.collapseSkips||!s.showSkipMessage&&s.showSubtasks||i.push(...this.dump(r,t,"SKIPPED")):i.push(...this.dump(r,t,"FAILED"))),(r.isPending()||n.persistentOutput)&&i.push(...this.renderOutputBar(r,t)),!1!==s.showSubtasks&&r.hasSubtasks()&&(r.isPending()||r.hasFinalized()&&!r.hasTitle()||r.isCompleted()&&!1===s.collapseSubtasks&&!r.subtasks.some((e=>!0===this.cache.rendererOptions.get(e.id)?.collapseSubtasks))||r.subtasks.some((e=>!1===this.cache.rendererOptions.get(e.id)?.collapseSubtasks))||r.subtasks.some((e=>e.hasFailed()))||r.subtasks.some((e=>e.hasRolledBack())))){const e=r.hasTitle()?t+1:t,s=this.renderer(r.subtasks,e);i.push(...s)}return r.hasFinalized()&&(n.persistentOutput||(this.buffer.bottom.delete(r.id),this.buffer.output.delete(r.id))),r.isClosed()&&(this.cache.render.set(r.id,i),this.reset(r)),i}))}renderOutputBar(e,t){const r=this.buffer.output.get(e.id);return r?r.all.flatMap((r=>this.dump(e,t,"OUTPUT",r.entry))):[]}renderBottomBar(){return 0===this.buffer.bottom.size?[]:Array.from(this.buffer.bottom.values()).flatMap((e=>e.all)).sort(((e,t)=>e.time-t.time)).map((e=>e.entry))}renderPrompt(){return this.prompt?[this.prompt]:[]}calculate(t){if(this.cache.rendererOptions.has(t.id)&&this.cache.rendererTaskOptions.has(t.id))return;const r={...this.options,...t.rendererOptions};this.cache.rendererOptions.set(t.id,r),this.cache.rendererTaskOptions.set(t.id,{...e.rendererTaskOptions,timer:r.timer,...t.rendererTaskOptions})}setupBuffer(e){if(this.buffer.bottom.has(e.id)||this.buffer.output.has(e.id))return;const t=this.cache.rendererTaskOptions.get(e.id);this.shouldOutputToBottomBar(e)&&!this.buffer.bottom.has(e.id)?(this.buffer.bottom.set(e.id,new yr({limit:"number"==typeof t.bottomBar?t.bottomBar:1})),e.on("OUTPUT",(t=>{const r=this.dump(e,-1,"OUTPUT",t);this.buffer.bottom.get(e.id).write(r.join(Wt.EOL))})),e.on("STATE",(t=>{"RETRY"===t&&this.buffer.bottom.delete(e.id)}))):this.shouldOutputToOutputBar(e)&&!this.buffer.output.has(e.id)&&(this.buffer.output.set(e.id,new yr({limit:"number"==typeof t.outputBar?t.outputBar:1})),e.on("OUTPUT",(t=>{this.buffer.output.get(e.id).write(t)})),e.on("STATE",(t=>{"RETRY"===t&&this.buffer.output.delete(e.id)})))}reset(e){this.cache.rendererOptions.delete(e.id),this.cache.rendererTaskOptions.delete(e.id),this.buffer.output.delete(e.id)}dump(e,t,r="OUTPUT",s){if(!s)switch(r){case"OUTPUT":s=e.output;break;case"SKIPPED":s=e.message.skip;break;case"FAILED":s=e.message.error}return e.hasTitle()&&"FAILED"===r&&s===e.title||"string"!=typeof s?[]:("OUTPUT"===r&&(s=or(s)),this.format(s,this.style(e,!0),t+1))}indent(e,t){return t>0?cr(e.trim(),this.options.indentation):e.trim()}},Or=class{constructor(e,t){this.tasks=e,this.options=t}static{Qt(this,"SilentRenderer")}static nonTTY=!0;static rendererOptions;static rendererTaskOptions;render(){}end(){}},xr=class e{constructor(t,r){this.tasks=t,this.options=r,this.options={...e.rendererOptions,...r,icon:{...hr,...r?.icon??{}},color:{...fr,...r?.color??{}}},this.logger=this.options.logger??new mr({useIcons:!0,toStderr:gr}),this.logger.options.icon=this.options.icon,this.logger.options.color=this.options.color,this.options.timestamp&&this.logger.options.fields.prefix.unshift(this.options.timestamp)}static{Qt(this,"SimpleRenderer")}static nonTTY=!0;static rendererOptions={pausedTimer:{...vr,field:Qt((e=>`PAUSED:${e}`),"field"),format:Qt((()=>ar.yellowBright),"format")}};static rendererTaskOptions={};logger;cache={rendererOptions:new Map,rendererTaskOptions:new Map};end(){}render(){this.renderer(this.tasks)}renderer(e){e.forEach((e=>{this.calculate(e),e.once("CLOSED",(()=>{this.reset(e)}));const t=this.cache.rendererOptions.get(e.id),r=this.cache.rendererTaskOptions.get(e.id);e.on("SUBTASK",(e=>{this.renderer(e)})),e.on("STATE",(t=>{if(e.hasTitle())if("STARTED"===t)this.logger.log("STARTED",e.title);else if("COMPLETED"===t){const t=r?.timer;this.logger.log("COMPLETED",e.title,t&&{suffix:{...t,condition:!!e.message?.duration&&t.condition,args:[e.message.duration]}})}else"PROMPT"===t?(this.logger.process.hijack(),e.on("PROMPT",(e=>{this.logger.process.toStderr(e,!1)}))):"PROMPT_COMPLETED"===t&&(e.off("PROMPT"),this.logger.process.release())})),e.on("OUTPUT",(e=>{this.logger.log("OUTPUT",e)})),e.on("MESSAGE",(r=>{if(r.error)this.logger.log("FAILED",e.title,{suffix:{field:`FAILED: ${r.error}`,format:Qt((()=>ar.red),"format")}});else if(r.skip)this.logger.log("SKIPPED",e.title,{suffix:{field:`SKIPPED: ${r.skip}`,format:Qt((()=>ar.yellow),"format")}});else if(r.rollback)this.logger.log("ROLLBACK",e.title,{suffix:{field:`ROLLBACK: ${r.rollback}`,format:Qt((()=>ar.red),"format")}});else if(r.retry)this.logger.log("RETRY",e.title,{suffix:{field:`RETRY:${r.retry.count}`,format:Qt((()=>ar.red),"format")}});else if(r.paused){const s=t?.pausedTimer;this.logger.log("PAUSED",e.title,s&&{suffix:{...s,condition:!!r?.paused&&s.condition,args:[r.paused-Date.now()]}})}}))}))}calculate(t){if(this.cache.rendererOptions.has(t.id)&&this.cache.rendererTaskOptions.has(t.id))return;const r={...this.options,...t.rendererOptions};this.cache.rendererOptions.set(t.id,r),this.cache.rendererTaskOptions.set(t.id,{...e.rendererTaskOptions,timer:r.timer,...t.rendererTaskOptions})}reset(e){this.cache.rendererOptions.delete(e.id),this.cache.rendererTaskOptions.delete(e.id)}},kr=class{constructor(e){this.options=e}static{Qt(this,"TestRendererSerializer")}serialize(e,t,r){return JSON.stringify(this.generate(e,t,r))}generate(e,t,r){const s={event:e,data:t};if("boolean"!=typeof this.options?.task){const e=Object.fromEntries(this.options.task.map((e=>{const t=r[e];return"function"==typeof t?[e,t.call(r)]:[e,t]})));Object.keys(r).length>0&&(s.task=e)}return s}},_r=class e{constructor(t,r){this.tasks=t,this.options=r,this.options={...e.rendererOptions,...this.options},this.logger=this.options.logger??new mr({useIcons:!1}),this.serializer=new kr(this.options)}static{Qt(this,"TestRenderer")}static nonTTY=!0;static rendererOptions={subtasks:!0,state:Object.values(er),output:!0,prompt:!0,title:!0,messages:["skip","error","retry","rollback","paused"],messagesToStderr:["error","rollback","retry"],task:["hasRolledBack","isRollingBack","isCompleted","isSkipped","hasFinalized","hasSubtasks","title","hasReset","hasTitle","isPrompt","isPaused","isPending","isSkipped","isStarted","hasFailed","isEnabled","isRetrying","path"]};static rendererTaskOptions;logger;serializer;render(){this.renderer(this.tasks)}end(){}renderer(e){e.forEach((e=>{this.options.subtasks&&e.on("SUBTASK",(e=>{this.renderer(e)})),this.options.state&&e.on("STATE",(t=>{this.logger.toStdout(this.serializer.serialize("STATE",t,e))})),this.options.output&&e.on("OUTPUT",(t=>{this.logger.toStdout(this.serializer.serialize("OUTPUT",t,e))})),this.options.prompt&&e.on("PROMPT",(t=>{this.logger.toStdout(this.serializer.serialize("PROMPT",t,e))})),this.options.title&&e.on("TITLE",(t=>{this.logger.toStdout(this.serializer.serialize("TITLE",t,e))})),e.on("MESSAGE",(t=>{const r=Object.fromEntries(Object.entries(t).map((([e,t])=>{if(this.options.messages.includes(e))return[e,t]})).filter(Boolean));if(Object.keys(r).length>0){const t=this.serializer.serialize("MESSAGE",r,e);this.options.messagesToStderr.some((e=>Object.keys(r).includes(e)))?this.logger.toStderr(t):this.logger.toStdout(t)}}))}))}},Lr={default:Tr,simple:xr,verbose:class e{constructor(t,r){this.tasks=t,this.options=r,this.options={...e.rendererOptions,...this.options,icon:{...hr,...r?.icon??{}},color:{...fr,...r?.color??{}}},this.logger=this.options.logger??new mr({useIcons:!1,toStderr:gr}),this.logger.options.icon=this.options.icon,this.logger.options.color=this.options.color,this.options.timestamp&&this.logger.options.fields.prefix.unshift(this.options.timestamp)}static{Qt(this,"VerboseRenderer")}static nonTTY=!0;static rendererOptions={logTitleChange:!1,pausedTimer:{...vr,format:Qt((()=>ar.yellowBright),"format")}};static rendererTaskOptions;logger;cache={rendererOptions:new Map,rendererTaskOptions:new Map};render(){this.renderer(this.tasks)}end(){}renderer(e){e.forEach((e=>{this.calculate(e),e.once("CLOSED",(()=>{this.reset(e)}));const t=this.cache.rendererOptions.get(e.id),r=this.cache.rendererTaskOptions.get(e.id);e.on("SUBTASK",(e=>{this.renderer(e)})),e.on("STATE",(t=>{if(e.hasTitle())if("STARTED"===t)this.logger.log("STARTED",e.title);else if("COMPLETED"===t){const t=r.timer;this.logger.log("COMPLETED",e.title,t&&{suffix:{...t,condition:!!e.message?.duration&&t.condition,args:[e.message.duration]}})}})),e.on("OUTPUT",(e=>{this.logger.log("OUTPUT",e)})),e.on("PROMPT",(e=>{const t=or(e);t&&this.logger.log("PROMPT",t)})),!1!==this.options?.logTitleChange&&e.on("TITLE",(e=>{this.logger.log("TITLE",e)})),e.on("MESSAGE",(r=>{if(r?.error)this.logger.log("FAILED",r.error);else if(r?.skip)this.logger.log("SKIPPED",r.skip);else if(r?.rollback)this.logger.log("ROLLBACK",r.rollback);else if(r?.retry)this.logger.log("RETRY",e.title,{suffix:r.retry.count.toString()});else if(r?.paused){const s=t?.pausedTimer;this.logger.log("PAUSED",e.title,s&&{suffix:{...s,condition:!!r?.paused&&s.condition,args:[r.paused-Date.now()]}})}}))}))}calculate(t){if(this.cache.rendererOptions.has(t.id)&&this.cache.rendererTaskOptions.has(t.id))return;const r={...this.options,...t.rendererOptions};this.cache.rendererOptions.set(t.id,r),this.cache.rendererTaskOptions.set(t.id,{...e.rendererTaskOptions,timer:r.timer,...t.rendererTaskOptions})}reset(e){this.cache.rendererOptions.delete(e.id),this.cache.rendererTaskOptions.delete(e.id)}},test:_r,silent:Or};function Pr(e){return!0===process.stdout.isTTY||!0===e.nonTTY}function Ir(e){return"string"==typeof e?Lr[e]??Lr.default:"function"==typeof e?e:Lr.default}function $r(e){if(Br(e?.silentRendererCondition))return{renderer:Ir("silent"),selection:"SILENT"};const t={renderer:Ir(e.renderer),options:e.rendererOptions,selection:"PRIMARY"};return!Pr(t.renderer)||Br(e?.fallbackRendererCondition)?{renderer:Ir(e.fallbackRenderer),options:e.fallbackRendererOptions,selection:"SECONDARY"}:t}function Br(e,...t){return"function"==typeof e?e(...t):e}Qt(Pr,"isRendererSupported"),Qt(Ir,"getRendererClass"),Qt($r,"getRenderer"),Qt(Br,"assertFunctionOrSelf");var Hr=qt({circles:!0});function Fr(e){return Hr(e)}Qt(Fr,"cloneObject");var Dr=class{static{Qt(this,"Concurrency")}concurrency;count;queue;constructor(e){this.concurrency=e.concurrency,this.count=0,this.queue=new Set}add(e){return this.count<this.concurrency?this.run(e):new Promise((t=>{const r=Qt((()=>t(this.run(e))),"callback");this.queue.add(r)}))}flush(){for(const e of this.queue){if(this.count>=this.concurrency)break;this.queue.delete(e),e()}}run(e){this.count++;const t=e(),r=Qt((()=>{this.count--,this.flush()}),"cleanup");return t.then(r,(()=>{this.queue.clear()})),t}};function Mr(e){return new Promise((t=>{setTimeout(t,e)}))}Qt(Mr,"delay");var Nr=class extends Error{constructor(e,t,r){super(e.message),this.error=e,this.type=t,this.task=r,this.name="ListrError",this.path=r.path,"full"===r?.options.collectErrors&&(this.task=Fr(r),this.ctx=Fr(r.listr.ctx)),this.stack=e?.stack}static{Qt(this,"ListrError")}path;ctx},Gr=class extends Error{static{Qt(this,"ListrRendererError")}},Ur=class extends Error{static{Qt(this,"PromptError")}},jr=class{constructor(e){this.task=e}static{Qt(this,"TaskWrapper")}get title(){return this.task.title}set title(e){e=Array.isArray(e)?e:[e],this.task.title$=dr(e.shift(),...e)}get output(){return this.task.output}set output(e){e=Array.isArray(e)?e:[e],this.task.output$=dr(e.shift(),...e)}set promptOutput(e){this.task.promptOutput$=e}newListr(e,t){let r;return r="function"==typeof e?e(this):e,new Yr(r,t,this.task)}report(e,t){!1!==this.task.options.collectErrors&&this.task.listr.errors.push(new Nr(e,t,this.task)),this.task.message$={error:e.message??this.task?.title}}skip(e,...t){this.task.state$="SKIPPED",e&&(this.task.message$={skip:e?dr(e,...t):this.task?.title})}isRetrying(){return this.task.isRetrying()?this.task.retry:{count:0}}prompt(e){return this.task.prompt?this.task.prompt:new e(this.task,this)}stdout(e){return wr((t=>{"PROMPT"===e?this.promptOutput=t:this.output=t}))}run(e){return this.task.run(e,this)}},Kr=class extends tr{static{Qt(this,"ListrTaskEventManager")}},Wr=class extends Kr{constructor(e,t,r,s,n){if(super(),this.listr=e,this.task=t,this.options=r,this.rendererOptions=s,this.rendererTaskOptions=n,t.title){const e=Array.isArray(t?.title)?t.title:[t.title];this.title=dr(e.shift(),...e),this.initialTitle=this.title}this.taskFn=t.task,this.parent=e.parentTask}static{Qt(this,"Task")}id=(0,Vt.randomUUID)();state="WAITING";subtasks;title;initialTitle;output;retry;message={};prompt;parent;enabled;taskFn;closed;set state$(e){if(this.state=e,this.emit("STATE",e),this.hasSubtasks()&&this.hasFailed())for(const e of this.subtasks)"STARTED"===e.state&&(e.state$="FAILED");this.listr.events.emit("SHOUD_REFRESH_RENDER")}set output$(e){this.output=e,this.emit("OUTPUT",e),this.listr.events.emit("SHOUD_REFRESH_RENDER")}set promptOutput$(e){this.emit("PROMPT",e),or(e)&&this.listr.events.emit("SHOUD_REFRESH_RENDER")}set message$(e){this.message={...this.message,...e},this.emit("MESSAGE",e),this.listr.events.emit("SHOUD_REFRESH_RENDER")}set title$(e){this.title=e,this.emit("TITLE",e),this.listr.events.emit("SHOUD_REFRESH_RENDER")}get path(){return[...this.listr.path,this.initialTitle]}async check(e){return"WAITING"===this.state&&(this.enabled=await Br(this.task?.enabled??!0,e),this.emit("ENABLED",this.enabled),this.listr.events.emit("SHOUD_REFRESH_RENDER")),this.enabled}hasSubtasks(){return this.subtasks?.length>0}hasFinalized(){return this.isCompleted()||this.hasFailed()||this.isSkipped()||this.hasRolledBack()}isPending(){return this.isStarted()||this.isPrompt()||this.hasReset()}isStarted(){return"STARTED"===this.state}isSkipped(){return"SKIPPED"===this.state}isCompleted(){return"COMPLETED"===this.state}hasFailed(){return"FAILED"===this.state}isRollingBack(){return"ROLLING_BACK"===this.state}hasRolledBack(){return"ROLLED_BACK"===this.state}isRetrying(){return"RETRY"===this.state}hasReset(){return"RETRY"===this.state||"ROLLING_BACK"===this.state}isEnabled(){return this.enabled}hasTitle(){return"string"==typeof this?.title}isPrompt(){return"PROMPT"===this.state||"PROMPT_COMPLETED"===this.state}isPaused(){return"PAUSED"===this.state}isClosed(){return this.closed}async pause(e){const t=this.state;this.state$="PAUSED",this.message$={paused:Date.now()+e},await Mr(e),this.state$=t,this.message$={paused:null}}async run(e,t){const r=Qt((t=>(t instanceof Yr?(t.options={...this.options,...t.options},t.rendererClass=Ir("silent"),this.subtasks=t.tasks,t.errors=this.listr.errors,this.emit("SUBTASK",this.subtasks),t=t.run(e)):t instanceof Promise?t=t.then(r):sr(t)?t=new Promise(((e,r)=>{t.on("data",(e=>{this.output$=e.toString()})),t.on("error",(e=>r(e))),t.on("end",(()=>e(null)))})):rr(t)&&(t=new Promise(((e,r)=>{t.subscribe({next:Qt((e=>{this.output$=e}),"next"),error:r,complete:e})}))),t)),"handleResult"),s=Date.now();this.state$="STARTED";const n=await Br(this.task?.skip??!1,e);if(n)return"string"==typeof n?this.message$={skip:n}:this.hasTitle()?this.message$={skip:this.title}:this.message$={skip:"Skipped task without a title."},void(this.state$="SKIPPED");try{const n="number"==typeof this.task?.retry&&this.task.retry>0?this.task.retry+1:"object"==typeof this.task?.retry&&this.task.retry.tries>0?this.task.retry.tries+1:1,i="object"==typeof this.task.retry&&this.task.retry.delay;for(let s=1;s<=n;s++)try{await r(this.taskFn(e,t));break}catch(e){if(s===n)throw e;this.retry={count:s,error:e},this.message$={retry:this.retry},this.title$=this.initialTitle,this.output=void 0,t.report(e,"WILL_RETRY"),this.state$="RETRY",i&&await this.pause(i)}(this.isStarted()||this.isRetrying())&&(this.message$={duration:Date.now()-s},this.state$="COMPLETED")}catch(r){if(this.prompt instanceof Ur&&(r=this.prompt),this.task?.rollback){t.report(r,"WILL_ROLLBACK");try{this.state$="ROLLING_BACK",await this.task.rollback(e,t),this.message$={rollback:this.title},this.state$="ROLLED_BACK"}catch(e){throw this.state$="FAILED",t.report(e,"HAS_FAILED_TO_ROLLBACK"),this.close(),e}if(!1!==this.listr.options?.exitAfterRollback)throw this.close(),r}else{if(this.state$="FAILED",!1!==this.listr.options.exitOnError&&!1!==await Br(this.task?.exitOnError,e))throw t.report(r,"HAS_FAILED"),this.close(),r;this.hasSubtasks()||t.report(r,"HAS_FAILED_WITHOUT_ERROR")}}finally{this.close()}}close(){this.emit("CLOSED"),this.listr.events.emit("SHOUD_REFRESH_RENDER"),this.complete()}},zr=class extends tr{static{Qt(this,"ListrEventManager")}},Yr=class{constructor(e,t,r){this.task=e,this.options=t,this.parentTask=r,this.options={concurrent:!1,renderer:"default",fallbackRenderer:"simple",exitOnError:!0,exitAfterRollback:!0,collectErrors:!1,registerSignalListeners:!0,...this.parentTask?.options??{},...t},!0===this.options.concurrent?this.options.concurrent=1/0:"number"!=typeof this.options.concurrent&&(this.options.concurrent=1),this.concurrency=new Dr({concurrency:this.options.concurrent}),r&&(this.path=[...r.listr.path,r.title],this.errors=r.listr.errors),this.parentTask?.listr.events instanceof zr?this.events=this.parentTask.listr.events:this.events=new zr;const s=$r({renderer:this.options.renderer,rendererOptions:this.options.rendererOptions,fallbackRenderer:this.options.fallbackRenderer,fallbackRendererOptions:this.options.fallbackRendererOptions,fallbackRendererCondition:this.options?.fallbackRendererCondition,silentRendererCondition:this.options?.silentRendererCondition});this.rendererClass=s.renderer,this.rendererClassOptions=s.options,this.rendererSelection=s.selection,this.add(e??[]),this.options.registerSignalListeners&&(this.boundSignalHandler=this.signalHandler.bind(this),process.once("SIGINT",this.boundSignalHandler).setMaxListeners(0)),(this.options?.forceTTY||process.env.LISTR_FORCE_TTY)&&(process.stdout.isTTY=!0,process.stderr.isTTY=!0),this.options?.forceUnicode&&(process.env.LISTR_FORCE_UNICODE="1")}static{Qt(this,"Listr")}tasks=[];errors=[];ctx;events;path=[];rendererClass;rendererClassOptions;rendererSelection;boundSignalHandler;concurrency;renderer;isRoot(){return!this.parentTask}isSubtask(){return!!this.parentTask}add(e){this.tasks.push(...this.generate(e))}async run(e){this.renderer||(this.renderer=new this.rendererClass(this.tasks,this.rendererClassOptions,this.events)),await this.renderer.render(),this.ctx=this.options?.ctx??e??{},await Promise.all(this.tasks.map((e=>e.check(this.ctx))));try{await Promise.all(this.tasks.map((e=>this.concurrency.add((()=>this.runTask(e)))))),this.renderer.end(),this.removeSignalHandler()}catch(e){if(!1!==this.options.exitOnError)throw this.renderer.end(e),this.removeSignalHandler(),e}return this.ctx}generate(e){return(e=Array.isArray(e)?e:[e]).map((e=>{let t;return"PRIMARY"===this.rendererSelection?t=e.rendererOptions:"SECONDARY"===this.rendererSelection&&(t=e.fallbackRendererOptions),new Wr(this,e,this.options,this.rendererClassOptions,t)}))}async runTask(e){if(await e.check(this.ctx))return new jr(e).run(this.ctx)}signalHandler(){this.tasks?.forEach((async e=>{e.isPending()&&(e.state$="FAILED")})),this.isRoot()&&(this.renderer.end(new Error("Interrupted.")),process.exit(127))}removeSignalHandler(){this.boundSignalHandler&&process.removeListener("SIGINT",this.boundSignalHandler)}};const qr=Ne.Ay.blue(pr.arrowRight),Vr=Ne.Ay.redBright(pr.cross),Xr=Ne.Ay.yellow(pr.warning),Qr=(e,t,r)=>`${Ne.Ay.redBright(`${Vr} Validation Error:`)}\n\n Invalid value for '${Ne.Ay.bold(e)}': ${Ne.Ay.bold((0,Oe.inspect)(r))}\n\n ${t}`,Zr=Ne.Ay.redBright(`${Vr} Current directory is not a git directory!`),Jr=Ne.Ay.redBright(`${Vr} Failed to get staged files!`),es=`${Vr} No valid configuration found.`,ts=`${qr} No staged files found.`,rs=`${qr} No staged files match any configured task.`,ss=Ne.Ay.yellow(`${Xr} Some of your tasks use \`git add\` command. Please remove it from the config since all modifications made by tasks will be automatically added to the git commit index.\n`),ns="Skipped because of errors from tasks.",is=`\n ${Ne.Ay.redBright(`${Vr} lint-staged failed due to a git error.`)}`,os=(e,t,r)=>`${Ne.Ay.redBright(`${Vr} Validation Error:`)}\n\n Invalid value for option '${Ne.Ay.bold(e)}': ${Ne.Ay.bold(t)}\n\n ${r}\n\nSee https://github.com/okonet/lint-staged#command-line-flags`,as=`\n ${Ne.Ay.yellow(`${Xr} lint-staged prevented an empty git commit.\n Use the --allow-empty option to continue, or check your task configuration`)}\n`,cs=(Ne.Ay.redBright(`${Vr} Failed to read config from stdin.`),(e,t)=>`${Ne.Ay.redBright(`${t} Failed to parse config from file "${e}".`)}\n\n${t}\n\nSee https://github.com/okonet/lint-staged#configuration.`),ls=(e={},t)=>{if(!Array.isArray(e.output))return;const r=e.errors?.size>0?t.error:t.log;for(const t of e.output)r(t)},us=e=>{if(e===i.posix.sep||e===i.win32.sep)return i.posix.sep;let t=e.split(/[/\\]+/).join(i.posix.sep);return(e.startsWith("\\\\?\\")||e.startsWith("\\\\.\\"))&&(t=t.replace(/^\/(\.|\?)/,"//$1")),t.endsWith(i.posix.sep)&&(t=t.slice(0,-1)),t},ps=s("lint-staged:chunkFiles"),ds=({files:e,baseDir:t,maxArgLength:r=null,relative:s=!1})=>{const n=e.map((e=>us(s||!t?e:i.resolve(t,e))));if(!r)return ps("Skip chunking files because of undefined maxArgLength"),[n];const o=n.join(" ").length;ps(`Resolved an argument string length of ${o} characters from ${n.length} files`);const a=Math.min(Math.ceil(o/r),n.length);return ps(`Creating ${a} chunks for maxArgLength of ${r}`),((e,t)=>{if(1===t)return[e];const r=[];let s=0;for(let n=0;n<t;n++){const i=Math.ceil((e.length-s)/(t-n));r.push([]),r[n]=e.slice(s,i+s),s+=i}return r})(n,a)};var hs=r(7498);const fs=s("lint-staged:generateTasks"),gs=({config:e,cwd:t=process.cwd(),files:r,relative:s=!1})=>{fs("Generating linter tasks");const n=r.map((e=>us(i.relative(t,e))));return Object.entries(e).map((([e,r])=>{const o=e.startsWith("../"),a=n.filter((e=>!!o||!e.startsWith("..")&&!i.isAbsolute(e))),c=hs(a,e,{cwd:t,dot:!0,matchBase:!e.includes("/"),posixSlashes:!0,strictBrackets:!0}),l={pattern:e,commands:r,fileList:c.map((e=>us(s?e:i.resolve(t,e))))};return fs("Generated task: \n%O",l),l}))};var ms=r(7075);const ys=new RegExp(w.EOL+"$"),bs=e=>new ms.Writable({write:function(t,r,s){e(t.toString().replace(ys,"")),s()}}),Es=({renderer:e},{FORCE_COLOR:t})=>"silent"===e||"test"===e||Number(t)>0?e:"verbose",ws=(e,t,r=process.env)=>{const s=(({debug:e,quiet:t},r,s)=>t?{renderer:"silent"}:"test"===s.NODE_ENV?{renderer:"test",rendererOptions:{logger:new mr({processOutput:new Er(bs(r.log),bs(r.error))})}}:e||"dumb"===s.TERM?{renderer:"verbose"}:{renderer:"update",rendererOptions:{formatOutput:"truncate"}})(e,t,r);return{...s,fallbackRenderer:Es(s,r)}};function As(e,t){return["diff","--name-only","-z",`--diff-filter=${void 0!==t?t.trim():"ACMR"}`,...void 0!==e?e.trim().split(" "):["--staged"]]}const Ss=e=>e?e.replace(/\u0000$/,"").split("\0"):[];var Rs=r(1455);const Cs=s("lint-staged:file"),vs=async(e,t=!0)=>{Cs("Reading file `%s`",e);try{return await Rs.readFile(e)}catch(r){if(t&&"ENOENT"===r.code)return Cs("File `%s` doesn't exist, ignoring...",e),null;throw r}},Ts=async(e,t=!0)=>{Cs("Removing file `%s`",e);try{await Rs.unlink(e)}catch(r){if(!t||"ENOENT"!==r.code)throw r;Cs("File `%s` doesn't exist, ignoring...",e)}},Os=async(e,t)=>{Cs("Writing file `%s`",e),await Rs.writeFile(e,t)},xs=Symbol("ApplyEmptyCommitError"),ks=new Error("Configuration could not be found"),_s=new Error("Configuration should be an object or a function"),Ls=new Error("Configuration should not be empty"),Ps=Symbol("GetBackupStashError"),Is=Symbol("GetStagedFilesError"),$s=Symbol("GitError"),Bs=Symbol("GitRepoError"),Hs=Symbol("HideUnstagedChangesError"),Fs=new Error("Invalid Options"),Ds=Symbol("RestoreMergeStatusError"),Ms=Symbol("RestoreOriginalStateError"),Ns=Symbol("RestoreUnstagedChangesError"),Gs=Symbol("TaskError"),Us=s("lint-staged:GitWorkflow"),js=/\x00/,Ks=(e,t=!0)=>e.reduce(((e,r)=>{if(js.test(r)){const[s,n]=r.split(js);t&&e.push(n),e.push(s)}else e.push(r);return e}),[]),Ws="lint-staged automatic backup",zs="lint-staged_unstaged.patch",Ys=["--binary","--unified=0","--no-color","--no-ext-diff","--src-prefix=a/","--dst-prefix=b/","--patch","--submodule=short"],qs=["-v","--whitespace=nowarn","--recount","--unidiff-zero"],Vs=(e,t,r)=>{throw t.errors.add($s),r&&t.errors.add(r),e};class Xs{constructor({allowEmpty:e,gitConfigDir:t,topLevelDir:r,matchedFileChunks:s,diff:n,diffFilter:o}){this.execGit=(e,t={})=>Me(e,{...t,cwd:r}),this.deletedFiles=[],this.gitConfigDir=t,this.topLevelDir=r,this.diff=n,this.diffFilter=o,this.allowEmpty=e,this.matchedFileChunks=s,this.mergeHeadFilename=i.resolve(t,"MERGE_HEAD"),this.mergeModeFilename=i.resolve(t,"MERGE_MODE"),this.mergeMsgFilename=i.resolve(t,"MERGE_MSG")}getHiddenFilepath(e){return i.resolve(this.gitConfigDir,`./${e}`)}async getBackupStash(e){const t=(await this.execGit(["stash","list"])).split("\n").findIndex((t=>t.includes(Ws)&&t.includes(e.backupHash)));if(-1===t)throw e.errors.add(Ps),new Error("lint-staged automatic backup is missing!");return String(t)}async getDeletedFiles(){Us("Getting deleted files...");const e=(await this.execGit(["ls-files","--deleted"])).split("\n").filter(Boolean).map((e=>i.resolve(this.topLevelDir,e)));return Us("Found deleted files:",e),e}async backupMergeStatus(){Us("Backing up merge state..."),await Promise.all([vs(this.mergeHeadFilename).then((e=>this.mergeHeadBuffer=e)),vs(this.mergeModeFilename).then((e=>this.mergeModeBuffer=e)),vs(this.mergeMsgFilename).then((e=>this.mergeMsgBuffer=e))]),Us("Done backing up merge state!")}async restoreMergeStatus(e){Us("Restoring merge state...");try{await Promise.all([this.mergeHeadBuffer&&Os(this.mergeHeadFilename,this.mergeHeadBuffer),this.mergeModeBuffer&&Os(this.mergeModeFilename,this.mergeModeBuffer),this.mergeMsgBuffer&&Os(this.mergeMsgFilename,this.mergeMsgBuffer)]),Us("Done restoring merge state!")}catch(t){Us("Failed restoring merge state with error:"),Us(t),Vs(new Error("Merge state could not be restored due to an error!"),e,Ds)}}async getPartiallyStagedFiles(){Us("Getting partially staged files...");const e=(await this.execGit(["status","-z"])).split(/\x00(?=[ AMDRCU?!]{2} |$)/).filter((e=>{const[t,r]=e;return" "!==t&&" "!==r&&"?"!==t&&"?"!==r})).map((e=>e.substr(3))).filter(Boolean);return Us("Found partially staged files:",e),e.length?e:null}async prepare(e,t){try{if(Us(t.title),this.partiallyStagedFiles=await this.getPartiallyStagedFiles(),this.partiallyStagedFiles){e.hasPartiallyStagedFiles=!0;const t=this.getHiddenFilepath(zs),r=Ks(this.partiallyStagedFiles);await this.execGit(["diff",...Ys,"--output",t,"--",...r])}else e.hasPartiallyStagedFiles=!1;if(!e.shouldBackup)return;await this.backupMergeStatus(),this.deletedFiles=await this.getDeletedFiles();const r=await this.execGit(["stash","create"]);e.backupHash=await this.execGit(["rev-parse","--short",r]),await this.execGit(["stash","store","--quiet","--message",`${Ws} (${e.backupHash})`,e.backupHash]),t.title=`Backed up original state in git stash (${e.backupHash})`,Us(t.title)}catch(t){Vs(t,e)}}async hideUnstagedChanges(e){try{const e=Ks(this.partiallyStagedFiles,!1);await this.execGit(["checkout","--force","--",...e])}catch(t){Vs(t,e,Hs)}}async applyModifications(e){Us("Adding task modifications to index...");for(const e of this.matchedFileChunks)await this.execGit(["add","--",...e]);Us("Done adding task modifications to index!"),await this.execGit(As(this.diff,this.diffFilter))||this.allowEmpty||Vs(new Error("Prevented an empty git commit!"),e,xs)}async restoreUnstagedChanges(e){Us("Restoring unstaged changes...");const t=this.getHiddenFilepath(zs);try{await this.execGit(["apply",...qs,t])}catch(r){Us("Error while restoring changes:"),Us(r),Us("Retrying with 3-way merge");try{await this.execGit(["apply",...qs,"--3way",t])}catch(t){Us("Error while restoring unstaged changes using 3-way merge:"),Us(t),Vs(new Error("Unstaged changes could not be restored due to a merge conflict!"),e,Ns)}}}async restoreOriginalState(e){try{Us("Restoring original state..."),await this.execGit(["reset","--hard","HEAD"]),await this.execGit(["stash","apply","--quiet","--index",await this.getBackupStash(e)]),await this.restoreMergeStatus(e),await Promise.all(this.deletedFiles.map((e=>Ts(e)))),await Ts(this.getHiddenFilepath(zs)),Us("Done restoring original state!")}catch(t){Vs(t,e,Ms)}}async cleanup(e){try{Us("Dropping backup stash..."),await this.execGit(["stash","drop","--quiet",await this.getBackupStash(e)]),Us("Done dropping backup stash!")}catch(t){Vs(t,e)}}}const Qs=s("lint-staged:groupFilesByConfig");var Zs=r(6454);function Js(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0;r<e.length;r++){var s=e[r];if("string"==typeof s)return s}}var en=r(4434);const tn=({quiet:e=!1}={})=>({hasPartiallyStagedFiles:null,shouldBackup:null,backupHash:null,shouldHidePartiallyStaged:!0,errors:new Set([]),events:new en,output:[],quiet:e}),rn=e=>e.hasPartiallyStagedFiles&&e.shouldHidePartiallyStaged,sn=e=>!!e.shouldBackup&&(e.errors.has($s)?is:e.errors.has(Gs)?ns:void 0),nn=e=>e.errors.has($s)?is:e.errors.has(Gs)?ns:void 0,on=e=>e.shouldBackup&&(e.errors.has(Gs)||e.errors.has(xs)||e.errors.has(Ns)),an=e=>{if(e.errors.has($s)&&!e.errors.has(xs)&&!e.errors.has(Ns))return is},cn=e=>e.shouldBackup,ln=e=>an(e)||e.errors.has(Ms)?is:void 0,un=e=>e.replaceAll(" ","\\ "),pn="lint-staged:taskError",dn=s("lint-staged:resolveTaskFn"),hn=({code:e,killed:t,signal:r})=>(t?"KILLED":r)||e||"FAILED",fn=(e,t,r,s=!1)=>{const{stderr:n,stdout:i}=t;if(n||i){const t=s?Ne.Ay.redBright(`${Vr} ${e}:`):`${qr} ${e}:`,o=[].concat(r.quiet?[]:["",t]).concat(n||[]).concat(i||[]);r.output.push(o.join("\n"))}else if(s){const s=hn(t),n=Ne.Ay.redBright(`\n${Vr} ${e} failed without output (${s}).`);r.quiet||r.output.push(n)}},gn=({command:e,cwd:t=process.cwd(),files:r,topLevelDir:s,isFn:n,shell:i=!1,verbose:o=!1})=>{const[a,...c]=function(e){var t,r=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,s=e,n=[];do{null!==(t=r.exec(s))&&n.push(Js(t[1],t[6],t[0]))}while(null!==t);return n}(e);dn("cmd:",a),dn("args:",c);const l={cwd:/^git(\.exe)?/i.test(a)?s:t,preferLocal:!0,reject:!1,shell:i,stdin:"ignore"};return dn("execaOptions:",l),async(t=tn())=>{const s=i?function(e,t){const[r,...s]=(e=>{const t=[];for(const r of e.trim().split(Se)){const e=t.at(-1);e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t})(e);return Ie(r,s,t)}(n?e:`${e} ${r.map(un).join(" ")}`,l):Ie(a,n?c:c.concat(r),l),u=((e,t)=>{let r;const s=async()=>{r=(async e=>{try{const t=await Zs(e.pid);for(const e of t)try{process.kill(e)}catch(t){dn('Failed to kill process with pid "%d": %o',e,t)}}catch(t){dn('Failed to kill process with pid "%d": %o',e.pid,t)}e.kill()})(t),await r};return e.events.on(pn,s,{once:!0}),async()=>{e.events.off(pn,s),await r}})(t,s),p=await s;if(await u(),p.failed||p.killed||null!=p.signal)throw((e,t,r)=>{r.errors.add(Gs),r.events.emit(pn,Gs),fn(e,t,r,!0);const s=hn(t);return new Error(`${Ne.Ay.redBright(e)} ${Ne.Ay.dim(`[${s}]`)}`)})(e,p,t);o&&fn(e,p,t)}},mn=s("lint-staged:makeCmdTasks"),yn=async({commands:e,cwd:t,files:r,topLevelDir:s,shell:n,verbose:i})=>{mn("Creating listr tasks for commands %o",e);const o=Array.isArray(e)?e:[e],a=[];for(const e of o){const o="function"==typeof e,c=o?await e([...r]):e,l=Array.isArray(c)?c:[c];for(const e of l){if(o&&"string"!=typeof e)throw new Error(Qr("[Function]","Function task should return a string or an array of strings",c));const l=gn({command:e,cwd:t,files:r,topLevelDir:s,isFn:o,shell:n,verbose:i});a.push({title:e,command:e,task:l})}}return a},bn=s("lint-staged:resolveGitRepo"),En=["package.json","package.yaml","package.yml",".lintstagedrc",".lintstagedrc.json",".lintstagedrc.yaml",".lintstagedrc.yml",".lintstagedrc.mjs",".lintstagedrc.mts",".lintstagedrc.js",".lintstagedrc.ts",".lintstagedrc.cjs",".lintstagedrc.cts","lint-staged.config.mjs","lint-staged.config.mts","lint-staged.config.js","lint-staged.config.ts","lint-staged.config.cjs","lint-staged.config.cts"],wn=async()=>{},An=/(?<![\\$])({)(?:(?!(?<!\\),|\.\.|\{|\}).)*?(?<!\\)(})/g,Sn=/{{[^}{]*}}/,Rn=s("lint-staged:validateConfig"),Cn=e=>e&&"object"==typeof e&&!Array.isArray(e),vn=new Map([["concurrent",e=>"boolean"==typeof e],["chunkSize",e=>"number"==typeof e],["globOptions",Cn],["linters",Cn],["ignore",e=>Array.isArray(e)],["subTaskConcurrency",e=>"number"==typeof e],["renderer",e=>"string"==typeof e],["relative",e=>"boolean"==typeof e]]),Tn=(e,t,r)=>{try{return((e,t,r)=>{if(Rn("Validating config from `%s`...",t),!e||"object"!=typeof e&&"function"!=typeof e)throw _s;if("function"==typeof e)return{"*":e};if(0===Object.entries(e).length)throw Ls;const s=[],n=Object.entries(e).reduce(((e,[t,n])=>{if(vn.has(t))return vn.get(t)(n)&&s.push(Qr(t,"Advanced configuration has been deprecated.",n)),e;Array.isArray(n)&&!n.some((e=>"string"!=typeof e&&"function"!=typeof e))||"string"==typeof n||"function"==typeof n||s.push(Qr(t,"Should be a string, a function, or an array of strings and functions.",n));const i=((e,t)=>{const r=(e=>{let t=`${e}`;const r=Sn.exec(e)?.[0];if(r){const e=r.replace("{{","{").replace("}}","}");t=t.replace(r,e)}return t})((e=>{let t=`${e}`,r=null;for(;r=An.exec(e);){const e=r[0],s=e.replace(/{/,"").replace(/}/,"");t=t.replace(e,s)}return t})(e));var s,n;return r!==e&&t.warn((s=e,n=r,Ne.Ay.yellow(`${Xr} Detected incorrect braces with only single value: \`${s}\`. Reformatted as: \`${n}\`\n`))),r})(t,r);return{...e,[i]:n}}),{});if(s.length){const e=s.join("\n\n");throw r.error(cs(t,e)),new Error(e)}return Rn("Validated config from `%s`:",t),Rn((0,Oe.inspect)(e,{compact:!1})),n})(e,t,r)}catch(e){throw r.error(cs(t,e)),e}},On=s("lint-staged:searchConfigs"),xn=["ls-files","-z","--full-name","-t"],kn=e=>En.includes(i.basename(e)),_n=e=>e.split("/").length,Ln=(e,t)=>_n(e)>_n(t)?-1:1,Pn=s("lint-staged:runAll"),In=e=>Object.assign(new Error("lint-staged failed"),{ctx:e}),$n=async({allowEmpty:e=!1,concurrent:t=!0,configObject:r,configPath:s,cwd:n,debug:o=!1,diff:a,diffFilter:c,maxArgLength:l,quiet:u=!1,relative:p=!1,shell:d=!1,stash:h=void 0===a,hidePartiallyStaged:f=h,verbose:g=!1},m=console)=>{Pn("Running all linter scripts...");const y=!!n;n=y?i.resolve(n):process.cwd(),Pn("Using working directory `%s`",n);const b=tn({quiet:u}),{topLevelDir:E,gitConfigDir:w}=await(async(e=process.cwd())=>{try{bn("Resolving git repo from `%s`",e),bn("Unset GIT_DIR (was `%s`)",process.env.GIT_DIR),delete process.env.GIT_DIR,bn("Unset GIT_WORK_TREE (was `%s`)",process.env.GIT_WORK_TREE),delete process.env.GIT_WORK_TREE;const t=await Me(["rev-parse","--show-cdup"],{cwd:e}),r=us(i.join(e,t));bn("Resolved git repository top-level directory to be `%s`",r);const s=await(async e=>{const t=Me(["rev-parse","--show-toplevel"],{cwd:e}),r=Me(["rev-parse","--absolute-git-dir"],{cwd:e}),[s,n]=await Promise.all([t,r]);return i.relative(s,n)})(e),n=us(i.join(r,s));return bn("Resolved git config directory to be `%s`",n),{topLevelDir:r,gitConfigDir:n}}catch(e){return bn("Failed to resolve git repo with error:",e),{error:e,topLevelDir:null,gitConfigDir:null}}})(n);if(!E)throw u||b.output.push(Zr),b.errors.add(Bs),In(b);const A=await Me(["log","-1"],{cwd:E}).then((()=>!0)).catch((()=>!1));b.shouldBackup=A&&h,b.shouldBackup||u||m.warn(((e,t)=>{const r=void 0!==t?"`--diff` was used":e?"`--no-stash` was used":"there\u2019s no initial commit yet";return Ne.Ay.yellow(`${Xr} Skipping backup because ${r}.\n`)})(A,a)),b.shouldHidePartiallyStaged=f,b.shouldHidePartiallyStaged||u||m.warn(((e,t)=>{const r=void 0!==t?"`--diff` was used":e?"`--no-hide-partially-staged` was used":"`--no-stash` was used";return Ne.Ay.yellow(`${Xr} Skipping hiding unstaged changes from partially staged files because ${r}.\n`)})(A&&h,a));const S=await(async({cwd:e=process.cwd(),diff:t,diffFilter:r}={})=>{try{const s=await Me(As(t,r),{cwd:e});if(!s)return[];const n=await(async({cwd:e})=>(await Me(["submodule","--quiet","foreach","echo $displaypath"],{cwd:e})).split("\n").map((t=>us(i.resolve(e,t)))))({cwd:e});return Ss(s).map((t=>us(i.resolve(e,t)))).filter((e=>!n.includes(e)))}catch{return null}})({cwd:E,diff:a,diffFilter:c});if(!S)throw u||b.output.push(Jr),b.errors.add(Is),In(b);if(Pn("Loaded list of staged files in git:\n%O",S),0===S.length)return u||b.output.push(ts),b;const R=await(async({configObject:e,configPath:t,cwd:r=process.cwd(),topLevelDir:s=r},n)=>{if(On("Searching for configuration files..."),e)return On("Using single direct configuration object..."),{"":Tn(e,"config object",n)};if(t){On("Using single configuration path...");const{config:e,filepath:r}=await wn();return e?{[t]:Tn(e,r,n)}:{}}const[o,a]=await Promise.all([Me(xn,{cwd:s}).then(Ss),Me([...xn,"--others","--exclude-standard"],{cwd:s}).then(Ss)]),c=[...o,...a].flatMap((e=>e.startsWith("S ")?[]:[e.replace(/^[HSMRCK?U] /,"")])).filter(kn).map((e=>us(i.join(s,e)))).filter((l=r,e=>e.startsWith(us(l)))).sort(Ln);var l;On("Found possible config files:",c);const u=c.reduce(((e,t)=>Object.assign(e,{[t]:null})),{});await Promise.all(Object.keys(u).map((e=>wn().then((({config:t,filepath:r})=>{t&&(e!==r&&On('Config file "%s" resolved to "%s"',e,r),u[e]=Tn(t,r,n))})))));const p=Object.entries(u).filter((([,e])=>!!e)).reduce(((e,[t,r])=>({...e,[t]:r})),{});if(!Object.keys(p).length){On('Could not find config files inside "%s"',r);const{config:e,filepath:t}=await wn();e?(On('Found parent configuration file from "%s"',t),p[t]=Tn(e,t,n)):On('Could not find parent configuration files from "%s"',r)}return On("Found %d config files",Object.keys(p).length),p})({configObject:r,configPath:s,cwd:n,topLevelDir:E},m),C=Object.keys(R).length;if(0===C)throw b.errors.add(ks),In(b);const v=await(async({configs:e,files:t,singleConfigMode:r})=>{Qs("Grouping %d files by %d configurations",t.length,Object.keys(e).length);const s=new Set(t),n={};for(const[o,a]of Object.entries(e)){if(r){n[o]={config:a,files:t};break}const e=i.normalize(i.dirname(o)),c=t=>{const r=i.relative(e,t);return r&&!r.startsWith("..")&&!i.isAbsolute(r)},l=Object.keys(a).some((e=>e.startsWith(".."))),u=new Set(l?s:void 0);l||s.forEach((e=>{c(e)&&u.add(e)})),u.forEach((e=>{s.delete(e)})),n[o]={config:a,files:Array.from(u)}}return n})({configs:R,files:S,singleConfigMode:r||void 0!==s}),T=C>1;let O=!1;const x={ctx:b,exitOnError:!1,registerSignalListeners:!1,...ws({debug:o,quiet:u},m)};let k=0;const _=[],L=new Set;for(const[e,{config:r,files:s}]of Object.entries(v)){const o=e?us(i.relative(n,e)):"Config object",a=ds({baseDir:E,files:s,maxArgLength:l,relative:p}),c=T&&!y?i.dirname(e):n,u=a.length;u>1&&Pn("Chunked staged files from `%s` into %d part",e,u);for(const[e,s]of a.entries()){const n=await Promise.all(gs({config:r,cwd:c,files:s,relative:p}).map((e=>yn({commands:e.commands,cwd:c,files:e.fileList,topLevelDir:E,shell:d,verbose:g}).then((t=>{e.fileList.forEach((e=>{const t=i.isAbsolute(e)?e:us(i.join(c,e));L.add(t)})),O=O||t.some((e=>"git add"===e.command));const r=e.fileList.length;return{title:`${e.pattern}${Ne.Ay.dim(` \u2014 ${r} ${1===r?"file":"files"}`)}`,task:async(e,r)=>r.newListr(t,{concurrent:!1,exitOnError:!0}),skip:()=>0===r&&`${e.pattern}${Ne.Ay.dim(" \u2014 no files")}`}})))));k+=n.length,_.push({title:`${o}${Ne.Ay.dim(` \u2014 ${s.length} ${s.length>1?"files":"file"}`)}`+(u>1?Ne.Ay.dim(` (chunk ${e+1}/${u})...`):""),task:(e,r)=>r.newListr(n,{concurrent:t,exitOnError:!0}),skip:()=>b.errors.has($s)?"Skipped because of previous git error.":!!n.every((e=>e.skip()))&&`${o}${Ne.Ay.dim(" \u2014 no tasks to run")}`})}}if(O&&!u&&m.warn(ss),_.every((e=>e.skip())))return u||b.output.push(rs),b;const P=ds({baseDir:n,files:Array.from(L),maxArgLength:l,relative:!1}),I=new Xs({allowEmpty:e,gitConfigDir:w,topLevelDir:E,matchedFileChunks:P,diff:a,diffFilter:c}),$=new Yr([{title:b.shouldBackup?"Backing up original state...":"Preparing lint-staged...",task:(e,t)=>I.prepare(e,t)},{title:"Hiding unstaged changes to partially staged files...",task:e=>I.hideUnstagedChanges(e),enabled:rn},{title:`Running tasks for ${a?"changed":"staged"} files...`,task:(e,r)=>r.newListr(_,{concurrent:t}),skip:()=>_.every((e=>e.skip()))},{title:"Applying modifications from tasks...",task:e=>I.applyModifications(e),skip:sn},{title:"Restoring unstaged changes to partially staged files...",task:e=>I.restoreUnstagedChanges(e),enabled:rn,skip:nn},{title:"Reverting to original state because of errors...",task:e=>I.restoreOriginalState(e),enabled:on,skip:an},{title:"Cleaning up temporary files...",task:e=>I.cleanup(e),enabled:cn,skip:ln}],x);if(Pn("Set max event listeners to the number of tasks: %i",k),b.events.setMaxListeners(k),await $.run(),b.errors.size>0)throw In(b);return b},Bn=s("lint-staged:validateOptions"),Hn=s("lint-staged"),Fn=()=>{switch(process.platform){case"darwin":return 262144;case"win32":return 8191;default:return 131072}},Dn=async({allowEmpty:e=!1,concurrent:t=!0,config:n,configPath:o,cwd:a,debug:c=!1,diff:l,diffFilter:u,maxArgLength:p=Fn()/2,quiet:d=!1,relative:h=!1,shell:f=!1,stash:g=void 0===l,hidePartiallyStaged:m=g,verbose:y=!1}={},b=console)=>{c&&(s.enable("lint-staged*"),Hn("Running `lint-staged@%s` on Node.js %s (%s)",await(async()=>JSON.parse(await Rs.readFile(new URL(r(9947),r.b))).version)(),process.version,process.platform));const E=await Me(["version","--build-options"],{cwd:a});Hn("%s",E);const w={allowEmpty:e,concurrent:t,configObject:n,configPath:o,cwd:a,debug:c,diff:l,diffFilter:u,maxArgLength:p,quiet:d,relative:h,shell:f,stash:g,hidePartiallyStaged:m,verbose:y};await(async(e={},t)=>{if(Bn("Validating options..."),"string"==typeof e.cwd)try{const t=i.resolve(e.cwd);await Rs.access(t,D.constants.F_OK)}catch(r){throw Bn("Failed to validate options: %o",e),t.error(os("cwd",e.cwd,r.message)),Fs}if("string"==typeof e.shell)try{await Rs.access(e.shell,D.constants.X_OK)}catch(r){throw Bn("Failed to validate options: %o",e),t.error(os("shell",e.shell,r.message)),Fs}Bn("Validated options: %o",e)})(w,b),Hn("Unset GIT_LITERAL_PATHSPECS (was `%s`)",process.env.GIT_LITERAL_PATHSPECS),delete process.env.GIT_LITERAL_PATHSPECS;try{const e=await $n(w,b);return Hn("Tasks were executed successfully!"),ls(e,b),!0}catch(e){if(e?.ctx?.errors){const{ctx:t}=e;return t.errors.has(ks)?b.error(es):t.errors.has(xs)?b.warn(as):!t.errors.has($s)&&!ln(t)||t.errors.has(Ps)||(b.error(is),t.shouldBackup&&b.error("Any lost modifications can be restored from a git stash:\n\n > git stash list\n stash@{0}: automatic lint-staged backup\n > git stash apply --index stash@{0}\n")),ls(t,b),!1}throw e}}},7235:(e,t,r)=>{function s(e={}){const{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"}r.d(t,{A:()=>s})},7017:(e,t,r)=>{r.d(t,{cf:()=>p});const s=[];s.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&s.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&s.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const n=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,i=Symbol.for("signal-exit emitter"),o=globalThis,a=Object.defineProperty.bind(Object);class c{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(o[i])return o[i];a(o,i,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const r=this.listeners[e],s=r.indexOf(t);-1!==s&&(0===s&&1===r.length?r.length=0:r.splice(s,1))}emit(e,t,r){if(this.emitted[e])return!1;this.emitted[e]=!0;let s=!1;for(const n of this.listeners[e])s=!0===n(t,r)||s;return"exit"===e&&(s=this.emit("afterExit",t,r)||s),s}}class l{}const u=globalThis.process,{onExit:p,load:d,unload:h}=(f=n(u)?new class extends l{#e="win32"===u.platform?"SIGINT":"SIGHUP";#t=new c;#r;#s;#n;#i={};#o=!1;constructor(e){super(),this.#r=e,this.#i={};for(const t of s)this.#i[t]=()=>{const r=this.#r.listeners(t);let{count:s}=this.#t;const n=e;if("object"==typeof n.__signal_exit_emitter__&&"number"==typeof n.__signal_exit_emitter__.count&&(s+=n.__signal_exit_emitter__.count),r.length===s){this.unload();const r=this.#t.emit("exit",null,t),s="SIGHUP"===t?this.#e:t;r||e.kill(e.pid,s)}};this.#n=e.reallyExit,this.#s=e.emit}onExit(e,t){if(!n(this.#r))return()=>{};!1===this.#o&&this.load();const r=t?.alwaysLast?"afterExit":"exit";return this.#t.on(r,e),()=>{this.#t.removeListener(r,e),0===this.#t.listeners.exit.length&&0===this.#t.listeners.afterExit.length&&this.unload()}}load(){if(!this.#o){this.#o=!0,this.#t.count+=1;for(const e of s)try{const t=this.#i[e];t&&this.#r.on(e,t)}catch(e){}this.#r.emit=(e,...t)=>this.#a(e,...t),this.#r.reallyExit=e=>this.#c(e)}}unload(){this.#o&&(this.#o=!1,s.forEach((e=>{const t=this.#i[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#r.removeListener(e,t)}catch(e){}})),this.#r.emit=this.#s,this.#r.reallyExit=this.#n,this.#t.count-=1)}#c(e){return n(this.#r)?(this.#r.exitCode=e||0,this.#t.emit("exit",this.#r.exitCode,null),this.#n.call(this.#r,this.#r.exitCode)):0}#a(e,...t){const r=this.#s;if("exit"===e&&n(this.#r)){"number"==typeof t[0]&&(this.#r.exitCode=t[0]);const s=r.call(this.#r,e,...t);return this.#t.emit("exit",this.#r.exitCode,null),s}return r.call(this.#r,e,...t)}}(u):new class extends l{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>f.onExit(e,t),load:()=>f.load(),unload:()=>f.unload()});var f}};
package/dist/828.mjs DELETED
@@ -1 +0,0 @@
1
- export const __webpack_id__=828;export const __webpack_ids__=[828];export const __webpack_modules__={7531:e=>{e.exports=function(e){return Array.isArray(e)?e:[e]}},9184:(e,t,r)=>{var n=r(7531),o=r(6004).get;e.exports=function(e){return function(t,r){var s=0;return n(e).some((function(e){var n,i;if("function"==typeof e?(n=e(t),i=e(r)):"string"==typeof e?(n=o(t,e),i=o(r,e)):(n=t,i=r),n!==i)return"string"==typeof n&&"string"==typeof i?0!==(s=n.localeCompare(i)):(s=n<i?-1:1,!0);s=0})),s}}},8942:e=>{e.exports.createConventionalChangelogOpts=function(e,t){return{parserOpts:e,writerOpts:t}}},1899:e=>{e.exports.createConventionalRecommendedBumpOpts=function(e){return{parserOpts:e,whatBump(e){let t=2,r=0,n=0;return e.forEach((e=>{e.notes.length>0?(r+=e.notes.length,t=0):"feat"===e.type&&(n+=1,2===t&&(t=1))})),{level:t,reason:1===r?`There is ${r} BREAKING CHANGE and ${n} features`:`There are ${r} BREAKING CHANGES and ${n} features`}}}}},3858:(e,t,r)=>{const{createParserOpts:n}=r(6693),{createWriterOpts:o}=r(8421),{createConventionalChangelogOpts:s}=r(8942),{createConventionalRecommendedBumpOpts:i}=r(1899);e.exports=async function(){const e=n(),t=await o();return{parserOpts:e,writerOpts:t,recommendedBumpOpts:i(e),conventionalChangelog:s(e,t)}}},6693:e=>{e.exports.createParserOpts=function(){return{headerPattern:/^(\w*)(?:\((.*)\))?: (.*)$/,headerCorrespondence:["type","scope","subject"],noteKeywords:["BREAKING CHANGE"],revertPattern:/^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w*)\./i,revertCorrespondence:["header","hash"]}}},8421:(e,t,r)=>{const n=r(9184);e.exports.createWriterOpts=async function(){return{transform:(e,t)=>{let r=!0;const n=[];if(e.notes.forEach((e=>{e.title="BREAKING CHANGES",r=!1})),"feat"===e.type)e.type="Features";else if("fix"===e.type)e.type="Bug Fixes";else if("perf"===e.type)e.type="Performance Improvements";else if("revert"===e.type||e.revert)e.type="Reverts";else{if(r)return;"docs"===e.type?e.type="Documentation":"style"===e.type?e.type="Styles":"refactor"===e.type?e.type="Code Refactoring":"test"===e.type?e.type="Tests":"build"===e.type?e.type="Build System":"ci"===e.type&&(e.type="Continuous Integration")}if("*"===e.scope&&(e.scope=""),"string"==typeof e.hash&&(e.shortHash=e.hash.substring(0,7)),"string"==typeof e.subject){let r=t.repository?`${t.host}/${t.owner}/${t.repository}`:t.repoUrl;r&&(r=`${r}/issues/`,e.subject=e.subject.replace(/#([0-9]+)/g,((e,t)=>(n.push(t),`[#${t}](${r}${t})`)))),t.host&&(e.subject=e.subject.replace(/\B@([a-z0-9](?:-?[a-z0-9/]){0,38})/g,((e,r)=>r.includes("/")?`@${r}`:`[@${r}](${t.host}/${r})`)))}return e.references=e.references.filter((e=>-1===n.indexOf(e.issue))),e},groupBy:"type",commitGroupsSort:"title",commitsSort:["scope","subject"],noteGroupsSort:"title",notesSort:n}}},9793:(e,t,r)=>{const{Transform:n}=r(2203),o=r(1414),s=r(8518);function i(e){return"string"==typeof(e={headerPattern:/^(\w*)(?:\(([\w$.\-*/ ]*)\))?: (.*)$/,headerCorrespondence:["type","scope","subject"],referenceActions:["close","closes","closed","fix","fixes","fixed","resolve","resolves","resolved"],issuePrefixes:["#"],noteKeywords:["BREAKING CHANGE","BREAKING-CHANGE"],fieldPattern:/^-(.*?)-$/,revertPattern:/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./,revertCorrespondence:["header","hash"],warn:function(){},mergePattern:null,mergeCorrespondence:null,...e}).headerPattern&&(e.headerPattern=new RegExp(e.headerPattern)),"string"==typeof e.headerCorrespondence&&(e.headerCorrespondence=e.headerCorrespondence.split(",")),"string"==typeof e.referenceActions&&(e.referenceActions=e.referenceActions.split(",")),"string"==typeof e.issuePrefixes&&(e.issuePrefixes=e.issuePrefixes.split(",")),"string"==typeof e.noteKeywords&&(e.noteKeywords=e.noteKeywords.split(",")),"string"==typeof e.fieldPattern&&(e.fieldPattern=new RegExp(e.fieldPattern)),"string"==typeof e.revertPattern&&(e.revertPattern=new RegExp(e.revertPattern)),"string"==typeof e.revertCorrespondence&&(e.revertCorrespondence=e.revertCorrespondence.split(",")),"string"==typeof e.mergePattern&&(e.mergePattern=new RegExp(e.mergePattern)),e}e.exports=function(e){e=i(e);const t=s(e);return new n({objectMode:!0,highWaterMark:16,transform(r,n,s){let i;try{i=o(r.toString(),e,t),s(null,i)}catch(t){!0===e.warn?s(t):(e.warn(t.toString()),s(null,""))}}})},e.exports.sync=function(e,t){t=i(t);const r=s(t);return o(e,t,r)}},1414:e=>{const t=/()(.+)/gi;function r(e){const t=e.match(/[^\r\n]/);if(!t)return"";const r=t.index;let n=e.length-1;for(;"\r"===e[n]||"\n"===e[n];)n--;return e.substring(r,n+1)}function n(e,t){return e?e+="\n"+t:e=t,e}function o(e,r){const n=[];let o,s;const i=null!==e.match(r.references)?r.references:t;for(;o=i.exec(e);){const e=o[1]||null,t=o[2];for(;s=r.referenceParts.exec(t);){let t=null,r=s[1]||"";const o=r.split("/");o.length>1&&(t=o.shift(),r=o.join("/"));const i={action:e,owner:t,repository:r||null,issue:s[3],raw:s[0],prefix:s[2]};n.push(i)}}return n}function s(){return!0}e.exports=function(e,t,i){if(!e||!e.trim())throw new TypeError("Expected a raw commit");if(!t||"object"==typeof t&&!Object.keys(t).length)throw new TypeError("Expected options");if(!i)throw new TypeError("Expected regex");let a,u;const c={},l="string"==typeof t.commentChar?(f=t.commentChar,function(e){return e.charAt(0)!==f}):s;var f;const p=function(e){const t=e.indexOf("# ------------------------ >8 ------------------------");return-1===t?e:e.slice(0,t)}(r(e).split(/\r?\n/)).filter(l).filter((e=>!e.match(/^\s*gpg:/)));let h=!1,d=!0;const E=t.headerCorrespondence?.map((function(e){return e.trim()}))||[],m=t.revertCorrespondence?.map((function(e){return e.trim()}))||[],g=t.mergeCorrespondence?.map((function(e){return e.trim()}))||[];let y=null,v=null,$=null;const x=[];let b=null;const R=[],I=[];let A=null;if(0===p.length)return{body:y,footer:v,header:$,mentions:x,merge:b,notes:R,references:I,revert:A,scope:null,subject:null,type:null};b=p.shift();const w={},O={};y="",v="";const L=b.match(t.mergePattern);if(L&&t.mergePattern){for(b=L[0],$=p.shift();void 0!==$&&!$.trim();)$=p.shift();$||($=""),g.forEach((function(e,t){const r=L[t+1]||null;w[e]=r}))}else $=b,b=null,g.forEach((function(e){w[e]=null}));const N=$.match(t.headerPattern);if(N?E.forEach((function(e,t){const r=N[t+1]||null;O[e]=r})):E.forEach((function(e){O[e]=null})),I.push(...o($,{references:i.references,referenceParts:i.referenceParts})),p.forEach((function(e){if(t.fieldPattern){const r=t.fieldPattern.exec(e);if(r)return void(a=r[1]);if(a)return void(c[a]=n(c[a],e))}let r;const s=e.match(i.notes);if(s){h=!0,d=!1,v=n(v,e);const t={title:s[1],text:s[2]};return void R.push(t)}const u=o(e,{references:i.references,referenceParts:i.referenceParts});if(u.length>0&&(d=!1,r=!0,h=!1),Array.prototype.push.apply(I,u),!r)return h?(R[R.length-1].text=n(R[R.length-1].text,e),void(v=n(v,e))):void(d?y=n(y,e):v=n(v,e));v=n(v,e)})),t.breakingHeaderPattern&&0===R.length){const e=$.match(t.breakingHeaderPattern);if(e){const t=e[3];R.push({title:"BREAKING CHANGE",text:t})}}for(;u=i.mentions.exec(e);)x.push(u[1]);const j=e.match(t.revertPattern);return j?(A={},m.forEach((function(e,t){const r=j[t+1]||null;A[e]=r}))):A=null,R.forEach((function(e){e.text=r(e.text)})),{...O,...w,merge:b,header:$,body:y?r(y):null,footer:v?r(v):null,notes:R,references:I,mentions:x,revert:A,...c}}},8518:e=>{const t=/(?!.*)/;function r(e,t){return e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join(t)}e.exports=function(e){return{notes:function(e,n){if(!e)return t;const o=r(e,"|");return n?n(o):new RegExp("^[\\s|*]*("+o+")[:\\s]+(.*)","i")}((e=e||{}).noteKeywords,e.notesPattern),referenceParts:function(e,n){if(!e)return t;const o=n?"g":"gi";return new RegExp("(?:.*?)??\\s*([\\w-\\.\\/]*?)??("+r(e,"|")+")([\\w-]*\\d+)",o)}(e.issuePrefixes,e.issuePrefixesCaseSensitive),references:function(e){if(!e)return/()(.+)/gi;const t=r(e,"|");return new RegExp("("+t+")(?:\\s+(.*?))(?=(?:"+t+")|$)","gi")}(e.referenceActions),mentions:/@([\w-]+)/g}}},6004:(e,t,r)=>{const n=r(2856),o=["__proto__","prototype","constructor"];function s(e){const t=e.split("."),r=[];for(let e=0;e<t.length;e++){let n=t[e];for(;"\\"===n[n.length-1]&&void 0!==t[e+1];)n=n.slice(0,-1)+".",n+=t[++e];r.push(n)}return r.some((e=>o.includes(e)))?[]:r}e.exports={get(e,t,r){if(!n(e)||"string"!=typeof t)return void 0===r?e:r;const o=s(t);if(0!==o.length){for(let t=0;t<o.length;t++){if(!Object.prototype.propertyIsEnumerable.call(e,o[t]))return r;if(null==(e=e[o[t]])){if(t!==o.length-1)return r;break}}return e}},set(e,t,r){if(!n(e)||"string"!=typeof t)return e;const o=e,i=s(t);for(let t=0;t<i.length;t++){const o=i[t];n(e[o])||(e[o]={}),t===i.length-1&&(e[o]=r),e=e[o]}return o},delete(e,t){if(!n(e)||"string"!=typeof t)return!1;const r=s(t);for(let t=0;t<r.length;t++){const o=r[t];if(t===r.length-1)return delete e[o],!0;if(e=e[o],!n(e))return!1}},has(e,t){if(!n(e)||"string"!=typeof t)return!1;const r=s(t);if(0===r.length)return!1;for(let t=0;t<r.length;t++){if(!n(e))return!1;if(!(r[t]in e))return!1;e=e[r[t]]}return!0}}},2856:e=>{e.exports=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)}},9899:e=>{var t,r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\ud800-\\udfff",s="\\u0300-\\u036f\\ufe20-\\ufe23",i="\\u20d0-\\u20f0",a="\\u2700-\\u27bf",u="a-z\\xdf-\\xf6\\xf8-\\xff",c="A-Z\\xc0-\\xd6\\xd8-\\xde",l="\\ufe0e\\ufe0f",f="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",p="["+o+"]",h="["+f+"]",d="["+s+i+"]",E="\\d+",m="["+a+"]",g="["+u+"]",y="[^"+o+f+E+a+u+c+"]",v="\\ud83c[\\udffb-\\udfff]",$="[^"+o+"]",x="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",R="["+c+"]",I="\\u200d",A="(?:"+g+"|"+y+")",w="(?:"+R+"|"+y+")",O="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",L="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",N="(?:"+d+"|"+v+")?",j="["+l+"]?",S=j+N+"(?:"+I+"(?:"+[$,x,b].join("|")+")"+j+N+")*",T="(?:"+[m,x,b].join("|")+")"+S,C="(?:"+[$+d+"?",d,x,b,p].join("|")+")",P=RegExp("['\u2019]","g"),G=RegExp(d,"g"),U=RegExp(v+"(?="+v+")|"+C+S,"g"),D=RegExp([R+"?"+g+"+"+O+"(?="+[h,R,"$"].join("|")+")",w+"+"+L+"(?="+[h,R+A,"$"].join("|")+")",R+"?"+A+"+"+O,R+"+"+L,E,T].join("|"),"g"),M=RegExp("["+I+o+s+i+l+"]"),F=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_="object"==typeof global&&global&&global.Object===Object&&global,z="object"==typeof self&&self&&self.Object===Object&&self,k=_||z||Function("return this")(),X=(t={\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"ss"},function(e){return null==t?void 0:t[e]});function Z(e){return M.test(e)}var H=Object.prototype.toString,B=k.Symbol,Y=B?B.prototype:void 0,V=Y?Y.toString:void 0;function W(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==H.call(e)}(e))return V?V.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}var K,q=(K=function(e,t,r){return t=t.toLowerCase(),e+(r?J(W(t).toLowerCase()):t)},function(e){return function(e,t,r){for(var n=-1,o=e?e.length:0;++n<o;)r=t(r,e[n],n,e);return r}(function(e,t){return e=W(e),void 0===t?function(e){return F.test(e)}(e)?function(e){return e.match(D)||[]}(e):function(e){return e.match(r)||[]}(e):e.match(t)||[]}(function(e){return(e=W(e))&&e.replace(n,X).replace(G,"")}(e).replace(P,"")),K,"")}),J=function(e){var t,r,n,o,s=Z(e=W(e))?function(e){return Z(e)?function(e){return e.match(U)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,i=s?s[0]:e.charAt(0),a=s?(t=s,r=1,o=t.length,n=void 0===n?o:n,!r&&n>=o?t:function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(o);++n<o;)s[n]=e[n+t];return s}(t,r,n)).join(""):e.slice(1);return i.toUpperCase()+a};e.exports=q},526:e=>{var t,r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\ud800-\\udfff",s="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",a="A-Z\\xc0-\\xd6\\xd8-\\xde",u="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",c="["+u+"]",l="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",f="\\d+",p="["+s+"]",h="["+i+"]",d="[^"+o+u+f+s+i+a+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",g="["+a+"]",y="(?:"+h+"|"+d+")",v="(?:"+g+"|"+d+")",$="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",x="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",b="(?:"+l+"|\\ud83c[\\udffb-\\udfff])?",R="[\\ufe0e\\ufe0f]?",I=R+b+"(?:\\u200d(?:"+["[^"+o+"]",E,m].join("|")+")"+R+b+")*",A="(?:"+[p,E,m].join("|")+")"+I,w=RegExp("['\u2019]","g"),O=RegExp(l,"g"),L=RegExp([g+"?"+h+"+"+$+"(?="+[c,g,"$"].join("|")+")",v+"+"+x+"(?="+[c,g+y,"$"].join("|")+")",g+"?"+y+"+"+$,g+"+"+x,f,A].join("|"),"g"),N=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,j="object"==typeof global&&global&&global.Object===Object&&global,S="object"==typeof self&&self&&self.Object===Object&&self,T=j||S||Function("return this")(),C=(t={\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"ss"},function(e){return null==t?void 0:t[e]}),P=Object.prototype.toString,G=T.Symbol,U=G?G.prototype:void 0,D=U?U.toString:void 0;function M(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==P.call(e)}(e))return D?D.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}var F,_=(F=function(e,t,r){return e+(r?"-":"")+t.toLowerCase()},function(e){return function(e,t,r){for(var n=-1,o=e?e.length:0;++n<o;)r=t(r,e[n],n,e);return r}(function(e,t){return e=M(e),void 0===t?function(e){return N.test(e)}(e)?function(e){return e.match(L)||[]}(e):function(e){return e.match(r)||[]}(e):e.match(t)||[]}(function(e){return(e=M(e))&&e.replace(n,C).replace(O,"")}(e).replace(w,"")),F,"")});e.exports=_},8118:e=>{var t,r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\ud800-\\udfff",s="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",a="A-Z\\xc0-\\xd6\\xd8-\\xde",u="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",c="["+u+"]",l="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",f="\\d+",p="["+s+"]",h="["+i+"]",d="[^"+o+u+f+s+i+a+"]",E="(?:\\ud83c[\\udde6-\\uddff]){2}",m="[\\ud800-\\udbff][\\udc00-\\udfff]",g="["+a+"]",y="(?:"+h+"|"+d+")",v="(?:"+g+"|"+d+")",$="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",x="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",b="(?:"+l+"|\\ud83c[\\udffb-\\udfff])?",R="[\\ufe0e\\ufe0f]?",I=R+b+"(?:\\u200d(?:"+["[^"+o+"]",E,m].join("|")+")"+R+b+")*",A="(?:"+[p,E,m].join("|")+")"+I,w=RegExp("['\u2019]","g"),O=RegExp(l,"g"),L=RegExp([g+"?"+h+"+"+$+"(?="+[c,g,"$"].join("|")+")",v+"+"+x+"(?="+[c,g+y,"$"].join("|")+")",g+"?"+y+"+"+$,g+"+"+x,f,A].join("|"),"g"),N=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,j="object"==typeof global&&global&&global.Object===Object&&global,S="object"==typeof self&&self&&self.Object===Object&&self,T=j||S||Function("return this")(),C=(t={\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"ss"},function(e){return null==t?void 0:t[e]}),P=Object.prototype.toString,G=T.Symbol,U=G?G.prototype:void 0,D=U?U.toString:void 0;function M(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==P.call(e)}(e))return D?D.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}var F,_=(F=function(e,t,r){return e+(r?"_":"")+t.toLowerCase()},function(e){return function(e,t,r){for(var n=-1,o=e?e.length:0;++n<o;)r=t(r,e[n],n,e);return r}(function(e,t){return e=M(e),void 0===t?function(e){return N.test(e)}(e)?function(e){return e.match(L)||[]}(e):function(e){return e.match(r)||[]}(e):e.match(t)||[]}(function(e){return(e=M(e))&&e.replace(n,C).replace(O,"")}(e).replace(w,"")),F,"")});e.exports=_},5030:e=>{var t,r=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,n=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o="\\ud800-\\udfff",s="\\u0300-\\u036f\\ufe20-\\ufe23",i="\\u20d0-\\u20f0",a="\\u2700-\\u27bf",u="a-z\\xdf-\\xf6\\xf8-\\xff",c="A-Z\\xc0-\\xd6\\xd8-\\xde",l="\\ufe0e\\ufe0f",f="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",p="["+o+"]",h="["+f+"]",d="["+s+i+"]",E="\\d+",m="["+a+"]",g="["+u+"]",y="[^"+o+f+E+a+u+c+"]",v="\\ud83c[\\udffb-\\udfff]",$="[^"+o+"]",x="(?:\\ud83c[\\udde6-\\uddff]){2}",b="[\\ud800-\\udbff][\\udc00-\\udfff]",R="["+c+"]",I="\\u200d",A="(?:"+g+"|"+y+")",w="(?:"+R+"|"+y+")",O="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",L="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",N="(?:"+d+"|"+v+")?",j="["+l+"]?",S=j+N+"(?:"+I+"(?:"+[$,x,b].join("|")+")"+j+N+")*",T="(?:"+[m,x,b].join("|")+")"+S,C="(?:"+[$+d+"?",d,x,b,p].join("|")+")",P=RegExp("['\u2019]","g"),G=RegExp(d,"g"),U=RegExp(v+"(?="+v+")|"+C+S,"g"),D=RegExp([R+"?"+g+"+"+O+"(?="+[h,R,"$"].join("|")+")",w+"+"+L+"(?="+[h,R+A,"$"].join("|")+")",R+"?"+A+"+"+O,R+"+"+L,E,T].join("|"),"g"),M=RegExp("["+I+o+s+i+l+"]"),F=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_="object"==typeof global&&global&&global.Object===Object&&global,z="object"==typeof self&&self&&self.Object===Object&&self,k=_||z||Function("return this")(),X=(t={\u00c0:"A",\u00c1:"A",\u00c2:"A",\u00c3:"A",\u00c4:"A",\u00c5:"A",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u00e3:"a",\u00e4:"a",\u00e5:"a",\u00c7:"C",\u00e7:"c",\u00d0:"D",\u00f0:"d",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u00cb:"E",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u00eb:"e",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u00cf:"I",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u00ef:"i",\u00d1:"N",\u00f1:"n",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u00d5:"O",\u00d6:"O",\u00d8:"O",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u00f5:"o",\u00f6:"o",\u00f8:"o",\u00d9:"U",\u00da:"U",\u00db:"U",\u00dc:"U",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u00fc:"u",\u00dd:"Y",\u00fd:"y",\u00ff:"y",\u00c6:"Ae",\u00e6:"ae",\u00de:"Th",\u00fe:"th",\u00df:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u010e:"D",\u0110:"D",\u010f:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011a:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011b:"e",\u011c:"G",\u011e:"G",\u0120:"G",\u0122:"G",\u011d:"g",\u011f:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012a:"I",\u012c:"I",\u012e:"I",\u0130:"I",\u0129:"i",\u012b:"i",\u012d:"i",\u012f:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013b:"L",\u013d:"L",\u013f:"L",\u0141:"L",\u013a:"l",\u013c:"l",\u013e:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014a:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014b:"n",\u014c:"O",\u014e:"O",\u0150:"O",\u014d:"o",\u014f:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015a:"S",\u015c:"S",\u015e:"S",\u0160:"S",\u015b:"s",\u015d:"s",\u015f:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016a:"U",\u016c:"U",\u016e:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016b:"u",\u016d:"u",\u016f:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017b:"Z",\u017d:"Z",\u017a:"z",\u017c:"z",\u017e:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017f:"ss"},function(e){return null==t?void 0:t[e]});function Z(e){return M.test(e)}var H=Object.prototype.toString,B=k.Symbol,Y=B?B.prototype:void 0,V=Y?Y.toString:void 0;function W(e){return null==e?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==H.call(e)}(e))return V?V.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}var K,q=(K=function(e,t,r){return e+(r?" ":"")+J(t)},function(e){return function(e,t,r){for(var n=-1,o=e?e.length:0;++n<o;)r=t(r,e[n],n,e);return r}(function(e,t){return e=W(e),void 0===t?function(e){return F.test(e)}(e)?function(e){return e.match(D)||[]}(e):function(e){return e.match(r)||[]}(e):e.match(t)||[]}(function(e){return(e=W(e))&&e.replace(n,X).replace(G,"")}(e).replace(P,"")),K,"")}),J=function(e){var t,r,n,o,s=Z(e=W(e))?function(e){return Z(e)?function(e){return e.match(U)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,i=s?s[0]:e.charAt(0),a=s?(t=s,r=1,o=t.length,n=void 0===n?o:n,!r&&n>=o?t:function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(o);++n<o;)s[n]=e[n+t];return s}(t,r,n)).join(""):e.slice(1);return i.toUpperCase()+a};e.exports=q},5254:e=>{var t="\\ud800-\\udfff",r="\\u0300-\\u036f\\ufe20-\\ufe23",n="\\u20d0-\\u20f0",o="\\ufe0e\\ufe0f",s="["+t+"]",i="["+r+n+"]",a="\\ud83c[\\udffb-\\udfff]",u="[^"+t+"]",c="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",f="\\u200d",p="(?:"+i+"|"+a+")?",h="["+o+"]?",d=h+p+"(?:"+f+"(?:"+[u,c,l].join("|")+")"+h+p+")*",E="(?:"+[u+i+"?",i,c,l,s].join("|")+")",m=RegExp(a+"(?="+a+")|"+E+d,"g"),g=RegExp("["+f+t+r+n+o+"]"),y="object"==typeof global&&global&&global.Object===Object&&global,v="object"==typeof self&&self&&self.Object===Object&&self,$=y||v||Function("return this")();function x(e){return g.test(e)}var b=Object.prototype.toString,R=$.Symbol,I=R?R.prototype:void 0,A=I?I.toString:void 0;var w=function(e){var t,r,n,o,s,i=x(e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==b.call(e)}(e))return A?A.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t))?function(e){return x(e)?function(e){return e.match(m)||[]}(e):function(e){return e.split("")}(e)}(e):void 0,a=i?i[0]:e.charAt(0),u=i?(r=i,n=1,s=r.length,o=void 0===o?s:o,!n&&o>=s?r:function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(o);++n<o;)s[n]=e[n+t];return s}(r,n,o)).join(""):e.slice(1);return a.toUpperCase()+u};e.exports=w},343:(e,t,r)=>{const n=Symbol("SemVer ANY");class o{static get ANY(){return n}constructor(e,t){if(t=s(t),e instanceof o){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}return u(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new f(e.value,t).test(this.value):""===e.operator?""===e.value||new f(this.value,t).test(e.semver):!((t=s(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(u(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(u(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=o;const s=r(5984),{safeRe:i,t:a}=r(7963),u=r(7978),c=r(9267),l=r(6735),f=r(4082)},4082:(e,t,r)=>{const n=/\s+/g;class o{constructor(e,t){if(t=i(t),e instanceof o)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new o(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(n," "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&y(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&E)|(this.options.loose&&m))+":"+e,r=s.get(t);if(r)return r;const n=this.options.loose,o=n?l[f.HYPHENRANGELOOSE]:l[f.HYPHENRANGE];e=e.replace(o,j(this.options.includePrerelease)),u("hyphen replace",e),e=e.replace(l[f.COMPARATORTRIM],p),u("comparator trim",e),e=e.replace(l[f.TILDETRIM],h),u("tilde trim",e),e=e.replace(l[f.CARETTRIM],d),u("caret trim",e);let i=e.split(" ").map((e=>$(e,this.options))).join(" ").split(/\s+/).map((e=>N(e,this.options)));n&&(i=i.filter((e=>(u("loose invalid filter",e,this.options),!!e.match(l[f.COMPARATORLOOSE]))))),u("range list",i);const c=new Map,y=i.map((e=>new a(e,this.options)));for(const e of y){if(g(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const v=[...c.values()];return s.set(t,v),v}intersects(e,t){if(!(e instanceof o))throw new TypeError("a Range is required");return this.set.some((r=>v(r,t)&&e.set.some((e=>v(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(S(this.set[t],e,this.options))return!0;return!1}}e.exports=o;const s=new(r(8883)),i=r(5984),a=r(343),u=r(9267),c=r(6735),{safeRe:l,t:f,comparatorTrimReplace:p,tildeTrimReplace:h,caretTrimReplace:d}=r(7963),{FLAG_INCLUDE_PRERELEASE:E,FLAG_LOOSE:m}=r(6641),g=e=>"<0.0.0-0"===e.value,y=e=>""===e.value,v=(e,t)=>{let r=!0;const n=e.slice();let o=n.pop();for(;r&&n.length;)r=n.every((e=>o.intersects(e,t))),o=n.pop();return r},$=(e,t)=>(u("comp",e,t),e=I(e,t),u("caret",e),e=b(e,t),u("tildes",e),e=w(e,t),u("xrange",e),e=L(e,t),u("stars",e),e),x=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>R(e,t))).join(" "),R=(e,t)=>{const r=t.loose?l[f.TILDELOOSE]:l[f.TILDE];return e.replace(r,((t,r,n,o,s)=>{let i;return u("tilde",e,t,r,n,o,s),x(r)?i="":x(n)?i=`>=${r}.0.0 <${+r+1}.0.0-0`:x(o)?i=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:s?(u("replaceTilde pr",s),i=`>=${r}.${n}.${o}-${s} <${r}.${+n+1}.0-0`):i=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,u("tilde return",i),i}))},I=(e,t)=>e.trim().split(/\s+/).map((e=>A(e,t))).join(" "),A=(e,t)=>{u("caret",e,t);const r=t.loose?l[f.CARETLOOSE]:l[f.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,o,s,i)=>{let a;return u("caret",e,t,r,o,s,i),x(r)?a="":x(o)?a=`>=${r}.0.0${n} <${+r+1}.0.0-0`:x(s)?a="0"===r?`>=${r}.${o}.0${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.0${n} <${+r+1}.0.0-0`:i?(u("replaceCaret pr",i),a="0"===r?"0"===o?`>=${r}.${o}.${s}-${i} <${r}.${o}.${+s+1}-0`:`>=${r}.${o}.${s}-${i} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${s}-${i} <${+r+1}.0.0-0`):(u("no pr"),a="0"===r?"0"===o?`>=${r}.${o}.${s}${n} <${r}.${o}.${+s+1}-0`:`>=${r}.${o}.${s}${n} <${r}.${+o+1}.0-0`:`>=${r}.${o}.${s} <${+r+1}.0.0-0`),u("caret return",a),a}))},w=(e,t)=>(u("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>{e=e.trim();const r=t.loose?l[f.XRANGELOOSE]:l[f.XRANGE];return e.replace(r,((r,n,o,s,i,a)=>{u("xRange",e,r,n,o,s,i,a);const c=x(o),l=c||x(s),f=l||x(i),p=f;return"="===n&&p&&(n=""),a=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(l&&(s=0),i=0,">"===n?(n=">=",l?(o=+o+1,s=0,i=0):(s=+s+1,i=0)):"<="===n&&(n="<",l?o=+o+1:s=+s+1),"<"===n&&(a="-0"),r=`${n+o}.${s}.${i}${a}`):l?r=`>=${o}.0.0${a} <${+o+1}.0.0-0`:f&&(r=`>=${o}.${s}.0${a} <${o}.${+s+1}.0-0`),u("xRange return",r),r}))},L=(e,t)=>(u("replaceStars",e,t),e.trim().replace(l[f.STAR],"")),N=(e,t)=>(u("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?f.GTE0PRE:f.GTE0],"")),j=e=>(t,r,n,o,s,i,a,u,c,l,f,p)=>`${r=x(n)?"":x(o)?`>=${n}.0.0${e?"-0":""}`:x(s)?`>=${n}.${o}.0${e?"-0":""}`:i?`>=${r}`:`>=${r}${e?"-0":""}`} ${u=x(c)?"":x(l)?`<${+c+1}.0.0-0`:x(f)?`<${c}.${+l+1}.0-0`:p?`<=${c}.${l}.${f}-${p}`:e?`<${c}.${l}.${+f+1}-0`:`<=${u}`}`.trim(),S=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(u(e[r].semver),e[r].semver!==a.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},6735:(e,t,r)=>{const n=r(9267),{MAX_LENGTH:o,MAX_SAFE_INTEGER:s}=r(6641),{safeRe:i,t:a}=r(7963),u=r(5984),{compareIdentifiers:c}=r(896);class l{constructor(e,t){if(t=u(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);n("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}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<s)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(n("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"==typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const r=this.build[t],o=e.build[t];if(n("build compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return c(r,o)}while(++t)}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=l},5115:(e,t,r)=>{const n=r(2933);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},7978:(e,t,r)=>{const n=r(8598),o=r(474),s=r(4283),i=r(4904),a=r(6356),u=r(2097);e.exports=(e,t,r,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,c);case"!=":return o(e,r,c);case">":return s(e,r,c);case">=":return i(e,r,c);case"<":return a(e,r,c);case"<=":return u(e,r,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},8085:(e,t,r)=>{const n=r(6735),o=r(2933),{safeRe:s,t:i}=r(7963);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){const n=t.includePrerelease?s[i.COERCERTLFULL]:s[i.COERCERTL];let o;for(;(o=n.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&o.index+o[0].length===r.index+r[0].length||(r=o),n.lastIndex=o.index+o[1].length+o[2].length;n.lastIndex=-1}else r=e.match(t.includePrerelease?s[i.COERCEFULL]:s[i.COERCE]);if(null===r)return null;const a=r[2],u=r[3]||"0",c=r[4]||"0",l=t.includePrerelease&&r[5]?`-${r[5]}`:"",f=t.includePrerelease&&r[6]?`+${r[6]}`:"";return o(`${a}.${u}.${c}${l}${f}`,t)}},8116:(e,t,r)=>{const n=r(6735);e.exports=(e,t,r)=>{const o=new n(e,r),s=new n(t,r);return o.compare(s)||o.compareBuild(s)}},2838:(e,t,r)=>{const n=r(5929);e.exports=(e,t)=>n(e,t,!0)},5929:(e,t,r)=>{const n=r(6735);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},8995:(e,t,r)=>{const n=r(2933);e.exports=(e,t)=>{const r=n(e,null,!0),o=n(t,null,!0),s=r.compare(o);if(0===s)return null;const i=s>0,a=i?r:o,u=i?o:r,c=!!a.prerelease.length;if(u.prerelease.length&&!c)return u.patch||u.minor?a.patch?"patch":a.minor?"minor":"major":"major";const l=c?"pre":"";return r.major!==o.major?l+"major":r.minor!==o.minor?l+"minor":r.patch!==o.patch?l+"patch":"prerelease"}},8598:(e,t,r)=>{const n=r(5929);e.exports=(e,t,r)=>0===n(e,t,r)},4283:(e,t,r)=>{const n=r(5929);e.exports=(e,t,r)=>n(e,t,r)>0},4904:(e,t,r)=>{const n=r(5929);e.exports=(e,t,r)=>n(e,t,r)>=0},6102:(e,t,r)=>{const n=r(6735);e.exports=(e,t,r,o,s)=>{"string"==typeof r&&(s=o,o=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,o,s).version}catch(e){return null}}},6356:(e,t,r)=>{const n=r(5929);e.exports=(e,t,r)=>n(e,t,r)<0},2097:(e,t,r)=>{const n=r(5929);e.exports=(e,t,r)=>n(e,t,r)<=0},507:(e,t,r)=>{const n=r(6735);e.exports=(e,t)=>new n(e,t).major},2991:(e,t,r)=>{const n=r(6735);e.exports=(e,t)=>new n(e,t).minor},474:(e,t,r)=>{const n=r(5929);e.exports=(e,t,r)=>0!==n(e,t,r)},2933:(e,t,r)=>{const n=r(6735);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}},6008:(e,t,r)=>{const n=r(6735);e.exports=(e,t)=>new n(e,t).patch},174:(e,t,r)=>{const n=r(2933);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},5529:(e,t,r)=>{const n=r(5929);e.exports=(e,t,r)=>n(t,e,r)},9812:(e,t,r)=>{const n=r(8116);e.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))},959:(e,t,r)=>{const n=r(4082);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(e){return!1}return t.test(e)}},9447:(e,t,r)=>{const n=r(8116);e.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))},1488:(e,t,r)=>{const n=r(2933);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},9252:(e,t,r)=>{const n=r(7963),o=r(6641),s=r(6735),i=r(896),a=r(2933),u=r(1488),c=r(5115),l=r(6102),f=r(8995),p=r(507),h=r(2991),d=r(6008),E=r(174),m=r(5929),g=r(5529),y=r(2838),v=r(8116),$=r(9447),x=r(9812),b=r(4283),R=r(6356),I=r(8598),A=r(474),w=r(4904),O=r(2097),L=r(7978),N=r(8085),j=r(343),S=r(4082),T=r(959),C=r(5498),P=r(9213),G=r(6527),U=r(6814),D=r(2949),M=r(2092),F=r(576),_=r(8921),z=r(6261),k=r(9656),X=r(5661);e.exports={parse:a,valid:u,clean:c,inc:l,diff:f,major:p,minor:h,patch:d,prerelease:E,compare:m,rcompare:g,compareLoose:y,compareBuild:v,sort:$,rsort:x,gt:b,lt:R,eq:I,neq:A,gte:w,lte:O,cmp:L,coerce:N,Comparator:j,Range:S,satisfies:T,toComparators:C,maxSatisfying:P,minSatisfying:G,minVersion:U,validRange:D,outside:M,gtr:F,ltr:_,intersects:z,simplifyRange:k,subset:X,SemVer:s,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:o.SEMVER_SPEC_VERSION,RELEASE_TYPES:o.RELEASE_TYPES,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},6641:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},9267:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},896:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),o=t.test(r);return n&&o&&(e=+e,r=+r),e===r?0:n&&!o?-1:o&&!n?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},8883:e=>{e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},5984:e=>{const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},7963:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:o,MAX_LENGTH:s}=r(6641),i=r(9267),a=(t=e.exports={}).re=[],u=t.safeRe=[],c=t.src=[],l=t.t={};let f=0;const p="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",s],[p,o]],d=(e,t,r)=>{const n=(e=>{for(const[t,r]of h)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),o=f++;i(e,o,t),l[e]=o,c[o]=t,a[o]=new RegExp(t,r?"g":void 0),u[o]=new RegExp(n,r?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","\\d+"),d("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),d("MAINVERSION",`(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`),d("MAINVERSIONLOOSE",`(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASEIDENTIFIER",`(?:${c[l.NUMERICIDENTIFIER]}|${c[l.NONNUMERICIDENTIFIER]})`),d("PRERELEASEIDENTIFIERLOOSE",`(?:${c[l.NUMERICIDENTIFIERLOOSE]}|${c[l.NONNUMERICIDENTIFIER]})`),d("PRERELEASE",`(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`),d("PRERELEASELOOSE",`(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`),d("BUILDIDENTIFIER",`${p}+`),d("BUILD",`(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`),d("FULLPLAIN",`v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`),d("FULL",`^${c[l.FULLPLAIN]}$`),d("LOOSEPLAIN",`[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`),d("LOOSE",`^${c[l.LOOSEPLAIN]}$`),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE",`${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),d("XRANGEIDENTIFIER",`${c[l.NUMERICIDENTIFIER]}|x|X|\\*`),d("XRANGEPLAIN",`[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`),d("XRANGEPLAINLOOSE",`[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`),d("XRANGE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`),d("XRANGELOOSE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`),d("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),d("COERCE",`${c[l.COERCEPLAIN]}(?:$|[^\\d])`),d("COERCEFULL",c[l.COERCEPLAIN]+`(?:${c[l.PRERELEASE]})?`+`(?:${c[l.BUILD]})?(?:$|[^\\d])`),d("COERCERTL",c[l.COERCE],!0),d("COERCERTLFULL",c[l.COERCEFULL],!0),d("LONETILDE","(?:~>?)"),d("TILDETRIM",`(\\s*)${c[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",d("TILDE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`),d("TILDELOOSE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`),d("LONECARET","(?:\\^)"),d("CARETTRIM",`(\\s*)${c[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",d("CARET",`^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`),d("CARETLOOSE",`^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`),d("COMPARATORLOOSE",`^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`),d("COMPARATOR",`^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`),d("COMPARATORTRIM",`(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",d("HYPHENRANGE",`^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`),d("HYPHENRANGELOOSE",`^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`),d("STAR","(<|>)?=?\\s*\\*"),d("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),d("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},576:(e,t,r)=>{const n=r(2092);e.exports=(e,t,r)=>n(e,t,">",r)},6261:(e,t,r)=>{const n=r(4082);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},8921:(e,t,r)=>{const n=r(2092);e.exports=(e,t,r)=>n(e,t,"<",r)},9213:(e,t,r)=>{const n=r(6735),o=r(4082);e.exports=(e,t,r)=>{let s=null,i=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new n(s,r)))})),s}},6527:(e,t,r)=>{const n=r(6735),o=r(4082);e.exports=(e,t,r)=>{let s=null,i=null,a=null;try{a=new o(t,r)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new n(s,r)))})),s}},6814:(e,t,r)=>{const n=r(6735),o=r(4082),s=r(4283);e.exports=(e,t)=>{e=new o(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const o=e.set[t];let i=null;o.forEach((e=>{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":i&&!s(t,i)||(i=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!i||r&&!s(r,i)||(r=i)}return r&&e.test(r)?r:null}},2092:(e,t,r)=>{const n=r(6735),o=r(343),{ANY:s}=o,i=r(4082),a=r(959),u=r(4283),c=r(6356),l=r(2097),f=r(4904);e.exports=(e,t,r,p)=>{let h,d,E,m,g;switch(e=new n(e,p),t=new i(t,p),r){case">":h=u,d=l,E=c,m=">",g=">=";break;case"<":h=c,d=f,E=u,m="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,p))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let i=null,a=null;if(n.forEach((e=>{e.semver===s&&(e=new o(">=0.0.0")),i=i||e,a=a||e,h(e.semver,i.semver,p)?i=e:E(e.semver,a.semver,p)&&(a=e)})),i.operator===m||i.operator===g)return!1;if((!a.operator||a.operator===m)&&d(e,a.semver))return!1;if(a.operator===g&&E(e,a.semver))return!1}return!0}},9656:(e,t,r)=>{const n=r(959),o=r(5929);e.exports=(e,t,r)=>{const s=[];let i=null,a=null;const u=e.sort(((e,t)=>o(e,t,r)));for(const e of u)n(e,t,r)?(a=e,i||(i=e)):(a&&s.push([i,a]),a=null,i=null);i&&s.push([i,null]);const c=[];for(const[e,t]of s)e===t?c.push(e):t||e!==u[0]?t?e===u[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");const l=c.join(" || "),f="string"==typeof t.raw?t.raw:String(t);return l.length<f.length?l:t}},5661:(e,t,r)=>{const n=r(4082),o=r(343),{ANY:s}=o,i=r(959),a=r(5929),u=[new o(">=0.0.0-0")],c=[new o(">=0.0.0")],l=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===s){if(1===t.length&&t[0].semver===s)return!0;e=r.includePrerelease?u:c}if(1===t.length&&t[0].semver===s){if(r.includePrerelease)return!0;t=c}const n=new Set;let o,l,h,d,E,m,g;for(const t of e)">"===t.operator||">="===t.operator?o=f(o,t,r):"<"===t.operator||"<="===t.operator?l=p(l,t,r):n.add(t.semver);if(n.size>1)return null;if(o&&l){if(h=a(o.semver,l.semver,r),h>0)return null;if(0===h&&(">="!==o.operator||"<="!==l.operator))return null}for(const e of n){if(o&&!i(e,String(o),r))return null;if(l&&!i(e,String(l),r))return null;for(const n of t)if(!i(e,String(n),r))return!1;return!0}let y=!(!l||r.includePrerelease||!l.semver.prerelease.length)&&l.semver,v=!(!o||r.includePrerelease||!o.semver.prerelease.length)&&o.semver;y&&1===y.prerelease.length&&"<"===l.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,o)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if(d=f(o,e,r),d===e&&d!==o)return!1}else if(">="===o.operator&&!i(o.semver,String(e),r))return!1;if(l)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if(E=p(l,e,r),E===e&&E!==l)return!1}else if("<="===l.operator&&!i(l.semver,String(e),r))return!1;if(!e.operator&&(l||o)&&0!==h)return!1}return!(o&&m&&!l&&0!==h||l&&g&&!o&&0!==h||v||y)},f=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let o=!1;e:for(const n of e.set){for(const e of t.set){const t=l(n,e,r);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}},5498:(e,t,r)=>{const n=r(4082);e.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},2949:(e,t,r)=>{const n=r(4082);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(e){return null}}},1828:(e,t,r)=>{r.r(t),r.d(t,{default:()=>P});var n=r(9023),o=r(9252);const s=e=>e.test.bind(e),i=[s(/^((Merge pull request)|(Merge (.*?) into (.*?)|(Merge branch (.*?)))(?:\r?\n)*$)/m),s(/^(Merge tag (.*?))(?:\r?\n)*$/m),s(/^(R|r)evert (.*)/),s(/^(R|r)eapply (.*)/),s(/^(amend|fixup|squash)!/),e=>{const t=e.split("\n").shift();if("string"!=typeof t)return!1;const r=t.replace(/^chore(\([^)]+\))?:/,"").trim();return null!==o.valid(r)},s(/^(Merged (.*?)(in|into) (.*)|Merged PR (.*): (.*))/),s(/^Merge remote-tracking branch(\s*)(.*)/),s(/^Automatic merge(.*)/),s(/^Auto-merged (.*?) into (.*)/)];function a(e){const t=e.toString(),r=/(?:process|require|import|eval|fetch|XMLHttpRequest|fs|child_process)(?:\s*\.|\s*\()|(?:exec|execFile|spawn)\s*\(/;if(r.test(t)){const e=t.match(r);throw new Error(`Ignore function contains forbidden pattern: ${e?.[0].trim()}`)}}var u=r(9793),c=r(3858);const l=async function(e,t=u.sync,r){const n=t(e,{...(await c()).parserOpts,fieldPattern:null,...r||{}});return n.raw=e,n};var f=r(9899),p=r(526),h=r(8118),d=r(5254),E=r(5030);const m=function(e="",t="lowercase"){const r=String(e).replace(/`.*?`|".*?"|'.*?'/g,"").trim(),n=function(e,t){switch(t){case"camel-case":return f(e);case"kebab-case":return p(e);case"snake-case":return h(e);case"pascal-case":return d(f(e));case"start-case":return E(e);case"upper-case":case"uppercase":return e.toUpperCase();case"sentence-case":case"sentencecase":return d(e);case"lower-case":case"lowercase":case"lowerCase":return e.toLowerCase();default:throw new TypeError(`to-case: Unknown target case "${t}"`)}}(r,t);return!(""!==n&&!n.match(/^\d/))||n===r},g=(e,t=[])=>void 0!==e&&!!Array.isArray(t)&&t.indexOf(e)>-1,y=(e,t)=>"string"==typeof e&&e.length<=t,v=(e,t)=>"string"==typeof e&&e.split(/\r?\n/).every((e=>y(e,t))),$=(e,t)=>"string"==typeof e&&e.length>=t,x=e=>"string"==typeof e&&e.length>0;function b(e=[]){return e.filter(Boolean).join(" ")}const R=e=>"never"===e;function I(e){return"string"!=typeof e?[]:e.split(/(?:\r?\n)/)}const A=e=>"never"===e,w=e=>"never"===e,O=/^[\p{Ll}\p{Lu}\p{Lt}]/iu,L=e=>"never"===e,N=e=>"never"===e,j={"body-case":(e,t="always",r=[])=>{const{body:n}=e;if(!n)return[!0];const o=(Array.isArray(r)?r:[r]).map((e=>"string"==typeof e?{when:"always",case:e}:e)),s=o.some((e=>{const t=m(n,e.case);return R(e.when)?!t:t})),i=o.map((e=>e.case)).join(", ");return[R(t)?!s:s,b(["body must",R(t)?"not":null,`be ${i}`])]},"body-empty":(e,t="always")=>{const r="never"===t,n=x(e.body||"");return[r?n:!n,b(["body",r?"may not":"must","be empty"])]},"body-full-stop":(e,t="always",r=".")=>{const n=e.body;if(!n)return[!0];const o="never"===t,s=n[n.length-1]===r;return[o?!s:s,b(["body",o?"may not":"must","end with full stop"])]},"body-leading-blank":(e,t)=>{if(!e.body)return[!0];const r="never"===t,[n]=I(e.raw).slice(1),o=""===n;return[r?!o:o,b(["body",r?"may not":"must","have leading blank line"])]},"body-max-length":(e,t=void 0,r=0)=>{const n=e.body;return n?[y(n,r),`body must not be longer than ${r} characters`]:[!0]},"body-max-line-length":(e,t=void 0,r=0)=>{const n=e.body;return n?[v(n,r),`body's lines must not be longer than ${r} characters`]:[!0]},"body-min-length":(e,t=void 0,r=0)=>e.body?[$(e.body,r),`body must not be shorter than ${r} characters`]:[!0],"footer-empty":(e,t="always")=>{const r="never"===t,n=x(e.footer||"");return[r?n:!n,b(["footer",r?"may not":"must","be empty"])]},"footer-leading-blank":(e,t="always")=>{if(!e.footer)return[!0];const r="never"===t,n=I(e.raw),o=I(e.footer),s=n.indexOf(o[0]),[i]=n.slice(s-1),a=""===i;return[r?!a:a,b(["footer",r?"may not":"must","have leading blank line"])]},"footer-max-length":(e,t=void 0,r=0)=>{const n=e.footer;return n?[y(n,r),`footer must not be longer than ${r} characters`]:[!0]},"footer-max-line-length":(e,t=void 0,r=0)=>{const n=e.footer;return n?[v(n,r),`footer's lines must not be longer than ${r} characters`]:[!0]},"footer-min-length":(e,t=void 0,r=0)=>e.footer?[$(e.footer,r),`footer must not be shorter than ${r} characters`]:[!0],"header-case":(e,t="always",r=[])=>{const{header:n}=e;if("string"!=typeof n||!n.match(/^[a-z]/i))return[!0];const o=(Array.isArray(r)?r:[r]).map((e=>"string"==typeof e?{when:"always",case:e}:e)),s=o.some((e=>{const t=m(n,e.case);return A(e.when)?!t:t})),i=o.map((e=>e.case)).join(", ");return[A(t)?!s:s,b(["header must",A(t)?"not":null,`be ${i}`])]},"header-full-stop":(e,t="always",r=".")=>{const{header:n}=e,o="never"===t,s=n?.[n.length-1]===r;return[o?!s:s,b(["header",o?"may not":"must","end with full stop"])]},"header-max-length":(e,t=void 0,r=0)=>[y(e.header,r),`header must not be longer than ${r} characters, current length is ${e.header?.length}`],"header-min-length":(e,t=void 0,r=0)=>[$(e.header,r),`header must not be shorter than ${r} characters, current length is ${e.header?.length}`],"header-trim":e=>{const{header:t}=e;if(!t)return[!0];const r=t!==t.trimStart(),n=t!==t.trimEnd();switch(!0){case r&&n:return[!1,b(["header","must not be surrounded by whitespace"])];case r:return[!1,b(["header","must not start with whitespace"])];case n:return[!1,b(["header","must not end with whitespace"])];default:return[!0]}},"references-empty":(e,t="never")=>{const r="always"===t,n=e.references.length>0;return[r?!n:n,b(["references",r?"must":"may not","be empty"])]},"scope-case":(e,t="always",r=[])=>{const{scope:n}=e;if(!n)return[!0];const o=(Array.isArray(r)?r:[r]).map((e=>"string"==typeof e?{when:"always",case:e}:e)),s=/\/|\\|, ?/g,i=n.split(s),a=o.some((e=>{const t=i.every((t=>s.test(t)||m(t,e.case)));return w(e.when)?!t:t})),u=o.map((e=>e.case)).join(", ");return[w(t)?!a:a,b(["scope must",w(t)?"not":null,`be ${u}`])]},"scope-empty":(e,t="never")=>{const r="always"===t,n=x(e.scope||"");return[r?!n:n,b(["scope",r?"must":"may not","be empty"])]},"scope-enum":({scope:e},t="always",r=[])=>{if(!e||!r.length)return[!0,""];const n=e.split(/\/|\\|, ?/g),o=["scope must",`be one of [${r.join(", ")}]`],s=e=>g(e,r);let i;return"never"===t?(i=!n.some(s)&&!s(e),o.splice(1,0,"not")):i=n.every(s)||s(e),[i,b(o)]},"scope-max-length":(e,t=void 0,r=0)=>{const n=e.scope;return n?[y(n,r),`scope must not be longer than ${r} characters`]:[!0]},"scope-min-length":(e,t=void 0,r=0)=>{const n=e.scope;return n?[$(n,r),`scope must not be shorter than ${r} characters`]:[!0]},"signed-off-by":(e,t="always",r="")=>{const n=I(e.raw).filter((e=>!e.startsWith("#")&&Boolean(e))),o=n[n.length-1],s="never"===t,i=!!o&&o.startsWith(r);return[s?!i:i,b(["message",s?"must not":"must","be signed off"])]},"subject-case":(e,t="always",r=[])=>{const{subject:n}=e;if("string"!=typeof n||!n.match(O))return[!0];const o=(Array.isArray(r)?r:[r]).map((e=>"string"==typeof e?{when:"always",case:e}:e)),s=o.some((e=>{const t=m(n,e.case);return L(e.when)?!t:t})),i=o.map((e=>e.case)).join(", ");return[L(t)?!s:s,b(["subject must",L(t)?"not":null,`be ${i}`])]},"subject-empty":(e,t="always")=>{const r="never"===t,n=x(e.subject||"");return[r?n:!n,b(["subject",r?"may not":"must","be empty"])]},"subject-full-stop":(e,t="always",r=".")=>{const n=e.header?.indexOf(":")||0;if(n>0&&n===e.header.length-1)return[!0];const o=e.header,s="never"===t;let i=o?.[o.length-1]===r;return"..."===o?.slice(-3)&&(i=!1),[s?!i:i,b(["subject",s?"may not":"must","end with full stop"])]},"subject-max-length":(e,t=void 0,r=0)=>{const n=e.subject;return n?[y(n,r),`subject must not be longer than ${r} characters`]:[!0]},"subject-min-length":(e,t=void 0,r=0)=>{const n=e.subject;return n?[$(n,r),`subject must not be shorter than ${r} characters`]:[!0]},"subject-exclamation-mark":(e,t="always")=>{const r=e.header;if(!r)return[!0,""];const n="never"===t,o=/!:/.test(r);return[n?!o:o,b(["subject",n?"must not":"must","have an exclamation mark in the subject to identify a breaking change"])]},"type-case":(e,t="always",r=[])=>{const{type:n}=e;if(!n)return[!0];const o=(Array.isArray(r)?r:[r]).map((e=>"string"==typeof e?{when:"always",case:e}:e)),s=o.some((e=>{const t=m(n,e.case);return N(e.when)?!t:t})),i=o.map((e=>e.case)).join(", ");return[N(t)?!s:s,b(["type must",N(t)?"not":null,`be ${i}`])]},"type-empty":(e,t="always")=>{const r="never"===t,n=x(e.type||"");return[r?n:!n,b(["type",r?"may not":"must","be empty"])]},"type-enum":(e,t="always",r=[])=>{const{type:n}=e;if(!n)return[!0];const o="never"===t,s=g(n,r);return[o?!s:s,b(["type must",o?"not":null,`be one of [${r.join(", ")}]`])]},"type-max-length":(e,t=void 0,r=0)=>{const n=e.type;return n?[y(n,r),`type must not be longer than ${r} characters`]:[!0]},"type-min-length":(e,t=void 0,r=0)=>{const n=e.type;return n?[$(n,r),`type must not be shorter than ${r} characters`]:[!0]}};var S,T;!function(e){e[e.Disabled=0]="Disabled",e[e.Warning=1]="Warning",e[e.Error=2]="Error"}(S||(S={})),function(e){e[e.User=0]="User",e[e.Qualified=1]="Qualified"}(T||(T={}));const C=({header:e,body:t,footer:r})=>{let n=e;return n=t?`${n}\n\n${t}`:n,n=r?`${n}\n\n${r}`:n,n||""};async function P(e,t,r){const o=r||{defaultIgnores:void 0,ignores:void 0},s=t||{};if(function(e="",t={}){const r=void 0===t.ignores?[]:t.ignores;if(!Array.isArray(r))throw new Error(`ignores must be of type array, received ${r} of type ${typeof r}`);r.forEach(a);const n=r.filter((e=>"function"!=typeof e));if(n.length>0)throw new Error(`ignores must be array of type function, received items of type: ${n.map((e=>typeof e)).join(", ")}`);return[...!1===t.defaults?[]:i,...r].some((t=>{const r=t(e);if("boolean"!=typeof r)throw new Error("Ignore function must return a boolean, received "+typeof r);return r}))}(e,{defaults:o.defaultIgnores,ignores:o.ignores}))return{valid:!0,errors:[],warnings:[],input:e};const u=""===e?{header:null,body:null,footer:null}:await l(e,void 0,o.parserOpts);if(null===u.header&&null===u.body&&null===u.footer)return{valid:!0,errors:[],warnings:[],input:e};const c=new Map(Object.entries(j));o.plugins&&Object.values(o.plugins).forEach((e=>{e.rules&&Object.keys(e.rules).forEach((t=>c.set(t,e.rules[t])))}));const f=Object.keys(s).filter((e=>"function"!=typeof c.get(e)));if(f.length>0){const e=[...c.keys()];throw new RangeError([`Found rules without implementation: ${f.join(", ")}.`,`Supported rules are: ${e.join(", ")}.`].join("\n"))}const p=Object.entries(s).map((([e,t])=>{if(!Array.isArray(t))return new Error(`config for rule ${e} must be array, received ${n.inspect(t)} of type ${typeof t}`);const[r]=t;if(r===S.Disabled&&1===t.length)return null;const[,o]=t;return"number"!=typeof r||isNaN(r)?new Error(`level for rule ${e} must be number, received ${n.inspect(r)} of type ${typeof r}`):t.length<2||t.length>3?new Error(`config for rule ${e} must be 2 or 3 items long, received ${n.inspect(t)} of length ${t.length}`):r<0||r>2?new RangeError(`level for rule ${e} must be between 0 and 2, received ${n.inspect(r)}`):"string"!=typeof o?new Error(`condition for rule ${e} must be string, received ${n.inspect(o)} of type ${typeof o}`):"never"!==o&&"always"!==o?new Error(`condition for rule ${e} must be "always" or "never", received ${n.inspect(o)}`):null})).filter((e=>e instanceof Error));if(p.length>0)throw new Error(p.map((e=>e.message)).join("\n"));const h=Object.entries(s).filter((([,e])=>!!e&&e.length&&e[0]>0)).map((async e=>{const[t,r]=e,[n,o,s]=r,i=c.get(t);if(!i)throw new Error(`Could not find rule implementation for ${t}`);const a=i,[l,f]=await a(u,o,s);return{level:n,valid:l,name:t,message:f}})),d=(await Promise.all(h)).filter((e=>null!==e)),E=d.filter((e=>e.level===S.Error&&!e.valid)),m=d.filter((e=>e.level===S.Warning&&!e.valid));return{valid:0===E.length,errors:E,warnings:m,input:C(u)}}}};