eslint-config-sukka 6.1.11-beta.1 → 6.2.0

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.
@@ -0,0 +1,19 @@
1
+ "use strict";let D,u;var e=require("node:process"),t=require("node:readline"),r=require("node:tty"),F=require("picocolors"),s=require("process"),i=require("node:fs"),n=require("node:fs/promises"),o=require("node:path"),C=require("fs"),E=require("path"),a=require("node:module"),l=require("child_process"),c=require("stream"),h=require("readline"),p="undefined"!=typeof document?document.currentScript:null;const B=`\x1b[`,d={to:(D,u)=>u?`${B}${u+1};${D+1}H`:`${B}${D+1}G`,move(D,u){let e="";return D<0?e+=`${B}${-D}D`:D>0&&(e+=`${B}${D}C`),u<0?e+=`${B}${-u}A`:u>0&&(e+=`${B}${u}B`),e},up:(D=1)=>`${B}${D}A`,down:(D=1)=>`${B}${D}B`,forward:(D=1)=>`${B}${D}C`,backward:(D=1)=>`${B}${D}D`,nextLine:(D=1)=>`${B}E`.repeat(D),prevLine:(D=1)=>`${B}F`.repeat(D),left:`${B}G`,hide:`${B}?25l`,show:`${B}?25h`,save:`\x1b7`,restore:`\x1b8`},f={screen:`${B}2J`,up:(D=1)=>`${B}1J`.repeat(D),down:(D=1)=>`${B}J`.repeat(D),line:`${B}2K`,lineEnd:`${B}K`,lineStart:`${B}1K`,lines(D){let u="";for(let e=0;e<D;e++)u+=this.line+(e<D-1?d.up():"");return D&&(u+=d.left),u}};var m={cursor:d,erase:f};function A(D){if("string"!=typeof D)throw TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(function({onlyFirst:D=!1}={}){return RegExp("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))",D?void 0:"g")}(),"")}function g(D){return D&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D}var b={exports:{}};!function(D){var u={};function e(D){return D.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}D.exports=u,u.eastAsianWidth=function(D){var u=D.charCodeAt(0),e=2==D.length?D.charCodeAt(1):0,t=u;return 55296<=u&&u<=56319&&56320<=e&&e<=57343&&(u&=1023,e&=1023,t=(u<<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"},u.characterLength=function(D){var u=this.eastAsianWidth(D);return"F"==u||"W"==u||"A"==u?2:1},u.length=function(D){for(var u=e(D),t=0,r=0;r<u.length;r++)t+=this.characterLength(u[r]);return t},u.slice=function(D,t,r){textLen=u.length(D),r=r||1,(t=t||0)<0&&(t=textLen+t),r<0&&(r=textLen+r);for(var F="",s=0,i=e(D),n=0;n<i.length;n++){var o=i[n],C=u.length(o);if(s>=t-(2==C?1:0)){if(s+C<=r)F+=o;else break}s+=C}return F}}(b);const v=g(b.exports),y=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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-\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(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uD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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 w(D,u={}){if("string"!=typeof D||0===D.length||(u={ambiguousIsNarrow:!0,...u},0===(D=A(D)).length))return 0;D=D.replace(y()," ");let e=u.ambiguousIsNarrow?1:2,t=0;for(let u of D){let D=u.codePointAt(0);if(!(D<=31)&&(!(D>=127)||!(D<=159))&&(!(D>=768)||!(D<=879)))switch(v.eastAsianWidth(u)){case"F":case"W":t+=2;break;case"A":t+=e;break;default:t+=1}}return t}const _=(D=0)=>u=>`\x1b[${u+D}m`,x=(D=0)=>u=>`\x1b[${38+D};5;${u}m`,$=(D=0)=>(u,e,t)=>`\x1b[${38+D};2;${u};${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 k=function(){let D=new Map;for(let[u,e]of Object.entries(O)){for(let[u,t]of Object.entries(e))O[u]={open:`\x1b[${t[0]}m`,close:`\x1b[${t[1]}m`},e[u]=O[u],D.set(t[0],t[1]);Object.defineProperty(O,u,{value:e,enumerable:!1})}return Object.defineProperty(O,"codes",{value:D,enumerable:!1}),O.color.close="\x1b[39m",O.bgColor.close="\x1b[49m",O.color.ansi=_(),O.color.ansi256=x(),O.color.ansi16m=$(),O.bgColor.ansi=_(10),O.bgColor.ansi256=x(10),O.bgColor.ansi16m=$(10),Object.defineProperties(O,{rgbToAnsi256:{value:(D,u,e)=>D===u&&u===e?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(e/255*5),enumerable:!1},hexToRgb:{value:D=>{let u=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!u)return[0,0,0];let[e]=u;3===e.length&&(e=[...e].map(D=>D+D).join(""));let t=Number.parseInt(e,16);return[t>>16&255,t>>8&255,255&t]},enumerable:!1},hexToAnsi256:{value:D=>O.rgbToAnsi256(...O.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value:D=>{let u,e,t;if(D<8)return 30+D;if(D<16)return 90+(D-8);if(D>=232)e=u=((D-232)*10+8)/255,t=u;else{let r=(D-=16)%36;u=Math.floor(D/36)/5,e=Math.floor(r/6)/5,t=r%6/5}let r=2*Math.max(u,e,t);if(0===r)return 30;let F=30+(Math.round(t)<<2|Math.round(e)<<1|Math.round(u));return 2===r&&(F+=60),F},enumerable:!1},rgbToAnsi:{value:(D,u,e)=>O.ansi256ToAnsi(O.rgbToAnsi256(D,u,e)),enumerable:!1},hexToAnsi:{value:D=>O.ansi256ToAnsi(O.hexToAnsi256(D)),enumerable:!1}}),O}(),T=new Set(["\x1b","\x9b"]),j="]8;;",S=D=>`${T.values().next().value}[${D}m`,M=D=>`${T.values().next().value}${j}${D}\x07`,P=D=>D.split(" ").map(D=>w(D)),N=(D,u,e)=>{let t=[...u],r=!1,F=!1,s=w(A(D[D.length-1]));for(let[u,i]of t.entries()){let n=w(i);if(s+n<=e?D[D.length-1]+=i:(D.push(i),s=0),T.has(i)&&(r=!0,F=t.slice(u+1).join("").startsWith(j)),r){F?"\x07"===i&&(r=!1,F=!1):"m"===i&&(r=!1);continue}(s+=n)===e&&u<t.length-1&&(D.push(""),s=0)}!s&&D[D.length-1].length>0&&D.length>1&&(D[D.length-2]+=D.pop())},R=D=>{let u=D.split(" "),e=u.length;for(;e>0&&!(w(u[e-1])>0);)e--;return e===u.length?D:u.slice(0,e).join(" ")+u.slice(e).join("")},L=(D,u,e={})=>{if(!1!==e.trim&&""===D.trim())return"";let t="",r,F,s=P(D),i=[""];for(let[t,r]of D.split(" ").entries()){!1!==e.trim&&(i[i.length-1]=i[i.length-1].trimStart());let D=w(i[i.length-1]);if(0!==t&&(D>=u&&(!1===e.wordWrap||!1===e.trim)&&(i.push(""),D=0),(D>0||!1===e.trim)&&(i[i.length-1]+=" ",D++)),e.hard&&s[t]>u){let e=u-D,F=1+Math.floor((s[t]-e-1)/u);Math.floor((s[t]-1)/u)<F&&i.push(""),N(i,r,u);continue}if(D+s[t]>u&&D>0&&s[t]>0){if(!1===e.wordWrap&&D<u){N(i,r,u);continue}i.push("")}if(D+s[t]>u&&!1===e.wordWrap){N(i,r,u);continue}i[i.length-1]+=r}!1!==e.trim&&(i=i.map(D=>R(D)));let n=[...i.join(`
2
+ `)];for(let[D,u]of n.entries()){if(t+=u,T.has(u)){let{groups:u}=RegExp(`(?:\\[(?<code>\\d+)m|\\${j}(?<uri>.*)\x07)`).exec(n.slice(D).join(""))||{groups:{}};if(void 0!==u.code){let D=Number.parseFloat(u.code);r=39===D?void 0:D}else void 0!==u.uri&&(F=0===u.uri.length?void 0:u.uri)}let e=k.codes.get(Number(r));n[D+1]===`
3
+ `?(F&&(t+=M("")),r&&e&&(t+=S(e))):u===`
4
+ `&&(r&&e&&(t+=S(r)),F&&(t+=M(F)))}return t};function I(D,u,e){return String(D).normalize().replace(/\r\n/g,`
5
+ `).split(`
6
+ `).map(D=>L(D,u,e)).join(`
7
+ `)}var q=Object.defineProperty,W=(D,u,e)=>u in D?q(D,u,{enumerable:!0,configurable:!0,writable:!0,value:e}):D[u]=e,z=(D,u,e)=>(W(D,"symbol"!=typeof u?u+"":u,e),e);const G=Symbol("clack:cancel");function H(D,u){D.isTTY&&D.setRawMode(u)}const K=new Map([["k","up"],["j","down"],["h","left"],["l","right"]]),U=new Set(["up","down","left","right","space","enter"]);let J=class{constructor({render:D,input:u=e.stdin,output:t=e.stdout,...r},F=!0){z(this,"input"),z(this,"output"),z(this,"rl"),z(this,"opts"),z(this,"_track",!1),z(this,"_render"),z(this,"_cursor",0),z(this,"state","initial"),z(this,"value"),z(this,"error",""),z(this,"subscribers",new Map),z(this,"_prevFrame",""),this.opts=r,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=D.bind(this),this._track=F,this.input=u,this.output=t}prompt(){let D=new r.WriteStream(0);return D._write=(D,u,e)=>{this._track&&(this.value=this.rl.line.replace(/\t/g,""),this._cursor=this.rl.cursor,this.emit("value",this.value)),e()},this.input.pipe(D),this.rl=t.createInterface({input:this.input,output:D,tabSize:2,prompt:"",escapeCodeTimeout:50}),t.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),H(this.input,!0),this.output.on("resize",this.render),this.render(),new Promise((D,u)=>{this.once("submit",()=>{this.output.write(m.cursor.show),this.output.off("resize",this.render),H(this.input,!1),D(this.value)}),this.once("cancel",()=>{this.output.write(m.cursor.show),this.output.off("resize",this.render),H(this.input,!1),D(G)})})}on(D,u){let e=this.subscribers.get(D)??[];e.push({cb:u}),this.subscribers.set(D,e)}once(D,u){let e=this.subscribers.get(D)??[];e.push({cb:u,once:!0}),this.subscribers.set(D,e)}emit(D,...u){let e=this.subscribers.get(D)??[],t=[];for(let D of e)D.cb(...u),D.once&&t.push(()=>e.splice(e.indexOf(D),1));for(let D of t)D()}unsubscribe(){this.subscribers.clear()}onKeypress(D,u){if("error"===this.state&&(this.state="active"),u?.name&&!this._track&&K.has(u.name)&&this.emit("cursor",K.get(u.name)),u?.name&&U.has(u.name)&&this.emit("cursor",u.name),D&&("y"===D.toLowerCase()||"n"===D.toLowerCase())&&this.emit("confirm","y"===D.toLowerCase())," "===D&&this.opts.placeholder&&(this.value||(this.rl.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),D&&this.emit("key",D.toLowerCase()),u?.name==="return"){if(this.opts.validate){let D=this.opts.validate(this.value);D&&(this.error=D,this.state="error",this.rl.write(this.value))}"error"!==this.state&&(this.state="submit")}"\x03"===D&&(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
+ `),H(this.input,!1),this.rl.close(),this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let D=I(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
9
+ `).length-1;this.output.write(m.cursor.move(-999,-1*D))}render(){let D=I(this._render(this)??"",process.stdout.columns,{hard:!0});if(D!==this._prevFrame){if("initial"===this.state)this.output.write(m.cursor.hide);else{let u=function(D,u){if(D===u)return;let e=D.split(`
10
+ `),t=u.split(`
11
+ `),r=[];for(let D=0;D<Math.max(e.length,t.length);D++)e[D]!==t[D]&&r.push(D);return r}(this._prevFrame,D);if(this.restoreCursor(),u&&u?.length===1){let e=u[0];this.output.write(m.cursor.move(0,e)),this.output.write(m.erase.lines(1));let t=D.split(`
12
+ `);this.output.write(t[e]),this._prevFrame=D,this.output.write(m.cursor.move(0,t.length-e-1));return}if(u&&u?.length>1){let e=u[0];this.output.write(m.cursor.move(0,e)),this.output.write(m.erase.down());let t=D.split(`
13
+ `).slice(e);this.output.write(t.join(`
14
+ `)),this._prevFrame=D;return}this.output.write(m.erase.down())}this.output.write(D),"initial"===this.state&&(this.state="active"),this._prevFrame=D}}};class V extends J{get cursor(){return this.value?0:1}get _value(){return 0===this.cursor}constructor(D){super(D,!1),this.value=!!D.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",D=>{this.output.write(m.cursor.move(0,-1)),this.value=D,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}globalThis.process.platform.startsWith("win");const Y="win32"!==e.platform?"linux"!==e.env.TERM:!!e.env.CI||!!e.env.WT_SESSION||!!e.env.TERMINUS_SUBLIME||"{cmd::Cmder}"===e.env.ConEmuTask||"Terminus-Sublime"===e.env.TERM_PROGRAM||"vscode"===e.env.TERM_PROGRAM||"xterm-256color"===e.env.TERM||"alacritty"===e.env.TERM||"JetBrains-JediTerm"===e.env.TERMINAL_EMULATOR,Z=(D,u)=>Y?D:u,X=Z("◆","*"),Q=Z("■","x"),DD=Z("▲","x"),Du=Z("◇","o"),De=Z("│","|"),Dt=Z("└","—"),Dr=Z("●",">"),DF=Z("○"," "),Ds=D=>{switch(D){case"initial":case"active":return F.cyan(X);case"cancel":return F.red(Q);case"error":return F.yellow(DD);case"submit":return F.green(Du)}};var Di=/*#__PURE__*/Object.freeze({__proto__:null,confirm:D=>{let u=D.active??"Yes",e=D.inactive??"No";return new V({active:u,inactive:e,initialValue:D.initialValue??!0,render(){let t=`${F.gray(De)}
15
+ ${Ds(this.state)} ${D.message}
16
+ `,r=this.value?u:e;switch(this.state){case"submit":return`${t}${F.gray(De)} ${F.dim(r)}`;case"cancel":return`${t}${F.gray(De)} ${F.strikethrough(F.dim(r))}
17
+ ${F.gray(De)}`;default:return`${t}${F.cyan(De)} ${this.value?`${F.green(Dr)} ${u}`:`${F.dim(DF)} ${F.dim(u)}`} ${F.dim("/")} ${this.value?`${F.dim(DF)} ${F.dim(e)}`:`${F.green(Dr)} ${e}`}
18
+ ${F.cyan(Dt)}
19
+ `}}}).prompt()}});const Dn=["npm","yarn","yarn@berry","pnpm","pnpm@6","bun"],Do={"bun.lockb":"bun","pnpm-lock.yaml":"pnpm","yarn.lock":"yarn","package-lock.json":"npm","npm-shrinkwrap.json":"npm"};async function DC({cwd:D,onUnknown:u}={}){let e,t,r;let F=await DE(Object.keys(Do),{cwd:D});if((r=F?o.resolve(F,"../package.json"):await DE("package.json",{cwd:D}))&&i.existsSync(r))try{let D=JSON.parse(i.readFileSync(r,"utf8"));if("string"==typeof D.packageManager){let[r,F]=D.packageManager.replace(/^\^/,"").split("@");t=F,"yarn"===r&&Number.parseInt(F)>1?(e="yarn@berry",t="berry"):"pnpm"===r&&7>Number.parseInt(F)?e="pnpm@6":Dn.includes(r)?e=r:u?.(D.packageManager)}}catch{}return!e&&F&&(e=Do[o.basename(F)]),{agent:e,version:t}}async function DE(D,{cwd:u}){let t=o.resolve(u??e.cwd()),{root:r}=o.parse(t),F=[D].flat();for(;t&&t!==r;){for(let D of F){let u=o.join(t,D);try{if((await n.stat(u)).isFile())return u}catch{}}t=o.dirname(t)}}const Da=a.createRequire("undefined"==typeof document?require("url").pathToFileURL(__filename).href:p&&p.src||new URL("vendor-BoZ9pZii.cjs",document.baseURI).href);var Dl=Object.create,Dc=Object.defineProperty,Dh=Object.getOwnPropertyDescriptor,Dp=Object.getOwnPropertyNames,DB=Object.getPrototypeOf,Dd=Object.prototype.hasOwnProperty,Df=(D=function(D){if("u">typeof Da)return Da.apply(this,arguments);throw Error('Dynamic require of "'+D+'" is not supported')},"u">typeof Da?Da:"u">typeof Proxy?new Proxy(D,{get:(D,u)=>("u">typeof Da?Da:D)[u]}):D),Dm=(D,u)=>()=>(u||D((u={exports:{}}).exports,u),u.exports),DA=Dm((D,u)=>{u.exports=r,r.sync=function(D,u){return t(e.statSync(D),D,u)};var e=Df("fs");function t(D,u,e){return!!(D.isSymbolicLink()||D.isFile())&&function(D,u){var e=void 0!==u.pathExt?u.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&&D.substr(-r.length).toLowerCase()===r)return!0}return!1}(u,e)}function r(D,u,r){e.stat(D,function(e,F){r(e,!e&&t(F,D,u))})}}),Dg=Dm((D,u)=>{u.exports=t,t.sync=function(D,u){return r(e.statSync(D),u)};var e=Df("fs");function t(D,u,t){e.stat(D,function(D,e){t(D,!D&&r(e,u))})}function r(D,u){var e,t,r,F,s,i,n;return D.isFile()&&(e=D.mode,t=D.uid,r=D.gid,F=void 0!==u.uid?u.uid:process.getuid&&process.getuid(),s=void 0!==u.gid?u.gid:process.getgid&&process.getgid(),i=parseInt("100",8),n=parseInt("010",8),e&parseInt("001",8)||e&n&&r===s||e&i&&t===F||e&(i|n)&&0===F)}}),Db=Dm((D,u)=>{var e;function t(D,u,r){if("function"==typeof u&&(r=u,u={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(e,r){t(D,u||{},function(D,u){D?r(D):e(u)})})}e(D,u||{},function(D,e){D&&("EACCES"===D.code||u&&u.ignoreErrors)&&(D=null,e=!1),r(D,e)})}Df("fs"),"win32"===process.platform||global.TESTING_WINDOWS?e=DA():e=Dg(),u.exports=t,t.sync=function(D,u){try{return e.sync(D,u||{})}catch(D){if(u&&u.ignoreErrors||"EACCES"===D.code)return!1;throw D}}}),Dv=Dm((D,u)=>{var e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,t=Df("path"),r=e?";":":",F=Db(),s=D=>Object.assign(Error(`not found: ${D}`),{code:"ENOENT"}),i=(D,u)=>{let t=u.colon||r,F=D.match(/\//)||e&&D.match(/\\/)?[""]:[...e?[process.cwd()]:[],...(u.path||process.env.PATH||"").split(t)],s=e?u.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=e?s.split(t):[""];return e&&-1!==D.indexOf(".")&&""!==i[0]&&i.unshift(""),{pathEnv:F,pathExt:i,pathExtExe:s}},n=(D,u,e)=>{"function"==typeof u&&(e=u,u={}),u||(u={});let{pathEnv:r,pathExt:n,pathExtExe:o}=i(D,u),C=[],E=e=>new Promise((F,i)=>{if(e===r.length)return u.all&&C.length?F(C):i(s(D));let n=r[e],o=/^".*"$/.test(n)?n.slice(1,-1):n,E=t.join(o,D);F(a(!o&&/^\.[\\\/]/.test(D)?D.slice(0,2)+E:E,e,0))}),a=(D,e,t)=>new Promise((r,s)=>{if(t===n.length)return r(E(e+1));let i=n[t];F(D+i,{pathExt:o},(F,s)=>{if(!F&&s){if(!u.all)return r(D+i);C.push(D+i)}return r(a(D,e,t+1))})});return e?E(0).then(D=>e(null,D),e):E(0)};u.exports=n,n.sync=(D,u)=>{let{pathEnv:e,pathExt:r,pathExtExe:n}=i(D,u=u||{}),o=[];for(let s=0;s<e.length;s++){let i=e[s],C=/^".*"$/.test(i)?i.slice(1,-1):i,E=t.join(C,D),a=!C&&/^\.[\\\/]/.test(D)?D.slice(0,2)+E:E;for(let D=0;D<r.length;D++){let e=a+r[D];try{if(F.sync(e,{pathExt:n})){if(!u.all)return e;o.push(e)}}catch{}}}if(u.all&&o.length)return o;if(u.nothrow)return null;throw s(D)}}),Dy=Dm((D,u)=>{var e=(D={})=>{let u=D.env||process.env;return"win32"!==(D.platform||process.platform)?"PATH":Object.keys(u).reverse().find(D=>"PATH"===D.toUpperCase())||"Path"};u.exports=e,u.exports.default=e}),Dw=Dm((D,u)=>{var e=Df("path"),t=Dv(),r=Dy();function F(D,u){let F,s=D.options.env||process.env,i=process.cwd(),n=null!=D.options.cwd,o=n&&void 0!==process.chdir&&!process.chdir.disabled;if(o)try{process.chdir(D.options.cwd)}catch{}try{F=t.sync(D.command,{path:s[r({env:s})],pathExt:u?e.delimiter:void 0})}catch{}finally{o&&process.chdir(i)}return F&&(F=e.resolve(n?D.options.cwd:"",F)),F}u.exports=function(D){return F(D)||F(D,!0)}}),D_=Dm((D,u)=>{var e=/([()\][%!^"`<>&|;, *?])/g;u.exports.command=function(D){return D=D.replace(e,"^$1")},u.exports.argument=function(D,u){return D=(D=(D=`${D}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"),D=(D=`"${D}"`).replace(e,"^$1"),u&&(D=D.replace(e,"^$1")),D}}),Dx=Dm((D,u)=>{u.exports=/^#!(.*)/}),D$=Dm((D,u)=>{var e=Dx();u.exports=(D="")=>{let u=D.match(e);if(!u)return null;let[t,r]=u[0].replace(/#! ?/,"").split(" "),F=t.split("/").pop();return"env"===F?r:r?`${F} ${r}`:F}}),DO=Dm((D,u)=>{var e=Df("fs"),t=D$();u.exports=function(D){let u=Buffer.alloc(150),r;try{r=e.openSync(D,"r"),e.readSync(r,u,0,150,0),e.closeSync(r)}catch{}return t(u.toString())}}),Dk=Dm((D,u)=>{var e=Df("path"),t=Dw(),r=D_(),F=DO(),s="win32"===process.platform,i=/\.(?:com|exe)$/i,n=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;u.exports=function(D,u,o){u&&!Array.isArray(u)&&(o=u,u=null);let C={command:D,args:u=u?u.slice(0):[],options:o=Object.assign({},o),file:void 0,original:{command:D,args:u}};return o.shell?C:function(D){let u;if(!s)return D;let o=(D.file=t(D),(u=D.file&&F(D.file))?(D.args.unshift(D.file),D.command=u,t(D)):D.file),C=!i.test(o);if(D.options.forceShell||C){let u=n.test(o);D.command=e.normalize(D.command),D.command=r.command(D.command),D.args=D.args.map(D=>r.argument(D,u));let t=[D.command].concat(D.args).join(" ");D.args=["/d","/s","/c",`"${t}"`],D.command=process.env.comspec||"cmd.exe",D.options.windowsVerbatimArguments=!0}return D}(C)}}),DT=Dm((D,u)=>{var e="win32"===process.platform;function t(D,u){return Object.assign(Error(`${u} ${D.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${u} ${D.command}`,path:D.command,spawnargs:D.args})}function r(D,u){return e&&1===D&&!u.file?t(u.original,"spawn"):null}u.exports={hookChildProcess:function(D,u){if(!e)return;let t=D.emit;D.emit=function(e,F){if("exit"===e){let e=r(F,u);if(e)return t.call(D,"error",e)}return t.apply(D,arguments)}},verifyENOENT:r,verifyENOENTSync:function(D,u){return e&&1===D&&!u.file?t(u.original,"spawnSync"):null},notFoundError:t}}),Dj=Dm((D,u)=>{var e=Df("child_process"),t=Dk(),r=DT();function F(D,u,F){let s=t(D,u,F),i=e.spawn(s.command,s.args,s.options);return r.hookChildProcess(i,s),i}u.exports=F,u.exports.spawn=F,u.exports.sync=function(D,u,F){let s=t(D,u,F),i=e.spawnSync(s.command,s.args,s.options);return i.error=i.error||r.verifyENOENTSync(i.status,s),i},u.exports._parse=t,u.exports._enoent=r}),DS=/^path$/i,DM={key:"PATH",value:""},DP=D=>{let u=D.length,e=new c.PassThrough,t=()=>{0==--u&&e.emit("end")};for(let u of D)u.pipe(e,{end:!1}),u.on("end",t);return e},DN=((D,u,e,t)=>{if(u&&"object"==typeof u||"function"==typeof u)for(let r of Dp(u))Dd.call(D,r)||r===e||Dc(D,r,{get:()=>u[r],enumerable:!(t=Dh(u,r))||t.enumerable});return D})(Dc(null!=(u=Dj())?Dl(DB(u)):{},"default",{value:u,enumerable:!0}),u),DR={timeout:void 0,persist:!1},DL={windowsHide:!0},DI=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(D,u,e){this._options={...DR,...e},this._command=D,this._args=u??[],this._processClosed=new Promise(D=>{this._resolveClose=D})}kill(D){return this._process?.kill(D)===!0}get aborted(){return this._aborted}get killed(){return this._process?.killed===!0}pipe(D,u,e){return DW(D,u,{...e,stdin:this})}async *[Symbol.asyncIterator](){let D=this._process;if(!D)return;let u=[];this._streamErr&&u.push(this._streamErr),this._streamOut&&u.push(this._streamOut);let e=DP(u);for await(let D of h.createInterface({input:e}))yield D.toString();if(await this._processClosed,D.removeAllListeners(),this._thrownError)throw this._thrownError}async _waitForOutput(){let D=this._process;if(!D)throw Error("No process was started");let u="",e="";if(this._streamErr)for await(let D of this._streamErr)u+=D.toString();if(this._streamOut)for await(let D of this._streamOut)e+=D.toString();if(await this._processClosed,this._options?.stdin&&await this._options.stdin,D.removeAllListeners(),this._thrownError)throw this._thrownError;return{stderr:u,stdout:e}}then(D,u){return this._waitForOutput().then(D,u)}_streamOut;_streamErr;spawn(){var D,u,e;let t,r,F=s.cwd(),i=this._options,n={...DL,...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&&(n.detached=!0),o.length>0&&(n.signal=function(D){let u=new AbortController;for(let e of D){if(e.aborted)return u.abort(),e;let D=()=>{u.abort(e.reason)};e.addEventListener("abort",D,{signal:u.signal})}return u.signal}(o)),n.env=(D=n.env,r=function(D,u){let e=u.value.split(E.delimiter),t=D,r;do e.push(E.resolve(t,"node_modules",".bin")),r=t,t=E.dirname(t);while(t!==r);return{key:u.key,value:e.join(E.delimiter)}}(F,function(D){for(let u in D){if(!Object.prototype.hasOwnProperty.call(D,u)||!DS.test(u))continue;let e=D[u];return e?{key:u,value:e}:DM}return DM}(t={...process.env,...D})),t[r.key]=r.value,t);let{command:C,args:a}=(u=this._command,e=this._args,{command:E.normalize(u),args:e??[]}),c=(0,DN._parse)(C,a,n),h=l.spawn(c.command,c.args,c.options);if(h.stderr&&(this._streamErr=h.stderr),h.stdout&&(this._streamOut=h.stdout),this._process=h,h.once("error",this._onError),h.once("close",this._onClose),void 0!==i.stdin&&h.stdin&&i.stdin.process){let{stdout:D}=i.stdin.process;D&&D.pipe(h.stdin)}}_resetState(){this._aborted=!1,this._processClosed=new Promise(D=>{this._resolveClose=D}),this._thrownError=void 0}_onError=D=>{if("AbortError"===D.name&&(!(D.cause instanceof Error)||"TimeoutError"!==D.cause.name)){this._aborted=!0;return}this._thrownError=D};_onClose=()=>{this._resolveClose&&this._resolveClose()}},Dq=(D,u,e)=>{let t=new DI(D,u,e);return t.spawn(),t},DW=Dq;async function Dz(D=s.cwd()){let u=await DC({cwd:D,onUnknown(D){console.warn("[@antfu/install-pkg] Unknown packageManager:",D)}});return u?.agent||null}async function DG(D,u={}){let e=u.packageManager||await Dz(u.cwd)||"npm",[t]=e.split("@");Array.isArray(D)||(D=[D]);let r=u.additionalArgs||[];return u.preferOffline&&("yarn@berry"===e?r.unshift("--cached"):r.unshift("--prefer-offline")),"pnpm"===t&&C.existsSync(E.resolve(u.cwd??s.cwd(),"pnpm-workspace.yaml"))&&r.unshift("-w"),Dq(t,["yarn"===t?"add":"install",u.dev?"-D":"",...r,...D].filter(Boolean),{nodeOptions:{stdio:u.silent?"ignore":"inherit",cwd:u.cwd}})}var DH=/*#__PURE__*/Object.freeze({__proto__:null,detectPackageManager:Dz,installPackage:DG});exports.a=function(D){return D&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D},exports.b=DH,exports.g=function(D){if(D.__esModule)return D;var u=D.default;if("function"==typeof u){var e=function D(){return this instanceof D?Reflect.construct(u,arguments,this.constructor):u.apply(this,arguments)};e.prototype=u.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(D).forEach(function(u){var t=Object.getOwnPropertyDescriptor(D,u);Object.defineProperty(e,u,t.get?t:{enumerable:!0,get:function(){return D[u]}})}),e},exports.i=Di;
@@ -0,0 +1,19 @@
1
+ let D,u;import e,{stdin as t,stdout as r}from"node:process";import F from"node:readline";import{WriteStream as s}from"node:tty";import i from"picocolors";import n,{cwd as o}from"process";import C from"node:fs";import E from"node:fs/promises";import a from"node:path";import{existsSync as l}from"fs";import{normalize as c,delimiter as p,resolve as h,dirname as B}from"path";import{createRequire as f}from"node:module";import{spawn as d}from"child_process";import{PassThrough as m}from"stream";import A from"readline";function g(D){return D&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D}function b(D){if(D.__esModule)return D;var u=D.default;if("function"==typeof u){var e=function D(){return this instanceof D?Reflect.construct(u,arguments,this.constructor):u.apply(this,arguments)};e.prototype=u.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(D).forEach(function(u){var t=Object.getOwnPropertyDescriptor(D,u);Object.defineProperty(e,u,t.get?t:{enumerable:!0,get:function(){return D[u]}})}),e}let v=`\x1b[`,y={to:(D,u)=>u?`${v}${u+1};${D+1}H`:`${v}${D+1}G`,move(D,u){let e="";return D<0?e+=`${v}${-D}D`:D>0&&(e+=`${v}${D}C`),u<0?e+=`${v}${-u}A`:u>0&&(e+=`${v}${u}B`),e},up:(D=1)=>`${v}${D}A`,down:(D=1)=>`${v}${D}B`,forward:(D=1)=>`${v}${D}C`,backward:(D=1)=>`${v}${D}D`,nextLine:(D=1)=>`${v}E`.repeat(D),prevLine:(D=1)=>`${v}F`.repeat(D),left:`${v}G`,hide:`${v}?25l`,show:`${v}?25h`,save:`\x1b7`,restore:`\x1b8`},w={screen:`${v}2J`,up:(D=1)=>`${v}1J`.repeat(D),down:(D=1)=>`${v}J`.repeat(D),line:`${v}2K`,lineEnd:`${v}K`,lineStart:`${v}1K`,lines(D){let u="";for(let e=0;e<D;e++)u+=this.line+(e<D-1?y.up():"");return D&&(u+=y.left),u}};var _={cursor:y,erase:w};function x(D){if("string"!=typeof D)throw TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(function({onlyFirst:D=!1}={}){return RegExp("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))",D?void 0:"g")}(),"")}function $(D){return D&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D}var O={exports:{}};!function(D){var u={};function e(D){return D.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}D.exports=u,u.eastAsianWidth=function(D){var u=D.charCodeAt(0),e=2==D.length?D.charCodeAt(1):0,t=u;return 55296<=u&&u<=56319&&56320<=e&&e<=57343&&(u&=1023,e&=1023,t=(u<<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"},u.characterLength=function(D){var u=this.eastAsianWidth(D);return"F"==u||"W"==u||"A"==u?2:1},u.length=function(D){for(var u=e(D),t=0,r=0;r<u.length;r++)t+=this.characterLength(u[r]);return t},u.slice=function(D,t,r){textLen=u.length(D),r=r||1,(t=t||0)<0&&(t=textLen+t),r<0&&(r=textLen+r);for(var F="",s=0,i=e(D),n=0;n<i.length;n++){var o=i[n],C=u.length(o);if(s>=t-(2==C?1:0)){if(s+C<=r)F+=o;else break}s+=C}return F}}(O);let k=$(O.exports),T=$(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\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?:\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(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uD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B-\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 j(D,u={}){if("string"!=typeof D||0===D.length||(u={ambiguousIsNarrow:!0,...u},0===(D=x(D)).length))return 0;D=D.replace(T()," ");let e=u.ambiguousIsNarrow?1:2,t=0;for(let u of D){let D=u.codePointAt(0);if(!(D<=31)&&(!(D>=127)||!(D<=159))&&(!(D>=768)||!(D<=879)))switch(k.eastAsianWidth(u)){case"F":case"W":t+=2;break;case"A":t+=e;break;default:t+=1}}return t}let M=(D=0)=>u=>`\x1b[${u+D}m`,S=(D=0)=>u=>`\x1b[${38+D};5;${u}m`,P=(D=0)=>(u,e,t)=>`\x1b[${38+D};2;${u};${e};${t}m`,N={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(N.modifier),[...Object.keys(N.color),...Object.keys(N.bgColor)];let L=function(){let D=new Map;for(let[u,e]of Object.entries(N)){for(let[u,t]of Object.entries(e))N[u]={open:`\x1b[${t[0]}m`,close:`\x1b[${t[1]}m`},e[u]=N[u],D.set(t[0],t[1]);Object.defineProperty(N,u,{value:e,enumerable:!1})}return Object.defineProperty(N,"codes",{value:D,enumerable:!1}),N.color.close="\x1b[39m",N.bgColor.close="\x1b[49m",N.color.ansi=M(),N.color.ansi256=S(),N.color.ansi16m=P(),N.bgColor.ansi=M(10),N.bgColor.ansi256=S(10),N.bgColor.ansi16m=P(10),Object.defineProperties(N,{rgbToAnsi256:{value:(D,u,e)=>D===u&&u===e?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(e/255*5),enumerable:!1},hexToRgb:{value:D=>{let u=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!u)return[0,0,0];let[e]=u;3===e.length&&(e=[...e].map(D=>D+D).join(""));let t=Number.parseInt(e,16);return[t>>16&255,t>>8&255,255&t]},enumerable:!1},hexToAnsi256:{value:D=>N.rgbToAnsi256(...N.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value:D=>{let u,e,t;if(D<8)return 30+D;if(D<16)return 90+(D-8);if(D>=232)e=u=((D-232)*10+8)/255,t=u;else{let r=(D-=16)%36;u=Math.floor(D/36)/5,e=Math.floor(r/6)/5,t=r%6/5}let r=2*Math.max(u,e,t);if(0===r)return 30;let F=30+(Math.round(t)<<2|Math.round(e)<<1|Math.round(u));return 2===r&&(F+=60),F},enumerable:!1},rgbToAnsi:{value:(D,u,e)=>N.ansi256ToAnsi(N.rgbToAnsi256(D,u,e)),enumerable:!1},hexToAnsi:{value:D=>N.ansi256ToAnsi(N.hexToAnsi256(D)),enumerable:!1}}),N}(),R=new Set(["\x1b","\x9b"]),I="]8;;",W=D=>`${R.values().next().value}[${D}m`,z=D=>`${R.values().next().value}${I}${D}\x07`,G=D=>D.split(" ").map(D=>j(D)),H=(D,u,e)=>{let t=[...u],r=!1,F=!1,s=j(x(D[D.length-1]));for(let[u,i]of t.entries()){let n=j(i);if(s+n<=e?D[D.length-1]+=i:(D.push(i),s=0),R.has(i)&&(r=!0,F=t.slice(u+1).join("").startsWith(I)),r){F?"\x07"===i&&(r=!1,F=!1):"m"===i&&(r=!1);continue}(s+=n)===e&&u<t.length-1&&(D.push(""),s=0)}!s&&D[D.length-1].length>0&&D.length>1&&(D[D.length-2]+=D.pop())},K=D=>{let u=D.split(" "),e=u.length;for(;e>0&&!(j(u[e-1])>0);)e--;return e===u.length?D:u.slice(0,e).join(" ")+u.slice(e).join("")},J=(D,u,e={})=>{if(!1!==e.trim&&""===D.trim())return"";let t="",r,F,s=G(D),i=[""];for(let[t,r]of D.split(" ").entries()){!1!==e.trim&&(i[i.length-1]=i[i.length-1].trimStart());let D=j(i[i.length-1]);if(0!==t&&(D>=u&&(!1===e.wordWrap||!1===e.trim)&&(i.push(""),D=0),(D>0||!1===e.trim)&&(i[i.length-1]+=" ",D++)),e.hard&&s[t]>u){let e=u-D,F=1+Math.floor((s[t]-e-1)/u);Math.floor((s[t]-1)/u)<F&&i.push(""),H(i,r,u);continue}if(D+s[t]>u&&D>0&&s[t]>0){if(!1===e.wordWrap&&D<u){H(i,r,u);continue}i.push("")}if(D+s[t]>u&&!1===e.wordWrap){H(i,r,u);continue}i[i.length-1]+=r}!1!==e.trim&&(i=i.map(D=>K(D)));let n=[...i.join(`
2
+ `)];for(let[D,u]of n.entries()){if(t+=u,R.has(u)){let{groups:u}=RegExp(`(?:\\[(?<code>\\d+)m|\\${I}(?<uri>.*)\x07)`).exec(n.slice(D).join(""))||{groups:{}};if(void 0!==u.code){let D=Number.parseFloat(u.code);r=39===D?void 0:D}else void 0!==u.uri&&(F=0===u.uri.length?void 0:u.uri)}let e=L.codes.get(Number(r));n[D+1]===`
3
+ `?(F&&(t+=z("")),r&&e&&(t+=W(e))):u===`
4
+ `&&(r&&e&&(t+=W(r)),F&&(t+=z(F)))}return t};function U(D,u,e){return String(D).normalize().replace(/\r\n/g,`
5
+ `).split(`
6
+ `).map(D=>J(D,u,e)).join(`
7
+ `)}var V=Object.defineProperty,Y=(D,u,e)=>u in D?V(D,u,{enumerable:!0,configurable:!0,writable:!0,value:e}):D[u]=e,Z=(D,u,e)=>(Y(D,"symbol"!=typeof u?u+"":u,e),e);let X=Symbol("clack:cancel");function q(D,u){D.isTTY&&D.setRawMode(u)}let Q=new Map([["k","up"],["j","down"],["h","left"],["l","right"]]),DD=new Set(["up","down","left","right","space","enter"]),Du=class{constructor({render:D,input:u=t,output:e=r,...F},s=!0){Z(this,"input"),Z(this,"output"),Z(this,"rl"),Z(this,"opts"),Z(this,"_track",!1),Z(this,"_render"),Z(this,"_cursor",0),Z(this,"state","initial"),Z(this,"value"),Z(this,"error",""),Z(this,"subscribers",new Map),Z(this,"_prevFrame",""),this.opts=F,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=D.bind(this),this._track=s,this.input=u,this.output=e}prompt(){let D=new s(0);return D._write=(D,u,e)=>{this._track&&(this.value=this.rl.line.replace(/\t/g,""),this._cursor=this.rl.cursor,this.emit("value",this.value)),e()},this.input.pipe(D),this.rl=F.createInterface({input:this.input,output:D,tabSize:2,prompt:"",escapeCodeTimeout:50}),F.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(),new Promise((D,u)=>{this.once("submit",()=>{this.output.write(_.cursor.show),this.output.off("resize",this.render),q(this.input,!1),D(this.value)}),this.once("cancel",()=>{this.output.write(_.cursor.show),this.output.off("resize",this.render),q(this.input,!1),D(X)})})}on(D,u){let e=this.subscribers.get(D)??[];e.push({cb:u}),this.subscribers.set(D,e)}once(D,u){let e=this.subscribers.get(D)??[];e.push({cb:u,once:!0}),this.subscribers.set(D,e)}emit(D,...u){let e=this.subscribers.get(D)??[],t=[];for(let D of e)D.cb(...u),D.once&&t.push(()=>e.splice(e.indexOf(D),1));for(let D of t)D()}unsubscribe(){this.subscribers.clear()}onKeypress(D,u){if("error"===this.state&&(this.state="active"),u?.name&&!this._track&&Q.has(u.name)&&this.emit("cursor",Q.get(u.name)),u?.name&&DD.has(u.name)&&this.emit("cursor",u.name),D&&("y"===D.toLowerCase()||"n"===D.toLowerCase())&&this.emit("confirm","y"===D.toLowerCase())," "===D&&this.opts.placeholder&&(this.value||(this.rl.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),D&&this.emit("key",D.toLowerCase()),u?.name==="return"){if(this.opts.validate){let D=this.opts.validate(this.value);D&&(this.error=D,this.state="error",this.rl.write(this.value))}"error"!==this.state&&(this.state="submit")}"\x03"===D&&(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.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let D=U(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
9
+ `).length-1;this.output.write(_.cursor.move(-999,-1*D))}render(){let D=U(this._render(this)??"",process.stdout.columns,{hard:!0});if(D!==this._prevFrame){if("initial"===this.state)this.output.write(_.cursor.hide);else{let u=function(D,u){if(D===u)return;let e=D.split(`
10
+ `),t=u.split(`
11
+ `),r=[];for(let D=0;D<Math.max(e.length,t.length);D++)e[D]!==t[D]&&r.push(D);return r}(this._prevFrame,D);if(this.restoreCursor(),u&&u?.length===1){let e=u[0];this.output.write(_.cursor.move(0,e)),this.output.write(_.erase.lines(1));let t=D.split(`
12
+ `);this.output.write(t[e]),this._prevFrame=D,this.output.write(_.cursor.move(0,t.length-e-1));return}if(u&&u?.length>1){let e=u[0];this.output.write(_.cursor.move(0,e)),this.output.write(_.erase.down());let t=D.split(`
13
+ `).slice(e);this.output.write(t.join(`
14
+ `)),this._prevFrame=D;return}this.output.write(_.erase.down())}this.output.write(D),"initial"===this.state&&(this.state="active"),this._prevFrame=D}}};class De extends Du{get cursor(){return this.value?0:1}get _value(){return 0===this.cursor}constructor(D){super(D,!1),this.value=!!D.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",D=>{this.output.write(_.cursor.move(0,-1)),this.value=D,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}globalThis.process.platform.startsWith("win");let Dt="win32"!==e.platform?"linux"!==e.env.TERM:!!e.env.CI||!!e.env.WT_SESSION||!!e.env.TERMINUS_SUBLIME||"{cmd::Cmder}"===e.env.ConEmuTask||"Terminus-Sublime"===e.env.TERM_PROGRAM||"vscode"===e.env.TERM_PROGRAM||"xterm-256color"===e.env.TERM||"alacritty"===e.env.TERM||"JetBrains-JediTerm"===e.env.TERMINAL_EMULATOR,Dr=(D,u)=>Dt?D:u,DF=Dr("◆","*"),Ds=Dr("■","x"),Di=Dr("▲","x"),Dn=Dr("◇","o"),Do=Dr("│","|"),DC=Dr("└","—"),DE=Dr("●",">"),Da=Dr("○"," "),Dl=D=>{switch(D){case"initial":case"active":return i.cyan(DF);case"cancel":return i.red(Ds);case"error":return i.yellow(Di);case"submit":return i.green(Dn)}};var Dc=/*#__PURE__*/Object.freeze({__proto__:null,confirm:D=>{let u=D.active??"Yes",e=D.inactive??"No";return new De({active:u,inactive:e,initialValue:D.initialValue??!0,render(){let t=`${i.gray(Do)}
15
+ ${Dl(this.state)} ${D.message}
16
+ `,r=this.value?u:e;switch(this.state){case"submit":return`${t}${i.gray(Do)} ${i.dim(r)}`;case"cancel":return`${t}${i.gray(Do)} ${i.strikethrough(i.dim(r))}
17
+ ${i.gray(Do)}`;default:return`${t}${i.cyan(Do)} ${this.value?`${i.green(DE)} ${u}`:`${i.dim(Da)} ${i.dim(u)}`} ${i.dim("/")} ${this.value?`${i.dim(Da)} ${i.dim(e)}`:`${i.green(DE)} ${e}`}
18
+ ${i.cyan(DC)}
19
+ `}}}).prompt()}});let Dp=["npm","yarn","yarn@berry","pnpm","pnpm@6","bun"],Dh={"bun.lockb":"bun","pnpm-lock.yaml":"pnpm","yarn.lock":"yarn","package-lock.json":"npm","npm-shrinkwrap.json":"npm"};async function DB({cwd:D,onUnknown:u}={}){let e,t,r;let F=await Df(Object.keys(Dh),{cwd:D});if((r=F?a.resolve(F,"../package.json"):await Df("package.json",{cwd:D}))&&C.existsSync(r))try{let D=JSON.parse(C.readFileSync(r,"utf8"));if("string"==typeof D.packageManager){let[r,F]=D.packageManager.replace(/^\^/,"").split("@");t=F,"yarn"===r&&Number.parseInt(F)>1?(e="yarn@berry",t="berry"):"pnpm"===r&&7>Number.parseInt(F)?e="pnpm@6":Dp.includes(r)?e=r:u?.(D.packageManager)}}catch{}return!e&&F&&(e=Dh[a.basename(F)]),{agent:e,version:t}}async function Df(D,{cwd:u}){let t=a.resolve(u??e.cwd()),{root:r}=a.parse(t),F=[D].flat();for(;t&&t!==r;){for(let D of F){let u=a.join(t,D);try{if((await E.stat(u)).isFile())return u}catch{}}t=a.dirname(t)}}let Dd=f(import.meta.url);var Dm=Object.create,DA=Object.defineProperty,Dg=Object.getOwnPropertyDescriptor,Db=Object.getOwnPropertyNames,Dv=Object.getPrototypeOf,Dy=Object.prototype.hasOwnProperty,Dw=(D=function(D){if("u">typeof Dd)return Dd.apply(this,arguments);throw Error('Dynamic require of "'+D+'" is not supported')},"u">typeof Dd?Dd:"u">typeof Proxy?new Proxy(D,{get:(D,u)=>("u">typeof Dd?Dd:D)[u]}):D),D_=(D,u)=>()=>(u||D((u={exports:{}}).exports,u),u.exports),Dx=D_((D,u)=>{u.exports=r,r.sync=function(D,u){return t(e.statSync(D),D,u)};var e=Dw("fs");function t(D,u,e){return!!(D.isSymbolicLink()||D.isFile())&&function(D,u){var e=void 0!==u.pathExt?u.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&&D.substr(-r.length).toLowerCase()===r)return!0}return!1}(u,e)}function r(D,u,r){e.stat(D,function(e,F){r(e,!e&&t(F,D,u))})}}),D$=D_((D,u)=>{u.exports=t,t.sync=function(D,u){return r(e.statSync(D),u)};var e=Dw("fs");function t(D,u,t){e.stat(D,function(D,e){t(D,!D&&r(e,u))})}function r(D,u){var e,t,r,F,s,i,n;return D.isFile()&&(e=D.mode,t=D.uid,r=D.gid,F=void 0!==u.uid?u.uid:process.getuid&&process.getuid(),s=void 0!==u.gid?u.gid:process.getgid&&process.getgid(),i=parseInt("100",8),n=parseInt("010",8),e&parseInt("001",8)||e&n&&r===s||e&i&&t===F||e&(i|n)&&0===F)}}),DO=D_((D,u)=>{var e;function t(D,u,r){if("function"==typeof u&&(r=u,u={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(e,r){t(D,u||{},function(D,u){D?r(D):e(u)})})}e(D,u||{},function(D,e){D&&("EACCES"===D.code||u&&u.ignoreErrors)&&(D=null,e=!1),r(D,e)})}Dw("fs"),"win32"===process.platform||global.TESTING_WINDOWS?e=Dx():e=D$(),u.exports=t,t.sync=function(D,u){try{return e.sync(D,u||{})}catch(D){if(u&&u.ignoreErrors||"EACCES"===D.code)return!1;throw D}}}),Dk=D_((D,u)=>{var e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,t=Dw("path"),r=e?";":":",F=DO(),s=D=>Object.assign(Error(`not found: ${D}`),{code:"ENOENT"}),i=(D,u)=>{let t=u.colon||r,F=D.match(/\//)||e&&D.match(/\\/)?[""]:[...e?[process.cwd()]:[],...(u.path||process.env.PATH||"").split(t)],s=e?u.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=e?s.split(t):[""];return e&&-1!==D.indexOf(".")&&""!==i[0]&&i.unshift(""),{pathEnv:F,pathExt:i,pathExtExe:s}},n=(D,u,e)=>{"function"==typeof u&&(e=u,u={}),u||(u={});let{pathEnv:r,pathExt:n,pathExtExe:o}=i(D,u),C=[],E=e=>new Promise((F,i)=>{if(e===r.length)return u.all&&C.length?F(C):i(s(D));let n=r[e],o=/^".*"$/.test(n)?n.slice(1,-1):n,E=t.join(o,D);F(a(!o&&/^\.[\\\/]/.test(D)?D.slice(0,2)+E:E,e,0))}),a=(D,e,t)=>new Promise((r,s)=>{if(t===n.length)return r(E(e+1));let i=n[t];F(D+i,{pathExt:o},(F,s)=>{if(!F&&s){if(!u.all)return r(D+i);C.push(D+i)}return r(a(D,e,t+1))})});return e?E(0).then(D=>e(null,D),e):E(0)};u.exports=n,n.sync=(D,u)=>{let{pathEnv:e,pathExt:r,pathExtExe:n}=i(D,u=u||{}),o=[];for(let s=0;s<e.length;s++){let i=e[s],C=/^".*"$/.test(i)?i.slice(1,-1):i,E=t.join(C,D),a=!C&&/^\.[\\\/]/.test(D)?D.slice(0,2)+E:E;for(let D=0;D<r.length;D++){let e=a+r[D];try{if(F.sync(e,{pathExt:n})){if(!u.all)return e;o.push(e)}}catch{}}}if(u.all&&o.length)return o;if(u.nothrow)return null;throw s(D)}}),DT=D_((D,u)=>{var e=(D={})=>{let u=D.env||process.env;return"win32"!==(D.platform||process.platform)?"PATH":Object.keys(u).reverse().find(D=>"PATH"===D.toUpperCase())||"Path"};u.exports=e,u.exports.default=e}),Dj=D_((D,u)=>{var e=Dw("path"),t=Dk(),r=DT();function F(D,u){let F,s=D.options.env||process.env,i=process.cwd(),n=null!=D.options.cwd,o=n&&void 0!==process.chdir&&!process.chdir.disabled;if(o)try{process.chdir(D.options.cwd)}catch{}try{F=t.sync(D.command,{path:s[r({env:s})],pathExt:u?e.delimiter:void 0})}catch{}finally{o&&process.chdir(i)}return F&&(F=e.resolve(n?D.options.cwd:"",F)),F}u.exports=function(D){return F(D)||F(D,!0)}}),DM=D_((D,u)=>{var e=/([()\][%!^"`<>&|;, *?])/g;u.exports.command=function(D){return D=D.replace(e,"^$1")},u.exports.argument=function(D,u){return D=(D=(D=`${D}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"),D=(D=`"${D}"`).replace(e,"^$1"),u&&(D=D.replace(e,"^$1")),D}}),DS=D_((D,u)=>{u.exports=/^#!(.*)/}),DP=D_((D,u)=>{var e=DS();u.exports=(D="")=>{let u=D.match(e);if(!u)return null;let[t,r]=u[0].replace(/#! ?/,"").split(" "),F=t.split("/").pop();return"env"===F?r:r?`${F} ${r}`:F}}),DN=D_((D,u)=>{var e=Dw("fs"),t=DP();u.exports=function(D){let u=Buffer.alloc(150),r;try{r=e.openSync(D,"r"),e.readSync(r,u,0,150,0),e.closeSync(r)}catch{}return t(u.toString())}}),DL=D_((D,u)=>{var e=Dw("path"),t=Dj(),r=DM(),F=DN(),s="win32"===process.platform,i=/\.(?:com|exe)$/i,n=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;u.exports=function(D,u,o){u&&!Array.isArray(u)&&(o=u,u=null);let C={command:D,args:u=u?u.slice(0):[],options:o=Object.assign({},o),file:void 0,original:{command:D,args:u}};return o.shell?C:function(D){let u;if(!s)return D;let o=(D.file=t(D),(u=D.file&&F(D.file))?(D.args.unshift(D.file),D.command=u,t(D)):D.file),C=!i.test(o);if(D.options.forceShell||C){let u=n.test(o);D.command=e.normalize(D.command),D.command=r.command(D.command),D.args=D.args.map(D=>r.argument(D,u));let t=[D.command].concat(D.args).join(" ");D.args=["/d","/s","/c",`"${t}"`],D.command=process.env.comspec||"cmd.exe",D.options.windowsVerbatimArguments=!0}return D}(C)}}),DR=D_((D,u)=>{var e="win32"===process.platform;function t(D,u){return Object.assign(Error(`${u} ${D.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${u} ${D.command}`,path:D.command,spawnargs:D.args})}function r(D,u){return e&&1===D&&!u.file?t(u.original,"spawn"):null}u.exports={hookChildProcess:function(D,u){if(!e)return;let t=D.emit;D.emit=function(e,F){if("exit"===e){let e=r(F,u);if(e)return t.call(D,"error",e)}return t.apply(D,arguments)}},verifyENOENT:r,verifyENOENTSync:function(D,u){return e&&1===D&&!u.file?t(u.original,"spawnSync"):null},notFoundError:t}}),DI=D_((D,u)=>{var e=Dw("child_process"),t=DL(),r=DR();function F(D,u,F){let s=t(D,u,F),i=e.spawn(s.command,s.args,s.options);return r.hookChildProcess(i,s),i}u.exports=F,u.exports.spawn=F,u.exports.sync=function(D,u,F){let s=t(D,u,F),i=e.spawnSync(s.command,s.args,s.options);return i.error=i.error||r.verifyENOENTSync(i.status,s),i},u.exports._parse=t,u.exports._enoent=r}),DW=/^path$/i,Dz={key:"PATH",value:""},DG=D=>{let u=D.length,e=new m,t=()=>{0==--u&&e.emit("end")};for(let u of D)u.pipe(e,{end:!1}),u.on("end",t);return e},DH=((D,u,e,t)=>{if(u&&"object"==typeof u||"function"==typeof u)for(let r of Db(u))Dy.call(D,r)||r===e||DA(D,r,{get:()=>u[r],enumerable:!(t=Dg(u,r))||t.enumerable});return D})(DA(null!=(u=DI())?Dm(Dv(u)):{},"default",{value:u,enumerable:!0}),u),DK={timeout:void 0,persist:!1},DJ={windowsHide:!0},DU=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(D,u,e){this._options={...DK,...e},this._command=D,this._args=u??[],this._processClosed=new Promise(D=>{this._resolveClose=D})}kill(D){return this._process?.kill(D)===!0}get aborted(){return this._aborted}get killed(){return this._process?.killed===!0}pipe(D,u,e){return DY(D,u,{...e,stdin:this})}async *[Symbol.asyncIterator](){let D=this._process;if(!D)return;let u=[];this._streamErr&&u.push(this._streamErr),this._streamOut&&u.push(this._streamOut);let e=DG(u);for await(let D of A.createInterface({input:e}))yield D.toString();if(await this._processClosed,D.removeAllListeners(),this._thrownError)throw this._thrownError}async _waitForOutput(){let D=this._process;if(!D)throw Error("No process was started");let u="",e="";if(this._streamErr)for await(let D of this._streamErr)u+=D.toString();if(this._streamOut)for await(let D of this._streamOut)e+=D.toString();if(await this._processClosed,this._options?.stdin&&await this._options.stdin,D.removeAllListeners(),this._thrownError)throw this._thrownError;return{stderr:u,stdout:e}}then(D,u){return this._waitForOutput().then(D,u)}_streamOut;_streamErr;spawn(){var D,u,e;let t,r,F=o(),s=this._options,i={...DJ,...s.nodeOptions},n=[];this._resetState(),void 0!==s.timeout&&n.push(AbortSignal.timeout(s.timeout)),void 0!==s.signal&&n.push(s.signal),!0===s.persist&&(i.detached=!0),n.length>0&&(i.signal=function(D){let u=new AbortController;for(let e of D){if(e.aborted)return u.abort(),e;let D=()=>{u.abort(e.reason)};e.addEventListener("abort",D,{signal:u.signal})}return u.signal}(n)),i.env=(D=i.env,r=function(D,u){let e=u.value.split(p),t=D,r;do e.push(h(t,"node_modules",".bin")),r=t,t=B(t);while(t!==r);return{key:u.key,value:e.join(p)}}(F,function(D){for(let u in D){if(!Object.prototype.hasOwnProperty.call(D,u)||!DW.test(u))continue;let e=D[u];return e?{key:u,value:e}:Dz}return Dz}(t={...process.env,...D})),t[r.key]=r.value,t);let{command:C,args:E}=(u=this._command,e=this._args,{command:c(u),args:e??[]}),a=(0,DH._parse)(C,E,i),l=d(a.command,a.args,a.options);if(l.stderr&&(this._streamErr=l.stderr),l.stdout&&(this._streamOut=l.stdout),this._process=l,l.once("error",this._onError),l.once("close",this._onClose),void 0!==s.stdin&&l.stdin&&s.stdin.process){let{stdout:D}=s.stdin.process;D&&D.pipe(l.stdin)}}_resetState(){this._aborted=!1,this._processClosed=new Promise(D=>{this._resolveClose=D}),this._thrownError=void 0}_onError=D=>{if("AbortError"===D.name&&(!(D.cause instanceof Error)||"TimeoutError"!==D.cause.name)){this._aborted=!0;return}this._thrownError=D};_onClose=()=>{this._resolveClose&&this._resolveClose()}},DV=(D,u,e)=>{let t=new DU(D,u,e);return t.spawn(),t},DY=DV;async function DZ(D=n.cwd()){let u=await DB({cwd:D,onUnknown(D){console.warn("[@antfu/install-pkg] Unknown packageManager:",D)}});return u?.agent||null}async function DX(D,u={}){let e=u.packageManager||await DZ(u.cwd)||"npm",[t]=e.split("@");Array.isArray(D)||(D=[D]);let r=u.additionalArgs||[];return u.preferOffline&&("yarn@berry"===e?r.unshift("--cached"):r.unshift("--prefer-offline")),"pnpm"===t&&l(h(u.cwd??n.cwd(),"pnpm-workspace.yaml"))&&r.unshift("-w"),DV(t,["yarn"===t?"add":"install",u.dev?"-D":"",...r,...D].filter(Boolean),{nodeOptions:{stdio:u.silent?"ignore":"inherit",cwd:u.cwd}})}var Dq=/*#__PURE__*/Object.freeze({__proto__:null,detectPackageManager:DZ,installPackage:DX});export{g as a,Dq as b,b as g,Dc as i};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-sukka",
3
- "version": "6.1.11-beta.1",
3
+ "version": "6.2.0",
4
4
  "description": "Sukka's ESLint config",
5
5
  "homepage": "https://github.com/SukkaW/eslint-config-sukka",
6
6
  "repository": {
@@ -30,11 +30,11 @@
30
30
  "dependencies": {
31
31
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
32
32
  "@eslint/compat": "^1.1.1",
33
- "@eslint/js": "^9.9.0",
34
- "@stylistic/eslint-plugin-js": "2.4.0",
35
- "@stylistic/eslint-plugin-plus": "2.4.0",
36
- "@stylistic/eslint-plugin-ts": "2.4.0",
37
- "@typescript-eslint/parser": "8.0.0-alpha.45",
33
+ "@eslint/js": "^9.9.1",
34
+ "@stylistic/eslint-plugin-js": "2.6.4",
35
+ "@stylistic/eslint-plugin-plus": "2.6.4",
36
+ "@stylistic/eslint-plugin-ts": "2.6.4",
37
+ "@typescript-eslint/parser": "8.2.0",
38
38
  "ci-info": "^4.0.0",
39
39
  "defu": "^6.1.4",
40
40
  "eslint-plugin-autofix": "^2.1.0",
@@ -42,24 +42,25 @@
42
42
  "eslint-plugin-import-x": "^3.1.0",
43
43
  "eslint-plugin-jsonc": "^2.16.0",
44
44
  "eslint-plugin-promise": "^7.1.0",
45
- "eslint-plugin-unused-imports": "4.0.1",
45
+ "eslint-plugin-regexp": "^2.6.0",
46
+ "eslint-plugin-unused-imports": "4.1.3",
46
47
  "jsonc-eslint-parser": "^2.4.0",
47
48
  "picocolors": "^1.0.1",
48
- "typescript-eslint": "8.0.0-alpha.45",
49
- "eslint-import-resolver-ts-bundled": "6.1.11-beta.1",
50
- "@eslint-sukka/shared": "6.1.11-beta.1",
51
- "eslint-plugin-sukka": "6.1.11-beta.1",
52
- "eslint-plugin-sukka-ts": "6.1.11-beta.1"
49
+ "typescript-eslint": "^8.2.0",
50
+ "@eslint-sukka/shared": "6.2.0",
51
+ "eslint-import-resolver-ts-bundled": "6.2.0",
52
+ "eslint-plugin-sukka-ts": "6.2.0",
53
+ "eslint-plugin-sukka": "6.2.0"
53
54
  },
54
55
  "devDependencies": {
55
- "@antfu/install-pkg": "^0.3.5",
56
+ "@antfu/install-pkg": "^0.4.0",
56
57
  "@clack/prompts": "^0.7.0",
57
- "@typescript-eslint/eslint-plugin": "8.0.0-alpha.45",
58
+ "@typescript-eslint/eslint-plugin": "8.2.0",
58
59
  "eslint-config-flat-gitignore": "^0.1.8",
59
60
  "local-pkg": "^0.5.0",
60
- "@eslint-sukka/react": "6.1.11-beta.1",
61
- "@eslint-sukka/node": "6.1.11-beta.1",
62
- "@eslint-sukka/rollup-config": "6.1.11-beta.1"
61
+ "@eslint-sukka/react": "6.2.0",
62
+ "@eslint-sukka/node": "6.2.0",
63
+ "@eslint-sukka/rollup-config": "6.2.0"
63
64
  },
64
65
  "scripts": {
65
66
  "codegen": "node -r @swc-node/register scripts/codegen.ts",
@@ -1,20 +0,0 @@
1
- "use strict";var u,D,e,t,r,n,i,o,F,s=require("node:process"),C=require("node:readline"),a=require("node:tty"),E=require("picocolors"),l=require("path"),c=require("fs"),p=require("process"),h=require("url"),f=require("child_process");function B(u){var D=Object.create(null);return u&&Object.keys(u).forEach(function(e){if("default"!==e){var t=Object.getOwnPropertyDescriptor(u,e);Object.defineProperty(D,e,t.get?t:{enumerable:!0,get:function(){return u[e]}})}}),D.default=u,Object.freeze(D)}var d=/*#__PURE__*/B(l),g=/*#__PURE__*/B(c),m=/*#__PURE__*/B(f),A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function y(u){if(u.__esModule)return u;var D=u.default;if("function"==typeof D){var e=function u(){return this instanceof u?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}var b=/*@__PURE__*/y(g);const w=`\x1b[`,v={to:(u,D)=>D?`${w}${D+1};${u+1}H`:`${w}${u+1}G`,move(u,D){let e="";return u<0?e+=`${w}${-u}D`:u>0&&(e+=`${w}${u}C`),D<0?e+=`${w}${-D}A`:D>0&&(e+=`${w}${D}B`),e},up:(u=1)=>`${w}${u}A`,down:(u=1)=>`${w}${u}B`,forward:(u=1)=>`${w}${u}C`,backward:(u=1)=>`${w}${u}D`,nextLine:(u=1)=>`${w}E`.repeat(u),prevLine:(u=1)=>`${w}F`.repeat(u),left:`${w}G`,hide:`${w}?25l`,show:`${w}?25h`,save:`\x1b7`,restore:`\x1b8`},$={screen:`${w}2J`,up:(u=1)=>`${w}1J`.repeat(u),down:(u=1)=>`${w}J`.repeat(u),line:`${w}2K`,lineEnd:`${w}K`,lineStart:`${w}1K`,lines(u){let D="";for(let e=0;e<u;e++)D+=this.line+(e<u-1?v.up():"");return u&&(D+=v.left),D}};var x={cursor:v,erase:$};function T(u){if("string"!=typeof u)throw TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(function({onlyFirst:u=!1}={}){return RegExp("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))",u?void 0:"g")}(),"")}function S(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var O={exports:{}};!function(u){var D={};function e(u){return u.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}u.exports=D,D.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"},D.characterLength=function(u){var D=this.eastAsianWidth(u);return"F"==D||"W"==D||"A"==D?2:1},D.length=function(u){for(var D=e(u),t=0,r=0;r<D.length;r++)t+=this.characterLength(D[r]);return t},D.slice=function(u,t,r){textLen=D.length(u),r=r||1,(t=t||0)<0&&(t=textLen+t),r<0&&(r=textLen+r);for(var n="",i=0,o=e(u),F=0;F<o.length;F++){var s=o[F],C=D.length(s);if(i>=t-(2==C?1:0)){if(i+C<=r)n+=s;else break}i+=C}return n}}(O);const j=S(O.exports),k=S(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\uDD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2C\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(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|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D34\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[\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\uDDD1-\uDDDD])/g});function M(u,D={}){if("string"!=typeof u||0===u.length||(D={ambiguousIsNarrow:!0,...D},0===(u=T(u)).length))return 0;u=u.replace(k()," ");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(j.eastAsianWidth(D)){case"F":case"W":t+=2;break;case"A":t+=e;break;default:t+=1}}return t}const _=(u=0)=>D=>`\x1b[${D+u}m`,P=(u=0)=>D=>`\x1b[${38+u};5;${D}m`,I=(u=0)=>(D,e,t)=>`\x1b[${38+u};2;${D};${e};${t}m`,N={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(N.modifier),[...Object.keys(N.color),...Object.keys(N.bgColor)];const L=function(){let u=new Map;for(let[D,e]of Object.entries(N)){for(let[D,t]of Object.entries(e))N[D]={open:`\x1b[${t[0]}m`,close:`\x1b[${t[1]}m`},e[D]=N[D],u.set(t[0],t[1]);Object.defineProperty(N,D,{value:e,enumerable:!1})}return Object.defineProperty(N,"codes",{value:u,enumerable:!1}),N.color.close="\x1b[39m",N.bgColor.close="\x1b[49m",N.color.ansi=_(),N.color.ansi256=P(),N.color.ansi16m=I(),N.bgColor.ansi=_(10),N.bgColor.ansi256=P(10),N.bgColor.ansi16m=I(10),Object.defineProperties(N,{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=>N.rgbToAnsi256(...N.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)=>N.ansi256ToAnsi(N.rgbToAnsi256(u,D,e)),enumerable:!1},hexToAnsi:{value:u=>N.ansi256ToAnsi(N.hexToAnsi256(u)),enumerable:!1}}),N}(),R=new Set(["\x1b","\x9b"]),W="]8;;",z=u=>`${R.values().next().value}[${u}m`,q=u=>`${R.values().next().value}${W}${u}\x07`,H=u=>u.split(" ").map(u=>M(u)),V=(u,D,e)=>{let t=[...D],r=!1,n=!1,i=M(T(u[u.length-1]));for(let[D,o]of t.entries()){let F=M(o);if(i+F<=e?u[u.length-1]+=o:(u.push(o),i=0),R.has(o)&&(r=!0,n=t.slice(D+1).join("").startsWith(W)),r){n?"\x07"===o&&(r=!1,n=!1):"m"===o&&(r=!1);continue}(i+=F)===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())},U=u=>{let D=u.split(" "),e=D.length;for(;e>0&&!(M(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},K=(u,D,e={})=>{if(!1!==e.trim&&""===u.trim())return"";let t="",r,n,i=H(u),o=[""];for(let[t,r]of u.split(" ").entries()){!1!==e.trim&&(o[o.length-1]=o[o.length-1].trimStart());let u=M(o[o.length-1]);if(0!==t&&(u>=D&&(!1===e.wordWrap||!1===e.trim)&&(o.push(""),u=0),(u>0||!1===e.trim)&&(o[o.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&&o.push(""),V(o,r,D);continue}if(u+i[t]>D&&u>0&&i[t]>0){if(!1===e.wordWrap&&u<D){V(o,r,D);continue}o.push("")}if(u+i[t]>D&&!1===e.wordWrap){V(o,r,D);continue}o[o.length-1]+=r}!1!==e.trim&&(o=o.map(u=>U(u)));let F=[...o.join(`
2
- `)];for(let[u,D]of F.entries()){if(t+=D,R.has(D)){let{groups:D}=RegExp(`(?:\\[(?<code>\\d+)m|\\${W}(?<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&&(n=0===D.uri.length?void 0:D.uri)}let e=L.codes.get(Number(r));F[u+1]===`
3
- `?(n&&(t+=q("")),r&&e&&(t+=z(e))):D===`
4
- `&&(r&&e&&(t+=z(r)),n&&(t+=q(n)))}return t};function Y(u,D,e){return String(u).normalize().replace(/\r\n/g,`
5
- `).split(`
6
- `).map(u=>K(u,D,e)).join(`
7
- `)}var G=Object.defineProperty,J=(u,D,e)=>D in u?G(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,Z=(u,D,e)=>(J(u,"symbol"!=typeof D?D+"":D,e),e);const Q=Symbol("clack:cancel");function X(u,D){u.isTTY&&u.setRawMode(D)}const uu=new Map([["k","up"],["j","down"],["h","left"],["l","right"]]),uD=new Set(["up","down","left","right","space","enter"]);let ue=class{constructor({render:u,input:D=s.stdin,output:e=s.stdout,...t},r=!0){Z(this,"input"),Z(this,"output"),Z(this,"rl"),Z(this,"opts"),Z(this,"_track",!1),Z(this,"_render"),Z(this,"_cursor",0),Z(this,"state","initial"),Z(this,"value"),Z(this,"error",""),Z(this,"subscribers",new Map),Z(this,"_prevFrame",""),this.opts=t,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=u.bind(this),this._track=r,this.input=D,this.output=e}prompt(){let u=new a.WriteStream(0);return u._write=(u,D,e)=>{this._track&&(this.value=this.rl.line.replace(/\t/g,""),this._cursor=this.rl.cursor,this.emit("value",this.value)),e()},this.input.pipe(u),this.rl=C.createInterface({input:this.input,output:u,tabSize:2,prompt:"",escapeCodeTimeout:50}),C.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),X(this.input,!0),this.output.on("resize",this.render),this.render(),new Promise((u,D)=>{this.once("submit",()=>{this.output.write(x.cursor.show),this.output.off("resize",this.render),X(this.input,!1),u(this.value)}),this.once("cancel",()=>{this.output.write(x.cursor.show),this.output.off("resize",this.render),X(this.input,!1),u(Q)})})}on(u,D){let e=this.subscribers.get(u)??[];e.push({cb:D}),this.subscribers.set(u,e)}once(u,D){let e=this.subscribers.get(u)??[];e.push({cb:D,once:!0}),this.subscribers.set(u,e)}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()}unsubscribe(){this.subscribers.clear()}onKeypress(u,D){if("error"===this.state&&(this.state="active"),D?.name&&!this._track&&uu.has(D.name)&&this.emit("cursor",uu.get(D.name)),D?.name&&uD.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,this.state="error",this.rl.write(this.value))}"error"!==this.state&&(this.state="submit")}"\x03"===u&&(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
- `),X(this.input,!1),this.rl.close(),this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let u=Y(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
9
- `).length-1;this.output.write(x.cursor.move(-999,-1*u))}render(){let u=Y(this._render(this)??"",process.stdout.columns,{hard:!0});if(u!==this._prevFrame){if("initial"===this.state)this.output.write(x.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(x.cursor.move(0,e)),this.output.write(x.erase.lines(1));let t=u.split(`
12
- `);this.output.write(t[e]),this._prevFrame=u,this.output.write(x.cursor.move(0,t.length-e-1));return}if(D&&D?.length>1){let e=D[0];this.output.write(x.cursor.move(0,e)),this.output.write(x.erase.down());let t=u.split(`
13
- `).slice(e);this.output.write(t.join(`
14
- `)),this._prevFrame=u;return}this.output.write(x.erase.down())}this.output.write(u),"initial"===this.state&&(this.state="active"),this._prevFrame=u}}};class ut extends ue{get cursor(){return this.value?0:1}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(x.cursor.move(0,-1)),this.value=u,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}globalThis.process.platform.startsWith("win");const ur="win32"!==s.platform?"linux"!==s.env.TERM:!!s.env.CI||!!s.env.WT_SESSION||!!s.env.TERMINUS_SUBLIME||"{cmd::Cmder}"===s.env.ConEmuTask||"Terminus-Sublime"===s.env.TERM_PROGRAM||"vscode"===s.env.TERM_PROGRAM||"xterm-256color"===s.env.TERM||"alacritty"===s.env.TERM||"JetBrains-JediTerm"===s.env.TERMINAL_EMULATOR,un=(u,D)=>ur?u:D,ui=un("◆","*"),uo=un("■","x"),uF=un("▲","x"),us=un("◇","o"),uC=un("│","|"),ua=un("└","—"),uE=un("●",">"),ul=un("○"," "),uc=u=>{switch(u){case"initial":case"active":return E.cyan(ui);case"cancel":return E.red(uo);case"error":return E.yellow(uF);case"submit":return E.green(us)}};var up=/*#__PURE__*/Object.freeze({__proto__:null,confirm:u=>{let D=u.active??"Yes",e=u.inactive??"No";return new ut({active:D,inactive:e,initialValue:u.initialValue??!0,render(){let t=`${E.gray(uC)}
15
- ${uc(this.state)} ${u.message}
16
- `,r=this.value?D:e;switch(this.state){case"submit":return`${t}${E.gray(uC)} ${E.dim(r)}`;case"cancel":return`${t}${E.gray(uC)} ${E.strikethrough(E.dim(r))}
17
- ${E.gray(uC)}`;default:return`${t}${E.cyan(uC)} ${this.value?`${E.green(uE)} ${D}`:`${E.dim(ul)} ${E.dim(D)}`} ${E.dim("/")} ${this.value?`${E.dim(ul)} ${E.dim(e)}`:`${E.green(uE)} ${e}`}
18
- ${E.cyan(ua)}
19
- `}}}).prompt()}});function uh(u,D,e){var t,r=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,n=[];D&&n.push(D),e&&n.push(e);do null!==(t=r.exec(u))&&n.push(function(){for(var u=[],D=0;D<arguments.length;D++)u[D]=arguments[D];for(var e=0;e<u.length;e++){var t=u[e];if("string"==typeof t)return t}}(t[1],t[6],t[0]));while(null!==t);return n}var uf=/*@__PURE__*/y(/*#__PURE__*/Object.freeze({__proto__:null,default:uh,parseArgsStringToArgv:uh})),uB={exports:{}};u=function(){var u="function"==typeof Promise,D="object"==typeof self?self:A,e="undefined"!=typeof Symbol,t="undefined"!=typeof Map,r="undefined"!=typeof Set,n="undefined"!=typeof WeakMap,i="undefined"!=typeof WeakSet,o="undefined"!=typeof DataView,F=e&&void 0!==Symbol.iterator,s=e&&void 0!==Symbol.toStringTag,C=r&&"function"==typeof Set.prototype.entries,a=t&&"function"==typeof Map.prototype.entries,E=C&&Object.getPrototypeOf(new Set().entries()),l=a&&Object.getPrototypeOf(new Map().entries()),c=F&&"function"==typeof Array.prototype[Symbol.iterator],p=c&&Object.getPrototypeOf([][Symbol.iterator]()),h=F&&"function"==typeof String.prototype[Symbol.iterator],f=h&&Object.getPrototypeOf(""[Symbol.iterator]());return function(e){var F=typeof e;if("object"!==F)return F;if(null===e)return"null";if(e===D)return"global";if(Array.isArray(e)&&(!1===s||!(Symbol.toStringTag in e)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&e===window.location)return"Location";if("object"==typeof window.document&&e===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&e===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&e===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&e instanceof window.HTMLElement){if("BLOCKQUOTE"===e.tagName)return"HTMLQuoteElement";if("TD"===e.tagName)return"HTMLTableDataCellElement";if("TH"===e.tagName)return"HTMLTableHeaderCellElement"}}var C=s&&e[Symbol.toStringTag];if("string"==typeof C)return C;var a=Object.getPrototypeOf(e);return a===RegExp.prototype?"RegExp":a===Date.prototype?"Date":u&&a===Promise.prototype?"Promise":r&&a===Set.prototype?"Set":t&&a===Map.prototype?"Map":i&&a===WeakSet.prototype?"WeakSet":n&&a===WeakMap.prototype?"WeakMap":o&&a===DataView.prototype?"DataView":t&&a===l?"Map Iterator":r&&a===E?"Set Iterator":c&&a===p?"Array Iterator":h&&a===f?"String Iterator":null===a?"Object":Object.prototype.toString.call(e).slice(8,-1)}},uB.exports=u();var ud=uB.exports;const{parseArgsStringToArgv:ug}=uf;function um(u){try{return ug(u)}catch(D){throw Error(`Could not parse the string: ${u}
20
- ${D.message}`)}}function uA(u){let D=ud(u);return -1===["a","e","i","o","u"].indexOf(String(D)[0].toLowerCase())?`a ${D}.`:`an ${D}.`}var uy=class{constructor({command:u,args:D,pid:e,stdout:t,stderr:r,output:n,status:i,signal:o,options:F}){F=F||{},t=t||("buffer"===F.encoding?Buffer.from([]):""),r=r||("buffer"===F.encoding?Buffer.from([]):""),n=n||[F.input||null,t,r],this.command=u||"",this.args=D||[],this.pid=e||0,this.stdout=n[1],this.stderr=n[2],this.output=n,this.status=i,this.signal=o||null}toString(){let u=this.command;for(let D of this.args)(D=D.replace(/"/g,'\\"')).indexOf(" ")>=0?u+=` "${D}"`:u+=` ${D}`;return u}},ub=class u extends Error{constructor(D){let e=`${D.toString()} exited with a status of ${D.status}.`;D.stderr.length>0&&(e+="\n\n"+D.stderr.toString().trim()),super(e),Object.assign(this,D),this.name=u.name}},uw={exports:{}},uv=/*@__PURE__*/y(m),u$=/*@__PURE__*/y(d);function ux(u,D,e){if("function"==typeof D&&(e=D,D={}),!e){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(e,t){ux(u,D||{},function(u,D){u?t(u):e(D)})})}n(u,D||{},function(u,t){u&&("EACCES"===u.code||D&&D.ignoreErrors)&&(u=null,t=!1),e(u,t)})}"win32"===process.platform||A.TESTING_WINDOWS?n=function(){if(e)return D;function u(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 t(D,e,t){b.stat(D,function(r,n){t(r,!r&&u(n,D,e))})}return e=1,D=t,t.sync=function(D,e){return u(b.statSync(D),D,e)},D}():n=function(){if(r)return t;function u(u,e,t){b.stat(u,function(u,r){t(u,!u&&D(r,e))})}function D(u,D){var e,t,r,n,i,o,F;return u.isFile()&&(e=u.mode,t=u.uid,r=u.gid,n=void 0!==D.uid?D.uid:process.getuid&&process.getuid(),i=void 0!==D.gid?D.gid:process.getgid&&process.getgid(),o=parseInt("100",8),F=parseInt("010",8),e&parseInt("001",8)||e&F&&r===i||e&o&&t===n||e&(o|F)&&0===n)}return r=1,t=u,u.sync=function(u,e){return D(b.statSync(u),e)},t}(),ux.sync=function(u,D){try{return n.sync(u,D||{})}catch(u){if(D&&D.ignoreErrors||"EACCES"===u.code)return!1;throw u}};const uT="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,uS=uT?";":":",uO=u=>Object.assign(Error(`not found: ${u}`),{code:"ENOENT"}),uj=(u,D)=>{let e=D.colon||uS,t=u.match(/\//)||uT&&u.match(/\\/)?[""]:[...uT?[process.cwd()]:[],...(D.path||process.env.PATH||"").split(e)],r=uT?D.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",n=uT?r.split(e):[""];return uT&&-1!==u.indexOf(".")&&""!==n[0]&&n.unshift(""),{pathEnv:t,pathExt:n,pathExtExe:r}},uk=(u,D,e)=>{"function"==typeof D&&(e=D,D={}),D||(D={});let{pathEnv:t,pathExt:r,pathExtExe:n}=uj(u,D),i=[],o=e=>new Promise((r,n)=>{if(e===t.length)return D.all&&i.length?r(i):n(uO(u));let o=t[e],s=/^".*"$/.test(o)?o.slice(1,-1):o,C=u$.join(s,u);r(F(!s&&/^\.[\\\/]/.test(u)?u.slice(0,2)+C:C,e,0))}),F=(u,e,t)=>new Promise((s,C)=>{if(t===r.length)return s(o(e+1));let a=r[t];ux(u+a,{pathExt:n},(r,n)=>{if(!r&&n){if(!D.all)return s(u+a);i.push(u+a)}return s(F(u,e,t+1))})});return e?o(0).then(u=>e(null,u),e):o(0)};uk.sync=(u,D)=>{let{pathEnv:e,pathExt:t,pathExtExe:r}=uj(u,D=D||{}),n=[];for(let i=0;i<e.length;i++){let o=e[i],F=/^".*"$/.test(o)?o.slice(1,-1):o,s=u$.join(F,u),C=!F&&/^\.[\\\/]/.test(u)?u.slice(0,2)+s:s;for(let u=0;u<t.length;u++){let e=C+t[u];try{if(ux.sync(e,{pathExt:r})){if(!D.all)return e;n.push(e)}}catch(u){}}}if(D.all&&n.length)return n;if(D.nothrow)return null;throw uO(u)};var uM={exports:{}};const u_=(u={})=>{let D=u.env||process.env;return"win32"!==(u.platform||process.platform)?"PATH":Object.keys(D).reverse().find(u=>"PATH"===u.toUpperCase())||"Path"};uM.exports=u_,uM.exports.default=u_;var uP=uM.exports;function uI(u,D){let e;let t=u.options.env||process.env,r=process.cwd(),n=null!=u.options.cwd,i=n&&void 0!==process.chdir&&!process.chdir.disabled;if(i)try{process.chdir(u.options.cwd)}catch(u){}try{e=uk.sync(u.command,{path:t[uP({env:t})],pathExt:D?u$.delimiter:void 0})}catch(u){}finally{i&&process.chdir(r)}return e&&(e=u$.resolve(n?u.options.cwd:"",e)),e}var uN={};const uL=/([()\][%!^"`<>&|;, *?])/g;uN.command=function(u){return u=u.replace(uL,"^$1")},uN.argument=function(u,D){return u=(u=(u=`${u}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"),u=(u=`"${u}"`).replace(uL,"^$1"),D&&(u=u.replace(uL,"^$1")),u};const uR=/^#!(.*)/,uW=(u="")=>{let D=u.match(uR);if(!D)return null;let[e,t]=D[0].replace(/#! ?/,"").split(" "),r=e.split("/").pop();return"env"===r?t:t?`${r} ${t}`:r},uz=function(u){return uI(u)||uI(u,!0)},uq=function(u){let D;let e=Buffer.alloc(150);try{D=b.openSync(u,"r"),b.readSync(D,e,0,150,0),b.closeSync(D)}catch(u){}return uW(e.toString())},uH="win32"===process.platform,uV=/\.(?:com|exe)$/i,uU=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i,uK="win32"===process.platform;function uY(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 uG(u,D){return uK&&1===u&&!D.file?uY(D.original,"spawn"):null}const uJ=function(u,D,e){D&&!Array.isArray(D)&&(e=D,D=null);let t={command:u,args:D=D?D.slice(0):[],options:e=Object.assign({},e),file:void 0,original:{command:u,args:D}};return e.shell?t:function(u){if(!uH)return u;let D=function(u){u.file=uz(u);let D=u.file&&uq(u.file);return D?(u.args.unshift(u.file),u.command=D,uz(u)):u.file}(u),e=!uV.test(D);if(u.options.forceShell||e){let e=uU.test(D);u.command=u$.normalize(u.command),u.command=uN.command(u.command),u.args=u.args.map(u=>uN.argument(u,e));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}(t)},uZ={hookChildProcess:function(u,D){if(!uK)return;let e=u.emit;u.emit=function(t,r){if("exit"===t){let t=uG(r,D);if(t)return e.call(u,"error",t)}return e.apply(u,arguments)}},verifyENOENT:uG,verifyENOENTSync:function(u,D){return uK&&1===u&&!D.file?uY(D.original,"spawnSync"):null},notFoundError:uY};function uQ(u,D,e){let t=uJ(u,D,e),r=uv.spawn(t.command,t.args,t.options);return uZ.hookChildProcess(r,t),r}uw.exports=uQ,uw.exports.spawn=uQ,uw.exports.sync=function(u,D,e){let t=uJ(u,D,e),r=uv.spawnSync(t.command,t.args,t.options);return r.error=r.error||uZ.verifyENOENTSync(r.status,t),r},uw.exports._parse=uJ,uw.exports._enoent=uZ;var uX=uw.exports;uX.sync;var u2="object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:"function"==typeof setImmediate?setImmediate:function(u){setTimeout(u,0)};const u3=function({command:u,args:D,pid:e,stdout:t,stderr:r,output:n,status:i,signal:o,options:F,error:s}){let C=new uy({command:u,args:D,pid:e,stdout:t,stderr:r,output:n,status:i,signal:o,options:F});if(s)throw void 0===C.status&&(C.status=null),Object.assign(s,C);if(!C.status)return C;throw new ub(C)},u0=function(u,D){if(!u)return D;D.then(function(D){u2(function(){u(null,D)})},function(D){u2(function(){u(D)})})};var u8=Object.defineProperty,u6=u=>{throw TypeError(u)},u1=(u,D,e)=>D in u?u8(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,u7=(u,D,e)=>u1(u,"symbol"!=typeof D?D+"":D,e),u9=(u,D,e)=>D.has(u)||u6("Cannot "+e),u4=(u,D,e)=>(u9(u,D,"read from private field"),e?e.call(u):D.get(u)),u5=(u,D,e)=>D.has(u)?u6("Cannot add the same private member more than once"):D instanceof WeakSet?D.add(u):D.set(u,e),Du=(u,D,e,t)=>(u9(u,D,"write to private field"),D.set(u,e),e),DD=(u,D,e,t)=>({set _(value){Du(u,D,value)},get _(){return u4(u,D,t)}}),De=class{constructor(u){u7(this,"value"),u7(this,"next"),this.value=u}},Dt=class{constructor(){u5(this,i),u5(this,o),u5(this,F),this.clear()}enqueue(u){let D=new De(u);u4(this,i)?u4(this,o).next=D:Du(this,i,D),Du(this,o,D),DD(this,F)._++}dequeue(){let u=u4(this,i);if(u)return Du(this,i,u4(this,i).next),DD(this,F)._--,u.value}clear(){Du(this,i,void 0),Du(this,o,void 0),Du(this,F,0)}get size(){return u4(this,F)}*[Symbol.iterator](){let u=u4(this,i);for(;u;)yield u.value,u=u.next}};function Dr(u){if(!((Number.isInteger(u)||u===Number.POSITIVE_INFINITY)&&u>0))throw TypeError("Expected `concurrency` to be a number from 1 and up");let D=new Dt,e=0,t=()=>{e--,D.size>0&&D.dequeue()()},r=async(u,D,r)=>{e++;let n=(async()=>u(...r))();D(n);try{await n}catch{}t()},n=(t,n,i)=>{D.enqueue(r.bind(void 0,t,n,i)),(async()=>{await Promise.resolve(),e<u&&D.size>0&&D.dequeue()()})()},i=(u,...D)=>new Promise(e=>{n(u,e,D)});return Object.defineProperties(i,{activeCount:{get:()=>e},pendingCount:{get:()=>D.size},clearQueue:{value:()=>{D.clear()}}}),i}i=new WeakMap,o=new WeakMap,F=new WeakMap;var Dn=class extends Error{constructor(u){super(),this.value=u}},Di=async(u,D)=>D(await u),Do=async u=>{let D=await Promise.all(u);if(!0===D[1])throw new Dn(D[0]);return!1};async function DF(u,D,{concurrency:e=Number.POSITIVE_INFINITY,preserveOrder:t=!0}={}){let r=Dr(e),n=[...u].map(u=>[u,r(Di,u,D)]),i=Dr(t?1:Number.POSITIVE_INFINITY);try{await Promise.all(n.map(u=>i(Do,u)))}catch(u){if(u instanceof Dn)return u.value;throw u}}var Ds={directory:"isDirectory",file:"isFile"},DC=(u,D)=>D[Ds[u]](),Da=u=>u instanceof URL?h.fileURLToPath(u):u;async function DE(u,{cwd:D=p.cwd(),type:e="file",allowSymlinks:t=!0,concurrency:r,preserveOrder:n}={}){!function(u){if(!Object.hasOwnProperty.call(Ds,u))throw Error(`Invalid type specified: ${u}`)}(e),D=Da(D);let i=t?c.promises.stat:c.promises.lstat;return DF(u,async u=>{try{let t=await i(l.resolve(D,u));return DC(e,t)}catch{return!1}},{concurrency:r,preserveOrder:n})}function Dl(u){return u instanceof URL?h.fileURLToPath(u):u}var Dc=Symbol("findUpStop");async function Dp(u,D={}){let e=l.resolve(Dl(D.cwd)??""),{root:t}=l.parse(e),r=l.resolve(e,Dl(D.stopAt??t)),n=D.limit??Number.POSITIVE_INFINITY,i=[u].flat(),o=async D=>{if("function"!=typeof u)return DE(i,D);let e=await u(D.cwd);return"string"==typeof e?DE([e],D):e},F=[];for(;;){let u=await o({...D,cwd:e});if(u===Dc||(u&&F.push(l.resolve(e,u)),e===r||F.length>=n))break;e=l.dirname(e)}return F}async function Dh(u,D={}){return(await Dp(u,{...D,limit:1}))[0]}var Df=["pnpm","yarn","npm","pnpm@6","yarn@berry","bun"],DB={"bun.lockb":"bun","pnpm-lock.yaml":"pnpm","yarn.lock":"yarn","package-lock.json":"npm","npm-shrinkwrap.json":"npm"};async function Dd(u=p.cwd()){let D,e=null,t=await Dh(Object.keys(DB),{cwd:u});if((D=t?l.resolve(t,"../package.json"):await Dh("package.json",{cwd:u}))&&c.existsSync(D))try{let u=JSON.parse(c.readFileSync(D,"utf8"));if("string"==typeof u.packageManager){let[D,t]=u.packageManager.split("@");"yarn"===D&&Number.parseInt(t)>1?e="yarn@berry":"pnpm"===D&&7>Number.parseInt(t)?e="pnpm@6":Df.includes(D)?e=D:console.warn("[ni] Unknown packageManager:",u.packageManager)}}catch{}return!e&&t&&(e=DB[l.basename(t)]),e}async function Dg(u,D={}){let e=D.packageManager||await Dd(D.cwd)||"npm",[t]=e.split("@");Array.isArray(u)||(u=[u]);let r=D.additionalArgs||[];return D.preferOffline&&("yarn@berry"===e?r.unshift("--cached"):r.unshift("--prefer-offline")),"pnpm"===t&&c.existsSync(l.resolve(D.cwd??p.cwd(),"pnpm-workspace.yaml"))&&r.unshift("-w"),function(){let{command:u,args:D,options:e,callback:t,error:r}=function(u){let D,e,t,r,n;try{var i;let n,o,F;({command:D,args:e,options:t,callback:r}=(i=u,F=(i=Array.prototype.slice.call(i))[i.length-1],"function"==typeof F&&(o=F,i.pop()),null!=(F=i[i.length-1])&&("object"!=typeof F||Array.isArray(F))||(n=F,i.pop()),{command:i.shift(),args:0===i.length?void 0:1===i.length&&Array.isArray(i[0])?i[0]:1===i.length&&""===i[0]?[]:i,options:n,callback:o}));let s=[];"string"==typeof D&&void 0===e&&(D=um(D)),Array.isArray(D)&&(s=D.slice(1),D=D[0]),"string"==typeof e&&(e=um(e)),Array.isArray(e)&&(e=s.concat(e)),null==e&&(e=s),null==t&&(t={}),t.encoding=t.encoding||"utf8",function(u,D,e,t){if(null==u)throw Error("The command to execute is missing.");if("string"!=typeof u)throw Error("The command to execute should be a string, not "+uA(u));if(!Array.isArray(D))throw Error("The command arguments should be a string or an array, not "+uA(D));for(let u=0;u<D.length;u++){let e=D[u];if("string"!=typeof e)throw Error(`The command arguments should be strings, but argument #${u+1} is `+uA(e))}if("object"!=typeof e)throw Error("The options should be an object, not "+uA(e));if(null!=t&&"function"!=typeof t)throw Error("The callback should be a function, not "+uA(t))}(D,e,t,r)}catch(u){n=u,D=String(D||""),e=(Array.isArray(e)?e:[]).map(u=>String(u||""))}return{command:D,args:e,options:t,callback:r,error:n}}(arguments);return u0(t,new Promise((t,n)=>{if(r)u3({command:u,args:D,options:e,error:r});else{let r;try{r=uX(u,D,e)}catch(t){u3({error:t,command:u,args:D,options:e})}let i=r.pid,o="buffer"===e.encoding?Buffer.from([]):"",F="buffer"===e.encoding?Buffer.from([]):"";r.stdout&&r.stdout.on("data",u=>{"string"==typeof o?o+=u.toString():o=Buffer.concat([o,u])}),r.stderr&&r.stderr.on("data",u=>{"string"==typeof F?F+=u.toString():F=Buffer.concat([F,u])}),r.on("error",t=>{try{u3({error:t,command:u,args:D,options:e,pid:i,stdout:o,stderr:F})}catch(u){n(u)}}),r.on("exit",(r,s)=>{try{t(u3({command:u,args:D,options:e,pid:i,stdout:o,stderr:F,status:r,signal:s}))}catch(u){n(u)}})}}))}(t,["yarn"===t?"add":"install",D.dev?"-D":"",...r,...u].filter(Boolean),{stdio:D.silent?"ignore":"inherit",cwd:D.cwd})}var Dm=/*#__PURE__*/Object.freeze({__proto__:null,detectPackageManager:Dd,installPackage:Dg});exports.a=Dm,exports.g=function(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u},exports.i=up,exports.r=b;