gemit-cli 1.9.0 → 2.0.0

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.
@@ -1 +1 @@
1
- (function(_0x1a881c,_0x5a7550){const _0x5c53dc=_0x2b7a,_0x3f3960=_0x1a881c();while(!![]){try{const _0x30195f=parseInt(_0x5c53dc(0x109))/0x1*(parseInt(_0x5c53dc(0x101))/0x2)+-parseInt(_0x5c53dc(0x102))/0x3+parseInt(_0x5c53dc(0x113))/0x4*(parseInt(_0x5c53dc(0x10b))/0x5)+-parseInt(_0x5c53dc(0x10c))/0x6*(-parseInt(_0x5c53dc(0x107))/0x7)+parseInt(_0x5c53dc(0x10f))/0x8*(parseInt(_0x5c53dc(0x110))/0x9)+-parseInt(_0x5c53dc(0x103))/0xa*(parseInt(_0x5c53dc(0x108))/0xb)+-parseInt(_0x5c53dc(0xff))/0xc*(-parseInt(_0x5c53dc(0x116))/0xd);if(_0x30195f===_0x5a7550)break;else _0x3f3960['push'](_0x3f3960['shift']());}catch(_0x4a5f79){_0x3f3960['push'](_0x3f3960['shift']());}}}(_0x107e,0x7cb4e));const _0x2acffb=(function(){let _0x418a1c=!![];return function(_0x282e2d,_0xf95e92){const _0x2a0e28=_0x418a1c?function(){const _0xcc5df2=_0x2b7a;if(_0xf95e92){const _0x29f25a=_0xf95e92[_0xcc5df2(0x106)](_0x282e2d,arguments);return _0xf95e92=null,_0x29f25a;}}:function(){};return _0x418a1c=![],_0x2a0e28;};}()),_0x8c3e17=_0x2acffb(this,function(){const _0x4dbd3b=_0x2b7a,_0x1e5ae2={'nSjrG':_0x4dbd3b(0x104)+'+)+$'};return _0x8c3e17[_0x4dbd3b(0x100)]()[_0x4dbd3b(0x115)](_0x1e5ae2[_0x4dbd3b(0x119)])[_0x4dbd3b(0x100)]()[_0x4dbd3b(0x10d)+_0x4dbd3b(0x112)](_0x8c3e17)[_0x4dbd3b(0x115)](_0x1e5ae2[_0x4dbd3b(0x119)]);});function _0x2b7a(_0x20b3be,_0x22e8ed){_0x20b3be=_0x20b3be-0xfe;const _0x26a6ed=_0x107e();let _0x8c3e17=_0x26a6ed[_0x20b3be];return _0x8c3e17;}_0x8c3e17();import{createInterface}from'readline/promises';import{stdin as _0x4c3c3f,stdout as _0x46d140}from'process';export async function askConfirmation(_0x2e92a6,_0x8704e6={}){const _0x2c2958=_0x2b7a,_0xb88911={'GYxts':function(_0x51cdfa,_0x130b60){return _0x51cdfa(_0x130b60);},'iJyeE':function(_0xce82d3,_0x662c46){return _0xce82d3===_0x662c46;}},_0x17adb1=_0xb88911[_0x2c2958(0x117)](createInterface,{'input':_0x4c3c3f,'output':_0x46d140}),_0x2457ab=await _0x17adb1[_0x2c2958(0x10e)](_0x2e92a6);_0x17adb1[_0x2c2958(0x114)]();const _0x2dd048=_0x2457ab[_0x2c2958(0x105)]()[_0x2c2958(0x111)+_0x2c2958(0x10a)]();if(!_0x2dd048)return Boolean(_0x8704e6[_0x2c2958(0xfe)+'es']);return _0xb88911[_0x2c2958(0x118)](_0x2dd048,'y');}function _0x107e(){const _0x476777=['nSjrG','defaultY','7464awVYpt','toString','33458rQrGoh','1360575uVhPGZ','4390qiXyYZ','(((.+)+)','trim','apply','23814YJiqqw','20878aKjuxp','34kLLgkz','ase','664805qwWQJX','222zYlgFh','construc','question','16qsQude','1316547WmAjsr','toLowerC','tor','4IZcQER','close','search','14157WYuzVn','GYxts','iJyeE'];_0x107e=function(){return _0x476777;};return _0x107e();}export async function askInput(_0x13ce0b){const _0x34f9fc=_0x2b7a,_0x270fda=createInterface({'input':_0x4c3c3f,'output':_0x46d140}),_0x367ea0=await _0x270fda['question'](_0x13ce0b);return _0x270fda[_0x34f9fc(0x114)](),_0x367ea0['trim']();}export async function askEditableInput(_0x2b8bce,_0x4ccfe0){const _0x2af5a7=_0x2b7a,_0x47b11a={'CFxOu':function(_0x29b23f,_0x293f63){return _0x29b23f(_0x293f63);}},_0x3811ef=_0x47b11a['CFxOu'](createInterface,{'input':_0x4c3c3f,'output':_0x46d140}),_0x55b06e=await _0x3811ef[_0x2af5a7(0x10e)](_0x2b8bce);_0x3811ef[_0x2af5a7(0x114)]();const _0x28b357=_0x55b06e['trim']();if(!_0x28b357)return _0x4ccfe0;return _0x28b357;}
1
+ (function(_0x36e845,_0x36a151){const _0xa3ceb2=_0x4762,_0x488ba2=_0x36e845();while(!![]){try{const _0xee8054=-parseInt(_0xa3ceb2(0x1e5))/0x1+parseInt(_0xa3ceb2(0x1dd))/0x2*(parseInt(_0xa3ceb2(0x1f9))/0x3)+parseInt(_0xa3ceb2(0x214))/0x4+parseInt(_0xa3ceb2(0x226))/0x5*(parseInt(_0xa3ceb2(0x1f0))/0x6)+parseInt(_0xa3ceb2(0x1db))/0x7*(-parseInt(_0xa3ceb2(0x207))/0x8)+-parseInt(_0xa3ceb2(0x1d5))/0x9+-parseInt(_0xa3ceb2(0x222))/0xa;if(_0xee8054===_0x36a151)break;else _0x488ba2['push'](_0x488ba2['shift']());}catch(_0x203436){_0x488ba2['push'](_0x488ba2['shift']());}}}(_0x20f9,0x7d55b));const _0x7316de=(function(){let _0x2890de=!![];return function(_0x101dc2,_0x3b2cf0){const _0x4dfe60=_0x2890de?function(){const _0x5c72a2=_0x4762;if(_0x3b2cf0){const _0x16bf88=_0x3b2cf0[_0x5c72a2(0x1f7)](_0x101dc2,arguments);return _0x3b2cf0=null,_0x16bf88;}}:function(){};return _0x2890de=![],_0x4dfe60;};}()),_0x29d6a6=_0x7316de(this,function(){const _0x512163=_0x4762,_0x50451e={'UbEjZ':_0x512163(0x1e9)+'+)+$'};return _0x29d6a6['toString']()[_0x512163(0x1e1)](_0x50451e[_0x512163(0x22b)])[_0x512163(0x21e)]()[_0x512163(0x20a)+_0x512163(0x1ed)](_0x29d6a6)[_0x512163(0x1e1)](_0x50451e[_0x512163(0x22b)]);});_0x29d6a6();import{createInterface}from'readline/promises';import{stdin as _0x5d07c9,stdout as _0x4a194a}from'process';import{style,ui}from'./ui.js';function _0x20f9(){const _0x181467=['UGdBC','write','Gojgx','5032215VLXRza','stener','ing','replace','gray','close','7rxcumc','setRawMo','130154YzUQrn','PeBGu','wzbrg','ase','search','\x1b[D','\x0a\x20\x20','wZPCA','283934CUaZfi','Rvnzx','\x0d\x1b[2K\x20\x20','LXaqJ','(((.+)+)','RBzWG','wMthz','BRcHp','tor','oXFoE','nwEjB','18lrzZAS','dbRuQ','toLowerC','vmXHn','\x20\x20\x20\x20','exit','isTTY','apply','Yes','3HlJbmq','IJwjx','↑↓\x20·\x20Ent','OattP','eVDZh','bold','GRlVM','QuhIt','pause','\x1b[C','red','XGiGu','split','green','420872RZLvuI','rRYqt','PmazU','construc','removeLi','\x0d\x1b[2K','dim','mDARg','trim','HSNEK','ZEWOd','qUEtS','xFphj','3096880uQHhjJ','koMcc','question','stdout','stdin','yellow','\x0d\x1b[2K\x0a','ruIWv','then','VirJW','toString','\x1b[B','xHdjL','QExWe','3550430KpWioD','cyan','3|6|0|2|','gLHdZ','1541325OYJJSb','JiaWE','NZorw','ZnGeE','XrQwc','UbEjZ','defaultY','cDvSq'];_0x20f9=function(){return _0x181467;};return _0x20f9();}const OPTION_LINES=0x3,PRE_OPTION_LINES=0x2;function renderOptions(_0x45f23f,_0x261dca){const _0x4f9437=_0x4762,_0x40a3ae={'BRcHp':function(_0x31f854,_0x10f5be,_0x3de298,_0xfa1115){return _0x31f854(_0x10f5be,_0x3de298,_0xfa1115);},'IJwjx':function(_0x4bf4c5,_0x5efd7e,_0x104546){return _0x4bf4c5(_0x5efd7e,_0x104546);},'LXaqJ':'Yes'},_0x2c0385=_0x45f23f?_0x4f9437(0x1f4)+style('●',ui[_0x4f9437(0x223)],ui[_0x4f9437(0x1fe)])+'\x20'+_0x40a3ae[_0x4f9437(0x1ec)](style,_0x4f9437(0x1f8),ui['cyan'],ui[_0x4f9437(0x1fe)]):'\x20\x20\x20\x20'+_0x40a3ae[_0x4f9437(0x1fa)](style,'○',ui[_0x4f9437(0x1d9)])+'\x20\x20'+_0x40a3ae[_0x4f9437(0x1fa)](style,_0x40a3ae[_0x4f9437(0x1e8)],ui['gray']),_0x8600ae=!_0x45f23f?'\x20\x20\x20\x20'+_0x40a3ae[_0x4f9437(0x1ec)](style,'●',ui[_0x4f9437(0x223)],ui[_0x4f9437(0x1fe)])+'\x20'+_0x40a3ae['BRcHp'](style,'No',ui[_0x4f9437(0x223)],ui[_0x4f9437(0x1fe)]):_0x4f9437(0x1f4)+style('○',ui[_0x4f9437(0x1d9)])+'\x20\x20'+_0x40a3ae[_0x4f9437(0x1fa)](style,'No',ui[_0x4f9437(0x1d9)]);_0x261dca&&_0x4a194a['write']('\x1b['+OPTION_LINES+'A'),_0x4a194a[_0x4f9437(0x1d3)](_0x4f9437(0x20c)+_0x2c0385+'\x0a'),_0x4a194a['write'](_0x4f9437(0x20c)+_0x8600ae+'\x0a'),_0x4a194a[_0x4f9437(0x1d3)](_0x4f9437(0x21a));}function _0x4762(_0x445d9d,_0xfcc79a){_0x445d9d=_0x445d9d-0x1d1;const _0x2f0582=_0x20f9();let _0x29d6a6=_0x2f0582[_0x445d9d];return _0x29d6a6;}export function askConfirmation(_0xcea0c3,_0x49461a={}){const _0x1cabf8=_0x4762,_0x20f433={'PmazU':function(_0x4c9719,_0x5fd19a){return _0x4c9719(_0x5fd19a);},'koMcc':function(_0x38923c,_0x4fc950){return _0x38923c(_0x4fc950);},'ruIWv':function(_0x50e36c,_0x184750){return _0x50e36c===_0x184750;},'XGiGu':_0x1cabf8(0x225),'fPApW':'data','JiaWE':function(_0x2fabc1,_0x3fd199,_0x4f2cfa,_0x49d0df){return _0x2fabc1(_0x3fd199,_0x4f2cfa,_0x49d0df);},'OattP':function(_0x50b557,_0x27a9e4){return _0x50b557+_0x27a9e4;},'NZorw':function(_0x272b76,_0x2c8791,_0x154b8d){return _0x272b76(_0x2c8791,_0x154b8d);},'QuhIt':_0x1cabf8(0x224)+'1|4|5','xFphj':_0x1cabf8(0x21f),'XCLmJ':_0x1cabf8(0x202),'mDARg':function(_0x580cf4,_0x5f1e4a){return _0x580cf4===_0x5f1e4a;},'ZnGeE':function(_0x45bd17,_0x6bf4b5){return _0x45bd17===_0x6bf4b5;},'QExWe':function(_0x441ef9,_0x5a370b){return _0x441ef9===_0x5a370b;},'oXFoE':_0x1cabf8(0x1e2),'VirJW':function(_0x432277,_0x222b4c){return _0x432277!==_0x222b4c;},'ZEWOd':function(_0x13bd43,_0x5a3f0c,_0x89ef96){return _0x13bd43(_0x5a3f0c,_0x89ef96);},'Gojgx':_0x1cabf8(0x1d2)},_0x1a83fb=_0xcea0c3[_0x1cabf8(0x1d8)](/\s*\(.*?\)\s*:?\s*$/,'')[_0x1cabf8(0x1d8)](/:\s*$/,'')['trim']();if(!process[_0x1cabf8(0x218)]['isTTY']||!process[_0x1cabf8(0x217)][_0x1cabf8(0x1f6)]){if('UGdBC'!==_0x20f433[_0x1cabf8(0x1d4)])_0x2f19e2[_0x1cabf8(0x1d3)]('\x1b['+_0x59b25f+'A');else return new Promise(_0x51d5cc=>{const _0x470dfc=_0x1cabf8,_0x239c58={'kfxzR':function(_0x35b4c4,_0x45fc8c){return _0x20f433['koMcc'](_0x35b4c4,_0x45fc8c);},'wzbrg':function(_0x155f9b,_0x5dd9f5){return _0x20f433['ruIWv'](_0x155f9b,_0x5dd9f5);}};if(_0x470dfc(0x208)===_0x20f433[_0x470dfc(0x204)]){const _0x5af7ad=_0x20f433[_0x470dfc(0x209)](_0x368599,{'input':_0x40879d,'output':_0x3e37ff});_0x5af7ad[_0x470dfc(0x216)](_0x375909)[_0x470dfc(0x21c)](_0x3d37ba=>{const _0x5ed038=_0x470dfc;_0x5af7ad[_0x5ed038(0x1da)]();const _0x188aab=_0x3d37ba[_0x5ed038(0x20f)]()['toLowerC'+_0x5ed038(0x1e0)]();_0x239c58['kfxzR'](_0x1540f0,_0x188aab?_0x239c58[_0x5ed038(0x1df)](_0x188aab,'y'):_0x318035(_0x254d10[_0x5ed038(0x22c)+'es']));});}else{const _0x5c7c16=createInterface({'input':_0x5d07c9,'output':_0x4a194a});_0x5c7c16[_0x470dfc(0x216)](_0xcea0c3)[_0x470dfc(0x21c)](_0x5e26c7=>{const _0x1f532e=_0x470dfc;_0x5c7c16['close']();const _0x8dd4cf=_0x5e26c7[_0x1f532e(0x20f)]()[_0x1f532e(0x1f2)+_0x1f532e(0x1e0)]();_0x51d5cc(_0x8dd4cf?_0x8dd4cf==='y':_0x20f433[_0x1f532e(0x215)](Boolean,_0x49461a[_0x1f532e(0x22c)+'es']));});}});}return new Promise(_0x1cb5c0=>{const _0x56902a=_0x1cabf8,_0x163e1e={'MzZwh':_0x20f433['fPApW'],'XrQwc':function(_0x2a5639,_0xeeb27,_0x59283e,_0x39bbf9){return _0x20f433['JiaWE'](_0x2a5639,_0xeeb27,_0x59283e,_0x39bbf9);},'wZPCA':function(_0x1c167f,_0x49cfac,_0x31c2d7,_0x43aa3d){const _0x57198e=_0x4762;return _0x20f433[_0x57198e(0x227)](_0x1c167f,_0x49cfac,_0x31c2d7,_0x43aa3d);},'RBzWG':function(_0x59e3ca,_0x2631d8){const _0x10afe4=_0x4762;return _0x20f433[_0x10afe4(0x1fc)](_0x59e3ca,_0x2631d8);},'wMthz':function(_0x45a767,_0x409eed,_0x57dcf4){const _0x4d4424=_0x4762;return _0x20f433[_0x4d4424(0x228)](_0x45a767,_0x409eed,_0x57dcf4);},'qUEtS':_0x20f433[_0x56902a(0x200)],'xHdjL':_0x20f433[_0x56902a(0x213)],'HSNEK':function(_0x177c3c,_0x3a1777){return _0x177c3c===_0x3a1777;},'kuKes':_0x20f433['XCLmJ'],'eHDcn':function(_0x972d81,_0x361ae7,_0x53c292){const _0x45d973=_0x56902a;return _0x20f433[_0x45d973(0x228)](_0x972d81,_0x361ae7,_0x53c292);},'Rvnzx':function(_0x52c6a1,_0x36c8e3){return _0x52c6a1(_0x36c8e3);},'eVDZh':function(_0x39c795,_0x19ee3){const _0x5cdc9c=_0x56902a;return _0x20f433[_0x5cdc9c(0x20e)](_0x39c795,_0x19ee3);},'nwEjB':function(_0x36ba18,_0x183a26){const _0x3ff57c=_0x56902a;return _0x20f433[_0x3ff57c(0x21b)](_0x36ba18,_0x183a26);},'cDvSq':function(_0x2ec867,_0x5701a7){const _0x4a6c2b=_0x56902a;return _0x20f433[_0x4a6c2b(0x229)](_0x2ec867,_0x5701a7);},'dbRuQ':function(_0x311c13,_0x5c61e9){const _0x24a6f0=_0x56902a;return _0x20f433[_0x24a6f0(0x221)](_0x311c13,_0x5c61e9);},'PeBGu':'\x1b[A','ZXpmr':_0x20f433[_0x56902a(0x1ee)],'GRlVM':function(_0x52bf1b,_0x66e42f,_0x4f8557){return _0x20f433['NZorw'](_0x52bf1b,_0x66e42f,_0x4f8557);}};let _0x3ac123=_0x20f433[_0x56902a(0x21d)](_0x49461a[_0x56902a(0x22c)+'es'],![]);_0x4a194a['write'](_0x56902a(0x1e3)+style('?',ui[_0x56902a(0x219)],ui[_0x56902a(0x1fe)])+'\x20'+_0x20f433[_0x56902a(0x211)](style,_0x1a83fb,ui[_0x56902a(0x1fe)])+'\x20\x20'+_0x20f433[_0x56902a(0x227)](style,_0x56902a(0x1fb)+'er',ui['gray'],ui['dim'])+'\x0a'),_0x4a194a['write']('\x0a'),_0x20f433['ZEWOd'](renderOptions,_0x3ac123,![]),process[_0x56902a(0x218)]['setRawMo'+'de'](!![]),process[_0x56902a(0x218)]['resume'](),process['stdin']['setEncod'+_0x56902a(0x1d7)]('utf8');function _0x221c3c(_0x3b71c7){const _0x397285=_0x56902a;process[_0x397285(0x218)][_0x397285(0x1dc)+'de'](![]),process[_0x397285(0x218)][_0x397285(0x201)](),process[_0x397285(0x218)][_0x397285(0x20b)+_0x397285(0x1d6)](_0x163e1e['MzZwh'],_0x120458);const _0x3c5ab2=_0x3b71c7?_0x163e1e[_0x397285(0x22a)](style,'●',ui[_0x397285(0x206)],ui[_0x397285(0x1fe)])+'\x20'+_0x163e1e[_0x397285(0x22a)](style,'Yes',ui[_0x397285(0x206)],ui[_0x397285(0x1fe)]):_0x163e1e[_0x397285(0x22a)](style,'●',ui[_0x397285(0x203)],ui['bold'])+'\x20'+_0x163e1e[_0x397285(0x1e4)](style,'No',ui[_0x397285(0x203)],ui['bold']);_0x4a194a[_0x397285(0x1d3)]('\x1b['+_0x163e1e[_0x397285(0x1ea)](OPTION_LINES,PRE_OPTION_LINES)+'A'),_0x4a194a[_0x397285(0x1d3)](_0x397285(0x1e7)+_0x163e1e['wMthz'](style,'✓',ui[_0x397285(0x206)])+'\x20'+_0x163e1e[_0x397285(0x1eb)](style,_0x1a83fb,ui[_0x397285(0x20d)])+'\x20\x20'+_0x3c5ab2+'\x0a'),_0x4a194a['write']('\x0a'),_0x4a194a[_0x397285(0x1d3)]('\x1b[J'),_0x1cb5c0(_0x3b71c7);}function _0x120458(_0x3d7e56){const _0x55d1e9=_0x56902a,_0x225c8d=_0x163e1e[_0x55d1e9(0x212)][_0x55d1e9(0x205)]('|');let _0xe877ca=0x0;while(!![]){switch(_0x225c8d[_0xe877ca++]){case'0':if(_0x3d7e56===_0x163e1e[_0x55d1e9(0x220)]||_0x163e1e[_0x55d1e9(0x210)](_0x3d7e56,_0x163e1e['kuKes'])){_0x3ac123=![],_0x163e1e['eHDcn'](renderOptions,_0x3ac123,!![]);return;}continue;case'1':if(_0x3d7e56==='y'||_0x3d7e56==='Y'){_0x163e1e[_0x55d1e9(0x1e6)](_0x221c3c,!![]);return;}continue;case'2':if(_0x163e1e['eVDZh'](_0x3d7e56,'\x20')){_0x3ac123=!_0x3ac123,_0x163e1e['eHDcn'](renderOptions,_0x3ac123,!![]);return;}continue;case'3':_0x163e1e[_0x55d1e9(0x1ef)](_0x3d7e56,'\x03')&&(_0x4a194a[_0x55d1e9(0x1d3)]('\x0a'),process[_0x55d1e9(0x1f5)](0x82));continue;case'4':if(_0x163e1e[_0x55d1e9(0x1d1)](_0x3d7e56,'n')||_0x163e1e[_0x55d1e9(0x1fd)](_0x3d7e56,'N')){_0x163e1e[_0x55d1e9(0x1e6)](_0x221c3c,![]);return;}continue;case'5':if(_0x3d7e56==='\x0d'||_0x163e1e[_0x55d1e9(0x210)](_0x3d7e56,'\x0a')){_0x163e1e[_0x55d1e9(0x1e6)](_0x221c3c,_0x3ac123);return;}continue;case'6':if(_0x163e1e[_0x55d1e9(0x1f1)](_0x3d7e56,_0x163e1e[_0x55d1e9(0x1de)])||_0x163e1e[_0x55d1e9(0x1f1)](_0x3d7e56,_0x163e1e['ZXpmr'])){_0x3ac123=!![],_0x163e1e[_0x55d1e9(0x1ff)](renderOptions,_0x3ac123,!![]);return;}continue;}break;}}process[_0x56902a(0x218)]['on'](_0x20f433['fPApW'],_0x120458);});}export async function askInput(_0x3170a8){const _0x7f07fd=_0x4762,_0x449b03={'vmXHn':function(_0x1f98aa,_0x5d3844){return _0x1f98aa(_0x5d3844);}},_0x47fcfc=_0x449b03[_0x7f07fd(0x1f3)](createInterface,{'input':_0x5d07c9,'output':_0x4a194a}),_0x1e2cb7=await _0x47fcfc[_0x7f07fd(0x216)](_0x3170a8);return _0x47fcfc['close'](),_0x1e2cb7[_0x7f07fd(0x20f)]();}export async function askEditableInput(_0xc20c76,_0x3a7574){const _0x3329ae=_0x4762,_0x54eb79=createInterface({'input':_0x5d07c9,'output':_0x4a194a}),_0x4b838d=await _0x54eb79[_0x3329ae(0x216)](_0xc20c76);_0x54eb79[_0x3329ae(0x1da)]();const _0x17dae6=_0x4b838d[_0x3329ae(0x20f)]();if(!_0x17dae6)return _0x3a7574;return _0x17dae6;}
package/dist-secure/ui.js CHANGED
@@ -1 +1 @@
1
- const _0x40e557=_0x5261;(function(_0x246617,_0x2500e8){const _0x516d9d=_0x5261,_0x14c25d=_0x246617();while(!![]){try{const _0x572ca7=-parseInt(_0x516d9d(0x17e))/0x1*(parseInt(_0x516d9d(0x19a))/0x2)+-parseInt(_0x516d9d(0x185))/0x3+parseInt(_0x516d9d(0x1aa))/0x4*(parseInt(_0x516d9d(0x18b))/0x5)+-parseInt(_0x516d9d(0x192))/0x6*(parseInt(_0x516d9d(0x1ab))/0x7)+parseInt(_0x516d9d(0x197))/0x8+-parseInt(_0x516d9d(0x1ca))/0x9+parseInt(_0x516d9d(0x17c))/0xa;if(_0x572ca7===_0x2500e8)break;else _0x14c25d['push'](_0x14c25d['shift']());}catch(_0x1911b8){_0x14c25d['push'](_0x14c25d['shift']());}}}(_0x22d2,0x36f8b));const _0x58cffe=(function(){const _0x246673=_0x5261,_0x5081d5={'EUFIa':function(_0x116cc0,_0x13e09f){return _0x116cc0===_0x13e09f;},'wgOmA':function(_0x7f878e,_0x49ef2c,_0x59973b){return _0x7f878e(_0x49ef2c,_0x59973b);},'nBLBe':_0x246673(0x1c6)+_0x246673(0x187),'FscCS':function(_0xc45bfc,_0x1877dd){return _0xc45bfc===_0x1877dd;},'Huyom':_0x246673(0x1a5),'IJCNe':_0x246673(0x199)};let _0x55c324=!![];return function(_0x180364,_0x54384c){const _0x52e83e=_0x246673;if(_0x5081d5[_0x52e83e(0x19b)]==='WRfQX'){const _0x3fc3ab=_0x5081d5[_0x52e83e(0x1c2)](_0x931c9e,_0x268836[_0x52e83e(0x178)]-0x1),_0x4a7b50=_0x5081d5[_0x52e83e(0x18f)](_0x4e0246,_0x3fc3ab?_0x1c4482[_0x52e83e(0x1c4)]:_0x353fd7[_0x52e83e(0x19c)],_0x1882cf['gray']);_0x446aea['log']('\x20\x20'+_0x4a7b50+'\x20'+_0x43191d(_0x4e2ca0[_0x30d2ae],_0x2e6739[_0x52e83e(0x183)]));}else{const _0x21e5e0=_0x55c324?function(){const _0x342f29=_0x52e83e,_0x5b2567={'OJJYq':_0x5081d5['nBLBe']};if(_0x5081d5[_0x342f29(0x1a6)](_0x5081d5[_0x342f29(0x180)],'JRapI')){if(_0x54384c){const _0x10c7a8=_0x54384c[_0x342f29(0x1af)](_0x180364,arguments);return _0x54384c=null,_0x10c7a8;}}else return _0x326399[_0x342f29(0x195)]()[_0x342f29(0x1a3)](_0x5b2567[_0x342f29(0x1b0)])[_0x342f29(0x195)]()[_0x342f29(0x1c0)+_0x342f29(0x1bf)](_0x344c88)[_0x342f29(0x1a3)](_0x5b2567[_0x342f29(0x1b0)]);}:function(){};return _0x55c324=![],_0x21e5e0;}};}()),_0xcb7ab9=_0x58cffe(this,function(){const _0x13f990=_0x5261,_0x5802bd={'XWZmL':_0x13f990(0x1c6)+_0x13f990(0x187)};return _0xcb7ab9['toString']()['search'](_0x5802bd['XWZmL'])[_0x13f990(0x195)]()['construc'+_0x13f990(0x1bf)](_0xcb7ab9)[_0x13f990(0x1a3)](_0x5802bd['XWZmL']);});_0xcb7ab9();export const ui={'reset':_0x40e557(0x1b6),'bold':_0x40e557(0x1cd),'dim':_0x40e557(0x1cf),'italic':'\x1b[3m','underline':_0x40e557(0x17b),'cyan':_0x40e557(0x1a1),'white':'\x1b[37m','green':_0x40e557(0x1bb),'yellow':_0x40e557(0x184),'red':_0x40e557(0x1b8),'magenta':_0x40e557(0x179),'gray':'\x1b[90m'};export const symbols={'tick':'✓','warn':'⚠','cross':'✗','bullet':'●','dot':'·','arrow':'→','treeItem':'├─','treeLast':'└─','treePipe':'│','h':'─','v':'│','tl':'╭','tr':'╮','bl':'╰','br':'╯'};export function style(_0x2d9ea8,..._0x28d699){const _0x8b6ceb=_0x40e557;return''+_0x28d699[_0x8b6ceb(0x1a8)]('')+_0x2d9ea8+ui[_0x8b6ceb(0x188)];}function _0x5261(_0x3b7ac5,_0x2958ba){_0x3b7ac5=_0x3b7ac5-0x170;const _0x1158c3=_0x22d2();let _0xcb7ab9=_0x1158c3[_0x3b7ac5];return _0xcb7ab9;}function termWidth(){const _0x23bbd3=_0x40e557;return Math[_0x23bbd3(0x173)](0x28,Math['min'](process['stdout']['columns']||0x50,0x58));}export function section(_0x3179b2){const _0x52fe45=_0x40e557,_0x17e400={'vtMrA':function(_0x2a8574){return _0x2a8574();},'pDexf':function(_0x576d9a,_0x42ab3a){return _0x576d9a+_0x42ab3a;},'OiMBY':function(_0x3933df,_0x42b81b,_0x55b50c){return _0x3933df(_0x42b81b,_0x55b50c);},'niffD':function(_0x2e06fa,_0x3b1600){return _0x2e06fa+_0x3b1600;},'dENYn':function(_0x165041,_0x2b53b5,_0x39b938){return _0x165041(_0x2b53b5,_0x39b938);}},_0x2f53bb='\x20'+_0x3179b2+'\x20',_0xc2b288=symbols['h'][_0x52fe45(0x182)](Math[_0x52fe45(0x173)](0x0,_0x17e400[_0x52fe45(0x1c1)](termWidth)-_0x2f53bb['length']-0x2));console[_0x52fe45(0x1ad)](),console[_0x52fe45(0x1ad)](_0x17e400[_0x52fe45(0x1c7)](_0x17e400[_0x52fe45(0x1c7)](_0x17e400[_0x52fe45(0x1b9)](style,_0x17e400[_0x52fe45(0x1a4)](symbols['tl'],symbols['h']),ui[_0x52fe45(0x1be)]),_0x17e400[_0x52fe45(0x1ac)](style,_0x2f53bb,ui[_0x52fe45(0x172)])),style(_0xc2b288,ui[_0x52fe45(0x1be)])));}export function ok(_0x370d75,_0x2a8e28){const _0xc2257d=_0x40e557,_0x323901=style(symbols[_0xc2257d(0x17a)],ui[_0xc2257d(0x174)])+'\x20'+style(_0x370d75,ui['green'],ui[_0xc2257d(0x172)]);return _0x2a8e28?_0x323901+'\x20\x20'+style(_0x2a8e28,ui['gray']):_0x323901;}export function warn(_0x1fda50,_0x4db30a){const _0x5449fa=_0x40e557,_0xb4e015={'DkYJX':function(_0xeb6577,_0x3b48c1,_0xc99be8){return _0xeb6577(_0x3b48c1,_0xc99be8);}},_0x197576=style(symbols[_0x5449fa(0x175)],ui['yellow'],ui[_0x5449fa(0x172)])+'\x20'+style(_0x1fda50,ui[_0x5449fa(0x18a)],ui['bold']);return _0x4db30a?_0x197576+'\x20\x20'+_0xb4e015['DkYJX'](style,_0x4db30a,ui[_0x5449fa(0x1be)]):_0x197576;}export function bad(_0x278505,_0xe0037f){const _0x59822a=_0x40e557,_0x44ad9e={'EGCtf':function(_0x2b7630,_0xd00445,_0x201178,_0x39563b){return _0x2b7630(_0xd00445,_0x201178,_0x39563b);},'VVAsD':function(_0x5debf0,_0x508b3d,_0x5acee1){return _0x5debf0(_0x508b3d,_0x5acee1);}},_0x1e80df=_0x44ad9e['EGCtf'](style,symbols[_0x59822a(0x17d)],ui[_0x59822a(0x1c5)],ui['bold'])+'\x20'+style(_0x278505,ui[_0x59822a(0x1c5)],ui[_0x59822a(0x172)]);return _0xe0037f?_0x1e80df+'\x20\x20'+_0x44ad9e[_0x59822a(0x18d)](style,_0xe0037f,ui[_0x59822a(0x1be)]):_0x1e80df;}export function info(_0x41ffd6,_0x315172){const _0x4f6ddf=_0x40e557,_0x2fa211={'SSflb':function(_0x52c893,_0x464d91,_0x1069d1,_0x459e34){return _0x52c893(_0x464d91,_0x1069d1,_0x459e34);},'rcGuY':function(_0x22ebfb,_0x4de6e4,_0x58ba15){return _0x22ebfb(_0x4de6e4,_0x58ba15);}},_0x150457=style(symbols[_0x4f6ddf(0x198)],ui[_0x4f6ddf(0x1b1)])+'\x20'+_0x2fa211[_0x4f6ddf(0x1b3)](style,_0x41ffd6,ui['cyan'],ui['bold']);return _0x315172?_0x150457+'\x20\x20'+_0x2fa211[_0x4f6ddf(0x1c3)](style,_0x315172,ui[_0x4f6ddf(0x1be)]):_0x150457;}export function printKeyValues(_0x3f3d9e){const _0x21a37b=_0x40e557,_0x3154db={'AjdWN':function(_0x4be16d,_0x2a7f0c){return _0x4be16d===_0x2a7f0c;},'redXq':function(_0xf6e7d,_0x36d80f){return _0xf6e7d<_0x36d80f;},'tkmOK':function(_0x20ed9a,_0x4430e4){return _0x20ed9a===_0x4430e4;},'ZlGYw':function(_0x4778ce,_0x25c829){return _0x4778ce-_0x25c829;},'EbczP':function(_0x1e2217,_0x324ad0,_0x48bf96){return _0x1e2217(_0x324ad0,_0x48bf96);}};if(_0x3154db[_0x21a37b(0x18c)](_0x3f3d9e[_0x21a37b(0x178)],0x0))return;const _0x55019f=_0x3f3d9e[_0x21a37b(0x1c9)]((_0x34779a,_0x476862)=>Math[_0x21a37b(0x173)](_0x34779a,_0x476862[_0x21a37b(0x186)][_0x21a37b(0x178)]),0x0);for(let _0x2e4527=0x0;_0x3154db[_0x21a37b(0x1b4)](_0x2e4527,_0x3f3d9e[_0x21a37b(0x178)]);_0x2e4527++){const _0x248378=_0x3154db[_0x21a37b(0x1bc)](_0x2e4527,_0x3154db[_0x21a37b(0x171)](_0x3f3d9e[_0x21a37b(0x178)],0x1)),_0x616c38=_0x3154db[_0x21a37b(0x193)](style,_0x248378?symbols['treeLast']:symbols[_0x21a37b(0x19c)],ui[_0x21a37b(0x1be)]),_0x394ef3=style(_0x3f3d9e[_0x2e4527]['key'][_0x21a37b(0x1ce)](_0x55019f),ui[_0x21a37b(0x1be)],ui[_0x21a37b(0x1d2)]);console[_0x21a37b(0x1ad)]('\x20\x20'+_0x616c38+'\x20'+_0x394ef3+'\x20\x20'+_0x3f3d9e[_0x2e4527]['value']);}}export function printList(_0x2564d4,_0x4c2744){const _0x5c0075=_0x40e557,_0x432884={'QwJdt':function(_0xcf2ad6,_0x1406a6,_0x447f7c){return _0xcf2ad6(_0x1406a6,_0x447f7c);},'WOghj':function(_0x3c16a0,_0x1f7c5c){return _0x3c16a0===_0x1f7c5c;},'tYYTF':function(_0x597332,_0x37d1b3,_0x508334,_0x4a231a){return _0x597332(_0x37d1b3,_0x508334,_0x4a231a);},'ImkTU':function(_0x2c60ba,_0x2df0b0){return _0x2c60ba<_0x2df0b0;},'reQmC':function(_0x241db9,_0x203b8e,_0x2ce0c6){return _0x241db9(_0x203b8e,_0x2ce0c6);},'hnAvk':_0x5c0075(0x1a2),'zVbiR':function(_0x62d2d,_0x252910){return _0x62d2d<_0x252910;},'QUgNU':'tmPvn','YQaLR':_0x5c0075(0x1b2),'zWRhY':function(_0x4965a5,_0x2b6fb8){return _0x4965a5-_0x2b6fb8;}};console[_0x5c0075(0x1ad)]('\x20\x20'+_0x432884['reQmC'](style,_0x2564d4,ui[_0x5c0075(0x172)]));if(_0x432884[_0x5c0075(0x1b7)](_0x4c2744[_0x5c0075(0x178)],0x0)){console[_0x5c0075(0x1ad)]('\x20\x20'+_0x432884['reQmC'](style,symbols['treeLast'],ui[_0x5c0075(0x1be)])+'\x20'+style(_0x432884[_0x5c0075(0x19e)],ui[_0x5c0075(0x1be)],ui['italic']));return;}for(let _0x4f055e=0x0;_0x432884['zVbiR'](_0x4f055e,_0x4c2744[_0x5c0075(0x178)]);_0x4f055e++){if(_0x432884[_0x5c0075(0x177)]===_0x432884[_0x5c0075(0x1b5)]){_0xa10212[_0x5c0075(0x1ad)]('\x20\x20'+_0x432884['QwJdt'](_0x24f2d2,_0x2e83eb,_0x39e262[_0x5c0075(0x172)]));if(_0x432884[_0x5c0075(0x1b7)](_0x395504['length'],0x0)){_0x22f379['log']('\x20\x20'+_0x432884[_0x5c0075(0x1d1)](_0x28efc4,_0xf2ffd6['treeLast'],_0x299f99[_0x5c0075(0x1be)])+'\x20'+_0x432884[_0x5c0075(0x189)](_0x40e989,_0x5c0075(0x1a2),_0x5189d6[_0x5c0075(0x1be)],_0x46e85c['italic']));return;}for(let _0x36389f=0x0;_0x432884[_0x5c0075(0x194)](_0x36389f,_0x304efd[_0x5c0075(0x178)]);_0x36389f++){const _0x4a6572=_0x36389f===_0x1101cb[_0x5c0075(0x178)]-0x1,_0xe8ad5e=_0x21dae2(_0x4a6572?_0x4eab67[_0x5c0075(0x1c4)]:_0x5291f1[_0x5c0075(0x19c)],_0x80d22c[_0x5c0075(0x1be)]);_0x53ffe9['log']('\x20\x20'+_0xe8ad5e+'\x20'+_0x432884[_0x5c0075(0x196)](_0x2f26d5,_0x2190e0[_0x36389f],_0x5e37cb[_0x5c0075(0x183)]));}}else{const _0x592e1f=_0x4f055e===_0x432884[_0x5c0075(0x18e)](_0x4c2744[_0x5c0075(0x178)],0x1),_0x645412=style(_0x592e1f?symbols['treeLast']:symbols[_0x5c0075(0x19c)],ui[_0x5c0075(0x1be)]);console[_0x5c0075(0x1ad)]('\x20\x20'+_0x645412+'\x20'+_0x432884[_0x5c0075(0x1d1)](style,_0x4c2744[_0x4f055e],ui[_0x5c0075(0x183)]));}}}function _0x22d2(){const _0x392380=['1194pOLHLl','EbczP','ImkTU','toString','reQmC','553592qldmSb','bullet','LqpWu','115958DJtkEq','IJCNe','treeItem','exit','hnAvk','fCKzj','lBXMw','\x1b[36m','(none)','search','niffD','JRapI','FscCS','QyGQg','join','gSMJT','8WvGDBR','13209HVRmSq','dENYn','log','write','apply','OJJYq','cyan','PngWB','SSflb','redXq','YQaLR','\x1b[0m','WOghj','\x1b[31m','OiMBY','qgxyq','\x1b[32m','tkmOK','\x0d\x20\x20','gray','tor','construc','vtMrA','EUFIa','rcGuY','treeLast','red','(((.+)+)','pDexf','jakAP','reduce','833634dRPtGj','stdout','aouRf','\x1b[1m','padEnd','\x1b[2m','error','QwJdt','italic','pSyrB','ZlGYw','bold','max','green','warn','ioGsj','QUgNU','length','\x1b[35m','tick','\x1b[4m','7065750SbXkgv','cross','3GVpYWm','bxjSP','Huyom','GtfJR','repeat','dim','\x1b[33m','275373NKlFRI','key','+)+$','reset','tYYTF','yellow','458140WZSIFw','AjdWN','VVAsD','zWRhY','wgOmA','FYQem','AzTCb'];_0x22d2=function(){return _0x392380;};return _0x22d2();}export function failAndExit(_0xb10ca1){const _0x2e170e=_0x40e557,_0x5034e9={'aouRf':function(_0x5776e3,_0x4df6e7){return _0x5776e3-_0x4df6e7;},'FYQem':function(_0x32862d,_0x5939cf){return _0x32862d-_0x5939cf;},'ioGsj':function(_0x4dd539,_0x409dc3){return _0x4dd539+_0x409dc3;},'lrnVy':function(_0x25f852,_0x23a063,_0x20e042){return _0x25f852(_0x23a063,_0x20e042);},'lBXMw':function(_0x430ee0,_0x58a548){return _0x430ee0+_0x58a548;},'qgxyq':function(_0x12f2f4,_0x2254fc,_0x3a6545,_0x2351c2){return _0x12f2f4(_0x2254fc,_0x3a6545,_0x2351c2);},'AzTCb':function(_0x2b5c9d,_0x37e52c,_0x4861dc){return _0x2b5c9d(_0x37e52c,_0x4861dc);},'bxjSP':function(_0x26b8c4,_0x44ef09,_0x372d4e){return _0x26b8c4(_0x44ef09,_0x372d4e);}},_0xc2c447=termWidth(),_0x31a247='\x20Error\x20',_0x3fc31e=symbols['h'][_0x2e170e(0x182)](Math[_0x2e170e(0x173)](0x0,_0x5034e9[_0x2e170e(0x1cc)](_0x5034e9[_0x2e170e(0x1cc)](_0xc2c447,_0x31a247[_0x2e170e(0x178)]),0x2))),_0x2d91f5=symbols['h'][_0x2e170e(0x182)](Math[_0x2e170e(0x173)](0x0,_0x5034e9[_0x2e170e(0x190)](_0xc2c447,0x2)));console[_0x2e170e(0x1d0)](),console[_0x2e170e(0x1d0)](_0x5034e9[_0x2e170e(0x176)](_0x5034e9['lrnVy'](style,_0x5034e9[_0x2e170e(0x1a0)](symbols['tl'],symbols['h']),ui[_0x2e170e(0x1c5)]),_0x5034e9['qgxyq'](style,_0x31a247,ui[_0x2e170e(0x1c5)],ui['bold']))+_0x5034e9[_0x2e170e(0x191)](style,_0x3fc31e,ui[_0x2e170e(0x1c5)])),console[_0x2e170e(0x1d0)](_0x5034e9['ioGsj'](_0x5034e9[_0x2e170e(0x17f)](style,_0x5034e9[_0x2e170e(0x1a0)](symbols['v'],'\x20'),ui['red']),'\x20'+_0x5034e9[_0x2e170e(0x1ba)](style,symbols['cross'],ui[_0x2e170e(0x1c5)],ui[_0x2e170e(0x172)])+'\x20'+_0xb10ca1)),console[_0x2e170e(0x1d0)](_0x5034e9[_0x2e170e(0x191)](style,_0x5034e9[_0x2e170e(0x1a0)](symbols['bl'],_0x2d91f5)+symbols['br'],ui['red'])),console[_0x2e170e(0x1d0)](),process[_0x2e170e(0x19d)](0x1);}export async function withProgress(_0x326657,_0x175e5){const _0x4f05e8=_0x40e557,_0x50a96a={'jakAP':function(_0x351c2a,_0x22f389,_0x45b741){return _0x351c2a(_0x22f389,_0x45b741);},'QyGQg':function(_0x16c575,_0x4d6aca){return _0x16c575%_0x4d6aca;},'gSMJT':function(_0x5e332f){return _0x5e332f();},'gqDSS':function(_0x447dfb,_0x2bce0a){return _0x447dfb(_0x2bce0a);},'pSyrB':'\x0d\x1b[2K','GtfJR':function(_0x88f6c6,_0x3072c2){return _0x88f6c6(_0x3072c2);},'fCKzj':function(_0x421d9c,_0x588d9a){return _0x421d9c(_0x588d9a);}};if(!process[_0x4f05e8(0x1cb)]['isTTY'])return console[_0x4f05e8(0x1ad)](_0x326657),_0x50a96a[_0x4f05e8(0x1a9)](_0x175e5);const _0x18a702=['⠋','⠙','⠹','⠸','⠼','⠴','⠦','⠧','⠇','⠏'];let _0xdeba21=0x0;const _0x3ebc9f=()=>{const _0x482a57=_0x4f05e8,_0x3a9859=_0x50a96a[_0x482a57(0x1c8)](style,_0x18a702[_0x50a96a[_0x482a57(0x1a7)](_0xdeba21,_0x18a702['length'])],ui['cyan']);process['stdout']['write'](_0x482a57(0x1bd)+_0x3a9859+'\x20\x20'+_0x50a96a['jakAP'](style,_0x326657,ui[_0x482a57(0x183)])),_0xdeba21+=0x1;};_0x50a96a['gSMJT'](_0x3ebc9f);const _0x19e2ff=_0x50a96a[_0x4f05e8(0x1c8)](setInterval,_0x3ebc9f,0x50);try{const _0x599eec=await _0x50a96a[_0x4f05e8(0x1a9)](_0x175e5);return _0x50a96a['gqDSS'](clearInterval,_0x19e2ff),process['stdout']['write'](_0x50a96a[_0x4f05e8(0x170)]),console['log']('\x20\x20'+_0x50a96a['GtfJR'](ok,_0x326657)),_0x599eec;}catch(_0x46812e){_0x50a96a[_0x4f05e8(0x19f)](clearInterval,_0x19e2ff),process[_0x4f05e8(0x1cb)][_0x4f05e8(0x1ae)]('\x0d\x1b[2K'),console['log']('\x20\x20'+_0x50a96a[_0x4f05e8(0x181)](bad,_0x326657));throw _0x46812e;}}
1
+ const _0x257697=_0x5558;function _0x5869(){const _0x6c79e4=['tfJHE','FQdQf','cross','FaGva','gray','tor','join','italic','kYreG','cyan','1713242wEdLoK','toString','tpufh','RGXWR','(none)','Pdirr','\x1b[0m','MCuJb','FjVqg','CLwuE','OGWRc','\x1b[90m','\x1b[37m','\x1b[33m','log','CCeUu','padEnd','sxpJz','BXwNW','treeItem','PQQfL','5827236BOTebw','repeat','TcKEp','red','reduce','apply','QYIWB','eCChF','skroK','TaPbg','\x1b[36m','OEfqP','6200001asxCMH','mQuxf','bold','ioUDt','7AouluN','green','HaMKz','columns','aAYLN','yellow','min','6218116TAbtkB','pzJaW','AVigT','length','\x1b[4m','reset','warn','\x20Error\x20','stdout','write','\x1b[31m','KueVc','COzzq','aBtCn','1603509khyiPf','tick','pYuPK','\x1b[2m','error','mtkOq','treeLast','ajSAp','isTTY','spBzp','QhuYK','WwdXs','+)+$','\x1b[1m','50wHXabO','9996304FEUahO','XlorR','max','construc','\x0d\x1b[2K','value','HxCWt','ycSsK','bullet','3976735VAmjoW','wzoiv','2GhcBkT','dsQMf','ePZda','dim','pHxvp','TDnCM','key','OLVlv'];_0x5869=function(){return _0x6c79e4;};return _0x5869();}(function(_0x30df10,_0x3fd195){const _0x14c1fb=_0x5558,_0x216866=_0x30df10();while(!![]){try{const _0x466687=parseInt(_0x14c1fb(0x196))/0x1+parseInt(_0x14c1fb(0x1ea))/0x2*(parseInt(_0x14c1fb(0x1d0))/0x3)+parseInt(_0x14c1fb(0x1c2))/0x4+parseInt(_0x14c1fb(0x1e8))/0x5+-parseInt(_0x14c1fb(0x1ab))/0x6*(-parseInt(_0x14c1fb(0x1bb))/0x7)+-parseInt(_0x14c1fb(0x1df))/0x8+-parseInt(_0x14c1fb(0x1b7))/0x9*(parseInt(_0x14c1fb(0x1de))/0xa);if(_0x466687===_0x3fd195)break;else _0x216866['push'](_0x216866['shift']());}catch(_0x169b22){_0x216866['push'](_0x216866['shift']());}}}(_0x5869,0xd595c));const _0x8bb8c2=(function(){const _0x132dec=_0x5558,_0x4e242f={'aAYLN':function(_0x57e979,_0x311bb2){return _0x57e979===_0x311bb2;},'sxpJz':_0x132dec(0x19e)};let _0x527d54=!![];return function(_0x50f98a,_0x4c8240){const _0x386c3f=_0x527d54?function(){const _0x397202=_0x5558;if(_0x4c8240){if(_0x4e242f[_0x397202(0x1bf)](_0x4e242f[_0x397202(0x1a7)],'FjVqg')){const _0x1acb97=_0x4c8240[_0x397202(0x1b0)](_0x50f98a,arguments);return _0x4c8240=null,_0x1acb97;}else return''+_0x3fe5be[_0x397202(0x192)]('')+_0x1cc7b9+_0x38bab4['reset'];}}:function(){};return _0x527d54=![],_0x386c3f;};}()),_0x429134=_0x8bb8c2(this,function(){const _0x35ca6e=_0x5558,_0x4220f7={'WwdXs':'(((.+)+)'+_0x35ca6e(0x1dc)};return _0x429134[_0x35ca6e(0x197)]()['search'](_0x4220f7[_0x35ca6e(0x1db)])[_0x35ca6e(0x197)]()[_0x35ca6e(0x1e2)+_0x35ca6e(0x191)](_0x429134)['search'](_0x4220f7[_0x35ca6e(0x1db)]);});_0x429134();export const ui={'reset':_0x257697(0x19c),'bold':_0x257697(0x1dd),'dim':_0x257697(0x1d3),'italic':'\x1b[3m','underline':_0x257697(0x1c6),'cyan':_0x257697(0x1b5),'white':_0x257697(0x1a2),'green':'\x1b[32m','yellow':_0x257697(0x1a3),'red':_0x257697(0x1cc),'magenta':'\x1b[35m','gray':_0x257697(0x1a1)};export const symbols={'tick':'✓','warn':'⚠','cross':'✗','bullet':'●','dot':'·','arrow':'→','treeItem':'├─','treeLast':'└─','treePipe':'│','h':'─','v':'│','tl':'╭','tr':'╮','bl':'╰','br':'╯'};function _0x5558(_0x402e69,_0x5f2e44){_0x402e69=_0x402e69-0x187;const _0x10e4e6=_0x5869();let _0x429134=_0x10e4e6[_0x402e69];return _0x429134;}export function style(_0xbc0e75,..._0x4528ed){const _0x1caf34=_0x257697;return''+_0x4528ed['join']('')+_0xbc0e75+ui[_0x1caf34(0x1c7)];}function termWidth(){const _0x2caea5=_0x257697;return Math[_0x2caea5(0x1e1)](0x28,Math[_0x2caea5(0x1c1)](process[_0x2caea5(0x1ca)][_0x2caea5(0x1be)]||0x50,0x58));}export function section(_0x22a404){const _0x6de942=_0x257697,_0xee0535={'ioUDt':function(_0x203b8a,_0x5a7e78){return _0x203b8a-_0x5a7e78;},'CCeUu':function(_0x46ff98){return _0x46ff98();},'eCChF':function(_0x5dbebf,_0x44e626){return _0x5dbebf+_0x44e626;},'skroK':function(_0x7a7e3b,_0xaf80c1,_0x3fa048){return _0x7a7e3b(_0xaf80c1,_0x3fa048);}},_0x126a21='\x20'+_0x22a404+'\x20',_0x10e5d4=symbols['h'][_0x6de942(0x1ac)](Math[_0x6de942(0x1e1)](0x0,_0xee0535[_0x6de942(0x1ba)](_0xee0535[_0x6de942(0x1a5)](termWidth),_0x126a21[_0x6de942(0x1c5)])-0x2));console[_0x6de942(0x1a4)](),console['log'](_0xee0535['eCChF'](_0xee0535[_0x6de942(0x1b2)](_0xee0535[_0x6de942(0x1b3)](style,_0xee0535[_0x6de942(0x1b2)](symbols['tl'],symbols['h']),ui[_0x6de942(0x190)]),_0xee0535['skroK'](style,_0x126a21,ui['bold'])),_0xee0535[_0x6de942(0x1b3)](style,_0x10e5d4,ui[_0x6de942(0x190)])));}export function ok(_0x397606,_0x4837ef){const _0x6dc428=_0x257697,_0x36f6c7={'TaPbg':function(_0x1fd4e5,_0x3618f4,_0x51c971){return _0x1fd4e5(_0x3618f4,_0x51c971);}},_0x3d2fb1=_0x36f6c7[_0x6dc428(0x1b4)](style,symbols[_0x6dc428(0x1d1)],ui[_0x6dc428(0x1bc)])+'\x20'+style(_0x397606,ui[_0x6dc428(0x1bc)],ui[_0x6dc428(0x1b9)]);return _0x4837ef?_0x3d2fb1+'\x20\x20'+style(_0x4837ef,ui[_0x6dc428(0x190)]):_0x3d2fb1;}export function warn(_0x533460,_0x8a6eeb){const _0x1c6c90=_0x257697,_0x20a86d={'PQQfL':function(_0x529f7b,_0x571740,_0x1e6ef8,_0x24f81a){return _0x529f7b(_0x571740,_0x1e6ef8,_0x24f81a);},'aBtCn':function(_0x49fa3e,_0x21d9f5,_0xf9734e,_0x27ddf7){return _0x49fa3e(_0x21d9f5,_0xf9734e,_0x27ddf7);},'FaGva':function(_0x19bb18,_0x19ae35,_0x4744cf){return _0x19bb18(_0x19ae35,_0x4744cf);}},_0x267b04=_0x20a86d[_0x1c6c90(0x1aa)](style,symbols[_0x1c6c90(0x1c8)],ui[_0x1c6c90(0x1c0)],ui[_0x1c6c90(0x1b9)])+'\x20'+_0x20a86d[_0x1c6c90(0x1cf)](style,_0x533460,ui[_0x1c6c90(0x1c0)],ui['bold']);return _0x8a6eeb?_0x267b04+'\x20\x20'+_0x20a86d[_0x1c6c90(0x18f)](style,_0x8a6eeb,ui[_0x1c6c90(0x190)]):_0x267b04;}export function bad(_0x1b98ae,_0x17632c){const _0x3ac8b4=_0x257697,_0x5a2e63={'dsQMf':function(_0x4e245f,_0x48f624,_0x684398,_0x585f24){return _0x4e245f(_0x48f624,_0x684398,_0x585f24);}},_0x16e681=_0x5a2e63[_0x3ac8b4(0x1eb)](style,symbols[_0x3ac8b4(0x18e)],ui[_0x3ac8b4(0x1ae)],ui[_0x3ac8b4(0x1b9)])+'\x20'+_0x5a2e63['dsQMf'](style,_0x1b98ae,ui[_0x3ac8b4(0x1ae)],ui['bold']);return _0x17632c?_0x16e681+'\x20\x20'+style(_0x17632c,ui['gray']):_0x16e681;}export function info(_0x10f70f,_0x4bfb55){const _0x54cb02=_0x257697,_0x395161={'AVigT':function(_0x48bf28,_0x487f9a,_0x3cd8c0,_0x470487){return _0x48bf28(_0x487f9a,_0x3cd8c0,_0x470487);},'ycSsK':function(_0x467330,_0x4031e8,_0x583bf3){return _0x467330(_0x4031e8,_0x583bf3);}},_0x3db923=style(symbols[_0x54cb02(0x1e7)],ui[_0x54cb02(0x195)])+'\x20'+_0x395161[_0x54cb02(0x1c4)](style,_0x10f70f,ui[_0x54cb02(0x195)],ui['bold']);return _0x4bfb55?_0x3db923+'\x20\x20'+_0x395161[_0x54cb02(0x1e6)](style,_0x4bfb55,ui[_0x54cb02(0x190)]):_0x3db923;}export function printKeyValues(_0x423252){const _0x42933a=_0x257697,_0xd4cdd3={'yKABp':function(_0x260048,_0x1bfe61){return _0x260048===_0x1bfe61;},'HaMKz':function(_0xaebe04,_0x358596){return _0xaebe04<_0x358596;},'tfJHE':function(_0xed0232,_0x3c144b){return _0xed0232-_0x3c144b;},'XlorR':function(_0x14354d,_0x2f5ede,_0x20d213){return _0x14354d(_0x2f5ede,_0x20d213);}};if(_0xd4cdd3['yKABp'](_0x423252[_0x42933a(0x1c5)],0x0))return;const _0x460559=_0x423252[_0x42933a(0x1af)]((_0x218678,_0x10f590)=>Math[_0x42933a(0x1e1)](_0x218678,_0x10f590[_0x42933a(0x18a)][_0x42933a(0x1c5)]),0x0);for(let _0x2a3ea8=0x0;_0xd4cdd3[_0x42933a(0x1bd)](_0x2a3ea8,_0x423252[_0x42933a(0x1c5)]);_0x2a3ea8++){const _0x46410c=_0x2a3ea8===_0xd4cdd3[_0x42933a(0x18c)](_0x423252[_0x42933a(0x1c5)],0x1),_0x201162=_0xd4cdd3[_0x42933a(0x1e0)](style,_0x46410c?symbols[_0x42933a(0x1d6)]:symbols[_0x42933a(0x1a9)],ui[_0x42933a(0x190)]),_0x5cdced=style(_0x423252[_0x2a3ea8][_0x42933a(0x18a)][_0x42933a(0x1a6)](_0x460559),ui[_0x42933a(0x190)],ui[_0x42933a(0x193)]);console[_0x42933a(0x1a4)]('\x20\x20'+_0x201162+'\x20'+_0x5cdced+'\x20\x20'+_0x423252[_0x2a3ea8][_0x42933a(0x1e4)]);}}export function printList(_0x38cc53,_0x3b941b){const _0x4a6565=_0x257697,_0x30bbb0={'CLwuE':function(_0x2ec74b,_0x39cdae,_0x336f86){return _0x2ec74b(_0x39cdae,_0x336f86);},'ePZda':function(_0x29b3fa,_0x29d3a0){return _0x29b3fa===_0x29d3a0;},'MZobD':function(_0x39adc2,_0x2185f7,_0x83ccbd,_0x1e0805){return _0x39adc2(_0x2185f7,_0x83ccbd,_0x1e0805);},'oxKtB':_0x4a6565(0x19a),'mQuxf':function(_0x48f79c,_0x4ffcee){return _0x48f79c<_0x4ffcee;},'RGXWR':function(_0x4e53cf,_0x353b2a){return _0x4e53cf-_0x353b2a;},'mgSXM':function(_0x501baa,_0x579c01,_0x33ab68){return _0x501baa(_0x579c01,_0x33ab68);}};console[_0x4a6565(0x1a4)]('\x20\x20'+_0x30bbb0[_0x4a6565(0x19f)](style,_0x38cc53,ui[_0x4a6565(0x1b9)]));if(_0x30bbb0[_0x4a6565(0x1ec)](_0x3b941b[_0x4a6565(0x1c5)],0x0)){console['log']('\x20\x20'+_0x30bbb0[_0x4a6565(0x19f)](style,symbols[_0x4a6565(0x1d6)],ui[_0x4a6565(0x190)])+'\x20'+_0x30bbb0['MZobD'](style,_0x30bbb0['oxKtB'],ui[_0x4a6565(0x190)],ui[_0x4a6565(0x193)]));return;}for(let _0x1c00b2=0x0;_0x30bbb0[_0x4a6565(0x1b8)](_0x1c00b2,_0x3b941b['length']);_0x1c00b2++){const _0x2140b5=_0x30bbb0[_0x4a6565(0x1ec)](_0x1c00b2,_0x30bbb0[_0x4a6565(0x199)](_0x3b941b[_0x4a6565(0x1c5)],0x1)),_0x3745bd=_0x30bbb0[_0x4a6565(0x19f)](style,_0x2140b5?symbols[_0x4a6565(0x1d6)]:symbols['treeItem'],ui['gray']);console[_0x4a6565(0x1a4)]('\x20\x20'+_0x3745bd+'\x20'+_0x30bbb0['mgSXM'](style,_0x3b941b[_0x1c00b2],ui[_0x4a6565(0x187)]));}}export function failAndExit(_0x2e4746){const _0x11ce04=_0x257697,_0x421344={'QYIWB':function(_0x43ca0d,_0x1689e0){return _0x43ca0d-_0x1689e0;},'OGWRc':function(_0x445cba,_0x53875e){return _0x445cba-_0x53875e;},'fhzGr':function(_0x3adb0f,_0x5ccc3f){return _0x3adb0f+_0x5ccc3f;},'BXwNW':function(_0x1bc042,_0x169e0c,_0x34ecf9){return _0x1bc042(_0x169e0c,_0x34ecf9);},'TcKEp':function(_0x5a6189,_0x1cbd04){return _0x5a6189+_0x1cbd04;},'MCuJb':function(_0x19ed2b,_0x52b511,_0xcb064f,_0x24a3f2){return _0x19ed2b(_0x52b511,_0xcb064f,_0x24a3f2);},'mtkOq':function(_0x3e9765,_0x4d8808){return _0x3e9765+_0x4d8808;},'pHxvp':function(_0x1339ba,_0x3ad03d,_0x1a0b93){return _0x1339ba(_0x3ad03d,_0x1a0b93);},'OEfqP':function(_0x11d564,_0x323868){return _0x11d564+_0x323868;}},_0x280c50=termWidth(),_0x25ce13=_0x11ce04(0x1c9),_0x34359d=symbols['h']['repeat'](Math[_0x11ce04(0x1e1)](0x0,_0x421344[_0x11ce04(0x1b1)](_0x280c50-_0x25ce13[_0x11ce04(0x1c5)],0x2))),_0x1f458e=symbols['h'][_0x11ce04(0x1ac)](Math[_0x11ce04(0x1e1)](0x0,_0x421344[_0x11ce04(0x1a0)](_0x280c50,0x2)));console[_0x11ce04(0x1d4)](),console[_0x11ce04(0x1d4)](_0x421344['fhzGr'](_0x421344[_0x11ce04(0x1a8)](style,_0x421344[_0x11ce04(0x1ad)](symbols['tl'],symbols['h']),ui[_0x11ce04(0x1ae)]),_0x421344[_0x11ce04(0x19d)](style,_0x25ce13,ui[_0x11ce04(0x1ae)],ui[_0x11ce04(0x1b9)]))+style(_0x34359d,ui['red'])),console['error'](_0x421344[_0x11ce04(0x1d5)](_0x421344[_0x11ce04(0x1a8)](style,_0x421344[_0x11ce04(0x1d5)](symbols['v'],'\x20'),ui[_0x11ce04(0x1ae)]),'\x20'+_0x421344['MCuJb'](style,symbols[_0x11ce04(0x18e)],ui[_0x11ce04(0x1ae)],ui[_0x11ce04(0x1b9)])+'\x20'+_0x2e4746)),console[_0x11ce04(0x1d4)](_0x421344[_0x11ce04(0x188)](style,_0x421344[_0x11ce04(0x1b6)](_0x421344[_0x11ce04(0x1d5)](symbols['bl'],_0x1f458e),symbols['br']),ui[_0x11ce04(0x1ae)])),console['error'](),process['exit'](0x1);}export async function withProgress(_0x513dae,_0x3ad232){const _0x2525a1=_0x257697,_0x1f3622={'spBzp':function(_0x2c7cf1,_0x52a7f8,_0x40a030,_0x4a6ec3){return _0x2c7cf1(_0x52a7f8,_0x40a030,_0x4a6ec3);},'pYuPK':function(_0x133457,_0x10ac31,_0x60dbc8,_0x53bda2){return _0x133457(_0x10ac31,_0x60dbc8,_0x53bda2);},'Pdirr':function(_0x240339,_0x2fec04){return _0x240339===_0x2fec04;},'XIdXw':_0x2525a1(0x1e5),'ajSAp':_0x2525a1(0x18d),'QhuYK':function(_0x36164b,_0x453999,_0x15b821){return _0x36164b(_0x453999,_0x15b821);},'bRJfd':function(_0x146be3,_0x58b848){return _0x146be3%_0x58b848;},'TDnCM':function(_0x1a8dae,_0x15da39,_0x5e6910){return _0x1a8dae(_0x15da39,_0x5e6910);},'pzJaW':function(_0x3dcb53){return _0x3dcb53();},'kYreG':function(_0x1d186d){return _0x1d186d();},'wzoiv':function(_0x521fed,_0x50ca45,_0x38c9df){return _0x521fed(_0x50ca45,_0x38c9df);},'KueVc':function(_0x122c24,_0x34d290){return _0x122c24(_0x34d290);},'tpufh':_0x2525a1(0x1e3),'OLVlv':function(_0x37eb71,_0x59cd77){return _0x37eb71(_0x59cd77);},'VWlSx':function(_0x486a66,_0x340d8b){return _0x486a66(_0x340d8b);}};if(!process[_0x2525a1(0x1ca)][_0x2525a1(0x1d8)])return console[_0x2525a1(0x1a4)](_0x513dae),_0x1f3622[_0x2525a1(0x1c3)](_0x3ad232);const _0x3450b5=['⠋','⠙','⠹','⠸','⠼','⠴','⠦','⠧','⠇','⠏'];let _0x1ac97a=0x0;const _0x128739=()=>{const _0x37d262=_0x2525a1,_0x5aa860={'KbouR':function(_0x330438,_0x30751a,_0x3d4e75,_0x49939e){const _0x43316d=_0x5558;return _0x1f3622[_0x43316d(0x1d9)](_0x330438,_0x30751a,_0x3d4e75,_0x49939e);},'COzzq':function(_0x15a58c,_0x384542,_0x5a603f,_0x1aaa9b){const _0x45a832=_0x5558;return _0x1f3622[_0x45a832(0x1d2)](_0x15a58c,_0x384542,_0x5a603f,_0x1aaa9b);}};if(_0x1f3622[_0x37d262(0x19b)](_0x1f3622['XIdXw'],_0x1f3622[_0x37d262(0x1d7)])){const _0x3c30fa=qrsNqn['KbouR'](_0x5b0fc2,_0x79fe18[_0x37d262(0x1c8)],_0x4008d0[_0x37d262(0x1c0)],_0x5aeceb['bold'])+'\x20'+qrsNqn[_0x37d262(0x1ce)](_0x5f3008,_0x3c0b90,_0x50e10b[_0x37d262(0x1c0)],_0x273435[_0x37d262(0x1b9)]);return _0x1d7044?_0x3c30fa+'\x20\x20'+_0x59e42c(_0x46c5a3,_0x2d7356[_0x37d262(0x190)]):_0x3c30fa;}else{const _0x88498e=_0x1f3622[_0x37d262(0x1da)](style,_0x3450b5[_0x1f3622['bRJfd'](_0x1ac97a,_0x3450b5['length'])],ui[_0x37d262(0x195)]);process['stdout'][_0x37d262(0x1cb)]('\x0d\x20\x20'+_0x88498e+'\x20\x20'+_0x1f3622[_0x37d262(0x189)](style,_0x513dae,ui[_0x37d262(0x187)])),_0x1ac97a+=0x1;}};_0x1f3622[_0x2525a1(0x194)](_0x128739);const _0x322297=_0x1f3622[_0x2525a1(0x1e9)](setInterval,_0x128739,0x50);try{const _0x3ac2cb=await _0x3ad232();return _0x1f3622[_0x2525a1(0x1cd)](clearInterval,_0x322297),process[_0x2525a1(0x1ca)][_0x2525a1(0x1cb)](_0x1f3622[_0x2525a1(0x198)]),console[_0x2525a1(0x1a4)]('\x20\x20'+_0x1f3622[_0x2525a1(0x18b)](ok,_0x513dae)),_0x3ac2cb;}catch(_0x2d129b){_0x1f3622['VWlSx'](clearInterval,_0x322297),process[_0x2525a1(0x1ca)][_0x2525a1(0x1cb)](_0x2525a1(0x1e3)),console[_0x2525a1(0x1a4)]('\x20\x20'+bad(_0x513dae));throw _0x2d129b;}}
@@ -1 +1 @@
1
- function _0xe8b4(){const _0x571fa9=['swrYi','npm.cmd','sQLAO','tWoMu','DKpgL','KnVNq','heck.jso','\x20-g\x20','UYlvG','ioJRc','bdWcV','fPzRW','1650316OqnHnF','[Update\x20','--help','.npmjs.o','gemit-cl','\x20now\x20on\x20','VgIQr','UeRwH','DyrdD','YtJap','onnectio','signal','Mlilj','parse','UPDATE\x20F','yCnVY','ouhBq','isFinite','obZzm','m\x20i\x20-g\x20','XQspa','stringif','json','UPDATE\x20S','trim','rminal\x20w','UKWKM','JhapX','161189ivtcdS','toString','+)+$','tlDxh','the\x20upda','https://','Pprfo','now','object','MMnZb','12Bbakjg','registry','TVNjt',']\x20&\x20paus','cmd.exe','6XZXfWc','Sgzlp','gemit\x20is','IgXzx','detached','tor','lastChec','18GaHbtg','startsWi','Run\x20manu','vLPfw','1161627RKpdbe','VbqyR','KZDhX','2255030vgGbyI','gsWDx','doctor','UQnNH','ore\x20runn','utf8','tGMez','st\x20versi','zmZBL','Finished','abort','ally:\x20np','UPDATED','search','pWILD','568fKcFMJ','platform','ignore','slice','s\x20opened','t\x20again.','HThRy','@latest','indow\x20wa','bdsCk','split','vieyu','orm\x20the\x20','nish\x20bef','MkeaM','start','log','npm','o\x20fetch\x20','WAIT','XslHD','version','ZRrIz','apply','rg/','13194863AiNHwX','CIXIB','CwlAh','TARTED','length','update-c','kedAt','oHcsy','\x20to\x20perf','kill','wLUyL','12RnwJER','string','fpyBD','FZWYj','XvmCZ','vxQYa','YZKEH','WPmrA','the\x20late','cted\x20(','6587740ulTDBc','ion\x20dete','ccMql','fnSAF','ate\x20(','k\x20your\x20c','NIlcq','HBBav','eZHga','unref','3284720xlafLm','CgJJc','klTqL','mSelh','update.','nWkyf','\x20&\x20echo.','includes','Failed\x20t','NjkoU','hAEKs','KyBpM','init','glbFI','uBpDp','YLLDi','HknBs','Irdxv','\x20up\x20to\x20d','win32','Alxwb','on.\x20Chec'];_0xe8b4=function(){return _0x571fa9;};return _0xe8b4();}const _0x413786=_0x4bbb;(function(_0x16d585,_0x21e45a){const _0x21c63b=_0x4bbb,_0x1884c0=_0x16d585();while(!![]){try{const _0x563eb7=parseInt(_0x21c63b(0x195))/0x1+parseInt(_0x21c63b(0x173))/0x2+-parseInt(_0x21c63b(0x129))/0x3*(parseInt(_0x21c63b(0x15f))/0x4)+parseInt(_0x21c63b(0x12c))/0x5*(parseInt(_0x21c63b(0x11e))/0x6)+-parseInt(_0x21c63b(0x10f))/0x7*(parseInt(_0x21c63b(0x13b))/0x8)+parseInt(_0x21c63b(0x125))/0x9*(-parseInt(_0x21c63b(0x169))/0xa)+-parseInt(_0x21c63b(0x154))/0xb*(-parseInt(_0x21c63b(0x119))/0xc);if(_0x563eb7===_0x21e45a)break;else _0x1884c0['push'](_0x1884c0['shift']());}catch(_0x10a423){_0x1884c0['push'](_0x1884c0['shift']());}}}(_0xe8b4,0xca6c3));const _0x43e24d=(function(){const _0x14f387={'UeRwH':'dfiYn','vxQYa':function(_0x1758bf){return _0x1758bf();},'KnVNq':'utf8','uHCIo':function(_0x416bd0,_0x164a2a){return _0x416bd0===_0x164a2a;}};let _0x5ad866=!![];return function(_0x57d708,_0x2cc50f){const _0x3f314c=_0x4bbb,_0x51eccb={'klTqL':function(_0x2d667c,_0x4f52d9,_0x329d8a){return _0x2d667c(_0x4f52d9,_0x329d8a);},'UYlvG':function(_0x2facd7){const _0x59dcf2=_0x4bbb;return _0x14f387[_0x59dcf2(0x164)](_0x2facd7);},'zmZBL':_0x14f387[_0x3f314c(0x18e)],'YtJap':function(_0x492c9b,_0x1198ec){return _0x14f387['uHCIo'](_0x492c9b,_0x1198ec);},'ouhBq':_0x3f314c(0x117)},_0x8db946=_0x5ad866?function(){const _0x10bd11=_0x3f314c;if(_0x14f387['UeRwH']===_0x14f387[_0x10bd11(0x19c)]){if(_0x2cc50f){const _0x2cca56=_0x2cc50f[_0x10bd11(0x152)](_0x57d708,arguments);return _0x2cc50f=null,_0x2cca56;}}else{const _0x25df0e=_0x51eccb[_0x10bd11(0x175)](_0x422d1f,_0x51eccb[_0x10bd11(0x191)](_0x233f8c),_0x51eccb[_0x10bd11(0x134)]),_0x198596=_0xd63ae2[_0x10bd11(0x1a2)](_0x25df0e);return _0x198596&&_0x51eccb[_0x10bd11(0x19e)](typeof _0x198596,_0x51eccb[_0x10bd11(0x1a5)])?_0x198596:{};}}:function(){};return _0x5ad866=![],_0x8db946;};}()),_0x2876d9=_0x43e24d(this,function(){const _0x2dd1e4=_0x4bbb,_0x532bfc={'glbFI':'(((.+)+)'+_0x2dd1e4(0x111)};return _0x2876d9[_0x2dd1e4(0x110)]()[_0x2dd1e4(0x139)](_0x532bfc['glbFI'])['toString']()['construc'+_0x2dd1e4(0x123)](_0x2876d9)[_0x2dd1e4(0x139)](_0x532bfc[_0x2dd1e4(0x180)]);});_0x2876d9();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=_0x413786(0x199)+'i',CHECK_INTERVAL_MS=0x3e8*0x3c*0x3c*0xc,CHECK_TIMEOUT_MS=0x9c4,UPDATE_TIMEOUT_MS=0x3e8*0x3c*0x2;export async function maybeAutoUpdate(_0x4bb8b8,_0x4562dc=![]){const _0x21d3b6=_0x413786,_0x4a923d={'pWILD':function(_0x5dda6d,_0x1487a6,_0x539d4d){return _0x5dda6d(_0x1487a6,_0x539d4d);},'vieyu':'UPDATE','Irdxv':function(_0x5a5351,_0x42f9a1){return _0x5a5351===_0x42f9a1;},'VgIQr':function(_0x8792e6){return _0x8792e6();},'rlyag':function(_0x3ac20f,_0x3197e4){return _0x3ac20f<_0x3197e4;},'bdsCk':function(_0x5d9a29,_0x43c31e){return _0x5d9a29-_0x43c31e;},'tGMez':function(_0x2d32f9,_0x3be1ff,_0xc19df3){return _0x2d32f9(_0x3be1ff,_0xc19df3);},'yCnVY':_0x21d3b6(0x17b)+_0x21d3b6(0x14d)+'the\x20late'+'st\x20versi'+_0x21d3b6(0x188)+_0x21d3b6(0x16e)+_0x21d3b6(0x19f)+'n.','HknBs':function(_0x26841b,_0x16105c){return _0x26841b(_0x16105c);},'MkeaM':function(_0x1664a2,_0x1bae1e){return _0x1664a2===_0x1bae1e;},'NjkoU':_0x21d3b6(0x18b),'hAEKs':function(_0x38bc53,_0x11eec2,_0x4f0636){return _0x38bc53(_0x11eec2,_0x4f0636);},'obZzm':_0x21d3b6(0x122),'FZWYj':function(_0x41a1ff,_0x4174de,_0x20b9ed){return _0x41a1ff(_0x4174de,_0x20b9ed);},'yzxIM':_0x21d3b6(0x10a)+_0x21d3b6(0x157),'XQspa':'A\x20new\x20te'+_0x21d3b6(0x10c)+_0x21d3b6(0x143)+_0x21d3b6(0x13f)+_0x21d3b6(0x15c)+_0x21d3b6(0x147)+_0x21d3b6(0x177),'GOkgR':_0x21d3b6(0x14e),'HThRy':'Please\x20w'+'ait\x20for\x20'+_0x21d3b6(0x113)+'te\x20to\x20fi'+_0x21d3b6(0x148)+_0x21d3b6(0x130)+'ing\x20gemi'+_0x21d3b6(0x140),'TVNjt':_0x21d3b6(0x138),'Alxwb':_0x21d3b6(0x1a3)+'AILED'};if(_0x4a923d[_0x21d3b6(0x184)](process.env.GEMIT_DISABLE_AUTO_UPDATE,'1')&&!_0x4562dc)return;if(!shouldCheckForUpdates(_0x4bb8b8)&&!_0x4562dc)return;const _0x2913f1=_0x4a923d['VgIQr'](readCache),_0x59a451=Date[_0x21d3b6(0x116)]();if(!_0x4562dc&&_0x2913f1[_0x21d3b6(0x124)+'kedAt']&&_0x4a923d['rlyag'](_0x4a923d[_0x21d3b6(0x144)](_0x59a451,_0x2913f1[_0x21d3b6(0x124)+_0x21d3b6(0x15a)]),CHECK_INTERVAL_MS))return;const _0x5ab1f1=await fetchLatestVersion();if(!_0x5ab1f1){_0x4562dc&&console[_0x21d3b6(0x14b)](_0x4a923d[_0x21d3b6(0x132)](bad,_0x4a923d['vieyu'],_0x4a923d[_0x21d3b6(0x1a4)]));return;}!_0x4562dc&&_0x4a923d[_0x21d3b6(0x183)](writeCache,{'lastCheckedAt':_0x59a451});const _0x567e00=_0x4a923d[_0x21d3b6(0x19b)](getCliVersion);if(!_0x4a923d[_0x21d3b6(0x132)](isVersionLower,_0x567e00,_0x5ab1f1)){if(_0x4a923d[_0x21d3b6(0x149)](_0x21d3b6(0x115),_0x4a923d[_0x21d3b6(0x17c)])){_0x244676&&_0x40dff5[_0x21d3b6(0x14b)](_0x4a923d[_0x21d3b6(0x13a)](_0xa183e2,_0x4a923d[_0x21d3b6(0x146)],_0x21d3b6(0x120)+_0x21d3b6(0x185)+_0x21d3b6(0x16d)+_0x50dc19+').'));return;}else{_0x4562dc&&console[_0x21d3b6(0x14b)](_0x4a923d['pWILD'](ok,_0x4a923d[_0x21d3b6(0x146)],_0x21d3b6(0x120)+'\x20up\x20to\x20d'+_0x21d3b6(0x16d)+_0x567e00+').'));return;}}console[_0x21d3b6(0x14b)](_0x4a923d[_0x21d3b6(0x17d)](warn,_0x4a923d[_0x21d3b6(0x146)],'New\x20vers'+_0x21d3b6(0x16a)+_0x21d3b6(0x168)+_0x567e00+'\x20->\x20'+_0x5ab1f1+').'));const _0x2552e1=await runGlobalUpdate();if(_0x4a923d[_0x21d3b6(0x149)](_0x2552e1,_0x4a923d[_0x21d3b6(0x1a7)]))console['log'](_0x4a923d[_0x21d3b6(0x162)](ok,_0x4a923d['yzxIM'],_0x4a923d[_0x21d3b6(0x1a9)])),console[_0x21d3b6(0x14b)](warn(_0x4a923d['GOkgR'],_0x4a923d[_0x21d3b6(0x141)]));else _0x2552e1?console[_0x21d3b6(0x14b)](_0x4a923d['hAEKs'](ok,_0x4a923d[_0x21d3b6(0x11b)],_0x21d3b6(0x120)+_0x21d3b6(0x19a)+_0x5ab1f1+'.')):console[_0x21d3b6(0x14b)](_0x4a923d[_0x21d3b6(0x162)](bad,_0x4a923d[_0x21d3b6(0x187)],_0x21d3b6(0x127)+_0x21d3b6(0x137)+_0x21d3b6(0x1a8)+PACKAGE_NAME+'@latest'));}function shouldCheckForUpdates(_0x572655){const _0xc5a714=_0x413786,_0x2aae5e={'JhapX':function(_0x414d0a,_0x38a355){return _0x414d0a<=_0x38a355;},'Mlilj':function(_0x383203,_0xa44a36){return _0x383203===_0xa44a36;},'uBpDp':_0xc5a714(0x161),'KyBpM':_0xc5a714(0x197),'pCeWj':function(_0xe88024,_0x319280){return _0xe88024!==_0x319280;},'VbWrZ':_0xc5a714(0x17f),'oHcsy':_0xc5a714(0x12e)};if(_0x2aae5e[_0xc5a714(0x10e)](_0x572655[_0xc5a714(0x158)],0x2))return _0x2aae5e[_0xc5a714(0x1a1)](_0xc5a714(0x171),_0x2aae5e[_0xc5a714(0x181)])?!![]:!![];const _0x18606f=_0x572655[_0xc5a714(0x13e)](0x2);if(_0x18606f[_0xc5a714(0x17a)]('-h')||_0x18606f[_0xc5a714(0x17a)](_0x2aae5e[_0xc5a714(0x17e)])||_0x18606f['includes']('-v')||_0x18606f[_0xc5a714(0x17a)]('--versio'+'n'))return![];const _0x35d803=_0x18606f['find'](_0x4538e8=>!_0x4538e8[_0xc5a714(0x126)+'th']('-'));if(!_0x35d803)return![];return _0x2aae5e['pCeWj'](_0x35d803,_0x2aae5e['VbWrZ'])&&_0x35d803!==_0x2aae5e[_0xc5a714(0x15b)];}async function fetchLatestVersion(){const _0x30dc6d=_0x413786,_0x531bb0={'mxisd':'UPDATE','KZDhX':function(_0x485d82,_0xc6eec6){return _0x485d82===_0xc6eec6;},'qNIAM':_0x30dc6d(0x160),'wLUyL':function(_0x3755c5,_0x2b8f3e){return _0x3755c5!==_0x2b8f3e;},'bdWcV':'ElWfx','MMnZb':_0x30dc6d(0x16c),'xMWWN':function(_0x139aba,_0x4458f9){return _0x139aba(_0x4458f9);}},_0x1e3729=new AbortController(),_0x7a2ea2=setTimeout(()=>_0x1e3729[_0x30dc6d(0x136)](),CHECK_TIMEOUT_MS);try{const _0x31d281=await fetch(_0x30dc6d(0x114)+_0x30dc6d(0x11a)+_0x30dc6d(0x198)+_0x30dc6d(0x153)+PACKAGE_NAME+'/latest',{'signal':_0x1e3729[_0x30dc6d(0x1a0)]});if(!_0x31d281['ok'])return null;const _0xe32ca9=await _0x31d281[_0x30dc6d(0x109)]();return _0x531bb0[_0x30dc6d(0x12b)](typeof _0xe32ca9[_0x30dc6d(0x150)],_0x531bb0['qNIAM'])?_0xe32ca9[_0x30dc6d(0x150)]:null;}catch{if(_0x531bb0[_0x30dc6d(0x15e)](_0x531bb0[_0x30dc6d(0x193)],_0x531bb0[_0x30dc6d(0x118)]))return null;else{_0x2c3785&&_0x24cde9[_0x30dc6d(0x14b)](_0x12fcb5(uQoUle['mxisd'],_0x30dc6d(0x17b)+_0x30dc6d(0x14d)+_0x30dc6d(0x167)+_0x30dc6d(0x133)+_0x30dc6d(0x188)+'k\x20your\x20c'+_0x30dc6d(0x19f)+'n.'));return;}}finally{_0x531bb0['xMWWN'](clearTimeout,_0x7a2ea2);}}async function runGlobalUpdate(){const _0x2615cd=_0x413786,_0xfb31c1={'swrYi':function(_0x27eb8a,_0x243331){return _0x27eb8a(_0x243331);},'fPzRW':function(_0x1cfb2,_0xea8d89){return _0x1cfb2(_0xea8d89);},'VbqyR':function(_0x36fead,_0x7bc401){return _0x36fead(_0x7bc401);},'gsWDx':function(_0x55c717,_0x3662af){return _0x55c717(_0x3662af);},'UQnNH':function(_0x1889f6,_0x243535){return _0x1889f6===_0x243535;},'tlDxh':function(_0x4b1691,_0x30cb84,_0x4a04d9,_0x1ae3c7){return _0x4b1691(_0x30cb84,_0x4a04d9,_0x1ae3c7);},'ccMql':_0x2615cd(0x14c),'DKpgL':_0x2615cd(0x13d),'tWoMu':'error','ioJRc':_0x2615cd(0x186),'hMdCk':_0x2615cd(0x11d),'CgJJc':'detached'};if(process[_0x2615cd(0x13c)]===_0xfb31c1[_0x2615cd(0x192)])try{const _0x1f51b2=_0x2615cd(0x18a),_0xbd2ad8=_0x1f51b2+('\x20install'+_0x2615cd(0x190))+PACKAGE_NAME+'@latest',_0x253e9c=_0xbd2ad8+(_0x2615cd(0x179)+'\x20&\x20echo\x20'+_0x2615cd(0x196)+_0x2615cd(0x135)+_0x2615cd(0x11c)+'e');return _0xfb31c1[_0x2615cd(0x112)](spawn,'cmd.exe',['/c',_0x2615cd(0x14a),_0xfb31c1['hMdCk'],'/c',_0x253e9c],{'detached':!![],'stdio':_0xfb31c1[_0x2615cd(0x18d)]})[_0x2615cd(0x172)](),_0xfb31c1[_0x2615cd(0x174)];}catch{return![];}return new Promise(_0x4e73e5=>{const _0x2f911d=_0x2615cd,_0x47cf98={'WPmrA':function(_0x4039c0,_0xae1ab6){return _0x4039c0(_0xae1ab6);},'nWkyf':function(_0x44ab96,_0x3553e9){return _0xfb31c1['gsWDx'](_0x44ab96,_0x3553e9);},'XslHD':function(_0x2fcd8f,_0x3c13df){const _0x9df60=_0x4bbb;return _0xfb31c1[_0x9df60(0x12f)](_0x2fcd8f,_0x3c13df);}};try{const _0x2fa632=_0xfb31c1['tlDxh'](spawn,_0xfb31c1[_0x2f911d(0x16b)],['install','-g',PACKAGE_NAME+_0x2f911d(0x142)],{'stdio':_0xfb31c1[_0x2f911d(0x18d)]}),_0x11001e=setTimeout(()=>{const _0x443444=_0x2f911d;_0x2fa632[_0x443444(0x15d)](),_0xfb31c1[_0x443444(0x189)](_0x4e73e5,![]);},UPDATE_TIMEOUT_MS);_0x2fa632['on'](_0xfb31c1[_0x2f911d(0x18c)],()=>{const _0x1b013f=_0x2f911d;_0xfb31c1[_0x1b013f(0x194)](clearTimeout,_0x11001e),_0xfb31c1[_0x1b013f(0x12a)](_0x4e73e5,![]);}),_0x2fa632['on']('exit',_0x4265f2=>{const _0x3d64c7=_0x2f911d;_0x47cf98[_0x3d64c7(0x166)](clearTimeout,_0x11001e),_0x47cf98[_0x3d64c7(0x178)](_0x4e73e5,_0x47cf98[_0x3d64c7(0x14f)](_0x4265f2,0x0));});}catch{_0xfb31c1[_0x2f911d(0x12d)](_0x4e73e5,![]);}});}function _0x4bbb(_0x4538b7,_0x4393ea){_0x4538b7=_0x4538b7-0x109;const _0x572809=_0xe8b4();let _0x2876d9=_0x572809[_0x4538b7];return _0x2876d9;}function getCachePath(){const _0x4d0958=_0x413786,_0xb3d44f={'CIXIB':function(_0x1aed62,_0x5c302f,_0x1dabcc){return _0x1aed62(_0x5c302f,_0x1dabcc);},'XvmCZ':function(_0x3f5b7b,_0x2f6c16){return _0x3f5b7b(_0x2f6c16);},'CwlAh':function(_0x611f1a){return _0x611f1a();},'eSoUU':_0x4d0958(0x159)+_0x4d0958(0x18f)+'n'};return _0xb3d44f[_0x4d0958(0x155)](join,_0xb3d44f[_0x4d0958(0x163)](dirname,_0xb3d44f[_0x4d0958(0x156)](getGlobalEnvPath)),_0xb3d44f['eSoUU']);}function readCache(){const _0x3329fa=_0x413786,_0x3a6b90={'NIlcq':_0x3329fa(0x131),'YLLDi':_0x3329fa(0x117)};try{const _0x195560=readFileSync(getCachePath(),_0x3a6b90[_0x3329fa(0x16f)]),_0x5e35ef=JSON[_0x3329fa(0x1a2)](_0x195560);return _0x5e35ef&&typeof _0x5e35ef===_0x3a6b90[_0x3329fa(0x182)]?_0x5e35ef:{};}catch{return{};}}function writeCache(_0x216db0){const _0x1add3b=_0x413786,_0x346f9e={'UKWKM':function(_0x15168b){return _0x15168b();},'ZRrIz':function(_0x7f0367,_0x31a1bd,_0x1e60ea,_0x2820a7){return _0x7f0367(_0x31a1bd,_0x1e60ea,_0x2820a7);}};try{const _0x3f2765=_0x346f9e[_0x1add3b(0x10d)](getCachePath);mkdirSync(dirname(_0x3f2765),{'recursive':!![]}),_0x346f9e[_0x1add3b(0x151)](writeFileSync,_0x3f2765,JSON[_0x1add3b(0x1aa)+'y'](_0x216db0),_0x1add3b(0x131));}catch{}}function isVersionLower(_0x21fcdb,_0x45f606){const _0x3c878d=_0x413786,_0x4682af={'DyrdD':function(_0x82d583,_0x3432f5){return _0x82d583(_0x3432f5);},'IgXzx':function(_0xac40b3,_0x160c71){return _0xac40b3(_0x160c71);},'cBowv':function(_0x576d6c,_0x22a284){return _0x576d6c||_0x22a284;},'Sgzlp':function(_0x15e121,_0x5f3298){return _0x15e121<_0x5f3298;},'HBBav':function(_0x33a107,_0x15214c){return _0x33a107<_0x15214c;},'vLPfw':function(_0x5b78cc,_0x1c18fb){return _0x5b78cc>_0x1c18fb;}},_0x5397b5=_0x4682af[_0x3c878d(0x19d)](normalizeVersion,_0x21fcdb),_0x36915a=_0x4682af[_0x3c878d(0x121)](normalizeVersion,_0x45f606);if(_0x4682af['cBowv'](!_0x5397b5,!_0x36915a))return![];for(let _0x4b4e92=0x0;_0x4682af[_0x3c878d(0x11f)](_0x4b4e92,0x3);_0x4b4e92+=0x1){if(_0x4682af[_0x3c878d(0x170)](_0x5397b5[_0x4b4e92],_0x36915a[_0x4b4e92]))return!![];if(_0x4682af[_0x3c878d(0x128)](_0x5397b5[_0x4b4e92],_0x36915a[_0x4b4e92]))return![];}return![];}function normalizeVersion(_0x3ce7bd){const _0x36b52e=_0x413786,_0x4dbf7f={'mSelh':function(_0x508563,_0x2ccc07){return _0x508563<_0x2ccc07;},'sQlGY':function(_0x2d6135,_0x38f12e){return _0x2d6135(_0x38f12e);},'YZKEH':function(_0x28b7c2,_0x4f0db9){return _0x28b7c2(_0x4f0db9);}},_0x4ccd9e=_0x3ce7bd[_0x36b52e(0x10b)]()['replace'](/^v/i,'')[_0x36b52e(0x145)]('-')[0x0],_0x1bfbfc=_0x4ccd9e[_0x36b52e(0x145)]('.');if(_0x4dbf7f[_0x36b52e(0x176)](_0x1bfbfc['length'],0x3))return null;const _0x24d34f=_0x4dbf7f['sQlGY'](Number,_0x1bfbfc[0x0]),_0x48abac=_0x4dbf7f[_0x36b52e(0x165)](Number,_0x1bfbfc[0x1]),_0x5569a4=_0x4dbf7f[_0x36b52e(0x165)](Number,_0x1bfbfc[0x2]);if(!Number['isFinite'](_0x24d34f)||!Number[_0x36b52e(0x1a6)](_0x48abac)||!Number[_0x36b52e(0x1a6)](_0x5569a4))return null;return[_0x24d34f,_0x48abac,_0x5569a4];}
1
+ const _0x569f71=_0x1976;(function(_0x4212fc,_0x95ce30){const _0x564ef6=_0x1976,_0x36e76d=_0x4212fc();while(!![]){try{const _0x1fdefe=parseInt(_0x564ef6(0x197))/0x1+parseInt(_0x564ef6(0x170))/0x2*(-parseInt(_0x564ef6(0x156))/0x3)+parseInt(_0x564ef6(0x1d3))/0x4+parseInt(_0x564ef6(0x187))/0x5+-parseInt(_0x564ef6(0x158))/0x6*(parseInt(_0x564ef6(0x17a))/0x7)+-parseInt(_0x564ef6(0x1c9))/0x8+-parseInt(_0x564ef6(0x1c0))/0x9;if(_0x1fdefe===_0x95ce30)break;else _0x36e76d['push'](_0x36e76d['shift']());}catch(_0x5f4c8a){_0x36e76d['push'](_0x36e76d['shift']());}}}(_0xe7d4,0x787e7));const _0x553347=(function(){const _0x41b1a4=_0x1976,_0x559e03={'lKLuL':function(_0x1e3144,_0x1f918f){return _0x1e3144(_0x1f918f);},'ywsmJ':function(_0x4866b6,_0x458d3c){return _0x4866b6===_0x458d3c;},'GvleT':_0x41b1a4(0x15e)};let _0x21f6f1=!![];return function(_0xd7627f,_0x510e0f){const _0x1579ce=_0x41b1a4,_0xa4c917={'SBZQW':function(_0x4bb569,_0x209d0d){return _0x559e03['lKLuL'](_0x4bb569,_0x209d0d);}};if(_0x559e03['ywsmJ'](_0x559e03[_0x1579ce(0x190)],'knfoX')){const _0x51cb1c=_0x21f6f1?function(){const _0x290672=_0x1579ce;if(_0x510e0f){const _0x2a740e=_0x510e0f[_0x290672(0x1a4)](_0xd7627f,arguments);return _0x510e0f=null,_0x2a740e;}}:function(){};return _0x21f6f1=![],_0x51cb1c;}else _0xa4c917['SBZQW'](_0x1504e2,![]);};}()),_0x2932f2=_0x553347(this,function(){const _0x1429f7=_0x1976,_0xc09b1a={'HvzSJ':_0x1429f7(0x1d6)+_0x1429f7(0x1d5)};return _0x2932f2[_0x1429f7(0x166)]()[_0x1429f7(0x175)](_0xc09b1a['HvzSJ'])[_0x1429f7(0x166)]()[_0x1429f7(0x19c)+_0x1429f7(0x13e)](_0x2932f2)[_0x1429f7(0x175)](_0x1429f7(0x1d6)+'+)+$');});_0x2932f2();import{mkdirSync,readFileSync,writeFileSync}from'fs';import{spawn}from'child_process';function _0x1976(_0x3a3609,_0x182512){_0x3a3609=_0x3a3609-0x13e;const _0x218502=_0xe7d4();let _0x2932f2=_0x218502[_0x3a3609];return _0x2932f2;}function _0xe7d4(){const _0x146b67=['UPDATE\x20S','zXzCL','orm\x20the\x20','WDTbL','exit','hJIxm','UPDATE','update.','cted\x20(','pAkuF','NLugq','FvAow','lhdIN','rg/','jVLhm','stringif','2253QYYlVN','gemit-cl','6cmhGHl','version','OJuEk','ion\x20dete','oUqYk','HTjUG','knfoX','kill','start','WQzdd','ignore','/latest','WAIT','UPDATED','toString','\x20->\x20','indow\x20wa','string','--help','k\x20your\x20c','tqLde','win32','gemit\x20is','xEoPs','676rLUztg','isFinite','XsVSu','UPDATE\x20F','wxVve','search','--versio','xgYif','jsnec','TrcCO','419601sZJmQb','hQnCN','length','CRIZx','ywIJe','AhDPf','MmtKm','New\x20vers','parse','utf8','lfmta','Run\x20manu','dGazw','4661740YRgmze','signal','uRybM','Please\x20w','iFsHB','mHzTj','lastChec','ally:\x20np','@latest','GvleT','includes','kfvKc','init','install','ktEiZ','\x20-g\x20','764511uohqKW','s\x20opened','\x20&\x20echo.','qttJt','losNd','construc','ate\x20(','rpAPg','abort','QyYoN','o\x20fetch\x20','log','BYYLw','apply','.npmjs.o','json','cmd.exe','[Update\x20','ETaAJ','vNniq','npm','trim','now','rminal\x20w','Failed\x20t','atOsf','st\x20versi','the\x20upda','ytrQK','slice','ore\x20runn','the\x20late','object','\x20&\x20echo\x20','t\x20again.','npm.cmd','TARTED','HAmkE','Finished','te\x20to\x20fi','error','3389859Vupxrm','YMEvC','on.\x20Chec',']\x20&\x20paus','vnCsW','\x20up\x20to\x20d','AILED','cSkAl','salkZ','4245568SALXTs','UGeyf','startsWi','CcLZE','ExjBQ','A\x20new\x20te','ait\x20for\x20','m\x20i\x20-g\x20','update-c','cUNIF','71248zxSJGA','ezEAY','+)+$','(((.+)+)','onnectio','split','tor','replace','kedAt','registry','ybOjs','fJbeK','ZfxuV','PkeGH'];_0xe7d4=function(){return _0x146b67;};return _0xe7d4();}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=_0x569f71(0x157)+'i',CHECK_INTERVAL_MS=0x3e8*0x3c*0x3c*0xc,CHECK_TIMEOUT_MS=0x9c4,UPDATE_TIMEOUT_MS=0x3e8*0x3c*0x2;export async function maybeAutoUpdate(_0x3efd6d,_0x248563=![]){const _0x376c22=_0x569f71,_0x7d34b3={'BYYLw':_0x376c22(0x173)+_0x376c22(0x1c6),'lfmta':function(_0x48c623,_0x3639f3){return _0x48c623===_0x3639f3;},'dcqLm':function(_0x1dbe03,_0x4463dd){return _0x1dbe03(_0x4463dd);},'ksYZy':function(_0x2c42b5,_0xf12d4f){return _0x2c42b5<_0xf12d4f;},'LJEtE':function(_0x34fa6b,_0x5a5ce2){return _0x34fa6b-_0x5a5ce2;},'OJuEk':function(_0x106223,_0x26cecd,_0x3fa264){return _0x106223(_0x26cecd,_0x3fa264);},'xgYif':_0x376c22(0x14c),'ohRYO':_0x376c22(0x1af)+_0x376c22(0x1a1)+_0x376c22(0x1b6)+_0x376c22(0x1b1)+_0x376c22(0x1c2)+_0x376c22(0x16b)+_0x376c22(0x1d7)+'n.','qttJt':function(_0x483eec){return _0x483eec();},'AhDPf':function(_0x6c8e17,_0x1f99d8){return _0x6c8e17!==_0x1f99d8;},'KxwwY':'EHJhC','rpAPg':_0x376c22(0x1d4),'WDTbL':function(_0x48b7a5){return _0x48b7a5();},'jVLhm':'detached','QyYoN':_0x376c22(0x146)+_0x376c22(0x1bb),'mHzTj':_0x376c22(0x1ce)+_0x376c22(0x1ae)+_0x376c22(0x168)+_0x376c22(0x198)+'\x20to\x20perf'+_0x376c22(0x148)+_0x376c22(0x14d),'dGazw':function(_0xe6b7c6,_0x1a7995,_0x23ae83){return _0xe6b7c6(_0x1a7995,_0x23ae83);},'ytrQK':_0x376c22(0x164),'PiLHd':_0x376c22(0x18a)+_0x376c22(0x1cf)+_0x376c22(0x1b2)+_0x376c22(0x1be)+'nish\x20bef'+_0x376c22(0x1b5)+'ing\x20gemi'+_0x376c22(0x1b9),'xEoPs':function(_0x361156,_0x1c79b9,_0x56e1f4){return _0x361156(_0x1c79b9,_0x56e1f4);},'atOsf':function(_0x40fdc2,_0x91c5f7,_0x2523c2){return _0x40fdc2(_0x91c5f7,_0x2523c2);}};if(_0x7d34b3[_0x376c22(0x184)](process.env.GEMIT_DISABLE_AUTO_UPDATE,'1')&&!_0x248563)return;if(!_0x7d34b3['dcqLm'](shouldCheckForUpdates,_0x3efd6d)&&!_0x248563)return;const _0x3e3c06=readCache(),_0xd3d851=Date[_0x376c22(0x1ad)]();if(!_0x248563&&_0x3e3c06[_0x376c22(0x18d)+_0x376c22(0x140)]&&_0x7d34b3['ksYZy'](_0x7d34b3['LJEtE'](_0xd3d851,_0x3e3c06['lastChec'+_0x376c22(0x140)]),CHECK_INTERVAL_MS))return;const _0x2187b3=await fetchLatestVersion();if(!_0x2187b3){_0x248563&&console['log'](_0x7d34b3[_0x376c22(0x15a)](bad,_0x7d34b3[_0x376c22(0x177)],_0x7d34b3['ohRYO']));return;}!_0x248563&&writeCache({'lastCheckedAt':_0xd3d851});const _0x2c0310=_0x7d34b3[_0x376c22(0x19a)](getCliVersion);if(!_0x7d34b3[_0x376c22(0x15a)](isVersionLower,_0x2c0310,_0x2187b3)){if(_0x7d34b3[_0x376c22(0x17f)](_0x7d34b3['KxwwY'],_0x7d34b3[_0x376c22(0x19e)])){_0x248563&&console[_0x376c22(0x1a2)](ok(_0x7d34b3[_0x376c22(0x177)],_0x376c22(0x16e)+_0x376c22(0x1c5)+_0x376c22(0x19d)+_0x2c0310+').'));return;}else _0x29f2ab[_0x376c22(0x1a2)](_0x44b0ca(_0x7d34b3[_0x376c22(0x1a3)],_0x376c22(0x185)+_0x376c22(0x18e)+'m\x20i\x20-g\x20'+_0x26c802+_0x376c22(0x18f)));}console['log'](_0x7d34b3['OJuEk'](warn,_0x7d34b3['xgYif'],_0x376c22(0x181)+_0x376c22(0x15b)+_0x376c22(0x14e)+_0x2c0310+_0x376c22(0x167)+_0x2187b3+').'));const _0x4a3b58=await _0x7d34b3[_0x376c22(0x149)](runGlobalUpdate);if(_0x4a3b58===_0x7d34b3[_0x376c22(0x154)])console[_0x376c22(0x1a2)](_0x7d34b3[_0x376c22(0x15a)](ok,_0x7d34b3[_0x376c22(0x1a0)],_0x7d34b3[_0x376c22(0x18c)])),console['log'](_0x7d34b3[_0x376c22(0x186)](warn,_0x7d34b3[_0x376c22(0x1b3)],_0x7d34b3['PiLHd']));else _0x4a3b58?console[_0x376c22(0x1a2)](_0x7d34b3[_0x376c22(0x16f)](ok,_0x376c22(0x165),_0x376c22(0x16e)+'\x20now\x20on\x20'+_0x2187b3+'.')):console['log'](_0x7d34b3[_0x376c22(0x1b0)](bad,_0x7d34b3['BYYLw'],_0x376c22(0x185)+_0x376c22(0x18e)+_0x376c22(0x1d0)+PACKAGE_NAME+_0x376c22(0x18f)));}function shouldCheckForUpdates(_0x31fa85){const _0x143464=_0x569f71,_0x5d5095={'xEPrY':_0x143464(0x16a),'MHbOD':function(_0x5ec7bc,_0x5543cf){return _0x5ec7bc!==_0x5543cf;},'FWdpJ':_0x143464(0x193),'ybOjs':function(_0x205241,_0x5ea864){return _0x205241!==_0x5ea864;},'ReNik':'doctor'};if(_0x31fa85[_0x143464(0x17c)]<=0x2)return!![];const _0x4a347a=_0x31fa85[_0x143464(0x1b4)](0x2);if(_0x4a347a[_0x143464(0x191)]('-h')||_0x4a347a['includes'](_0x5d5095['xEPrY'])||_0x4a347a['includes']('-v')||_0x4a347a[_0x143464(0x191)](_0x143464(0x176)+'n'))return![];const _0x318b60=_0x4a347a['find'](_0x48152c=>!_0x48152c[_0x143464(0x1cb)+'th']('-'));if(!_0x318b60)return![];return _0x5d5095['MHbOD'](_0x318b60,_0x5d5095['FWdpJ'])&&_0x5d5095[_0x143464(0x142)](_0x318b60,_0x5d5095['ReNik']);}async function fetchLatestVersion(){const _0x2292c3=_0x569f71,_0x1fe189={'losNd':function(_0x58498e,_0x303d63,_0x4dbdd4){return _0x58498e(_0x303d63,_0x4dbdd4);},'zXzCL':_0x2292c3(0x169),'AOgXJ':function(_0x1c2a89,_0x35e902){return _0x1c2a89===_0x35e902;},'ZfxuV':_0x2292c3(0x17b),'BXWdN':_0x2292c3(0x192),'CRIZx':function(_0x2aa7f7,_0x21db70){return _0x2aa7f7(_0x21db70);}},_0x45aa0c=new AbortController(),_0x1df864=_0x1fe189[_0x2292c3(0x19b)](setTimeout,()=>_0x45aa0c[_0x2292c3(0x19f)](),CHECK_TIMEOUT_MS);try{const _0x302895=await _0x1fe189[_0x2292c3(0x19b)](fetch,'https://'+_0x2292c3(0x141)+_0x2292c3(0x1a5)+_0x2292c3(0x153)+PACKAGE_NAME+_0x2292c3(0x163),{'signal':_0x45aa0c[_0x2292c3(0x188)]});if(!_0x302895['ok'])return null;const _0x5308bf=await _0x302895[_0x2292c3(0x1a6)]();return typeof _0x5308bf[_0x2292c3(0x159)]===_0x1fe189[_0x2292c3(0x147)]?_0x5308bf[_0x2292c3(0x159)]:null;}catch{if(_0x1fe189['AOgXJ'](_0x1fe189[_0x2292c3(0x144)],_0x1fe189['BXWdN']))return;else return null;}finally{_0x1fe189[_0x2292c3(0x17d)](clearTimeout,_0x1df864);}}async function runGlobalUpdate(){const _0x185f49=_0x569f71,_0x1a673f={'MmtKm':function(_0x561a9f,_0xf0e9d5){return _0x561a9f(_0xf0e9d5);},'CcLZE':function(_0x310c1b,_0x1b0644){return _0x310c1b===_0x1b0644;},'cSkAl':function(_0x21b192,_0xdcbcb3){return _0x21b192(_0xdcbcb3);},'rSfJA':_0x185f49(0x16c),'cUNIF':function(_0x4d00a7,_0x14dcae,_0x2c356a,_0x39b4e2){return _0x4d00a7(_0x14dcae,_0x2c356a,_0x39b4e2);},'UGeyf':_0x185f49(0x1ab),'ExjBQ':_0x185f49(0x194),'salkZ':function(_0x1e8963,_0x66d15a,_0x6f141f){return _0x1e8963(_0x66d15a,_0x6f141f);},'HAmkE':_0x185f49(0x1bf),'CFZKJ':_0x185f49(0x14a),'hJIxm':function(_0x12f814,_0x18f288){return _0x12f814(_0x18f288);},'qypIp':_0x185f49(0x16d),'oUqYk':_0x185f49(0x1ba),'TrcCO':function(_0x2195ac,_0x5ea8df,_0x4ed6ac,_0x3c0931){return _0x2195ac(_0x5ea8df,_0x4ed6ac,_0x3c0931);},'FvAow':'ignore','RnGhs':'detached'};if(_0x1a673f[_0x185f49(0x1cc)](process['platform'],_0x1a673f['qypIp']))try{const _0x20a6ff=_0x1a673f[_0x185f49(0x15c)],_0x6b0ce1=_0x20a6ff+('\x20install'+_0x185f49(0x196))+PACKAGE_NAME+_0x185f49(0x18f),_0x38974d=_0x6b0ce1+(_0x185f49(0x199)+_0x185f49(0x1b8)+_0x185f49(0x1a8)+_0x185f49(0x1bd)+_0x185f49(0x1c3)+'e');return _0x1a673f[_0x185f49(0x179)](spawn,_0x185f49(0x1a7),['/c',_0x185f49(0x160),_0x185f49(0x1a7),'/c',_0x38974d],{'detached':!![],'stdio':_0x1a673f[_0x185f49(0x151)]})['unref'](),_0x1a673f['RnGhs'];}catch{return![];}return new Promise(_0x5740e5=>{const _0x3dfa5a=_0x185f49,_0x33246b={'jsnec':function(_0x135b57,_0x45319f){return _0x135b57!==_0x45319f;},'XsVSu':_0x3dfa5a(0x1a9),'fraTq':function(_0x3dacdf,_0x4b5b95){const _0x2b35ad=_0x3dfa5a;return _0x1a673f[_0x2b35ad(0x1c7)](_0x3dacdf,_0x4b5b95);},'HTjUG':_0x1a673f['rSfJA']};try{const _0x201a08=_0x1a673f[_0x3dfa5a(0x1d2)](spawn,_0x1a673f[_0x3dfa5a(0x1ca)],[_0x1a673f[_0x3dfa5a(0x1cd)],'-g',PACKAGE_NAME+'@latest'],{'stdio':_0x3dfa5a(0x162)}),_0x5cc027=_0x1a673f[_0x3dfa5a(0x1c8)](setTimeout,()=>{const _0x45b7e3=_0x3dfa5a;if(_0x33246b[_0x45b7e3(0x178)](_0x33246b[_0x45b7e3(0x172)],_0x45b7e3(0x1a9)))return![];else _0x201a08[_0x45b7e3(0x15f)](),_0x33246b['fraTq'](_0x5740e5,![]);},UPDATE_TIMEOUT_MS);_0x201a08['on'](_0x1a673f[_0x3dfa5a(0x1bc)],()=>{const _0x592aeb=_0x3dfa5a;if(_0x33246b[_0x592aeb(0x15d)]===_0x33246b[_0x592aeb(0x15d)])_0x33246b['fraTq'](clearTimeout,_0x5cc027),_0x5740e5(![]);else return null;}),_0x201a08['on'](_0x1a673f['CFZKJ'],_0x48c085=>{const _0x261fa1=_0x3dfa5a;_0x1a673f[_0x261fa1(0x180)](clearTimeout,_0x5cc027),_0x1a673f[_0x261fa1(0x180)](_0x5740e5,_0x1a673f['CcLZE'](_0x48c085,0x0));});}catch{_0x1a673f[_0x3dfa5a(0x14b)](_0x5740e5,![]);}});}function getCachePath(){const _0x5b6ae0=_0x569f71,_0x3c0ba4={'YMEvC':function(_0x4b4047,_0x25133a){return _0x4b4047(_0x25133a);},'uRybM':_0x5b6ae0(0x1d1)+'heck.jso'+'n'};return join(_0x3c0ba4[_0x5b6ae0(0x1c1)](dirname,getGlobalEnvPath()),_0x3c0ba4[_0x5b6ae0(0x189)]);}function readCache(){const _0x23a3d5=_0x569f71,_0x55a07f={'NLugq':function(_0xbd2bfd,_0x17d468,_0x4928c0){return _0xbd2bfd(_0x17d468,_0x4928c0);},'ywIJe':function(_0x5c0d02){return _0x5c0d02();},'vnCsW':_0x23a3d5(0x183),'WQzdd':function(_0x2b8315,_0x104424){return _0x2b8315===_0x104424;},'dmcuM':_0x23a3d5(0x1b7)};try{const _0x3b012a=_0x55a07f[_0x23a3d5(0x150)](readFileSync,_0x55a07f[_0x23a3d5(0x17e)](getCachePath),_0x55a07f[_0x23a3d5(0x1c4)]),_0x2286c5=JSON[_0x23a3d5(0x182)](_0x3b012a);return _0x2286c5&&_0x55a07f[_0x23a3d5(0x161)](typeof _0x2286c5,_0x55a07f['dmcuM'])?_0x2286c5:{};}catch{return{};}}function writeCache(_0x379800){const _0x10f253=_0x569f71,_0x4da8bf={'ktEiZ':function(_0xfd837b){return _0xfd837b();},'LAsul':function(_0x34f017,_0x3c9d3d,_0x4a095b){return _0x34f017(_0x3c9d3d,_0x4a095b);},'pAkuF':function(_0x563e7c,_0x4a69aa){return _0x563e7c(_0x4a69aa);},'iFsHB':function(_0x2110ca,_0x5315ee,_0x118f19,_0x24bd4e){return _0x2110ca(_0x5315ee,_0x118f19,_0x24bd4e);},'fJbeK':_0x10f253(0x183)};try{const _0x5ee158=_0x4da8bf[_0x10f253(0x195)](getCachePath);_0x4da8bf['LAsul'](mkdirSync,_0x4da8bf[_0x10f253(0x14f)](dirname,_0x5ee158),{'recursive':!![]}),_0x4da8bf[_0x10f253(0x18b)](writeFileSync,_0x5ee158,JSON[_0x10f253(0x155)+'y'](_0x379800),_0x4da8bf[_0x10f253(0x143)]);}catch{}}function isVersionLower(_0x263676,_0x46a735){const _0x74cf6=_0x569f71,_0x43374b={'vNniq':function(_0x34b8f4,_0x28e36c){return _0x34b8f4(_0x28e36c);},'lhdIN':function(_0x5b7c6a,_0x2ea675){return _0x5b7c6a<_0x2ea675;},'BSDeo':function(_0x3b3013,_0xdee280){return _0x3b3013>_0xdee280;}},_0x311cec=_0x43374b[_0x74cf6(0x1aa)](normalizeVersion,_0x263676),_0x3dd3a8=normalizeVersion(_0x46a735);if(!_0x311cec||!_0x3dd3a8)return![];for(let _0x35b10e=0x0;_0x35b10e<0x3;_0x35b10e+=0x1){if(_0x43374b[_0x74cf6(0x152)](_0x311cec[_0x35b10e],_0x3dd3a8[_0x35b10e]))return!![];if(_0x43374b['BSDeo'](_0x311cec[_0x35b10e],_0x3dd3a8[_0x35b10e]))return![];}return![];}function normalizeVersion(_0x8f0572){const _0x468075=_0x569f71,_0x527475={'wxVve':function(_0xb71527,_0x52c498){return _0xb71527<_0x52c498;},'PkeGH':function(_0x385632,_0x436f55){return _0x385632(_0x436f55);}},_0x5f3765=_0x8f0572[_0x468075(0x1ac)]()[_0x468075(0x13f)](/^v/i,'')[_0x468075(0x1d8)]('-')[0x0],_0x93c82c=_0x5f3765['split']('.');if(_0x527475[_0x468075(0x174)](_0x93c82c[_0x468075(0x17c)],0x3))return null;const _0x199fa0=_0x527475[_0x468075(0x145)](Number,_0x93c82c[0x0]),_0xdf57e=Number(_0x93c82c[0x1]),_0x32aa82=Number(_0x93c82c[0x2]);if(!Number[_0x468075(0x171)](_0x199fa0)||!Number['isFinite'](_0xdf57e)||!Number['isFinite'](_0x32aa82))return null;return[_0x199fa0,_0xdf57e,_0x32aa82];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemit-cli",
3
- "version": "1.9.0",
3
+ "version": "2.0.0",
4
4
  "description": "CLI para sugerir commit/branch com IA, com config global e fluxo opcional de push",
5
5
  "main": "dist-secure/index.js",
6
6
  "bin": {
@@ -12,6 +12,7 @@
12
12
  ],
13
13
  "scripts": {
14
14
  "dev": "tsx src/index.ts",
15
+ "gemit": "tsx src/index.ts",
15
16
  "build": "tsc -p tsconfig.json",
16
17
  "build:secure": "npm run build && node scripts/build-secure.mjs",
17
18
  "prepack": "npm run build:secure",