ritik 1.0.5 → 1.0.7
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/README.md +3 -7
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,11 +23,7 @@ npx ritik
|
|
|
23
23
|
|
|
24
24
|
<br />
|
|
25
25
|
<div align="center">
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<
|
|
29
|
-
Feel free to explore the code, fork it, or even suggest an edit
|
|
30
|
-
<br>
|
|
31
|
-
<i>If you appreciate this CLI first approach, a star on GitHub is always welcome</i>
|
|
32
|
-
|
|
26
|
+
Crafted with ❤️ for the terminal
|
|
27
|
+
<br />
|
|
28
|
+
<i>If you appreciate this CLI first approach, a star on GitHub is greatly appreciated</i>
|
|
33
29
|
</div>
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{spawn as $D,exec as kD}from"node:child_process";import OD from"node:fs";import ju from"node:path";import{fileURLToPath as _D}from"node:url";import Y from"node:process";import ND from"node:os";import Pu from"node:tty";import V from"node:readline";import*as ou from"fs";import*as au from"path";import{fileURLToPath as jD}from"url";var PD="ritik",
|
|
2
|
+
import{spawn as $D,exec as kD}from"node:child_process";import OD from"node:fs";import ju from"node:path";import{fileURLToPath as _D}from"node:url";import Y from"node:process";import ND from"node:os";import Pu from"node:tty";import V from"node:readline";import*as ou from"fs";import*as au from"path";import{fileURLToPath as jD}from"url";var PD="ritik",GD="1.0.7",WD="module",UD="CLI Portfolio",HD="dist/index.js",zD={ritik:"dist/index.js"},qD={node:">=20"},YD={build:"rollup -c",start:"rollup -c && node dist/index.js",lint:"next lint",clean:"rm -rf node_modules pnpm-lock.yaml && pnpm install",demo:"pnpm run build && vhs demo/demo.tape"},VD={"@rollup/plugin-commonjs":"^29.0.0","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^16.0.3","@types/figlet":"^1.7.0","@types/node":"^25.0.9","@typescript-eslint/eslint-plugin":"^8.53.0","@typescript-eslint/parser":"^8.53.0",boxen:"^8.0.1",chalk:"^5.6.2",esbuild:"^0.27.2",eslint:"^9.39.2","eslint-import-resolver-typescript":"^4.4.4","eslint-plugin-import":"^2.32.0",figlet:"^1.9.4",rollup:"^4.55.1","rollup-plugin-esbuild":"^6.2.1",typescript:"^5.9.3"},KD={access:"public",registry:"https://registry.npmjs.org/"},JD=["dist"],XD={type:"git",url:"git+https://github.com/itzzritik/npx-ritik.git"},ZD=["ritik","nodejs","javascript","shell","cli","console","open-source","npm","portfolio","typescript","terminal","command-line","tui","dev","developer","npx"],QD={name:"Ritik Srivastava"},ue="ISC",De={url:"https://github.com/itzzritik/npx-ritik/issues"},ee="https://github.com/itzzritik/npx-ritik#readme",Gu={name:PD,version:GD,type:WD,description:UD,main:HD,bin:zD,engines:qD,scripts:YD,devDependencies:VD,publishConfig:KD,files:JD,repository:XD,keywords:ZD,author:QD,license:ue,bugs:De,homepage:ee};const te={profileUrl:"https://raw.githubusercontent.com/itzzritik/itzzritik/refs/heads/main/profile/profile.json"},uu={theme:{primary:"cyanBright",secondary:"whiteBright",accent:"#f1c40f",borderStyle:"single",borderColor:"cyan"},ui:{title:"Portfolio",npx:"Cli Portfolio",cmdTip:"Tip: Try cmd/ctrl + click on the links above",footer:["Open to meaningful conversations and interesting opportunities","Feel free to reach out for questions, collaborations, or a quick hello","I do my best to respond in a timely manner"]},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."}}},Fe=async()=>{const u=await fetch(te.profileUrl);if(!u.ok)throw new Error(`Failed to fetch profile: ${u.statusText}`);const D=await u.json(),e={github:"#666666",x:"#1DA1F2"};return D.socialHandles=D.socialHandles.map(F=>({...F,color:e[F.platform]||F.color})),D},re=async()=>{const u=await fetch("https://raw.githubusercontent.com/patorjk/figlet.js/master/fonts/ANSI%20Shadow.flf").then(D=>D.text());(await Promise.resolve().then(function(){return Mt})).default.parseFont("ANSI Shadow",u)},ne=u=>{const D=ju.dirname(_D(import.meta.url)),e=OD.existsSync(ju.join(D,"../src")),F=process.env.NPX_RITIK_REDIRECT==="true";return!e&&!F?($D(`npx --yes ${u}@latest`,{stdio:"inherit",shell:!0,env:{...process.env,NPX_RITIK_REDIRECT:"true"}}).on("close",r=>{process.exit(r||0)}),!0):!1},Au=10,Wu=(u=0)=>D=>`\x1B[${D+u}m`,Uu=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,Hu=(u=0)=>(D,e,F)=>`\x1B[${38+u};2;${D};${e};${F}m`,S={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(S.modifier);const ie=Object.keys(S.color),le=Object.keys(S.bgColor);[...ie,...le];function se(){const u=new Map;for(const[D,e]of Object.entries(S)){for(const[F,r]of Object.entries(e))S[F]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[F]=S[F],u.set(r[0],r[1]);Object.defineProperty(S,D,{value:e,enumerable:!1})}return Object.defineProperty(S,"codes",{value:u,enumerable:!1}),S.color.close="\x1B[39m",S.bgColor.close="\x1B[49m",S.color.ansi=Wu(),S.color.ansi256=Uu(),S.color.ansi16m=Hu(),S.bgColor.ansi=Wu(Au),S.bgColor.ansi256=Uu(Au),S.bgColor.ansi16m=Hu(Au),Object.defineProperties(S,{rgbToAnsi256:{value(D,e,F){return D===e&&e===F?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(F/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[F]=e;F.length===3&&(F=[...F].map(l=>l+l).join(""));const r=Number.parseInt(F,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>S.rgbToAnsi256(...S.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,F,r;if(D>=232)e=((D-232)*10+8)/255,F=e,r=e;else{D-=16;const o=D%36;e=Math.floor(D/36)/5,F=Math.floor(o/6)/5,r=o%6/5}const l=Math.max(e,F,r)*2;if(l===0)return 30;let a=30+(Math.round(r)<<2|Math.round(F)<<1|Math.round(e));return l===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(D,e,F)=>S.ansi256ToAnsi(S.rgbToAnsi256(D,e,F)),enumerable:!1},hexToAnsi:{value:D=>S.ansi256ToAnsi(S.hexToAnsi256(D)),enumerable:!1}}),S}const z=se();function G(u,D=globalThis.Deno?globalThis.Deno.args:Y.argv){const e=u.startsWith("-")?"":u.length===1?"-":"--",F=D.indexOf(e+u),r=D.indexOf("--");return F!==-1&&(r===-1||F<r)}const{env:L}=Y;let Cu;G("no-color")||G("no-colors")||G("color=false")||G("color=never")?Cu=0:(G("color")||G("colors")||G("color=true")||G("color=always"))&&(Cu=1);function oe(){if("FORCE_COLOR"in L)return L.FORCE_COLOR==="true"?1:L.FORCE_COLOR==="false"?0:L.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(L.FORCE_COLOR,10),3)}function ae(u){return u===0?!1:{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}function Ce(u,{streamIsTTY:D,sniffFlags:e=!0}={}){const F=oe();F!==void 0&&(Cu=F);const r=e?Cu:F;if(r===0)return 0;if(e){if(G("color=16m")||G("color=full")||G("color=truecolor"))return 3;if(G("color=256"))return 2}if("TF_BUILD"in L&&"AGENT_NAME"in L)return 1;if(u&&!D&&r===void 0)return 0;const l=r||0;if(L.TERM==="dumb")return l;if(Y.platform==="win32"){const a=ND.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in L)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(a=>a in L)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(a=>a in L)||L.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in L)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(L.TEAMCITY_VERSION)?1:0;if(L.COLORTERM==="truecolor"||L.TERM==="xterm-kitty"||L.TERM==="xterm-ghostty"||L.TERM==="wezterm")return 3;if("TERM_PROGRAM"in L){const a=Number.parseInt((L.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(L.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(L.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(L.TERM)||"COLORTERM"in L?1:l}function zu(u,D={}){const e=Ce(u,{streamIsTTY:u&&u.isTTY,...D});return ae(e)}const Ee={stdout:zu({isTTY:Pu.isatty(1)}),stderr:zu({isTTY:Pu.isatty(2)})};function fe(u,D,e){let F=u.indexOf(D);if(F===-1)return u;const r=D.length;let l=0,a="";do a+=u.slice(l,F)+D+e,l=F+r,F=u.indexOf(D,l);while(F!==-1);return a+=u.slice(l),a}function ce(u,D,e,F){let r=0,l="";do{const a=u[F-1]==="\r";l+=u.slice(r,a?F-1:F)+D+(a?`\r
|
|
3
3
|
`:`
|
|
4
4
|
`)+e,r=F+1,F=u.indexOf(`
|
|
5
5
|
`,r)}while(F!==-1);return l+=u.slice(r),l}const{stdout:qu,stderr:Yu}=Ee,pu=Symbol("GENERATOR"),Du=Symbol("STYLER"),ru=Symbol("IS_EMPTY"),Vu=["ansi","ansi","ansi256","ansi16m"],eu=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=qu?qu.level:0;u.level=D.level===void 0?e:D.level},Be=u=>{const D=(...e)=>e.join(" ");return he(D,u),Object.setPrototypeOf(D,nu.prototype),D};function nu(u){return Be(u)}Object.setPrototypeOf(nu.prototype,Function.prototype);for(const[u,D]of Object.entries(z))eu[u]={get(){const e=Eu(this,bu(D.open,D.close,this[Du]),this[ru]);return Object.defineProperty(this,u,{value:e}),e}};eu.visible={get(){const u=Eu(this,this[Du],!0);return Object.defineProperty(this,"visible",{value:u}),u}};const Ru=(u,D,e,...F)=>u==="rgb"?D==="ansi16m"?z[e].ansi16m(...F):D==="ansi256"?z[e].ansi256(z.rgbToAnsi256(...F)):z[e].ansi(z.rgbToAnsi(...F)):u==="hex"?Ru("rgb",D,e,...z.hexToRgb(...F)):z[e][u](...F),ge=["rgb","hex","ansi256"];for(const u of ge){eu[u]={get(){const{level:e}=this;return function(...F){const r=bu(Ru(u,Vu[e],"color",...F),z.color.close,this[Du]);return Eu(this,r,this[ru])}}};const D="bg"+u[0].toUpperCase()+u.slice(1);eu[D]={get(){const{level:e}=this;return function(...F){const r=bu(Ru(u,Vu[e],"bgColor",...F),z.bgColor.close,this[Du]);return Eu(this,r,this[ru])}}}}const me=Object.defineProperties(()=>{},{...eu,level:{enumerable:!0,get(){return this[pu].level},set(u){this[pu].level=u}}}),bu=(u,D,e)=>{let F,r;return e===void 0?(F=u,r=D):(F=e.openAll+u,r=D+e.closeAll),{open:u,close:D,openAll:F,closeAll:r,parent:e}},Eu=(u,D,e)=>{const F=(...r)=>de(F,r.length===1?""+r[0]:r.join(" "));return Object.setPrototypeOf(F,me),F[pu]=u,F[Du]=D,F[ru]=e,F},de=(u,D)=>{if(u.level<=0||!D)return u[ru]?"":D;let e=u[Du];if(e===void 0)return D;const{openAll:F,closeAll:r}=e;if(D.includes("\x1B"))for(;e!==void 0;)D=fe(D,e.close,e.open),e=e.parent;const l=D.indexOf(`
|
|
6
6
|
`);return l!==-1&&(D=ce(D,r,F,l)),F+D+r};Object.defineProperties(nu.prototype,eu);const T=nu();nu({level:Yu?Yu.level:0});const Ae=22,pe=80,Ku=Ae+pe+2,fu=(u,D=" ")=>u.padStart(u.length+Math.floor((Ku-u.length)/2),D).padEnd(Ku,D),Re=u=>u.charAt(0).toUpperCase()+u.slice(1);class be{frames=["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"];interval=null;current=0;text;constructor(D){this.text=D}start(){return process.stdout.write("\x1B[?25l"),this.interval=setInterval(()=>{process.stdout.write(`\r${T.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(`${T.hex("#00FF00")("\u2714")} ${D||this.text}`),this}fail(D){return this.stop(),console.log(`${T.hex("#FF0000")("\u2716")} ${D||this.text}`),this}}function ve({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 ye=ve();function Ju(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return u.replace(ye,"")}function we(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 xe(u){return u===12288||u>=65281&&u<=65376||u>=65504&&u<=65510}function Se(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 Le(u){if(!Number.isSafeInteger(u))throw new TypeError(`Expected a code point, got \`${typeof u}\`.`)}function Te(u,{ambiguousAsWide:D=!1}={}){return Le(u),xe(u)||Se(u)||D&&we(u)?2:1}var Ie=()=>/[#*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 Me=new Intl.Segmenter,$e=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u");function H(u,D={}){if(typeof u!="string"||u.length===0)return 0;const{ambiguousIsNarrow:e=!0,countAnsiEscapeCodes:F=!1}=D;if(F||(u=Ju(u)),u.length===0)return 0;let r=0;const l={ambiguousAsWide:!e};for(const{segment:a}of Me.segment(u)){const o=a.codePointAt(0);if(!(o<=31||o>=127&&o<=159)&&!(o>=8203&&o<=8207||o===65279)&&!(o>=768&&o<=879||o>=6832&&o<=6911||o>=7616&&o<=7679||o>=8400&&o<=8447||o>=65056&&o<=65071)&&!(o>=55296&&o<=57343)&&!(o>=65024&&o<=65039)&&!$e.test(a)){if(Ie().test(a)){r+=2;continue}r+=Te(o,l)}}return r}function Xu(u){let D=0;for(const e of u.split(`
|
|
7
|
-
`))D=Math.max(D,H(e));return D}function Zu(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var cu={exports:{}},ke={topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},Oe={topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},_e={topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},Ne={topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},je={topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},Pe={topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},We={topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},Ge={topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"},Ue={single:ke,double:Oe,round:_e,bold:Ne,singleDouble:je,doubleSingle:Pe,classic:We,arrow:Ge},Qu;function He(){if(Qu)return cu.exports;Qu=1;const u=Ue;return cu.exports=u,cu.exports.default=u,cu.exports}var ze=He(),qe=Zu(ze);const Ye=/[\p{Lu}]/u,Ve=/[\p{Ll}]/u,uD=/^[\p{Lu}](?![\p{Lu}])/gu,DD=/([\p{Alpha}\p{N}_]|$)/u,vu=/[_.\- ]+/,Ke=new RegExp("^"+vu.source),eD=new RegExp(vu.source+DD.source,"gu"),tD=new RegExp("\\d+"+DD.source,"gu"),Je=(u,D,e,F)=>{let r=!1,l=!1,a=!1,o=!1;for(let g=0;g<u.length;g++){const R=u[g];o=g>2?u[g-3]==="-":!0,r&&Ye.test(R)?(u=u.slice(0,g)+"-"+u.slice(g),r=!1,a=l,l=!0,g++):l&&a&&Ve.test(R)&&(!o||F)?(u=u.slice(0,g-1)+"-"+u.slice(g-1),a=l,l=!1,r=!0):(r=D(R)===R&&e(R)!==R,a=l,l=e(R)===R&&D(R)!==R)}return u},Xe=(u,D)=>(uD.lastIndex=0,u.replaceAll(uD,e=>D(e))),Ze=(u,D)=>(eD.lastIndex=0,tD.lastIndex=0,u.replaceAll(tD,(e,F,r)=>["_","-"].includes(u.charAt(r+e.length))?e:D(e)).replaceAll(eD,(e,F)=>D(F)));function Qe(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(l=>l.trim()).filter(l=>l.length).join("-"):u=u.trim(),u.length===0)return"";const e=D.locale===!1?l=>l.toLowerCase():l=>l.toLocaleLowerCase(D.locale),F=D.locale===!1?l=>l.toUpperCase():l=>l.toLocaleUpperCase(D.locale);return u.length===1?vu.test(u)?"":D.pascalCase?F(u):e(u):(u!==e(u)&&(u=Je(u,e,F,D.preserveConsecutiveUppercase)),u=u.replace(Ke,""),u=D.preserveConsecutiveUppercase?Xe(u,e):e(u),D.pascalCase&&(u=F(u.charAt(0))+u.slice(1)),Ze(u,F))}var hu={exports:{}},yu,FD;function ut(){return FD||(FD=1,yu=({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")}),yu}var wu,rD;function Dt(){if(rD)return wu;rD=1;const u=ut();return wu=D=>typeof D=="string"?D.replace(u(),""):D,wu}var Bu={exports:{}},nD;function et(){if(nD)return Bu.exports;nD=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 Bu.exports=u,Bu.exports.default=u,Bu.exports}var xu,iD;function tt(){return iD||(iD=1,xu=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}),xu}var lD;function Ft(){if(lD)return hu.exports;lD=1;const u=Dt(),D=et(),e=tt(),F=r=>{if(typeof r!="string"||r.length===0||(r=u(r),r.length===0))return 0;r=r.replace(e()," ");let l=0;for(let a=0;a<r.length;a++){const o=r.codePointAt(a);o<=31||o>=127&&o<=159||o>=768&&o<=879||(o>65535&&a++,l+=D(o)?2:1)}return l};return hu.exports=F,hu.exports.default=F,hu.exports}var Su,sD;function rt(){if(sD)return Su;sD=1;const u=Ft();function D(r,l){if(!r)return r;l=l||{};const a=l.align||"center";if(a==="left")return r;const o=l.split||`
|
|
7
|
+
`))D=Math.max(D,H(e));return D}function Zu(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var cu={exports:{}},ke={topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},Oe={topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},_e={topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},Ne={topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},je={topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},Pe={topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},Ge={topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},We={topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"},Ue={single:ke,double:Oe,round:_e,bold:Ne,singleDouble:je,doubleSingle:Pe,classic:Ge,arrow:We},Qu;function He(){if(Qu)return cu.exports;Qu=1;const u=Ue;return cu.exports=u,cu.exports.default=u,cu.exports}var ze=He(),qe=Zu(ze);const Ye=/[\p{Lu}]/u,Ve=/[\p{Ll}]/u,uD=/^[\p{Lu}](?![\p{Lu}])/gu,DD=/([\p{Alpha}\p{N}_]|$)/u,vu=/[_.\- ]+/,Ke=new RegExp("^"+vu.source),eD=new RegExp(vu.source+DD.source,"gu"),tD=new RegExp("\\d+"+DD.source,"gu"),Je=(u,D,e,F)=>{let r=!1,l=!1,a=!1,o=!1;for(let g=0;g<u.length;g++){const R=u[g];o=g>2?u[g-3]==="-":!0,r&&Ye.test(R)?(u=u.slice(0,g)+"-"+u.slice(g),r=!1,a=l,l=!0,g++):l&&a&&Ve.test(R)&&(!o||F)?(u=u.slice(0,g-1)+"-"+u.slice(g-1),a=l,l=!1,r=!0):(r=D(R)===R&&e(R)!==R,a=l,l=e(R)===R&&D(R)!==R)}return u},Xe=(u,D)=>(uD.lastIndex=0,u.replaceAll(uD,e=>D(e))),Ze=(u,D)=>(eD.lastIndex=0,tD.lastIndex=0,u.replaceAll(tD,(e,F,r)=>["_","-"].includes(u.charAt(r+e.length))?e:D(e)).replaceAll(eD,(e,F)=>D(F)));function Qe(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(l=>l.trim()).filter(l=>l.length).join("-"):u=u.trim(),u.length===0)return"";const e=D.locale===!1?l=>l.toLowerCase():l=>l.toLocaleLowerCase(D.locale),F=D.locale===!1?l=>l.toUpperCase():l=>l.toLocaleUpperCase(D.locale);return u.length===1?vu.test(u)?"":D.pascalCase?F(u):e(u):(u!==e(u)&&(u=Je(u,e,F,D.preserveConsecutiveUppercase)),u=u.replace(Ke,""),u=D.preserveConsecutiveUppercase?Xe(u,e):e(u),D.pascalCase&&(u=F(u.charAt(0))+u.slice(1)),Ze(u,F))}var hu={exports:{}},yu,FD;function ut(){return FD||(FD=1,yu=({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")}),yu}var wu,rD;function Dt(){if(rD)return wu;rD=1;const u=ut();return wu=D=>typeof D=="string"?D.replace(u(),""):D,wu}var Bu={exports:{}},nD;function et(){if(nD)return Bu.exports;nD=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 Bu.exports=u,Bu.exports.default=u,Bu.exports}var xu,iD;function tt(){return iD||(iD=1,xu=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}),xu}var lD;function Ft(){if(lD)return hu.exports;lD=1;const u=Dt(),D=et(),e=tt(),F=r=>{if(typeof r!="string"||r.length===0||(r=u(r),r.length===0))return 0;r=r.replace(e()," ");let l=0;for(let a=0;a<r.length;a++){const o=r.codePointAt(a);o<=31||o>=127&&o<=159||o>=768&&o<=879||(o>65535&&a++,l+=D(o)?2:1)}return l};return hu.exports=F,hu.exports.default=F,hu.exports}var Su,sD;function rt(){if(sD)return Su;sD=1;const u=Ft();function D(r,l){if(!r)return r;l=l||{};const a=l.align||"center";if(a==="left")return r;const o=l.split||`
|
|
8
8
|
`,g=l.pad||" ",R=a!=="right"?e:F;let d=!1;Array.isArray(r)||(d=!0,r=String(r).split(o));let b,y=0;return r=r.map(function(w){return w=String(w),b=u(w),y=Math.max(b,y),{str:w,width:b}}).map(function(w){return new Array(R(y,w.width)+1).join(g)+w.str}),d?r.join(o):r}D.left=function(l){return D(l,{align:"left"})},D.center=function(l){return D(l,{align:"center"})},D.right=function(l){return D(l,{align:"right"})},Su=D;function e(r,l){return Math.floor((r-l)/2)}function F(r,l){return r-l}return Su}var nt=rt(),oD=Zu(nt);const Lu=10,aD=(u=0)=>D=>`\x1B[${D+u}m`,CD=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,ED=(u=0)=>(D,e,F)=>`\x1B[${38+u};2;${D};${e};${F}m`,I={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(I.modifier);const it=Object.keys(I.color),lt=Object.keys(I.bgColor);[...it,...lt];function st(){const u=new Map;for(const[D,e]of Object.entries(I)){for(const[F,r]of Object.entries(e))I[F]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[F]=I[F],u.set(r[0],r[1]);Object.defineProperty(I,D,{value:e,enumerable:!1})}return Object.defineProperty(I,"codes",{value:u,enumerable:!1}),I.color.close="\x1B[39m",I.bgColor.close="\x1B[49m",I.color.ansi=aD(),I.color.ansi256=CD(),I.color.ansi16m=ED(),I.bgColor.ansi=aD(Lu),I.bgColor.ansi256=CD(Lu),I.bgColor.ansi16m=ED(Lu),Object.defineProperties(I,{rgbToAnsi256:{value(D,e,F){return D===e&&e===F?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(F/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[F]=e;F.length===3&&(F=[...F].map(l=>l+l).join(""));const r=Number.parseInt(F,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>I.rgbToAnsi256(...I.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,F,r;if(D>=232)e=((D-232)*10+8)/255,F=e,r=e;else{D-=16;const o=D%36;e=Math.floor(D/36)/5,F=Math.floor(o/6)/5,r=o%6/5}const l=Math.max(e,F,r)*2;if(l===0)return 30;let a=30+(Math.round(r)<<2|Math.round(F)<<1|Math.round(e));return l===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(D,e,F)=>I.ansi256ToAnsi(I.rgbToAnsi256(D,e,F)),enumerable:!1},hexToAnsi:{value:D=>I.ansi256ToAnsi(I.hexToAnsi256(D)),enumerable:!1}}),I}const ot=st(),gu=new Set(["\x1B","\x9B"]),at=39,Tu="\x07",fD="[",Ct="]",cD="m",mu=`${Ct}8;;`,hD=u=>`${gu.values().next().value}${fD}${u}${cD}`,BD=u=>`${gu.values().next().value}${mu}${u}${Tu}`,Et=u=>u.split(" ").map(D=>H(D)),Iu=(u,D,e)=>{const F=[...D];let r=!1,l=!1,a=H(Ju(u.at(-1)));for(const[o,g]of F.entries()){const R=H(g);if(a+R<=e?u[u.length-1]+=g:(u.push(g),a=0),gu.has(g)&&(r=!0,l=F.slice(o+1,o+1+mu.length).join("")===mu),r){l?g===Tu&&(r=!1,l=!1):g===cD&&(r=!1);continue}a+=R,a===e&&o<F.length-1&&(u.push(""),a=0)}!a&&u.at(-1).length>0&&u.length>1&&(u[u.length-2]+=u.pop())},ft=u=>{const D=u.split(" ");let e=D.length;for(;e>0&&!(H(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},ct=(u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let F="",r,l;const a=Et(u);let o=[""];for(const[b,y]of u.split(" ").entries()){e.trim!==!1&&(o[o.length-1]=o.at(-1).trimStart());let w=H(o.at(-1));if(b!==0&&(w>=D&&(e.wordWrap===!1||e.trim===!1)&&(o.push(""),w=0),(w>0||e.trim===!1)&&(o[o.length-1]+=" ",w++)),e.hard&&a[b]>D){const k=D-w,j=1+Math.floor((a[b]-k-1)/D);Math.floor((a[b]-1)/D)<j&&o.push(""),Iu(o,y,D);continue}if(w+a[b]>D&&w>0&&a[b]>0){if(e.wordWrap===!1&&w<D){Iu(o,y,D);continue}o.push("")}if(w+a[b]>D&&e.wordWrap===!1){Iu(o,y,D);continue}o[o.length-1]+=y}e.trim!==!1&&(o=o.map(b=>ft(b)));const g=o.join(`
|
|
9
9
|
`),R=[...g];let d=0;for(const[b,y]of R.entries()){if(F+=y,gu.has(y)){const{groups:k}=new RegExp(`(?:\\${fD}(?<code>\\d+)m|\\${mu}(?<uri>.*)${Tu})`).exec(g.slice(d))||{groups:{}};if(k.code!==void 0){const j=Number.parseFloat(k.code);r=j===at?void 0:j}else k.uri!==void 0&&(l=k.uri.length===0?void 0:k.uri)}const w=ot.codes.get(Number(r));R[b+1]===`
|
|
10
10
|
`?(l&&(F+=BD("")),r&&w&&(F+=hD(w))):y===`
|
|
@@ -18,7 +18,7 @@ import{spawn as $D,exec as kD}from"node:child_process";import OD from"node:fs";i
|
|
|
18
18
|
`);e.write(`${T.green("?")} ${T.bold(l)}
|
|
19
19
|
${d}
|
|
20
20
|
${R.description||""}`)};return o(!0),new Promise(g=>{const R=()=>{e.write("\x1B[?25h"),D.isTTY&&D.setRawMode(!1),D.removeListener("keypress",d),F.close()},d=(b,y)=>{if(y.name==="return"){const w=r[a],k=1+r.length+1;V.moveCursor(e,0,-k),V.cursorTo(e,0),V.clearScreenDown(e),e.write(`${T.green("\u2714")} ${T.bold(l)} ${T.gray("\xB7")} ${w.name}
|
|
21
|
-
`),R(),g(w.value)}else y.ctrl&&y.name==="c"?(R(),Y.exit(0)):y.name==="up"?(a=(a-1+r.length)%r.length,o()):y.name==="down"&&(a=(a+1)%r.length,o())};D.on("keypress",d)})}const yt={FULL_WIDTH:0,FITTING:1,SMUSHING:2,CONTROLLED_SMUSHING:3};class wt{constructor(){this.comment="",this.numChars=0,this.options={}}}const $u=["1Row","3-D","3D Diagonal","3D-ASCII","3x5","4Max","5 Line Oblique","AMC 3 Line","AMC 3 Liv1","AMC AAA01","AMC Neko","AMC Razor","AMC Razor2","AMC Slash","AMC Slider","AMC Thin","AMC Tubes","AMC Untitled","ANSI Regular","ANSI Shadow","ANSI-Compact","ASCII 12","ASCII 9","ASCII New Roman","Acrobatic","Alligator","Alligator2","Alpha","Alphabet","Arrows","Avatar","B1FF","Babyface Lame","Babyface Leet","Banner","Banner3-D","Banner3","Banner4","Barbwire","Basic","Bear","Bell","Benjamin","Big ASCII 12","Big ASCII 9","Big Chief","Big Money-ne","Big Money-nw","Big Money-se","Big Money-sw","Big Mono 12","Big Mono 9","Big","Bigfig","Binary","Block","Blocks","Bloody","BlurVision ASCII","Bolger","Braced","Bright","Broadway KB","Broadway","Bubble","Bulbhead","Caligraphy","Caligraphy2","Calvin S","Cards","Catwalk","Chiseled","Chunky","Circle","Coinstak","Cola","Colossal","Computer","Contessa","Contrast","Cosmike","Cosmike2","Crawford","Crawford2","Crazy","Cricket","Cursive","Cyberlarge","Cybermedium","Cybersmall","Cygnet","DANC4","DOS Rebel","DWhistled","Dancing Font","Decimal","Def Leppard","Delta Corps Priest 1","DiamFont","Diamond","Diet Cola","Digital","Doh","Doom","Dot Matrix","Double Shorts","Double","Dr Pepper","Efti Chess","Efti Font","Efti Italic","Efti Piti","Efti Robot","Efti Wall","Efti Water","Electronic","Elite","Emboss 2","Emboss","Epic","Fender","Filter","Fire Font-k","Fire Font-s","Flipped","Flower Power","Four Tops","Fraktur","Fun Face","Fun Faces","Future","Fuzzy","Georgi16","Georgia11","Ghost","Ghoulish","Glenyn","Goofy","Gothic","Graceful","Gradient","Graffiti","Greek","Heart Left","Heart Right","Henry 3D","Hex","Hieroglyphs","Hollywood","Horizontal Left","Horizontal Right","ICL-1900","Impossible","Invita","Isometric1","Isometric2","Isometric3","Isometric4","Italic","Ivrit","JS Block Letters","JS Bracket Letters","JS Capital Curves","JS Cursive","JS Stick Letters","Jacky","Jazmine","Jerusalem","Katakana","Kban","Keyboard","Knob","Konto Slant","Konto","LCD","Larry 3D 2","Larry 3D","Lean","Letter","Letters","Lil Devil","Line Blocks","Linux","Lockergnome","Madrid","Marquee","Maxfour","Merlin1","Merlin2","Mike","Mini","Mirror","Mnemonic","Modular","Mono 12","Mono 9","Morse","Morse2","Moscow","Mshebrew210","Muzzle","NScript","NT Greek","NV Script","Nancyj-Fancy","Nancyj-Improved","Nancyj-Underlined","Nancyj","Nipples","O8","OS2","Octal","Ogre","Old Banner","Pagga","Patorjk's Cheese","Patorjk-HeX","Pawp","Peaks Slant","Peaks","Pebbles","Pepper","Poison","Puffy","Puzzle","Pyramid","Rammstein","Rebel","Rectangles","Red Phoenix","Relief","Relief2","Reverse","Roman","Rot13","Rotated","Rounded","Rowan Cap","Rozzo","RubiFont","Runic","Runyc","S Blood","SL Script","Santa Clara","Script","Serifcap","Shaded Blocky","Shadow","Shimrod","Short","Slant Relief","Slant","Slide","Small ASCII 12","Small ASCII 9","Small Block","Small Braille","Small Caps","Small Isometric1","Small Keyboard","Small Mono 12","Small Mono 9","Small Poison","Small Script","Small Shadow","Small Slant","Small Tengwar","Small","Soft","Speed","Spliff","Stacey","Stampate","Stampatello","Standard","Star Strips","Star Wars","Stellar","Stforek","Stick Letters","Stop","Straight","Stronger Than All","Sub-Zero","Swamp Land","Swan","Sweet","THIS","Tanja","Tengwar","Term","Terrace","Test1","The Edge","Thick","Thin","Thorned","Three Point","Ticks Slant","Ticks","Tiles","Tinker-Toy","Tmplr","Tombstone","Train","Trek","Tsalagi","Tubular","Twisted","Two Point","USA Flag","Univers","Upside Down Text","Varsity","Wavescape","Wavy","Weird","Wet Letter","Whimsy","WideTerm","Wow","miniwi"];function xt(u){return/[.*+?^${}()|[\]\\]/.test(u)?"\\"+u:u}const St=(()=>{const{FULL_WIDTH:u=0,FITTING:D,SMUSHING:e,CONTROLLED_SMUSHING:F}=yt,r={},l={font:"Standard",fontPath:"./fonts",fetchFontIfMissing:!0};function a(i,s,t){const n=xt(i.trim().slice(-1))||"@",C=s===t-1?new RegExp(n+n+"?\\s*$"):new RegExp(n+"\\s*$");return i.replace(C,"")}function o(i=-1,s=null){let t={},n,C=[[16384,"vLayout",e],[8192,"vLayout",D],[4096,"vRule5",!0],[2048,"vRule4",!0],[1024,"vRule3",!0],[512,"vRule2",!0],[256,"vRule1",!0],[128,"hLayout",e],[64,"hLayout",D],[32,"hRule6",!0],[16,"hRule5",!0],[8,"hRule4",!0],[4,"hRule3",!0],[2,"hRule2",!0],[1,"hRule1",!0]];n=s!==null?s:i;for(const[E,c,f]of C)n>=E?(n-=E,t[c]===void 0&&(t[c]=f)):c!=="vLayout"&&c!=="hLayout"&&(t[c]=!1);return typeof t.hLayout>"u"?i===0?t.hLayout=D:i===-1?t.hLayout=u:t.hRule1||t.hRule2||t.hRule3||t.hRule4||t.hRule5||t.hRule6?t.hLayout=F:t.hLayout=e:t.hLayout===e&&(t.hRule1||t.hRule2||t.hRule3||t.hRule4||t.hRule5||t.hRule6)&&(t.hLayout=F),typeof t.vLayout>"u"?t.vRule1||t.vRule2||t.vRule3||t.vRule4||t.vRule5?t.vLayout=F:t.vLayout=u:t.vLayout===e&&(t.vRule1||t.vRule2||t.vRule3||t.vRule4||t.vRule5)&&(t.vLayout=F),t}function g(i,s,t=""){return i===s&&i!==t?i:!1}function R(i,s){let t="|/\\[]{}()<>";if(i==="_"){if(t.indexOf(s)!==-1)return s}else if(s==="_"&&t.indexOf(i)!==-1)return i;return!1}function d(i,s){let t="| /\\ [] {} () <>",n=t.indexOf(i),C=t.indexOf(s);if(n!==-1&&C!==-1&&n!==C&&Math.abs(n-C)!==1){const E=Math.max(n,C),c=E+1;return t.substring(E,c)}return!1}function b(i,s){let t="[] {} ()",n=t.indexOf(i),C=t.indexOf(s);return n!==-1&&C!==-1&&Math.abs(n-C)<=1?"|":!1}function y(i,s){return{"/\\":"|","\\/":"Y","><":"X"}[i+s]||!1}function w(i,s,t=""){return i===t&&s===t?t:!1}function k(i,s){return i===s?i:!1}function j(i,s){return R(i,s)}function x(i,s){return d(i,s)}function q(i,s){return i==="-"&&s==="_"||i==="_"&&s==="-"?"=":!1}function su(i,s){return i==="|"&&s==="|"?"|":!1}function X(i,s,t){return s===" "||s===""||s===t&&i!==" "?i:s}function RD(i,s,t){if(t.fittingRules&&t.fittingRules.vLayout===u)return"invalid";let n,C=Math.min(i.length,s.length),E,c,f=!1,h;if(C===0)return"invalid";for(n=0;n<C;n++)if(E=i.substring(n,n+1),c=s.substring(n,n+1),E!==" "&&c!==" "){if(t.fittingRules&&t.fittingRules.vLayout===D)return"invalid";if(t.fittingRules&&t.fittingRules.vLayout===e)return"end";if(su(E,c)){f=f||!1;continue}if(h=!1,h=t.fittingRules&&t.fittingRules.vRule1?k(E,c):h,h=!h&&t.fittingRules&&t.fittingRules.vRule2?j(E,c):h,h=!h&&t.fittingRules&&t.fittingRules.vRule3?x(E,c):h,h=!h&&t.fittingRules&&t.fittingRules.vRule4?q(E,c):h,f=!0,!h)return"invalid"}return f?"end":"valid"}function bD(i,s,t){let n=i.length,C=i.length,E,c,f,h=1,B,A,m;for(;h<=n;){for(E=i.slice(Math.max(0,C-h),C),c=s.slice(0,Math.min(n,h)),f=c.length,m="",B=0;B<f;B++)if(A=RD(E[B],c[B],t),A==="end")m=A;else if(A==="invalid"){m=A;break}else m===""&&(m="valid");if(m==="invalid"){h--;break}if(m==="end")break;m==="valid"&&h++}return Math.min(n,h)}function vD(i,s,t){let n,C=Math.min(i.length,s.length),E,c,f="",h;const B=t.fittingRules||{};for(n=0;n<C;n++)E=i.substring(n,n+1),c=s.substring(n,n+1),E!==" "&&c!==" "?B.vLayout===D||B.vLayout===e?f+=X(E,c):(h=!1,h=B.vRule5?su(E,c):h,h=!h&&B.vRule1?k(E,c):h,h=!h&&B.vRule2?j(E,c):h,h=!h&&B.vRule3?x(E,c):h,h=!h&&B.vRule4?q(E,c):h,f+=h):f+=X(E,c);return f}function yD(i,s,t,n){let C=i.length,E=s.length,c=i.slice(0,Math.max(0,C-t)),f=i.slice(Math.max(0,C-t),C),h=s.slice(0,Math.min(t,E)),B,A,m,p=[],v;for(A=f.length,B=0;B<A;B++)B>=E?m=f[B]:m=vD(f[B],h[B],n),p.push(m);return v=s.slice(Math.min(t,E),E),[...c,...p,...v]}function Ou(i,s){const t=" ".repeat(s);return i.map(n=>n+t)}function wD(i,s,t){let n=i[0].length,C=s[0].length,E;return n>C?s=Ou(s,n-C):C>n&&(i=Ou(i,C-n)),E=bD(i,s,t),yD(i,s,E,t)}function xD(i,s,t){const n=t.fittingRules||{};if(n.hLayout===u)return 0;let C,E=i.length,c=s.length,f=E,h=1,B=!1,A,m,p,v;if(E===0)return 0;u:for(;h<=f;){const G=E-h;for(A=i.substring(G,G+h),m=s.substring(0,Math.min(h,c)),C=0;C<Math.min(h,c);C++)if(p=A.substring(C,C+1),v=m.substring(C,C+1),p!==" "&&v!==" "){if(n.hLayout===D){h=h-1;break u}else if(n.hLayout===e){(p===t.hardBlank||v===t.hardBlank)&&(h=h-1);break u}else if(B=!0,!(n.hRule1&&g(p,v,t.hardBlank)||n.hRule2&&R(p,v)||n.hRule3&&d(p,v)||n.hRule4&&b(p,v)||n.hRule5&&y(p,v)||n.hRule6&&w(p,v,t.hardBlank))){h=h-1;break u}}if(B)break;h++}return Math.min(f,h)}function du(i,s,t,n){let C,E,c=[],f,h,B,A,m,p,v,G;const O=n.fittingRules||{};if(typeof n.height!="number")throw new Error("height is not defined.");for(C=0;C<n.height;C++){v=i[C],G=s[C],m=v.length,p=G.length,f=m-t,h=v.slice(0,Math.max(0,f)),B="";const Fu=Math.max(0,m-t);let U=v.substring(Fu,Fu+t),J=G.substring(0,Math.min(t,p));for(E=0;E<t;E++){let P=E<m?U.substring(E,E+1):" ",_=E<p?J.substring(E,E+1):" ";if(P!==" "&&_!==" ")if(O.hLayout===D||O.hLayout===e)B+=X(P,_,n.hardBlank);else{const MD=O.hRule1&&g(P,_,n.hardBlank)||O.hRule2&&R(P,_)||O.hRule3&&d(P,_)||O.hRule4&&b(P,_)||O.hRule5&&y(P,_)||O.hRule6&&w(P,_,n.hardBlank)||X(P,_,n.hardBlank);B+=MD}else B+=X(P,_,n.hardBlank)}t>=p?A="":A=G.substring(t,t+Math.max(0,p-t)),c[C]=h+B+A}return c}function Z(i){return new Array(i).fill("")}const tu=function(i){return Math.max(...i.map(s=>s.length))};function Q(i,s,t){return i.reduce(function(n,C){return du(n,C.fig,C.overlap||0,t)},Z(s))}function SD(i,s,t){for(let n=i.length-1;n>0;n--){const C=Q(i.slice(0,n),s,t);if(tu(C)<=t.width)return{outputFigText:C,chars:i.slice(n)}}return{outputFigText:Z(s),chars:i}}function LD(i,s,t){let n,C,E=0,c,f,h,B=t.height,A=[],m,p={chars:[],overlap:E},v=[],G,O,Fu,U,J;if(typeof B!="number")throw new Error("height is not defined.");f=Z(B);const P=t.fittingRules||{};for(t.printDirection===1&&(i=i.split("").reverse().join("")),h=i.length,n=0;n<h;n++)if(G=i.substring(n,n+1),O=G.match(/\s/),C=s[G.charCodeAt(0)],U=null,C){if(P.hLayout!==u){for(E=1e4,c=0;c<B;c++)E=Math.min(E,xD(f[c],C[c],t));E=E===1e4?0:E}if(t.width>0&&(t.whitespaceBreak?(Fu=Q(p.chars.concat([{fig:C,overlap:E}]),B,t),U=Q(v.concat([{fig:Fu,overlap:p.overlap}]),B,t),m=tu(U)):(U=du(f,C,E,t),m=tu(U)),m>=t.width&&n>0&&(t.whitespaceBreak?(f=Q(v.slice(0,-1),B,t),v.length>1&&(A.push(f),f=Z(B)),v=[]):(A.push(f),f=Z(B)))),t.width>0&&t.whitespaceBreak&&((!O||n===h-1)&&p.chars.push({fig:C,overlap:E}),O||n===h-1)){for(J=null;U=Q(p.chars,B,t),m=tu(U),m>=t.width;)J=SD(p.chars,B,t),p={chars:J.chars},A.push(J.outputFigText);m>0&&(J?v.push({fig:U,overlap:1}):v.push({fig:U,overlap:p.overlap})),O&&(v.push({fig:C,overlap:E}),f=Z(B)),n===h-1&&(f=Q(v,B,t)),p={chars:[],overlap:E};continue}f=du(f,C,E,t)}return tu(f)>0&&A.push(f),t.showHardBlanks||A.forEach(function(_){for(h=_.length,c=0;c<h;c++)_[c]=_[c].replace(new RegExp("\\"+t.hardBlank,"g")," ")}),i===""&&A.length===0&&A.push(new Array(B).fill("")),A}const TD=function(i,s){let t;const n=s.fittingRules||{};if(i==="default")t={hLayout:n.hLayout,hRule1:n.hRule1,hRule2:n.hRule2,hRule3:n.hRule3,hRule4:n.hRule4,hRule5:n.hRule5,hRule6:n.hRule6};else if(i==="full")t={hLayout:u,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else if(i==="fitted")t={hLayout:D,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else if(i==="controlled smushing")t={hLayout:F,hRule1:!0,hRule2:!0,hRule3:!0,hRule4:!0,hRule5:!0,hRule6:!0};else if(i==="universal smushing")t={hLayout:e,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else return;return t},ID=function(i,s){let t={};const n=s.fittingRules||{};if(i==="default")t={vLayout:n.vLayout,vRule1:n.vRule1,vRule2:n.vRule2,vRule3:n.vRule3,vRule4:n.vRule4,vRule5:n.vRule5};else if(i==="full")t={vLayout:u,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else if(i==="fitted")t={vLayout:D,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else if(i==="controlled smushing")t={vLayout:F,vRule1:!0,vRule2:!0,vRule3:!0,vRule4:!0,vRule5:!0};else if(i==="universal smushing")t={vLayout:e,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else return;return t},_u=function(i,s,t){t=t.replace(/\r\n/g,`
|
|
21
|
+
`),R(),g(w.value)}else y.ctrl&&y.name==="c"?(R(),Y.exit(0)):y.name==="up"?(a=(a-1+r.length)%r.length,o()):y.name==="down"&&(a=(a+1)%r.length,o())};D.on("keypress",d)})}const yt={FULL_WIDTH:0,FITTING:1,SMUSHING:2,CONTROLLED_SMUSHING:3};class wt{constructor(){this.comment="",this.numChars=0,this.options={}}}const $u=["1Row","3-D","3D Diagonal","3D-ASCII","3x5","4Max","5 Line Oblique","AMC 3 Line","AMC 3 Liv1","AMC AAA01","AMC Neko","AMC Razor","AMC Razor2","AMC Slash","AMC Slider","AMC Thin","AMC Tubes","AMC Untitled","ANSI Regular","ANSI Shadow","ANSI-Compact","ASCII 12","ASCII 9","ASCII New Roman","Acrobatic","Alligator","Alligator2","Alpha","Alphabet","Arrows","Avatar","B1FF","Babyface Lame","Babyface Leet","Banner","Banner3-D","Banner3","Banner4","Barbwire","Basic","Bear","Bell","Benjamin","Big ASCII 12","Big ASCII 9","Big Chief","Big Money-ne","Big Money-nw","Big Money-se","Big Money-sw","Big Mono 12","Big Mono 9","Big","Bigfig","Binary","Block","Blocks","Bloody","BlurVision ASCII","Bolger","Braced","Bright","Broadway KB","Broadway","Bubble","Bulbhead","Caligraphy","Caligraphy2","Calvin S","Cards","Catwalk","Chiseled","Chunky","Circle","Coinstak","Cola","Colossal","Computer","Contessa","Contrast","Cosmike","Cosmike2","Crawford","Crawford2","Crazy","Cricket","Cursive","Cyberlarge","Cybermedium","Cybersmall","Cygnet","DANC4","DOS Rebel","DWhistled","Dancing Font","Decimal","Def Leppard","Delta Corps Priest 1","DiamFont","Diamond","Diet Cola","Digital","Doh","Doom","Dot Matrix","Double Shorts","Double","Dr Pepper","Efti Chess","Efti Font","Efti Italic","Efti Piti","Efti Robot","Efti Wall","Efti Water","Electronic","Elite","Emboss 2","Emboss","Epic","Fender","Filter","Fire Font-k","Fire Font-s","Flipped","Flower Power","Four Tops","Fraktur","Fun Face","Fun Faces","Future","Fuzzy","Georgi16","Georgia11","Ghost","Ghoulish","Glenyn","Goofy","Gothic","Graceful","Gradient","Graffiti","Greek","Heart Left","Heart Right","Henry 3D","Hex","Hieroglyphs","Hollywood","Horizontal Left","Horizontal Right","ICL-1900","Impossible","Invita","Isometric1","Isometric2","Isometric3","Isometric4","Italic","Ivrit","JS Block Letters","JS Bracket Letters","JS Capital Curves","JS Cursive","JS Stick Letters","Jacky","Jazmine","Jerusalem","Katakana","Kban","Keyboard","Knob","Konto Slant","Konto","LCD","Larry 3D 2","Larry 3D","Lean","Letter","Letters","Lil Devil","Line Blocks","Linux","Lockergnome","Madrid","Marquee","Maxfour","Merlin1","Merlin2","Mike","Mini","Mirror","Mnemonic","Modular","Mono 12","Mono 9","Morse","Morse2","Moscow","Mshebrew210","Muzzle","NScript","NT Greek","NV Script","Nancyj-Fancy","Nancyj-Improved","Nancyj-Underlined","Nancyj","Nipples","O8","OS2","Octal","Ogre","Old Banner","Pagga","Patorjk's Cheese","Patorjk-HeX","Pawp","Peaks Slant","Peaks","Pebbles","Pepper","Poison","Puffy","Puzzle","Pyramid","Rammstein","Rebel","Rectangles","Red Phoenix","Relief","Relief2","Reverse","Roman","Rot13","Rotated","Rounded","Rowan Cap","Rozzo","RubiFont","Runic","Runyc","S Blood","SL Script","Santa Clara","Script","Serifcap","Shaded Blocky","Shadow","Shimrod","Short","Slant Relief","Slant","Slide","Small ASCII 12","Small ASCII 9","Small Block","Small Braille","Small Caps","Small Isometric1","Small Keyboard","Small Mono 12","Small Mono 9","Small Poison","Small Script","Small Shadow","Small Slant","Small Tengwar","Small","Soft","Speed","Spliff","Stacey","Stampate","Stampatello","Standard","Star Strips","Star Wars","Stellar","Stforek","Stick Letters","Stop","Straight","Stronger Than All","Sub-Zero","Swamp Land","Swan","Sweet","THIS","Tanja","Tengwar","Term","Terrace","Test1","The Edge","Thick","Thin","Thorned","Three Point","Ticks Slant","Ticks","Tiles","Tinker-Toy","Tmplr","Tombstone","Train","Trek","Tsalagi","Tubular","Twisted","Two Point","USA Flag","Univers","Upside Down Text","Varsity","Wavescape","Wavy","Weird","Wet Letter","Whimsy","WideTerm","Wow","miniwi"];function xt(u){return/[.*+?^${}()|[\]\\]/.test(u)?"\\"+u:u}const St=(()=>{const{FULL_WIDTH:u=0,FITTING:D,SMUSHING:e,CONTROLLED_SMUSHING:F}=yt,r={},l={font:"Standard",fontPath:"./fonts",fetchFontIfMissing:!0};function a(i,s,t){const n=xt(i.trim().slice(-1))||"@",C=s===t-1?new RegExp(n+n+"?\\s*$"):new RegExp(n+"\\s*$");return i.replace(C,"")}function o(i=-1,s=null){let t={},n,C=[[16384,"vLayout",e],[8192,"vLayout",D],[4096,"vRule5",!0],[2048,"vRule4",!0],[1024,"vRule3",!0],[512,"vRule2",!0],[256,"vRule1",!0],[128,"hLayout",e],[64,"hLayout",D],[32,"hRule6",!0],[16,"hRule5",!0],[8,"hRule4",!0],[4,"hRule3",!0],[2,"hRule2",!0],[1,"hRule1",!0]];n=s!==null?s:i;for(const[E,c,f]of C)n>=E?(n-=E,t[c]===void 0&&(t[c]=f)):c!=="vLayout"&&c!=="hLayout"&&(t[c]=!1);return typeof t.hLayout>"u"?i===0?t.hLayout=D:i===-1?t.hLayout=u:t.hRule1||t.hRule2||t.hRule3||t.hRule4||t.hRule5||t.hRule6?t.hLayout=F:t.hLayout=e:t.hLayout===e&&(t.hRule1||t.hRule2||t.hRule3||t.hRule4||t.hRule5||t.hRule6)&&(t.hLayout=F),typeof t.vLayout>"u"?t.vRule1||t.vRule2||t.vRule3||t.vRule4||t.vRule5?t.vLayout=F:t.vLayout=u:t.vLayout===e&&(t.vRule1||t.vRule2||t.vRule3||t.vRule4||t.vRule5)&&(t.vLayout=F),t}function g(i,s,t=""){return i===s&&i!==t?i:!1}function R(i,s){let t="|/\\[]{}()<>";if(i==="_"){if(t.indexOf(s)!==-1)return s}else if(s==="_"&&t.indexOf(i)!==-1)return i;return!1}function d(i,s){let t="| /\\ [] {} () <>",n=t.indexOf(i),C=t.indexOf(s);if(n!==-1&&C!==-1&&n!==C&&Math.abs(n-C)!==1){const E=Math.max(n,C),c=E+1;return t.substring(E,c)}return!1}function b(i,s){let t="[] {} ()",n=t.indexOf(i),C=t.indexOf(s);return n!==-1&&C!==-1&&Math.abs(n-C)<=1?"|":!1}function y(i,s){return{"/\\":"|","\\/":"Y","><":"X"}[i+s]||!1}function w(i,s,t=""){return i===t&&s===t?t:!1}function k(i,s){return i===s?i:!1}function j(i,s){return R(i,s)}function x(i,s){return d(i,s)}function q(i,s){return i==="-"&&s==="_"||i==="_"&&s==="-"?"=":!1}function su(i,s){return i==="|"&&s==="|"?"|":!1}function X(i,s,t){return s===" "||s===""||s===t&&i!==" "?i:s}function RD(i,s,t){if(t.fittingRules&&t.fittingRules.vLayout===u)return"invalid";let n,C=Math.min(i.length,s.length),E,c,f=!1,h;if(C===0)return"invalid";for(n=0;n<C;n++)if(E=i.substring(n,n+1),c=s.substring(n,n+1),E!==" "&&c!==" "){if(t.fittingRules&&t.fittingRules.vLayout===D)return"invalid";if(t.fittingRules&&t.fittingRules.vLayout===e)return"end";if(su(E,c)){f=f||!1;continue}if(h=!1,h=t.fittingRules&&t.fittingRules.vRule1?k(E,c):h,h=!h&&t.fittingRules&&t.fittingRules.vRule2?j(E,c):h,h=!h&&t.fittingRules&&t.fittingRules.vRule3?x(E,c):h,h=!h&&t.fittingRules&&t.fittingRules.vRule4?q(E,c):h,f=!0,!h)return"invalid"}return f?"end":"valid"}function bD(i,s,t){let n=i.length,C=i.length,E,c,f,h=1,B,A,m;for(;h<=n;){for(E=i.slice(Math.max(0,C-h),C),c=s.slice(0,Math.min(n,h)),f=c.length,m="",B=0;B<f;B++)if(A=RD(E[B],c[B],t),A==="end")m=A;else if(A==="invalid"){m=A;break}else m===""&&(m="valid");if(m==="invalid"){h--;break}if(m==="end")break;m==="valid"&&h++}return Math.min(n,h)}function vD(i,s,t){let n,C=Math.min(i.length,s.length),E,c,f="",h;const B=t.fittingRules||{};for(n=0;n<C;n++)E=i.substring(n,n+1),c=s.substring(n,n+1),E!==" "&&c!==" "?B.vLayout===D||B.vLayout===e?f+=X(E,c):(h=!1,h=B.vRule5?su(E,c):h,h=!h&&B.vRule1?k(E,c):h,h=!h&&B.vRule2?j(E,c):h,h=!h&&B.vRule3?x(E,c):h,h=!h&&B.vRule4?q(E,c):h,f+=h):f+=X(E,c);return f}function yD(i,s,t,n){let C=i.length,E=s.length,c=i.slice(0,Math.max(0,C-t)),f=i.slice(Math.max(0,C-t),C),h=s.slice(0,Math.min(t,E)),B,A,m,p=[],v;for(A=f.length,B=0;B<A;B++)B>=E?m=f[B]:m=vD(f[B],h[B],n),p.push(m);return v=s.slice(Math.min(t,E),E),[...c,...p,...v]}function Ou(i,s){const t=" ".repeat(s);return i.map(n=>n+t)}function wD(i,s,t){let n=i[0].length,C=s[0].length,E;return n>C?s=Ou(s,n-C):C>n&&(i=Ou(i,C-n)),E=bD(i,s,t),yD(i,s,E,t)}function xD(i,s,t){const n=t.fittingRules||{};if(n.hLayout===u)return 0;let C,E=i.length,c=s.length,f=E,h=1,B=!1,A,m,p,v;if(E===0)return 0;u:for(;h<=f;){const W=E-h;for(A=i.substring(W,W+h),m=s.substring(0,Math.min(h,c)),C=0;C<Math.min(h,c);C++)if(p=A.substring(C,C+1),v=m.substring(C,C+1),p!==" "&&v!==" "){if(n.hLayout===D){h=h-1;break u}else if(n.hLayout===e){(p===t.hardBlank||v===t.hardBlank)&&(h=h-1);break u}else if(B=!0,!(n.hRule1&&g(p,v,t.hardBlank)||n.hRule2&&R(p,v)||n.hRule3&&d(p,v)||n.hRule4&&b(p,v)||n.hRule5&&y(p,v)||n.hRule6&&w(p,v,t.hardBlank))){h=h-1;break u}}if(B)break;h++}return Math.min(f,h)}function du(i,s,t,n){let C,E,c=[],f,h,B,A,m,p,v,W;const O=n.fittingRules||{};if(typeof n.height!="number")throw new Error("height is not defined.");for(C=0;C<n.height;C++){v=i[C],W=s[C],m=v.length,p=W.length,f=m-t,h=v.slice(0,Math.max(0,f)),B="";const Fu=Math.max(0,m-t);let U=v.substring(Fu,Fu+t),J=W.substring(0,Math.min(t,p));for(E=0;E<t;E++){let P=E<m?U.substring(E,E+1):" ",_=E<p?J.substring(E,E+1):" ";if(P!==" "&&_!==" ")if(O.hLayout===D||O.hLayout===e)B+=X(P,_,n.hardBlank);else{const MD=O.hRule1&&g(P,_,n.hardBlank)||O.hRule2&&R(P,_)||O.hRule3&&d(P,_)||O.hRule4&&b(P,_)||O.hRule5&&y(P,_)||O.hRule6&&w(P,_,n.hardBlank)||X(P,_,n.hardBlank);B+=MD}else B+=X(P,_,n.hardBlank)}t>=p?A="":A=W.substring(t,t+Math.max(0,p-t)),c[C]=h+B+A}return c}function Z(i){return new Array(i).fill("")}const tu=function(i){return Math.max(...i.map(s=>s.length))};function Q(i,s,t){return i.reduce(function(n,C){return du(n,C.fig,C.overlap||0,t)},Z(s))}function SD(i,s,t){for(let n=i.length-1;n>0;n--){const C=Q(i.slice(0,n),s,t);if(tu(C)<=t.width)return{outputFigText:C,chars:i.slice(n)}}return{outputFigText:Z(s),chars:i}}function LD(i,s,t){let n,C,E=0,c,f,h,B=t.height,A=[],m,p={chars:[],overlap:E},v=[],W,O,Fu,U,J;if(typeof B!="number")throw new Error("height is not defined.");f=Z(B);const P=t.fittingRules||{};for(t.printDirection===1&&(i=i.split("").reverse().join("")),h=i.length,n=0;n<h;n++)if(W=i.substring(n,n+1),O=W.match(/\s/),C=s[W.charCodeAt(0)],U=null,C){if(P.hLayout!==u){for(E=1e4,c=0;c<B;c++)E=Math.min(E,xD(f[c],C[c],t));E=E===1e4?0:E}if(t.width>0&&(t.whitespaceBreak?(Fu=Q(p.chars.concat([{fig:C,overlap:E}]),B,t),U=Q(v.concat([{fig:Fu,overlap:p.overlap}]),B,t),m=tu(U)):(U=du(f,C,E,t),m=tu(U)),m>=t.width&&n>0&&(t.whitespaceBreak?(f=Q(v.slice(0,-1),B,t),v.length>1&&(A.push(f),f=Z(B)),v=[]):(A.push(f),f=Z(B)))),t.width>0&&t.whitespaceBreak&&((!O||n===h-1)&&p.chars.push({fig:C,overlap:E}),O||n===h-1)){for(J=null;U=Q(p.chars,B,t),m=tu(U),m>=t.width;)J=SD(p.chars,B,t),p={chars:J.chars},A.push(J.outputFigText);m>0&&(J?v.push({fig:U,overlap:1}):v.push({fig:U,overlap:p.overlap})),O&&(v.push({fig:C,overlap:E}),f=Z(B)),n===h-1&&(f=Q(v,B,t)),p={chars:[],overlap:E};continue}f=du(f,C,E,t)}return tu(f)>0&&A.push(f),t.showHardBlanks||A.forEach(function(_){for(h=_.length,c=0;c<h;c++)_[c]=_[c].replace(new RegExp("\\"+t.hardBlank,"g")," ")}),i===""&&A.length===0&&A.push(new Array(B).fill("")),A}const TD=function(i,s){let t;const n=s.fittingRules||{};if(i==="default")t={hLayout:n.hLayout,hRule1:n.hRule1,hRule2:n.hRule2,hRule3:n.hRule3,hRule4:n.hRule4,hRule5:n.hRule5,hRule6:n.hRule6};else if(i==="full")t={hLayout:u,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else if(i==="fitted")t={hLayout:D,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else if(i==="controlled smushing")t={hLayout:F,hRule1:!0,hRule2:!0,hRule3:!0,hRule4:!0,hRule5:!0,hRule6:!0};else if(i==="universal smushing")t={hLayout:e,hRule1:!1,hRule2:!1,hRule3:!1,hRule4:!1,hRule5:!1,hRule6:!1};else return;return t},ID=function(i,s){let t={};const n=s.fittingRules||{};if(i==="default")t={vLayout:n.vLayout,vRule1:n.vRule1,vRule2:n.vRule2,vRule3:n.vRule3,vRule4:n.vRule4,vRule5:n.vRule5};else if(i==="full")t={vLayout:u,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else if(i==="fitted")t={vLayout:D,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else if(i==="controlled smushing")t={vLayout:F,vRule1:!0,vRule2:!0,vRule3:!0,vRule4:!0,vRule5:!0};else if(i==="universal smushing")t={vLayout:e,vRule1:!1,vRule2:!1,vRule3:!1,vRule4:!1,vRule5:!1};else return;return t},_u=function(i,s,t){t=t.replace(/\r\n/g,`
|
|
22
22
|
`).replace(/\r/g,`
|
|
23
23
|
`);let n=t.split(`
|
|
24
24
|
`),C=[],E,c,f;for(c=n.length,E=0;E<c;E++)C=C.concat(LD(n[E],r[i],s));for(c=C.length,f=C[0],E=1;E<c;E++)f=wD(f,C[E],s);return f?f.join(`
|
|
@@ -28,7 +28,7 @@ ${R.description||""}`)};return o(!0),new Promise(g=>{const R=()=>{e.write("\x1B[
|
|
|
28
28
|
`),E=C.shift();if(!E)throw new Error("Invalid font file: missing header");const c=E.split(" "),f={hardBlank:c[0].substring(5,6),height:parseInt(c[1],10),baseline:parseInt(c[2],10),maxLength:parseInt(c[3],10),oldLayout:parseInt(c[4],10),numCommentLines:parseInt(c[5],10),printDirection:c[6]?parseInt(c[6],10):0,fullLayout:c[7]?parseInt(c[7],10):null,codeTagCount:c[8]?parseInt(c[8],10):null};if((f.hardBlank||"").length!==1||[f.height,f.baseline,f.maxLength,f.oldLayout,f.numCommentLines].some(A=>A==null||isNaN(A)))throw new Error("FIGlet header contains invalid values.");if(f.height==null||f.numCommentLines==null)throw new Error("FIGlet header contains invalid values.");f.fittingRules=o(f.oldLayout,f.fullLayout),n.options=f;const B=[];for(let A=32;A<=126;A++)B.push(A);if(B.push(196,214,220,228,246,252,223),C.length<f.numCommentLines+f.height*B.length)throw new Error(`FIGlet file is missing data. Line length: ${C.length}. Comment lines: ${f.numCommentLines}. Height: ${f.height}. Num chars: ${B.length}.`);for(n.comment=C.splice(0,f.numCommentLines).join(`
|
|
29
29
|
`),n.numChars=0;C.length>0&&n.numChars<B.length;){const A=B[n.numChars];n[A]=C.splice(0,f.height);for(let m=0;m<f.height;m++)typeof n[A][m]>"u"?n[A][m]="":n[A][m]=a(n[A][m],m,f.height);n.numChars++}for(;C.length>0;){const A=C.shift();if(!A||A.trim()==="")break;let m=A.split(" ")[0],p;if(/^-?0[xX][0-9a-fA-F]+$/.test(m))p=parseInt(m,16);else if(/^-?0[0-7]+$/.test(m))p=parseInt(m,8);else if(/^-?[0-9]+$/.test(m))p=parseInt(m,10);else throw new Error(`Error parsing data. Invalid data: ${m}`);if(p===-1||p<-2147483648||p>2147483647){const v=p===-1?"The char code -1 is not permitted.":`The char code cannot be ${p<-2147483648?"less than -2147483648":"greater than 2147483647"}.`;throw new Error(`Error parsing data. ${v}`)}n[p]=C.splice(0,f.height);for(let v=0;v<f.height;v++)typeof n[p][v]>"u"?n[p][v]="":n[p][v]=a(n[p][v],v,f.height);n.numChars++}return r[i]=n,f},M.loadedFonts=()=>Object.keys(r),M.clearLoadedFonts=()=>{Object.keys(r).forEach(i=>{delete r[i]})},M.loadFont=async function(i,s){if(r[i]){const t=r[i].options;return s&&s(null,t),Promise.resolve(t)}try{if(!l.fetchFontIfMissing)throw new Error(`Font is not loaded: ${i}`);const t=await fetch(`${l.fontPath}/${i}.flf`);if(!t.ok)throw new Error(`Network response was not ok: ${t.status}`);const n=await t.text(),C=M.parseFont(i,n);return s&&s(null,C),C}catch(t){const n=t instanceof Error?t:new Error(String(t));if(s)return s(n),null;throw n}},M.loadFontSync=function(i){if(r[i])return r[i].options;throw new Error("Synchronous font loading is not implemented for the browser, it will only work for fonts already loaded.")},M.preloadFonts=async function(i,s){try{for(const t of i){const n=await fetch(`${l.fontPath}/${t}.flf`);if(!n.ok)throw new Error(`Failed to preload fonts. Error fetching font: ${t}, status code: ${n.statusText}`);const C=await n.text();M.parseFont(t,C)}s&&s()}catch(t){const n=t instanceof Error?t:new Error(String(t));if(s){s(n);return}throw t}},M.fonts=function(i){return new Promise(function(s,t){s($u),i&&i(null,$u)})},M.fontsSync=function(){return $u},M.figFonts=r,M})(),Lt=jD(import.meta.url),Tt=au.dirname(Lt),It=au.join(Tt,"/../fonts/"),$=St;$.defaults({fontPath:It}),$.loadFont=function(u,D){return new Promise((e,F)=>{if($.figFonts[u]){D&&D(null,$.figFonts[u].options),e($.figFonts[u].options);return}ou.readFile(au.join($.defaults().fontPath,u+".flf"),{encoding:"utf-8"},(r,l)=>{if(r){D&&D(r),F(r);return}l=l+"";try{const a=$.parseFont(u,l);D&&D(null,a),e(a)}catch(a){const o=a instanceof Error?a:new Error(String(a));D&&D(o),F(o)}})})},$.loadFontSync=function(u){if($.figFonts[u])return $.figFonts[u].options;const D=ou.readFileSync(au.join($.defaults().fontPath,u+".flf"),{encoding:"utf-8"})+"";return $.parseFont(u,D)},$.fonts=function(u){return new Promise((D,e)=>{const F=[];ou.readdir($.defaults().fontPath,(r,l)=>{if(r){u&&u(r),e(r);return}l.forEach(a=>{/\.flf$/.test(a)&&F.push(a.replace(/\.flf$/,""))}),u&&u(null,F),D(F)})})},$.fontsSync=function(){const u=[];return ou.readdirSync($.defaults().fontPath).forEach(D=>{/\.flf$/.test(D)&&u.push(D.replace(/\.flf$/,""))}),u};var Mt=Object.freeze({__proto__:null,default:$});const ku=u=>{let D;const e=process.platform;e==="darwin"?D=`open "${u}"`:e==="win32"?D=`start "" "${u}"`:D=`xdg-open "${u}"`,kD(D,F=>{})},$t=u=>{const{theme:D,ui:e}=u.config,{name:F,website:r,displayEmail:l,currentRole:a,npx:o}=u.personal,g=F.split(" ")?.[0],R=r||`https://${l.replace(/.*@/,"")}`,d=T[D.secondary]||T.whiteBright,b=$.textSync(F.toUpperCase().replace(" ",`
|
|
30
30
|
`),{font:"ANSI Shadow"}),y=[...u.socialHandles.map(x=>({label:Re(x.platform),value:`${x.url}/${x.handle}`,color:x.color})),{label:e.title,value:R,color:D.accent},{label:e.npx,value:o||`npx ${g.toLowerCase()}`,color:"#cb3837"}],w=Math.max(...y.map(x=>x.label.length)),k=Math.max(...y.map(x=>x.value.length)),j=[null,...b.split(`
|
|
31
|
-
`).map(x=>T.bold.whiteBright(fu(x))),d(fu(a.toUpperCase())),null,...y.map(x=>{const q=x.label.padEnd(w," "),su=x.value.padEnd(k," ");return T.
|
|
31
|
+
`).map(x=>T.bold.whiteBright(fu(x))),d(fu(a.toUpperCase())),null,...y.map(x=>{const q=x.label.padEnd(w," "),su=x.value.padEnd(k," ");return T.bgHex(x.color).whiteBright.bold(fu(` ${q} : ${su} `))}),null,...e?.footer?.map(x=>T.italic(d(fu(x))))||[],null];console.log(bt(j.join(`
|
|
32
32
|
`),{margin:1,float:"center",textAlignment:"center",borderStyle:D.borderStyle,borderColor:D.borderColor})),console.log(e.cmdTip)};var kt=(u=>(u.EMAIL="email",u.RESUME="resume",u.MEETING="meeting",u.EXIT="exit",u))(kt||{});const Ot=u=>{const{messages:D,theme:e}=u.config,[F,r]=[e.primary,e.secondary].map(o=>T[o]||T.whiteBright),l=(o,g)=>{const R=D[o],d=R?.message||"",b=R?.description||"";return{name:g?d.replace(g,F(g)):d,value:o,description:r(`
|
|
33
33
|
`+b)}},a={email:()=>{ku(`mailto:${u.personal.displayEmail}?subject=Hi%20${u.personal.name.split(" ")?.[0]}!`),console.log(`
|
|
34
34
|
|
|
@@ -42,6 +42,6 @@ ${D.meeting.success}
|
|
|
42
42
|
`)},exit:()=>console.log(`
|
|
43
43
|
|
|
44
44
|
${D.exit.success}
|
|
45
|
-
`)};vt({message:"Choose an Action",choices:[l("email","email"),l("resume","Resume"),l("meeting","Meeting"),l("exit")]}).then(o=>a[o]())},_t=async()=>{if(console.clear(),ne(
|
|
45
|
+
`)};vt({message:"Choose an Action",choices:[l("email","email"),l("resume","Resume"),l("meeting","Meeting"),l("exit")]}).then(o=>a[o]())},_t=async()=>{if(console.clear(),ne(Gu.name))return;const u=new be("Fetching data...").start();try{const[D]=await Promise.all([Fe(),re()]);D.config={theme:{...uu.theme,...D.config?.theme},ui:{...uu.ui,...D.config?.ui},messages:{email:{...uu.messages?.email,...D.config?.messages?.email},resume:{...uu.messages?.resume,...D.config?.messages?.resume},meeting:{...uu.messages?.meeting,...D.config?.messages?.meeting},exit:{...uu.messages?.exit,...D.config?.messages?.exit}}},u.succeed(`Welcome to ${D.personal.name.split(" ")?.[0]}'s Cli Portfolio ${T.dim(`- v${Gu.version}`)}`),$t(D),Ot(D)}catch(D){u.fail("Failed to load profile"),D instanceof Error?console.error(`
|
|
46
46
|
Error: ${D.message}`):console.error(`
|
|
47
47
|
An unknown error occurred.`),process.exit(1)}};_t();
|