ritik 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +45 -15
- package/package.json +6 -12
- package/demo.png +0 -0
package/dist/index.js
CHANGED
|
@@ -1,21 +1,51 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import x from"update-notifier";import k from"ora";import r from"chalk";import $ from"boxen";import{select as w}from"@inquirer/prompts";import u from"open";var E="ritik",C="0.0.21",S="module",I="CLI Portfolio",z="dist/index.js",M={ritik:"dist/index.js"},j={node:">=14"},T={build:"rollup -c",start:"rollup -c && node dist/index.js",lint:"next lint",clean:"rm -rf node_modules pnpm-lock.yaml && pnpm install"},B={"@inquirer/prompts":"^8.2.0",boxen:"^8.0.1",chalk:"^5.6.2",open:"^11.0.0",ora:"^9.0.0","update-notifier":"^7.3.1"},F={"@rollup/plugin-json":"^6.1.0","@types/node":"^25.0.9","@types/update-notifier":"^6.0.8","@typescript-eslint/eslint-plugin":"^8.53.0","@typescript-eslint/parser":"^8.53.0",esbuild:"^0.27.2",eslint:"^9.39.2","eslint-import-resolver-typescript":"^4.4.4","eslint-plugin-import":"^2.32.0",rollup:"^4.55.1","rollup-plugin-esbuild":"^6.2.1",typescript:"^5.9.3"},R={access:"public",registry:"https://registry.npmjs.org/"},A=["dist","demo.png"],L={type:"git",url:"git+https://github.com/itzzritik/npx-ritik.git"},P=["ritik","portfolio","npx","cli"],U={name:"Ritik Srivastava"},D="ISC",N={url:"https://github.com/itzzritik/npx-ritik/issues"},q="https://github.com/itzzritik/npx-ritik#readme",h={name:E,version:C,type:S,description:I,main:z,bin:M,engines:j,scripts:T,dependencies:B,devDependencies:F,publishConfig:R,files:A,repository:L,keywords:P,author:U,license:D,bugs:N,homepage:q};const G={profileUrl:"https://raw.githubusercontent.com/itzzritik/itzzritik/refs/heads/main/profile/profile.json"},a={theme:{primary:"cyanBright",secondary:"whiteBright",accent:"#f1c40f",borderStyle:"single",borderColor:"cyan"},ui:{title:"Portfolio",npx:"Npx",cmdTip:"Tip: Try cmd/ctrl + click on the links above",footer:["I am actively seeking new opportunities and welcome any inquiries","Please feel free to contact me for questions or casual greetings","I will make every effort to respond promptly","My inbox remains open for your correspondence."]},messages:{email:{message:"Send me an email?",description:"Send a message \u2014 I promise low-latency replies.",success:"Email launched \u2014 preparing witty yet professional response."},resume:{message:"Checkout my Resume?",description:"Pulling the latest version of my resume from production.",success:"Thanks for reading \u2014 hope my resume speaks your language."},meeting:{message:"Schedule a Meeting?",description:"Scheduling a sync \u2014 adding coffee to the calendar... \u2615",success:"Meeting scheduled \u2014 time to build something great together."},exit:{message:"Exit.",description:"Ending session, but not the connection.",success:"Session ended \u2014 but DMs are always open."}}},f=22,y=52,v=f+y+2,g=(e,s,i)=>r.hex(i).dim.bgWhite.inverse(`${e.padStart(f," ")}: ${s.padEnd(y," ")}`),_=e=>e.charAt(0).toUpperCase()+e.slice(1),d=(e,s=" ")=>e.padStart(e.length+Math.floor((v-e.length)/2),s).padEnd(v,s);function H(e){const{theme:s,ui:i}=e.config,c=e.personal.name.split(" ")?.[0],l=e.personal.website||`https://${e.personal.displayEmail.replace(/.*@/,"")}`,o=r[s.primary]||r.cyanBright,p=r[s.secondary]||r.whiteBright,t=[null,r.bold(o(d(e.personal.name))),p(d(e.personal.currentRole)),null];e.socialHandles.forEach(n=>{const b=n.color;t.push(g(_(n.platform),`${n.url}/${n.handle}`,b))}),t.push(g(i.title,l,s.accent)),t.push(g(i.npx,e.personal.npx||`npx ${c.toLowerCase()}`,"#cb3837")),t.push(null),i?.footer&&i.footer.forEach(n=>{t.push(r.italic(p(d(n))))}),t.push(null);const m=$(t.join(`
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
`+i.exit.description)}],t={email:()=>{u(`mailto:${e.personal.displayEmail}?subject=Hi%20${s}!`),console.log(`
|
|
2
|
+
import{exec as KD}from"node:child_process";import zD from"node:https";import x from"node:process";import ZD from"node:os";import Hu from"node:tty";import{styleText as w,stripVTControlCharacters as QD}from"node:util";import*as JD from"node:readline";import{AsyncLocalStorage as XD,AsyncResource as fu}from"node:async_hooks";import ue from"stream";import De from"tty";var ee="ritik",te="0.0.23",re="module",ne="CLI Portfolio",ie="dist/index.js",Fe={ritik:"dist/index.js"},se={node:">=14"},oe={build:"rollup -c",start:"rollup -c && node dist/index.js",lint:"next lint",clean:"rm -rf node_modules pnpm-lock.yaml && pnpm install"},le={"@inquirer/prompts":"^8.2.0","@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^16.0.3","@types/node":"^25.0.9","@typescript-eslint/eslint-plugin":"^8.53.0","@typescript-eslint/parser":"^8.53.0",boxen:"^8.0.1",esbuild:"^0.27.2",eslint:"^9.39.2","eslint-import-resolver-typescript":"^4.4.4","eslint-plugin-import":"^2.32.0",rollup:"^4.55.1","rollup-plugin-esbuild":"^6.2.1",typescript:"^5.9.3"},ae={access:"public",registry:"https://registry.npmjs.org/"},Ce=["dist"],Ee={type:"git",url:"git+https://github.com/itzzritik/npx-ritik.git"},ce=["ritik","portfolio","npx","cli"],he={name:"Ritik Srivastava"},fe="ISC",Be={url:"https://github.com/itzzritik/npx-ritik/issues"},de="https://github.com/itzzritik/npx-ritik#readme",ru={name:ee,version:te,type:re,description:ne,main:ie,bin:Fe,engines:se,scripts:oe,devDependencies:le,publishConfig:ae,files:Ce,repository:Ee,keywords:ce,author:he,license:fe,bugs:Be,homepage:de};const ge={profileUrl:"https://raw.githubusercontent.com/itzzritik/itzzritik/refs/heads/main/profile/profile.json"},j={theme:{primary:"cyanBright",secondary:"whiteBright",accent:"#f1c40f",borderStyle:"single",borderColor:"cyan"},ui:{title:"Portfolio",npx:"Npx",cmdTip:"Tip: Try cmd/ctrl + click on the links above",footer:["I am actively seeking new opportunities and welcome any inquiries","Please feel free to contact me for questions or casual greetings","I will make every effort to respond promptly","My inbox remains open for your correspondence."]},messages:{email:{message:"Send me an email?",description:"Send a message \u2014 I promise low-latency replies.",success:"Email launched \u2014 preparing witty yet professional response."},resume:{message:"Checkout my Resume?",description:"Pulling the latest version of my resume from production.",success:"Thanks for reading \u2014 hope my resume speaks your language."},meeting:{message:"Schedule a Meeting?",description:"Scheduling a sync \u2014 adding coffee to the calendar... \u2615",success:"Meeting scheduled \u2014 time to build something great together."},exit:{message:"Exit.",description:"Ending session, but not the connection.",success:"Session ended \u2014 but DMs are always open."}}},pe=async()=>{const u=await fetch(ge.profileUrl);if(!u.ok)throw new Error(`Failed to fetch profile: ${u.statusText}`);return u.json()},Bu=u=>{let D;const e=process.platform;e==="darwin"?D=`open "${u}"`:e==="win32"?D=`start "" "${u}"`:D=`xdg-open "${u}"`,KD(D,t=>{})},me=async u=>new Promise(D=>{const e=zD.get(`https://registry.npmjs.org/${u.name}/latest`,{timeout:3e3,headers:{"User-Agent":`npx-${u.name}`}},t=>{let r="";t.on("data",n=>r+=n),t.on("end",()=>{try{const n=JSON.parse(r).version;if(n&&n!==u.version){D(n);return}}catch{}D(null)})});e.on("error",()=>D(null)),e.on("timeout",()=>{e.destroy(),D(null)})}),O="\x1B[0m",Ae=u=>{const D=parseInt(u.replace("#",""),16);return[D>>16&255,D>>8&255,D&255]},U={bold:u=>`\x1B[1m${u}${O}`,dim:u=>`\x1B[2m${u}${O}`,italic:u=>`\x1B[3m${u}${O}`,inverse:u=>`\x1B[7m${u}${O}`,bgWhite:u=>`\x1B[47m${u}${O}`,cyanBright:u=>`\x1B[96m${u}${O}`,whiteBright:u=>`\x1B[97m${u}${O}`,hex:u=>{const[D,e,t]=Ae(u);return r=>`\x1B[38;2;${D};${e};${t}m${r}${O}`}},Y=(u=D=>D)=>{const D=e=>u(e);return["dim","bold","italic","inverse","bgWhite","cyanBright","whiteBright"].forEach(e=>{Object.defineProperty(D,e,{get:()=>Y(t=>u(U[e](t)))})}),D},b={...U,hex:u=>{const D=U.hex(u);return Y(D)},bold:Y(U.bold),dim:Y(U.dim),italic:Y(U.italic),cyanBright:U.cyanBright,whiteBright:U.whiteBright};var be=Object.defineProperty,xe=(u,D,e)=>D in u?be(u,D,{enumerable:!0,configurable:!0,writable:!0,value:e}):u[D]=e,nu=(u,D,e)=>xe(u,typeof D!="symbol"?D+"":D,e);const Yu=22,Ku=52,zu=Yu+Ku+2,du=(u,D=" ")=>u.padStart(u.length+Math.floor((zu-u.length)/2),D).padEnd(zu,D),we=u=>u.charAt(0).toUpperCase()+u.slice(1),gu=(u,D,e)=>b.hex(e).dim.bgWhite.inverse(`${u.padStart(Yu," ")}: ${D.padEnd(Ku," ")}`);class ye{constructor(D){nu(this,"frames",["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]),nu(this,"interval",null),nu(this,"current",0),nu(this,"text"),this.text=D}start(){return process.stdout.write("\x1B[?25l"),this.interval=setInterval(()=>{process.stdout.write(`\r${b.cyanBright(this.frames[this.current])} ${this.text}`),this.current=(this.current+1)%this.frames.length},80),this}stop(){return this.interval&&(clearInterval(this.interval),this.interval=null,process.stdout.write("\r\x1B[K"),process.stdout.write("\x1B[?25h")),this}succeed(D){return this.stop(),console.log(`${b.hex("#00FF00")("\u2714")} ${D||this.text}`),this}fail(D){return this.stop(),console.log(`${b.hex("#FF0000")("\u2716")} ${D||this.text}`),this}}function Re({onlyFirst:u=!1}={}){const r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,u?void 0:"g")}const Le=Re();function Zu(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(Le,"")}function ve(u){return u===161||u===164||u===167||u===168||u===170||u===173||u===174||u>=176&&u<=180||u>=182&&u<=186||u>=188&&u<=191||u===198||u===208||u===215||u===216||u>=222&&u<=225||u===230||u>=232&&u<=234||u===236||u===237||u===240||u===242||u===243||u>=247&&u<=250||u===252||u===254||u===257||u===273||u===275||u===283||u===294||u===295||u===299||u>=305&&u<=307||u===312||u>=319&&u<=322||u===324||u>=328&&u<=331||u===333||u===338||u===339||u===358||u===359||u===363||u===462||u===464||u===466||u===468||u===470||u===472||u===474||u===476||u===593||u===609||u===708||u===711||u>=713&&u<=715||u===717||u===720||u>=728&&u<=731||u===733||u===735||u>=768&&u<=879||u>=913&&u<=929||u>=931&&u<=937||u>=945&&u<=961||u>=963&&u<=969||u===1025||u>=1040&&u<=1103||u===1105||u===8208||u>=8211&&u<=8214||u===8216||u===8217||u===8220||u===8221||u>=8224&&u<=8226||u>=8228&&u<=8231||u===8240||u===8242||u===8243||u===8245||u===8251||u===8254||u===8308||u===8319||u>=8321&&u<=8324||u===8364||u===8451||u===8453||u===8457||u===8467||u===8470||u===8481||u===8482||u===8486||u===8491||u===8531||u===8532||u>=8539&&u<=8542||u>=8544&&u<=8555||u>=8560&&u<=8569||u===8585||u>=8592&&u<=8601||u===8632||u===8633||u===8658||u===8660||u===8679||u===8704||u===8706||u===8707||u===8711||u===8712||u===8715||u===8719||u===8721||u===8725||u===8730||u>=8733&&u<=8736||u===8739||u===8741||u>=8743&&u<=8748||u===8750||u>=8756&&u<=8759||u===8764||u===8765||u===8776||u===8780||u===8786||u===8800||u===8801||u>=8804&&u<=8807||u===8810||u===8811||u===8814||u===8815||u===8834||u===8835||u===8838||u===8839||u===8853||u===8857||u===8869||u===8895||u===8978||u>=9312&&u<=9449||u>=9451&&u<=9547||u>=9552&&u<=9587||u>=9600&&u<=9615||u>=9618&&u<=9621||u===9632||u===9633||u>=9635&&u<=9641||u===9650||u===9651||u===9654||u===9655||u===9660||u===9661||u===9664||u===9665||u>=9670&&u<=9672||u===9675||u>=9678&&u<=9681||u>=9698&&u<=9701||u===9711||u===9733||u===9734||u===9737||u===9742||u===9743||u===9756||u===9758||u===9792||u===9794||u===9824||u===9825||u>=9827&&u<=9829||u>=9831&&u<=9834||u===9836||u===9837||u===9839||u===9886||u===9887||u===9919||u>=9926&&u<=9933||u>=9935&&u<=9939||u>=9941&&u<=9953||u===9955||u===9960||u===9961||u>=9963&&u<=9969||u===9972||u>=9974&&u<=9977||u===9979||u===9980||u===9982||u===9983||u===10045||u>=10102&&u<=10111||u>=11094&&u<=11097||u>=12872&&u<=12879||u>=57344&&u<=63743||u>=65024&&u<=65039||u===65533||u>=127232&&u<=127242||u>=127248&&u<=127277||u>=127280&&u<=127337||u>=127344&&u<=127373||u===127375||u===127376||u>=127387&&u<=127404||u>=917760&&u<=917999||u>=983040&&u<=1048573||u>=1048576&&u<=1114109}function Se(u){return u===12288||u>=65281&&u<=65376||u>=65504&&u<=65510}function Te(u){return u>=4352&&u<=4447||u===8986||u===8987||u===9001||u===9002||u>=9193&&u<=9196||u===9200||u===9203||u===9725||u===9726||u===9748||u===9749||u>=9776&&u<=9783||u>=9800&&u<=9811||u===9855||u>=9866&&u<=9871||u===9875||u===9889||u===9898||u===9899||u===9917||u===9918||u===9924||u===9925||u===9934||u===9940||u===9962||u===9970||u===9971||u===9973||u===9978||u===9981||u===9989||u===9994||u===9995||u===10024||u===10060||u===10062||u>=10067&&u<=10069||u===10071||u>=10133&&u<=10135||u===10160||u===10175||u===11035||u===11036||u===11088||u===11093||u>=11904&&u<=11929||u>=11931&&u<=12019||u>=12032&&u<=12245||u>=12272&&u<=12287||u>=12289&&u<=12350||u>=12353&&u<=12438||u>=12441&&u<=12543||u>=12549&&u<=12591||u>=12593&&u<=12686||u>=12688&&u<=12773||u>=12783&&u<=12830||u>=12832&&u<=12871||u>=12880&&u<=42124||u>=42128&&u<=42182||u>=43360&&u<=43388||u>=44032&&u<=55203||u>=63744&&u<=64255||u>=65040&&u<=65049||u>=65072&&u<=65106||u>=65108&&u<=65126||u>=65128&&u<=65131||u>=94176&&u<=94180||u>=94192&&u<=94198||u>=94208&&u<=101589||u>=101631&&u<=101662||u>=101760&&u<=101874||u>=110576&&u<=110579||u>=110581&&u<=110587||u===110589||u===110590||u>=110592&&u<=110882||u===110898||u>=110928&&u<=110930||u===110933||u>=110948&&u<=110951||u>=110960&&u<=111355||u>=119552&&u<=119638||u>=119648&&u<=119670||u===126980||u===127183||u===127374||u>=127377&&u<=127386||u>=127488&&u<=127490||u>=127504&&u<=127547||u>=127552&&u<=127560||u===127568||u===127569||u>=127584&&u<=127589||u>=127744&&u<=127776||u>=127789&&u<=127797||u>=127799&&u<=127868||u>=127870&&u<=127891||u>=127904&&u<=127946||u>=127951&&u<=127955||u>=127968&&u<=127984||u===127988||u>=127992&&u<=128062||u===128064||u>=128066&&u<=128252||u>=128255&&u<=128317||u>=128331&&u<=128334||u>=128336&&u<=128359||u===128378||u===128405||u===128406||u===128420||u>=128507&&u<=128591||u>=128640&&u<=128709||u===128716||u>=128720&&u<=128722||u>=128725&&u<=128728||u>=128732&&u<=128735||u===128747||u===128748||u>=128756&&u<=128764||u>=128992&&u<=129003||u===129008||u>=129292&&u<=129338||u>=129340&&u<=129349||u>=129351&&u<=129535||u>=129648&&u<=129660||u>=129664&&u<=129674||u>=129678&&u<=129734||u===129736||u>=129741&&u<=129756||u>=129759&&u<=129770||u>=129775&&u<=129784||u>=131072&&u<=196605||u>=196608&&u<=262141}function $e(u){if(!Number.isSafeInteger(u))throw new TypeError(`Expected a code point, got \`${typeof u}\`.`)}function Ie(u,{ambiguousAsWide:D=!1}={}){return $e(u),Se(u)||Te(u)||D&&ve(u)?2:1}var Oe=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;const Ue=new Intl.Segmenter,_e=/^\p{Default_Ignorable_Code_Point}$/u;function T(u,D={}){if(typeof u!="string"||u.length===0)return 0;const{ambiguousIsNarrow:e=!0,countAnsiEscapeCodes:t=!1}=D;if(t||(u=Zu(u)),u.length===0)return 0;let r=0;const n={ambiguousAsWide:!e};for(const{segment:F}of Ue.segment(u)){const i=F.codePointAt(0);if(!(i<=31||i>=127&&i<=159)&&!(i>=8203&&i<=8207||i===65279)&&!(i>=768&&i<=879||i>=6832&&i<=6911||i>=7616&&i<=7679||i>=8400&&i<=8447||i>=65056&&i<=65071)&&!(i>=55296&&i<=57343)&&!(i>=65024&&i<=65039)&&!_e.test(F)){if(Oe().test(F)){r+=2;continue}r+=Ie(i,n)}}return r}const pu=10,Qu=(u=0)=>D=>`\x1B[${D+u}m`,Ju=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,Xu=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,d={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(d.modifier);const ke=Object.keys(d.color),Me=Object.keys(d.bgColor);[...ke,...Me];function Ne(){const u=new Map;for(const[D,e]of Object.entries(d)){for(const[t,r]of Object.entries(e))d[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[t]=d[t],u.set(r[0],r[1]);Object.defineProperty(d,D,{value:e,enumerable:!1})}return Object.defineProperty(d,"codes",{value:u,enumerable:!1}),d.color.close="\x1B[39m",d.bgColor.close="\x1B[49m",d.color.ansi=Qu(),d.color.ansi256=Ju(),d.color.ansi16m=Xu(),d.bgColor.ansi=Qu(pu),d.bgColor.ansi256=Ju(pu),d.bgColor.ansi16m=Xu(pu),Object.defineProperties(d,{rgbToAnsi256:{value(D,e,t){return D===e&&e===t?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5)},enumerable:!1},hexToRgb:{value(D){const e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[t]=e;t.length===3&&(t=[...t].map(n=>n+n).join(""));const r=Number.parseInt(t,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>d.rgbToAnsi256(...d.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,t,r;if(D>=232)e=((D-232)*10+8)/255,t=e,r=e;else{D-=16;const i=D%36;e=Math.floor(D/36)/5,t=Math.floor(i/6)/5,r=i%6/5}const n=Math.max(e,t,r)*2;if(n===0)return 30;let F=30+(Math.round(r)<<2|Math.round(t)<<1|Math.round(e));return n===2&&(F+=60),F},enumerable:!1},rgbToAnsi:{value:(D,e,t)=>d.ansi256ToAnsi(d.rgbToAnsi256(D,e,t)),enumerable:!1},hexToAnsi:{value:D=>d.ansi256ToAnsi(d.hexToAnsi256(D)),enumerable:!1}}),d}const $=Ne();function S(u,D=globalThis.Deno?globalThis.Deno.args:x.argv){const e=u.startsWith("-")?"":u.length===1?"-":"--",t=D.indexOf(e+u),r=D.indexOf("--");return t!==-1&&(r===-1||t<r)}const{env:g}=x;let iu;S("no-color")||S("no-colors")||S("color=false")||S("color=never")?iu=0:(S("color")||S("colors")||S("color=true")||S("color=always"))&&(iu=1);function je(){if("FORCE_COLOR"in g)return g.FORCE_COLOR==="true"?1:g.FORCE_COLOR==="false"?0:g.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(g.FORCE_COLOR,10),3)}function Pe(u){return u===0?!1:{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}function We(u,{streamIsTTY:D,sniffFlags:e=!0}={}){const t=je();t!==void 0&&(iu=t);const r=e?iu:t;if(r===0)return 0;if(e){if(S("color=16m")||S("color=full")||S("color=truecolor"))return 3;if(S("color=256"))return 2}if("TF_BUILD"in g&&"AGENT_NAME"in g)return 1;if(u&&!D&&r===void 0)return 0;const n=r||0;if(g.TERM==="dumb")return n;if(x.platform==="win32"){const F=ZD.release().split(".");return Number(F[0])>=10&&Number(F[2])>=10586?Number(F[2])>=14931?3:2:1}if("CI"in g)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(F=>F in g)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(F=>F in g)||g.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in g)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(g.TEAMCITY_VERSION)?1:0;if(g.COLORTERM==="truecolor"||g.TERM==="xterm-kitty"||g.TERM==="xterm-ghostty"||g.TERM==="wezterm")return 3;if("TERM_PROGRAM"in g){const F=Number.parseInt((g.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(g.TERM_PROGRAM){case"iTerm.app":return F>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(g.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(g.TERM)||"COLORTERM"in g?1:n}function uD(u,D={}){const e=We(u,{streamIsTTY:u&&u.isTTY,...D});return Pe(e)}const Ge={stdout:uD({isTTY:Hu.isatty(1)}),stderr:uD({isTTY:Hu.isatty(2)})};function qe(u,D,e){let t=u.indexOf(D);if(t===-1)return u;const r=D.length;let n=0,F="";do F+=u.slice(n,t)+D+e,n=t+r,t=u.indexOf(D,n);while(t!==-1);return F+=u.slice(n),F}function Ve(u,D,e,t){let r=0,n="";do{const F=u[t-1]==="\r";n+=u.slice(r,F?t-1:t)+D+(F?`\r
|
|
3
|
+
`:`
|
|
4
|
+
`)+e,r=t+1,t=u.indexOf(`
|
|
5
|
+
`,r)}while(t!==-1);return n+=u.slice(r),n}const{stdout:DD,stderr:eD}=Ge,mu=Symbol("GENERATOR"),P=Symbol("STYLER"),K=Symbol("IS_EMPTY"),tD=["ansi","ansi","ansi256","ansi16m"],W=Object.create(null),He=(u,D={})=>{if(D.level&&!(Number.isInteger(D.level)&&D.level>=0&&D.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const e=DD?DD.level:0;u.level=D.level===void 0?e:D.level},Ye=u=>{const D=(...e)=>e.join(" ");return He(D,u),Object.setPrototypeOf(D,z.prototype),D};function z(u){return Ye(u)}Object.setPrototypeOf(z.prototype,Function.prototype);for(const[u,D]of Object.entries($))W[u]={get(){const e=Fu(this,bu(D.open,D.close,this[P]),this[K]);return Object.defineProperty(this,u,{value:e}),e}};W.visible={get(){const u=Fu(this,this[P],!0);return Object.defineProperty(this,"visible",{value:u}),u}};const Au=(u,D,e,...t)=>u==="rgb"?D==="ansi16m"?$[e].ansi16m(...t):D==="ansi256"?$[e].ansi256($.rgbToAnsi256(...t)):$[e].ansi($.rgbToAnsi(...t)):u==="hex"?Au("rgb",D,e,...$.hexToRgb(...t)):$[e][u](...t),Ke=["rgb","hex","ansi256"];for(const u of Ke){W[u]={get(){const{level:e}=this;return function(...t){const r=bu(Au(u,tD[e],"color",...t),$.color.close,this[P]);return Fu(this,r,this[K])}}};const D="bg"+u[0].toUpperCase()+u.slice(1);W[D]={get(){const{level:e}=this;return function(...t){const r=bu(Au(u,tD[e],"bgColor",...t),$.bgColor.close,this[P]);return Fu(this,r,this[K])}}}}const ze=Object.defineProperties(()=>{},{...W,level:{enumerable:!0,get(){return this[mu].level},set(u){this[mu].level=u}}}),bu=(u,D,e)=>{let t,r;return e===void 0?(t=u,r=D):(t=e.openAll+u,r=D+e.closeAll),{open:u,close:D,openAll:t,closeAll:r,parent:e}},Fu=(u,D,e)=>{const t=(...r)=>Ze(t,r.length===1?""+r[0]:r.join(" "));return Object.setPrototypeOf(t,ze),t[mu]=u,t[P]=D,t[K]=e,t},Ze=(u,D)=>{if(u.level<=0||!D)return u[K]?"":D;let e=u[P];if(e===void 0)return D;const{openAll:t,closeAll:r}=e;if(D.includes("\x1B"))for(;e!==void 0;)D=qe(D,e.close,e.open),e=e.parent;const n=D.indexOf(`
|
|
6
|
+
`);return n!==-1&&(D=Ve(D,r,t,n)),t+D+r};Object.defineProperties(z.prototype,W);const G=z();z({level:eD?eD.level:0});function rD(u){let D=0;for(const e of u.split(`
|
|
7
|
+
`))D=Math.max(D,T(e));return D}function su(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var ou={exports:{}},Qe={topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},Je={topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},Xe={topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},ut={topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},Dt={topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},et={topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},tt={topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},rt={topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"},nt={single:Qe,double:Je,round:Xe,bold:ut,singleDouble:Dt,doubleSingle:et,classic:tt,arrow:rt},nD;function it(){if(nD)return ou.exports;nD=1;const u=nt;return ou.exports=u,ou.exports.default=u,ou.exports}var Ft=it(),st=su(Ft);const ot=/[\p{Lu}]/u,lt=/[\p{Ll}]/u,iD=/^[\p{Lu}](?![\p{Lu}])/gu,FD=/([\p{Alpha}\p{N}_]|$)/u,xu=/[_.\- ]+/,at=new RegExp("^"+xu.source),sD=new RegExp(xu.source+FD.source,"gu"),oD=new RegExp("\\d+"+FD.source,"gu"),Ct=(u,D,e,t)=>{let r=!1,n=!1,F=!1,i=!1;for(let l=0;l<u.length;l++){const s=u[l];i=l>2?u[l-3]==="-":!0,r&&ot.test(s)?(u=u.slice(0,l)+"-"+u.slice(l),r=!1,F=n,n=!0,l++):n&&F&<.test(s)&&(!i||t)?(u=u.slice(0,l-1)+"-"+u.slice(l-1),F=n,n=!1,r=!0):(r=D(s)===s&&e(s)!==s,F=n,n=e(s)===s&&D(s)!==s)}return u},Et=(u,D)=>(iD.lastIndex=0,u.replaceAll(iD,e=>D(e))),ct=(u,D)=>(sD.lastIndex=0,oD.lastIndex=0,u.replaceAll(oD,(e,t,r)=>["_","-"].includes(u.charAt(r+e.length))?e:D(e)).replaceAll(sD,(e,t)=>D(t)));function ht(u,D){if(!(typeof u=="string"||Array.isArray(u)))throw new TypeError("Expected the input to be `string | string[]`");if(D={pascalCase:!1,preserveConsecutiveUppercase:!1,...D},Array.isArray(u)?u=u.map(n=>n.trim()).filter(n=>n.length).join("-"):u=u.trim(),u.length===0)return"";const e=D.locale===!1?n=>n.toLowerCase():n=>n.toLocaleLowerCase(D.locale),t=D.locale===!1?n=>n.toUpperCase():n=>n.toLocaleUpperCase(D.locale);return u.length===1?xu.test(u)?"":D.pascalCase?t(u):e(u):(u!==e(u)&&(u=Ct(u,e,t,D.preserveConsecutiveUppercase)),u=u.replace(at,""),u=D.preserveConsecutiveUppercase?Et(u,e):e(u),D.pascalCase&&(u=t(u.charAt(0))+u.slice(1)),ct(u,t))}var lu={exports:{}},wu,lD;function ft(){return lD||(lD=1,wu=({onlyFirst:u=!1}={})=>{const D=["[\\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=><~]))"].join("|");return new RegExp(D,u?void 0:"g")}),wu}var yu,aD;function Bt(){if(aD)return yu;aD=1;const u=ft();return yu=D=>typeof D=="string"?D.replace(u(),""):D,yu}var au={exports:{}},CD;function dt(){if(CD)return au.exports;CD=1;const u=D=>Number.isNaN(D)?!1:D>=4352&&(D<=4447||D===9001||D===9002||11904<=D&&D<=12871&&D!==12351||12880<=D&&D<=19903||19968<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65131||65281<=D&&D<=65376||65504<=D&&D<=65510||110592<=D&&D<=110593||127488<=D&&D<=127569||131072<=D&&D<=262141);return au.exports=u,au.exports.default=u,au.exports}var Ru,ED;function gt(){return ED||(ED=1,Ru=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\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\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])|\uD83C[\uDF3E\uDF73\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])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\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])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\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\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\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\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\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\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*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\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\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\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[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}),Ru}var cD;function pt(){if(cD)return lu.exports;cD=1;const u=Bt(),D=dt(),e=gt(),t=r=>{if(typeof r!="string"||r.length===0||(r=u(r),r.length===0))return 0;r=r.replace(e()," ");let n=0;for(let F=0;F<r.length;F++){const i=r.codePointAt(F);i<=31||i>=127&&i<=159||i>=768&&i<=879||(i>65535&&F++,n+=D(i)?2:1)}return n};return lu.exports=t,lu.exports.default=t,lu.exports}var Lu,hD;function mt(){if(hD)return Lu;hD=1;const u=pt();function D(r,n){if(!r)return r;n=n||{};const F=n.align||"center";if(F==="left")return r;const i=n.split||`
|
|
8
|
+
`,l=n.pad||" ",s=F!=="right"?e:t;let a=!1;Array.isArray(r)||(a=!0,r=String(r).split(i));let o,E=0;return r=r.map(function(C){return C=String(C),o=u(C),E=Math.max(o,E),{str:C,width:o}}).map(function(C){return new Array(s(E,C.width)+1).join(l)+C.str}),a?r.join(i):r}D.left=function(n){return D(n,{align:"left"})},D.center=function(n){return D(n,{align:"center"})},D.right=function(n){return D(n,{align:"right"})},Lu=D;function e(r,n){return Math.floor((r-n)/2)}function t(r,n){return r-n}return Lu}var At=mt(),fD=su(At);const vu=10,BD=(u=0)=>D=>`\x1B[${D+u}m`,dD=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,gD=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,p={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(p.modifier);const bt=Object.keys(p.color),xt=Object.keys(p.bgColor);[...bt,...xt];function wt(){const u=new Map;for(const[D,e]of Object.entries(p)){for(const[t,r]of Object.entries(e))p[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[t]=p[t],u.set(r[0],r[1]);Object.defineProperty(p,D,{value:e,enumerable:!1})}return Object.defineProperty(p,"codes",{value:u,enumerable:!1}),p.color.close="\x1B[39m",p.bgColor.close="\x1B[49m",p.color.ansi=BD(),p.color.ansi256=dD(),p.color.ansi16m=gD(),p.bgColor.ansi=BD(vu),p.bgColor.ansi256=dD(vu),p.bgColor.ansi16m=gD(vu),Object.defineProperties(p,{rgbToAnsi256:{value(D,e,t){return D===e&&e===t?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5)},enumerable:!1},hexToRgb:{value(D){const e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[t]=e;t.length===3&&(t=[...t].map(n=>n+n).join(""));const r=Number.parseInt(t,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>p.rgbToAnsi256(...p.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,t,r;if(D>=232)e=((D-232)*10+8)/255,t=e,r=e;else{D-=16;const i=D%36;e=Math.floor(D/36)/5,t=Math.floor(i/6)/5,r=i%6/5}const n=Math.max(e,t,r)*2;if(n===0)return 30;let F=30+(Math.round(r)<<2|Math.round(t)<<1|Math.round(e));return n===2&&(F+=60),F},enumerable:!1},rgbToAnsi:{value:(D,e,t)=>p.ansi256ToAnsi(p.rgbToAnsi256(D,e,t)),enumerable:!1},hexToAnsi:{value:D=>p.ansi256ToAnsi(p.hexToAnsi256(D)),enumerable:!1}}),p}const yt=wt(),Cu=new Set(["\x1B","\x9B"]),Rt=39,Su="\x07",pD="[",Lt="]",mD="m",Eu=`${Lt}8;;`,AD=u=>`${Cu.values().next().value}${pD}${u}${mD}`,bD=u=>`${Cu.values().next().value}${Eu}${u}${Su}`,vt=u=>u.split(" ").map(D=>T(D)),Tu=(u,D,e)=>{const t=[...D];let r=!1,n=!1,F=T(Zu(u.at(-1)));for(const[i,l]of t.entries()){const s=T(l);if(F+s<=e?u[u.length-1]+=l:(u.push(l),F=0),Cu.has(l)&&(r=!0,n=t.slice(i+1,i+1+Eu.length).join("")===Eu),r){n?l===Su&&(r=!1,n=!1):l===mD&&(r=!1);continue}F+=s,F===e&&i<t.length-1&&(u.push(""),F=0)}!F&&u.at(-1).length>0&&u.length>1&&(u[u.length-2]+=u.pop())},St=u=>{const D=u.split(" ");let e=D.length;for(;e>0&&!(T(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},Tt=(u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let t="",r,n;const F=vt(u);let i=[""];for(const[o,E]of u.split(" ").entries()){e.trim!==!1&&(i[i.length-1]=i.at(-1).trimStart());let C=T(i.at(-1));if(o!==0&&(C>=D&&(e.wordWrap===!1||e.trim===!1)&&(i.push(""),C=0),(C>0||e.trim===!1)&&(i[i.length-1]+=" ",C++)),e.hard&&F[o]>D){const f=D-C,B=1+Math.floor((F[o]-f-1)/D);Math.floor((F[o]-1)/D)<B&&i.push(""),Tu(i,E,D);continue}if(C+F[o]>D&&C>0&&F[o]>0){if(e.wordWrap===!1&&C<D){Tu(i,E,D);continue}i.push("")}if(C+F[o]>D&&e.wordWrap===!1){Tu(i,E,D);continue}i[i.length-1]+=E}e.trim!==!1&&(i=i.map(o=>St(o)));const l=i.join(`
|
|
9
|
+
`),s=[...l];let a=0;for(const[o,E]of s.entries()){if(t+=E,Cu.has(E)){const{groups:f}=new RegExp(`(?:\\${pD}(?<code>\\d+)m|\\${Eu}(?<uri>.*)${Su})`).exec(l.slice(a))||{groups:{}};if(f.code!==void 0){const B=Number.parseFloat(f.code);r=B===Rt?void 0:B}else f.uri!==void 0&&(n=f.uri.length===0?void 0:f.uri)}const C=yt.codes.get(Number(r));s[o+1]===`
|
|
10
|
+
`?(n&&(t+=bD("")),r&&C&&(t+=AD(C))):E===`
|
|
11
|
+
`&&(r&&C&&(t+=AD(r)),n&&(t+=bD(n))),a+=E.length}return t};function $u(u,D,e){return String(u).normalize().replaceAll(`\r
|
|
12
|
+
`,`
|
|
13
|
+
`).split(`
|
|
14
|
+
`).map(t=>Tt(t,D,e)).join(`
|
|
15
|
+
`)}const _=`
|
|
16
|
+
`,L=" ",Z="none",xD=()=>{const{env:u,stdout:D,stderr:e}=x;return D?.columns?D.columns:e?.columns?e.columns:u.COLUMNS?Number.parseInt(u.COLUMNS,10):80},wD=u=>typeof u=="number"?{top:u,right:u*3,bottom:u,left:u*3}:{top:0,right:0,bottom:0,left:0,...u},Q=u=>u===Z?0:2,$t=u=>{const D=["topLeft","topRight","bottomRight","bottomLeft","left","right","top","bottom"];let e;if(u===Z){u={};for(const t of D)u[t]=""}if(typeof u=="string"){if(e=st[u],!e)throw new TypeError(`Invalid border style: ${u}`)}else{typeof u?.vertical=="string"&&(u.left=u.vertical,u.right=u.vertical),typeof u?.horizontal=="string"&&(u.top=u.horizontal,u.bottom=u.horizontal);for(const t of D)if(u[t]===null||typeof u[t]!="string")throw new TypeError(`Invalid border style: ${t}`);e=u}return e},It=(u,D,e)=>{let t="";const r=T(u);switch(e){case"left":{t=u+D.slice(r);break}case"right":{t=D.slice(r)+u;break}default:{D=D.slice(r),D.length%2===1?(D=D.slice(Math.floor(D.length/2)),t=D.slice(1)+u+D):(D=D.slice(D.length/2),t=D+u+D);break}}return t},Ot=(u,{padding:D,width:e,textAlignment:t,height:r})=>{u=fD(u,{align:t});let n=u.split(_);const F=rD(u),i=e-D.left-D.right;if(F>i){const a=[];for(const o of n){const E=$u(o,i,{hard:!0}),f=fD(E,{align:t}).split(`
|
|
17
|
+
`),B=Math.max(...f.map(h=>T(h)));for(const h of f){let c;switch(t){case"center":{c=L.repeat((i-B)/2)+h;break}case"right":{c=L.repeat(i-B)+h;break}default:{c=h;break}}a.push(c)}}n=a}t==="center"&&F<i?n=n.map(a=>L.repeat((i-F)/2)+a):t==="right"&&F<i&&(n=n.map(a=>L.repeat(i-F)+a));const l=L.repeat(D.left),s=L.repeat(D.right);return n=n.map(a=>{const o=l+a+s;return o+L.repeat(e-T(o))}),D.top>0&&(n=[...Array.from({length:D.top}).fill(L.repeat(e)),...n]),D.bottom>0&&(n=[...n,...Array.from({length:D.bottom}).fill(L.repeat(e))]),r&&n.length>r?n=n.slice(0,r):r&&n.length<r&&(n=[...n,...Array.from({length:r-n.length}).fill(L.repeat(e))]),n.join(_)},Ut=(u,D,e)=>{const t=a=>{const o=e.borderColor?Mt(e.borderColor)(a):a;return e.dimBorder?G.dim(o):o},r=a=>e.backgroundColor?Nt(e.backgroundColor)(a):a,n=$t(e.borderStyle),F=xD();let i=L.repeat(e.margin.left);if(e.float==="center"){const a=Math.max((F-D-Q(e.borderStyle))/2,0);i=L.repeat(a)}else if(e.float==="right"){const a=Math.max(F-D-e.margin.right-Q(e.borderStyle),0);i=L.repeat(a)}let l="";e.margin.top&&(l+=_.repeat(e.margin.top)),(e.borderStyle!==Z||e.title)&&(l+=t(i+n.topLeft+(e.title?It(e.title,n.top.repeat(D),e.titleAlignment):n.top.repeat(D))+n.topRight)+_);const s=u.split(_);return l+=s.map(a=>i+t(n.left)+r(a)+t(n.right)).join(_),e.borderStyle!==Z&&(l+=_+t(i+n.bottomLeft+n.bottom.repeat(D)+n.bottomRight)),e.margin.bottom&&(l+=_.repeat(e.margin.bottom)),l},_t=u=>{if(u.fullscreen&&x?.stdout){let D=[x.stdout.columns,x.stdout.rows];typeof u.fullscreen=="function"&&(D=u.fullscreen(...D)),u.width||=D[0],u.height||=D[1]}return u.width&&=Math.max(1,u.width-Q(u.borderStyle)),u.height&&=Math.max(1,u.height-Q(u.borderStyle)),u},yD=(u,D)=>D===Z?u:` ${u} `,kt=(u,D)=>{D=_t(D);const e=D.width!==void 0,t=xD(),r=Q(D.borderStyle),n=t-D.margin.left-D.margin.right-r,F=rD($u(u,t-r,{hard:!0,trim:!1}))+D.padding.left+D.padding.right;if(D.title&&e?(D.title=D.title.slice(0,Math.max(0,D.width-2)),D.title&&=yD(D.title,D.borderStyle)):D.title&&(D.title=D.title.slice(0,Math.max(0,n-2)),D.title&&(D.title=yD(D.title,D.borderStyle),T(D.title)>F&&(D.width=T(D.title)))),D.width||=F,!e){if(D.margin.left&&D.margin.right&&D.width>n){const l=(t-D.width-r)/(D.margin.left+D.margin.right);D.margin.left=Math.max(0,Math.floor(D.margin.left*l)),D.margin.right=Math.max(0,Math.floor(D.margin.right*l))}D.width=Math.min(D.width,t-r-D.margin.left-D.margin.right)}return D.width-(D.padding.left+D.padding.right)<=0&&(D.padding.left=0,D.padding.right=0),D.height&&D.height-(D.padding.top+D.padding.bottom)<=0&&(D.padding.top=0,D.padding.bottom=0),D},Iu=u=>u.match(/^#(?:[0-f]{3}){1,2}$/i),RD=u=>typeof u=="string"&&(G[u]??Iu(u)),Mt=u=>Iu(u)?G.hex(u):G[u],Nt=u=>Iu(u)?G.bgHex(u):G[ht(["bg",u])];function jt(u,D){if(D={padding:0,borderStyle:"single",dimBorder:!1,textAlignment:"left",float:"left",titleAlignment:"left",...D},D.align&&(D.textAlignment=D.align),D.borderColor&&!RD(D.borderColor))throw new Error(`${D.borderColor} is not a valid borderColor`);if(D.backgroundColor&&!RD(D.backgroundColor))throw new Error(`${D.backgroundColor} is not a valid backgroundColor`);return D.padding=wD(D.padding),D.margin=wD(D.margin),D=kt(u,D),u=Ot(u,D),Ut(u,D.width,D)}const Ou=(u,D=[])=>u.name==="up"||D.includes("vim")&&u.name==="k"||D.includes("emacs")&&u.ctrl&&u.name==="p",LD=(u,D=[])=>u.name==="down"||D.includes("vim")&&u.name==="j"||D.includes("emacs")&&u.ctrl&&u.name==="n",Pt=u=>u.name==="backspace",Wt=u=>"1234567890".includes(u.name),Gt=u=>u.name==="enter"||u.name==="return";class qt extends Error{name="AbortPromptError";message="Prompt was aborted";constructor(D){super(),this.cause=D?.cause}}class Vt extends Error{name="CancelPromptError";message="Prompt was canceled"}class vD extends Error{name="ExitPromptError"}class Ht extends Error{name="HookError"}class SD extends Error{name="ValidationError"}const TD=new XD;function Yt(u){return{rl:u,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}function Kt(u,D){const e=Yt(u);return TD.run(e,()=>{function t(r){e.handleChange=()=>{e.index=0,r()},e.handleChange()}return D(t)})}function M(){const u=TD.getStore();if(!u)throw new Ht("[Inquirer] Hook functions can only be called from within a prompt");return u}function $D(){return M().rl}function ID(u){const D=(...e)=>{const t=M();let r=!1;const n=t.handleChange;t.handleChange=()=>{r=!0};const F=u(...e);return r&&n(),t.handleChange=n,F};return fu.bind(D)}function Uu(u){const D=M(),{index:e}=D,t={get(){return D.hooks[e]},set(n){D.hooks[e]=n},initialized:e in D.hooks},r=u(t);return D.index++,r}function zt(){M().handleChange()}const J={queue(u){const D=M(),{index:e}=D;D.hooksEffect.push(()=>{D.hooksCleanup[e]?.();const t=u($D());if(t!=null&&typeof t!="function")throw new SD("useEffect return value must be a cleanup function or nothing.");D.hooksCleanup[e]=t})},run(){const u=M();ID(()=>{u.hooksEffect.forEach(D=>{D()}),u.hooksEffect.length=0})()},clearAll(){const u=M();u.hooksCleanup.forEach(D=>{D?.()}),u.hooksEffect.length=0,u.hooksCleanup.length=0}};function X(u){return Uu(D=>{const e=fu.bind(function(n){D.get()!==n&&(D.set(n),zt())});if(D.initialized)return[D.get(),e];const t=typeof u=="function"?u():u;return D.set(t),[t,e]})}function _u(u,D){Uu(e=>{const t=e.get();(!Array.isArray(t)||D.some((n,F)=>!Object.is(n,t[F])))&&J.queue(u),e.set(D)})}function Zt(){return x.platform!=="win32"?x.env.TERM!=="linux":!!x.env.WT_SESSION||!!x.env.TERMINUS_SUBLIME||x.env.ConEmuTask==="{cmd::Cmder}"||x.env.TERM_PROGRAM==="Terminus-Sublime"||x.env.TERM_PROGRAM==="vscode"||x.env.TERM==="xterm-256color"||x.env.TERM==="alacritty"||x.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const OD={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},Qt={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},Jt={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},Xt={...OD,...Qt},ur={...OD,...Jt},Dr=Zt(),ku=Dr?Xt:ur,er={prefix:{idle:w("blue","?"),done:w("green",ku.tick)},spinner:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"].map(u=>w("yellow",u))},style:{answer:u=>w("cyan",u),message:u=>w("bold",u),error:u=>w("red",`> ${u}`),defaultAnswer:u=>w("dim",`(${u})`),help:u=>w("dim",u),highlight:u=>w("cyan",u),key:u=>w("cyan",w("bold",`<${u}>`))}};function UD(u){if(typeof u!="object"||u===null)return!1;let D=u;for(;Object.getPrototypeOf(D)!==null;)D=Object.getPrototypeOf(D);return Object.getPrototypeOf(u)===D}function _D(...u){const D={};for(const e of u)for(const[t,r]of Object.entries(e)){const n=D[t];D[t]=UD(n)&&UD(r)?_D(n,r):r}return D}function kD(...u){const D=[er,...u.filter(e=>e!=null)];return _D(...D)}function tr({status:u="idle",theme:D}){const[e,t]=X(!1),[r,n]=X(0),{prefix:F,spinner:i}=kD(D);return _u(()=>{if(u==="loading"){let s,a=-1;const o=setTimeout(()=>{t(!0),s=setInterval(()=>{a=a+1,n(a%i.frames.length)},i.interval)},300);return()=>{clearTimeout(o),clearInterval(s)}}else t(!1)},[u]),e?i.frames[r]:typeof F=="string"?F:F[u==="loading"?"idle":u]??F.idle}function Mu(u,D){return Uu(e=>{const t=e.get();if(!t||t.dependencies.length!==D.length||t.dependencies.some((r,n)=>r!==D[n])){const r=u();return e.set({value:r,dependencies:D}),r}return t.value})}function Nu(u){return X({current:u})[0]}function rr(u){const D=Nu(u);D.current=u,_u(e=>{let t=!1;const r=ID((n,F)=>{t||D.current(F,e)});return e.input.on("keypress",r),()=>{t=!0,e.input.removeListener("keypress",r)}},[])}var ju,MD;function nr(){if(MD)return ju;MD=1,ju=D;function u(e){const t={defaultWidth:0,output:process.stdout,tty:De};return e?(Object.keys(t).forEach(function(r){e[r]||(e[r]=t[r])}),e):t}function D(e){const t=u(e);if(t.output.getWindowSize)return t.output.getWindowSize()[0]||t.defaultWidth;if(t.tty.getWindowSize)return t.tty.getWindowSize()[1]||t.defaultWidth;if(t.output.columns)return t.output.columns;if(process.env.CLI_WIDTH){const r=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(r)&&r!==0)return r}return t.defaultWidth}return ju}var ir=nr(),Fr=su(ir);function Pu(u,D){return u.split(`
|
|
18
|
+
`).flatMap(e=>$u(e,D,{trim:!1,hard:!0}).split(`
|
|
19
|
+
`).map(t=>t.trimEnd())).join(`
|
|
20
|
+
`)}function ND(){return Fr({defaultWidth:80,output:$D().output})}function sr({active:u,renderedItems:D,pageSize:e,loop:t}){const r=Nu({lastPointer:u,lastActive:void 0}),{lastPointer:n,lastActive:F}=r.current,i=Math.floor(e/2),l=D.reduce((o,E)=>o+E.length,0),s=D.slice(0,u).reduce((o,E)=>o+E.length,0);let a=s;if(l>e)if(t)a=n,F!=null&&F<u&&u-F<e&&(a=Math.min(i,Math.abs(u-F)===1?Math.min(n+(D[F]?.length??0),Math.max(s,n)):n+u-F));else{const o=D.slice(u).reduce((E,C)=>E+C.length,0);a=o<e-i?e-o:Math.min(s,i)}return r.current.lastPointer=a,r.current.lastActive=u,a}function or({items:u,active:D,renderItem:e,pageSize:t,loop:r=!0}){const n=ND(),F=c=>(c%u.length+u.length)%u.length,i=u.map((c,A)=>c==null?[]:Pu(e({item:c,index:A,isActive:A===D}),n).split(`
|
|
21
|
+
`)),l=i.reduce((c,A)=>c+A.length,0),s=c=>i[c]??[],a=sr({active:D,renderedItems:i,pageSize:t,loop:r}),o=s(D).slice(0,t),E=a+o.length<=t?a:t-o.length,C=Array.from({length:t});C.splice(E,o.length,...o);const f=new Set([D]);let B=E+o.length,h=F(D+1);for(;B<t&&!f.has(h)&&(r&&l>t?h!==D:h>D);){const A=s(h).slice(0,t-B);C.splice(B,A.length,...A),f.add(h),B+=A.length,h=F(h+1)}for(B=E-1,h=F(D-1);B>=0&&!f.has(h)&&(r&&l>t?h!==D:h<D);){const c=s(h),A=c.slice(Math.max(0,c.length-B-1));C.splice(B-A.length+1,A.length,...A),f.add(h),B-=A.length,h=F(h-1)}return C.filter(c=>typeof c=="string").join(`
|
|
22
|
+
`)}var Wu,jD;function lr(){if(jD)return Wu;jD=1;const u=ue;class D extends u{#e=null;constructor(t={}){super(t),this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=t.replace,this._prompt=t.prompt||null,this._hadControl=!1}#D(t,r){return this._dest?this._dest[t]:this._src?this._src[t]:r}#u(t,...r){typeof this._dest?.[t]=="function"&&this._dest[t](...r),typeof this._src?.[t]=="function"&&this._src[t](...r)}get isTTY(){return this.#e!==null?this.#e:this.#D("isTTY",!1)}set isTTY(t){this.#e=t}get rows(){return this.#D("rows")}get columns(){return this.#D("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(t){this._src=t}pipe(t,r){return this._dest=t,super.pipe(t,r)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(t){if(this.muted){if(!this.replace)return!0;if(t.match(/^\u001b/))return t.indexOf(this._prompt)===0&&(t=t.slice(this._prompt.length),t=t.replace(/./g,this.replace),t=this._prompt+t),this._hadControl=!0,this.emit("data",t);this._prompt&&this._hadControl&&t.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),t=t.slice(this._prompt.length)),t=t.toString().replace(/./g,this.replace)}this.emit("data",t)}end(t){this.muted&&(t&&this.replace?t=t.toString().replace(/./g,this.replace):t=null),t&&this.emit("data",t),this.emit("end")}destroy(...t){return this.#u("destroy",...t)}destroySoon(...t){return this.#u("destroySoon",...t)}close(...t){return this.#u("close",...t)}}return Wu=D,Wu}var ar=lr(),Cr=su(ar);const q=[];q.push("SIGHUP","SIGINT","SIGTERM"),process.platform!=="win32"&&q.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&q.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT");const cu=u=>!!u&&typeof u=="object"&&typeof u.removeListener=="function"&&typeof u.emit=="function"&&typeof u.reallyExit=="function"&&typeof u.listeners=="function"&&typeof u.kill=="function"&&typeof u.pid=="number"&&typeof u.on=="function",Gu=Symbol.for("signal-exit emitter"),qu=globalThis,Er=Object.defineProperty.bind(Object);class cr{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(qu[Gu])return qu[Gu];Er(qu,Gu,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(D,e){this.listeners[D].push(e)}removeListener(D,e){const t=this.listeners[D],r=t.indexOf(e);r!==-1&&(r===0&&t.length===1?t.length=0:t.splice(r,1))}emit(D,e,t){if(this.emitted[D])return!1;this.emitted[D]=!0;let r=!1;for(const n of this.listeners[D])r=n(e,t)===!0||r;return D==="exit"&&(r=this.emit("afterExit",e,t)||r),r}}class PD{}const hr=u=>({onExit(D,e){return u.onExit(D,e)},load(){return u.load()},unload(){return u.unload()}});class fr extends PD{onExit(){return()=>{}}load(){}unload(){}}class Br extends PD{#e=Vu.platform==="win32"?"SIGINT":"SIGHUP";#D=new cr;#u;#n;#i;#r={};#t=!1;constructor(D){super(),this.#u=D,this.#r={};for(const e of q)this.#r[e]=()=>{const t=this.#u.listeners(e);let{count:r}=this.#D;const n=D;if(typeof n.__signal_exit_emitter__=="object"&&typeof n.__signal_exit_emitter__.count=="number"&&(r+=n.__signal_exit_emitter__.count),t.length===r){this.unload();const F=this.#D.emit("exit",null,e),i=e==="SIGHUP"?this.#e:e;F||D.kill(D.pid,i)}};this.#i=D.reallyExit,this.#n=D.emit}onExit(D,e){if(!cu(this.#u))return()=>{};this.#t===!1&&this.load();const t=e?.alwaysLast?"afterExit":"exit";return this.#D.on(t,D),()=>{this.#D.removeListener(t,D),this.#D.listeners.exit.length===0&&this.#D.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#t){this.#t=!0,this.#D.count+=1;for(const D of q)try{const e=this.#r[D];e&&this.#u.on(D,e)}catch{}this.#u.emit=(D,...e)=>this.#s(D,...e),this.#u.reallyExit=D=>this.#F(D)}}unload(){this.#t&&(this.#t=!1,q.forEach(D=>{const e=this.#r[D];if(!e)throw new Error("Listener not defined for signal: "+D);try{this.#u.removeListener(D,e)}catch{}}),this.#u.emit=this.#n,this.#u.reallyExit=this.#i,this.#D.count-=1)}#F(D){return cu(this.#u)?(this.#u.exitCode=D||0,this.#D.emit("exit",this.#u.exitCode,null),this.#i.call(this.#u,this.#u.exitCode)):0}#s(D,...e){const t=this.#n;if(D==="exit"&&cu(this.#u)){typeof e[0]=="number"&&(this.#u.exitCode=e[0]);const r=t.call(this.#u,D,...e);return this.#D.emit("exit",this.#u.exitCode,null),r}else return t.call(this.#u,D,...e)}}const Vu=globalThis.process,{onExit:dr}=hr(cu(Vu)?new Br(Vu):new fr),N="\x1B[",gr=N+"G",pr=N+"?25l",mr=N+"?25h",WD=(u=1)=>u>0?`${N}${u}A`:"",GD=(u=1)=>u>0?`${N}${u}B`:"",qD=(u,D)=>`${N}${u+1}G`,VD=N+"2K",HD=u=>u>0?(VD+WD(1)).repeat(u-1)+VD+gr:"",YD=u=>u.split(`
|
|
23
|
+
`).length,Ar=u=>u.split(`
|
|
24
|
+
`).pop()??"";class br{height=0;extraLinesUnderPrompt=0;cursorPos;rl;constructor(D){this.rl=D,this.cursorPos=D.getCursorPos()}write(D){this.rl.output.unmute(),this.rl.output.write(D),this.rl.output.mute()}render(D,e=""){const t=Ar(D),r=QD(t);let n=r;this.rl.line.length>0&&(n=n.slice(0,-this.rl.line.length)),this.rl.setPrompt(n),this.cursorPos=this.rl.getCursorPos();const F=ND();D=Pu(D,F),e=Pu(e,F),r.length%F===0&&(D+=`
|
|
25
|
+
`);let i=D+(e?`
|
|
26
|
+
`+e:"");const s=Math.floor(r.length/F)-this.cursorPos.rows+(e?YD(e):0);s>0&&(i+=WD(s)),i+=qD(this.cursorPos.cols),this.write(GD(this.extraLinesUnderPrompt)+HD(this.height)+i),this.extraLinesUnderPrompt=s,this.height=YD(i)}checkCursorPos(){const D=this.rl.getCursorPos();D.cols!==this.cursorPos.cols&&(this.write(qD(D.cols)),this.cursorPos=D)}done({clearContent:D}){this.rl.setPrompt("");let e=GD(this.extraLinesUnderPrompt);e+=D?HD(this.height):`
|
|
27
|
+
`,e+=mr,this.write(e),this.rl.close()}}class xr extends Promise{static withResolver(){let D,e;return{promise:new Promise((r,n)=>{D=r,e=n}),resolve:D,reject:e}}}function wr(){const u=Error.prepareStackTrace;let D=[];try{Error.prepareStackTrace=(e,t)=>{const r=t.slice(1);return D=r,r},new Error().stack}catch{return D}return Error.prepareStackTrace=u,D}function yr(u){const D=wr();return(t,r={})=>{const{input:n=process.stdin,signal:F}=r,i=new Set,l=new Cr;l.pipe(r.output??process.stdout);const s=JD.createInterface({terminal:!0,input:n,output:l}),a=new br(s),{promise:o,resolve:E,reject:C}=xr.withResolver(),f=()=>C(new Vt);if(F){const c=()=>C(new qt({cause:F.reason}));if(F.aborted)return c(),Object.assign(o,{cancel:f});F.addEventListener("abort",c),i.add(()=>F.removeEventListener("abort",c))}i.add(dr((c,A)=>{C(new vD(`User force closed the prompt with ${c} ${A}`))}));const B=()=>C(new vD("User force closed the prompt with SIGINT"));s.on("SIGINT",B),i.add(()=>s.removeListener("SIGINT",B));const h=()=>a.checkCursorPos();return s.input.on("keypress",h),i.add(()=>s.input.removeListener("keypress",h)),Kt(s,c=>{const A=fu.bind(()=>J.clearAll());return s.on("close",A),i.add(()=>s.removeListener("close",A)),c(()=>{try{const y=u(t,eu=>{setImmediate(()=>E(eu))});if(y===void 0){const eu=D[1]?.getFileName();throw new Error(`Prompt functions must return a string.
|
|
28
|
+
at ${eu}`)}const[hu,Du]=typeof y=="string"?[y]:y;a.render(hu,Du),J.run()}catch(y){C(y)}}),Object.assign(o.then(y=>(J.clearAll(),y),y=>{throw J.clearAll(),y}).finally(()=>{i.forEach(y=>y()),a.done({clearContent:!!r.clearPromptOnDone}),l.end()}).then(()=>o),{cancel:f})})}}class uu{separator=w("dim",Array.from({length:15}).join(ku.line));type="separator";constructor(D){D&&(this.separator=D)}static isSeparator(D){return!!(D&&typeof D=="object"&&"type"in D&&D.type==="separator")}}const Rr={icon:{cursor:ku.pointer},style:{disabled:u=>w("dim",`- ${u}`),description:u=>w("cyan",u),keysHelpTip:u=>u.map(([D,e])=>`${w("bold",D)} ${w("dim",e)}`).join(w("dim"," \u2022 "))},indexMode:"hidden",keybindings:[]};function V(u){return!uu.isSeparator(u)&&!u.disabled}function Lr(u){return u.map(D=>{if(uu.isSeparator(D))return D;if(typeof D!="object"||D===null||!("value"in D)){const r=String(D);return{value:D,name:r,short:r,disabled:!1}}const e=D.name??String(D.value),t={value:D.value,name:e,short:D.short??e,disabled:D.disabled??!1};return D.description&&(t.description=D.description),t})}var vr=yr((u,D)=>{const{loop:e=!0,pageSize:t=7}=u,r=kD(Rr,u.theme),{keybindings:n}=r,[F,i]=X("idle"),l=tr({status:F,theme:r}),s=Nu(),a=!n.includes("vim"),o=Mu(()=>Lr(u.choices),[u.choices]),E=Mu(()=>{const m=o.findIndex(V),v=o.findLastIndex(V);if(m===-1)throw new SD("[select prompt] No selectable choices. All choices are disabled.");return{first:m,last:v}},[o]),C=Mu(()=>"default"in u?o.findIndex(m=>V(m)&&m.value===u.default):-1,[u.default,o]),[f,B]=X(C===-1?E.first:C),h=o[f];rr((m,v)=>{if(clearTimeout(s.current),Gt(m))i("done"),D(h.value);else if(Ou(m,n)||LD(m,n)){if(v.clearLine(0),e||Ou(m,n)&&f!==E.first||LD(m,n)&&f!==E.last){const k=Ou(m,n)?-1:1;let R=f;do R=(R+k+o.length)%o.length;while(!V(o[R]));B(R)}}else if(Wt(m)&&!Number.isNaN(Number(v.line))){const k=Number(v.line)-1;let R=-1;const I=o.findIndex(H=>uu.isSeparator(H)?!1:(R++,R===k)),tu=o[I];tu!=null&&V(tu)&&B(I),s.current=setTimeout(()=>{v.clearLine(0)},700)}else if(Pt(m))v.clearLine(0);else if(a){const k=v.line.toLowerCase(),R=o.findIndex(I=>uu.isSeparator(I)||!V(I)?!1:I.name.toLowerCase().startsWith(k));R!==-1&&B(R),s.current=setTimeout(()=>{v.clearLine(0)},700)}}),_u(()=>()=>{clearTimeout(s.current)},[]);const c=r.style.message(u.message,F),A=r.style.keysHelpTip([["\u2191\u2193","navigate"],["\u23CE","select"]]);let y=0;const hu=or({items:o,active:f,renderItem({item:m,isActive:v,index:k}){if(uu.isSeparator(m))return y++,` ${m.separator}`;const R=r.indexMode==="number"?`${k+1-y}. `:"";if(m.disabled){const H=typeof m.disabled=="string"?m.disabled:"(disabled)";return r.style.disabled(`${R}${m.name} ${H}`)}const I=v?r.style.highlight:H=>H,tu=v?r.icon.cursor:" ";return I(`${tu} ${R}${m.name}`)},pageSize:t,loop:e});if(F==="done")return[l,c,r.style.answer(h.short)].filter(Boolean).join(" ");const{description:Du}=h;return`${[[l,c].filter(Boolean).join(" "),hu," ",Du?r.style.description(Du):"",A].filter(Boolean).join(`
|
|
29
|
+
`).trimEnd()}${pr}`});const Sr=u=>{const{theme:D,ui:e}=u.config,t=u.personal.name.split(" ")?.[0],r=u.personal.website||`https://${u.personal.displayEmail.replace(/.*@/,"")}`,n=b[D.primary]||b.cyanBright,F=b[D.secondary]||b.whiteBright,i=[null,b.bold(n(du(u.personal.name))),F(du(u.personal.currentRole)),null];u.socialHandles.forEach(s=>{const a=s.color;i.push(gu(we(s.platform),`${s.url}/${s.handle}`,a))}),i.push(gu(e.title,r,D.accent)),i.push(gu(e.npx,u.personal.npx||`npx ${t.toLowerCase()}`,"#cb3837")),i.push(null),e?.footer&&e.footer.forEach(s=>{i.push(b.italic(F(du(s))))}),i.push(null);const l=jt(i.join(`
|
|
30
|
+
`),{margin:1,float:"center",borderStyle:D.borderStyle,borderColor:D.borderColor});console.log(l),console.log(e.cmdTip)};var Tr=(u=>(u.EMAIL="email",u.RESUME="resume",u.MEETING="meeting",u.EXIT="exit",u))(Tr||{});const $r=u=>{const D=u.personal.name.split(" ")?.[0],{messages:e,theme:t}=u.config,r=b[t.primary]||b.cyanBright,n=b[t.secondary]||b.whiteBright,F=[{name:e.email.message.replace("email",r("email")),value:"email",description:n(`
|
|
31
|
+
`+e.email.description)},{name:e.resume.message.replace("Resume",r("Resume")),value:"resume",description:n(`
|
|
32
|
+
`+e.resume.description)},{name:e.meeting.message.replace("Meeting",r("Meeting")),value:"meeting",description:n(`
|
|
33
|
+
`+e.meeting.description)},{name:e.exit.message,value:"exit",description:n(`
|
|
34
|
+
`+e.exit.description)}],i={email:()=>{Bu(`mailto:${u.personal.displayEmail}?subject=Hi%20${D}!`),console.log(`
|
|
8
35
|
|
|
9
|
-
${
|
|
10
|
-
`)},resume:()=>{u
|
|
36
|
+
${e.email.success}
|
|
37
|
+
`)},resume:()=>{Bu(u.personal.resume||"https://cv.ritik.me"),console.log(`
|
|
11
38
|
|
|
12
|
-
${
|
|
13
|
-
`)},meeting:()=>{u
|
|
39
|
+
${e.resume.success}
|
|
40
|
+
`)},meeting:()=>{Bu(u.personal.meeting||"https://meet.ritik.me"),console.log(`
|
|
14
41
|
|
|
15
|
-
${
|
|
42
|
+
${e.meeting.success}
|
|
16
43
|
`)},exit:()=>{console.log(`
|
|
17
44
|
|
|
18
|
-
${
|
|
19
|
-
`)}};
|
|
20
|
-
|
|
21
|
-
|
|
45
|
+
${e.exit.success}
|
|
46
|
+
`)}};vr({message:"Choose an Action",choices:F}).then(l=>i[l]())},Ir=async()=>{console.clear();const u=me(ru),D=new ye("Fetching profile data...").start();try{const e=await pe();e.config={theme:{...j.theme,...e.config?.theme},ui:{...j.ui,...e.config?.ui},messages:{email:{...j.messages?.email,...e.config?.messages?.email},resume:{...j.messages?.resume,...e.config?.messages?.resume},meeting:{...j.messages?.meeting,...e.config?.messages?.meeting},exit:{...j.messages?.exit,...e.config?.messages?.exit}}},D.succeed(`Profile loaded (${b.dim(`v${ru.version}`)})`);const t=await u;if(t){const r=`Update available! ${b.dim(ru.version)} \u2192 ${b.hex("#00FF00")(t)}
|
|
47
|
+
Run ${b.cyanBright(`npm i -g ${ru.name}`)} to update`;console.log(`
|
|
48
|
+
`+r+`
|
|
49
|
+
`)}Sr(e),$r(e)}catch(e){D.fail("Failed to load profile"),e instanceof Error?console.error(`
|
|
50
|
+
Error: ${e.message}`):console.error(`
|
|
51
|
+
An unknown error occurred.`),process.exit(1)}};Ir();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ritik",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CLI Portfolio",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,20 +16,15 @@
|
|
|
16
16
|
"lint": "next lint",
|
|
17
17
|
"clean": "rm -rf node_modules pnpm-lock.yaml && pnpm install"
|
|
18
18
|
},
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"@inquirer/prompts": "^8.2.0",
|
|
21
|
-
"boxen": "^8.0.1",
|
|
22
|
-
"chalk": "^5.6.2",
|
|
23
|
-
"open": "^11.0.0",
|
|
24
|
-
"ora": "^9.0.0",
|
|
25
|
-
"update-notifier": "^7.3.1"
|
|
26
|
-
},
|
|
27
19
|
"devDependencies": {
|
|
20
|
+
"@inquirer/prompts": "^8.2.0",
|
|
21
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
28
22
|
"@rollup/plugin-json": "^6.1.0",
|
|
23
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
29
24
|
"@types/node": "^25.0.9",
|
|
30
|
-
"@types/update-notifier": "^6.0.8",
|
|
31
25
|
"@typescript-eslint/eslint-plugin": "^8.53.0",
|
|
32
26
|
"@typescript-eslint/parser": "^8.53.0",
|
|
27
|
+
"boxen": "^8.0.1",
|
|
33
28
|
"esbuild": "^0.27.2",
|
|
34
29
|
"eslint": "^9.39.2",
|
|
35
30
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
@@ -43,8 +38,7 @@
|
|
|
43
38
|
"registry": "https://registry.npmjs.org/"
|
|
44
39
|
},
|
|
45
40
|
"files": [
|
|
46
|
-
"dist"
|
|
47
|
-
"demo.png"
|
|
41
|
+
"dist"
|
|
48
42
|
],
|
|
49
43
|
"repository": {
|
|
50
44
|
"type": "git",
|
package/demo.png
DELETED
|
Binary file
|