diff --git a/docs/changelogs/CHANGELOG.v1.3.5.md b/docs/changelogs/CHANGELOG.v1.3.5.md index 200fb7eb..f0adcbe6 100644 --- a/docs/changelogs/CHANGELOG.v1.3.5.md +++ b/docs/changelogs/CHANGELOG.v1.3.5.md @@ -4,10 +4,12 @@ QQ Version: Windows 9.9.9-23424 / Linux 3.2.7-23361 ## 修复与优化 * 优化启动脚本 -* 尝试修复收不到群成员减少事件 -## 新增与调整 +* 修复非管理时群成员减少事件上报 **无法获取操作者与操作类型** * 修复快速重启进程清理问题 +* 优化配置文件格式 **注意备份配置** +## 新增与调整 * 支持WebUi热重载 +* 新增首次启动输出webui秘钥 * 新增群荣誉信息 /get_group_honor_info -新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api) +新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api) \ No newline at end of file diff --git a/src/core b/src/core index b1351835..ed10e0fc 160000 --- a/src/core +++ b/src/core @@ -1 +1 @@ -Subproject commit b1351835673f86d445d244fd515560bfcd0b7adb +Subproject commit ed10e0fc9f4b98ad2b677c8862f5cc817a5560ba diff --git a/src/core.lib/src/adapters/NodeIDependsAdapter.js b/src/core.lib/src/adapters/NodeIDependsAdapter.js index 40be88c0..1b70b960 100644 --- a/src/core.lib/src/adapters/NodeIDependsAdapter.js +++ b/src/core.lib/src/adapters/NodeIDependsAdapter.js @@ -1 +1 @@ -var _0x323ba7=_0x398c;(function(_0x1efda2,_0x4f19da){var _0x4a9835=_0x398c,_0x305dd2=_0x1efda2();while(!![]){try{var _0x3bde6f=parseInt(_0x4a9835(0x117))/0x1*(-parseInt(_0x4a9835(0x110))/0x2)+-parseInt(_0x4a9835(0x10e))/0x3+-parseInt(_0x4a9835(0x10f))/0x4*(-parseInt(_0x4a9835(0x11b))/0x5)+-parseInt(_0x4a9835(0x111))/0x6*(-parseInt(_0x4a9835(0x119))/0x7)+-parseInt(_0x4a9835(0x115))/0x8+parseInt(_0x4a9835(0x112))/0x9+parseInt(_0x4a9835(0x11a))/0xa*(parseInt(_0x4a9835(0x114))/0xb);if(_0x3bde6f===_0x4f19da)break;else _0x305dd2['push'](_0x305dd2['shift']());}catch(_0x76a26a){_0x305dd2['push'](_0x305dd2['shift']());}}}(_0x4763,0xb24a3));function _0x4763(){var _0x28b3fa=['3061146mhiSqg','4321384NvZVaV','onMSFStatusChange','81UckaAh','getGroupCode','172571pJsUlP','50DRqKDp','78635VCnsag','1500129IuFukg','164XFBxwp','23378VjcXvX','54LzGZgV','4132674aRsgWj','onMSFSsoError'];_0x4763=function(){return _0x28b3fa;};return _0x4763();}function _0x398c(_0x459918,_0x35f902){var _0x476342=_0x4763();return _0x398c=function(_0x398c78,_0x397eb2){_0x398c78=_0x398c78-0x10e;var _0x29f59c=_0x476342[_0x398c78];return _0x29f59c;},_0x398c(_0x459918,_0x35f902);}export class DependsAdapter{[_0x323ba7(0x116)](_0x328e1c,_0x1bd629){}[_0x323ba7(0x113)](_0x118e2a){}[_0x323ba7(0x118)](_0x2a625b){}} \ No newline at end of file +var _0x35540b=_0x1a1f;function _0x1a1f(_0x36cb84,_0x29c1ec){var _0x1644c9=_0x1644();return _0x1a1f=function(_0x1a1ffb,_0x23ba40){_0x1a1ffb=_0x1a1ffb-0xfc;var _0xec1cdc=_0x1644c9[_0x1a1ffb];return _0xec1cdc;},_0x1a1f(_0x36cb84,_0x29c1ec);}function _0x1644(){var _0x567c65=['407745rGDJKM','6678690efuqdS','4IsrSPl','10oVqkyy','72ZCiGcG','20981741mrxJbu','52uMXnQe','5498325iFsfKS','195411GtoBFY','1264235tkrdhD','onMSFStatusChange','14290urQsPS'];_0x1644=function(){return _0x567c65;};return _0x1644();}(function(_0x51eb69,_0x9ce55d){var _0x73abf6=_0x1a1f,_0x2c69bc=_0x51eb69();while(!![]){try{var _0x5efe28=-parseInt(_0x73abf6(0x105))/0x1*(parseInt(_0x73abf6(0xfe))/0x2)+-parseInt(_0x73abf6(0x107))/0x3+parseInt(_0x73abf6(0x101))/0x4*(-parseInt(_0x73abf6(0x106))/0x5)+-parseInt(_0x73abf6(0x100))/0x6+-parseInt(_0x73abf6(0xfc))/0x7*(-parseInt(_0x73abf6(0x103))/0x8)+-parseInt(_0x73abf6(0xff))/0x9+parseInt(_0x73abf6(0x102))/0xa*(parseInt(_0x73abf6(0x104))/0xb);if(_0x5efe28===_0x9ce55d)break;else _0x2c69bc['push'](_0x2c69bc['shift']());}catch(_0x59cb91){_0x2c69bc['push'](_0x2c69bc['shift']());}}}(_0x1644,0xcc9e2));export class DependsAdapter{[_0x35540b(0xfd)](_0x5544dc,_0x42e602){}['onMSFSsoError'](_0x1aa939){}['getGroupCode'](_0x3a9fa1){}} \ No newline at end of file diff --git a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js index 62bbfc33..4ce3b854 100644 --- a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js +++ b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js @@ -1 +1 @@ -function _0x19f5(){var _0x5d7c85=['2343152gSvDMt','22695888JiaSMz','236958pBWBuB','5521439xolLzd','946867ZPAwRm','44956VrXLXT','9CrULxI','1869468SalcKT','dispatchCallWithJson','30csaDuT','35RGyDvT','dispatchRequest','360vpxVfq','dispatchCall','34TdpmOw'];_0x19f5=function(){return _0x5d7c85;};return _0x19f5();}var _0x5be0d1=_0x4858;(function(_0x119753,_0x1f7cc0){var _0x5d25b9=_0x4858,_0x5d45ea=_0x119753();while(!![]){try{var _0x1591d6=parseInt(_0x5d25b9(0x148))/0x1+-parseInt(_0x5d25b9(0x143))/0x2*(-parseInt(_0x5d25b9(0x146))/0x3)+parseInt(_0x5d25b9(0x149))/0x4*(parseInt(_0x5d25b9(0x150))/0x5)+parseInt(_0x5d25b9(0x14b))/0x6*(-parseInt(_0x5d25b9(0x14e))/0x7)+parseInt(_0x5d25b9(0x144))/0x8*(-parseInt(_0x5d25b9(0x14a))/0x9)+parseInt(_0x5d25b9(0x14d))/0xa*(parseInt(_0x5d25b9(0x147))/0xb)+-parseInt(_0x5d25b9(0x145))/0xc;if(_0x1591d6===_0x1f7cc0)break;else _0x5d45ea['push'](_0x5d45ea['shift']());}catch(_0x2e5459){_0x5d45ea['push'](_0x5d45ea['shift']());}}}(_0x19f5,0xd2970));function _0x4858(_0x1656ef,_0x677bf2){var _0x19f5ca=_0x19f5();return _0x4858=function(_0x485879,_0x385028){_0x485879=_0x485879-0x143;var _0x37ad99=_0x19f5ca[_0x485879];return _0x37ad99;},_0x4858(_0x1656ef,_0x677bf2);}export class DispatcherAdapter{[_0x5be0d1(0x14f)](_0x2c48d4){}[_0x5be0d1(0x151)](_0x2ba930){}[_0x5be0d1(0x14c)](_0x21b7d0){}} \ No newline at end of file +var _0xd6d85d=_0x23ff;(function(_0x357889,_0xd54c17){var _0x3afe44=_0x23ff,_0x3c5e27=_0x357889();while(!![]){try{var _0x10c646=parseInt(_0x3afe44(0x127))/0x1*(parseInt(_0x3afe44(0x12b))/0x2)+-parseInt(_0x3afe44(0x124))/0x3*(parseInt(_0x3afe44(0x12e))/0x4)+-parseInt(_0x3afe44(0x123))/0x5+parseInt(_0x3afe44(0x12c))/0x6+parseInt(_0x3afe44(0x122))/0x7*(parseInt(_0x3afe44(0x129))/0x8)+-parseInt(_0x3afe44(0x128))/0x9+parseInt(_0x3afe44(0x12a))/0xa*(parseInt(_0x3afe44(0x12f))/0xb);if(_0x10c646===_0xd54c17)break;else _0x3c5e27['push'](_0x3c5e27['shift']());}catch(_0xc68fab){_0x3c5e27['push'](_0x3c5e27['shift']());}}}(_0x1d77,0x4389c));export class DispatcherAdapter{[_0xd6d85d(0x126)](_0x2b8bf5){}[_0xd6d85d(0x125)](_0x34725e){}[_0xd6d85d(0x12d)](_0x50e41e){}}function _0x23ff(_0x101031,_0x30715c){var _0x1d7718=_0x1d77();return _0x23ff=function(_0x23ffdd,_0x4767bf){_0x23ffdd=_0x23ffdd-0x122;var _0x5745ce=_0x1d7718[_0x23ffdd];return _0x5745ce;},_0x23ff(_0x101031,_0x30715c);}function _0x1d77(){var _0x205dfa=['872svQUDq','25350rciidS','588vIiUzX','2139090NgHiMx','dispatchCallWithJson','4mWbOGo','3421IsoXEm','2723qCyJeb','1628610JDVPSl','1529301jZHrEO','dispatchCall','dispatchRequest','479SZByIA','1944018KXPsHI'];_0x1d77=function(){return _0x205dfa;};return _0x1d77();} \ No newline at end of file diff --git a/src/core.lib/src/adapters/NodeIGlobalAdapter.js b/src/core.lib/src/adapters/NodeIGlobalAdapter.js index ceb36db4..390b6eeb 100644 --- a/src/core.lib/src/adapters/NodeIGlobalAdapter.js +++ b/src/core.lib/src/adapters/NodeIGlobalAdapter.js @@ -1 +1 @@ -var _0x3ef908=_0x1746;(function(_0x151b35,_0x2686f9){var _0x2f2995=_0x1746,_0x292d36=_0x151b35();while(!![]){try{var _0x1760ca=-parseInt(_0x2f2995(0x188))/0x1+parseInt(_0x2f2995(0x18b))/0x2+-parseInt(_0x2f2995(0x194))/0x3*(-parseInt(_0x2f2995(0x196))/0x4)+-parseInt(_0x2f2995(0x193))/0x5+parseInt(_0x2f2995(0x18a))/0x6*(parseInt(_0x2f2995(0x18c))/0x7)+parseInt(_0x2f2995(0x189))/0x8*(-parseInt(_0x2f2995(0x190))/0x9)+parseInt(_0x2f2995(0x18d))/0xa;if(_0x1760ca===_0x2686f9)break;else _0x292d36['push'](_0x292d36['shift']());}catch(_0x17c7ca){_0x292d36['push'](_0x292d36['shift']());}}}(_0x3236,0xf332c));function _0x1746(_0x52df15,_0x11d209){var _0x3236ca=_0x3236();return _0x1746=function(_0x174657,_0x2ed4d1){_0x174657=_0x174657-0x188;var _0x362fe6=_0x3236ca[_0x174657];return _0x362fe6;},_0x1746(_0x52df15,_0x11d209);}export class GlobalAdapter{[_0x3ef908(0x191)](..._0x19bba9){}[_0x3ef908(0x192)](..._0x46e7fe){}[_0x3ef908(0x18e)](..._0x170297){}['fixPicImgType'](..._0x20684f){}['getAppSetting'](..._0x448877){}['onInstallFinished'](..._0x3d897e){}[_0x3ef908(0x195)](..._0x48c7b7){}[_0x3ef908(0x18f)](..._0x14174e){}}function _0x3236(){var _0x47ed57=['onUpdateGeneralFlag','1220RNTEaz','1152269bYDcHw','54904cXiOdY','5101818brAcZL','3099306gyZSvr','7cdjqpJ','4879230TbMgxo','onShowErrUITips','onGetOfflineMsg','1413OtzBZD','onLog','onGetSrvCalTime','4710320VaApak','12591YuvZyy'];_0x3236=function(){return _0x47ed57;};return _0x3236();} \ No newline at end of file +function _0x1cb1(_0x34103d,_0x13dfdf){var _0x5be4f0=_0x5be4();return _0x1cb1=function(_0x1cb1e0,_0x50d9ee){_0x1cb1e0=_0x1cb1e0-0x174;var _0x277c25=_0x5be4f0[_0x1cb1e0];return _0x277c25;},_0x1cb1(_0x34103d,_0x13dfdf);}function _0x5be4(){var _0x5d509a=['9jTBTvV','3505870jiAlOg','4589790uFcoQE','5237136ejGKom','onInstallFinished','onShowErrUITips','307348kSzrkM','318012mEmOaS','3OnepSQ','2053660tGZyUK','7aVFHxw','getAppSetting','1503132DwEpJY','fixPicImgType','onGetOfflineMsg'];_0x5be4=function(){return _0x5d509a;};return _0x5be4();}var _0x4940e8=_0x1cb1;(function(_0xc0e070,_0x1b6e8b){var _0x43f664=_0x1cb1,_0x19c3a5=_0xc0e070();while(!![]){try{var _0x7c4c9c=-parseInt(_0x43f664(0x178))/0x1*(-parseInt(_0x43f664(0x176))/0x2)+-parseInt(_0x43f664(0x17c))/0x3+-parseInt(_0x43f664(0x177))/0x4+parseInt(_0x43f664(0x179))/0x5+parseInt(_0x43f664(0x181))/0x6*(-parseInt(_0x43f664(0x17a))/0x7)+parseInt(_0x43f664(0x182))/0x8+parseInt(_0x43f664(0x17f))/0x9*(parseInt(_0x43f664(0x180))/0xa);if(_0x7c4c9c===_0x1b6e8b)break;else _0x19c3a5['push'](_0x19c3a5['shift']());}catch(_0x43b591){_0x19c3a5['push'](_0x19c3a5['shift']());}}}(_0x5be4,0x81c0f));export class GlobalAdapter{['onLog'](..._0x5785ba){}['onGetSrvCalTime'](..._0x2f5395){}[_0x4940e8(0x175)](..._0x2fa560){}[_0x4940e8(0x17d)](..._0x3c9fe0){}[_0x4940e8(0x17b)](..._0x120d59){}[_0x4940e8(0x174)](..._0x49a899){}['onUpdateGeneralFlag'](..._0x4dcbdf){}[_0x4940e8(0x17e)](..._0x165313){}} \ No newline at end of file diff --git a/src/core.lib/src/adapters/index.js b/src/core.lib/src/adapters/index.js index b438ad8e..16ca7645 100644 --- a/src/core.lib/src/adapters/index.js +++ b/src/core.lib/src/adapters/index.js @@ -1 +1 @@ -(function(_0x521e41,_0x144e64){var _0x4ce857=_0x5206,_0x476c81=_0x521e41();while(!![]){try{var _0x46f706=parseInt(_0x4ce857(0x1cc))/0x1+parseInt(_0x4ce857(0x1ca))/0x2+parseInt(_0x4ce857(0x1d2))/0x3*(parseInt(_0x4ce857(0x1c9))/0x4)+-parseInt(_0x4ce857(0x1d0))/0x5+-parseInt(_0x4ce857(0x1cb))/0x6*(-parseInt(_0x4ce857(0x1cd))/0x7)+-parseInt(_0x4ce857(0x1d1))/0x8+-parseInt(_0x4ce857(0x1ce))/0x9*(-parseInt(_0x4ce857(0x1cf))/0xa);if(_0x46f706===_0x144e64)break;else _0x476c81['push'](_0x476c81['shift']());}catch(_0x5ed609){_0x476c81['push'](_0x476c81['shift']());}}}(_0x1301,0x64f6d));function _0x5206(_0x4b94db,_0x5a2609){var _0x13016b=_0x1301();return _0x5206=function(_0x5206d9,_0x118e3b){_0x5206d9=_0x5206d9-0x1c9;var _0x59136c=_0x13016b[_0x5206d9];return _0x59136c;},_0x5206(_0x4b94db,_0x5a2609);}function _0x1301(){var _0x25b97c=['1635VEZIiZ','796neFoLY','927510UcWwqs','48kLqRbo','124419nNKRxS','139174MTGmIF','18909ozvJBx','100NiLWUD','85585eQUnNg','3568232gRxvQs'];_0x1301=function(){return _0x25b97c;};return _0x1301();}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter'; \ No newline at end of file +function _0x46cb(){var _0x185c30=['1239714QkKWTX','3260072NajbLR','52sVkZql','2FnoNQt','1903650WzwdNg','7fHSozJ','4432041MzBAuz','1012056EawUwU','25710xlaZGR','82777bbHfgF'];_0x46cb=function(){return _0x185c30;};return _0x46cb();}function _0x161f(_0x4e5bfb,_0x58c76b){var _0x46cbff=_0x46cb();return _0x161f=function(_0x161f12,_0x4a0f6e){_0x161f12=_0x161f12-0x6a;var _0xf57fb5=_0x46cbff[_0x161f12];return _0xf57fb5;},_0x161f(_0x4e5bfb,_0x58c76b);}(function(_0x1ee3dc,_0x3e4cba){var _0x2841cd=_0x161f,_0x4aeda5=_0x1ee3dc();while(!![]){try{var _0x470817=parseInt(_0x2841cd(0x70))/0x1*(-parseInt(_0x2841cd(0x6a))/0x2)+-parseInt(_0x2841cd(0x71))/0x3+parseInt(_0x2841cd(0x73))/0x4*(-parseInt(_0x2841cd(0x6f))/0x5)+parseInt(_0x2841cd(0x6e))/0x6+parseInt(_0x2841cd(0x6c))/0x7*(parseInt(_0x2841cd(0x72))/0x8)+parseInt(_0x2841cd(0x6d))/0x9+-parseInt(_0x2841cd(0x6b))/0xa;if(_0x470817===_0x3e4cba)break;else _0x4aeda5['push'](_0x4aeda5['shift']());}catch(_0x35fc3a){_0x4aeda5['push'](_0x4aeda5['shift']());}}}(_0x46cb,0x4d010));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter'; \ No newline at end of file diff --git a/src/core.lib/src/apis/file.js b/src/core.lib/src/apis/file.js index fc16537b..1c98829e 100644 --- a/src/core.lib/src/apis/file.js +++ b/src/core.lib/src/apis/file.js @@ -1 +1 @@ -function _0x1b92(_0x49f754,_0x5e2cd1){const _0x1c5b3f=_0x1c5b();return _0x1b92=function(_0x1b927f,_0x531dc5){_0x1b927f=_0x1b927f-0xec;let _0x5eeae9=_0x1c5b3f[_0x1b927f];return _0x5eeae9;},_0x1b92(_0x49f754,_0x5e2cd1);}const _0x1c867d=_0x1b92;(function(_0x25cf70,_0xe9e120){const _0x11e6a4=_0x1b92,_0x410edb=_0x25cf70();while(!![]){try{const _0x203e71=parseInt(_0x11e6a4(0x10d))/0x1*(-parseInt(_0x11e6a4(0x12a))/0x2)+-parseInt(_0x11e6a4(0xf4))/0x3*(-parseInt(_0x11e6a4(0x13b))/0x4)+parseInt(_0x11e6a4(0xee))/0x5*(-parseInt(_0x11e6a4(0x11f))/0x6)+parseInt(_0x11e6a4(0x119))/0x7+parseInt(_0x11e6a4(0x104))/0x8*(parseInt(_0x11e6a4(0xef))/0x9)+parseInt(_0x11e6a4(0xfa))/0xa*(-parseInt(_0x11e6a4(0xf1))/0xb)+parseInt(_0x11e6a4(0x137))/0xc*(parseInt(_0x11e6a4(0x133))/0xd);if(_0x203e71===_0xe9e120)break;else _0x410edb['push'](_0x410edb['shift']());}catch(_0x47f6d2){_0x410edb['push'](_0x410edb['shift']());}}}(_0x1c5b,0x87443));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x18f25d from'path';import _0x1bf9f9 from'fs';import _0x57fcf4 from'fs/promises';import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x3668e9 from'file-type';import{MsgListener}from'@/core/listeners';import _0x9fe3ab from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';function _0x1c5b(){const _0x27a3a4=['set','startsWith','下载超时','msgId','start\x20downloadMedia','3108VQHJTd','clearCacheDataByKeys','LVyKi','originImageUrl','&rkey=','onLoginSuccess','PNnKr','fileTypeFromFile','getChatCacheList','getDesktopTmpPath','scanCache','addCacheScanedPaths','5850943VWVEfR','modhc','getStorageCleanService','getFileSize','toUpperCase','sWRZh','66wEIaHY','downloadMedia','receive\x20downloadMedia\x20task','downloadRichMedia','join','zGZME','vXSIU','OpJoQ','getRkey','getCacheSessionPathList','group_rkey','88TGkifp','TcVAc','downloadPath','getRichMediaFilePathForGuild','filePath','basename','md5HexStr','UTwDy','getMsgService','44382HcxYYr','RduXP','tmp','qAtDS','432Yeprxz','addListener','includes','downloadMedia\x20complete','116528hbNQFG','tGnaS','fileUuid','hotUpdate','getHotUpdateCachePath','442415WSVsmz','9gsCsaW','addCacheScannedPaths','73359dXieeZ','getFileCacheInfo','akwaV','39nhfawn','/download','ext','getChatCacheInfo','onRichMediaDownloadComplete','PIC','290ZyOGNy','spSPo','oGvGG','clearChatCache','uploadFile','session','private_rkey','eALVc','defaultFileDownloadPath','getFileType','4160384snZFNu','Fkhrd','copyFile','existsSync'];_0x1c5b=function(){return _0x27a3a4;};return _0x1c5b();}import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x1c867d(0xf8)]=_0x33ecab=>{for(const [_0x4274a6,_0x35bee6]of downloadMediaTasks){_0x35bee6(_0x33ecab),downloadMediaTasks['delete'](_0x4274a6);}},setTimeout(()=>{const _0x484771=_0x1c867d;napCatCore[_0x484771(0x112)](()=>{const _0x19315c=_0x484771;napCatCore[_0x19315c(0x138)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x1c867d(0x103)](_0xdee063){const _0x3374cf=_0x1c867d;return _0x3668e9[_0x3374cf(0x114)](_0xdee063);}static async[_0x1c867d(0x106)](_0xf4ce2c,_0x59c9ae){const _0x4beadf=_0x1c867d;await napCatCore['util'][_0x4beadf(0x106)](_0xf4ce2c,_0x59c9ae);}static async['getFileSize'](_0x3bf14b){const _0x5e6f3b=_0x1c867d;return await napCatCore['util'][_0x5e6f3b(0x11c)](_0x3bf14b);}static async[_0x1c867d(0xfe)](_0x5af51e,_0x17e59e=ElementType[_0x1c867d(0xf9)],_0x1eae80=0x0){const _0x752ada=_0x1c867d,_0x342caa={'eALVc':function(_0x7981aa,_0x5b6594){return _0x7981aa(_0x5b6594);},'spSPo':function(_0x573631,_0x282016){return _0x573631===_0x282016;}},_0x4974bc=await _0x342caa[_0x752ada(0x101)](calculateFileMD5,_0x5af51e);let _0x21be70=(await NTQQFileApi[_0x752ada(0x103)](_0x5af51e))?.[_0x752ada(0xf6)]||'';_0x21be70&&(_0x21be70='.'+_0x21be70);let _0x252ff2=''+_0x18f25d[_0x752ada(0x12f)](_0x5af51e);_0x342caa[_0x752ada(0xfb)](_0x252ff2['indexOf']('.'),-0x1)&&(_0x252ff2+=_0x21be70);const _0x1b33ae=napCatCore[_0x752ada(0xff)][_0x752ada(0x132)]()[_0x752ada(0x12d)]({'md5HexStr':_0x4974bc,'fileName':_0x252ff2,'elementType':_0x17e59e,'elementSubType':_0x1eae80,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi['copyFile'](_0x5af51e,_0x1b33ae);const _0x2c612b=await NTQQFileApi[_0x752ada(0x11c)](_0x5af51e);return{'md5':_0x4974bc,'fileName':_0x252ff2,'path':_0x1b33ae,'fileSize':_0x2c612b,'ext':_0x21be70};}static async[_0x1c867d(0x120)](_0xf56b3b,_0x106a46,_0x406d0f,_0x5a0e8d,_0x255798,_0x14eb84,_0x56740e=0x3e8*0x3c*0x2,_0x578f5b=![]){const _0xd556fe=_0x1c867d,_0x555a8e={'akwaV':function(_0x7ad60e,_0x2f6a9c){return _0x7ad60e(_0x2f6a9c);},'vXSIU':function(_0x48497,_0xb57704){return _0x48497===_0xb57704;},'eRsOT':function(_0x32728a,_0x23a4ec){return _0x32728a(_0x23a4ec);},'OpJoQ':function(_0x5da5fe){return _0x5da5fe();},'tGnaS':function(_0x488fcb,_0x4bcea9,_0xbd975c){return _0x488fcb(_0x4bcea9,_0xbd975c);},'sWRZh':function(_0x33a7b1,_0xb20ae3,_0x47c9dd,_0x35b9a9,_0x8eca4a,_0x503319,_0x2c3b99,_0x5ea604,_0x435d2e,_0x6ea456){return _0x33a7b1(_0xb20ae3,_0x47c9dd,_0x35b9a9,_0x8eca4a,_0x503319,_0x2c3b99,_0x5ea604,_0x435d2e,_0x6ea456);},'UTwDy':_0xd556fe(0x121),'PNnKr':_0xd556fe(0x10c)};_0x555a8e[_0xd556fe(0x11e)](logDebug,_0x555a8e[_0xd556fe(0x131)],_0xf56b3b,_0x106a46,_0x406d0f,_0x5a0e8d,_0x255798,_0x14eb84,_0x56740e,_0x578f5b);if(_0x14eb84&&_0x1bf9f9[_0xd556fe(0x107)](_0x14eb84)){if(_0x578f5b)try{await _0x57fcf4['unlink'](_0x14eb84);}catch(_0x58993b){}else return _0x14eb84;}return logDebug(_0x555a8e[_0xd556fe(0x113)],_0xf56b3b,_0x106a46,_0x406d0f,_0x5a0e8d,_0x255798,_0x14eb84,_0x56740e,_0x578f5b),new Promise((_0x5bcec3,_0x59cd70)=>{const _0x2bc26c=_0xd556fe,_0x45bc58={'cSukk':function(_0x348055,_0x32ad7b,_0x2377f5,_0x150634){return _0x348055(_0x32ad7b,_0x2377f5,_0x150634);},'Fkhrd':_0x2bc26c(0x13a),'LVyKi':function(_0x3d98bb,_0x49487b){const _0x160ff5=_0x2bc26c;return _0x555a8e[_0x160ff5(0x125)](_0x3d98bb,_0x49487b);},'modhc':_0x2bc26c(0x12c),'TcVAc':function(_0x77a7a1,_0x48f4a0){return _0x555a8e['eRsOT'](_0x77a7a1,_0x48f4a0);}};let _0x5c09fe=![];const _0x54df30=_0x399614=>{const _0x5336d7=_0x2bc26c;_0x45bc58['cSukk'](logDebug,_0x45bc58[_0x5336d7(0x105)],_0x399614,_0xf56b3b);if(_0x45bc58[_0x5336d7(0x10f)](_0x399614[_0x5336d7(0x10b)],_0xf56b3b)){_0x5c09fe=!![];let _0x4b138f=_0x399614[_0x5336d7(0x12e)];if(_0x4b138f[_0x5336d7(0x109)]('\x5c')){const _0x437bc9=sessionConfig[_0x5336d7(0x102)];logDebug(_0x45bc58[_0x5336d7(0x11a)],_0x437bc9),_0x4b138f=_0x18f25d[_0x5336d7(0x123)](_0x437bc9,_0x4b138f);}_0x45bc58[_0x5336d7(0x12b)](_0x5bcec3,_0x4b138f);}};downloadMediaTasks[_0x2bc26c(0x108)](_0x555a8e[_0x2bc26c(0x126)](randomUUID),_0x54df30),_0x555a8e[_0x2bc26c(0x13c)](setTimeout,()=>{const _0x1e7dbb=_0x2bc26c;!_0x5c09fe&&_0x555a8e[_0x1e7dbb(0xf3)](_0x59cd70,_0x1e7dbb(0x10a));},_0x56740e),napCatCore[_0x2bc26c(0xff)][_0x2bc26c(0x132)]()[_0x2bc26c(0x122)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0xf56b3b,'chatType':_0x106a46,'peerUid':_0x406d0f,'elementId':_0x5a0e8d,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x255798});});}static async['getImageSize'](_0x169dc8){const _0x8a697b={'zGZME':function(_0x1cbbe1,_0x257441){return _0x1cbbe1(_0x257441);}};return new Promise((_0x67439,_0x598f4)=>{_0x9fe3ab(_0x169dc8,(_0x1e89d2,_0x31a3ca)=>{const _0x54568a=_0x1b92;_0x1e89d2?_0x8a697b[_0x54568a(0x124)](_0x598f4,_0x1e89d2):_0x8a697b[_0x54568a(0x124)](_0x67439,_0x31a3ca);});});}static async['getImageUrl'](_0x175851,_0x40898e){const _0x28d8fb=_0x1c867d,_0x1030a7={'RduXP':_0x28d8fb(0xf5),'qAtDS':function(_0x4a073b,_0x203a79){return _0x4a073b+_0x203a79;},'FzcCQ':function(_0x4501d9,_0x39f7f1){return _0x4501d9+_0x39f7f1;},'yNOlD':function(_0x2e9952,_0x3a3090){return _0x2e9952+_0x3a3090;},'oGvGG':function(_0x4a6cd3,_0x52f775){return _0x4a6cd3||_0x52f775;}};if(!_0x175851)return'';const _0x342bbe=_0x175851[_0x28d8fb(0x110)],_0x4b5f8b=_0x175851['md5HexStr'],_0x298683=_0x175851[_0x28d8fb(0x130)],_0x1d4bb1=_0x175851[_0x28d8fb(0x13d)];if(_0x342bbe){if(_0x342bbe['startsWith'](_0x1030a7[_0x28d8fb(0x134)])){if(_0x342bbe[_0x28d8fb(0x139)](_0x28d8fb(0x111)))return _0x1030a7[_0x28d8fb(0x136)](IMAGE_HTTP_HOST_NT,_0x342bbe);const _0x5977dc=await rkeyManager[_0x28d8fb(0x127)](),_0x5c008f=_0x40898e?_0x5977dc[_0x28d8fb(0x100)]:_0x5977dc[_0x28d8fb(0x129)];return _0x1030a7['FzcCQ'](IMAGE_HTTP_HOST_NT+_0x342bbe,''+_0x5c008f);}else return _0x1030a7['yNOlD'](IMAGE_HTTP_HOST,_0x342bbe);}else{if(_0x1030a7[_0x28d8fb(0xfc)](_0x298683,_0x4b5f8b))return IMAGE_HTTP_HOST+'/gchatpic_new/0/0-0-'+_0x1030a7[_0x28d8fb(0xfc)](_0x298683,_0x4b5f8b)[_0x28d8fb(0x11d)]()+'/0';}return logDebug('图片url获取失败',_0x175851),'';}}export class NTQQFileCacheApi{static async['setCacheSilentScan'](_0x1b5ddd=!![]){return'';}static[_0x1c867d(0x128)](){return'';}static['clearCache'](_0x27fe48=[_0x1c867d(0x135),_0x1c867d(0xec)]){const _0xdf24b0=_0x1c867d;return napCatCore[_0xdf24b0(0xff)][_0xdf24b0(0x11b)]()[_0xdf24b0(0x10e)](_0x27fe48);}static[_0x1c867d(0xf0)](_0x390d51={}){const _0x670deb=_0x1c867d;return napCatCore['session']['getStorageCleanService']()[_0x670deb(0x118)](_0x390d51);}static[_0x1c867d(0x117)](){const _0x5f576e=_0x1c867d;return napCatCore[_0x5f576e(0xff)]['getStorageCleanService']()['scanCache']();}static[_0x1c867d(0xed)](){return'';}static[_0x1c867d(0x116)](){return'';}static[_0x1c867d(0x115)](_0x21ddb2,_0x171380=0x3e8,_0x3ffa95=0x0){const _0x45afcc=_0x1c867d;return napCatCore[_0x45afcc(0xff)][_0x45afcc(0x11b)]()[_0x45afcc(0xf7)](_0x21ddb2,_0x171380,0x1,_0x3ffa95);}static[_0x1c867d(0xf2)](_0x1cb764,_0xb4db38=0x3e8,_0x10445d){const _0x513666=_0x10445d?_0x10445d:{'fileType':_0x1cb764};}static async[_0x1c867d(0xfd)](_0x3fb81a=[],_0x21409e=[]){const _0x2b6fd9=_0x1c867d;return napCatCore[_0x2b6fd9(0xff)]['getStorageCleanService']()['clearChatCacheInfo'](_0x3fb81a,_0x21409e);}} \ No newline at end of file +const _0x2365fe=_0x4a3b;(function(_0x45e3ac,_0x529208){const _0x41b2fa=_0x4a3b,_0x57eeae=_0x45e3ac();while(!![]){try{const _0x4d64ca=-parseInt(_0x41b2fa(0x123))/0x1*(-parseInt(_0x41b2fa(0x128))/0x2)+-parseInt(_0x41b2fa(0x130))/0x3+-parseInt(_0x41b2fa(0xe8))/0x4*(parseInt(_0x41b2fa(0xfb))/0x5)+parseInt(_0x41b2fa(0x111))/0x6*(-parseInt(_0x41b2fa(0xff))/0x7)+-parseInt(_0x41b2fa(0x104))/0x8+parseInt(_0x41b2fa(0xf1))/0x9+parseInt(_0x41b2fa(0x10b))/0xa;if(_0x4d64ca===_0x529208)break;else _0x57eeae['push'](_0x57eeae['shift']());}catch(_0x42805f){_0x57eeae['push'](_0x57eeae['shift']());}}}(_0x4390,0xb7f0c));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x1b1c13 from'path';import _0x179165 from'fs';import _0x245f4c from'fs/promises';import{logDebug}from'@/common/utils/log';function _0x4390(){const _0x1cc8b6=['YmxJw','addCacheScannedPaths','9106500lEVEwu','AasVB','addCacheScanedPaths','uploadFile','downloadMedia\x20complete','getImageSize','113814qVMpOc','hotUpdate','CMinv','getRichMediaFilePathForGuild','basename','copyFile','sPTiO','RWodP','sOkYb','filePath','downloadPath','indexOf','BeCJI','unlink','aiNPx','fileTypeFromFile','JvShJ','toUpperCase','2ijMJjr','getMsgService','getFileType','getFileCacheInfo','shbpG','379198etdfvn','/gchatpic_new/0/0-0-','&rkey=','getFileSize','msgId','startsWith','getHotUpdateCachePath','delete','650868QGkHNy','WSMUE','onRichMediaDownloadComplete','start\x20downloadMedia','RQjeR','clearCacheDataByKeys','clearCache','FvgYe','setCacheSilentScan','1344ZNPjiS','gEtGW','downloadMedia','kxExd','cxwTR','XCgVk','existsSync','tmp','set','7166907cNkcAF','DEvmr','YKSRn','clearChatCache','private_rkey','downloadRichMedia','PIC','getStorageCleanService','hsJVh','scanCache','8490DRAzJr','onLoginSuccess','clearChatCacheInfo','getRkey','77boDEiW','Piant','ext','util','join','2692864JbmSBp','session','hBGRU','ZlLEl','PAEYS'];_0x4390=function(){return _0x1cc8b6;};return _0x4390();}import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x295c3c from'file-type';import{MsgListener}from'@/core/listeners';import _0x4e2797 from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x2365fe(0xe1)]=_0x31d3ee=>{const _0x3e78c1=_0x2365fe,_0x429d10={'RQjeR':function(_0x25da46,_0xdccd7c){return _0x25da46(_0xdccd7c);}};for(const [_0x2c56ff,_0x17fe20]of downloadMediaTasks){_0x429d10[_0x3e78c1(0xe3)](_0x17fe20,_0x31d3ee),downloadMediaTasks[_0x3e78c1(0x12f)](_0x2c56ff);}},setTimeout(()=>{const _0x1243ef=_0x2365fe;napCatCore[_0x1243ef(0xfc)](()=>{napCatCore['addListener'](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x2365fe(0x125)](_0x18442c){const _0xbcc05b=_0x2365fe;return _0x295c3c[_0xbcc05b(0x120)](_0x18442c);}static async['copyFile'](_0x3172fd,_0x3f07fe){const _0x55130b=_0x2365fe;await napCatCore[_0x55130b(0x102)][_0x55130b(0x116)](_0x3172fd,_0x3f07fe);}static async['getFileSize'](_0x49bfa9){const _0x29b309=_0x2365fe;return await napCatCore[_0x29b309(0x102)][_0x29b309(0x12b)](_0x49bfa9);}static async[_0x2365fe(0x10e)](_0x380f91,_0x5bd6c0=ElementType[_0x2365fe(0xf7)],_0x5d7ce8=0x0){const _0x4b5195=_0x2365fe,_0x1cae90={'GCXLh':function(_0x33f39a,_0x163cb9){return _0x33f39a(_0x163cb9);},'oiJhd':function(_0x594592,_0x228817){return _0x594592+_0x228817;},'AasVB':function(_0x2ec477,_0x143b88){return _0x2ec477===_0x143b88;}},_0x337a05=await _0x1cae90['GCXLh'](calculateFileMD5,_0x380f91);let _0xdf9492=(await NTQQFileApi[_0x4b5195(0x125)](_0x380f91))?.[_0x4b5195(0x101)]||'';_0xdf9492&&(_0xdf9492=_0x1cae90['oiJhd']('.',_0xdf9492));let _0x17247e=''+_0x1b1c13[_0x4b5195(0x115)](_0x380f91);_0x1cae90[_0x4b5195(0x10c)](_0x17247e[_0x4b5195(0x11c)]('.'),-0x1)&&(_0x17247e+=_0xdf9492);const _0x34135b=napCatCore[_0x4b5195(0x105)][_0x4b5195(0x124)]()[_0x4b5195(0x114)]({'md5HexStr':_0x337a05,'fileName':_0x17247e,'elementType':_0x5bd6c0,'elementSubType':_0x5d7ce8,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi['copyFile'](_0x380f91,_0x34135b);const _0x2a56bb=await NTQQFileApi[_0x4b5195(0x12b)](_0x380f91);return{'md5':_0x337a05,'fileName':_0x17247e,'path':_0x34135b,'fileSize':_0x2a56bb,'ext':_0xdf9492};}static async[_0x2365fe(0xea)](_0xe1f2f6,_0x5740df,_0xb64a37,_0xceddbe,_0x3bd7c1,_0x489a01,_0x4ac7ad=0x3e8*0x3c*0x2,_0x41bf3a=![]){const _0x217edc=_0x2365fe,_0x307257={'DEvmr':'下载超时','BeCJI':function(_0x486bd3,_0x563ca4,_0x547a9d,_0x1a7dba){return _0x486bd3(_0x563ca4,_0x547a9d,_0x1a7dba);},'kxExd':function(_0x3745ee,_0x361b3d){return _0x3745ee===_0x361b3d;},'gEtGW':_0x217edc(0x11b),'RWodP':function(_0x16f28c,_0x4ef7ab){return _0x16f28c(_0x4ef7ab);},'YmxJw':function(_0x4ff679){return _0x4ff679();},'shbpG':function(_0x1193f5,_0x134ee4,_0x5b304a,_0x17483c,_0x54057e,_0x36aa51,_0x4c9852,_0x1e8081,_0x41f312,_0x95e748){return _0x1193f5(_0x134ee4,_0x5b304a,_0x17483c,_0x54057e,_0x36aa51,_0x4c9852,_0x1e8081,_0x41f312,_0x95e748);},'VzrEL':'receive\x20downloadMedia\x20task','hsJVh':_0x217edc(0xe2)};_0x307257[_0x217edc(0x127)](logDebug,_0x307257['VzrEL'],_0xe1f2f6,_0x5740df,_0xb64a37,_0xceddbe,_0x3bd7c1,_0x489a01,_0x4ac7ad,_0x41bf3a);if(_0x489a01&&_0x179165[_0x217edc(0xee)](_0x489a01)){if(_0x41bf3a)try{await _0x245f4c[_0x217edc(0x11e)](_0x489a01);}catch(_0x11c014){}else return _0x489a01;}return _0x307257[_0x217edc(0x127)](logDebug,_0x307257[_0x217edc(0xf9)],_0xe1f2f6,_0x5740df,_0xb64a37,_0xceddbe,_0x3bd7c1,_0x489a01,_0x4ac7ad,_0x41bf3a),new Promise((_0x13410d,_0x6ce39c)=>{const _0x588e2b=_0x217edc,_0x427804={'aiNPx':function(_0x293756,_0x1c7d4f,_0x308821,_0x2e8ca0){const _0x2884ac=_0x4a3b;return _0x307257[_0x2884ac(0x11d)](_0x293756,_0x1c7d4f,_0x308821,_0x2e8ca0);},'PAEYS':_0x588e2b(0x10f),'CMinv':function(_0xbe4c1,_0xd3f9f0){const _0x3e1cbf=_0x588e2b;return _0x307257[_0x3e1cbf(0xeb)](_0xbe4c1,_0xd3f9f0);},'sPTiO':function(_0x15cb35,_0x1a5bbe,_0x6a2b35){return _0x15cb35(_0x1a5bbe,_0x6a2b35);},'XCgVk':_0x307257[_0x588e2b(0xe9)],'hBGRU':function(_0x23eacc,_0x174e81){const _0x46b20a=_0x588e2b;return _0x307257[_0x46b20a(0x118)](_0x23eacc,_0x174e81);}};let _0x2de9ed=![];const _0x378070=_0x546d3a=>{const _0x419a3e=_0x588e2b;_0x427804[_0x419a3e(0x11f)](logDebug,_0x427804[_0x419a3e(0x108)],_0x546d3a,_0xe1f2f6);if(_0x427804[_0x419a3e(0x113)](_0x546d3a[_0x419a3e(0x12c)],_0xe1f2f6)){_0x2de9ed=!![];let _0x1a6652=_0x546d3a[_0x419a3e(0x11a)];if(_0x1a6652[_0x419a3e(0x12d)]('\x5c')){const _0x4613a5=sessionConfig['defaultFileDownloadPath'];_0x427804[_0x419a3e(0x117)](logDebug,_0x427804[_0x419a3e(0xed)],_0x4613a5),_0x1a6652=_0x1b1c13[_0x419a3e(0x103)](_0x4613a5,_0x1a6652);}_0x427804[_0x419a3e(0x106)](_0x13410d,_0x1a6652);}};downloadMediaTasks[_0x588e2b(0xf0)](_0x307257[_0x588e2b(0x109)](randomUUID),_0x378070),setTimeout(()=>{const _0x34a9e=_0x588e2b;!_0x2de9ed&&_0x6ce39c(_0x307257[_0x34a9e(0xf2)]);},_0x4ac7ad),napCatCore[_0x588e2b(0x105)][_0x588e2b(0x124)]()[_0x588e2b(0xf6)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0xe1f2f6,'chatType':_0x5740df,'peerUid':_0xb64a37,'elementId':_0xceddbe,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x3bd7c1});});}static async[_0x2365fe(0x110)](_0x70fd82){const _0x169454={'ACizO':function(_0x1de248,_0x4987e7){return _0x1de248(_0x4987e7);},'ZlLEl':function(_0x33e341,_0x3e477d){return _0x33e341(_0x3e477d);}};return new Promise((_0x11ae69,_0x44e84a)=>{const _0x5ebc15={'cxwTR':function(_0x40409c,_0x1fa0c3){return _0x169454['ACizO'](_0x40409c,_0x1fa0c3);},'FvgYe':function(_0x3c3f71,_0x1e5fdf){const _0xb6580c=_0x4a3b;return _0x169454[_0xb6580c(0x107)](_0x3c3f71,_0x1e5fdf);}};_0x4e2797(_0x70fd82,(_0x2309da,_0x195542)=>{const _0x706dd9=_0x4a3b;_0x2309da?_0x5ebc15[_0x706dd9(0xec)](_0x44e84a,_0x2309da):_0x5ebc15[_0x706dd9(0xe6)](_0x11ae69,_0x195542);});});}static async['getImageUrl'](_0x1687a9,_0x24a4f7){const _0x22bd40=_0x2365fe,_0x4db90b={'Piant':'/download','GHwBE':_0x22bd40(0x12a),'JvShJ':function(_0x19c789,_0x2918c0){return _0x19c789+_0x2918c0;},'WSMUE':function(_0x508476,_0x57d229){return _0x508476+_0x57d229;},'YKSRn':function(_0x248614,_0x2cbf0d){return _0x248614||_0x2cbf0d;},'sOkYb':function(_0x1a3d59,_0x11081d,_0x47fd99){return _0x1a3d59(_0x11081d,_0x47fd99);},'cuDax':'图片url获取失败'};if(!_0x1687a9)return'';const _0x5cf583=_0x1687a9['originImageUrl'],_0x1cecc4=_0x1687a9['md5HexStr'],_0x15f192=_0x1687a9['md5HexStr'],_0x5bf822=_0x1687a9['fileUuid'];if(_0x5cf583){if(_0x5cf583[_0x22bd40(0x12d)](_0x4db90b[_0x22bd40(0x100)])){if(_0x5cf583['includes'](_0x4db90b['GHwBE']))return _0x4db90b[_0x22bd40(0x121)](IMAGE_HTTP_HOST_NT,_0x5cf583);const _0x55a861=await rkeyManager[_0x22bd40(0xfe)](),_0x5d3804=_0x24a4f7?_0x55a861[_0x22bd40(0xf5)]:_0x55a861['group_rkey'];return _0x4db90b[_0x22bd40(0x121)](_0x4db90b['JvShJ'](IMAGE_HTTP_HOST_NT,_0x5cf583),''+_0x5d3804);}else return _0x4db90b[_0x22bd40(0x131)](IMAGE_HTTP_HOST,_0x5cf583);}else{if(_0x15f192||_0x1cecc4)return IMAGE_HTTP_HOST+_0x22bd40(0x129)+_0x4db90b[_0x22bd40(0xf3)](_0x15f192,_0x1cecc4)[_0x22bd40(0x122)]()+'/0';}return _0x4db90b[_0x22bd40(0x119)](logDebug,_0x4db90b['cuDax'],_0x1687a9),'';}}function _0x4a3b(_0x4707be,_0x47aaab){const _0x439037=_0x4390();return _0x4a3b=function(_0x4a3be8,_0x1f05e8){_0x4a3be8=_0x4a3be8-0xe1;let _0x5d1cea=_0x439037[_0x4a3be8];return _0x5d1cea;},_0x4a3b(_0x4707be,_0x47aaab);}export class NTQQFileCacheApi{static async[_0x2365fe(0xe7)](_0x3769a6=!![]){return'';}static['getCacheSessionPathList'](){return'';}static[_0x2365fe(0xe5)](_0x40a04d=[_0x2365fe(0xef),_0x2365fe(0x112)]){const _0x20a081=_0x2365fe;return napCatCore['session'][_0x20a081(0xf8)]()[_0x20a081(0xe4)](_0x40a04d);}static[_0x2365fe(0x10a)](_0x6ded9e={}){const _0x2c0394=_0x2365fe;return napCatCore['session'][_0x2c0394(0xf8)]()[_0x2c0394(0x10d)](_0x6ded9e);}static[_0x2365fe(0xfa)](){const _0x13773c=_0x2365fe;return napCatCore[_0x13773c(0x105)][_0x13773c(0xf8)]()[_0x13773c(0xfa)]();}static[_0x2365fe(0x12e)](){return'';}static['getDesktopTmpPath'](){return'';}static['getChatCacheList'](_0x3b7696,_0xefab1d=0x3e8,_0x51f303=0x0){const _0x3888a1=_0x2365fe;return napCatCore[_0x3888a1(0x105)][_0x3888a1(0xf8)]()['getChatCacheInfo'](_0x3b7696,_0xefab1d,0x1,_0x51f303);}static[_0x2365fe(0x126)](_0x3a7574,_0x178988=0x3e8,_0x19c369){const _0xac465b=_0x19c369?_0x19c369:{'fileType':_0x3a7574};}static async[_0x2365fe(0xf4)](_0x2c0ead=[],_0x3c5d6c=[]){const _0x39bb1d=_0x2365fe;return napCatCore[_0x39bb1d(0x105)][_0x39bb1d(0xf8)]()[_0x39bb1d(0xfd)](_0x2c0ead,_0x3c5d6c);}} \ No newline at end of file diff --git a/src/core.lib/src/apis/friend.js b/src/core.lib/src/apis/friend.js index 3b86cc89..bb8fed35 100644 --- a/src/core.lib/src/apis/friend.js +++ b/src/core.lib/src/apis/friend.js @@ -1 +1 @@ -const _0x5a5846=_0xf6cc;(function(_0x15c6ed,_0x4ed11a){const _0x57ffc9=_0xf6cc,_0x5a710a=_0x15c6ed();while(!![]){try{const _0x382f1f=-parseInt(_0x57ffc9(0x1d3))/0x1*(parseInt(_0x57ffc9(0x1d9))/0x2)+parseInt(_0x57ffc9(0x1dd))/0x3*(-parseInt(_0x57ffc9(0x1e4))/0x4)+parseInt(_0x57ffc9(0x1d0))/0x5*(parseInt(_0x57ffc9(0x1d8))/0x6)+parseInt(_0x57ffc9(0x1e1))/0x7+parseInt(_0x57ffc9(0x1de))/0x8+parseInt(_0x57ffc9(0x1df))/0x9+parseInt(_0x57ffc9(0x1e2))/0xa*(parseInt(_0x57ffc9(0x1e7))/0xb);if(_0x382f1f===_0x4ed11a)break;else _0x5a710a['push'](_0x5a710a['shift']());}catch(_0x4629c5){_0x5a710a['push'](_0x5a710a['shift']());}}}(_0x451e,0x24cda));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';function _0x451e(){const _0x5ddbc0=['addListener','30kCQwyu','4FGOrxt','approvalFriendRequest','pbRen','friendUid','620250mBHZRE','407328lybEmI','504711vzuMfH','delete','381465KPLgdj','688490oxDDXv','WbWCF','4lBXTyW','hkVJB','获取好友列表超时','77kqTuGx','uin','开始获取好友列表','session','getBuddyList','getBuddyService','handleFriendRequest','xuGDr','8595QbuuTy','onBuddyListChange','then','147266ojTUZu','tEAJt','onLoginSuccess','push'];_0x451e=function(){return _0x5ddbc0;};return _0x451e();}import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x5a5846(0x1d1)]=_0x2f3711=>{const _0x3f755c=_0x5a5846,_0x1a9364={'tEAJt':function(_0x520117,_0x2b11d1){return _0x520117(_0x2b11d1);}};for(const [_0x5a7d63,_0x391e36]of buddyChangeTasks){_0x1a9364[_0x3f755c(0x1d4)](_0x391e36,_0x2f3711),buddyChangeTasks[_0x3f755c(0x1e0)](_0x5a7d63);}},setTimeout(()=>{const _0xe259c5=_0x5a5846;napCatCore[_0xe259c5(0x1d5)](()=>{const _0xfabb8b=_0xe259c5;napCatCore[_0xfabb8b(0x1d7)](buddyListener);});},0x64);function _0xf6cc(_0x54a283,_0x121e46){const _0x451eb3=_0x451e();return _0xf6cc=function(_0xf6cc31,_0x575e40){_0xf6cc31=_0xf6cc31-0x1cc;let _0x23c2a2=_0x451eb3[_0xf6cc31];return _0x23c2a2;},_0xf6cc(_0x54a283,_0x121e46);}export class NTQQFriendApi{static async['getFriends'](_0x45b623=![]){const _0x1e918b=_0x5a5846,_0x46b924={'pbRen':'获取好友列表完成','xuGDr':_0x1e918b(0x1e6),'hkVJB':function(_0xc4a3e3,_0x6a091b){return _0xc4a3e3(_0x6a091b);},'XqOgU':function(_0x2998f1){return _0x2998f1();}};return new Promise((_0x7572c6,_0x371019)=>{const _0x6e7031=_0x1e918b,_0x2e92bc={'ECcpJ':_0x46b924[_0x6e7031(0x1cf)],'WbWCF':function(_0xcbc92e,_0x588cb4){const _0x1d6736=_0x6e7031;return _0x46b924[_0x1d6736(0x1e5)](_0xcbc92e,_0x588cb4);}};let _0xc80ed7=![];setTimeout(()=>{const _0x55fae5=_0x6e7031;!_0xc80ed7&&(logDebug(_0x2e92bc['ECcpJ']),_0x2e92bc[_0x55fae5(0x1e3)](_0x371019,_0x55fae5(0x1e6)));},0x1388);const _0x434fd7=[],_0x452038=_0x38883b=>{const _0xf0b178=_0x6e7031;for(const _0x266131 of _0x38883b){for(const _0x6479f4 of _0x266131['buddyList']){_0x434fd7[_0xf0b178(0x1d6)](_0x6479f4),uid2UinMap[_0x6479f4['uid']]=_0x6479f4[_0xf0b178(0x1e8)];}}_0xc80ed7=!![],logDebug(_0x46b924[_0xf0b178(0x1db)],_0x434fd7),_0x7572c6(_0x434fd7);};buddyChangeTasks['set'](_0x46b924['XqOgU'](randomUUID),_0x452038),napCatCore[_0x6e7031(0x1ea)][_0x6e7031(0x1cd)]()[_0x6e7031(0x1cc)](_0x45b623)[_0x6e7031(0x1d2)](_0x4e127d=>{const _0x43cea2=_0x6e7031;logDebug(_0x43cea2(0x1e9),_0x4e127d);});});}static async[_0x5a5846(0x1ce)](_0x3842ce,_0x5d595f){const _0x3b15f5=_0x5a5846;napCatCore['session'][_0x3b15f5(0x1cd)]()?.[_0x3b15f5(0x1da)]({'friendUid':_0x3842ce[_0x3b15f5(0x1dc)],'reqTime':_0x3842ce['reqTime'],'accept':_0x5d595f});}} \ No newline at end of file +const _0x47c820=_0x231c;function _0x370e(){const _0x388a95=['handleFriendRequest','getBuddyList','获取好友列表超时','获取好友列表完成','push','4805EIQCMI','uin','uid','62122JJbOer','41544KqIGZm','set','session','7822664LlMCkp','9010csqOHa','onLoginSuccess','addListener','开始获取好友列表','niJjV','buddyList','JIqOP','QaUXs','HonIN','1617175JonhqE','gWRWI','delete','1884TFLMPj','friendUid','DIdgi','1145591YBfBOp','onBuddyListChange','yuzed','6948888EaRNAB','93sTllyd','BmhMQ','getBuddyService','reqTime','getFriends'];_0x370e=function(){return _0x388a95;};return _0x370e();}function _0x231c(_0x27518c,_0x28ab3b){const _0x370e80=_0x370e();return _0x231c=function(_0x231cd1,_0x1e3d25){_0x231cd1=_0x231cd1-0xdc;let _0x1d8adc=_0x370e80[_0x231cd1];return _0x1d8adc;},_0x231c(_0x27518c,_0x28ab3b);}(function(_0x1b3b3b,_0x38b417){const _0x5950c3=_0x231c,_0x5be665=_0x1b3b3b();while(!![]){try{const _0x37ef65=-parseInt(_0x5950c3(0xee))/0x1+-parseInt(_0x5950c3(0xff))/0x2*(parseInt(_0x5950c3(0xf2))/0x3)+parseInt(_0x5950c3(0xeb))/0x4*(parseInt(_0x5950c3(0xfc))/0x5)+-parseInt(_0x5950c3(0xf1))/0x6+parseInt(_0x5950c3(0xe8))/0x7+-parseInt(_0x5950c3(0xde))/0x8+parseInt(_0x5950c3(0x100))/0x9*(parseInt(_0x5950c3(0xdf))/0xa);if(_0x37ef65===_0x38b417)break;else _0x5be665['push'](_0x5be665['shift']());}catch(_0x43675b){_0x5be665['push'](_0x5be665['shift']());}}}(_0x370e,0x920c1));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x47c820(0xef)]=_0x1a011c=>{const _0x28b3ad=_0x47c820,_0x3490bc={'DIdgi':function(_0x54e842,_0xd42fb0){return _0x54e842(_0xd42fb0);}};for(const [_0x246d2d,_0x49b247]of buddyChangeTasks){_0x3490bc[_0x28b3ad(0xed)](_0x49b247,_0x1a011c),buddyChangeTasks[_0x28b3ad(0xea)](_0x246d2d);}},setTimeout(()=>{const _0x370c74=_0x47c820;napCatCore[_0x370c74(0xe0)](()=>{const _0x41cfce=_0x370c74;napCatCore[_0x41cfce(0xe1)](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x47c820(0xf6)](_0x4b8dd4=![]){const _0xceddb=_0x47c820,_0x36ff4f={'yuzed':function(_0x4b7deb,_0x35f2e8){return _0x4b7deb(_0x35f2e8);},'gWRWI':_0xceddb(0xf9),'niJjV':function(_0x25053b,_0x4ffe0c,_0x394a5e){return _0x25053b(_0x4ffe0c,_0x394a5e);},'JIqOP':_0xceddb(0xfa),'BmhMQ':function(_0x1d3946){return _0x1d3946();}};return new Promise((_0x5d43cc,_0x12829f)=>{const _0x4d869b=_0xceddb,_0xa03459={'QaUXs':function(_0x20e8ed,_0x5e4bfc){const _0x1cd043=_0x231c;return _0x36ff4f[_0x1cd043(0xf0)](_0x20e8ed,_0x5e4bfc);},'uMDCm':_0x36ff4f[_0x4d869b(0xe9)],'HonIN':function(_0x2b5fc8,_0x1c82e9,_0x46881c){const _0x5b7882=_0x4d869b;return _0x36ff4f[_0x5b7882(0xe3)](_0x2b5fc8,_0x1c82e9,_0x46881c);},'fKMFP':_0x36ff4f[_0x4d869b(0xe5)],'FenPS':_0x4d869b(0xe2)};let _0x4df0ab=![];setTimeout(()=>{const _0x12475d=_0x4d869b;!_0x4df0ab&&(_0xa03459[_0x12475d(0xe6)](logDebug,_0xa03459['uMDCm']),_0xa03459['QaUXs'](_0x12829f,_0x12475d(0xf9)));},0x1388);const _0x35d8b6=[],_0x2a9f24=_0x406d4a=>{const _0x307e0b=_0x4d869b;for(const _0x302e81 of _0x406d4a){for(const _0x6a6afb of _0x302e81[_0x307e0b(0xe4)]){_0x35d8b6[_0x307e0b(0xfb)](_0x6a6afb),uid2UinMap[_0x6a6afb[_0x307e0b(0xfe)]]=_0x6a6afb[_0x307e0b(0xfd)];}}_0x4df0ab=!![],_0xa03459[_0x307e0b(0xe7)](logDebug,_0xa03459['fKMFP'],_0x35d8b6),_0x5d43cc(_0x35d8b6);};buddyChangeTasks[_0x4d869b(0xdc)](_0x36ff4f[_0x4d869b(0xf3)](randomUUID),_0x2a9f24),napCatCore[_0x4d869b(0xdd)][_0x4d869b(0xf4)]()[_0x4d869b(0xf8)](_0x4b8dd4)['then'](_0x59b0ad=>{const _0x378d4d=_0x4d869b;_0xa03459[_0x378d4d(0xe7)](logDebug,_0xa03459['FenPS'],_0x59b0ad);});});}static async[_0x47c820(0xf7)](_0x38787a,_0x92fc1a){const _0x1d5701=_0x47c820;napCatCore[_0x1d5701(0xdd)]['getBuddyService']()?.['approvalFriendRequest']({'friendUid':_0x38787a[_0x1d5701(0xec)],'reqTime':_0x38787a[_0x1d5701(0xf5)],'accept':_0x92fc1a});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/group.js b/src/core.lib/src/apis/group.js index c3adea38..2543dbc9 100644 --- a/src/core.lib/src/apis/group.js +++ b/src/core.lib/src/apis/group.js @@ -1 +1 @@ -const _0x51f255=_0x505e;function _0x5715(){const _0x505836=['operateSysNotify','MCnpG','delete','group','addListener','session','errMsg','272926OXCubW','publishGroupBulletin','qun.qq.com','rnGRe','modifyGroupName','result','kickMember','1117808MIfqqC','getNextMemberList','setGroupTitle','getGroupList','type','ULpMq','setMemberCard','bbQIK','getGroupIgnoreNotifies','获取群(',')成员列表结果:','FCxag','37886nJsnXz','3989790vxyKrZ','modifyMemberRole','banMember','RRVyj','finish:\x20','banGroup','AkIJZ','setGroupShutUp','getGroups','setMemberShutUp','27oTgGRS','wpRuZ','uid','getGroupMembers','146264iDBaes','getGroupService','infos','groupCode','1143rEmpJB','quitGroup','finish','OBjjQ','setGroupName','vPmji','modifyMemberCardName','fEcOx','then','getGroupNotifies','nBlMp','uploadGroupBulletinPic','获取群成员列表出错,','获取群列表超时','获取群列表完成','onLoginSuccess','4662210leJbbo','handleGroupRequest','kYpGU','MxPoO','forEach','createMemberListScene','5650757AhLAdX'];_0x5715=function(){return _0x505836;};return _0x5715();}(function(_0x557dd3,_0x1ed2ef){const _0x4b2866=_0x505e,_0x9b7a28=_0x557dd3();while(!![]){try{const _0x30fd7b=parseInt(_0x4b2866(0xaf))/0x1+parseInt(_0x4b2866(0x9c))/0x2*(-parseInt(_0x4b2866(0xba))/0x3)+parseInt(_0x4b2866(0xa3))/0x4+parseInt(_0x4b2866(0xb0))/0x5+-parseInt(_0x4b2866(0xd2))/0x6+-parseInt(_0x4b2866(0xd8))/0x7+-parseInt(_0x4b2866(0xbe))/0x8*(-parseInt(_0x4b2866(0xc2))/0x9);if(_0x30fd7b===_0x1ed2ef)break;else _0x9b7a28['push'](_0x9b7a28['shift']());}catch(_0x4d7d3a){_0x9b7a28['push'](_0x9b7a28['shift']());}}}(_0x5715,0x98890));import{NTQQUserApi,napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';function _0x505e(_0x537baf,_0x261e28){const _0x571507=_0x5715();return _0x505e=function(_0x505e4d,_0x5c2231){_0x505e4d=_0x505e4d-0x97;let _0x22e1ef=_0x571507[_0x505e4d];return _0x22e1ef;},_0x505e(_0x537baf,_0x261e28);}const groupMemberTasks=new Map(),groupListener=new GroupListener();groupListener['onGroupListUpdate']=(_0x1446ff,_0x308378)=>{const _0xf0ba84=_0x505e,_0x446b8d={'bbQIK':function(_0x973dfd,_0x5b7a2e,_0x4ec269){return _0x973dfd(_0x5b7a2e,_0x4ec269);}};for(const [_0xf2dbbd,_0x489248]of groupMemberTasks){_0x446b8d[_0xf0ba84(0xaa)](_0x489248,_0x1446ff,_0x308378),groupMemberTasks[_0xf0ba84(0x97)](_0xf2dbbd);}},setTimeout(()=>{const _0x347255=_0x505e;napCatCore[_0x347255(0xd1)](()=>{const _0x2e743a=_0x347255;napCatCore[_0x2e743a(0x99)](groupListener);});},0x64);export class NTQQGroupApi{static async[_0x51f255(0xb8)](_0x31732f=![]){const _0x494278=_0x51f255,_0x36ce4e={'FCxag':function(_0x18fc74,_0x450242){return _0x18fc74(_0x450242);},'rnGRe':_0x494278(0xcf),'jLTss':function(_0x2929c6,_0x70cdd8){return _0x2929c6(_0x70cdd8);},'MxPoO':function(_0x3a0344,_0xce0819,_0x26ad3c){return _0x3a0344(_0xce0819,_0x26ad3c);},'vPmji':function(_0x1600db,_0x53374c){return _0x1600db(_0x53374c);},'kYpGU':function(_0x290343){return _0x290343();}};let _0x3b2046=![];return new Promise((_0x3caee9,_0x5be253)=>{const _0x479027=_0x494278,_0x23aa9a={'RRVyj':function(_0x15d3ea,_0xff79c4,_0x123e4e){const _0x1f960c=_0x505e;return _0x36ce4e[_0x1f960c(0xd5)](_0x15d3ea,_0xff79c4,_0x123e4e);},'OBjjQ':function(_0x49276d,_0x24b89a){const _0x109331=_0x505e;return _0x36ce4e[_0x109331(0xc7)](_0x49276d,_0x24b89a);}};setTimeout(()=>{const _0xb1524f=_0x505e;!_0x3b2046&&(_0x36ce4e[_0xb1524f(0xae)](logDebug,_0x36ce4e[_0xb1524f(0x9f)]),_0x36ce4e['jLTss'](_0x5be253,_0x36ce4e[_0xb1524f(0x9f)]));},0x1388);const _0x246273=(_0x3edcd5,_0x5473fe)=>{const _0x393526=_0x505e;_0x3b2046=!![],_0x23aa9a[_0x393526(0xb3)](logDebug,_0x393526(0xd0),_0x5473fe),_0x23aa9a[_0x393526(0xc5)](_0x3caee9,_0x5473fe);};groupMemberTasks['set'](_0x36ce4e[_0x479027(0xd4)](randomUUID),_0x246273),napCatCore[_0x479027(0x9a)][_0x479027(0xbf)]()[_0x479027(0xa6)](_0x31732f)[_0x479027(0xca)]();});}static async[_0x51f255(0xbd)](_0x4d576f,_0x24a238=0xbb8){const _0x15b633=_0x51f255,_0x2b26d3={'MCnpG':'groupMemberList_MainWindow','wpRuZ':function(_0x37396c,_0x1382c9){return _0x37396c!==_0x1382c9;},'AkIJZ':function(_0x28641a,_0x3db287){return _0x28641a+_0x3db287;},'fEcOx':_0x15b633(0xce)},_0x1a1225=napCatCore[_0x15b633(0x9a)]['getGroupService'](),_0x2cdee2=_0x1a1225[_0x15b633(0xd7)](_0x4d576f,_0x2b26d3[_0x15b633(0xda)]),_0x15e1c5=await _0x1a1225[_0x15b633(0xa4)](_0x2cdee2,undefined,_0x24a238);if(_0x2b26d3[_0x15b633(0xbb)](_0x15e1c5['errCode'],0x0))throw _0x2b26d3[_0x15b633(0xb6)](_0x2b26d3[_0x15b633(0xc9)],_0x15e1c5[_0x15b633(0x9b)]);return logDebug(_0x15b633(0xac)+_0x4d576f+_0x15b633(0xad),_0x15b633(0xb4)+_0x15e1c5[_0x15b633(0xa1)][_0x15b633(0xc4)]),_0x15e1c5[_0x15b633(0xa1)]['infos'][_0x15b633(0xd6)](_0x41da77=>{const _0x53fe17=_0x15b633;uid2UinMap[_0x41da77[_0x53fe17(0xbc)]]=_0x41da77['uin'];}),_0x15e1c5[_0x15b633(0xa1)][_0x15b633(0xc0)];}static async[_0x51f255(0xcb)](){}static async[_0x51f255(0xab)](){}static async[_0x51f255(0xcd)](_0x6fcc54,_0x4cd566){const _0x33b73d=_0x51f255,_0x411ce8={'SrMny':_0x33b73d(0x9e)},_0x5b5f0c=(await NTQQUserApi['getPSkey']([_0x411ce8['SrMny']]))[_0x411ce8['SrMny']];return napCatCore[_0x33b73d(0x9a)][_0x33b73d(0xbf)]()[_0x33b73d(0xcd)](_0x6fcc54,_0x5b5f0c,_0x4cd566);}static async[_0x51f255(0xd3)](_0x4119ed,_0x159774,_0x447f0c){const _0x294b56=_0x51f255,_0x4b6a72={'ULpMq':function(_0x52d735,_0x426df4){return _0x52d735||_0x426df4;}};return napCatCore[_0x294b56(0x9a)][_0x294b56(0xbf)]()[_0x294b56(0xd9)](![],{'operateType':_0x159774,'targetMsg':{'seq':_0x4119ed['seq'],'type':_0x4119ed[_0x294b56(0xa7)],'groupCode':_0x4119ed[_0x294b56(0x98)][_0x294b56(0xc1)],'postscript':_0x4b6a72[_0x294b56(0xa8)](_0x447f0c,'')}});}static async[_0x51f255(0xc3)](_0x15e341){const _0x52544a=_0x51f255;return napCatCore['session'][_0x52544a(0xbf)]()[_0x52544a(0xc3)](_0x15e341);}static async['kickMember'](_0xc00809,_0x3ed55f,_0x3b2eb8=![],_0xfe6b7d=''){const _0x4383a4=_0x51f255;return napCatCore[_0x4383a4(0x9a)][_0x4383a4(0xbf)]()[_0x4383a4(0xa2)](_0xc00809,_0x3ed55f,_0x3b2eb8,_0xfe6b7d);}static async[_0x51f255(0xb2)](_0xa60f9d,_0x5c77ea){const _0x18d890=_0x51f255;return napCatCore[_0x18d890(0x9a)][_0x18d890(0xbf)]()[_0x18d890(0xb9)](_0xa60f9d,_0x5c77ea);}static async[_0x51f255(0xb5)](_0x380355,_0x425521){const _0x5e5a02=_0x51f255;return napCatCore[_0x5e5a02(0x9a)][_0x5e5a02(0xbf)]()[_0x5e5a02(0xb7)](_0x380355,_0x425521);}static async[_0x51f255(0xa9)](_0x149986,_0x4926a4,_0x40a110){const _0x55e06d=_0x51f255;return napCatCore[_0x55e06d(0x9a)]['getGroupService']()[_0x55e06d(0xc8)](_0x149986,_0x4926a4,_0x40a110);}static async['setMemberRole'](_0x3aaee8,_0x3f96bb,_0x5a3db1){const _0x36b828=_0x51f255;return napCatCore['session'][_0x36b828(0xbf)]()[_0x36b828(0xb1)](_0x3aaee8,_0x3f96bb,_0x5a3db1);}static async[_0x51f255(0xc6)](_0x59c1c9,_0x1282f5){const _0x42f502=_0x51f255;return napCatCore['session'][_0x42f502(0xbf)]()[_0x42f502(0xa0)](_0x59c1c9,_0x1282f5,![]);}static async[_0x51f255(0xa5)](_0x295c48,_0x1eba30,_0x545311){}static async[_0x51f255(0x9d)](_0xfeebf7,_0xa5c2e2,_0x483ff3=undefined,_0x31f93a=0x0,_0x1b60c8=0x0){const _0x20bf40=_0x51f255,_0x4fcf48={'nBlMp':_0x20bf40(0x9e),'UfXgW':function(_0x3094b3,_0x20ef54){return _0x3094b3(_0x20ef54);}},_0x5708c8=(await NTQQUserApi['getPSkey']([_0x4fcf48[_0x20bf40(0xcc)]]))[_0x4fcf48[_0x20bf40(0xcc)]];let _0x36434a={'text':_0x4fcf48['UfXgW'](encodeURI,_0xa5c2e2),'picInfo':_0x483ff3,'oldFeedsId':'','pinned':_0x31f93a,'confirmRequired':_0x1b60c8};return napCatCore[_0x20bf40(0x9a)][_0x20bf40(0xbf)]()[_0x20bf40(0x9d)](_0xfeebf7,_0x5708c8,_0x36434a);}} \ No newline at end of file +function _0x4c66(_0x3365e6,_0x138349){const _0xe7611d=_0xe761();return _0x4c66=function(_0x4c6667,_0x314843){_0x4c6667=_0x4c6667-0xda;let _0x22e61a=_0xe7611d[_0x4c6667];return _0x22e61a;},_0x4c66(_0x3365e6,_0x138349);}const _0x2ae9d1=_0x4c66;(function(_0x3e6c93,_0x112663){const _0x5999d0=_0x4c66,_0x1049c5=_0x3e6c93();while(!![]){try{const _0x5c5c42=-parseInt(_0x5999d0(0x101))/0x1+-parseInt(_0x5999d0(0x106))/0x2+-parseInt(_0x5999d0(0xf1))/0x3*(parseInt(_0x5999d0(0x114))/0x4)+parseInt(_0x5999d0(0xe5))/0x5+parseInt(_0x5999d0(0xe1))/0x6+-parseInt(_0x5999d0(0xf9))/0x7+parseInt(_0x5999d0(0xf5))/0x8*(parseInt(_0x5999d0(0x11b))/0x9);if(_0x5c5c42===_0x112663)break;else _0x1049c5['push'](_0x1049c5['shift']());}catch(_0x3fe01e){_0x1049c5['push'](_0x1049c5['shift']());}}}(_0xe761,0xd6392));import{NTQQUserApi,napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';const groupMemberTasks=new Map(),groupListener=new GroupListener();function _0xe761(){const _0x467e4a=['getGroupNotifies','fzPOK','getPSkey','uin','获取群(','963733pZjRLK','createMemberListScene','modifyMemberRole','getGroupMembers','type','2653598QgrQLQ','onLoginSuccess','then','lEBEU','kickMember','getGroupList','seq','result','modifyMemberCardName','PKAuj','setGroupTitle','delete','groupCode','operateSysNotify','585444AGOhRM','errCode','setMemberRole','获取群列表完成','getGroupIgnoreNotifies','forEach','modifyGroupName','122895JZfJYz','DSWzj','DkoHf','setGroupName',')成员列表结果:','finish:\x20','errMsg','group','groupMemberList_MainWindow','NgLwR','3180750DTJmgJ','getGroupService','infos','Noiqz','2750955loKzKE','getGroups','sxOds','ZRHUM','publishGroupBulletin','onGroupListUpdate','gIMYx','uid','quitGroup','qun.qq.com','获取群成员列表出错,','rBXFk','12HKYJUc','setGroupShutUp','获取群列表超时','uploadGroupBulletinPic','1696eQmEji','banMember','session','handleGroupRequest','1552194ZFaOQn','setMemberCard','finish'];_0xe761=function(){return _0x467e4a;};return _0xe761();}groupListener[_0x2ae9d1(0xea)]=(_0x2a05f5,_0xa399a9)=>{const _0x37563e=_0x2ae9d1,_0x4362fa={'QaQvN':function(_0x8f09e5,_0x2a657d,_0xb63194){return _0x8f09e5(_0x2a657d,_0xb63194);}};for(const [_0x166020,_0x2aea0b]of groupMemberTasks){_0x4362fa['QaQvN'](_0x2aea0b,_0x2a05f5,_0xa399a9),groupMemberTasks[_0x37563e(0x111)](_0x166020);}},setTimeout(()=>{const _0x1db270=_0x2ae9d1;napCatCore[_0x1db270(0x107)](()=>{napCatCore['addListener'](groupListener);});},0x64);export class NTQQGroupApi{static async[_0x2ae9d1(0xe6)](_0x399273=![]){const _0x1e1075=_0x2ae9d1,_0x2f5cfe={'sxOds':_0x1e1075(0xf3),'rBXFk':function(_0x47245b,_0x4ea84b,_0x8c5cac){return _0x47245b(_0x4ea84b,_0x8c5cac);},'lEBEU':_0x1e1075(0x117),'Noiqz':function(_0x35369a,_0x4b61f9){return _0x35369a(_0x4b61f9);},'DSWzj':function(_0x3cf40c){return _0x3cf40c();}};let _0x53aeaf=![];return new Promise((_0x3712a8,_0x8eb487)=>{const _0x45c55c=_0x1e1075;setTimeout(()=>{const _0x503b1d=_0x4c66;!_0x53aeaf&&(logDebug(_0x2f5cfe[_0x503b1d(0xe7)]),_0x8eb487(_0x503b1d(0xf3)));},0x1388);const _0x1bfd68=(_0x1249f6,_0x52d3c7)=>{const _0x383595=_0x4c66;_0x53aeaf=!![],_0x2f5cfe[_0x383595(0xf0)](logDebug,_0x2f5cfe[_0x383595(0x109)],_0x52d3c7),_0x2f5cfe[_0x383595(0xe4)](_0x3712a8,_0x52d3c7);};groupMemberTasks['set'](_0x2f5cfe[_0x45c55c(0x11c)](randomUUID),_0x1bfd68),napCatCore['session'][_0x45c55c(0xe2)]()[_0x45c55c(0x10b)](_0x399273)[_0x45c55c(0x108)]();});}static async[_0x2ae9d1(0x104)](_0x29a4c0,_0x23ffe0=0xbb8){const _0xd17efe=_0x2ae9d1,_0x588aec={'DkoHf':function(_0x3ff28a,_0x13f70f){return _0x3ff28a!==_0x13f70f;},'NgLwR':function(_0x9a9be7,_0x4b3a2f){return _0x9a9be7+_0x4b3a2f;},'fzPOK':_0xd17efe(0xef),'ZRHUM':function(_0x1604ed,_0x323730,_0x3e53ad){return _0x1604ed(_0x323730,_0x3e53ad);}},_0x53c5c3=napCatCore[_0xd17efe(0xf7)]['getGroupService'](),_0x36fb03=_0x53c5c3[_0xd17efe(0x102)](_0x29a4c0,_0xd17efe(0xdf)),_0x267c4d=await _0x53c5c3['getNextMemberList'](_0x36fb03,undefined,_0x23ffe0);if(_0x588aec[_0xd17efe(0x11d)](_0x267c4d[_0xd17efe(0x115)],0x0))throw _0x588aec[_0xd17efe(0xe0)](_0x588aec[_0xd17efe(0xfd)],_0x267c4d[_0xd17efe(0xdd)]);return _0x588aec[_0xd17efe(0xe8)](logDebug,_0xd17efe(0x100)+_0x29a4c0+_0xd17efe(0xdb),_0xd17efe(0xdc)+_0x267c4d[_0xd17efe(0x10d)][_0xd17efe(0xfb)]),_0x267c4d[_0xd17efe(0x10d)][_0xd17efe(0xe3)][_0xd17efe(0x119)](_0xeee235=>{const _0x122188=_0xd17efe;uid2UinMap[_0xeee235[_0x122188(0xec)]]=_0xeee235[_0x122188(0xff)];}),_0x267c4d[_0xd17efe(0x10d)][_0xd17efe(0xe3)];}static async[_0x2ae9d1(0xfc)](){}static async[_0x2ae9d1(0x118)](){}static async[_0x2ae9d1(0xf4)](_0x2263fc,_0x20d615){const _0x527d50=_0x2ae9d1,_0x268bad={'gIMYx':_0x527d50(0xee)},_0x3be418=(await NTQQUserApi['getPSkey']([_0x268bad[_0x527d50(0xeb)]]))[_0x268bad['gIMYx']];return napCatCore[_0x527d50(0xf7)][_0x527d50(0xe2)]()[_0x527d50(0xf4)](_0x2263fc,_0x3be418,_0x20d615);}static async[_0x2ae9d1(0xf8)](_0x3dd9ff,_0x1d6ab5,_0x4e964b){const _0x4dae44=_0x2ae9d1;return napCatCore[_0x4dae44(0xf7)][_0x4dae44(0xe2)]()[_0x4dae44(0x113)](![],{'operateType':_0x1d6ab5,'targetMsg':{'seq':_0x3dd9ff[_0x4dae44(0x10c)],'type':_0x3dd9ff[_0x4dae44(0x105)],'groupCode':_0x3dd9ff[_0x4dae44(0xde)][_0x4dae44(0x112)],'postscript':_0x4e964b||''}});}static async['quitGroup'](_0xf90a9d){const _0x4a3fe7=_0x2ae9d1;return napCatCore['session'][_0x4a3fe7(0xe2)]()[_0x4a3fe7(0xed)](_0xf90a9d);}static async[_0x2ae9d1(0x10a)](_0x54b4d2,_0x11cd61,_0xce0d5f=![],_0x59b061=''){const _0x2d0fa6=_0x2ae9d1;return napCatCore[_0x2d0fa6(0xf7)]['getGroupService']()['kickMember'](_0x54b4d2,_0x11cd61,_0xce0d5f,_0x59b061);}static async[_0x2ae9d1(0xf6)](_0x5a9e18,_0x23c8e6){const _0x5a8b25=_0x2ae9d1;return napCatCore[_0x5a8b25(0xf7)]['getGroupService']()['setMemberShutUp'](_0x5a9e18,_0x23c8e6);}static async['banGroup'](_0xb895e2,_0xc81a2d){const _0x5a7f77=_0x2ae9d1;return napCatCore[_0x5a7f77(0xf7)][_0x5a7f77(0xe2)]()[_0x5a7f77(0xf2)](_0xb895e2,_0xc81a2d);}static async[_0x2ae9d1(0xfa)](_0x2222f3,_0xe3a45e,_0x9fc970){const _0x4944f3=_0x2ae9d1;return napCatCore['session']['getGroupService']()[_0x4944f3(0x10e)](_0x2222f3,_0xe3a45e,_0x9fc970);}static async[_0x2ae9d1(0x116)](_0x41d3c8,_0x27ab96,_0x1c043f){const _0x17052d=_0x2ae9d1;return napCatCore[_0x17052d(0xf7)]['getGroupService']()[_0x17052d(0x103)](_0x41d3c8,_0x27ab96,_0x1c043f);}static async[_0x2ae9d1(0xda)](_0x5a7ebb,_0x1d7b2e){const _0x4f1c44=_0x2ae9d1;return napCatCore['session'][_0x4f1c44(0xe2)]()[_0x4f1c44(0x11a)](_0x5a7ebb,_0x1d7b2e,![]);}static async[_0x2ae9d1(0x110)](_0x32b7de,_0x4c95f9,_0xc45cbd){}static async[_0x2ae9d1(0xe9)](_0x65f817,_0xa1a4cf,_0x4f8792=undefined,_0x73fce9=0x0,_0x14b19c=0x0){const _0x2af2c4=_0x2ae9d1,_0x3a4e2f={'PKAuj':_0x2af2c4(0xee)},_0x5b7910=(await NTQQUserApi[_0x2af2c4(0xfe)]([_0x3a4e2f[_0x2af2c4(0x10f)]]))[_0x3a4e2f[_0x2af2c4(0x10f)]];let _0xe0a2a4={'text':encodeURI(_0xa1a4cf),'picInfo':_0x4f8792,'oldFeedsId':'','pinned':_0x73fce9,'confirmRequired':_0x14b19c};return napCatCore[_0x2af2c4(0xf7)][_0x2af2c4(0xe2)]()[_0x2af2c4(0xe9)](_0x65f817,_0x5b7910,_0xe0a2a4);}} \ No newline at end of file diff --git a/src/core.lib/src/apis/index.js b/src/core.lib/src/apis/index.js index 62d7ad5f..a70d59a1 100644 --- a/src/core.lib/src/apis/index.js +++ b/src/core.lib/src/apis/index.js @@ -1 +1 @@ -(function(_0x53f4d1,_0x470cd1){var _0x28a87e=_0x2a95,_0x31337c=_0x53f4d1();while(!![]){try{var _0x459a5c=parseInt(_0x28a87e(0x6c))/0x1+-parseInt(_0x28a87e(0x6d))/0x2+-parseInt(_0x28a87e(0x68))/0x3*(parseInt(_0x28a87e(0x66))/0x4)+parseInt(_0x28a87e(0x6a))/0x5+-parseInt(_0x28a87e(0x65))/0x6+parseInt(_0x28a87e(0x67))/0x7+-parseInt(_0x28a87e(0x6b))/0x8*(-parseInt(_0x28a87e(0x69))/0x9);if(_0x459a5c===_0x470cd1)break;else _0x31337c['push'](_0x31337c['shift']());}catch(_0x13e321){_0x31337c['push'](_0x31337c['shift']());}}}(_0xb831,0x24f3f));export*from'./file';export*from'./friend';export*from'./group';export*from'./msg';export*from'./user';function _0x2a95(_0x1fe032,_0x835a9){var _0xb8314=_0xb831();return _0x2a95=function(_0x2a9597,_0x23e4ce){_0x2a9597=_0x2a9597-0x65;var _0x51c33c=_0xb8314[_0x2a9597];return _0x51c33c;},_0x2a95(_0x1fe032,_0x835a9);}export*from'./webapi';export*from'./sign';export*from'./system';function _0xb831(){var _0x162a31=['16APFxlH','26039EgvNlz','603772mAmtik','143706anxgye','4MeFKsj','405062RnIYzQ','107481OtPngP','935154pPVifz','1106530yCKqzX'];_0xb831=function(){return _0x162a31;};return _0xb831();} \ No newline at end of file +(function(_0x87bee2,_0xbd5344){var _0x5193f8=_0x341e,_0xe90654=_0x87bee2();while(!![]){try{var _0x336e3b=-parseInt(_0x5193f8(0x12e))/0x1*(parseInt(_0x5193f8(0x12c))/0x2)+parseInt(_0x5193f8(0x12b))/0x3+-parseInt(_0x5193f8(0x12f))/0x4+-parseInt(_0x5193f8(0x12a))/0x5+parseInt(_0x5193f8(0x129))/0x6+parseInt(_0x5193f8(0x130))/0x7+parseInt(_0x5193f8(0x12d))/0x8;if(_0x336e3b===_0xbd5344)break;else _0xe90654['push'](_0xe90654['shift']());}catch(_0x27cddc){_0xe90654['push'](_0xe90654['shift']());}}}(_0x2f02,0x795c1));export*from'./file';function _0x341e(_0x4f53cd,_0x13bfd6){var _0x2f0297=_0x2f02();return _0x341e=function(_0x341e38,_0x1a3cac){_0x341e38=_0x341e38-0x129;var _0x584276=_0x2f0297[_0x341e38];return _0x584276;},_0x341e(_0x4f53cd,_0x13bfd6);}export*from'./friend';export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi';export*from'./sign';function _0x2f02(){var _0x2b8ff5=['1830240RiEELn','3320821RXxRUE','5730558iSxOwh','1752670tGhyFc','720228awXOMZ','1550506zjJrOL','3286912GYZzuL','1MpuRcx'];_0x2f02=function(){return _0x2b8ff5;};return _0x2f02();}export*from'./system'; \ No newline at end of file diff --git a/src/core.lib/src/apis/msg.js b/src/core.lib/src/apis/msg.js index 5b53b893..f0979e42 100644 --- a/src/core.lib/src/apis/msg.js +++ b/src/core.lib/src/apis/msg.js @@ -1 +1 @@ -const _0x5218aa=_0x1930;(function(_0x752c1c,_0x29b3a3){const _0x3b6870=_0x1930,_0x5e0a87=_0x752c1c();while(!![]){try{const _0x34612d=-parseInt(_0x3b6870(0xd8))/0x1*(-parseInt(_0x3b6870(0xb7))/0x2)+-parseInt(_0x3b6870(0xb5))/0x3*(-parseInt(_0x3b6870(0xc8))/0x4)+-parseInt(_0x3b6870(0xe3))/0x5*(parseInt(_0x3b6870(0xd1))/0x6)+parseInt(_0x3b6870(0xbb))/0x7*(-parseInt(_0x3b6870(0xbf))/0x8)+parseInt(_0x3b6870(0xdb))/0x9+-parseInt(_0x3b6870(0xc6))/0xa+-parseInt(_0x3b6870(0xdd))/0xb;if(_0x34612d===_0x29b3a3)break;else _0x5e0a87['push'](_0x5e0a87['shift']());}catch(_0x5a2cd7){_0x5e0a87['push'](_0x5e0a87['shift']());}}}(_0x54d7,0xd6eb3));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();function _0x1930(_0x7f7bf0,_0x49bf5d){const _0x54d77d=_0x54d7();return _0x1930=function(_0x19303f,_0x29a47a){_0x19303f=_0x19303f-0x9f;let _0x5c87df=_0x54d77d[_0x19303f];return _0x5c87df;},_0x1930(_0x7f7bf0,_0x49bf5d);}msgListener[_0x5218aa(0xa6)]=_0x274874=>{const _0x47c0a3=_0x5218aa,_0x2c3762={'MuCtJ':function(_0x37ed15,_0x429030){return _0x37ed15(_0x429030);}};for(const [_0x2d2b8b,_0x1ce0c6]of sentMsgTasks){_0x2c3762['MuCtJ'](_0x1ce0c6,_0x274874),sentMsgTasks[_0x47c0a3(0xcc)](_0x2d2b8b);}if(sendMessagePool[_0x274874['peerUid']]){const _0x3c40a2=sendMessagePool[_0x274874[_0x47c0a3(0xa0)]]?.(_0x274874);_0x3c40a2 instanceof Promise&&_0x3c40a2['then']()[_0x47c0a3(0xaa)](logError);}},msgListener['onMsgInfoListUpdate']=_0x8447d0=>{const _0x1084b2={'VTgNC':function(_0x522db6,_0x505eed){return _0x522db6(_0x505eed);},'UyQAU':function(_0x52a014,_0x1da1e2){return _0x52a014 instanceof _0x1da1e2;}};_0x8447d0['forEach'](_0x3de0d9=>{const _0x99d8d1=_0x1930,_0x49a802={'aJXiV':function(_0x38db7e,_0x12a799){const _0x465a69=_0x1930;return _0x1084b2[_0x465a69(0xb0)](_0x38db7e,_0x12a799);},'AawZF':function(_0x4ea28d,_0x10a5ac){const _0x5e9a61=_0x1930;return _0x1084b2[_0x5e9a61(0xb2)](_0x4ea28d,_0x10a5ac);},'UwgdF':function(_0xf75b6e,_0x197a71){return _0xf75b6e(_0x197a71);}};new Promise((_0x54b8e8,_0x475d67)=>{const _0x294d3b=_0x1930;for(const _0x488eaa in sendSuccessCBMap){const _0x2b1bf4=sendSuccessCBMap[_0x488eaa],_0x4a5ac0=_0x49a802[_0x294d3b(0xd3)](_0x2b1bf4,_0x3de0d9),_0x3b0c79=_0x56ee83=>{_0x56ee83&&delete sendSuccessCBMap[_0x488eaa];};_0x49a802[_0x294d3b(0xd5)](_0x4a5ac0,Promise)?_0x4a5ac0[_0x294d3b(0xca)](_0x3b0c79):_0x49a802[_0x294d3b(0xcd)](_0x3b0c79,_0x4a5ac0);}})[_0x99d8d1(0xca)]()[_0x99d8d1(0xaa)](log);});},setTimeout(()=>{const _0x348347=_0x5218aa;napCatCore[_0x348347(0xb4)](()=>{const _0x4eae68=_0x348347;napCatCore[_0x4eae68(0xcf)](msgListener);});},0x64);function _0x54d7(){const _0x32ff3e=['getMsgsIncludeSelf','delete','UwgdF','map','addListener','elements','108qpktAA','forwardMsg','aJXiV','session','AawZF','com.tencent.multimsg','multiForwardMsgWithComment','950xZafyr','转发消息超时','getMsgsBySeqAndCount','9868032nCxWQg','YYCnT','2552418toduwl','uid','UqbVe','HTlnc','zBmqm','getMultiMsg','466145cceNxR','senderUid','peerUid','msgId','length','sendMsg','SACSe','parse','onAddSendMsg','getMsgsByMsgId','recallMsg','ATVzr','catch','toString','hWnZW','bEZPG','setMsgEmojiLikes','bytesData','VTgNC','syQsz','UyQAU','activateChat','onLoginSuccess','48KDVIsQ','getMsgHistory','2138yaVhCD','fetchRecentContact','nick','uYzjW','2562uirqwE','XPcuu','TuWsj','wCRhA','12024EZFvRV','app','setEmojiLike','setMsgRead','set','getMsgService','find','1850170grGoEM','rqvxV','353396HqFUTb','arkElement','then'];_0x54d7=function(){return _0x32ff3e;};return _0x54d7();}export class NTQQMsgApi{static async[_0x5218aa(0xc1)](_0x4a0637,_0x126894,_0x3ed108,_0x19451d=!![]){const _0x60d0b6=_0x5218aa,_0x1249ce={'wCRhA':function(_0x43296e,_0x54c97c){return _0x43296e>_0x54c97c;}};return _0x3ed108=_0x3ed108[_0x60d0b6(0xab)](),napCatCore['session'][_0x60d0b6(0xc4)]()[_0x60d0b6(0xae)](_0x4a0637,_0x126894,_0x3ed108,_0x1249ce[_0x60d0b6(0xbe)](_0x3ed108[_0x60d0b6(0xa2)],0x3)?'2':'1',_0x19451d);}static async['getMultiMsg'](_0xecc383,_0x2f9bbc,_0x484d4c){const _0xb54a6e=_0x5218aa;return napCatCore[_0xb54a6e(0xd4)][_0xb54a6e(0xc4)]()[_0xb54a6e(0xe2)](_0xecc383,_0x2f9bbc,_0x484d4c);}static async['getMsgsByMsgId'](_0x50a376,_0x384474){const _0x38fed1=_0x5218aa;return await napCatCore[_0x38fed1(0xd4)][_0x38fed1(0xc4)]()[_0x38fed1(0xa7)](_0x50a376,_0x384474);}static async[_0x5218aa(0xda)](_0x2387c7,_0x510045,_0x42c970,_0x58d507,_0x5e854c){const _0x1661b2=_0x5218aa;return await napCatCore['session']['getMsgService']()[_0x1661b2(0xda)](_0x2387c7,_0x510045,_0x42c970,_0x58d507,_0x5e854c);}static async[_0x5218aa(0xb3)](_0x4d51c3){}static async['activateChatAndGetHistory'](_0x43c702){}static async['setMsgRead'](_0x146e12){const _0x113160=_0x5218aa;return napCatCore[_0x113160(0xd4)][_0x113160(0xc4)]()[_0x113160(0xc2)](_0x146e12);}static async[_0x5218aa(0xb6)](_0x347096,_0x42263f,_0x4490f3){const _0x480a7f=_0x5218aa;return napCatCore['session'][_0x480a7f(0xc4)]()[_0x480a7f(0xcb)](_0x347096,_0x42263f,_0x4490f3,!![]);}static async[_0x5218aa(0xb8)](){}static async[_0x5218aa(0xa8)](_0x2701ae,_0x5bc60a){const _0x2bc529=_0x5218aa;await napCatCore['session'][_0x2bc529(0xc4)]()[_0x2bc529(0xa8)]({'chatType':_0x2701ae['chatType'],'peerUid':_0x2701ae[_0x2bc529(0xa0)]},_0x5bc60a);}static async[_0x5218aa(0xa3)](_0x4bde6a,_0x2d75e8,_0x3abc61=!![],_0x2a5aad=0x2710){const _0x2297f4=_0x5218aa,_0x2b6bdc={'XPcuu':'发送超时','bEZPG':function(_0x4cb061,_0x2a4288){return _0x4cb061(_0x2a4288);},'HTlnc':function(_0x2f831e){return _0x2f831e();},'TuWsj':function(_0x2edcb3,_0xe3f3ad){return _0x2edcb3===_0xe3f3ad;},'syQsz':function(_0x1d5354,_0x3711f0){return _0x1d5354===_0x3711f0;},'ALSqv':function(_0x47cc68,_0xb7cea3){return _0x47cc68(_0xb7cea3);},'SACSe':function(_0x3ae000,_0xe7d275,_0x19e44c){return _0x3ae000(_0xe7d275,_0x19e44c);},'hWnZW':function(_0x3a116e){return _0x3a116e();}},_0x58f5d7=_0x4bde6a[_0x2297f4(0xa0)];let _0x27088c=0x0;const _0x13ee6c=async()=>{const _0x449b36=_0x2297f4;if(_0x27088c>_0x2a5aad)throw _0x2b6bdc[_0x449b36(0xbc)];const _0x568391=sendMessagePool[_0x4bde6a['peerUid']];if(_0x568391)return await _0x2b6bdc[_0x449b36(0xad)](sleep,0x1f4),_0x27088c+=0x1f4,await _0x2b6bdc[_0x449b36(0xe0)](_0x13ee6c);else return;};return await _0x2b6bdc[_0x2297f4(0xac)](_0x13ee6c),new Promise((_0x391e53,_0x31a5ba)=>{const _0x996d42=_0x2297f4,_0x797d78={'uYzjW':function(_0x4277ed,_0x326652){return _0x2b6bdc['ALSqv'](_0x4277ed,_0x326652);},'YYCnT':_0x2b6bdc['XPcuu']};let _0x362b23=![],_0x4479fe=null;const _0x51add4=_0x2b6bdc[_0x996d42(0xe0)](randomUUID);sendSuccessCBMap[_0x51add4]=_0x1ba9dd=>{const _0x11c3d6=_0x996d42;if(_0x2b6bdc[_0x11c3d6(0xbd)](_0x1ba9dd['msgId'],_0x4479fe?.[_0x11c3d6(0xa1)])){if(_0x2b6bdc[_0x11c3d6(0xb1)](_0x1ba9dd['sendStatus'],0x2))return delete sendSuccessCBMap[_0x51add4],_0x362b23=!![],_0x391e53(_0x1ba9dd),!![];return![];}return![];},sendMessagePool[_0x58f5d7]=async _0x46a0e1=>{delete sendMessagePool[_0x58f5d7],_0x4479fe=_0x46a0e1;},_0x2b6bdc[_0x996d42(0xa4)](setTimeout,()=>{const _0x7c40f7=_0x996d42;if(_0x362b23)return;delete sendMessagePool[_0x58f5d7],delete sendSuccessCBMap[_0x51add4],_0x797d78[_0x7c40f7(0xba)](_0x31a5ba,_0x797d78[_0x7c40f7(0xdc)]);},_0x2a5aad);const _0x19848b=napCatCore[_0x996d42(0xd4)]['getMsgService']()[_0x996d42(0xa3)]('0',_0x4bde6a,_0x2d75e8,new Map());});}static async['forwardMsg'](_0x4b405c,_0x2a5a77,_0x362699){const _0x3cdb14=_0x5218aa;return napCatCore['session'][_0x3cdb14(0xc4)]()[_0x3cdb14(0xd2)](_0x362699,_0x4b405c,[_0x2a5a77],new Map());}static async['multiForwardMsg'](_0x3d0db3,_0x26c2a2,_0x3c32dc){const _0x403b80=_0x5218aa,_0x2d3747={'cNrjj':function(_0x112a84,_0x445d1f){return _0x112a84!=_0x445d1f;},'blAgk':_0x403b80(0xd6),'zBmqm':function(_0x5e2195,_0x3b6028){return _0x5e2195==_0x3b6028;},'sLKon':function(_0x2ac080,_0x3f9f62){return _0x2ac080(_0x3f9f62);},'UqbVe':function(_0x10c22f,_0x56eeac){return _0x10c22f(_0x56eeac);},'rqvxV':function(_0x2b5c36){return _0x2b5c36();}},_0x1870a1=_0x3c32dc[_0x403b80(0xce)](_0x37a5c5=>{const _0x1a78f1=_0x403b80;return{'msgId':_0x37a5c5,'senderShowName':selfInfo[_0x1a78f1(0xb9)]};});return new Promise((_0x81c88f,_0x4a91c2)=>{const _0x5be150=_0x403b80,_0x5529e5={'ATVzr':function(_0x4b0a94,_0x28ab60){const _0x10b6e9=_0x1930;return _0x2d3747[_0x10b6e9(0xdf)](_0x4b0a94,_0x28ab60);}};let _0x20a0db=![];const _0x545490=_0x13ae68=>{const _0x25853d=_0x1930,_0x5d3577=_0x13ae68[_0x25853d(0xd0)][_0x25853d(0xc5)](_0xe499ed=>_0xe499ed['arkElement']);if(!_0x5d3577)return;const _0x11f2c6=JSON[_0x25853d(0xa5)](_0x5d3577[_0x25853d(0xc9)][_0x25853d(0xaf)]);if(_0x2d3747['cNrjj'](_0x11f2c6[_0x25853d(0xc0)],_0x2d3747['blAgk']))return;_0x13ae68['peerUid']==_0x26c2a2['peerUid']&&_0x2d3747[_0x25853d(0xe1)](_0x13ae68[_0x25853d(0x9f)],selfInfo[_0x25853d(0xde)])&&(_0x20a0db=!![],_0x2d3747['sLKon'](_0x81c88f,_0x13ae68));};sentMsgTasks[_0x5be150(0xc3)](_0x2d3747[_0x5be150(0xc7)](randomUUID),_0x545490),setTimeout(()=>{const _0x1ca2ab=_0x5be150;!_0x20a0db&&_0x5529e5[_0x1ca2ab(0xa9)](_0x4a91c2,_0x1ca2ab(0xd9));},0x1388),napCatCore[_0x5be150(0xd4)]['getMsgService']()[_0x5be150(0xd7)](_0x1870a1,_0x3d0db3,_0x26c2a2,[],new Map());});}} \ No newline at end of file +const _0x1a6de2=_0x562e;function _0x562e(_0x19ad66,_0x5cb23b){const _0x535241=_0x5352();return _0x562e=function(_0x562e9b,_0x48f33c){_0x562e9b=_0x562e9b-0x151;let _0x38839c=_0x535241[_0x562e9b];return _0x38839c;},_0x562e(_0x19ad66,_0x5cb23b);}function _0x5352(){const _0x1cc3a7=['setMsgRead','recallMsg','6798390ikQrgc','bytesData','发送超时','onMsgInfoListUpdate','getMsgService','KbwzA','com.tencent.multimsg','1ZiEDRG','FimPj','1305964XCnSQR','110NxJhgs','1342494hAtmep','arkElement','jjppD','sendStatus','ddbaY','sendMsg','oVhdd','length','kqoGd','jMjEk','231uKmOoa','QbCsy','activateChat','catch','find','klmaz','mbdDV','jRRHz','388754JDMdcN','toString','addListener','peerUid','fetchRecentContact','getMultiMsg','getMsgsIncludeSelf','msgId','senderUid','5440ykDvPG','delete','xHVph','uid','onLoginSuccess','34752cHzAiB','forwardMsg','getMsgsBySeqAndCount','activateChatAndGetHistory','then','session','multiForwardMsgWithComment','setEmojiLike','chatType','qUqoc','WsfTv','app','setMsgEmojiLikes','CMUmL','504444fSTTuq','xHdRv','multiForwardMsg'];_0x5352=function(){return _0x1cc3a7;};return _0x5352();}(function(_0x37c944,_0x4e7f9c){const _0x281104=_0x562e,_0x3d1eb7=_0x37c944();while(!![]){try{const _0x4474a3=parseInt(_0x281104(0x166))/0x1*(-parseInt(_0x281104(0x17c))/0x2)+-parseInt(_0x281104(0x15a))/0x3+-parseInt(_0x281104(0x168))/0x4+parseInt(_0x281104(0x169))/0x5*(parseInt(_0x281104(0x18a))/0x6)+-parseInt(_0x281104(0x174))/0x7*(-parseInt(_0x281104(0x185))/0x8)+parseInt(_0x281104(0x16a))/0x9+parseInt(_0x281104(0x15f))/0xa;if(_0x4474a3===_0x4e7f9c)break;else _0x3d1eb7['push'](_0x3d1eb7['shift']());}catch(_0x757645){_0x3d1eb7['push'](_0x3d1eb7['shift']());}}}(_0x5352,0x46c3d));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener['onAddSendMsg']=_0x4ae197=>{const _0x4acc16=_0x562e,_0x13899b={'UKnlI':function(_0xa62da,_0x400b2f){return _0xa62da(_0x400b2f);},'kqoGd':function(_0x163899,_0x584b55){return _0x163899 instanceof _0x584b55;}};for(const [_0x174c25,_0x535d85]of sentMsgTasks){_0x13899b['UKnlI'](_0x535d85,_0x4ae197),sentMsgTasks[_0x4acc16(0x186)](_0x174c25);}if(sendMessagePool[_0x4ae197['peerUid']]){const _0x5b0ab5=sendMessagePool[_0x4ae197[_0x4acc16(0x17f)]]?.(_0x4ae197);_0x13899b[_0x4acc16(0x172)](_0x5b0ab5,Promise)&&_0x5b0ab5[_0x4acc16(0x18e)]()[_0x4acc16(0x177)](logError);}},msgListener[_0x1a6de2(0x162)]=_0x33d083=>{_0x33d083['forEach'](_0x44129a=>{const _0x4d1d6a=_0x562e;new Promise((_0x47ff3c,_0x3e89de)=>{const _0x365870=_0x562e;for(const _0x175e7d in sendSuccessCBMap){const _0x4e8d2e=sendSuccessCBMap[_0x175e7d],_0x2cf53b=_0x4e8d2e(_0x44129a),_0x1571b7=_0x8dca29=>{_0x8dca29&&delete sendSuccessCBMap[_0x175e7d];};_0x2cf53b instanceof Promise?_0x2cf53b[_0x365870(0x18e)](_0x1571b7):_0x1571b7(_0x2cf53b);}})[_0x4d1d6a(0x18e)]()[_0x4d1d6a(0x177)](log);});},setTimeout(()=>{const _0x4aef41=_0x1a6de2;napCatCore[_0x4aef41(0x189)](()=>{const _0x439ec2=_0x4aef41;napCatCore[_0x439ec2(0x17e)](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x1a6de2(0x153)](_0x571393,_0x531afb,_0x123d6a,_0x445b48=!![]){const _0x5f1398=_0x1a6de2,_0x3294fb={'TWIrn':function(_0x36ba5d,_0x528b15){return _0x36ba5d>_0x528b15;}};return _0x123d6a=_0x123d6a[_0x5f1398(0x17d)](),napCatCore['session'][_0x5f1398(0x163)]()[_0x5f1398(0x158)](_0x571393,_0x531afb,_0x123d6a,_0x3294fb['TWIrn'](_0x123d6a[_0x5f1398(0x171)],0x3)?'2':'1',_0x445b48);}static async[_0x1a6de2(0x181)](_0x218fd4,_0x5944ab,_0x3b5de1){const _0x370f2a=_0x1a6de2;return napCatCore[_0x370f2a(0x151)][_0x370f2a(0x163)]()[_0x370f2a(0x181)](_0x218fd4,_0x5944ab,_0x3b5de1);}static async['getMsgsByMsgId'](_0x2f0494,_0x52f65d){const _0x4688d2=_0x1a6de2;return await napCatCore[_0x4688d2(0x151)][_0x4688d2(0x163)]()['getMsgsByMsgId'](_0x2f0494,_0x52f65d);}static async[_0x1a6de2(0x18c)](_0x36bb84,_0x42ec58,_0x2ecbfc,_0x2d2e7f,_0x254c90){const _0x3142b0=_0x1a6de2;return await napCatCore[_0x3142b0(0x151)][_0x3142b0(0x163)]()[_0x3142b0(0x18c)](_0x36bb84,_0x42ec58,_0x2ecbfc,_0x2d2e7f,_0x254c90);}static async[_0x1a6de2(0x176)](_0x341691){}static async[_0x1a6de2(0x18d)](_0x2e554d){}static async[_0x1a6de2(0x15d)](_0x293d87){const _0x39237b=_0x1a6de2;return napCatCore[_0x39237b(0x151)][_0x39237b(0x163)]()['setMsgRead'](_0x293d87);}static async['getMsgHistory'](_0x1ce980,_0x48693f,_0x1b4ce9){const _0x582b21=_0x1a6de2;return napCatCore['session'][_0x582b21(0x163)]()[_0x582b21(0x182)](_0x1ce980,_0x48693f,_0x1b4ce9,!![]);}static async[_0x1a6de2(0x180)](){}static async[_0x1a6de2(0x15e)](_0x1dc2ed,_0x2f3c59){const _0x2915d7=_0x1a6de2;await napCatCore[_0x2915d7(0x151)][_0x2915d7(0x163)]()['recallMsg']({'chatType':_0x1dc2ed[_0x2915d7(0x154)],'peerUid':_0x1dc2ed[_0x2915d7(0x17f)]},_0x2f3c59);}static async[_0x1a6de2(0x16f)](_0x34d055,_0x56f862,_0x11bc9f=!![],_0x40f05e=0x2710){const _0x2578e9=_0x1a6de2,_0x6cf6a2={'QbCsy':function(_0x3c1ad6,_0x4f1e7a){return _0x3c1ad6>_0x4f1e7a;},'klmaz':_0x2578e9(0x161),'WsfTv':function(_0x15a277,_0x5bbfd1){return _0x15a277===_0x5bbfd1;},'ddbaY':function(_0x38ef03,_0x51090d){return _0x38ef03(_0x51090d);},'qQSfP':function(_0x39c1fb){return _0x39c1fb();}},_0xe79ae0=_0x34d055['peerUid'];let _0x563c7b=0x0;const _0xedf08b=async()=>{const _0x43c37a=_0x2578e9;if(_0x6cf6a2[_0x43c37a(0x175)](_0x563c7b,_0x40f05e))throw _0x6cf6a2[_0x43c37a(0x179)];const _0xf8900e=sendMessagePool[_0x34d055[_0x43c37a(0x17f)]];if(_0xf8900e)return await sleep(0x1f4),_0x563c7b+=0x1f4,await _0xedf08b();else return;};return await _0x6cf6a2['qQSfP'](_0xedf08b),new Promise((_0x21477c,_0x4bb0f5)=>{const _0x47b236=_0x2578e9,_0x14e8bb={'mbdDV':function(_0x199055,_0x36816e){const _0x11354c=_0x562e;return _0x6cf6a2[_0x11354c(0x156)](_0x199055,_0x36816e);},'xHdRv':function(_0x52dc19,_0x3ea039){const _0x2baa1e=_0x562e;return _0x6cf6a2[_0x2baa1e(0x156)](_0x52dc19,_0x3ea039);},'KbwzA':function(_0x4308b1,_0x35884d){const _0x264466=_0x562e;return _0x6cf6a2[_0x264466(0x16e)](_0x4308b1,_0x35884d);},'CiIHA':_0x6cf6a2[_0x47b236(0x179)]};let _0x3687bb=![],_0x501e7f=null;const _0x69c8ef=randomUUID();sendSuccessCBMap[_0x69c8ef]=_0x1e9b3f=>{const _0x26bee6=_0x47b236;if(_0x14e8bb[_0x26bee6(0x17a)](_0x1e9b3f['msgId'],_0x501e7f?.[_0x26bee6(0x183)])){if(_0x14e8bb[_0x26bee6(0x15b)](_0x1e9b3f[_0x26bee6(0x16d)],0x2))return delete sendSuccessCBMap[_0x69c8ef],_0x3687bb=!![],_0x14e8bb[_0x26bee6(0x164)](_0x21477c,_0x1e9b3f),!![];return![];}return![];},sendMessagePool[_0xe79ae0]=async _0x9f0ddd=>{delete sendMessagePool[_0xe79ae0],_0x501e7f=_0x9f0ddd;},setTimeout(()=>{const _0x237a72=_0x47b236;if(_0x3687bb)return;delete sendMessagePool[_0xe79ae0],delete sendSuccessCBMap[_0x69c8ef],_0x14e8bb[_0x237a72(0x164)](_0x4bb0f5,_0x14e8bb['CiIHA']);},_0x40f05e);const _0x2d03a3=napCatCore[_0x47b236(0x151)][_0x47b236(0x163)]()['sendMsg']('0',_0x34d055,_0x56f862,new Map());});}static async['forwardMsg'](_0x1b9d5a,_0xcf0448,_0x17f931){const _0x566aae=_0x1a6de2;return napCatCore['session'][_0x566aae(0x163)]()[_0x566aae(0x18b)](_0x17f931,_0x1b9d5a,[_0xcf0448],new Map());}static async[_0x1a6de2(0x15c)](_0x1941f5,_0x4ab2b8,_0x2948cb){const _0x1c5ef9={'jRRHz':function(_0x34a16c,_0x442696){return _0x34a16c!=_0x442696;},'FimPj':function(_0x2593be,_0x3902d6){return _0x2593be==_0x3902d6;},'qUqoc':function(_0x1b3bfa,_0x13136a){return _0x1b3bfa(_0x13136a);},'jjppD':'转发消息超时','jMjEk':function(_0x2b9c34){return _0x2b9c34();},'rDtIZ':function(_0x3a9e36,_0x397b9d,_0x1c58a2){return _0x3a9e36(_0x397b9d,_0x1c58a2);}},_0x17fc3c=_0x2948cb['map'](_0x5e8147=>{return{'msgId':_0x5e8147,'senderShowName':selfInfo['nick']};});return new Promise((_0x335542,_0x1a5c46)=>{const _0x295fb9=_0x562e,_0xafd5e7={'gPNOR':function(_0x4c7dd2,_0x31cd41){const _0x38e986=_0x562e;return _0x1c5ef9[_0x38e986(0x17b)](_0x4c7dd2,_0x31cd41);},'xHVph':_0x295fb9(0x165),'VCTOq':function(_0x2ee5e6,_0x5a5d53){const _0x5e6c61=_0x295fb9;return _0x1c5ef9[_0x5e6c61(0x167)](_0x2ee5e6,_0x5a5d53);},'CMUmL':function(_0x3dcaf9,_0x4778f9){const _0xa8ad45=_0x295fb9;return _0x1c5ef9[_0xa8ad45(0x155)](_0x3dcaf9,_0x4778f9);},'oVhdd':_0x1c5ef9[_0x295fb9(0x16c)]};let _0x409e6c=![];const _0x1f2ecc=_0x23a99d=>{const _0x48e2e7=_0x295fb9,_0x4ba54e=_0x23a99d['elements'][_0x48e2e7(0x178)](_0x4dba3b=>_0x4dba3b[_0x48e2e7(0x16b)]);if(!_0x4ba54e)return;const _0x3b0bb3=JSON['parse'](_0x4ba54e[_0x48e2e7(0x16b)][_0x48e2e7(0x160)]);if(_0xafd5e7['gPNOR'](_0x3b0bb3[_0x48e2e7(0x157)],_0xafd5e7[_0x48e2e7(0x187)]))return;_0xafd5e7['VCTOq'](_0x23a99d['peerUid'],_0x4ab2b8[_0x48e2e7(0x17f)])&&_0x23a99d[_0x48e2e7(0x184)]==selfInfo[_0x48e2e7(0x188)]&&(_0x409e6c=!![],_0xafd5e7[_0x48e2e7(0x159)](_0x335542,_0x23a99d));};sentMsgTasks['set'](_0x1c5ef9[_0x295fb9(0x173)](randomUUID),_0x1f2ecc),_0x1c5ef9['rDtIZ'](setTimeout,()=>{const _0x51f5b5=_0x295fb9;!_0x409e6c&&_0xafd5e7[_0x51f5b5(0x159)](_0x1a5c46,_0xafd5e7[_0x51f5b5(0x170)]);},0x1388),napCatCore[_0x295fb9(0x151)][_0x295fb9(0x163)]()[_0x295fb9(0x152)](_0x17fc3c,_0x1941f5,_0x4ab2b8,[],new Map());});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/system.js b/src/core.lib/src/apis/system.js index 3752e17b..587b6d47 100644 --- a/src/core.lib/src/apis/system.js +++ b/src/core.lib/src/apis/system.js @@ -1 +1 @@ -var _0x35dd3a=_0x1763;function _0x374c(){var _0x3c58af=['16yzcmHG','551290xcdLhU','5392PMTRFT','hasOtherRunningQQProcess','846260tuiEEa','6188286ADBgmd','1030398JdECot','603YqZnjl','5499530EjVpIi','513CoNnsV','756497PdgfnQ','util'];_0x374c=function(){return _0x3c58af;};return _0x374c();}function _0x1763(_0xb4b333,_0x3929dd){var _0x374cb7=_0x374c();return _0x1763=function(_0x17637d,_0x17d548){_0x17637d=_0x17637d-0x1df;var _0x1aa136=_0x374cb7[_0x17637d];return _0x1aa136;},_0x1763(_0xb4b333,_0x3929dd);}(function(_0x3abbd1,_0xf1f210){var _0x4f957d=_0x1763,_0xe49dcd=_0x3abbd1();while(!![]){try{var _0x2d97c2=parseInt(_0x4f957d(0x1e0))/0x1+-parseInt(_0x4f957d(0x1e8))/0x2*(-parseInt(_0x4f957d(0x1e1))/0x3)+parseInt(_0x4f957d(0x1ea))/0x4+parseInt(_0x4f957d(0x1e2))/0x5+parseInt(_0x4f957d(0x1df))/0x6+-parseInt(_0x4f957d(0x1e4))/0x7*(parseInt(_0x4f957d(0x1e6))/0x8)+-parseInt(_0x4f957d(0x1e3))/0x9*(parseInt(_0x4f957d(0x1e7))/0xa);if(_0x2d97c2===_0xf1f210)break;else _0xe49dcd['push'](_0xe49dcd['shift']());}catch(_0x5a7db6){_0xe49dcd['push'](_0xe49dcd['shift']());}}}(_0x374c,0x87e6b));import{napCatCore}from'@/core';export class NTQQSystemApi{static async[_0x35dd3a(0x1e9)](){var _0x4ef515=_0x35dd3a;return napCatCore[_0x4ef515(0x1e5)][_0x4ef515(0x1e9)]();}} \ No newline at end of file +var _0x43fc7d=_0x52e2;(function(_0x33218d,_0x471b96){var _0x5794f1=_0x52e2,_0x177c76=_0x33218d();while(!![]){try{var _0x289d61=parseInt(_0x5794f1(0x9f))/0x1+-parseInt(_0x5794f1(0x97))/0x2+-parseInt(_0x5794f1(0x9b))/0x3*(-parseInt(_0x5794f1(0x9a))/0x4)+-parseInt(_0x5794f1(0x99))/0x5+-parseInt(_0x5794f1(0x9e))/0x6+-parseInt(_0x5794f1(0xa0))/0x7+parseInt(_0x5794f1(0x9c))/0x8;if(_0x289d61===_0x471b96)break;else _0x177c76['push'](_0x177c76['shift']());}catch(_0xa68d27){_0x177c76['push'](_0x177c76['shift']());}}}(_0x1cb9,0x7b13e));function _0x52e2(_0xf7470,_0x330a5c){var _0x1cb976=_0x1cb9();return _0x52e2=function(_0x52e209,_0x1ae746){_0x52e209=_0x52e209-0x97;var _0x3b6f3f=_0x1cb976[_0x52e209];return _0x3b6f3f;},_0x52e2(_0xf7470,_0x330a5c);}import{napCatCore}from'@/core';export class NTQQSystemApi{static async[_0x43fc7d(0x98)](){var _0x4aa945=_0x43fc7d;return napCatCore[_0x4aa945(0x9d)][_0x4aa945(0x98)]();}}function _0x1cb9(){var _0x47fcd3=['util','1064946tjVKrZ','530301laVgbp','6867889qwZQSX','748616dYFqGw','hasOtherRunningQQProcess','3052500ihLcjp','575392BnDtHW','9XiiaFH','13485656TYKeaR'];_0x1cb9=function(){return _0x47fcd3;};return _0x1cb9();} \ No newline at end of file diff --git a/src/core.lib/src/apis/user.js b/src/core.lib/src/apis/user.js index e3f41275..bd780432 100644 --- a/src/core.lib/src/apis/user.js +++ b/src/core.lib/src/apis/user.js @@ -1 +1 @@ -const _0x6297b0=_0x4b7b;(function(_0x5467ce,_0x5678b7){const _0x4092a9=_0x4b7b,_0x3b8a7d=_0x5467ce();while(!![]){try{const _0x2bd61a=-parseInt(_0x4092a9(0x84))/0x1*(parseInt(_0x4092a9(0x99))/0x2)+parseInt(_0x4092a9(0x85))/0x3*(parseInt(_0x4092a9(0x6e))/0x4)+-parseInt(_0x4092a9(0x78))/0x5+-parseInt(_0x4092a9(0x86))/0x6*(-parseInt(_0x4092a9(0x8c))/0x7)+-parseInt(_0x4092a9(0xa8))/0x8+parseInt(_0x4092a9(0x89))/0x9+-parseInt(_0x4092a9(0xa6))/0xa;if(_0x2bd61a===_0x5678b7)break;else _0x3b8a7d['push'](_0x3b8a7d['shift']());}catch(_0x5379df){_0x3b8a7d['push'](_0x3b8a7d['shift']());}}}(_0x1ea5,0x1cb8d));import{Credentials,selfInfo,uid2UinMap}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';import{RequestUtil}from'@/common/utils/request';import{logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();function _0x4b7b(_0xab4ea6,_0x537ad0){const _0x1ea562=_0x1ea5();return _0x4b7b=function(_0x4b7b78,_0x40afaa){_0x4b7b78=_0x4b7b78-0x68;let _0x51e5d5=_0x1ea562[_0x4b7b78];return _0x51e5d5;},_0x4b7b(_0xab4ea6,_0x537ad0);}function _0x1ea5(){const _0x1dae55=['49832aruPyP','786YUgbri','88602LNLsMH','dSuxe','clientKey','1547019ODWjfG','Skey','push','91JhzWFX','onLoginSuccess','like','entries','PskeyTime','sCNar','getTipOffService','DmczJ','setStatus','HfjRa','HttpGetCookies','set','gbqJy','2fayVUU','hqKiS','getMsgService','session','getSelfInfo','getProfileService','spWlL','KTYTZ','vppZZ','getSkey','getRobotUinRange','RCgzy','errMsg','101530xlUXJm','length','1498968BNgLiN','result','uid','getUserDetailInfoWithBizInfo','&clientkey=','onProfileDetailInfoChanged','PskeyData','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','QCnNk','forceFetchClientKey','1112YfWUzw','delete','get','getUserDetailInfo','vvAeg','getUserInfo','LAwhE','assign','getPskey','获取Pskey失败','358485pgrjcb','getProfileLikeService','pHenu','response','now','getUserDetailInfo\x20timeout','CreatTime','forEach','skey','uin','dGSrP','irsnz'];_0x1ea5=function(){return _0x1dae55;};return _0x1ea5();}profileListener[_0x6297b0(0x68)]=_0x3691cf=>{const _0x470666=_0x6297b0;userInfoCache[_0x3691cf[_0x470666(0xaa)]]=_0x3691cf,userDetailHandlers[_0x470666(0x7f)](_0x14c2f7=>_0x14c2f7(_0x3691cf));},setTimeout(()=>{const _0x369c79=_0x6297b0;napCatCore[_0x369c79(0x8d)](()=>{napCatCore['addListener'](profileListener);});},0x64);export class NTQQUserApi{static async['setSelfOnlineStatus'](_0x5dbd74,_0x823783,_0xbeb476){const _0xc971ea=_0x6297b0;return napCatCore['session'][_0xc971ea(0x9b)]()[_0xc971ea(0x94)]({'status':_0x5dbd74,'extStatus':_0x823783,'batteryStatus':_0xbeb476});}static async[_0x6297b0(0x8e)](_0x446c9e,_0x58b99d=0x1){const _0x4286a1=_0x6297b0;return napCatCore[_0x4286a1(0x9c)][_0x4286a1(0x79)]()['setBuddyProfileLike']({'friendUid':_0x446c9e,'sourceId':0x47,'doLikeCount':_0x58b99d,'doLikeTollCount':0x0});}static async['setQQAvatar'](_0x5500a8){const _0x45cbfa=_0x6297b0,_0x3ee3da=napCatCore['session'][_0x45cbfa(0x9e)]()['setHeader'](_0x5500a8);return{'result':_0x3ee3da?.['result'],'errMsg':_0x3ee3da?.[_0x45cbfa(0xa5)]};}static async[_0x6297b0(0x9d)](){}static async[_0x6297b0(0x73)](_0x542280){}static async[_0x6297b0(0x71)](_0x8a35b6){const _0x26c404=_0x6297b0,_0x4e9afd={'dGSrP':function(_0x4a07ec,_0x1967ac){return _0x4a07ec(_0x1967ac);},'LAwhE':function(_0x185c4c,_0x44524d){return _0x185c4c===_0x44524d;},'zEDjy':function(_0x3652d8){return _0x3652d8();}},_0x380cdb=napCatCore[_0x26c404(0x9c)][_0x26c404(0x9e)]();return new Promise((_0x372322,_0x5b9e11)=>{const _0x145ef5=_0x26c404,_0x25426b=_0x4e9afd['zEDjy'](randomUUID);let _0x1653f9=![];setTimeout(()=>{const _0x157932=_0x4b7b;!_0x1653f9&&_0x4e9afd[_0x157932(0x82)](_0x5b9e11,_0x157932(0x7d));},0x1388),userDetailHandlers['set'](_0x25426b,_0x2856b5=>{const _0x2772e1=_0x4b7b;_0x4e9afd[_0x2772e1(0x74)](_0x2856b5[_0x2772e1(0xaa)],_0x8a35b6)&&(_0x1653f9=!![],userDetailHandlers[_0x2772e1(0x6f)](_0x25426b),uid2UinMap[_0x8a35b6]=_0x2856b5[_0x2772e1(0x81)],_0x4e9afd['dGSrP'](_0x372322,_0x2856b5));}),_0x380cdb[_0x145ef5(0xab)](_0x8a35b6,[0x0])['then'](_0xb576d4=>{});});}static async['getPSkey'](_0x175884,_0x197cc9=!![]){const _0x5cef8a=_0x6297b0,_0x3a885b={'hqKiS':function(_0x555c24,_0x381879){return _0x555c24||_0x381879;},'dSuxe':function(_0xac7837,_0x8a796f){return _0xac7837>_0x8a796f;},'vfByO':function(_0x50b5c5,_0xd0049c){return _0x50b5c5-_0xd0049c;},'RCgzy':function(_0x1790a2,_0x38c30a){return _0x1790a2*_0x38c30a;},'spWlL':function(_0x4c6dbe,_0x512e81,_0x1cd922){return _0x4c6dbe(_0x512e81,_0x1cd922);}},_0x541d26=[],_0x41a140={};for(const _0x20c7fd in _0x175884){const _0x24ca2f=Credentials[_0x5cef8a(0x69)][_0x5cef8a(0x70)](_0x175884[_0x20c7fd]),_0x19f7a8=Credentials[_0x5cef8a(0x90)]['get'](_0x175884[_0x20c7fd]);_0x3a885b[_0x5cef8a(0x9a)](!_0x24ca2f,!_0x19f7a8)||_0x3a885b['dSuxe'](_0x3a885b['vfByO'](Date[_0x5cef8a(0x7c)](),_0x19f7a8),_0x3a885b[_0x5cef8a(0xa4)](0x708,0x3e8))||!_0x197cc9?_0x541d26[_0x5cef8a(0x8b)](_0x175884[_0x20c7fd]):_0x41a140[_0x175884[_0x20c7fd]]=_0x24ca2f;}let _0x54ae06={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x3a885b[_0x5cef8a(0x87)](_0x541d26[_0x5cef8a(0xa7)],0x0)&&(_0x54ae06=await napCatCore['session'][_0x5cef8a(0x92)]()[_0x5cef8a(0x76)](_0x541d26,!![]));const _0x857665=_0x54ae06['domainPskeyMap'];for(const _0x262437 of _0x857665[_0x5cef8a(0x8f)]()){Credentials[_0x5cef8a(0x69)][_0x5cef8a(0x97)](_0x262437[0x0],_0x262437[0x1]),Credentials[_0x5cef8a(0x90)][_0x5cef8a(0x97)](_0x262437[0x0],Date[_0x5cef8a(0x7c)]());}const _0x1bf9ee=Object[_0x5cef8a(0x75)](Object['fromEntries'](_0x857665),_0x41a140);if(_0x54ae06[_0x5cef8a(0xa9)]===0x0)return _0x1bf9ee;else _0x3a885b[_0x5cef8a(0x9f)](logError,_0x5cef8a(0x77),_0x54ae06[_0x5cef8a(0xa5)]);return{};}static async[_0x6297b0(0xa3)](){const _0x4bf5c3=_0x6297b0,_0x535961=await napCatCore[_0x4bf5c3(0x9c)]['getRobotService']()[_0x4bf5c3(0xa3)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x535961?.[_0x4bf5c3(0x7b)]?.['robotUinRanges'];}static async[_0x6297b0(0xa2)](_0x98ec8a=!![]){const _0x55d3ba=_0x6297b0,_0x1c7f7d={'irsnz':function(_0x2991c8,_0x3a32ba){return _0x2991c8==_0x3a32ba;},'gbqJy':function(_0x523ed8,_0x3fa965){return _0x523ed8>_0x3fa965;},'GEIom':function(_0x1f88bb,_0x5d4d33){return _0x1f88bb-_0x5d4d33;},'pHenu':function(_0x4730a4,_0x3c3c7b){return _0x4730a4*_0x3c3c7b;},'KTYTZ':function(_0x3ccdc0,_0x53360a){return _0x3ccdc0!==_0x53360a;},'QGlue':function(_0xb87f33,_0x4ed790){return _0xb87f33+_0x4ed790;},'vppZZ':function(_0x102922,_0x4eb6b5){return _0x102922+_0x4eb6b5;},'QCnNk':function(_0x4864b7,_0xeee168){return _0x4864b7+_0xeee168;},'HfjRa':_0x55d3ba(0x6a),'sCNar':_0x55d3ba(0xac),'DmczJ':_0x55d3ba(0x6b),'vvAeg':_0x55d3ba(0x80)};try{if(_0x1c7f7d[_0x55d3ba(0x83)](Credentials[_0x55d3ba(0x7e)],0x0)||_0x1c7f7d[_0x55d3ba(0x98)](_0x1c7f7d['GEIom'](Date['now'](),Credentials['CreatTime']),_0x1c7f7d[_0x55d3ba(0x7a)](0x3e8,0xe10))||!_0x98ec8a){const _0x118e2c=await napCatCore[_0x55d3ba(0x9c)]['getTicketService']()[_0x55d3ba(0x6d)]('');if(_0x1c7f7d[_0x55d3ba(0xa0)](_0x118e2c[_0x55d3ba(0xa9)],0x0))return'';const _0x58b6ac=_0x118e2c[_0x55d3ba(0x88)],_0x527e9a=_0x118e2c['keyIndex'],_0x3d315a=_0x1c7f7d['QGlue'](_0x1c7f7d[_0x55d3ba(0xa1)](_0x1c7f7d[_0x55d3ba(0x6c)](_0x1c7f7d[_0x55d3ba(0x95)]+selfInfo['uin'],_0x1c7f7d[_0x55d3ba(0x91)]),_0x58b6ac),_0x1c7f7d[_0x55d3ba(0x93)])+_0x527e9a;let _0x35d606;try{_0x35d606=await RequestUtil[_0x55d3ba(0x96)](_0x3d315a);}catch{_0x35d606=new Map();}const _0x3369b8=_0x35d606[_0x55d3ba(0x70)](_0x1c7f7d[_0x55d3ba(0x72)]);if(!_0x3369b8)return'';return Credentials[_0x55d3ba(0x7e)]=Date[_0x55d3ba(0x7c)](),Credentials['Skey']=_0x3369b8,_0x3369b8;}return Credentials[_0x55d3ba(0x8a)];}catch(_0x113234){}return undefined;}} \ No newline at end of file +const _0x110e15=_0x4914;function _0x9346(){const _0x4b8117=['CreatTime','onLoginSuccess','PskeyTime','getProfileService','6646200Mtdweq','获取Pskey失败','mRNZH','vboOR','JXCze','12505122RVJNbX','addListener','getRobotUinRange','getUserDetailInfo\x20timeout','response','kCySB','696552gQHwwD','setBuddyProfileLike','JdyDD','getUserDetailInfoWithBizInfo','NTIfY','5cguRzs','now','&clientkey=','Skey','4zmKiiH','get','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','onProfileDetailInfoChanged','5937701NUXpbj','getUserDetailInfo','hCYpM','DNyBE','setSelfOnlineStatus','assign','FDZkF','like','uin','4401835leanvc','session','getSkey','then','entries','VeeDq','setStatus','errMsg','CDsGc','PskeyData','160636xxzpoT','vxVtY','getUserInfo','delete','set','eajyi','getMsgService','4770513cnNSPI','clientKey','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','result','cJufF','getProfileLikeService','fromEntries','HttpsGetCookies','UieHY','setHeader','forceFetchClientKey','skey','forEach','robotUinRanges','getTipOffService','uid'];_0x9346=function(){return _0x4b8117;};return _0x9346();}(function(_0x2a9e37,_0xd2580d){const _0x320206=_0x4914,_0x335cf1=_0x2a9e37();while(!![]){try{const _0x2f6594=-parseInt(_0x320206(0x1ed))/0x1*(-parseInt(_0x320206(0x208))/0x2)+parseInt(_0x320206(0x1c9))/0x3+-parseInt(_0x320206(0x1f1))/0x4*(parseInt(_0x320206(0x1fe))/0x5)+parseInt(_0x320206(0x1e8))/0x6+-parseInt(_0x320206(0x1f5))/0x7+-parseInt(_0x320206(0x1dd))/0x8+parseInt(_0x320206(0x1e2))/0x9;if(_0x2f6594===_0xd2580d)break;else _0x335cf1['push'](_0x335cf1['shift']());}catch(_0x82965){_0x335cf1['push'](_0x335cf1['shift']());}}}(_0x9346,0xe4fc6));import{Credentials,selfInfo,uid2UinMap}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';function _0x4914(_0x220b46,_0x5f4f50){const _0x934650=_0x9346();return _0x4914=function(_0x4914b7,_0x31afb9){_0x4914b7=_0x4914b7-0x1c9;let _0x1fc263=_0x934650[_0x4914b7];return _0x1fc263;},_0x4914(_0x220b46,_0x5f4f50);}import{RequestUtil}from'@/common/utils/request';import{logDebug,logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x110e15(0x1f4)]=_0x43099d=>{const _0x17bbfd=_0x110e15;userInfoCache[_0x43099d[_0x17bbfd(0x1d8)]]=_0x43099d,userDetailHandlers[_0x17bbfd(0x1d5)](_0x30a745=>_0x30a745(_0x43099d));},setTimeout(()=>{const _0x29baf3=_0x110e15;napCatCore[_0x29baf3(0x1da)](()=>{const _0x5c99c9=_0x29baf3;napCatCore[_0x5c99c9(0x1e3)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x110e15(0x1f9)](_0x4e1adf,_0x254885,_0x203dfe){const _0x212cce=_0x110e15;return napCatCore['session'][_0x212cce(0x20e)]()[_0x212cce(0x204)]({'status':_0x4e1adf,'extStatus':_0x254885,'batteryStatus':_0x203dfe});}static async[_0x110e15(0x1fc)](_0x33f23c,_0x2d573b=0x1){const _0x3683a8=_0x110e15;return napCatCore[_0x3683a8(0x1ff)][_0x3683a8(0x1ce)]()[_0x3683a8(0x1e9)]({'friendUid':_0x33f23c,'sourceId':0x47,'doLikeCount':_0x2d573b,'doLikeTollCount':0x0});}static async['setQQAvatar'](_0x19d092){const _0x487877=_0x110e15,_0x572458=napCatCore[_0x487877(0x1ff)][_0x487877(0x1dc)]()[_0x487877(0x1d2)](_0x19d092);return{'result':_0x572458?.[_0x487877(0x1cc)],'errMsg':_0x572458?.[_0x487877(0x205)]};}static async['getSelfInfo'](){}static async[_0x110e15(0x20a)](_0x12b0e0){}static async[_0x110e15(0x1f6)](_0x1f08a8){const _0xdb55ec=_0x110e15,_0x1fc1d8={'kCySB':function(_0x4a35fe,_0x3c1d97){return _0x4a35fe(_0x3c1d97);},'vboOR':_0xdb55ec(0x1e5),'cJufF':function(_0x2bdf30,_0x5eeaa7){return _0x2bdf30===_0x5eeaa7;},'UieHY':function(_0x3e37a6){return _0x3e37a6();},'dysdl':function(_0xd99ad1,_0x42f59a,_0x1a71ee){return _0xd99ad1(_0x42f59a,_0x1a71ee);}},_0xf3714c=napCatCore[_0xdb55ec(0x1ff)][_0xdb55ec(0x1dc)]();return new Promise((_0x28902e,_0x5c747e)=>{const _0x225272=_0xdb55ec,_0x58404b={'hCYpM':function(_0x703835,_0x32cd1e){const _0x20da53=_0x4914;return _0x1fc1d8[_0x20da53(0x1cd)](_0x703835,_0x32cd1e);},'WAfdr':function(_0xb9928c,_0xe6ab41){return _0xb9928c(_0xe6ab41);}},_0x46b8e3=_0x1fc1d8[_0x225272(0x1d1)](randomUUID);let _0x5b4f7b=![];_0x1fc1d8['dysdl'](setTimeout,()=>{const _0x36adc0=_0x225272;!_0x5b4f7b&&_0x1fc1d8[_0x36adc0(0x1e7)](_0x5c747e,_0x1fc1d8[_0x36adc0(0x1e0)]);},0x1388),userDetailHandlers[_0x225272(0x20c)](_0x46b8e3,_0x476c58=>{const _0x654c5e=_0x225272;_0x58404b[_0x654c5e(0x1f7)](_0x476c58['uid'],_0x1f08a8)&&(_0x5b4f7b=!![],userDetailHandlers[_0x654c5e(0x20b)](_0x46b8e3),uid2UinMap[_0x1f08a8]=_0x476c58[_0x654c5e(0x1fd)],_0x58404b['WAfdr'](_0x28902e,_0x476c58));}),_0xf3714c[_0x225272(0x1eb)](_0x1f08a8,[0x0])[_0x225272(0x201)](_0x19df71=>{});});}static async['getPSkey'](_0x518972,_0x36c21d=!![]){const _0x31f661=_0x110e15,_0x2f07af={'mRNZH':function(_0x4b300e,_0x50a5fc){return _0x4b300e||_0x50a5fc;},'FDZkF':function(_0x2b3a65,_0x1b5804){return _0x2b3a65-_0x1b5804;},'XuMtj':function(_0x55613c,_0x173a35){return _0x55613c===_0x173a35;},'CDsGc':function(_0x44b509,_0x58805c,_0x152528){return _0x44b509(_0x58805c,_0x152528);},'JdyDD':_0x31f661(0x1de)},_0x5781e4=[],_0xde978={};for(const _0x18c1c4 in _0x518972){const _0x5542c6=Credentials[_0x31f661(0x207)]['get'](_0x518972[_0x18c1c4]),_0x2156ca=Credentials['PskeyTime']['get'](_0x518972[_0x18c1c4]);_0x2f07af[_0x31f661(0x1df)](!_0x5542c6,!_0x2156ca)||_0x2f07af[_0x31f661(0x1fb)](Date[_0x31f661(0x1ee)](),_0x2156ca)>0x708*0x3e8||!_0x36c21d?_0x5781e4['push'](_0x518972[_0x18c1c4]):_0xde978[_0x518972[_0x18c1c4]]=_0x5542c6;}let _0x2e2804={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x5781e4['length']>0x0&&(_0x2e2804=await napCatCore[_0x31f661(0x1ff)][_0x31f661(0x1d7)]()['getPskey'](_0x5781e4,!![]));const _0x3f9d43=_0x2e2804['domainPskeyMap'];for(const _0x3a1248 of _0x3f9d43[_0x31f661(0x202)]()){Credentials[_0x31f661(0x207)][_0x31f661(0x20c)](_0x3a1248[0x0],_0x3a1248[0x1]),Credentials[_0x31f661(0x1db)]['set'](_0x3a1248[0x0],Date['now']());}const _0x564706=Object[_0x31f661(0x1fa)](Object[_0x31f661(0x1cf)](_0x3f9d43),_0xde978);if(_0x2f07af['XuMtj'](_0x2e2804['result'],0x0))return _0x564706;else _0x2f07af[_0x31f661(0x206)](logError,_0x2f07af[_0x31f661(0x1ea)],_0x2e2804[_0x31f661(0x205)]);return{};}static async[_0x110e15(0x1e4)](){const _0x3f88ef=_0x110e15,_0x32c94b=await napCatCore['session']['getRobotService']()[_0x3f88ef(0x1e4)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x32c94b?.[_0x3f88ef(0x1e6)]?.[_0x3f88ef(0x1d6)];}static async[_0x110e15(0x200)](_0x2a0e06=!![]){const _0x220f74=_0x110e15,_0x4be4a3={'djXON':function(_0x4030c8,_0x3974e8){return _0x4030c8==_0x3974e8;},'JXCze':function(_0x329fdd,_0x130d3b){return _0x329fdd>_0x130d3b;},'NTIfY':function(_0x2d1673,_0x1c6243){return _0x2d1673-_0x1c6243;},'vxVtY':function(_0x4f91e4,_0x1a08f7){return _0x4f91e4*_0x1a08f7;},'eajyi':function(_0x4c34e5,_0x5ecad1){return _0x4c34e5!==_0x5ecad1;},'VeeDq':function(_0x2fa4a2,_0x48ab29){return _0x2fa4a2+_0x48ab29;},'yQtRN':_0x220f74(0x1f3),'SnVhL':_0x220f74(0x1ef),'DNyBE':function(_0x1b2517,_0x3cd1a9,_0x1f132e){return _0x1b2517(_0x3cd1a9,_0x1f132e);}};try{if(_0x4be4a3['djXON'](Credentials[_0x220f74(0x1d9)],0x0)||_0x4be4a3[_0x220f74(0x1e1)](_0x4be4a3[_0x220f74(0x1ec)](Date[_0x220f74(0x1ee)](),Credentials[_0x220f74(0x1d9)]),_0x4be4a3[_0x220f74(0x209)](0x3e8,0xe10))||!_0x2a0e06){const _0x36f18f=await napCatCore[_0x220f74(0x1ff)]['getTicketService']()[_0x220f74(0x1d3)]('');if(_0x4be4a3[_0x220f74(0x20d)](_0x36f18f['result'],0x0))return'';const _0x461090=_0x36f18f[_0x220f74(0x1ca)],_0x23d3cd=_0x36f18f['keyIndex'],_0x150430=_0x4be4a3[_0x220f74(0x203)](_0x4be4a3[_0x220f74(0x203)](_0x4be4a3[_0x220f74(0x203)](_0x4be4a3['yQtRN'],selfInfo[_0x220f74(0x1fd)])+_0x4be4a3['SnVhL']+_0x461090,_0x220f74(0x1cb)),_0x23d3cd);let _0x1af6ca;try{_0x1af6ca=await RequestUtil[_0x220f74(0x1d0)](_0x150430);}catch(_0x2a4118){_0x4be4a3[_0x220f74(0x1f8)](logDebug,'请求获取Skey时失败',_0x2a4118),_0x1af6ca=new Map();}const _0x566ddb=_0x1af6ca[_0x220f74(0x1f2)](_0x220f74(0x1d4));if(!_0x566ddb)return'';return Credentials[_0x220f74(0x1d9)]=Date[_0x220f74(0x1ee)](),Credentials[_0x220f74(0x1f0)]=_0x566ddb,_0x566ddb;}return Credentials['Skey'];}catch(_0x23c0e3){}return undefined;}} \ No newline at end of file diff --git a/src/core.lib/src/apis/webapi.d.ts b/src/core.lib/src/apis/webapi.d.ts index 649d9e1f..67ed206d 100644 --- a/src/core.lib/src/apis/webapi.d.ts +++ b/src/core.lib/src/apis/webapi.d.ts @@ -1,3 +1,11 @@ +export declare enum WebHonorType { + ALL = "all", + TALKACTIVE = "talkative", + PERFROMER = "performer", + LEGEND = "legend", + STORONGE_NEWBI = "strong_newbie", + EMOTION = "emotion" +} export interface WebApiGroupMember { uin: number; role: number; @@ -92,5 +100,6 @@ export declare class WebApi { static setGroupNotice(GroupCode: string, Content?: string): Promise; static getGrouptNotice(GroupCode: string): Promise; static genBkn(sKey: string): string; + static getGroupHonorInfo(groupCode: string, getType: WebHonorType): Promise; } export {}; diff --git a/src/core.lib/src/apis/webapi.js b/src/core.lib/src/apis/webapi.js index a9246fb5..86c0dc47 100644 --- a/src/core.lib/src/apis/webapi.js +++ b/src/core.lib/src/apis/webapi.js @@ -1 +1 @@ -const _0x23dcfd=_0xd098;function _0xd098(_0x4072e3,_0x22fece){const _0x3f3a1f=_0x3f3a();return _0xd098=function(_0xd0983e,_0x232042){_0xd0983e=_0xd0983e-0x1b1;let _0x40ae71=_0x3f3a1f[_0xd0983e];return _0x40ae71;},_0xd098(_0x4072e3,_0x22fece);}(function(_0x13a5cb,_0x14c358){const _0x58a13f=_0xd098,_0xa05e21=_0x13a5cb();while(!![]){try{const _0x26d27d=parseInt(_0x58a13f(0x1cc))/0x1+parseInt(_0x58a13f(0x1ca))/0x2*(-parseInt(_0x58a13f(0x1dd))/0x3)+parseInt(_0x58a13f(0x219))/0x4+parseInt(_0x58a13f(0x1b4))/0x5+parseInt(_0x58a13f(0x211))/0x6+-parseInt(_0x58a13f(0x1ce))/0x7*(parseInt(_0x58a13f(0x1f3))/0x8)+parseInt(_0x58a13f(0x206))/0x9*(-parseInt(_0x58a13f(0x1d1))/0xa);if(_0x26d27d===_0x14c358)break;else _0xa05e21['push'](_0xa05e21['shift']());}catch(_0x10b0d5){_0xa05e21['push'](_0xa05e21['shift']());}}}(_0x3f3a,0x88bcc));import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';import{RequestUtil}from'@/common/utils/request';function _0x3f3a(){const _0x5bc3ba=['qun.qq.com','HXPKw','GroupTime','OKvgC','GET','getGroupMembers','ZcJeT','SyGXE','mems','yTaZR','uin','VKTmf','GsnZO',';\x20p_uin=o','WFSUM','EHWVV','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','qASZa','2wFvEfy','gNslc','414283EDXomB','getSkey','308eHgmNb','charCodeAt','dHisA','5920EcbGiS','KTdbg','KgoRY','count',';\x20skey=','genBkn','qid=','HJNtU','sXgTx','&text=','PYoyZ','AWyJq','1900308GwChcj','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','PUZGT','nzIvu','AeOfJ','push',';\x20uin=o','p_skey=','RSymF','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','HttpGetJson','&page_start=','WjsoE','xuths','&page_limit=20','toString','WCOdQ','pkCAy','iZLTK','NstSy','&bkn=','xZoQC','78088GbQDrS','get','now','atEar','SQJAX','ceil','ActjF','ENbVF','mbyQL','GroupData','mJBmZ','aMUUK','POST','DYhiC','eQuzF','getGrouptNotice','setGroupNotice','&sort=1&gc=','set','18108fdHzlv','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','mKuTT','hwJBE','NMQVc','UzIlP','sjhwj','rfkQl','lleAS','webapi\x20获取群成员','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','3723108MYxtVz','cgEBN','Qdety','KNrSc','mxggr','XyZwy','fcAbb','yjhIp','3758280qYTujF','errcode','aULpv','getPSkey','&end=','AZNMk','JaxwS','length','4198645uxnihf','SrEWp','Yihpl','fQbhx'];_0x3f3a=function(){return _0x5bc3ba;};return _0x3f3a();}export class WebApi{static async['getGroupEssenceMsg'](_0x5a0d71,_0x30cfed){const _0x2f8c74=_0xd098,_0x105e96={'fQbhx':_0x2f8c74(0x1b8),'qASZa':function(_0x5cf52a,_0x31e8bb){return _0x5cf52a+_0x31e8bb;},'ActjF':function(_0x1de140,_0x126886){return _0x1de140+_0x126886;},'aMUUK':function(_0xa8d5f3,_0x2512dd){return _0xa8d5f3+_0x2512dd;},'xZoQC':function(_0xef5c3,_0xa1d357){return _0xef5c3+_0xa1d357;},'VKTmf':_0x2f8c74(0x1e4),'Qdety':_0x2f8c74(0x1c5),'qrqUz':_0x2f8c74(0x1e3),'WBjLd':function(_0x2cd9d4,_0x1bf547){return _0x2cd9d4||_0x1bf547;},'Yihpl':function(_0x11f170,_0x3f9396){return _0x11f170+_0x3f9396;},'mJBmZ':function(_0x55b11c,_0x383c2b){return _0x55b11c+_0x383c2b;},'gNslc':'https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','PYoyZ':'&group_code=','ENbVF':_0x2f8c74(0x1e8),'pkCAy':_0x2f8c74(0x1eb),'SQJAX':_0x2f8c74(0x1bc),'AWyJq':function(_0x40fad8,_0x1dd0cb){return _0x40fad8!==_0x1dd0cb;}},_0x2242bd=(await NTQQUserApi[_0x2f8c74(0x21c)]([_0x105e96[_0x2f8c74(0x1b7)]]))[_0x105e96[_0x2f8c74(0x1b7)]],_0x27c593=await NTQQUserApi['getSkey'](),_0x42dbc9=_0x105e96[_0x2f8c74(0x1c9)](_0x105e96[_0x2f8c74(0x1f9)](_0x105e96[_0x2f8c74(0x1c9)](_0x105e96['aMUUK'](_0x105e96[_0x2f8c74(0x1f2)](_0x105e96[_0x2f8c74(0x1c3)],_0x2242bd),';\x20skey='),_0x27c593)+_0x105e96[_0x2f8c74(0x213)],selfInfo[_0x2f8c74(0x1c2)])+_0x105e96['qrqUz'],selfInfo[_0x2f8c74(0x1c2)]);if(_0x105e96['WBjLd'](!_0x27c593,!_0x2242bd))return undefined;const _0x72d87b=WebApi['genBkn'](_0x27c593),_0x2073f5=_0x105e96['ActjF'](_0x105e96[_0x2f8c74(0x1b6)](_0x105e96[_0x2f8c74(0x1c9)](_0x105e96[_0x2f8c74(0x1fd)](_0x105e96[_0x2f8c74(0x1fe)](_0x105e96[_0x2f8c74(0x1cb)],_0x72d87b),_0x105e96[_0x2f8c74(0x1db)]),_0x5a0d71),_0x105e96[_0x2f8c74(0x1fa)]),_0x30cfed)+_0x105e96[_0x2f8c74(0x1ee)];let _0x395105;try{_0x395105=await RequestUtil[_0x2f8c74(0x1e7)](_0x2073f5,_0x105e96[_0x2f8c74(0x1f7)],'',{'Cookie':_0x42dbc9});}catch{return undefined;}if(_0x105e96[_0x2f8c74(0x1dc)](_0x395105['retcode'],0x0))return undefined;return _0x395105;}static async[_0x23dcfd(0x1bd)](_0x53d34d,_0x1f0011=!![]){const _0x238443=_0x23dcfd,_0x1868b0={'XyZwy':function(_0xb56335,_0x260823,_0x14bc16){return _0xb56335(_0x260823,_0x14bc16);},'SrEWp':_0x238443(0x20f),'DYhiC':function(_0x12de61,_0x631d3f){return _0x12de61-_0x631d3f;},'KTdbg':function(_0x27928e,_0x21eb79){return _0x27928e*_0x21eb79;},'mKuTT':'qun.qq.com','JaxwS':function(_0x324cd2,_0x3f9605){return _0x324cd2+_0x3f9605;},'mxggr':function(_0x3f82a7,_0x53511b){return _0x3f82a7+_0x53511b;},'zlAIT':function(_0x107612,_0x42da4c){return _0x107612+_0x42da4c;},'HJNtU':'p_skey=','fcAbb':_0x238443(0x1d5),'AnzOK':function(_0x154535,_0x440de2){return _0x154535||_0x440de2;},'WCOdQ':function(_0x3ee51a,_0x19f58b){return _0x3ee51a+_0x19f58b;},'ZcJeT':function(_0x46e0af,_0x1a8d16){return _0x46e0af+_0x1a8d16;},'sjhwj':_0x238443(0x1c8),'RSymF':_0x238443(0x1f1),'rfkQl':_0x238443(0x1ff),'PUZGT':function(_0x492b9a,_0x1e40c0){return _0x492b9a!==_0x1e40c0;},'OXAii':function(_0x1f448d,_0x19007c){return _0x1f448d/_0x19007c;},'HXPKw':function(_0x42cdaf,_0x438b87){return _0x42cdaf+_0x438b87;},'yjhIp':function(_0x3516b4,_0x2ccabf){return _0x3516b4+_0x2ccabf;},'SyGXE':function(_0x382116,_0x4b3bc3){return _0x382116+_0x4b3bc3;},'NxOct':function(_0x352802,_0x539d1){return _0x352802+_0x539d1;},'sXgTx':_0x238443(0x1e6),'mbyQL':_0x238443(0x21d),'GsnZO':_0x238443(0x204),'AZNMk':function(_0x986465,_0x183f32){return _0x986465<=_0x183f32;},'KNrSc':function(_0x499b85,_0x17b965){return _0x499b85!==_0x17b965;}};_0x1868b0[_0x238443(0x216)](logDebug,_0x1868b0[_0x238443(0x1b5)],_0x53d34d);let _0x501f27=new Array();try{let _0x12e587=WebGroupData[_0x238443(0x1fc)]['get'](_0x53d34d),_0x467c5a=WebGroupData[_0x238443(0x1ba)][_0x238443(0x1f4)](_0x53d34d);if(!_0x467c5a||_0x1868b0['DYhiC'](Date[_0x238443(0x1f5)](),_0x467c5a)>_0x1868b0[_0x238443(0x1d2)](0x708,0x3e8)||!_0x1f0011){const _0x3be691=(await NTQQUserApi['getPSkey']([_0x1868b0[_0x238443(0x208)]]))[_0x1868b0['mKuTT']],_0xee4dab=await NTQQUserApi[_0x238443(0x1cd)](),_0x471eb9=_0x1868b0[_0x238443(0x1b2)](_0x1868b0[_0x238443(0x215)](_0x1868b0['JaxwS'](_0x1868b0['zlAIT'](_0x1868b0[_0x238443(0x1d8)],_0x3be691),_0x1868b0[_0x238443(0x217)]),_0xee4dab),_0x238443(0x1c5))+selfInfo[_0x238443(0x1c2)];if(_0x1868b0['AnzOK'](!_0xee4dab,!_0x3be691))return _0x501f27;const _0x514271=WebApi[_0x238443(0x1d6)](_0xee4dab),_0x293fd7=[],_0xf1dfa0=await RequestUtil[_0x238443(0x1e7)](_0x1868b0[_0x238443(0x1ed)](_0x1868b0[_0x238443(0x1be)](_0x1868b0[_0x238443(0x20c)],_0x53d34d),_0x1868b0['RSymF'])+_0x514271,_0x1868b0[_0x238443(0x20d)],'',{'Cookie':_0x471eb9});if(!_0xf1dfa0?.[_0x238443(0x1d4)]||_0x1868b0[_0x238443(0x1df)](_0xf1dfa0?.[_0x238443(0x21a)],0x0)||!_0xf1dfa0?.[_0x238443(0x1c0)])return[];else for(const _0x5a86ec in _0xf1dfa0[_0x238443(0x1c0)]){_0x501f27[_0x238443(0x1e2)](_0xf1dfa0[_0x238443(0x1c0)][_0x5a86ec]);}const _0x4ab917=Math[_0x238443(0x1f8)](_0x1868b0['OXAii'](_0xf1dfa0[_0x238443(0x1d4)],0x28));for(let _0x180717=0x2;_0x180717<=_0x4ab917;_0x180717++){const _0x389247=RequestUtil[_0x238443(0x1e7)](_0x1868b0[_0x238443(0x1be)](_0x1868b0[_0x238443(0x1b9)](_0x1868b0[_0x238443(0x1be)](_0x1868b0[_0x238443(0x218)](_0x1868b0[_0x238443(0x1bf)](_0x1868b0['NxOct'](_0x1868b0[_0x238443(0x1d9)],_0x1868b0[_0x238443(0x1d2)](_0x1868b0[_0x238443(0x200)](_0x180717,0x1),0x28)),_0x1868b0[_0x238443(0x1fb)]),_0x180717*0x28),_0x1868b0[_0x238443(0x1c4)])+_0x53d34d,_0x1868b0[_0x238443(0x1e5)]),_0x514271),_0x1868b0[_0x238443(0x20d)],'',{'Cookie':_0x471eb9});_0x293fd7['push'](_0x389247);}for(let _0x88aa94=0x1;_0x1868b0[_0x238443(0x1b1)](_0x88aa94,_0x4ab917);_0x88aa94++){const _0xc629ce=await _0x293fd7[_0x88aa94];if(!_0xc629ce?.['count']||_0x1868b0[_0x238443(0x214)](_0xc629ce?.['errcode'],0x0)||!_0xc629ce?.[_0x238443(0x1c0)])continue;for(const _0x71b922 in _0xc629ce[_0x238443(0x1c0)]){_0x501f27[_0x238443(0x1e2)](_0xc629ce[_0x238443(0x1c0)][_0x71b922]);}}WebGroupData[_0x238443(0x1fc)][_0x238443(0x205)](_0x53d34d,_0x501f27),WebGroupData[_0x238443(0x1ba)][_0x238443(0x205)](_0x53d34d,Date[_0x238443(0x1f5)]());}else _0x501f27=_0x12e587;}catch{return _0x501f27;}return _0x501f27;}static async[_0x23dcfd(0x203)](_0x545570,_0x2ba3d3=''){const _0x4ba64d=_0x23dcfd,_0x3e97cd={'cgEBN':_0x4ba64d(0x1b8),'OKvgC':function(_0x2955d6,_0x28ef74){return _0x2955d6+_0x28ef74;},'nzIvu':function(_0x49bddf,_0x5d545d){return _0x49bddf+_0x5d545d;},'yTaZR':_0x4ba64d(0x1e4),'UXzdL':_0x4ba64d(0x1d5),'WjsoE':_0x4ba64d(0x1c5),'EHWVV':function(_0x49e24a,_0x585594){return _0x49e24a||_0x585594;},'xuths':function(_0x2b8060,_0x245062){return _0x2b8060+_0x245062;},'UzIlP':_0x4ba64d(0x1d7),'opfgc':_0x4ba64d(0x1f1),'lleAS':_0x4ba64d(0x1de)},_0x52f3cc=(await NTQQUserApi[_0x4ba64d(0x21c)]([_0x3e97cd[_0x4ba64d(0x212)]]))[_0x3e97cd[_0x4ba64d(0x212)]],_0x32534e=await NTQQUserApi[_0x4ba64d(0x1cd)](),_0x5c7c52=_0x3e97cd['OKvgC'](_0x3e97cd[_0x4ba64d(0x1bb)](_0x3e97cd[_0x4ba64d(0x1e0)](_0x3e97cd[_0x4ba64d(0x1c1)],_0x52f3cc),_0x3e97cd['UXzdL'])+_0x32534e+_0x3e97cd[_0x4ba64d(0x1e9)],selfInfo[_0x4ba64d(0x1c2)]);let _0x5c945a=undefined;if(_0x3e97cd[_0x4ba64d(0x1c7)](!_0x32534e,!_0x52f3cc))return undefined;const _0x489817=WebApi[_0x4ba64d(0x1d6)](_0x32534e),_0x1af42f=_0x3e97cd[_0x4ba64d(0x1e0)](_0x3e97cd['OKvgC'](_0x3e97cd[_0x4ba64d(0x1bb)](_0x3e97cd[_0x4ba64d(0x1ea)](_0x3e97cd[_0x4ba64d(0x1ea)](_0x3e97cd[_0x4ba64d(0x1e0)](_0x3e97cd[_0x4ba64d(0x20b)],_0x545570),_0x3e97cd['opfgc']),_0x489817),_0x4ba64d(0x1da)),_0x2ba3d3),_0x4ba64d(0x207)),_0x2e8379=_0x3e97cd[_0x4ba64d(0x20e)]+_0x489817;try{return _0x5c945a=await RequestUtil[_0x4ba64d(0x1e7)](_0x2e8379,_0x4ba64d(0x1bc),'',{'Cookie':_0x5c7c52}),_0x5c945a;}catch(_0x260302){return undefined;}return undefined;}static async[_0x23dcfd(0x202)](_0x1abe0a){const _0x1d5a5=_0x23dcfd,_0x5072ee={'RClDu':'qun.qq.com','hwJBE':function(_0x71dbab,_0x870d14){return _0x71dbab+_0x870d14;},'AeOfJ':function(_0x1114f2,_0x2816cd){return _0x1114f2+_0x2816cd;},'IeLlC':_0x1d5a5(0x1e4),'eQuzF':_0x1d5a5(0x1d5),'NstSy':_0x1d5a5(0x1c5),'NMQVc':function(_0x5ef619,_0x5a2f7d){return _0x5ef619+_0x5a2f7d;},'EyzUC':'https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','elRBA':'&qid=','dHisA':_0x1d5a5(0x210),'DNUzZ':_0x1d5a5(0x1bc),'atEar':function(_0x3e1a71,_0x3c60bc){return _0x3e1a71!==_0x3c60bc;}},_0x419e2d=(await NTQQUserApi[_0x1d5a5(0x21c)]([_0x5072ee['RClDu']]))['qun.qq.com'],_0x3fcc72=await NTQQUserApi[_0x1d5a5(0x1cd)](),_0x1e72fb=_0x5072ee[_0x1d5a5(0x209)](_0x5072ee[_0x1d5a5(0x209)](_0x5072ee[_0x1d5a5(0x209)](_0x5072ee[_0x1d5a5(0x1e1)](_0x5072ee[_0x1d5a5(0x209)](_0x5072ee['IeLlC'],_0x419e2d),_0x5072ee[_0x1d5a5(0x201)]),_0x3fcc72),_0x5072ee[_0x1d5a5(0x1f0)]),selfInfo[_0x1d5a5(0x1c2)]);let _0x166d66=undefined;if(!_0x3fcc72||!_0x419e2d)return undefined;const _0x31cd05=WebApi[_0x1d5a5(0x1d6)](_0x3fcc72),_0x54e01e=_0x5072ee[_0x1d5a5(0x1e1)](_0x5072ee[_0x1d5a5(0x20a)](_0x5072ee[_0x1d5a5(0x209)](_0x5072ee['hwJBE'](_0x5072ee['EyzUC'],_0x31cd05),_0x5072ee['elRBA']),_0x1abe0a),_0x5072ee[_0x1d5a5(0x1d0)]);try{_0x166d66=await RequestUtil[_0x1d5a5(0x1e7)](_0x54e01e,_0x5072ee['DNUzZ'],'',{'Cookie':_0x1e72fb});if(_0x5072ee[_0x1d5a5(0x1f6)](_0x166d66?.['ec'],0x0))return undefined;return _0x166d66;}catch(_0x55088c){return undefined;}return undefined;}static['genBkn'](_0x2a5653){const _0x276274=_0x23dcfd,_0x48079a={'WFSUM':function(_0x53d7c3,_0x4698f6){return _0x53d7c3||_0x4698f6;},'iZLTK':function(_0x1e8820,_0x59c6bf){return _0x1e8820+_0x59c6bf;},'KgoRY':function(_0x3ed925,_0x1c0961){return _0x3ed925<<_0x1c0961;},'aULpv':function(_0x124ffd,_0x407207){return _0x124ffd&_0x407207;}};_0x2a5653=_0x48079a[_0x276274(0x1c6)](_0x2a5653,'');let _0x508042=0x1505;for(let _0x558395=0x0;_0x558395<_0x2a5653[_0x276274(0x1b3)];_0x558395++){const _0x373134=_0x2a5653[_0x276274(0x1cf)](_0x558395);_0x508042=_0x48079a[_0x276274(0x1ef)](_0x508042,_0x48079a[_0x276274(0x1d3)](_0x508042,0x5))+_0x373134;}return _0x48079a[_0x276274(0x21b)](_0x508042,0x7fffffff)[_0x276274(0x1ec)]();}} \ No newline at end of file +function _0x2a13(_0x340554,_0xc1511b){const _0x3d2e9c=_0x3d2e();return _0x2a13=function(_0x2a136b,_0x330313){_0x2a136b=_0x2a136b-0x131;let _0xea7009=_0x3d2e9c[_0x2a136b];return _0xea7009;},_0x2a13(_0x340554,_0xc1511b);}const _0x1e9a6c=_0x2a13;(function(_0x2153c1,_0xd0c74){const _0xc3963f=_0x2a13,_0x986b7d=_0x2153c1();while(!![]){try{const _0x45e186=-parseInt(_0xc3963f(0x1a8))/0x1+parseInt(_0xc3963f(0x148))/0x2+-parseInt(_0xc3963f(0x176))/0x3*(-parseInt(_0xc3963f(0x19f))/0x4)+-parseInt(_0xc3963f(0x1b2))/0x5*(-parseInt(_0xc3963f(0x1c0))/0x6)+-parseInt(_0xc3963f(0x156))/0x7+-parseInt(_0xc3963f(0x1ad))/0x8*(-parseInt(_0xc3963f(0x140))/0x9)+-parseInt(_0xc3963f(0x15e))/0xa*(-parseInt(_0xc3963f(0x160))/0xb);if(_0x45e186===_0xd0c74)break;else _0x986b7d['push'](_0x986b7d['shift']());}catch(_0x3296ea){_0x986b7d['push'](_0x986b7d['shift']());}}}(_0x3d2e,0x32940));import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';function _0x3d2e(){const _0x34dab2=['CrIpT','push','XNHgP','KnbSu','&qid=','retcode','mdFuP','Uwydi','2096591KhdaCO','TbQdN','getPSkey','get','HttpGetText','emotion_list','eqpFV','TALKACTIVE','152140kVRzJZ','name','11DNsSfN',';\x20uin=o','&page_start=','https://qun.qq.com/interactive/honorlist?gc=','MZeGL','ayrdr','VakxC','bXpjY','ZFGkV','nXODf','strong_newbie','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','count','qun.qq.com','RMDEZ','parse','XtjiZ','ezQjW','UvPEd','now','GZxie','emotion','9bdzYfp','mems','actorList','RqyYe','获取群聊炽焰失败','CcRwk','lbgLq','cbrcW','KsTfa','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','STORONGE_NEWBI','mNxRE','pfpVD','eKQce','current_talkative','TeHOD','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','IAeYO','HUBye','genBkn','获取群聊之火失败','oMgOt','getSkey','ybLhA','ADrvx','uwbMe',';\x20p_uin=o','XVVLD','match','QEmxI','&end=','ALL','WWcwJ','getGroupMembers','EuYQf','&type=','length','gskXR','ebnSZ','获取快乐源泉失败','EMOTION','68844PwPFTh','PfDaN','&bkn=','GET','YkhpY','strong_newbie_list','qgAWm','lWWwc','xMerW','15043gcXQpN','webapi\x20获取群成员','dJHdo','获取龙王信息失败','p_skey=','122672gIDApa','&page_limit=20','RUUWr','ibYmW','MpJjA','1791965jNnuAI','fwptz','&text=','CyUhW','desc','split','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','FJuzj','tzqdx','legend_list','uin','XRsPM','toString','QsNUC','6oNjYoT','获取当前群荣耀失败','set','&sort=1&gc=','ceil','getGroupHonorInfo','PERFROMER','ZemgD','all','kwJpP','MMosD','cuyBT','aSnKr','setGroupNotice','lRHhI','performer_list','GroupTime','VtMVz','description','hipaI','getGrouptNotice','jWiBq','POST','TWsvX','3|2|5|0|4|1','ZXMnz','fSBPi','wRXJJ','ZhkzD','LEGEND','Rsufr','Dcxsi','&group_code=','27Hmzgfb','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','dzAEe','qid=','avatar','Ntfbf','talkativeList','HttpGetJson','100964tNCNrq',';\x20skey=','GspXJ','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','talkative_list','ksIcj'];_0x3d2e=function(){return _0x34dab2;};return _0x3d2e();}import{NTQQUserApi}from'./user';import{RequestUtil}from'@/common/utils/request';export var WebHonorType;(function(_0x20435e){const _0x467226=_0x2a13,_0x2506c2={'lLXPB':_0x467226(0x137),'rVMYf':_0x467226(0x13c),'MpJjA':'legend','LDReu':_0x467226(0x19e),'ZhkzD':_0x467226(0x175),'WMLwt':'TALKACTIVE','nXODf':_0x467226(0x1c8),'ayrdr':_0x467226(0x180),'cbrcW':'performer'},_0x7076d9=_0x2506c2['lLXPB'][_0x467226(0x1b7)]('|');let _0x192f47=0x0;while(!![]){switch(_0x7076d9[_0x192f47++]){case'0':_0x20435e[_0x2506c2['rVMYf']]=_0x2506c2[_0x467226(0x1b1)];continue;case'1':_0x20435e[_0x2506c2['LDReu']]=_0x2506c2[_0x467226(0x13b)];continue;case'2':_0x20435e[_0x2506c2['WMLwt']]='talkative';continue;case'3':_0x20435e['ALL']=_0x2506c2[_0x467226(0x169)];continue;case'4':_0x20435e[_0x2506c2[_0x467226(0x165)]]=_0x467226(0x16a);continue;case'5':_0x20435e['PERFROMER']=_0x2506c2[_0x467226(0x17d)];continue;}break;}}(WebHonorType||(WebHonorType={})));export class WebApi{static async['getGroupEssenceMsg'](_0x3ccaa8,_0x2f29a8){const _0x573dfe=_0x2a13,_0x2a032a={'Dcxsi':_0x573dfe(0x16d),'mdFuP':function(_0x205ec1,_0x280d1f){return _0x205ec1+_0x280d1f;},'Rwsdx':function(_0x573778,_0x1a3b64){return _0x573778+_0x1a3b64;},'MZeGL':function(_0xb2fccc,_0x4626f2){return _0xb2fccc+_0x4626f2;},'XRsPM':function(_0x4f325d,_0x16eef2){return _0x4f325d+_0x16eef2;},'YGOyO':_0x573dfe(0x1ac),'qjuNP':function(_0x291996,_0x4e95c1){return _0x291996||_0x4e95c1;},'YkhpY':function(_0x569a45,_0x156438){return _0x569a45+_0x156438;},'ebnSZ':function(_0x317eff,_0x40cbae){return _0x317eff+_0x40cbae;},'yYzUf':_0x573dfe(0x17f),'RUUWr':_0x573dfe(0x13f),'CyUhW':_0x573dfe(0x162),'KnbSu':_0x573dfe(0x1a2)},_0x3435a6=(await NTQQUserApi[_0x573dfe(0x158)]([_0x573dfe(0x16d)]))[_0x2a032a[_0x573dfe(0x13e)]],_0x26a431=await NTQQUserApi['getSkey'](),_0x3e9eb5=_0x2a032a[_0x573dfe(0x154)](_0x2a032a[_0x573dfe(0x154)](_0x2a032a['Rwsdx'](_0x2a032a[_0x573dfe(0x154)](_0x2a032a[_0x573dfe(0x164)](_0x2a032a[_0x573dfe(0x1bd)](_0x2a032a['YGOyO'],_0x3435a6),_0x573dfe(0x149))+_0x26a431,';\x20p_uin=o'),selfInfo['uin']),_0x573dfe(0x161)),selfInfo[_0x573dfe(0x1bc)]);if(_0x2a032a['qjuNP'](!_0x26a431,!_0x3435a6))return undefined;const _0x47d2ab=WebApi[_0x573dfe(0x189)](_0x26a431),_0x2291bc=_0x2a032a['XRsPM'](_0x2a032a['XRsPM'](_0x2a032a[_0x573dfe(0x1a3)](_0x2a032a[_0x573dfe(0x19c)](_0x2a032a['yYzUf']+_0x47d2ab+_0x2a032a[_0x573dfe(0x1af)],_0x3ccaa8),_0x2a032a[_0x573dfe(0x1b5)]),_0x2f29a8),_0x573dfe(0x1ae));let _0x3465d7;try{_0x3465d7=await RequestUtil['HttpGetJson'](_0x2291bc,_0x2a032a[_0x573dfe(0x151)],'',{'Cookie':_0x3e9eb5});}catch{return undefined;}if(_0x3465d7[_0x573dfe(0x153)]!==0x0)return undefined;return _0x3465d7;}static async[_0x1e9a6c(0x197)](_0x3303e3,_0x5602c4=!![]){const _0x186032=_0x1e9a6c,_0x158e51={'RqyYe':_0x186032(0x1a9),'ZemgD':function(_0x499965,_0x4559d9){return _0x499965>_0x4559d9;},'UvPEd':function(_0x420972,_0x552b0e){return _0x420972-_0x552b0e;},'Ntfbf':function(_0x94d943,_0x2f166){return _0x94d943*_0x2f166;},'hqBSp':'qun.qq.com','iRuye':function(_0xe3a618,_0xd2e711){return _0xe3a618+_0xd2e711;},'MMosD':function(_0x4e9af4,_0x37757b){return _0x4e9af4+_0x37757b;},'eqpFV':function(_0x1638f0,_0x3f7ee7){return _0x1638f0+_0x3f7ee7;},'VRjkG':function(_0x21f005,_0x1e9eea){return _0x21f005+_0x1e9eea;},'ZFGkV':_0x186032(0x1ac),'PfDaN':';\x20skey=','GspXJ':function(_0x10c13e,_0x1d178f){return _0x10c13e||_0x1d178f;},'XNHgP':function(_0x1733e0,_0x113a3a){return _0x1733e0+_0x113a3a;},'ADrvx':_0x186032(0x16b),'ycMAg':_0x186032(0x135),'xMerW':function(_0x5dfda0,_0x691db0){return _0x5dfda0!==_0x691db0;},'EuYQf':function(_0x9afdd4,_0x296a99){return _0x9afdd4+_0x296a99;},'gskXR':function(_0x3855fd,_0x5a32b8){return _0x3855fd+_0x5a32b8;},'FJuzj':function(_0x471d04,_0xfb8fb7){return _0x471d04+_0xfb8fb7;},'Igfac':function(_0x272760,_0x5ea32e){return _0x272760+_0x5ea32e;},'lRHhI':function(_0x385205,_0x45db37){return _0x385205+_0x45db37;},'tzqdx':_0x186032(0x14b),'VtMVz':function(_0x3f5b28,_0x360f64){return _0x3f5b28*_0x360f64;},'VakxC':function(_0x19cb54,_0x5e77fa){return _0x19cb54-_0x5e77fa;},'ezQjW':_0x186032(0x1c3),'qgAWm':_0x186032(0x1a1),'wRXJJ':function(_0x308973,_0x5938af){return _0x308973<=_0x5938af;}};logDebug(_0x158e51[_0x186032(0x179)],_0x3303e3);let _0x42c2bf=new Array();try{let _0x49fd31=WebGroupData['GroupData']['get'](_0x3303e3),_0x32aa67=WebGroupData[_0x186032(0x1d0)][_0x186032(0x159)](_0x3303e3);if(!_0x32aa67||_0x158e51[_0x186032(0x1c7)](_0x158e51[_0x186032(0x172)](Date[_0x186032(0x173)](),_0x32aa67),_0x158e51[_0x186032(0x145)](0x708,0x3e8))||!_0x5602c4){const _0x5b9f99=(await NTQQUserApi[_0x186032(0x158)]([_0x158e51['hqBSp']]))['qun.qq.com'],_0x3d351b=await NTQQUserApi[_0x186032(0x18c)](),_0x19433b=_0x158e51['iRuye'](_0x158e51[_0x186032(0x1ca)](_0x158e51[_0x186032(0x15c)](_0x158e51['VRjkG'](_0x158e51[_0x186032(0x168)],_0x5b9f99),_0x158e51[_0x186032(0x1a0)])+_0x3d351b,_0x186032(0x190)),selfInfo[_0x186032(0x1bc)]);if(_0x158e51[_0x186032(0x14a)](!_0x3d351b,!_0x5b9f99))return _0x42c2bf;const _0x25f5b5=WebApi['genBkn'](_0x3d351b),_0x1110d9=[],_0x4ad422=await RequestUtil[_0x186032(0x147)](_0x158e51['eqpFV'](_0x158e51[_0x186032(0x15c)](_0x158e51[_0x186032(0x150)](_0x158e51[_0x186032(0x18e)],_0x3303e3),'&bkn='),_0x25f5b5),_0x158e51['ycMAg'],'',{'Cookie':_0x19433b});if(!_0x4ad422?.['count']||_0x158e51[_0x186032(0x1a7)](_0x4ad422?.['errcode'],0x0)||!_0x4ad422?.['mems'])return[];else for(const _0xcbf0e0 in _0x4ad422[_0x186032(0x177)]){_0x42c2bf[_0x186032(0x14f)](_0x4ad422[_0x186032(0x177)][_0xcbf0e0]);}const _0x35633e=Math[_0x186032(0x1c4)](_0x4ad422[_0x186032(0x16c)]/0x28);for(let _0x4b1aec=0x2;_0x4b1aec<=_0x35633e;_0x4b1aec++){const _0x124c54=RequestUtil[_0x186032(0x147)](_0x158e51[_0x186032(0x198)](_0x158e51[_0x186032(0x198)](_0x158e51[_0x186032(0x19b)](_0x158e51[_0x186032(0x1b9)](_0x158e51['Igfac'](_0x158e51[_0x186032(0x1ce)](_0x158e51[_0x186032(0x1ba)],_0x158e51[_0x186032(0x1d1)](_0x158e51[_0x186032(0x166)](_0x4b1aec,0x1),0x28))+_0x186032(0x194),_0x158e51['VtMVz'](_0x4b1aec,0x28)),_0x158e51[_0x186032(0x171)]),_0x3303e3),_0x158e51[_0x186032(0x1a5)]),_0x25f5b5),'POST','',{'Cookie':_0x19433b});_0x1110d9[_0x186032(0x14f)](_0x124c54);}for(let _0x50c01a=0x1;_0x158e51[_0x186032(0x13a)](_0x50c01a,_0x35633e);_0x50c01a++){const _0x995dd3=await _0x1110d9[_0x50c01a];if(!_0x995dd3?.[_0x186032(0x16c)]||_0x158e51[_0x186032(0x1a7)](_0x995dd3?.['errcode'],0x0)||!_0x995dd3?.[_0x186032(0x177)])continue;for(const _0x242f8e in _0x995dd3['mems']){_0x42c2bf[_0x186032(0x14f)](_0x995dd3['mems'][_0x242f8e]);}}WebGroupData['GroupData'][_0x186032(0x1c2)](_0x3303e3,_0x42c2bf),WebGroupData[_0x186032(0x1d0)]['set'](_0x3303e3,Date['now']());}else _0x42c2bf=_0x49fd31;}catch{return _0x42c2bf;}return _0x42c2bf;}static async[_0x1e9a6c(0x1cd)](_0x4d757c,_0x56cc39=''){const _0x18be74=_0x1e9a6c,_0xb3d92a={'GZxie':_0x18be74(0x16d),'ksIcj':function(_0x2f77d8,_0x334cb5){return _0x2f77d8+_0x334cb5;},'jWiBq':'p_skey=','hpUNx':_0x18be74(0x149),'XtjiZ':_0x18be74(0x190),'dJHdo':function(_0x5b436a,_0x5ad17d){return _0x5b436a||_0x5ad17d;},'jUbBt':_0x18be74(0x143),'ibYmW':_0x18be74(0x1b4),'TbQdN':_0x18be74(0x141),'Uwydi':_0x18be74(0x1b8),'PMNYN':_0x18be74(0x1a2)},_0x36ea87=(await NTQQUserApi[_0x18be74(0x158)]([_0xb3d92a[_0x18be74(0x174)]]))[_0xb3d92a[_0x18be74(0x174)]],_0x25e155=await NTQQUserApi[_0x18be74(0x18c)](),_0x19d107=_0xb3d92a[_0x18be74(0x14d)](_0xb3d92a['ksIcj'](_0xb3d92a[_0x18be74(0x14d)](_0xb3d92a[_0x18be74(0x14d)](_0xb3d92a[_0x18be74(0x134)],_0x36ea87),_0xb3d92a['hpUNx'])+_0x25e155,_0xb3d92a[_0x18be74(0x170)]),selfInfo[_0x18be74(0x1bc)]);let _0x1bc803=undefined;if(_0xb3d92a[_0x18be74(0x1aa)](!_0x25e155,!_0x36ea87))return undefined;const _0x59b4ba=WebApi[_0x18be74(0x189)](_0x25e155),_0x567bf5=_0xb3d92a[_0x18be74(0x14d)](_0xb3d92a[_0x18be74(0x14d)](_0xb3d92a[_0x18be74(0x14d)](_0xb3d92a['ksIcj'](_0xb3d92a['jUbBt']+_0x4d757c+_0x18be74(0x1a1),_0x59b4ba),_0xb3d92a[_0x18be74(0x1b0)]),_0x56cc39),_0xb3d92a[_0x18be74(0x157)]),_0x221a34=_0xb3d92a[_0x18be74(0x14d)](_0xb3d92a[_0x18be74(0x155)],_0x59b4ba);try{return _0x1bc803=await RequestUtil['HttpGetJson'](_0x221a34,_0xb3d92a['PMNYN'],'',{'Cookie':_0x19d107}),_0x1bc803;}catch(_0x44a396){return undefined;}return undefined;}static async[_0x1e9a6c(0x133)](_0x40e678){const _0x3428bd=_0x1e9a6c,_0x9fbd={'CcRwk':function(_0x14ae98,_0x40186d){return _0x14ae98+_0x40186d;},'mdSiO':function(_0x428fcb,_0x62beec){return _0x428fcb+_0x62beec;},'cCPXv':'p_skey=','pfpVD':';\x20skey=','JzWhp':_0x3428bd(0x190),'fSBPi':function(_0x409f06,_0x259aed){return _0x409f06||_0x259aed;},'aSnKr':function(_0xfed713,_0x543fce){return _0xfed713+_0x543fce;},'Rsufr':_0x3428bd(0x186),'lWWwc':_0x3428bd(0x152),'lbgLq':'&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','HVRZk':_0x3428bd(0x1a2),'dDOva':function(_0xca5abd,_0xe02a24){return _0xca5abd!==_0xe02a24;}},_0x1f7852=(await NTQQUserApi[_0x3428bd(0x158)]([_0x3428bd(0x16d)]))[_0x3428bd(0x16d)],_0x49b7ba=await NTQQUserApi[_0x3428bd(0x18c)](),_0x4a3ef9=_0x9fbd['CcRwk'](_0x9fbd[_0x3428bd(0x17b)](_0x9fbd[_0x3428bd(0x17b)](_0x9fbd['mdSiO'](_0x9fbd['cCPXv'],_0x1f7852),_0x9fbd[_0x3428bd(0x182)])+_0x49b7ba,_0x9fbd['JzWhp']),selfInfo[_0x3428bd(0x1bc)]);let _0x5e99e6=undefined;if(_0x9fbd[_0x3428bd(0x139)](!_0x49b7ba,!_0x1f7852))return undefined;const _0x25fae5=WebApi['genBkn'](_0x49b7ba),_0x4e7c68=_0x9fbd['mdSiO'](_0x9fbd['CcRwk'](_0x9fbd[_0x3428bd(0x1cc)](_0x9fbd[_0x3428bd(0x13d)]+_0x25fae5,_0x9fbd[_0x3428bd(0x1a6)]),_0x40e678),_0x9fbd[_0x3428bd(0x17c)]);try{_0x5e99e6=await RequestUtil['HttpGetJson'](_0x4e7c68,_0x9fbd['HVRZk'],'',{'Cookie':_0x4a3ef9});if(_0x9fbd['dDOva'](_0x5e99e6?.['ec'],0x0))return undefined;return _0x5e99e6;}catch(_0x129b2a){return undefined;}return undefined;}static[_0x1e9a6c(0x189)](_0x23664c){const _0x51ae16=_0x1e9a6c,_0x460e32={'fwptz':function(_0x4a0a57,_0x42f4b6){return _0x4a0a57||_0x42f4b6;},'KsTfa':function(_0x2c8a79,_0x1bcd4a){return _0x2c8a79<_0x1bcd4a;},'IAeYO':function(_0x509b02,_0x20783e){return _0x509b02+_0x20783e;},'eKQce':function(_0x28aa70,_0x5a2e70){return _0x28aa70<<_0x5a2e70;}};_0x23664c=_0x460e32[_0x51ae16(0x1b3)](_0x23664c,'');let _0x269b44=0x1505;for(let _0x9104db=0x0;_0x460e32[_0x51ae16(0x17e)](_0x9104db,_0x23664c[_0x51ae16(0x19a)]);_0x9104db++){const _0x40a875=_0x23664c['charCodeAt'](_0x9104db);_0x269b44=_0x460e32[_0x51ae16(0x187)](_0x460e32['IAeYO'](_0x269b44,_0x460e32[_0x51ae16(0x183)](_0x269b44,0x5)),_0x40a875);}return(_0x269b44&0x7fffffff)['toString']();}static async[_0x1e9a6c(0x1c5)](_0x3b5f69,_0x599b90){const _0x1d8885=_0x1e9a6c,_0xf29ecf={'XVVLD':function(_0x501dc4,_0x1b89f0){return _0x501dc4+_0x1b89f0;},'TWsvX':function(_0x5f4161,_0x4c34a1){return _0x5f4161+_0x4c34a1;},'ZXMnz':_0x1d8885(0x163),'DqPSf':_0x1d8885(0x199),'bXpjY':'GET','QsNUC':function(_0x4c14d9,_0x4df434){return _0x4c14d9===_0x4df434;},'sonJn':_0x1d8885(0x1c1),'mNxRE':_0x1d8885(0x16d),'kwJpP':function(_0x4a5389,_0x1b7a1f){return _0x4a5389||_0x1b7a1f;},'ybLhA':function(_0x12aebf,_0x578018){return _0x12aebf+_0x578018;},'pyukz':_0x1d8885(0x1ac),'cuyBT':_0x1d8885(0x149),'QEmxI':';\x20p_uin=o','dzAEe':function(_0x4f38bd,_0x478af8,_0xd0c156){return _0x4f38bd(_0x478af8,_0xd0c156);},'hipaI':_0x1d8885(0x1ab),'CrIpT':function(_0x3d9100,_0x26e7d0){return _0x3d9100(_0x26e7d0);},'RMDEZ':function(_0x21653f,_0x14b0ba){return _0x21653f(_0x14b0ba);},'TeHOD':_0x1d8885(0x17a),'klVmI':function(_0x322004,_0x418bca){return _0x322004===_0x418bca;},'HUBye':function(_0x4dfc6a,_0x53c03d,_0x16617c){return _0x4dfc6a(_0x53c03d,_0x16617c);},'oMgOt':_0x1d8885(0x19d),'uwbMe':function(_0x2d79cf,_0x15578b){return _0x2d79cf===_0x15578b;},'WWcwJ':function(_0x52fb06,_0x4b03d1){return _0x52fb06===_0x4b03d1;}},_0xae06d9=(await NTQQUserApi[_0x1d8885(0x158)]([_0xf29ecf['mNxRE']]))[_0xf29ecf[_0x1d8885(0x181)]],_0x1f6adc=await NTQQUserApi[_0x1d8885(0x18c)]();if(_0xf29ecf[_0x1d8885(0x1c9)](!_0x1f6adc,!_0xae06d9))return undefined;async function _0x2dfc15(_0x1679bd,_0x2b9dca){const _0x4d90db=_0x1d8885;let _0x1fe4b9=_0xf29ecf[_0x4d90db(0x191)](_0xf29ecf[_0x4d90db(0x191)](_0xf29ecf[_0x4d90db(0x136)](_0xf29ecf[_0x4d90db(0x138)],_0x1679bd),_0xf29ecf['DqPSf']),_0x2b9dca[_0x4d90db(0x1be)]()),_0x15927b='',_0x4d1b88;try{_0x15927b=await RequestUtil[_0x4d90db(0x15a)](_0x1fe4b9,_0xf29ecf[_0x4d90db(0x167)],'',{'Cookie':_0xf242f9});const _0x4b27e7=_0x15927b[_0x4d90db(0x192)](/window\.__INITIAL_STATE__=(.*?);/);return _0x4b27e7&&(_0x4d1b88=JSON[_0x4d90db(0x16f)](_0x4b27e7[0x1]['trim']())),_0xf29ecf[_0x4d90db(0x1bf)](_0x2b9dca,0x1)?_0x4d1b88?.[_0x4d90db(0x146)]:_0x4d1b88?.[_0x4d90db(0x178)];}catch(_0x5c28e1){logDebug(_0xf29ecf['sonJn'],_0x1fe4b9,_0x5c28e1);}return undefined;}let _0x403103={'group_id':_0x3b5f69};const _0xf242f9=_0xf29ecf[_0x1d8885(0x136)](_0xf29ecf['XVVLD'](_0xf29ecf['XVVLD'](_0xf29ecf[_0x1d8885(0x191)](_0xf29ecf['XVVLD'](_0xf29ecf[_0x1d8885(0x136)](_0xf29ecf[_0x1d8885(0x18d)](_0xf29ecf['pyukz'],_0xae06d9),_0xf29ecf[_0x1d8885(0x1cb)]),_0x1f6adc),_0xf29ecf[_0x1d8885(0x193)]),selfInfo[_0x1d8885(0x1bc)]),_0x1d8885(0x161)),selfInfo[_0x1d8885(0x1bc)]);if(_0x599b90===WebHonorType[_0x1d8885(0x15d)]||_0xf29ecf[_0x1d8885(0x1bf)](_0x599b90,WebHonorType[_0x1d8885(0x195)]))try{let _0x268b95=await _0xf29ecf[_0x1d8885(0x142)](_0x2dfc15,_0x3b5f69,0x1);if(!_0x268b95)throw new Error(_0xf29ecf[_0x1d8885(0x132)]);_0x403103[_0x1d8885(0x184)]={'user_id':_0x268b95[0x0]?.[_0x1d8885(0x1bc)],'avatar':_0x268b95[0x0]?.[_0x1d8885(0x144)],'nickname':_0x268b95[0x0]?.[_0x1d8885(0x15f)],'day_count':0x0,'description':_0x268b95[0x0]?.['desc']},_0x403103[_0x1d8885(0x14c)]=[];for(const _0x32cfee of _0x268b95){_0x403103[_0x1d8885(0x14c)]['push']({'user_id':_0x32cfee?.[_0x1d8885(0x1bc)],'avatar':_0x32cfee?.['avatar'],'description':_0x32cfee?.['desc'],'day_count':0x0,'nickname':_0x32cfee?.[_0x1d8885(0x15f)]});}}catch(_0x2f4581){_0xf29ecf[_0x1d8885(0x14e)](logDebug,_0x2f4581);}if(_0xf29ecf[_0x1d8885(0x1bf)](_0x599b90,WebHonorType[_0x1d8885(0x1c6)])||_0xf29ecf[_0x1d8885(0x1bf)](_0x599b90,WebHonorType[_0x1d8885(0x195)]))try{let _0x2a7bc1=await _0x2dfc15(_0x3b5f69,0x2);if(!_0x2a7bc1)throw new Error(_0x1d8885(0x18a));_0x403103[_0x1d8885(0x1cf)]=[];for(const _0x2f4ed6 of _0x2a7bc1){_0x403103[_0x1d8885(0x1cf)]['push']({'user_id':_0x2f4ed6?.['uin'],'nickname':_0x2f4ed6?.[_0x1d8885(0x15f)],'avatar':_0x2f4ed6?.[_0x1d8885(0x144)],'description':_0x2f4ed6?.[_0x1d8885(0x1b6)]});}}catch(_0x348cbd){_0xf29ecf[_0x1d8885(0x16e)](logDebug,_0x348cbd);}if(_0xf29ecf['QsNUC'](_0x599b90,WebHonorType[_0x1d8885(0x1c6)])||_0x599b90===WebHonorType[_0x1d8885(0x195)])try{let _0x53dd03=await _0x2dfc15(_0x3b5f69,0x3);if(!_0x53dd03)throw new Error(_0xf29ecf[_0x1d8885(0x185)]);_0x403103[_0x1d8885(0x1bb)]=[];for(const _0x118237 of _0x53dd03){_0x403103[_0x1d8885(0x1bb)][_0x1d8885(0x14f)]({'user_id':_0x118237?.['uin'],'nickname':_0x118237?.['name'],'avatar':_0x118237?.['avatar'],'desc':_0x118237?.['description']});}}catch(_0x3e6ad5){logDebug(_0xf29ecf[_0x1d8885(0x185)],_0x3e6ad5);}if(_0x599b90===WebHonorType['EMOTION']||_0xf29ecf['klVmI'](_0x599b90,WebHonorType[_0x1d8885(0x195)]))try{let _0x599e31=await _0x2dfc15(_0x3b5f69,0x6);if(!_0x599e31)throw new Error('获取快乐源泉失败');_0x403103[_0x1d8885(0x15b)]=[];for(const _0x46e807 of _0x599e31){_0x403103['emotion_list'][_0x1d8885(0x14f)]({'user_id':_0x46e807?.[_0x1d8885(0x1bc)],'nickname':_0x46e807?.[_0x1d8885(0x15f)],'avatar':_0x46e807?.[_0x1d8885(0x144)],'desc':_0x46e807?.[_0x1d8885(0x131)]});}}catch(_0x147f6b){_0xf29ecf[_0x1d8885(0x188)](logDebug,_0xf29ecf[_0x1d8885(0x18b)],_0x147f6b);}return(_0xf29ecf[_0x1d8885(0x18f)](_0x599b90,WebHonorType[_0x1d8885(0x19e)])||_0xf29ecf[_0x1d8885(0x196)](_0x599b90,WebHonorType[_0x1d8885(0x195)]))&&(_0x403103[_0x1d8885(0x1a4)]=[]),_0x403103;}} \ No newline at end of file diff --git a/src/core.lib/src/core.js b/src/core.lib/src/core.js index 0723115f..4db8a686 100644 --- a/src/core.lib/src/core.js +++ b/src/core.lib/src/core.js @@ -1 +1 @@ -const _0x334227=_0x310c;(function(_0x38fbd2,_0x231fee){const _0x5df81d=_0x310c,_0x389aa0=_0x38fbd2();while(!![]){try{const _0x58e751=parseInt(_0x5df81d(0x1e8))/0x1*(parseInt(_0x5df81d(0x21a))/0x2)+parseInt(_0x5df81d(0x179))/0x3+-parseInt(_0x5df81d(0x1bf))/0x4+-parseInt(_0x5df81d(0x1ef))/0x5*(-parseInt(_0x5df81d(0x17d))/0x6)+parseInt(_0x5df81d(0x1c6))/0x7*(-parseInt(_0x5df81d(0x199))/0x8)+-parseInt(_0x5df81d(0x1c1))/0x9+parseInt(_0x5df81d(0x190))/0xa;if(_0x58e751===_0x231fee)break;else _0x389aa0['push'](_0x389aa0['shift']());}catch(_0x577319){_0x389aa0['push'](_0x389aa0['shift']());}}}(_0x3d1a,0x6b5df));import _0x4ca9e8 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x115edd from'node:path';import _0x237e94 from'node:os';import _0x2c9978 from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/core/utils/db';function _0x310c(_0x4f7286,_0xeee5c9){const _0x3d1ae4=_0x3d1a();return _0x310c=function(_0x310ccf,_0x2a1351){_0x310ccf=_0x310ccf-0x170;let _0x39a765=_0x3d1ae4[_0x310ccf];return _0x39a765;},_0x310c(_0x4f7286,_0xeee5c9);}import{sleep}from'@/common/utils/helper';import _0x1b2098 from'node:crypto';import{rawFriends,friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';function _0x3d1a(){const _0x5a85e8=['OwFXx','startNT','onBuddyListChange','2771000wmdffK','onLoginFailed','3073608ciHyYH','onQRCodeLoginSucceed','replace','onLoginSuccess','NodeIKernelSessionListener','7HduHhM','./NapCat/data','NodeIDispatcherAdapter','now','当前账号(','tKeRu','map','LocalLoginInfoList','onQRCodeSessionFailed','NodeQQNTWrapperUtil','initSession','getNextMemberList','uin','pngBase64QrcodeData','NodeIKernelLoginListener','tipsTitle','KtjMl','getProfileService','passwordLogin','recallTime','onLoginSuccessFuncList','oivdn','onRecvMsg','NodeIKernelMsgListener','OhxrL','快速登录不可用','groupCode','forEach','onLineDev','GroupListener','updateMsg','dataPath','pbwqn','initSession\x20failed','4GXtPTJ','stringify','createMemberListScene','length','uleLe','iybzw','getQuickLoginList','2490vDvuBY','getMsgService','RVzXf','last_message_time','[KickedOffLine]\x20[','bCjYS','PLooo','getGroupService','assign','update','infos','140022013','resolve',')\x20在线状态变更','addKernelBuddyListener','addKernelMsgListener','onUserLoggedIn','data:image/png;base64,','rJVDR','sceneId','initConfig','proxyHandler','onGroupListUpdate','getBuddyService','lkKcn','onAddSendMsg','addKernelProfileListener','hfJEn','onSessionInitComplete','addKernelGroupListener','hKvji','onKickedOffLine','cSwWF','packet_received','tipsDesc','./nt_qq/global','mkdirSync','onMsgInfoListUpdate','clientType','没有可快速登录的QQ号','groupMemberList_MainWindow','session','loginService','23178RVuNtx','uid','UJiSZ','NodeIDependsAdapter','xdxHP','iYRgo','BuddyListener','initDataListener','set','lMLQn','ibsQe','NodeIKernelLoginService','dGuwZ','onQRCodeGetPicture','push','vbdJv','curVersion','split','getNTUserDataInfoConfig','util','from','539532itTeAl','dataPathGlobal','-v2.db','Cuupx','8424alyzVb','Ujqzm','quickLogin','init','catch','result','getLoginList','getQRCodePicture','consoleLogLevel','engine','XCxBp','NodeIKernelGroupListener','read','init\x20failed\x20','loginListener','YocGX','message_received','onSelfStatusChanged','ccKPa','13442080RobLcm','msgId','RHKZg','addMsg','fileLogLevel','floor','FdtLM','initWithDeskTopConfig','KKGgR','6364504FjzEIH','账号设备(','name','_GW_B','启动失败:\x20','has','QPjXd','140022008','lqdDn','hex','jxZPz','iafGN','digest','devUid','FZgFS','addKernelLoginListener','rlSRv','csbBI','NtZLW','then','Jwtlr','undefined','md5','数据库初始化失败','constructor','addListener','LZvKf','getMsgByLongId','./.config/QQ','NodeIQQNTWrapperSession','NodeIKernelProfileListener','V1_WIN_NQ_','fileLog','get','errMsg'];_0x3d1a=function(){return _0x5a85e8;};return _0x3d1a();}import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{[_0x334227(0x218)];[_0x334227(0x177)];[_0x334227(0x186)];[_0x334227(0x18b)];['loginService'];[_0x334227(0x1da)]=[];[_0x334227(0x204)]={'get'(target,prop,receiver){const _0x4c239e=_0x334227,iIiafp={'csbBI':function(callee,param1){return callee(param1);},'iybzw':_0x4c239e(0x1ae)};if(typeof target[prop]===iIiafp[_0x4c239e(0x1ed)])return(...args)=>{const _0x3234e0=_0x4c239e;iIiafp[_0x3234e0(0x1aa)](logDebug,target[_0x3234e0(0x1b1)][_0x3234e0(0x19b)]+'\x20has\x20no\x20method\x20'+prop);};return Reflect[_0x4c239e(0x1ba)](target,prop,receiver);}};constructor(){const _0x4349b8=_0x334227,_0x2669dd={'hfJEn':function(_0x5c873f,_0x511703){return _0x5c873f(_0x511703);},'OwFXx':function(_0x477279,_0x4e38bf){return _0x477279+_0x4e38bf;},'aXOst':_0x4349b8(0x1ca),'lkKcn':')已登录,无法重复登录','XCxBp':function(_0x566816,_0x1d178f,_0x4967e1){return _0x566816(_0x1d178f,_0x4967e1);},'pbwqn':_0x4349b8(0x1e7),'uleLe':_0x4349b8(0x1c7),'bCjYS':'本账号数据/缓存目录:','oivdn':'登录失败','hKvji':function(_0x1cccd9,_0x527df8){return _0x1cccd9==_0x527df8;},'fvMMk':function(_0x53e7dd,_0x3f853a){return _0x53e7dd==_0x3f853a;}};this[_0x4349b8(0x186)]=new _0x4ca9e8['NodeIQQNTWrapperEngine'](),this[_0x4349b8(0x177)]=new _0x4ca9e8[(_0x4349b8(0x1cf))](),this[_0x4349b8(0x219)]=new _0x4ca9e8[(_0x4349b8(0x225))](),this[_0x4349b8(0x218)]=new _0x4ca9e8[(_0x4349b8(0x1b6))](),this[_0x4349b8(0x18b)]=new LoginListener(),this[_0x4349b8(0x18b)][_0x4349b8(0x1ff)]=_0x14ec3a=>{const _0x54fde3=_0x4349b8;_0x2669dd[_0x54fde3(0x20a)](logError,_0x2669dd[_0x54fde3(0x1bc)](_0x2669dd[_0x54fde3(0x1bc)](_0x2669dd['aXOst'],_0x14ec3a),_0x2669dd[_0x54fde3(0x207)]));},this[_0x4349b8(0x18b)][_0x4349b8(0x1c2)]=_0x55c487=>{const _0x2ff080=_0x4349b8,_0x1b5dee={'FdtLM':function(_0x1bc01d,_0x2fd89f,_0x4cd965){const _0xcb70b=_0x310c;return _0x2669dd[_0xcb70b(0x187)](_0x1bc01d,_0x2fd89f,_0x4cd965);},'ccKPa':function(_0x2dd410,_0x286160){const _0x255c5c=_0x310c;return _0x2669dd[_0x255c5c(0x20a)](_0x2dd410,_0x286160);},'rlSRv':function(_0x3daaac,_0x2050c9){return _0x3daaac(_0x2050c9);},'rJVDR':_0x2669dd[_0x2ff080(0x1ec)],'tKeRu':function(_0x362933,_0x389a47,_0x29e386){const _0x316a26=_0x2ff080;return _0x2669dd[_0x316a26(0x187)](_0x362933,_0x389a47,_0x29e386);},'owppt':_0x2669dd[_0x2ff080(0x1f4)]};this[_0x2ff080(0x1d0)](_0x55c487['uin'],_0x55c487['uid'])[_0x2ff080(0x1ac)](_0x4b797f=>{const _0x4ff4ca=_0x2ff080,_0x2676c4={'LZvKf':function(_0x1855df,_0x30947e,_0x11ffb1){return _0x1855df(_0x30947e,_0x11ffb1);}};selfInfo[_0x4ff4ca(0x1d2)]=_0x55c487[_0x4ff4ca(0x1d2)],selfInfo[_0x4ff4ca(0x21b)]=_0x55c487[_0x4ff4ca(0x21b)],napCatConfig[_0x4ff4ca(0x189)](),_0x1b5dee[_0x4ff4ca(0x196)](setLogLevel,napCatConfig[_0x4ff4ca(0x194)],napCatConfig[_0x4ff4ca(0x185)]),_0x1b5dee[_0x4ff4ca(0x18f)](enableFileLog,napCatConfig[_0x4ff4ca(0x1b9)]),enableConsoleLog(napCatConfig['consoleLog']),_0x1b5dee[_0x4ff4ca(0x1a9)](setLogSelfInfo,selfInfo);const _0x33759b=_0x115edd[_0x4ff4ca(0x1fb)](this[_0x4ff4ca(0x1e5)],_0x1b5dee[_0x4ff4ca(0x201)]);_0x2c9978[_0x4ff4ca(0x213)](_0x33759b,{'recursive':!![]}),_0x1b5dee[_0x4ff4ca(0x1cb)](logDebug,_0x1b5dee['owppt'],_0x33759b),dbUtil[_0x4ff4ca(0x180)](_0x115edd[_0x4ff4ca(0x1fb)](_0x33759b,'./'+_0x55c487[_0x4ff4ca(0x1d2)]+_0x4ff4ca(0x17b)))[_0x4ff4ca(0x1ac)](()=>{const _0x4287d9=_0x4ff4ca;this[_0x4287d9(0x221)](),this[_0x4287d9(0x1da)][_0x4287d9(0x1cc)](_0x5cd4fc=>{const _0x199d23=_0x4287d9,_0xee3061={'iYRgo':function(_0x3db26b,_0x3423a0,_0x1a722c){return _0x3db26b(_0x3423a0,_0x1a722c);}};new Promise((_0x9c8eb0,_0x241e9f)=>{const _0x53358a=_0x310c,_0x179c4f=_0xee3061[_0x53358a(0x21f)](_0x5cd4fc,_0x55c487[_0x53358a(0x1d2)],_0x55c487[_0x53358a(0x21b)]);_0x179c4f instanceof Promise&&_0x179c4f['then'](_0x9c8eb0)[_0x53358a(0x181)](_0x241e9f);})[_0x199d23(0x1ac)]();});})[_0x4ff4ca(0x181)](_0x274460=>{const _0x1d546f=_0x4ff4ca;_0x2676c4[_0x1d546f(0x1b3)](logError,_0x1d546f(0x1b0),_0x274460);});})[_0x2ff080(0x181)](_0x3fde13=>{const _0x381e09=_0x2ff080;_0x2669dd['XCxBp'](logError,_0x2669dd[_0x381e09(0x1e6)],_0x3fde13);throw new Error(_0x381e09(0x19d)+JSON[_0x381e09(0x1e9)](_0x3fde13));});},this['loginListener'][_0x4349b8(0x1ce)]=(_0x374f6d,_0x5992f0,_0x45bc00)=>{const _0x125202=_0x4349b8;_0x2669dd[_0x125202(0x187)](logError,_0x2669dd[_0x125202(0x1db)],_0x45bc00),_0x2669dd[_0x125202(0x20d)](_0x374f6d,0x1)&&_0x2669dd['fvMMk'](_0x5992f0,0x3)&&this['loginService'][_0x125202(0x184)]();},this[_0x4349b8(0x18b)][_0x4349b8(0x1c0)]=_0x5909df=>{logError(_0x2669dd['oivdn'],_0x5909df);},this[_0x4349b8(0x18b)]=new Proxy(this[_0x4349b8(0x18b)],this[_0x4349b8(0x204)]),this[_0x4349b8(0x219)][_0x4349b8(0x1a8)](new _0x4ca9e8[(_0x4349b8(0x1d4))](this[_0x4349b8(0x18b)])),this[_0x4349b8(0x203)]();}get[_0x334227(0x1e5)](){const _0x450362=_0x334227,_0x45d92e={'FNvjf':_0x450362(0x1b5)};let _0x36e3e0=this[_0x450362(0x177)][_0x450362(0x176)]();return!_0x36e3e0&&(_0x36e3e0=_0x115edd[_0x450362(0x1fb)](_0x237e94['homedir'](),_0x45d92e['FNvjf']),_0x2c9978['mkdirSync'](_0x36e3e0,{'recursive':!![]})),_0x36e3e0;}get['dataPathGlobal'](){const _0x29d669=_0x334227,_0x40471d={'IZxvZ':_0x29d669(0x212)};return _0x115edd[_0x29d669(0x1fb)](this[_0x29d669(0x1e5)],_0x40471d['IZxvZ']);}[_0x334227(0x203)](){const _0x3e34ae=_0x334227;this['engine'][_0x3e34ae(0x197)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x3e34ae(0x174)],'os_version':'Windows\x2010\x20Pro','use_xlog':!![],'qua':_0x3e34ae(0x1b8)+qqVersionConfigInfo['curVersion'][_0x3e34ae(0x1c3)]('-','_')+_0x3e34ae(0x19c),'global_path_config':{'desktopGlobalPath':this[_0x3e34ae(0x17a)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x4ca9e8['NodeIGlobalAdapter'](new GlobalAdapter())),this['loginService'][_0x3e34ae(0x203)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x3e34ae(0x17a)],'clientVer':qqVersionConfigInfo['curVersion'],'hostName':hostname});}[_0x334227(0x1d0)](_0x1e4f34,_0x244274){const _0x43dfd8={'dGuwZ':function(_0x43607a,_0x2e6bb0,_0x34eda4,_0x2c7cce){return _0x43607a(_0x2e6bb0,_0x34eda4,_0x2c7cce);},'HyhKA':function(_0x2404aa,_0x32d334){return _0x2404aa(_0x32d334);}};return new Promise((_0x298073,_0x52ebe9)=>{const _0x38fa3b=_0x310c,_0x3bc7b4={'ibsQe':function(_0x1f10f7,_0x563738){return _0x1f10f7===_0x563738;},'JYzEg':function(_0x4374ec,_0x4dd60b){return _0x4374ec(_0x4dd60b);}},_0x1b68f5=_0x43dfd8[_0x38fa3b(0x170)](genSessionConfig,_0x1e4f34,_0x244274,this[_0x38fa3b(0x1e5)]),_0x268137=new SessionListener();_0x268137[_0x38fa3b(0x20b)]=_0x4b2470=>{const _0x4586d8=_0x38fa3b;if(_0x3bc7b4[_0x4586d8(0x224)](_0x4b2470,0x0))return _0x3bc7b4['JYzEg'](_0x298073,0x0);_0x52ebe9(_0x4b2470);},this[_0x38fa3b(0x218)][_0x38fa3b(0x180)](_0x1b68f5,new _0x4ca9e8[(_0x38fa3b(0x21d))](new DependsAdapter()),new _0x4ca9e8[(_0x38fa3b(0x1c8))](new DispatcherAdapter()),new _0x4ca9e8[(_0x38fa3b(0x1c5))](_0x268137));try{this[_0x38fa3b(0x218)][_0x38fa3b(0x1bd)](0x0);}catch(_0x2fc424){try{this[_0x38fa3b(0x218)][_0x38fa3b(0x1bd)]();}catch(_0x9731f4){_0x43dfd8['HyhKA'](_0x52ebe9,_0x38fa3b(0x18a)+_0x9731f4);}}});}[_0x334227(0x221)](){const _0x4578b0=_0x334227,_0x15c099={'AmrBs':function(_0x4f2106,_0x26d0c4){return _0x4f2106(_0x26d0c4);},'PTjYS':_0x4578b0(0x19a),'FZgFS':_0x4578b0(0x1fc),'RVzXf':function(_0x31fe03,_0x1d0044){return _0x31fe03+_0x1d0044;},'cIBzu':function(_0x7a4266,_0x411d39){return _0x7a4266+_0x411d39;},'KKGgR':_0x4578b0(0x1f3),'Ujqzm':function(_0x261f90,_0x42f765){return _0x261f90===_0x42f765;},'iafGN':function(_0x5679ab,_0x5d4720){return _0x5679ab/_0x5d4720;},'Cuupx':function(_0x35de44,_0x17d565){return _0x35de44===_0x17d565;},'CkUDF':_0x4578b0(0x217),'UUwYp':function(_0x3c11e8,_0x27ad31,_0x1f6432){return _0x3c11e8(_0x27ad31,_0x1f6432);}},_0x2fe754=new MsgListener();_0x2fe754[_0x4578b0(0x1e2)]=_0x4e05e6=>{_0x4e05e6['map'](_0x42f15e=>{const _0x2b4eae=_0x310c;_0x42f15e[_0x2b4eae(0x215)]===0x2&&_0x15c099['AmrBs'](log,_0x15c099['PTjYS']+_0x42f15e[_0x2b4eae(0x1a6)]+_0x15c099[_0x2b4eae(0x1a7)]);});},_0x2fe754[_0x4578b0(0x20e)]=_0x69df6c=>{const _0x4f2546=_0x4578b0;log(_0x15c099[_0x4f2546(0x1f1)](_0x15c099['cIBzu'](_0x15c099[_0x4f2546(0x198)],_0x69df6c[_0x4f2546(0x1d5)]),']\x20')+_0x69df6c[_0x4f2546(0x211)]);},_0x2fe754[_0x4578b0(0x214)]=_0x402998=>{const _0x555ebb=_0x4578b0,_0x287e3a={'Jwtlr':function(_0xd23a43,_0x1a657c){const _0x2a7f5b=_0x310c;return _0x15c099[_0x2a7f5b(0x17e)](_0xd23a43,_0x1a657c);}};stat[_0x555ebb(0x210)]+=0x1,_0x402998['map'](_0x25cc1b=>{const _0x580b2c=_0x555ebb;_0x287e3a[_0x580b2c(0x1ad)](_0x25cc1b[_0x580b2c(0x1d9)],'0')?dbUtil[_0x580b2c(0x193)](_0x25cc1b)[_0x580b2c(0x1ac)]()[_0x580b2c(0x181)]():dbUtil[_0x580b2c(0x1b4)](_0x25cc1b[_0x580b2c(0x191)])[_0x580b2c(0x1ac)](_0x1fbe72=>{const _0x5a1c0b=_0x580b2c;_0x1fbe72&&(_0x1fbe72[_0x5a1c0b(0x1d9)]=_0x25cc1b[_0x5a1c0b(0x1d9)],dbUtil[_0x5a1c0b(0x1e4)](_0x1fbe72)['then']());});});},_0x2fe754[_0x4578b0(0x208)]=_0xe8c0a1=>{const _0x21d8ab=_0x4578b0;stat['packet_sent']+=0x1,stat['message_sent']+=0x1,stat[_0x21d8ab(0x1f2)]=Math['floor'](_0x15c099[_0x21d8ab(0x1a4)](Date[_0x21d8ab(0x1c9)](),0x3e8));},_0x2fe754[_0x4578b0(0x1dc)]=_0xadf444=>{const _0xf9090=_0x4578b0;stat[_0xf9090(0x210)]+=0x1,stat[_0xf9090(0x18d)]+=_0xadf444[_0xf9090(0x1eb)],stat['last_message_time']=Math[_0xf9090(0x195)](_0x15c099[_0xf9090(0x1a4)](Date['now'](),0x3e8));},_0x2fe754['onRecvSysMsg']=(..._0x5941c9)=>{const _0xc835e0=_0x4578b0;stat[_0xc835e0(0x210)]+=0x1;},this[_0x4578b0(0x1b2)](_0x2fe754);const _0x42ae55=new BuddyListener();_0x42ae55[_0x4578b0(0x1be)]=_0x1f2cd5=>{const _0x14a593=_0x4578b0;rawFriends[_0x14a593(0x1eb)]=0x0,rawFriends['push'](..._0x1f2cd5);for(const _0x5daa53 of _0x1f2cd5){for(const _0x4ad6ba of _0x5daa53['buddyList']){const _0x5f0c52=friends[_0x14a593(0x1ba)](_0x4ad6ba[_0x14a593(0x21b)]);uid2UinMap[_0x4ad6ba[_0x14a593(0x21b)]]=_0x4ad6ba[_0x14a593(0x1d2)],_0x5f0c52?Object['assign'](_0x5f0c52,_0x4ad6ba):friends['set'](_0x4ad6ba['uid'],_0x4ad6ba);}}},this[_0x4578b0(0x1b2)](_0x42ae55),this['session'][_0x4578b0(0x206)]()['getBuddyList'](!![])['then'](_0x3c9a27=>{});const _0x3bf094=new ProfileListener();_0x3bf094['onProfileDetailInfoChanged']=_0x5ca744=>{const _0x4b209c=_0x4578b0;_0x15c099[_0x4b209c(0x17c)](_0x5ca744['uid'],selfInfo[_0x4b209c(0x21b)])&&Object[_0x4b209c(0x1f7)](selfInfo,_0x5ca744);},_0x3bf094[_0x4578b0(0x18e)]=_0x348b75=>{},this[_0x4578b0(0x1b2)](_0x3bf094);const _0xe36a0c=new GroupListener();_0xe36a0c[_0x4578b0(0x205)]=(_0x3f52af,_0x4458d0)=>{_0x4458d0['map'](_0x194cea=>{const _0x2e3106=_0x310c,_0x44168a=groups[_0x2e3106(0x1ba)](_0x194cea['groupCode']);if(_0x44168a)Object['assign'](_0x44168a,_0x194cea);else{groups[_0x2e3106(0x222)](_0x194cea[_0x2e3106(0x1e0)],_0x194cea);const _0x1e3399=this['session'][_0x2e3106(0x1f6)]()[_0x2e3106(0x1ea)](_0x194cea[_0x2e3106(0x1e0)],_0x15c099['CkUDF']);this['session'][_0x2e3106(0x1f6)]()[_0x2e3106(0x1d1)](_0x1e3399,undefined,0xbb8)['then'](_0x562861=>{});}});},_0xe36a0c['onMemberListChange']=_0x3c38f3=>{const _0x20b39f=_0x4578b0,_0x168e49=_0x3c38f3[_0x20b39f(0x202)][_0x20b39f(0x175)]('_')[0x0];if(groupMembers[_0x20b39f(0x19e)](_0x168e49)){const _0x20223d=groupMembers[_0x20b39f(0x1ba)](_0x168e49);_0x3c38f3[_0x20b39f(0x1f9)][_0x20b39f(0x1e1)]((_0x478182,_0x3fc367)=>{const _0x3a8b30=_0x20b39f,_0x30a42c=_0x20223d[_0x3a8b30(0x1ba)](_0x3fc367);_0x30a42c?Object[_0x3a8b30(0x1f7)](_0x30a42c,_0x478182):_0x20223d[_0x3a8b30(0x222)](_0x3fc367,_0x478182);});}else groupMembers[_0x20b39f(0x222)](_0x168e49,_0x3c38f3[_0x20b39f(0x1f9)]);},_0xe36a0c['onMemberInfoChange']=(_0x43da9c,_0x322a22,_0x2b2ddd)=>{const _0x4bef5e=_0x4578b0;_0x15c099[_0x4bef5e(0x17e)](_0x322a22,0x0)&&_0x2b2ddd[_0x4bef5e(0x1ba)](selfInfo[_0x4bef5e(0x21b)])&&_0x2b2ddd[_0x4bef5e(0x1ba)](selfInfo[_0x4bef5e(0x21b)])?.['isDelete']&&_0x15c099['UUwYp'](setTimeout,()=>{groups['delete'](_0x43da9c);},0x1388);_0x2b2ddd[_0x4bef5e(0x1e1)]((_0x22bbe2,_0x380369)=>{uid2UinMap[_0x380369]=_0x22bbe2['uin'];});const _0x3b35cc=groupMembers['get'](_0x43da9c);_0x3b35cc?_0x2b2ddd[_0x4bef5e(0x1e1)]((_0x2d3456,_0x1fc051)=>{const _0x4259d2=_0x4bef5e,_0x1ba400=_0x3b35cc[_0x4259d2(0x1ba)](_0x1fc051);_0x1ba400?Object[_0x4259d2(0x1f7)](_0x1ba400,_0x2d3456):_0x3b35cc[_0x4259d2(0x222)](_0x1fc051,_0x2d3456);}):groupMembers[_0x4bef5e(0x222)](_0x43da9c,_0x2b2ddd);},this[_0x4578b0(0x1b2)](_0xe36a0c);}[_0x334227(0x1b2)](_0x45a421){const _0x424a7c=_0x334227,_0x28e973={'cSwWF':_0x424a7c(0x220),'jxZPz':_0x424a7c(0x1e3),'NtZLW':'ProfileListener'};_0x45a421=new Proxy(_0x45a421,this[_0x424a7c(0x204)]);switch(_0x45a421[_0x424a7c(0x1b1)][_0x424a7c(0x19b)]){case _0x28e973[_0x424a7c(0x20f)]:{return this[_0x424a7c(0x218)][_0x424a7c(0x206)]()[_0x424a7c(0x1fd)](new _0x4ca9e8['NodeIKernelBuddyListener'](_0x45a421));}case _0x28e973[_0x424a7c(0x1a3)]:{return this[_0x424a7c(0x218)][_0x424a7c(0x1f6)]()[_0x424a7c(0x20c)](new _0x4ca9e8[(_0x424a7c(0x188))](_0x45a421));}case'MsgListener':{return this[_0x424a7c(0x218)][_0x424a7c(0x1f0)]()[_0x424a7c(0x1fe)](new _0x4ca9e8[(_0x424a7c(0x1dd))](_0x45a421));}case _0x28e973[_0x424a7c(0x1ab)]:{return this['session'][_0x424a7c(0x1d7)]()[_0x424a7c(0x209)](new _0x4ca9e8[(_0x424a7c(0x1b7))](_0x45a421));}default:return-0x1;}}[_0x334227(0x1c4)](_0x138f60){const _0x5f0043=_0x334227;this[_0x5f0043(0x1da)][_0x5f0043(0x172)](_0x138f60);}async[_0x334227(0x17f)](_0x3661c0){const _0x4361a4=_0x334227,_0x1f1b87={'OhxrL':function(_0x463fc9,_0x428f58){return _0x463fc9!==_0x428f58;},'vbdJv':function(_0x5c5ddd,_0x3c4c9c){return _0x5c5ddd+_0x3c4c9c;},'KtjMl':'快速登录失败\x20'},_0x4ce943=await this[_0x4361a4(0x219)][_0x4361a4(0x183)]();if(_0x1f1b87[_0x4361a4(0x1de)](_0x4ce943['result'],0x0))throw new Error(_0x4361a4(0x216));const _0x2cd816=_0x4ce943[_0x4361a4(0x1cd)]['find'](_0x18475e=>_0x18475e[_0x4361a4(0x1d2)]===_0x3661c0);if(!_0x2cd816||!_0x2cd816?.['isQuickLogin'])throw new Error(_0x3661c0+_0x4361a4(0x1df));await sleep(0x3e8);const _0x3d2f2f=await this['loginService']['quickLoginWithUin'](_0x3661c0);if(!_0x3d2f2f[_0x4361a4(0x182)])throw new Error(_0x1f1b87[_0x4361a4(0x173)](_0x1f1b87[_0x4361a4(0x1d6)],_0x3d2f2f['loginErrorInfo'][_0x4361a4(0x1bb)]));return _0x3d2f2f;}async['qrLogin'](_0x39b17c){const _0x3e2355={'QPjXd':'base64','UJiSZ':function(_0x548e28,_0x13e4c9,_0x17bbd5,_0x2ccb6a){return _0x548e28(_0x13e4c9,_0x17bbd5,_0x2ccb6a);}};return new Promise((_0x39d124,_0x262f79)=>{const _0x41652e=_0x310c;this[_0x41652e(0x18b)][_0x41652e(0x171)]=_0x1accec=>{const _0x5598d1=_0x41652e,_0x115ed7=_0x1accec['pngBase64QrcodeData'][_0x5598d1(0x175)](_0x5598d1(0x200))[0x1],_0x386e0a=Buffer[_0x5598d1(0x178)](_0x115ed7,_0x3e2355[_0x5598d1(0x19f)]);_0x3e2355[_0x5598d1(0x21c)](_0x39b17c,_0x1accec['qrcodeUrl'],_0x1accec[_0x5598d1(0x1d3)],_0x386e0a);},this[_0x41652e(0x219)][_0x41652e(0x184)]();});}async[_0x334227(0x1d8)](_0x55f291,_0x46abc3,_0x5d285f,_0x17ea69,_0x41f096){const _0x5c3f55=_0x334227,_0x1f2401={'PLooo':_0x5c3f55(0x1af),'RHKZg':_0x5c3f55(0x1a2),'YocGX':function(_0x293f4c,_0x598353){return _0x293f4c||_0x598353;},'lMLQn':function(_0x2294b8,_0x32939a){return _0x2294b8||_0x32939a;},'lqdDn':function(_0x6002b3,_0x15071c){return _0x6002b3(_0x15071c);},'xdxHP':_0x5c3f55(0x1fa)},_0x3510cf=_0x1b2098['createHash'](_0x1f2401[_0x5c3f55(0x1f5)])[_0x5c3f55(0x1f8)](_0x46abc3)[_0x5c3f55(0x1a5)](_0x1f2401[_0x5c3f55(0x192)]),_0xeac828={'uin':_0x55f291,'passwordMd5':_0x3510cf,'step':_0x5d285f&&_0x17ea69&&_0x41f096?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x1f2401[_0x5c3f55(0x18c)](_0x5d285f,''),'proofWaterRand':_0x1f2401[_0x5c3f55(0x18c)](_0x17ea69,''),'proofWaterSid':_0x1f2401[_0x5c3f55(0x223)](_0x41f096,'')};await this[_0x5c3f55(0x219)]['getLoginList'](),await _0x1f2401[_0x5c3f55(0x1a1)](sleep,0x3e8);const _0x35898b=await this['loginService']['passwordLogin'](_0xeac828);switch(_0x35898b[_0x5c3f55(0x182)]){case'0':{break;}case _0x5c3f55(0x1a0):{break;}case'4':case _0x1f2401[_0x5c3f55(0x21e)]:default:}}async[_0x334227(0x1ee)](){const _0x5a90cf=_0x334227,_0x2d7e41=await this['loginService'][_0x5a90cf(0x183)]();return _0x2d7e41;}}export const napCatCore=new NapCatCore(); \ No newline at end of file +const _0xe4e48c=_0x4d3b;(function(_0x28d0c,_0x394bcd){const _0x3f2379=_0x4d3b,_0x2965cd=_0x28d0c();while(!![]){try{const _0x23de9e=-parseInt(_0x3f2379(0x213))/0x1+-parseInt(_0x3f2379(0x267))/0x2+parseInt(_0x3f2379(0x26a))/0x3+-parseInt(_0x3f2379(0x20c))/0x4+-parseInt(_0x3f2379(0x1d3))/0x5+parseInt(_0x3f2379(0x236))/0x6*(parseInt(_0x3f2379(0x23b))/0x7)+parseInt(_0x3f2379(0x1c6))/0x8*(parseInt(_0x3f2379(0x1eb))/0x9);if(_0x23de9e===_0x394bcd)break;else _0x2965cd['push'](_0x2965cd['shift']());}catch(_0x74d7d6){_0x2965cd['push'](_0x2965cd['shift']());}}}(_0x5b21,0x81177));import _0x341878 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x47fb73 from'node:path';import _0x366621 from'node:os';import _0x2f958f from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';function _0x5b21(){const _0x46ab9e=['onLoginSuccessFuncList','groupMemberList_MainWindow','rHhOM',')已登录,无法重复登录','_GW_B','Wfpsr','stringify','onGroupListUpdate','5636853AKUQEG','passwordLogin','uthWD','last_message_time','uin','sceneId','NodeIKernelMsgListener','getNTUserDataInfoConfig','QvrbJ','onProfileDetailInfoChanged','LocalLoginInfoList','assign','./NapCat/data','util','tipsDesc','split','DTYrC','IJbpY','init\x20failed\x20','geRuL','onRecvMsg','getGroupService','NodeIGlobalAdapter','UbdWr','登录失败','message_received','getNextMemberList','infos','consoleLogLevel','Windows\x2010\x20Pro','getBuddyService','buddyList','name','1932476qIMrYY','QjNJz','then','Qdpbz','RXmKR','MWTJu','get','189376HyVHEj','constructor','NodeIKernelGroupListener','push','tipsTitle','快速登录不可用','140022008','forEach','NodeIKernelProfileListener','onQRCodeLoginSucceed','FizVu','addMsg','LsTQL','addKernelMsgListener','catch','find','NodeIDependsAdapter','packet_sent','sZFHk','createMemberListScene','yDSEX','启动失败:\x20','data:image/png;base64,','base64','onMemberListChange','homedir','initSession\x20failed','yPjvh','lnjeD','now','WJwcw','read','resolve','hgbLx','map','564lBqufA','[KickedOffLine]\x20[','账号设备(','NodeIKernelSessionListener','recallTime','74438kIEaZW','packet_received','addKernelLoginListener','addKernelProfileListener','message_sent','iYkkM','\x20has\x20no\x20method\x20','getMsgService','QiDoe','UANEI','osnCl','isQuickLogin','adEDB','floor','onMemberInfoChange','groupCode','undefined','MsgListener','set','clientType','result','TihNu','getProfileService','vMvKM','qrcodeUrl','sbdmN','qrLogin','onQRCodeSessionFailed','session','rPuCr','dataPath','delete','-v2.db','msgId','btnuP','addKernelBuddyListener','wwZfo','mkdirSync','ProfileListener','onAddSendMsg','getBuddyList','errMsg','engine','NodeIKernelLoginListener','1309248tsyVsv','loginService','devUid','2030073qlBTKS','adWEH','kDAOG','initConfig','cuNNY','updateMsg','startNT','loginListener','clbRS','onQRCodeGetPicture','uid','sHPXK','onSelfStatusChanged','quickLogin','onLoginFailed','./nt_qq/global',')\x20在线状态变更','dnxkS','curVersion','addListener','init','quickLoginWithUin','AAfCz','onLineDev','initDataListener','initSession','getMsgByLongId','getLoginList','MxoyY','WBXQp','8cZAwSu','QQwDQ','StmsS','pngBase64QrcodeData','from','数据库初始化失败','ceyrg','onRecvSysMsg','createHash','wBEQv','140022013','replace','initWithDeskTopConfig','2233630vsfvAf','lCeCN','length','fileLog','getQRCodePicture','NodeIKernelBuddyListener','onMsgInfoListUpdate','dataPathGlobal','BuddyListener','digest','proxyHandler','没有可快速登录的QQ号','vAlqp','V1_WIN_NQ_','bdYPe','Autps'];_0x5b21=function(){return _0x46ab9e;};return _0x5b21();}import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0xb1e5da from'node:crypto';import{rawFriends,friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';function _0x4d3b(_0x485067,_0x31b2a6){const _0x5b21b3=_0x5b21();return _0x4d3b=function(_0x4d3be6,_0x2dc5f7){_0x4d3be6=_0x4d3be6-0x1b1;let _0x2a1279=_0x5b21b3[_0x4d3be6];return _0x2a1279;},_0x4d3b(_0x485067,_0x31b2a6);}import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{['session'];[_0xe4e48c(0x1f8)];[_0xe4e48c(0x265)];[_0xe4e48c(0x271)];[_0xe4e48c(0x268)];[_0xe4e48c(0x1e3)]=[];[_0xe4e48c(0x1dd)]={'get'(target,prop,receiver){const _0x5ec5da=_0xe4e48c,sLPGGf={'StmsS':function(callee,param1){return callee(param1);},'sZFHk':function(x,y){return x===y;},'vFsyX':_0x5ec5da(0x24b)};if(sLPGGf[_0x5ec5da(0x225)](typeof target[prop],sLPGGf['vFsyX']))return(...args)=>{const _0x108942=_0x5ec5da;sLPGGf[_0x108942(0x1c8)](logDebug,target[_0x108942(0x214)][_0x108942(0x20b)]+_0x108942(0x241)+prop);};return Reflect['get'](target,prop,receiver);}};constructor(){const _0x1f14cb=_0xe4e48c,_0xac5665={'osnCl':function(_0x193d11,_0x5adbba){return _0x193d11(_0x5adbba);},'hgbLx':function(_0x1fc9e2,_0x4ef2b7){return _0x1fc9e2+_0x4ef2b7;},'vAlqp':'当前账号(','LXFbM':_0x1f14cb(0x1e6),'yPjvh':function(_0xe859c5,_0x5590a,_0x423fe5){return _0xe859c5(_0x5590a,_0x423fe5);},'QgVAu':_0x1f14cb(0x1cb),'QQwDQ':function(_0x4dc2fb,_0x52476f){return _0x4dc2fb(_0x52476f);},'UbdWr':_0x1f14cb(0x1f7),'yDSEX':'本账号数据/缓存目录:','Autps':function(_0x46efbd,_0x53d0d4,_0x3a2caa){return _0x46efbd(_0x53d0d4,_0x3a2caa);},'kDAOG':_0x1f14cb(0x203),'cuNNY':function(_0x356e97,_0x3b6f8e){return _0x356e97==_0x3b6f8e;}};this[_0x1f14cb(0x265)]=new _0x341878['NodeIQQNTWrapperEngine'](),this[_0x1f14cb(0x1f8)]=new _0x341878['NodeQQNTWrapperUtil'](),this[_0x1f14cb(0x268)]=new _0x341878['NodeIKernelLoginService'](),this[_0x1f14cb(0x257)]=new _0x341878['NodeIQQNTWrapperSession'](),this[_0x1f14cb(0x271)]=new LoginListener(),this[_0x1f14cb(0x271)]['onUserLoggedIn']=_0x1dcf4f=>{const _0x137a0b=_0x1f14cb;_0xac5665[_0x137a0b(0x245)](logError,_0xac5665[_0x137a0b(0x234)](_0xac5665[_0x137a0b(0x234)](_0xac5665[_0x137a0b(0x1df)],_0x1dcf4f),_0xac5665['LXFbM']));},this[_0x1f14cb(0x271)][_0x1f14cb(0x21c)]=_0x276e2f=>{const _0x558aab=_0x1f14cb;this[_0x558aab(0x1c1)](_0x276e2f[_0x558aab(0x1ef)],_0x276e2f[_0x558aab(0x1b2)])[_0x558aab(0x20e)](_0x42bb63=>{const _0xc23e85=_0x558aab,_0x404431={'BbFrf':function(_0x26cc5c,_0x236c9d,_0x5420f1){const _0x268716=_0x4d3b;return _0xac5665[_0x268716(0x22e)](_0x26cc5c,_0x236c9d,_0x5420f1);},'wwZfo':_0xac5665['QgVAu']};selfInfo[_0xc23e85(0x1ef)]=_0x276e2f[_0xc23e85(0x1ef)],selfInfo[_0xc23e85(0x1b2)]=_0x276e2f[_0xc23e85(0x1b2)],napCatConfig[_0xc23e85(0x232)](),setLogLevel(napCatConfig['fileLogLevel'],napCatConfig[_0xc23e85(0x207)]),_0xac5665['osnCl'](enableFileLog,napCatConfig[_0xc23e85(0x1d6)]),_0xac5665[_0xc23e85(0x1c7)](enableConsoleLog,napCatConfig['consoleLog']),_0xac5665[_0xc23e85(0x245)](setLogSelfInfo,selfInfo);const _0x10d17a=_0x47fb73['resolve'](this['dataPath'],_0xac5665[_0xc23e85(0x202)]);_0x2f958f[_0xc23e85(0x260)](_0x10d17a,{'recursive':!![]}),_0xac5665[_0xc23e85(0x22e)](logDebug,_0xac5665[_0xc23e85(0x227)],_0x10d17a),dbUtil['init'](_0x47fb73[_0xc23e85(0x233)](_0x10d17a,'./'+_0x276e2f[_0xc23e85(0x1ef)]+_0xc23e85(0x25b)))[_0xc23e85(0x20e)](()=>{const _0x53ed67=_0xc23e85;this[_0x53ed67(0x1c0)](),this['onLoginSuccessFuncList'][_0x53ed67(0x235)](_0x2b5358=>{const _0xbe3e64=_0x53ed67;new Promise((_0x29acb8,_0x416b50)=>{const _0xb8e8=_0x4d3b,_0x313a43=_0x2b5358(_0x276e2f[_0xb8e8(0x1ef)],_0x276e2f[_0xb8e8(0x1b2)]);_0x313a43 instanceof Promise&&_0x313a43['then'](_0x29acb8)[_0xb8e8(0x221)](_0x416b50);})[_0xbe3e64(0x20e)]();});})[_0xc23e85(0x221)](_0x51d522=>{const _0x36c486=_0xc23e85;_0x404431['BbFrf'](logError,_0x404431[_0x36c486(0x25f)],_0x51d522);});})[_0x558aab(0x221)](_0x4109d8=>{const _0x5d5a5f=_0x558aab;_0xac5665[_0x5d5a5f(0x1e2)](logError,_0x5d5a5f(0x22d),_0x4109d8);throw new Error(_0x5d5a5f(0x228)+JSON[_0x5d5a5f(0x1e9)](_0x4109d8));});},this[_0x1f14cb(0x271)][_0x1f14cb(0x256)]=(_0x4b9413,_0x112772,_0x3353b2)=>{const _0x4d7ab1=_0x1f14cb;_0xac5665[_0x4d7ab1(0x1e2)](logError,_0xac5665[_0x4d7ab1(0x26c)],_0x3353b2),_0xac5665[_0x4d7ab1(0x26e)](_0x4b9413,0x1)&&_0x112772==0x3&&this[_0x4d7ab1(0x268)][_0x4d7ab1(0x1d7)]();},this[_0x1f14cb(0x271)][_0x1f14cb(0x1b6)]=_0x224465=>{const _0x4054a3=_0x1f14cb;logError(_0x4054a3(0x203),_0x224465);},this['loginListener']=new Proxy(this[_0x1f14cb(0x271)],this[_0x1f14cb(0x1dd)]),this['loginService'][_0x1f14cb(0x23d)](new _0x341878[(_0x1f14cb(0x266))](this[_0x1f14cb(0x271)])),this[_0x1f14cb(0x26d)]();}get['dataPath'](){const _0x4330a8=_0xe4e48c,_0x4e1456={'lCeCN':'./.config/QQ'};let _0x19c4cd=this[_0x4330a8(0x1f8)][_0x4330a8(0x1f2)]();return!_0x19c4cd&&(_0x19c4cd=_0x47fb73[_0x4330a8(0x233)](_0x366621[_0x4330a8(0x22c)](),_0x4e1456[_0x4330a8(0x1d4)]),_0x2f958f[_0x4330a8(0x260)](_0x19c4cd,{'recursive':!![]})),_0x19c4cd;}get[_0xe4e48c(0x1da)](){const _0x195c2d=_0xe4e48c,_0x49d37a={'mynVn':_0x195c2d(0x1b7)};return _0x47fb73[_0x195c2d(0x233)](this[_0x195c2d(0x259)],_0x49d37a['mynVn']);}[_0xe4e48c(0x26d)](){const _0x480305=_0xe4e48c;this[_0x480305(0x265)][_0x480305(0x1d2)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x480305(0x1ba)],'os_version':_0x480305(0x208),'use_xlog':!![],'qua':_0x480305(0x1e0)+qqVersionConfigInfo[_0x480305(0x1ba)][_0x480305(0x1d1)]('-','_')+_0x480305(0x1e7),'global_path_config':{'desktopGlobalPath':this[_0x480305(0x1da)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x341878[(_0x480305(0x201))](new GlobalAdapter())),this[_0x480305(0x268)][_0x480305(0x26d)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x480305(0x1da)],'clientVer':qqVersionConfigInfo['curVersion'],'hostName':hostname});}[_0xe4e48c(0x1c1)](_0x44649f,_0x322e37){const _0x27a8cb=_0xe4e48c,_0x5efec9={'MxoyY':function(_0x5b1d46,_0x421ff0){return _0x5b1d46(_0x421ff0);},'clbRS':function(_0x1718c3,_0xa5ba44,_0x577990,_0x2db6df){return _0x1718c3(_0xa5ba44,_0x577990,_0x2db6df);},'Fsenb':function(_0x55652a,_0x159fa2){return _0x55652a(_0x159fa2);},'UANEI':function(_0x239b29,_0x4e4355){return _0x239b29+_0x4e4355;},'sHPXK':_0x27a8cb(0x1fd)};return new Promise((_0x33198a,_0x757c0a)=>{const _0x37e41a=_0x27a8cb,_0x4f391d=_0x5efec9[_0x37e41a(0x272)](genSessionConfig,_0x44649f,_0x322e37,this['dataPath']),_0x1e75b4=new SessionListener();_0x1e75b4['onSessionInitComplete']=_0x5c3e95=>{const _0x5ab1d1=_0x37e41a;if(_0x5c3e95===0x0)return _0x5efec9[_0x5ab1d1(0x1c4)](_0x33198a,0x0);_0x5efec9['MxoyY'](_0x757c0a,_0x5c3e95);},this['session'][_0x37e41a(0x1bc)](_0x4f391d,new _0x341878[(_0x37e41a(0x223))](new DependsAdapter()),new _0x341878['NodeIDispatcherAdapter'](new DispatcherAdapter()),new _0x341878[(_0x37e41a(0x239))](_0x1e75b4));try{this[_0x37e41a(0x257)][_0x37e41a(0x270)](0x0);}catch(_0x4cbf5d){try{this[_0x37e41a(0x257)][_0x37e41a(0x270)]();}catch(_0x4bea70){_0x5efec9['Fsenb'](_0x757c0a,_0x5efec9[_0x37e41a(0x244)](_0x5efec9[_0x37e41a(0x1b3)],_0x4bea70));}}});}[_0xe4e48c(0x1c0)](){const _0x22b622=_0xe4e48c,_0x19e878={'sbdmN':function(_0x293fd1,_0x569dd1){return _0x293fd1(_0x569dd1);},'wBEQv':function(_0x737680,_0x214778){return _0x737680+_0x214778;},'FizVu':_0x22b622(0x238),'LQaQe':_0x22b622(0x1b8),'TihNu':function(_0x344ea8,_0x2ce713){return _0x344ea8(_0x2ce713);},'QvrbJ':function(_0x2cf4d9,_0x4022fc){return _0x2cf4d9+_0x4022fc;},'Qdpbz':_0x22b622(0x237),'WBXQp':function(_0x1d0cde,_0x242510){return _0x1d0cde===_0x242510;},'adEDB':function(_0x4c64d2,_0x148f05){return _0x4c64d2/_0x148f05;},'geRuL':_0x22b622(0x1e4),'LAYNh':function(_0x163b2c,_0x31236f,_0x4ee971){return _0x163b2c(_0x31236f,_0x4ee971);}},_0x4cc7c6=new MsgListener();_0x4cc7c6[_0x22b622(0x1bf)]=_0x2969bd=>{const _0x4b52b2=_0x22b622,_0x51065c={'lnjeD':function(_0x1479fb,_0x15dc4e){return _0x1479fb===_0x15dc4e;},'UTPMO':function(_0x33eb81,_0x14a8d5){const _0x96bcd7=_0x4d3b;return _0x19e878[_0x96bcd7(0x254)](_0x33eb81,_0x14a8d5);},'Wfpsr':function(_0x1da237,_0x52841d){const _0x4e3edd=_0x4d3b;return _0x19e878[_0x4e3edd(0x1cf)](_0x1da237,_0x52841d);},'AAfCz':function(_0x3235d6,_0x5eb660){const _0x2f52a5=_0x4d3b;return _0x19e878[_0x2f52a5(0x1cf)](_0x3235d6,_0x5eb660);},'DTYrC':_0x19e878[_0x4b52b2(0x21d)],'LsTQL':_0x19e878['LQaQe']};_0x2969bd['map'](_0x428390=>{const _0xfd593b=_0x4b52b2;_0x51065c[_0xfd593b(0x22f)](_0x428390[_0xfd593b(0x24e)],0x2)&&_0x51065c['UTPMO'](log,_0x51065c[_0xfd593b(0x1e8)](_0x51065c[_0xfd593b(0x1be)](_0x51065c[_0xfd593b(0x1fb)],_0x428390[_0xfd593b(0x269)]),_0x51065c[_0xfd593b(0x21f)]));});},_0x4cc7c6['onKickedOffLine']=_0x2e09ce=>{const _0x1035f0=_0x22b622;_0x19e878[_0x1035f0(0x250)](log,_0x19e878[_0x1035f0(0x1f3)](_0x19e878[_0x1035f0(0x20f)],_0x2e09ce[_0x1035f0(0x217)])+']\x20'+_0x2e09ce[_0x1035f0(0x1f9)]);},_0x4cc7c6[_0x22b622(0x1d9)]=_0xe7cba7=>{const _0x431f5f=_0x22b622;stat['packet_received']+=0x1,_0xe7cba7[_0x431f5f(0x235)](_0xbb45cb=>{const _0x100779=_0x431f5f;_0x19e878['WBXQp'](_0xbb45cb[_0x100779(0x23a)],'0')?dbUtil[_0x100779(0x21e)](_0xbb45cb)[_0x100779(0x20e)]()[_0x100779(0x221)]():dbUtil[_0x100779(0x1c2)](_0xbb45cb[_0x100779(0x25c)])[_0x100779(0x20e)](_0x193d6d=>{const _0x26fffb=_0x100779;_0x193d6d&&(_0x193d6d[_0x26fffb(0x23a)]=_0xbb45cb[_0x26fffb(0x23a)],dbUtil[_0x26fffb(0x26f)](_0x193d6d)['then']());});});},_0x4cc7c6[_0x22b622(0x262)]=_0xa10d97=>{const _0x3f8ed1=_0x22b622;stat[_0x3f8ed1(0x224)]+=0x1,stat[_0x3f8ed1(0x23f)]+=0x1,stat[_0x3f8ed1(0x1ee)]=Math[_0x3f8ed1(0x248)](_0x19e878[_0x3f8ed1(0x247)](Date['now'](),0x3e8));},_0x4cc7c6[_0x22b622(0x1ff)]=_0x496ced=>{const _0x4e69b1=_0x22b622;stat[_0x4e69b1(0x23c)]+=0x1,stat[_0x4e69b1(0x204)]+=_0x496ced[_0x4e69b1(0x1d5)],stat[_0x4e69b1(0x1ee)]=Math['floor'](_0x19e878[_0x4e69b1(0x247)](Date[_0x4e69b1(0x230)](),0x3e8));},_0x4cc7c6[_0x22b622(0x1cd)]=(..._0x46ac49)=>{const _0x45d3da=_0x22b622;stat[_0x45d3da(0x23c)]+=0x1;},this[_0x22b622(0x1bb)](_0x4cc7c6);const _0x359396=new BuddyListener();_0x359396['onBuddyListChange']=_0x49b8d=>{const _0x10efad=_0x22b622;rawFriends[_0x10efad(0x1d5)]=0x0,rawFriends[_0x10efad(0x216)](..._0x49b8d);for(const _0x22eaea of _0x49b8d){for(const _0x32af76 of _0x22eaea[_0x10efad(0x20a)]){const _0x1adece=friends[_0x10efad(0x212)](_0x32af76[_0x10efad(0x1b2)]);uid2UinMap[_0x32af76[_0x10efad(0x1b2)]]=_0x32af76[_0x10efad(0x1ef)],_0x1adece?Object[_0x10efad(0x1f6)](_0x1adece,_0x32af76):friends['set'](_0x32af76[_0x10efad(0x1b2)],_0x32af76);}}},this[_0x22b622(0x1bb)](_0x359396),this['session'][_0x22b622(0x209)]()[_0x22b622(0x263)](!![])[_0x22b622(0x20e)](_0xb3d51=>{});const _0x56ff2a=new ProfileListener();_0x56ff2a[_0x22b622(0x1f4)]=_0x52e007=>{const _0x4848c6=_0x22b622;_0x19e878[_0x4848c6(0x1c5)](_0x52e007[_0x4848c6(0x1b2)],selfInfo[_0x4848c6(0x1b2)])&&Object[_0x4848c6(0x1f6)](selfInfo,_0x52e007);},_0x56ff2a[_0x22b622(0x1b4)]=_0x2c9846=>{},this[_0x22b622(0x1bb)](_0x56ff2a);const _0x2abe00=new GroupListener();_0x2abe00[_0x22b622(0x1ea)]=(_0x366c9c,_0x242de1)=>{const _0x1d570d=_0x22b622,_0x1e8029={'vMvKM':_0x19e878[_0x1d570d(0x1fe)]};_0x242de1[_0x1d570d(0x235)](_0x286b6a=>{const _0x2fa39c=_0x1d570d,_0x2ca47b=groups['get'](_0x286b6a[_0x2fa39c(0x24a)]);if(_0x2ca47b)Object[_0x2fa39c(0x1f6)](_0x2ca47b,_0x286b6a);else{groups[_0x2fa39c(0x24d)](_0x286b6a['groupCode'],_0x286b6a);const _0x38fc67=this[_0x2fa39c(0x257)][_0x2fa39c(0x200)]()[_0x2fa39c(0x226)](_0x286b6a['groupCode'],_0x1e8029[_0x2fa39c(0x252)]);this[_0x2fa39c(0x257)][_0x2fa39c(0x200)]()[_0x2fa39c(0x205)](_0x38fc67,undefined,0xbb8)['then'](_0x2f9b6a=>{});}});},_0x2abe00[_0x22b622(0x22b)]=_0x3f2c17=>{const _0x152463=_0x22b622,_0x595ba4=_0x3f2c17[_0x152463(0x1f0)][_0x152463(0x1fa)]('_')[0x0];if(groupMembers['has'](_0x595ba4)){const _0xa3ccd1=groupMembers['get'](_0x595ba4);_0x3f2c17[_0x152463(0x206)][_0x152463(0x21a)]((_0x25d4d,_0x542aaf)=>{const _0x235044=_0x152463,_0x375034=_0xa3ccd1[_0x235044(0x212)](_0x542aaf);_0x375034?Object[_0x235044(0x1f6)](_0x375034,_0x25d4d):_0xa3ccd1[_0x235044(0x24d)](_0x542aaf,_0x25d4d);});}else groupMembers[_0x152463(0x24d)](_0x595ba4,_0x3f2c17[_0x152463(0x206)]);},_0x2abe00[_0x22b622(0x249)]=(_0x1ec042,_0x2cf87c,_0x422388)=>{const _0x6c2e0c=_0x22b622;_0x19e878[_0x6c2e0c(0x1c5)](_0x2cf87c,0x0)&&_0x422388[_0x6c2e0c(0x212)](selfInfo[_0x6c2e0c(0x1b2)])&&_0x422388[_0x6c2e0c(0x212)](selfInfo[_0x6c2e0c(0x1b2)])?.['isDelete']&&_0x19e878['LAYNh'](setTimeout,()=>{const _0x110d36=_0x6c2e0c;groups[_0x110d36(0x25a)](_0x1ec042);},0x1388);_0x422388[_0x6c2e0c(0x21a)]((_0x59df78,_0x17ff24)=>{const _0x4d89c9=_0x6c2e0c;uid2UinMap[_0x17ff24]=_0x59df78[_0x4d89c9(0x1ef)];});const _0x588131=groupMembers[_0x6c2e0c(0x212)](_0x1ec042);_0x588131?_0x422388['forEach']((_0x1adcbb,_0x2a24d7)=>{const _0x71e90a=_0x6c2e0c,_0x70eed3=_0x588131[_0x71e90a(0x212)](_0x2a24d7);_0x70eed3?Object[_0x71e90a(0x1f6)](_0x70eed3,_0x1adcbb):_0x588131[_0x71e90a(0x24d)](_0x2a24d7,_0x1adcbb);}):groupMembers[_0x6c2e0c(0x24d)](_0x1ec042,_0x422388);},this[_0x22b622(0x1bb)](_0x2abe00);}['addListener'](_0x1fbe8d){const _0x3ce424=_0xe4e48c,_0x255c38={'iYkkM':_0x3ce424(0x1db),'MWTJu':'GroupListener','WJwcw':_0x3ce424(0x24c)};_0x1fbe8d=new Proxy(_0x1fbe8d,this[_0x3ce424(0x1dd)]);switch(_0x1fbe8d[_0x3ce424(0x214)][_0x3ce424(0x20b)]){case _0x255c38[_0x3ce424(0x240)]:{return this['session']['getBuddyService']()[_0x3ce424(0x25e)](new _0x341878[(_0x3ce424(0x1d8))](_0x1fbe8d));}case _0x255c38[_0x3ce424(0x211)]:{return this[_0x3ce424(0x257)][_0x3ce424(0x200)]()['addKernelGroupListener'](new _0x341878[(_0x3ce424(0x215))](_0x1fbe8d));}case _0x255c38[_0x3ce424(0x231)]:{return this['session'][_0x3ce424(0x242)]()[_0x3ce424(0x220)](new _0x341878[(_0x3ce424(0x1f1))](_0x1fbe8d));}case _0x3ce424(0x261):{return this[_0x3ce424(0x257)][_0x3ce424(0x251)]()[_0x3ce424(0x23e)](new _0x341878[(_0x3ce424(0x21b))](_0x1fbe8d));}default:return-0x1;}}['onLoginSuccess'](_0x1cef10){const _0x114cf1=_0xe4e48c;this['onLoginSuccessFuncList'][_0x114cf1(0x216)](_0x1cef10);}async[_0xe4e48c(0x1b5)](_0x45d5d0){const _0x32d661=_0xe4e48c,_0x5dfa9b={'QiDoe':function(_0x30c413,_0x1d96ec){return _0x30c413!==_0x1d96ec;},'bdYPe':function(_0x509622,_0x256704){return _0x509622(_0x256704);},'ceyrg':function(_0xc6ef59,_0x422248){return _0xc6ef59+_0x422248;},'IJbpY':'快速登录失败\x20'},_0x4ba406=await this[_0x32d661(0x268)]['getLoginList']();if(_0x5dfa9b[_0x32d661(0x243)](_0x4ba406['result'],0x0))throw new Error(_0x32d661(0x1de));const _0x21e6ec=_0x4ba406[_0x32d661(0x1f5)][_0x32d661(0x222)](_0x57b894=>_0x57b894['uin']===_0x45d5d0);if(!_0x21e6ec||!_0x21e6ec?.[_0x32d661(0x246)])throw new Error(_0x45d5d0+_0x32d661(0x218));await _0x5dfa9b[_0x32d661(0x1e1)](sleep,0x3e8);const _0x375fac=await this[_0x32d661(0x268)][_0x32d661(0x1bd)](_0x45d5d0);if(!_0x375fac[_0x32d661(0x24f)])throw new Error(_0x5dfa9b[_0x32d661(0x1cc)](_0x5dfa9b[_0x32d661(0x1fc)],_0x375fac['loginErrorInfo'][_0x32d661(0x264)]));return _0x375fac;}async[_0xe4e48c(0x255)](_0x3fd7e1){const _0x3a4123=_0xe4e48c,_0x286999={'dnxkS':_0x3a4123(0x229)};return new Promise((_0x286edb,_0x39d503)=>{const _0x1465d1=_0x3a4123,_0x40480d={'uthWD':_0x286999[_0x1465d1(0x1b9)]};this['loginListener'][_0x1465d1(0x1b1)]=_0x2837a6=>{const _0x4dd314=_0x1465d1,_0xee76d6=_0x2837a6[_0x4dd314(0x1c9)][_0x4dd314(0x1fa)](_0x40480d[_0x4dd314(0x1ed)])[0x1],_0x442bb9=Buffer[_0x4dd314(0x1ca)](_0xee76d6,_0x4dd314(0x22a));_0x3fd7e1(_0x2837a6[_0x4dd314(0x253)],_0x2837a6[_0x4dd314(0x1c9)],_0x442bb9);},this[_0x1465d1(0x268)][_0x1465d1(0x1d7)]();});}async[_0xe4e48c(0x1ec)](_0x585bfa,_0x32f55e,_0x4d8ea0,_0x4b4f01,_0x5ed941){const _0x2e252b=_0xe4e48c,_0x214d4e={'RXmKR':'hex','btnuP':function(_0x297538,_0x4487f5){return _0x297538&&_0x4487f5;},'adWEH':function(_0x1700d3,_0x13e332){return _0x1700d3||_0x13e332;},'rPuCr':function(_0x4f40e9,_0x115575){return _0x4f40e9||_0x115575;},'mCXDL':function(_0x397487,_0x1fb9d9){return _0x397487(_0x1fb9d9);},'QjNJz':_0x2e252b(0x219),'rHhOM':_0x2e252b(0x1d0)},_0x1f2694=_0xb1e5da[_0x2e252b(0x1ce)]('md5')['update'](_0x32f55e)[_0x2e252b(0x1dc)](_0x214d4e[_0x2e252b(0x210)]),_0x1b23a2={'uin':_0x585bfa,'passwordMd5':_0x1f2694,'step':_0x214d4e[_0x2e252b(0x25d)](_0x4d8ea0,_0x4b4f01)&&_0x5ed941?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x4d8ea0||'','proofWaterRand':_0x214d4e[_0x2e252b(0x26b)](_0x4b4f01,''),'proofWaterSid':_0x214d4e[_0x2e252b(0x258)](_0x5ed941,'')};await this[_0x2e252b(0x268)][_0x2e252b(0x1c3)](),await _0x214d4e['mCXDL'](sleep,0x3e8);const _0xb115fb=await this[_0x2e252b(0x268)][_0x2e252b(0x1ec)](_0x1b23a2);switch(_0xb115fb['result']){case'0':{break;}case _0x214d4e[_0x2e252b(0x20d)]:{break;}case'4':case _0x214d4e[_0x2e252b(0x1e5)]:default:}}async['getQuickLoginList'](){const _0x276a4b=_0xe4e48c,_0xe70eb3=await this[_0x276a4b(0x268)][_0x276a4b(0x1c3)]();return _0xe70eb3;}}export const napCatCore=new NapCatCore(); \ No newline at end of file diff --git a/src/core.lib/src/data.js b/src/core.lib/src/data.js index ada4b519..e1c8ff87 100644 --- a/src/core.lib/src/data.js +++ b/src/core.lib/src/data.js @@ -1 +1 @@ -const _0x57bfdf=_0x2030;(function(_0x14a0ce,_0x136179){const _0x4ac7ac=_0x2030,_0x3f3e51=_0x14a0ce();while(!![]){try{const _0x36e34f=parseInt(_0x4ac7ac(0x130))/0x1*(-parseInt(_0x4ac7ac(0x124))/0x2)+parseInt(_0x4ac7ac(0x131))/0x3+-parseInt(_0x4ac7ac(0x129))/0x4*(parseInt(_0x4ac7ac(0x12d))/0x5)+parseInt(_0x4ac7ac(0x138))/0x6*(parseInt(_0x4ac7ac(0x135))/0x7)+-parseInt(_0x4ac7ac(0x122))/0x8+-parseInt(_0x4ac7ac(0x139))/0x9+-parseInt(_0x4ac7ac(0x12a))/0xa*(-parseInt(_0x4ac7ac(0x13a))/0xb);if(_0x36e34f===_0x136179)break;else _0x3f3e51['push'](_0x3f3e51['shift']());}catch(_0x3a277f){_0x3f3e51['push'](_0x3f3e51['shift']());}}}(_0x26e5,0x2c8a5));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x3f8988){const _0x39f3b7=_0x2030;groups[_0x39f3b7(0x128)](_0x3f8988),groupMembers['delete'](_0x3f8988);}export const groupMembers=new Map();export const friends=new Map();function _0x2030(_0x2504c4,_0x5a51cc){const _0x26e589=_0x26e5();return _0x2030=function(_0x2030d0,_0x1ea908){_0x2030d0=_0x2030d0-0x121;let _0x3322ae=_0x26e589[_0x2030d0];return _0x3322ae;},_0x2030(_0x2504c4,_0x5a51cc);}export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x57bfdf(0x12c)};function _0x26e5(){const _0xa6b9d3=['set','values','delete','320988XeURwv','117810pubKRs','NdFnf','NapCat未能正常启动,请检查日志查看错误','5VVlfpE','get','from','126GFMpES','562254YQflSX','toString','getGroups','uin','528115fthbIx','find','forEach','18gNEEDS','3189294PfWDZw','583kANdVZ','getGroupMembers','1274144gMLLeq','length','4156QoDRFa','groupCode'];_0x26e5=function(){return _0xa6b9d3;};return _0x26e5();}export async function getFriend(_0x132b23){const _0x588288=_0x57bfdf,_0x128f12={'PuAJS':function(_0x5265fc,_0x4c28cd){return _0x5265fc(_0x4c28cd);}};_0x132b23=_0x132b23[_0x588288(0x132)]();if(_0x128f12['PuAJS'](isNumeric,_0x132b23)){const _0x5d2cbc=Array['from'](friends['values']());return _0x5d2cbc[_0x588288(0x136)](_0x376633=>_0x376633[_0x588288(0x134)]===_0x132b23);}else return friends[_0x588288(0x12e)](_0x132b23);}export async function getGroup(_0x2c3133){const _0x3a0980=_0x57bfdf;let _0x528f14=groups[_0x3a0980(0x12e)](_0x2c3133['toString']());if(!_0x528f14)try{const _0x36f496=await NTQQGroupApi[_0x3a0980(0x133)]();_0x36f496[_0x3a0980(0x123)]&&_0x36f496[_0x3a0980(0x137)](_0x1a5276=>{const _0x335b4d=_0x3a0980;groups[_0x335b4d(0x126)](_0x1a5276[_0x335b4d(0x125)],_0x1a5276);});}catch(_0x28ff1b){return undefined;}return _0x528f14=groups[_0x3a0980(0x12e)](_0x2c3133['toString']()),_0x528f14;}export async function getGroupMember(_0x118da3,_0x3a18be){const _0x168b56=_0x57bfdf,_0x2a676d={'RxzAi':function(_0x567a82){return _0x567a82();}};_0x118da3=_0x118da3[_0x168b56(0x132)](),_0x3a18be=_0x3a18be[_0x168b56(0x132)]();let _0xabff8a=groupMembers[_0x168b56(0x12e)](_0x118da3);if(!_0xabff8a)try{_0xabff8a=await NTQQGroupApi[_0x168b56(0x121)](_0x118da3),groupMembers[_0x168b56(0x126)](_0x118da3,_0xabff8a);}catch(_0x957715){return null;}const _0x3885a3=()=>{const _0x244872=_0x168b56;let _0x406e40=undefined;return isNumeric(_0x3a18be)?_0x406e40=Array[_0x244872(0x12f)](_0xabff8a[_0x244872(0x127)]())['find'](_0x358964=>_0x358964['uin']===_0x3a18be):_0x406e40=_0xabff8a[_0x244872(0x12e)](_0x3a18be),_0x406e40;};let _0x2b0822=_0x2a676d['RxzAi'](_0x3885a3);return!_0x2b0822&&(_0xabff8a=await NTQQGroupApi['getGroupMembers'](_0x118da3),_0x2b0822=_0x3885a3()),_0x2b0822;}export const uid2UinMap={};export function getUidByUin(_0x2cd67b){const _0xc8f0a5=_0x57bfdf,_0x51cdd5={'NdFnf':function(_0x49be4a,_0x8c6cd2){return _0x49be4a===_0x8c6cd2;}};for(const _0x5cd27b in uid2UinMap){if(_0x51cdd5[_0xc8f0a5(0x12b)](uid2UinMap[_0x5cd27b],_0x2cd67b))return _0x5cd27b;}}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0}; \ No newline at end of file +(function(_0x232104,_0x1a6026){const _0x3ca3b6=_0x3f8e,_0x33507d=_0x232104();while(!![]){try{const _0x14d362=parseInt(_0x3ca3b6(0xbf))/0x1*(-parseInt(_0x3ca3b6(0xad))/0x2)+-parseInt(_0x3ca3b6(0xb9))/0x3*(parseInt(_0x3ca3b6(0xc0))/0x4)+parseInt(_0x3ca3b6(0xbd))/0x5*(parseInt(_0x3ca3b6(0xc1))/0x6)+parseInt(_0x3ca3b6(0xc5))/0x7*(parseInt(_0x3ca3b6(0xb6))/0x8)+-parseInt(_0x3ca3b6(0xaf))/0x9*(parseInt(_0x3ca3b6(0xaa))/0xa)+parseInt(_0x3ca3b6(0xb5))/0xb+-parseInt(_0x3ca3b6(0xb1))/0xc*(parseInt(_0x3ca3b6(0xb4))/0xd);if(_0x14d362===_0x1a6026)break;else _0x33507d['push'](_0x33507d['shift']());}catch(_0x5d6810){_0x33507d['push'](_0x33507d['shift']());}}}(_0x52b8,0xe7218));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x1d7cb6){const _0x1b84b2=_0x3f8e;groups['delete'](_0x1d7cb6),groupMembers[_0x1b84b2(0xb8)](_0x1d7cb6);}function _0x3f8e(_0x34d21b,_0x24a128){const _0x52b884=_0x52b8();return _0x3f8e=function(_0x3f8e0d,_0x516400){_0x3f8e0d=_0x3f8e0d-0xaa;let _0x2befbc=_0x52b884[_0x3f8e0d];return _0x2befbc;},_0x3f8e(_0x34d21b,_0x24a128);}function _0x52b8(){const _0x489bc0=['uin','5270455nSzLIN','toString','14usQsGD','424428AqOqjM','6aozRGt','set','cPgeM','from','427mpivDc','295740YQAyOv','getGroupMembers','TonWD','78622gDRoTD','values','549tscbzK','ZmRth','612qjImxq','forEach','SzXSn','35919wXxiFG','13620420eRwZuA','234272SzbdHG','get','delete','18hGZNvN','groupCode','getGroups'];_0x52b8=function(){return _0x489bc0;};return _0x52b8();}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':'NapCat未能正常启动,请检查日志查看错误'};export async function getFriend(_0x1627fc){const _0x2414b6=_0x3f8e,_0x3d7ae0={'ZmRth':function(_0x118494,_0x5dcb0d){return _0x118494(_0x5dcb0d);}};_0x1627fc=_0x1627fc[_0x2414b6(0xbe)]();if(_0x3d7ae0[_0x2414b6(0xb0)](isNumeric,_0x1627fc)){const _0x4c6fc1=Array[_0x2414b6(0xc4)](friends['values']());return _0x4c6fc1['find'](_0x2d0c5e=>_0x2d0c5e[_0x2414b6(0xbc)]===_0x1627fc);}else return friends[_0x2414b6(0xb7)](_0x1627fc);}export async function getGroup(_0x322ad7){const _0x316675=_0x3f8e;let _0x58c712=groups[_0x316675(0xb7)](_0x322ad7[_0x316675(0xbe)]());if(!_0x58c712)try{const _0x2dc22d=await NTQQGroupApi[_0x316675(0xbb)]();_0x2dc22d['length']&&_0x2dc22d[_0x316675(0xb2)](_0x4f9d21=>{const _0x567e31=_0x316675;groups[_0x567e31(0xc2)](_0x4f9d21[_0x567e31(0xba)],_0x4f9d21);});}catch(_0x988624){return undefined;}return _0x58c712=groups[_0x316675(0xb7)](_0x322ad7[_0x316675(0xbe)]()),_0x58c712;}export async function getGroupMember(_0x8b6ee4,_0x149b82){const _0x5d7e33=_0x3f8e,_0x442bb3={'TonWD':function(_0x8a6fb1,_0x56c370){return _0x8a6fb1(_0x56c370);},'SzXSn':function(_0x41b5a0){return _0x41b5a0();}};_0x8b6ee4=_0x8b6ee4[_0x5d7e33(0xbe)](),_0x149b82=_0x149b82[_0x5d7e33(0xbe)]();let _0x4a9fb4=groupMembers[_0x5d7e33(0xb7)](_0x8b6ee4);if(!_0x4a9fb4)try{_0x4a9fb4=await NTQQGroupApi['getGroupMembers'](_0x8b6ee4),groupMembers[_0x5d7e33(0xc2)](_0x8b6ee4,_0x4a9fb4);}catch(_0x4dbc6e){return null;}const _0xf61f1f=()=>{const _0x23c0fa=_0x5d7e33;let _0x399b4d=undefined;return _0x442bb3[_0x23c0fa(0xac)](isNumeric,_0x149b82)?_0x399b4d=Array['from'](_0x4a9fb4[_0x23c0fa(0xae)]())['find'](_0x2bfc3c=>_0x2bfc3c[_0x23c0fa(0xbc)]===_0x149b82):_0x399b4d=_0x4a9fb4['get'](_0x149b82),_0x399b4d;};let _0x259010=_0xf61f1f();return!_0x259010&&(_0x4a9fb4=await NTQQGroupApi[_0x5d7e33(0xab)](_0x8b6ee4),_0x259010=_0x442bb3[_0x5d7e33(0xb3)](_0xf61f1f)),_0x259010;}export const uid2UinMap={};export function getUidByUin(_0x11be32){const _0x52b827=_0x3f8e,_0x3631da={'cPgeM':function(_0xe6644c,_0x1b710a){return _0xe6644c===_0x1b710a;}};for(const _0x5e2713 in uid2UinMap){if(_0x3631da[_0x52b827(0xc3)](uid2UinMap[_0x5e2713],_0x11be32))return _0x5e2713;}}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0}; \ No newline at end of file diff --git a/src/core.lib/src/entities/cache.js b/src/core.lib/src/entities/cache.js index dde5a3f6..54222052 100644 --- a/src/core.lib/src/entities/cache.js +++ b/src/core.lib/src/entities/cache.js @@ -1 +1 @@ -(function(_0x130e7c,_0x376349){var _0x92dc80=_0x4451,_0x17a671=_0x130e7c();while(!![]){try{var _0x26d63c=parseInt(_0x92dc80(0x1b0))/0x1*(-parseInt(_0x92dc80(0x1a7))/0x2)+-parseInt(_0x92dc80(0x1a2))/0x3+parseInt(_0x92dc80(0x1af))/0x4+-parseInt(_0x92dc80(0x1a3))/0x5+-parseInt(_0x92dc80(0x1a6))/0x6*(-parseInt(_0x92dc80(0x1ae))/0x7)+-parseInt(_0x92dc80(0x1ad))/0x8+parseInt(_0x92dc80(0x19f))/0x9*(parseInt(_0x92dc80(0x1ac))/0xa);if(_0x26d63c===_0x376349)break;else _0x17a671['push'](_0x17a671['shift']());}catch(_0xdd151c){_0x17a671['push'](_0x17a671['shift']());}}}(_0x1765,0x916ee));function _0x1765(){var _0x598f98=['760ISivlX','PyaMt','3237723jpQlIU','mCdzW','AUDIO','2125977POtimU','4874460DdqHyQ','IMAGE','OVpkP','3684GNTfhq','2990SWYLzW','VIDEO','GCvzO','ISUau','OTHER','70jmstbd','6184360DcSLkw','5761FvbqgW','4659756SYdfnC'];_0x1765=function(){return _0x598f98;};return _0x1765();};function _0x4451(_0x307477,_0xfaf5a3){var _0x1765cb=_0x1765();return _0x4451=function(_0x4451f3,_0x1a600b){_0x4451f3=_0x4451f3-0x19f;var _0x5c1089=_0x1765cb[_0x4451f3];return _0x5c1089;},_0x4451(_0x307477,_0xfaf5a3);}export var CacheFileType;(function(_0x1fbcee){var _0x5b80b8=_0x4451,_0x2e85a8={'mCdzW':_0x5b80b8(0x1a4),'OVpkP':_0x5b80b8(0x1a8),'PyaMt':_0x5b80b8(0x1a1),'ISUau':'DOCUMENT','GCvzO':_0x5b80b8(0x1ab)};_0x1fbcee[_0x1fbcee[_0x2e85a8[_0x5b80b8(0x1a0)]]=0x0]=_0x2e85a8[_0x5b80b8(0x1a0)],_0x1fbcee[_0x1fbcee[_0x2e85a8[_0x5b80b8(0x1a5)]]=0x1]=_0x2e85a8['OVpkP'],_0x1fbcee[_0x1fbcee['AUDIO']=0x2]=_0x2e85a8[_0x5b80b8(0x1b1)],_0x1fbcee[_0x1fbcee[_0x2e85a8['ISUau']]=0x3]=_0x2e85a8[_0x5b80b8(0x1aa)],_0x1fbcee[_0x1fbcee[_0x2e85a8['GCvzO']]=0x4]=_0x2e85a8[_0x5b80b8(0x1a9)];}(CacheFileType||(CacheFileType={}))); \ No newline at end of file +function _0x22fc(){var _0x4d430e=['45XELvbK','6788540HQOXCN','2XmaNLL','split','51879exTaZG','IMAGE','1412480mnodbb','VIDEO','UbuRT','DOCUMENT','597250FdatNd','1|0|3|2|4','21IKEAhc','188VwRcwM','1055312EbEGTb','320668VyoCRL','OhEUm','RQbtu','1718616LXbHri'];_0x22fc=function(){return _0x4d430e;};return _0x22fc();}(function(_0xe5ad98,_0x80be88){var _0x2fa55e=_0x4d96,_0x47c51c=_0xe5ad98();while(!![]){try{var _0x43c362=parseInt(_0x2fa55e(0x183))/0x1*(parseInt(_0x2fa55e(0x17d))/0x2)+-parseInt(_0x2fa55e(0x185))/0x3*(-parseInt(_0x2fa55e(0x17b))/0x4)+-parseInt(_0x2fa55e(0x178))/0x5+-parseInt(_0x2fa55e(0x180))/0x6+parseInt(_0x2fa55e(0x17a))/0x7*(-parseInt(_0x2fa55e(0x17c))/0x8)+-parseInt(_0x2fa55e(0x181))/0x9*(-parseInt(_0x2fa55e(0x174))/0xa)+-parseInt(_0x2fa55e(0x182))/0xb;if(_0x43c362===_0x80be88)break;else _0x47c51c['push'](_0x47c51c['shift']());}catch(_0x40aeda){_0x47c51c['push'](_0x47c51c['shift']());}}}(_0x22fc,0x66c2f));function _0x4d96(_0x54d519,_0xba9979){var _0x22fcd4=_0x22fc();return _0x4d96=function(_0x4d9696,_0x21318f){_0x4d9696=_0x4d9696-0x173;var _0x566dfb=_0x22fcd4[_0x4d9696];return _0x566dfb;},_0x4d96(_0x54d519,_0xba9979);};export var CacheFileType;(function(_0x169e50){var _0x50191d=_0x4d96,_0x4c3a6c={'qcPYE':_0x50191d(0x179),'vjxIe':'VIDEO','UbuRT':_0x50191d(0x173),'CKxqJ':'DOCUMENT','OhEUm':'AUDIO','RQbtu':'OTHER'},_0x145558=_0x4c3a6c['qcPYE'][_0x50191d(0x184)]('|'),_0x46671d=0x0;while(!![]){switch(_0x145558[_0x46671d++]){case'0':_0x169e50[_0x169e50[_0x50191d(0x175)]=0x1]=_0x4c3a6c['vjxIe'];continue;case'1':_0x169e50[_0x169e50[_0x4c3a6c[_0x50191d(0x176)]]=0x0]=_0x50191d(0x173);continue;case'2':_0x169e50[_0x169e50[_0x4c3a6c['CKxqJ']]=0x3]=_0x50191d(0x177);continue;case'3':_0x169e50[_0x169e50[_0x4c3a6c[_0x50191d(0x17e)]]=0x2]=_0x4c3a6c[_0x50191d(0x17e)];continue;case'4':_0x169e50[_0x169e50[_0x4c3a6c[_0x50191d(0x17f)]]=0x4]=_0x4c3a6c[_0x50191d(0x17f)];continue;}break;}}(CacheFileType||(CacheFileType={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/constructor.js b/src/core.lib/src/entities/constructor.js index 32100fec..ea1a6ec4 100644 --- a/src/core.lib/src/entities/constructor.js +++ b/src/core.lib/src/entities/constructor.js @@ -1 +1 @@ -const _0x1f503b=_0x1c0b;(function(_0x1af77b,_0x3a5a24){const _0x40ccb4=_0x1c0b,_0x1aa633=_0x1af77b();while(!![]){try{const _0x1ddad7=-parseInt(_0x40ccb4(0x154))/0x1+parseInt(_0x40ccb4(0x14f))/0x2+-parseInt(_0x40ccb4(0x137))/0x3+-parseInt(_0x40ccb4(0x178))/0x4*(-parseInt(_0x40ccb4(0x167))/0x5)+parseInt(_0x40ccb4(0x13d))/0x6+-parseInt(_0x40ccb4(0x145))/0x7+parseInt(_0x40ccb4(0x180))/0x8*(-parseInt(_0x40ccb4(0x151))/0x9);if(_0x1ddad7===_0x3a5a24)break;else _0x1aa633['push'](_0x1aa633['shift']());}catch(_0x5c60c0){_0x1aa633['push'](_0x1aa633['shift']());}}}(_0x6b71,0x74a78));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x5b71bb}from'node:fs';import _0x248c92 from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';function _0x6b71(){const _0x420d97=['yXAgN','height','gif','mp4','3920796sLpOhW','KUoYq','PIC','join','ZbiwR','pic','set','oqQtj','3338573EqbMLW','dCGaR','ftBmf','toString','vPaIO','[包剪锤]','file','MLVFi','BPsWz','TEXT','1551970kegfGe','catch','423kdKJJL','dirname','文件异常,大小为0','219100mAgdjP','MFACE','nTzJD','MARKDOWN','ARK','UOHGt','FILE','then','cVcVy','PTT','dice','stringify','cGhMv','视频信息','notAt','error','copyFile','RFSkO','sep','3271510GZWoom','normal','[商城表情]','width','unlink','bPfJo','normal2','string','ZyoOA','CoLzM','replace','screenshots','uploadFile','face','FstGv','rps','FACE','4CZSIPK','text','writeFile','QREPv','reply','RPS','ZbeTY','图片信息','121784rQvovC','size','获取视频封面失败,使用默认封面','get','qQFGr','kIUsD','time','ptt','getImageSize','语音转换失败,\x20请检查语音文件是否正常','583251DZWsEH','ark'];_0x6b71=function(){return _0x420d97;};return _0x6b71();}import{encodeSilk}from'@/common/utils/audio';export const mFaceCache=new Map();function _0x1c0b(_0x47171c,_0x990c8b){const _0x6b7190=_0x6b71();return _0x1c0b=function(_0x1c0b12,_0x4471cd){_0x1c0b12=_0x1c0b12-0x131;let _0x21f57f=_0x6b7190[_0x1c0b12];return _0x21f57f;},_0x1c0b(_0x47171c,_0x990c8b);}export class SendMsgElementConstructor{static[_0x1f503b(0x179)](_0xc07b2a){const _0x5e778f=_0x1f503b;return{'elementType':ElementType[_0x5e778f(0x14e)],'elementId':'','textElement':{'content':_0xc07b2a,'atType':AtType[_0x5e778f(0x162)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x5f2d6e,_0x401ea2,_0x5b8afb,_0xea87da){const _0x4ec479=_0x1f503b;return{'elementType':ElementType[_0x4ec479(0x14e)],'elementId':'','textElement':{'content':'@'+_0xea87da,'atType':_0x5b8afb,'atUid':_0x5f2d6e,'atTinyId':'','atNtUid':_0x401ea2}};}static[_0x1f503b(0x17c)](_0x46ce73,_0x387ec0,_0x5063b6,_0xee1b56){return{'elementType':ElementType['REPLY'],'elementId':'','replyElement':{'replayMsgSeq':_0x46ce73,'replayMsgId':_0x387ec0,'senderUin':_0x5063b6,'senderUinStr':_0xee1b56}};}static async[_0x1f503b(0x142)](_0x35f4cf,_0x977618='',_0x46557a=0x0){const _0x351ffd=_0x1f503b,_0x5d26b4={'CoLzM':_0x351ffd(0x153),'SCOxY':function(_0xceffbb,_0x169ded){return _0xceffbb(_0x169ded);},'ZyoOA':function(_0x2b7499,_0x517a6e,_0xe69c7b){return _0x2b7499(_0x517a6e,_0xe69c7b);},'BPsWz':_0x351ffd(0x17f)},{md5:_0x4844ca,fileName:_0x529bd0,path:_0x2d50bc,fileSize:_0x152c6d}=await NTQQFileApi[_0x351ffd(0x173)](_0x35f4cf,ElementType[_0x351ffd(0x13f)],_0x46557a);if(_0x152c6d===0x0)throw _0x5d26b4[_0x351ffd(0x170)];const _0x400e4f=await NTQQFileApi[_0x351ffd(0x135)](_0x35f4cf),_0x5c5bcf={'md5HexStr':_0x4844ca,'fileSize':_0x152c6d[_0x351ffd(0x148)](),'picWidth':_0x400e4f?.[_0x351ffd(0x16a)],'picHeight':_0x400e4f?.[_0x351ffd(0x13a)],'fileName':_0x529bd0,'sourcePath':_0x2d50bc,'original':!![],'picType':_0x5d26b4['SCOxY'](isGIF,_0x35f4cf)?PicType[_0x351ffd(0x13b)]:PicType['jpg'],'picSubType':_0x46557a,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x977618};return _0x5d26b4[_0x351ffd(0x16f)](logDebug,_0x5d26b4[_0x351ffd(0x14d)],_0x5c5bcf),{'elementType':ElementType['PIC'],'elementId':'','picElement':_0x5c5bcf};}static async[_0x1f503b(0x14b)](_0x2ddd2d,_0x39c7f5=''){const _0xd3a4ce=_0x1f503b,_0x11ba1c={'nTzJD':function(_0x2ee23,_0x59163f){return _0x2ee23===_0x59163f;},'yXAgN':_0xd3a4ce(0x153),'MLVFi':function(_0x43ec63,_0x13dd1e){return _0x43ec63||_0x13dd1e;}},{md5:_0x1eaa5c,fileName:_0x49f35e,path:_0x486609,fileSize:_0x4e9083}=await NTQQFileApi[_0xd3a4ce(0x173)](_0x2ddd2d,ElementType[_0xd3a4ce(0x15a)]);if(_0x11ba1c[_0xd3a4ce(0x156)](_0x4e9083,0x0))throw _0x11ba1c[_0xd3a4ce(0x139)];const _0x574fd0={'elementType':ElementType[_0xd3a4ce(0x15a)],'elementId':'','fileElement':{'fileName':_0x11ba1c[_0xd3a4ce(0x14c)](_0x39c7f5,_0x49f35e),'filePath':_0x486609,'fileSize':_0x4e9083['toString']()}};return _0x574fd0;}static async['video'](_0x5e13ce,_0x103d7e='',_0x152f6e=''){const _0x58b538=_0x1f503b,_0x192a1c={'bPfJo':function(_0x128741,_0x251d05){return _0x128741(_0x251d05);},'dCGaR':function(_0xe41e9a,_0x5afe2a,_0x660013){return _0xe41e9a(_0x5afe2a,_0x660013);},'ftBmf':'end','cGhMv':_0x58b538(0x163),'KUoYq':function(_0x3dbf56,_0x4b9e08){return _0x3dbf56+_0x4b9e08;},'kIUsD':function(_0x3e2e89,_0x807d7a){return _0x3e2e89===_0x807d7a;},'qQFGr':_0x58b538(0x13c),'dKAAk':function(_0x5bad4d,_0x5ce2f9,_0x1ace8c){return _0x5bad4d(_0x5ce2f9,_0x1ace8c);},'ZyRYD':_0x58b538(0x161),'QREPv':function(_0x39ff63,_0x4bd32e,_0x1b9a62){return _0x39ff63(_0x4bd32e,_0x1b9a62);},'cVcVy':'获取视频信息失败','oqQtj':function(_0x56891a,_0x3e0424){return _0x56891a||_0x3e0424;}},{fileName:_0x4d0ab5,path:_0x53ebf5,fileSize:_0x5c099f,md5:_0x2e05d9}=await NTQQFileApi[_0x58b538(0x173)](_0x5e13ce,ElementType['VIDEO']);if(_0x192a1c[_0x58b538(0x132)](_0x5c099f,0x0))throw _0x58b538(0x153);const _0x75c95f=_0x192a1c['bPfJo'](require,'path');let _0x41d6d2=_0x53ebf5[_0x58b538(0x171)](_0x75c95f[_0x58b538(0x166)]+'Ori'+_0x75c95f[_0x58b538(0x166)],_0x75c95f[_0x58b538(0x166)]+'Thumb'+_0x75c95f[_0x58b538(0x166)]);_0x41d6d2=_0x75c95f[_0x58b538(0x152)](_0x41d6d2);let _0x46ab4d={'width':0x780,'height':0x438,'time':0xf,'format':_0x192a1c[_0x58b538(0x131)],'size':_0x5c099f,'filePath':_0x5e13ce};try{_0x46ab4d=await _0x192a1c[_0x58b538(0x16c)](getVideoInfo,_0x53ebf5),_0x192a1c['dKAAk'](logDebug,_0x192a1c['ZyRYD'],_0x46ab4d);}catch(_0x2aba99){_0x192a1c[_0x58b538(0x17b)](logError,_0x192a1c[_0x58b538(0x15c)],_0x2aba99);}const _0x2fc381=new Promise((_0x4ae2b5,_0x469b5e)=>{const _0x352397=_0x58b538,_0x19aa3f={'FstGv':function(_0x31d4ca,_0x1e6446){const _0x323ec3=_0x1c0b;return _0x192a1c[_0x323ec3(0x16c)](_0x31d4ca,_0x1e6446);},'ZbeTY':function(_0x3221af,_0x56316b,_0x26f524){const _0x4f069e=_0x1c0b;return _0x192a1c[_0x4f069e(0x146)](_0x3221af,_0x56316b,_0x26f524);}},_0x559c23=_0x2e05d9+'_0.png',_0x47e4dc=_0x75c95f[_0x352397(0x140)](_0x41d6d2,_0x559c23);_0x192a1c[_0x352397(0x16c)](_0x248c92,_0x5e13ce)['on'](_0x192a1c[_0x352397(0x147)],()=>{})['on'](_0x192a1c[_0x352397(0x160)],_0x4cd2ac=>{const _0x29a7da=_0x352397;_0x19aa3f[_0x29a7da(0x17e)](logDebug,_0x29a7da(0x182),_0x4cd2ac),_0x152f6e?_0x5b71bb[_0x29a7da(0x164)](_0x152f6e,_0x47e4dc)['then'](()=>{const _0x43a92a=_0x29a7da;_0x19aa3f[_0x43a92a(0x175)](_0x4ae2b5,_0x47e4dc);})['catch'](_0x469b5e):_0x5b71bb[_0x29a7da(0x17a)](_0x47e4dc,defaultVideoThumb)['then'](()=>{_0x4ae2b5(_0x47e4dc);})[_0x29a7da(0x150)](_0x469b5e);})[_0x352397(0x172)]({'timestamps':[0x0],'filename':_0x559c23,'folder':_0x41d6d2,'size':_0x192a1c['KUoYq'](_0x46ab4d[_0x352397(0x16a)]+'x',_0x46ab4d['height'])})['on'](_0x192a1c[_0x352397(0x147)],()=>{const _0x13e82c=_0x352397;_0x19aa3f[_0x13e82c(0x175)](_0x4ae2b5,_0x47e4dc);});}),_0x39faab=new Map(),_0x1b3b67=await _0x2fc381,_0x471bc3=(await _0x5b71bb['stat'](_0x1b3b67))[_0x58b538(0x181)];_0x39faab[_0x58b538(0x143)](0x0,_0x1b3b67);const _0x5e74df=await _0x192a1c[_0x58b538(0x16c)](calculateFileMD5,_0x1b3b67),_0x5e201b={'elementType':ElementType['VIDEO'],'elementId':'','videoElement':{'fileName':_0x192a1c[_0x58b538(0x144)](_0x103d7e,_0x4d0ab5),'filePath':_0x53ebf5,'videoMd5':_0x2e05d9,'thumbMd5':_0x5e74df,'fileTime':_0x46ab4d[_0x58b538(0x133)],'thumbPath':_0x39faab,'thumbSize':_0x471bc3,'thumbWidth':_0x46ab4d[_0x58b538(0x16a)],'thumbHeight':_0x46ab4d[_0x58b538(0x13a)],'fileSize':_0x192a1c[_0x58b538(0x13e)]('',_0x5c099f)}};return _0x5e201b;}static async[_0x1f503b(0x134)](_0x46d86f){const _0x1aa409=_0x1f503b,_0x4bedad={'BQzlv':function(_0x11fcc5,_0x59530b){return _0x11fcc5(_0x59530b);},'RFSkO':_0x1aa409(0x136),'UOHGt':'文件异常,大小为0','ZbiwR':function(_0x3e20f3,_0x1e78d8){return _0x3e20f3||_0x1e78d8;}},{converted:_0x57ad07,path:_0x257980,duration:_0x430982}=await _0x4bedad['BQzlv'](encodeSilk,_0x46d86f);if(!_0x257980)throw _0x4bedad[_0x1aa409(0x165)];const {md5:_0x2a2016,fileName:_0x5b2673,path:_0x4b0894,fileSize:_0x3e9374}=await NTQQFileApi[_0x1aa409(0x173)](_0x257980,ElementType[_0x1aa409(0x15d)]);if(_0x3e9374===0x0)throw _0x4bedad[_0x1aa409(0x159)];return _0x57ad07&&_0x5b71bb[_0x1aa409(0x16b)](_0x257980)[_0x1aa409(0x15b)](),{'elementType':ElementType[_0x1aa409(0x15d)],'elementId':'','pttElement':{'fileName':_0x5b2673,'filePath':_0x4b0894,'md5HexStr':_0x2a2016,'fileSize':_0x3e9374,'duration':_0x4bedad[_0x1aa409(0x141)](_0x430982,0x1),'formatType':0x1,'voiceType':0x1,'voiceChangeType':0x0,'canConvert2Text':!![],'waveAmplitudes':[0x0,0x12,0x9,0x17,0x10,0x11,0x10,0xf,0x2c,0x11,0x18,0x14,0xe,0xf,0x11],'fileSubId':'','playState':0x1,'autoConvertText':0x0}};}static[_0x1f503b(0x174)](_0x1a4d4c){const _0x59b794=_0x1f503b,_0x56e41c={'LIiPG':function(_0x111c22,_0x3e47a6){return _0x111c22<_0x3e47a6;}};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':_0x1a4d4c,'faceType':_0x56e41c['LIiPG'](_0x1a4d4c,0xde)?FaceType[_0x59b794(0x168)]:FaceType[_0x59b794(0x16d)]}};}static['mface'](_0x1b28d8,_0x2e4976,_0x19b052,_0x133bba){const _0x4b7472=_0x1f503b,_0x47fa5b={'vPaIO':_0x4b7472(0x169)};return{'elementType':ElementType[_0x4b7472(0x155)],'marketFaceElement':{'emojiPackageId':_0x1b28d8,'emojiId':_0x2e4976,'key':_0x19b052,'faceName':_0x133bba||mFaceCache[_0x4b7472(0x183)](_0x2e4976)||_0x47fa5b[_0x4b7472(0x149)]}};}static[_0x1f503b(0x15e)](_0x1b6b81){const _0x44c80a=_0x1f503b;return{'elementType':ElementType[_0x44c80a(0x177)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x44c80a(0x15e)],'faceType':FaceType[_0x44c80a(0x15e)],'faceText':'[骰子]','packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x1f503b(0x176)](_0x17b286){const _0x43786d=_0x1f503b,_0x526dd0={'HiMKN':_0x43786d(0x14a)};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x43786d(0x17d)],'faceText':_0x526dd0['HiMKN'],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x1f503b(0x138)](_0x385786){const _0x47f466=_0x1f503b;return typeof _0x385786!==_0x47f466(0x16e)&&(_0x385786=JSON[_0x47f466(0x15f)](_0x385786)),{'elementType':ElementType[_0x47f466(0x158)],'elementId':'','arkElement':{'bytesData':_0x385786,'linkInfo':null,'subElementType':null}};}static['markdown'](_0x1f0396){const _0x36f4f8=_0x1f503b;return{'elementType':ElementType[_0x36f4f8(0x157)],'elementId':'','markdownElement':{'content':_0x1f0396}};}} \ No newline at end of file +const _0x146258=_0xb494;(function(_0x47c30a,_0x1ad4f6){const _0x2b59f6=_0xb494,_0x45c4b3=_0x47c30a();while(!![]){try{const _0x3d2c7b=-parseInt(_0x2b59f6(0x138))/0x1*(-parseInt(_0x2b59f6(0x16d))/0x2)+-parseInt(_0x2b59f6(0x17d))/0x3*(parseInt(_0x2b59f6(0x15a))/0x4)+parseInt(_0x2b59f6(0x147))/0x5+-parseInt(_0x2b59f6(0x164))/0x6*(-parseInt(_0x2b59f6(0x173))/0x7)+-parseInt(_0x2b59f6(0x159))/0x8+-parseInt(_0x2b59f6(0x169))/0x9+parseInt(_0x2b59f6(0x161))/0xa*(-parseInt(_0x2b59f6(0x167))/0xb);if(_0x3d2c7b===_0x1ad4f6)break;else _0x45c4b3['push'](_0x45c4b3['shift']());}catch(_0x1fc6d6){_0x45c4b3['push'](_0x45c4b3['shift']());}}}(_0x4015,0x61d9c));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x2549f8}from'node:fs';import _0x22985c from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';function _0x4015(){const _0x29cab8=['iBlKK','qqeAe','uploadFile','LapfL','PIC','2475775fVtsLA','ClJPZ','mface','width','PTT','notAt','gif','path','获取视频信息失败','UIePt','dirname','height','then','FACE','mZxJH','replace','UcKno','video','2928456kZuLVI','17244dZFTYw','mp4','REPLY','pic','HNwdQ','_0.png','获取视频封面失败,使用默认封面','115510baCbYD','LIAaB','getImageSize','3900630YSweUQ','VIDEO','face','77CYGfYu','uhmRJ','1520181WSWvQD','unlink','stringify','YntdL','2icCyCa','EAmWt','RiWYG','IvHdD','SYGcz','视频信息','7BAfsBk','jliqV','sep','ARK','get','ark','Thumb','MakbW','FILE','toString','342DDaQEI','set','pXqRP','TEXT','time','error','QswEy','dBSNH','string','ptt','dice','AAhpY','size','markdown','362813nFHxnQ','file','JMJDN','ddbPv','end','语音转换失败,\x20请检查语音文件是否正常','文件异常,大小为0','[包剪锤]','ugbwu','catch'];_0x4015=function(){return _0x29cab8;};return _0x4015();}import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';export const mFaceCache=new Map();function _0xb494(_0x41e3ab,_0x30ba52){const _0x40159a=_0x4015();return _0xb494=function(_0xb49440,_0x107e30){_0xb49440=_0xb49440-0x132;let _0x1de5ed=_0x40159a[_0xb49440];return _0x1de5ed;},_0xb494(_0x41e3ab,_0x30ba52);}export class SendMsgElementConstructor{static['text'](_0x5c5099){const _0x23e606=_0xb494;return{'elementType':ElementType[_0x23e606(0x180)],'elementId':'','textElement':{'content':_0x5c5099,'atType':AtType[_0x23e606(0x14c)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x1da6f8,_0x1f767f,_0x20f4cc,_0xbda6c8){return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':'@'+_0xbda6c8,'atType':_0x20f4cc,'atUid':_0x1da6f8,'atTinyId':'','atNtUid':_0x1f767f}};}static['reply'](_0x4b3d4c,_0xf22180,_0x15a78e,_0x108afb){const _0x37c4f8=_0xb494;return{'elementType':ElementType[_0x37c4f8(0x15c)],'elementId':'','replyElement':{'replayMsgSeq':_0x4b3d4c,'replayMsgId':_0xf22180,'senderUin':_0x15a78e,'senderUinStr':_0x108afb}};}static async[_0x146258(0x15d)](_0x51d8e8,_0x58e647='',_0x4d70f3=0x0){const _0x2a2ebd=_0x146258,_0x42c3f1={'MakbW':function(_0x456559,_0x348795){return _0x456559===_0x348795;},'oVOcE':_0x2a2ebd(0x13e),'uhmRJ':function(_0x50684c,_0x3ed9aa,_0x4efbb8){return _0x50684c(_0x3ed9aa,_0x4efbb8);},'UIePt':'图片信息'},{md5:_0x558582,fileName:_0x37f8bc,path:_0x2d18a5,fileSize:_0x1af6c3}=await NTQQFileApi[_0x2a2ebd(0x144)](_0x51d8e8,ElementType[_0x2a2ebd(0x146)],_0x4d70f3);if(_0x42c3f1[_0x2a2ebd(0x17a)](_0x1af6c3,0x0))throw _0x42c3f1['oVOcE'];const _0x4070c6=await NTQQFileApi[_0x2a2ebd(0x163)](_0x51d8e8),_0x249ade={'md5HexStr':_0x558582,'fileSize':_0x1af6c3['toString'](),'picWidth':_0x4070c6?.[_0x2a2ebd(0x14a)],'picHeight':_0x4070c6?.[_0x2a2ebd(0x152)],'fileName':_0x37f8bc,'sourcePath':_0x2d18a5,'original':!![],'picType':isGIF(_0x51d8e8)?PicType[_0x2a2ebd(0x14d)]:PicType['jpg'],'picSubType':_0x4d70f3,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x58e647};return _0x42c3f1[_0x2a2ebd(0x168)](logDebug,_0x42c3f1[_0x2a2ebd(0x150)],_0x249ade),{'elementType':ElementType[_0x2a2ebd(0x146)],'elementId':'','picElement':_0x249ade};}static async[_0x146258(0x139)](_0x1247f0,_0x5a2a4e=''){const _0x29890a=_0x146258,_0x456e3d={'LIAaB':function(_0x3bb18b,_0x43c13b){return _0x3bb18b===_0x43c13b;},'ClJPZ':_0x29890a(0x13e)},{md5:_0x54bdf2,fileName:_0x271061,path:_0x7c1921,fileSize:_0x1a2e5f}=await NTQQFileApi['uploadFile'](_0x1247f0,ElementType[_0x29890a(0x17b)]);if(_0x456e3d[_0x29890a(0x162)](_0x1a2e5f,0x0))throw _0x456e3d[_0x29890a(0x148)];const _0x30be2d={'elementType':ElementType[_0x29890a(0x17b)],'elementId':'','fileElement':{'fileName':_0x5a2a4e||_0x271061,'filePath':_0x7c1921,'fileSize':_0x1a2e5f[_0x29890a(0x17c)]()}};return _0x30be2d;}static async[_0x146258(0x158)](_0x498935,_0x57e1ab='',_0x34315a=''){const _0x3b6d89=_0x146258,_0x21cedb={'IvHdD':function(_0x12aada,_0x5d1d42){return _0x12aada(_0x5d1d42);},'mZxJH':function(_0x48a967,_0x130e9e){return _0x48a967(_0x130e9e);},'dBSNH':function(_0xda3101,_0xf6c825,_0x1bbf0e){return _0xda3101(_0xf6c825,_0x1bbf0e);},'UcKno':_0x3b6d89(0x160),'JMJDN':_0x3b6d89(0x182),'iBlKK':function(_0x53bd68,_0x58a269){return _0x53bd68+_0x58a269;},'EAmWt':function(_0x516ede,_0x2b0318){return _0x516ede+_0x2b0318;},'qqeAe':_0x3b6d89(0x13c),'UePGy':function(_0x4db94d,_0x328d41){return _0x4db94d===_0x328d41;},'UbWSr':_0x3b6d89(0x13e),'pXqRP':function(_0x3dbb99,_0x5289e6){return _0x3dbb99(_0x5289e6);},'iHeNy':_0x3b6d89(0x15b),'YntdL':function(_0x55a1e8,_0x4739a8,_0x5e5d11){return _0x55a1e8(_0x4739a8,_0x5e5d11);},'QswEy':_0x3b6d89(0x172),'ddbPv':_0x3b6d89(0x14f),'ybBTG':function(_0x275cc5,_0x2339c6){return _0x275cc5||_0x2339c6;},'ugbwu':function(_0x3c5cb1,_0x38e912){return _0x3c5cb1+_0x38e912;}},{fileName:_0x240814,path:_0x50649c,fileSize:_0x112ccd,md5:_0x2e31bb}=await NTQQFileApi[_0x3b6d89(0x144)](_0x498935,ElementType[_0x3b6d89(0x165)]);if(_0x21cedb['UePGy'](_0x112ccd,0x0))throw _0x21cedb['UbWSr'];const _0x5cdf46=_0x21cedb[_0x3b6d89(0x17f)](require,_0x3b6d89(0x14e));let _0x52068f=_0x50649c[_0x3b6d89(0x156)](_0x5cdf46['sep']+'Ori'+_0x5cdf46[_0x3b6d89(0x175)],_0x5cdf46['sep']+_0x3b6d89(0x179)+_0x5cdf46[_0x3b6d89(0x175)]);_0x52068f=_0x5cdf46[_0x3b6d89(0x151)](_0x52068f);let _0x403514={'width':0x780,'height':0x438,'time':0xf,'format':_0x21cedb['iHeNy'],'size':_0x112ccd,'filePath':_0x498935};try{_0x403514=await _0x21cedb['mZxJH'](getVideoInfo,_0x50649c),_0x21cedb[_0x3b6d89(0x16c)](logDebug,_0x21cedb[_0x3b6d89(0x183)],_0x403514);}catch(_0xfe614b){logError(_0x21cedb[_0x3b6d89(0x13b)],_0xfe614b);}const _0x18eecb=new Promise((_0x3800a3,_0x6c316b)=>{const _0x1ede3d=_0x3b6d89,_0x3b95ac={'LapfL':function(_0x4013b6,_0x11a08c){const _0x27f357=_0xb494;return _0x21cedb[_0x27f357(0x155)](_0x4013b6,_0x11a08c);}},_0x227f2e=_0x2e31bb+_0x1ede3d(0x15f),_0xd4510d=_0x5cdf46['join'](_0x52068f,_0x227f2e);_0x21cedb['IvHdD'](_0x22985c,_0x498935)['on']('end',()=>{})['on'](_0x21cedb[_0x1ede3d(0x13a)],_0x58e306=>{const _0x3b7779=_0x1ede3d,_0x54f426={'CCGVy':function(_0x154ca5,_0xc4e04a){const _0x3834b5=_0xb494;return _0x21cedb[_0x3834b5(0x170)](_0x154ca5,_0xc4e04a);},'SYGcz':function(_0x204bb3,_0x51fb2e){const _0x4601cf=_0xb494;return _0x21cedb[_0x4601cf(0x155)](_0x204bb3,_0x51fb2e);}};_0x21cedb[_0x3b7779(0x184)](logDebug,_0x21cedb[_0x3b7779(0x157)],_0x58e306),_0x34315a?_0x2549f8['copyFile'](_0x34315a,_0xd4510d)[_0x3b7779(0x153)](()=>{_0x54f426['CCGVy'](_0x3800a3,_0xd4510d);})[_0x3b7779(0x141)](_0x6c316b):_0x2549f8['writeFile'](_0xd4510d,defaultVideoThumb)['then'](()=>{const _0x46ac9a=_0x3b7779;_0x54f426[_0x46ac9a(0x171)](_0x3800a3,_0xd4510d);})[_0x3b7779(0x141)](_0x6c316b);})['screenshots']({'timestamps':[0x0],'filename':_0x227f2e,'folder':_0x52068f,'size':_0x21cedb[_0x1ede3d(0x142)](_0x21cedb[_0x1ede3d(0x16e)](_0x403514['width'],'x'),_0x403514[_0x1ede3d(0x152)])})['on'](_0x21cedb[_0x1ede3d(0x143)],()=>{const _0x3dd60c=_0x1ede3d;_0x3b95ac[_0x3dd60c(0x145)](_0x3800a3,_0xd4510d);});}),_0x1518f=new Map(),_0x30724b=await _0x18eecb,_0x14cdcb=(await _0x2549f8['stat'](_0x30724b))[_0x3b6d89(0x136)];_0x1518f[_0x3b6d89(0x17e)](0x0,_0x30724b);const _0x4ed317=await _0x21cedb[_0x3b6d89(0x170)](calculateFileMD5,_0x30724b),_0x5e4855={'elementType':ElementType['VIDEO'],'elementId':'','videoElement':{'fileName':_0x21cedb['ybBTG'](_0x57e1ab,_0x240814),'filePath':_0x50649c,'videoMd5':_0x2e31bb,'thumbMd5':_0x4ed317,'fileTime':_0x403514[_0x3b6d89(0x181)],'thumbPath':_0x1518f,'thumbSize':_0x14cdcb,'thumbWidth':_0x403514[_0x3b6d89(0x14a)],'thumbHeight':_0x403514[_0x3b6d89(0x152)],'fileSize':_0x21cedb[_0x3b6d89(0x140)]('',_0x112ccd)}};return _0x5e4855;}static async[_0x146258(0x133)](_0x4d8025){const _0x4d2eb6=_0x146258,_0x52a76d={'nNIVp':function(_0x367e0b,_0xc1b70c){return _0x367e0b(_0xc1b70c);},'jliqV':_0x4d2eb6(0x13d),'epGpM':function(_0x283a52,_0x22bf00){return _0x283a52===_0x22bf00;},'HNwdQ':'文件异常,大小为0','KLrSE':function(_0x177398,_0x303c77){return _0x177398||_0x303c77;}},{converted:_0x40529a,path:_0x58f9b9,duration:_0x1333c0}=await _0x52a76d['nNIVp'](encodeSilk,_0x4d8025);if(!_0x58f9b9)throw _0x52a76d[_0x4d2eb6(0x174)];const {md5:_0x3a1f53,fileName:_0x5661e0,path:_0x18dd27,fileSize:_0x453bb9}=await NTQQFileApi['uploadFile'](_0x58f9b9,ElementType[_0x4d2eb6(0x14b)]);if(_0x52a76d['epGpM'](_0x453bb9,0x0))throw _0x52a76d[_0x4d2eb6(0x15e)];return _0x40529a&&_0x2549f8[_0x4d2eb6(0x16a)](_0x58f9b9)[_0x4d2eb6(0x153)](),{'elementType':ElementType[_0x4d2eb6(0x14b)],'elementId':'','pttElement':{'fileName':_0x5661e0,'filePath':_0x18dd27,'md5HexStr':_0x3a1f53,'fileSize':_0x453bb9,'duration':_0x52a76d['KLrSE'](_0x1333c0,0x1),'formatType':0x1,'voiceType':0x1,'voiceChangeType':0x0,'canConvert2Text':!![],'waveAmplitudes':[0x0,0x12,0x9,0x17,0x10,0x11,0x10,0xf,0x2c,0x11,0x18,0x14,0xe,0xf,0x11],'fileSubId':'','playState':0x1,'autoConvertText':0x0}};}static[_0x146258(0x166)](_0x34fa4b){const _0x12d70d=_0x146258,_0x3e406={'AAhpY':function(_0x1a296e,_0x5d006b){return _0x1a296e<_0x5d006b;}};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':_0x34fa4b,'faceType':_0x3e406[_0x12d70d(0x135)](_0x34fa4b,0xde)?FaceType['normal']:FaceType['normal2']}};}static[_0x146258(0x149)](_0x174785,_0x438165,_0x1d999c,_0xf9098e){const _0xd026ce=_0x146258;return{'elementType':ElementType['MFACE'],'marketFaceElement':{'emojiPackageId':_0x174785,'emojiId':_0x438165,'key':_0x1d999c,'faceName':_0xf9098e||mFaceCache[_0xd026ce(0x177)](_0x438165)||'[商城表情]'}};}static[_0x146258(0x134)](_0x558a16){const _0xd49d6f=_0x146258,_0x36b4df={'RiWYG':'[骰子]'};return{'elementType':ElementType[_0xd49d6f(0x154)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0xd49d6f(0x134)],'faceType':FaceType[_0xd49d6f(0x134)],'faceText':_0x36b4df[_0xd49d6f(0x16f)],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static['rps'](_0x2652bf){const _0x242855=_0x146258;return{'elementType':ElementType[_0x242855(0x154)],'elementId':'','faceElement':{'faceIndex':FaceIndex['RPS'],'faceText':_0x242855(0x13f),'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x146258(0x178)](_0x2fc23e){const _0x4d350b=_0x146258,_0x3d149d={'MmDRh':_0x4d350b(0x132)};return typeof _0x2fc23e!==_0x3d149d['MmDRh']&&(_0x2fc23e=JSON[_0x4d350b(0x16b)](_0x2fc23e)),{'elementType':ElementType[_0x4d350b(0x176)],'elementId':'','arkElement':{'bytesData':_0x2fc23e,'linkInfo':null,'subElementType':null}};}static[_0x146258(0x137)](_0x242664){return{'elementType':ElementType['MARKDOWN'],'elementId':'','markdownElement':{'content':_0x242664}};}} \ No newline at end of file diff --git a/src/core.lib/src/entities/group.js b/src/core.lib/src/entities/group.js index d1e78a8e..eff138e7 100644 --- a/src/core.lib/src/entities/group.js +++ b/src/core.lib/src/entities/group.js @@ -1 +1 @@ -function _0x23e3(){var _0x3ee19a=['owner','338558nnrxXd','1729426hmaRnh','13173CnegZw','PvvPY','admin','712GHULCv','2312016otqxAS','normal','mnazV','2566900efBmXJ','KdKRL','6927936uVnIPg','618990kohlcK'];_0x23e3=function(){return _0x3ee19a;};return _0x23e3();}(function(_0x26e5be,_0x2ce26e){var _0x91c3c=_0x4f90,_0x33af5e=_0x26e5be();while(!![]){try{var _0x536100=-parseInt(_0x91c3c(0x7f))/0x1+parseInt(_0x91c3c(0x80))/0x2+-parseInt(_0x91c3c(0x81))/0x3*(parseInt(_0x91c3c(0x84))/0x4)+-parseInt(_0x91c3c(0x7d))/0x5+parseInt(_0x91c3c(0x85))/0x6+-parseInt(_0x91c3c(0x88))/0x7+parseInt(_0x91c3c(0x7c))/0x8;if(_0x536100===_0x2ce26e)break;else _0x33af5e['push'](_0x33af5e['shift']());}catch(_0x57e91a){_0x33af5e['push'](_0x33af5e['shift']());}}}(_0x23e3,0x7b62b));export var GroupMemberRole;function _0x4f90(_0x348cab,_0x3aef8a){var _0x23e366=_0x23e3();return _0x4f90=function(_0x4f90e1,_0x2d6e46){_0x4f90e1=_0x4f90e1-0x7c;var _0x5d5b39=_0x23e366[_0x4f90e1];return _0x5d5b39;},_0x4f90(_0x348cab,_0x3aef8a);}(function(_0x4a0e56){var _0xb1946c=_0x4f90,_0x1b6a83={'KdKRL':_0xb1946c(0x86),'mnazV':_0xb1946c(0x83),'PvvPY':_0xb1946c(0x7e)};_0x4a0e56[_0x4a0e56[_0x1b6a83[_0xb1946c(0x89)]]=0x2]=_0x1b6a83[_0xb1946c(0x89)],_0x4a0e56[_0x4a0e56[_0x1b6a83[_0xb1946c(0x87)]]=0x3]=_0x1b6a83[_0xb1946c(0x87)],_0x4a0e56[_0x4a0e56[_0x1b6a83[_0xb1946c(0x82)]]=0x4]=_0xb1946c(0x7e);}(GroupMemberRole||(GroupMemberRole={}))); \ No newline at end of file +function _0x2c91(){var _0x5ea471=['OvlUt','2ZQCKNY','25296ZoTfBZ','lZvEF','6831mrDMxv','owner','normal','XCFOu','10292464UvyPXf','10279512htkYML','1362IBniEV','3zlBqrL','12610750WiFxYq','966252HOcvcd','admin','7HGFPdA','7405IfupeS','1175344iiwCHd'];_0x2c91=function(){return _0x5ea471;};return _0x2c91();}(function(_0x56d277,_0x4c7989){var _0x469d4d=_0x1f81,_0x3c913c=_0x56d277();while(!![]){try{var _0xcde2d7=-parseInt(_0x469d4d(0x11b))/0x1*(-parseInt(_0x469d4d(0x115))/0x2)+parseInt(_0x469d4d(0x113))/0x3*(parseInt(_0x469d4d(0x119))/0x4)+-parseInt(_0x469d4d(0x118))/0x5*(parseInt(_0x469d4d(0x112))/0x6)+-parseInt(_0x469d4d(0x117))/0x7*(-parseInt(_0x469d4d(0x110))/0x8)+parseInt(_0x469d4d(0x111))/0x9+-parseInt(_0x469d4d(0x114))/0xa+parseInt(_0x469d4d(0x11e))/0xb*(-parseInt(_0x469d4d(0x11c))/0xc);if(_0xcde2d7===_0x4c7989)break;else _0x3c913c['push'](_0x3c913c['shift']());}catch(_0x5edd63){_0x3c913c['push'](_0x3c913c['shift']());}}}(_0x2c91,0xbf094));function _0x1f81(_0x304495,_0x3f2305){var _0x2c91c4=_0x2c91();return _0x1f81=function(_0x1f8187,_0x4f3636){_0x1f8187=_0x1f8187-0x10d;var _0x4b81a3=_0x2c91c4[_0x1f8187];return _0x4b81a3;},_0x1f81(_0x304495,_0x3f2305);}export var GroupMemberRole;(function(_0x4b2c93){var _0x1e86d9=_0x1f81,_0x3e94b9={'OvlUt':_0x1e86d9(0x10e),'XCFOu':_0x1e86d9(0x116),'lZvEF':_0x1e86d9(0x10d)};_0x4b2c93[_0x4b2c93[_0x3e94b9[_0x1e86d9(0x11a)]]=0x2]=_0x3e94b9[_0x1e86d9(0x11a)],_0x4b2c93[_0x4b2c93[_0x3e94b9[_0x1e86d9(0x10f)]]=0x3]=_0x3e94b9[_0x1e86d9(0x10f)],_0x4b2c93[_0x4b2c93[_0x3e94b9[_0x1e86d9(0x11d)]]=0x4]='owner';}(GroupMemberRole||(GroupMemberRole={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/index.js b/src/core.lib/src/entities/index.js index 6c29b208..fafa71ce 100644 --- a/src/core.lib/src/entities/index.js +++ b/src/core.lib/src/entities/index.js @@ -1 +1 @@ -(function(_0x1317b8,_0x100833){var _0x10fefc=_0x445f,_0x57e0ea=_0x1317b8();while(!![]){try{var _0x19e275=parseInt(_0x10fefc(0x1a6))/0x1+-parseInt(_0x10fefc(0x1aa))/0x2*(parseInt(_0x10fefc(0x1a5))/0x3)+parseInt(_0x10fefc(0x1ad))/0x4*(parseInt(_0x10fefc(0x1ac))/0x5)+parseInt(_0x10fefc(0x1a3))/0x6*(-parseInt(_0x10fefc(0x1af))/0x7)+-parseInt(_0x10fefc(0x1a9))/0x8*(parseInt(_0x10fefc(0x1ab))/0x9)+parseInt(_0x10fefc(0x1ae))/0xa*(parseInt(_0x10fefc(0x1a4))/0xb)+-parseInt(_0x10fefc(0x1a7))/0xc*(-parseInt(_0x10fefc(0x1a8))/0xd);if(_0x19e275===_0x100833)break;else _0x57e0ea['push'](_0x57e0ea['shift']());}catch(_0x34ffee){_0x57e0ea['push'](_0x57e0ea['shift']());}}}(_0x246e,0xd7cd9));function _0x445f(_0xd9a15b,_0x1ae5ad){var _0x246e78=_0x246e();return _0x445f=function(_0x445f6c,_0xcb099c){_0x445f6c=_0x445f6c-0x1a3;var _0x2829ae=_0x246e78[_0x445f6c];return _0x2829ae;},_0x445f(_0xd9a15b,_0x1ae5ad);}export*from'./user';export*from'./group';export*from'./msg';export*from'./notify';export*from'./cache';function _0x246e(){var _0x359e49=['3237453iCMnrF','685WjHgKm','3924rkndJn','8237560WBeHxP','2086lLqfTC','11118UgyTyb','11oSacFq','103554oslCLP','520713APRLFt','6876ZbCFyr','22854owdYjf','8mbevTn','40UkOMtY'];_0x246e=function(){return _0x359e49;};return _0x246e();}export*from'./constructor'; \ No newline at end of file +(function(_0x1353e7,_0x11c41e){var _0x6f47ed=_0x39a1,_0x4f8057=_0x1353e7();while(!![]){try{var _0x4865ad=-parseInt(_0x6f47ed(0xc8))/0x1+parseInt(_0x6f47ed(0xce))/0x2+-parseInt(_0x6f47ed(0xc7))/0x3*(parseInt(_0x6f47ed(0xcd))/0x4)+parseInt(_0x6f47ed(0xc9))/0x5+-parseInt(_0x6f47ed(0xc5))/0x6*(-parseInt(_0x6f47ed(0xca))/0x7)+-parseInt(_0x6f47ed(0xcc))/0x8+parseInt(_0x6f47ed(0xc6))/0x9*(-parseInt(_0x6f47ed(0xcb))/0xa);if(_0x4865ad===_0x11c41e)break;else _0x4f8057['push'](_0x4f8057['shift']());}catch(_0x7af3b2){_0x4f8057['push'](_0x4f8057['shift']());}}}(_0x3115,0xed89f));export*from'./user';function _0x3115(){var _0x53bd7c=['9068485MkkFOk','76461IQpFKu','100BuCGoy','4708592fXiMxa','476UfWJef','2918364rofxjx','438IZIfdX','308871QJzivo','7494hdZXeU','1868273xFpZyv'];_0x3115=function(){return _0x53bd7c;};return _0x3115();}export*from'./group';export*from'./msg';export*from'./notify';export*from'./cache';function _0x39a1(_0x5edd95,_0x1675d7){var _0x311527=_0x3115();return _0x39a1=function(_0x39a1a6,_0x245a14){_0x39a1a6=_0x39a1a6-0xc5;var _0x1772c4=_0x311527[_0x39a1a6];return _0x1772c4;},_0x39a1(_0x5edd95,_0x1675d7);}export*from'./constructor'; \ No newline at end of file diff --git a/src/core.lib/src/entities/msg.js b/src/core.lib/src/entities/msg.js index 8b16aefb..cf19635a 100644 --- a/src/core.lib/src/entities/msg.js +++ b/src/core.lib/src/entities/msg.js @@ -1 +1 @@ -function _0x2aab(){var _0x219ac0=['VHzYm','qHPmi','95mQFKDa','GjWJr','enkPX','jpg','TpHhJ','FILE','dice','AhCWx','joZEW','qspjq','atAll','ARK','gRRtg','vwpWu','VIDEO','77430cljVeV','notAt','PzKtI','MARKDOWN','normal2','kicked','tUXBi','TEXT','rVZTR','MMgfA','MFACE','group','4392936lYDKVp','1933332NtQDjz','194lAPWdH','temp','CwthK','KejFt','747JjXfYC','memberIncrease','RPS','bzDjm','nZOzi','MYRHF','oouKG','atUser','lmQVp','normal','7206521DewxVK','nDbez','MEMBER_NEW_TITLE','6577944koskzH','face','chatDevice','PTT','INVITE_NEW_MEMBER','2476SUdSla','gif','Fuyed','PggEu','PIC','Avhrt','197460KzPzvC','mgyqd','OLJyA'];_0x2aab=function(){return _0x219ac0;};return _0x2aab();}function _0x27c3(_0x35ed12,_0x589ca8){var _0x2aab3b=_0x2aab();return _0x27c3=function(_0x27c31a,_0x4eb88f){_0x27c31a=_0x27c31a-0xf9;var _0x140286=_0x2aab3b[_0x27c31a];return _0x140286;},_0x27c3(_0x35ed12,_0x589ca8);}(function(_0x5bef2e,_0x14e5e5){var _0xb7ac76=_0x27c3,_0x528d1f=_0x5bef2e();while(!![]){try{var _0x33a26d=parseInt(_0xb7ac76(0x11c))/0x1*(parseInt(_0xb7ac76(0x106))/0x2)+parseInt(_0xb7ac76(0x104))/0x3+-parseInt(_0xb7ac76(0x105))/0x4+parseInt(_0xb7ac76(0x127))/0x5*(-parseInt(_0xb7ac76(0x136))/0x6)+-parseInt(_0xb7ac76(0x114))/0x7+-parseInt(_0xb7ac76(0x117))/0x8+-parseInt(_0xb7ac76(0x10a))/0x9*(-parseInt(_0xb7ac76(0x122))/0xa);if(_0x33a26d===_0x14e5e5)break;else _0x528d1f['push'](_0x528d1f['shift']());}catch(_0x202727){_0x528d1f['push'](_0x528d1f['shift']());}}}(_0x2aab,0xba4f8));export var ElementType;(function(_0x2ba8f1){var _0x19dec1=_0x27c3,_0x4a81ab={'GjWJr':_0x19dec1(0xff),'enkPX':_0x19dec1(0x120),'joZEW':_0x19dec1(0x12c),'bzDjm':_0x19dec1(0x11a),'mgyqd':_0x19dec1(0x135),'oouKG':'FACE','vwpWu':'REPLY','PzKtI':_0x19dec1(0x102),'gRRtg':_0x19dec1(0xfb)};_0x2ba8f1[_0x2ba8f1[_0x4a81ab[_0x19dec1(0x128)]]=0x1]=_0x4a81ab[_0x19dec1(0x128)],_0x2ba8f1[_0x2ba8f1[_0x4a81ab[_0x19dec1(0x129)]]=0x2]=_0x4a81ab[_0x19dec1(0x129)],_0x2ba8f1[_0x2ba8f1[_0x4a81ab[_0x19dec1(0x12f)]]=0x3]=_0x19dec1(0x12c),_0x2ba8f1[_0x2ba8f1[_0x4a81ab[_0x19dec1(0x10d)]]=0x4]=_0x4a81ab[_0x19dec1(0x10d)],_0x2ba8f1[_0x2ba8f1[_0x4a81ab[_0x19dec1(0x123)]]=0x5]=_0x4a81ab[_0x19dec1(0x123)],_0x2ba8f1[_0x2ba8f1[_0x4a81ab[_0x19dec1(0x110)]]=0x6]=_0x4a81ab[_0x19dec1(0x110)],_0x2ba8f1[_0x2ba8f1[_0x4a81ab[_0x19dec1(0x134)]]=0x7]=_0x4a81ab['vwpWu'],_0x2ba8f1[_0x2ba8f1[_0x19dec1(0x132)]=0xa]=_0x19dec1(0x132),_0x2ba8f1[_0x2ba8f1[_0x4a81ab[_0x19dec1(0xfa)]]=0xb]=_0x4a81ab[_0x19dec1(0xfa)],_0x2ba8f1[_0x2ba8f1[_0x4a81ab[_0x19dec1(0x133)]]=0xe]='MARKDOWN';}(ElementType||(ElementType={})));export var PicType;(function(_0x11b1f5){var _0x3ea631=_0x27c3,_0x48c690={'rVZTR':_0x3ea631(0x11d),'nZOzi':_0x3ea631(0x12a)};_0x11b1f5[_0x11b1f5[_0x3ea631(0x11d)]=0x7d0]=_0x48c690[_0x3ea631(0x100)],_0x11b1f5[_0x11b1f5[_0x48c690['nZOzi']]=0x3e8]=_0x48c690[_0x3ea631(0x10e)];}(PicType||(PicType={})));export var PicSubType;(function(_0x539bdb){var _0x5e2a21=_0x27c3,_0x428682={'qHPmi':_0x5e2a21(0x113),'VHzYm':_0x5e2a21(0x118)};_0x539bdb[_0x539bdb[_0x5e2a21(0x113)]=0x0]=_0x428682[_0x5e2a21(0x126)],_0x539bdb[_0x539bdb[_0x428682['VHzYm']]=0x1]=_0x428682[_0x5e2a21(0x125)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x39dc6f){var _0x53a75c=_0x27c3,_0x1fd64c={'KejFt':_0x53a75c(0xf9),'Fuyed':_0x53a75c(0x131),'TpHhJ':'atUser'};_0x39dc6f[_0x39dc6f[_0x53a75c(0xf9)]=0x0]=_0x1fd64c[_0x53a75c(0x109)],_0x39dc6f[_0x39dc6f[_0x1fd64c[_0x53a75c(0x11e)]]=0x1]=_0x1fd64c[_0x53a75c(0x11e)],_0x39dc6f[_0x39dc6f[_0x53a75c(0x111)]=0x2]=_0x1fd64c[_0x53a75c(0x12b)];}(AtType||(AtType={})));export var ChatType;(function(_0x5c747d){var _0x264ce9=_0x27c3,_0x3b66ec={'nDbez':'friend','CwthK':'group','yKfAB':_0x264ce9(0x119),'MYRHF':_0x264ce9(0x107)};_0x5c747d[_0x5c747d[_0x3b66ec[_0x264ce9(0x115)]]=0x1]=_0x3b66ec[_0x264ce9(0x115)],_0x5c747d[_0x5c747d[_0x3b66ec[_0x264ce9(0x108)]]=0x2]=_0x264ce9(0x103),_0x5c747d[_0x5c747d[_0x264ce9(0x119)]=0x8]=_0x3b66ec['yKfAB'],_0x5c747d[_0x5c747d[_0x3b66ec['MYRHF']]=0x64]=_0x3b66ec[_0x264ce9(0x10f)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST='https://gchat.qpic.cn';export const IMAGE_HTTP_HOST_NT='https://multimedia.nt.qq.com.cn';export var GrayTipElementSubType;(function(_0x23c5be){var _0x2a04ed=_0x27c3,_0x2aa066={'Avhrt':_0x2a04ed(0x11b),'PggEu':_0x2a04ed(0x116)};_0x23c5be[_0x23c5be[_0x2aa066['Avhrt']]=0xc]=_0x2aa066[_0x2a04ed(0x121)],_0x23c5be[_0x23c5be[_0x2aa066[_0x2a04ed(0x11f)]]=0x11]=_0x2aa066['PggEu'];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x414c40){var _0x40c217=_0x27c3,_0x2fb1db={'AhCWx':_0x40c217(0x113),'MMgfA':_0x40c217(0xfc),'lmQVp':_0x40c217(0x12d)};_0x414c40[_0x414c40[_0x2fb1db[_0x40c217(0x12e)]]=0x1]=_0x2fb1db[_0x40c217(0x12e)],_0x414c40[_0x414c40[_0x2fb1db['MMgfA']]=0x2]=_0x2fb1db[_0x40c217(0x101)],_0x414c40[_0x414c40[_0x2fb1db[_0x40c217(0x112)]]=0x3]=_0x2fb1db[_0x40c217(0x112)];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x445b07){var _0x306842=_0x27c3,_0x917f05={'OLJyA':_0x306842(0x12d),'ObHUr':'RPS'};_0x445b07[_0x445b07[_0x917f05['OLJyA']]=0x166]=_0x917f05[_0x306842(0x124)],_0x445b07[_0x445b07[_0x917f05['ObHUr']]=0x167]=_0x306842(0x10c);}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x39c806){var _0x493093=_0x27c3,_0x3610bd={'tUXBi':_0x493093(0x10b),'GZKXg':_0x493093(0xfd),'qspjq':'ban'};_0x39c806[_0x39c806[_0x3610bd[_0x493093(0xfe)]]=0x1]=_0x3610bd[_0x493093(0xfe)],_0x39c806[_0x39c806['kicked']=0x3]=_0x3610bd['GZKXg'],_0x39c806[_0x39c806[_0x3610bd['qspjq']]=0x8]=_0x3610bd[_0x493093(0x130)];}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file +var _0x2309f3=_0x4acc;(function(_0x4cc74c,_0x58427b){var _0x98373a=_0x4acc,_0x155133=_0x4cc74c();while(!![]){try{var _0x360281=parseInt(_0x98373a(0x1f0))/0x1+parseInt(_0x98373a(0x1db))/0x2*(parseInt(_0x98373a(0x1c0))/0x3)+parseInt(_0x98373a(0x1da))/0x4*(parseInt(_0x98373a(0x1c1))/0x5)+-parseInt(_0x98373a(0x1cd))/0x6*(-parseInt(_0x98373a(0x1d4))/0x7)+-parseInt(_0x98373a(0x1ef))/0x8+parseInt(_0x98373a(0x1dd))/0x9*(parseInt(_0x98373a(0x1be))/0xa)+-parseInt(_0x98373a(0x1ce))/0xb;if(_0x360281===_0x58427b)break;else _0x155133['push'](_0x155133['shift']());}catch(_0xbfc9be){_0x155133['push'](_0x155133['shift']());}}}(_0x5863,0x2f9f7));export var ElementType;(function(_0x4bd957){var _0x51d27a=_0x4acc,_0x10fbd9={'AokMK':'4|5|8|6|1|7|0|3|2|9','qRRGB':'REPLY','jfKyh':'VIDEO','yGPbL':_0x51d27a(0x1e5),'PkrSN':'ARK','bJemt':_0x51d27a(0x1f5),'fZSXO':_0x51d27a(0x1c8),'vehAW':_0x51d27a(0x1dc),'ScBip':_0x51d27a(0x1d3),'cwcpG':_0x51d27a(0x1c2),'ZVoRm':_0x51d27a(0x1f4)},_0x129b2f=_0x10fbd9[_0x51d27a(0x1cf)][_0x51d27a(0x1d6)]('|'),_0x34eda3=0x0;while(!![]){switch(_0x129b2f[_0x34eda3++]){case'0':_0x4bd957[_0x4bd957[_0x10fbd9[_0x51d27a(0x1c4)]]=0x7]=_0x10fbd9[_0x51d27a(0x1c4)];continue;case'1':_0x4bd957[_0x4bd957[_0x51d27a(0x1f1)]=0x5]=_0x10fbd9[_0x51d27a(0x1d9)];continue;case'2':_0x4bd957[_0x4bd957[_0x10fbd9[_0x51d27a(0x1c3)]]=0xb]=_0x10fbd9[_0x51d27a(0x1c3)];continue;case'3':_0x4bd957[_0x4bd957['ARK']=0xa]=_0x10fbd9[_0x51d27a(0x1d1)];continue;case'4':_0x4bd957[_0x4bd957[_0x51d27a(0x1f5)]=0x1]=_0x10fbd9[_0x51d27a(0x1c7)];continue;case'5':_0x4bd957[_0x4bd957[_0x10fbd9['fZSXO']]=0x2]=_0x10fbd9[_0x51d27a(0x1e4)];continue;case'6':_0x4bd957[_0x4bd957[_0x10fbd9['vehAW']]=0x4]=_0x51d27a(0x1dc);continue;case'7':_0x4bd957[_0x4bd957[_0x51d27a(0x1d3)]=0x6]=_0x10fbd9[_0x51d27a(0x1d7)];continue;case'8':_0x4bd957[_0x4bd957[_0x10fbd9['cwcpG']]=0x3]=_0x10fbd9[_0x51d27a(0x1e2)];continue;case'9':_0x4bd957[_0x4bd957[_0x10fbd9[_0x51d27a(0x1f2)]]=0xe]=_0x10fbd9[_0x51d27a(0x1f2)];continue;}break;}}(ElementType||(ElementType={})));function _0x4acc(_0xfb174f,_0x3716bb){var _0x58630b=_0x5863();return _0x4acc=function(_0x4accca,_0x4e84ab){_0x4accca=_0x4accca-0x1b9;var _0x3cbe62=_0x58630b[_0x4accca];return _0x3cbe62;},_0x4acc(_0xfb174f,_0x3716bb);}export var PicType;(function(_0x39e8e3){var _0x119d82=_0x4acc,_0x10700c={'BFWBL':'gif','YQqyu':_0x119d82(0x1ed)};_0x39e8e3[_0x39e8e3[_0x10700c[_0x119d82(0x1d0)]]=0x7d0]='gif',_0x39e8e3[_0x39e8e3['jpg']=0x3e8]=_0x10700c[_0x119d82(0x1df)];}(PicType||(PicType={})));export var PicSubType;(function(_0x339b70){var _0x1ef533=_0x4acc,_0x13b9e8={'slLdr':_0x1ef533(0x1ea),'mvHfu':_0x1ef533(0x1ba)};_0x339b70[_0x339b70[_0x13b9e8[_0x1ef533(0x1b9)]]=0x0]=_0x13b9e8[_0x1ef533(0x1b9)],_0x339b70[_0x339b70[_0x1ef533(0x1ba)]=0x1]=_0x13b9e8[_0x1ef533(0x1ec)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x520916){var _0x42f39a=_0x4acc,_0x4d1e96={'GjNQY':_0x42f39a(0x1eb),'tYLRX':'atAll','GwLnY':'atUser'};_0x520916[_0x520916[_0x4d1e96[_0x42f39a(0x1e9)]]=0x0]=_0x4d1e96[_0x42f39a(0x1e9)],_0x520916[_0x520916[_0x4d1e96[_0x42f39a(0x1f7)]]=0x1]=_0x4d1e96[_0x42f39a(0x1f7)],_0x520916[_0x520916[_0x4d1e96[_0x42f39a(0x1e7)]]=0x2]=_0x4d1e96['GwLnY'];}(AtType||(AtType={})));function _0x5863(){var _0x4d37d1=['INVITE_NEW_MEMBER','split','ScBip','XzQhL','jfKyh','548mhKkvo','2MIWhAA','PTT','117ZyKOIM','temp','YQqyu','cshzY','MEMBER_NEW_TITLE','cwcpG','pbPPk','fZSXO','MFACE','chatDevice','GwLnY','XdcEQ','GjNQY','normal','notAt','mvHfu','jpg','normal2','39120WmWOvV','147361DakbLv','VIDEO','ZVoRm','RPS','MARKDOWN','TEXT','BjgDS','tYLRX','friend','slLdr','face','https://gchat.qpic.cn','ROXng','dice','291320JlsbfU','jcbvh','498561xgoxuN','10745gRIPKd','FILE','yGPbL','qRRGB','Kfbmk','ZcCeB','bJemt','PIC','PENJl','memberIncrease','KlfKm','qHaVy','6AmkIyQ','10131561uHhagB','AokMK','BFWBL','PkrSN','ban','FACE','940289Dkrzlu'];_0x5863=function(){return _0x4d37d1;};return _0x5863();}export var ChatType;(function(_0x7eaa96){var _0x3ae98d=_0x4acc,_0x15a0f7={'qHaVy':_0x3ae98d(0x1f8),'BjgDS':'group','cshzY':_0x3ae98d(0x1e6),'ROXng':_0x3ae98d(0x1de)};_0x7eaa96[_0x7eaa96[_0x15a0f7[_0x3ae98d(0x1cc)]]=0x1]=_0x15a0f7['qHaVy'],_0x7eaa96[_0x7eaa96[_0x15a0f7['BjgDS']]=0x2]=_0x15a0f7[_0x3ae98d(0x1f6)],_0x7eaa96[_0x7eaa96[_0x15a0f7[_0x3ae98d(0x1e0)]]=0x8]=_0x15a0f7[_0x3ae98d(0x1e0)],_0x7eaa96[_0x7eaa96[_0x15a0f7[_0x3ae98d(0x1bc)]]=0x64]=_0x15a0f7['ROXng'];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x2309f3(0x1bb);export const IMAGE_HTTP_HOST_NT='https://multimedia.nt.qq.com.cn';export var GrayTipElementSubType;(function(_0x46383b){var _0xfce0ce=_0x2309f3,_0x402129={'KlfKm':_0xfce0ce(0x1d5),'pbPPk':_0xfce0ce(0x1e1)};_0x46383b[_0x46383b[_0xfce0ce(0x1d5)]=0xc]=_0x402129[_0xfce0ce(0x1cb)],_0x46383b[_0x46383b[_0x402129['pbPPk']]=0x11]=_0x402129[_0xfce0ce(0x1e3)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x2bdc05){var _0x26f46d=_0x2309f3,_0x592cc0={'jcbvh':_0x26f46d(0x1ea),'ZcCeB':_0x26f46d(0x1ee),'XzQhL':'dice'};_0x2bdc05[_0x2bdc05[_0x26f46d(0x1ea)]=0x1]=_0x592cc0[_0x26f46d(0x1bf)],_0x2bdc05[_0x2bdc05[_0x592cc0[_0x26f46d(0x1c6)]]=0x2]=_0x592cc0[_0x26f46d(0x1c6)],_0x2bdc05[_0x2bdc05[_0x592cc0[_0x26f46d(0x1d8)]]=0x3]=_0x592cc0[_0x26f46d(0x1d8)];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x3b1a3e){var _0x2d4a99=_0x2309f3,_0x15640c={'kbbuB':_0x2d4a99(0x1bd),'JWpmi':_0x2d4a99(0x1f3)};_0x3b1a3e[_0x3b1a3e[_0x15640c['kbbuB']]=0x166]=_0x15640c['kbbuB'],_0x3b1a3e[_0x3b1a3e[_0x15640c['JWpmi']]=0x167]=_0x15640c['JWpmi'];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x1053ed){var _0x2c1bd7=_0x2309f3,_0x592e46={'PENJl':_0x2c1bd7(0x1ca),'XdcEQ':'kicked','Kfbmk':_0x2c1bd7(0x1d2)};_0x1053ed[_0x1053ed[_0x592e46[_0x2c1bd7(0x1c9)]]=0x1]=_0x2c1bd7(0x1ca),_0x1053ed[_0x1053ed[_0x592e46[_0x2c1bd7(0x1e8)]]=0x3]=_0x592e46[_0x2c1bd7(0x1e8)],_0x1053ed[_0x1053ed[_0x592e46[_0x2c1bd7(0x1c5)]]=0x8]=_0x592e46['Kfbmk'];}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/notify.js b/src/core.lib/src/entities/notify.js index 101e2c00..dbfa2e7e 100644 --- a/src/core.lib/src/entities/notify.js +++ b/src/core.lib/src/entities/notify.js @@ -1 +1 @@ -(function(_0x132a58,_0x402bd0){var _0x133b98=_0x1d56,_0xe39eac=_0x132a58();while(!![]){try{var _0x1eaa76=parseInt(_0x133b98(0x111))/0x1+-parseInt(_0x133b98(0x106))/0x2+-parseInt(_0x133b98(0x102))/0x3+-parseInt(_0x133b98(0xfe))/0x4*(-parseInt(_0x133b98(0x105))/0x5)+-parseInt(_0x133b98(0xf3))/0x6*(-parseInt(_0x133b98(0xfb))/0x7)+-parseInt(_0x133b98(0xfa))/0x8*(-parseInt(_0x133b98(0xf2))/0x9)+-parseInt(_0x133b98(0xf7))/0xa;if(_0x1eaa76===_0x402bd0)break;else _0xe39eac['push'](_0xe39eac['shift']());}catch(_0x462943){_0xe39eac['push'](_0xe39eac['shift']());}}}(_0x195c,0x53d21));export var GroupNotifyTypes;(function(_0x2223f0){var _0x16317c=_0x1d56,_0xdb539e={'nvTTk':'INVITED_JOIN','ZEypL':_0x16317c(0xf8),'BIiOC':'ADMIN_UNSET','ZRmPd':_0x16317c(0xf1),'PmFRx':_0x16317c(0xf9),'sibhe':_0x16317c(0xfd),'gpXLC':'JOIN_REQUEST','pYJzK':_0x16317c(0x10e)},_0x519d01=_0x16317c(0xf4)['split']('|'),_0x57f3d3=0x0;while(!![]){switch(_0x519d01[_0x57f3d3++]){case'0':_0x2223f0[_0x2223f0['INVITED_JOIN']=0x4]=_0xdb539e[_0x16317c(0x110)];continue;case'1':_0x2223f0[_0x2223f0[_0x16317c(0xf8)]=0xb]=_0xdb539e[_0x16317c(0x10c)];continue;case'2':_0x2223f0[_0x2223f0[_0xdb539e[_0x16317c(0x10b)]]=0xc]=_0xdb539e[_0x16317c(0x10b)];continue;case'3':_0x2223f0[_0x2223f0[_0xdb539e[_0x16317c(0xfc)]]=0xd]=_0xdb539e[_0x16317c(0xfc)];continue;case'4':_0x2223f0[_0x2223f0[_0xdb539e[_0x16317c(0xf5)]]=0x1]='INVITE_ME';continue;case'5':_0x2223f0[_0x2223f0[_0xdb539e[_0x16317c(0x10d)]]=0x8]=_0xdb539e['sibhe'];continue;case'6':_0x2223f0[_0x2223f0[_0xdb539e[_0x16317c(0x100)]]=0x7]=_0xdb539e[_0x16317c(0x100)];continue;case'7':_0x2223f0[_0x2223f0[_0x16317c(0x10e)]=0x9]=_0xdb539e[_0x16317c(0x10f)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x4e4535){var _0x5cbe1d=_0x1d56,_0x38c2b8={'QcKeQ':'IGNORE','EqrgW':'WAIT_HANDLE','jHHiW':'APPROVE','pfDZv':'REJECT'};_0x4e4535[_0x4e4535[_0x38c2b8[_0x5cbe1d(0xff)]]=0x0]=_0x38c2b8[_0x5cbe1d(0xff)],_0x4e4535[_0x4e4535[_0x38c2b8[_0x5cbe1d(0x103)]]=0x1]=_0x38c2b8[_0x5cbe1d(0x103)],_0x4e4535[_0x4e4535[_0x38c2b8['jHHiW']]=0x2]=_0x38c2b8[_0x5cbe1d(0xf6)],_0x4e4535[_0x4e4535[_0x38c2b8[_0x5cbe1d(0x109)]]=0x3]=_0x5cbe1d(0x101);}(GroupNotifyStatus||(GroupNotifyStatus={})));function _0x195c(){var _0x15e8d4=['PmFRx','jHHiW','2031660JsfezR','MEMBER_EXIT','INVITE_ME','32ndYqKo','119pTkFxv','ZRmPd','ADMIN_SET','20YfZtWC','QcKeQ','gpXLC','REJECT','2015469zcJgwE','EqrgW','approve','555020yidJxd','1193506DRiLBV','reject','mDRnb','pfDZv','VrQHm','BIiOC','ZEypL','sibhe','KICK_MEMBER','pYJzK','nvTTk','250334XifPQB','ADMIN_UNSET_OTHER','1512486FKzbJm','119118NzVWYM','4|0|6|5|7|1|2|3'];_0x195c=function(){return _0x15e8d4;};return _0x195c();}export var GroupRequestOperateTypes;function _0x1d56(_0x235fd3,_0xf890a3){var _0x195c6e=_0x195c();return _0x1d56=function(_0x1d5613,_0x18cf13){_0x1d5613=_0x1d5613-0xf1;var _0x1fb9c2=_0x195c6e[_0x1d5613];return _0x1fb9c2;},_0x1d56(_0x235fd3,_0xf890a3);}(function(_0x3608df){var _0x1ecf56=_0x1d56,_0x144afe={'VrQHm':_0x1ecf56(0x104),'mDRnb':_0x1ecf56(0x107)};_0x3608df[_0x3608df[_0x1ecf56(0x104)]=0x1]=_0x144afe[_0x1ecf56(0x10a)],_0x3608df[_0x3608df[_0x144afe[_0x1ecf56(0x108)]]=0x2]=_0x144afe[_0x1ecf56(0x108)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file +(function(_0x2743a7,_0x438a0b){var _0x39193b=_0x25ac,_0x3a31e4=_0x2743a7();while(!![]){try{var _0x4ccfa4=-parseInt(_0x39193b(0x19d))/0x1+-parseInt(_0x39193b(0x19b))/0x2*(parseInt(_0x39193b(0x1aa))/0x3)+parseInt(_0x39193b(0x1a0))/0x4+parseInt(_0x39193b(0x1ab))/0x5*(-parseInt(_0x39193b(0x1b5))/0x6)+parseInt(_0x39193b(0x1a6))/0x7*(parseInt(_0x39193b(0x1a7))/0x8)+-parseInt(_0x39193b(0x199))/0x9*(parseInt(_0x39193b(0x1a9))/0xa)+parseInt(_0x39193b(0x198))/0xb*(parseInt(_0x39193b(0x1a8))/0xc);if(_0x4ccfa4===_0x438a0b)break;else _0x3a31e4['push'](_0x3a31e4['shift']());}catch(_0x1bc049){_0x3a31e4['push'](_0x3a31e4['shift']());}}}(_0xe2fc,0xafd76));export var GroupNotifyTypes;(function(_0x23cdc4){var _0x2153ed=_0x25ac,_0x1e0eca={'AhuXW':_0x2153ed(0x1b3),'HSxTD':_0x2153ed(0x19a),'zHBgk':_0x2153ed(0x1ae),'unktC':_0x2153ed(0x1af),'NRZQG':'MEMBER_EXIT','uZoRI':_0x2153ed(0x1b0),'uePLG':_0x2153ed(0x1ad)};_0x23cdc4[_0x23cdc4[_0x2153ed(0x1a5)]=0x1]=_0x2153ed(0x1a5),_0x23cdc4[_0x23cdc4[_0x2153ed(0x1b3)]=0x4]=_0x1e0eca[_0x2153ed(0x1a1)],_0x23cdc4[_0x23cdc4[_0x1e0eca['HSxTD']]=0x7]=_0x1e0eca[_0x2153ed(0x1a2)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x1b2)]]=0x8]=_0x1e0eca[_0x2153ed(0x1b2)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x1ac)]]=0x9]=_0x1e0eca[_0x2153ed(0x1ac)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x197)]]=0xb]=_0x1e0eca[_0x2153ed(0x197)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x1b4)]]=0xc]=_0x1e0eca[_0x2153ed(0x1b4)],_0x23cdc4[_0x23cdc4[_0x1e0eca[_0x2153ed(0x19e)]]=0xd]=_0x2153ed(0x1ad);}(GroupNotifyTypes||(GroupNotifyTypes={})));function _0x25ac(_0x58855d,_0x1f2a0b){var _0xe2fc75=_0xe2fc();return _0x25ac=function(_0x25ac41,_0x4339be){_0x25ac41=_0x25ac41-0x197;var _0x1f941f=_0xe2fc75[_0x25ac41];return _0x1f941f;},_0x25ac(_0x58855d,_0x1f2a0b);}export var GroupNotifyStatus;(function(_0x65ee21){var _0x2a0e89=_0x25ac,_0x3827e5={'kyvxE':_0x2a0e89(0x19f),'HjyRg':_0x2a0e89(0x1a3),'kQkfm':'APPROVE','eXWXj':_0x2a0e89(0x1a4)};_0x65ee21[_0x65ee21[_0x2a0e89(0x19f)]=0x0]=_0x3827e5['kyvxE'],_0x65ee21[_0x65ee21[_0x2a0e89(0x1a3)]=0x1]=_0x3827e5['HjyRg'],_0x65ee21[_0x65ee21[_0x3827e5[_0x2a0e89(0x1b7)]]=0x2]=_0x3827e5[_0x2a0e89(0x1b7)],_0x65ee21[_0x65ee21[_0x2a0e89(0x1a4)]=0x3]=_0x3827e5['eXWXj'];}(GroupNotifyStatus||(GroupNotifyStatus={})));function _0xe2fc(){var _0x216561=['unktC','ADMIN_UNSET_OTHER','ADMIN_SET','KICK_MEMBER','ADMIN_UNSET','reject','zHBgk','INVITED_JOIN','uZoRI','5615580HthQyP','ODORW','kQkfm','NRZQG','11hdBIUc','108CZQaiG','JOIN_REQUEST','19144mdQcdy','FYPDr','420103TPEuZV','uePLG','IGNORE','1541716MYGJKG','AhuXW','HSxTD','WAIT_HANDLE','REJECT','INVITE_ME','371mgVCRW','102624FhsaOu','18822120ABhULr','153530mmcwjt','117JNdBnF','5pIYWXG'];_0xe2fc=function(){return _0x216561;};return _0xe2fc();}export var GroupRequestOperateTypes;(function(_0x5057ed){var _0xea7a7f=_0x25ac,_0x18ad98={'ODORW':'approve','FYPDr':_0xea7a7f(0x1b1)};_0x5057ed[_0x5057ed[_0x18ad98['ODORW']]=0x1]=_0x18ad98[_0xea7a7f(0x1b6)],_0x5057ed[_0x5057ed[_0x18ad98[_0xea7a7f(0x19c)]]=0x2]=_0xea7a7f(0x1b1);}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/user.js b/src/core.lib/src/entities/user.js index 98fedf52..8ca50d5e 100644 --- a/src/core.lib/src/entities/user.js +++ b/src/core.lib/src/entities/user.js @@ -1 +1 @@ -(function(_0x18fc68,_0x6aa73c){var _0x3162a9=_0x2801,_0x32053a=_0x18fc68();while(!![]){try{var _0x5565c7=-parseInt(_0x3162a9(0xa8))/0x1+parseInt(_0x3162a9(0xae))/0x2+-parseInt(_0x3162a9(0xab))/0x3+-parseInt(_0x3162a9(0xa9))/0x4+-parseInt(_0x3162a9(0xaa))/0x5+parseInt(_0x3162a9(0xb2))/0x6*(-parseInt(_0x3162a9(0xaf))/0x7)+-parseInt(_0x3162a9(0xa6))/0x8*(-parseInt(_0x3162a9(0xa7))/0x9);if(_0x5565c7===_0x6aa73c)break;else _0x32053a['push'](_0x32053a['shift']());}catch(_0x599bb1){_0x32053a['push'](_0x32053a['shift']());}}}(_0x3d1f,0x71002));function _0x2801(_0x1f502f,_0x379ec3){var _0x3d1f30=_0x3d1f();return _0x2801=function(_0x280145,_0x3c4f85){_0x280145=_0x280145-0xa6;var _0x4fd287=_0x3d1f30[_0x280145];return _0x4fd287;},_0x2801(_0x1f502f,_0x379ec3);}function _0x3d1f(){var _0x5d53b0=['28808fdbqOo','3042dXJfgZ','43039CuoCAd','838588OAviSW','607295bXhirY','1311138pVgcGA','unknown','wQgxV','1117244YsOlGc','7sQgjIg','female','male','3010314YCyrBw','WYwyf','IqGqH'];_0x3d1f=function(){return _0x5d53b0;};return _0x3d1f();}export var Sex;(function(_0x4c7db9){var _0x543c6c=_0x2801,_0x169c08={'IqGqH':_0x543c6c(0xb1),'wQgxV':_0x543c6c(0xb0),'WYwyf':_0x543c6c(0xac)};_0x4c7db9[_0x4c7db9[_0x543c6c(0xb1)]=0x1]=_0x169c08[_0x543c6c(0xb4)],_0x4c7db9[_0x4c7db9[_0x169c08[_0x543c6c(0xad)]]=0x2]=_0x169c08[_0x543c6c(0xad)],_0x4c7db9[_0x4c7db9[_0x169c08[_0x543c6c(0xb3)]]=0xff]=_0x543c6c(0xac);}(Sex||(Sex={}))); \ No newline at end of file +function _0x1202(){var _0x206667=['male','11271664QofUvI','6wGIlaY','nQZIc','515443EVUzbK','1226468wkKmSw','374568hebLHR','PExOs','1429211iicuwF','2893700dJAYBE','unknown','female','1072910WoEvlH'];_0x1202=function(){return _0x206667;};return _0x1202();}function _0x1995(_0x12b74f,_0x136525){var _0x120270=_0x1202();return _0x1995=function(_0x199598,_0x282ea2){_0x199598=_0x199598-0x1d6;var _0x26ae06=_0x120270[_0x199598];return _0x26ae06;},_0x1995(_0x12b74f,_0x136525);}(function(_0x31da6d,_0x1a8293){var _0x24b5c0=_0x1995,_0x335757=_0x31da6d();while(!![]){try{var _0x36f86d=-parseInt(_0x24b5c0(0x1da))/0x1+-parseInt(_0x24b5c0(0x1e2))/0x2+-parseInt(_0x24b5c0(0x1dc))/0x3+-parseInt(_0x24b5c0(0x1db))/0x4+parseInt(_0x24b5c0(0x1df))/0x5+parseInt(_0x24b5c0(0x1d8))/0x6*(-parseInt(_0x24b5c0(0x1de))/0x7)+parseInt(_0x24b5c0(0x1d7))/0x8;if(_0x36f86d===_0x1a8293)break;else _0x335757['push'](_0x335757['shift']());}catch(_0x1078ec){_0x335757['push'](_0x335757['shift']());}}}(_0x1202,0x4947a));export var Sex;(function(_0x3a3377){var _0x4f37d1=_0x1995,_0x1f6f58={'nQZIc':_0x4f37d1(0x1d6),'PExOs':_0x4f37d1(0x1e1)};_0x3a3377[_0x3a3377[_0x1f6f58[_0x4f37d1(0x1d9)]]=0x1]=_0x1f6f58[_0x4f37d1(0x1d9)],_0x3a3377[_0x3a3377[_0x1f6f58[_0x4f37d1(0x1dd)]]=0x2]='female',_0x3a3377[_0x3a3377['unknown']=0xff]=_0x4f37d1(0x1e0);}(Sex||(Sex={}))); \ No newline at end of file diff --git a/src/core.lib/src/external/hook.js b/src/core.lib/src/external/hook.js index 3fdd80cd..97b22d3b 100644 --- a/src/core.lib/src/external/hook.js +++ b/src/core.lib/src/external/hook.js @@ -1 +1 @@ -const _0x1aa9a6=_0x3255;function _0x3255(_0x588816,_0x4a317f){const _0x24d842=_0x24d8();return _0x3255=function(_0x3255dd,_0x1e12de){_0x3255dd=_0x3255dd-0x168;let _0x4f084f=_0x24d842[_0x3255dd];return _0x4f084f;},_0x3255(_0x588816,_0x4a317f);}(function(_0x4f0225,_0x1c11ce){const _0x20673f=_0x3255,_0x294d4b=_0x4f0225();while(!![]){try{const _0x12bb91=-parseInt(_0x20673f(0x16a))/0x1*(parseInt(_0x20673f(0x169))/0x2)+parseInt(_0x20673f(0x172))/0x3+-parseInt(_0x20673f(0x179))/0x4+parseInt(_0x20673f(0x176))/0x5+parseInt(_0x20673f(0x168))/0x6+parseInt(_0x20673f(0x173))/0x7*(parseInt(_0x20673f(0x16b))/0x8)+-parseInt(_0x20673f(0x177))/0x9*(parseInt(_0x20673f(0x178))/0xa);if(_0x12bb91===_0x1c11ce)break;else _0x294d4b['push'](_0x294d4b['shift']());}catch(_0x374d9){_0x294d4b['push'](_0x294d4b['shift']());}}}(_0x24d8,0xd0163));import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';import{qqPkgInfo}from'@/common/utils/QQBasicInfo';class HookApi{[_0x1aa9a6(0x17a)]=null;constructor(){const _0x228eeb=_0x1aa9a6,_0x13c59a={'kNfpV':function(_0x3bb3cc,_0x1b485b){return _0x3bb3cc(_0x1b485b);},'AmEfd':_0x228eeb(0x174),'fgwic':function(_0x56deaa,_0x673a25){return _0x56deaa(_0x673a25);},'bzRpm':_0x228eeb(0x16f)};try{_0x13c59a['kNfpV'](cpModule,_0x13c59a[_0x228eeb(0x16c)]),this[_0x228eeb(0x17a)]=_0x13c59a[_0x228eeb(0x17b)](require,_0x228eeb(0x175)),this[_0x228eeb(0x17a)]['HookRkey'](qqPkgInfo[_0x228eeb(0x171)]);}catch(_0x5f4e2f){logError(_0x13c59a['bzRpm'],_0x5f4e2f);}}[_0x1aa9a6(0x16d)](){const _0x157731=_0x1aa9a6;return this[_0x157731(0x17a)]?.[_0x157731(0x16e)]()||'';}[_0x1aa9a6(0x170)](){const _0x3b4501=_0x1aa9a6;return!!this[_0x3b4501(0x17a)];}}export const hookApi=new HookApi();function _0x24d8(){const _0x20be77=['moeHook','fgwic','2772192GalQUu','8llucxB','25973dlQObt','40tGhHAT','AmEfd','getRKey','GetRkey','加载\x20moehoo\x20失败','isAvailable','version','1220070iBuDQu','1119699zrSCsp','MoeHoo','./MoeHoo.node','3313995zUzcjf','9hpgmSW','3211590lDzVvB','4215728GMiHRJ'];_0x24d8=function(){return _0x20be77;};return _0x24d8();} \ No newline at end of file +const _0x346c92=_0x329e;(function(_0xc4b973,_0x9d70db){const _0x21ef07=_0x329e,_0x27a83c=_0xc4b973();while(!![]){try{const _0x45adad=parseInt(_0x21ef07(0x168))/0x1*(-parseInt(_0x21ef07(0x16b))/0x2)+-parseInt(_0x21ef07(0x16d))/0x3+-parseInt(_0x21ef07(0x167))/0x4*(-parseInt(_0x21ef07(0x173))/0x5)+parseInt(_0x21ef07(0x175))/0x6*(-parseInt(_0x21ef07(0x166))/0x7)+parseInt(_0x21ef07(0x176))/0x8+parseInt(_0x21ef07(0x16f))/0x9+-parseInt(_0x21ef07(0x169))/0xa*(-parseInt(_0x21ef07(0x171))/0xb);if(_0x45adad===_0x9d70db)break;else _0x27a83c['push'](_0x27a83c['shift']());}catch(_0x129046){_0x27a83c['push'](_0x27a83c['shift']());}}}(_0x2cde,0xe095b));function _0x2cde(){const _0x463d2b=['10qzDtdy','加载\x20moehoo\x20失败','2924654gGKZVi','./MoeHoo.node','3666402PPOyYs','Fckhf','10830888ZGYxRA','getRKey','1953688NBCohQ','moeHook','4403830KmAbhQ','YgeNl','2233194fsLVxZ','13718024zyBXgU','hSTPF','version','GetRkey','7untwXc','4KAzLLS','1TZHgjH'];_0x2cde=function(){return _0x463d2b;};return _0x2cde();}import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';function _0x329e(_0x113e50,_0x3cf53a){const _0x2cdedc=_0x2cde();return _0x329e=function(_0x329ea9,_0x277521){_0x329ea9=_0x329ea9-0x164;let _0x56d662=_0x2cdedc[_0x329ea9];return _0x56d662;},_0x329e(_0x113e50,_0x3cf53a);}import{qqPkgInfo}from'@/common/utils/QQBasicInfo';class HookApi{[_0x346c92(0x172)]=null;constructor(){const _0x5ea9e6=_0x346c92,_0x40d1ef={'mCQTO':function(_0x423c3b,_0x4bb068){return _0x423c3b(_0x4bb068);},'YgeNl':'MoeHoo','Veiwu':_0x5ea9e6(0x16c),'hSTPF':function(_0x3a52c1,_0x5d97c8,_0x3871cc){return _0x3a52c1(_0x5d97c8,_0x3871cc);},'Fckhf':_0x5ea9e6(0x16a)};try{_0x40d1ef['mCQTO'](cpModule,_0x40d1ef[_0x5ea9e6(0x174)]),this[_0x5ea9e6(0x172)]=require(_0x40d1ef['Veiwu']),this[_0x5ea9e6(0x172)]['HookRkey'](qqPkgInfo[_0x5ea9e6(0x164)]);}catch(_0x4e804d){_0x40d1ef[_0x5ea9e6(0x177)](logError,_0x40d1ef[_0x5ea9e6(0x16e)],_0x4e804d);}}[_0x346c92(0x170)](){const _0x4d5605=_0x346c92;return this['moeHook']?.[_0x4d5605(0x165)]()||'';}['isAvailable'](){const _0x572b68=_0x346c92;return!!this[_0x572b68(0x172)];}}export const hookApi=new HookApi(); \ No newline at end of file diff --git a/src/core.lib/src/index.js b/src/core.lib/src/index.js index fc63b60c..df77edba 100644 --- a/src/core.lib/src/index.js +++ b/src/core.lib/src/index.js @@ -1 +1 @@ -(function(_0xd6ce22,_0x20bb6f){var _0x3a34f8=_0x13b3,_0x1f451e=_0xd6ce22();while(!![]){try{var _0x1b73a6=-parseInt(_0x3a34f8(0x79))/0x1+parseInt(_0x3a34f8(0x7b))/0x2+-parseInt(_0x3a34f8(0x78))/0x3+-parseInt(_0x3a34f8(0x77))/0x4+-parseInt(_0x3a34f8(0x76))/0x5+parseInt(_0x3a34f8(0x7a))/0x6+parseInt(_0x3a34f8(0x75))/0x7*(parseInt(_0x3a34f8(0x74))/0x8);if(_0x1b73a6===_0x20bb6f)break;else _0x1f451e['push'](_0x1f451e['shift']());}catch(_0x1fb86c){_0x1f451e['push'](_0x1f451e['shift']());}}}(_0x311f,0x2a4ea));function _0x13b3(_0x2cd0f8,_0x53bacc){var _0x311ff4=_0x311f();return _0x13b3=function(_0x13b33c,_0x23e9ca){_0x13b33c=_0x13b33c-0x74;var _0x4df69e=_0x311ff4[_0x13b33c];return _0x4df69e;},_0x13b3(_0x2cd0f8,_0x53bacc);}import _0x1928da from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';function _0x311f(){var _0x2541e5=['80528KTvfit','21Ynbjky','1364800KqXAMI','4148CmXlIY','77694ENNqWX','42707hJsXCO','1426836nbKPbO','495776SqkzPR'];_0x311f=function(){return _0x2541e5;};return _0x311f();}export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x1928da as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file +(function(_0x5d83cb,_0x2d714d){var _0x58f0c9=_0x318b,_0x4b874e=_0x5d83cb();while(!![]){try{var _0x99167f=-parseInt(_0x58f0c9(0x1b0))/0x1*(parseInt(_0x58f0c9(0x1b4))/0x2)+parseInt(_0x58f0c9(0x1ab))/0x3*(parseInt(_0x58f0c9(0x1b2))/0x4)+-parseInt(_0x58f0c9(0x1b1))/0x5*(parseInt(_0x58f0c9(0x1ad))/0x6)+-parseInt(_0x58f0c9(0x1ae))/0x7+parseInt(_0x58f0c9(0x1af))/0x8+parseInt(_0x58f0c9(0x1b3))/0x9+-parseInt(_0x58f0c9(0x1ac))/0xa*(-parseInt(_0x58f0c9(0x1b5))/0xb);if(_0x99167f===_0x2d714d)break;else _0x4b874e['push'](_0x4b874e['shift']());}catch(_0x2b95bb){_0x4b874e['push'](_0x4b874e['shift']());}}}(_0x31c1,0xae4e6));import _0x336651 from'./wrapper';export*from'./adapters';function _0x31c1(){var _0x4cf778=['5QYsIwG','148bRFhul','5575446OhmMHj','13612QchNCS','4036131QtgXoQ','20031BVNgcD','30ZotJer','6362442Duycot','4915512CVVjKu','4237544QZddzQ','3nFrWlG'];_0x31c1=function(){return _0x4cf778;};return _0x31c1();}export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';function _0x318b(_0x213b9c,_0x943cff){var _0x31c174=_0x31c1();return _0x318b=function(_0x318bf7,_0x48dc1d){_0x318bf7=_0x318bf7-0x1ab;var _0x118ded=_0x31c174[_0x318bf7];return _0x118ded;},_0x318b(_0x213b9c,_0x943cff);}export{_0x336651 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js index e54b2e3c..2f57c4e0 100644 --- a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js +++ b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js @@ -1 +1 @@ -function _0x2584(){var _0x4b11de=['1464592PvKkDK','onDoubtBuddyReqUnreadNumChange','onCheckBuddySettingResult','onNickUpdated','onSmartInfos','2830494ZtezHB','5836593LNmokW','onDelBatchBuddyInfos','onDoubtBuddyReqChange','onBuddyInfoChange','onBlockChanged','812408Tokwfp','onBuddyDetailInfoChange','onBuddyReqUnreadCntChange','1677292EywXXx','onAddMeSettingChanged','137154NVNmqF','56pycxCb','1653381DpcgZl','95cAQEhu'];_0x2584=function(){return _0x4b11de;};return _0x2584();}var _0x61034a=_0x549a;function _0x549a(_0x12b79e,_0x10a918){var _0x258431=_0x2584();return _0x549a=function(_0x549ab7,_0x972f55){_0x549ab7=_0x549ab7-0x10b;var _0x2a0d93=_0x258431[_0x549ab7];return _0x2a0d93;},_0x549a(_0x12b79e,_0x10a918);}(function(_0x3ca374,_0x10919c){var _0x3394ad=_0x549a,_0x465754=_0x3ca374();while(!![]){try{var _0x471cec=parseInt(_0x3394ad(0x11a))/0x1+parseInt(_0x3394ad(0x11d))/0x2+parseInt(_0x3394ad(0x114))/0x3+-parseInt(_0x3394ad(0x10f))/0x4+parseInt(_0x3394ad(0x10e))/0x5*(parseInt(_0x3394ad(0x10b))/0x6)+-parseInt(_0x3394ad(0x115))/0x7+-parseInt(_0x3394ad(0x10c))/0x8*(parseInt(_0x3394ad(0x10d))/0x9);if(_0x471cec===_0x10919c)break;else _0x465754['push'](_0x465754['shift']());}catch(_0x3d3873){_0x465754['push'](_0x465754['shift']());}}}(_0x2584,0x848f3));export class BuddyListener{['onAddBuddyNeedVerify'](_0x28854f){}[_0x61034a(0x11e)](_0x1e7e1a){}['onAvatarUrlUpdated'](_0x3224f3){}[_0x61034a(0x119)](_0xbcba42){}[_0x61034a(0x11b)](_0x4be634){}[_0x61034a(0x118)](_0x538632){}['onBuddyListChange'](_0x2ebb8f){}['onBuddyRemarkUpdated'](_0x1745b7){}['onBuddyReqChange'](_0xe294d7){}[_0x61034a(0x11c)](_0x5f2325){}[_0x61034a(0x111)](_0x373c2c){}[_0x61034a(0x116)](_0x5b6131){}[_0x61034a(0x117)](_0x392fd0){}[_0x61034a(0x110)](_0x37e25e){}[_0x61034a(0x112)](_0x226773){}[_0x61034a(0x113)](_0x297d44){}['onSpacePermissionInfos'](_0x290681){}} \ No newline at end of file +var _0x4f2cc7=_0x4ebf;(function(_0x46ab7d,_0x121ff7){var _0x6ee1=_0x4ebf,_0xf8dbc=_0x46ab7d();while(!![]){try{var _0x4bfc72=-parseInt(_0x6ee1(0x1ca))/0x1+-parseInt(_0x6ee1(0x1c0))/0x2+parseInt(_0x6ee1(0x1bf))/0x3*(-parseInt(_0x6ee1(0x1cd))/0x4)+-parseInt(_0x6ee1(0x1c6))/0x5+parseInt(_0x6ee1(0x1d4))/0x6+-parseInt(_0x6ee1(0x1cb))/0x7*(-parseInt(_0x6ee1(0x1d0))/0x8)+-parseInt(_0x6ee1(0x1c9))/0x9*(-parseInt(_0x6ee1(0x1d3))/0xa);if(_0x4bfc72===_0x121ff7)break;else _0xf8dbc['push'](_0xf8dbc['shift']());}catch(_0x3f97df){_0xf8dbc['push'](_0xf8dbc['shift']());}}}(_0x8224,0x4035a));export class BuddyListener{[_0x4f2cc7(0x1ce)](_0x4c1995){}['onAddMeSettingChanged'](_0x371434){}[_0x4f2cc7(0x1c3)](_0x267208){}['onBlockChanged'](_0x93b589){}[_0x4f2cc7(0x1cf)](_0x153a60){}[_0x4f2cc7(0x1cc)](_0x41e0cb){}[_0x4f2cc7(0x1d2)](_0x4d533a){}[_0x4f2cc7(0x1be)](_0x1fe58d){}['onBuddyReqChange'](_0x6778e9){}[_0x4f2cc7(0x1bd)](_0x1bf056){}[_0x4f2cc7(0x1c2)](_0x373bda){}[_0x4f2cc7(0x1c4)](_0x166f71){}[_0x4f2cc7(0x1d1)](_0x3ad3c6){}[_0x4f2cc7(0x1c1)](_0x1b9621){}[_0x4f2cc7(0x1c7)](_0x30f646){}[_0x4f2cc7(0x1c5)](_0x2d0788){}[_0x4f2cc7(0x1c8)](_0x2700e6){}}function _0x4ebf(_0x5f55f4,_0x3777fd){var _0x8224ad=_0x8224();return _0x4ebf=function(_0x4ebf03,_0x3a6527){_0x4ebf03=_0x4ebf03-0x1bd;var _0x5bd0d8=_0x8224ad[_0x4ebf03];return _0x5bd0d8;},_0x4ebf(_0x5f55f4,_0x3777fd);}function _0x8224(){var _0x47c2a1=['3348177SeHSPn','onBuddyInfoChange','432844YdQZqB','onAddBuddyNeedVerify','onBuddyDetailInfoChange','8JcwoLl','onDoubtBuddyReqChange','onBuddyListChange','386890mymFVV','147552HTXhIJ','onBuddyReqUnreadCntChange','onBuddyRemarkUpdated','3yckNUt','818874jvzPqB','onDoubtBuddyReqUnreadNumChange','onCheckBuddySettingResult','onAvatarUrlUpdated','onDelBatchBuddyInfos','onSmartInfos','796185bJJEvw','onNickUpdated','onSpacePermissionInfos','189TcTSBD','375485MhaSIU'];_0x8224=function(){return _0x47c2a1;};return _0x8224();} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js index 5fe19cea..dfeff063 100644 --- a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js +++ b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js @@ -1 +1 @@ -function _0x8f47(_0x31a0eb,_0x3bf84b){var _0x1a551d=_0x1a55();return _0x8f47=function(_0x8f4791,_0x2986ed){_0x8f4791=_0x8f4791-0xb4;var _0xfe091a=_0x1a551d[_0x8f4791];return _0xfe091a;},_0x8f47(_0x31a0eb,_0x3bf84b);}var _0x173444=_0x8f47;(function(_0x2499a8,_0x488601){var _0x28f7ba=_0x8f47,_0x1841d3=_0x2499a8();while(!![]){try{var _0x9101d0=-parseInt(_0x28f7ba(0xbb))/0x1*(-parseInt(_0x28f7ba(0xbe))/0x2)+parseInt(_0x28f7ba(0xba))/0x3+-parseInt(_0x28f7ba(0xb9))/0x4+parseInt(_0x28f7ba(0xb6))/0x5*(parseInt(_0x28f7ba(0xc0))/0x6)+parseInt(_0x28f7ba(0xbd))/0x7*(-parseInt(_0x28f7ba(0xb5))/0x8)+-parseInt(_0x28f7ba(0xb8))/0x9+-parseInt(_0x28f7ba(0xbc))/0xa*(parseInt(_0x28f7ba(0xc2))/0xb);if(_0x9101d0===_0x488601)break;else _0x1841d3['push'](_0x1841d3['shift']());}catch(_0x299654){_0x1841d3['push'](_0x1841d3['shift']());}}}(_0x1a55,0x1bdf7));export class KernelFileAssistantListener{[_0x173444(0xc3)](..._0x17dfed){}[_0x173444(0xc1)](..._0x31094a){}[_0x173444(0xbf)](..._0x2d4f52){}[_0x173444(0xb4)](..._0x14b43e){}[_0x173444(0xb7)](..._0x8c37d7){}}function _0x1a55(){var _0x284abb=['14VtSmaV','2QxSMKb','onSessionChanged','12lNtGGn','onSessionListChanged','3597UTYpey','onFileStatusChanged','onFileListChanged','549832KsHUNq','346155kmfIsH','onFileSearch','1238661ZhVlZH','213200NwxPYK','671631hoKrCm','133843zYWHeX','1640NbLJPW'];_0x1a55=function(){return _0x284abb;};return _0x1a55();} \ No newline at end of file +var _0x35aec8=_0x4ade;function _0x53ad(){var _0x407005=['2654183weClxS','9994Hkictp','onFileStatusChanged','onFileSearch','10pnDQlo','onSessionListChanged','656589MuSgps','onSessionChanged','491495QBbaaF','4ALPhPd','6451857xHpKSg','302154urCmyg','2iRTDVW','701480FWUUpY'];_0x53ad=function(){return _0x407005;};return _0x53ad();}function _0x4ade(_0xc7819e,_0x3a28c9){var _0x53ad1f=_0x53ad();return _0x4ade=function(_0x4ade03,_0x1afb61){_0x4ade03=_0x4ade03-0x198;var _0x3b9122=_0x53ad1f[_0x4ade03];return _0x3b9122;},_0x4ade(_0xc7819e,_0x3a28c9);}(function(_0x8f747c,_0x55c43d){var _0x41ce32=_0x4ade,_0x285c6d=_0x8f747c();while(!![]){try{var _0x146bcb=parseInt(_0x41ce32(0x19d))/0x1+-parseInt(_0x41ce32(0x19a))/0x2*(parseInt(_0x41ce32(0x1a2))/0x3)+parseInt(_0x41ce32(0x1a5))/0x4*(parseInt(_0x41ce32(0x1a4))/0x5)+parseInt(_0x41ce32(0x199))/0x6+-parseInt(_0x41ce32(0x19c))/0x7+-parseInt(_0x41ce32(0x19b))/0x8+parseInt(_0x41ce32(0x198))/0x9*(parseInt(_0x41ce32(0x1a0))/0xa);if(_0x146bcb===_0x55c43d)break;else _0x285c6d['push'](_0x285c6d['shift']());}catch(_0x1b9aca){_0x285c6d['push'](_0x285c6d['shift']());}}}(_0x53ad,0x2e570));export class KernelFileAssistantListener{[_0x35aec8(0x19e)](..._0x55b5ae){}[_0x35aec8(0x1a1)](..._0x34c77b){}[_0x35aec8(0x1a3)](..._0x3d0bf1){}['onFileListChanged'](..._0x5dd3b0){}[_0x35aec8(0x19f)](..._0x372ac8){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelGroupListener.js b/src/core.lib/src/listeners/NodeIKernelGroupListener.js index 093f433d..b86c1d84 100644 --- a/src/core.lib/src/listeners/NodeIKernelGroupListener.js +++ b/src/core.lib/src/listeners/NodeIKernelGroupListener.js @@ -1 +1 @@ -function _0xceea(){var _0x3c5821=['18OjAWXp','onGroupExtListUpdate','onGroupSingleScreenNotifies:','onJoinGroupNoVerifyFlag','onShutUpMemberListChanged','onGroupArkInviteStateResult','onGetGroupBulletinListResult:','onGroupsMsgMaskResult','8329WfmEQk','OhwoW','onGroupNotifiesUnreadCountUpdated','onGroupDetailInfoChange','onShutUpMemberListChanged:','onGroupNotifiesUpdated:','PQGDe','onJoinGroupNotify','CVBnK','onGroupMemberLevelInfoChange:','onGroupsMsgMaskResult:','onGroupNotifiesUpdated','53802mWEwgH','onGroupListUpdate','jiwjO','ZhlzI','onGroupConfMemberChange','wSSsw','48fUgXoI','log','onGroupBulletinRichMediaDownloadComplete:','onGroupNotifiesUnreadCountUpdated:','onGroupBulletinRichMediaProgressUpdate:','onGroupFirstBulletinNotify','onGetGroupBulletinListResult','onSearchMemberChange','36340bHzqkn','onGroupMemberLevelInfoChange','onGroupBulletinRemindNotify:','onGroupAllInfoChange:','onMemberInfoChange:','onGroupArkInviteStateResult:','hhhqq','EOqUG','34cQpRDE','onGroupBulletinRichMediaDownloadComplete','onSearchMemberChange:','onGroupBulletinChange:','BVEWw','onGroupDetailInfoChange:','onGroupBulletinRichMediaProgressUpdate','onGroupAllInfoChange','538668CyogIT','onGroupBulletinRemindNotify','yIfkq','SXNPS','onGroupStatisticInfoChange:','dwxZV','onGroupStatisticInfoChange','onGroupListUpdate:','933kZLecj','onGroupBulletinChange','onMemberListChange','1121930Xbcyno','onMemberInfoChange','537097JUKDbS','onGroupFirstBulletinNotify:','jZbeW','3116tTrZlr'];_0xceea=function(){return _0x3c5821;};return _0xceea();}var _0x4e47e5=_0x1be4;(function(_0x501193,_0xca5d2e){var _0xa3d4e=_0x1be4,_0x33721e=_0x501193();while(!![]){try{var _0x5038b8=parseInt(_0xa3d4e(0x156))/0x1*(-parseInt(_0xa3d4e(0x178))/0x2)+-parseInt(_0xa3d4e(0x145))/0x3*(-parseInt(_0xa3d4e(0x14d))/0x4)+parseInt(_0xa3d4e(0x148))/0x5+-parseInt(_0xa3d4e(0x180))/0x6+-parseInt(_0xa3d4e(0x162))/0x7*(parseInt(_0xa3d4e(0x168))/0x8)+parseInt(_0xa3d4e(0x14e))/0x9*(-parseInt(_0xa3d4e(0x170))/0xa)+-parseInt(_0xa3d4e(0x14a))/0xb;if(_0x5038b8===_0xca5d2e)break;else _0x33721e['push'](_0x33721e['shift']());}catch(_0x44bae6){_0x33721e['push'](_0x33721e['shift']());}}}(_0xceea,0x207d1));export class GroupListener{[_0x4e47e5(0x171)](..._0x57f6f0){}[_0x4e47e5(0x16e)](..._0x2d7f7e){}[_0x4e47e5(0x17f)](..._0x822888){}[_0x4e47e5(0x146)](..._0x171fbb){}['onGroupBulletinRemindNotify'](..._0x41cce5){}[_0x4e47e5(0x153)](..._0x126b83){}['onGroupBulletinRichMediaDownloadComplete'](..._0x227e14){}[_0x4e47e5(0x166)](..._0x4b2862){}[_0x4e47e5(0x159)](..._0x183b2c){}[_0x4e47e5(0x14f)](..._0x28c5a7){}[_0x4e47e5(0x16d)](..._0x10a2ff){}[_0x4e47e5(0x163)](_0x496f03,_0x5e1491){}[_0x4e47e5(0x161)](_0x35357d,_0x7142b6){}[_0x4e47e5(0x17e)](..._0x52cafb){}[_0x4e47e5(0x158)](..._0x2db737){}['onGroupSingleScreenNotifies'](..._0xe64d99){}[_0x4e47e5(0x155)](..._0x3cf206){}['onGroupStatisticInfoChange'](..._0x271e3d){}['onJoinGroupNotify'](..._0x439987){}[_0x4e47e5(0x151)](..._0x25be82){}[_0x4e47e5(0x149)](_0x4c203d,_0x79a6e5,_0x50cfc3){}[_0x4e47e5(0x147)](_0x534631){}[_0x4e47e5(0x16f)](..._0x5a2d8c){}[_0x4e47e5(0x152)](..._0x44be59){}}function _0x1be4(_0x154208,_0x4c99f6){var _0xceea77=_0xceea();return _0x1be4=function(_0x1be425,_0x19c1ab){_0x1be425=_0x1be425-0x142;var _0x5ea7ea=_0xceea77[_0x1be425];return _0x5ea7ea;},_0x1be4(_0x154208,_0x4c99f6);}export class DebugGroupListener{[_0x4e47e5(0x171)](..._0x38a2b2){var _0x15196=_0x4e47e5,_0x5c2048={'OhwoW':_0x15196(0x15f)};console['log'](_0x5c2048[_0x15196(0x157)],..._0x38a2b2);}[_0x4e47e5(0x16e)](..._0x3b8a9e){var _0x596663=_0x4e47e5,_0xd2a689={'hhhqq':_0x596663(0x154)};console[_0x596663(0x169)](_0xd2a689[_0x596663(0x176)],..._0x3b8a9e);}[_0x4e47e5(0x17f)](..._0x53185a){var _0x3ae5c5=_0x4e47e5,_0x39854a={'iTjUW':_0x3ae5c5(0x173)};console['log'](_0x39854a['iTjUW'],..._0x53185a);}[_0x4e47e5(0x146)](..._0x4504f6){var _0x163a16=_0x4e47e5;console[_0x163a16(0x169)](_0x163a16(0x17b),..._0x4504f6);}[_0x4e47e5(0x181)](..._0x370768){var _0x2a4081=_0x4e47e5,_0x184d36={'ryASC':_0x2a4081(0x172)};console[_0x2a4081(0x169)](_0x184d36['ryASC'],..._0x370768);}['onGroupArkInviteStateResult'](..._0x529625){var _0x4d6c8b=_0x4e47e5,_0x4917db={'EOqUG':_0x4d6c8b(0x175)};console[_0x4d6c8b(0x169)](_0x4917db[_0x4d6c8b(0x177)],..._0x529625);}[_0x4e47e5(0x179)](..._0x4fa7c2){var _0x3f9fd3=_0x4e47e5,_0x598468={'jiwjO':_0x3f9fd3(0x16a)};console['log'](_0x598468[_0x3f9fd3(0x164)],..._0x4fa7c2);}[_0x4e47e5(0x166)](..._0x3f3794){var _0x3974a2=_0x4e47e5;console[_0x3974a2(0x169)]('onGroupConfMemberChange:',..._0x3f3794);}[_0x4e47e5(0x159)](..._0x5b5932){var _0x44275c=_0x4e47e5;console[_0x44275c(0x169)](_0x44275c(0x17d),..._0x5b5932);}[_0x4e47e5(0x14f)](..._0x207a58){var _0x2675bd=_0x4e47e5,_0x4374fd={'PQGDe':'onGroupExtListUpdate:'};console[_0x2675bd(0x169)](_0x4374fd[_0x2675bd(0x15c)],..._0x207a58);}[_0x4e47e5(0x16d)](..._0x2e5c38){var _0x307970=_0x4e47e5;console[_0x307970(0x169)](_0x307970(0x14b),..._0x2e5c38);}[_0x4e47e5(0x163)](..._0x52c484){var _0x18882c=_0x4e47e5,_0x38674f={'dwxZV':_0x18882c(0x144)};console[_0x18882c(0x169)](_0x38674f[_0x18882c(0x142)],..._0x52c484);}[_0x4e47e5(0x161)](..._0xbea2d0){var _0x578470=_0x4e47e5,_0x1370b2={'wSSsw':_0x578470(0x15b)};console[_0x578470(0x169)](_0x1370b2[_0x578470(0x167)],..._0xbea2d0);}[_0x4e47e5(0x17e)](..._0x5cedd1){var _0xc6a4e9=_0x4e47e5,_0x43e8b7={'UZTEW':_0xc6a4e9(0x16c)};console[_0xc6a4e9(0x169)](_0x43e8b7['UZTEW'],..._0x5cedd1);}[_0x4e47e5(0x158)](..._0x4552c8){var _0x40f475=_0x4e47e5,_0x5b563b={'CVBnK':_0x40f475(0x16b)};console['log'](_0x5b563b[_0x40f475(0x15e)],..._0x4552c8);}['onGroupSingleScreenNotifies'](..._0x19876c){var _0x4dedd2=_0x4e47e5;console[_0x4dedd2(0x169)](_0x4dedd2(0x150),..._0x19876c);}[_0x4e47e5(0x155)](..._0x3d69c3){var _0x27fc77=_0x4e47e5,_0x500183={'yIfkq':_0x27fc77(0x160)};console[_0x27fc77(0x169)](_0x500183[_0x27fc77(0x182)],..._0x3d69c3);}[_0x4e47e5(0x143)](..._0x1dc41e){var _0x711c2a=_0x4e47e5,_0x2fbec0={'SXNPS':_0x711c2a(0x184)};console[_0x711c2a(0x169)](_0x2fbec0[_0x711c2a(0x183)],..._0x1dc41e);}[_0x4e47e5(0x15d)](..._0x50bef3){var _0x3fb22b=_0x4e47e5,_0xc1a887={'BVEWw':'onJoinGroupNotify:'};console[_0x3fb22b(0x169)](_0xc1a887[_0x3fb22b(0x17c)],..._0x50bef3);}[_0x4e47e5(0x151)](..._0x4b0a5a){var _0x7eb841=_0x4e47e5;console[_0x7eb841(0x169)]('onJoinGroupNoVerifyFlag:',..._0x4b0a5a);}[_0x4e47e5(0x149)](_0x135757,_0x237ed0,_0x1da917){var _0x18988f=_0x4e47e5,_0x502048={'nvkXy':_0x18988f(0x174)};console[_0x18988f(0x169)](_0x502048['nvkXy'],_0x135757,_0x237ed0,_0x1da917);}[_0x4e47e5(0x147)](..._0x31a72e){var _0x41f9b4=_0x4e47e5,_0x184d83={'ZhlzI':'onMemberListChange:'};console[_0x41f9b4(0x169)](_0x184d83[_0x41f9b4(0x165)],..._0x31a72e);}[_0x4e47e5(0x16f)](..._0x1e561d){var _0x400709=_0x4e47e5,_0x5b3f26={'YTzax':_0x400709(0x17a)};console[_0x400709(0x169)](_0x5b3f26['YTzax'],..._0x1e561d);}[_0x4e47e5(0x152)](..._0x5117ab){var _0xd2e0e2=_0x4e47e5,_0x849bef={'jZbeW':_0xd2e0e2(0x15a)};console[_0xd2e0e2(0x169)](_0x849bef[_0xd2e0e2(0x14c)],..._0x5117ab);}} \ No newline at end of file +var _0x1eb23e=_0x3b45;(function(_0x5ce2d4,_0x5c5612){var _0x5351a5=_0x3b45,_0x5c54d1=_0x5ce2d4();while(!![]){try{var _0x55ab9c=parseInt(_0x5351a5(0xf0))/0x1+parseInt(_0x5351a5(0x112))/0x2+-parseInt(_0x5351a5(0x108))/0x3+parseInt(_0x5351a5(0x10c))/0x4+-parseInt(_0x5351a5(0xdc))/0x5*(parseInt(_0x5351a5(0xee))/0x6)+parseInt(_0x5351a5(0x105))/0x7*(parseInt(_0x5351a5(0xf2))/0x8)+parseInt(_0x5351a5(0xe4))/0x9*(-parseInt(_0x5351a5(0xd9))/0xa);if(_0x55ab9c===_0x5c5612)break;else _0x5c54d1['push'](_0x5c54d1['shift']());}catch(_0x4fb698){_0x5c54d1['push'](_0x5c54d1['shift']());}}}(_0x48b1,0x78c84));export class GroupListener{[_0x1eb23e(0xf1)](..._0x237161){}[_0x1eb23e(0xe1)](..._0x4bb77c){}[_0x1eb23e(0xea)](..._0x2038ba){}[_0x1eb23e(0x103)](..._0x86dfa0){}[_0x1eb23e(0x10e)](..._0x50fc29){}[_0x1eb23e(0x104)](..._0x2f5cc8){}[_0x1eb23e(0x111)](..._0x31e48d){}[_0x1eb23e(0x109)](..._0xf6058c){}['onGroupDetailInfoChange'](..._0x58962f){}[_0x1eb23e(0xf7)](..._0x3d9a30){}['onGroupFirstBulletinNotify'](..._0x10f632){}[_0x1eb23e(0xfa)](_0x16bea2,_0x29034b){}['onGroupNotifiesUpdated'](_0x32da95,_0x165284){}['onGroupBulletinRichMediaProgressUpdate'](..._0x598e22){}[_0x1eb23e(0xec)](..._0x3e323){}[_0x1eb23e(0x106)](..._0x392c45){}[_0x1eb23e(0xfb)](..._0x3d3151){}[_0x1eb23e(0x116)](..._0x7db697){}[_0x1eb23e(0xe9)](..._0x43974b){}[_0x1eb23e(0xe3)](..._0x55018c){}[_0x1eb23e(0xdd)](_0x27ef36,_0x3c4b06,_0x27f214){}[_0x1eb23e(0xed)](_0x23706d){}[_0x1eb23e(0x115)](..._0x4bc4a2){}[_0x1eb23e(0x101)](..._0xbd233e){}}function _0x3b45(_0x5c9d9a,_0x351704){var _0x48b133=_0x48b1();return _0x3b45=function(_0x3b455d,_0x59928e){_0x3b455d=_0x3b455d-0xd6;var _0x36f2f8=_0x48b133[_0x3b455d];return _0x36f2f8;},_0x3b45(_0x5c9d9a,_0x351704);}function _0x48b1(){var _0x9a0fe0=['onMemberInfoChange','onMemberInfoChange:','onGroupListUpdate:','onGroupBulletinRichMediaProgressUpdate','onGetGroupBulletinListResult','fHfCQ','onJoinGroupNoVerifyFlag','261urVQkC','onGroupFirstBulletinNotify:','onGroupDetailInfoChange:','onGroupDetailInfoChange','onGroupAllInfoChange:','onJoinGroupNotify','onGroupAllInfoChange','onGroupNotifiesUnreadCountUpdated:','onGroupNotifiesUnreadCountUpdated','onMemberListChange','9660kNqaXu','onGroupBulletinRichMediaDownloadComplete:','895067uMvrQy','onGroupMemberLevelInfoChange','15152vZZAXT','MTwhs','qFYWV','eCmKc','onJoinGroupNotify:','onGroupExtListUpdate','BLUzQ','onGroupExtListUpdate:','onGroupListUpdate','onGroupsMsgMaskResult','onSearchMemberChange:','onMemberListChange:','onGetGroupBulletinListResult:','ofpfH','HfYwj','onShutUpMemberListChanged','wXnZn','onGroupBulletinChange','onGroupArkInviteStateResult','1659VktPts','onGroupSingleScreenNotifies','fEget','800733gtHrCE','onGroupConfMemberChange','Hvwvb','onGroupBulletinRichMediaProgressUpdate:','756144ShAnLx','onGroupsMsgMaskResult:','onGroupBulletinRemindNotify','onJoinGroupNoVerifyFlag:','onShutUpMemberListChanged:','onGroupBulletinRichMediaDownloadComplete','255396XOSAUc','RFCCK','JEMvc','onSearchMemberChange','onGroupStatisticInfoChange','aJHpc','Ukxfb','onGroupNotifiesUpdated:','log','19660jujqJu','onGroupNotifiesUpdated','viGfn','2615fXoHiV'];_0x48b1=function(){return _0x9a0fe0;};return _0x48b1();}export class DebugGroupListener{[_0x1eb23e(0xf1)](..._0x20faed){var _0x3b64af=_0x1eb23e,_0x4567a0={'Ukxfb':'onGroupMemberLevelInfoChange:'};console[_0x3b64af(0xd8)](_0x4567a0[_0x3b64af(0xd6)],..._0x20faed);}['onGetGroupBulletinListResult'](..._0x2cf633){var _0x1fffcc=_0x1eb23e;console[_0x1fffcc(0xd8)](_0x1fffcc(0xfe),..._0x2cf633);}[_0x1eb23e(0xea)](..._0x1644ae){var _0x4d1652=_0x1eb23e,_0x2a7c8e={'qFYWV':_0x4d1652(0xe8)};console[_0x4d1652(0xd8)](_0x2a7c8e[_0x4d1652(0xf4)],..._0x1644ae);}['onGroupBulletinChange'](..._0x4ad35e){console['log']('onGroupBulletinChange:',..._0x4ad35e);}[_0x1eb23e(0x10e)](..._0x1b4803){var _0x56f2a2=_0x1eb23e,_0x1c2f3a={'NGYgK':'onGroupBulletinRemindNotify:'};console[_0x56f2a2(0xd8)](_0x1c2f3a['NGYgK'],..._0x1b4803);}[_0x1eb23e(0x104)](..._0xde0564){var _0x4bbb9f=_0x1eb23e,_0x20980a={'HfYwj':'onGroupArkInviteStateResult:'};console[_0x4bbb9f(0xd8)](_0x20980a[_0x4bbb9f(0x100)],..._0xde0564);}['onGroupBulletinRichMediaDownloadComplete'](..._0x22bb56){var _0x47431e=_0x1eb23e;console['log'](_0x47431e(0xef),..._0x22bb56);}[_0x1eb23e(0x109)](..._0x4654fc){var _0x3be3af=_0x1eb23e,_0x892cb={'RFCCK':'onGroupConfMemberChange:'};console[_0x3be3af(0xd8)](_0x892cb[_0x3be3af(0x113)],..._0x4654fc);}[_0x1eb23e(0xe7)](..._0x35f7a8){var _0xdb8d7=_0x1eb23e,_0x4f4322={'fEget':_0xdb8d7(0xe6)};console['log'](_0x4f4322[_0xdb8d7(0x107)],..._0x35f7a8);}[_0x1eb23e(0xf7)](..._0x2a9736){var _0x1139bc=_0x1eb23e,_0x2e37ca={'JEMvc':_0x1139bc(0xf9)};console[_0x1139bc(0xd8)](_0x2e37ca[_0x1139bc(0x114)],..._0x2a9736);}['onGroupFirstBulletinNotify'](..._0x2c246f){var _0x35c1ce=_0x1eb23e;console[_0x35c1ce(0xd8)](_0x35c1ce(0xe5),..._0x2c246f);}[_0x1eb23e(0xfa)](..._0x44aa8d){var _0x5ec5f0=_0x1eb23e,_0x2412ba={'MTwhs':_0x5ec5f0(0xdf)};console['log'](_0x2412ba[_0x5ec5f0(0xf3)],..._0x44aa8d);}[_0x1eb23e(0xda)](..._0x348c24){var _0x220e0c=_0x1eb23e,_0x50456a={'Hvwvb':_0x220e0c(0xd7)};console[_0x220e0c(0xd8)](_0x50456a[_0x220e0c(0x10a)],..._0x348c24);}[_0x1eb23e(0xe0)](..._0x6bf588){var _0x3619be=_0x1eb23e,_0x6b6093={'TSdVR':_0x3619be(0x10b)};console[_0x3619be(0xd8)](_0x6b6093['TSdVR'],..._0x6bf588);}[_0x1eb23e(0xec)](..._0x5be603){var _0x27b0ce=_0x1eb23e,_0x16e03f={'aJHpc':_0x27b0ce(0xeb)};console[_0x27b0ce(0xd8)](_0x16e03f[_0x27b0ce(0x117)],..._0x5be603);}[_0x1eb23e(0x106)](..._0x1a5f4e){var _0x21bb76=_0x1eb23e,_0x4eef43={'BLUzQ':'onGroupSingleScreenNotifies:'};console[_0x21bb76(0xd8)](_0x4eef43[_0x21bb76(0xf8)],..._0x1a5f4e);}[_0x1eb23e(0xfb)](..._0x2c20c6){var _0xc4a0f9=_0x1eb23e;console['log'](_0xc4a0f9(0x10d),..._0x2c20c6);}['onGroupStatisticInfoChange'](..._0x14fcc1){console['log']('onGroupStatisticInfoChange:',..._0x14fcc1);}['onJoinGroupNotify'](..._0x26be59){var _0x593614=_0x1eb23e,_0x50bc30={'fHfCQ':_0x593614(0xf6)};console[_0x593614(0xd8)](_0x50bc30[_0x593614(0xe2)],..._0x26be59);}[_0x1eb23e(0xe3)](..._0x4c828d){var _0xc8ec69=_0x1eb23e,_0x1f4048={'viGfn':_0xc8ec69(0x10f)};console[_0xc8ec69(0xd8)](_0x1f4048[_0xc8ec69(0xdb)],..._0x4c828d);}[_0x1eb23e(0xdd)](_0x3f10c7,_0x210f7e,_0x21e4e2){var _0x271049=_0x1eb23e,_0x4a6dd7={'eCmKc':_0x271049(0xde)};console[_0x271049(0xd8)](_0x4a6dd7[_0x271049(0xf5)],_0x3f10c7,_0x210f7e,_0x21e4e2);}[_0x1eb23e(0xed)](..._0x3e5337){var _0x2346f1=_0x1eb23e;console[_0x2346f1(0xd8)](_0x2346f1(0xfd),..._0x3e5337);}[_0x1eb23e(0x115)](..._0x72afd6){var _0x4d7f8c=_0x1eb23e,_0x16eda7={'wXnZn':_0x4d7f8c(0xfc)};console[_0x4d7f8c(0xd8)](_0x16eda7[_0x4d7f8c(0x102)],..._0x72afd6);}[_0x1eb23e(0x101)](..._0x167e6c){var _0x499e99=_0x1eb23e,_0x39d9bc={'ofpfH':_0x499e99(0x110)};console[_0x499e99(0xd8)](_0x39d9bc[_0x499e99(0xff)],..._0x167e6c);}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelLoginListener.js b/src/core.lib/src/listeners/NodeIKernelLoginListener.js index f093ad64..77a4a703 100644 --- a/src/core.lib/src/listeners/NodeIKernelLoginListener.js +++ b/src/core.lib/src/listeners/NodeIKernelLoginListener.js @@ -1 +1 @@ -var _0x3bfff0=_0x4ab2;(function(_0x2b438e,_0x45c5a8){var _0x5c186b=_0x4ab2,_0x54feb4=_0x2b438e();while(!![]){try{var _0xe33dd4=-parseInt(_0x5c186b(0x86))/0x1*(parseInt(_0x5c186b(0x74))/0x2)+parseInt(_0x5c186b(0x80))/0x3+-parseInt(_0x5c186b(0x76))/0x4+-parseInt(_0x5c186b(0x77))/0x5+parseInt(_0x5c186b(0x87))/0x6*(-parseInt(_0x5c186b(0x75))/0x7)+-parseInt(_0x5c186b(0x7a))/0x8*(parseInt(_0x5c186b(0x7b))/0x9)+parseInt(_0x5c186b(0x73))/0xa;if(_0xe33dd4===_0x45c5a8)break;else _0x54feb4['push'](_0x54feb4['shift']());}catch(_0x2aec51){_0x54feb4['push'](_0x54feb4['shift']());}}}(_0xfb40,0x82283));function _0x4ab2(_0x2f44c5,_0x32908f){var _0xfb40a0=_0xfb40();return _0x4ab2=function(_0x4ab288,_0x16316d){_0x4ab288=_0x4ab288-0x73;var _0x1beec5=_0xfb40a0[_0x4ab288];return _0x1beec5;},_0x4ab2(_0x2f44c5,_0x32908f);}export class LoginListener{[_0x3bfff0(0x7e)](..._0x2c277f){}['onLoginDisConnected'](..._0x3869e5){}[_0x3bfff0(0x82)](..._0x5ea7ac){}[_0x3bfff0(0x7d)](_0x397c6e){}['onQRCodeLoginPollingStarted'](..._0x419e39){}[_0x3bfff0(0x7c)](..._0x1cbf63){}[_0x3bfff0(0x88)](_0x3a8cc4){}[_0x3bfff0(0x83)](..._0x31da2b){}[_0x3bfff0(0x81)](..._0x4285e9){}['onLogoutSucceed'](..._0x34bf3b){}[_0x3bfff0(0x85)](..._0x1332ff){}['onUserLoggedIn'](..._0x1f6baa){}[_0x3bfff0(0x78)](..._0x17aaf4){}['onPasswordLoginFailed'](..._0x15edd8){}[_0x3bfff0(0x79)](..._0x3ee8fd){}[_0x3bfff0(0x84)](..._0x5a1a26){}[_0x3bfff0(0x7f)](..._0xec51c7){}}function _0xfb40(){var _0xf5c5b6=['33754TMtYbW','3658352ETNRuO','3062425tqVqXO','onQRCodeSessionQuickLoginFailed','OnConfirmUnusualDeviceFailed','664xwsBFu','585MxEbAO','onQRCodeSessionUserScaned','onQRCodeGetPicture','onLoginConnected','onLoginState','2198541KJeggo','onLoginFailed','onLoginConnecting','onQRCodeSessionFailed','onQQLoginNumLimited','onLogoutFailed','523dXLrhB','42efgDlT','onQRCodeLoginSucceed','13712050JqDAGl','18PoxXoS'];_0xfb40=function(){return _0xf5c5b6;};return _0xfb40();} \ No newline at end of file +function _0x9778(_0x6132a0,_0x132fc8){var _0x136dbd=_0x136d();return _0x9778=function(_0x9778b0,_0x2c929f){_0x9778b0=_0x9778b0-0xb2;var _0x178e8a=_0x136dbd[_0x9778b0];return _0x178e8a;},_0x9778(_0x6132a0,_0x132fc8);}var _0x1457dd=_0x9778;(function(_0x59fbd8,_0x50907b){var _0x3ecc70=_0x9778,_0x640a7e=_0x59fbd8();while(!![]){try{var _0x408671=parseInt(_0x3ecc70(0xbb))/0x1+-parseInt(_0x3ecc70(0xb7))/0x2+parseInt(_0x3ecc70(0xb8))/0x3+-parseInt(_0x3ecc70(0xb3))/0x4+-parseInt(_0x3ecc70(0xc2))/0x5*(parseInt(_0x3ecc70(0xc3))/0x6)+parseInt(_0x3ecc70(0xc1))/0x7*(parseInt(_0x3ecc70(0xbe))/0x8)+parseInt(_0x3ecc70(0xbd))/0x9;if(_0x408671===_0x50907b)break;else _0x640a7e['push'](_0x640a7e['shift']());}catch(_0x23d6fd){_0x640a7e['push'](_0x640a7e['shift']());}}}(_0x136d,0x35bd4));function _0x136d(){var _0x2690b9=['773378YCdXpA','419022dAtAfW','onLogoutFailed','onLoginState','146720elzGMJ','onQRCodeSessionQuickLoginFailed','1501767YDoOZZ','2601744Nubbla','onQRCodeSessionUserScaned','onLogoutSucceed','7RVScPm','5plwCYs','964254EjnaHP','onLoginDisConnected','onLoginConnected','onQRCodeSessionFailed','43844BgDhsf','onPasswordLoginFailed','onQRCodeLoginSucceed','onLoginFailed'];_0x136d=function(){return _0x2690b9;};return _0x136d();}export class LoginListener{[_0x1457dd(0xc5)](..._0x2e8270){}[_0x1457dd(0xc4)](..._0x3b9670){}['onLoginConnecting'](..._0xd864d9){}['onQRCodeGetPicture'](_0x534f97){}['onQRCodeLoginPollingStarted'](..._0x25614d){}[_0x1457dd(0xbf)](..._0x4839a5){}[_0x1457dd(0xb5)](_0x1fa8c2){}[_0x1457dd(0xb2)](..._0x3ee988){}[_0x1457dd(0xb6)](..._0x348e87){}[_0x1457dd(0xc0)](..._0x50c46c){}[_0x1457dd(0xb9)](..._0x6214a4){}['onUserLoggedIn'](..._0x1409f6){}[_0x1457dd(0xbc)](..._0x5bed94){}[_0x1457dd(0xb4)](..._0x4a51dc){}['OnConfirmUnusualDeviceFailed'](..._0x8175ea){}['onQQLoginNumLimited'](..._0x4eefc6){}[_0x1457dd(0xba)](..._0x9958c9){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelMsgListener.js b/src/core.lib/src/listeners/NodeIKernelMsgListener.js index a82e7397..286ddaed 100644 --- a/src/core.lib/src/listeners/NodeIKernelMsgListener.js +++ b/src/core.lib/src/listeners/NodeIKernelMsgListener.js @@ -1 +1 @@ -var _0x27d9eb=_0x424c;(function(_0x5941ad,_0x8a1296){var _0x13616e=_0x424c,_0x49dffa=_0x5941ad();while(!![]){try{var _0x188774=-parseInt(_0x13616e(0x1f3))/0x1+-parseInt(_0x13616e(0x1cd))/0x2+parseInt(_0x13616e(0x1e2))/0x3*(-parseInt(_0x13616e(0x1ca))/0x4)+-parseInt(_0x13616e(0x1d8))/0x5*(-parseInt(_0x13616e(0x1cc))/0x6)+-parseInt(_0x13616e(0x1ee))/0x7*(-parseInt(_0x13616e(0x1c7))/0x8)+parseInt(_0x13616e(0x1df))/0x9*(-parseInt(_0x13616e(0x1ff))/0xa)+-parseInt(_0x13616e(0x1c9))/0xb*(-parseInt(_0x13616e(0x1f4))/0xc);if(_0x188774===_0x8a1296)break;else _0x49dffa['push'](_0x49dffa['shift']());}catch(_0x41861b){_0x49dffa['push'](_0x49dffa['shift']());}}}(_0x5d49,0x622fb));function _0x424c(_0x4acafc,_0x3d3d62){var _0x5d4980=_0x5d49();return _0x424c=function(_0x424c86,_0x32e7aa){_0x424c86=_0x424c86-0x1c0;var _0x771c65=_0x5d4980[_0x424c86];return _0x771c65;},_0x424c(_0x4acafc,_0x3d3d62);}export class MsgListener{[_0x27d9eb(0x1c5)](_0x1eff65){}['onBroadcastHelperDownloadComplete'](_0x53de0c){}[_0x27d9eb(0x1dc)](_0xc8f3eb){}[_0x27d9eb(0x1d9)](_0x3b86e7,_0xf6268c,_0x25800c){}[_0x27d9eb(0x1d2)](_0x46606a){}[_0x27d9eb(0x1f9)](_0x192823){}[_0x27d9eb(0x1f0)](_0x50b6ed,_0x127b40,_0x3d5edc){}[_0x27d9eb(0x1c4)](_0x50b92f){}[_0x27d9eb(0x1f6)](_0x5b68f6){}[_0x27d9eb(0x1d5)](_0x132783){}[_0x27d9eb(0x1f2)](_0x5a160c){}[_0x27d9eb(0x1fa)](_0x3de1a8){}[_0x27d9eb(0x1f7)](_0xfdad7b){}['onGrabPasswordRedBag'](_0x16796f,_0x8e6545,_0x264de7,_0x507445,_0x10dadb){}['onGroupFileInfoAdd'](_0x57e8fa){}[_0x27d9eb(0x1c0)](_0x1f8f42){}['onGroupGuildUpdate'](_0x2dd9e2){}[_0x27d9eb(0x200)](_0x52246b){}[_0x27d9eb(0x1ea)](_0x5591b7){}[_0x27d9eb(0x1e1)](_0x56e3c9){}[_0x27d9eb(0x1eb)](_0x3df427){}['onGuildNotificationAbstractUpdate'](_0x31af90){}['onHitCsRelatedEmojiResult'](_0xf95f1){}[_0x27d9eb(0x1e9)](_0xee9be6){}[_0x27d9eb(0x1db)](_0x3ec2f0){}[_0x27d9eb(0x1f5)](_0x114415){}[_0x27d9eb(0x1c8)](_0x580285){}[_0x27d9eb(0x1d0)](_0x1384aa){}[_0x27d9eb(0x1dd)](_0x365096){}[_0x27d9eb(0x1d3)](_0x2b16f6){}[_0x27d9eb(0x1fb)](_0x26eeb9){}['onMsgBoxChanged'](_0x3b009f){}[_0x27d9eb(0x1d6)](_0x33d8cb,_0x1a1df6){}[_0x27d9eb(0x1fd)](_0x3f1564){}[_0x27d9eb(0x1e4)](_0x2d45b4){}[_0x27d9eb(0x1e7)](_0x5e2da3){}[_0x27d9eb(0x1da)](_0x1e0874){}[_0x27d9eb(0x1e6)](_0x1251ec,_0x3d90bf,_0x1331cf){}['onMsgSecurityNotify'](_0x496a9e){}['onMsgSettingUpdate'](_0x1bf7a9){}[_0x27d9eb(0x1cb)](){}[_0x27d9eb(0x1fc)](){}[_0x27d9eb(0x1e3)](){}[_0x27d9eb(0x1cf)](_0x734fa2){}['onRecvGroupGuildFlag'](_0x4c8f02){}[_0x27d9eb(0x1ec)](_0x199b88){}[_0x27d9eb(0x1c3)](_0x5d2222,_0x3fbd01,_0x20bb21,_0x5e680c,_0x53fe9e,_0x506961){}[_0x27d9eb(0x1d7)](_0x46172b){}['onRecvS2CMsg'](_0x44883f){}[_0x27d9eb(0x1fe)](_0x5685de){}[_0x27d9eb(0x1e8)](_0x2be700){}[_0x27d9eb(0x1ed)](_0x36e01f){}[_0x27d9eb(0x1f1)](_0x12a83f){}[_0x27d9eb(0x1ce)](_0x33b5a6){}[_0x27d9eb(0x1c2)](_0x3dd37f){}[_0x27d9eb(0x1c1)](_0x5757da,_0x765187,_0x4f0747,_0x3ace01){}['onSysMsgNotification'](_0x5c23b0,_0x4ff7e6,_0x584fbd,_0x67c3b0){}[_0x27d9eb(0x1e0)](_0x5ea341){}['onUnreadCntAfterFirstView'](_0x4a3373){}[_0x27d9eb(0x201)](_0x4f8a03){}[_0x27d9eb(0x1c6)](_0x32c78e){}[_0x27d9eb(0x1e5)](_0x50f0d3){}[_0x27d9eb(0x1ef)](_0x520068){}['onlineStatusBigIconDownloadPush'](_0x57ad15,_0x419178,_0x3c62cb){}['onlineStatusSmallIconDownloadPush'](_0x1ef82b,_0x3c8534,_0x53cc11){}[_0x27d9eb(0x1f8)](..._0x1f1e0e){}[_0x27d9eb(0x1d1)](..._0xb0e768){}[_0x27d9eb(0x1d4)](..._0x3107d1){}[_0x27d9eb(0x1de)](..._0xdaa9a4){}}function _0x5d49(){var _0x107280=['onNtFirstViewMsgSyncEnd','6JTAsOG','1192334pbRkpm','onRichMediaUploadComplete','onReadFeedEventUpdate','onKickedOffLine','onMsgWithRichLinkInfoUpdate','onContactUnreadCntUpdate','onLogLevelChanged','onRedTouchChanged','onFeedEventUpdate','onMsgDelete','onRecvOnlineFileMsg','3838360xeCGxe','onChannelFreqLimitInfoUpdate','onMsgQRCodeStatusChanged','onHitRelatedEmojiResult','onBroadcastHelperProgressUpdate','onLineDev','onBroadcastHelperProgerssUpdate','2727vDeyCv','onTempChatInfoUpdate','onGuildInteractiveUpdate','5394CoIPFM','onNtMsgSyncStart','onMsgInfoListAdd','onUserOnlineStatusChanged','onMsgRecall','onMsgInfoListUpdate','onRecvUDCFlag','onHitEmojiKeywordResult','onGroupTransferInfoUpdate','onGuildMsgAbFlagChanged','onRecvMsg','onRichMediaDownloadComplete','14GaKAoh','onUserTabStatusChanged','onDraftUpdate','onRichMediaProgerssUpdate','onFileMsgCome','759261mNXaSl','429864ICQJnr','onImportOldDbProgressUpdate','onEmojiResourceUpdate','onFirstViewGroupGuildMapping','onUserSecQualityChanged','onCustomWithdrawConfigUpdate','onFirstViewDirectMsgUpdate','onMsgAbstractUpdate','onNtMsgSyncEnd','onMsgEventListUpdate','onRecvSysMsg','4550ZQJFAa','onGroupTransferInfoAdd','onUnreadCntUpdate','onGroupFileInfoUpdate','onSendMsgError','onSearchGroupFileInfoUpdate','onRecvMsgSvrRspTransInfo','onEmojiDownloadComplete','onAddSendMsg','onUserChannelTabStatusChanged','2925032ifWjlV','onInputStatusPush','209cEfFmy','632hRhWgx'];_0x5d49=function(){return _0x107280;};return _0x5d49();} \ No newline at end of file +var _0x4d3bfa=_0x4d02;(function(_0x3a991f,_0x3ef07b){var _0xdc45f8=_0x4d02,_0x189b65=_0x3a991f();while(!![]){try{var _0x2cd8c0=parseInt(_0xdc45f8(0xb8))/0x1+parseInt(_0xdc45f8(0xd3))/0x2+parseInt(_0xdc45f8(0xdf))/0x3*(parseInt(_0xdc45f8(0xe1))/0x4)+-parseInt(_0xdc45f8(0xca))/0x5+-parseInt(_0xdc45f8(0xc4))/0x6*(parseInt(_0xdc45f8(0xc5))/0x7)+-parseInt(_0xdc45f8(0xb9))/0x8*(parseInt(_0xdc45f8(0xaa))/0x9)+-parseInt(_0xdc45f8(0xd8))/0xa*(parseInt(_0xdc45f8(0xb7))/0xb);if(_0x2cd8c0===_0x3ef07b)break;else _0x189b65['push'](_0x189b65['shift']());}catch(_0x20423d){_0x189b65['push'](_0x189b65['shift']());}}}(_0x3189,0xae880));function _0x4d02(_0x14bbdd,_0x5601c7){var _0x318942=_0x3189();return _0x4d02=function(_0x4d0298,_0x540e50){_0x4d0298=_0x4d0298-0xa4;var _0x47a1b8=_0x318942[_0x4d0298];return _0x47a1b8;},_0x4d02(_0x14bbdd,_0x5601c7);}function _0x3189(){var _0x19ab5a=['onTempChatInfoUpdate','onHitRelatedEmojiResult','onRecvUDCFlag','onMsgEventListUpdate','onGroupTransferInfoUpdate','8199iRwdQz','onGuildInteractiveUpdate','852ohCbSQ','onRecvGroupGuildFlag','onlineStatusSmallIconDownloadPush','onChannelFreqLimitInfoUpdate','onGroupFileInfoAdd','onRichMediaDownloadComplete','onSysMsgNotification','onFileMsgCome','onSearchGroupFileInfoUpdate','399582lhtlBq','onMsgDelete','onUnreadCntAfterFirstView','onAddSendMsg','onGrabPasswordRedBag','onHitEmojiKeywordResult','onGroupGuildUpdate','onDraftUpdate','onNtFirstViewMsgSyncEnd','onRichMediaProgerssUpdate','onContactUnreadCntUpdate','onFeedEventUpdate','onMsgWithRichLinkInfoUpdate','63338hCWSFi','713041DipSGc','8ROYDyp','onRecvS2CMsg','onCustomWithdrawConfigUpdate','onGuildNotificationAbstractUpdate','onSendMsgError','onUserSecQualityChanged','onUserChannelTabStatusChanged','onLineDev','onBroadcastHelperProgerssUpdate','onReadFeedEventUpdate','onUserTabStatusChanged','2513892LXcgDZ','7kSdAAR','onBroadcastHelperProgressUpdate','onInputStatusPush','onFirstViewDirectMsgUpdate','onEmojiResourceUpdate','5260055GmEMTA','onMsgRecall','onEmojiDownloadComplete','onMsgInfoListUpdate','onRichMediaUploadComplete','onRecvOnlineFileMsg','onNtMsgSyncStart','onUserOnlineStatusChanged','onImportOldDbProgressUpdate','1916266nzkDsu','onMsgSecurityNotify','onUnreadCntUpdate','onRecvSysMsg','onRedTouchChanged','40JmKyYY','onlineStatusBigIconDownloadPush'];_0x3189=function(){return _0x19ab5a;};return _0x3189();}export class MsgListener{[_0x4d3bfa(0xad)](_0x5dfc79){}['onBroadcastHelperDownloadComplete'](_0x5be539){}[_0x4d3bfa(0xc6)](_0x40ea2d){}[_0x4d3bfa(0xa4)](_0x2af27d,_0x49d0d5,_0x1a187c){}[_0x4d3bfa(0xb4)](_0x41bb57){}[_0x4d3bfa(0xbb)](_0x3139c2){}[_0x4d3bfa(0xb1)](_0x520684,_0x2c75ac,_0x21f790){}[_0x4d3bfa(0xcc)](_0x21167e){}[_0x4d3bfa(0xc9)](_0x5bbfcb){}[_0x4d3bfa(0xb5)](_0x193543){}[_0x4d3bfa(0xa8)](_0x11cbe5){}[_0x4d3bfa(0xc8)](_0x57e4f7){}['onFirstViewGroupGuildMapping'](_0x5811f2){}[_0x4d3bfa(0xae)](_0x4e2c87,_0x3316ab,_0x26e9aa,_0x2b1020,_0x186170){}[_0x4d3bfa(0xa5)](_0x25793c){}['onGroupFileInfoUpdate'](_0x439d27){}[_0x4d3bfa(0xb0)](_0x298a16){}['onGroupTransferInfoAdd'](_0x157658){}[_0x4d3bfa(0xde)](_0x4990e6){}[_0x4d3bfa(0xe0)](_0x5ec210){}['onGuildMsgAbFlagChanged'](_0x2c62b6){}[_0x4d3bfa(0xbc)](_0xb7a503){}['onHitCsRelatedEmojiResult'](_0x3d4875){}[_0x4d3bfa(0xaf)](_0x5813c4){}[_0x4d3bfa(0xdb)](_0x21fd08){}[_0x4d3bfa(0xd2)](_0x2219d2){}[_0x4d3bfa(0xc7)](_0x30b072){}['onKickedOffLine'](_0xee4268){}[_0x4d3bfa(0xc0)](_0x29f848){}['onLogLevelChanged'](_0x3579a7){}['onMsgAbstractUpdate'](_0x4697a1){}['onMsgBoxChanged'](_0xa7dd8e){}[_0x4d3bfa(0xab)](_0x1aa1d9,_0x550809){}[_0x4d3bfa(0xdd)](_0x2725a0){}['onMsgInfoListAdd'](_0x5c9852){}[_0x4d3bfa(0xcd)](_0x59cb34){}['onMsgQRCodeStatusChanged'](_0x1cfa80){}[_0x4d3bfa(0xcb)](_0x222f73,_0x555d51,_0x151d9f){}[_0x4d3bfa(0xd4)](_0x2cad90){}['onMsgSettingUpdate'](_0x2b7745){}[_0x4d3bfa(0xb2)](){}['onNtMsgSyncEnd'](){}[_0x4d3bfa(0xd0)](){}[_0x4d3bfa(0xc2)](_0x10cb26){}[_0x4d3bfa(0xe2)](_0x370ee8){}['onRecvMsg'](_0x491c50){}['onRecvMsgSvrRspTransInfo'](_0x4480eb,_0x336b29,_0x2b59e0,_0x4b440b,_0x251109,_0x15ed96){}[_0x4d3bfa(0xcf)](_0x4b7050){}[_0x4d3bfa(0xba)](_0x4839bf){}[_0x4d3bfa(0xd6)](_0x197043){}[_0x4d3bfa(0xdc)](_0x233228){}[_0x4d3bfa(0xa6)](_0x56d059){}[_0x4d3bfa(0xb3)](_0x31d193){}[_0x4d3bfa(0xce)](_0x379349){}[_0x4d3bfa(0xa9)](_0x57b1ec){}[_0x4d3bfa(0xbd)](_0x1c1929,_0xe0278a,_0x1b4580,_0x2a5146){}[_0x4d3bfa(0xa7)](_0x16bda2,_0x1e125e,_0x5d0a00,_0x104d15){}[_0x4d3bfa(0xda)](_0x47b299){}[_0x4d3bfa(0xac)](_0x1d3fbb){}[_0x4d3bfa(0xd5)](_0x336172){}[_0x4d3bfa(0xbf)](_0x2b851f){}[_0x4d3bfa(0xd1)](_0x44ea03){}[_0x4d3bfa(0xc3)](_0x4c9d16){}[_0x4d3bfa(0xd9)](_0xf9ff3c,_0x1e5449,_0x56a4e2){}[_0x4d3bfa(0xe3)](_0x10d4c9,_0x12d657,_0x2186dd){}[_0x4d3bfa(0xbe)](..._0x405a6a){}[_0x4d3bfa(0xb6)](..._0x237ab4){}[_0x4d3bfa(0xd7)](..._0xe5b696){}[_0x4d3bfa(0xc1)](..._0x2bfb76){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelProfileListener.js b/src/core.lib/src/listeners/NodeIKernelProfileListener.js index a6c3c4ac..42c00426 100644 --- a/src/core.lib/src/listeners/NodeIKernelProfileListener.js +++ b/src/core.lib/src/listeners/NodeIKernelProfileListener.js @@ -1 +1 @@ -var _0x368283=_0x1e48;function _0x1e48(_0x37def2,_0x26a638){var _0x43b953=_0x43b9();return _0x1e48=function(_0x1e4840,_0x533dcc){_0x1e4840=_0x1e4840-0x10e;var _0x34ab50=_0x43b953[_0x1e4840];return _0x34ab50;},_0x1e48(_0x37def2,_0x26a638);}(function(_0x1d1c28,_0x4e01be){var _0x258585=_0x1e48,_0x4890e9=_0x1d1c28();while(!![]){try{var _0x21a0d6=-parseInt(_0x258585(0x10f))/0x1+-parseInt(_0x258585(0x113))/0x2+-parseInt(_0x258585(0x112))/0x3+-parseInt(_0x258585(0x119))/0x4*(-parseInt(_0x258585(0x118))/0x5)+-parseInt(_0x258585(0x10e))/0x6*(-parseInt(_0x258585(0x111))/0x7)+-parseInt(_0x258585(0x117))/0x8+parseInt(_0x258585(0x115))/0x9*(parseInt(_0x258585(0x110))/0xa);if(_0x21a0d6===_0x4e01be)break;else _0x4890e9['push'](_0x4890e9['shift']());}catch(_0x2b2ca4){_0x4890e9['push'](_0x4890e9['shift']());}}}(_0x43b9,0x31b9a));export class ProfileListener{[_0x368283(0x116)](..._0x317716){}['onProfileDetailInfoChanged'](_0x30d410){}[_0x368283(0x114)](..._0x126d2a){}['onSelfStatusChanged'](..._0x26e562){}['onStrangerRemarkChanged'](..._0x5a2e6d){}}function _0x43b9(){var _0x1400e6=['4WHWEVu','6NcBdzD','152734YVkGyy','136030PygdTR','1494269tCRmLe','6927wIHMXb','794686jxsghe','onStatusUpdate','423XMnpZC','onProfileSimpleChanged','944776zbsxHx','106745FoqOJq'];_0x43b9=function(){return _0x1400e6;};return _0x43b9();} \ No newline at end of file +function _0x4361(){var _0xa923fc=['3801WfCiED','1771185AAJtZu','9328dYhNEf','31391jnbArA','2NOpvyb','1180422pCTUAR','onProfileSimpleChanged','onStrangerRemarkChanged','272932GCOnzG','90RBgRdF','onSelfStatusChanged','1917444QKSqMs','29425nnUXYy','onProfileDetailInfoChanged','268mQDlZK'];_0x4361=function(){return _0xa923fc;};return _0x4361();}var _0x3553c6=_0x281e;(function(_0xc04783,_0x22e7c3){var _0x3434ea=_0x281e,_0x573aa7=_0xc04783();while(!![]){try{var _0x32bfe0=-parseInt(_0x3434ea(0xd8))/0x1*(-parseInt(_0x3434ea(0xd9))/0x2)+-parseInt(_0x3434ea(0xd6))/0x3+parseInt(_0x3434ea(0xd4))/0x4*(parseInt(_0x3434ea(0xe1))/0x5)+-parseInt(_0x3434ea(0xe0))/0x6+parseInt(_0x3434ea(0xd5))/0x7*(parseInt(_0x3434ea(0xd7))/0x8)+parseInt(_0x3434ea(0xda))/0x9+parseInt(_0x3434ea(0xde))/0xa*(parseInt(_0x3434ea(0xdd))/0xb);if(_0x32bfe0===_0x22e7c3)break;else _0x573aa7['push'](_0x573aa7['shift']());}catch(_0x22dc61){_0x573aa7['push'](_0x573aa7['shift']());}}}(_0x4361,0x7ae19));function _0x281e(_0x28be84,_0x419bf7){var _0x43618a=_0x4361();return _0x281e=function(_0x281ecf,_0x38ace8){_0x281ecf=_0x281ecf-0xd3;var _0x29ee77=_0x43618a[_0x281ecf];return _0x29ee77;},_0x281e(_0x28be84,_0x419bf7);}export class ProfileListener{[_0x3553c6(0xdb)](..._0x269b9a){}[_0x3553c6(0xd3)](_0x1af270){}['onStatusUpdate'](..._0x16c25a){}[_0x3553c6(0xdf)](..._0x513411){}[_0x3553c6(0xdc)](..._0x2a7b9d){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelRobotListener.js b/src/core.lib/src/listeners/NodeIKernelRobotListener.js index 9023ef94..14a0226b 100644 --- a/src/core.lib/src/listeners/NodeIKernelRobotListener.js +++ b/src/core.lib/src/listeners/NodeIKernelRobotListener.js @@ -1 +1 @@ -var _0x3fb70f=_0x5444;(function(_0x1f46c9,_0x590cb8){var _0x4542b4=_0x5444,_0x5b5534=_0x1f46c9();while(!![]){try{var _0x20ebed=-parseInt(_0x4542b4(0x6f))/0x1*(parseInt(_0x4542b4(0x73))/0x2)+parseInt(_0x4542b4(0x70))/0x3+-parseInt(_0x4542b4(0x7a))/0x4*(-parseInt(_0x4542b4(0x71))/0x5)+parseInt(_0x4542b4(0x6d))/0x6*(-parseInt(_0x4542b4(0x75))/0x7)+-parseInt(_0x4542b4(0x72))/0x8+parseInt(_0x4542b4(0x76))/0x9+parseInt(_0x4542b4(0x74))/0xa*(parseInt(_0x4542b4(0x77))/0xb);if(_0x20ebed===_0x590cb8)break;else _0x5b5534['push'](_0x5b5534['shift']());}catch(_0x1a3c72){_0x5b5534['push'](_0x5b5534['shift']());}}}(_0x3d6e,0xc6f36));export class KernelRobotListener{[_0x3fb70f(0x79)](..._0x4898b3){}[_0x3fb70f(0x6e)](..._0x1e39ea){}[_0x3fb70f(0x78)](..._0x20fd24){}}function _0x5444(_0x3c48c4,_0x47ff10){var _0x3d6e40=_0x3d6e();return _0x5444=function(_0x544451,_0x34cce8){_0x544451=_0x544451-0x6d;var _0x2c4b08=_0x3d6e40[_0x544451];return _0x2c4b08;},_0x5444(_0x3c48c4,_0x47ff10);}function _0x3d6e(){var _0x16d5d7=['5ORTJTE','10357608REleEy','108740UQDUKm','26022680fjUvCy','44716IjuURz','4778811zqEBZp','11LQGbMx','onRobotProfileChanged','onRobotFriendListChanged','2748292nWaEbp','1398JAbIcZ','onRobotListChanged','5QpIYec','148611aiCAYQ'];_0x3d6e=function(){return _0x16d5d7;};return _0x3d6e();} \ No newline at end of file +function _0x2608(){var _0x56d292=['33030LZZNpo','90HUVFar','onRobotFriendListChanged','1eljYdu','328hpUiWS','483THGPlf','2292072gdavBa','onRobotProfileChanged','55984PleGyC','897288hivPPl','1298846noHiwj','209853cqYHau','onRobotListChanged','188056CRldCk'];_0x2608=function(){return _0x56d292;};return _0x2608();}var _0x25a03e=_0x3d2a;function _0x3d2a(_0x3ec6af,_0x412201){var _0x26089d=_0x2608();return _0x3d2a=function(_0x3d2acd,_0x42dd08){_0x3d2acd=_0x3d2acd-0xec;var _0x1da1ca=_0x26089d[_0x3d2acd];return _0x1da1ca;},_0x3d2a(_0x3ec6af,_0x412201);}(function(_0x4205b5,_0x537380){var _0x41b694=_0x3d2a,_0xf1acd0=_0x4205b5();while(!![]){try{var _0xa79d13=-parseInt(_0x41b694(0xf0))/0x1*(-parseInt(_0x41b694(0xf7))/0x2)+parseInt(_0x41b694(0xf6))/0x3+-parseInt(_0x41b694(0xf1))/0x4*(parseInt(_0x41b694(0xed))/0x5)+-parseInt(_0x41b694(0xf3))/0x6+-parseInt(_0x41b694(0xf2))/0x7*(-parseInt(_0x41b694(0xf5))/0x8)+parseInt(_0x41b694(0xf8))/0x9+parseInt(_0x41b694(0xee))/0xa*(-parseInt(_0x41b694(0xec))/0xb);if(_0xa79d13===_0x537380)break;else _0xf1acd0['push'](_0xf1acd0['shift']());}catch(_0x44965f){_0xf1acd0['push'](_0xf1acd0['shift']());}}}(_0x2608,0x5c12a));export class KernelRobotListener{[_0x25a03e(0xef)](..._0x2f444c){}[_0x25a03e(0xf9)](..._0x1a7a09){}[_0x25a03e(0xf4)](..._0x1053ec){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelSessionListener.js b/src/core.lib/src/listeners/NodeIKernelSessionListener.js index 2796a766..771468f3 100644 --- a/src/core.lib/src/listeners/NodeIKernelSessionListener.js +++ b/src/core.lib/src/listeners/NodeIKernelSessionListener.js @@ -1 +1 @@ -var _0x173f51=_0x4245;function _0x4245(_0x33f1f4,_0x5af8ff){var _0x45369c=_0x4536();return _0x4245=function(_0x4245f6,_0x4de6f5){_0x4245f6=_0x4245f6-0x16c;var _0xf3275e=_0x45369c[_0x4245f6];return _0xf3275e;},_0x4245(_0x33f1f4,_0x5af8ff);}function _0x4536(){var _0x1cf806=['onGProSessionCreate','2808732RDrznV','620030RYuBra','570361kzktmV','85795RDldOn','3231090LrHnJp','30JfuXLG','18BQBjqd','onGetSelfTinyId','onSessionInitComplete','36BnkUUx','1070748QwqyEh','2qeyePa','6644984HNAsPr','onUserOnlineResult','12uYReib'];_0x4536=function(){return _0x1cf806;};return _0x4536();}(function(_0x118145,_0x4063d6){var _0x1c0ecf=_0x4245,_0x44eef7=_0x118145();while(!![]){try{var _0x351833=parseInt(_0x1c0ecf(0x179))/0x1*(parseInt(_0x1c0ecf(0x173))/0x2)+-parseInt(_0x1c0ecf(0x178))/0x3+-parseInt(_0x1c0ecf(0x171))/0x4*(parseInt(_0x1c0ecf(0x17b))/0x5)+parseInt(_0x1c0ecf(0x16d))/0x6*(parseInt(_0x1c0ecf(0x172))/0x7)+parseInt(_0x1c0ecf(0x174))/0x8+-parseInt(_0x1c0ecf(0x16e))/0x9*(parseInt(_0x1c0ecf(0x16c))/0xa)+-parseInt(_0x1c0ecf(0x17a))/0xb*(-parseInt(_0x1c0ecf(0x176))/0xc);if(_0x351833===_0x4063d6)break;else _0x44eef7['push'](_0x44eef7['shift']());}catch(_0x383ae6){_0x44eef7['push'](_0x44eef7['shift']());}}}(_0x4536,0x817ff));export class SessionListener{['onNTSessionCreate'](_0x27a6a9){}[_0x173f51(0x177)](_0x5a1e42){}[_0x173f51(0x170)](_0x3e02e8){}['onOpentelemetryInit'](_0x3c15d7){}[_0x173f51(0x175)](_0x2b044b){}[_0x173f51(0x16f)](_0x2b1098){}} \ No newline at end of file +function _0x2a9f(_0x50f974,_0x333b28){var _0x281133=_0x2811();return _0x2a9f=function(_0x2a9ff1,_0x5b1558){_0x2a9ff1=_0x2a9ff1-0x1e8;var _0x4e15fb=_0x281133[_0x2a9ff1];return _0x4e15fb;},_0x2a9f(_0x50f974,_0x333b28);}var _0x102292=_0x2a9f;(function(_0x592761,_0x5dd63f){var _0x3b0d44=_0x2a9f,_0x417d82=_0x592761();while(!![]){try{var _0x34390c=parseInt(_0x3b0d44(0x1e8))/0x1+parseInt(_0x3b0d44(0x1f2))/0x2*(-parseInt(_0x3b0d44(0x1f3))/0x3)+parseInt(_0x3b0d44(0x1e9))/0x4*(-parseInt(_0x3b0d44(0x1ea))/0x5)+-parseInt(_0x3b0d44(0x1f4))/0x6*(-parseInt(_0x3b0d44(0x1eb))/0x7)+-parseInt(_0x3b0d44(0x1ef))/0x8+-parseInt(_0x3b0d44(0x1ed))/0x9+parseInt(_0x3b0d44(0x1ee))/0xa;if(_0x34390c===_0x5dd63f)break;else _0x417d82['push'](_0x417d82['shift']());}catch(_0x27ded9){_0x417d82['push'](_0x417d82['shift']());}}}(_0x2811,0x6e065));export class SessionListener{['onNTSessionCreate'](_0x4066ea){}[_0x102292(0x1f0)](_0x566662){}[_0x102292(0x1f5)](_0xbd33b3){}[_0x102292(0x1f1)](_0x38c2e5){}[_0x102292(0x1ec)](_0x1cd2bd){}['onGetSelfTinyId'](_0x5c8adb){}}function _0x2811(){var _0x1e8c15=['1158512juwIej','onGProSessionCreate','onOpentelemetryInit','1270lydSFc','2433bvMTvE','377976lDGUYh','onSessionInitComplete','192590UoQFCT','288820OqqqRj','5wYLtTc','63ganqPS','onUserOnlineResult','6396030HXrtkO','11337810VCMwrv'];_0x2811=function(){return _0x1e8c15;};return _0x2811();} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js index ceb69f3d..b02f7b8d 100644 --- a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js +++ b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js @@ -1 +1 @@ -var _0x5c0ede=_0x28c9;function _0x28c9(_0x2d75d6,_0x101e3a){var _0x11d067=_0x11d0();return _0x28c9=function(_0x28c9e1,_0x16ba2e){_0x28c9e1=_0x28c9e1-0x131;var _0x10bd0e=_0x11d067[_0x28c9e1];return _0x10bd0e;},_0x28c9(_0x2d75d6,_0x101e3a);}function _0x11d0(){var _0x5d0b3d=['30aaJBAp','567025yWNdZS','onCleanCacheStorageChanged','382093PQyaoC','onFinishScan','4610596kOBTxR','6639370lSaNSS','1712926unyFSf','onChatCleanDone','6YOhlLV','5157400wnMpEI','onScanCacheProgressChanged','9zKOemV','8116857npHiai'];_0x11d0=function(){return _0x5d0b3d;};return _0x11d0();}(function(_0x2005f6,_0x3ecf7e){var _0x341fc9=_0x28c9,_0x2c5a13=_0x2005f6();while(!![]){try{var _0x28c94e=-parseInt(_0x341fc9(0x13c))/0x1+-parseInt(_0x341fc9(0x132))/0x2*(parseInt(_0x341fc9(0x134))/0x3)+parseInt(_0x341fc9(0x13e))/0x4+-parseInt(_0x341fc9(0x13a))/0x5*(parseInt(_0x341fc9(0x139))/0x6)+parseInt(_0x341fc9(0x138))/0x7+parseInt(_0x341fc9(0x135))/0x8*(parseInt(_0x341fc9(0x137))/0x9)+parseInt(_0x341fc9(0x131))/0xa;if(_0x28c94e===_0x3ecf7e)break;else _0x2c5a13['push'](_0x2c5a13['shift']());}catch(_0x41f233){_0x2c5a13['push'](_0x2c5a13['shift']());}}}(_0x11d0,0xea130));export class StorageCleanListener{['onCleanCacheProgressChanged'](_0x416359){}[_0x5c0ede(0x136)](_0xc1f5bf){}[_0x5c0ede(0x13b)](_0x214607){}[_0x5c0ede(0x13d)](_0x1dc43d){}[_0x5c0ede(0x133)](_0x7e1c17){}} \ No newline at end of file +var _0x49b1cb=_0x766c;(function(_0x39c007,_0x3e97f7){var _0x1d4061=_0x766c,_0x2ab49d=_0x39c007();while(!![]){try{var _0x1045b1=parseInt(_0x1d4061(0x199))/0x1*(-parseInt(_0x1d4061(0x197))/0x2)+parseInt(_0x1d4061(0x18d))/0x3+-parseInt(_0x1d4061(0x195))/0x4*(parseInt(_0x1d4061(0x194))/0x5)+-parseInt(_0x1d4061(0x193))/0x6*(parseInt(_0x1d4061(0x18f))/0x7)+parseInt(_0x1d4061(0x198))/0x8+parseInt(_0x1d4061(0x18e))/0x9*(-parseInt(_0x1d4061(0x192))/0xa)+parseInt(_0x1d4061(0x196))/0xb;if(_0x1045b1===_0x3e97f7)break;else _0x2ab49d['push'](_0x2ab49d['shift']());}catch(_0x11e841){_0x2ab49d['push'](_0x2ab49d['shift']());}}}(_0x46f7,0xf1e82));function _0x766c(_0x43ed49,_0x552b4b){var _0x46f752=_0x46f7();return _0x766c=function(_0x766cb4,_0x588dbb){_0x766cb4=_0x766cb4-0x18a;var _0x140d4a=_0x46f752[_0x766cb4];return _0x140d4a;},_0x766c(_0x43ed49,_0x552b4b);}function _0x46f7(){var _0x1b8d96=['7076768ytjFjh','1TwHuBO','onFinishScan','onCleanCacheProgressChanged','onChatCleanDone','3904356Zizusw','117jkgdPm','2888452OrJGxq','onScanCacheProgressChanged','onCleanCacheStorageChanged','1403390gUHkNV','24iMXeNU','376280XkcuLT','40NVQKNn','33928807jxmTYk','104248TjkLXj'];_0x46f7=function(){return _0x1b8d96;};return _0x46f7();}export class StorageCleanListener{[_0x49b1cb(0x18b)](_0x29924f){}[_0x49b1cb(0x190)](_0x251f36){}[_0x49b1cb(0x191)](_0x25fac1){}[_0x49b1cb(0x18a)](_0x4157bf){}[_0x49b1cb(0x18c)](_0x214042){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/index.js b/src/core.lib/src/listeners/index.js index 8df28e1d..7b8b6d8a 100644 --- a/src/core.lib/src/listeners/index.js +++ b/src/core.lib/src/listeners/index.js @@ -1 +1 @@ -(function(_0x5293aa,_0x32b555){var _0x1c6d53=_0x8383,_0x35eb9e=_0x5293aa();while(!![]){try{var _0x48f654=-parseInt(_0x1c6d53(0x105))/0x1+-parseInt(_0x1c6d53(0x106))/0x2+parseInt(_0x1c6d53(0x103))/0x3+-parseInt(_0x1c6d53(0x104))/0x4+-parseInt(_0x1c6d53(0x100))/0x5*(-parseInt(_0x1c6d53(0x107))/0x6)+parseInt(_0x1c6d53(0x108))/0x7*(parseInt(_0x1c6d53(0x101))/0x8)+-parseInt(_0x1c6d53(0x102))/0x9;if(_0x48f654===_0x32b555)break;else _0x35eb9e['push'](_0x35eb9e['shift']());}catch(_0x3f2747){_0x35eb9e['push'](_0x35eb9e['shift']());}}}(_0x5b9f,0xa769c));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';function _0x8383(_0x46181f,_0xfe660a){var _0x5b9ff0=_0x5b9f();return _0x8383=function(_0x838344,_0x5444dd){_0x838344=_0x838344-0x100;var _0x588e0c=_0x5b9ff0[_0x838344];return _0x588e0c;},_0x8383(_0x46181f,_0xfe660a);}export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';function _0x5b9f(){var _0x1bb9fc=['1972629KXGvFp','2161020EVlIeY','1403652ttgUNy','355769JqDexY','1711070caaNGF','6heNjCR','25214Nujlhq','4807730ZlfpHW','1744DSAHBs'];_0x5b9f=function(){return _0x1bb9fc;};return _0x5b9f();} \ No newline at end of file +(function(_0x3c09b5,_0x2d36db){var _0x1811fc=_0xf65f,_0x5058e6=_0x3c09b5();while(!![]){try{var _0x447e05=parseInt(_0x1811fc(0x94))/0x1*(parseInt(_0x1811fc(0x9b))/0x2)+parseInt(_0x1811fc(0x99))/0x3*(parseInt(_0x1811fc(0x93))/0x4)+parseInt(_0x1811fc(0x9a))/0x5+-parseInt(_0x1811fc(0x98))/0x6*(parseInt(_0x1811fc(0x9d))/0x7)+-parseInt(_0x1811fc(0x9c))/0x8*(-parseInt(_0x1811fc(0x95))/0x9)+parseInt(_0x1811fc(0x97))/0xa*(-parseInt(_0x1811fc(0x96))/0xb)+-parseInt(_0x1811fc(0x92))/0xc;if(_0x447e05===_0x2d36db)break;else _0x5058e6['push'](_0x5058e6['shift']());}catch(_0x53c99d){_0x5058e6['push'](_0x5058e6['shift']());}}}(_0x1db2,0x85437));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';function _0x1db2(){var _0x479902=['28GhCbyi','73aLYJQf','45qOwpts','7069513ynnNCY','10YKShth','3630942eeYEPD','131349jaDhte','4037275BFNvze','8812JNBgwi','670488PUijWt','7KmOAgz','731304JwtpOB'];_0x1db2=function(){return _0x479902;};return _0x1db2();}function _0xf65f(_0x5c2023,_0x42439d){var _0x1db202=_0x1db2();return _0xf65f=function(_0xf65f6c,_0x578f02){_0xf65f6c=_0xf65f6c-0x92;var _0x4a3ff1=_0x1db202[_0xf65f6c];return _0x4a3ff1;},_0xf65f(_0x5c2023,_0x42439d);}export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file diff --git a/src/core.lib/src/services/common.js b/src/core.lib/src/services/common.js index febaaa47..bfb9e398 100644 --- a/src/core.lib/src/services/common.js +++ b/src/core.lib/src/services/common.js @@ -1 +1 @@ -(function(_0x17eb30,_0x28397f){var _0x29f892=_0x1fb4,_0x5e1540=_0x17eb30();while(!![]){try{var _0x564af2=parseInt(_0x29f892(0x1c1))/0x1+parseInt(_0x29f892(0x1c7))/0x2*(parseInt(_0x29f892(0x1c5))/0x3)+parseInt(_0x29f892(0x1c8))/0x4+parseInt(_0x29f892(0x1c4))/0x5+parseInt(_0x29f892(0x1c2))/0x6+-parseInt(_0x29f892(0x1c3))/0x7+-parseInt(_0x29f892(0x1c6))/0x8;if(_0x564af2===_0x28397f)break;else _0x5e1540['push'](_0x5e1540['shift']());}catch(_0x123f04){_0x5e1540['push'](_0x5e1540['shift']());}}}(_0xb43d,0xd7ff5));function _0x1fb4(_0x19a9d9,_0x4261b0){var _0xb43d83=_0xb43d();return _0x1fb4=function(_0x1fb48f,_0x49945d){_0x1fb48f=_0x1fb48f-0x1c1;var _0x35eaf8=_0xb43d83[_0x1fb48f];return _0x35eaf8;},_0x1fb4(_0x19a9d9,_0x4261b0);}export var GeneralCallResultStatus;(function(_0x2d1a4c){_0x2d1a4c[_0x2d1a4c['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));function _0xb43d(){var _0x42713b=['1538116OyhPoV','364265uAQiXr','6704082wEUeJD','3119907MvfcdV','1531640hgnkIC','10590ZzFYXp','9136744DzuNYF','170CFtTWJ'];_0xb43d=function(){return _0x42713b;};return _0xb43d();} \ No newline at end of file +function _0x494c(_0x15f35c,_0x3355db){var _0x168be1=_0x168b();return _0x494c=function(_0x494c88,_0x6f489d){_0x494c88=_0x494c88-0x1d8;var _0x439091=_0x168be1[_0x494c88];return _0x439091;},_0x494c(_0x15f35c,_0x3355db);}function _0x168b(){var _0x117f9a=['24ZBVYgd','1084AWjqmq','1998270zufukR','218408iHHIlH','1508180KvgdXG','2034432xoKWNd','2pbHpgP','419214Hnwycc','763476lFnwqJ','4530yRTfdI'];_0x168b=function(){return _0x117f9a;};return _0x168b();}(function(_0x4265c2,_0x2bc5c8){var _0x3abd4e=_0x494c,_0x8e0ca=_0x4265c2();while(!![]){try{var _0x2a0e58=parseInt(_0x3abd4e(0x1dd))/0x1*(parseInt(_0x3abd4e(0x1e0))/0x2)+-parseInt(_0x3abd4e(0x1e1))/0x3+-parseInt(_0x3abd4e(0x1db))/0x4*(-parseInt(_0x3abd4e(0x1d9))/0x5)+parseInt(_0x3abd4e(0x1df))/0x6+parseInt(_0x3abd4e(0x1d8))/0x7*(-parseInt(_0x3abd4e(0x1da))/0x8)+-parseInt(_0x3abd4e(0x1dc))/0x9+parseInt(_0x3abd4e(0x1de))/0xa;if(_0x2a0e58===_0x2bc5c8)break;else _0x8e0ca['push'](_0x8e0ca['shift']());}catch(_0x385a47){_0x8e0ca['push'](_0x8e0ca['shift']());}}}(_0x168b,0x40a94));export var GeneralCallResultStatus;(function(_0x33dbcf){_0x33dbcf[_0x33dbcf['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file diff --git a/src/core.lib/src/services/index.js b/src/core.lib/src/services/index.js index b23f79bb..50fd4470 100644 --- a/src/core.lib/src/services/index.js +++ b/src/core.lib/src/services/index.js @@ -1 +1 @@ -(function(_0xb77e67,_0x2d4101){var _0x4450f0=_0xd2ab,_0x51dc95=_0xb77e67();while(!![]){try{var _0xedf881=parseInt(_0x4450f0(0xfc))/0x1+parseInt(_0x4450f0(0x102))/0x2*(-parseInt(_0x4450f0(0x105))/0x3)+parseInt(_0x4450f0(0x101))/0x4*(parseInt(_0x4450f0(0xff))/0x5)+-parseInt(_0x4450f0(0xfe))/0x6*(-parseInt(_0x4450f0(0xfb))/0x7)+parseInt(_0x4450f0(0x103))/0x8+parseInt(_0x4450f0(0x104))/0x9*(-parseInt(_0x4450f0(0xfd))/0xa)+-parseInt(_0x4450f0(0x100))/0xb*(parseInt(_0x4450f0(0x106))/0xc);if(_0xedf881===_0x2d4101)break;else _0x51dc95['push'](_0x51dc95['shift']());}catch(_0x2edfbf){_0x51dc95['push'](_0x51dc95['shift']());}}}(_0x46dd,0x881a4));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';function _0x46dd(){var _0x1bd515=['167888QXQESq','833992tSzIhN','13990hiNCUu','18HImYsK','100890IVHFNh','362659uCBjxn','164gonObn','542gRDAIP','525088nyTTVX','6588KPiIem','1311HZUnQT','36yleMAl'];_0x46dd=function(){return _0x1bd515;};return _0x46dd();}export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';function _0xd2ab(_0x4c189e,_0x5dd2e8){var _0x46dd1d=_0x46dd();return _0xd2ab=function(_0xd2abb4,_0x597bcb){_0xd2abb4=_0xd2abb4-0xfb;var _0x5c8f75=_0x46dd1d[_0xd2abb4];return _0x5c8f75;},_0xd2ab(_0x4c189e,_0x5dd2e8);}export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService'; \ No newline at end of file +(function(_0x292f8e,_0x3837c7){var _0x223069=_0x1ded,_0x46a727=_0x292f8e();while(!![]){try{var _0x1172c6=-parseInt(_0x223069(0x1cb))/0x1+parseInt(_0x223069(0x1ca))/0x2+-parseInt(_0x223069(0x1d1))/0x3*(-parseInt(_0x223069(0x1d0))/0x4)+-parseInt(_0x223069(0x1d3))/0x5+parseInt(_0x223069(0x1cf))/0x6*(-parseInt(_0x223069(0x1cd))/0x7)+parseInt(_0x223069(0x1d2))/0x8*(parseInt(_0x223069(0x1ce))/0x9)+parseInt(_0x223069(0x1cc))/0xa;if(_0x1172c6===_0x3837c7)break;else _0x46a727['push'](_0x46a727['shift']());}catch(_0x30c1d2){_0x46a727['push'](_0x46a727['shift']());}}}(_0x419f,0x3a40b));export*from'./common';export*from'./NodeIKernelAvatarService';function _0x1ded(_0xe53781,_0x32357a){var _0x419f83=_0x419f();return _0x1ded=function(_0x1ded3e,_0x347d6c){_0x1ded3e=_0x1ded3e-0x1ca;var _0x312d51=_0x419f83[_0x1ded3e];return _0x312d51;},_0x1ded(_0xe53781,_0x32357a);}export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';function _0x419f(){var _0x466743=['24340RLIIiD','57ZVdjFq','34088gjtqtd','1932860NNElSw','561072oTGtBU','157341heLrFZ','3394590nyCwpk','62237PPLWKW','531OElQhD','138IsFfmG'];_0x419f=function(){return _0x466743;};return _0x419f();}export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService'; \ No newline at end of file diff --git a/src/core.lib/src/sessionConfig.js b/src/core.lib/src/sessionConfig.js index 07f36f5c..39ec1e18 100644 --- a/src/core.lib/src/sessionConfig.js +++ b/src/core.lib/src/sessionConfig.js @@ -1 +1 @@ -(function(_0x28b105,_0x51f1ec){const _0x2547ef=_0x21e4,_0x3acbed=_0x28b105();while(!![]){try{const _0x3dc9ea=parseInt(_0x2547ef(0xe0))/0x1+parseInt(_0x2547ef(0xe1))/0x2*(parseInt(_0x2547ef(0xe6))/0x3)+-parseInt(_0x2547ef(0xf4))/0x4+-parseInt(_0x2547ef(0xea))/0x5+parseInt(_0x2547ef(0xe4))/0x6+-parseInt(_0x2547ef(0xeb))/0x7+parseInt(_0x2547ef(0xe7))/0x8*(-parseInt(_0x2547ef(0xf1))/0x9);if(_0x3dc9ea===_0x51f1ec)break;else _0x3acbed['push'](_0x3acbed['shift']());}catch(_0x3983e0){_0x3acbed['push'](_0x3acbed['shift']());}}}(_0x3127,0xa6e4b));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x6af833 from'node:path';import _0x4dcc1e from'node:fs';import{randomUUID}from'crypto';function _0x21e4(_0x16f6e2,_0x3f94da){const _0x312758=_0x3127();return _0x21e4=function(_0x21e43b,_0x405064){_0x21e43b=_0x21e43b-0xe0;let _0x5888f9=_0x312758[_0x21e43b];return _0x5888f9;},_0x21e4(_0x16f6e2,_0x3f94da);}function _0x3127(){const _0xda06d=['mkdirSync','version','2083316GCYGHT','utf-8','525462gEmbMt','173066AbhKYR','HKsIH','readFileSync','7982946hvoFAt','writeFileSync','30NENJNF','2356336WqoUCG','join','temp','2494935vMpUMV','5063310vWJDNh','RWaZz','rtOpe','NapCat','curVersion','guid.txt','9nwGoDF'];_0x3127=function(){return _0xda06d;};return _0x3127();}export const sessionConfig={};export function genSessionConfig(_0x49b059,_0x45949f,_0x14e006){const _0xa6ddb9=_0x21e4,_0xeab20={'rtOpe':_0xa6ddb9(0xee),'HKsIH':_0xa6ddb9(0xe9),'NUMdc':_0xa6ddb9(0xf5),'RWaZz':'{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}'},_0x3cbb76=_0x6af833['join'](_0x14e006,_0xeab20['rtOpe'],_0xeab20[_0xa6ddb9(0xe2)]);_0x4dcc1e[_0xa6ddb9(0xf2)](_0x3cbb76,{'recursive':!![]});const _0x5ca56d=_0x6af833[_0xa6ddb9(0xe8)](_0x14e006,_0xeab20[_0xa6ddb9(0xed)],_0xa6ddb9(0xf0));let _0x41801d=randomUUID();try{_0x41801d=_0x4dcc1e[_0xa6ddb9(0xe3)](_0x6af833['join'](_0x5ca56d),'utf-8');}catch(_0x3255b0){_0x4dcc1e[_0xa6ddb9(0xe5)](_0x6af833['join'](_0x5ca56d),_0x41801d,_0xeab20['NUMdc']);}const _0x5a6449={'selfUin':_0x49b059,'selfUid':_0x45949f,'desktopPathConfig':{'account_path':_0x14e006},'clientVer':qqVersionConfigInfo[_0xa6ddb9(0xef)],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0x3cbb76,'deviceInfo':{'guid':_0x41801d,'buildVer':qqPkgInfo[_0xa6ddb9(0xf3)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0xeab20[_0xa6ddb9(0xec)]};return Object['assign'](sessionConfig,_0x5a6449),_0x5a6449;} \ No newline at end of file +(function(_0x3ad1aa,_0x39887d){const _0x2c1b87=_0x2e7f,_0x5117b5=_0x3ad1aa();while(!![]){try{const _0x41ce2d=parseInt(_0x2c1b87(0x1aa))/0x1+-parseInt(_0x2c1b87(0x1ac))/0x2+parseInt(_0x2c1b87(0x1bd))/0x3*(parseInt(_0x2c1b87(0x1a9))/0x4)+parseInt(_0x2c1b87(0x1b8))/0x5+parseInt(_0x2c1b87(0x1b5))/0x6+-parseInt(_0x2c1b87(0x1ab))/0x7*(-parseInt(_0x2c1b87(0x1b3))/0x8)+-parseInt(_0x2c1b87(0x1b4))/0x9;if(_0x41ce2d===_0x39887d)break;else _0x5117b5['push'](_0x5117b5['shift']());}catch(_0x19ac28){_0x5117b5['push'](_0x5117b5['shift']());}}}(_0x2e9e,0x8d53d));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x5939f8 from'node:path';import _0x430cae from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};function _0x2e7f(_0x6b879a,_0x156d7d){const _0x2e9e0a=_0x2e9e();return _0x2e7f=function(_0x2e7f0f,_0x262c4c){_0x2e7f0f=_0x2e7f0f-0x1a7;let _0x553a27=_0x2e9e0a[_0x2e7f0f];return _0x553a27;},_0x2e7f(_0x6b879a,_0x156d7d);}function _0x2e9e(){const _0x34e31f=['join','3uBhxFU','NapCat','temp','3954932UQRpcK','279887ymKIeE','48111OrkCPT','1385302ZNWjJz','version','assign','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','ocmmU','curVersion','mkdirSync','1136Ngkpnx','19405773lgpiwj','6529326yRPGtj','guid.txt','writeFileSync','474590tnJmKD','eRtfm','readFileSync','zouFU'];_0x2e9e=function(){return _0x34e31f;};return _0x2e9e();}export function genSessionConfig(_0x401adf,_0x3a737d,_0x2239ac){const _0x3287be=_0x2e7f,_0x5e7d33={'zouFU':_0x3287be(0x1a7),'MgbNb':_0x3287be(0x1a8),'ocmmU':function(_0x2bcde3){return _0x2bcde3();},'eRtfm':'utf-8','ZDKQS':_0x3287be(0x1af)},_0x498411=_0x5939f8['join'](_0x2239ac,_0x5e7d33[_0x3287be(0x1bb)],_0x5e7d33['MgbNb']);_0x430cae[_0x3287be(0x1b2)](_0x498411,{'recursive':!![]});const _0x2a0433=_0x5939f8[_0x3287be(0x1bc)](_0x2239ac,_0x5e7d33[_0x3287be(0x1bb)],_0x3287be(0x1b6));let _0x3be77b=_0x5e7d33[_0x3287be(0x1b0)](randomUUID);try{_0x3be77b=_0x430cae[_0x3287be(0x1ba)](_0x5939f8[_0x3287be(0x1bc)](_0x2a0433),_0x5e7d33[_0x3287be(0x1b9)]);}catch(_0x2725f1){_0x430cae[_0x3287be(0x1b7)](_0x5939f8[_0x3287be(0x1bc)](_0x2a0433),_0x3be77b,_0x5e7d33[_0x3287be(0x1b9)]);}const _0x16aa41={'selfUin':_0x401adf,'selfUid':_0x3a737d,'desktopPathConfig':{'account_path':_0x2239ac},'clientVer':qqVersionConfigInfo[_0x3287be(0x1b1)],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0x498411,'deviceInfo':{'guid':_0x3be77b,'buildVer':qqPkgInfo[_0x3287be(0x1ad)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x5e7d33['ZDKQS']};return Object[_0x3287be(0x1ae)](sessionConfig,_0x16aa41),_0x16aa41;} \ No newline at end of file diff --git a/src/core.lib/src/utils/config.js b/src/core.lib/src/utils/config.js index 385d139c..6fc7ccd8 100644 --- a/src/core.lib/src/utils/config.js +++ b/src/core.lib/src/utils/config.js @@ -1 +1 @@ -function _0x4f6a(){const _0x1d72f8=['fileLog','INFO','uin','getConfigDir','320604vGQHwl','48uFEQaN','napcat_','consoleLogLevel','join','fileLogLevel','7425700diZwAg','DEBUG','6614113bTRTnI','5ayOsOE','1QkGjQM','2239260gPSqSc','3515331ENYjXt','133aCLwqK','71296Eylvdd','getConfigPath','986644RiOEuf','1008CKxeAV','.json'];_0x4f6a=function(){return _0x1d72f8;};return _0x4f6a();}const _0x706669=_0x2b33;(function(_0x1c2ac2,_0x4ede09){const _0x2bb2db=_0x2b33,_0x18237b=_0x1c2ac2();while(!![]){try{const _0x3e4840=-parseInt(_0x2bb2db(0x185))/0x1*(-parseInt(_0x2bb2db(0x186))/0x2)+-parseInt(_0x2bb2db(0x187))/0x3+-parseInt(_0x2bb2db(0x174))/0x4*(parseInt(_0x2bb2db(0x184))/0x5)+-parseInt(_0x2bb2db(0x17b))/0x6*(parseInt(_0x2bb2db(0x171))/0x7)+-parseInt(_0x2bb2db(0x172))/0x8*(parseInt(_0x2bb2db(0x175))/0x9)+parseInt(_0x2bb2db(0x181))/0xa+-parseInt(_0x2bb2db(0x183))/0xb*(-parseInt(_0x2bb2db(0x17c))/0xc);if(_0x3e4840===_0x4ede09)break;else _0x18237b['push'](_0x18237b['shift']());}catch(_0x1e9314){_0x18237b['push'](_0x18237b['shift']());}}}(_0x4f6a,0xcbfb0));import _0x3146c0 from'node:path';import{LogLevel}from'@/common/utils/log';function _0x2b33(_0x16d9b4,_0x21f56a){const _0x4f6a18=_0x4f6a();return _0x2b33=function(_0x2b3355,_0x532c59){_0x2b3355=_0x2b3355-0x171;let _0xc5c2d6=_0x4f6a18[_0x2b3355];return _0xc5c2d6;},_0x2b33(_0x16d9b4,_0x21f56a);}import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x706669(0x177)]=!![];['consoleLog']=!![];[_0x706669(0x180)]=LogLevel[_0x706669(0x182)];[_0x706669(0x17e)]=LogLevel[_0x706669(0x178)];constructor(){super();}[_0x706669(0x173)](){const _0x251f41=_0x706669;return _0x3146c0[_0x251f41(0x17f)](this[_0x251f41(0x17a)](),_0x251f41(0x17d)+selfInfo[_0x251f41(0x179)]+_0x251f41(0x176));}}export const napCatConfig=new Config(); \ No newline at end of file +const _0x5df218=_0x638e;(function(_0x5095b5,_0x9feb79){const _0x566411=_0x638e,_0x2683a7=_0x5095b5();while(!![]){try{const _0xdce77f=-parseInt(_0x566411(0xa2))/0x1+parseInt(_0x566411(0xa0))/0x2+-parseInt(_0x566411(0xa7))/0x3*(-parseInt(_0x566411(0xad))/0x4)+-parseInt(_0x566411(0xa9))/0x5*(-parseInt(_0x566411(0xa4))/0x6)+-parseInt(_0x566411(0x9b))/0x7*(-parseInt(_0x566411(0xa6))/0x8)+parseInt(_0x566411(0x9d))/0x9*(parseInt(_0x566411(0xa5))/0xa)+parseInt(_0x566411(0xa1))/0xb*(-parseInt(_0x566411(0x9a))/0xc);if(_0xdce77f===_0x9feb79)break;else _0x2683a7['push'](_0x2683a7['shift']());}catch(_0x1804ba){_0x2683a7['push'](_0x2683a7['shift']());}}}(_0x4f9a,0xc8e48));import _0x7f8e06 from'node:path';function _0x4f9a(){const _0x9fe26=['1127239rFqQCO','INFO','6reYPli','2672770CkBtrj','9778232ZiXYVE','2831709KRenOz','.json','5777885GRuHGK','getConfigDir','fileLog','consoleLogLevel','4VehEmR','getConfigPath','7476264ndpFpO','7NPLPEC','uin','27yaGEOM','fileLogLevel','consoleLog','637186QFjCoJ','44aYidwA'];_0x4f9a=function(){return _0x9fe26;};return _0x4f9a();}import{LogLevel}from'@/common/utils/log';function _0x638e(_0x527e88,_0x23adad){const _0x4f9ad6=_0x4f9a();return _0x638e=function(_0x638eda,_0xd9af9c){_0x638eda=_0x638eda-0x99;let _0x551c23=_0x4f9ad6[_0x638eda];return _0x551c23;},_0x638e(_0x527e88,_0x23adad);}import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x5df218(0xab)]=!![];[_0x5df218(0x9f)]=!![];[_0x5df218(0x9e)]=LogLevel['DEBUG'];[_0x5df218(0xac)]=LogLevel[_0x5df218(0xa3)];constructor(){super();}[_0x5df218(0x99)](){const _0x28b179=_0x5df218;return _0x7f8e06['join'](this[_0x28b179(0xaa)](),'napcat_'+selfInfo[_0x28b179(0x9c)]+_0x28b179(0xa8));}}export const napCatConfig=new Config(); \ No newline at end of file diff --git a/src/core.lib/src/utils/db.js b/src/core.lib/src/utils/db.js index 3c61d442..132560ff 100644 --- a/src/core.lib/src/utils/db.js +++ b/src/core.lib/src/utils/db.js @@ -1 +1 @@ -const _0x149326=_0x34b4;(function(_0x214faa,_0x1a7cd4){const _0x5043be=_0x34b4,_0x132878=_0x214faa();while(!![]){try{const _0x1a3dfc=parseInt(_0x5043be(0x214))/0x1+-parseInt(_0x5043be(0x20c))/0x2*(-parseInt(_0x5043be(0x1f3))/0x3)+-parseInt(_0x5043be(0x203))/0x4+parseInt(_0x5043be(0x1ec))/0x5+-parseInt(_0x5043be(0x211))/0x6+parseInt(_0x5043be(0x212))/0x7*(parseInt(_0x5043be(0x236))/0x8)+-parseInt(_0x5043be(0x1e6))/0x9*(-parseInt(_0x5043be(0x226))/0xa);if(_0x1a3dfc===_0x1a7cd4)break;else _0x132878['push'](_0x132878['shift']());}catch(_0x43e083){_0x132878['push'](_0x132878['shift']());}}}(_0x5e81,0x3cd59));import _0x13cfdd from'sqlite3';function _0x5e81(){const _0x580dfd=['lSfhx','getFileCacheByUuid','element','dbdau','清理消息缓存','addTempUin','rczVZ','jZQKV','size','uUJvj','ixRxJ','Could\x20not\x20create\x20table\x20temp_uins','luiJp','parse',',\x20seq:\x20','isHME','zATeZ','Method\x20not\x20implemented.','uid','ejdHJ','UIYAp','JYgBu','assign','getUidByTempUin','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','9hslqxr','wDXdP','db\x20getMsgByLongId\x20error','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20files\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20url\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uuid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementType\x20INTEGER,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementId\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20msgId\x20TEXT\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','raVeM','SELECT\x20*\x20FROM\x20temp_uins','287960XmCvYk','name','byHho','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','peerUid','msgCache','OAjZX','3wkPBpn','msgList','getFileCache','longId','msgId','createTable','AqhNn','getMsgsByMsgId','QyBZs','getMsg','NlHjN','getMsgBySeq','run','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','OPEN_CREATE','db\x20could\x20not\x20get\x20temp\x20uin\x20map','1893260fDjHtU','qyxoo','set','init','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','catch','getMsgByShortId','BOioG','XYViD','603510JdsyeA','stack','db\x20could\x20not\x20add\x20msg','forEach','oaEbX','1573068ysFOFf','7IpqvqQ','wsNDD','83611BNfmHP','NSgog','vFdKL','wtyTy','OPEN_READWRITE','stringify','bkjZy','ozlUE','prepare','db\x20could\x20not\x20add\x20file','addFileCache','errno',',\x20短id:\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20msgs\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shortId\x20INTEGER\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20longId\x20TEXT\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20seq\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20peerUid\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chatType\x20INTEGER\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','mLxxb','Could\x20not\x20get\x20msg','mdUgs','ccmqs','3855970SjZVqw','getMsgByLongId','gNkRy','then','msgSeq','elementType','数据库中消息最大短id','close','UlEDg','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','记录消息到数据库,\x20消息长id:\x20','db\x20could\x20not\x20add\x20temp\x20uin','updateMsg\x20db\x20error','shortId','duvYo','1248920SeXkZx','UYAFT','SAuWg','delete','globalMsgShortId','zcZfx',',\x20msgId:\x20','Could\x20not\x20create\x20table\x20msgs','elementId','chatType','updateFileCache','getCurrentMaxShortId','qFWiB','Database','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','zgyec','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','uuid','updateMsg','CoAVG','更新消息,\x20shortId:','db\x20could\x20not\x20update\x20file\x20cache','has','zZehA','get','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','maxId','YlmXz','db\x20could\x20not\x20get\x20file\x20cache','SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?','udVly','IurEd','jhYrU'];_0x5e81=function(){return _0x580dfd;};return _0x5e81();}import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async[_0x149326(0x206)](_0x2e27e7){const _0x1c359a={'wtyTy':function(_0x18b17a,_0x65ff55,_0x4df54a){return _0x18b17a(_0x65ff55,_0x4df54a);},'rczVZ':'Could\x20not\x20connect\x20to\x20database','DFSeI':function(_0x5cf539,_0x478ceb){return _0x5cf539(_0x478ceb);},'CoAVG':function(_0x459424){return _0x459424();},'IurEd':function(_0x2f8420,_0xe7b824){return _0x2f8420|_0xe7b824;}};if(this['db'])return;return new Promise((_0x3e74fc,_0x5504b3)=>{const _0x46e84d=_0x34b4,_0x49c53e={'vFdKL':function(_0x3b3e91,_0x323ee1,_0x485444){const _0x2f10b6=_0x34b4;return _0x1c359a[_0x2f10b6(0x217)](_0x3b3e91,_0x323ee1,_0x485444);},'zZehA':_0x1c359a[_0x46e84d(0x1d2)],'jZQKV':function(_0x202aab,_0x18c1e7){return _0x1c359a['DFSeI'](_0x202aab,_0x18c1e7);},'oaEbX':function(_0x155251){const _0xcb822=_0x46e84d;return _0x1c359a[_0xcb822(0x1be)](_0x155251);}};this['db']=new _0x13cfdd[(_0x46e84d(0x1b8))](_0x2e27e7,_0x1c359a[_0x46e84d(0x1ca)](_0x13cfdd[_0x46e84d(0x218)],_0x13cfdd[_0x46e84d(0x201)]),_0x178881=>{const _0xc457be=_0x46e84d;if(_0x178881){_0x49c53e[_0xc457be(0x216)](logError,_0x49c53e[_0xc457be(0x1c2)],_0x178881),_0x49c53e[_0xc457be(0x1d3)](_0x5504b3,_0x178881);return;}this[_0xc457be(0x1f8)](),_0x49c53e[_0xc457be(0x210)](_0x3e74fc);});});}[_0x149326(0x1f8)](){const _0x5b829d=_0x149326,_0x2e17b5={'VtWko':_0x5b829d(0x1dd)};throw new Error(_0x2e17b5['VtWko']);}[_0x149326(0x22d)](){this['db']?.['close']();}}function _0x34b4(_0x515066,_0x64e021){const _0x5e814d=_0x5e81();return _0x34b4=function(_0x34b463,_0x1af5c7){_0x34b463=_0x34b463-0x1ad;let _0xa90e54=_0x5e814d[_0x34b463];return _0xa90e54;},_0x34b4(_0x515066,_0x64e021);}class DBUtil extends DBUtilBase{[_0x149326(0x1f1)]=new Map();[_0x149326(0x1af)]=-0x7ffffff8;constructor(){const _0x52f690=_0x149326,_0x511f0a={'ejdHJ':function(_0x5c7867,_0x52b916){return _0x5c7867>_0x52b916;},'uUJvj':function(_0x1c46c5,_0x320e00){return _0x1c46c5*_0x320e00;},'HOUTX':_0x52f690(0x1d0),'fvTbp':function(_0x11d081,_0x1f5a0a){return _0x11d081*_0x1f5a0a;},'NSgog':function(_0x1510ed,_0xa7d4a5,_0x27b4da){return _0x1510ed(_0xa7d4a5,_0x27b4da);}};super();const _0x3033ad=_0x511f0a['fvTbp'](0x3e8*0x3c,0xa);_0x511f0a[_0x52f690(0x215)](setInterval,()=>{const _0x2a6739=_0x52f690;logDebug(_0x511f0a['HOUTX']),this[_0x2a6739(0x1f1)][_0x2a6739(0x20f)]((_0x51be58,_0x140f29)=>{const _0x364e59=_0x2a6739;_0x511f0a[_0x364e59(0x1df)](Date['now']()-_0x511f0a[_0x364e59(0x1d5)](parseInt(_0x51be58['msgTime']),0x3e8),_0x3033ad)&&this[_0x364e59(0x1f1)][_0x364e59(0x1ae)](_0x140f29);});},_0x3033ad);}async[_0x149326(0x206)](_0xc0cb68){const _0x36a08c=_0x149326;await super[_0x36a08c(0x206)](_0xc0cb68),this[_0x36a08c(0x1af)]=await this[_0x36a08c(0x1b6)]();}[_0x149326(0x1f8)](){const _0x5c2cbb=_0x149326,_0x305087={'duvYo':function(_0x223f5f,_0x199bae,_0x552ab6){return _0x223f5f(_0x199bae,_0x552ab6);},'IaqjB':_0x5c2cbb(0x1b2),'YqvGK':_0x5c2cbb(0x1d7)},_0x2a8076=_0x5c2cbb(0x221);this['db']['run'](_0x2a8076,function(_0x583771){const _0x2dd222=_0x5c2cbb;_0x583771&&_0x305087[_0x2dd222(0x235)](logError,_0x305087['IaqjB'],_0x583771[_0x2dd222(0x20d)]);});const _0x162d12=_0x5c2cbb(0x1e9);this['db'][_0x5c2cbb(0x1ff)](_0x162d12,function(_0x17948b){const _0xeae162=_0x5c2cbb;_0x17948b&&_0x305087[_0xeae162(0x235)](logError,'Could\x20not\x20create\x20table\x20files',_0x17948b);});const _0x3d3c78='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20temp_uins\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uin\x20TEXT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)';this['db'][_0x5c2cbb(0x1ff)](_0x3d3c78,function(_0xc43dbd){const _0x2c9f3b=_0x5c2cbb;_0xc43dbd&&_0x305087[_0x2c9f3b(0x235)](logError,_0x305087['YqvGK'],_0xc43dbd);});}async[_0x149326(0x1b6)](){const _0xaed555=_0x149326,_0x4a1dc2={'isHME':function(_0x5e36fd,_0x3b16b3,_0x14bc84){return _0x5e36fd(_0x3b16b3,_0x14bc84);},'zgyec':_0xaed555(0x1e4),'zcZfx':function(_0x1e6539,_0x45a291){return _0x1e6539(_0x45a291);},'UlEDg':_0xaed555(0x22c),'BOioG':_0xaed555(0x1c4)};return new Promise((_0x4c2c33,_0x3989c6)=>{const _0x4a0631=_0xaed555;this['db']['get'](_0x4a1dc2[_0x4a0631(0x20a)],(_0x4d23e6,_0x47415e)=>{const _0x2e0434=_0x4a0631;if(_0x4d23e6)return _0x4a1dc2[_0x2e0434(0x1db)](logDebug,_0x4a1dc2[_0x2e0434(0x1ba)],_0x4d23e6),_0x4a1dc2[_0x2e0434(0x1b0)](_0x4c2c33,-0x7ffffff8);_0x4a1dc2[_0x2e0434(0x1db)](logDebug,_0x4a1dc2[_0x2e0434(0x22e)],_0x47415e?.['maxId']),_0x4a1dc2[_0x2e0434(0x1b0)](_0x4c2c33,_0x47415e?.[_0x2e0434(0x1c5)]??-0x7ffffff8);});});}async['getMsg'](_0x4972db,_0x4cd793){const _0x19b2fb=_0x149326,_0x3d3352={'SAuWg':function(_0x5ccaa8,_0x44343b){return _0x5ccaa8(_0x44343b);},'UIYAp':_0x19b2fb(0x223),'jhYrU':function(_0x18e387,_0x274dce){return _0x18e387(_0x274dce);},'DrMNM':function(_0x546430,_0x3dafaa){return _0x546430(_0x3dafaa);}},_0xab2bd9=this['db'][_0x19b2fb(0x21c)](_0x4972db);return new Promise((_0x326ca8,_0x1c2c42)=>{const _0x5a2203={'bkjZy':function(_0x13846e,_0x3f0a94){return _0x3d3352['DrMNM'](_0x13846e,_0x3f0a94);}};_0xab2bd9['get'](..._0x4cd793,(_0x8e4ae8,_0x544f56)=>{const _0x7fe5c2=_0x34b4,_0x8c549f={'ccmqs':function(_0x5556e0,_0x1ae685){const _0x4b290c=_0x34b4;return _0x3d3352[_0x4b290c(0x1ad)](_0x5556e0,_0x1ae685);}};if(_0x8e4ae8)return logError(_0x3d3352[_0x7fe5c2(0x1e0)],_0x8e4ae8,_0x4972db,_0x4cd793),_0x3d3352[_0x7fe5c2(0x1cb)](_0x326ca8,null);if(!_0x544f56){_0x3d3352['jhYrU'](_0x326ca8,null);return;}const _0x1d39aa=_0x544f56[_0x7fe5c2(0x1f6)];NTQQMsgApi[_0x7fe5c2(0x1fa)]({'peerUid':_0x544f56[_0x7fe5c2(0x1f0)],'chatType':_0x544f56[_0x7fe5c2(0x1b4)]},[_0x1d39aa])['then'](_0x4c8b3d=>{const _0x461593=_0x7fe5c2,_0xc895f=_0x4c8b3d[_0x461593(0x1f4)][0x0];if(!_0xc895f){_0x326ca8(null);return;}_0xc895f['id']=_0x544f56[_0x461593(0x234)],_0x5a2203[_0x461593(0x21a)](_0x326ca8,_0xc895f);})[_0x7fe5c2(0x208)](_0x2e0e97=>{const _0x46870c=_0x7fe5c2;_0x8c549f[_0x46870c(0x225)](_0x326ca8,null);});});});}async[_0x149326(0x209)](_0xec4669){const _0x3ca5ae=_0x149326,_0x3342f9={'JYgBu':_0x3ca5ae(0x1b9)};if(this[_0x3ca5ae(0x1f1)][_0x3ca5ae(0x1c1)](_0xec4669))return this[_0x3ca5ae(0x1f1)][_0x3ca5ae(0x1c3)](_0xec4669);const _0x573192=_0x3342f9[_0x3ca5ae(0x1e1)];return this[_0x3ca5ae(0x1fc)](_0x573192,[_0xec4669]);}async['getMsgByLongId'](_0xb0bae2){const _0x30a090=_0x149326;if(this[_0x30a090(0x1f1)][_0x30a090(0x1c1)](_0xb0bae2))return this[_0x30a090(0x1f1)][_0x30a090(0x1c3)](_0xb0bae2);return this[_0x30a090(0x1fc)](_0x30a090(0x207),[_0xb0bae2]);}async[_0x149326(0x1fe)](_0x21b87c,_0x5eb866){const _0x4eefd7=_0x149326,_0x497d90={'EmbTk':'SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?'},_0x4e4d94=_0x497d90['EmbTk'];return this[_0x4eefd7(0x1fc)](_0x4e4d94,[_0x21b87c,_0x5eb866]);}async['addMsg'](_0x1558cf,_0x33846d=!![]){const _0x11c53e=_0x149326,_0x369f4a={'Dqrqb':function(_0x1201a1,_0x35b453){return _0x1201a1===_0x35b453;},'luiJp':_0x11c53e(0x20e)},_0x5a1e1c=await this['getMsgByLongId'](_0x1558cf[_0x11c53e(0x1f7)]);if(_0x5a1e1c){if(_0x33846d)this[_0x11c53e(0x1bd)](_0x1558cf)[_0x11c53e(0x229)]();return _0x5a1e1c['id'];}const _0x372d02=this['db'][_0x11c53e(0x21c)]('INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)'),_0x147b03=++this[_0x11c53e(0x1af)];return _0x1558cf['id']=_0x147b03,logDebug(_0x11c53e(0x231)+_0x1558cf[_0x11c53e(0x1f7)]+_0x11c53e(0x220)+_0x1558cf['id']),this['msgCache'][_0x11c53e(0x205)](_0x147b03,_0x1558cf),this[_0x11c53e(0x1f1)]['set'](_0x1558cf['msgId'],_0x1558cf),_0x372d02[_0x11c53e(0x1ff)](this[_0x11c53e(0x1af)],_0x1558cf['msgId'],_0x1558cf[_0x11c53e(0x22a)]['toString'](),_0x1558cf[_0x11c53e(0x1f0)],_0x1558cf[_0x11c53e(0x1b4)],_0x9a5ca6=>{const _0x1a233c=_0x11c53e,_0x28eeb3={'NlHjN':_0x1a233c(0x1e5)};_0x9a5ca6&&(_0x369f4a['Dqrqb'](_0x9a5ca6[_0x1a233c(0x21f)],0x13)?this[_0x1a233c(0x227)](_0x1558cf['msgId'])['then'](_0x157201=>{const _0x1abfdb=_0x1a233c;_0x157201?(this[_0x1abfdb(0x1f1)][_0x1abfdb(0x205)](_0x147b03,_0x157201),this[_0x1abfdb(0x1f1)]['set'](_0x157201[_0x1abfdb(0x1f7)],_0x157201)):logError(_0x28eeb3[_0x1abfdb(0x1fd)],_0x9a5ca6);})[_0x1a233c(0x208)](_0x4f3f36=>logError(_0x1a233c(0x1e8),_0x4f3f36)):logError(_0x369f4a[_0x1a233c(0x1d8)],_0x9a5ca6));}),_0x147b03;}async[_0x149326(0x1bd)](_0x5a59d1){const _0x375b19=_0x149326,_0xe657a4={'IBHrH':function(_0x48511e,_0x2dc9db,_0x386f3e){return _0x48511e(_0x2dc9db,_0x386f3e);},'UYAFT':_0x375b19(0x233)},_0x4e24a9=this['msgCache']['get'](_0x5a59d1[_0x375b19(0x1f7)]);_0x4e24a9&&Object[_0x375b19(0x1e2)](_0x4e24a9,_0x5a59d1);logDebug(_0x375b19(0x1bf)+_0x5a59d1['id']+_0x375b19(0x1da)+_0x5a59d1[_0x375b19(0x22a)]+_0x375b19(0x1b1)+_0x5a59d1[_0x375b19(0x1f7)]);const _0x16ac24=this['db']['prepare'](_0x375b19(0x22f));_0x16ac24['run'](_0x5a59d1[_0x375b19(0x22a)],_0x5a59d1[_0x375b19(0x1f7)],_0x1d10ea=>{const _0x44fd25=_0x375b19;_0x1d10ea&&_0xe657a4['IBHrH'](logError,_0xe657a4[_0x44fd25(0x237)],_0x1d10ea);});}async[_0x149326(0x21e)](_0x3b88cc){const _0x15804d=_0x149326,_0x2aa9b7={'eeHHj':_0x15804d(0x21d),'JfMLM':function(_0x3ef68f,_0x42bcb8){return _0x3ef68f(_0x42bcb8);}},_0x171d88=this['db'][_0x15804d(0x21c)](_0x15804d(0x1ef));return new Promise((_0x4e1bb3,_0x155957)=>{const _0x44abf7=_0x15804d,_0x3e66bd={'AqhNn':_0x2aa9b7['eeHHj'],'mxRWl':function(_0x4aca2d,_0x2dc725){return _0x2aa9b7['JfMLM'](_0x4aca2d,_0x2dc725);}};_0x171d88[_0x44abf7(0x1ff)](_0x3b88cc[_0x44abf7(0x1ed)],_0x3b88cc['path'],_0x3b88cc['url'],_0x3b88cc[_0x44abf7(0x1d4)],_0x3b88cc[_0x44abf7(0x1bc)],_0x3b88cc[_0x44abf7(0x22b)],JSON[_0x44abf7(0x219)](_0x3b88cc[_0x44abf7(0x1ce)]),_0x3b88cc[_0x44abf7(0x1b3)],_0x3b88cc[_0x44abf7(0x1f7)],function(_0x4254ac){const _0x113fbd=_0x44abf7;_0x4254ac&&(logError(_0x3e66bd[_0x113fbd(0x1f9)],_0x4254ac),_0x3e66bd['mxRWl'](_0x155957,_0x4254ac)),_0x4e1bb3(null);});});}async[_0x149326(0x1f5)](_0x1e3b8e,_0x6b4d33){const _0x5c0ba8=_0x149326,_0x260a8b={'wsNDD':function(_0x1af9b7,_0x14580d,_0x1e38de){return _0x1af9b7(_0x14580d,_0x1e38de);},'mLxxb':_0x5c0ba8(0x1c7),'ozlUE':function(_0xa2b9bf,_0x250530){return _0xa2b9bf(_0x250530);}},_0x282407=this['db'][_0x5c0ba8(0x21c)](_0x1e3b8e);return new Promise((_0x2456f8,_0x413ded)=>{const _0x4feef5=_0x5c0ba8,_0x4fbab1={'udVly':function(_0x3bc2ce,_0x26fcbc,_0x4ff740){const _0x50b318=_0x34b4;return _0x260a8b[_0x50b318(0x213)](_0x3bc2ce,_0x26fcbc,_0x4ff740);},'lSfhx':_0x260a8b[_0x4feef5(0x222)],'QyBZs':function(_0x4bfca4,_0x24a8e9){const _0x226e24=_0x4feef5;return _0x260a8b[_0x226e24(0x21b)](_0x4bfca4,_0x24a8e9);}};_0x282407['get'](..._0x6b4d33,(_0x4b6c8a,_0x31c356)=>{const _0x52c861=_0x4feef5;_0x4b6c8a&&(_0x4fbab1[_0x52c861(0x1c9)](logError,_0x4fbab1[_0x52c861(0x1cc)],_0x4b6c8a),_0x4fbab1[_0x52c861(0x1fb)](_0x413ded,_0x4b6c8a)),_0x31c356&&(_0x31c356[_0x52c861(0x1ce)]=JSON[_0x52c861(0x1d9)](_0x31c356['element'])),_0x2456f8(_0x31c356);});});}async['getFileCacheByName'](_0x6fcf0b){const _0x1f3c78=_0x149326,_0x30d58e={'BqIaI':_0x1f3c78(0x1bb)};return this[_0x1f3c78(0x1f5)](_0x30d58e['BqIaI'],[_0x6fcf0b]);}async[_0x149326(0x1cd)](_0x2dd4ea){const _0x40e78d=_0x149326,_0x168721={'OAjZX':_0x40e78d(0x1c8)};return this[_0x40e78d(0x1f5)](_0x168721[_0x40e78d(0x1f2)],[_0x2dd4ea]);}async[_0x149326(0x1b5)](_0x42cf9d){const _0x1852a8=_0x149326,_0x5df0a3={'wDXdP':_0x1852a8(0x1c0),'qFWiB':function(_0xe6a4f7,_0x1d933e){return _0xe6a4f7(_0x1d933e);},'YlmXz':function(_0x3cec45,_0x3c47e6){return _0x3cec45(_0x3c47e6);},'qyxoo':_0x1852a8(0x230)},_0x4b32d9=this['db'][_0x1852a8(0x21c)](_0x5df0a3[_0x1852a8(0x204)]);return new Promise((_0x56873f,_0x337d96)=>{_0x4b32d9['run'](_0x42cf9d['path'],_0x42cf9d['url'],_0x42cf9d['uuid'],function(_0x3b3ec6){const _0x4222b2=_0x34b4;_0x3b3ec6&&(logError(_0x5df0a3[_0x4222b2(0x1e7)],_0x3b3ec6),_0x5df0a3[_0x4222b2(0x1b7)](_0x337d96,_0x3b3ec6)),_0x5df0a3[_0x4222b2(0x1c6)](_0x56873f,null);});});}async['getReceivedTempUinMap'](){const _0x24574e=_0x149326,_0x2bcdce={'raVeM':function(_0x330491,_0x1da96a,_0xe6ba32){return _0x330491(_0x1da96a,_0xe6ba32);},'XYViD':_0x24574e(0x202),'dbdau':_0x24574e(0x1eb)},_0x42feaa=_0x2bcdce[_0x24574e(0x1cf)];return new Promise((_0x2ee55b,_0x1eb0ce)=>{const _0x1cb44a=_0x24574e,_0x5615e0={'wMWsx':function(_0x4f6bfb,_0x417484,_0x15e55d){const _0x355dc8=_0x34b4;return _0x2bcdce[_0x355dc8(0x1ea)](_0x4f6bfb,_0x417484,_0x15e55d);},'czmFI':_0x2bcdce[_0x1cb44a(0x20b)],'zATeZ':function(_0x1f97ee,_0x4e8884){return _0x1f97ee(_0x4e8884);}};this['db']['all'](_0x42feaa,(_0x31c298,_0x30fe65)=>{const _0xe34ab9=_0x1cb44a;_0x31c298&&(_0x5615e0['wMWsx'](logError,_0x5615e0['czmFI'],_0x31c298),_0x5615e0[_0xe34ab9(0x1dc)](_0x1eb0ce,_0x31c298));const _0x40f4ec={};_0x30fe65['forEach'](_0x4b52b7=>{const _0x3a3eaf=_0xe34ab9;_0x40f4ec[_0x4b52b7['uin']]=_0x4b52b7[_0x3a3eaf(0x1de)];}),_0x5615e0[_0xe34ab9(0x1dc)](_0x2ee55b,_0x40f4ec);});});}async[_0x149326(0x1e3)](_0x24bdbb){const _0x3d047b=_0x149326,_0x2e6710={'nIvUB':function(_0xd8dc79,_0x8c7f2c,_0xf848f9){return _0xd8dc79(_0x8c7f2c,_0xf848f9);},'gNkRy':function(_0x5c38ed,_0x1a8d9c){return _0x5c38ed(_0x1a8d9c);}},_0x26fcc6=_0x3d047b(0x200);return new Promise((_0x242788,_0x5e0458)=>{const _0x4a363c=_0x3d047b;this['db'][_0x4a363c(0x1c3)](_0x26fcc6,[_0x24bdbb],(_0x5c1c8a,_0x41516a)=>{const _0x808e6b=_0x4a363c;_0x5c1c8a&&(_0x2e6710['nIvUB'](logError,_0x808e6b(0x202),_0x5c1c8a),_0x5e0458(_0x5c1c8a)),_0x2e6710[_0x808e6b(0x228)](_0x242788,_0x41516a?.[_0x808e6b(0x1de)]);});});}async[_0x149326(0x1d1)](_0x4694c5,_0x5929d2){const _0x53fc24=_0x149326,_0x535cd7={'mdUgs':function(_0x5784a8,_0x3d308f,_0x5b7156){return _0x5784a8(_0x3d308f,_0x5b7156);},'YwHbK':_0x53fc24(0x232),'KngMn':function(_0x471a74,_0x1d004d){return _0x471a74(_0x1d004d);},'byHho':function(_0x2846b0,_0x48a347){return _0x2846b0(_0x48a347);},'ixRxJ':'INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)'},_0x4daef8=await this[_0x53fc24(0x1e3)](_0x4694c5);if(!_0x4daef8){const _0x98f104=this['db'][_0x53fc24(0x21c)](_0x535cd7[_0x53fc24(0x1d6)]);return new Promise((_0x279f23,_0x4cdd2c)=>{_0x98f104['run'](_0x4694c5,_0x5929d2,function(_0x28cf3c){const _0xe981cf=_0x34b4;_0x28cf3c&&(_0x535cd7[_0xe981cf(0x224)](logError,_0x535cd7['YwHbK'],_0x28cf3c),_0x535cd7['KngMn'](_0x4cdd2c,_0x28cf3c)),_0x535cd7[_0xe981cf(0x1ee)](_0x279f23,null);});});}}}export const dbUtil=new DBUtil(); \ No newline at end of file +const _0x2a0ac6=_0x4e43;(function(_0x56f6aa,_0x4c9eb7){const _0x1d1246=_0x4e43,_0x4cb41f=_0x56f6aa();while(!![]){try{const _0x279353=parseInt(_0x1d1246(0xa7))/0x1*(-parseInt(_0x1d1246(0xc3))/0x2)+-parseInt(_0x1d1246(0x105))/0x3+-parseInt(_0x1d1246(0xe8))/0x4*(-parseInt(_0x1d1246(0xa1))/0x5)+-parseInt(_0x1d1246(0x120))/0x6+-parseInt(_0x1d1246(0xbd))/0x7+parseInt(_0x1d1246(0xca))/0x8+parseInt(_0x1d1246(0xd5))/0x9;if(_0x279353===_0x4c9eb7)break;else _0x4cb41f['push'](_0x4cb41f['shift']());}catch(_0x18d75a){_0x4cb41f['push'](_0x4cb41f['shift']());}}}(_0x2ebe,0x75a92));import _0x3b1ef5 from'sqlite3';function _0x2ebe(){const _0x4dd961=['2559474VHfjzp','stringify','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','FZKPx','IZYco','OPgUP','VRgiq','stack','htKdu','elementId','189515gwRyuI','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','addMsg','fhpze','now','aSaha','1103hEQFLF','ltWIt','addTempUin','getCurrentMaxShortId','globalMsgShortId','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640',',\x20msgId:\x20','cgwQp','element','db\x20could\x20not\x20get\x20temp\x20uin\x20map','getFileCache','OPEN_CREATE','tFGPp','db\x20could\x20not\x20add\x20file','Could\x20not\x20create\x20table\x20temp_uins',',\x20短id:\x20','set','msgSeq','elementType','assign','Could\x20not\x20connect\x20to\x20database','MPJvY','771659Dxkoaf','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20files\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20url\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uuid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementType\x20INTEGER,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementId\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20msgId\x20TEXT\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','errno','close','uid','MuIgF','794GSwAjb','LmcwZ','OMnOH','数据库中消息最大短id','msgCache','getMsgByLongId','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20temp_uins\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uin\x20TEXT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','5748984DYHUar','LYkgE','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','db\x20could\x20not\x20update\x20file\x20cache','Database','jbXMr','YiboT','SELECT\x20*\x20FROM\x20temp_uins','toString',',\x20seq:\x20','CvBzF','5692185QyQZNP','has','db\x20getMsgByLongId\x20error','清理消息缓存','qMNHb','getFileCacheByName','FPIOG','lhwKr','uuid','VYsEZ','url','db\x20could\x20not\x20add\x20temp\x20uin','db\x20could\x20not\x20add\x20msg','init','BrEHe','getMsgsByMsgId','run','delete','path','36zTrEbr','all','RGrng','msgList','then','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','dzXOT','size','LvYrN','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','createTable','Could\x20not\x20get\x20msg','getFileCacheByUuid','longId','getUidByTempUin','lRUhS','NLayy','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','msgId','forEach','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','WCyYF','ZJrRE','chatType','yWLkr','MbwAO','peerUid','daKLV','706710zfJwZY','NUIRd','OPEN_READWRITE','parse','get','WQpbo','oWGCg','updateMsg','XTTrx','更新消息,\x20shortId:','updateFileCache','记录消息到数据库,\x20消息长id:\x20','prepare','AkfbO','updateMsg\x20db\x20error','IuVKZ','getMsgByShortId','dTPzl','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','WLFKI','yxAcp','Could\x20not\x20create\x20table\x20files','WHpCy','maxId','wroKa','getMsg','HfNLh'];_0x2ebe=function(){return _0x4dd961;};return _0x2ebe();}import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async['init'](_0x4936bc){const _0x5bb234={'jbXMr':function(_0x84ac5b,_0x41f73f){return _0x84ac5b(_0x41f73f);},'XvALB':function(_0x3de92d,_0x18b8fc){return _0x3de92d|_0x18b8fc;}};if(this['db'])return;return new Promise((_0x4f5bfc,_0x8b8af7)=>{const _0x4b581b=_0x4e43,_0x1da1dd={'mRlro':function(_0x3da9bf,_0x39c4f1,_0x2703b7){return _0x3da9bf(_0x39c4f1,_0x2703b7);},'NUIRd':function(_0x41c9dd,_0x587bc1){const _0xa92cf=_0x4e43;return _0x5bb234[_0xa92cf(0xcf)](_0x41c9dd,_0x587bc1);},'YiboT':function(_0x3665f6){return _0x3665f6();}};this['db']=new _0x3b1ef5[(_0x4b581b(0xce))](_0x4936bc,_0x5bb234['XvALB'](_0x3b1ef5[_0x4b581b(0x107)],_0x3b1ef5[_0x4b581b(0xb2)]),_0x55530c=>{const _0x78c63a=_0x4b581b;if(_0x55530c){_0x1da1dd['mRlro'](logError,_0x78c63a(0xbb),_0x55530c),_0x1da1dd[_0x78c63a(0x106)](_0x8b8af7,_0x55530c);return;}this['createTable'](),_0x1da1dd[_0x78c63a(0xd0)](_0x4f5bfc);});});}[_0x2a0ac6(0xf2)](){throw new Error('Method\x20not\x20implemented.');}['close'](){const _0x5aa7b8=_0x2a0ac6;this['db']?.[_0x5aa7b8(0xc0)]();}}function _0x4e43(_0x286555,_0x5d5359){const _0x2ebed0=_0x2ebe();return _0x4e43=function(_0x4e4321,_0x2c6c08){_0x4e4321=_0x4e4321-0x9b;let _0x113e55=_0x2ebed0[_0x4e4321];return _0x113e55;},_0x4e43(_0x286555,_0x5d5359);}class DBUtil extends DBUtilBase{[_0x2a0ac6(0xc7)]=new Map();[_0x2a0ac6(0xab)]=-0x7ffffff8;constructor(){const _0x551b24=_0x2a0ac6,_0x37160f={'qeOzc':function(_0x2321b6,_0x1d9b01){return _0x2321b6>_0x1d9b01;},'OPgUP':function(_0x5672c9,_0x5065bb){return _0x5672c9(_0x5065bb);},'XTTrx':_0x551b24(0xd8),'WHpCy':function(_0x220551,_0x487b64){return _0x220551*_0x487b64;}};super();const _0x1a60de=_0x37160f['WHpCy'](_0x37160f[_0x551b24(0x11b)](0x3e8,0x3c),0xa);setInterval(()=>{const _0x127a0f=_0x551b24;_0x37160f[_0x127a0f(0x9c)](logDebug,_0x37160f[_0x127a0f(0x10d)]),this[_0x127a0f(0xc7)]['forEach']((_0x3e8110,_0x58aec9)=>{const _0x2008a0=_0x127a0f;_0x37160f['qeOzc'](Date[_0x2008a0(0xa5)]()-_0x37160f[_0x2008a0(0x9c)](parseInt,_0x3e8110['msgTime'])*0x3e8,_0x1a60de)&&this[_0x2008a0(0xc7)][_0x2008a0(0xe6)](_0x58aec9);});},_0x1a60de);}async[_0x2a0ac6(0xe2)](_0x314340){const _0x492406=_0x2a0ac6;await super[_0x492406(0xe2)](_0x314340),this[_0x492406(0xab)]=await this[_0x492406(0xaa)]();}['createTable'](){const _0x512c6a=_0x2a0ac6,_0x25c530={'DEnSe':'Could\x20not\x20create\x20table\x20msgs','VYsEZ':function(_0x45ac14,_0x18df39,_0x598368){return _0x45ac14(_0x18df39,_0x598368);},'IZYco':_0x512c6a(0x11a)},_0x3e070b='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20msgs\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shortId\x20INTEGER\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20longId\x20TEXT\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20seq\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20peerUid\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chatType\x20INTEGER\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)';this['db'][_0x512c6a(0xe5)](_0x3e070b,function(_0x578af8){const _0x23be7b=_0x512c6a;_0x578af8&&logError(_0x25c530['DEnSe'],_0x578af8[_0x23be7b(0x9e)]);});const _0x40e5b9=_0x512c6a(0xbe);this['db'][_0x512c6a(0xe5)](_0x40e5b9,function(_0x17216a){const _0xab0742=_0x512c6a;_0x17216a&&_0x25c530[_0xab0742(0xde)](logError,_0x25c530[_0xab0742(0x9b)],_0x17216a);});const _0x21ea82=_0x512c6a(0xc9);this['db']['run'](_0x21ea82,function(_0x392b83){const _0x1abfed=_0x512c6a;_0x392b83&&_0x25c530[_0x1abfed(0xde)](logError,_0x1abfed(0xb5),_0x392b83);});}async[_0x2a0ac6(0xaa)](){const _0x18681a=_0x2a0ac6,_0x105a88={'WQpbo':_0x18681a(0xac),'MPJvY':function(_0x4491c9,_0x4326da,_0x4ed91f){return _0x4491c9(_0x4326da,_0x4ed91f);},'lhwKr':_0x18681a(0xc6),'MuIgF':function(_0x4d0334,_0x2e3180){return _0x4d0334(_0x2e3180);},'yxAcp':_0x18681a(0xa2)};return new Promise((_0x5c059c,_0x267e74)=>{const _0xeaf3e9=_0x18681a;this['db'][_0xeaf3e9(0x109)](_0x105a88[_0xeaf3e9(0x119)],(_0x2f5c83,_0x10b1ff)=>{const _0x25339b=_0xeaf3e9;if(_0x2f5c83)return logDebug(_0x105a88[_0x25339b(0x10a)],_0x2f5c83),_0x5c059c(-0x7ffffff8);_0x105a88[_0x25339b(0xbc)](logDebug,_0x105a88[_0x25339b(0xdc)],_0x10b1ff?.[_0x25339b(0x11c)]),_0x105a88[_0x25339b(0xc2)](_0x5c059c,_0x10b1ff?.[_0x25339b(0x11c)]??-0x7ffffff8);});});}async[_0x2a0ac6(0x11e)](_0x19d6a7,_0x34ecd9){const _0x30cdfd=_0x2a0ac6,_0x13f485={'CvBzF':function(_0x264189,_0x328ae4,_0x61c20,_0x67a7ef,_0x1a7f95){return _0x264189(_0x328ae4,_0x61c20,_0x67a7ef,_0x1a7f95);},'uSTEX':_0x30cdfd(0xf3),'RGrng':function(_0x438093,_0xc7bf75){return _0x438093(_0xc7bf75);}},_0xfd6276=this['db'][_0x30cdfd(0x111)](_0x19d6a7);return new Promise((_0x42a986,_0x1af8d9)=>{const _0x4ab526={'wroKa':function(_0x592ae9,_0x207389){return _0x592ae9(_0x207389);},'IuVKZ':function(_0x2b540e,_0x3a08af){return _0x2b540e(_0x3a08af);},'hKwkm':function(_0x3b1958,_0x215d66,_0x4dc278,_0x48257f,_0x196eae){const _0x2fd46d=_0x4e43;return _0x13f485[_0x2fd46d(0xd4)](_0x3b1958,_0x215d66,_0x4dc278,_0x48257f,_0x196eae);},'fRWIL':_0x13f485['uSTEX'],'FPIOG':function(_0x5e0f63,_0x44bb01){const _0x39df1e=_0x4e43;return _0x13f485[_0x39df1e(0xea)](_0x5e0f63,_0x44bb01);}};_0xfd6276['get'](..._0x34ecd9,(_0x41938c,_0x361ecb)=>{const _0x3c0b95=_0x4e43;if(_0x41938c)return _0x4ab526['hKwkm'](logError,_0x4ab526['fRWIL'],_0x41938c,_0x19d6a7,_0x34ecd9),_0x4ab526[_0x3c0b95(0xdb)](_0x42a986,null);if(!_0x361ecb){_0x4ab526[_0x3c0b95(0x11d)](_0x42a986,null);return;}const _0x5c4ddc=_0x361ecb[_0x3c0b95(0xf5)];NTQQMsgApi[_0x3c0b95(0xe4)]({'peerUid':_0x361ecb[_0x3c0b95(0x103)],'chatType':_0x361ecb[_0x3c0b95(0x100)]},[_0x5c4ddc])[_0x3c0b95(0xec)](_0x55855a=>{const _0x5025f8=_0x3c0b95,_0x25d0b7=_0x55855a[_0x5025f8(0xeb)][0x0];if(!_0x25d0b7){_0x4ab526[_0x5025f8(0x11d)](_0x42a986,null);return;}_0x25d0b7['id']=_0x361ecb['shortId'],_0x4ab526[_0x5025f8(0x114)](_0x42a986,_0x25d0b7);})['catch'](_0x26f569=>{_0x4ab526['wroKa'](_0x42a986,null);});});});}async[_0x2a0ac6(0x115)](_0x56c3ce){const _0x34bab0=_0x2a0ac6,_0x569ace={'ojuMh':'SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?'};if(this['msgCache'][_0x34bab0(0xd6)](_0x56c3ce))return this[_0x34bab0(0xc7)][_0x34bab0(0x109)](_0x56c3ce);const _0x2b3fdd=_0x569ace['ojuMh'];return this[_0x34bab0(0x11e)](_0x2b3fdd,[_0x56c3ce]);}async[_0x2a0ac6(0xc8)](_0x31c007){const _0x47af00=_0x2a0ac6;if(this['msgCache'][_0x47af00(0xd6)](_0x31c007))return this[_0x47af00(0xc7)][_0x47af00(0x109)](_0x31c007);return this[_0x47af00(0x11e)](_0x47af00(0xcc),[_0x31c007]);}async['getMsgBySeq'](_0x4d652e,_0x470cac){const _0x6a903a=_0x2a0ac6,_0x2a5718={'yWLkr':_0x6a903a(0x122)},_0x1ca6bd=_0x2a5718[_0x6a903a(0x101)];return this['getMsg'](_0x1ca6bd,[_0x4d652e,_0x470cac]);}async[_0x2a0ac6(0xa3)](_0x1cb59e,_0x21907f=!![]){const _0x46cfe8=_0x2a0ac6,_0x1596f7={'ZJrRE':function(_0x38f13d,_0x12497c){return _0x38f13d===_0x12497c;},'htKdu':function(_0x4cbb55,_0xa28f77,_0x423aa6){return _0x4cbb55(_0xa28f77,_0x423aa6);},'LvYrN':_0x46cfe8(0xe1),'MbwAO':_0x46cfe8(0xed),'GNvLO':function(_0x3d555a,_0x493c19){return _0x3d555a(_0x493c19);}},_0xc7f8dc=await this['getMsgByLongId'](_0x1cb59e[_0x46cfe8(0xfa)]);if(_0xc7f8dc){if(_0x21907f)this['updateMsg'](_0x1cb59e)[_0x46cfe8(0xec)]();return _0xc7f8dc['id'];}const _0x495efd=this['db']['prepare'](_0x1596f7[_0x46cfe8(0x102)]),_0x24ddde=++this[_0x46cfe8(0xab)];return _0x1cb59e['id']=_0x24ddde,_0x1596f7['GNvLO'](logDebug,_0x46cfe8(0x110)+_0x1cb59e[_0x46cfe8(0xfa)]+_0x46cfe8(0xb6)+_0x1cb59e['id']),this[_0x46cfe8(0xc7)][_0x46cfe8(0xb7)](_0x24ddde,_0x1cb59e),this[_0x46cfe8(0xc7)][_0x46cfe8(0xb7)](_0x1cb59e['msgId'],_0x1cb59e),_0x495efd[_0x46cfe8(0xe5)](this[_0x46cfe8(0xab)],_0x1cb59e[_0x46cfe8(0xfa)],_0x1cb59e[_0x46cfe8(0xb8)][_0x46cfe8(0xd2)](),_0x1cb59e[_0x46cfe8(0x103)],_0x1cb59e[_0x46cfe8(0x100)],_0x458ebd=>{const _0x427884=_0x46cfe8,_0x1a81f4={'tFGPp':function(_0x344ac0,_0x161b45,_0x404493){return _0x344ac0(_0x161b45,_0x404493);}};_0x458ebd&&(_0x1596f7[_0x427884(0xff)](_0x458ebd[_0x427884(0xbf)],0x13)?this[_0x427884(0xc8)](_0x1cb59e[_0x427884(0xfa)])[_0x427884(0xec)](_0xdbd9d3=>{const _0x47bddf=_0x427884;_0xdbd9d3?(this[_0x47bddf(0xc7)][_0x47bddf(0xb7)](_0x24ddde,_0xdbd9d3),this['msgCache'][_0x47bddf(0xb7)](_0xdbd9d3[_0x47bddf(0xfa)],_0xdbd9d3)):_0x1a81f4[_0x47bddf(0xb3)](logError,_0x47bddf(0x117),_0x458ebd);})['catch'](_0x17f8ac=>logError(_0x427884(0xd7),_0x17f8ac)):_0x1596f7[_0x427884(0x9f)](logError,_0x1596f7[_0x427884(0xf0)],_0x458ebd));}),_0x24ddde;}async[_0x2a0ac6(0x10c)](_0x561bbc){const _0x317f26=_0x2a0ac6,_0x5b507d={'HfNLh':function(_0x41092f,_0x1f1b7b,_0x308422){return _0x41092f(_0x1f1b7b,_0x308422);},'oWGCg':function(_0x190ec1,_0x452e60){return _0x190ec1(_0x452e60);},'ltWIt':_0x317f26(0xfd)},_0x33bbb8=this['msgCache']['get'](_0x561bbc[_0x317f26(0xfa)]);_0x33bbb8&&Object[_0x317f26(0xba)](_0x33bbb8,_0x561bbc);_0x5b507d[_0x317f26(0x10b)](logDebug,_0x317f26(0x10e)+_0x561bbc['id']+_0x317f26(0xd3)+_0x561bbc[_0x317f26(0xb8)]+_0x317f26(0xad)+_0x561bbc[_0x317f26(0xfa)]);const _0x51e79c=this['db'][_0x317f26(0x111)](_0x5b507d[_0x317f26(0xa8)]);_0x51e79c[_0x317f26(0xe5)](_0x561bbc[_0x317f26(0xb8)],_0x561bbc[_0x317f26(0xfa)],_0x300a2c=>{const _0x452743=_0x317f26;_0x300a2c&&_0x5b507d[_0x452743(0x11f)](logError,_0x452743(0x113),_0x300a2c);});}async['addFileCache'](_0xce2ce0){const _0x54eb2e=_0x2a0ac6,_0x4858a8={'WLFKI':function(_0x4c4559,_0x12f3dd,_0x4dbce7){return _0x4c4559(_0x12f3dd,_0x4dbce7);},'lRUhS':function(_0x359bfb,_0x8fd507){return _0x359bfb(_0x8fd507);},'fhpze':_0x54eb2e(0xf9)},_0x2d0de5=this['db'][_0x54eb2e(0x111)](_0x4858a8[_0x54eb2e(0xa4)]);return new Promise((_0x4b58fe,_0x424650)=>{const _0x1383fe=_0x54eb2e,_0x3c5a3b={'qMNHb':function(_0x325cf2,_0x1e6c02,_0x51313d){const _0x1c302c=_0x4e43;return _0x4858a8[_0x1c302c(0x118)](_0x325cf2,_0x1e6c02,_0x51313d);},'dzXOT':function(_0x27e916,_0x59b26e){const _0x5d6f7b=_0x4e43;return _0x4858a8[_0x5d6f7b(0xf7)](_0x27e916,_0x59b26e);}};_0x2d0de5[_0x1383fe(0xe5)](_0xce2ce0['name'],_0xce2ce0[_0x1383fe(0xe7)],_0xce2ce0[_0x1383fe(0xdf)],_0xce2ce0[_0x1383fe(0xef)],_0xce2ce0['uuid'],_0xce2ce0[_0x1383fe(0xb9)],JSON[_0x1383fe(0x121)](_0xce2ce0[_0x1383fe(0xaf)]),_0xce2ce0[_0x1383fe(0xa0)],_0xce2ce0[_0x1383fe(0xfa)],function(_0x386e23){const _0x2a79c6=_0x1383fe;_0x386e23&&(_0x3c5a3b[_0x2a79c6(0xd9)](logError,_0x2a79c6(0xb4),_0x386e23),_0x424650(_0x386e23)),_0x3c5a3b[_0x2a79c6(0xee)](_0x4b58fe,null);});});}async['getFileCache'](_0xbb32a7,_0x2581b8){const _0x3aa017={'cgwQp':function(_0x2c29b1,_0xc28d5b){return _0x2c29b1(_0xc28d5b);}},_0x5c8ec0=this['db']['prepare'](_0xbb32a7);return new Promise((_0x5d9627,_0x35eb9d)=>{const _0x5df6af=_0x4e43;_0x5c8ec0[_0x5df6af(0x109)](..._0x2581b8,(_0x916393,_0x5bf938)=>{const _0x1069cc=_0x5df6af;_0x916393&&(logError('db\x20could\x20not\x20get\x20file\x20cache',_0x916393),_0x3aa017[_0x1069cc(0xae)](_0x35eb9d,_0x916393)),_0x5bf938&&(_0x5bf938[_0x1069cc(0xaf)]=JSON[_0x1069cc(0x108)](_0x5bf938['element'])),_0x5d9627(_0x5bf938);});});}async[_0x2a0ac6(0xda)](_0x4f3f14){const _0x5322e2=_0x2a0ac6,_0x8cf8f={'JTvpZ':'SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?'};return this[_0x5322e2(0xb1)](_0x8cf8f['JTvpZ'],[_0x4f3f14]);}async[_0x2a0ac6(0xf4)](_0x550a34){const _0x3c0c14=_0x2a0ac6,_0x3cf798={'hkZzi':'SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?'};return this[_0x3c0c14(0xb1)](_0x3cf798['hkZzi'],[_0x550a34]);}async[_0x2a0ac6(0x10f)](_0x44eb12){const _0x5239e3=_0x2a0ac6,_0xd19ae7={'sXrAT':function(_0x16ff56,_0x402323,_0x8b2c04){return _0x16ff56(_0x402323,_0x8b2c04);},'dTPzl':_0x5239e3(0xcd),'aSaha':function(_0x303b02,_0x4301f7){return _0x303b02(_0x4301f7);},'OMnOH':function(_0x3e7887,_0x3fe721){return _0x3e7887(_0x3fe721);},'wekzM':'UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?'},_0x2da5bc=this['db']['prepare'](_0xd19ae7['wekzM']);return new Promise((_0x7eb9bb,_0x28416f)=>{const _0x196796=_0x5239e3;_0x2da5bc['run'](_0x44eb12[_0x196796(0xe7)],_0x44eb12[_0x196796(0xdf)],_0x44eb12[_0x196796(0xdd)],function(_0x28909f){const _0x51cacc=_0x196796;_0x28909f&&(_0xd19ae7['sXrAT'](logError,_0xd19ae7[_0x51cacc(0x116)],_0x28909f),_0xd19ae7[_0x51cacc(0xa6)](_0x28416f,_0x28909f)),_0xd19ae7[_0x51cacc(0xc5)](_0x7eb9bb,null);});});}async['getReceivedTempUinMap'](){const _0x504a9a=_0x2a0ac6,_0x3ddf4b={'BrEHe':function(_0x305dec,_0x3556b1,_0x19983d){return _0x305dec(_0x3556b1,_0x19983d);},'CvkBK':_0x504a9a(0xb0),'NLayy':_0x504a9a(0xd1)},_0x507cd9=_0x3ddf4b[_0x504a9a(0xf8)];return new Promise((_0x5aefde,_0x4bf1b1)=>{const _0x1e231a=_0x504a9a,_0x1a0f7a={'LmcwZ':function(_0x48a435,_0x96df1,_0x322cef){const _0x14d49a=_0x4e43;return _0x3ddf4b[_0x14d49a(0xe3)](_0x48a435,_0x96df1,_0x322cef);},'WCyYF':_0x3ddf4b['CvkBK'],'fqUMF':function(_0x53f6f1,_0x59a899){return _0x53f6f1(_0x59a899);}};this['db'][_0x1e231a(0xe9)](_0x507cd9,(_0x367ecd,_0xbca3b3)=>{const _0x10fa06=_0x1e231a;_0x367ecd&&(_0x1a0f7a[_0x10fa06(0xc4)](logError,_0x1a0f7a[_0x10fa06(0xfe)],_0x367ecd),_0x4bf1b1(_0x367ecd));const _0x3433f6={};_0xbca3b3[_0x10fa06(0xfb)](_0x42c0ce=>{const _0x502403=_0x10fa06;_0x3433f6[_0x42c0ce['uin']]=_0x42c0ce[_0x502403(0xc1)];}),_0x1a0f7a['fqUMF'](_0x5aefde,_0x3433f6);});});}async[_0x2a0ac6(0xf6)](_0x5673d4){const _0x275258=_0x2a0ac6,_0x60bc6a={'QnFCq':function(_0x186a8f,_0x219e72,_0x44daf5){return _0x186a8f(_0x219e72,_0x44daf5);},'daKLV':function(_0x17f962,_0x119e1a){return _0x17f962(_0x119e1a);}},_0x37aac3=_0x275258(0xfc);return new Promise((_0x47d736,_0x3962fd)=>{this['db']['get'](_0x37aac3,[_0x5673d4],(_0xa5f569,_0x5c9f59)=>{const _0x1182f6=_0x4e43;_0xa5f569&&(_0x60bc6a['QnFCq'](logError,_0x1182f6(0xb0),_0xa5f569),_0x60bc6a[_0x1182f6(0x104)](_0x3962fd,_0xa5f569)),_0x47d736(_0x5c9f59?.[_0x1182f6(0xc1)]);});});}async[_0x2a0ac6(0xa9)](_0x560220,_0x4c85e3){const _0x49de3d=_0x2a0ac6,_0x461476={'VRgiq':function(_0x4ade6b,_0x47427a,_0x4a6c72){return _0x4ade6b(_0x47427a,_0x4a6c72);},'AkfbO':function(_0x4b7389,_0x42f22c){return _0x4b7389(_0x42f22c);}},_0x5da0d3=await this['getUidByTempUin'](_0x560220);if(!_0x5da0d3){const _0x54e15=this['db']['prepare'](_0x49de3d(0xf1));return new Promise((_0x2c7a89,_0x3e38b9)=>{const _0x43e5f1=_0x49de3d,_0x1bf8f={'LYkgE':function(_0x147af1,_0x22679c,_0x185a75){const _0x1280c3=_0x4e43;return _0x461476[_0x1280c3(0x9d)](_0x147af1,_0x22679c,_0x185a75);},'FZKPx':function(_0x415140,_0x1b0225){const _0x4bd638=_0x4e43;return _0x461476[_0x4bd638(0x112)](_0x415140,_0x1b0225);}};_0x54e15[_0x43e5f1(0xe5)](_0x560220,_0x4c85e3,function(_0x1abb38){const _0x484dfe=_0x43e5f1;_0x1abb38&&(_0x1bf8f[_0x484dfe(0xcb)](logError,_0x484dfe(0xe0),_0x1abb38),_0x1bf8f[_0x484dfe(0x123)](_0x3e38b9,_0x1abb38)),_0x2c7a89(null);});});}}}export const dbUtil=new DBUtil(); \ No newline at end of file diff --git a/src/core.lib/src/utils/rkey.js b/src/core.lib/src/utils/rkey.js index 30cb0b4f..1331a484 100644 --- a/src/core.lib/src/utils/rkey.js +++ b/src/core.lib/src/utils/rkey.js @@ -1 +1 @@ -const _0x1037ac=_0x3881;(function(_0x3cd009,_0x528b44){const _0x3cab34=_0x3881,_0x31e69c=_0x3cd009();while(!![]){try{const _0x326b1c=-parseInt(_0x3cab34(0x1dd))/0x1*(-parseInt(_0x3cab34(0x1eb))/0x2)+parseInt(_0x3cab34(0x1ea))/0x3+-parseInt(_0x3cab34(0x1dc))/0x4*(parseInt(_0x3cab34(0x1e3))/0x5)+parseInt(_0x3cab34(0x1e5))/0x6+-parseInt(_0x3cab34(0x1f0))/0x7+-parseInt(_0x3cab34(0x1e6))/0x8*(-parseInt(_0x3cab34(0x1db))/0x9)+-parseInt(_0x3cab34(0x1df))/0xa;if(_0x326b1c===_0x528b44)break;else _0x31e69c['push'](_0x31e69c['shift']());}catch(_0x58ec48){_0x31e69c['push'](_0x31e69c['shift']());}}}(_0x1482,0xdc855));import{logError}from'@/common/utils/log';function _0x1482(){const _0xc002e4=['10pfXhXi','sumse','7426452HpmCti','3200cEFJMV','HttpGetJson','http://napcat-sign.wumiao.wang:2082/rkey','TekNv','4283832sfSLCH','112ZXjqCC','refreshRkey','CTgsU','isExpired','IAPwf','5085507HvOYNk','获取rkey失败','serverUrl','288FWaHnL','3442264sqzPkp','31907CiiKPN','GHgQD','11143920ngMfaU','getRkey','GET','rkeyData'];_0x1482=function(){return _0xc002e4;};return _0x1482();}import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x1037ac(0x1da)]='';[_0x1037ac(0x1e2)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x2d514a){const _0x54c45d=_0x1037ac;this[_0x54c45d(0x1da)]=_0x2d514a;}async[_0x1037ac(0x1e0)](){const _0x2b80a3=_0x1037ac,_0x385bce={'sumse':function(_0x520552,_0x6040ac,_0x15bbe0){return _0x520552(_0x6040ac,_0x15bbe0);},'IAPwf':_0x2b80a3(0x1d9)};if(this[_0x2b80a3(0x1ee)]())try{await this[_0x2b80a3(0x1ec)]();}catch(_0x4749c8){_0x385bce[_0x2b80a3(0x1e4)](logError,_0x385bce[_0x2b80a3(0x1ef)],_0x4749c8);}return this[_0x2b80a3(0x1e2)];}[_0x1037ac(0x1ee)](){const _0xd93d97=_0x1037ac,_0x3a0c68={'CTgsU':function(_0x4b5d64,_0x5cedfa){return _0x4b5d64/_0x5cedfa;},'GHgQD':function(_0xd1fac1,_0x3d7f1a){return _0xd1fac1>_0x3d7f1a;}},_0x51138f=_0x3a0c68[_0xd93d97(0x1ed)](new Date()['getTime'](),0x3e8);return _0x3a0c68[_0xd93d97(0x1de)](_0x51138f,this['rkeyData']['expired_time']);}async['refreshRkey'](){const _0xb1041=_0x1037ac,_0x4cb725={'TekNv':_0xb1041(0x1e1)};this['rkeyData']=await RequestUtil[_0xb1041(0x1e7)](this[_0xb1041(0x1da)],_0x4cb725[_0xb1041(0x1e9)]);}}function _0x3881(_0x4f3833,_0x157870){const _0x148279=_0x1482();return _0x3881=function(_0x388116,_0x922e27){_0x388116=_0x388116-0x1d9;let _0x561250=_0x148279[_0x388116];return _0x561250;},_0x3881(_0x4f3833,_0x157870);}export const rkeyManager=new RkeyManager(_0x1037ac(0x1e8)); \ No newline at end of file +const _0x247ba7=_0x4a22;function _0x4a22(_0x2e2b4c,_0x5d7321){const _0x2bf18d=_0x2bf1();return _0x4a22=function(_0x4a22fd,_0x286373){_0x4a22fd=_0x4a22fd-0x1ca;let _0x36c7e3=_0x2bf18d[_0x4a22fd];return _0x36c7e3;},_0x4a22(_0x2e2b4c,_0x5d7321);}(function(_0x697c4b,_0xe64b85){const _0x2c66e3=_0x4a22,_0xe8aeb8=_0x697c4b();while(!![]){try{const _0x2d6fb2=-parseInt(_0x2c66e3(0x1da))/0x1*(-parseInt(_0x2c66e3(0x1dc))/0x2)+parseInt(_0x2c66e3(0x1ce))/0x3*(-parseInt(_0x2c66e3(0x1e1))/0x4)+-parseInt(_0x2c66e3(0x1ca))/0x5*(parseInt(_0x2c66e3(0x1d7))/0x6)+-parseInt(_0x2c66e3(0x1db))/0x7+parseInt(_0x2c66e3(0x1d3))/0x8*(-parseInt(_0x2c66e3(0x1cd))/0x9)+-parseInt(_0x2c66e3(0x1d0))/0xa*(-parseInt(_0x2c66e3(0x1d2))/0xb)+parseInt(_0x2c66e3(0x1d5))/0xc;if(_0x2d6fb2===_0xe64b85)break;else _0xe8aeb8['push'](_0xe8aeb8['shift']());}catch(_0x420f06){_0xe8aeb8['push'](_0xe8aeb8['shift']());}}}(_0x2bf1,0x21ce0));function _0x2bf1(){const _0xff4f96=['HttpGetJson','5ViDUVj','MRNME','getRkey','131589Uwqfyr','6EtnpbJ','nDSbn','10EwIMPZ','getTime','922977NwDEhO','24LEdQoZ','GET','2025780zuUnzM','rkeyData','952944FxRvxi','refreshRkey','euaZO','34519PLLKuZ','551026SqfpFH','14zeLpIJ','serverUrl','UNrnR','isExpired','获取rkey失败','148972kBbuPZ'];_0x2bf1=function(){return _0xff4f96;};return _0x2bf1();}import{logError}from'@/common/utils/log';import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x247ba7(0x1dd)]='';[_0x247ba7(0x1d6)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x2b8cd7){const _0x1f11e6=_0x247ba7;this[_0x1f11e6(0x1dd)]=_0x2b8cd7;}async[_0x247ba7(0x1cc)](){const _0x24d137=_0x247ba7,_0x1687b9={'UNrnR':function(_0x28b4e7,_0x3ce4ef,_0x46b1ab){return _0x28b4e7(_0x3ce4ef,_0x46b1ab);}};if(this[_0x24d137(0x1df)]())try{await this[_0x24d137(0x1d8)]();}catch(_0x351167){_0x1687b9[_0x24d137(0x1de)](logError,_0x24d137(0x1e0),_0x351167);}return this[_0x24d137(0x1d6)];}[_0x247ba7(0x1df)](){const _0x5ec549=_0x247ba7,_0x2811f0={'nDSbn':function(_0x37bf28,_0x35ad1b){return _0x37bf28/_0x35ad1b;},'MRNME':function(_0x2d5b52,_0x57b77b){return _0x2d5b52>_0x57b77b;}},_0x1322c5=_0x2811f0[_0x5ec549(0x1cf)](new Date()[_0x5ec549(0x1d1)](),0x3e8);return _0x2811f0[_0x5ec549(0x1cb)](_0x1322c5,this[_0x5ec549(0x1d6)]['expired_time']);}async[_0x247ba7(0x1d8)](){const _0x2d38ad=_0x247ba7,_0x4e7486={'euaZO':_0x2d38ad(0x1d4)};this['rkeyData']=await RequestUtil[_0x2d38ad(0x1e2)](this[_0x2d38ad(0x1dd)],_0x4e7486[_0x2d38ad(0x1d9)]);}}export const rkeyManager=new RkeyManager('http://napcat-sign.wumiao.wang:2082/rkey'); \ No newline at end of file diff --git a/src/core.lib/src/wrapper.js b/src/core.lib/src/wrapper.js index 073c19c2..cda6ebe7 100644 --- a/src/core.lib/src/wrapper.js +++ b/src/core.lib/src/wrapper.js @@ -1 +1 @@ -const _0x3dcc8c=_0x4063;(function(_0x2b480c,_0xd9e60d){const _0x431a5d=_0x4063,_0x4044c8=_0x2b480c();while(!![]){try{const _0x28964f=-parseInt(_0x431a5d(0xea))/0x1*(-parseInt(_0x431a5d(0xf3))/0x2)+parseInt(_0x431a5d(0xed))/0x3*(parseInt(_0x431a5d(0xf4))/0x4)+parseInt(_0x431a5d(0xe9))/0x5*(parseInt(_0x431a5d(0xec))/0x6)+-parseInt(_0x431a5d(0xef))/0x7*(-parseInt(_0x431a5d(0xf5))/0x8)+-parseInt(_0x431a5d(0xf2))/0x9+-parseInt(_0x431a5d(0xf6))/0xa+-parseInt(_0x431a5d(0xeb))/0xb;if(_0x28964f===_0xd9e60d)break;else _0x4044c8['push'](_0x4044c8['shift']());}catch(_0x2b8817){_0x4044c8['push'](_0x4044c8['shift']());}}}(_0x4ff8,0x44ab7));import _0x17705e from'node:path';import _0x1c1201 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';function _0x4ff8(){const _0x221fc9=['11167310bykUyl','6780ZjdJBO','1156623clReNF','join','56skKpym','dirname','resolve','3623643iORHAT','754rXfXoi','4IzSaRZ','460816CrxkFJ','508160evBxgW','./resources/app/wrapper.node','resources/app/versions/','existsSync','execPath','2395SdLQtN','961gjmDuO'];_0x4ff8=function(){return _0x221fc9;};return _0x4ff8();}let wrapperNodePath=_0x17705e[_0x3dcc8c(0xf1)](_0x17705e['dirname'](process[_0x3dcc8c(0xe8)]),_0x3dcc8c(0xf7));!_0x1c1201[_0x3dcc8c(0xe7)](wrapperNodePath)&&(wrapperNodePath=_0x17705e[_0x3dcc8c(0xee)](_0x17705e[_0x3dcc8c(0xf0)](process['execPath']),_0x3dcc8c(0xf8)+qqVersionConfigInfo['curVersion']+'/wrapper.node'));const QQWrapper=require(wrapperNodePath);function _0x4063(_0x18fe5e,_0x21d77b){const _0x4ff8d0=_0x4ff8();return _0x4063=function(_0x4063eb,_0x251e2a){_0x4063eb=_0x4063eb-0xe7;let _0x1073b8=_0x4ff8d0[_0x4063eb];return _0x1073b8;},_0x4063(_0x18fe5e,_0x21d77b);}export default QQWrapper; \ No newline at end of file +function _0x496d(){const _0x2b1dbe=['650736tQyaUv','130WCglSR','6015625xpwanx','27530zwUSxW','12ZzdaiL','71661ZMZIgK','curVersion','966jFBwNA','dirname','resources/app/versions/','5656456liZFWy','945458KXMxrc','execPath','join','/wrapper.node','1tIaFqa','./resources/app/wrapper.node','4533562SCOIpD','104UTRilT'];_0x496d=function(){return _0x2b1dbe;};return _0x496d();}const _0x4a0a75=_0x5a4c;(function(_0x1419f9,_0x5395a9){const _0x3bfc82=_0x5a4c,_0x15ad26=_0x1419f9();while(!![]){try{const _0x170a87=parseInt(_0x3bfc82(0x7a))/0x1*(parseInt(_0x3bfc82(0x76))/0x2)+-parseInt(_0x3bfc82(0x70))/0x3*(parseInt(_0x3bfc82(0x7d))/0x4)+-parseInt(_0x3bfc82(0x6e))/0x5*(-parseInt(_0x3bfc82(0x72))/0x6)+-parseInt(_0x3bfc82(0x6d))/0x7+-parseInt(_0x3bfc82(0x75))/0x8+parseInt(_0x3bfc82(0x6b))/0x9*(parseInt(_0x3bfc82(0x6c))/0xa)+parseInt(_0x3bfc82(0x7c))/0xb*(parseInt(_0x3bfc82(0x6f))/0xc);if(_0x170a87===_0x5395a9)break;else _0x15ad26['push'](_0x15ad26['shift']());}catch(_0x5a4cdd){_0x15ad26['push'](_0x15ad26['shift']());}}}(_0x496d,0x7fe13));import _0x50b1c6 from'node:path';import _0x13dd8e from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x50b1c6['resolve'](_0x50b1c6['dirname'](process[_0x4a0a75(0x77)]),_0x4a0a75(0x7b));function _0x5a4c(_0x6681fc,_0x2181e6){const _0x496def=_0x496d();return _0x5a4c=function(_0x5a4ce8,_0x2e1e3b){_0x5a4ce8=_0x5a4ce8-0x6b;let _0x8a6010=_0x496def[_0x5a4ce8];return _0x8a6010;},_0x5a4c(_0x6681fc,_0x2181e6);}!_0x13dd8e['existsSync'](wrapperNodePath)&&(wrapperNodePath=_0x50b1c6[_0x4a0a75(0x78)](_0x50b1c6[_0x4a0a75(0x73)](process[_0x4a0a75(0x77)]),_0x4a0a75(0x74)+qqVersionConfigInfo[_0x4a0a75(0x71)]+_0x4a0a75(0x79)));const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file diff --git a/src/onebot11/action/go-cqhttp/GetGroupHonorInfo.ts b/src/onebot11/action/go-cqhttp/GetGroupHonorInfo.ts index ba1a2711..95fceba4 100644 --- a/src/onebot11/action/go-cqhttp/GetGroupHonorInfo.ts +++ b/src/onebot11/action/go-cqhttp/GetGroupHonorInfo.ts @@ -3,18 +3,22 @@ import { OB11Constructor } from '../../constructor'; import { friends } from '@/core/data'; import BaseAction from '../BaseAction'; import { ActionName } from '../types'; -import { NTQQUserApi, WebApi } from '@/core/apis'; +import { NTQQUserApi, WebApi, WebHonorType } from '@/core/apis'; interface Payload { - group_id: number + group_id: number, + type?: WebHonorType } export class GetGroupHonorInfo extends BaseAction> { actionName = ActionName.GetGroupHonorInfo; protected async _handle(payload: Payload) { // console.log(await NTQQUserApi.getRobotUinRange()); - if(!payload.group_id){ + if (!payload.group_id) { throw '缺少参数group_id'; } - return await WebApi.getGroupHonorInfo(payload.group_id.toString()); + if (!payload.type) { + payload.type = WebHonorType.ALL; + } + return await WebApi.getGroupHonorInfo(payload.group_id.toString(), payload.type); } } diff --git a/src/onebot11/config.ts b/src/onebot11/config.ts index 03ad92a8..d1137558 100644 --- a/src/onebot11/config.ts +++ b/src/onebot11/config.ts @@ -1,63 +1,76 @@ -import fs from 'node:fs'; -import path from 'node:path'; -import { selfInfo } from '@/core/data'; -import { logDebug, logError } from '@/common/utils/log'; -import { ConfigBase } from '@/common/utils/ConfigBase'; +import fs from "node:fs"; +import path from "node:path"; +import { selfInfo } from "@/core/data"; +import { logDebug, logError } from "@/common/utils/log"; +import { ConfigBase } from "@/common/utils/ConfigBase"; +import { json } from "stream/consumers"; export interface OB11Config { - httpHost: string; - httpPort: number; - httpPostUrls: string[]; - httpSecret: string; - wsHost: string; - wsPort: number; - wsReverseUrls: string[]; - enableHttp: boolean; - enableHttpHeart: boolean; - enableHttpPost: boolean; - enableWs: boolean; - enableWsReverse: boolean; - messagePostFormat: 'array' | 'string'; - reportSelfMessage: boolean; - enableLocalFile2Url: boolean; + http: { + enable: boolean; + host: string; + port: number; + secret: string; + enableHeart: boolean; + enablePost: boolean; + postUrls: string[]; + }; + ws: { + enable: boolean; + host: string; + port: number; + }; + reverseWs: { + enable: boolean; + urls: string[]; + }; + debug: boolean; heartInterval: number; - token: string; + messagePostFormat: "array" | "string"; + enableLocalFile2Url: boolean; musicSignUrl: string; + reportSelfMessage: boolean; + token: string; read(): OB11Config; save(config: OB11Config): void; } - class Config extends ConfigBase implements OB11Config { - httpHost: string = ''; - httpPort: number = 3000; - httpPostUrls: string[] = []; - httpSecret = ''; - wsHost: string = ''; - wsPort = 3001; - wsReverseUrls: string[] = []; - enableHttp = false; - enableHttpPost = false; - enableHttpHeart = false; - enableWs = false; - enableWsReverse = false; - messagePostFormat: 'array' | 'string' = 'array'; - reportSelfMessage = false; + http = { + enable: false, + host: "", + port: 3000, + secret: "", + enableHeart: false, + enablePost: false, + postUrls: [], + }; + ws = { + enable: false, + host: "", + port: 3001, + }; + reverseWs = { + enable: false, + urls: [], + }; debug = false; - enableLocalFile2Url = true; heartInterval = 30000; - token = ''; - musicSignUrl = ''; + messagePostFormat: "array" | "string" = "array"; + enableLocalFile2Url = true; + musicSignUrl = ""; + reportSelfMessage = false; + token = ""; getConfigPath() { return path.join(this.getConfigDir(), `onebot11_${selfInfo.uin}.json`); } - protected getKeys(): string[] { - return ['httpHost', 'enableHttp', 'httpPort', 'wsHost', 'enableWs', 'wsPort', 'enableWsReverse', 'wsReverseUrls', 'enableHttpPost', 'httpPostUrls', 'enableHttpHeart', 'httpSecret', 'messagePostFormat', 'reportSelfMessage', 'debug', 'enableLocalFile2Url', 'heartInterval', 'token', 'musicSignUrl']; + protected getKeys(): string[] | null { + return null; } } diff --git a/src/onebot11/main.ts b/src/onebot11/main.ts index 5ba69bfd..873ecc86 100644 --- a/src/onebot11/main.ts +++ b/src/onebot11/main.ts @@ -6,6 +6,7 @@ import { ChatType, FriendRequest, Group, + GroupMember, GroupMemberRole, GroupNotify, GroupNotifyTypes, @@ -43,26 +44,26 @@ export class NapCatOnebot11 { logDebug('ob11 ready'); ob11Config.read(); const serviceInfo = ` - HTTP服务 ${ob11Config.enableHttp ? '已启动' : '未启动'}, ${ob11Config.httpHost}:${ob11Config.httpPort} - HTTP上报服务 ${ob11Config.enableHttpPost ? '已启动' : '未启动'}, 上报地址: ${ob11Config.httpPostUrls} - WebSocket服务 ${ob11Config.enableWs ? '已启动' : '未启动'}, ${ob11Config.wsHost}:${ob11Config.wsPort} - WebSocket反向服务 ${ob11Config.enableWsReverse ? '已启动' : '未启动'}, 反向地址: ${ob11Config.wsReverseUrls} + HTTP服务 ${ob11Config.http.enable ? '已启动' : '未启动'}, ${ob11Config.http.host}:${ob11Config.http.port} + HTTP上报服务 ${ob11Config.http.enablePost ? '已启动' : '未启动'}, 上报地址: ${ob11Config.http.postUrls} + WebSocket服务 ${ob11Config.ws.enable ? '已启动' : '未启动'}, ${ob11Config.ws.host}:${ob11Config.ws.port} + WebSocket反向服务 ${ob11Config.reverseWs.enable ? '已启动' : '未启动'}, 反向地址: ${ob11Config.reverseWs.urls} `; log(serviceInfo); NTQQUserApi.getUserDetailInfo(selfInfo.uid).then(user => { selfInfo.nick = user.nick; setLogSelfInfo(selfInfo); }).catch(logError); - if (ob11Config.enableHttp) { - ob11HTTPServer.start(ob11Config.httpPort, ob11Config.httpHost); + if (ob11Config.http.enable) { + ob11HTTPServer.start(ob11Config.http.port, ob11Config.http.host); } - if (ob11Config.enableWs) { - ob11WebsocketServer.start(ob11Config.wsPort, ob11Config.wsHost); + if (ob11Config.ws.enable) { + ob11WebsocketServer.start(ob11Config.ws.port, ob11Config.ws.host); } - if (ob11Config.enableWsReverse) { + if (ob11Config.reverseWs.enable) { ob11ReverseWebsockets.start(); } - if (ob11Config.enableHttpHeart) { + if (ob11Config.http.enableHeart) { // 启动http心跳 httpHeart.start(); } @@ -131,6 +132,17 @@ export class NapCatOnebot11 { //console.log('ob11 onGroupNotifiesUpdated', notifies[0]); this.postGroupNotifies(notifies).then().catch(e => logError('postGroupNotifies error: ', e)); }; + groupListener.onMemberInfoChange = async (groupCode: string, changeType: number, members: Map) => { + // 如果自身是非管理员也许要从这里获取Delete 成员变动 待测试与验证 + let role = (await getGroupMember(groupCode, selfInfo.uin))?.role; + let isPrivilege = role === 3 || role === 4; + for (const member of members.values()) { + if (member?.isDelete && !isPrivilege) { + const groupDecreaseEvent = new OB11GroupDecreaseEvent(parseInt(groupCode), parseInt(member.uin), 0, 'leave');// 不知道怎么出去的 + postOB11Event(groupDecreaseEvent, true); + } + } + } groupListener.onJoinGroupNotify = (...notify) => { // console.log('ob11 onJoinGroupNotify', notify); }; @@ -209,48 +221,48 @@ export class NapCatOnebot11 { // throw new Error('Invalid configuration object'); // } - const isHttpChanged = !isEqual(NewOb11.httpPort, ob11Config.httpPort) && NewOb11.enableHttp; - const isWsChanged = !isEqual(NewOb11.wsPort, ob11Config.wsPort); - const isEnableWsChanged = !isEqual(NewOb11.enableWs, ob11Config.enableWs); - const isEnableWsReverseChanged = !isEqual(NewOb11.enableWsReverse, ob11Config.enableWsReverse); - const isWsReverseUrlsChanged = !isEqual(NewOb11.wsReverseUrls, ob11Config.wsReverseUrls); + const isHttpChanged = !isEqual(NewOb11.http.port, ob11Config.http.port) && NewOb11.http.enable; + const isWsChanged = !isEqual(NewOb11.ws.port, ob11Config.ws.port); + const isEnableWsChanged = !isEqual(NewOb11.ws.enable, ob11Config.ws.enable); + const isEnableWsReverseChanged = !isEqual(NewOb11.reverseWs.enable, ob11Config.reverseWs.enable); + const isWsReverseUrlsChanged = !isEqual(NewOb11.reverseWs.urls, ob11Config.reverseWs.urls); if (isHttpChanged) { - ob11HTTPServer.restart(NewOb11.httpPort, NewOb11.httpHost); + ob11HTTPServer.restart(NewOb11.http.port, NewOb11.http.host); } - if (!NewOb11.enableHttp) { + if (!NewOb11.http.enable) { ob11HTTPServer.stop(); } else { - ob11HTTPServer.start(NewOb11.httpPort, NewOb11.httpHost); + ob11HTTPServer.start(NewOb11.http.port, NewOb11.http.host); } if (isWsChanged) { - ob11WebsocketServer.restart(NewOb11.wsPort); + ob11WebsocketServer.restart(NewOb11.ws.port); } if (isEnableWsChanged) { - if (NewOb11.enableWs) { - ob11WebsocketServer.start(NewOb11.wsPort, NewOb11.wsHost); + if (NewOb11.ws.enable) { + ob11WebsocketServer.start(NewOb11.ws.port, NewOb11.ws.host); } else { ob11WebsocketServer.stop(); } } if (isEnableWsReverseChanged) { - if (NewOb11.enableWsReverse) { + if (NewOb11.reverseWs.enable) { ob11ReverseWebsockets.start(); } else { ob11ReverseWebsockets.stop(); } } - if (NewOb11.enableWsReverse && isWsReverseUrlsChanged) { + if (NewOb11.reverseWs.enable && isWsReverseUrlsChanged) { logDebug('反向ws地址有变化, 重启反向ws服务'); ob11ReverseWebsockets.restart(); } - if (NewOb11.enableHttpHeart) { + if (NewOb11.http.enableHeart) { httpHeart.start(); - } else if (!NewOb11.enableHttpHeart) { + } else if (!NewOb11.http.enableHeart) { httpHeart.stop(); } ob11Config.save(NewOb11); diff --git a/src/onebot11/onebot11.json b/src/onebot11/onebot11.json index 4f8e56bb..fef35ee5 100644 --- a/src/onebot11/onebot11.json +++ b/src/onebot11/onebot11.json @@ -1,21 +1,27 @@ { - "httpHost": "", - "enableHttp": false, - "httpPort": 3000, - "wsHost": "", - "enableWs": false, - "wsPort": 3001, - "enableWsReverse": false, - "wsReverseUrls": [], - "enableHttpPost": false, - "httpPostUrls": [], - "enableHttpHeart": false, - "httpSecret": "", - "messagePostFormat": "array", - "reportSelfMessage": false, + "http": { + "enable": false, + "host": "", + "port": 3000, + "secret": "", + "enableHeart": false, + "enablePost": false, + "postUrls": [] + }, + "ws": { + "enable": false, + "host": "", + "port": 3001 + }, + "reverseWs": { + "enable": false, + "urls": [] + }, "debug": false, - "enableLocalFile2Url": true, "heartInterval": 30000, - "token": "", - "musicSignUrl": "" -} + "messagePostFormat": "array", + "enableLocalFile2Url": true, + "musicSignUrl": "", + "reportSelfMessage": false, + "token": "" +} \ No newline at end of file diff --git a/src/onebot11/server/http.ts b/src/onebot11/server/http.ts index 2f9fee42..28bf89a5 100644 --- a/src/onebot11/server/http.ts +++ b/src/onebot11/server/http.ts @@ -16,7 +16,7 @@ class OB11HTTPServer extends HttpServerBase { } protected listen(port: number, host: string) { - if (ob11Config.enableHttp) { + if (ob11Config.http.enable) { super.listen(port, host); } } diff --git a/src/onebot11/server/postOB11Event.ts b/src/onebot11/server/postOB11Event.ts index 08963f82..58a13515 100644 --- a/src/onebot11/server/postOB11Event.ts +++ b/src/onebot11/server/postOB11Event.ts @@ -78,19 +78,19 @@ export function postOB11Event(msg: PostEventType, reportSelf = false, postWs = t return; } } - if (config.enableHttpPost) { + if (config.http.enablePost) { const msgStr = JSON.stringify(msg); - const hmac = crypto.createHmac('sha1', ob11Config.httpSecret); + const hmac = crypto.createHmac('sha1', ob11Config.http.secret); hmac.update(msgStr); const sig = hmac.digest('hex'); const headers: Record = { 'Content-Type': 'application/json', 'x-self-id': selfInfo.uin }; - if (config.httpSecret) { + if (config.http.secret) { headers['x-signature'] = 'sha1=' + sig; } - for (const host of config.httpPostUrls) { + for (const host of config.http.postUrls) { fetch(host, { method: 'POST', headers, diff --git a/src/onebot11/server/ws/ReverseWebsocket.ts b/src/onebot11/server/ws/ReverseWebsocket.ts index e001b6d1..600e354e 100644 --- a/src/onebot11/server/ws/ReverseWebsocket.ts +++ b/src/onebot11/server/ws/ReverseWebsocket.ts @@ -116,7 +116,7 @@ export class ReverseWebsocket { class OB11ReverseWebsockets { start() { - for (const url of ob11Config.wsReverseUrls) { + for (const url of ob11Config.reverseWs.urls) { log('开始连接反向ws', url); new Promise(() => { try { diff --git a/src/webui/index.ts b/src/webui/index.ts index 3a071ff2..0ec5ea4a 100644 --- a/src/webui/index.ts +++ b/src/webui/index.ts @@ -26,6 +26,7 @@ export async function InitWebUi() { app.use('/api', ALLRouter); app.listen(config.port, async () => { console.log(`[NapCat] [WebUi] Current WebUi is running at IP:${config.port}`); + console.log(`[NapCat] [WebUi] Login Token is ${config.token}`); }) } \ No newline at end of file diff --git a/src/webui/src/api/OB11Config.ts b/src/webui/src/api/OB11Config.ts index 933245a2..30606a98 100644 --- a/src/webui/src/api/OB11Config.ts +++ b/src/webui/src/api/OB11Config.ts @@ -3,84 +3,88 @@ import { WebUiDataRuntime } from "../helper/Data"; import { existsSync, readFileSync, writeFileSync } from "node:fs"; import { resolve } from "node:path"; import { OB11Config } from "@/webui/ui/components/WebUiApiOB11Config"; -const isEmpty = (data: any) => data === undefined || data === null || data === ''; +const isEmpty = (data: any) => + data === undefined || data === null || data === ""; export const OB11GetConfigHandler: RequestHandler = async (req, res) => { - let isLogin = await WebUiDataRuntime.getQQLoginStatus(); - if (!isLogin) { - res.send({ - code: -1, - message: 'Not Login' - }); - return; - } - const uin = await WebUiDataRuntime.getQQLoginUin(); - let configFilePath = resolve(__dirname, `./config/onebot11_${uin}.json`); - //console.log(configFilePath); - let data: OB11Config; - try { - data = JSON.parse(existsSync(configFilePath) ? readFileSync(configFilePath).toString() : readFileSync(resolve(__dirname, `./config/onebot11.json`)).toString()); - } - catch (e) { - data = {} as OB11Config; - res.send({ - code: -1, - message: 'Config Get Error' - }); - return; - } + let isLogin = await WebUiDataRuntime.getQQLoginStatus(); + if (!isLogin) { res.send({ - code: 0, - message: 'success', - data: data + code: -1, + message: "Not Login", }); return; -} -export const OB11SetConfigHandler: RequestHandler = async (req, res) => { - let isLogin = await WebUiDataRuntime.getQQLoginStatus(); - if (!isLogin) { - res.send({ - code: -1, - message: 'Not Login' - }); - return; - } - if (isEmpty(req.body.config)) { - res.send({ - code: -1, - message: 'config is empty' - }); - return; - } - let SetResult; - try { - await WebUiDataRuntime.setOB11Config(JSON.parse(req.body.config)); - SetResult = true; - } catch (e) { - SetResult = false; - } - - // let configFilePath = resolve(__dirname, `./config/onebot11_${await WebUiDataRuntime.getQQLoginUin()}.json`); - // try { - // JSON.parse(req.body.config) - // readFileSync(configFilePath); - // } - // catch (e) { - // //console.log(e); - // configFilePath = resolve(__dirname, `./config/onebot11.json`); - // } - // //console.log(configFilePath,JSON.parse(req.body.config)); - // writeFileSync(configFilePath, JSON.stringify(JSON.parse(req.body.config), null, 4)); - if (SetResult) { - res.send({ - code: 0, - message: 'success' - }); - } else { - res.send({ - code: -1, - message: 'Config Set Error' - }); - } - + } + const uin = await WebUiDataRuntime.getQQLoginUin(); + let configFilePath = resolve(__dirname, `./config/onebot11_${uin}.json`); + //console.log(configFilePath); + let data: OB11Config; + try { + data = JSON.parse( + existsSync(configFilePath) + ? readFileSync(configFilePath).toString() + : readFileSync(resolve(__dirname, `./config/onebot11.json`)).toString() + ); + } catch (e) { + data = {} as OB11Config; + res.send({ + code: -1, + message: "Config Get Error", + }); return; -} \ No newline at end of file + } + res.send({ + code: 0, + message: "success", + data: data, + }); + return; +}; +export const OB11SetConfigHandler: RequestHandler = async (req, res) => { + let isLogin = await WebUiDataRuntime.getQQLoginStatus(); + if (!isLogin) { + res.send({ + code: -1, + message: "Not Login", + }); + return; + } + if (isEmpty(req.body.config)) { + res.send({ + code: -1, + message: "config is empty", + }); + return; + } + let SetResult; + try { + await WebUiDataRuntime.setOB11Config(JSON.parse(req.body.config)); + SetResult = true; + } catch (e) { + SetResult = false; + } + + // let configFilePath = resolve(__dirname, `./config/onebot11_${await WebUiDataRuntime.getQQLoginUin()}.json`); + // try { + // JSON.parse(req.body.config) + // readFileSync(configFilePath); + // } + // catch (e) { + // //console.log(e); + // configFilePath = resolve(__dirname, `./config/onebot11.json`); + // } + // //console.log(configFilePath,JSON.parse(req.body.config)); + // writeFileSync(configFilePath, JSON.stringify(JSON.parse(req.body.config), null, 4)); + if (SetResult) { + res.send({ + code: 0, + message: "success", + }); + } else { + res.send({ + code: -1, + message: "Config Set Error", + }); + } + + return; +}; diff --git a/src/webui/ui/NapCat.ts b/src/webui/ui/NapCat.ts index c08a6ea9..a5a51326 100644 --- a/src/webui/ui/NapCat.ts +++ b/src/webui/ui/NapCat.ts @@ -3,23 +3,26 @@ import { SettingItem } from "./components/SettingItem"; import { SettingButton } from "./components/SettingButton"; import { SettingSwitch } from "./components/SettingSwitch"; import { SettingSelect } from "./components/SettingSelect"; -import { OB11Config, OB11ConfigWrapper } from "./components/WebUiApiOB11Config" +import { OB11Config, OB11ConfigWrapper } from "./components/WebUiApiOB11Config"; async function onSettingWindowCreated(view: Element) { - const isEmpty = (value: any) => value === undefined || value === undefined || value === ''; - await OB11ConfigWrapper.Init(localStorage.getItem('auth') as string); + const isEmpty = (value: any) => + value === undefined || value === undefined || value === ""; + await OB11ConfigWrapper.Init(localStorage.getItem("auth") as string); let ob11Config: OB11Config = await OB11ConfigWrapper.GetOB11Config(); const setOB11Config = (key: string, value: any) => { - const configKey = key.split('.'); + const configKey = key.split("."); if (configKey.length === 2) { ob11Config[configKey[1]] = value; + } else if (configKey.length === 3) { + ob11Config[configKey[1]][configKey[2]] = value; } OB11ConfigWrapper.SetOB11Config(ob11Config); - } + }; const parser = new DOMParser(); const doc = parser.parseFromString( [ - '
', + "
", `
`, @@ -27,43 +30,46 @@ async function onSettingWindowCreated(view: Element) { SettingItem( 'Napcat', undefined, - SettingButton('V1.3.5', 'napcat-update-button', 'secondary'), + SettingButton("V1.3.5", "napcat-update-button", "secondary") ), ]), SettingList([ SettingItem( - '启用 HTTP 服务', + "启用 HTTP 服务", undefined, - SettingSwitch('ob11.enableHttp', ob11Config.enableHttp, { 'control-display-id': 'config-ob11-httpPort' }), + SettingSwitch("ob11.http.enable", ob11Config.http.enable, { + "control-display-id": "config-ob11-http.port", + }) ), SettingItem( - 'HTTP 服务监听端口', + "HTTP 服务监听端口", undefined, - `
`, - 'config-ob11-httpPort', - ob11Config.enableHttp, + `
`, + "config-ob11-http.port", + ob11Config.http.enable ), SettingItem( - '启用 HTTP 心跳', + "启用 HTTP 心跳", undefined, - SettingSwitch('ob11.enableHttpHeart', ob11Config.enableHttpHeart, { - 'control-display-id': 'config-ob11-enableHttpHeart', - }), + SettingSwitch("ob11.http.enableHeart", ob11Config.http.enableHeart, { + "control-display-id": "config-ob11-HTTP.enableHeart", + }) ), SettingItem( - '启用 HTTP 事件上报', + "启用 HTTP 事件上报", undefined, - SettingSwitch('ob11.enableHttpPost', ob11Config.enableHttpPost, { - 'control-display-id': 'config-ob11-httpPostUrls', - }), + SettingSwitch("ob11.http.enablePost", ob11Config.http.enablePost, { + "control-display-id": "config-ob11-http.postUrls", + }) ), - `
+ `
HTTP 事件上报密钥
-
@@ -71,227 +77,291 @@ async function onSettingWindowCreated(view: Element) {
HTTP 事件上报地址
- 添加 + 添加 -
+
`, SettingItem( - '启用正向 WebSocket 服务', + "启用正向 WebSocket 服务", undefined, - SettingSwitch('ob11.enableWs', ob11Config.enableWs, { 'control-display-id': 'config-ob11-wsPort' }), + SettingSwitch("ob11.ws.enable", ob11Config.ws.enable, { + "control-display-id": "config-ob11-ws.port", + }) ), SettingItem( - '正向 WebSocket 服务监听端口', + "正向 WebSocket 服务监听端口", undefined, - `
`, - 'config-ob11-wsPort', - ob11Config.enableWs, + `
`, + "config-ob11-ws.port", + ob11Config.ws.enable ), SettingItem( - '启用反向 WebSocket 服务', + "启用反向 WebSocket 服务", undefined, - SettingSwitch('ob11.enableWsReverse', ob11Config.enableWsReverse, { - 'control-display-id': 'config-ob11-wsReverseUrls', - }), + SettingSwitch("ob11.reverseWs.enable", ob11Config.reverseWs.enable, { + "control-display-id": "config-ob11-reverseWs.urls", + }) ), - `
+ `
反向 WebSocket 监听地址
- 添加 + 添加
-
+
`, SettingItem( - ' WebSocket 服务心跳间隔', - '控制每隔多久发送一个心跳包,单位为毫秒', - `
`, + " WebSocket 服务心跳间隔", + "控制每隔多久发送一个心跳包,单位为毫秒", + `
` ), SettingItem( - 'Access token', + "Access token", undefined, - `
`, + `
` ), SettingItem( - '新消息上报格式', - '如客户端无特殊需求推荐保持默认设置,两者的详细差异可参考 OneBot v11 文档', + "新消息上报格式", + "如客户端无特殊需求推荐保持默认设置,两者的详细差异可参考 OneBot v11 文档", SettingSelect( [ - { text: '消息段', value: 'array' }, - { text: 'CQ码', value: 'string' }, + { text: "消息段", value: "array" }, + { text: "CQ码", value: "string" }, ], - 'ob11.messagePostFormat', - ob11Config.messagePostFormat, - ), + "ob11.messagePostFormat", + ob11Config.messagePostFormat + ) ), SettingItem( - '音乐卡片签名地址', + "音乐卡片签名地址", undefined, `
`, - 'ob11.musicSignUrl', + "ob11.musicSignUrl" + ), + SettingItem( + "", + undefined, + SettingButton("保存", "config-ob11-save", "primary") ), - SettingItem('', undefined, SettingButton('保存', 'config-ob11-save', 'primary')), ]), SettingList([ SettingItem( - '上报 Bot 自身发送的消息', - '上报 event 为 message_sent', - SettingSwitch('ob11.reportSelfMessage', ob11Config.reportSelfMessage), - ) + "上报 Bot 自身发送的消息", + "上报 event 为 message_sent", + SettingSwitch("ob11.reportSelfMessage", ob11Config.reportSelfMessage) + ), ]), SettingList([ - SettingItem('GitHub 仓库', `https://github.com/NapNeko/NapCatQQ`, SettingButton('点个星星', 'open-github')), - SettingItem('NapCat 文档', ``, SettingButton('看看文档', 'open-docs')), - SettingItem('Telegram 群', `https://t.me/+nLZEnpne-pQ1OWFl`, SettingButton('进去逛逛', 'open-telegram')), - SettingItem('QQ 群', `545402644`, SettingButton('我要进去', 'open-qq-group')), + SettingItem( + "GitHub 仓库", + `https://github.com/NapNeko/NapCatQQ`, + SettingButton("点个星星", "open-github") + ), + SettingItem("NapCat 文档", ``, SettingButton("看看文档", "open-docs")), + SettingItem( + "Telegram 群", + `https://t.me/+nLZEnpne-pQ1OWFl`, + SettingButton("进去逛逛", "open-telegram") + ), + SettingItem( + "QQ 群", + `545402644`, + SettingButton("我要进去", "open-qq-group") + ), ]), - '
', - ].join(''), - 'text/html', - ) + "
", + ].join(""), + "text/html" + ); // 外链按钮 - doc.querySelector('#open-github')?.addEventListener('click', () => { - window.open("https://napneko.github.io/", '_blank'); - }) - doc.querySelector('#open-telegram')?.addEventListener('click', () => { - window.open('https://t.me/+nLZEnpne-pQ1OWFl') - }) - doc.querySelector('#open-qq-group')?.addEventListener('click', () => { - window.open('https://qm.qq.com/q/bDnHRG38aI') - }) - doc.querySelector('#open-docs')?.addEventListener('click', () => { - window.open('https://github.com/NapNeko/NapCatQQ') - }) + doc.querySelector("#open-github")?.addEventListener("click", () => { + window.open("https://napneko.github.io/", "_blank"); + }); + doc.querySelector("#open-telegram")?.addEventListener("click", () => { + window.open("https://t.me/+nLZEnpne-pQ1OWFl"); + }); + doc.querySelector("#open-qq-group")?.addEventListener("click", () => { + window.open("https://qm.qq.com/q/bDnHRG38aI"); + }); + doc.querySelector("#open-docs")?.addEventListener("click", () => { + window.open("https://github.com/NapNeko/NapCatQQ"); + }); // 生成反向地址列表 - const buildHostListItem = (type: string, host: string, index: number, inputAttrs: any = {}) => { + const buildHostListItem = ( + type: string, + host: string, + index: number, + inputAttrs: any = {} + ) => { const dom = { - container: document.createElement('setting-item'), - input: document.createElement('input'), - inputContainer: document.createElement('div'), - deleteBtn: document.createElement('setting-button'), - } - dom.container.classList.add('setting-host-list-item') - dom.container.dataset.direction = 'row' - Object.assign(dom.input, inputAttrs) - dom.input.classList.add('q-input__inner') - dom.input.type = 'url' - dom.input.value = host - dom.input.addEventListener('input', () => { - ob11Config[type][index] = dom.input.value - }) + container: document.createElement("setting-item"), + input: document.createElement("input"), + inputContainer: document.createElement("div"), + deleteBtn: document.createElement("setting-button"), + }; + dom.container.classList.add("setting-host-list-item"); + dom.container.dataset.direction = "row"; + Object.assign(dom.input, inputAttrs); + dom.input.classList.add("q-input__inner"); + dom.input.type = "url"; + dom.input.value = host; + dom.input.addEventListener("input", () => { + ob11Config[type.split(".")[0]][type.split(".")[1]][index] = + dom.input.value; + }); - dom.inputContainer.classList.add('q-input') - dom.inputContainer.appendChild(dom.input) + dom.inputContainer.classList.add("q-input"); + dom.inputContainer.appendChild(dom.input); - dom.deleteBtn.innerHTML = '删除' - dom.deleteBtn.dataset.type = 'secondary' - dom.deleteBtn.addEventListener('click', () => { - ob11Config[type].splice(index, 1) - initReverseHost(type) - }) + dom.deleteBtn.innerHTML = "删除"; + dom.deleteBtn.dataset.type = "secondary"; + dom.deleteBtn.addEventListener("click", () => { + ob11Config[type.split(".")[0]][type.split(".")[1]].splice(index, 1); + initReverseHost(type); + }); - dom.container.appendChild(dom.inputContainer) - dom.container.appendChild(dom.deleteBtn) + dom.container.appendChild(dom.inputContainer); + dom.container.appendChild(dom.deleteBtn); - return dom.container - } - const buildHostList = (hosts: string[], type: string, inputAttr: any = {}) => { - const result: HTMLElement[] = [] + return dom.container; + }; + const buildHostList = ( + hosts: string[], + type: string, + inputAttr: any = {} + ) => { + const result: HTMLElement[] = []; - hosts.forEach((host, index) => { - result.push(buildHostListItem(type, host, index, inputAttr)) - }) + hosts?.forEach((host, index) => { + result.push(buildHostListItem(type, host, index, inputAttr)); + }); - return result - } - const addReverseHost = (type: string, doc: Document = document, inputAttr: any = {}) => { - const hostContainerDom = doc.body.querySelector(`#config-ob11-${type}-list`); - hostContainerDom?.appendChild(buildHostListItem(type, '', ob11Config[type].length, inputAttr)); - ob11Config[type].push(''); - } + return result; + }; + const addReverseHost = ( + type: string, + doc: Document = document, + inputAttr: any = {} + ) => { + const hostContainerDom = doc.body.querySelector( + `#config-ob11-${type}-list` + ); + hostContainerDom?.appendChild( + buildHostListItem( + type, + "", + ob11Config[type.split(".")[0]][type.split(".")[1]].length, + inputAttr + ) + ); + ob11Config[type.split(".")[0]][type.split(".")[1]].push(""); + }; const initReverseHost = (type: string, doc: Document = document) => { - const hostContainerDom = doc.body?.querySelector(`#config-ob11-${type}-list`); + const hostContainerDom = doc.body?.querySelector( + `#config-ob11-${type}-list` + ); if (hostContainerDom) { [...hostContainerDom.childNodes].forEach((dom) => dom.remove()); - buildHostList(ob11Config[type], type).forEach((dom) => { + buildHostList( + ob11Config[type.split(".")[0]][type.split(".")[1]], + type + ).forEach((dom) => { hostContainerDom?.appendChild(dom); - }) + }); } - } - initReverseHost('httpPostUrls', doc); - initReverseHost('wsReverseUrls', doc); + }; + initReverseHost("http.postUrls", doc); + initReverseHost("reverseWs.urls", doc); doc - .querySelector('#config-ob11-httpPostUrls-add') - ?.addEventListener('click', () => - addReverseHost('httpPostUrls', document, { placeholder: '如:http://127.0.0.1:5140/onebot' }), - ) + .querySelector("#config-ob11-http.postUrls-add") + ?.addEventListener("click", () => + addReverseHost("http.postUrls", document, { + placeholder: "如:http://127.0.0.1:5140/onebot", + }) + ); doc - .querySelector('#config-ob11-wsReverseUrls-add') - ?.addEventListener('click', () => - addReverseHost('wsReverseUrls', document, { placeholder: '如:ws://127.0.0.1:5140/onebot' }), - ) + .querySelector("#config-ob11-reverseWs.urls-add") + ?.addEventListener("click", () => + addReverseHost("reverseWs.urls", document, { + placeholder: "如:ws://127.0.0.1:5140/onebot", + }) + ); - doc.querySelector('#config-ffmpeg-select')?.addEventListener('click', () => { + doc.querySelector("#config-ffmpeg-select")?.addEventListener("click", () => { //选择ffmpeg - }) + }); - doc.querySelector('#config-open-log-path')?.addEventListener('click', () => { + doc.querySelector("#config-open-log-path")?.addEventListener("click", () => { //打开日志 - }) + }); // 开关 - doc.querySelectorAll('setting-switch[data-config-key]').forEach((dom: Element) => { - dom.addEventListener('click', () => { - const active = dom.getAttribute('is-active') == undefined; - //@ts-ignore 扩展 - setOB11Config(dom.dataset.configKey, active) - if (active) dom.setAttribute('is-active', '') - else dom.removeAttribute('is-active') - //@ts-ignore 等待修复 - if (!isEmpty(dom.dataset.controlDisplayId)) { + doc + .querySelectorAll("setting-switch[data-config-key]") + .forEach((dom: Element) => { + dom.addEventListener("click", () => { + const active = dom.getAttribute("is-active") == undefined; + //@ts-ignore 扩展 + setOB11Config(dom.dataset.configKey, active); + if (active) dom.setAttribute("is-active", ""); + else dom.removeAttribute("is-active"); //@ts-ignore 等待修复 - const displayDom = document.querySelector(`#${dom.dataset.controlDisplayId}`) - if (active) displayDom?.removeAttribute('is-hidden') - else displayDom?.setAttribute('is-hidden', '') - } - }) - }) + if (!isEmpty(dom.dataset.controlDisplayId)) { + const displayDom = document.querySelector( + //@ts-ignore 等待修复 + `#${dom.dataset.controlDisplayId}` + ); + if (active) displayDom?.removeAttribute("is-hidden"); + else displayDom?.setAttribute("is-hidden", ""); + } + }); + }); // 输入框 doc - .querySelectorAll('setting-item .q-input input.q-input__inner[data-config-key]') + .querySelectorAll( + "setting-item .q-input input.q-input__inner[data-config-key]" + ) .forEach((dom: Element) => { - dom.addEventListener('input', () => { - const Type = dom.getAttribute('type') + dom.addEventListener("input", () => { + const Type = dom.getAttribute("type"); //@ts-ignore 等待修复 - const configKey = dom.dataset.configKey - const configValue = Type === 'number' ? (parseInt((dom as HTMLInputElement).value) >= 1 ? parseInt((dom as HTMLInputElement).value) : 1) : (dom as HTMLInputElement).value + const configKey = dom.dataset.configKey; + const configValue = + Type === "number" + ? parseInt((dom as HTMLInputElement).value) >= 1 + ? parseInt((dom as HTMLInputElement).value) + : 1 + : (dom as HTMLInputElement).value; - setOB11Config(configKey, configValue) - }) - }) + setOB11Config(configKey, configValue); + }); + }); // 下拉框 - doc.querySelectorAll('ob-setting-select[data-config-key]').forEach((dom: Element) => { - //@ts-ignore 等待修复 - dom?.addEventListener('selected', (e: CustomEvent) => { + doc + .querySelectorAll("ob-setting-select[data-config-key]") + .forEach((dom: Element) => { //@ts-ignore 等待修复 - const configKey = dom.dataset.configKey - const configValue = e.detail.value - setOB11Config(configKey, configValue); - }) - }) + dom?.addEventListener("selected", (e: CustomEvent) => { + //@ts-ignore 等待修复 + const configKey = dom.dataset.configKey; + const configValue = e.detail.value; + setOB11Config(configKey, configValue); + }); + }); // 保存按钮 - doc.querySelector('#config-ob11-save')?.addEventListener('click', () => { + doc.querySelector("#config-ob11-save")?.addEventListener("click", () => { OB11ConfigWrapper.SetOB11Config(ob11Config); - alert('保存成功'); - }) + alert("保存成功"); + }); doc.body.childNodes.forEach((node) => { - view.appendChild(node) - }) + view.appendChild(node); + }); } -export { onSettingWindowCreated }; \ No newline at end of file +export { onSettingWindowCreated }; diff --git a/src/webui/ui/components/WebUiApiOB11Config.ts b/src/webui/ui/components/WebUiApiOB11Config.ts index 4c02e205..ca308811 100644 --- a/src/webui/ui/components/WebUiApiOB11Config.ts +++ b/src/webui/ui/components/WebUiApiOB11Config.ts @@ -1,64 +1,70 @@ export interface OB11Config { - [key: string]: any, - httpHost: "", - httpPort: number; - httpPostUrls: string[]; - httpSecret: "", - wsHost: "", - wsPort: number; - wsReverseUrls: string[]; - enableHttp: boolean; - enableHttpHeart: boolean; - enableHttpPost: boolean; - enableWs: boolean; - enableWsReverse: boolean; - messagePostFormat: 'array' | 'string'; - reportSelfMessage: boolean; - enableLocalFile2Url: boolean; - debug: boolean; - heartInterval: number; - token: "", - musicSignUrl: "", + [key: string]: any; + http: { + enable: boolean; + host: ""; + port: number; + secret: ""; + enableHeart: boolean; + enablePost: boolean; + postUrls: string[]; + }; + ws: { + enable: boolean; + host: ""; + port: number; + }; + reverseWs: { + enable: boolean; + urls: string[]; + }; + + debug: boolean; + heartInterval: number; + messagePostFormat: "array" | "string"; + enableLocalFile2Url: boolean; + musicSignUrl: ""; + reportSelfMessage: boolean; + token: ""; } + class WebUiApiOB11ConfigWrapper { - private retCredential: string = ""; - async Init(Credential: string) { - this.retCredential = Credential; + private retCredential: string = ""; + async Init(Credential: string) { + this.retCredential = Credential; + } + async GetOB11Config(): Promise { + let ConfigResponse = await fetch("/api/OB11Config/GetConfig", { + method: "POST", + headers: { + Authorization: "Bearer " + this.retCredential, + "Content-Type": "application/json", + }, + }); + if (ConfigResponse.status == 200) { + let ConfigResponseJson = await ConfigResponse.json(); + if (ConfigResponseJson.code == 0) { + return ConfigResponseJson?.data; + } } - async GetOB11Config(): Promise { - let ConfigResponse = await fetch('/api/OB11Config/GetConfig', { - method: 'POST', - headers: { - 'Authorization': "Bearer " + this.retCredential, - 'Content-Type': 'application/json' - } - }); - if (ConfigResponse.status == 200) { - let ConfigResponseJson = await ConfigResponse.json(); - if (ConfigResponseJson.code == 0) { - return ConfigResponseJson?.data; - } - } - return {} as OB11Config; - } - async SetOB11Config(config: OB11Config): Promise { - let ConfigResponse = await fetch('/api/OB11Config/SetConfig', - { - method: 'POST', - headers: { - 'Authorization': "Bearer " + this.retCredential, - 'Content-Type': 'application/json' - }, - body: JSON.stringify({ config: JSON.stringify(config) }) - } - ); - if (ConfigResponse.status == 200) { - let ConfigResponseJson = await ConfigResponse.json(); - if (ConfigResponseJson.code == 0) { - return true; - } - } - return false; + return {} as OB11Config; + } + async SetOB11Config(config: OB11Config): Promise { + let ConfigResponse = await fetch("/api/OB11Config/SetConfig", { + method: "POST", + headers: { + Authorization: "Bearer " + this.retCredential, + "Content-Type": "application/json", + }, + body: JSON.stringify({ config: JSON.stringify(config) }), + }); + if (ConfigResponse.status == 200) { + let ConfigResponseJson = await ConfigResponse.json(); + if (ConfigResponseJson.code == 0) { + return true; + } } + return false; + } } -export const OB11ConfigWrapper = new WebUiApiOB11ConfigWrapper(); \ No newline at end of file +export const OB11ConfigWrapper = new WebUiApiOB11ConfigWrapper(); diff --git a/static/assets/renderer.js b/static/assets/renderer.js index 900f398c..25bbd63e 100644 --- a/static/assets/renderer.js +++ b/static/assets/renderer.js @@ -111,7 +111,7 @@ class WebUiApiOB11ConfigWrapper { let ConfigResponse = await fetch("/api/OB11Config/GetConfig", { method: "POST", headers: { - "Authorization": "Bearer " + this.retCredential, + Authorization: "Bearer " + this.retCredential, "Content-Type": "application/json" } }); @@ -124,17 +124,14 @@ class WebUiApiOB11ConfigWrapper { return {}; } async SetOB11Config(config) { - let ConfigResponse = await fetch( - "/api/OB11Config/SetConfig", - { - method: "POST", - headers: { - "Authorization": "Bearer " + this.retCredential, - "Content-Type": "application/json" - }, - body: JSON.stringify({ config: JSON.stringify(config) }) - } - ); + let ConfigResponse = await fetch("/api/OB11Config/SetConfig", { + method: "POST", + headers: { + Authorization: "Bearer " + this.retCredential, + "Content-Type": "application/json" + }, + body: JSON.stringify({ config: JSON.stringify(config) }) + }); if (ConfigResponse.status == 200) { let ConfigResponseJson = await ConfigResponse.json(); if (ConfigResponseJson.code == 0) { @@ -154,6 +151,8 @@ async function onSettingWindowCreated(view) { const configKey = key.split("."); if (configKey.length === 2) { ob11Config[configKey[1]] = value; + } else if (configKey.length === 3) { + ob11Config[configKey[1]][configKey[2]] = value; } OB11ConfigWrapper.SetOB11Config(ob11Config); }; @@ -175,73 +174,77 @@ async function onSettingWindowCreated(view) { SettingItem( "启用 HTTP 服务", void 0, - SettingSwitch("ob11.enableHttp", ob11Config.enableHttp, { "control-display-id": "config-ob11-httpPort" }) + SettingSwitch("ob11.http.enable", ob11Config.http.enable, { + "control-display-id": "config-ob11-http.port" + }) ), SettingItem( "HTTP 服务监听端口", void 0, - `
`, - "config-ob11-httpPort", - ob11Config.enableHttp + `
`, + "config-ob11-http.port", + ob11Config.http.enable ), SettingItem( "启用 HTTP 心跳", void 0, - SettingSwitch("ob11.enableHttpHeart", ob11Config.enableHttpHeart, { - "control-display-id": "config-ob11-enableHttpHeart" + SettingSwitch("ob11.http.enableHeart", ob11Config.http.enableHeart, { + "control-display-id": "config-ob11-HTTP.enableHeart" }) ), SettingItem( "启用 HTTP 事件上报", void 0, - SettingSwitch("ob11.enableHttpPost", ob11Config.enableHttpPost, { - "control-display-id": "config-ob11-httpPostUrls" + SettingSwitch("ob11.http.enablePost", ob11Config.http.enablePost, { + "control-display-id": "config-ob11-http.postUrls" }) ), - `
+ `
HTTP 事件上报密钥
- +
HTTP 事件上报地址
- 添加 + 添加
-
+
`, SettingItem( "启用正向 WebSocket 服务", void 0, - SettingSwitch("ob11.enableWs", ob11Config.enableWs, { "control-display-id": "config-ob11-wsPort" }) + SettingSwitch("ob11.ws.enable", ob11Config.ws.enable, { + "control-display-id": "config-ob11-ws.port" + }) ), SettingItem( "正向 WebSocket 服务监听端口", void 0, - `
`, - "config-ob11-wsPort", - ob11Config.enableWs + `
`, + "config-ob11-ws.port", + ob11Config.ws.enable ), SettingItem( "启用反向 WebSocket 服务", void 0, - SettingSwitch("ob11.enableWsReverse", ob11Config.enableWsReverse, { - "control-display-id": "config-ob11-wsReverseUrls" + SettingSwitch("ob11.reverseWs.enable", ob11Config.reverseWs.enable, { + "control-display-id": "config-ob11-reverseWs.urls" }) ), - `
+ `
反向 WebSocket 监听地址
- 添加 + 添加
-
+
`, SettingItem( " WebSocket 服务心跳间隔", @@ -271,7 +274,11 @@ async function onSettingWindowCreated(view) { `
`, "ob11.musicSignUrl" ), - SettingItem("", void 0, SettingButton("保存", "config-ob11-save", "primary")) + SettingItem( + "", + void 0, + SettingButton("保存", "config-ob11-save", "primary") + ) ]), SettingList([ SettingItem( @@ -281,10 +288,22 @@ async function onSettingWindowCreated(view) { ) ]), SettingList([ - SettingItem("GitHub 仓库", `https://github.com/NapNeko/NapCatQQ`, SettingButton("点个星星", "open-github")), + SettingItem( + "GitHub 仓库", + `https://github.com/NapNeko/NapCatQQ`, + SettingButton("点个星星", "open-github") + ), SettingItem("NapCat 文档", ``, SettingButton("看看文档", "open-docs")), - SettingItem("Telegram 群", `https://t.me/+nLZEnpne-pQ1OWFl`, SettingButton("进去逛逛", "open-telegram")), - SettingItem("QQ 群", `545402644`, SettingButton("我要进去", "open-qq-group")) + SettingItem( + "Telegram 群", + `https://t.me/+nLZEnpne-pQ1OWFl`, + SettingButton("进去逛逛", "open-telegram") + ), + SettingItem( + "QQ 群", + `545402644`, + SettingButton("我要进去", "open-qq-group") + ) ]), "
" ].join(""), @@ -316,14 +335,14 @@ async function onSettingWindowCreated(view) { dom.input.type = "url"; dom.input.value = host; dom.input.addEventListener("input", () => { - ob11Config[type][index] = dom.input.value; + ob11Config[type.split(".")[0]][type.split(".")[1]][index] = dom.input.value; }); dom.inputContainer.classList.add("q-input"); dom.inputContainer.appendChild(dom.input); dom.deleteBtn.innerHTML = "删除"; dom.deleteBtn.dataset.type = "secondary"; dom.deleteBtn.addEventListener("click", () => { - ob11Config[type].splice(index, 1); + ob11Config[type.split(".")[0]][type.split(".")[1]].splice(index, 1); initReverseHost(type); }); dom.container.appendChild(dom.inputContainer); @@ -332,34 +351,52 @@ async function onSettingWindowCreated(view) { }; const buildHostList = (hosts, type, inputAttr = {}) => { const result = []; - hosts.forEach((host, index) => { + hosts?.forEach((host, index) => { result.push(buildHostListItem(type, host, index, inputAttr)); }); return result; }; const addReverseHost = (type, doc2 = document, inputAttr = {}) => { - const hostContainerDom = doc2.body.querySelector(`#config-ob11-${type}-list`); - hostContainerDom?.appendChild(buildHostListItem(type, "", ob11Config[type].length, inputAttr)); - ob11Config[type].push(""); + const hostContainerDom = doc2.body.querySelector( + `#config-ob11-${type}-list` + ); + hostContainerDom?.appendChild( + buildHostListItem( + type, + "", + ob11Config[type.split(".")[0]][type.split(".")[1]].length, + inputAttr + ) + ); + ob11Config[type.split(".")[0]][type.split(".")[1]].push(""); }; const initReverseHost = (type, doc2 = document) => { - const hostContainerDom = doc2.body?.querySelector(`#config-ob11-${type}-list`); + const hostContainerDom = doc2.body?.querySelector( + `#config-ob11-${type}-list` + ); if (hostContainerDom) { [...hostContainerDom.childNodes].forEach((dom) => dom.remove()); - buildHostList(ob11Config[type], type).forEach((dom) => { + buildHostList( + ob11Config[type.split(".")[0]][type.split(".")[1]], + type + ).forEach((dom) => { hostContainerDom?.appendChild(dom); }); } }; - initReverseHost("httpPostUrls", doc); - initReverseHost("wsReverseUrls", doc); - doc.querySelector("#config-ob11-httpPostUrls-add")?.addEventListener( + initReverseHost("http.postUrls", doc); + initReverseHost("reverseWs.urls", doc); + doc.querySelector("#config-ob11-http.postUrls-add")?.addEventListener( "click", - () => addReverseHost("httpPostUrls", document, { placeholder: "如:http://127.0.0.1:5140/onebot" }) + () => addReverseHost("http.postUrls", document, { + placeholder: "如:http://127.0.0.1:5140/onebot" + }) ); - doc.querySelector("#config-ob11-wsReverseUrls-add")?.addEventListener( + doc.querySelector("#config-ob11-reverseWs.urls-add")?.addEventListener( "click", - () => addReverseHost("wsReverseUrls", document, { placeholder: "如:ws://127.0.0.1:5140/onebot" }) + () => addReverseHost("reverseWs.urls", document, { + placeholder: "如:ws://127.0.0.1:5140/onebot" + }) ); doc.querySelector("#config-ffmpeg-select")?.addEventListener("click", () => { }); @@ -374,7 +411,10 @@ async function onSettingWindowCreated(view) { else dom.removeAttribute("is-active"); if (!isEmpty(dom.dataset.controlDisplayId)) { - const displayDom = document.querySelector(`#${dom.dataset.controlDisplayId}`); + const displayDom = document.querySelector( + //@ts-ignore 等待修复 + `#${dom.dataset.controlDisplayId}` + ); if (active) displayDom?.removeAttribute("is-hidden"); else @@ -382,7 +422,9 @@ async function onSettingWindowCreated(view) { } }); }); - doc.querySelectorAll("setting-item .q-input input.q-input__inner[data-config-key]").forEach((dom) => { + doc.querySelectorAll( + "setting-item .q-input input.q-input__inner[data-config-key]" + ).forEach((dom) => { dom.addEventListener("input", () => { const Type = dom.getAttribute("type"); const configKey = dom.dataset.configKey;