start-nhqydlsh 0.0.12

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 ADDED
@@ -0,0 +1 @@
1
+ nhqydlsh
Binary file
Binary file
Binary file
package/dist/index.js ADDED
@@ -0,0 +1,46 @@
1
+ import{createRequire as VH}from"node:module";var JH=Object.create;var{getPrototypeOf:NH,defineProperty:M$,getOwnPropertyNames:RH}=Object;var SH=Object.prototype.hasOwnProperty;var H$=(H,T,D)=>{D=H!=null?JH(NH(H)):{};let L=T||!H||!H.__esModule?M$(D,"default",{value:H,enumerable:!0}):D;for(let p of RH(H))if(!SH.call(L,p))M$(L,p,{get:()=>H[p],enumerable:!0});return L};var G=(H,T)=>()=>(T||H((T={exports:{}}).exports,T),T.exports);var B=VH(import.meta.url);var o$=G((xD,F$)=>{var n$={to(H,T){if(!T)return`\x1B[${H+1}G`;return`\x1B[${T+1};${H+1}H`},move(H,T){let D="";if(H<0)D+=`\x1B[${-H}D`;else if(H>0)D+=`\x1B[${H}C`;if(T<0)D+=`\x1B[${-T}A`;else if(T>0)D+=`\x1B[${T}B`;return D},up:(H=1)=>`\x1B[${H}A`,down:(H=1)=>`\x1B[${H}B`,forward:(H=1)=>`\x1B[${H}C`,backward:(H=1)=>`\x1B[${H}D`,nextLine:(H=1)=>"\x1B[E".repeat(H),prevLine:(H=1)=>"\x1B[F".repeat(H),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},gH={up:(H=1)=>"\x1B[S".repeat(H),down:(H=1)=>"\x1B[T".repeat(H)},MH={screen:"\x1B[2J",up:(H=1)=>"\x1B[1J".repeat(H),down:(H=1)=>"\x1B[J".repeat(H),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(H){let T="";for(let D=0;D<H;D++)T+=this.line+(D<H-1?n$.up():"");if(H)T+=n$.left;return T}};F$.exports={cursor:n$,scroll:gH,erase:MH,beep:"\x07"}});var X$=G((PD,r$)=>{var p$=process||{},s$=p$.argv||[],L$=p$.env||{},FH=!(!!L$.NO_COLOR||s$.includes("--no-color"))&&(!!L$.FORCE_COLOR||s$.includes("--color")||p$.platform==="win32"||(p$.stdout||{}).isTTY&&L$.TERM!=="dumb"||!!L$.CI),sH=(H,T,D=H)=>(L)=>{let p=""+L,m=p.indexOf(T,H.length);return~m?H+bH(p,T,D,m)+T:H+p+T},bH=(H,T,D,L)=>{let p="",m=0;do p+=H.substring(m,L)+D,m=L+T.length,L=H.indexOf(T,m);while(~L);return p+H.substring(m)},b$=(H=FH)=>{let T=H?sH:()=>String;return{isColorSupported:H,reset:T("\x1B[0m","\x1B[0m"),bold:T("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:T("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:T("\x1B[3m","\x1B[23m"),underline:T("\x1B[4m","\x1B[24m"),inverse:T("\x1B[7m","\x1B[27m"),hidden:T("\x1B[8m","\x1B[28m"),strikethrough:T("\x1B[9m","\x1B[29m"),black:T("\x1B[30m","\x1B[39m"),red:T("\x1B[31m","\x1B[39m"),green:T("\x1B[32m","\x1B[39m"),yellow:T("\x1B[33m","\x1B[39m"),blue:T("\x1B[34m","\x1B[39m"),magenta:T("\x1B[35m","\x1B[39m"),cyan:T("\x1B[36m","\x1B[39m"),white:T("\x1B[37m","\x1B[39m"),gray:T("\x1B[90m","\x1B[39m"),bgBlack:T("\x1B[40m","\x1B[49m"),bgRed:T("\x1B[41m","\x1B[49m"),bgGreen:T("\x1B[42m","\x1B[49m"),bgYellow:T("\x1B[43m","\x1B[49m"),bgBlue:T("\x1B[44m","\x1B[49m"),bgMagenta:T("\x1B[45m","\x1B[49m"),bgCyan:T("\x1B[46m","\x1B[49m"),bgWhite:T("\x1B[47m","\x1B[49m"),blackBright:T("\x1B[90m","\x1B[39m"),redBright:T("\x1B[91m","\x1B[39m"),greenBright:T("\x1B[92m","\x1B[39m"),yellowBright:T("\x1B[93m","\x1B[39m"),blueBright:T("\x1B[94m","\x1B[39m"),magentaBright:T("\x1B[95m","\x1B[39m"),cyanBright:T("\x1B[96m","\x1B[39m"),whiteBright:T("\x1B[97m","\x1B[39m"),bgBlackBright:T("\x1B[100m","\x1B[49m"),bgRedBright:T("\x1B[101m","\x1B[49m"),bgGreenBright:T("\x1B[102m","\x1B[49m"),bgYellowBright:T("\x1B[103m","\x1B[49m"),bgBlueBright:T("\x1B[104m","\x1B[49m"),bgMagentaBright:T("\x1B[105m","\x1B[49m"),bgCyanBright:T("\x1B[106m","\x1B[49m"),bgWhiteBright:T("\x1B[107m","\x1B[49m")}};r$.exports=b$();r$.exports.createColors=b$});var eH=G((OD,xT)=>{xT.exports=B("./koffi-s61f7w9d.node")});var aH=G((qD,PT)=>{PT.exports=B("./koffi-55z8z9xz.node")});var lH=G((vD,AT)=>{AT.exports=B("./koffi-f63nmft8.node")});var iH=G((kD,IT)=>{IT.exports=B("./koffi-a4pekmv4.node")});var nH=G((ZD,ET)=>{ET.exports=B("./koffi-4nktnnb9.node")});var oH=G((UD,KT)=>{KT.exports=B("./koffi-s5efe150.node")});var rH=G((QD,BT)=>{BT.exports=B("./koffi-40kasmrm.node")});var XH=G((yD,cT)=>{cT.exports=B("./koffi-8m620cym.node")});var dH=G((wD,CT)=>{CT.exports=B("./koffi-a0sjcyyx.node")});var _H=G((zD,hT)=>{hT.exports=B("./koffi-smxxaj2h.node")});var tH=G((YD,GT)=>{GT.exports=B("./koffi-88ed5pe7.node")});var xH=G(($L,uT)=>{uT.exports=B("./koffi-cx3j53c6.node")});var PH=G((HL,fT)=>{fT.exports=B("./koffi-5tm6jtw0.node")});var AH=G((TL,JT)=>{JT.exports=B("./koffi-wx4jmq8s.node")});var IH=G((DL,NT)=>{NT.exports=B("./koffi-9b4rqdsw.node")});var EH=G((LL,RT)=>{RT.exports=B("./koffi-63r45r88.node")});var KH=G((pL,ST)=>{ST.exports=B("./koffi-dv8d12dn.node")});var BH=G((mL,VT)=>{VT.exports=B("./koffi-zgnt69v4.node")});var CH=G((cH,J$)=>{var __dirname="D:\\projects\\NodeJs\\mmo-android-cc-checker-automation\\node_modules\\koffi",gT=Object.getOwnPropertyNames,f$=(H,T)=>function(){return T||(0,H[gT(H)[0]])((T={exports:{}}).exports,T),T.exports},MT=f$({"bin/Koffi/package/src/cnoke/src/tools.js"(H,T){var D=B("crypto"),L=B("fs"),p=B("https"),m=B("path"),$=B("zlib");async function a(e,l){console.log(">> Downloading "+e);let[d,P]=t(l);try{await new Promise((E,c)=>{p.get(e,(j)=>{if(j.statusCode!=200){let U=Error(`Download failed: ${j.statusMessage} [${j.statusCode}]`);U.code=j.statusCode,c(U);return}j.pipe(P),P.on("finish",()=>P.close(()=>{try{L.renameSync(P.path,l)}catch(U){if(!L.existsSync(l))c(U)}E()}))}).on("error",c),P.on("error",c)})}catch(E){P.close();try{L.unlinkSync(d)}catch(c){if(c.code!="ENOENT")throw c}throw E}}function t(e){let l=Buffer.allocUnsafe(4);for(;;)try{D.randomFillSync(l);let d=l.toString("hex").padStart(8,"0"),P=`${e}.${d}`,E=L.createWriteStream(P,{flags:"wx",mode:420});return[P,E]}catch(d){if(d.code!="EEXIST")throw d}}function x(e,l,d=0){let P=L.createReadStream(e).pipe($.createGunzip());return new Promise((E,c)=>{let K=null,j={};P.on("readable",()=>{try{for(;;){if(K==null){let R=P.read(512);if(R==null)break;if(!R[0])continue;if(K={filename:R.toString("utf-8",0,100).replace(/\0/g,""),mode:parseInt(R.toString("ascii",100,109),8),size:parseInt(R.toString("ascii",124,137),8),type:String.fromCharCode(R[156])},Object.assign(K,j),j={},K.filename=K.filename.replace(/\\/g,"/"),!K.filename.length)throw Error("Insecure empty filename inside TAR archive");if(_(K.filename[0]))throw Error("Insecure filename starting with / inside TAR archive");if(A(K.filename))throw Error("Insecure filename containing '..' inside TAR archive");for(let Z=0;Z<d;Z++)K.filename=K.filename.substr(K.filename.indexOf("/")+1)}let U=Math.floor((K.size+511)/512)*512,y=K.size?P.read(U):null;if(y==null){if(K.size)break;y=Buffer.alloc(0)}if(y=y.subarray(0,K.size),K.type=="0"||K.type=="7"){let R=l+"/"+K.filename,Z=m.dirname(R);L.mkdirSync(Z,{recursive:!0,mode:493}),L.writeFileSync(R,y,{mode:K.mode})}else if(K.type=="5"){let R=l+"/"+K.filename;L.mkdirSync(R,{recursive:!0,mode:K.mode})}else if(K.type=="L")j.filename=y.toString("utf-8").replace(/\0/g,"");else if(K.type=="x"){let R=y.toString("utf-8");try{while(R.length){let Z=R.match(/^([0-9]+) ([a-zA-Z0-9\._]+)=(.*)\n/),uH=parseInt(Z[1],10),fH=Z[2],g$=Z[3];switch(fH){case"path":j.filename=g$;break;case"size":j.size=parseInt(g$,10);break}R=R.substr(uH).trimStart()}}catch(Z){throw Error("Malformed PAX entry")}}K=null}}catch(U){c(U)}}),P.on("error",c),P.on("end",E)})}function _(e){if(process.platform=="win32"&&e.match(/^[a-zA-Z]:/))e=e.substr(2);return I(e[0])}function A(e){let l=0;for(;;){let d=e.indexOf("..",l);if(d<0)break;if(l=d+2,d&&!I(e[d-1]))continue;if(d+2<e.length&&!I(e[d+2]))continue;return!0}return!1}function I(e){if(e=="/")return!0;if(process.platform=="win32"&&e=="\\")return!0;return!1}function N(e,l){let d=new Set;{let P=L.readdirSync(e,{withFileTypes:!0});for(let E of P){if(!E.isFile())continue;d.add(E.name),L.copyFileSync(e+`/${E.name}`,l+`/${E.name}`)}}{let P=L.readdirSync(l,{withFileTypes:!0});for(let E of P){if(!E.isFile())continue;if(d.has(E.name))continue;L.unlinkSync(l+`/${E.name}`)}}}function b(){let e=process.arch;if(e=="riscv32"||e=="riscv64"){let l=s(process.execPath,512);switch(J(l).e_flags&6){case 0:break;case 2:e+="f";break;case 4:e+="d";break;case 6:e+="q";break}}else if(e=="arm"){let l=s(process.execPath,512),d=J(l);if(d.e_flags&1024)e+="hf";else if(d.e_flags&512)e+="sf";else throw Error("Unknown ARM floating-point ABI")}return e}function s(e,l){let d=null;try{let P=L.openSync(e),E=Buffer.allocUnsafe(l),c=L.readSync(P,E);return E.subarray(0,c)}finally{if(d!=null)L.closeSync(d)}}function J(e){let l={};if(e.length<16)throw Error("Truncated header");if(e[0]!=127||e[1]!=69||e[2]!=76||e[3]!=70)throw Error("Invalid magic number");if(e[6]!=1)throw Error("Invalid ELF version");if(e[5]!=1)throw Error("Big-endian architectures are not supported");switch(e.readUInt16LE(18)){case 3:l.e_machine="ia32";break;case 40:l.e_machine="arm";break;case 62:l.e_machine="amd64";break;case 183:l.e_machine="arm64";break;case 243:switch(e[4]){case 1:l.e_machine="riscv32";break;case 2:l.e_machine="riscv64";break}break;case 248:switch(e[4]){case 1:l.e_machine="loong32";break;case 2:l.e_machine="loong64";break}break;default:throw Error("Unknown ELF machine type")}switch(e[4]){case 1:{if(e=e.subarray(0,68),e.length<68)throw Error("Truncated ELF header");l.ei_class=32,l.e_flags=e.readUInt32LE(36)}break;case 2:{if(e=e.subarray(0,120),e.length<120)throw Error("Truncated ELF header");l.ei_class=64,l.e_flags=e.readUInt32LE(48)}break;default:throw Error("Invalid ELF class")}return l}function v(e){try{if(L.rmSync!=null)L.rmSync(e,{recursive:!0,maxRetries:process.platform=="win32"?3:0});else L.rmdirSync(e,{recursive:!0,maxRetries:process.platform=="win32"?3:0})}catch(l){if(l.code!=="ENOENT")throw l}}function k(e,l){if(e>8)return null;let d={6:["6.14.2","6.14.2","6.14.2"],8:["8.6.0","8.10.0","8.11.2"],9:["9.0.0","9.3.0","9.11.0"],10:["10.0.0","10.0.0","10.0.0","10.16.0","10.17.0","10.20.0","10.23.0"],11:["11.0.0","11.0.0","11.0.0","11.8.0"],12:["12.0.0","12.0.0","12.0.0","12.0.0","12.11.0","12.17.0","12.19.0","12.22.0"],13:["13.0.0","13.0.0","13.0.0","13.0.0","13.0.0"],14:["14.0.0","14.0.0","14.0.0","14.0.0","14.0.0","14.0.0","14.12.0","14.17.0"],15:["15.0.0","15.0.0","15.0.0","15.0.0","15.0.0","15.0.0","15.0.0","15.12.0"]},P=Math.max(...Object.keys(d).map((c)=>parseInt(c,10)));if(l>P)return l+".0.0";if(d[l]==null)return null;return d[l][e-1]||null}function W(e,l){return e=String(e).replace(/-.*$/,"").split(".").reduce((P,E,c)=>P+parseInt(E,10)*Math.pow(10,2*(5-c)),0),l=String(l).replace(/-.*$/,"").split(".").reduce((P,E,c)=>P+parseInt(E,10)*Math.pow(10,2*(5-c)),0),Math.min(Math.max(e-l,-1),1)}T.exports={download_http:a,extract_targz:x,path_is_absolute:_,path_has_dotdot:A,sync_files:N,determine_arch:b,unlink_recursive:v,get_napi_version:k,cmp_version:W}}}),FT=f$({"bin/Koffi/package/src/koffi/package.json"(H,T){T.exports={name:"koffi",version:"2.15.0",description:"Fast and simple C FFI (foreign function interface) for Node.js",keywords:["foreign","function","interface","ffi","binding","c","napi"],repository:{type:"git",url:"https://github.com/Koromix/koffi"},homepage:"https://koffi.dev/",author:{name:"Niels Martignène",email:"niels.martignene@protonmail.com",url:"https://koromix.dev/"},main:"./index.js",types:"./index.d.ts",scripts:{test:"node tools/koffi.js test",prepack:`echo 'Use "npm run package" instead' && false`,prepublishOnly:`echo 'Use "npm run package" instead' && false`,package:"node tools/koffi.js build"},license:"MIT",cnoke:{api:"../../vendor/node-api-headers",output:"../../bin/Koffi/{{ platform }}_{{ arch }}",node:16,napi:8,require:"./index.js"},funding:"https://buymeacoffee.com/koromix"}}}),sT=f$({"bin/Koffi/package/src/koffi/src/init.js"(exports,module){var fs=B("fs"),path=B("path"),util=B("util"),{get_napi_version,determine_arch}=MT(),pkg=FT();function detect(){if(process.versions.napi==null||process.versions.napi<pkg.cnoke.napi){let D=parseInt(process.versions.node,10),L=get_napi_version(pkg.cnoke.napi,D);if(L!=null)throw Error(`This engine is based on Node ${process.versions.node}, but ${pkg.name} requires Node >= ${L} in the Node ${D}.x branch (N-API >= ${pkg.cnoke.napi})`);else throw Error(`This engine is based on Node ${process.versions.node}, but ${pkg.name} does not support the Node ${D}.x branch (N-API < ${pkg.cnoke.napi})`)}let H=determine_arch();return`${process.platform}_${H}`}function init(triplet,native){if(native==null){let roots=[path.join(__dirname,"..")],triplets=[triplet];if(process.resourcesPath!=null)roots.push(process.resourcesPath);if(triplet.startsWith("linux_")){let H=triplet.replace(/^linux_/,"musl_");triplets.push(H)}let filenames=roots.flatMap((H)=>triplets.flatMap((T)=>[`${H}/build/koffi/${T}/koffi.node`,`${H}/koffi/${T}/koffi.node`,`${H}/node_modules/koffi/build/koffi/${T}/koffi.node`,`${H}/../../bin/Koffi/${T}/koffi.node`])),first_err=null;for(let filename of filenames){if(!fs.existsSync(filename))continue;try{native=eval("require")(filename)}catch(H){if(first_err==null)first_err=H;continue}break}if(first_err!=null)throw first_err}if(native==null)throw Error("Cannot find the native Koffi module; did you bundle it correctly?");if(native.version!=pkg.version)throw Error("Mismatched native Koffi modules");let mod=wrap(native);return mod}function wrap(H){let T={...H,handle:util.deprecate(H.opaque,"The koffi.handle() function was deprecated in Koffi 2.1, use koffi.opaque() instead","KOFFI001"),callback:util.deprecate(H.proto,"The koffi.callback() function was deprecated in Koffi 2.4, use koffi.proto() instead","KOFFI002")};return T.load=(...D)=>{let L=H.load(...D);return L.cdecl=util.deprecate((...p)=>L.func("__cdecl",...p),"The koffi.cdecl() function was deprecated in Koffi 2.7, use koffi.func(...) instead","KOFFI003"),L.stdcall=util.deprecate((...p)=>L.func("__stdcall",...p),'The koffi.stdcall() function was deprecated in Koffi 2.7, use koffi.func("__stdcall", ...) instead',"KOFFI004"),L.fastcall=util.deprecate((...p)=>L.func("__fastcall",...p),'The koffi.fastcall() function was deprecated in Koffi 2.7, use koffi.func("__fastcall", ...) instead',"KOFFI005"),L.thiscall=util.deprecate((...p)=>L.func("__thiscall",...p),'The koffi.thiscall() function was deprecated in Koffi 2.7, use koffi.func("__thiscall", ...) instead',"KOFFI006"),L},T}module.exports={detect,init}}}),{detect:bT,init:WT}=sT(),u$=bT(),f=null;try{switch(u$){case"darwin_arm64":f=eH();break;case"darwin_x64":f=aH();break;case"freebsd_arm64":f=lH();break;case"freebsd_ia32":f=iH();break;case"freebsd_x64":f=nH();break;case"linux_armhf":f=oH();break;case"linux_arm64":f=rH();break;case"linux_ia32":f=XH();break;case"linux_loong64":f=dH();break;case"linux_riscv64d":f=_H();break;case"linux_x64":f=tH();break;case"openbsd_ia32":f=xH();break;case"openbsd_x64":f=PH();break;case"win32_arm64":f=AH();break;case"win32_ia32":f=IH();break;case"win32_x64":f=EH();break}}catch{try{switch(u$){case"linux_arm64":f=KH();break;case"linux_x64":f=BH();break}}catch{}}var jT=WT(u$,f);J$.exports=jT});import{spawn as ZT}from"node:child_process";import UT from"node:path";var S=H$(o$(),1),w$=H$(X$(),1);import{stdin as Q$,stdout as y$}from"node:process";import*as Q from"node:readline";import W$ from"node:readline";import{Writable as WH}from"node:stream";function jH({onlyFirst:H=!1}={}){let 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,H?void 0:"g")}var OH=jH();function z$(H){if(typeof H!="string")throw TypeError(`Expected a \`string\`, got \`${typeof H}\``);return H.replace(OH,"")}function Y$(H){return H&&H.__esModule&&Object.prototype.hasOwnProperty.call(H,"default")?H.default:H}var $H={exports:{}};(function(H){var T={};H.exports=T,T.eastAsianWidth=function(L){var p=L.charCodeAt(0),m=L.length==2?L.charCodeAt(1):0,$=p;return 55296<=p&&p<=56319&&56320<=m&&m<=57343&&(p&=1023,m&=1023,$=p<<10|m,$+=65536),$==12288||65281<=$&&$<=65376||65504<=$&&$<=65510?"F":$==8361||65377<=$&&$<=65470||65474<=$&&$<=65479||65482<=$&&$<=65487||65490<=$&&$<=65495||65498<=$&&$<=65500||65512<=$&&$<=65518?"H":4352<=$&&$<=4447||4515<=$&&$<=4519||4602<=$&&$<=4607||9001<=$&&$<=9002||11904<=$&&$<=11929||11931<=$&&$<=12019||12032<=$&&$<=12245||12272<=$&&$<=12283||12289<=$&&$<=12350||12353<=$&&$<=12438||12441<=$&&$<=12543||12549<=$&&$<=12589||12593<=$&&$<=12686||12688<=$&&$<=12730||12736<=$&&$<=12771||12784<=$&&$<=12830||12832<=$&&$<=12871||12880<=$&&$<=13054||13056<=$&&$<=19903||19968<=$&&$<=42124||42128<=$&&$<=42182||43360<=$&&$<=43388||44032<=$&&$<=55203||55216<=$&&$<=55238||55243<=$&&$<=55291||63744<=$&&$<=64255||65040<=$&&$<=65049||65072<=$&&$<=65106||65108<=$&&$<=65126||65128<=$&&$<=65131||110592<=$&&$<=110593||127488<=$&&$<=127490||127504<=$&&$<=127546||127552<=$&&$<=127560||127568<=$&&$<=127569||131072<=$&&$<=194367||177984<=$&&$<=196605||196608<=$&&$<=262141?"W":32<=$&&$<=126||162<=$&&$<=163||165<=$&&$<=166||$==172||$==175||10214<=$&&$<=10221||10629<=$&&$<=10630?"Na":$==161||$==164||167<=$&&$<=168||$==170||173<=$&&$<=174||176<=$&&$<=180||182<=$&&$<=186||188<=$&&$<=191||$==198||$==208||215<=$&&$<=216||222<=$&&$<=225||$==230||232<=$&&$<=234||236<=$&&$<=237||$==240||242<=$&&$<=243||247<=$&&$<=250||$==252||$==254||$==257||$==273||$==275||$==283||294<=$&&$<=295||$==299||305<=$&&$<=307||$==312||319<=$&&$<=322||$==324||328<=$&&$<=331||$==333||338<=$&&$<=339||358<=$&&$<=359||$==363||$==462||$==464||$==466||$==468||$==470||$==472||$==474||$==476||$==593||$==609||$==708||$==711||713<=$&&$<=715||$==717||$==720||728<=$&&$<=731||$==733||$==735||768<=$&&$<=879||913<=$&&$<=929||931<=$&&$<=937||945<=$&&$<=961||963<=$&&$<=969||$==1025||1040<=$&&$<=1103||$==1105||$==8208||8211<=$&&$<=8214||8216<=$&&$<=8217||8220<=$&&$<=8221||8224<=$&&$<=8226||8228<=$&&$<=8231||$==8240||8242<=$&&$<=8243||$==8245||$==8251||$==8254||$==8308||$==8319||8321<=$&&$<=8324||$==8364||$==8451||$==8453||$==8457||$==8467||$==8470||8481<=$&&$<=8482||$==8486||$==8491||8531<=$&&$<=8532||8539<=$&&$<=8542||8544<=$&&$<=8555||8560<=$&&$<=8569||$==8585||8592<=$&&$<=8601||8632<=$&&$<=8633||$==8658||$==8660||$==8679||$==8704||8706<=$&&$<=8707||8711<=$&&$<=8712||$==8715||$==8719||$==8721||$==8725||$==8730||8733<=$&&$<=8736||$==8739||$==8741||8743<=$&&$<=8748||$==8750||8756<=$&&$<=8759||8764<=$&&$<=8765||$==8776||$==8780||$==8786||8800<=$&&$<=8801||8804<=$&&$<=8807||8810<=$&&$<=8811||8814<=$&&$<=8815||8834<=$&&$<=8835||8838<=$&&$<=8839||$==8853||$==8857||$==8869||$==8895||$==8978||9312<=$&&$<=9449||9451<=$&&$<=9547||9552<=$&&$<=9587||9600<=$&&$<=9615||9618<=$&&$<=9621||9632<=$&&$<=9633||9635<=$&&$<=9641||9650<=$&&$<=9651||9654<=$&&$<=9655||9660<=$&&$<=9661||9664<=$&&$<=9665||9670<=$&&$<=9672||$==9675||9678<=$&&$<=9681||9698<=$&&$<=9701||$==9711||9733<=$&&$<=9734||$==9737||9742<=$&&$<=9743||9748<=$&&$<=9749||$==9756||$==9758||$==9792||$==9794||9824<=$&&$<=9825||9827<=$&&$<=9829||9831<=$&&$<=9834||9836<=$&&$<=9837||$==9839||9886<=$&&$<=9887||9918<=$&&$<=9919||9924<=$&&$<=9933||9935<=$&&$<=9953||$==9955||9960<=$&&$<=9983||$==10045||$==10071||10102<=$&&$<=10111||11093<=$&&$<=11097||12872<=$&&$<=12879||57344<=$&&$<=63743||65024<=$&&$<=65039||$==65533||127232<=$&&$<=127242||127248<=$&&$<=127277||127280<=$&&$<=127337||127344<=$&&$<=127386||917760<=$&&$<=917999||983040<=$&&$<=1048573||1048576<=$&&$<=1114109?"A":"N"},T.characterLength=function(L){var p=this.eastAsianWidth(L);return p=="F"||p=="W"||p=="A"?2:1};function D(L){return L.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}T.length=function(L){for(var p=D(L),m=0,$=0;$<p.length;$++)m=m+this.characterLength(p[$]);return m},T.slice=function(L,p,m){textLen=T.length(L),p=p||0,m=m||1,p<0&&(p=textLen+p),m<0&&(m=textLen+m);for(var $="",a=0,t=D(L),x=0;x<t.length;x++){var _=t[x],A=T.length(_);if(a>=p-(A==2?1:0))if(a+A<=m)$+=_;else break;a+=A}return $}})($H);var qH=$H.exports,vH=Y$(qH),kH=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},ZH=Y$(kH);function T$(H,T={}){if(typeof H!="string"||H.length===0||(T={ambiguousIsNarrow:!0,...T},H=z$(H),H.length===0))return 0;H=H.replace(ZH()," ");let D=T.ambiguousIsNarrow?1:2,L=0;for(let p of H){let m=p.codePointAt(0);if(m<=31||m>=127&&m<=159||m>=768&&m<=879)continue;switch(vH.eastAsianWidth(p)){case"F":case"W":L+=2;break;case"A":L+=D;break;default:L+=1}}return L}var d$=10,j$=(H=0)=>(T)=>`\x1B[${T+H}m`,O$=(H=0)=>(T)=>`\x1B[${38+H};5;${T}m`,q$=(H=0)=>(T,D,L)=>`\x1B[${38+H};2;${T};${D};${L}m`,C={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(C.modifier);var UH=Object.keys(C.color),QH=Object.keys(C.bgColor);[...UH,...QH];function yH(){let H=new Map;for(let[T,D]of Object.entries(C)){for(let[L,p]of Object.entries(D))C[L]={open:`\x1B[${p[0]}m`,close:`\x1B[${p[1]}m`},D[L]=C[L],H.set(p[0],p[1]);Object.defineProperty(C,T,{value:D,enumerable:!1})}return Object.defineProperty(C,"codes",{value:H,enumerable:!1}),C.color.close="\x1B[39m",C.bgColor.close="\x1B[49m",C.color.ansi=j$(),C.color.ansi256=O$(),C.color.ansi16m=q$(),C.bgColor.ansi=j$(d$),C.bgColor.ansi256=O$(d$),C.bgColor.ansi16m=q$(d$),Object.defineProperties(C,{rgbToAnsi256:{value:(T,D,L)=>T===D&&D===L?T<8?16:T>248?231:Math.round((T-8)/247*24)+232:16+36*Math.round(T/255*5)+6*Math.round(D/255*5)+Math.round(L/255*5),enumerable:!1},hexToRgb:{value:(T)=>{let D=/[a-f\d]{6}|[a-f\d]{3}/i.exec(T.toString(16));if(!D)return[0,0,0];let[L]=D;L.length===3&&(L=[...L].map((m)=>m+m).join(""));let p=Number.parseInt(L,16);return[p>>16&255,p>>8&255,p&255]},enumerable:!1},hexToAnsi256:{value:(T)=>C.rgbToAnsi256(...C.hexToRgb(T)),enumerable:!1},ansi256ToAnsi:{value:(T)=>{if(T<8)return 30+T;if(T<16)return 90+(T-8);let D,L,p;if(T>=232)D=((T-232)*10+8)/255,L=D,p=D;else{T-=16;let a=T%36;D=Math.floor(T/36)/5,L=Math.floor(a/6)/5,p=a%6/5}let m=Math.max(D,L,p)*2;if(m===0)return 30;let $=30+(Math.round(p)<<2|Math.round(L)<<1|Math.round(D));return m===2&&($+=60),$},enumerable:!1},rgbToAnsi:{value:(T,D,L)=>C.ansi256ToAnsi(C.rgbToAnsi256(T,D,L)),enumerable:!1},hexToAnsi:{value:(T)=>C.ansi256ToAnsi(C.hexToAnsi256(T)),enumerable:!1}}),C}var wH=yH(),a$=new Set(["\x1B","›"]),zH=39,x$="\x07",HH="[",YH="]",TH="m",P$=`${YH}8;;`,v$=(H)=>`${a$.values().next().value}${HH}${H}${TH}`,k$=(H)=>`${a$.values().next().value}${P$}${H}${x$}`,$T=(H)=>H.split(" ").map((T)=>T$(T)),_$=(H,T,D)=>{let L=[...T],p=!1,m=!1,$=T$(z$(H[H.length-1]));for(let[a,t]of L.entries()){let x=T$(t);if($+x<=D?H[H.length-1]+=t:(H.push(t),$=0),a$.has(t)&&(p=!0,m=L.slice(a+1).join("").startsWith(P$)),p){m?t===x$&&(p=!1,m=!1):t===TH&&(p=!1);continue}$+=x,$===D&&a<L.length-1&&(H.push(""),$=0)}!$&&H[H.length-1].length>0&&H.length>1&&(H[H.length-2]+=H.pop())},HT=(H)=>{let T=H.split(" "),D=T.length;for(;D>0&&!(T$(T[D-1])>0);)D--;return D===T.length?H:T.slice(0,D).join(" ")+T.slice(D).join("")},TT=(H,T,D={})=>{if(D.trim!==!1&&H.trim()==="")return"";let L="",p,m,$=$T(H),a=[""];for(let[x,_]of H.split(" ").entries()){D.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let A=T$(a[a.length-1]);if(x!==0&&(A>=T&&(D.wordWrap===!1||D.trim===!1)&&(a.push(""),A=0),(A>0||D.trim===!1)&&(a[a.length-1]+=" ",A++)),D.hard&&$[x]>T){let I=T-A,N=1+Math.floor(($[x]-I-1)/T);Math.floor(($[x]-1)/T)<N&&a.push(""),_$(a,_,T);continue}if(A+$[x]>T&&A>0&&$[x]>0){if(D.wordWrap===!1&&A<T){_$(a,_,T);continue}a.push("")}if(A+$[x]>T&&D.wordWrap===!1){_$(a,_,T);continue}a[a.length-1]+=_}D.trim!==!1&&(a=a.map((x)=>HT(x)));let t=[...a.join(`
2
+ `)];for(let[x,_]of t.entries()){if(L+=_,a$.has(_)){let{groups:I}=new RegExp(`(?:\\${HH}(?<code>\\d+)m|\\${P$}(?<uri>.*)${x$})`).exec(t.slice(x).join(""))||{groups:{}};if(I.code!==void 0){let N=Number.parseFloat(I.code);p=N===zH?void 0:N}else I.uri!==void 0&&(m=I.uri.length===0?void 0:I.uri)}let A=wH.codes.get(Number(p));t[x+1]===`
3
+ `?(m&&(L+=k$("")),p&&A&&(L+=v$(A))):_===`
4
+ `&&(p&&A&&(L+=v$(p)),m&&(L+=k$(m)))}return L};function Z$(H,T,D){return String(H).normalize().replace(/\r\n/g,`
5
+ `).split(`
6
+ `).map((L)=>TT(L,T,D)).join(`
7
+ `)}var DT=["up","down","left","right","space","enter","cancel"],e$={actions:new Set(DT),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["\x03","cancel"],["escape","cancel"]])};function A$(H,T){if(typeof H=="string")return e$.aliases.get(H)===T;for(let D of H)if(D!==void 0&&A$(D,T))return!0;return!1}function LT(H,T){if(H===T)return;let D=H.split(`
8
+ `),L=T.split(`
9
+ `),p=[];for(let m=0;m<Math.max(D.length,L.length);m++)D[m]!==L[m]&&p.push(m);return p}var pT=globalThis.process.platform.startsWith("win"),t$=Symbol("clack:cancel");function n(H){return H===t$}function m$(H,T){let D=H;D.isTTY&&D.setRawMode(T)}function DH({input:H=Q$,output:T=y$,overwrite:D=!0,hideCursor:L=!0}={}){let p=Q.createInterface({input:H,output:T,prompt:"",tabSize:1});Q.emitKeypressEvents(H,p),H.isTTY&&H.setRawMode(!0);let m=($,{name:a,sequence:t})=>{let x=String($);if(A$([x,a,t],"cancel")){L&&T.write(S.cursor.show),process.exit(0);return}if(!D)return;Q.moveCursor(T,a==="return"?0:-1,a==="return"?-1:0,()=>{Q.clearLine(T,1,()=>{H.once("keypress",m)})})};return L&&T.write(S.cursor.hide),H.once("keypress",m),()=>{H.off("keypress",m),L&&T.write(S.cursor.show),H.isTTY&&!pT&&H.setRawMode(!1),p.terminal=!1,p.close()}}var mT=Object.defineProperty,eT=(H,T,D)=>(T in H)?mT(H,T,{enumerable:!0,configurable:!0,writable:!0,value:D}):H[T]=D,M=(H,T,D)=>(eT(H,typeof T!="symbol"?T+"":T,D),D);class l${constructor(H,T=!0){M(this,"input"),M(this,"output"),M(this,"_abortSignal"),M(this,"rl"),M(this,"opts"),M(this,"_render"),M(this,"_track",!1),M(this,"_prevFrame",""),M(this,"_subscribers",new Map),M(this,"_cursor",0),M(this,"state","initial"),M(this,"error",""),M(this,"value");let{input:D=Q$,output:L=y$,render:p,signal:m,...$}=H;this.opts=$,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=p.bind(this),this._track=T,this._abortSignal=m,this.input=D,this.output=L}unsubscribe(){this._subscribers.clear()}setSubscriber(H,T){let D=this._subscribers.get(H)??[];D.push(T),this._subscribers.set(H,D)}on(H,T){this.setSubscriber(H,{cb:T})}once(H,T){this.setSubscriber(H,{cb:T,once:!0})}emit(H,...T){let D=this._subscribers.get(H)??[],L=[];for(let p of D)p.cb(...T),p.once&&L.push(()=>D.splice(D.indexOf(p),1));for(let p of L)p()}prompt(){return new Promise((H,T)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),H(t$);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}let D=new WH;D._write=(L,p,m)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),m()},this.input.pipe(D),this.rl=W$.createInterface({input:this.input,output:D,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),W$.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),m$(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(S.cursor.show),this.output.off("resize",this.render),m$(this.input,!1),H(this.value)}),this.once("cancel",()=>{this.output.write(S.cursor.show),this.output.off("resize",this.render),m$(this.input,!1),H(t$)})})}onKeypress(H,T){if(this.state==="error"&&(this.state="active"),T?.name&&(!this._track&&e$.aliases.has(T.name)&&this.emit("cursor",e$.aliases.get(T.name)),e$.actions.has(T.name)&&this.emit("cursor",T.name)),H&&(H.toLowerCase()==="y"||H.toLowerCase()==="n")&&this.emit("confirm",H.toLowerCase()==="y"),H==="\t"&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),H&&this.emit("key",H.toLowerCase()),T?.name==="return"){if(this.opts.validate){let D=this.opts.validate(this.value);D&&(this.error=D instanceof Error?D.message:D,this.state="error",this.rl?.write(this.value))}this.state!=="error"&&(this.state="submit")}A$([H,T?.name,T?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
10
+ `),m$(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let H=Z$(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
11
+ `).length-1;this.output.write(S.cursor.move(-999,H*-1))}render(){let H=Z$(this._render(this)??"",process.stdout.columns,{hard:!0});if(H!==this._prevFrame){if(this.state==="initial")this.output.write(S.cursor.hide);else{let T=LT(this._prevFrame,H);if(this.restoreCursor(),T&&T?.length===1){let D=T[0];this.output.write(S.cursor.move(0,D)),this.output.write(S.erase.lines(1));let L=H.split(`
12
+ `);this.output.write(L[D]),this._prevFrame=H,this.output.write(S.cursor.move(0,L.length-D-1));return}if(T&&T?.length>1){let D=T[0];this.output.write(S.cursor.move(0,D)),this.output.write(S.erase.down());let L=H.split(`
13
+ `).slice(D);this.output.write(L.join(`
14
+ `)),this._prevFrame=H;return}this.output.write(S.erase.down())}this.output.write(H),this.state==="initial"&&(this.state="active"),this._prevFrame=H}}}class I$ extends l${get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(H){super(H,!1),this.value=!!H.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",(T)=>{this.output.write(S.cursor.move(0,-1)),this.value=T,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}var aT;aT=new WeakMap;var lT=Object.defineProperty,iT=(H,T,D)=>(T in H)?lT(H,T,{enumerable:!0,configurable:!0,writable:!0,value:D}):H[T]=D,U$=(H,T,D)=>(iT(H,typeof T!="symbol"?T+"":T,D),D);class E$ extends l${constructor(H){super(H,!1),U$(this,"options"),U$(this,"cursor",0),this.options=H.options,this.cursor=this.options.findIndex(({value:T})=>T===H.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",(T)=>{switch(T){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}}class K$ extends l${get valueWithCursor(){if(this.state==="submit")return this.value;if(this.cursor>=this.value.length)return`${this.value}█`;let H=this.value.slice(0,this.cursor),[T,...D]=this.value.slice(this.cursor);return`${H}${w$.default.inverse(T)}${D.join("")}`}get cursor(){return this._cursor}constructor(H){super(H),this.on("finalize",()=>{this.value||(this.value=H.defaultValue)})}}var i=H$(X$(),1),i$=H$(o$(),1);import O from"node:process";function nT(){return O.platform!=="win32"?O.env.TERM!=="linux":!!O.env.CI||!!O.env.WT_SESSION||!!O.env.TERMINUS_SUBLIME||O.env.ConEmuTask==="{cmd::Cmder}"||O.env.TERM_PROGRAM==="Terminus-Sublime"||O.env.TERM_PROGRAM==="vscode"||O.env.TERM==="xterm-256color"||O.env.TERM==="alacritty"||O.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var B$=nT(),u=(H,T)=>B$?H:T,oT=u("◆","*"),LH=u("■","x"),pH=u("▲","x"),h$=u("◇","o"),JD=u("┌","T"),h=u("│","|"),z=u("└","—"),c$=u("●",">"),C$=u("○"," "),ND=u("◻","[•]"),RD=u("◼","[+]"),SD=u("◻","[ ]"),VD=u("▪","•"),gD=u("─","-"),MD=u("╮","+"),FD=u("├","+"),sD=u("╯","+"),rT=u("●","•"),XT=u("◆","*"),dT=u("▲","!"),_T=u("■","x"),G$=(H)=>{switch(H){case"initial":case"active":return i.default.cyan(oT);case"cancel":return i.default.red(LH);case"error":return i.default.yellow(pH);case"submit":return i.default.green(h$)}},tT=(H)=>{let{cursor:T,options:D,style:L}=H,p=H.maxItems??Number.POSITIVE_INFINITY,m=Math.max(process.stdout.rows-4,0),$=Math.min(m,Math.max(p,5)),a=0;T>=a+$-3?a=Math.max(Math.min(T-$+3,D.length-$),0):T<a+2&&(a=Math.max(T-2,0));let t=$<D.length&&a>0,x=$<D.length&&a+$<D.length;return D.slice(a,a+$).map((_,A,I)=>{let N=A===0&&t,b=A===I.length-1&&x;return N||b?i.default.dim("..."):L(_,A+a===T)})},X=(H)=>new K$({validate:H.validate,placeholder:H.placeholder,defaultValue:H.defaultValue,initialValue:H.initialValue,render(){let T=`${i.default.gray(h)}
15
+ ${G$(this.state)} ${H.message}
16
+ `,D=H.placeholder?i.default.inverse(H.placeholder[0])+i.default.dim(H.placeholder.slice(1)):i.default.inverse(i.default.hidden("_")),L=this.value?this.valueWithCursor:D;switch(this.state){case"error":return`${T.trim()}
17
+ ${i.default.yellow(h)} ${L}
18
+ ${i.default.yellow(z)} ${i.default.yellow(this.error)}
19
+ `;case"submit":return`${T}${i.default.gray(h)} ${i.default.dim(this.value||H.placeholder)}`;case"cancel":return`${T}${i.default.gray(h)} ${i.default.strikethrough(i.default.dim(this.value??""))}${this.value?.trim()?`
20
+ ${i.default.gray(h)}`:""}`;default:return`${T}${i.default.cyan(h)} ${L}
21
+ ${i.default.cyan(z)}
22
+ `}}}).prompt();var w=(H)=>{let T=H.active??"Yes",D=H.inactive??"No";return new I$({active:T,inactive:D,initialValue:H.initialValue??!0,render(){let L=`${i.default.gray(h)}
23
+ ${G$(this.state)} ${H.message}
24
+ `,p=this.value?T:D;switch(this.state){case"submit":return`${L}${i.default.gray(h)} ${i.default.dim(p)}`;case"cancel":return`${L}${i.default.gray(h)} ${i.default.strikethrough(i.default.dim(p))}
25
+ ${i.default.gray(h)}`;default:return`${L}${i.default.cyan(h)} ${this.value?`${i.default.green(c$)} ${T}`:`${i.default.dim(C$)} ${i.default.dim(T)}`} ${i.default.dim("/")} ${this.value?`${i.default.dim(C$)} ${i.default.dim(D)}`:`${i.default.green(c$)} ${D}`}
26
+ ${i.default.cyan(z)}
27
+ `}}}).prompt()},D$=(H)=>{let T=(D,L)=>{let p=D.label??String(D.value);switch(L){case"selected":return`${i.default.dim(p)}`;case"active":return`${i.default.green(c$)} ${p} ${D.hint?i.default.dim(`(${D.hint})`):""}`;case"cancelled":return`${i.default.strikethrough(i.default.dim(p))}`;default:return`${i.default.dim(C$)} ${i.default.dim(p)}`}};return new E$({options:H.options,initialValue:H.initialValue,render(){let D=`${i.default.gray(h)}
28
+ ${G$(this.state)} ${H.message}
29
+ `;switch(this.state){case"submit":return`${D}${i.default.gray(h)} ${T(this.options[this.cursor],"selected")}`;case"cancel":return`${D}${i.default.gray(h)} ${T(this.options[this.cursor],"cancelled")}
30
+ ${i.default.gray(h)}`;default:return`${D}${i.default.cyan(h)} ${tT({cursor:this.cursor,options:this.options,maxItems:H.maxItems,style:(L,p)=>T(L,p?"active":"inactive")}).join(`
31
+ ${i.default.cyan(h)} `)}
32
+ ${i.default.cyan(z)}
33
+ `}}}).prompt()};var o=(H="")=>{process.stdout.write(`${i.default.gray(z)} ${i.default.red(H)}
34
+
35
+ `)};var mH=(H="")=>{process.stdout.write(`${i.default.gray(h)}
36
+ ${i.default.gray(z)} ${H}
37
+
38
+ `)},r={message:(H="",{symbol:T=i.default.gray(h)}={})=>{let D=[`${i.default.gray(h)}`];if(H){let[L,...p]=H.split(`
39
+ `);D.push(`${T} ${L}`,...p.map((m)=>`${i.default.gray(h)} ${m}`))}process.stdout.write(`${D.join(`
40
+ `)}
41
+ `)},info:(H)=>{r.message(H,{symbol:i.default.blue(rT)})},success:(H)=>{r.message(H,{symbol:i.default.green(XT)})},step:(H)=>{r.message(H,{symbol:i.default.green(h$)})},warn:(H)=>{r.message(H,{symbol:i.default.yellow(dT)})},warning:(H)=>{r.warn(H)},error:(H)=>{r.message(H,{symbol:i.default.red(_T)})}},bD=`${i.default.gray(h)} `;var V=({indicator:H="dots"}={})=>{let T=B$?["◒","◐","◓","◑"]:["•","o","O","0"],D=B$?80:120,L=process.env.CI==="true",p,m,$=!1,a="",t,x=performance.now(),_=(e)=>{let l=e>1?"Something went wrong":"Canceled";$&&W(l,e)},A=()=>_(2),I=()=>_(1),N=()=>{process.on("uncaughtExceptionMonitor",A),process.on("unhandledRejection",A),process.on("SIGINT",I),process.on("SIGTERM",I),process.on("exit",_)},b=()=>{process.removeListener("uncaughtExceptionMonitor",A),process.removeListener("unhandledRejection",A),process.removeListener("SIGINT",I),process.removeListener("SIGTERM",I),process.removeListener("exit",_)},s=()=>{if(t===void 0)return;L&&process.stdout.write(`
42
+ `);let e=t.split(`
43
+ `);process.stdout.write(i$.cursor.move(-999,e.length-1)),process.stdout.write(i$.erase.down(e.length))},J=(e)=>e.replace(/\.+$/,""),v=(e)=>{let l=(performance.now()-e)/1000,d=Math.floor(l/60),P=Math.floor(l%60);return d>0?`[${d}m ${P}s]`:`[${P}s]`},k=(e="")=>{$=!0,p=DH(),a=J(e),x=performance.now(),process.stdout.write(`${i.default.gray(h)}
44
+ `);let l=0,d=0;N(),m=setInterval(()=>{if(L&&a===t)return;s(),t=a;let P=i.default.magenta(T[l]);if(L)process.stdout.write(`${P} ${a}...`);else if(H==="timer")process.stdout.write(`${P} ${a} ${v(x)}`);else{let E=".".repeat(Math.floor(d)).slice(0,3);process.stdout.write(`${P} ${a}${E}`)}l=l+1<T.length?l+1:0,d=d<T.length?d+0.125:0},D)},W=(e="",l=0)=>{$=!1,clearInterval(m),s();let d=l===0?i.default.green(h$):l===1?i.default.red(LH):i.default.red(pH);a=J(e??a),H==="timer"?process.stdout.write(`${d} ${a} ${v(x)}
45
+ `):process.stdout.write(`${d} ${a}
46
+ `),b(),p()};return{start:k,stop:W,message:(e="")=>{a=J(e??a)}}};var V$=H$(CH(),1);import hH from"node:os";import OT from"node:path";function qT(){let T=hH.arch()==="x64"?"AutoItX3_x64.dll":"AutoItX3.dll";return OT.join(import.meta.dirname,"dlls",T)}var Y=null,GH=null,N$=null,R$=null,S$=null,vT={async init(){if(Y!==null)return;let H=qT();try{Y=V$.default.load(H)}catch(T){throw Error(`Failed to load AutoIt DLL from "${H}". Make sure the DLL files exist in the src/dlls directory. Original error: ${T instanceof Error?T.message:String(T)}`)}GH=Y.func("AU3_Init","void",[]),N$=Y.func("AU3_MouseMove","int",["int","int","int"]),R$=Y.func("AU3_ControlGetText","void",["str16","str16","str16","char16 *","int"]),S$=Y.func("AU3_ControlClick","int",["str16","str16","str16","str16","int","int","int"]),GH()},async mouseMove(H,T,D=-1){if(N$===null)throw Error("AutoIt is not initialized. Call init() first.");return N$(H,T,D)},async controlGetText(H,T,D,L=1024){if(R$===null)throw Error("AutoIt is not initialized. Call init() first.");let p=Buffer.alloc(L*2);return R$(H,T,D,p,L),V$.default.decode(p,"char16",L).replace(/\0.*$/,"")},async controlClick(H,T,D,L="left",p=1,m=-2147483647,$=-2147483647){if(S$===null)throw Error("AutoIt is not initialized. Call init() first.");return S$(H,T,D,L,p,m,$)}},$$=vT;function F(H,T,D){let L=new URL(T,H);for(let[p,m]of Object.entries(D)){if(m===void 0)continue;let $;if(typeof m==="boolean")$=m?"True":"False";else $=String(m);L.searchParams.append(p,$)}return L.toString()}var kT={config:{baseUrl:"http://localhost:9999"},setBaseUrl(H){this.config.baseUrl=H},async test(){let H=F(this.config.baseUrl,"/test",{});return(await fetch(H)).json()},async change(H){let T=F(this.config.baseUrl,"/change",{serial:H.serial,filter_brand:H.filterBrand,filter_model:H.filterModel,filter_os:H.filterOs,filter_country:H.filterCountry,filter_carrier:H.filterCarrier,custom_carrier:H.customCarrier,lat:H.lat,long:H.long,factory_reset:H.factoryReset});return(await fetch(T)).json()},async changeSimOnly(H){let T=F(this.config.baseUrl,"/changesimonly",{serial:H.serial,filter_country:H.filterCountry,filter_carrier:H.filterCarrier,custom_carrier:H.customCarrier,wipe:H.wipe});return(await fetch(T)).json()},async changeLocationOnly(H){let T=F(this.config.baseUrl,"/changelocationonly",{serial:H.serial,lat:H.lat,long:H.long,wipe:H.wipe});return(await fetch(T)).json()},async backupOnly(H){let T=F(this.config.baseUrl,"/backuponly",{serial:H.serial,note:H.note,filename:H.filename});return(await fetch(T)).json()},async backup(H){let T=F(this.config.baseUrl,"/backup",{serial:H.serial,note:H.note,filename:H.filename,filter_brand:H.filterBrand,filter_model:H.filterModel,filter_os:H.filterOs,filter_country:H.filterCountry,filter_carrier:H.filterCarrier,custom_carrier:H.customCarrier,lat:H.lat,long:H.long,factory_reset:H.factoryReset});return(await fetch(T)).json()},async getList(H){let T=F(this.config.baseUrl,"/getlist",{type:H});return(await fetch(T)).json()},async restore(H){let T=F(this.config.baseUrl,"/restore",{serial:H.serial,filename:H.filename,gmail:H.gmail,lat:H.lat,long:H.long});return(await fetch(T)).json()},async setProxy(H,T){let D=F(this.config.baseUrl,"/setproxy",{serial:H,proxy:T});return(await fetch(D)).json()},async clearProxy(H){let T=F(this.config.baseUrl,"/clearproxy",{serial:H});return(await fetch(T)).json()},async setSocks(H,T){let D=F(this.config.baseUrl,"/setsocks",{serial:H,socks:T});return(await fetch(D)).json()},async clearSocks(H){let T=F(this.config.baseUrl,"/clearsocks",{serial:H});return(await fetch(T)).json()},async getCarrier(H){let T=F(this.config.baseUrl,"/getcarrier",{country:H});return(await fetch(T)).json()}},g=kT;async function QT(){let H=await X({message:"Nhập X:"});if(n(H))o("Đã hủy thao tác."),process.exit(0);let T=await X({message:"Nhập Y:"});if(n(T))o("Đã hủy thao tác."),process.exit(0);let D=parseInt(H,10),L=parseInt(T,10);if(Number.isNaN(D)||Number.isNaN(L)){console.log("Tọa độ không hợp lệ. Vui lòng nhập số hợp lệ.");return}await $$.mouseMove(D,L),console.log(`Đã di chuyển chuột đến (${D}, ${L})`)}async function yT(){let H=await X({message:"Nhập tiêu đề cửa sổ (title):"});if(n(H))o("Đã hủy thao tác."),process.exit(0);let T=await X({message:"Nhập control selector:"});if(n(T))o("Đã hủy thao tác."),process.exit(0);if(!H){r.error("Title là bắt buộc.");return}if(!T){r.error("Control selector là bắt buộc.");return}if(await $$.controlClick(H,"",T)===1)r.success("Control click thành công.");else r.error("Control click thất bại.")}async function wT(){let H=await X({message:"Nhập tiêu đề cửa sổ (title):"});if(n(H))o("Đã hủy thao tác."),process.exit(0);let T=await X({message:"Nhập control selector:"});if(n(T))o("Đã hủy thao tác."),process.exit(0);if(!H){r.error("Title là bắt buộc.");return}if(!T){r.error("Control selector là bắt buộc.");return}let D=await $$.controlGetText(H,"",T);r.info(`Control text: ${D}`)}function zT(){try{let H=UT.join(import.meta.dirname,"dlls","Au3Info.exe");ZT(H,[],{detached:!0,stdio:"ignore"}).unref(),r.success("Đã khởi chạy Au3Info.exe")}catch(H){r.error(`Lỗi khi khởi chạy Au3Info.exe: ${H instanceof Error?H.message:String(H)}`)}}function q(H){if(H.Success)r.success(`${H.Message} (${H.ProcessTime})`);else r.error(`${H.Message} (${H.ProcessTime})`);r.info(JSON.stringify(H,null,2))}async function YT(){let H=V();H.start("Đang kiểm tra kết nối...");try{let T=await g.test();H.stop("Hoàn thành!"),q(T)}catch(T){H.stop("Lỗi!"),r.error(`Lỗi: ${T instanceof Error?T.message:String(T)}`)}}async function $D(){let H=await X({message:"Nhập serial thiết bị:"});if(n(H))o("Đã hủy thao tác."),process.exit(0);if(!H){r.error("Serial là bắt buộc.");return}let T=await w({message:"Bạn có muốn thêm filter không?"});if(n(T))o("Đã hủy thao tác."),process.exit(0);let D,L,p,m,$,a,t,x,_;if(T){let I=await X({message:"Filter Brand (để trống để bỏ qua):"});if(n(I))o("Đã hủy thao tác."),process.exit(0);D=I||void 0;let N=await X({message:"Filter Model (để trống để bỏ qua):"});if(n(N))o("Đã hủy thao tác."),process.exit(0);L=N||void 0;let b=await X({message:"Filter OS (để trống để bỏ qua):"});if(n(b))o("Đã hủy thao tác."),process.exit(0);p=b||void 0;let s=await X({message:"Filter Country (để trống để bỏ qua):"});if(n(s))o("Đã hủy thao tác."),process.exit(0);m=s||void 0;let J=await X({message:"Filter Carrier (để trống để bỏ qua):"});if(n(J))o("Đã hủy thao tác."),process.exit(0);$=J||void 0;let v=await X({message:"Custom Carrier (để trống để bỏ qua):"});if(n(v))o("Đã hủy thao tác."),process.exit(0);a=v||void 0;let k=await X({message:"Latitude (để trống để bỏ qua):"});if(n(k))o("Đã hủy thao tác."),process.exit(0);if(k){let l=parseFloat(k);if(!Number.isNaN(l))t=l}let W=await X({message:"Longitude (để trống để bỏ qua):"});if(n(W))o("Đã hủy thao tác."),process.exit(0);if(W){let l=parseFloat(W);if(!Number.isNaN(l))x=l}let e=await w({message:"Factory Reset?"});if(n(e))o("Đã hủy thao tác."),process.exit(0);_=e}let A=V();A.start("Đang thay đổi thông tin thiết bị...");try{let I=await g.change({serial:H,filterBrand:D,filterModel:L,filterOs:p,filterCountry:m,filterCarrier:$,customCarrier:a,lat:t,long:x,factoryReset:_});A.stop("Hoàn thành!"),q(I)}catch(I){A.stop("Lỗi!"),r.error(`Lỗi: ${I instanceof Error?I.message:String(I)}`)}}async function HD(){let H=await X({message:"Nhập serial thiết bị:"});if(n(H))o("Đã hủy thao tác."),process.exit(0);if(!H){r.error("Serial là bắt buộc.");return}let T=await X({message:"Filter Country (bắt buộc):"});if(n(T))o("Đã hủy thao tác."),process.exit(0);if(!T){r.error("Filter Country là bắt buộc.");return}let D=await X({message:"Filter Carrier (để trống để bỏ qua):"});if(n(D))o("Đã hủy thao tác."),process.exit(0);let L=D||void 0,p=await X({message:"Custom Carrier (để trống để bỏ qua):"});if(n(p))o("Đã hủy thao tác."),process.exit(0);let m=p||void 0,$=await w({message:"Wipe?"});if(n($))o("Đã hủy thao tác."),process.exit(0);let a=V();a.start("Đang thay đổi thông tin SIM...");try{let t=await g.changeSimOnly({serial:H,filterCountry:T,filterCarrier:L,customCarrier:m,wipe:$});a.stop("Hoàn thành!"),q(t)}catch(t){a.stop("Lỗi!"),r.error(`Lỗi: ${t instanceof Error?t.message:String(t)}`)}}async function TD(){let H=await X({message:"Nhập serial thiết bị:"});if(n(H))o("Đã hủy thao tác."),process.exit(0);if(!H){r.error("Serial là bắt buộc.");return}let T=await X({message:"Latitude (bắt buộc):"});if(n(T))o("Đã hủy thao tác."),process.exit(0);if(!T){r.error("Latitude là bắt buộc.");return}let D=parseFloat(T);if(Number.isNaN(D)){r.error("Latitude phải là số.");return}let L=await X({message:"Longitude (bắt buộc):"});if(n(L))o("Đã hủy thao tác."),process.exit(0);if(!L){r.error("Longitude là bắt buộc.");return}let p=parseFloat(L);if(Number.isNaN(p)){r.error("Longitude phải là số.");return}let m=await w({message:"Wipe?"});if(n(m))o("Đã hủy thao tác."),process.exit(0);let $=V();$.start("Đang thay đổi vị trí...");try{let a=await g.changeLocationOnly({serial:H,lat:D,long:p,wipe:m});$.stop("Hoàn thành!"),q(a)}catch(a){$.stop("Lỗi!"),r.error(`Lỗi: ${a instanceof Error?a.message:String(a)}`)}}async function DD(){let H=await X({message:"Nhập serial thiết bị:"});if(n(H))o("Đã hủy thao tác."),process.exit(0);if(!H){r.error("Serial là bắt buộc.");return}let T=await X({message:"Note (để trống để bỏ qua):"});if(n(T))o("Đã hủy thao tác."),process.exit(0);let D=T||void 0,L=await X({message:"Filename (để trống để bỏ qua):"});if(n(L))o("Đã hủy thao tác."),process.exit(0);let p=L||void 0,m=V();m.start("Đang backup dữ liệu...");try{let $=await g.backupOnly({serial:H,note:D,filename:p});m.stop("Hoàn thành!"),q($)}catch($){m.stop("Lỗi!"),r.error(`Lỗi: ${$ instanceof Error?$.message:String($)}`)}}async function LD(){let H=await X({message:"Nhập serial thiết bị:"});if(n(H))o("Đã hủy thao tác."),process.exit(0);if(!H){r.error("Serial là bắt buộc.");return}let T=await X({message:"Note (để trống để bỏ qua):"});if(n(T))o("Đã hủy thao tác."),process.exit(0);let D=T||void 0,L=await X({message:"Filename (để trống để bỏ qua):"});if(n(L))o("Đã hủy thao tác."),process.exit(0);let p=L||void 0,m=await w({message:"Bạn có muốn thêm filter không?"});if(n(m))o("Đã hủy thao tác."),process.exit(0);let $,a,t,x,_,A,I,N,b;if(m){let J=await X({message:"Filter Brand (để trống để bỏ qua):"});if(n(J))o("Đã hủy thao tác."),process.exit(0);$=J||void 0;let v=await X({message:"Filter Model (để trống để bỏ qua):"});if(n(v))o("Đã hủy thao tác."),process.exit(0);a=v||void 0;let k=await X({message:"Filter OS (để trống để bỏ qua):"});if(n(k))o("Đã hủy thao tác."),process.exit(0);t=k||void 0;let W=await X({message:"Filter Country (để trống để bỏ qua):"});if(n(W))o("Đã hủy thao tác."),process.exit(0);x=W||void 0;let e=await X({message:"Filter Carrier (để trống để bỏ qua):"});if(n(e))o("Đã hủy thao tác."),process.exit(0);_=e||void 0;let l=await X({message:"Custom Carrier (để trống để bỏ qua):"});if(n(l))o("Đã hủy thao tác."),process.exit(0);A=l||void 0;let d=await X({message:"Latitude (để trống để bỏ qua):"});if(n(d))o("Đã hủy thao tác."),process.exit(0);if(d){let c=parseFloat(d);if(!Number.isNaN(c))I=c}let P=await X({message:"Longitude (để trống để bỏ qua):"});if(n(P))o("Đã hủy thao tác."),process.exit(0);if(P){let c=parseFloat(P);if(!Number.isNaN(c))N=c}let E=await w({message:"Factory Reset?"});if(n(E))o("Đã hủy thao tác."),process.exit(0);b=E}let s=V();s.start("Đang backup và thay đổi thông tin...");try{let J=await g.backup({serial:H,note:D,filename:p,filterBrand:$,filterModel:a,filterOs:t,filterCountry:x,filterCarrier:_,customCarrier:A,lat:I,long:N,factoryReset:b});s.stop("Hoàn thành!"),q(J)}catch(J){s.stop("Lỗi!"),r.error(`Lỗi: ${J instanceof Error?J.message:String(J)}`)}}async function pD(){let H=await D$({message:"Chọn loại thiết bị:",options:[{value:"all",label:"All"},{value:"XiaomiA1",label:"Xiaomi A1"},{value:"XiaomiA1New",label:"Xiaomi A1 New"},{value:"SamsungS9",label:"Samsung S9"},{value:"SamsungS9New",label:"Samsung S9 New"},{value:"Pixel3",label:"Pixel 3"},{value:"Pixel3XL",label:"Pixel 3 XL"},{value:"Pixel3a",label:"Pixel 3a"},{value:"Pixel3aXL",label:"Pixel 3a XL"},{value:"Pixel4",label:"Pixel 4"},{value:"Pixel4XL",label:"Pixel 4 XL"}]});if(n(H))o("Đã hủy thao tác."),process.exit(0);let T=V();T.start("Đang lấy danh sách backup...");try{let D=await g.getList(H);T.stop("Hoàn thành!"),r.success(`Tìm thấy ${D.length} file backup.`),r.info(JSON.stringify(D,null,2))}catch(D){T.stop("Lỗi!"),r.error(`Lỗi: ${D instanceof Error?D.message:String(D)}`)}}async function mD(){let H=await X({message:"Nhập serial thiết bị:"});if(n(H))o("Đã hủy thao tác."),process.exit(0);if(!H){r.error("Serial là bắt buộc.");return}let T=await X({message:"Filename (để trống để bỏ qua):"});if(n(T))o("Đã hủy thao tác."),process.exit(0);let D=T||void 0,L=await X({message:"Gmail (để trống để bỏ qua):"});if(n(L))o("Đã hủy thao tác."),process.exit(0);let p=L||void 0,m=await X({message:"Latitude (để trống để bỏ qua):"});if(n(m))o("Đã hủy thao tác."),process.exit(0);let $;if(m){let _=parseFloat(m);if(!Number.isNaN(_))$=_}let a=await X({message:"Longitude (để trống để bỏ qua):"});if(n(a))o("Đã hủy thao tác."),process.exit(0);let t;if(a){let _=parseFloat(a);if(!Number.isNaN(_))t=_}let x=V();x.start("Đang restore dữ liệu...");try{let _=await g.restore({serial:H,filename:D,gmail:p,lat:$,long:t});x.stop("Hoàn thành!"),q(_)}catch(_){x.stop("Lỗi!"),r.error(`Lỗi: ${_ instanceof Error?_.message:String(_)}`)}}async function eD(){let H=await X({message:"Nhập serial thiết bị:"});if(n(H))o("Đã hủy thao tác."),process.exit(0);if(!H){r.error("Serial là bắt buộc.");return}let T=await X({message:"Proxy (HOST:PORT):"});if(n(T))o("Đã hủy thao tác."),process.exit(0);if(!T){r.error("Proxy là bắt buộc.");return}let D=V();D.start("Đang cài đặt proxy...");try{let L=await g.setProxy(H,T);D.stop("Hoàn thành!"),q(L)}catch(L){D.stop("Lỗi!"),r.error(`Lỗi: ${L instanceof Error?L.message:String(L)}`)}}async function aD(){let H=await X({message:"Nhập serial thiết bị:"});if(n(H))o("Đã hủy thao tác."),process.exit(0);if(!H){r.error("Serial là bắt buộc.");return}let T=V();T.start("Đang xóa proxy...");try{let D=await g.clearProxy(H);T.stop("Hoàn thành!"),q(D)}catch(D){T.stop("Lỗi!"),r.error(`Lỗi: ${D instanceof Error?D.message:String(D)}`)}}async function lD(){let H=await X({message:"Nhập serial thiết bị:"});if(n(H))o("Đã hủy thao tác."),process.exit(0);if(!H){r.error("Serial là bắt buộc.");return}let T=await X({message:"SOCKS5 (HOST:PORT hoặc HOST:PORT:USER:PASSWORD):"});if(n(T))o("Đã hủy thao tác."),process.exit(0);if(!T){r.error("SOCKS5 là bắt buộc.");return}let D=V();D.start("Đang cài đặt SOCKS5...");try{let L=await g.setSocks(H,T);D.stop("Hoàn thành!"),q(L)}catch(L){D.stop("Lỗi!"),r.error(`Lỗi: ${L instanceof Error?L.message:String(L)}`)}}async function iD(){let H=await X({message:"Nhập serial thiết bị:"});if(n(H))o("Đã hủy thao tác."),process.exit(0);if(!H){r.error("Serial là bắt buộc.");return}let T=V();T.start("Đang xóa SOCKS5...");try{let D=await g.clearSocks(H);T.stop("Hoàn thành!"),q(D)}catch(D){T.stop("Lỗi!"),r.error(`Lỗi: ${D instanceof Error?D.message:String(D)}`)}}async function nD(){let H=await X({message:"Country code (vd: us, vn, all):"});if(n(H))o("Đã hủy thao tác."),process.exit(0);if(!H){r.error("Country code là bắt buộc.");return}let T=V();T.start("Đang lấy danh sách nhà mạng...");try{let D=await g.getCarrier(H);T.stop("Hoàn thành!"),r.success(`Tìm thấy ${D.length} nhà mạng.`);for(let L of D)r.info(`${L.CountryName} (${L.CountryIso}) - ${L.CarrierName} [MCC: ${L.Mcc}, MNC: ${L.Mnc}]`);if(D.length===0)r.info("Không tìm thấy carrier nào.");r.info(JSON.stringify(D,null,2))}catch(D){T.stop("Lỗi!"),r.error(`Lỗi: ${D instanceof Error?D.message:String(D)}`)}}async function oD(){let H=!0;while(H){let T=await D$({message:"MiChanger Menu:",options:[{value:"test",label:"Test Connection"},{value:"change",label:"Change Device Info"},{value:"change-sim",label:"Change SIM Only"},{value:"change-location",label:"Change Location Only"},{value:"backup-only",label:"Backup Only"},{value:"backup",label:"Backup & Change"},{value:"get-list",label:"Get Backup List"},{value:"restore",label:"Restore"},{value:"set-proxy",label:"Set Proxy"},{value:"clear-proxy",label:"Clear Proxy"},{value:"set-socks",label:"Set SOCKS5"},{value:"clear-socks",label:"Clear SOCKS5"},{value:"get-carrier",label:"Get Carriers"},{value:"back",label:"← Quay lại"}]});if(n(T))o("Đã hủy thao tác."),process.exit(0);switch(T){case"test":await YT();break;case"change":await $D();break;case"change-sim":await HD();break;case"change-location":await TD();break;case"backup-only":await DD();break;case"backup":await LD();break;case"get-list":await pD();break;case"restore":await mD();break;case"set-proxy":await eD();break;case"clear-proxy":await aD();break;case"set-socks":await lD();break;case"clear-socks":await iD();break;case"get-carrier":await nD();break;case"back":H=!1;break}}}async function rD(){let H=await D$({message:"Dev Menu:",options:[{value:"michanger",label:"MiChanger"},{value:"move",label:"Di chuyển chuột"},{value:"control-click",label:"Control Click"},{value:"control-get-text",label:"Control Get Text"},{value:"au3info",label:"Run Au3Info"},{value:"back",label:"← Quay lại"}]});if(n(H))o("Đã hủy thao tác."),process.exit(0);switch(H){case"michanger":await oD();break;case"move":await QT();break;case"control-click":await yT();break;case"control-get-text":await wT();break;case"au3info":zT();break;case"back":break}}async function XD(){let H=!0;while(H){let T=await D$({message:"Chọn tùy chọn:",options:[{value:"dev",label:"Dev"},{value:"exit",label:"Thoát"}]});if(n(T))o("Đã hủy thao tác."),process.exit(0);switch(T){case"dev":await rD();break;case"exit":H=!1;break}}}async function dD(){await $$.init(),await XD(),mH("Tạm biệt!")}dD().catch(console.error);
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "start-nhqydlsh",
3
+ "version": "0.0.12",
4
+ "module": "src/index.ts",
5
+ "type": "module",
6
+ "private": false,
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "devDependencies": {
11
+ "@biomejs/biome": "^2.3.11",
12
+ "@types/node": "^25.0.8"
13
+ },
14
+ "peerDependencies": {
15
+ "typescript": "^5"
16
+ },
17
+ "bin": {
18
+ "nhqydlsh": "dist/index.js"
19
+ },
20
+ "scripts": {
21
+ "dev": "bun run src/index.ts",
22
+ "build": "powershell -Command \"Remove-Item -Path 'dist' -Recurse -Force -ErrorAction SilentlyContinue\" && bun build --minify --outdir=dist src/index.ts --target node && powershell -Command \"Copy-Item -Path 'src/dlls' -Destination 'dist/dlls' -Recurse -Force\"",
23
+ "lint": "biome check .",
24
+ "lint:fix": "biome check --write .",
25
+ "format": "biome format --write .",
26
+ "typecheck": "bunx tsc --project tsconfig.json",
27
+ "prepublishOnly": "bun run build",
28
+ "publish:patch": "npm version patch --no-git-tag-version && npm publish --access public"
29
+ },
30
+ "dependencies": {
31
+ "@clack/prompts": "^0.11.0",
32
+ "koffi": "^2.15.0"
33
+ }
34
+ }