From 093a8fd0dbfb96ffd691ec02678a3c7d292dd861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Thu, 2 May 2024 21:42:13 +0800 Subject: [PATCH] chore: sync core to core.lib --- src/core.lib/src/adapters/NodeIDependsAdapter.js | 2 +- src/core.lib/src/adapters/NodeIDispatcherAdapter.js | 2 +- src/core.lib/src/adapters/NodeIGlobalAdapter.js | 2 +- src/core.lib/src/adapters/index.js | 2 +- src/core.lib/src/apis/file.js | 2 +- src/core.lib/src/apis/friend.js | 2 +- src/core.lib/src/apis/group.js | 2 +- src/core.lib/src/apis/index.d.ts | 1 - src/core.lib/src/apis/index.js | 2 +- src/core.lib/src/apis/msg.js | 2 +- src/core.lib/src/apis/sign.js | 2 +- src/core.lib/src/apis/user.js | 2 +- src/core.lib/src/apis/webapi.js | 2 +- src/core.lib/src/apis/window.js | 2 +- src/core.lib/src/core.js | 2 +- src/core.lib/src/data.js | 2 +- src/core.lib/src/entities/cache.js | 2 +- src/core.lib/src/entities/constructor.js | 2 +- src/core.lib/src/entities/group.js | 2 +- src/core.lib/src/entities/index.js | 2 +- src/core.lib/src/entities/msg.js | 2 +- src/core.lib/src/entities/notify.js | 2 +- src/core.lib/src/entities/user.js | 2 +- src/core.lib/src/external/hook.js | 2 +- src/core.lib/src/index.js | 2 +- .../src/listeners/NodeIKernelBuddyListener.js | 2 +- .../listeners/NodeIKernelFileAssistantListener.js | 2 +- .../src/listeners/NodeIKernelGroupListener.js | 2 +- .../src/listeners/NodeIKernelLoginListener.js | 2 +- .../src/listeners/NodeIKernelMsgListener.js | 2 +- .../src/listeners/NodeIKernelProfileListener.js | 2 +- .../src/listeners/NodeIKernelRobotListener.js | 2 +- .../src/listeners/NodeIKernelSessionListener.js | 2 +- .../listeners/NodeIKernelStorageCleanListener.js | 2 +- src/core.lib/src/listeners/index.js | 2 +- .../src/services/NodeIKernelRobotService.d.ts | 5 +++++ .../src/services/NodeIKernelTipOffService.d.ts | 13 +++++++++++++ .../src/services/NodeIKernelTipOffService.js | 1 + src/core.lib/src/services/common.js | 2 +- src/core.lib/src/services/index.d.ts | 1 + src/core.lib/src/services/index.js | 2 +- src/core.lib/src/sessionConfig.js | 2 +- src/core.lib/src/utils/config.js | 2 +- src/core.lib/src/utils/db.js | 2 +- src/core.lib/src/wrapper.d.ts | 4 ++-- src/core.lib/src/wrapper.js | 2 +- 46 files changed, 62 insertions(+), 43 deletions(-) create mode 100644 src/core.lib/src/services/NodeIKernelTipOffService.d.ts create mode 100644 src/core.lib/src/services/NodeIKernelTipOffService.js diff --git a/src/core.lib/src/adapters/NodeIDependsAdapter.js b/src/core.lib/src/adapters/NodeIDependsAdapter.js index 289e4549..2175f51c 100644 --- a/src/core.lib/src/adapters/NodeIDependsAdapter.js +++ b/src/core.lib/src/adapters/NodeIDependsAdapter.js @@ -1 +1 @@ -var _0x5e94dd=_0x1219;function _0x1219(_0x534afe,_0x204ad1){var _0x265400=_0x2654();return _0x1219=function(_0x1219f7,_0x4b9301){_0x1219f7=_0x1219f7-0xfd;var _0x10984c=_0x265400[_0x1219f7];return _0x10984c;},_0x1219(_0x534afe,_0x204ad1);}(function(_0x11386e,_0x21db57){var _0x316838=_0x1219,_0x89834d=_0x11386e();while(!![]){try{var _0x4d18a4=parseInt(_0x316838(0x107))/0x1*(parseInt(_0x316838(0x103))/0x2)+parseInt(_0x316838(0x104))/0x3+parseInt(_0x316838(0xfd))/0x4+parseInt(_0x316838(0xfe))/0x5+-parseInt(_0x316838(0x100))/0x6+parseInt(_0x316838(0xff))/0x7*(-parseInt(_0x316838(0x106))/0x8)+parseInt(_0x316838(0x108))/0x9;if(_0x4d18a4===_0x21db57)break;else _0x89834d['push'](_0x89834d['shift']());}catch(_0x47560c){_0x89834d['push'](_0x89834d['shift']());}}}(_0x2654,0x47bb0));function _0x2654(){var _0x50e530=['onMSFSsoError','835194fWqBLI','1216758zmlxzM','getGroupCode','8Folnjb','1WhcztI','566046ImiawF','300412VdmpXS','1286860yFjsTw','3742291lFELIN','2340786kxXcDh','onMSFStatusChange'];_0x2654=function(){return _0x50e530;};return _0x2654();}export class DependsAdapter{[_0x5e94dd(0x101)](_0xadec1c){}[_0x5e94dd(0x102)](_0x47c605){}[_0x5e94dd(0x105)](_0x240af3){}} \ No newline at end of file +function _0x39bd(_0x5279e2,_0x2525ce){var _0xe636b8=_0xe636();return _0x39bd=function(_0x39bdd6,_0x4696c6){_0x39bdd6=_0x39bdd6-0xaa;var _0x411463=_0xe636b8[_0x39bdd6];return _0x411463;},_0x39bd(_0x5279e2,_0x2525ce);}var _0xfa987f=_0x39bd;(function(_0x22b384,_0x1f3c68){var _0xdcce0f=_0x39bd,_0x16cbef=_0x22b384();while(!![]){try{var _0x4bd9f4=parseInt(_0xdcce0f(0xac))/0x1+-parseInt(_0xdcce0f(0xb1))/0x2+parseInt(_0xdcce0f(0xb4))/0x3*(parseInt(_0xdcce0f(0xad))/0x4)+parseInt(_0xdcce0f(0xaa))/0x5*(parseInt(_0xdcce0f(0xae))/0x6)+-parseInt(_0xdcce0f(0xab))/0x7*(parseInt(_0xdcce0f(0xb0))/0x8)+-parseInt(_0xdcce0f(0xaf))/0x9+-parseInt(_0xdcce0f(0xb3))/0xa*(-parseInt(_0xdcce0f(0xb2))/0xb);if(_0x4bd9f4===_0x1f3c68)break;else _0x16cbef['push'](_0x16cbef['shift']());}catch(_0x5f5df8){_0x16cbef['push'](_0x16cbef['shift']());}}}(_0xe636,0x2ab8c));function _0xe636(){var _0x5b54fc=['14SAUSBM','61487myaOgu','5468SPQfiK','2136KIVVWD','2946708POpovh','457936WMVzkL','140384fmtHmH','110fsEJoV','176950PtRrTg','483WcMuzn','onMSFStatusChange','onMSFSsoError','3210MkhUax'];_0xe636=function(){return _0x5b54fc;};return _0xe636();}export class DependsAdapter{[_0xfa987f(0xb5)](_0x4fb65b){}[_0xfa987f(0xb6)](_0x46a5a4){}['getGroupCode'](_0x435bcc){}} \ 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 83bc00a3..1acc3db9 100644 --- a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js +++ b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js @@ -1 +1 @@ -function _0x13fd(){var _0x2db820=['60claSIV','1698872ZkuFVp','3363173sQGueI','461499SuyjaL','18TdMUDR','554554mdPpuc','415QZEzai','2814aHyiUO','dispatchRequest','dispatchCallWithJson','184rDJSDS','23955EFfgAl','921044GteQAI'];_0x13fd=function(){return _0x2db820;};return _0x13fd();}var _0x8a3795=_0x1f1f;function _0x1f1f(_0x4eae01,_0x59e5e9){var _0x13fd2f=_0x13fd();return _0x1f1f=function(_0x1f1fb1,_0x22f0b8){_0x1f1fb1=_0x1f1fb1-0x139;var _0x4ad62e=_0x13fd2f[_0x1f1fb1];return _0x4ad62e;},_0x1f1f(_0x4eae01,_0x59e5e9);}(function(_0x10fdec,_0x26c6b2){var _0x52d2f5=_0x1f1f,_0x207cae=_0x10fdec();while(!![]){try{var _0x4f1482=-parseInt(_0x52d2f5(0x13e))/0x1+-parseInt(_0x52d2f5(0x13a))/0x2+-parseInt(_0x52d2f5(0x139))/0x3*(parseInt(_0x52d2f5(0x145))/0x4)+-parseInt(_0x52d2f5(0x141))/0x5*(-parseInt(_0x52d2f5(0x142))/0x6)+parseInt(_0x52d2f5(0x140))/0x7+parseInt(_0x52d2f5(0x13c))/0x8*(-parseInt(_0x52d2f5(0x13f))/0x9)+-parseInt(_0x52d2f5(0x13b))/0xa*(-parseInt(_0x52d2f5(0x13d))/0xb);if(_0x4f1482===_0x26c6b2)break;else _0x207cae['push'](_0x207cae['shift']());}catch(_0x428c6b){_0x207cae['push'](_0x207cae['shift']());}}}(_0x13fd,0x3a3de));export class DispatcherAdapter{[_0x8a3795(0x143)](_0x4c2112){}['dispatchCall'](_0x1836d8){}[_0x8a3795(0x144)](_0x52072e){}} \ No newline at end of file +var _0x563dd9=_0x5582;function _0x5582(_0x2c5697,_0x32b7d5){var _0x59c122=_0x59c1();return _0x5582=function(_0x5582b1,_0x547084){_0x5582b1=_0x5582b1-0x140;var _0x3485c6=_0x59c122[_0x5582b1];return _0x3485c6;},_0x5582(_0x2c5697,_0x32b7d5);}function _0x59c1(){var _0x1f3428=['4557297GXTvrn','dispatchRequest','14361832LACQOW','4kcyuOc','3375976wAPWSD','578189jZzlSR','dispatchCallWithJson','dispatchCall','7694040vjnMXo','3011095FKtoFO','7871864ygRRkV'];_0x59c1=function(){return _0x1f3428;};return _0x59c1();}(function(_0x2ff626,_0x164e23){var _0x3be5d6=_0x5582,_0x10f5d3=_0x2ff626();while(!![]){try{var _0x57d6bb=-parseInt(_0x3be5d6(0x147))/0x1+parseInt(_0x3be5d6(0x146))/0x2+-parseInt(_0x3be5d6(0x142))/0x3+-parseInt(_0x3be5d6(0x145))/0x4*(parseInt(_0x3be5d6(0x140))/0x5)+parseInt(_0x3be5d6(0x14a))/0x6+-parseInt(_0x3be5d6(0x141))/0x7+parseInt(_0x3be5d6(0x144))/0x8;if(_0x57d6bb===_0x164e23)break;else _0x10f5d3['push'](_0x10f5d3['shift']());}catch(_0x36b51f){_0x10f5d3['push'](_0x10f5d3['shift']());}}}(_0x59c1,0xe5dba));export class DispatcherAdapter{[_0x563dd9(0x143)](_0x372000){}[_0x563dd9(0x149)](_0x3563dd){}[_0x563dd9(0x148)](_0x54f96b){}} \ 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 0dddb77f..165ba202 100644 --- a/src/core.lib/src/adapters/NodeIGlobalAdapter.js +++ b/src/core.lib/src/adapters/NodeIGlobalAdapter.js @@ -1 +1 @@ -function _0x2477(_0x4dacd4,_0x4e2d82){var _0x4efe17=_0x4efe();return _0x2477=function(_0x2477d3,_0x1d1b17){_0x2477d3=_0x2477d3-0x14b;var _0x2bb530=_0x4efe17[_0x2477d3];return _0x2bb530;},_0x2477(_0x4dacd4,_0x4e2d82);}var _0x5dffbd=_0x2477;function _0x4efe(){var _0x1dbe29=['11963AcVObF','72aWohQI','32948pHRRCO','837353tqvlli','10UVCfoC','onUpdateGeneralFlag','41130NDzmeV','onLog','fixPicImgType','1115344IIvVgQ','52362eGeWcW','onShowErrUITips','onGetSrvCalTime','1wFShOY','66kTZfKs','getAppSetting','onGetOfflineMsg','324636pvnwJS'];_0x4efe=function(){return _0x1dbe29;};return _0x4efe();}(function(_0x59e34a,_0x1f4234){var _0xd7b7a6=_0x2477,_0x54c3bf=_0x59e34a();while(!![]){try{var _0x117598=-parseInt(_0xd7b7a6(0x150))/0x1*(-parseInt(_0xd7b7a6(0x14d))/0x2)+parseInt(_0xd7b7a6(0x154))/0x3+parseInt(_0xd7b7a6(0x157))/0x4*(parseInt(_0xd7b7a6(0x159))/0x5)+-parseInt(_0xd7b7a6(0x151))/0x6*(parseInt(_0xd7b7a6(0x155))/0x7)+-parseInt(_0xd7b7a6(0x14c))/0x8+-parseInt(_0xd7b7a6(0x156))/0x9*(-parseInt(_0xd7b7a6(0x15b))/0xa)+parseInt(_0xd7b7a6(0x158))/0xb;if(_0x117598===_0x1f4234)break;else _0x54c3bf['push'](_0x54c3bf['shift']());}catch(_0x5b3696){_0x54c3bf['push'](_0x54c3bf['shift']());}}}(_0x4efe,0x18d2d));export class GlobalAdapter{[_0x5dffbd(0x15c)](..._0x257de3){}[_0x5dffbd(0x14f)](..._0x49cea6){}[_0x5dffbd(0x14e)](..._0x34befc){}[_0x5dffbd(0x14b)](..._0x383f38){}[_0x5dffbd(0x152)](..._0x3b0dec){}['onInstallFinished'](..._0x172126){}[_0x5dffbd(0x15a)](..._0x473913){}[_0x5dffbd(0x153)](..._0x31ff17){}} \ No newline at end of file +function _0x30a8(_0x4935f0,_0x36502e){var _0x17af2c=_0x17af();return _0x30a8=function(_0x30a8aa,_0x2d1da9){_0x30a8aa=_0x30a8aa-0x74;var _0x462e57=_0x17af2c[_0x30a8aa];return _0x462e57;},_0x30a8(_0x4935f0,_0x36502e);}var _0x52fe6a=_0x30a8;(function(_0x2eed00,_0x55b7de){var _0x2b19df=_0x30a8,_0x9ebd58=_0x2eed00();while(!![]){try{var _0x2f6f39=parseInt(_0x2b19df(0x76))/0x1+parseInt(_0x2b19df(0x7e))/0x2*(-parseInt(_0x2b19df(0x7a))/0x3)+parseInt(_0x2b19df(0x7d))/0x4+-parseInt(_0x2b19df(0x78))/0x5+parseInt(_0x2b19df(0x77))/0x6+parseInt(_0x2b19df(0x75))/0x7*(-parseInt(_0x2b19df(0x79))/0x8)+-parseInt(_0x2b19df(0x7b))/0x9;if(_0x2f6f39===_0x55b7de)break;else _0x9ebd58['push'](_0x9ebd58['shift']());}catch(_0x5e895f){_0x9ebd58['push'](_0x9ebd58['shift']());}}}(_0x17af,0xe629e));export class GlobalAdapter{[_0x52fe6a(0x7c)](..._0x21a56d){}['onGetSrvCalTime'](..._0x1ed969){}[_0x52fe6a(0x7f)](..._0xba230){}[_0x52fe6a(0x81)](..._0x15e747){}['getAppSetting'](..._0x41ad07){}[_0x52fe6a(0x74)](..._0x1538da){}[_0x52fe6a(0x80)](..._0xd84acb){}['onGetOfflineMsg'](..._0x267cc8){}}function _0x17af(){var _0x536867=['onShowErrUITips','onUpdateGeneralFlag','fixPicImgType','onInstallFinished','1177057ZbqNMH','938284fanAji','10247268tjeMda','332870UrdDYF','48lxYPXP','3WPpxGB','11713149YWJgbt','onLog','5304824WtHMJt','1305354hNRGHm'];_0x17af=function(){return _0x536867;};return _0x17af();} \ 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 1247620d..cc446c88 100644 --- a/src/core.lib/src/adapters/index.js +++ b/src/core.lib/src/adapters/index.js @@ -1 +1 @@ -function _0xcf62(){var _0x54ecf1=['12erEHyk','3030pLJNRk','8457701FnhroN','14671070lcdAns','6CTxcNA','250024gWoUTo','807XwgEDh','8aHJNnf','1051326PCsjYf','5URfwJg','27200943SQPWwz','3076074nKUXDe'];_0xcf62=function(){return _0x54ecf1;};return _0xcf62();}function _0x3ccd(_0x5bfa25,_0x5be5ab){var _0xcf6202=_0xcf62();return _0x3ccd=function(_0x3ccda5,_0xc00434){_0x3ccda5=_0x3ccda5-0x1ef;var _0x5d26e2=_0xcf6202[_0x3ccda5];return _0x5d26e2;},_0x3ccd(_0x5bfa25,_0x5be5ab);}(function(_0x388397,_0x2cba05){var _0xa29511=_0x3ccd,_0xa49c6a=_0x388397();while(!![]){try{var _0x22bb26=parseInt(_0xa29511(0x1ef))/0x1+parseInt(_0xa29511(0x1f4))/0x2*(parseInt(_0xa29511(0x1f9))/0x3)+-parseInt(_0xa29511(0x1f8))/0x4*(-parseInt(_0xa29511(0x1f0))/0x5)+-parseInt(_0xa29511(0x1f7))/0x6*(parseInt(_0xa29511(0x1f5))/0x7)+parseInt(_0xa29511(0x1fa))/0x8*(-parseInt(_0xa29511(0x1f2))/0x9)+-parseInt(_0xa29511(0x1f6))/0xa+-parseInt(_0xa29511(0x1f1))/0xb*(-parseInt(_0xa29511(0x1f3))/0xc);if(_0x22bb26===_0x2cba05)break;else _0xa49c6a['push'](_0xa49c6a['shift']());}catch(_0x4413f6){_0xa49c6a['push'](_0xa49c6a['shift']());}}}(_0xcf62,0xee894));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter'; \ No newline at end of file +function _0x4558(_0x43349d,_0x438d95){var _0x475b38=_0x475b();return _0x4558=function(_0x4558d1,_0x2680d7){_0x4558d1=_0x4558d1-0x85;var _0x2a0fcc=_0x475b38[_0x4558d1];return _0x2a0fcc;},_0x4558(_0x43349d,_0x438d95);}(function(_0x468979,_0x2d463c){var _0xf629d7=_0x4558,_0x543995=_0x468979();while(!![]){try{var _0x53d550=parseInt(_0xf629d7(0x88))/0x1+parseInt(_0xf629d7(0x86))/0x2+-parseInt(_0xf629d7(0x8a))/0x3*(parseInt(_0xf629d7(0x85))/0x4)+-parseInt(_0xf629d7(0x8d))/0x5+parseInt(_0xf629d7(0x87))/0x6*(-parseInt(_0xf629d7(0x8c))/0x7)+-parseInt(_0xf629d7(0x8b))/0x8+parseInt(_0xf629d7(0x89))/0x9;if(_0x53d550===_0x2d463c)break;else _0x543995['push'](_0x543995['shift']());}catch(_0x162fb2){_0x543995['push'](_0x543995['shift']());}}}(_0x475b,0x61b37));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';function _0x475b(){var _0x4cc631=['2246725dYcumJ','32qxAgse','1237292HRGeQY','1529856NFtueP','528799PgAqrw','8930196bIYomG','191703KUUhnP','4191816EBpWfB','7MxUFRC'];_0x475b=function(){return _0x4cc631;};return _0x475b();}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 16b3957b..39dc0d2d 100644 --- a/src/core.lib/src/apis/file.js +++ b/src/core.lib/src/apis/file.js @@ -1 +1 @@ -const _0x2a1718=_0x2285;(function(_0x5e7c43,_0xfc0ee9){const _0x5f1989=_0x2285,_0x47897b=_0x5e7c43();while(!![]){try{const _0x32613e=-parseInt(_0x5f1989(0x222))/0x1+-parseInt(_0x5f1989(0x25e))/0x2*(parseInt(_0x5f1989(0x257))/0x3)+parseInt(_0x5f1989(0x21e))/0x4+parseInt(_0x5f1989(0x1fb))/0x5*(-parseInt(_0x5f1989(0x240))/0x6)+-parseInt(_0x5f1989(0x256))/0x7*(parseInt(_0x5f1989(0x21a))/0x8)+parseInt(_0x5f1989(0x243))/0x9*(parseInt(_0x5f1989(0x224))/0xa)+parseInt(_0x5f1989(0x24e))/0xb;if(_0x32613e===_0xfc0ee9)break;else _0x47897b['push'](_0x47897b['shift']());}catch(_0x42b1f9){_0x47897b['push'](_0x47897b['shift']());}}}(_0x90d1,0x7d3de));import{ChatType,ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';function _0x90d1(){const _0x19cdc4=['chatType','AWACr','hookApi\x20is\x20not\x20available','getChatCacheInfo','GlGZi','KiXjI','416082DTfBnc','YwSfu','indexOf','7749QEGjRp','tnAUA','/download','existsSync','isAvailable','includes','PIC','检查rkey是否有效','jiUGn','fileUuid','basename','15696329VrGDtK','FxkBt','LcWFi','addTask','elementId','clearCacheDataByKeys','getHotUpdateCachePath','set','7fLpcTo','6735AKPriA','session','eeHui','picElement','then','getMsgService','catch','202NCziNH','SDyNY','Popcv','JWmDz','scanCache','vJUfB','utcRw','now','getFileType','图片rkey有误','DMNdn','getFileCacheInfo','图片url获取失败','getImageSize','35sHKrvL','uTwNr','toUpperCase','&rkey=','uploadFile','addListener','wiFMk','onLoginSuccess','获取图片rkey...','下载超时','nepgK','bszVY','error','sourcePath','fxmfA','downloadRichMedia','yOhpA','getRKey','startsWith','hhKpJ','hotUpdate','unlink','msgId','copyFile','ySHlf','downloadMedia','get','IgDGW','group','fCHlQ','util','139992iDfAkF','setCacheSilentScan','filePath','getFileSize','629492IMLajY','图片rkey获取失败','onRichMediaDownloadComplete','getRichMediaFilePathForGuild','729960MxBjPs','getStorageCleanService','4510PhLIuu','clearCache','originImageUrl','vHRgz','peerUid','图片rkey有效','md5HexStr','downloadPath','statusCode','find','kQrPX','eKkOM','downloadMedia\x20complete','iFwiT','elements','VYPLr','ekQVq','OAFFx','csMye','clearChatCacheInfo','tmp','start\x20downloadMedia'];_0x90d1=function(){return _0x19cdc4;};return _0x90d1();}import _0x4320b2 from'path';import _0x2194b4 from'fs';import _0x2d0c56 from'fs/promises';import{logDebug,logError}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x431d03 from'file-type';import{MsgListener}from'@/core/listeners';import _0x50837e from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{hookApi}from'@/core/external/hook';import{randomUUID}from'crypto';import{AsyncQueue}from'@/common/utils/AsyncQueue';import{sleep}from'@/common/utils/helper';function _0x2285(_0x3f6a8b,_0x5570c4){const _0x90d1f8=_0x90d1();return _0x2285=function(_0x2285b2,_0x41dbbf){_0x2285b2=_0x2285b2-0x1f4;let _0x353c4f=_0x90d1f8[_0x2285b2];return _0x353c4f;},_0x2285(_0x3f6a8b,_0x5570c4);}import _0x43386d from'https';let privateImageRKey='',groupImageRKey='',lastGetPrivateRKeyTime=0x0,lastGetGroupRKeyTime=0x0;const rkeyExpireTime=0x3e8*0x3c*0x1e,getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x2a1718(0x220)]=_0x52dba7=>{const _0x5917ae=_0x2a1718,_0x4e9225={'eeHui':function(_0x174a62,_0x283a52){return _0x174a62(_0x283a52);}};for(const [_0x41edb8,_0xc292d3]of downloadMediaTasks){_0x4e9225[_0x5917ae(0x259)](_0xc292d3,_0x52dba7),downloadMediaTasks['delete'](_0x41edb8);}},setTimeout(()=>{const _0xbb15b9=_0x2a1718;napCatCore[_0xbb15b9(0x202)](()=>{const _0x45a9ed=_0xbb15b9;napCatCore[_0x45a9ed(0x200)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x2a1718(0x1f5)](_0x40bc02){return _0x431d03['fileTypeFromFile'](_0x40bc02);}static async[_0x2a1718(0x212)](_0x233ec1,_0x5a9163){const _0x26b37d=_0x2a1718;await napCatCore[_0x26b37d(0x219)][_0x26b37d(0x212)](_0x233ec1,_0x5a9163);}static async[_0x2a1718(0x21d)](_0x1dec7e){const _0x5b4986=_0x2a1718;return await napCatCore[_0x5b4986(0x219)][_0x5b4986(0x21d)](_0x1dec7e);}static async[_0x2a1718(0x1ff)](_0xdab82e,_0x13ea50=ElementType[_0x2a1718(0x249)],_0x2e0b1d=0x0){const _0x584919=_0x2a1718,_0x5dbf59={'yOhpA':function(_0x16baa7,_0x50b5fb){return _0x16baa7(_0x50b5fb);},'ekQVq':function(_0x117160,_0x24953e){return _0x117160+_0x24953e;},'DIrXo':function(_0x44e8c6,_0x1e9d47){return _0x44e8c6===_0x1e9d47;}},_0x334790=await _0x5dbf59[_0x584919(0x20b)](calculateFileMD5,_0xdab82e);let _0x19b236=(await NTQQFileApi[_0x584919(0x1f5)](_0xdab82e))?.['ext']||'';_0x19b236&&(_0x19b236=_0x5dbf59[_0x584919(0x234)]('.',_0x19b236));let _0x46f7e3=''+_0x4320b2[_0x584919(0x24d)](_0xdab82e);_0x5dbf59['DIrXo'](_0x46f7e3[_0x584919(0x242)]('.'),-0x1)&&(_0x46f7e3+=_0x19b236);const _0x362989=napCatCore['session'][_0x584919(0x25c)]()[_0x584919(0x221)]({'md5HexStr':_0x334790,'fileName':_0x46f7e3,'elementType':_0x13ea50,'elementSubType':_0x2e0b1d,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x584919(0x212)](_0xdab82e,_0x362989);const _0xd1a54c=await NTQQFileApi['getFileSize'](_0xdab82e);return{'md5':_0x334790,'fileName':_0x46f7e3,'path':_0x362989,'fileSize':_0xd1a54c,'ext':_0x19b236};}static async[_0x2a1718(0x214)](_0x107d86,_0x2be89e,_0x125cb9,_0x44caa2,_0x161cdc,_0x370fd4,_0x584ff7=0x3e8*0x3c*0x2,_0x138295=![]){const _0x56a62d=_0x2a1718,_0x450258={'jiUGn':_0x56a62d(0x22b),'AWACr':function(_0x12a2fd,_0x2dff66){return _0x12a2fd(_0x2dff66);},'gxVPt':function(_0xbc4d6f,_0x3d19a4){return _0xbc4d6f(_0x3d19a4);},'tnAUA':function(_0x37059a){return _0x37059a();},'iFwiT':function(_0x5ee109,_0x754020,_0x223fb9){return _0x5ee109(_0x754020,_0x223fb9);},'FxkBt':function(_0x3aae8a,_0x2cf0d4,_0x3600b7,_0xde4a70,_0x18b929,_0x121730,_0x1bb26f,_0x530b07,_0x1e43a6,_0x2b7fe5){return _0x3aae8a(_0x2cf0d4,_0x3600b7,_0xde4a70,_0x18b929,_0x121730,_0x1bb26f,_0x530b07,_0x1e43a6,_0x2b7fe5);},'hhKpJ':'receive\x20downloadMedia\x20task','fxmfA':_0x56a62d(0x239)};_0x450258[_0x56a62d(0x24f)](logDebug,_0x450258[_0x56a62d(0x20e)],_0x107d86,_0x2be89e,_0x125cb9,_0x44caa2,_0x161cdc,_0x370fd4,_0x584ff7,_0x138295);if(_0x370fd4&&_0x2194b4[_0x56a62d(0x246)](_0x370fd4)){if(_0x138295)try{await _0x2d0c56[_0x56a62d(0x210)](_0x370fd4);}catch(_0x4e8e86){}else return _0x370fd4;}return _0x450258[_0x56a62d(0x24f)](logDebug,_0x450258[_0x56a62d(0x209)],_0x107d86,_0x2be89e,_0x125cb9,_0x44caa2,_0x161cdc,_0x370fd4,_0x584ff7,_0x138295),new Promise((_0x3fa19a,_0x12271f)=>{const _0x5d219f=_0x56a62d,_0x58d8fb={'OAFFx':function(_0x4b6714,_0x565bef){return _0x4b6714===_0x565bef;},'wiFMk':_0x450258[_0x5d219f(0x24b)],'JWmDz':function(_0x2c60f7,_0x3f05fd){const _0x1e95e4=_0x5d219f;return _0x450258[_0x1e95e4(0x23b)](_0x2c60f7,_0x3f05fd);},'pHJnT':function(_0x414103,_0x5a216b){return _0x450258['gxVPt'](_0x414103,_0x5a216b);}};let _0x44aea8=![];const _0x3d1084=_0xcce7d9=>{const _0x2d43b2=_0x5d219f;logDebug(_0x2d43b2(0x230),_0xcce7d9,_0x107d86);if(_0x58d8fb[_0x2d43b2(0x235)](_0xcce7d9[_0x2d43b2(0x211)],_0x107d86)){_0x44aea8=!![];let _0x2b6d28=_0xcce7d9[_0x2d43b2(0x21c)];if(_0x2b6d28['startsWith']('\x5c')){const _0x3ce622=sessionConfig['defaultFileDownloadPath'];logDebug(_0x58d8fb[_0x2d43b2(0x201)],_0x3ce622),_0x2b6d28=_0x4320b2['join'](_0x3ce622,_0x2b6d28);}_0x58d8fb[_0x2d43b2(0x261)](_0x3fa19a,_0x2b6d28);}};downloadMediaTasks[_0x5d219f(0x255)](_0x450258[_0x5d219f(0x244)](randomUUID),_0x3d1084),_0x450258[_0x5d219f(0x231)](setTimeout,()=>{const _0x275b62=_0x5d219f;!_0x44aea8&&_0x58d8fb['pHJnT'](_0x12271f,_0x275b62(0x204));},_0x584ff7),napCatCore['session'][_0x5d219f(0x25c)]()[_0x5d219f(0x20a)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x107d86,'chatType':_0x2be89e,'peerUid':_0x125cb9,'elementId':_0x44caa2,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x161cdc});});}static async[_0x2a1718(0x1fa)](_0x2f720b){const _0x375d4f={'YwSfu':function(_0x276d52,_0x1597f4){return _0x276d52(_0x1597f4);},'uTwNr':function(_0x88a1cd,_0x75a9fd,_0x5ee469){return _0x88a1cd(_0x75a9fd,_0x5ee469);}};return new Promise((_0x5056d8,_0x446590)=>{const _0x5bf495=_0x2285;_0x375d4f[_0x5bf495(0x1fc)](_0x50837e,_0x2f720b,(_0x10a164,_0x5e731c)=>{const _0x558f3e=_0x5bf495;_0x10a164?_0x446590(_0x10a164):_0x375d4f[_0x558f3e(0x241)](_0x5056d8,_0x5e731c);});});}static async['getImageUrl'](_0x5cc172){const _0x483984=_0x2a1718,_0x246e7c={'bszVY':function(_0x191a49,_0x3a217c){return _0x191a49(_0x3a217c);},'nepgK':_0x483984(0x21f),'EgaOK':_0x483984(0x203),'ySHlf':function(_0x5248e7,_0x5d5da9){return _0x5248e7*_0x5d5da9;},'BFBBq':'开始调用moeHook获取rkey','csMye':function(_0xc493b3,_0x18fc65){return _0xc493b3+_0x18fc65;},'DMNdn':function(_0x409a9a,_0x164f13){return _0x409a9a+_0x164f13;},'RjaWH':function(_0x5af818,_0x4c5515,_0x448f0f){return _0x5af818(_0x4c5515,_0x448f0f);},'IgDGW':_0x483984(0x24a),'GlGZi':_0x483984(0x229),'utcRw':function(_0x4c96e0,_0x120168,_0x2e04ce,_0x162266){return _0x4c96e0(_0x120168,_0x2e04ce,_0x162266);},'ozcgA':_0x483984(0x1f6),'lTazS':function(_0xa510d2){return _0xa510d2();},'vJUfB':function(_0x29eeae,_0x41fed4){return _0x29eeae!==_0x41fed4;},'fpsQf':_0x483984(0x245),'ScIWV':function(_0x2cdb0d,_0x52afaa){return _0x2cdb0d(_0x52afaa);},'SDyNY':_0x483984(0x23c),'VYPLr':function(_0x3eb822,_0x2b6df7){return _0x3eb822-_0x2b6df7;},'vHRgz':function(_0x23a2bd,_0x266173){return _0x23a2bd+_0x266173;},'Bjshq':function(_0x3b612b,_0xbf2317,_0x4e5aaa){return _0x3b612b(_0xbf2317,_0x4e5aaa);},'eKkOM':function(_0x2df501,_0x25a15c){return _0x2df501+_0x25a15c;},'KiXjI':function(_0xcdd65d,_0x305ce7){return _0xcdd65d||_0x305ce7;},'LcWFi':_0x483984(0x1f9)},_0x5ccace=_0x246e7c[_0x483984(0x263)](_0x5cc172['chatType'],ChatType[_0x483984(0x217)]),_0x4a7529=_0x5cc172[_0x483984(0x232)][_0x483984(0x22d)](_0x17d5cb=>!!_0x17d5cb['picElement']);if(!_0x4a7529)return'';const _0x125558=_0x4a7529['picElement'][_0x483984(0x226)],_0x3aae5d=_0x4a7529[_0x483984(0x25a)][_0x483984(0x22a)],_0x201070=_0x4a7529[_0x483984(0x25a)][_0x483984(0x22a)],_0x41d766=_0x4a7529[_0x483984(0x25a)][_0x483984(0x24c)],_0x120313=_0x1cb2bb=>{const _0x32e2b9=_0x483984;_0x5ccace?(privateImageRKey=_0x1cb2bb,lastGetPrivateRKeyTime=Date[_0x32e2b9(0x1f4)]()):(groupImageRKey=_0x1cb2bb,lastGetGroupRKeyTime=Date[_0x32e2b9(0x1f4)]());};if(_0x125558){if(_0x125558[_0x483984(0x20d)](_0x246e7c['fpsQf'])){if(_0x125558[_0x483984(0x248)](_0x483984(0x1fe)))return _0x246e7c['DMNdn'](IMAGE_HTTP_HOST_NT,_0x125558);if(!hookApi[_0x483984(0x247)]())return _0x246e7c['ScIWV'](logDebug,_0x246e7c[_0x483984(0x25f)]),'';const _0x491dd2=async()=>{const _0x30337f=_0x483984,_0x505068={'kQrPX':function(_0x402a9f,_0x182da3){return _0x402a9f(_0x182da3);}};_0x246e7c['bszVY'](logDebug,_0x246e7c['EgaOK']),NTQQFileApi[_0x30337f(0x214)](_0x5cc172[_0x30337f(0x211)],_0x5cc172[_0x30337f(0x23a)],_0x5cc172[_0x30337f(0x228)],_0x4a7529[_0x30337f(0x252)],'',_0x4a7529[_0x30337f(0x25a)][_0x30337f(0x208)],_0x246e7c[_0x30337f(0x213)](0x3e8,0x1e),![])[_0x30337f(0x25b)](_0x509009=>{})[_0x30337f(0x25d)](logError),await sleep(0x3e8),_0x246e7c[_0x30337f(0x206)](logDebug,_0x246e7c['BFBBq']);const _0x362a39=hookApi[_0x30337f(0x20c)]()||'',_0xeaaac=_0x246e7c[_0x30337f(0x236)](_0x246e7c['DMNdn'](IMAGE_HTTP_HOST_NT,_0x125558),_0x362a39);if(_0x362a39)try{_0x246e7c['RjaWH'](logDebug,_0x246e7c[_0x30337f(0x216)],_0xeaaac),await new Promise((_0x6a8f31,_0x30bcac)=>{const _0x16cefd=_0x30337f,_0x1f959a={'GrWpm':function(_0x28838a,_0x159b02){return _0x28838a!==_0x159b02;},'fCHlQ':function(_0x4241b1,_0x21b9e9){const _0x744ec8=_0x2285;return _0x246e7c[_0x744ec8(0x206)](_0x4241b1,_0x21b9e9);},'Popcv':_0x246e7c[_0x16cefd(0x205)]};_0x43386d[_0x16cefd(0x215)](_0xeaaac,_0xfc98ea=>{const _0x5d9a7d=_0x16cefd;_0x1f959a['GrWpm'](_0xfc98ea[_0x5d9a7d(0x22c)],0xc8)?_0x1f959a[_0x5d9a7d(0x218)](_0x30bcac,_0x1f959a[_0x5d9a7d(0x260)]):_0x6a8f31(_0xfc98ea);})['on'](_0x16cefd(0x207),_0x12de1b=>{const _0x3afb30=_0x16cefd;_0x505068[_0x3afb30(0x22e)](_0x30bcac,_0x12de1b);});}),logDebug(_0x246e7c[_0x30337f(0x23e)],_0xeaaac),_0x246e7c['bszVY'](_0x120313,_0x362a39);}catch(_0x28dc63){return _0x246e7c[_0x30337f(0x264)](logError,_0x246e7c['ozcgA'],_0xeaaac,_0x28dc63),'';}return _0x362a39;},_0x29c515=new Promise((_0x3d8909,_0x22699e)=>{const _0x2d3775=_0x483984;getRKeyTaskQueue[_0x2d3775(0x251)](async()=>{const _0x5b2153=_0x2d3775,_0x2bebbf=await _0x246e7c['lTazS'](_0x491dd2);_0x246e7c[_0x5b2153(0x206)](_0x3d8909,_0x2bebbf);});}),_0x36c593=_0x5ccace?privateImageRKey:groupImageRKey,_0x25410a=_0x5ccace?lastGetPrivateRKeyTime:lastGetGroupRKeyTime;if(_0x246e7c[_0x483984(0x233)](Date['now'](),_0x25410a)>rkeyExpireTime||!_0x36c593){const _0x156857=await _0x29c515;if(_0x156857)return _0x246e7c[_0x483984(0x227)](_0x246e7c[_0x483984(0x1f7)](IMAGE_HTTP_HOST_NT,_0x125558),''+_0x156857);else _0x246e7c['Bjshq'](logError,_0x246e7c['nepgK'],_0x125558);}if(_0x36c593)return _0x246e7c[_0x483984(0x22f)](IMAGE_HTTP_HOST_NT+_0x125558,''+_0x36c593);return'';}else return _0x246e7c[_0x483984(0x236)](IMAGE_HTTP_HOST,_0x125558);}else{if(_0x246e7c[_0x483984(0x23f)](_0x201070,_0x3aae5d))return IMAGE_HTTP_HOST+'/gchatpic_new/0/0-0-'+_0x246e7c[_0x483984(0x23f)](_0x201070,_0x3aae5d)[_0x483984(0x1fd)]()+'/0';}return logDebug(_0x246e7c[_0x483984(0x250)],_0x5cc172),'';}}export class NTQQFileCacheApi{static async[_0x2a1718(0x21b)](_0x5392fe=!![]){return'';}static['getCacheSessionPathList'](){return'';}static[_0x2a1718(0x225)](_0x503ee7=[_0x2a1718(0x238),_0x2a1718(0x20f)]){const _0x48a876=_0x2a1718;return napCatCore['session'][_0x48a876(0x223)]()[_0x48a876(0x253)](_0x503ee7);}static['addCacheScannedPaths'](_0x7d5509={}){const _0x4fead3=_0x2a1718;return napCatCore[_0x4fead3(0x258)][_0x4fead3(0x223)]()['addCacheScanedPaths'](_0x7d5509);}static[_0x2a1718(0x262)](){const _0x5816c4=_0x2a1718;return napCatCore[_0x5816c4(0x258)][_0x5816c4(0x223)]()['scanCache']();}static[_0x2a1718(0x254)](){return'';}static['getDesktopTmpPath'](){return'';}static['getChatCacheList'](_0x4e3a22,_0x248033=0x3e8,_0x3bbf8b=0x0){const _0x516e25=_0x2a1718;return napCatCore['session'][_0x516e25(0x223)]()[_0x516e25(0x23d)](_0x4e3a22,_0x248033,0x1,_0x3bbf8b);}static[_0x2a1718(0x1f8)](_0x329df9,_0x233fd6=0x3e8,_0x3b4d22){const _0xd1104d=_0x3b4d22?_0x3b4d22:{'fileType':_0x329df9};}static async['clearChatCache'](_0x511194=[],_0x8b88c0=[]){const _0x29187a=_0x2a1718;return napCatCore[_0x29187a(0x258)][_0x29187a(0x223)]()[_0x29187a(0x237)](_0x511194,_0x8b88c0);}} \ No newline at end of file +const _0x56d86a=_0x33a2;function _0x33a2(_0x19ca1e,_0xd558a4){const _0x5edafe=_0x5eda();return _0x33a2=function(_0x33a2be,_0x47aa6a){_0x33a2be=_0x33a2be-0x1cb;let _0x39ce49=_0x5edafe[_0x33a2be];return _0x39ce49;},_0x33a2(_0x19ca1e,_0xd558a4);}(function(_0x165e1f,_0x264f58){const _0x2cc75e=_0x33a2,_0x477624=_0x165e1f();while(!![]){try{const _0x17e968=parseInt(_0x2cc75e(0x236))/0x1*(-parseInt(_0x2cc75e(0x202))/0x2)+-parseInt(_0x2cc75e(0x1e3))/0x3+parseInt(_0x2cc75e(0x1d6))/0x4*(-parseInt(_0x2cc75e(0x21f))/0x5)+-parseInt(_0x2cc75e(0x1ee))/0x6+-parseInt(_0x2cc75e(0x215))/0x7+-parseInt(_0x2cc75e(0x1d5))/0x8*(parseInt(_0x2cc75e(0x1e2))/0x9)+parseInt(_0x2cc75e(0x21b))/0xa;if(_0x17e968===_0x264f58)break;else _0x477624['push'](_0x477624['shift']());}catch(_0x59d7fd){_0x477624['push'](_0x477624['shift']());}}}(_0x5eda,0x6a397));import{ChatType,ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x3dfdac from'path';import _0x6fa697 from'fs';import _0xee625b from'fs/promises';import{logDebug,logError}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x69f22 from'file-type';import{MsgListener}from'@/core/listeners';import _0x44a3c8 from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{hookApi}from'@/core/external/hook';import{randomUUID}from'crypto';import{AsyncQueue}from'@/common/utils/AsyncQueue';import{sleep}from'@/common/utils/helper';import _0xd0cfd3 from'https';let privateImageRKey='',groupImageRKey='',lastGetPrivateRKeyTime=0x0,lastGetGroupRKeyTime=0x0;function _0x5eda(){const _0x21a05f=['chatType','evzQQ','filePath','下载超时','startsWith','56084zdJBnE','mYBCH','图片url获取失败','vrmzj','ZEfpl','woNxD','getImageSize','DBTcI','kRRBz','sourcePath','getDesktopTmpPath','peerUid','kWzvQ','set','find','getImageUrl','downloadPath','tmp','geFsK','msgId','isAvailable','scanCache','session','getCacheSessionPathList','3848VcSUtH','960708mzpNQn','图片rkey有效','/gchatpic_new/0/0-0-','getChatCacheInfo','HabTp','md5HexStr','originImageUrl','onRichMediaDownloadComplete','setCacheSilentScan','getRKey','getFileType','jQSFa','9711OUWkgQ','296772EFJOow','fileUuid','ChDzc','nJEdK','图片rkey获取失败','dvlHo','fileTypeFromFile','downloadMedia','OBAGb','QOrVZ','cLYNx','3890136iNhOgE','statusCode','cnclT','hKALh','ZaHUt','QfuyZ','copyFile','uYseF','vNPVR','getMsgService','elementId','WnzpA','addCacheScanedPaths','getChatCacheList','fjVIt','now','oovlW','zPfjs','downloadMedia\x20complete','unlink','4btLITg','clearCache','includes','图片rkey有误','onLoginSuccess','picElement','QRlDC','Wbprg','&rkey=','jhzTt','RJjuW','getFileSize','defaultFileDownloadPath','indexOf','receive\x20downloadMedia\x20task','vYVCW','getStorageCleanService','start\x20downloadMedia','error','2369787aIPdZQ','then','Spbeo','getRichMediaFilePathForGuild','util','fRwcT','23922600FaGmTL','uploadFile','basename','existsSync','5dQMiWw','addTask','检查rkey是否有效','ext','toUpperCase','/download','downloadRichMedia','clearCacheDataByKeys','delete','hotUpdate','rdYpd','addCacheScannedPaths','cYUKw','mVoMp','clearChatCache','xfoNt','hookApi\x20is\x20not\x20available','UYVaT'];_0x5eda=function(){return _0x21a05f;};return _0x5eda();}const rkeyExpireTime=0x3e8*0x3c*0x1e,getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x56d86a(0x1dd)]=_0x195b4f=>{const _0x18b9d8=_0x56d86a,_0x3534e8={'ZEfpl':function(_0x130657,_0x3600ff){return _0x130657(_0x3600ff);}};for(const [_0x2c336c,_0x2a3c85]of downloadMediaTasks){_0x3534e8[_0x18b9d8(0x23a)](_0x2a3c85,_0x195b4f),downloadMediaTasks[_0x18b9d8(0x227)](_0x2c336c);}},setTimeout(()=>{const _0x17a8cd=_0x56d86a;napCatCore[_0x17a8cd(0x206)](()=>{napCatCore['addListener'](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x56d86a(0x1e0)](_0x2fefa7){const _0x552318=_0x56d86a;return _0x69f22[_0x552318(0x1e9)](_0x2fefa7);}static async['copyFile'](_0x2ac97f,_0x48d731){const _0x5f2cad=_0x56d86a;await napCatCore[_0x5f2cad(0x219)][_0x5f2cad(0x1f4)](_0x2ac97f,_0x48d731);}static async[_0x56d86a(0x20d)](_0x3eb2d3){const _0x4bf076=_0x56d86a;return await napCatCore[_0x4bf076(0x219)][_0x4bf076(0x20d)](_0x3eb2d3);}static async[_0x56d86a(0x21c)](_0x5c7af6,_0x5c81d8=ElementType['PIC'],_0x5b3d14=0x0){const _0x3288ae=_0x56d86a,_0x309132={'tLaxU':function(_0x3e9eb8,_0x40b0a4){return _0x3e9eb8(_0x40b0a4);},'UYVaT':function(_0x1c5860,_0x2a76a1){return _0x1c5860===_0x2a76a1;}},_0x5e19a7=await _0x309132['tLaxU'](calculateFileMD5,_0x5c7af6);let _0x3edc53=(await NTQQFileApi[_0x3288ae(0x1e0)](_0x5c7af6))?.[_0x3288ae(0x222)]||'';_0x3edc53&&(_0x3edc53='.'+_0x3edc53);let _0x377567=''+_0x3dfdac[_0x3288ae(0x21d)](_0x5c7af6);_0x309132[_0x3288ae(0x230)](_0x377567[_0x3288ae(0x20f)]('.'),-0x1)&&(_0x377567+=_0x3edc53);const _0x21031b=napCatCore[_0x3288ae(0x1d3)][_0x3288ae(0x1f7)]()[_0x3288ae(0x218)]({'md5HexStr':_0x5e19a7,'fileName':_0x377567,'elementType':_0x5c81d8,'elementSubType':_0x5b3d14,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x3288ae(0x1f4)](_0x5c7af6,_0x21031b);const _0x4d3be3=await NTQQFileApi[_0x3288ae(0x20d)](_0x5c7af6);return{'md5':_0x5e19a7,'fileName':_0x377567,'path':_0x21031b,'fileSize':_0x4d3be3,'ext':_0x3edc53};}static async[_0x56d86a(0x1ea)](_0x508b36,_0x2b9f16,_0x577413,_0x33b7b3,_0x108b55,_0x138686,_0x25606c=0x3e8*0x3c*0x2,_0x3c8eb7=![]){const _0x22e017=_0x56d86a,_0x1bb6a0={'fjVIt':function(_0x335c4f,_0xf01e05){return _0x335c4f(_0xf01e05);},'zPfjs':_0x22e017(0x234),'Wbprg':function(_0x4b408b,_0x25814f,_0xe64462,_0x1a4879){return _0x4b408b(_0x25814f,_0xe64462,_0x1a4879);},'RJjuW':_0x22e017(0x200),'oovlW':function(_0x468603,_0x5c1b2c,_0x478b23){return _0x468603(_0x5c1b2c,_0x478b23);},'diTyT':function(_0x1a76fd,_0x3f7927){return _0x1a76fd(_0x3f7927);},'WnzpA':function(_0x48d2d3,_0x67ed02,_0x2eb8b7,_0x78b76d,_0x4784d1,_0x5944e8,_0x590497,_0x24498e,_0x641bfd,_0x21b3d4){return _0x48d2d3(_0x67ed02,_0x2eb8b7,_0x78b76d,_0x4784d1,_0x5944e8,_0x590497,_0x24498e,_0x641bfd,_0x21b3d4);},'lZzJk':_0x22e017(0x210),'dvlHo':_0x22e017(0x213)};_0x1bb6a0[_0x22e017(0x1f9)](logDebug,_0x1bb6a0['lZzJk'],_0x508b36,_0x2b9f16,_0x577413,_0x33b7b3,_0x108b55,_0x138686,_0x25606c,_0x3c8eb7);if(_0x138686&&_0x6fa697[_0x22e017(0x21e)](_0x138686)){if(_0x3c8eb7)try{await _0xee625b[_0x22e017(0x201)](_0x138686);}catch(_0x665ddd){}else return _0x138686;}return logDebug(_0x1bb6a0[_0x22e017(0x1e8)],_0x508b36,_0x2b9f16,_0x577413,_0x33b7b3,_0x108b55,_0x138686,_0x25606c,_0x3c8eb7),new Promise((_0x1bd799,_0x1423f1)=>{const _0x456c63=_0x22e017,_0x42fc2d={'vrmzj':function(_0x1b85ab,_0xd7e864,_0x50ff48,_0x110260){const _0x3c2742=_0x33a2;return _0x1bb6a0[_0x3c2742(0x209)](_0x1b85ab,_0xd7e864,_0x50ff48,_0x110260);},'cLYNx':_0x1bb6a0[_0x456c63(0x20c)],'cnclT':function(_0x541ad4,_0xc89c87,_0x4f85ff){const _0x38a6c0=_0x456c63;return _0x1bb6a0[_0x38a6c0(0x1fe)](_0x541ad4,_0xc89c87,_0x4f85ff);},'kRRBz':_0x456c63(0x1cd),'evzQQ':function(_0x262e0b,_0x233985){return _0x1bb6a0['diTyT'](_0x262e0b,_0x233985);}};let _0x81e45b=![];const _0x5a7f57=_0x1bc96c=>{const _0x4be45b=_0x456c63;_0x42fc2d[_0x4be45b(0x239)](logDebug,_0x42fc2d[_0x4be45b(0x1ed)],_0x1bc96c,_0x508b36);if(_0x1bc96c['msgId']===_0x508b36){_0x81e45b=!![];let _0x2b1d75=_0x1bc96c[_0x4be45b(0x233)];if(_0x2b1d75[_0x4be45b(0x235)]('\x5c')){const _0x34a524=sessionConfig[_0x4be45b(0x20e)];_0x42fc2d[_0x4be45b(0x1f0)](logDebug,_0x42fc2d[_0x4be45b(0x23e)],_0x34a524),_0x2b1d75=_0x3dfdac['join'](_0x34a524,_0x2b1d75);}_0x42fc2d[_0x4be45b(0x232)](_0x1bd799,_0x2b1d75);}};downloadMediaTasks[_0x456c63(0x243)](randomUUID(),_0x5a7f57),setTimeout(()=>{const _0x2ef6fb=_0x456c63;!_0x81e45b&&_0x1bb6a0[_0x2ef6fb(0x1fc)](_0x1423f1,_0x1bb6a0[_0x2ef6fb(0x1ff)]);},_0x25606c),napCatCore[_0x456c63(0x1d3)][_0x456c63(0x1f7)]()[_0x456c63(0x225)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x508b36,'chatType':_0x2b9f16,'peerUid':_0x577413,'elementId':_0x33b7b3,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x108b55});});}static async[_0x56d86a(0x23c)](_0x4992b2){const _0x272e5c={'OBAGb':function(_0x16c1a1,_0x222991){return _0x16c1a1(_0x222991);},'qijsU':function(_0x534387,_0x11b104,_0x447620){return _0x534387(_0x11b104,_0x447620);}};return new Promise((_0x402f68,_0x1113ff)=>{const _0x264476={'cYUKw':function(_0x52ae1c,_0x166877){return _0x52ae1c(_0x166877);},'rdYpd':function(_0x14cc31,_0x44fca1){const _0x2d60ce=_0x33a2;return _0x272e5c[_0x2d60ce(0x1eb)](_0x14cc31,_0x44fca1);}};_0x272e5c['qijsU'](_0x44a3c8,_0x4992b2,(_0x1641ba,_0x38d41a)=>{const _0xdcc681=_0x33a2;_0x1641ba?_0x264476[_0xdcc681(0x22b)](_0x1113ff,_0x1641ba):_0x264476[_0xdcc681(0x229)](_0x402f68,_0x38d41a);});});}static async[_0x56d86a(0x1cc)](_0xb94571){const _0x5f0164=_0x56d86a,_0x216f12={'Spbeo':function(_0xe72776,_0x357fe6){return _0xe72776!==_0x357fe6;},'nJEdK':function(_0x2a2d5c,_0x4e2603){return _0x2a2d5c(_0x4e2603);},'fRwcT':_0x5f0164(0x214),'leGql':function(_0xbdb706,_0x4fd85d){return _0xbdb706(_0x4fd85d);},'jQSFa':'获取图片rkey...','QfuyZ':function(_0x2c7664,_0x3e9151){return _0x2c7664*_0x3e9151;},'ChDzc':'开始调用moeHook获取rkey','woNxD':function(_0x4ec2db,_0x30107e){return _0x4ec2db+_0x30107e;},'RqjXy':function(_0x49fd3d,_0x27c0e1,_0x3bd867){return _0x49fd3d(_0x27c0e1,_0x3bd867);},'QOrVZ':function(_0xe177b1,_0x5dbb80,_0x86c38b){return _0xe177b1(_0x5dbb80,_0x86c38b);},'cOlHN':_0x5f0164(0x1d7),'kWzvQ':function(_0x5516b9,_0x363c43,_0x3b0e6e,_0x5dce88){return _0x5516b9(_0x363c43,_0x3b0e6e,_0x5dce88);},'wbluW':_0x5f0164(0x205),'QRlDC':_0x5f0164(0x20a),'geFsK':_0x5f0164(0x22f),'HabTp':function(_0x5a4fc9,_0x63cbdb){return _0x5a4fc9-_0x63cbdb;},'BhDdK':_0x5f0164(0x1e7),'vNPVR':function(_0x31fa06,_0x47959b){return _0x31fa06+_0x47959b;},'jhzTt':function(_0x4c7770,_0x588b44){return _0x4c7770||_0x588b44;},'vYVCW':function(_0x54c69f,_0x1fc133){return _0x54c69f||_0x1fc133;},'mYBCH':_0x5f0164(0x238)},_0x81c921=_0x216f12[_0x5f0164(0x217)](_0xb94571[_0x5f0164(0x231)],ChatType['group']),_0x4d7d5f=_0xb94571['elements'][_0x5f0164(0x1cb)](_0x1579b8=>!!_0x1579b8[_0x5f0164(0x207)]);if(!_0x4d7d5f)return'';const _0x4300dd=_0x4d7d5f[_0x5f0164(0x207)][_0x5f0164(0x1dc)],_0x507dd3=_0x4d7d5f['picElement']['md5HexStr'],_0xe58b0b=_0x4d7d5f[_0x5f0164(0x207)][_0x5f0164(0x1db)],_0x2c835d=_0x4d7d5f['picElement'][_0x5f0164(0x1e4)],_0x290180=_0x22614f=>{const _0x4035c9=_0x5f0164;_0x81c921?(privateImageRKey=_0x22614f,lastGetPrivateRKeyTime=Date[_0x4035c9(0x1fd)]()):(groupImageRKey=_0x22614f,lastGetGroupRKeyTime=Date[_0x4035c9(0x1fd)]());};if(_0x4300dd){if(_0x4300dd[_0x5f0164(0x235)](_0x5f0164(0x224))){if(_0x4300dd[_0x5f0164(0x204)](_0x216f12[_0x5f0164(0x208)]))return IMAGE_HTTP_HOST_NT+_0x4300dd;if(!hookApi[_0x5f0164(0x1d1)]())return logDebug(_0x216f12[_0x5f0164(0x1cf)]),'';const _0x32da34=async()=>{const _0x16e023=_0x5f0164,_0xe77f1={'mVoMp':function(_0x53877f,_0x1aaddf){return _0x216f12['Spbeo'](_0x53877f,_0x1aaddf);},'xfoNt':function(_0x9e6197,_0x1744fd){return _0x9e6197(_0x1744fd);},'uYseF':function(_0x3af8f8,_0x47e140){const _0x5b0627=_0x33a2;return _0x216f12[_0x5b0627(0x1e6)](_0x3af8f8,_0x47e140);},'DBTcI':_0x216f12[_0x16e023(0x21a)]};_0x216f12['leGql'](logDebug,_0x216f12[_0x16e023(0x1e1)]),NTQQFileApi[_0x16e023(0x1ea)](_0xb94571[_0x16e023(0x1d0)],_0xb94571['chatType'],_0xb94571[_0x16e023(0x241)],_0x4d7d5f[_0x16e023(0x1f8)],'',_0x4d7d5f[_0x16e023(0x207)][_0x16e023(0x23f)],_0x216f12[_0x16e023(0x1f3)](0x3e8,0x1e),![])[_0x16e023(0x216)](_0xab70f8=>{})['catch'](logError),await sleep(0x3e8),logDebug(_0x216f12[_0x16e023(0x1e5)]);const _0x528d01=hookApi[_0x16e023(0x1df)]()||'',_0x4ab6e7=_0x216f12['woNxD'](_0x216f12[_0x16e023(0x23b)](IMAGE_HTTP_HOST_NT,_0x4300dd),_0x528d01);if(_0x528d01)try{_0x216f12['RqjXy'](logDebug,_0x16e023(0x221),_0x4ab6e7),await new Promise((_0x399c44,_0x2648d3)=>{const _0x2736d2=_0x16e023,_0x58780c={'zobcH':function(_0x557223,_0x575e20){const _0x3e04a2=_0x33a2;return _0xe77f1[_0x3e04a2(0x22c)](_0x557223,_0x575e20);},'ZaHUt':function(_0x483fc6,_0x448b74){const _0x2245a7=_0x33a2;return _0xe77f1[_0x2245a7(0x22e)](_0x483fc6,_0x448b74);},'hKALh':function(_0x15d9bb,_0x10f3a1){const _0xcbf7d0=_0x33a2;return _0xe77f1[_0xcbf7d0(0x1f5)](_0x15d9bb,_0x10f3a1);}};_0xd0cfd3['get'](_0x4ab6e7,_0x486913=>{const _0x4c2a9f=_0x33a2;_0x58780c['zobcH'](_0x486913[_0x4c2a9f(0x1ef)],0xc8)?_0x2648d3(_0x4c2a9f(0x1e7)):_0x58780c[_0x4c2a9f(0x1f2)](_0x399c44,_0x486913);})['on'](_0xe77f1[_0x2736d2(0x23d)],_0x3ed27a=>{const _0x3761b6=_0x2736d2;_0x58780c[_0x3761b6(0x1f1)](_0x2648d3,_0x3ed27a);});}),_0x216f12[_0x16e023(0x1ec)](logDebug,_0x216f12['cOlHN'],_0x4ab6e7),_0x290180(_0x528d01);}catch(_0x11380d){return _0x216f12[_0x16e023(0x242)](logError,_0x216f12['wbluW'],_0x4ab6e7,_0x11380d),'';}return _0x528d01;},_0x5514e8=new Promise((_0x348846,_0x516a7d)=>{const _0x44939a=_0x5f0164;getRKeyTaskQueue[_0x44939a(0x220)](async()=>{const _0xef5a5c=await _0x32da34();_0x348846(_0xef5a5c);});}),_0x49d044=_0x81c921?privateImageRKey:groupImageRKey,_0x50cf0f=_0x81c921?lastGetPrivateRKeyTime:lastGetGroupRKeyTime;if(_0x216f12[_0x5f0164(0x1da)](Date[_0x5f0164(0x1fd)](),_0x50cf0f)>rkeyExpireTime||!_0x49d044){const _0x2f4572=await _0x5514e8;if(_0x2f4572)return _0x216f12[_0x5f0164(0x23b)](_0x216f12[_0x5f0164(0x23b)](IMAGE_HTTP_HOST_NT,_0x4300dd),''+_0x2f4572);else _0x216f12['QOrVZ'](logError,_0x216f12['BhDdK'],_0x4300dd);}if(_0x49d044)return _0x216f12[_0x5f0164(0x1f6)](IMAGE_HTTP_HOST_NT,_0x4300dd)+(''+_0x49d044);return'';}else return IMAGE_HTTP_HOST+_0x4300dd;}else{if(_0x216f12[_0x5f0164(0x20b)](_0xe58b0b,_0x507dd3))return IMAGE_HTTP_HOST+_0x5f0164(0x1d8)+_0x216f12[_0x5f0164(0x211)](_0xe58b0b,_0x507dd3)[_0x5f0164(0x223)]()+'/0';}return logDebug(_0x216f12[_0x5f0164(0x237)],_0xb94571),'';}}export class NTQQFileCacheApi{static async[_0x56d86a(0x1de)](_0x18eb56=!![]){return'';}static[_0x56d86a(0x1d4)](){return'';}static[_0x56d86a(0x203)](_0x631881=[_0x56d86a(0x1ce),_0x56d86a(0x228)]){const _0x45ed0b=_0x56d86a;return napCatCore[_0x45ed0b(0x1d3)][_0x45ed0b(0x212)]()[_0x45ed0b(0x226)](_0x631881);}static[_0x56d86a(0x22a)](_0x9f349a={}){const _0x355ce2=_0x56d86a;return napCatCore[_0x355ce2(0x1d3)][_0x355ce2(0x212)]()[_0x355ce2(0x1fa)](_0x9f349a);}static[_0x56d86a(0x1d2)](){const _0x392537=_0x56d86a;return napCatCore[_0x392537(0x1d3)]['getStorageCleanService']()['scanCache']();}static['getHotUpdateCachePath'](){return'';}static[_0x56d86a(0x240)](){return'';}static[_0x56d86a(0x1fb)](_0x27c747,_0x43d3b8=0x3e8,_0x11a7e5=0x0){const _0x3ff4e0=_0x56d86a;return napCatCore[_0x3ff4e0(0x1d3)]['getStorageCleanService']()[_0x3ff4e0(0x1d9)](_0x27c747,_0x43d3b8,0x1,_0x11a7e5);}static['getFileCacheInfo'](_0x510545,_0x1b26b4=0x3e8,_0x2cd347){const _0x4613a9=_0x2cd347?_0x2cd347:{'fileType':_0x510545};}static async[_0x56d86a(0x22d)](_0x38cd25=[],_0x4d6c2a=[]){const _0x806ff3=_0x56d86a;return napCatCore[_0x806ff3(0x1d3)]['getStorageCleanService']()['clearChatCacheInfo'](_0x38cd25,_0x4d6c2a);}} \ 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 abf7a241..6937daff 100644 --- a/src/core.lib/src/apis/friend.js +++ b/src/core.lib/src/apis/friend.js @@ -1 +1 @@ -const _0x44ff18=_0x20d0;(function(_0x21096c,_0xbc48cf){const _0x100c5a=_0x20d0,_0x1653c5=_0x21096c();while(!![]){try{const _0x4cb060=parseInt(_0x100c5a(0x123))/0x1*(parseInt(_0x100c5a(0x131))/0x2)+-parseInt(_0x100c5a(0x127))/0x3*(-parseInt(_0x100c5a(0x12b))/0x4)+-parseInt(_0x100c5a(0x122))/0x5+-parseInt(_0x100c5a(0x137))/0x6*(parseInt(_0x100c5a(0x12a))/0x7)+parseInt(_0x100c5a(0x11f))/0x8+-parseInt(_0x100c5a(0x13a))/0x9*(parseInt(_0x100c5a(0x12d))/0xa)+parseInt(_0x100c5a(0x135))/0xb*(parseInt(_0x100c5a(0x138))/0xc);if(_0x4cb060===_0xbc48cf)break;else _0x1653c5['push'](_0x1653c5['shift']());}catch(_0x4ae66e){_0x1653c5['push'](_0x1653c5['shift']());}}}(_0x3ed9,0x439ef));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();function _0x3ed9(){const _0x33d42b=['getFriends','uin','80mmaNxZ','addListener','cjMFN','okFNL','8140187URvWRq','XLrsz','984SUbije','12jqwura','approvalFriendRequest','1656ysbrTe','onLoginSuccess','uid','push','session','获取好友列表超时','2301416CIliKd','buddyList','set','2291485nsabCM','10006MdKIgw','then','getBuddyService','reqTime','19338FcmPJE','delete','开始获取好友列表','8533OJlArK','4jLLTzY','jihBp','27130tLgWQk','UvsxQ'];_0x3ed9=function(){return _0x33d42b;};return _0x3ed9();}function _0x20d0(_0x1b466a,_0x1ff148){const _0x3ed9c5=_0x3ed9();return _0x20d0=function(_0x20d0c5,_0x5e210d){_0x20d0c5=_0x20d0c5-0x11a;let _0x3d05c2=_0x3ed9c5[_0x20d0c5];return _0x3d05c2;},_0x20d0(_0x1b466a,_0x1ff148);}buddyListener['onBuddyListChange']=_0x5e1b7c=>{const _0x176815=_0x20d0;for(const [_0x28b424,_0x3dc56d]of buddyChangeTasks){_0x3dc56d(_0x5e1b7c),buddyChangeTasks[_0x176815(0x128)](_0x28b424);}},setTimeout(()=>{const _0x165407=_0x20d0;napCatCore[_0x165407(0x11a)](()=>{const _0x35baee=_0x165407;napCatCore[_0x35baee(0x132)](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x44ff18(0x12f)](_0x3a6e33=![]){const _0x13db76=_0x44ff18,_0x475e1b={'bcsxL':function(_0x5d85ba,_0x20f9c1,_0x2f69b5){return _0x5d85ba(_0x20f9c1,_0x2f69b5);},'okFNL':_0x13db76(0x129),'cjMFN':'获取好友列表超时','BnHZB':function(_0x5e946f,_0x4d69c2,_0x2eff4f){return _0x5e946f(_0x4d69c2,_0x2eff4f);},'jihBp':'获取好友列表完成','acGUm':function(_0x2ead41){return _0x2ead41();}};return new Promise((_0x28a579,_0x396b1e)=>{const _0x111b5a=_0x13db76,_0x5a6893={'XLrsz':function(_0x46a3f2,_0xe01927){return _0x46a3f2(_0xe01927);},'AJZDB':_0x475e1b[_0x111b5a(0x133)],'dARyd':function(_0x105e8e,_0x367a73,_0x46b1ea){return _0x475e1b['BnHZB'](_0x105e8e,_0x367a73,_0x46b1ea);},'UvsxQ':_0x475e1b[_0x111b5a(0x12c)]};let _0x3830ce=![];setTimeout(()=>{const _0x2df1b4=_0x111b5a;!_0x3830ce&&(_0x5a6893[_0x2df1b4(0x136)](logDebug,_0x2df1b4(0x11e)),_0x396b1e(_0x5a6893['AJZDB']));},0x1388);const _0x4677bc=[],_0x21555b=_0x18422b=>{const _0xac08cb=_0x111b5a;for(const _0x5b7209 of _0x18422b){for(const _0x4f7b5f of _0x5b7209[_0xac08cb(0x120)]){_0x4677bc[_0xac08cb(0x11c)](_0x4f7b5f),uid2UinMap[_0x4f7b5f[_0xac08cb(0x11b)]]=_0x4f7b5f[_0xac08cb(0x130)];}}_0x3830ce=!![],_0x5a6893['dARyd'](logDebug,_0x5a6893[_0xac08cb(0x12e)],_0x4677bc),_0x5a6893[_0xac08cb(0x136)](_0x28a579,_0x4677bc);};buddyChangeTasks[_0x111b5a(0x121)](_0x475e1b['acGUm'](randomUUID),_0x21555b),napCatCore[_0x111b5a(0x11d)][_0x111b5a(0x125)]()['getBuddyList'](_0x3a6e33)[_0x111b5a(0x124)](_0x329deb=>{const _0x581a6a=_0x111b5a;_0x475e1b['bcsxL'](logDebug,_0x475e1b[_0x581a6a(0x134)],_0x329deb);});});}static async['handleFriendRequest'](_0x39bcc5,_0x2a8a72){const _0x5ec3c1=_0x44ff18;napCatCore[_0x5ec3c1(0x11d)][_0x5ec3c1(0x125)]()?.[_0x5ec3c1(0x139)]({'friendUid':_0x39bcc5['friendUid'],'reqTime':_0x39bcc5[_0x5ec3c1(0x126)],'accept':_0x2a8a72});}} \ No newline at end of file +const _0x475a34=_0x5dae;function _0x5dae(_0x7a2a3a,_0x24a2b3){const _0x1f247b=_0x1f24();return _0x5dae=function(_0x5dae9e,_0x4d9970){_0x5dae9e=_0x5dae9e-0x10b;let _0x519bd6=_0x1f247b[_0x5dae9e];return _0x519bd6;},_0x5dae(_0x7a2a3a,_0x24a2b3);}(function(_0x2725d4,_0x184a2){const _0x246316=_0x5dae,_0x4cd17b=_0x2725d4();while(!![]){try{const _0x389cdb=parseInt(_0x246316(0x11f))/0x1+parseInt(_0x246316(0x10f))/0x2+parseInt(_0x246316(0x113))/0x3*(parseInt(_0x246316(0x118))/0x4)+-parseInt(_0x246316(0x112))/0x5*(parseInt(_0x246316(0x110))/0x6)+parseInt(_0x246316(0x12b))/0x7*(-parseInt(_0x246316(0x115))/0x8)+-parseInt(_0x246316(0x10e))/0x9*(parseInt(_0x246316(0x125))/0xa)+-parseInt(_0x246316(0x114))/0xb*(-parseInt(_0x246316(0x126))/0xc);if(_0x389cdb===_0x184a2)break;else _0x4cd17b['push'](_0x4cd17b['shift']());}catch(_0x190f77){_0x4cd17b['push'](_0x4cd17b['shift']());}}}(_0x1f24,0x4ec91));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[_0x475a34(0x128)]=_0x3f8d17=>{const _0x2ef167=_0x475a34;for(const [_0x55621d,_0x40e7d1]of buddyChangeTasks){_0x40e7d1(_0x3f8d17),buddyChangeTasks[_0x2ef167(0x11b)](_0x55621d);}},setTimeout(()=>{const _0xe71b1b=_0x475a34;napCatCore[_0xe71b1b(0x10b)](()=>{const _0x4ec780=_0xe71b1b;napCatCore[_0x4ec780(0x12d)](buddyListener);});},0x64);export class NTQQFriendApi{static async['getFriends'](_0x3114e5=![]){const _0x2aac59=_0x475a34,_0x35c45c={'nCdmS':function(_0x1ecde6,_0x2682e8,_0x18b3ef){return _0x1ecde6(_0x2682e8,_0x18b3ef);},'NZIoq':_0x2aac59(0x120),'PVWKI':function(_0x4671b5,_0x5ece2a){return _0x4671b5(_0x5ece2a);},'QYoNb':_0x2aac59(0x11e),'ckbhz':function(_0x4711f1,_0xb3fb1,_0x21daf3){return _0x4711f1(_0xb3fb1,_0x21daf3);},'Qmnnj':function(_0x4ad4f0){return _0x4ad4f0();}};return new Promise((_0x334987,_0xa8b17d)=>{const _0x1beb52=_0x2aac59,_0x197529={'WaDOB':function(_0x28e60f,_0x310bf5){const _0x452548=_0x5dae;return _0x35c45c[_0x452548(0x117)](_0x28e60f,_0x310bf5);},'hzAWF':_0x35c45c[_0x1beb52(0x121)],'hbpqo':function(_0x2555d0,_0x33c7ad,_0x5c06d2){const _0x314931=_0x1beb52;return _0x35c45c[_0x314931(0x10d)](_0x2555d0,_0x33c7ad,_0x5c06d2);}};let _0x18ce61=![];_0x35c45c[_0x1beb52(0x10d)](setTimeout,()=>{const _0x25a776=_0x1beb52;!_0x18ce61&&(_0x197529[_0x25a776(0x123)](logDebug,_0x197529[_0x25a776(0x11a)]),_0x197529[_0x25a776(0x123)](_0xa8b17d,_0x197529['hzAWF']));},0x1388);const _0x206ceb=[],_0x2ddd67=_0x27aacd=>{const _0x3e3863=_0x1beb52;for(const _0x2d9302 of _0x27aacd){for(const _0x3136e0 of _0x2d9302[_0x3e3863(0x124)]){_0x206ceb[_0x3e3863(0x11d)](_0x3136e0),uid2UinMap[_0x3136e0[_0x3e3863(0x127)]]=_0x3136e0['uin'];}}_0x18ce61=!![],_0x197529['hbpqo'](logDebug,'获取好友列表完成',_0x206ceb),_0x197529[_0x3e3863(0x123)](_0x334987,_0x206ceb);};buddyChangeTasks[_0x1beb52(0x12c)](_0x35c45c['Qmnnj'](randomUUID),_0x2ddd67),napCatCore[_0x1beb52(0x10c)][_0x1beb52(0x12a)]()[_0x1beb52(0x11c)](_0x3114e5)[_0x1beb52(0x111)](_0x598c96=>{const _0x881b17=_0x1beb52;_0x35c45c[_0x881b17(0x129)](logDebug,_0x35c45c[_0x881b17(0x119)],_0x598c96);});});}static async['handleFriendRequest'](_0x1230a0,_0x29c91a){const _0x75c2b8=_0x475a34;napCatCore[_0x75c2b8(0x10c)][_0x75c2b8(0x12a)]()?.['approvalFriendRequest']({'friendUid':_0x1230a0[_0x75c2b8(0x116)],'reqTime':_0x1230a0[_0x75c2b8(0x122)],'accept':_0x29c91a});}}function _0x1f24(){const _0x296d49=['getBuddyList','push','获取好友列表超时','118911Xxkmyt','开始获取好友列表','QYoNb','reqTime','WaDOB','buddyList','671890HKledG','36IaYDZp','uid','onBuddyListChange','nCdmS','getBuddyService','259JbBcAw','set','addListener','onLoginSuccess','session','ckbhz','36FaKRok','1278782WtbvPZ','492GpInxW','then','24985mquEuA','204VcnYqb','611281WRNlia','7872USwXsQ','friendUid','PVWKI','6624GErDKm','NZIoq','hzAWF','delete'];_0x1f24=function(){return _0x296d49;};return _0x1f24();} \ 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 c3b8b884..444e9741 100644 --- a/src/core.lib/src/apis/group.js +++ b/src/core.lib/src/apis/group.js @@ -1 +1 @@ -const _0x4be569=_0x11c2;(function(_0x4e5f6d,_0x175daf){const _0x346ff0=_0x11c2,_0x44dc5b=_0x4e5f6d();while(!![]){try{const _0xb3c6ff=parseInt(_0x346ff0(0x215))/0x1*(parseInt(_0x346ff0(0x1ef))/0x2)+-parseInt(_0x346ff0(0x1f1))/0x3*(parseInt(_0x346ff0(0x1e6))/0x4)+-parseInt(_0x346ff0(0x1e9))/0x5+-parseInt(_0x346ff0(0x1eb))/0x6+-parseInt(_0x346ff0(0x214))/0x7*(parseInt(_0x346ff0(0x1e4))/0x8)+-parseInt(_0x346ff0(0x20a))/0x9+-parseInt(_0x346ff0(0x20e))/0xa*(-parseInt(_0x346ff0(0x1f6))/0xb);if(_0xb3c6ff===_0x175daf)break;else _0x44dc5b['push'](_0x44dc5b['shift']());}catch(_0x5bc654){_0x44dc5b['push'](_0x44dc5b['shift']());}}}(_0x19e9,0x540b2));import{napCatCore}from'@/core';function _0x11c2(_0xe698dc,_0x5807c5){const _0x19e964=_0x19e9();return _0x11c2=function(_0x11c213,_0x726ede){_0x11c213=_0x11c213-0x1e2;let _0xc56a18=_0x19e964[_0x11c213];return _0xc56a18;},_0x11c2(_0xe698dc,_0x5807c5);}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 _0x19e9(){const _0x3b5758=['sUocQ','166OlWmgY','addListener','2946CdXHwe','uid','onGroupListUpdate','onLoginSuccess','getGroupIgnoreNotifies','10050073zdJntA','setGroupName','setGroupShutUp','getNextMemberList','ayrNL','getGroupNotifies','forEach','errCode','modifyMemberRole','infos','getGroupService','setMemberShutUp','获取群列表超时','getGroupMembers','kickMember','handleGroupRequest','modifyMemberCardName','set','JrIIF','result','124209ZqAJlx','uoMoS','finish:\x20','createMemberListScene','10SjSxfX','banGroup','fsbNX','operateSysNotify','publishGroupBulletin','getGroupList','1261911BYThZT','7417MOKqeB','errMsg','modifyGroupName','uin','banMember','setMemberRole','type','获取群(','quitGroup','HBqyO','获取群成员列表出错,','16BeOLFR','session','1756gvgcoU','获取群列表完成','seq','1160625NrfNTD','QyEWB','884652aNnPPa','Faoxp','groupCode'];_0x19e9=function(){return _0x3b5758;};return _0x19e9();}groupListener[_0x4be569(0x1f3)]=(_0x627bee,_0x31e034)=>{const _0x9ee9c2=_0x4be569,_0x220a8a={'ayrNL':function(_0x4b8dca,_0x1b0b16,_0x5af05a){return _0x4b8dca(_0x1b0b16,_0x5af05a);}};for(const [_0x29f01c,_0x3d73ec]of groupMemberTasks){_0x220a8a[_0x9ee9c2(0x1fa)](_0x3d73ec,_0x627bee,_0x31e034),groupMemberTasks['delete'](_0x29f01c);}},setTimeout(()=>{const _0x53b22f=_0x4be569;napCatCore[_0x53b22f(0x1f4)](()=>{const _0x18f91f=_0x53b22f;napCatCore[_0x18f91f(0x1f0)](groupListener);});},0x64);export class NTQQGroupApi{static async['getGroups'](_0x4f891e=![]){const _0x1a6694=_0x4be569,_0x178c16={'sUocQ':function(_0x1c16c5,_0x27bd65){return _0x1c16c5(_0x27bd65);},'JrIIF':_0x1a6694(0x202),'HBqyO':function(_0x393691,_0x1878db,_0x3e7577){return _0x393691(_0x1878db,_0x3e7577);},'uoMoS':_0x1a6694(0x1e7),'JnzBs':function(_0x4f1084,_0x548785,_0x2501f4){return _0x4f1084(_0x548785,_0x2501f4);}};let _0x4f5ea8=![];return new Promise((_0x436668,_0x271657)=>{const _0x37a1b2=_0x1a6694;_0x178c16['JnzBs'](setTimeout,()=>{const _0x13e294=_0x11c2;!_0x4f5ea8&&(_0x178c16[_0x13e294(0x1ee)](logDebug,_0x178c16['JrIIF']),_0x178c16[_0x13e294(0x1ee)](_0x271657,_0x178c16[_0x13e294(0x208)]));},0x1388);const _0x5b1415=(_0x4a326f,_0x47ac47)=>{const _0xbfc122=_0x11c2;_0x4f5ea8=!![],_0x178c16[_0xbfc122(0x1e2)](logDebug,_0x178c16[_0xbfc122(0x20b)],_0x47ac47),_0x436668(_0x47ac47);};groupMemberTasks[_0x37a1b2(0x207)](randomUUID(),_0x5b1415),napCatCore[_0x37a1b2(0x1e5)][_0x37a1b2(0x200)]()[_0x37a1b2(0x213)](_0x4f891e)['then']();});}static async[_0x4be569(0x203)](_0x297ae5,_0x539aba=0xbb8){const _0x43e6a1=_0x4be569,_0x43ec90={'Faoxp':'groupMemberList_MainWindow','QyEWB':function(_0x2a9649,_0x287858){return _0x2a9649!==_0x287858;},'fsbNX':function(_0x10595f,_0x2d2187,_0x4eaa2a){return _0x10595f(_0x2d2187,_0x4eaa2a);}},_0x27127a=napCatCore[_0x43e6a1(0x1e5)][_0x43e6a1(0x200)](),_0x41839e=_0x27127a[_0x43e6a1(0x20d)](_0x297ae5,_0x43ec90[_0x43e6a1(0x1ec)]),_0x3e8234=await _0x27127a[_0x43e6a1(0x1f9)](_0x41839e,undefined,_0x539aba);if(_0x43ec90[_0x43e6a1(0x1ea)](_0x3e8234[_0x43e6a1(0x1fd)],0x0))throw _0x43e6a1(0x1e3)+_0x3e8234[_0x43e6a1(0x216)];return _0x43ec90[_0x43e6a1(0x210)](logDebug,_0x43e6a1(0x21c)+_0x297ae5+')成员列表结果:',_0x43e6a1(0x20c)+_0x3e8234[_0x43e6a1(0x209)]['finish']),_0x3e8234['result']['infos'][_0x43e6a1(0x1fc)](_0x5731a2=>{const _0x120226=_0x43e6a1;uid2UinMap[_0x5731a2[_0x120226(0x1f2)]]=_0x5731a2[_0x120226(0x218)];}),_0x3e8234[_0x43e6a1(0x209)][_0x43e6a1(0x1ff)];}static async[_0x4be569(0x1fb)](){}static async[_0x4be569(0x1f5)](){}static async[_0x4be569(0x205)](_0x25b11a,_0x43f37b,_0x45f501){const _0x1f7bbe=_0x4be569;return napCatCore[_0x1f7bbe(0x1e5)]['getGroupService']()[_0x1f7bbe(0x211)](![],{'operateType':_0x43f37b,'targetMsg':{'seq':_0x25b11a[_0x1f7bbe(0x1e8)],'type':_0x25b11a[_0x1f7bbe(0x21b)],'groupCode':_0x25b11a['group'][_0x1f7bbe(0x1ed)],'postscript':_0x45f501||''}});}static async['quitGroup'](_0xeff448){const _0x3b85dd=_0x4be569;return napCatCore[_0x3b85dd(0x1e5)][_0x3b85dd(0x200)]()[_0x3b85dd(0x21d)](_0xeff448);}static async[_0x4be569(0x204)](_0x54df4d,_0x3918a7,_0x4f7140=![],_0x2cc174=''){const _0x4cb876=_0x4be569;return napCatCore['session']['getGroupService']()[_0x4cb876(0x204)](_0x54df4d,_0x3918a7,_0x4f7140,_0x2cc174);}static async[_0x4be569(0x219)](_0x17a1ff,_0x107860){const _0x43eef7=_0x4be569;return napCatCore[_0x43eef7(0x1e5)]['getGroupService']()[_0x43eef7(0x201)](_0x17a1ff,_0x107860);}static async[_0x4be569(0x20f)](_0x42632d,_0x1d1679){const _0x14b921=_0x4be569;return napCatCore[_0x14b921(0x1e5)]['getGroupService']()[_0x14b921(0x1f8)](_0x42632d,_0x1d1679);}static async['setMemberCard'](_0x11dbc6,_0x20d397,_0x59f268){const _0x2c6f2a=_0x4be569;return napCatCore[_0x2c6f2a(0x1e5)]['getGroupService']()[_0x2c6f2a(0x206)](_0x11dbc6,_0x20d397,_0x59f268);}static async[_0x4be569(0x21a)](_0x407b44,_0x757d8e,_0xf8e4d7){const _0x3b30ae=_0x4be569;return napCatCore[_0x3b30ae(0x1e5)][_0x3b30ae(0x200)]()[_0x3b30ae(0x1fe)](_0x407b44,_0x757d8e,_0xf8e4d7);}static async[_0x4be569(0x1f7)](_0xdf173d,_0xd3462e){const _0x2706bf=_0x4be569;return napCatCore[_0x2706bf(0x1e5)][_0x2706bf(0x200)]()[_0x2706bf(0x217)](_0xdf173d,_0xd3462e,![]);}static async['setGroupTitle'](_0x340048,_0x42dce5,_0x40fffa){}static[_0x4be569(0x212)](_0x507b48,_0x53fed5,_0x5476bf){}} \ No newline at end of file +const _0x77b3d2=_0x2ec2;(function(_0x1c9ecf,_0x17e95f){const _0x3a4533=_0x2ec2,_0x452ede=_0x1c9ecf();while(!![]){try{const _0x29986b=-parseInt(_0x3a4533(0x1ee))/0x1+-parseInt(_0x3a4533(0x1ed))/0x2+-parseInt(_0x3a4533(0x1e8))/0x3+parseInt(_0x3a4533(0x1d6))/0x4+-parseInt(_0x3a4533(0x1f1))/0x5*(parseInt(_0x3a4533(0x1db))/0x6)+parseInt(_0x3a4533(0x1dc))/0x7*(-parseInt(_0x3a4533(0x1e5))/0x8)+parseInt(_0x3a4533(0x1df))/0x9;if(_0x29986b===_0x17e95f)break;else _0x452ede['push'](_0x452ede['shift']());}catch(_0xfa8e7){_0x452ede['push'](_0x452ede['shift']());}}}(_0x1ba2,0x64bf8));import{napCatCore}from'@/core';function _0x1ba2(){const _0x25075d=['addListener','modifyGroupName','YpiVf','finish','QQiQj','errMsg','banMember','mhPgx','handleGroupRequest','uid','EFvDn','jlERK','onLoginSuccess','onGroupListUpdate','session','TmRIp','quitGroup','qjMXn','errCode','group','operateSysNotify','setGroupName','set','getGroupService','banGroup','groupMemberList_MainWindow','hfsEz','57816lfCVSC','YBgRP','getGroupList','result','modifyMemberCardName','3586068RNPVuI','7qhwXsB','getGroupMembers','SdUdq','19105407IUSxwa','infos','xMPVb','finish:\x20','uin','getGroupNotifies','82376pJZTIs','groupCode','type','491583lFymJR','seq',')成员列表结果:','获取群(','获取群列表超时','791574nEXReC','556990ksdCtk','getGroups','获取群成员列表出错,','5Yhfken'];_0x1ba2=function(){return _0x25075d;};return _0x1ba2();}import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';function _0x2ec2(_0xd17e25,_0x3909ea){const _0x1ba2c6=_0x1ba2();return _0x2ec2=function(_0x2ec27d,_0x288bd6){_0x2ec27d=_0x2ec27d-0x1d3;let _0x30adcb=_0x1ba2c6[_0x2ec27d];return _0x30adcb;},_0x2ec2(_0xd17e25,_0x3909ea);}const groupMemberTasks=new Map(),groupListener=new GroupListener();groupListener[_0x77b3d2(0x1ff)]=(_0x816fe3,_0x3c7d43)=>{const _0x25b606=_0x77b3d2,_0x5f494c={'xMPVb':function(_0x3f575a,_0xf8bbe,_0x5b7df1){return _0x3f575a(_0xf8bbe,_0x5b7df1);}};for(const [_0x5d4781,_0xd2d75e]of groupMemberTasks){_0x5f494c[_0x25b606(0x1e1)](_0xd2d75e,_0x816fe3,_0x3c7d43),groupMemberTasks['delete'](_0x5d4781);}},setTimeout(()=>{const _0x51d1cf=_0x77b3d2;napCatCore[_0x51d1cf(0x1fe)](()=>{const _0x31eaa8=_0x51d1cf;napCatCore[_0x31eaa8(0x1f2)](groupListener);});},0x64);export class NTQQGroupApi{static async[_0x77b3d2(0x1ef)](_0x3ae9a1=![]){const _0x2bc257=_0x77b3d2,_0x39362d={'SdUdq':function(_0x156852,_0x54bbdf,_0x369f38){return _0x156852(_0x54bbdf,_0x369f38);},'YpiVf':function(_0x5c219e,_0x5d7eef){return _0x5c219e(_0x5d7eef);},'TmRIp':_0x2bc257(0x1ec),'vChwF':function(_0xdaaa15,_0x12570d){return _0xdaaa15(_0x12570d);},'mhPgx':function(_0x3a325b){return _0x3a325b();}};let _0x1f340b=![];return new Promise((_0x23e550,_0x4a91fc)=>{const _0x4de232=_0x2bc257,_0x215eca={'YBgRP':function(_0x2192c8,_0x1100fa){return _0x2192c8(_0x1100fa);},'hfsEz':_0x39362d[_0x4de232(0x201)],'cdiJr':function(_0x41bdfd,_0x166127){return _0x39362d['vChwF'](_0x41bdfd,_0x166127);}};_0x39362d[_0x4de232(0x1de)](setTimeout,()=>{const _0x5ab523=_0x4de232;!_0x1f340b&&(_0x215eca[_0x5ab523(0x1d7)](logDebug,_0x215eca[_0x5ab523(0x1d5)]),_0x215eca['cdiJr'](_0x4a91fc,_0x215eca[_0x5ab523(0x1d5)]));},0x1388);const _0x460b31=(_0x1b8cc8,_0x2509cb)=>{const _0xbdd1d=_0x4de232;_0x1f340b=!![],_0x39362d[_0xbdd1d(0x1de)](logDebug,'获取群列表完成',_0x2509cb),_0x39362d[_0xbdd1d(0x1f4)](_0x23e550,_0x2509cb);};groupMemberTasks[_0x4de232(0x208)](_0x39362d[_0x4de232(0x1f9)](randomUUID),_0x460b31),napCatCore[_0x4de232(0x200)][_0x4de232(0x209)]()[_0x4de232(0x1d8)](_0x3ae9a1)['then']();});}static async[_0x77b3d2(0x1dd)](_0x505e2b,_0x545734=0xbb8){const _0xd2d5ca=_0x77b3d2,_0x14fb4c={'jlERK':_0xd2d5ca(0x1d4),'EFvDn':function(_0x1fd91e,_0x5d62db){return _0x1fd91e!==_0x5d62db;},'QQiQj':function(_0x8e153d,_0x1e4f20){return _0x8e153d+_0x1e4f20;},'qjMXn':_0xd2d5ca(0x1f0),'wNdcK':function(_0x528a65,_0x30083e,_0x2f5f8a){return _0x528a65(_0x30083e,_0x2f5f8a);}},_0x56d19f=napCatCore['session'][_0xd2d5ca(0x209)](),_0x3aa985=_0x56d19f['createMemberListScene'](_0x505e2b,_0x14fb4c[_0xd2d5ca(0x1fd)]),_0x325990=await _0x56d19f['getNextMemberList'](_0x3aa985,undefined,_0x545734);if(_0x14fb4c[_0xd2d5ca(0x1fc)](_0x325990[_0xd2d5ca(0x204)],0x0))throw _0x14fb4c[_0xd2d5ca(0x1f6)](_0x14fb4c[_0xd2d5ca(0x203)],_0x325990[_0xd2d5ca(0x1f7)]);return _0x14fb4c['wNdcK'](logDebug,_0xd2d5ca(0x1eb)+_0x505e2b+_0xd2d5ca(0x1ea),_0xd2d5ca(0x1e2)+_0x325990[_0xd2d5ca(0x1d9)][_0xd2d5ca(0x1f5)]),_0x325990[_0xd2d5ca(0x1d9)][_0xd2d5ca(0x1e0)]['forEach'](_0x3d0831=>{const _0x267eaf=_0xd2d5ca;uid2UinMap[_0x3d0831[_0x267eaf(0x1fb)]]=_0x3d0831[_0x267eaf(0x1e3)];}),_0x325990[_0xd2d5ca(0x1d9)][_0xd2d5ca(0x1e0)];}static async[_0x77b3d2(0x1e4)](){}static async['getGroupIgnoreNotifies'](){}static async[_0x77b3d2(0x1fa)](_0x563760,_0x509883,_0x123d39){const _0x2f3906=_0x77b3d2;return napCatCore[_0x2f3906(0x200)][_0x2f3906(0x209)]()[_0x2f3906(0x206)](![],{'operateType':_0x509883,'targetMsg':{'seq':_0x563760[_0x2f3906(0x1e9)],'type':_0x563760[_0x2f3906(0x1e7)],'groupCode':_0x563760[_0x2f3906(0x205)][_0x2f3906(0x1e6)],'postscript':_0x123d39||''}});}static async[_0x77b3d2(0x202)](_0x1a8bf9){const _0x3e220e=_0x77b3d2;return napCatCore['session'][_0x3e220e(0x209)]()[_0x3e220e(0x202)](_0x1a8bf9);}static async['kickMember'](_0x1da304,_0x2e8208,_0xda5cbd=![],_0x4dff17=''){const _0x20ac00=_0x77b3d2;return napCatCore[_0x20ac00(0x200)][_0x20ac00(0x209)]()['kickMember'](_0x1da304,_0x2e8208,_0xda5cbd,_0x4dff17);}static async[_0x77b3d2(0x1f8)](_0x212cc0,_0x1757fd){const _0x381ae9=_0x77b3d2;return napCatCore[_0x381ae9(0x200)][_0x381ae9(0x209)]()['setMemberShutUp'](_0x212cc0,_0x1757fd);}static async[_0x77b3d2(0x1d3)](_0x439903,_0x395546){const _0xbb5b91=_0x77b3d2;return napCatCore['session'][_0xbb5b91(0x209)]()['setGroupShutUp'](_0x439903,_0x395546);}static async['setMemberCard'](_0x4eac65,_0x2c7ecf,_0xf1154){const _0x4d98b6=_0x77b3d2;return napCatCore[_0x4d98b6(0x200)][_0x4d98b6(0x209)]()[_0x4d98b6(0x1da)](_0x4eac65,_0x2c7ecf,_0xf1154);}static async['setMemberRole'](_0x171789,_0x22615a,_0x29aeff){const _0x1e8327=_0x77b3d2;return napCatCore[_0x1e8327(0x200)]['getGroupService']()['modifyMemberRole'](_0x171789,_0x22615a,_0x29aeff);}static async[_0x77b3d2(0x207)](_0x3d507e,_0x25f583){const _0x438bed=_0x77b3d2;return napCatCore[_0x438bed(0x200)][_0x438bed(0x209)]()[_0x438bed(0x1f3)](_0x3d507e,_0x25f583,![]);}static async['setGroupTitle'](_0x5e8d2a,_0x1c1ae5,_0x25735e){}static['publishGroupBulletin'](_0x36fc20,_0x336736,_0x3769e6){}} \ No newline at end of file diff --git a/src/core.lib/src/apis/index.d.ts b/src/core.lib/src/apis/index.d.ts index 2006bbf4..97344961 100644 --- a/src/core.lib/src/apis/index.d.ts +++ b/src/core.lib/src/apis/index.d.ts @@ -4,4 +4,3 @@ export * from './group'; export * from './msg'; export * from './user'; export * from './webapi'; -export * from './window'; diff --git a/src/core.lib/src/apis/index.js b/src/core.lib/src/apis/index.js index d2cc6db6..4af9a796 100644 --- a/src/core.lib/src/apis/index.js +++ b/src/core.lib/src/apis/index.js @@ -1 +1 @@ -(function(_0x48ebc7,_0x4e0c5b){var _0x2915da=_0x29ac,_0x46f6ae=_0x48ebc7();while(!![]){try{var _0x2041d8=parseInt(_0x2915da(0x89))/0x1+-parseInt(_0x2915da(0x8b))/0x2+parseInt(_0x2915da(0x85))/0x3+-parseInt(_0x2915da(0x8c))/0x4+parseInt(_0x2915da(0x8d))/0x5*(-parseInt(_0x2915da(0x87))/0x6)+-parseInt(_0x2915da(0x86))/0x7*(-parseInt(_0x2915da(0x88))/0x8)+-parseInt(_0x2915da(0x84))/0x9*(-parseInt(_0x2915da(0x8a))/0xa);if(_0x2041d8===_0x4e0c5b)break;else _0x46f6ae['push'](_0x46f6ae['shift']());}catch(_0x55e138){_0x46f6ae['push'](_0x46f6ae['shift']());}}}(_0x51f3,0xd03f2));export*from'./file';export*from'./friend';function _0x29ac(_0x33fd01,_0x14fca4){var _0x51f3a5=_0x51f3();return _0x29ac=function(_0x29ace3,_0x4b2bb7){_0x29ace3=_0x29ace3-0x84;var _0x389160=_0x51f3a5[_0x29ace3];return _0x389160;},_0x29ac(_0x33fd01,_0x14fca4);}export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi';function _0x51f3(){var _0x42993c=['8UoSJHo','707729aFelqf','5229620fkfEZh','3267744NQuxqH','328972WqYgTp','5CCpBku','9DzydfE','4230108VkbMVB','4063759QAqqSz','3913026TGoztJ'];_0x51f3=function(){return _0x42993c;};return _0x51f3();}export*from'./window'; \ No newline at end of file +(function(_0x4de085,_0xf6dc9d){var _0x26bb5f=_0x28b2,_0x36b7f8=_0x4de085();while(!![]){try{var _0x507cc4=-parseInt(_0x26bb5f(0x177))/0x1*(-parseInt(_0x26bb5f(0x17c))/0x2)+parseInt(_0x26bb5f(0x175))/0x3*(-parseInt(_0x26bb5f(0x179))/0x4)+parseInt(_0x26bb5f(0x17f))/0x5*(parseInt(_0x26bb5f(0x176))/0x6)+parseInt(_0x26bb5f(0x17a))/0x7+parseInt(_0x26bb5f(0x17b))/0x8*(parseInt(_0x26bb5f(0x180))/0x9)+-parseInt(_0x26bb5f(0x178))/0xa+-parseInt(_0x26bb5f(0x17d))/0xb*(parseInt(_0x26bb5f(0x17e))/0xc);if(_0x507cc4===_0xf6dc9d)break;else _0x36b7f8['push'](_0x36b7f8['shift']());}catch(_0x5dd7dc){_0x36b7f8['push'](_0x36b7f8['shift']());}}}(_0x19bb,0xa1114));export*from'./file';export*from'./friend';function _0x28b2(_0x484433,_0x1efb45){var _0x19bbbb=_0x19bb();return _0x28b2=function(_0x28b2b2,_0x525f9e){_0x28b2b2=_0x28b2b2-0x175;var _0x1c3271=_0x19bbbb[_0x28b2b2];return _0x1c3271;},_0x28b2(_0x484433,_0x1efb45);}function _0x19bb(){var _0xa420f1=['490458rKFhsY','114462OrLBJI','2030680oliPgI','17756HDoRde','7504406efihdb','11608hgJzyW','16ZLByvE','1216919qvdXXp','168WsRkFF','15wpVdYm','1989iWAYTT','96gdhYzw'];_0x19bb=function(){return _0xa420f1;};return _0x19bb();}export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi'; \ 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 be36fb73..033434c3 100644 --- a/src/core.lib/src/apis/msg.js +++ b/src/core.lib/src/apis/msg.js @@ -1 +1 @@ -const _0x48d412=_0x14da;(function(_0x44b294,_0x52ccc9){const _0x37b644=_0x14da,_0xd409f9=_0x44b294();while(!![]){try{const _0xf985a7=parseInt(_0x37b644(0x1d4))/0x1*(-parseInt(_0x37b644(0x1c6))/0x2)+-parseInt(_0x37b644(0x1d9))/0x3+parseInt(_0x37b644(0x1d2))/0x4*(parseInt(_0x37b644(0x1c9))/0x5)+parseInt(_0x37b644(0x1be))/0x6*(parseInt(_0x37b644(0x1c5))/0x7)+parseInt(_0x37b644(0x1c8))/0x8*(parseInt(_0x37b644(0x1b7))/0x9)+-parseInt(_0x37b644(0x1b6))/0xa*(parseInt(_0x37b644(0x1e1))/0xb)+-parseInt(_0x37b644(0x1e3))/0xc*(parseInt(_0x37b644(0x1f1))/0xd);if(_0xf985a7===_0x52ccc9)break;else _0xd409f9['push'](_0xd409f9['shift']());}catch(_0xd3fd17){_0xd409f9['push'](_0xd409f9['shift']());}}}(_0x22c0,0xa5599));function _0x14da(_0xa1556d,_0x3c539d){const _0x22c09b=_0x22c0();return _0x14da=function(_0x14daaa,_0x5c33d9){_0x14daaa=_0x14daaa-0x1b1;let _0x45e25e=_0x22c09b[_0x14daaa];return _0x45e25e;},_0x14da(_0xa1556d,_0x3c539d);}import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';function _0x22c0(){const _0x2978be=['fetchRecentContact','length','getMsgHistory','iWhjY','bytesData','94731vfmVGf','转发消息超时','senderUid','setEmojiLike','activateChat','getMsgsIncludeSelf','rUrSm','190ZdcbWH','6759QYxUEF','peerUid','发送超时','map','getMsgService','AeJcG','TFDuD','60ESXJkZ','ChieU','opkhY','iTKiQ','setMsgRead','addListener','chatType','319837EFZRZY','6dMDMEX','WdxQe','10232ygSxkg','66075DyXVot','getMultiMsg','msgId','find','catch','session','onMsgInfoListUpdate','arkElement','parse','200PUGlzp','forwardMsg','36716mrSZot','then','forEach','YhuUD','onLoginSuccess','2194608QPsteX','sendStatus','qDdMx','sendMsg','onAddSendMsg','multiForwardMsg','multiForwardMsgWithComment','bQUia','41107MjOlQj','UpAgA','804KqxkrK','set','uid','delete','rziFY','setMsgEmojiLikes','elements','getMsgsByMsgId','getMsgsBySeqAndCount'];_0x22c0=function(){return _0x2978be;};return _0x22c0();}import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener[_0x48d412(0x1dd)]=_0x4389f3=>{const _0x2f2f87=_0x48d412,_0x4ea5d3={'iWhjY':function(_0x26cb43,_0x5f2d8f){return _0x26cb43(_0x5f2d8f);},'rziFY':function(_0x32ce53,_0x18187e){return _0x32ce53 instanceof _0x18187e;}};for(const [_0x27e20d,_0x46caae]of sentMsgTasks){_0x4ea5d3[_0x2f2f87(0x1ef)](_0x46caae,_0x4389f3),sentMsgTasks[_0x2f2f87(0x1e6)](_0x27e20d);}if(sendMessagePool[_0x4389f3[_0x2f2f87(0x1b8)]]){const _0x1df0b1=sendMessagePool[_0x4389f3['peerUid']]?.(_0x4389f3);_0x4ea5d3[_0x2f2f87(0x1e7)](_0x1df0b1,Promise)&&_0x1df0b1[_0x2f2f87(0x1d5)]()['catch'](logError);}},msgListener[_0x48d412(0x1cf)]=_0x53a094=>{const _0x2a22e7=_0x48d412,_0x61076b={'YhuUD':function(_0x353f3f,_0x3b4471){return _0x353f3f(_0x3b4471);}};_0x53a094[_0x2a22e7(0x1d6)](_0x43457f=>{const _0x17d5ca=_0x2a22e7,_0x21d433={'rUrSm':function(_0x253102,_0x1cba8d){const _0x2f18e0=_0x14da;return _0x61076b[_0x2f18e0(0x1d7)](_0x253102,_0x1cba8d);}};new Promise((_0x3070d2,_0x572b6b)=>{const _0xddeaef=_0x14da;for(const _0x30f754 in sendSuccessCBMap){const _0xdca1b5=sendSuccessCBMap[_0x30f754],_0x40159f=_0x21d433[_0xddeaef(0x1b5)](_0xdca1b5,_0x43457f),_0x106ce9=_0x1c119c=>{_0x1c119c&&delete sendSuccessCBMap[_0x30f754];};_0x40159f instanceof Promise?_0x40159f[_0xddeaef(0x1d5)](_0x106ce9):_0x106ce9(_0x40159f);}})[_0x17d5ca(0x1d5)]()[_0x17d5ca(0x1cd)](log);});},setTimeout(()=>{const _0x3d9cee=_0x48d412;napCatCore[_0x3d9cee(0x1d8)](()=>{const _0x1d1bf7=_0x3d9cee;napCatCore[_0x1d1bf7(0x1c3)](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x48d412(0x1b2)](_0x24f35b,_0x46e2dc,_0xa9f5a2,_0x51c995=!![]){const _0x52a433=_0x48d412;return napCatCore[_0x52a433(0x1ce)][_0x52a433(0x1bb)]()[_0x52a433(0x1e8)](_0x24f35b,_0x46e2dc,_0xa9f5a2,_0xa9f5a2[_0x52a433(0x1ed)]>0x3?'2':'1',_0x51c995);}static async[_0x48d412(0x1ca)](_0x3830a3,_0x240d23,_0xb57837){const _0x21637d=_0x48d412;return napCatCore['session'][_0x21637d(0x1bb)]()[_0x21637d(0x1ca)](_0x3830a3,_0x240d23,_0xb57837);}static async[_0x48d412(0x1ea)](_0x2871cb,_0x398a28){const _0x1c963d=_0x48d412;return await napCatCore[_0x1c963d(0x1ce)]['getMsgService']()[_0x1c963d(0x1ea)](_0x2871cb,_0x398a28);}static async[_0x48d412(0x1eb)](_0x192d4e,_0x13a81f,_0x484e41,_0x207169,_0x4999b3){const _0x14cc46=_0x48d412;return await napCatCore[_0x14cc46(0x1ce)][_0x14cc46(0x1bb)]()[_0x14cc46(0x1eb)](_0x192d4e,_0x13a81f,_0x484e41,_0x207169,_0x4999b3);}static async[_0x48d412(0x1b3)](_0x2ced4e){}static async['activateChatAndGetHistory'](_0x150099){}static async[_0x48d412(0x1c2)](_0x5db7e7){const _0xf23243=_0x48d412;return napCatCore['session']['getMsgService']()['setMsgRead'](_0x5db7e7['chatType'],_0x5db7e7[_0xf23243(0x1b8)],_0x5db7e7['guildId']);}static async[_0x48d412(0x1ee)](_0xebebb0,_0x44aa97,_0x624e00){const _0x20d5d6=_0x48d412;return napCatCore[_0x20d5d6(0x1ce)]['getMsgService']()[_0x20d5d6(0x1b4)](_0xebebb0,_0x44aa97,_0x624e00,!![]);}static async[_0x48d412(0x1ec)](){}static async['recallMsg'](_0x5df4e3,_0xe8f1fe){const _0x1f73fe=_0x48d412;await napCatCore[_0x1f73fe(0x1ce)][_0x1f73fe(0x1bb)]()['recallMsg']({'chatType':_0x5df4e3[_0x1f73fe(0x1c4)],'peerUid':_0x5df4e3[_0x1f73fe(0x1b8)]},_0xe8f1fe);}static async[_0x48d412(0x1dc)](_0x134b3a,_0x164035,_0x2c4d80=!![],_0x19d0ff=0x2710){const _0x40ecc6=_0x48d412,_0x2e7272={'ChieU':function(_0x225bd4,_0x32d176){return _0x225bd4>_0x32d176;},'opkhY':_0x40ecc6(0x1b9),'bQUia':function(_0x486e44,_0x56281c){return _0x486e44(_0x56281c);},'fIGyv':function(_0x13bd04,_0x5655dd){return _0x13bd04===_0x5655dd;},'iTKiQ':function(_0x40a7a7){return _0x40a7a7();},'TFDuD':function(_0x540f2f,_0x26c649,_0x2ed191){return _0x540f2f(_0x26c649,_0x2ed191);},'qDdMx':function(_0x42214b){return _0x42214b();}},_0x6c72d5=_0x134b3a[_0x40ecc6(0x1b8)];let _0x2aab4e=0x0;const _0x11fef0=async()=>{const _0x4f471c=_0x40ecc6;if(_0x2e7272[_0x4f471c(0x1bf)](_0x2aab4e,_0x19d0ff))throw _0x2e7272['opkhY'];const _0x3faf64=sendMessagePool[_0x134b3a[_0x4f471c(0x1b8)]];if(_0x3faf64)return await _0x2e7272[_0x4f471c(0x1e0)](sleep,0x1f4),_0x2aab4e+=0x1f4,await _0x11fef0();else return;};return await _0x2e7272[_0x40ecc6(0x1db)](_0x11fef0),new Promise((_0x1eb267,_0x16de7b)=>{const _0x12d090=_0x40ecc6,_0xdedf58={'AeJcG':function(_0x1de5c4,_0x45ac19){const _0x17bdcf=_0x14da;return _0x2e7272[_0x17bdcf(0x1e0)](_0x1de5c4,_0x45ac19);},'ZaSQU':_0x2e7272[_0x12d090(0x1c0)]};let _0x222c1d=![],_0x766724=null;const _0x3d83da=_0x2e7272[_0x12d090(0x1c1)](randomUUID);sendSuccessCBMap[_0x3d83da]=_0x1aea57=>{const _0x5f1559=_0x12d090;if(_0x2e7272['fIGyv'](_0x1aea57['msgId'],_0x766724?.[_0x5f1559(0x1cb)])){if(_0x1aea57[_0x5f1559(0x1da)]===0x2)return delete sendSuccessCBMap[_0x3d83da],_0x222c1d=!![],_0x2e7272[_0x5f1559(0x1e0)](_0x1eb267,_0x1aea57),!![];return![];}return![];},sendMessagePool[_0x6c72d5]=async _0x95538d=>{delete sendMessagePool[_0x6c72d5],_0x766724=_0x95538d;},_0x2e7272[_0x12d090(0x1bd)](setTimeout,()=>{const _0x420149=_0x12d090;if(_0x222c1d)return;delete sendMessagePool[_0x6c72d5],delete sendSuccessCBMap[_0x3d83da],_0xdedf58[_0x420149(0x1bc)](_0x16de7b,_0xdedf58['ZaSQU']);},_0x19d0ff);const _0x6d6320=napCatCore['session'][_0x12d090(0x1bb)]()[_0x12d090(0x1dc)]('0',_0x134b3a,_0x164035,new Map());});}static async[_0x48d412(0x1d3)](_0xc7ef68,_0x2be0be,_0x497180){}static async[_0x48d412(0x1de)](_0x15bbb9,_0x1cfd14,_0x47178e){const _0x53c7f5=_0x48d412,_0x474146={'WdxQe':function(_0x1bed25,_0x1619bb){return _0x1bed25(_0x1619bb);},'ygEPC':function(_0xd77703,_0x2edb12){return _0xd77703==_0x2edb12;}},_0x1be793=_0x47178e[_0x53c7f5(0x1ba)](_0x29ce4c=>{return{'msgId':_0x29ce4c,'senderShowName':selfInfo['nick']};});return new Promise((_0x2def05,_0x47504f)=>{const _0x50d77a=_0x53c7f5,_0x8913dc={'UpAgA':function(_0x293161,_0x545c4c){return _0x293161!=_0x545c4c;},'NtXVW':function(_0x38cebd,_0x66483){return _0x474146['ygEPC'](_0x38cebd,_0x66483);},'UFBFZ':function(_0x31ecdd,_0x3d1417){const _0x35de19=_0x14da;return _0x474146[_0x35de19(0x1c7)](_0x31ecdd,_0x3d1417);}};let _0x27dcaa=![];const _0x2877e6=_0x2758bc=>{const _0x4e1349=_0x14da,_0x3b3eed=_0x2758bc[_0x4e1349(0x1e9)][_0x4e1349(0x1cc)](_0x1f02a7=>_0x1f02a7['arkElement']);if(!_0x3b3eed)return;const _0x568610=JSON[_0x4e1349(0x1d1)](_0x3b3eed[_0x4e1349(0x1d0)][_0x4e1349(0x1f0)]);if(_0x8913dc[_0x4e1349(0x1e2)](_0x568610['app'],'com.tencent.multimsg'))return;_0x2758bc['peerUid']==_0x1cfd14[_0x4e1349(0x1b8)]&&_0x8913dc['NtXVW'](_0x2758bc[_0x4e1349(0x1b1)],selfInfo[_0x4e1349(0x1e5)])&&(_0x27dcaa=!![],_0x8913dc['UFBFZ'](_0x2def05,_0x2758bc));};sentMsgTasks[_0x50d77a(0x1e4)](randomUUID(),_0x2877e6),setTimeout(()=>{const _0x27622f=_0x50d77a;!_0x27dcaa&&_0x474146[_0x27622f(0x1c7)](_0x47504f,_0x27622f(0x1f2));},0x1388),napCatCore[_0x50d77a(0x1ce)][_0x50d77a(0x1bb)]()[_0x50d77a(0x1df)](_0x1be793,_0x15bbb9,_0x1cfd14,[],new Map());});}} \ No newline at end of file +const _0x4cb96a=_0xe7e0;(function(_0x21347d,_0x486a88){const _0x160427=_0xe7e0,_0x21abac=_0x21347d();while(!![]){try{const _0x21ebb4=parseInt(_0x160427(0xc3))/0x1+-parseInt(_0x160427(0xa9))/0x2*(-parseInt(_0x160427(0xb7))/0x3)+-parseInt(_0x160427(0x9a))/0x4*(-parseInt(_0x160427(0x94))/0x5)+-parseInt(_0x160427(0xa2))/0x6+-parseInt(_0x160427(0xc5))/0x7*(parseInt(_0x160427(0xb4))/0x8)+-parseInt(_0x160427(0x81))/0x9*(parseInt(_0x160427(0xbd))/0xa)+-parseInt(_0x160427(0x8d))/0xb;if(_0x21ebb4===_0x486a88)break;else _0x21abac['push'](_0x21abac['shift']());}catch(_0xef6740){_0x21abac['push'](_0x21abac['shift']());}}}(_0xbe84,0xc55f8));function _0xe7e0(_0x417906,_0x1714bd){const _0xbe8482=_0xbe84();return _0xe7e0=function(_0xe7e055,_0x2651c2){_0xe7e055=_0xe7e055-0x81;let _0x1efe5=_0xbe8482[_0xe7e055];return _0x1efe5;},_0xe7e0(_0x417906,_0x1714bd);}import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';function _0xbe84(){const _0xee1c8e=['iMVfx','arkElement','sendMsg','sendStatus','60uCyLXk','then','setEmojiLike','OJVFo','delete','uid','nick','activateChatAndGetHistory','2028408asCQFo','addListener','getMsgsByMsgId','recallMsg','onLoginSuccess','IXzFA','biShs','748982POEqAd','chatType','setMsgRead','set','catch','WzYwG','forwardMsg','rMCQF','tADMd','map','owwgh','2746664DtCrxb','multiForwardMsg','forEach','6JVqHJe','length','getMsgService','yYyHU','IBYti','peerUid','2610tUQaxh','转发消息超时','bWEAm','hOZzJ','setMsgEmojiLikes','parse','1152700nHZUzN','DBwhm','14RYkaxs','getMsgsIncludeSelf','find','oSRNE','getMultiMsg','34461LqbJOH','qwmZs','session','kFsnv','gFmWV','onMsgInfoListUpdate','fetchRecentContact','getMsgsBySeqAndCount','activateChat','IiZJQ','DlcxW','BuJBQ','1329834YhotyP','JfgyW','getMsgHistory','gDQkX','Hsdrd','msgId','发送超时','350585qtntZf','senderUid'];_0xbe84=function(){return _0xee1c8e;};return _0xbe84();}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']=_0x4c2084=>{const _0x305cdb=_0xe7e0,_0x3a81f7={'Hsdrd':function(_0x95399c,_0x355207){return _0x95399c(_0x355207);}};for(const [_0x16ca63,_0x1ad916]of sentMsgTasks){_0x3a81f7[_0x305cdb(0x91)](_0x1ad916,_0x4c2084),sentMsgTasks[_0x305cdb(0x9e)](_0x16ca63);}if(sendMessagePool[_0x4c2084['peerUid']]){const _0xc0c8b4=sendMessagePool[_0x4c2084['peerUid']]?.(_0x4c2084);_0xc0c8b4 instanceof Promise&&_0xc0c8b4[_0x305cdb(0x9b)]()[_0x305cdb(0xad)](logError);}},msgListener[_0x4cb96a(0x86)]=_0x8ab27=>{const _0x21c1eb=_0x4cb96a,_0x425e02={'tADMd':function(_0x515a79,_0x2f47ad){return _0x515a79(_0x2f47ad);},'BuJBQ':function(_0x5e2790,_0x1f8e22){return _0x5e2790 instanceof _0x1f8e22;}};_0x8ab27[_0x21c1eb(0xb6)](_0x230942=>{const _0xa34e15=_0x21c1eb,_0x5c6c6e={'yYyHU':function(_0x383dca,_0xa763ec){const _0x48ddf2=_0xe7e0;return _0x425e02[_0x48ddf2(0xb1)](_0x383dca,_0xa763ec);},'biShs':function(_0x899a04,_0x110d54){const _0x1d7d30=_0xe7e0;return _0x425e02[_0x1d7d30(0x8c)](_0x899a04,_0x110d54);},'IXzFA':function(_0x47850a,_0x7c9459){const _0xccadb7=_0xe7e0;return _0x425e02[_0xccadb7(0xb1)](_0x47850a,_0x7c9459);}};new Promise((_0xbea5f6,_0x32de5b)=>{const _0x4981ae=_0xe7e0;for(const _0x3653c1 in sendSuccessCBMap){const _0x30f4ab=sendSuccessCBMap[_0x3653c1],_0x5cc2a0=_0x5c6c6e[_0x4981ae(0xba)](_0x30f4ab,_0x230942),_0x1c1845=_0x16f89a=>{_0x16f89a&&delete sendSuccessCBMap[_0x3653c1];};_0x5c6c6e[_0x4981ae(0xa8)](_0x5cc2a0,Promise)?_0x5cc2a0[_0x4981ae(0x9b)](_0x1c1845):_0x5c6c6e[_0x4981ae(0xa7)](_0x1c1845,_0x5cc2a0);}})[_0xa34e15(0x9b)]()[_0xa34e15(0xad)](log);});},setTimeout(()=>{const _0x243056=_0x4cb96a;napCatCore[_0x243056(0xa6)](()=>{const _0x35817e=_0x243056;napCatCore[_0x35817e(0xa3)](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x4cb96a(0x9c)](_0x118237,_0x1d91e7,_0x1ff673,_0x1141fe=!![]){const _0x117984=_0x4cb96a,_0x487e0e={'gFmWV':function(_0x3d89bc,_0x59d3a8){return _0x3d89bc>_0x59d3a8;}};return napCatCore[_0x117984(0x83)][_0x117984(0xb9)]()[_0x117984(0xc1)](_0x118237,_0x1d91e7,_0x1ff673,_0x487e0e[_0x117984(0x85)](_0x1ff673[_0x117984(0xb8)],0x3)?'2':'1',_0x1141fe);}static async[_0x4cb96a(0xc9)](_0x3fa483,_0x5b78b2,_0x236a32){const _0x241e3f=_0x4cb96a;return napCatCore[_0x241e3f(0x83)][_0x241e3f(0xb9)]()['getMultiMsg'](_0x3fa483,_0x5b78b2,_0x236a32);}static async[_0x4cb96a(0xa4)](_0x154750,_0x3a1384){const _0x1a5923=_0x4cb96a;return await napCatCore[_0x1a5923(0x83)][_0x1a5923(0xb9)]()[_0x1a5923(0xa4)](_0x154750,_0x3a1384);}static async[_0x4cb96a(0x88)](_0xee3927,_0x113717,_0xd42266,_0x14c082,_0x5e241e){const _0x942978=_0x4cb96a;return await napCatCore[_0x942978(0x83)]['getMsgService']()['getMsgsBySeqAndCount'](_0xee3927,_0x113717,_0xd42266,_0x14c082,_0x5e241e);}static async[_0x4cb96a(0x89)](_0x5ed0f6){}static async[_0x4cb96a(0xa1)](_0x2ca5d2){}static async[_0x4cb96a(0xab)](_0x5563ab){const _0x23c233=_0x4cb96a;return napCatCore['session']['getMsgService']()[_0x23c233(0xab)](_0x5563ab[_0x23c233(0xaa)],_0x5563ab[_0x23c233(0xbc)],_0x5563ab['guildId']);}static async[_0x4cb96a(0x8f)](_0x212dac,_0x242d28,_0x398f7b){const _0x1ebcf4=_0x4cb96a;return napCatCore[_0x1ebcf4(0x83)]['getMsgService']()[_0x1ebcf4(0xc6)](_0x212dac,_0x242d28,_0x398f7b,!![]);}static async[_0x4cb96a(0x87)](){}static async[_0x4cb96a(0xa5)](_0x1fe86e,_0x3b81c7){const _0x2b7513=_0x4cb96a;await napCatCore[_0x2b7513(0x83)][_0x2b7513(0xb9)]()['recallMsg']({'chatType':_0x1fe86e[_0x2b7513(0xaa)],'peerUid':_0x1fe86e[_0x2b7513(0xbc)]},_0x3b81c7);}static async[_0x4cb96a(0x98)](_0xb6dabe,_0x14eed1,_0x571730=!![],_0x330442=0x2710){const _0xb6d6fc=_0x4cb96a,_0x2cdffb={'ZIhgY':function(_0x2671d8,_0x2add65){return _0x2671d8>_0x2add65;},'kFsnv':function(_0x532faf,_0x265503){return _0x532faf(_0x265503);},'OJVFo':function(_0x3d4f2c){return _0x3d4f2c();},'mwxXf':function(_0x5cb3e4,_0x1b6688){return _0x5cb3e4===_0x1b6688;},'HrnSU':_0xb6d6fc(0x93),'bWEAm':function(_0x2087ea,_0x3b0c53,_0x4eaa6e){return _0x2087ea(_0x3b0c53,_0x4eaa6e);}},_0x57e74a=_0xb6dabe[_0xb6d6fc(0xbc)];let _0xf309=0x0;const _0x5346d5=async()=>{const _0x4eeae1=_0xb6d6fc;if(_0x2cdffb['ZIhgY'](_0xf309,_0x330442))throw _0x4eeae1(0x93);const _0xb673b5=sendMessagePool[_0xb6dabe[_0x4eeae1(0xbc)]];if(_0xb673b5)return await _0x2cdffb[_0x4eeae1(0x84)](sleep,0x1f4),_0xf309+=0x1f4,await _0x2cdffb[_0x4eeae1(0x9d)](_0x5346d5);else return;};return await _0x5346d5(),new Promise((_0x483421,_0x2f2bc8)=>{const _0x40fadc=_0xb6d6fc,_0x4cdc0c={'WzYwG':function(_0x5bb18d,_0x26a210){return _0x2cdffb['mwxXf'](_0x5bb18d,_0x26a210);},'qwmZs':function(_0x519499,_0x555327){return _0x519499(_0x555327);},'gDQkX':_0x2cdffb['HrnSU']};let _0xc635d7=![],_0x5a0082=null;const _0x1f0ea2=randomUUID();sendSuccessCBMap[_0x1f0ea2]=_0x4ebd3a=>{const _0x326495=_0xe7e0;if(_0x4ebd3a[_0x326495(0x92)]===_0x5a0082?.[_0x326495(0x92)]){if(_0x4cdc0c[_0x326495(0xae)](_0x4ebd3a[_0x326495(0x99)],0x2))return delete sendSuccessCBMap[_0x1f0ea2],_0xc635d7=!![],_0x4cdc0c[_0x326495(0x82)](_0x483421,_0x4ebd3a),!![];return![];}return![];},sendMessagePool[_0x57e74a]=async _0x53deca=>{delete sendMessagePool[_0x57e74a],_0x5a0082=_0x53deca;},_0x2cdffb[_0x40fadc(0xbf)](setTimeout,()=>{const _0x17dacf=_0x40fadc;if(_0xc635d7)return;delete sendMessagePool[_0x57e74a],delete sendSuccessCBMap[_0x1f0ea2],_0x4cdc0c['qwmZs'](_0x2f2bc8,_0x4cdc0c[_0x17dacf(0x90)]);},_0x330442);const _0x189a41=napCatCore[_0x40fadc(0x83)][_0x40fadc(0xb9)]()[_0x40fadc(0x98)]('0',_0xb6dabe,_0x14eed1,new Map());});}static async[_0x4cb96a(0xaf)](_0x2fc2c0,_0x58a3a9,_0x3628d6){}static async[_0x4cb96a(0xb5)](_0x2978fb,_0x5f249c,_0x55c0bf){const _0x237bdd=_0x4cb96a,_0x5de6a5={'iMVfx':function(_0xf0d64a,_0x30065a){return _0xf0d64a!=_0x30065a;},'DBwhm':'com.tencent.multimsg','oSRNE':function(_0x5d4c40,_0x149993){return _0x5d4c40==_0x149993;},'sGBLm':function(_0x5ed6ea,_0x57356a){return _0x5ed6ea==_0x57356a;},'rMCQF':function(_0x1adbb5,_0x297266){return _0x1adbb5(_0x297266);},'DlcxW':function(_0x58c943,_0x32cd00,_0x2be66f){return _0x58c943(_0x32cd00,_0x2be66f);}},_0x3a6f69=_0x55c0bf[_0x237bdd(0xb2)](_0x9fd9fc=>{const _0x4a599e=_0x237bdd;return{'msgId':_0x9fd9fc,'senderShowName':selfInfo[_0x4a599e(0xa0)]};});return new Promise((_0x3ca088,_0x24d4dd)=>{const _0x3d50d2=_0x237bdd,_0x240c9a={'owwgh':function(_0x4913d5,_0x2ccf23){const _0x4ac959=_0xe7e0;return _0x5de6a5[_0x4ac959(0x96)](_0x4913d5,_0x2ccf23);},'hOZzJ':_0x5de6a5[_0x3d50d2(0xc4)],'IiZJQ':function(_0x32d979,_0x4343d8){const _0x532256=_0x3d50d2;return _0x5de6a5[_0x532256(0xc8)](_0x32d979,_0x4343d8);},'JfgyW':function(_0x6ef6bb,_0x44e235){return _0x5de6a5['sGBLm'](_0x6ef6bb,_0x44e235);},'IBYti':function(_0x10aed2,_0x28dcc2){const _0x17ede1=_0x3d50d2;return _0x5de6a5[_0x17ede1(0xb0)](_0x10aed2,_0x28dcc2);}};let _0x5c6cd5=![];const _0x1f78bc=_0x194cee=>{const _0x53a7ec=_0x3d50d2,_0x1f8c03=_0x194cee['elements'][_0x53a7ec(0xc7)](_0x3c6443=>_0x3c6443[_0x53a7ec(0x97)]);if(!_0x1f8c03)return;const _0x4b9aa5=JSON[_0x53a7ec(0xc2)](_0x1f8c03[_0x53a7ec(0x97)]['bytesData']);if(_0x240c9a[_0x53a7ec(0xb3)](_0x4b9aa5['app'],_0x240c9a[_0x53a7ec(0xc0)]))return;_0x240c9a[_0x53a7ec(0x8a)](_0x194cee[_0x53a7ec(0xbc)],_0x5f249c[_0x53a7ec(0xbc)])&&_0x240c9a[_0x53a7ec(0x8e)](_0x194cee[_0x53a7ec(0x95)],selfInfo[_0x53a7ec(0x9f)])&&(_0x5c6cd5=!![],_0x240c9a[_0x53a7ec(0xbb)](_0x3ca088,_0x194cee));};sentMsgTasks[_0x3d50d2(0xac)](randomUUID(),_0x1f78bc),_0x5de6a5[_0x3d50d2(0x8b)](setTimeout,()=>{const _0x4b7725=_0x3d50d2;!_0x5c6cd5&&_0x24d4dd(_0x4b7725(0xbe));},0x1388),napCatCore[_0x3d50d2(0x83)]['getMsgService']()['multiForwardMsgWithComment'](_0x3a6f69,_0x2978fb,_0x5f249c,[],new Map());});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/sign.js b/src/core.lib/src/apis/sign.js index 25b2198c..bbfb1128 100644 --- a/src/core.lib/src/apis/sign.js +++ b/src/core.lib/src/apis/sign.js @@ -1 +1 @@ -function _0x68e1(){var _0x532084=['2901456gBPrQr','stringify','55pijYVT','catch','3249580CgrEms','zyJyB','application/json','26961JomNBl','djBGA','524OgXSkP','7641972MpjVkP','then','statusText','json','POST','2585098wbkyQa','67355lvsmac','BVApU','3nGuZly','21zKnkDg','url','VGDQD','PTGOu','2946318DfRhJl','KVZbL'];_0x68e1=function(){return _0x532084;};return _0x68e1();}var _0x3d26d9=_0x2e8e;function _0x2e8e(_0xb4a40b,_0x388a7b){var _0x68e12a=_0x68e1();return _0x2e8e=function(_0x2e8eeb,_0x151e72){_0x2e8eeb=_0x2e8eeb-0x158;var _0x44c381=_0x68e12a[_0x2e8eeb];return _0x44c381;},_0x2e8e(_0xb4a40b,_0x388a7b);}(function(_0x4cb48e,_0x1fd660){var _0x349629=_0x2e8e,_0x31789c=_0x4cb48e();while(!![]){try{var _0x8563bf=parseInt(_0x349629(0x168))/0x1+parseInt(_0x349629(0x170))/0x2*(parseInt(_0x349629(0x15a))/0x3)+-parseInt(_0x349629(0x16a))/0x4*(parseInt(_0x349629(0x158))/0x5)+-parseInt(_0x349629(0x15f))/0x6*(parseInt(_0x349629(0x15b))/0x7)+parseInt(_0x349629(0x161))/0x8+parseInt(_0x349629(0x16b))/0x9+parseInt(_0x349629(0x165))/0xa*(parseInt(_0x349629(0x163))/0xb);if(_0x8563bf===_0x1fd660)break;else _0x31789c['push'](_0x31789c['shift']());}catch(_0xaf5f73){_0x31789c['push'](_0x31789c['shift']());}}}(_0x68e1,0xe02d6));import{logDebug}from'@/common/utils/log';export class MusicSign{[_0x3d26d9(0x15c)];constructor(_0x481191){var _0x31e2a9=_0x3d26d9;this[_0x31e2a9(0x15c)]=_0x481191;}['sign'](_0xcb2888){var _0x1fe579=_0x3d26d9,_0x5e4438={'djBGA':function(_0x2e41cb,_0x30a0cf,_0x164698){return _0x2e41cb(_0x30a0cf,_0x164698);},'PTGOu':function(_0x3248db,_0x1db3ae){return _0x3248db(_0x1db3ae);},'KVZbL':_0x1fe579(0x16f),'zyJyB':_0x1fe579(0x167)};return new Promise((_0x419cbf,_0x2d8c9b)=>{var _0x384c00=_0x1fe579,_0x418cb0={'VGDQD':function(_0x133e7c,_0x5eba13){var _0x2a1365=_0x2e8e;return _0x5e4438[_0x2a1365(0x15e)](_0x133e7c,_0x5eba13);},'BVApU':function(_0x53b1ac,_0x2d5290){var _0xde27cc=_0x2e8e;return _0x5e4438[_0xde27cc(0x15e)](_0x53b1ac,_0x2d5290);}};fetch(this['url'],{'method':_0x5e4438[_0x384c00(0x160)],'headers':{'Content-Type':_0x5e4438[_0x384c00(0x166)]},'body':JSON[_0x384c00(0x162)](_0xcb2888)})[_0x384c00(0x16c)](_0x3800c2=>{var _0x332287=_0x384c00;return!_0x3800c2['ok']&&_0x418cb0[_0x332287(0x15d)](_0x2d8c9b,_0x3800c2[_0x332287(0x16d)]),_0x3800c2[_0x332287(0x16e)]();})[_0x384c00(0x16c)](_0x845a96=>{var _0x3d9381=_0x384c00;_0x5e4438[_0x3d9381(0x169)](logDebug,'音乐消息生成成功',_0x845a96),_0x419cbf(_0x845a96);})[_0x384c00(0x164)](_0x432837=>{var _0x42c8f6=_0x384c00;_0x418cb0[_0x42c8f6(0x159)](_0x2d8c9b,_0x432837);});});}} \ No newline at end of file +var _0x153bdf=_0x556a;function _0x556a(_0x109642,_0x48d222){var _0x14a8b7=_0x14a8();return _0x556a=function(_0x556ab0,_0x575fa8){_0x556ab0=_0x556ab0-0x13c;var _0x13f490=_0x14a8b7[_0x556ab0];return _0x13f490;},_0x556a(_0x109642,_0x48d222);}(function(_0xddf682,_0x7e9831){var _0x2aa30=_0x556a,_0x4c1d3b=_0xddf682();while(!![]){try{var _0x587b0f=parseInt(_0x2aa30(0x155))/0x1*(parseInt(_0x2aa30(0x14c))/0x2)+parseInt(_0x2aa30(0x14e))/0x3*(parseInt(_0x2aa30(0x14d))/0x4)+-parseInt(_0x2aa30(0x144))/0x5*(-parseInt(_0x2aa30(0x153))/0x6)+parseInt(_0x2aa30(0x14b))/0x7*(parseInt(_0x2aa30(0x149))/0x8)+parseInt(_0x2aa30(0x146))/0x9*(-parseInt(_0x2aa30(0x14f))/0xa)+-parseInt(_0x2aa30(0x151))/0xb*(parseInt(_0x2aa30(0x14a))/0xc)+parseInt(_0x2aa30(0x154))/0xd*(-parseInt(_0x2aa30(0x156))/0xe);if(_0x587b0f===_0x7e9831)break;else _0x4c1d3b['push'](_0x4c1d3b['shift']());}catch(_0xa2c3fe){_0x4c1d3b['push'](_0x4c1d3b['shift']());}}}(_0x14a8,0x23b1c));import{logDebug}from'@/common/utils/log';function _0x14a8(){var _0x19abee=['sign','POST','hlhlo','application/json','1409205qBeFqP','url','9etwoUx','statusText','cnBXR','904EYkekf','12JqwSrA','7371eoaKBU','28ZWOvWr','4rWJcqo','695082pLlXAi','2603540zGeKGY','then','2076657pJhCQs','stringify','6AIkhBe','247kvLMJQ','7166OamwTm','101318vkCTjc','catch','json','音乐消息生成成功','JVHfI'];_0x14a8=function(){return _0x19abee;};return _0x14a8();}export class MusicSign{[_0x153bdf(0x145)];constructor(_0x33dc55){var _0x182cc2=_0x153bdf;this[_0x182cc2(0x145)]=_0x33dc55;}[_0x153bdf(0x140)](_0x23d232){var _0x284fc9=_0x153bdf,_0x543b4c={'hlhlo':function(_0x24b3d1,_0x50d035,_0x45bd73){return _0x24b3d1(_0x50d035,_0x45bd73);},'JVHfI':_0x284fc9(0x13e),'rOEcD':function(_0x383df4,_0x51ece1){return _0x383df4(_0x51ece1);},'HtRHU':_0x284fc9(0x141),'cnBXR':_0x284fc9(0x143)};return new Promise((_0x2edd85,_0x184a5a)=>{var _0x34c5b3=_0x284fc9;_0x543b4c[_0x34c5b3(0x142)](fetch,this['url'],{'method':_0x543b4c['HtRHU'],'headers':{'Content-Type':_0x543b4c[_0x34c5b3(0x148)]},'body':JSON[_0x34c5b3(0x152)](_0x23d232)})[_0x34c5b3(0x150)](_0x1d8922=>{var _0x333b03=_0x34c5b3;return!_0x1d8922['ok']&&_0x184a5a(_0x1d8922[_0x333b03(0x147)]),_0x1d8922[_0x333b03(0x13d)]();})[_0x34c5b3(0x150)](_0x1a4a7c=>{var _0x16636c=_0x34c5b3;_0x543b4c[_0x16636c(0x142)](logDebug,_0x543b4c[_0x16636c(0x13f)],_0x1a4a7c),_0x543b4c['rOEcD'](_0x2edd85,_0x1a4a7c);})[_0x34c5b3(0x13c)](_0x2507c8=>{_0x184a5a(_0x2507c8);});});}} \ 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 e3057198..d01ca1c9 100644 --- a/src/core.lib/src/apis/user.js +++ b/src/core.lib/src/apis/user.js @@ -1 +1 @@ -const _0x23d2a9=_0x2163;(function(_0x2d1c57,_0x206128){const _0x907fc0=_0x2163,_0x224fdc=_0x2d1c57();while(!![]){try{const _0x18f914=-parseInt(_0x907fc0(0x1ad))/0x1+-parseInt(_0x907fc0(0x1d1))/0x2*(parseInt(_0x907fc0(0x1d0))/0x3)+parseInt(_0x907fc0(0x1c2))/0x4+parseInt(_0x907fc0(0x1b1))/0x5+parseInt(_0x907fc0(0x1cb))/0x6+-parseInt(_0x907fc0(0x1a5))/0x7*(-parseInt(_0x907fc0(0x1b7))/0x8)+-parseInt(_0x907fc0(0x1c7))/0x9;if(_0x18f914===_0x206128)break;else _0x224fdc['push'](_0x224fdc['shift']());}catch(_0x136d7c){_0x224fdc['push'](_0x224fdc['shift']());}}}(_0x3372,0x69e46));import{Credentials,selfInfo}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';function _0x3372(){const _0xf1ef14=['mHWcR','8PUVirL','onProfileDetailInfoChanged','errMsg','vNUri','getRobotUinRange','then','CreatTime','result','keyIndex','domainPskeyMap','getProfileService','2618812KRglKG','getUserDetailInfo\x20timeout','forEach','fromEntries','phkti','359406hggQcv','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=','setQQAvatar','3262380jpLfjB','getUserDetailInfo','RsceD','PqWHW','Skey','11949SvqQIB','350hgItmu','getProfileLikeService','getPSkey','delete','getUserInfo','clientKey','getRobotService','get','onLoginSuccess','RqRMw','CZDMu','now','addListener','EfIdn','uid','wnLjL','session','2095177iOzbTo','getSelfInfo','setStatus','getSkey','ceMuA','bRShz','getTicketService','getPskey','660513XCFoXe','forceFetchClientKey','eZKJu','getUserDetailInfoWithBizInfo','1667310dkuvZT','setSelfOnlineStatus','getTipOffService','skey','getMsgService'];_0x3372=function(){return _0xf1ef14;};return _0x3372();}function _0x2163(_0x2243a1,_0x38164d){const _0x33729f=_0x3372();return _0x2163=function(_0x2163ad,_0xfbecfa){_0x2163ad=_0x2163ad-0x19e;let _0x428fe6=_0x33729f[_0x2163ad];return _0x428fe6;},_0x2163(_0x2243a1,_0x38164d);}import{randomUUID}from'crypto';import{HttpGetWithCookies}from'../../../common/utils/request';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x23d2a9(0x1b8)]=_0x1c950f=>{const _0x23de2e=_0x23d2a9;userInfoCache[_0x1c950f[_0x23de2e(0x1a2)]]=_0x1c950f,userDetailHandlers[_0x23de2e(0x1c4)](_0x3f508b=>_0x3f508b(_0x1c950f));},setTimeout(()=>{const _0x4ff25a=_0x23d2a9;napCatCore[_0x4ff25a(0x1d9)](()=>{const _0x32323d=_0x4ff25a;napCatCore[_0x32323d(0x1a0)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x23d2a9(0x1b2)](_0x270818,_0x4b77dd,_0x4e2853){const _0x52ae92=_0x23d2a9;return napCatCore['session'][_0x52ae92(0x1b5)]()[_0x52ae92(0x1a7)]({'status':_0x270818,'extStatus':_0x4b77dd,'batteryStatus':_0x4e2853});}static async['like'](_0x161914,_0x277c78=0x1){const _0x484d6b=_0x23d2a9;return napCatCore['session'][_0x484d6b(0x1d2)]()['setBuddyProfileLike']({'friendUid':_0x161914,'sourceId':0x47,'doLikeCount':_0x277c78,'doLikeTollCount':0x0});}static async[_0x23d2a9(0x1ca)](_0x38fd35){const _0x3ce6ee=_0x23d2a9,_0x126218=napCatCore[_0x3ce6ee(0x1a4)]['getProfileService']()['setHeader'](_0x38fd35);return{'result':_0x126218?.['result'],'errMsg':_0x126218?.[_0x3ce6ee(0x1b9)]};}static async[_0x23d2a9(0x1a6)](){}static async[_0x23d2a9(0x1d5)](_0x35cfe1){}static async[_0x23d2a9(0x1cc)](_0x1129b6){const _0x2df00a=_0x23d2a9,_0x57dd99={'OZpGJ':function(_0x5827fb,_0x57dede){return _0x5827fb===_0x57dede;},'ceMuA':function(_0x592cb5,_0x1cfdf8){return _0x592cb5(_0x1cfdf8);},'RqRMw':function(_0x370e28){return _0x370e28();},'tVCXW':function(_0x16fff4,_0x4766a7,_0xcce68){return _0x16fff4(_0x4766a7,_0xcce68);}},_0x461891=napCatCore[_0x2df00a(0x1a4)][_0x2df00a(0x1c1)]();return new Promise((_0x201f6c,_0xece048)=>{const _0x2b61d6=_0x2df00a,_0xdeae6e=_0x57dd99[_0x2b61d6(0x1da)](randomUUID);let _0x36d867=![];_0x57dd99['tVCXW'](setTimeout,()=>{const _0x1562e7=_0x2b61d6;!_0x36d867&&_0xece048(_0x1562e7(0x1c3));},0x1388),userDetailHandlers['set'](_0xdeae6e,_0x51b86b=>{const _0x161c41=_0x2b61d6;_0x57dd99['OZpGJ'](_0x51b86b[_0x161c41(0x1a2)],_0x1129b6)&&(_0x36d867=!![],userDetailHandlers[_0x161c41(0x1d4)](_0xdeae6e),_0x57dd99[_0x161c41(0x1a9)](_0x201f6c,_0x51b86b));}),_0x461891[_0x2b61d6(0x1b0)](_0x1129b6,[0x0])[_0x2b61d6(0x1bc)](_0x5d9591=>{});});}static async[_0x23d2a9(0x1d3)](_0x3c90eb){const _0x5dbbc8=_0x23d2a9,_0x344aa2={'CZDMu':function(_0xe5e982,_0x56e221){return _0xe5e982===_0x56e221;}},_0x314a32=await napCatCore[_0x5dbbc8(0x1a4)][_0x5dbbc8(0x1b3)]()[_0x5dbbc8(0x1ac)](_0x3c90eb,!![]);if(_0x344aa2[_0x5dbbc8(0x19e)](_0x314a32['result'],0x0)){const _0x16c08d=_0x314a32[_0x5dbbc8(0x1c0)];return Object[_0x5dbbc8(0x1c5)](_0x16c08d);}return{};}static async[_0x23d2a9(0x1bb)](){const _0x17cc4f=_0x23d2a9,_0xe405d3=await napCatCore[_0x17cc4f(0x1a4)][_0x17cc4f(0x1d7)]()['getRobotUinRange']({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0xe405d3?.['response']?.['robotUinRanges'];}static async[_0x23d2a9(0x1a8)](){const _0x40194d=_0x23d2a9,_0x345693={'eXNgS':function(_0x11b377,_0x33bf8d){return _0x11b377==_0x33bf8d;},'eZKJu':function(_0x5915ae,_0x449bc6){return _0x5915ae>_0x449bc6;},'mHWcR':function(_0x51b901,_0x53debd){return _0x51b901-_0x53debd;},'RsceD':function(_0x4440d3,_0x126f30){return _0x4440d3*_0x126f30;},'bRShz':function(_0x48c02c,_0x1936c5){return _0x48c02c!==_0x1936c5;},'PqWHW':function(_0x2c3158,_0x1a7b34){return _0x2c3158+_0x1a7b34;},'vNUri':function(_0x2308de,_0x5ec124){return _0x2308de+_0x5ec124;},'EfIdn':function(_0x320a28,_0x41ffa4){return _0x320a28+_0x41ffa4;},'TxoYB':_0x40194d(0x1c8),'wnLjL':'&clientkey=','phkti':_0x40194d(0x1c9)};try{if(_0x345693['eXNgS'](Credentials[_0x40194d(0x1bd)],0x0)||_0x345693[_0x40194d(0x1af)](_0x345693[_0x40194d(0x1b6)](Date[_0x40194d(0x19f)](),Credentials['CreatTime']),_0x345693[_0x40194d(0x1cd)](0x3e8,0xe10))){const _0x37f90b=await napCatCore[_0x40194d(0x1a4)][_0x40194d(0x1ab)]()[_0x40194d(0x1ae)]('');if(_0x345693[_0x40194d(0x1aa)](_0x37f90b[_0x40194d(0x1be)],0x0))return'';const _0x2bb02d=_0x37f90b[_0x40194d(0x1d6)],_0x26ddae=_0x37f90b[_0x40194d(0x1bf)],_0x5331c1=_0x345693[_0x40194d(0x1ce)](_0x345693[_0x40194d(0x1ba)](_0x345693['PqWHW'](_0x345693[_0x40194d(0x1ba)](_0x345693[_0x40194d(0x1a1)](_0x345693['TxoYB'],selfInfo['uin']),_0x345693[_0x40194d(0x1a3)]),_0x2bb02d),_0x345693[_0x40194d(0x1c6)]),_0x26ddae),_0x5719f3=await HttpGetWithCookies(_0x5331c1);let _0x39322d=_0x5719f3[_0x40194d(0x1d8)](_0x40194d(0x1b4));if(!_0x39322d)return'';return Credentials[_0x40194d(0x1bd)]=Date[_0x40194d(0x19f)](),Credentials[_0x40194d(0x1cf)]=_0x39322d,_0x39322d;}return Credentials[_0x40194d(0x1cf)];}catch(_0x1e2e43){}return undefined;}} \ No newline at end of file +const _0x53a2e4=_0x5677;(function(_0x47a8ae,_0x5dc775){const _0x382f4a=_0x5677,_0x21379f=_0x47a8ae();while(!![]){try{const _0x439f9a=-parseInt(_0x382f4a(0x1bf))/0x1+-parseInt(_0x382f4a(0x199))/0x2+parseInt(_0x382f4a(0x189))/0x3*(-parseInt(_0x382f4a(0x19b))/0x4)+parseInt(_0x382f4a(0x1b6))/0x5+-parseInt(_0x382f4a(0x1ad))/0x6*(-parseInt(_0x382f4a(0x1af))/0x7)+parseInt(_0x382f4a(0x196))/0x8+parseInt(_0x382f4a(0x192))/0x9*(parseInt(_0x382f4a(0x19a))/0xa);if(_0x439f9a===_0x5dc775)break;else _0x21379f['push'](_0x21379f['shift']());}catch(_0x1ab58a){_0x21379f['push'](_0x21379f['shift']());}}}(_0x15b8,0xe793f));function _0x5677(_0x32a158,_0x48fe6e){const _0x15b8b9=_0x15b8();return _0x5677=function(_0x567798,_0x408bb1){_0x567798=_0x567798-0x182;let _0x5dec21=_0x15b8b9[_0x567798];return _0x5dec21;},_0x5677(_0x32a158,_0x48fe6e);}function _0x15b8(){const _0x5e0da1=['UpxGw','QnFGc','HBuCQ','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','getRobotService','session','IqIZH','RvloN','6rufIQH','getProfileLikeService','2034557swmqsw','get','sijwG','eWzjb','getRobotUinRange','uin','setStatus','1695950xfpFnd','getUserDetailInfo','delete','gMEoY','onProfileDetailInfoChanged','getPskey','oQLhM','getTipOffService','keyIndex','1651088HYXaGk','getTicketService','otRgh','response','PwOjR','then','now','fromEntries','468099JcMKHk','forEach','xNetc','DeiVF','onLoginSuccess','Skey','domainPskeyMap','getProfileService','result','2380419ZJptML','robotUinRanges','addListener','DQxSc','7520728fNuuYE','setSelfOnlineStatus','setQQAvatar','2389374IljdUh','90OOTOXy','4INDZzl','getPSkey','clientKey','getMsgService','setBuddyProfileLike','getSelfInfo','getUserDetailInfo\x20timeout','getSkey','CreatTime','gMlRd'];_0x15b8=function(){return _0x5e0da1;};return _0x15b8();}import{Credentials,selfInfo}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';import{HttpGetCookies}from'../../../common/utils/request';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x53a2e4(0x1ba)]=_0x4c7b42=>{const _0x587130=_0x53a2e4;userInfoCache[_0x4c7b42['uid']]=_0x4c7b42,userDetailHandlers[_0x587130(0x18a)](_0x14f975=>_0x14f975(_0x4c7b42));},setTimeout(()=>{const _0x1b38d0=_0x53a2e4;napCatCore[_0x1b38d0(0x18d)](()=>{const _0x49a0ec=_0x1b38d0;napCatCore[_0x49a0ec(0x194)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x53a2e4(0x197)](_0x133150,_0x26d7bd,_0x5415bb){const _0x51b4a9=_0x53a2e4;return napCatCore[_0x51b4a9(0x1aa)][_0x51b4a9(0x19e)]()[_0x51b4a9(0x1b5)]({'status':_0x133150,'extStatus':_0x26d7bd,'batteryStatus':_0x5415bb});}static async['like'](_0xb21f72,_0x2f1677=0x1){const _0xfc6c0e=_0x53a2e4;return napCatCore[_0xfc6c0e(0x1aa)][_0xfc6c0e(0x1ae)]()[_0xfc6c0e(0x19f)]({'friendUid':_0xb21f72,'sourceId':0x47,'doLikeCount':_0x2f1677,'doLikeTollCount':0x0});}static async[_0x53a2e4(0x198)](_0x446dd8){const _0x520b8b=_0x53a2e4,_0x35d405=napCatCore[_0x520b8b(0x1aa)][_0x520b8b(0x190)]()['setHeader'](_0x446dd8);return{'result':_0x35d405?.[_0x520b8b(0x191)],'errMsg':_0x35d405?.['errMsg']};}static async[_0x53a2e4(0x1a0)](){}static async['getUserInfo'](_0x16406a){}static async[_0x53a2e4(0x1b7)](_0x482c73){const _0x1b5750=_0x53a2e4,_0x5addbc={'UpxGw':function(_0x3851de,_0x8d6068){return _0x3851de(_0x8d6068);},'TmhEn':_0x1b5750(0x1a1),'sijwG':function(_0x1e404e,_0x4dbccd,_0x4ed22a){return _0x1e404e(_0x4dbccd,_0x4ed22a);}},_0x216c9c=napCatCore[_0x1b5750(0x1aa)]['getProfileService']();return new Promise((_0x575f97,_0x2b601c)=>{const _0x3f44f3=_0x1b5750,_0x657aa2={'eWzjb':function(_0x19d0e9,_0x2822f4){return _0x19d0e9===_0x2822f4;},'QnFGc':function(_0x1e3937,_0x18ee34){const _0xd0299b=_0x5677;return _0x5addbc[_0xd0299b(0x1a5)](_0x1e3937,_0x18ee34);}},_0x56c91f=randomUUID();let _0x473886=![];_0x5addbc[_0x3f44f3(0x1b1)](setTimeout,()=>{const _0x5f20c5=_0x3f44f3;!_0x473886&&_0x5addbc[_0x5f20c5(0x1a5)](_0x2b601c,_0x5addbc['TmhEn']);},0x1388),userDetailHandlers['set'](_0x56c91f,_0x4696e8=>{const _0x5ea12e=_0x3f44f3;_0x657aa2[_0x5ea12e(0x1b2)](_0x4696e8['uid'],_0x482c73)&&(_0x473886=!![],userDetailHandlers[_0x5ea12e(0x1b8)](_0x56c91f),_0x657aa2[_0x5ea12e(0x1a6)](_0x575f97,_0x4696e8));}),_0x216c9c['getUserDetailInfoWithBizInfo'](_0x482c73,[0x0])[_0x3f44f3(0x186)](_0x27a5af=>{});});}static async[_0x53a2e4(0x19c)](_0x372a79){const _0x2e4199=_0x53a2e4,_0x1b9d25={'RvloN':function(_0x178727,_0xce08be){return _0x178727===_0xce08be;}},_0x202d27=await napCatCore[_0x2e4199(0x1aa)][_0x2e4199(0x1bd)]()[_0x2e4199(0x1bb)](_0x372a79,!![]);if(_0x1b9d25[_0x2e4199(0x1ac)](_0x202d27[_0x2e4199(0x191)],0x0)){const _0x2cfa90=_0x202d27[_0x2e4199(0x18f)];return Object[_0x2e4199(0x188)](_0x2cfa90);}return{};}static async['getRobotUinRange'](){const _0x4ce5cb=_0x53a2e4,_0x54f18b=await napCatCore[_0x4ce5cb(0x1aa)][_0x4ce5cb(0x1a9)]()[_0x4ce5cb(0x1b3)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x54f18b?.[_0x4ce5cb(0x184)]?.[_0x4ce5cb(0x193)];}static async[_0x53a2e4(0x1a2)](){const _0x447515=_0x53a2e4,_0x1a1291={'UEkdo':function(_0xafb91,_0x15ad49){return _0xafb91==_0x15ad49;},'oQLhM':function(_0x5a84ca,_0x23f06d){return _0x5a84ca>_0x23f06d;},'otRgh':function(_0x18a894,_0x43004e){return _0x18a894*_0x43004e;},'IqIZH':function(_0x43d9f0,_0x2aaea3){return _0x43d9f0+_0x2aaea3;},'gMlRd':function(_0x533fdd,_0x5387a8){return _0x533fdd+_0x5387a8;},'PwOjR':function(_0x13fe80,_0xf59ffc){return _0x13fe80+_0xf59ffc;},'xNetc':function(_0x4eae93,_0x59a433){return _0x4eae93+_0x59a433;},'gMEoY':_0x447515(0x1a8),'DeiVF':'&clientkey=','DQxSc':'&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','HBuCQ':function(_0x294320,_0x2c337e){return _0x294320(_0x2c337e);},'YFgEb':'skey'};try{if(_0x1a1291['UEkdo'](Credentials[_0x447515(0x1a3)],0x0)||_0x1a1291[_0x447515(0x1bc)](Date[_0x447515(0x187)]()-Credentials[_0x447515(0x1a3)],_0x1a1291[_0x447515(0x183)](0x3e8,0xe10))){const _0x4835a3=await napCatCore[_0x447515(0x1aa)][_0x447515(0x182)]()['forceFetchClientKey']('');if(_0x4835a3[_0x447515(0x191)]!==0x0)return'';const _0x94cdce=_0x4835a3[_0x447515(0x19d)],_0x233c3f=_0x4835a3[_0x447515(0x1be)],_0xd76601=_0x1a1291[_0x447515(0x1ab)](_0x1a1291[_0x447515(0x1a4)](_0x1a1291['PwOjR'](_0x1a1291[_0x447515(0x185)](_0x1a1291[_0x447515(0x18b)](_0x1a1291[_0x447515(0x1b9)],selfInfo[_0x447515(0x1b4)]),_0x1a1291[_0x447515(0x18c)]),_0x94cdce),_0x1a1291[_0x447515(0x195)]),_0x233c3f),_0x251d12=await _0x1a1291[_0x447515(0x1a7)](HttpGetCookies,_0xd76601);let _0x3a91b8=_0x251d12[_0x447515(0x1b0)](_0x1a1291['YFgEb']);if(!_0x3a91b8)return'';return Credentials[_0x447515(0x1a3)]=Date[_0x447515(0x187)](),Credentials[_0x447515(0x18e)]=_0x3a91b8,_0x3a91b8;}return Credentials[_0x447515(0x18e)];}catch(_0x119695){}return undefined;}} \ No newline at end of file diff --git a/src/core.lib/src/apis/webapi.js b/src/core.lib/src/apis/webapi.js index 8ee35b65..92050bab 100644 --- a/src/core.lib/src/apis/webapi.js +++ b/src/core.lib/src/apis/webapi.js @@ -1 +1 @@ -const _0xc785de=_0x1287;(function(_0x10530e,_0x449f9b){const _0xcfa018=_0x1287,_0x325480=_0x10530e();while(!![]){try{const _0x4b1a23=-parseInt(_0xcfa018(0x134))/0x1+parseInt(_0xcfa018(0x152))/0x2*(parseInt(_0xcfa018(0x11b))/0x3)+parseInt(_0xcfa018(0x10e))/0x4+parseInt(_0xcfa018(0x159))/0x5*(parseInt(_0xcfa018(0x133))/0x6)+parseInt(_0xcfa018(0x112))/0x7+parseInt(_0xcfa018(0x119))/0x8+-parseInt(_0xcfa018(0x144))/0x9;if(_0x4b1a23===_0x449f9b)break;else _0x325480['push'](_0x325480['shift']());}catch(_0x2536b4){_0x325480['push'](_0x325480['shift']());}}}(_0x2e34,0xcfe24));import{selfInfo}from'@/core/data';import{NTQQUserApi}from'./user';function _0x1287(_0x3b1db6,_0x2c26f5){const _0x2e34b0=_0x2e34();return _0x1287=function(_0x1287b9,_0x251e47){_0x1287b9=_0x1287b9-0x10e;let _0x51ff04=_0x2e34b0[_0x1287b9];return _0x51ff04;},_0x1287(_0x3b1db6,_0x2c26f5);}export class WebApi{static async[_0xc785de(0x13f)](_0x24042c,_0x468869){const _0x3d0692=_0xc785de,_0x14f99c={'KyTFa':'qun.qq.com','sybdz':function(_0x56343d,_0x5d2f06){return _0x56343d+_0x5d2f06;},'XcDuQ':function(_0x475532,_0x5673b1){return _0x475532+_0x5673b1;},'REBgR':_0x3d0692(0x114),'lNGvV':_0x3d0692(0x136),'ZaqXK':_0x3d0692(0x14c),'eWKuW':';\x20uin=o','Ujppj':function(_0x463e21,_0xc372bb){return _0x463e21||_0xc372bb;},'JwfsS':function(_0x25a9f6,_0x260c0d){return _0x25a9f6+_0x260c0d;},'KrPaE':function(_0xec457f,_0x4b884e){return _0xec457f+_0x4b884e;},'YCFad':_0x3d0692(0x13a),'rStvx':_0x3d0692(0x137),'mcxLX':_0x3d0692(0x16a),'yFhiL':function(_0x1f3ca5,_0x5f5b0e){return _0x1f3ca5!==_0x5f5b0e;}},_0x200c27=(await NTQQUserApi['getPSkey']([_0x3d0692(0x145)]))[_0x14f99c[_0x3d0692(0x13d)]],_0x47f49d=await NTQQUserApi[_0x3d0692(0x16e)](),_0x4946f2=_0x14f99c[_0x3d0692(0x15b)](_0x14f99c[_0x3d0692(0x161)](_0x14f99c['sybdz'](_0x14f99c['REBgR']+_0x200c27+_0x14f99c['lNGvV'],_0x47f49d),_0x14f99c[_0x3d0692(0x148)]),selfInfo[_0x3d0692(0x14b)])+_0x14f99c[_0x3d0692(0x163)]+selfInfo['uin'];if(_0x14f99c[_0x3d0692(0x12a)](!_0x47f49d,!_0x200c27))return undefined;const _0x50e9c9=WebApi[_0x3d0692(0x177)](_0x47f49d);let _0x5b181e=_0x14f99c[_0x3d0692(0x161)](_0x14f99c['XcDuQ'](_0x14f99c[_0x3d0692(0x117)](_0x14f99c[_0x3d0692(0x12e)](_0x14f99c[_0x3d0692(0x16f)],_0x50e9c9),_0x14f99c[_0x3d0692(0x129)]),_0x24042c)+_0x14f99c[_0x3d0692(0x12f)],_0x468869)+_0x3d0692(0x166),_0x27ef25=await WebApi[_0x3d0692(0x162)](_0x5b181e,'GET','',_0x4946f2);if(_0x14f99c[_0x3d0692(0x14e)](_0x27ef25[_0x3d0692(0x126)],0x0))return undefined;return _0x27ef25;}static async[_0xc785de(0x13c)](_0x309420){const _0x36ea1f=_0xc785de,_0x5b15df={'CmZEG':_0x36ea1f(0x145),'GYiYb':function(_0x4f2ca6,_0x2e6257){return _0x4f2ca6+_0x2e6257;},'RjkRp':_0x36ea1f(0x114),'exmaY':_0x36ea1f(0x136),'XuHNo':_0x36ea1f(0x14c),'ScTSd':function(_0x50801d,_0x2497b1){return _0x50801d||_0x2497b1;},'hQMGw':function(_0x1d0dc3,_0x1a2fe4){return _0x1d0dc3+_0x1a2fe4;},'zizkR':'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','nWBiI':_0x36ea1f(0x15a),'mmYQb':function(_0x12dc35,_0x37e6e3){return _0x12dc35/_0x37e6e3;},'mEiok':function(_0x47c61b,_0x4fa8c2){return _0x47c61b<=_0x4fa8c2;},'cUAcn':function(_0x3cab41,_0x394403){return _0x3cab41+_0x394403;},'WymVT':function(_0x47e0c1,_0x5e8712){return _0x47e0c1+_0x5e8712;},'CNLrC':_0x36ea1f(0x16c),'wWIFh':function(_0x4485ea,_0x2c1677){return _0x4485ea*_0x2c1677;},'xIYqb':function(_0x26d463,_0x41dd47){return _0x26d463-_0x41dd47;},'dcNLf':'&end=','NxaHq':_0x36ea1f(0x124),'KzHXV':_0x36ea1f(0x122),'QHQIp':function(_0x49c4bc,_0x5ec5c0){return _0x49c4bc<=_0x5ec5c0;}},_0x201bdf=(await NTQQUserApi[_0x36ea1f(0x175)]([_0x5b15df['CmZEG']]))[_0x36ea1f(0x145)],_0x2b9c26=await NTQQUserApi[_0x36ea1f(0x16e)](),_0x178227=_0x5b15df[_0x36ea1f(0x14f)](_0x5b15df[_0x36ea1f(0x14f)](_0x5b15df[_0x36ea1f(0x14f)](_0x5b15df[_0x36ea1f(0x158)],_0x201bdf),_0x5b15df[_0x36ea1f(0x130)])+_0x2b9c26+_0x5b15df[_0x36ea1f(0x176)],selfInfo[_0x36ea1f(0x14b)]),_0x5c31a4=new Array();if(_0x5b15df[_0x36ea1f(0x174)](!_0x2b9c26,!_0x201bdf))return _0x5c31a4;const _0x38981f=WebApi[_0x36ea1f(0x177)](_0x2b9c26);let _0x238363=[],_0x2fc2dc=await WebApi[_0x36ea1f(0x162)](_0x5b15df[_0x36ea1f(0x16d)](_0x5b15df[_0x36ea1f(0x14f)](_0x5b15df[_0x36ea1f(0x127)],_0x309420)+_0x5b15df[_0x36ea1f(0x143)],_0x38981f),_0x36ea1f(0x122),'',_0x178227);if(!_0x2fc2dc?.[_0x36ea1f(0x172)]||_0x2fc2dc?.[_0x36ea1f(0x138)]!==0x0||!_0x2fc2dc?.[_0x36ea1f(0x123)])return[];else for(let _0x3528cf in _0x2fc2dc[_0x36ea1f(0x123)]){_0x5c31a4[_0x36ea1f(0x121)](_0x2fc2dc['mems'][_0x3528cf]);}let _0x3edcb2=Math[_0x36ea1f(0x15f)](_0x5b15df[_0x36ea1f(0x168)](_0x2fc2dc[_0x36ea1f(0x172)],0x28));for(let _0x2c3108=0x2;_0x5b15df[_0x36ea1f(0x15c)](_0x2c3108,_0x3edcb2);_0x2c3108++){let _0x178005=WebApi['httpDataJson'](_0x5b15df[_0x36ea1f(0x13e)](_0x5b15df[_0x36ea1f(0x14f)](_0x5b15df[_0x36ea1f(0x12d)](_0x5b15df[_0x36ea1f(0x16d)](_0x5b15df[_0x36ea1f(0x12c)],_0x5b15df[_0x36ea1f(0x155)](_0x5b15df[_0x36ea1f(0x154)](_0x2c3108,0x1),0x28))+_0x5b15df[_0x36ea1f(0x11a)],_0x2c3108*0x28)+_0x5b15df['NxaHq'],_0x309420)+_0x36ea1f(0x15a),_0x38981f),_0x5b15df[_0x36ea1f(0x110)],'',_0x178227);_0x238363[_0x36ea1f(0x121)](_0x178005);}for(let _0x291ba5=0x1;_0x5b15df[_0x36ea1f(0x11e)](_0x291ba5,_0x3edcb2);_0x291ba5++){let _0x1d3e2e=await _0x238363[_0x291ba5];if(!_0x1d3e2e?.[_0x36ea1f(0x172)]||_0x1d3e2e?.[_0x36ea1f(0x138)]!==0x0||!_0x1d3e2e?.[_0x36ea1f(0x123)])continue;for(let _0x1b0091 in _0x1d3e2e[_0x36ea1f(0x123)]){_0x5c31a4['push'](_0x1d3e2e[_0x36ea1f(0x123)][_0x1b0091]);}}return _0x5c31a4;}static async[_0xc785de(0x132)](_0x4f10c2,_0x28e72c=''){const _0x3c4483=_0xc785de,_0x947f8b={'FSfQj':'qun.qq.com','otIRw':function(_0x119e29,_0x200386){return _0x119e29+_0x200386;},'cJpQa':function(_0x37bf3f,_0x5aa847){return _0x37bf3f+_0x5aa847;},'CmvcN':function(_0x1bb6a9,_0x5052ba){return _0x1bb6a9+_0x5052ba;},'gRQiJ':_0x3c4483(0x114),'ihrHk':_0x3c4483(0x136),'dopyH':_0x3c4483(0x14c),'oFjcW':function(_0x2400bb,_0x78f910){return _0x2400bb||_0x78f910;},'EFsEM':function(_0x56f389,_0x55900d){return _0x56f389+_0x55900d;},'HoPoH':function(_0x2ae6f1,_0x4ca3b7){return _0x2ae6f1+_0x4ca3b7;},'RNbol':function(_0x29dd17,_0xaa9b64){return _0x29dd17+_0xaa9b64;},'LTesV':'&text=','KaHut':'&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','AKWaX':function(_0x369b04,_0x4fbecb){return _0x369b04+_0x4fbecb;},'PXHzk':'GET'};let _0x9ea507=(await NTQQUserApi[_0x3c4483(0x175)]([_0x3c4483(0x145)]))[_0x947f8b[_0x3c4483(0x160)]],_0x184895=await NTQQUserApi[_0x3c4483(0x16e)](),_0x3f40af=_0x947f8b[_0x3c4483(0x156)](_0x947f8b[_0x3c4483(0x156)](_0x947f8b[_0x3c4483(0x15d)](_0x947f8b[_0x3c4483(0x147)](_0x947f8b[_0x3c4483(0x165)],_0x9ea507),_0x947f8b['ihrHk']),_0x184895),_0x947f8b[_0x3c4483(0x116)])+selfInfo[_0x3c4483(0x14b)],_0x14b4af=undefined;if(_0x947f8b['oFjcW'](!_0x184895,!_0x9ea507))return undefined;let _0x1580e0=WebApi[_0x3c4483(0x177)](_0x184895),_0x2908a5=_0x947f8b[_0x3c4483(0x140)](_0x947f8b[_0x3c4483(0x128)](_0x947f8b[_0x3c4483(0x139)]('qid='+_0x4f10c2,_0x3c4483(0x15a))+_0x1580e0+_0x947f8b[_0x3c4483(0x149)],_0x28e72c),_0x947f8b[_0x3c4483(0x141)]),_0x1daaaf=_0x947f8b['AKWaX'](_0x3c4483(0x146),_0x1580e0);try{return _0x14b4af=await WebApi[_0x3c4483(0x162)](_0x1daaaf,_0x947f8b[_0x3c4483(0x14a)],'',_0x3f40af),_0x14b4af;}catch(_0x29b955){return undefined;}return undefined;}static async[_0xc785de(0x150)](_0x1bc185){const _0x472c02=_0xc785de,_0x2efb87={'ZXsRn':'qun.qq.com','Esnzl':function(_0x27232a,_0xdd15cf){return _0x27232a+_0xdd15cf;},'lOQia':_0x472c02(0x114),'SXixl':function(_0x967f67,_0x4ced1f){return _0x967f67+_0x4ced1f;},'ruacb':'https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','GrYoH':'&qid=','EhaVl':_0x472c02(0x135),'dxcuo':function(_0x530ffe,_0x820ef7){return _0x530ffe!==_0x820ef7;}};let _0x1c4378=(await NTQQUserApi[_0x472c02(0x175)]([_0x2efb87['ZXsRn']]))[_0x2efb87[_0x472c02(0x170)]],_0x2141f6=await NTQQUserApi[_0x472c02(0x16e)](),_0x4cab43=_0x2efb87['Esnzl'](_0x2efb87['Esnzl'](_0x2efb87[_0x472c02(0x113)]+_0x1c4378+_0x472c02(0x136),_0x2141f6)+_0x472c02(0x14c),selfInfo[_0x472c02(0x14b)]),_0x395991=undefined;if(!_0x2141f6||!_0x1c4378)return undefined;let _0x5961ab=WebApi[_0x472c02(0x177)](_0x2141f6),_0x207248=_0x2efb87[_0x472c02(0x118)](_0x2efb87[_0x472c02(0x118)](_0x2efb87['SXixl'](_0x2efb87[_0x472c02(0x125)]+_0x5961ab,_0x2efb87[_0x472c02(0x12b)]),_0x1bc185),_0x2efb87['EhaVl']);try{_0x395991=await WebApi['httpDataJson'](_0x207248,'GET','',_0x4cab43);if(_0x2efb87[_0x472c02(0x11f)](_0x395991?.['ec'],0x0))return undefined;return _0x395991;}catch(_0xfbf74){return undefined;}return undefined;}static async[_0xc785de(0x13b)](_0x8d9750='',_0x2f7b1e='GET',_0x18fdf2='',_0x6a0c09=''){const _0x11e0ab=_0xc785de,_0x5e470c={'RPiCj':_0x11e0ab(0x120),'EUjqV':function(_0x202071,_0x40864e){return _0x202071===_0x40864e;},'qJEwh':_0x11e0ab(0x11c),'xCeXT':_0x11e0ab(0x153),'INKxo':function(_0x2b126a,_0x52c74a,_0x5a7434){return _0x2b126a(_0x52c74a,_0x5a7434);},'hmggG':function(_0x440e20,_0x1ff9e8){return _0x440e20(_0x1ff9e8);}};let _0x45e21e='';return new Promise(async(_0x41b1ca,_0x332535)=>{const _0x1d5beb=_0x11e0ab;try{let _0x4b501a=undefined;_0x2f7b1e===_0x5e470c[_0x1d5beb(0x14d)]||_0x5e470c[_0x1d5beb(0x151)](_0x2f7b1e,_0x5e470c['qJEwh'])?_0x4b501a=await fetch(_0x8d9750,{'method':_0x2f7b1e,'headers':{'Content-Type':_0x5e470c[_0x1d5beb(0x142)],'Cookie':_0x6a0c09}}):_0x4b501a=await _0x5e470c['INKxo'](fetch,_0x8d9750,{'method':_0x2f7b1e,'headers':{'Content-Type':_0x1d5beb(0x153),'Cookie':_0x6a0c09},'body':_0x18fdf2});if(_0x4b501a['ok'])_0x45e21e=await _0x4b501a[_0x1d5beb(0x167)]();else{}}catch(_0x544b24){}_0x5e470c['hmggG'](_0x41b1ca,_0x45e21e);});}static async[_0xc785de(0x162)](_0x326e98='',_0x1651e9='GET',_0x473b3e='',_0x476e9e=''){const _0x4a2a63=_0xc785de,_0x356e0a={'agjcO':function(_0x1d0587,_0x4a43f2){return _0x1d0587===_0x4a43f2;},'hUbZc':_0x4a2a63(0x120),'oawPd':_0x4a2a63(0x153),'YkJCi':function(_0xcb17b2,_0x1b66c9){return _0xcb17b2(_0x1b66c9);}};let _0x6dc820=undefined;return new Promise(async(_0x497754,_0x2db933)=>{const _0x4b7c48=_0x4a2a63;try{let _0x115c9e=undefined;_0x356e0a[_0x4b7c48(0x131)](_0x1651e9,_0x356e0a[_0x4b7c48(0x16b)])||_0x356e0a[_0x4b7c48(0x131)](_0x1651e9,_0x4b7c48(0x11c))?_0x115c9e=await fetch(_0x326e98,{'method':_0x1651e9,'headers':{'Content-Type':_0x356e0a[_0x4b7c48(0x157)],'Cookie':_0x476e9e}}):_0x115c9e=await fetch(_0x326e98,{'method':_0x1651e9,'headers':{'Content-Type':_0x4b7c48(0x153),'Cookie':_0x476e9e},'body':_0x473b3e});if(_0x115c9e['ok'])_0x6dc820=await _0x115c9e['json']();else{}}catch(_0x1b3440){}_0x356e0a[_0x4b7c48(0x171)](_0x497754,_0x6dc820);});}static[_0xc785de(0x177)](_0x350683){const _0x45c5ca=_0xc785de,_0x596cfd={'NVlPC':function(_0x5d88bd,_0x5b7626){return _0x5d88bd||_0x5b7626;},'uVIwF':function(_0x169c71,_0x471757){return _0x169c71<_0x471757;},'Klqlv':function(_0x1c40cd,_0x5a2ae1){return _0x1c40cd+_0x5a2ae1;},'FtCdr':function(_0x36af2a,_0x119671){return _0x36af2a+_0x119671;},'foJOY':function(_0x162b16,_0x4b51b5){return _0x162b16<<_0x4b51b5;},'islxj':function(_0x5ddd12,_0x2f829d){return _0x5ddd12&_0x2f829d;}};_0x350683=_0x596cfd[_0x45c5ca(0x15e)](_0x350683,'');let _0x35879c=0x1505;for(let _0xc9e247=0x0;_0x596cfd['uVIwF'](_0xc9e247,_0x350683[_0x45c5ca(0x169)]);_0xc9e247++){const _0x468549=_0x350683[_0x45c5ca(0x11d)](_0xc9e247);_0x35879c=_0x596cfd[_0x45c5ca(0x173)](_0x596cfd[_0x45c5ca(0x115)](_0x35879c,_0x596cfd[_0x45c5ca(0x111)](_0x35879c,0x5)),_0x468549);}return _0x596cfd[_0x45c5ca(0x164)](_0x35879c,0x7fffffff)[_0x45c5ca(0x10f)]();}}function _0x2e34(){const _0x1ca029=['KyTFa','cUAcn','getGroupEssenceMsg','EFsEM','KaHut','xCeXT','nWBiI','6787449AzZjii','qun.qq.com','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','CmvcN','ZaqXK','LTesV','PXHzk','uin',';\x20p_uin=o','RPiCj','yFhiL','GYiYb','getGrouptNotice','EUjqV','21706euQjqW','application/x-www-form-urlencoded','xIYqb','wWIFh','otIRw','oawPd','RjkRp','5TvIFdV','&bkn=','sybdz','mEiok','cJpQa','NVlPC','ceil','FSfQj','XcDuQ','httpDataJson','eWKuW','islxj','gRQiJ','&page_limit=20','text','mmYQb','length','&page_start=','hUbZc','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','hQMGw','getSkey','YCFad','ZXsRn','YkJCi','count','Klqlv','ScTSd','getPSkey','XuHNo','genBkn','4362388INJkgW','toString','KzHXV','foJOY','2878897JJqRGB','lOQia','p_skey=','FtCdr','dopyH','JwfsS','SXixl','2492456WmaSEG','dcNLf','75qcAOvQ','HEAD','charCodeAt','QHQIp','dxcuo','GET','push','POST','mems','&sort=1&gc=','ruacb','retcode','zizkR','HoPoH','rStvx','Ujppj','GrYoH','CNLrC','WymVT','KrPaE','mcxLX','exmaY','agjcO','setGroupNotice','7282482hBfUSp','1692844PGpzBr','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20',';\x20skey=','&group_code=','errcode','RNbol','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','httpDataText','getGroupMembers'];_0x2e34=function(){return _0x1ca029;};return _0x2e34();} \ No newline at end of file +function _0x2e23(){const _0x60b211=['httpDataText','RwikE','POST','14142wqfwGb','&page_limit=20','&qid=','eNQUc','18BYbCPG','GuOCk','okuci','errcode','text','cbjNR','eXbJv','rEBFn','uin','YRyWn','getSkey','XbSiT',';\x20skey=','qid=','eWgBM','dtFoy','DnhQi','ceil','QYonN','GET','count','p_skey=','setGroupNotice','rRhdi','&group_code=','bCJkJ','eSEmF','JDiDP','eOnEk','mMJmh','TgDQU','8153830ylaGtw','1402014ijjAdE','ZyFzY','getGroupMembers','VozXC','KadRQ','11fNSqHG','afMIG','YgJht','QUoAE','length','yyADh','&text=','HEAD','1093616aKAZlS',';\x20uin=o','RisQt','QIrQd','vzall','iIvUO','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','gCyXc','WNTiT','getPSkey','httpDataJson','&page_start=','TuKGx','tQQcm','toString','&bkn=','charCodeAt','1892832lJiamr','genBkn','getGrouptNotice','Wytyt','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','CSpxk','mems','wozYD','WuFtc','nuSiX','ZiEUW','yXbIc','getGroupEssenceMsg','1246WzIRiQ','YDanH','dnCbH','gKqkW','ohpEa','POgny','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','rPjhq','BwqGF','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','application/x-www-form-urlencoded',';\x20p_uin=o','push','json','paIMt','305520pMAEyJ','TZwvK','EeMCS','2061830BuVRlx','kpJvD','qun.qq.com','AjSkr','HgtfF','2HORUiw'];_0x2e23=function(){return _0x60b211;};return _0x2e23();}function _0x2c7b(_0x4cb365,_0x154ee0){const _0x2e23e6=_0x2e23();return _0x2c7b=function(_0x2c7b38,_0xadb781){_0x2c7b38=_0x2c7b38-0x71;let _0x1a3a59=_0x2e23e6[_0x2c7b38];return _0x1a3a59;},_0x2c7b(_0x4cb365,_0x154ee0);}const _0x479c3a=_0x2c7b;(function(_0x5e92c2,_0x54d436){const _0x12cb1b=_0x2c7b,_0x14ba99=_0x5e92c2();while(!![]){try{const _0x157702=-parseInt(_0x12cb1b(0x8d))/0x1*(-parseInt(_0x12cb1b(0xcf))/0x2)+parseInt(_0x12cb1b(0xab))/0x3+parseInt(_0x12cb1b(0xc7))/0x4+-parseInt(_0x12cb1b(0xca))/0x5+parseInt(_0x12cb1b(0xd3))/0x6*(-parseInt(_0x12cb1b(0xb8))/0x7)+-parseInt(_0x12cb1b(0x9a))/0x8*(-parseInt(_0x12cb1b(0xd7))/0x9)+parseInt(_0x12cb1b(0x8c))/0xa*(-parseInt(_0x12cb1b(0x92))/0xb);if(_0x157702===_0x54d436)break;else _0x14ba99['push'](_0x14ba99['shift']());}catch(_0x15a0a9){_0x14ba99['push'](_0x14ba99['shift']());}}}(_0x2e23,0xb38d7));import{selfInfo}from'@/core/data';import{NTQQUserApi}from'./user';export class WebApi{static async[_0x479c3a(0xb7)](_0x5487bc,_0x3f6b0e){const _0x5470c1=_0x479c3a,_0x3aa50f={'AjSkr':_0x5470c1(0xcc),'QYonN':function(_0x328a1a,_0x3c80a6){return _0x328a1a+_0x3c80a6;},'BwqGF':function(_0x563786,_0x18f016){return _0x563786+_0x18f016;},'VozXC':function(_0x4ebd3c,_0x4f4d28){return _0x4ebd3c+_0x4f4d28;},'eSEmF':_0x5470c1(0x82),'paIMt':';\x20skey=','gCyXc':function(_0x17f3e6,_0x41a6cc){return _0x17f3e6||_0x41a6cc;},'voBGu':_0x5470c1(0xbe),'QUoAE':_0x5470c1(0x85),'dtFoy':_0x5470c1(0xd4),'vbKqj':_0x5470c1(0x80),'vtphM':function(_0x2f8fc3,_0x52b434){return _0x2f8fc3!==_0x52b434;}},_0x39c551=(await NTQQUserApi[_0x5470c1(0xa3)]([_0x3aa50f[_0x5470c1(0xcd)]]))[_0x3aa50f[_0x5470c1(0xcd)]],_0x56681a=await NTQQUserApi[_0x5470c1(0x77)](),_0x379eac=_0x3aa50f['QYonN'](_0x3aa50f['QYonN'](_0x3aa50f[_0x5470c1(0x7f)](_0x3aa50f[_0x5470c1(0xc0)](_0x3aa50f['VozXC'](_0x3aa50f[_0x5470c1(0x87)],_0x39c551),_0x3aa50f[_0x5470c1(0xc6)]),_0x56681a),_0x5470c1(0xc3)),selfInfo[_0x5470c1(0x75)])+_0x5470c1(0x9b)+selfInfo[_0x5470c1(0x75)];if(_0x3aa50f[_0x5470c1(0xa1)](!_0x56681a,!_0x39c551))return undefined;const _0x4342aa=WebApi['genBkn'](_0x56681a);let _0xa0ee70=_0x3aa50f[_0x5470c1(0xc0)](_0x3aa50f[_0x5470c1(0x7f)](_0x3aa50f[_0x5470c1(0x90)](_0x3aa50f['voBGu']+_0x4342aa,_0x3aa50f[_0x5470c1(0x95)])+_0x5487bc,_0x5470c1(0xa5)),_0x3f6b0e)+_0x3aa50f[_0x5470c1(0x7c)],_0x1eb7f2=await WebApi[_0x5470c1(0xa4)](_0xa0ee70,_0x3aa50f['vbKqj'],'',_0x379eac);if(_0x3aa50f['vtphM'](_0x1eb7f2['retcode'],0x0))return undefined;return _0x1eb7f2;}static async[_0x479c3a(0x8f)](_0x2445e8){const _0x24f1a2=_0x479c3a,_0x24b3ab={'KadRQ':'qun.qq.com','QIrQd':function(_0x5c1d7d,_0x588499){return _0x5c1d7d+_0x588499;},'okuci':function(_0x50ff35,_0x1bcf52){return _0x50ff35+_0x1bcf52;},'EeMCS':_0x24f1a2(0x79),'DnhQi':_0x24f1a2(0xc3),'YgJht':function(_0x3f924d,_0x489545){return _0x3f924d||_0x489545;},'dnCbH':function(_0x27e3b3,_0x10181f){return _0x27e3b3+_0x10181f;},'YDanH':_0x24f1a2(0xaf),'iIvUO':_0x24f1a2(0xd2),'ZiEUW':function(_0x3693e2,_0xc1ec4b){return _0x3693e2<=_0xc1ec4b;},'RwikE':function(_0x8c6d8a,_0xfa441e){return _0x8c6d8a+_0xfa441e;},'cbjNR':function(_0x2dc86b,_0x4dd915){return _0x2dc86b+_0x4dd915;},'taajF':'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','qPHQu':function(_0x37b5f2,_0x394c37){return _0x37b5f2*_0x394c37;},'yXbIc':function(_0x59b300,_0x22e36d){return _0x59b300*_0x22e36d;},'XbSiT':'&sort=1&gc=','yyADh':'&bkn=','oKBiF':function(_0xbcd5c7,_0x178d8c){return _0xbcd5c7!==_0x178d8c;}},_0x357b28=(await NTQQUserApi[_0x24f1a2(0xa3)]([_0x24f1a2(0xcc)]))[_0x24b3ab[_0x24f1a2(0x91)]],_0x6d1386=await NTQQUserApi['getSkey'](),_0x21dccf=_0x24b3ab[_0x24f1a2(0x9d)](_0x24b3ab[_0x24f1a2(0x9d)](_0x24b3ab['okuci'](_0x24b3ab[_0x24f1a2(0xd9)](_0x24f1a2(0x82),_0x357b28),_0x24b3ab[_0x24f1a2(0xc9)])+_0x6d1386,_0x24b3ab[_0x24f1a2(0x7d)]),selfInfo[_0x24f1a2(0x75)]),_0x5d92ec=new Array();if(_0x24b3ab[_0x24f1a2(0x94)](!_0x6d1386,!_0x357b28))return _0x5d92ec;const _0x585003=WebApi[_0x24f1a2(0xac)](_0x6d1386);let _0x102ab5=[],_0x42fbaa=await WebApi['httpDataJson'](_0x24b3ab[_0x24f1a2(0xba)](_0x24b3ab[_0x24f1a2(0x9d)](_0x24b3ab[_0x24f1a2(0xb9)],_0x2445e8),_0x24f1a2(0xa9))+_0x585003,_0x24b3ab[_0x24f1a2(0x9f)],'',_0x21dccf);if(!_0x42fbaa?.[_0x24f1a2(0x81)]||_0x42fbaa?.['errcode']!==0x0||!_0x42fbaa?.[_0x24f1a2(0xb1)])return[];else for(let _0x23c14d in _0x42fbaa[_0x24f1a2(0xb1)]){_0x5d92ec[_0x24f1a2(0xc4)](_0x42fbaa[_0x24f1a2(0xb1)][_0x23c14d]);}let _0x46838a=Math[_0x24f1a2(0x7e)](_0x42fbaa[_0x24f1a2(0x81)]/0x28);for(let _0x318ec5=0x2;_0x24b3ab[_0x24f1a2(0xb5)](_0x318ec5,_0x46838a);_0x318ec5++){let _0x1387a3=WebApi[_0x24f1a2(0xa4)](_0x24b3ab[_0x24f1a2(0xd1)](_0x24b3ab['cbjNR'](_0x24b3ab[_0x24f1a2(0xba)](_0x24b3ab[_0x24f1a2(0xd1)](_0x24b3ab[_0x24f1a2(0x72)](_0x24b3ab['taajF']+_0x24b3ab['qPHQu'](_0x318ec5-0x1,0x28),'&end='),_0x24b3ab[_0x24f1a2(0xb6)](_0x318ec5,0x28)),_0x24b3ab[_0x24f1a2(0x78)]),_0x2445e8)+_0x24b3ab[_0x24f1a2(0x97)],_0x585003),'POST','',_0x21dccf);_0x102ab5[_0x24f1a2(0xc4)](_0x1387a3);}for(let _0x23b1ff=0x1;_0x24b3ab[_0x24f1a2(0xb5)](_0x23b1ff,_0x46838a);_0x23b1ff++){let _0xce579a=await _0x102ab5[_0x23b1ff];if(!_0xce579a?.['count']||_0x24b3ab['oKBiF'](_0xce579a?.[_0x24f1a2(0xda)],0x0)||!_0xce579a?.['mems'])continue;for(let _0x5d84cc in _0xce579a['mems']){_0x5d92ec['push'](_0xce579a[_0x24f1a2(0xb1)][_0x5d84cc]);}}return _0x5d92ec;}static async[_0x479c3a(0x83)](_0x1a9507,_0x388da9=''){const _0x477591=_0x479c3a,_0x4b3de5={'eXbJv':_0x477591(0xcc),'rPjhq':function(_0x450aec,_0x4ca2a0){return _0x450aec+_0x4ca2a0;},'rEBFn':function(_0x6dbddf,_0x5cdf90){return _0x6dbddf+_0x5cdf90;},'nuSiX':function(_0x57897e,_0x4db4e3){return _0x57897e+_0x4db4e3;},'GuOCk':function(_0x589811,_0x432772){return _0x589811+_0x432772;},'tQQcm':';\x20skey=','gKqkW':_0x477591(0xc3),'BbAoL':function(_0x243c39,_0x22f1d8){return _0x243c39||_0x22f1d8;},'JDiDP':function(_0x16c7e1,_0x4bbbfd){return _0x16c7e1+_0x4bbbfd;},'EOvCH':function(_0x26fa1f,_0x1f5700){return _0x26fa1f+_0x1f5700;},'eWgBM':_0x477591(0x98),'BHQOK':'&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','AJpvq':_0x477591(0xa0)};let _0x232fc2=(await NTQQUserApi['getPSkey']([_0x477591(0xcc)]))[_0x4b3de5[_0x477591(0x73)]],_0x493629=await NTQQUserApi['getSkey'](),_0x30bb63=_0x4b3de5[_0x477591(0xbf)](_0x4b3de5[_0x477591(0x74)](_0x4b3de5[_0x477591(0xb4)](_0x4b3de5[_0x477591(0xd8)](_0x477591(0x82),_0x232fc2),_0x4b3de5[_0x477591(0xa7)]),_0x493629)+_0x4b3de5[_0x477591(0xbb)],selfInfo[_0x477591(0x75)]),_0x356f17=undefined;if(_0x4b3de5['BbAoL'](!_0x493629,!_0x232fc2))return undefined;let _0x2143e6=WebApi[_0x477591(0xac)](_0x493629),_0xf344b1=_0x4b3de5[_0x477591(0x88)](_0x4b3de5['rEBFn'](_0x4b3de5['EOvCH'](_0x477591(0x7a)+_0x1a9507,_0x477591(0xa9)),_0x2143e6)+_0x4b3de5[_0x477591(0x7b)]+_0x388da9,_0x4b3de5['BHQOK']),_0x44fe8e=_0x4b3de5[_0x477591(0x88)](_0x4b3de5['AJpvq'],_0x2143e6);try{return _0x356f17=await WebApi[_0x477591(0xa4)](_0x44fe8e,_0x477591(0x80),'',_0x30bb63),_0x356f17;}catch(_0x3d3b3e){return undefined;}return undefined;}static async[_0x479c3a(0xad)](_0x5863ea){const _0x7d8a02=_0x479c3a,_0x237668={'CSpxk':_0x7d8a02(0xcc),'RisQt':function(_0x3fc301,_0x50e15f){return _0x3fc301+_0x50e15f;},'POgny':function(_0x1ce3ad,_0x689179){return _0x1ce3ad+_0x689179;},'YRyWn':'p_skey=','eOnEk':_0x7d8a02(0x79),'eNQUc':function(_0x58ea66,_0x2b26f7){return _0x58ea66||_0x2b26f7;},'wozYD':function(_0x36f64e,_0x21708d){return _0x36f64e+_0x21708d;},'TgDQU':function(_0x2e77e8,_0x520a1e){return _0x2e77e8+_0x520a1e;},'Wytyt':'https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','TZwvK':_0x7d8a02(0xd5),'ZyFzY':_0x7d8a02(0xc1),'rRhdi':_0x7d8a02(0x80),'ohpEa':function(_0x30a2c4,_0xf646f3){return _0x30a2c4!==_0xf646f3;}};let _0x2d1304=(await NTQQUserApi['getPSkey']([_0x237668[_0x7d8a02(0xb0)]]))[_0x237668[_0x7d8a02(0xb0)]],_0x2598c3=await NTQQUserApi[_0x7d8a02(0x77)](),_0x4e945d=_0x237668[_0x7d8a02(0x9c)](_0x237668['RisQt'](_0x237668[_0x7d8a02(0xbd)](_0x237668[_0x7d8a02(0xbd)](_0x237668[_0x7d8a02(0x76)],_0x2d1304)+_0x237668[_0x7d8a02(0x89)],_0x2598c3),_0x7d8a02(0xc3)),selfInfo[_0x7d8a02(0x75)]),_0x3d0aa8=undefined;if(_0x237668[_0x7d8a02(0xd6)](!_0x2598c3,!_0x2d1304))return undefined;let _0xc020f8=WebApi['genBkn'](_0x2598c3),_0x3a105d=_0x237668[_0x7d8a02(0xb2)](_0x237668[_0x7d8a02(0x8b)](_0x237668[_0x7d8a02(0xae)],_0xc020f8),_0x237668[_0x7d8a02(0xc8)])+_0x5863ea+_0x237668[_0x7d8a02(0x8e)];try{_0x3d0aa8=await WebApi[_0x7d8a02(0xa4)](_0x3a105d,_0x237668[_0x7d8a02(0x84)],'',_0x4e945d);if(_0x237668[_0x7d8a02(0xbc)](_0x3d0aa8?.['ec'],0x0))return undefined;return _0x3d0aa8;}catch(_0x5c9bda){return undefined;}return undefined;}static async[_0x479c3a(0xd0)](_0x1c2885='',_0x261007='GET',_0x40a361='',_0x385c33=''){const _0x2072fc=_0x479c3a,_0x1fe31d={'WuFtc':function(_0x2a8b7d,_0x54dcfa){return _0x2a8b7d===_0x54dcfa;},'vzall':_0x2072fc(0x80),'cTfoQ':_0x2072fc(0x99),'afMIG':function(_0x28a7d9,_0x576c2c,_0x22fd63){return _0x28a7d9(_0x576c2c,_0x22fd63);},'TuKGx':_0x2072fc(0xc2),'pztAE':function(_0x3d4cea,_0x134bbd){return _0x3d4cea(_0x134bbd);}};let _0x5a3ecc='';return new Promise(async(_0x2ace4f,_0x5a2125)=>{const _0x34873f=_0x2072fc;try{let _0x10fc99=undefined;_0x1fe31d[_0x34873f(0xb3)](_0x261007,_0x1fe31d[_0x34873f(0x9e)])||_0x261007===_0x1fe31d['cTfoQ']?_0x10fc99=await fetch(_0x1c2885,{'method':_0x261007,'headers':{'Content-Type':_0x34873f(0xc2),'Cookie':_0x385c33}}):_0x10fc99=await _0x1fe31d[_0x34873f(0x93)](fetch,_0x1c2885,{'method':_0x261007,'headers':{'Content-Type':_0x1fe31d[_0x34873f(0xa6)],'Cookie':_0x385c33},'body':_0x40a361});if(_0x10fc99['ok'])_0x5a3ecc=await _0x10fc99[_0x34873f(0x71)]();else{}}catch(_0x5d3e25){}_0x1fe31d['pztAE'](_0x2ace4f,_0x5a3ecc);});}static async[_0x479c3a(0xa4)](_0x170b47='',_0x185848='GET',_0x1bdbbb='',_0x16d7c8=''){const _0x67383b={'bCJkJ':function(_0x3bd945,_0x3bea7f){return _0x3bd945===_0x3bea7f;},'mYfXm':function(_0x458f94,_0x4740fd,_0x148e5f){return _0x458f94(_0x4740fd,_0x148e5f);},'kpJvD':'application/x-www-form-urlencoded','mMJmh':function(_0xea214a,_0x139549){return _0xea214a(_0x139549);}};let _0x38ef03=undefined;return new Promise(async(_0x53964b,_0x24e54c)=>{const _0xa4b88d=_0x2c7b;try{let _0x56a0d4=undefined;_0x67383b[_0xa4b88d(0x86)](_0x185848,_0xa4b88d(0x80))||_0x67383b[_0xa4b88d(0x86)](_0x185848,'HEAD')?_0x56a0d4=await fetch(_0x170b47,{'method':_0x185848,'headers':{'Content-Type':_0xa4b88d(0xc2),'Cookie':_0x16d7c8}}):_0x56a0d4=await _0x67383b['mYfXm'](fetch,_0x170b47,{'method':_0x185848,'headers':{'Content-Type':_0x67383b[_0xa4b88d(0xcb)],'Cookie':_0x16d7c8},'body':_0x1bdbbb});if(_0x56a0d4['ok'])_0x38ef03=await _0x56a0d4[_0xa4b88d(0xc5)]();else{}}catch(_0x53cd38){}_0x67383b[_0xa4b88d(0x8a)](_0x53964b,_0x38ef03);});}static[_0x479c3a(0xac)](_0x1a8034){const _0x213eb3=_0x479c3a,_0x49a923={'WNTiT':function(_0x10f768,_0x15a820){return _0x10f768||_0x15a820;},'HgtfF':function(_0x5d6c6c,_0x525781){return _0x5d6c6c<_0x525781;},'vfxkg':function(_0x4464d0,_0x204baa){return _0x4464d0+_0x204baa;}};_0x1a8034=_0x49a923[_0x213eb3(0xa2)](_0x1a8034,'');let _0x33bd99=0x1505;for(let _0x378548=0x0;_0x49a923[_0x213eb3(0xce)](_0x378548,_0x1a8034[_0x213eb3(0x96)]);_0x378548++){const _0x4fca8e=_0x1a8034[_0x213eb3(0xaa)](_0x378548);_0x33bd99=_0x49a923['vfxkg'](_0x33bd99,_0x33bd99<<0x5)+_0x4fca8e;}return(_0x33bd99&0x7fffffff)[_0x213eb3(0xa8)]();}} \ No newline at end of file diff --git a/src/core.lib/src/apis/window.js b/src/core.lib/src/apis/window.js index e9e27365..b7e57e51 100644 --- a/src/core.lib/src/apis/window.js +++ b/src/core.lib/src/apis/window.js @@ -1 +1 @@ -var _0x29772f=_0x518d;function _0x518d(_0xff759d,_0x3ccf15){var _0x39775a=_0x3977();return _0x518d=function(_0x518d48,_0xa84b9b){_0x518d48=_0x518d48-0x1c5;var _0xff57d=_0x39775a[_0x518d48];return _0xff57d;},_0x518d(_0xff759d,_0x3ccf15);}(function(_0xcf76d8,_0x28dd05){var _0x59af77=_0x518d,_0x509296=_0xcf76d8();while(!![]){try{var _0x5de1b1=-parseInt(_0x59af77(0x1cb))/0x1+parseInt(_0x59af77(0x1cd))/0x2+parseInt(_0x59af77(0x1d2))/0x3+parseInt(_0x59af77(0x1d1))/0x4+parseInt(_0x59af77(0x1ca))/0x5*(parseInt(_0x59af77(0x1c9))/0x6)+-parseInt(_0x59af77(0x1d0))/0x7+parseInt(_0x59af77(0x1c8))/0x8*(parseInt(_0x59af77(0x1cc))/0x9);if(_0x5de1b1===_0x28dd05)break;else _0x509296['push'](_0x509296['shift']());}catch(_0x5cbee5){_0x509296['push'](_0x509296['shift']());}}}(_0x3977,0x72377));function _0x3977(){var _0x17d690=['702UPMOpA','3955QSBcMD','210066xBzhCx','302679gOofau','259068vxmIDj','GroupNotifyFilterWindow','#/group-notify-filter','4549972jjYsDH','409592unsVOZ','1093275pghbSO','GroupEssenceWindow','GroupHomeWorkWindow','#/group-home-work','152LifwQv'];_0x3977=function(){return _0x17d690;};return _0x3977();}export class NTQQWindows{static ['GroupHomeWorkWindow']={'windowName':_0x29772f(0x1c6),'windowUrlHash':_0x29772f(0x1c7)};static [_0x29772f(0x1ce)]={'windowName':_0x29772f(0x1ce),'windowUrlHash':_0x29772f(0x1cf)};static [_0x29772f(0x1c5)]={'windowName':_0x29772f(0x1c5),'windowUrlHash':'#/group-essence'};}export class NTQQWindowApi{} \ No newline at end of file +var _0x3a785e=_0xec23;(function(_0x53bd7f,_0x3de617){var _0x480673=_0xec23,_0x11a8c9=_0x53bd7f();while(!![]){try{var _0x2d1d65=parseInt(_0x480673(0x16e))/0x1*(parseInt(_0x480673(0x158))/0x2)+-parseInt(_0x480673(0x179))/0x3*(parseInt(_0x480673(0x189))/0x4)+parseInt(_0x480673(0x17c))/0x5+-parseInt(_0x480673(0x17d))/0x6+parseInt(_0x480673(0x16d))/0x7*(-parseInt(_0x480673(0x175))/0x8)+parseInt(_0x480673(0x182))/0x9+parseInt(_0x480673(0x15a))/0xa;if(_0x2d1d65===_0x3de617)break;else _0x11a8c9['push'](_0x11a8c9['shift']());}catch(_0x5c5e35){_0x11a8c9['push'](_0x11a8c9['shift']());}}}(_0x586f,0xea3cf));var _0x46abb0=_0x502b;(function(_0x55f2a6,_0x4587ab){var _0x5c90f7=_0xec23,_0x3c8c11={'mXiyC':function(_0x5cb12a){return _0x5cb12a();},'ZqqJp':function(_0x1b7ecf,_0x59f6d4){return _0x1b7ecf+_0x59f6d4;},'mOPTs':function(_0x29ff5e,_0x6f8f3){return _0x29ff5e+_0x6f8f3;},'PpXJM':function(_0x2e7213,_0x1b45c4){return _0x2e7213+_0x1b45c4;},'cyvNM':function(_0x2ce965,_0x16deb9){return _0x2ce965/_0x16deb9;},'SeOqC':function(_0x2e9c89,_0x4209c0){return _0x2e9c89*_0x4209c0;},'hxffF':function(_0x6638cd,_0xcc9e7b){return _0x6638cd(_0xcc9e7b);},'LbAlE':function(_0x4179be,_0x29eee0){return _0x4179be(_0x29eee0);},'IYuxk':function(_0x4d591f,_0xa314ec){return _0x4d591f/_0xa314ec;},'Jmegu':function(_0x5cda03,_0x27182b){return _0x5cda03(_0x27182b);},'sZaNj':function(_0x34e71d,_0x5e07ce){return _0x34e71d(_0x5e07ce);},'hfTtG':function(_0x5295b2,_0x319c05){return _0x5295b2/_0x319c05;},'MFICa':function(_0x1179cf,_0x3de7d3){return _0x1179cf/_0x3de7d3;},'EzcmA':function(_0xa329d8,_0x2f7046){return _0xa329d8/_0x2f7046;},'aEQhs':function(_0x53880a,_0x3c3617){return _0x53880a(_0x3c3617);},'TJpiV':function(_0x171f21,_0x178254){return _0x171f21(_0x178254);},'Keian':function(_0x52e94d,_0x4464be){return _0x52e94d/_0x4464be;},'YEPFS':function(_0x65993d,_0x59a87c){return _0x65993d===_0x59a87c;},'GzgAE':_0x5c90f7(0x172)},_0xcc5c94=_0x502b,_0x26a9de=_0x3c8c11[_0x5c90f7(0x170)](_0x55f2a6);while(!![]){try{var _0x42fbfb=_0x3c8c11[_0x5c90f7(0x153)](_0x3c8c11[_0x5c90f7(0x153)](_0x3c8c11[_0x5c90f7(0x153)](_0x3c8c11[_0x5c90f7(0x153)](_0x3c8c11[_0x5c90f7(0x164)](_0x3c8c11[_0x5c90f7(0x152)](_0x3c8c11[_0x5c90f7(0x185)](parseInt(_0xcc5c94(0x81)),0x1),_0x3c8c11[_0x5c90f7(0x16a)](_0x3c8c11[_0x5c90f7(0x185)](-_0x3c8c11[_0x5c90f7(0x156)](parseInt,_0x3c8c11[_0x5c90f7(0x162)](_0xcc5c94,0x75)),0x2),_0x3c8c11['IYuxk'](_0x3c8c11[_0x5c90f7(0x17f)](parseInt,_0x3c8c11['sZaNj'](_0xcc5c94,0x83)),0x3))),_0x3c8c11[_0x5c90f7(0x157)](-_0x3c8c11[_0x5c90f7(0x17f)](parseInt,_0xcc5c94(0x80)),0x4)),_0x3c8c11[_0x5c90f7(0x157)](-_0x3c8c11[_0x5c90f7(0x156)](parseInt,_0xcc5c94(0x78)),0x5)),_0x3c8c11[_0x5c90f7(0x16a)](_0x3c8c11[_0x5c90f7(0x185)](-_0x3c8c11[_0x5c90f7(0x169)](parseInt,_0xcc5c94(0x7d)),0x6),_0x3c8c11[_0x5c90f7(0x15c)](_0x3c8c11[_0x5c90f7(0x169)](parseInt,_0xcc5c94(0x79)),0x7))),_0x3c8c11[_0x5c90f7(0x15b)](_0x3c8c11['aEQhs'](parseInt,_0x3c8c11['TJpiV'](_0xcc5c94,0x7e)),0x8)),_0x3c8c11[_0x5c90f7(0x16a)](_0x3c8c11[_0x5c90f7(0x157)](_0x3c8c11[_0x5c90f7(0x169)](parseInt,_0x3c8c11[_0x5c90f7(0x162)](_0xcc5c94,0x77)),0x9),_0x3c8c11[_0x5c90f7(0x154)](parseInt(_0x3c8c11[_0x5c90f7(0x169)](_0xcc5c94,0x7f)),0xa)));if(_0x3c8c11[_0x5c90f7(0x174)](_0x42fbfb,_0x4587ab))break;else _0x26a9de['push'](_0x26a9de[_0x3c8c11[_0x5c90f7(0x163)]]());}catch(_0x24eedf){_0x26a9de[_0x5c90f7(0x161)](_0x26a9de[_0x3c8c11[_0x5c90f7(0x163)]]());}}}(_0x207e,0x874c8));function _0xec23(_0x58949c,_0x48fbce){var _0x586f7a=_0x586f();return _0xec23=function(_0xec2383,_0x4910f0){_0xec2383=_0xec2383-0x151;var _0x14f30d=_0x586f7a[_0xec2383];return _0x14f30d;},_0xec23(_0x58949c,_0x48fbce);}export class NTQQWindows{static ['GroupHomeWorkWindow']={'windowName':_0x3a785e(0x16b),'windowUrlHash':_0x46abb0(0x7c)};static [_0x46abb0(0x7a)]={'windowName':_0x3a785e(0x151),'windowUrlHash':_0x46abb0(0x7b)};static [_0x3a785e(0x15d)]={'windowName':_0x46abb0(0x82),'windowUrlHash':_0x46abb0(0x76)};}function _0x502b(_0x17907a,_0x411202){var _0x3f5ccb=_0x3a785e,_0x1d9a31={'pleDE':function(_0x253b20,_0x642edf){return _0x253b20-_0x642edf;},'LVkOQ':function(_0x18a78e){return _0x18a78e();},'ccOWO':function(_0xdaa286,_0x26b1d3,_0x565f5a){return _0xdaa286(_0x26b1d3,_0x565f5a);}},_0x3c24e1=_0x1d9a31[_0x3f5ccb(0x159)](_0x207e);return _0x502b=function(_0x3fbbbe,_0x9ae2d8){var _0x5e6763=_0x3f5ccb;_0x3fbbbe=_0x1d9a31[_0x5e6763(0x16f)](_0x3fbbbe,0x75);var _0xbfe52e=_0x3c24e1[_0x3fbbbe];return _0xbfe52e;},_0x1d9a31[_0x3f5ccb(0x166)](_0x502b,_0x17907a,_0x411202);}function _0x207e(){var _0x5dabdf=_0x3a785e,_0x19c767={'MPTxb':_0x5dabdf(0x15e),'ZTlLy':_0x5dabdf(0x151),'IrfeH':_0x5dabdf(0x165),'Holzq':_0x5dabdf(0x181),'IQGEr':'320934RniygA','mxtdv':_0x5dabdf(0x176),'eLOWw':'190OnGUBS','azVsE':_0x5dabdf(0x160),'oGjTG':_0x5dabdf(0x15f),'gwDkl':'196743kqmlyE','fxhLN':_0x5dabdf(0x173),'JcCwE':_0x5dabdf(0x186),'dujNL':_0x5dabdf(0x16c),'YHpRR':_0x5dabdf(0x155),'EJPnl':function(_0x1a795a){return _0x1a795a();}},_0x34938c=[_0x19c767[_0x5dabdf(0x178)],_0x19c767[_0x5dabdf(0x167)],_0x19c767[_0x5dabdf(0x17b)],_0x19c767[_0x5dabdf(0x188)],_0x19c767[_0x5dabdf(0x17e)],_0x19c767[_0x5dabdf(0x184)],_0x19c767[_0x5dabdf(0x171)],_0x19c767['azVsE'],_0x19c767[_0x5dabdf(0x168)],_0x5dabdf(0x15d),_0x19c767[_0x5dabdf(0x187)],_0x19c767[_0x5dabdf(0x177)],_0x19c767[_0x5dabdf(0x17a)],_0x19c767[_0x5dabdf(0x180)],_0x19c767[_0x5dabdf(0x18a)]];return _0x207e=function(){return _0x34938c;},_0x19c767[_0x5dabdf(0x183)](_0x207e);}function _0x586f(){var _0x3b48b9=['8972094BmtwkU','IQGEr','Jmegu','dujNL','#/group-home-work','14559759FVoksr','EJPnl','mxtdv','cyvNM','#/group-essence','gwDkl','Holzq','28xJooIp','YHpRR','GroupNotifyFilterWindow','PpXJM','ZqqJp','Keian','1141470dQduNl','hxffF','hfTtG','2374XXeqxQ','LVkOQ','8096280sGCCwn','EzcmA','MFICa','GroupEssenceWindow','77HOBIWb','318629hCyoUw','1245952qwucxb','push','LbAlE','GzgAE','mOPTs','#/group-notify-filter','ccOWO','ZTlLy','oGjTG','sZaNj','SeOqC','GroupHomeWorkWindow','675999ZZagbh','119fdcbbS','1138vCgEGK','pleDE','mXiyC','eLOWw','shift','28eFvzGQ','YEPFS','107704XPvske','6837928tHkGlb','fxhLN','MPTxb','752901PueHfK','JcCwE','IrfeH','3311215pDPMVa'];_0x586f=function(){return _0x3b48b9;};return _0x586f();}export class NTQQWindowApi{} \ No newline at end of file diff --git a/src/core.lib/src/core.js b/src/core.lib/src/core.js index 53062fcf..f468df07 100644 --- a/src/core.lib/src/core.js +++ b/src/core.lib/src/core.js @@ -1 +1 @@ -function _0x1fdc(_0x47742e,_0x59eb4a){const _0x26e234=_0x26e2();return _0x1fdc=function(_0x1fdcec,_0x326a44){_0x1fdcec=_0x1fdcec-0x1b3;let _0x16c243=_0x26e234[_0x1fdcec];return _0x16c243;},_0x1fdc(_0x47742e,_0x59eb4a);}const _0x3cedf5=_0x1fdc;(function(_0x364f7c,_0x391b5b){const _0x2f5623=_0x1fdc,_0x49789e=_0x364f7c();while(!![]){try{const _0x217d7a=-parseInt(_0x2f5623(0x1cb))/0x1*(-parseInt(_0x2f5623(0x1d1))/0x2)+-parseInt(_0x2f5623(0x1d3))/0x3*(-parseInt(_0x2f5623(0x23b))/0x4)+parseInt(_0x2f5623(0x1ec))/0x5+-parseInt(_0x2f5623(0x23d))/0x6+-parseInt(_0x2f5623(0x202))/0x7+-parseInt(_0x2f5623(0x1bf))/0x8*(parseInt(_0x2f5623(0x1f3))/0x9)+parseInt(_0x2f5623(0x234))/0xa;if(_0x217d7a===_0x391b5b)break;else _0x49789e['push'](_0x49789e['shift']());}catch(_0x34029e){_0x49789e['push'](_0x49789e['shift']());}}}(_0x26e2,0xd808a));import _0x456cfe from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x330b58 from'node:path';import _0x1491bc from'node:os';function _0x26e2(){const _0x4c70ba=['assign','msgId','fileLogLevel','loginErrorInfo','NodeIKernelLoginService','forEach','updateMsg','engine','\x20has\x20no\x20method\x20','split','启动失败:\x20','curVersion','onQRCodeGetPicture','onSessionInitComplete','登录失败','groupCode','MsgListener','addKernelBuddyListener','pngBase64QrcodeData','createMemberListScene','getLoginList','3516220MFzMJj','getQRCodePicture','PNoRr','快速登录不可用','onMsgInfoListUpdate','onMemberListChange','hSXxF','2718IhhlHf','sceneId','DzgXK','KRQeN','dataPath','nUzjT','addKernelMsgListener','initSession','getBuddyList','QlYZh','startNT','proxyHandler','NodeIQQNTWrapperEngine','mkdirSync','onLoginSuccess','9021453VRaQiF','loginService','getProfileService','groupMemberList_MainWindow','base64','qHaGc','快速登录失败\x20','NodeIKernelGroupListener','initDataListener','gjIUx','result','yZPzJ','quickLogin','fiCYn','onLoginSuccessFuncList','getGroupService','aBXPF','-v2.db','find','eTZYm','set','init','tWdrQ','onGroupListUpdate','addKernelLoginListener','read','passwordLogin','gBWPa','uid','ZmgAA','140022008','errMsg','addListener','map','hex','jTjcC','buddyList','getMsgService','sdJja','digest','onBuddyListChange','constructor','onQRCodeSessionFailed','uin','infos','NxmRh','./NapCat/data','onLoginState','md5','uwDng','11076560yLQxrA','consoleLog','onMemberInfoChange','initSession\x20failed','hvOjc','addKernelGroupListener','catch','30756vMdllp','XxuXA','5428020kBOYCX','loginListener','getBuddyService','LocalLoginInfoList','leBiW','NodeIKernelProfileListener','XivYB','nPceC','stringify','dataPathGlobal','data:image/png;base64,','jHFKQ','resolve','NodeIKernelMsgListener','addKernelProfileListener','./nt_qq/global','DOWvQ','omNYc','获取二维码登录超时','update','NodeIQQNTWrapperSession','push','recallTime','msrmG','NodeIKernelLoginListener','qrLogin','BuddyListener','NodeIDispatcherAdapter','session','then','initConfig','384COJEIl','qrcodeUrl','getNTUserDataInfoConfig','ProfileListener','数据库初始化失败','consoleLogLevel','onQRCodeLoginSucceed','getNextMemberList','VyLRd','get','frkNF','GroupListener','2476HYQMgB','util','没有可快速登录的QQ号','dmwvi','from','hiQML','992buJJkf','name','21DGGcpB','NodeIDependsAdapter','NodeIKernelBuddyListener','addMsg'];_0x26e2=function(){return _0x4c70ba;};return _0x26e2();}import _0x45228e 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';import{sleep}from'@/common/utils/helper';import _0x30ccd8 from'node:crypto';import{friends,groupMembers,groups,selfInfo,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{[_0x3cedf5(0x1bc)];['util'];[_0x3cedf5(0x1de)];['loginService'];['loginListener'];[_0x3cedf5(0x210)]=[];[_0x3cedf5(0x1fe)]={'get'(target,prop,receiver){const GDcZTs={'dmwvi':function(callee,param1){return callee(param1);},'MJjbU':function(x,y){return x===y;}};if(GDcZTs['MJjbU'](typeof target[prop],'undefined'))return(...args)=>{const _0x4d2a38=_0x1fdc;GDcZTs[_0x4d2a38(0x1ce)](logDebug,target[_0x4d2a38(0x22b)][_0x4d2a38(0x1d2)]+_0x4d2a38(0x1df)+prop);};return Reflect['get'](target,prop,receiver);}};constructor(){const _0x444d6e=_0x3cedf5,_0x4b8c80={'eTZYm':function(_0x1ea04c,_0x3b4826){return _0x1ea04c==_0x3b4826;},'BmzPs':function(_0x52ea4a,_0x46a4c5){return _0x52ea4a(_0x46a4c5);},'KRQeN':function(_0x1965fb,_0x3647c9,_0x5491c1){return _0x1965fb(_0x3647c9,_0x5491c1);},'wBRIt':function(_0x7a8b4c,_0x4a3221,_0x346179){return _0x7a8b4c(_0x4a3221,_0x346179);},'sdJja':_0x444d6e(0x230),'QlYZh':function(_0x5c04f6,_0x892b48,_0xde9552){return _0x5c04f6(_0x892b48,_0xde9552);},'MDWgk':'本账号数据/缓存目录:','BBIoM':function(_0x28d413,_0x2037d6){return _0x28d413 instanceof _0x2037d6;},'tIflP':_0x444d6e(0x1e5),'SWIOv':function(_0x2ddf88,_0x1b55e2,_0x1eda27){return _0x2ddf88(_0x1b55e2,_0x1eda27);}};this[_0x444d6e(0x1de)]=new _0x456cfe[(_0x444d6e(0x1ff))](),this[_0x444d6e(0x1cc)]=new _0x456cfe['NodeQQNTWrapperUtil'](),this['loginService']=new _0x456cfe[(_0x444d6e(0x1db))](),this[_0x444d6e(0x1bc)]=new _0x456cfe[(_0x444d6e(0x1b4))](),this['loginListener']=new LoginListener(),this[_0x444d6e(0x23e)][_0x444d6e(0x231)]=_0x4e25c7=>{const _0x2bc639=_0x444d6e;_0x4b8c80[_0x2bc639(0x215)](_0x4e25c7,0x3)&&_0x4b8c80['BmzPs'](logError,'当前账号已登录,无法重复登录');},this[_0x444d6e(0x23e)][_0x444d6e(0x1c5)]=_0x5b1696=>{const _0x2ed741=_0x444d6e,_0x3cae58={'gBWPa':function(_0x4994ba,_0x96e8f0){return _0x4b8c80['BBIoM'](_0x4994ba,_0x96e8f0);}};this[_0x2ed741(0x1fa)](_0x5b1696[_0x2ed741(0x22d)],_0x5b1696[_0x2ed741(0x21e)])[_0x2ed741(0x1bd)](_0x1aab5a=>{const _0x32015e=_0x2ed741,_0xf522c3={'gjIUx':function(_0x15bdfc,_0xec9b6c,_0x5757b8){const _0x3c88da=_0x1fdc;return _0x4b8c80[_0x3c88da(0x1f6)](_0x15bdfc,_0xec9b6c,_0x5757b8);},'jTjcC':_0x32015e(0x1c3)};selfInfo['uin']=_0x5b1696[_0x32015e(0x22d)],selfInfo[_0x32015e(0x21e)]=_0x5b1696[_0x32015e(0x21e)],napCatConfig[_0x32015e(0x21b)](),_0x4b8c80['wBRIt'](setLogLevel,napCatConfig[_0x32015e(0x1d9)],napCatConfig[_0x32015e(0x1c4)]),enableFileLog(napCatConfig['fileLog']),enableConsoleLog(napCatConfig[_0x32015e(0x235)]),setLogSelfInfo(selfInfo);const _0x267fb4=_0x330b58[_0x32015e(0x249)](this[_0x32015e(0x1f7)],_0x4b8c80[_0x32015e(0x228)]);_0x45228e[_0x32015e(0x200)](_0x267fb4,{'recursive':!![]}),_0x4b8c80[_0x32015e(0x1fc)](logDebug,_0x4b8c80['MDWgk'],_0x267fb4),dbUtil['init'](_0x330b58[_0x32015e(0x249)](_0x267fb4,'./'+_0x5b1696[_0x32015e(0x22d)]+_0x32015e(0x213)))[_0x32015e(0x1bd)](()=>{const _0x515fe2=_0x32015e,_0xe0f7ac={'hIFhk':function(_0x23e1b7,_0x3d200f){const _0x50133e=_0x1fdc;return _0x3cae58[_0x50133e(0x21d)](_0x23e1b7,_0x3d200f);}};this['initDataListener'](),this[_0x515fe2(0x210)]['map'](_0x3e76af=>{const _0x3e1204=_0x515fe2,_0x23a4a7={'msrmG':function(_0xe91eb9,_0x5164e0,_0xad261){return _0xe91eb9(_0x5164e0,_0xad261);},'yZPzJ':function(_0x1ca055,_0x36a23c){return _0xe0f7ac['hIFhk'](_0x1ca055,_0x36a23c);}};new Promise((_0x56d035,_0x244426)=>{const _0x4601c7=_0x1fdc,_0x378bab=_0x23a4a7[_0x4601c7(0x1b7)](_0x3e76af,_0x5b1696[_0x4601c7(0x22d)],_0x5b1696[_0x4601c7(0x21e)]);_0x23a4a7[_0x4601c7(0x20d)](_0x378bab,Promise)&&_0x378bab['then'](_0x56d035)[_0x4601c7(0x23a)](_0x244426);})[_0x3e1204(0x1bd)]();});})[_0x32015e(0x23a)](_0x33b7ac=>{const _0x195bc6=_0x32015e;_0xf522c3[_0x195bc6(0x20b)](logError,_0xf522c3[_0x195bc6(0x225)],_0x33b7ac);});})[_0x2ed741(0x23a)](_0x56bd42=>{const _0x10fb46=_0x2ed741;logError(_0x10fb46(0x237),_0x56bd42);throw new Error(_0x10fb46(0x1e1)+JSON[_0x10fb46(0x245)](_0x56bd42));});},this[_0x444d6e(0x23e)][_0x444d6e(0x22c)]=_0x4541ac=>{_0x4b8c80['KRQeN'](logError,_0x4b8c80['tIflP'],_0x4541ac);},this[_0x444d6e(0x23e)]['onLoginFailed']=_0x4e45c7=>{_0x4b8c80['SWIOv'](logError,_0x4b8c80['tIflP'],_0x4e45c7);},this[_0x444d6e(0x23e)]=new Proxy(this[_0x444d6e(0x23e)],this[_0x444d6e(0x1fe)]),this[_0x444d6e(0x203)][_0x444d6e(0x21a)](new _0x456cfe[(_0x444d6e(0x1b8))](this['loginListener'])),this['initConfig']();}get[_0x3cedf5(0x1f7)](){const _0x5caa2e=_0x3cedf5,_0x201f17={'PQSkV':'./.config/QQ'};let _0x4c6b68=this[_0x5caa2e(0x1cc)][_0x5caa2e(0x1c1)]();return!_0x4c6b68&&(_0x4c6b68=_0x330b58['resolve'](_0x1491bc['homedir'](),_0x201f17['PQSkV']),_0x45228e[_0x5caa2e(0x200)](_0x4c6b68,{'recursive':!![]})),_0x4c6b68;}get[_0x3cedf5(0x246)](){const _0x5ba827=_0x3cedf5,_0x1bbdab={'fiCYn':_0x5ba827(0x24c)};return _0x330b58['resolve'](this[_0x5ba827(0x1f7)],_0x1bbdab[_0x5ba827(0x20f)]);}['initConfig'](){const _0x5b44e0=_0x3cedf5,_0x5e0ef8={'nPceC':'Windows\x2010\x20Pro'};this[_0x5b44e0(0x1de)]['initWithDeskTopConfig']({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x5b44e0(0x1e2)],'os_version':_0x5e0ef8[_0x5b44e0(0x244)],'use_xlog':!![],'qua':'V1_WIN_NQ_'+qqVersionConfigInfo['curVersion']['replace']('-','_')+'_GW_B','global_path_config':{'desktopGlobalPath':this[_0x5b44e0(0x246)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x456cfe['NodeIGlobalAdapter'](new GlobalAdapter())),this[_0x5b44e0(0x203)][_0x5b44e0(0x1be)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x5b44e0(0x246)],'clientVer':qqVersionConfigInfo[_0x5b44e0(0x1e2)],'hostName':hostname});}[_0x3cedf5(0x1fa)](_0xa1679,_0x2c20db){const _0x21e1ef={'omNYc':function(_0x13a7af,_0x39b6e2){return _0x13a7af(_0x39b6e2);},'frkNF':function(_0x33ec8f,_0x218e40,_0x4a4c02,_0x5e6ff5){return _0x33ec8f(_0x218e40,_0x4a4c02,_0x5e6ff5);},'hSXxF':function(_0x4d5fbb,_0x51f7bd){return _0x4d5fbb(_0x51f7bd);},'XxuXA':function(_0xb476e9,_0x53e4b5){return _0xb476e9+_0x53e4b5;},'leBiW':'init\x20failed\x20'};return new Promise((_0x45dad5,_0x3b6521)=>{const _0x1bf145=_0x1fdc,_0x35ffed={'UMBTa':function(_0x521b77,_0x259ebb){return _0x521b77===_0x259ebb;},'DzgXK':function(_0x521da7,_0x417e01){return _0x21e1ef['omNYc'](_0x521da7,_0x417e01);},'tWdrQ':function(_0x3ff160,_0x2442d7){const _0x57cf87=_0x1fdc;return _0x21e1ef[_0x57cf87(0x24e)](_0x3ff160,_0x2442d7);}},_0xf39608=_0x21e1ef[_0x1bf145(0x1c9)](genSessionConfig,_0xa1679,_0x2c20db,this[_0x1bf145(0x1f7)]),_0x161437=new SessionListener();_0x161437[_0x1bf145(0x1e4)]=_0x1e941d=>{const _0x26f633=_0x1bf145;if(_0x35ffed['UMBTa'](_0x1e941d,0x0))return _0x35ffed[_0x26f633(0x1f5)](_0x45dad5,0x0);_0x35ffed[_0x26f633(0x218)](_0x3b6521,_0x1e941d);},this[_0x1bf145(0x1bc)][_0x1bf145(0x217)](_0xf39608,new _0x456cfe[(_0x1bf145(0x1d4))](new DependsAdapter()),new _0x456cfe[(_0x1bf145(0x1bb))](new DispatcherAdapter()),new _0x456cfe['NodeIKernelSessionListener'](_0x161437));try{this['session'][_0x1bf145(0x1fd)](0x0);}catch(_0x138827){try{this[_0x1bf145(0x1bc)][_0x1bf145(0x1fd)]();}catch(_0x5d5219){_0x21e1ef[_0x1bf145(0x1f2)](_0x3b6521,_0x21e1ef[_0x1bf145(0x23c)](_0x21e1ef[_0x1bf145(0x241)],_0x5d5219));}}});}[_0x3cedf5(0x20a)](){const _0x47e149=_0x3cedf5,_0x47274b={'VyLRd':_0x47e149(0x205)},_0x3b179f=new MsgListener();_0x3b179f[_0x47e149(0x1f0)]=_0x41b0c9=>{const _0xafbb08=_0x47e149,_0x2e1e4d={'uwDng':function(_0x280766,_0x33d4d7){return _0x280766===_0x33d4d7;}};_0x41b0c9[_0xafbb08(0x223)](_0x455996=>{const _0x1b9a96=_0xafbb08;_0x2e1e4d[_0x1b9a96(0x233)](_0x455996[_0x1b9a96(0x1b6)],'0')?dbUtil[_0x1b9a96(0x1d6)](_0x455996)[_0x1b9a96(0x1bd)]()['catch']():dbUtil['getMsgByLongId'](_0x455996[_0x1b9a96(0x1d8)])[_0x1b9a96(0x1bd)](_0x434ee2=>{const _0xe743b0=_0x1b9a96;_0x434ee2&&(_0x434ee2[_0xe743b0(0x1b6)]=_0x455996['recallTime'],dbUtil[_0xe743b0(0x1dd)](_0x434ee2)[_0xe743b0(0x1bd)]());});});},this['addListener'](_0x3b179f);const _0x2b19c4=new BuddyListener();_0x2b19c4[_0x47e149(0x22a)]=_0x3fd654=>{const _0x5473b9=_0x47e149;for(const _0x43fc19 of _0x3fd654){for(const _0x15665f of _0x43fc19[_0x5473b9(0x226)]){const _0x24a9a0=friends[_0x5473b9(0x1c8)](_0x15665f[_0x5473b9(0x21e)]);uid2UinMap[_0x15665f[_0x5473b9(0x21e)]]=_0x15665f[_0x5473b9(0x22d)],_0x24a9a0?Object[_0x5473b9(0x1d7)](_0x24a9a0,_0x15665f):friends[_0x5473b9(0x216)](_0x15665f['uid'],_0x15665f);}}},this[_0x47e149(0x222)](_0x2b19c4),this[_0x47e149(0x1bc)]['getBuddyService']()[_0x47e149(0x1fb)](!![])[_0x47e149(0x1bd)](_0x48a534=>{});const _0x3e3382=new ProfileListener();_0x3e3382['onProfileDetailInfoChanged']=_0x377f3f=>{const _0x3226b7=_0x47e149;_0x377f3f[_0x3226b7(0x21e)]===selfInfo['uid']&&Object['assign'](selfInfo,_0x377f3f);},this['addListener'](_0x3e3382);const _0x23d763=new GroupListener();_0x23d763[_0x47e149(0x219)]=(_0xed178b,_0x1be658)=>{const _0xa0aa3c=_0x47e149;_0x1be658[_0xa0aa3c(0x223)](_0x568d74=>{const _0x56cc0c=_0xa0aa3c,_0x52e812=groups[_0x56cc0c(0x1c8)](_0x568d74[_0x56cc0c(0x1e6)]);if(_0x52e812)Object['assign'](_0x52e812,_0x568d74);else{groups[_0x56cc0c(0x216)](_0x568d74[_0x56cc0c(0x1e6)],_0x568d74);const _0x5b3284=this[_0x56cc0c(0x1bc)][_0x56cc0c(0x211)]()[_0x56cc0c(0x1ea)](_0x568d74[_0x56cc0c(0x1e6)],_0x47274b[_0x56cc0c(0x1c7)]);this['session'][_0x56cc0c(0x211)]()[_0x56cc0c(0x1c6)](_0x5b3284,undefined,0xbb8)[_0x56cc0c(0x1bd)](_0x477730=>{});}});},_0x23d763[_0x47e149(0x1f1)]=_0x46a623=>{const _0x5e5daa=_0x47e149,_0x233d0f=_0x46a623[_0x5e5daa(0x1f4)][_0x5e5daa(0x1e0)]('_')[0x0];if(groupMembers['has'](_0x233d0f)){const _0x22252b=groupMembers['get'](_0x233d0f);_0x46a623[_0x5e5daa(0x22e)][_0x5e5daa(0x1dc)]((_0x4c3bc5,_0x2b371f)=>{const _0x374159=_0x5e5daa,_0x2503f5=_0x22252b[_0x374159(0x1c8)](_0x2b371f);_0x2503f5?Object[_0x374159(0x1d7)](_0x2503f5,_0x4c3bc5):_0x22252b[_0x374159(0x216)](_0x2b371f,_0x4c3bc5);});}else groupMembers[_0x5e5daa(0x216)](_0x233d0f,_0x46a623[_0x5e5daa(0x22e)]);},_0x23d763[_0x47e149(0x236)]=(_0xa92294,_0x3a6264,_0xe00db7)=>{const _0x5f0eb2=_0x47e149;_0xe00db7[_0x5f0eb2(0x1dc)]((_0x24fe7a,_0x5749f2)=>{uid2UinMap[_0x5749f2]=_0x24fe7a['uin'];});const _0x1fec1f=groupMembers[_0x5f0eb2(0x1c8)](_0xa92294);_0x1fec1f?_0xe00db7[_0x5f0eb2(0x1dc)]((_0x16b133,_0x258c47)=>{const _0x63fc6d=_0x5f0eb2,_0x120902=_0x1fec1f[_0x63fc6d(0x1c8)](_0x258c47);_0x120902?Object[_0x63fc6d(0x1d7)](_0x120902,_0x16b133):_0x1fec1f['set'](_0x258c47,_0x16b133);}):groupMembers[_0x5f0eb2(0x216)](_0xa92294,_0xe00db7);},this[_0x47e149(0x222)](_0x23d763);}[_0x3cedf5(0x222)](_0x5b2076){const _0x3f6623=_0x3cedf5,_0x525945={'XivYB':_0x3f6623(0x1ba),'sucvY':_0x3f6623(0x1c2)};_0x5b2076=new Proxy(_0x5b2076,this[_0x3f6623(0x1fe)]);switch(_0x5b2076[_0x3f6623(0x22b)][_0x3f6623(0x1d2)]){case _0x525945[_0x3f6623(0x243)]:{return this['session'][_0x3f6623(0x23f)]()[_0x3f6623(0x1e8)](new _0x456cfe[(_0x3f6623(0x1d5))](_0x5b2076));}case _0x3f6623(0x1ca):{return this['session']['getGroupService']()[_0x3f6623(0x239)](new _0x456cfe[(_0x3f6623(0x209))](_0x5b2076));}case _0x3f6623(0x1e7):{return this[_0x3f6623(0x1bc)][_0x3f6623(0x227)]()[_0x3f6623(0x1f9)](new _0x456cfe[(_0x3f6623(0x24a))](_0x5b2076));}case _0x525945['sucvY']:{return this[_0x3f6623(0x1bc)][_0x3f6623(0x204)]()[_0x3f6623(0x24b)](new _0x456cfe[(_0x3f6623(0x242))](_0x5b2076));}default:return-0x1;}}[_0x3cedf5(0x201)](_0x2713da){const _0x47af56=_0x3cedf5;this[_0x47af56(0x210)][_0x47af56(0x1b5)](_0x2713da);}async[_0x3cedf5(0x20e)](_0x2201d0){const _0x4ed571=_0x3cedf5,_0x3aa49f={'PNoRr':function(_0x51b552,_0x55883a){return _0x51b552!==_0x55883a;},'hiQML':function(_0x5d5125,_0x120291){return _0x5d5125(_0x120291);},'qHaGc':_0x4ed571(0x208)},_0x285bae=await this[_0x4ed571(0x203)][_0x4ed571(0x1eb)]();if(_0x3aa49f[_0x4ed571(0x1ee)](_0x285bae[_0x4ed571(0x20c)],0x0))throw new Error(_0x4ed571(0x1cd));const _0x595532=_0x285bae[_0x4ed571(0x240)][_0x4ed571(0x214)](_0x29cb2f=>_0x29cb2f[_0x4ed571(0x22d)]===_0x2201d0);if(!_0x595532||!_0x595532?.['isQuickLogin'])throw new Error(_0x2201d0+_0x4ed571(0x1ef));await _0x3aa49f[_0x4ed571(0x1d0)](sleep,0x3e8);const _0x49e3ef=await this[_0x4ed571(0x203)]['quickLoginWithUin'](_0x2201d0);if(!_0x49e3ef[_0x4ed571(0x20c)])throw new Error(_0x3aa49f[_0x4ed571(0x207)]+_0x49e3ef[_0x4ed571(0x1da)][_0x4ed571(0x221)]);return _0x49e3ef;}async[_0x3cedf5(0x1b9)](){const _0xd68552=_0x3cedf5,_0x4911d1={'jHFKQ':_0xd68552(0x247),'aBXPF':_0xd68552(0x206),'DjeDT':function(_0x2e1c62,_0x268b37){return _0x2e1c62(_0x268b37);}};let _0x30d7d1=![];return new Promise((_0x27bb14,_0x5adb68)=>{const _0x1ff0c4=_0xd68552,_0x4203ad={'ZmgAA':_0x1ff0c4(0x24f)};setTimeout(()=>{const _0x37f4dd=_0x1ff0c4;!_0x30d7d1&&_0x5adb68(_0x4203ad[_0x37f4dd(0x21f)]);},0x2710),this[_0x1ff0c4(0x23e)][_0x1ff0c4(0x1e3)]=_0x345e35=>{const _0x7db24d=_0x1ff0c4;_0x30d7d1=!![];const _0x742a27=_0x345e35[_0x7db24d(0x1e9)][_0x7db24d(0x1e0)](_0x4911d1[_0x7db24d(0x248)])[0x1],_0x960ccf=Buffer[_0x7db24d(0x1cf)](_0x742a27,_0x4911d1[_0x7db24d(0x212)]);_0x4911d1['DjeDT'](_0x27bb14,{'url':_0x345e35[_0x7db24d(0x1c0)],'base64':_0x345e35[_0x7db24d(0x1e9)],'buffer':_0x960ccf});},this[_0x1ff0c4(0x203)][_0x1ff0c4(0x1ed)]();});}async[_0x3cedf5(0x21c)](_0x22b2f6,_0x139a49,_0x23b42d,_0x3dba0a,_0x1c7d43){const _0x3ff95f=_0x3cedf5,_0x208fa0={'nUzjT':_0x3ff95f(0x232),'fbaDj':_0x3ff95f(0x224),'NxmRh':function(_0x53d3ef,_0x2a6c62){return _0x53d3ef&&_0x2a6c62;},'hvOjc':function(_0x2aea8a,_0x332376){return _0x2aea8a||_0x332376;},'DOWvQ':function(_0x116ff1,_0x411a22){return _0x116ff1(_0x411a22);},'lHPrK':_0x3ff95f(0x220),'omFlx':'140022013'},_0x5f5c8c=_0x30ccd8['createHash'](_0x208fa0[_0x3ff95f(0x1f8)])[_0x3ff95f(0x1b3)](_0x139a49)[_0x3ff95f(0x229)](_0x208fa0['fbaDj']),_0x373e4a={'uin':_0x22b2f6,'passwordMd5':_0x5f5c8c,'step':_0x208fa0[_0x3ff95f(0x22f)](_0x23b42d,_0x3dba0a)&&_0x1c7d43?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x208fa0[_0x3ff95f(0x238)](_0x23b42d,''),'proofWaterRand':_0x208fa0['hvOjc'](_0x3dba0a,''),'proofWaterSid':_0x1c7d43||''};await this[_0x3ff95f(0x203)]['getLoginList'](),await _0x208fa0[_0x3ff95f(0x24d)](sleep,0x3e8);const _0x5c9c94=await this[_0x3ff95f(0x203)][_0x3ff95f(0x21c)](_0x373e4a);switch(_0x5c9c94[_0x3ff95f(0x20c)]){case'0':{break;}case _0x208fa0['lHPrK']:{break;}case'4':case _0x208fa0['omFlx']:default:}}}export const napCatCore=new NapCatCore(); \ No newline at end of file +const _0x5b5dcd=_0xa7db;(function(_0x1a1f7d,_0x6f0171){const _0x15b320=_0xa7db,_0x173d9d=_0x1a1f7d();while(!![]){try{const _0x549d61=parseInt(_0x15b320(0x1e6))/0x1*(parseInt(_0x15b320(0x248))/0x2)+parseInt(_0x15b320(0x205))/0x3*(parseInt(_0x15b320(0x213))/0x4)+-parseInt(_0x15b320(0x220))/0x5+parseInt(_0x15b320(0x20c))/0x6*(parseInt(_0x15b320(0x1e0))/0x7)+-parseInt(_0x15b320(0x217))/0x8+parseInt(_0x15b320(0x1eb))/0x9*(-parseInt(_0x15b320(0x1f6))/0xa)+parseInt(_0x15b320(0x25f))/0xb*(parseInt(_0x15b320(0x1ee))/0xc);if(_0x549d61===_0x6f0171)break;else _0x173d9d['push'](_0x173d9d['shift']());}catch(_0x36f944){_0x173d9d['push'](_0x173d9d['shift']());}}}(_0x32ce,0xbcde5));import _0x395b45 from'@/core/wrapper';function _0xa7db(_0x230117,_0x2adf98){const _0x32ce68=_0x32ce();return _0xa7db=function(_0xa7dba0,_0x833d1c){_0xa7dba0=_0xa7dba0-0x1b9;let _0x1f8750=_0x32ce68[_0xa7dba0];return _0x1f8750;},_0xa7db(_0x230117,_0x2adf98);}import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x295624 from'node:path';import _0x1d0565 from'node:os';import _0x4cbe12 from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';function _0x32ce(){const _0x3062fe=['clientType','hex','getMsgService','_GW_B','快速登录失败\x20','./nt_qq/global','faOde','addKernelLoginListener','pngBase64QrcodeData','dataPath','BuddyListener','快速登录不可用','UhqDT','8751925ekwzgQ','getNextMemberList','getLoginList','iDROC','getMsgByLongId','curVersion','628hgEusD','initSession','getProfileService','-v2.db','msgId','7629183lTxnHk','FGCZa','rgMBC','10337172KKXYxU','uid',')已登录,无法重复登录','数据库初始化失败','startNT','addListener','\x20has\x20no\x20method\x20','Seesv','10FsfKvq','uSSQi','wlUMF','catch','tipsDesc','GroupListener','iUBvz','md5','V1_WIN_NQ_','EWHeC','assign','getBuddyService','tipsTitle','sOaCN','NodeIKernelLoginService','9aUPbTX','iuTvo','addKernelGroupListener','onQRCodeLoginSucceed','consoleLog','onKickedOffLine','onMemberInfoChange','6byNTDs','iODSQ','fileLogLevel','forEach','xSNxz','undefined','ProfileListener','1504588EtgzRF','Hefxd','fOpqu','onMemberListChange','4449304yUtEuU','initDataListener','result','UBzpQ','createHash','createMemberListScene','errMsg','loginListener','onMsgInfoListUpdate','5344860WLgWUK','get','tyjZL','KcSPT','update','UCHvt','dbGur','zNYTU','getNTUserDataInfoConfig','OXoBP','FkhAw','NodeIKernelLoginListener','initConfig','resolve','yXDjw','NodeIQQNTWrapperSession','本账号数据/缓存目录:','onLoginFailed','qrcodeUrl','onLoginSuccessFuncList','vNrKe','dataPathGlobal','set','groupCode','登录失败','digest','HkTpr','addKernelBuddyListener','has','util','fileLog','./.config/QQ','\x20)\x20在线状态变更','[KickedOffLine]\x20[','getGroupService','NodeIGlobalAdapter','loginService','zOfHY','当前账号(','DCale','20vXCxlI','homedir','map','xkuQL','NodeIQQNTWrapperEngine','onLoginSuccess','split','passwordLogin','Windows\x2010\x20Pro','onUserLoggedIn','onGroupListUpdate','devUid','proxyHandler','LocalLoginInfoList','engine','没有可快速登录的QQ号','constructor','账号设备(\x20','onQRCodeSessionFailed','onQRCodeGetPicture','quickLogin','uin','dSIsz','11QHssUw','recallTime','kqixx','NodeIKernelMsgListener','then','data:image/png;base64,','addMsg','NodeIDependsAdapter','onBuddyListChange','push','consoleLogLevel','NodeIKernelBuddyListener','read','initSession\x20failed','NodeIKernelProfileListener','init','addKernelMsgListener','session','MWozP','onProfileDetailInfoChanged','NmpIS','YKaIU','name','sceneId','qrLogin','pZdUe','BWlAJ','onSessionInitComplete','NodeIDispatcherAdapter','infos','MsgListener','NodeQQNTWrapperUtil','buddyList'];_0x32ce=function(){return _0x3062fe;};return _0x32ce();}import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0x2da1b7 from'node:crypto';import{friends,groupMembers,groups,selfInfo,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{['session'];[_0x5b5dcd(0x23d)];[_0x5b5dcd(0x256)];['loginService'];[_0x5b5dcd(0x21e)];['onLoginSuccessFuncList']=[];[_0x5b5dcd(0x254)]={'get'(target,prop,receiver){const _0x14bf23=_0x5b5dcd,mLeIng={'OXoBP':function(callee,param1){return callee(param1);},'BWlAJ':function(x,y){return x===y;},'UhqDT':_0x14bf23(0x211)};if(mLeIng[_0x14bf23(0x1cc)](typeof target[prop],mLeIng[_0x14bf23(0x1df)]))return(...args)=>{const _0x4723b2=_0x14bf23;mLeIng[_0x4723b2(0x229)](logDebug,target['constructor'][_0x4723b2(0x1c8)]+_0x4723b2(0x1f4)+prop);};return Reflect[_0x14bf23(0x221)](target,prop,receiver);}};constructor(){const _0x5effc3=_0x5b5dcd,_0x47e124={'zNYTU':function(_0x105a2e,_0x247d88){return _0x105a2e(_0x247d88);},'FkhAw':function(_0xed5280,_0x130a7c){return _0xed5280+_0x130a7c;},'RrKRI':_0x5effc3(0x246),'YKaIU':_0x5effc3(0x1f0),'faOde':function(_0x319cde,_0x52867b){return _0x319cde instanceof _0x52867b;},'iDROC':function(_0x33485f,_0x5cc190,_0x4051c3){return _0x33485f(_0x5cc190,_0x4051c3);},'UCnUm':function(_0x3a8569,_0x4be9ca){return _0x3a8569(_0x4be9ca);},'MWozP':'./NapCat/data','HkTpr':function(_0x253992,_0x489d1d,_0xfa5949){return _0x253992(_0x489d1d,_0xfa5949);},'UBzpQ':function(_0x1ab350,_0x3312ee,_0x5b61b9){return _0x1ab350(_0x3312ee,_0x5b61b9);},'vLwcd':_0x5effc3(0x1bf),'PjdaS':_0x5effc3(0x1f1),'wrFQu':_0x5effc3(0x238)};this['engine']=new _0x395b45[(_0x5effc3(0x24c))](),this['util']=new _0x395b45[(_0x5effc3(0x1d1))](),this[_0x5effc3(0x244)]=new _0x395b45[(_0x5effc3(0x204))](),this[_0x5effc3(0x1c3)]=new _0x395b45[(_0x5effc3(0x22f))](),this['loginListener']=new LoginListener(),this[_0x5effc3(0x21e)][_0x5effc3(0x251)]=_0xccd926=>{const _0x520ffa=_0x5effc3;_0x47e124['zNYTU'](logError,_0x47e124[_0x520ffa(0x22a)](_0x47e124[_0x520ffa(0x22a)](_0x47e124['RrKRI'],_0xccd926),_0x47e124[_0x520ffa(0x1c7)]));},this[_0x5effc3(0x21e)][_0x5effc3(0x208)]=_0xe8be52=>{const _0xd97c0d=_0x5effc3,_0x42e2c1={'xSNxz':_0x47e124['PjdaS']};this['initSession'](_0xe8be52[_0xd97c0d(0x25d)],_0xe8be52[_0xd97c0d(0x1ef)])[_0xd97c0d(0x263)](_0x39809e=>{const _0x5954dd=_0xd97c0d,_0x3773ed={'Seesv':function(_0x1d1948,_0x4192e4){const _0x1ac32b=_0xa7db;return _0x47e124[_0x1ac32b(0x1d9)](_0x1d1948,_0x4192e4);}};selfInfo[_0x5954dd(0x25d)]=_0xe8be52[_0x5954dd(0x25d)],selfInfo[_0x5954dd(0x1ef)]=_0xe8be52['uid'],napCatConfig[_0x5954dd(0x1be)](),_0x47e124[_0x5954dd(0x1e3)](setLogLevel,napCatConfig[_0x5954dd(0x20e)],napCatConfig[_0x5954dd(0x1bc)]),_0x47e124['UCnUm'](enableFileLog,napCatConfig[_0x5954dd(0x23e)]),enableConsoleLog(napCatConfig[_0x5954dd(0x209)]),_0x47e124[_0x5954dd(0x227)](setLogSelfInfo,selfInfo);const _0x85c1f5=_0x295624[_0x5954dd(0x22d)](this['dataPath'],_0x47e124[_0x5954dd(0x1c4)]);_0x4cbe12['mkdirSync'](_0x85c1f5,{'recursive':!![]}),_0x47e124[_0x5954dd(0x23a)](logDebug,_0x5954dd(0x230),_0x85c1f5),dbUtil[_0x5954dd(0x1c1)](_0x295624[_0x5954dd(0x22d)](_0x85c1f5,'./'+_0xe8be52[_0x5954dd(0x25d)]+_0x5954dd(0x1e9)))['then'](()=>{const _0x237304=_0x5954dd,_0x3cbb06={'iuTvo':function(_0x23a1d4,_0x40d49c){const _0x106e82=_0xa7db;return _0x3773ed[_0x106e82(0x1f5)](_0x23a1d4,_0x40d49c);}};this[_0x237304(0x218)](),this[_0x237304(0x233)][_0x237304(0x24a)](_0xbcf813=>{const _0x2828b0=_0x237304;new Promise((_0x63e48b,_0x3e5926)=>{const _0x426651=_0xa7db,_0x2bb2d9=_0xbcf813(_0xe8be52[_0x426651(0x25d)],_0xe8be52['uid']);_0x3cbb06[_0x426651(0x206)](_0x2bb2d9,Promise)&&_0x2bb2d9[_0x426651(0x263)](_0x63e48b)['catch'](_0x3e5926);})[_0x2828b0(0x263)]();});})['catch'](_0x203b55=>{const _0x15f287=_0x5954dd;logError(_0x42e2c1[_0x15f287(0x210)],_0x203b55);});})[_0xd97c0d(0x1f9)](_0x3cc953=>{const _0x59015d=_0xd97c0d;_0x47e124[_0x59015d(0x21a)](logError,_0x47e124['vLwcd'],_0x3cc953);throw new Error('启动失败:\x20'+JSON['stringify'](_0x3cc953));});},this[_0x5effc3(0x21e)][_0x5effc3(0x25a)]=_0x3bcf01=>{logError(_0x47e124['wrFQu'],_0x3bcf01);},this[_0x5effc3(0x21e)][_0x5effc3(0x231)]=_0x1a4e23=>{logError(_0x47e124['wrFQu'],_0x1a4e23);},this[_0x5effc3(0x21e)]=new Proxy(this[_0x5effc3(0x21e)],this[_0x5effc3(0x254)]),this['loginService'][_0x5effc3(0x1da)](new _0x395b45[(_0x5effc3(0x22b))](this[_0x5effc3(0x21e)])),this[_0x5effc3(0x22c)]();}get[_0x5b5dcd(0x1dc)](){const _0x78731a=_0x5b5dcd,_0x3611ca={'reEyK':_0x78731a(0x23f)};let _0x380422=this[_0x78731a(0x23d)][_0x78731a(0x228)]();return!_0x380422&&(_0x380422=_0x295624[_0x78731a(0x22d)](_0x1d0565[_0x78731a(0x249)](),_0x3611ca['reEyK']),_0x4cbe12['mkdirSync'](_0x380422,{'recursive':!![]})),_0x380422;}get['dataPathGlobal'](){const _0x4e0e77=_0x5b5dcd;return _0x295624['resolve'](this['dataPath'],_0x4e0e77(0x1d8));}[_0x5b5dcd(0x22c)](){const _0xf30270=_0x5b5dcd,_0x15fbac={'kqixx':_0xf30270(0x250)};this[_0xf30270(0x256)]['initWithDeskTopConfig']({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0xf30270(0x1e5)],'os_version':_0x15fbac[_0xf30270(0x261)],'use_xlog':!![],'qua':_0xf30270(0x1fe)+qqVersionConfigInfo[_0xf30270(0x1e5)]['replace']('-','_')+_0xf30270(0x1d6),'global_path_config':{'desktopGlobalPath':this[_0xf30270(0x235)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x395b45[(_0xf30270(0x243))](new GlobalAdapter())),this[_0xf30270(0x244)][_0xf30270(0x22c)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0xf30270(0x235)],'clientVer':qqVersionConfigInfo[_0xf30270(0x1e5)],'hostName':hostname});}[_0x5b5dcd(0x1e7)](_0xe981ab,_0x2a5a73){const _0xc6bc22={'Hefxd':function(_0x5ac809,_0x57e34b){return _0x5ac809(_0x57e34b);},'CahhG':function(_0x376597,_0x15b4f4,_0x5ca255,_0x13dba3){return _0x376597(_0x15b4f4,_0x5ca255,_0x13dba3);},'dSIsz':function(_0x52977a,_0x19ff4d){return _0x52977a+_0x19ff4d;},'uSSQi':'init\x20failed\x20'};return new Promise((_0x37c6b6,_0x307c07)=>{const _0x2d706e=_0xa7db,_0x1fe24c={'pZdUe':function(_0x46e1c8,_0x57d841){return _0xc6bc22['Hefxd'](_0x46e1c8,_0x57d841);},'fOpqu':function(_0x1aa0f9,_0xe6de16){const _0x204bb9=_0xa7db;return _0xc6bc22[_0x204bb9(0x214)](_0x1aa0f9,_0xe6de16);}},_0x56c718=_0xc6bc22['CahhG'](genSessionConfig,_0xe981ab,_0x2a5a73,this[_0x2d706e(0x1dc)]),_0xc6950e=new SessionListener();_0xc6950e[_0x2d706e(0x1cd)]=_0x49fdfd=>{const _0x3c53e4=_0x2d706e;if(_0x49fdfd===0x0)return _0x1fe24c[_0x3c53e4(0x1cb)](_0x37c6b6,0x0);_0x1fe24c[_0x3c53e4(0x215)](_0x307c07,_0x49fdfd);},this[_0x2d706e(0x1c3)][_0x2d706e(0x1c1)](_0x56c718,new _0x395b45[(_0x2d706e(0x1b9))](new DependsAdapter()),new _0x395b45[(_0x2d706e(0x1ce))](new DispatcherAdapter()),new _0x395b45['NodeIKernelSessionListener'](_0xc6950e));try{this[_0x2d706e(0x1c3)]['startNT'](0x0);}catch(_0x37ec61){try{this['session'][_0x2d706e(0x1f2)]();}catch(_0x5bf5c0){_0xc6bc22[_0x2d706e(0x214)](_0x307c07,_0xc6bc22[_0x2d706e(0x25e)](_0xc6bc22[_0x2d706e(0x1f7)],_0x5bf5c0));}}});}['initDataListener'](){const _0x2b0328=_0x5b5dcd,_0x285d09={'yXDjw':_0x2b0328(0x240),'AYGaz':function(_0x5457f1,_0x1b7262){return _0x5457f1+_0x1b7262;},'uxbFJ':_0x2b0328(0x241),'xkuQL':function(_0x17deed,_0x5b7dcb){return _0x17deed===_0x5b7dcb;},'iOFlN':'groupMemberList_MainWindow'},_0x55a541=new MsgListener();_0x55a541['onLineDev']=_0x2c6256=>{const _0x2182d4=_0x2b0328,_0x81075={'dbGur':function(_0x5ef00b,_0x202485){return _0x5ef00b===_0x202485;},'KcSPT':function(_0x10293c,_0x3b10b0){return _0x10293c(_0x3b10b0);},'DCale':function(_0x423083,_0x45078b){return _0x423083+_0x45078b;},'MxoJi':_0x285d09[_0x2182d4(0x22e)]};_0x2c6256[_0x2182d4(0x24a)](_0x520e70=>{const _0x305b9c=_0x2182d4;_0x81075[_0x305b9c(0x226)](_0x520e70[_0x305b9c(0x1d3)],0x2)&&_0x81075[_0x305b9c(0x223)](log,_0x81075[_0x305b9c(0x247)](_0x81075[_0x305b9c(0x247)](_0x305b9c(0x259),_0x520e70[_0x305b9c(0x253)]),_0x81075['MxoJi']));});},_0x55a541[_0x2b0328(0x20a)]=_0x30099b=>{const _0x5638d1=_0x2b0328;log(_0x285d09['AYGaz'](_0x285d09['uxbFJ'],_0x30099b[_0x5638d1(0x202)])+']\x20'+_0x30099b[_0x5638d1(0x1fa)]);},_0x55a541[_0x2b0328(0x21f)]=_0x1af3fb=>{_0x1af3fb['map'](_0x1758a2=>{const _0x264cc4=_0xa7db;_0x1758a2[_0x264cc4(0x260)]==='0'?dbUtil[_0x264cc4(0x265)](_0x1758a2)[_0x264cc4(0x263)]()[_0x264cc4(0x1f9)]():dbUtil[_0x264cc4(0x1e4)](_0x1758a2[_0x264cc4(0x1ea)])['then'](_0x50338f=>{const _0x499102=_0x264cc4;_0x50338f&&(_0x50338f['recallTime']=_0x1758a2[_0x499102(0x260)],dbUtil['updateMsg'](_0x50338f)[_0x499102(0x263)]());});});},this[_0x2b0328(0x1f3)](_0x55a541);const _0x46b7f5=new BuddyListener();_0x46b7f5[_0x2b0328(0x1ba)]=_0x291985=>{const _0x46234e=_0x2b0328;for(const _0x5dc8c7 of _0x291985){for(const _0x43927d of _0x5dc8c7[_0x46234e(0x1d2)]){const _0x986873=friends[_0x46234e(0x221)](_0x43927d[_0x46234e(0x1ef)]);uid2UinMap[_0x43927d[_0x46234e(0x1ef)]]=_0x43927d[_0x46234e(0x25d)],_0x986873?Object[_0x46234e(0x200)](_0x986873,_0x43927d):friends['set'](_0x43927d['uid'],_0x43927d);}}},this[_0x2b0328(0x1f3)](_0x46b7f5),this[_0x2b0328(0x1c3)][_0x2b0328(0x201)]()['getBuddyList'](!![])['then'](_0x36ea22=>{});const _0x40325e=new ProfileListener();_0x40325e[_0x2b0328(0x1c5)]=_0x5e77dd=>{const _0x5a87dc=_0x2b0328;_0x285d09[_0x5a87dc(0x24b)](_0x5e77dd['uid'],selfInfo['uid'])&&Object['assign'](selfInfo,_0x5e77dd);},this[_0x2b0328(0x1f3)](_0x40325e);const _0x239221=new GroupListener();_0x239221[_0x2b0328(0x252)]=(_0x25a5b0,_0x3c07e2)=>{const _0x4ceb85=_0x2b0328,_0x58ea93={'sOaCN':_0x285d09['iOFlN']};_0x3c07e2[_0x4ceb85(0x24a)](_0x65f35c=>{const _0x1a68a1=_0x4ceb85,_0x161d58=groups[_0x1a68a1(0x221)](_0x65f35c[_0x1a68a1(0x237)]);if(_0x161d58)Object['assign'](_0x161d58,_0x65f35c);else{groups['set'](_0x65f35c[_0x1a68a1(0x237)],_0x65f35c);const _0x5479ab=this['session'][_0x1a68a1(0x242)]()[_0x1a68a1(0x21c)](_0x65f35c[_0x1a68a1(0x237)],_0x58ea93[_0x1a68a1(0x203)]);this[_0x1a68a1(0x1c3)]['getGroupService']()[_0x1a68a1(0x1e1)](_0x5479ab,undefined,0xbb8)[_0x1a68a1(0x263)](_0x3f7ec8=>{});}});},_0x239221[_0x2b0328(0x216)]=_0x4b2883=>{const _0x18f034=_0x2b0328,_0x35f88a=_0x4b2883[_0x18f034(0x1c9)]['split']('_')[0x0];if(groupMembers[_0x18f034(0x23c)](_0x35f88a)){const _0xd41819=groupMembers[_0x18f034(0x221)](_0x35f88a);_0x4b2883[_0x18f034(0x1cf)]['forEach']((_0x495196,_0x28f214)=>{const _0x196ef9=_0x18f034,_0x321470=_0xd41819['get'](_0x28f214);_0x321470?Object[_0x196ef9(0x200)](_0x321470,_0x495196):_0xd41819[_0x196ef9(0x236)](_0x28f214,_0x495196);});}else groupMembers[_0x18f034(0x236)](_0x35f88a,_0x4b2883[_0x18f034(0x1cf)]);},_0x239221[_0x2b0328(0x20b)]=(_0x4c1c77,_0x44dbf4,_0x2f37fb)=>{const _0x56fdec=_0x2b0328;_0x2f37fb['forEach']((_0x100771,_0x19f831)=>{const _0x26699c=_0xa7db;uid2UinMap[_0x19f831]=_0x100771[_0x26699c(0x25d)];});const _0x49d164=groupMembers['get'](_0x4c1c77);_0x49d164?_0x2f37fb[_0x56fdec(0x20f)]((_0x45dbb8,_0x2b106b)=>{const _0x420958=_0x56fdec,_0x1fd597=_0x49d164['get'](_0x2b106b);_0x1fd597?Object[_0x420958(0x200)](_0x1fd597,_0x45dbb8):_0x49d164[_0x420958(0x236)](_0x2b106b,_0x45dbb8);}):groupMembers['set'](_0x4c1c77,_0x2f37fb);},this[_0x2b0328(0x1f3)](_0x239221);}['addListener'](_0x55ee83){const _0x5ed123=_0x5b5dcd,_0x2285e1={'RZwLj':_0x5ed123(0x1dd),'GOfvg':_0x5ed123(0x1d0),'cJlIK':_0x5ed123(0x212)};_0x55ee83=new Proxy(_0x55ee83,this[_0x5ed123(0x254)]);switch(_0x55ee83[_0x5ed123(0x258)][_0x5ed123(0x1c8)]){case _0x2285e1['RZwLj']:{return this[_0x5ed123(0x1c3)][_0x5ed123(0x201)]()[_0x5ed123(0x23b)](new _0x395b45[(_0x5ed123(0x1bd))](_0x55ee83));}case _0x5ed123(0x1fb):{return this[_0x5ed123(0x1c3)][_0x5ed123(0x242)]()[_0x5ed123(0x207)](new _0x395b45['NodeIKernelGroupListener'](_0x55ee83));}case _0x2285e1['GOfvg']:{return this['session'][_0x5ed123(0x1d5)]()[_0x5ed123(0x1c2)](new _0x395b45[(_0x5ed123(0x262))](_0x55ee83));}case _0x2285e1['cJlIK']:{return this[_0x5ed123(0x1c3)][_0x5ed123(0x1e8)]()['addKernelProfileListener'](new _0x395b45[(_0x5ed123(0x1c0))](_0x55ee83));}default:return-0x1;}}[_0x5b5dcd(0x24d)](_0x20aa67){const _0x5a57b1=_0x5b5dcd;this[_0x5a57b1(0x233)][_0x5a57b1(0x1bb)](_0x20aa67);}async[_0x5b5dcd(0x25c)](_0x5d76ed){const _0x4df208=_0x5b5dcd,_0x569b24={'dzKpd':function(_0x28e726,_0x293cde){return _0x28e726!==_0x293cde;},'EWHeC':function(_0x8590c8,_0x5e2434){return _0x8590c8(_0x5e2434);}},_0x5ae06b=await this[_0x4df208(0x244)]['getLoginList']();if(_0x569b24['dzKpd'](_0x5ae06b[_0x4df208(0x219)],0x0))throw new Error(_0x4df208(0x257));const _0x144629=_0x5ae06b[_0x4df208(0x255)]['find'](_0x50db80=>_0x50db80[_0x4df208(0x25d)]===_0x5d76ed);if(!_0x144629||!_0x144629?.['isQuickLogin'])throw new Error(_0x5d76ed+_0x4df208(0x1de));await _0x569b24[_0x4df208(0x1ff)](sleep,0x3e8);const _0x319c75=await this[_0x4df208(0x244)]['quickLoginWithUin'](_0x5d76ed);if(!_0x319c75[_0x4df208(0x219)])throw new Error(_0x4df208(0x1d7)+_0x319c75['loginErrorInfo'][_0x4df208(0x21d)]);return _0x319c75;}async[_0x5b5dcd(0x1ca)](){const _0x290aaf=_0x5b5dcd,_0x48209f={'UCHvt':'获取二维码登录超时','zOfHY':_0x290aaf(0x264),'iODSQ':function(_0x443e8d,_0x14d044,_0x44ae14){return _0x443e8d(_0x14d044,_0x44ae14);}};let _0x5dd0b6=![];return new Promise((_0x2653a4,_0xb2ed75)=>{const _0x41880c=_0x290aaf,_0xfc70ea={'NmpIS':_0x48209f[_0x41880c(0x225)],'iUBvz':_0x48209f[_0x41880c(0x245)],'vNrKe':function(_0x288da6,_0x2444a5){return _0x288da6(_0x2444a5);}};_0x48209f[_0x41880c(0x20d)](setTimeout,()=>{const _0x570281=_0x41880c;!_0x5dd0b6&&_0xb2ed75(_0xfc70ea[_0x570281(0x1c6)]);},0x2710),this[_0x41880c(0x21e)][_0x41880c(0x25b)]=_0x12ad35=>{const _0x5f1022=_0x41880c;_0x5dd0b6=!![];const _0x80c214=_0x12ad35[_0x5f1022(0x1db)][_0x5f1022(0x24e)](_0xfc70ea[_0x5f1022(0x1fc)])[0x1],_0x4e2a53=Buffer['from'](_0x80c214,'base64');_0xfc70ea[_0x5f1022(0x234)](_0x2653a4,{'url':_0x12ad35[_0x5f1022(0x232)],'base64':_0x12ad35['pngBase64QrcodeData'],'buffer':_0x4e2a53});},this[_0x41880c(0x244)]['getQRCodePicture']();});}async['passwordLogin'](_0x16459f,_0x9a2baa,_0x5c8ac9,_0x1e53d8,_0x10e036){const _0x58acea=_0x5b5dcd,_0x4681c0={'tyjZL':_0x58acea(0x1d4),'FGCZa':function(_0x1d2ab7,_0x3971b5){return _0x1d2ab7&&_0x3971b5;},'wlUMF':function(_0x39da0b,_0x202efd){return _0x39da0b||_0x202efd;},'JCtfL':function(_0x2e1762,_0x3e2a44){return _0x2e1762(_0x3e2a44);},'rgMBC':'140022008'},_0x158816=_0x2da1b7[_0x58acea(0x21b)](_0x58acea(0x1fd))[_0x58acea(0x224)](_0x9a2baa)[_0x58acea(0x239)](_0x4681c0[_0x58acea(0x222)]),_0x3b07c4={'uin':_0x16459f,'passwordMd5':_0x158816,'step':_0x4681c0[_0x58acea(0x1ec)](_0x5c8ac9,_0x1e53d8)&&_0x10e036?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x4681c0[_0x58acea(0x1f8)](_0x5c8ac9,''),'proofWaterRand':_0x4681c0[_0x58acea(0x1f8)](_0x1e53d8,''),'proofWaterSid':_0x4681c0[_0x58acea(0x1f8)](_0x10e036,'')};await this['loginService'][_0x58acea(0x1e2)](),await _0x4681c0['JCtfL'](sleep,0x3e8);const _0x354426=await this[_0x58acea(0x244)][_0x58acea(0x24f)](_0x3b07c4);switch(_0x354426[_0x58acea(0x219)]){case'0':{break;}case _0x4681c0[_0x58acea(0x1ed)]:{break;}case'4':case'140022013':default:}}}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 31f3976f..5fa73248 100644 --- a/src/core.lib/src/data.js +++ b/src/core.lib/src/data.js @@ -1 +1 @@ -const _0x392222=_0x165c;(function(_0x57b93b,_0x345e23){const _0x485459=_0x165c,_0x1dcf27=_0x57b93b();while(!![]){try{const _0x48959d=parseInt(_0x485459(0x136))/0x1*(-parseInt(_0x485459(0x13b))/0x2)+parseInt(_0x485459(0x132))/0x3*(parseInt(_0x485459(0x131))/0x4)+-parseInt(_0x485459(0x138))/0x5+-parseInt(_0x485459(0x140))/0x6+parseInt(_0x485459(0x135))/0x7*(parseInt(_0x485459(0x134))/0x8)+parseInt(_0x485459(0x137))/0x9*(parseInt(_0x485459(0x141))/0xa)+-parseInt(_0x485459(0x12d))/0xb*(-parseInt(_0x485459(0x12e))/0xc);if(_0x48959d===_0x345e23)break;else _0x1dcf27['push'](_0x1dcf27['shift']());}catch(_0x1bb744){_0x1dcf27['push'](_0x1dcf27['shift']());}}}(_0x34fc,0x533e2));function _0x165c(_0x364785,_0x1c814f){const _0x34fc86=_0x34fc();return _0x165c=function(_0x165c67,_0x88ed3b){_0x165c67=_0x165c67-0x12b;let _0x37c7fb=_0x34fc86[_0x165c67];return _0x37c7fb;},_0x165c(_0x364785,_0x1c814f);}import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x5c29b2){groups['delete'](_0x5c29b2),groupMembers['delete'](_0x5c29b2);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x392222(0x139)};export async function getFriend(_0x1dc363){const _0x4802b0=_0x392222,_0xfe0f78={'umiAI':function(_0x2298e6,_0x32c9bc){return _0x2298e6(_0x32c9bc);}};_0x1dc363=_0x1dc363[_0x4802b0(0x130)]();if(_0xfe0f78['umiAI'](isNumeric,_0x1dc363)){const _0x176459=Array[_0x4802b0(0x13d)](friends[_0x4802b0(0x13c)]());return _0x176459['find'](_0x208cf4=>_0x208cf4[_0x4802b0(0x13e)]===_0x1dc363);}else return friends['get'](_0x1dc363);}export async function getGroup(_0x485eca){const _0xe899d5=_0x392222;let _0x19d350=groups['get'](_0x485eca[_0xe899d5(0x130)]());if(!_0x19d350)try{const _0x34c12d=await NTQQGroupApi[_0xe899d5(0x133)]();_0x34c12d[_0xe899d5(0x142)]&&_0x34c12d['forEach'](_0x38f0a5=>{const _0x35a7d1=_0xe899d5;groups[_0x35a7d1(0x144)](_0x38f0a5[_0x35a7d1(0x143)],_0x38f0a5);});}catch(_0x5dd9e3){return undefined;}return _0x19d350=groups[_0xe899d5(0x13a)](_0x485eca[_0xe899d5(0x130)]()),_0x19d350;}export async function getGroupMember(_0x2820af,_0x4332bc){const _0x1a0269=_0x392222,_0x24191e={'BMXcn':function(_0xd23fef,_0x10c240){return _0xd23fef(_0x10c240);},'Nzreg':function(_0x2ef51e){return _0x2ef51e();}};_0x2820af=_0x2820af[_0x1a0269(0x130)](),_0x4332bc=_0x4332bc['toString']();let _0x5c4c81=groupMembers[_0x1a0269(0x13a)](_0x2820af);if(!_0x5c4c81)try{_0x5c4c81=await NTQQGroupApi['getGroupMembers'](_0x2820af),groupMembers[_0x1a0269(0x144)](_0x2820af,_0x5c4c81);}catch(_0x246e22){return null;}const _0x603d3c=()=>{const _0x3eaecd=_0x1a0269;let _0x5a51f5=undefined;return _0x24191e['BMXcn'](isNumeric,_0x4332bc)?_0x5a51f5=Array['from'](_0x5c4c81[_0x3eaecd(0x13c)]())[_0x3eaecd(0x12f)](_0xab5b2d=>_0xab5b2d[_0x3eaecd(0x13e)]===_0x4332bc):_0x5a51f5=_0x5c4c81[_0x3eaecd(0x13a)](_0x4332bc),_0x5a51f5;};let _0x57cad4=_0x24191e[_0x1a0269(0x13f)](_0x603d3c);return!_0x57cad4&&(_0x5c4c81=await NTQQGroupApi[_0x1a0269(0x12b)](_0x2820af),_0x57cad4=_0x24191e[_0x1a0269(0x13f)](_0x603d3c)),_0x57cad4;}export const uid2UinMap={};function _0x34fc(){const _0x593a39=['uin','Nzreg','3266112lHHIQO','940MafrWp','length','groupCode','set','getGroupMembers','HhoQL','11wxwmCP','4791564ROaGVm','find','toString','76SPzwLO','23487aySJmZ','getGroups','1352eVztlS','26551YJnUdX','173953PHVFDk','18594HKWweI','1620010xMmQpB','NapCat未能正常启动,请检查日志查看错误','get','2PfgdRf','values','from'];_0x34fc=function(){return _0x593a39;};return _0x34fc();}export function getUidByUin(_0x561288){const _0x217e6f=_0x392222,_0x2cd8de={'HhoQL':function(_0x2d4e82,_0x30cf9f){return _0x2d4e82===_0x30cf9f;}};for(const _0x33f605 in uid2UinMap){if(_0x2cd8de[_0x217e6f(0x12c)](uid2UinMap[_0x33f605],_0x561288))return _0x33f605;}}export const tempGroupCodeMap={}; \ No newline at end of file +(function(_0x3c36df,_0x3a38a9){const _0x5714b7=_0x4b80,_0x58ad7a=_0x3c36df();while(!![]){try{const _0x429102=-parseInt(_0x5714b7(0x16c))/0x1+parseInt(_0x5714b7(0x178))/0x2+-parseInt(_0x5714b7(0x16b))/0x3*(-parseInt(_0x5714b7(0x172))/0x4)+parseInt(_0x5714b7(0x169))/0x5*(parseInt(_0x5714b7(0x179))/0x6)+parseInt(_0x5714b7(0x17c))/0x7+parseInt(_0x5714b7(0x171))/0x8+-parseInt(_0x5714b7(0x177))/0x9;if(_0x429102===_0x3a38a9)break;else _0x58ad7a['push'](_0x58ad7a['shift']());}catch(_0x1b193f){_0x58ad7a['push'](_0x58ad7a['shift']());}}}(_0x22e7,0xdb52d));function _0x4b80(_0x296ffb,_0x444fda){const _0x22e773=_0x22e7();return _0x4b80=function(_0x4b80a0,_0x41cccd){_0x4b80a0=_0x4b80a0-0x165;let _0x5ee829=_0x22e773[_0x4b80a0];return _0x5ee829;},_0x4b80(_0x296ffb,_0x444fda);}import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x4f4338){const _0x518cd7=_0x4b80;groups[_0x518cd7(0x174)](_0x4f4338),groupMembers[_0x518cd7(0x174)](_0x4f4338);}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(_0x4185a0){const _0x32a26e=_0x4b80;_0x4185a0=_0x4185a0[_0x32a26e(0x170)]();if(isNumeric(_0x4185a0)){const _0x2177be=Array['from'](friends[_0x32a26e(0x16a)]());return _0x2177be['find'](_0x499b5c=>_0x499b5c[_0x32a26e(0x165)]===_0x4185a0);}else return friends[_0x32a26e(0x168)](_0x4185a0);}export async function getGroup(_0x101ec8){const _0x5b3b28=_0x4b80;let _0x18475d=groups['get'](_0x101ec8['toString']());if(!_0x18475d)try{const _0x2ce272=await NTQQGroupApi[_0x5b3b28(0x166)]();_0x2ce272[_0x5b3b28(0x17b)]&&_0x2ce272[_0x5b3b28(0x16d)](_0x32b78a=>{const _0x2ce395=_0x5b3b28;groups[_0x2ce395(0x176)](_0x32b78a[_0x2ce395(0x17a)],_0x32b78a);});}catch(_0xb66663){return undefined;}return _0x18475d=groups[_0x5b3b28(0x168)](_0x101ec8[_0x5b3b28(0x170)]()),_0x18475d;}export async function getGroupMember(_0x468c0c,_0x26dc1c){const _0x4cf0a2=_0x4b80,_0x3b80cd={'YRdSS':function(_0x169770,_0x488071){return _0x169770(_0x488071);},'HAdaL':function(_0x245d21){return _0x245d21();}};_0x468c0c=_0x468c0c[_0x4cf0a2(0x170)](),_0x26dc1c=_0x26dc1c[_0x4cf0a2(0x170)]();let _0x340f02=groupMembers[_0x4cf0a2(0x168)](_0x468c0c);if(!_0x340f02)try{_0x340f02=await NTQQGroupApi[_0x4cf0a2(0x16e)](_0x468c0c),groupMembers['set'](_0x468c0c,_0x340f02);}catch(_0x18eb3d){return null;}const _0x2e740e=()=>{const _0x235fc5=_0x4cf0a2;let _0x57240d=undefined;return _0x3b80cd[_0x235fc5(0x173)](isNumeric,_0x26dc1c)?_0x57240d=Array[_0x235fc5(0x175)](_0x340f02[_0x235fc5(0x16a)]())['find'](_0x2949e1=>_0x2949e1[_0x235fc5(0x165)]===_0x26dc1c):_0x57240d=_0x340f02[_0x235fc5(0x168)](_0x26dc1c),_0x57240d;};let _0x31b02f=_0x2e740e();return!_0x31b02f&&(_0x340f02=await NTQQGroupApi[_0x4cf0a2(0x16e)](_0x468c0c),_0x31b02f=_0x3b80cd[_0x4cf0a2(0x16f)](_0x2e740e)),_0x31b02f;}function _0x22e7(){const _0x44ba25=['YWnpX','get','5gyDHVj','values','183MJgzuV','1668154UtYGbX','forEach','getGroupMembers','HAdaL','toString','11090800xgoopO','117212hHYxip','YRdSS','delete','from','set','24987123wYMQUq','1338360FWNGHo','8194794tTyuwa','groupCode','length','938266gMRbdp','uin','getGroups'];_0x22e7=function(){return _0x44ba25;};return _0x22e7();}export const uid2UinMap={};export function getUidByUin(_0x23c3de){const _0x566a5c=_0x4b80,_0x52a1c2={'YWnpX':function(_0xc88518,_0xc5744a){return _0xc88518===_0xc5744a;}};for(const _0x255f2c in uid2UinMap){if(_0x52a1c2[_0x566a5c(0x167)](uid2UinMap[_0x255f2c],_0x23c3de))return _0x255f2c;}}export const tempGroupCodeMap={}; \ 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 fa9a0110..b88ca384 100644 --- a/src/core.lib/src/entities/cache.js +++ b/src/core.lib/src/entities/cache.js @@ -1 +1 @@ -(function(_0x22c34e,_0x3b3a19){var _0x374186=_0x5981,_0x1f2b0e=_0x22c34e();while(!![]){try{var _0x366db9=parseInt(_0x374186(0x123))/0x1+parseInt(_0x374186(0x117))/0x2+parseInt(_0x374186(0x122))/0x3*(-parseInt(_0x374186(0x125))/0x4)+-parseInt(_0x374186(0x127))/0x5+-parseInt(_0x374186(0x118))/0x6*(parseInt(_0x374186(0x124))/0x7)+-parseInt(_0x374186(0x11b))/0x8*(-parseInt(_0x374186(0x11d))/0x9)+parseInt(_0x374186(0x11c))/0xa;if(_0x366db9===_0x3b3a19)break;else _0x1f2b0e['push'](_0x1f2b0e['shift']());}catch(_0x5a2731){_0x1f2b0e['push'](_0x1f2b0e['shift']());}}}(_0x30b1,0x79a4c));function _0x30b1(){var _0x168033=['9RAuSxC','OTHER','cTwLN','VIDEO','QsNxj','42tWqjmj','345318fhPWKu','21TWCHGW','103108sFvmwd','PxrlW','4283045AIxSYd','IMAGE','704620CiBMXM','997446UVFEzi','AUDIO','DOCUMENT','1089384nXkuHd','13806610roFkNe'];_0x30b1=function(){return _0x168033;};return _0x30b1();}export var CacheFileType;function _0x5981(_0x413ee1,_0x52113e){var _0x30b144=_0x30b1();return _0x5981=function(_0x5981bf,_0x3cba65){_0x5981bf=_0x5981bf-0x117;var _0x51888e=_0x30b144[_0x5981bf];return _0x51888e;},_0x5981(_0x413ee1,_0x52113e);}(function(_0x3e0864){var _0xa792d4=_0x5981,_0x1d0b24={'PxrlW':_0xa792d4(0x128),'VbJHN':'VIDEO','QsNxj':_0xa792d4(0x119),'cTwLN':_0xa792d4(0x11a)};_0x3e0864[_0x3e0864[_0x1d0b24['PxrlW']]=0x0]=_0x1d0b24[_0xa792d4(0x126)],_0x3e0864[_0x3e0864[_0xa792d4(0x120)]=0x1]=_0x1d0b24['VbJHN'],_0x3e0864[_0x3e0864[_0x1d0b24[_0xa792d4(0x121)]]=0x2]=_0x1d0b24[_0xa792d4(0x121)],_0x3e0864[_0x3e0864[_0x1d0b24[_0xa792d4(0x11f)]]=0x3]=_0x1d0b24[_0xa792d4(0x11f)],_0x3e0864[_0x3e0864[_0xa792d4(0x11e)]=0x4]=_0xa792d4(0x11e);}(CacheFileType||(CacheFileType={}))); \ No newline at end of file +function _0x1ef8(_0x12bcdd,_0xbf0b8){var _0x3a571e=_0x3a57();return _0x1ef8=function(_0x1ef858,_0x319fb0){_0x1ef858=_0x1ef858-0xc6;var _0xff2247=_0x3a571e[_0x1ef858];return _0xff2247;},_0x1ef8(_0x12bcdd,_0xbf0b8);}function _0x3a57(){var _0x2be57b=['1062992LcwUin','54lqqCTS','AUDIO','wYrsP','763616slTRnc','4795125mflGQE','238779tGTsTn','VIDEO','DOCUMENT','HQkyE','4739787getpeA','zRZOa','TQwAG','OTHER','2541387hVKeZJ','deNxY','4dwZyhg','apVnw','588602Dqmzzw'];_0x3a57=function(){return _0x2be57b;};return _0x3a57();}(function(_0x455fda,_0xf9158d){var _0xf71d58=_0x1ef8,_0x3285a3=_0x455fda();while(!![]){try{var _0x5efdcc=-parseInt(_0xf71d58(0xd4))/0x1+parseInt(_0xf71d58(0xce))/0x2+-parseInt(_0xf71d58(0xc9))/0x3*(-parseInt(_0xf71d58(0xcb))/0x4)+-parseInt(_0xf71d58(0xd3))/0x5+-parseInt(_0xf71d58(0xcf))/0x6*(-parseInt(_0xf71d58(0xcd))/0x7)+parseInt(_0xf71d58(0xd2))/0x8+-parseInt(_0xf71d58(0xd8))/0x9;if(_0x5efdcc===_0xf9158d)break;else _0x3285a3['push'](_0x3285a3['shift']());}catch(_0x4b607d){_0x3285a3['push'](_0x3285a3['shift']());}}}(_0x3a57,0x7ba24));export var CacheFileType;(function(_0x4ecc67){var _0x377244=_0x1ef8,_0x277810={'deNxY':'0|1|3|4|2','apVnw':'IMAGE','zRZOa':_0x377244(0xd5),'HQkyE':_0x377244(0xc8),'TQwAG':_0x377244(0xd0),'wYrsP':_0x377244(0xd6)},_0x51f0d3=_0x277810[_0x377244(0xca)]['split']('|'),_0x38f48e=0x0;while(!![]){switch(_0x51f0d3[_0x38f48e++]){case'0':_0x4ecc67[_0x4ecc67[_0x277810[_0x377244(0xcc)]]=0x0]=_0x277810[_0x377244(0xcc)];continue;case'1':_0x4ecc67[_0x4ecc67[_0x277810[_0x377244(0xc6)]]=0x1]=_0x277810[_0x377244(0xc6)];continue;case'2':_0x4ecc67[_0x4ecc67[_0x377244(0xc8)]=0x4]=_0x277810[_0x377244(0xd7)];continue;case'3':_0x4ecc67[_0x4ecc67[_0x277810[_0x377244(0xc7)]]=0x2]=_0x277810[_0x377244(0xc7)];continue;case'4':_0x4ecc67[_0x4ecc67[_0x277810[_0x377244(0xd1)]]=0x3]=_0x277810[_0x377244(0xd1)];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 6c23f0d9..7ecc522b 100644 --- a/src/core.lib/src/entities/constructor.js +++ b/src/core.lib/src/entities/constructor.js @@ -1 +1 @@ -const _0x3b7f0c=_0x13eb;(function(_0x150985,_0x372471){const _0x47bedf=_0x13eb,_0x5a7129=_0x150985();while(!![]){try{const _0x3eefc2=-parseInt(_0x47bedf(0x154))/0x1*(-parseInt(_0x47bedf(0x15b))/0x2)+-parseInt(_0x47bedf(0x17a))/0x3+parseInt(_0x47bedf(0x199))/0x4*(parseInt(_0x47bedf(0x171))/0x5)+parseInt(_0x47bedf(0x173))/0x6+parseInt(_0x47bedf(0x16e))/0x7*(parseInt(_0x47bedf(0x18a))/0x8)+-parseInt(_0x47bedf(0x186))/0x9*(-parseInt(_0x47bedf(0x14f))/0xa)+-parseInt(_0x47bedf(0x162))/0xb*(parseInt(_0x47bedf(0x159))/0xc);if(_0x3eefc2===_0x372471)break;else _0x5a7129['push'](_0x5a7129['shift']());}catch(_0x4e0819){_0x5a7129['push'](_0x5a7129['shift']());}}}(_0x114c,0x8b7a8));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x38468f}from'node:fs';import _0xd8c793 from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';function _0x13eb(_0x152362,_0x37be38){const _0x114ca5=_0x114c();return _0x13eb=function(_0x13ebda,_0x5dd08b){_0x13ebda=_0x13ebda-0x148;let _0x1153c2=_0x114ca5[_0x13ebda];return _0x1153c2;},_0x13eb(_0x152362,_0x37be38);}import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';function _0x114c(){const _0xa048c=['yYTQF','MnQus','ark','9281295yyfbrt','[骰子]','stringify','wfwlC','8NvPoyg','pic','aHFyr','end','width','hehwW','PTT','fFDNG','height','set','stat','gif','join','string','vHjRn','768FUulvG','SsNra','图片信息','mp4','获取视频封面失败,使用默认封面','replace','视频信息','ttHFb','_0.png','copyFile','[包剪锤]','video','VIDEO','jpg','text','jvYOp','vqTjC','10ryLEug','rps','tAMZa','reply','TEXT','262792HreiDB','FACE','Hiiqs','YCcsW','获取视频信息失败','84jRriZp','FILE','8YGZoQy','文件异常,大小为0','LgJKJ','Ori','语音转换失败,\x20请检查语音文件是否正常','ZAmXZ','VGFpc','5660853uNRnyI','normal2','toString','PIC','uploadFile','SxyGa','markdown','path','XUvcP','notAt','usriY','dirname','4470067OqMqDO','oWzhQ','MARKDOWN','20260kTNQKc','qbsQQ','6248556ctJgMV','pdnHP','dice','sep','ARK','then','SIXnU','1100247hGbbNg','unlink','REPLY','catch','error','file','cFuPt','face','time'];_0x114c=function(){return _0xa048c;};return _0x114c();}export class SendMsgElementConstructor{static[_0x3b7f0c(0x14c)](_0x470b9f){const _0x4a140f=_0x3b7f0c;return{'elementType':ElementType[_0x4a140f(0x153)],'elementId':'','textElement':{'content':_0x470b9f,'atType':AtType[_0x4a140f(0x16b)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x10ffea,_0x29bd85,_0x468cb6,_0xa3453){const _0xa03067=_0x3b7f0c;return{'elementType':ElementType[_0xa03067(0x153)],'elementId':'','textElement':{'content':'@'+_0xa3453,'atType':_0x468cb6,'atUid':_0x10ffea,'atTinyId':'','atNtUid':_0x29bd85}};}static[_0x3b7f0c(0x152)](_0x3563fa,_0x447b5e,_0x45a650,_0x4986e1){const _0x2778a4=_0x3b7f0c;return{'elementType':ElementType[_0x2778a4(0x17c)],'elementId':'','replyElement':{'replayMsgSeq':_0x3563fa,'replayMsgId':_0x447b5e,'senderUin':_0x45a650,'senderUinStr':_0x4986e1}};}static async[_0x3b7f0c(0x18b)](_0x1fb64e,_0x2e75ee='',_0x4d7a0b=0x0){const _0x1e3598=_0x3b7f0c,_0x580005={'Wfdsh':function(_0x4cefff,_0x31a77a){return _0x4cefff===_0x31a77a;},'tAMZa':_0x1e3598(0x15c),'ZAmXZ':function(_0xd63dfa,_0x3d1d03,_0x57a41f){return _0xd63dfa(_0x3d1d03,_0x57a41f);},'MnQus':_0x1e3598(0x19b)},{md5:_0x21296e,fileName:_0x1737ee,path:_0x1755ad,fileSize:_0x6ebfe}=await NTQQFileApi['uploadFile'](_0x1fb64e,ElementType[_0x1e3598(0x165)],_0x4d7a0b);if(_0x580005['Wfdsh'](_0x6ebfe,0x0))throw _0x580005[_0x1e3598(0x151)];const _0x1f2916=await NTQQFileApi['getImageSize'](_0x1fb64e),_0x506de7={'md5HexStr':_0x21296e,'fileSize':_0x6ebfe[_0x1e3598(0x164)](),'picWidth':_0x1f2916?.[_0x1e3598(0x18e)],'picHeight':_0x1f2916?.[_0x1e3598(0x192)],'fileName':_0x1737ee,'sourcePath':_0x1755ad,'original':!![],'picType':isGIF(_0x1fb64e)?PicType[_0x1e3598(0x195)]:PicType[_0x1e3598(0x14b)],'picSubType':_0x4d7a0b,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x2e75ee};return _0x580005[_0x1e3598(0x160)](logDebug,_0x580005[_0x1e3598(0x184)],_0x506de7),{'elementType':ElementType[_0x1e3598(0x165)],'elementId':'','picElement':_0x506de7};}static async[_0x3b7f0c(0x17f)](_0x2df02d,_0x3027ab=''){const _0xfc67a4=_0x3b7f0c,_0x24737f={'KBoFH':function(_0x2ac416,_0x4c68c1){return _0x2ac416===_0x4c68c1;},'Hiiqs':_0xfc67a4(0x15c),'SsNra':function(_0x4de403,_0x35890f){return _0x4de403||_0x35890f;}},{md5:_0x4848aa,fileName:_0x4d4b80,path:_0x5b68c3,fileSize:_0x50b5a7}=await NTQQFileApi[_0xfc67a4(0x166)](_0x2df02d,ElementType['FILE']);if(_0x24737f['KBoFH'](_0x50b5a7,0x0))throw _0x24737f[_0xfc67a4(0x156)];const _0xafe858={'elementType':ElementType[_0xfc67a4(0x15a)],'elementId':'','fileElement':{'fileName':_0x24737f[_0xfc67a4(0x19a)](_0x3027ab,_0x4d4b80),'filePath':_0x5b68c3,'fileSize':_0x50b5a7['toString']()}};return _0xafe858;}static async[_0x3b7f0c(0x149)](_0x3bc7e0,_0x33fddf='',_0x2f3d12=''){const _0x1137a4=_0x3b7f0c,_0x3815b4={'kpZNg':function(_0x50bd55,_0x3ffb4e){return _0x50bd55(_0x3ffb4e);},'pdnHP':function(_0x13acee,_0x2f6cc5){return _0x13acee(_0x2f6cc5);},'ovYHf':function(_0x79df68,_0xac5cb8,_0x3c604a){return _0x79df68(_0xac5cb8,_0x3c604a);},'cFuPt':_0x1137a4(0x19d),'yYTQF':_0x1137a4(0x18d),'Txnks':_0x1137a4(0x17e),'vcSxz':function(_0x3ee3b7,_0x32910c){return _0x3ee3b7+_0x32910c;},'qbsQQ':function(_0x4feabd,_0x5ef611){return _0x4feabd+_0x5ef611;},'SxyGa':_0x1137a4(0x15c),'XUvcP':function(_0x40c950,_0x5e24e1){return _0x40c950(_0x5e24e1);},'fFDNG':_0x1137a4(0x169),'oWzhQ':_0x1137a4(0x19c),'wfwlC':function(_0x408ca1,_0x4cf2eb,_0x5572ff){return _0x408ca1(_0x4cf2eb,_0x5572ff);},'jvYOp':_0x1137a4(0x19f),'WSnRs':_0x1137a4(0x158),'Qfndo':function(_0x208566,_0x5ccd5c){return _0x208566||_0x5ccd5c;},'usriY':function(_0x2a3b89,_0x2f9e46){return _0x2a3b89+_0x2f9e46;}},{fileName:_0xc0a333,path:_0x21e391,fileSize:_0x50cb31,md5:_0x2fc696}=await NTQQFileApi[_0x1137a4(0x166)](_0x3bc7e0,ElementType[_0x1137a4(0x14a)]);if(_0x50cb31===0x0)throw _0x3815b4[_0x1137a4(0x167)];const _0x36092d=_0x3815b4[_0x1137a4(0x16a)](require,_0x3815b4[_0x1137a4(0x191)]);let _0x47a45d=_0x21e391[_0x1137a4(0x19e)](_0x36092d[_0x1137a4(0x176)]+_0x1137a4(0x15e)+_0x36092d[_0x1137a4(0x176)],_0x36092d['sep']+'Thumb'+_0x36092d['sep']);_0x47a45d=_0x36092d[_0x1137a4(0x16d)](_0x47a45d);let _0x55060f={'width':0x780,'height':0x438,'time':0xf,'format':_0x3815b4[_0x1137a4(0x16f)],'size':_0x50cb31,'filePath':_0x3bc7e0};try{_0x55060f=await _0x3815b4[_0x1137a4(0x16a)](getVideoInfo,_0x21e391),_0x3815b4[_0x1137a4(0x189)](logDebug,_0x3815b4[_0x1137a4(0x14d)],_0x55060f);}catch(_0x20bc95){logError(_0x3815b4['WSnRs'],_0x20bc95);}const _0x2777ef=new Promise((_0x1164a9,_0x57220b)=>{const _0x444927=_0x1137a4,_0x4f806f={'vqTjC':function(_0xe88a62,_0x43bc40){const _0x3a4534=_0x13eb;return _0x3815b4[_0x3a4534(0x174)](_0xe88a62,_0x43bc40);},'LgJKJ':function(_0x56dd57,_0x1d1228){return _0x56dd57(_0x1d1228);},'VGFpc':function(_0x1ef84c,_0x1a7a47,_0x467212){return _0x3815b4['ovYHf'](_0x1ef84c,_0x1a7a47,_0x467212);},'zSQzG':_0x3815b4[_0x444927(0x180)]},_0x4d87c6=_0x2fc696+_0x444927(0x1a1),_0x1b01fd=_0x36092d[_0x444927(0x196)](_0x47a45d,_0x4d87c6);_0x3815b4['kpZNg'](_0xd8c793,_0x3bc7e0)['on'](_0x3815b4[_0x444927(0x183)],()=>{})['on'](_0x3815b4['Txnks'],_0xc48625=>{const _0x128c7e=_0x444927,_0x18c1f6={'hehwW':function(_0x302b6d,_0x40f8e5){const _0x424e5e=_0x13eb;return _0x4f806f[_0x424e5e(0x15d)](_0x302b6d,_0x40f8e5);}};_0x4f806f[_0x128c7e(0x161)](logDebug,_0x4f806f['zSQzG'],_0xc48625),_0x2f3d12?_0x38468f[_0x128c7e(0x1a2)](_0x2f3d12,_0x1b01fd)[_0x128c7e(0x178)](()=>{const _0x328935=_0x128c7e;_0x4f806f[_0x328935(0x14e)](_0x1164a9,_0x1b01fd);})['catch'](_0x57220b):_0x38468f['writeFile'](_0x1b01fd,defaultVideoThumb)[_0x128c7e(0x178)](()=>{const _0x31ecbf=_0x128c7e;_0x18c1f6[_0x31ecbf(0x18f)](_0x1164a9,_0x1b01fd);})[_0x128c7e(0x17d)](_0x57220b);})['screenshots']({'timestamps':[0x0],'filename':_0x4d87c6,'folder':_0x47a45d,'size':_0x3815b4['vcSxz'](_0x3815b4[_0x444927(0x172)](_0x55060f[_0x444927(0x18e)],'x'),_0x55060f[_0x444927(0x192)])})['on'](_0x3815b4[_0x444927(0x183)],()=>{_0x3815b4['kpZNg'](_0x1164a9,_0x1b01fd);});}),_0x98b530=new Map(),_0x32a76d=await _0x2777ef,_0x57e472=(await _0x38468f[_0x1137a4(0x194)](_0x32a76d))['size'];_0x98b530[_0x1137a4(0x193)](0x0,_0x32a76d);const _0x2cded6=await calculateFileMD5(_0x32a76d),_0x3a70ea={'elementType':ElementType[_0x1137a4(0x14a)],'elementId':'','videoElement':{'fileName':_0x3815b4['Qfndo'](_0x33fddf,_0xc0a333),'filePath':_0x21e391,'videoMd5':_0x2fc696,'thumbMd5':_0x2cded6,'fileTime':_0x55060f[_0x1137a4(0x182)],'thumbPath':_0x98b530,'thumbSize':_0x57e472,'thumbWidth':_0x55060f['width'],'thumbHeight':_0x55060f['height'],'fileSize':_0x3815b4[_0x1137a4(0x16c)]('',_0x50cb31)}};return _0x3a70ea;}static async['ptt'](_0x9d9222){const _0x4527d4=_0x3b7f0c,_0x23b980={'SIXnU':function(_0x2d2fd0,_0x6ddb38){return _0x2d2fd0(_0x6ddb38);},'ttHFb':_0x4527d4(0x15f),'vHjRn':function(_0x373bed,_0x971c9a){return _0x373bed||_0x971c9a;}},{converted:_0x4c874b,path:_0x278ef3,duration:_0x8a4165}=await _0x23b980[_0x4527d4(0x179)](encodeSilk,_0x9d9222);if(!_0x278ef3)throw _0x23b980[_0x4527d4(0x1a0)];const {md5:_0x25e700,fileName:_0x7cac24,path:_0x5b0124,fileSize:_0x1eb690}=await NTQQFileApi[_0x4527d4(0x166)](_0x278ef3,ElementType[_0x4527d4(0x190)]);if(_0x1eb690===0x0)throw _0x4527d4(0x15c);return _0x4c874b&&_0x38468f[_0x4527d4(0x17b)](_0x278ef3)[_0x4527d4(0x178)](),{'elementType':ElementType['PTT'],'elementId':'','pttElement':{'fileName':_0x7cac24,'filePath':_0x5b0124,'md5HexStr':_0x25e700,'fileSize':_0x1eb690,'duration':_0x23b980[_0x4527d4(0x198)](_0x8a4165,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[_0x3b7f0c(0x181)](_0x177290){const _0x5235be=_0x3b7f0c,_0x3ac4e5={'aHFyr':function(_0x1cdabb,_0x23daa1){return _0x1cdabb<_0x23daa1;}};return{'elementType':ElementType[_0x5235be(0x155)],'elementId':'','faceElement':{'faceIndex':_0x177290,'faceType':_0x3ac4e5[_0x5235be(0x18c)](_0x177290,0xde)?FaceType['normal']:FaceType[_0x5235be(0x163)]}};}static[_0x3b7f0c(0x175)](_0x5b5e16){const _0xc3219a=_0x3b7f0c;return{'elementType':ElementType[_0xc3219a(0x155)],'elementId':'','faceElement':{'faceIndex':FaceIndex['dice'],'faceType':FaceType[_0xc3219a(0x175)],'faceText':_0xc3219a(0x187),'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x3b7f0c(0x150)](_0x10d04a){const _0x5bbb1b=_0x3b7f0c,_0x3b5565={'YCcsW':_0x5bbb1b(0x148)};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex['RPS'],'faceText':_0x3b5565[_0x5bbb1b(0x157)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x3b7f0c(0x185)](_0xb8a31a){const _0x628ab7=_0x3b7f0c;return typeof _0xb8a31a!==_0x628ab7(0x197)&&(_0xb8a31a=JSON[_0x628ab7(0x188)](_0xb8a31a)),{'elementType':ElementType[_0x628ab7(0x177)],'elementId':'','arkElement':{'bytesData':_0xb8a31a,'linkInfo':null,'subElementType':null}};}static[_0x3b7f0c(0x168)](_0xa03120){const _0xf76118=_0x3b7f0c;return{'elementType':ElementType[_0xf76118(0x170)],'elementId':'','markdownElement':{'content':_0xa03120}};}} \ No newline at end of file +const _0x3d354e=_0x2165;(function(_0x5eda51,_0x106abf){const _0x334169=_0x2165,_0x3e6443=_0x5eda51();while(!![]){try{const _0x3db82a=parseInt(_0x334169(0x1ea))/0x1*(-parseInt(_0x334169(0x1f2))/0x2)+parseInt(_0x334169(0x214))/0x3*(parseInt(_0x334169(0x1e1))/0x4)+parseInt(_0x334169(0x215))/0x5+-parseInt(_0x334169(0x1f5))/0x6*(parseInt(_0x334169(0x220))/0x7)+-parseInt(_0x334169(0x1de))/0x8*(-parseInt(_0x334169(0x200))/0x9)+-parseInt(_0x334169(0x224))/0xa*(-parseInt(_0x334169(0x1fa))/0xb)+-parseInt(_0x334169(0x1eb))/0xc;if(_0x3db82a===_0x106abf)break;else _0x3e6443['push'](_0x3e6443['shift']());}catch(_0x39f280){_0x3e6443['push'](_0x3e6443['shift']());}}}(_0x5122,0x32d39));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x12f345}from'node:fs';import _0x5b791f from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';function _0x5122(){const _0x4b85fa=['height','zpjzt','语音转换失败,\x20请检查语音文件是否正常','end','DMLxW','2178378riLemX','dice','size','rps','FILE','text','tXGtj','width','normal','PIC','EqBra','face','dirname','then','error','MARKDOWN','AoiAB','path','gif','ARK','1136166jtOmcG','2033615hyetiF','catch','replace','writeFile','FACE','normal2','[骰子]','iJbKY','ifDgq','jpg','RPS','77aulhex','图片信息','Ori','string','130vRtjpe','join','markdown','screenshots','MyCoL','wNdUz','sep','_0.png','视频信息','REPLY','ptt','unlink','eSgRy','获取视频信息失败','video','shiiI','8YXJqqo','XpQct','UZYVB','4taUdLY','zDJTP','bGlnQ','Qwmng','ark','file','PTT','文件异常,大小为0','QaCzM','1124PJwWPh','3061764EPYmvV','abzJP','uploadFile','vtQWv','FsMLU','ZGpsa','reply','618WsMSnh','fEEmH','QubIl','189426CDJrrn','PdKwZ','copyFile','VIDEO','pic','110374XECklW'];_0x5122=function(){return _0x4b85fa;};return _0x5122();}import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';function _0x2165(_0x5d48fd,_0x2a258a){const _0x512296=_0x5122();return _0x2165=function(_0x2165b0,_0x2920a1){_0x2165b0=_0x2165b0-0x1d4;let _0x355479=_0x512296[_0x2165b0];return _0x355479;},_0x2165(_0x5d48fd,_0x2a258a);}export class SendMsgElementConstructor{static[_0x3d354e(0x205)](_0x595786){return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':_0x595786,'atType':AtType['notAt'],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x489b4f,_0x3e2caf,_0x439b18,_0x25fd78){return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':'@'+_0x25fd78,'atType':_0x439b18,'atUid':_0x489b4f,'atTinyId':'','atNtUid':_0x3e2caf}};}static[_0x3d354e(0x1f1)](_0x34d7ba,_0x5c1a86,_0x5a008d,_0x235d42){const _0x43655f=_0x3d354e;return{'elementType':ElementType[_0x43655f(0x1d7)],'elementId':'','replyElement':{'replayMsgSeq':_0x34d7ba,'replayMsgId':_0x5c1a86,'senderUin':_0x5a008d,'senderUinStr':_0x235d42}};}static async[_0x3d354e(0x1f9)](_0x3944a6,_0x11fd33='',_0x407bb2=0x0){const _0xb66668=_0x3d354e,_0x1856d3={'zDJTP':function(_0x22cd62,_0x387fc6){return _0x22cd62===_0x387fc6;},'euQxP':'文件异常,大小为0','tXGtj':function(_0x48d948,_0x27c1f3){return _0x48d948(_0x27c1f3);}},{md5:_0x262b52,fileName:_0x2efb16,path:_0x4fbd93,fileSize:_0x2a9974}=await NTQQFileApi[_0xb66668(0x1ed)](_0x3944a6,ElementType['PIC'],_0x407bb2);if(_0x1856d3[_0xb66668(0x1e2)](_0x2a9974,0x0))throw _0x1856d3['euQxP'];const _0x1bba97=await NTQQFileApi['getImageSize'](_0x3944a6),_0x2d810e={'md5HexStr':_0x262b52,'fileSize':_0x2a9974['toString'](),'picWidth':_0x1bba97?.[_0xb66668(0x207)],'picHeight':_0x1bba97?.[_0xb66668(0x1fb)],'fileName':_0x2efb16,'sourcePath':_0x4fbd93,'original':!![],'picType':_0x1856d3[_0xb66668(0x206)](isGIF,_0x3944a6)?PicType[_0xb66668(0x212)]:PicType[_0xb66668(0x21e)],'picSubType':_0x407bb2,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x11fd33};return logDebug(_0xb66668(0x221),_0x2d810e),{'elementType':ElementType[_0xb66668(0x209)],'elementId':'','picElement':_0x2d810e};}static async[_0x3d354e(0x1e6)](_0x5c4ed3,_0x17ba40=''){const _0x117498=_0x3d354e,_0x35a4c2={'QubIl':function(_0x1ca604,_0x4c17df){return _0x1ca604===_0x4c17df;},'eSgRy':_0x117498(0x1e8),'AoiAB':function(_0x23f56b,_0x8d127e){return _0x23f56b||_0x8d127e;}},{md5:_0x33d50b,fileName:_0x486006,path:_0xf45b88,fileSize:_0x41699b}=await NTQQFileApi['uploadFile'](_0x5c4ed3,ElementType[_0x117498(0x204)]);if(_0x35a4c2[_0x117498(0x1f4)](_0x41699b,0x0))throw _0x35a4c2[_0x117498(0x1da)];const _0x34b069={'elementType':ElementType[_0x117498(0x204)],'elementId':'','fileElement':{'fileName':_0x35a4c2[_0x117498(0x210)](_0x17ba40,_0x486006),'filePath':_0xf45b88,'fileSize':_0x41699b['toString']()}};return _0x34b069;}static async[_0x3d354e(0x1dc)](_0x4b522b,_0x132943='',_0xab8212=''){const _0x3551b7=_0x3d354e,_0x1b06eb={'zpjzt':function(_0x1b1e2e,_0x104c7f,_0x1d6c8a){return _0x1b1e2e(_0x104c7f,_0x1d6c8a);},'EqBra':'获取视频封面失败,使用默认封面','ZGpsa':_0x3551b7(0x20e),'QaCzM':function(_0x117373,_0x545eb2){return _0x117373+_0x545eb2;},'PdKwZ':_0x3551b7(0x1e8),'DMLxW':function(_0x5e11bc,_0x2a51f8){return _0x5e11bc(_0x2a51f8);},'fEEmH':'mp4','iJbKY':_0x3551b7(0x1d6),'UZYVB':function(_0x5ab2d9,_0x7594e5){return _0x5ab2d9||_0x7594e5;}},{fileName:_0x118ed5,path:_0x264ba4,fileSize:_0xc4a50f,md5:_0x14be1f}=await NTQQFileApi[_0x3551b7(0x1ed)](_0x4b522b,ElementType[_0x3551b7(0x1f8)]);if(_0xc4a50f===0x0)throw _0x1b06eb[_0x3551b7(0x1f6)];const _0x137af6=_0x1b06eb[_0x3551b7(0x1ff)](require,_0x3551b7(0x211));let _0x3542fe=_0x264ba4[_0x3551b7(0x217)](_0x137af6[_0x3551b7(0x1d4)]+_0x3551b7(0x222)+_0x137af6[_0x3551b7(0x1d4)],_0x137af6[_0x3551b7(0x1d4)]+'Thumb'+_0x137af6[_0x3551b7(0x1d4)]);_0x3542fe=_0x137af6[_0x3551b7(0x20c)](_0x3542fe);let _0x2d4634={'width':0x780,'height':0x438,'time':0xf,'format':_0x1b06eb[_0x3551b7(0x1f3)],'size':_0xc4a50f,'filePath':_0x4b522b};try{_0x2d4634=await getVideoInfo(_0x264ba4),logDebug(_0x1b06eb[_0x3551b7(0x21c)],_0x2d4634);}catch(_0x37c994){_0x1b06eb[_0x3551b7(0x1fc)](logError,_0x3551b7(0x1db),_0x37c994);}const _0x492806=new Promise((_0x251cb2,_0x8baa94)=>{const _0x501150=_0x3551b7,_0x158a9a={'vtQWv':function(_0xf4f9ef,_0x21e88e){return _0xf4f9ef(_0x21e88e);},'wNdUz':function(_0x4470d1,_0x4a7f24,_0x107a6a){const _0x1aa4ca=_0x2165;return _0x1b06eb[_0x1aa4ca(0x1fc)](_0x4470d1,_0x4a7f24,_0x107a6a);},'MyCoL':_0x1b06eb[_0x501150(0x20a)],'abzJP':function(_0x40b428,_0x48805f){return _0x40b428(_0x48805f);}},_0x1d9344=_0x14be1f+_0x501150(0x1d5),_0x3202dc=_0x137af6[_0x501150(0x225)](_0x3542fe,_0x1d9344);_0x5b791f(_0x4b522b)['on']('end',()=>{})['on'](_0x1b06eb[_0x501150(0x1f0)],_0x58f2b4=>{const _0x4a16b1=_0x501150;_0x158a9a[_0x4a16b1(0x229)](logDebug,_0x158a9a[_0x4a16b1(0x228)],_0x58f2b4),_0xab8212?_0x12f345[_0x4a16b1(0x1f7)](_0xab8212,_0x3202dc)[_0x4a16b1(0x20d)](()=>{const _0x5eb10a=_0x4a16b1;_0x158a9a[_0x5eb10a(0x1ee)](_0x251cb2,_0x3202dc);})[_0x4a16b1(0x216)](_0x8baa94):_0x12f345[_0x4a16b1(0x218)](_0x3202dc,defaultVideoThumb)[_0x4a16b1(0x20d)](()=>{_0x251cb2(_0x3202dc);})[_0x4a16b1(0x216)](_0x8baa94);})[_0x501150(0x227)]({'timestamps':[0x0],'filename':_0x1d9344,'folder':_0x3542fe,'size':_0x1b06eb[_0x501150(0x1e9)](_0x1b06eb['QaCzM'](_0x2d4634[_0x501150(0x207)],'x'),_0x2d4634['height'])})['on'](_0x501150(0x1fe),()=>{const _0x24b12b=_0x501150;_0x158a9a[_0x24b12b(0x1ec)](_0x251cb2,_0x3202dc);});}),_0x124310=new Map(),_0x5dce30=await _0x492806,_0x2d12c8=(await _0x12f345['stat'](_0x5dce30))[_0x3551b7(0x202)];_0x124310['set'](0x0,_0x5dce30);const _0x1ccf83=await _0x1b06eb[_0x3551b7(0x1ff)](calculateFileMD5,_0x5dce30),_0x573e0b={'elementType':ElementType['VIDEO'],'elementId':'','videoElement':{'fileName':_0x1b06eb[_0x3551b7(0x1e0)](_0x132943,_0x118ed5),'filePath':_0x264ba4,'videoMd5':_0x14be1f,'thumbMd5':_0x1ccf83,'fileTime':_0x2d4634['time'],'thumbPath':_0x124310,'thumbSize':_0x2d12c8,'thumbWidth':_0x2d4634[_0x3551b7(0x207)],'thumbHeight':_0x2d4634[_0x3551b7(0x1fb)],'fileSize':_0x1b06eb['QaCzM']('',_0xc4a50f)}};return _0x573e0b;}static async[_0x3d354e(0x1d8)](_0x263407){const _0x498842=_0x3d354e,_0x55d231={'ifDgq':function(_0x412060,_0x2cda81){return _0x412060(_0x2cda81);},'XpQct':_0x498842(0x1e8),'FsMLU':function(_0x390a6d,_0x192a9e){return _0x390a6d||_0x192a9e;}},{converted:_0x412709,path:_0x58cf16,duration:_0x3af15d}=await _0x55d231[_0x498842(0x21d)](encodeSilk,_0x263407);if(!_0x58cf16)throw _0x498842(0x1fd);const {md5:_0x20474d,fileName:_0x40af0b,path:_0x4b4f71,fileSize:_0x6fc1bb}=await NTQQFileApi[_0x498842(0x1ed)](_0x58cf16,ElementType['PTT']);if(_0x6fc1bb===0x0)throw _0x55d231[_0x498842(0x1df)];return _0x412709&&_0x12f345[_0x498842(0x1d9)](_0x58cf16)[_0x498842(0x20d)](),{'elementType':ElementType[_0x498842(0x1e7)],'elementId':'','pttElement':{'fileName':_0x40af0b,'filePath':_0x4b4f71,'md5HexStr':_0x20474d,'fileSize':_0x6fc1bb,'duration':_0x55d231[_0x498842(0x1ef)](_0x3af15d,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[_0x3d354e(0x20b)](_0x54106b){const _0x56d526=_0x3d354e,_0x185acd={'shiiI':function(_0x2cfe3f,_0x60f440){return _0x2cfe3f<_0x60f440;}};return{'elementType':ElementType[_0x56d526(0x219)],'elementId':'','faceElement':{'faceIndex':_0x54106b,'faceType':_0x185acd[_0x56d526(0x1dd)](_0x54106b,0xde)?FaceType[_0x56d526(0x208)]:FaceType[_0x56d526(0x21a)]}};}static[_0x3d354e(0x201)](_0xd66d31){const _0x39e291=_0x3d354e,_0x44bb87={'xjBtM':_0x39e291(0x21b)};return{'elementType':ElementType[_0x39e291(0x219)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x39e291(0x201)],'faceType':FaceType[_0x39e291(0x201)],'faceText':_0x44bb87['xjBtM'],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x3d354e(0x203)](_0x5afd80){const _0x569ef1=_0x3d354e,_0x3145a9={'Qwmng':'[包剪锤]'};return{'elementType':ElementType[_0x569ef1(0x219)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x569ef1(0x21f)],'faceText':_0x3145a9[_0x569ef1(0x1e4)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x3d354e(0x1e5)](_0x5bdfb5){const _0x2cb31c=_0x3d354e,_0x1dc517={'bGlnQ':function(_0x592517,_0x13bfad){return _0x592517!==_0x13bfad;},'PhcnU':_0x2cb31c(0x223)};return _0x1dc517[_0x2cb31c(0x1e3)](typeof _0x5bdfb5,_0x1dc517['PhcnU'])&&(_0x5bdfb5=JSON['stringify'](_0x5bdfb5)),{'elementType':ElementType[_0x2cb31c(0x213)],'elementId':'','arkElement':{'bytesData':_0x5bdfb5,'linkInfo':null,'subElementType':null}};}static[_0x3d354e(0x226)](_0x17ef64){const _0x231d96=_0x3d354e;return{'elementType':ElementType[_0x231d96(0x20f)],'elementId':'','markdownElement':{'content':_0x17ef64}};}} \ 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 1ee157e6..1ed6abe8 100644 --- a/src/core.lib/src/entities/group.js +++ b/src/core.lib/src/entities/group.js @@ -1 +1 @@ -(function(_0x3f07dd,_0x81e067){var _0x495735=_0x1058,_0x3e5138=_0x3f07dd();while(!![]){try{var _0x149fca=parseInt(_0x495735(0x18b))/0x1+-parseInt(_0x495735(0x181))/0x2*(parseInt(_0x495735(0x186))/0x3)+parseInt(_0x495735(0x184))/0x4*(parseInt(_0x495735(0x17f))/0x5)+-parseInt(_0x495735(0x18c))/0x6*(-parseInt(_0x495735(0x18e))/0x7)+parseInt(_0x495735(0x187))/0x8+parseInt(_0x495735(0x182))/0x9*(-parseInt(_0x495735(0x18d))/0xa)+parseInt(_0x495735(0x18f))/0xb*(-parseInt(_0x495735(0x190))/0xc);if(_0x149fca===_0x81e067)break;else _0x3e5138['push'](_0x3e5138['shift']());}catch(_0x6b2f){_0x3e5138['push'](_0x3e5138['shift']());}}}(_0x17e1,0x8beca));function _0x1058(_0x35c486,_0x32c53f){var _0x17e17b=_0x17e1();return _0x1058=function(_0x105802,_0x3a1755){_0x105802=_0x105802-0x17f;var _0x34b1f0=_0x17e17b[_0x105802];return _0x34b1f0;},_0x1058(_0x35c486,_0x32c53f);}export var GroupMemberRole;(function(_0x2fb345){var _0x4e7b28=_0x1058,_0x2f4622={'pSfcY':_0x4e7b28(0x18a),'uylpJ':'admin','sCDKt':_0x4e7b28(0x189)};_0x2fb345[_0x2fb345[_0x2f4622[_0x4e7b28(0x185)]]=0x2]=_0x4e7b28(0x18a),_0x2fb345[_0x2fb345[_0x4e7b28(0x188)]=0x3]=_0x2f4622[_0x4e7b28(0x183)],_0x2fb345[_0x2fb345[_0x2f4622['sCDKt']]=0x4]=_0x2f4622[_0x4e7b28(0x180)];}(GroupMemberRole||(GroupMemberRole={})));function _0x17e1(){var _0x48a85f=['236667CuUxMr','601504HDGIrk','admin','owner','normal','103387XTUiTu','66aFMcjD','6307010OfRlba','474607ZPQfco','898447QTdmzU','72FPGlsa','5NQWuoo','sCDKt','6gxnNQe','9ZRLvrE','uylpJ','4024696DucioX','pSfcY'];_0x17e1=function(){return _0x48a85f;};return _0x17e1();} \ No newline at end of file +function _0x4bc8(){var _0x3e92e0=['CqYRV','1417838UlLefz','5xVSIkt','13360inmnBR','1192373aQUfGq','owner','VlFBp','3501908lYZwlX','2089428wgHjla','4023ZLpwzU','normal','1717065qLBzub','1758052dvVbsy'];_0x4bc8=function(){return _0x3e92e0;};return _0x4bc8();}(function(_0x561556,_0xdcbdee){var _0x1b1124=_0x4de8,_0x5ead07=_0x561556();while(!![]){try{var _0x34f4c0=parseInt(_0x1b1124(0x1b1))/0x1+parseInt(_0x1b1124(0x1af))/0x2+parseInt(_0x1b1124(0x1ae))/0x3+parseInt(_0x1b1124(0x1b7))/0x4*(-parseInt(_0x1b1124(0x1b2))/0x5)+-parseInt(_0x1b1124(0x1b8))/0x6+-parseInt(_0x1b1124(0x1b4))/0x7+-parseInt(_0x1b1124(0x1b3))/0x8*(parseInt(_0x1b1124(0x1ac))/0x9);if(_0x34f4c0===_0xdcbdee)break;else _0x5ead07['push'](_0x5ead07['shift']());}catch(_0x3d371f){_0x5ead07['push'](_0x5ead07['shift']());}}}(_0x4bc8,0xb1e63));function _0x4de8(_0x3998b8,_0x56fcf8){var _0x4bc864=_0x4bc8();return _0x4de8=function(_0x4de8b2,_0x370132){_0x4de8b2=_0x4de8b2-0x1ac;var _0xa86612=_0x4bc864[_0x4de8b2];return _0xa86612;},_0x4de8(_0x3998b8,_0x56fcf8);}export var GroupMemberRole;(function(_0x3ebe2d){var _0x3b8e5e=_0x4de8,_0x35dcd8={'VlFBp':_0x3b8e5e(0x1ad),'CqYRV':'admin'};_0x3ebe2d[_0x3ebe2d[_0x35dcd8[_0x3b8e5e(0x1b6)]]=0x2]=_0x3b8e5e(0x1ad),_0x3ebe2d[_0x3ebe2d[_0x35dcd8[_0x3b8e5e(0x1b0)]]=0x3]='admin',_0x3ebe2d[_0x3ebe2d[_0x3b8e5e(0x1b5)]=0x4]=_0x3b8e5e(0x1b5);}(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 6fd0352b..6fe63538 100644 --- a/src/core.lib/src/entities/index.js +++ b/src/core.lib/src/entities/index.js @@ -1 +1 @@ -(function(_0x4c9883,_0x377983){var _0x1998a7=_0x1364,_0x3c4b13=_0x4c9883();while(!![]){try{var _0x2ecbfe=parseInt(_0x1998a7(0xdf))/0x1*(parseInt(_0x1998a7(0xe9))/0x2)+parseInt(_0x1998a7(0xe8))/0x3*(parseInt(_0x1998a7(0xe5))/0x4)+parseInt(_0x1998a7(0xe7))/0x5+-parseInt(_0x1998a7(0xea))/0x6*(parseInt(_0x1998a7(0xe0))/0x7)+-parseInt(_0x1998a7(0xe4))/0x8*(-parseInt(_0x1998a7(0xe1))/0x9)+-parseInt(_0x1998a7(0xe6))/0xa+parseInt(_0x1998a7(0xe2))/0xb*(-parseInt(_0x1998a7(0xe3))/0xc);if(_0x2ecbfe===_0x377983)break;else _0x3c4b13['push'](_0x3c4b13['shift']());}catch(_0x280283){_0x3c4b13['push'](_0x3c4b13['shift']());}}}(_0x1230,0x8f979));export*from'./user';export*from'./group';export*from'./msg';function _0x1230(){var _0xe801be=['4181752GkLxsO','8eprNXl','2772270aYPMZB','3536505ijuhEd','1344837hLsfRy','2eRQjul','3296526YOSlsy','1027819hYUyDZ','7UrNtzK','9IJqNKq','11GTVcAi','20875152OPFXWh'];_0x1230=function(){return _0xe801be;};return _0x1230();}export*from'./notify';function _0x1364(_0x40726b,_0x481c12){var _0x1230e9=_0x1230();return _0x1364=function(_0x1364e4,_0x51cdbb){_0x1364e4=_0x1364e4-0xdf;var _0x296f69=_0x1230e9[_0x1364e4];return _0x296f69;},_0x1364(_0x40726b,_0x481c12);}export*from'./cache';export*from'./constructor'; \ No newline at end of file +(function(_0x1e811d,_0x4a6d06){var _0x497b35=_0x136a,_0x5e25fb=_0x1e811d();while(!![]){try{var _0x5d8080=parseInt(_0x497b35(0x14b))/0x1*(parseInt(_0x497b35(0x148))/0x2)+parseInt(_0x497b35(0x14d))/0x3+parseInt(_0x497b35(0x149))/0x4*(parseInt(_0x497b35(0x147))/0x5)+parseInt(_0x497b35(0x14e))/0x6+-parseInt(_0x497b35(0x14a))/0x7*(-parseInt(_0x497b35(0x14c))/0x8)+parseInt(_0x497b35(0x14f))/0x9+-parseInt(_0x497b35(0x146))/0xa;if(_0x5d8080===_0x4a6d06)break;else _0x5e25fb['push'](_0x5e25fb['shift']());}catch(_0x256f03){_0x5e25fb['push'](_0x5e25fb['shift']());}}}(_0x12f1,0xb68d2));export*from'./user';export*from'./group';export*from'./msg';export*from'./notify';function _0x136a(_0x2dc42b,_0x12ccb9){var _0x12f159=_0x12f1();return _0x136a=function(_0x136a46,_0x2ea02f){_0x136a46=_0x136a46-0x146;var _0x3b0420=_0x12f159[_0x136a46];return _0x3b0420;},_0x136a(_0x2dc42b,_0x12ccb9);}function _0x12f1(){var _0x1e4a35=['3706185xbLxmY','130861thykoD','8zgEvtV','2353053KsxyLF','2359590fHSEtH','4342635AEaDde','28449720UNHVpt','5zKKvZp','6vgWyty','4042132AtiquO'];_0x12f1=function(){return _0x1e4a35;};return _0x12f1();}export*from'./cache';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 7bb2329d..b0d50c12 100644 --- a/src/core.lib/src/entities/msg.js +++ b/src/core.lib/src/entities/msg.js @@ -1 +1 @@ -var _0x42d477=_0x55c9;(function(_0x23925c,_0x102e14){var _0x91a322=_0x55c9,_0xe52b94=_0x23925c();while(!![]){try{var _0x421e08=parseInt(_0x91a322(0x134))/0x1+parseInt(_0x91a322(0x124))/0x2+parseInt(_0x91a322(0x130))/0x3+-parseInt(_0x91a322(0x109))/0x4+-parseInt(_0x91a322(0x121))/0x5+parseInt(_0x91a322(0x110))/0x6*(-parseInt(_0x91a322(0x119))/0x7)+-parseInt(_0x91a322(0x111))/0x8*(parseInt(_0x91a322(0x11c))/0x9);if(_0x421e08===_0x102e14)break;else _0xe52b94['push'](_0xe52b94['shift']());}catch(_0xf47a7){_0xe52b94['push'](_0xe52b94['shift']());}}}(_0x4205,0xe2b38));function _0x4205(){var _0x19b984=['ZioWP','yZgRk','6BrQMbB','1448bUQLXB','OJYir','BWsqX','FILE','atUser','face','Ipijd','mdDQC','4316949JFydmW','NWLQX','MARKDOWN','15867rncmMd','VGkwF','oCcwh','PIC','XgzMu','7156260JFmlfl','jpg','friend','3503410msrgoo','normal','temp','RlFZv','INVITE_NEW_MEMBER','UjUbC','BKCmD','normal2','XGHqm','https://gchat.qpic.cn','MUgWG','MEMBER_NEW_TITLE','1622235iHAfcC','naZCf','notAt','jvhpC','1722857rnTAZJ','JRYNF','RPS','dice','qdwQD','ARK','CoGzq','ban','Wppdj','kicked','FACE','lDXKM','gif','memberIncrease','fcEQU','VIDEO','https://multimedia.nt.qq.com.cn','5|8|6|4|1|2|0|3|7','2878708FwqxWR','iRAsA','PbKsm','UXFFn','split'];_0x4205=function(){return _0x19b984;};return _0x4205();}export var ElementType;(function(_0x5cb246){var _0x525ef8=_0x55c9,_0x17f7d9={'JRYNF':_0x525ef8(0x108),'RlFZv':'REPLY','PbKsm':_0x525ef8(0x143),'Wppdj':_0x525ef8(0x13e),'mdDQC':_0x525ef8(0x139),'XGHqm':'PTT','lDXKM':'TEXT','VGkwF':_0x525ef8(0x114),'naZCf':_0x525ef8(0x11b),'BWsqX':_0x525ef8(0x11f)},_0x663d08=_0x17f7d9[_0x525ef8(0x135)][_0x525ef8(0x10d)]('|'),_0x36497c=0x0;while(!![]){switch(_0x663d08[_0x36497c++]){case'0':_0x5cb246[_0x5cb246[_0x17f7d9[_0x525ef8(0x127)]]=0x7]=_0x17f7d9[_0x525ef8(0x127)];continue;case'1':_0x5cb246[_0x5cb246[_0x17f7d9[_0x525ef8(0x10b)]]=0x5]=_0x17f7d9['PbKsm'];continue;case'2':_0x5cb246[_0x5cb246[_0x17f7d9[_0x525ef8(0x13c)]]=0x6]=_0x17f7d9[_0x525ef8(0x13c)];continue;case'3':_0x5cb246[_0x5cb246[_0x17f7d9[_0x525ef8(0x118)]]=0xa]=_0x17f7d9[_0x525ef8(0x118)];continue;case'4':_0x5cb246[_0x5cb246[_0x17f7d9[_0x525ef8(0x12c)]]=0x4]=_0x17f7d9[_0x525ef8(0x12c)];continue;case'5':_0x5cb246[_0x5cb246[_0x17f7d9[_0x525ef8(0x13f)]]=0x1]=_0x17f7d9[_0x525ef8(0x13f)];continue;case'6':_0x5cb246[_0x5cb246[_0x17f7d9[_0x525ef8(0x11d)]]=0x3]=_0x17f7d9[_0x525ef8(0x11d)];continue;case'7':_0x5cb246[_0x5cb246[_0x17f7d9[_0x525ef8(0x131)]]=0xe]=_0x17f7d9[_0x525ef8(0x131)];continue;case'8':_0x5cb246[_0x5cb246[_0x17f7d9[_0x525ef8(0x113)]]=0x2]=_0x17f7d9[_0x525ef8(0x113)];continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x409273){var _0x598f2a=_0x55c9,_0x4e26ad={'BKCmD':_0x598f2a(0x140),'VIPKC':'jpg'};_0x409273[_0x409273[_0x4e26ad[_0x598f2a(0x12a)]]=0x7d0]=_0x598f2a(0x140),_0x409273[_0x409273[_0x598f2a(0x122)]=0x3e8]=_0x4e26ad['VIPKC'];}(PicType||(PicType={})));export var PicSubType;(function(_0x293e84){var _0x587ced=_0x55c9,_0xe2211d={'ZioWP':_0x587ced(0x125),'MUgWG':_0x587ced(0x116)};_0x293e84[_0x293e84['normal']=0x0]=_0xe2211d[_0x587ced(0x10e)],_0x293e84[_0x293e84[_0x587ced(0x116)]=0x1]=_0xe2211d[_0x587ced(0x12e)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x5699fc){var _0x371461=_0x55c9,_0x53ae75={'XHDvp':_0x371461(0x132),'fcEQU':'atAll','NWLQX':_0x371461(0x115)};_0x5699fc[_0x5699fc[_0x53ae75['XHDvp']]=0x0]=_0x371461(0x132),_0x5699fc[_0x5699fc[_0x53ae75[_0x371461(0x142)]]=0x1]=_0x53ae75[_0x371461(0x142)],_0x5699fc[_0x5699fc[_0x53ae75[_0x371461(0x11a)]]=0x2]=_0x53ae75[_0x371461(0x11a)];}(AtType||(AtType={})));function _0x55c9(_0x12cb95,_0xf70578){var _0x4205b6=_0x4205();return _0x55c9=function(_0x55c99e,_0x14ab16){_0x55c99e=_0x55c99e-0x107;var _0x5d6187=_0x4205b6[_0x55c99e];return _0x5d6187;},_0x55c9(_0x12cb95,_0xf70578);}export var ChatType;(function(_0x563922){var _0x38a32f=_0x55c9,_0xd287b3={'OJYir':_0x38a32f(0x123),'Ipijd':'group','SfenN':_0x38a32f(0x126)};_0x563922[_0x563922[_0xd287b3[_0x38a32f(0x112)]]=0x1]=_0xd287b3[_0x38a32f(0x112)],_0x563922[_0x563922['group']=0x2]=_0xd287b3[_0x38a32f(0x117)],_0x563922[_0x563922[_0xd287b3['SfenN']]=0x64]=_0x38a32f(0x126);}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x42d477(0x12d);export const IMAGE_HTTP_HOST_NT=_0x42d477(0x107);export var GrayTipElementSubType;(function(_0x216309){var _0x49c050=_0x42d477,_0x4e874f={'CoGzq':_0x49c050(0x128),'iRAsA':_0x49c050(0x12f)};_0x216309[_0x216309[_0x4e874f[_0x49c050(0x13a)]]=0xc]=_0x4e874f[_0x49c050(0x13a)],_0x216309[_0x216309[_0x49c050(0x12f)]=0x11]=_0x4e874f[_0x49c050(0x10a)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x1b3a3e){var _0x457eca=_0x42d477,_0x45b6cb={'yZgRk':_0x457eca(0x125),'jvhpC':_0x457eca(0x12b),'XgzMu':_0x457eca(0x137)};_0x1b3a3e[_0x1b3a3e[_0x457eca(0x125)]=0x1]=_0x45b6cb[_0x457eca(0x10f)],_0x1b3a3e[_0x1b3a3e[_0x45b6cb[_0x457eca(0x133)]]=0x2]=_0x45b6cb[_0x457eca(0x133)],_0x1b3a3e[_0x1b3a3e[_0x457eca(0x137)]=0x3]=_0x45b6cb[_0x457eca(0x120)];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x331814){var _0x54f6d1=_0x42d477,_0x11c3ab={'oCcwh':_0x54f6d1(0x137),'UjUbC':_0x54f6d1(0x136)};_0x331814[_0x331814[_0x11c3ab[_0x54f6d1(0x11e)]]=0x166]=_0x11c3ab['oCcwh'],_0x331814[_0x331814[_0x11c3ab[_0x54f6d1(0x129)]]=0x167]=_0x11c3ab[_0x54f6d1(0x129)];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x2ff562){var _0x419ce9=_0x42d477,_0x21adff={'UXFFn':_0x419ce9(0x13d),'qdwQD':_0x419ce9(0x13b)};_0x2ff562[_0x2ff562[_0x419ce9(0x141)]=0x1]=_0x419ce9(0x141),_0x2ff562[_0x2ff562[_0x21adff[_0x419ce9(0x10c)]]=0x3]=_0x21adff[_0x419ce9(0x10c)],_0x2ff562[_0x2ff562['ban']=0x8]=_0x21adff[_0x419ce9(0x138)];}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file +var _0x5bd931=_0x1990;(function(_0x5bbc57,_0x4c344e){var _0x4709b2=_0x1990,_0x44ad99=_0x5bbc57();while(!![]){try{var _0x14169=-parseInt(_0x4709b2(0xcf))/0x1*(parseInt(_0x4709b2(0xea))/0x2)+-parseInt(_0x4709b2(0xd1))/0x3*(parseInt(_0x4709b2(0xec))/0x4)+parseInt(_0x4709b2(0x102))/0x5*(parseInt(_0x4709b2(0xed))/0x6)+-parseInt(_0x4709b2(0xd0))/0x7*(-parseInt(_0x4709b2(0x100))/0x8)+-parseInt(_0x4709b2(0xe2))/0x9+-parseInt(_0x4709b2(0xf8))/0xa+parseInt(_0x4709b2(0x108))/0xb;if(_0x14169===_0x4c344e)break;else _0x44ad99['push'](_0x44ad99['shift']());}catch(_0x145c0e){_0x44ad99['push'](_0x44ad99['shift']());}}}(_0x23d3,0xa18a8));export var ElementType;(function(_0x228299){var _0x126514=_0x1990,_0x66cb29={'gGNUQ':_0x126514(0xe5),'lYNqz':_0x126514(0xfd),'JYkKr':'FILE','TldKE':_0x126514(0xfb),'JyAsG':_0x126514(0xfa),'odVuy':'VIDEO','JamWq':_0x126514(0xee),'SrvRF':_0x126514(0xfe)},_0x33c555=_0x66cb29['gGNUQ']['split']('|'),_0x5ba7ea=0x0;while(!![]){switch(_0x33c555[_0x5ba7ea++]){case'0':_0x228299[_0x228299[_0x66cb29[_0x126514(0xf9)]]=0xa]=_0x66cb29[_0x126514(0xf9)];continue;case'1':_0x228299[_0x228299[_0x66cb29[_0x126514(0xdb)]]=0x3]=_0x66cb29[_0x126514(0xdb)];continue;case'2':_0x228299[_0x228299[_0x66cb29[_0x126514(0x105)]]=0x4]=_0x66cb29[_0x126514(0x105)];continue;case'3':_0x228299[_0x228299[_0x126514(0xd6)]=0x6]=_0x126514(0xd6);continue;case'4':_0x228299[_0x228299[_0x66cb29[_0x126514(0xd3)]]=0x1]=_0x66cb29[_0x126514(0xd3)];continue;case'5':_0x228299[_0x228299[_0x66cb29['odVuy']]=0x5]=_0x66cb29[_0x126514(0xeb)];continue;case'6':_0x228299[_0x228299[_0x66cb29[_0x126514(0xe6)]]=0x7]=_0x66cb29[_0x126514(0xe6)];continue;case'7':_0x228299[_0x228299[_0x66cb29[_0x126514(0xf2)]]=0x2]=_0x66cb29[_0x126514(0xf2)];continue;case'8':_0x228299[_0x228299[_0x126514(0xd7)]=0xe]=_0x126514(0xd7);continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x55d8b0){var _0x31277a=_0x1990,_0x12d7f6={'OJWTQ':_0x31277a(0xd5),'PRexu':'jpg'};_0x55d8b0[_0x55d8b0[_0x12d7f6[_0x31277a(0x104)]]=0x7d0]=_0x12d7f6[_0x31277a(0x104)],_0x55d8b0[_0x55d8b0['jpg']=0x3e8]=_0x12d7f6[_0x31277a(0xda)];}(PicType||(PicType={})));export var PicSubType;(function(_0x43b9ba){var _0x106d9f=_0x1990,_0x43fdb6={'hoxAT':_0x106d9f(0x103),'NfVBl':_0x106d9f(0x106)};_0x43b9ba[_0x43b9ba[_0x106d9f(0x103)]=0x0]=_0x43fdb6['hoxAT'],_0x43b9ba[_0x43b9ba[_0x43fdb6[_0x106d9f(0xfc)]]=0x1]=_0x43fdb6['NfVBl'];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x40c171){var _0x59ea26=_0x1990,_0x4bb700={'UMMAC':_0x59ea26(0xf1),'altqu':_0x59ea26(0xdf),'utOtt':'atUser'};_0x40c171[_0x40c171[_0x4bb700['UMMAC']]=0x0]=_0x4bb700['UMMAC'],_0x40c171[_0x40c171[_0x4bb700[_0x59ea26(0xf4)]]=0x1]=_0x4bb700['altqu'],_0x40c171[_0x40c171[_0x4bb700[_0x59ea26(0xf6)]]=0x2]=_0x4bb700[_0x59ea26(0xf6)];}(AtType||(AtType={})));export var ChatType;(function(_0x1cfe91){var _0x5823bd=_0x1990,_0x3e8e39={'UlSfD':_0x5823bd(0xf3),'OioVv':_0x5823bd(0xe9)};_0x1cfe91[_0x1cfe91[_0x3e8e39[_0x5823bd(0xe7)]]=0x1]=_0x3e8e39[_0x5823bd(0xe7)],_0x1cfe91[_0x1cfe91[_0x5823bd(0xe1)]=0x2]='group',_0x1cfe91[_0x1cfe91[_0x5823bd(0xe9)]=0x64]=_0x3e8e39[_0x5823bd(0xf5)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x5bd931(0xe3);export const IMAGE_HTTP_HOST_NT='https://multimedia.nt.qq.com.cn';export var GrayTipElementSubType;(function(_0xbaef85){var _0x5e26d6=_0x5bd931,_0x4f438a={'dnrCA':'INVITE_NEW_MEMBER','ysObj':_0x5e26d6(0xde)};_0xbaef85[_0xbaef85[_0x5e26d6(0xff)]=0xc]=_0x4f438a['dnrCA'],_0xbaef85[_0xbaef85[_0x5e26d6(0xde)]=0x11]=_0x4f438a[_0x5e26d6(0xd9)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;function _0x23d3(){var _0x555a7e=['PRexu','JYkKr','OgZfO','ebhNC','MEMBER_NEW_TITLE','atAll','RPS','group','657126gIkcAC','https://gchat.qpic.cn','normal2','4|7|1|2|5|3|6|0|8','JamWq','UlSfD','dice','temp','6WdqEzK','odVuy','212500BptGRW','54oIFcrs','REPLY','aJNmS','bEAwN','notAt','SrvRF','friend','altqu','OioVv','utOtt','aDUJv','6310090JbgsdU','lYNqz','TEXT','PTT','NfVBl','ARK','PIC','INVITE_NEW_MEMBER','472qeSgUc','kicked','632855pbnajQ','normal','OJWTQ','TldKE','face','memberIncrease','1538460bueacg','190321EmbCyf','141057WAulYo','30BlGimT','aYRrm','JyAsG','MyPHc','gif','FACE','MARKDOWN','qtiKW','ysObj'];_0x23d3=function(){return _0x555a7e;};return _0x23d3();}(function(_0x4c256c){var _0xe20146=_0x5bd931,_0x425137={'aJNmS':_0xe20146(0x103),'bEAwN':_0xe20146(0xe4),'MyPHc':_0xe20146(0xe8)};_0x4c256c[_0x4c256c[_0x425137[_0xe20146(0xef)]]=0x1]=_0x425137[_0xe20146(0xef)],_0x4c256c[_0x4c256c[_0x425137['bEAwN']]=0x2]=_0x425137[_0xe20146(0xf0)],_0x4c256c[_0x4c256c[_0x425137[_0xe20146(0xd4)]]=0x3]=_0x425137[_0xe20146(0xd4)];}(FaceType||(FaceType={})));function _0x1990(_0x1accea,_0x4a9311){var _0x23d35b=_0x23d3();return _0x1990=function(_0x19902e,_0x55ea20){_0x19902e=_0x19902e-0xcf;var _0x4d7cdb=_0x23d35b[_0x19902e];return _0x4d7cdb;},_0x1990(_0x1accea,_0x4a9311);}export var FaceIndex;(function(_0x3c7812){var _0x4c711e=_0x5bd931,_0xfaee4b={'OgZfO':_0x4c711e(0xe8),'aDUJv':_0x4c711e(0xe0)};_0x3c7812[_0x3c7812[_0xfaee4b[_0x4c711e(0xdc)]]=0x166]='dice',_0x3c7812[_0x3c7812[_0xfaee4b[_0x4c711e(0xf7)]]=0x167]=_0xfaee4b['aDUJv'];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x4cf27a){var _0x48fae6=_0x5bd931,_0x5b4661={'ebhNC':_0x48fae6(0x107),'aYRrm':_0x48fae6(0x101),'qtiKW':'ban'};_0x4cf27a[_0x4cf27a[_0x48fae6(0x107)]=0x1]=_0x5b4661[_0x48fae6(0xdd)],_0x4cf27a[_0x4cf27a[_0x5b4661['aYRrm']]=0x3]=_0x5b4661[_0x48fae6(0xd2)],_0x4cf27a[_0x4cf27a[_0x5b4661[_0x48fae6(0xd8)]]=0x8]=_0x5b4661['qtiKW'];}(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 b51fb9b5..dbc209d7 100644 --- a/src/core.lib/src/entities/notify.js +++ b/src/core.lib/src/entities/notify.js @@ -1 +1 @@ -(function(_0x13425d,_0x471325){var _0x2d5723=_0x5a4b,_0x5aba17=_0x13425d();while(!![]){try{var _0x16ffff=-parseInt(_0x2d5723(0x106))/0x1*(-parseInt(_0x2d5723(0x103))/0x2)+parseInt(_0x2d5723(0x100))/0x3*(-parseInt(_0x2d5723(0x109))/0x4)+-parseInt(_0x2d5723(0x118))/0x5*(parseInt(_0x2d5723(0x107))/0x6)+parseInt(_0x2d5723(0xff))/0x7*(parseInt(_0x2d5723(0x110))/0x8)+-parseInt(_0x2d5723(0x116))/0x9*(parseInt(_0x2d5723(0xfa))/0xa)+-parseInt(_0x2d5723(0x119))/0xb*(-parseInt(_0x2d5723(0x11a))/0xc)+parseInt(_0x2d5723(0x101))/0xd;if(_0x16ffff===_0x471325)break;else _0x5aba17['push'](_0x5aba17['shift']());}catch(_0x354ed3){_0x5aba17['push'](_0x5aba17['shift']());}}}(_0x5cde,0xb9c93));export var GroupNotifyTypes;(function(_0x346d4c){var _0x4c5826=_0x5a4b,_0x286fec={'WYdXl':_0x4c5826(0x112),'oEUcF':'INVITED_JOIN','wYnSG':_0x4c5826(0x10c),'XfJhF':_0x4c5826(0xf9),'Myiip':_0x4c5826(0x108),'bBbWE':_0x4c5826(0x117),'QAlOd':_0x4c5826(0x10b),'ybQxV':_0x4c5826(0xfd)},_0x4b0e8e=_0x286fec[_0x4c5826(0x10e)]['split']('|'),_0x36b46c=0x0;while(!![]){switch(_0x4b0e8e[_0x36b46c++]){case'0':_0x346d4c[_0x346d4c[_0x286fec['oEUcF']]=0x4]=_0x286fec['oEUcF'];continue;case'1':_0x346d4c[_0x346d4c[_0x4c5826(0x10c)]=0x1]=_0x286fec[_0x4c5826(0x10f)];continue;case'2':_0x346d4c[_0x346d4c[_0x286fec['XfJhF']]=0x7]=_0x4c5826(0xf9);continue;case'3':_0x346d4c[_0x346d4c[_0x286fec[_0x4c5826(0x115)]]=0x8]=_0x286fec['Myiip'];continue;case'4':_0x346d4c[_0x346d4c[_0x286fec[_0x4c5826(0xfb)]]=0xb]=_0x286fec['bBbWE'];continue;case'5':_0x346d4c[_0x346d4c[_0x286fec[_0x4c5826(0xfe)]]=0xc]=_0x286fec[_0x4c5826(0xfe)];continue;case'6':_0x346d4c[_0x346d4c[_0x286fec['ybQxV']]=0x9]=_0x286fec[_0x4c5826(0x105)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x2710a7){var _0x462ac5=_0x5a4b,_0x30256c={'NMYuS':_0x462ac5(0xfc),'uJRyw':'WAIT_HANDLE','QLBLi':_0x462ac5(0x114),'LIqvS':_0x462ac5(0x11b)};_0x2710a7[_0x2710a7[_0x30256c[_0x462ac5(0x10a)]]=0x0]=_0x30256c[_0x462ac5(0x10a)],_0x2710a7[_0x2710a7[_0x30256c[_0x462ac5(0x10d)]]=0x1]=_0x30256c[_0x462ac5(0x10d)],_0x2710a7[_0x2710a7[_0x30256c['QLBLi']]=0x2]=_0x462ac5(0x114),_0x2710a7[_0x2710a7[_0x30256c[_0x462ac5(0x104)]]=0x3]='REJECT';}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x3280e9){var _0x325b65=_0x5a4b,_0x45ed12={'OFlXa':_0x325b65(0x113),'pNUXD':_0x325b65(0x111)};_0x3280e9[_0x3280e9[_0x45ed12['OFlXa']]=0x1]=_0x45ed12[_0x325b65(0x102)],_0x3280e9[_0x3280e9[_0x45ed12['pNUXD']]=0x2]=_0x45ed12['pNUXD'];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));function _0x5a4b(_0x4061d1,_0x3aeb9f){var _0x5cde17=_0x5cde();return _0x5a4b=function(_0x5a4bf9,_0x3e6df4){_0x5a4bf9=_0x5a4bf9-0xf9;var _0x38a74d=_0x5cde17[_0x5a4bf9];return _0x38a74d;},_0x5a4b(_0x4061d1,_0x3aeb9f);}function _0x5cde(){var _0xe0271f=['2208177IvEyNp','MEMBER_EXIT','182635SJUOuL','22ShjdGp','8952348hIUsHM','REJECT','JOIN_REQUEST','40jkmkoz','bBbWE','IGNORE','KICK_MEMBER','QAlOd','3143blMaGo','9Ttlnyk','6542588gAFLLK','OFlXa','432iYbUWD','LIqvS','ybQxV','107GiCmij','186yKfEgg','ADMIN_SET','436376tqZcdF','NMYuS','ADMIN_UNSET','INVITE_ME','uJRyw','WYdXl','wYnSG','21088knTYOQ','reject','1|0|2|3|6|4|5','approve','APPROVE','Myiip'];_0x5cde=function(){return _0xe0271f;};return _0x5cde();} \ No newline at end of file +(function(_0x452cd5,_0x33d588){var _0x132c3a=_0x22ae,_0x2c741a=_0x452cd5();while(!![]){try{var _0x4d7b25=parseInt(_0x132c3a(0x208))/0x1+parseInt(_0x132c3a(0x1f1))/0x2*(-parseInt(_0x132c3a(0x1fd))/0x3)+-parseInt(_0x132c3a(0x201))/0x4+parseInt(_0x132c3a(0x207))/0x5*(-parseInt(_0x132c3a(0x1ef))/0x6)+-parseInt(_0x132c3a(0x1eb))/0x7*(parseInt(_0x132c3a(0x1fa))/0x8)+parseInt(_0x132c3a(0x1f5))/0x9*(parseInt(_0x132c3a(0x1ed))/0xa)+parseInt(_0x132c3a(0x202))/0xb*(parseInt(_0x132c3a(0x200))/0xc);if(_0x4d7b25===_0x33d588)break;else _0x2c741a['push'](_0x2c741a['shift']());}catch(_0x21e6c8){_0x2c741a['push'](_0x2c741a['shift']());}}}(_0x17a7,0x9a132));export var GroupNotifyTypes;function _0x22ae(_0x4b4c0d,_0x323b09){var _0x17a7cb=_0x17a7();return _0x22ae=function(_0x22aebb,_0x3dff88){_0x22aebb=_0x22aebb-0x1ea;var _0x583e6b=_0x17a7cb[_0x22aebb];return _0x583e6b;},_0x22ae(_0x4b4c0d,_0x323b09);}(function(_0x15a53d){var _0x467d15=_0x22ae,_0x592705={'ArIAX':'2|1|3|4|5|6|0','RNxVV':_0x467d15(0x1ff),'xGfxC':_0x467d15(0x1f0),'vHubS':_0x467d15(0x1f2),'FpuMM':_0x467d15(0x1fc),'yNNHg':'ADMIN_SET','lHvtD':_0x467d15(0x1ee),'MBfmA':'MEMBER_EXIT'},_0x7f78e=_0x592705[_0x467d15(0x1f7)][_0x467d15(0x1f6)]('|'),_0x4c5176=0x0;while(!![]){switch(_0x7f78e[_0x4c5176++]){case'0':_0x15a53d[_0x15a53d[_0x592705[_0x467d15(0x1ec)]]=0xc]=_0x592705['RNxVV'];continue;case'1':_0x15a53d[_0x15a53d[_0x592705['xGfxC']]=0x4]=_0x592705[_0x467d15(0x204)];continue;case'2':_0x15a53d[_0x15a53d[_0x592705[_0x467d15(0x1fe)]]=0x1]=_0x592705[_0x467d15(0x1fe)];continue;case'3':_0x15a53d[_0x15a53d[_0x592705[_0x467d15(0x203)]]=0x7]=_0x592705[_0x467d15(0x203)];continue;case'4':_0x15a53d[_0x15a53d[_0x467d15(0x206)]=0x8]=_0x592705['yNNHg'];continue;case'5':_0x15a53d[_0x15a53d[_0x592705[_0x467d15(0x1f3)]]=0x9]=_0x592705['lHvtD'];continue;case'6':_0x15a53d[_0x15a53d[_0x592705[_0x467d15(0x1ea)]]=0xb]=_0x592705[_0x467d15(0x1ea)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x368b08){var _0x165d91=_0x22ae,_0x55b7d3={'kMrNl':_0x165d91(0x1fb),'Hqswp':_0x165d91(0x1f8),'blQTX':'APPROVE','uQJtB':_0x165d91(0x209)};_0x368b08[_0x368b08[_0x55b7d3['kMrNl']]=0x0]=_0x55b7d3['kMrNl'],_0x368b08[_0x368b08['WAIT_HANDLE']=0x1]=_0x55b7d3[_0x165d91(0x1f4)],_0x368b08[_0x368b08[_0x55b7d3['blQTX']]=0x2]=_0x55b7d3['blQTX'],_0x368b08[_0x368b08[_0x55b7d3[_0x165d91(0x205)]]=0x3]=_0x55b7d3[_0x165d91(0x205)];}(GroupNotifyStatus||(GroupNotifyStatus={})));function _0x17a7(){var _0x558259=['8617GEnPKN','RNxVV','1110xtqpeE','KICK_MEMBER','67836QSFVpU','INVITED_JOIN','14792TXlZnY','INVITE_ME','lHvtD','Hqswp','1089ajuQRB','split','ArIAX','WAIT_HANDLE','AMGFD','5000KzFEta','IGNORE','JOIN_REQUEST','459nLEfdQ','vHubS','ADMIN_UNSET','1629672aHWWLU','1026064cZpKgI','198IPZxbb','FpuMM','xGfxC','uQJtB','ADMIN_SET','110xnkTBy','579362qzzBYi','REJECT','MBfmA'];_0x17a7=function(){return _0x558259;};return _0x17a7();}export var GroupRequestOperateTypes;(function(_0x46e946){var _0x468bab=_0x22ae,_0x829194={'AMGFD':'approve','IpDMK':'reject'};_0x46e946[_0x46e946[_0x829194[_0x468bab(0x1f9)]]=0x1]='approve',_0x46e946[_0x46e946[_0x829194['IpDMK']]=0x2]='reject';}(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 7ac9dbba..068b9ebd 100644 --- a/src/core.lib/src/entities/user.js +++ b/src/core.lib/src/entities/user.js @@ -1 +1 @@ -(function(_0x21dd51,_0x9ab317){var _0x560f4a=_0x3491,_0x495810=_0x21dd51();while(!![]){try{var _0x219463=parseInt(_0x560f4a(0x1c5))/0x1+parseInt(_0x560f4a(0x1c3))/0x2*(parseInt(_0x560f4a(0x1b9))/0x3)+-parseInt(_0x560f4a(0x1bc))/0x4+parseInt(_0x560f4a(0x1c4))/0x5*(parseInt(_0x560f4a(0x1c0))/0x6)+parseInt(_0x560f4a(0x1bf))/0x7+-parseInt(_0x560f4a(0x1c2))/0x8*(parseInt(_0x560f4a(0x1c1))/0x9)+parseInt(_0x560f4a(0x1bd))/0xa;if(_0x219463===_0x9ab317)break;else _0x495810['push'](_0x495810['shift']());}catch(_0x46030b){_0x495810['push'](_0x495810['shift']());}}}(_0x37b9,0x89950));function _0x37b9(){var _0x4b046c=['8GITXUl','1006CJLTYE','14285xshoKI','576027puMkgK','597qbjvVM','hTKHU','male','2180708IJDisI','3853920qKuwUr','unknown','4717776cCoAba','276YnzDxr','6823737DMkyRd'];_0x37b9=function(){return _0x4b046c;};return _0x37b9();}function _0x3491(_0x3eac75,_0x22a57b){var _0x37b9b0=_0x37b9();return _0x3491=function(_0x349130,_0xfa4ff8){_0x349130=_0x349130-0x1b9;var _0x50f2dd=_0x37b9b0[_0x349130];return _0x50f2dd;},_0x3491(_0x3eac75,_0x22a57b);}export var Sex;(function(_0x50c6e8){var _0x134ae6=_0x3491,_0x147f9f={'eXfeI':'male','hTKHU':'female'};_0x50c6e8[_0x50c6e8[_0x147f9f['eXfeI']]=0x1]=_0x134ae6(0x1bb),_0x50c6e8[_0x50c6e8[_0x147f9f['hTKHU']]=0x2]=_0x147f9f[_0x134ae6(0x1ba)],_0x50c6e8[_0x50c6e8[_0x134ae6(0x1be)]=0xff]=_0x134ae6(0x1be);}(Sex||(Sex={}))); \ No newline at end of file +(function(_0x416fe6,_0x378ffc){var _0x271c94=_0xed10,_0x37715e=_0x416fe6();while(!![]){try{var _0x525895=parseInt(_0x271c94(0x7a))/0x1*(parseInt(_0x271c94(0x84))/0x2)+parseInt(_0x271c94(0x82))/0x3+parseInt(_0x271c94(0x81))/0x4*(-parseInt(_0x271c94(0x7b))/0x5)+-parseInt(_0x271c94(0x7d))/0x6+-parseInt(_0x271c94(0x7c))/0x7+-parseInt(_0x271c94(0x76))/0x8*(parseInt(_0x271c94(0x7e))/0x9)+parseInt(_0x271c94(0x85))/0xa;if(_0x525895===_0x378ffc)break;else _0x37715e['push'](_0x37715e['shift']());}catch(_0x45117a){_0x37715e['push'](_0x37715e['shift']());}}}(_0x4818,0x41cd0));function _0x4818(){var _0x438238=['voCbd','37gIhJtZ','102045rElYSI','521990Rwehng','2923962TUGnyT','53559lTOVoH','male','qPYhi','28sNkyel','1044339fWrihQ','unknown','12262znehYO','4469280EVNYlE','64PTnUYh','female','WqRnq'];_0x4818=function(){return _0x438238;};return _0x4818();}function _0xed10(_0x188a30,_0x4d0d63){var _0x481851=_0x4818();return _0xed10=function(_0xed104d,_0x448614){_0xed104d=_0xed104d-0x76;var _0x188a48=_0x481851[_0xed104d];return _0x188a48;},_0xed10(_0x188a30,_0x4d0d63);}export var Sex;(function(_0x43ca32){var _0x1c7738=_0xed10,_0x2432ca={'voCbd':_0x1c7738(0x7f),'qPYhi':_0x1c7738(0x77),'WqRnq':_0x1c7738(0x83)};_0x43ca32[_0x43ca32[_0x2432ca[_0x1c7738(0x79)]]=0x1]=_0x2432ca[_0x1c7738(0x79)],_0x43ca32[_0x43ca32[_0x2432ca[_0x1c7738(0x80)]]=0x2]=_0x1c7738(0x77),_0x43ca32[_0x43ca32[_0x2432ca[_0x1c7738(0x78)]]=0xff]=_0x2432ca[_0x1c7738(0x78)];}(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 f7578705..969f68ac 100644 --- a/src/core.lib/src/external/hook.js +++ b/src/core.lib/src/external/hook.js @@ -1 +1 @@ -const _0x3f58ba=_0x1119;(function(_0x15065a,_0x2683a3){const _0x56163a=_0x1119,_0x3ae616=_0x15065a();while(!![]){try{const _0x4ae5d7=-parseInt(_0x56163a(0x168))/0x1*(-parseInt(_0x56163a(0x159))/0x2)+parseInt(_0x56163a(0x165))/0x3*(parseInt(_0x56163a(0x164))/0x4)+parseInt(_0x56163a(0x162))/0x5*(-parseInt(_0x56163a(0x15c))/0x6)+parseInt(_0x56163a(0x156))/0x7*(-parseInt(_0x56163a(0x15d))/0x8)+parseInt(_0x56163a(0x155))/0x9*(parseInt(_0x56163a(0x158))/0xa)+parseInt(_0x56163a(0x15a))/0xb*(-parseInt(_0x56163a(0x163))/0xc)+parseInt(_0x56163a(0x16a))/0xd;if(_0x4ae5d7===_0x2683a3)break;else _0x3ae616['push'](_0x3ae616['shift']());}catch(_0x5f3314){_0x3ae616['push'](_0x3ae616['shift']());}}}(_0x150a,0x51e0c));import{logDebug,logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';function _0x150a(){const _0x285248=['getRKey','pRDIz','23TmyMzN','GetRkey','13436865QruZgh','18igNMEa','108731qGYxUD','axUYd','1250970XgezDY','33554XjKfjk','319vpvPhR','moeHook','30agvfcy','248gXowOl','MoeHoo','加载\x20moehoo\x20失败','yIMhC','moe\x20hook\x20address','276620gDTXCp','249720FRbyWR','1420unscpj','231QIhKaL'];_0x150a=function(){return _0x285248;};return _0x150a();}function _0x1119(_0x5ba558,_0x105025){const _0x150afc=_0x150a();return _0x1119=function(_0x11190b,_0x5e7e7d){_0x11190b=_0x11190b-0x155;let _0xdcdbcd=_0x150afc[_0x11190b];return _0xdcdbcd;},_0x1119(_0x5ba558,_0x105025);}class HookApi{['moeHook']=null;constructor(){const _0x1392c6=_0x1119,_0x1e6b15={'utdBz':function(_0x1c81b8,_0x3aadd4){return _0x1c81b8(_0x3aadd4);},'axUYd':'./MoeHoo.node','yIMhC':function(_0xb1a86a,_0x49024f,_0x51dd20){return _0xb1a86a(_0x49024f,_0x51dd20);},'pRDIz':_0x1392c6(0x161),'iXebO':_0x1392c6(0x15f)};try{_0x1e6b15['utdBz'](cpModule,_0x1392c6(0x15e)),this['moeHook']=require(_0x1e6b15[_0x1392c6(0x157)]),_0x1e6b15[_0x1392c6(0x160)](logDebug,_0x1e6b15[_0x1392c6(0x167)],this[_0x1392c6(0x15b)]['HookRkey']());}catch(_0x26fd45){logError(_0x1e6b15['iXebO'],_0x26fd45);}}[_0x3f58ba(0x166)](){const _0x436251=_0x3f58ba;return this[_0x436251(0x15b)]?.[_0x436251(0x169)]()||'';}['isAvailable'](){const _0x347110=_0x3f58ba;return!!this[_0x347110(0x15b)];}}export const hookApi=new HookApi(); \ No newline at end of file +const _0x465ec4=_0x2124;function _0x3588(){const _0x17fd3f=['加载\x20moehoo\x20失败','upWfw','8bMFcSO','455PzJNiM','spmDH','24396qXHRfz','isAvailable','ooulL','6iquhyQ','6516iyyjoM','./MoeHoo.node','68119ZJIjCA','moeHook','220cXMhyS','362196BNaMyy','60905sAlmww','105804WUOZGd','HookRkey','1979047ytsyAW','STxmg','2860xgxcEC','getRKey','4ueuHms'];_0x3588=function(){return _0x17fd3f;};return _0x3588();}(function(_0x34d8fc,_0x495fa0){const _0x5d82f4=_0x2124,_0x1aeca1=_0x34d8fc();while(!![]){try{const _0x37da64=-parseInt(_0x5d82f4(0x1df))/0x1*(parseInt(_0x5d82f4(0x1dc))/0x2)+-parseInt(_0x5d82f4(0x1cb))/0x3*(-parseInt(_0x5d82f4(0x1d3))/0x4)+parseInt(_0x5d82f4(0x1d7))/0x5*(parseInt(_0x5d82f4(0x1d9))/0x6)+parseInt(_0x5d82f4(0x1cf))/0x7*(parseInt(_0x5d82f4(0x1d6))/0x8)+-parseInt(_0x5d82f4(0x1dd))/0x9*(parseInt(_0x5d82f4(0x1d1))/0xa)+-parseInt(_0x5d82f4(0x1ca))/0xb*(parseInt(_0x5d82f4(0x1cd))/0xc)+parseInt(_0x5d82f4(0x1cc))/0xd;if(_0x37da64===_0x495fa0)break;else _0x1aeca1['push'](_0x1aeca1['shift']());}catch(_0x2c8f51){_0x1aeca1['push'](_0x1aeca1['shift']());}}}(_0x3588,0x2e7af));import{logDebug,logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';function _0x2124(_0xc1df48,_0x489491){const _0x3588db=_0x3588();return _0x2124=function(_0x21240c,_0x209df4){_0x21240c=_0x21240c-0x1c9;let _0x1492e9=_0x3588db[_0x21240c];return _0x1492e9;},_0x2124(_0xc1df48,_0x489491);}class HookApi{[_0x465ec4(0x1c9)]=null;constructor(){const _0x33bf2a=_0x465ec4,_0x2c70d8={'spmDH':function(_0x41817d,_0x209090){return _0x41817d(_0x209090);},'sEYpy':'MoeHoo','upWfw':_0x33bf2a(0x1de),'STxmg':'moe\x20hook\x20address','ooulL':_0x33bf2a(0x1d4)};try{_0x2c70d8[_0x33bf2a(0x1d8)](cpModule,_0x2c70d8['sEYpy']),this['moeHook']=require(_0x2c70d8[_0x33bf2a(0x1d5)]),logDebug(_0x2c70d8[_0x33bf2a(0x1d0)],this[_0x33bf2a(0x1c9)][_0x33bf2a(0x1ce)]());}catch(_0x394f64){logError(_0x2c70d8[_0x33bf2a(0x1db)],_0x394f64);}}[_0x465ec4(0x1d2)](){const _0x666834=_0x465ec4;return this[_0x666834(0x1c9)]?.['GetRkey']()||'';}[_0x465ec4(0x1da)](){const _0x78f87b=_0x465ec4;return!!this[_0x78f87b(0x1c9)];}}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 d3318604..d3acda0f 100644 --- a/src/core.lib/src/index.js +++ b/src/core.lib/src/index.js @@ -1 +1 @@ -(function(_0x16fd73,_0x47f0d6){var _0x3a6218=_0x204c,_0xa5d45b=_0x16fd73();while(!![]){try{var _0x7ddf0b=parseInt(_0x3a6218(0x135))/0x1+-parseInt(_0x3a6218(0x130))/0x2+-parseInt(_0x3a6218(0x12f))/0x3*(-parseInt(_0x3a6218(0x133))/0x4)+-parseInt(_0x3a6218(0x132))/0x5*(parseInt(_0x3a6218(0x131))/0x6)+parseInt(_0x3a6218(0x12e))/0x7+-parseInt(_0x3a6218(0x134))/0x8+parseInt(_0x3a6218(0x136))/0x9;if(_0x7ddf0b===_0x47f0d6)break;else _0xa5d45b['push'](_0xa5d45b['shift']());}catch(_0x3aa08a){_0xa5d45b['push'](_0xa5d45b['shift']());}}}(_0x2a66,0x1b444));import _0x544a1a from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';function _0x2a66(){var _0x3ccf11=['5xIAKnq','4sInIoh','1578664XcnYjf','167213ZIQdIL','1192266QADUgS','476938yfTOoj','81633xSHUai','15408jWMLBr','469866WrJghI'];_0x2a66=function(){return _0x3ccf11;};return _0x2a66();}export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';function _0x204c(_0x340ea4,_0x1511a9){var _0x2a660f=_0x2a66();return _0x204c=function(_0x204c51,_0x3564bd){_0x204c51=_0x204c51-0x12e;var _0x120bfa=_0x2a660f[_0x204c51];return _0x120bfa;},_0x204c(_0x340ea4,_0x1511a9);}export*as Listeners from'./listeners';export*as Services from'./services';export{_0x544a1a as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file +(function(_0x3dd2ad,_0x3323dd){var _0x5829c1=_0x2401,_0x4c23c4=_0x3dd2ad();while(!![]){try{var _0x3cc59b=parseInt(_0x5829c1(0x81))/0x1*(parseInt(_0x5829c1(0x86))/0x2)+parseInt(_0x5829c1(0x80))/0x3+parseInt(_0x5829c1(0x7b))/0x4*(parseInt(_0x5829c1(0x82))/0x5)+parseInt(_0x5829c1(0x7f))/0x6+-parseInt(_0x5829c1(0x7d))/0x7*(-parseInt(_0x5829c1(0x85))/0x8)+parseInt(_0x5829c1(0x84))/0x9*(parseInt(_0x5829c1(0x7e))/0xa)+-parseInt(_0x5829c1(0x83))/0xb*(parseInt(_0x5829c1(0x7c))/0xc);if(_0x3cc59b===_0x3323dd)break;else _0x4c23c4['push'](_0x4c23c4['shift']());}catch(_0x4f6854){_0x4c23c4['push'](_0x4c23c4['shift']());}}}(_0x4ca7,0x9e2ac));import _0x4b212b from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';function _0x4ca7(){var _0x101784=['11595GjXdfX','3890876WQTybp','4903533HMjTJi','11544xhnlTa','471550aypjBi','732fejdlU','132yVzCWw','3682bftdze','20ckiaLB','6735834tNzSrf','2721735YqEAKP','1QGhJYO'];_0x4ca7=function(){return _0x101784;};return _0x4ca7();}export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';function _0x2401(_0x54d15a,_0x31ab95){var _0x4ca72e=_0x4ca7();return _0x2401=function(_0x24016a,_0x811b6d){_0x24016a=_0x24016a-0x7b;var _0x5c09d0=_0x4ca72e[_0x24016a];return _0x5c09d0;},_0x2401(_0x54d15a,_0x31ab95);}export*as Listeners from'./listeners';export*as Services from'./services';export{_0x4b212b 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 fa688f21..c81a79ce 100644 --- a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js +++ b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js @@ -1 +1 @@ -var _0x10af1f=_0x3ff6;(function(_0x38040e,_0x3ff4ae){var _0x21add2=_0x3ff6,_0x5cc0d0=_0x38040e();while(!![]){try{var _0x259111=parseInt(_0x21add2(0xea))/0x1+-parseInt(_0x21add2(0xe3))/0x2+parseInt(_0x21add2(0xec))/0x3*(-parseInt(_0x21add2(0xe7))/0x4)+parseInt(_0x21add2(0xee))/0x5*(-parseInt(_0x21add2(0xf2))/0x6)+-parseInt(_0x21add2(0xed))/0x7*(parseInt(_0x21add2(0xe1))/0x8)+-parseInt(_0x21add2(0xeb))/0x9+-parseInt(_0x21add2(0xe2))/0xa*(-parseInt(_0x21add2(0xe4))/0xb);if(_0x259111===_0x3ff4ae)break;else _0x5cc0d0['push'](_0x5cc0d0['shift']());}catch(_0x4de4c0){_0x5cc0d0['push'](_0x5cc0d0['shift']());}}}(_0x3cf6,0xb878f));function _0x3ff6(_0x4c9f6a,_0x5e0a93){var _0x3cf6af=_0x3cf6();return _0x3ff6=function(_0x3ff6dd,_0x169eeb){_0x3ff6dd=_0x3ff6dd-0xdc;var _0x2389af=_0x3cf6af[_0x3ff6dd];return _0x2389af;},_0x3ff6(_0x4c9f6a,_0x5e0a93);}function _0x3cf6(){var _0x2de8ee=['onBuddyReqChange','onDoubtBuddyReqChange','4PwsTLM','onDoubtBuddyReqUnreadNumChange','onBlockChanged','73694Wpwfud','10962855QoXNLQ','346062dTfCnK','21AuHJKT','1465lsCmqe','onAddBuddyNeedVerify','onBuddyInfoChange','onAddMeSettingChanged','19254slFZcg','onSpacePermissionInfos','onDelBatchBuddyInfos','onAvatarUrlUpdated','onBuddyListChange','onNickUpdated','onCheckBuddySettingResult','onBuddyReqUnreadCntChange','2988536nfslOE','55504690gaatmd','2948354PhaggS','11Yxtywg'];_0x3cf6=function(){return _0x2de8ee;};return _0x3cf6();}export class BuddyListener{[_0x10af1f(0xef)](_0x40bfcd){}[_0x10af1f(0xf1)](_0x3eb262){}[_0x10af1f(0xdc)](_0x546a34){}[_0x10af1f(0xe9)](_0x4c78e5){}['onBuddyDetailInfoChange'](_0x59aee6){}[_0x10af1f(0xf0)](_0x43a124){}[_0x10af1f(0xdd)](_0x313417){}['onBuddyRemarkUpdated'](_0x1df87e){}[_0x10af1f(0xe5)](_0x4f2cb6){}[_0x10af1f(0xe0)](_0x4dce9e){}[_0x10af1f(0xdf)](_0x1d57e5){}[_0x10af1f(0xf4)](_0x708ec6){}[_0x10af1f(0xe6)](_0x7a84ee){}[_0x10af1f(0xe8)](_0x5775c0){}[_0x10af1f(0xde)](_0x3d1e66){}['onSmartInfos'](_0x3ed1c8){}[_0x10af1f(0xf3)](_0x59e67a){}} \ No newline at end of file +function _0x83c9(){var _0x54aff0=['onBuddyReqUnreadCntChange','onAddMeSettingChanged','17846334fAiNXx','onDoubtBuddyReqUnreadNumChange','onSmartInfos','52FshKFs','2154SPZayi','onBuddyListChange','2380330wTtWIp','149989DwTCxk','6478710djVZLG','onDelBatchBuddyInfos','onAvatarUrlUpdated','62133rpKZHN','7453480kMOlfj','onBuddyRemarkUpdated','onBuddyDetailInfoChange','onBuddyReqChange','11641CjjIET','onDoubtBuddyReqChange','onBlockChanged'];_0x83c9=function(){return _0x54aff0;};return _0x83c9();}var _0x1652eb=_0x561e;(function(_0x36c3dd,_0x1991bc){var _0xfe1536=_0x561e,_0x2e99d8=_0x36c3dd();while(!![]){try{var _0x265fe5=-parseInt(_0xfe1536(0x16d))/0x1+-parseInt(_0xfe1536(0x181))/0x2+-parseInt(_0xfe1536(0x171))/0x3*(-parseInt(_0xfe1536(0x17e))/0x4)+parseInt(_0xfe1536(0x16e))/0x5+-parseInt(_0xfe1536(0x17f))/0x6*(parseInt(_0xfe1536(0x176))/0x7)+-parseInt(_0xfe1536(0x172))/0x8+parseInt(_0xfe1536(0x17b))/0x9;if(_0x265fe5===_0x1991bc)break;else _0x2e99d8['push'](_0x2e99d8['shift']());}catch(_0x5a86ff){_0x2e99d8['push'](_0x2e99d8['shift']());}}}(_0x83c9,0xa5c8f));function _0x561e(_0x210b24,_0x89a3ed){var _0x83c944=_0x83c9();return _0x561e=function(_0x561e33,_0x21ea1f){_0x561e33=_0x561e33-0x16d;var _0xe030a5=_0x83c944[_0x561e33];return _0xe030a5;},_0x561e(_0x210b24,_0x89a3ed);}export class BuddyListener{['onAddBuddyNeedVerify'](_0x43b07a){}[_0x1652eb(0x17a)](_0x3226fe){}[_0x1652eb(0x170)](_0x163ccd){}[_0x1652eb(0x178)](_0x165b8b){}[_0x1652eb(0x174)](_0x378d64){}['onBuddyInfoChange'](_0x8e356){}[_0x1652eb(0x180)](_0x164d8a){}[_0x1652eb(0x173)](_0xfcefbd){}[_0x1652eb(0x175)](_0x2d3e5a){}[_0x1652eb(0x179)](_0x32f0fa){}['onCheckBuddySettingResult'](_0x1960a2){}[_0x1652eb(0x16f)](_0x216e83){}[_0x1652eb(0x177)](_0x3d47f7){}[_0x1652eb(0x17c)](_0x2ba8a5){}['onNickUpdated'](_0x4ab2f9){}[_0x1652eb(0x17d)](_0xf97334){}['onSpacePermissionInfos'](_0x20b4db){}} \ 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 9fda5f0e..dfd95722 100644 --- a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js +++ b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js @@ -1 +1 @@ -function _0x2aea(_0x23ad52,_0x19d3e3){var _0x4f6da7=_0x4f6d();return _0x2aea=function(_0x2aea3e,_0x1eac3d){_0x2aea3e=_0x2aea3e-0xa5;var _0x3fb991=_0x4f6da7[_0x2aea3e];return _0x3fb991;},_0x2aea(_0x23ad52,_0x19d3e3);}var _0x44602c=_0x2aea;(function(_0x1d11a3,_0x6c4cc5){var _0x87bafd=_0x2aea,_0x5ecaf1=_0x1d11a3();while(!![]){try{var _0x2a5ed9=parseInt(_0x87bafd(0xa8))/0x1*(-parseInt(_0x87bafd(0xb1))/0x2)+parseInt(_0x87bafd(0xb0))/0x3+-parseInt(_0x87bafd(0xaa))/0x4*(parseInt(_0x87bafd(0xac))/0x5)+parseInt(_0x87bafd(0xa5))/0x6*(parseInt(_0x87bafd(0xae))/0x7)+-parseInt(_0x87bafd(0xa6))/0x8+parseInt(_0x87bafd(0xb2))/0x9+parseInt(_0x87bafd(0xa7))/0xa*(-parseInt(_0x87bafd(0xaf))/0xb);if(_0x2a5ed9===_0x6c4cc5)break;else _0x5ecaf1['push'](_0x5ecaf1['shift']());}catch(_0x24930c){_0x5ecaf1['push'](_0x5ecaf1['shift']());}}}(_0x4f6d,0x6e9d5));export class KernelFileAssistantListener{['onFileStatusChanged'](..._0x25ca36){}[_0x44602c(0xab)](..._0x19138b){}[_0x44602c(0xad)](..._0x273582){}[_0x44602c(0xa9)](..._0x5437c6){}[_0x44602c(0xb3)](..._0x156eb6){}}function _0x4f6d(){var _0x4d1327=['326375sXTAqB','46838CRQJyp','774768EsTYBP','504GSZloh','7574130ZcsZqF','onFileSearch','114ehVstf','2005648uSKErk','170xKidVU','1959xzVZAI','onFileListChanged','8NqoDRz','onSessionListChanged','1789660ybHPlI','onSessionChanged'];_0x4f6d=function(){return _0x4d1327;};return _0x4f6d();} \ No newline at end of file +function _0x5f31(_0x2769c6,_0x15e404){var _0x5e916c=_0x5e91();return _0x5f31=function(_0x5f31b6,_0xe478c8){_0x5f31b6=_0x5f31b6-0x15f;var _0x2f3aa2=_0x5e916c[_0x5f31b6];return _0x2f3aa2;},_0x5f31(_0x2769c6,_0x15e404);}var _0x1e3403=_0x5f31;(function(_0x4d39e3,_0x4e2985){var _0x3b41ab=_0x5f31,_0x175993=_0x4d39e3();while(!![]){try{var _0x5d8941=-parseInt(_0x3b41ab(0x163))/0x1+parseInt(_0x3b41ab(0x167))/0x2+-parseInt(_0x3b41ab(0x16c))/0x3*(parseInt(_0x3b41ab(0x168))/0x4)+parseInt(_0x3b41ab(0x160))/0x5+-parseInt(_0x3b41ab(0x169))/0x6+parseInt(_0x3b41ab(0x15f))/0x7*(-parseInt(_0x3b41ab(0x165))/0x8)+-parseInt(_0x3b41ab(0x162))/0x9*(-parseInt(_0x3b41ab(0x164))/0xa);if(_0x5d8941===_0x4e2985)break;else _0x175993['push'](_0x175993['shift']());}catch(_0x1d719a){_0x175993['push'](_0x175993['shift']());}}}(_0x5e91,0xc1fc0));function _0x5e91(){var _0x572bc7=['7581EmUkGv','2674LsdtRY','7280455TRfOVV','onFileSearch','9ADapqZ','1015486rvFtNr','22937470KbFVrX','5096ppmbNw','onSessionListChanged','425122SLxgGZ','2340wtrxfi','2584344mXlxRI','onSessionChanged','onFileListChanged'];_0x5e91=function(){return _0x572bc7;};return _0x5e91();}export class KernelFileAssistantListener{['onFileStatusChanged'](..._0xd6a947){}[_0x1e3403(0x166)](..._0x2927df){}[_0x1e3403(0x16a)](..._0x50506d){}[_0x1e3403(0x16b)](..._0x4c9e9e){}[_0x1e3403(0x161)](..._0x43d7fe){}} \ 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 ef5d98c5..25d2fc4b 100644 --- a/src/core.lib/src/listeners/NodeIKernelGroupListener.js +++ b/src/core.lib/src/listeners/NodeIKernelGroupListener.js @@ -1 +1 @@ -var _0x574461=_0x35d6;(function(_0x561b94,_0xcc58ba){var _0x118660=_0x35d6,_0x486b17=_0x561b94();while(!![]){try{var _0x31d76c=parseInt(_0x118660(0x172))/0x1+-parseInt(_0x118660(0x175))/0x2*(parseInt(_0x118660(0x185))/0x3)+parseInt(_0x118660(0x173))/0x4+-parseInt(_0x118660(0x17f))/0x5+-parseInt(_0x118660(0x16b))/0x6+parseInt(_0x118660(0x165))/0x7*(-parseInt(_0x118660(0x18c))/0x8)+-parseInt(_0x118660(0x162))/0x9*(-parseInt(_0x118660(0x161))/0xa);if(_0x31d76c===_0xcc58ba)break;else _0x486b17['push'](_0x486b17['shift']());}catch(_0x4a48b9){_0x486b17['push'](_0x486b17['shift']());}}}(_0x5bb8,0x995e1));function _0x35d6(_0x25f445,_0xd3eb6a){var _0x5bb8c0=_0x5bb8();return _0x35d6=function(_0x35d678,_0x2ecbd3){_0x35d678=_0x35d678-0x15a;var _0x4936ac=_0x5bb8c0[_0x35d678];return _0x4936ac;},_0x35d6(_0x25f445,_0xd3eb6a);}export class GroupListener{[_0x574461(0x160)](..._0x673879){}[_0x574461(0x16e)](..._0x647457){}[_0x574461(0x189)](..._0x297282){}[_0x574461(0x191)](..._0x4a1f4d){}[_0x574461(0x196)](..._0x509fa9){}[_0x574461(0x164)](..._0x26934d){}[_0x574461(0x15f)](..._0xfbb185){}[_0x574461(0x187)](..._0x17d611){}[_0x574461(0x163)](..._0x5e5277){}[_0x574461(0x18b)](..._0x211d9c){}['onGroupFirstBulletinNotify'](..._0x3dc410){}['onGroupListUpdate'](_0x5036e1,_0x946046){}['onGroupNotifiesUpdated'](_0x108416,_0x3f9323){}[_0x574461(0x16d)](..._0x24f6a5){}[_0x574461(0x195)](..._0x263f84){}[_0x574461(0x17d)](..._0x21d343){}[_0x574461(0x18e)](..._0x43d636){}[_0x574461(0x169)](..._0x5441b0){}[_0x574461(0x17e)](..._0x2339e8){}[_0x574461(0x180)](..._0x4cbbce){}['onMemberInfoChange'](_0x11e5d9,_0x20163b,_0x18900b){}['onMemberListChange'](_0x43102a){}[_0x574461(0x15d)](..._0x5a8c97){}[_0x574461(0x199)](..._0xe7ad81){}}export class DebugGroupListener{[_0x574461(0x160)](..._0x1af9c7){var _0x41e1dd=_0x574461,_0x1e79ad={'jIJKf':_0x41e1dd(0x178)};console[_0x41e1dd(0x181)](_0x1e79ad['jIJKf'],..._0x1af9c7);}['onGetGroupBulletinListResult'](..._0x302625){var _0x20fc94=_0x574461,_0x7ac8f={'txSgD':_0x20fc94(0x15e)};console[_0x20fc94(0x181)](_0x7ac8f[_0x20fc94(0x190)],..._0x302625);}[_0x574461(0x189)](..._0x11ba67){var _0x24612f=_0x574461;console[_0x24612f(0x181)]('onGroupAllInfoChange:',..._0x11ba67);}['onGroupBulletinChange'](..._0x45a16){var _0x2dd960=_0x574461,_0x475b1a={'SlAfD':_0x2dd960(0x18f)};console[_0x2dd960(0x181)](_0x475b1a[_0x2dd960(0x174)],..._0x45a16);}[_0x574461(0x196)](..._0x149a3e){var _0x2b4756=_0x574461,_0xafc57b={'CdaRU':_0x2b4756(0x168)};console[_0x2b4756(0x181)](_0xafc57b[_0x2b4756(0x198)],..._0x149a3e);}['onGroupArkInviteStateResult'](..._0x196f98){var _0x4698a7=_0x574461,_0x6f0ae4={'uqrtv':_0x4698a7(0x177)};console[_0x4698a7(0x181)](_0x6f0ae4[_0x4698a7(0x18a)],..._0x196f98);}['onGroupBulletinRichMediaDownloadComplete'](..._0x36de89){var _0x25fe91=_0x574461,_0x3f3435={'oqbzR':_0x25fe91(0x194)};console[_0x25fe91(0x181)](_0x3f3435[_0x25fe91(0x170)],..._0x36de89);}[_0x574461(0x187)](..._0x3e8e04){var _0x3e3135=_0x574461;console[_0x3e3135(0x181)]('onGroupConfMemberChange:',..._0x3e8e04);}[_0x574461(0x163)](..._0x5f4c7b){var _0x56bd29=_0x574461,_0x38beb1={'OBxjw':_0x56bd29(0x15a)};console[_0x56bd29(0x181)](_0x38beb1[_0x56bd29(0x193)],..._0x5f4c7b);}['onGroupExtListUpdate'](..._0x5e77ee){var _0x5e758e=_0x574461,_0x33b4f8={'rzQOW':_0x5e758e(0x192)};console['log'](_0x33b4f8['rzQOW'],..._0x5e77ee);}[_0x574461(0x15c)](..._0x11946d){var _0x5647b9=_0x574461,_0x28dae6={'MSwpQ':_0x5647b9(0x188)};console[_0x5647b9(0x181)](_0x28dae6['MSwpQ'],..._0x11946d);}['onGroupListUpdate'](..._0x4ba1c7){var _0x3f4362=_0x574461,_0x4b7948={'DOquA':_0x3f4362(0x184)};console[_0x3f4362(0x181)](_0x4b7948[_0x3f4362(0x15b)],..._0x4ba1c7);}[_0x574461(0x17a)](..._0x1b9619){var _0x110a6b=_0x574461,_0x21336c={'kvoJi':_0x110a6b(0x17b)};console[_0x110a6b(0x181)](_0x21336c['kvoJi'],..._0x1b9619);}['onGroupBulletinRichMediaProgressUpdate'](..._0x4b4014){var _0x42aa6a=_0x574461,_0x2a4853={'rUMDs':_0x42aa6a(0x182)};console[_0x42aa6a(0x181)](_0x2a4853[_0x42aa6a(0x179)],..._0x4b4014);}['onGroupNotifiesUnreadCountUpdated'](..._0x4e578e){var _0xbbc6c5=_0x574461;console[_0xbbc6c5(0x181)](_0xbbc6c5(0x171),..._0x4e578e);}['onGroupSingleScreenNotifies'](..._0x480c1f){var _0x21d36f=_0x574461,_0x50e97b={'VumDg':'onGroupSingleScreenNotifies:'};console[_0x21d36f(0x181)](_0x50e97b[_0x21d36f(0x176)],..._0x480c1f);}['onGroupsMsgMaskResult'](..._0x9a4f91){console['log']('onGroupsMsgMaskResult:',..._0x9a4f91);}[_0x574461(0x169)](..._0x29da2d){var _0x5adb40=_0x574461;console['log'](_0x5adb40(0x166),..._0x29da2d);}[_0x574461(0x17e)](..._0x310ca2){var _0x443855=_0x574461;console[_0x443855(0x181)](_0x443855(0x17c),..._0x310ca2);}[_0x574461(0x180)](..._0xf618c3){var _0x1a5997=_0x574461,_0x124f9e={'zVphJ':_0x1a5997(0x167)};console[_0x1a5997(0x181)](_0x124f9e[_0x1a5997(0x16f)],..._0xf618c3);}[_0x574461(0x186)](_0x27a562,_0x27891d,_0x4628b0){var _0x4e99cd=_0x574461;console[_0x4e99cd(0x181)]('onMemberInfoChange:',_0x27a562,_0x27891d,_0x4628b0);}[_0x574461(0x197)](..._0xbe9141){var _0x513271=_0x574461,_0x4be82f={'AnaTv':_0x513271(0x183)};console[_0x513271(0x181)](_0x4be82f[_0x513271(0x16a)],..._0xbe9141);}[_0x574461(0x15d)](..._0x13fb5c){var _0x13de3d=_0x574461,_0x2691b3={'VShdl':_0x13de3d(0x18d)};console['log'](_0x2691b3[_0x13de3d(0x16c)],..._0x13fb5c);}[_0x574461(0x199)](..._0x31689a){var _0xb858db=_0x574461;console[_0xb858db(0x181)]('onShutUpMemberListChanged:',..._0x31689a);}}function _0x5bb8(){var _0x1a8dab=['onMemberInfoChange','onGroupConfMemberChange','onGroupFirstBulletinNotify:','onGroupAllInfoChange','uqrtv','onGroupExtListUpdate','314888ksijEw','onSearchMemberChange:','onGroupsMsgMaskResult','onGroupBulletinChange:','txSgD','onGroupBulletinChange','onGroupExtListUpdate:','OBxjw','onGroupBulletinRichMediaDownloadComplete:','onGroupNotifiesUnreadCountUpdated','onGroupBulletinRemindNotify','onMemberListChange','CdaRU','onShutUpMemberListChanged','onGroupDetailInfoChange:','DOquA','onGroupFirstBulletinNotify','onSearchMemberChange','onGetGroupBulletinListResult:','onGroupBulletinRichMediaDownloadComplete','onGroupMemberLevelInfoChange','950ZsKkyG','235944yDouub','onGroupDetailInfoChange','onGroupArkInviteStateResult','56DjswpT','onGroupStatisticInfoChange:','onJoinGroupNoVerifyFlag:','onGroupBulletinRemindNotify:','onGroupStatisticInfoChange','AnaTv','3528960IzwmHU','VShdl','onGroupBulletinRichMediaProgressUpdate','onGetGroupBulletinListResult','zVphJ','oqbzR','onGroupNotifiesUnreadCountUpdated:','330299iHyyxJ','3466756xVNHPa','SlAfD','681776tEfkOO','VumDg','onGroupArkInviteStateResult:','onGroupMemberLevelInfoChange:','rUMDs','onGroupNotifiesUpdated','onGroupNotifiesUpdated:','onJoinGroupNotify:','onGroupSingleScreenNotifies','onJoinGroupNotify','5668015ZOffvJ','onJoinGroupNoVerifyFlag','log','onGroupBulletinRichMediaProgressUpdate:','onMemberListChange:','onGroupListUpdate:','9GMCpvu'];_0x5bb8=function(){return _0x1a8dab;};return _0x5bb8();} \ No newline at end of file +var _0x4f1777=_0xd2cc;function _0xd2cc(_0x343922,_0x4cd906){var _0xd46b19=_0xd46b();return _0xd2cc=function(_0xd2ccdc,_0x4b1ebf){_0xd2ccdc=_0xd2ccdc-0x1c9;var _0x322c8e=_0xd46b19[_0xd2ccdc];return _0x322c8e;},_0xd2cc(_0x343922,_0x4cd906);}(function(_0x2f9b41,_0x51b8a9){var _0x35a1ce=_0xd2cc,_0x492793=_0x2f9b41();while(!![]){try{var _0x3606ed=-parseInt(_0x35a1ce(0x1e7))/0x1*(-parseInt(_0x35a1ce(0x1f7))/0x2)+-parseInt(_0x35a1ce(0x20e))/0x3*(parseInt(_0x35a1ce(0x20b))/0x4)+-parseInt(_0x35a1ce(0x1cd))/0x5*(-parseInt(_0x35a1ce(0x204))/0x6)+parseInt(_0x35a1ce(0x20c))/0x7+parseInt(_0x35a1ce(0x20d))/0x8+-parseInt(_0x35a1ce(0x1e0))/0x9*(parseInt(_0x35a1ce(0x1f5))/0xa)+-parseInt(_0x35a1ce(0x1ca))/0xb*(parseInt(_0x35a1ce(0x1ee))/0xc);if(_0x3606ed===_0x51b8a9)break;else _0x492793['push'](_0x492793['shift']());}catch(_0x32c850){_0x492793['push'](_0x492793['shift']());}}}(_0xd46b,0x660fc));function _0xd46b(){var _0x56ac18=['KLESx','MoTvm','onGroupNotifiesUnreadCountUpdated:','onSearchMemberChange','onGroupDetailInfoChange','onGroupFirstBulletinNotify','onJoinGroupNotify:','onMemberListChange','109125oXWcCP','oPnOI','onGroupsMsgMaskResult:','onGroupBulletinRichMediaProgressUpdate:','onGroupBulletinRichMediaDownloadComplete','onGroupAllInfoChange','lXHJJ','64931TvnvxI','UNVNM','onGroupBulletinRichMediaDownloadComplete:','onGroupMemberLevelInfoChange','pwHRx','onJoinGroupNotify','onGroupBulletinRichMediaProgressUpdate','95244ufXMbr','onGroupBulletinRemindNotify:','onGroupExtListUpdate','onGroupBulletinChange','onGroupSingleScreenNotifies:','onGroupFirstBulletinNotify:','onGroupsMsgMaskResult','10kVAzaN','onGroupBulletinRemindNotify','2JYszqB','onGroupNotifiesUpdated:','onGroupConfMemberChange:','onJoinGroupNoVerifyFlag:','onShutUpMemberListChanged','onJoinGroupNoVerifyFlag','onGetGroupBulletinListResult:','FkhEX','onSearchMemberChange:','PAHMW','onGroupConfMemberChange','onMemberListChange:','onGetGroupBulletinListResult','763890fZWfsX','NJlXX','log','vyPUs','gxJhE','bukMQ','qYWkw','936DmJbsJ','4446358nDmfFI','5409272BMqxYn','7779pyAIop','onGroupDetailInfoChange:','1529dvWzJH','onGroupSingleScreenNotifies','onMemberInfoChange','30Pyxhiy','onGroupListUpdate','onGroupNotifiesUnreadCountUpdated','yLiya','onMemberInfoChange:','onGroupNotifiesUpdated','onGroupListUpdate:','onGroupExtListUpdate:','tLDVP','onGroupMemberLevelInfoChange:','onGroupArkInviteStateResult'];_0xd46b=function(){return _0x56ac18;};return _0xd46b();}export class GroupListener{[_0x4f1777(0x1ea)](..._0x42d065){}[_0x4f1777(0x203)](..._0x213ba0){}[_0x4f1777(0x1e5)](..._0x49f9eb){}[_0x4f1777(0x1f1)](..._0x43c9a8){}['onGroupBulletinRemindNotify'](..._0xa8df62){}['onGroupArkInviteStateResult'](..._0x2fcebb){}[_0x4f1777(0x1e4)](..._0x2e382b){}[_0x4f1777(0x201)](..._0x50d3ac){}[_0x4f1777(0x1dc)](..._0x36d84c){}['onGroupExtListUpdate'](..._0x581bed){}[_0x4f1777(0x1dd)](..._0x59e283){}['onGroupListUpdate'](_0x2af923,_0x29ae5c){}[_0x4f1777(0x1d2)](_0x1c0787,_0x50f3cb){}[_0x4f1777(0x1ed)](..._0x1ae4df){}[_0x4f1777(0x1cf)](..._0x3ec600){}[_0x4f1777(0x1cb)](..._0x1613f7){}['onGroupsMsgMaskResult'](..._0x3bfd32){}['onGroupStatisticInfoChange'](..._0xbd4329){}[_0x4f1777(0x1ec)](..._0x4cebba){}[_0x4f1777(0x1fc)](..._0x102660){}[_0x4f1777(0x1cc)](_0x188756,_0xb71cb6,_0x400c88){}[_0x4f1777(0x1df)](_0x3ad9ba){}[_0x4f1777(0x1db)](..._0x4c157a){}['onShutUpMemberListChanged'](..._0x9dfd5c){}}export class DebugGroupListener{[_0x4f1777(0x1ea)](..._0x128679){var _0x17f3b9=_0x4f1777,_0x84b132={'yLiya':_0x17f3b9(0x1d6)};console[_0x17f3b9(0x206)](_0x84b132[_0x17f3b9(0x1d0)],..._0x128679);}['onGetGroupBulletinListResult'](..._0x33023d){var _0xf01fdf=_0x4f1777,_0x329b22={'UNVNM':_0xf01fdf(0x1fd)};console[_0xf01fdf(0x206)](_0x329b22[_0xf01fdf(0x1e8)],..._0x33023d);}[_0x4f1777(0x1e5)](..._0x34f5b7){var _0x4ef01d=_0x4f1777,_0x5302fb={'DTbZc':'onGroupAllInfoChange:'};console[_0x4ef01d(0x206)](_0x5302fb['DTbZc'],..._0x34f5b7);}['onGroupBulletinChange'](..._0x446a4a){var _0x4cd0c5=_0x4f1777,_0x621756={'qYWkw':'onGroupBulletinChange:'};console[_0x4cd0c5(0x206)](_0x621756[_0x4cd0c5(0x20a)],..._0x446a4a);}[_0x4f1777(0x1f6)](..._0x775d6){var _0x4678c3=_0x4f1777;console[_0x4678c3(0x206)](_0x4678c3(0x1ef),..._0x775d6);}[_0x4f1777(0x1d7)](..._0x1559a7){var _0x19daa7=_0x4f1777;console[_0x19daa7(0x206)]('onGroupArkInviteStateResult:',..._0x1559a7);}[_0x4f1777(0x1e4)](..._0x3cb4d5){var _0x101ced=_0x4f1777;console[_0x101ced(0x206)](_0x101ced(0x1e9),..._0x3cb4d5);}[_0x4f1777(0x201)](..._0x4b097f){var _0x5004e8=_0x4f1777,_0x3c2ffb={'vyPUs':_0x5004e8(0x1f9)};console[_0x5004e8(0x206)](_0x3c2ffb[_0x5004e8(0x207)],..._0x4b097f);}[_0x4f1777(0x1dc)](..._0x39cc82){var _0x2f9f72=_0x4f1777;console[_0x2f9f72(0x206)](_0x2f9f72(0x1c9),..._0x39cc82);}[_0x4f1777(0x1f0)](..._0x5970ce){var _0x2bc961=_0x4f1777,_0x409e8d={'lXHJJ':_0x2bc961(0x1d4)};console['log'](_0x409e8d[_0x2bc961(0x1e6)],..._0x5970ce);}['onGroupFirstBulletinNotify'](..._0x521bc0){var _0x1b9e5e=_0x4f1777,_0x422a45={'oPnOI':_0x1b9e5e(0x1f3)};console[_0x1b9e5e(0x206)](_0x422a45[_0x1b9e5e(0x1e1)],..._0x521bc0);}[_0x4f1777(0x1ce)](..._0x4b7c91){var _0x276f4a=_0x4f1777,_0x29a285={'pwHRx':_0x276f4a(0x1d3)};console[_0x276f4a(0x206)](_0x29a285[_0x276f4a(0x1eb)],..._0x4b7c91);}[_0x4f1777(0x1d2)](..._0x33411b){var _0x563e4a=_0x4f1777,_0x182f70={'gxJhE':_0x563e4a(0x1f8)};console[_0x563e4a(0x206)](_0x182f70[_0x563e4a(0x208)],..._0x33411b);}[_0x4f1777(0x1ed)](..._0x330c84){var _0x386027=_0x4f1777,_0x492996={'bukMQ':_0x386027(0x1e3)};console['log'](_0x492996[_0x386027(0x209)],..._0x330c84);}[_0x4f1777(0x1cf)](..._0x1e69cb){var _0x4f6dca=_0x4f1777,_0x4c46c3={'KLESx':_0x4f6dca(0x1da)};console[_0x4f6dca(0x206)](_0x4c46c3[_0x4f6dca(0x1d8)],..._0x1e69cb);}[_0x4f1777(0x1cb)](..._0x3050b6){var _0x436e08=_0x4f1777;console[_0x436e08(0x206)](_0x436e08(0x1f2),..._0x3050b6);}[_0x4f1777(0x1f4)](..._0x5c4af8){var _0x17e872=_0x4f1777;console[_0x17e872(0x206)](_0x17e872(0x1e2),..._0x5c4af8);}['onGroupStatisticInfoChange'](..._0x36a39d){var _0x30b6c5=_0x4f1777;console[_0x30b6c5(0x206)]('onGroupStatisticInfoChange:',..._0x36a39d);}[_0x4f1777(0x1ec)](..._0x1e1fbf){var _0x2246ee=_0x4f1777,_0x4364ab={'MoTvm':_0x2246ee(0x1de)};console[_0x2246ee(0x206)](_0x4364ab[_0x2246ee(0x1d9)],..._0x1e1fbf);}['onJoinGroupNoVerifyFlag'](..._0x53412a){var _0x167a39=_0x4f1777,_0x300904={'FkhEX':_0x167a39(0x1fa)};console[_0x167a39(0x206)](_0x300904[_0x167a39(0x1fe)],..._0x53412a);}[_0x4f1777(0x1cc)](_0x59264b,_0x5b4f7,_0x1468c5){var _0x15882d=_0x4f1777;console[_0x15882d(0x206)](_0x15882d(0x1d1),_0x59264b,_0x5b4f7,_0x1468c5);}['onMemberListChange'](..._0x366fb8){var _0x27662b=_0x4f1777,_0x4822f0={'NJlXX':_0x27662b(0x202)};console['log'](_0x4822f0[_0x27662b(0x205)],..._0x366fb8);}[_0x4f1777(0x1db)](..._0x5e366b){var _0x411d83=_0x4f1777,_0x4c9e19={'PAHMW':_0x411d83(0x1ff)};console[_0x411d83(0x206)](_0x4c9e19[_0x411d83(0x200)],..._0x5e366b);}[_0x4f1777(0x1fb)](..._0x36fee4){var _0xae6670=_0x4f1777,_0x41f2a4={'tLDVP':'onShutUpMemberListChanged:'};console[_0xae6670(0x206)](_0x41f2a4[_0xae6670(0x1d5)],..._0x36fee4);}} \ 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 c12fab61..10db116f 100644 --- a/src/core.lib/src/listeners/NodeIKernelLoginListener.js +++ b/src/core.lib/src/listeners/NodeIKernelLoginListener.js @@ -1 +1 @@ -function _0x82ed(_0x12d722,_0x333a51){var _0x5b0a70=_0x5b0a();return _0x82ed=function(_0x82edee,_0x123278){_0x82edee=_0x82edee-0x78;var _0x4a3e64=_0x5b0a70[_0x82edee];return _0x4a3e64;},_0x82ed(_0x12d722,_0x333a51);}var _0x285073=_0x82ed;(function(_0x526271,_0x57d790){var _0x576982=_0x82ed,_0xc63cf1=_0x526271();while(!![]){try{var _0x5e575d=parseInt(_0x576982(0x89))/0x1*(parseInt(_0x576982(0x84))/0x2)+parseInt(_0x576982(0x8a))/0x3+-parseInt(_0x576982(0x7c))/0x4+-parseInt(_0x576982(0x83))/0x5*(parseInt(_0x576982(0x78))/0x6)+-parseInt(_0x576982(0x87))/0x7+parseInt(_0x576982(0x79))/0x8*(-parseInt(_0x576982(0x8e))/0x9)+parseInt(_0x576982(0x88))/0xa;if(_0x5e575d===_0x57d790)break;else _0xc63cf1['push'](_0xc63cf1['shift']());}catch(_0x7fe55e){_0xc63cf1['push'](_0xc63cf1['shift']());}}}(_0x5b0a,0x8ec2f));function _0x5b0a(){var _0x48c3b7=['onUserLoggedIn','onQRCodeSessionFailed','5qGfaau','61924XeUisn','onLoginConnecting','onLogoutSucceed','6220599AZrBZm','25671400diSztQ','32ofeFzy','1407105NFAANd','onLoginFailed','onQRCodeGetPicture','onLogoutFailed','355329eucYTm','2111856uiVsyB','216oAUvMP','onLoginState','onQRCodeSessionQuickLoginFailed','4542352jErHMz','onQRCodeSessionUserScaned','onPasswordLoginFailed','OnConfirmUnusualDeviceFailed','onQRCodeLoginSucceed'];_0x5b0a=function(){return _0x48c3b7;};return _0x5b0a();}export class LoginListener{['onLoginConnected'](..._0x49df2d){}['onLoginDisConnected'](..._0xc21ac3){}[_0x285073(0x85)](..._0x2c716b){}[_0x285073(0x8c)](_0x5cf3c3){}['onQRCodeLoginPollingStarted'](..._0x3fda99){}[_0x285073(0x7d)](..._0x105883){}[_0x285073(0x80)](_0x73305d){}[_0x285073(0x82)](..._0x322d2d){}[_0x285073(0x8b)](..._0x12212e){}[_0x285073(0x86)](..._0x50a70e){}[_0x285073(0x8d)](..._0x1ad184){}[_0x285073(0x81)](..._0x5ece24){}[_0x285073(0x7b)](..._0x5a4517){}[_0x285073(0x7e)](..._0xe375e1){}[_0x285073(0x7f)](..._0x54c302){}['onQQLoginNumLimited'](..._0x22a28b){}[_0x285073(0x7a)](..._0x20f36b){}} \ No newline at end of file +function _0x4d3a(){var _0x4cac4b=['onLoginConnecting','3099DuXJDj','onQRCodeLoginPollingStarted','onLogoutSucceed','onLoginDisConnected','onQRCodeSessionFailed','onQRCodeSessionQuickLoginFailed','onUserLoggedIn','9391632sJrBwn','onQQLoginNumLimited','onQRCodeLoginSucceed','onPasswordLoginFailed','906nbgYkJ','onLoginState','5549628tpHpvZ','4308WdKtnT','1233JPcFny','10109736JudaQo','16685890TkyedO','onQRCodeGetPicture','1271995wrrpkH','onLogoutFailed','onLoginConnected','onLoginFailed','6WZjaVE'];_0x4d3a=function(){return _0x4cac4b;};return _0x4d3a();}function _0x2bf0(_0xc1bd9e,_0x17e0a0){var _0x4d3ab7=_0x4d3a();return _0x2bf0=function(_0x2bf0e2,_0x39fd7a){_0x2bf0e2=_0x2bf0e2-0xea;var _0x56dade=_0x4d3ab7[_0x2bf0e2];return _0x56dade;},_0x2bf0(_0xc1bd9e,_0x17e0a0);}var _0x19db28=_0x2bf0;(function(_0x260733,_0xa24042){var _0x360c26=_0x2bf0,_0xecd9c2=_0x260733();while(!![]){try{var _0x1ba2f4=parseInt(_0x360c26(0xee))/0x1*(parseInt(_0x360c26(0xea))/0x2)+parseInt(_0x360c26(0xf8))/0x3*(-parseInt(_0x360c26(0xed))/0x4)+parseInt(_0x360c26(0xf2))/0x5*(-parseInt(_0x360c26(0xf6))/0x6)+parseInt(_0x360c26(0xec))/0x7+parseInt(_0x360c26(0xff))/0x8+parseInt(_0x360c26(0xef))/0x9+-parseInt(_0x360c26(0xf0))/0xa;if(_0x1ba2f4===_0xa24042)break;else _0xecd9c2['push'](_0xecd9c2['shift']());}catch(_0x342954){_0xecd9c2['push'](_0xecd9c2['shift']());}}}(_0x4d3a,0x95ada));export class LoginListener{[_0x19db28(0xf4)](..._0x2386e8){}[_0x19db28(0xfb)](..._0x30767b){}[_0x19db28(0xf7)](..._0x5c0d11){}[_0x19db28(0xf1)](_0x3ccffc){}[_0x19db28(0xf9)](..._0x2dfb13){}['onQRCodeSessionUserScaned'](..._0x8c3995){}[_0x19db28(0x101)](_0x335d03){}[_0x19db28(0xfc)](..._0x59d024){}[_0x19db28(0xf5)](..._0xc5bffe){}[_0x19db28(0xfa)](..._0x1f5304){}[_0x19db28(0xf3)](..._0x39e66b){}[_0x19db28(0xfe)](..._0x136e78){}[_0x19db28(0xfd)](..._0x323914){}[_0x19db28(0x102)](..._0x48ca02){}['OnConfirmUnusualDeviceFailed'](..._0x4bbc20){}[_0x19db28(0x100)](..._0x105dad){}[_0x19db28(0xeb)](..._0x1bd442){}} \ 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 8f40e3ca..fcb0307d 100644 --- a/src/core.lib/src/listeners/NodeIKernelMsgListener.js +++ b/src/core.lib/src/listeners/NodeIKernelMsgListener.js @@ -1 +1 @@ -var _0x4acc15=_0x1d8e;function _0x1d8e(_0x40143f,_0xa9a2f1){var _0xdca204=_0xdca2();return _0x1d8e=function(_0x1d8ec1,_0x43853a){_0x1d8ec1=_0x1d8ec1-0xe8;var _0x338520=_0xdca204[_0x1d8ec1];return _0x338520;},_0x1d8e(_0x40143f,_0xa9a2f1);}(function(_0x5ee8bc,_0x435994){var _0x466f6b=_0x1d8e,_0x378ee9=_0x5ee8bc();while(!![]){try{var _0x180f6b=-parseInt(_0x466f6b(0x123))/0x1*(parseInt(_0x466f6b(0x100))/0x2)+-parseInt(_0x466f6b(0xec))/0x3*(-parseInt(_0x466f6b(0x107))/0x4)+-parseInt(_0x466f6b(0x112))/0x5+-parseInt(_0x466f6b(0x108))/0x6+parseInt(_0x466f6b(0x111))/0x7+-parseInt(_0x466f6b(0x124))/0x8*(parseInt(_0x466f6b(0x10e))/0x9)+parseInt(_0x466f6b(0xf8))/0xa;if(_0x180f6b===_0x435994)break;else _0x378ee9['push'](_0x378ee9['shift']());}catch(_0x1d87cc){_0x378ee9['push'](_0x378ee9['shift']());}}}(_0xdca2,0x2e71a));function _0xdca2(){var _0x69fe28=['onImportOldDbProgressUpdate','onLineDev','10GgMxKM','onRecvUDCFlag','onRecvS2CMsg','onEmojiDownloadComplete','onGroupFileInfoUpdate','onMsgInfoListUpdate','onSearchGroupFileInfoUpdate','119216RFMczt','1712178NbNDJE','onCustomWithdrawConfigUpdate','onMsgInfoListAdd','onRichMediaUploadComplete','onHitCsRelatedEmojiResult','onFileMsgCome','27QczEYs','onRichMediaDownloadComplete','onMsgSettingUpdate','1194200cYztyV','841670RAOFNA','onUserSecQualityChanged','onMsgDelete','onUserTabStatusChanged','onNtMsgSyncEnd','onLogLevelChanged','onMsgRecall','onChannelFreqLimitInfoUpdate','onRecvSysMsg','onFirstViewGroupGuildMapping','onUserChannelTabStatusChanged','onEmojiResourceUpdate','onDraftUpdate','onContactUnreadCntUpdate','onBroadcastHelperProgressUpdate','onRecvGroupGuildFlag','onSendMsgError','67739pUjkQh','650632WilwQP','onMsgEventListUpdate','onNtFirstViewMsgSyncEnd','onMsgWithRichLinkInfoUpdate','onFirstViewDirectMsgUpdate','36jrRgKP','onGuildNotificationAbstractUpdate','onHitEmojiKeywordResult','onInputStatusPush','onGroupGuildUpdate','onGroupFileInfoAdd','onGroupTransferInfoAdd','onBroadcastHelperDownloadComplete','onBroadcastHelperProgerssUpdate','onHitRelatedEmojiResult','onMsgQRCodeStatusChanged','onReadFeedEventUpdate','6983650BVEQuK','onAddSendMsg','onRecvOnlineFileMsg','onNtMsgSyncStart','onTempChatInfoUpdate','onUnreadCntUpdate'];_0xdca2=function(){return _0x69fe28;};return _0xdca2();}export class MsgListener{[_0x4acc15(0xf9)](_0x622ae0){}[_0x4acc15(0xf3)](_0x3e2ff6){}[_0x4acc15(0x120)](_0x5331a3){}[_0x4acc15(0x119)](_0x455a45,_0x317b63,_0x1f605f){}[_0x4acc15(0x11f)](_0x2d152e){}[_0x4acc15(0x109)](_0x224254){}[_0x4acc15(0x11e)](_0x3e0a6e,_0x3ef087,_0x1d441c){}[_0x4acc15(0x103)](_0xec3f0a){}[_0x4acc15(0x11d)](_0x467a30){}['onFeedEventUpdate'](_0x205052){}[_0x4acc15(0x10d)](_0x3ba451){}[_0x4acc15(0xeb)](_0x204a86){}[_0x4acc15(0x11b)](_0x45856b){}['onGrabPasswordRedBag'](_0x129158,_0x52d09b,_0x2fb890,_0x20d8fa,_0x547405){}[_0x4acc15(0xf1)](_0xde5744){}[_0x4acc15(0x104)](_0x28c3d4){}[_0x4acc15(0xf0)](_0x44b4ee){}[_0x4acc15(0xf2)](_0x19c8d6){}['onGroupTransferInfoUpdate'](_0x47c3e6){}['onGuildInteractiveUpdate'](_0x5b19b2){}['onGuildMsgAbFlagChanged'](_0x3cc165){}[_0x4acc15(0xed)](_0x4979ae){}[_0x4acc15(0x10c)](_0x229076){}[_0x4acc15(0xee)](_0x51db3f){}[_0x4acc15(0xf5)](_0x9ad2b8){}[_0x4acc15(0xfe)](_0x33582e){}[_0x4acc15(0xef)](_0x21ed33){}['onKickedOffLine'](_0x471123){}[_0x4acc15(0xff)](_0x442b12){}[_0x4acc15(0x117)](_0x2a46ab){}['onMsgAbstractUpdate'](_0x211da0){}['onMsgBoxChanged'](_0x145d31){}[_0x4acc15(0x114)](_0x2ab496,_0x3a7d2b){}[_0x4acc15(0xe8)](_0x582875){}[_0x4acc15(0x10a)](_0x338d4f){}[_0x4acc15(0x105)](_0x16763c){}[_0x4acc15(0xf6)](_0x378121){}[_0x4acc15(0x118)](_0x5728e8,_0x1fbc47,_0x43302b){}['onMsgSecurityNotify'](_0x1d7508){}[_0x4acc15(0x110)](_0x14b457){}[_0x4acc15(0xe9)](){}[_0x4acc15(0x116)](){}[_0x4acc15(0xfb)](){}[_0x4acc15(0xf7)](_0x46c7eb){}[_0x4acc15(0x121)](_0x2e9dda){}['onRecvMsg'](_0x1c31f6){}['onRecvMsgSvrRspTransInfo'](_0x3cabb7,_0x26b398,_0x29f3f6,_0x217def,_0x142c7b,_0x5c4048){}[_0x4acc15(0xfa)](_0x41aca4){}[_0x4acc15(0x102)](_0x225d40){}[_0x4acc15(0x11a)](_0x7a59cc){}[_0x4acc15(0x101)](_0x11862b){}[_0x4acc15(0x10f)](_0x4ed3e4){}['onRichMediaProgerssUpdate'](_0x385ad9){}[_0x4acc15(0x10b)](_0x27fa25){}[_0x4acc15(0x106)](_0x1be7a9){}[_0x4acc15(0x122)](_0x1fddab,_0x29f1e5,_0x14c65f,_0x443e9c){}['onSysMsgNotification'](_0x9b534,_0x106989,_0x57009f,_0x2a2e26){}[_0x4acc15(0xfc)](_0x207d73){}['onUnreadCntAfterFirstView'](_0x40a3d4){}[_0x4acc15(0xfd)](_0x35ba0d){}[_0x4acc15(0x11c)](_0x853ab2){}['onUserOnlineStatusChanged'](_0xbb3172){}[_0x4acc15(0x115)](_0x115a51){}['onlineStatusBigIconDownloadPush'](_0x4bf7fe,_0x11c847,_0x398976){}['onlineStatusSmallIconDownloadPush'](_0x88a5fa,_0x113467,_0x132cb9){}[_0x4acc15(0x113)](..._0x18fc04){}[_0x4acc15(0xea)](..._0x3f6dc4){}['onRedTouchChanged'](..._0x26cf0e){}[_0x4acc15(0xf4)](..._0x67a612){}} \ No newline at end of file +function _0x41dd(_0x23ec77,_0x309d94){var _0x2ce531=_0x2ce5();return _0x41dd=function(_0x41dd1a,_0x557763){_0x41dd1a=_0x41dd1a-0x16e;var _0x5c544e=_0x2ce531[_0x41dd1a];return _0x5c544e;},_0x41dd(_0x23ec77,_0x309d94);}var _0xdda728=_0x41dd;function _0x2ce5(){var _0x50d022=['498NxEKCQ','onGroupTransferInfoAdd','onRecvMsgSvrRspTransInfo','onUserSecQualityChanged','onMsgInfoListAdd','onMsgWithRichLinkInfoUpdate','onRecvOnlineFileMsg','onGroupTransferInfoUpdate','onHitEmojiKeywordResult','onFeedEventUpdate','onLineDev','onUserOnlineStatusChanged','onRecvS2CMsg','57758Wstfcm','3915630YchfBQ','onRedTouchChanged','onGuildMsgAbFlagChanged','506hQPSlr','onAddSendMsg','onEmojiDownloadComplete','onGroupFileInfoAdd','onMsgEventListUpdate','2471094MmVHyI','onSearchGroupFileInfoUpdate','onUserTabStatusChanged','onContactUnreadCntUpdate','onMsgSettingUpdate','onMsgRecall','7TsuBUJ','onBroadcastHelperProgerssUpdate','onNtMsgSyncStart','onEmojiResourceUpdate','onImportOldDbProgressUpdate','onDraftUpdate','onSendMsgError','onlineStatusBigIconDownloadPush','onRichMediaDownloadComplete','onNtFirstViewMsgSyncEnd','onRichMediaProgerssUpdate','onRecvUDCFlag','751810dPNDJN','onMsgAbstractUpdate','onNtMsgSyncEnd','onInputStatusPush','onGuildInteractiveUpdate','onFileMsgCome','86260woVQvU','onHitRelatedEmojiResult','onMsgQRCodeStatusChanged','onRecvGroupGuildFlag','4OJeVWy','onHitCsRelatedEmojiResult','onTempChatInfoUpdate','onFirstViewGroupGuildMapping','2254252xoXKnS','onReadFeedEventUpdate','12278984lNPltl','onCustomWithdrawConfigUpdate','onRecvMsg'];_0x2ce5=function(){return _0x50d022;};return _0x2ce5();}(function(_0x5c5993,_0x428fc1){var _0x4a25c6=_0x41dd,_0x4393c4=_0x5c5993();while(!![]){try{var _0x165b5f=-parseInt(_0x4a25c6(0x187))/0x1*(-parseInt(_0x4a25c6(0x19d))/0x2)+-parseInt(_0x4a25c6(0x1a6))/0x3+parseInt(_0x4a25c6(0x18b))/0x4+-parseInt(_0x4a25c6(0x183))/0x5*(parseInt(_0x4a25c6(0x190))/0x6)+-parseInt(_0x4a25c6(0x171))/0x7*(parseInt(_0x4a25c6(0x18d))/0x8)+parseInt(_0x4a25c6(0x19e))/0x9+-parseInt(_0x4a25c6(0x17d))/0xa*(-parseInt(_0x4a25c6(0x1a1))/0xb);if(_0x165b5f===_0x428fc1)break;else _0x4393c4['push'](_0x4393c4['shift']());}catch(_0x140a0d){_0x4393c4['push'](_0x4393c4['shift']());}}}(_0x2ce5,0xbeea4));export class MsgListener{[_0xdda728(0x1a2)](_0x355be0){}['onBroadcastHelperDownloadComplete'](_0xad0e08){}['onBroadcastHelperProgressUpdate'](_0x3e9340){}['onChannelFreqLimitInfoUpdate'](_0x3388de,_0x596be1,_0x32ac90){}[_0xdda728(0x16e)](_0x5cdfa2){}[_0xdda728(0x18e)](_0x58ce80){}[_0xdda728(0x176)](_0x4098d1,_0x5e4e69,_0x42c549){}[_0xdda728(0x1a3)](_0x3dac17){}[_0xdda728(0x174)](_0x43fba1){}[_0xdda728(0x199)](_0x460d12){}[_0xdda728(0x182)](_0x58da82){}['onFirstViewDirectMsgUpdate'](_0x380ee9){}[_0xdda728(0x18a)](_0x33037f){}['onGrabPasswordRedBag'](_0x241dc5,_0x1a73cd,_0x56fcab,_0x28a653,_0x178e02){}[_0xdda728(0x1a4)](_0x4fc997){}['onGroupFileInfoUpdate'](_0x178a38){}['onGroupGuildUpdate'](_0x44fd19){}[_0xdda728(0x191)](_0x332bf2){}[_0xdda728(0x197)](_0x35a9c0){}[_0xdda728(0x181)](_0xdf9311){}[_0xdda728(0x1a0)](_0x3fa78a){}['onGuildNotificationAbstractUpdate'](_0x1e4e3c){}[_0xdda728(0x188)](_0xae2335){}[_0xdda728(0x198)](_0x5eb6fa){}[_0xdda728(0x184)](_0x4105ed){}[_0xdda728(0x175)](_0x3c4467){}[_0xdda728(0x180)](_0x540a1c){}['onKickedOffLine'](_0x3313a1){}[_0xdda728(0x19a)](_0x30a4c0){}['onLogLevelChanged'](_0x54dca3){}[_0xdda728(0x17e)](_0x22ea3d){}['onMsgBoxChanged'](_0x5e6d8a){}['onMsgDelete'](_0x43ad93,_0x515122){}[_0xdda728(0x1a5)](_0x3b59c8){}[_0xdda728(0x194)](_0x3eb500){}['onMsgInfoListUpdate'](_0x5d25eb){}[_0xdda728(0x185)](_0x153a31){}[_0xdda728(0x170)](_0x523014,_0xbe74b2,_0x13f85c){}['onMsgSecurityNotify'](_0x46542e){}[_0xdda728(0x16f)](_0x2e40d0){}[_0xdda728(0x17a)](){}[_0xdda728(0x17f)](){}[_0xdda728(0x173)](){}[_0xdda728(0x18c)](_0x57e748){}[_0xdda728(0x186)](_0x3396c6){}[_0xdda728(0x18f)](_0xc32c63){}[_0xdda728(0x192)](_0xe96dc7,_0x3322ad,_0x64c735,_0x4eb6e6,_0x2ea429,_0x42330a){}[_0xdda728(0x196)](_0x74c83b){}[_0xdda728(0x19c)](_0x51530e){}['onRecvSysMsg'](_0x1c0c86){}[_0xdda728(0x17c)](_0x2abb66){}[_0xdda728(0x179)](_0x157ef9){}[_0xdda728(0x17b)](_0x130321){}['onRichMediaUploadComplete'](_0x3b7023){}[_0xdda728(0x1a7)](_0x1b8993){}[_0xdda728(0x177)](_0x55dc42,_0x183bd0,_0x101d5e,_0x4e8c5a){}['onSysMsgNotification'](_0x33d798,_0x227299,_0x2f7eb8,_0x4671ab){}[_0xdda728(0x189)](_0x381039){}['onUnreadCntAfterFirstView'](_0x34335a){}['onUnreadCntUpdate'](_0x8bde00){}['onUserChannelTabStatusChanged'](_0x14bdf8){}[_0xdda728(0x19b)](_0x575b85){}[_0xdda728(0x1a8)](_0x4564ba){}[_0xdda728(0x178)](_0x46f8ff,_0x1c4063,_0xdc761f){}['onlineStatusSmallIconDownloadPush'](_0x27d175,_0x301621,_0xa332d6){}[_0xdda728(0x193)](..._0x25838d){}[_0xdda728(0x195)](..._0x2450b6){}[_0xdda728(0x19f)](..._0xb0baf2){}[_0xdda728(0x172)](..._0x18cad8){}} \ 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 5aec7253..f7dc1481 100644 --- a/src/core.lib/src/listeners/NodeIKernelProfileListener.js +++ b/src/core.lib/src/listeners/NodeIKernelProfileListener.js @@ -1 +1 @@ -var _0x25b3f6=_0x2b98;(function(_0x299df5,_0x1895e4){var _0x52c9ba=_0x2b98,_0x1eb2fc=_0x299df5();while(!![]){try{var _0x54953b=parseInt(_0x52c9ba(0xf2))/0x1*(parseInt(_0x52c9ba(0xf5))/0x2)+parseInt(_0x52c9ba(0xfa))/0x3*(parseInt(_0x52c9ba(0xfb))/0x4)+-parseInt(_0x52c9ba(0xee))/0x5*(-parseInt(_0x52c9ba(0xf6))/0x6)+parseInt(_0x52c9ba(0xed))/0x7+parseInt(_0x52c9ba(0xec))/0x8*(parseInt(_0x52c9ba(0xf1))/0x9)+-parseInt(_0x52c9ba(0xef))/0xa*(parseInt(_0x52c9ba(0xf3))/0xb)+-parseInt(_0x52c9ba(0xf9))/0xc*(parseInt(_0x52c9ba(0xfc))/0xd);if(_0x54953b===_0x1895e4)break;else _0x1eb2fc['push'](_0x1eb2fc['shift']());}catch(_0x4e0501){_0x1eb2fc['push'](_0x1eb2fc['shift']());}}}(_0x55c1,0x52dd1));export class ProfileListener{[_0x25b3f6(0xf4)](..._0x54ca04){}[_0x25b3f6(0xf0)](_0x3831dd){}['onStatusUpdate'](..._0x241658){}[_0x25b3f6(0xf8)](..._0x4aca99){}[_0x25b3f6(0xf7)](..._0x4e5da6){}}function _0x2b98(_0x46df04,_0xd93992){var _0x55c126=_0x55c1();return _0x2b98=function(_0x2b9890,_0x336730){_0x2b9890=_0x2b9890-0xec;var _0x29248d=_0x55c126[_0x2b9890];return _0x29248d;},_0x2b98(_0x46df04,_0xd93992);}function _0x55c1(){var _0x4c9a80=['onProfileSimpleChanged','114wBrsfe','144UZgMqE','onStrangerRemarkChanged','onSelfStatusChanged','84iiohxm','17439pMxWQu','452cfODdQ','4342741lxKIxn','1335240GOBbjl','4547676UfyheI','117340fEgnfj','20FaQSHg','onProfileDetailInfoChanged','36nilcLk','4201boBwRe','544709TTsBtD'];_0x55c1=function(){return _0x4c9a80;};return _0x55c1();} \ No newline at end of file +var _0x545620=_0x1096;(function(_0x385d15,_0x4623a0){var _0x2fd158=_0x1096,_0x4763ba=_0x385d15();while(!![]){try{var _0x4099d2=parseInt(_0x2fd158(0x1ef))/0x1+parseInt(_0x2fd158(0x1f4))/0x2*(parseInt(_0x2fd158(0x1f3))/0x3)+parseInt(_0x2fd158(0x1f1))/0x4+-parseInt(_0x2fd158(0x1ee))/0x5*(-parseInt(_0x2fd158(0x1f8))/0x6)+-parseInt(_0x2fd158(0x1fa))/0x7+parseInt(_0x2fd158(0x1f9))/0x8*(-parseInt(_0x2fd158(0x1f2))/0x9)+-parseInt(_0x2fd158(0x1f0))/0xa;if(_0x4099d2===_0x4623a0)break;else _0x4763ba['push'](_0x4763ba['shift']());}catch(_0xe11ae8){_0x4763ba['push'](_0x4763ba['shift']());}}}(_0x1dc2,0x8eb1d));export class ProfileListener{['onProfileSimpleChanged'](..._0xf65758){}[_0x545620(0x1f7)](_0x25acc7){}['onStatusUpdate'](..._0x6cb120){}[_0x545620(0x1f5)](..._0x89dd4a){}[_0x545620(0x1f6)](..._0xa686cb){}}function _0x1096(_0x368509,_0x12b94a){var _0x1dc2f0=_0x1dc2();return _0x1096=function(_0x1096e1,_0x12f630){_0x1096e1=_0x1096e1-0x1ee;var _0x4e6b3d=_0x1dc2f0[_0x1096e1];return _0x4e6b3d;},_0x1096(_0x368509,_0x12b94a);}function _0x1dc2(){var _0x28ada8=['onSelfStatusChanged','onStrangerRemarkChanged','onProfileDetailInfoChanged','2420454nppUYl','8eSQecr','7048272krsMVl','10cpxKyV','887048lyDAcE','4530720LdOtcM','1378240wsZjQA','6286239DeZywc','45tromzz','93932dpdPbt'];_0x1dc2=function(){return _0x28ada8;};return _0x1dc2();} \ 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 d7dc2d22..8c1c4e03 100644 --- a/src/core.lib/src/listeners/NodeIKernelRobotListener.js +++ b/src/core.lib/src/listeners/NodeIKernelRobotListener.js @@ -1 +1 @@ -var _0x4c5c18=_0x2078;function _0x2078(_0xce22f9,_0x4e5efa){var _0x166dcd=_0x166d();return _0x2078=function(_0x207838,_0x305c88){_0x207838=_0x207838-0x10a;var _0x32d417=_0x166dcd[_0x207838];return _0x32d417;},_0x2078(_0xce22f9,_0x4e5efa);}(function(_0x1355bd,_0x4ab387){var _0x55f5c2=_0x2078,_0x5b00c4=_0x1355bd();while(!![]){try{var _0x3a655f=parseInt(_0x55f5c2(0x113))/0x1*(parseInt(_0x55f5c2(0x10e))/0x2)+parseInt(_0x55f5c2(0x10a))/0x3+parseInt(_0x55f5c2(0x114))/0x4+parseInt(_0x55f5c2(0x10d))/0x5*(parseInt(_0x55f5c2(0x112))/0x6)+-parseInt(_0x55f5c2(0x110))/0x7*(parseInt(_0x55f5c2(0x111))/0x8)+parseInt(_0x55f5c2(0x10f))/0x9+-parseInt(_0x55f5c2(0x10c))/0xa;if(_0x3a655f===_0x4ab387)break;else _0x5b00c4['push'](_0x5b00c4['shift']());}catch(_0x137b0d){_0x5b00c4['push'](_0x5b00c4['shift']());}}}(_0x166d,0x49246));export class KernelRobotListener{['onRobotFriendListChanged'](..._0x375b0b){}['onRobotListChanged'](..._0x569982){}[_0x4c5c18(0x10b)](..._0x496753){}}function _0x166d(){var _0x159b8c=['15800ULBtEE','6rTKGfd','14684FxRWEA','1981840mpEwmI','705948ewkYoS','onRobotProfileChanged','4866010ErPFBC','1297795zBVQab','14RNrZfS','668187YJCrEq','1351UVUmHE'];_0x166d=function(){return _0x159b8c;};return _0x166d();} \ No newline at end of file +var _0x262020=_0x187c;function _0x187c(_0x343f50,_0x4076a2){var _0x15c4f8=_0x15c4();return _0x187c=function(_0x187c2c,_0x12489b){_0x187c2c=_0x187c2c-0x138;var _0x4e8902=_0x15c4f8[_0x187c2c];return _0x4e8902;},_0x187c(_0x343f50,_0x4076a2);}(function(_0x3af52b,_0x39fb1c){var _0x5a88ff=_0x187c,_0x20298e=_0x3af52b();while(!![]){try{var _0x470128=parseInt(_0x5a88ff(0x139))/0x1+parseInt(_0x5a88ff(0x138))/0x2*(parseInt(_0x5a88ff(0x13e))/0x3)+parseInt(_0x5a88ff(0x13f))/0x4*(parseInt(_0x5a88ff(0x13c))/0x5)+-parseInt(_0x5a88ff(0x143))/0x6*(-parseInt(_0x5a88ff(0x142))/0x7)+-parseInt(_0x5a88ff(0x144))/0x8+parseInt(_0x5a88ff(0x13a))/0x9+-parseInt(_0x5a88ff(0x13b))/0xa;if(_0x470128===_0x39fb1c)break;else _0x20298e['push'](_0x20298e['shift']());}catch(_0x5b3d35){_0x20298e['push'](_0x20298e['shift']());}}}(_0x15c4,0xe8f6b));function _0x15c4(){var _0x2c86c6=['10464890FVlhhi','1543170uPcFxt','onRobotListChanged','15BsDLVx','8CWNwhD','onRobotFriendListChanged','onRobotProfileChanged','20853yjEnGl','2022lbDzpS','10914344IPLsWl','7334hIsFgJ','1064523vbQHhr','5948568KRdpbz'];_0x15c4=function(){return _0x2c86c6;};return _0x15c4();}export class KernelRobotListener{[_0x262020(0x140)](..._0x23e77b){}[_0x262020(0x13d)](..._0x22d16f){}[_0x262020(0x141)](..._0x3e2e7a){}} \ 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 2366af59..2d1db197 100644 --- a/src/core.lib/src/listeners/NodeIKernelSessionListener.js +++ b/src/core.lib/src/listeners/NodeIKernelSessionListener.js @@ -1 +1 @@ -var _0x592279=_0x41b1;(function(_0x5c3449,_0x6e327d){var _0x226ecf=_0x41b1,_0x142fc8=_0x5c3449();while(!![]){try{var _0x1ab3f7=-parseInt(_0x226ecf(0x1ad))/0x1*(parseInt(_0x226ecf(0x1af))/0x2)+parseInt(_0x226ecf(0x1b0))/0x3*(-parseInt(_0x226ecf(0x1b1))/0x4)+-parseInt(_0x226ecf(0x1b4))/0x5+parseInt(_0x226ecf(0x1b6))/0x6+parseInt(_0x226ecf(0x1ac))/0x7*(-parseInt(_0x226ecf(0x1b8))/0x8)+parseInt(_0x226ecf(0x1b3))/0x9+parseInt(_0x226ecf(0x1b5))/0xa*(parseInt(_0x226ecf(0x1b7))/0xb);if(_0x1ab3f7===_0x6e327d)break;else _0x142fc8['push'](_0x142fc8['shift']());}catch(_0x500de2){_0x142fc8['push'](_0x142fc8['shift']());}}}(_0x3c3f,0xc97b0));function _0x41b1(_0x28cee1,_0x3e6962){var _0x3c3fbd=_0x3c3f();return _0x41b1=function(_0x41b140,_0xc36ffd){_0x41b140=_0x41b140-0x1ac;var _0x618ffb=_0x3c3fbd[_0x41b140];return _0x618ffb;},_0x41b1(_0x28cee1,_0x3e6962);}export class SessionListener{[_0x592279(0x1ae)](_0x3ad8ca){}['onGProSessionCreate'](_0x4eb58b){}[_0x592279(0x1b2)](_0x560d00){}[_0x592279(0x1ba)](_0x5c8694){}[_0x592279(0x1b9)](_0x25415d){}['onGetSelfTinyId'](_0xabfe69){}}function _0x3c3f(){var _0x522460=['1047080pRmeQF','onSessionInitComplete','14303439tRqfWa','5561475vLALrM','20MrtNxA','3585462OhfKig','2779898ApjizD','8xAyGGC','onUserOnlineResult','onOpentelemetryInit','1737309ssHowN','61192vDhmpb','onNTSessionCreate','8CscAcB','3XvOMMO'];_0x3c3f=function(){return _0x522460;};return _0x3c3f();} \ No newline at end of file +var _0x43cc7e=_0x5bee;function _0x5bee(_0x21ba40,_0x131a4b){var _0x3ccfaf=_0x3ccf();return _0x5bee=function(_0x5bee12,_0x3d3d6c){_0x5bee12=_0x5bee12-0x135;var _0x3aeca1=_0x3ccfaf[_0x5bee12];return _0x3aeca1;},_0x5bee(_0x21ba40,_0x131a4b);}(function(_0x49621c,_0xf5b60d){var _0x82b7ad=_0x5bee,_0x389479=_0x49621c();while(!![]){try{var _0x129ac1=parseInt(_0x82b7ad(0x13a))/0x1*(parseInt(_0x82b7ad(0x13b))/0x2)+parseInt(_0x82b7ad(0x135))/0x3+parseInt(_0x82b7ad(0x143))/0x4*(parseInt(_0x82b7ad(0x142))/0x5)+parseInt(_0x82b7ad(0x13e))/0x6*(-parseInt(_0x82b7ad(0x13c))/0x7)+parseInt(_0x82b7ad(0x138))/0x8*(-parseInt(_0x82b7ad(0x141))/0x9)+parseInt(_0x82b7ad(0x13f))/0xa+-parseInt(_0x82b7ad(0x136))/0xb*(parseInt(_0x82b7ad(0x13d))/0xc);if(_0x129ac1===_0xf5b60d)break;else _0x389479['push'](_0x389479['shift']());}catch(_0x24373b){_0x389479['push'](_0x389479['shift']());}}}(_0x3ccf,0x99d44));function _0x3ccf(){var _0x36c18f=['9VdsVUm','5515oZBfjP','240rXJieV','1911552pbYqWx','872366pkvjdX','onNTSessionCreate','3115144CufTJn','onSessionInitComplete','16079ReXoIc','28jSJOQc','166985JKUHle','84BFIQgc','108EpRlHF','10755390jbsdHJ','onUserOnlineResult'];_0x3ccf=function(){return _0x36c18f;};return _0x3ccf();}export class SessionListener{[_0x43cc7e(0x137)](_0x282fd3){}['onGProSessionCreate'](_0x579350){}[_0x43cc7e(0x139)](_0xfc0003){}['onOpentelemetryInit'](_0x5a618b){}[_0x43cc7e(0x140)](_0x4b3265){}['onGetSelfTinyId'](_0xdad46){}} \ 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 e8748aae..a3d33430 100644 --- a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js +++ b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js @@ -1 +1 @@ -function _0x33a3(_0x39b490,_0x35250c){var _0x563672=_0x5636();return _0x33a3=function(_0x33a3a7,_0x4b6ffe){_0x33a3a7=_0x33a3a7-0x10a;var _0x30e4f1=_0x563672[_0x33a3a7];return _0x30e4f1;},_0x33a3(_0x39b490,_0x35250c);}var _0x5b751b=_0x33a3;(function(_0x328e41,_0x22f3a4){var _0x5a6397=_0x33a3,_0x3976d8=_0x328e41();while(!![]){try{var _0x24b05e=-parseInt(_0x5a6397(0x10f))/0x1+-parseInt(_0x5a6397(0x112))/0x2*(-parseInt(_0x5a6397(0x113))/0x3)+-parseInt(_0x5a6397(0x117))/0x4*(parseInt(_0x5a6397(0x111))/0x5)+parseInt(_0x5a6397(0x116))/0x6*(-parseInt(_0x5a6397(0x110))/0x7)+parseInt(_0x5a6397(0x10b))/0x8*(parseInt(_0x5a6397(0x10a))/0x9)+-parseInt(_0x5a6397(0x115))/0xa*(-parseInt(_0x5a6397(0x10d))/0xb)+-parseInt(_0x5a6397(0x114))/0xc;if(_0x24b05e===_0x22f3a4)break;else _0x3976d8['push'](_0x3976d8['shift']());}catch(_0x1c6248){_0x3976d8['push'](_0x3976d8['shift']());}}}(_0x5636,0x25521));function _0x5636(){var _0x388a42=['8072xBrLZA','onCleanCacheStorageChanged','3036XQiqYa','onChatCleanDone','59225XTTSAg','648347PWeCSe','805EqnKVX','538834tqJdfY','3FikJUG','1569492YFklTk','4690isrZDO','6eZvfnX','2148NhXTfn','onCleanCacheProgressChanged','1098XxKwvt'];_0x5636=function(){return _0x388a42;};return _0x5636();}export class StorageCleanListener{[_0x5b751b(0x118)](_0x5ab385){}['onScanCacheProgressChanged'](_0x24db5b){}[_0x5b751b(0x10c)](_0x101be8){}['onFinishScan'](_0x2fe6cf){}[_0x5b751b(0x10e)](_0x3ec951){}} \ No newline at end of file +var _0x5e7398=_0x3410;(function(_0xe6bac,_0x241ad0){var _0xec39c8=_0x3410,_0x3bd5ba=_0xe6bac();while(!![]){try{var _0x574c9f=parseInt(_0xec39c8(0x1d4))/0x1+parseInt(_0xec39c8(0x1d1))/0x2+-parseInt(_0xec39c8(0x1d3))/0x3*(-parseInt(_0xec39c8(0x1c6))/0x4)+parseInt(_0xec39c8(0x1cd))/0x5*(-parseInt(_0xec39c8(0x1c9))/0x6)+parseInt(_0xec39c8(0x1ce))/0x7*(-parseInt(_0xec39c8(0x1cb))/0x8)+-parseInt(_0xec39c8(0x1c7))/0x9*(-parseInt(_0xec39c8(0x1d2))/0xa)+-parseInt(_0xec39c8(0x1cf))/0xb*(parseInt(_0xec39c8(0x1ca))/0xc);if(_0x574c9f===_0x241ad0)break;else _0x3bd5ba['push'](_0x3bd5ba['shift']());}catch(_0x53a9f5){_0x3bd5ba['push'](_0x3bd5ba['shift']());}}}(_0x3013,0xc15c6));function _0x3013(){var _0x410563=['28794AGZHZz','53460tKGiUl','8uEavmf','onFinishScan','1390Ihyinh','5417853Udetxj','869dKQEoB','onScanCacheProgressChanged','2212910zkGuqH','1270iozBjN','15EXEXQi','1039221oTOraG','666356ofhOVA','19377diKxYY','onChatCleanDone'];_0x3013=function(){return _0x410563;};return _0x3013();}function _0x3410(_0x4f6992,_0x3c3ceb){var _0x30139e=_0x3013();return _0x3410=function(_0x34101e,_0x274ea1){_0x34101e=_0x34101e-0x1c6;var _0x3734d4=_0x30139e[_0x34101e];return _0x3734d4;},_0x3410(_0x4f6992,_0x3c3ceb);}export class StorageCleanListener{['onCleanCacheProgressChanged'](_0xfb0a3d){}[_0x5e7398(0x1d0)](_0x1b6a6d){}['onCleanCacheStorageChanged'](_0x52a58e){}[_0x5e7398(0x1cc)](_0x404159){}[_0x5e7398(0x1c8)](_0x2a5c58){}} \ 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 eedf071c..febf9254 100644 --- a/src/core.lib/src/listeners/index.js +++ b/src/core.lib/src/listeners/index.js @@ -1 +1 @@ -(function(_0x8c04bf,_0x5e7762){var _0x58354c=_0x29ed,_0x153c44=_0x8c04bf();while(!![]){try{var _0x4eb94e=parseInt(_0x58354c(0x157))/0x1+parseInt(_0x58354c(0x156))/0x2+-parseInt(_0x58354c(0x155))/0x3+-parseInt(_0x58354c(0x158))/0x4+-parseInt(_0x58354c(0x152))/0x5*(-parseInt(_0x58354c(0x151))/0x6)+parseInt(_0x58354c(0x154))/0x7+-parseInt(_0x58354c(0x159))/0x8*(parseInt(_0x58354c(0x153))/0x9);if(_0x4eb94e===_0x5e7762)break;else _0x153c44['push'](_0x153c44['shift']());}catch(_0x556de9){_0x153c44['push'](_0x153c44['shift']());}}}(_0x48e5,0xb9851));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';function _0x48e5(){var _0x259ff5=['256160GKbpSS','219747bZvhvF','1785492vYXSFJ','112664jnEmYx','470790xrBRyO','95ymvAOg','387nrPyDK','5862143fGurmY','2592840TEJjuh'];_0x48e5=function(){return _0x259ff5;};return _0x48e5();}export*from'./NodeIKernelBuddyListener';function _0x29ed(_0x2e0c23,_0x1abf8e){var _0x48e564=_0x48e5();return _0x29ed=function(_0x29ed5c,_0x8156c){_0x29ed5c=_0x29ed5c-0x151;var _0x811987=_0x48e564[_0x29ed5c];return _0x811987;},_0x29ed(_0x2e0c23,_0x1abf8e);}export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file +(function(_0x53069b,_0x8872c9){var _0x3764fe=_0x2550,_0x417b5b=_0x53069b();while(!![]){try{var _0x2adfe5=parseInt(_0x3764fe(0x1ce))/0x1*(-parseInt(_0x3764fe(0x1c6))/0x2)+parseInt(_0x3764fe(0x1ca))/0x3+parseInt(_0x3764fe(0x1c7))/0x4*(-parseInt(_0x3764fe(0x1cc))/0x5)+parseInt(_0x3764fe(0x1cb))/0x6+-parseInt(_0x3764fe(0x1c9))/0x7+parseInt(_0x3764fe(0x1c8))/0x8+-parseInt(_0x3764fe(0x1cd))/0x9*(-parseInt(_0x3764fe(0x1c5))/0xa);if(_0x2adfe5===_0x8872c9)break;else _0x417b5b['push'](_0x417b5b['shift']());}catch(_0x25ca9e){_0x417b5b['push'](_0x417b5b['shift']());}}}(_0x4ffe,0xa7527));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';function _0x2550(_0x374cac,_0x28fa10){var _0x4ffe77=_0x4ffe();return _0x2550=function(_0x2550a0,_0x281322){_0x2550a0=_0x2550a0-0x1c5;var _0x3bbd63=_0x4ffe77[_0x2550a0];return _0x3bbd63;},_0x2550(_0x374cac,_0x28fa10);}function _0x4ffe(){var _0x5c3814=['7126084xlWymZ','710496eUAWdX','2882934CNhpbW','1239520tWsvRl','12591Ibftnf','18743CxKFar','9410urpjOU','100jqhejG','8mXIOgn','8820328cNoaPn'];_0x4ffe=function(){return _0x5c3814;};return _0x4ffe();}export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file diff --git a/src/core.lib/src/services/NodeIKernelRobotService.d.ts b/src/core.lib/src/services/NodeIKernelRobotService.d.ts index d17c5f03..817339da 100644 --- a/src/core.lib/src/services/NodeIKernelRobotService.d.ts +++ b/src/core.lib/src/services/NodeIKernelRobotService.d.ts @@ -14,5 +14,10 @@ export interface NodeIKernelRobotService { fetchAllRobots(arg1: unknown, arg2: unknown): unknown; removeAllRecommendCache(): unknown; setRobotPickTts(arg1: unknown, arg2: unknown): unknown; + getRobotUinRange(data: any): Promise<{ + response: { + robotUinRanges: any; + }; + }>; isNull(): boolean; } diff --git a/src/core.lib/src/services/NodeIKernelTipOffService.d.ts b/src/core.lib/src/services/NodeIKernelTipOffService.d.ts new file mode 100644 index 00000000..c0b6f418 --- /dev/null +++ b/src/core.lib/src/services/NodeIKernelTipOffService.d.ts @@ -0,0 +1,13 @@ +import { GeneralCallResult } from "./common"; +export interface NodeIKernelTipOffService { + addKernelTipOffListener(listener: unknown): void; + removeKernelTipOffListener(listenerId: unknown): void; + tipOffSendJsData(args: unknown[]): Promise; + getPskey(domainList: string[], nocache: boolean): Promise; + }>; + tipOffSendJsData(args: unknown[]): Promise; + tipOffMsgs(args: unknown[]): Promise; + encodeUinAesInfo(args: unknown[]): Promise; + isNull(): boolean; +} diff --git a/src/core.lib/src/services/NodeIKernelTipOffService.js b/src/core.lib/src/services/NodeIKernelTipOffService.js new file mode 100644 index 00000000..17bca460 --- /dev/null +++ b/src/core.lib/src/services/NodeIKernelTipOffService.js @@ -0,0 +1 @@ +export{}; \ 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 ae897257..630024fc 100644 --- a/src/core.lib/src/services/common.js +++ b/src/core.lib/src/services/common.js @@ -1 +1 @@ -function _0x3ca4(_0xa7bf6a,_0x1b7ea5){var _0xd9f78f=_0xd9f7();return _0x3ca4=function(_0x3ca4b4,_0x458adf){_0x3ca4b4=_0x3ca4b4-0xdb;var _0x298e42=_0xd9f78f[_0x3ca4b4];return _0x298e42;},_0x3ca4(_0xa7bf6a,_0x1b7ea5);}(function(_0x357931,_0x5d8b19){var _0xf7285b=_0x3ca4,_0x45fd8c=_0x357931();while(!![]){try{var _0x237171=-parseInt(_0xf7285b(0xe4))/0x1*(parseInt(_0xf7285b(0xdb))/0x2)+parseInt(_0xf7285b(0xe3))/0x3*(parseInt(_0xf7285b(0xdd))/0x4)+parseInt(_0xf7285b(0xe5))/0x5+-parseInt(_0xf7285b(0xde))/0x6*(parseInt(_0xf7285b(0xe1))/0x7)+parseInt(_0xf7285b(0xdc))/0x8+parseInt(_0xf7285b(0xe2))/0x9*(-parseInt(_0xf7285b(0xdf))/0xa)+parseInt(_0xf7285b(0xe0))/0xb;if(_0x237171===_0x5d8b19)break;else _0x45fd8c['push'](_0x45fd8c['shift']());}catch(_0x50751f){_0x45fd8c['push'](_0x45fd8c['shift']());}}}(_0xd9f7,0x28ea4));export var GeneralCallResultStatus;(function(_0x3b4066){_0x3b4066[_0x3b4066['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));function _0xd9f7(){var _0x43cd9b=['9459rdcsSe','3IirkaJ','1EroqnN','383855sdgbfK','451760XJwwLL','1712008GYBPUk','561784NBBjsW','12PHceki','1770QaJGrz','2326115dMXrHq','221158IYlVXK'];_0xd9f7=function(){return _0x43cd9b;};return _0xd9f7();} \ No newline at end of file +(function(_0x5108dd,_0x5b3a74){var _0x2d876e=_0x4cfa,_0x4d708c=_0x5108dd();while(!![]){try{var _0x5731a2=-parseInt(_0x2d876e(0xf1))/0x1+-parseInt(_0x2d876e(0xee))/0x2*(-parseInt(_0x2d876e(0xea))/0x3)+-parseInt(_0x2d876e(0xec))/0x4+parseInt(_0x2d876e(0xf0))/0x5+parseInt(_0x2d876e(0xef))/0x6*(parseInt(_0x2d876e(0xf3))/0x7)+parseInt(_0x2d876e(0xed))/0x8*(parseInt(_0x2d876e(0xeb))/0x9)+parseInt(_0x2d876e(0xf2))/0xa*(-parseInt(_0x2d876e(0xe9))/0xb);if(_0x5731a2===_0x5b3a74)break;else _0x4d708c['push'](_0x4d708c['shift']());}catch(_0x19b8a5){_0x4d708c['push'](_0x4d708c['shift']());}}}(_0x7775,0x1b850));function _0x4cfa(_0x39690b,_0x2ce23a){var _0x77751=_0x7775();return _0x4cfa=function(_0x4cfad9,_0x219af9){_0x4cfad9=_0x4cfad9-0xe9;var _0x5bbb9e=_0x77751[_0x4cfad9];return _0x5bbb9e;},_0x4cfa(_0x39690b,_0x2ce23a);}export var GeneralCallResultStatus;function _0x7775(){var _0x41cf17=['612THjjzF','795444IXzKtu','26192vovYoS','2784PyYjGb','522RdyGMo','685095CZlRZq','114667luATVJ','2220xEkGlV','4599kHEDZa','2981gYTAvK','150LmniUx'];_0x7775=function(){return _0x41cf17;};return _0x7775();}(function(_0x441ad9){_0x441ad9[_0x441ad9['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file diff --git a/src/core.lib/src/services/index.d.ts b/src/core.lib/src/services/index.d.ts index 6fcb601e..b17c49bd 100644 --- a/src/core.lib/src/services/index.d.ts +++ b/src/core.lib/src/services/index.d.ts @@ -13,3 +13,4 @@ export * from './NodeIKernelStorageCleanService'; export * from './NodeIKernelRobotService'; export * from './NodeIKernelRichMediaService'; export * from './NodeIKernelDbToolsService'; +export * from './NodeIKernelTipOffService'; diff --git a/src/core.lib/src/services/index.js b/src/core.lib/src/services/index.js index 43b832de..af2fa6f0 100644 --- a/src/core.lib/src/services/index.js +++ b/src/core.lib/src/services/index.js @@ -1 +1 @@ -(function(_0x97e45c,_0x45deff){var _0x51eca0=_0x388d,_0x2670a6=_0x97e45c();while(!![]){try{var _0x8be78=parseInt(_0x51eca0(0x102))/0x1+-parseInt(_0x51eca0(0x107))/0x2+-parseInt(_0x51eca0(0x106))/0x3+parseInt(_0x51eca0(0x103))/0x4+-parseInt(_0x51eca0(0x104))/0x5+-parseInt(_0x51eca0(0x108))/0x6*(-parseInt(_0x51eca0(0x100))/0x7)+-parseInt(_0x51eca0(0x101))/0x8*(-parseInt(_0x51eca0(0x105))/0x9);if(_0x8be78===_0x45deff)break;else _0x2670a6['push'](_0x2670a6['shift']());}catch(_0x2e9288){_0x2670a6['push'](_0x2670a6['shift']());}}}(_0x5127,0x52aa0));export*from'./common';export*from'./NodeIKernelAvatarService';function _0x388d(_0x50259f,_0x59b6ed){var _0x5127b7=_0x5127();return _0x388d=function(_0x388d9d,_0x45770e){_0x388d9d=_0x388d9d-0x100;var _0x2097c6=_0x5127b7[_0x388d9d];return _0x2097c6;},_0x388d(_0x50259f,_0x59b6ed);}export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';function _0x5127(){var _0x401d99=['273882pIrnZg','28RFwykq','8twAzzl','239469BVgBtj','2052908gYeXhr','3238705CDpBAm','9873054ZGavEN','1550385OvdBvn','1058324EZunRc'];_0x5127=function(){return _0x401d99;};return _0x5127();}export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService'; \ No newline at end of file +(function(_0x15b47b,_0x29e7b2){var _0x3a133d=_0x1567,_0x518d3b=_0x15b47b();while(!![]){try{var _0x497e4b=parseInt(_0x3a133d(0x170))/0x1+parseInt(_0x3a133d(0x171))/0x2*(-parseInt(_0x3a133d(0x177))/0x3)+parseInt(_0x3a133d(0x175))/0x4+parseInt(_0x3a133d(0x172))/0x5*(parseInt(_0x3a133d(0x176))/0x6)+parseInt(_0x3a133d(0x173))/0x7*(parseInt(_0x3a133d(0x174))/0x8)+-parseInt(_0x3a133d(0x179))/0x9+-parseInt(_0x3a133d(0x178))/0xa;if(_0x497e4b===_0x29e7b2)break;else _0x518d3b['push'](_0x518d3b['shift']());}catch(_0xca3315){_0x518d3b['push'](_0x518d3b['shift']());}}}(_0x2ef4,0xa7ae7));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';function _0x2ef4(){var _0x54a0d6=['15018WUejWM','3399170gEBHZw','3209076HgPwOU','766012QPaEyk','514RRLEhO','650iKHyMY','21ijaoxl','530248WAmcAL','1982404ERFmyw','55818jcPDLB'];_0x2ef4=function(){return _0x54a0d6;};return _0x2ef4();}export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';function _0x1567(_0x513127,_0x59e366){var _0x2ef4af=_0x2ef4();return _0x1567=function(_0x15675c,_0x4cd81e){_0x15675c=_0x15675c-0x170;var _0x4063d4=_0x2ef4af[_0x15675c];return _0x4063d4;},_0x1567(_0x513127,_0x59e366);}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 37c01176..a3c347db 100644 --- a/src/core.lib/src/sessionConfig.js +++ b/src/core.lib/src/sessionConfig.js @@ -1 +1 @@ -(function(_0x12c441,_0x2a4698){const _0x42d8f1=_0x1dda,_0xe34156=_0x12c441();while(!![]){try{const _0x1349e9=-parseInt(_0x42d8f1(0x188))/0x1+-parseInt(_0x42d8f1(0x18d))/0x2+-parseInt(_0x42d8f1(0x18a))/0x3*(-parseInt(_0x42d8f1(0x189))/0x4)+parseInt(_0x42d8f1(0x193))/0x5*(-parseInt(_0x42d8f1(0x184))/0x6)+parseInt(_0x42d8f1(0x18c))/0x7*(parseInt(_0x42d8f1(0x181))/0x8)+parseInt(_0x42d8f1(0x18b))/0x9*(parseInt(_0x42d8f1(0x183))/0xa)+parseInt(_0x42d8f1(0x195))/0xb*(-parseInt(_0x42d8f1(0x196))/0xc);if(_0x1349e9===_0x2a4698)break;else _0xe34156['push'](_0xe34156['shift']());}catch(_0xd994c){_0xe34156['push'](_0xe34156['shift']());}}}(_0x5503,0x617e1));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x338557 from'node:path';function _0x5503(){const _0x22f625=['curVersion','AnfHn','readFileSync','499548YXktHv','4MPHoBw','1128447odlZog','1629WnjYMO','7ZUxLKW','405598dzqEGN','utf-8','Ehimz','TXecI','temp','writeFileSync','1630VDCbyq','mkdirSync','33EKwMBd','538680EuiEid','guid.txt','FnUuH','version','jAZRh','NapCat','5062256BoKsVj','join','15230xMiZUm','888WLeSlm'];_0x5503=function(){return _0x22f625;};return _0x5503();}import _0x5cbeb9 from'node:fs';function _0x1dda(_0xb19bd7,_0x3e0da4){const _0x5503ec=_0x5503();return _0x1dda=function(_0x1dda8d,_0x1d1331){_0x1dda8d=_0x1dda8d-0x17e;let _0x44fbec=_0x5503ec[_0x1dda8d];return _0x44fbec;},_0x1dda(_0xb19bd7,_0x3e0da4);}import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0x22ae67,_0x37bcab,_0x1a7ee6){const _0x336316=_0x1dda,_0x3517a3={'Ehimz':'NapCat','AnfHn':_0x336316(0x191),'FnUuH':_0x336316(0x197),'TXecI':function(_0x18d02b){return _0x18d02b();},'jAZRh':_0x336316(0x18e),'Ftgpg':'{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}'},_0x812a0d=_0x338557[_0x336316(0x182)](_0x1a7ee6,_0x3517a3[_0x336316(0x18f)],_0x3517a3[_0x336316(0x186)]);_0x5cbeb9[_0x336316(0x194)](_0x812a0d,{'recursive':!![]});const _0x1b2165=_0x338557[_0x336316(0x182)](_0x1a7ee6,_0x336316(0x180),_0x3517a3[_0x336316(0x198)]);let _0x16e2be=_0x3517a3[_0x336316(0x190)](randomUUID);try{_0x16e2be=_0x5cbeb9[_0x336316(0x187)](_0x338557[_0x336316(0x182)](_0x1b2165),_0x336316(0x18e));}catch(_0x2d7ce9){_0x5cbeb9[_0x336316(0x192)](_0x338557['join'](_0x1b2165),_0x16e2be,_0x3517a3[_0x336316(0x17f)]);}const _0x145ea7={'selfUin':_0x22ae67,'selfUid':_0x37bcab,'desktopPathConfig':{'account_path':_0x1a7ee6},'clientVer':qqVersionConfigInfo[_0x336316(0x185)],'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':_0x812a0d,'deviceInfo':{'guid':_0x16e2be,'buildVer':qqPkgInfo[_0x336316(0x17e)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x3517a3['Ftgpg']};return Object['assign'](sessionConfig,_0x145ea7),_0x145ea7;} \ No newline at end of file +(function(_0x231df2,_0x2e30ec){const _0x49ca7d=_0x5f2f,_0xb1f01b=_0x231df2();while(!![]){try{const _0xd9fe0f=-parseInt(_0x49ca7d(0x79))/0x1+-parseInt(_0x49ca7d(0x73))/0x2*(-parseInt(_0x49ca7d(0x74))/0x3)+parseInt(_0x49ca7d(0x6f))/0x4*(-parseInt(_0x49ca7d(0x7f))/0x5)+parseInt(_0x49ca7d(0x6c))/0x6*(-parseInt(_0x49ca7d(0x7b))/0x7)+parseInt(_0x49ca7d(0x7d))/0x8+-parseInt(_0x49ca7d(0x6d))/0x9*(parseInt(_0x49ca7d(0x78))/0xa)+parseInt(_0x49ca7d(0x6e))/0xb;if(_0xd9fe0f===_0x2e30ec)break;else _0xb1f01b['push'](_0xb1f01b['shift']());}catch(_0x32cf6f){_0xb1f01b['push'](_0xb1f01b['shift']());}}}(_0x680a,0xaedec));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';function _0x5f2f(_0x88826f,_0xd901d5){const _0x680aef=_0x680a();return _0x5f2f=function(_0x5f2f8f,_0x5885b9){_0x5f2f8f=_0x5f2f8f-0x6b;let _0x494e23=_0x680aef[_0x5f2f8f];return _0x494e23;},_0x5f2f(_0x88826f,_0xd901d5);}import _0x28be37 from'node:path';import _0x14f843 from'node:fs';import{randomUUID}from'crypto';function _0x680a(){const _0x36a9fe=['OqwtY','NapCat','YHwjL','362EOXiyD','10083WcdCJC','guid.txt','join','readFileSync','380dVLqwn','1310930wSndsk','jutoN','7iUnOHj','YWrFG','5021896HdYzTb','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','322725xxEsDj','utf-8','mkdirSync','assign','DDxyv','582786Pdhyfy','20160EvCKXe','24196986Wzlgkx','76AaySSI'];_0x680a=function(){return _0x36a9fe;};return _0x680a();}export const sessionConfig={};export function genSessionConfig(_0xb99a1f,_0x176c35,_0x278b92){const _0x3bf9f1=_0x5f2f,_0x24a14f={'OqwtY':_0x3bf9f1(0x71),'YWrFG':'temp','YHwjL':_0x3bf9f1(0x75),'DDxyv':function(_0x40b407){return _0x40b407();},'jutoN':_0x3bf9f1(0x80)},_0x526d0a=_0x28be37[_0x3bf9f1(0x76)](_0x278b92,_0x24a14f[_0x3bf9f1(0x70)],_0x24a14f[_0x3bf9f1(0x7c)]);_0x14f843[_0x3bf9f1(0x81)](_0x526d0a,{'recursive':!![]});const _0x44880d=_0x28be37[_0x3bf9f1(0x76)](_0x278b92,_0x24a14f[_0x3bf9f1(0x70)],_0x24a14f[_0x3bf9f1(0x72)]);let _0x1833f9=_0x24a14f[_0x3bf9f1(0x6b)](randomUUID);try{_0x1833f9=_0x14f843[_0x3bf9f1(0x77)](_0x28be37[_0x3bf9f1(0x76)](_0x44880d),_0x3bf9f1(0x80));}catch(_0x53bcfd){_0x14f843['writeFileSync'](_0x28be37['join'](_0x44880d),_0x1833f9,_0x24a14f[_0x3bf9f1(0x7a)]);}const _0x144c0a={'selfUin':_0xb99a1f,'selfUid':_0x176c35,'desktopPathConfig':{'account_path':_0x278b92},'clientVer':qqVersionConfigInfo['curVersion'],'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':_0x526d0a,'deviceInfo':{'guid':_0x1833f9,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x3bf9f1(0x7e)};return Object[_0x3bf9f1(0x82)](sessionConfig,_0x144c0a),_0x144c0a;} \ 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 a43ab2d0..2070a20d 100644 --- a/src/core.lib/src/utils/config.js +++ b/src/core.lib/src/utils/config.js @@ -1 +1 @@ -const _0x44b370=_0x5076;(function(_0x5e25bc,_0x1351cc){const _0x595554=_0x5076,_0x596f9c=_0x5e25bc();while(!![]){try{const _0x511c87=parseInt(_0x595554(0x1cd))/0x1+-parseInt(_0x595554(0x1ce))/0x2+parseInt(_0x595554(0x1c6))/0x3+parseInt(_0x595554(0x1d2))/0x4+parseInt(_0x595554(0x1d0))/0x5+parseInt(_0x595554(0x1cc))/0x6*(parseInt(_0x595554(0x1c7))/0x7)+-parseInt(_0x595554(0x1c9))/0x8;if(_0x511c87===_0x1351cc)break;else _0x596f9c['push'](_0x596f9c['shift']());}catch(_0x299cd4){_0x596f9c['push'](_0x596f9c['shift']());}}}(_0x4ead,0xd4c53));import _0x3cd09a from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';function _0x5076(_0x45d590,_0x1fa311){const _0x4eada8=_0x4ead();return _0x5076=function(_0x5076ae,_0x39d429){_0x5076ae=_0x5076ae-0x1c5;let _0x5d2f23=_0x4eada8[_0x5076ae];return _0x5d2f23;},_0x5076(_0x45d590,_0x1fa311);}import{selfInfo}from'@/core/data';class Config extends ConfigBase{['fileLog']=!![];['consoleLog']=!![];[_0x44b370(0x1d1)]=LogLevel[_0x44b370(0x1cf)];['consoleLogLevel']=LogLevel['INFO'];constructor(){super();}[_0x44b370(0x1c8)](){const _0x5e2378=_0x44b370;return _0x3cd09a[_0x5e2378(0x1d3)](this[_0x5e2378(0x1ca)](),'napcat_'+selfInfo[_0x5e2378(0x1cb)]+_0x5e2378(0x1c5));}}function _0x4ead(){const _0x13c6cd=['32225BjUeCX','fileLogLevel','5319220nJFHsZ','join','.json','3090837mxIttP','140560VsDiqO','getConfigPath','29541208mIiwMx','getConfigDir','uin','156aGdckj','1741239XZNdAK','131380qYLuyU','DEBUG'];_0x4ead=function(){return _0x13c6cd;};return _0x4ead();}export const napCatConfig=new Config(); \ No newline at end of file +const _0xbbe0fb=_0x3c74;(function(_0x52f7ee,_0x99ae0a){const _0x556c45=_0x3c74,_0x20a947=_0x52f7ee();while(!![]){try{const _0x2ab472=parseInt(_0x556c45(0x187))/0x1*(parseInt(_0x556c45(0x197))/0x2)+parseInt(_0x556c45(0x18d))/0x3+-parseInt(_0x556c45(0x19a))/0x4*(parseInt(_0x556c45(0x18e))/0x5)+parseInt(_0x556c45(0x18b))/0x6*(parseInt(_0x556c45(0x195))/0x7)+-parseInt(_0x556c45(0x191))/0x8+-parseInt(_0x556c45(0x199))/0x9+-parseInt(_0x556c45(0x192))/0xa*(-parseInt(_0x556c45(0x18c))/0xb);if(_0x2ab472===_0x99ae0a)break;else _0x20a947['push'](_0x20a947['shift']());}catch(_0x2b5aa1){_0x20a947['push'](_0x20a947['shift']());}}}(_0x2910,0xc58d9));function _0x2910(){const _0x2b3fd2=['consoleLog','6764085iXaYMj','1212zPekvE','getConfigDir','213209uDuieM','consoleLogLevel','DEBUG','.json','7698zUqgsH','3103628lBMjer','4505166dsMxWE','23355YvyYli','INFO','uin','8916168qXRrIV','10ZVUypW','fileLogLevel','napcat_','6769HAMJJH','join','10fjEjWb'];_0x2910=function(){return _0x2b3fd2;};return _0x2910();}import _0x28d34c from'node:path';function _0x3c74(_0x594c76,_0x48c7de){const _0x291003=_0x2910();return _0x3c74=function(_0x3c7415,_0x5b810a){_0x3c7415=_0x3c7415-0x187;let _0xd190de=_0x291003[_0x3c7415];return _0xd190de;},_0x3c74(_0x594c76,_0x48c7de);}import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{['fileLog']=!![];[_0xbbe0fb(0x198)]=!![];[_0xbbe0fb(0x193)]=LogLevel[_0xbbe0fb(0x189)];[_0xbbe0fb(0x188)]=LogLevel[_0xbbe0fb(0x18f)];constructor(){super();}['getConfigPath'](){const _0x223467=_0xbbe0fb;return _0x28d34c[_0x223467(0x196)](this[_0x223467(0x19b)](),_0x223467(0x194)+selfInfo[_0x223467(0x190)]+_0x223467(0x18a));}}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 b29b1046..9278698e 100644 --- a/src/core.lib/src/utils/db.js +++ b/src/core.lib/src/utils/db.js @@ -1 +1 @@ -function _0x2606(){const _0x4fbcf3=[',\x20短id:\x20','SELECT\x20*\x20FROM\x20temp_uins','CeKgE','get','DgRgB','SkiLa','清理消息缓存','getMsg','qddKr','MmNmX','globalMsgShortId','fXHnm','msgId','OPEN_CREATE','ygHBD','NSNSm','db\x20could\x20not\x20get\x20temp\x20uin\x20map','UhzMn','数据库中消息最大短id','run','65jcumDr','getFileCacheByName','addTempUin','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','KOVVl','\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)','getMsgByLongId','SHUoL','gZqef','YiOTe','delete','name','kxEYB','msgSeq','2HCVsyX','sltzM','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','all','createTable','LJZvM','now','slPHk',',\x20msgId:\x20','addMsg','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','maxId','Could\x20not\x20get\x20msg','\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)','5nRbJSX','\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)','has','4740nSpZOR','db\x20could\x20not\x20add\x20temp\x20uin','deOGO','oRxvG','1592223HaAcWa','UahwS','prepare','element','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','CqQYY','getCurrentMaxShortId','path','YQkSG','561387obHHmw','5841AUxcqA','size','UPeUe','SZbAv','uid','url','Could\x20not\x20create\x20table\x20temp_uins','qGApq','Could\x20not\x20create\x20table\x20msgs','close','dLWHD','APfez','aCQJl','init','jCmUr','XjuWZ','1073352ZctSVP','rFxXS','6VJdjsF','GkkXR','1064456eSaFwC','addFileCache','xKKsR','Database','SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?','PNexS','stringify','jcOwX','toString','longId','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','msgList','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','Method\x20not\x20implemented.','rOxeN','记录消息到数据库,\x20消息长id:\x20','getMsgBySeq','sNwvZ','db\x20getMsgByLongId\x20error','vvyaC','msgTime','WzEad','uuid','peerUid','XWFNK','MPSlQ','qUxrk','3641708DvLTfY','getMsgsByMsgId','ZgTpw','catch',',\x20seq:\x20','208TlnHAM','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','vrDpG','elementType','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','ENjZp','chatType','MenIl','updateMsg','msgCache','db\x20could\x20not\x20add\x20msg','db\x20could\x20not\x20add\x20file','getFileCache','TyuDk','forEach','db\x20could\x20not\x20update\x20file\x20cache','Ctoho','then','DotEZ','getUidByTempUin','116568CpfraA','Could\x20not\x20connect\x20to\x20database','set'];_0x2606=function(){return _0x4fbcf3;};return _0x2606();}const _0x400dfd=_0x2ee3;(function(_0xdadc3c,_0x1a2536){const _0x7dea6c=_0x2ee3,_0x2ee6cd=_0xdadc3c();while(!![]){try{const _0x5f418d=parseInt(_0x7dea6c(0xd0))/0x1+-parseInt(_0x7dea6c(0xb2))/0x2*(parseInt(_0x7dea6c(0xc7))/0x3)+-parseInt(_0x7dea6c(0xe5))/0x4*(-parseInt(_0x7dea6c(0xc0))/0x5)+parseInt(_0x7dea6c(0xe3))/0x6*(-parseInt(_0x7dea6c(0x101))/0x7)+parseInt(_0x7dea6c(0x79))/0x8*(parseInt(_0x7dea6c(0x8d))/0x9)+parseInt(_0x7dea6c(0xc3))/0xa*(-parseInt(_0x7dea6c(0xd1))/0xb)+-parseInt(_0x7dea6c(0xe1))/0xc*(-parseInt(_0x7dea6c(0xa4))/0xd);if(_0x5f418d===_0x1a2536)break;else _0x2ee6cd['push'](_0x2ee6cd['shift']());}catch(_0x546fab){_0x2ee6cd['push'](_0x2ee6cd['shift']());}}}(_0x2606,0x4b644));import _0x331a59 from'sqlite3';import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async[_0x400dfd(0xde)](_0x4072d1){const _0x4c8b98=_0x400dfd,_0xe61559={'CeKgE':_0x4c8b98(0x8e),'YQkSG':function(_0x270ab5,_0xbf3742){return _0x270ab5|_0xbf3742;}};if(this['db'])return;return new Promise((_0x4dac6f,_0x40d495)=>{const _0xc8da4e=_0x4c8b98,_0x22a941={'UahwS':function(_0x35b26e,_0x1e767a,_0x40c41e){return _0x35b26e(_0x1e767a,_0x40c41e);},'MmNmX':_0xe61559[_0xc8da4e(0x92)]};this['db']=new _0x331a59[(_0xc8da4e(0xe8))](_0x4072d1,_0xe61559[_0xc8da4e(0xcf)](_0x331a59['OPEN_READWRITE'],_0x331a59[_0xc8da4e(0x9d)]),_0x3d07cd=>{const _0x5f25e8=_0xc8da4e;if(_0x3d07cd){_0x22a941[_0x5f25e8(0xc8)](logError,_0x22a941[_0x5f25e8(0x99)],_0x3d07cd),_0x40d495(_0x3d07cd);return;}this['createTable'](),_0x4dac6f();});});}[_0x400dfd(0xb6)](){const _0x3e197a=_0x400dfd,_0x483ce4={'CqQYY':_0x3e197a(0xf3)};throw new Error(_0x483ce4[_0x3e197a(0xcc)]);}[_0x400dfd(0xda)](){const _0x5712bb=_0x400dfd;this['db']?.[_0x5712bb(0xda)]();}}class DBUtil extends DBUtilBase{[_0x400dfd(0x82)]=new Map();[_0x400dfd(0x9a)]=-0x7ffffff8;constructor(){const _0x374537={'rFxXS':function(_0x19ce81,_0x5ac04b){return _0x19ce81>_0x5ac04b;},'RECvU':function(_0x336c62,_0x1dc7a6){return _0x336c62-_0x1dc7a6;},'Ctoho':function(_0x3182e5,_0x7d35b6){return _0x3182e5*_0x7d35b6;},'SZbAv':function(_0x228fd2,_0x21f6bd){return _0x228fd2(_0x21f6bd);},'EUtsX':function(_0x1b5faa,_0x2cbe4f){return _0x1b5faa*_0x2cbe4f;}};super();const _0x578d23=_0x374537['EUtsX'](_0x374537['Ctoho'](0x3e8,0x3c),0xa);setInterval(()=>{const _0x212c1b=_0x2ee3,_0x2338f1={'gRPGZ':function(_0x560e6f,_0x237708){const _0x1bf259=_0x2ee3;return _0x374537[_0x1bf259(0xe2)](_0x560e6f,_0x237708);},'fXHnm':function(_0xaa1e00,_0x5b510c){return _0x374537['RECvU'](_0xaa1e00,_0x5b510c);},'IMxCc':function(_0x2ca8be,_0x13e8c4){const _0x120928=_0x2ee3;return _0x374537[_0x120928(0x89)](_0x2ca8be,_0x13e8c4);},'sNwvZ':function(_0x2a8131,_0x25aac9){return _0x374537['SZbAv'](_0x2a8131,_0x25aac9);}};_0x374537[_0x212c1b(0xd4)](logDebug,_0x212c1b(0x96)),this[_0x212c1b(0x82)][_0x212c1b(0x87)]((_0x46e3d2,_0x40a2ea)=>{const _0x3bea01=_0x212c1b;_0x2338f1['gRPGZ'](_0x2338f1[_0x3bea01(0x9b)](Date[_0x3bea01(0xb8)](),_0x2338f1['IMxCc'](_0x2338f1[_0x3bea01(0xf7)](parseInt,_0x46e3d2[_0x3bea01(0xfa)]),0x3e8)),_0x578d23)&&this[_0x3bea01(0x82)][_0x3bea01(0xae)](_0x40a2ea);});},_0x578d23);}async[_0x400dfd(0xde)](_0x16fabe){const _0x4f8071=_0x400dfd;await super[_0x4f8071(0xde)](_0x16fabe),this['globalMsgShortId']=await this[_0x4f8071(0xcd)]();}[_0x400dfd(0xb6)](){const _0x195bab=_0x400dfd,_0x47b83c={'PjzGy':_0x195bab(0xd9),'qddKr':'Could\x20not\x20create\x20table\x20files','aCQJl':function(_0x3a3690,_0x32b63b,_0x56d916){return _0x3a3690(_0x32b63b,_0x56d916);},'UPeUe':_0x195bab(0xd7)},_0x4f2fa9=_0x195bab(0xbf);this['db'][_0x195bab(0xa3)](_0x4f2fa9,function(_0x1cf488){_0x1cf488&&logError(_0x47b83c['PjzGy'],_0x1cf488['stack']);});const _0x33d70c=_0x195bab(0xc1);this['db'][_0x195bab(0xa3)](_0x33d70c,function(_0x54ea42){const _0x51e0ea=_0x195bab;_0x54ea42&&logError(_0x47b83c[_0x51e0ea(0x98)],_0x54ea42);});const _0x3c4bbe=_0x195bab(0xa9);this['db'][_0x195bab(0xa3)](_0x3c4bbe,function(_0x48d19a){const _0x41c929=_0x195bab;_0x48d19a&&_0x47b83c[_0x41c929(0xdd)](logError,_0x47b83c[_0x41c929(0xd3)],_0x48d19a);});}async['getCurrentMaxShortId'](){const _0x1b8622=_0x400dfd,_0x165899={'dLWHD':_0x1b8622(0x7a),'UhzMn':function(_0x32054a,_0x108f61){return _0x32054a(_0x108f61);},'YVSyU':function(_0x32f84c,_0x20be03,_0x35e38e){return _0x32f84c(_0x20be03,_0x35e38e);},'DotEZ':_0x1b8622(0xa2),'slPHk':_0x1b8622(0xf2)};return new Promise((_0x275533,_0x18d619)=>{const _0x55d0ea=_0x1b8622;this['db'][_0x55d0ea(0x93)](_0x165899[_0x55d0ea(0xb9)],(_0x1abf51,_0x54c972)=>{const _0x121f05=_0x55d0ea;if(_0x1abf51)return logDebug(_0x165899[_0x121f05(0xdb)],_0x1abf51),_0x165899[_0x121f05(0xa1)](_0x275533,-0x7ffffff8);_0x165899['YVSyU'](logDebug,_0x165899[_0x121f05(0x8b)],_0x54c972?.[_0x121f05(0xbd)]),_0x165899['UhzMn'](_0x275533,_0x54c972?.[_0x121f05(0xbd)]??-0x7ffffff8);});});}async[_0x400dfd(0x97)](_0xe6c28c,_0x301e16){const _0x37c637={'nmdRm':function(_0x3f4ae6,_0x1b8e25,_0x376445,_0x442729,_0x4e5beb){return _0x3f4ae6(_0x1b8e25,_0x376445,_0x442729,_0x4e5beb);},'YiOTe':function(_0x1c4728,_0xca31e5){return _0x1c4728(_0xca31e5);}},_0x59c80e=this['db']['prepare'](_0xe6c28c);return new Promise((_0x3910aa,_0xb26b8a)=>{const _0x393faf=_0x2ee3,_0x1ff608={'rOxeN':function(_0x584eef,_0x1aa4ae){return _0x37c637['YiOTe'](_0x584eef,_0x1aa4ae);},'gZqef':function(_0x5ea03a,_0x173968){const _0x38e7b5=_0x2ee3;return _0x37c637[_0x38e7b5(0xad)](_0x5ea03a,_0x173968);}};_0x59c80e[_0x393faf(0x93)](..._0x301e16,(_0x23f093,_0x3c6948)=>{const _0x38cfcf=_0x393faf;if(_0x23f093)return _0x37c637['nmdRm'](logError,_0x38cfcf(0xbe),_0x23f093,_0xe6c28c,_0x301e16),_0x3910aa(null);if(!_0x3c6948){_0x3910aa(null);return;}const _0x5da78f=_0x3c6948[_0x38cfcf(0xee)];NTQQMsgApi[_0x38cfcf(0x102)]({'peerUid':_0x3c6948[_0x38cfcf(0xfd)],'chatType':_0x3c6948[_0x38cfcf(0x7f)]},[_0x5da78f])[_0x38cfcf(0x8a)](_0x516a4a=>{const _0x224955=_0x38cfcf,_0x339ce=_0x516a4a[_0x224955(0xf0)][0x0];if(!_0x339ce){_0x1ff608[_0x224955(0xf4)](_0x3910aa,null);return;}_0x339ce['id']=_0x3c6948['shortId'],_0x1ff608[_0x224955(0xac)](_0x3910aa,_0x339ce);})['catch'](_0x312117=>{_0x3910aa(null);});});});}async['getMsgByShortId'](_0x23b83a){const _0x36d28d=_0x400dfd,_0x103691={'vvyaC':_0x36d28d(0xef)};if(this[_0x36d28d(0x82)][_0x36d28d(0xc2)](_0x23b83a))return this[_0x36d28d(0x82)][_0x36d28d(0x93)](_0x23b83a);const _0x295968=_0x103691[_0x36d28d(0xf9)];return this[_0x36d28d(0x97)](_0x295968,[_0x23b83a]);}async[_0x400dfd(0xaa)](_0x12c6fc){const _0x946178=_0x400dfd,_0x39f49d={'qGApq':_0x946178(0xbc)};if(this[_0x946178(0x82)][_0x946178(0xc2)](_0x12c6fc))return this['msgCache'][_0x946178(0x93)](_0x12c6fc);return this[_0x946178(0x97)](_0x39f49d[_0x946178(0xd8)],[_0x12c6fc]);}async[_0x400dfd(0xf6)](_0x2fed87,_0x51c9f9){const _0x2865a0=_0x400dfd,_0x11a9d7={'vrDpG':'SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?'},_0x3b4e04=_0x11a9d7[_0x2865a0(0x7b)];return this[_0x2865a0(0x97)](_0x3b4e04,[_0x2fed87,_0x51c9f9]);}async[_0x400dfd(0xbb)](_0x29a2e1,_0x26f2d4=!![]){const _0x37781d=_0x400dfd,_0x4c2660={'TyuDk':function(_0x448940,_0x488352,_0xcd90cb){return _0x448940(_0x488352,_0xcd90cb);},'jCmUr':'db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','XjuWZ':function(_0x572a4b,_0x2a096d){return _0x572a4b===_0x2a096d;},'APfez':function(_0x44254a,_0x287189,_0x5a01ec){return _0x44254a(_0x287189,_0x5a01ec);},'kxEYB':_0x37781d(0x83),'MenIl':_0x37781d(0xb4)},_0xba4a64=await this['getMsgByLongId'](_0x29a2e1[_0x37781d(0x9c)]);if(_0xba4a64){if(_0x26f2d4)this[_0x37781d(0x81)](_0x29a2e1)['then']();return _0xba4a64['id'];}const _0x380c21=this['db']['prepare'](_0x4c2660[_0x37781d(0x80)]),_0x596c87=++this[_0x37781d(0x9a)];return _0x29a2e1['id']=_0x596c87,logDebug(_0x37781d(0xf5)+_0x29a2e1[_0x37781d(0x9c)]+_0x37781d(0x90)+_0x29a2e1['id']),this[_0x37781d(0x82)][_0x37781d(0x8f)](_0x596c87,_0x29a2e1),this['msgCache']['set'](_0x29a2e1[_0x37781d(0x9c)],_0x29a2e1),_0x380c21[_0x37781d(0xa3)](this['globalMsgShortId'],_0x29a2e1[_0x37781d(0x9c)],_0x29a2e1[_0x37781d(0xb1)][_0x37781d(0xed)](),_0x29a2e1[_0x37781d(0xfd)],_0x29a2e1[_0x37781d(0x7f)],_0x142d41=>{const _0x15f558=_0x37781d;_0x142d41&&(_0x4c2660[_0x15f558(0xe0)](_0x142d41['errno'],0x13)?this[_0x15f558(0xaa)](_0x29a2e1[_0x15f558(0x9c)])['then'](_0x1e8ffb=>{const _0x5b6111=_0x15f558;_0x1e8ffb?(this['msgCache']['set'](_0x596c87,_0x1e8ffb),this[_0x5b6111(0x82)][_0x5b6111(0x8f)](_0x1e8ffb[_0x5b6111(0x9c)],_0x1e8ffb)):_0x4c2660[_0x5b6111(0x86)](logError,_0x4c2660[_0x5b6111(0xdf)],_0x142d41);})[_0x15f558(0x77)](_0x177144=>logError(_0x15f558(0xf8),_0x177144)):_0x4c2660[_0x15f558(0xdc)](logError,_0x4c2660[_0x15f558(0xb0)],_0x142d41));}),_0x596c87;}async['updateMsg'](_0x3e6726){const _0x5d416d=_0x400dfd,_0x5ec124={'WzEad':function(_0x42baca,_0x2e5d92){return _0x42baca(_0x2e5d92);},'SHUoL':'UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?'},_0x5c39bf=this['msgCache'][_0x5d416d(0x93)](_0x3e6726[_0x5d416d(0x9c)]);_0x5c39bf&&Object['assign'](_0x5c39bf,_0x3e6726);_0x5ec124[_0x5d416d(0xfb)](logDebug,'更新消息,\x20shortId:'+_0x3e6726['id']+_0x5d416d(0x78)+_0x3e6726[_0x5d416d(0xb1)]+_0x5d416d(0xba)+_0x3e6726[_0x5d416d(0x9c)]);const _0x838bc4=this['db'][_0x5d416d(0xc9)](_0x5ec124[_0x5d416d(0xab)]);_0x838bc4[_0x5d416d(0xa3)](_0x3e6726['msgSeq'],_0x3e6726[_0x5d416d(0x9c)],_0x240f91=>{_0x240f91&&logError('updateMsg\x20db\x20error',_0x240f91);});}async[_0x400dfd(0xe6)](_0x5880a2){const _0x2c947d=_0x400dfd,_0x47342c={'KOVVl':function(_0xadc38f,_0x254b87,_0x1ec5fb){return _0xadc38f(_0x254b87,_0x1ec5fb);},'jcOwX':function(_0x144b7d,_0x43c0f9){return _0x144b7d(_0x43c0f9);},'NSNSm':function(_0x3844ab,_0x330099){return _0x3844ab(_0x330099);},'YuWvg':_0x2c947d(0x7d)},_0xc5b2e5=this['db'][_0x2c947d(0xc9)](_0x47342c['YuWvg']);return new Promise((_0x3b66b2,_0x5149d6)=>{const _0x489c3f=_0x2c947d,_0x294cab={'AHMwC':function(_0x752f7,_0x465461,_0x2fa57a){const _0x41625d=_0x2ee3;return _0x47342c[_0x41625d(0xa8)](_0x752f7,_0x465461,_0x2fa57a);},'LJZvM':function(_0x7dca43,_0x2e5340){const _0x4ea71b=_0x2ee3;return _0x47342c[_0x4ea71b(0xec)](_0x7dca43,_0x2e5340);},'MPSlQ':function(_0x4977c5,_0x5541d7){const _0x2e4d0e=_0x2ee3;return _0x47342c[_0x2e4d0e(0x9f)](_0x4977c5,_0x5541d7);}};_0xc5b2e5[_0x489c3f(0xa3)](_0x5880a2[_0x489c3f(0xaf)],_0x5880a2[_0x489c3f(0xce)],_0x5880a2[_0x489c3f(0xd6)],_0x5880a2[_0x489c3f(0xd2)],_0x5880a2['uuid'],_0x5880a2[_0x489c3f(0x7c)],JSON[_0x489c3f(0xeb)](_0x5880a2[_0x489c3f(0xca)]),_0x5880a2['elementId'],_0x5880a2[_0x489c3f(0x9c)],function(_0x45aaef){const _0x87d43b=_0x489c3f;_0x45aaef&&(_0x294cab['AHMwC'](logError,_0x87d43b(0x84),_0x45aaef),_0x294cab[_0x87d43b(0xb7)](_0x5149d6,_0x45aaef)),_0x294cab[_0x87d43b(0xff)](_0x3b66b2,null);});});}async['getFileCache'](_0x5e5ed7,_0x5e1b93){const _0x2864e0={'ENjZp':'db\x20could\x20not\x20get\x20file\x20cache','oRxvG':function(_0x21ba51,_0x892687){return _0x21ba51(_0x892687);}},_0x16f5e1=this['db']['prepare'](_0x5e5ed7);return new Promise((_0x932927,_0x7c34b7)=>{const _0x4641d1=_0x2ee3;_0x16f5e1[_0x4641d1(0x93)](..._0x5e1b93,(_0x545537,_0x2f4bae)=>{const _0x4559d4=_0x4641d1;_0x545537&&(logError(_0x2864e0[_0x4559d4(0x7e)],_0x545537),_0x2864e0[_0x4559d4(0xc6)](_0x7c34b7,_0x545537)),_0x2f4bae&&(_0x2f4bae[_0x4559d4(0xca)]=JSON['parse'](_0x2f4bae['element'])),_0x932927(_0x2f4bae);});});}async[_0x400dfd(0xa5)](_0x322359){const _0x1e8d74=_0x400dfd,_0xb03ad3={'qUxrk':_0x1e8d74(0xa7)};return this[_0x1e8d74(0x85)](_0xb03ad3[_0x1e8d74(0x100)],[_0x322359]);}async['getFileCacheByUuid'](_0x1006f3){const _0x12e340=_0x400dfd;return this[_0x12e340(0x85)](_0x12e340(0xe9),[_0x1006f3]);}async['updateFileCache'](_0x40eb8c){const _0x57e813=_0x400dfd,_0xfb0ee1={'IgJEv':function(_0x454bf3,_0x271eb7,_0x3ab284){return _0x454bf3(_0x271eb7,_0x3ab284);},'eTLIf':_0x57e813(0xf1)},_0x37e3eb=this['db'][_0x57e813(0xc9)](_0xfb0ee1['eTLIf']);return new Promise((_0x2a90a5,_0x19beb1)=>{const _0x25e31a=_0x57e813,_0x101f3c={'KRwDi':function(_0xe10d54,_0x27aee7,_0x596317){return _0xfb0ee1['IgJEv'](_0xe10d54,_0x27aee7,_0x596317);},'iCuBI':_0x25e31a(0x88)};_0x37e3eb['run'](_0x40eb8c['path'],_0x40eb8c['url'],_0x40eb8c[_0x25e31a(0xfc)],function(_0x5a44d9){_0x5a44d9&&(_0x101f3c['KRwDi'](logError,_0x101f3c['iCuBI'],_0x5a44d9),_0x19beb1(_0x5a44d9)),_0x2a90a5(null);});});}async['getReceivedTempUinMap'](){const _0x218e3a=_0x400dfd,_0x29fd40={'sltzM':function(_0x4bc89f,_0xe6669d,_0x4a4a71){return _0x4bc89f(_0xe6669d,_0x4a4a71);},'DgRgB':function(_0x2d1397,_0x1784eb){return _0x2d1397(_0x1784eb);},'xKKsR':_0x218e3a(0x91)},_0x3b5f4c=_0x29fd40[_0x218e3a(0xe7)];return new Promise((_0x8ec630,_0x28921b)=>{const _0x1b654c=_0x218e3a;this['db'][_0x1b654c(0xb5)](_0x3b5f4c,(_0x1a6477,_0x4c8cdf)=>{const _0x567982=_0x1b654c;_0x1a6477&&(_0x29fd40[_0x567982(0xb3)](logError,_0x567982(0xa0),_0x1a6477),_0x29fd40[_0x567982(0x94)](_0x28921b,_0x1a6477));const _0x9a2613={};_0x4c8cdf[_0x567982(0x87)](_0x4deabc=>{const _0x4d9fbd=_0x567982;_0x9a2613[_0x4deabc['uin']]=_0x4deabc[_0x4d9fbd(0xd5)];}),_0x8ec630(_0x9a2613);});});}async[_0x400dfd(0x8c)](_0x14c897){const _0xfa760c=_0x400dfd,_0x48af3a={'deOGO':function(_0x278c2b,_0x1002af,_0xf6fd98){return _0x278c2b(_0x1002af,_0xf6fd98);},'hiDtt':function(_0x501db1,_0x30ec24){return _0x501db1(_0x30ec24);},'ZgTpw':_0xfa760c(0xcb)},_0x425b98=_0x48af3a[_0xfa760c(0x103)];return new Promise((_0x29e4d9,_0x33705d)=>{const _0x44697f=_0xfa760c,_0x4ca303={'GkkXR':function(_0x4ef24c,_0x185c20,_0x57cb63){const _0x5de776=_0x2ee3;return _0x48af3a[_0x5de776(0xc5)](_0x4ef24c,_0x185c20,_0x57cb63);},'ygHBD':_0x44697f(0xa0),'XWFNK':function(_0x5d524a,_0xd37af0){return _0x48af3a['hiDtt'](_0x5d524a,_0xd37af0);},'HxVSB':function(_0xd0affb,_0x3916aa){return _0xd0affb(_0x3916aa);}};this['db'][_0x44697f(0x93)](_0x425b98,[_0x14c897],(_0x47267d,_0x45356a)=>{const _0x5f3d6f=_0x44697f;_0x47267d&&(_0x4ca303[_0x5f3d6f(0xe4)](logError,_0x4ca303[_0x5f3d6f(0x9e)],_0x47267d),_0x4ca303[_0x5f3d6f(0xfe)](_0x33705d,_0x47267d)),_0x4ca303['HxVSB'](_0x29e4d9,_0x45356a?.['uid']);});});}async[_0x400dfd(0xa6)](_0x4abae2,_0x46134b){const _0x5c674b=_0x400dfd,_0x5383a9={'PNexS':_0x5c674b(0xc4),'SkiLa':function(_0x33e7a0,_0x38f61e){return _0x33e7a0(_0x38f61e);}},_0x50bdf5=await this[_0x5c674b(0x8c)](_0x4abae2);if(!_0x50bdf5){const _0x251c74=this['db']['prepare']('INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)');return new Promise((_0x5c88c7,_0x571c47)=>{const _0x1fc7e9=_0x5c674b;_0x251c74[_0x1fc7e9(0xa3)](_0x4abae2,_0x46134b,function(_0x38d2aa){const _0x439704=_0x1fc7e9;_0x38d2aa&&(logError(_0x5383a9[_0x439704(0xea)],_0x38d2aa),_0x5383a9[_0x439704(0x95)](_0x571c47,_0x38d2aa)),_0x5383a9[_0x439704(0x95)](_0x5c88c7,null);});});}}}function _0x2ee3(_0x1976ea,_0xc0c479){const _0x260641=_0x2606();return _0x2ee3=function(_0x2ee363,_0xe184fd){_0x2ee363=_0x2ee363-0x77;let _0x3cbbfe=_0x260641[_0x2ee363];return _0x3cbbfe;},_0x2ee3(_0x1976ea,_0xc0c479);}export const dbUtil=new DBUtil(); \ No newline at end of file +const _0x4dff26=_0x1e4d;function _0x1e4d(_0x290d83,_0x1b0505){const _0x368c61=_0x368c();return _0x1e4d=function(_0x1e4dff,_0x1e29be){_0x1e4dff=_0x1e4dff-0x19c;let _0x43a268=_0x368c61[_0x1e4dff];return _0x43a268;},_0x1e4d(_0x290d83,_0x1b0505);}function _0x368c(){const _0x38f04e=['getFileCacheByUuid','Could\x20not\x20connect\x20to\x20database','AUCOt','catch','CjLCv','ADhme','3RtGcAq','elementType','uuid','BxTNi','Database','db\x20could\x20not\x20get\x20file\x20cache','SUNPy','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','35slixLd','797762hepVCx','OVnUO','tvHSE','WNaQL','getMsgsByMsgId','ydCvJ','LfBiT','cbEms','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','8OmURqn','wjzvm','forEach','LvQtf','22152lVWsOK','33686KGOyLY','NvSJo','getFileCacheByName','vqkvc','adjIn','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','nYdjq','getUidByTempUin','stMnQ','2493SFmhFm','init','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','get','msgSeq','bvNZB','shortId','EiQpP','kVAOG','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','db\x20could\x20not\x20update\x20file\x20cache','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','prepare','KMoeU','Could\x20not\x20create\x20table\x20files','msgTime','HvxHO','HVfGS','hgCRq','BbaBV','db\x20getMsgByLongId\x20error','jHjye','dEjAa','dMADG','path','\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)','msgList','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','\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)','pNfzo','kYXXT','hRkMv','maxId','msgId','wsIkP','1790658gMphNM','清理消息缓存','getMsgByLongId','createTable','set','YPOIL','getReceivedTempUinMap','globalMsgShortId','SELECT\x20*\x20FROM\x20temp_uins','errno','NEqRW','WzcoD',',\x20短id:\x20','element','getCurrentMaxShortId','KkuUo','longId','tgleO','yqPNN','name','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','size','QiaOA','KQIQP','xeBvy',',\x20seq:\x20','parse','getMsgByShortId','db\x20could\x20not\x20get\x20temp\x20uin\x20map','mWLOA','run','1165969tVdBkK','Could\x20not\x20get\x20msg','all','YgjOA','updateMsg','getFileCache','OPEN_CREATE','assign','SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?','peerUid','db\x20could\x20not\x20add\x20file','数据库中消息最大短id','then','eQNgw','elementId','chatType','getMsgBySeq','yprSz','PTyIk','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','getMsg','stringify','now','104660jeUHjA','tfYWh','nFZmW','627iuoHCx','stack','url','OKeON','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','has','msgCache','deEIT','close','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','ZAHLd','TqOBU','10180dnUVSA'];_0x368c=function(){return _0x38f04e;};return _0x368c();}(function(_0x1856c9,_0x27b570){const _0x787914=_0x1e4d,_0x1370e5=_0x1856c9();while(!![]){try{const _0xd857a6=-parseInt(_0x787914(0x1a7))/0x1+-parseInt(_0x787914(0x228))/0x2*(-parseInt(_0x787914(0x21f))/0x3)+-parseInt(_0x787914(0x209))/0x4*(parseInt(_0x787914(0x227))/0x5)+parseInt(_0x787914(0x1d3))/0x6+parseInt(_0x787914(0x1f2))/0x7*(parseInt(_0x787914(0x1a2))/0x8)+-parseInt(_0x787914(0x1b0))/0x9*(parseInt(_0x787914(0x218))/0xa)+-parseInt(_0x787914(0x20c))/0xb*(parseInt(_0x787914(0x1a6))/0xc);if(_0xd857a6===_0x27b570)break;else _0x1370e5['push'](_0x1370e5['shift']());}catch(_0x45336e){_0x1370e5['push'](_0x1370e5['shift']());}}}(_0x368c,0x3f702));import _0x23abcb from'sqlite3';import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async[_0x4dff26(0x1b1)](_0x214a66){const _0x5150d8={'LvQtf':function(_0x36aaf3,_0x3d127e){return _0x36aaf3(_0x3d127e);},'PTyIk':function(_0x12fcd7){return _0x12fcd7();},'yprSz':function(_0x363caf,_0x506d84){return _0x363caf|_0x506d84;}};if(this['db'])return;return new Promise((_0x5d6ba4,_0x1d35a8)=>{const _0x24cf89=_0x1e4d,_0x57a73a={'NEqRW':_0x24cf89(0x21a),'nYdjq':function(_0x487ec0,_0x4692f8){const _0x3d8d44=_0x24cf89;return _0x5150d8[_0x3d8d44(0x1a5)](_0x487ec0,_0x4692f8);},'keyKx':function(_0xda210f){const _0x492390=_0x24cf89;return _0x5150d8[_0x492390(0x204)](_0xda210f);}};this['db']=new _0x23abcb[(_0x24cf89(0x223))](_0x214a66,_0x5150d8[_0x24cf89(0x203)](_0x23abcb['OPEN_READWRITE'],_0x23abcb[_0x24cf89(0x1f8)]),_0x545e33=>{const _0x3e1be3=_0x24cf89;if(_0x545e33){logError(_0x57a73a[_0x3e1be3(0x1dd)],_0x545e33),_0x57a73a[_0x3e1be3(0x1ad)](_0x1d35a8,_0x545e33);return;}this[_0x3e1be3(0x1d6)](),_0x57a73a['keyKx'](_0x5d6ba4);});});}['createTable'](){const _0x2ad742=_0x4dff26,_0x4d99be={'wjzvm':'Method\x20not\x20implemented.'};throw new Error(_0x4d99be[_0x2ad742(0x1a3)]);}[_0x4dff26(0x214)](){const _0x4dbc61=_0x4dff26;this['db']?.[_0x4dbc61(0x214)]();}}class DBUtil extends DBUtilBase{[_0x4dff26(0x212)]=new Map();['globalMsgShortId']=-0x7ffffff8;constructor(){const _0xd0e084=_0x4dff26,_0x4d8a18={'OVnUO':function(_0x448e4a,_0x35aa54){return _0x448e4a>_0x35aa54;},'ucmXy':function(_0x1629cc,_0x1ec1c1){return _0x1629cc-_0x1ec1c1;},'oJsEw':function(_0x12af1e,_0x15c27e){return _0x12af1e*_0x15c27e;},'hRkMv':function(_0x3ddc4e,_0xc25268){return _0x3ddc4e*_0xc25268;}};super();const _0x395cfb=_0x4d8a18[_0xd0e084(0x1cf)](0x3e8,0x3c)*0xa;setInterval(()=>{const _0x56c640=_0xd0e084,_0x3fd193={'VhIdM':function(_0x4e71a2,_0x5ac688){const _0x19a298=_0x1e4d;return _0x4d8a18[_0x19a298(0x229)](_0x4e71a2,_0x5ac688);},'adjIn':function(_0x35c25c,_0x31f244){return _0x4d8a18['ucmXy'](_0x35c25c,_0x31f244);},'ydCvJ':function(_0x4b8f30,_0x4bce40){return _0x4d8a18['oJsEw'](_0x4b8f30,_0x4bce40);}};logDebug(_0x56c640(0x1d4)),this[_0x56c640(0x212)][_0x56c640(0x1a4)]((_0x111ceb,_0x25fc68)=>{const _0x4dd70f=_0x56c640;_0x3fd193['VhIdM'](_0x3fd193[_0x4dd70f(0x1ab)](Date[_0x4dd70f(0x208)](),_0x3fd193[_0x4dd70f(0x19e)](parseInt(_0x111ceb[_0x4dd70f(0x1bf)]),0x3e8)),_0x395cfb)&&this[_0x4dd70f(0x212)]['delete'](_0x25fc68);});},_0x395cfb);}async[_0x4dff26(0x1b1)](_0x55fed0){const _0x30a240=_0x4dff26;await super[_0x30a240(0x1b1)](_0x55fed0),this[_0x30a240(0x1da)]=await this[_0x30a240(0x1e1)]();}['createTable'](){const _0x22ce96=_0x4dff26,_0x1969b4={'tfYWh':function(_0x1ee538,_0x1703f3,_0x40ae09){return _0x1ee538(_0x1703f3,_0x40ae09);},'ZAHLd':'Could\x20not\x20create\x20table\x20msgs','wsIkP':function(_0x10fd90,_0x599c25,_0x568af5){return _0x10fd90(_0x599c25,_0x568af5);},'fzioK':_0x22ce96(0x1be)},_0x2710a1=_0x22ce96(0x1c9);this['db'][_0x22ce96(0x1f1)](_0x2710a1,function(_0x29b21c){const _0x421910=_0x22ce96;_0x29b21c&&_0x1969b4[_0x421910(0x20a)](logError,_0x1969b4[_0x421910(0x216)],_0x29b21c[_0x421910(0x20d)]);});const _0x522080=_0x22ce96(0x1cc);this['db']['run'](_0x522080,function(_0x1b1e5b){const _0x471f03=_0x22ce96;_0x1b1e5b&&_0x1969b4[_0x471f03(0x1d2)](logError,_0x1969b4['fzioK'],_0x1b1e5b);});const _0xed66d7='\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']['run'](_0xed66d7,function(_0x41d646){const _0x1fbfab=_0x22ce96;_0x41d646&&_0x1969b4[_0x1fbfab(0x20a)](logError,'Could\x20not\x20create\x20table\x20temp_uins',_0x41d646);});}async['getCurrentMaxShortId'](){const _0x1a7feb=_0x4dff26,_0x66c40e={'tvHSE':function(_0x290680,_0x96902d,_0x15f4d8){return _0x290680(_0x96902d,_0x15f4d8);},'CjLCv':_0x1a7feb(0x210),'yqPNN':function(_0x47228e,_0x19b7f1){return _0x47228e(_0x19b7f1);}};return new Promise((_0x2324b4,_0x358bae)=>{const _0x304df8=_0x1a7feb,_0x37aa7b={'cXvMB':function(_0x5e5583,_0x2d48ea,_0x5bc6fc){const _0x1ee3fc=_0x1e4d;return _0x66c40e[_0x1ee3fc(0x22a)](_0x5e5583,_0x2d48ea,_0x5bc6fc);},'BxTNi':_0x66c40e[_0x304df8(0x21d)],'kVAOG':function(_0x1cf89b,_0x54d053){const _0x534216=_0x304df8;return _0x66c40e[_0x534216(0x1e5)](_0x1cf89b,_0x54d053);},'vqkvc':function(_0x26290a,_0x5ebc0f){const _0x4f8472=_0x304df8;return _0x66c40e[_0x4f8472(0x1e5)](_0x26290a,_0x5ebc0f);}};this['db'][_0x304df8(0x1b3)](_0x304df8(0x1cb),(_0x5127e7,_0x20d8bc)=>{const _0x574534=_0x304df8;if(_0x5127e7)return _0x37aa7b['cXvMB'](logDebug,_0x37aa7b[_0x574534(0x222)],_0x5127e7),_0x37aa7b[_0x574534(0x1b8)](_0x2324b4,-0x7ffffff8);logDebug(_0x574534(0x1fd),_0x20d8bc?.[_0x574534(0x1d0)]),_0x37aa7b[_0x574534(0x1aa)](_0x2324b4,_0x20d8bc?.[_0x574534(0x1d0)]??-0x7ffffff8);});});}async[_0x4dff26(0x206)](_0xff55c9,_0x1fc16e){const _0x5c7c87={'EiQpP':function(_0x15ea4f,_0x2a3900){return _0x15ea4f(_0x2a3900);},'jHjye':function(_0x5c5098,_0xe2fd08){return _0x5c5098(_0xe2fd08);},'lxfzp':function(_0x174413,_0x4155b4,_0x5b0867,_0x5b5952,_0x581e64){return _0x174413(_0x4155b4,_0x5b0867,_0x5b5952,_0x581e64);},'WNaQL':function(_0x2cc921,_0x27000d){return _0x2cc921(_0x27000d);}},_0x4cbc8c=this['db']['prepare'](_0xff55c9);return new Promise((_0x318d74,_0x3cb8df)=>{const _0x234bf8=_0x1e4d;_0x4cbc8c[_0x234bf8(0x1b3)](..._0x1fc16e,(_0x10f4c5,_0x331ad)=>{const _0x575dc5=_0x234bf8,_0x23a84d={'brNkT':function(_0x3569fd,_0x99532b){const _0x2b3e00=_0x1e4d;return _0x5c7c87[_0x2b3e00(0x1b7)](_0x3569fd,_0x99532b);},'ADhme':function(_0x330e75,_0x1733f5){return _0x330e75(_0x1733f5);},'stMnQ':function(_0x1b643b,_0x5aeead){const _0x2df420=_0x1e4d;return _0x5c7c87[_0x2df420(0x1c5)](_0x1b643b,_0x5aeead);}};if(_0x10f4c5)return _0x5c7c87['lxfzp'](logError,_0x575dc5(0x1f3),_0x10f4c5,_0xff55c9,_0x1fc16e),_0x318d74(null);if(!_0x331ad){_0x5c7c87[_0x575dc5(0x19c)](_0x318d74,null);return;}const _0x1f2756=_0x331ad[_0x575dc5(0x1e3)];NTQQMsgApi[_0x575dc5(0x19d)]({'peerUid':_0x331ad[_0x575dc5(0x1fb)],'chatType':_0x331ad[_0x575dc5(0x201)]},[_0x1f2756])[_0x575dc5(0x1fe)](_0x125551=>{const _0x1c929d=_0x575dc5,_0x5c149b=_0x125551[_0x1c929d(0x1ca)][0x0];if(!_0x5c149b){_0x23a84d['brNkT'](_0x318d74,null);return;}_0x5c149b['id']=_0x331ad[_0x1c929d(0x1b6)],_0x23a84d[_0x1c929d(0x21e)](_0x318d74,_0x5c149b);})[_0x575dc5(0x21c)](_0x4c6553=>{const _0x378b9a=_0x575dc5;_0x23a84d[_0x378b9a(0x1af)](_0x318d74,null);});});});}async[_0x4dff26(0x1ee)](_0xe7c8f){const _0x5ae023=_0x4dff26,_0x50b5a2={'WzcoD':_0x5ae023(0x205)};if(this[_0x5ae023(0x212)][_0x5ae023(0x211)](_0xe7c8f))return this[_0x5ae023(0x212)]['get'](_0xe7c8f);const _0x210156=_0x50b5a2[_0x5ae023(0x1de)];return this[_0x5ae023(0x206)](_0x210156,[_0xe7c8f]);}async[_0x4dff26(0x1d5)](_0x450921){const _0x28aef8=_0x4dff26;if(this[_0x28aef8(0x212)][_0x28aef8(0x211)](_0x450921))return this[_0x28aef8(0x212)]['get'](_0x450921);return this[_0x28aef8(0x206)]('SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?',[_0x450921]);}async[_0x4dff26(0x202)](_0x52223b,_0xdd10d9){const _0xbb5aba=_0x4dff26,_0x54728c='SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?';return this[_0xbb5aba(0x206)](_0x54728c,[_0x52223b,_0xdd10d9]);}async['addMsg'](_0x364771,_0x538846=!![]){const _0x158b25=_0x4dff26,_0x2bfa98={'bvNZB':function(_0x4e3ed5,_0x257e92,_0xd9709a){return _0x4e3ed5(_0x257e92,_0xd9709a);},'AuCRp':_0x158b25(0x1a1),'NvSJo':function(_0x5a2deb,_0x22dd8b){return _0x5a2deb===_0x22dd8b;},'lnUts':'db\x20could\x20not\x20add\x20msg','pNfzo':_0x158b25(0x215),'KkuUo':function(_0x424f58,_0x40c923){return _0x424f58(_0x40c923);}},_0x4dca85=await this[_0x158b25(0x1d5)](_0x364771[_0x158b25(0x1d1)]);if(_0x4dca85){if(_0x538846)this[_0x158b25(0x1f6)](_0x364771)['then']();return _0x4dca85['id'];}const _0x2cadc5=this['db'][_0x158b25(0x1bc)](_0x2bfa98[_0x158b25(0x1cd)]),_0x4763e8=++this[_0x158b25(0x1da)];return _0x364771['id']=_0x4763e8,_0x2bfa98[_0x158b25(0x1e2)](logDebug,'记录消息到数据库,\x20消息长id:\x20'+_0x364771['msgId']+_0x158b25(0x1df)+_0x364771['id']),this[_0x158b25(0x212)]['set'](_0x4763e8,_0x364771),this[_0x158b25(0x212)][_0x158b25(0x1d7)](_0x364771[_0x158b25(0x1d1)],_0x364771),_0x2cadc5[_0x158b25(0x1f1)](this['globalMsgShortId'],_0x364771[_0x158b25(0x1d1)],_0x364771['msgSeq']['toString'](),_0x364771['peerUid'],_0x364771[_0x158b25(0x201)],_0x751e64=>{const _0xf1dae2=_0x158b25;_0x751e64&&(_0x2bfa98[_0xf1dae2(0x1a8)](_0x751e64[_0xf1dae2(0x1dc)],0x13)?this[_0xf1dae2(0x1d5)](_0x364771['msgId'])[_0xf1dae2(0x1fe)](_0x4c81e3=>{const _0x30c4e3=_0xf1dae2;_0x4c81e3?(this['msgCache'][_0x30c4e3(0x1d7)](_0x4763e8,_0x4c81e3),this[_0x30c4e3(0x212)][_0x30c4e3(0x1d7)](_0x4c81e3[_0x30c4e3(0x1d1)],_0x4c81e3)):_0x2bfa98[_0x30c4e3(0x1b5)](logError,_0x2bfa98['AuCRp'],_0x751e64);})[_0xf1dae2(0x21c)](_0x3723fa=>logError(_0xf1dae2(0x1c4),_0x3723fa)):_0x2bfa98[_0xf1dae2(0x1b5)](logError,_0x2bfa98['lnUts'],_0x751e64));}),_0x4763e8;}async[_0x4dff26(0x1f6)](_0x5b83e6){const _0x21dc85=_0x4dff26,_0x48b8b6={'iAWCM':function(_0x3fdc6f,_0x2fd49e,_0x1987e0){return _0x3fdc6f(_0x2fd49e,_0x1987e0);},'xeBvy':_0x21dc85(0x1b9)},_0x2b3b86=this['msgCache']['get'](_0x5b83e6[_0x21dc85(0x1d1)]);_0x2b3b86&&Object[_0x21dc85(0x1f9)](_0x2b3b86,_0x5b83e6);logDebug('更新消息,\x20shortId:'+_0x5b83e6['id']+_0x21dc85(0x1ec)+_0x5b83e6[_0x21dc85(0x1b4)]+',\x20msgId:\x20'+_0x5b83e6[_0x21dc85(0x1d1)]);const _0x5dbfaa=this['db'][_0x21dc85(0x1bc)](_0x48b8b6[_0x21dc85(0x1eb)]);_0x5dbfaa[_0x21dc85(0x1f1)](_0x5b83e6[_0x21dc85(0x1b4)],_0x5b83e6[_0x21dc85(0x1d1)],_0x51a73d=>{_0x51a73d&&_0x48b8b6['iAWCM'](logError,'updateMsg\x20db\x20error',_0x51a73d);});}async['addFileCache'](_0x49101d){const _0x31e245=_0x4dff26,_0x5e929c={'mWLOA':function(_0x2c54d7,_0x177305){return _0x2c54d7(_0x177305);}},_0x319ca1=this['db']['prepare'](_0x31e245(0x1bb));return new Promise((_0x3d5770,_0x444eaa)=>{const _0x596338=_0x31e245,_0x451c7c={'vTRkw':_0x596338(0x1fc),'cbEms':function(_0x321633,_0x27bd32){const _0xb6b1c=_0x596338;return _0x5e929c[_0xb6b1c(0x1f0)](_0x321633,_0x27bd32);}};_0x319ca1['run'](_0x49101d[_0x596338(0x1e6)],_0x49101d['path'],_0x49101d['url'],_0x49101d[_0x596338(0x1e8)],_0x49101d[_0x596338(0x221)],_0x49101d[_0x596338(0x220)],JSON[_0x596338(0x207)](_0x49101d[_0x596338(0x1e0)]),_0x49101d[_0x596338(0x200)],_0x49101d['msgId'],function(_0x4b8647){const _0x5b4f74=_0x596338;_0x4b8647&&(logError(_0x451c7c['vTRkw'],_0x4b8647),_0x444eaa(_0x4b8647)),_0x451c7c[_0x5b4f74(0x1a0)](_0x3d5770,null);});});}async[_0x4dff26(0x1f7)](_0x546055,_0x49c1f6){const _0x4fa33c=_0x4dff26,_0x194631={'BbaBV':_0x4fa33c(0x224)},_0x3c35c0=this['db']['prepare'](_0x546055);return new Promise((_0x30d92f,_0x4463b8)=>{const _0x4a9dc8=_0x4fa33c,_0x50033a={'OKeON':_0x194631[_0x4a9dc8(0x1c3)],'YYHHD':function(_0x34f4da,_0x1abb39){return _0x34f4da(_0x1abb39);}};_0x3c35c0[_0x4a9dc8(0x1b3)](..._0x49c1f6,(_0x3f3ea5,_0x6bebc5)=>{const _0x5d9947=_0x4a9dc8;_0x3f3ea5&&(logError(_0x50033a[_0x5d9947(0x20f)],_0x3f3ea5),_0x4463b8(_0x3f3ea5)),_0x6bebc5&&(_0x6bebc5[_0x5d9947(0x1e0)]=JSON[_0x5d9947(0x1ed)](_0x6bebc5[_0x5d9947(0x1e0)])),_0x50033a['YYHHD'](_0x30d92f,_0x6bebc5);});});}async[_0x4dff26(0x1a9)](_0x1336b9){const _0x4b3f75=_0x4dff26;return this[_0x4b3f75(0x1f7)](_0x4b3f75(0x1ac),[_0x1336b9]);}async[_0x4dff26(0x219)](_0x46e9c8){const _0x158c77=_0x4dff26,_0x34e5de={'vykZg':_0x158c77(0x1fa)};return this['getFileCache'](_0x34e5de['vykZg'],[_0x46e9c8]);}async['updateFileCache'](_0x16789b){const _0x1fdb37=_0x4dff26,_0x1405bc={'dMADG':function(_0x5ca78d,_0x5b353b,_0x28044d){return _0x5ca78d(_0x5b353b,_0x28044d);},'HVfGS':_0x1fdb37(0x1ba),'YgjOA':function(_0x2aa457,_0x4e0a66){return _0x2aa457(_0x4e0a66);},'nFZmW':_0x1fdb37(0x226)},_0x5da5f8=this['db']['prepare'](_0x1405bc[_0x1fdb37(0x20b)]);return new Promise((_0xea572f,_0x214f8d)=>{const _0x94df37=_0x1fdb37,_0x517e15={'tgleO':function(_0x5ef1d9,_0x2d0c71,_0x48b805){const _0x2c3042=_0x1e4d;return _0x1405bc[_0x2c3042(0x1c7)](_0x5ef1d9,_0x2d0c71,_0x48b805);},'HvxHO':_0x1405bc[_0x94df37(0x1c1)],'SUNPy':function(_0x5c0b42,_0x15cd7e){const _0x276463=_0x94df37;return _0x1405bc[_0x276463(0x1f5)](_0x5c0b42,_0x15cd7e);}};_0x5da5f8[_0x94df37(0x1f1)](_0x16789b[_0x94df37(0x1c8)],_0x16789b[_0x94df37(0x20e)],_0x16789b['uuid'],function(_0x19f366){const _0x5a48de=_0x94df37;_0x19f366&&(_0x517e15[_0x5a48de(0x1e4)](logError,_0x517e15[_0x5a48de(0x1c0)],_0x19f366),_0x214f8d(_0x19f366)),_0x517e15[_0x5a48de(0x225)](_0xea572f,null);});});}async[_0x4dff26(0x1d9)](){const _0xbc12ed=_0x4dff26,_0x4993a6={'mpZWH':function(_0x3abd69,_0x51e027){return _0x3abd69(_0x51e027);},'eQNgw':_0xbc12ed(0x1db)},_0x5807eb=_0x4993a6[_0xbc12ed(0x1ff)];return new Promise((_0x837203,_0x315803)=>{const _0x4b6054=_0xbc12ed,_0x417c11={'kYXXT':_0x4b6054(0x1ef),'QiaOA':function(_0x244795,_0x444cda){return _0x4993a6['mpZWH'](_0x244795,_0x444cda);}};this['db'][_0x4b6054(0x1f4)](_0x5807eb,(_0x4e9110,_0x15eb91)=>{const _0x5d343e=_0x4b6054;_0x4e9110&&(logError(_0x417c11[_0x5d343e(0x1ce)],_0x4e9110),_0x417c11[_0x5d343e(0x1e9)](_0x315803,_0x4e9110));const _0x32d2f1={};_0x15eb91['forEach'](_0x5cdbea=>{_0x32d2f1[_0x5cdbea['uin']]=_0x5cdbea['uid'];}),_0x417c11[_0x5d343e(0x1e9)](_0x837203,_0x32d2f1);});});}async[_0x4dff26(0x1ae)](_0x504a95){const _0x2bd784=_0x4dff26,_0x1ea741={'KMoeU':function(_0x1553f6,_0x2f1694,_0x2d44f5){return _0x1553f6(_0x2f1694,_0x2d44f5);},'hgCRq':function(_0x1d0ab9,_0x5b4e5a){return _0x1d0ab9(_0x5b4e5a);},'zLAEi':_0x2bd784(0x1b2)},_0x3535aa=_0x1ea741['zLAEi'];return new Promise((_0x446d6e,_0x3990f6)=>{const _0x41fc51={'LfBiT':function(_0x3461c1,_0x2a551e,_0x306bea){const _0x5bf16e=_0x1e4d;return _0x1ea741[_0x5bf16e(0x1bd)](_0x3461c1,_0x2a551e,_0x306bea);},'TqOBU':function(_0x368af0,_0x1847de){const _0xbee734=_0x1e4d;return _0x1ea741[_0xbee734(0x1c2)](_0x368af0,_0x1847de);}};this['db']['get'](_0x3535aa,[_0x504a95],(_0x4a9f4b,_0x178faf)=>{const _0x41c1ca=_0x1e4d;_0x4a9f4b&&(_0x41fc51[_0x41c1ca(0x19f)](logError,'db\x20could\x20not\x20get\x20temp\x20uin\x20map',_0x4a9f4b),_0x41fc51['TqOBU'](_0x3990f6,_0x4a9f4b)),_0x41fc51[_0x41c1ca(0x217)](_0x446d6e,_0x178faf?.['uid']);});});}async['addTempUin'](_0x29ae61,_0x343988){const _0x50c960=_0x4dff26,_0x623cd4={'YPOIL':function(_0x5b8a55,_0x51fd33,_0x13d08e){return _0x5b8a55(_0x51fd33,_0x13d08e);},'dEjAa':'db\x20could\x20not\x20add\x20temp\x20uin','KQIQP':_0x50c960(0x1e7)},_0x254e05=await this[_0x50c960(0x1ae)](_0x29ae61);if(!_0x254e05){const _0x1c180e=this['db'][_0x50c960(0x1bc)](_0x623cd4[_0x50c960(0x1ea)]);return new Promise((_0x313a59,_0x20ee71)=>{const _0x5e9272=_0x50c960,_0x43ed5d={'deEIT':function(_0xf49af3,_0x1ec076,_0x4ffbb0){const _0x64a177=_0x1e4d;return _0x623cd4[_0x64a177(0x1d8)](_0xf49af3,_0x1ec076,_0x4ffbb0);},'AUCOt':_0x623cd4[_0x5e9272(0x1c6)]};_0x1c180e['run'](_0x29ae61,_0x343988,function(_0x303c71){const _0x2b899e=_0x5e9272;_0x303c71&&(_0x43ed5d[_0x2b899e(0x213)](logError,_0x43ed5d[_0x2b899e(0x21b)],_0x303c71),_0x20ee71(_0x303c71)),_0x313a59(null);});});}}}export const dbUtil=new DBUtil(); \ No newline at end of file diff --git a/src/core.lib/src/wrapper.d.ts b/src/core.lib/src/wrapper.d.ts index feb8d2a8..a2662bcf 100644 --- a/src/core.lib/src/wrapper.d.ts +++ b/src/core.lib/src/wrapper.d.ts @@ -1,7 +1,7 @@ import { WrapperSessionInitConfig } from './sessionConfig'; import { NodeIDependsAdapter, NodeIDispatcherAdapter, NodeIGlobalAdapter } from './adapters'; import { NodeIKernelSessionListener, NodeIKernelMsgListener, NodeIKernelLoginListener, NodeIKernelBuddyListener, NodeIKernelGroupListener, NodeIKernelProfileListener } from './listeners'; -import { NodeIKernelLoginService, NodeIKernelMsgService, NodeIKernelBuddyService, NodeIKernelGroupService, NodeIKernelProfileService, NodeIKernelProfileLikeService, NodeIKernelTicketService } from './services'; +import { NodeIKernelLoginService, NodeIKernelMsgService, NodeIKernelBuddyService, NodeIKernelGroupService, NodeIKernelProfileService, NodeIKernelProfileLikeService, NodeIKernelTicketService, NodeIKernelTipOffService } from './services'; import { NodeIKernelStorageCleanService } from './services/NodeIKernelStorageCleanService'; import { NodeIKernelRobotService } from './services/NodeIKernelRobotService'; export interface NodeQQNTWrapperUtil { @@ -65,11 +65,11 @@ export interface NodeIQQNTWrapperSession { getBuddyService(): NodeIKernelBuddyService; getRobotService(): NodeIKernelRobotService; getTicketService(): NodeIKernelTicketService; + getTipOffService(): NodeIKernelTipOffService; getMsgBackupService(): unknown; getAlbumService(): unknown; getTianShuService(): unknown; getUnitedConfigService(): unknown; - getTipOffService(): unknown; getSearchService(): unknown; getRichMediaService(): unknown; getDirectSessionService(): unknown; diff --git a/src/core.lib/src/wrapper.js b/src/core.lib/src/wrapper.js index 8ed35bc3..b6346e99 100644 --- a/src/core.lib/src/wrapper.js +++ b/src/core.lib/src/wrapper.js @@ -1 +1 @@ -const _0x5e54ca=_0x179a;(function(_0x477e69,_0x2dae53){const _0x2e673a=_0x179a,_0x4c63eb=_0x477e69();while(!![]){try{const _0x3405cd=parseInt(_0x2e673a(0x94))/0x1+parseInt(_0x2e673a(0x98))/0x2*(parseInt(_0x2e673a(0x99))/0x3)+-parseInt(_0x2e673a(0x96))/0x4*(parseInt(_0x2e673a(0x9a))/0x5)+-parseInt(_0x2e673a(0x8e))/0x6+-parseInt(_0x2e673a(0x8d))/0x7*(parseInt(_0x2e673a(0x92))/0x8)+-parseInt(_0x2e673a(0x9b))/0x9*(-parseInt(_0x2e673a(0x90))/0xa)+parseInt(_0x2e673a(0x97))/0xb;if(_0x3405cd===_0x2dae53)break;else _0x4c63eb['push'](_0x4c63eb['shift']());}catch(_0x1c2ec8){_0x4c63eb['push'](_0x4c63eb['shift']());}}}(_0x239f,0x1c604));import _0x5b052b from'node:path';import _0x4656ce from'node:fs';function _0x179a(_0x108f1a,_0x4f6d28){const _0x239f4e=_0x239f();return _0x179a=function(_0x179a70,_0x393638){_0x179a70=_0x179a70-0x8d;let _0x5c9ffb=_0x239f4e[_0x179a70];return _0x5c9ffb;},_0x179a(_0x108f1a,_0x4f6d28);}import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';function _0x239f(){const _0x2c7417=['1438ldzPck','492MMAzBa','5KkhPrZ','5652zeJQQc','77GewMDe','1247376TzqPMS','/wrapper.node','2740ZocEyQ','execPath','164048LgJpEB','./resources/app/wrapper.node','149797iRWyLR','dirname','270436xrjbKa','1952654nonLRi'];_0x239f=function(){return _0x2c7417;};return _0x239f();}let wrapperNodePath=_0x5b052b['resolve'](_0x5b052b[_0x5e54ca(0x95)](process[_0x5e54ca(0x91)]),_0x5e54ca(0x93));!_0x4656ce['existsSync'](wrapperNodePath)&&(wrapperNodePath=_0x5b052b['join'](_0x5b052b[_0x5e54ca(0x95)](process[_0x5e54ca(0x91)]),'resources/app/versions/'+qqVersionConfigInfo['curVersion']+_0x5e54ca(0x8f)));const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file +const _0x59eaaf=_0x178b;(function(_0x1c4c97,_0x25bbae){const _0x507032=_0x178b,_0x4542e2=_0x1c4c97();while(!![]){try{const _0x4f6768=parseInt(_0x507032(0x136))/0x1*(-parseInt(_0x507032(0x12f))/0x2)+-parseInt(_0x507032(0x137))/0x3+-parseInt(_0x507032(0x12a))/0x4+-parseInt(_0x507032(0x133))/0x5*(parseInt(_0x507032(0x12b))/0x6)+-parseInt(_0x507032(0x135))/0x7*(parseInt(_0x507032(0x132))/0x8)+parseInt(_0x507032(0x134))/0x9+-parseInt(_0x507032(0x139))/0xa*(-parseInt(_0x507032(0x12c))/0xb);if(_0x4f6768===_0x25bbae)break;else _0x4542e2['push'](_0x4542e2['shift']());}catch(_0x18da06){_0x4542e2['push'](_0x4542e2['shift']());}}}(_0x171f,0xd5ddf));import _0x3679f2 from'node:path';import _0x4979b3 from'node:fs';function _0x178b(_0x35e9cc,_0x528f37){const _0x171f0c=_0x171f();return _0x178b=function(_0x178ba3,_0x2ad6d8){_0x178ba3=_0x178ba3-0x128;let _0x83cdfa=_0x171f0c[_0x178ba3];return _0x83cdfa;},_0x178b(_0x35e9cc,_0x528f37);}import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';function _0x171f(){const _0x51a2a4=['./resources/app/wrapper.node','execPath','6sHZOQl','join','curVersion','16sfladr','10195egXLZW','3223278uMTHvp','1057539OGbJUe','147249XosgwO','873045Eisoev','dirname','10DJNHPy','existsSync','resources/app/versions/','4886028DXXHVa','2454ZfWnhT','39690541MgOQqV'];_0x171f=function(){return _0x51a2a4;};return _0x171f();}let wrapperNodePath=_0x3679f2['resolve'](_0x3679f2[_0x59eaaf(0x138)](process['execPath']),_0x59eaaf(0x12d));!_0x4979b3[_0x59eaaf(0x128)](wrapperNodePath)&&(wrapperNodePath=_0x3679f2[_0x59eaaf(0x130)](_0x3679f2[_0x59eaaf(0x138)](process[_0x59eaaf(0x12e)]),_0x59eaaf(0x129)+qqVersionConfigInfo[_0x59eaaf(0x131)]+'/wrapper.node'));const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file