@2api-store/activate 0.8.0 → 0.9.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
- const _0x5ebf8d=_0x211a;(function(_0x2e779d,_0x3177a2){const _0x3274c0=_0x211a,_0x1a9aea=_0x2e779d();while(!![]){try{const _0x524e8f=parseInt(_0x3274c0(0x11c))/0x1+parseInt(_0x3274c0(0x110))/0x2*(parseInt(_0x3274c0(0x109))/0x3)+parseInt(_0x3274c0(0x129))/0x4*(parseInt(_0x3274c0(0x119))/0x5)+-parseInt(_0x3274c0(0x11a))/0x6*(parseInt(_0x3274c0(0x125))/0x7)+parseInt(_0x3274c0(0x12a))/0x8*(parseInt(_0x3274c0(0x106))/0x9)+parseInt(_0x3274c0(0x113))/0xa+-parseInt(_0x3274c0(0x121))/0xb;if(_0x524e8f===_0x3177a2)break;else _0x1a9aea['push'](_0x1a9aea['shift']());}catch(_0xb73b30){_0x1a9aea['push'](_0x1a9aea['shift']());}}}(_0x533f,0x67db8));import _0x445179 from'node:crypto';import _0x32c891 from'node:fs';function _0x533f(){const _0x1fbe8b=['linux','2194083noLkqu','join','utf8','867UgMTfC','sha256','mkdirSync','win32','darwin','trim','MbicJ','4438axwTMY','randomBytes','2api-store-activate','3789070ZHjotJ','toLowerCase','exec','zryWm','device-id','readFileSync','230gqfRNJ','150mbYpwk','yPMYo','326930ASefUj','ioreg\x20-rd1\x20-c\x20IOPlatformExpertDevice','hex','homedir','hqXAh','15976587eBORXN','WHuij','MWDuM','KgNgJ','136850idVQgi','JQUTQ','digest','wDSVK','67448lTPhui','8EsoZTq','test','/var/lib/dbus/machine-id','DvVlr','createHmac','toString'];_0x533f=function(){return _0x1fbe8b;};return _0x533f();}import _0x2b019c from'node:path';import _0x2af9ea from'node:os';import{execSync as _0x3a0b3}from'node:child_process';const c=_0x2b019c[_0x5ebf8d(0x107)](_0x2af9ea[_0x5ebf8d(0x11f)](),'.2api'),n=_0x2b019c[_0x5ebf8d(0x107)](c,_0x5ebf8d(0x117)),a=/^[0-9a-f]{64}$/;function s(){const _0x33f72e=_0x5ebf8d,_0x143f73={'DvVlr':_0x33f72e(0x10d),'yPMYo':_0x33f72e(0x11d),'hqXAh':_0x33f72e(0x108),'sDrkF':_0x33f72e(0x105),'JQUTQ':_0x33f72e(0x12c),'vfrYm':_0x33f72e(0x10c),'MbicJ':function(_0x16e9bf,_0x57d531,_0x27e271){return _0x16e9bf(_0x57d531,_0x27e271);},'KgNgJ':'reg\x20query\x20HKLM\x5cSOFTWARE\x5cMicrosoft\x5cCryptography\x20/v\x20MachineGuid','zryWm':_0x33f72e(0x11e),'MWDuM':_0x33f72e(0x112)},_0x374844=(function(){const _0x403cfe=_0x33f72e;try{switch(process['platform']){case _0x143f73[_0x403cfe(0x12d)]:{const _0xb394ca=_0x3a0b3(_0x143f73[_0x403cfe(0x11b)],{'encoding':_0x143f73['hqXAh']}),_0x5858d1=/IOPlatformUUID"\s*=\s*"([^"]+)"/[_0x403cfe(0x115)](_0xb394ca);if(_0x5858d1&&_0x5858d1[0x1])return _0x5858d1[0x1][_0x403cfe(0x10e)]();break;}case _0x143f73['sDrkF']:for(const _0x1f3c03 of['/etc/machine-id',_0x143f73[_0x403cfe(0x126)]])try{const _0x1d5e93=_0x32c891[_0x403cfe(0x118)](_0x1f3c03,_0x143f73[_0x403cfe(0x120)])[_0x403cfe(0x10e)]();if(_0x1d5e93)return _0x1d5e93;}catch{}break;case _0x143f73['vfrYm']:{const _0x5d3485=_0x143f73[_0x403cfe(0x10f)](_0x3a0b3,_0x143f73[_0x403cfe(0x124)],{'encoding':_0x143f73[_0x403cfe(0x120)]}),_0x138a95=/MachineGuid\s+REG_SZ\s+([0-9a-fA-F-]+)/[_0x403cfe(0x115)](_0x5d3485);if(_0x138a95&&_0x138a95[0x1])return _0x138a95[0x1]['trim']()[_0x403cfe(0x114)]();break;}}}catch{}return _0x445179[_0x403cfe(0x111)](0x20)[_0x403cfe(0x12f)](_0x143f73[_0x403cfe(0x116)]);}());return _0x445179[_0x33f72e(0x12e)](_0x33f72e(0x10a),_0x143f73[_0x33f72e(0x123)])['update'](_0x374844)[_0x33f72e(0x127)](_0x143f73[_0x33f72e(0x116)]);}function _0x211a(_0x242f3c,_0x3320b3){_0x242f3c=_0x242f3c-0x105;const _0x533f2a=_0x533f();let _0x211a8f=_0x533f2a[_0x242f3c];return _0x211a8f;}export function getDeviceId(){const _0x3ea787=_0x5ebf8d,_0x3b078d={'wDSVK':function(_0x3d79ff){return _0x3d79ff();},'WHuij':_0x3ea787(0x108)};try{const _0x114df1=_0x32c891['readFileSync'](n,_0x3ea787(0x108))[_0x3ea787(0x10e)]();if(a[_0x3ea787(0x12b)](_0x114df1))return _0x114df1;}catch{}const _0x178c00=_0x3b078d[_0x3ea787(0x128)](s);try{_0x32c891[_0x3ea787(0x10b)](c,{'recursive':!0x0,'mode':0x1c0}),_0x32c891['writeFileSync'](n,_0x178c00,{'encoding':_0x3b078d[_0x3ea787(0x122)],'mode':0x180});}catch{}return _0x178c00;}
1
+ const _0x51b91b=_0x2e76;function _0x2e76(_0x413df1,_0x45bb8f){_0x413df1=_0x413df1-0x191;const _0x483cbf=_0x483c();let _0x2e76c8=_0x483cbf[_0x413df1];return _0x2e76c8;}(function(_0x41ece0,_0x233d43){const _0x49fc38=_0x2e76,_0x4564ab=_0x41ece0();while(!![]){try{const _0x558a31=-parseInt(_0x49fc38(0x1a1))/0x1*(parseInt(_0x49fc38(0x1ba))/0x2)+-parseInt(_0x49fc38(0x195))/0x3*(-parseInt(_0x49fc38(0x1ab))/0x4)+-parseInt(_0x49fc38(0x1b8))/0x5*(parseInt(_0x49fc38(0x1b1))/0x6)+parseInt(_0x49fc38(0x1bb))/0x7*(parseInt(_0x49fc38(0x1ac))/0x8)+-parseInt(_0x49fc38(0x1a2))/0x9*(parseInt(_0x49fc38(0x1bc))/0xa)+-parseInt(_0x49fc38(0x1af))/0xb+parseInt(_0x49fc38(0x19b))/0xc;if(_0x558a31===_0x233d43)break;else _0x4564ab['push'](_0x4564ab['shift']());}catch(_0x25119a){_0x4564ab['push'](_0x4564ab['shift']());}}}(_0x483c,0x26ddc));import _0x6cb115 from'node:crypto';import _0x4c3428 from'node:fs';import _0x2e3952 from'node:path';import _0x5d77a4 from'node:os';import{execSync as _0x12a63d}from'node:child_process';const c=_0x2e3952[_0x51b91b(0x1a5)](_0x5d77a4[_0x51b91b(0x19d)](),_0x51b91b(0x19c)),n=_0x2e3952['join'](c,_0x51b91b(0x1aa)),a=/^[0-9a-f]{64}$/;function s(){const _0x2961fc=_0x51b91b,_0x417d28={'QlwAG':_0x2961fc(0x199),'kubOU':function(_0x341423,_0x26aab6,_0x61771b){return _0x341423(_0x26aab6,_0x61771b);},'HHyny':_0x2961fc(0x1ae),'YkNXP':_0x2961fc(0x1a3),'HZAAu':_0x2961fc(0x1b9),'IgTsW':'utf8','gtknm':'hex','HzcyX':_0x2961fc(0x193)},_0x5e1455=(function(){const _0x36b3d5=_0x2961fc;try{switch(process[_0x36b3d5(0x1b4)]){case _0x417d28['QlwAG']:{const _0xf730f0=_0x417d28[_0x36b3d5(0x1a0)](_0x12a63d,_0x417d28[_0x36b3d5(0x1ad)],{'encoding':_0x36b3d5(0x191)}),_0x49c8e1=/IOPlatformUUID"\s*=\s*"([^"]+)"/['exec'](_0xf730f0);if(_0x49c8e1&&_0x49c8e1[0x1])return _0x49c8e1[0x1][_0x36b3d5(0x1b7)]();break;}case'linux':for(const _0x24074 of[_0x36b3d5(0x1a9),'/var/lib/dbus/machine-id'])try{const _0x55e528=_0x4c3428[_0x36b3d5(0x1a6)](_0x24074,_0x36b3d5(0x191))[_0x36b3d5(0x1b7)]();if(_0x55e528)return _0x55e528;}catch{}break;case _0x417d28[_0x36b3d5(0x1a7)]:{const _0x4bcaa5=_0x417d28[_0x36b3d5(0x1a0)](_0x12a63d,_0x417d28['HZAAu'],{'encoding':_0x417d28[_0x36b3d5(0x19f)]}),_0x5bae6d=/MachineGuid\s+REG_SZ\s+([0-9a-fA-F-]+)/['exec'](_0x4bcaa5);if(_0x5bae6d&&_0x5bae6d[0x1])return _0x5bae6d[0x1][_0x36b3d5(0x1b7)]()[_0x36b3d5(0x19e)]();break;}}}catch{}return _0x6cb115[_0x36b3d5(0x1b3)](0x20)[_0x36b3d5(0x192)](_0x417d28[_0x36b3d5(0x1b6)]);}());return _0x6cb115[_0x2961fc(0x1a8)](_0x417d28[_0x2961fc(0x1b0)],_0x2961fc(0x194))[_0x2961fc(0x1b5)](_0x5e1455)[_0x2961fc(0x198)](_0x2961fc(0x1b2));}function _0x483c(){const _0x59f74e=['homedir','toLowerCase','IgTsW','kubOU','3009inGESc','9CWqULM','win32','mkdirSync','join','readFileSync','YkNXP','createHmac','/etc/machine-id','device-id','73844elOwUu','8aobpZT','HHyny','ioreg\x20-rd1\x20-c\x20IOPlatformExpertDevice','2711390jirWRS','HzcyX','900066xMBjTh','hex','randomBytes','platform','update','gtknm','trim','5RNCeXo','reg\x20query\x20HKLM\x5cSOFTWARE\x5cMicrosoft\x5cCryptography\x20/v\x20MachineGuid','148hYDGfY','989499anGJGm','2846590WSGnru','utf8','toString','sha256','2api-store-activate','45SQfCDN','XNStu','writeFileSync','digest','darwin','dygfF','7737000RnpukO','.2api'];_0x483c=function(){return _0x59f74e;};return _0x483c();}export function getDeviceId(){const _0x22bd80=_0x51b91b,_0x963a9d={'dygfF':_0x22bd80(0x191),'XNStu':function(_0x2a8809){return _0x2a8809();}};try{const _0x145698=_0x4c3428[_0x22bd80(0x1a6)](n,_0x963a9d[_0x22bd80(0x19a)])[_0x22bd80(0x1b7)]();if(a['test'](_0x145698))return _0x145698;}catch{}const _0xe421be=_0x963a9d[_0x22bd80(0x196)](s);try{_0x4c3428[_0x22bd80(0x1a4)](c,{'recursive':!0x0,'mode':0x1c0}),_0x4c3428[_0x22bd80(0x197)](n,_0xe421be,{'encoding':_0x963a9d['dygfF'],'mode':0x180});}catch{}return _0xe421be;}
@@ -1 +1 @@
1
- const _0x47433b=_0x1c64;(function(_0x2e91bb,_0x1cdaf1){const _0x1ddcb0=_0x1c64,_0x45fd66=_0x2e91bb();while(!![]){try{const _0x4b904e=-parseInt(_0x1ddcb0(0xe2))/0x1*(-parseInt(_0x1ddcb0(0x163))/0x2)+parseInt(_0x1ddcb0(0x17c))/0x3+-parseInt(_0x1ddcb0(0x1bc))/0x4*(parseInt(_0x1ddcb0(0x10f))/0x5)+parseInt(_0x1ddcb0(0x119))/0x6+-parseInt(_0x1ddcb0(0x1ac))/0x7*(parseInt(_0x1ddcb0(0x1aa))/0x8)+-parseInt(_0x1ddcb0(0xf9))/0x9*(parseInt(_0x1ddcb0(0x169))/0xa)+-parseInt(_0x1ddcb0(0x14f))/0xb*(-parseInt(_0x1ddcb0(0x143))/0xc);if(_0x4b904e===_0x1cdaf1)break;else _0x45fd66['push'](_0x45fd66['shift']());}catch(_0x45de38){_0x45fd66['push'](_0x45fd66['shift']());}}}(_0x2770,0xa2e71));import _0x218346 from'node:fs';import _0x705772 from'node:path';function _0x2770(){const _0x222b5f=['ZdsGg','server','gpfUG','22941poiLKG','pjkro','gdaKz','\x0a工具版本:','CskIq','TRQNj','https:','lfaAI','OcNlK','utf8','end','KzKJG','claude-sonnet-4-5','fallback','fecqj','PnVNy','s)—\x20','凭据发现','YDFIu','cWvcG','rvnlv','wnZvC','519900IkFPqa','/v1/chat/completions','gemini','destroy','gTlyO','SIGKILL','vietp','OCcNO','split','\x20/\x20失败\x20','4927848osHdga','无效的\x20baseUrl:','join','readFileSync','win32','~/.codex/auth.json','yAgcg','message','headers','发现凭据:','后端下发矩阵:','ttfb_ms','环境快照','timed_out','xOTpg','mtime','lLLGv','YnnET','诊断包已生成:','rUVBg','label','请输入\x20API\x20Key(仅用于本次诊断,包内不落明文)','kmakj','stderr','\x20/\x20ttfb\x20','BWKCD','zip_path','skipCliTests','失败(非\x202xx\x20或请求出错)','OMbpd','EHaBF','../package.json','slow','HTTP_PROXY','(key\x20已脱敏:','RigDd','DQkxE','gxfxi','.redacted','size','toLowerCase','GMlmb','47748vbzaeF','JdwGb','isFinite','indexOf','object','打包诊断\x20zip','\x0a凭据来源:','gemini-2.5-pro','XVoUJ','TUdke','getSeconds','Shndt','1738qziYea','\x20项。请把\x20zip\x20发给客服排障。','\x20→\x20','lTGHT','spawn\x20失败:','tqdwL','timeout_ms','\x0a\x0a一、包内文件\x0a-\x20summary.json\x20\x20\x20\x20\x20环境\x20+\x20测试结果汇总(请先看这个)\x0a-\x20env.json\x20\x20\x20\x20\x20\x20\x20\x20\x20操作系统\x20/\x20Node\x20版本\x20/\x20已装\x20CLI\x20/\x20配置文件元信息\x20/\x20代理环境变量\x0a-\x20http-tests.jsonl\x20每个模型一行:模型\x20/\x20request_id\x20/\x20状态码\x20/\x20首字节延迟(ttfb_ms)\x20/\x20总延迟(total_ms)\x20/\x20错误\x20/\x20响应片段\x0a-\x20cli-tests.jsonl\x20\x20每个已装\x20CLI\x20一行:命令\x20/\x20退出码\x20/\x20耗时\x20/\x20是否超时\x20/\x20stdout+stderr(截断\x2010KB)\x0a-\x20configs/\x20\x20\x20\x20\x20\x20\x20\x20\x20本地配置文件脱敏副本(key\x20已掩码,不存在的文件跳过)\x0a\x0a二、request_id\x20的用法\x0ahttp-tests.jsonl\x20每条记录的\x20request_id\x20对应服务端网关该次请求的标识(响应头\x20X-Request-Id)。\x0a客服凭\x20request_id\x20可在生产后台\x20usage_logs\x20/\x20网关日志中精确对账:该请求走了哪个账号、\x0a哪个模型、计费多少、错误详情。本次共测\x20','QfQUt','xANjR','MOOIn','duration_ms','slice','manual-input','tool_version','push','SFJgY','request_id','内置兜底(后端诊断配置不可用)','generated_at','22zMkqYY','未发现已安装的可测\x20CLI,跳过\x20CLI\x20实测','ms\x20/\x20','JFYzp','HTTP\x20直测\x20','rKafi','3730eMcLoo','stringify','/configs/','XnKxe','installed_clis','OS\x20','***','YpyII','platform','/summary.json','seUfP','HBJSu','HlxDE','application/json','statusCode','wTASr','trim','\x20/\x20node\x20','byteLength','1952976KHFRMW','uSMUu','\x20模型\x20/\x20超时\x20','kill','model',',正常计费)','wViGo','FUrWm','imXog','lbOPt','vlFsj','hints','SBius',',并运行已装\x20CLI\x20实测','data','win','***…','://***@','%userprofile%\x5c.codex\x5cauth.json','ERR','@2api-store/activate/','缓慢(2xx\x20但首字节延迟超过\x2010s)','error','key','vRnNM','\x20退出码\x20','info','models','CLI\x20实测(','cQgDG','max_tokens','wWAZj','\x20—\x20HTTP\x20','status','s\x20/\x20并发\x20','qxmMq','request','xboEI','padStart','已按参数跳过\x20CLI\x20实测','dehMf','\x20退出码\x200\x20/\x20','from','XYovh','href','source','16AElvWI','exit_code','857661DwWIpc','SgOOX','WxXIE','UfVIK','floor','code','test','qJYtT','BHcfI','all','zishI','HvTSz','拉取诊断配置','cmd.exe','%userprofile%\x5c.claude\x5csettings.json','LEsXA','12NYTJUD','mode','fvMpI','WGZiy','map','sLmKp','node','cli','sk-…','writeFileSync','未在\x20~/.codex/auth.json\x20/\x20~/.claude/settings.json\x20/\x20~/.gemini/settings.json\x20中发现\x20API\x20Key','tkBIc','env','未提供\x20API\x20Key,诊断中止','/http-tests.jsonl','ignore','credential','close','jmovC','\x0aspawn\x20error:\x20','http_tests','timeout','lJsps','api_base','WxxVh','XHoMV','yes','getHours','qOTUy','concurrency','\x20个模型,并发\x20','mkWSY','\x20个模型各发起\x201\x20个真实小请求(max_tokens=','~/.gemini/settings.json','PAqeE','COMSPEC','woMoV','FYZyv','opencode','cwd','QCsDR','warn','UlhAX','rkULO','wboCS','pid','mkdirSync',');CLI\x20实测\x20','KsoQw','filter','.zip','isArray','tMauL','使用手动输入的凭据(','MZGqd','hKGpi','response_preview','QHlOK','DxbTq','brvEO','content','BAaRJ','~/.claude/settings.json','gcofe','\x20超时(30s)已终止','ZKjXt','replace','Bearer\x20***','vwhHG','\x20个模型(max_tokens\x20极小,计费可忽略)。\x0a\x0a三、隐私说明\x0a包内所有密钥(sk-…)、Bearer\x20凭证、邮箱、代理内嵌账号均已自动脱敏;\x0aconfigs/\x20为脱敏副本,本地原始配置文件未被修改。\x0a\x0a四、联系方式\x0a客服/QQ/邮箱:__________(由客服填写)\x0a','tWMSP','RmapU','stdout','/cli-tests.jsonl','/api/v1/cli/diagnose-config','\x20项(通过\x20','step','aIMzs','\x0aAPI\x20地址:','length','key_redacted','exists','string','baseUrl','pipe','xPFPW','version','6730iifypb','ZlJEF','\x20/\x20已装\x20CLI\x20','\x20的\x20','now','keys','toString','fail','EGkmV','installed','TokenShop\x20诊断包说明\x0a====================\x0a\x0a生成时间:','gNUoZ','sk-','total_ms','match','exec','oYofx','outDir','LwOaF','ePIry'];_0x2770=function(){return _0x222b5f;};return _0x2770();}import _0x11d069 from'node:https';import _0x411298 from'node:http';function _0x1c64(_0x4cf086,_0x3d7ed2){_0x4cf086=_0x4cf086-0xc2;const _0x27701a=_0x2770();let _0x1c6454=_0x27701a[_0x4cf086];return _0x1c6454;}import{spawn as _0x341d9f,spawnSync as _0x35ecae}from'node:child_process';import{createRequire as _0x39797b}from'node:module';import{zipSync as _0x254954,strToU8 as _0x49ae04}from'fflate';import{detectAll as _0x1190f2}from'./detect.mjs';import{getDeviceId as _0x348855}from'./device.mjs';import{expandPath as _0x4ca98b}from'./render.mjs';import{askSecret as _0x1e410f,confirm as _0x18edf9}from'./prompt.mjs';import*as _0x29b0ad from'./ui.mjs';const f=_0x39797b(import.meta.url)(_0x47433b(0x138))[_0x47433b(0xe1)],g=_0x47433b(0x190)+f,h=[{'label':_0x47433b(0x11e),'win':_0x47433b(0x18e)},{'label':_0x47433b(0xc9),'win':_0x47433b(0x1ba)},{'label':_0x47433b(0x1dd),'win':'%userprofile%\x5c.gemini\x5csettings.json'}],$=['claude','codex',_0x47433b(0x111),'grok',_0x47433b(0x1e2)],y={'claude':['-p','hi'],'codex':[_0x47433b(0xf1),'hi'],'gemini':['-p','hi'],'grok':['-p','hi'],'opencode':['run','hi']},A=0x2800,w={'ok':'正常(HTTP\x202xx)','slow':_0x47433b(0x191),'fail':_0x47433b(0x135)},k=/sk-([a-zA-Z0-9]{10,})/,T=/(?:API_KEY|AUTH_TOKEN|OPENAI_API_KEY|ANTHROPIC_API_KEY|ANTHROPIC_AUTH_TOKEN)["':\s]+["']([a-zA-Z0-9._-]{10,})["']/,I=/export\s+(?:API_KEY|AUTH_TOKEN|OPENAI_API_KEY|ANTHROPIC_API_KEY|ANTHROPIC_AUTH_TOKEN)=(["']?)([a-zA-Z0-9._-]{10,})/,v=/(?:base_url|api_base_url|api_base|apiBase|ANTHROPIC_BASE_URL|BASE_URL)["':\s=]+["']?(https?:\/\/[^\s"'`]+)/i,P=/https?:\/\/[^\s"'`}]+/;function b(){const _0x29aef8=_0x47433b,_0x2075ed={'ZKjXt':_0x29aef8(0x11d)};return _0x2075ed[_0x29aef8(0xcc)]===process[_0x29aef8(0x171)];}function x(_0xa0b3c7){const _0x16eaa1=_0x47433b,_0x45de93={'xboEI':function(_0x4a2e45){return _0x4a2e45();}};return _0x4ca98b(_0x45de93[_0x16eaa1(0x1a1)](b)?_0xa0b3c7[_0x16eaa1(0x18b)]:_0xa0b3c7[_0x16eaa1(0x12d)],{'isWindows':b()});}function O(_0x2a4bd8){const _0x8771a7=_0x47433b,_0xcaed92={'pjkro':_0x8771a7(0x16f)};return _0x2a4bd8?/^sk-[A-Za-z0-9_-]{20,}$/[_0x8771a7(0x1b2)](_0x2a4bd8)?_0x8771a7(0x1c4)+_0x2a4bd8[_0x8771a7(0x15b)](-0x6):_0x2a4bd8[_0x8771a7(0xda)]<=0x8?_0xcaed92[_0x8771a7(0xfa)]:_0x8771a7(0x18c)+_0x2a4bd8[_0x8771a7(0x15b)](-0x6):null;}function E(_0x29aa5e){const _0x198341=_0x47433b,_0x472dbe={'wboCS':function(_0x4b05b7,_0x2b542b){return _0x4b05b7==_0x2b542b;},'HvTSz':_0x198341(0xdd),'SBius':_0x198341(0x18d)};return _0x472dbe[_0x198341(0x1e8)](_0x472dbe[_0x198341(0x1b7)],typeof _0x29aa5e)?_0x29aa5e[_0x198341(0xcd)](/:\/\/[^@/\s]+@/,_0x472dbe[_0x198341(0x188)]):_0x29aa5e;}export function redact(_0x4a00a1){const _0x2b6d45=_0x47433b,_0x492eb2={'qPFwX':function(_0x3e3e50,_0x176256){return _0x3e3e50!=_0x176256;},'LkQQl':'string','jmovC':function(_0x362410,_0x44664c){return _0x362410===_0x44664c;}};if(_0x492eb2['qPFwX'](_0x492eb2['LkQQl'],typeof _0x4a00a1)||_0x492eb2[_0x2b6d45(0x1ce)]('',_0x4a00a1))return _0x4a00a1;let _0x24edf0=_0x4a00a1;return _0x24edf0=_0x24edf0[_0x2b6d45(0xcd)](/sk-[A-Za-z0-9_-]{20,}/g,_0x4b34ce=>_0x2b6d45(0x1c4)+_0x4b34ce[_0x2b6d45(0x15b)](-0x6)),_0x24edf0=_0x24edf0['replace'](/[Bb]earer\s+\S+/g,_0x2b6d45(0xce)),_0x24edf0=_0x24edf0[_0x2b6d45(0xcd)](/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,_0x30718d=>{const _0x3b6e71=_0x2b6d45,_0x115262=_0x30718d[_0x3b6e71(0x146)]('@');return _0x30718d[0x0]+_0x3b6e71(0x16f)+_0x30718d[_0x3b6e71(0x15b)](_0x115262);}),_0x24edf0;}function S(_0xf6297f){const _0x80cce0=_0x47433b,_0x1d7adf={'LwOaF':function(_0x4bde93,_0xfcc4eb){return _0x4bde93(_0xfcc4eb);}};let _0x98c3ac=_0x1d7adf[_0x80cce0(0xf4)](redact,_0xf6297f);return _0x98c3ac=_0x98c3ac[_0x80cce0(0xcd)](/((?:API_KEY|AUTH_TOKEN|OPENAI_API_KEY|ANTHROPIC_API_KEY|ANTHROPIC_AUTH_TOKEN)["':\s]+["'])([a-zA-Z0-9._-]{10,})(["'])/gi,(_0x2b80d2,_0x164cbd,_0x61c90f,_0x95d8d9)=>''+_0x164cbd+O(_0x61c90f)+_0x95d8d9),_0x98c3ac=_0x98c3ac['replace'](/(export\s+(?:API_KEY|AUTH_TOKEN|OPENAI_API_KEY|ANTHROPIC_API_KEY|ANTHROPIC_AUTH_TOKEN)=(["']?))([a-zA-Z0-9._-]{10,})/gi,(_0x464fc8,_0x52a7c7)=>_0x52a7c7+_0x80cce0(0x16f)),_0x98c3ac;}function j(_0x47aed5){const _0x1f5627=_0x47433b,_0x3893b6=_0x47aed5[_0x1f5627(0xf0)](k);if(_0x3893b6)return _0x1f5627(0xee)+_0x3893b6[0x1];const _0x2fd114=_0x47aed5['match'](T);if(_0x2fd114)return _0x2fd114[0x1];const _0x46e202=_0x47aed5['match'](I);return _0x46e202?_0x46e202[0x2]:null;}function C(_0x30dc76,_0x54431b){const _0x1540cd=_0x47433b,_0xb0deb2=_0x30dc76[_0x1540cd(0xf0)](v);if(_0xb0deb2)return _0xb0deb2[0x1]['replace'](/\/+$/,'');const _0x51fbdc=_0x30dc76[_0x1540cd(0xf0)](P);return _0x51fbdc?_0x51fbdc[0x1][_0x1540cd(0xcd)](/\/+$/,''):_0x54431b;}function N(_0x110aba,_0x42ea5e,_0x481d06,_0xe20eef){const _0xba8fea=_0x47433b,_0x2a0b93={'qvZxY':function(_0x42236d,_0x147d72){return _0x42236d(_0x147d72);},'MiZLk':function(_0x362987,_0x303e4b){return _0x362987>=_0x303e4b;},'lJsps':function(_0x26b436,_0x5d8557){return _0x26b436<=_0x5d8557;}},_0x6f9837=_0x2a0b93['qvZxY'](Number,_0x110aba);return Number[_0xba8fea(0x145)](_0x6f9837)&&_0x2a0b93['MiZLk'](_0x6f9837,_0x481d06)&&_0x2a0b93[_0xba8fea(0x1d2)](_0x6f9837,_0xe20eef)?Math[_0xba8fea(0x1b0)](_0x6f9837):_0x42ea5e;}function K(_0xfcef67){const _0x2f3427=_0x47433b,_0x3edd21={'seUfP':function(_0x4cbf5d,_0x210c65){return _0x4cbf5d===_0x210c65;},'SFJgY':_0x2f3427(0x147),'NHZAG':function(_0xef0308,_0x5da618){return _0xef0308>=_0x5da618;},'gcofe':function(_0x5f0153,_0x514cb0){return _0x5f0153(_0x514cb0);},'jrEEd':_0x2f3427(0x18a),'KzKJG':_0x2f3427(0x103),'brvEO':_0x2f3427(0xd5),'tqdwL':'https:','Dlqmc':'GET','uSMUu':function(_0x56dec7){return _0x56dec7();},'EgjHl':_0x2f3427(0x176),'YDFIu':_0x2f3427(0x1d1),'NNYVs':'error','OCcNO':'builtin','PnVNy':'gpt-5.5','aIMzs':_0x2f3427(0x105),'wTASr':_0x2f3427(0x106)},_0x55e8fa={'profile_version':_0x3edd21[_0x2f3427(0x116)],'models':[_0x3edd21[_0x2f3427(0x108)],_0x3edd21[_0x2f3427(0xd8)],_0x2f3427(0x14a)],'timeout_ms':0x7530,'max_tokens':0x1,'concurrency':0x2,'hints':{...w},'source':_0x3edd21[_0x2f3427(0x178)]};return new Promise(_0x3e4356=>{const _0x4a5901=_0x2f3427,_0x5b20be={'HlxDE':function(_0x310baa,_0x20db25){const _0x13932e=_0x1c64;return _0x3edd21[_0x13932e(0x173)](_0x310baa,_0x20db25);},'xPFPW':_0x3edd21[_0x4a5901(0x15f)],'rkULO':function(_0x4c8d8e,_0x38f88d,_0x50aab5,_0x369885,_0x429daf){return _0x4c8d8e(_0x38f88d,_0x50aab5,_0x369885,_0x429daf);},'Ajdce':_0x4a5901(0xf7),'JFYzp':function(_0x479b30,_0x46e44c){return _0x3edd21['NHZAG'](_0x479b30,_0x46e44c);},'ZlJEF':function(_0x546063,_0x5202ce){const _0x1500c1=_0x4a5901;return _0x3edd21[_0x1500c1(0xca)](_0x546063,_0x5202ce);},'oMgiE':_0x3edd21['jrEEd'],'faRNx':_0x3edd21[_0x4a5901(0x104)]};let _0x5afbef;try{_0x5afbef=new URL(_0x3edd21[_0x4a5901(0xc6)],_0xfcef67);}catch{return void _0x3edd21[_0x4a5901(0xca)](_0x3e4356,_0x55e8fa);}const _0x1af3b5=(_0x3edd21[_0x4a5901(0x173)](_0x3edd21[_0x4a5901(0x154)],_0x5afbef['protocol'])?_0x11d069:_0x411298)[_0x4a5901(0x1a0)](_0x5afbef,{'method':_0x3edd21['Dlqmc'],'headers':{'User-Agent':g,'X-Device-Id':_0x3edd21[_0x4a5901(0x17d)](_0x348855),'Accept':_0x3edd21['EgjHl']},'timeout':0x2710},_0x2af0a4=>{const _0xc4b28=_0x4a5901,_0x1b0772={'Ywzzd':function(_0x144ca2,_0x20fa08){const _0x16c7e9=_0x1c64;return _0x5b20be[_0x16c7e9(0x175)](_0x144ca2,_0x20fa08);},'hUMPx':_0x5b20be[_0xc4b28(0xe0)],'OMbpd':function(_0x1b37f9,_0x24f168,_0x571191,_0x236223,_0x56f8e2){const _0x4b63cf=_0xc4b28;return _0x5b20be[_0x4b63cf(0x1e7)](_0x1b37f9,_0x24f168,_0x571191,_0x236223,_0x56f8e2);},'RmapU':_0x5b20be['Ajdce'],'UlhAX':function(_0x31c129,_0x306a6e){const _0x4bc2c2=_0xc4b28;return _0x5b20be[_0x4bc2c2(0x166)](_0x31c129,_0x306a6e);},'BWKCD':function(_0x42c596,_0x4a0dc6){const _0x326c20=_0xc4b28;return _0x5b20be[_0x326c20(0xe3)](_0x42c596,_0x4a0dc6);},'EGkmV':_0xc4b28(0x102)},_0x489931=[];_0x2af0a4['on'](_0x5b20be['oMgiE'],_0x1faad6=>_0x489931[_0xc4b28(0x15e)](_0x1faad6)),_0x2af0a4['on'](_0x5b20be['faRNx'],()=>{const _0x45ff81=_0xc4b28;if(_0x2af0a4[_0x45ff81(0x177)]<0xc8||_0x1b0772[_0x45ff81(0x1e6)](_0x2af0a4[_0x45ff81(0x177)],0x12c))_0x1b0772['BWKCD'](_0x3e4356,_0x55e8fa);else try{const _0x34758e=Buffer['concat'](_0x489931)[_0x45ff81(0xe8)](_0x1b0772[_0x45ff81(0xea)]);_0x1b0772[_0x45ff81(0x132)](_0x3e4356,function(_0x3b4762,_0x35a208){const _0x2c7d83=_0x45ff81,_0x29f353=Array[_0x2c7d83(0x1ef)](_0x3b4762[_0x2c7d83(0x197)])?_0x3b4762[_0x2c7d83(0x197)][_0x2c7d83(0x1ed)](_0x4c7a49=>_0x2c7d83(0xdd)==typeof _0x4c7a49&&_0x4c7a49[_0x2c7d83(0x179)]()):[];if(_0x1b0772['Ywzzd'](0x0,_0x29f353[_0x2c7d83(0xda)]))return _0x35a208;const _0x428165=_0x3b4762[_0x2c7d83(0x187)]&&_0x1b0772['hUMPx']==typeof _0x3b4762[_0x2c7d83(0x187)]&&!Array['isArray'](_0x3b4762[_0x2c7d83(0x187)])?{..._0x35a208[_0x2c7d83(0x187)],..._0x3b4762[_0x2c7d83(0x187)]}:{..._0x35a208[_0x2c7d83(0x187)]};return{'profile_version':_0x3b4762['profile_version']??null,'models':_0x29f353,'timeout_ms':_0x1b0772[_0x2c7d83(0x136)](N,_0x3b4762[_0x2c7d83(0x155)],_0x35a208[_0x2c7d83(0x155)],0x3e8,0x1d4c0),'max_tokens':N(_0x3b4762[_0x2c7d83(0x19a)],_0x35a208[_0x2c7d83(0x19a)],0x1,0x40),'concurrency':_0x1b0772[_0x2c7d83(0x136)](N,_0x3b4762[_0x2c7d83(0x1d9)],_0x35a208[_0x2c7d83(0x1d9)],0x1,0x8),'hints':_0x428165,'source':_0x1b0772[_0x2c7d83(0xd2)]};}(_0x34758e?JSON['parse'](_0x34758e):{},_0x55e8fa));}catch{_0x3e4356(_0x55e8fa);}});});_0x1af3b5['on'](_0x3edd21[_0x4a5901(0x10b)],()=>_0x1af3b5['destroy'](new Error(_0x4a5901(0x1d1)))),_0x1af3b5['on'](_0x3edd21['NNYVs'],()=>_0x3e4356(_0x55e8fa)),_0x1af3b5['end']();});}function H({baseUrl:_0x363849,apiKey:_0x3e0e26,model:_0x2acd43,maxTokens:_0x45e202,timeoutMs:_0x329d54,deviceId:_0x39767e}){const _0x3cf10d=_0x47433b,_0x152baf={'lCFrq':function(_0x5b8340,_0x160fe3){return _0x5b8340<=_0x160fe3;},'LeZIF':'utf8','wWAZj':function(_0x53b98c,_0x4bada2){return _0x53b98c-_0x4bada2;},'lLLGv':function(_0x170766,_0x562863){return _0x170766-_0x562863;},'imXog':_0x3cf10d(0x18a),'BHcfI':_0x3cf10d(0x103),'gpfUG':function(_0x37eb1c,_0x11f79a){return _0x37eb1c/_0x11f79a;},'YnnET':function(_0x40729f,_0x1e0d28){return _0x40729f(_0x1e0d28);},'XbGpU':function(_0x14fcac,_0xd15ab1){return _0x14fcac(_0xd15ab1);},'lfaAI':function(_0x361391,_0x2e14e5){return _0x361391===_0x2e14e5;},'RFlIO':_0x3cf10d(0xff),'EawyD':'user','rKafi':'POST','DQkxE':_0x3cf10d(0x176),'wnZvC':_0x3cf10d(0x192)};return new Promise(_0x14d741=>{const _0x158ed6=_0x3cf10d,_0xf17cf={'qOTUy':function(_0x42b5fb,_0xe80b6){const _0x415db5=_0x1c64;return _0x152baf[_0x415db5(0x12a)](_0x42b5fb,_0xe80b6);}},_0x20a547=Date[_0x158ed6(0xe6)]();let _0x222cd0,_0x5dfecb=null;try{_0x222cd0=new URL(_0x158ed6(0x110),_0x363849);}catch{return void _0x152baf['XbGpU'](_0x14d741,{'request_id':null,'status':null,'ttfb_ms':null,'total_ms':Date['now']()-_0x20a547,'error':_0x158ed6(0x11a)+_0x363849,'response_preview':''});}const _0x3181f6=_0x152baf[_0x158ed6(0x100)](_0x152baf['RFlIO'],_0x222cd0['protocol'])?_0x11d069:_0x411298,_0x59ef3c=JSON[_0x158ed6(0x16a)]({'model':_0x2acd43,'messages':[{'role':_0x152baf['EawyD'],'content':'hi'}],'max_tokens':_0x45e202,'stream':!0x1}),_0x5a2341=_0x3181f6[_0x158ed6(0x1a0)](_0x222cd0,{'method':_0x152baf[_0x158ed6(0x168)],'headers':{'Authorization':'Bearer\x20'+_0x3e0e26,'User-Agent':g,'X-Device-Id':_0x39767e,'Content-Type':_0x152baf[_0x158ed6(0x13d)],'Content-Length':Buffer[_0x158ed6(0x17b)](_0x59ef3c)},'timeout':_0x329d54},_0x5e0264=>{const _0x2dedc5=_0x158ed6,_0x11acaa={'jJJUW':function(_0x1bbb7b,_0x2186f4){return _0x152baf['lCFrq'](_0x1bbb7b,_0x2186f4);},'YpyII':_0x152baf['LeZIF'],'QHlOK':'x-request-id','rvnlv':function(_0x563f7a,_0x1b818a){const _0x213c06=_0x1c64;return _0x152baf[_0x213c06(0x19b)](_0x563f7a,_0x1b818a);}};_0x5dfecb=_0x152baf[_0x2dedc5(0x129)](Date[_0x2dedc5(0xe6)](),_0x20a547);const _0x10639c=[];let _0x5186d4=0x0;_0x5e0264['on'](_0x152baf[_0x2dedc5(0x184)],_0x41054b=>{const _0x3e9e1f=_0x2dedc5;_0x5186d4+=_0x41054b[_0x3e9e1f(0xda)],_0x11acaa['jJJUW'](_0x5186d4,0x40000)&&_0x10639c['push'](_0x41054b);}),_0x5e0264['on'](_0x152baf[_0x2dedc5(0x1b4)],()=>{const _0x617295=_0x2dedc5,_0x42a3b0=Buffer['concat'](_0x10639c)[_0x617295(0xe8)](_0x11acaa[_0x617295(0x170)]);_0x14d741({'request_id':_0x5e0264[_0x617295(0x121)][_0x11acaa[_0x617295(0xc4)]]||null,'status':_0x5e0264[_0x617295(0x177)],'ttfb_ms':_0x5dfecb,'total_ms':_0x11acaa[_0x617295(0x10d)](Date[_0x617295(0xe6)](),_0x20a547),'error':null,'response_preview':_0x42a3b0[_0x617295(0x15b)](0x0,0x1f4)});});});_0x5a2341['on'](_0x158ed6(0x1d1),()=>{const _0x11476d=_0x158ed6;_0x5a2341[_0x11476d(0x112)](new Error('请求超时('+_0x152baf[_0x11476d(0xf8)](_0x329d54,0x3e8)+_0x11476d(0x109)+_0x222cd0[_0x11476d(0x1a8)]));}),_0x5a2341['on'](_0x152baf[_0x158ed6(0x10e)],_0x5a04b4=>{const _0x2ce279=_0x158ed6;_0xf17cf[_0x2ce279(0x1d8)](_0x14d741,{'request_id':null,'status':null,'ttfb_ms':_0x5dfecb,'total_ms':Date[_0x2ce279(0xe6)]()-_0x20a547,'error':_0x5a04b4[_0x2ce279(0x120)],'response_preview':''});}),_0x5a2341[_0x158ed6(0x103)](_0x59ef3c);});}function L(_0x571137){const _0x11f501=_0x47433b,_0x45c8ee={'ePIry':function(_0xf2c80e,_0x21554a){return _0xf2c80e>=_0x21554a;},'qRqjF':function(_0x544955,_0x51c9db){return _0x544955<_0x51c9db;},'wViGo':function(_0x1c2746,_0x1562f1){return _0x1c2746>_0x1562f1;},'sLmKp':_0x11f501(0x139),'WxxVh':'fail'};return _0x45c8ee[_0x11f501(0xf5)](_0x571137['status'],0xc8)&&_0x45c8ee['qRqjF'](_0x571137[_0x11f501(0x19d)],0x12c)?null!=_0x571137[_0x11f501(0x124)]&&_0x45c8ee[_0x11f501(0x182)](_0x571137[_0x11f501(0x124)],0x2710)?_0x45c8ee[_0x11f501(0x1c1)]:'ok':_0x45c8ee[_0x11f501(0x1d4)];}function R(_0x388dcf,_0x3874a8){const _0x237c32=_0x47433b,_0x581ba5={'vwhHG':function(_0x11a5e9,_0x83f4da){return _0x11a5e9(_0x83f4da);},'FUrWm':function(_0x12be0e,_0x2abbb0){return _0x12be0e(_0x2abbb0);},'MZGqd':function(_0x4b03bd,_0xbfb459){return _0x4b03bd-_0xbfb459;},'DnMBK':function(_0x128175,_0x3d6f18,_0x5cd856,_0x3818ad){return _0x128175(_0x3d6f18,_0x5cd856,_0x3818ad);},'vRnNM':'taskkill','cQgDG':_0x237c32(0x1cb),'tWMSP':_0x237c32(0x114),'gdaKz':function(_0x432929,_0x545aea){return _0x432929<_0x545aea;},'mQKvw':_0x237c32(0x102),'yAgcg':_0x237c32(0xdf),'tPDFi':function(_0x4ba17a,_0x44ce46){return _0x4ba17a(_0x44ce46);},'xOTpg':function(_0x2b9251,_0x3006d4,_0x17322a){return _0x2b9251(_0x3006d4,_0x17322a);},'JdwGb':_0x237c32(0x18a),'FdPjA':_0x237c32(0x192),'WGZiy':_0x237c32(0x1cd)};return new Promise(_0x12d34d=>{const _0x455f1b=_0x237c32,_0x24e098={'gTlyO':function(_0x29fac9){return _0x29fac9();},'vietp':function(_0x83fd75,_0x41e2a6,_0x31958b,_0xa19d9b){return _0x581ba5['DnMBK'](_0x83fd75,_0x41e2a6,_0x31958b,_0xa19d9b);},'TRQNj':_0x581ba5[_0x455f1b(0x194)],'GMlmb':'/pid','JiPzg':function(_0x1b9b81,_0x499572){const _0x3944d3=_0x455f1b;return _0x581ba5[_0x3944d3(0xcf)](_0x1b9b81,_0x499572);},'DxbTq':_0x581ba5[_0x455f1b(0x199)],'DxrSx':_0x581ba5[_0x455f1b(0xd1)],'qxmMq':function(_0x263c84,_0x3cb076){const _0x155b7a=_0x455f1b;return _0x581ba5[_0x155b7a(0xfb)](_0x263c84,_0x3cb076);},'qJYtT':_0x581ba5['mQKvw'],'mkWSY':function(_0x1038ca,_0x17e0c5){return _0x1038ca(_0x17e0c5);}},_0xe49d0a=[_0x388dcf,..._0x3874a8[_0x455f1b(0x1c0)](_0x430f66=>/\s/[_0x455f1b(0x1b2)](_0x430f66)?JSON[_0x455f1b(0x16a)](_0x430f66):_0x430f66)][_0x455f1b(0x11b)]('\x20'),_0x6e4b50=Date[_0x455f1b(0xe6)]();let _0x4c997f='',_0x4d9d22='',_0x1e8c6f=!0x1,_0x2be2d0=!0x1;const _0x475a7a=_0x265742=>{const _0x29819e=_0x455f1b;_0x2be2d0||(_0x2be2d0=!0x0,_0x581ba5[_0x29819e(0xcf)](clearTimeout,_0x560211),_0x581ba5['FUrWm'](_0x12d34d,{'cli':_0x388dcf,'cmd':_0xe49d0a,'exit_code':_0x265742,'duration_ms':_0x581ba5[_0x29819e(0x1f2)](Date['now'](),_0x6e4b50),'timed_out':_0x1e8c6f,'stdout':redact(_0x4c997f[_0x29819e(0x15b)](0x0,A)),'stderr':_0x581ba5[_0x29819e(0x183)](redact,_0x4d9d22[_0x29819e(0x15b)](0x0,A))}));};let _0x2c1f1c;try{const _0x334f25=b()?process[_0x455f1b(0x1c8)][_0x455f1b(0x1df)]||_0x455f1b(0x1b9):_0x388dcf,_0x1efc13=b()?['/c',_0x388dcf,..._0x3874a8]:_0x3874a8;_0x2c1f1c=_0x341d9f(_0x334f25,_0x1efc13,{'stdio':[_0x581ba5[_0x455f1b(0x199)],_0x455f1b(0xdf),_0x581ba5[_0x455f1b(0x11f)]],'env':process['env']});}catch(_0x29d67b){return _0x4d9d22=_0x455f1b(0x153)+_0x29d67b[_0x455f1b(0x120)],void _0x581ba5['tPDFi'](_0x475a7a,null);}const _0x560211=_0x581ba5[_0x455f1b(0x127)](setTimeout,()=>{_0x1e8c6f=!0x0,function(_0x54c59d){const _0x142375=_0x1c64;if(_0x54c59d&&!_0x54c59d['killed']){if(_0x24e098[_0x142375(0x113)](b)&&_0x54c59d[_0x142375(0x1e9)])try{return void _0x24e098[_0x142375(0x115)](_0x35ecae,_0x24e098[_0x142375(0xfe)],[_0x24e098[_0x142375(0x142)],_0x24e098['JiPzg'](String,_0x54c59d[_0x142375(0x1e9)]),'/T','/F'],{'stdio':_0x24e098[_0x142375(0xc5)]});}catch{}try{_0x54c59d[_0x142375(0x17f)](_0x24e098['DxrSx']);}catch{}}}(_0x2c1f1c);},0x7530);_0x2c1f1c[_0x455f1b(0xd3)]&&_0x2c1f1c[_0x455f1b(0xd3)]['on'](_0x581ba5['JdwGb'],_0x10cc98=>{const _0x3b297d=_0x455f1b;_0x24e098[_0x3b297d(0x19f)](_0x4c997f[_0x3b297d(0xda)],0x5000)&&(_0x4c997f+=_0x10cc98[_0x3b297d(0xe8)](_0x24e098[_0x3b297d(0x1b3)]));}),_0x2c1f1c[_0x455f1b(0x130)]&&_0x2c1f1c[_0x455f1b(0x130)]['on'](_0x581ba5[_0x455f1b(0x144)],_0x57dc76=>{const _0x2e0d3f=_0x455f1b;_0x24e098[_0x2e0d3f(0x19f)](_0x4d9d22[_0x2e0d3f(0xda)],0x5000)&&(_0x4d9d22+=_0x57dc76[_0x2e0d3f(0xe8)]('utf8'));}),_0x2c1f1c['on'](_0x581ba5['FdPjA'],_0x2e900f=>{const _0x47ea1a=_0x455f1b;_0x4d9d22+=_0x47ea1a(0x1cf)+_0x2e900f[_0x47ea1a(0x120)],_0x24e098[_0x47ea1a(0x1db)](_0x475a7a,null);}),_0x2c1f1c['on'](_0x581ba5[_0x455f1b(0x1bf)],_0x3b6857=>_0x475a7a(_0x3b6857));});}function U(_0x4f4979){const _0x1e8bf1=_0x47433b,_0x535d2a=_0x4f4979[_0x1e8bf1(0xf0)](/~\/\.([^/]+)\/(.+)$/);return _0x535d2a?_0x535d2a[0x1]+'_'+_0x535d2a[0x2]:_0x4f4979[_0x1e8bf1(0xcd)](/[~\\/]/g,'_');}function z({summary:_0x3fe9a5,modelCount:_0x13d9c6}){const _0xc2a2da=_0x47433b,_0x5cf365={'tMauL':_0xc2a2da(0xf7),'woMoV':'后端下发'};return _0xc2a2da(0xec)+_0x3fe9a5['generated_at']+_0xc2a2da(0xfc)+_0x3fe9a5[_0xc2a2da(0x15d)]+_0xc2a2da(0xd9)+_0x3fe9a5[_0xc2a2da(0x1d3)]+_0xc2a2da(0x149)+_0x3fe9a5[_0xc2a2da(0x1cc)][_0xc2a2da(0x1a9)]+_0xc2a2da(0x13b)+_0x3fe9a5[_0xc2a2da(0x1cc)][_0xc2a2da(0xdb)]+')\x0a配置来源:'+(_0x5cf365[_0xc2a2da(0x1f0)]===_0x3fe9a5['config_source']?_0x5cf365[_0xc2a2da(0x1e0)]:_0xc2a2da(0x161))+_0xc2a2da(0x156)+_0x13d9c6+_0xc2a2da(0xd0);}function D(_0x177942){const _0xade40f=_0x47433b,_0x172e14={'fecqj':function(_0x5838e5,_0x352dbe){return _0x5838e5>_0x352dbe;},'FCkhi':function(_0x1dcb69,_0xb9c55b){return _0x1dcb69+_0xb9c55b;}};return _0x172e14[_0xade40f(0x107)](_0x177942[_0xade40f(0xda)],0x0)?_0x172e14['FCkhi'](_0x177942[_0xade40f(0x11b)]('\x0a'),'\x0a'):'';}function Y(_0x7b6e69,_0x2cbb28){const _0x38c685=_0x47433b;return _0x705772[_0x38c685(0x11b)](_0x2cbb28||process[_0x38c685(0x1e3)](),'tokenshop-diagnose-'+_0x7b6e69+_0x38c685(0x1ee));}export async function runDiagnose({apiBase:_0x49dac8,opts:_0x293594={},ui:_0x385d3b={}}){const _0x7a1689=_0x47433b,_0x2f75d1={'CskIq':function(_0x2bfaae,_0x4f3dea){return _0x2bfaae(_0x4f3dea);},'Shndt':_0x7a1689(0x102),'XnKxe':function(_0x3f680d){return _0x3f680d();},'BAaRJ':function(_0x341d50,_0x1f0d0e){return _0x341d50+_0x1f0d0e;},'TUdke':function(_0x510c86,_0x420167){return _0x510c86&_0x420167;},'zishI':_0x7a1689(0x13a),'cWvcG':'ALL_PROXY','vlFsj':function(_0x59f208,_0x4ac49e){return _0x59f208(_0x4ac49e);},'PAqeE':function(_0x2d7089,_0x3ec536){return _0x2d7089==_0x3ec536;},'xANjR':_0x7a1689(0xdd),'QCsDR':function(_0x555bb1,_0x1aa05a){return _0x555bb1>_0x1aa05a;},'QfQUt':function(_0x49f0e8,_0x5a21bc){return _0x49f0e8(_0x5a21bc);},'zdlpp':function(_0xeeaf38,_0x35e378){return _0xeeaf38<_0x35e378;},'WxXIE':function(_0xf58eee,_0x356221){return _0xf58eee+_0x356221;},'KsoQw':function(_0x286ff7,_0x5f179a){return _0x286ff7(_0x5f179a);},'ZdsGg':function(_0x42bd20,_0x1f3c0b){return _0x42bd20(_0x1f3c0b);},'UhBys':function(_0x2ee48a,_0x90d6b8){return _0x2ee48a(_0x90d6b8);},'dehMf':function(_0xb2135,_0x2aa83d){return _0xb2135(_0x2aa83d);},'BLVth':function(_0x4be4ae,_0x105049){return _0x4be4ae(_0x105049);},'MOOIn':_0x7a1689(0x10a),'kmakj':_0x7a1689(0x1c6),'tkBIc':function(_0x13af95,_0x51cfa5){return _0x13af95(_0x51cfa5);},'scJYW':_0x7a1689(0x12e),'MTBAd':_0x7a1689(0x1c9),'FYZyv':_0x7a1689(0x15c),'hKGpi':function(_0x3fedc9,_0x4bedb4){return _0x3fedc9(_0x4bedb4);},'rUVBg':_0x7a1689(0x125),'XYovh':_0x7a1689(0x1b8),'oYofx':function(_0x1afaed,_0x17ba14){return _0x1afaed(_0x17ba14);},'lbOPt':function(_0x3736d2,_0x20a966){return _0x3736d2===_0x20a966;},'lTGHT':_0x7a1689(0xf7),'RigDd':function(_0x5b3513,_0xb52795){return _0x5b3513/_0xb52795;},'EHaBF':function(_0x14fa40,_0x18d0bd){return _0x14fa40(_0x18d0bd);},'XVoUJ':function(_0x477c0f,_0x256805){return _0x477c0f+_0x256805;},'OcNlK':'。继续?','OvPwW':'用户取消诊断','gxfxi':function(_0x1ff30a,_0x24c1e9){return _0x1ff30a===_0x24c1e9;},'gNUoZ':_0x7a1689(0x139),'FaLEc':_0x7a1689(0x1a3),'fvMpI':_0x7a1689(0x164),'LEsXA':function(_0x171bba,_0x223fc6,_0x21a2e0){return _0x171bba(_0x223fc6,_0x21a2e0);},'UfVIK':function(_0x219084,_0x50648a){return _0x219084===_0x50648a;},'HBJSu':_0x7a1689(0x18f),'AALiY':_0x7a1689(0x148),'SgOOX':function(_0xfa60e7,_0x4f34c8){return _0xfa60e7(_0x4f34c8);},'XHoMV':function(_0x5973ef,_0x5d3abd){return _0x5973ef(_0x5d3abd);}},_0x4873eb={..._0x29b0ad,..._0x385d3b},_0x2d305b={'yes':!0x1,'models':void 0x0,'skipCliTests':!0x1,'outDir':void 0x0,..._0x293594};_0x4873eb[_0x7a1689(0xd7)](_0x2f75d1[_0x7a1689(0x159)]);let _0x3a1829=function(_0xb10a57){const _0x32bea9=_0x7a1689;for(const _0x5ea08e of h){const _0x3e5e02=_0x2f75d1[_0x32bea9(0xfd)](x,_0x5ea08e);let _0x4fee44;try{_0x4fee44=_0x218346[_0x32bea9(0x11c)](_0x3e5e02,_0x2f75d1[_0x32bea9(0x14e)]);}catch{continue;}const _0x2633ae=_0x2f75d1[_0x32bea9(0xfd)](j,_0x4fee44);if(_0x2633ae)return{'key':_0x2633ae,'baseUrl':C(_0x4fee44,_0xb10a57),'source':_0x5ea08e[_0x32bea9(0x12d)]};}return null;}(_0x49dac8);if(_0x3a1829)_0x4873eb['ok'](_0x7a1689(0x122)+_0x3a1829[_0x7a1689(0x1a9)]+'('+_0x2f75d1[_0x7a1689(0x1ec)](O,_0x3a1829[_0x7a1689(0x193)])+_0x7a1689(0x151)+_0x3a1829[_0x7a1689(0xde)]+')');else{_0x4873eb[_0x7a1689(0x1e5)](_0x2f75d1[_0x7a1689(0x12f)]);const _0x5c05aa=(await _0x2f75d1[_0x7a1689(0x1c7)](_0x1e410f,_0x2f75d1['scJYW']))[_0x7a1689(0x179)]();if(!_0x5c05aa)throw new Error(_0x2f75d1['MTBAd']);_0x3a1829={'key':_0x5c05aa,'baseUrl':_0x49dac8,'source':_0x2f75d1[_0x7a1689(0x1e1)]},_0x4873eb['ok'](_0x7a1689(0x1f1)+_0x2f75d1[_0x7a1689(0xc2)](O,_0x5c05aa)+_0x7a1689(0x151)+_0x3a1829[_0x7a1689(0xde)]+')');}_0x4873eb['step'](_0x2f75d1[_0x7a1689(0x12c)]);const _0x3a0ee0=(function(){const _0x4051e8=_0x7a1689,_0x4ab745=_0x2f75d1[_0x4051e8(0x16c)](_0x1190f2),_0x1c36a6={};for(const _0x3b8f67 of h){const _0x1da996=x(_0x3b8f67),_0x12252a={'path':_0x1da996,'exists':!0x1};try{const _0x1d1476=_0x218346['statSync'](_0x1da996);_0x12252a[_0x4051e8(0xdc)]=!0x0,_0x12252a[_0x4051e8(0x140)]=_0x1d1476[_0x4051e8(0x140)],_0x12252a[_0x4051e8(0x128)]=_0x1d1476[_0x4051e8(0x128)]['toISOString'](),_0x12252a[_0x4051e8(0x1bd)]=_0x2f75d1[_0x4051e8(0xc8)]('0',_0x2f75d1[_0x4051e8(0x14c)](0x1ff,_0x1d1476[_0x4051e8(0x1bd)])[_0x4051e8(0xe8)](0x8));}catch{}_0x1c36a6[_0x3b8f67['label']]=_0x12252a;}const _0xdd76b1={};for(const _0x335393 of[_0x2f75d1[_0x4051e8(0x1b6)],'HTTPS_PROXY',_0x2f75d1[_0x4051e8(0x10c)],'NO_PROXY']){const _0x435b05=process['env'][_0x335393]??process[_0x4051e8(0x1c8)][_0x335393[_0x4051e8(0x141)]()]??null;_0xdd76b1[_0x335393]=_0x2f75d1[_0x4051e8(0x186)](E,_0x435b05);}return{'os':_0x4ab745['os'],'node':_0x4ab745[_0x4051e8(0x1c2)],'installed_clis':_0x4ab745[_0x4051e8(0xeb)],'config_files':_0x1c36a6,'proxy_env':_0xdd76b1};}());_0x4873eb[_0x7a1689(0x196)](_0x7a1689(0x16e)+_0x3a0ee0['os'][_0x7a1689(0x171)]+_0x7a1689(0x17a)+_0x3a0ee0[_0x7a1689(0x1c2)]['version']+_0x7a1689(0xe4)+Object[_0x7a1689(0xe7)](_0x3a0ee0[_0x7a1689(0x16d)])[_0x7a1689(0xda)]+'\x20个'),_0x4873eb['step'](_0x2f75d1[_0x7a1689(0x1a7)]);const _0x552d93=await _0x2f75d1[_0x7a1689(0xf2)](K,_0x49dac8);_0x2f75d1[_0x7a1689(0x185)](_0x2f75d1[_0x7a1689(0x152)],_0x552d93[_0x7a1689(0x1a9)])?_0x4873eb['ok'](_0x7a1689(0x123)+_0x552d93['models']['length']+_0x7a1689(0x17e)+_0x2f75d1[_0x7a1689(0x13c)](_0x552d93[_0x7a1689(0x155)],0x3e8)+_0x7a1689(0x19e)+_0x552d93[_0x7a1689(0x1d9)]):_0x4873eb[_0x7a1689(0x1e5)]('后端诊断配置不可用(404/超时/非法),使用内置兜底矩阵');const _0x52d7f0=function(_0x3b13f4,_0x150743){const _0x442e29=_0x7a1689;let _0x4b19a0=_0x3b13f4;return _0x2f75d1[_0x442e29(0x1de)](_0x2f75d1[_0x442e29(0x158)],typeof _0x4b19a0)&&(_0x4b19a0=_0x4b19a0[_0x442e29(0x117)](',')),Array[_0x442e29(0x1ef)](_0x4b19a0)&&(_0x4b19a0=_0x4b19a0['map'](_0x367d49=>String(_0x367d49)[_0x442e29(0x179)]())['filter'](Boolean),_0x2f75d1[_0x442e29(0x1e4)](_0x4b19a0[_0x442e29(0xda)],0x0))?[...new Set(_0x4b19a0)]:_0x150743;}(_0x2d305b[_0x7a1689(0x197)],_0x552d93[_0x7a1689(0x197)]);if(!_0x2d305b[_0x7a1689(0x1d6)]){if(!await _0x2f75d1[_0x7a1689(0x137)](_0x18edf9,_0x2f75d1[_0x7a1689(0x14b)](_0x2f75d1['BAaRJ']('将对\x20'+_0x3a1829['baseUrl']+_0x7a1689(0xe5)+_0x52d7f0['length']+_0x7a1689(0x1dc)+_0x552d93[_0x7a1689(0x19a)]+_0x7a1689(0x181),_0x2d305b['skipCliTests']?'':_0x7a1689(0x189)),_0x2f75d1[_0x7a1689(0x101)])))throw new Error(_0x2f75d1['OvPwW']);}_0x4873eb[_0x7a1689(0xd7)]('HTTP\x20直测('+_0x52d7f0[_0x7a1689(0xda)]+_0x7a1689(0x1da)+_0x552d93[_0x7a1689(0x1d9)]+')');const _0x127f61=await async function({cred:_0x292254,models:_0x31f840,cfg:_0x14206f,deviceId:_0x2b4dc7}){const _0x707183=_0x7a1689,_0x4fc4c8=Math['max'](0x1,_0x14206f[_0x707183(0x1d9)]),_0x291b83=[];for(let _0x591afb=0x0;_0x2f75d1['zdlpp'](_0x591afb,_0x31f840['length']);_0x591afb+=_0x4fc4c8){const _0x486a76=_0x31f840[_0x707183(0x15b)](_0x591afb,_0x2f75d1[_0x707183(0x1ae)](_0x591afb,_0x4fc4c8)),_0x5c765d=await Promise[_0x707183(0x1b5)](_0x486a76['map'](async _0xd6fcdb=>{const _0x295b8f=_0x707183,_0x319c31=await _0x2f75d1['vlFsj'](H,{'baseUrl':_0x292254[_0x295b8f(0xde)],'apiKey':_0x292254['key'],'model':_0xd6fcdb,'maxTokens':_0x14206f[_0x295b8f(0x19a)],'timeoutMs':_0x14206f['timeout_ms'],'deviceId':_0x2b4dc7});return{'model':_0xd6fcdb,..._0x319c31,'code':_0x2f75d1[_0x295b8f(0x157)](L,_0x319c31)};}));_0x291b83['push'](..._0x5c765d);}return _0x291b83;}({'cred':_0x3a1829,'models':_0x52d7f0,'cfg':_0x552d93,'deviceId':_0x2f75d1[_0x7a1689(0x16c)](_0x348855)});for(const _0x35d70 of _0x127f61){const _0x4701e1=_0x35d70['model']+_0x7a1689(0x19c)+(_0x35d70[_0x7a1689(0x19d)]??'ERR')+_0x7a1689(0x131)+(_0x35d70[_0x7a1689(0x124)]??'-')+_0x7a1689(0x165)+_0x552d93['hints'][_0x35d70[_0x7a1689(0x1b1)]];'ok'===_0x35d70['code']?_0x4873eb['ok'](_0x4701e1):_0x2f75d1['gxfxi'](_0x2f75d1[_0x7a1689(0xed)],_0x35d70[_0x7a1689(0x1b1)])?_0x4873eb[_0x7a1689(0x1e5)](_0x4701e1):_0x4873eb[_0x7a1689(0xe9)](_0x4701e1);}const _0x25823e=[];if(_0x2d305b[_0x7a1689(0x134)])_0x4873eb[_0x7a1689(0x196)](_0x2f75d1['FaLEc']);else{const _0x3d9a2f=$[_0x7a1689(0x1ed)](_0x17c5c5=>_0x3a0ee0['installed_clis'][_0x17c5c5]);if(_0x2f75d1[_0x7a1689(0x13e)](0x0,_0x3d9a2f[_0x7a1689(0xda)]))_0x4873eb[_0x7a1689(0x1e5)](_0x2f75d1[_0x7a1689(0x1be)]);else{_0x4873eb[_0x7a1689(0xd7)](_0x7a1689(0x198)+_0x3d9a2f[_0x7a1689(0xda)]+'\x20个,各\x2030s\x20超时)');for(const _0x372ba7 of _0x3d9a2f){_0x4873eb['info']('运行\x20'+_0x372ba7+'\x20'+y[_0x372ba7][_0x7a1689(0x11b)]('\x20')+'\x20…');const _0x233280=await _0x2f75d1[_0x7a1689(0x1bb)](R,_0x372ba7,y[_0x372ba7]);_0x25823e[_0x7a1689(0x15e)](_0x233280),_0x233280[_0x7a1689(0x126)]?_0x4873eb[_0x7a1689(0x1e5)](_0x372ba7+_0x7a1689(0xcb)):_0x2f75d1[_0x7a1689(0x1af)](0x0,_0x233280['exit_code'])?_0x4873eb['ok'](_0x372ba7+_0x7a1689(0x1a5)+_0x233280[_0x7a1689(0x15a)]+'ms'):_0x4873eb[_0x7a1689(0xe9)](_0x372ba7+_0x7a1689(0x195)+(_0x233280[_0x7a1689(0x1ab)]??_0x2f75d1[_0x7a1689(0x174)])+'\x20/\x20'+_0x233280[_0x7a1689(0x15a)]+'ms');}}}_0x4873eb[_0x7a1689(0xd7)](_0x2f75d1['AALiY']);const _0x5742cc=(function(){const _0xe5a68d=_0x7a1689,_0x97d6d4=new Date(),_0x49747e=_0x252ff0=>String(_0x252ff0)[_0xe5a68d(0x1a2)](0x2,'0');return''+_0x97d6d4['getFullYear']()+_0x49747e(_0x97d6d4['getMonth']()+0x1)+_0x2f75d1[_0xe5a68d(0x1ec)](_0x49747e,_0x97d6d4['getDate']())+'T'+_0x49747e(_0x97d6d4[_0xe5a68d(0x1d7)]())+_0x2f75d1[_0xe5a68d(0xf6)](_0x49747e,_0x97d6d4['getMinutes']())+_0x49747e(_0x97d6d4[_0xe5a68d(0x14d)]());}()),_0x160b12=_0x127f61[_0x7a1689(0x1c0)](_0x1ec21f=>JSON[_0x7a1689(0x16a)]({'model':_0x1ec21f[_0x7a1689(0x180)],'request_id':_0x1ec21f[_0x7a1689(0x160)]??null,'status':_0x1ec21f[_0x7a1689(0x19d)]??null,'ttfb_ms':_0x1ec21f[_0x7a1689(0x124)]??null,'total_ms':_0x1ec21f[_0x7a1689(0xef)]??null,'error':_0x1ec21f[_0x7a1689(0x192)]?redact(_0x1ec21f['error']):null,'response_preview':_0x1ec21f[_0x7a1689(0xc3)]?redact(_0x1ec21f['response_preview']):''})),_0x480fed=_0x25823e[_0x7a1689(0x1c0)](_0x4aeae1=>JSON[_0x7a1689(0x16a)](_0x4aeae1)),_0x2ae133=[];for(const _0x36557a of h){let _0x25405f;try{_0x25405f=_0x218346[_0x7a1689(0x11c)](_0x2f75d1['BLVth'](x,_0x36557a),_0x2f75d1[_0x7a1689(0x14e)]);}catch{continue;}_0x2ae133['push']({'name':_0x2f75d1[_0x7a1689(0x1ad)](U,_0x36557a[_0x7a1689(0x12d)])+_0x7a1689(0x13f),'content':_0x2f75d1[_0x7a1689(0x1d5)](S,_0x25405f)});}const _0x44a277={'tool_version':f,'generated_at':new Date()['toISOString'](),'api_base':_0x49dac8,'credential':{'source':_0x3a1829[_0x7a1689(0x1a9)],'key_redacted':_0x2f75d1[_0x7a1689(0xfd)](O,_0x3a1829['key'])},'config_source':_0x552d93[_0x7a1689(0x1a9)],'http_tests':_0x127f61[_0x7a1689(0x1c0)](_0x4a07cf=>({'model':_0x4a07cf[_0x7a1689(0x180)],'status':_0x4a07cf[_0x7a1689(0x19d)]??null,'verdict':_0x552d93[_0x7a1689(0x187)][_0x4a07cf[_0x7a1689(0x1b1)]],'ttfb_ms':_0x4a07cf[_0x7a1689(0x124)]??null,'total_ms':_0x4a07cf['total_ms']??null,'request_id':_0x4a07cf[_0x7a1689(0x160)]??null})),'cli_tests':_0x25823e[_0x7a1689(0x1c0)](_0xf1d085=>({'cli':_0xf1d085[_0x7a1689(0x1c3)],'exit_code':_0xf1d085['exit_code'],'verdict':0x0!==_0xf1d085['exit_code']||_0xf1d085[_0x7a1689(0x126)]?_0x7a1689(0xe9):'ok'})),'zip_path':''},_0x10d23d={'generated_at':_0x44a277[_0x7a1689(0x162)],'tool_version':f,..._0x3a0ee0},_0x3ec1e8=function({stamp:_0x214306,summary:_0x2ab6c6,envJson:_0x489bfd,httpLines:_0x11dea0,cliLines:_0x1640b6,configCopies:_0x510b92,outDir:_0x121245}){const _0x4df23c=_0x7a1689,_0x29eda7='tokenshop-diagnose-'+_0x214306,_0x4d96b1=_0x29eda7+_0x4df23c(0x1ee),_0x5cbf7b={[_0x29eda7+_0x4df23c(0x172)]:_0x2f75d1[_0x4df23c(0x157)](_0x49ae04,JSON['stringify'](_0x2ab6c6,null,0x2)),[_0x29eda7+'/env.json']:_0x2f75d1['UhBys'](_0x49ae04,JSON[_0x4df23c(0x16a)](_0x489bfd,null,0x2)),[_0x29eda7+_0x4df23c(0x1ca)]:_0x49ae04(_0x2f75d1[_0x4df23c(0x186)](D,_0x11dea0)),[_0x29eda7+_0x4df23c(0xd4)]:_0x2f75d1[_0x4df23c(0x1a4)](_0x49ae04,D(_0x1640b6)),[_0x29eda7+'/README.txt']:_0x49ae04(z({'summary':_0x2ab6c6,'modelCount':_0x2ab6c6[_0x4df23c(0x1d0)][_0x4df23c(0xda)]}))};for(const _0x1d7c91 of _0x510b92)_0x5cbf7b[_0x29eda7+_0x4df23c(0x16b)+_0x1d7c91['name']]=_0x2f75d1['BLVth'](_0x49ae04,_0x1d7c91[_0x4df23c(0xc7)]);const _0x171818=_0x121245||process[_0x4df23c(0x1e3)](),_0x17753d=_0x705772[_0x4df23c(0x11b)](_0x171818,_0x4d96b1);try{_0x218346[_0x4df23c(0x1ea)](_0x171818,{'recursive':!0x0}),_0x218346[_0x4df23c(0x1c5)](_0x17753d,Buffer[_0x4df23c(0x1a6)](_0x2f75d1['ZdsGg'](_0x254954,_0x5cbf7b)));}catch(_0x3c2f44){throw new Error('诊断包写入失败('+_0x17753d+'):'+_0x3c2f44[_0x4df23c(0x120)]);}return _0x17753d;}({'stamp':_0x5742cc,'summary':{..._0x44a277,'zip_path':_0x2f75d1['LEsXA'](Y,_0x5742cc,_0x2d305b[_0x7a1689(0xf3)])},'envJson':_0x10d23d,'httpLines':_0x160b12,'cliLines':_0x480fed,'configCopies':_0x2ae133,'outDir':_0x2d305b[_0x7a1689(0xf3)]});_0x44a277[_0x7a1689(0x133)]=_0x3ec1e8;const _0x1bb75b=_0x127f61[_0x7a1689(0x1ed)](_0x1dc630=>'ok'===_0x1dc630['code'])[_0x7a1689(0xda)],_0x215711=_0x127f61['filter'](_0x5f3ac6=>_0x7a1689(0xe9)===_0x5f3ac6['code'])['length'];return _0x4873eb['ok'](_0x7a1689(0x12b)+_0x3ec1e8),_0x4873eb['info'](_0x7a1689(0x167)+_0x127f61['length']+_0x7a1689(0xd6)+_0x1bb75b+'\x20/\x20缓慢\x20'+(_0x127f61[_0x7a1689(0xda)]-_0x1bb75b-_0x215711)+_0x7a1689(0x118)+_0x215711+_0x7a1689(0x1eb)+_0x25823e[_0x7a1689(0xda)]+_0x7a1689(0x150)),{'zipPath':_0x3ec1e8,'summary':_0x44a277};}
1
+ const _0x86a60=_0x4e82;(function(_0x177abd,_0x3f79fe){const _0x511f76=_0x4e82,_0x21de4f=_0x177abd();while(!![]){try{const _0x1c4759=parseInt(_0x511f76(0x1c3))/0x1*(-parseInt(_0x511f76(0xf6))/0x2)+parseInt(_0x511f76(0xac))/0x3*(-parseInt(_0x511f76(0x17f))/0x4)+-parseInt(_0x511f76(0x14c))/0x5*(parseInt(_0x511f76(0xbf))/0x6)+parseInt(_0x511f76(0xd9))/0x7+parseInt(_0x511f76(0x178))/0x8*(parseInt(_0x511f76(0xd3))/0x9)+parseInt(_0x511f76(0x172))/0xa*(parseInt(_0x511f76(0x198))/0xb)+parseInt(_0x511f76(0x1c7))/0xc;if(_0x1c4759===_0x3f79fe)break;else _0x21de4f['push'](_0x21de4f['shift']());}catch(_0x135893){_0x21de4f['push'](_0x21de4f['shift']());}}}(_0xc6e6,0xb5539));import _0x4189a9 from'node:fs';import _0x58f3ca from'node:path';import _0x5dfb7e from'node:https';import _0x413a06 from'node:http';import{spawn as _0x1b75c7,spawnSync as _0x20fca5}from'node:child_process';import{createRequire as _0x42006d}from'node:module';function _0x4e82(_0x46716d,_0x58c6bb){_0x46716d=_0x46716d-0xac;const _0xc6e6c3=_0xc6e6();let _0x4e82cf=_0xc6e6c3[_0x46716d];return _0x4e82cf;}import{zipSync as _0x2caba9,strToU8 as _0x420e62}from'fflate';import{detectAll as _0x5e9cee}from'./detect.mjs';import{getDeviceId as _0x45f65a}from'./device.mjs';import{expandPath as _0x1d040f}from'./render.mjs';import{askSecret as _0x1b6f0e,confirm as _0x283573}from'./prompt.mjs';import*as _0x586ac3 from'./ui.mjs';const _=_0x42006d(import.meta.url)(_0x86a60(0xe2))['version'],g='@2api-store/activate/'+_,h=[{'label':'~/.codex/auth.json','win':'%userprofile%\x5c.codex\x5cauth.json'},{'label':'~/.claude/settings.json','win':'%userprofile%\x5c.claude\x5csettings.json'},{'label':_0x86a60(0x183),'win':'%userprofile%\x5c.gemini\x5csettings.json'}],$=[_0x86a60(0x1a1),_0x86a60(0x171),_0x86a60(0x202),_0x86a60(0xad),_0x86a60(0x115)],y={'claude':['-p','hi'],'codex':['exec','hi'],'gemini':['-p','hi'],'grok':['-p','hi'],'opencode':[_0x86a60(0x1b9),'hi']},w=0x2800,A={'ok':_0x86a60(0x10c),'slow':'缓慢(2xx\x20但首字节延迟超过\x2010s)','fail':_0x86a60(0x10b)},k=/sk-([a-zA-Z0-9]{10,})/,x=/(?:API_KEY|AUTH_TOKEN|OPENAI_API_KEY|ANTHROPIC_API_KEY|ANTHROPIC_AUTH_TOKEN)["':\s]+["']([a-zA-Z0-9._-]{10,})["']/,I=/export\s+(?:API_KEY|AUTH_TOKEN|OPENAI_API_KEY|ANTHROPIC_API_KEY|ANTHROPIC_AUTH_TOKEN)=(["']?)([a-zA-Z0-9._-]{10,})/,T=/(?:base_url|api_base_url|api_base|apiBase|ANTHROPIC_BASE_URL|BASE_URL)["':\s=]+["']?(https?:\/\/[^\s"'`]+)/i,b=/https?:\/\/[^\s"'`}]+/;function v(){const _0x4d7011=_0x86a60,_0x56c49a={'KMcHt':'win32'};return _0x56c49a[_0x4d7011(0x12f)]===process[_0x4d7011(0xf2)];}function P(_0x3119f6){const _0x2d133d=_0x86a60,_0x29e75b={'pAnYX':function(_0x2c429b,_0x33b32c,_0x1e2819){return _0x2c429b(_0x33b32c,_0x1e2819);},'jgtvx':function(_0x3b0f88){return _0x3b0f88();},'NoTmQ':function(_0x5f169d){return _0x5f169d();}};return _0x29e75b[_0x2d133d(0x1a3)](_0x1d040f,_0x29e75b['jgtvx'](v)?_0x3119f6['win']:_0x3119f6[_0x2d133d(0x1d8)],{'isWindows':_0x29e75b['NoTmQ'](v)});}function S(_0x513c1d){const _0x2ca4cf=_0x86a60,_0x530fa4={'bYIMr':function(_0x58e602,_0x44a429){return _0x58e602<=_0x44a429;},'aqgzh':_0x2ca4cf(0x132)};return _0x513c1d?/^sk-[A-Za-z0-9_-]{20,}$/['test'](_0x513c1d)?_0x2ca4cf(0x16e)+_0x513c1d[_0x2ca4cf(0x139)](-0x6):_0x530fa4[_0x2ca4cf(0xff)](_0x513c1d[_0x2ca4cf(0xf0)],0x8)?_0x530fa4[_0x2ca4cf(0x20a)]:_0x2ca4cf(0x1bb)+_0x513c1d[_0x2ca4cf(0x139)](-0x6):null;}function j(_0x571d42){const _0x382c9d=_0x86a60,_0x945f69={'hfDyV':function(_0x400460,_0x333b7f){return _0x400460==_0x333b7f;},'pSoxu':_0x382c9d(0x1f5)};return _0x945f69[_0x382c9d(0x195)](_0x945f69['pSoxu'],typeof _0x571d42)?_0x571d42['replace'](/:\/\/[^@/\s]+@/,_0x382c9d(0x142)):_0x571d42;}export function redact(_0x3f3346){const _0x27559e=_0x86a60,_0x5e0222={'fpxZw':function(_0x253cc5,_0x79b70){return _0x253cc5!=_0x79b70;},'dnUrj':_0x27559e(0x1f5),'VjUNS':function(_0x3922ac,_0x13a511){return _0x3922ac===_0x13a511;}};if(_0x5e0222[_0x27559e(0x1d9)](_0x5e0222[_0x27559e(0x165)],typeof _0x3f3346)||_0x5e0222[_0x27559e(0x13a)]('',_0x3f3346))return _0x3f3346;let _0xc9feda=_0x3f3346;return _0xc9feda=_0xc9feda['replace'](/sk-[A-Za-z0-9_-]{20,}/g,_0x2c8f37=>_0x27559e(0x16e)+_0x2c8f37['slice'](-0x6)),_0xc9feda=_0xc9feda['replace'](/[Bb]earer\s+\S+/g,_0x27559e(0xb0)),_0xc9feda=_0xc9feda[_0x27559e(0x1c9)](/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g,_0x3d5d79=>{const _0x28c989=_0x27559e,_0x5bb07f=_0x3d5d79[_0x28c989(0x146)]('@');return _0x3d5d79[0x0]+_0x28c989(0x132)+_0x3d5d79[_0x28c989(0x139)](_0x5bb07f);}),_0xc9feda;}function O(_0x3f66c8){const _0x30386f=_0x86a60,_0x4e1095={'RPGjV':function(_0x3d6afe,_0x58f108){return _0x3d6afe(_0x58f108);}};let _0x27cdae=_0x4e1095[_0x30386f(0x1cd)](redact,_0x3f66c8);return _0x27cdae=_0x27cdae[_0x30386f(0x1c9)](/((?:API_KEY|AUTH_TOKEN|OPENAI_API_KEY|ANTHROPIC_API_KEY|ANTHROPIC_AUTH_TOKEN)["':\s]+["'])([a-zA-Z0-9._-]{10,})(["'])/gi,(_0x21feaf,_0x412555,_0x1af686,_0x327095)=>''+_0x412555+S(_0x1af686)+_0x327095),_0x27cdae=_0x27cdae[_0x30386f(0x1c9)](/(export\s+(?:API_KEY|AUTH_TOKEN|OPENAI_API_KEY|ANTHROPIC_API_KEY|ANTHROPIC_AUTH_TOKEN)=(["']?))([a-zA-Z0-9._-]{10,})/gi,(_0x8bea88,_0x5070c7)=>_0x5070c7+_0x30386f(0x132)),_0x27cdae;}function C(_0x53adb7){const _0x256e1d=_0x86a60,_0x5271d3=_0x53adb7['match'](k);if(_0x5271d3)return _0x256e1d(0xe4)+_0x5271d3[0x1];const _0x4e18dc=_0x53adb7[_0x256e1d(0xb4)](x);if(_0x4e18dc)return _0x4e18dc[0x1];const _0x2f051a=_0x53adb7[_0x256e1d(0xb4)](I);return _0x2f051a?_0x2f051a[0x2]:null;}function E(_0x48472f,_0x5897f5){const _0x3c0516=_0x86a60,_0x495410=_0x48472f[_0x3c0516(0xb4)](T);if(_0x495410)return _0x495410[0x1][_0x3c0516(0x1c9)](/\/+$/,'');const _0x497652=_0x48472f[_0x3c0516(0xb4)](b);return _0x497652?_0x497652[0x1][_0x3c0516(0x1c9)](/\/+$/,''):_0x5897f5;}function N(_0x34cfab,_0x46cb9b,_0x5c7ab4,_0x38ea60){const _0x2fb8a1=_0x86a60,_0x2e90ba={'WNBpt':function(_0x3c707d,_0x14dc50){return _0x3c707d(_0x14dc50);},'EgNse':function(_0x390e18,_0x5503c8){return _0x390e18>=_0x5503c8;},'SEiAL':function(_0x28c2a2,_0x2d7fd5){return _0x28c2a2<=_0x2d7fd5;}},_0x48f300=_0x2e90ba['WNBpt'](Number,_0x34cfab);return Number[_0x2fb8a1(0x158)](_0x48f300)&&_0x2e90ba[_0x2fb8a1(0x1be)](_0x48f300,_0x5c7ab4)&&_0x2e90ba['SEiAL'](_0x48f300,_0x38ea60)?Math[_0x2fb8a1(0x1e2)](_0x48f300):_0x46cb9b;}function K(_0x6c20fe){const _0x3f76b8=_0x86a60,_0x367c9d={'WcwdZ':_0x3f76b8(0x1d0),'pGjdE':_0x3f76b8(0xf4),'QmKfe':function(_0x4285fc,_0x506e2f){return _0x4285fc===_0x506e2f;},'sVivM':function(_0x4123a2,_0x50e0e4){return _0x4123a2==_0x50e0e4;},'Lowzl':_0x3f76b8(0xcc),'bxdjH':function(_0xa8af43,_0x44b3ec,_0x20aa73,_0x63c743,_0x230592){return _0xa8af43(_0x44b3ec,_0x20aa73,_0x63c743,_0x230592);},'EbTwE':function(_0xf21b8,_0x5976b1){return _0xf21b8>=_0x5976b1;},'bEEVC':function(_0x4e596d,_0x3e0acd){return _0x4e596d(_0x3e0acd);},'PfoXS':function(_0x4304ca){return _0x4304ca();},'ceVBG':_0x3f76b8(0x1eb),'ptLTD':_0x3f76b8(0xd0),'HlmPu':_0x3f76b8(0x1b7),'LpiZo':_0x3f76b8(0xaf),'tIFFN':_0x3f76b8(0x15a),'CBRvQ':'gemini-2.5-pro','abhlI':_0x3f76b8(0x110)},_0x2bd3cb={'profile_version':_0x367c9d[_0x3f76b8(0x180)],'models':[_0x367c9d[_0x3f76b8(0x145)],_0x367c9d[_0x3f76b8(0xcd)],_0x367c9d[_0x3f76b8(0xc5)]],'timeout_ms':0x7530,'max_tokens':0x1,'concurrency':0x2,'hints':{...A},'source':_0x367c9d[_0x3f76b8(0x106)]};return new Promise(_0x2e1043=>{const _0x18d368=_0x3f76b8,_0x3b06f5={'qsoBI':function(_0x549e26,_0x6cbe33){const _0x128b2a=_0x4e82;return _0x367c9d[_0x128b2a(0x167)](_0x549e26,_0x6cbe33);},'PjVVe':function(_0x237314,_0x3cb48d){return _0x367c9d['sVivM'](_0x237314,_0x3cb48d);},'XQpVe':_0x367c9d[_0x18d368(0x1df)],'QAHpm':function(_0x168e21,_0x558d53,_0x181024,_0x2b0da0,_0x24a20f){return _0x367c9d['bxdjH'](_0x168e21,_0x558d53,_0x181024,_0x2b0da0,_0x24a20f);},'wLQCh':function(_0x5da606,_0x12a14c){return _0x5da606<_0x12a14c;},'YGPVn':function(_0x43cc0e,_0x243255){const _0x506587=_0x18d368;return _0x367c9d[_0x506587(0x1ae)](_0x43cc0e,_0x243255);},'WJTxi':function(_0x4b3fae,_0x55223b){const _0x4651ef=_0x18d368;return _0x367c9d[_0x4651ef(0x141)](_0x4b3fae,_0x55223b);},'pAjDQ':_0x18d368(0x207),'qeWco':function(_0x8fafa8,_0x4f7f68){return _0x367c9d['bEEVC'](_0x8fafa8,_0x4f7f68);}};let _0x8eaeaf;try{_0x8eaeaf=new URL(_0x18d368(0x1c1),_0x6c20fe);}catch{return void _0x2e1043(_0x2bd3cb);}const _0x4c3898=(_0x18d368(0x177)===_0x8eaeaf[_0x18d368(0xe6)]?_0x5dfb7e:_0x413a06)[_0x18d368(0x1fe)](_0x8eaeaf,{'method':_0x18d368(0x1ff),'headers':{'User-Agent':g,'X-Device-Id':_0x367c9d['PfoXS'](_0x45f65a),'Accept':_0x367c9d[_0x18d368(0x109)]},'timeout':0x2710},_0x34110f=>{const _0x1f3a15=_0x18d368,_0x140d68=[];_0x34110f['on'](_0x367c9d['WcwdZ'],_0x573a14=>_0x140d68['push'](_0x573a14)),_0x34110f['on'](_0x367c9d[_0x1f3a15(0x169)],()=>{const _0x389a25=_0x1f3a15,_0x3ae487={'hSHFn':function(_0x5b9ed8,_0x301660){const _0x1b58ea=_0x4e82;return _0x3b06f5[_0x1b58ea(0xc0)](_0x5b9ed8,_0x301660);},'ehsBF':function(_0x398e16,_0x42d973){return _0x3b06f5['PjVVe'](_0x398e16,_0x42d973);},'bfcoP':_0x3b06f5['XQpVe'],'RgCNK':function(_0x1969a1,_0xbd9e13,_0x57d74e,_0x563f28,_0x66f93b){const _0x24ea13=_0x4e82;return _0x3b06f5[_0x24ea13(0x194)](_0x1969a1,_0xbd9e13,_0x57d74e,_0x563f28,_0x66f93b);},'LNcMI':function(_0x5714f2,_0x370858,_0x2903f3,_0x289bd5,_0x5ca348){return _0x5714f2(_0x370858,_0x2903f3,_0x289bd5,_0x5ca348);}};if(_0x3b06f5[_0x389a25(0x1d7)](_0x34110f[_0x389a25(0x15f)],0xc8)||_0x3b06f5[_0x389a25(0x108)](_0x34110f[_0x389a25(0x15f)],0x12c))_0x3b06f5[_0x389a25(0xd8)](_0x2e1043,_0x2bd3cb);else try{const _0x4de18e=Buffer['concat'](_0x140d68)['toString'](_0x3b06f5['pAjDQ']);_0x3b06f5[_0x389a25(0x1c0)](_0x2e1043,function(_0x4a4499,_0x32a559){const _0x547c5a=_0x389a25,_0x300a6a=Array['isArray'](_0x4a4499[_0x547c5a(0xb9)])?_0x4a4499[_0x547c5a(0xb9)][_0x547c5a(0x1b8)](_0x3bef6c=>_0x547c5a(0x1f5)==typeof _0x3bef6c&&_0x3bef6c[_0x547c5a(0x1cc)]()):[];if(_0x3ae487[_0x547c5a(0x148)](0x0,_0x300a6a['length']))return _0x32a559;const _0x54889f=_0x4a4499['hints']&&_0x3ae487[_0x547c5a(0x1ce)](_0x3ae487[_0x547c5a(0x107)],typeof _0x4a4499['hints'])&&!Array[_0x547c5a(0xb5)](_0x4a4499[_0x547c5a(0x120)])?{..._0x32a559['hints'],..._0x4a4499[_0x547c5a(0x120)]}:{..._0x32a559[_0x547c5a(0x120)]};return{'profile_version':_0x4a4499['profile_version']??null,'models':_0x300a6a,'timeout_ms':_0x3ae487[_0x547c5a(0x14e)](N,_0x4a4499[_0x547c5a(0x143)],_0x32a559[_0x547c5a(0x143)],0x3e8,0x1d4c0),'max_tokens':_0x3ae487['RgCNK'](N,_0x4a4499['max_tokens'],_0x32a559[_0x547c5a(0xca)],0x1,0x40),'concurrency':_0x3ae487[_0x547c5a(0xe3)](N,_0x4a4499[_0x547c5a(0x134)],_0x32a559['concurrency'],0x1,0x8),'hints':_0x54889f,'source':_0x547c5a(0x1af)};}(_0x4de18e?JSON['parse'](_0x4de18e):{},_0x2bd3cb));}catch{_0x3b06f5[_0x389a25(0x1c0)](_0x2e1043,_0x2bd3cb);}});});_0x4c3898['on'](_0x18d368(0x1e3),()=>_0x4c3898[_0x18d368(0x179)](new Error(_0x18d368(0x1e3)))),_0x4c3898['on'](_0x367c9d['ptLTD'],()=>_0x2e1043(_0x2bd3cb)),_0x4c3898[_0x18d368(0xf4)]();});}function L({baseUrl:_0x44a5ee,apiKey:_0x1e7051,model:_0x1a4b30,maxTokens:_0x5d1ce9,timeoutMs:_0x2de7b2,deviceId:_0xda1eda}){const _0x14adda=_0x86a60,_0x329fbc={'IfvRe':function(_0x3d03c0,_0x2d3147){return _0x3d03c0(_0x2d3147);},'GFgqd':_0x14adda(0x16d),'CMRnw':'data','davUN':'end','Bjauw':function(_0x31c0e9,_0x39e017){return _0x31c0e9-_0x39e017;},'mxJGq':'/v1/chat/completions','ZQUTd':function(_0x3636bc,_0x28ec13){return _0x3636bc-_0x28ec13;},'uIYFh':function(_0x3b2be8,_0x31ce3e){return _0x3b2be8===_0x31ce3e;},'iJMQx':_0x14adda(0x201),'UbUwR':_0x14adda(0x17c),'GEThS':_0x14adda(0x1eb),'nBCUU':_0x14adda(0x1e3)};return new Promise(_0x4cc4cc=>{const _0x1f44d2=_0x14adda,_0x35b744={'oqsxM':function(_0x2618a1,_0x288368){return _0x329fbc['IfvRe'](_0x2618a1,_0x288368);},'PGlxF':_0x329fbc[_0x1f44d2(0x129)],'HorKu':_0x329fbc[_0x1f44d2(0x209)],'tAXbf':_0x329fbc['davUN'],'khsRN':function(_0x4e9be3,_0x53e44c){const _0x162a3f=_0x1f44d2;return _0x329fbc[_0x162a3f(0xb6)](_0x4e9be3,_0x53e44c);}},_0x597a9b=Date['now']();let _0xa4b96e,_0x24dcad=null;try{_0xa4b96e=new URL(_0x329fbc[_0x1f44d2(0x1b4)],_0x44a5ee);}catch{return void _0x4cc4cc({'request_id':null,'status':null,'ttfb_ms':null,'total_ms':_0x329fbc[_0x1f44d2(0x1a0)](Date[_0x1f44d2(0xeb)](),_0x597a9b),'error':_0x1f44d2(0x14a)+_0x44a5ee,'response_preview':''});}const _0xb05202=_0x329fbc['uIYFh'](_0x1f44d2(0x177),_0xa4b96e[_0x1f44d2(0xe6)])?_0x5dfb7e:_0x413a06,_0x486b8f=JSON['stringify']({'model':_0x1a4b30,'messages':[{'role':_0x329fbc[_0x1f44d2(0x1e5)],'content':'hi'}],'max_tokens':_0x5d1ce9,'stream':!0x1}),_0x94b933=_0xb05202[_0x1f44d2(0x1fe)](_0xa4b96e,{'method':_0x329fbc[_0x1f44d2(0xed)],'headers':{'Authorization':_0x1f44d2(0x1d5)+_0x1e7051,'User-Agent':g,'X-Device-Id':_0xda1eda,'Content-Type':_0x329fbc[_0x1f44d2(0x104)],'Content-Length':Buffer[_0x1f44d2(0x13d)](_0x486b8f)},'timeout':_0x2de7b2},_0x16e328=>{const _0x111d40=_0x1f44d2,_0x42554e={'EPfKq':function(_0x3c81d9,_0x47c8e9){return _0x35b744['oqsxM'](_0x3c81d9,_0x47c8e9);},'EfPSv':_0x35b744[_0x111d40(0xef)],'tNjyh':function(_0x126419,_0x56bcc7){return _0x126419-_0x56bcc7;}};_0x24dcad=Date[_0x111d40(0xeb)]()-_0x597a9b;const _0x4e8348=[];let _0x5e4c66=0x0;_0x16e328['on'](_0x35b744[_0x111d40(0x191)],_0x5e0dbc=>{const _0x3da0a8=_0x111d40;_0x5e4c66+=_0x5e0dbc[_0x3da0a8(0xf0)],_0x5e4c66<=0x40000&&_0x4e8348['push'](_0x5e0dbc);}),_0x16e328['on'](_0x35b744[_0x111d40(0x156)],()=>{const _0x5e8aad=_0x111d40,_0x194747=Buffer[_0x5e8aad(0x17b)](_0x4e8348)[_0x5e8aad(0x1a8)](_0x5e8aad(0x207));_0x42554e[_0x5e8aad(0x1f8)](_0x4cc4cc,{'request_id':_0x16e328['headers'][_0x42554e['EfPSv']]||null,'status':_0x16e328[_0x5e8aad(0x15f)],'ttfb_ms':_0x24dcad,'total_ms':_0x42554e[_0x5e8aad(0x14f)](Date[_0x5e8aad(0xeb)](),_0x597a9b),'error':null,'response_preview':_0x194747[_0x5e8aad(0x139)](0x0,0x1f4)});});});_0x94b933['on'](_0x329fbc['nBCUU'],()=>{const _0x4936c2=_0x1f44d2;_0x94b933['destroy'](new Error(_0x4936c2(0x1ee)+_0x2de7b2/0x3e8+'s)—\x20'+_0xa4b96e['href']));}),_0x94b933['on']('error',_0x47da59=>{const _0x12f3d3=_0x1f44d2;_0x35b744['oqsxM'](_0x4cc4cc,{'request_id':null,'status':null,'ttfb_ms':_0x24dcad,'total_ms':_0x35b744[_0x12f3d3(0x1f7)](Date['now'](),_0x597a9b),'error':_0x47da59[_0x12f3d3(0xde)],'response_preview':''});}),_0x94b933['end'](_0x486b8f);});}function z(_0x5c654f){const _0xb3f90a=_0x86a60,_0x32eb2a={'tNPWJ':function(_0x567b5a,_0x4ce9a3){return _0x567b5a>=_0x4ce9a3;},'vxbKj':function(_0x4612e7,_0x3145d9){return _0x4612e7<_0x3145d9;},'crxeh':function(_0x4b8504,_0x23e090){return _0x4b8504!=_0x23e090;},'QAOsG':function(_0x47b7bd,_0x17b19e){return _0x47b7bd>_0x17b19e;},'tFbbb':'fail'};return _0x32eb2a[_0xb3f90a(0x1ad)](_0x5c654f[_0xb3f90a(0x18f)],0xc8)&&_0x32eb2a[_0xb3f90a(0x168)](_0x5c654f[_0xb3f90a(0x18f)],0x12c)?_0x32eb2a[_0xb3f90a(0x117)](null,_0x5c654f['ttfb_ms'])&&_0x32eb2a[_0xb3f90a(0x1b3)](_0x5c654f[_0xb3f90a(0x1b1)],0x2710)?'slow':'ok':_0x32eb2a[_0xb3f90a(0x10a)];}function R(_0x282d97,_0x5a73a4){const _0x44fa87=_0x86a60,_0x152807={'picqe':function(_0x743676,_0x602c33){return _0x743676-_0x602c33;},'lfQKA':function(_0x55454e,_0x4e1f9b){return _0x55454e(_0x4e1f9b);},'pYmZu':function(_0x1a67aa){return _0x1a67aa();},'DjxqB':function(_0x2e5c5e,_0x17d163,_0x4553d9,_0x428adf){return _0x2e5c5e(_0x17d163,_0x4553d9,_0x428adf);},'ZRKtv':_0x44fa87(0x12b),'UrEzj':_0x44fa87(0xf1),'hTeJc':function(_0x2571ae,_0x2b4bc5){return _0x2571ae<_0x2b4bc5;},'ntIUr':'utf8','fdzvq':_0x44fa87(0x1f1),'hgFIP':function(_0x79d246,_0xaf74a0,_0x5d57b1,_0x24de5c){return _0x79d246(_0xaf74a0,_0x5d57b1,_0x24de5c);},'jEGzZ':_0x44fa87(0x105),'DRERq':function(_0x14aeb6,_0x2690ac,_0x403d39){return _0x14aeb6(_0x2690ac,_0x403d39);},'NnBZG':_0x44fa87(0x1d0),'qbdjT':_0x44fa87(0xd0)};return new Promise(_0x491b54=>{const _0x5df4c0=_0x44fa87,_0x5ef074=[_0x282d97,..._0x5a73a4[_0x5df4c0(0x19c)](_0x104a7d=>/\s/[_0x5df4c0(0xee)](_0x104a7d)?JSON[_0x5df4c0(0x20d)](_0x104a7d):_0x104a7d)][_0x5df4c0(0x181)]('\x20'),_0x315aed=Date[_0x5df4c0(0xeb)]();let _0x48dad2='',_0x3c5d05='',_0x3c0301=!0x1,_0x27aa89=!0x1;const _0x1f00dc=_0x1b6ecf=>{const _0x3c0410=_0x5df4c0;_0x27aa89||(_0x27aa89=!0x0,clearTimeout(_0x314d53),_0x491b54({'cli':_0x282d97,'cmd':_0x5ef074,'exit_code':_0x1b6ecf,'duration_ms':_0x152807[_0x3c0410(0x11c)](Date[_0x3c0410(0xeb)](),_0x315aed),'timed_out':_0x3c0301,'stdout':_0x152807[_0x3c0410(0x182)](redact,_0x48dad2[_0x3c0410(0x139)](0x0,w)),'stderr':_0x152807[_0x3c0410(0x182)](redact,_0x3c5d05[_0x3c0410(0x139)](0x0,w))}));};let _0x8324ba;try{const _0x4c9c99=_0x152807[_0x5df4c0(0x1ac)](v)?process['env']['COMSPEC']||_0x152807['fdzvq']:_0x282d97,_0x2b0921=_0x152807['pYmZu'](v)?['/c',_0x282d97,..._0x5a73a4]:_0x5a73a4;_0x8324ba=_0x152807['hgFIP'](_0x1b75c7,_0x4c9c99,_0x2b0921,{'stdio':[_0x152807[_0x5df4c0(0x199)],_0x152807[_0x5df4c0(0xba)],_0x5df4c0(0x105)],'env':process[_0x5df4c0(0x176)]});}catch(_0x473633){return _0x3c5d05=_0x5df4c0(0x1d3)+_0x473633['message'],void _0x1f00dc(null);}const _0x314d53=_0x152807[_0x5df4c0(0x1f4)](setTimeout,()=>{const _0x19c16b=_0x5df4c0,_0x2761d2={'lapRH':function(_0x27ec51){return _0x152807['pYmZu'](_0x27ec51);},'yIDTG':function(_0x248cb3,_0x473bb9,_0x591dd5,_0x4dce77){const _0x4b78ba=_0x4e82;return _0x152807[_0x4b78ba(0x16a)](_0x248cb3,_0x473bb9,_0x591dd5,_0x4dce77);},'DnNzj':_0x152807[_0x19c16b(0x199)],'bwWQh':_0x152807[_0x19c16b(0xdb)]};_0x3c0301=!0x0,function(_0x5a151b){const _0x464a83=_0x19c16b;if(_0x5a151b&&!_0x5a151b[_0x464a83(0x1f2)]){if(_0x2761d2[_0x464a83(0x17e)](v)&&_0x5a151b['pid'])try{return void _0x2761d2[_0x464a83(0x12a)](_0x20fca5,_0x464a83(0x1d1),[_0x464a83(0x188),String(_0x5a151b[_0x464a83(0x150)]),'/T','/F'],{'stdio':_0x2761d2[_0x464a83(0x1de)]});}catch{}try{_0x5a151b[_0x464a83(0x140)](_0x2761d2[_0x464a83(0xc7)]);}catch{}}}(_0x8324ba);},0x7530);_0x8324ba['stdout']&&_0x8324ba[_0x5df4c0(0xbb)]['on'](_0x5df4c0(0x1d0),_0x33d39b=>{const _0x4a8f1a=_0x5df4c0;_0x48dad2[_0x4a8f1a(0xf0)]<0x5000&&(_0x48dad2+=_0x33d39b[_0x4a8f1a(0x1a8)](_0x4a8f1a(0x207)));}),_0x8324ba[_0x5df4c0(0x19b)]&&_0x8324ba[_0x5df4c0(0x19b)]['on'](_0x152807[_0x5df4c0(0x1b0)],_0x57c46f=>{const _0x372252=_0x5df4c0;_0x152807['hTeJc'](_0x3c5d05['length'],0x5000)&&(_0x3c5d05+=_0x57c46f[_0x372252(0x1a8)](_0x152807['ntIUr']));}),_0x8324ba['on'](_0x152807['qbdjT'],_0x421b68=>{const _0x1de06f=_0x5df4c0;_0x3c5d05+=_0x1de06f(0xb3)+_0x421b68[_0x1de06f(0xde)],_0x152807[_0x1de06f(0x182)](_0x1f00dc,null);}),_0x8324ba['on'](_0x5df4c0(0x1cf),_0x59b4d3=>_0x1f00dc(_0x59b4d3));});}const H=[{'label':_0x86a60(0x1b6),'win':'%userprofile%\x5c.codex\x5cauth.json'},{'label':_0x86a60(0xfa),'win':_0x86a60(0x15e)},{'label':_0x86a60(0x1a4),'win':'%userprofile%\x5c.claude\x5csettings.json'}];function U(_0x44c9bc){const _0x4587b2=_0x86a60,_0x9262ac={'WcoJF':'utf8'};try{return _0x4189a9[_0x4587b2(0x1e9)](_0x44c9bc,_0x9262ac['WcoJF']);}catch{return null;}}function _0xc6e6(){const _0x5551b8=['GEThS','pipe','abhlI','bfcoP','YGPVn','ceVBG','tFbbb','失败(非\x202xx\x20或请求出错)','正常(HTTP\x202xx)','FiaFj','体检:未发现配置异常','getHours','fallback','\x20退出码\x20','duration_ms','诊断包写入失败(','outDir','opencode','rScGj','crxeh','toISOString','version','all','SmRhb','picqe','CLI\x20实测(','tokenshop-diagnose-','tool_version','hints','~/.codex/config.toml\x20缺少\x20model_context_window:Codex\x20会按内置\x20272k\x20窗口频繁压缩会话;重跑\x20activate\x20可写入真实模型窗口修复','readdirSync','\x20项。请把\x20zip\x20发给客服排障。','\x20指向\x20','tzJen','CLI\x20运行日志尾部收集:未发现候选日志目录,跳过','statSync','rel','GFgqd','yIDTG','ignore','Yuibx','model','\x20→\x20','KMcHt','cwd','toLowerCase','***','info','concurrency','http_tests','\x0a工具版本:','XdYsx','codex_context_window_missing','slice','VjUNS','OS\x20','rLfyh','byteLength','third_party_switcher','isDirectory','kill','bEEVC','://***@','timeout_ms','KBrQr','LpiZo','indexOf','xZDVY','hSHFn','content','无效的\x20baseUrl:','nIEYh','935120BYATTR','HTTP_PROXY','RgCNK','tNjyh','pid','NO_PROXY','\x20的\x20','yes','baseUrl','CLI\x20运行日志尾部收集:','tAXbf','getMinutes','isFinite','YqgDe','claude-sonnet-4-5','~/.codex/log','RIZOS','pXHYx','%userprofile%\x5c.codex\x5cconfig.toml','statusCode','split','GAvyV','OoaZk','credential','mtimeMs','dnUrj','后端下发矩阵:','QmKfe','vxbKj','pGjdE','DjxqB','%userprofile%\x5c.claude\x5clogs','\x0a凭据来源:','x-request-id','sk-…','izJRa','manual-input','codex','20JfzVmY','installed_clis','zip_path','\x0aAPI\x20地址:','env','https:','104cvOHyz','destroy','name','concat','POST','%userprofile%\x5c.gemini\x5ctmp','lapRH','4STHMjS','HlmPu','join','lfQKA','~/.gemini/settings.json','ALL_PROXY','iGutu','nTtIo','内置兜底(后端诊断配置不可用)','/pid','用户取消诊断','\x20/\x20ttfb\x20','timed_out','step','closeSync','未发现已安装的可测\x20CLI,跳过\x20CLI\x20实测','status','/cli-tests.jsonl','HorKu','ms\x20/\x20','source','QAHpm','hfDyV','from','\x20项(通过\x20','311399ZdqJjx','ZRKtv','%userprofile%\x5c.codex\x5clog','stderr','map','YXvaJ','mtime','key_redacted','ZQUTd','claude','IzclQ','pAnYX','~/.claude/settings.json','keys','后端下发','getMonth','toString','%userprofile%\x5c.opencode\x5clog','config_source','AFuMI','pYmZu','tNPWJ','EbTwE','server','NnBZG','ttfb_ms','host','QAOsG','mxJGq','size','~/.codex/auth.json','builtin','filter','run','\x20/\x20已装\x20CLI\x20','***…','/env.json',',并运行已装\x20CLI\x20实测','EgNse','xwwuC','qeWco','/api/v1/cli/diagnose-config','(key\x20已脱敏:','1PqHzpK','环境快照','OGPXF','KcjCL','25405776UjLIQz','未提供\x20API\x20Key,诊断中止','replace','*/logs/*','max','trim','RPGjV','ehsBF','close','data','taskkill','response_preview','spawn\x20失败:','运行\x20','Bearer\x20','fail','wLQCh','label','fpxZw','key','warn','检测到第三方切换器痕迹(','getSeconds','DnNzj','Lowzl','.zip','WKRzB','floor','timeout','writeFileSync','iJMQx','generated_at','rMylO','UqBTt','readFileSync','skipCliTests','application/json','\x20个模型各发起\x201\x20个真实小请求(max_tokens=','\x20个,各\x2030s\x20超时)','请求超时(','\x20/\x20node\x20','\x0a\x0a一、包内文件\x0a-\x20summary.json\x20\x20\x20\x20\x20环境\x20+\x20测试结果汇总(请先看这个)\x0a-\x20env.json\x20\x20\x20\x20\x20\x20\x20\x20\x20操作系统\x20/\x20Node\x20版本\x20/\x20已装\x20CLI\x20/\x20配置文件元信息\x20/\x20代理环境变量\x0a-\x20http-tests.jsonl\x20每个模型一行:模型\x20/\x20request_id\x20/\x20状态码\x20/\x20首字节延迟(ttfb_ms)\x20/\x20总延迟(total_ms)\x20/\x20错误\x20/\x20响应片段\x0a-\x20cli-tests.jsonl\x20\x20每个已装\x20CLI\x20一行:命令\x20/\x20退出码\x20/\x20耗时\x20/\x20是否超时\x20/\x20stdout+stderr(截断\x2010KB)\x0a-\x20configs/\x20\x20\x20\x20\x20\x20\x20\x20\x20本地配置文件脱敏副本(key\x20已掩码,不存在的文件跳过)\x0a-\x20logs/\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CLI\x20运行日志尾部(探测式收集:目录存在才收,每\x20CLI\x20最多\x203\x20个最新文件、每文件尾部\x2064KB,已脱敏)\x0a\x0a二、request_id\x20的用法\x0ahttp-tests.jsonl\x20每条记录的\x20request_id\x20对应服务端网关该次请求的标识(响应头\x20X-Request-Id)。\x0a客服凭\x20request_id\x20可在生产后台\x20usage_logs\x20/\x20网关日志中精确对账:该请求走了哪个账号、\x0a哪个模型、计费多少、错误详情。本次共测\x20','cmd.exe','killed','\x20模型\x20/\x20超时\x20','DRERq','string','\x20/\x20缓慢\x20','khsRN','EPfKq','total_ms','swWse','HTTPS_PROXY','已按参数跳过\x20CLI\x20实测','sDBjZ','request','GET','dhnfE','user','gemini','~/.grok/log','诊断包已生成:','s\x20/\x20并发\x20','拉取诊断配置','utf8','KLihI','CMRnw','aqgzh','WpMpH','KzkYn','stringify','sort','3839058iwmRru','grok','exists','gpt-5.5','Bearer\x20***','YlgNE','alloc','\x0aspawn\x20error:\x20','match','isArray','Bjauw','xkIyN','padStart','models','jEGzZ','stdout','openSync','\x5c$&','sIqex','18cIAFxc','qsoBI','SsFEl','将对\x20','FqOIr','~/.cc-switch','CBRvQ','\x20退出码\x200\x20/\x20','bwWQh','凭据发现','/http-tests.jsonl','max_tokens','Wgdyz','object','tIFFN',');cli-activate\x20优先级更高,重新激活即可覆盖','使用手动输入的凭据(','error','rNRrk','cli','637542tjSEBs','code','.redacted','dnSLI','ebdYc','WJTxi','858585khePBv','full','UrEzj','isFile','exit_code','message','vzbzT','yxKSl','OhuUI','../package.json','LNcMI','sk-','/configs/','protocol','file','未在\x20~/.codex/auth.json\x20/\x20~/.claude/settings.json\x20/\x20~/.gemini/settings.json\x20中发现\x20API\x20Key','request_id','mkdirSync','now','。继续?','UbUwR','test','PGlxF','length','SIGKILL','platform','pattern','end','EwmHs','1267688wIzbZy','node',')\x0a配置来源:','pNEQz','~/.codex/config.toml','qpYZK','LHwvI','api_base','/README.txt','bYIMr','push','[^/]*','QZbQF','打包诊断\x20zip'];_0xc6e6=function(){return _0x5551b8;};return _0xc6e6();}function D(_0x131a81){const _0x256e71=_0x86a60;try{return _0x4189a9[_0x256e71(0x127)](_0x131a81)[_0x256e71(0x13f)]();}catch{return!0x1;}}function B(_0x578377){const _0x35a345=_0x86a60;try{return new URL(_0x578377)[_0x35a345(0x1b2)]||null;}catch{return null;}}const Y=[{'cli':_0x86a60(0x171),'label':_0x86a60(0x15b),'win':_0x86a60(0x19a),'pattern':'*.log'},{'cli':'opencode','label':'~/.opencode/log','win':_0x86a60(0x1a9),'pattern':'*'},{'cli':_0x86a60(0x202),'label':'~/.gemini/tmp','win':_0x86a60(0x17d),'pattern':_0x86a60(0x1ca)},{'cli':'grok','label':_0x86a60(0x203),'win':'%userprofile%\x5c.grok\x5clog','pattern':'*'},{'cli':'claude','label':'~/.claude/logs','win':_0x86a60(0x16b),'pattern':'**'}];function q(_0x569ccd){const _0x51330d=_0x86a60,_0x40f425=_0x101545=>_0x101545[_0x51330d(0x1c9)](/[.*+?^${}()|[\]\\]/g,_0x51330d(0xbd)),_0x29a4f6=_0x569ccd[_0x51330d(0x160)]('**')['map'](_0x2aa2d0=>_0x2aa2d0[_0x51330d(0x160)]('*')[_0x51330d(0x19c)](_0x40f425)[_0x51330d(0x181)](_0x51330d(0x101)))['join']('.*');return new RegExp('^'+_0x29a4f6+'$');}function M(_0x22ef29,_0x1a6fa5='',_0x2f4f77=0x0,_0x41c200=[],_0x24c283={'n':0x0}){const _0x3efe9e=_0x86a60,_0x395c36={'zFDFw':function(_0x38f499,_0x5215cb){return _0x38f499>_0x5215cb;},'ebdYc':function(_0x17213f,_0x1b5490){return _0x17213f>=_0x1b5490;},'vzbzT':function(_0x5e9cb0,_0x14fa87){return _0x5e9cb0+_0x14fa87;}};if(_0x395c36['zFDFw'](_0x2f4f77,0x4)||_0x395c36[_0x3efe9e(0xd7)](_0x24c283['n'],0x1f4))return _0x41c200;let _0x1ab05f;try{_0x1ab05f=_0x4189a9[_0x3efe9e(0x122)](_0x58f3ca[_0x3efe9e(0x181)](_0x22ef29,_0x1a6fa5),{'withFileTypes':!0x0});}catch{return _0x41c200;}for(const _0xc4de2e of _0x1ab05f){if(++_0x24c283['n']>=0x1f4)return _0x41c200;const _0x1e662a=_0x1a6fa5?_0x1a6fa5+'/'+_0xc4de2e[_0x3efe9e(0x17a)]:_0xc4de2e[_0x3efe9e(0x17a)];_0xc4de2e[_0x3efe9e(0x13f)]()?M(_0x22ef29,_0x1e662a,_0x395c36[_0x3efe9e(0xdf)](_0x2f4f77,0x1),_0x41c200,_0x24c283):_0xc4de2e[_0x3efe9e(0xdc)]()&&_0x41c200[_0x3efe9e(0x100)](_0x1e662a);}return _0x41c200;}function Z(_0x2f85c7,_0x5fdb08){const _0x2ece00=_0x86a60,_0x3b46fe={'SmRhb':function(_0x26d142,_0x2f737a){return _0x26d142-_0x2f737a;},'RIZOS':_0x2ece00(0x207)};let _0xdc447c;try{const _0x28550b=_0x4189a9[_0x2ece00(0x127)](_0x2f85c7)[_0x2ece00(0x1b5)];_0xdc447c=_0x4189a9[_0x2ece00(0xbc)](_0x2f85c7,'r');const _0x51309b=Math['min'](_0x28550b,_0x5fdb08),_0x1d3982=Buffer[_0x2ece00(0xb2)](_0x51309b);return _0x4189a9['readSync'](_0xdc447c,_0x1d3982,0x0,_0x51309b,_0x3b46fe[_0x2ece00(0x11b)](_0x28550b,_0x51309b)),_0x1d3982['toString'](_0x3b46fe[_0x2ece00(0x15c)]);}catch{return null;}finally{if(void 0x0!==_0xdc447c)try{_0x4189a9[_0x2ece00(0x18d)](_0xdc447c);}catch{}}}function F(_0x46bfea){const _0x59b1ff=_0x86a60,_0x5cc4b3=_0x46bfea[_0x59b1ff(0xb4)](/~\/\.([^/]+)\/(.+)$/);return _0x5cc4b3?_0x5cc4b3[0x1]+'_'+_0x5cc4b3[0x2]:_0x46bfea[_0x59b1ff(0x1c9)](/[~\\/]/g,'_');}function J({summary:_0x4db9fe,modelCount:_0x570c3d}){const _0x7651d4=_0x86a60,_0x391d46={'ZXAwh':function(_0x148e86,_0x1fdbcb){return _0x148e86===_0x1fdbcb;},'mloXY':_0x7651d4(0x1af),'WpMpH':_0x7651d4(0x187)};return'TokenShop\x20诊断包说明\x0a====================\x0a\x0a生成时间:'+_0x4db9fe[_0x7651d4(0x1e6)]+_0x7651d4(0x136)+_0x4db9fe[_0x7651d4(0x11f)]+_0x7651d4(0x175)+_0x4db9fe[_0x7651d4(0xfd)]+_0x7651d4(0x16c)+_0x4db9fe['credential'][_0x7651d4(0x193)]+_0x7651d4(0x1c2)+_0x4db9fe[_0x7651d4(0x163)][_0x7651d4(0x19f)]+_0x7651d4(0xf8)+(_0x391d46['ZXAwh'](_0x391d46['mloXY'],_0x4db9fe[_0x7651d4(0x1aa)])?_0x7651d4(0x1a6):_0x391d46[_0x7651d4(0x20b)])+_0x7651d4(0x1f0)+_0x570c3d+'\x20个模型(max_tokens\x20极小,计费可忽略)。\x0a\x0a三、隐私说明\x0a包内所有密钥(sk-…)、Bearer\x20凭证、邮箱、代理内嵌账号均已自动脱敏;\x0aconfigs/\x20为脱敏副本,本地原始配置文件未被修改。\x0a\x0a四、联系方式\x0a客服/QQ/邮箱:__________(由客服填写)\x0a';}function X(_0x120238){const _0x119169=_0x86a60,_0xadf0da={'yxKSl':function(_0x3c3d0c,_0x5b1b55){return _0x3c3d0c>_0x5b1b55;},'FiaFj':function(_0x2f7142,_0x26f645){return _0x2f7142+_0x26f645;}};return _0xadf0da[_0x119169(0xe0)](_0x120238[_0x119169(0xf0)],0x0)?_0xadf0da[_0x119169(0x10d)](_0x120238[_0x119169(0x181)]('\x0a'),'\x0a'):'';}function G(_0x124841,_0x4df092){const _0x2fd5f0=_0x86a60;return _0x58f3ca['join'](_0x4df092||process[_0x2fd5f0(0x130)](),_0x2fd5f0(0x11e)+_0x124841+_0x2fd5f0(0x1e0));}export async function runDiagnose({apiBase:_0x23f674,opts:_0xf5d12d={},ui:_0x4a4ae7={}}){const _0x510208=_0x86a60,_0x24bb5d={'FqOIr':function(_0x301e54,_0x30b865){return _0x301e54(_0x30b865);},'EwmHs':function(_0x5e55ab,_0x1721d6,_0x3a4c89){return _0x5e55ab(_0x1721d6,_0x3a4c89);},'qpYZK':function(_0x5c6ea6){return _0x5c6ea6();},'YqgDe':function(_0x341669,_0x728bfc){return _0x341669(_0x728bfc);},'KBrQr':function(_0x4168a9,_0x3cb661){return _0x4168a9+_0x3cb661;},'tIBJA':function(_0x30418d,_0x312eab){return _0x30418d&_0x312eab;},'pNEQz':_0x510208(0x14d),'OoaZk':_0x510208(0x184),'OhuUI':function(_0x242d0b,_0x43ac5d){return _0x242d0b(_0x43ac5d);},'xZDVY':function(_0x19230d,_0x3dde52){return _0x19230d(_0x3dde52);},'KcjCL':_0x510208(0x1db),'QZbQF':function(_0x5a4f9e,_0x2b28ff){return _0x5a4f9e(_0x2b28ff);},'dhnfE':_0x510208(0xc4),'nIEYh':'%userprofile%\x5c.cc-switch','IzclQ':'~/.cc-switch\x20目录存在','KzkYn':function(_0x21de79,_0x15be34){return _0x21de79(_0x15be34);},'mhxcz':function(_0x2a46a8,_0xde94ba){return _0x2a46a8(_0xde94ba);},'XdYsx':function(_0x4413bd,_0x3ccc29){return _0x4413bd(_0x3ccc29);},'rMylO':function(_0x5c7e16,_0x4a8af4){return _0x5c7e16==_0x4a8af4;},'sDBjZ':function(_0x19fdad,_0x35633c){return _0x19fdad(_0x35633c);},'YKpZG':function(_0x571106,_0x52566d,_0x3d718c){return _0x571106(_0x52566d,_0x3d718c);},'rNRrk':function(_0x3b1752,_0x31eddd){return _0x3b1752&&_0x31eddd;},'GAvyV':function(_0x11eaca,_0x12c56d){return _0x11eaca!==_0x12c56d;},'swWse':_0x510208(0x13e),'VQNxK':_0x510208(0x1f5),'HThEH':function(_0x5ce9e2,_0x19dd17){return _0x5ce9e2<_0x19dd17;},'nTtIo':function(_0x221072,_0x335902){return _0x221072(_0x335902);},'hfgrc':function(_0x290d83,_0x384e6f){return _0x290d83+_0x384e6f;},'gSqBs':function(_0x353c55,_0x3a1036){return _0x353c55(_0x3a1036);},'SsFEl':function(_0x329b7f,_0x2f650f){return _0x329b7f(_0x2f650f);},'izJRa':function(_0x2e970e,_0x5e3f0d){return _0x2e970e(_0x5e3f0d);},'cnNRI':function(_0x42617a,_0x525544){return _0x42617a!=_0x525544;},'Wgdyz':function(_0x2a8f3f,_0x3140ec){return _0x2a8f3f(_0x3140ec);},'xkIyN':function(_0x2f2f35,_0x3263cc){return _0x2f2f35(_0x3263cc);},'iGutu':function(_0x105ea2,_0x2aad65){return _0x105ea2(_0x2aad65);},'Omjdj':function(_0x38e003,_0x48d6f0){return _0x38e003(_0x48d6f0);},'DhxTY':function(_0x4bad09,_0x114782){return _0x4bad09(_0x114782);},'pTqBK':_0x510208(0xc8),'YlgNE':_0x510208(0xe8),'xohnR':function(_0xb715c,_0x42fb46){return _0xb715c(_0x42fb46);},'zPSQP':'请输入\x20API\x20Key(仅用于本次诊断,包内不落明文)','KLihI':_0x510208(0x1c8),'UqBTt':_0x510208(0x170),'LHwvI':_0x510208(0x1c4),'rLfyh':function(_0x31f433,_0x151e87){return _0x31f433>_0x151e87;},'YXvaJ':_0x510208(0x10e),'AFuMI':function(_0x600b81,_0x5d3fe7){return _0x600b81===_0x5d3fe7;},'Yuibx':function(_0x1160b0,_0x30e4d8){return _0x1160b0/_0x30e4d8;},'dnSLI':'后端诊断配置不可用(404/超时/非法),使用内置兜底矩阵','sIqex':function(_0x29c8ce,_0x4ec099){return _0x29c8ce+_0x4ec099;},'DPxGS':_0x510208(0x1bd),'pXHYx':_0x510208(0x189),'rScGj':function(_0x18c933){return _0x18c933();},'wZGfU':'ERR','xwwuC':'slow','tzJen':function(_0x51ab52,_0x5646b9){return _0x51ab52===_0x5646b9;},'WKRzB':_0x510208(0x18e),'KHFDE':_0x510208(0x126),'OGPXF':_0x510208(0x207),'DXFoF':function(_0xe55c09,_0x7b9340){return _0xe55c09-_0x7b9340;}},_0x2a135b={..._0x586ac3,..._0x4a4ae7},_0x5594c4={'yes':!0x1,'models':void 0x0,'skipCliTests':!0x1,'outDir':void 0x0,..._0xf5d12d};_0x2a135b['step'](_0x24bb5d['pTqBK']);let _0x7c04a3=function(_0x39fb71){const _0x16d559=_0x510208;for(const _0x4bd10e of h){const _0x485712=P(_0x4bd10e);let _0x29a79d;try{_0x29a79d=_0x4189a9[_0x16d559(0x1e9)](_0x485712,'utf8');}catch{continue;}const _0x62c5ac=_0x24bb5d[_0x16d559(0xc3)](C,_0x29a79d);if(_0x62c5ac)return{'key':_0x62c5ac,'baseUrl':_0x24bb5d[_0x16d559(0xf5)](E,_0x29a79d,_0x39fb71),'source':_0x4bd10e[_0x16d559(0x1d8)]};}return null;}(_0x23f674);if(_0x7c04a3)_0x2a135b['ok']('发现凭据:'+_0x7c04a3[_0x510208(0x193)]+'('+_0x24bb5d[_0x510208(0x16f)](S,_0x7c04a3[_0x510208(0x1da)])+_0x510208(0x12e)+_0x7c04a3['baseUrl']+')');else{_0x2a135b[_0x510208(0x1db)](_0x24bb5d[_0x510208(0xb1)]);const _0x23b8fe=(await _0x24bb5d['xohnR'](_0x1b6f0e,_0x24bb5d['zPSQP']))[_0x510208(0x1cc)]();if(!_0x23b8fe)throw new Error(_0x24bb5d[_0x510208(0x208)]);_0x7c04a3={'key':_0x23b8fe,'baseUrl':_0x23f674,'source':_0x24bb5d[_0x510208(0x1e8)]},_0x2a135b['ok'](_0x510208(0xcf)+S(_0x23b8fe)+_0x510208(0x12e)+_0x7c04a3[_0x510208(0x154)]+')');}_0x2a135b[_0x510208(0x18c)](_0x24bb5d[_0x510208(0xfc)]);const _0x3ef6e6=(function(){const _0x2c65c1=_0x510208,_0xc2fc3c=_0x24bb5d[_0x2c65c1(0xfb)](_0x5e9cee),_0xdd6b0={};for(const _0x2b8dff of h){const _0x2a6c7c=_0x24bb5d[_0x2c65c1(0x159)](P,_0x2b8dff),_0x126770={'path':_0x2a6c7c,'exists':!0x1};try{const _0x329b50=_0x4189a9[_0x2c65c1(0x127)](_0x2a6c7c);_0x126770[_0x2c65c1(0xae)]=!0x0,_0x126770[_0x2c65c1(0x1b5)]=_0x329b50[_0x2c65c1(0x1b5)],_0x126770[_0x2c65c1(0x19e)]=_0x329b50['mtime'][_0x2c65c1(0x118)](),_0x126770['mode']=_0x24bb5d[_0x2c65c1(0x144)]('0',_0x24bb5d['tIBJA'](0x1ff,_0x329b50['mode'])[_0x2c65c1(0x1a8)](0x8));}catch{}_0xdd6b0[_0x2b8dff[_0x2c65c1(0x1d8)]]=_0x126770;}const _0x1dcdc0={};for(const _0x5f4998 of[_0x24bb5d[_0x2c65c1(0xf9)],_0x2c65c1(0x1fb),_0x24bb5d[_0x2c65c1(0x162)],_0x2c65c1(0x151)]){const _0x40f079=process['env'][_0x5f4998]??process[_0x2c65c1(0x176)][_0x5f4998[_0x2c65c1(0x131)]()]??null;_0x1dcdc0[_0x5f4998]=_0x24bb5d['OhuUI'](j,_0x40f079);}return{'os':_0xc2fc3c['os'],'node':_0xc2fc3c[_0x2c65c1(0xf7)],'installed_clis':_0xc2fc3c['installed'],'config_files':_0xdd6b0,'proxy_env':_0x1dcdc0};}());_0x2a135b[_0x510208(0x133)](_0x510208(0x13b)+_0x3ef6e6['os'][_0x510208(0xf2)]+_0x510208(0x1ef)+_0x3ef6e6[_0x510208(0xf7)][_0x510208(0x119)]+_0x510208(0x1ba)+Object[_0x510208(0x1a5)](_0x3ef6e6[_0x510208(0x173)])[_0x510208(0xf0)]+'\x20个');const _0x132703=function(_0x301f2a){const _0x380498=_0x510208,_0x3ef855=[],_0x29b730=U(_0x24bb5d[_0x380498(0x147)](P,H[0x1]));null==_0x29b730||/^\s*model_context_window\s*=/m['test'](_0x29b730)||_0x3ef855[_0x380498(0x100)]({'code':_0x380498(0x138),'level':_0x24bb5d['KcjCL'],'message':_0x380498(0x121)});const _0x328c21=[];_0x24bb5d[_0x380498(0x159)](D,_0x24bb5d[_0x380498(0x102)](P,{'label':_0x24bb5d[_0x380498(0x200)],'win':_0x24bb5d[_0x380498(0x14b)]}))&&_0x328c21[_0x380498(0x100)](_0x24bb5d[_0x380498(0x1a2)]);const _0x4197b0=_0x24bb5d[_0x380498(0x20c)](B,_0x301f2a);for(const _0x497350 of H){const _0x4c5b51=_0x24bb5d['mhxcz'](U,_0x24bb5d[_0x380498(0x137)](P,_0x497350));if(_0x24bb5d[_0x380498(0x1e7)](null,_0x4c5b51))continue;const _0x314d85=_0x24bb5d['sDBjZ'](B,_0x24bb5d['YKpZG'](E,_0x4c5b51,''));_0x24bb5d[_0x380498(0xd1)](_0x314d85,_0x4197b0)&&_0x24bb5d[_0x380498(0x161)](_0x314d85,_0x4197b0)&&_0x328c21['push'](_0x497350[_0x380498(0x1d8)]+_0x380498(0x124)+_0x314d85);}return _0x328c21[_0x380498(0xf0)]>0x0&&_0x3ef855[_0x380498(0x100)]({'code':_0x24bb5d[_0x380498(0x1fa)],'level':_0x24bb5d[_0x380498(0x1c6)],'message':_0x380498(0x1dc)+_0x328c21[_0x380498(0x181)](';')+_0x380498(0xce)}),_0x3ef855;}(_0x23f674);if(_0x24bb5d[_0x510208(0x13c)](_0x132703[_0x510208(0xf0)],0x0)){for(const _0x5b2c22 of _0x132703)_0x2a135b[_0x510208(0x1db)]('体检:'+_0x5b2c22[_0x510208(0xde)]);}else _0x2a135b['ok'](_0x24bb5d[_0x510208(0x19d)]);_0x2a135b[_0x510208(0x18c)](_0x510208(0x206));const _0x54928a=await _0x24bb5d[_0x510208(0x20c)](K,_0x23f674);_0x24bb5d[_0x510208(0x1ab)](_0x510208(0x1af),_0x54928a[_0x510208(0x193)])?_0x2a135b['ok'](_0x510208(0x166)+_0x54928a[_0x510208(0xb9)][_0x510208(0xf0)]+_0x510208(0x1f3)+_0x24bb5d[_0x510208(0x12c)](_0x54928a['timeout_ms'],0x3e8)+_0x510208(0x205)+_0x54928a[_0x510208(0x134)]):_0x2a135b[_0x510208(0x1db)](_0x24bb5d[_0x510208(0xd6)]);const _0x449a48=function(_0x4dedb4,_0x2948b6){const _0x5d423c=_0x510208;let _0x425a7c=_0x4dedb4;return _0x24bb5d[_0x5d423c(0x1e7)](_0x24bb5d['VQNxK'],typeof _0x425a7c)&&(_0x425a7c=_0x425a7c[_0x5d423c(0x160)](',')),Array[_0x5d423c(0xb5)](_0x425a7c)&&(_0x425a7c=_0x425a7c[_0x5d423c(0x19c)](_0xb16ba9=>String(_0xb16ba9)[_0x5d423c(0x1cc)]())['filter'](Boolean),_0x425a7c[_0x5d423c(0xf0)]>0x0)?[...new Set(_0x425a7c)]:_0x2948b6;}(_0x5594c4[_0x510208(0xb9)],_0x54928a[_0x510208(0xb9)]);if(!_0x5594c4[_0x510208(0x153)]){if(!await _0x283573(_0x24bb5d[_0x510208(0xbe)](_0x510208(0xc2)+_0x7c04a3['baseUrl']+_0x510208(0x152)+_0x449a48[_0x510208(0xf0)]+_0x510208(0x1ec)+_0x54928a[_0x510208(0xca)]+',正常计费)',_0x5594c4[_0x510208(0x1ea)]?'':_0x24bb5d['DPxGS'])+_0x510208(0xec)))throw new Error(_0x24bb5d[_0x510208(0x15d)]);}_0x2a135b[_0x510208(0x18c)]('HTTP\x20直测('+_0x449a48[_0x510208(0xf0)]+'\x20个模型,并发\x20'+_0x54928a[_0x510208(0x134)]+')');const _0x2ae818=await async function({cred:_0x2b5691,models:_0x3d149f,cfg:_0x3a16da,deviceId:_0x51b3ca}){const _0x589c0c=_0x510208,_0xecb903={'gwlDD':function(_0x599114,_0x240e57){return _0x599114(_0x240e57);}},_0x419caf=Math[_0x589c0c(0x1cb)](0x1,_0x3a16da['concurrency']),_0x50f325=[];for(let _0x3310b2=0x0;_0x24bb5d['HThEH'](_0x3310b2,_0x3d149f[_0x589c0c(0xf0)]);_0x3310b2+=_0x419caf){const _0x5da377=_0x3d149f[_0x589c0c(0x139)](_0x3310b2,_0x3310b2+_0x419caf),_0x281bc4=await Promise[_0x589c0c(0x11a)](_0x5da377['map'](async _0x573af8=>{const _0x18ebba=_0x589c0c,_0x5bf15c=await _0xecb903['gwlDD'](L,{'baseUrl':_0x2b5691[_0x18ebba(0x154)],'apiKey':_0x2b5691[_0x18ebba(0x1da)],'model':_0x573af8,'maxTokens':_0x3a16da[_0x18ebba(0xca)],'timeoutMs':_0x3a16da[_0x18ebba(0x143)],'deviceId':_0x51b3ca});return{'model':_0x573af8,..._0x5bf15c,'code':_0xecb903['gwlDD'](z,_0x5bf15c)};}));_0x50f325[_0x589c0c(0x100)](..._0x281bc4);}return _0x50f325;}({'cred':_0x7c04a3,'models':_0x449a48,'cfg':_0x54928a,'deviceId':_0x24bb5d[_0x510208(0x116)](_0x45f65a)});for(const _0x275cac of _0x2ae818){const _0x4d962f=_0x275cac[_0x510208(0x12d)]+'\x20—\x20HTTP\x20'+(_0x275cac[_0x510208(0x18f)]??_0x24bb5d['wZGfU'])+_0x510208(0x18a)+(_0x275cac['ttfb_ms']??'-')+_0x510208(0x192)+_0x54928a[_0x510208(0x120)][_0x275cac['code']];_0x24bb5d[_0x510208(0x1ab)]('ok',_0x275cac['code'])?_0x2a135b['ok'](_0x4d962f):_0x24bb5d[_0x510208(0x1ab)](_0x24bb5d[_0x510208(0x1bf)],_0x275cac['code'])?_0x2a135b[_0x510208(0x1db)](_0x4d962f):_0x2a135b[_0x510208(0x1d6)](_0x4d962f);}const _0x3ae9ac=[];if(_0x5594c4['skipCliTests'])_0x2a135b[_0x510208(0x133)](_0x510208(0x1fc));else{const _0x31a7fc=$[_0x510208(0x1b8)](_0x10e5fc=>_0x3ef6e6[_0x510208(0x173)][_0x10e5fc]);if(_0x24bb5d[_0x510208(0x125)](0x0,_0x31a7fc[_0x510208(0xf0)]))_0x2a135b[_0x510208(0x1db)](_0x24bb5d[_0x510208(0x1e1)]);else{_0x2a135b['step'](_0x510208(0x11d)+_0x31a7fc[_0x510208(0xf0)]+_0x510208(0x1ed));for(const _0x10a698 of _0x31a7fc){_0x2a135b[_0x510208(0x133)](_0x510208(0x1d4)+_0x10a698+'\x20'+y[_0x10a698][_0x510208(0x181)]('\x20')+'\x20…');const _0x34af0d=await R(_0x10a698,y[_0x10a698]);_0x3ae9ac['push'](_0x34af0d),_0x34af0d[_0x510208(0x18b)]?_0x2a135b[_0x510208(0x1db)](_0x10a698+'\x20超时(30s)已终止'):_0x24bb5d['AFuMI'](0x0,_0x34af0d[_0x510208(0xdd)])?_0x2a135b['ok'](_0x10a698+_0x510208(0xc6)+_0x34af0d[_0x510208(0x112)]+'ms'):_0x2a135b[_0x510208(0x1d6)](_0x10a698+_0x510208(0x111)+(_0x34af0d['exit_code']??'ERR')+'\x20/\x20'+_0x34af0d[_0x510208(0x112)]+'ms');}}}_0x2a135b['step'](_0x510208(0x103));const _0x41e035=(function(){const _0x336ab1=_0x510208,_0x2aa4f8=new Date(),_0x314cee=_0xedbcf6=>String(_0xedbcf6)[_0x336ab1(0xb8)](0x2,'0');return''+_0x2aa4f8['getFullYear']()+_0x24bb5d[_0x336ab1(0x186)](_0x314cee,_0x24bb5d['hfgrc'](_0x2aa4f8[_0x336ab1(0x1a7)](),0x1))+_0x24bb5d[_0x336ab1(0x147)](_0x314cee,_0x2aa4f8['getDate']())+'T'+_0x24bb5d[_0x336ab1(0x1fd)](_0x314cee,_0x2aa4f8[_0x336ab1(0x10f)]())+_0x24bb5d[_0x336ab1(0x102)](_0x314cee,_0x2aa4f8[_0x336ab1(0x157)]())+_0x314cee(_0x2aa4f8[_0x336ab1(0x1dd)]());}()),_0x1ee621=(function(){const _0xbfc33b=_0x510208,_0x256cdc=[];for(const _0x4da2db of Y){const _0x29cbad=P(_0x4da2db);if(!_0x24bb5d['gSqBs'](D,_0x29cbad))continue;const _0x32fd12=_0x24bb5d[_0xbfc33b(0xc1)](q,_0x4da2db[_0xbfc33b(0xf3)]),_0x3fe8b1=_0x24bb5d[_0xbfc33b(0x16f)](M,_0x29cbad)['filter'](_0xbcce60=>_0x32fd12[_0xbfc33b(0xee)](_0xbcce60))[_0xbfc33b(0x19c)](_0x2790d9=>{const _0x3c0e14=_0xbfc33b,_0x483438=_0x58f3ca[_0x3c0e14(0x181)](_0x29cbad,_0x2790d9);let _0x111584=0x0;try{_0x111584=_0x4189a9['statSync'](_0x483438)[_0x3c0e14(0x164)];}catch{return null;}return{'rel':_0x2790d9,'full':_0x483438,'mtimeMs':_0x111584};})[_0xbfc33b(0x1b8)](Boolean)[_0xbfc33b(0x20e)]((_0x4c40f1,_0x4a9e0c)=>_0x4a9e0c[_0xbfc33b(0x164)]-_0x4c40f1[_0xbfc33b(0x164)]);for(const _0xbb1813 of _0x3fe8b1['slice'](0x0,0x3)){const _0x598837=Z(_0xbb1813[_0xbfc33b(0xda)],0x10000);_0x24bb5d['cnNRI'](null,_0x598837)&&_0x256cdc['push']({'cli':_0x4da2db['cli'],'file':_0xbb1813[_0xbfc33b(0x128)],'name':_0x4da2db[_0xbfc33b(0xd2)]+'/'+_0xbb1813[_0xbfc33b(0x128)],'content':redact(_0x598837),'size':_0x598837[_0xbfc33b(0xf0)]});}}return _0x256cdc;}());_0x2a135b[_0x510208(0x133)](_0x24bb5d[_0x510208(0x13c)](_0x1ee621[_0x510208(0xf0)],0x0)?_0x510208(0x155)+_0x1ee621[_0x510208(0xf0)]+'\x20个文件(每文件尾部\x2064KB,已脱敏)':_0x24bb5d['KHFDE']);const _0x16fd36=_0x2ae818[_0x510208(0x19c)](_0x5b2dd0=>JSON[_0x510208(0x20d)]({'model':_0x5b2dd0[_0x510208(0x12d)],'request_id':_0x5b2dd0[_0x510208(0xe9)]??null,'status':_0x5b2dd0[_0x510208(0x18f)]??null,'ttfb_ms':_0x5b2dd0[_0x510208(0x1b1)]??null,'total_ms':_0x5b2dd0[_0x510208(0x1f9)]??null,'error':_0x5b2dd0[_0x510208(0xd0)]?redact(_0x5b2dd0[_0x510208(0xd0)]):null,'response_preview':_0x5b2dd0[_0x510208(0x1d2)]?redact(_0x5b2dd0['response_preview']):''})),_0x244237=_0x3ae9ac[_0x510208(0x19c)](_0x39c69d=>JSON[_0x510208(0x20d)](_0x39c69d)),_0x2a7e47=[];for(const _0x5a19bf of h){let _0x4ecb48;try{_0x4ecb48=_0x4189a9[_0x510208(0x1e9)](_0x24bb5d[_0x510208(0x185)](P,_0x5a19bf),_0x24bb5d[_0x510208(0x1c5)]);}catch{continue;}_0x2a7e47[_0x510208(0x100)]({'name':F(_0x5a19bf[_0x510208(0x1d8)])+_0x510208(0xd5),'content':O(_0x4ecb48)});}const _0x1bad69={'tool_version':_,'generated_at':new Date()[_0x510208(0x118)](),'api_base':_0x23f674,'credential':{'source':_0x7c04a3['source'],'key_redacted':_0x24bb5d[_0x510208(0xe1)](S,_0x7c04a3[_0x510208(0x1da)])},'config_source':_0x54928a[_0x510208(0x193)],'http_tests':_0x2ae818[_0x510208(0x19c)](_0x21ba56=>({'model':_0x21ba56[_0x510208(0x12d)],'status':_0x21ba56['status']??null,'verdict':_0x54928a[_0x510208(0x120)][_0x21ba56[_0x510208(0xd4)]],'ttfb_ms':_0x21ba56['ttfb_ms']??null,'total_ms':_0x21ba56[_0x510208(0x1f9)]??null,'request_id':_0x21ba56[_0x510208(0xe9)]??null})),'cli_tests':_0x3ae9ac[_0x510208(0x19c)](_0x17c935=>({'cli':_0x17c935[_0x510208(0xd2)],'exit_code':_0x17c935[_0x510208(0xdd)],'verdict':0x0!==_0x17c935[_0x510208(0xdd)]||_0x17c935[_0x510208(0x18b)]?_0x510208(0x1d6):'ok'})),'findings':_0x132703,'log_files':_0x1ee621[_0x510208(0x19c)](_0x3e9c38=>({'cli':_0x3e9c38[_0x510208(0xd2)],'file':_0x3e9c38[_0x510208(0xe7)],'size':_0x3e9c38[_0x510208(0x1b5)]})),'zip_path':''},_0xf738e7={'generated_at':_0x1bad69[_0x510208(0x1e6)],'tool_version':_,..._0x3ef6e6},_0x3156d7=function({stamp:_0x54acd0,summary:_0x1468a1,envJson:_0x36c913,httpLines:_0x3cf4d2,cliLines:_0x1dde13,configCopies:_0x2c7ea2,logTails:_0x5cde02,outDir:_0x3a784f}){const _0x2469f2=_0x510208,_0x27de38=_0x2469f2(0x11e)+_0x54acd0,_0xda12ba=_0x27de38+_0x2469f2(0x1e0),_0x122087={[_0x27de38+'/summary.json']:_0x420e62(JSON['stringify'](_0x1468a1,null,0x2)),[_0x27de38+_0x2469f2(0x1bc)]:_0x24bb5d[_0x2469f2(0xc1)](_0x420e62,JSON[_0x2469f2(0x20d)](_0x36c913,null,0x2)),[_0x27de38+_0x2469f2(0xc9)]:_0x24bb5d[_0x2469f2(0x186)](_0x420e62,_0x24bb5d[_0x2469f2(0xcb)](X,_0x3cf4d2)),[_0x27de38+_0x2469f2(0x190)]:_0x24bb5d[_0x2469f2(0xb7)](_0x420e62,_0x24bb5d['iGutu'](X,_0x1dde13)),[_0x27de38+_0x2469f2(0xfe)]:_0x24bb5d['Omjdj'](_0x420e62,_0x24bb5d[_0x2469f2(0x186)](J,{'summary':_0x1468a1,'modelCount':_0x1468a1[_0x2469f2(0x135)][_0x2469f2(0xf0)]}))};for(const _0x203145 of _0x2c7ea2)_0x122087[_0x27de38+_0x2469f2(0xe5)+_0x203145['name']]=_0x420e62(_0x203145[_0x2469f2(0x149)]);for(const _0x2aa623 of _0x5cde02)_0x122087[_0x27de38+'/logs/'+_0x2aa623[_0x2469f2(0x17a)]]=_0x24bb5d['DhxTY'](_0x420e62,_0x2aa623[_0x2469f2(0x149)]);const _0x21bf58=_0x3a784f||process['cwd'](),_0x705a13=_0x58f3ca['join'](_0x21bf58,_0xda12ba);try{_0x4189a9[_0x2469f2(0xea)](_0x21bf58,{'recursive':!0x0}),_0x4189a9[_0x2469f2(0x1e4)](_0x705a13,Buffer[_0x2469f2(0x196)](_0x2caba9(_0x122087)));}catch(_0x5c0b47){throw new Error(_0x2469f2(0x113)+_0x705a13+'):'+_0x5c0b47['message']);}return _0x705a13;}({'stamp':_0x41e035,'summary':{..._0x1bad69,'zip_path':G(_0x41e035,_0x5594c4[_0x510208(0x114)])},'envJson':_0xf738e7,'httpLines':_0x16fd36,'cliLines':_0x244237,'configCopies':_0x2a7e47,'logTails':_0x1ee621,'outDir':_0x5594c4[_0x510208(0x114)]});_0x1bad69[_0x510208(0x174)]=_0x3156d7;const _0x5eaa72=_0x2ae818['filter'](_0x82ea14=>'ok'===_0x82ea14[_0x510208(0xd4)])[_0x510208(0xf0)],_0x5d6a7=_0x2ae818[_0x510208(0x1b8)](_0x189b7f=>'fail'===_0x189b7f['code'])[_0x510208(0xf0)];return _0x2a135b['ok'](_0x510208(0x204)+_0x3156d7),_0x2a135b[_0x510208(0x133)]('HTTP\x20直测\x20'+_0x2ae818[_0x510208(0xf0)]+_0x510208(0x197)+_0x5eaa72+_0x510208(0x1f6)+_0x24bb5d['DXFoF'](_0x24bb5d['DXFoF'](_0x2ae818['length'],_0x5eaa72),_0x5d6a7)+'\x20/\x20失败\x20'+_0x5d6a7+');CLI\x20实测\x20'+_0x3ae9ac['length']+_0x510208(0x123)),{'zipPath':_0x3156d7,'summary':_0x1bad69};}
@@ -1 +1 @@
1
- (function(_0x4344f0,_0x2c047b){const _0x2f5e43=_0x7858,_0x473e6e=_0x4344f0();while(!![]){try{const _0x1e4bfc=parseInt(_0x2f5e43(0x190))/0x1+parseInt(_0x2f5e43(0x196))/0x2+-parseInt(_0x2f5e43(0x1ab))/0x3*(parseInt(_0x2f5e43(0x192))/0x4)+-parseInt(_0x2f5e43(0x1ad))/0x5+-parseInt(_0x2f5e43(0x18a))/0x6*(parseInt(_0x2f5e43(0x191))/0x7)+parseInt(_0x2f5e43(0x1b1))/0x8+parseInt(_0x2f5e43(0x1a2))/0x9;if(_0x1e4bfc===_0x2c047b)break;else _0x473e6e['push'](_0x473e6e['shift']());}catch(_0x14d516){_0x473e6e['push'](_0x473e6e['shift']());}}}(_0x3b49,0x46e81));import{spawnSync as _0x3be955}from'node:child_process';import{detectInstalled as _0x24d0cf}from'./detect.mjs';import{confirm as _0xa18aa5}from'./prompt.mjs';export function installCLI(_0x28f9f0,_0x288182={}){const _0x3e56f7=_0x7858,_0x58f140={'RGZzs':_0x3e56f7(0x1a8),'aiBIG':_0x3e56f7(0x1af),'oybMp':'win32','OPpko':_0x3e56f7(0x1a3),'GhXku':function(_0x4bc7b5,_0x23c8dd,_0x343cbd,_0x5677c7){return _0x4bc7b5(_0x23c8dd,_0x343cbd,_0x5677c7);},'QyCfB':_0x3e56f7(0x193),'uhEDC':_0x3e56f7(0x1aa),'zBGhC':function(_0x54123e,_0x4d436e){return _0x54123e===_0x4d436e;}};if(!_0x28f9f0||!_0x28f9f0['installPackage'])return{'ok':!0x1,'skipped':!0x0,'reason':_0x58f140[_0x3e56f7(0x19a)]};const _0x521f39=_0x28f9f0[_0x3e56f7(0x19f)],_0x4dfcde=_0x3e56f7(0x186)+_0x521f39;if(_0x288182[_0x3e56f7(0x187)])return console[_0x3e56f7(0x1b0)](_0x3e56f7(0x198)+_0x4dfcde+_0x3e56f7(0x185)),{'ok':!0x0,'skipped':!0x0,'reason':_0x58f140['aiBIG']};console[_0x3e56f7(0x1b0)](_0x3e56f7(0x18d)+_0x4dfcde+'…');try{const _0x4e2aac=_0x58f140[_0x3e56f7(0x19e)]===process[_0x3e56f7(0x1a1)],_0x519168=_0x4e2aac?process['env'][_0x3e56f7(0x19c)]||'cmd.exe':_0x58f140[_0x3e56f7(0x18e)],_0x47702f=_0x58f140[_0x3e56f7(0x195)](_0x3be955,_0x519168,_0x4e2aac?['/c',_0x3e56f7(0x1a3),_0x58f140[_0x3e56f7(0x1a9)],'-g',_0x521f39]:[_0x58f140[_0x3e56f7(0x1a9)],'-g',_0x521f39],{'stdio':_0x58f140[_0x3e56f7(0x182)]});return _0x47702f[_0x3e56f7(0x188)]?{'ok':!0x1,'error':_0x47702f[_0x3e56f7(0x188)][_0x3e56f7(0x1ae)]}:_0x58f140['zBGhC'](0x0,_0x47702f[_0x3e56f7(0x181)])?{'ok':!0x0}:{'ok':!0x1,'error':_0x3e56f7(0x1a6)+_0x47702f[_0x3e56f7(0x181)]};}catch(_0x5b3b59){return{'ok':!0x1,'error':_0x5b3b59[_0x3e56f7(0x1ae)]};}}export async function ensureInstalled(_0x58d98f,_0x7b68f4={}){const _0x51d5c9=_0x7858,_0xba03f1={'BkqIf':_0x51d5c9(0x189),'hXhZc':function(_0x3be68a,_0x2b3217,_0x4c13a9){return _0x3be68a(_0x2b3217,_0x4c13a9);},'QkKqA':_0x51d5c9(0x1af),'Fiutu':function(_0x27975f,_0x409f00){return _0x27975f===_0x409f00;},'rkHlG':function(_0x553cc3,_0x511cb5,_0x436655){return _0x553cc3(_0x511cb5,_0x436655);},'uGrnS':_0x51d5c9(0x184),'cgOCW':function(_0x5c4cb8,_0x39c2ba,_0x5a9be8){return _0x5c4cb8(_0x39c2ba,_0x5a9be8);},'Wanzy':function(_0x432873,_0x4c0626){return _0x432873(_0x4c0626);}};if(!_0x58d98f||!_0x58d98f[_0x51d5c9(0x19f)])return{'installed':!0x1,'skipped':!0x0,'reason':_0xba03f1[_0x51d5c9(0x18f)]};const _0x170070=_0x58d98f[_0x51d5c9(0x199)]||_0x58d98f[_0x51d5c9(0x19f)][_0x51d5c9(0x1a4)]('/')[_0x51d5c9(0x1a7)](),_0x1eaa70=_0x24d0cf(_0x170070);if(_0x1eaa70[_0x51d5c9(0x197)])return{'installed':!0x0,'version':_0x1eaa70['version']};const {dryRun:_0xe1f67c,autoInstall:_0x4cb68e}=_0x7b68f4;if(_0xe1f67c)return{'installed':!0x1,'skipped':!0x0,'reason':_0xba03f1['hXhZc'](installCLI,_0x58d98f,{'dryRun':!0x0})[_0x51d5c9(0x19b)]||_0xba03f1['QkKqA']};let _0x4987bd=_0xba03f1[_0x51d5c9(0x1ac)](!0x0,_0x4cb68e);if(_0x4987bd||(_0x4987bd=await _0xba03f1[_0x51d5c9(0x183)](_0xa18aa5,_0x51d5c9(0x19d)+(_0x58d98f['name']||_0x170070)+_0x51d5c9(0x194)+_0x170070+'),是否现在安装?\x0a\x20\x20运行:'+(_0x58d98f[_0x51d5c9(0x18b)]||_0x51d5c9(0x186)+_0x58d98f[_0x51d5c9(0x19f)]),{'defaultValue':!0x0})),!_0x4987bd)return{'installed':!0x1,'skipped':!0x0,'reason':_0xba03f1[_0x51d5c9(0x18c)]};const _0x1e7762=_0xba03f1['cgOCW'](installCLI,_0x58d98f,{'dryRun':!0x1});if(_0x1e7762['ok']){const _0x233b21=_0xba03f1[_0x51d5c9(0x1a0)](_0x24d0cf,_0x170070);return{'installed':_0x233b21[_0x51d5c9(0x197)],'version':_0x233b21[_0x51d5c9(0x1a5)],'justInstalled':!0x0};}return{'installed':!0x1,'error':_0x1e7762['error']};}function _0x7858(_0x5d3fea,_0x2a8887){_0x5d3fea=_0x5d3fea-0x181;const _0x3b495d=_0x3b49();let _0x785861=_0x3b495d[_0x5d3fea];return _0x785861;}function _0x3b49(){const _0x474bb0=['npm\x20install\x20-g\x20','dryRun','error','no-meta','272664EJOSHv','installCmd','uGrnS','\x20\x20正在执行:','OPpko','BkqIf','410597PhsgCc','28fkmIAI','278996TjkicY','install','(命令\x20','GhXku','326880HLhPQR','installed','\x20\x20[试运行]\x20将运行:','detectBin','RGZzs','reason','COMSPEC','未检测到\x20','oybMp','installPackage','Wanzy','platform','6441831BPNaSV','npm','split','version','npm\x20exit\x20','pop','no-install-package','QyCfB','inherit','21RmjUVT','Fiutu','2676005cQaIhy','message','dry-run','log','1646856FRNgYv','status','uhEDC','rkHlG','user-declined','(不真实安装)'];_0x3b49=function(){return _0x474bb0;};return _0x3b49();}
1
+ function _0x111f(){const _0x4f124d=['npm\x20install\x20-g\x20','message','error','3766kpJlPy','installed','SjDzL','1692785SxKPBU','npm\x20exit\x20','CjTPh','install','platform','dry-run','log','win32','name','env','\x20\x20[试运行]\x20将运行:','(命令\x20','未检测到\x20','version','eAgOI','JoUpd','installCmd','9DNeSnR','no-install-package','278042kmCcSq','installPackage','COMSPEC','1463736nglyfg','18prcPmV','1vWOWbM','sTdch','14576dWTWYL','9326470GGWTwg','status','21492768KSnjAJ','oxxlo','),是否现在安装?\x0a\x20\x20运行:','npm','dryRun','(不真实安装)','NpZBw','66572UFMGjT'];_0x111f=function(){return _0x4f124d;};return _0x111f();}(function(_0x4169ab,_0x230f11){const _0x253a78=_0x144f,_0x494b8f=_0x4169ab();while(!![]){try{const _0x36d6d9=parseInt(_0x253a78(0x18d))/0x1*(parseInt(_0x253a78(0x188))/0x2)+-parseInt(_0x253a78(0x18b))/0x3+parseInt(_0x253a78(0x199))/0x4+parseInt(_0x253a78(0x1a0))/0x5*(-parseInt(_0x253a78(0x18c))/0x6)+-parseInt(_0x253a78(0x19d))/0x7*(parseInt(_0x253a78(0x18f))/0x8)+parseInt(_0x253a78(0x186))/0x9*(parseInt(_0x253a78(0x190))/0xa)+parseInt(_0x253a78(0x192))/0xb;if(_0x36d6d9===_0x230f11)break;else _0x494b8f['push'](_0x494b8f['shift']());}catch(_0x58de2f){_0x494b8f['push'](_0x494b8f['shift']());}}}(_0x111f,0x8852c));import{spawnSync as _0x388690}from'node:child_process';import{detectInstalled as _0x975fc8}from'./detect.mjs';import{confirm as _0x39d075}from'./prompt.mjs';export function installCLI(_0x303737,_0x1139aa={}){const _0x153350=_0x144f,_0xb71568={'KFmdR':_0x153350(0x187),'NpZBw':'dry-run','cZkFe':_0x153350(0x17c),'JoUpd':_0x153350(0x195),'SjDzL':'install','KhcMw':'inherit','oxxlo':function(_0x90cf95,_0x18f2b7){return _0x90cf95===_0x18f2b7;}};if(!_0x303737||!_0x303737['installPackage'])return{'ok':!0x1,'skipped':!0x0,'reason':_0xb71568['KFmdR']};const _0x3acf05=_0x303737['installPackage'],_0x3c487f='npm\x20install\x20-g\x20'+_0x3acf05;if(_0x1139aa[_0x153350(0x196)])return console[_0x153350(0x1a6)](_0x153350(0x17f)+_0x3c487f+_0x153350(0x197)),{'ok':!0x0,'skipped':!0x0,'reason':_0xb71568[_0x153350(0x198)]};console[_0x153350(0x1a6)]('\x20\x20正在执行:'+_0x3c487f+'…');try{const _0x1031e7=_0xb71568['cZkFe']===process[_0x153350(0x1a4)],_0x21badd=_0x1031e7?process[_0x153350(0x17e)][_0x153350(0x18a)]||'cmd.exe':_0xb71568[_0x153350(0x184)],_0x20e94a=_0x388690(_0x21badd,_0x1031e7?['/c',_0x153350(0x195),_0xb71568[_0x153350(0x19f)],'-g',_0x3acf05]:[_0x153350(0x1a3),'-g',_0x3acf05],{'stdio':_0xb71568['KhcMw']});return _0x20e94a[_0x153350(0x19c)]?{'ok':!0x1,'error':_0x20e94a[_0x153350(0x19c)][_0x153350(0x19b)]}:_0xb71568[_0x153350(0x193)](0x0,_0x20e94a['status'])?{'ok':!0x0}:{'ok':!0x1,'error':_0x153350(0x1a1)+_0x20e94a[_0x153350(0x191)]};}catch(_0x5a484a){return{'ok':!0x1,'error':_0x5a484a[_0x153350(0x19b)]};}}function _0x144f(_0x1950b7,_0x61a8b5){_0x1950b7=_0x1950b7-0x17c;const _0x111ff5=_0x111f();let _0x144ff6=_0x111ff5[_0x1950b7];return _0x144ff6;}export async function ensureInstalled(_0x3f4a46,_0x34c9d9={}){const _0x2345bd=_0x144f,_0x17ed9e={'sTdch':'no-meta','CRDwq':function(_0xdb9f72,_0x363cd3){return _0xdb9f72(_0x363cd3);},'frURO':_0x2345bd(0x1a5),'eAgOI':function(_0xd95648,_0x260669){return _0xd95648===_0x260669;},'CjTPh':function(_0x1de896,_0xe85644,_0x329d8c){return _0x1de896(_0xe85644,_0x329d8c);}};if(!_0x3f4a46||!_0x3f4a46[_0x2345bd(0x189)])return{'installed':!0x1,'skipped':!0x0,'reason':_0x17ed9e[_0x2345bd(0x18e)]};const _0x59da5a=_0x3f4a46['detectBin']||_0x3f4a46[_0x2345bd(0x189)]['split']('/')['pop'](),_0x41bbce=_0x17ed9e['CRDwq'](_0x975fc8,_0x59da5a);if(_0x41bbce[_0x2345bd(0x19e)])return{'installed':!0x0,'version':_0x41bbce[_0x2345bd(0x182)]};const {dryRun:_0x144b7c,autoInstall:_0x5da1e3}=_0x34c9d9;if(_0x144b7c)return{'installed':!0x1,'skipped':!0x0,'reason':installCLI(_0x3f4a46,{'dryRun':!0x0})['reason']||_0x17ed9e['frURO']};let _0x54c0a7=_0x17ed9e[_0x2345bd(0x183)](!0x0,_0x5da1e3);if(_0x54c0a7||(_0x54c0a7=await _0x17ed9e[_0x2345bd(0x1a2)](_0x39d075,_0x2345bd(0x181)+(_0x3f4a46[_0x2345bd(0x17d)]||_0x59da5a)+_0x2345bd(0x180)+_0x59da5a+_0x2345bd(0x194)+(_0x3f4a46[_0x2345bd(0x185)]||_0x2345bd(0x19a)+_0x3f4a46[_0x2345bd(0x189)]),{'defaultValue':!0x0})),!_0x54c0a7)return{'installed':!0x1,'skipped':!0x0,'reason':'user-declined'};const _0x74edef=_0x17ed9e[_0x2345bd(0x1a2)](installCLI,_0x3f4a46,{'dryRun':!0x1});if(_0x74edef['ok']){const _0x496203=_0x975fc8(_0x59da5a);return{'installed':_0x496203[_0x2345bd(0x19e)],'version':_0x496203[_0x2345bd(0x182)],'justInstalled':!0x0};}return{'installed':!0x1,'error':_0x74edef['error']};}
@@ -1 +1 @@
1
- const _0x1b1bf7=_0x8d99;(function(_0xed01c6,_0xd2b01){const _0x52b7e0=_0x8d99,_0xa37778=_0xed01c6();while(!![]){try{const _0x1a53da=-parseInt(_0x52b7e0(0x109))/0x1+parseInt(_0x52b7e0(0x101))/0x2+-parseInt(_0x52b7e0(0x104))/0x3+parseInt(_0x52b7e0(0xfb))/0x4*(-parseInt(_0x52b7e0(0x100))/0x5)+parseInt(_0x52b7e0(0x110))/0x6+parseInt(_0x52b7e0(0x122))/0x7*(parseInt(_0x52b7e0(0xf9))/0x8)+parseInt(_0x52b7e0(0x114))/0x9;if(_0x1a53da===_0xd2b01)break;else _0xa37778['push'](_0xa37778['shift']());}catch(_0x1dc891){_0xa37778['push'](_0xa37778['shift']());}}}(_0x279e,0xeb9c9));function _0x279e(){const _0x47cf56=['Codex\x20CLI\x20(WebSocket)','~/.codex/auth.json','~/.gemini/settings.json','项目根放\x20CLAUDE.md\x20让\x20Claude\x20了解你的代码库','Claude\x20Code','gemini','OpenCode','\x20\x20claude\x20mcp\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\x20\x20\x20\x20\x20管理\x20MCP\x20服务器','@google/gemini-cli','Codex\x20CLI','@openai/codex','opencode','join','173894gsAHqG','\x20\x20claude\x20-c\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\x20\x20\x20\x20\x20\x20继续最近会话','claude','运行\x20`gemini`\x20开始;`gemini\x20--help`\x20查看选项;在项目根放\x20GEMINI.md\x20让\x20Gemini\x20了解你的代码库','8LtPogy','\x20\x20claude\x20--dangerously-skip-permissions\x20\x20\x20\x20\x20\x20\x20\x20跳过所有权限提示(=bypassPermissions,谨慎用)','2346140GWrmCK','\x20\x20claude\x20-p\x20\x22问题\x22\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非交互模式(输出后退出,适合脚本)','权限模式(Shift+Tab\x20切换):default\x20/\x20acceptEdits\x20/\x20plan\x20/\x20auto\x20/\x20bypassPermissions','\x20\x20codex\x20--yolo\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20全跳过(无\x20sandbox\x20无\x20approval,仅信任仓库)','\x20\x20codex\x20--full-auto\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\x20\x20\x20\x20\x20\x20\x20\x20\x20全自动(sandbox\x20内自动批准,推荐)','5ZKGacU','1888294namWCn','codex','npm\x20install\x20-g\x20@google/gemini-cli','1531398FIcpcp','\x20\x20claude\x20\x22你的问题\x22\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\x20claude\x20--model\x20sonnet\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20指定模型(sonnet/opus/haiku/fable)','运行\x20`opencode`\x20开始;`opencode\x20--help`\x20查看选项;在项目根放\x20AGENTS.md\x20让\x20OpenCode\x20了解你的代码库','\x20\x20codex\x20--help\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20查看所有选项','1563165SXokcm','\x20\x20claude\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\x20\x20\x20\x20\x20\x20\x20\x20\x20交互模式','~/.config/opencode/opencode.json','~/.claude.json','@anthropic-ai/claude-code','\x20\x20codex\x20--sandbox\x20read-only\x20--ask-for-approval\x20never\x20只读(最安全)','\x20\x20claude\x20update\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\x20\x20更新到最新版','9205806NXMMEU','权限模式(默认每步确认):','npm\x20install\x20-g\x20opencode-ai','npm\x20install\x20-g\x20@openai/codex','10097469yenRoR'];_0x279e=function(){return _0x47cf56;};return _0x279e();}function _0x8d99(_0x20c9ae,_0x32bcd3){_0x20c9ae=_0x20c9ae-0xf8;const _0x279e34=_0x279e();let _0x8d995e=_0x279e34[_0x20c9ae];return _0x8d995e;}export const CLI_META={'codex':{'name':_0x1b1bf7(0x11e),'installPackage':'@openai/codex','installCmd':'npm\x20install\x20-g\x20@openai/codex','startCmd':_0x1b1bf7(0x102),'detectBin':'codex','configFiles':['~/.codex/config.toml','~/.codex/auth.json'],'usage':[_0x1b1bf7(0x111),_0x1b1bf7(0xff),'\x20\x20codex\x20--yolo\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20全跳过(无\x20sandbox\x20无\x20approval,仅信任仓库)',_0x1b1bf7(0x10e),_0x1b1bf7(0x108),'项目根放\x20AGENTS.md\x20让\x20Codex\x20了解你的代码库'][_0x1b1bf7(0x121)]('\x0a'),'isPrimary':!0x0},'codex-ws':{'name':_0x1b1bf7(0x115),'installPackage':_0x1b1bf7(0x11f),'installCmd':_0x1b1bf7(0x113),'startCmd':_0x1b1bf7(0x102),'detectBin':_0x1b1bf7(0x102),'configFiles':['~/.codex/config.toml',_0x1b1bf7(0x116)],'usage':['权限模式(WebSocket\x20模式由服务端配置激活,默认每步确认):',_0x1b1bf7(0xff),_0x1b1bf7(0xfe),_0x1b1bf7(0x10e),_0x1b1bf7(0x108)][_0x1b1bf7(0x121)]('\x0a'),'isPrimary':!0x1},'claude':{'name':_0x1b1bf7(0x119),'installPackage':_0x1b1bf7(0x10d),'installCmd':'npm\x20install\x20-g\x20@anthropic-ai/claude-code','startCmd':_0x1b1bf7(0x124),'detectBin':_0x1b1bf7(0x124),'configFiles':['~/.claude/',_0x1b1bf7(0x10c)],'usage':['常用命令:',_0x1b1bf7(0x10a),_0x1b1bf7(0x105),_0x1b1bf7(0xfc),_0x1b1bf7(0x123),'\x20\x20claude\x20-r\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\x20\x20\x20\x20\x20\x20恢复历史会话(选择器)',_0x1b1bf7(0x106),_0x1b1bf7(0x11c),'\x20\x20claude\x20doctor\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\x20\x20诊断安装/配置',_0x1b1bf7(0x10f),_0x1b1bf7(0xfd),_0x1b1bf7(0xfa),_0x1b1bf7(0x118)][_0x1b1bf7(0x121)]('\x0a'),'isPrimary':!0x0},'gemini-cli':{'name':'Gemini\x20CLI','installPackage':_0x1b1bf7(0x11d),'installCmd':_0x1b1bf7(0x103),'startCmd':_0x1b1bf7(0x11a),'detectBin':_0x1b1bf7(0x11a),'configFiles':[_0x1b1bf7(0x117)],'usage':_0x1b1bf7(0xf8),'isPrimary':!0x0},'opencode':{'name':_0x1b1bf7(0x11b),'installPackage':'opencode-ai','installCmd':_0x1b1bf7(0x112),'startCmd':'opencode','detectBin':_0x1b1bf7(0x120),'configFiles':[_0x1b1bf7(0x10b),'opencode.json'],'usage':_0x1b1bf7(0x107),'isPrimary':!0x1}};export function getCliMeta(_0x58cfef){return CLI_META[_0x58cfef]||null;}export function isDefaultSelected(_0x3ea92c){const _0xca1d7e=CLI_META[_0x3ea92c];return!_0xca1d7e||_0xca1d7e['isPrimary'];}
1
+ const _0x1dbcd1=_0x4eb4;(function(_0x5ec5f7,_0x47a886){const _0x1b46c1=_0x4eb4,_0x183441=_0x5ec5f7();while(!![]){try{const _0x1c27e0=-parseInt(_0x1b46c1(0x180))/0x1*(parseInt(_0x1b46c1(0x194))/0x2)+parseInt(_0x1b46c1(0x17f))/0x3+-parseInt(_0x1b46c1(0x177))/0x4*(parseInt(_0x1b46c1(0x181))/0x5)+-parseInt(_0x1b46c1(0x197))/0x6*(parseInt(_0x1b46c1(0x17c))/0x7)+-parseInt(_0x1b46c1(0x195))/0x8+-parseInt(_0x1b46c1(0x187))/0x9+parseInt(_0x1b46c1(0x192))/0xa;if(_0x1c27e0===_0x47a886)break;else _0x183441['push'](_0x183441['shift']());}catch(_0x26187b){_0x183441['push'](_0x183441['shift']());}}}(_0x504a,0x29aa5));export const CLI_META={'codex':{'name':_0x1dbcd1(0x18c),'installPackage':'@openai/codex','installCmd':_0x1dbcd1(0x171),'startCmd':_0x1dbcd1(0x199),'detectBin':_0x1dbcd1(0x199),'configFiles':[_0x1dbcd1(0x183),'~/.codex/auth.json'],'usage':[_0x1dbcd1(0x17d),_0x1dbcd1(0x184),_0x1dbcd1(0x198),_0x1dbcd1(0x189),_0x1dbcd1(0x196),_0x1dbcd1(0x175)][_0x1dbcd1(0x17e)]('\x0a'),'isPrimary':!0x0},'codex-ws':{'name':_0x1dbcd1(0x18e),'installPackage':_0x1dbcd1(0x178),'installCmd':_0x1dbcd1(0x171),'startCmd':_0x1dbcd1(0x199),'detectBin':_0x1dbcd1(0x199),'configFiles':[_0x1dbcd1(0x183),_0x1dbcd1(0x19b)],'usage':[_0x1dbcd1(0x174),_0x1dbcd1(0x184),_0x1dbcd1(0x198),_0x1dbcd1(0x189),_0x1dbcd1(0x196)][_0x1dbcd1(0x17e)]('\x0a'),'isPrimary':!0x1},'claude':{'name':_0x1dbcd1(0x185),'installPackage':_0x1dbcd1(0x193),'installCmd':'npm\x20install\x20-g\x20@anthropic-ai/claude-code','startCmd':_0x1dbcd1(0x179),'detectBin':_0x1dbcd1(0x179),'configFiles':[_0x1dbcd1(0x19a),'~/.claude.json'],'usage':['常用命令:',_0x1dbcd1(0x19d),_0x1dbcd1(0x17a),_0x1dbcd1(0x18a),_0x1dbcd1(0x182),_0x1dbcd1(0x173),'\x20\x20claude\x20--model\x20sonnet\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20指定模型(sonnet/opus/haiku/fable)','\x20\x20claude\x20mcp\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\x20\x20\x20\x20\x20管理\x20MCP\x20服务器','\x20\x20claude\x20doctor\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\x20\x20诊断安装/配置',_0x1dbcd1(0x18f),_0x1dbcd1(0x172),_0x1dbcd1(0x18d),_0x1dbcd1(0x19e)]['join']('\x0a'),'isPrimary':!0x0},'gemini-cli':{'name':_0x1dbcd1(0x18b),'installPackage':_0x1dbcd1(0x176),'installCmd':_0x1dbcd1(0x191),'startCmd':'gemini','detectBin':_0x1dbcd1(0x16d),'configFiles':[_0x1dbcd1(0x17b)],'usage':_0x1dbcd1(0x16f),'isPrimary':!0x0},'opencode':{'name':_0x1dbcd1(0x186),'installPackage':'opencode-ai','installCmd':'npm\x20install\x20-g\x20opencode-ai','startCmd':'opencode','detectBin':_0x1dbcd1(0x188),'configFiles':[_0x1dbcd1(0x16e),_0x1dbcd1(0x170)],'usage':_0x1dbcd1(0x190),'isPrimary':!0x1}};function _0x504a(){const _0x4320f6=['gemini','~/.config/opencode/opencode.json','运行\x20`gemini`\x20开始;`gemini\x20--help`\x20查看选项;在项目根放\x20GEMINI.md\x20让\x20Gemini\x20了解你的代码库','opencode.json','npm\x20install\x20-g\x20@openai/codex','权限模式(Shift+Tab\x20切换):default\x20/\x20acceptEdits\x20/\x20plan\x20/\x20auto\x20/\x20bypassPermissions','\x20\x20claude\x20-r\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\x20\x20\x20\x20\x20\x20恢复历史会话(选择器)','权限模式(WebSocket\x20模式由服务端配置激活,默认每步确认):','项目根放\x20AGENTS.md\x20让\x20Codex\x20了解你的代码库','@google/gemini-cli','109108fzRaZb','@openai/codex','claude','\x20\x20claude\x20\x22你的问题\x22\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20带初始问题启动','~/.gemini/settings.json','695345ljeEcl','权限模式(默认每步确认):','join','466056dsKNIH','23201IcggKp','5eWHKgn','\x20\x20claude\x20-c\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\x20\x20\x20\x20\x20\x20继续最近会话','~/.codex/config.toml','\x20\x20codex\x20--full-auto\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\x20\x20\x20\x20\x20\x20\x20\x20\x20全自动(sandbox\x20内自动批准,推荐)','Claude\x20Code','OpenCode','3032478HIAofV','opencode','\x20\x20codex\x20--sandbox\x20read-only\x20--ask-for-approval\x20never\x20只读(最安全)','\x20\x20claude\x20-p\x20\x22问题\x22\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非交互模式(输出后退出,适合脚本)','Gemini\x20CLI','Codex\x20CLI','\x20\x20claude\x20--dangerously-skip-permissions\x20\x20\x20\x20\x20\x20\x20\x20跳过所有权限提示(=bypassPermissions,谨慎用)','Codex\x20CLI\x20(WebSocket)','\x20\x20claude\x20update\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\x20\x20更新到最新版','运行\x20`opencode`\x20开始;`opencode\x20--help`\x20查看选项;在项目根放\x20AGENTS.md\x20让\x20OpenCode\x20了解你的代码库','npm\x20install\x20-g\x20@google/gemini-cli','10182470TJaLDu','@anthropic-ai/claude-code','26gKBwby','1902168UsfOwy','\x20\x20codex\x20--help\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20查看所有选项','6ZotcOd','\x20\x20codex\x20--yolo\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\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20全跳过(无\x20sandbox\x20无\x20approval,仅信任仓库)','codex','~/.claude/','~/.codex/auth.json','isPrimary','\x20\x20claude\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\x20\x20\x20\x20\x20\x20\x20\x20\x20交互模式','项目根放\x20CLAUDE.md\x20让\x20Claude\x20了解你的代码库'];_0x504a=function(){return _0x4320f6;};return _0x504a();}export function getCliMeta(_0x2eb680){return CLI_META[_0x2eb680]||null;}function _0x4eb4(_0x4b3e5e,_0x89cc82){_0x4b3e5e=_0x4b3e5e-0x16d;const _0x504aa5=_0x504a();let _0x4eb427=_0x504aa5[_0x4b3e5e];return _0x4eb427;}export function isDefaultSelected(_0x38b80e){const _0x5b714d=_0x1dbcd1,_0x5815b6=CLI_META[_0x38b80e];return!_0x5815b6||_0x5815b6[_0x5b714d(0x19c)];}
package/dist/lib/pow.mjs CHANGED
@@ -1 +1 @@
1
- (function(_0x19a565,_0x11441e){const _0x34bffd=_0x3ea6,_0x5223f7=_0x19a565();while(!![]){try{const _0x514938=-parseInt(_0x34bffd(0x202))/0x1+-parseInt(_0x34bffd(0x1eb))/0x2*(-parseInt(_0x34bffd(0x1ec))/0x3)+parseInt(_0x34bffd(0x1ed))/0x4+-parseInt(_0x34bffd(0x206))/0x5+-parseInt(_0x34bffd(0x1e5))/0x6+parseInt(_0x34bffd(0x1db))/0x7*(-parseInt(_0x34bffd(0x207))/0x8)+parseInt(_0x34bffd(0x1e1))/0x9;if(_0x514938===_0x11441e)break;else _0x5223f7['push'](_0x5223f7['shift']());}catch(_0x451677){_0x5223f7['push'](_0x5223f7['shift']());}}}(_0x3935,0xbbced));function _0x3ea6(_0x217995,_0x1580ea){_0x217995=_0x217995-0x1db;const _0x3935a5=_0x3935();let _0x3ea6c7=_0x3935a5[_0x217995];return _0x3ea6c7;}import _0x5d47bd from'node:https';import _0x11010a from'node:http';function _0x3935(){const _0x5b09a5=['update','sEcQt','startsWith','30ksogEJ','105612PHOeNS','3815716QviZoM','https:','body','request','object','无效的\x20apiBase:','raw','hex','sha256','sgHbI','expires_at','jCzbe','PKRLA','data','jBgEH','xLtjJ','qGsEY','error','href','ykWLO','statusCode','1198185TgyDPD','dtSca','expiresAt','fTbHs','1641845vqZcOx','56Hqaqmk','RLqsT','concat','parse','application/json','XPKkZ','179767bpQTHY','protocol','PoW\x20challenge\x20响应非\x20JSON(HTTP\x20','push','timeout','end','15501852gAzVat','GET','message','repeat','4373010JJGRuN','digest','UloEn'];_0x3935=function(){return _0x5b09a5;};return _0x3935();}import _0x4c2f54 from'node:crypto';export function getChallenge({apiBase:_0x333148,deviceId:_0x293ca6}){const _0x49c099=_0x3ea6,_0x42fc7e={'gmVYI':_0x49c099(0x1fa),'jBgEH':'utf8','dtSca':function(_0x5e8a68,_0x39371c){return _0x5e8a68(_0x39371c);},'XPKkZ':function(_0x332e0c,_0x15c5f4){return _0x332e0c>=_0x15c5f4;},'dySuJ':function(_0x46293b,_0x3db277){return _0x46293b==_0x3db277;},'qGsEY':_0x49c099(0x1f1),'aJiuP':'/api/v1/cli/pow/challenge','TvHmA':function(_0x584082,_0x26057e){return _0x584082(_0x26057e);},'ukFsS':function(_0x14fa2d,_0x35ec41){return _0x14fa2d===_0x35ec41;},'jCzbe':_0x49c099(0x20b),'sgHbI':_0x49c099(0x1df)};return new Promise((_0x3f9293,_0x2b4035)=>{const _0x10d877=_0x49c099,_0x97c78e={'ykWLO':_0x42fc7e[_0x10d877(0x1fb)],'RLqsT':function(_0x4e9b9e,_0x17a4d7){const _0x595850=_0x10d877;return _0x42fc7e[_0x595850(0x203)](_0x4e9b9e,_0x17a4d7);},'sEcQt':function(_0x258d5c,_0x5c7137){const _0xa4a746=_0x10d877;return _0x42fc7e[_0xa4a746(0x20c)](_0x258d5c,_0x5c7137);},'fTbHs':function(_0x1f4d7f,_0x7646c1){return _0x42fc7e['dtSca'](_0x1f4d7f,_0x7646c1);},'UloEn':function(_0x501646,_0x2aed37){return _0x42fc7e['dySuJ'](_0x501646,_0x2aed37);},'xLtjJ':_0x42fc7e[_0x10d877(0x1fd)]};let _0x1d1be7;try{_0x1d1be7=new URL(_0x42fc7e['aJiuP'],_0x333148);}catch(_0x5b6e92){return void _0x42fc7e['TvHmA'](_0x2b4035,new Error(_0x10d877(0x1f2)+_0x333148+'('+_0x5b6e92['message']+')'));}const _0x23ee47=(_0x42fc7e['ukFsS'](_0x10d877(0x1ee),_0x1d1be7[_0x10d877(0x1dc)])?_0x5d47bd:_0x11010a)[_0x10d877(0x1f0)](_0x1d1be7,{'method':_0x10d877(0x1e2),'headers':{'X-Device-Id':_0x293ca6,'Accept':_0x42fc7e[_0x10d877(0x1f8)]},'timeout':0x7530},_0x4a3590=>{const _0x3b0dbe=_0x10d877,_0x45688a=[];_0x4a3590['on'](_0x42fc7e['gmVYI'],_0x4157bf=>_0x45688a[_0x3b0dbe(0x1de)](_0x4157bf)),_0x4a3590['on'](_0x3b0dbe(0x1e0),()=>{const _0x1b143f=_0x3b0dbe,_0x8ef12a=Buffer[_0x1b143f(0x209)](_0x45688a)['toString'](_0x97c78e[_0x1b143f(0x200)]);let _0x2a0c24;try{_0x2a0c24=_0x8ef12a?JSON[_0x1b143f(0x20a)](_0x8ef12a):{};}catch{const _0x5ba7b5=new Error(_0x1b143f(0x1dd)+_0x4a3590[_0x1b143f(0x201)]+'):'+_0x8ef12a['slice'](0x0,0xc8));return _0x5ba7b5['statusCode']=_0x4a3590[_0x1b143f(0x201)],_0x5ba7b5[_0x1b143f(0x1f3)]=_0x8ef12a,void _0x97c78e[_0x1b143f(0x208)](_0x2b4035,_0x5ba7b5);}if(_0x97c78e[_0x1b143f(0x1e9)](_0x4a3590['statusCode'],0xc8)&&_0x4a3590['statusCode']<0x12c)_0x97c78e[_0x1b143f(0x205)](_0x3f9293,{'challenge':_0x2a0c24['challenge'],'difficulty':_0x2a0c24['difficulty'],'expiresAt':_0x2a0c24[_0x1b143f(0x1f7)]||_0x2a0c24[_0x1b143f(0x204)]});else{const _0x131484=_0x2a0c24?.[_0x1b143f(0x1fe)],_0x4e2ffb=(_0x131484&&_0x97c78e[_0x1b143f(0x1e7)](_0x97c78e[_0x1b143f(0x1fc)],typeof _0x131484)?_0x131484[_0x1b143f(0x1e3)]:_0x131484)||_0x2a0c24?.[_0x1b143f(0x1e3)]||'HTTP\x20'+_0x4a3590[_0x1b143f(0x201)],_0x260807=new Error(_0x4e2ffb);_0x260807[_0x1b143f(0x201)]=_0x4a3590[_0x1b143f(0x201)],_0x260807[_0x1b143f(0x1ef)]=_0x2a0c24,_0x2b4035(_0x260807);}});});_0x23ee47['on'](_0x42fc7e[_0x10d877(0x1f6)],()=>{const _0x495c9d=_0x10d877;_0x23ee47['destroy'](new Error('PoW\x20challenge\x20请求超时(30s)—\x20'+_0x1d1be7[_0x495c9d(0x1ff)]));}),_0x23ee47['on'](_0x10d877(0x1fe),_0x2b4035),_0x23ee47['end']();});}export function solvePoW(_0x3875ba,_0x5cb5a8){const _0x59b38b=_0x3ea6,_0x220f9b={'PKRLA':_0x59b38b(0x1f5)},_0x116822='0'[_0x59b38b(0x1e4)](_0x5cb5a8);let _0x59e661=0x0;for(;;){if(_0x4c2f54['createHash'](_0x220f9b[_0x59b38b(0x1f9)])[_0x59b38b(0x1e8)](_0x3875ba+':'+_0x59e661)[_0x59b38b(0x1e6)](_0x59b38b(0x1f4))[_0x59b38b(0x1ea)](_0x116822))return String(_0x59e661);_0x59e661++;}}
1
+ (function(_0x5c4a97,_0x1bbcc1){const _0x444186=_0x1975,_0x52361a=_0x5c4a97();while(!![]){try{const _0x5624dd=-parseInt(_0x444186(0xb2))/0x1+-parseInt(_0x444186(0x8a))/0x2+parseInt(_0x444186(0x97))/0x3+parseInt(_0x444186(0xb9))/0x4+parseInt(_0x444186(0xb3))/0x5*(parseInt(_0x444186(0x9b))/0x6)+parseInt(_0x444186(0x8e))/0x7+-parseInt(_0x444186(0x8c))/0x8;if(_0x5624dd===_0x1bbcc1)break;else _0x52361a['push'](_0x52361a['shift']());}catch(_0xb6cd1f){_0x52361a['push'](_0x52361a['shift']());}}}(_0x333d,0x85b12));import _0x30da8d from'node:https';import _0x1eeced from'node:http';function _0x1975(_0x3c81c1,_0x5a3eb6){_0x3c81c1=_0x3c81c1-0x83;const _0x333d70=_0x333d();let _0x1975a5=_0x333d70[_0x3c81c1];return _0x1975a5;}function _0x333d(){const _0x43b13f=['/api/v1/cli/pow/challenge','850270UDxpjv','25OSkLdW','concat','VmqWs','statusCode','difficulty','YiXHE','2587024obIPev','HTTP\x20','message','startsWith','HusDo','zeUWX','request','href','OAmLa','KqkWB','parse','693330kKRqfb','nRqOB','10753024fnnEwP','challenge','7324352RuzlMW','DTVAm','cIjNb','error','dfrxJ','object','slice','body','haTai','2496804SrNKop','end','bUMfj','PoW\x20challenge\x20请求超时(30s)—\x20','675966XiTwle','GET','destroy','expires_at','sha256','OpjTA','BiFTh','update','PoW\x20challenge\x20响应非\x20JSON(HTTP\x20','LugYW','bHqRI','PBckC','raw','gsTTN','protocol','TAeyB','hex','createHash','无效的\x20apiBase:','push','ohkvA','vZAiV'];_0x333d=function(){return _0x43b13f;};return _0x333d();}import _0x2d32f9 from'node:crypto';export function getChallenge({apiBase:_0x154efc,deviceId:_0x148679}){const _0x3319b3=_0x1975,_0x3db59c={'nRqOB':function(_0x3afa67,_0x3f979c){return _0x3afa67(_0x3f979c);},'DTVAm':function(_0x2e56a3,_0x4c3182){return _0x2e56a3>=_0x4c3182;},'bHqRI':function(_0x151c41,_0x39a8a0){return _0x151c41<_0x39a8a0;},'TAeyB':_0x3319b3(0x93),'BiFTh':'data','haTai':_0x3319b3(0x98),'hmDIw':_0x3319b3(0xb1),'dfrxJ':function(_0x461d56,_0x59f55f){return _0x461d56===_0x59f55f;},'bUMfj':_0x3319b3(0x9c),'cIjNb':'application/json','gsTTN':'timeout','KqkWB':_0x3319b3(0x91)};return new Promise((_0x1c5476,_0x1c8dc5)=>{const _0x38a79c=_0x3319b3,_0x2f0883={'gHWms':'utf8','OAmLa':function(_0x128c85,_0x1ed71a){return _0x3db59c['nRqOB'](_0x128c85,_0x1ed71a);},'OpjTA':function(_0x206ac0,_0x2b15c4){const _0x1e47bb=_0x1975;return _0x3db59c[_0x1e47bb(0x8f)](_0x206ac0,_0x2b15c4);},'LugYW':function(_0x307cd9,_0xa050df){const _0x267c27=_0x1975;return _0x3db59c[_0x267c27(0xa5)](_0x307cd9,_0xa050df);},'PBckC':function(_0x210d09,_0x27c0c8){return _0x210d09(_0x27c0c8);},'zeUWX':_0x3db59c[_0x38a79c(0xaa)],'vZAiV':function(_0x215d1d,_0x45840e){const _0x357ef7=_0x38a79c;return _0x3db59c[_0x357ef7(0x8b)](_0x215d1d,_0x45840e);},'YiXHE':_0x3db59c[_0x38a79c(0xa1)],'ohkvA':_0x3db59c[_0x38a79c(0x96)]};let _0x7d4aac;try{_0x7d4aac=new URL(_0x3db59c['hmDIw'],_0x154efc);}catch(_0x4ca3ce){return void _0x3db59c[_0x38a79c(0x8b)](_0x1c8dc5,new Error(_0x38a79c(0xad)+_0x154efc+'('+_0x4ca3ce['message']+')'));}const _0x4ae6bb=(_0x3db59c[_0x38a79c(0x92)]('https:',_0x7d4aac[_0x38a79c(0xa9)])?_0x30da8d:_0x1eeced)[_0x38a79c(0x85)](_0x7d4aac,{'method':_0x3db59c[_0x38a79c(0x99)],'headers':{'X-Device-Id':_0x148679,'Accept':_0x3db59c[_0x38a79c(0x90)]},'timeout':0x7530},_0x37579b=>{const _0x47e8cc=_0x38a79c,_0x360e7f=[];_0x37579b['on'](_0x2f0883[_0x47e8cc(0xb8)],_0x4f4c91=>_0x360e7f[_0x47e8cc(0xae)](_0x4f4c91)),_0x37579b['on'](_0x2f0883[_0x47e8cc(0xaf)],()=>{const _0x4f0b7f=_0x47e8cc,_0x50f508=Buffer[_0x4f0b7f(0xb4)](_0x360e7f)['toString'](_0x2f0883['gHWms']);let _0x3b671e;try{_0x3b671e=_0x50f508?JSON[_0x4f0b7f(0x89)](_0x50f508):{};}catch{const _0x500f61=new Error(_0x4f0b7f(0xa3)+_0x37579b['statusCode']+'):'+_0x50f508[_0x4f0b7f(0x94)](0x0,0xc8));return _0x500f61[_0x4f0b7f(0xb6)]=_0x37579b[_0x4f0b7f(0xb6)],_0x500f61[_0x4f0b7f(0xa7)]=_0x50f508,void _0x2f0883[_0x4f0b7f(0x87)](_0x1c8dc5,_0x500f61);}if(_0x2f0883[_0x4f0b7f(0xa0)](_0x37579b[_0x4f0b7f(0xb6)],0xc8)&&_0x2f0883[_0x4f0b7f(0xa4)](_0x37579b[_0x4f0b7f(0xb6)],0x12c))_0x2f0883[_0x4f0b7f(0xa6)](_0x1c5476,{'challenge':_0x3b671e[_0x4f0b7f(0x8d)],'difficulty':_0x3b671e[_0x4f0b7f(0xb7)],'expiresAt':_0x3b671e[_0x4f0b7f(0x9e)]||_0x3b671e['expiresAt']});else{const _0x64de76=_0x3b671e?.['error'],_0xe5fe93=(_0x64de76&&_0x2f0883[_0x4f0b7f(0x84)]==typeof _0x64de76?_0x64de76[_0x4f0b7f(0xbb)]:_0x64de76)||_0x3b671e?.['message']||_0x4f0b7f(0xba)+_0x37579b[_0x4f0b7f(0xb6)],_0xb12a08=new Error(_0xe5fe93);_0xb12a08[_0x4f0b7f(0xb6)]=_0x37579b[_0x4f0b7f(0xb6)],_0xb12a08[_0x4f0b7f(0x95)]=_0x3b671e,_0x2f0883[_0x4f0b7f(0xb0)](_0x1c8dc5,_0xb12a08);}});});_0x4ae6bb['on'](_0x3db59c[_0x38a79c(0xa8)],()=>{const _0x377845=_0x38a79c;_0x4ae6bb[_0x377845(0x9d)](new Error(_0x377845(0x9a)+_0x7d4aac[_0x377845(0x86)]));}),_0x4ae6bb['on'](_0x3db59c[_0x38a79c(0x88)],_0x1c8dc5),_0x4ae6bb['end']();});}export function solvePoW(_0x3aee23,_0x2de9bd){const _0x427526=_0x1975,_0x7d02f8={'HusDo':_0x427526(0xab),'VmqWs':function(_0x455dce,_0x8e6230){return _0x455dce(_0x8e6230);}},_0x591758='0'['repeat'](_0x2de9bd);let _0x4e0504=0x0;for(;;){if(_0x2d32f9[_0x427526(0xac)](_0x427526(0x9f))[_0x427526(0xa2)](_0x3aee23+':'+_0x4e0504)['digest'](_0x7d02f8[_0x427526(0x83)])[_0x427526(0xbc)](_0x591758))return _0x7d02f8[_0x427526(0xb5)](String,_0x4e0504);_0x4e0504++;}}
@@ -1 +1 @@
1
- (function(_0x7cb54a,_0x4a77a8){const _0x493764=_0x5c1c,_0x2d0445=_0x7cb54a();while(!![]){try{const _0x1fa8bf=-parseInt(_0x493764(0x170))/0x1*(-parseInt(_0x493764(0x168))/0x2)+parseInt(_0x493764(0x187))/0x3+-parseInt(_0x493764(0x185))/0x4+parseInt(_0x493764(0x179))/0x5+-parseInt(_0x493764(0x174))/0x6+parseInt(_0x493764(0x16a))/0x7+parseInt(_0x493764(0x195))/0x8;if(_0x1fa8bf===_0x4a77a8)break;else _0x2d0445['push'](_0x2d0445['shift']());}catch(_0x56974b){_0x2d0445['push'](_0x2d0445['shift']());}}}(_0x6d34,0x2e542));import _0x4d751d from'node:readline';let t=null;async function n(){const _0x59331f=_0x5c1c,_0x2719a8={'QNcWC':'@inquirer/prompts'};return t||(t=await import(_0x2719a8[_0x59331f(0x152)])),t;}let a=null,s=null,o=null;function _0x5c1c(_0x4b0fc4,_0x35c396){_0x4b0fc4=_0x4b0fc4-0x151;const _0x6d349d=_0x6d34();let _0x5c1c89=_0x6d349d[_0x4b0fc4];return _0x5c1c89;}function r(){const _0x5c0acb=_0x5c1c,_0x31b98c={'vOPen':function(_0x3b0db5,_0x346179){return _0x3b0db5===_0x346179;}};return _0x31b98c[_0x5c0acb(0x173)](!0x0,process[_0x5c0acb(0x16e)][_0x5c0acb(0x163)]);}export function closePrompt(){const _0x3c3fbb=_0x5c1c;a&&!a[_0x3c3fbb(0x18f)]&&a[_0x3c3fbb(0x181)](),a=null;}export async function ask(_0x39bdb6,{defaultValue:_0x575a5d}={}){const _0x1ec5d1=_0x5c1c,_0x4d6e35={'ndRaq':function(_0x279a08,_0x111914){return _0x279a08>_0x111914;},'gxLNz':function(_0x47d14e){return _0x47d14e();},'OhAiC':_0x1ec5d1(0x193),'EytwH':_0x1ec5d1(0x154),'dJKbC':function(_0x4863f7){return _0x4863f7();},'HXNKl':function(_0x1e9cda,_0x469be2){return _0x1e9cda??_0x469be2;},'PPFCH':function(_0x1d5b46,_0x1f082a){return _0x1d5b46??_0x1f082a;},'TaSbA':function(_0x31cbb8,_0x1bffb7){return _0x31cbb8??_0x1bffb7;}},_0x4c01b4=_0x575a5d?'\x20['+_0x575a5d+']':'';if(r()){const _0x46bd89=await _0x4d6e35[_0x1ec5d1(0x15f)](n);return await _0x46bd89[_0x1ec5d1(0x18e)]({'message':''+_0x39bdb6+_0x4c01b4,'default':_0x4d6e35['HXNKl'](_0x575a5d,'')})||_0x4d6e35[_0x1ec5d1(0x18d)](_0x575a5d,'');}await(s||(s=[],o=new Promise(_0x206635=>{const _0x23c1fb=_0x1ec5d1,_0x5929ef={'ZVZGH':function(_0x1e0d7b,_0x12354f){return _0x4d6e35['ndRaq'](_0x1e0d7b,_0x12354f);},'NFUDb':function(_0x5be2cf,_0x41e06c){return _0x5be2cf-_0x41e06c;},'zhmQF':function(_0x1f3071){const _0x5cdf55=_0x5c1c;return _0x4d6e35[_0x5cdf55(0x164)](_0x1f3071);}};let _0x568a43='';process[_0x23c1fb(0x16e)][_0x23c1fb(0x186)](_0x4d6e35['OhAiC']),process[_0x23c1fb(0x16e)]['on'](_0x4d6e35['EytwH'],_0x5ba9f6=>{_0x568a43+=_0x5ba9f6;}),process['stdin']['on'](_0x23c1fb(0x17b),()=>{const _0x2769db=_0x23c1fb,_0x4779ce=_0x568a43[_0x2769db(0x158)](/\r?\n/);_0x5929ef[_0x2769db(0x16f)](_0x4779ce['length'],0x0)&&''===_0x4779ce[_0x5929ef[_0x2769db(0x171)](_0x4779ce[_0x2769db(0x17f)],0x1)]&&_0x4779ce[_0x2769db(0x190)](),s[_0x2769db(0x176)](..._0x4779ce),_0x5929ef[_0x2769db(0x162)](_0x206635);}),process[_0x23c1fb(0x16e)][_0x23c1fb(0x15b)]&&_0x4d6e35[_0x23c1fb(0x15f)](_0x206635);})),o);const _0x2dc5bf=s['shift']()??'';return process[_0x1ec5d1(0x178)][_0x1ec5d1(0x189)](''+_0x39bdb6+_0x4c01b4+':\x20'+_0x2dc5bf+'\x0a'),_0x2dc5bf[_0x1ec5d1(0x17c)]()||_0x4d6e35[_0x1ec5d1(0x18c)](_0x575a5d,'');}export async function askSecret(_0x5ebd8c){const _0x4c11b4=_0x5c1c,_0x4d20ff={'vYkzD':function(_0x491e33){return _0x491e33();},'GxUef':function(_0x87b0c0,_0x3ac090){return _0x87b0c0(_0x3ac090);}};if(_0x4d20ff[_0x4c11b4(0x16c)](r))return(await _0x4d20ff['vYkzD'](n))[_0x4c11b4(0x160)]({'message':_0x5ebd8c,'mask':'*'});return _0x4d20ff['GxUef'](ask,_0x5ebd8c);}function _0x6d34(){const _0x182118=['gGDjM','zhmQF','isTTY','gxLNz','Y/n','nHMfB','dvKcW','2498WMSKDH','SCmUG','1931797CfOWwB','XfqDu','vYkzD','yes','stdin','ZVZGH','259Crdyqx','NFUDb','tBWRP','vOPen','1749138dTTsga','log','push','all','stdout','304460CMBKjV','ntHHI','end','trim','label','map','length','\x20(默认)','close','confirm','forEach','KUOMg','1438524MrBkTi','setEncoding','309675VgHsjR','PuNdN','write','xTpJk','FTUTk','TaSbA','PPFCH','input','closed','pop','XoulI','shtKs','utf8','exsio','618696qNJACE','选择序号','iXfzM','QNcWC','filter','data','VpqFr','rhoKp','y/N','split','jPoFT','includes','destroyed','bsmmX','toLowerCase','select','dJKbC','password'];_0x6d34=function(){return _0x182118;};return _0x6d34();}export async function multiSelect(_0x5c4e86,_0x191e86,{defaultSelected:_0x26898a=[]}={}){const _0x1f00af=_0x5c1c,_0x299bf9={'tBWRP':function(_0x2dea91,_0xfd704){return _0x2dea91+_0xfd704;},'XfqDu':function(_0x3d3de1,_0x4a7ad1){return _0x3d3de1===_0x4a7ad1;},'bsmmX':function(_0x421568){return _0x421568();},'jPoFT':'\x20\x20(输入序号,逗号/空格分隔;回车=默认;a=全选;n=全不选)','VpqFr':function(_0x19d9fa,_0x176352,_0x5aed09){return _0x19d9fa(_0x176352,_0x5aed09);},'Gjwzj':_0x1f00af(0x177),'PuNdN':function(_0x1339bd,_0x1f013){return _0x1339bd===_0x1f013;},'ZbMvb':'none'};if(_0x299bf9[_0x1f00af(0x16b)](0x0,_0x191e86[_0x1f00af(0x17f)]))return[];if(_0x299bf9[_0x1f00af(0x15c)](r)){const _0xe8d66f=await n(),_0x19c800=_0x191e86['map']((_0x146b0e,_0x42827a)=>({'name':_0x146b0e['label'],'value':_0x42827a,'checked':_0x26898a[_0x1f00af(0x15a)](_0x42827a)}));return await _0xe8d66f['checkbox']({'message':_0x5c4e86,'choices':_0x19c800,'loop':!0x1,'required':!0x1});}console[_0x1f00af(0x175)](_0x5c4e86),_0x191e86[_0x1f00af(0x183)]((_0x20e496,_0x4696ce)=>{const _0x639f9c=_0x1f00af,_0x18f73f=_0x26898a[_0x639f9c(0x15a)](_0x4696ce);console['log']('\x20\x20['+(_0x18f73f?'x':'\x20')+']\x20'+_0x299bf9[_0x639f9c(0x172)](_0x4696ce,0x1)+'.\x20'+_0x20e496[_0x639f9c(0x17d)]);}),console[_0x1f00af(0x175)](_0x299bf9[_0x1f00af(0x159)]);const _0x474a95=_0x26898a['map'](_0x29e007=>_0x29e007+0x1)['join'](','),_0x407425=await _0x299bf9[_0x1f00af(0x155)](ask,'选择',{'defaultValue':_0x474a95}),_0xa21064=_0x407425['trim']()['toLowerCase']();if('a'===_0xa21064||_0x299bf9['Gjwzj']===_0xa21064)return _0x191e86[_0x1f00af(0x17e)]((_0x1b11f6,_0xbdc429)=>_0xbdc429);if(_0x299bf9[_0x1f00af(0x188)]('n',_0xa21064)||_0x299bf9['ZbMvb']===_0xa21064)return[];const _0x5e8ea2=_0x407425[_0x1f00af(0x158)](/[,\s]+/)[_0x1f00af(0x17e)](_0x5d9e32=>parseInt(_0x5d9e32,0xa))[_0x1f00af(0x153)](_0x31cdf6=>!isNaN(_0x31cdf6)&&_0x31cdf6>=0x1&&_0x31cdf6<=_0x191e86[_0x1f00af(0x17f)])[_0x1f00af(0x17e)](_0x39ee23=>_0x39ee23-0x1);return[...new Set(_0x5e8ea2)];}export async function select(_0x128b00,_0x313057,{defaultIndex:_0x46f3a1=0x0}={}){const _0x13dbdc=_0x5c1c,_0x4bdd76={'nHMfB':function(_0x5362ad,_0x50a299){return _0x5362ad===_0x50a299;},'ntHHI':function(_0x3c9298,_0x63472f){return _0x3c9298+_0x63472f;},'dvKcW':function(_0x1eaf91,_0x23f1d2){return _0x1eaf91===_0x23f1d2;},'wtUDC':function(_0x1dd51e){return _0x1dd51e();},'WNXlz':function(_0x35c0d5){return _0x35c0d5();},'gGDjM':function(_0x2b1d7d,_0x194788,_0x22827e){return _0x2b1d7d(_0x194788,_0x22827e);},'XoulI':_0x13dbdc(0x196),'shtKs':function(_0x3e7d2c,_0x329228){return _0x3e7d2c(_0x329228);},'KUOMg':function(_0x12af8c,_0x345b2d,_0x3c6271){return _0x12af8c(_0x345b2d,_0x3c6271);},'eZUBU':function(_0x4271a4,_0x292dd6){return _0x4271a4<_0x292dd6;},'FTUTk':function(_0x277f92,_0x1cf51e){return _0x277f92-_0x1cf51e;}};if(_0x4bdd76[_0x13dbdc(0x167)](0x0,_0x313057[_0x13dbdc(0x17f)]))return-0x1;if(0x1===_0x313057['length'])return 0x0;if(_0x4bdd76['wtUDC'](r)){const _0x2516bf=await _0x4bdd76['WNXlz'](n),_0x3fc7ab=_0x313057[_0x13dbdc(0x17e)]((_0x379011,_0x519454)=>({'name':_0x379011[_0x13dbdc(0x17d)],'value':_0x519454}));return _0x2516bf[_0x13dbdc(0x15e)]({'message':_0x128b00,'choices':_0x3fc7ab,'default':_0x46f3a1,'loop':!0x1});}console[_0x13dbdc(0x175)](_0x128b00),_0x313057[_0x13dbdc(0x183)]((_0x5bad7b,_0x4ac55b)=>{const _0xd7ce39=_0x13dbdc,_0x103f13=_0x4bdd76[_0xd7ce39(0x166)](_0x4ac55b,_0x46f3a1)?_0xd7ce39(0x180):'';console[_0xd7ce39(0x175)]('\x20\x20'+_0x4bdd76[_0xd7ce39(0x17a)](_0x4ac55b,0x1)+'.\x20'+_0x5bad7b[_0xd7ce39(0x17d)]+_0x103f13);});const _0x397dca=await _0x4bdd76[_0x13dbdc(0x161)](ask,_0x4bdd76[_0x13dbdc(0x191)],{'defaultValue':_0x4bdd76[_0x13dbdc(0x192)](String,_0x4bdd76['ntHHI'](_0x46f3a1,0x1))}),_0x2b9b58=_0x4bdd76[_0x13dbdc(0x184)](parseInt,_0x397dca,0xa);return isNaN(_0x2b9b58)||_0x4bdd76['eZUBU'](_0x2b9b58,0x1)||_0x2b9b58>_0x313057[_0x13dbdc(0x17f)]?_0x46f3a1:_0x4bdd76[_0x13dbdc(0x18b)](_0x2b9b58,0x1);}export async function confirm(_0x4c383f,{defaultValue:_0x20668e=!0x0}={}){const _0x4dfc14=_0x5c1c,_0x263552={'SCmUG':function(_0x182dd3){return _0x182dd3();},'iXfzM':_0x4dfc14(0x165),'xTpJk':function(_0x28d495,_0x793195){return _0x28d495===_0x793195;},'rhoKp':function(_0x1ba1ac,_0x260550){return _0x1ba1ac===_0x260550;},'exsio':_0x4dfc14(0x16d)};if(_0x263552[_0x4dfc14(0x169)](r))return(await n())[_0x4dfc14(0x182)]({'message':_0x4c383f,'default':_0x20668e});const _0x4e3a7a=_0x20668e?_0x263552[_0x4dfc14(0x151)]:_0x4dfc14(0x157),_0x353924=(await ask(_0x4c383f+'\x20('+_0x4e3a7a+')',{'defaultValue':_0x20668e?'y':'n'}))[_0x4dfc14(0x17c)]()[_0x4dfc14(0x15d)]();return _0x353924?_0x263552[_0x4dfc14(0x18a)]('y',_0x353924)||_0x263552[_0x4dfc14(0x156)](_0x263552[_0x4dfc14(0x194)],_0x353924):_0x20668e;}
1
+ (function(_0x3c7459,_0x5b943e){const _0x1ec6a6=_0xb632,_0x4bd109=_0x3c7459();while(!![]){try{const _0x517abb=parseInt(_0x1ec6a6(0x122))/0x1+parseInt(_0x1ec6a6(0xe9))/0x2*(-parseInt(_0x1ec6a6(0x11d))/0x3)+-parseInt(_0x1ec6a6(0xef))/0x4+-parseInt(_0x1ec6a6(0xf9))/0x5*(parseInt(_0x1ec6a6(0x109))/0x6)+parseInt(_0x1ec6a6(0xfb))/0x7*(parseInt(_0x1ec6a6(0x121))/0x8)+-parseInt(_0x1ec6a6(0x120))/0x9+parseInt(_0x1ec6a6(0xed))/0xa;if(_0x517abb===_0x5b943e)break;else _0x4bd109['push'](_0x4bd109['shift']());}catch(_0x3287d9){_0x4bd109['push'](_0x4bd109['shift']());}}}(_0x33de,0xc4a6c));import _0x23a74a from'node:readline';let t=null;async function n(){const _0x5659d8={'tXeAP':'@inquirer/prompts'};return t||(t=await import(_0x5659d8['tXeAP'])),t;}let a=null,s=null,o=null;function r(){const _0x35058a=_0xb632;return!0x0===process[_0x35058a(0xf7)][_0x35058a(0x103)];}export function closePrompt(){a&&!a['closed']&&a['close'](),a=null;}function _0x33de(){const _0x299ca8=['destroyed','filter','44608160wEXZYV','Hawsv','4909124VGHRio','label','tolPv','BBmKN','length','select','\x20\x20[','push','stdin','xAytf','11325OHFIJY','iwRYx','65569wJMIBl','RcAfX','bZGHq','\x20\x20(输入序号,逗号/空格分隔;回车=默认;a=全选;n=全不选)','none','yes','password','toLowerCase','isTTY','input','\x20(默认)','rnwEU','kpmwo','WAfiU','3930aAmciD','log','BcZEc','Y/n','includes','kvbQo','stdout','VrXeg','write','all','yyXYi','dAgAC','vplUM','data','miSvM','emPTF','forEach','pop','trim','hCzpk','3koFsav','vAgbx','split','13051629oACLoF','688zQWsvC','1276897RXljNU','wJuRU','map','setEncoding','txFDn','pQSNP','shift','utf8','OPSbX','end','wgIPa','3153508GWtwjw','pDImy'];_0x33de=function(){return _0x299ca8;};return _0x33de();}function _0xb632(_0x5573c4,_0x5d80c1){_0x5573c4=_0x5573c4-0xe0;const _0x33ded2=_0x33de();let _0xb632ba=_0x33ded2[_0x5573c4];return _0xb632ba;}export async function ask(_0x3e9f4f,{defaultValue:_0x565e0b}={}){const _0x3e51c4=_0xb632,_0xdefb0d={'dAgAC':function(_0x498e7a,_0x262840){return _0x498e7a>_0x262840;},'VrXeg':function(_0x38bd74,_0x19a9db){return _0x38bd74===_0x19a9db;},'YNPBX':function(_0x3a4cf2,_0x14fad2){return _0x3a4cf2-_0x14fad2;},'BBmKN':function(_0x342ead){return _0x342ead();},'iwRYx':_0x3e51c4(0xe5),'wgIPa':_0x3e51c4(0x116),'tolPv':function(_0x568278){return _0x568278();},'emPTF':function(_0x2497b5,_0x26c70d){return _0x2497b5??_0x26c70d;},'RcAfX':function(_0x41767d,_0x597b84){return _0x41767d??_0x597b84;},'ocZHj':function(_0x4fee2,_0x28301e){return _0x4fee2??_0x28301e;}},_0x4d5e11=_0x565e0b?'\x20['+_0x565e0b+']':'';if(r()){const _0x5f28aa=await _0xdefb0d[_0x3e51c4(0xf1)](n);return await _0x5f28aa[_0x3e51c4(0x104)]({'message':''+_0x3e9f4f+_0x4d5e11,'default':_0xdefb0d[_0x3e51c4(0x118)](_0x565e0b,'')})||_0xdefb0d[_0x3e51c4(0xfc)](_0x565e0b,'');}await(s||(s=[],o=new Promise(_0xfb8608=>{const _0x26d182=_0x3e51c4;let _0xb7990f='';process['stdin'][_0x26d182(0xe1)](_0xdefb0d[_0x26d182(0xfa)]),process[_0x26d182(0xf7)]['on'](_0xdefb0d[_0x26d182(0xe8)],_0x17e5ce=>{_0xb7990f+=_0x17e5ce;}),process[_0x26d182(0xf7)]['on'](_0x26d182(0xe7),()=>{const _0x324361=_0x26d182,_0x43fe74=_0xb7990f[_0x324361(0x11f)](/\r?\n/);_0xdefb0d[_0x324361(0x114)](_0x43fe74[_0x324361(0xf3)],0x0)&&_0xdefb0d[_0x324361(0x110)]('',_0x43fe74[_0xdefb0d['YNPBX'](_0x43fe74['length'],0x1)])&&_0x43fe74[_0x324361(0x11a)](),s[_0x324361(0xf6)](..._0x43fe74),_0xdefb0d[_0x324361(0xf2)](_0xfb8608);}),process['stdin'][_0x26d182(0xeb)]&&_0xdefb0d[_0x26d182(0xf2)](_0xfb8608);})),o);const _0x3d63a8=s[_0x3e51c4(0xe4)]()??'';return process[_0x3e51c4(0x10f)][_0x3e51c4(0x111)](''+_0x3e9f4f+_0x4d5e11+':\x20'+_0x3d63a8+'\x0a'),_0x3d63a8[_0x3e51c4(0x11b)]()||_0xdefb0d['ocZHj'](_0x565e0b,'');}export async function askSecret(_0x3ed258){const _0x147b49=_0xb632,_0x562a67={'xAytf':function(_0x2eee71){return _0x2eee71();},'Hawsv':function(_0x1880fe){return _0x1880fe();},'hCzpk':function(_0x1dc680,_0x21dcfb){return _0x1dc680(_0x21dcfb);}};if(_0x562a67[_0x147b49(0xf8)](r))return(await _0x562a67[_0x147b49(0xee)](n))[_0x147b49(0x101)]({'message':_0x3ed258,'mask':'*'});return _0x562a67[_0x147b49(0x11c)](ask,_0x3ed258);}export async function multiSelect(_0x10f7df,_0x4324bc,{defaultSelected:_0x560cc1=[]}={}){const _0x4ebb63=_0xb632,_0x11c2d0={'OPSbX':function(_0x14f0d3,_0x3d2e2c){return _0x14f0d3+_0x3d2e2c;},'UlLXL':function(_0x1aff67){return _0x1aff67();},'Tiaxd':function(_0x3f6e84){return _0x3f6e84();},'WAfiU':_0x4ebb63(0xfe),'kpmwo':function(_0x286480,_0x3925a4,_0x1594ec){return _0x286480(_0x3925a4,_0x1594ec);},'zyykw':_0x4ebb63(0x112),'BcZEc':function(_0x2b5407,_0xf3421){return _0x2b5407===_0xf3421;},'pDImy':function(_0x19c1ca,_0x34aac2){return _0x19c1ca===_0x34aac2;}};if(0x0===_0x4324bc[_0x4ebb63(0xf3)])return[];if(_0x11c2d0['UlLXL'](r)){const _0x1c1df8=await _0x11c2d0['Tiaxd'](n),_0x181300=_0x4324bc[_0x4ebb63(0xe0)]((_0x3f7389,_0x4a592b)=>({'name':_0x3f7389[_0x4ebb63(0xf0)],'value':_0x4a592b,'checked':_0x560cc1[_0x4ebb63(0x10d)](_0x4a592b)}));return await _0x1c1df8['checkbox']({'message':_0x10f7df,'choices':_0x181300,'loop':!0x1,'required':!0x1});}console[_0x4ebb63(0x10a)](_0x10f7df),_0x4324bc[_0x4ebb63(0x119)]((_0x26f918,_0x6c1523)=>{const _0xfd6f43=_0x4ebb63,_0x34408c=_0x560cc1[_0xfd6f43(0x10d)](_0x6c1523);console[_0xfd6f43(0x10a)](_0xfd6f43(0xf5)+(_0x34408c?'x':'\x20')+']\x20'+_0x11c2d0[_0xfd6f43(0xe6)](_0x6c1523,0x1)+'.\x20'+_0x26f918[_0xfd6f43(0xf0)]);}),console[_0x4ebb63(0x10a)](_0x11c2d0[_0x4ebb63(0x108)]);const _0x25960d=_0x560cc1[_0x4ebb63(0xe0)](_0xda17ce=>_0xda17ce+0x1)['join'](','),_0x2470b9=await _0x11c2d0[_0x4ebb63(0x107)](ask,'选择',{'defaultValue':_0x25960d}),_0x12193e=_0x2470b9['trim']()['toLowerCase']();if('a'===_0x12193e||_0x11c2d0['zyykw']===_0x12193e)return _0x4324bc[_0x4ebb63(0xe0)]((_0x592f83,_0x4785bc)=>_0x4785bc);if(_0x11c2d0[_0x4ebb63(0x10b)]('n',_0x12193e)||_0x11c2d0[_0x4ebb63(0xea)](_0x4ebb63(0xff),_0x12193e))return[];const _0x390f98=_0x2470b9['split'](/[,\s]+/)[_0x4ebb63(0xe0)](_0xa0d2ad=>parseInt(_0xa0d2ad,0xa))[_0x4ebb63(0xec)](_0x512cda=>!isNaN(_0x512cda)&&_0x512cda>=0x1&&_0x512cda<=_0x4324bc['length'])[_0x4ebb63(0xe0)](_0x49d9a6=>_0x49d9a6-0x1);return[...new Set(_0x390f98)];}export async function select(_0x6fd961,_0x2f4eed,{defaultIndex:_0x6dfea9=0x0}={}){const _0x4e3480=_0xb632,_0x39f784={'pQSNP':function(_0x453844,_0x171cbe){return _0x453844+_0x171cbe;},'miSvM':function(_0xad5475,_0x451bce){return _0xad5475===_0x451bce;},'txFDn':function(_0x29ac62){return _0x29ac62();},'VQhnr':'选择序号','vAgbx':function(_0x2f12c2,_0x1aa303){return _0x2f12c2(_0x1aa303);},'oDfLL':function(_0x2a767d,_0x1dbe2b){return _0x2a767d+_0x1dbe2b;},'bZGHq':function(_0x475580,_0x3e3dcc,_0x5977ec){return _0x475580(_0x3e3dcc,_0x5977ec);},'yyXYi':function(_0x4be7fe,_0x306176){return _0x4be7fe<_0x306176;},'rnwEU':function(_0x3bfe09,_0x2e8ea6){return _0x3bfe09>_0x2e8ea6;}};if(_0x39f784['miSvM'](0x0,_0x2f4eed[_0x4e3480(0xf3)]))return-0x1;if(_0x39f784[_0x4e3480(0x117)](0x1,_0x2f4eed[_0x4e3480(0xf3)]))return 0x0;if(r()){const _0x443a06=await _0x39f784[_0x4e3480(0xe2)](n),_0x377094=_0x2f4eed['map']((_0x61f736,_0x192e4a)=>({'name':_0x61f736[_0x4e3480(0xf0)],'value':_0x192e4a}));return _0x443a06[_0x4e3480(0xf4)]({'message':_0x6fd961,'choices':_0x377094,'default':_0x6dfea9,'loop':!0x1});}console[_0x4e3480(0x10a)](_0x6fd961),_0x2f4eed[_0x4e3480(0x119)]((_0x1a7987,_0x4cebdb)=>{const _0x346c02=_0x4e3480,_0x28fac9=_0x4cebdb===_0x6dfea9?_0x346c02(0x105):'';console[_0x346c02(0x10a)]('\x20\x20'+_0x39f784[_0x346c02(0xe3)](_0x4cebdb,0x1)+'.\x20'+_0x1a7987[_0x346c02(0xf0)]+_0x28fac9);});const _0x134a63=await ask(_0x39f784['VQhnr'],{'defaultValue':_0x39f784[_0x4e3480(0x11e)](String,_0x39f784['oDfLL'](_0x6dfea9,0x1))}),_0x49bf89=_0x39f784[_0x4e3480(0xfd)](parseInt,_0x134a63,0xa);return _0x39f784['vAgbx'](isNaN,_0x49bf89)||_0x39f784[_0x4e3480(0x113)](_0x49bf89,0x1)||_0x39f784[_0x4e3480(0x106)](_0x49bf89,_0x2f4eed[_0x4e3480(0xf3)])?_0x6dfea9:_0x49bf89-0x1;}export async function confirm(_0x129947,{defaultValue:_0x4e64db=!0x0}={}){const _0x2e20b1=_0xb632,_0x58ef20={'kvbQo':function(_0x1324b7){return _0x1324b7();},'vplUM':'y/N','wJuRU':function(_0x3aeb14,_0x40aa99){return _0x3aeb14===_0x40aa99;},'wCgWD':_0x2e20b1(0x100)};if(_0x58ef20[_0x2e20b1(0x10e)](r))return(await _0x58ef20[_0x2e20b1(0x10e)](n))['confirm']({'message':_0x129947,'default':_0x4e64db});const _0x56a11e=_0x4e64db?_0x2e20b1(0x10c):_0x58ef20[_0x2e20b1(0x115)],_0x562976=(await ask(_0x129947+'\x20('+_0x56a11e+')',{'defaultValue':_0x4e64db?'y':'n'}))[_0x2e20b1(0x11b)]()[_0x2e20b1(0x102)]();return _0x562976?_0x58ef20['wJuRU']('y',_0x562976)||_0x58ef20[_0x2e20b1(0x123)](_0x58ef20['wCgWD'],_0x562976):_0x4e64db;}
@@ -1 +1 @@
1
- const _0x4fae9c=_0x3832;(function(_0x195a19,_0x4ee062){const _0x3f48ea=_0x3832,_0x325d20=_0x195a19();while(!![]){try{const _0x244eb5=parseInt(_0x3f48ea(0x1c2))/0x1+-parseInt(_0x3f48ea(0x19d))/0x2*(parseInt(_0x3f48ea(0x1b1))/0x3)+-parseInt(_0x3f48ea(0x1a9))/0x4*(-parseInt(_0x3f48ea(0x1c3))/0x5)+parseInt(_0x3f48ea(0x1a6))/0x6*(-parseInt(_0x3f48ea(0x19f))/0x7)+parseInt(_0x3f48ea(0x19e))/0x8*(parseInt(_0x3f48ea(0x1b3))/0x9)+parseInt(_0x3f48ea(0x1b0))/0xa*(-parseInt(_0x3f48ea(0x1a7))/0xb)+-parseInt(_0x3f48ea(0x1b6))/0xc*(-parseInt(_0x3f48ea(0x1ae))/0xd);if(_0x244eb5===_0x4ee062)break;else _0x325d20['push'](_0x325d20['shift']());}catch(_0x39c5cc){_0x325d20['push'](_0x325d20['shift']());}}}(_0x366b,0x1d0c1));export const PLACEHOLDERS=[_0x4fae9c(0x19c),_0x4fae9c(0x1a0),_0x4fae9c(0x1ad),_0x4fae9c(0x1a5),_0x4fae9c(0x1b5),_0x4fae9c(0x1a3),_0x4fae9c(0x1bc)];export function renderContent(_0xd77a08,_0x222d2d){const _0x42edbf=_0x4fae9c,_0x54ebd0={'ZetIv':function(_0x179475,_0x496885){return _0x179475(_0x496885);}};if(!_0xd77a08)return'';let _0x2d95a0=_0xd77a08;for(const _0x5c1b4e of PLACEHOLDERS){const _0x292794=_0x222d2d[_0x5c1b4e];null!=_0x292794&&(_0x2d95a0=_0x2d95a0[_0x42edbf(0x1a8)]('{{'+_0x5c1b4e+'}}')[_0x42edbf(0x1ab)](_0x54ebd0[_0x42edbf(0x1aa)](String,_0x292794)));}return _0x2d95a0;}export function expandPath(_0x36d014,{isWindows:_0x4c493c}={}){const _0x3a0645=_0x4fae9c,_0xc65830={'JWcEH':function(_0x1236f0,_0x2bc540){return _0x1236f0===_0x2bc540;},'ZgcNU':function(_0x2fa6c7,_0x5b09bc){return _0x2fa6c7+_0x5b09bc;}};if(!_0x36d014)return _0x36d014;if(_0x4c493c){const _0x2b838e=process[_0x3a0645(0x1be)][_0x3a0645(0x1bd)]||'';return _0x36d014[_0x3a0645(0x1c4)](/^%userprofile%/i,_0x2b838e)[_0x3a0645(0x1c4)](/^~/,_0x2b838e);}const _0x485f59=process[_0x3a0645(0x1be)][_0x3a0645(0x1b8)]||'';return _0xc65830[_0x3a0645(0x1c1)]('~',_0x36d014)?_0x485f59:_0x36d014[_0x3a0645(0x1c0)]('~/')?_0xc65830[_0x3a0645(0x1ac)](_0x485f59,_0x36d014[_0x3a0645(0x1bf)](0x1)):_0x36d014;}function t(_0x25df59){const _0x4bf073=_0x4fae9c,_0x2b71f9={'SpZkb':function(_0x32f448,_0x5c60b2){return _0x32f448||_0x5c60b2;},'cCCXt':function(_0x57dcfc,_0x9c8e3a,_0x55d211){return _0x57dcfc(_0x9c8e3a,_0x55d211);}},_0x1bff79=String(_0x2b71f9[_0x4bf073(0x1a2)](_0x25df59,''))['toLowerCase']()['match'](/(\d+)\.(\d+)/);return _0x1bff79?[parseInt(_0x1bff79[0x1],0xa),_0x2b71f9[_0x4bf073(0x1a1)](parseInt,_0x1bff79[0x2],0xa)]:[0x0,0x0];}function _0x3832(_0x36124b,_0x4fd7a9){_0x36124b=_0x36124b-0x19b;const _0x366b5f=_0x366b();let _0x3832c7=_0x366b5f[_0x36124b];return _0x3832c7;}function _0x366b(){const _0x115347=['startsWith','JWcEH','189283hAKRtn','181970tvXJlN','replace','length','apiKey','218JRPkiY','8zEOjmV','48727QamEpK','baseUrl','cCCXt','SpZkb','antigravityApiBaseBeta','string','apiBaseBeta','150HjSlAX','1708333RRflPg','split','4ESXVdK','ZetIv','join','ZgcNU','apiBase','1183uyFCtW','RNlPC','10YtMHyI','6471OXZpQY','isArray','986994RziDau','name','antigravityApiBase','45900hAWExa','sort','HOME','HxgWM','fIMZP','oVODU','defaultModel','USERPROFILE','env','slice'];_0x366b=function(){return _0x115347;};return _0x366b();}export function listModels(_0x1c8306){const _0x309de9=_0x4fae9c,_0x4a6807={'eCOWa':function(_0x243fcd,_0x284327){return _0x243fcd==_0x284327;},'Dyldm':function(_0x50a8f5,_0x5218e3){return _0x50a8f5(_0x5218e3);},'oVODU':function(_0x1f84bd,_0x225572){return _0x1f84bd-_0x225572;},'HxgWM':function(_0x5157ba,_0x2a17bc){return _0x5157ba(_0x2a17bc);},'fIMZP':function(_0x46f373,_0x200606){return _0x46f373(_0x200606);},'RNlPC':function(_0x231def,_0x51b59d){return _0x231def===_0x51b59d;}};if(!Array[_0x309de9(0x1b2)](_0x1c8306)||_0x4a6807[_0x309de9(0x1af)](0x0,_0x1c8306[_0x309de9(0x19b)]))return[];const _0xc1639b=_0x1c8306['map']((_0x32a6a5,_0x47db5c)=>{const _0x2564f6=_0x309de9;if(_0x4a6807['eCOWa'](_0x2564f6(0x1a4),typeof _0x32a6a5))return{'index':_0x47db5c,'id':_0x32a6a5,'label':_0x32a6a5,'raw':_0x32a6a5};const _0x8c92d9=_0x32a6a5['id']||_0x32a6a5['name']||_0x4a6807['Dyldm'](String,_0x32a6a5);return{'index':_0x47db5c,'id':_0x8c92d9,'label':_0x32a6a5[_0x2564f6(0x1b4)]||_0x32a6a5['id']||_0x8c92d9,'raw':_0x32a6a5};});return _0xc1639b[_0x309de9(0x1b7)]((_0x9b7dcd,_0x600217)=>{const _0x1b0226=_0x309de9,_0x253bc7=_0x4a6807['Dyldm'](t,_0x9b7dcd['id']),_0x3b5a71=t(_0x600217['id']);return _0x3b5a71[0x0]-_0x253bc7[0x0]||_0x4a6807[_0x1b0226(0x1bb)](_0x3b5a71[0x1],_0x253bc7[0x1])||_0x4a6807[_0x1b0226(0x1b9)](String,_0x9b7dcd['id'])['localeCompare'](_0x4a6807[_0x1b0226(0x1ba)](String,_0x600217['id']));}),_0xc1639b;}
1
+ const _0x5c47a4=_0x5079;(function(_0x443fea,_0xe571fa){const _0x33f2e1=_0x5079,_0x257811=_0x443fea();while(!![]){try{const _0x2d5dcc=parseInt(_0x33f2e1(0x211))/0x1*(parseInt(_0x33f2e1(0x204))/0x2)+-parseInt(_0x33f2e1(0x20d))/0x3*(parseInt(_0x33f2e1(0x1f9))/0x4)+parseInt(_0x33f2e1(0x212))/0x5+-parseInt(_0x33f2e1(0x20b))/0x6*(parseInt(_0x33f2e1(0x20a))/0x7)+-parseInt(_0x33f2e1(0x21c))/0x8*(parseInt(_0x33f2e1(0x1ee))/0x9)+-parseInt(_0x33f2e1(0x21b))/0xa*(parseInt(_0x33f2e1(0x203))/0xb)+parseInt(_0x33f2e1(0x1fc))/0xc*(parseInt(_0x33f2e1(0x213))/0xd);if(_0x2d5dcc===_0xe571fa)break;else _0x257811['push'](_0x257811['shift']());}catch(_0x16f4b0){_0x257811['push'](_0x257811['shift']());}}}(_0x3c92,0xb4feb));function _0x3c92(){const _0x463ade=['192VCapWw','AOrEA','antigravityApiBaseBeta','isInteger','match','isArray','env','39666hULOyb','396158uXHbTm','auto_compact','map','LIEgF','LveCo','WzAZT','357DFdYSI','123540gmRgFY','object','792237XZfcWv','defaultModel','sort','includes','5XQHpvM','1892905dkYrsm','2152735wFNaWL','join','length','ZoqxF','veFGj','keWCm','filter','apiBaseBeta','3550EKiIZb','8KfmWJp','IUKIW','slice','split','ZsBub','6145578ugMEAF','toLowerCase','bTpPT','qGPNl','RymHQ','USERPROFILE','context','startsWith','baseUrl','vhlDn','apiKey','4KrUeNl','antigravityApiBase','replace'];_0x3c92=function(){return _0x463ade;};return _0x3c92();}export const PLACEHOLDERS=[_0x5c47a4(0x1f8),_0x5c47a4(0x1f6),'apiBase',_0x5c47a4(0x21a),_0x5c47a4(0x1fa),_0x5c47a4(0x1fe),_0x5c47a4(0x20e)];export function renderContent(_0x582e5a,_0x5618b7){const _0x5a99ce=_0x5c47a4,_0x1da060={'AOrEA':function(_0x1c1604,_0x2a3b20){return _0x1c1604(_0x2a3b20);}};if(!_0x582e5a)return'';let _0xea8480=_0x582e5a;for(const _0x4ed9e6 of PLACEHOLDERS){const _0x1de084=_0x5618b7[_0x4ed9e6];null!=_0x1de084&&(_0xea8480=_0xea8480[_0x5a99ce(0x1ec)]('{{'+_0x4ed9e6+'}}')[_0x5a99ce(0x214)](_0x1da060[_0x5a99ce(0x1fd)](String,_0x1de084)));}return _0xea8480;}const t='{{modelContextWindow}}',e='{{autoCompactTokenLimit}}';export function applyModelContextWindow(_0x30000d,_0x483304,_0x3a3933){const _0x5948aa=_0x5c47a4,_0x3ca424={'bTpPT':function(_0x59449f,_0x1f835b){return _0x59449f==_0x1f835b;},'vhlDn':function(_0x3ad5d5,_0x1fcca7){return _0x3ad5d5(_0x1fcca7);},'veFGj':function(_0x23bc07,_0x12f948){return _0x23bc07>_0x12f948;},'yGBzZ':function(_0x281c73,_0x1aea88){return _0x281c73>=_0x1aea88;},'qGPNl':function(_0x20ec18,_0x1c79f9){return _0x20ec18(_0x1c79f9);}};if(!_0x30000d)return'';if(!_0x30000d[_0x5948aa(0x210)](t)&&!_0x30000d[_0x5948aa(0x210)](e))return _0x30000d;const _0x17b384=_0x483304&&_0x3ca424[_0x5948aa(0x1f0)](_0x5948aa(0x20c),typeof _0x483304)?_0x483304[_0x3a3933]:null,_0x145082=_0x17b384?_0x3ca424[_0x5948aa(0x1f7)](Number,_0x17b384[_0x5948aa(0x1f4)]):NaN,_0x39334d=_0x17b384?Number(_0x17b384[_0x5948aa(0x205)]):NaN;return Number[_0x5948aa(0x1ff)](_0x145082)&&_0x3ca424[_0x5948aa(0x217)](_0x145082,0x0)&&Number[_0x5948aa(0x1ff)](_0x39334d)&&_0x3ca424['yGBzZ'](_0x39334d,0x0)?_0x30000d[_0x5948aa(0x1ec)](t)[_0x5948aa(0x214)](_0x3ca424['vhlDn'](String,_0x145082))[_0x5948aa(0x1ec)](e)[_0x5948aa(0x214)](_0x3ca424[_0x5948aa(0x1f1)](String,_0x39334d)):_0x30000d['split']('\x0a')[_0x5948aa(0x219)](_0xaeb3c7=>!_0xaeb3c7[_0x5948aa(0x210)](t)&&!_0xaeb3c7[_0x5948aa(0x210)](e))[_0x5948aa(0x214)]('\x0a');}export function expandPath(_0x4de5a4,{isWindows:_0x4af54f}={}){const _0x280dd5=_0x5c47a4,_0x5bcea8={'WzAZT':function(_0x271b9c,_0x8b7349){return _0x271b9c===_0x8b7349;},'oEpzY':function(_0x215419,_0x12036f){return _0x215419+_0x12036f;}};if(!_0x4de5a4)return _0x4de5a4;if(_0x4af54f){const _0x2e88da=process[_0x280dd5(0x202)][_0x280dd5(0x1f3)]||'';return _0x4de5a4[_0x280dd5(0x1fb)](/^%userprofile%/i,_0x2e88da)[_0x280dd5(0x1fb)](/^~/,_0x2e88da);}const _0x12cc22=process[_0x280dd5(0x202)]['HOME']||'';return _0x5bcea8[_0x280dd5(0x209)]('~',_0x4de5a4)?_0x12cc22:_0x4de5a4[_0x280dd5(0x1f5)]('~/')?_0x5bcea8['oEpzY'](_0x12cc22,_0x4de5a4[_0x280dd5(0x1eb)](0x1)):_0x4de5a4;}function n(_0xfc86d4){const _0x1a003a=_0x5c47a4,_0x4486d4={'ZsBub':function(_0x24ffa8,_0x20d355){return _0x24ffa8(_0x20d355);},'LIEgF':function(_0x2729fe,_0x22095c){return _0x2729fe||_0x22095c;},'ZoqxF':function(_0x5dea2f,_0x52f735,_0x3b3de2){return _0x5dea2f(_0x52f735,_0x3b3de2);}},_0x3ac91d=_0x4486d4[_0x1a003a(0x1ed)](String,_0x4486d4[_0x1a003a(0x207)](_0xfc86d4,''))[_0x1a003a(0x1ef)]()[_0x1a003a(0x200)](/(\d+)\.(\d+)/);return _0x3ac91d?[parseInt(_0x3ac91d[0x1],0xa),_0x4486d4[_0x1a003a(0x216)](parseInt,_0x3ac91d[0x2],0xa)]:[0x0,0x0];}function _0x5079(_0x4ea198,_0x11321f){_0x4ea198=_0x4ea198-0x1ea;const _0x3c92f8=_0x3c92();let _0x5079d5=_0x3c92f8[_0x4ea198];return _0x5079d5;}export function listModels(_0x5f219e){const _0x2b072c=_0x5c47a4,_0x34c736={'keWCm':function(_0x41ae31,_0x39dc08){return _0x41ae31==_0x39dc08;},'LveCo':function(_0x21d233,_0x3cb3aa){return _0x21d233(_0x3cb3aa);},'IUKIW':function(_0x20511e,_0x3b3423){return _0x20511e-_0x3b3423;},'RymHQ':function(_0x39a745,_0x310f61){return _0x39a745===_0x310f61;}};if(!Array[_0x2b072c(0x201)](_0x5f219e)||_0x34c736[_0x2b072c(0x1f2)](0x0,_0x5f219e[_0x2b072c(0x215)]))return[];const _0x2754a0=_0x5f219e[_0x2b072c(0x206)]((_0xbdfc49,_0x3a5eb3)=>{const _0x4170bc=_0x2b072c;if(_0x34c736[_0x4170bc(0x218)]('string',typeof _0xbdfc49))return{'index':_0x3a5eb3,'id':_0xbdfc49,'label':_0xbdfc49,'raw':_0xbdfc49};const _0x2a4054=_0xbdfc49['id']||_0xbdfc49['name']||_0x34c736[_0x4170bc(0x208)](String,_0xbdfc49);return{'index':_0x3a5eb3,'id':_0x2a4054,'label':_0xbdfc49['name']||_0xbdfc49['id']||_0x2a4054,'raw':_0xbdfc49};});return _0x2754a0[_0x2b072c(0x20f)]((_0x19bb1b,_0x3aff74)=>{const _0x782f5c=_0x2b072c,_0x377965=_0x34c736[_0x782f5c(0x208)](n,_0x19bb1b['id']),_0x58af75=_0x34c736[_0x782f5c(0x208)](n,_0x3aff74['id']);return _0x58af75[0x0]-_0x377965[0x0]||_0x34c736[_0x782f5c(0x1ea)](_0x58af75[0x1],_0x377965[0x1])||String(_0x19bb1b['id'])['localeCompare'](_0x34c736[_0x782f5c(0x208)](String,_0x3aff74['id']));}),_0x2754a0;}
package/dist/lib/ui.mjs CHANGED
@@ -1 +1 @@
1
- const _0x405db5=_0x27f6;(function(_0xbca597,_0x3bd7fd){const _0x2600fa=_0x27f6,_0x9aaf8b=_0xbca597();while(!![]){try{const _0x3e8fc0=parseInt(_0x2600fa(0x14c))/0x1*(-parseInt(_0x2600fa(0x15d))/0x2)+-parseInt(_0x2600fa(0x155))/0x3*(-parseInt(_0x2600fa(0x156))/0x4)+parseInt(_0x2600fa(0x154))/0x5*(-parseInt(_0x2600fa(0x161))/0x6)+-parseInt(_0x2600fa(0x163))/0x7*(parseInt(_0x2600fa(0x164))/0x8)+parseInt(_0x2600fa(0x157))/0x9+-parseInt(_0x2600fa(0x162))/0xa*(-parseInt(_0x2600fa(0x165))/0xb)+parseInt(_0x2600fa(0x14e))/0xc;if(_0x3e8fc0===_0x3bd7fd)break;else _0x9aaf8b['push'](_0x9aaf8b['shift']());}catch(_0x260254){_0x9aaf8b['push'](_0x9aaf8b['shift']());}}}(_0x7709,0x744f5));import _0x44cfeb from'chalk';import{createRequire as _0x15fcbe}from'node:module';const n=_0x405db5(0x15a)+_0x15fcbe(import.meta.url)(_0x405db5(0x14d))[_0x405db5(0x14b)];export function banner(){const _0x565953=_0x405db5;console[_0x565953(0x15f)](_0x44cfeb[_0x565953(0x14a)][_0x565953(0x166)](n['replace'](/^\n/,'')[_0x565953(0x15e)]()));}export function ok(_0x1f25b5){const _0x5574eb=_0x405db5;console[_0x5574eb(0x15f)](_0x44cfeb['green']('✓\x20'+_0x1f25b5));}export function fail(_0xa2dda9){const _0x1fbdab=_0x405db5;console['error'](_0x44cfeb[_0x1fbdab(0x14f)]('✗\x20'+_0xa2dda9));}function _0x27f6(_0x30059a,_0xcd63ab){_0x30059a=_0x30059a-0x14a;const _0x7709ed=_0x7709();let _0x27f673=_0x7709ed[_0x30059a];return _0x27f673;}export function warn(_0x30e5e6){const _0x18dedc=_0x405db5;console['warn'](_0x44cfeb[_0x18dedc(0x169)]('⚠\x20'+_0x30e5e6));}export function info(_0x279df0){const _0x19f230=_0x405db5;console['log'](_0x44cfeb[_0x19f230(0x15b)]('ℹ\x20'+_0x279df0));}export function step(_0x31d5d3){const _0x1886de=_0x405db5;console['log'](),console[_0x1886de(0x15f)](_0x44cfeb[_0x1886de(0x14a)][_0x1886de(0x166)]('■\x20'+_0x31d5d3));}export function guide(_0x55b498){const _0xe3ffb9=_0x405db5,_0xba05e6={'JDDrs':function(_0x355388,_0x2683ba){return _0x355388!==_0x2683ba;},'cEuYM':function(_0x453de5,_0x75757a){return _0x453de5(_0x75757a);},'Hfarn':_0xe3ffb9(0x158)};if(_0x55b498&&_0xba05e6[_0xe3ffb9(0x168)](0x0,_0x55b498[_0xe3ffb9(0x151)])){_0xba05e6[_0xe3ffb9(0x167)](step,_0xba05e6[_0xe3ffb9(0x150)]);for(const _0x1dcf30 of _0x55b498){const _0x124bad=_0x44cfeb[_0xe3ffb9(0x14a)]['green'](_0xe3ffb9(0x152)+_0x1dcf30[_0xe3ffb9(0x159)]),_0x4cb5e6=_0x44cfeb['green'](_0xe3ffb9(0x153)+_0x1dcf30[_0xe3ffb9(0x15c)]),_0x42e2ca=_0x44cfeb['dim'](_0x1dcf30[_0xe3ffb9(0x160)]||'');console[_0xe3ffb9(0x15f)](_0x124bad),console[_0xe3ffb9(0x15f)](_0x4cb5e6),_0x42e2ca&&console[_0xe3ffb9(0x15f)](_0x42e2ca),console[_0xe3ffb9(0x15f)]();}}}export function plain(_0x9d3ae8){const _0x2de509=_0x405db5;console[_0x2de509(0x15f)](_0x9d3ae8);}function _0x7709(){const _0x29340a=['49VcRgmx','875848dfwtTQ','1199tHMSXo','cyan','cEuYM','JDDrs','yellow','bold','version','5SDFHWG','../package.json','15281724KZDvwX','red','Hfarn','length','\x20\x20▶\x20','\x20\x20\x20\x20启动:','170xBUMGh','3qdVxUE','689764wUMjRV','772164XgXbVi','启动\x20/\x20使用指南','name','\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','blue','startCmd','142970dBYjIv','trimEnd','log','usage','36330OrmXZs','25170bQMThF'];_0x7709=function(){return _0x29340a;};return _0x7709();}export{_0x44cfeb as chalk};
1
+ const _0x1dfcce=_0x3c14;(function(_0xb4406d,_0x10417f){const _0x28301b=_0x3c14,_0x3bb8a5=_0xb4406d();while(!![]){try{const _0x5095da=-parseInt(_0x28301b(0xbe))/0x1+-parseInt(_0x28301b(0xc3))/0x2+parseInt(_0x28301b(0xb2))/0x3*(-parseInt(_0x28301b(0xac))/0x4)+parseInt(_0x28301b(0xc0))/0x5+parseInt(_0x28301b(0xab))/0x6+-parseInt(_0x28301b(0xc2))/0x7+parseInt(_0x28301b(0xb8))/0x8;if(_0x5095da===_0x10417f)break;else _0x3bb8a5['push'](_0x3bb8a5['shift']());}catch(_0x2a565b){_0x3bb8a5['push'](_0x3bb8a5['shift']());}}}(_0x444a,0x7bf63));function _0x3c14(_0x30ce63,_0x374ff3){_0x30ce63=_0x30ce63-0xab;const _0x444a8b=_0x444a();let _0x3c14e9=_0x444a8b[_0x30ce63];return _0x3c14e9;}import _0x2bdcd7 from'chalk';function _0x444a(){const _0x4dbab1=['2055582egnEHG','260200DajLKy','dim','warn','yellow','usage','\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','24FPQoRN','trimEnd','log','green','version','name','19032992jJVcHL','bold','length','启动\x20/\x20使用指南','\x20\x20\x20\x20启动:','blue','647283xJeZOF','\x20\x20▶\x20','70485wMYWAx','error','4091556tWQolo','951760hQsHSv'];_0x444a=function(){return _0x4dbab1;};return _0x444a();}import{createRequire as _0x2d1b8a}from'node:module';const n=_0x1dfcce(0xb1)+_0x2d1b8a(import.meta.url)('../package.json')[_0x1dfcce(0xb6)];export function banner(){const _0x411793=_0x1dfcce;console[_0x411793(0xb4)](_0x2bdcd7['bold']['cyan'](n['replace'](/^\n/,'')[_0x411793(0xb3)]()));}export function ok(_0x28e5e8){const _0x3e9380=_0x1dfcce;console[_0x3e9380(0xb4)](_0x2bdcd7[_0x3e9380(0xb5)]('✓\x20'+_0x28e5e8));}export function fail(_0x2904f5){const _0x56eb02=_0x1dfcce;console[_0x56eb02(0xc1)](_0x2bdcd7['red']('✗\x20'+_0x2904f5));}export function warn(_0x116941){const _0xa4d0b7=_0x1dfcce;console[_0xa4d0b7(0xae)](_0x2bdcd7[_0xa4d0b7(0xaf)]('⚠\x20'+_0x116941));}export function info(_0x3c784c){const _0x42fdb9=_0x1dfcce;console[_0x42fdb9(0xb4)](_0x2bdcd7[_0x42fdb9(0xbd)]('ℹ\x20'+_0x3c784c));}export function step(_0x58c4df){const _0x58d272=_0x1dfcce;console[_0x58d272(0xb4)](),console[_0x58d272(0xb4)](_0x2bdcd7[_0x58d272(0xb9)]['cyan']('■\x20'+_0x58c4df));}export function guide(_0x3ea464){const _0x95f659=_0x1dfcce,_0x2a40ae={'ZgKmy':_0x95f659(0xbb)};if(_0x3ea464&&0x0!==_0x3ea464[_0x95f659(0xba)]){step(_0x2a40ae['ZgKmy']);for(const _0x4b54b8 of _0x3ea464){const _0x5bfc57=_0x2bdcd7[_0x95f659(0xb9)]['green'](_0x95f659(0xbf)+_0x4b54b8[_0x95f659(0xb7)]),_0x1cb186=_0x2bdcd7[_0x95f659(0xb5)](_0x95f659(0xbc)+_0x4b54b8['startCmd']),_0x167c96=_0x2bdcd7[_0x95f659(0xad)](_0x4b54b8[_0x95f659(0xb0)]||'');console['log'](_0x5bfc57),console['log'](_0x1cb186),_0x167c96&&console[_0x95f659(0xb4)](_0x167c96),console[_0x95f659(0xb4)]();}}}export function plain(_0x40b819){const _0x2921ad=_0x1dfcce;console[_0x2921ad(0xb4)](_0x40b819);}export{_0x2bdcd7 as chalk};