eslint-config-sukka 7.1.1 → 7.1.2
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/index.cjs +4 -4
- package/dist/vendor-D-tmP12I.cjs +19 -0
- package/package.json +14 -14
- package/dist/vendor-47KOc287.cjs +0 -19
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";let u,D;require("node:util");var e,t,r=require("node:process"),i=require("node:readline"),n=require("node:stream"),s=require("picocolors"),F=require("node:fs/promises"),o=require("node:path"),C=require("node:fs"),a=require("node:module"),E=require("child_process"),l=require("path"),c=require("process"),p=require("stream"),h=require("readline"),d="undefined"!=typeof document?document.currentScript:null,B=function(){if(t)return e;t=1;let u=`\x1b[`,D={to:(D,e)=>e?`${u}${e+1};${D+1}H`:`${u}${D+1}G`,move(D,e){let t="";return D<0?t+=`${u}${-D}D`:D>0&&(t+=`${u}${D}C`),e<0?t+=`${u}${-e}A`:e>0&&(t+=`${u}${e}B`),t},up:(D=1)=>`${u}${D}A`,down:(D=1)=>`${u}${D}B`,forward:(D=1)=>`${u}${D}C`,backward:(D=1)=>`${u}${D}D`,nextLine:(D=1)=>`${u}E`.repeat(D),prevLine:(D=1)=>`${u}F`.repeat(D),left:`${u}G`,hide:`${u}?25l`,show:`${u}?25h`,save:`\x1b7`,restore:`\x1b8`},r={screen:`${u}2J`,up:(D=1)=>`${u}1J`.repeat(D),down:(D=1)=>`${u}J`.repeat(D),line:`${u}2K`,lineEnd:`${u}K`,lineStart:`${u}1K`,lines(u){let e="";for(let t=0;t<u;t++)e+=this.line+(t<u-1?D.up():"");return u&&(e+=D.left),e}};return e={cursor:D,scroll:{up:(D=1)=>`${u}S`.repeat(D),down:(D=1)=>`${u}T`.repeat(D)},erase:r,beep:"\x07"}}();let f=function({onlyFirst:u=!1}={}){return RegExp("[\\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=><~]))",u?void 0:"g")}();function m(u){if("string"!=typeof u)throw TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(f,"")}function g(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var A={exports:{}},b={};function v(u){return u.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}A.exports=b,b.eastAsianWidth=function(u){var D=u.charCodeAt(0),e=2==u.length?u.charCodeAt(1):0,t=D;return 55296<=D&&D<=56319&&56320<=e&&e<=57343&&(D&=1023,e&=1023,t=(D<<10|e)+65536),12288==t||65281<=t&&t<=65376||65504<=t&&t<=65510?"F":8361==t||65377<=t&&t<=65470||65474<=t&&t<=65479||65482<=t&&t<=65487||65490<=t&&t<=65495||65498<=t&&t<=65500||65512<=t&&t<=65518?"H":4352<=t&&t<=4447||4515<=t&&t<=4519||4602<=t&&t<=4607||9001<=t&&t<=9002||11904<=t&&t<=11929||11931<=t&&t<=12019||12032<=t&&t<=12245||12272<=t&&t<=12283||12289<=t&&t<=12350||12353<=t&&t<=12438||12441<=t&&t<=12543||12549<=t&&t<=12589||12593<=t&&t<=12686||12688<=t&&t<=12730||12736<=t&&t<=12771||12784<=t&&t<=12830||12832<=t&&t<=12871||12880<=t&&t<=13054||13056<=t&&t<=19903||19968<=t&&t<=42124||42128<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||55216<=t&&t<=55238||55243<=t&&t<=55291||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65106||65108<=t&&t<=65126||65128<=t&&t<=65131||110592<=t&&t<=110593||127488<=t&&t<=127490||127504<=t&&t<=127546||127552<=t&&t<=127560||127568<=t&&t<=127569||131072<=t&&t<=194367||177984<=t&&t<=196605||196608<=t&&t<=262141?"W":32<=t&&t<=126||162<=t&&t<=163||165<=t&&t<=166||172==t||175==t||10214<=t&&t<=10221||10629<=t&&t<=10630?"Na":161==t||164==t||167<=t&&t<=168||170==t||173<=t&&t<=174||176<=t&&t<=180||182<=t&&t<=186||188<=t&&t<=191||198==t||208==t||215<=t&&t<=216||222<=t&&t<=225||230==t||232<=t&&t<=234||236<=t&&t<=237||240==t||242<=t&&t<=243||247<=t&&t<=250||252==t||254==t||257==t||273==t||275==t||283==t||294<=t&&t<=295||299==t||305<=t&&t<=307||312==t||319<=t&&t<=322||324==t||328<=t&&t<=331||333==t||338<=t&&t<=339||358<=t&&t<=359||363==t||462==t||464==t||466==t||468==t||470==t||472==t||474==t||476==t||593==t||609==t||708==t||711==t||713<=t&&t<=715||717==t||720==t||728<=t&&t<=731||733==t||735==t||768<=t&&t<=879||913<=t&&t<=929||931<=t&&t<=937||945<=t&&t<=961||963<=t&&t<=969||1025==t||1040<=t&&t<=1103||1105==t||8208==t||8211<=t&&t<=8214||8216<=t&&t<=8217||8220<=t&&t<=8221||8224<=t&&t<=8226||8228<=t&&t<=8231||8240==t||8242<=t&&t<=8243||8245==t||8251==t||8254==t||8308==t||8319==t||8321<=t&&t<=8324||8364==t||8451==t||8453==t||8457==t||8467==t||8470==t||8481<=t&&t<=8482||8486==t||8491==t||8531<=t&&t<=8532||8539<=t&&t<=8542||8544<=t&&t<=8555||8560<=t&&t<=8569||8585==t||8592<=t&&t<=8601||8632<=t&&t<=8633||8658==t||8660==t||8679==t||8704==t||8706<=t&&t<=8707||8711<=t&&t<=8712||8715==t||8719==t||8721==t||8725==t||8730==t||8733<=t&&t<=8736||8739==t||8741==t||8743<=t&&t<=8748||8750==t||8756<=t&&t<=8759||8764<=t&&t<=8765||8776==t||8780==t||8786==t||8800<=t&&t<=8801||8804<=t&&t<=8807||8810<=t&&t<=8811||8814<=t&&t<=8815||8834<=t&&t<=8835||8838<=t&&t<=8839||8853==t||8857==t||8869==t||8895==t||8978==t||9312<=t&&t<=9449||9451<=t&&t<=9547||9552<=t&&t<=9587||9600<=t&&t<=9615||9618<=t&&t<=9621||9632<=t&&t<=9633||9635<=t&&t<=9641||9650<=t&&t<=9651||9654<=t&&t<=9655||9660<=t&&t<=9661||9664<=t&&t<=9665||9670<=t&&t<=9672||9675==t||9678<=t&&t<=9681||9698<=t&&t<=9701||9711==t||9733<=t&&t<=9734||9737==t||9742<=t&&t<=9743||9748<=t&&t<=9749||9756==t||9758==t||9792==t||9794==t||9824<=t&&t<=9825||9827<=t&&t<=9829||9831<=t&&t<=9834||9836<=t&&t<=9837||9839==t||9886<=t&&t<=9887||9918<=t&&t<=9919||9924<=t&&t<=9933||9935<=t&&t<=9953||9955==t||9960<=t&&t<=9983||10045==t||10071==t||10102<=t&&t<=10111||11093<=t&&t<=11097||12872<=t&&t<=12879||57344<=t&&t<=63743||65024<=t&&t<=65039||65533==t||127232<=t&&t<=127242||127248<=t&&t<=127277||127280<=t&&t<=127337||127344<=t&&t<=127386||917760<=t&&t<=917999||983040<=t&&t<=1048573||1048576<=t&&t<=1114109?"A":"N"},b.characterLength=function(u){var D=this.eastAsianWidth(u);return"F"==D||"W"==D||"A"==D?2:1},b.length=function(u){for(var D=v(u),e=0,t=0;t<D.length;t++)e+=this.characterLength(D[t]);return e},b.slice=function(u,D,e){textLen=b.length(u),e=e||1,(D=D||0)<0&&(D=textLen+D),e<0&&(e=textLen+e);for(var t="",r=0,i=v(u),n=0;n<i.length;n++){var s=i[n],F=b.length(s);if(r>=D-(2==F))if(r+F<=e)t+=s;else break;r+=F}return t};let y=g(A.exports),w=g(function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?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C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\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|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\u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CB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\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]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\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-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g});function _(u,D={}){if("string"!=typeof u||0===u.length||(D={ambiguousIsNarrow:!0,...D},0===(u=m(u)).length))return 0;u=u.replace(w()," ");let e=D.ambiguousIsNarrow?1:2,t=0;for(let D of u){let u=D.codePointAt(0);if(!(u<=31)&&(!(u>=127)||!(u<=159))&&(!(u>=768)||!(u<=879)))switch(y.eastAsianWidth(D)){case"F":case"W":t+=2;break;case"A":t+=e;break;default:t+=1}}return t}let x=(u=0)=>D=>`\x1b[${D+u}m`,$=(u=0)=>D=>`\x1b[${38+u};5;${D}m`,k=(u=0)=>(D,e,t)=>`\x1b[${38+u};2;${D};${e};${t}m`,O={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(O.modifier),[...Object.keys(O.color),...Object.keys(O.bgColor)];let j=function(){let u=new Map;for(let[D,e]of Object.entries(O)){for(let[D,t]of Object.entries(e))O[D]={open:`\x1b[${t[0]}m`,close:`\x1b[${t[1]}m`},e[D]=O[D],u.set(t[0],t[1]);Object.defineProperty(O,D,{value:e,enumerable:!1})}return Object.defineProperty(O,"codes",{value:u,enumerable:!1}),O.color.close="\x1b[39m",O.bgColor.close="\x1b[49m",O.color.ansi=x(),O.color.ansi256=$(),O.color.ansi16m=k(),O.bgColor.ansi=x(10),O.bgColor.ansi256=$(10),O.bgColor.ansi16m=k(10),Object.defineProperties(O,{rgbToAnsi256:{value:(u,D,e)=>u===D&&D===e?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(D/255*5)+Math.round(e/255*5),enumerable:!1},hexToRgb:{value:u=>{let D=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!D)return[0,0,0];let[e]=D;3===e.length&&(e=[...e].map(u=>u+u).join(""));let t=Number.parseInt(e,16);return[t>>16&255,t>>8&255,255&t]},enumerable:!1},hexToAnsi256:{value:u=>O.rgbToAnsi256(...O.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value:u=>{let D,e,t;if(u<8)return 30+u;if(u<16)return 90+(u-8);if(u>=232)e=D=((u-232)*10+8)/255,t=D;else{let r=(u-=16)%36;D=Math.floor(u/36)/5,e=Math.floor(r/6)/5,t=r%6/5}let r=2*Math.max(D,e,t);if(0===r)return 30;let i=30+(Math.round(t)<<2|Math.round(e)<<1|Math.round(D));return 2===r&&(i+=60),i},enumerable:!1},rgbToAnsi:{value:(u,D,e)=>O.ansi256ToAnsi(O.rgbToAnsi256(u,D,e)),enumerable:!1},hexToAnsi:{value:u=>O.ansi256ToAnsi(O.hexToAnsi256(u)),enumerable:!1}}),O}(),T=new Set(["\x1b","\x9b"]),S="]8;;",M=u=>`${T.values().next().value}[${u}m`,P=u=>`${T.values().next().value}${S}${u}\x07`,N=(u,D,e)=>{let t=[...D],r=!1,i=!1,n=_(m(u[u.length-1]));for(let[D,s]of t.entries()){let F=_(s);if(n+F<=e?u[u.length-1]+=s:(u.push(s),n=0),T.has(s)&&(r=!0,i=t.slice(D+1).join("").startsWith(S)),r){i?"\x07"===s&&(r=!1,i=!1):"m"===s&&(r=!1);continue}(n+=F)===e&&D<t.length-1&&(u.push(""),n=0)}!n&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())};function R(u,D,e){return String(u).normalize().replace(/\r\n/g,`
|
|
2
|
+
`).split(`
|
|
3
|
+
`).map(u=>((u,D,e={})=>{if(!1!==e.trim&&""===u.trim())return"";let t="",r,i,n=u.split(" ").map(u=>_(u)),s=[""];for(let[t,r]of u.split(" ").entries()){!1!==e.trim&&(s[s.length-1]=s[s.length-1].trimStart());let u=_(s[s.length-1]);if(0!==t&&(u>=D&&(!1===e.wordWrap||!1===e.trim)&&(s.push(""),u=0),(u>0||!1===e.trim)&&(s[s.length-1]+=" ",u++)),e.hard&&n[t]>D){let e=D-u,i=1+Math.floor((n[t]-e-1)/D);Math.floor((n[t]-1)/D)<i&&s.push(""),N(s,r,D);continue}if(u+n[t]>D&&u>0&&n[t]>0){if(!1===e.wordWrap&&u<D){N(s,r,D);continue}s.push("")}if(u+n[t]>D&&!1===e.wordWrap){N(s,r,D);continue}s[s.length-1]+=r}!1!==e.trim&&(s=s.map(u=>(u=>{let D=u.split(" "),e=D.length;for(;e>0&&!(_(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")})(u)));let F=[...s.join(`
|
|
4
|
+
`)];for(let[u,D]of F.entries()){if(t+=D,T.has(D)){let{groups:D}=RegExp(`(?:\\[(?<code>\\d+)m|\\${S}(?<uri>.*)\x07)`).exec(F.slice(u).join(""))||{groups:{}};if(void 0!==D.code){let u=Number.parseFloat(D.code);r=39===u?void 0:u}else void 0!==D.uri&&(i=0===D.uri.length?void 0:D.uri)}let e=j.codes.get(Number(r));F[u+1]===`
|
|
5
|
+
`?(i&&(t+=P("")),r&&e&&(t+=M(e))):D===`
|
|
6
|
+
`&&(r&&e&&(t+=M(r)),i&&(t+=P(i)))}return t})(u,D,e)).join(`
|
|
7
|
+
`)}let L={actions:new Set(["up","down","left","right","space","enter","cancel"]),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["\x03","cancel"],["escape","cancel"]])};globalThis.process.platform.startsWith("win");let I=Symbol("clack:cancel");function q(u,D){u.isTTY&&u.setRawMode(D)}var W=Object.defineProperty,z=(u,D,e)=>{let t;return(t="symbol"!=typeof D?D+"":D)in u?W(u,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[t]=e,e};let U=class{constructor(u,D=!0){z(this,"input"),z(this,"output"),z(this,"_abortSignal"),z(this,"rl"),z(this,"opts"),z(this,"_render"),z(this,"_track",!1),z(this,"_prevFrame",""),z(this,"_subscribers",new Map),z(this,"_cursor",0),z(this,"state","initial"),z(this,"error",""),z(this,"value");let{input:e=r.stdin,output:t=r.stdout,render:i,signal:n,...s}=u;this.opts=s,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=i.bind(this),this._track=D,this._abortSignal=n,this.input=e,this.output=t}unsubscribe(){this._subscribers.clear()}setSubscriber(u,D){let e=this._subscribers.get(u)??[];e.push(D),this._subscribers.set(u,e)}on(u,D){this.setSubscriber(u,{cb:D})}once(u,D){this.setSubscriber(u,{cb:D,once:!0})}emit(u,...D){let e=this._subscribers.get(u)??[],t=[];for(let u of e)u.cb(...D),u.once&&t.push(()=>e.splice(e.indexOf(u),1));for(let u of t)u()}prompt(){return new Promise((u,D)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),u(I);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}let e=new n.Writable;e._write=(u,D,e)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),e()},this.input.pipe(e),this.rl=i.createInterface({input:this.input,output:e,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),i.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),void 0!==this.opts.initialValue&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),q(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(B.cursor.show),this.output.off("resize",this.render),q(this.input,!1),u(this.value)}),this.once("cancel",()=>{this.output.write(B.cursor.show),this.output.off("resize",this.render),q(this.input,!1),u(I)})})}onKeypress(u,D){if("error"===this.state&&(this.state="active"),D?.name&&(!this._track&&L.aliases.has(D.name)&&this.emit("cursor",L.aliases.get(D.name)),L.actions.has(D.name)&&this.emit("cursor",D.name)),u&&("y"===u.toLowerCase()||"n"===u.toLowerCase())&&this.emit("confirm","y"===u.toLowerCase())," "===u&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),u&&this.emit("key",u.toLowerCase()),D?.name==="return"){if(this.opts.validate){let u=this.opts.validate(this.value);u&&(this.error=u instanceof Error?u.message:u,this.state="error",this.rl?.write(this.value))}"error"!==this.state&&(this.state="submit")}(function u(D,e){if("string"==typeof D)return L.aliases.get(D)===e;for(let t of D)if(void 0!==t&&u(t,e))return!0;return!1})([u,D?.name,D?.sequence],"cancel")&&(this.state="cancel"),("submit"===this.state||"cancel"===this.state)&&this.emit("finalize"),this.render(),("submit"===this.state||"cancel"===this.state)&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
|
|
8
|
+
`),q(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let u=R(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
|
|
9
|
+
`).length-1;this.output.write(B.cursor.move(-999,-1*u))}render(){let u=R(this._render(this)??"",process.stdout.columns,{hard:!0});if(u!==this._prevFrame){if("initial"===this.state)this.output.write(B.cursor.hide);else{let D=function(u,D){if(u===D)return;let e=u.split(`
|
|
10
|
+
`),t=D.split(`
|
|
11
|
+
`),r=[];for(let u=0;u<Math.max(e.length,t.length);u++)e[u]!==t[u]&&r.push(u);return r}(this._prevFrame,u);if(this.restoreCursor(),D&&D?.length===1){let e=D[0];this.output.write(B.cursor.move(0,e)),this.output.write(B.erase.lines(1));let t=u.split(`
|
|
12
|
+
`);this.output.write(t[e]),this._prevFrame=u,this.output.write(B.cursor.move(0,t.length-e-1));return}if(D&&D?.length>1){let e=D[0];this.output.write(B.cursor.move(0,e)),this.output.write(B.erase.down());let t=u.split(`
|
|
13
|
+
`).slice(e);this.output.write(t.join(`
|
|
14
|
+
`)),this._prevFrame=u;return}this.output.write(B.erase.down())}this.output.write(u),"initial"===this.state&&(this.state="active"),this._prevFrame=u}}};class G extends U{get cursor(){return+!this.value}get _value(){return 0===this.cursor}constructor(u){super(u,!1),this.value=!!u.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",u=>{this.output.write(B.cursor.move(0,-1)),this.value=u,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}let H="win32"!==r.platform?"linux"!==r.env.TERM:!!r.env.CI||!!r.env.WT_SESSION||!!r.env.TERMINUS_SUBLIME||"{cmd::Cmder}"===r.env.ConEmuTask||"Terminus-Sublime"===r.env.TERM_PROGRAM||"vscode"===r.env.TERM_PROGRAM||"xterm-256color"===r.env.TERM||"alacritty"===r.env.TERM||"JetBrains-JediTerm"===r.env.TERMINAL_EMULATOR,K=(u,D)=>H?u:D,J=K("◆","*"),V=K("■","x"),Y=K("▲","x"),Z=K("◇","o"),X=K("│","|"),Q=K("└","—"),uu=K("●",">"),uD=K("○"," ");s.gray(X);var ue=Object.freeze({__proto__:null,confirm:u=>{let D=u.active??"Yes",e=u.inactive??"No";return new G({active:D,inactive:e,initialValue:u.initialValue??!0,render(){let t=`${s.gray(X)}
|
|
15
|
+
${(u=>{switch(u){case"initial":case"active":return s.cyan(J);case"cancel":return s.red(V);case"error":return s.yellow(Y);case"submit":return s.green(Z)}})(this.state)} ${u.message}
|
|
16
|
+
`,r=this.value?D:e;switch(this.state){case"submit":return`${t}${s.gray(X)} ${s.dim(r)}`;case"cancel":return`${t}${s.gray(X)} ${s.strikethrough(s.dim(r))}
|
|
17
|
+
${s.gray(X)}`;default:return`${t}${s.cyan(X)} ${this.value?`${s.green(uu)} ${D}`:`${s.dim(uD)} ${s.dim(D)}`} ${s.dim("/")} ${this.value?`${s.dim(uD)} ${s.dim(e)}`:`${s.green(uu)} ${e}`}
|
|
18
|
+
${s.cyan(Q)}
|
|
19
|
+
`}}}).prompt()}});let ut=["npm","yarn","yarn@berry","pnpm","pnpm@6","bun","deno"],ur={"bun.lock":"bun","bun.lockb":"bun","deno.lock":"deno","pnpm-lock.yaml":"pnpm","pnpm-workspace.yaml":"pnpm","yarn.lock":"yarn","package-lock.json":"npm","npm-shrinkwrap.json":"npm"},ui={"node_modules/.deno/":"deno","node_modules/.pnpm/":"pnpm","node_modules/.yarn-state.yml":"yarn","node_modules/.yarn_integrity":"yarn","node_modules/.package-lock.json":"npm",".pnp.cjs":"yarn",".pnp.js":"yarn","bun.lock":"bun","bun.lockb":"bun"};async function un(u,D){try{let e=await F.stat(u);return"file"===D?e.isFile():e.isDirectory()}catch{return!1}}async function us(u,D){return u&&un(u,"file")?await uo(u,D):null}async function uF(u={}){let D,{cwd:e,strategies:t=["lockfile","packageManager-field","devEngines-field"],onUnknown:i}=u;if("string"==typeof u.stopDir){let e=o.resolve(u.stopDir);D=u=>u===e}else D=u.stopDir;for(let u of function*(u=r.cwd()){let D=o.resolve(u),{root:e}=o.parse(D);for(;D&&D!==e;)yield D,D=o.dirname(D)}(e)){for(let D of t)switch(D){case"lockfile":for(let D of Object.keys(ur))if(await un(o.join(u,D),"file")){let e=ur[D],t=await us(o.join(u,"package.json"),i);if(t)return t;return{name:e,agent:e}}break;case"packageManager-field":case"devEngines-field":{let D=await us(o.join(u,"package.json"),i);if(D)return D;break}case"install-metadata":for(let D of Object.keys(ui)){let e=D.endsWith("/")?"dir":"file";if(await un(o.join(u,D),e)){let u=ui[D],e="yarn"===u?D.endsWith(".yarn_integrity")?"yarn":"yarn@berry":u;return{name:u,agent:e}}}}if(D?.(u))break}return null}async function uo(u,D){try{let e,t=JSON.parse(await F.readFile(u,"utf8")),r=function(u){let D=u=>u?.match(/\d+(\.\d+){0,2}/)?.[0]??u;if("string"==typeof u.packageManager){let[e,t]=u.packageManager.replace(/^\^/,"").split("@");return{name:e,ver:D(t)}}if("string"==typeof u.devEngines?.packageManager?.name)return{name:u.devEngines.packageManager.name,ver:D(u.devEngines.packageManager.version)}}(t);if(r){let u=r.name,i=r.ver,n=i;if("yarn"===u&&i&&Number.parseInt(i)>1)return e="yarn@berry",n="berry",{name:u,agent:e,version:n};if("pnpm"===u&&i&&7>Number.parseInt(i))return e="pnpm@6",{name:u,agent:e,version:n};if(ut.includes(u))return e=u,{name:u,agent:e,version:n};else return D?.(t.packageManager)??null}}catch{}return null}let uC=a.createRequire("undefined"==typeof document?require("url").pathToFileURL(__filename).href:d&&"SCRIPT"===d.tagName.toUpperCase()&&d.src||new URL("vendor-D-tmP12I.cjs",document.baseURI).href);var ua=Object.create,uE=Object.defineProperty,ul=Object.getOwnPropertyDescriptor,uc=Object.getOwnPropertyNames,up=Object.getPrototypeOf,uh=Object.prototype.hasOwnProperty,ud=(u=function(u){if("u">typeof uC)return uC.apply(this,arguments);throw Error('Dynamic require of "'+u+'" is not supported')},"u">typeof uC?uC:"u">typeof Proxy?new Proxy(u,{get:(u,D)=>("u">typeof uC?uC:u)[D]}):u),uB=(u,D)=>()=>(D||u((D={exports:{}}).exports,D),D.exports),uf=uB((u,D)=>{D.exports=r,r.sync=function(u,D){return t(e.statSync(u),u,D)};var e=ud("fs");function t(u,D,e){return(!!u.isSymbolicLink()||!!u.isFile())&&function(u,D){var e=void 0!==D.pathExt?D.pathExt:process.env.PATHEXT;if(!e||-1!==(e=e.split(";")).indexOf(""))return!0;for(var t=0;t<e.length;t++){var r=e[t].toLowerCase();if(r&&u.substr(-r.length).toLowerCase()===r)return!0}return!1}(D,e)}function r(u,D,r){e.stat(u,function(e,i){r(e,!e&&t(i,u,D))})}}),um=uB((u,D)=>{D.exports=t,t.sync=function(u,D){return r(e.statSync(u),D)};var e=ud("fs");function t(u,D,t){e.stat(u,function(u,e){t(u,!u&&r(e,D))})}function r(u,D){var e,t,r,i,n,s,F,o,C;return u.isFile()&&(e=u,t=D,r=e.mode,i=e.uid,n=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),F=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),o=parseInt("100",8),C=parseInt("010",8),r&parseInt("001",8)||r&C&&n===F||r&o&&i===s||r&(o|C)&&0===s)}}),ug=uB((u,D)=>{var e;function t(u,D,r){if("function"==typeof D&&(r=D,D={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(e,r){t(u,D||{},function(u,D){u?r(u):e(D)})})}e(u,D||{},function(u,e){u&&("EACCES"===u.code||D&&D.ignoreErrors)&&(u=null,e=!1),r(u,e)})}ud("fs"),e="win32"===process.platform||global.TESTING_WINDOWS?uf():um(),D.exports=t,t.sync=function(u,D){try{return e.sync(u,D||{})}catch(u){if(D&&D.ignoreErrors||"EACCES"===u.code)return!1;throw u}}}),uA=uB((u,D)=>{var e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,t=ud("path"),r=e?";":":",i=ug(),n=u=>Object.assign(Error(`not found: ${u}`),{code:"ENOENT"}),s=(u,D)=>{let t=D.colon||r,i=u.match(/\//)||e&&u.match(/\\/)?[""]:[...e?[process.cwd()]:[],...(D.path||process.env.PATH||"").split(t)],n=e?D.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=e?n.split(t):[""];return e&&-1!==u.indexOf(".")&&""!==s[0]&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},F=(u,D,e)=>{"function"==typeof D&&(e=D,D={}),D||(D={});let{pathEnv:r,pathExt:F,pathExtExe:o}=s(u,D),C=[],a=e=>new Promise((i,s)=>{if(e===r.length)return D.all&&C.length?i(C):s(n(u));let F=r[e],o=/^".*"$/.test(F)?F.slice(1,-1):F,a=t.join(o,u);i(E(!o&&/^\.[\\\/]/.test(u)?u.slice(0,2)+a:a,e,0))}),E=(u,e,t)=>new Promise((r,n)=>{if(t===F.length)return r(a(e+1));let s=F[t];i(u+s,{pathExt:o},(i,n)=>{if(!i&&n)if(!D.all)return r(u+s);else C.push(u+s);return r(E(u,e,t+1))})});return e?a(0).then(u=>e(null,u),e):a(0)};D.exports=F,F.sync=(u,D)=>{let{pathEnv:e,pathExt:r,pathExtExe:F}=s(u,D=D||{}),o=[];for(let n=0;n<e.length;n++){let s=e[n],C=/^".*"$/.test(s)?s.slice(1,-1):s,a=t.join(C,u),E=!C&&/^\.[\\\/]/.test(u)?u.slice(0,2)+a:a;for(let u=0;u<r.length;u++){let e=E+r[u];try{if(i.sync(e,{pathExt:F}))if(!D.all)return e;else o.push(e)}catch{}}}if(D.all&&o.length)return o;if(D.nothrow)return null;throw n(u)}}),ub=uB((u,D)=>{var e=(u={})=>{let D=u.env||process.env;return"win32"!==(u.platform||process.platform)?"PATH":Object.keys(D).reverse().find(u=>"PATH"===u.toUpperCase())||"Path"};D.exports=e,D.exports.default=e}),uv=uB((u,D)=>{var e=ud("path"),t=uA(),r=ub();function i(u,D){let i,n=u.options.env||process.env,s=process.cwd(),F=null!=u.options.cwd,o=F&&void 0!==process.chdir&&!process.chdir.disabled;if(o)try{process.chdir(u.options.cwd)}catch{}try{i=t.sync(u.command,{path:n[r({env:n})],pathExt:D?e.delimiter:void 0})}catch{}finally{o&&process.chdir(s)}return i&&(i=e.resolve(F?u.options.cwd:"",i)),i}D.exports=function(u){return i(u)||i(u,!0)}}),uy=uB((u,D)=>{var e=/([()\][%!^"`<>&|;, *?])/g;D.exports.command=function(u){return u.replace(e,"^$1")},D.exports.argument=function(u,D){return u=(u=(u=`${u}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"),u=(u=`"${u}"`).replace(e,"^$1"),D&&(u=u.replace(e,"^$1")),u}}),uw=uB((u,D)=>{D.exports=/^#!(.*)/}),u_=uB((u,D)=>{var e=uw();D.exports=(u="")=>{let D=u.match(e);if(!D)return null;let[t,r]=D[0].replace(/#! ?/,"").split(" "),i=t.split("/").pop();return"env"===i?r:r?`${i} ${r}`:i}}),ux=uB((u,D)=>{var e=ud("fs"),t=u_();D.exports=function(u){let D=Buffer.alloc(150),r;try{r=e.openSync(u,"r"),e.readSync(r,D,0,150,0),e.closeSync(r)}catch{}return t(D.toString())}}),u$=uB((u,D)=>{var e=ud("path"),t=uv(),r=uy(),i=ux(),n="win32"===process.platform,s=/\.(?:com|exe)$/i,F=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;D.exports=function(u,D,o){D&&!Array.isArray(D)&&(o=D,D=null);let C={command:u,args:D=D?D.slice(0):[],options:o=Object.assign({},o),file:void 0,original:{command:u,args:D}};return o.shell?C:function(u){let D;if(!n)return u;let o=(u.file=t(u),(D=u.file&&i(u.file))?(u.args.unshift(u.file),u.command=D,t(u)):u.file),C=!s.test(o);if(u.options.forceShell||C){let D=F.test(o);u.command=e.normalize(u.command),u.command=r.command(u.command),u.args=u.args.map(u=>r.argument(u,D));let t=[u.command].concat(u.args).join(" ");u.args=["/d","/s","/c",`"${t}"`],u.command=process.env.comspec||"cmd.exe",u.options.windowsVerbatimArguments=!0}return u}(C)}}),uk=uB((u,D)=>{var e="win32"===process.platform;function t(u,D){return Object.assign(Error(`${D} ${u.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${D} ${u.command}`,path:u.command,spawnargs:u.args})}function r(u,D){return e&&1===u&&!D.file?t(D.original,"spawn"):null}D.exports={hookChildProcess:function(u,D){if(!e)return;let t=u.emit;u.emit=function(e,i){if("exit"===e){let e=r(i,D);if(e)return t.call(u,"error",e)}return t.apply(u,arguments)}},verifyENOENT:r,verifyENOENTSync:function(u,D){return e&&1===u&&!D.file?t(D.original,"spawnSync"):null},notFoundError:t}}),uO=uB((u,D)=>{var e=ud("child_process"),t=u$(),r=uk();function i(u,D,i){let n=t(u,D,i),s=e.spawn(n.command,n.args,n.options);return r.hookChildProcess(s,n),s}D.exports=i,D.exports.spawn=i,D.exports.sync=function(u,D,i){let n=t(u,D,i),s=e.spawnSync(n.command,n.args,n.options);return s.error=s.error||r.verifyENOENTSync(s.status,n),s},D.exports._parse=t,D.exports._enoent=r}),uj=/^path$/i,uT={key:"PATH",value:""},uS=((u,D,e,t)=>{if(D&&"object"==typeof D||"function"==typeof D)for(let r of uc(D))uh.call(u,r)||r===e||uE(u,r,{get:()=>D[r],enumerable:!(t=ul(D,r))||t.enumerable});return u})(uE(null!=(D=uO())?ua(up(D)):{},"default",{value:D,enumerable:!0}),D),uM=class extends Error{result;output;get exitCode(){if(null!==this.result.exitCode)return this.result.exitCode}constructor(u,D){super(`Process exited with non-zero status (${u.exitCode})`),this.result=u,this.output=D}},uP={timeout:void 0,persist:!1},uN={windowsHide:!0},uR=class{_process;_aborted=!1;_options;_command;_args;_resolveClose;_processClosed;_thrownError;get process(){return this._process}get pid(){return this._process?.pid}get exitCode(){if(this._process&&null!==this._process.exitCode)return this._process.exitCode}constructor(u,D,e){this._options={...uP,...e},this._command=u,this._args=D??[],this._processClosed=new Promise(u=>{this._resolveClose=u})}kill(u){return this._process?.kill(u)===!0}get aborted(){return this._aborted}get killed(){return this._process?.killed===!0}pipe(u,D,e){return uI(u,D,{...e,stdin:this})}async *[Symbol.asyncIterator](){let u=this._process;if(!u)return;let D=[];this._streamErr&&D.push(this._streamErr),this._streamOut&&D.push(this._streamOut);let e=(u=>{let D=u.length,e=new p.PassThrough,t=()=>{0==--D&&e.emit("end")};for(let D of u)D.pipe(e,{end:!1}),D.on("end",t);return e})(D);for await(let u of h.createInterface({input:e}))yield u.toString();if(await this._processClosed,u.removeAllListeners(),this._thrownError)throw this._thrownError;if(this._options?.throwOnError&&0!==this.exitCode&&void 0!==this.exitCode)throw new uM(this)}async _waitForOutput(){let u=this._process;if(!u)throw Error("No process was started");let D="",e="";if(this._streamOut)for await(let u of this._streamOut)e+=u.toString();if(this._streamErr)for await(let u of this._streamErr)D+=u.toString();if(await this._processClosed,this._options?.stdin&&await this._options.stdin,u.removeAllListeners(),this._thrownError)throw this._thrownError;let t={stderr:D,stdout:e,exitCode:this.exitCode};if(this._options.throwOnError&&0!==this.exitCode&&void 0!==this.exitCode)throw new uM(this,t);return t}then(u,D){return this._waitForOutput().then(u,D)}_streamOut;_streamErr;spawn(){var u,D,e;let t,r,i=c.cwd(),n=this._options,s={...uN,...n.nodeOptions},F=[];this._resetState(),void 0!==n.timeout&&F.push(AbortSignal.timeout(n.timeout)),void 0!==n.signal&&F.push(n.signal),!0===n.persist&&(s.detached=!0),F.length>0&&(s.signal=function(u){let D=new AbortController;for(let e of u){if(e.aborted)return D.abort(),e;let u=()=>{D.abort(e.reason)};e.addEventListener("abort",u,{signal:D.signal})}return D.signal}(F)),u=s.env,r=function(u,D){let e=D.value.split(l.delimiter),t=u,r;do e.push(l.resolve(t,"node_modules",".bin")),r=t,t=l.dirname(t);while(t!==r);return{key:D.key,value:e.join(l.delimiter)}}(i,function(u){for(let D in u){if(!Object.prototype.hasOwnProperty.call(u,D)||!uj.test(D))continue;let e=u[D];return e?{key:D,value:e}:uT}return uT}(t={...process.env,...u})),t[r.key]=r.value,s.env=t;let{command:o,args:C}=(D=this._command,e=this._args,{command:l.normalize(D),args:e??[]}),a=(0,uS._parse)(o,C,s),p=E.spawn(a.command,a.args,a.options);if(p.stderr&&(this._streamErr=p.stderr),p.stdout&&(this._streamOut=p.stdout),this._process=p,p.once("error",this._onError),p.once("close",this._onClose),void 0!==n.stdin&&p.stdin&&n.stdin.process){let{stdout:u}=n.stdin.process;u&&u.pipe(p.stdin)}}_resetState(){this._aborted=!1,this._processClosed=new Promise(u=>{this._resolveClose=u}),this._thrownError=void 0}_onError=u=>{if("AbortError"===u.name&&(!(u.cause instanceof Error)||"TimeoutError"!==u.cause.name)){this._aborted=!0;return}this._thrownError=u};_onClose=()=>{this._resolveClose&&this._resolveClose()}},uL=(u,D,e)=>{let t=new uR(u,D,e);return t.spawn(),t},uI=uL;async function uq(u=r.cwd()){let D=await uF({cwd:u,onUnknown(u){console.warn("[@antfu/install-pkg] Unknown packageManager:",u)}});return D?.agent||null}async function uW(u,D={}){let e=D.packageManager||await uq(D.cwd)||"npm",[t]=e.split("@");Array.isArray(u)||(u=[u]);let i=("function"==typeof D.additionalArgs?D.additionalArgs(t,e):D.additionalArgs)||[];return D.preferOffline&&("yarn@berry"===e?i.unshift("--cached"):i.unshift("--prefer-offline")),"pnpm"===t&&(i.unshift("--prod=false"),C.existsSync(o.resolve(D.cwd??r.cwd(),"pnpm-workspace.yaml"))&&i.unshift("-w")),uL(t,["yarn"===t?"add":"install",D.dev?"-D":"",...i,...u].filter(Boolean),{nodeOptions:{stdio:D.silent?"ignore":"inherit",cwd:D.cwd},throwOnError:!0})}async function uz(u,D={}){let[e]=(D.packageManager||await uq(D.cwd)||"npm").split("@");Array.isArray(u)||(u=[u]);let t=D.additionalArgs||[];return"pnpm"===e&&C.existsSync(o.resolve(D.cwd??r.cwd(),"pnpm-workspace.yaml"))&&t.unshift("-w"),uL(e,["yarn"===e?"remove":"uninstall",D.dev?"-D":"",...t,...u].filter(Boolean),{nodeOptions:{stdio:D.silent?"ignore":"inherit",cwd:D.cwd},throwOnError:!0})}var uU=Object.freeze({__proto__:null,detectPackageManager:uq,installPackage:uW,uninstallPackage:uz});exports.a=function(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u},exports.b=uU,exports.g=function(u){if(Object.prototype.hasOwnProperty.call(u,"__esModule"))return u;var D=u.default;if("function"==typeof D){var e=function u(){var e=!1;try{e=this instanceof u}catch{}return e?Reflect.construct(D,arguments,this.constructor):D.apply(this,arguments)};e.prototype=D.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(u).forEach(function(D){var t=Object.getOwnPropertyDescriptor(u,D);Object.defineProperty(e,D,t.get?t:{enumerable:!0,get:function(){return u[D]}})}),e},exports.i=ue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-sukka",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.2",
|
|
4
4
|
"description": "Sukka's ESLint config",
|
|
5
5
|
"homepage": "https://github.com/SukkaW/eslint-config-sukka",
|
|
6
6
|
"repository": {
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
30
|
-
"@eslint/js": "^9.
|
|
31
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
32
|
-
"@typescript-eslint/parser": "^8.
|
|
30
|
+
"@eslint/js": "^9.36.0",
|
|
31
|
+
"@typescript-eslint/eslint-plugin": "^8.44.1",
|
|
32
|
+
"@typescript-eslint/parser": "^8.44.1",
|
|
33
33
|
"ci-info": "^4.3.0",
|
|
34
34
|
"defu": "^6.1.4",
|
|
35
35
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
@@ -42,23 +42,23 @@
|
|
|
42
42
|
"eslint-plugin-regexp": "^2.10.0",
|
|
43
43
|
"eslint-plugin-unused-imports": "^4.2.0",
|
|
44
44
|
"foxts": "^3.13.0",
|
|
45
|
-
"jsonc-eslint-parser": "^2.4.
|
|
45
|
+
"jsonc-eslint-parser": "^2.4.1",
|
|
46
46
|
"picocolors": "^1.1.1",
|
|
47
|
-
"typescript-eslint": "^8.
|
|
48
|
-
"@eslint-sukka/
|
|
49
|
-
"eslint-plugin-sukka": "7.1.
|
|
50
|
-
"@eslint-sukka/
|
|
47
|
+
"typescript-eslint": "^8.44.1",
|
|
48
|
+
"@eslint-sukka/shared": "7.1.2",
|
|
49
|
+
"eslint-plugin-sukka": "7.1.2",
|
|
50
|
+
"@eslint-sukka/eslint-plugin-stylistic": "7.1.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@antfu/install-pkg": "^1.1.0",
|
|
54
54
|
"@clack/prompts": "^0.11.0",
|
|
55
|
-
"@eslint/markdown": "^7.
|
|
55
|
+
"@eslint/markdown": "^7.3.0",
|
|
56
56
|
"eslint-config-flat-gitignore": "^2.1.0",
|
|
57
57
|
"eslint-plugin-antfu": "^3.1.1",
|
|
58
|
-
"@eslint-sukka/node": "7.1.
|
|
59
|
-
"@eslint-sukka/react": "7.1.
|
|
60
|
-
"@eslint-sukka/
|
|
61
|
-
"@eslint-sukka/
|
|
58
|
+
"@eslint-sukka/node": "7.1.2",
|
|
59
|
+
"@eslint-sukka/react": "7.1.2",
|
|
60
|
+
"@eslint-sukka/yaml": "7.1.2",
|
|
61
|
+
"@eslint-sukka/rollup-config": "7.1.2"
|
|
62
62
|
},
|
|
63
63
|
"scripts": {
|
|
64
64
|
"codegen": "SWC_NODE_IGNORE_DYNAMIC=true node -r @swc-node/register scripts/codegen.ts",
|
package/dist/vendor-47KOc287.cjs
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";let u,D;require("node:util");var e,t,r=require("node:process"),n=require("node:readline"),i=require("node:stream"),s=require("picocolors"),o=require("node:fs/promises"),F=require("node:path"),C=require("node:fs"),a=require("node:module"),E=require("child_process"),l=require("path"),c=require("process"),p=require("stream"),h=require("readline"),d="undefined"!=typeof document?document.currentScript:null,B=function(){if(t)return e;t=1;let u=`\x1b[`,D={to:(D,e)=>e?`${u}${e+1};${D+1}H`:`${u}${D+1}G`,move(D,e){let t="";return D<0?t+=`${u}${-D}D`:D>0&&(t+=`${u}${D}C`),e<0?t+=`${u}${-e}A`:e>0&&(t+=`${u}${e}B`),t},up:(D=1)=>`${u}${D}A`,down:(D=1)=>`${u}${D}B`,forward:(D=1)=>`${u}${D}C`,backward:(D=1)=>`${u}${D}D`,nextLine:(D=1)=>`${u}E`.repeat(D),prevLine:(D=1)=>`${u}F`.repeat(D),left:`${u}G`,hide:`${u}?25l`,show:`${u}?25h`,save:`\x1b7`,restore:`\x1b8`},r={screen:`${u}2J`,up:(D=1)=>`${u}1J`.repeat(D),down:(D=1)=>`${u}J`.repeat(D),line:`${u}2K`,lineEnd:`${u}K`,lineStart:`${u}1K`,lines(u){let e="";for(let t=0;t<u;t++)e+=this.line+(t<u-1?D.up():"");return u&&(e+=D.left),e}};return e={cursor:D,scroll:{up:(D=1)=>`${u}S`.repeat(D),down:(D=1)=>`${u}T`.repeat(D)},erase:r,beep:"\x07"}}();const f=function({onlyFirst:u=!1}={}){return RegExp("[\\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=><~]))",u?void 0:"g")}();function m(u){if("string"!=typeof u)throw TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(f,"")}function g(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var A={exports:{}},b={};function v(u){return u.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}A.exports=b,b.eastAsianWidth=function(u){var D=u.charCodeAt(0),e=2==u.length?u.charCodeAt(1):0,t=D;return 55296<=D&&D<=56319&&56320<=e&&e<=57343&&(D&=1023,e&=1023,t=(D<<10|e)+65536),12288==t||65281<=t&&t<=65376||65504<=t&&t<=65510?"F":8361==t||65377<=t&&t<=65470||65474<=t&&t<=65479||65482<=t&&t<=65487||65490<=t&&t<=65495||65498<=t&&t<=65500||65512<=t&&t<=65518?"H":4352<=t&&t<=4447||4515<=t&&t<=4519||4602<=t&&t<=4607||9001<=t&&t<=9002||11904<=t&&t<=11929||11931<=t&&t<=12019||12032<=t&&t<=12245||12272<=t&&t<=12283||12289<=t&&t<=12350||12353<=t&&t<=12438||12441<=t&&t<=12543||12549<=t&&t<=12589||12593<=t&&t<=12686||12688<=t&&t<=12730||12736<=t&&t<=12771||12784<=t&&t<=12830||12832<=t&&t<=12871||12880<=t&&t<=13054||13056<=t&&t<=19903||19968<=t&&t<=42124||42128<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||55216<=t&&t<=55238||55243<=t&&t<=55291||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65106||65108<=t&&t<=65126||65128<=t&&t<=65131||110592<=t&&t<=110593||127488<=t&&t<=127490||127504<=t&&t<=127546||127552<=t&&t<=127560||127568<=t&&t<=127569||131072<=t&&t<=194367||177984<=t&&t<=196605||196608<=t&&t<=262141?"W":32<=t&&t<=126||162<=t&&t<=163||165<=t&&t<=166||172==t||175==t||10214<=t&&t<=10221||10629<=t&&t<=10630?"Na":161==t||164==t||167<=t&&t<=168||170==t||173<=t&&t<=174||176<=t&&t<=180||182<=t&&t<=186||188<=t&&t<=191||198==t||208==t||215<=t&&t<=216||222<=t&&t<=225||230==t||232<=t&&t<=234||236<=t&&t<=237||240==t||242<=t&&t<=243||247<=t&&t<=250||252==t||254==t||257==t||273==t||275==t||283==t||294<=t&&t<=295||299==t||305<=t&&t<=307||312==t||319<=t&&t<=322||324==t||328<=t&&t<=331||333==t||338<=t&&t<=339||358<=t&&t<=359||363==t||462==t||464==t||466==t||468==t||470==t||472==t||474==t||476==t||593==t||609==t||708==t||711==t||713<=t&&t<=715||717==t||720==t||728<=t&&t<=731||733==t||735==t||768<=t&&t<=879||913<=t&&t<=929||931<=t&&t<=937||945<=t&&t<=961||963<=t&&t<=969||1025==t||1040<=t&&t<=1103||1105==t||8208==t||8211<=t&&t<=8214||8216<=t&&t<=8217||8220<=t&&t<=8221||8224<=t&&t<=8226||8228<=t&&t<=8231||8240==t||8242<=t&&t<=8243||8245==t||8251==t||8254==t||8308==t||8319==t||8321<=t&&t<=8324||8364==t||8451==t||8453==t||8457==t||8467==t||8470==t||8481<=t&&t<=8482||8486==t||8491==t||8531<=t&&t<=8532||8539<=t&&t<=8542||8544<=t&&t<=8555||8560<=t&&t<=8569||8585==t||8592<=t&&t<=8601||8632<=t&&t<=8633||8658==t||8660==t||8679==t||8704==t||8706<=t&&t<=8707||8711<=t&&t<=8712||8715==t||8719==t||8721==t||8725==t||8730==t||8733<=t&&t<=8736||8739==t||8741==t||8743<=t&&t<=8748||8750==t||8756<=t&&t<=8759||8764<=t&&t<=8765||8776==t||8780==t||8786==t||8800<=t&&t<=8801||8804<=t&&t<=8807||8810<=t&&t<=8811||8814<=t&&t<=8815||8834<=t&&t<=8835||8838<=t&&t<=8839||8853==t||8857==t||8869==t||8895==t||8978==t||9312<=t&&t<=9449||9451<=t&&t<=9547||9552<=t&&t<=9587||9600<=t&&t<=9615||9618<=t&&t<=9621||9632<=t&&t<=9633||9635<=t&&t<=9641||9650<=t&&t<=9651||9654<=t&&t<=9655||9660<=t&&t<=9661||9664<=t&&t<=9665||9670<=t&&t<=9672||9675==t||9678<=t&&t<=9681||9698<=t&&t<=9701||9711==t||9733<=t&&t<=9734||9737==t||9742<=t&&t<=9743||9748<=t&&t<=9749||9756==t||9758==t||9792==t||9794==t||9824<=t&&t<=9825||9827<=t&&t<=9829||9831<=t&&t<=9834||9836<=t&&t<=9837||9839==t||9886<=t&&t<=9887||9918<=t&&t<=9919||9924<=t&&t<=9933||9935<=t&&t<=9953||9955==t||9960<=t&&t<=9983||10045==t||10071==t||10102<=t&&t<=10111||11093<=t&&t<=11097||12872<=t&&t<=12879||57344<=t&&t<=63743||65024<=t&&t<=65039||65533==t||127232<=t&&t<=127242||127248<=t&&t<=127277||127280<=t&&t<=127337||127344<=t&&t<=127386||917760<=t&&t<=917999||983040<=t&&t<=1048573||1048576<=t&&t<=1114109?"A":"N"},b.characterLength=function(u){var D=this.eastAsianWidth(u);return"F"==D||"W"==D||"A"==D?2:1},b.length=function(u){for(var D=v(u),e=0,t=0;t<D.length;t++)e+=this.characterLength(D[t]);return e},b.slice=function(u,D,e){textLen=b.length(u),e=e||1,(D=D||0)<0&&(D=textLen+D),e<0&&(e=textLen+e);for(var t="",r=0,n=v(u),i=0;i<n.length;i++){var s=n[i],o=b.length(s);if(r>=D-(2==o))if(r+o<=e)t+=s;else break;r+=o}return t};const y=g(A.exports),w=g(function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3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\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uD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u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\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-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g});function _(u,D={}){if("string"!=typeof u||0===u.length||(D={ambiguousIsNarrow:!0,...D},0===(u=m(u)).length))return 0;u=u.replace(w()," ");let e=D.ambiguousIsNarrow?1:2,t=0;for(let D of u){let u=D.codePointAt(0);if(!(u<=31)&&(!(u>=127)||!(u<=159))&&(!(u>=768)||!(u<=879)))switch(y.eastAsianWidth(D)){case"F":case"W":t+=2;break;case"A":t+=e;break;default:t+=1}}return t}const x=(u=0)=>D=>`\x1b[${D+u}m`,$=(u=0)=>D=>`\x1b[${38+u};5;${D}m`,k=(u=0)=>(D,e,t)=>`\x1b[${38+u};2;${D};${e};${t}m`,O={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(O.modifier),[...Object.keys(O.color),...Object.keys(O.bgColor)];const j=function(){let u=new Map;for(let[D,e]of Object.entries(O)){for(let[D,t]of Object.entries(e))O[D]={open:`\x1b[${t[0]}m`,close:`\x1b[${t[1]}m`},e[D]=O[D],u.set(t[0],t[1]);Object.defineProperty(O,D,{value:e,enumerable:!1})}return Object.defineProperty(O,"codes",{value:u,enumerable:!1}),O.color.close="\x1b[39m",O.bgColor.close="\x1b[49m",O.color.ansi=x(),O.color.ansi256=$(),O.color.ansi16m=k(),O.bgColor.ansi=x(10),O.bgColor.ansi256=$(10),O.bgColor.ansi16m=k(10),Object.defineProperties(O,{rgbToAnsi256:{value:(u,D,e)=>u===D&&D===e?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(D/255*5)+Math.round(e/255*5),enumerable:!1},hexToRgb:{value:u=>{let D=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!D)return[0,0,0];let[e]=D;3===e.length&&(e=[...e].map(u=>u+u).join(""));let t=Number.parseInt(e,16);return[t>>16&255,t>>8&255,255&t]},enumerable:!1},hexToAnsi256:{value:u=>O.rgbToAnsi256(...O.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value:u=>{let D,e,t;if(u<8)return 30+u;if(u<16)return 90+(u-8);if(u>=232)e=D=((u-232)*10+8)/255,t=D;else{let r=(u-=16)%36;D=Math.floor(u/36)/5,e=Math.floor(r/6)/5,t=r%6/5}let r=2*Math.max(D,e,t);if(0===r)return 30;let n=30+(Math.round(t)<<2|Math.round(e)<<1|Math.round(D));return 2===r&&(n+=60),n},enumerable:!1},rgbToAnsi:{value:(u,D,e)=>O.ansi256ToAnsi(O.rgbToAnsi256(u,D,e)),enumerable:!1},hexToAnsi:{value:u=>O.ansi256ToAnsi(O.hexToAnsi256(u)),enumerable:!1}}),O}(),T=new Set(["\x1b","\x9b"]),S="]8;;",M=u=>`${T.values().next().value}[${u}m`,P=u=>`${T.values().next().value}${S}${u}\x07`,N=(u,D,e)=>{let t=[...D],r=!1,n=!1,i=_(m(u[u.length-1]));for(let[D,s]of t.entries()){let o=_(s);if(i+o<=e?u[u.length-1]+=s:(u.push(s),i=0),T.has(s)&&(r=!0,n=t.slice(D+1).join("").startsWith(S)),r){n?"\x07"===s&&(r=!1,n=!1):"m"===s&&(r=!1);continue}(i+=o)===e&&D<t.length-1&&(u.push(""),i=0)}!i&&u[u.length-1].length>0&&u.length>1&&(u[u.length-2]+=u.pop())};function R(u,D,e){return String(u).normalize().replace(/\r\n/g,`
|
|
2
|
-
`).split(`
|
|
3
|
-
`).map(u=>((u,D,e={})=>{if(!1!==e.trim&&""===u.trim())return"";let t="",r,n,i=u.split(" ").map(u=>_(u)),s=[""];for(let[t,r]of u.split(" ").entries()){!1!==e.trim&&(s[s.length-1]=s[s.length-1].trimStart());let u=_(s[s.length-1]);if(0!==t&&(u>=D&&(!1===e.wordWrap||!1===e.trim)&&(s.push(""),u=0),(u>0||!1===e.trim)&&(s[s.length-1]+=" ",u++)),e.hard&&i[t]>D){let e=D-u,n=1+Math.floor((i[t]-e-1)/D);Math.floor((i[t]-1)/D)<n&&s.push(""),N(s,r,D);continue}if(u+i[t]>D&&u>0&&i[t]>0){if(!1===e.wordWrap&&u<D){N(s,r,D);continue}s.push("")}if(u+i[t]>D&&!1===e.wordWrap){N(s,r,D);continue}s[s.length-1]+=r}!1!==e.trim&&(s=s.map(u=>(u=>{let D=u.split(" "),e=D.length;for(;e>0&&!(_(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")})(u)));let o=[...s.join(`
|
|
4
|
-
`)];for(let[u,D]of o.entries()){if(t+=D,T.has(D)){let{groups:D}=RegExp(`(?:\\[(?<code>\\d+)m|\\${S}(?<uri>.*)\x07)`).exec(o.slice(u).join(""))||{groups:{}};if(void 0!==D.code){let u=Number.parseFloat(D.code);r=39===u?void 0:u}else void 0!==D.uri&&(n=0===D.uri.length?void 0:D.uri)}let e=j.codes.get(Number(r));o[u+1]===`
|
|
5
|
-
`?(n&&(t+=P("")),r&&e&&(t+=M(e))):D===`
|
|
6
|
-
`&&(r&&e&&(t+=M(r)),n&&(t+=P(n)))}return t})(u,D,e)).join(`
|
|
7
|
-
`)}const L={actions:new Set(["up","down","left","right","space","enter","cancel"]),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["\x03","cancel"],["escape","cancel"]])};globalThis.process.platform.startsWith("win");const I=Symbol("clack:cancel");function q(u,D){u.isTTY&&u.setRawMode(D)}var W=Object.defineProperty,z=(u,D,e)=>{let t;return(t="symbol"!=typeof D?D+"":D)in u?W(u,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[t]=e,e};let U=class{constructor(u,D=!0){z(this,"input"),z(this,"output"),z(this,"_abortSignal"),z(this,"rl"),z(this,"opts"),z(this,"_render"),z(this,"_track",!1),z(this,"_prevFrame",""),z(this,"_subscribers",new Map),z(this,"_cursor",0),z(this,"state","initial"),z(this,"error",""),z(this,"value");let{input:e=r.stdin,output:t=r.stdout,render:n,signal:i,...s}=u;this.opts=s,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=n.bind(this),this._track=D,this._abortSignal=i,this.input=e,this.output=t}unsubscribe(){this._subscribers.clear()}setSubscriber(u,D){let e=this._subscribers.get(u)??[];e.push(D),this._subscribers.set(u,e)}on(u,D){this.setSubscriber(u,{cb:D})}once(u,D){this.setSubscriber(u,{cb:D,once:!0})}emit(u,...D){let e=this._subscribers.get(u)??[],t=[];for(let u of e)u.cb(...D),u.once&&t.push(()=>e.splice(e.indexOf(u),1));for(let u of t)u()}prompt(){return new Promise((u,D)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),u(I);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}let e=new i.Writable;e._write=(u,D,e)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),e()},this.input.pipe(e),this.rl=n.createInterface({input:this.input,output:e,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),n.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),void 0!==this.opts.initialValue&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),q(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(B.cursor.show),this.output.off("resize",this.render),q(this.input,!1),u(this.value)}),this.once("cancel",()=>{this.output.write(B.cursor.show),this.output.off("resize",this.render),q(this.input,!1),u(I)})})}onKeypress(u,D){if("error"===this.state&&(this.state="active"),D?.name&&(!this._track&&L.aliases.has(D.name)&&this.emit("cursor",L.aliases.get(D.name)),L.actions.has(D.name)&&this.emit("cursor",D.name)),u&&("y"===u.toLowerCase()||"n"===u.toLowerCase())&&this.emit("confirm","y"===u.toLowerCase())," "===u&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),u&&this.emit("key",u.toLowerCase()),D?.name==="return"){if(this.opts.validate){let u=this.opts.validate(this.value);u&&(this.error=u instanceof Error?u.message:u,this.state="error",this.rl?.write(this.value))}"error"!==this.state&&(this.state="submit")}(function u(D,e){if("string"==typeof D)return L.aliases.get(D)===e;for(let t of D)if(void 0!==t&&u(t,e))return!0;return!1})([u,D?.name,D?.sequence],"cancel")&&(this.state="cancel"),("submit"===this.state||"cancel"===this.state)&&this.emit("finalize"),this.render(),("submit"===this.state||"cancel"===this.state)&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
|
|
8
|
-
`),q(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let u=R(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
|
|
9
|
-
`).length-1;this.output.write(B.cursor.move(-999,-1*u))}render(){let u=R(this._render(this)??"",process.stdout.columns,{hard:!0});if(u!==this._prevFrame){if("initial"===this.state)this.output.write(B.cursor.hide);else{let D=function(u,D){if(u===D)return;let e=u.split(`
|
|
10
|
-
`),t=D.split(`
|
|
11
|
-
`),r=[];for(let u=0;u<Math.max(e.length,t.length);u++)e[u]!==t[u]&&r.push(u);return r}(this._prevFrame,u);if(this.restoreCursor(),D&&D?.length===1){let e=D[0];this.output.write(B.cursor.move(0,e)),this.output.write(B.erase.lines(1));let t=u.split(`
|
|
12
|
-
`);this.output.write(t[e]),this._prevFrame=u,this.output.write(B.cursor.move(0,t.length-e-1));return}if(D&&D?.length>1){let e=D[0];this.output.write(B.cursor.move(0,e)),this.output.write(B.erase.down());let t=u.split(`
|
|
13
|
-
`).slice(e);this.output.write(t.join(`
|
|
14
|
-
`)),this._prevFrame=u;return}this.output.write(B.erase.down())}this.output.write(u),"initial"===this.state&&(this.state="active"),this._prevFrame=u}}};class G extends U{get cursor(){return+!this.value}get _value(){return 0===this.cursor}constructor(u){super(u,!1),this.value=!!u.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",u=>{this.output.write(B.cursor.move(0,-1)),this.value=u,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}const H="win32"!==r.platform?"linux"!==r.env.TERM:!!r.env.CI||!!r.env.WT_SESSION||!!r.env.TERMINUS_SUBLIME||"{cmd::Cmder}"===r.env.ConEmuTask||"Terminus-Sublime"===r.env.TERM_PROGRAM||"vscode"===r.env.TERM_PROGRAM||"xterm-256color"===r.env.TERM||"alacritty"===r.env.TERM||"JetBrains-JediTerm"===r.env.TERMINAL_EMULATOR,K=(u,D)=>H?u:D,J=K("◆","*"),V=K("■","x"),Y=K("▲","x"),Z=K("◇","o"),X=K("│","|"),Q=K("└","—"),uu=K("●",">"),uD=K("○"," ");s.gray(X);var ue=Object.freeze({__proto__:null,confirm:u=>{let D=u.active??"Yes",e=u.inactive??"No";return new G({active:D,inactive:e,initialValue:u.initialValue??!0,render(){let t=`${s.gray(X)}
|
|
15
|
-
${(u=>{switch(u){case"initial":case"active":return s.cyan(J);case"cancel":return s.red(V);case"error":return s.yellow(Y);case"submit":return s.green(Z)}})(this.state)} ${u.message}
|
|
16
|
-
`,r=this.value?D:e;switch(this.state){case"submit":return`${t}${s.gray(X)} ${s.dim(r)}`;case"cancel":return`${t}${s.gray(X)} ${s.strikethrough(s.dim(r))}
|
|
17
|
-
${s.gray(X)}`;default:return`${t}${s.cyan(X)} ${this.value?`${s.green(uu)} ${D}`:`${s.dim(uD)} ${s.dim(D)}`} ${s.dim("/")} ${this.value?`${s.dim(uD)} ${s.dim(e)}`:`${s.green(uu)} ${e}`}
|
|
18
|
-
${s.cyan(Q)}
|
|
19
|
-
`}}}).prompt()}});const ut=["npm","yarn","yarn@berry","pnpm","pnpm@6","bun","deno"],ur={"bun.lock":"bun","bun.lockb":"bun","deno.lock":"deno","pnpm-lock.yaml":"pnpm","pnpm-workspace.yaml":"pnpm","yarn.lock":"yarn","package-lock.json":"npm","npm-shrinkwrap.json":"npm"},un={"node_modules/.deno/":"deno","node_modules/.pnpm/":"pnpm","node_modules/.yarn-state.yml":"yarn","node_modules/.yarn_integrity":"yarn","node_modules/.package-lock.json":"npm",".pnp.cjs":"yarn",".pnp.js":"yarn","bun.lock":"bun","bun.lockb":"bun"};async function ui(u,D){try{let e=await o.stat(u);return"file"===D?e.isFile():e.isDirectory()}catch{return!1}}async function us(u,D){return u&&ui(u,"file")?await uF(u,D):null}async function uo(u={}){let D,{cwd:e,strategies:t=["lockfile","packageManager-field","devEngines-field"],onUnknown:n}=u;if("string"==typeof u.stopDir){let e=F.resolve(u.stopDir);D=u=>u===e}else D=u.stopDir;for(let u of function*(u=r.cwd()){let D=F.resolve(u),{root:e}=F.parse(D);for(;D&&D!==e;)yield D,D=F.dirname(D)}(e)){for(let D of t)switch(D){case"lockfile":for(let D of Object.keys(ur))if(await ui(F.join(u,D),"file")){let e=ur[D],t=await us(F.join(u,"package.json"),n);if(t)return t;return{name:e,agent:e}}break;case"packageManager-field":case"devEngines-field":{let D=await us(F.join(u,"package.json"),n);if(D)return D;break}case"install-metadata":for(let D of Object.keys(un)){let e=D.endsWith("/")?"dir":"file";if(await ui(F.join(u,D),e)){let u=un[D],e="yarn"===u?D.endsWith(".yarn_integrity")?"yarn":"yarn@berry":u;return{name:u,agent:e}}}}if(D?.(u))break}return null}async function uF(u,D){try{let e,t=JSON.parse(await o.readFile(u,"utf8")),r=function(u){let D=u=>u?.match(/\d+(\.\d+){0,2}/)?.[0]??u;if("string"==typeof u.packageManager){let[e,t]=u.packageManager.replace(/^\^/,"").split("@");return{name:e,ver:D(t)}}if("string"==typeof u.devEngines?.packageManager?.name)return{name:u.devEngines.packageManager.name,ver:D(u.devEngines.packageManager.version)}}(t);if(r){let u=r.name,n=r.ver,i=n;if("yarn"===u&&n&&Number.parseInt(n)>1)return e="yarn@berry",i="berry",{name:u,agent:e,version:i};if("pnpm"===u&&n&&7>Number.parseInt(n))return e="pnpm@6",{name:u,agent:e,version:i};if(ut.includes(u))return e=u,{name:u,agent:e,version:i};else return D?.(t.packageManager)??null}}catch{}return null}const uC=a.createRequire("undefined"==typeof document?require("url").pathToFileURL(__filename).href:d&&"SCRIPT"===d.tagName.toUpperCase()&&d.src||new URL("vendor-47KOc287.cjs",document.baseURI).href);var ua=Object.create,uE=Object.defineProperty,ul=Object.getOwnPropertyDescriptor,uc=Object.getOwnPropertyNames,up=Object.getPrototypeOf,uh=Object.prototype.hasOwnProperty,ud=(u=function(u){if("u">typeof uC)return uC.apply(this,arguments);throw Error('Dynamic require of "'+u+'" is not supported')},"u">typeof uC?uC:"u">typeof Proxy?new Proxy(u,{get:(u,D)=>("u">typeof uC?uC:u)[D]}):u),uB=(u,D)=>()=>(D||u((D={exports:{}}).exports,D),D.exports),uf=uB((u,D)=>{D.exports=r,r.sync=function(u,D){return t(e.statSync(u),u,D)};var e=ud("fs");function t(u,D,e){return(!!u.isSymbolicLink()||!!u.isFile())&&function(u,D){var e=void 0!==D.pathExt?D.pathExt:process.env.PATHEXT;if(!e||-1!==(e=e.split(";")).indexOf(""))return!0;for(var t=0;t<e.length;t++){var r=e[t].toLowerCase();if(r&&u.substr(-r.length).toLowerCase()===r)return!0}return!1}(D,e)}function r(u,D,r){e.stat(u,function(e,n){r(e,!e&&t(n,u,D))})}}),um=uB((u,D)=>{D.exports=t,t.sync=function(u,D){return r(e.statSync(u),D)};var e=ud("fs");function t(u,D,t){e.stat(u,function(u,e){t(u,!u&&r(e,D))})}function r(u,D){var e,t,r,n,i,s,o,F,C;return u.isFile()&&(e=u,t=D,r=e.mode,n=e.uid,i=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),o=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),F=parseInt("100",8),C=parseInt("010",8),r&parseInt("001",8)||r&C&&i===o||r&F&&n===s||r&(F|C)&&0===s)}}),ug=uB((u,D)=>{var e;function t(u,D,r){if("function"==typeof D&&(r=D,D={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(e,r){t(u,D||{},function(u,D){u?r(u):e(D)})})}e(u,D||{},function(u,e){u&&("EACCES"===u.code||D&&D.ignoreErrors)&&(u=null,e=!1),r(u,e)})}ud("fs"),e="win32"===process.platform||global.TESTING_WINDOWS?uf():um(),D.exports=t,t.sync=function(u,D){try{return e.sync(u,D||{})}catch(u){if(D&&D.ignoreErrors||"EACCES"===u.code)return!1;throw u}}}),uA=uB((u,D)=>{var e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,t=ud("path"),r=e?";":":",n=ug(),i=u=>Object.assign(Error(`not found: ${u}`),{code:"ENOENT"}),s=(u,D)=>{let t=D.colon||r,n=u.match(/\//)||e&&u.match(/\\/)?[""]:[...e?[process.cwd()]:[],...(D.path||process.env.PATH||"").split(t)],i=e?D.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=e?i.split(t):[""];return e&&-1!==u.indexOf(".")&&""!==s[0]&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:i}},o=(u,D,e)=>{"function"==typeof D&&(e=D,D={}),D||(D={});let{pathEnv:r,pathExt:o,pathExtExe:F}=s(u,D),C=[],a=e=>new Promise((n,s)=>{if(e===r.length)return D.all&&C.length?n(C):s(i(u));let o=r[e],F=/^".*"$/.test(o)?o.slice(1,-1):o,a=t.join(F,u);n(E(!F&&/^\.[\\\/]/.test(u)?u.slice(0,2)+a:a,e,0))}),E=(u,e,t)=>new Promise((r,i)=>{if(t===o.length)return r(a(e+1));let s=o[t];n(u+s,{pathExt:F},(n,i)=>{if(!n&&i)if(!D.all)return r(u+s);else C.push(u+s);return r(E(u,e,t+1))})});return e?a(0).then(u=>e(null,u),e):a(0)};D.exports=o,o.sync=(u,D)=>{let{pathEnv:e,pathExt:r,pathExtExe:o}=s(u,D=D||{}),F=[];for(let i=0;i<e.length;i++){let s=e[i],C=/^".*"$/.test(s)?s.slice(1,-1):s,a=t.join(C,u),E=!C&&/^\.[\\\/]/.test(u)?u.slice(0,2)+a:a;for(let u=0;u<r.length;u++){let e=E+r[u];try{if(n.sync(e,{pathExt:o}))if(!D.all)return e;else F.push(e)}catch{}}}if(D.all&&F.length)return F;if(D.nothrow)return null;throw i(u)}}),ub=uB((u,D)=>{var e=(u={})=>{let D=u.env||process.env;return"win32"!==(u.platform||process.platform)?"PATH":Object.keys(D).reverse().find(u=>"PATH"===u.toUpperCase())||"Path"};D.exports=e,D.exports.default=e}),uv=uB((u,D)=>{var e=ud("path"),t=uA(),r=ub();function n(u,D){let n,i=u.options.env||process.env,s=process.cwd(),o=null!=u.options.cwd,F=o&&void 0!==process.chdir&&!process.chdir.disabled;if(F)try{process.chdir(u.options.cwd)}catch{}try{n=t.sync(u.command,{path:i[r({env:i})],pathExt:D?e.delimiter:void 0})}catch{}finally{F&&process.chdir(s)}return n&&(n=e.resolve(o?u.options.cwd:"",n)),n}D.exports=function(u){return n(u)||n(u,!0)}}),uy=uB((u,D)=>{var e=/([()\][%!^"`<>&|;, *?])/g;D.exports.command=function(u){return u.replace(e,"^$1")},D.exports.argument=function(u,D){return u=(u=(u=`${u}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"),u=(u=`"${u}"`).replace(e,"^$1"),D&&(u=u.replace(e,"^$1")),u}}),uw=uB((u,D)=>{D.exports=/^#!(.*)/}),u_=uB((u,D)=>{var e=uw();D.exports=(u="")=>{let D=u.match(e);if(!D)return null;let[t,r]=D[0].replace(/#! ?/,"").split(" "),n=t.split("/").pop();return"env"===n?r:r?`${n} ${r}`:n}}),ux=uB((u,D)=>{var e=ud("fs"),t=u_();D.exports=function(u){let D=Buffer.alloc(150),r;try{r=e.openSync(u,"r"),e.readSync(r,D,0,150,0),e.closeSync(r)}catch{}return t(D.toString())}}),u$=uB((u,D)=>{var e=ud("path"),t=uv(),r=uy(),n=ux(),i="win32"===process.platform,s=/\.(?:com|exe)$/i,o=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;D.exports=function(u,D,F){D&&!Array.isArray(D)&&(F=D,D=null);let C={command:u,args:D=D?D.slice(0):[],options:F=Object.assign({},F),file:void 0,original:{command:u,args:D}};return F.shell?C:function(u){let D;if(!i)return u;let F=(u.file=t(u),(D=u.file&&n(u.file))?(u.args.unshift(u.file),u.command=D,t(u)):u.file),C=!s.test(F);if(u.options.forceShell||C){let D=o.test(F);u.command=e.normalize(u.command),u.command=r.command(u.command),u.args=u.args.map(u=>r.argument(u,D));let t=[u.command].concat(u.args).join(" ");u.args=["/d","/s","/c",`"${t}"`],u.command=process.env.comspec||"cmd.exe",u.options.windowsVerbatimArguments=!0}return u}(C)}}),uk=uB((u,D)=>{var e="win32"===process.platform;function t(u,D){return Object.assign(Error(`${D} ${u.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${D} ${u.command}`,path:u.command,spawnargs:u.args})}function r(u,D){return e&&1===u&&!D.file?t(D.original,"spawn"):null}D.exports={hookChildProcess:function(u,D){if(!e)return;let t=u.emit;u.emit=function(e,n){if("exit"===e){let e=r(n,D);if(e)return t.call(u,"error",e)}return t.apply(u,arguments)}},verifyENOENT:r,verifyENOENTSync:function(u,D){return e&&1===u&&!D.file?t(D.original,"spawnSync"):null},notFoundError:t}}),uO=uB((u,D)=>{var e=ud("child_process"),t=u$(),r=uk();function n(u,D,n){let i=t(u,D,n),s=e.spawn(i.command,i.args,i.options);return r.hookChildProcess(s,i),s}D.exports=n,D.exports.spawn=n,D.exports.sync=function(u,D,n){let i=t(u,D,n),s=e.spawnSync(i.command,i.args,i.options);return s.error=s.error||r.verifyENOENTSync(s.status,i),s},D.exports._parse=t,D.exports._enoent=r}),uj=/^path$/i,uT={key:"PATH",value:""},uS=((u,D,e,t)=>{if(D&&"object"==typeof D||"function"==typeof D)for(let r of uc(D))uh.call(u,r)||r===e||uE(u,r,{get:()=>D[r],enumerable:!(t=ul(D,r))||t.enumerable});return u})(uE(null!=(D=uO())?ua(up(D)):{},"default",{value:D,enumerable:!0}),D),uM=class extends Error{result;output;get exitCode(){if(null!==this.result.exitCode)return this.result.exitCode}constructor(u,D){super(`Process exited with non-zero status (${u.exitCode})`),this.result=u,this.output=D}},uP={timeout:void 0,persist:!1},uN={windowsHide:!0},uR=class{_process;_aborted=!1;_options;_command;_args;_resolveClose;_processClosed;_thrownError;get process(){return this._process}get pid(){return this._process?.pid}get exitCode(){if(this._process&&null!==this._process.exitCode)return this._process.exitCode}constructor(u,D,e){this._options={...uP,...e},this._command=u,this._args=D??[],this._processClosed=new Promise(u=>{this._resolveClose=u})}kill(u){return this._process?.kill(u)===!0}get aborted(){return this._aborted}get killed(){return this._process?.killed===!0}pipe(u,D,e){return uI(u,D,{...e,stdin:this})}async *[Symbol.asyncIterator](){let u=this._process;if(!u)return;let D=[];this._streamErr&&D.push(this._streamErr),this._streamOut&&D.push(this._streamOut);let e=(u=>{let D=u.length,e=new p.PassThrough,t=()=>{0==--D&&e.emit("end")};for(let D of u)D.pipe(e,{end:!1}),D.on("end",t);return e})(D);for await(let u of h.createInterface({input:e}))yield u.toString();if(await this._processClosed,u.removeAllListeners(),this._thrownError)throw this._thrownError;if(this._options?.throwOnError&&0!==this.exitCode&&void 0!==this.exitCode)throw new uM(this)}async _waitForOutput(){let u=this._process;if(!u)throw Error("No process was started");let D="",e="";if(this._streamOut)for await(let u of this._streamOut)e+=u.toString();if(this._streamErr)for await(let u of this._streamErr)D+=u.toString();if(await this._processClosed,this._options?.stdin&&await this._options.stdin,u.removeAllListeners(),this._thrownError)throw this._thrownError;let t={stderr:D,stdout:e,exitCode:this.exitCode};if(this._options.throwOnError&&0!==this.exitCode&&void 0!==this.exitCode)throw new uM(this,t);return t}then(u,D){return this._waitForOutput().then(u,D)}_streamOut;_streamErr;spawn(){var u,D,e;let t,r,n=c.cwd(),i=this._options,s={...uN,...i.nodeOptions},o=[];this._resetState(),void 0!==i.timeout&&o.push(AbortSignal.timeout(i.timeout)),void 0!==i.signal&&o.push(i.signal),!0===i.persist&&(s.detached=!0),o.length>0&&(s.signal=function(u){let D=new AbortController;for(let e of u){if(e.aborted)return D.abort(),e;let u=()=>{D.abort(e.reason)};e.addEventListener("abort",u,{signal:D.signal})}return D.signal}(o)),u=s.env,r=function(u,D){let e=D.value.split(l.delimiter),t=u,r;do e.push(l.resolve(t,"node_modules",".bin")),r=t,t=l.dirname(t);while(t!==r);return{key:D.key,value:e.join(l.delimiter)}}(n,function(u){for(let D in u){if(!Object.prototype.hasOwnProperty.call(u,D)||!uj.test(D))continue;let e=u[D];return e?{key:D,value:e}:uT}return uT}(t={...process.env,...u})),t[r.key]=r.value,s.env=t;let{command:F,args:C}=(D=this._command,e=this._args,{command:l.normalize(D),args:e??[]}),a=(0,uS._parse)(F,C,s),p=E.spawn(a.command,a.args,a.options);if(p.stderr&&(this._streamErr=p.stderr),p.stdout&&(this._streamOut=p.stdout),this._process=p,p.once("error",this._onError),p.once("close",this._onClose),void 0!==i.stdin&&p.stdin&&i.stdin.process){let{stdout:u}=i.stdin.process;u&&u.pipe(p.stdin)}}_resetState(){this._aborted=!1,this._processClosed=new Promise(u=>{this._resolveClose=u}),this._thrownError=void 0}_onError=u=>{if("AbortError"===u.name&&(!(u.cause instanceof Error)||"TimeoutError"!==u.cause.name)){this._aborted=!0;return}this._thrownError=u};_onClose=()=>{this._resolveClose&&this._resolveClose()}},uL=(u,D,e)=>{let t=new uR(u,D,e);return t.spawn(),t},uI=uL;async function uq(u=r.cwd()){let D=await uo({cwd:u,onUnknown(u){console.warn("[@antfu/install-pkg] Unknown packageManager:",u)}});return D?.agent||null}async function uW(u,D={}){let e=D.packageManager||await uq(D.cwd)||"npm",[t]=e.split("@");Array.isArray(u)||(u=[u]);let n=("function"==typeof D.additionalArgs?D.additionalArgs(t,e):D.additionalArgs)||[];return D.preferOffline&&("yarn@berry"===e?n.unshift("--cached"):n.unshift("--prefer-offline")),"pnpm"===t&&(n.unshift("--prod=false"),C.existsSync(F.resolve(D.cwd??r.cwd(),"pnpm-workspace.yaml"))&&n.unshift("-w")),uL(t,["yarn"===t?"add":"install",D.dev?"-D":"",...n,...u].filter(Boolean),{nodeOptions:{stdio:D.silent?"ignore":"inherit",cwd:D.cwd},throwOnError:!0})}async function uz(u,D={}){let[e]=(D.packageManager||await uq(D.cwd)||"npm").split("@");Array.isArray(u)||(u=[u]);let t=D.additionalArgs||[];return"pnpm"===e&&C.existsSync(F.resolve(D.cwd??r.cwd(),"pnpm-workspace.yaml"))&&t.unshift("-w"),uL(e,["yarn"===e?"remove":"uninstall",D.dev?"-D":"",...t,...u].filter(Boolean),{nodeOptions:{stdio:D.silent?"ignore":"inherit",cwd:D.cwd},throwOnError:!0})}var uU=Object.freeze({__proto__:null,detectPackageManager:uq,installPackage:uW,uninstallPackage:uz});exports.a=function(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u},exports.b=uU,exports.g=function(u){if(Object.prototype.hasOwnProperty.call(u,"__esModule"))return u;var D=u.default;if("function"==typeof D){var e=function u(){var e=!1;try{e=this instanceof u}catch{}return e?Reflect.construct(D,arguments,this.constructor):D.apply(this,arguments)};e.prototype=D.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(u).forEach(function(D){var t=Object.getOwnPropertyDescriptor(u,D);Object.defineProperty(e,D,t.get?t:{enumerable:!0,get:function(){return u[D]}})}),e},exports.i=ue;
|