@nice-move/cli 0.11.21 → 0.11.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/216.mjs +1 -1
- package/dist/284.mjs +1 -0
- package/dist/652.mjs +1 -0
- package/dist/{849.mjs → 753.mjs} +1 -1
- package/dist/799.mjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/cmd/git.mjs +1 -1
- package/dist/cmd/lint.mjs +1 -1
- package/dist/runtime.mjs +1 -1
- package/dist/vendor.mjs +1 -0
- package/package.json +6 -6
- package/dist/312.mjs +0 -1
- package/dist/828.mjs +0 -1
package/dist/{849.mjs → 753.mjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const __webpack_id__=
|
|
1
|
+
export const __webpack_id__=753;export const __webpack_ids__=[753];export const __webpack_modules__={2753:(r,e,n)=>{n.r(e),n.d(e,{default:()=>a,format:()=>l,formatResult:()=>i});var t=n(8127);const o=[" ","\u26a0","\u2716"],s=["white","yellow","red"];function l(r={},e={}){const{results:n=[]}=r,o=r=>function(r,e={}){const{color:n=!0}=e,{errors:o=[],warnings:s=[],input:l=""}=r;if(!l)return[""];const i=n?t.Ay.gray("\u29d7"):"\u29d7",a=n?t.Ay.bold(l):l,c=o.length>0||s.length>0;return e.verbose||c?[`${i} input: ${a}`]:[]}(r,e),s=r=>i(r,e);return n.filter((r=>Array.isArray(r.warnings)||Array.isArray(r.errors))).map((r=>[...o(r),...s(r)])).reduce(((r,e)=>Array.isArray(e)?[...r,...e]:[...r,e]),[]).join("\n")}function i(r={},e={}){const{signs:n=o,colors:l=s,color:i=!0}=e,{errors:a=[],warnings:c=[]}=r,g=[...a,...c].map((r=>{const e=n[r.level]||"",o=l[r.level]||"white",s=i?t.Ay[o](e):e,a=i?t.Ay.grey(`[${r.name}]`):`[${r.name}]`;return`${s} ${r.message} ${a}`})),u=function(r){return(r.errors||[]).length>0?"\u2716":(r.warnings||[]).length?"\u26a0":"\u2714"}(r),y=function(r){return(r.errors||[]).length>0?"red":(r.warnings||[]).length?"yellow":"green"}(r),p=i?t.Ay[y](u):u,d=a.length,_=c.length,f=g.length>0,h=e.verbose||f?`${p} found ${d} problems, ${_} warnings`:void 0,w=i&&"string"==typeof h?t.Ay.bold(h):h,A=f&&e.helpUrl?`\u24d8 Get help: ${e.helpUrl}`:void 0;return[...g,f?"":void 0,w,A,f?"":void 0].filter((r=>"string"==typeof r))}const a=l}};
|
package/dist/799.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const __webpack_id__=799;export const __webpack_ids__=[799];export const __webpack_modules__={3490:(D,u,F)=>{F.d(u,{Ay:()=>A});const C=(D=0)=>u=>`\x1b[${u+D}m`,E=(D=0)=>u=>`\x1b[${38+D};5;${u}m`,B=(D=0)=>(u,F,C)=>`\x1b[${38+D};2;${u};${F};${C}m`,e={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(e.modifier),Object.keys(e.color),Object.keys(e.bgColor);const A=function(){const D=new Map;for(const[u,F]of Object.entries(e)){for(const[u,C]of Object.entries(F))e[u]={open:`\x1b[${C[0]}m`,close:`\x1b[${C[1]}m`},F[u]=e[u],D.set(C[0],C[1]);Object.defineProperty(e,u,{value:F,enumerable:!1})}return Object.defineProperty(e,"codes",{value:D,enumerable:!1}),e.color.close="\x1b[39m",e.bgColor.close="\x1b[49m",e.color.ansi=C(),e.color.ansi256=E(),e.color.ansi16m=B(),e.bgColor.ansi=C(10),e.bgColor.ansi256=E(10),e.bgColor.ansi16m=B(10),Object.defineProperties(e,{rgbToAnsi256:{value:(D,u,F)=>D===u&&u===F?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(u/255*5)+Math.round(F/255*5),enumerable:!1},hexToRgb:{value:D=>{const u=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!u)return[0,0,0];let[F]=u;3===F.length&&(F=[...F].map((D=>D+D)).join(""));const C=Number.parseInt(F,16);return[C>>16&255,C>>8&255,255&C]},enumerable:!1},hexToAnsi256:{value:D=>e.rgbToAnsi256(...e.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value:D=>{if(D<8)return 30+D;if(D<16)return D-8+90;let u,F,C;if(D>=232)u=(10*(D-232)+8)/255,F=u,C=u;else{const E=(D-=16)%36;u=Math.floor(D/36)/5,F=Math.floor(E/6)/5,C=E%6/5}const E=2*Math.max(u,F,C);if(0===E)return 30;let B=30+(Math.round(C)<<2|Math.round(F)<<1|Math.round(u));return 2===E&&(B+=60),B},enumerable:!1},rgbToAnsi:{value:(D,u,F)=>e.ansi256ToAnsi(e.rgbToAnsi256(D,u,F)),enumerable:!1},hexToAnsi:{value:D=>e.ansi256ToAnsi(e.hexToAnsi256(D)),enumerable:!1}}),e}()},8001:(D,u,F)=>{function C(D,{ambiguousAsWide:u=!1}={}){return function(D){if(!Number.isSafeInteger(D))throw new TypeError(`Expected a code point, got \`${typeof D}\`.`)}(D),12288===(F=D)||F>=65281&&F<=65376||F>=65504&&F<=65510||function(D){return D>=4352&&D<=4447||8986===D||8987===D||9001===D||9002===D||D>=9193&&D<=9196||9200===D||9203===D||9725===D||9726===D||9748===D||9749===D||D>=9776&&D<=9783||D>=9800&&D<=9811||9855===D||D>=9866&&D<=9871||9875===D||9889===D||9898===D||9899===D||9917===D||9918===D||9924===D||9925===D||9934===D||9940===D||9962===D||9970===D||9971===D||9973===D||9978===D||9981===D||9989===D||9994===D||9995===D||10024===D||10060===D||10062===D||D>=10067&&D<=10069||10071===D||D>=10133&&D<=10135||10160===D||10175===D||11035===D||11036===D||11088===D||11093===D||D>=11904&&D<=11929||D>=11931&&D<=12019||D>=12032&&D<=12245||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12353&&D<=12438||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12773||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=42124||D>=42128&&D<=42182||D>=43360&&D<=43388||D>=44032&&D<=55203||D>=63744&&D<=64255||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=94176&&D<=94180||94192===D||94193===D||D>=94208&&D<=100343||D>=100352&&D<=101589||D>=101631&&D<=101640||D>=110576&&D<=110579||D>=110581&&D<=110587||110589===D||110590===D||D>=110592&&D<=110882||110898===D||D>=110928&&D<=110930||110933===D||D>=110948&&D<=110951||D>=110960&&D<=111355||D>=119552&&D<=119638||D>=119648&&D<=119670||126980===D||127183===D||127374===D||D>=127377&&D<=127386||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||127568===D||127569===D||D>=127584&&D<=127589||D>=127744&&D<=127776||D>=127789&&D<=127797||D>=127799&&D<=127868||D>=127870&&D<=127891||D>=127904&&D<=127946||D>=127951&&D<=127955||D>=127968&&D<=127984||127988===D||D>=127992&&D<=128062||128064===D||D>=128066&&D<=128252||D>=128255&&D<=128317||D>=128331&&D<=128334||D>=128336&&D<=128359||128378===D||128405===D||128406===D||128420===D||D>=128507&&D<=128591||D>=128640&&D<=128709||128716===D||D>=128720&&D<=128722||D>=128725&&D<=128727||D>=128732&&D<=128735||128747===D||128748===D||D>=128756&&D<=128764||D>=128992&&D<=129003||129008===D||D>=129292&&D<=129338||D>=129340&&D<=129349||D>=129351&&D<=129535||D>=129648&&D<=129660||D>=129664&&D<=129673||D>=129679&&D<=129734||D>=129742&&D<=129756||D>=129759&&D<=129769||D>=129776&&D<=129784||D>=131072&&D<=196605||D>=196608&&D<=262141}(D)||u&&function(D){return 161===D||164===D||167===D||168===D||170===D||173===D||174===D||D>=176&&D<=180||D>=182&&D<=186||D>=188&&D<=191||198===D||208===D||215===D||216===D||D>=222&&D<=225||230===D||D>=232&&D<=234||236===D||237===D||240===D||242===D||243===D||D>=247&&D<=250||252===D||254===D||257===D||273===D||275===D||283===D||294===D||295===D||299===D||D>=305&&D<=307||312===D||D>=319&&D<=322||324===D||D>=328&&D<=331||333===D||338===D||339===D||358===D||359===D||363===D||462===D||464===D||466===D||468===D||470===D||472===D||474===D||476===D||593===D||609===D||708===D||711===D||D>=713&&D<=715||717===D||720===D||D>=728&&D<=731||733===D||735===D||D>=768&&D<=879||D>=913&&D<=929||D>=931&&D<=937||D>=945&&D<=961||D>=963&&D<=969||1025===D||D>=1040&&D<=1103||1105===D||8208===D||D>=8211&&D<=8214||8216===D||8217===D||8220===D||8221===D||D>=8224&&D<=8226||D>=8228&&D<=8231||8240===D||8242===D||8243===D||8245===D||8251===D||8254===D||8308===D||8319===D||D>=8321&&D<=8324||8364===D||8451===D||8453===D||8457===D||8467===D||8470===D||8481===D||8482===D||8486===D||8491===D||8531===D||8532===D||D>=8539&&D<=8542||D>=8544&&D<=8555||D>=8560&&D<=8569||8585===D||D>=8592&&D<=8601||8632===D||8633===D||8658===D||8660===D||8679===D||8704===D||8706===D||8707===D||8711===D||8712===D||8715===D||8719===D||8721===D||8725===D||8730===D||D>=8733&&D<=8736||8739===D||8741===D||D>=8743&&D<=8748||8750===D||D>=8756&&D<=8759||8764===D||8765===D||8776===D||8780===D||8786===D||8800===D||8801===D||D>=8804&&D<=8807||8810===D||8811===D||8814===D||8815===D||8834===D||8835===D||8838===D||8839===D||8853===D||8857===D||8869===D||8895===D||8978===D||D>=9312&&D<=9449||D>=9451&&D<=9547||D>=9552&&D<=9587||D>=9600&&D<=9615||D>=9618&&D<=9621||9632===D||9633===D||D>=9635&&D<=9641||9650===D||9651===D||9654===D||9655===D||9660===D||9661===D||9664===D||9665===D||D>=9670&&D<=9672||9675===D||D>=9678&&D<=9681||D>=9698&&D<=9701||9711===D||9733===D||9734===D||9737===D||9742===D||9743===D||9756===D||9758===D||9792===D||9794===D||9824===D||9825===D||D>=9827&&D<=9829||D>=9831&&D<=9834||9836===D||9837===D||9839===D||9886===D||9887===D||9919===D||D>=9926&&D<=9933||D>=9935&&D<=9939||D>=9941&&D<=9953||9955===D||9960===D||9961===D||D>=9963&&D<=9969||9972===D||D>=9974&&D<=9977||9979===D||9980===D||9982===D||9983===D||10045===D||D>=10102&&D<=10111||D>=11094&&D<=11097||D>=12872&&D<=12879||D>=57344&&D<=63743||D>=65024&&D<=65039||65533===D||D>=127232&&D<=127242||D>=127248&&D<=127277||D>=127280&&D<=127337||D>=127344&&D<=127373||127375===D||127376===D||D>=127387&&D<=127404||D>=917760&&D<=917999||D>=983040&&D<=1048573||D>=1048576&&D<=1114109}(D)?2:1;var F}F.d(u,{Q1:()=>C})},326:(D,u,F)=>{F.d(u,{A:()=>t});var C=F(3969),E=F(8001);const B=()=>/[#*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\uDC70\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-\uDED7\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\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\uDD3D\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-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\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]|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\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,e=new Intl.Segmenter,A=/^\p{Default_Ignorable_Code_Point}$/u;function t(D,u={}){if("string"!=typeof D||0===D.length)return 0;const{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:t=!1}=u;if(t||(D=(0,C.A)(D)),0===D.length)return 0;let n=0;const r={ambiguousAsWide:!F};for(const{segment:u}of e.segment(D)){const D=u.codePointAt(0);D<=31||D>=127&&D<=159||D>=8203&&D<=8207||65279===D||D>=768&&D<=879||D>=6832&&D<=6911||D>=7616&&D<=7679||D>=8400&&D<=8447||D>=65056&&D<=65071||D>=55296&&D<=57343||D>=65024&&D<=65039||A.test(u)||(B().test(u)?n+=2:n+=(0,E.Q1)(D,r))}return n}},3969:(D,u,F)=>{F.d(u,{A:()=>E});const C=function({onlyFirst:D=!1}={}){const u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(u,D?void 0:"g")}();function E(D){if("string"!=typeof D)throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(C,"")}}};
|
|
1
|
+
export const __webpack_id__=799;export const __webpack_ids__=[799];export const __webpack_modules__={326:(D,u,F)=>{F.d(u,{A:()=>t});var C=F(3969),E=F(8001);const B=()=>/[#*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\uDC70\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-\uDED7\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\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\uDD3D\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-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\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]|\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\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]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\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,e=new Intl.Segmenter,A=/^\p{Default_Ignorable_Code_Point}$/u;function t(D,u={}){if("string"!=typeof D||0===D.length)return 0;const{ambiguousIsNarrow:F=!0,countAnsiEscapeCodes:t=!1}=u;if(t||(D=(0,C.A)(D)),0===D.length)return 0;let n=0;const r={ambiguousAsWide:!F};for(const{segment:u}of e.segment(D)){const D=u.codePointAt(0);D<=31||D>=127&&D<=159||D>=8203&&D<=8207||65279===D||D>=768&&D<=879||D>=6832&&D<=6911||D>=7616&&D<=7679||D>=8400&&D<=8447||D>=65056&&D<=65071||D>=55296&&D<=57343||D>=65024&&D<=65039||A.test(u)||(B().test(u)?n+=2:n+=(0,E.Q1)(D,r))}return n}},3490:(D,u,F)=>{F.d(u,{Ay:()=>A});const C=(D=0)=>u=>`\x1b[${u+D}m`,E=(D=0)=>u=>`\x1b[${38+D};5;${u}m`,B=(D=0)=>(u,F,C)=>`\x1b[${38+D};2;${u};${F};${C}m`,e={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(e.modifier),Object.keys(e.color),Object.keys(e.bgColor);const A=function(){const D=new Map;for(const[u,F]of Object.entries(e)){for(const[u,C]of Object.entries(F))e[u]={open:`\x1b[${C[0]}m`,close:`\x1b[${C[1]}m`},F[u]=e[u],D.set(C[0],C[1]);Object.defineProperty(e,u,{value:F,enumerable:!1})}return Object.defineProperty(e,"codes",{value:D,enumerable:!1}),e.color.close="\x1b[39m",e.bgColor.close="\x1b[49m",e.color.ansi=C(),e.color.ansi256=E(),e.color.ansi16m=B(),e.bgColor.ansi=C(10),e.bgColor.ansi256=E(10),e.bgColor.ansi16m=B(10),Object.defineProperties(e,{rgbToAnsi256:{value:(D,u,F)=>D===u&&u===F?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(u/255*5)+Math.round(F/255*5),enumerable:!1},hexToRgb:{value:D=>{const u=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!u)return[0,0,0];let[F]=u;3===F.length&&(F=[...F].map((D=>D+D)).join(""));const C=Number.parseInt(F,16);return[C>>16&255,C>>8&255,255&C]},enumerable:!1},hexToAnsi256:{value:D=>e.rgbToAnsi256(...e.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value:D=>{if(D<8)return 30+D;if(D<16)return D-8+90;let u,F,C;if(D>=232)u=(10*(D-232)+8)/255,F=u,C=u;else{const E=(D-=16)%36;u=Math.floor(D/36)/5,F=Math.floor(E/6)/5,C=E%6/5}const E=2*Math.max(u,F,C);if(0===E)return 30;let B=30+(Math.round(C)<<2|Math.round(F)<<1|Math.round(u));return 2===E&&(B+=60),B},enumerable:!1},rgbToAnsi:{value:(D,u,F)=>e.ansi256ToAnsi(e.rgbToAnsi256(D,u,F)),enumerable:!1},hexToAnsi:{value:D=>e.ansi256ToAnsi(e.hexToAnsi256(D)),enumerable:!1}}),e}()},3969:(D,u,F)=>{F.d(u,{A:()=>E});const C=function({onlyFirst:D=!1}={}){const u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(u,D?void 0:"g")}();function E(D){if("string"!=typeof D)throw new TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(C,"")}},8001:(D,u,F)=>{function C(D,{ambiguousAsWide:u=!1}={}){return function(D){if(!Number.isSafeInteger(D))throw new TypeError(`Expected a code point, got \`${typeof D}\`.`)}(D),12288===(F=D)||F>=65281&&F<=65376||F>=65504&&F<=65510||function(D){return D>=4352&&D<=4447||8986===D||8987===D||9001===D||9002===D||D>=9193&&D<=9196||9200===D||9203===D||9725===D||9726===D||9748===D||9749===D||D>=9776&&D<=9783||D>=9800&&D<=9811||9855===D||D>=9866&&D<=9871||9875===D||9889===D||9898===D||9899===D||9917===D||9918===D||9924===D||9925===D||9934===D||9940===D||9962===D||9970===D||9971===D||9973===D||9978===D||9981===D||9989===D||9994===D||9995===D||10024===D||10060===D||10062===D||D>=10067&&D<=10069||10071===D||D>=10133&&D<=10135||10160===D||10175===D||11035===D||11036===D||11088===D||11093===D||D>=11904&&D<=11929||D>=11931&&D<=12019||D>=12032&&D<=12245||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12353&&D<=12438||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12773||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=42124||D>=42128&&D<=42182||D>=43360&&D<=43388||D>=44032&&D<=55203||D>=63744&&D<=64255||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=94176&&D<=94180||94192===D||94193===D||D>=94208&&D<=100343||D>=100352&&D<=101589||D>=101631&&D<=101640||D>=110576&&D<=110579||D>=110581&&D<=110587||110589===D||110590===D||D>=110592&&D<=110882||110898===D||D>=110928&&D<=110930||110933===D||D>=110948&&D<=110951||D>=110960&&D<=111355||D>=119552&&D<=119638||D>=119648&&D<=119670||126980===D||127183===D||127374===D||D>=127377&&D<=127386||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||127568===D||127569===D||D>=127584&&D<=127589||D>=127744&&D<=127776||D>=127789&&D<=127797||D>=127799&&D<=127868||D>=127870&&D<=127891||D>=127904&&D<=127946||D>=127951&&D<=127955||D>=127968&&D<=127984||127988===D||D>=127992&&D<=128062||128064===D||D>=128066&&D<=128252||D>=128255&&D<=128317||D>=128331&&D<=128334||D>=128336&&D<=128359||128378===D||128405===D||128406===D||128420===D||D>=128507&&D<=128591||D>=128640&&D<=128709||128716===D||D>=128720&&D<=128722||D>=128725&&D<=128727||D>=128732&&D<=128735||128747===D||128748===D||D>=128756&&D<=128764||D>=128992&&D<=129003||129008===D||D>=129292&&D<=129338||D>=129340&&D<=129349||D>=129351&&D<=129535||D>=129648&&D<=129660||D>=129664&&D<=129673||D>=129679&&D<=129734||D>=129742&&D<=129756||D>=129759&&D<=129769||D>=129776&&D<=129784||D>=131072&&D<=196605||D>=196608&&D<=262141}(D)||u&&function(D){return 161===D||164===D||167===D||168===D||170===D||173===D||174===D||D>=176&&D<=180||D>=182&&D<=186||D>=188&&D<=191||198===D||208===D||215===D||216===D||D>=222&&D<=225||230===D||D>=232&&D<=234||236===D||237===D||240===D||242===D||243===D||D>=247&&D<=250||252===D||254===D||257===D||273===D||275===D||283===D||294===D||295===D||299===D||D>=305&&D<=307||312===D||D>=319&&D<=322||324===D||D>=328&&D<=331||333===D||338===D||339===D||358===D||359===D||363===D||462===D||464===D||466===D||468===D||470===D||472===D||474===D||476===D||593===D||609===D||708===D||711===D||D>=713&&D<=715||717===D||720===D||D>=728&&D<=731||733===D||735===D||D>=768&&D<=879||D>=913&&D<=929||D>=931&&D<=937||D>=945&&D<=961||D>=963&&D<=969||1025===D||D>=1040&&D<=1103||1105===D||8208===D||D>=8211&&D<=8214||8216===D||8217===D||8220===D||8221===D||D>=8224&&D<=8226||D>=8228&&D<=8231||8240===D||8242===D||8243===D||8245===D||8251===D||8254===D||8308===D||8319===D||D>=8321&&D<=8324||8364===D||8451===D||8453===D||8457===D||8467===D||8470===D||8481===D||8482===D||8486===D||8491===D||8531===D||8532===D||D>=8539&&D<=8542||D>=8544&&D<=8555||D>=8560&&D<=8569||8585===D||D>=8592&&D<=8601||8632===D||8633===D||8658===D||8660===D||8679===D||8704===D||8706===D||8707===D||8711===D||8712===D||8715===D||8719===D||8721===D||8725===D||8730===D||D>=8733&&D<=8736||8739===D||8741===D||D>=8743&&D<=8748||8750===D||D>=8756&&D<=8759||8764===D||8765===D||8776===D||8780===D||8786===D||8800===D||8801===D||D>=8804&&D<=8807||8810===D||8811===D||8814===D||8815===D||8834===D||8835===D||8838===D||8839===D||8853===D||8857===D||8869===D||8895===D||8978===D||D>=9312&&D<=9449||D>=9451&&D<=9547||D>=9552&&D<=9587||D>=9600&&D<=9615||D>=9618&&D<=9621||9632===D||9633===D||D>=9635&&D<=9641||9650===D||9651===D||9654===D||9655===D||9660===D||9661===D||9664===D||9665===D||D>=9670&&D<=9672||9675===D||D>=9678&&D<=9681||D>=9698&&D<=9701||9711===D||9733===D||9734===D||9737===D||9742===D||9743===D||9756===D||9758===D||9792===D||9794===D||9824===D||9825===D||D>=9827&&D<=9829||D>=9831&&D<=9834||9836===D||9837===D||9839===D||9886===D||9887===D||9919===D||D>=9926&&D<=9933||D>=9935&&D<=9939||D>=9941&&D<=9953||9955===D||9960===D||9961===D||D>=9963&&D<=9969||9972===D||D>=9974&&D<=9977||9979===D||9980===D||9982===D||9983===D||10045===D||D>=10102&&D<=10111||D>=11094&&D<=11097||D>=12872&&D<=12879||D>=57344&&D<=63743||D>=65024&&D<=65039||65533===D||D>=127232&&D<=127242||D>=127248&&D<=127277||D>=127280&&D<=127337||D>=127344&&D<=127373||127375===D||127376===D||D>=127387&&D<=127404||D>=917760&&D<=917999||D>=983040&&D<=1048573||D>=1048576&&D<=1114109}(D)?2:1;var F}F.d(u,{Q1:()=>C})}};
|
package/dist/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import*as o from"cheetor";import{createRequire as e}from"node:module";export const __webpack_id__=27;export const __webpack_ids__=[27];export const __webpack_modules__={7642:(r,t,
|
|
2
|
+
import*as o from"cheetor";import{createRequire as e}from"node:module";export const __webpack_id__=27;export const __webpack_ids__=[27];export const __webpack_modules__={7642:(r,t,m)=>{const s=(n={Cheetor:()=>o.Cheetor},c={},m.d(c,n),c);var n,c,a=m(3938);const i=e(import.meta.url)("node:module");var p=m(1503),d=m(9948),g=m(9767);process.on("SIGINT",(()=>{})),new s.Cheetor("../package.json",import.meta.url).website("https://www.npmjs.com/org/nice-move").command(g).command(a).commandSmart((function(){if((0,d.kj)("svgo/package.json")&&(0,d.kj)("svgo-config/package.json"))return{command:"svgo",describe:"Run `svgo` to optimize `*.svg`",handler({_:[o,e="./"]}){const r=(0,i.createRequire)(import.meta.url);(0,p.Ho)("svgo",["-r","-q","--pretty","--indent","2","--config",r.resolve("svgo-config"),"-f",e]).then((()=>{console.log("Done: calling svgo")})).catch((o=>{process.exitCode=1,console.error("Error:",o.message)}))}}})).setup()}};import r from"./runtime.mjs";import*as t from"./cli.mjs";r.C(t);import*as m from"./vendor.mjs";r.C(m);import*as s from"./cmd/lint.mjs";r.C(s);import*as n from"./cmd/git.mjs";r.C(n),r(r.s=7642);
|
package/dist/cmd/git.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createRequire as e}from"node:module";export const __webpack_id__=60;export const __webpack_ids__=[60];export const __webpack_modules__={6507:(e,t,n)=>{const r=n(5317),o=n(8388),i=n(442);function s(e,t,n){const s=o(e,t,n),a=r.spawn(s.command,s.args,s.options);return i.hookChildProcess(a,s),a}e.exports=s,e.exports.spawn=s,e.exports.sync=function(e,t,n){const s=o(e,t,n),a=r.spawnSync(s.command,s.args,s.options);return a.error=a.error||i.verifyENOENTSync(a.status,s),a},e.exports._parse=o,e.exports._enoent=i},442:e=>{const t="win32"===process.platform;function n(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function r(e,r){return t&&1===e&&!r.file?n(r.original,"spawn"):null}e.exports={hookChildProcess:function(e,n){if(!t)return;const o=e.emit;e.emit=function(t,i){if("exit"===t){const t=r(i,n);if(t)return o.call(e,"error",t)}return o.apply(e,arguments)}},verifyENOENT:r,verifyENOENTSync:function(e,r){return t&&1===e&&!r.file?n(r.original,"spawnSync"):null},notFoundError:n}},8388:(e,t,n)=>{const r=n(6928),o=n(3803),i=n(2077),s=n(1880),a="win32"===process.platform,c=/\.(?:com|exe)$/i,l=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;e.exports=function(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null);const d={command:e,args:t=t?t.slice(0):[],options:n=Object.assign({},n),file:void 0,original:{command:e,args:t}};return n.shell?d:function(e){if(!a)return e;const t=function(e){e.file=o(e);const t=e.file&&s(e.file);return t?(e.args.unshift(e.file),e.command=t,o(e)):e.file}(e),n=!c.test(t);if(e.options.forceShell||n){const n=l.test(t);e.command=r.normalize(e.command),e.command=i.command(e.command),e.args=e.args.map((e=>i.argument(e,n)));const o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}(d)}},2077:e=>{const t=/([()\][%!^"`<>&|;, *?])/g;e.exports.command=function(e){return e.replace(t,"^$1")},e.exports.argument=function(e,n){return e=(e=`"${e=(e=(e=`${e}`).replace(/(?=(\\+?)?)\1"/g,'$1$1\\"')).replace(/(?=(\\+?)?)\1$/,"$1$1")}"`).replace(t,"^$1"),n&&(e=e.replace(t,"^$1")),e}},1880:(e,t,n)=>{const r=n(9896),o=n(600);e.exports=function(e){const t=Buffer.alloc(150);let n;try{n=r.openSync(e,"r"),r.readSync(n,t,0,150,0),r.closeSync(n)}catch(e){}return o(t.toString())}},3803:(e,t,n)=>{const r=n(6928),o=n(1905),i=n(9695);function s(e,t){const n=e.options.env||process.env,s=process.cwd(),a=null!=e.options.cwd,c=a&&void 0!==process.chdir&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch(e){}let l;try{l=o.sync(e.command,{path:n[i({env:n})],pathExt:t?r.delimiter:void 0})}catch(e){}finally{c&&process.chdir(s)}return l&&(l=r.resolve(a?e.options.cwd:"",l)),l}e.exports=function(e){return s(e)||s(e,!0)}},9344:(e,t,n)=>{var r;function o(e,t,n){if("function"==typeof t&&(n=t,t={}),!n){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(n,r){o(e,t||{},(function(e,t){e?r(e):n(t)}))}))}r(e,t||{},(function(e,r){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)}))}n(9896),r="win32"===process.platform||global.TESTING_WINDOWS?n(8541):n(709),e.exports=o,o.sync=function(e,t){try{return r.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}}},709:(e,t,n)=>{e.exports=o,o.sync=function(e,t){return i(r.statSync(e),t)};var r=n(9896);function o(e,t,n){r.stat(e,(function(e,r){n(e,!e&&i(r,t))}))}function i(e,t){return e.isFile()&&function(e,t){var n=e.mode,r=e.uid,o=e.gid,i=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8);return n&parseInt("001",8)||n&c&&o===s||n&a&&r===i||n&(a|c)&&0===i}(e,t)}},8541:(e,t,n)=>{e.exports=i,i.sync=function(e,t){return o(r.statSync(e),e,t)};var r=n(9896);function o(e,t,n){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var n=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!n)return!0;if(-1!==(n=n.split(";")).indexOf(""))return!0;for(var r=0;r<n.length;r++){var o=n[r].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}(t,n)}function i(e,t,n){r.stat(e,(function(r,i){n(r,!r&&o(i,e,t))}))}},9695:e=>{const t=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};e.exports=t,e.exports.default=t},600:(e,t,n)=>{const r=n(7257);e.exports=(e="")=>{const t=e.match(r);if(!t)return null;const[n,o]=t[0].replace(/#! ?/,"").split(" "),i=n.split("/").pop();return"env"===i?o:o?`${i} ${o}`:i}},7257:e=>{e.exports=/^#!(.*)/},1905:(e,t,n)=>{const r="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,o=n(6928),i=r?";":":",s=n(9344),a=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),c=(e,t)=>{const n=t.colon||i,o=e.match(/\//)||r&&e.match(/\\/)?[""]:[...r?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)],s=r?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=r?s.split(n):[""];return r&&-1!==e.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:o,pathExt:a,pathExtExe:s}},l=(e,t,n)=>{"function"==typeof t&&(n=t,t={}),t||(t={});const{pathEnv:r,pathExt:i,pathExtExe:l}=c(e,t),d=[],u=n=>new Promise(((i,s)=>{if(n===r.length)return t.all&&d.length?i(d):s(a(e));const c=r[n],l=/^".*"$/.test(c)?c.slice(1,-1):c,u=o.join(l,e),m=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;i(p(m,n,0))})),p=(e,n,r)=>new Promise(((o,a)=>{if(r===i.length)return o(u(n+1));const c=i[r];s(e+c,{pathExt:l},((i,s)=>{if(!i&&s){if(!t.all)return o(e+c);d.push(e+c)}return o(p(e,n,r+1))}))}));return n?u(0).then((e=>n(null,e)),n):u(0)};e.exports=l,l.sync=(e,t)=>{t=t||{};const{pathEnv:n,pathExt:r,pathExtExe:i}=c(e,t),l=[];for(let a=0;a<n.length;a++){const c=n[a],d=/^".*"$/.test(c)?c.slice(1,-1):c,u=o.join(d,e),p=!d&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;for(let e=0;e<r.length;e++){const n=p+r[e];try{if(s.sync(n,{pathExt:i})){if(!t.all)return n;l.push(n)}}catch(e){}}}if(t.all&&l.length)return l;if(t.nothrow)return null;throw a(e)}},5317:t=>{t.exports=e(import.meta.url)("child_process")},9896:t=>{t.exports=e(import.meta.url)("fs")},4573:t=>{t.exports=e(import.meta.url)("node:buffer")},1421:t=>{t.exports=e(import.meta.url)("node:child_process")},3024:t=>{t.exports=e(import.meta.url)("node:fs")},8161:t=>{t.exports=e(import.meta.url)("node:os")},6760:t=>{t.exports=e(import.meta.url)("node:path")},1708:t=>{t.exports=e(import.meta.url)("node:process")},7075:t=>{t.exports=e(import.meta.url)("node:stream")},8500:t=>{t.exports=e(import.meta.url)("node:timers/promises")},7066:t=>{t.exports=e(import.meta.url)("node:tty")},3136:t=>{t.exports=e(import.meta.url)("node:url")},7975:t=>{t.exports=e(import.meta.url)("node:util")},6928:t=>{t.exports=e(import.meta.url)("path")},2283:(t,n,r)=>{function o(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}r.d(n,{Ho:()=>bl,Kc:()=>gl});var i=r(3136);const s=(e,t)=>{const n=l(a(e));if("string"!=typeof n)throw new TypeError(`${t} must be a string or a file URL: ${n}.`);return n},a=e=>c(e)?e.toString():e,c=e=>"string"!=typeof e&&e&&Object.getPrototypeOf(e)===String.prototype,l=e=>e instanceof URL?(0,i.fileURLToPath)(e):e,d=(e,t=[],n={})=>{const r=s(e,"First argument"),[i,a]=o(t)?[[],t]:[t,n];if(!Array.isArray(i))throw new TypeError(`Second argument must be either an array of arguments or an options object: ${i}`);if(i.some((e=>"object"==typeof e&&null!==e)))throw new TypeError(`Second argument must be an array of strings: ${i}`);const c=i.map(String),l=c.find((e=>e.includes("\0")));if(void 0!==l)throw new TypeError(`Arguments cannot contain null bytes ("\\0"): ${l}`);if(!o(a))throw new TypeError(`Last argument must be an options object: ${a}`);return[r,c,a]};var u=r(1421);const p=e(import.meta.url)("node:string_decoder"),{toString:m}=Object.prototype,f=e=>"[object Uint8Array]"===m.call(e),h=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),b=new TextEncoder,g=e=>b.encode(e),y=new TextDecoder,w=e=>y.decode(e),v=e=>1===e.length&&f(e[0])?e[0]:x(S(e)),S=e=>e.map((e=>"string"==typeof e?g(e):e)),x=e=>{const t=new Uint8Array(E(e));let n=0;for(const r of e)t.set(r,n),n+=r.length;return t},E=e=>{let t=0;for(const n of e)t+=n.length;return t},T=({templates:e,expressions:t,tokens:n,index:r,template:o})=>{if(void 0===o)throw new TypeError(`Invalid backslash sequence: ${e.raw[r]}`);const{nextTokens:i,leadingWhitespaces:s,trailingWhitespaces:a}=D(o,e.raw[r]),c=M(n,i,s);if(r===t.length)return c;const l=t[r],d=Array.isArray(l)?l.map((e=>N(e))):[N(l)];return M(c,d,a)},D=(e,t)=>{if(0===t.length)return{nextTokens:[],leadingWhitespaces:!1,trailingWhitespaces:!1};const n=[];let r=0;const o=I.has(t[0]);for(let o=0,i=0;o<e.length;o+=1,i+=1){const s=t[i];if(I.has(s))r!==o&&n.push(e.slice(r,o)),r=o+1;else if("\\"===s){const e=t[i+1];"\n"===e?(o-=1,i+=1):"u"===e&&"{"===t[i+2]?i=t.indexOf("}",i+3):i+=O[e]??1}}const i=r===e.length;return i||n.push(e.slice(r)),{nextTokens:n,leadingWhitespaces:o,trailingWhitespaces:i}},I=new Set([" ","\t","\r","\n"]),O={x:3,u:5},M=(e,t,n)=>n||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e.at(-1)}${t[0]}`,...t.slice(1)],N=e=>{const t=typeof e;if("string"===t)return e;if("number"===t)return String(e);if(o(e)&&("stdout"in e||"isMaxBuffer"in e))return C(e);if(e instanceof u.ChildProcess||"[object Promise]"===Object.prototype.toString.call(e))throw new TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}.");throw new TypeError(`Unexpected "${t}" in template expression`)},C=({stdout:e})=>{if("string"==typeof e)return e;if(f(e))return w(e);if(void 0===e)throw new TypeError('Missing result.stdout in template expression. This is probably due to the previous subprocess\' "stdout" option.');throw new TypeError(`Unexpected "${typeof e}" stdout in template expression`)};var $=r(7975),A=r(1708);const B=e=>j.includes(e),j=[A.stdin,A.stdout,A.stderr],P=["stdin","stdout","stderr"],k=e=>P[e]??`stdio[${e}]`,R=(e,t)=>{const n=Array.from({length:L(e)+1}),r=U(e[t],n,t);return H(r,t)},L=({stdio:e})=>Array.isArray(e)?Math.max(e.length,P.length):P.length,U=(e,t,n)=>o(e)?F(e,t,n):t.fill(e),F=(e,t,n)=>{for(const r of Object.keys(e).sort(G))for(const o of _(r,n,t))t[o]=e[r];return t},G=(e,t)=>W(e)<W(t)?1:-1,W=e=>"stdout"===e||"stderr"===e?0:"all"===e?2:1,_=(e,t,n)=>{if("ipc"===e)return[n.length-1];const r=z(e);if(void 0===r||0===r)throw new TypeError(`"${t}.${e}" is invalid.\nIt must be "${t}.stdout", "${t}.stderr", "${t}.all", "${t}.ipc", or "${t}.fd3", "${t}.fd4" (and so on).`);if(r>=n.length)throw new TypeError(`"${t}.${e}" is invalid: that file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`);return"all"===r?[1,2]:[r]},z=e=>{if("all"===e)return e;if(P.includes(e))return P.indexOf(e);const t=V.exec(e);return null!==t?Number(t[1]):void 0},V=/^fd(\d+)$/,H=(e,t)=>e.map((e=>void 0===e?K[t]:e)),K={lines:!1,buffer:!0,maxBuffer:1e8,verbose:(0,$.debuglog)("execa").enabled?"full":"none",stripFinalNewline:!0},q=["lines","buffer","maxBuffer","verbose","stripFinalNewline"],Y=(e,t)=>"ipc"===t?e.at(-1):e[t],X=({verbose:e},t)=>"none"!==J(e,t),Q=({verbose:e},t)=>!["none","short"].includes(J(e,t)),J=(e,t)=>void 0===t?Z(e):Y(e,t),Z=e=>e.find((e=>ee(e)))??te.findLast((t=>e.includes(t))),ee=e=>"function"==typeof e,te=["none","short","full"],ne=e=>(0,$.stripVTControlCharacters)(e).split("\n").map((e=>re(e))).join("\n"),re=e=>e.replaceAll(ie,(e=>oe(e))),oe=e=>{const t=se[e];if(void 0!==t)return t;const n=e.codePointAt(0),r=n.toString(16);return n<=ae?`\\u${r.padStart(4,"0")}`:`\\U${r}`},ie=(()=>{try{return new RegExp("\\p{Separator}|\\p{Other}","gu")}catch{return/[\s\u0000-\u001F\u007F-\u009F\u00AD]/g}})(),se={" ":" ","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},ae=65535,ce=/^[\w./-]+$/,le={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258c",squareRight:"\u2590",squareCenter:"\u25a0",bullet:"\u25cf",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203a",triangleUp:"\u25b2",triangleUpSmall:"\u25b4",triangleDown:"\u25bc",triangleDownSmall:"\u25be",triangleLeftSmall:"\u25c2",triangleRightSmall:"\u25b8",home:"\u2302",heart:"\u2665",musicNote:"\u266a",musicNoteBeamed:"\u266b",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221e",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xbd",oneThird:"\u2153",oneQuarter:"\xbc",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215b",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xbe",threeFifths:"\u2157",threeEighths:"\u215c",fourFifths:"\u2158",fiveSixths:"\u215a",fiveEighths:"\u215d",sevenEighths:"\u215e",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254c",lineDashed5:"\u254d",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257a",lineDashed10:"\u257c",lineDashed11:"\u257e",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250a",lineVerticalDashed3:"\u250b",lineVerticalDashed4:"\u254e",lineVerticalDashed5:"\u254f",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257b",lineVerticalDashed10:"\u257d",lineVerticalDashed11:"\u257f",lineDownLeft:"\u2510",lineDownLeftArc:"\u256e",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250c",lineDownRightArc:"\u256d",lineDownBoldRightBold:"\u250f",lineDownBoldRight:"\u250e",lineDownRightBold:"\u250d",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256f",lineUpBoldLeftBold:"\u251b",lineUpBoldLeft:"\u251a",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255d",lineUpDoubleLeft:"\u255c",lineUpLeftDouble:"\u255b",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255a",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252b",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252a",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251c",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251d",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251f",lineUpBoldDownRight:"\u251e",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255f",lineUpDownRightDouble:"\u255e",lineDownLeftRight:"\u252c",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252f",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252e",lineDownLeftBoldRight:"\u252d",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253b",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253a",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253c",lineUpBoldDownBoldLeftBoldRightBold:"\u254b",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254a",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253d",lineUpDownLeftRightBold:"\u253e",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253f",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256c",lineUpDoubleDownDoubleLeftRight:"\u256b",lineUpDownLeftDoubleRightDouble:"\u256a",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},de={tick:"\u2714",info:"\u2139",warning:"\u26a0",cross:"\u2718",squareSmall:"\u25fb",squareSmallFilled:"\u25fc",circle:"\u25ef",circleFilled:"\u25c9",circleDotted:"\u25cc",circleDouble:"\u25ce",circleCircle:"\u24de",circleCross:"\u24e7",circlePipe:"\u24be",radioOn:"\u25c9",radioOff:"\u25ef",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24e7",checkboxCircleOff:"\u24be",pointer:"\u276f",triangleUpOutline:"\u25b3",triangleLeft:"\u25c0",triangleRight:"\u25b6",lozenge:"\u25c6",lozengeOutline:"\u25c7",hamburger:"\u2630",smiley:"\u32e1",mustache:"\u0df4",star:"\u2605",play:"\u25b6",nodejs:"\u2b22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},ue={...le,...de},pe={...le,tick:"\u221a",info:"i",warning:"\u203c",cross:"\xd7",squareSmall:"\u25a1",squareSmallFilled:"\u25a0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25cb)",circleCross:"(\xd7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xd7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xd7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25c4",triangleRight:"\u25ba",lozenge:"\u2666",lozengeOutline:"\u25ca",hamburger:"\u2261",smiley:"\u263a",mustache:"\u250c\u2500\u2510",star:"\u2736",play:"\u25ba",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},me=function(){const{env:e}=A,{TERM:t,TERM_PROGRAM:n}=e;return"win32"!==A.platform?"linux"!==t:Boolean(e.WT_SESSION)||Boolean(e.TERMINUS_SUBLIME)||"{cmd::Cmder}"===e.ConEmuTask||"Terminus-Sublime"===n||"vscode"===n||"xterm-256color"===t||"alacritty"===t||"rxvt-unicode"===t||"rxvt-unicode-256color"===t||"JetBrains-JediTerm"===e.TERMINAL_EMULATOR}()?ue:pe;Object.entries(de);var fe=r(7066);const he=fe?.WriteStream?.prototype?.hasColors?.()??!1,be=(e,t)=>{if(!he)return e=>e;const n=`\x1b[${e}m`,r=`\x1b[${t}m`;return e=>{const t=e+"";let o=t.indexOf(r);if(-1===o)return n+t+r;let i=n,s=0;for(;-1!==o;)i+=t.slice(s,o)+n,s=o+r.length,o=t.indexOf(r,s);return i+=t.slice(s)+r,i}},ge=(be(0,0),be(1,22)),ye=(be(2,22),be(3,23),be(4,24),be(53,55),be(7,27),be(8,28),be(9,29),be(30,39),be(31,39),be(32,39),be(33,39),be(34,39),be(35,39),be(36,39),be(37,39),be(90,39)),we=(be(40,49),be(41,49),be(42,49),be(43,49),be(44,49),be(45,49),be(46,49),be(47,49),be(100,49),be(91,39)),ve=(be(92,39),be(93,39)),Se=(be(94,39),be(95,39),be(96,39),be(97,39),be(101,49),be(102,49),be(103,49),be(104,49),be(105,49),be(106,49),be(107,49),e=>`${xe(e.getHours(),2)}:${xe(e.getMinutes(),2)}:${xe(e.getSeconds(),2)}.${xe(e.getMilliseconds(),3)}`),xe=(e,t)=>String(e).padStart(t,"0"),Ee=({failed:e,reject:t})=>e?t?me.cross:me.warning:me.tick,Te={command:({piped:e})=>e?"|":"$",output:()=>" ",ipc:()=>"*",error:Ee,duration:Ee},De=e=>e,Ie={command:()=>ge,output:()=>De,ipc:()=>De,error:({reject:e})=>e?we:ve,duration:()=>ye},Oe=(e,t,n)=>{if(void 0===n)return e;const r=n(e,t);return"string"==typeof r?r:void 0},Me=e=>e.endsWith("\n")?e:`${e}\n`,Ne=({type:e,verboseMessage:t,fdNumber:n,verboseInfo:r,result:o})=>{const i=Ce({type:e,result:o,verboseInfo:r}),s=((e,t,n)=>{const r=(({verbose:e},t)=>{const n=J(e,t);return ee(n)?n:void 0})(t,n);return e.map((({verboseLine:e,verboseObject:t})=>Oe(e,t,r))).filter((e=>void 0!==e)).map((e=>Me(e))).join("")})($e(t,i),r,n);""!==s&&console.warn(s.slice(0,-1))},Ce=({type:e,result:t,verboseInfo:{escapedCommand:n,commandId:r,rawOptions:{piped:o=!1,...i}}})=>({type:e,escapedCommand:n,commandId:`${r}`,timestamp:new Date,piped:o,result:t,options:i}),$e=(e,t)=>e.split("\n").map((e=>Ae({...t,message:e}))),Ae=e=>({verboseLine:(({type:e,message:t,timestamp:n,piped:r,commandId:o,result:{failed:i=!1}={},options:{reject:s=!0}})=>{const a=Se(n),c=Te[e]({failed:i,reject:s,piped:r}),l=Ie[e]({reject:s});return`${ye(`[${a}]`)} ${ye(`[${o}]`)} ${l(c)} ${l(t)}`})(e),verboseObject:e}),Be=e=>{const t="string"==typeof e?e:(0,$.inspect)(e);return ne(t).replaceAll("\t"," ".repeat(je))},je=2,Pe=e=>X({verbose:e})?ke++:void 0;let ke=0n;const Re=()=>A.hrtime.bigint(),Le=e=>Number(A.hrtime.bigint()-e)/1e6,Ue=(e,t,n)=>{const r=Re(),{command:o,escapedCommand:i}=((e,t)=>{const n=[e,...t];return{command:n.join(" "),escapedCommand:n.map((e=>{return t=re(e),ce.test(t)?t:"win32"===A.platform?`"${t.replaceAll('"','""')}"`:`'${t.replaceAll("'","'\\''")}'`;var t})).join(" ")}})(e,t),s=((e,t,n)=>((e=>{for(const t of e){if(!1===t)throw new TypeError('The "verbose: false" option was renamed to "verbose: \'none\'".');if(!0===t)throw new TypeError('The "verbose: true" option was renamed to "verbose: \'short\'".');if(!te.includes(t)&&!ee(t)){const e=te.map((e=>`'${e}'`)).join(", ");throw new TypeError(`The "verbose" option must not be ${t}. Allowed values are: ${e} or a function.`)}}})(e),{verbose:e,escapedCommand:t,commandId:Pe(e),rawOptions:n}))(R(n,"verbose"),i,{...n});return((e,t)=>{X(t)&&Ne({type:"command",verboseMessage:e,verboseInfo:t})})(i,s),{command:o,escapedCommand:i,startTime:r,verboseInfo:s}};var Fe=r(6760),Ge=r(6507),We=r(7235);function _e(e){return e instanceof URL?(0,i.fileURLToPath)(e):e}(0,$.promisify)(u.execFile);const ze=({env:e=A.env,...t}={})=>{e={...e};const n=(0,We.A)({env:e});return t.path=e[n],e[n]=(({cwd:e=A.cwd(),path:t=A.env[(0,We.A)()],preferLocal:n=!0,execPath:r=A.execPath,addExecPath:o=!0}={})=>{const i=Fe.resolve(_e(e)),s=[],a=t.split(Fe.delimiter);return n&&((e,t,n)=>{for(const r of function(e){return{*[Symbol.iterator](){let t,n=Fe.resolve(_e(e));for(;t!==n;)yield n,t=n,n=Fe.resolve(n,"..")}}}(n)){const n=Fe.join(r,"node_modules/.bin");t.includes(n)||e.push(n)}})(s,a,i),o&&((e,t,n,r)=>{const o=Fe.resolve(r,_e(n),"..");t.includes(o)||e.push(o)})(s,a,r,i),""===t||t===Fe.delimiter?`${s.join(Fe.delimiter)}${t}`:[...s,t].join(Fe.delimiter)})(t),e};var Ve=r(8500);class He extends Error{}const Ke=(e,t)=>{Object.defineProperty(e.prototype,"name",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,qe,{value:!0,writable:!1,enumerable:!1,configurable:!1})},qe=Symbol("isExecaError"),Ye=e=>"[object Error]"===Object.prototype.toString.call(e);class Xe extends Error{}Ke(Xe,Xe.name);class Qe extends Error{}Ke(Qe,Qe.name);var Je=r(8161);const Ze=(e,t)=>({name:`SIGRT${t+1}`,number:et+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),et=34,tt=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],nt=()=>{const e=(()=>{const e=64-et+1;return Array.from({length:e},Ze)})();return[...tt,...e].map(rt)},rt=({name:e,number:t,description:n,action:r,forced:o=!1,standard:i})=>{const{signals:{[e]:s}}=Je.constants,a=void 0!==s;return{name:e,number:a?s:t,description:n,supported:a,action:r,forced:o,standard:i}},ot=({name:e,number:t,description:n,supported:r,action:o,forced:i,standard:s})=>[e,{name:e,number:t,description:n,supported:r,action:o,forced:i,standard:s}],it=(()=>{const e=nt();return Object.fromEntries(e.map(ot))})(),st=(e,t)=>{const n=t.find((({name:t})=>Je.constants.signals[t]===e));return void 0!==n?n:t.find((t=>t.number===e))},at=((()=>{const e=nt(),t=Array.from({length:65},((t,n)=>((e,t)=>{const n=st(e,t);if(void 0===n)return{};const{name:r,description:o,supported:i,action:s,forced:a,standard:c}=n;return{[e]:{name:r,number:e,description:o,supported:i,action:s,forced:a,standard:c}}})(n,e)));Object.assign({},...t)})(),e=>0===e?e:ct(e,"`subprocess.kill()`'s argument")),ct=(e,t)=>{if(Number.isInteger(e))return lt(e,t);if("string"==typeof e)return ut(e,t);throw new TypeError(`Invalid ${t} ${String(e)}: it must be a string or an integer.\n${pt()}`)},lt=(e,t)=>{if(dt.has(e))return dt.get(e);throw new TypeError(`Invalid ${t} ${e}: this signal integer does not exist.\n${pt()}`)},dt=new Map(Object.entries(Je.constants.signals).reverse().map((([e,t])=>[t,e]))),ut=(e,t)=>{if(e in Je.constants.signals)return e;if(e.toUpperCase()in Je.constants.signals)throw new TypeError(`Invalid ${t} '${e}': please rename it to '${e.toUpperCase()}'.`);throw new TypeError(`Invalid ${t} '${e}': this signal name does not exist.\n${pt()}`)},pt=()=>`Available signal names: ${mt()}.\nAvailable signal numbers: ${ft()}.`,mt=()=>Object.keys(Je.constants.signals).sort().map((e=>`'${e}'`)).join(", "),ft=()=>[...new Set(Object.values(Je.constants.signals).sort(((e,t)=>e-t)))].join(", "),ht=e=>it[e].description,bt=({kill:e,options:{forceKillAfterDelay:t,killSignal:n},onInternalError:r,context:o,controller:i},s,a)=>{const{signal:c,error:l}=gt(s,a,n);yt(l,r);const d=e(c);return wt({kill:e,signal:c,forceKillAfterDelay:t,killSignal:n,killResult:d,context:o,controller:i}),d},gt=(e,t,n)=>{const[r=n,o]=Ye(e)?[void 0,e]:[e,t];if("string"!=typeof r&&!Number.isInteger(r))throw new TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(r)}`);if(void 0!==o&&!Ye(o))throw new TypeError(`The second argument is optional. If specified, it must be an error instance: ${o}`);return{signal:at(r),error:o}},yt=(e,t)=>{void 0!==e&&t.reject(e)},wt=async({kill:e,signal:t,forceKillAfterDelay:n,killSignal:r,killResult:o,context:i,controller:s})=>{t===r&&o&&vt({kill:e,forceKillAfterDelay:n,context:i,controllerSignal:s.signal})},vt=async({kill:e,forceKillAfterDelay:t,context:n,controllerSignal:r})=>{if(!1!==t)try{await(0,Ve.setTimeout)(t,void 0,{signal:r}),e("SIGKILL")&&(n.isForcefullyTerminated??=!0)}catch{}},St=e(import.meta.url)("node:events"),xt=async(e,t)=>{e.aborted||await(0,St.once)(e,"abort",{signal:t})},Et=({subprocess:e,cancelSignal:t,gracefulCancel:n,context:r,controller:o})=>void 0===t||n?[]:[Tt(e,t,r,o)],Tt=async(e,t,n,{signal:r})=>{throw await xt(t,r),n.terminationReason??="cancel",e.kill(),t.reason},Dt=({methodName:e,isSubprocess:t,ipc:n,isConnected:r})=>{It(e,t,n),Ot(e,t,r)},It=(e,t,n)=>{if(!n)throw new Error(`${$t(e,t)} can only be used if the \`ipc\` option is \`true\`.`)},Ot=(e,t,n)=>{if(!n)throw new Error(`${$t(e,t)} cannot be used: the ${Bt(t)} has already exited or disconnected.`)},Mt=(e,t)=>new Error(`${$t("sendMessage",t)} failed when sending an acknowledgment response to the ${Bt(t)}.`,{cause:e}),Nt=new Set(["ERR_MISSING_ARGS","ERR_INVALID_ARG_TYPE"]),Ct=["could not be cloned","circular structure","call stack size exceeded"],$t=(e,t,n="")=>"cancelSignal"===e?"`cancelSignal`'s `controller.abort()`":`${At(t)}${e}(${n})`,At=e=>e?"":"subprocess.",Bt=e=>e?"parent process":"subprocess",jt=e=>{e.connected&&e.disconnect()},Pt=()=>{const e={},t=new Promise(((t,n)=>{Object.assign(e,{resolve:t,reject:n})}));return Object.assign(t,e)},kt=(e,t="stdin")=>{const n=!0,{options:r,fileDescriptors:o}=Lt.get(e),i=Ut(o,t,n),s=e.stdio[i];if(null===s)throw new TypeError(Wt(i,t,r,n));return s},Rt=(e,t="stdout")=>{const n=!1,{options:r,fileDescriptors:o}=Lt.get(e),i=Ut(o,t,n),s="all"===i?e.all:e.stdio[i];if(null==s)throw new TypeError(Wt(i,t,r,n));return s},Lt=new WeakMap,Ut=(e,t,n)=>{const r=Ft(t,n);return Gt(r,t,n,e),r},Ft=(e,t)=>{const n=z(e);if(void 0!==n)return n;const{validOptions:r,defaultValue:o}=t?{validOptions:'"stdin"',defaultValue:"stdin"}:{validOptions:'"stdout", "stderr", "all"',defaultValue:"stdout"};throw new TypeError(`"${Vt(t)}" must not be "${e}".\nIt must be ${r} or "fd3", "fd4" (and so on).\nIt is optional and defaults to "${o}".`)},Gt=(e,t,n,r)=>{const o=r[zt(e)];if(void 0===o)throw new TypeError(`"${Vt(n)}" must not be ${t}. That file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`);if("input"===o.direction&&!n)throw new TypeError(`"${Vt(n)}" must not be ${t}. It must be a readable stream, not writable.`);if("input"!==o.direction&&n)throw new TypeError(`"${Vt(n)}" must not be ${t}. It must be a writable stream, not readable.`)},Wt=(e,t,n,r)=>{if("all"===e&&!n.all)return'The "all" option must be true to use "from: \'all\'".';const{optionName:o,optionValue:i}=_t(e,n);return`The "${o}: ${Ht(i)}" option is incompatible with using "${Vt(r)}: ${Ht(t)}".\nPlease set this option with "pipe" instead.`},_t=(e,{stdin:t,stdout:n,stderr:r,stdio:o})=>{const i=zt(e);return 0===i&&void 0!==t?{optionName:"stdin",optionValue:t}:1===i&&void 0!==n?{optionName:"stdout",optionValue:n}:2===i&&void 0!==r?{optionName:"stderr",optionValue:r}:{optionName:`stdio[${i}]`,optionValue:o[i]}},zt=e=>"all"===e?1:e,Vt=e=>e?"to":"from",Ht=e=>"string"==typeof e?`'${e}'`:"number"==typeof e?`${e}`:"Stream",Kt=(e,t,n)=>{const r=e.getMaxListeners();0!==r&&r!==Number.POSITIVE_INFINITY&&(e.setMaxListeners(r+t),(0,St.addAbortListener)(n,(()=>{e.setMaxListeners(e.getMaxListeners()-t)})))},qt=(e,t)=>{t&&Yt(e)},Yt=e=>{e.refCounted()},Xt=(e,t)=>{t&&Qt(e)},Qt=e=>{e.unrefCounted()},Jt=async({anyProcess:e,channel:t,isSubprocess:n,ipcEmitter:r},o)=>{if(ln(o)||On(o))return;en.has(e)||en.set(e,[]);const i=en.get(e);if(i.push(o),!(i.length>1))for(;i.length>0;){await hn(e,r,o),await Ve.scheduler.yield();const s=await cn({wrappedMessage:i[0],anyProcess:e,channel:t,isSubprocess:n,ipcEmitter:r});i.shift(),r.emit("message",s),r.emit("message:done")}},Zt=async({anyProcess:e,channel:t,isSubprocess:n,ipcEmitter:r,boundOnMessage:o})=>{Nn();const i=en.get(e);for(;i?.length>0;)await(0,St.once)(r,"message:done");e.removeListener("message",o),((e,t)=>{t&&(Yt(e),Yt(e))})(t,n),r.connected=!1,r.emit("disconnect")},en=new WeakMap,tn=(e,t,n)=>{if(nn.has(e))return nn.get(e);const r=new St.EventEmitter;return r.connected=!0,nn.set(e,r),rn({ipcEmitter:r,anyProcess:e,channel:t,isSubprocess:n}),r},nn=new WeakMap,rn=({ipcEmitter:e,anyProcess:t,channel:n,isSubprocess:r})=>{const o=Jt.bind(void 0,{anyProcess:t,channel:n,isSubprocess:r,ipcEmitter:e});t.on("message",o),t.once("disconnect",Zt.bind(void 0,{anyProcess:t,channel:n,isSubprocess:r,ipcEmitter:e,boundOnMessage:o})),((e,t)=>{t&&(Qt(e),Qt(e))})(n,r)},on=e=>{const t=nn.get(e);return void 0===t?null!==e.channel:t.connected};let sn=0n;const an=(e,t)=>{if(t?.type===mn&&!t.hasListeners)for(const{id:t}of e)void 0!==t&&un[t].resolve({isDeadlock:!0,hasListeners:!1})},cn=async({wrappedMessage:e,anyProcess:t,channel:n,isSubprocess:r,ipcEmitter:o})=>{if(e?.type!==mn||!t.connected)return e;const{id:i,message:s}=e,a={id:i,type:fn,message:gn(t,o)};try{await wn({anyProcess:t,channel:n,isSubprocess:r,ipc:!0},a)}catch(e){o.emit("strict:error",e)}return s},ln=e=>{if(e?.type!==fn)return!1;const{id:t,message:n}=e;return un[t]?.resolve({isDeadlock:!1,hasListeners:n}),!0},dn=async(e,t,n)=>{if(e?.type!==mn)return;const r=Pt();un[e.id]=r;const o=new AbortController;try{const{isDeadlock:e,hasListeners:i}=await Promise.race([r,pn(t,n,o)]);e&&(e=>{throw new Error(`${$t("sendMessage",e)} failed: the ${Bt(e)} is sending a message too, instead of listening to incoming messages.\nThis can be fixed by both sending a message and listening to incoming messages at the same time:\n\nconst [receivedMessage] = await Promise.all([\n\t${$t("getOneMessage",e)},\n\t${$t("sendMessage",e,"message, {strict: true}")},\n]);`)})(n),i||(e=>{throw new Error(`${$t("sendMessage",e)} failed: the ${Bt(e)} is not listening to incoming messages.`)})(n)}finally{o.abort(),delete un[e.id]}},un={},pn=async(e,t,{signal:n})=>{Kt(e,1,n),await(0,St.once)(e,"disconnect",{signal:n}),(e=>{throw new Error(`${$t("sendMessage",e)} failed: the ${Bt(e)} exited without listening to incoming messages.`)})(t)},mn="execa:ipc:request",fn="execa:ipc:response",hn=async(e,t,n)=>{for(;!gn(e,t)&&bn.get(e)?.size>0;){const t=[...bn.get(e)];an(t,n),await Promise.all(t.map((({onMessageSent:e})=>e)))}},bn=new WeakMap,gn=(e,t)=>t.listenerCount("message")>yn(e),yn=e=>Lt.has(e)&&!Y(Lt.get(e).options.buffer,"ipc")?1:0,wn=({anyProcess:e,channel:t,isSubprocess:n,ipc:r},o,{strict:i=!1}={})=>{const s="sendMessage";return Dt({methodName:s,isSubprocess:n,ipc:r,isConnected:e.connected}),vn({anyProcess:e,channel:t,methodName:s,isSubprocess:n,message:o,strict:i})},vn=async({anyProcess:e,channel:t,methodName:n,isSubprocess:r,message:o,strict:i})=>{const s=(({anyProcess:e,channel:t,isSubprocess:n,message:r,strict:o})=>{if(!o)return r;const i=tn(e,t,n),s=gn(e,i);return{id:sn++,type:mn,message:r,hasListeners:s}})({anyProcess:e,channel:t,isSubprocess:r,message:o,strict:i}),a=((e,t,n)=>{bn.has(e)||bn.set(e,new Set);const r=bn.get(e),o={onMessageSent:Pt(),id:n?t.id:void 0};return r.add(o),{outgoingMessages:r,outgoingMessage:o}})(e,s,i);try{await Sn({anyProcess:e,methodName:n,isSubprocess:r,wrappedMessage:s,message:o})}catch(t){throw jt(e),t}finally{(({outgoingMessages:e,outgoingMessage:t})=>{e.delete(t),t.onMessageSent.resolve()})(a)}},Sn=async({anyProcess:e,methodName:t,isSubprocess:n,wrappedMessage:r,message:o})=>{const i=xn(e);try{await Promise.all([dn(r,e,n),i(r)])}catch(e){throw(({error:e,methodName:t,isSubprocess:n})=>{if("EPIPE"===e.code)throw new Error(`${$t(t,n)} cannot be used: the ${Bt(n)} is disconnecting.`,{cause:e})})({error:e,methodName:t,isSubprocess:n}),(({error:e,methodName:t,isSubprocess:n,message:r})=>{if((({code:e,message:t})=>Nt.has(e)||Ct.some((e=>t.includes(e))))(e))throw new Error(`${$t(t,n)}'s argument type is invalid: the message cannot be serialized: ${String(r)}.`,{cause:e})})({error:e,methodName:t,isSubprocess:n,message:o}),e}},xn=e=>{if(En.has(e))return En.get(e);const t=(0,$.promisify)(e.send.bind(e));return En.set(e,t),t},En=new WeakMap,Tn=async({anyProcess:e,channel:t,isSubprocess:n,ipc:r})=>(await Dn({anyProcess:e,channel:t,isSubprocess:n,ipc:r}),Cn.signal),Dn=async({anyProcess:e,channel:t,isSubprocess:n,ipc:r})=>{In||(In=!0,r?null!==t?(tn(e,t,n),await Ve.scheduler.yield()):Nn():(()=>{throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")})())};let In=!1;const On=e=>e?.type===Mn&&(Cn.abort(e.message),!0),Mn="execa:ipc:cancel",Nn=()=>{Cn.abort(new Error(`\`cancelSignal\` aborted: the ${Bt(!0)} disconnected.`))},Cn=new AbortController,$n=({subprocess:e,cancelSignal:t,gracefulCancel:n,forceKillAfterDelay:r,context:o,controller:i})=>n?[An({subprocess:e,cancelSignal:t,forceKillAfterDelay:r,context:o,controller:i})]:[],An=async({subprocess:e,cancelSignal:t,forceKillAfterDelay:n,context:r,controller:{signal:o}})=>{await xt(t,o);const i=Bn(t);throw await((e,t)=>{const n="cancelSignal";return Ot(n,!1,e.connected),Sn({anyProcess:e,methodName:n,isSubprocess:!1,wrappedMessage:{type:Mn,message:t},message:t})})(e,i),vt({kill:e.kill,forceKillAfterDelay:n,context:r,controllerSignal:o}),r.terminationReason??="gracefulCancel",t.reason},Bn=({reason:e})=>{if(!(e instanceof DOMException))return e;const t=new Error(e.message);return Object.defineProperty(t,"stack",{value:e.stack,enumerable:!1,configurable:!0,writable:!0}),t},jn=(e,t,n,r)=>0===t||void 0===t?[]:[Pn(e,t,n,r)],Pn=async(e,t,n,{signal:r})=>{throw await(0,Ve.setTimeout)(t,void 0,{signal:r}),n.terminationReason??="timeout",e.kill(),new He},kn=e(import.meta.url)("node:v8"),Rn={advanced:e=>{try{(0,kn.serialize)(e)}catch(e){throw new Error("The `ipcInput` option is not serializable with a structured clone.",{cause:e})}},json:e=>{try{JSON.stringify(e)}catch(e){throw new Error("The `ipcInput` option is not serializable with JSON.",{cause:e})}}},Ln=async(e,t)=>{void 0!==t&&await e.sendMessage(t)},Un=new Set(["utf8","utf16le"]),Fn=new Set(["buffer","hex","base64","base64url","latin1","ascii"]),Gn=new Set([...Un,...Fn]),Wn={"utf-8":"utf8","utf-16le":"utf16le","ucs-2":"utf16le",ucs2:"utf16le",binary:"latin1"},_n=e=>"string"==typeof e?`"${e}"`:String(e);var zn=r(3024);const Vn=()=>{try{return A.cwd()}catch(e){throw e.message=`The current directory does not exist.\n${e.message}`,e}},Hn=(e,t,n)=>{n.cwd=((e=Vn())=>{const t=s(e,'The "cwd" option');return Fe.resolve(t)})(n.cwd);const[r,o,i]=((e,t,{node:n=!1,nodePath:r=A.execPath,nodeOptions:o=A.execArgv.filter((e=>!e.startsWith("--inspect"))),cwd:i,execPath:a,...c})=>{if(void 0!==a)throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.');const l=s(r,'The "nodePath" option'),d=Fe.resolve(i,l),u={...c,nodePath:d,node:n,cwd:i};if(!n)return[e,t,u];if("node"===Fe.basename(e,".exe"))throw new TypeError('When the "node" option is true, the first argument does not need to be "node".');return[d,[...o,e,...t],{ipc:!0,...u,shell:!1}]})(e,t,n),{command:a,args:c,options:d}=Ge._parse(r,o,i),u=(e=>{const t={...e};for(const n of q)t[n]=R(e,n);return t})(d),p=Kn(u);return(({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)})(p),(({encoding:e})=>{if(Gn.has(e))return;const t=(e=>{if(null===e)return"buffer";if("string"!=typeof e)return;const t=e.toLowerCase();return t in Wn?Wn[t]:Gn.has(t)?t:void 0})(e);if(void 0!==t)throw new TypeError(`Invalid option \`encoding: ${_n(e)}\`.\nPlease rename it to ${_n(t)}.`);const n=[...Gn].map((e=>_n(e))).join(", ");throw new TypeError(`Invalid option \`encoding: ${_n(e)}\`.\nPlease rename it to one of: ${n}.`)})(p),(({ipcInput:e,ipc:t,serialization:n})=>{if(void 0!==e){if(!t)throw new Error("The `ipcInput` option cannot be set unless the `ipc` option is `true`.");Rn[n](e)}})(p),(({cancelSignal:e})=>{if(void 0!==e&&"[object AbortSignal]"!==Object.prototype.toString.call(e))throw new Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(e)}`)})(p),(({gracefulCancel:e,cancelSignal:t,ipc:n,serialization:r})=>{if(e){if(void 0===t)throw new Error("The `cancelSignal` option must be defined when setting the `gracefulCancel` option.");if(!n)throw new Error("The `ipc` option cannot be false when setting the `gracefulCancel` option.");if("json"===r)throw new Error("The `serialization` option cannot be 'json' when setting the `gracefulCancel` option.")}})(p),p.shell=l(p.shell),p.env=qn(p),p.killSignal=(e=>{const t="option `killSignal`";if(0===e)throw new TypeError(`Invalid ${t}: 0 cannot be used.`);return ct(e,t)})(p.killSignal),p.forceKillAfterDelay=(e=>{if(!1===e)return e;if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterDelay\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(p.forceKillAfterDelay),p.lines=p.lines.map(((e,t)=>e&&!Fn.has(p.encoding)&&p.buffer[t])),"win32"===A.platform&&"cmd"===Fe.basename(a,".exe")&&c.unshift("/q"),{file:a,commandArguments:c,options:p}},Kn=({extendEnv:e=!0,preferLocal:t=!1,cwd:n,localDir:r=n,encoding:o="utf8",reject:i=!0,cleanup:s=!0,all:a=!1,windowsHide:c=!0,killSignal:l="SIGTERM",forceKillAfterDelay:d=!0,gracefulCancel:u=!1,ipcInput:p,ipc:m=void 0!==p||u,serialization:f="advanced",...h})=>({...h,extendEnv:e,preferLocal:t,cwd:n,localDirectory:r,encoding:o,reject:i,cleanup:s,all:a,windowsHide:c,killSignal:l,forceKillAfterDelay:d,gracefulCancel:u,ipcInput:p,ipc:m,serialization:f}),qn=({env:e,extendEnv:t,preferLocal:n,node:r,localDirectory:o,nodePath:i})=>{const s=t?{...A.env,...e}:e;return n||r?ze({env:s,cwd:o,execPath:i,preferLocal:n,addExecPath:r}):s};function Yn(e){if("string"==typeof e)return Xn(e);if(!ArrayBuffer.isView(e)||1!==e.BYTES_PER_ELEMENT)throw new Error("Input must be a string or a Uint8Array");return Qn(e)}const Xn=e=>e.at(-1)===Jn?e.slice(0,e.at(-2)===er?-2:-1):e,Qn=e=>e.at(-1)===Zn?e.subarray(0,e.at(-2)===tr?-2:-1):e,Jn="\n",Zn=Jn.codePointAt(0),er="\r",tr=er.codePointAt(0);function nr(e,{checkOpen:t=!0}={}){return null!==e&&"object"==typeof e&&(e.writable||e.readable||!t||void 0===e.writable&&void 0===e.readable)&&"function"==typeof e.pipe}function rr(e,{checkOpen:t=!0}={}){return nr(e,{checkOpen:t})&&(e.writable||!t)&&"function"==typeof e.write&&"function"==typeof e.end&&"boolean"==typeof e.writable&&"boolean"==typeof e.writableObjectMode&&"function"==typeof e.destroy&&"boolean"==typeof e.destroyed}function or(e,{checkOpen:t=!0}={}){return nr(e,{checkOpen:t})&&(e.readable||!t)&&"function"==typeof e.read&&"boolean"==typeof e.readable&&"boolean"==typeof e.readableObjectMode&&"function"==typeof e.destroy&&"boolean"==typeof e.destroyed}function ir(e,t){return rr(e,t)&&or(e,t)}const sr=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);class ar{#e;#t;#n=!1;#r=void 0;constructor(e,t){this.#e=e,this.#t=t}next(){const e=()=>this.#o();return this.#r=this.#r?this.#r.then(e,e):e(),this.#r}return(e){const t=()=>this.#i(e);return this.#r?this.#r.then(t,t):t()}async#o(){if(this.#n)return{done:!0,value:void 0};let e;try{e=await this.#e.read()}catch(e){throw this.#r=void 0,this.#n=!0,this.#e.releaseLock(),e}return e.done&&(this.#r=void 0,this.#n=!0,this.#e.releaseLock()),e}async#i(e){if(this.#n)return{done:!0,value:e};if(this.#n=!0,!this.#t){const t=this.#e.cancel(e);return this.#e.releaseLock(),await t,{done:!0,value:e}}return this.#e.releaseLock(),{done:!0,value:e}}}const cr=Symbol();function lr(){return this[cr].next()}function dr(e){return this[cr].return(e)}Object.defineProperty(lr,"name",{value:"next"}),Object.defineProperty(dr,"name",{value:"return"});const ur=Object.create(sr,{next:{enumerable:!0,configurable:!0,writable:!0,value:lr},return:{enumerable:!0,configurable:!0,writable:!0,value:dr}});function pr({preventCancel:e=!1}={}){const t=this.getReader(),n=new ar(t,e),r=Object.create(ur);return r[cr]=n,r}const mr=e=>{if(or(e,{checkOpen:!1})&&void 0!==gr.on)return hr(e);if("function"==typeof e?.[Symbol.asyncIterator])return e;if("[object ReadableStream]"===fr.call(e))return pr.call(e);throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")},{toString:fr}=Object.prototype,hr=async function*(e){const t=new AbortController,n={};br(e,t,n);try{for await(const[n]of gr.on(e,"data",{signal:t.signal}))yield n}catch(e){if(void 0!==n.error)throw n.error;if(!t.signal.aborted)throw e}finally{e.destroy()}},br=async(e,t,n)=>{try{await gr.finished(e,{cleanup:!0,readable:!0,writable:!1,error:!1})}catch(e){n.error=e}finally{t.abort()}},gr={},yr=async(e,{init:t,convertChunk:n,getSize:r,truncateChunk:o,addChunk:i,getFinalChunk:s,finalize:a},{maxBuffer:c=Number.POSITIVE_INFINITY}={})=>{const l=mr(e),d=t();d.length=0;try{for await(const e of l){const t=n[xr(e)](e,d);vr({convertedChunk:t,state:d,getSize:r,truncateChunk:o,addChunk:i,maxBuffer:c})}return wr({state:d,convertChunk:n,getSize:r,truncateChunk:o,addChunk:i,getFinalChunk:s,maxBuffer:c}),a(d)}catch(e){const t="object"==typeof e&&null!==e?e:new Error(e);throw t.bufferedData=a(d),t}},wr=({state:e,getSize:t,truncateChunk:n,addChunk:r,getFinalChunk:o,maxBuffer:i})=>{const s=o(e);void 0!==s&&vr({convertedChunk:s,state:e,getSize:t,truncateChunk:n,addChunk:r,maxBuffer:i})},vr=({convertedChunk:e,state:t,getSize:n,truncateChunk:r,addChunk:o,maxBuffer:i})=>{const s=n(e),a=t.length+s;if(a<=i)return void Sr(e,t,o,a);const c=r(e,i-t.length);throw void 0!==c&&Sr(c,t,o,i),new Tr},Sr=(e,t,n,r)=>{t.contents=n(e,t,r),t.length=r},xr=e=>{const t=typeof e;if("string"===t)return"string";if("object"!==t||null===e)return"others";if(globalThis.Buffer?.isBuffer(e))return"buffer";const n=Er.call(e);return"[object ArrayBuffer]"===n?"arrayBuffer":"[object DataView]"===n?"dataView":Number.isInteger(e.byteLength)&&Number.isInteger(e.byteOffset)&&"[object ArrayBuffer]"===Er.call(e.buffer)?"typedArray":"others"},{toString:Er}=Object.prototype;class Tr extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const Dr=(e,t,n)=>{if(t.length!==n)return;const r=new Tr;throw r.maxBufferInfo={fdNumber:"ipc"},r},Ir=([,e])=>e,Or=({originalError:e,timedOut:t,timeout:n,isMaxBuffer:r,maxBuffer:o,errorCode:i,signal:s,signalDescription:a,exitCode:c,isCanceled:l,isGracefullyCanceled:d,isForcefullyTerminated:u,forceKillAfterDelay:p,killSignal:m})=>{const f=Mr(u,p);return t?`Command timed out after ${n} milliseconds${f}`:d?void 0===s?`Command was gracefully canceled with exit code ${c}`:u?`Command was gracefully canceled${f}`:`Command was gracefully canceled with ${s} (${a})`:l?`Command was canceled${f}`:r?`${((e,t)=>{const{streamName:n,threshold:r,unit:o}=((e,t)=>{if(void 0===e?.maxBufferInfo)return{streamName:"output",threshold:t[1],unit:"bytes"};const{maxBufferInfo:{fdNumber:n,unit:r}}=e;delete e.maxBufferInfo;const o=Y(t,n);return"ipc"===n?{streamName:"IPC output",threshold:o,unit:"messages"}:{streamName:k(n),threshold:o,unit:r}})(e,t);return`Command's ${n} was larger than ${r} ${o}`})(e,o)}${f}`:void 0!==i?`Command failed with ${i}${f}`:u?`Command was killed with ${m} (${ht(m)})${f}`:void 0!==s?`Command was killed with ${s} (${a})`:void 0!==c?`Command failed with exit code ${c}`:"Command failed"},Mr=(e,t)=>e?` and was forcefully terminated after ${t} milliseconds`:"",Nr=e=>"string"==typeof e?e:f(e)?w(e):"",Cr=({command:e,escapedCommand:t,stdio:n,all:r,ipcOutput:o,options:{cwd:i},startTime:s})=>jr({command:e,escapedCommand:t,cwd:i,durationMs:Le(s),failed:!1,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isTerminated:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,exitCode:0,stdout:n[1],stderr:n[2],all:r,stdio:n,ipcOutput:o,pipedFrom:[]}),$r=({error:e,command:t,escapedCommand:n,fileDescriptors:r,options:o,startTime:i,isSync:s})=>Ar({error:e,command:t,escapedCommand:n,startTime:i,timedOut:!1,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:!1,isForcefullyTerminated:!1,stdio:Array.from({length:r.length}),ipcOutput:[],options:o,isSync:s}),Ar=({error:e,command:t,escapedCommand:n,startTime:r,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:l,signal:d,stdio:u,all:p,ipcOutput:m,options:{timeoutDuration:f,timeout:h=f,forceKillAfterDelay:b,killSignal:g,cwd:y,maxBuffer:w},isSync:v})=>{const{exitCode:S,signal:x,signalDescription:E}=Pr(l,d),{originalMessage:T,shortMessage:D,message:I}=(({stdio:e,all:t,ipcOutput:n,originalError:r,signal:o,signalDescription:i,exitCode:s,escapedCommand:a,timedOut:c,isCanceled:l,isGracefullyCanceled:d,isMaxBuffer:u,isForcefullyTerminated:p,forceKillAfterDelay:m,killSignal:f,maxBuffer:h,timeout:b,cwd:g})=>{const y=r?.code,w=Or({originalError:r,timedOut:c,timeout:b,isMaxBuffer:u,maxBuffer:h,errorCode:y,signal:o,signalDescription:i,exitCode:s,isCanceled:l,isGracefullyCanceled:d,isForcefullyTerminated:p,forceKillAfterDelay:m,killSignal:f}),v=((e,t)=>{if(e instanceof He)return;const n=Ye(r=e)&&qe in r?e.originalMessage:String(e?.message??e);var r;const o=ne(((e,t)=>{if(t===Vn())return e;let n;try{n=(0,zn.statSync)(t)}catch(n){return`The "cwd" option is invalid: ${t}.\n${n.message}\n${e}`}return n.isDirectory()?e:`The "cwd" option is not a directory: ${t}.\n${e}`})(n,t));return""===o?void 0:o})(r,g),S=`${w}: ${a}${void 0===v?"":`\n${v}`}`,x=[S,...void 0===t?[e[2],e[1]]:[t],...e.slice(3),n.map((e=>(e=>"string"==typeof e?e:(0,$.inspect)(e))(e))).join("\n")].map((e=>ne(Yn((e=>Array.isArray(e)?e.map((e=>Yn(Nr(e)))).filter(Boolean).join("\n"):Nr(e))(e))))).filter(Boolean).join("\n\n");return{originalMessage:v,shortMessage:S,message:x}})({stdio:u,all:p,ipcOutput:m,originalError:e,signal:x,signalDescription:E,exitCode:S,escapedCommand:n,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,forceKillAfterDelay:b,killSignal:g,maxBuffer:w,timeout:h,cwd:y}),O=((e,t,n)=>new(n?Qe:Xe)(t,e instanceof He?{}:{cause:e}))(e,I,v);return Object.assign(O,Br({error:O,command:t,escapedCommand:n,startTime:r,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:S,signal:x,signalDescription:E,stdio:u,all:p,ipcOutput:m,cwd:y,originalMessage:T,shortMessage:D})),O},Br=({error:e,command:t,escapedCommand:n,startTime:r,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:l,signal:d,signalDescription:u,stdio:p,all:m,ipcOutput:f,cwd:h,originalMessage:b,shortMessage:g})=>jr({shortMessage:g,originalMessage:b,command:t,escapedCommand:n,cwd:h,durationMs:Le(r),failed:!0,timedOut:o,isCanceled:i,isGracefullyCanceled:s,isTerminated:void 0!==d,isMaxBuffer:a,isForcefullyTerminated:c,exitCode:l,signal:d,signalDescription:u,code:e.cause?.code,stdout:p[1],stderr:p[2],all:m,stdio:p,ipcOutput:f,pipedFrom:[]}),jr=e=>Object.fromEntries(Object.entries(e).filter((([,e])=>void 0!==e))),Pr=(e,t)=>{const n=null===t?void 0:t;return{exitCode:null===e?void 0:e,signal:n,signalDescription:void 0===n?void 0:ht(t)}},kr=e=>Number.isFinite(e)?e:0;function Rr(e,t){const n="bigint"==typeof e;if(!n&&!Number.isFinite(e))throw new TypeError("Expected a finite number or bigint");const r=e<0?"-":"";e=e<0?-e:e,(t={...t}).colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.unitCount=1,t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let o=[];const i=(e,n,r,i)=>{if(0!==o.length&&t.colonNotation||!(e=>0===e||0n===e)(e)||t.colonNotation&&"m"===r){if(i??=String(e),t.colonNotation){const e=i.includes(".")?i.split(".")[0].length:i.length,t=o.length>0?2:1;i="0".repeat(Math.max(0,t-e))+i}else i+=t.verbose?" "+((e,t)=>1===t||1n===t?e:`${e}s`)(n,e):r;o.push(i)}},s=function(e){switch(typeof e){case"number":if(Number.isFinite(e))return function(e){return{days:Math.trunc(e/864e5),hours:Math.trunc(e/36e5%24),minutes:Math.trunc(e/6e4%60),seconds:Math.trunc(e/1e3%60),milliseconds:Math.trunc(e%1e3),microseconds:Math.trunc(kr(1e3*e)%1e3),nanoseconds:Math.trunc(kr(1e6*e)%1e3)}}(e);break;case"bigint":return function(e){return{days:e/86400000n,hours:e/3600000n%24n,minutes:e/60000n%60n,seconds:e/1000n%60n,milliseconds:e%1000n,microseconds:0n,nanoseconds:0n}}(e)}throw new TypeError("Expected a finite number or bigint")}(e),a=BigInt(s.days);if(t.hideYearAndDays?i(24n*BigInt(a)+BigInt(s.hours),"hour","h"):(t.hideYear?i(a,"day","d"):(i(a/365n,"year","y"),i(a%365n,"day","d")),i(Number(s.hours),"hour","h")),i(Number(s.minutes),"minute","m"),!t.hideSeconds)if(t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3){const e=Number(s.seconds),n=Number(s.milliseconds),r=Number(s.microseconds),o=Number(s.nanoseconds);if(i(e,"second","s"),t.formatSubMilliseconds)i(n,"millisecond","ms"),i(r,"microsecond","\xb5s"),i(o,"nanosecond","ns");else{const e=n+r/1e3+o/1e6,s="number"==typeof t.millisecondsDecimalDigits?t.millisecondsDecimalDigits:0,a=e>=1?Math.round(e):Math.ceil(e),c=s?e.toFixed(s):a;i(Number.parseFloat(c),"millisecond","ms",c)}}else{const r=((e,t)=>{const n=Math.floor(e*10**t+1e-7);return(Math.round(n)/10**t).toFixed(t)})((n?Number(e%86400000n):e)/1e3%60,"number"==typeof t.secondsDecimalDigits?t.secondsDecimalDigits:1),o=t.keepDecimalsOnWholeSeconds?r:r.replace(/\.0+$/,"");i(Number.parseFloat(o),"second","s",o)}if(0===o.length)return r+"0"+(t.verbose?" milliseconds":"ms");const c=t.colonNotation?":":" ";return"number"==typeof t.unitCount&&(o=o.slice(0,Math.max(t.unitCount,1))),r+o.join(c)}const Lr=(e,t)=>{const n=`(done in ${Rr(e.durationMs)})`;Ne({type:"duration",verboseMessage:n,verboseInfo:t,result:e})},Ur=(e,t,{reject:n})=>{if(((e,t)=>{X(t)&&(((e,t)=>{e.failed&&Ne({type:"error",verboseMessage:e.shortMessage,verboseInfo:t,result:e})})(e,t),Lr(e,t))})(e,t),e.failed&&n)throw e;return e},Fr=(e,t)=>Yr(e)?"asyncGenerator":Xr(e)?"generator":Jr(e)?"fileUrl":Zr(e)?"filePath":io(e)?"webStream":nr(e,{checkOpen:!1})?"native":f(e)?"uint8Array":ao(e)?"asyncIterable":co(e)?"iterable":so(e)?_r({transform:e},t):Qr(e)?Gr(e,t):"native",Gr=(e,t)=>ir(e.transform,{checkOpen:!1})?Wr(e,t):so(e.transform)?_r(e,t):Hr(e,t),Wr=(e,t)=>(zr(e,t,"Duplex stream"),"duplex"),_r=(e,t)=>(zr(e,t,"web TransformStream"),"webTransform"),zr=({final:e,binary:t,objectMode:n},r,o)=>{Vr(e,`${r}.final`,o),Vr(t,`${r}.binary`,o),Kr(n,`${r}.objectMode`)},Vr=(e,t,n)=>{if(void 0!==e)throw new TypeError(`The \`${t}\` option can only be defined when using a generator, not a ${n}.`)},Hr=({transform:e,final:t,binary:n,objectMode:r},o)=>{if(void 0!==e&&!qr(e))throw new TypeError(`The \`${o}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`);if(ir(t,{checkOpen:!1}))throw new TypeError(`The \`${o}.final\` option must not be a Duplex stream.`);if(so(t))throw new TypeError(`The \`${o}.final\` option must not be a web TransformStream.`);if(void 0!==t&&!qr(t))throw new TypeError(`The \`${o}.final\` option must be a generator.`);return Kr(n,`${o}.binary`),Kr(r,`${o}.objectMode`),Yr(e)||Yr(t)?"asyncGenerator":"generator"},Kr=(e,t)=>{if(void 0!==e&&"boolean"!=typeof e)throw new TypeError(`The \`${t}\` option must use a boolean.`)},qr=e=>Yr(e)||Xr(e),Yr=e=>"[object AsyncGeneratorFunction]"===Object.prototype.toString.call(e),Xr=e=>"[object GeneratorFunction]"===Object.prototype.toString.call(e),Qr=e=>o(e)&&(void 0!==e.transform||void 0!==e.final),Jr=e=>"[object URL]"===Object.prototype.toString.call(e),Zr=e=>o(e)&&Object.keys(e).length>0&&Object.keys(e).every((e=>eo.has(e)))&&to(e.file),eo=new Set(["file","append"]),to=e=>"string"==typeof e,no=new Set(["ipc","ignore","inherit","overlapped","pipe"]),ro=e=>"[object ReadableStream]"===Object.prototype.toString.call(e),oo=e=>"[object WritableStream]"===Object.prototype.toString.call(e),io=e=>ro(e)||oo(e),so=e=>ro(e?.readable)&&oo(e?.writable),ao=e=>lo(e)&&"function"==typeof e[Symbol.asyncIterator],co=e=>lo(e)&&"function"==typeof e[Symbol.iterator],lo=e=>"object"==typeof e&&null!==e,uo=new Set(["generator","asyncGenerator","duplex","webTransform"]),po=new Set(["fileUrl","filePath","fileNumber"]),mo=new Set(["fileUrl","filePath"]),fo=new Set([...mo,"webStream","nodeStream"]),ho=new Set(["webTransform","duplex"]),bo={generator:"a generator",asyncGenerator:"an async generator",fileUrl:"a file URL",filePath:"a file path string",fileNumber:"a file descriptor number",webStream:"a web stream",nodeStream:"a Node.js stream",webTransform:"a web TransformStream",duplex:"a Duplex stream",native:"any value",iterable:"an iterable",asyncIterable:"an async iterable",string:"a string",uint8Array:"a Uint8Array"},go=(e,t,n,r)=>"output"===r?yo(e,t,n):wo(e,t,n),yo=(e,t,n)=>{const r=0!==t&&n[t-1].value.readableObjectMode;return{writableObjectMode:r,readableObjectMode:e??r}},wo=(e,t,n)=>{const r=0===t?!0===e:n[t-1].value.readableObjectMode;return{writableObjectMode:r,readableObjectMode:t!==n.length-1&&(e??r)}},vo=(e,t,n,{encoding:r})=>{const o=e.filter((({type:e})=>uo.has(e))),i=Array.from({length:o.length});for(const[e,s]of Object.entries(o))i[e]=So({stdioItem:s,index:Number(e),newTransforms:i,optionName:t,direction:n,encoding:r});return Do(i,n)},So=({stdioItem:e,stdioItem:{type:t},index:n,newTransforms:r,optionName:o,direction:i,encoding:s})=>"duplex"===t?xo({stdioItem:e,optionName:o}):"webTransform"===t?Eo({stdioItem:e,index:n,newTransforms:r,direction:i}):To({stdioItem:e,index:n,newTransforms:r,direction:i,encoding:s}),xo=({stdioItem:e,stdioItem:{value:{transform:t,transform:{writableObjectMode:n,readableObjectMode:r},objectMode:o=r}},optionName:i})=>{if(o&&!r)throw new TypeError(`The \`${i}.objectMode\` option can only be \`true\` if \`new Duplex({objectMode: true})\` is used.`);if(!o&&r)throw new TypeError(`The \`${i}.objectMode\` option cannot be \`false\` if \`new Duplex({objectMode: true})\` is used.`);return{...e,value:{transform:t,writableObjectMode:n,readableObjectMode:r}}},Eo=({stdioItem:e,stdioItem:{value:t},index:n,newTransforms:r,direction:i})=>{const{transform:s,objectMode:a}=o(t)?t:{transform:t},{writableObjectMode:c,readableObjectMode:l}=go(a,n,r,i);return{...e,value:{transform:s,writableObjectMode:c,readableObjectMode:l}}},To=({stdioItem:e,stdioItem:{value:t},index:n,newTransforms:r,direction:i,encoding:s})=>{const{transform:a,final:c,binary:l=!1,preserveNewlines:d=!1,objectMode:u}=o(t)?t:{transform:t},p=l||Fn.has(s),{writableObjectMode:m,readableObjectMode:f}=go(u,n,r,i);return{...e,value:{transform:a,final:c,binary:p,preserveNewlines:d,writableObjectMode:m,readableObjectMode:f}}},Do=(e,t)=>"input"===t?e.reverse():e,Io=["input","output","output"],Oo=()=>{},Mo=()=>"input",No={generator:Oo,asyncGenerator:Oo,fileUrl:Oo,filePath:Oo,iterable:Mo,asyncIterable:Mo,uint8Array:Mo,webStream:e=>oo(e)?"output":"input",nodeStream:e=>or(e,{checkOpen:!1})?rr(e,{checkOpen:!1})?void 0:"input":"output",webTransform:Oo,duplex:Oo,native(e){const t=Co(e);return void 0!==t?t:nr(e,{checkOpen:!1})?No.nodeStream(e):void 0}},Co=e=>[0,A.stdin].includes(e)?"input":[1,2,A.stdout,A.stderr].includes(e)?"output":void 0,$o=e=>P.some((t=>void 0!==e[t])),Ao=(e,t)=>Array.isArray(e)?e.map((e=>Ao(e,t))):null==e?t>=P.length?"ignore":"pipe":e,Bo=e=>"pipe"===e||Array.isArray(e)&&e.every((e=>"pipe"===e)),jo=({value:e,optionName:t,fdNumber:n,direction:r})=>{const o=Po(e,n);if(void 0!==o){if("output"===r)return{type:"fileNumber",value:o,optionName:t};if(fe.isatty(o))throw new TypeError(`The \`${t}: ${Ht(e)}\` option is invalid: it cannot be a TTY with synchronous methods.`);return{type:"uint8Array",value:h((0,zn.readFileSync)(o)),optionName:t}}},Po=(e,t)=>{if("inherit"===e)return t;if("number"==typeof e)return e;const n=j.indexOf(e);return-1!==n?n:void 0},ko=(e,t,n)=>{const r=j[e];if(void 0===r)throw new TypeError(`The \`${n}: ${t}\` option is invalid: no such standard stream.`);return r},Ro=({input:e,inputFile:t},n)=>0===n?[...Lo(e),...Fo(t)]:[],Lo=e=>void 0===e?[]:[{type:Uo(e),value:e,optionName:"input"}],Uo=e=>{if(or(e,{checkOpen:!1}))return"nodeStream";if("string"==typeof e)return"string";if(f(e))return"uint8Array";throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.")},Fo=e=>void 0===e?[]:[{...Go(e),optionName:"inputFile"}],Go=e=>{if(Jr(e))return{type:"fileUrl",value:e};if(to(e))return{type:"filePath",value:{file:e}};throw new Error("The `inputFile` option must be a file path string or a file URL.")},Wo=({otherStdioItems:e,type:t,value:n,optionName:r,direction:o})=>{const i=e.filter((e=>_o(e,n)));if(0===i.length)return;const s=i.find((e=>e.direction!==o));return zo(s,r,t),"output"===o?i[0].stream:void 0},_o=({type:e,value:t},n)=>"filePath"===e?t.file===n.file:"fileUrl"===e?t.href===n.href:t===n,zo=(e,t,n)=>{if(void 0!==e)throw new TypeError(`The \`${e.optionName}\` and \`${t}\` options must not target ${bo[n]} that is the same.`)},Vo=(e,t,n,r)=>{const o=(({stdio:e,ipc:t,buffer:n,...r},o,i)=>{const s=((e,t)=>{if(void 0===e)return P.map((e=>t[e]));if($o(t))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${P.map((e=>`\`${e}\``)).join(", ")}`);if("string"==typeof e)return[e,e,e];if(!Array.isArray(e))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof e}\``);const n=Math.max(e.length,P.length);return Array.from({length:n},((t,n)=>e[n]))})(e,r).map(((e,t)=>Ao(e,t)));return i?((e,t,n)=>e.map(((e,r)=>t[r]||0===r||Q(n,r)||!Bo(e)?e:"ignore")))(s,n,o):((e,t)=>t&&!e.includes("ipc")?[...e,"ipc"]:e)(s,t)})(t,n,r),i=o.map(((e,n)=>Ho({stdioOption:e,fdNumber:n,options:t,isSync:r}))),s=ei({initialFileDescriptors:i,addProperties:e,options:t,isSync:r});return t.stdio=s.map((({stdioItems:e})=>oi(e))),s},Ho=({stdioOption:e,fdNumber:t,options:n,isSync:r})=>{const o=k(t),{stdioItems:i,isStdioArray:s}=Ko({stdioOption:e,fdNumber:t,options:n,optionName:o}),a=((e,t,n)=>{const r=e.map((e=>(({type:e,value:t},n)=>Io[n]??No[e](t))(e,t)));if(r.includes("input")&&r.includes("output"))throw new TypeError(`The \`${n}\` option must not be an array of both readable and writable values.`);return r.find(Boolean)??"output"})(i,t,o),c=i.map((e=>(({stdioItem:e,stdioItem:{type:t},isStdioArray:n,fdNumber:r,direction:o,isSync:i})=>n&&"native"===t?i?(({stdioItem:e,stdioItem:{value:t,optionName:n},fdNumber:r,direction:o})=>{const i=jo({value:t,optionName:n,fdNumber:r,direction:o});if(void 0!==i)return i;if(nr(t,{checkOpen:!1}))throw new TypeError(`The \`${n}: Stream\` option cannot both be an array and include a stream with synchronous methods.`);return e})({stdioItem:e,fdNumber:r,direction:o}):(({stdioItem:e,stdioItem:{value:t,optionName:n},fdNumber:r})=>"inherit"===t?{type:"nodeStream",value:ko(r,t,n),optionName:n}:"number"==typeof t?{type:"nodeStream",value:ko(t,t,n),optionName:n}:nr(t,{checkOpen:!1})?{type:"nodeStream",value:t,optionName:n}:e)({stdioItem:e,fdNumber:r}):e)({stdioItem:e,isStdioArray:s,fdNumber:t,direction:a,isSync:r}))),l=((e,t,n,r)=>[...e.filter((({type:e})=>!uo.has(e))),...vo(e,t,n,r)])(c,o,a,n),d=((e,t)=>{const n=e.findLast((({type:e})=>uo.has(e)));return void 0!==n&&("input"===t?n.value.writableObjectMode:n.value.readableObjectMode)})(l,a);return Zo(l,d),{direction:a,objectMode:d,stdioItems:l}},Ko=({stdioOption:e,fdNumber:t,options:n,optionName:r})=>{const o=(e=>e.filter(((t,n)=>e.every(((e,r)=>t.value!==e.value||n>=r||"generator"===t.type||"asyncGenerator"===t.type)))))([...(Array.isArray(e)?e:[e]).map((e=>qo(e,r))),...Ro(n,t)]),i=o.length>1;return Yo(o,i,r),Qo(o),{stdioItems:o,isStdioArray:i}},qo=(e,t)=>({type:Fr(e,t),value:e,optionName:t}),Yo=(e,t,n)=>{if(0===e.length)throw new TypeError(`The \`${n}\` option must not be an empty array.`);if(t)for(const{value:t,optionName:n}of e)if(Xo.has(t))throw new Error(`The \`${n}\` option must not include \`${t}\`.`)},Xo=new Set(["ignore","ipc"]),Qo=e=>{for(const t of e)Jo(t)},Jo=({type:e,value:t,optionName:n})=>{if((e=>Jr(e)&&"file:"!==e.protocol)(t))throw new TypeError(`The \`${n}: URL\` option must use the \`file:\` scheme.\nFor example, you can use the \`pathToFileURL()\` method of the \`url\` core module.`);if(((e,t)=>"native"===e&&"string"==typeof t&&!no.has(t))(e,t))throw new TypeError(`The \`${n}: { file: '...' }\` option must be used instead of \`${n}: '...'\`.`)},Zo=(e,t)=>{if(!t)return;const n=e.find((({type:e})=>po.has(e)));if(void 0!==n)throw new TypeError(`The \`${n.optionName}\` option cannot use both files and transforms in objectMode.`)},ei=({initialFileDescriptors:e,addProperties:t,options:n,isSync:r})=>{const o=[];try{for(const i of e)o.push(ti({fileDescriptor:i,fileDescriptors:o,addProperties:t,options:n,isSync:r}));return o}catch(e){throw ri(o),e}},ti=({fileDescriptor:{direction:e,objectMode:t,stdioItems:n},fileDescriptors:r,addProperties:o,options:i,isSync:s})=>{const a=n.map((t=>ni({stdioItem:t,addProperties:o,direction:e,options:i,fileDescriptors:r,isSync:s})));return{direction:e,objectMode:t,stdioItems:a}},ni=({stdioItem:e,addProperties:t,direction:n,options:r,fileDescriptors:o,isSync:i})=>{const s=(({stdioItem:{type:e,value:t,optionName:n},direction:r,fileDescriptors:o,isSync:i})=>{const s=((e,t)=>e.flatMap((({direction:e,stdioItems:n})=>n.filter((e=>e.type===t)).map((t=>({...t,direction:e}))))))(o,e);if(0!==s.length){if(!i)return fo.has(e)?Wo({otherStdioItems:s,type:e,value:t,optionName:n,direction:r}):void(ho.has(e)&&(({otherStdioItems:e,type:t,value:n,optionName:r})=>{const o=e.find((({value:{transform:e}})=>e===n.transform));zo(o,r,t)})({otherStdioItems:s,type:e,value:t,optionName:n}));(({otherStdioItems:e,type:t,value:n,optionName:r,direction:o})=>{mo.has(t)&&Wo({otherStdioItems:e,type:t,value:n,optionName:r,direction:o})})({otherStdioItems:s,type:e,value:t,optionName:n,direction:r})}})({stdioItem:e,direction:n,fileDescriptors:o,isSync:i});return void 0!==s?{...e,stream:s}:{...e,...t[n][e.type](e,r)}},ri=e=>{for(const{stdioItems:t}of e)for(const{stream:e}of t)void 0===e||B(e)||e.destroy()},oi=e=>{if(e.length>1)return e.some((({value:e})=>"overlapped"===e))?"overlapped":"pipe";const[{type:t,value:n}]=e;return"native"===t?n:"pipe"},ii=({type:e,optionName:t})=>{si(t,bo[e])},si=(e,t)=>{throw new TypeError(`The \`${e}\` option cannot be ${t} with synchronous methods.`)},ai={generator(){},asyncGenerator:ii,webStream:ii,nodeStream:ii,webTransform:ii,duplex:ii,asyncIterable:ii,native:({optionName:e,value:t})=>("ipc"!==t&&"overlapped"!==t||si(e,`"${t}"`),{})},ci={input:{...ai,fileUrl:({value:e})=>({contents:[h((0,zn.readFileSync)(e))]}),filePath:({value:{file:e}})=>({contents:[h((0,zn.readFileSync)(e))]}),fileNumber:ii,iterable:({value:e})=>({contents:[...e]}),string:({value:e})=>({contents:[e]}),uint8Array:({value:e})=>({contents:[e]})},output:{...ai,fileUrl:({value:e})=>({path:e}),filePath:({value:{file:e,append:t}})=>({path:e,append:t}),fileNumber:({value:e})=>({path:e}),iterable:ii,string:ii,uint8Array:ii}},li=(e,{stripFinalNewline:t},n)=>di(t,n)&&void 0!==e&&!Array.isArray(e)?Yn(e):e,di=(e,t)=>"all"===t?e[1]||e[2]:e[t];var ui=r(7075);const pi=(e,t,n,r)=>e||n?void 0:hi(t,r),mi=(e,t,n)=>n?e.flatMap((e=>fi(e,t))):fi(e,t),fi=(e,t)=>{const{transform:n,final:r}=hi(t,{});return[...n(e),...r()]},hi=(e,t)=>(t.previousChunks="",{transform:bi.bind(void 0,t,e),final:yi.bind(void 0,t)}),bi=function*(e,t,n){if("string"!=typeof n)return void(yield n);let{previousChunks:r}=e,o=-1;for(let i=0;i<n.length;i+=1)if("\n"===n[i]){const s=gi(n,i,t,e);let a=n.slice(o+1,i+1-s);r.length>0&&(a=Si(r,a),r=""),yield a,o=i}o!==n.length-1&&(r=Si(r,n.slice(o+1))),e.previousChunks=r},gi=(e,t,n,r)=>n?0:(r.isWindowsNewline=0!==t&&"\r"===e[t-1],r.isWindowsNewline?2:1),yi=function*({previousChunks:e}){e.length>0&&(yield e)},wi=({binary:e,preserveNewlines:t,readableObjectMode:n,state:r})=>e||t||n?void 0:{transform:vi.bind(void 0,r)},vi=function*({isWindowsNewline:e=!1},t){const{unixNewline:n,windowsNewline:r,LF:o,concatBytes:i}="string"==typeof t?xi:Ei;if(t.at(-1)===o)return void(yield t);const s=e?r:n;yield i(t,s)},Si=(e,t)=>`${e}${t}`,xi={windowsNewline:"\r\n",unixNewline:"\n",LF:"\n",concatBytes:Si},Ei={windowsNewline:new Uint8Array([13,10]),unixNewline:new Uint8Array([10]),LF:10,concatBytes:(e,t)=>{const n=new Uint8Array(e.length+t.length);return n.set(e,0),n.set(t,e.length),n}};var Ti=r(4573);const Di=(e,t)=>e?void 0:Ii.bind(void 0,t),Ii=function*(e,t){if("string"!=typeof t&&!f(t)&&!Ti.Buffer.isBuffer(t))throw new TypeError(`The \`${e}\` option's transform must use "objectMode: true" to receive as input: ${typeof t}.`);yield t},Oi=(e,t)=>e?Mi.bind(void 0,t):Ni.bind(void 0,t),Mi=function*(e,t){Ci(e,t),yield t},Ni=function*(e,t){if(Ci(e,t),"string"!=typeof t&&!f(t))throw new TypeError(`The \`${e}\` option's function must yield a string or an Uint8Array, not ${typeof t}.`);yield t},Ci=(e,t)=>{if(null==t)throw new TypeError(`The \`${e}\` option's function must not call \`yield ${t}\`.\nInstead, \`yield\` should either be called with a value, or not be called at all. For example:\n if (condition) { yield value; }`)},$i=(e,t,n)=>{if(n)return;if(e)return{transform:Ai.bind(void 0,new TextEncoder)};const r=new p.StringDecoder(t);return{transform:Bi.bind(void 0,r),final:ji.bind(void 0,r)}},Ai=function*(e,t){Ti.Buffer.isBuffer(t)?yield h(t):"string"==typeof t?yield e.encode(t):yield t},Bi=function*(e,t){yield f(t)?e.write(t):t},ji=function*(e){const t=e.end();""!==t&&(yield t)},Pi=(0,$.callbackify)((async(e,t,n,r)=>{t.currentIterable=e(...n);try{for await(const e of t.currentIterable)r.push(e)}finally{delete t.currentIterable}})),ki=async function*(e,t,n){if(n===t.length)return void(yield e);const{transform:r=Fi}=t[n];for await(const o of r(e))yield*ki(o,t,n+1)},Ri=async function*(e){for(const[t,{final:n}]of Object.entries(e))yield*Li(n,Number(t),e)},Li=async function*(e,t,n){if(void 0!==e)for await(const r of e())yield*ki(r,n,t+1)},Ui=(0,$.callbackify)((async({currentIterable:e},t)=>{if(void 0===e){if(t)throw t}else await(t?e.throw(t):e.return())})),Fi=function*(e){yield e},Gi=(e,t,n,r)=>{try{for(const r of e(...t))n.push(r);r()}catch(e){r(e)}},Wi=(e,t)=>[...t.flatMap((t=>[..._i(t,e,0)])),...zi(e)],_i=function*(e,t,n){if(n===t.length)return void(yield e);const{transform:r=Hi}=t[n];for(const o of r(e))yield*_i(o,t,n+1)},zi=function*(e){for(const[t,{final:n}]of Object.entries(e))yield*Vi(n,Number(t),e)},Vi=function*(e,t,n){if(void 0!==e)for(const r of e())yield*_i(r,n,t+1)},Hi=function*(e){yield e},Ki=({value:e,value:{transform:t,final:n,writableObjectMode:r,readableObjectMode:o},optionName:i},{encoding:s})=>{const a={},c=Yi(e,s,i),l=Yr(t),d=Yr(n),u=l?Pi.bind(void 0,ki,a):Gi.bind(void 0,_i),p=l||d?Pi.bind(void 0,Ri,a):Gi.bind(void 0,zi),m=l||d?Ui.bind(void 0,a):void 0;return{stream:new ui.Transform({writableObjectMode:r,writableHighWaterMark:(0,ui.getDefaultHighWaterMark)(r),readableObjectMode:o,readableHighWaterMark:(0,ui.getDefaultHighWaterMark)(o),transform(e,t,n){u([e,c,0],this,n)},flush(e){p([c],this,e)},destroy:m})}},qi=(e,t,n,r)=>{const o=t.filter((({type:e})=>"generator"===e)),i=r?o.reverse():o;for(const{value:t,optionName:r}of i){const o=Yi(t,n,r);e=Wi(o,e)}return e},Yi=({transform:e,final:t,binary:n,writableObjectMode:r,readableObjectMode:o,preserveNewlines:i},s,a)=>{const c={};return[{transform:Di(r,a)},$i(n,s,r),pi(n,i,r,c),{transform:e,final:t},{transform:Oi(o,a)},wi({binary:n,preserveNewlines:i,readableObjectMode:o,state:c})].filter(Boolean)},Xi=(e,t,n)=>{const{stdioItems:r}=e[t],o=r.filter((({contents:e})=>void 0!==e));if(0===o.length)return;if(0!==t){const[{type:e,optionName:t}]=o;throw new TypeError(`Only the \`stdin\` option, not \`${t}\`, can be ${bo[e]} with synchronous methods.`)}const i=o.map((({contents:e})=>e)).map((e=>Qi(e,r)));n.input=v(i)},Qi=(e,t)=>{const n=qi(e,t,"utf8",!0);return Ji(n),v(n)},Ji=e=>{const t=e.find((e=>"string"!=typeof e&&!f(e)));if(void 0!==t)throw new TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${t}.`)},Zi=({stdioItems:e,encoding:t,verboseInfo:n,fdNumber:r})=>"all"!==r&&Q(n,r)&&!Fn.has(t)&&es(r)&&(e.some((({type:e,value:t})=>"native"===e&&ts.has(t)))||e.every((({type:e})=>uo.has(e)))),es=e=>1===e||2===e,ts=new Set(["pipe","overlapped"]),ns=e=>e._readableState.pipes.length>0,rs=(e,t,n)=>{const r=Be(e);Ne({type:"output",verboseMessage:r,fdNumber:t,verboseInfo:n})},os=(e,t,n,r)=>{try{return qi(e,t,n,!1)}catch(t){return r.error=t,e}},is=({chunks:e,objectMode:t,encoding:n,lines:r,stripFinalNewline:o,fdNumber:i})=>{if(t)return{serializedResult:e};if("buffer"===n)return{serializedResult:v(e)};const s=((e,t)=>((e,t)=>{if("utf8"===t&&e.every((e=>"string"==typeof e)))return e;const n=new p.StringDecoder(t),r=e.map((e=>"string"==typeof e?g(e):e)).map((e=>n.write(e))),o=n.end();return""===o?r:[...r,o]})(e,t).join(""))(e,n);return r[i]?{serializedResult:s,finalResult:mi(s,!o[i],t)}:{serializedResult:s}},ss=({serializedResult:e,fdNumber:t,state:n,verboseInfo:r,encoding:o,stdioItems:i,objectMode:s})=>{if(!Zi({stdioItems:i,encoding:o,verboseInfo:r,fdNumber:t}))return;const a=mi(e,!1,s);try{((e,t,n)=>{for(const r of e)rs(r,t,n)})(a,t,r)}catch(e){n.error??=e}},as=(e,t,n)=>{for(const{path:r,append:o}of t.filter((({type:e})=>po.has(e)))){const t="string"==typeof r?r:r.toString();o||n.has(t)?(0,zn.appendFileSync)(r,e):(n.add(t),(0,zn.writeFileSync)(r,e))}},cs=async e=>{try{return await(0,St.once)(e,"exit")}catch{return cs(e)}},ls=async e=>{const[t,n]=await e;if(!ds(t,n)&&us(t,n))throw new He;return[t,n]},ds=(e,t)=>void 0===e&&void 0===t,us=(e,t)=>0!==e||null!==t,ps=(e,t,n)=>void 0!==e?e:us(t,n)?new He:void 0,ms=e=>e.node&&!e.ipc?{...e,ipc:!1}:e,fs=({ipc:e,ipcInput:t,detached:n,cancelSignal:r})=>{t&&hs("ipcInput"),e&&hs("ipc: true"),n&&hs("detached: true"),r&&hs("cancelSignal")},hs=e=>{throw new TypeError(`The "${e}" option cannot be used with synchronous methods.`)},bs=({file:e,commandArguments:t,options:n,command:r,escapedCommand:o,verboseInfo:i,fileDescriptors:s,startTime:a})=>{const c=gs({file:e,commandArguments:t,options:n,command:r,escapedCommand:o,fileDescriptors:s,startTime:a});if(c.failed)return c;const{resultError:l,exitCode:d,signal:u,timedOut:p,isMaxBuffer:m}=(({error:e,status:t,signal:n,output:r},{maxBuffer:o})=>{const i=ps(e,t,n),s="ETIMEDOUT"===i?.code,a=((e,t,n)=>"ENOBUFS"===e?.code&&null!==t&&t.some((e=>null!==e&&e.length>Ir(n))))(i,r,o);return{resultError:i,exitCode:t,signal:n,timedOut:s,isMaxBuffer:a}})(c,n),{output:b,error:g=l}=(({fileDescriptors:e,syncResult:{output:t},options:n,isMaxBuffer:r,verboseInfo:o})=>{if(null===t)return{output:Array.from({length:3})};const i={},s=new Set([]);return{output:t.map(((t,a)=>(({result:e,fileDescriptors:t,fdNumber:n,state:r,outputFiles:o,isMaxBuffer:i,verboseInfo:s},{buffer:a,encoding:c,lines:l,stripFinalNewline:d,maxBuffer:u})=>{if(null===e)return;const p=((e,t,n)=>{if(!t)return e;const r=Ir(n);return e.length>r?e.slice(0,r):e})(e,i,u),m=h(p),{stdioItems:f,objectMode:b}=t[n],g=os([m],f,c,r),{serializedResult:y,finalResult:w=y}=is({chunks:g,objectMode:b,encoding:c,lines:l,stripFinalNewline:d,fdNumber:n});ss({serializedResult:y,fdNumber:n,state:r,verboseInfo:s,encoding:c,stdioItems:f,objectMode:b});const v=a[n]?w:void 0;try{return void 0===r.error&&as(y,f,o),v}catch(e){return r.error=e,v}})({result:t,fileDescriptors:e,fdNumber:a,state:i,outputFiles:s,isMaxBuffer:r,verboseInfo:o},n))),...i}})({fileDescriptors:s,syncResult:c,options:n,isMaxBuffer:m,verboseInfo:i}),y=b.map(((e,t)=>li(e,n,t))),w=li((([,e,t],n)=>{if(n.all)return void 0===e?t:void 0===t?e:Array.isArray(e)?Array.isArray(t)?[...e,...t]:[...e,li(t,n,"all")]:Array.isArray(t)?[li(e,n,"all"),...t]:f(e)&&f(t)?x([e,t]):`${e}${t}`})(b,n),n,"all");return ws({error:g,exitCode:d,signal:u,timedOut:p,isMaxBuffer:m,stdio:y,all:w,options:n,command:r,escapedCommand:o,startTime:a})},gs=({file:e,commandArguments:t,options:n,command:r,escapedCommand:o,fileDescriptors:i,startTime:s})=>{try{((e,t)=>{for(const n of(e=>new Set(Object.entries(e).filter((([,{direction:e}])=>"input"===e)).map((([e])=>Number(e)))))(e))Xi(e,n,t)})(i,n);const r=ys(n);return(0,u.spawnSync)(e,t,r)}catch(e){return $r({error:e,command:r,escapedCommand:o,fileDescriptors:i,options:n,startTime:s,isSync:!0})}},ys=({encoding:e,maxBuffer:t,...n})=>({...n,encoding:"buffer",maxBuffer:Ir(t)}),ws=({error:e,exitCode:t,signal:n,timedOut:r,isMaxBuffer:o,stdio:i,all:s,options:a,command:c,escapedCommand:l,startTime:d})=>void 0===e?Cr({command:c,escapedCommand:l,stdio:i,all:s,ipcOutput:[],options:a,startTime:d}):Ar({error:e,command:c,escapedCommand:l,timedOut:r,isCanceled:!1,isGracefullyCanceled:!1,isMaxBuffer:o,isForcefullyTerminated:!1,exitCode:t,signal:n,stdio:i,all:s,ipcOutput:[],options:a,startTime:d,isSync:!0}),vs=({anyProcess:e,channel:t,isSubprocess:n,ipc:r},{reference:o=!0,filter:i}={})=>(Dt({methodName:"getOneMessage",isSubprocess:n,ipc:r,isConnected:on(e)}),Ss({anyProcess:e,channel:t,isSubprocess:n,filter:i,reference:o})),Ss=async({anyProcess:e,channel:t,isSubprocess:n,filter:r,reference:o})=>{qt(t,o);const i=tn(e,t,n),s=new AbortController;try{return await Promise.race([xs(i,r,s),Es(i,n,s),Ts(i,n,s)])}catch(t){throw jt(e),t}finally{s.abort(),Xt(t,o)}},xs=async(e,t,{signal:n})=>{if(void 0===t){const[t]=await(0,St.once)(e,"message",{signal:n});return t}for await(const[r]of(0,St.on)(e,"message",{signal:n}))if(t(r))return r},Es=async(e,t,{signal:n})=>{await(0,St.once)(e,"disconnect",{signal:n}),(e=>{throw new Error(`${$t("getOneMessage",e)} could not complete: the ${Bt(e)} exited or disconnected.`)})(t)},Ts=async(e,t,{signal:n})=>{const[r]=await(0,St.once)(e,"strict:error",{signal:n});throw Mt(r,t)},Ds=({anyProcess:e,channel:t,isSubprocess:n,ipc:r},{reference:o=!0}={})=>Is({anyProcess:e,channel:t,isSubprocess:n,ipc:r,shouldAwait:!n,reference:o}),Is=({anyProcess:e,channel:t,isSubprocess:n,ipc:r,shouldAwait:o,reference:i})=>{Dt({methodName:"getEachMessage",isSubprocess:n,ipc:r,isConnected:on(e)}),qt(t,i);const s=tn(e,t,n),a=new AbortController,c={};return Os(e,s,a),Ms({ipcEmitter:s,isSubprocess:n,controller:a,state:c}),Ns({anyProcess:e,channel:t,ipcEmitter:s,isSubprocess:n,shouldAwait:o,controller:a,state:c,reference:i})},Os=async(e,t,n)=>{try{await(0,St.once)(t,"disconnect",{signal:n.signal}),n.abort()}catch{}},Ms=async({ipcEmitter:e,isSubprocess:t,controller:n,state:r})=>{try{const[o]=await(0,St.once)(e,"strict:error",{signal:n.signal});r.error=Mt(o,t),n.abort()}catch{}},Ns=async function*({anyProcess:e,channel:t,ipcEmitter:n,isSubprocess:r,shouldAwait:o,controller:i,state:s,reference:a}){try{for await(const[e]of(0,St.on)(n,"message",{signal:i.signal}))Cs(s),yield e}catch{Cs(s)}finally{i.abort(),Xt(t,a),r||jt(e),o&&await e}},Cs=({error:e})=>{if(e)throw e},$s=(e,t,n)=>({sendMessage:wn.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:n}),getOneMessage:vs.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:n}),getEachMessage:Ds.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:n})}),As=()=>{const e=new ui.PassThrough;return e.end(),e},Bs=()=>new ui.Readable({read(){}}),js=()=>new ui.Writable({write(){}}),Ps=()=>new ui.Duplex({read(){},write(){}}),ks=async(e,t,n)=>Ur(e,t,n),Rs=({type:e,optionName:t})=>{throw new TypeError(`The \`${t}\` option cannot be ${bo[e]}.`)},Ls={fileNumber:Rs,generator:Ki,asyncGenerator:Ki,nodeStream:({value:e})=>({stream:e}),webTransform({value:{transform:e,writableObjectMode:t,readableObjectMode:n}}){const r=t||n;return{stream:ui.Duplex.fromWeb(e,{objectMode:r})}},duplex:({value:{transform:e}})=>({stream:e}),native(){}},Us={input:{...Ls,fileUrl:({value:e})=>({stream:(0,zn.createReadStream)(e)}),filePath:({value:{file:e}})=>({stream:(0,zn.createReadStream)(e)}),webStream:({value:e})=>({stream:ui.Readable.fromWeb(e)}),iterable:({value:e})=>({stream:ui.Readable.from(e)}),asyncIterable:({value:e})=>({stream:ui.Readable.from(e)}),string:({value:e})=>({stream:ui.Readable.from(e)}),uint8Array:({value:e})=>({stream:ui.Readable.from(Ti.Buffer.from(e))})},output:{...Ls,fileUrl:({value:e})=>({stream:(0,zn.createWriteStream)(e)}),filePath:({value:{file:e,append:t}})=>({stream:(0,zn.createWriteStream)(e,t?{flags:"a"}:{})}),webStream:({value:e})=>({stream:ui.Writable.fromWeb(e)}),iterable:Rs,asyncIterable:Rs,string:Rs,uint8Array:Rs}},Fs=e(import.meta.url)("node:stream/promises");function Gs(e){if(!Array.isArray(e))throw new TypeError(`Expected an array, got \`${typeof e}\`.`);for(const t of e)Ks(t);const t=e.some((({readableObjectMode:e})=>e)),n=Ws(e,t),r=new _s({objectMode:t,writableHighWaterMark:n,readableHighWaterMark:n});for(const t of e)r.add(t);return r}const Ws=(e,t)=>{if(0===e.length)return(0,ui.getDefaultHighWaterMark)(t);const n=e.filter((({readableObjectMode:e})=>e===t)).map((({readableHighWaterMark:e})=>e));return Math.max(...n)};class _s extends ui.PassThrough{#s=new Set([]);#a=new Set([]);#c=new Set([]);#l;#d=Symbol("unpipe");#u=new WeakMap;add(e){if(Ks(e),this.#s.has(e))return;this.#s.add(e),this.#l??=zs(this,this.#s,this.#d);const t=qs({passThroughStream:this,stream:e,streams:this.#s,ended:this.#a,aborted:this.#c,onFinished:this.#l,unpipeEvent:this.#d});this.#u.set(e,t),e.pipe(this,{end:!1})}async remove(e){if(Ks(e),!this.#s.has(e))return!1;const t=this.#u.get(e);return void 0!==t&&(this.#u.delete(e),e.unpipe(this),await t,!0)}}const zs=async(e,t,n)=>{oa(e,ia);const r=new AbortController;try{await Promise.race([Vs(e,r),Hs(e,t,n,r)])}finally{r.abort(),oa(e,-ia)}},Vs=async(e,{signal:t})=>{try{await(0,Fs.finished)(e,{signal:t,cleanup:!0})}catch(t){throw Zs(e,t),t}},Hs=async(e,t,n,{signal:r})=>{for await(const[o]of(0,St.on)(e,"unpipe",{signal:r}))t.has(o)&&o.emit(n)},Ks=e=>{if("function"!=typeof e?.pipe)throw new TypeError(`Expected a readable stream, got: \`${typeof e}\`.`)},qs=async({passThroughStream:e,stream:t,streams:n,ended:r,aborted:o,onFinished:i,unpipeEvent:s})=>{oa(e,sa);const a=new AbortController;try{await Promise.race([Ys(i,t,a),Xs({passThroughStream:e,stream:t,streams:n,ended:r,aborted:o,controller:a}),Qs({stream:t,streams:n,ended:r,aborted:o,unpipeEvent:s,controller:a})])}finally{a.abort(),oa(e,-sa)}n.size>0&&n.size===r.size+o.size&&(0===r.size&&o.size>0?ta(e):Js(e))},Ys=async(e,t,{signal:n})=>{try{await e,n.aborted||ta(t)}catch(e){n.aborted||Zs(t,e)}},Xs=async({passThroughStream:e,stream:t,streams:n,ended:r,aborted:o,controller:{signal:i}})=>{try{await(0,Fs.finished)(t,{signal:i,cleanup:!0,readable:!0,writable:!1}),n.has(t)&&r.add(t)}catch(r){if(i.aborted||!n.has(t))return;ea(r)?o.add(t):na(e,r)}},Qs=async({stream:e,streams:t,ended:n,aborted:r,unpipeEvent:o,controller:{signal:i}})=>{if(await(0,St.once)(e,o,{signal:i}),!e.readable)return(0,St.once)(i,"abort",{signal:i});t.delete(e),n.delete(e),r.delete(e)},Js=e=>{e.writable&&e.end()},Zs=(e,t)=>{ea(t)?ta(e):na(e,t)},ea=e=>"ERR_STREAM_PREMATURE_CLOSE"===e?.code,ta=e=>{(e.readable||e.writable)&&e.destroy()},na=(e,t)=>{e.destroyed||(e.once("error",ra),e.destroy(t))},ra=()=>{},oa=(e,t)=>{const n=e.getMaxListeners();0!==n&&n!==Number.POSITIVE_INFINITY&&e.setMaxListeners(n+t)},ia=2,sa=1,aa=(e,t)=>{e.pipe(t),ca(e,t),da(e,t)},ca=async(e,t)=>{if(!B(e)&&!B(t)){try{await(0,Fs.finished)(e,{cleanup:!0,readable:!0,writable:!1})}catch{}la(t)}},la=e=>{e.writable&&e.end()},da=async(e,t)=>{if(!B(e)&&!B(t)){try{await(0,Fs.finished)(t,{cleanup:!0,readable:!1,writable:!0})}catch{}ua(e)}},ua=e=>{e.readable&&e.destroy()},pa=(e,t,n,r)=>{"output"===n?aa(e.stdio[r],t):aa(t,e.stdio[r]);const o=ma[r];void 0!==o&&(e[o]=t),e.stdio[r]=t},ma=["stdin","stdout","stderr"],fa=({subprocess:e,stream:t,direction:n,fdNumber:r,pipeGroups:o,controller:i})=>{if(void 0===t)return;ha(t,i);const[s,a]="output"===n?[t,e.stdio[r]]:[e.stdio[r],t],c=o.get(s)??[];o.set(s,[...c,a])},ha=(e,{signal:t})=>{B(e)&&Kt(e,ba,t)},ba=2;var ga=r(7017);const ya=(e,t,n,...r)=>{if(Array.isArray(n))return{destination:t(wa,e)(n,...r),pipeOptions:e};if("string"==typeof n||n instanceof URL||c(n)){if(Object.keys(e).length>0)throw new TypeError('Please use .pipe("file", ..., options) or .pipe(execa("file", ..., options)) instead of .pipe(options)("file", ...).');const[o,i,s]=d(n,...r);return{destination:t(wa)(o,i,s),pipeOptions:s}}if(Lt.has(n)){if(Object.keys(e).length>0)throw new TypeError("Please use .pipe(options)`command` or .pipe($(options)`command`) instead of .pipe(options)($`command`).");return{destination:n,pipeOptions:r[0]}}throw new TypeError(`The first argument must be a template string, an options object, or an Execa subprocess: ${n}`)},wa=({options:e})=>({options:{...e,stdin:"pipe",piped:!0}}),va=({error:e,fileDescriptors:t,sourceOptions:n,startTime:r})=>$r({error:e,command:Sa,escapedCommand:Sa,fileDescriptors:t,options:n,startTime:r,isSync:!1}),Sa="source.pipe(destination)",xa=async e=>{const[{status:t,reason:n,value:r=n},{status:o,reason:i,value:s=i}]=await e;if(s.pipedFrom.includes(r)||s.pipedFrom.push(r),"rejected"===o)throw s;if("rejected"===t)throw r;return s},Ea=new WeakMap,Ta=(e,t)=>void 0===e?[]:[Da(e,t)],Da=async(e,{sourceStream:t,mergedStream:n,fileDescriptors:r,sourceOptions:o,startTime:i})=>{await(0,$.aborted)(e,t),await n.remove(t);const s=new Error("Pipe canceled by `unpipeSignal` option.");throw va({error:s,fileDescriptors:r,sourceOptions:o,startTime:i})},Ia=(e,...t)=>{if(o(t[0]))return Ia.bind(void 0,{...e,boundOptions:{...e.boundOptions,...t[0]}});const{destination:n,...r}=(({source:e,sourcePromise:t,boundOptions:n,createNested:r},...o)=>{const i=Re(),{destination:s,destinationStream:a,destinationError:c,from:l,unpipeSignal:d}=((e,t,n)=>{try{const{destination:r,pipeOptions:{from:o,to:i,unpipeSignal:s}={}}=ya(e,t,...n);return{destination:r,destinationStream:kt(r,i),from:o,unpipeSignal:s}}catch(e){return{destinationError:e}}})(n,r,o),{sourceStream:u,sourceError:p}=((e,t)=>{try{return{sourceStream:Rt(e,t)}}catch(e){return{sourceError:e}}})(e,l),{options:m,fileDescriptors:f}=Lt.get(e);return{sourcePromise:t,sourceStream:u,sourceOptions:m,sourceError:p,destination:s,destinationStream:a,destinationError:c,unpipeSignal:d,fileDescriptors:f,startTime:i}})(e,...t),i=Oa({...r,destination:n});return i.pipe=Ia.bind(void 0,{...e,source:n,sourcePromise:i,boundOptions:{}}),i},Oa=async({sourcePromise:e,sourceStream:t,sourceOptions:n,sourceError:r,destination:o,destinationStream:i,destinationError:s,unpipeSignal:a,fileDescriptors:c,startTime:l})=>{const d=Ma(e,o);(({sourceStream:e,sourceError:t,destinationStream:n,destinationError:r,fileDescriptors:o,sourceOptions:i,startTime:s})=>{const a=(({sourceStream:e,sourceError:t,destinationStream:n,destinationError:r})=>void 0!==t&&void 0!==r?r:void 0!==r?(ua(e),r):void 0!==t?(la(n),t):void 0)({sourceStream:e,sourceError:t,destinationStream:n,destinationError:r});if(void 0!==a)throw va({error:a,fileDescriptors:o,sourceOptions:i,startTime:s})})({sourceStream:t,sourceError:r,destinationStream:i,destinationError:s,fileDescriptors:c,sourceOptions:n,startTime:l});const u=new AbortController;try{const e=((e,t,n)=>{const r=Ea.has(t)?((e,t)=>{const n=Ea.get(t);return n.add(e),n})(e,t):((e,t)=>{const n=Gs([e]);return aa(n,t),Ea.set(t,n),n})(e,t);return Kt(e,2,n.signal),Kt(t,1,n.signal),(async e=>{try{await(0,Fs.finished)(e,{cleanup:!0,readable:!1,writable:!0})}catch{}Ea.delete(e)})(t),r})(t,i,u);return await Promise.race([xa(d),...Ta(a,{sourceStream:t,mergedStream:e,sourceOptions:n,fileDescriptors:c,startTime:l})])}finally{u.abort()}},Ma=(e,t)=>Promise.allSettled([e,t]),Na=e=>e,Ca=()=>{},$a=({contents:e})=>e,Aa=e=>{throw new Error(`Streams in object mode are not supported: ${String(e)}`)},Ba=e=>e.length,ja={init:()=>({contents:[]}),convertChunk:{string:Na,buffer:Na,arrayBuffer:Na,dataView:Na,typedArray:Na,others:Na},getSize:()=>1,truncateChunk:Ca,addChunk:(e,{contents:t})=>(t.push(e),t),getFinalChunk:Ca,finalize:$a},Pa=new TextEncoder,ka=e=>new Uint8Array(e),Ra=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength),La=e=>Ua**Math.ceil(Math.log(e)/Math.log(Ua)),Ua=2,Fa=()=>"resize"in ArrayBuffer.prototype,Ga={init:()=>({contents:new ArrayBuffer(0)}),convertChunk:{string:e=>Pa.encode(e),buffer:ka,arrayBuffer:ka,dataView:Ra,typedArray:Ra,others:Aa},getSize:Ba,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t,length:n},r)=>{const o=Fa()?((e,t)=>{if(t<=e.maxByteLength)return e.resize(t),e;const n=new ArrayBuffer(t,{maxByteLength:La(t)});return new Uint8Array(n).set(new Uint8Array(e),0),n})(t,r):((e,t)=>{if(t<=e.byteLength)return e;const n=new ArrayBuffer(La(t));return new Uint8Array(n).set(new Uint8Array(e),0),n})(t,r);return new Uint8Array(o).set(e,n),o},getFinalChunk:Ca,finalize:({contents:e,length:t})=>Fa()?e:e.slice(0,t)},Wa=(e,{textDecoder:t})=>t.decode(e,{stream:!0}),_a={init:()=>({contents:"",textDecoder:new TextDecoder}),convertChunk:{string:Na,buffer:Wa,arrayBuffer:Wa,dataView:Wa,typedArray:Wa,others:Aa},getSize:Ba,truncateChunk:(e,t)=>e.slice(0,t),addChunk:(e,{contents:t})=>t+e,getFinalChunk:({textDecoder:e})=>{const t=e.decode();return""===t?void 0:t},finalize:$a},za=({subprocessStdout:e,subprocess:t,binary:n,shouldEncode:r,encoding:o,preserveNewlines:i})=>{const s=new AbortController;return Va(t,s),qa({stream:e,controller:s,binary:n,shouldEncode:!e.readableObjectMode&&r,encoding:o,shouldSplit:!e.readableObjectMode,preserveNewlines:i})},Va=async(e,t)=>{try{await e}catch{}finally{t.abort()}},Ha=({stream:e,onStreamEnd:t,lines:n,encoding:r,stripFinalNewline:o,allMixed:i})=>{const s=new AbortController;Ka(t,s,e);const a=e.readableObjectMode&&!i;return qa({stream:e,controller:s,binary:"buffer"===r,shouldEncode:!a,encoding:r,shouldSplit:!a&&n,preserveNewlines:!o})},Ka=async(e,t,n)=>{try{await e}catch{n.destroy()}finally{t.abort()}},qa=({stream:e,controller:t,binary:n,shouldEncode:r,encoding:o,shouldSplit:i,preserveNewlines:s})=>{const a=(0,St.on)(e,"data",{signal:t.signal,highWaterMark:Xa,highWatermark:Xa});return Qa({onStdoutChunk:a,controller:t,binary:n,shouldEncode:r,encoding:o,shouldSplit:i,preserveNewlines:s})},Ya=(0,ui.getDefaultHighWaterMark)(!0),Xa=Ya,Qa=async function*({onStdoutChunk:e,controller:t,binary:n,shouldEncode:r,encoding:o,shouldSplit:i,preserveNewlines:s}){const a=Ja({binary:n,shouldEncode:r,encoding:o,shouldSplit:i,preserveNewlines:s});try{for await(const[t]of e)yield*_i(t,a,0)}catch(e){if(!t.signal.aborted)throw e}finally{yield*zi(a)}},Ja=({binary:e,shouldEncode:t,encoding:n,shouldSplit:r,preserveNewlines:o})=>[$i(e,n,!t),pi(e,o,!r,{})].filter(Boolean),Za=async({stream:e,onStreamEnd:t,fdNumber:n,encoding:r,buffer:o,maxBuffer:i,lines:s,allMixed:a,stripFinalNewline:c,verboseInfo:l,streamInfo:d})=>{const u=ec({stream:e,onStreamEnd:t,fdNumber:n,encoding:r,allMixed:a,verboseInfo:l,streamInfo:d});if(!o)return void await Promise.all([tc(e),u]);const p=di(c,n),m=Ha({stream:e,onStreamEnd:t,lines:s,encoding:r,stripFinalNewline:p,allMixed:a}),[f]=await Promise.all([nc({stream:e,iterable:m,fdNumber:n,encoding:r,maxBuffer:i,lines:s}),u]);return f},ec=async({stream:e,onStreamEnd:t,fdNumber:n,encoding:r,allMixed:o,verboseInfo:i,streamInfo:{fileDescriptors:s}})=>{if(!Zi({stdioItems:s[n]?.stdioItems,encoding:r,verboseInfo:i,fdNumber:n}))return;const a=Ha({stream:e,onStreamEnd:t,lines:!0,encoding:r,stripFinalNewline:!0,allMixed:o});await(async(e,t,n,r)=>{for await(const o of e)ns(t)||rs(o,n,r)})(a,e,n,i)},tc=async e=>{await(0,Ve.setImmediate)(),null===e.readableFlowing&&e.resume()},nc=async({stream:e,stream:{readableObjectMode:t},iterable:n,fdNumber:r,encoding:o,maxBuffer:i,lines:s})=>{try{return t||s?await async function(e,t){return yr(e,ja,t)}(n,{maxBuffer:i}):"buffer"===o?new Uint8Array(await async function(e,t){return yr(e,Ga,t)}(n,{maxBuffer:i})):await async function(e,t){return yr(e,_a,t)}(n,{maxBuffer:i})}catch(n){return oc((({error:e,stream:t,readableObjectMode:n,lines:r,encoding:o,fdNumber:i})=>{if(!(e instanceof Tr))throw e;if("all"===i)return e;const s=((e,t,n)=>e?"objects":t?"lines":"buffer"===n?"bytes":"characters")(n,r,o);throw e.maxBufferInfo={fdNumber:i,unit:s},t.destroy(),e})({error:n,stream:e,readableObjectMode:t,lines:s,encoding:o,fdNumber:r}))}},rc=async e=>{try{return await e}catch(e){return oc(e)}},oc=({bufferedData:e})=>{return t=e,"[object ArrayBuffer]"===m.call(t)?new Uint8Array(e):e;var t},ic=async(e,t,n,{isSameDirection:r,stopOnExit:o=!1}={})=>{const i=sc(e,n),s=new AbortController;try{await Promise.race([...o?[n.exitPromise]:[],(0,Fs.finished)(e,{cleanup:!0,signal:s.signal})])}catch(e){i.stdinCleanedUp||lc(e,t,n,r)}finally{s.abort()}},sc=(e,{originalStreams:[t],subprocess:n})=>{const r={stdinCleanedUp:!1};return e===t&&ac(e,n,r),r},ac=(e,t,n)=>{const{_destroy:r}=e;e._destroy=(...o)=>{cc(t,n),r.call(e,...o)}},cc=({exitCode:e,signalCode:t},n)=>{null===e&&null===t||(n.stdinCleanedUp=!0)},lc=(e,t,n,r)=>{if(!dc(e,t,n,r))throw e},dc=(e,t,n,r=!0)=>n.propagating?mc(e)||pc(e):(n.propagating=!0,uc(n,t)===r?mc(e):pc(e)),uc=({fileDescriptors:e},t)=>"all"!==t&&"input"===e[t].direction,pc=e=>"ERR_STREAM_PREMATURE_CLOSE"===e?.code,mc=e=>"EPIPE"===e?.code,fc=async({stream:e,fdNumber:t,encoding:n,buffer:r,maxBuffer:o,lines:i,allMixed:s,stripFinalNewline:a,verboseInfo:c,streamInfo:l})=>{if(!e)return;const d=ic(e,t,l);if(uc(l,t))return void await d;const[u]=await Promise.all([Za({stream:e,onStreamEnd:d,fdNumber:t,encoding:n,buffer:r,maxBuffer:o,lines:i,allMixed:s,stripFinalNewline:a,verboseInfo:c,streamInfo:l}),d]);return u},hc=({stdout:e,stderr:t,all:n},[,r,o])=>{const i=r||o;return i?r?o?{stream:n,buffer:i}:{stream:e,buffer:i}:{stream:t,buffer:i}:{stream:n,buffer:i}},bc=({all:e,stdout:t,stderr:n})=>e&&t&&n&&t.readableObjectMode!==n.readableObjectMode,gc=(e,t)=>{const n=Be(e);Ne({type:"ipc",verboseMessage:n,fdNumber:"ipc",verboseInfo:t})},yc=async(e,t)=>(await Promise.allSettled([e]),t),wc=async({subprocess:e,options:{encoding:t,buffer:n,maxBuffer:r,lines:o,timeoutDuration:i,cancelSignal:s,gracefulCancel:a,forceKillAfterDelay:c,stripFinalNewline:l,ipc:d,ipcInput:u},context:p,verboseInfo:m,fileDescriptors:f,originalStreams:h,onInternalError:b,controller:g})=>{const y=(async(e,t)=>{const[n,r]=await(async e=>{const[t,n]=await Promise.allSettled([(0,St.once)(e,"spawn"),(0,St.once)(e,"exit")]);return"rejected"===t.status?[]:"rejected"===n.status?cs(e):n.value})(e);return t.isForcefullyTerminated??=!1,[n,r]})(e,p),w={originalStreams:h,fileDescriptors:f,subprocess:e,exitPromise:y,propagating:!1},v=(({subprocess:e,encoding:t,buffer:n,maxBuffer:r,lines:o,stripFinalNewline:i,verboseInfo:s,streamInfo:a})=>e.stdio.map(((e,c)=>fc({stream:e,fdNumber:c,encoding:t,buffer:n[c],maxBuffer:r[c],lines:o[c],allMixed:!1,stripFinalNewline:i,verboseInfo:s,streamInfo:a}))))({subprocess:e,encoding:t,buffer:n,maxBuffer:r,lines:o,stripFinalNewline:l,verboseInfo:m,streamInfo:w}),S=(({subprocess:e,encoding:t,buffer:n,maxBuffer:r,lines:o,stripFinalNewline:i,verboseInfo:s,streamInfo:a})=>fc({...hc(e,n),fdNumber:"all",encoding:t,maxBuffer:r[1]+r[2],lines:o[1]||o[2],allMixed:bc(e),stripFinalNewline:i,verboseInfo:s,streamInfo:a}))({subprocess:e,encoding:t,buffer:n,maxBuffer:r,lines:o,stripFinalNewline:l,verboseInfo:m,streamInfo:w}),x=[],E=(async({subprocess:e,buffer:t,maxBuffer:n,ipc:r,ipcOutput:o,verboseInfo:i})=>{if(!r)return o;const s=(e=>Q(e,"ipc"))(i),a=Y(t,"ipc"),c=Y(n,"ipc");for await(const t of Is({anyProcess:e,channel:e.channel,isSubprocess:!1,ipc:r,shouldAwait:!1,reference:!0}))a&&(Dr(0,o,c),o.push(t)),s&&gc(t,i);return o})({subprocess:e,buffer:n,maxBuffer:r,ipc:d,ipcOutput:x,verboseInfo:m}),T=vc(h,e,w),D=Sc(f,w);try{return await Promise.race([Promise.all([{},ls(y),Promise.all(v),S,E,Ln(e,u),...T,...D]),b,xc(e,g),...jn(e,i,p,g),...Et({subprocess:e,cancelSignal:s,gracefulCancel:a,context:p,controller:g}),...$n({subprocess:e,cancelSignal:s,gracefulCancel:a,forceKillAfterDelay:c,context:p,controller:g})])}catch(e){return p.terminationReason??="other",Promise.all([{error:e},y,Promise.all(v.map((e=>rc(e)))),rc(S),yc(E,x),Promise.allSettled(T),Promise.allSettled(D)])}},vc=(e,t,n)=>e.map(((e,r)=>e===t.stdio[r]?void 0:ic(e,r,n))),Sc=(e,t)=>e.flatMap((({stdioItems:e},n)=>e.filter((({value:e,stream:t=e})=>nr(t,{checkOpen:!1})&&!B(t))).map((({type:e,value:r,stream:o=r})=>ic(o,n,t,{isSameDirection:uo.has(e),stopOnExit:"native"===e}))))),xc=async(e,{signal:t})=>{const[n]=await(0,St.once)(e,"error",{signal:t});throw n},Ec=(e,t,n)=>{const r=e[n];r.has(t)||r.set(t,[]);const o=r.get(t),i=Pt();return o.push(i),{resolve:i.resolve.bind(i),promises:o}},Tc=async({resolve:e,promises:t},n)=>{e();const[r]=await Promise.race([Promise.allSettled([!0,n]),Promise.all([!1,...t])]);return!r},Dc=async e=>{if(void 0!==e)try{await Ic(e)}catch{}},Ic=async e=>{await(0,Fs.finished)(e,{cleanup:!0,readable:!1,writable:!0})},Oc=async e=>{await(0,Fs.finished)(e,{cleanup:!0,readable:!0,writable:!1})},Mc=async(e,t)=>{if(await e,t)throw t},Nc=(e,t,n)=>{n&&!pc(n)?e.destroy(n):t&&e.destroy()},Cc=({subprocess:e,concurrentStreams:t,encoding:n},{from:r,binary:o=!0,preserveNewlines:i=!0}={})=>{const s=o||Fn.has(n),{subprocessStdout:a,waitReadableDestroy:c}=$c(e,r,t),{readableEncoding:l,readableObjectMode:d,readableHighWaterMark:u}=Ac(a,s),{read:p,onStdoutDataDone:m}=Bc({subprocessStdout:a,subprocess:e,binary:s,encoding:n,preserveNewlines:i}),f=new ui.Readable({read:p,destroy:(0,$.callbackify)(kc.bind(void 0,{subprocessStdout:a,subprocess:e,waitReadableDestroy:c})),highWaterMark:u,objectMode:d,encoding:l});return Pc({subprocessStdout:a,onStdoutDataDone:m,readable:f,subprocess:e}),f},$c=(e,t,n)=>{const r=Rt(e,t);return{subprocessStdout:r,waitReadableDestroy:Ec(n,r,"readableDestroy")}},Ac=({readableEncoding:e,readableObjectMode:t,readableHighWaterMark:n},r)=>r?{readableEncoding:e,readableObjectMode:t,readableHighWaterMark:n}:{readableEncoding:e,readableObjectMode:!0,readableHighWaterMark:Ya},Bc=({subprocessStdout:e,subprocess:t,binary:n,encoding:r,preserveNewlines:o})=>{const i=Pt(),s=za({subprocessStdout:e,subprocess:t,binary:n,shouldEncode:!n,encoding:r,preserveNewlines:o});return{read(){jc(this,s,i)},onStdoutDataDone:i}},jc=async(e,t,n)=>{try{const{value:r,done:o}=await t.next();o?n.resolve():e.push(r)}catch{}},Pc=async({subprocessStdout:e,onStdoutDataDone:t,readable:n,subprocess:r,subprocessStdin:o})=>{try{await Oc(e),await r,await Dc(o),await t,n.readable&&n.push(null)}catch(e){await Dc(o),Rc(n,e)}},kc=async({subprocessStdout:e,subprocess:t,waitReadableDestroy:n},r)=>{await Tc(n,t)&&(Rc(e,r),await Mc(t,r))},Rc=(e,t)=>{Nc(e,e.readable,t)},Lc=({subprocess:e,concurrentStreams:t},{to:n}={})=>{const{subprocessStdin:r,waitWritableFinal:o,waitWritableDestroy:i}=Uc(e,n,t),s=new ui.Writable({...Fc(r,e,o),destroy:(0,$.callbackify)(zc.bind(void 0,{subprocessStdin:r,subprocess:e,waitWritableFinal:o,waitWritableDestroy:i})),highWaterMark:r.writableHighWaterMark,objectMode:r.writableObjectMode});return _c(r,s),s},Uc=(e,t,n)=>{const r=kt(e,t);return{subprocessStdin:r,waitWritableFinal:Ec(n,r,"writableFinal"),waitWritableDestroy:Ec(n,r,"writableDestroy")}},Fc=(e,t,n)=>({write:Gc.bind(void 0,e),final:(0,$.callbackify)(Wc.bind(void 0,e,t,n))}),Gc=(e,t,n,r)=>{e.write(t,n)?r():e.once("drain",r)},Wc=async(e,t,n)=>{await Tc(n,t)&&(e.writable&&e.end(),await t)},_c=async(e,t,n)=>{try{await Ic(e),t.writable&&t.end()}catch(e){await(async e=>{if(void 0!==e)try{await Oc(e)}catch{}})(n),Vc(t,e)}},zc=async({subprocessStdin:e,subprocess:t,waitWritableFinal:n,waitWritableDestroy:r},o)=>{await Tc(n,t),await Tc(r,t)&&(Vc(e,o),await Mc(t,o))},Vc=(e,t)=>{Nc(e,e.writable,t)},Hc=({subprocess:e,concurrentStreams:t,encoding:n},{from:r,to:o,binary:i=!0,preserveNewlines:s=!0}={})=>{const a=i||Fn.has(n),{subprocessStdout:c,waitReadableDestroy:l}=$c(e,r,t),{subprocessStdin:d,waitWritableFinal:u,waitWritableDestroy:p}=Uc(e,o,t),{readableEncoding:m,readableObjectMode:f,readableHighWaterMark:h}=Ac(c,a),{read:b,onStdoutDataDone:g}=Bc({subprocessStdout:c,subprocess:e,binary:a,encoding:n,preserveNewlines:s}),y=new ui.Duplex({read:b,...Fc(d,e,u),destroy:(0,$.callbackify)(Kc.bind(void 0,{subprocessStdout:c,subprocessStdin:d,subprocess:e,waitReadableDestroy:l,waitWritableFinal:u,waitWritableDestroy:p})),readableHighWaterMark:h,writableHighWaterMark:d.writableHighWaterMark,readableObjectMode:f,writableObjectMode:d.writableObjectMode,encoding:m});return Pc({subprocessStdout:c,onStdoutDataDone:g,readable:y,subprocess:e,subprocessStdin:d}),_c(d,y,c),y},Kc=async({subprocessStdout:e,subprocessStdin:t,subprocess:n,waitReadableDestroy:r,waitWritableFinal:o,waitWritableDestroy:i},s)=>{await Promise.all([kc({subprocessStdout:e,subprocess:n,waitReadableDestroy:r},s),zc({subprocessStdin:t,subprocess:n,waitWritableFinal:o,waitWritableDestroy:i},s)])},qc=(e,t,{from:n,binary:r=!1,preserveNewlines:o=!1}={})=>{const i=r||Fn.has(t),s=Rt(e,n),a=za({subprocessStdout:s,subprocess:e,binary:i,shouldEncode:!0,encoding:t,preserveNewlines:o});return Yc(a,s,e)},Yc=async function*(e,t,n){try{yield*e}finally{t.readable&&t.destroy(),await n}},Xc=(e,{encoding:t})=>{const n={readableDestroy:new WeakMap,writableFinal:new WeakMap,writableDestroy:new WeakMap};e.readable=Cc.bind(void 0,{subprocess:e,concurrentStreams:n,encoding:t}),e.writable=Lc.bind(void 0,{subprocess:e,concurrentStreams:n}),e.duplex=Hc.bind(void 0,{subprocess:e,concurrentStreams:n,encoding:t}),e.iterable=qc.bind(void 0,e,t),e[Symbol.asyncIterator]=qc.bind(void 0,e,t,{})},Qc=(async()=>{})().constructor.prototype,Jc=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(Qc,e)])),Zc=(e,t,n)=>{const{command:r,escapedCommand:o,startTime:i,verboseInfo:s}=Ue(e,t,n),{file:a,commandArguments:c,options:l}=Hn(e,t,n),d=el(l),u=((e,t)=>Vo(Us,e,t,!1))(d,s);return{file:a,commandArguments:c,command:r,escapedCommand:o,startTime:i,verboseInfo:s,options:d,fileDescriptors:u}},el=({timeout:e,signal:t,...n})=>{if(void 0!==t)throw new TypeError('The "signal" option has been renamed to "cancelSignal" instead.');return{...n,timeoutDuration:e}},tl=({file:e,commandArguments:t,options:n,startTime:r,verboseInfo:o,command:i,escapedCommand:s,fileDescriptors:a})=>{let c;try{c=(0,u.spawn)(e,t,n)}catch(e){return(({error:e,command:t,escapedCommand:n,fileDescriptors:r,options:o,startTime:i,verboseInfo:s})=>{ri(r);const a=new u.ChildProcess;((e,t)=>{const n=As(),r=As(),o=As(),i=Array.from({length:t.length-3},As),s=As(),a=[n,r,o,...i];Object.assign(e,{stdin:n,stdout:r,stderr:o,all:s,stdio:a})})(a,r),Object.assign(a,{readable:Bs,writable:js,duplex:Ps});const c=$r({error:e,command:t,escapedCommand:n,fileDescriptors:r,options:o,startTime:i,isSync:!1});return{subprocess:a,promise:ks(c,s,o)}})({error:e,command:i,escapedCommand:s,fileDescriptors:a,options:n,startTime:r,verboseInfo:o})}const l=new AbortController;(0,St.setMaxListeners)(Number.POSITIVE_INFINITY,l.signal);const d=[...c.stdio];((e,t,n)=>{const r=new Map;for(const[o,{stdioItems:i,direction:s}]of Object.entries(t)){for(const{stream:t}of i.filter((({type:e})=>uo.has(e))))pa(e,t,s,o);for(const{stream:t}of i.filter((({type:e})=>!uo.has(e))))fa({subprocess:e,stream:t,direction:s,fdNumber:o,pipeGroups:r,controller:n})}for(const[e,t]of r.entries()){const n=1===t.length?t[0]:Gs(t);aa(n,e)}})(c,a,l),((e,{cleanup:t,detached:n},{signal:r})=>{if(!t||n)return;const o=(0,ga.cf)((()=>{e.kill()}));(0,St.addAbortListener)(r,(()=>{o()}))})(c,n,l);const p={},m=Pt();return c.kill=bt.bind(void 0,{kill:c.kill.bind(c),options:n,onInternalError:m,context:p,controller:l}),c.all=(({stdout:e,stderr:t},{all:n})=>n&&(e||t)?Gs([e,t].filter(Boolean)):void 0)(c,n),Xc(c,n),((e,{ipc:t})=>{Object.assign(e,$s(e,!1,t))})(c,n),{subprocess:c,promise:nl({subprocess:c,options:n,startTime:r,verboseInfo:o,fileDescriptors:a,originalStreams:d,command:i,escapedCommand:s,context:p,onInternalError:m,controller:l})}},nl=async({subprocess:e,options:t,startTime:n,verboseInfo:r,fileDescriptors:o,originalStreams:i,command:s,escapedCommand:a,context:c,onInternalError:l,controller:d})=>{const[u,[p,m],f,h,b]=await wc({subprocess:e,options:t,context:c,verboseInfo:r,fileDescriptors:o,originalStreams:i,onInternalError:l,controller:d});d.abort(),l.resolve();const g=f.map(((e,n)=>li(e,t,n))),y=li(h,t,"all"),w=rl({errorInfo:u,exitCode:p,signal:m,stdio:g,all:y,ipcOutput:b,context:c,options:t,command:s,escapedCommand:a,startTime:n});return Ur(w,r,t)},rl=({errorInfo:e,exitCode:t,signal:n,stdio:r,all:o,ipcOutput:i,context:s,options:a,command:c,escapedCommand:l,startTime:d})=>"error"in e?Ar({error:e.error,command:c,escapedCommand:l,timedOut:"timeout"===s.terminationReason,isCanceled:"cancel"===s.terminationReason||"gracefulCancel"===s.terminationReason,isGracefullyCanceled:"gracefulCancel"===s.terminationReason,isMaxBuffer:e.error instanceof Tr,isForcefullyTerminated:s.isForcefullyTerminated,exitCode:t,signal:n,stdio:r,all:o,ipcOutput:i,options:a,startTime:d,isSync:!1}):Cr({command:c,escapedCommand:l,stdio:r,all:o,ipcOutput:i,options:a,startTime:d}),ol=(e,t)=>{const n=Object.fromEntries(Object.entries(t).map((([t,n])=>[t,il(t,e[t],n)])));return{...e,...n}},il=(e,t,n)=>sl.has(e)&&o(t)&&o(n)?{...t,...n}:n,sl=new Set(["env",...q]),al=(e,t,n,r)=>{const o=(e,t,r)=>al(e,t,n,r),i=(...i)=>cl({mapArguments:e,deepOptions:n,boundOptions:t,setBoundExeca:r,createNested:o},...i);return void 0!==r&&r(i,o,t),i},cl=({mapArguments:e,deepOptions:t={},boundOptions:n={},setBoundExeca:r,createNested:i},s,...a)=>{if(o(s))return i(e,ol(n,s),r);const{file:c,commandArguments:l,options:d,isSync:u}=ll({mapArguments:e,firstArgument:s,nextArguments:a,deepOptions:t,boundOptions:n});return u?((e,t,n)=>{const{file:r,commandArguments:o,command:i,escapedCommand:s,startTime:a,verboseInfo:c,options:l,fileDescriptors:d}=((e,t,n)=>{const{command:r,escapedCommand:o,startTime:i,verboseInfo:s}=Ue(e,t,n),a=ms(n),{file:c,commandArguments:l,options:d}=Hn(e,t,a);fs(d);const u=((e,t)=>Vo(ci,e,t,!0))(d,s);return{file:c,commandArguments:l,command:r,escapedCommand:o,startTime:i,verboseInfo:s,options:d,fileDescriptors:u}})(e,t,n),u=bs({file:r,commandArguments:o,options:l,command:i,escapedCommand:s,verboseInfo:c,fileDescriptors:d,startTime:a});return Ur(u,c,l)})(c,l,d):((e,t,n,r)=>{const{file:o,commandArguments:i,command:s,escapedCommand:a,startTime:c,verboseInfo:l,options:d,fileDescriptors:u}=Zc(e,t,n),{subprocess:p,promise:m}=tl({file:o,commandArguments:i,options:d,startTime:c,verboseInfo:l,command:s,escapedCommand:a,fileDescriptors:u});return p.pipe=Ia.bind(void 0,{source:p,sourcePromise:m,boundOptions:{},createNested:r}),((e,t)=>{for(const[n,r]of Jc){const o=r.value.bind(t);Reflect.defineProperty(e,n,{...r,value:o})}})(p,m),Lt.set(p,{options:d,fileDescriptors:u}),p})(c,l,d,i)},ll=({mapArguments:e,firstArgument:t,nextArguments:n,deepOptions:r,boundOptions:o})=>{const i=(s=t,Array.isArray(s)&&Array.isArray(s.raw)?((e,t)=>{let n=[];for(const[r,o]of e.entries())n=T({templates:e,expressions:t,tokens:n,index:r,template:o});if(0===n.length)throw new TypeError("Template script must not be empty");const[r,...o]=n;return[r,o,{}]})(t,n):[t,...n]);var s;const[a,c,l]=d(...i),u=ol(ol(r,o),l),{file:p=a,commandArguments:m=c,options:f=u,isSync:h=!1}=e({file:a,commandArguments:c,options:u});return{file:p,commandArguments:m,options:f,isSync:h}},dl=(e,t)=>{if(t.length>0)throw new TypeError(`The command and its arguments must be passed as a single string: ${e} ${t}.`);const[n,...r]=ul(e);return{file:n,commandArguments:r}},ul=e=>{if("string"!=typeof e)throw new TypeError(`The command must be a string: ${String(e)}.`);const t=e.trim();if(""===t)return[];const n=[];for(const e of t.split(pl)){const t=n.at(-1);t&&t.endsWith("\\")?n[n.length-1]=`${t.slice(0,-1)} ${e}`:n.push(e)}return n},pl=/ +/g,ml=({options:e})=>({...fl(e),isSync:!0}),fl=e=>({options:{...hl(e),...e}}),hl=({input:e,inputFile:t,stdio:n})=>void 0===e&&void 0===t&&void 0===n?{stdin:"inherit"}:{},bl=al((()=>({}))),gl=al((()=>({isSync:!0}))),{sendMessage:yl,getOneMessage:wl,getEachMessage:vl,getCancelSignal:Sl}=(al((({file:e,commandArguments:t})=>dl(e,t))),al((({file:e,commandArguments:t})=>({...dl(e,t),isSync:!0}))),al((({options:e})=>{if(!1===e.node)throw new TypeError('The "node" option cannot be false with `execaNode()`.');return{options:{...e,node:!0}}})),al((({options:e})=>fl(e)),{},{preferLocal:!0},((e,t,n)=>{e.sync=t(ml,n),e.s=e.sync})),(()=>{const e=A,t=!0,n=void 0!==A.channel;return{...$s(e,t,n),getCancelSignal:Tn.bind(void 0,{anyProcess:e,channel:e.channel,isSubprocess:t,ipc:n})}})())},7235:(e,t,n)=>{function r(e={}){const{env:t=process.env,platform:n=process.platform}=e;return"win32"!==n?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"}n.d(t,{A:()=>r})},7017:(e,t,n)=>{n.d(t,{cf:()=>u});const r=[];r.push("SIGHUP","SIGINT","SIGTERM"),"win32"!==process.platform&&r.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&r.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const o=e=>!!e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on,i=Symbol.for("signal-exit emitter"),s=globalThis,a=Object.defineProperty.bind(Object);class c{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(s[i])return s[i];a(s,i,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(e,t){this.listeners[e].push(t)}removeListener(e,t){const n=this.listeners[e],r=n.indexOf(t);-1!==r&&(0===r&&1===n.length?n.length=0:n.splice(r,1))}emit(e,t,n){if(this.emitted[e])return!1;this.emitted[e]=!0;let r=!1;for(const o of this.listeners[e])r=!0===o(t,n)||r;return"exit"===e&&(r=this.emit("afterExit",t,n)||r),r}}class l{}const d=globalThis.process,{onExit:u,load:p,unload:m}=(f=o(d)?new class extends l{#p="win32"===d.platform?"SIGINT":"SIGHUP";#m=new c;#f;#h;#b;#g={};#y=!1;constructor(e){super(),this.#f=e,this.#g={};for(const t of r)this.#g[t]=()=>{const n=this.#f.listeners(t);let{count:r}=this.#m;const o=e;if("object"==typeof o.__signal_exit_emitter__&&"number"==typeof o.__signal_exit_emitter__.count&&(r+=o.__signal_exit_emitter__.count),n.length===r){this.unload();const n=this.#m.emit("exit",null,t),r="SIGHUP"===t?this.#p:t;n||e.kill(e.pid,r)}};this.#b=e.reallyExit,this.#h=e.emit}onExit(e,t){if(!o(this.#f))return()=>{};!1===this.#y&&this.load();const n=t?.alwaysLast?"afterExit":"exit";return this.#m.on(n,e),()=>{this.#m.removeListener(n,e),0===this.#m.listeners.exit.length&&0===this.#m.listeners.afterExit.length&&this.unload()}}load(){if(!this.#y){this.#y=!0,this.#m.count+=1;for(const e of r)try{const t=this.#g[e];t&&this.#f.on(e,t)}catch(e){}this.#f.emit=(e,...t)=>this.#w(e,...t),this.#f.reallyExit=e=>this.#v(e)}}unload(){this.#y&&(this.#y=!1,r.forEach((e=>{const t=this.#g[e];if(!t)throw new Error("Listener not defined for signal: "+e);try{this.#f.removeListener(e,t)}catch(e){}})),this.#f.emit=this.#h,this.#f.reallyExit=this.#b,this.#m.count-=1)}#v(e){return o(this.#f)?(this.#f.exitCode=e||0,this.#m.emit("exit",this.#f.exitCode,null),this.#b.call(this.#f,this.#f.exitCode)):0}#w(e,...t){const n=this.#h;if("exit"===e&&o(this.#f)){"number"==typeof t[0]&&(this.#f.exitCode=t[0]);const r=n.call(this.#f,e,...t);return this.#m.emit("exit",this.#f.exitCode,null),r}return n.call(this.#f,e,...t)}}(d):new class extends l{onExit(){return()=>{}}load(){}unload(){}},{onExit:(e,t)=>f.onExit(e,t),load:()=>f.load(),unload:()=>f.unload()});var f},3938:(e,t,n)=>{n.r(t),n.d(t,{builder:()=>a,command:()=>o,description:()=>i});var r=n(2283);const o="git",i="",s=process.cwd();function a(e){e.command("hooks","Set .githooks as git.hooksPath",{},(()=>{(function(){try{return function(){try{return Boolean((0,r.Kc)("git",["--version"],{cwd:s}).stdout)}catch{throw new Error("git is not installed")}}()&&function(){try{return"true"===(0,r.Kc)("git",["rev-parse","--is-inside-work-tree"],{cwd:s}).stdout}catch{throw new Error("not a git repository")}}()}catch(e){return console.error("Fail:",e.message),!1}})()&&(0,r.Ho)("git",["config","core.hooksPath",".githooks"],{cwd:s}).then((()=>{console.log("Done: set .githooks")})).catch((()=>{console.error("Fail:","setting hooks failed"),process.exitCode=1}))})),e.demandCommand(1,"Typing `hooks`")}}};import t from"../runtime.mjs";import*as n from"./git.mjs";t.C(n);var r=t(t.s=3938),o=r.builder,i=r.command,s=r.description;export{o as builder,i as command,s as description};
|
|
1
|
+
import{createRequire as o}from"node:module";export const __webpack_id__=60;export const __webpack_ids__=[60];export const __webpack_modules__={1421:t=>{t.exports=o(import.meta.url)("node:child_process")},1708:t=>{t.exports=o(import.meta.url)("node:process")},3024:t=>{t.exports=o(import.meta.url)("node:fs")},3136:t=>{t.exports=o(import.meta.url)("node:url")},3938:(o,t,r)=>{r.r(t),r.d(t,{builder:()=>n,command:()=>s,description:()=>i});var e=r(1503);const s="git",i="",m=process.cwd();function n(o){o.command("hooks","Set .githooks as git.hooksPath",{},(()=>{(function(){try{return function(){try{return Boolean((0,e.Kc)("git",["--version"],{cwd:m}).stdout)}catch{throw new Error("git is not installed")}}()&&function(){try{return"true"===(0,e.Kc)("git",["rev-parse","--is-inside-work-tree"],{cwd:m}).stdout}catch{throw new Error("not a git repository")}}()}catch(o){return console.error("Fail:",o.message),!1}})()&&(0,e.Ho)("git",["config","core.hooksPath",".githooks"],{cwd:m}).then((()=>{console.log("Done: set .githooks")})).catch((()=>{console.error("Fail:","setting hooks failed"),process.exitCode=1}))})),o.demandCommand(1,"Typing `hooks`")}},4573:t=>{t.exports=o(import.meta.url)("node:buffer")},5317:t=>{t.exports=o(import.meta.url)("child_process")},6193:t=>{t.exports=o(import.meta.url)("node:string_decoder")},6466:t=>{t.exports=o(import.meta.url)("node:stream/promises")},6760:t=>{t.exports=o(import.meta.url)("node:path")},6928:t=>{t.exports=o(import.meta.url)("path")},7066:t=>{t.exports=o(import.meta.url)("node:tty")},7075:t=>{t.exports=o(import.meta.url)("node:stream")},7975:t=>{t.exports=o(import.meta.url)("node:util")},8161:t=>{t.exports=o(import.meta.url)("node:os")},8474:t=>{t.exports=o(import.meta.url)("node:events")},8500:t=>{t.exports=o(import.meta.url)("node:timers/promises")},8877:t=>{t.exports=o(import.meta.url)("node:v8")},9896:t=>{t.exports=o(import.meta.url)("fs")}};import t from"../runtime.mjs";import*as r from"../vendor.mjs";t.C(r);import*as e from"./git.mjs";t.C(e);var s=t(t.s=3938);const i=s.builder,m=s.command,n=s.description;export{i as builder,m as command,n as description};
|
package/dist/cmd/lint.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createRequire as e}from"node:module";export const __webpack_id__=67;export const __webpack_ids__=[67];export const __webpack_modules__={
|
|
1
|
+
import{createRequire as e}from"node:module";export const __webpack_id__=67;export const __webpack_ids__=[67];export const __webpack_modules__={857:t=>{t.exports=e(import.meta.url)("os")},1421:t=>{t.exports=e(import.meta.url)("node:child_process")},1455:t=>{t.exports=e(import.meta.url)("node:fs/promises")},1708:t=>{t.exports=e(import.meta.url)("node:process")},2018:t=>{t.exports=e(import.meta.url)("tty")},2203:t=>{t.exports=e(import.meta.url)("stream")},3024:t=>{t.exports=e(import.meta.url)("node:fs")},3136:t=>{t.exports=e(import.meta.url)("node:url")},3193:t=>{t.exports=e(import.meta.url)("string_decoder")},3339:t=>{t.exports=e(import.meta.url)("module")},4434:t=>{t.exports=e(import.meta.url)("events")},5317:t=>{t.exports=e(import.meta.url)("child_process")},6466:t=>{t.exports=e(import.meta.url)("node:stream/promises")},6760:t=>{t.exports=e(import.meta.url)("node:path")},6848:t=>{t.exports=e(import.meta.url)("node:readline/promises")},6928:t=>{t.exports=e(import.meta.url)("path")},6982:t=>{t.exports=e(import.meta.url)("crypto")},7016:t=>{t.exports=e(import.meta.url)("url")},7066:t=>{t.exports=e(import.meta.url)("node:tty")},7075:t=>{t.exports=e(import.meta.url)("node:stream")},7975:t=>{t.exports=e(import.meta.url)("node:util")},8161:t=>{t.exports=e(import.meta.url)("node:os")},8474:t=>{t.exports=e(import.meta.url)("node:events")},9023:t=>{t.exports=e(import.meta.url)("util")},9767:(e,t,r)=>{r.r(t),r.d(t,{builder:()=>c,command:()=>m,description:()=>p});var o=r(1455),s=r(6760);const i={"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 a(e){e.command("commit","Lint git commit message",{},(()=>{(async function(){const e=await(0,o.readFile)((0,s.resolve)(process.cwd(),".git/COMMIT_EDITMSG"),"utf8"),t=await r.e(652).then(r.bind(r,652)).then((e=>e.default.default||e.default)),a=await Promise.all([r.e(127),r.e(753)]).then(r.bind(r,2753)).then((e=>e.default.default||e.default)),n=await t(e,i);return{result:n,output:await a({results:[n]})}})().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}))}))}var n=r(9948);function l({garou:e,stylelint:t,eslint:r,prettier:o}){const s=process.stdin.isTTY?" --color":"";return function(e){const 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}({"*.{vue,html,htm,md}":[e&&"garou",o&&`prettier -w -u${s}`,t&&`stylelint --fix -- ${s}`,r&&`eslint --fix ${s}`],"*.{ts,tsx,mts,cts}":[e&&"garou",o&&`prettier -w -u${s}`,r&&`eslint --fix ${s}`],"*.{js,jsx,mjs,cjs,wxs,qs}":[e&&"garou",o&&`prettier -w -u${s}`,r&&`eslint --fix ${s}`],"*.{c,sc,le,wx,q,tt,jx,ac}ss":[e&&"garou",o&&`prettier -w -u${s}`,t&&`stylelint --fix -- ${s}`],"*.{json,yml,yaml,svg}":[e&&"garou",o&&`prettier -w -u${s}`],"{*.{jsonc,webmanifest,editorconfig,toml},.{babel,npm}rc}":[o&&`prettier -w -u${s}`],"{*.jenkinsfile,{j,J}enkinsfile}":[o&&`prettier -w -u${s}`],"yarn.lock":[e&&"garou"]})}const m="lint",p="";function c(e){a(e),function(e){e.command("staged","Lint and format git staged files",{},(()=>{(async function(){const{default:e}=await Promise.all([r.e(127),r.e(284)]).then(r.bind(r,9284));return e({allowEmpty:!0,concurrent:!0,config:l(function(){const e=(0,n.t7)("devDependencies");return{garou:"garou"in e,stylelint:"stylelint"in e,eslint:"eslint"in e,prettier:"prettier"in e}}()),cwd:process.cwd(),debug:!1,quiet:!1,relative:!1,shell:!1,stash:!0})})().then((e=>{process.exitCode=e?0:1})).catch((e=>{console.error(e),process.exitCode=1}))}))}(e),e.demandCommand(1,"Typing `commit` or `staged`")}},9896:t=>{t.exports=e(import.meta.url)("fs")}};import t from"../runtime.mjs";import*as r from"../vendor.mjs";t.C(r);import*as o from"./lint.mjs";t.C(o);var s=t(t.s=9767);const i=s.builder,a=s.command,n=s.description;export{i as builder,a as command,n as description};
|
package/dist/runtime.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,r,t={},o={};function i(e){var r=o[e];if(void 0!==r)return r.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,i),a.exports}i.m=t,r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(t,o){if(1&o&&(t=this(t)),8&o)return t;if("object"==typeof t&&t){if(4&o&&t.__esModule)return t;if(16&o&&"function"==typeof t.then)return t}var a=Object.create(null);i.r(a);var n={};e=e||[null,r({}),r([]),r(r)];for(var p=2&o&&t;"object"==typeof p&&!~e.indexOf(p);p=r(p))Object.getOwnPropertyNames(p).forEach((e=>n[e]=()=>t[e]));return n.default=()=>t,i.d(a,n),a},i.d=(e,r)=>{for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((r,t)=>(i.f[t](e,r),r)),[])),i.u=e=>e+".mjs",i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;if("string"==typeof import.meta.url&&(e=import.meta.url),!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})();export default i;(()=>{i.b=new URL("./",import.meta.url);var e={121:0},r=r=>{var t,o,{__webpack_ids__:a,__webpack_modules__:n,__webpack_runtime__:p}=r,f=0;for(t in n)i.o(n,t)&&(i.m[t]=n[t]);for(p&&p(i);f<a.length;f++)o=a[f],i.o(e,o)&&e[o]&&e[o][0](),e[a[f]]=0};i.f.j=(t,o)=>{var a=i.o(e,t)?e[t]:void 0;if(0!==a)if(a)o.push(a[1]);else if(121!=t){var n=import("./"+i.u(t)).then(r,(r=>{throw 0!==e[t]&&(e[t]=void 0),r}));n=Promise.race([n,new Promise((r=>a=e[t]=[r]))]),o.push(a[1]=n)}else e[t]=0},i.C=r})();
|
|
1
|
+
var e,r,t={},o={};function i(e){var r=o[e];if(void 0!==r)return r.exports;var a=o[e]={exports:{}};return t[e](a,a.exports,i),a.exports}i.m=t,r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(t,o){if(1&o&&(t=this(t)),8&o)return t;if("object"==typeof t&&t){if(4&o&&t.__esModule)return t;if(16&o&&"function"==typeof t.then)return t}var a=Object.create(null);i.r(a);var n={};e=e||[null,r({}),r([]),r(r)];for(var p=2&o&&t;"object"==typeof p&&!~e.indexOf(p);p=r(p))Object.getOwnPropertyNames(p).forEach((e=>n[e]=()=>t[e]));return n.default=()=>t,i.d(a,n),a},i.d=(e,r)=>{for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((r,t)=>(i.f[t](e,r),r)),[])),i.u=e=>e+".mjs",i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;if("string"==typeof import.meta.url&&(e=import.meta.url),!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})();export default i;(()=>{i.b=new URL("./",import.meta.url);var e={121:0},r=r=>{var t,o,{__webpack_ids__:a,__webpack_modules__:n,__webpack_runtime__:p}=r,f=0;for(t in n)i.o(n,t)&&(i.m[t]=n[t]);for(p&&p(i);f<a.length;f++)o=a[f],i.o(e,o)&&e[o]&&e[o][0](),e[a[f]]=0};i.f.j=(t,o)=>{var a=i.o(e,t)?e[t]:void 0;if(0!==a)if(a)o.push(a[1]);else if(121!=t){var n=import("./"+i.u(t)).then(r,(r=>{throw 0!==e[t]&&(e[t]=void 0),r}));n=Promise.race([n,new Promise((r=>a=e[t]=[r]))]),o.push(a[1]=n)}else e[t]=0},i.C=r})();
|