@nice-move/cli 0.11.30 → 0.11.31

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.
@@ -1 +1 @@
1
- import{a as e,t}from"./string-width-BpdcRJYu.mjs";function n(e){return Number.isInteger(e)?e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141):!1}const r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/,i=[`\x1B`,`›`],a=e=>`${i[0]}[${e}m`,o=(t,n,r)=>{let i=[];t=[...t];for(let r of t){let o=r;r.includes(`;`)&&(r=r.split(`;`)[0][0]+`0`);let s=e.codes.get(Number.parseInt(r,10));if(s){let e=t.indexOf(s.toString());e===-1?i.push(a(n?s:o)):t.splice(e,1)}else if(n){i.push(a(0));break}else i.push(a(o))}if(n&&(i=i.filter((e,t)=>i.indexOf(e)===t),r!==void 0)){let t=a(e.codes.get(Number.parseInt(r,10)));i=i.reduce((e,n)=>n===t?[n,...e]:[...e,n],[])}return i.join(``)};function s(e,t,a){let s=[...e],c=[],l=typeof a==`number`?a:s.length,u=!1,d,f=0,p=``;for(let[m,h]of s.entries()){let s=!1;if(i.includes(h)){let t=/\d[^m]*/.exec(e.slice(m,m+18));d=t&&t.length>0?t[0]:void 0,f<l&&(u=!0,d!==void 0&&c.push(d))}else u&&h===`m`&&(u=!1,s=!0);if(!u&&!s&&f++,!r.test(h)&&n(h.codePointAt())&&(f++,typeof a!=`number`&&l++),f>t&&f<=l)p+=h;else if(f===t&&!u&&d!==void 0)p=o(c);else if(f>=l){p+=o(c,!0,d);break}}return p}function c(e,t,n){if(e.charAt(t)===` `)return t;let r=n?1:-1;for(let n=0;n<=3;n++){let i=t+n*r;if(e.charAt(i)===` `)return i}return t}function l(e,n,r={}){let{position:i=`end`,space:a=!1,preferTruncationOnSpace:o=!1}=r,{truncationCharacter:l=`…`}=r;if(typeof e!=`string`)throw TypeError(`Expected \`input\` to be a string, got ${typeof e}`);if(typeof n!=`number`)throw TypeError(`Expected \`columns\` to be a number, got ${typeof n}`);if(n<1)return``;if(n===1)return l;let u=t(e);if(u<=n)return e;if(i===`start`){if(o){let t=c(e,u-n+1,!0);return l+s(e,t,u).trim()}return a===!0&&(l+=` `),l+s(e,u-n+t(l),u)}if(i===`middle`){a===!0&&(l=` ${l} `);let r=Math.floor(n/2);if(o){let t=c(e,r),i=c(e,u-(n-r)+1,!0);return s(e,0,t)+l+s(e,i,u).trim()}return s(e,0,r)+l+s(e,u-(n-r)+t(l),u)}if(i===`end`)return o?s(e,0,c(e,n-1))+l:(a===!0&&(l=` ${l}`),s(e,0,n-t(l))+l);throw Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${i}`)}export{l as default};
1
+ import{a as e,t}from"./string-width-BcVmQkTo.mjs";function n(e){return Number.isInteger(e)?e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141):!1}const r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]$/,i=[`\x1B`,`›`],a=e=>`${i[0]}[${e}m`,o=(t,n,r)=>{let i=[];t=[...t];for(let r of t){let o=r;r.includes(`;`)&&(r=r.split(`;`)[0][0]+`0`);let s=e.codes.get(Number.parseInt(r,10));if(s){let e=t.indexOf(s.toString());e===-1?i.push(a(n?s:o)):t.splice(e,1)}else if(n){i.push(a(0));break}else i.push(a(o))}if(n&&(i=i.filter((e,t)=>i.indexOf(e)===t),r!==void 0)){let t=a(e.codes.get(Number.parseInt(r,10)));i=i.reduce((e,n)=>n===t?[n,...e]:[...e,n],[])}return i.join(``)};function s(e,t,a){let s=[...e],c=[],l=typeof a==`number`?a:s.length,u=!1,d,f=0,p=``;for(let[m,h]of s.entries()){let s=!1;if(i.includes(h)){let t=/\d[^m]*/.exec(e.slice(m,m+18));d=t&&t.length>0?t[0]:void 0,f<l&&(u=!0,d!==void 0&&c.push(d))}else u&&h===`m`&&(u=!1,s=!0);if(!u&&!s&&f++,!r.test(h)&&n(h.codePointAt())&&(f++,typeof a!=`number`&&l++),f>t&&f<=l)p+=h;else if(f===t&&!u&&d!==void 0)p=o(c);else if(f>=l){p+=o(c,!0,d);break}}return p}function c(e,t,n){if(e.charAt(t)===` `)return t;let r=n?1:-1;for(let n=0;n<=3;n++){let i=t+n*r;if(e.charAt(i)===` `)return i}return t}function l(e,n,r={}){let{position:i=`end`,space:a=!1,preferTruncationOnSpace:o=!1}=r,{truncationCharacter:l=`…`}=r;if(typeof e!=`string`)throw TypeError(`Expected \`input\` to be a string, got ${typeof e}`);if(typeof n!=`number`)throw TypeError(`Expected \`columns\` to be a number, got ${typeof n}`);if(n<1)return``;if(n===1)return l;let u=t(e);if(u<=n)return e;if(i===`start`){if(o){let t=c(e,u-n+1,!0);return l+s(e,t,u).trim()}return a===!0&&(l+=` `),l+s(e,u-n+t(l),u)}if(i===`middle`){a===!0&&(l=` ${l} `);let r=Math.floor(n/2);if(o){let t=c(e,r),i=c(e,u-(n-r)+1,!0);return s(e,0,t)+l+s(e,i,u).trim()}return s(e,0,r)+l+s(e,u-(n-r)+t(l),u)}if(i===`end`)return o?s(e,0,c(e,n-1))+l:(a===!0&&(l=` ${l}`),s(e,0,n-t(l))+l);throw Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${i}`)}export{l as default};
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{t as e}from"./execa-CFcZKRhQ.mjs";import"./path-key-DjAVgzm2.mjs";import"./mjs-Cl59bDdr.mjs";import{t}from"./cmd/git.mjs";import{r as n}from"./staged-CW2SjQ0z.mjs";import{t as r}from"./cmd/lint.mjs";import{createRequire as i}from"node:module";import{Cheetor as a}from"cheetor";function o(){if(n(`svgo/package.json`)&&n(`svgo-config/package.json`))return{command:`svgo`,describe:"Run `svgo` to optimize `*.svg`",handler({_:[t,n=`./`]}){e(`svgo`,[`-r`,`-q`,`--pretty`,`--indent`,`2`,`--config`,i(import.meta.url).resolve(`svgo-config`),`-f`,n]).then(()=>{console.log(`Done: calling svgo`)}).catch(e=>{process.exitCode=1,console.error(`Error:`,e.message)})}}}process.on(`SIGINT`,()=>{}),new a(`../package.json`,import.meta.url).website(`https://www.npmjs.com/org/nice-move`).command(r).command(t).commandSmart(o).setup();export{};
2
+ import{t as e}from"./execa-CFcZKRhQ.mjs";import"./path-key-DjAVgzm2.mjs";import"./mjs-Cl59bDdr.mjs";import{t}from"./cmd/git.mjs";import{r as n}from"./staged-dkPXnLdU.mjs";import{t as r}from"./cmd/lint.mjs";import{createRequire as i}from"node:module";import{Cheetor as a}from"cheetor";function o(){if(n(`svgo/package.json`)&&n(`svgo-config/package.json`))return{command:`svgo`,describe:"Run `svgo` to optimize `*.svg`",handler({_:[t,n=`./`]}){e(`svgo`,[`-r`,`-q`,`--pretty`,`--indent`,`2`,`--config`,i(import.meta.url).resolve(`svgo-config`),`-f`,n]).then(()=>{console.log(`Done: calling svgo`)}).catch(e=>{process.exitCode=1,console.error(`Error:`,e.message)})}}}process.on(`SIGINT`,()=>{}),new a(`../package.json`,import.meta.url).website(`https://www.npmjs.com/org/nice-move`).command(r).command(t).commandSmart(o).setup();export{};
package/dist/cmd/lint.mjs CHANGED
@@ -1 +1 @@
1
- import{n as e}from"../chunk-tuRmWmEN.mjs";import{n as t,t as n}from"../staged-CW2SjQ0z.mjs";var r=e({builder:()=>o,command:()=>i,description:()=>a});const i=`lint`,a=``;function o(e){t(e),n(e),e.demandCommand(1,"Typing `commit` or `staged`")}export{o as builder,i as command,a as description,r as t};
1
+ import{n as e}from"../chunk-tuRmWmEN.mjs";import{n as t,t as n}from"../staged-dkPXnLdU.mjs";var r=e({builder:()=>o,command:()=>i,description:()=>a});const i=`lint`,a=``;function o(e){t(e),n(e),e.demandCommand(1,"Typing `commit` or `staged`")}export{o as builder,i as command,a as description,r as t};
@@ -8,7 +8,7 @@ import{i as e,r as t,t as n}from"./chunk-tuRmWmEN.mjs";import{n as r,t as i}from
8
8
  `:`
9
9
  `)+n,i=r+1,r=e.indexOf(`
10
10
  `,i)}while(r!==-1);return a+=e.slice(i),a}const{stdout:Dn,stderr:On}=wn,kn=Symbol(`GENERATOR`),An=Symbol(`STYLER`),jn=Symbol(`IS_EMPTY`),Mn=[`ansi`,`ansi`,`ansi256`,`ansi16m`],Nn=Object.create(null),Pn=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let n=Dn?Dn.level:0;e.level=t.level===void 0?n:t.level},Fn=e=>{let t=(...e)=>e.join(` `);return Pn(t,e),Object.setPrototypeOf(t,In.prototype),t};function In(e){return Fn(e)}Object.setPrototypeOf(In.prototype,Function.prototype);for(let[e,t]of Object.entries(vn))Nn[e]={get(){let n=Bn(this,zn(t.open,t.close,this[An]),this[jn]);return Object.defineProperty(this,e,{value:n}),n}};Nn.visible={get(){let e=Bn(this,this[An],!0);return Object.defineProperty(this,`visible`,{value:e}),e}};const Ln=(e,t,n,...r)=>e===`rgb`?t===`ansi16m`?vn[n].ansi16m(...r):t===`ansi256`?vn[n].ansi256(vn.rgbToAnsi256(...r)):vn[n].ansi(vn.rgbToAnsi(...r)):e===`hex`?Ln(`rgb`,t,n,...vn.hexToRgb(...r)):vn[n][e](...r);for(let e of[`rgb`,`hex`,`ansi256`]){Nn[e]={get(){let{level:t}=this;return function(...n){let r=zn(Ln(e,Mn[t],`color`,...n),vn.color.close,this[An]);return Bn(this,r,this[jn])}}};let t=`bg`+e[0].toUpperCase()+e.slice(1);Nn[t]={get(){let{level:t}=this;return function(...n){let r=zn(Ln(e,Mn[t],`bgColor`,...n),vn.bgColor.close,this[An]);return Bn(this,r,this[jn])}}}}const Rn=Object.defineProperties(()=>{},{...Nn,level:{enumerable:!0,get(){return this[kn].level},set(e){this[kn].level=e}}}),zn=(e,t,n)=>{let r,i;return n===void 0?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},Bn=(e,t,n)=>{let r=(...e)=>Vn(r,e.length===1?``+e[0]:e.join(` `));return Object.setPrototypeOf(r,Rn),r[kn]=e,r[An]=t,r[jn]=n,r},Vn=(e,t)=>{if(e.level<=0||!t)return e[jn]?``:t;let n=e[An];if(n===void 0)return t;let{openAll:r,closeAll:i}=n;if(t.includes(`\x1B`))for(;n!==void 0;)t=Tn(t,n.close,n.open),n=n.parent;let a=t.indexOf(`
11
- `);return a!==-1&&(t=En(t,i,r,a)),r+t+i};Object.defineProperties(In.prototype,Nn);const J=In();In({level:On?On.level:0});var Hn=e(n(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)}))(),1).default;const{env:Un={},argv:Wn=[],platform:Gn=``}=typeof process>`u`?{}:process,Kn=`NO_COLOR`in Un||Wn.includes(`--no-color`),qn=`FORCE_COLOR`in Un||Wn.includes(`--color`),Jn=Gn===`win32`,Yn=Un.TERM===`dumb`,Xn=E&&E.isatty&&E.isatty(1)&&Un.TERM&&!Yn,Zn=`CI`in Un&&(`GITHUB_ACTIONS`in Un||`GITLAB_CI`in Un||`CIRCLECI`in Un),Qn=!Kn&&(qn||Jn&&!Yn||Xn||Zn),$n=(e,t,n,r,i=t.substring(0,e)+r,a=t.substring(e+n.length),o=a.indexOf(n))=>i+(o<0?a:$n(o,a,n,r)),er=(e,t,n,r,i)=>e<0?n+t+r:n+$n(e,t,r,i)+r,tr=(e,t,n=e,r=e.length+1)=>i=>i||!(i===``||i===void 0)?er((``+i).indexOf(t,r),i,e,t,n):``,Y=(e,t,n)=>tr(`\x1b[${e}m`,`\x1b[${t}m`,n),nr={reset:Y(0,0),bold:Y(1,22,`\x1B[22m\x1B[1m`),dim:Y(2,22,`\x1B[22m\x1B[2m`),italic:Y(3,23),underline:Y(4,24),inverse:Y(7,27),hidden:Y(8,28),strikethrough:Y(9,29),black:Y(30,39),red:Y(31,39),green:Y(32,39),yellow:Y(33,39),blue:Y(34,39),magenta:Y(35,39),cyan:Y(36,39),white:Y(37,39),gray:Y(90,39),bgBlack:Y(40,49),bgRed:Y(41,49),bgGreen:Y(42,49),bgYellow:Y(43,49),bgBlue:Y(44,49),bgMagenta:Y(45,49),bgCyan:Y(46,49),bgWhite:Y(47,49),blackBright:Y(90,39),redBright:Y(91,39),greenBright:Y(92,39),yellowBright:Y(93,39),blueBright:Y(94,39),magentaBright:Y(95,39),cyanBright:Y(96,39),whiteBright:Y(97,39),bgBlackBright:Y(100,49),bgRedBright:Y(101,49),bgGreenBright:Y(102,49),bgYellowBright:Y(103,49),bgBlueBright:Y(104,49),bgMagentaBright:Y(105,49),bgCyanBright:Y(106,49),bgWhiteBright:Y(107,49)},rr=({useColor:e=Qn}={})=>e?nr:Object.keys(nr).reduce((e,t)=>({...e,[t]:String}),{}),{reset:ir,bold:ar,dim:or,italic:sr,underline:cr,inverse:lr,hidden:ur,strikethrough:dr,black:fr,red:pr,green:mr,yellow:hr,blue:gr,magenta:_r,cyan:vr,white:yr,gray:br,bgBlack:xr,bgRed:Sr,bgGreen:Cr,bgYellow:wr,bgBlue:Tr,bgMagenta:Er,bgCyan:Dr,bgWhite:Or,blackBright:kr,redBright:Ar,greenBright:jr,yellowBright:Mr,blueBright:Nr,magentaBright:Pr,cyanBright:Fr,whiteBright:Ir,bgBlackBright:Lr,bgRedBright:Rr,bgGreenBright:zr,bgYellowBright:Br,bgBlueBright:Vr,bgMagentaBright:Hr,bgCyanBright:Ur,bgWhiteBright:Wr}=rr();var Gr=e(n(((e,t)=>{t.exports=r;function n(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function r(e){if(e||={},e.circles)return i(e);let t=new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(a(Array.from(e),t))),t.set(Set,(e,t)=>new Set(a(Array.from(e),t))),e.constructorHandlers)for(let n of e.constructorHandlers)t.set(n[0],n[1]);let r=null;return e.proto?s:o;function a(e,i){let a=Object.keys(e),o=Array(a.length);for(let s=0;s<a.length;s++){let c=a[s],l=e[c];typeof l!=`object`||!l?o[c]=l:l.constructor!==Object&&(r=t.get(l.constructor))?o[c]=r(l,i):ArrayBuffer.isView(l)?o[c]=n(l):o[c]=i(l)}return o}function o(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,o);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,o);let i={};for(let a in e){if(Object.hasOwnProperty.call(e,a)===!1)continue;let s=e[a];typeof s!=`object`||!s?i[a]=s:s.constructor!==Object&&(r=t.get(s.constructor))?i[a]=r(s,o):ArrayBuffer.isView(s)?i[a]=n(s):i[a]=o(s)}return i}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,s);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,s);let i={};for(let a in e){let o=e[a];typeof o!=`object`||!o?i[a]=o:o.constructor!==Object&&(r=t.get(o.constructor))?i[a]=r(o,s):ArrayBuffer.isView(o)?i[a]=n(o):i[a]=s(o)}return i}}function i(e){let t=[],r=[],i=new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(o(Array.from(e),t))),i.set(Set,(e,t)=>new Set(o(Array.from(e),t))),e.constructorHandlers)for(let t of e.constructorHandlers)i.set(t[0],t[1]);let a=null;return e.proto?c:s;function o(e,o){let s=Object.keys(e),c=Array(s.length);for(let l=0;l<s.length;l++){let u=s[l],d=e[u];if(typeof d!=`object`||!d)c[u]=d;else if(d.constructor!==Object&&(a=i.get(d.constructor)))c[u]=a(d,o);else if(ArrayBuffer.isView(d))c[u]=n(d);else{let e=t.indexOf(d);e===-1?c[u]=o(d):c[u]=r[e]}}return c}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,s);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,s);let c={};t.push(e),r.push(c);for(let o in e){if(Object.hasOwnProperty.call(e,o)===!1)continue;let l=e[o];if(typeof l!=`object`||!l)c[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))c[o]=a(l,s);else if(ArrayBuffer.isView(l))c[o]=n(l);else{let e=t.indexOf(l);e===-1?c[o]=s(l):c[o]=r[e]}}return t.pop(),r.pop(),c}function c(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,c);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,c);let s={};t.push(e),r.push(s);for(let o in e){let l=e[o];if(typeof l!=`object`||!l)s[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))s[o]=a(l,c);else if(ArrayBuffer.isView(l))s[o]=n(l);else{let e=t.indexOf(l);e===-1?s[o]=c(l):s[o]=r[e]}}return t.pop(),r.pop(),s}}}))(),1),Kr=Object.defineProperty,X=(e,t)=>Kr(e,`name`,{value:t,configurable:!0}),qr=`\x1B[`,Jr={CURSOR_HIDE:qr+`?25l`,CURSOR_SHOW:qr+`?25h`},Yr=(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))(Yr||{}),Xr=class{static{X(this,`EventManager`)}emitter=new Hn;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()}};(class{static{X(this,`BaseEventMap`)}});function Zr(e){return!!e&&typeof e==`object`&&typeof e.subscribe==`function`}X(Zr,`isObservable`);function Qr(e){return!!e&&typeof e==`object`&&e.readable===!0&&typeof e.read==`function`&&typeof e.on==`function`}X(Qr,`isReadable`);function $r(){return!!process.env.LISTR_FORCE_UNICODE||process.platform!==`win32`||!!process.env.CI||!!process.env.WT_SESSION||process.env.TERM_PROGRAM===`vscode`||process.env.TERM===`xterm-256color`||process.env.TERM===`alacritty`}X($r,`isUnicodeSupported`);var ei=`(?:\\u001b|\\u009b)\\[[\\=><~/#&.:=?%@~_-]*[0-9]*[\\a-ln-tqyz=><~/#&.:=?%@~_-]+`,ti=/\u0007/;function ni(e){return String(e).replace(new RegExp(ei,`gmi`),``).replace(new RegExp(ti,`gmi`),``).trim()}X(ni,`cleanseAnsi`);var Z=rr();function ri(e,t){return e.replace(/^(?!\s*$)/gm,` `.repeat(t))}X(ri,`indent`);var ii={warning:`⚠`,cross:`✖`,arrowDown:`↓`,tick:`✔`,arrowRight:`→`,pointer:`❯`,checkboxOn:`☒`,arrowLeft:`←`,squareSmallFilled:`◼`,pointerSmall:`›`},ai={...ii,warning:`‼`,cross:`×`,tick:`√`,pointer:`>`,checkboxOn:`[×]`,squareSmallFilled:`■`},Q=$r()?ii:ai;function oi(e,...t){return D(String(e),...t)}X(oi,`splat`);var si={icon:{STARTED:Q.pointer,FAILED:Q.cross,SKIPPED:Q.arrowDown,COMPLETED:Q.tick,OUTPUT:Q.pointerSmall,TITLE:Q.arrowRight,RETRY:Q.warning,ROLLBACK:Q.arrowLeft,PAUSED:Q.squareSmallFilled},color:{STARTED:Z.yellow,FAILED:Z.red,SKIPPED:Z.yellow,COMPLETED:Z.green,RETRY:Z.yellowBright,ROLLBACK:Z.redBright,PAUSED:Z.yellowBright}},ci=[`RETRY`,`ROLLBACK`,`FAILED`],li=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 fi}static{X(this,`ListrLogger`)}process;log(e,t,n){let r=this.format(e,t,n);if(this.options.toStderr.includes(e)){this.process.toStderr(r);return}this.process.toStdout(r)}toStdout(e,t,n=!0){this.process.toStdout(this.format(null,e,t),n)}toStderr(e,t,n=!0){this.process.toStderr(this.format(null,e,t),n)}wrap(e,t){return e&&this.applyFormat(`[${e}]`,t)}splat(...e){let t=e.shift()??``;return e.length===0?t:oi(t,e)}suffix(e,...t){return t.filter(Boolean).forEach(t=>{if(e+=this.spacing(e),typeof t==`string`)e+=this.wrap(t);else if(typeof t==`object`){if(t.args??=[],typeof t.condition==`function`?!t.condition(...t.args):!(t.condition??!0))return e;e+=this.wrap(typeof t.field==`function`?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,typeof t==`string`)e=this.wrap(t)+e;else if(typeof t==`object`){if(t.args??=[],typeof t.condition==`function`?!t.condition(...t.args):!(t.condition??!0))return e;e=this.wrap(typeof t.field==`function`?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;if(!t){let n=this.options.icon?.[e];t=typeof n==`function`?n():n}let n=this.options.color?.[e];return t&&n&&(t=n(t)),t}format(e,t,n){return Array.isArray(t)||(t=[t]),t=this.splat(t.shift(),...t).toString().split(O).filter(e=>!e||e.trim()!==``).map(t=>this.style(e,this.fields(t,{prefix:Array.isArray(n?.prefix)?n.prefix:[n?.prefix],suffix:Array.isArray(n?.suffix)?n.suffix:[n?.suffix]}))).join(O),t}style(e,t){if(!e||!t)return t;let n=this.icon(e,!this.options.useIcons&&this.wrap(e));return n&&(t=n+` `+t),t}applyFormat(e,t){return t?.format?t.format(e):e}spacing(e){return e===void 0||e.trim()===``?``:` `}},ui=class{constructor(e){this.options=e}static{X(this,`ProcessOutputBuffer`)}buffer=[];decoder=new k;get all(){return this.buffer}get last(){return this.buffer.at(-1)}get length(){return this.buffer.length}write(e,...t){let n=t[t.length-1];return this.buffer.push({time:Date.now(),stream:this.options?.stream,entry:this.decoder.write(typeof e==`string`?Buffer.from(e,typeof t[0]==`string`?t[0]:void 0):Buffer.from(e))}),this.options?.limit&&(this.buffer=this.buffer.slice(-this.options.limit)),typeof n==`function`&&n(),!0}reset(){this.buffer=[]}},di=class{constructor(e){this.stream=e,this.method=e.write,this.buffer=new ui({stream:e})}static{X(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;let e=[...this.buffer.all];return this.buffer.reset(),e}write(...e){return this.method.apply(this.stream,e)}},fi=class{constructor(e,t,n){this.options=n,this.stream={stdout:new di(e??process.stdout),stderr:new di(t??process.stderr)},this.options={dump:[`stdout`,`stderr`],leaveEmptyLine:!0,...n}}static{X(this,`ProcessOutput`)}stream;active;get stdout(){return this.stream.stdout.out}get stderr(){return this.stream.stderr.out}hijack(){if(this.active)throw Error(`ProcessOutput has been already hijacked!`);this.stream.stdout.write(Jr.CURSOR_HIDE),Object.values(this.stream).forEach(e=>e.hijack()),this.active=!0}release(){let 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:ni(e.entry)})).filter(e=>e.entry);e.length>0&&(this.options.leaveEmptyLine&&this.stdout.write(O),e.forEach(e=>{(e.stream??this.stdout).write(e.entry+O)})),this.stream.stdout.write(Jr.CURSOR_SHOW),this.active=!1}toStdout(e,t=!0){return t&&(e+=O),this.stream.stdout.write(e)}toStderr(e,t=!0){return t&&(e+=O),this.stream.stderr.write(e)}};function pi(e){let t=new T;return t.rows=1/0,t.columns=1/0,t.write=t=>(e(t.toString()),!0),t}X(pi,`createWritable`),class{constructor(e,t){this.task=e,this.wrapper=t}static{X(this,`ListrPromptAdapter`)}state;reportStarted(){if(this.state=this.task.state,this.task.prompt)throw new Fi(`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 mi=class{static{X(this,`Spinner`)}spinner=$r()?[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`]:[`-`,`\\`,`|`,`/`];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)}},hi={icon:{SKIPPED_WITH_COLLAPSE:Q.arrowDown,SKIPPED_WITHOUT_COLLAPSE:Q.warning,OUTPUT:Q.pointerSmall,OUTPUT_WITH_BOTTOMBAR:Q.pointerSmall,PENDING:Q.pointer,COMPLETED:Q.tick,COMPLETED_WITH_FAILED_SUBTASKS:Q.warning,COMPLETED_WITH_SISTER_TASKS_FAILED:Q.squareSmallFilled,RETRY:Q.warning,ROLLING_BACK:Q.warning,ROLLED_BACK:Q.arrowLeft,FAILED:Q.cross,FAILED_WITH_SUBTASKS:Q.pointer,WAITING:Q.squareSmallFilled,PAUSED:Q.squareSmallFilled},color:{SKIPPED_WITH_COLLAPSE:Z.yellow,SKIPPED_WITHOUT_COLLAPSE:Z.yellow,PENDING:Z.yellow,COMPLETED:Z.green,COMPLETED_WITH_FAILED_SUBTASKS:Z.yellow,COMPLETED_WITH_SISTER_TASKS_FAILED:Z.red,RETRY:Z.yellowBright,ROLLING_BACK:Z.redBright,ROLLED_BACK:Z.redBright,FAILED:Z.red,FAILED_WITH_SUBTASKS:Z.red,WAITING:Z.dim,PAUSED:Z.yellowBright}};function gi(e){let t=Math.floor(e/1e3),n=Math.floor(t/60),r;return t===0&&n===0&&(r=`0.${Math.floor(e/100)}s`),t>0&&(r=`${t%60}s`),n>0&&(r=`${n}m${r}`),r}X(gi,`parseTimer`);var _i={condition:!0,field:gi,format:X(()=>Z.dim,`format`)};function vi(){let e=new Date;return String(e.getHours()).padStart(2,`0`)+`:`+String(e.getMinutes()).padStart(2,`0`)+`:`+String(e.getSeconds()).padStart(2,`0`)}X(vi,`parseTimestamp`);var yi=class e{constructor(t,n,r){this.tasks=t,this.options=n,this.events=r,this.options={...e.rendererOptions,...this.options,icon:{...hi.icon,...n?.icon??{}},color:{...hi.color,...n?.color??{}}},this.spinner=this.options.spinner??new mi,this.logger=this.options.logger??new li({useIcons:!0,toStderr:[]}),this.logger.options.icon=this.options.icon,this.logger.options.color=this.options.color}static{X(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:{..._i,format:X(()=>Z.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(){let{createLogUpdate:e}=await import(`./log-update-BlmXx4Xt.mjs`),{default:t}=await import(`./cli-truncate-KBizENUJ.mjs`),{default:n}=await import(`./wrap-ansi-TR6i00jW.mjs`);this.updater=e(this.logger.process.stdout),this.truncate=t,this.wrap=n,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};let t=[],n=this.renderer(this.tasks),r=this.renderBottomBar(),i=this.renderPrompt();return e.tasks&&n.length>0&&t.push(...n),e.bottomBar&&r.length>0&&(t.length>0&&t.push(``),t.push(...r)),e.prompt&&i.length>0&&(t.length>0&&t.push(``),t.push(...i)),t.join(O)}style(e,t=!1){let n=this.cache.rendererOptions.get(e.id);if(e.isSkipped()){if(t||n.collapseSkips)return this.logger.icon(`SKIPPED_WITH_COLLAPSE`);if(n.collapseSkips===!1)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()&&n.showSubtasks!==!1&&!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,n){if(e.trim()===``)return[];t&&(e=t+` `+e);let r,i=(process.stdout.columns??80)-n*this.options.indentation-2;switch(this.options.formatOutput){case`truncate`:r=e.split(O).map((e,t)=>this.truncate(this.indent(e,t),i));break;case`wrap`:r=this.wrap(e,i,{hard:!0,trim:!1}).split(O).map((e,t)=>this.indent(e,t));break;default:throw new Pi(`Format option for the renderer is wrong.`)}return this.options.removeEmptyLines&&(r=r.filter(Boolean)),r.map(e=>ri(e,n*this.options.indentation))}shouldOutputToOutputBar(e){let t=this.cache.rendererTaskOptions.get(e.id).outputBar;return typeof t==`number`&&t!==0||typeof t==`boolean`&&t!==!1}shouldOutputToBottomBar(e){let t=this.cache.rendererTaskOptions.get(e.id).bottomBar;return typeof t==`number`&&t!==0||typeof t==`boolean`&&t!==!1||!e.hasTitle()}renderer(e,t=0){return e.flatMap(n=>{if(!n.isEnabled())return[];if(this.cache.render.has(n.id))return this.cache.render.get(n.id);this.calculate(n),this.setupBuffer(n);let r=this.cache.rendererOptions.get(n.id),i=this.cache.rendererTaskOptions.get(n.id),a=[];if(n.isPrompt()){if(this.activePrompt&&this.activePrompt!==n.id)throw new Pi(`Only one prompt can be active at the given time, please re-evaluate your task design.`);this.activePrompt||=(n.on(`PROMPT`,e=>{let t=ni(e);t&&(this.prompt=t)}),n.on(`STATE`,e=>{(e===`PROMPT_COMPLETED`||n.hasFinalized()||n.hasReset())&&(this.prompt=null,this.activePrompt=null,n.off(`PROMPT`))}),n.id)}if(n.hasTitle()&&(e.some(e=>e.hasFailed())&&!n.hasFailed()&&n.options.exitOnError!==!1&&!(n.isCompleted()||n.isSkipped())?a.push(...this.format(n.title,this.logger.icon(`COMPLETED_WITH_SISTER_TASKS_FAILED`),t)):n.hasFailed()&&r.collapseErrors?a.push(...this.format(!n.hasSubtasks()&&n.message.error&&r.showErrorMessage?n.message.error:n.title,this.style(n),t)):n.isSkipped()&&r.collapseSkips?a.push(...this.format(this.logger.suffix(n.message.skip&&r.showSkipMessage?n.message.skip:n.title,{field:`SKIPPED`,condition:r.suffixSkips,format:X(()=>Z.dim,`format`)}),this.style(n),t)):n.isRetrying()?a.push(...this.format(this.logger.suffix(n.title,{field:`RETRY:${n.message.retry.count}`,format:X(()=>Z.yellow,`format`),condition:r.suffixRetries}),this.style(n),t)):n.isCompleted()&&n.hasTitle()&&Oi(i.timer?.condition,n.message.duration)?a.push(...this.format(this.logger.suffix(n?.title,{...i.timer,args:[n.message.duration]}),this.style(n),t)):n.isPaused()?a.push(...this.format(this.logger.suffix(n.title,{...r.pausedTimer,args:[n.message.paused-Date.now()]}),this.style(n),t)):a.push(...this.format(n.title,this.style(n),t))),(!n.hasSubtasks()||!r.showSubtasks)&&(n.hasFailed()&&r.collapseErrors===!1&&(r.showErrorMessage||!r.showSubtasks)?a.push(...this.dump(n,t,`FAILED`)):n.isSkipped()&&r.collapseSkips===!1&&(r.showSkipMessage||!r.showSubtasks)&&a.push(...this.dump(n,t,`SKIPPED`))),(n.isPending()||i.persistentOutput)&&a.push(...this.renderOutputBar(n,t)),r.showSubtasks!==!1&&n.hasSubtasks()&&(n.isPending()||n.hasFinalized()&&!n.hasTitle()||n.isCompleted()&&r.collapseSubtasks===!1&&!n.subtasks.some(e=>this.cache.rendererOptions.get(e.id)?.collapseSubtasks===!0)||n.subtasks.some(e=>this.cache.rendererOptions.get(e.id)?.collapseSubtasks===!1)||n.subtasks.some(e=>e.hasFailed())||n.subtasks.some(e=>e.hasRolledBack()))){let e=n.hasTitle()?t+1:t,r=this.renderer(n.subtasks,e);a.push(...r)}return n.hasFinalized()&&(i.persistentOutput||(this.buffer.bottom.delete(n.id),this.buffer.output.delete(n.id))),n.isClosed()&&(this.cache.render.set(n.id,a),this.reset(n)),a})}renderOutputBar(e,t){let n=this.buffer.output.get(e.id);return n?n.all.flatMap(n=>this.dump(e,t,`OUTPUT`,n.entry)):[]}renderBottomBar(){return this.buffer.bottom.size===0?[]: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;let n={...this.options,...t.rendererOptions};this.cache.rendererOptions.set(t.id,n),this.cache.rendererTaskOptions.set(t.id,{...e.rendererTaskOptions,timer:n.timer,...t.rendererTaskOptions})}setupBuffer(e){if(this.buffer.bottom.has(e.id)||this.buffer.output.has(e.id))return;let t=this.cache.rendererTaskOptions.get(e.id);this.shouldOutputToBottomBar(e)&&!this.buffer.bottom.has(e.id)?(this.buffer.bottom.set(e.id,new ui({limit:typeof t.bottomBar==`number`?t.bottomBar:1})),e.on(`OUTPUT`,t=>{let n=this.dump(e,-1,`OUTPUT`,t);this.buffer.bottom.get(e.id).write(n.join(O))}),e.on(`STATE`,t=>{switch(t){case`RETRY`:this.buffer.bottom.delete(e.id);break}})):this.shouldOutputToOutputBar(e)&&!this.buffer.output.has(e.id)&&(this.buffer.output.set(e.id,new ui({limit:typeof t.outputBar==`number`?t.outputBar:1})),e.on(`OUTPUT`,t=>{this.buffer.output.get(e.id).write(t)}),e.on(`STATE`,t=>{switch(t){case`RETRY`:this.buffer.output.delete(e.id);break}}))}reset(e){this.cache.rendererOptions.delete(e.id),this.cache.rendererTaskOptions.delete(e.id),this.buffer.output.delete(e.id)}dump(e,t,n=`OUTPUT`,r){if(!r)switch(n){case`OUTPUT`:r=e.output;break;case`SKIPPED`:r=e.message.skip;break;case`FAILED`:r=e.message.error;break}return e.hasTitle()&&n===`FAILED`&&r===e.title||typeof r!=`string`?[]:(n===`OUTPUT`&&(r=ni(r)),this.format(r,this.style(e,!0),t+1))}indent(e,t){return t>0?ri(e.trimEnd(),this.options.indentation):e.trimEnd()}},bi=class{constructor(e,t){this.tasks=e,this.options=t}static{X(this,`SilentRenderer`)}static nonTTY=!0;static rendererOptions;static rendererTaskOptions;render(){}end(){}},xi=class e{constructor(t,n){this.tasks=t,this.options=n,this.options={...e.rendererOptions,...n,icon:{...si.icon,...n?.icon??{}},color:{...si.color,...n?.color??{}}},this.logger=this.options.logger??new li({useIcons:!0,toStderr:ci}),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{X(this,`SimpleRenderer`)}static nonTTY=!0;static rendererOptions={pausedTimer:{..._i,field:X(e=>`PAUSED:${e}`,`field`),format:X(()=>Z.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)});let t=this.cache.rendererOptions.get(e.id),n=this.cache.rendererTaskOptions.get(e.id);e.on(`SUBTASK`,e=>{this.renderer(e)}),e.on(`STATE`,t=>{if(e.hasTitle())if(t===`STARTED`)this.logger.log(`STARTED`,e.title);else if(t===`COMPLETED`){let t=n?.timer;this.logger.log(`COMPLETED`,e.title,t&&{suffix:{...t,condition:!!e.message?.duration&&t.condition,args:[e.message.duration]}})}else t===`PROMPT`?(this.logger.process.hijack(),e.on(`PROMPT`,e=>{this.logger.process.toStderr(e,!1)})):t===`PROMPT_COMPLETED`&&(e.off(`PROMPT`),this.logger.process.release())}),e.on(`OUTPUT`,e=>{this.logger.log(`OUTPUT`,e)}),e.on(`MESSAGE`,n=>{if(n.error)this.logger.log(`FAILED`,e.title,{suffix:{field:`FAILED: ${n.error}`,format:X(()=>Z.red,`format`)}});else if(n.skip)this.logger.log(`SKIPPED`,e.title,{suffix:{field:`SKIPPED: ${n.skip}`,format:X(()=>Z.yellow,`format`)}});else if(n.rollback)this.logger.log(`ROLLBACK`,e.title,{suffix:{field:`ROLLBACK: ${n.rollback}`,format:X(()=>Z.red,`format`)}});else if(n.retry)this.logger.log(`RETRY`,e.title,{suffix:{field:`RETRY:${n.retry.count}`,format:X(()=>Z.red,`format`)}});else if(n.paused){let r=t?.pausedTimer;this.logger.log(`PAUSED`,e.title,r&&{suffix:{...r,condition:!!n?.paused&&r.condition,args:[n.paused-Date.now()]}})}})})}calculate(t){if(this.cache.rendererOptions.has(t.id)&&this.cache.rendererTaskOptions.has(t.id))return;let n={...this.options,...t.rendererOptions};this.cache.rendererOptions.set(t.id,n),this.cache.rendererTaskOptions.set(t.id,{...e.rendererTaskOptions,timer:n.timer,...t.rendererTaskOptions})}reset(e){this.cache.rendererOptions.delete(e.id),this.cache.rendererTaskOptions.delete(e.id)}},Si=class{constructor(e){this.options=e}static{X(this,`TestRendererSerializer`)}serialize(e,t,n){return JSON.stringify(this.generate(e,t,n))}generate(e,t,n){let r={event:e,data:t};if(typeof this.options?.task!=`boolean`){let e=Object.fromEntries(this.options.task.map(e=>{let t=n[e];return typeof t==`function`?[e,t.call(n)]:[e,t]}));Object.keys(n).length>0&&(r.task=e)}return r}},Ci=class e{constructor(t,n){this.tasks=t,this.options=n,this.options={...e.rendererOptions,...this.options},this.logger=this.options.logger??new li({useIcons:!1}),this.serializer=new Si(this.options)}static{X(this,`TestRenderer`)}static nonTTY=!0;static rendererOptions={subtasks:!0,state:Object.values(Yr),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=>{let n=Object.fromEntries(Object.entries(t).map(([e,t])=>{if(this.options.messages.includes(e))return[e,t]}).filter(Boolean));if(Object.keys(n).length>0){let t=this.serializer.serialize(`MESSAGE`,n,e);this.options.messagesToStderr.some(e=>Object.keys(n).includes(e))?this.logger.toStderr(t):this.logger.toStdout(t)}})})}},wi={default:yi,simple:xi,verbose:class e{constructor(t,n){this.tasks=t,this.options=n,this.options={...e.rendererOptions,...this.options,icon:{...si.icon,...n?.icon??{}},color:{...si.color,...n?.color??{}}},this.logger=this.options.logger??new li({useIcons:!1,toStderr:ci}),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{X(this,`VerboseRenderer`)}static nonTTY=!0;static rendererOptions={logTitleChange:!1,pausedTimer:{..._i,format:X(()=>Z.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)});let t=this.cache.rendererOptions.get(e.id),n=this.cache.rendererTaskOptions.get(e.id);e.on(`SUBTASK`,e=>{this.renderer(e)}),e.on(`STATE`,t=>{if(e.hasTitle()){if(t===`STARTED`)this.logger.log(`STARTED`,e.title);else if(t===`COMPLETED`){let t=n.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=>{let t=ni(e);t&&this.logger.log(`PROMPT`,t)}),this.options?.logTitleChange!==!1&&e.on(`TITLE`,e=>{this.logger.log(`TITLE`,e)}),e.on(`MESSAGE`,n=>{if(n?.error)this.logger.log(`FAILED`,n.error);else if(n?.skip)this.logger.log(`SKIPPED`,n.skip);else if(n?.rollback)this.logger.log(`ROLLBACK`,n.rollback);else if(n?.retry)this.logger.log(`RETRY`,e.title,{suffix:n.retry.count.toString()});else if(n?.paused){let r=t?.pausedTimer;this.logger.log(`PAUSED`,e.title,r&&{suffix:{...r,condition:!!n?.paused&&r.condition,args:[n.paused-Date.now()]}})}})})}calculate(t){if(this.cache.rendererOptions.has(t.id)&&this.cache.rendererTaskOptions.has(t.id))return;let n={...this.options,...t.rendererOptions};this.cache.rendererOptions.set(t.id,n),this.cache.rendererTaskOptions.set(t.id,{...e.rendererTaskOptions,timer:n.timer,...t.rendererTaskOptions})}reset(e){this.cache.rendererOptions.delete(e.id),this.cache.rendererTaskOptions.delete(e.id)}},test:Ci,silent:bi};function Ti(e){return process.stdout.isTTY===!0||e.nonTTY===!0}X(Ti,`isRendererSupported`);function Ei(e){return typeof e==`string`?wi[e]??wi.default:typeof e==`function`?e:wi.default}X(Ei,`getRendererClass`);function Di(e){if(Oi(e?.silentRendererCondition))return{renderer:Ei(`silent`),selection:`SILENT`};let t={renderer:Ei(e.renderer),options:e.rendererOptions,selection:`PRIMARY`};return!Ti(t.renderer)||Oi(e?.fallbackRendererCondition)?{renderer:Ei(e.fallbackRenderer),options:e.fallbackRendererOptions,selection:`SECONDARY`}:t}X(Di,`getRenderer`);function Oi(e,...t){return typeof e==`function`?e(...t):e}X(Oi,`assertFunctionOrSelf`);var ki=(0,Gr.default)({circles:!0});function Ai(e){return ki(e)}X(Ai,`cloneObject`);var ji=class{static{X(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=>{let n=X(()=>t(this.run(e)),`callback`);this.queue.add(n)})}flush(){for(let e of this.queue){if(this.count>=this.concurrency)break;this.queue.delete(e),e()}}run(e){this.count++;let t=e(),n=X(()=>{this.count--,this.flush()},`cleanup`);return t.then(n,()=>{this.queue.clear()}),t}};function Mi(e){return new Promise(t=>{setTimeout(t,e)})}X(Mi,`delay`);var Ni=class extends Error{constructor(e,t,n){super(e.message),this.error=e,this.type=t,this.task=n,this.name=`ListrError`,this.path=n.path,n?.options.collectErrors===`full`&&(this.task=Ai(n),this.ctx=Ai(n.listr.ctx)),this.stack=e?.stack}static{X(this,`ListrError`)}path;ctx},Pi=class extends Error{static{X(this,`ListrRendererError`)}},Fi=class extends Error{static{X(this,`PromptError`)}},Ii=class{constructor(e){this.task=e}static{X(this,`TaskWrapper`)}get title(){return this.task.title}set title(e){e=Array.isArray(e)?e:[e],this.task.title$=oi(e.shift(),...e)}get output(){return this.task.output}set output(e){e=Array.isArray(e)?e:[e],this.task.output$=oi(e.shift(),...e)}set promptOutput(e){this.task.promptOutput$=e}newListr(e,t){let n;return n=typeof e==`function`?e(this):e,new Bi(n,t,this.task)}report(e,t){this.task.options.collectErrors!==!1&&this.task.listr.errors.push(new Ni(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?oi(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 pi(t=>{switch(e){case`PROMPT`:this.promptOutput=t;break;default:this.output=t}})}run(e){return this.task.run(e,this)}},Li=class extends Xr{static{X(this,`ListrTaskEventManager`)}},Ri=class extends Li{constructor(e,t,n,r,i){if(super(),this.listr=e,this.task=t,this.options=n,this.rendererOptions=r,this.rendererTaskOptions=i,t.title){let e=Array.isArray(t?.title)?t.title:[t.title];this.title=oi(e.shift(),...e),this.initialTitle=this.title}this.taskFn=t.task,this.parent=e.parentTask}static{X(this,`Task`)}id=A();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(let e of this.subtasks)e.state===`STARTED`&&(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),ni(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 this.state===`WAITING`&&(this.enabled=await Oi(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 this.state===`STARTED`}isSkipped(){return this.state===`SKIPPED`}isCompleted(){return this.state===`COMPLETED`}hasFailed(){return this.state===`FAILED`}isRollingBack(){return this.state===`ROLLING_BACK`}hasRolledBack(){return this.state===`ROLLED_BACK`}isRetrying(){return this.state===`RETRY`}hasReset(){return this.state===`RETRY`||this.state===`ROLLING_BACK`}isEnabled(){return this.enabled}hasTitle(){return typeof this?.title==`string`}isPrompt(){return this.state===`PROMPT`||this.state===`PROMPT_COMPLETED`}isPaused(){return this.state===`PAUSED`}isClosed(){return this.closed}async pause(e){let t=this.state;this.state$=`PAUSED`,this.message$={paused:Date.now()+e},await Mi(e),this.state$=t,this.message$={paused:null}}async run(e,t){let n=X(t=>(t instanceof Bi?(t.options={...this.options,...t.options},t.rendererClass=Ei(`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(n):Qr(t)?t=new Promise((e,n)=>{t.on(`data`,e=>{this.output$=e.toString()}),t.on(`error`,e=>n(e)),t.on(`end`,()=>e(null))}):Zr(t)&&(t=new Promise((e,n)=>{t.subscribe({next:X(e=>{this.output$=e},`next`),error:n,complete:e})})),t),`handleResult`),r=Date.now();this.state$=`STARTED`;let i=await Oi(this.task?.skip??!1,e);if(i){typeof i==`string`?this.message$={skip:i}:this.hasTitle()?this.message$={skip:this.title}:this.message$={skip:`Skipped task without a title.`},this.state$=`SKIPPED`;return}try{let i=typeof this.task?.retry==`number`&&this.task.retry>0?this.task.retry+1:typeof this.task?.retry==`object`&&this.task.retry.tries>0?this.task.retry.tries+1:1,a=typeof this.task.retry==`object`&&this.task.retry.delay;for(let r=1;r<=i;r++)try{await n(this.taskFn(e,t));break}catch(e){if(r!==i)this.retry={count:r,error:e},this.message$={retry:this.retry},this.title$=this.initialTitle,this.output=void 0,t.report(e,`WILL_RETRY`),this.state$=`RETRY`,a&&await this.pause(a);else throw e}(this.isStarted()||this.isRetrying())&&(this.message$={duration:Date.now()-r},this.state$=`COMPLETED`)}catch(n){if(this.prompt instanceof Fi&&(n=this.prompt),this.task?.rollback){t.report(n,`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(this.listr.options?.exitAfterRollback!==!1)throw this.close(),n}else{if(this.state$=`FAILED`,this.listr.options.exitOnError!==!1&&await Oi(this.task?.exitOnError,e)!==!1)throw t.report(n,`HAS_FAILED`),this.close(),n;this.hasSubtasks()||t.report(n,`HAS_FAILED_WITHOUT_ERROR`)}}finally{this.close()}}close(){this.emit(`CLOSED`),this.listr.events.emit(`SHOUD_REFRESH_RENDER`),this.complete()}},zi=class extends Xr{static{X(this,`ListrEventManager`)}},Bi=class{constructor(e,t,n){this.task=e,this.options=t,this.parentTask=n,this.options={concurrent:!1,renderer:`default`,fallbackRenderer:`simple`,exitOnError:!0,exitAfterRollback:!0,collectErrors:!1,registerSignalListeners:!0,...this.parentTask?.options??{},...t},this.options.concurrent===!0?this.options.concurrent=1/0:typeof this.options.concurrent!=`number`&&(this.options.concurrent=1),this.concurrency=new ji({concurrency:this.options.concurrent}),n&&(this.path=[...n.listr.path,n.title],this.errors=n.listr.errors),this.parentTask?.listr.events instanceof zi?this.events=this.parentTask.listr.events:this.events=new zi,(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`);let r=Di({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=r.renderer,this.rendererClassOptions=r.options,this.rendererSelection=r.selection,this.add(e??[]),this.options.registerSignalListeners&&(this.boundSignalHandler=this.signalHandler.bind(this),process.once(`SIGINT`,this.boundSignalHandler).setMaxListeners(0))}static{X(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||=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(this.options.exitOnError!==!1)throw this.renderer.end(e),this.removeSignalHandler(),e}return this.ctx}generate(e){return e=Array.isArray(e)?e:[e],e.map(e=>{let t;return this.rendererSelection===`PRIMARY`?t=e.rendererOptions:this.rendererSelection===`SECONDARY`&&(t=e.fallbackRendererOptions),new Ri(this,e,this.options,this.rendererClassOptions,t)})}async runTask(e){if(await e.check(this.ctx))return new Ii(e).run(this.ctx)}signalHandler(){this.tasks?.forEach(async e=>{e.isPending()&&(e.state$=`FAILED`)}),this.isRoot()&&(this.renderer?.end(Error(`Interrupted.`)),process.exit(127))}removeSignalHandler(){this.boundSignalHandler&&process.removeListener(`SIGINT`,this.boundSignalHandler)}};const Vi=J.blue(Q.arrowRight),Hi=J.redBright(Q.cross),Ui=J.yellow(Q.warning),Wi=(e,t,n)=>`${J.redBright(`${Hi} Validation Error:`)}
11
+ `);return a!==-1&&(t=En(t,i,r,a)),r+t+i};Object.defineProperties(In.prototype,Nn);const J=In();In({level:On?On.level:0});var Hn=e(n(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)}))(),1).default;const{env:Un={},argv:Wn=[],platform:Gn=``}=typeof process>`u`?{}:process,Kn=`NO_COLOR`in Un||Wn.includes(`--no-color`),qn=`FORCE_COLOR`in Un||Wn.includes(`--color`),Jn=Gn===`win32`,Yn=Un.TERM===`dumb`,Xn=E&&E.isatty&&E.isatty(1)&&Un.TERM&&!Yn,Zn=`CI`in Un&&(`GITHUB_ACTIONS`in Un||`GITLAB_CI`in Un||`CIRCLECI`in Un),Qn=!Kn&&(qn||Jn&&!Yn||Xn||Zn),$n=(e,t,n,r,i=t.substring(0,e)+r,a=t.substring(e+n.length),o=a.indexOf(n))=>i+(o<0?a:$n(o,a,n,r)),er=(e,t,n,r,i)=>e<0?n+t+r:n+$n(e,t,r,i)+r,tr=(e,t,n=e,r=e.length+1)=>i=>i||!(i===``||i===void 0)?er((``+i).indexOf(t,r),i,e,t,n):``,Y=(e,t,n)=>tr(`\x1b[${e}m`,`\x1b[${t}m`,n),nr={reset:Y(0,0),bold:Y(1,22,`\x1B[22m\x1B[1m`),dim:Y(2,22,`\x1B[22m\x1B[2m`),italic:Y(3,23),underline:Y(4,24),inverse:Y(7,27),hidden:Y(8,28),strikethrough:Y(9,29),black:Y(30,39),red:Y(31,39),green:Y(32,39),yellow:Y(33,39),blue:Y(34,39),magenta:Y(35,39),cyan:Y(36,39),white:Y(37,39),gray:Y(90,39),bgBlack:Y(40,49),bgRed:Y(41,49),bgGreen:Y(42,49),bgYellow:Y(43,49),bgBlue:Y(44,49),bgMagenta:Y(45,49),bgCyan:Y(46,49),bgWhite:Y(47,49),blackBright:Y(90,39),redBright:Y(91,39),greenBright:Y(92,39),yellowBright:Y(93,39),blueBright:Y(94,39),magentaBright:Y(95,39),cyanBright:Y(96,39),whiteBright:Y(97,39),bgBlackBright:Y(100,49),bgRedBright:Y(101,49),bgGreenBright:Y(102,49),bgYellowBright:Y(103,49),bgBlueBright:Y(104,49),bgMagentaBright:Y(105,49),bgCyanBright:Y(106,49),bgWhiteBright:Y(107,49)},rr=({useColor:e=Qn}={})=>e?nr:Object.keys(nr).reduce((e,t)=>({...e,[t]:String}),{}),{reset:ir,bold:ar,dim:or,italic:sr,underline:cr,inverse:lr,hidden:ur,strikethrough:dr,black:fr,red:pr,green:mr,yellow:hr,blue:gr,magenta:_r,cyan:vr,white:yr,gray:br,bgBlack:xr,bgRed:Sr,bgGreen:Cr,bgYellow:wr,bgBlue:Tr,bgMagenta:Er,bgCyan:Dr,bgWhite:Or,blackBright:kr,redBright:Ar,greenBright:jr,yellowBright:Mr,blueBright:Nr,magentaBright:Pr,cyanBright:Fr,whiteBright:Ir,bgBlackBright:Lr,bgRedBright:Rr,bgGreenBright:zr,bgYellowBright:Br,bgBlueBright:Vr,bgMagentaBright:Hr,bgCyanBright:Ur,bgWhiteBright:Wr}=rr();var Gr=e(n(((e,t)=>{t.exports=r;function n(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function r(e){if(e||={},e.circles)return i(e);let t=new Map;if(t.set(Date,e=>new Date(e)),t.set(Map,(e,t)=>new Map(a(Array.from(e),t))),t.set(Set,(e,t)=>new Set(a(Array.from(e),t))),e.constructorHandlers)for(let n of e.constructorHandlers)t.set(n[0],n[1]);let r=null;return e.proto?s:o;function a(e,i){let a=Object.keys(e),o=Array(a.length);for(let s=0;s<a.length;s++){let c=a[s],l=e[c];typeof l!=`object`||!l?o[c]=l:l.constructor!==Object&&(r=t.get(l.constructor))?o[c]=r(l,i):ArrayBuffer.isView(l)?o[c]=n(l):o[c]=i(l)}return o}function o(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,o);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,o);let i={};for(let a in e){if(Object.hasOwnProperty.call(e,a)===!1)continue;let s=e[a];typeof s!=`object`||!s?i[a]=s:s.constructor!==Object&&(r=t.get(s.constructor))?i[a]=r(s,o):ArrayBuffer.isView(s)?i[a]=n(s):i[a]=o(s)}return i}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return a(e,s);if(e.constructor!==Object&&(r=t.get(e.constructor)))return r(e,s);let i={};for(let a in e){let o=e[a];typeof o!=`object`||!o?i[a]=o:o.constructor!==Object&&(r=t.get(o.constructor))?i[a]=r(o,s):ArrayBuffer.isView(o)?i[a]=n(o):i[a]=s(o)}return i}}function i(e){let t=[],r=[],i=new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(o(Array.from(e),t))),i.set(Set,(e,t)=>new Set(o(Array.from(e),t))),e.constructorHandlers)for(let t of e.constructorHandlers)i.set(t[0],t[1]);let a=null;return e.proto?c:s;function o(e,o){let s=Object.keys(e),c=Array(s.length);for(let l=0;l<s.length;l++){let u=s[l],d=e[u];if(typeof d!=`object`||!d)c[u]=d;else if(d.constructor!==Object&&(a=i.get(d.constructor)))c[u]=a(d,o);else if(ArrayBuffer.isView(d))c[u]=n(d);else{let e=t.indexOf(d);e===-1?c[u]=o(d):c[u]=r[e]}}return c}function s(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,s);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,s);let c={};t.push(e),r.push(c);for(let o in e){if(Object.hasOwnProperty.call(e,o)===!1)continue;let l=e[o];if(typeof l!=`object`||!l)c[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))c[o]=a(l,s);else if(ArrayBuffer.isView(l))c[o]=n(l);else{let e=t.indexOf(l);e===-1?c[o]=s(l):c[o]=r[e]}}return t.pop(),r.pop(),c}function c(e){if(typeof e!=`object`||!e)return e;if(Array.isArray(e))return o(e,c);if(e.constructor!==Object&&(a=i.get(e.constructor)))return a(e,c);let s={};t.push(e),r.push(s);for(let o in e){let l=e[o];if(typeof l!=`object`||!l)s[o]=l;else if(l.constructor!==Object&&(a=i.get(l.constructor)))s[o]=a(l,c);else if(ArrayBuffer.isView(l))s[o]=n(l);else{let e=t.indexOf(l);e===-1?s[o]=c(l):s[o]=r[e]}}return t.pop(),r.pop(),s}}}))(),1),Kr=Object.defineProperty,X=(e,t)=>Kr(e,`name`,{value:t,configurable:!0}),qr=`\x1B[`,Jr={CURSOR_HIDE:qr+`?25l`,CURSOR_SHOW:qr+`?25h`},Yr=(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))(Yr||{}),Xr=class{static{X(this,`EventManager`)}emitter=new Hn;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()}};(class{static{X(this,`BaseEventMap`)}});function Zr(e){return!!e&&typeof e==`object`&&typeof e.subscribe==`function`}X(Zr,`isObservable`);function Qr(e){return!!e&&typeof e==`object`&&e.readable===!0&&typeof e.read==`function`&&typeof e.on==`function`}X(Qr,`isReadable`);function $r(){return!!process.env.LISTR_FORCE_UNICODE||process.platform!==`win32`||!!process.env.CI||!!process.env.WT_SESSION||process.env.TERM_PROGRAM===`vscode`||process.env.TERM===`xterm-256color`||process.env.TERM===`alacritty`}X($r,`isUnicodeSupported`);var ei=`(?:\\u001b|\\u009b)\\[[\\=><~/#&.:=?%@~_-]*[0-9]*[\\a-ln-tqyz=><~/#&.:=?%@~_-]+`,ti=/\u0007/;function ni(e){return String(e).replace(new RegExp(ei,`gmi`),``).replace(new RegExp(ti,`gmi`),``).trim()}X(ni,`cleanseAnsi`);var Z=rr();function ri(e,t){return e.replace(/^(?!\s*$)/gm,` `.repeat(t))}X(ri,`indent`);var ii={warning:`⚠`,cross:`✖`,arrowDown:`↓`,tick:`✔`,arrowRight:`→`,pointer:`❯`,checkboxOn:`☒`,arrowLeft:`←`,squareSmallFilled:`◼`,pointerSmall:`›`},ai={...ii,warning:`‼`,cross:`×`,tick:`√`,pointer:`>`,checkboxOn:`[×]`,squareSmallFilled:`■`},Q=$r()?ii:ai;function oi(e,...t){return D(String(e),...t)}X(oi,`splat`);var si={icon:{STARTED:Q.pointer,FAILED:Q.cross,SKIPPED:Q.arrowDown,COMPLETED:Q.tick,OUTPUT:Q.pointerSmall,TITLE:Q.arrowRight,RETRY:Q.warning,ROLLBACK:Q.arrowLeft,PAUSED:Q.squareSmallFilled},color:{STARTED:Z.yellow,FAILED:Z.red,SKIPPED:Z.yellow,COMPLETED:Z.green,RETRY:Z.yellowBright,ROLLBACK:Z.redBright,PAUSED:Z.yellowBright}},ci=[`RETRY`,`ROLLBACK`,`FAILED`],li=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 fi}static{X(this,`ListrLogger`)}process;log(e,t,n){let r=this.format(e,t,n);if(this.options.toStderr.includes(e)){this.process.toStderr(r);return}this.process.toStdout(r)}toStdout(e,t,n=!0){this.process.toStdout(this.format(null,e,t),n)}toStderr(e,t,n=!0){this.process.toStderr(this.format(null,e,t),n)}wrap(e,t){return e&&this.applyFormat(`[${e}]`,t)}splat(...e){let t=e.shift()??``;return e.length===0?t:oi(t,e)}suffix(e,...t){return t.filter(Boolean).forEach(t=>{if(e+=this.spacing(e),typeof t==`string`)e+=this.wrap(t);else if(typeof t==`object`){if(t.args??=[],typeof t.condition==`function`?!t.condition(...t.args):!(t.condition??!0))return e;e+=this.wrap(typeof t.field==`function`?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,typeof t==`string`)e=this.wrap(t)+e;else if(typeof t==`object`){if(t.args??=[],typeof t.condition==`function`?!t.condition(...t.args):!(t.condition??!0))return e;e=this.wrap(typeof t.field==`function`?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;if(!t){let n=this.options.icon?.[e];t=typeof n==`function`?n():n}let n=this.options.color?.[e];return t&&n&&(t=n(t)),t}format(e,t,n){return Array.isArray(t)||(t=[t]),t=this.splat(t.shift(),...t).toString().split(O).filter(e=>!e||e.trim()!==``).map(t=>this.style(e,this.fields(t,{prefix:Array.isArray(n?.prefix)?n.prefix:[n?.prefix],suffix:Array.isArray(n?.suffix)?n.suffix:[n?.suffix]}))).join(O),t}style(e,t){if(!e||!t)return t;let n=this.icon(e,!this.options.useIcons&&this.wrap(e));return n&&(t=n+` `+t),t}applyFormat(e,t){return t?.format?t.format(e):e}spacing(e){return e===void 0||e.trim()===``?``:` `}},ui=class{constructor(e){this.options=e}static{X(this,`ProcessOutputBuffer`)}buffer=[];decoder=new k;get all(){return this.buffer}get last(){return this.buffer.at(-1)}get length(){return this.buffer.length}write(e,...t){let n=t[t.length-1];return this.buffer.push({time:Date.now(),stream:this.options?.stream,entry:this.decoder.write(typeof e==`string`?Buffer.from(e,typeof t[0]==`string`?t[0]:void 0):Buffer.from(e))}),this.options?.limit&&(this.buffer=this.buffer.slice(-this.options.limit)),typeof n==`function`&&n(),!0}reset(){this.buffer=[]}},di=class{constructor(e){this.stream=e,this.method=e.write,this.buffer=new ui({stream:e})}static{X(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;let e=[...this.buffer.all];return this.buffer.reset(),e}write(...e){return this.method.apply(this.stream,e)}},fi=class{constructor(e,t,n){this.options=n,this.stream={stdout:new di(e??process.stdout),stderr:new di(t??process.stderr)},this.options={dump:[`stdout`,`stderr`],leaveEmptyLine:!0,...n}}static{X(this,`ProcessOutput`)}stream;active;get stdout(){return this.stream.stdout.out}get stderr(){return this.stream.stderr.out}hijack(){if(this.active)throw Error(`ProcessOutput has been already hijacked!`);this.stream.stdout.write(Jr.CURSOR_HIDE),Object.values(this.stream).forEach(e=>e.hijack()),this.active=!0}release(){let 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:ni(e.entry)})).filter(e=>e.entry);e.length>0&&(this.options.leaveEmptyLine&&this.stdout.write(O),e.forEach(e=>{(e.stream??this.stdout).write(e.entry+O)})),this.stream.stdout.write(Jr.CURSOR_SHOW),this.active=!1}toStdout(e,t=!0){return t&&(e+=O),this.stream.stdout.write(e)}toStderr(e,t=!0){return t&&(e+=O),this.stream.stderr.write(e)}};function pi(e){let t=new T;return t.rows=1/0,t.columns=1/0,t.write=t=>(e(t.toString()),!0),t}X(pi,`createWritable`),class{constructor(e,t){this.task=e,this.wrapper=t}static{X(this,`ListrPromptAdapter`)}state;reportStarted(){if(this.state=this.task.state,this.task.prompt)throw new Fi(`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 mi=class{static{X(this,`Spinner`)}spinner=$r()?[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`]:[`-`,`\\`,`|`,`/`];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)}},hi={icon:{SKIPPED_WITH_COLLAPSE:Q.arrowDown,SKIPPED_WITHOUT_COLLAPSE:Q.warning,OUTPUT:Q.pointerSmall,OUTPUT_WITH_BOTTOMBAR:Q.pointerSmall,PENDING:Q.pointer,COMPLETED:Q.tick,COMPLETED_WITH_FAILED_SUBTASKS:Q.warning,COMPLETED_WITH_SISTER_TASKS_FAILED:Q.squareSmallFilled,RETRY:Q.warning,ROLLING_BACK:Q.warning,ROLLED_BACK:Q.arrowLeft,FAILED:Q.cross,FAILED_WITH_SUBTASKS:Q.pointer,WAITING:Q.squareSmallFilled,PAUSED:Q.squareSmallFilled},color:{SKIPPED_WITH_COLLAPSE:Z.yellow,SKIPPED_WITHOUT_COLLAPSE:Z.yellow,PENDING:Z.yellow,COMPLETED:Z.green,COMPLETED_WITH_FAILED_SUBTASKS:Z.yellow,COMPLETED_WITH_SISTER_TASKS_FAILED:Z.red,RETRY:Z.yellowBright,ROLLING_BACK:Z.redBright,ROLLED_BACK:Z.redBright,FAILED:Z.red,FAILED_WITH_SUBTASKS:Z.red,WAITING:Z.dim,PAUSED:Z.yellowBright}};function gi(e){let t=Math.floor(e/1e3),n=Math.floor(t/60),r;return t===0&&n===0&&(r=`0.${Math.floor(e/100)}s`),t>0&&(r=`${t%60}s`),n>0&&(r=`${n}m${r}`),r}X(gi,`parseTimer`);var _i={condition:!0,field:gi,format:X(()=>Z.dim,`format`)};function vi(){let e=new Date;return String(e.getHours()).padStart(2,`0`)+`:`+String(e.getMinutes()).padStart(2,`0`)+`:`+String(e.getSeconds()).padStart(2,`0`)}X(vi,`parseTimestamp`);var yi=class e{constructor(t,n,r){this.tasks=t,this.options=n,this.events=r,this.options={...e.rendererOptions,...this.options,icon:{...hi.icon,...n?.icon??{}},color:{...hi.color,...n?.color??{}}},this.spinner=this.options.spinner??new mi,this.logger=this.options.logger??new li({useIcons:!0,toStderr:[]}),this.logger.options.icon=this.options.icon,this.logger.options.color=this.options.color}static{X(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:{..._i,format:X(()=>Z.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(){let{createLogUpdate:e}=await import(`./log-update-BTynwCnX.mjs`),{default:t}=await import(`./cli-truncate-D08h2JlU.mjs`),{default:n}=await import(`./wrap-ansi-BT78d4D8.mjs`);this.updater=e(this.logger.process.stdout),this.truncate=t,this.wrap=n,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};let t=[],n=this.renderer(this.tasks),r=this.renderBottomBar(),i=this.renderPrompt();return e.tasks&&n.length>0&&t.push(...n),e.bottomBar&&r.length>0&&(t.length>0&&t.push(``),t.push(...r)),e.prompt&&i.length>0&&(t.length>0&&t.push(``),t.push(...i)),t.join(O)}style(e,t=!1){let n=this.cache.rendererOptions.get(e.id);if(e.isSkipped()){if(t||n.collapseSkips)return this.logger.icon(`SKIPPED_WITH_COLLAPSE`);if(n.collapseSkips===!1)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()&&n.showSubtasks!==!1&&!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,n){if(e.trim()===``)return[];t&&(e=t+` `+e);let r,i=(process.stdout.columns??80)-n*this.options.indentation-2;switch(this.options.formatOutput){case`truncate`:r=e.split(O).map((e,t)=>this.truncate(this.indent(e,t),i));break;case`wrap`:r=this.wrap(e,i,{hard:!0,trim:!1}).split(O).map((e,t)=>this.indent(e,t));break;default:throw new Pi(`Format option for the renderer is wrong.`)}return this.options.removeEmptyLines&&(r=r.filter(Boolean)),r.map(e=>ri(e,n*this.options.indentation))}shouldOutputToOutputBar(e){let t=this.cache.rendererTaskOptions.get(e.id).outputBar;return typeof t==`number`&&t!==0||typeof t==`boolean`&&t!==!1}shouldOutputToBottomBar(e){let t=this.cache.rendererTaskOptions.get(e.id).bottomBar;return typeof t==`number`&&t!==0||typeof t==`boolean`&&t!==!1||!e.hasTitle()}renderer(e,t=0){return e.flatMap(n=>{if(!n.isEnabled())return[];if(this.cache.render.has(n.id))return this.cache.render.get(n.id);this.calculate(n),this.setupBuffer(n);let r=this.cache.rendererOptions.get(n.id),i=this.cache.rendererTaskOptions.get(n.id),a=[];if(n.isPrompt()){if(this.activePrompt&&this.activePrompt!==n.id)throw new Pi(`Only one prompt can be active at the given time, please re-evaluate your task design.`);this.activePrompt||=(n.on(`PROMPT`,e=>{let t=ni(e);t&&(this.prompt=t)}),n.on(`STATE`,e=>{(e===`PROMPT_COMPLETED`||n.hasFinalized()||n.hasReset())&&(this.prompt=null,this.activePrompt=null,n.off(`PROMPT`))}),n.id)}if(n.hasTitle()&&(e.some(e=>e.hasFailed())&&!n.hasFailed()&&n.options.exitOnError!==!1&&!(n.isCompleted()||n.isSkipped())?a.push(...this.format(n.title,this.logger.icon(`COMPLETED_WITH_SISTER_TASKS_FAILED`),t)):n.hasFailed()&&r.collapseErrors?a.push(...this.format(!n.hasSubtasks()&&n.message.error&&r.showErrorMessage?n.message.error:n.title,this.style(n),t)):n.isSkipped()&&r.collapseSkips?a.push(...this.format(this.logger.suffix(n.message.skip&&r.showSkipMessage?n.message.skip:n.title,{field:`SKIPPED`,condition:r.suffixSkips,format:X(()=>Z.dim,`format`)}),this.style(n),t)):n.isRetrying()?a.push(...this.format(this.logger.suffix(n.title,{field:`RETRY:${n.message.retry.count}`,format:X(()=>Z.yellow,`format`),condition:r.suffixRetries}),this.style(n),t)):n.isCompleted()&&n.hasTitle()&&Oi(i.timer?.condition,n.message.duration)?a.push(...this.format(this.logger.suffix(n?.title,{...i.timer,args:[n.message.duration]}),this.style(n),t)):n.isPaused()?a.push(...this.format(this.logger.suffix(n.title,{...r.pausedTimer,args:[n.message.paused-Date.now()]}),this.style(n),t)):a.push(...this.format(n.title,this.style(n),t))),(!n.hasSubtasks()||!r.showSubtasks)&&(n.hasFailed()&&r.collapseErrors===!1&&(r.showErrorMessage||!r.showSubtasks)?a.push(...this.dump(n,t,`FAILED`)):n.isSkipped()&&r.collapseSkips===!1&&(r.showSkipMessage||!r.showSubtasks)&&a.push(...this.dump(n,t,`SKIPPED`))),(n.isPending()||i.persistentOutput)&&a.push(...this.renderOutputBar(n,t)),r.showSubtasks!==!1&&n.hasSubtasks()&&(n.isPending()||n.hasFinalized()&&!n.hasTitle()||n.isCompleted()&&r.collapseSubtasks===!1&&!n.subtasks.some(e=>this.cache.rendererOptions.get(e.id)?.collapseSubtasks===!0)||n.subtasks.some(e=>this.cache.rendererOptions.get(e.id)?.collapseSubtasks===!1)||n.subtasks.some(e=>e.hasFailed())||n.subtasks.some(e=>e.hasRolledBack()))){let e=n.hasTitle()?t+1:t,r=this.renderer(n.subtasks,e);a.push(...r)}return n.hasFinalized()&&(i.persistentOutput||(this.buffer.bottom.delete(n.id),this.buffer.output.delete(n.id))),n.isClosed()&&(this.cache.render.set(n.id,a),this.reset(n)),a})}renderOutputBar(e,t){let n=this.buffer.output.get(e.id);return n?n.all.flatMap(n=>this.dump(e,t,`OUTPUT`,n.entry)):[]}renderBottomBar(){return this.buffer.bottom.size===0?[]: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;let n={...this.options,...t.rendererOptions};this.cache.rendererOptions.set(t.id,n),this.cache.rendererTaskOptions.set(t.id,{...e.rendererTaskOptions,timer:n.timer,...t.rendererTaskOptions})}setupBuffer(e){if(this.buffer.bottom.has(e.id)||this.buffer.output.has(e.id))return;let t=this.cache.rendererTaskOptions.get(e.id);this.shouldOutputToBottomBar(e)&&!this.buffer.bottom.has(e.id)?(this.buffer.bottom.set(e.id,new ui({limit:typeof t.bottomBar==`number`?t.bottomBar:1})),e.on(`OUTPUT`,t=>{let n=this.dump(e,-1,`OUTPUT`,t);this.buffer.bottom.get(e.id).write(n.join(O))}),e.on(`STATE`,t=>{switch(t){case`RETRY`:this.buffer.bottom.delete(e.id);break}})):this.shouldOutputToOutputBar(e)&&!this.buffer.output.has(e.id)&&(this.buffer.output.set(e.id,new ui({limit:typeof t.outputBar==`number`?t.outputBar:1})),e.on(`OUTPUT`,t=>{this.buffer.output.get(e.id).write(t)}),e.on(`STATE`,t=>{switch(t){case`RETRY`:this.buffer.output.delete(e.id);break}}))}reset(e){this.cache.rendererOptions.delete(e.id),this.cache.rendererTaskOptions.delete(e.id),this.buffer.output.delete(e.id)}dump(e,t,n=`OUTPUT`,r){if(!r)switch(n){case`OUTPUT`:r=e.output;break;case`SKIPPED`:r=e.message.skip;break;case`FAILED`:r=e.message.error;break}return e.hasTitle()&&n===`FAILED`&&r===e.title||typeof r!=`string`?[]:(n===`OUTPUT`&&(r=ni(r)),this.format(r,this.style(e,!0),t+1))}indent(e,t){return t>0?ri(e.trimEnd(),this.options.indentation):e.trimEnd()}},bi=class{constructor(e,t){this.tasks=e,this.options=t}static{X(this,`SilentRenderer`)}static nonTTY=!0;static rendererOptions;static rendererTaskOptions;render(){}end(){}},xi=class e{constructor(t,n){this.tasks=t,this.options=n,this.options={...e.rendererOptions,...n,icon:{...si.icon,...n?.icon??{}},color:{...si.color,...n?.color??{}}},this.logger=this.options.logger??new li({useIcons:!0,toStderr:ci}),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{X(this,`SimpleRenderer`)}static nonTTY=!0;static rendererOptions={pausedTimer:{..._i,field:X(e=>`PAUSED:${e}`,`field`),format:X(()=>Z.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)});let t=this.cache.rendererOptions.get(e.id),n=this.cache.rendererTaskOptions.get(e.id);e.on(`SUBTASK`,e=>{this.renderer(e)}),e.on(`STATE`,t=>{if(e.hasTitle())if(t===`STARTED`)this.logger.log(`STARTED`,e.title);else if(t===`COMPLETED`){let t=n?.timer;this.logger.log(`COMPLETED`,e.title,t&&{suffix:{...t,condition:!!e.message?.duration&&t.condition,args:[e.message.duration]}})}else t===`PROMPT`?(this.logger.process.hijack(),e.on(`PROMPT`,e=>{this.logger.process.toStderr(e,!1)})):t===`PROMPT_COMPLETED`&&(e.off(`PROMPT`),this.logger.process.release())}),e.on(`OUTPUT`,e=>{this.logger.log(`OUTPUT`,e)}),e.on(`MESSAGE`,n=>{if(n.error)this.logger.log(`FAILED`,e.title,{suffix:{field:`FAILED: ${n.error}`,format:X(()=>Z.red,`format`)}});else if(n.skip)this.logger.log(`SKIPPED`,e.title,{suffix:{field:`SKIPPED: ${n.skip}`,format:X(()=>Z.yellow,`format`)}});else if(n.rollback)this.logger.log(`ROLLBACK`,e.title,{suffix:{field:`ROLLBACK: ${n.rollback}`,format:X(()=>Z.red,`format`)}});else if(n.retry)this.logger.log(`RETRY`,e.title,{suffix:{field:`RETRY:${n.retry.count}`,format:X(()=>Z.red,`format`)}});else if(n.paused){let r=t?.pausedTimer;this.logger.log(`PAUSED`,e.title,r&&{suffix:{...r,condition:!!n?.paused&&r.condition,args:[n.paused-Date.now()]}})}})})}calculate(t){if(this.cache.rendererOptions.has(t.id)&&this.cache.rendererTaskOptions.has(t.id))return;let n={...this.options,...t.rendererOptions};this.cache.rendererOptions.set(t.id,n),this.cache.rendererTaskOptions.set(t.id,{...e.rendererTaskOptions,timer:n.timer,...t.rendererTaskOptions})}reset(e){this.cache.rendererOptions.delete(e.id),this.cache.rendererTaskOptions.delete(e.id)}},Si=class{constructor(e){this.options=e}static{X(this,`TestRendererSerializer`)}serialize(e,t,n){return JSON.stringify(this.generate(e,t,n))}generate(e,t,n){let r={event:e,data:t};if(typeof this.options?.task!=`boolean`){let e=Object.fromEntries(this.options.task.map(e=>{let t=n[e];return typeof t==`function`?[e,t.call(n)]:[e,t]}));Object.keys(n).length>0&&(r.task=e)}return r}},Ci=class e{constructor(t,n){this.tasks=t,this.options=n,this.options={...e.rendererOptions,...this.options},this.logger=this.options.logger??new li({useIcons:!1}),this.serializer=new Si(this.options)}static{X(this,`TestRenderer`)}static nonTTY=!0;static rendererOptions={subtasks:!0,state:Object.values(Yr),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=>{let n=Object.fromEntries(Object.entries(t).map(([e,t])=>{if(this.options.messages.includes(e))return[e,t]}).filter(Boolean));if(Object.keys(n).length>0){let t=this.serializer.serialize(`MESSAGE`,n,e);this.options.messagesToStderr.some(e=>Object.keys(n).includes(e))?this.logger.toStderr(t):this.logger.toStdout(t)}})})}},wi={default:yi,simple:xi,verbose:class e{constructor(t,n){this.tasks=t,this.options=n,this.options={...e.rendererOptions,...this.options,icon:{...si.icon,...n?.icon??{}},color:{...si.color,...n?.color??{}}},this.logger=this.options.logger??new li({useIcons:!1,toStderr:ci}),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{X(this,`VerboseRenderer`)}static nonTTY=!0;static rendererOptions={logTitleChange:!1,pausedTimer:{..._i,format:X(()=>Z.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)});let t=this.cache.rendererOptions.get(e.id),n=this.cache.rendererTaskOptions.get(e.id);e.on(`SUBTASK`,e=>{this.renderer(e)}),e.on(`STATE`,t=>{if(e.hasTitle()){if(t===`STARTED`)this.logger.log(`STARTED`,e.title);else if(t===`COMPLETED`){let t=n.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=>{let t=ni(e);t&&this.logger.log(`PROMPT`,t)}),this.options?.logTitleChange!==!1&&e.on(`TITLE`,e=>{this.logger.log(`TITLE`,e)}),e.on(`MESSAGE`,n=>{if(n?.error)this.logger.log(`FAILED`,n.error);else if(n?.skip)this.logger.log(`SKIPPED`,n.skip);else if(n?.rollback)this.logger.log(`ROLLBACK`,n.rollback);else if(n?.retry)this.logger.log(`RETRY`,e.title,{suffix:n.retry.count.toString()});else if(n?.paused){let r=t?.pausedTimer;this.logger.log(`PAUSED`,e.title,r&&{suffix:{...r,condition:!!n?.paused&&r.condition,args:[n.paused-Date.now()]}})}})})}calculate(t){if(this.cache.rendererOptions.has(t.id)&&this.cache.rendererTaskOptions.has(t.id))return;let n={...this.options,...t.rendererOptions};this.cache.rendererOptions.set(t.id,n),this.cache.rendererTaskOptions.set(t.id,{...e.rendererTaskOptions,timer:n.timer,...t.rendererTaskOptions})}reset(e){this.cache.rendererOptions.delete(e.id),this.cache.rendererTaskOptions.delete(e.id)}},test:Ci,silent:bi};function Ti(e){return process.stdout.isTTY===!0||e.nonTTY===!0}X(Ti,`isRendererSupported`);function Ei(e){return typeof e==`string`?wi[e]??wi.default:typeof e==`function`?e:wi.default}X(Ei,`getRendererClass`);function Di(e){if(Oi(e?.silentRendererCondition))return{renderer:Ei(`silent`),selection:`SILENT`};let t={renderer:Ei(e.renderer),options:e.rendererOptions,selection:`PRIMARY`};return!Ti(t.renderer)||Oi(e?.fallbackRendererCondition)?{renderer:Ei(e.fallbackRenderer),options:e.fallbackRendererOptions,selection:`SECONDARY`}:t}X(Di,`getRenderer`);function Oi(e,...t){return typeof e==`function`?e(...t):e}X(Oi,`assertFunctionOrSelf`);var ki=(0,Gr.default)({circles:!0});function Ai(e){return ki(e)}X(Ai,`cloneObject`);var ji=class{static{X(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=>{let n=X(()=>t(this.run(e)),`callback`);this.queue.add(n)})}flush(){for(let e of this.queue){if(this.count>=this.concurrency)break;this.queue.delete(e),e()}}run(e){this.count++;let t=e(),n=X(()=>{this.count--,this.flush()},`cleanup`);return t.then(n,()=>{this.queue.clear()}),t}};function Mi(e){return new Promise(t=>{setTimeout(t,e)})}X(Mi,`delay`);var Ni=class extends Error{constructor(e,t,n){super(e.message),this.error=e,this.type=t,this.task=n,this.name=`ListrError`,this.path=n.path,n?.options.collectErrors===`full`&&(this.task=Ai(n),this.ctx=Ai(n.listr.ctx)),this.stack=e?.stack}static{X(this,`ListrError`)}path;ctx},Pi=class extends Error{static{X(this,`ListrRendererError`)}},Fi=class extends Error{static{X(this,`PromptError`)}},Ii=class{constructor(e){this.task=e}static{X(this,`TaskWrapper`)}get title(){return this.task.title}set title(e){e=Array.isArray(e)?e:[e],this.task.title$=oi(e.shift(),...e)}get output(){return this.task.output}set output(e){e=Array.isArray(e)?e:[e],this.task.output$=oi(e.shift(),...e)}set promptOutput(e){this.task.promptOutput$=e}newListr(e,t){let n;return n=typeof e==`function`?e(this):e,new Bi(n,t,this.task)}report(e,t){this.task.options.collectErrors!==!1&&this.task.listr.errors.push(new Ni(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?oi(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 pi(t=>{switch(e){case`PROMPT`:this.promptOutput=t;break;default:this.output=t}})}run(e){return this.task.run(e,this)}},Li=class extends Xr{static{X(this,`ListrTaskEventManager`)}},Ri=class extends Li{constructor(e,t,n,r,i){if(super(),this.listr=e,this.task=t,this.options=n,this.rendererOptions=r,this.rendererTaskOptions=i,t.title){let e=Array.isArray(t?.title)?t.title:[t.title];this.title=oi(e.shift(),...e),this.initialTitle=this.title}this.taskFn=t.task,this.parent=e.parentTask}static{X(this,`Task`)}id=A();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(let e of this.subtasks)e.state===`STARTED`&&(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),ni(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 this.state===`WAITING`&&(this.enabled=await Oi(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 this.state===`STARTED`}isSkipped(){return this.state===`SKIPPED`}isCompleted(){return this.state===`COMPLETED`}hasFailed(){return this.state===`FAILED`}isRollingBack(){return this.state===`ROLLING_BACK`}hasRolledBack(){return this.state===`ROLLED_BACK`}isRetrying(){return this.state===`RETRY`}hasReset(){return this.state===`RETRY`||this.state===`ROLLING_BACK`}isEnabled(){return this.enabled}hasTitle(){return typeof this?.title==`string`}isPrompt(){return this.state===`PROMPT`||this.state===`PROMPT_COMPLETED`}isPaused(){return this.state===`PAUSED`}isClosed(){return this.closed}async pause(e){let t=this.state;this.state$=`PAUSED`,this.message$={paused:Date.now()+e},await Mi(e),this.state$=t,this.message$={paused:null}}async run(e,t){let n=X(t=>(t instanceof Bi?(t.options={...this.options,...t.options},t.rendererClass=Ei(`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(n):Qr(t)?t=new Promise((e,n)=>{t.on(`data`,e=>{this.output$=e.toString()}),t.on(`error`,e=>n(e)),t.on(`end`,()=>e(null))}):Zr(t)&&(t=new Promise((e,n)=>{t.subscribe({next:X(e=>{this.output$=e},`next`),error:n,complete:e})})),t),`handleResult`),r=Date.now();this.state$=`STARTED`;let i=await Oi(this.task?.skip??!1,e);if(i){typeof i==`string`?this.message$={skip:i}:this.hasTitle()?this.message$={skip:this.title}:this.message$={skip:`Skipped task without a title.`},this.state$=`SKIPPED`;return}try{let i=typeof this.task?.retry==`number`&&this.task.retry>0?this.task.retry+1:typeof this.task?.retry==`object`&&this.task.retry.tries>0?this.task.retry.tries+1:1,a=typeof this.task.retry==`object`&&this.task.retry.delay;for(let r=1;r<=i;r++)try{await n(this.taskFn(e,t));break}catch(e){if(r!==i)this.retry={count:r,error:e},this.message$={retry:this.retry},this.title$=this.initialTitle,this.output=void 0,t.report(e,`WILL_RETRY`),this.state$=`RETRY`,a&&await this.pause(a);else throw e}(this.isStarted()||this.isRetrying())&&(this.message$={duration:Date.now()-r},this.state$=`COMPLETED`)}catch(n){if(this.prompt instanceof Fi&&(n=this.prompt),this.task?.rollback){t.report(n,`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(this.listr.options?.exitAfterRollback!==!1)throw this.close(),n}else{if(this.state$=`FAILED`,this.listr.options.exitOnError!==!1&&await Oi(this.task?.exitOnError,e)!==!1)throw t.report(n,`HAS_FAILED`),this.close(),n;this.hasSubtasks()||t.report(n,`HAS_FAILED_WITHOUT_ERROR`)}}finally{this.close()}}close(){this.emit(`CLOSED`),this.listr.events.emit(`SHOUD_REFRESH_RENDER`),this.complete()}},zi=class extends Xr{static{X(this,`ListrEventManager`)}},Bi=class{constructor(e,t,n){this.task=e,this.options=t,this.parentTask=n,this.options={concurrent:!1,renderer:`default`,fallbackRenderer:`simple`,exitOnError:!0,exitAfterRollback:!0,collectErrors:!1,registerSignalListeners:!0,...this.parentTask?.options??{},...t},this.options.concurrent===!0?this.options.concurrent=1/0:typeof this.options.concurrent!=`number`&&(this.options.concurrent=1),this.concurrency=new ji({concurrency:this.options.concurrent}),n&&(this.path=[...n.listr.path,n.title],this.errors=n.listr.errors),this.parentTask?.listr.events instanceof zi?this.events=this.parentTask.listr.events:this.events=new zi,(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`);let r=Di({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=r.renderer,this.rendererClassOptions=r.options,this.rendererSelection=r.selection,this.add(e??[]),this.options.registerSignalListeners&&(this.boundSignalHandler=this.signalHandler.bind(this),process.once(`SIGINT`,this.boundSignalHandler).setMaxListeners(0))}static{X(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||=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(this.options.exitOnError!==!1)throw this.renderer.end(e),this.removeSignalHandler(),e}return this.ctx}generate(e){return e=Array.isArray(e)?e:[e],e.map(e=>{let t;return this.rendererSelection===`PRIMARY`?t=e.rendererOptions:this.rendererSelection===`SECONDARY`&&(t=e.fallbackRendererOptions),new Ri(this,e,this.options,this.rendererClassOptions,t)})}async runTask(e){if(await e.check(this.ctx))return new Ii(e).run(this.ctx)}signalHandler(){this.tasks?.forEach(async e=>{e.isPending()&&(e.state$=`FAILED`)}),this.isRoot()&&(this.renderer?.end(Error(`Interrupted.`)),process.exit(127))}removeSignalHandler(){this.boundSignalHandler&&process.removeListener(`SIGINT`,this.boundSignalHandler)}};const Vi=J.blue(Q.arrowRight),Hi=J.redBright(Q.cross),Ui=J.yellow(Q.warning),Wi=(e,t,n)=>`${J.redBright(`${Hi} Validation Error:`)}
12
12
 
13
13
  Invalid value for '${J.bold(e)}': ${J.bold(u(n))}
14
14
 
@@ -0,0 +1,116 @@
1
+ import{i as e,t}from"./chunk-tuRmWmEN.mjs";import n from"node:util";var r=t(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),i=t(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),a=t(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:o}=r(),s=i();e=t.exports={};let c=e.re=[],l=e.safeRe=[],u=e.src=[],d=e.safeSrc=[],f=e.t={},p=0,m=`[a-zA-Z0-9-]`,h=[[`\\s`,1],[`\\d`,o],[m,a]],g=e=>{for(let[t,n]of h)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},_=(e,t,n)=>{let r=g(t),i=p++;s(e,i,t),f[e]=i,u[i]=t,d[i]=r,c[i]=new RegExp(t,n?`g`:void 0),l[i]=new RegExp(r,n?`g`:void 0)};_(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),_(`NUMERICIDENTIFIERLOOSE`,`\\d+`),_(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${m}*`),_(`MAINVERSION`,`(${u[f.NUMERICIDENTIFIER]})\\.(${u[f.NUMERICIDENTIFIER]})\\.(${u[f.NUMERICIDENTIFIER]})`),_(`MAINVERSIONLOOSE`,`(${u[f.NUMERICIDENTIFIERLOOSE]})\\.(${u[f.NUMERICIDENTIFIERLOOSE]})\\.(${u[f.NUMERICIDENTIFIERLOOSE]})`),_(`PRERELEASEIDENTIFIER`,`(?:${u[f.NONNUMERICIDENTIFIER]}|${u[f.NUMERICIDENTIFIER]})`),_(`PRERELEASEIDENTIFIERLOOSE`,`(?:${u[f.NONNUMERICIDENTIFIER]}|${u[f.NUMERICIDENTIFIERLOOSE]})`),_(`PRERELEASE`,`(?:-(${u[f.PRERELEASEIDENTIFIER]}(?:\\.${u[f.PRERELEASEIDENTIFIER]})*))`),_(`PRERELEASELOOSE`,`(?:-?(${u[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[f.PRERELEASEIDENTIFIERLOOSE]})*))`),_(`BUILDIDENTIFIER`,`${m}+`),_(`BUILD`,`(?:\\+(${u[f.BUILDIDENTIFIER]}(?:\\.${u[f.BUILDIDENTIFIER]})*))`),_(`FULLPLAIN`,`v?${u[f.MAINVERSION]}${u[f.PRERELEASE]}?${u[f.BUILD]}?`),_(`FULL`,`^${u[f.FULLPLAIN]}$`),_(`LOOSEPLAIN`,`[v=\\s]*${u[f.MAINVERSIONLOOSE]}${u[f.PRERELEASELOOSE]}?${u[f.BUILD]}?`),_(`LOOSE`,`^${u[f.LOOSEPLAIN]}$`),_(`GTLT`,`((?:<|>)?=?)`),_(`XRANGEIDENTIFIERLOOSE`,`${u[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),_(`XRANGEIDENTIFIER`,`${u[f.NUMERICIDENTIFIER]}|x|X|\\*`),_(`XRANGEPLAIN`,`[v=\\s]*(${u[f.XRANGEIDENTIFIER]})(?:\\.(${u[f.XRANGEIDENTIFIER]})(?:\\.(${u[f.XRANGEIDENTIFIER]})(?:${u[f.PRERELEASE]})?${u[f.BUILD]}?)?)?`),_(`XRANGEPLAINLOOSE`,`[v=\\s]*(${u[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[f.XRANGEIDENTIFIERLOOSE]})(?:${u[f.PRERELEASELOOSE]})?${u[f.BUILD]}?)?)?`),_(`XRANGE`,`^${u[f.GTLT]}\\s*${u[f.XRANGEPLAIN]}$`),_(`XRANGELOOSE`,`^${u[f.GTLT]}\\s*${u[f.XRANGEPLAINLOOSE]}$`),_(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),_(`COERCE`,`${u[f.COERCEPLAIN]}(?:$|[^\\d])`),_(`COERCEFULL`,u[f.COERCEPLAIN]+`(?:${u[f.PRERELEASE]})?(?:${u[f.BUILD]})?(?:$|[^\\d])`),_(`COERCERTL`,u[f.COERCE],!0),_(`COERCERTLFULL`,u[f.COERCEFULL],!0),_(`LONETILDE`,`(?:~>?)`),_(`TILDETRIM`,`(\\s*)${u[f.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,_(`TILDE`,`^${u[f.LONETILDE]}${u[f.XRANGEPLAIN]}$`),_(`TILDELOOSE`,`^${u[f.LONETILDE]}${u[f.XRANGEPLAINLOOSE]}$`),_(`LONECARET`,`(?:\\^)`),_(`CARETTRIM`,`(\\s*)${u[f.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,_(`CARET`,`^${u[f.LONECARET]}${u[f.XRANGEPLAIN]}$`),_(`CARETLOOSE`,`^${u[f.LONECARET]}${u[f.XRANGEPLAINLOOSE]}$`),_(`COMPARATORLOOSE`,`^${u[f.GTLT]}\\s*(${u[f.LOOSEPLAIN]})$|^$`),_(`COMPARATOR`,`^${u[f.GTLT]}\\s*(${u[f.FULLPLAIN]})$|^$`),_(`COMPARATORTRIM`,`(\\s*)${u[f.GTLT]}\\s*(${u[f.LOOSEPLAIN]}|${u[f.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,_(`HYPHENRANGE`,`^\\s*(${u[f.XRANGEPLAIN]})\\s+-\\s+(${u[f.XRANGEPLAIN]})\\s*$`),_(`HYPHENRANGELOOSE`,`^\\s*(${u[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[f.XRANGEPLAINLOOSE]})\\s*$`),_(`STAR`,`(<|>)?=?\\s*\\*`),_(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),_(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),o=t(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),s=t(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),c=t(((e,t)=>{let n=i(),{MAX_LENGTH:c,MAX_SAFE_INTEGER:l}=r(),{safeRe:u,t:d}=a(),f=o(),{compareIdentifiers:p}=s();t.exports=class e{constructor(t,r){if(r=f(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>c)throw TypeError(`version is longer than ${c} characters`);n(`SemVer`,t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let i=t.trim().match(r.loose?u[d.LOOSE]:u[d.FULL]);if(!i)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>l||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>l||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>l||this.patch<0)throw TypeError(`Invalid patch version`);i[4]?this.prerelease=i[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<l)return t}return e}):this.prerelease=[],this.build=i[5]?i[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(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return p(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return p(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?u[d.PRERELEASELOOSE]:u[d.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),p(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),l=t(((e,t)=>{let n=c();t.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}}})),u=t(((e,t)=>{let n=l();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),d=t(((e,t)=>{let n=l();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),f=t(((e,t)=>{let n=c();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),p=t(((e,t)=>{let n=l();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),m=t(((e,t)=>{let n=c();t.exports=(e,t)=>new n(e,t).major})),h=t(((e,t)=>{let n=c();t.exports=(e,t)=>new n(e,t).minor})),g=t(((e,t)=>{let n=c();t.exports=(e,t)=>new n(e,t).patch})),_=t(((e,t)=>{let n=l();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),v=t(((e,t)=>{let n=c();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),y=t(((e,t)=>{let n=v();t.exports=(e,t,r)=>n(t,e,r)})),b=t(((e,t)=>{let n=v();t.exports=(e,t)=>n(e,t,!0)})),x=t(((e,t)=>{let n=c();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),S=t(((e,t)=>{let n=x();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),C=t(((e,t)=>{let n=x();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),w=t(((e,t)=>{let n=v();t.exports=(e,t,r)=>n(e,t,r)>0})),T=t(((e,t)=>{let n=v();t.exports=(e,t,r)=>n(e,t,r)<0})),E=t(((e,t)=>{let n=v();t.exports=(e,t,r)=>n(e,t,r)===0})),D=t(((e,t)=>{let n=v();t.exports=(e,t,r)=>n(e,t,r)!==0})),O=t(((e,t)=>{let n=v();t.exports=(e,t,r)=>n(e,t,r)>=0})),k=t(((e,t)=>{let n=v();t.exports=(e,t,r)=>n(e,t,r)<=0})),A=t(((e,t)=>{let n=E(),r=D(),i=w(),a=O(),o=T(),s=k();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),j=t(((e,t)=>{let n=c(),r=l(),{safeRe:i,t:o}=a();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let a=null;if(!t.rtl)a=e.match(t.includePrerelease?i[o.COERCEFULL]:i[o.COERCE]);else{let n=t.includePrerelease?i[o.COERCERTLFULL]:i[o.COERCERTL],r;for(;(r=n.exec(e))&&(!a||a.index+a[0].length!==e.length);)(!a||r.index+r[0].length!==a.index+a[0].length)&&(a=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(a===null)return null;let s=a[2];return r(`${s}.${a[3]||`0`}.${a[4]||`0`}${t.includePrerelease&&a[5]?`-${a[5]}`:``}${t.includePrerelease&&a[6]?`+${a[6]}`:``}`,t)}})),M=t(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),N=t(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=l(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof u)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!b(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&x(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let 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){let t=((this.options.includePrerelease&&v)|(this.options.loose&&y))+`:`+e,n=s.get(t);if(n)return n;let r=this.options.loose,i=r?p[m.HYPHENRANGELOOSE]:p[m.HYPHENRANGE];e=e.replace(i,F(this.options.includePrerelease)),d(`hyphen replace`,e),e=e.replace(p[m.COMPARATORTRIM],h),d(`comparator trim`,e),e=e.replace(p[m.TILDETRIM],g),d(`tilde trim`,e),e=e.replace(p[m.CARETTRIM],_),d(`caret trim`,e);let a=e.split(` `).map(e=>C(e,this.options)).join(` `).split(/\s+/).map(e=>N(e,this.options));r&&(a=a.filter(e=>(d(`loose invalid filter`,e,this.options),!!e.match(p[m.COMPARATORLOOSE])))),d(`range list`,a);let o=new Map,c=a.map(e=>new u(e,this.options));for(let e of c){if(b(e))return[e];o.set(e.value,e)}o.size>1&&o.has(``)&&o.delete(``);let l=[...o.values()];return s.set(t,l),l}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>S(e,n)&&t.set.some(t=>S(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new f(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(I(this.set[t],e,this.options))return!0;return!1}};let s=new(M()),l=o(),u=P(),d=i(),f=c(),{safeRe:p,t:m,comparatorTrimReplace:h,tildeTrimReplace:g,caretTrimReplace:_}=a(),{FLAG_INCLUDE_PRERELEASE:v,FLAG_LOOSE:y}=r(),b=e=>e.value===`<0.0.0-0`,x=e=>e.value===``,S=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},C=(e,t)=>(e=e.replace(p[m.BUILD],``),d(`comp`,e,t),e=D(e,t),d(`caret`,e),e=T(e,t),d(`tildes`,e),e=k(e,t),d(`xrange`,e),e=j(e,t),d(`stars`,e),e),w=e=>!e||e.toLowerCase()===`x`||e===`*`,T=(e,t)=>e.trim().split(/\s+/).map(e=>E(e,t)).join(` `),E=(e,t)=>{let n=t.loose?p[m.TILDELOOSE]:p[m.TILDE];return e.replace(n,(t,n,r,i,a)=>{d(`tilde`,e,t,n,r,i,a);let o;return w(n)?o=``:w(r)?o=`>=${n}.0.0 <${+n+1}.0.0-0`:w(i)?o=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(d(`replaceTilde pr`,a),o=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):o=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,d(`tilde return`,o),o})},D=(e,t)=>e.trim().split(/\s+/).map(e=>O(e,t)).join(` `),O=(e,t)=>{d(`caret`,e,t);let n=t.loose?p[m.CARETLOOSE]:p[m.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,o)=>{d(`caret`,e,t,n,i,a,o);let s;return w(n)?s=``:w(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:w(a)?s=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:o?(d(`replaceCaret pr`,o),s=n===`0`?i===`0`?`>=${n}.${i}.${a}-${o} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${o} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${o} <${+n+1}.0.0-0`):(d(`no pr`),s=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),d(`caret return`,s),s})},k=(e,t)=>(d(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>A(e,t)).join(` `)),A=(e,t)=>{e=e.trim();let n=t.loose?p[m.XRANGELOOSE]:p[m.XRANGE];return e.replace(n,(n,r,i,a,o,s)=>{d(`xRange`,e,n,r,i,a,o,s);let c=w(i),l=c||w(a),u=l||w(o),f=u;return r===`=`&&f&&(r=``),s=t.includePrerelease?`-0`:``,c?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(l&&(a=0),o=0,r===`>`?(r=`>=`,l?(i=+i+1,a=0,o=0):(a=+a+1,o=0)):r===`<=`&&(r=`<`,l?i=+i+1:a=+a+1),r===`<`&&(s=`-0`),n=`${r+i}.${a}.${o}${s}`):l?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:u&&(n=`>=${i}.${a}.0${s} <${i}.${+a+1}.0-0`),d(`xRange return`,n),n})},j=(e,t)=>(d(`replaceStars`,e,t),e.trim().replace(p[m.STAR],``)),N=(e,t)=>(d(`replaceGTE0`,e,t),e.trim().replace(p[t.includePrerelease?m.GTE0PRE:m.GTE0],``)),F=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=w(r)?``:w(i)?`>=${r}.0.0${e?`-0`:``}`:w(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=w(l)?``:w(u)?`<${+l+1}.0.0-0`:w(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),I=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(d(e[n].semver),e[n].semver!==u.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),P=t(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),d(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,d(`comp`,this)}parse(e){let t=this.options.loose?s[l.COMPARATORLOOSE]:s[l.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new f(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(d(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new f(e,this.options)}catch{return!1}return u(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new p(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new p(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||u(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||u(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=o(),{safeRe:s,t:l}=a(),u=A(),d=i(),f=c(),p=N()})),F=t(((e,t)=>{let n=N();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),I=t(((e,t)=>{let n=N();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),L=t(((e,t)=>{let n=c(),r=N();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),R=t(((e,t)=>{let n=c(),r=N();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),ee=t(((e,t)=>{let n=c(),r=N(),i=w();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),z=t(((e,t)=>{let n=N();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),B=t(((e,t)=>{let n=c(),r=P(),{ANY:i}=r,a=N(),o=F(),s=w(),l=T(),u=k(),d=O();t.exports=(e,t,c,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(c){case`>`:p=s,m=u,h=l,g=`>`,_=`>=`;break;case`<`:p=l,m=d,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),te=t(((e,t)=>{let n=B();t.exports=(e,t,r)=>n(e,t,`>`,r)})),ne=t(((e,t)=>{let n=B();t.exports=(e,t,r)=>n(e,t,`<`,r)})),re=t(((e,t)=>{let n=N();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),ie=t(((e,t)=>{let n=F(),r=v();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),ae=t(((e,t)=>{let n=N(),r=P(),{ANY:i}=r,a=F(),o=v(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){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(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!a(s.semver,String(e),n))return!1}if(u){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(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!a(u.semver,String(e),n))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),oe=e(t(((e,t)=>{let n=a(),i=r(),o=c(),M=s();t.exports={parse:l(),valid:u(),clean:d(),inc:f(),diff:p(),major:m(),minor:h(),patch:g(),prerelease:_(),compare:v(),rcompare:y(),compareLoose:b(),compareBuild:x(),sort:S(),rsort:C(),gt:w(),lt:T(),eq:E(),neq:D(),gte:O(),lte:k(),cmp:A(),coerce:j(),Comparator:P(),Range:N(),satisfies:F(),toComparators:I(),maxSatisfying:L(),minSatisfying:R(),minVersion:ee(),validRange:z(),outside:B(),gtr:te(),ltr:ne(),intersects:re(),simplifyRange:ie(),subset:ae(),SemVer:o,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:M.compareIdentifiers,rcompareIdentifiers:M.rcompareIdentifiers}}))(),1);const se=e=>{let t=e.split(`
2
+ `).shift();if(typeof t!=`string`)return!1;let n=t.replace(/^chore(\([^)]+\))?:/,``).trim();return oe.default.valid(n)!==null},V=e=>e.test.bind(e),ce=[V(/^((Merge pull request)|(Merge (.*?) into (.*?)|(Merge branch (.*?)))(?:\r?\n)*$)/m),V(/^(Merge tag (.*?))(?:\r?\n)*$/m),V(/^(R|r)evert (.*)/),V(/^(R|r)eapply (.*)/),V(/^(amend|fixup|squash)!/),se,V(/^(Merged (.*?)(in|into) (.*)|Merged PR (.*): (.*))/),V(/^Merge remote-tracking branch(\s*)(.*)/),V(/^Automatic merge(.*)/),V(/^Auto-merged (.*?) into (.*)/)];function le(e=``,t={}){let n=t.ignores===void 0?[]:t.ignores;if(!Array.isArray(n))throw Error(`ignores must be of type array, received ${n} of type ${typeof n}`);let r=n.filter(e=>typeof e!=`function`);if(r.length>0)throw Error(`ignores must be array of type function, received items of type: ${r.map(e=>typeof e).join(`, `)}`);return[...t.defaults===!1?[]:ce,...n].some(t=>t(e))}const ue=/(?!.*)/;function de(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function H(e,t){return e.map(e=>de(e.trim())).filter(Boolean).join(t)}function U(e,t){if(!e)return ue;let n=H(e,`|`);return t?t(n):RegExp(`^[\\s|*]*(${n})[:\\s]+(.*)`,`i`)}function W(e,t){if(!e)return ue;let n=t?`g`:`gi`;return RegExp(`(?:.*?)??\\s*([\\w-\\.\\/]*?)??(${H(e,`|`)})([\\w-]+)(?=\\s|$|[,;)\\]])`,n)}function G(e){if(!e)return/()(.+)/gi;let t=H(e,`|`);return RegExp(`(${t})(?:\\s+(.*?))(?=(?:${t})|$)`,`gi`)}function K(e={}){return{notes:U(e.noteKeywords,e.notesPattern),referenceParts:W(e.issuePrefixes,e.issuePrefixesCaseSensitive),references:G(e.referenceActions),mentions:/@([\w-]+)/g,url:/\b(?:https?):\/\/(?:www\.)?([-a-zA-Z0-9@:%_+.~#?&//=])+\b/}}function q(e){let t=e.match(/[^\r\n]/);if(typeof t?.index!=`number`)return``;let n=t.index,r=e.length-1;for(;e[r]===`\r`||e[r]===`
3
+ `;)r--;return e.substring(n,r+1)}function J(e,t){return e?`${e}\n${t||``}`:t||``}function fe(e){return e?t=>!t.startsWith(e):()=>!0}function Y(e,t){let n=e.indexOf(`${t} ------------------------ >8 ------------------------`);return n===-1?e:e.slice(0,n)}function pe(e){return!e.match(/^\s*gpg:/)}function X(e,t,n){let{groups:r}=t;for(let i=0,a=n.length,o;i<a;i++)o=n[i],e[o]=(r?r[o]:t[i+1])||null;return e}const Z={noteKeywords:[`BREAKING CHANGE`,`BREAKING-CHANGE`],issuePrefixes:[`#`],referenceActions:[`close`,`closes`,`closed`,`fix`,`fixes`,`fixed`,`resolve`,`resolves`,`resolved`],headerPattern:/^(\w*)(?:\(([\w$@.\-*/ ]*)\))?: (.*)$/,headerCorrespondence:[`type`,`scope`,`subject`],revertPattern:/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\.?/,revertCorrespondence:[`header`,`hash`],fieldPattern:/^-(.*?)-$/};function me(e={}){return{merge:null,revert:null,header:null,body:null,footer:null,notes:[],mentions:[],references:[],...e}}var he=class{options;regexes;lines=[];lineIndex=0;commit=me();constructor(e={}){this.options={...Z,...e},this.regexes=K(this.options)}currentLine(){return this.lines[this.lineIndex]}nextLine(){return this.lines[this.lineIndex++]}isLineAvailable(){return this.lineIndex<this.lines.length}parseReference(e,t){let{regexes:n}=this;if(n.url.test(e))return null;let r=n.referenceParts.exec(e);if(!r)return null;let[i,a=null,o,s]=r,c=null;if(a){let e=a.indexOf(`/`);e!==-1&&(c=a.slice(0,e),a=a.slice(e+1))}return{raw:i,action:t,owner:c,repository:a,prefix:o,issue:s}}parseReferences(e){let{regexes:t}=this,n=e.match(t.references)?t.references:/()(.+)/gi,r=[],i,a,o,s;for(;i=n.exec(e),i;)for(a=i[1]||null,o=i[2]||``;s=this.parseReference(o,a),s;)r.push(s);return r}skipEmptyLines(){let e=this.currentLine();for(;e!==void 0&&!e.trim();)this.nextLine(),e=this.currentLine()}parseMerge(){let{commit:e,options:t}=this,n=t.mergeCorrespondence||[],r=this.currentLine(),i=r&&t.mergePattern?r.match(t.mergePattern):null;return i?(this.nextLine(),e.merge=i[0]||null,X(e,i,n),!0):!1}parseHeader(e){e&&this.skipEmptyLines();let{commit:t,options:n}=this,r=n.headerCorrespondence||[],i=t.header??this.nextLine(),a=null;i&&(n.breakingHeaderPattern&&(a=i.match(n.breakingHeaderPattern)),!a&&n.headerPattern&&(a=i.match(n.headerPattern))),i&&(t.header=i),a&&X(t,a,r)}parseMeta(){let{options:e,commit:t}=this;if(!e.fieldPattern||!this.isLineAvailable())return!1;let n,r=null,i=!1;for(;this.isLineAvailable();){if(n=this.currentLine().match(e.fieldPattern),n){r=n[1]||null,this.nextLine();continue}if(r)i=!0,t[r]=J(t[r],this.currentLine()),this.nextLine();else break}return i}parseNotes(){let{regexes:e,commit:t}=this;if(!this.isLineAvailable())return!1;let n=this.currentLine().match(e.notes),r=[];if(n){let e={title:n[1],text:n[2]};for(t.notes.push(e),t.footer=J(t.footer,this.currentLine()),this.nextLine();this.isLineAvailable();){if(this.parseMeta()||this.parseNotes())return!0;if(r=this.parseReferences(this.currentLine()),r.length?t.references.push(...r):e.text=J(e.text,this.currentLine()),t.footer=J(t.footer,this.currentLine()),this.nextLine(),r.length)break}return!0}return!1}parseBodyAndFooter(e){let{commit:t}=this;if(!this.isLineAvailable())return e;let n=this.parseReferences(this.currentLine()),r=!n.length&&e;return r?t.body=J(t.body,this.currentLine()):(t.references.push(...n),t.footer=J(t.footer,this.currentLine())),this.nextLine(),r}parseBreakingHeader(){let{commit:e,options:t}=this;if(!t.breakingHeaderPattern||e.notes.length||!e.header)return;let n=e.header.match(t.breakingHeaderPattern);n&&e.notes.push({title:`BREAKING CHANGE`,text:n[3]})}parseMentions(e){let{commit:t,regexes:n}=this,r;for(;r=n.mentions.exec(e),r;)t.mentions.push(r[1])}parseRevert(e){let{commit:t,options:n}=this,r=n.revertCorrespondence||[],i=n.revertPattern?e.match(n.revertPattern):null;i&&(t.revert=X({},i,r))}cleanupCommit(){let{commit:e}=this;e.body&&=q(e.body),e.footer&&=q(e.footer),e.notes.forEach(e=>{e.text=q(e.text)});let t=new Set;e.references=e.references.filter(e=>{let n=`${e.action} ${e.raw}`.toLocaleLowerCase(),r=!t.has(n);return r&&t.add(n),r})}parse(e){if(!e.trim())throw TypeError(`Expected a raw commit`);let{commentChar:t}=this.options,n=fe(t),r=q(e).split(/\r?\n/),i=t?Y(r,t).filter(e=>n(e)&&pe(e)):r.filter(e=>pe(e)),a=me();this.lines=i,this.lineIndex=0,this.commit=a;let o=this.parseMerge();this.parseHeader(o),a.header&&(a.references=this.parseReferences(a.header));let s=!0;for(;this.isLineAvailable();)this.parseMeta(),this.parseNotes()&&(s=!1),this.parseBodyAndFooter(s)||(s=!1);return this.parseBreakingHeader(),this.parseMentions(e),this.parseRevert(e),this.cleanupCommit(),a}};function ge(){return{headerPattern:/^(\w*)(?:\((.*)\))?: (.*)$/,headerCorrespondence:[`type`,`scope`,`subject`],noteKeywords:[`BREAKING CHANGE`],revertPattern:/^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w{7,40})\b/i,revertCorrespondence:[`header`,`hash`]}}var _e=t(((e,t)=>{t.exports=function(e){return Array.isArray(e)?e:[e]}})),ve=t(((e,t)=>{t.exports=e=>{let t=typeof e;return e!==null&&(t===`object`||t===`function`)}})),ye=t(((e,t)=>{let n=ve(),r=[`__proto__`,`prototype`,`constructor`],i=e=>!e.some(e=>r.includes(e));function a(e){let t=e.split(`.`),n=[];for(let e=0;e<t.length;e++){let r=t[e];for(;r[r.length-1]===`\\`&&t[e+1]!==void 0;)r=r.slice(0,-1)+`.`,r+=t[++e];n.push(r)}return i(n)?n:[]}t.exports={get(e,t,r){if(!n(e)||typeof t!=`string`)return r===void 0?e:r;let i=a(t);if(i.length!==0){for(let t=0;t<i.length;t++){if(!Object.prototype.propertyIsEnumerable.call(e,i[t]))return r;if(e=e[i[t]],e==null){if(t!==i.length-1)return r;break}}return e}},set(e,t,r){if(!n(e)||typeof t!=`string`)return e;let i=e,o=a(t);for(let t=0;t<o.length;t++){let i=o[t];n(e[i])||(e[i]={}),t===o.length-1&&(e[i]=r),e=e[i]}return i},delete(e,t){if(!n(e)||typeof t!=`string`)return!1;let r=a(t);for(let t=0;t<r.length;t++){let i=r[t];if(t===r.length-1)return delete e[i],!0;if(e=e[i],!n(e))return!1}},has(e,t){if(!n(e)||typeof t!=`string`)return!1;let r=a(t);if(r.length===0)return!1;for(let t=0;t<r.length;t++)if(n(e)){if(!(r[t]in e))return!1;e=e[r[t]]}else return!1;return!0}}})),be=e(t(((e,t)=>{var n=_e(),r=ye().get;function i(e){return function(t,i){var a=0;return n(e).some(function(e){var n,o;if(typeof e==`function`?(n=e(t),o=e(i)):typeof e==`string`?(n=r(t,e),o=r(i,e)):(n=t,o=i),n===o){a=0;return}return typeof n==`string`&&typeof o==`string`?(a=n.localeCompare(o),a!==0):(a=n<o?-1:1,!0)}),a}}t.exports=i}))(),1);function xe(){return{mainTemplate:`{{> header}}
4
+
5
+ {{#each commitGroups}}
6
+
7
+ {{#if title}}
8
+ ### {{title}}
9
+
10
+ {{/if}}
11
+ {{#each commits}}
12
+ {{> commit root=@root}}
13
+ {{/each}}
14
+
15
+ {{/each}}
16
+ {{> footer}}
17
+ `,headerPartial:`{{#if isPatch~}}
18
+ ##
19
+ {{~else~}}
20
+ #
21
+ {{~/if}} {{#if @root.linkCompare~}}
22
+ [{{version}}](
23
+ {{~#if @root.repository~}}
24
+ {{~#if @root.host}}
25
+ {{~@root.host}}/
26
+ {{~/if}}
27
+ {{~#if @root.owner}}
28
+ {{~@root.owner}}/
29
+ {{~/if}}
30
+ {{~@root.repository}}
31
+ {{~else}}
32
+ {{~@root.repoUrl}}
33
+ {{~/if~}}
34
+ /compare/{{previousTag}}...{{currentTag}})
35
+ {{~else}}
36
+ {{~version}}
37
+ {{~/if}}
38
+ {{~#if title}} "{{title}}"
39
+ {{~/if}}
40
+ {{~#if date}} ({{date}})
41
+ {{/if}}
42
+ `,commitPartial:`*{{#if scope}} **{{scope}}:**
43
+ {{~/if}} {{#if subject}}
44
+ {{~subject}}
45
+ {{~else}}
46
+ {{~header}}
47
+ {{~/if}}
48
+
49
+ {{~!-- commit link --}} {{#if @root.linkReferences~}}
50
+ ([{{shortHash}}](
51
+ {{~#if @root.repository}}
52
+ {{~#if @root.host}}
53
+ {{~@root.host}}/
54
+ {{~/if}}
55
+ {{~#if @root.owner}}
56
+ {{~@root.owner}}/
57
+ {{~/if}}
58
+ {{~@root.repository}}
59
+ {{~else}}
60
+ {{~@root.repoUrl}}
61
+ {{~/if}}/
62
+ {{~@root.commit}}/{{hash}}))
63
+ {{~else}}
64
+ {{~shortHash}}
65
+ {{~/if}}
66
+
67
+ {{~!-- commit references --}}
68
+ {{~#if references~}}
69
+ , closes
70
+ {{~#each references}} {{#if @root.linkReferences~}}
71
+ [
72
+ {{~#if this.owner}}
73
+ {{~this.owner}}/
74
+ {{~/if}}
75
+ {{~this.repository}}#{{this.issue}}](
76
+ {{~#if @root.repository}}
77
+ {{~#if @root.host}}
78
+ {{~@root.host}}/
79
+ {{~/if}}
80
+ {{~#if this.repository}}
81
+ {{~#if this.owner}}
82
+ {{~this.owner}}/
83
+ {{~/if}}
84
+ {{~this.repository}}
85
+ {{~else}}
86
+ {{~#if @root.owner}}
87
+ {{~@root.owner}}/
88
+ {{~/if}}
89
+ {{~@root.repository}}
90
+ {{~/if}}
91
+ {{~else}}
92
+ {{~@root.repoUrl}}
93
+ {{~/if}}/
94
+ {{~@root.issue}}/{{this.issue}})
95
+ {{~else}}
96
+ {{~#if this.owner}}
97
+ {{~this.owner}}/
98
+ {{~/if}}
99
+ {{~this.repository}}#{{this.issue}}
100
+ {{~/if}}{{/each}}
101
+ {{~/if}}
102
+
103
+ `,footerPartial:`{{#if noteGroups}}
104
+ {{#each noteGroups}}
105
+
106
+ ### {{title}}
107
+
108
+ {{#each notes}}
109
+ * {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}}
110
+ {{/each}}
111
+ {{/each}}
112
+
113
+ {{/if}}
114
+ `,transform:(e,t)=>{let n=!0,r=e.notes.map(e=>(n=!1,{...e,title:`BREAKING CHANGES`})),{type:i}=e;if(e.type===`feat`)i=`Features`;else if(e.type===`fix`)i=`Bug Fixes`;else if(e.type===`perf`)i=`Performance Improvements`;else if(e.type===`revert`||e.revert)i=`Reverts`;else if(n)return;else e.type===`docs`?i=`Documentation`:e.type===`style`?i=`Styles`:e.type===`refactor`?i=`Code Refactoring`:e.type===`test`?i=`Tests`:e.type===`build`?i=`Build System`:e.type===`ci`&&(i=`Continuous Integration`);let a=e.scope===`*`?``:e.scope,o=typeof e.hash==`string`?e.hash.substring(0,7):e.shortHash,s=[],{subject:c}=e;if(typeof c==`string`){let e=t.repository?`${t.host}/${t.owner}/${t.repository}`:t.repoUrl;e&&(e=`${e}/issues/`,c=c.replace(/#([0-9]+)/g,(t,n)=>(s.push(n),`[#${n}](${e}${n})`))),t.host&&(c=c.replace(/\B@([a-z0-9](?:-?[a-z0-9/]){0,38})/g,(e,n)=>n.includes(`/`)?`@${n}`:`[@${n}](${t.host}/${n})`))}let l=e.references.filter(e=>!s.includes(e.issue));return{notes:r,type:i,scope:a,shortHash:o,subject:c,references:l}},groupBy:`type`,commitGroupsSort:`title`,commitsSort:[`scope`,`subject`],noteGroupsSort:`title`,notesSort:be.default}}function Q(e){let t=2,n=0,r=0;return e.forEach(e=>{e.notes.length>0?(n+=e.notes.length,t=0):e.type===`feat`&&(r+=1,t===2&&(t=1))}),{level:t,reason:n===1?`There is ${n} BREAKING CHANGE and ${r} features`:`There are ${n} BREAKING CHANGES and ${r} features`}}function Se(e){return{commits:{ignore:e?.ignoreCommits,merges:!1},parser:ge(),writer:xe(),whatBump:Q}}const Ce=(e,t)=>{if(e==null)throw TypeError(`Expected a raw commit`);let n=new he(t).parse(e);return n.scope=n.scope??null,n.subject=n.subject??null,n.type=n.type??null,n};async function we(e,t=Ce,n){let r=await Se(),i=r.parser||r.parserOpts,a=n?.parser||n||{},o=t(e,{...i,fieldPattern:null,...a});return o.raw=e,o}function $(e=[]){return e.filter(Boolean).join(` `)}const Te=(e,t=`always`)=>{let n=e.header,r=e.footer;if(!n&&!r)return[!0];let i=!!n&&/^(\w*)(?:\((.*)\))?!: (.*)$/.test(n),a=!!r&&/^BREAKING[ -]CHANGE:/m.test(r),o=t===`never`,s=i===a;return[o?!s:s,$([`breaking changes`,o?`must not`:`must`,`have both an exclamation mark in the header`,`and BREAKING CHANGE in the footer`,`to identify a breaking change`])]};var Ee=t(((e,t)=>{var n=1/0,r=`[object Symbol]`,i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=`\\ud800-\\udfff`,s=`\\u0300-\\u036f\\ufe20-\\ufe23`,c=`\\u20d0-\\u20f0`,l=`\\u2700-\\u27bf`,u=`a-z\\xdf-\\xf6\\xf8-\\xff`,d=`\\xac\\xb1\\xd7\\xf7`,f=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,p=`\\u2000-\\u206f`,m=` \\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`,h=`A-Z\\xc0-\\xd6\\xd8-\\xde`,g=`\\ufe0e\\ufe0f`,_=d+f+p+m,v=`['’]`,y=`[`+o+`]`,b=`[`+_+`]`,x=`[`+s+c+`]`,S=`\\d+`,C=`[`+l+`]`,w=`[`+u+`]`,T=`[^`+o+_+S+l+u+h+`]`,E=`\\ud83c[\\udffb-\\udfff]`,D=`(?:`+x+`|`+E+`)`,O=`[^`+o+`]`,k=`(?:\\ud83c[\\udde6-\\uddff]){2}`,A=`[\\ud800-\\udbff][\\udc00-\\udfff]`,j=`[`+h+`]`,M=`\\u200d`,N=`(?:`+w+`|`+T+`)`,P=`(?:`+j+`|`+T+`)`,F=`(?:`+v+`(?:d|ll|m|re|s|t|ve))?`,I=`(?:`+v+`(?:D|LL|M|RE|S|T|VE))?`,L=D+`?`,R=`[`+g+`]?`,ee=`(?:`+M+`(?:`+[O,k,A].join(`|`)+`)`+R+L+`)*`,z=R+L+ee,B=`(?:`+[C,k,A].join(`|`)+`)`+z,te=`(?:`+[O+x+`?`,x,k,A,y].join(`|`)+`)`,ne=RegExp(v,`g`),re=RegExp(x,`g`),ie=RegExp(E+`(?=`+E+`)|`+te+z,`g`),ae=RegExp([j+`?`+w+`+`+F+`(?=`+[b,j,`$`].join(`|`)+`)`,P+`+`+I+`(?=`+[b,j+N,`$`].join(`|`)+`)`,j+`?`+N+`+`+F,j+`+`+I,S,B].join(`|`),`g`),oe=RegExp(`[`+M+o+s+c+g+`]`),se=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,V={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`ss`},ce=typeof global==`object`&&global&&global.Object===Object&&global,le=typeof self==`object`&&self&&self.Object===Object&&self,ue=ce||le||Function(`return this`)();function de(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function H(e){return e.split(``)}function U(e){return e.match(i)||[]}function W(e){return function(t){return e?.[t]}}var G=W(V);function K(e){return oe.test(e)}function q(e){return se.test(e)}function J(e){return K(e)?fe(e):H(e)}function fe(e){return e.match(ie)||[]}function Y(e){return e.match(ae)||[]}var pe=Object.prototype.toString,X=ue.Symbol,Z=X?X.prototype:void 0,me=Z?Z.toString:void 0;function he(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function ge(e){if(typeof e==`string`)return e;if(xe(e))return me?me.call(e):``;var t=e+``;return t==`0`&&1/e==-n?`-0`:t}function _e(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:he(e,t,n)}function ve(e){return function(t){t=Q(t);var n=K(t)?J(t):void 0,r=n?n[0]:t.charAt(0),i=n?_e(n,1).join(``):t.slice(1);return r[e]()+i}}function ye(e){return function(t){return de(Te(we(t).replace(ne,``)),e,``)}}function be(e){return!!e&&typeof e==`object`}function xe(e){return typeof e==`symbol`||be(e)&&pe.call(e)==r}function Q(e){return e==null?``:ge(e)}var Se=ye(function(e,t,n){return t=t.toLowerCase(),e+(n?Ce(t):t)});function Ce(e){return $(Q(e).toLowerCase())}function we(e){return e=Q(e),e&&e.replace(a,G).replace(re,``)}var $=ve(`toUpperCase`);function Te(e,t,n){return e=Q(e),t=n?void 0:t,t===void 0?q(e)?Y(e):U(e):e.match(t)||[]}t.exports=Se})),De=t(((e,t)=>{var n=1/0,r=`[object Symbol]`,i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=`\\ud800-\\udfff`,s=`\\u0300-\\u036f\\ufe20-\\ufe23`,c=`\\u20d0-\\u20f0`,l=`\\u2700-\\u27bf`,u=`a-z\\xdf-\\xf6\\xf8-\\xff`,d=`\\xac\\xb1\\xd7\\xf7`,f=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,p=`\\u2000-\\u206f`,m=` \\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`,h=`A-Z\\xc0-\\xd6\\xd8-\\xde`,g=`\\ufe0e\\ufe0f`,_=d+f+p+m,v=`['’]`,y=`[`+_+`]`,b=`[`+s+c+`]`,x=`\\d+`,S=`[`+l+`]`,C=`[`+u+`]`,w=`[^`+o+_+x+l+u+h+`]`,T=`(?:`+b+`|\\ud83c[\\udffb-\\udfff])`,E=`[^`+o+`]`,D=`(?:\\ud83c[\\udde6-\\uddff]){2}`,O=`[\\ud800-\\udbff][\\udc00-\\udfff]`,k=`[`+h+`]`,A=`\\u200d`,j=`(?:`+C+`|`+w+`)`,M=`(?:`+k+`|`+w+`)`,N=`(?:`+v+`(?:d|ll|m|re|s|t|ve))?`,P=`(?:`+v+`(?:D|LL|M|RE|S|T|VE))?`,F=T+`?`,I=`[`+g+`]?`,L=`(?:`+A+`(?:`+[E,D,O].join(`|`)+`)`+I+F+`)*`,R=I+F+L,ee=`(?:`+[S,D,O].join(`|`)+`)`+R,z=RegExp(v,`g`),B=RegExp(b,`g`),te=RegExp([k+`?`+C+`+`+N+`(?=`+[y,k,`$`].join(`|`)+`)`,M+`+`+P+`(?=`+[y,k+j,`$`].join(`|`)+`)`,k+`?`+j+`+`+N,k+`+`+P,x,ee].join(`|`),`g`),ne=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`ss`},ie=typeof global==`object`&&global&&global.Object===Object&&global,ae=typeof self==`object`&&self&&self.Object===Object&&self,oe=ie||ae||Function(`return this`)();function se(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function V(e){return e.match(i)||[]}function ce(e){return function(t){return e?.[t]}}var le=ce(re);function ue(e){return ne.test(e)}function de(e){return e.match(te)||[]}var H=Object.prototype.toString,U=oe.Symbol,W=U?U.prototype:void 0,G=W?W.toString:void 0;function K(e){if(typeof e==`string`)return e;if(fe(e))return G?G.call(e):``;var t=e+``;return t==`0`&&1/e==-n?`-0`:t}function q(e){return function(t){return se(Z(pe(t).replace(z,``)),e,``)}}function J(e){return!!e&&typeof e==`object`}function fe(e){return typeof e==`symbol`||J(e)&&H.call(e)==r}function Y(e){return e==null?``:K(e)}function pe(e){return e=Y(e),e&&e.replace(a,le).replace(B,``)}var X=q(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()});function Z(e,t,n){return e=Y(e),t=n?void 0:t,t===void 0?ue(e)?de(e):V(e):e.match(t)||[]}t.exports=X})),Oe=t(((e,t)=>{var n=1/0,r=`[object Symbol]`,i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=`\\ud800-\\udfff`,s=`\\u0300-\\u036f\\ufe20-\\ufe23`,c=`\\u20d0-\\u20f0`,l=`\\u2700-\\u27bf`,u=`a-z\\xdf-\\xf6\\xf8-\\xff`,d=`\\xac\\xb1\\xd7\\xf7`,f=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,p=`\\u2000-\\u206f`,m=` \\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`,h=`A-Z\\xc0-\\xd6\\xd8-\\xde`,g=`\\ufe0e\\ufe0f`,_=d+f+p+m,v=`['’]`,y=`[`+_+`]`,b=`[`+s+c+`]`,x=`\\d+`,S=`[`+l+`]`,C=`[`+u+`]`,w=`[^`+o+_+x+l+u+h+`]`,T=`(?:`+b+`|\\ud83c[\\udffb-\\udfff])`,E=`[^`+o+`]`,D=`(?:\\ud83c[\\udde6-\\uddff]){2}`,O=`[\\ud800-\\udbff][\\udc00-\\udfff]`,k=`[`+h+`]`,A=`\\u200d`,j=`(?:`+C+`|`+w+`)`,M=`(?:`+k+`|`+w+`)`,N=`(?:`+v+`(?:d|ll|m|re|s|t|ve))?`,P=`(?:`+v+`(?:D|LL|M|RE|S|T|VE))?`,F=T+`?`,I=`[`+g+`]?`,L=`(?:`+A+`(?:`+[E,D,O].join(`|`)+`)`+I+F+`)*`,R=I+F+L,ee=`(?:`+[S,D,O].join(`|`)+`)`+R,z=RegExp(v,`g`),B=RegExp(b,`g`),te=RegExp([k+`?`+C+`+`+N+`(?=`+[y,k,`$`].join(`|`)+`)`,M+`+`+P+`(?=`+[y,k+j,`$`].join(`|`)+`)`,k+`?`+j+`+`+N,k+`+`+P,x,ee].join(`|`),`g`),ne=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`ss`},ie=typeof global==`object`&&global&&global.Object===Object&&global,ae=typeof self==`object`&&self&&self.Object===Object&&self,oe=ie||ae||Function(`return this`)();function se(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function V(e){return e.match(i)||[]}function ce(e){return function(t){return e?.[t]}}var le=ce(re);function ue(e){return ne.test(e)}function de(e){return e.match(te)||[]}var H=Object.prototype.toString,U=oe.Symbol,W=U?U.prototype:void 0,G=W?W.toString:void 0;function K(e){if(typeof e==`string`)return e;if(fe(e))return G?G.call(e):``;var t=e+``;return t==`0`&&1/e==-n?`-0`:t}function q(e){return function(t){return se(Z(pe(t).replace(z,``)),e,``)}}function J(e){return!!e&&typeof e==`object`}function fe(e){return typeof e==`symbol`||J(e)&&H.call(e)==r}function Y(e){return e==null?``:K(e)}function pe(e){return e=Y(e),e&&e.replace(a,le).replace(B,``)}var X=q(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function Z(e,t,n){return e=Y(e),t=n?void 0:t,t===void 0?ue(e)?de(e):V(e):e.match(t)||[]}t.exports=X})),ke=t(((e,t)=>{var n=1/0,r=`[object Symbol]`,i=`\\ud800-\\udfff`,a=`\\u0300-\\u036f\\ufe20-\\ufe23`,o=`\\u20d0-\\u20f0`,s=`\\ufe0e\\ufe0f`,c=`[`+i+`]`,l=`[`+a+o+`]`,u=`\\ud83c[\\udffb-\\udfff]`,d=`(?:`+l+`|`+u+`)`,f=`[^`+i+`]`,p=`(?:\\ud83c[\\udde6-\\uddff]){2}`,m=`[\\ud800-\\udbff][\\udc00-\\udfff]`,h=`\\u200d`,g=d+`?`,_=`[`+s+`]?`,v=`(?:`+h+`(?:`+[f,p,m].join(`|`)+`)`+_+g+`)*`,y=_+g+v,b=`(?:`+[f+l+`?`,l,p,m,c].join(`|`)+`)`,x=RegExp(u+`(?=`+u+`)|`+b+y,`g`),S=RegExp(`[`+h+i+a+o+s+`]`),C=typeof global==`object`&&global&&global.Object===Object&&global,w=typeof self==`object`&&self&&self.Object===Object&&self,T=C||w||Function(`return this`)();function E(e){return e.split(``)}function D(e){return S.test(e)}function O(e){return D(e)?k(e):E(e)}function k(e){return e.match(x)||[]}var A=Object.prototype.toString,j=T.Symbol,M=j?j.prototype:void 0,N=M?M.toString:void 0;function P(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function F(e){if(typeof e==`string`)return e;if(ee(e))return N?N.call(e):``;var t=e+``;return t==`0`&&1/e==-n?`-0`:t}function I(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:P(e,t,n)}function L(e){return function(t){t=z(t);var n=D(t)?O(t):void 0,r=n?n[0]:t.charAt(0),i=n?I(n,1).join(``):t.slice(1);return r[e]()+i}}function R(e){return!!e&&typeof e==`object`}function ee(e){return typeof e==`symbol`||R(e)&&A.call(e)==r}function z(e){return e==null?``:F(e)}t.exports=L(`toUpperCase`)})),Ae=t(((e,t)=>{var n=1/0,r=`[object Symbol]`,i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=`\\ud800-\\udfff`,s=`\\u0300-\\u036f\\ufe20-\\ufe23`,c=`\\u20d0-\\u20f0`,l=`\\u2700-\\u27bf`,u=`a-z\\xdf-\\xf6\\xf8-\\xff`,d=`\\xac\\xb1\\xd7\\xf7`,f=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,p=`\\u2000-\\u206f`,m=` \\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`,h=`A-Z\\xc0-\\xd6\\xd8-\\xde`,g=`\\ufe0e\\ufe0f`,_=d+f+p+m,v=`['’]`,y=`[`+o+`]`,b=`[`+_+`]`,x=`[`+s+c+`]`,S=`\\d+`,C=`[`+l+`]`,w=`[`+u+`]`,T=`[^`+o+_+S+l+u+h+`]`,E=`\\ud83c[\\udffb-\\udfff]`,D=`(?:`+x+`|`+E+`)`,O=`[^`+o+`]`,k=`(?:\\ud83c[\\udde6-\\uddff]){2}`,A=`[\\ud800-\\udbff][\\udc00-\\udfff]`,j=`[`+h+`]`,M=`\\u200d`,N=`(?:`+w+`|`+T+`)`,P=`(?:`+j+`|`+T+`)`,F=`(?:`+v+`(?:d|ll|m|re|s|t|ve))?`,I=`(?:`+v+`(?:D|LL|M|RE|S|T|VE))?`,L=D+`?`,R=`[`+g+`]?`,ee=`(?:`+M+`(?:`+[O,k,A].join(`|`)+`)`+R+L+`)*`,z=R+L+ee,B=`(?:`+[C,k,A].join(`|`)+`)`+z,te=`(?:`+[O+x+`?`,x,k,A,y].join(`|`)+`)`,ne=RegExp(v,`g`),re=RegExp(x,`g`),ie=RegExp(E+`(?=`+E+`)|`+te+z,`g`),ae=RegExp([j+`?`+w+`+`+F+`(?=`+[b,j,`$`].join(`|`)+`)`,P+`+`+I+`(?=`+[b,j+N,`$`].join(`|`)+`)`,j+`?`+N+`+`+F,j+`+`+I,S,B].join(`|`),`g`),oe=RegExp(`[`+M+o+s+c+g+`]`),se=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,V={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`ss`},ce=typeof global==`object`&&global&&global.Object===Object&&global,le=typeof self==`object`&&self&&self.Object===Object&&self,ue=ce||le||Function(`return this`)();function de(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function H(e){return e.split(``)}function U(e){return e.match(i)||[]}function W(e){return function(t){return e?.[t]}}var G=W(V);function K(e){return oe.test(e)}function q(e){return se.test(e)}function J(e){return K(e)?fe(e):H(e)}function fe(e){return e.match(ie)||[]}function Y(e){return e.match(ae)||[]}var pe=Object.prototype.toString,X=ue.Symbol,Z=X?X.prototype:void 0,me=Z?Z.toString:void 0;function he(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function ge(e){if(typeof e==`string`)return e;if(xe(e))return me?me.call(e):``;var t=e+``;return t==`0`&&1/e==-n?`-0`:t}function _e(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:he(e,t,n)}function ve(e){return function(t){t=Q(t);var n=K(t)?J(t):void 0,r=n?n[0]:t.charAt(0),i=n?_e(n,1).join(``):t.slice(1);return r[e]()+i}}function ye(e){return function(t){return de($(Se(t).replace(ne,``)),e,``)}}function be(e){return!!e&&typeof e==`object`}function xe(e){return typeof e==`symbol`||be(e)&&pe.call(e)==r}function Q(e){return e==null?``:ge(e)}function Se(e){return e=Q(e),e&&e.replace(a,G).replace(re,``)}var Ce=ye(function(e,t,n){return e+(n?` `:``)+we(t)}),we=ve(`toUpperCase`);function $(e,t,n){return e=Q(e),t=n?void 0:t,t===void 0?q(e)?Y(e):U(e):e.match(t)||[]}t.exports=Ce})),je=e(Ee(),1),Me=e(De(),1),Ne=e(Oe(),1),Pe=e(ke(),1),Fe=e(Ae(),1);function Ie(e,t){switch(t){case`camel-case`:return(0,je.default)(e);case`kebab-case`:return(0,Me.default)(e);case`snake-case`:return(0,Ne.default)(e);case`pascal-case`:return(0,Pe.default)((0,je.default)(e));case`start-case`:return(0,Fe.default)(e);case`upper-case`:case`uppercase`:return e.toUpperCase();case`sentence-case`:case`sentencecase`:return(0,Pe.default)(e);case`lower-case`:case`lowercase`:case`lowerCase`:return e.toLowerCase();default:throw TypeError(`to-case: Unknown target case "${t}"`)}}var Le=Re;function Re(e=``,t=`lowercase`){let n=String(e).replace(/`.*?`|".*?"|'.*?'/g,``).trim(),r=Ie(n,t);return r===``||r.match(/^\d/)?!0:r===n}var ze=(e,t=[])=>e===void 0||!Array.isArray(t)?!1:t.indexOf(e)>-1,Be=(e,t)=>typeof e==`string`&&e.length<=t;const Ve=/\bhttps?:\/\/\S+/;var He=(e,t)=>typeof e==`string`&&e.split(/\r?\n/).every(e=>Ve.test(e)||Be(e,t)),Ue=(e,t)=>typeof e==`string`&&e.length>=t,We=e=>typeof e==`string`&&e.length>0;const Ge=e=>e===`never`,Ke=(e,t=`always`,n=[])=>{let{body:r}=e;if(!r)return[!0];let i=(Array.isArray(n)?n:[n]).map(e=>typeof e==`string`?{when:`always`,case:e}:e),a=i.some(e=>{let t=Le(r,e.case);return Ge(e.when)?!t:t}),o=i.map(e=>e.case).join(`, `);return[Ge(t)?!a:a,$([`body must`,Ge(t)?`not`:null,`be ${o}`])]},qe=(e,t=`always`)=>{let n=t===`never`,r=We(e.body||``);return[n?r:!r,$([`body`,n?`may not`:`must`,`be empty`])]},Je=(e,t=`always`,n=`.`)=>{let r=e.body;if(!r)return[!0];let i=t===`never`,a=r[r.length-1]===n;return[i?!a:a,$([`body`,i?`may not`:`must`,`end with full stop`])]};function Ye(e){return typeof e==`string`?e.split(/(?:\r?\n)/):[]}const Xe=(e,t)=>{if(!e.body)return[!0];let n=t===`never`,[r]=Ye(e.raw).slice(1),i=r===``;return[n?!i:i,$([`body`,n?`may not`:`must`,`have leading blank line`])]},Ze=(e,t=void 0,n=0)=>{let r=e.body;return r?[Be(r,n),`body must not be longer than ${n} characters`]:[!0]},Qe=(e,t=void 0,n=0)=>{let r=e.body;return r?[He(r,n),`body's lines must not be longer than ${n} characters`]:[!0]},$e=(e,t=void 0,n=0)=>e.body?[Ue(e.body,n),`body must not be shorter than ${n} characters`]:[!0],et=(e,t=`always`)=>{let n=t===`never`,r=We(e.footer||``);return[n?r:!r,$([`footer`,n?`may not`:`must`,`be empty`])]},tt=(e,t=`always`)=>{if(!e.footer)return[!0];let n=t===`never`,r=Ye(e.raw),i=Ye(e.footer),a=r.indexOf(i[0]),[o]=r.slice(a-1),s=o===``;return[n?!s:s,$([`footer`,n?`may not`:`must`,`have leading blank line`])]},nt=(e,t=void 0,n=0)=>{let r=e.footer;return r?[Be(r,n),`footer must not be longer than ${n} characters`]:[!0]},rt=(e,t=void 0,n=0)=>{let r=e.footer;return r?[He(r,n),`footer's lines must not be longer than ${n} characters`]:[!0]},it=(e,t=void 0,n=0)=>e.footer?[Ue(e.footer,n),`footer must not be shorter than ${n} characters`]:[!0],at=e=>e===`never`,ot=(e,t=`always`,n=[])=>{let{header:r}=e;if(typeof r!=`string`||!r.match(/^[a-z]/i))return[!0];let i=(Array.isArray(n)?n:[n]).map(e=>typeof e==`string`?{when:`always`,case:e}:e),a=i.some(e=>{let t=Le(r,e.case);return at(e.when)?!t:t}),o=i.map(e=>e.case).join(`, `);return[at(t)?!a:a,$([`header must`,at(t)?`not`:null,`be ${o}`])]},st=(e,t=`always`,n=`.`)=>{let{header:r}=e,i=t===`never`,a=r?.[r.length-1]===n;return[i?!a:a,$([`header`,i?`may not`:`must`,`end with full stop`])]},ct=(e,t=void 0,n=0)=>[Be(e.header,n),`header must not be longer than ${n} characters, current length is ${e.header?.length}`],lt=(e,t=void 0,n=0)=>[Ue(e.header,n),`header must not be shorter than ${n} characters, current length is ${e.header?.length}`],ut=e=>{let{header:t}=e;if(!t)return[!0];let n=t.length>t.trimStart().length,r=t.length>t.trimEnd().length;return n&&r?[!1,$([`header`,`must not be surrounded by whitespace`])]:n?[!1,$([`header`,`must not start with whitespace`])]:r?[!1,$([`header`,`must not end with whitespace`])]:[!0]},dt=(e,t=`never`)=>{let n=t===`always`,r=e.references.length>0;return[n?!r:r,$([`references`,n?`must`:`may not`,`be empty`])]},ft=e=>e===`never`,pt=(e,t=`always`,n=[])=>{let{scope:r}=e;if(!r)return[!0];let i=!Array.isArray(n)&&typeof n!=`string`,a=(i?n.cases:Array.isArray(n)?n:[n]).map(e=>typeof e==`string`?{when:`always`,case:e}:e),o=(i&&n.delimiters?.length?n.delimiters:[`/`,`\\`,`,`]).map(e=>e===`,`?`, ?`:e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)),s=new RegExp(o.join(`|`)),c=r.split(s),l=a.some(e=>{let t=c.every(t=>s.test(t)||Le(t,e.case));return ft(e.when)?!t:t}),u=a.map(e=>e.case).join(`, `);return[ft(t)?!l:l,$([`scope must`,ft(t)?`not`:null,`be ${u}`])]},mt=({scope:e},t=`always`,n=[])=>{if(!e)return[!0];let r=n.length?n:[`/`,`\\`,`,`],i=e.match(/[^A-Za-z0-9-_]+/g)??[],a=[...new Set(i.map(e=>e.trim()===`,`?`,`:e))].every(e=>ze(e,r)),o=t===`never`;return[o?!a:a,$([`scope delimiters must ${o?`not `:``}be one of [${r.join(`, `)}]`])]},ht=(e,t=`never`)=>{let n=t===`always`,r=We(e.scope||``);return[n?!r:r,$([`scope`,n?`must`:`may not`,`be empty`])]},gt=({scope:e},t=`always`,n=[])=>{let r=Array.isArray(n)?n:n.scopes;if(!e||!r.length)return[!0,``];let i=(Array.isArray(n)||!n.delimiters?.length?[`/`,`\\`,`,`]:n.delimiters).map(e=>e===`,`?`, ?`:e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)),a=e.split(new RegExp(i.join(`|`))),o=[`scope must`,`be one of [${r.join(`, `)}]`],s=e=>ze(e,r),c;return t===`never`?(c=!a.some(s)&&!s(e),o.splice(1,0,`not`)):c=a.every(s)||s(e),[c,$(o)]},_t=(e,t=void 0,n=0)=>{let r=e.scope;return r?[Be(r,n),`scope must not be longer than ${n} characters`]:[!0]},vt=(e,t=void 0,n=0)=>{let r=e.scope;return r?[Ue(r,n),`scope must not be shorter than ${n} characters`]:[!0]},yt=/^\(cherry picked from commit [0-9a-f]{7,64}\)$/i,bt=(e,t=`always`,n=``)=>{let r=Ye(e.raw).filter(e=>!e.startsWith(`#`)&&!yt.test(e.trim())&&!!e),i=r[r.length-1],a=t===`never`,o=i?i.startsWith(n):!1;return[a?!o:o,$([`message`,a?`must not`:`must`,`be signed off`])]},xt=/^[\p{Ll}\p{Lu}\p{Lt}]/iu,St=e=>e===`never`,Ct=(e,t=`always`,n=[])=>{let{subject:r}=e;if(typeof r!=`string`||!r.match(xt))return[!0];let i=(Array.isArray(n)?n:[n]).map(e=>typeof e==`string`?{when:`always`,case:e}:e),a=i.some(e=>{let t=Le(r,e.case);return St(e.when)?!t:t}),o=i.map(e=>e.case).join(`, `);return[St(t)?!a:a,$([`subject must`,St(t)?`not`:null,`be ${o}`])]},wt=(e,t=`always`)=>{let n=t===`never`,r=We(e.subject||``);return[n?r:!r,$([`subject`,n?`may not`:`must`,`be empty`])]},Tt=(e,t=`always`,n=`.`)=>{let r=e.header?.indexOf(`:`)||0;if(r>0&&r===e.header.length-1)return[!0];let i=e.header,a=t===`never`,o=i?.[i.length-1]===n;return i?.slice(-3)===`...`&&(o=!1),[a?!o:o,$([`subject`,a?`may not`:`must`,`end with full stop`])]},Et=(e,t=void 0,n=0)=>{let r=e.subject;return r?[Be(r,n),`subject must not be longer than ${n} characters`]:[!0]},Dt=(e,t=void 0,n=0)=>{let r=e.subject;return r?[Ue(r,n),`subject must not be shorter than ${n} characters`]:[!0]},Ot=(e,t=`always`)=>{let n=e.header;if(!n)return[!0,``];let r=t===`never`,i=/^(\w*)(?:\((.*)\))?!: (.*)$/.test(n);return[r?!i:i,$([`subject`,r?`must not`:`must`,`have an exclamation mark in the subject to identify a breaking change`])]},kt=e=>e===`never`,At=(e,t=`always`,n=[])=>{let{type:r}=e;if(!r)return[!0];let i=(Array.isArray(n)?n:[n]).map(e=>typeof e==`string`?{when:`always`,case:e}:e),a=i.some(e=>{let t=Le(r,e.case);return kt(e.when)?!t:t}),o=i.map(e=>e.case).join(`, `);return[kt(t)?!a:a,$([`type must`,kt(t)?`not`:null,`be ${o}`])]},jt=(e,t=`always`)=>{let n=t===`never`,r=We(e.type||``);return[n?r:!r,$([`type`,n?`may not`:`must`,`be empty`])]},Mt=(e,t=`always`,n=[])=>{let{type:r}=e;if(!r)return[!0];let i=t===`never`,a=ze(r,n);return[i?!a:a,$([`type must`,i?`not`:null,`be one of [${n.join(`, `)}]`])]},Nt=(e,t=void 0,n=0)=>{let r=e.type;return r?[Be(r,n),`type must not be longer than ${n} characters`]:[!0]},Pt=(e,t=void 0,n=0)=>{let r=e.type;return r?[Ue(r,n),`type must not be shorter than ${n} characters`]:[!0]};var Ft={"body-case":Ke,"body-empty":qe,"body-full-stop":Je,"body-leading-blank":Xe,"body-max-length":Ze,"body-max-line-length":Qe,"body-min-length":$e,"breaking-change-exclamation-mark":Te,"footer-empty":et,"footer-leading-blank":tt,"footer-max-length":nt,"footer-max-line-length":rt,"footer-min-length":it,"header-case":ot,"header-full-stop":st,"header-max-length":ct,"header-min-length":lt,"header-trim":ut,"references-empty":dt,"scope-case":pt,"scope-delimiter-style":mt,"scope-empty":ht,"scope-enum":gt,"scope-max-length":_t,"scope-min-length":vt,"signed-off-by":bt,"subject-case":Ct,"subject-empty":wt,"subject-exclamation-mark":Ot,"subject-full-stop":Tt,"subject-max-length":Et,"subject-min-length":Dt,"type-case":At,"type-empty":jt,"type-enum":Mt,"type-max-length":Nt,"type-min-length":Pt},It;(function(e){e[e.Disabled=0]=`Disabled`,e[e.Warning=1]=`Warning`,e[e.Error=2]=`Error`})(It||={});var Lt;(function(e){e[e.User=0]=`User`,e[e.Qualified=1]=`Qualified`})(Lt||={});const Rt=({header:e,body:t,footer:n})=>{let r=e;return r=t?`${r}\n\n${t}`:r,r=n?`${r}\n\n${n}`:r,r||``};async function zt(e,t,r){let i=r||{defaultIgnores:void 0,ignores:void 0},a=t||{};if(le(e,{defaults:i.defaultIgnores,ignores:i.ignores}))return{valid:!0,errors:[],warnings:[],input:e};let o=e===``?{header:null,body:null,footer:null}:await we(e,void 0,i.parserOpts);if(o.header===null&&o.body===null&&o.footer===null)return{valid:!0,errors:[],warnings:[],input:e};let s=new Map(Object.entries(Ft));i.plugins&&Object.values(i.plugins).forEach(e=>{e.rules&&Object.keys(e.rules).forEach(t=>s.set(t,e.rules[t]))});let c=Object.keys(a).filter(e=>typeof s.get(e)!=`function`);if(c.length>0){let e=[...s.keys()];throw RangeError([`Found rules without implementation: ${c.join(`, `)}.`,`Supported rules are: ${e.join(`, `)}.`].join(`
115
+ `))}let l=Object.entries(a).map(([e,t])=>{if(!Array.isArray(t))return Error(`config for rule ${e} must be array, received ${n.inspect(t)} of type ${typeof t}`);let[r]=t;if(r===It.Disabled&&t.length===1)return null;let[,i]=t;return typeof r!=`number`||isNaN(r)?Error(`level for rule ${e} must be number, received ${n.inspect(r)} of type ${typeof r}`):t.length<2||t.length>3?Error(`config for rule ${e} must be 2 or 3 items long, received ${n.inspect(t)} of length ${t.length}`):r<0||r>2?RangeError(`level for rule ${e} must be between 0 and 2, received ${n.inspect(r)}`):typeof i==`string`?i!==`never`&&i!==`always`?Error(`condition for rule ${e} must be "always" or "never", received ${n.inspect(i)}`):null:Error(`condition for rule ${e} must be string, received ${n.inspect(i)} of type ${typeof i}`)}).filter(e=>e instanceof Error);if(l.length>0)throw Error(l.map(e=>e.message).join(`
116
+ `));let u=Object.entries(a).filter(([,e])=>!!e&&e.length&&e[0]>0).map(async e=>{let[t,n]=e,[r,i,a]=n,c=s.get(t);if(!c)throw Error(`Could not find rule implementation for ${t}`);let[l,u]=await c(o,i,a);return{level:r,valid:l,name:t,message:u}}),d=(await Promise.all(u)).filter(e=>e!==null),f=d.filter(e=>e.level===It.Error&&!e.valid),p=d.filter(e=>e.level===It.Warning&&!e.valid);return{valid:f.length===0,errors:f,warnings:p,input:Rt(o)}}export{zt as default};
@@ -1,4 +1,4 @@
1
- import{t as e}from"./mjs-Cl59bDdr.mjs";import{a as t,i as n,n as r,r as i}from"./string-width-BpdcRJYu.mjs";import a from"./wrap-ansi-TR6i00jW.mjs";import o from"node:process";import s from"node:os";const c=globalThis.window?.document!==void 0;globalThis.process?.versions?.node,globalThis.process?.versions?.bun,globalThis.Deno?.version?.deno,globalThis.process?.versions?.electron,globalThis.navigator?.userAgent?.includes(`jsdom`),typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope,typeof DedicatedWorkerGlobalScope<`u`&&globalThis instanceof DedicatedWorkerGlobalScope,typeof SharedWorkerGlobalScope<`u`&&globalThis instanceof SharedWorkerGlobalScope,typeof ServiceWorkerGlobalScope<`u`&&globalThis instanceof ServiceWorkerGlobalScope;const l=globalThis.navigator?.userAgentData?.platform;l===`macOS`||globalThis.navigator?.platform===`MacIntel`||globalThis.navigator?.userAgent?.includes(` Mac `)===!0||globalThis.process?.platform,l===`Windows`||globalThis.navigator?.platform===`Win32`||globalThis.process?.platform,l===`Linux`||globalThis.navigator?.platform?.startsWith(`Linux`)===!0||globalThis.navigator?.userAgent?.includes(` Linux `)===!0||globalThis.process?.platform,l===`iOS`||globalThis.navigator?.platform===`MacIntel`&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform),l===`Android`||globalThis.navigator?.platform===`Android`||globalThis.navigator?.userAgent?.includes(` Android `)===!0||globalThis.process?.platform,!c&&o.env.TERM_PROGRAM;const u=!c&&o.platform===`win32`;!c&&(o.env.TERM?.startsWith(`screen`)||o.env.TERM?.startsWith(`tmux`)||o.env.TMUX),c||o.cwd;const d=(e=1)=>`\x1B[`+e+`A`,f=e=>{let t=``;for(let n=0;n<e;n++)t+=p+(n<e-1?d():``);return e&&(t+=`\x1B[G`),t},p=`\x1B[2K`,m=`\x1B[2J`;`${m}`,(()=>{if(c||!u)return!1;let e=s.release().split(`.`),t=Number(e[0]),n=Number(e[2]??0);return t<10||t===10&&n<10586})(),`${m}`;const h=(e,t,n,r)=>{if(n===`length`||n===`prototype`||n===`arguments`||n===`caller`)return;let i=Object.getOwnPropertyDescriptor(e,n),a=Object.getOwnPropertyDescriptor(t,n);!g(i,a)&&r||Object.defineProperty(e,n,a)},g=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},_=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},v=(e,t)=>`/* Wrapped ${e}*/\n${t}`,y=Object.getOwnPropertyDescriptor(Function.prototype,`toString`),b=Object.getOwnPropertyDescriptor(Function.prototype.toString,`name`),x=(e,t,n)=>{let r=n===``?``:`with ${n.trim()}() `,i=v.bind(null,r,t.toString());Object.defineProperty(i,`name`,b);let{writable:a,enumerable:o,configurable:s}=y;Object.defineProperty(e,`toString`,{value:i,writable:a,enumerable:o,configurable:s})};function S(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let r of Reflect.ownKeys(t))h(e,t,r,n);return _(e,t),x(e,t,r),e}const C=new WeakMap,w=(e,t={})=>{if(typeof e!=`function`)throw TypeError(`Expected a function`);let n,r=0,i=e.displayName||e.name||`<anonymous>`,a=function(...o){if(C.set(a,++r),r===1)n=e.apply(this,o),e=void 0;else if(t.throw===!0)throw Error(`Function \`${i}\` can only be called once`);return n};return S(a,e),C.set(a,r),a};w.callCount=e=>{if(!C.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return C.get(e)};const T=o.stderr.isTTY?o.stderr:o.stdout.isTTY?o.stdout:void 0,E=T?w(()=>{e(()=>{T.write(`\x1B[?25h`)},{alwaysLast:!0})}):()=>{};let D=!1;const O={};O.show=(e=o.stderr)=>{e.isTTY&&(D=!1,e.write(`\x1B[?25h`))},O.hide=(e=o.stderr)=>{e.isTTY&&(E(),D=!0,e.write(`\x1B[?25l`))},O.toggle=(e,t)=>{e!==void 0&&(D=e),D?O.show(t):O.hide(t)};function k(e){return Number.isInteger(e)?r(e)||i(e):!1}const A=new Set([27,155]),j=`0`.codePointAt(0),M=`9`.codePointAt(0),N=new Set,P=new Map;for(let[e,n]of t.codes)N.add(t.color.ansi(n)),P.set(t.color.ansi(e),t.color.ansi(n));function F(e){if(N.has(e))return e;if(P.has(e))return P.get(e);e=e.slice(2),e.includes(`;`)&&(e=e[0]+`0`);let n=t.codes.get(Number.parseInt(e,10));return n?t.color.ansi(n):t.reset.open}function I(e){for(let t=0;t<e.length;t++){let n=e.codePointAt(t);if(n>=j&&n<=M)return t}return-1}function L(e,t){e=e.slice(t,t+19);let n=I(e);if(n!==-1){let t=e.indexOf(`m`,n);return t===-1&&(t=e.length),e.slice(0,t+1)}}function R(e,t=1/0){let n=[],r=0,i=0;for(;r<e.length;){let a=e.codePointAt(r);if(A.has(a)){let t=L(e,r);if(t){n.push({type:`ansi`,code:t,endCode:F(t)}),r+=t.length;continue}}let o=k(a),s=String.fromCodePoint(a);if(n.push({type:`character`,value:s,isFullWidth:o}),r+=s.length,i+=o?2:s.length,i>=t)break}return n}function z(e){let n=[];for(let r of e)r.code===t.reset.open?n=[]:N.has(r.code)?n=n.filter(e=>e.endCode!==r.code):(n=n.filter(e=>e.endCode!==r.endCode),n.push(r));return n}function B(e){return z(e).map(({endCode:e})=>e).reverse().join(``)}function V(e,t,n){let r=R(e,n),i=[],a=0,o=``,s=!1;for(let e of r){if(n!==void 0&&a>=n)break;e.type===`ansi`?(i.push(e),s&&(o+=e.code)):(!s&&a>=t&&(s=!0,i=z(i),o=i.map(({code:e})=>e).join(``)),s&&(o+=e.value),a+=e.isFullWidth?2:e.value.length)}return o+=B(i),o}const H=({columns:e=80})=>e,U=(e,t)=>{let r=e.rows??24,i=t.split(`
1
+ import{t as e}from"./mjs-Cl59bDdr.mjs";import{a as t,i as n,n as r,r as i}from"./string-width-BcVmQkTo.mjs";import a from"./wrap-ansi-BT78d4D8.mjs";import o from"node:process";import s from"node:os";const c=globalThis.window?.document!==void 0;globalThis.process?.versions?.node,globalThis.process?.versions?.bun,globalThis.Deno?.version?.deno,globalThis.process?.versions?.electron,globalThis.navigator?.userAgent?.includes(`jsdom`),typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope,typeof DedicatedWorkerGlobalScope<`u`&&globalThis instanceof DedicatedWorkerGlobalScope,typeof SharedWorkerGlobalScope<`u`&&globalThis instanceof SharedWorkerGlobalScope,typeof ServiceWorkerGlobalScope<`u`&&globalThis instanceof ServiceWorkerGlobalScope;const l=globalThis.navigator?.userAgentData?.platform;l===`macOS`||globalThis.navigator?.platform===`MacIntel`||globalThis.navigator?.userAgent?.includes(` Mac `)===!0||globalThis.process?.platform,l===`Windows`||globalThis.navigator?.platform===`Win32`||globalThis.process?.platform,l===`Linux`||globalThis.navigator?.platform?.startsWith(`Linux`)===!0||globalThis.navigator?.userAgent?.includes(` Linux `)===!0||globalThis.process?.platform,l===`iOS`||globalThis.navigator?.platform===`MacIntel`&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform),l===`Android`||globalThis.navigator?.platform===`Android`||globalThis.navigator?.userAgent?.includes(` Android `)===!0||globalThis.process?.platform,!c&&o.env.TERM_PROGRAM;const u=!c&&o.platform===`win32`;!c&&(o.env.TERM?.startsWith(`screen`)||o.env.TERM?.startsWith(`tmux`)||o.env.TMUX),c||o.cwd;const d=(e=1)=>`\x1B[`+e+`A`,f=e=>{let t=``;for(let n=0;n<e;n++)t+=p+(n<e-1?d():``);return e&&(t+=`\x1B[G`),t},p=`\x1B[2K`,m=`\x1B[2J`;`${m}`,(()=>{if(c||!u)return!1;let e=s.release().split(`.`),t=Number(e[0]),n=Number(e[2]??0);return t<10||t===10&&n<10586})(),`${m}`;const h=(e,t,n,r)=>{if(n===`length`||n===`prototype`||n===`arguments`||n===`caller`)return;let i=Object.getOwnPropertyDescriptor(e,n),a=Object.getOwnPropertyDescriptor(t,n);!g(i,a)&&r||Object.defineProperty(e,n,a)},g=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},_=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},v=(e,t)=>`/* Wrapped ${e}*/\n${t}`,y=Object.getOwnPropertyDescriptor(Function.prototype,`toString`),b=Object.getOwnPropertyDescriptor(Function.prototype.toString,`name`),x=(e,t,n)=>{let r=n===``?``:`with ${n.trim()}() `,i=v.bind(null,r,t.toString());Object.defineProperty(i,`name`,b);let{writable:a,enumerable:o,configurable:s}=y;Object.defineProperty(e,`toString`,{value:i,writable:a,enumerable:o,configurable:s})};function S(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let r of Reflect.ownKeys(t))h(e,t,r,n);return _(e,t),x(e,t,r),e}const C=new WeakMap,w=(e,t={})=>{if(typeof e!=`function`)throw TypeError(`Expected a function`);let n,r=0,i=e.displayName||e.name||`<anonymous>`,a=function(...o){if(C.set(a,++r),r===1)n=e.apply(this,o),e=void 0;else if(t.throw===!0)throw Error(`Function \`${i}\` can only be called once`);return n};return S(a,e),C.set(a,r),a};w.callCount=e=>{if(!C.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return C.get(e)};const T=o.stderr.isTTY?o.stderr:o.stdout.isTTY?o.stdout:void 0,E=T?w(()=>{e(()=>{T.write(`\x1B[?25h`)},{alwaysLast:!0})}):()=>{};let D=!1;const O={};O.show=(e=o.stderr)=>{e.isTTY&&(D=!1,e.write(`\x1B[?25h`))},O.hide=(e=o.stderr)=>{e.isTTY&&(E(),D=!0,e.write(`\x1B[?25l`))},O.toggle=(e,t)=>{e!==void 0&&(D=e),D?O.show(t):O.hide(t)};function k(e){return Number.isInteger(e)?r(e)||i(e):!1}const A=new Set([27,155]),j=`0`.codePointAt(0),M=`9`.codePointAt(0),N=new Set,P=new Map;for(let[e,n]of t.codes)N.add(t.color.ansi(n)),P.set(t.color.ansi(e),t.color.ansi(n));function F(e){if(N.has(e))return e;if(P.has(e))return P.get(e);e=e.slice(2),e.includes(`;`)&&(e=e[0]+`0`);let n=t.codes.get(Number.parseInt(e,10));return n?t.color.ansi(n):t.reset.open}function I(e){for(let t=0;t<e.length;t++){let n=e.codePointAt(t);if(n>=j&&n<=M)return t}return-1}function L(e,t){e=e.slice(t,t+19);let n=I(e);if(n!==-1){let t=e.indexOf(`m`,n);return t===-1&&(t=e.length),e.slice(0,t+1)}}function R(e,t=1/0){let n=[],r=0,i=0;for(;r<e.length;){let a=e.codePointAt(r);if(A.has(a)){let t=L(e,r);if(t){n.push({type:`ansi`,code:t,endCode:F(t)}),r+=t.length;continue}}let o=k(a),s=String.fromCodePoint(a);if(n.push({type:`character`,value:s,isFullWidth:o}),r+=s.length,i+=o?2:s.length,i>=t)break}return n}function z(e){let n=[];for(let r of e)r.code===t.reset.open?n=[]:N.has(r.code)?n=n.filter(e=>e.endCode!==r.code):(n=n.filter(e=>e.endCode!==r.endCode),n.push(r));return n}function B(e){return z(e).map(({endCode:e})=>e).reverse().join(``)}function V(e,t,n){let r=R(e,n),i=[],a=0,o=``,s=!1;for(let e of r){if(n!==void 0&&a>=n)break;e.type===`ansi`?(i.push(e),s&&(o+=e.code)):(!s&&a>=t&&(s=!0,i=z(i),o=i.map(({code:e})=>e).join(``)),s&&(o+=e.value),a+=e.isFullWidth?2:e.value.length)}return o+=B(i),o}const H=({columns:e=80})=>e,U=(e,t)=>{let r=e.rows??24,i=t.split(`
2
2
  `),a=Math.max(0,i.length-r);return a?V(t,n(i.slice(0,a).join(`
3
3
  `)).length+1):t};function W(e,{showCursor:t=!1}={}){let n=0,r=H(e),i=``,o=()=>{i=``,r=H(e),n=0},s=(...o)=>{t||O.hide();let s=U(e,o.join(` `)+`
4
4
  `),c=H(e);s===i&&r===c||(i=s,r=c,s=a(s,c,{trim:!1,hard:!0,wordWrap:!1}),e.write(f(n)+s),n=s.split(`
@@ -0,0 +1 @@
1
+ import{resolve as e}from"node:path";import{isAbsolute as t,resolve as n}from"path";import{readFileSync as r,statSync as i}from"fs";import{createRequire as a}from"module";import{readFile as o}from"node:fs/promises";const s=process.cwd(),c=a(import.meta.url);function l(e,r=s){return e.startsWith(`.`)?n(r,e):t(e)?e:c.resolve(e)}function u(e){try{return i(l(e)),!0}catch{return!1}}function d(e){try{let t=r(l(e),`utf8`);return JSON.parse(t)}catch{return{}}}function f(e,t={}){let n=d(`./package.json`);if(e){let{[e]:r=t}=n;return r}return n}const p={"body-leading-blank":[1,`always`],"body-max-line-length":[2,`always`,100],"footer-leading-blank":[1,`always`],"footer-max-line-length":[2,`always`,100],"header-max-length":[2,`always`,100],"subject-case":[0],"subject-empty":[2,`never`],"subject-full-stop":[2,`never`,`.`],"type-case":[2,`always`,`lower-case`],"type-empty":[2,`never`],"type-enum":[2,`always`,[`build`,`chore`,`ci`,`docs`,`feat`,`fix`,`perf`,`refactor`,`revert`,`style`,`test`]],"scope-case":[0],"body-case":[0],"header-case":[0]};function m(){return e(process.cwd(),`.git/COMMIT_EDITMSG`)}function h(){return o(m(),`utf8`)}async function g(){let e=await h(),t=await import(`./lint-C8XlgPsV.mjs`).then(e=>e.default.default||e.default),n=await import(`./lib-7I1NoRZ3.mjs`).then(e=>e.default.default||e.default),r=await t(e,p);return{result:r,output:await n({results:[r]})}}function _(e){e.command(`commit`,`Lint git commit message`,{},()=>{g().then(({result:e,output:t})=>{e.valid?console.log(`Pass.`):(console.log(`Fail:`),console.log(t),process.exitCode=1)}).catch(e=>{console.error(e),process.exitCode=1})})}function v(e){let t=Object.entries(e).map(([e,t])=>[e,t.filter(Boolean)]).filter(([e,t])=>t.length);return t.length>0?Object.fromEntries(t):void 0}function y({garou:e,stylelint:t,eslint:n,prettier:r}){let i=process.stdin.isTTY?` --color`:``;return v({"*.{vue,html,htm,md}":[e&&`garou`,r&&`prettier -w -u${i}`,t&&`stylelint --fix -- ${i}`,n&&`eslint --fix ${i}`],"*.{ts,tsx,mts,cts}":[e&&`garou`,r&&`prettier -w -u${i}`,n&&`eslint --fix ${i}`],"*.{js,jsx,mjs,cjs,wxs,qs}":[e&&`garou`,r&&`prettier -w -u${i}`,n&&`eslint --fix ${i}`],"*.{c,sc,le,wx,q,tt,jx,ac}ss":[e&&`garou`,r&&`prettier -w -u${i}`,t&&`stylelint --fix -- ${i}`],"*.{json,yml,yaml,svg}":[e&&`garou`,r&&`prettier -w -u${i}`],"{*.{jsonc,webmanifest,editorconfig,toml},.{babel,npm}rc}":[r&&`prettier -w -u${i}`],"{*.jenkinsfile,{j,J}enkinsfile}":[r&&`prettier -w -u${i}`],"yarn.lock":[e&&`garou`]})}function b(){let e=f(`devDependencies`),t=`prettier`in e,n=`eslint`in e,r=`stylelint`in e;return{garou:`garou`in e,stylelint:r,eslint:n,prettier:t}}async function x(){let{default:e}=await import(`./lib-8Gx3YkdY.mjs`);return e({allowEmpty:!0,concurrent:!0,config:y(b()),cwd:process.cwd(),debug:!1,quiet:!1,relative:!1,shell:!1,stash:!0})}function S(e){e.command(`staged`,`Lint and format git staged files`,{},()=>{x().then(e=>{process.exitCode=e?0:1}).catch(e=>{console.error(e),process.exitCode=1})})}export{_ as n,u as r,S as t};
@@ -0,0 +1 @@
1
+ import{i as e,t}from"./chunk-tuRmWmEN.mjs";const n=(e=0)=>t=>`\u001B[${t+e}m`,r=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,i=(e=0)=>(t,n,r)=>`\u001B[${38+e};2;${t};${n};${r}m`,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(a.modifier);const o=Object.keys(a.color),s=Object.keys(a.bgColor);[...o,...s];function c(){let e=new Map;for(let[t,n]of Object.entries(a)){for(let[t,r]of Object.entries(n))a[t]={open:`\u001B[${r[0]}m`,close:`\u001B[${r[1]}m`},n[t]=a[t],e.set(r[0],r[1]);Object.defineProperty(a,t,{value:n,enumerable:!1})}return Object.defineProperty(a,`codes`,{value:e,enumerable:!1}),a.color.close=`\x1B[39m`,a.bgColor.close=`\x1B[49m`,a.color.ansi=n(),a.color.ansi256=r(),a.color.ansi16m=i(),a.bgColor.ansi=n(10),a.bgColor.ansi256=r(10),a.bgColor.ansi16m=i(10),Object.defineProperties(a,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>a.rgbToAnsi256(...a.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>a.ansi256ToAnsi(a.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>a.ansi256ToAnsi(a.hexToAnsi256(e)),enumerable:!1}}),a}const l=c();function u({onlyFirst:e=!1}={}){return RegExp(`(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]`,e?void 0:`g`)}const d=u();function f(e){if(typeof e!=`string`)throw TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes(`\x1B`)&&!e.includes(`›`)?e:e.replace(d,``)}const p=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],m=[12288,12288,65281,65376,65504,65510],h=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],g=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],_=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],v=(e,t)=>{let n=0,r=Math.floor(e.length/2)-1;for(;n<=r;){let i=Math.floor((n+r)/2),a=i*2;if(t<e[a])r=i-1;else if(t>e[a+1])n=i+1;else return!0}return!1},y=p[0],b=p.at(-1),x=m[0],S=m.at(-1);h[0],h.at(-1),g[0],g.at(-1);const C=_[0],w=_.at(-1),T=19968,[E,D]=O(_);function O(e){let t=e[0],n=e[1];for(let r=0;r<e.length;r+=2){let i=e[r],a=e[r+1];if(T>=i&&T<=a)return[i,a];a-i>n-t&&(t=i,n=a)}return[t,n]}const k=e=>e<y||e>b?!1:v(p,e),A=e=>e<x||e>S?!1:v(m,e),j=e=>e>=E&&e<=D?!0:e<C||e>w?!1:v(_,e);function M(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`)}function N(e,{ambiguousAsWide:t=!1}={}){return M(e),A(e)||j(e)||t&&k(e)?2:1}var P=e(t(((e,t)=>{t.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}))(),1);const F=new Intl.Segmenter,I=/^\p{Default_Ignorable_Code_Point}$/u;function L(e,t={}){if(typeof e!=`string`||e.length===0)return 0;let{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:r=!1}=t;if(r||(e=f(e)),e.length===0)return 0;let i=0,a={ambiguousAsWide:!n};for(let{segment:t}of F.segment(e)){let e=t.codePointAt(0);if(!(e<=31||e>=127&&e<=159)&&!(e>=8203&&e<=8207||e===65279)&&!(e>=768&&e<=879||e>=6832&&e<=6911||e>=7616&&e<=7679||e>=8400&&e<=8447||e>=65056&&e<=65071)&&!(e>=55296&&e<=57343)&&!(e>=65024&&e<=65039)&&!I.test(t)){if((0,P.default)().test(t)){i+=2;continue}i+=N(e,a)}}return i}export{l as a,f as i,A as n,j as r,L as t};
@@ -1,4 +1,4 @@
1
- import{a as e,i as t,t as n}from"./string-width-BpdcRJYu.mjs";const r=new Set([`\x1B`,`›`]),i=`]8;;`,a=e=>`${r.values().next().value}[${e}m`,o=e=>`${r.values().next().value}${i}${e}`,s=e=>e.split(` `).map(e=>n(e)),c=(e,a,o)=>{let s=[...a],c=!1,l=!1,u=n(t(e.at(-1)));for(let[t,a]of s.entries()){let d=n(a);if(u+d<=o?e[e.length-1]+=a:(e.push(a),u=0),r.has(a)&&(c=!0,l=s.slice(t+1,t+1+4).join(``)===i),c){l?a===`\x07`&&(c=!1,l=!1):a===`m`&&(c=!1);continue}u+=d,u===o&&t<s.length-1&&(e.push(``),u=0)}!u&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop())},l=e=>{let t=e.split(` `),r=t.length;for(;r>0&&!(n(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(` `)+t.slice(r).join(``)},u=(t,u,d={})=>{if(d.trim!==!1&&t.trim()===``)return``;let f=``,p,m,h=s(t),g=[``];for(let[e,r]of t.split(` `).entries()){d.trim!==!1&&(g[g.length-1]=g.at(-1).trimStart());let t=n(g.at(-1));if(e!==0&&(t>=u&&(d.wordWrap===!1||d.trim===!1)&&(g.push(``),t=0),(t>0||d.trim===!1)&&(g[g.length-1]+=` `,t++)),d.hard&&h[e]>u){let n=u-t,i=1+Math.floor((h[e]-n-1)/u);Math.floor((h[e]-1)/u)<i&&g.push(``),c(g,r,u);continue}if(t+h[e]>u&&t>0&&h[e]>0){if(d.wordWrap===!1&&t<u){c(g,r,u);continue}g.push(``)}if(t+h[e]>u&&d.wordWrap===!1){c(g,r,u);continue}g[g.length-1]+=r}d.trim!==!1&&(g=g.map(e=>l(e)));let _=g.join(`
1
+ import{a as e,i as t,t as n}from"./string-width-BcVmQkTo.mjs";const r=new Set([`\x1B`,`›`]),i=`]8;;`,a=e=>`${r.values().next().value}[${e}m`,o=e=>`${r.values().next().value}${i}${e}`,s=e=>e.split(` `).map(e=>n(e)),c=(e,a,o)=>{let s=[...a],c=!1,l=!1,u=n(t(e.at(-1)));for(let[t,a]of s.entries()){let d=n(a);if(u+d<=o?e[e.length-1]+=a:(e.push(a),u=0),r.has(a)&&(c=!0,l=s.slice(t+1,t+1+4).join(``)===i),c){l?a===`\x07`&&(c=!1,l=!1):a===`m`&&(c=!1);continue}u+=d,u===o&&t<s.length-1&&(e.push(``),u=0)}!u&&e.at(-1).length>0&&e.length>1&&(e[e.length-2]+=e.pop())},l=e=>{let t=e.split(` `),r=t.length;for(;r>0&&!(n(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(` `)+t.slice(r).join(``)},u=(t,u,d={})=>{if(d.trim!==!1&&t.trim()===``)return``;let f=``,p,m,h=s(t),g=[``];for(let[e,r]of t.split(` `).entries()){d.trim!==!1&&(g[g.length-1]=g.at(-1).trimStart());let t=n(g.at(-1));if(e!==0&&(t>=u&&(d.wordWrap===!1||d.trim===!1)&&(g.push(``),t=0),(t>0||d.trim===!1)&&(g[g.length-1]+=` `,t++)),d.hard&&h[e]>u){let n=u-t,i=1+Math.floor((h[e]-n-1)/u);Math.floor((h[e]-1)/u)<i&&g.push(``),c(g,r,u);continue}if(t+h[e]>u&&t>0&&h[e]>0){if(d.wordWrap===!1&&t<u){c(g,r,u);continue}g.push(``)}if(t+h[e]>u&&d.wordWrap===!1){c(g,r,u);continue}g[g.length-1]+=r}d.trim!==!1&&(g=g.map(e=>l(e)));let _=g.join(`
2
2
  `),v=[..._],y=0;for(let[t,n]of v.entries()){if(f+=n,r.has(n)){let{groups:e}=RegExp(`(?:\\[(?<code>\\d+)m|\\${i}(?<uri>.*))`).exec(_.slice(y))||{groups:{}};if(e.code!==void 0){let t=Number.parseFloat(e.code);p=t===39?void 0:t}else e.uri!==void 0&&(m=e.uri.length===0?void 0:e.uri)}let s=e.codes.get(Number(p));v[t+1]===`
3
3
  `?(m&&(f+=o(``)),p&&s&&(f+=a(s))):n===`
4
4
  `&&(p&&s&&(f+=a(p)),m&&(f+=o(m))),y+=n.length}return f};function d(e,t,n){return String(e).normalize().replaceAll(`\r
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice-move/cli",
3
- "version": "0.11.30",
3
+ "version": "0.11.31",
4
4
  "description": "Frontend develop helper for frontend development",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -40,8 +40,8 @@
40
40
  "cheetor": "^0.13.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@commitlint/format": "^20.4.0",
44
- "@commitlint/lint": "^20.4.2",
43
+ "@commitlint/format": "^20.4.3",
44
+ "@commitlint/lint": "^20.4.3",
45
45
  "execa": "^9.6.1",
46
46
  "lint-staged": "^15.5.2",
47
47
  "settingz": "^0.2.0"
@@ -1,5 +0,0 @@
1
- import{i as e,t}from"./chunk-tuRmWmEN.mjs";import n from"node:util";import{resolve as r}from"path";import{fileURLToPath as i}from"url";var a=t(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),o=t(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),s=t(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=a(),s=o();e=t.exports={};let c=e.re=[],l=e.safeRe=[],u=e.src=[],d=e.safeSrc=[],f=e.t={},p=0,m=`[a-zA-Z0-9-]`,h=[[`\\s`,1],[`\\d`,i],[m,r]],g=e=>{for(let[t,n]of h)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},_=(e,t,n)=>{let r=g(t),i=p++;s(e,i,t),f[e]=i,u[i]=t,d[i]=r,c[i]=new RegExp(t,n?`g`:void 0),l[i]=new RegExp(r,n?`g`:void 0)};_(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),_(`NUMERICIDENTIFIERLOOSE`,`\\d+`),_(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${m}*`),_(`MAINVERSION`,`(${u[f.NUMERICIDENTIFIER]})\\.(${u[f.NUMERICIDENTIFIER]})\\.(${u[f.NUMERICIDENTIFIER]})`),_(`MAINVERSIONLOOSE`,`(${u[f.NUMERICIDENTIFIERLOOSE]})\\.(${u[f.NUMERICIDENTIFIERLOOSE]})\\.(${u[f.NUMERICIDENTIFIERLOOSE]})`),_(`PRERELEASEIDENTIFIER`,`(?:${u[f.NONNUMERICIDENTIFIER]}|${u[f.NUMERICIDENTIFIER]})`),_(`PRERELEASEIDENTIFIERLOOSE`,`(?:${u[f.NONNUMERICIDENTIFIER]}|${u[f.NUMERICIDENTIFIERLOOSE]})`),_(`PRERELEASE`,`(?:-(${u[f.PRERELEASEIDENTIFIER]}(?:\\.${u[f.PRERELEASEIDENTIFIER]})*))`),_(`PRERELEASELOOSE`,`(?:-?(${u[f.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[f.PRERELEASEIDENTIFIERLOOSE]})*))`),_(`BUILDIDENTIFIER`,`${m}+`),_(`BUILD`,`(?:\\+(${u[f.BUILDIDENTIFIER]}(?:\\.${u[f.BUILDIDENTIFIER]})*))`),_(`FULLPLAIN`,`v?${u[f.MAINVERSION]}${u[f.PRERELEASE]}?${u[f.BUILD]}?`),_(`FULL`,`^${u[f.FULLPLAIN]}$`),_(`LOOSEPLAIN`,`[v=\\s]*${u[f.MAINVERSIONLOOSE]}${u[f.PRERELEASELOOSE]}?${u[f.BUILD]}?`),_(`LOOSE`,`^${u[f.LOOSEPLAIN]}$`),_(`GTLT`,`((?:<|>)?=?)`),_(`XRANGEIDENTIFIERLOOSE`,`${u[f.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),_(`XRANGEIDENTIFIER`,`${u[f.NUMERICIDENTIFIER]}|x|X|\\*`),_(`XRANGEPLAIN`,`[v=\\s]*(${u[f.XRANGEIDENTIFIER]})(?:\\.(${u[f.XRANGEIDENTIFIER]})(?:\\.(${u[f.XRANGEIDENTIFIER]})(?:${u[f.PRERELEASE]})?${u[f.BUILD]}?)?)?`),_(`XRANGEPLAINLOOSE`,`[v=\\s]*(${u[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[f.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[f.XRANGEIDENTIFIERLOOSE]})(?:${u[f.PRERELEASELOOSE]})?${u[f.BUILD]}?)?)?`),_(`XRANGE`,`^${u[f.GTLT]}\\s*${u[f.XRANGEPLAIN]}$`),_(`XRANGELOOSE`,`^${u[f.GTLT]}\\s*${u[f.XRANGEPLAINLOOSE]}$`),_(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),_(`COERCE`,`${u[f.COERCEPLAIN]}(?:$|[^\\d])`),_(`COERCEFULL`,u[f.COERCEPLAIN]+`(?:${u[f.PRERELEASE]})?(?:${u[f.BUILD]})?(?:$|[^\\d])`),_(`COERCERTL`,u[f.COERCE],!0),_(`COERCERTLFULL`,u[f.COERCEFULL],!0),_(`LONETILDE`,`(?:~>?)`),_(`TILDETRIM`,`(\\s*)${u[f.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,_(`TILDE`,`^${u[f.LONETILDE]}${u[f.XRANGEPLAIN]}$`),_(`TILDELOOSE`,`^${u[f.LONETILDE]}${u[f.XRANGEPLAINLOOSE]}$`),_(`LONECARET`,`(?:\\^)`),_(`CARETTRIM`,`(\\s*)${u[f.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,_(`CARET`,`^${u[f.LONECARET]}${u[f.XRANGEPLAIN]}$`),_(`CARETLOOSE`,`^${u[f.LONECARET]}${u[f.XRANGEPLAINLOOSE]}$`),_(`COMPARATORLOOSE`,`^${u[f.GTLT]}\\s*(${u[f.LOOSEPLAIN]})$|^$`),_(`COMPARATOR`,`^${u[f.GTLT]}\\s*(${u[f.FULLPLAIN]})$|^$`),_(`COMPARATORTRIM`,`(\\s*)${u[f.GTLT]}\\s*(${u[f.LOOSEPLAIN]}|${u[f.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,_(`HYPHENRANGE`,`^\\s*(${u[f.XRANGEPLAIN]})\\s+-\\s+(${u[f.XRANGEPLAIN]})\\s*$`),_(`HYPHENRANGELOOSE`,`^\\s*(${u[f.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[f.XRANGEPLAINLOOSE]})\\s*$`),_(`STAR`,`(<|>)?=?\\s*\\*`),_(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),_(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),c=t(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),l=t(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:e<t?-1:1;let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),u=t(((e,t)=>{let n=o(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=a(),{safeRe:u,t:d}=s(),f=c(),{compareIdentifiers:p}=l();t.exports=class e{constructor(t,a){if(a=f(a),t instanceof e){if(t.loose===!!a.loose&&t.includePrerelease===!!a.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,a),this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease;let o=t.trim().match(a.loose?u[d.LOOSE]:u[d.FULL]);if(!o)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);o[4]?this.prerelease=o[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=o[5]?o[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(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return p(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return p(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?u[d.PRERELEASELOOSE]:u[d.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),p(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),d=t(((e,t)=>{let n=u();t.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}}})),f=t(((e,t)=>{let n=d();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),p=t(((e,t)=>{let n=d();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),m=t(((e,t)=>{let n=u();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),h=t(((e,t)=>{let n=d();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),g=t(((e,t)=>{let n=u();t.exports=(e,t)=>new n(e,t).major})),_=t(((e,t)=>{let n=u();t.exports=(e,t)=>new n(e,t).minor})),v=t(((e,t)=>{let n=u();t.exports=(e,t)=>new n(e,t).patch})),y=t(((e,t)=>{let n=d();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),b=t(((e,t)=>{let n=u();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),x=t(((e,t)=>{let n=b();t.exports=(e,t,r)=>n(t,e,r)})),S=t(((e,t)=>{let n=b();t.exports=(e,t)=>n(e,t,!0)})),C=t(((e,t)=>{let n=u();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),w=t(((e,t)=>{let n=C();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),T=t(((e,t)=>{let n=C();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),E=t(((e,t)=>{let n=b();t.exports=(e,t,r)=>n(e,t,r)>0})),D=t(((e,t)=>{let n=b();t.exports=(e,t,r)=>n(e,t,r)<0})),O=t(((e,t)=>{let n=b();t.exports=(e,t,r)=>n(e,t,r)===0})),k=t(((e,t)=>{let n=b();t.exports=(e,t,r)=>n(e,t,r)!==0})),A=t(((e,t)=>{let n=b();t.exports=(e,t,r)=>n(e,t,r)>=0})),j=t(((e,t)=>{let n=b();t.exports=(e,t,r)=>n(e,t,r)<=0})),M=t(((e,t)=>{let n=O(),r=k(),i=E(),a=A(),o=D(),s=j();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),N=t(((e,t)=>{let n=u(),r=d(),{safeRe:i,t:a}=s();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),P=t(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),F=t(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof l)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!b(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&x(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+=`||`);let 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){let t=((this.options.includePrerelease&&v)|(this.options.loose&&y))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,a=i?p[m.HYPHENRANGELOOSE]:p[m.HYPHENRANGE];e=e.replace(a,N(this.options.includePrerelease)),d(`hyphen replace`,e),e=e.replace(p[m.COMPARATORTRIM],h),d(`comparator trim`,e),e=e.replace(p[m.TILDETRIM],g),d(`tilde trim`,e),e=e.replace(p[m.CARETTRIM],_),d(`caret trim`,e);let o=e.split(` `).map(e=>C(e,this.options)).join(` `).split(/\s+/).map(e=>M(e,this.options));i&&(o=o.filter(e=>(d(`loose invalid filter`,e,this.options),!!e.match(p[m.COMPARATORLOOSE])))),d(`range list`,o);let s=new Map,c=o.map(e=>new l(e,this.options));for(let e of c){if(b(e))return[e];s.set(e.value,e)}s.size>1&&s.has(``)&&s.delete(``);let u=[...s.values()];return r.set(t,u),u}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>S(e,n)&&t.set.some(t=>S(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new f(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(F(this.set[t],e,this.options))return!0;return!1}};let r=new(P()),i=c(),l=I(),d=o(),f=u(),{safeRe:p,t:m,comparatorTrimReplace:h,tildeTrimReplace:g,caretTrimReplace:_}=s(),{FLAG_INCLUDE_PRERELEASE:v,FLAG_LOOSE:y}=a(),b=e=>e.value===`<0.0.0-0`,x=e=>e.value===``,S=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},C=(e,t)=>(e=e.replace(p[m.BUILD],``),d(`comp`,e,t),e=D(e,t),d(`caret`,e),e=T(e,t),d(`tildes`,e),e=k(e,t),d(`xrange`,e),e=j(e,t),d(`stars`,e),e),w=e=>!e||e.toLowerCase()===`x`||e===`*`,T=(e,t)=>e.trim().split(/\s+/).map(e=>E(e,t)).join(` `),E=(e,t)=>{let n=t.loose?p[m.TILDELOOSE]:p[m.TILDE];return e.replace(n,(t,n,r,i,a)=>{d(`tilde`,e,t,n,r,i,a);let o;return w(n)?o=``:w(r)?o=`>=${n}.0.0 <${+n+1}.0.0-0`:w(i)?o=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(d(`replaceTilde pr`,a),o=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):o=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,d(`tilde return`,o),o})},D=(e,t)=>e.trim().split(/\s+/).map(e=>O(e,t)).join(` `),O=(e,t)=>{d(`caret`,e,t);let n=t.loose?p[m.CARETLOOSE]:p[m.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,o)=>{d(`caret`,e,t,n,i,a,o);let s;return w(n)?s=``:w(i)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:w(a)?s=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:o?(d(`replaceCaret pr`,o),s=n===`0`?i===`0`?`>=${n}.${i}.${a}-${o} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${o} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${o} <${+n+1}.0.0-0`):(d(`no pr`),s=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),d(`caret return`,s),s})},k=(e,t)=>(d(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>A(e,t)).join(` `)),A=(e,t)=>{e=e.trim();let n=t.loose?p[m.XRANGELOOSE]:p[m.XRANGE];return e.replace(n,(n,r,i,a,o,s)=>{d(`xRange`,e,n,r,i,a,o,s);let c=w(i),l=c||w(a),u=l||w(o),f=u;return r===`=`&&f&&(r=``),s=t.includePrerelease?`-0`:``,c?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(l&&(a=0),o=0,r===`>`?(r=`>=`,l?(i=+i+1,a=0,o=0):(a=+a+1,o=0)):r===`<=`&&(r=`<`,l?i=+i+1:a=+a+1),r===`<`&&(s=`-0`),n=`${r+i}.${a}.${o}${s}`):l?n=`>=${i}.0.0${s} <${+i+1}.0.0-0`:u&&(n=`>=${i}.${a}.0${s} <${i}.${+a+1}.0-0`),d(`xRange return`,n),n})},j=(e,t)=>(d(`replaceStars`,e,t),e.trim().replace(p[m.STAR],``)),M=(e,t)=>(d(`replaceGTE0`,e,t),e.trim().replace(p[t.includePrerelease?m.GTE0PRE:m.GTE0],``)),N=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=w(r)?``:w(i)?`>=${r}.0.0${e?`-0`:``}`:w(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=w(l)?``:w(u)?`<${+l+1}.0.0-0`:w(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),F=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(d(e[n].semver),e[n].semver!==l.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),I=t(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),d(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,d(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new f(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(d(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new f(e,this.options)}catch{return!1}return l(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new p(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new p(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||l(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||l(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=c(),{safeRe:i,t:a}=s(),l=M(),d=o(),f=u(),p=F()})),L=t(((e,t)=>{let n=F();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),R=t(((e,t)=>{let n=F();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),ee=t(((e,t)=>{let n=u(),r=F();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),z=t(((e,t)=>{let n=u(),r=F();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),te=t(((e,t)=>{let n=u(),r=F(),i=E();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),ne=t(((e,t)=>{let n=F();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),B=t(((e,t)=>{let n=u(),r=I(),{ANY:i}=r,a=F(),o=L(),s=E(),c=D(),l=j(),d=A();t.exports=(e,t,u,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(u){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=d,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),re=t(((e,t)=>{let n=B();t.exports=(e,t,r)=>n(e,t,`>`,r)})),ie=t(((e,t)=>{let n=B();t.exports=(e,t,r)=>n(e,t,`<`,r)})),ae=t(((e,t)=>{let n=F();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),oe=t(((e,t)=>{let n=L(),r=b();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),se=t(((e,t)=>{let n=F(),r=I(),{ANY:i}=r,a=L(),o=b(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){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(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!a(s.semver,String(e),n))return!1}if(u){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(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!a(u.semver,String(e),n))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),ce=e(t(((e,t)=>{let n=s(),r=a(),i=u(),o=l();t.exports={parse:d(),valid:f(),clean:p(),inc:m(),diff:h(),major:g(),minor:_(),patch:v(),prerelease:y(),compare:b(),rcompare:x(),compareLoose:S(),compareBuild:C(),sort:w(),rsort:T(),gt:E(),lt:D(),eq:O(),neq:k(),gte:A(),lte:j(),cmp:M(),coerce:N(),Comparator:I(),Range:F(),satisfies:L(),toComparators:R(),maxSatisfying:ee(),minSatisfying:z(),minVersion:te(),validRange:ne(),outside:B(),gtr:re(),ltr:ie(),intersects:ae(),simplifyRange:oe(),subset:se(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}}))(),1);const le=e=>{let t=e.split(`
2
- `).shift();if(typeof t!=`string`)return!1;let n=t.replace(/^chore(\([^)]+\))?:/,``).trim();return ce.default.valid(n)!==null},V=e=>e.test.bind(e),ue=[V(/^((Merge pull request)|(Merge (.*?) into (.*?)|(Merge branch (.*?)))(?:\r?\n)*$)/m),V(/^(Merge tag (.*?))(?:\r?\n)*$/m),V(/^(R|r)evert (.*)/),V(/^(R|r)eapply (.*)/),V(/^(amend|fixup|squash)!/),le,V(/^(Merged (.*?)(in|into) (.*)|Merged PR (.*): (.*))/),V(/^Merge remote-tracking branch(\s*)(.*)/),V(/^Automatic merge(.*)/),V(/^Auto-merged (.*?) into (.*)/)];function de(e=``,t={}){let n=t.ignores===void 0?[]:t.ignores;if(!Array.isArray(n))throw Error(`ignores must be of type array, received ${n} of type ${typeof n}`);let r=n.filter(e=>typeof e!=`function`);if(r.length>0)throw Error(`ignores must be array of type function, received items of type: ${r.map(e=>typeof e).join(`, `)}`);return[...t.defaults===!1?[]:ue,...n].some(t=>t(e))}const fe=/(?!.*)/;function H(e,t){return e.map(e=>e.trim()).filter(Boolean).join(t)}function U(e,t){if(!e)return fe;let n=H(e,`|`);return t?t(n):RegExp(`^[\\s|*]*(${n})[:\\s]+(.*)`,`i`)}function W(e,t){if(!e)return fe;let n=t?`g`:`gi`;return RegExp(`(?:.*?)??\\s*([\\w-\\.\\/]*?)??(${H(e,`|`)})([\\w-]+)(?=\\s|$|[,;)\\]])`,n)}function G(e){if(!e)return/()(.+)/gi;let t=H(e,`|`);return RegExp(`(${t})(?:\\s+(.*?))(?=(?:${t})|$)`,`gi`)}function pe(e={}){return{notes:U(e.noteKeywords,e.notesPattern),referenceParts:W(e.issuePrefixes,e.issuePrefixesCaseSensitive),references:G(e.referenceActions),mentions:/@([\w-]+)/g,url:/\b(?:https?):\/\/(?:www\.)?([-a-zA-Z0-9@:%_+.~#?&//=])+\b/}}function K(e){let t=e.match(/[^\r\n]/);if(typeof t?.index!=`number`)return``;let n=t.index,r=e.length-1;for(;e[r]===`\r`||e[r]===`
3
- `;)r--;return e.substring(n,r+1)}function q(e,t){return e?`${e}\n${t||``}`:t||``}function J(e){return e?t=>!t.startsWith(e):()=>!0}function me(e,t){let n=e.indexOf(`${t} ------------------------ >8 ------------------------`);return n===-1?e:e.slice(0,n)}function Y(e){return!e.match(/^\s*gpg:/)}function X(e,t,n){let{groups:r}=t;for(let i=0,a=n.length,o;i<a;i++)o=n[i],e[o]=(r?r[o]:t[i+1])||null;return e}const he={noteKeywords:[`BREAKING CHANGE`,`BREAKING-CHANGE`],issuePrefixes:[`#`],referenceActions:[`close`,`closes`,`closed`,`fix`,`fixes`,`fixed`,`resolve`,`resolves`,`resolved`],headerPattern:/^(\w*)(?:\(([\w$@.\-*/ ]*)\))?: (.*)$/,headerCorrespondence:[`type`,`scope`,`subject`],revertPattern:/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./,revertCorrespondence:[`header`,`hash`],fieldPattern:/^-(.*?)-$/};function ge(e={}){return{merge:null,revert:null,header:null,body:null,footer:null,notes:[],mentions:[],references:[],...e}}var _e=class{options;regexes;lines=[];lineIndex=0;commit=ge();constructor(e={}){this.options={...he,...e},this.regexes=pe(this.options)}currentLine(){return this.lines[this.lineIndex]}nextLine(){return this.lines[this.lineIndex++]}isLineAvailable(){return this.lineIndex<this.lines.length}parseReference(e,t){let{regexes:n}=this;if(n.url.test(e))return null;let r=n.referenceParts.exec(e);if(!r)return null;let[i,a=null,o,s]=r,c=null;if(a){let e=a.indexOf(`/`);e!==-1&&(c=a.slice(0,e),a=a.slice(e+1))}return{raw:i,action:t,owner:c,repository:a,prefix:o,issue:s}}parseReferences(e){let{regexes:t}=this,n=e.match(t.references)?t.references:/()(.+)/gi,r=[],i,a,o,s;for(;i=n.exec(e),i;)for(a=i[1]||null,o=i[2]||``;s=this.parseReference(o,a),s;)r.push(s);return r}skipEmptyLines(){let e=this.currentLine();for(;e!==void 0&&!e.trim();)this.nextLine(),e=this.currentLine()}parseMerge(){let{commit:e,options:t}=this,n=t.mergeCorrespondence||[],r=this.currentLine(),i=r&&t.mergePattern?r.match(t.mergePattern):null;return i?(this.nextLine(),e.merge=i[0]||null,X(e,i,n),!0):!1}parseHeader(e){e&&this.skipEmptyLines();let{commit:t,options:n}=this,r=n.headerCorrespondence||[],i=t.header??this.nextLine(),a=null;i&&(n.breakingHeaderPattern&&(a=i.match(n.breakingHeaderPattern)),!a&&n.headerPattern&&(a=i.match(n.headerPattern))),i&&(t.header=i),a&&X(t,a,r)}parseMeta(){let{options:e,commit:t}=this;if(!e.fieldPattern||!this.isLineAvailable())return!1;let n,r=null,i=!1;for(;this.isLineAvailable();){if(n=this.currentLine().match(e.fieldPattern),n){r=n[1]||null,this.nextLine();continue}if(r)i=!0,t[r]=q(t[r],this.currentLine()),this.nextLine();else break}return i}parseNotes(){let{regexes:e,commit:t}=this;if(!this.isLineAvailable())return!1;let n=this.currentLine().match(e.notes),r=[];if(n){let e={title:n[1],text:n[2]};for(t.notes.push(e),t.footer=q(t.footer,this.currentLine()),this.nextLine();this.isLineAvailable();){if(this.parseMeta()||this.parseNotes())return!0;if(r=this.parseReferences(this.currentLine()),r.length?t.references.push(...r):e.text=q(e.text,this.currentLine()),t.footer=q(t.footer,this.currentLine()),this.nextLine(),r.length)break}return!0}return!1}parseBodyAndFooter(e){let{commit:t}=this;if(!this.isLineAvailable())return e;let n=this.parseReferences(this.currentLine()),r=!n.length&&e;return r?t.body=q(t.body,this.currentLine()):(t.references.push(...n),t.footer=q(t.footer,this.currentLine())),this.nextLine(),r}parseBreakingHeader(){let{commit:e,options:t}=this;if(!t.breakingHeaderPattern||e.notes.length||!e.header)return;let n=e.header.match(t.breakingHeaderPattern);n&&e.notes.push({title:`BREAKING CHANGE`,text:n[3]})}parseMentions(e){let{commit:t,regexes:n}=this,r;for(;r=n.mentions.exec(e),r;)t.mentions.push(r[1])}parseRevert(e){let{commit:t,options:n}=this,r=n.revertCorrespondence||[],i=n.revertPattern?e.match(n.revertPattern):null;i&&(t.revert=X({},i,r))}cleanupCommit(){let{commit:e}=this;e.body&&=K(e.body),e.footer&&=K(e.footer),e.notes.forEach(e=>{e.text=K(e.text)})}parse(e){if(!e.trim())throw TypeError(`Expected a raw commit`);let{commentChar:t}=this.options,n=J(t),r=K(e).split(/\r?\n/),i=t?me(r,t).filter(e=>n(e)&&Y(e)):r.filter(e=>Y(e)),a=ge();this.lines=i,this.lineIndex=0,this.commit=a;let o=this.parseMerge();this.parseHeader(o),a.header&&(a.references=this.parseReferences(a.header));let s=!0;for(;this.isLineAvailable();)this.parseMeta(),this.parseNotes()&&(s=!1),this.parseBodyAndFooter(s)||(s=!1);return this.parseBreakingHeader(),this.parseMentions(e),this.parseRevert(e),this.cleanupCommit(),a}};function ve(){return{headerPattern:/^(\w*)(?:\((.*)\))?: (.*)$/,headerCorrespondence:[`type`,`scope`,`subject`],noteKeywords:[`BREAKING CHANGE`],revertPattern:/^(?:Revert|revert:)\s"?([\s\S]+?)"?\s*This reverts commit (\w{7,40})\b/i,revertCorrespondence:[`header`,`hash`]}}var ye=t(((e,t)=>{t.exports=function(e){return Array.isArray(e)?e:[e]}})),be=t(((e,t)=>{t.exports=e=>{let t=typeof e;return e!==null&&(t===`object`||t===`function`)}})),xe=t(((e,t)=>{let n=be(),r=[`__proto__`,`prototype`,`constructor`],i=e=>!e.some(e=>r.includes(e));function a(e){let t=e.split(`.`),n=[];for(let e=0;e<t.length;e++){let r=t[e];for(;r[r.length-1]===`\\`&&t[e+1]!==void 0;)r=r.slice(0,-1)+`.`,r+=t[++e];n.push(r)}return i(n)?n:[]}t.exports={get(e,t,r){if(!n(e)||typeof t!=`string`)return r===void 0?e:r;let i=a(t);if(i.length!==0){for(let t=0;t<i.length;t++){if(!Object.prototype.propertyIsEnumerable.call(e,i[t]))return r;if(e=e[i[t]],e==null){if(t!==i.length-1)return r;break}}return e}},set(e,t,r){if(!n(e)||typeof t!=`string`)return e;let i=e,o=a(t);for(let t=0;t<o.length;t++){let i=o[t];n(e[i])||(e[i]={}),t===o.length-1&&(e[i]=r),e=e[i]}return i},delete(e,t){if(!n(e)||typeof t!=`string`)return!1;let r=a(t);for(let t=0;t<r.length;t++){let i=r[t];if(t===r.length-1)return delete e[i],!0;if(e=e[i],!n(e))return!1}},has(e,t){if(!n(e)||typeof t!=`string`)return!1;let r=a(t);if(r.length===0)return!1;for(let t=0;t<r.length;t++)if(n(e)){if(!(r[t]in e))return!1;e=e[r[t]]}else return!1;return!0}}})),Se=e(t(((e,t)=>{var n=ye(),r=xe().get;function i(e){return function(t,i){var a=0;return n(e).some(function(e){var n,o;if(typeof e==`function`?(n=e(t),o=e(i)):typeof e==`string`?(n=r(t,e),o=r(i,e)):(n=t,o=i),n===o){a=0;return}return typeof n==`string`&&typeof o==`string`?(a=n.localeCompare(o),a!==0):(a=n<o?-1:1,!0)}),a}}t.exports=i}))(),1);i(new URL(`.`,import.meta.url));async function Z(){return Ce()}function Ce(){return{transform:(e,t)=>{let n=!0,r=e.notes.map(e=>(n=!1,{...e,title:`BREAKING CHANGES`})),{type:i}=e;if(e.type===`feat`)i=`Features`;else if(e.type===`fix`)i=`Bug Fixes`;else if(e.type===`perf`)i=`Performance Improvements`;else if(e.type===`revert`||e.revert)i=`Reverts`;else if(n)return;else e.type===`docs`?i=`Documentation`:e.type===`style`?i=`Styles`:e.type===`refactor`?i=`Code Refactoring`:e.type===`test`?i=`Tests`:e.type===`build`?i=`Build System`:e.type===`ci`&&(i=`Continuous Integration`);let a=e.scope===`*`?``:e.scope,o=typeof e.hash==`string`?e.hash.substring(0,7):e.shortHash,s=[],{subject:c}=e;if(typeof c==`string`){let e=t.repository?`${t.host}/${t.owner}/${t.repository}`:t.repoUrl;e&&(e=`${e}/issues/`,c=c.replace(/#([0-9]+)/g,(t,n)=>(s.push(n),`[#${n}](${e}${n})`))),t.host&&(c=c.replace(/\B@([a-z0-9](?:-?[a-z0-9/]){0,38})/g,(e,n)=>n.includes(`/`)?`@${n}`:`[@${n}](${t.host}/${n})`))}let l=e.references.filter(e=>!s.includes(e.issue));return{notes:r,type:i,scope:a,shortHash:o,subject:c,references:l}},groupBy:`type`,commitGroupsSort:`title`,commitsSort:[`scope`,`subject`],noteGroupsSort:`title`,notesSort:Se.default}}function we(e){let t=2,n=0,r=0;return e.forEach(e=>{e.notes.length>0?(n+=e.notes.length,t=0):e.type===`feat`&&(r+=1,t===2&&(t=1))}),{level:t,reason:n===1?`There is ${n} BREAKING CHANGE and ${r} features`:`There are ${n} BREAKING CHANGES and ${r} features`}}async function Te(e){return{commits:{ignore:e?.ignoreCommits,merges:!1},parser:ve(),writer:await Z(),whatBump:we}}const Ee=(e,t)=>{if(e==null)throw TypeError(`Expected a raw commit`);let n=new _e(t).parse(e);return n.scope=n.scope??null,n.subject=n.subject??null,n.type=n.type??null,n};async function De(e,t=Ee,n){let r=await Te(),i=r.parser||r.parserOpts,a=n?.parser||n||{},o=t(e,{...i,fieldPattern:null,...a});return o.raw=e,o}function Q(e=[]){return e.filter(Boolean).join(` `)}const Oe=(e,t=`always`)=>{let n=e.header,r=e.footer;if(!n&&!r)return[!0];let i=!!n&&/^(\w*)(?:\((.*)\))?!: (.*)$/.test(n),a=!!r&&/^BREAKING[ -]CHANGE:/m.test(r),o=t===`never`,s=i===a;return[o?!s:s,Q([`breaking changes`,o?`must not`:`must`,`have both an exclamation mark in the header`,`and BREAKING CHANGE in the footer`,`to identify a breaking change`])]};var ke=t(((e,t)=>{var n=1/0,r=`[object Symbol]`,i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=`\\ud800-\\udfff`,s=`\\u0300-\\u036f\\ufe20-\\ufe23`,c=`\\u20d0-\\u20f0`,l=`\\u2700-\\u27bf`,u=`a-z\\xdf-\\xf6\\xf8-\\xff`,d=`\\xac\\xb1\\xd7\\xf7`,f=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,p=`\\u2000-\\u206f`,m=` \\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`,h=`A-Z\\xc0-\\xd6\\xd8-\\xde`,g=`\\ufe0e\\ufe0f`,_=d+f+p+m,v=`['’]`,y=`[`+o+`]`,b=`[`+_+`]`,x=`[`+s+c+`]`,S=`\\d+`,C=`[`+l+`]`,w=`[`+u+`]`,T=`[^`+o+_+S+l+u+h+`]`,E=`\\ud83c[\\udffb-\\udfff]`,D=`(?:`+x+`|`+E+`)`,O=`[^`+o+`]`,k=`(?:\\ud83c[\\udde6-\\uddff]){2}`,A=`[\\ud800-\\udbff][\\udc00-\\udfff]`,j=`[`+h+`]`,M=`\\u200d`,N=`(?:`+w+`|`+T+`)`,P=`(?:`+j+`|`+T+`)`,F=`(?:`+v+`(?:d|ll|m|re|s|t|ve))?`,I=`(?:`+v+`(?:D|LL|M|RE|S|T|VE))?`,L=D+`?`,R=`[`+g+`]?`,ee=`(?:`+M+`(?:`+[O,k,A].join(`|`)+`)`+R+L+`)*`,z=R+L+ee,te=`(?:`+[C,k,A].join(`|`)+`)`+z,ne=`(?:`+[O+x+`?`,x,k,A,y].join(`|`)+`)`,B=RegExp(v,`g`),re=RegExp(x,`g`),ie=RegExp(E+`(?=`+E+`)|`+ne+z,`g`),ae=RegExp([j+`?`+w+`+`+F+`(?=`+[b,j,`$`].join(`|`)+`)`,P+`+`+I+`(?=`+[b,j+N,`$`].join(`|`)+`)`,j+`?`+N+`+`+F,j+`+`+I,S,te].join(`|`),`g`),oe=RegExp(`[`+M+o+s+c+g+`]`),se=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ce={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`ss`},le=typeof global==`object`&&global&&global.Object===Object&&global,V=typeof self==`object`&&self&&self.Object===Object&&self,ue=le||V||Function(`return this`)();function de(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function fe(e){return e.split(``)}function H(e){return e.match(i)||[]}function U(e){return function(t){return e?.[t]}}var W=U(ce);function G(e){return oe.test(e)}function pe(e){return se.test(e)}function K(e){return G(e)?q(e):fe(e)}function q(e){return e.match(ie)||[]}function J(e){return e.match(ae)||[]}var me=Object.prototype.toString,Y=ue.Symbol,X=Y?Y.prototype:void 0,he=X?X.toString:void 0;function ge(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function _e(e){if(typeof e==`string`)return e;if(Se(e))return he?he.call(e):``;var t=e+``;return t==`0`&&1/e==-n?`-0`:t}function ve(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:ge(e,t,n)}function ye(e){return function(t){t=Z(t);var n=G(t)?K(t):void 0,r=n?n[0]:t.charAt(0),i=n?ve(n,1).join(``):t.slice(1);return r[e]()+i}}function be(e){return function(t){return de(De(Te(t).replace(B,``)),e,``)}}function xe(e){return!!e&&typeof e==`object`}function Se(e){return typeof e==`symbol`||xe(e)&&me.call(e)==r}function Z(e){return e==null?``:_e(e)}var Ce=be(function(e,t,n){return t=t.toLowerCase(),e+(n?we(t):t)});function we(e){return Ee(Z(e).toLowerCase())}function Te(e){return e=Z(e),e&&e.replace(a,W).replace(re,``)}var Ee=ye(`toUpperCase`);function De(e,t,n){return e=Z(e),t=n?void 0:t,t===void 0?pe(e)?J(e):H(e):e.match(t)||[]}t.exports=Ce})),Ae=t(((e,t)=>{var n=1/0,r=`[object Symbol]`,i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=`\\ud800-\\udfff`,s=`\\u0300-\\u036f\\ufe20-\\ufe23`,c=`\\u20d0-\\u20f0`,l=`\\u2700-\\u27bf`,u=`a-z\\xdf-\\xf6\\xf8-\\xff`,d=`\\xac\\xb1\\xd7\\xf7`,f=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,p=`\\u2000-\\u206f`,m=` \\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`,h=`A-Z\\xc0-\\xd6\\xd8-\\xde`,g=`\\ufe0e\\ufe0f`,_=d+f+p+m,v=`['’]`,y=`[`+_+`]`,b=`[`+s+c+`]`,x=`\\d+`,S=`[`+l+`]`,C=`[`+u+`]`,w=`[^`+o+_+x+l+u+h+`]`,T=`(?:`+b+`|\\ud83c[\\udffb-\\udfff])`,E=`[^`+o+`]`,D=`(?:\\ud83c[\\udde6-\\uddff]){2}`,O=`[\\ud800-\\udbff][\\udc00-\\udfff]`,k=`[`+h+`]`,A=`\\u200d`,j=`(?:`+C+`|`+w+`)`,M=`(?:`+k+`|`+w+`)`,N=`(?:`+v+`(?:d|ll|m|re|s|t|ve))?`,P=`(?:`+v+`(?:D|LL|M|RE|S|T|VE))?`,F=T+`?`,I=`[`+g+`]?`,L=`(?:`+A+`(?:`+[E,D,O].join(`|`)+`)`+I+F+`)*`,R=I+F+L,ee=`(?:`+[S,D,O].join(`|`)+`)`+R,z=RegExp(v,`g`),te=RegExp(b,`g`),ne=RegExp([k+`?`+C+`+`+N+`(?=`+[y,k,`$`].join(`|`)+`)`,M+`+`+P+`(?=`+[y,k+j,`$`].join(`|`)+`)`,k+`?`+j+`+`+N,k+`+`+P,x,ee].join(`|`),`g`),B=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`ss`},ie=typeof global==`object`&&global&&global.Object===Object&&global,ae=typeof self==`object`&&self&&self.Object===Object&&self,oe=ie||ae||Function(`return this`)();function se(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function ce(e){return e.match(i)||[]}function le(e){return function(t){return e?.[t]}}var V=le(re);function ue(e){return B.test(e)}function de(e){return e.match(ne)||[]}var fe=Object.prototype.toString,H=oe.Symbol,U=H?H.prototype:void 0,W=U?U.toString:void 0;function G(e){if(typeof e==`string`)return e;if(q(e))return W?W.call(e):``;var t=e+``;return t==`0`&&1/e==-n?`-0`:t}function pe(e){return function(t){return se(X(me(t).replace(z,``)),e,``)}}function K(e){return!!e&&typeof e==`object`}function q(e){return typeof e==`symbol`||K(e)&&fe.call(e)==r}function J(e){return e==null?``:G(e)}function me(e){return e=J(e),e&&e.replace(a,V).replace(te,``)}var Y=pe(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()});function X(e,t,n){return e=J(e),t=n?void 0:t,t===void 0?ue(e)?de(e):ce(e):e.match(t)||[]}t.exports=Y})),je=t(((e,t)=>{var n=1/0,r=`[object Symbol]`,i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=`\\ud800-\\udfff`,s=`\\u0300-\\u036f\\ufe20-\\ufe23`,c=`\\u20d0-\\u20f0`,l=`\\u2700-\\u27bf`,u=`a-z\\xdf-\\xf6\\xf8-\\xff`,d=`\\xac\\xb1\\xd7\\xf7`,f=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,p=`\\u2000-\\u206f`,m=` \\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`,h=`A-Z\\xc0-\\xd6\\xd8-\\xde`,g=`\\ufe0e\\ufe0f`,_=d+f+p+m,v=`['’]`,y=`[`+_+`]`,b=`[`+s+c+`]`,x=`\\d+`,S=`[`+l+`]`,C=`[`+u+`]`,w=`[^`+o+_+x+l+u+h+`]`,T=`(?:`+b+`|\\ud83c[\\udffb-\\udfff])`,E=`[^`+o+`]`,D=`(?:\\ud83c[\\udde6-\\uddff]){2}`,O=`[\\ud800-\\udbff][\\udc00-\\udfff]`,k=`[`+h+`]`,A=`\\u200d`,j=`(?:`+C+`|`+w+`)`,M=`(?:`+k+`|`+w+`)`,N=`(?:`+v+`(?:d|ll|m|re|s|t|ve))?`,P=`(?:`+v+`(?:D|LL|M|RE|S|T|VE))?`,F=T+`?`,I=`[`+g+`]?`,L=`(?:`+A+`(?:`+[E,D,O].join(`|`)+`)`+I+F+`)*`,R=I+F+L,ee=`(?:`+[S,D,O].join(`|`)+`)`+R,z=RegExp(v,`g`),te=RegExp(b,`g`),ne=RegExp([k+`?`+C+`+`+N+`(?=`+[y,k,`$`].join(`|`)+`)`,M+`+`+P+`(?=`+[y,k+j,`$`].join(`|`)+`)`,k+`?`+j+`+`+N,k+`+`+P,x,ee].join(`|`),`g`),B=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,re={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`ss`},ie=typeof global==`object`&&global&&global.Object===Object&&global,ae=typeof self==`object`&&self&&self.Object===Object&&self,oe=ie||ae||Function(`return this`)();function se(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function ce(e){return e.match(i)||[]}function le(e){return function(t){return e?.[t]}}var V=le(re);function ue(e){return B.test(e)}function de(e){return e.match(ne)||[]}var fe=Object.prototype.toString,H=oe.Symbol,U=H?H.prototype:void 0,W=U?U.toString:void 0;function G(e){if(typeof e==`string`)return e;if(q(e))return W?W.call(e):``;var t=e+``;return t==`0`&&1/e==-n?`-0`:t}function pe(e){return function(t){return se(X(me(t).replace(z,``)),e,``)}}function K(e){return!!e&&typeof e==`object`}function q(e){return typeof e==`symbol`||K(e)&&fe.call(e)==r}function J(e){return e==null?``:G(e)}function me(e){return e=J(e),e&&e.replace(a,V).replace(te,``)}var Y=pe(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function X(e,t,n){return e=J(e),t=n?void 0:t,t===void 0?ue(e)?de(e):ce(e):e.match(t)||[]}t.exports=Y})),Me=t(((e,t)=>{var n=1/0,r=`[object Symbol]`,i=`\\ud800-\\udfff`,a=`\\u0300-\\u036f\\ufe20-\\ufe23`,o=`\\u20d0-\\u20f0`,s=`\\ufe0e\\ufe0f`,c=`[`+i+`]`,l=`[`+a+o+`]`,u=`\\ud83c[\\udffb-\\udfff]`,d=`(?:`+l+`|`+u+`)`,f=`[^`+i+`]`,p=`(?:\\ud83c[\\udde6-\\uddff]){2}`,m=`[\\ud800-\\udbff][\\udc00-\\udfff]`,h=`\\u200d`,g=d+`?`,_=`[`+s+`]?`,v=`(?:`+h+`(?:`+[f,p,m].join(`|`)+`)`+_+g+`)*`,y=_+g+v,b=`(?:`+[f+l+`?`,l,p,m,c].join(`|`)+`)`,x=RegExp(u+`(?=`+u+`)|`+b+y,`g`),S=RegExp(`[`+h+i+a+o+s+`]`),C=typeof global==`object`&&global&&global.Object===Object&&global,w=typeof self==`object`&&self&&self.Object===Object&&self,T=C||w||Function(`return this`)();function E(e){return e.split(``)}function D(e){return S.test(e)}function O(e){return D(e)?k(e):E(e)}function k(e){return e.match(x)||[]}var A=Object.prototype.toString,j=T.Symbol,M=j?j.prototype:void 0,N=M?M.toString:void 0;function P(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function F(e){if(typeof e==`string`)return e;if(ee(e))return N?N.call(e):``;var t=e+``;return t==`0`&&1/e==-n?`-0`:t}function I(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:P(e,t,n)}function L(e){return function(t){t=z(t);var n=D(t)?O(t):void 0,r=n?n[0]:t.charAt(0),i=n?I(n,1).join(``):t.slice(1);return r[e]()+i}}function R(e){return!!e&&typeof e==`object`}function ee(e){return typeof e==`symbol`||R(e)&&A.call(e)==r}function z(e){return e==null?``:F(e)}t.exports=L(`toUpperCase`)})),Ne=t(((e,t)=>{var n=1/0,r=`[object Symbol]`,i=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,o=`\\ud800-\\udfff`,s=`\\u0300-\\u036f\\ufe20-\\ufe23`,c=`\\u20d0-\\u20f0`,l=`\\u2700-\\u27bf`,u=`a-z\\xdf-\\xf6\\xf8-\\xff`,d=`\\xac\\xb1\\xd7\\xf7`,f=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,p=`\\u2000-\\u206f`,m=` \\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`,h=`A-Z\\xc0-\\xd6\\xd8-\\xde`,g=`\\ufe0e\\ufe0f`,_=d+f+p+m,v=`['’]`,y=`[`+o+`]`,b=`[`+_+`]`,x=`[`+s+c+`]`,S=`\\d+`,C=`[`+l+`]`,w=`[`+u+`]`,T=`[^`+o+_+S+l+u+h+`]`,E=`\\ud83c[\\udffb-\\udfff]`,D=`(?:`+x+`|`+E+`)`,O=`[^`+o+`]`,k=`(?:\\ud83c[\\udde6-\\uddff]){2}`,A=`[\\ud800-\\udbff][\\udc00-\\udfff]`,j=`[`+h+`]`,M=`\\u200d`,N=`(?:`+w+`|`+T+`)`,P=`(?:`+j+`|`+T+`)`,F=`(?:`+v+`(?:d|ll|m|re|s|t|ve))?`,I=`(?:`+v+`(?:D|LL|M|RE|S|T|VE))?`,L=D+`?`,R=`[`+g+`]?`,ee=`(?:`+M+`(?:`+[O,k,A].join(`|`)+`)`+R+L+`)*`,z=R+L+ee,te=`(?:`+[C,k,A].join(`|`)+`)`+z,ne=`(?:`+[O+x+`?`,x,k,A,y].join(`|`)+`)`,B=RegExp(v,`g`),re=RegExp(x,`g`),ie=RegExp(E+`(?=`+E+`)|`+ne+z,`g`),ae=RegExp([j+`?`+w+`+`+F+`(?=`+[b,j,`$`].join(`|`)+`)`,P+`+`+I+`(?=`+[b,j+N,`$`].join(`|`)+`)`,j+`?`+N+`+`+F,j+`+`+I,S,te].join(`|`),`g`),oe=RegExp(`[`+M+o+s+c+g+`]`),se=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ce={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`ss`},le=typeof global==`object`&&global&&global.Object===Object&&global,V=typeof self==`object`&&self&&self.Object===Object&&self,ue=le||V||Function(`return this`)();function de(e,t,n,r){var i=-1,a=e?e.length:0;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function fe(e){return e.split(``)}function H(e){return e.match(i)||[]}function U(e){return function(t){return e?.[t]}}var W=U(ce);function G(e){return oe.test(e)}function pe(e){return se.test(e)}function K(e){return G(e)?q(e):fe(e)}function q(e){return e.match(ie)||[]}function J(e){return e.match(ae)||[]}var me=Object.prototype.toString,Y=ue.Symbol,X=Y?Y.prototype:void 0,he=X?X.toString:void 0;function ge(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}function _e(e){if(typeof e==`string`)return e;if(Se(e))return he?he.call(e):``;var t=e+``;return t==`0`&&1/e==-n?`-0`:t}function ve(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:ge(e,t,n)}function ye(e){return function(t){t=Z(t);var n=G(t)?K(t):void 0,r=n?n[0]:t.charAt(0),i=n?ve(n,1).join(``):t.slice(1);return r[e]()+i}}function be(e){return function(t){return de(Ee(Ce(t).replace(B,``)),e,``)}}function xe(e){return!!e&&typeof e==`object`}function Se(e){return typeof e==`symbol`||xe(e)&&me.call(e)==r}function Z(e){return e==null?``:_e(e)}function Ce(e){return e=Z(e),e&&e.replace(a,W).replace(re,``)}var we=be(function(e,t,n){return e+(n?` `:``)+Te(t)}),Te=ye(`toUpperCase`);function Ee(e,t,n){return e=Z(e),t=n?void 0:t,t===void 0?pe(e)?J(e):H(e):e.match(t)||[]}t.exports=we})),Pe=e(ke(),1),Fe=e(Ae(),1),Ie=e(je(),1),Le=e(Me(),1),Re=e(Ne(),1);function ze(e,t){switch(t){case`camel-case`:return(0,Pe.default)(e);case`kebab-case`:return(0,Fe.default)(e);case`snake-case`:return(0,Ie.default)(e);case`pascal-case`:return(0,Le.default)((0,Pe.default)(e));case`start-case`:return(0,Re.default)(e);case`upper-case`:case`uppercase`:return e.toUpperCase();case`sentence-case`:case`sentencecase`:return(0,Le.default)(e);case`lower-case`:case`lowercase`:case`lowerCase`:return e.toLowerCase();default:throw TypeError(`to-case: Unknown target case "${t}"`)}}var Be=Ve;function Ve(e=``,t=`lowercase`){let n=String(e).replace(/`.*?`|".*?"|'.*?'/g,``).trim(),r=ze(n,t);return r===``||r.match(/^\d/)?!0:r===n}var He=(e,t=[])=>e===void 0||!Array.isArray(t)?!1:t.indexOf(e)>-1,$=(e,t)=>typeof e==`string`&&e.length<=t;const Ue=/\bhttps?:\/\/\S+/;var We=(e,t)=>typeof e==`string`&&e.split(/\r?\n/).every(e=>Ue.test(e)||$(e,t)),Ge=(e,t)=>typeof e==`string`&&e.length>=t,Ke=e=>typeof e==`string`&&e.length>0;const qe=e=>e===`never`,Je=(e,t=`always`,n=[])=>{let{body:r}=e;if(!r)return[!0];let i=(Array.isArray(n)?n:[n]).map(e=>typeof e==`string`?{when:`always`,case:e}:e),a=i.some(e=>{let t=Be(r,e.case);return qe(e.when)?!t:t}),o=i.map(e=>e.case).join(`, `);return[qe(t)?!a:a,Q([`body must`,qe(t)?`not`:null,`be ${o}`])]},Ye=(e,t=`always`)=>{let n=t===`never`,r=Ke(e.body||``);return[n?r:!r,Q([`body`,n?`may not`:`must`,`be empty`])]},Xe=(e,t=`always`,n=`.`)=>{let r=e.body;if(!r)return[!0];let i=t===`never`,a=r[r.length-1]===n;return[i?!a:a,Q([`body`,i?`may not`:`must`,`end with full stop`])]};function Ze(e){return typeof e==`string`?e.split(/(?:\r?\n)/):[]}const Qe=(e,t)=>{if(!e.body)return[!0];let n=t===`never`,[r]=Ze(e.raw).slice(1),i=r===``;return[n?!i:i,Q([`body`,n?`may not`:`must`,`have leading blank line`])]},$e=(e,t=void 0,n=0)=>{let r=e.body;return r?[$(r,n),`body must not be longer than ${n} characters`]:[!0]},et=(e,t=void 0,n=0)=>{let r=e.body;return r?[We(r,n),`body's lines must not be longer than ${n} characters`]:[!0]},tt=(e,t=void 0,n=0)=>e.body?[Ge(e.body,n),`body must not be shorter than ${n} characters`]:[!0],nt=(e,t=`always`)=>{let n=t===`never`,r=Ke(e.footer||``);return[n?r:!r,Q([`footer`,n?`may not`:`must`,`be empty`])]},rt=(e,t=`always`)=>{if(!e.footer)return[!0];let n=t===`never`,r=Ze(e.raw),i=Ze(e.footer),a=r.indexOf(i[0]),[o]=r.slice(a-1),s=o===``;return[n?!s:s,Q([`footer`,n?`may not`:`must`,`have leading blank line`])]},it=(e,t=void 0,n=0)=>{let r=e.footer;return r?[$(r,n),`footer must not be longer than ${n} characters`]:[!0]},at=(e,t=void 0,n=0)=>{let r=e.footer;return r?[We(r,n),`footer's lines must not be longer than ${n} characters`]:[!0]},ot=(e,t=void 0,n=0)=>e.footer?[Ge(e.footer,n),`footer must not be shorter than ${n} characters`]:[!0],st=e=>e===`never`,ct=(e,t=`always`,n=[])=>{let{header:r}=e;if(typeof r!=`string`||!r.match(/^[a-z]/i))return[!0];let i=(Array.isArray(n)?n:[n]).map(e=>typeof e==`string`?{when:`always`,case:e}:e),a=i.some(e=>{let t=Be(r,e.case);return st(e.when)?!t:t}),o=i.map(e=>e.case).join(`, `);return[st(t)?!a:a,Q([`header must`,st(t)?`not`:null,`be ${o}`])]},lt=(e,t=`always`,n=`.`)=>{let{header:r}=e,i=t===`never`,a=r?.[r.length-1]===n;return[i?!a:a,Q([`header`,i?`may not`:`must`,`end with full stop`])]},ut=(e,t=void 0,n=0)=>[$(e.header,n),`header must not be longer than ${n} characters, current length is ${e.header?.length}`],dt=(e,t=void 0,n=0)=>[Ge(e.header,n),`header must not be shorter than ${n} characters, current length is ${e.header?.length}`],ft=e=>{let{header:t}=e;if(!t)return[!0];let n=t.length>t.trimStart().length,r=t.length>t.trimEnd().length;return n&&r?[!1,Q([`header`,`must not be surrounded by whitespace`])]:n?[!1,Q([`header`,`must not start with whitespace`])]:r?[!1,Q([`header`,`must not end with whitespace`])]:[!0]},pt=(e,t=`never`)=>{let n=t===`always`,r=e.references.length>0;return[n?!r:r,Q([`references`,n?`must`:`may not`,`be empty`])]},mt=e=>e===`never`,ht=(e,t=`always`,n=[])=>{let{scope:r}=e;if(!r)return[!0];let i=!Array.isArray(n)&&typeof n!=`string`,a=(i?n.cases:Array.isArray(n)?n:[n]).map(e=>typeof e==`string`?{when:`always`,case:e}:e),o=(i&&n.delimiters?.length?n.delimiters:[`/`,`\\`,`,`]).map(e=>e===`,`?`, ?`:e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)),s=new RegExp(o.join(`|`)),c=r.split(s),l=a.some(e=>{let t=c.every(t=>s.test(t)||Be(t,e.case));return mt(e.when)?!t:t}),u=a.map(e=>e.case).join(`, `);return[mt(t)?!l:l,Q([`scope must`,mt(t)?`not`:null,`be ${u}`])]},gt=({scope:e},t=`always`,n=[])=>{if(!e)return[!0];let r=n.length?n:[`/`,`\\`,`,`],i=e.match(/[^A-Za-z0-9-_]+/g)??[],a=[...new Set(i.map(e=>e.trim()===`,`?`,`:e))].every(e=>He(e,r)),o=t===`never`;return[o?!a:a,Q([`scope delimiters must ${o?`not `:``}be one of [${r.join(`, `)}]`])]},_t=(e,t=`never`)=>{let n=t===`always`,r=Ke(e.scope||``);return[n?!r:r,Q([`scope`,n?`must`:`may not`,`be empty`])]},vt=({scope:e},t=`always`,n=[])=>{let r=Array.isArray(n)?n:n.scopes;if(!e||!r.length)return[!0,``];let i=(Array.isArray(n)||!n.delimiters?.length?[`/`,`\\`,`,`]:n.delimiters).map(e=>e===`,`?`, ?`:e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)),a=e.split(new RegExp(i.join(`|`))),o=[`scope must`,`be one of [${r.join(`, `)}]`],s=e=>He(e,r),c;return t===`never`?(c=!a.some(s)&&!s(e),o.splice(1,0,`not`)):c=a.every(s)||s(e),[c,Q(o)]},yt=(e,t=void 0,n=0)=>{let r=e.scope;return r?[$(r,n),`scope must not be longer than ${n} characters`]:[!0]},bt=(e,t=void 0,n=0)=>{let r=e.scope;return r?[Ge(r,n),`scope must not be shorter than ${n} characters`]:[!0]},xt=/^\(cherry picked from commit [0-9a-f]{7,64}\)$/i,St=(e,t=`always`,n=``)=>{let r=Ze(e.raw).filter(e=>!e.startsWith(`#`)&&!xt.test(e.trim())&&!!e),i=r[r.length-1],a=t===`never`,o=i?i.startsWith(n):!1;return[a?!o:o,Q([`message`,a?`must not`:`must`,`be signed off`])]},Ct=/^[\p{Ll}\p{Lu}\p{Lt}]/iu,wt=e=>e===`never`,Tt=(e,t=`always`,n=[])=>{let{subject:r}=e;if(typeof r!=`string`||!r.match(Ct))return[!0];let i=(Array.isArray(n)?n:[n]).map(e=>typeof e==`string`?{when:`always`,case:e}:e),a=i.some(e=>{let t=Be(r,e.case);return wt(e.when)?!t:t}),o=i.map(e=>e.case).join(`, `);return[wt(t)?!a:a,Q([`subject must`,wt(t)?`not`:null,`be ${o}`])]},Et=(e,t=`always`)=>{let n=t===`never`,r=Ke(e.subject||``);return[n?r:!r,Q([`subject`,n?`may not`:`must`,`be empty`])]},Dt=(e,t=`always`,n=`.`)=>{let r=e.header?.indexOf(`:`)||0;if(r>0&&r===e.header.length-1)return[!0];let i=e.header,a=t===`never`,o=i?.[i.length-1]===n;return i?.slice(-3)===`...`&&(o=!1),[a?!o:o,Q([`subject`,a?`may not`:`must`,`end with full stop`])]},Ot=(e,t=void 0,n=0)=>{let r=e.subject;return r?[$(r,n),`subject must not be longer than ${n} characters`]:[!0]},kt=(e,t=void 0,n=0)=>{let r=e.subject;return r?[Ge(r,n),`subject must not be shorter than ${n} characters`]:[!0]},At=(e,t=`always`)=>{let n=e.header;if(!n)return[!0,``];let r=t===`never`,i=/^(\w*)(?:\((.*)\))?!: (.*)$/.test(n);return[r?!i:i,Q([`subject`,r?`must not`:`must`,`have an exclamation mark in the subject to identify a breaking change`])]},jt=e=>e===`never`,Mt=(e,t=`always`,n=[])=>{let{type:r}=e;if(!r)return[!0];let i=(Array.isArray(n)?n:[n]).map(e=>typeof e==`string`?{when:`always`,case:e}:e),a=i.some(e=>{let t=Be(r,e.case);return jt(e.when)?!t:t}),o=i.map(e=>e.case).join(`, `);return[jt(t)?!a:a,Q([`type must`,jt(t)?`not`:null,`be ${o}`])]},Nt=(e,t=`always`)=>{let n=t===`never`,r=Ke(e.type||``);return[n?r:!r,Q([`type`,n?`may not`:`must`,`be empty`])]},Pt=(e,t=`always`,n=[])=>{let{type:r}=e;if(!r)return[!0];let i=t===`never`,a=He(r,n);return[i?!a:a,Q([`type must`,i?`not`:null,`be one of [${n.join(`, `)}]`])]},Ft=(e,t=void 0,n=0)=>{let r=e.type;return r?[$(r,n),`type must not be longer than ${n} characters`]:[!0]},It=(e,t=void 0,n=0)=>{let r=e.type;return r?[Ge(r,n),`type must not be shorter than ${n} characters`]:[!0]};var Lt={"body-case":Je,"body-empty":Ye,"body-full-stop":Xe,"body-leading-blank":Qe,"body-max-length":$e,"body-max-line-length":et,"body-min-length":tt,"breaking-change-exclamation-mark":Oe,"footer-empty":nt,"footer-leading-blank":rt,"footer-max-length":it,"footer-max-line-length":at,"footer-min-length":ot,"header-case":ct,"header-full-stop":lt,"header-max-length":ut,"header-min-length":dt,"header-trim":ft,"references-empty":pt,"scope-case":ht,"scope-delimiter-style":gt,"scope-empty":_t,"scope-enum":vt,"scope-max-length":yt,"scope-min-length":bt,"signed-off-by":St,"subject-case":Tt,"subject-empty":Et,"subject-exclamation-mark":At,"subject-full-stop":Dt,"subject-max-length":Ot,"subject-min-length":kt,"type-case":Mt,"type-empty":Nt,"type-enum":Pt,"type-max-length":Ft,"type-min-length":It},Rt;(function(e){e[e.Disabled=0]=`Disabled`,e[e.Warning=1]=`Warning`,e[e.Error=2]=`Error`})(Rt||={});var zt;(function(e){e[e.User=0]=`User`,e[e.Qualified=1]=`Qualified`})(zt||={});const Bt=({header:e,body:t,footer:n})=>{let r=e;return r=t?`${r}\n\n${t}`:r,r=n?`${r}\n\n${n}`:r,r||``};async function Vt(e,t,r){let i=r||{defaultIgnores:void 0,ignores:void 0},a=t||{};if(de(e,{defaults:i.defaultIgnores,ignores:i.ignores}))return{valid:!0,errors:[],warnings:[],input:e};let o=e===``?{header:null,body:null,footer:null}:await De(e,void 0,i.parserOpts);if(o.header===null&&o.body===null&&o.footer===null)return{valid:!0,errors:[],warnings:[],input:e};let s=new Map(Object.entries(Lt));i.plugins&&Object.values(i.plugins).forEach(e=>{e.rules&&Object.keys(e.rules).forEach(t=>s.set(t,e.rules[t]))});let c=Object.keys(a).filter(e=>typeof s.get(e)!=`function`);if(c.length>0){let e=[...s.keys()];throw RangeError([`Found rules without implementation: ${c.join(`, `)}.`,`Supported rules are: ${e.join(`, `)}.`].join(`
4
- `))}let l=Object.entries(a).map(([e,t])=>{if(!Array.isArray(t))return Error(`config for rule ${e} must be array, received ${n.inspect(t)} of type ${typeof t}`);let[r]=t;if(r===Rt.Disabled&&t.length===1)return null;let[,i]=t;return typeof r!=`number`||isNaN(r)?Error(`level for rule ${e} must be number, received ${n.inspect(r)} of type ${typeof r}`):t.length<2||t.length>3?Error(`config for rule ${e} must be 2 or 3 items long, received ${n.inspect(t)} of length ${t.length}`):r<0||r>2?RangeError(`level for rule ${e} must be between 0 and 2, received ${n.inspect(r)}`):typeof i==`string`?i!==`never`&&i!==`always`?Error(`condition for rule ${e} must be "always" or "never", received ${n.inspect(i)}`):null:Error(`condition for rule ${e} must be string, received ${n.inspect(i)} of type ${typeof i}`)}).filter(e=>e instanceof Error);if(l.length>0)throw Error(l.map(e=>e.message).join(`
5
- `));let u=Object.entries(a).filter(([,e])=>!!e&&e.length&&e[0]>0).map(async e=>{let[t,n]=e,[r,i,a]=n,c=s.get(t);if(!c)throw Error(`Could not find rule implementation for ${t}`);let[l,u]=await c(o,i,a);return{level:r,valid:l,name:t,message:u}}),d=(await Promise.all(u)).filter(e=>e!==null),f=d.filter(e=>e.level===Rt.Error&&!e.valid),p=d.filter(e=>e.level===Rt.Warning&&!e.valid);return{valid:f.length===0,errors:f,warnings:p,input:Bt(o)}}export{Vt as default};
@@ -1 +0,0 @@
1
- import{resolve as e}from"node:path";import{isAbsolute as t,resolve as n}from"path";import{readFileSync as r,statSync as i}from"fs";import{createRequire as a}from"module";import{fileURLToPath as o}from"url";import{readFile as s}from"node:fs/promises";const c=process.cwd(),l=a(import.meta.url);function u(e,r=c){return e.startsWith(`.`)?n(r,e):t(e)?e:l.resolve(e)}function d(e){try{return i(u(e)),!0}catch{return!1}}function f(e){try{let t=r(u(e),`utf8`);return JSON.parse(t)}catch{return{}}}function p(e,t={}){let n=f(`./package.json`);if(e){let{[e]:r=t}=n;return r}return n}const m={"body-leading-blank":[1,`always`],"body-max-line-length":[2,`always`,100],"footer-leading-blank":[1,`always`],"footer-max-line-length":[2,`always`,100],"header-max-length":[2,`always`,100],"subject-case":[0],"subject-empty":[2,`never`],"subject-full-stop":[2,`never`,`.`],"type-case":[2,`always`,`lower-case`],"type-empty":[2,`never`],"type-enum":[2,`always`,[`build`,`chore`,`ci`,`docs`,`feat`,`fix`,`perf`,`refactor`,`revert`,`style`,`test`]],"scope-case":[0],"body-case":[0],"header-case":[0]};function h(){return e(process.cwd(),`.git/COMMIT_EDITMSG`)}function g(){return s(h(),`utf8`)}async function _(){let e=await g(),t=await import(`./lint-CYF_OXOq.mjs`).then(e=>e.default.default||e.default),n=await import(`./lib-7I1NoRZ3.mjs`).then(e=>e.default.default||e.default),r=await t(e,m);return{result:r,output:await n({results:[r]})}}function v(e){e.command(`commit`,`Lint git commit message`,{},()=>{_().then(({result:e,output:t})=>{e.valid?console.log(`Pass.`):(console.log(`Fail:`),console.log(t),process.exitCode=1)}).catch(e=>{console.error(e),process.exitCode=1})})}function y(e){let t=Object.entries(e).map(([e,t])=>[e,t.filter(Boolean)]).filter(([e,t])=>t.length);return t.length>0?Object.fromEntries(t):void 0}function b({garou:e,stylelint:t,eslint:n,prettier:r}){let i=process.stdin.isTTY?` --color`:``;return y({"*.{vue,html,htm,md}":[e&&`garou`,r&&`prettier -w -u${i}`,t&&`stylelint --fix -- ${i}`,n&&`eslint --fix ${i}`],"*.{ts,tsx,mts,cts}":[e&&`garou`,r&&`prettier -w -u${i}`,n&&`eslint --fix ${i}`],"*.{js,jsx,mjs,cjs,wxs,qs}":[e&&`garou`,r&&`prettier -w -u${i}`,n&&`eslint --fix ${i}`],"*.{c,sc,le,wx,q,tt,jx,ac}ss":[e&&`garou`,r&&`prettier -w -u${i}`,t&&`stylelint --fix -- ${i}`],"*.{json,yml,yaml,svg}":[e&&`garou`,r&&`prettier -w -u${i}`],"{*.{jsonc,webmanifest,editorconfig,toml},.{babel,npm}rc}":[r&&`prettier -w -u${i}`],"{*.jenkinsfile,{j,J}enkinsfile}":[r&&`prettier -w -u${i}`],"yarn.lock":[e&&`garou`]})}function x(){let e=p(`devDependencies`),t=`prettier`in e,n=`eslint`in e,r=`stylelint`in e;return{garou:`garou`in e,stylelint:r,eslint:n,prettier:t}}async function S(){let{default:e}=await import(`./lib-CpGfI23z.mjs`);return e({allowEmpty:!0,concurrent:!0,config:b(x()),cwd:process.cwd(),debug:!1,quiet:!1,relative:!1,shell:!1,stash:!0})}function C(e){e.command(`staged`,`Lint and format git staged files`,{},()=>{S().then(e=>{process.exitCode=e?0:1}).catch(e=>{console.error(e),process.exitCode=1})})}export{v as n,d as r,C as t};
@@ -1 +0,0 @@
1
- import{i as e,t}from"./chunk-tuRmWmEN.mjs";const n=(e=0)=>t=>`\u001B[${t+e}m`,r=(e=0)=>t=>`\u001B[${38+e};5;${t}m`,i=(e=0)=>(t,n,r)=>`\u001B[${38+e};2;${t};${n};${r}m`,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(a.modifier);const o=Object.keys(a.color),s=Object.keys(a.bgColor);[...o,...s];function c(){let e=new Map;for(let[t,n]of Object.entries(a)){for(let[t,r]of Object.entries(n))a[t]={open:`\u001B[${r[0]}m`,close:`\u001B[${r[1]}m`},n[t]=a[t],e.set(r[0],r[1]);Object.defineProperty(a,t,{value:n,enumerable:!1})}return Object.defineProperty(a,`codes`,{value:e,enumerable:!1}),a.color.close=`\x1B[39m`,a.bgColor.close=`\x1B[49m`,a.color.ansi=n(),a.color.ansi256=r(),a.color.ansi16m=i(),a.bgColor.ansi=n(10),a.bgColor.ansi256=r(10),a.bgColor.ansi16m=i(10),Object.defineProperties(a,{rgbToAnsi256:{value(e,t,n){return e===t&&t===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(n/255*5)},enumerable:!1},hexToRgb:{value(e){let t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[n]=t;n.length===3&&(n=[...n].map(e=>e+e).join(``));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>a.rgbToAnsi256(...a.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value(e){if(e<8)return 30+e;if(e<16)return 90+(e-8);let t,n,r;if(e>=232)t=((e-232)*10+8)/255,n=t,r=t;else{e-=16;let i=e%36;t=Math.floor(e/36)/5,n=Math.floor(i/6)/5,r=i%6/5}let i=Math.max(t,n,r)*2;if(i===0)return 30;let a=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(t));return i===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(e,t,n)=>a.ansi256ToAnsi(a.rgbToAnsi256(e,t,n)),enumerable:!1},hexToAnsi:{value:e=>a.ansi256ToAnsi(a.hexToAnsi256(e)),enumerable:!1}}),a}const l=c();function u({onlyFirst:e=!1}={}){return RegExp(`(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]`,e?void 0:`g`)}const d=u();function f(e){if(typeof e!=`string`)throw TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(d,``)}function p(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function m(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function h(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}function g(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`)}function _(e,{ambiguousAsWide:t=!1}={}){return g(e),m(e)||h(e)||t&&p(e)?2:1}var v=e(t(((e,t)=>{t.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}))(),1);const y=new Intl.Segmenter,b=/^\p{Default_Ignorable_Code_Point}$/u;function x(e,t={}){if(typeof e!=`string`||e.length===0)return 0;let{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:r=!1}=t;if(r||(e=f(e)),e.length===0)return 0;let i=0,a={ambiguousAsWide:!n};for(let{segment:t}of y.segment(e)){let e=t.codePointAt(0);if(!(e<=31||e>=127&&e<=159)&&!(e>=8203&&e<=8207||e===65279)&&!(e>=768&&e<=879||e>=6832&&e<=6911||e>=7616&&e<=7679||e>=8400&&e<=8447||e>=65056&&e<=65071)&&!(e>=55296&&e<=57343)&&!(e>=65024&&e<=65039)&&!b.test(t)){if((0,v.default)().test(t)){i+=2;continue}i+=_(e,a)}}return i}export{l as a,f as i,m as n,h as r,x as t};