gemit-cli 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-secure/aiPrompts.js +1 -1
- package/dist-secure/cli-version.js +1 -1
- package/dist-secure/commands/add.js +1 -1
- package/dist-secure/commands/branch.js +1 -1
- package/dist-secure/commands/changelog.js +1 -1
- package/dist-secure/commands/commit.js +1 -1
- package/dist-secure/commands/config.js +1 -1
- package/dist-secure/commands/ignore.js +1 -1
- package/dist-secure/commands/log.js +1 -1
- package/dist-secure/commands/pr.js +1 -1
- package/dist-secure/commands/prompts.js +1 -1
- package/dist-secure/commands/release.js +1 -1
- package/dist-secure/commands/review.js +1 -1
- package/dist-secure/commands/squash.js +1 -1
- package/dist-secure/commands/stash.js +1 -1
- package/dist-secure/commands/undo.js +1 -1
- package/dist-secure/config.js +1 -1
- package/dist-secure/git.js +1 -1
- package/dist-secure/index.js +1 -1
- package/dist-secure/llm.js +1 -1
- package/dist-secure/prompts.js +1 -1
- package/dist-secure/ui.js +1 -1
- package/dist-secure/update.js +1 -1
- package/package.json +1 -1
package/dist-secure/prompts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1262c7,_0x31b310){const _0x3ec5aa=_0x9362,_0x535a70=_0x1262c7();while(!![]){try{const _0x3f3654=parseInt(_0x3ec5aa(0xe8))/0x1+-parseInt(_0x3ec5aa(0xce))/0x2*(parseInt(_0x3ec5aa(0xd5))/0x3)+-parseInt(_0x3ec5aa(0xcc))/0x4*(parseInt(_0x3ec5aa(0x8b))/0x5)+-parseInt(_0x3ec5aa(0xca))/0x6*(parseInt(_0x3ec5aa(0xcb))/0x7)+-parseInt(_0x3ec5aa(0xa6))/0x8*(parseInt(_0x3ec5aa(0xcd))/0x9)+parseInt(_0x3ec5aa(0xe1))/0xa+parseInt(_0x3ec5aa(0x96))/0xb;if(_0x3f3654===_0x31b310)break;else _0x535a70['push'](_0x535a70['shift']());}catch(_0x2d927b){_0x535a70['push'](_0x535a70['shift']());}}}(_0x4fc0,0xeefc5));const _0x20a65b=(function(){let _0x1f210a=!![];return function(_0x49adf0,_0x1509c0){const _0x2ba0d8=_0x1f210a?function(){const _0x3017af=_0x9362;if(_0x1509c0){const _0x383796=_0x1509c0[_0x3017af(0xdc)](_0x49adf0,arguments);return _0x1509c0=null,_0x383796;}}:function(){};return _0x1f210a=![],_0x2ba0d8;};}()),_0xef4d8b=_0x20a65b(this,function(){const _0x53de50=_0x9362,_0x2da354={'zGLNr':_0x53de50(0x9e)+_0x53de50(0xd9)};return _0xef4d8b[_0x53de50(0xdf)]()[_0x53de50(0xa0)](_0x2da354[_0x53de50(0xa3)])['toString']()[_0x53de50(0x8c)+_0x53de50(0xdd)](_0xef4d8b)[_0x53de50(0xa0)](_0x53de50(0x9e)+_0x53de50(0xd9));});_0xef4d8b();import{createInterface}from'readline/promises';function _0x9362(_0x1592e5,_0x1a5c3a){_0x1592e5=_0x1592e5-0x8b;const _0x4ded6a=_0x4fc0();let _0xef4d8b=_0x4ded6a[_0x1592e5];return _0xef4d8b;}import{stdin as _0x439cad,stdout as _0x46250e}from'process';function _0x4fc0(){const _0x4217a9=['PZGqe','\x0a\x20\x20','defaultY','AYOlG','RRgoP','ulJzh','green','zIQtf','RcahF','1946034NoDsIJ','7OZssIk','6516228UXgacV','747isCBjU','940108KQZECk','red','jBQDQ','NFpeF','stener','data','LKllq','6xHzZNY','removeLi','\x1b[J','XKeRC','+)+$','toLowerC','VWWYH','apply','tor','close','toString','utf8','2648400xtnQFn','ase','lnZQc','replace','qCNbc','\x20\x20\x20\x20','oELkU','1369554pQoSUV','5nHEjUz','construc','xsAWU','XoJgP','setEncod','fRNpH','\x1b[B','stdin','ZwKfN','LafrJ','qhXCE','33370876JJXgWH','Ektoo','ZHlaM','MdeDE','JGhYF','KpBrV','stdout','dim','(((.+)+)','\x0d\x1b[2K','search','YQibf','question','zGLNr','oVFuQ','↑↓\x20·\x20Ent','76696uFjvGb','hlblM','EXYeQ','dGTHV','trim','bold','SSCHL','pause','QoyIq','\x1b[C','ofjIl','wdOYk','RlLTe','cyan','write','Yes','VUIaU','gray','EnRiQ','then','exit','\x1b[D','ssUnp','JOifN','qOPoy','nxjUv','isTTY'];_0x4fc0=function(){return _0x4217a9;};return _0x4fc0();}import{style,ui}from'./ui.js';const OPTION_LINES=0x3,PRE_OPTION_LINES=0x2;function renderOptions(_0x156a7f,_0x507248){const _0x3fa7df=_0x9362,_0x391842={'hlblM':function(_0x29e395,_0x46bfd5,_0xe9f3cd,_0x11b0a1){return _0x29e395(_0x46bfd5,_0xe9f3cd,_0x11b0a1);},'SSCHL':function(_0x23e0a2,_0x53e0cd,_0x5566f4){return _0x23e0a2(_0x53e0cd,_0x5566f4);},'qhXCE':_0x3fa7df(0xb5),'EnRiQ':function(_0x3e1cb4,_0x14c87b,_0x35b827,_0x3836da){return _0x3e1cb4(_0x14c87b,_0x35b827,_0x3836da);},'xsAWU':function(_0x8fbe8c,_0x31d3ad,_0x203534){return _0x8fbe8c(_0x31d3ad,_0x203534);},'VWWYH':function(_0x380ce9,_0x5b65aa,_0xb4676b){return _0x380ce9(_0x5b65aa,_0xb4676b);}},_0x30b562=_0x156a7f?_0x3fa7df(0xe6)+_0x391842[_0x3fa7df(0xa7)](style,'●',ui[_0x3fa7df(0xb3)],ui[_0x3fa7df(0xab)])+'\x20'+_0x391842[_0x3fa7df(0xa7)](style,_0x3fa7df(0xb5),ui[_0x3fa7df(0xb3)],ui[_0x3fa7df(0xab)]):'\x20\x20\x20\x20'+style('○',ui[_0x3fa7df(0xb7)])+'\x20\x20'+_0x391842[_0x3fa7df(0xac)](style,_0x391842[_0x3fa7df(0x95)],ui[_0x3fa7df(0xb7)]),_0x4c0bd1=!_0x156a7f?_0x3fa7df(0xe6)+_0x391842[_0x3fa7df(0xb8)](style,'●',ui[_0x3fa7df(0xb3)],ui['bold'])+'\x20'+style('No',ui[_0x3fa7df(0xb3)],ui['bold']):'\x20\x20\x20\x20'+_0x391842[_0x3fa7df(0x8d)](style,'○',ui[_0x3fa7df(0xb7)])+'\x20\x20'+_0x391842[_0x3fa7df(0xdb)](style,'No',ui[_0x3fa7df(0xb7)]);_0x507248&&_0x46250e['write']('\x1b['+OPTION_LINES+'A'),_0x46250e[_0x3fa7df(0xb4)](_0x3fa7df(0x9f)+_0x30b562+'\x0a'),_0x46250e[_0x3fa7df(0xb4)](_0x3fa7df(0x9f)+_0x4c0bd1+'\x0a'),_0x46250e[_0x3fa7df(0xb4)]('\x0d\x1b[2K\x0a');}export function askConfirmation(_0x407569,_0xf2ef81={}){const _0x1fae5c=_0x9362,_0x5b3f9e={'dGTHV':function(_0x245184,_0x52131d,_0x1e61dd){return _0x245184(_0x52131d,_0x1e61dd);},'ofjIl':function(_0x5d1f63,_0x359897){return _0x5d1f63(_0x359897);},'EXYeQ':function(_0x30bde5,_0x1835d3){return _0x30bde5===_0x1835d3;},'RcahF':'data','nxjUv':function(_0x3e082a,_0x11aa20,_0x161ba3,_0x27651d){return _0x3e082a(_0x11aa20,_0x161ba3,_0x27651d);},'ulJzh':function(_0x38c99a,_0x2f9570,_0x171f80,_0x45b19a){return _0x38c99a(_0x2f9570,_0x171f80,_0x45b19a);},'XoJgP':function(_0x56cc4a,_0x246d78){return _0x56cc4a(_0x246d78);},'PZGqe':'\x1b[A','RlLTe':function(_0x201925,_0x4fd963){return _0x201925===_0x4fd963;},'zIQtf':_0x1fae5c(0x91),'LafrJ':function(_0x443bf1,_0x380706,_0x5f3319){return _0x443bf1(_0x380706,_0x5f3319);},'jBQDQ':function(_0x348259,_0x55bd72){return _0x348259===_0x55bd72;},'lnZQc':function(_0xf34546,_0x2c773f){return _0xf34546===_0x2c773f;},'DdYTV':function(_0xbfc811,_0x3080c4){return _0xbfc811!==_0x3080c4;},'DTUhu':_0x1fae5c(0xa5)+'er','MdeDE':_0x1fae5c(0xe0),'LKllq':_0x1fae5c(0x90)},_0xdf882c=_0x407569[_0x1fae5c(0xe4)](/\s*\(.*?\)\s*:?\s*$/,'')['replace'](/:\s*$/,'')[_0x1fae5c(0xaa)]();if(!process[_0x1fae5c(0x92)][_0x1fae5c(0xc0)]||!process[_0x1fae5c(0x9c)][_0x1fae5c(0xc0)]){if(_0x5b3f9e['DdYTV'](_0x5b3f9e[_0x1fae5c(0xd4)],_0x1fae5c(0x90))){_0x3846b8=![],_0x5b3f9e[_0x1fae5c(0xa9)](_0x2672ff,_0x1dedb1,!![]);return;}else return new Promise(_0x2fd01c=>{const _0xc91f6=_0x1fae5c,_0x4c4349=_0x5b3f9e['ofjIl'](createInterface,{'input':_0x439cad,'output':_0x46250e});_0x4c4349[_0xc91f6(0xa2)](_0x407569)[_0xc91f6(0xb9)](_0x15baef=>{const _0x23cac5=_0xc91f6;_0x4c4349[_0x23cac5(0xde)]();const _0x449c27=_0x15baef[_0x23cac5(0xaa)]()[_0x23cac5(0xda)+_0x23cac5(0xe2)]();_0x5b3f9e[_0x23cac5(0xb0)](_0x2fd01c,_0x449c27?_0x5b3f9e[_0x23cac5(0xa8)](_0x449c27,'y'):Boolean(_0xf2ef81[_0x23cac5(0xc3)+'es']));});});}return new Promise(_0x4beabc=>{const _0x5f5c7a=_0x1fae5c,_0xb6fdeb={'VIpkB':_0x5b3f9e[_0x5f5c7a(0xc9)],'dPdwo':function(_0x10dd0b,_0x4914c4,_0x524942,_0x29c145){const _0x414205=_0x5f5c7a;return _0x5b3f9e[_0x414205(0xbf)](_0x10dd0b,_0x4914c4,_0x524942,_0x29c145);},'wdOYk':function(_0x17ff9e,_0x57e65f,_0x434d65,_0x53ce6b){const _0x12ef7f=_0x5f5c7a;return _0x5b3f9e[_0x12ef7f(0xc6)](_0x17ff9e,_0x57e65f,_0x434d65,_0x53ce6b);},'RRgoP':function(_0x1f2274,_0xc0042,_0x278bbd,_0x6889e0){return _0x1f2274(_0xc0042,_0x278bbd,_0x6889e0);},'QoyIq':function(_0x141016,_0x2929bb){return _0x141016+_0x2929bb;},'qOPoy':function(_0x4847e1,_0x3269a9,_0x28be03){const _0x499ae2=_0x5f5c7a;return _0x5b3f9e[_0x499ae2(0xa9)](_0x4847e1,_0x3269a9,_0x28be03);},'VUIaU':function(_0x56f87a,_0x360034,_0x23350a){return _0x5b3f9e['dGTHV'](_0x56f87a,_0x360034,_0x23350a);},'KpBrV':function(_0x37ee00,_0x3d2a69){const _0x4ae989=_0x5f5c7a;return _0x5b3f9e[_0x4ae989(0x8e)](_0x37ee00,_0x3d2a69);},'AYOlG':function(_0x4506fe,_0x190151){const _0x31164e=_0x5f5c7a;return _0x5b3f9e[_0x31164e(0xb0)](_0x4506fe,_0x190151);},'oVFuQ':function(_0x526bc9,_0xc2848d){return _0x5b3f9e['EXYeQ'](_0x526bc9,_0xc2848d);},'CLoQi':_0x5b3f9e[_0x5f5c7a(0xc1)],'Ektoo':function(_0x50a66f,_0x546d69){const _0xf5b0ae=_0x5f5c7a;return _0x5b3f9e[_0xf5b0ae(0xb2)](_0x50a66f,_0x546d69);},'ZwKfN':function(_0xf1bdd8,_0x553be3,_0xc1f305){return _0xf1bdd8(_0x553be3,_0xc1f305);},'CCPCr':_0x5b3f9e[_0x5f5c7a(0xc8)],'YQibf':_0x5f5c7a(0xaf),'XKeRC':function(_0x4c75bd,_0x2eeb80,_0x5aaa7a){const _0xb702b0=_0x5f5c7a;return _0x5b3f9e[_0xb702b0(0x94)](_0x4c75bd,_0x2eeb80,_0x5aaa7a);},'oELkU':function(_0x4dfd5f,_0x49030e){const _0x2ab656=_0x5f5c7a;return _0x5b3f9e[_0x2ab656(0xd0)](_0x4dfd5f,_0x49030e);},'OMbuK':function(_0x37a069,_0x45d645){const _0x46db57=_0x5f5c7a;return _0x5b3f9e[_0x46db57(0xe3)](_0x37a069,_0x45d645);},'JGhYF':function(_0x488532,_0x44b2ca){return _0x488532===_0x44b2ca;},'qCNbc':function(_0x475fef,_0x57ffb5){const _0x2cdc48=_0x5f5c7a;return _0x5b3f9e[_0x2cdc48(0xb0)](_0x475fef,_0x57ffb5);}};let _0x3df754=_0x5b3f9e['DdYTV'](_0xf2ef81[_0x5f5c7a(0xc3)+'es'],![]);_0x46250e[_0x5f5c7a(0xb4)](_0x5f5c7a(0xc2)+style('?',ui['yellow'],ui[_0x5f5c7a(0xab)])+'\x20'+_0x5b3f9e['LafrJ'](style,_0xdf882c,ui['bold'])+'\x20\x20'+_0x5b3f9e[_0x5f5c7a(0xc6)](style,_0x5b3f9e['DTUhu'],ui[_0x5f5c7a(0xb7)],ui[_0x5f5c7a(0x9d)])+'\x0a'),_0x46250e[_0x5f5c7a(0xb4)]('\x0a'),renderOptions(_0x3df754,![]),process['stdin']['setRawMo'+'de'](!![]),process[_0x5f5c7a(0x92)]['resume'](),process[_0x5f5c7a(0x92)][_0x5f5c7a(0x8f)+'ing'](_0x5b3f9e[_0x5f5c7a(0x99)]);function _0x265d53(_0x4c2676){const _0x3d4664=_0x5f5c7a;process[_0x3d4664(0x92)]['setRawMo'+'de'](![]),process['stdin'][_0x3d4664(0xad)](),process['stdin'][_0x3d4664(0xd6)+_0x3d4664(0xd2)](_0xb6fdeb['VIpkB'],_0x4f6273);const _0x22dbeb=_0x4c2676?style('●',ui[_0x3d4664(0xc7)],ui['bold'])+'\x20'+_0xb6fdeb['dPdwo'](style,'Yes',ui['green'],ui[_0x3d4664(0xab)]):_0xb6fdeb[_0x3d4664(0xb1)](style,'●',ui[_0x3d4664(0xcf)],ui['bold'])+'\x20'+_0xb6fdeb[_0x3d4664(0xc5)](style,'No',ui[_0x3d4664(0xcf)],ui[_0x3d4664(0xab)]);_0x46250e[_0x3d4664(0xb4)]('\x1b['+_0xb6fdeb[_0x3d4664(0xae)](OPTION_LINES,PRE_OPTION_LINES)+'A'),_0x46250e['write']('\x0d\x1b[2K\x20\x20'+_0xb6fdeb[_0x3d4664(0xbe)](style,'✓',ui[_0x3d4664(0xc7)])+'\x20'+_0xb6fdeb[_0x3d4664(0xb6)](style,_0xdf882c,ui[_0x3d4664(0x9d)])+'\x20\x20'+_0x22dbeb+'\x0a'),_0x46250e[_0x3d4664(0xb4)]('\x0a'),_0x46250e[_0x3d4664(0xb4)](_0x3d4664(0xd7)),_0xb6fdeb['KpBrV'](_0x4beabc,_0x4c2676);}function _0x4f6273(_0x551227){const _0x485bdd=_0x5f5c7a;_0xb6fdeb[_0x485bdd(0xa4)](_0x551227,'\x03')&&(_0x46250e[_0x485bdd(0xb4)]('\x0a'),process[_0x485bdd(0xba)](0x82));if(_0xb6fdeb[_0x485bdd(0xa4)](_0x551227,_0xb6fdeb['CLoQi'])||_0xb6fdeb[_0x485bdd(0x97)](_0x551227,_0x485bdd(0xbb))){_0x3df754=!![],_0xb6fdeb[_0x485bdd(0x93)](renderOptions,_0x3df754,!![]);return;}if(_0xb6fdeb[_0x485bdd(0x97)](_0x551227,_0xb6fdeb['CCPCr'])||_0xb6fdeb[_0x485bdd(0x97)](_0x551227,_0xb6fdeb[_0x485bdd(0xa1)])){_0x3df754=![],_0xb6fdeb[_0x485bdd(0xd8)](renderOptions,_0x3df754,!![]);return;}if(_0xb6fdeb['oVFuQ'](_0x551227,'\x20')){_0x3df754=!_0x3df754,renderOptions(_0x3df754,!![]);return;}if(_0x551227==='y'||_0xb6fdeb[_0x485bdd(0xe7)](_0x551227,'Y')){if(_0xb6fdeb[_0x485bdd(0xe7)](_0x485bdd(0x98),_0x485bdd(0xd1))){_0xb6fdeb[_0x485bdd(0xc4)](_0x38a508,!![]);return;}else{_0x265d53(!![]);return;}}if(_0x551227==='n'||_0xb6fdeb['OMbuK'](_0x551227,'N')){_0xb6fdeb[_0x485bdd(0x9b)](_0x265d53,![]);return;}if(_0xb6fdeb[_0x485bdd(0x9a)](_0x551227,'\x0d')||_0x551227==='\x0a'){_0xb6fdeb[_0x485bdd(0xe5)](_0x265d53,_0x3df754);return;}}process[_0x5f5c7a(0x92)]['on'](_0x5f5c7a(0xd3),_0x4f6273);});}export async function askInput(_0x5da937){const _0x3969a8=_0x9362,_0x980c44={'JOifN':function(_0x553d4b,_0x434a56){return _0x553d4b(_0x434a56);}},_0x1cf6be=_0x980c44[_0x3969a8(0xbd)](createInterface,{'input':_0x439cad,'output':_0x46250e}),_0x1c633e=await _0x1cf6be['question'](_0x5da937);return _0x1cf6be[_0x3969a8(0xde)](),_0x1c633e['trim']();}export async function askEditableInput(_0x4c4db9,_0x39e9c6){const _0x539be4=_0x9362,_0x45f765={'ssUnp':function(_0x17e947,_0x59d81a){return _0x17e947(_0x59d81a);}},_0x2bc17b=_0x45f765[_0x539be4(0xbc)](createInterface,{'input':_0x439cad,'output':_0x46250e}),_0x44ea3e=await _0x2bc17b[_0x539be4(0xa2)](_0x4c4db9);_0x2bc17b[_0x539be4(0xde)]();const _0xee4494=_0x44ea3e[_0x539be4(0xaa)]();if(!_0xee4494)return _0x39e9c6;return _0xee4494;}
|
|
1
|
+
(function(_0x2c138f,_0x4f8ff6){const _0x234be3=_0x2e87,_0x4007a0=_0x2c138f();while(!![]){try{const _0x41f99c=-parseInt(_0x234be3(0xa9))/0x1*(-parseInt(_0x234be3(0xb3))/0x2)+-parseInt(_0x234be3(0xba))/0x3*(-parseInt(_0x234be3(0xab))/0x4)+parseInt(_0x234be3(0xb7))/0x5*(-parseInt(_0x234be3(0xcb))/0x6)+-parseInt(_0x234be3(0xcf))/0x7*(parseInt(_0x234be3(0xf3))/0x8)+parseInt(_0x234be3(0xad))/0x9*(-parseInt(_0x234be3(0xc4))/0xa)+-parseInt(_0x234be3(0xdc))/0xb*(parseInt(_0x234be3(0xf8))/0xc)+parseInt(_0x234be3(0xda))/0xd;if(_0x41f99c===_0x4f8ff6)break;else _0x4007a0['push'](_0x4007a0['shift']());}catch(_0x31d556){_0x4007a0['push'](_0x4007a0['shift']());}}}(_0x359c,0xc4f58));const _0x182078=(function(){let _0x325f14=!![];return function(_0xf04525,_0x356ab8){const _0x4a71ae=_0x325f14?function(){const _0x38f094=_0x2e87;if(_0x356ab8){const _0x2bc95b=_0x356ab8[_0x38f094(0xe4)](_0xf04525,arguments);return _0x356ab8=null,_0x2bc95b;}}:function(){};return _0x325f14=![],_0x4a71ae;};}()),_0x5ec9bc=_0x182078(this,function(){const _0x13228f=_0x2e87,_0x557a59={'XKloA':_0x13228f(0xc7)+_0x13228f(0xae)};return _0x5ec9bc[_0x13228f(0xb4)]()[_0x13228f(0xc8)](_0x557a59[_0x13228f(0xc2)])['toString']()[_0x13228f(0xe0)+'tor'](_0x5ec9bc)['search'](_0x557a59[_0x13228f(0xc2)]);});_0x5ec9bc();function _0x2e87(_0x117baf,_0x452eed){_0x117baf=_0x117baf-0xa7;const _0x165aa0=_0x359c();let _0x5ec9bc=_0x165aa0[_0x117baf];return _0x5ec9bc;}import{createInterface}from'readline/promises';import{stdin as _0x209a15,stdout as _0x605f9a}from'process';import{style,ui}from'./ui.js';const OPTION_LINES=0x3,PRE_OPTION_LINES=0x2;function renderOptions(_0x5c33c0,_0x2d261b){const _0x4e5a51=_0x2e87,_0x47f4b0={'lsnCl':function(_0x5b4a63,_0x5a0db1,_0x2cde24,_0x158a31){return _0x5b4a63(_0x5a0db1,_0x2cde24,_0x158a31);},'ivIwZ':_0x4e5a51(0xf0),'glkTC':function(_0x11cc3a,_0x43aeed,_0x3aa01b){return _0x11cc3a(_0x43aeed,_0x3aa01b);},'YavWz':function(_0x41960b,_0x5938a7,_0x3a8ee0,_0x5dd8ba){return _0x41960b(_0x5938a7,_0x3a8ee0,_0x5dd8ba);}},_0x5ee4ee=_0x5c33c0?'\x20\x20\x20\x20'+_0x47f4b0[_0x4e5a51(0xf2)](style,'●',ui[_0x4e5a51(0xb0)],ui[_0x4e5a51(0xf5)])+'\x20'+style(_0x47f4b0[_0x4e5a51(0xcd)],ui[_0x4e5a51(0xb0)],ui['bold']):_0x4e5a51(0xb5)+_0x47f4b0[_0x4e5a51(0xbd)](style,'○',ui['gray'])+'\x20\x20'+style(_0x47f4b0[_0x4e5a51(0xcd)],ui['gray']),_0x487cbc=!_0x5c33c0?_0x4e5a51(0xb5)+_0x47f4b0[_0x4e5a51(0xd3)](style,'●',ui[_0x4e5a51(0xb0)],ui['bold'])+'\x20'+style('No',ui[_0x4e5a51(0xb0)],ui['bold']):_0x4e5a51(0xb5)+style('○',ui[_0x4e5a51(0xaf)])+'\x20\x20'+_0x47f4b0[_0x4e5a51(0xbd)](style,'No',ui[_0x4e5a51(0xaf)]);_0x2d261b&&_0x605f9a[_0x4e5a51(0xdd)]('\x1b['+OPTION_LINES+'A'),_0x605f9a[_0x4e5a51(0xdd)](_0x4e5a51(0xdb)+_0x5ee4ee+'\x0a'),_0x605f9a[_0x4e5a51(0xdd)]('\x0d\x1b[2K'+_0x487cbc+'\x0a'),_0x605f9a[_0x4e5a51(0xdd)](_0x4e5a51(0xea));}export function askConfirmation(_0x25e662,_0x5ce514={}){const _0x5a5e02=_0x2e87,_0x393915={'jCZfC':function(_0x59df3d,_0x274313){return _0x59df3d===_0x274313;},'TuSfX':function(_0x38eb06,_0x9b661b){return _0x38eb06(_0x9b661b);},'ksEPR':function(_0x525cc7,_0x1501cc){return _0x525cc7(_0x1501cc);},'MBLRm':_0x5a5e02(0xb8),'ZdeKw':function(_0x54525b,_0x2385d2,_0x47507b,_0x8f189f){return _0x54525b(_0x2385d2,_0x47507b,_0x8f189f);},'Uxwsv':function(_0xc69614,_0x120312,_0x4e1d2d,_0x1a212f){return _0xc69614(_0x120312,_0x4e1d2d,_0x1a212f);},'DECXT':function(_0xee3233,_0x47150f){return _0xee3233+_0x47150f;},'hiYcB':function(_0x44519e,_0x4fac26,_0x39bf77){return _0x44519e(_0x4fac26,_0x39bf77);},'prkCd':function(_0x2b43dc,_0xbc823e){return _0x2b43dc===_0xbc823e;},'euoys':_0x5a5e02(0xeb),'SGBbL':function(_0x7b0297,_0x56d1a4){return _0x7b0297!==_0x56d1a4;},'ASzZE':'lMISa','ONfoe':function(_0x24176a,_0x28b2b7){return _0x24176a===_0x28b2b7;},'tpxYz':_0x5a5e02(0xf4),'znIBB':_0x5a5e02(0xbc),'TQbpq':function(_0x5b8ac7,_0xaacf17){return _0x5b8ac7===_0xaacf17;},'Gtedb':function(_0x44d2a8,_0x3ba8f3){return _0x44d2a8!==_0x3ba8f3;},'PINvi':_0x5a5e02(0xbf),'mxLtM':function(_0x4ded5f,_0x4beb44,_0x3e7c47){return _0x4ded5f(_0x4beb44,_0x3e7c47);},'WkySb':function(_0x13d232,_0xfd4b9d){return _0x13d232===_0xfd4b9d;},'gGESr':function(_0xdfa889,_0x500cc1){return _0xdfa889(_0x500cc1);},'OEPwL':function(_0x5dc82f,_0x1be4c2){return _0x5dc82f===_0x1be4c2;},'NTTbI':'(((.+)+)'+'+)+$','DpBBs':function(_0x436d29,_0x470110){return _0x436d29!==_0x470110;},'wVdGv':'↑↓\x20·\x20Ent'+'er','NLDsy':function(_0x1add58,_0x49dc93,_0x12a851){return _0x1add58(_0x49dc93,_0x12a851);},'mdzht':'utf8'},_0x2bf1c9=_0x25e662[_0x5a5e02(0xb6)](/\s*\(.*?\)\s*:?\s*$/,'')[_0x5a5e02(0xb6)](/:\s*$/,'')[_0x5a5e02(0xb1)]();if(!process[_0x5a5e02(0xc9)][_0x5a5e02(0xd4)]||!process['stdout'][_0x5a5e02(0xd4)])return new Promise(_0x5d8a7f=>{const _0x595623=_0x5a5e02,_0x3b6d79={'nXzjV':function(_0x4a2d75,_0x55c269){return _0x393915['jCZfC'](_0x4a2d75,_0x55c269);},'SNfDn':function(_0x883fe6,_0x21a792){return _0x393915['TuSfX'](_0x883fe6,_0x21a792);}},_0xd61b97=_0x393915['ksEPR'](createInterface,{'input':_0x209a15,'output':_0x605f9a});_0xd61b97['question'](_0x25e662)[_0x595623(0xd9)](_0x5c84ba=>{const _0x1d7659=_0x595623;_0xd61b97[_0x1d7659(0xac)]();const _0x257a0a=_0x5c84ba[_0x1d7659(0xb1)]()[_0x1d7659(0xb2)+_0x1d7659(0xce)]();_0x5d8a7f(_0x257a0a?_0x3b6d79['nXzjV'](_0x257a0a,'y'):_0x3b6d79[_0x1d7659(0xd8)](Boolean,_0x5ce514[_0x1d7659(0xd2)+'es']));});});return new Promise(_0x4176f8=>{const _0x1b9bc0=_0x5a5e02,_0x3792e4={'zSxuM':_0x393915[_0x1b9bc0(0xc0)]};let _0x454a64=_0x393915[_0x1b9bc0(0xe7)](_0x5ce514[_0x1b9bc0(0xd2)+'es'],![]);_0x605f9a[_0x1b9bc0(0xdd)](_0x1b9bc0(0xaa)+style('?',ui[_0x1b9bc0(0xfa)],ui[_0x1b9bc0(0xf5)])+'\x20'+style(_0x2bf1c9,ui[_0x1b9bc0(0xf5)])+'\x20\x20'+_0x393915[_0x1b9bc0(0xe8)](style,_0x393915['wVdGv'],ui[_0x1b9bc0(0xaf)],ui[_0x1b9bc0(0xf1)])+'\x0a'),_0x605f9a[_0x1b9bc0(0xdd)]('\x0a'),_0x393915['NLDsy'](renderOptions,_0x454a64,![]),process['stdin'][_0x1b9bc0(0xd6)+'de'](!![]),process['stdin'][_0x1b9bc0(0xed)](),process[_0x1b9bc0(0xc9)][_0x1b9bc0(0xe9)+_0x1b9bc0(0xa8)](_0x393915['mdzht']);function _0x5d94dd(_0x47a0e5){const _0x45f57e=_0x1b9bc0;process[_0x45f57e(0xc9)]['setRawMo'+'de'](![]),process['stdin']['pause'](),process[_0x45f57e(0xc9)][_0x45f57e(0xd0)+_0x45f57e(0xe6)](_0x393915['MBLRm'],_0x50439f);const _0x3325d0=_0x47a0e5?_0x393915[_0x45f57e(0xe8)](style,'●',ui[_0x45f57e(0xd5)],ui[_0x45f57e(0xf5)])+'\x20'+style(_0x45f57e(0xf0),ui['green'],ui['bold']):_0x393915[_0x45f57e(0xe8)](style,'●',ui[_0x45f57e(0xc5)],ui[_0x45f57e(0xf5)])+'\x20'+_0x393915[_0x45f57e(0xbb)](style,'No',ui[_0x45f57e(0xc5)],ui['bold']);_0x605f9a['write']('\x1b['+_0x393915['DECXT'](OPTION_LINES,PRE_OPTION_LINES)+'A'),_0x605f9a[_0x45f57e(0xdd)](_0x45f57e(0xa7)+_0x393915['hiYcB'](style,'✓',ui[_0x45f57e(0xd5)])+'\x20'+style(_0x2bf1c9,ui[_0x45f57e(0xf1)])+'\x20\x20'+_0x3325d0+'\x0a'),_0x605f9a[_0x45f57e(0xdd)]('\x0a'),_0x605f9a['write'](_0x45f57e(0xe2)),_0x393915['ksEPR'](_0x4176f8,_0x47a0e5);}function _0x50439f(_0x6966cf){const _0x26c07d=_0x1b9bc0;_0x393915['prkCd'](_0x6966cf,'\x03')&&(_0x605f9a[_0x26c07d(0xdd)]('\x0a'),process['exit'](0x82));if(_0x6966cf===_0x393915['euoys']||_0x6966cf===_0x26c07d(0xde)){if(_0x393915[_0x26c07d(0xe5)](_0x26c07d(0xbe),_0x393915['ASzZE'])){_0x454a64=!![],renderOptions(_0x454a64,!![]);return;}else{_0x10fe9e(_0xe69781);return;}}if(_0x393915[_0x26c07d(0xe1)](_0x6966cf,_0x393915[_0x26c07d(0xc1)])||_0x6966cf===_0x393915[_0x26c07d(0xc3)]){_0x454a64=![],_0x393915[_0x26c07d(0xca)](renderOptions,_0x454a64,!![]);return;}if(_0x393915[_0x26c07d(0xec)](_0x6966cf,'\x20')){if(_0x393915[_0x26c07d(0xe3)](_0x393915[_0x26c07d(0xee)],'BWkuD'))return _0x3fb176[_0x26c07d(0xb4)]()[_0x26c07d(0xc8)](gXyOpa['zSxuM'])[_0x26c07d(0xb4)]()['construc'+_0x26c07d(0xd1)](_0x23d085)[_0x26c07d(0xc8)](gXyOpa[_0x26c07d(0xf7)]);else{_0x454a64=!_0x454a64,_0x393915[_0x26c07d(0xcc)](renderOptions,_0x454a64,!![]);return;}}if(_0x393915[_0x26c07d(0xf9)](_0x6966cf,'y')||_0x6966cf==='Y'){_0x393915[_0x26c07d(0xd7)](_0x5d94dd,!![]);return;}if(_0x393915['OEPwL'](_0x6966cf,'n')||_0x6966cf==='N'){_0x393915[_0x26c07d(0xd7)](_0x5d94dd,![]);return;}if(_0x6966cf==='\x0d'||_0x393915['TQbpq'](_0x6966cf,'\x0a')){_0x393915[_0x26c07d(0xf6)](_0x5d94dd,_0x454a64);return;}}process['stdin']['on'](_0x393915[_0x1b9bc0(0xdf)],_0x50439f);});}export async function askInput(_0x2a5a2d){const _0x12feea=_0x2e87,_0x13b714={'KJrqK':function(_0x581fd0,_0x43130f){return _0x581fd0(_0x43130f);}},_0x470413=_0x13b714[_0x12feea(0xc6)](createInterface,{'input':_0x209a15,'output':_0x605f9a}),_0x382645=await _0x470413[_0x12feea(0xef)](_0x2a5a2d);return _0x470413[_0x12feea(0xac)](),_0x382645[_0x12feea(0xb1)]();}function _0x359c(){const _0x48ccbc=['defaultY','YavWz','isTTY','green','setRawMo','gGESr','SNfDn','then','25400999WGQJuy','\x0d\x1b[2K','11AfbDcI','write','\x1b[D','MBLRm','construc','ONfoe','\x1b[J','Gtedb','apply','SGBbL','stener','DpBBs','ZdeKw','setEncod','\x0d\x1b[2K\x0a','\x1b[A','TQbpq','resume','PINvi','question','Yes','dim','lsnCl','120sxpKle','\x1b[B','bold','ksEPR','zSxuM','7162356CDEfEk','WkySb','yellow','\x0d\x1b[2K\x20\x20','ing','2rUytBD','\x0a\x20\x20','179412zuVHIc','close','10647UZulqF','+)+$','gray','cyan','trim','toLowerC','1550834FsZfdf','toString','\x20\x20\x20\x20','replace','45XvJTME','data','NWjJV','66eLvjep','Uxwsv','\x1b[C','glkTC','OnRLk','BWkuD','NTTbI','tpxYz','XKloA','znIBB','13420zCQIWZ','red','KJrqK','(((.+)+)','search','stdin','hiYcB','272730AOLJqm','mxLtM','ivIwZ','ase','509243xqTtLr','removeLi','tor'];_0x359c=function(){return _0x48ccbc;};return _0x359c();}export async function askEditableInput(_0xc9f6d7,_0x50313f){const _0x2ddfdf=_0x2e87,_0x584293={'NWjJV':function(_0x744592,_0x15f2f4){return _0x744592(_0x15f2f4);}},_0x39b38c=_0x584293[_0x2ddfdf(0xb9)](createInterface,{'input':_0x209a15,'output':_0x605f9a}),_0x4f4ca6=await _0x39b38c[_0x2ddfdf(0xef)](_0xc9f6d7);_0x39b38c[_0x2ddfdf(0xac)]();const _0x51ab7f=_0x4f4ca6[_0x2ddfdf(0xb1)]();if(!_0x51ab7f)return _0x50313f;return _0x51ab7f;}
|
package/dist-secure/ui.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x1ba354=_0x4b99;(function(_0x4a7085,_0x2c600b){const _0x435ac7=_0x4b99,_0x309202=_0x4a7085();while(!![]){try{const _0x384853=-parseInt(_0x435ac7(0x224))/0x1*(-parseInt(_0x435ac7(0x239))/0x2)+parseInt(_0x435ac7(0x231))/0x3*(-parseInt(_0x435ac7(0x1db))/0x4)+-parseInt(_0x435ac7(0x1ec))/0x5+-parseInt(_0x435ac7(0x1fe))/0x6+parseInt(_0x435ac7(0x21b))/0x7*(parseInt(_0x435ac7(0x248))/0x8)+-parseInt(_0x435ac7(0x203))/0x9*(-parseInt(_0x435ac7(0x1df))/0xa)+parseInt(_0x435ac7(0x222))/0xb*(parseInt(_0x435ac7(0x22f))/0xc);if(_0x384853===_0x2c600b)break;else _0x309202['push'](_0x309202['shift']());}catch(_0x16661f){_0x309202['push'](_0x309202['shift']());}}}(_0x5613,0x5b4ac));const _0x53ecce=(function(){let _0x3325a5=!![];return function(_0x452e1d,_0x2c1175){const _0x562bf5=_0x3325a5?function(){if(_0x2c1175){const _0x24b078=_0x2c1175['apply'](_0x452e1d,arguments);return _0x2c1175=null,_0x24b078;}}:function(){};return _0x3325a5=![],_0x562bf5;};}()),_0xf7c2f6=_0x53ecce(this,function(){const _0x46549c=_0x4b99,_0x258e64={'hzvhP':'(((.+)+)'+'+)+$'};return _0xf7c2f6['toString']()[_0x46549c(0x21d)](_0x46549c(0x1f6)+_0x46549c(0x245))[_0x46549c(0x1fc)]()[_0x46549c(0x1f1)+_0x46549c(0x1e7)](_0xf7c2f6)[_0x46549c(0x21d)](_0x258e64[_0x46549c(0x21f)]);});_0xf7c2f6();export const ui={'reset':'\x1b[0m','bold':_0x1ba354(0x23f),'dim':_0x1ba354(0x1e8),'italic':_0x1ba354(0x1f7),'underline':_0x1ba354(0x236),'cyan':'\x1b[36m','white':_0x1ba354(0x24b),'green':'\x1b[32m','yellow':'\x1b[33m','red':_0x1ba354(0x1ef),'magenta':'\x1b[35m','gray':_0x1ba354(0x232)};export const symbols={'tick':'✓','warn':'⚠','cross':'✗','bullet':'●','dot':'·','arrow':'→','treeItem':'├─','treeLast':'└─','treePipe':'│','h':'─','v':'│','tl':'╭','tr':'╮','bl':'╰','br':'╯'};export function style(_0x3e8dbd,..._0xbe9357){const _0x5b5967=_0x1ba354;return''+_0xbe9357[_0x5b5967(0x1da)]('')+_0x3e8dbd+ui['reset'];}function termWidth(){const _0x2d8136=_0x1ba354;return Math[_0x2d8136(0x230)](0x28,Math['min'](process[_0x2d8136(0x212)][_0x2d8136(0x1f0)]||0x50,0x58));}export function section(_0x1d4051){const _0x2bcb01=_0x1ba354,_0x514b2c={'AmIcv':function(_0x224a54,_0x14e0a8){return _0x224a54-_0x14e0a8;},'Szqno':function(_0x275383){return _0x275383();},'NfAVi':function(_0x452f7a,_0x5d16b4){return _0x452f7a+_0x5d16b4;},'hlqCR':function(_0xd4e1e8,_0x5b23a9,_0x4f903d){return _0xd4e1e8(_0x5b23a9,_0x4f903d);},'fcRxF':function(_0x86f282,_0x3f26df,_0x1a0edd){return _0x86f282(_0x3f26df,_0x1a0edd);}},_0x544d6a='\x20'+_0x1d4051+'\x20',_0x54d6c6=symbols['h'][_0x2bcb01(0x237)](Math[_0x2bcb01(0x230)](0x0,_0x514b2c['AmIcv'](_0x514b2c[_0x2bcb01(0x213)](termWidth)-_0x544d6a[_0x2bcb01(0x238)],0x2)));console[_0x2bcb01(0x1f5)](),console[_0x2bcb01(0x1f5)](_0x514b2c['NfAVi'](_0x514b2c['NfAVi'](_0x514b2c[_0x2bcb01(0x1dd)](style,symbols['tl']+symbols['h'],ui[_0x2bcb01(0x20a)]),_0x514b2c[_0x2bcb01(0x228)](style,_0x544d6a,ui[_0x2bcb01(0x214)])),_0x514b2c[_0x2bcb01(0x228)](style,_0x54d6c6,ui['gray'])));}export function ok(_0x3bf080,_0x1b0a3f){const _0x53f92f=_0x1ba354,_0x4746a7={'FRvsC':function(_0x5a5b74,_0x3e5140,_0x4549b5){return _0x5a5b74(_0x3e5140,_0x4549b5);},'rpMTd':function(_0x3cb60a,_0x1ca652,_0x11d89b,_0x612975){return _0x3cb60a(_0x1ca652,_0x11d89b,_0x612975);}},_0x23acd6=_0x4746a7['FRvsC'](style,symbols[_0x53f92f(0x216)],ui[_0x53f92f(0x201)])+'\x20'+_0x4746a7[_0x53f92f(0x23e)](style,_0x3bf080,ui[_0x53f92f(0x201)],ui[_0x53f92f(0x214)]);return _0x1b0a3f?_0x23acd6+'\x20\x20'+_0x4746a7[_0x53f92f(0x233)](style,_0x1b0a3f,ui[_0x53f92f(0x20a)]):_0x23acd6;}export function warn(_0x1ec6d1,_0x260e40){const _0x2dcefe=_0x1ba354,_0x2347c2={'aNKjE':function(_0x45a778,_0x31f6b8,_0x1dfeb4,_0xa8b4cd){return _0x45a778(_0x31f6b8,_0x1dfeb4,_0xa8b4cd);},'myGqn':function(_0x3c8424,_0x396214,_0x2f9576){return _0x3c8424(_0x396214,_0x2f9576);}},_0x507d6c=style(symbols[_0x2dcefe(0x1ea)],ui['yellow'],ui[_0x2dcefe(0x214)])+'\x20'+_0x2347c2['aNKjE'](style,_0x1ec6d1,ui[_0x2dcefe(0x225)],ui[_0x2dcefe(0x214)]);return _0x260e40?_0x507d6c+'\x20\x20'+_0x2347c2[_0x2dcefe(0x23a)](style,_0x260e40,ui[_0x2dcefe(0x20a)]):_0x507d6c;}export function bad(_0x379bc9,_0x160b5c){const _0x5503fe=_0x1ba354,_0x395d8c={'KItFN':function(_0x4e2ea7,_0x23e1ef,_0xdfdaf9,_0x5e072a){return _0x4e2ea7(_0x23e1ef,_0xdfdaf9,_0x5e072a);}},_0xaa832b=_0x395d8c[_0x5503fe(0x22a)](style,symbols[_0x5503fe(0x247)],ui[_0x5503fe(0x1eb)],ui[_0x5503fe(0x214)])+'\x20'+style(_0x379bc9,ui[_0x5503fe(0x1eb)],ui['bold']);return _0x160b5c?_0xaa832b+'\x20\x20'+style(_0x160b5c,ui['gray']):_0xaa832b;}export function info(_0x24b66c,_0x4a00b4){const _0x2eb0df=_0x1ba354,_0x226aaa={'vqHLz':function(_0x47b8f6,_0x5a3bc5,_0x1839c5){return _0x47b8f6(_0x5a3bc5,_0x1839c5);},'JbjUq':function(_0x536b72,_0x198f4b,_0x33b710){return _0x536b72(_0x198f4b,_0x33b710);}},_0x25c75d=_0x226aaa[_0x2eb0df(0x209)](style,symbols[_0x2eb0df(0x249)],ui['cyan'])+'\x20'+style(_0x24b66c,ui['cyan'],ui[_0x2eb0df(0x214)]);return _0x4a00b4?_0x25c75d+'\x20\x20'+_0x226aaa[_0x2eb0df(0x246)](style,_0x4a00b4,ui[_0x2eb0df(0x20a)]):_0x25c75d;}export function printKeyValues(_0x3e6bdc){const _0x1a3f55=_0x1ba354,_0x303db2={'cBPaw':function(_0x5249d5,_0x54dde1){return _0x5249d5===_0x54dde1;},'wJqiE':function(_0x3a4b7b,_0x5d2f1b){return _0x3a4b7b<_0x5d2f1b;},'gGbHA':function(_0x229657,_0xdff2f3){return _0x229657===_0xdff2f3;},'hbKXj':function(_0x51d67d,_0x4b8f80){return _0x51d67d-_0x4b8f80;},'sKIoj':function(_0x5da2d2,_0x78bb31,_0x291b36){return _0x5da2d2(_0x78bb31,_0x291b36);}};if(_0x303db2[_0x1a3f55(0x1e5)](_0x3e6bdc['length'],0x0))return;const _0x5eeb3c=_0x3e6bdc[_0x1a3f55(0x1f3)]((_0x518b9e,_0x25dc70)=>Math['max'](_0x518b9e,_0x25dc70[_0x1a3f55(0x1f9)][_0x1a3f55(0x238)]),0x0);for(let _0x1e6f14=0x0;_0x303db2['wJqiE'](_0x1e6f14,_0x3e6bdc[_0x1a3f55(0x238)]);_0x1e6f14++){const _0x51ab2a=_0x303db2[_0x1a3f55(0x227)](_0x1e6f14,_0x303db2['hbKXj'](_0x3e6bdc[_0x1a3f55(0x238)],0x1)),_0x53a2f6=_0x303db2[_0x1a3f55(0x23d)](style,_0x51ab2a?symbols[_0x1a3f55(0x1e4)]:symbols[_0x1a3f55(0x1e1)],ui[_0x1a3f55(0x20a)]),_0x2852ec=style(_0x3e6bdc[_0x1e6f14][_0x1a3f55(0x1f9)][_0x1a3f55(0x1d9)](_0x5eeb3c),ui[_0x1a3f55(0x20a)],ui['italic']);console[_0x1a3f55(0x1f5)]('\x20\x20'+_0x53a2f6+'\x20'+_0x2852ec+'\x20\x20'+_0x3e6bdc[_0x1e6f14][_0x1a3f55(0x244)]);}}function _0x4b99(_0x4d7e8c,_0x272c12){_0x4d7e8c=_0x4d7e8c-0x1d9;const _0x3cdaeb=_0x5613();let _0xf7c2f6=_0x3cdaeb[_0x4d7e8c];return _0xf7c2f6;}export function printList(_0x2709dd,_0x50a5f3){const _0x28b8da=_0x1ba354,_0x2c8fba={'xNVIT':function(_0x34b49a,_0x475c87,_0x3db5c9){return _0x34b49a(_0x475c87,_0x3db5c9);},'TmINa':function(_0x23b864,_0x5b7776){return _0x23b864===_0x5b7776;},'cWvvi':_0x28b8da(0x211),'yoZFf':function(_0x589e5f,_0x19df76){return _0x589e5f<_0x19df76;},'zYecK':function(_0xf0de10,_0x54623f){return _0xf0de10===_0x54623f;},'vxsxh':function(_0x1d16a5,_0x1dd171,_0x2fb291){return _0x1d16a5(_0x1dd171,_0x2fb291);},'pBGay':function(_0x38da8e,_0x4f0172,_0x36d22e){return _0x38da8e(_0x4f0172,_0x36d22e);}};console[_0x28b8da(0x1f5)]('\x20\x20'+_0x2c8fba[_0x28b8da(0x20e)](style,_0x2709dd,ui['bold']));if(_0x2c8fba['TmINa'](_0x50a5f3[_0x28b8da(0x238)],0x0)){console[_0x28b8da(0x1f5)]('\x20\x20'+_0x2c8fba[_0x28b8da(0x20e)](style,symbols[_0x28b8da(0x1e4)],ui[_0x28b8da(0x20a)])+'\x20'+style(_0x2c8fba[_0x28b8da(0x1dc)],ui[_0x28b8da(0x20a)],ui[_0x28b8da(0x22e)]));return;}for(let _0x3c6765=0x0;_0x2c8fba[_0x28b8da(0x20b)](_0x3c6765,_0x50a5f3[_0x28b8da(0x238)]);_0x3c6765++){const _0x2bcb57=_0x2c8fba['zYecK'](_0x3c6765,_0x50a5f3['length']-0x1),_0x3cf959=_0x2c8fba['vxsxh'](style,_0x2bcb57?symbols[_0x28b8da(0x1e4)]:symbols['treeItem'],ui[_0x28b8da(0x20a)]);console[_0x28b8da(0x1f5)]('\x20\x20'+_0x3cf959+'\x20'+_0x2c8fba[_0x28b8da(0x210)](style,_0x50a5f3[_0x3c6765],ui[_0x28b8da(0x22b)]));}}export function warnBlock(_0x248f31){const _0x3a46c9=_0x1ba354,_0x2286f9={'ZDgay':function(_0x1f17eb){return _0x1f17eb();},'mxpHQ':function(_0x5373d6,_0x4eba0a){return _0x5373d6-_0x4eba0a;},'KexHq':function(_0x372cb6,_0x1cd13f){return _0x372cb6-_0x1cd13f;},'uOqwb':function(_0x1b67be,_0x1fa0c9){return _0x1b67be+_0x1fa0c9;},'jVakq':function(_0x2f11c3,_0x2be3c5,_0x3d894c,_0xf48a60){return _0x2f11c3(_0x2be3c5,_0x3d894c,_0xf48a60);},'GaWkn':function(_0x45102e,_0x49e030,_0x41e8c3){return _0x45102e(_0x49e030,_0x41e8c3);},'iCPdO':function(_0x5a6d29,_0x27ef9a){return _0x5a6d29+_0x27ef9a;},'asOQP':function(_0x8a15d9,_0x2c713e,_0x3e28a7){return _0x8a15d9(_0x2c713e,_0x3e28a7);}},_0x323cb8=_0x2286f9['ZDgay'](termWidth),_0x2a42cc=_0x3a46c9(0x20f)+'\x20',_0x2b8410=symbols['h']['repeat'](Math['max'](0x0,_0x2286f9[_0x3a46c9(0x21a)](_0x2286f9[_0x3a46c9(0x1f4)](_0x323cb8,_0x2a42cc[_0x3a46c9(0x238)]),0x2))),_0x1c992b=symbols['h'][_0x3a46c9(0x237)](Math[_0x3a46c9(0x230)](0x0,_0x323cb8-0x2));console[_0x3a46c9(0x1ea)](),console[_0x3a46c9(0x1ea)](_0x2286f9[_0x3a46c9(0x24a)](_0x2286f9[_0x3a46c9(0x24a)](style(_0x2286f9[_0x3a46c9(0x24a)](symbols['tl'],symbols['h']),ui[_0x3a46c9(0x225)]),_0x2286f9[_0x3a46c9(0x241)](style,_0x2a42cc,ui['yellow'],ui[_0x3a46c9(0x214)])),_0x2286f9[_0x3a46c9(0x1f2)](style,_0x2b8410,ui[_0x3a46c9(0x225)]))),console[_0x3a46c9(0x1ea)](_0x2286f9[_0x3a46c9(0x204)](_0x2286f9[_0x3a46c9(0x1f2)](style,_0x2286f9[_0x3a46c9(0x24a)](symbols['v'],'\x20'),ui['yellow']),'\x20'+_0x2286f9[_0x3a46c9(0x241)](style,symbols[_0x3a46c9(0x1ea)],ui[_0x3a46c9(0x225)],ui['bold'])+'\x20'+_0x2286f9[_0x3a46c9(0x23c)](style,_0x248f31,ui[_0x3a46c9(0x225)]))),console[_0x3a46c9(0x1ea)](_0x2286f9['GaWkn'](style,_0x2286f9['iCPdO'](symbols['bl'],_0x1c992b)+symbols['br'],ui[_0x3a46c9(0x225)])),console[_0x3a46c9(0x1ea)]();}export function failAndExit(_0x2f5c41,_0x2c67c1){const _0x151acf=_0x1ba354,_0x512cd6={'JZbNA':function(_0x3446af,_0x315ee3){return _0x3446af+_0x315ee3;},'lpIDL':function(_0x3db690,_0x9ddde,_0x45a5d9){return _0x3db690(_0x9ddde,_0x45a5d9);},'gCbXW':function(_0x5b3ccb,_0x376969,_0x3c9cef,_0x1c1691){return _0x5b3ccb(_0x376969,_0x3c9cef,_0x1c1691);},'lemsB':function(_0x7b7015){return _0x7b7015();},'MOyzD':function(_0x16942a,_0x7d74b2){return _0x16942a-_0x7d74b2;},'EmKIW':function(_0x1a96e2,_0xd40eeb){return _0x1a96e2-_0xd40eeb;},'RXHLP':function(_0x31074a,_0x586843){return _0x31074a+_0x586843;},'TQxZO':function(_0x1bc90b,_0x53dd3a){return _0x1bc90b+_0x53dd3a;},'sPuyf':function(_0x50726d,_0x10469d,_0x445e7a){return _0x50726d(_0x10469d,_0x445e7a);},'PalEU':function(_0x38f6e6,_0x14cf53){return _0x38f6e6+_0x14cf53;},'dnSIy':function(_0x1b4b28,_0x5d970d){return _0x1b4b28+_0x5d970d;},'MVDLU':function(_0x4ec0f7,_0xd4c8a4){return _0x4ec0f7+_0xd4c8a4;},'nIPmL':function(_0x4f1584,_0x122348){return _0x4f1584!==_0x122348;},'PvuOo':_0x151acf(0x205),'XCzLk':function(_0x584ef1,_0x310f08){return _0x584ef1+_0x310f08;},'kSomC':function(_0x919a1a,_0x4b8521){return _0x919a1a+_0x4b8521;},'nDCHH':function(_0x5a8d3e,_0x5a27a8,_0x449243,_0x348005){return _0x5a8d3e(_0x5a27a8,_0x449243,_0x348005);},'zATYX':function(_0x35c1cc,_0x17aea9,_0x3476be){return _0x35c1cc(_0x17aea9,_0x3476be);}},_0x32eb50=_0x512cd6['lemsB'](termWidth),_0x455626='\x20Error\x20',_0x4719a4=symbols['h'][_0x151acf(0x237)](Math[_0x151acf(0x230)](0x0,_0x512cd6[_0x151acf(0x1de)](_0x512cd6[_0x151acf(0x1de)](_0x32eb50,_0x455626['length']),0x2))),_0x53e622=symbols['h'][_0x151acf(0x237)](Math[_0x151acf(0x230)](0x0,_0x512cd6[_0x151acf(0x243)](_0x32eb50,0x2)));console['error'](),console[_0x151acf(0x200)](_0x512cd6[_0x151acf(0x23b)](_0x512cd6[_0x151acf(0x229)](_0x512cd6[_0x151acf(0x1ff)](style,_0x512cd6[_0x151acf(0x22c)](symbols['tl'],symbols['h']),ui['red']),_0x512cd6[_0x151acf(0x234)](style,_0x455626,ui[_0x151acf(0x1eb)],ui['bold'])),_0x512cd6[_0x151acf(0x1ff)](style,_0x4719a4,ui[_0x151acf(0x1eb)]))),console['error'](_0x512cd6[_0x151acf(0x20c)](_0x512cd6[_0x151acf(0x1ff)](style,_0x512cd6[_0x151acf(0x22d)](symbols['v'],'\x20'),ui[_0x151acf(0x1eb)]),'\x20'+style(symbols[_0x151acf(0x247)],ui[_0x151acf(0x1eb)],ui['bold'])+'\x20'+style(_0x2f5c41,ui[_0x151acf(0x1eb)]))),_0x2c67c1&&(_0x512cd6[_0x151acf(0x1e2)](_0x512cd6[_0x151acf(0x1e9)],_0x512cd6[_0x151acf(0x1e9)])?_0x1c83fe['error'](_0x512cd6[_0x151acf(0x219)](_0x512cd6['lpIDL'](_0x1fb3cf,_0x512cd6['JZbNA'](_0x2604b2['v'],'\x20'),_0x1e6dce[_0x151acf(0x1eb)]),_0x151acf(0x1e6)+_0x9266ff(_0x1cb31c[_0x151acf(0x242)],_0x3b7e72['gray'])+'\x20'+_0x512cd6['gCbXW'](_0x18bcce,_0x2c101d,_0x4867f3[_0x151acf(0x20a)],_0x5d7a48[_0x151acf(0x22e)]))):console['error'](_0x512cd6[_0x151acf(0x21c)](style(_0x512cd6[_0x151acf(0x223)](symbols['v'],'\x20'),ui[_0x151acf(0x1eb)]),_0x151acf(0x1e6)+_0x512cd6[_0x151acf(0x1e0)](style,symbols['arrow'],ui[_0x151acf(0x20a)])+'\x20'+_0x512cd6[_0x151acf(0x218)](style,_0x2c67c1,ui[_0x151acf(0x20a)],ui[_0x151acf(0x22e)])))),console[_0x151acf(0x200)](_0x512cd6['zATYX'](style,symbols['bl']+_0x53e622+symbols['br'],ui['red'])),console[_0x151acf(0x200)](),process[_0x151acf(0x235)](0x1);}function _0x5613(){const _0x1906e3=['KItFN','dim','PalEU','MVDLU','italic','4448916CieWgB','max','1699677EGjtPx','\x1b[90m','FRvsC','gCbXW','exit','\x1b[4m','repeat','length','1262AAnUcd','myGqn','RXHLP','asOQP','sKIoj','rpMTd','\x1b[1m','Done','jVakq','arrow','EmKIW','value','+)+$','JbjUq','cross','19648TTghlY','bullet','uOqwb','\x1b[37m','padEnd','join','4qnnuoF','cWvvi','hlqCR','MOyzD','5987810yDtboB','lpIDL','treeItem','nIPmL','uhkhQ','treeLast','cBPaw','\x20\x20\x20','tor','\x1b[2m','PvuOo','warn','red','2186515ykOtbJ','bktGc','ArgYU','\x1b[31m','columns','construc','GaWkn','reduce','KexHq','log','(((.+)+)','\x1b[3m','egmBQ','key','mNHXI','Fnrej','toString','qTEFC','677598cuxxeU','sPuyf','error','green','isTTY','9sfDeGl','iCPdO','UHqKq','cyan','\x0d\x20\x20','Failed','vqHLz','gray','yoZFf','dnSIy','write','xNVIT','\x20Warning','pBGay','(none)','stdout','Szqno','bold','dgEof','tick','qTgPn','nDCHH','JZbNA','mxpHQ','455lsAaDf','XCzLk','search','bDISh','hzvhP','YXLYP','DpCWQ','11zALgtH','kSomC','573gzgZXM','yellow','message','gGbHA','fcRxF','TQxZO'];_0x5613=function(){return _0x1906e3;};return _0x5613();}export async function withProgress(_0xf0ef80,_0xc8d266){const _0x31ddd6=_0x1ba354,_0x2317fa={'mNHXI':_0x31ddd6(0x1f6)+_0x31ddd6(0x245),'bktGc':function(_0x40513b,_0x201741,_0x3b40a2){return _0x40513b(_0x201741,_0x3b40a2);},'dgEof':function(_0x2a12a2,_0x5b42cd,_0x297a77){return _0x2a12a2(_0x5b42cd,_0x297a77);},'bDISh':_0x31ddd6(0x220),'DpCWQ':_0x31ddd6(0x1e3),'ArgYU':function(_0x3de63e){return _0x3de63e();},'egmBQ':'\x0d\x1b[2K','qTgPn':function(_0x485330,_0x5777c9,_0x20aaa5){return _0x485330(_0x5777c9,_0x20aaa5);},'Fnrej':function(_0x27fc63,_0x2601e4){return _0x27fc63(_0x2601e4);},'qTEFC':function(_0x2782a5,_0x58b8ba){return _0x2782a5 instanceof _0x58b8ba;},'HXgJR':function(_0x415f98,_0xe672a1){return _0x415f98(_0xe672a1);},'BfFUf':function(_0x10f8ca,_0x42e807){return _0x10f8ca(_0x42e807);}};if(!process['stdout'][_0x31ddd6(0x202)])return _0x2317fa[_0x31ddd6(0x21e)]!==_0x2317fa[_0x31ddd6(0x221)]?(console[_0x31ddd6(0x1f5)](_0xf0ef80),_0x2317fa[_0x31ddd6(0x1ee)](_0xc8d266)):_0x1cd4f3[_0x31ddd6(0x1fc)]()[_0x31ddd6(0x21d)](foPLyb[_0x31ddd6(0x1fa)])[_0x31ddd6(0x1fc)]()['construc'+_0x31ddd6(0x1e7)](_0x5703ed)[_0x31ddd6(0x21d)](foPLyb['mNHXI']);const _0x4799b7=['⠋','⠙','⠹','⠸','⠼','⠴','⠦','⠧','⠇','⠏'];let _0x46c063=0x0;const _0x12bbb2=()=>{const _0x36bc6f=_0x31ddd6,_0x3c0eee=_0x2317fa[_0x36bc6f(0x1ed)](style,_0x4799b7[_0x46c063%_0x4799b7[_0x36bc6f(0x238)]],ui[_0x36bc6f(0x206)]);process[_0x36bc6f(0x212)][_0x36bc6f(0x20d)](_0x36bc6f(0x207)+_0x3c0eee+'\x20\x20'+_0x2317fa['dgEof'](style,_0xf0ef80,ui[_0x36bc6f(0x22b)])),_0x46c063+=0x1;};_0x12bbb2();const _0x38ae42=_0x2317fa[_0x31ddd6(0x215)](setInterval,_0x12bbb2,0x50);try{const _0x22448c=await _0xc8d266();return clearInterval(_0x38ae42),process[_0x31ddd6(0x212)][_0x31ddd6(0x20d)](_0x2317fa[_0x31ddd6(0x1f8)]),console[_0x31ddd6(0x1f5)]('\x20\x20'+ok(_0x31ddd6(0x240))+'\x20\x20'+_0x2317fa[_0x31ddd6(0x217)](style,_0xf0ef80,ui[_0x31ddd6(0x22b)])),_0x22448c;}catch(_0x10f20e){_0x2317fa[_0x31ddd6(0x1fb)](clearInterval,_0x38ae42),process[_0x31ddd6(0x212)][_0x31ddd6(0x20d)](_0x2317fa[_0x31ddd6(0x1f8)]);const _0x478aa6=_0x2317fa[_0x31ddd6(0x1fd)](_0x10f20e,Error)?_0x10f20e[_0x31ddd6(0x226)]:_0x2317fa['HXgJR'](String,_0x10f20e);console[_0x31ddd6(0x200)]('\x20\x20'+_0x2317fa['BfFUf'](bad,_0x31ddd6(0x208))+'\x20\x20'+style(_0x478aa6,ui[_0x31ddd6(0x22b)]));throw _0x10f20e;}}
|
|
1
|
+
const _0xa9d675=_0x3ea4;(function(_0x15526c,_0x5901b1){const _0x499fe2=_0x3ea4,_0x5b763e=_0x15526c();while(!![]){try{const _0x5b11bf=parseInt(_0x499fe2(0x1ea))/0x1+-parseInt(_0x499fe2(0x1be))/0x2*(parseInt(_0x499fe2(0x238))/0x3)+parseInt(_0x499fe2(0x20e))/0x4*(parseInt(_0x499fe2(0x23b))/0x5)+parseInt(_0x499fe2(0x1cf))/0x6*(parseInt(_0x499fe2(0x205))/0x7)+-parseInt(_0x499fe2(0x1e7))/0x8*(-parseInt(_0x499fe2(0x1d7))/0x9)+-parseInt(_0x499fe2(0x1ee))/0xa+-parseInt(_0x499fe2(0x232))/0xb;if(_0x5b11bf===_0x5901b1)break;else _0x5b763e['push'](_0x5b763e['shift']());}catch(_0xc0ac74){_0x5b763e['push'](_0x5b763e['shift']());}}}(_0x2a5e,0x32b65));const _0x9bf896=(function(){const _0x9f77c7={'ruxyh':function(_0x3d5535){return _0x3d5535();},'VFwoW':function(_0x18896c,_0x1e0a1c){return _0x18896c-_0x1e0a1c;},'yxRKV':function(_0x4fe373,_0x1c3869){return _0x4fe373+_0x1c3869;},'rxlmp':function(_0x410ea8,_0x3490e1,_0x357208){return _0x410ea8(_0x3490e1,_0x357208);},'VobCB':function(_0x2d7057,_0x2f8a55,_0x285b7a,_0x233a46){return _0x2d7057(_0x2f8a55,_0x285b7a,_0x233a46);},'ewKNz':function(_0x311538,_0x53c5e5,_0x2adbfa){return _0x311538(_0x53c5e5,_0x2adbfa);},'vuvDh':function(_0x20f03c,_0x13eadb){return _0x20f03c+_0x13eadb;},'vfTET':function(_0x36117a,_0x51b63a){return _0x36117a+_0x51b63a;},'yJcQz':function(_0x2ee96e,_0x14161b,_0x2dfb13){return _0x2ee96e(_0x14161b,_0x2dfb13);},'ipTyB':function(_0x47f9f1,_0x1794bb,_0x264e79){return _0x47f9f1(_0x1794bb,_0x264e79);},'jceMO':function(_0x4f927f,_0x34cdc5){return _0x4f927f+_0x34cdc5;},'iDmUM':function(_0x55be89,_0x51b8ec,_0x59203d,_0x2af5d4){return _0x55be89(_0x51b8ec,_0x59203d,_0x2af5d4);},'yDCdz':function(_0x438175,_0x2e93bc){return _0x438175+_0x2e93bc;},'uJJgK':function(_0x22dbb3,_0x25e1b3){return _0x22dbb3===_0x25e1b3;},'Lwoud':'KQjCg'};let _0x5f589a=!![];return function(_0x4ce586,_0x4d1498){const _0x3e04ca=_0x3ea4;if(_0x9f77c7[_0x3e04ca(0x1f7)](_0x9f77c7[_0x3e04ca(0x228)],_0x9f77c7[_0x3e04ca(0x228)])){const _0x55af17=_0x5f589a?function(){const _0xd24b24=_0x3e04ca;if(_0x4d1498){const _0x5ad3e5=_0x4d1498[_0xd24b24(0x1c8)](_0x4ce586,arguments);return _0x4d1498=null,_0x5ad3e5;}}:function(){};return _0x5f589a=![],_0x55af17;}else{const _0x4b0757=_0x9f77c7[_0x3e04ca(0x227)](_0x349443),_0x562121=_0x3e04ca(0x1e9),_0x18bf8b=_0x2fd502['h']['repeat'](_0x426767[_0x3e04ca(0x1e4)](0x0,_0x9f77c7[_0x3e04ca(0x220)](_0x9f77c7[_0x3e04ca(0x220)](_0x4b0757,_0x562121['length']),0x2))),_0x2dbce6=_0x2377e5['h'][_0x3e04ca(0x1ec)](_0x1295f7['max'](0x0,_0x9f77c7['VFwoW'](_0x4b0757,0x2)));_0x527892[_0x3e04ca(0x212)](),_0x408545[_0x3e04ca(0x212)](_0x9f77c7['yxRKV'](_0x9f77c7[_0x3e04ca(0x1f6)](_0x471bca,_0x9f77c7[_0x3e04ca(0x1f5)](_0x2a0d86['tl'],_0x3764ec['h']),_0x4d6037[_0x3e04ca(0x218)])+_0x9f77c7[_0x3e04ca(0x1fc)](_0x25dfe4,_0x562121,_0x5147d0[_0x3e04ca(0x218)],_0x592890[_0x3e04ca(0x22b)]),_0x9f77c7[_0x3e04ca(0x1e8)](_0x2cb9e4,_0x18bf8b,_0x414cc4[_0x3e04ca(0x218)]))),_0x51638d[_0x3e04ca(0x212)](_0x9f77c7[_0x3e04ca(0x1da)](_0x5b8b7b(_0x9f77c7['vfTET'](_0x4815f5['v'],'\x20'),_0x3e6da9[_0x3e04ca(0x218)]),'\x20'+_0x9f77c7[_0x3e04ca(0x1fc)](_0x2f5f16,_0x128644[_0x3e04ca(0x208)],_0x234818[_0x3e04ca(0x218)],_0x1ac8c6[_0x3e04ca(0x22b)])+'\x20'+_0x9f77c7[_0x3e04ca(0x20a)](_0x5a1388,_0x51a692,_0x3dbb0b['red']))),_0x170710&&_0x291059['error'](_0x9f77c7[_0x3e04ca(0x1c3)](_0x53ae02,_0x9f77c7[_0x3e04ca(0x21a)](_0x2aa701['v'],'\x20'),_0x24e4a8['red'])+(_0x3e04ca(0x1f0)+_0x451b3a(_0xac8813[_0x3e04ca(0x23c)],_0x2f75e0['gray'])+'\x20'+_0x9f77c7[_0x3e04ca(0x1f2)](_0x311a04,_0xca5d48,_0x2f6628['gray'],_0x2ce5d2[_0x3e04ca(0x203)]))),_0x1e423a[_0x3e04ca(0x212)](_0x9f77c7[_0x3e04ca(0x1f6)](_0x2ad21f,_0x9f77c7['yDCdz'](_0x49ad1f['bl']+_0x2dbce6,_0x5917cf['br']),_0x52dab0[_0x3e04ca(0x218)])),_0x1f5418['error'](),_0x3196dc[_0x3e04ca(0x21c)](0x1);}};}()),_0x5ba101=_0x9bf896(this,function(){const _0x3e9623=_0x3ea4,_0x1d8ac9={'kPWgI':'(((.+)+)'+_0x3e9623(0x226)};return _0x5ba101[_0x3e9623(0x234)]()[_0x3e9623(0x1f4)](_0x1d8ac9['kPWgI'])[_0x3e9623(0x234)]()[_0x3e9623(0x1e1)+'tor'](_0x5ba101)['search']('(((.+)+)'+_0x3e9623(0x226));});_0x5ba101();export const ui={'reset':_0xa9d675(0x1ff),'bold':_0xa9d675(0x1eb),'dim':_0xa9d675(0x1fe),'italic':_0xa9d675(0x221),'underline':_0xa9d675(0x1f3),'cyan':_0xa9d675(0x1ce),'white':_0xa9d675(0x211),'green':'\x1b[32m','yellow':'\x1b[33m','red':_0xa9d675(0x21e),'magenta':'\x1b[35m','gray':_0xa9d675(0x1e2)};export const symbols={'tick':'✓','warn':'⚠','cross':'✗','bullet':'●','dot':'·','arrow':'→','treeItem':'├─','treeLast':'└─','treePipe':'│','h':'─','v':'│','tl':'╭','tr':'╮','bl':'╰','br':'╯'};export function style(_0x21e29d,..._0xa0fe79){const _0x4121c2=_0xa9d675;return''+_0xa0fe79['join']('')+_0x21e29d+ui[_0x4121c2(0x20c)];}function termWidth(){const _0x3c11bd=_0xa9d675;return Math[_0x3c11bd(0x1e4)](0x28,Math[_0x3c11bd(0x1c9)](process[_0x3c11bd(0x207)][_0x3c11bd(0x217)]||0x50,0x58));}function _0x2a5e(){const _0x5ac36e=['TGfhi','AFPfA','mnrmS','oKAkD','\x0d\x1b[2K','2255308NIYiPd','warn','toString','yellow','pcsiT','LYcrf','1176597EYAHFF','khQpO','TMejA','189370mVKOPf','arrow','PuhuC','ovmmb','2TijXBf','CjbeM','LiZIW','ooiuL','ubRyf','ipTyB','QtDEv','sUJED','gray','VsAfi','apply','min','rVWSj','bullet','DQNUG','RBmTW','\x1b[36m','6ZojGPK','esDkr','klsPg','green','RRiWU','ELlPd','sbZrD','reduce','541611KJXMmo','TlrPu','iNxfm','vuvDh','cyan','LKGfn','isTTY','treeLast','nfyvT','tick','construc','\x1b[90m','padEnd','max','bmHSs','LFdVH','48ESGPcl','ewKNz','\x20Error\x20','167178gRHesD','\x1b[1m','repeat','FMTPB','1263810msQDUK','gcnCV','\x20\x20\x20','write','iDmUM','\x1b[4m','search','yxRKV','rxlmp','uJJgK','RCMgb','XIDCy','PxDxa','vXXWC','VobCB','log','\x1b[2m','\x1b[0m','bulZq','jvyvu','NKdtM','italic','VDejl','965685SpAQUi','eWcjO','stdout','cross','dOCPd','yJcQz','QzxOv','reset','SVMHQ','28kKcDWv','soXsa','length','\x1b[37m','error','Failed','message','uetxu','LKcRh','columns','red','(none)','jceMO','SiLRF','exit','dim','\x1b[31m','nXmPE','VFwoW','\x1b[3m','oMrkd','\x0d\x20\x20','ltoZN','Oooko','+)+$','ruxyh','Lwoud','dJVaC','treeItem','bold','tbufR'];_0x2a5e=function(){return _0x5ac36e;};return _0x2a5e();}export function section(_0x534769){const _0x4a5e3e=_0xa9d675,_0x2a8b05={'LYcrf':function(_0x18a85e,_0x4ce878){return _0x18a85e-_0x4ce878;},'eWcjO':function(_0x524795){return _0x524795();},'ovmmb':function(_0x38acd4,_0x14338a){return _0x38acd4+_0x14338a;},'nfyvT':function(_0x2350c4,_0x4fbe4e){return _0x2350c4+_0x4fbe4e;},'bmHSs':function(_0x3cfeab,_0x13b2ee,_0x16cc60){return _0x3cfeab(_0x13b2ee,_0x16cc60);},'TlrPu':function(_0x10024d,_0x1f2455,_0xe9bc3c){return _0x10024d(_0x1f2455,_0xe9bc3c);}},_0x302f9a='\x20'+_0x534769+'\x20',_0x56c852=symbols['h'][_0x4a5e3e(0x1ec)](Math['max'](0x0,_0x2a8b05[_0x4a5e3e(0x237)](_0x2a8b05[_0x4a5e3e(0x206)](termWidth),_0x302f9a['length'])-0x2));console[_0x4a5e3e(0x1fd)](),console[_0x4a5e3e(0x1fd)](_0x2a8b05[_0x4a5e3e(0x1bd)](style(_0x2a8b05[_0x4a5e3e(0x1df)](symbols['tl'],symbols['h']),ui[_0x4a5e3e(0x1c6)])+_0x2a8b05[_0x4a5e3e(0x1e5)](style,_0x302f9a,ui[_0x4a5e3e(0x22b)]),_0x2a8b05[_0x4a5e3e(0x1d8)](style,_0x56c852,ui[_0x4a5e3e(0x1c6)])));}export function ok(_0x5261a5,_0x2e30a5){const _0x551737=_0xa9d675,_0x52aa4d={'LKGfn':function(_0x352e77,_0x5d4989,_0x421afe){return _0x352e77(_0x5d4989,_0x421afe);},'Oooko':function(_0x594f18,_0xb8631f,_0x1670b8,_0xf16b06){return _0x594f18(_0xb8631f,_0x1670b8,_0xf16b06);},'QPjLb':function(_0x48478d,_0x4197f6,_0x39d11b){return _0x48478d(_0x4197f6,_0x39d11b);}},_0x16647e=_0x52aa4d[_0x551737(0x1dc)](style,symbols[_0x551737(0x1e0)],ui[_0x551737(0x1d2)])+'\x20'+_0x52aa4d[_0x551737(0x225)](style,_0x5261a5,ui[_0x551737(0x1d2)],ui[_0x551737(0x22b)]);return _0x2e30a5?_0x16647e+'\x20\x20'+_0x52aa4d['QPjLb'](style,_0x2e30a5,ui[_0x551737(0x1c6)]):_0x16647e;}export function warn(_0x302d00,_0x376bf8){const _0x9866fe=_0xa9d675,_0x371837={'ELlPd':function(_0x2554ce,_0x12a5a7,_0x199c2f,_0x2c75c3){return _0x2554ce(_0x12a5a7,_0x199c2f,_0x2c75c3);},'zmayD':function(_0x2bb225,_0xd0fd87,_0xc3a6bc){return _0x2bb225(_0xd0fd87,_0xc3a6bc);}},_0x961d57=style(symbols[_0x9866fe(0x233)],ui[_0x9866fe(0x235)],ui[_0x9866fe(0x22b)])+'\x20'+_0x371837[_0x9866fe(0x1d4)](style,_0x302d00,ui[_0x9866fe(0x235)],ui[_0x9866fe(0x22b)]);return _0x376bf8?_0x961d57+'\x20\x20'+_0x371837['zmayD'](style,_0x376bf8,ui[_0x9866fe(0x1c6)]):_0x961d57;}export function bad(_0x2d2123,_0x1e6b30){const _0x3cd50e=_0xa9d675,_0x5b3836={'iNxfm':function(_0x1a2e35,_0xd08657,_0x309f7c,_0x254c2e){return _0x1a2e35(_0xd08657,_0x309f7c,_0x254c2e);},'Gmxto':function(_0x451069,_0xd38b07,_0x1db605){return _0x451069(_0xd38b07,_0x1db605);}},_0x18fc7f=_0x5b3836[_0x3cd50e(0x1d9)](style,symbols[_0x3cd50e(0x208)],ui[_0x3cd50e(0x218)],ui[_0x3cd50e(0x22b)])+'\x20'+style(_0x2d2123,ui[_0x3cd50e(0x218)],ui[_0x3cd50e(0x22b)]);return _0x1e6b30?_0x18fc7f+'\x20\x20'+_0x5b3836['Gmxto'](style,_0x1e6b30,ui[_0x3cd50e(0x1c6)]):_0x18fc7f;}export function info(_0x170dae,_0x5976ff){const _0x1112cf=_0xa9d675,_0x46e41d={'xEJLe':function(_0x3c102c,_0x5cb196,_0x5d218b){return _0x3c102c(_0x5cb196,_0x5d218b);},'qOyRx':function(_0x2b6bac,_0x13965a,_0x583132,_0x1876af){return _0x2b6bac(_0x13965a,_0x583132,_0x1876af);}},_0x3122ac=_0x46e41d['xEJLe'](style,symbols[_0x1112cf(0x1cb)],ui[_0x1112cf(0x1db)])+'\x20'+_0x46e41d['qOyRx'](style,_0x170dae,ui[_0x1112cf(0x1db)],ui[_0x1112cf(0x22b)]);return _0x5976ff?_0x3122ac+'\x20\x20'+_0x46e41d['xEJLe'](style,_0x5976ff,ui[_0x1112cf(0x1c6)]):_0x3122ac;}export function printKeyValues(_0x58f079){const _0x195eb0=_0xa9d675,_0x39ebca={'QtDEv':function(_0x7439a3,_0x1a7495){return _0x7439a3===_0x1a7495;},'oMrkd':function(_0x480693,_0x3c2f4e){return _0x480693===_0x3c2f4e;},'rVcyw':function(_0x464657,_0x3c2cec){return _0x464657-_0x3c2cec;},'soXsa':function(_0xbc3d0d,_0x5a1cc1,_0x5f02e0,_0x2ad8fc){return _0xbc3d0d(_0x5a1cc1,_0x5f02e0,_0x2ad8fc);}};if(_0x39ebca[_0x195eb0(0x1c4)](_0x58f079[_0x195eb0(0x210)],0x0))return;const _0xf34471=_0x58f079[_0x195eb0(0x1d6)]((_0x11a8a0,_0x256a80)=>Math[_0x195eb0(0x1e4)](_0x11a8a0,_0x256a80['key'][_0x195eb0(0x210)]),0x0);for(let _0x99f961=0x0;_0x99f961<_0x58f079[_0x195eb0(0x210)];_0x99f961++){const _0x4c6b47=_0x39ebca[_0x195eb0(0x222)](_0x99f961,_0x39ebca['rVcyw'](_0x58f079[_0x195eb0(0x210)],0x1)),_0x3a447a=style(_0x4c6b47?symbols[_0x195eb0(0x1de)]:symbols[_0x195eb0(0x22a)],ui[_0x195eb0(0x1c6)]),_0x352036=_0x39ebca[_0x195eb0(0x20f)](style,_0x58f079[_0x99f961]['key'][_0x195eb0(0x1e3)](_0xf34471),ui['gray'],ui[_0x195eb0(0x203)]);console['log']('\x20\x20'+_0x3a447a+'\x20'+_0x352036+'\x20\x20'+_0x58f079[_0x99f961]['value']);}}export function printList(_0x308390,_0x1b2b73){const _0x91df65=_0xa9d675,_0x14c49c={'SiLRF':function(_0x67b03c,_0x260188,_0x266d0f){return _0x67b03c(_0x260188,_0x266d0f);},'kDuUj':function(_0x1403a1,_0x14155c){return _0x1403a1===_0x14155c;},'PuhuC':function(_0x2206df,_0x12599a,_0x4730f0){return _0x2206df(_0x12599a,_0x4730f0);},'TGfhi':function(_0x494433,_0x456324){return _0x494433<_0x456324;},'VsAfi':function(_0x1601eb,_0x1c84a8){return _0x1601eb-_0x1c84a8;},'FFQir':function(_0x2af1dc,_0x1e737e,_0x3059df){return _0x2af1dc(_0x1e737e,_0x3059df);}};console[_0x91df65(0x1fd)]('\x20\x20'+_0x14c49c[_0x91df65(0x21b)](style,_0x308390,ui[_0x91df65(0x22b)]));if(_0x14c49c['kDuUj'](_0x1b2b73[_0x91df65(0x210)],0x0)){console[_0x91df65(0x1fd)]('\x20\x20'+_0x14c49c[_0x91df65(0x23d)](style,symbols[_0x91df65(0x1de)],ui[_0x91df65(0x1c6)])+'\x20'+style(_0x91df65(0x219),ui[_0x91df65(0x1c6)],ui[_0x91df65(0x203)]));return;}for(let _0x4955d5=0x0;_0x14c49c[_0x91df65(0x22d)](_0x4955d5,_0x1b2b73[_0x91df65(0x210)]);_0x4955d5++){const _0x2c29dd=_0x14c49c['kDuUj'](_0x4955d5,_0x14c49c[_0x91df65(0x1c7)](_0x1b2b73[_0x91df65(0x210)],0x1)),_0x3ed0c5=_0x14c49c[_0x91df65(0x23d)](style,_0x2c29dd?symbols[_0x91df65(0x1de)]:symbols[_0x91df65(0x22a)],ui['gray']);console[_0x91df65(0x1fd)]('\x20\x20'+_0x3ed0c5+'\x20'+_0x14c49c['FFQir'](style,_0x1b2b73[_0x4955d5],ui[_0x91df65(0x21d)]));}}export function warnBlock(_0x17ef0f){const _0x29687c=_0xa9d675,_0x302754={'mnrmS':function(_0x3cf4cc,_0x338e72){return _0x3cf4cc-_0x338e72;},'oKAkD':function(_0x558b5a,_0x5ca9b5){return _0x558b5a-_0x5ca9b5;},'TMejA':function(_0x27c7d3,_0x49c9b5){return _0x27c7d3+_0x49c9b5;},'CjbeM':function(_0x506b2e,_0x109b4b,_0x234db7){return _0x506b2e(_0x109b4b,_0x234db7);},'VDejl':function(_0x1bef7d,_0x5a87ff){return _0x1bef7d+_0x5a87ff;},'ooiuL':function(_0x3b6c17,_0x183e03,_0x3fa0a4,_0x255beb){return _0x3b6c17(_0x183e03,_0x3fa0a4,_0x255beb);},'QzxOv':function(_0x41dd59,_0x688c88,_0x44df28,_0x15349f){return _0x41dd59(_0x688c88,_0x44df28,_0x15349f);},'ubRyf':function(_0x2f52ff,_0x3e7e30,_0x469b0c){return _0x2f52ff(_0x3e7e30,_0x469b0c);}},_0x27d0ca=termWidth(),_0x5f0625='\x20Warning'+'\x20',_0x2c82df=symbols['h'][_0x29687c(0x1ec)](Math[_0x29687c(0x1e4)](0x0,_0x302754[_0x29687c(0x22f)](_0x302754[_0x29687c(0x230)](_0x27d0ca,_0x5f0625['length']),0x2))),_0xacf59c=symbols['h'][_0x29687c(0x1ec)](Math[_0x29687c(0x1e4)](0x0,_0x27d0ca-0x2));console[_0x29687c(0x233)](),console[_0x29687c(0x233)](_0x302754[_0x29687c(0x23a)](_0x302754[_0x29687c(0x23a)](_0x302754[_0x29687c(0x1bf)](style,_0x302754[_0x29687c(0x204)](symbols['tl'],symbols['h']),ui['yellow']),_0x302754[_0x29687c(0x1c1)](style,_0x5f0625,ui['yellow'],ui[_0x29687c(0x22b)])),_0x302754[_0x29687c(0x1bf)](style,_0x2c82df,ui['yellow']))),console['warn'](_0x302754[_0x29687c(0x23a)](style(_0x302754[_0x29687c(0x23a)](symbols['v'],'\x20'),ui['yellow']),'\x20'+_0x302754[_0x29687c(0x20b)](style,symbols['warn'],ui['yellow'],ui['bold'])+'\x20'+_0x302754[_0x29687c(0x1c2)](style,_0x17ef0f,ui[_0x29687c(0x235)]))),console[_0x29687c(0x233)](style(_0x302754[_0x29687c(0x23a)](symbols['bl'],_0xacf59c)+symbols['br'],ui[_0x29687c(0x235)])),console[_0x29687c(0x233)]();}function _0x3ea4(_0x2a9ba0,_0x12e8ca){_0x2a9ba0=_0x2a9ba0-0x1bd;const _0x1d5622=_0x2a5e();let _0x5ba101=_0x1d5622[_0x2a9ba0];return _0x5ba101;}export function failAndExit(_0xfb9598,_0x11c352){const _0x3132ad=_0xa9d675,_0x298c11={'dJVaC':function(_0x8cb506){return _0x8cb506();},'khQpO':function(_0x1f7327,_0x931258){return _0x1f7327-_0x931258;},'LFdVH':function(_0x361532,_0x462484){return _0x361532-_0x462484;},'jvyvu':function(_0x2f7a27,_0x5504a6){return _0x2f7a27+_0x5504a6;},'zJtNF':function(_0x40f79e,_0x269773){return _0x40f79e+_0x269773;},'PxDxa':function(_0x5a8fea,_0x2f10c3,_0xcfe96){return _0x5a8fea(_0x2f10c3,_0xcfe96);},'RCMgb':function(_0x15aed7,_0x37a7c9,_0x233f82,_0x1e7325){return _0x15aed7(_0x37a7c9,_0x233f82,_0x1e7325);},'rVWSj':function(_0x4eb8c1,_0x150e24,_0x5bb34f){return _0x4eb8c1(_0x150e24,_0x5bb34f);},'FMTPB':function(_0x462454,_0x460fcd){return _0x462454+_0x460fcd;},'esDkr':function(_0x12a918,_0x5de62a,_0x4a2879,_0x3f44a6){return _0x12a918(_0x5de62a,_0x4a2879,_0x3f44a6);},'vXXWC':function(_0x3fc3bd,_0x202819,_0x5c0ab9){return _0x3fc3bd(_0x202819,_0x5c0ab9);},'lzHrG':function(_0x4dd967,_0xd83526){return _0x4dd967+_0xd83526;}},_0x5aaef0=_0x298c11[_0x3132ad(0x229)](termWidth),_0x4dadc5=_0x3132ad(0x1e9),_0xed5880=symbols['h'][_0x3132ad(0x1ec)](Math[_0x3132ad(0x1e4)](0x0,_0x298c11[_0x3132ad(0x239)](_0x298c11[_0x3132ad(0x1e6)](_0x5aaef0,_0x4dadc5[_0x3132ad(0x210)]),0x2))),_0x2b7f37=symbols['h'][_0x3132ad(0x1ec)](Math[_0x3132ad(0x1e4)](0x0,_0x298c11['khQpO'](_0x5aaef0,0x2)));console[_0x3132ad(0x212)](),console['error'](_0x298c11['jvyvu'](_0x298c11['zJtNF'](_0x298c11[_0x3132ad(0x1fa)](style,_0x298c11[_0x3132ad(0x201)](symbols['tl'],symbols['h']),ui[_0x3132ad(0x218)]),_0x298c11[_0x3132ad(0x1f8)](style,_0x4dadc5,ui['red'],ui[_0x3132ad(0x22b)])),_0x298c11[_0x3132ad(0x1ca)](style,_0xed5880,ui[_0x3132ad(0x218)]))),console['error'](_0x298c11['FMTPB'](_0x298c11[_0x3132ad(0x1ca)](style,_0x298c11[_0x3132ad(0x1ed)](symbols['v'],'\x20'),ui[_0x3132ad(0x218)]),'\x20'+_0x298c11[_0x3132ad(0x1d0)](style,symbols[_0x3132ad(0x208)],ui[_0x3132ad(0x218)],ui[_0x3132ad(0x22b)])+'\x20'+_0x298c11[_0x3132ad(0x1ca)](style,_0xfb9598,ui[_0x3132ad(0x218)]))),_0x11c352&&console['error'](_0x298c11[_0x3132ad(0x1ed)](_0x298c11['PxDxa'](style,symbols['v']+'\x20',ui[_0x3132ad(0x218)]),'\x20\x20\x20'+style(symbols[_0x3132ad(0x23c)],ui[_0x3132ad(0x1c6)])+'\x20'+_0x298c11[_0x3132ad(0x1d0)](style,_0x11c352,ui[_0x3132ad(0x1c6)],ui[_0x3132ad(0x203)]))),console['error'](_0x298c11[_0x3132ad(0x1fb)](style,_0x298c11['lzHrG'](symbols['bl'],_0x2b7f37)+symbols['br'],ui[_0x3132ad(0x218)])),console[_0x3132ad(0x212)](),process[_0x3132ad(0x21c)](0x1);}export async function withProgress(_0x24cb75,_0x2a7078){const _0x1a8e1a=_0xa9d675,_0x3ce873={'DQNUG':function(_0x42277b,_0x534cbf){return _0x42277b-_0x534cbf;},'nXmPE':function(_0x2761cd){return _0x2761cd();},'LiZIW':function(_0x212d42,_0x45b666){return _0x212d42+_0x45b666;},'pcsiT':function(_0x587d14,_0x53d927,_0x3f4713){return _0x587d14(_0x53d927,_0x3f4713);},'uXtIx':function(_0x210b42,_0x97c4b6,_0x1a962f){return _0x210b42(_0x97c4b6,_0x1a962f);},'LKcRh':function(_0x426539,_0x3ac0c0,_0x16e1f1){return _0x426539(_0x3ac0c0,_0x16e1f1);},'tbufR':function(_0x501215,_0x58e9f6){return _0x501215%_0x58e9f6;},'yyIoL':function(_0x2127ba){return _0x2127ba();},'sbZrD':function(_0x14da77,_0x553f3f){return _0x14da77!==_0x553f3f;},'RBmTW':_0x1a8e1a(0x215),'NKdtM':_0x1a8e1a(0x1d1),'SVMHQ':function(_0x3b6eb3,_0x106f72,_0x55dce5){return _0x3b6eb3(_0x106f72,_0x55dce5);},'AFPfA':function(_0x4cb0e6,_0xbaf28e){return _0x4cb0e6(_0xbaf28e);},'sUJED':_0x1a8e1a(0x231),'RRiWU':function(_0x30747a,_0x1af2a1){return _0x30747a(_0x1af2a1);},'dOCPd':'Done','gcnCV':function(_0xcfa0d9,_0x256514){return _0xcfa0d9===_0x256514;},'bulZq':function(_0x59ea50,_0x41ff50){return _0x59ea50(_0x41ff50);},'OSszc':function(_0x454673,_0x30823c){return _0x454673(_0x30823c);},'ltoZN':_0x1a8e1a(0x213)};if(!process[_0x1a8e1a(0x207)][_0x1a8e1a(0x1dd)]){if(_0x3ce873[_0x1a8e1a(0x1d5)](_0x3ce873[_0x1a8e1a(0x1cd)],_0x3ce873[_0x1a8e1a(0x202)]))return console[_0x1a8e1a(0x1fd)](_0x24cb75),_0x3ce873[_0x1a8e1a(0x21f)](_0x2a7078);else{const _0x5e193c='\x20'+_0xb9a051+'\x20',_0x41c68c=_0x4bbbf0['h'][_0x1a8e1a(0x1ec)](_0x3a2278[_0x1a8e1a(0x1e4)](0x0,jtvMwi['DQNUG'](jtvMwi[_0x1a8e1a(0x1cc)](jtvMwi[_0x1a8e1a(0x21f)](_0x4f3229),_0x5e193c[_0x1a8e1a(0x210)]),0x2)));_0xcf4d1f[_0x1a8e1a(0x1fd)](),_0x3d1e48[_0x1a8e1a(0x1fd)](jtvMwi['LiZIW'](jtvMwi['pcsiT'](_0x1fccba,jtvMwi[_0x1a8e1a(0x1c0)](_0x482333['tl'],_0x4bd73c['h']),_0x16ca94[_0x1a8e1a(0x1c6)])+jtvMwi['uXtIx'](_0x3df54f,_0x5e193c,_0x57e4fa['bold']),jtvMwi[_0x1a8e1a(0x216)](_0x6cd036,_0x41c68c,_0x5d554a[_0x1a8e1a(0x1c6)])));}}const _0x3cf4b9=['⠋','⠙','⠹','⠸','⠼','⠴','⠦','⠧','⠇','⠏'];let _0x3c859a=0x0;const _0xc96661=()=>{const _0x50b38f=_0x1a8e1a,_0x4b0649=style(_0x3cf4b9[_0x3ce873[_0x50b38f(0x22c)](_0x3c859a,_0x3cf4b9[_0x50b38f(0x210)])],ui[_0x50b38f(0x1db)]);process[_0x50b38f(0x207)][_0x50b38f(0x1f1)](_0x50b38f(0x223)+_0x4b0649+'\x20\x20'+_0x3ce873[_0x50b38f(0x236)](style,_0x24cb75,ui[_0x50b38f(0x21d)])),_0x3c859a+=0x1;};_0x3ce873[_0x1a8e1a(0x21f)](_0xc96661);const _0x1e158f=_0x3ce873[_0x1a8e1a(0x20d)](setInterval,_0xc96661,0x50);try{const _0x214313=await _0x2a7078();return _0x3ce873[_0x1a8e1a(0x22e)](clearInterval,_0x1e158f),process['stdout'][_0x1a8e1a(0x1f1)](_0x3ce873['sUJED']),console['log']('\x20\x20'+_0x3ce873[_0x1a8e1a(0x1d3)](ok,_0x3ce873[_0x1a8e1a(0x209)])+'\x20\x20'+_0x3ce873['LKcRh'](style,_0x24cb75,ui[_0x1a8e1a(0x21d)])),_0x214313;}catch(_0x452328){if(_0x3ce873[_0x1a8e1a(0x1ef)]('XIDCy',_0x1a8e1a(0x1f9))){_0x3ce873[_0x1a8e1a(0x200)](clearInterval,_0x1e158f),process[_0x1a8e1a(0x207)][_0x1a8e1a(0x1f1)](_0x3ce873[_0x1a8e1a(0x1c5)]);const _0x1ecd3e=_0x452328 instanceof Error?_0x452328[_0x1a8e1a(0x214)]:_0x3ce873['OSszc'](String,_0x452328);console[_0x1a8e1a(0x212)]('\x20\x20'+bad(_0x3ce873[_0x1a8e1a(0x224)])+'\x20\x20'+_0x3ce873[_0x1a8e1a(0x236)](style,_0x1ecd3e,ui[_0x1a8e1a(0x21d)]));throw _0x452328;}else return _0xa1bf34[_0x1a8e1a(0x1fd)](_0x1c06bb),_0x3ce873['yyIoL'](_0x3baf42);}}
|
package/dist-secure/update.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1afed0,_0xf5902){const _0x4120bb=_0x492e,_0xcd8452=_0x1afed0();while(!![]){try{const _0x14bde1=parseInt(_0x4120bb(0x197))/0x1+-parseInt(_0x4120bb(0x1ce))/0x2+-parseInt(_0x4120bb(0x1c7))/0x3*(-parseInt(_0x4120bb(0x16d))/0x4)+-parseInt(_0x4120bb(0x17f))/0x5+-parseInt(_0x4120bb(0x16a))/0x6+-parseInt(_0x4120bb(0x14a))/0x7+parseInt(_0x4120bb(0x14d))/0x8*(parseInt(_0x4120bb(0x1c4))/0x9);if(_0x14bde1===_0xf5902)break;else _0xcd8452['push'](_0xcd8452['shift']());}catch(_0x35a26e){_0xcd8452['push'](_0xcd8452['shift']());}}}(_0x3e84,0x497d2));const _0x1ab8f6=(function(){const _0x2fbfa9={'jUlqJ':function(_0x18a6c1,_0x39b8f8){return _0x18a6c1(_0x39b8f8);},'yGCjg':function(_0x3ad125,_0x246253){return _0x3ad125===_0x246253;},'cwPuB':'EFQdd'};let _0x5ef469=!![];return function(_0x19ba90,_0x33a3e6){const _0x7047d0=_0x492e,_0x5f5074={'iSaCV':function(_0x285ed6,_0x2cc2f8){return _0x2fbfa9['jUlqJ'](_0x285ed6,_0x2cc2f8);},'jMyVp':function(_0x2b7aa2,_0x453c49){const _0x1eb310=_0x492e;return _0x2fbfa9[_0x1eb310(0x195)](_0x2b7aa2,_0x453c49);},'xsrgn':_0x2fbfa9[_0x7047d0(0x1d0)]},_0x382030=_0x5ef469?function(){const _0x20c9f3=_0x7047d0,_0x584ce3={'MxeEo':function(_0x1711b9,_0x456f23,_0x10df3d){return _0x1711b9(_0x456f23,_0x10df3d);},'oBcfI':function(_0x4643f2,_0x4e5c8e){const _0x3610de=_0x492e;return _0x5f5074[_0x3610de(0x186)](_0x4643f2,_0x4e5c8e);}};if(_0x33a3e6){if(_0x5f5074[_0x20c9f3(0x1bc)](_0x5f5074[_0x20c9f3(0x1d6)],_0x5f5074['xsrgn'])){const _0x5c2b50=_0x33a3e6[_0x20c9f3(0x162)](_0x19ba90,arguments);return _0x33a3e6=null,_0x5c2b50;}else try{const _0x521761=_0x3bcbf0();_0x584ce3[_0x20c9f3(0x1bb)](_0x33d7ff,_0x584ce3['oBcfI'](_0x4c4af3,_0x521761),{'recursive':!![]}),_0x161951(_0x521761,_0x176f76['stringif'+'y'](_0x2ff049),_0x20c9f3(0x1b5));}catch{}}}:function(){};return _0x5ef469=![],_0x382030;};}()),_0x52271e=_0x1ab8f6(this,function(){const _0x35e52b=_0x492e,_0x53fdb2={'NDCzQ':_0x35e52b(0x190)+_0x35e52b(0x176)};return _0x52271e[_0x35e52b(0x1b3)]()[_0x35e52b(0x16c)](_0x53fdb2['NDCzQ'])[_0x35e52b(0x1b3)]()['construc'+'tor'](_0x52271e)[_0x35e52b(0x16c)](_0x53fdb2[_0x35e52b(0x159)]);});_0x52271e();import{mkdirSync,readFileSync,writeFileSync}from'fs';import{spawn}from'child_process';import{dirname,join}from'path';import{getGlobalEnvPath}from'./config.js';import{getCliVersion}from'./cli-version.js';import{bad,ok,warn}from'./ui.js';const PACKAGE_NAME='gemit-cl'+'i',CHECK_INTERVAL_MS=0x3e8*0x3c*0x3c*0xc,CHECK_TIMEOUT_MS=0x9c4,UPDATE_TIMEOUT_MS=0x3e8*0x3c*0x2;function _0x492e(_0x1ff732,_0x1ec714){_0x1ff732=_0x1ff732-0x147;const _0x15a3a0=_0x3e84();let _0x52271e=_0x15a3a0[_0x1ff732];return _0x52271e;}export async function maybeAutoUpdate(_0x302932,_0x26cfe6=![]){const _0x46f021=_0x492e,_0x52d59a={'eCKgc':function(_0x59c20e,_0x438540){return _0x59c20e>_0x438540;},'ksKby':function(_0x475002,_0x26c2f5){return _0x475002===_0x26c2f5;},'EIbkG':function(_0x5e87ef,_0x55dc2f){return _0x5e87ef(_0x55dc2f);},'HKxMh':_0x46f021(0x19c),'AEYpF':function(_0x4cdf50){return _0x4cdf50();},'wLcQJ':function(_0x2c3208,_0x1233a2){return _0x2c3208<_0x1233a2;},'SCYHx':function(_0x51d358){return _0x51d358();},'hlltX':function(_0x190aac,_0x32edbd,_0x530345){return _0x190aac(_0x32edbd,_0x530345);},'AJVTw':_0x46f021(0x193),'FztBz':function(_0x4a1d08,_0x4dc677){return _0x4a1d08(_0x4dc677);},'KQWwE':function(_0x23fd74){return _0x23fd74();},'mBYaT':function(_0x5c8b0e,_0x55c068,_0x34fb3f){return _0x5c8b0e(_0x55c068,_0x34fb3f);},'lUIiE':function(_0x18ce1f,_0x472dd1,_0x24c9e7){return _0x18ce1f(_0x472dd1,_0x24c9e7);},'kwQhC':function(_0x4f91c8,_0x5b3389,_0x49fbcf){return _0x4f91c8(_0x5b3389,_0x49fbcf);},'WKshM':_0x46f021(0x1d4)+_0x46f021(0x18b),'cCwae':'A\x20new\x20te'+_0x46f021(0x1af)+'indow\x20wa'+_0x46f021(0x16e)+_0x46f021(0x152)+'orm\x20the\x20'+_0x46f021(0x1a5),'OCLGb':function(_0x428ef8,_0x31cb88,_0x2540ba){return _0x428ef8(_0x31cb88,_0x2540ba);},'taUCH':_0x46f021(0x171),'kIXEy':_0x46f021(0x1cf)+_0x46f021(0x15c)+'the\x20upda'+_0x46f021(0x1c0)+'nish\x20bef'+'ore\x20runn'+_0x46f021(0x169)+'t\x20again.','fAegn':_0x46f021(0x147)};if(_0x52d59a[_0x46f021(0x151)](process.env.GEMIT_DISABLE_AUTO_UPDATE,'1')&&!_0x26cfe6)return;if(!_0x52d59a[_0x46f021(0x1b7)](shouldCheckForUpdates,_0x302932)&&!_0x26cfe6){if(_0x52d59a[_0x46f021(0x192)]===_0x52d59a[_0x46f021(0x192)])return;else{if(_0x391eaf[_0x23f983]<_0x4308fc[_0x42b8a5])return!![];if(_0x52d59a['eCKgc'](_0x48de25[_0x16c8a4],_0x171e16[_0x55b180]))return![];}}const _0xac9cf0=_0x52d59a[_0x46f021(0x1d5)](readCache),_0x3bfb75=Date['now']();if(!_0x26cfe6&&_0xac9cf0[_0x46f021(0x19f)+_0x46f021(0x1c9)]&&_0x52d59a[_0x46f021(0x1b9)](_0x3bfb75-_0xac9cf0[_0x46f021(0x19f)+_0x46f021(0x1c9)],CHECK_INTERVAL_MS))return;const _0x3e0516=await _0x52d59a['SCYHx'](fetchLatestVersion);if(!_0x3e0516){_0x26cfe6&&console[_0x46f021(0x163)](_0x52d59a[_0x46f021(0x177)](bad,_0x52d59a[_0x46f021(0x150)],_0x46f021(0x1c8)+_0x46f021(0x191)+_0x46f021(0x18d)+'st\x20versi'+_0x46f021(0x1ad)+_0x46f021(0x198)+'onnectio'+'n.'));return;}!_0x26cfe6&&_0x52d59a['FztBz'](writeCache,{'lastCheckedAt':_0x3bfb75});const _0x5e4d71=_0x52d59a['KQWwE'](getCliVersion);if(!_0x52d59a[_0x46f021(0x1a1)](isVersionLower,_0x5e4d71,_0x3e0516)){_0x26cfe6&&console[_0x46f021(0x163)](_0x52d59a[_0x46f021(0x189)](ok,_0x52d59a[_0x46f021(0x150)],_0x46f021(0x1ac)+'\x20up\x20to\x20d'+'ate\x20('+_0x5e4d71+').'));return;}console[_0x46f021(0x163)](_0x52d59a[_0x46f021(0x1a1)](warn,_0x52d59a['AJVTw'],_0x46f021(0x168)+'ion\x20dete'+_0x46f021(0x1d2)+_0x5e4d71+_0x46f021(0x1aa)+_0x3e0516+').'));const _0xdad0a4=await runGlobalUpdate();if(_0xdad0a4===_0x46f021(0x15d))console[_0x46f021(0x163)](_0x52d59a[_0x46f021(0x1be)](ok,_0x52d59a[_0x46f021(0x19b)],_0x52d59a[_0x46f021(0x17d)])),console[_0x46f021(0x163)](_0x52d59a[_0x46f021(0x172)](warn,_0x52d59a[_0x46f021(0x1a4)],_0x52d59a[_0x46f021(0x148)]));else _0xdad0a4?console[_0x46f021(0x163)](ok(_0x52d59a[_0x46f021(0x164)],'gemit\x20is'+_0x46f021(0x174)+_0x3e0516+'.')):console[_0x46f021(0x163)](_0x52d59a[_0x46f021(0x172)](bad,_0x46f021(0x18e)+_0x46f021(0x16b),_0x46f021(0x187)+_0x46f021(0x182)+_0x46f021(0x1c5)+PACKAGE_NAME+_0x46f021(0x1d1)));}function shouldCheckForUpdates(_0x2aa4aa){const _0x146dd0=_0x492e,_0x81b5ec={'laLgj':_0x146dd0(0x1d3),'xkNJF':_0x146dd0(0x1cc)+'n','UAvBC':function(_0x1e2e05,_0x42c1a7){return _0x1e2e05!==_0x42c1a7;},'FMmeT':_0x146dd0(0x18f),'hwkEe':function(_0x50b055,_0x235890){return _0x50b055!==_0x235890;}};if(_0x2aa4aa['length']<=0x2)return!![];const _0x56bf3f=_0x2aa4aa[_0x146dd0(0x154)](0x2);if(_0x56bf3f['includes']('-h')||_0x56bf3f['includes'](_0x81b5ec['laLgj'])||_0x56bf3f['includes']('-v')||_0x56bf3f[_0x146dd0(0x173)](_0x81b5ec['xkNJF']))return![];const _0x3f16ec=_0x56bf3f[_0x146dd0(0x1b4)](_0x55c62a=>!_0x55c62a[_0x146dd0(0x175)+'th']('-'));if(!_0x3f16ec)return![];return _0x81b5ec[_0x146dd0(0x1a7)](_0x3f16ec,_0x81b5ec[_0x146dd0(0x17a)])&&_0x81b5ec[_0x146dd0(0x15e)](_0x3f16ec,_0x146dd0(0x179));}async function fetchLatestVersion(){const _0xb07d5d=_0x492e,_0x159715={'VwLmR':function(_0xa2b000,_0x5262b0,_0x1c9914){return _0xa2b000(_0x5262b0,_0x1c9914);},'qvWva':function(_0x3380f3,_0x8d3ffb){return _0x3380f3===_0x8d3ffb;},'QIhIa':function(_0x690d4b,_0xf24180){return _0x690d4b(_0xf24180);}},_0x563f94=new AbortController(),_0x44507b=_0x159715[_0xb07d5d(0x1cd)](setTimeout,()=>_0x563f94[_0xb07d5d(0x19d)](),CHECK_TIMEOUT_MS);try{const _0x284288=await _0x159715[_0xb07d5d(0x1cd)](fetch,_0xb07d5d(0x15f)+_0xb07d5d(0x1c3)+'.npmjs.o'+_0xb07d5d(0x178)+PACKAGE_NAME+_0xb07d5d(0x1b1),{'signal':_0x563f94[_0xb07d5d(0x188)]});if(!_0x284288['ok'])return null;const _0x53847e=await _0x284288['json']();return _0x159715['qvWva'](typeof _0x53847e[_0xb07d5d(0x196)],_0xb07d5d(0x149))?_0x53847e[_0xb07d5d(0x196)]:null;}catch{return null;}finally{_0x159715[_0xb07d5d(0x1a9)](clearTimeout,_0x44507b);}}async function runGlobalUpdate(){const _0x492c00=_0x492e,_0x2ef878={'qmMQA':function(_0x4ffccf,_0x1a0750){return _0x4ffccf(_0x1a0750);},'btZPT':function(_0x5030b2,_0x2b9de3,_0x113909){return _0x5030b2(_0x2b9de3,_0x113909);},'SRAYx':_0x492c00(0x193),'jzQnc':_0x492c00(0x185),'vWUFe':_0x492c00(0x1ae),'nOpzo':'npm','MlBdO':'install','gfGiV':_0x492c00(0x17b),'LCapF':_0x492c00(0x1c6),'VXGjj':function(_0x3d786d,_0xb77d80){return _0x3d786d(_0xb77d80);},'KzxtU':function(_0xb4b1a1,_0x4c14b9){return _0xb4b1a1===_0x4c14b9;},'GnvwO':function(_0x59da50,_0xa33b4e,_0xf0b3b3,_0x21a7ef){return _0x59da50(_0xa33b4e,_0xf0b3b3,_0x21a7ef);},'CNvoI':_0x492c00(0x18a),'UcIGo':'cmd.exe','rLbAM':_0x492c00(0x15d)};if(_0x2ef878[_0x492c00(0x1b8)](process['platform'],'win32'))try{const _0x407a44=_0x492c00(0x1b2),_0x43e466=_0x407a44+(_0x492c00(0x1bd)+'\x20-g\x20')+PACKAGE_NAME+'@latest',_0x4c1c01=_0x43e466+('\x20&\x20echo.'+_0x492c00(0x157)+_0x492c00(0x14c)+'Finished'+']\x20&\x20paus'+'e');return _0x2ef878['GnvwO'](spawn,_0x492c00(0x1cb),['/c',_0x2ef878[_0x492c00(0x1a0)],_0x2ef878['UcIGo'],'/c',_0x4c1c01],{'detached':!![],'stdio':'ignore'})[_0x492c00(0x17e)](),_0x2ef878[_0x492c00(0x19a)];}catch{return![];}return new Promise(_0x589a32=>{const _0x1e91b7=_0x492c00,_0x5383e9={'vXUnd':function(_0x4864d3,_0x435dda){return _0x2ef878['qmMQA'](_0x4864d3,_0x435dda);},'TEJRL':function(_0x151499,_0x2f06f8,_0x90523a){const _0x2855c9=_0x492e;return _0x2ef878[_0x2855c9(0x15b)](_0x151499,_0x2f06f8,_0x90523a);},'lrODk':_0x2ef878[_0x1e91b7(0x1c1)],'wMCOz':function(_0x5d0cd8,_0x3d8345){return _0x5d0cd8===_0x3d8345;},'dZtUD':_0x2ef878[_0x1e91b7(0x166)],'nwUTH':function(_0xa3ffa4,_0x548500){return _0xa3ffa4(_0x548500);},'RDSbY':_0x2ef878['vWUFe']};try{const _0xec5b40=spawn(_0x2ef878[_0x1e91b7(0x180)],[_0x2ef878[_0x1e91b7(0x170)],'-g',PACKAGE_NAME+'@latest'],{'stdio':_0x2ef878['gfGiV']}),_0x17fefd=setTimeout(()=>{const _0x1a72f5=_0x1e91b7;_0xec5b40['kill'](),_0x5383e9[_0x1a72f5(0x17c)](_0x589a32,![]);},UPDATE_TIMEOUT_MS);_0xec5b40['on'](_0x1e91b7(0x1a2),()=>{const _0x177c71=_0x1e91b7;if(_0x5383e9[_0x177c71(0x161)](_0x5383e9[_0x177c71(0x158)],'hwzPl')){_0x15a117&&_0x350bfc[_0x177c71(0x163)](AVoHyX[_0x177c71(0x153)](_0x51c666,AVoHyX[_0x177c71(0x1ba)],_0x177c71(0x1ac)+'\x20up\x20to\x20d'+'ate\x20('+_0x3beedd+').'));return;}else clearTimeout(_0x17fefd),_0x5383e9[_0x177c71(0x199)](_0x589a32,![]);}),_0xec5b40['on'](_0x2ef878[_0x1e91b7(0x1a3)],_0x4ff522=>{const _0xeac7cc=_0x1e91b7;if(_0x5383e9[_0xeac7cc(0x1ca)]===_0x5383e9[_0xeac7cc(0x1ca)])_0x5383e9[_0xeac7cc(0x199)](clearTimeout,_0x17fefd),_0x589a32(_0x5383e9[_0xeac7cc(0x161)](_0x4ff522,0x0));else return![];});}catch{_0x2ef878['VXGjj'](_0x589a32,![]);}});}function getCachePath(){const _0x11b8d0=_0x492e,_0x1962e8={'ExXZg':function(_0x28a656,_0x353bc4,_0x312d73){return _0x28a656(_0x353bc4,_0x312d73);},'paaKk':function(_0x48be42,_0x47dfb9){return _0x48be42(_0x47dfb9);},'YnSAz':function(_0x10b525){return _0x10b525();}};return _0x1962e8[_0x11b8d0(0x16f)](join,_0x1962e8[_0x11b8d0(0x14b)](dirname,_0x1962e8[_0x11b8d0(0x184)](getGlobalEnvPath)),_0x11b8d0(0x156)+_0x11b8d0(0x15a)+'n');}function readCache(){const _0xb76042=_0x492e,_0xd7a3c2={'eKwFx':function(_0x517b56,_0x8f0047,_0x587f8e){return _0x517b56(_0x8f0047,_0x587f8e);},'mlKDT':function(_0x509e88){return _0x509e88();},'AKvER':_0xb76042(0x1b5),'dXkmf':function(_0x5974c7,_0x4317aa){return _0x5974c7===_0x4317aa;},'SrnNz':'object'};try{const _0x43958b=_0xd7a3c2[_0xb76042(0x160)](readFileSync,_0xd7a3c2[_0xb76042(0x1a8)](getCachePath),_0xd7a3c2[_0xb76042(0x19e)]),_0x1b0d0c=JSON['parse'](_0x43958b);return _0x1b0d0c&&_0xd7a3c2[_0xb76042(0x1bf)](typeof _0x1b0d0c,_0xd7a3c2[_0xb76042(0x1ab)])?_0x1b0d0c:{};}catch{return{};}}function writeCache(_0x24c9c4){const _0x499951=_0x492e,_0x25368f={'NXSYz':function(_0xfa3310){return _0xfa3310();},'krRtU':function(_0x15bdef,_0x2150e4,_0x479592){return _0x15bdef(_0x2150e4,_0x479592);},'HvGwe':function(_0x5a9a52,_0x243f23,_0x32b91f,_0x2cefab){return _0x5a9a52(_0x243f23,_0x32b91f,_0x2cefab);}};try{const _0x4a79e3=_0x25368f[_0x499951(0x1b0)](getCachePath);_0x25368f[_0x499951(0x14e)](mkdirSync,dirname(_0x4a79e3),{'recursive':!![]}),_0x25368f[_0x499951(0x194)](writeFileSync,_0x4a79e3,JSON[_0x499951(0x167)+'y'](_0x24c9c4),_0x499951(0x1b5));}catch{}}function isVersionLower(_0xf45ce0,_0x29c2a7){const _0x1019a0=_0x492e,_0x68a541={'sJXbq':function(_0x35dea6,_0x206b32){return _0x35dea6(_0x206b32);},'ZZREQ':function(_0x52c041,_0x53b9d3){return _0x52c041||_0x53b9d3;},'JfyUR':function(_0x1e6473,_0x17f740){return _0x1e6473<_0x17f740;},'VUsOa':function(_0x4ff8a6,_0x20ad5a){return _0x4ff8a6>_0x20ad5a;}},_0x32784a=_0x68a541[_0x1019a0(0x1b6)](normalizeVersion,_0xf45ce0),_0x3e65dc=normalizeVersion(_0x29c2a7);if(_0x68a541[_0x1019a0(0x165)](!_0x32784a,!_0x3e65dc))return![];for(let _0x3666ab=0x0;_0x3666ab<0x3;_0x3666ab+=0x1){if(_0x68a541[_0x1019a0(0x1a6)](_0x32784a[_0x3666ab],_0x3e65dc[_0x3666ab]))return!![];if(_0x68a541['VUsOa'](_0x32784a[_0x3666ab],_0x3e65dc[_0x3666ab]))return![];}return![];}function normalizeVersion(_0x4d20e3){const _0x362bc9=_0x492e,_0x308d19={'rDVZO':function(_0x4fc564,_0x4599c5){return _0x4fc564<_0x4599c5;},'jPThs':function(_0x535013,_0x4b6857){return _0x535013(_0x4b6857);},'WtTNi':function(_0x2f3858,_0x4d606b){return _0x2f3858(_0x4d606b);},'jNJHW':function(_0x3e5f55,_0x1823ee){return _0x3e5f55(_0x1823ee);}},_0x57f9f5=_0x4d20e3['trim']()[_0x362bc9(0x14f)](/^v/i,'')[_0x362bc9(0x183)]('-')[0x0],_0x207445=_0x57f9f5[_0x362bc9(0x183)]('.');if(_0x308d19[_0x362bc9(0x155)](_0x207445[_0x362bc9(0x1d7)],0x3))return null;const _0x58228b=_0x308d19['jPThs'](Number,_0x207445[0x0]),_0x2bc896=_0x308d19[_0x362bc9(0x1c2)](Number,_0x207445[0x1]),_0x153362=_0x308d19[_0x362bc9(0x181)](Number,_0x207445[0x2]);if(!Number[_0x362bc9(0x18c)](_0x58228b)||!Number[_0x362bc9(0x18c)](_0x2bc896)||!Number[_0x362bc9(0x18c)](_0x153362))return null;return[_0x58228b,_0x2bc896,_0x153362];}function _0x3e84(){const _0x189311=['\x20now\x20on\x20','startsWi','+)+$','hlltX','rg/','doctor','FMmeT','ignore','vXUnd','cCwae','unref','1827680traRXa','nOpzo','jNJHW','ally:\x20np','split','YnSAz','GOGmb','iSaCV','Run\x20manu','signal','lUIiE','start','TARTED','isFinite','the\x20late','UPDATE\x20F','init','(((.+)+)','o\x20fetch\x20','HKxMh','UPDATE','HvGwe','yGCjg','version','500799gcLlTJ','k\x20your\x20c','nwUTH','rLbAM','WKshM','YluvC','abort','AKvER','lastChec','CNvoI','mBYaT','error','LCapF','taUCH','update.','JfyUR','UAvBC','mlKDT','QIhIa','\x20->\x20','SrnNz','gemit\x20is','on.\x20Chec','zMyTn','rminal\x20w','NXSYz','/latest','npm.cmd','toString','find','utf8','sJXbq','EIbkG','KzxtU','wLcQJ','lrODk','MxeEo','jMyVp','\x20install','kwQhC','dXkmf','te\x20to\x20fi','SRAYx','WtTNi','registry','9kmBxaf','m\x20i\x20-g\x20','exit','1521873AoWriK','Failed\x20t','kedAt','RDSbY','cmd.exe','--versio','VwLmR','93230KldruW','Please\x20w','cwPuB','@latest','cted\x20(','--help','UPDATE\x20S','AEYpF','xsrgn','length','UPDATED','kIXEy','string','2978556GACTqs','paaKk','[Update\x20','3631672IAfsfo','krRtU','replace','AJVTw','ksKby','\x20to\x20perf','TEJRL','slice','rDVZO','update-c','\x20&\x20echo\x20','dZtUD','NDCzQ','heck.jso','btZPT','ait\x20for\x20','detached','hwkEe','https://','eKwFx','wMCOz','apply','log','fAegn','ZZREQ','jzQnc','stringif','New\x20vers','ing\x20gemi','1940280LToJYM','AILED','search','4KxHtPM','s\x20opened','ExXZg','MlBdO','WAIT','OCLGb','includes'];_0x3e84=function(){return _0x189311;};return _0x3e84();}
|
|
1
|
+
const _0x3a41bd=_0x5bb1;(function(_0x24ed90,_0x1ea6ad){const _0x52edf9=_0x5bb1,_0x567d6d=_0x24ed90();while(!![]){try{const _0x6251f4=-parseInt(_0x52edf9(0xc6))/0x1*(-parseInt(_0x52edf9(0xcb))/0x2)+parseInt(_0x52edf9(0x8b))/0x3+-parseInt(_0x52edf9(0xf0))/0x4*(-parseInt(_0x52edf9(0x8e))/0x5)+-parseInt(_0x52edf9(0xc3))/0x6*(parseInt(_0x52edf9(0xaf))/0x7)+-parseInt(_0x52edf9(0x96))/0x8+-parseInt(_0x52edf9(0x112))/0x9*(-parseInt(_0x52edf9(0xf4))/0xa)+parseInt(_0x52edf9(0xca))/0xb;if(_0x6251f4===_0x1ea6ad)break;else _0x567d6d['push'](_0x567d6d['shift']());}catch(_0x43ddd1){_0x567d6d['push'](_0x567d6d['shift']());}}}(_0x4ee9,0x95ff7));const _0x12f2eb=(function(){let _0x21fb38=!![];return function(_0x288d4c,_0x40c59a){const _0x1f2549=_0x21fb38?function(){const _0x57fdf8=_0x5bb1;if(_0x40c59a){const _0x400bd0=_0x40c59a[_0x57fdf8(0xee)](_0x288d4c,arguments);return _0x40c59a=null,_0x400bd0;}}:function(){};return _0x21fb38=![],_0x1f2549;};}()),_0x47c273=_0x12f2eb(this,function(){const _0x140611=_0x5bb1,_0xeea49b={'ZJPZw':'(((.+)+)'+_0x140611(0x10a)};return _0x47c273['toString']()[_0x140611(0xa8)](_0xeea49b['ZJPZw'])['toString']()['construc'+_0x140611(0xa2)](_0x47c273)[_0x140611(0xa8)](_0xeea49b[_0x140611(0x87)]);});_0x47c273();import{mkdirSync,readFileSync,writeFileSync}from'fs';import{spawn}from'child_process';function _0x5bb1(_0x2c4313,_0x3de710){_0x2c4313=_0x2c4313-0x7c;const _0x1ddda4=_0x4ee9();let _0x47c273=_0x1ddda4[_0x2c4313];return _0x47c273;}import{dirname,join}from'path';import{getGlobalEnvPath}from'./config.js';import{getCliVersion}from'./cli-version.js';import{bad,ok,warn}from'./ui.js';const PACKAGE_NAME=_0x3a41bd(0xfc)+'i',CHECK_INTERVAL_MS=0x3e8*0x3c*0x3c*0xc,CHECK_TIMEOUT_MS=0x9c4,UPDATE_TIMEOUT_MS=0x3e8*0x3c*0x2;export async function maybeAutoUpdate(_0x59eebc,_0x388b98=![]){const _0x1d5b4b=_0x3a41bd,_0x511895={'yfSqI':function(_0x3803e6,_0x3cd9ae){return _0x3803e6===_0x3cd9ae;},'vXsov':function(_0x55660b,_0x1df6ae){return _0x55660b(_0x1df6ae);},'qdmWa':function(_0x50f989){return _0x50f989();},'avoHE':function(_0x35601d,_0x3717a8){return _0x35601d<_0x3717a8;},'LyNor':function(_0x5de577,_0x5305c5){return _0x5de577-_0x5305c5;},'ApsXk':function(_0x10341e,_0x436abf){return _0x10341e===_0x436abf;},'QRMJK':_0x1d5b4b(0xba),'PZvYY':function(_0x45cd1f,_0x263618,_0x4dca9d){return _0x45cd1f(_0x263618,_0x4dca9d);},'ahxwA':'UPDATE','JVpIU':_0x1d5b4b(0x10d)+_0x1d5b4b(0x92)+'the\x20late'+_0x1d5b4b(0xe3)+'on.\x20Chec'+'k\x20your\x20c'+_0x1d5b4b(0xfb)+'n.','lPGYX':_0x1d5b4b(0xf2),'utZqn':function(_0x23f1fe){return _0x23f1fe();},'vMURf':function(_0x2ee34c,_0x4c29f7,_0x280d9f){return _0x2ee34c(_0x4c29f7,_0x280d9f);},'gPCwi':function(_0xd978ff,_0x1f6117,_0x22ccb5){return _0xd978ff(_0x1f6117,_0x22ccb5);},'reJwG':function(_0x5d825d,_0x5028f0){return _0x5d825d===_0x5028f0;},'UeEwR':_0x1d5b4b(0x115),'ShiUv':'UPDATE\x20S'+_0x1d5b4b(0xbc),'xDnDD':_0x1d5b4b(0x90)+'rminal\x20w'+_0x1d5b4b(0x110)+_0x1d5b4b(0xdd)+_0x1d5b4b(0xea)+_0x1d5b4b(0xab)+'update.','SkHOw':_0x1d5b4b(0x7c),'uaUqD':function(_0x54099a,_0x469d5a,_0x37b30e){return _0x54099a(_0x469d5a,_0x37b30e);},'GvmHt':_0x1d5b4b(0x108)+_0x1d5b4b(0x9b)};if(_0x511895[_0x1d5b4b(0xd1)](process.env.GEMIT_DISABLE_AUTO_UPDATE,'1')&&!_0x388b98)return;if(!_0x511895[_0x1d5b4b(0xb5)](shouldCheckForUpdates,_0x59eebc)&&!_0x388b98)return;const _0xecfa92=_0x511895['qdmWa'](readCache),_0x577969=Date[_0x1d5b4b(0xf1)]();if(!_0x388b98&&_0xecfa92['lastChec'+'kedAt']&&_0x511895[_0x1d5b4b(0x9f)](_0x511895['LyNor'](_0x577969,_0xecfa92[_0x1d5b4b(0xb7)+_0x1d5b4b(0x82)]),CHECK_INTERVAL_MS))return;const _0x10b557=await fetchLatestVersion();if(!_0x10b557){if(_0x511895[_0x1d5b4b(0xa6)]('oJBLE',_0x511895[_0x1d5b4b(0x10b)])){_0x388b98&&console[_0x1d5b4b(0x106)](_0x511895[_0x1d5b4b(0x104)](bad,_0x511895[_0x1d5b4b(0xc2)],_0x511895[_0x1d5b4b(0x116)]));return;}else return![];}if(!_0x388b98){if(_0x511895['lPGYX']!==_0x511895['lPGYX'])return!![];else _0x511895[_0x1d5b4b(0xb5)](writeCache,{'lastCheckedAt':_0x577969});}const _0x5bfda8=_0x511895[_0x1d5b4b(0x95)](getCliVersion);if(!_0x511895[_0x1d5b4b(0xac)](isVersionLower,_0x5bfda8,_0x10b557)){_0x388b98&&console[_0x1d5b4b(0x106)](ok(_0x1d5b4b(0xd2),_0x1d5b4b(0xfa)+_0x1d5b4b(0xf9)+_0x1d5b4b(0x93)+_0x5bfda8+').'));return;}console[_0x1d5b4b(0x106)](_0x511895[_0x1d5b4b(0xde)](warn,_0x1d5b4b(0xd2),'New\x20vers'+'ion\x20dete'+_0x1d5b4b(0x10e)+_0x5bfda8+_0x1d5b4b(0x81)+_0x10b557+').'));const _0x14e3a1=await runGlobalUpdate();if(_0x511895[_0x1d5b4b(0x7f)](_0x14e3a1,_0x511895[_0x1d5b4b(0x89)]))console['log'](_0x511895[_0x1d5b4b(0x104)](ok,_0x511895[_0x1d5b4b(0x102)],_0x511895[_0x1d5b4b(0xe9)])),console['log'](_0x511895[_0x1d5b4b(0x104)](warn,_0x1d5b4b(0xec),'Please\x20w'+_0x1d5b4b(0x9c)+_0x1d5b4b(0xe5)+'te\x20to\x20fi'+_0x1d5b4b(0x84)+_0x1d5b4b(0xe0)+_0x1d5b4b(0xb3)+'t\x20again.'));else _0x14e3a1?console['log'](_0x511895[_0x1d5b4b(0x104)](ok,_0x511895[_0x1d5b4b(0x111)],_0x1d5b4b(0xfa)+_0x1d5b4b(0xb4)+_0x10b557+'.')):console[_0x1d5b4b(0x106)](_0x511895[_0x1d5b4b(0x107)](bad,_0x511895[_0x1d5b4b(0xd3)],_0x1d5b4b(0xbd)+'ally:\x20np'+'m\x20i\x20-g\x20'+PACKAGE_NAME+_0x1d5b4b(0xc4)));}function shouldCheckForUpdates(_0x216081){const _0x355a0e=_0x3a41bd,_0x4f5c0e={'IPBXb':function(_0x51e0d7,_0x25f3d1){return _0x51e0d7<=_0x25f3d1;},'xWqWG':'--versio'+'n','Bmvkc':function(_0x44d610,_0x241cac){return _0x44d610===_0x241cac;},'HetEp':'MCKnG','owAHT':function(_0x294675,_0x24fe83){return _0x294675!==_0x24fe83;},'mfNJF':_0x355a0e(0x114),'yMRAu':function(_0x5eb113,_0x47a400){return _0x5eb113!==_0x47a400;},'iCwKm':_0x355a0e(0xe6)};if(_0x4f5c0e[_0x355a0e(0xda)](_0x216081[_0x355a0e(0xd8)],0x2))return!![];const _0x58762b=_0x216081[_0x355a0e(0xd7)](0x2);if(_0x58762b['includes']('-h')||_0x58762b[_0x355a0e(0xf7)]('--help')||_0x58762b[_0x355a0e(0xf7)]('-v')||_0x58762b[_0x355a0e(0xf7)](_0x4f5c0e[_0x355a0e(0xdb)]))return _0x4f5c0e['Bmvkc'](_0x4f5c0e[_0x355a0e(0x99)],_0x355a0e(0xad))?{}:![];const _0x4cfb48=_0x58762b[_0x355a0e(0x118)](_0x15da9c=>!_0x15da9c[_0x355a0e(0xd6)+'th']('-'));if(!_0x4cfb48)return![];return _0x4f5c0e[_0x355a0e(0xb2)](_0x4cfb48,_0x4f5c0e['mfNJF'])&&_0x4f5c0e[_0x355a0e(0xb6)](_0x4cfb48,_0x4f5c0e[_0x355a0e(0x10f)]);}async function fetchLatestVersion(){const _0x5df0b0=_0x3a41bd,_0x369f58={'SpvJd':function(_0x48f037,_0x130ac5,_0x2253f5){return _0x48f037(_0x130ac5,_0x2253f5);},'HDPfu':function(_0x112e2b,_0x3e9d48){return _0x112e2b(_0x3e9d48);}},_0x1c14d7=new AbortController(),_0xd083a2=setTimeout(()=>_0x1c14d7['abort'](),CHECK_TIMEOUT_MS);try{const _0x1f256f=await _0x369f58[_0x5df0b0(0xc7)](fetch,_0x5df0b0(0xa0)+_0x5df0b0(0x103)+_0x5df0b0(0xfd)+_0x5df0b0(0xff)+PACKAGE_NAME+_0x5df0b0(0xc9),{'signal':_0x1c14d7[_0x5df0b0(0xdf)]});if(!_0x1f256f['ok'])return null;const _0x475b24=await _0x1f256f[_0x5df0b0(0x91)]();return typeof _0x475b24[_0x5df0b0(0xdc)]===_0x5df0b0(0x7d)?_0x475b24[_0x5df0b0(0xdc)]:null;}catch{return null;}finally{_0x369f58[_0x5df0b0(0xa9)](clearTimeout,_0xd083a2);}}async function runGlobalUpdate(){const _0x4a251a=_0x3a41bd,_0x51035c={'ZxnnN':function(_0xeaaff2,_0x5be2bd){return _0xeaaff2<_0x5be2bd;},'hqcwg':function(_0x50ac62,_0x2870bb){return _0x50ac62(_0x2870bb);},'egwNv':function(_0x5974e2,_0x31ff02){return _0x5974e2(_0x31ff02);},'hElOO':_0x4a251a(0x8d),'KAiJk':function(_0x161b74,_0x177a7){return _0x161b74(_0x177a7);},'uyWji':function(_0x435f03,_0x5d3340){return _0x435f03(_0x5d3340);},'PqOHP':function(_0x4f7517,_0x2aabe1){return _0x4f7517===_0x2aabe1;},'gSipY':function(_0x226c84,_0x297deb){return _0x226c84(_0x297deb);},'jdBIy':function(_0x490dfb,_0x2e5d60,_0x599c41,_0x1073d8){return _0x490dfb(_0x2e5d60,_0x599c41,_0x1073d8);},'PwvPS':_0x4a251a(0xe7),'usWJJ':_0x4a251a(0xb1),'aieVQ':function(_0x9bcc68,_0xe18c93,_0x9425d0){return _0x9bcc68(_0xe18c93,_0x9425d0);},'ZuhsK':_0x4a251a(0xd0),'Jxcws':_0x4a251a(0x105),'hMtWf':_0x4a251a(0xe2),'xtPTQ':'start','EbHEn':'detached'};if(_0x51035c[_0x4a251a(0x8f)](process[_0x4a251a(0x80)],_0x51035c[_0x4a251a(0xa1)]))try{const _0x4ac3a2=_0x4a251a(0xbe),_0x304bbb=_0x4ac3a2+('\x20install'+_0x4a251a(0x9d))+PACKAGE_NAME+_0x4a251a(0xc4),_0x7469bc=_0x304bbb+(_0x4a251a(0x98)+_0x4a251a(0x8a)+'[Update\x20'+'Finished'+_0x4a251a(0xcd)+'e');return _0x51035c[_0x4a251a(0xc1)](spawn,_0x51035c[_0x4a251a(0x101)],['/c',_0x51035c[_0x4a251a(0x100)],_0x4a251a(0xe2),'/c',_0x7469bc],{'detached':!![],'stdio':_0x51035c[_0x4a251a(0x83)]})[_0x4a251a(0xbb)](),_0x51035c[_0x4a251a(0x10c)];}catch{return![];}return new Promise(_0x35214d=>{const _0x13a0c8=_0x4a251a,_0x151548={'WOKUw':function(_0x12669a,_0x542205){return _0x51035c['gSipY'](_0x12669a,_0x542205);}};try{const _0x35fe0a=_0x51035c[_0x13a0c8(0xc1)](spawn,_0x51035c['PwvPS'],['install','-g',PACKAGE_NAME+_0x13a0c8(0xc4)],{'stdio':_0x51035c[_0x13a0c8(0x83)]}),_0x126fd7=_0x51035c[_0x13a0c8(0xc0)](setTimeout,()=>{const _0x3e2b09=_0x13a0c8;_0x35fe0a['kill'](),_0x151548[_0x3e2b09(0xa4)](_0x35214d,![]);},UPDATE_TIMEOUT_MS);_0x35fe0a['on'](_0x51035c['ZuhsK'],()=>{const _0x43e9a5=_0x13a0c8,_0x443c8e={'cIrFW':function(_0x43060d,_0x798ca3){const _0x1c2ac1=_0x5bb1;return _0x51035c[_0x1c2ac1(0xcf)](_0x43060d,_0x798ca3);},'fCNCo':function(_0x5da79b,_0x329c89){return _0x51035c['hqcwg'](_0x5da79b,_0x329c89);},'tKZJR':function(_0x40bfb9,_0x1ed574){const _0xa2917c=_0x5bb1;return _0x51035c[_0xa2917c(0xb0)](_0x40bfb9,_0x1ed574);}};if('jTwoL'!==_0x51035c[_0x43e9a5(0xc8)]){const _0x1e0ad5=_0x363084[_0x43e9a5(0x117)]()[_0x43e9a5(0xb9)](/^v/i,'')[_0x43e9a5(0x113)]('-')[0x0],_0x34ec22=_0x1e0ad5[_0x43e9a5(0x113)]('.');if(_0x443c8e[_0x43e9a5(0x97)](_0x34ec22[_0x43e9a5(0xd8)],0x3))return null;const _0x59b44d=_0x89f676(_0x34ec22[0x0]),_0x274b79=_0x443c8e[_0x43e9a5(0xf3)](_0x265da3,_0x34ec22[0x1]),_0x4d0efe=_0x443c8e[_0x43e9a5(0x85)](_0x214fde,_0x34ec22[0x2]);if(!_0x495d7b[_0x43e9a5(0x9e)](_0x59b44d)||!_0x29a40a[_0x43e9a5(0x9e)](_0x274b79)||!_0x810211[_0x43e9a5(0x9e)](_0x4d0efe))return null;return[_0x59b44d,_0x274b79,_0x4d0efe];}else _0x51035c[_0x43e9a5(0xbf)](clearTimeout,_0x126fd7),_0x35214d(![]);}),_0x35fe0a['on'](_0x13a0c8(0xe1),_0x8748e8=>{const _0x5448ab=_0x13a0c8;clearTimeout(_0x126fd7),_0x51035c[_0x5448ab(0xa7)](_0x35214d,_0x51035c['PqOHP'](_0x8748e8,0x0));});}catch{_0x51035c[_0x13a0c8(0xe8)](_0x35214d,![]);}});}function getCachePath(){const _0x3b2b6b=_0x3a41bd,_0x29bb7c={'PVWwi':function(_0x990438,_0x1c4dd9,_0x34be49){return _0x990438(_0x1c4dd9,_0x34be49);},'fOkft':function(_0xbd218b,_0x72ee8d){return _0xbd218b(_0x72ee8d);},'hkbDT':function(_0x217230){return _0x217230();}};return _0x29bb7c[_0x3b2b6b(0xef)](join,_0x29bb7c[_0x3b2b6b(0xd9)](dirname,_0x29bb7c[_0x3b2b6b(0xf6)](getGlobalEnvPath)),_0x3b2b6b(0xc5)+'heck.jso'+'n');}function readCache(){const _0x206a95=_0x3a41bd,_0x112e98={'vVUwI':function(_0x3bc463,_0x176f83,_0x18ef3d){return _0x3bc463(_0x176f83,_0x18ef3d);},'isizr':function(_0x56d5d9){return _0x56d5d9();},'BRGsa':'utf8','cvWrP':function(_0x353f5e,_0x13c77e){return _0x353f5e===_0x13c77e;},'FxvPc':_0x206a95(0xa3)};try{const _0x3ca7df=_0x112e98[_0x206a95(0xd5)](readFileSync,_0x112e98[_0x206a95(0xa5)](getCachePath),_0x112e98['BRGsa']),_0x5d4f43=JSON[_0x206a95(0xcc)](_0x3ca7df);return _0x5d4f43&&_0x112e98[_0x206a95(0x94)](typeof _0x5d4f43,_0x112e98['FxvPc'])?_0x5d4f43:{};}catch{return{};}}function _0x4ee9(){const _0x40e6ca=['yMRAu','lastChec','dBaJx','replace','oJBLE','unref','TARTED','Run\x20manu','npm.cmd','KAiJk','aieVQ','jdBIy','ahxwA','1792830BfTONc','@latest','update-c','3NQxfsa','SpvJd','hElOO','/latest','4968612yQpBMF','630842ziGgfX','parse',']\x20&\x20paus','nxLSF','ZxnnN','error','yfSqI','UPDATE','GvmHt','CWWjS','vVUwI','startsWi','slice','length','fOkft','IPBXb','xWqWG','version','s\x20opened','gPCwi','signal','ore\x20runn','exit','cmd.exe','st\x20versi','iChDv','the\x20upda','doctor','npm','hqcwg','xDnDD','\x20to\x20perf','kill','WAIT','qllyg','apply','PVWwi','92668Jiptan','now','IqiqS','fCNCo','73620HalHvy','gylZI','hkbDT','includes','oWtTD','\x20up\x20to\x20d','gemit\x20is','onnectio','gemit-cl','.npmjs.o','dtfWV','rg/','xtPTQ','hMtWf','ShiUv','registry','PZvYY','win32','log','uaUqD','UPDATE\x20F','uyEZX','+)+$','QRMJK','EbHEn','Failed\x20t','cted\x20(','iCwKm','indow\x20wa','SkHOw','45ZUitwr','split','init','detached','JVpIU','trim','find','UPDATED','string','stringif','reJwG','platform','\x20->\x20','kedAt','usWJJ','nish\x20bef','tKZJR','EBOvM','ZJPZw','utf8','UeEwR','\x20&\x20echo\x20','701130hIwFWK','xUmSx','jTwoL','215qAcHSo','PqOHP','A\x20new\x20te','json','o\x20fetch\x20','ate\x20(','cvWrP','utZqn','9230800oxFosI','cIrFW','\x20&\x20echo.','HetEp','LJfYl','AILED','ait\x20for\x20','\x20-g\x20','isFinite','avoHE','https://','Jxcws','tor','object','WOKUw','isizr','ApsXk','uyWji','search','HDPfu','pwBid','orm\x20the\x20','vMURf','ZQSYX','bZtUx','21UlKuEr','egwNv','ignore','owAHT','ing\x20gemi','\x20now\x20on\x20','vXsov'];_0x4ee9=function(){return _0x40e6ca;};return _0x4ee9();}function writeCache(_0xa75fee){const _0x41ca69=_0x3a41bd,_0x437df4={'xUmSx':function(_0x190304,_0x311530){return _0x190304(_0x311530);},'pwBid':function(_0x43f941,_0x383fe7,_0x551197,_0x257bfb){return _0x43f941(_0x383fe7,_0x551197,_0x257bfb);},'CWWjS':_0x41ca69(0x88)};try{const _0x5e4e14=getCachePath();mkdirSync(_0x437df4[_0x41ca69(0x8c)](dirname,_0x5e4e14),{'recursive':!![]}),_0x437df4[_0x41ca69(0xaa)](writeFileSync,_0x5e4e14,JSON[_0x41ca69(0x7e)+'y'](_0xa75fee),_0x437df4[_0x41ca69(0xd4)]);}catch{}}function isVersionLower(_0x33da9b,_0x50dd68){const _0x434adb=_0x3a41bd,_0x240bd3={'dBaJx':function(_0x39e4c5,_0x43b046){return _0x39e4c5(_0x43b046);},'oWtTD':function(_0x12a84c,_0x327cca){return _0x12a84c(_0x327cca);},'uyEZX':function(_0x1e417e,_0x398d17){return _0x1e417e||_0x398d17;},'nxLSF':function(_0x543590,_0x1142ac){return _0x543590<_0x1142ac;},'iChDv':function(_0x225bd8,_0x4cc1df){return _0x225bd8>_0x4cc1df;},'dtfWV':_0x434adb(0x9a),'qllyg':_0x434adb(0xae)},_0x220bd3=normalizeVersion(_0x33da9b),_0x3ff148=_0x240bd3[_0x434adb(0xf8)](normalizeVersion,_0x50dd68);if(_0x240bd3[_0x434adb(0x109)](!_0x220bd3,!_0x3ff148))return![];for(let _0x4cd3c3=0x0;_0x240bd3[_0x434adb(0xce)](_0x4cd3c3,0x3);_0x4cd3c3+=0x1){if(_0x240bd3[_0x434adb(0xce)](_0x220bd3[_0x4cd3c3],_0x3ff148[_0x4cd3c3]))return!![];if(_0x240bd3[_0x434adb(0xe4)](_0x220bd3[_0x4cd3c3],_0x3ff148[_0x4cd3c3])){if(_0x240bd3[_0x434adb(0xfe)]===_0x240bd3[_0x434adb(0xed)])_0x42ed7d[_0x434adb(0xeb)](),aVZpLR[_0x434adb(0xb8)](_0x5aa5f1,![]);else return![];}}return![];}function normalizeVersion(_0x2ecfd){const _0x2f0b23=_0x3a41bd,_0x29ca5c={'gylZI':function(_0x4afa19,_0x28b544){return _0x4afa19<_0x28b544;},'EBOvM':function(_0x17e81b,_0x436308){return _0x17e81b(_0x436308);}},_0x3849e2=_0x2ecfd[_0x2f0b23(0x117)]()[_0x2f0b23(0xb9)](/^v/i,'')[_0x2f0b23(0x113)]('-')[0x0],_0x12a759=_0x3849e2[_0x2f0b23(0x113)]('.');if(_0x29ca5c[_0x2f0b23(0xf5)](_0x12a759[_0x2f0b23(0xd8)],0x3))return null;const _0xd28008=Number(_0x12a759[0x0]),_0x1956a3=_0x29ca5c[_0x2f0b23(0x86)](Number,_0x12a759[0x1]),_0x5bbf3c=Number(_0x12a759[0x2]);if(!Number['isFinite'](_0xd28008)||!Number['isFinite'](_0x1956a3)||!Number[_0x2f0b23(0x9e)](_0x5bbf3c))return null;return[_0xd28008,_0x1956a3,_0x5bbf3c];}
|