@2api-store/activate 0.9.0 → 0.9.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/README.md +7 -2
- package/dist/activate.mjs +1 -1
- package/dist/lib/api.mjs +1 -1
- package/dist/lib/backup.mjs +1 -1
- package/dist/lib/cmds.mjs +1 -1
- package/dist/lib/detect.mjs +1 -1
- package/dist/lib/device.mjs +1 -1
- package/dist/lib/diagnose.mjs +1 -1
- package/dist/lib/endpoints.mjs +1 -0
- package/dist/lib/install.mjs +1 -1
- package/dist/lib/platforms.mjs +1 -1
- package/dist/lib/pow.mjs +1 -1
- package/dist/lib/prompt.mjs +1 -1
- package/dist/lib/render.mjs +1 -1
- package/dist/lib/ui.mjs +1 -1
- package/dist/lib/write.mjs +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/lib/prompt.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x413a(){const _0x30eeb8=['tOjFq','xXpTr','SaPLU','\x20(默认)','YGfTy','yuNZV','GPAyb','join','utf8','trhJq','PruSO','isTTY','y/N','RimHS','45lKYNzm','closed','label','UcXPd','8jATTJf','rJmNP','@inquirer/prompts','vyFxg','rIRQC','checkbox','psfdl','154010Mkwnmu','yes','FtTYA','close','xSVfu','input','bWjlC','\x20\x20(输入序号,逗号/空格分隔;回车=默认;a=全选;n=全不选)','dhujM','forEach','VfLog','hVwDf','zcexK','Y/n','\x20\x20[','NStts','none','JduFd','split','trim','qlMWL','map','7988210WzxOaH','write','52rrDids','log','password','data','includes','stdin','shift','destroyed','toLowerCase','ZgKRP','JFECf','MDjGZ','fpfny','Zhsrt','选择序号','setEncoding','WgFCL','32649JCIMdO','push','2140922eVdVrM','length','1155267eqtYjZ','hTIGY','133002BweatT','15236rofzyO'];_0x413a=function(){return _0x30eeb8;};return _0x413a();}(function(_0x36ff3b,_0x4b714d){const _0x3bfe9f=_0x62b1,_0x206e73=_0x36ff3b();while(!![]){try{const _0x3cb50b=parseInt(_0x3bfe9f(0x194))/0x1+-parseInt(_0x3bfe9f(0x1c4))/0x2+-parseInt(_0x3bfe9f(0x1bd))/0x3*(parseInt(_0x3bfe9f(0x1ac))/0x4)+-parseInt(_0x3bfe9f(0x1d3))/0x5*(parseInt(_0x3bfe9f(0x1c3))/0x6)+-parseInt(_0x3bfe9f(0x1bf))/0x7+parseInt(_0x3bfe9f(0x1d7))/0x8*(-parseInt(_0x3bfe9f(0x1c1))/0x9)+parseInt(_0x3bfe9f(0x1aa))/0xa;if(_0x3cb50b===_0x4b714d)break;else _0x206e73['push'](_0x206e73['shift']());}catch(_0x4a32ba){_0x206e73['push'](_0x206e73['shift']());}}}(_0x413a,0x29826));import _0x4f86de from'node:readline';let t=null;function _0x62b1(_0x2924a7,_0x233a80){_0x2924a7=_0x2924a7-0x190;const _0x413a2f=_0x413a();let _0x62b1f4=_0x413a2f[_0x2924a7];return _0x62b1f4;}async function n(){const _0x51825a=_0x62b1;return t||(t=await import(_0x51825a(0x1d9))),t;}let a=null,s=null,o=null;function r(){const _0x4f398b=_0x62b1,_0x3bdac5={'yuNZV':function(_0x1ae481,_0x2ed507){return _0x1ae481===_0x2ed507;}};return _0x3bdac5[_0x4f398b(0x1ca)](!0x0,process[_0x4f398b(0x1b1)][_0x4f398b(0x1d0)]);}export function closePrompt(){const _0x2bc17f=_0x62b1;a&&!a[_0x2bc17f(0x1d4)]&&a[_0x2bc17f(0x197)](),a=null;}export async function ask(_0x281963,{defaultValue:_0x2fd05b}={}){const _0x415b37=_0x62b1,_0x3e2fa1={'MDjGZ':function(_0x2a27dc,_0x58bdfb){return _0x2a27dc>_0x58bdfb;},'fpfny':function(_0x465ed8){return _0x465ed8();},'dhujM':_0x415b37(0x1cd),'PruSO':_0x415b37(0x1af),'xXpTr':'end','eccQb':function(_0x3e59b8,_0x42e53b){return _0x3e59b8??_0x42e53b;},'trhJq':function(_0x1ae89b,_0x2aedbd){return _0x1ae89b??_0x2aedbd;}},_0x2c09cd=_0x2fd05b?'\x20['+_0x2fd05b+']':'';if(_0x3e2fa1['fpfny'](r)){const _0x562642=await n();return await _0x562642[_0x415b37(0x199)]({'message':''+_0x281963+_0x2c09cd,'default':_0x3e2fa1['eccQb'](_0x2fd05b,'')})||(_0x2fd05b??'');}await(s||(s=[],o=new Promise(_0x3c31c5=>{const _0x4a14fd=_0x415b37;let _0x112e64='';process[_0x4a14fd(0x1b1)][_0x4a14fd(0x1bb)](_0x3e2fa1[_0x4a14fd(0x19c)]),process[_0x4a14fd(0x1b1)]['on'](_0x3e2fa1[_0x4a14fd(0x1cf)],_0x38ac34=>{_0x112e64+=_0x38ac34;}),process[_0x4a14fd(0x1b1)]['on'](_0x3e2fa1[_0x4a14fd(0x1c6)],()=>{const _0x448a30=_0x4a14fd,_0x50cc77=_0x112e64['split'](/\r?\n/);_0x3e2fa1[_0x448a30(0x1b7)](_0x50cc77['length'],0x0)&&''===_0x50cc77[_0x50cc77[_0x448a30(0x1c0)]-0x1]&&_0x50cc77['pop'](),s[_0x448a30(0x1be)](..._0x50cc77),_0x3e2fa1[_0x448a30(0x1b8)](_0x3c31c5);}),process[_0x4a14fd(0x1b1)][_0x4a14fd(0x1b3)]&&_0x3c31c5();})),o);const _0x5b730d=s[_0x415b37(0x1b2)]()??'';return process['stdout'][_0x415b37(0x1ab)](''+_0x281963+_0x2c09cd+':\x20'+_0x5b730d+'\x0a'),_0x5b730d[_0x415b37(0x1a7)]()||_0x3e2fa1[_0x415b37(0x1ce)](_0x2fd05b,'');}export async function askSecret(_0x54392d){const _0x5bad72=_0x62b1,_0x3190cd={'JduFd':function(_0x4ecbc6){return _0x4ecbc6();},'oQAVe':function(_0x4ca4c6){return _0x4ca4c6();},'UcXPd':function(_0xf98d3f,_0x370a26){return _0xf98d3f(_0x370a26);}};if(_0x3190cd[_0x5bad72(0x1a5)](r))return(await _0x3190cd['oQAVe'](n))[_0x5bad72(0x1ae)]({'message':_0x54392d,'mask':'*'});return _0x3190cd[_0x5bad72(0x1d6)](ask,_0x54392d);}export async function multiSelect(_0x35b512,_0x5cc551,{defaultSelected:_0x58548b=[]}={}){const _0x1ba644=_0x62b1,_0xd4669a={'tOjFq':function(_0x41bb6c,_0x456dd5){return _0x41bb6c+_0x456dd5;},'YGfTy':function(_0x4a256a){return _0x4a256a();},'WEPif':_0x1ba644(0x19b),'ZgKRP':function(_0xd7c344,_0x5ec5bc,_0x497e5f){return _0xd7c344(_0x5ec5bc,_0x497e5f);},'rJmNP':function(_0x369fc1,_0x190f27){return _0x369fc1===_0x190f27;},'JFECf':function(_0x38cedf,_0x49cd66){return _0x38cedf===_0x49cd66;},'VfLog':'all','GPAyb':function(_0x1c3766,_0x4d73b9){return _0x1c3766===_0x4d73b9;},'Zhsrt':function(_0x3e6e35,_0x10c782){return _0x3e6e35===_0x10c782;}};if(0x0===_0x5cc551['length'])return[];if(_0xd4669a[_0x1ba644(0x1c9)](r)){const _0x25c4a5=await _0xd4669a['YGfTy'](n),_0x502021=_0x5cc551[_0x1ba644(0x1a9)]((_0x3c6d57,_0x212d28)=>({'name':_0x3c6d57[_0x1ba644(0x1d5)],'value':_0x212d28,'checked':_0x58548b[_0x1ba644(0x1b0)](_0x212d28)}));return await _0x25c4a5[_0x1ba644(0x192)]({'message':_0x35b512,'choices':_0x502021,'loop':!0x1,'required':!0x1});}console[_0x1ba644(0x1ad)](_0x35b512),_0x5cc551[_0x1ba644(0x19d)]((_0x2360a8,_0x4ab23d)=>{const _0x42ae6f=_0x1ba644,_0x1f2225=_0x58548b[_0x42ae6f(0x1b0)](_0x4ab23d);console[_0x42ae6f(0x1ad)](_0x42ae6f(0x1a2)+(_0x1f2225?'x':'\x20')+']\x20'+_0xd4669a[_0x42ae6f(0x1c5)](_0x4ab23d,0x1)+'.\x20'+_0x2360a8[_0x42ae6f(0x1d5)]);}),console[_0x1ba644(0x1ad)](_0xd4669a['WEPif']);const _0x374c87=_0x58548b['map'](_0x531cc7=>_0x531cc7+0x1)[_0x1ba644(0x1cc)](','),_0x26ec02=await _0xd4669a[_0x1ba644(0x1b5)](ask,'选择',{'defaultValue':_0x374c87}),_0x44c961=_0x26ec02[_0x1ba644(0x1a7)]()[_0x1ba644(0x1b4)]();if(_0xd4669a[_0x1ba644(0x1d8)]('a',_0x44c961)||_0xd4669a[_0x1ba644(0x1b6)](_0xd4669a[_0x1ba644(0x19e)],_0x44c961))return _0x5cc551['map']((_0x2e25fe,_0x56c87a)=>_0x56c87a);if(_0xd4669a[_0x1ba644(0x1cb)]('n',_0x44c961)||_0xd4669a[_0x1ba644(0x1b9)](_0x1ba644(0x1a4),_0x44c961))return[];const _0x12de3f=_0x26ec02[_0x1ba644(0x1a6)](/[,\s]+/)['map'](_0x59a25b=>parseInt(_0x59a25b,0xa))['filter'](_0x3f4846=>!isNaN(_0x3f4846)&&_0x3f4846>=0x1&&_0x3f4846<=_0x5cc551['length'])['map'](_0xc5f753=>_0xc5f753-0x1);return[...new Set(_0x12de3f)];}export async function select(_0x38f9c5,_0x579d51,{defaultIndex:_0xf6169c=0x0}={}){const _0x1a3782=_0x62b1,_0x24cb8c={'rIRQC':function(_0x10fee9,_0x5d54c9){return _0x10fee9===_0x5d54c9;},'SaPLU':_0x1a3782(0x1c8),'IPnwH':function(_0x5471c4,_0x4ec82d){return _0x5471c4+_0x4ec82d;},'dvjuK':function(_0x1eaaef,_0x5972b6){return _0x1eaaef===_0x5972b6;},'hTIGY':function(_0x5138db){return _0x5138db();},'FtTYA':function(_0x13f856){return _0x13f856();},'hVwDf':function(_0x2400e6,_0x3c5ab7,_0xcfc547){return _0x2400e6(_0x3c5ab7,_0xcfc547);},'qlMWL':_0x1a3782(0x1ba),'vyFxg':function(_0x1e8744,_0x2b54e2,_0x5d68b7){return _0x1e8744(_0x2b54e2,_0x5d68b7);},'zcexK':function(_0x493f45,_0x539ae6){return _0x493f45(_0x539ae6);},'NStts':function(_0x5a7cc0,_0x458b73){return _0x5a7cc0<_0x458b73;},'xSVfu':function(_0xe6e64a,_0xfe2739){return _0xe6e64a>_0xfe2739;}};if(_0x24cb8c['dvjuK'](0x0,_0x579d51[_0x1a3782(0x1c0)]))return-0x1;if(_0x24cb8c[_0x1a3782(0x191)](0x1,_0x579d51[_0x1a3782(0x1c0)]))return 0x0;if(_0x24cb8c[_0x1a3782(0x1c2)](r)){const _0x3cd4ea=await _0x24cb8c[_0x1a3782(0x196)](n),_0x1202bf=_0x579d51[_0x1a3782(0x1a9)]((_0xc915da,_0x306de2)=>({'name':_0xc915da[_0x1a3782(0x1d5)],'value':_0x306de2}));return _0x3cd4ea['select']({'message':_0x38f9c5,'choices':_0x1202bf,'default':_0xf6169c,'loop':!0x1});}console[_0x1a3782(0x1ad)](_0x38f9c5),_0x579d51['forEach']((_0x19561e,_0x4652bc)=>{const _0xeac209=_0x1a3782,_0x3b139d=_0x24cb8c['rIRQC'](_0x4652bc,_0xf6169c)?_0x24cb8c[_0xeac209(0x1c7)]:'';console[_0xeac209(0x1ad)]('\x20\x20'+_0x24cb8c['IPnwH'](_0x4652bc,0x1)+'.\x20'+_0x19561e['label']+_0x3b139d);});const _0x5c38fa=await _0x24cb8c[_0x1a3782(0x19f)](ask,_0x24cb8c[_0x1a3782(0x1a8)],{'defaultValue':String(_0x24cb8c['IPnwH'](_0xf6169c,0x1))}),_0x331df9=_0x24cb8c[_0x1a3782(0x190)](parseInt,_0x5c38fa,0xa);return _0x24cb8c[_0x1a3782(0x1a0)](isNaN,_0x331df9)||_0x24cb8c[_0x1a3782(0x1a3)](_0x331df9,0x1)||_0x24cb8c[_0x1a3782(0x198)](_0x331df9,_0x579d51['length'])?_0xf6169c:_0x331df9-0x1;}export async function confirm(_0x52b576,{defaultValue:_0x77b907=!0x0}={}){const _0x133824=_0x62b1,_0x138f28={'WgFCL':function(_0x2d1ae3){return _0x2d1ae3();},'RvbOI':_0x133824(0x1a1),'RimHS':_0x133824(0x1d1),'bWjlC':function(_0x481d9d,_0x4d6799,_0x58b937){return _0x481d9d(_0x4d6799,_0x58b937);},'psfdl':function(_0x143613,_0x15879d){return _0x143613===_0x15879d;}};if(_0x138f28[_0x133824(0x1bc)](r))return(await _0x138f28[_0x133824(0x1bc)](n))['confirm']({'message':_0x52b576,'default':_0x77b907});const _0x36def8=_0x77b907?_0x138f28['RvbOI']:_0x138f28[_0x133824(0x1d2)],_0x26cbd2=(await _0x138f28[_0x133824(0x19a)](ask,_0x52b576+'\x20('+_0x36def8+')',{'defaultValue':_0x77b907?'y':'n'}))[_0x133824(0x1a7)]()['toLowerCase']();return _0x26cbd2?_0x138f28[_0x133824(0x193)]('y',_0x26cbd2)||_0x138f28['psfdl'](_0x133824(0x195),_0x26cbd2):_0x77b907;}
|
package/dist/lib/render.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x25a2(_0x22be8f,_0x5a9af0){_0x22be8f=_0x22be8f-0x6a;const _0x49f588=_0x49f5();let _0x25a2f4=_0x49f588[_0x22be8f];return _0x25a2f4;}const _0x35c759=_0x25a2;(function(_0x50e17d,_0x558cae){const _0x3a0ed3=_0x25a2,_0x2a8d40=_0x50e17d();while(!![]){try{const _0x4bd3f6=-parseInt(_0x3a0ed3(0x84))/0x1*(-parseInt(_0x3a0ed3(0x6e))/0x2)+-parseInt(_0x3a0ed3(0x94))/0x3*(parseInt(_0x3a0ed3(0x92))/0x4)+-parseInt(_0x3a0ed3(0x70))/0x5+-parseInt(_0x3a0ed3(0x83))/0x6+parseInt(_0x3a0ed3(0x7a))/0x7+-parseInt(_0x3a0ed3(0x87))/0x8+parseInt(_0x3a0ed3(0x79))/0x9;if(_0x4bd3f6===_0x558cae)break;else _0x2a8d40['push'](_0x2a8d40['shift']());}catch(_0x12b291){_0x2a8d40['push'](_0x2a8d40['shift']());}}}(_0x49f5,0x814c4));function _0x49f5(){const _0x2ede21=['join','baseUrl','PVjDZ','string','match','3251356jDyqfv','replace','3HiQOym','iQAEK','antigravityApiBase','length','includes','{{autoCompactTokenLimit}}','map','toLowerCase','hDHyJ','isArray','4AMjMIa','auto_compact','4877000sWtKPe','startsWith','TdKUA','gpXsU','isInteger','object','dJlXU','env','filter','29743407HYrZhF','641431ZADSTh','split','sort','apiKey','lxImT','defaultModel','VTjAJ','NLstX','slice','6277206hsyzCn','37178QaJduk','GkgiG','BGLcA','854144uIphaU','DCLPD','NQAbk','{{modelContextWindow}}','name','context'];_0x49f5=function(){return _0x2ede21;};return _0x49f5();}export const PLACEHOLDERS=[_0x35c759(0x7d),_0x35c759(0x8e),'apiBase','apiBaseBeta',_0x35c759(0x96),'antigravityApiBaseBeta',_0x35c759(0x7f)];export function renderContent(_0xa2385e,_0x793dc6){const _0x3136f7=_0x35c759,_0x2576db={'BGLcA':function(_0x17bff4,_0x2da7ca){return _0x17bff4!=_0x2da7ca;},'lxImT':function(_0x10cd38,_0x1a42af){return _0x10cd38(_0x1a42af);}};if(!_0xa2385e)return'';let _0x5b527a=_0xa2385e;for(const _0x3fd63f of PLACEHOLDERS){const _0x484bdd=_0x793dc6[_0x3fd63f];_0x2576db[_0x3136f7(0x86)](null,_0x484bdd)&&(_0x5b527a=_0x5b527a[_0x3136f7(0x7b)]('{{'+_0x3fd63f+'}}')['join'](_0x2576db[_0x3136f7(0x7e)](String,_0x484bdd)));}return _0x5b527a;}const t=_0x35c759(0x8a),e=_0x35c759(0x99);export function applyModelContextWindow(_0xa42252,_0x46be9e,_0x3b9749){const _0x34b133=_0x35c759,_0x3dbef1={'PVjDZ':function(_0x4a4ea8,_0x447e59){return _0x4a4ea8==_0x447e59;},'NLstX':function(_0x53d271,_0x500f9c){return _0x53d271(_0x500f9c);},'qBKdj':function(_0x5e5dcf,_0x2f1503){return _0x5e5dcf(_0x2f1503);},'EShId':function(_0xda6d32,_0x59437a){return _0xda6d32>_0x59437a;},'dJlXU':function(_0x1f41f1,_0x15ec35){return _0x1f41f1>=_0x15ec35;},'hDHyJ':function(_0x2f5210,_0x29f9f6){return _0x2f5210(_0x29f9f6);}};if(!_0xa42252)return'';if(!_0xa42252['includes'](t)&&!_0xa42252[_0x34b133(0x98)](e))return _0xa42252;const _0x2619e8=_0x46be9e&&_0x3dbef1[_0x34b133(0x8f)](_0x34b133(0x75),typeof _0x46be9e)?_0x46be9e[_0x3b9749]:null,_0x40a6a4=_0x2619e8?_0x3dbef1[_0x34b133(0x81)](Number,_0x2619e8[_0x34b133(0x8c)]):NaN,_0x14dc35=_0x2619e8?_0x3dbef1['qBKdj'](Number,_0x2619e8[_0x34b133(0x6f)]):NaN;return Number[_0x34b133(0x74)](_0x40a6a4)&&_0x3dbef1['EShId'](_0x40a6a4,0x0)&&Number[_0x34b133(0x74)](_0x14dc35)&&_0x3dbef1[_0x34b133(0x76)](_0x14dc35,0x0)?_0xa42252['split'](t)[_0x34b133(0x8d)](_0x3dbef1[_0x34b133(0x6c)](String,_0x40a6a4))[_0x34b133(0x7b)](e)['join'](_0x3dbef1[_0x34b133(0x6c)](String,_0x14dc35)):_0xa42252['split']('\x0a')[_0x34b133(0x78)](_0x2ae07b=>!_0x2ae07b['includes'](t)&&!_0x2ae07b[_0x34b133(0x98)](e))[_0x34b133(0x8d)]('\x0a');}export function expandPath(_0x47f149,{isWindows:_0x53d588}={}){const _0x15ccb6=_0x35c759,_0x16c83e={'NQAbk':function(_0xd90ce6,_0xb9308a){return _0xd90ce6+_0xb9308a;}};if(!_0x47f149)return _0x47f149;if(_0x53d588){const _0x5a20ee=process[_0x15ccb6(0x77)]['USERPROFILE']||'';return _0x47f149['replace'](/^%userprofile%/i,_0x5a20ee)[_0x15ccb6(0x93)](/^~/,_0x5a20ee);}const _0x1faad8=process[_0x15ccb6(0x77)]['HOME']||'';return'~'===_0x47f149?_0x1faad8:_0x47f149[_0x15ccb6(0x71)]('~/')?_0x16c83e[_0x15ccb6(0x89)](_0x1faad8,_0x47f149[_0x15ccb6(0x82)](0x1)):_0x47f149;}function n(_0x9c233){const _0xbee5d0=_0x35c759,_0x3ec624={'TdKUA':function(_0x5248eb,_0x9e11f9){return _0x5248eb(_0x9e11f9);},'DCLPD':function(_0x17b045,_0x2ab5b4,_0x422aaf){return _0x17b045(_0x2ab5b4,_0x422aaf);}},_0x28e696=_0x3ec624[_0xbee5d0(0x72)](String,_0x9c233||'')[_0xbee5d0(0x6b)]()[_0xbee5d0(0x91)](/(\d+)\.(\d+)/);return _0x28e696?[parseInt(_0x28e696[0x1],0xa),_0x3ec624[_0xbee5d0(0x88)](parseInt,_0x28e696[0x2],0xa)]:[0x0,0x0];}export function listModels(_0xcbd508){const _0x2ab98e=_0x35c759,_0x196b24={'iQAEK':function(_0x5bd9c0,_0x3a2f31){return _0x5bd9c0==_0x3a2f31;},'TSjFO':function(_0x2a4c65,_0x4720cb){return _0x2a4c65(_0x4720cb);},'gpXsU':function(_0x24bc1c,_0x2a5212){return _0x24bc1c(_0x2a5212);},'GkgiG':function(_0x2ac093,_0x191692){return _0x2ac093-_0x191692;},'VTjAJ':function(_0xafef7,_0x22261b){return _0xafef7===_0x22261b;}};if(!Array[_0x2ab98e(0x6d)](_0xcbd508)||_0x196b24[_0x2ab98e(0x80)](0x0,_0xcbd508[_0x2ab98e(0x97)]))return[];const _0x4701a5=_0xcbd508[_0x2ab98e(0x6a)]((_0x7b09ae,_0x3b4f3f)=>{const _0x8814f2=_0x2ab98e;if(_0x196b24[_0x8814f2(0x95)](_0x8814f2(0x90),typeof _0x7b09ae))return{'index':_0x3b4f3f,'id':_0x7b09ae,'label':_0x7b09ae,'raw':_0x7b09ae};const _0x435553=_0x7b09ae['id']||_0x7b09ae['name']||_0x196b24['TSjFO'](String,_0x7b09ae);return{'index':_0x3b4f3f,'id':_0x435553,'label':_0x7b09ae[_0x8814f2(0x8b)]||_0x7b09ae['id']||_0x435553,'raw':_0x7b09ae};});return _0x4701a5[_0x2ab98e(0x7c)]((_0x33ad96,_0x1b8072)=>{const _0xa4fe9=_0x2ab98e,_0x1ccfea=_0x196b24[_0xa4fe9(0x73)](n,_0x33ad96['id']),_0x2bfa8f=n(_0x1b8072['id']);return _0x196b24[_0xa4fe9(0x85)](_0x2bfa8f[0x0],_0x1ccfea[0x0])||_0x196b24[_0xa4fe9(0x85)](_0x2bfa8f[0x1],_0x1ccfea[0x1])||String(_0x33ad96['id'])['localeCompare'](_0x196b24[_0xa4fe9(0x73)](String,_0x1b8072['id']));}),_0x4701a5;}
|
package/dist/lib/ui.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3858ed=_0x27cd;(function(_0x1b23d1,_0x26ab1e){const _0x2f8c3d=_0x27cd,_0x2e476d=_0x1b23d1();while(!![]){try{const _0x4d05d2=-parseInt(_0x2f8c3d(0x14f))/0x1*(parseInt(_0x2f8c3d(0x149))/0x2)+parseInt(_0x2f8c3d(0x15b))/0x3*(parseInt(_0x2f8c3d(0x146))/0x4)+parseInt(_0x2f8c3d(0x153))/0x5+-parseInt(_0x2f8c3d(0x14e))/0x6+-parseInt(_0x2f8c3d(0x156))/0x7+-parseInt(_0x2f8c3d(0x14b))/0x8*(parseInt(_0x2f8c3d(0x14a))/0x9)+parseInt(_0x2f8c3d(0x14d))/0xa;if(_0x4d05d2===_0x26ab1e)break;else _0x2e476d['push'](_0x2e476d['shift']());}catch(_0x172285){_0x2e476d['push'](_0x2e476d['shift']());}}}(_0x22f8,0xe0450));import _0xcbe7ad from'chalk';import{createRequire as _0x5b2a13}from'node:module';const n=_0x3858ed(0x154)+_0x5b2a13(import.meta.url)('../package.json')[_0x3858ed(0x159)];export function banner(){const _0x2ddb88=_0x3858ed;console[_0x2ddb88(0x14c)](_0xcbe7ad[_0x2ddb88(0x150)][_0x2ddb88(0x145)](n['replace'](/^\n/,'')[_0x2ddb88(0x148)]()));}function _0x27cd(_0x17a1d1,_0x5050cd){_0x17a1d1=_0x17a1d1-0x140;const _0x22f88f=_0x22f8();let _0x27cd58=_0x22f88f[_0x17a1d1];return _0x27cd58;}export function ok(_0x36d6cf){const _0x35f2f5=_0x3858ed;console['log'](_0xcbe7ad[_0x35f2f5(0x141)]('✓\x20'+_0x36d6cf));}export function fail(_0x1385bf){const _0xd80c89=_0x3858ed;console[_0xd80c89(0x157)](_0xcbe7ad[_0xd80c89(0x142)]('✗\x20'+_0x1385bf));}export function warn(_0x319aad){const _0x4c5d01=_0x3858ed;console[_0x4c5d01(0x147)](_0xcbe7ad[_0x4c5d01(0x15c)]('⚠\x20'+_0x319aad));}export function info(_0x11ad7a){const _0x847046=_0x3858ed;console[_0x847046(0x14c)](_0xcbe7ad[_0x847046(0x15a)]('ℹ\x20'+_0x11ad7a));}export function step(_0x583158){const _0x324d52=_0x3858ed;console['log'](),console[_0x324d52(0x14c)](_0xcbe7ad[_0x324d52(0x150)][_0x324d52(0x145)]('■\x20'+_0x583158));}export function guide(_0x45e7ef){const _0x30f35f=_0x3858ed,_0x28324c={'szZmE':function(_0x55a89a,_0x1cb820){return _0x55a89a!==_0x1cb820;},'OXimn':function(_0x37a805,_0x44a35b){return _0x37a805(_0x44a35b);},'uesCn':_0x30f35f(0x155)};if(_0x45e7ef&&_0x28324c['szZmE'](0x0,_0x45e7ef[_0x30f35f(0x143)])){_0x28324c[_0x30f35f(0x158)](step,_0x28324c['uesCn']);for(const _0x2b6f95 of _0x45e7ef){const _0x5230dd=_0xcbe7ad[_0x30f35f(0x150)]['green']('\x20\x20▶\x20'+_0x2b6f95[_0x30f35f(0x152)]),_0x2d9f56=_0xcbe7ad[_0x30f35f(0x141)](_0x30f35f(0x140)+_0x2b6f95[_0x30f35f(0x151)]),_0x2be115=_0xcbe7ad['dim'](_0x2b6f95[_0x30f35f(0x144)]||'');console[_0x30f35f(0x14c)](_0x5230dd),console[_0x30f35f(0x14c)](_0x2d9f56),_0x2be115&&console[_0x30f35f(0x14c)](_0x2be115),console[_0x30f35f(0x14c)]();}}}export function plain(_0x216a02){const _0x5634e4=_0x3858ed;console[_0x5634e4(0x14c)](_0x216a02);}function _0x22f8(){const _0x52d29b=['startCmd','name','9182700dzETsZ','\x20\x20____\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_\x20\x20\x20\x20\x20\x20\x20_\x0a\x20|___\x20\x5c\x20__\x20_\x20_\x20__\x20(_)\x20\x20___|\x20|_\x20___\x20\x20_\x20__\x20___\x0a\x20\x20\x20__)\x20/\x20_`\x20|\x20\x27_\x20\x5c|\x20|\x20/\x20__|\x20__/\x20_\x20\x5c|\x20\x27__/\x20_\x20\x5c\x0a\x20\x20/\x20__/\x20(_|\x20|\x20|_)\x20|\x20|_\x5c__\x20\x5c\x20||\x20(_)\x20|\x20|\x20|\x20\x20__/\x0a\x20|_____\x5c__,_|\x20.__/|_(_)___/\x5c__\x5c___/|_|\x20\x20\x5c___|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|_|\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20v','启动\x20/\x20使用指南','7836220iGUXau','error','OXimn','version','blue','1866uIaAdt','yellow','\x20\x20\x20\x20启动:','green','red','length','usage','cyan','7564DFrJUA','warn','trimEnd','682222GVRcrL','13308471IXeupr','8yadINc','log','36919100RfMchB','10940526SWoIJS','4YxSiXO','bold'];_0x22f8=function(){return _0x52d29b;};return _0x22f8();}export{_0xcbe7ad as chalk};
|
package/dist/lib/write.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x8538b2=_0xa5f7;(function(_0x327807,_0x3982a0){const _0x5d533d=_0xa5f7,_0x4708c2=_0x327807();while(!![]){try{const _0x4d273a=-parseInt(_0x5d533d(0x129))/0x1+parseInt(_0x5d533d(0x127))/0x2+parseInt(_0x5d533d(0x12d))/0x3*(-parseInt(_0x5d533d(0x123))/0x4)+-parseInt(_0x5d533d(0x121))/0x5*(-parseInt(_0x5d533d(0x12c))/0x6)+parseInt(_0x5d533d(0x125))/0x7*(parseInt(_0x5d533d(0x126))/0x8)+parseInt(_0x5d533d(0x12f))/0x9+-parseInt(_0x5d533d(0x11f))/0xa;if(_0x4d273a===_0x3982a0)break;else _0x4708c2['push'](_0x4708c2['shift']());}catch(_0x3bedde){_0x4708c2['push'](_0x4708c2['shift']());}}}(_0x59b8,0x7a9ba));import _0x3706b1 from'node:fs';import _0xb09cf3 from'node:path';function _0xa5f7(_0x400637,_0x5cecf3){_0x400637=_0x400637-0x11a;const _0x59b8d2=_0x59b8();let _0xa5f790=_0x59b8d2[_0x400637];return _0xa5f790;}const o=new Set([_0x8538b2(0x11c),'EPERM',_0x8538b2(0x128)]);function _0x59b8(){const _0x577004=['name','6rjbBYr','1227522SXrtcC',')\x0a\x20\x20','7509141qeFXkd','has','code','EACCES','writeFileSync','mkdirSync','6159900DMabPM','message','2952825BvMQzb','请用\x20sudo\x20重跑:\x0a\x20\x20\x20\x20sudo\x20npx\x20-y\x20@2api-store/activate','8FgIeUG','utf8','7MKgozc','4503592AfLwfV','1505050IubgoD','EROFS','803848TlXhAU','cause'];_0x59b8=function(){return _0x577004;};return _0x59b8();}export class PermissionDeniedError extends Error{constructor(_0x55424f,_0x105479,_0x55d8c0){const _0x55f9cc=_0x8538b2,_0x5c3976={'RrTyV':'PermissionDeniedError'},_0x74e445=_0x55d8c0?'请用「管理员\x20PowerShell」重跑:\x0a\x20\x20\x20\x20Start-Process\x20powershell\x20-Verb\x20RunAs\x20-ArgumentList\x20\x22npx,-y,@2api-store/activate\x22':_0x55f9cc(0x122);super('写入失败:'+_0x55424f+'('+(_0x105479[_0x55f9cc(0x11b)]||_0x105479[_0x55f9cc(0x120)])+_0x55f9cc(0x12e)+_0x74e445),this[_0x55f9cc(0x12b)]=_0x5c3976['RrTyV'],this[_0x55f9cc(0x11b)]=_0x105479[_0x55f9cc(0x11b)],this['path']=_0x55424f,this[_0x55f9cc(0x12a)]=_0x105479;}}export function writeFileWithPermission(_0x36eec5,_0x12f1c6,{isWindows:_0x28c004=!0x1}={}){const _0x39556a=_0x8538b2,_0x184012=_0xb09cf3['dirname'](_0x36eec5);try{_0x3706b1[_0x39556a(0x11e)](_0x184012,{'recursive':!0x0});}catch(_0x24d3b3){if(o[_0x39556a(0x11a)](_0x24d3b3[_0x39556a(0x11b)]))throw new PermissionDeniedError(_0x36eec5,_0x24d3b3,_0x28c004);throw _0x24d3b3;}try{_0x3706b1[_0x39556a(0x11d)](_0x36eec5,_0x12f1c6,{'encoding':_0x39556a(0x124),'mode':0x180});}catch(_0x22b52a){if(o['has'](_0x22b52a[_0x39556a(0x11b)]))throw new PermissionDeniedError(_0x36eec5,_0x22b52a,_0x28c004);throw _0x22b52a;}return _0x36eec5;}
|
package/dist/package.json
CHANGED