UNPKG

create-stencil

Version:

Quickly create a new stencil component project: npm init stencil

2 lines 271 kB
#! /usr/bin/env node import{types as e,deprecate as t,promisify as r}from"node:util";import n,{stdout as s,stdin as i}from"node:process";import*as o from"node:readline";import a from"node:readline";import{WriteStream as u}from"node:tty";import*as l from"node:fs";import c,{promises as h}from"node:fs";import d,{win32 as f,posix as p}from"node:path";import*as D from"tty";import m from"tty";import g from"node:http";import y from"node:https";import b from"node:zlib";import w,{PassThrough as C,pipeline as v}from"node:stream";import{Buffer as F}from"node:buffer";import E,{format as S,fileURLToPath as _}from"node:url";import{isIP as B}from"node:net";import A from"net";import T from"tls";import x from"assert";import k from"util";import R from"os";import O from"http";import P from"https";import L from"url";import $,{realpathSync as M,readlinkSync as z,readdirSync as j,readdir as I,lstatSync as W}from"fs";import N from"path";import q from"zlib";import U from"stream";import G from"events";import H from"buffer";import{spawn as V,execSync as Y}from"node:child_process";import J,{realpath as K,readlink as Q,readdir as Z,lstat as X}from"node:fs/promises";import{EventEmitter as ee}from"node:events";import{StringDecoder as te}from"node:string_decoder";var re,ne,se="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oe,ae=function(){if(ne)return re;ne=1;const e="[",t={to:(t,r)=>r?`${e}${r+1};${t+1}H`:`${e}${t+1}G`,move(t,r){let n="";return t<0?n+=`${e}${-t}D`:t>0&&(n+=`${e}${t}C`),r<0?n+=`${e}${-r}A`:r>0&&(n+=`${e}${r}B`),n},up:(t=1)=>`${e}${t}A`,down:(t=1)=>`${e}${t}B`,forward:(t=1)=>`${e}${t}C`,backward:(t=1)=>`${e}${t}D`,nextLine:(t=1)=>`${e}E`.repeat(t),prevLine:(t=1)=>`${e}F`.repeat(t),left:`${e}G`,hide:`${e}?25l`,show:`${e}?25h`,save:"7",restore:"8"},r={up:(t=1)=>`${e}S`.repeat(t),down:(t=1)=>`${e}T`.repeat(t)},n={screen:`${e}2J`,up:(t=1)=>`${e}1J`.repeat(t),down:(t=1)=>`${e}J`.repeat(t),line:`${e}2K`,lineEnd:`${e}K`,lineStart:`${e}1K`,lines(e){let r="";for(let n=0;n<e;n++)r+=this.line+(n<e-1?t.up():"");return e&&(r+=t.left),r}};return re={cursor:t,scroll:r,erase:n,beep:""}}(),ue={exports:{}};function le(){if(oe)return ue.exports;oe=1;let e=process||{},t=e.argv||[],r=e.env||{},n=!(r.NO_COLOR||t.includes("--no-color"))&&(!!r.FORCE_COLOR||t.includes("--color")||"win32"===e.platform||(e.stdout||{}).isTTY&&"dumb"!==r.TERM||!!r.CI),s=(e,t,r=e)=>n=>{let s=""+n,o=s.indexOf(t,e.length);return~o?e+i(s,t,r,o)+t:e+s+t},i=(e,t,r,n)=>{let s="",i=0;do{s+=e.substring(i,n)+r,i=n+t.length,n=e.indexOf(t,i)}while(~n);return s+e.substring(i)},o=(e=n)=>{let t=e?s:()=>String;return{isColorSupported:e,reset:t("",""),bold:t("","",""),dim:t("","",""),italic:t("",""),underline:t("",""),inverse:t("",""),hidden:t("",""),strikethrough:t("",""),black:t("",""),red:t("",""),green:t("",""),yellow:t("",""),blue:t("",""),magenta:t("",""),cyan:t("",""),white:t("",""),gray:t("",""),bgBlack:t("",""),bgRed:t("",""),bgGreen:t("",""),bgYellow:t("",""),bgBlue:t("",""),bgMagenta:t("",""),bgCyan:t("",""),bgWhite:t("",""),blackBright:t("",""),redBright:t("",""),greenBright:t("",""),yellowBright:t("",""),blueBright:t("",""),magentaBright:t("",""),cyanBright:t("",""),whiteBright:t("",""),bgBlackBright:t("",""),bgRedBright:t("",""),bgGreenBright:t("",""),bgYellowBright:t("",""),bgBlueBright:t("",""),bgMagentaBright:t("",""),bgCyanBright:t("",""),bgWhiteBright:t("","")}};return ue.exports=o(),ue.exports.createColors=o,ue.exports}const ce=ie(le());const he=function({onlyFirst:e=!1}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}();function de(e){if("string"!=typeof e)throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(he,"")}function fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pe={exports:{}};!function(){var e={};function t(e){return e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}pe.exports=e,e.eastAsianWidth=function(e){var t=e.charCodeAt(0),r=2==e.length?e.charCodeAt(1):0,n=t;return 55296<=t&&t<=56319&&56320<=r&&r<=57343&&(n=(t&=1023)<<10|(r&=1023),n+=65536),12288==n||65281<=n&&n<=65376||65504<=n&&n<=65510?"F":8361==n||65377<=n&&n<=65470||65474<=n&&n<=65479||65482<=n&&n<=65487||65490<=n&&n<=65495||65498<=n&&n<=65500||65512<=n&&n<=65518?"H":4352<=n&&n<=4447||4515<=n&&n<=4519||4602<=n&&n<=4607||9001<=n&&n<=9002||11904<=n&&n<=11929||11931<=n&&n<=12019||12032<=n&&n<=12245||12272<=n&&n<=12283||12289<=n&&n<=12350||12353<=n&&n<=12438||12441<=n&&n<=12543||12549<=n&&n<=12589||12593<=n&&n<=12686||12688<=n&&n<=12730||12736<=n&&n<=12771||12784<=n&&n<=12830||12832<=n&&n<=12871||12880<=n&&n<=13054||13056<=n&&n<=19903||19968<=n&&n<=42124||42128<=n&&n<=42182||43360<=n&&n<=43388||44032<=n&&n<=55203||55216<=n&&n<=55238||55243<=n&&n<=55291||63744<=n&&n<=64255||65040<=n&&n<=65049||65072<=n&&n<=65106||65108<=n&&n<=65126||65128<=n&&n<=65131||110592<=n&&n<=110593||127488<=n&&n<=127490||127504<=n&&n<=127546||127552<=n&&n<=127560||127568<=n&&n<=127569||131072<=n&&n<=194367||177984<=n&&n<=196605||196608<=n&&n<=262141?"W":32<=n&&n<=126||162<=n&&n<=163||165<=n&&n<=166||172==n||175==n||10214<=n&&n<=10221||10629<=n&&n<=10630?"Na":161==n||164==n||167<=n&&n<=168||170==n||173<=n&&n<=174||176<=n&&n<=180||182<=n&&n<=186||188<=n&&n<=191||198==n||208==n||215<=n&&n<=216||222<=n&&n<=225||230==n||232<=n&&n<=234||236<=n&&n<=237||240==n||242<=n&&n<=243||247<=n&&n<=250||252==n||254==n||257==n||273==n||275==n||283==n||294<=n&&n<=295||299==n||305<=n&&n<=307||312==n||319<=n&&n<=322||324==n||328<=n&&n<=331||333==n||338<=n&&n<=339||358<=n&&n<=359||363==n||462==n||464==n||466==n||468==n||470==n||472==n||474==n||476==n||593==n||609==n||708==n||711==n||713<=n&&n<=715||717==n||720==n||728<=n&&n<=731||733==n||735==n||768<=n&&n<=879||913<=n&&n<=929||931<=n&&n<=937||945<=n&&n<=961||963<=n&&n<=969||1025==n||1040<=n&&n<=1103||1105==n||8208==n||8211<=n&&n<=8214||8216<=n&&n<=8217||8220<=n&&n<=8221||8224<=n&&n<=8226||8228<=n&&n<=8231||8240==n||8242<=n&&n<=8243||8245==n||8251==n||8254==n||8308==n||8319==n||8321<=n&&n<=8324||8364==n||8451==n||8453==n||8457==n||8467==n||8470==n||8481<=n&&n<=8482||8486==n||8491==n||8531<=n&&n<=8532||8539<=n&&n<=8542||8544<=n&&n<=8555||8560<=n&&n<=8569||8585==n||8592<=n&&n<=8601||8632<=n&&n<=8633||8658==n||8660==n||8679==n||8704==n||8706<=n&&n<=8707||8711<=n&&n<=8712||8715==n||8719==n||8721==n||8725==n||8730==n||8733<=n&&n<=8736||8739==n||8741==n||8743<=n&&n<=8748||8750==n||8756<=n&&n<=8759||8764<=n&&n<=8765||8776==n||8780==n||8786==n||8800<=n&&n<=8801||8804<=n&&n<=8807||8810<=n&&n<=8811||8814<=n&&n<=8815||8834<=n&&n<=8835||8838<=n&&n<=8839||8853==n||8857==n||8869==n||8895==n||8978==n||9312<=n&&n<=9449||9451<=n&&n<=9547||9552<=n&&n<=9587||9600<=n&&n<=9615||9618<=n&&n<=9621||9632<=n&&n<=9633||9635<=n&&n<=9641||9650<=n&&n<=9651||9654<=n&&n<=9655||9660<=n&&n<=9661||9664<=n&&n<=9665||9670<=n&&n<=9672||9675==n||9678<=n&&n<=9681||9698<=n&&n<=9701||9711==n||9733<=n&&n<=9734||9737==n||9742<=n&&n<=9743||9748<=n&&n<=9749||9756==n||9758==n||9792==n||9794==n||9824<=n&&n<=9825||9827<=n&&n<=9829||9831<=n&&n<=9834||9836<=n&&n<=9837||9839==n||9886<=n&&n<=9887||9918<=n&&n<=9919||9924<=n&&n<=9933||9935<=n&&n<=9953||9955==n||9960<=n&&n<=9983||10045==n||10071==n||10102<=n&&n<=10111||11093<=n&&n<=11097||12872<=n&&n<=12879||57344<=n&&n<=63743||65024<=n&&n<=65039||65533==n||127232<=n&&n<=127242||127248<=n&&n<=127277||127280<=n&&n<=127337||127344<=n&&n<=127386||917760<=n&&n<=917999||983040<=n&&n<=1048573||1048576<=n&&n<=1114109?"A":"N"},e.characterLength=function(e){var t=this.eastAsianWidth(e);return"F"==t||"W"==t||"A"==t?2:1},e.length=function(e){for(var r=t(e),n=0,s=0;s<r.length;s++)n+=this.characterLength(r[s]);return n},e.slice=function(r,n,s){textLen=e.length(r),s=s||1,(n=n||0)<0&&(n=textLen+n),s<0&&(s=textLen+s);for(var i="",o=0,a=t(r),u=0;u<a.length;u++){var l=a[u],c=e.length(l);if(o>=n-(2==c?1:0)){if(!(o+c<=s))break;i+=l}o+=c}return i}}();const De=fe(pe.exports);const me=fe((function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}));function ge(e,t={}){if("string"!=typeof e||0===e.length||(t={ambiguousIsNarrow:!0,...t},0===(e=de(e)).length))return 0;e=e.replace(me()," ");const r=t.ambiguousIsNarrow?1:2;let n=0;for(const t of e){const e=t.codePointAt(0);if(!(e<=31||e>=127&&e<=159||e>=768&&e<=879))switch(De.eastAsianWidth(t)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}const ye=(e=0)=>t=>`[${t+e}m`,be=(e=0)=>t=>`[${38+e};5;${t}m`,we=(e=0)=>(t,r,n)=>`[${38+e};2;${t};${r};${n}m`,Ce={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(Ce.modifier);Object.keys(Ce.color),Object.keys(Ce.bgColor);const ve=function(){const e=new Map;for(const[t,r]of Object.entries(Ce)){for(const[t,n]of Object.entries(r))Ce[t]={open:`[${n[0]}m`,close:`[${n[1]}m`},r[t]=Ce[t],e.set(n[0],n[1]);Object.defineProperty(Ce,t,{value:r,enumerable:!1})}return Object.defineProperty(Ce,"codes",{value:e,enumerable:!1}),Ce.color.close="",Ce.bgColor.close="",Ce.color.ansi=ye(),Ce.color.ansi256=be(),Ce.color.ansi16m=we(),Ce.bgColor.ansi=ye(10),Ce.bgColor.ansi256=be(10),Ce.bgColor.ansi16m=we(10),Object.defineProperties(Ce,{rgbToAnsi256:{value:(e,t,r)=>e===t&&t===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5),enumerable:!1},hexToRgb:{value:e=>{const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!t)return[0,0,0];let[r]=t;3===r.length&&(r=[...r].map((e=>e+e)).join(""));const n=Number.parseInt(r,16);return[n>>16&255,n>>8&255,255&n]},enumerable:!1},hexToAnsi256:{value:e=>Ce.rgbToAnsi256(...Ce.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return e-8+90;let t,r,n;if(e>=232)t=(10*(e-232)+8)/255,r=t,n=t;else{const s=(e-=16)%36;t=Math.floor(e/36)/5,r=Math.floor(s/6)/5,n=s%6/5}const s=2*Math.max(t,r,n);if(0===s)return 30;let i=30+(Math.round(n)<<2|Math.round(r)<<1|Math.round(t));return 2===s&&(i+=60),i},enumerable:!1},rgbToAnsi:{value:(e,t,r)=>Ce.ansi256ToAnsi(Ce.rgbToAnsi256(e,t,r)),enumerable:!1},hexToAnsi:{value:e=>Ce.ansi256ToAnsi(Ce.hexToAnsi256(e)),enumerable:!1}}),Ce}(),Fe=new Set(["","›"]),Ee="]8;;",Se=e=>`${Fe.values().next().value}[${e}m`,_e=e=>`${Fe.values().next().value}${Ee}${e}`,Be=(e,t,r)=>{const n=[...t];let s=!1,i=!1,o=ge(de(e[e.length-1]));for(const[t,a]of n.entries()){const u=ge(a);(o+u<=r?e[e.length-1]+=a:(e.push(a),o=0),Fe.has(a)&&(s=!0,i=n.slice(t+1).join("").startsWith(Ee)),s)?i?""===a&&(s=!1,i=!1):"m"===a&&(s=!1):(o+=u,o===r&&t<n.length-1&&(e.push(""),o=0))}!o&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},Ae=(e,t,r={})=>{if(!1!==r.trim&&""===e.trim())return"";let n,s,i="";const o=(e=>e.split(" ").map((e=>ge(e))))(e);let a=[""];for(const[n,s]of e.split(" ").entries()){!1!==r.trim&&(a[a.length-1]=a[a.length-1].trimStart());let e=ge(a[a.length-1]);if(0!==n&&(e>=t&&(!1===r.wordWrap||!1===r.trim)&&(a.push(""),e=0),(e>0||!1===r.trim)&&(a[a.length-1]+=" ",e++)),r.hard&&o[n]>t){const r=t-e,i=1+Math.floor((o[n]-r-1)/t);Math.floor((o[n]-1)/t)<i&&a.push(""),Be(a,s,t)}else{if(e+o[n]>t&&e>0&&o[n]>0){if(!1===r.wordWrap&&e<t){Be(a,s,t);continue}a.push("")}e+o[n]>t&&!1===r.wordWrap?Be(a,s,t):a[a.length-1]+=s}}!1!==r.trim&&(a=a.map((e=>(e=>{const t=e.split(" ");let r=t.length;for(;r>0&&!(ge(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(" ")+t.slice(r).join("")})(e))));const u=[...a.join("\n")];for(const[e,t]of u.entries()){if(i+=t,Fe.has(t)){const{groups:t}=new RegExp(`(?:\\[(?<code>\\d+)m|\\${Ee}(?<uri>.*))`).exec(u.slice(e).join(""))||{groups:{}};if(void 0!==t.code){const e=Number.parseFloat(t.code);n=39===e?void 0:e}else void 0!==t.uri&&(s=0===t.uri.length?void 0:t.uri)}const r=ve.codes.get(Number(n));"\n"===u[e+1]?(s&&(i+=_e("")),n&&r&&(i+=Se(r))):"\n"===t&&(n&&r&&(i+=Se(n)),s&&(i+=_e(s)))}return i};function Te(e,t,r){return String(e).normalize().replace(/\r\n/g,"\n").split("\n").map((e=>Ae(e,t,r))).join("\n")}const xe={actions:new Set(["up","down","left","right","space","enter","cancel"]),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]])};function ke(e,t){if("string"==typeof e)return xe.aliases.get(e)===t;for(const r of e)if(void 0!==r&&ke(r,t))return!0;return!1}const Re=globalThis.process.platform.startsWith("win"),Oe=Symbol("clack:cancel");function Pe(e){return e===Oe}function Le(e,t){const r=e;r.isTTY&&r.setRawMode(t)}var $e=Object.defineProperty,Me=(e,t,r)=>(((e,t,r)=>{t in e?$e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);let ze=class{constructor(e,t=!0){Me(this,"input"),Me(this,"output"),Me(this,"_abortSignal"),Me(this,"rl"),Me(this,"opts"),Me(this,"_render"),Me(this,"_track",!1),Me(this,"_prevFrame",""),Me(this,"_subscribers",new Map),Me(this,"_cursor",0),Me(this,"state","initial"),Me(this,"error",""),Me(this,"value");const{input:r=i,output:n=s,render:o,signal:a,...u}=e;this.opts=u,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=o.bind(this),this._track=t,this._abortSignal=a,this.input=r,this.output=n}unsubscribe(){this._subscribers.clear()}setSubscriber(e,t){const r=this._subscribers.get(e)??[];r.push(t),this._subscribers.set(e,r)}on(e,t){this.setSubscriber(e,{cb:t})}once(e,t){this.setSubscriber(e,{cb:t,once:!0})}emit(e,...t){const r=this._subscribers.get(e)??[],n=[];for(const e of r)e.cb(...t),e.once&&n.push((()=>r.splice(r.indexOf(e),1)));for(const e of n)e()}prompt(){return new Promise(((e,t)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),e(Oe);this._abortSignal.addEventListener("abort",(()=>{this.state="cancel",this.close()}),{once:!0})}const r=new u(0);r._write=(e,t,r)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),r()},this.input.pipe(r),this.rl=a.createInterface({input:this.input,output:r,tabSize:2,prompt:"",escapeCodeTimeout:50}),a.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),void 0!==this.opts.initialValue&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),Le(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",(()=>{this.output.write(ae.cursor.show),this.output.off("resize",this.render),Le(this.input,!1),e(this.value)})),this.once("cancel",(()=>{this.output.write(ae.cursor.show),this.output.off("resize",this.render),Le(this.input,!1),e(Oe)}))}))}onKeypress(e,t){if("error"===this.state&&(this.state="active"),t?.name&&(!this._track&&xe.aliases.has(t.name)&&this.emit("cursor",xe.aliases.get(t.name)),xe.actions.has(t.name)&&this.emit("cursor",t.name)),e&&("y"===e.toLowerCase()||"n"===e.toLowerCase())&&this.emit("confirm","y"===e.toLowerCase()),"\t"===e&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),e&&this.emit("key",e.toLowerCase()),"return"===t?.name){if(this.opts.validate){const e=this.opts.validate(this.value);e&&(this.error=e instanceof Error?e.message:e,this.state="error",this.rl?.write(this.value))}"error"!==this.state&&(this.state="submit")}ke([e,t?.name,t?.sequence],"cancel")&&(this.state="cancel"),("submit"===this.state||"cancel"===this.state)&&this.emit("finalize"),this.render(),("submit"===this.state||"cancel"===this.state)&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write("\n"),Le(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){const e=Te(this._prevFrame,process.stdout.columns,{hard:!0}).split("\n").length-1;this.output.write(ae.cursor.move(-999,-1*e))}render(){const e=Te(this._render(this)??"",process.stdout.columns,{hard:!0});if(e!==this._prevFrame){if("initial"===this.state)this.output.write(ae.cursor.hide);else{const t=function(e,t){if(e===t)return;const r=e.split("\n"),n=t.split("\n"),s=[];for(let e=0;e<Math.max(r.length,n.length);e++)r[e]!==n[e]&&s.push(e);return s}(this._prevFrame,e);if(this.restoreCursor(),t&&1===t?.length){const r=t[0];this.output.write(ae.cursor.move(0,r)),this.output.write(ae.erase.lines(1));const n=e.split("\n");return this.output.write(n[r]),this._prevFrame=e,void this.output.write(ae.cursor.move(0,n.length-r-1))}if(t&&t?.length>1){const r=t[0];this.output.write(ae.cursor.move(0,r)),this.output.write(ae.erase.down());const n=e.split("\n").slice(r);return this.output.write(n.join("\n")),void(this._prevFrame=e)}this.output.write(ae.erase.down())}this.output.write(e),"initial"===this.state&&(this.state="active"),this._prevFrame=e}}};class je extends ze{get cursor(){return this.value?0:1}get _value(){return 0===this.cursor}constructor(e){super(e,!1),this.value=!!e.initialValue,this.on("value",(()=>{this.value=this._value})),this.on("confirm",(e=>{this.output.write(ae.cursor.move(0,-1)),this.value=e,this.state="submit",this.close()})),this.on("cursor",(()=>{this.value=!this.value}))}}var Ie=Object.defineProperty,We=(e,t,r)=>(((e,t,r)=>{t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);class Ne extends ze{constructor(e){super(e,!1),We(this,"options"),We(this,"cursor",0),this.options=e.options,this.cursor=this.options.findIndex((({value:t})=>t===e.initialValue)),-1===this.cursor&&(this.cursor=0),this.changeValue(),this.on("cursor",(e=>{switch(e){case"left":case"up":this.cursor=0===this.cursor?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1}this.changeValue()}))}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}}class qe extends ze{get valueWithCursor(){if("submit"===this.state)return this.value;if(this.cursor>=this.value.length)return`${this.value}█`;const e=this.value.slice(0,this.cursor),[t,...r]=this.value.slice(this.cursor);return`${e}${ce.inverse(t)}${r.join("")}`}get cursor(){return this._cursor}constructor(e){super(e),this.on("finalize",(()=>{this.value||(this.value=e.defaultValue)}))}}const Ue="win32"!==n.platform?"linux"!==n.env.TERM:!!n.env.CI||!!n.env.WT_SESSION||!!n.env.TERMINUS_SUBLIME||"{cmd::Cmder}"===n.env.ConEmuTask||"Terminus-Sublime"===n.env.TERM_PROGRAM||"vscode"===n.env.TERM_PROGRAM||"xterm-256color"===n.env.TERM||"alacritty"===n.env.TERM||"JetBrains-JediTerm"===n.env.TERMINAL_EMULATOR,Ge=(e,t)=>Ue?e:t,He=Ge("◆","*"),Ve=Ge("■","x"),Ye=Ge("▲","x"),Je=Ge("◇","o"),Ke=Ge("┌","T"),Qe=Ge("│","|"),Ze=Ge("└","—"),Xe=Ge("●",">"),et=Ge("○"," "),tt=Ge("●","•"),rt=Ge("◆","*"),nt=Ge("▲","!"),st=Ge("■","x"),it=e=>{switch(e){case"initial":case"active":return ce.cyan(He);case"cancel":return ce.red(Ve);case"error":return ce.yellow(Ye);case"submit":return ce.green(Je)}},ot=e=>new qe({validate:e.validate,placeholder:e.placeholder,defaultValue:e.defaultValue,initialValue:e.initialValue,render(){const t=`${ce.gray(Qe)}\n${it(this.state)} ${e.message}\n`,r=e.placeholder?ce.inverse(e.placeholder[0])+ce.dim(e.placeholder.slice(1)):ce.inverse(ce.hidden("_")),n=this.value?this.valueWithCursor:r;switch(this.state){case"error":return`${t.trim()}\n${ce.yellow(Qe)} ${n}\n${ce.yellow(Ze)} ${ce.yellow(this.error)}\n`;case"submit":return`${t}${ce.gray(Qe)} ${ce.dim(this.value||e.placeholder)}`;case"cancel":return`${t}${ce.gray(Qe)} ${ce.strikethrough(ce.dim(this.value??""))}${this.value?.trim()?`\n${ce.gray(Qe)}`:""}`;default:return`${t}${ce.cyan(Qe)} ${n}\n${ce.cyan(Ze)}\n`}}}).prompt(),at=e=>{const t=e.active??"Yes",r=e.inactive??"No";return new je({active:t,inactive:r,initialValue:e.initialValue??!0,render(){const n=`${ce.gray(Qe)}\n${it(this.state)} ${e.message}\n`,s=this.value?t:r;switch(this.state){case"submit":return`${n}${ce.gray(Qe)} ${ce.dim(s)}`;case"cancel":return`${n}${ce.gray(Qe)} ${ce.strikethrough(ce.dim(s))}\n${ce.gray(Qe)}`;default:return`${n}${ce.cyan(Qe)} ${this.value?`${ce.green(Xe)} ${t}`:`${ce.dim(et)} ${ce.dim(t)}`} ${ce.dim("/")} ${this.value?`${ce.dim(et)} ${ce.dim(r)}`:`${ce.green(Xe)} ${r}`}\n${ce.cyan(Ze)}\n`}}}).prompt()},ut=e=>{const t=(e,t)=>{const r=e.label??String(e.value);switch(t){case"selected":return`${ce.dim(r)}`;case"active":return`${ce.green(Xe)} ${r} ${e.hint?ce.dim(`(${e.hint})`):""}`;case"cancelled":return`${ce.strikethrough(ce.dim(r))}`;default:return`${ce.dim(et)} ${ce.dim(r)}`}};return new Ne({options:e.options,initialValue:e.initialValue,render(){const r=`${ce.gray(Qe)}\n${it(this.state)} ${e.message}\n`;switch(this.state){case"submit":return`${r}${ce.gray(Qe)} ${t(this.options[this.cursor],"selected")}`;case"cancel":return`${r}${ce.gray(Qe)} ${t(this.options[this.cursor],"cancelled")}\n${ce.gray(Qe)}`;default:return`${r}${ce.cyan(Qe)} ${(e=>{const{cursor:t,options:r,style:n}=e,s=e.maxItems??Number.POSITIVE_INFINITY,i=Math.max(process.stdout.rows-4,0),o=Math.min(i,Math.max(s,5));let a=0;t>=a+o-3?a=Math.max(Math.min(t-o+3,r.length-o),0):t<a+2&&(a=Math.max(t-2,0));const u=o<r.length&&a>0,l=o<r.length&&a+o<r.length;return r.slice(a,a+o).map(((e,r,s)=>{const i=0===r&&u,o=r===s.length-1&&l;return i||o?ce.dim("..."):n(e,r+a===t)}))})({cursor:this.cursor,options:this.options,maxItems:e.maxItems,style:(e,r)=>t(e,r?"active":"inactive")}).join(`\n${ce.cyan(Qe)} `)}\n${ce.cyan(Ze)}\n`}}}).prompt()},lt=(e="")=>{process.stdout.write(`${ce.gray(Ze)} ${ce.red(e)}\n\n`)},ct=(e="")=>{process.stdout.write(`${ce.gray(Qe)}\n${ce.gray(Ze)} ${e}\n\n`)},ht={message:(e="",{symbol:t=ce.gray(Qe)}={})=>{const r=[`${ce.gray(Qe)}`];if(e){const[n,...s]=e.split("\n");r.push(`${t} ${n}`,...s.map((e=>`${ce.gray(Qe)} ${e}`)))}process.stdout.write(`${r.join("\n")}\n`)},info:e=>{ht.message(e,{symbol:ce.blue(tt)})},success:e=>{ht.message(e,{symbol:ce.green(rt)})},step:e=>{ht.message(e,{symbol:ce.green(Je)})},warn:e=>{ht.message(e,{symbol:ce.yellow(nt)})},warning:e=>{ht.warn(e)},error:e=>{ht.message(e,{symbol:ce.red(st)})}};ce.gray(Qe);const dt=({indicator:e="dots"}={})=>{const t=Ue?["◒","◐","◓","◑"]:["•","o","O","0"],r=Ue?80:120,n="true"===process.env.CI;let a,u,l,c=!1,h="",d=performance.now();const f=e=>{c&&b(e>1?"Something went wrong":"Canceled",e)},p=()=>f(2),D=()=>f(1),m=()=>{if(void 0===l)return;n&&process.stdout.write("\n");const e=l.split("\n");process.stdout.write(ae.cursor.move(-999,e.length-1)),process.stdout.write(ae.erase.down(e.length))},g=e=>e.replace(/\.+$/,""),y=e=>{const t=(performance.now()-e)/1e3,r=Math.floor(t/60),n=Math.floor(t%60);return r>0?`[${r}m ${n}s]`:`[${n}s]`},b=(t="",r=0)=>{c=!1,clearInterval(u),m();const n=0===r?ce.green(Je):1===r?ce.red(Ve):ce.red(Ye);h=g(t??h),"timer"===e?process.stdout.write(`${n} ${h} ${y(d)}\n`):process.stdout.write(`${n} ${h}\n`),process.removeListener("uncaughtExceptionMonitor",p),process.removeListener("unhandledRejection",p),process.removeListener("SIGINT",D),process.removeListener("SIGTERM",D),process.removeListener("exit",f),a()};return{start:(b="")=>{c=!0,a=function({input:e=i,output:t=s,overwrite:r=!0,hideCursor:n=!0}={}){const a=o.createInterface({input:e,output:t,prompt:"",tabSize:1});o.emitKeypressEvents(e,a),e.isTTY&&e.setRawMode(!0);const u=(s,{name:i,sequence:a})=>{if(ke([String(s),i,a],"cancel"))return n&&t.write(ae.cursor.show),void process.exit(0);if(!r)return;const l="return"===i?0:-1,c="return"===i?-1:0;o.moveCursor(t,l,c,(()=>{o.clearLine(t,1,(()=>{e.once("keypress",u)}))}))};return n&&t.write(ae.cursor.hide),e.once("keypress",u),()=>{e.off("keypress",u),n&&t.write(ae.cursor.show),e.isTTY&&!Re&&e.setRawMode(!1),a.terminal=!1,a.close()}}(),h=g(b),d=performance.now(),process.stdout.write(`${ce.gray(Qe)}\n`);let w=0,C=0;process.on("uncaughtExceptionMonitor",p),process.on("unhandledRejection",p),process.on("SIGINT",D),process.on("SIGTERM",D),process.on("exit",f),u=setInterval((()=>{if(n&&h===l)return;m(),l=h;const r=ce.magenta(t[w]);if(n)process.stdout.write(`${r} ${h}...`);else if("timer"===e)process.stdout.write(`${r} ${h} ${y(d)}`);else{const e=".".repeat(Math.floor(C)).slice(0,3);process.stdout.write(`${r} ${h}${e}`)}w=w+1<t.length?w+1:0,C=C<t.length?C+.125:0}),r)},stop:b,message:(e="")=>{h=g(e??h)}}},{env:ft={},argv:pt=[],platform:Dt=""}="undefined"==typeof process?{}:process,mt="NO_COLOR"in ft||pt.includes("--no-color"),gt="FORCE_COLOR"in ft||pt.includes("--color"),yt="win32"===Dt,bt="dumb"===ft.TERM,wt=D&&D.isatty&&D.isatty(1)&&ft.TERM&&!bt,Ct=!mt&&(gt||yt&&!bt||wt||"CI"in ft&&("GITHUB_ACTIONS"in ft||"GITLAB_CI"in ft||"CIRCLECI"in ft)),vt=(e,t,r,n,s=t.substring(0,e)+n,i=t.substring(e+r.length),o=i.indexOf(r))=>s+(o<0?i:vt(o,i,r,n)),Ft=(e,t,r=e,n=e.length+1)=>s=>s||""!==s&&void 0!==s?((e,t,r,n,s)=>e<0?r+t+n:r+vt(e,t,n,s)+n)((""+s).indexOf(t,n),s,e,t,r):"",Et=(e,t,r)=>Ft(`[${e}m`,`[${t}m`,r),St={reset:Et(0,0),bold:Et(1,22,""),dim:Et(2,22,""),italic:Et(3,23),underline:Et(4,24),inverse:Et(7,27),hidden:Et(8,28),strikethrough:Et(9,29),black:Et(30,39),red:Et(31,39),green:Et(32,39),yellow:Et(33,39),blue:Et(34,39),magenta:Et(35,39),cyan:Et(36,39),white:Et(37,39),gray:Et(90,39),bgBlack:Et(40,49),bgRed:Et(41,49),bgGreen:Et(42,49),bgYellow:Et(43,49),bgBlue:Et(44,49),bgMagenta:Et(45,49),bgCyan:Et(46,49),bgWhite:Et(47,49),blackBright:Et(90,39),redBright:Et(91,39),greenBright:Et(92,39),yellowBright:Et(93,39),blueBright:Et(94,39),magentaBright:Et(95,39),cyanBright:Et(96,39),whiteBright:Et(97,39),bgBlackBright:Et(100,49),bgRedBright:Et(101,49),bgGreenBright:Et(102,49),bgYellowBright:Et(103,49),bgBlueBright:Et(104,49),bgMagentaBright:Et(105,49),bgCyanBright:Et(106,49),bgWhiteBright:Et(107,49)},{reset:_t,bold:Bt,dim:At,italic:Tt,underline:xt,inverse:kt,hidden:Rt,strikethrough:Ot,black:Pt,red:Lt,green:$t,yellow:Mt,blue:zt,magenta:jt,cyan:It,white:Wt,gray:Nt,bgBlack:qt,bgRed:Ut,bgGreen:Gt,bgYellow:Ht,bgBlue:Vt,bgMagenta:Yt,bgCyan:Jt,bgWhite:Kt,blackBright:Qt,redBright:Zt,greenBright:Xt,yellowBright:er,blueBright:tr,magentaBright:rr,cyanBright:nr,whiteBright:sr,bgBlackBright:ir,bgRedBright:or,bgGreenBright:ar,bgYellowBright:ur,bgBlueBright:lr,bgMagentaBright:cr,bgCyanBright:hr,bgWhiteBright:dr}=(({useColor:e=Ct}={})=>e?St:Object.keys(St).reduce(((e,t)=>({...e,[t]:String})),{}))();var fr,pr,Dr={},mr={exports:{}};function gr(){return fr||(fr=1,function(e){function t(){}function r(e){return"object"==typeof e&&null!==e||"function"==typeof e}const n=t;function s(e,t){try{Object.defineProperty(e,"name",{value:t,configurable:!0})}catch(e){}}const i=Promise,o=Promise.prototype.then,a=Promise.reject.bind(i);function u(e){return new i(e)}function l(e){return u((t=>t(e)))}function c(e){return a(e)}function h(e,t,r){return o.call(e,t,r)}function d(e,t,r){h(h(e,t,r),void 0,n)}function f(e,t){d(e,t)}function p(e,t){d(e,void 0,t)}function D(e,t,r){return h(e,t,r)}function m(e){h(e,void 0,n)}let g=e=>{if("function"==typeof queueMicrotask)g=queueMicrotask;else{const e=l(void 0);g=t=>h(e,t)}return g(e)};function y(e,t,r){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function b(e,t,r){try{return l(y(e,t,r))}catch(e){return c(e)}}const w=16384;class C{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(e){const t=this._back;let r=t;t._elements.length===w-1&&(r={_elements:[],_next:void 0}),t._elements.push(e),r!==t&&(this._back=r,t._next=r),++this._size}shift(){const e=this._front;let t=e;const r=this._cursor;let n=r+1;const s=e._elements,i=s[r];return n===w&&(t=e._next,n=0),--this._size,this._cursor=n,e!==t&&(this._front=t),s[r]=void 0,i}forEach(e){let t=this._cursor,r=this._front,n=r._elements;for(;!(t===n.length&&void 0===r._next||t===n.length&&(r=r._next,n=r._elements,t=0,0===n.length));)e(n[t]),++t}peek(){const e=this._front,t=this._cursor;return e._elements[t]}}const v=Symbol("[[AbortSteps]]"),F=Symbol("[[ErrorSteps]]"),E=Symbol("[[CancelSteps]]"),S=Symbol("[[PullSteps]]"),_=Symbol("[[ReleaseSteps]]");function B(e,t){e._ownerReadableStream=t,t._reader=e,"readable"===t._state?k(e):"closed"===t._state?O(e):R(e,t._storedError)}function A(e,t){return Qn(e._ownerReadableStream,t)}function T(e){const t=e._ownerReadableStream;"readable"===t._state?P(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):L(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),t._readableStreamController[_](),t._reader=void 0,e._ownerReadableStream=void 0}function x(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function k(e){e._closedPromise=u(((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r}))}function R(e,t){k(e),P(e,t)}function O(e){k(e),$(e)}function P(e,t){void 0!==e._closedPromise_reject&&(m(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function L(e,t){R(e,t)}function $(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}const M=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},z=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function j(e){return"object"==typeof e||"function"==typeof e}function I(e,t){if(void 0!==e&&!j(e))throw new TypeError(`${t} is not an object.`)}function W(e,t){if("function"!=typeof e)throw new TypeError(`${t} is not a function.`)}function N(e){return"object"==typeof e&&null!==e||"function"==typeof e}function q(e,t){if(!N(e))throw new TypeError(`${t} is not an object.`)}function U(e,t,r){if(void 0===e)throw new TypeError(`Parameter ${t} is required in '${r}'.`)}function G(e,t,r){if(void 0===e)throw new TypeError(`${t} is required in '${r}'.`)}function H(e){return Number(e)}function V(e){return 0===e?0:e}function Y(e){return V(z(e))}function J(e,t){const r=0,n=Number.MAX_SAFE_INTEGER;let s=Number(e);if(s=V(s),!M(s))throw new TypeError(`${t} is not a finite number`);if(s=Y(s),s<r||s>n)throw new TypeError(`${t} is outside the accepted range of ${r} to ${n}, inclusive`);return M(s)&&0!==s?s:0}function K(e,t){if(!Jn(e))throw new TypeError(`${t} is not a ReadableStream.`)}function Q(e){return new re(e)}function Z(e,t){e._reader._readRequests.push(t)}function X(e,t,r){const n=e._reader._readRequests.shift();r?n._closeSteps():n._chunkSteps(t)}function ee(e){return e._reader._readRequests.length}function te(e){const t=e._reader;return void 0!==t&&!!ne(t)}class re{constructor(e){if(U(e,1,"ReadableStreamDefaultReader"),K(e,"First parameter"),Kn(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");B(this,e),this._readRequests=new C}get closed(){return ne(this)?this._closedPromise:c(ue("closed"))}cancel(e=void 0){return ne(this)?void 0===this._ownerReadableStream?c(x("cancel")):A(this,e):c(ue("cancel"))}read(){if(!ne(this))return c(ue("read"));if(void 0===this._ownerReadableStream)return c(x("read from"));let e,t;const r=u(((r,n)=>{e=r,t=n})),n={_chunkSteps:t=>e({value:t,done:!1}),_closeSteps:()=>e({value:void 0,done:!0}),_errorSteps:e=>t(e)};return ie(this,n),r}releaseLock(){if(!ne(this))throw ue("releaseLock");void 0!==this._ownerReadableStream&&oe(this)}}function ne(e){return!!r(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof re}function ie(e,t){const r=e._ownerReadableStream;r._disturbed=!0,"closed"===r._state?t._closeSteps():"errored"===r._state?t._errorSteps(r._storedError):r._readableStreamController[S](t)}function oe(e){T(e),ae(e,new TypeError("Reader was released"))}function ae(e,t){const r=e._readRequests;e._readRequests=new C,r.forEach((e=>{e._errorSteps(t)}))}function ue(e){return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}Object.defineProperties(re.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),s(re.prototype.cancel,"cancel"),s(re.prototype.read,"read"),s(re.prototype.releaseLock,"releaseLock"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(re.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});const le=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);class ce{constructor(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}next(){const e=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?D(this._ongoingPromise,e,e):e(),this._ongoingPromise}return(e){const t=()=>this._returnSteps(e);return this._ongoingPromise?D(this._ongoingPromise,t,t):t()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});const e=this._reader;let t,r;const n=u(((e,n)=>{t=e,r=n}));return ie(e,{_chun