From eeeae449b4cf6b9e7683c33cb7419caa7fafdfbb Mon Sep 17 00:00:00 2001 From: linyuchen Date: Sun, 12 May 2024 18:00:23 +0800 Subject: [PATCH] update core.lib --- src/core.lib/src/adapters/NodeIDependsAdapter.js | 2 +- .../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.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/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 +- .../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/core.lib/src/services/common.js | 2 +- 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/utils/rkey.d.ts | 16 ++++++++++++++++ src/core.lib/src/utils/rkey.js | 1 + src/core.lib/src/wrapper.js | 2 +- 41 files changed, 56 insertions(+), 39 deletions(-) create mode 100644 src/core.lib/src/utils/rkey.d.ts create mode 100644 src/core.lib/src/utils/rkey.js diff --git a/src/core.lib/src/adapters/NodeIDependsAdapter.js b/src/core.lib/src/adapters/NodeIDependsAdapter.js index c520e6b9..1439ed02 100644 --- a/src/core.lib/src/adapters/NodeIDependsAdapter.js +++ b/src/core.lib/src/adapters/NodeIDependsAdapter.js @@ -1 +1 @@ -function _0x4431(_0x5be8bd,_0x5aa1ed){var _0x5005c7=_0x5005();return _0x4431=function(_0x443164,_0x4be50e){_0x443164=_0x443164-0x15c;var _0xb65006=_0x5005c7[_0x443164];return _0xb65006;},_0x4431(_0x5be8bd,_0x5aa1ed);}var _0x152e25=_0x4431;function _0x5005(){var _0x3afa74=['5ZEtFEy','4306416KDeujN','806643IPTohf','1308526keXvZc','550ZxJxKC','29498062wVtncs','12RnfKAu','getGroupCode','3836ynYtYU','14864alejtF','24NbaCXA','onMSFSsoError','611253BjjKrt','183078pECJGD'];_0x5005=function(){return _0x3afa74;};return _0x5005();}(function(_0x1a4246,_0x476586){var _0x513a64=_0x4431,_0x5882c4=_0x1a4246();while(!![]){try{var _0x558f6b=parseInt(_0x513a64(0x163))/0x1+parseInt(_0x513a64(0x168))/0x2+parseInt(_0x513a64(0x167))/0x3*(parseInt(_0x513a64(0x161))/0x4)+-parseInt(_0x513a64(0x165))/0x5*(-parseInt(_0x513a64(0x166))/0x6)+-parseInt(_0x513a64(0x15f))/0x7*(-parseInt(_0x513a64(0x160))/0x8)+-parseInt(_0x513a64(0x164))/0x9*(parseInt(_0x513a64(0x169))/0xa)+parseInt(_0x513a64(0x15c))/0xb*(-parseInt(_0x513a64(0x15d))/0xc);if(_0x558f6b===_0x476586)break;else _0x5882c4['push'](_0x5882c4['shift']());}catch(_0x164170){_0x5882c4['push'](_0x5882c4['shift']());}}}(_0x5005,0xc6cbe));export class DependsAdapter{['onMSFStatusChange'](_0x588ba4,_0xaa2895){}[_0x152e25(0x162)](_0x120523){}[_0x152e25(0x15e)](_0x302bd4){}} \ No newline at end of file +function _0x110c(_0x595c86,_0x3139aa){var _0x231f02=_0x231f();return _0x110c=function(_0x110c74,_0x947c84){_0x110c74=_0x110c74-0x12b;var _0x446eec=_0x231f02[_0x110c74];return _0x446eec;},_0x110c(_0x595c86,_0x3139aa);}var _0x49ff0e=_0x110c;function _0x231f(){var _0x4dbc2c=['1663227JahliD','884005WwCKyk','14169872qMTvut','2226918fTonYN','6qErjHk','9880182MifjsP','getGroupCode','8660519TRuqEQ','3325905KQdLdW','onMSFStatusChange','onMSFSsoError','4jCSCeS'];_0x231f=function(){return _0x4dbc2c;};return _0x231f();}(function(_0x3f58f7,_0x38bc32){var _0x48df50=_0x110c,_0x10b658=_0x3f58f7();while(!![]){try{var _0x3ad331=-parseInt(_0x48df50(0x130))/0x1+parseInt(_0x48df50(0x132))/0x2+-parseInt(_0x48df50(0x12f))/0x3+parseInt(_0x48df50(0x12e))/0x4*(parseInt(_0x48df50(0x12b))/0x5)+-parseInt(_0x48df50(0x133))/0x6*(-parseInt(_0x48df50(0x136))/0x7)+-parseInt(_0x48df50(0x131))/0x8+parseInt(_0x48df50(0x134))/0x9;if(_0x3ad331===_0x38bc32)break;else _0x10b658['push'](_0x10b658['shift']());}catch(_0x6c713f){_0x10b658['push'](_0x10b658['shift']());}}}(_0x231f,0xdcb47));export class DependsAdapter{[_0x49ff0e(0x12c)](_0x29f6ba,_0x4c9bad){}[_0x49ff0e(0x12d)](_0x3128a6){}[_0x49ff0e(0x135)](_0x16f272){}} \ 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 615530c1..938f874e 100644 --- a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js +++ b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js @@ -1 +1 @@ -var _0x2d9ad1=_0x20e7;function _0x20e7(_0x57f603,_0x46ea2b){var _0x553a75=_0x553a();return _0x20e7=function(_0x20e73e,_0x1a51ec){_0x20e73e=_0x20e73e-0x14a;var _0xc38d1e=_0x553a75[_0x20e73e];return _0xc38d1e;},_0x20e7(_0x57f603,_0x46ea2b);}(function(_0x2e7275,_0x2ea026){var _0x476874=_0x20e7,_0x4cf85f=_0x2e7275();while(!![]){try{var _0x986304=-parseInt(_0x476874(0x153))/0x1+parseInt(_0x476874(0x14b))/0x2*(parseInt(_0x476874(0x151))/0x3)+parseInt(_0x476874(0x156))/0x4+parseInt(_0x476874(0x152))/0x5+parseInt(_0x476874(0x14e))/0x6+-parseInt(_0x476874(0x14c))/0x7*(parseInt(_0x476874(0x14f))/0x8)+parseInt(_0x476874(0x14a))/0x9*(-parseInt(_0x476874(0x155))/0xa);if(_0x986304===_0x2ea026)break;else _0x4cf85f['push'](_0x4cf85f['shift']());}catch(_0x28f26b){_0x4cf85f['push'](_0x4cf85f['shift']());}}}(_0x553a,0xafde9));export class DispatcherAdapter{[_0x2d9ad1(0x14d)](_0x112f8f){}[_0x2d9ad1(0x154)](_0x5ba6f9){}[_0x2d9ad1(0x150)](_0x1786fb){}}function _0x553a(){var _0x5dc76e=['4762278fhtsbE','80RipebT','dispatchCallWithJson','3970158TQGOFm','3193315akTSkU','143727hnjzGb','dispatchCall','10jWZPTw','2672060ANtbNC','16537581VnlaoV','2VYJEoe','505526FnJzaP','dispatchRequest'];_0x553a=function(){return _0x5dc76e;};return _0x553a();} \ No newline at end of file +var _0x597d3c=_0x42fb;(function(_0xfdb4bc,_0x14dfce){var _0x317290=_0x42fb,_0x5aa869=_0xfdb4bc();while(!![]){try{var _0x4db1e8=-parseInt(_0x317290(0x14d))/0x1*(parseInt(_0x317290(0x14b))/0x2)+parseInt(_0x317290(0x14f))/0x3*(parseInt(_0x317290(0x14c))/0x4)+-parseInt(_0x317290(0x149))/0x5+parseInt(_0x317290(0x155))/0x6*(parseInt(_0x317290(0x154))/0x7)+parseInt(_0x317290(0x152))/0x8*(parseInt(_0x317290(0x14a))/0x9)+-parseInt(_0x317290(0x156))/0xa+parseInt(_0x317290(0x150))/0xb*(-parseInt(_0x317290(0x153))/0xc);if(_0x4db1e8===_0x14dfce)break;else _0x5aa869['push'](_0x5aa869['shift']());}catch(_0x1f7bb8){_0x5aa869['push'](_0x5aa869['shift']());}}}(_0x21f1,0x96543));function _0x21f1(){var _0x95eeb6=['12xsNOfr','4109147rlNaqd','6wcuPVp','579710SRsakU','573350eJMGOQ','711MxGdxG','1738PgUAay','11612xAPBve','30PuyngM','dispatchCallWithJson','522UMrcBb','10905081TetBRQ','dispatchRequest','72272FIzmAS'];_0x21f1=function(){return _0x95eeb6;};return _0x21f1();}function _0x42fb(_0x242efc,_0x42c784){var _0x21f172=_0x21f1();return _0x42fb=function(_0x42fb91,_0x1def1f){_0x42fb91=_0x42fb91-0x149;var _0x4541f3=_0x21f172[_0x42fb91];return _0x4541f3;},_0x42fb(_0x242efc,_0x42c784);}export class DispatcherAdapter{[_0x597d3c(0x151)](_0x5a3340){}['dispatchCall'](_0x46cb04){}[_0x597d3c(0x14e)](_0x113a9f){}} \ 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 37289caf..24ec6a15 100644 --- a/src/core.lib/src/adapters/NodeIGlobalAdapter.js +++ b/src/core.lib/src/adapters/NodeIGlobalAdapter.js @@ -1 +1 @@ -var _0x3e0300=_0x547d;(function(_0x4495b5,_0x50495e){var _0xcc45ab=_0x547d,_0xc286f2=_0x4495b5();while(!![]){try{var _0x4a576d=parseInt(_0xcc45ab(0x8e))/0x1*(parseInt(_0xcc45ab(0x97))/0x2)+-parseInt(_0xcc45ab(0x96))/0x3+-parseInt(_0xcc45ab(0x99))/0x4+-parseInt(_0xcc45ab(0x98))/0x5+parseInt(_0xcc45ab(0x8d))/0x6+parseInt(_0xcc45ab(0x9a))/0x7*(parseInt(_0xcc45ab(0x94))/0x8)+parseInt(_0xcc45ab(0x95))/0x9;if(_0x4a576d===_0x50495e)break;else _0xc286f2['push'](_0xc286f2['shift']());}catch(_0x3beac8){_0xc286f2['push'](_0xc286f2['shift']());}}}(_0x30e2,0xabbc0));function _0x547d(_0x31502f,_0x4bc979){var _0x30e28b=_0x30e2();return _0x547d=function(_0x547d76,_0xd56f5a){_0x547d76=_0x547d76-0x8c;var _0x7a76d0=_0x30e28b[_0x547d76];return _0x7a76d0;},_0x547d(_0x31502f,_0x4bc979);}export class GlobalAdapter{[_0x3e0300(0x93)](..._0x1d83f2){}[_0x3e0300(0x92)](..._0x42f4e8){}['onShowErrUITips'](..._0x54ada2){}[_0x3e0300(0x90)](..._0x512cef){}[_0x3e0300(0x91)](..._0xd1f511){}[_0x3e0300(0x8c)](..._0x910783){}['onUpdateGeneralFlag'](..._0x4ec9b1){}[_0x3e0300(0x8f)](..._0x2834e0){}}function _0x30e2(){var _0x5648da=['onGetSrvCalTime','onLog','3560432wQRoxO','8012709IlmsCe','1141632CEYsVH','842278TvgExZ','4523775orQNNg','5266676RHyRBG','14zNpgCi','onInstallFinished','6623064ovdplC','1UTiVDu','onGetOfflineMsg','fixPicImgType','getAppSetting'];_0x30e2=function(){return _0x5648da;};return _0x30e2();} \ No newline at end of file +var _0x4e2c19=_0x4fb8;(function(_0x36a805,_0x8e27a1){var _0x45b88e=_0x4fb8,_0x29b36c=_0x36a805();while(!![]){try{var _0x3b2334=-parseInt(_0x45b88e(0xea))/0x1*(-parseInt(_0x45b88e(0xe9))/0x2)+-parseInt(_0x45b88e(0xeb))/0x3*(parseInt(_0x45b88e(0xe4))/0x4)+parseInt(_0x45b88e(0xe5))/0x5+parseInt(_0x45b88e(0xec))/0x6+-parseInt(_0x45b88e(0xe8))/0x7*(parseInt(_0x45b88e(0xe1))/0x8)+parseInt(_0x45b88e(0xe2))/0x9*(-parseInt(_0x45b88e(0xe6))/0xa)+parseInt(_0x45b88e(0xe3))/0xb;if(_0x3b2334===_0x8e27a1)break;else _0x29b36c['push'](_0x29b36c['shift']());}catch(_0x5166aa){_0x29b36c['push'](_0x29b36c['shift']());}}}(_0x4681,0x45718));function _0x4681(){var _0x1838b7=['fixPicImgType','8MgYBWl','7065nLSLOL','459547xjsNcq','136fIgdJd','1382700fixoBc','3190DawJIo','getAppSetting','1550143JPVmgE','9390MleefL','68oCSaeZ','8907HmUBlh','1318038OgUqAm','onGetSrvCalTime','onInstallFinished','onGetOfflineMsg','onShowErrUITips'];_0x4681=function(){return _0x1838b7;};return _0x4681();}function _0x4fb8(_0x46f65b,_0x3cfccf){var _0x46814d=_0x4681();return _0x4fb8=function(_0x4fb8a4,_0x37ccb9){_0x4fb8a4=_0x4fb8a4-0xdd;var _0x5267b5=_0x46814d[_0x4fb8a4];return _0x5267b5;},_0x4fb8(_0x46f65b,_0x3cfccf);}export class GlobalAdapter{['onLog'](..._0x5a9c2f){}[_0x4e2c19(0xed)](..._0x1ebb3b){}[_0x4e2c19(0xdf)](..._0xf4a575){}[_0x4e2c19(0xe0)](..._0x49a0dc){}[_0x4e2c19(0xe7)](..._0x430ac4){}[_0x4e2c19(0xdd)](..._0x505069){}['onUpdateGeneralFlag'](..._0x354048){}[_0x4e2c19(0xde)](..._0x3fb54e){}} \ 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 21b5cade..5e1f622a 100644 --- a/src/core.lib/src/adapters/index.js +++ b/src/core.lib/src/adapters/index.js @@ -1 +1 @@ -(function(_0x19e70e,_0x24501c){var _0x480024=_0x4741,_0x26e8d4=_0x19e70e();while(!![]){try{var _0x473242=-parseInt(_0x480024(0xf1))/0x1*(parseInt(_0x480024(0xee))/0x2)+-parseInt(_0x480024(0xf4))/0x3+-parseInt(_0x480024(0xf2))/0x4*(parseInt(_0x480024(0xef))/0x5)+-parseInt(_0x480024(0xf3))/0x6+-parseInt(_0x480024(0xed))/0x7*(-parseInt(_0x480024(0xf0))/0x8)+parseInt(_0x480024(0xf7))/0x9*(parseInt(_0x480024(0xf5))/0xa)+parseInt(_0x480024(0xf6))/0xb;if(_0x473242===_0x24501c)break;else _0x26e8d4['push'](_0x26e8d4['shift']());}catch(_0x2ca5bf){_0x26e8d4['push'](_0x26e8d4['shift']());}}}(_0x13ca,0x5387f));function _0x4741(_0x21dbf4,_0x301b10){var _0x13ca1a=_0x13ca();return _0x4741=function(_0x474144,_0x20349c){_0x474144=_0x474144-0xed;var _0x442440=_0x13ca1a[_0x474144];return _0x442440;},_0x4741(_0x21dbf4,_0x301b10);}function _0x13ca(){var _0x162218=['921483cLorra','119LtGyrZ','4dcyBgh','15ALQmgx','230648uhHoYX','284246RRkrwg','761632TIroMB','3419298OmOYTX','286104DnpGUH','30pPWkQr','14848042FzpjXq'];_0x13ca=function(){return _0x162218;};return _0x13ca();}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter'; \ No newline at end of file +function _0x3beb(_0x1903fe,_0x5438f8){var _0xf175e=_0xf175();return _0x3beb=function(_0x3bebcb,_0x31ae37){_0x3bebcb=_0x3bebcb-0x10b;var _0x5ec469=_0xf175e[_0x3bebcb];return _0x5ec469;},_0x3beb(_0x1903fe,_0x5438f8);}(function(_0x4c0678,_0x26d581){var _0x24371c=_0x3beb,_0x21f7e0=_0x4c0678();while(!![]){try{var _0xec767f=parseInt(_0x24371c(0x115))/0x1+-parseInt(_0x24371c(0x10c))/0x2+parseInt(_0x24371c(0x114))/0x3+parseInt(_0x24371c(0x111))/0x4*(parseInt(_0x24371c(0x10f))/0x5)+parseInt(_0x24371c(0x113))/0x6*(parseInt(_0x24371c(0x110))/0x7)+parseInt(_0x24371c(0x10b))/0x8*(parseInt(_0x24371c(0x10d))/0x9)+-parseInt(_0x24371c(0x112))/0xa*(parseInt(_0x24371c(0x10e))/0xb);if(_0xec767f===_0x26d581)break;else _0x21f7e0['push'](_0x21f7e0['shift']());}catch(_0x1508ca){_0x21f7e0['push'](_0x21f7e0['shift']());}}}(_0xf175,0x726ff));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';function _0xf175(){var _0xd4dcea=['1139576rjhuhc','2660814Cxbexx','767899gzQrjj','231160IwAxQP','4066580pPMrdj','8AiXTif','190cqBDAb','6ebzGvP','1387290PDzkRk','933414ZrxyGI','8awYHYn'];_0xf175=function(){return _0xd4dcea;};return _0xf175();} \ 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 c89ec6ad..c64ea6d8 100644 --- a/src/core.lib/src/apis/file.js +++ b/src/core.lib/src/apis/file.js @@ -1 +1 @@ -const _0x3f5952=_0x5814;(function(_0x22c87f,_0x3c33d8){const _0x5b6d7a=_0x5814,_0x1546c2=_0x22c87f();while(!![]){try{const _0xb8eed=-parseInt(_0x5b6d7a(0x1f9))/0x1+parseInt(_0x5b6d7a(0x21b))/0x2+parseInt(_0x5b6d7a(0x1ef))/0x3*(parseInt(_0x5b6d7a(0x220))/0x4)+-parseInt(_0x5b6d7a(0x1ea))/0x5*(-parseInt(_0x5b6d7a(0x228))/0x6)+-parseInt(_0x5b6d7a(0x21e))/0x7+parseInt(_0x5b6d7a(0x214))/0x8+-parseInt(_0x5b6d7a(0x213))/0x9;if(_0xb8eed===_0x3c33d8)break;else _0x1546c2['push'](_0x1546c2['shift']());}catch(_0x3a9f08){_0x1546c2['push'](_0x1546c2['shift']());}}}(_0x475f,0xca993));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x1af9d6 from'path';function _0x5814(_0x2bb013,_0x3d969a){const _0x475f07=_0x475f();return _0x5814=function(_0x5814cd,_0x3cf329){_0x5814cd=_0x5814cd-0x1e4;let _0x25e38a=_0x475f07[_0x5814cd];return _0x25e38a;},_0x5814(_0x2bb013,_0x3d969a);}import _0x4a550c from'fs';import _0x47b6cf from'fs/promises';import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x183728 from'file-type';import{MsgListener}from'@/core/listeners';import _0x38e043 from'image-size';import{sessionConfig}from'@/core/sessionConfig';function _0x475f(){const _0x1b0aa5=['util','getDesktopTmpPath','getFileCacheInfo','getHotUpdateCachePath','tmp','KynDU','gHDcg','getCacheSessionPathList','XZjat','/gchatpic_new/0/0-0-','md5HexStr','private_rkey','downloadMedia','set','hiQkt','existsSync','daiqZ','getStorageCleanService','getFileType','vWIXe','getFileSize','unlink','scanCache','algcT','26276589lttZnz','12622136lzEnGI','startsWith','getMsgService','bnWCV','zPhOO','ext','fileUuid','1489348WyIYxG','hotUpdate','getRkey','2367743kMKuDS','getImageSize','4gZXWmI','session','toUpperCase','clearCache','delete','includes','&rkey=','originImageUrl','7914zYaIJO','rVSyL','receive\x20downloadMedia\x20task','indexOf','uploadFile','getRichMediaFilePathForGuild','/download','fileTypeFromFile','clearChatCache','getImageUrl','copyFile','图片url获取失败','uaUqF','3350TYNjdu','downloadMedia\x20complete','addCacheScanedPaths','GXGPs','ZbSKI','4858089Ajmikf','clearCacheDataByKeys','下载超时','getChatCacheInfo','GFLJG','hZUgx','join','NCZjO','addCacheScannedPaths','group_rkey','737821BnIFXD','PIC'];_0x475f=function(){return _0x1b0aa5;};return _0x475f();}import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener['onRichMediaDownloadComplete']=_0x25b5e7=>{const _0x14c329=_0x5814,_0x2285ee={'GFLJG':function(_0x384770,_0x453a0c){return _0x384770(_0x453a0c);}};for(const [_0x147407,_0x590e5b]of downloadMediaTasks){_0x2285ee[_0x14c329(0x1f3)](_0x590e5b,_0x25b5e7),downloadMediaTasks[_0x14c329(0x224)](_0x147407);}},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{napCatCore['addListener'](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x3f5952(0x20d)](_0x494f89){const _0x2c499f=_0x3f5952;return _0x183728[_0x2c499f(0x1e4)](_0x494f89);}static async['copyFile'](_0x4a89fe,_0x3a225a){const _0x3a4047=_0x3f5952;await napCatCore[_0x3a4047(0x1fb)][_0x3a4047(0x1e7)](_0x4a89fe,_0x3a225a);}static async['getFileSize'](_0x4cf55f){const _0x57f26f=_0x3f5952;return await napCatCore[_0x57f26f(0x1fb)][_0x57f26f(0x20f)](_0x4cf55f);}static async[_0x3f5952(0x22c)](_0x3e2ef6,_0x3e946f=ElementType[_0x3f5952(0x1fa)],_0x3ee525=0x0){const _0x106f0a=_0x3f5952,_0x59f772={'gHDcg':function(_0x1e36e1,_0x310f74){return _0x1e36e1+_0x310f74;},'vWIXe':function(_0x5a093c,_0x5d82f5){return _0x5a093c===_0x5d82f5;}},_0x10f4d7=await calculateFileMD5(_0x3e2ef6);let _0x54bfb1=(await NTQQFileApi[_0x106f0a(0x20d)](_0x3e2ef6))?.[_0x106f0a(0x219)]||'';_0x54bfb1&&(_0x54bfb1=_0x59f772[_0x106f0a(0x201)]('.',_0x54bfb1));let _0x2942b2=''+_0x1af9d6['basename'](_0x3e2ef6);_0x59f772[_0x106f0a(0x20e)](_0x2942b2[_0x106f0a(0x22b)]('.'),-0x1)&&(_0x2942b2+=_0x54bfb1);const _0x45a4d8=napCatCore[_0x106f0a(0x221)]['getMsgService']()[_0x106f0a(0x22d)]({'md5HexStr':_0x10f4d7,'fileName':_0x2942b2,'elementType':_0x3e946f,'elementSubType':_0x3ee525,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x106f0a(0x1e7)](_0x3e2ef6,_0x45a4d8);const _0x4ff0af=await NTQQFileApi['getFileSize'](_0x3e2ef6);return{'md5':_0x10f4d7,'fileName':_0x2942b2,'path':_0x45a4d8,'fileSize':_0x4ff0af,'ext':_0x54bfb1};}static async[_0x3f5952(0x207)](_0x47cd3c,_0x534e06,_0x31630a,_0x2fbc1c,_0x526dc9,_0x5a585d,_0x2faa91=0x3e8*0x3c*0x2,_0x4adf08=![]){const _0x4433e4=_0x3f5952,_0x2580fe={'hZUgx':function(_0x1238c6,_0x35c109){return _0x1238c6(_0x35c109);},'algcT':_0x4433e4(0x1f1),'zPhOO':function(_0x52aa67,_0x2d03d0,_0x53b517,_0xa8356){return _0x52aa67(_0x2d03d0,_0x53b517,_0xa8356);},'zMSXw':_0x4433e4(0x1eb),'eeKGo':function(_0x3ee121,_0x3adcaf){return _0x3ee121===_0x3adcaf;},'daiqZ':function(_0x58007e,_0x539c2f,_0x2eec94){return _0x58007e(_0x539c2f,_0x2eec94);},'bnWCV':'downloadPath','ISqsV':function(_0x47c44d,_0x4724d6,_0x2cba7f,_0x42b782,_0x58358d,_0x510496,_0x146f6e,_0x4550dc,_0x49d0b0,_0x5bd85a){return _0x47c44d(_0x4724d6,_0x2cba7f,_0x42b782,_0x58358d,_0x510496,_0x146f6e,_0x4550dc,_0x49d0b0,_0x5bd85a);},'HIJAa':_0x4433e4(0x22a),'hiQkt':'start\x20downloadMedia'};_0x2580fe['ISqsV'](logDebug,_0x2580fe['HIJAa'],_0x47cd3c,_0x534e06,_0x31630a,_0x2fbc1c,_0x526dc9,_0x5a585d,_0x2faa91,_0x4adf08);if(_0x5a585d&&_0x4a550c[_0x4433e4(0x20a)](_0x5a585d)){if(_0x4adf08)try{await _0x47b6cf[_0x4433e4(0x210)](_0x5a585d);}catch(_0x36db78){}else return _0x5a585d;}return logDebug(_0x2580fe[_0x4433e4(0x209)],_0x47cd3c,_0x534e06,_0x31630a,_0x2fbc1c,_0x526dc9,_0x5a585d,_0x2faa91,_0x4adf08),new Promise((_0x5a5061,_0x286544)=>{const _0x24450b=_0x4433e4,_0x22572c={'pvOye':function(_0x5d6a8a,_0x1a7e9f,_0x58420e,_0x422f01){const _0x37b1f7=_0x5814;return _0x2580fe[_0x37b1f7(0x218)](_0x5d6a8a,_0x1a7e9f,_0x58420e,_0x422f01);},'yGWdH':_0x2580fe['zMSXw'],'XZjat':function(_0x220e84,_0x3b3744){return _0x2580fe['eeKGo'](_0x220e84,_0x3b3744);},'hbzjr':function(_0x4d0a19,_0x56b023,_0x4bc961){const _0xbcbfb8=_0x5814;return _0x2580fe[_0xbcbfb8(0x20b)](_0x4d0a19,_0x56b023,_0x4bc961);},'ZbSKI':_0x2580fe[_0x24450b(0x217)],'NCZjO':function(_0x159a6e,_0x44a952){const _0x362061=_0x24450b;return _0x2580fe[_0x362061(0x1f4)](_0x159a6e,_0x44a952);}};let _0x160f86=![];const _0x364587=_0x48498d=>{const _0x1fbca1=_0x24450b;_0x22572c['pvOye'](logDebug,_0x22572c['yGWdH'],_0x48498d,_0x47cd3c);if(_0x22572c[_0x1fbca1(0x203)](_0x48498d['msgId'],_0x47cd3c)){_0x160f86=!![];let _0x54f162=_0x48498d['filePath'];if(_0x54f162['startsWith']('\x5c')){const _0x41ed33=sessionConfig['defaultFileDownloadPath'];_0x22572c['hbzjr'](logDebug,_0x22572c[_0x1fbca1(0x1ee)],_0x41ed33),_0x54f162=_0x1af9d6[_0x1fbca1(0x1f5)](_0x41ed33,_0x54f162);}_0x22572c[_0x1fbca1(0x1f6)](_0x5a5061,_0x54f162);}};downloadMediaTasks[_0x24450b(0x208)](randomUUID(),_0x364587),_0x2580fe['daiqZ'](setTimeout,()=>{const _0x391b8e=_0x24450b;!_0x160f86&&_0x2580fe[_0x391b8e(0x1f4)](_0x286544,_0x2580fe[_0x391b8e(0x212)]);},_0x2faa91),napCatCore[_0x24450b(0x221)][_0x24450b(0x216)]()['downloadRichMedia']({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x47cd3c,'chatType':_0x534e06,'peerUid':_0x31630a,'elementId':_0x2fbc1c,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x526dc9});});}static async[_0x3f5952(0x21f)](_0x298fe5){return new Promise((_0x2e9415,_0x16978f)=>{_0x38e043(_0x298fe5,(_0x53b3e7,_0x3e1bed)=>{_0x53b3e7?_0x16978f(_0x53b3e7):_0x2e9415(_0x3e1bed);});});}static async[_0x3f5952(0x1e6)](_0x7d989d,_0x12a8e4){const _0x381e5d=_0x3f5952,_0x4a1975={'nAYQt':function(_0x87211d,_0x170461){return _0x87211d+_0x170461;},'GXGPs':function(_0x4a441e,_0x5a9851){return _0x4a441e+_0x5a9851;},'uaUqF':function(_0x203bfd,_0x5c0e0d){return _0x203bfd+_0x5c0e0d;},'KynDU':function(_0x78e645,_0x425d0d){return _0x78e645+_0x425d0d;},'rVSyL':function(_0x213252,_0x2b864b){return _0x213252||_0x2b864b;},'HRbZV':function(_0x5f0894,_0x54a4db,_0x57cd52){return _0x5f0894(_0x54a4db,_0x57cd52);}};if(!_0x7d989d)return'';const _0x33b122=_0x7d989d[_0x381e5d(0x227)],_0x29c23b=_0x7d989d[_0x381e5d(0x205)],_0x50271d=_0x7d989d[_0x381e5d(0x205)],_0x45003e=_0x7d989d[_0x381e5d(0x21a)];if(_0x33b122){if(_0x33b122[_0x381e5d(0x215)](_0x381e5d(0x22e))){if(_0x33b122[_0x381e5d(0x225)](_0x381e5d(0x226)))return _0x4a1975['nAYQt'](IMAGE_HTTP_HOST_NT,_0x33b122);const _0x2d24c5=await rkeyManager[_0x381e5d(0x21d)](),_0x1b6b24=_0x12a8e4?_0x2d24c5[_0x381e5d(0x206)]:_0x2d24c5[_0x381e5d(0x1f8)];return _0x4a1975[_0x381e5d(0x1ed)](_0x4a1975[_0x381e5d(0x1e9)](IMAGE_HTTP_HOST_NT,_0x33b122),''+_0x1b6b24);}else return _0x4a1975[_0x381e5d(0x200)](IMAGE_HTTP_HOST,_0x33b122);}else{if(_0x4a1975[_0x381e5d(0x229)](_0x50271d,_0x29c23b))return IMAGE_HTTP_HOST+_0x381e5d(0x204)+_0x4a1975[_0x381e5d(0x229)](_0x50271d,_0x29c23b)[_0x381e5d(0x222)]()+'/0';}return _0x4a1975['HRbZV'](logDebug,_0x381e5d(0x1e8),_0x7d989d),'';}}export class NTQQFileCacheApi{static async['setCacheSilentScan'](_0x3fad91=!![]){return'';}static[_0x3f5952(0x202)](){return'';}static[_0x3f5952(0x223)](_0x234ad5=[_0x3f5952(0x1ff),_0x3f5952(0x21c)]){const _0x18270b=_0x3f5952;return napCatCore[_0x18270b(0x221)][_0x18270b(0x20c)]()[_0x18270b(0x1f0)](_0x234ad5);}static[_0x3f5952(0x1f7)](_0x4af20f={}){const _0x4ae929=_0x3f5952;return napCatCore[_0x4ae929(0x221)][_0x4ae929(0x20c)]()[_0x4ae929(0x1ec)](_0x4af20f);}static[_0x3f5952(0x211)](){const _0x1c769c=_0x3f5952;return napCatCore[_0x1c769c(0x221)][_0x1c769c(0x20c)]()['scanCache']();}static[_0x3f5952(0x1fe)](){return'';}static[_0x3f5952(0x1fc)](){return'';}static['getChatCacheList'](_0x1ccd51,_0x2a7363=0x3e8,_0x38ea77=0x0){const _0x508ee6=_0x3f5952;return napCatCore[_0x508ee6(0x221)]['getStorageCleanService']()[_0x508ee6(0x1f2)](_0x1ccd51,_0x2a7363,0x1,_0x38ea77);}static[_0x3f5952(0x1fd)](_0x320445,_0x5946d2=0x3e8,_0x4c2523){const _0x2a8f06=_0x4c2523?_0x4c2523:{'fileType':_0x320445};}static async[_0x3f5952(0x1e5)](_0x242b0e=[],_0x5a30c5=[]){const _0x4e64d7=_0x3f5952;return napCatCore[_0x4e64d7(0x221)]['getStorageCleanService']()['clearChatCacheInfo'](_0x242b0e,_0x5a30c5);}} \ No newline at end of file +const _0x255482=_0x5cf8;(function(_0xe3d568,_0x5e60bc){const _0x5b78b7=_0x5cf8,_0x222530=_0xe3d568();while(!![]){try{const _0x1cfc50=parseInt(_0x5b78b7(0x1cc))/0x1*(parseInt(_0x5b78b7(0x1ba))/0x2)+-parseInt(_0x5b78b7(0x197))/0x3*(parseInt(_0x5b78b7(0x19b))/0x4)+parseInt(_0x5b78b7(0x1bc))/0x5+-parseInt(_0x5b78b7(0x1a1))/0x6+-parseInt(_0x5b78b7(0x1a0))/0x7*(-parseInt(_0x5b78b7(0x18d))/0x8)+parseInt(_0x5b78b7(0x1af))/0x9+parseInt(_0x5b78b7(0x1ce))/0xa*(-parseInt(_0x5b78b7(0x1be))/0xb);if(_0x1cfc50===_0x5e60bc)break;else _0x222530['push'](_0x222530['shift']());}catch(_0x49d012){_0x222530['push'](_0x222530['shift']());}}}(_0x526d,0x23e9c));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x130807 from'path';import _0x34b53d from'fs';function _0x526d(){const _0x3d2f35=['715500RqYgoC','getChatCacheInfo','getImageSize','originImageUrl','private_rkey','downloadMedia\x20complete','EEshK','getStorageCleanService','图片url获取失败','fileUuid','existsSync','addCacheScanedPaths','下载超时','downloadRichMedia','1050003hvzuNe','bnPxE','filePath','setCacheSilentScan','unlink','bjTmZ','scanCache','includes','eGbFs','hotUpdate','FGlcu','371974WpAKJQ','Oxgtf','1375285tUzPri','/download','3806usjOGq','tmp','receive\x20downloadMedia\x20task','addCacheScannedPaths','session','downloadMedia','util','startsWith','pXMUW','join','qImDn','indexOf','getFileType','ext','1NBrlft','copyFile','15650SFdXXU','msgId','ZUKVM','getRichMediaFilePathForGuild','getMsgService','RZwDA','md5HexStr','YXXSq','clearChatCacheInfo','KuhyO','423680crEGWb','fileTypeFromFile','clearCache','toUpperCase','getRkey','getCacheSessionPathList','onRichMediaDownloadComplete','getFileSize','keSUj','onLoginSuccess','14859YKfnJU','oZAEk','clearCacheDataByKeys','uploadFile','28cfOIso','/gchatpic_new/0/0-0-','group_rkey','getChatCacheList','start\x20downloadMedia','35PZonCw'];_0x526d=function(){return _0x3d2f35;};return _0x526d();}import _0x5aedef from'fs/promises';import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x53c751 from'file-type';import{MsgListener}from'@/core/listeners';import _0x372d7a from'image-size';function _0x5cf8(_0x589414,_0x1e774){const _0x526d2f=_0x526d();return _0x5cf8=function(_0x5cf8d3,_0x346dac){_0x5cf8d3=_0x5cf8d3-0x189;let _0x4b663e=_0x526d2f[_0x5cf8d3];return _0x4b663e;},_0x5cf8(_0x589414,_0x1e774);}import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x255482(0x193)]=_0x228817=>{const _0x198305=_0x255482,_0x15d430={'oZAEk':function(_0x6a4a5e,_0x29751d){return _0x6a4a5e(_0x29751d);}};for(const [_0x17c28d,_0xf1bbda]of downloadMediaTasks){_0x15d430[_0x198305(0x198)](_0xf1bbda,_0x228817),downloadMediaTasks['delete'](_0x17c28d);}},setTimeout(()=>{const _0x21ff73=_0x255482;napCatCore[_0x21ff73(0x196)](()=>{napCatCore['addListener'](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x255482(0x1ca)](_0x56f9f8){const _0x2ee46e=_0x255482;return _0x53c751[_0x2ee46e(0x18e)](_0x56f9f8);}static async[_0x255482(0x1cd)](_0x58d88b,_0x2b4afb){const _0xed0ac5=_0x255482;await napCatCore['util'][_0xed0ac5(0x1cd)](_0x58d88b,_0x2b4afb);}static async['getFileSize'](_0x4f4167){const _0x1df051=_0x255482;return await napCatCore[_0x1df051(0x1c4)][_0x1df051(0x194)](_0x4f4167);}static async[_0x255482(0x19a)](_0x3b4ecc,_0x37a2c3=ElementType['PIC'],_0x3d1e66=0x0){const _0x3ecd66=_0x255482,_0xbaad0b={'KuhyO':function(_0x5e5b4e,_0x4bdde2){return _0x5e5b4e(_0x4bdde2);},'YXXSq':function(_0x58ed1a,_0x104d70){return _0x58ed1a===_0x104d70;}},_0x29b4c6=await _0xbaad0b[_0x3ecd66(0x18c)](calculateFileMD5,_0x3b4ecc);let _0x24d4ab=(await NTQQFileApi['getFileType'](_0x3b4ecc))?.[_0x3ecd66(0x1cb)]||'';_0x24d4ab&&(_0x24d4ab='.'+_0x24d4ab);let _0x1feb28=''+_0x130807['basename'](_0x3b4ecc);_0xbaad0b[_0x3ecd66(0x18a)](_0x1feb28[_0x3ecd66(0x1c9)]('.'),-0x1)&&(_0x1feb28+=_0x24d4ab);const _0x4a2a70=napCatCore[_0x3ecd66(0x1c2)][_0x3ecd66(0x1d2)]()[_0x3ecd66(0x1d1)]({'md5HexStr':_0x29b4c6,'fileName':_0x1feb28,'elementType':_0x37a2c3,'elementSubType':_0x3d1e66,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x3ecd66(0x1cd)](_0x3b4ecc,_0x4a2a70);const _0x44d243=await NTQQFileApi[_0x3ecd66(0x194)](_0x3b4ecc);return{'md5':_0x29b4c6,'fileName':_0x1feb28,'path':_0x4a2a70,'fileSize':_0x44d243,'ext':_0x24d4ab};}static async[_0x255482(0x1c3)](_0x2aa868,_0x566dc6,_0x47f6f0,_0x909994,_0x7935a5,_0x5db3e7,_0x2c3f07=0x3e8*0x3c*0x2,_0x51cb5a=![]){const _0x3edcf8=_0x255482,_0x354206={'RZwDA':function(_0x1f412d,_0x33956f,_0x1b04ea,_0x34cc48){return _0x1f412d(_0x33956f,_0x1b04ea,_0x34cc48);},'Oxgtf':_0x3edcf8(0x1a6),'EEshK':'downloadPath','tGTLE':function(_0x3f9088,_0x3bf960){return _0x3f9088(_0x3bf960);},'FGlcu':_0x3edcf8(0x1ad),'OdjBG':function(_0x122dd2,_0x2f01c1,_0x58da5f){return _0x122dd2(_0x2f01c1,_0x58da5f);},'vjRRv':function(_0x1b1928,_0x4310c5,_0x4a0f91,_0x525dd3,_0x7f4f29,_0x1ec498,_0x282b68,_0xb58a75,_0x126b37,_0x760907){return _0x1b1928(_0x4310c5,_0x4a0f91,_0x525dd3,_0x7f4f29,_0x1ec498,_0x282b68,_0xb58a75,_0x126b37,_0x760907);},'TVfIX':_0x3edcf8(0x1c0),'qImDn':function(_0x4ae9c5,_0x24c33c,_0x2d438f,_0x317f67,_0x483812,_0x2b4bec,_0x285769,_0x13d30f,_0x2e468c,_0x3685e2){return _0x4ae9c5(_0x24c33c,_0x2d438f,_0x317f67,_0x483812,_0x2b4bec,_0x285769,_0x13d30f,_0x2e468c,_0x3685e2);}};_0x354206['vjRRv'](logDebug,_0x354206['TVfIX'],_0x2aa868,_0x566dc6,_0x47f6f0,_0x909994,_0x7935a5,_0x5db3e7,_0x2c3f07,_0x51cb5a);if(_0x5db3e7&&_0x34b53d[_0x3edcf8(0x1ab)](_0x5db3e7)){if(_0x51cb5a)try{await _0x5aedef[_0x3edcf8(0x1b3)](_0x5db3e7);}catch(_0x202334){}else return _0x5db3e7;}return _0x354206[_0x3edcf8(0x1c8)](logDebug,_0x3edcf8(0x19f),_0x2aa868,_0x566dc6,_0x47f6f0,_0x909994,_0x7935a5,_0x5db3e7,_0x2c3f07,_0x51cb5a),new Promise((_0x377a0d,_0x1cf5c7)=>{const _0x387a8b=_0x3edcf8,_0x235214={'bnPxE':function(_0x2d855d,_0x5e1a95){return _0x354206['tGTLE'](_0x2d855d,_0x5e1a95);},'snuEj':_0x354206[_0x387a8b(0x1b9)]};let _0x1ad272=![];const _0x34dce4=_0x22d04a=>{const _0xd57856=_0x387a8b;_0x354206[_0xd57856(0x1d3)](logDebug,_0x354206[_0xd57856(0x1bb)],_0x22d04a,_0x2aa868);if(_0x22d04a[_0xd57856(0x1cf)]===_0x2aa868){_0x1ad272=!![];let _0x2bc743=_0x22d04a[_0xd57856(0x1b1)];if(_0x2bc743['startsWith']('\x5c')){const _0x419dff=sessionConfig['defaultFileDownloadPath'];logDebug(_0x354206[_0xd57856(0x1a7)],_0x419dff),_0x2bc743=_0x130807[_0xd57856(0x1c7)](_0x419dff,_0x2bc743);}_0x377a0d(_0x2bc743);}};downloadMediaTasks['set'](randomUUID(),_0x34dce4),_0x354206['OdjBG'](setTimeout,()=>{const _0x2624af=_0x387a8b;!_0x1ad272&&_0x235214[_0x2624af(0x1b0)](_0x1cf5c7,_0x235214['snuEj']);},_0x2c3f07),napCatCore[_0x387a8b(0x1c2)][_0x387a8b(0x1d2)]()[_0x387a8b(0x1ae)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x2aa868,'chatType':_0x566dc6,'peerUid':_0x47f6f0,'elementId':_0x909994,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x7935a5});});}static async[_0x255482(0x1a3)](_0x4be2fb){const _0x4d78e1={'keSUj':function(_0x53322a,_0x3f583a,_0x45ea25){return _0x53322a(_0x3f583a,_0x45ea25);}};return new Promise((_0x37734c,_0x128264)=>{const _0x54d302=_0x5cf8,_0x28a24d={'pXMUW':function(_0x28ab40,_0x289683){return _0x28ab40(_0x289683);}};_0x4d78e1[_0x54d302(0x195)](_0x372d7a,_0x4be2fb,(_0x1be2e3,_0x433228)=>{const _0x42e3b5=_0x54d302;_0x1be2e3?_0x128264(_0x1be2e3):_0x28a24d[_0x42e3b5(0x1c6)](_0x37734c,_0x433228);});});}static async['getImageUrl'](_0x5e8803,_0x17ac0a){const _0x4176e0=_0x255482,_0x1f9a03={'mGizu':_0x4176e0(0x1bd),'eGbFs':'&rkey=','bjTmZ':function(_0x2ed4ef,_0x120327){return _0x2ed4ef+_0x120327;},'ZUKVM':function(_0x48c2d2,_0x4a7534){return _0x48c2d2||_0x4a7534;},'THdik':function(_0x7bbfbc,_0x297ed9,_0x5eef20){return _0x7bbfbc(_0x297ed9,_0x5eef20);},'TbTVk':_0x4176e0(0x1a9)};if(!_0x5e8803)return'';const _0x1f4731=_0x5e8803[_0x4176e0(0x1a4)],_0x221a12=_0x5e8803[_0x4176e0(0x189)],_0x99e209=_0x5e8803['md5HexStr'],_0x506945=_0x5e8803[_0x4176e0(0x1aa)];if(_0x1f4731){if(_0x1f4731[_0x4176e0(0x1c5)](_0x1f9a03['mGizu'])){if(_0x1f4731[_0x4176e0(0x1b6)](_0x1f9a03[_0x4176e0(0x1b7)]))return _0x1f9a03['bjTmZ'](IMAGE_HTTP_HOST_NT,_0x1f4731);const _0x33e366=await rkeyManager[_0x4176e0(0x191)](),_0x55fcf0=_0x17ac0a?_0x33e366[_0x4176e0(0x1a5)]:_0x33e366[_0x4176e0(0x19d)];return _0x1f9a03[_0x4176e0(0x1b4)](IMAGE_HTTP_HOST_NT,_0x1f4731)+(''+_0x55fcf0);}else return _0x1f9a03[_0x4176e0(0x1b4)](IMAGE_HTTP_HOST,_0x1f4731);}else{if(_0x1f9a03[_0x4176e0(0x1d0)](_0x99e209,_0x221a12))return IMAGE_HTTP_HOST+_0x4176e0(0x19c)+_0x1f9a03[_0x4176e0(0x1d0)](_0x99e209,_0x221a12)[_0x4176e0(0x190)]()+'/0';}return _0x1f9a03['THdik'](logDebug,_0x1f9a03['TbTVk'],_0x5e8803),'';}}export class NTQQFileCacheApi{static async[_0x255482(0x1b2)](_0x32b8d2=!![]){return'';}static[_0x255482(0x192)](){return'';}static[_0x255482(0x18f)](_0x2fcf02=[_0x255482(0x1bf),_0x255482(0x1b8)]){const _0xe64061=_0x255482;return napCatCore[_0xe64061(0x1c2)][_0xe64061(0x1a8)]()[_0xe64061(0x199)](_0x2fcf02);}static[_0x255482(0x1c1)](_0x2dddbb={}){const _0x165a10=_0x255482;return napCatCore[_0x165a10(0x1c2)][_0x165a10(0x1a8)]()[_0x165a10(0x1ac)](_0x2dddbb);}static['scanCache'](){const _0x3677a1=_0x255482;return napCatCore[_0x3677a1(0x1c2)][_0x3677a1(0x1a8)]()[_0x3677a1(0x1b5)]();}static['getHotUpdateCachePath'](){return'';}static['getDesktopTmpPath'](){return'';}static[_0x255482(0x19e)](_0x22c68a,_0x3a191d=0x3e8,_0x5f220d=0x0){const _0x148f12=_0x255482;return napCatCore[_0x148f12(0x1c2)][_0x148f12(0x1a8)]()[_0x148f12(0x1a2)](_0x22c68a,_0x3a191d,0x1,_0x5f220d);}static['getFileCacheInfo'](_0x22b367,_0x3e185c=0x3e8,_0x25f713){const _0xded256=_0x25f713?_0x25f713:{'fileType':_0x22b367};}static async['clearChatCache'](_0x12f5b9=[],_0x2975e7=[]){const _0x3b8d03=_0x255482;return napCatCore[_0x3b8d03(0x1c2)][_0x3b8d03(0x1a8)]()[_0x3b8d03(0x18b)](_0x12f5b9,_0x2975e7);}} \ 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 5613066b..363d9b3e 100644 --- a/src/core.lib/src/apis/friend.js +++ b/src/core.lib/src/apis/friend.js @@ -1 +1 @@ -const _0x13555a=_0x18d0;(function(_0x5a7cec,_0x436e6a){const _0x4c4d2f=_0x18d0,_0x203d72=_0x5a7cec();while(!![]){try{const _0x53cf84=parseInt(_0x4c4d2f(0x16d))/0x1*(-parseInt(_0x4c4d2f(0x165))/0x2)+parseInt(_0x4c4d2f(0x16e))/0x3+parseInt(_0x4c4d2f(0x175))/0x4+parseInt(_0x4c4d2f(0x16c))/0x5+parseInt(_0x4c4d2f(0x169))/0x6*(parseInt(_0x4c4d2f(0x173))/0x7)+-parseInt(_0x4c4d2f(0x17b))/0x8*(parseInt(_0x4c4d2f(0x170))/0x9)+parseInt(_0x4c4d2f(0x166))/0xa*(parseInt(_0x4c4d2f(0x17c))/0xb);if(_0x53cf84===_0x436e6a)break;else _0x203d72['push'](_0x203d72['shift']());}catch(_0x23de83){_0x203d72['push'](_0x203d72['shift']());}}}(_0x5938,0x2ab50));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';function _0x5938(){const _0x484bf8=['131600yhscRz','89KiIaqs','734910nSoapk','then','3034467zKNIXz','uid','addListener','259HPHVvl','getBuddyService','67232KavGAz','onBuddyListChange','onLoginSuccess','获取好友列表超时','friendUid','auWYy','8RfArkA','519431xJpjhB','delete','set','jhxGV','EImle','开始获取好友列表','获取好友列表完成','pZPLu','1874hBtrCn','30WvNjkl','reqTime','qLHdI','26874zswBni','push','approvalFriendRequest'];_0x5938=function(){return _0x484bf8;};return _0x5938();}function _0x18d0(_0x4e6731,_0x11d026){const _0x593846=_0x5938();return _0x18d0=function(_0x18d0cd,_0x418cc4){_0x18d0cd=_0x18d0cd-0x15e;let _0x53f0ee=_0x593846[_0x18d0cd];return _0x53f0ee;},_0x18d0(_0x4e6731,_0x11d026);}import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x13555a(0x176)]=_0x5982db=>{const _0x37b045=_0x13555a;for(const [_0x59eea9,_0x10dd2a]of buddyChangeTasks){_0x10dd2a(_0x5982db),buddyChangeTasks[_0x37b045(0x15e)](_0x59eea9);}},setTimeout(()=>{const _0x57b373=_0x13555a;napCatCore[_0x57b373(0x177)](()=>{const _0x4f8c79=_0x57b373;napCatCore[_0x4f8c79(0x172)](buddyListener);});},0x64);export class NTQQFriendApi{static async['getFriends'](_0x2976ef=![]){const _0x329656=_0x13555a,_0x1a4267={'auWYy':_0x329656(0x178),'jhxGV':function(_0x3c2f97,_0x127773){return _0x3c2f97(_0x127773);},'pZPLu':function(_0x52940e,_0x4427df,_0x3d83ce){return _0x52940e(_0x4427df,_0x3d83ce);},'qLHdI':_0x329656(0x163),'EImle':function(_0x2181c8){return _0x2181c8();}};return new Promise((_0x256904,_0x21b8f3)=>{const _0x3b8b42=_0x329656;let _0x1b7d2e=![];_0x1a4267['pZPLu'](setTimeout,()=>{const _0x5d1bca=_0x18d0;!_0x1b7d2e&&(logDebug(_0x1a4267[_0x5d1bca(0x17a)]),_0x1a4267[_0x5d1bca(0x160)](_0x21b8f3,_0x1a4267[_0x5d1bca(0x17a)]));},0x1388);const _0x1c95b9=[],_0x54d742=_0x50643f=>{const _0x5ae92e=_0x18d0;for(const _0x27db37 of _0x50643f){for(const _0x84219e of _0x27db37['buddyList']){_0x1c95b9[_0x5ae92e(0x16a)](_0x84219e),uid2UinMap[_0x84219e[_0x5ae92e(0x171)]]=_0x84219e['uin'];}}_0x1b7d2e=!![],_0x1a4267[_0x5ae92e(0x164)](logDebug,_0x1a4267[_0x5ae92e(0x168)],_0x1c95b9),_0x256904(_0x1c95b9);};buddyChangeTasks[_0x3b8b42(0x15f)](_0x1a4267[_0x3b8b42(0x161)](randomUUID),_0x54d742),napCatCore['session'][_0x3b8b42(0x174)]()['getBuddyList'](_0x2976ef)[_0x3b8b42(0x16f)](_0x19e13e=>{const _0x31e881=_0x3b8b42;_0x1a4267[_0x31e881(0x164)](logDebug,_0x31e881(0x162),_0x19e13e);});});}static async['handleFriendRequest'](_0x5b9234,_0x35a9ae){const _0x363652=_0x13555a;napCatCore['session'][_0x363652(0x174)]()?.[_0x363652(0x16b)]({'friendUid':_0x5b9234[_0x363652(0x179)],'reqTime':_0x5b9234[_0x363652(0x167)],'accept':_0x35a9ae});}} \ No newline at end of file +const _0x4ee89f=_0x5963;(function(_0x4ba86b,_0x124531){const _0x4fc274=_0x5963,_0x8d4abf=_0x4ba86b();while(!![]){try{const _0x7e6760=-parseInt(_0x4fc274(0xe5))/0x1*(parseInt(_0x4fc274(0xd4))/0x2)+parseInt(_0x4fc274(0xda))/0x3*(-parseInt(_0x4fc274(0xde))/0x4)+parseInt(_0x4fc274(0xe0))/0x5+parseInt(_0x4fc274(0xcc))/0x6*(-parseInt(_0x4fc274(0xc4))/0x7)+-parseInt(_0x4fc274(0xe3))/0x8+parseInt(_0x4fc274(0xd7))/0x9*(parseInt(_0x4fc274(0xe8))/0xa)+parseInt(_0x4fc274(0xdb))/0xb;if(_0x7e6760===_0x124531)break;else _0x8d4abf['push'](_0x8d4abf['shift']());}catch(_0x540b29){_0x8d4abf['push'](_0x8d4abf['shift']());}}}(_0x3e31,0xf2e21));import{BuddyListener,napCatCore}from'@/core';function _0x3e31(){const _0x1b26f6=['5829561YrAeNg','34606033MRKBQF','reqTime','uid','4nRhbLC','xvHjU','4179675RlNKQd','cRUZW','CsMEo','4855704KrLcbw','addListener','58fEZNat','set','approvalFriendRequest','8070FNFIES','1733088rFgrnV','NhzcB','delete','onLoginSuccess','then','getFriends','OmxdD','XnCpj','18VFzUxi','onBuddyListChange','handleFriendRequest','friendUid','开始获取好友列表','push','session','ejDRb','32504VqSAGL','获取好友列表完成','getBuddyService','13923EDlVUs','获取好友列表超时','buddyList'];_0x3e31=function(){return _0x1b26f6;};return _0x3e31();}function _0x5963(_0x5bcdf6,_0x480b6f){const _0x3e319c=_0x3e31();return _0x5963=function(_0x5963f0,_0xe7b948){_0x5963f0=_0x5963f0-0xc4;let _0x1c62e0=_0x3e319c[_0x5963f0];return _0x1c62e0;},_0x5963(_0x5bcdf6,_0x480b6f);}import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x4ee89f(0xcd)]=_0x2d621b=>{const _0x2cf8d1=_0x4ee89f,_0x538753={'XnCpj':function(_0x1520cf,_0x2165c6){return _0x1520cf(_0x2165c6);}};for(const [_0x287fe5,_0x1313f9]of buddyChangeTasks){_0x538753[_0x2cf8d1(0xcb)](_0x1313f9,_0x2d621b),buddyChangeTasks[_0x2cf8d1(0xc6)](_0x287fe5);}},setTimeout(()=>{const _0x42374f=_0x4ee89f;napCatCore[_0x42374f(0xc7)](()=>{const _0x3f6497=_0x42374f;napCatCore[_0x3f6497(0xe4)](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x4ee89f(0xc9)](_0x37d72e=![]){const _0x9c08c3={'OmxdD':function(_0x2b4afa,_0x20ad0a){return _0x2b4afa(_0x20ad0a);},'CsMEo':function(_0x2fe3f5,_0x276203,_0x12bfd5){return _0x2fe3f5(_0x276203,_0x12bfd5);},'xvHjU':function(_0x249f15,_0x2578ca,_0x217146){return _0x249f15(_0x2578ca,_0x217146);},'ejDRb':function(_0x41a23e){return _0x41a23e();}};return new Promise((_0xb99de9,_0x24ec01)=>{const _0x31929e=_0x5963,_0x171878={'cRUZW':function(_0x3ec562,_0x3905cb){const _0x9fee2e=_0x5963;return _0x9c08c3[_0x9fee2e(0xca)](_0x3ec562,_0x3905cb);},'AqPVd':function(_0x548fa0,_0x1080b4,_0x256b88){return _0x548fa0(_0x1080b4,_0x256b88);},'NhzcB':function(_0x24cec1,_0x4aa88b,_0x1f71fb){const _0x4490cd=_0x5963;return _0x9c08c3[_0x4490cd(0xe2)](_0x24cec1,_0x4aa88b,_0x1f71fb);},'eaTPt':_0x31929e(0xd0)};let _0x2c9a3c=![];_0x9c08c3[_0x31929e(0xdf)](setTimeout,()=>{const _0x553670=_0x31929e;!_0x2c9a3c&&(_0x171878[_0x553670(0xe1)](logDebug,'获取好友列表超时'),_0x24ec01(_0x553670(0xd8)));},0x1388);const _0xf6f8f5=[],_0x184f9a=_0x253e6b=>{const _0x3f4866=_0x31929e;for(const _0x12f518 of _0x253e6b){for(const _0x4c4993 of _0x12f518[_0x3f4866(0xd9)]){_0xf6f8f5[_0x3f4866(0xd1)](_0x4c4993),uid2UinMap[_0x4c4993[_0x3f4866(0xdd)]]=_0x4c4993['uin'];}}_0x2c9a3c=!![],_0x171878['AqPVd'](logDebug,_0x3f4866(0xd5),_0xf6f8f5),_0x171878['cRUZW'](_0xb99de9,_0xf6f8f5);};buddyChangeTasks[_0x31929e(0xe6)](_0x9c08c3[_0x31929e(0xd3)](randomUUID),_0x184f9a),napCatCore[_0x31929e(0xd2)][_0x31929e(0xd6)]()['getBuddyList'](_0x37d72e)[_0x31929e(0xc8)](_0x4d31df=>{const _0x277675=_0x31929e;_0x171878[_0x277675(0xc5)](logDebug,_0x171878['eaTPt'],_0x4d31df);});});}static async[_0x4ee89f(0xce)](_0xf2ed74,_0xdd5745){const _0x41db68=_0x4ee89f;napCatCore[_0x41db68(0xd2)]['getBuddyService']()?.[_0x41db68(0xe7)]({'friendUid':_0xf2ed74[_0x41db68(0xcf)],'reqTime':_0xf2ed74[_0x41db68(0xdc)],'accept':_0xdd5745});}} \ 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 14ba5345..10e4628c 100644 --- a/src/core.lib/src/apis/group.js +++ b/src/core.lib/src/apis/group.js @@ -1 +1 @@ -const _0x4e0ba6=_0x3a89;function _0x5c39(){const _0x55aac1=['getNextMemberList','GzSEn','infos','获取群(','获取群列表完成','uin','setGroupName','zPxYn','qfXwt','publishGroupBulletin','kickMember','finish:\x20','finish','8264430eJhorO','getGroupIgnoreNotifies','setMemberRole','701022ybKZwf','getGroupList','XOLdf','YvFQF','groupCode','aCbMY','modifyGroupName','getGroupMembers','417459McZoep','LBXDW','bXAqn','799520JfnuaX','iuXWM','setMemberShutUp','uid','groupMemberList_MainWindow','setMemberCard','operateSysNotify','handleGroupRequest','quitGroup','modifyMemberCardName','setGroupShutUp','getPSkey','uploadGroupBulletinPic','YGLmP','sJvEu','4cZwWPJ','gvNVl','getGroups','onLoginSuccess','result','获取群列表超时','errCode','4426136GmtlQW','30RkMyLj','session',')成员列表结果:','onGroupListUpdate','qNYEr','getGroupService','set','banMember','283255nONdsF','forEach','modifyMemberRole','1672130nXEkGe'];_0x5c39=function(){return _0x55aac1;};return _0x5c39();}(function(_0x4a4dfd,_0x208f96){const _0x3c4584=_0x3a89,_0x4de8ba=_0x4a4dfd();while(!![]){try{const _0x5b77e0=parseInt(_0x3c4584(0x118))/0x1+-parseInt(_0x3c4584(0x11b))/0x2+-parseInt(_0x3c4584(0x110))/0x3*(parseInt(_0x3c4584(0x12a))/0x4)+parseInt(_0x3c4584(0x13d))/0x5+parseInt(_0x3c4584(0x132))/0x6*(-parseInt(_0x3c4584(0x13a))/0x7)+-parseInt(_0x3c4584(0x131))/0x8+parseInt(_0x3c4584(0x14b))/0x9;if(_0x5b77e0===_0x208f96)break;else _0x4de8ba['push'](_0x4de8ba['shift']());}catch(_0x30720f){_0x4de8ba['push'](_0x4de8ba['shift']());}}}(_0x5c39,0x44a29));import{NTQQUserApi,napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';const groupMemberTasks=new Map(),groupListener=new GroupListener();function _0x3a89(_0x141ef8,_0x39023d){const _0x5c39e5=_0x5c39();return _0x3a89=function(_0x3a893f,_0x31f084){_0x3a893f=_0x3a893f-0x10f;let _0x5c81bd=_0x5c39e5[_0x3a893f];return _0x5c81bd;},_0x3a89(_0x141ef8,_0x39023d);}groupListener[_0x4e0ba6(0x135)]=(_0x5d76f7,_0x48e8a6)=>{const _0x4adaa9=_0x4e0ba6,_0x56453f={'sJvEu':function(_0x47ae6f,_0x17d8c2,_0x45708c){return _0x47ae6f(_0x17d8c2,_0x45708c);}};for(const [_0x22bf8c,_0x497ff5]of groupMemberTasks){_0x56453f[_0x4adaa9(0x129)](_0x497ff5,_0x5d76f7,_0x48e8a6),groupMemberTasks['delete'](_0x22bf8c);}},setTimeout(()=>{const _0x480b41=_0x4e0ba6;napCatCore[_0x480b41(0x12d)](()=>{napCatCore['addListener'](groupListener);});},0x64);export class NTQQGroupApi{static async[_0x4e0ba6(0x12c)](_0x18ed49=![]){const _0x3308b5={'GzSEn':function(_0x336247,_0x16636f){return _0x336247(_0x16636f);},'qfXwt':function(_0x55f8b6){return _0x55f8b6();}};let _0x31170e=![];return new Promise((_0x226f4d,_0x228b91)=>{const _0x286a3c=_0x3a89,_0xcae84={'qNYEr':_0x286a3c(0x142),'LBXDW':function(_0x2b4cf2,_0x9b3f0e){const _0xa3f55f=_0x286a3c;return _0x3308b5[_0xa3f55f(0x13f)](_0x2b4cf2,_0x9b3f0e);}};setTimeout(()=>{const _0x59128a=_0x286a3c;!_0x31170e&&(logDebug(_0x59128a(0x12f)),_0x228b91(_0x59128a(0x12f)));},0x1388);const _0x494b00=(_0x4f6713,_0x2c5e56)=>{const _0x38a45c=_0x286a3c;_0x31170e=!![],logDebug(_0xcae84[_0x38a45c(0x136)],_0x2c5e56),_0xcae84[_0x38a45c(0x119)](_0x226f4d,_0x2c5e56);};groupMemberTasks[_0x286a3c(0x138)](_0x3308b5[_0x286a3c(0x146)](randomUUID),_0x494b00),napCatCore[_0x286a3c(0x133)][_0x286a3c(0x137)]()[_0x286a3c(0x111)](_0x18ed49)['then']();});}static async[_0x4e0ba6(0x117)](_0x43c8d1,_0x1891d6=0xbb8){const _0x40726e=_0x4e0ba6,_0xd00dbf={'YvFQF':_0x40726e(0x11f),'aCbMY':function(_0x559f05,_0x3411ec){return _0x559f05!==_0x3411ec;},'YGLmP':function(_0x5bdabd,_0x3b2314){return _0x5bdabd+_0x3b2314;},'gvNVl':function(_0x1e6ee0,_0x4325f8,_0x3f0ddc){return _0x1e6ee0(_0x4325f8,_0x3f0ddc);}},_0xd933cf=napCatCore[_0x40726e(0x133)]['getGroupService'](),_0x580cd0=_0xd933cf['createMemberListScene'](_0x43c8d1,_0xd00dbf[_0x40726e(0x113)]),_0x5de81e=await _0xd933cf[_0x40726e(0x13e)](_0x580cd0,undefined,_0x1891d6);if(_0xd00dbf[_0x40726e(0x115)](_0x5de81e[_0x40726e(0x130)],0x0))throw _0xd00dbf[_0x40726e(0x128)]('获取群成员列表出错,',_0x5de81e['errMsg']);return _0xd00dbf[_0x40726e(0x12b)](logDebug,_0x40726e(0x141)+_0x43c8d1+_0x40726e(0x134),_0x40726e(0x149)+_0x5de81e[_0x40726e(0x12e)][_0x40726e(0x14a)]),_0x5de81e[_0x40726e(0x12e)][_0x40726e(0x140)][_0x40726e(0x13b)](_0x324d95=>{const _0x315f36=_0x40726e;uid2UinMap[_0x324d95[_0x315f36(0x11e)]]=_0x324d95[_0x315f36(0x143)];}),_0x5de81e['result']['infos'];}static async['getGroupNotifies'](){}static async[_0x4e0ba6(0x14c)](){}static async[_0x4e0ba6(0x127)](_0x2c5974,_0x3fd9b7){const _0x2bfbed=_0x4e0ba6,_0x477a04={'XOLdf':'qun.qq.com'},_0x3521bc=(await NTQQUserApi[_0x2bfbed(0x126)]([_0x477a04['XOLdf']]))[_0x477a04[_0x2bfbed(0x112)]];return napCatCore['session']['getGroupService']()[_0x2bfbed(0x127)](_0x2c5974,_0x3521bc,_0x3fd9b7);}static async[_0x4e0ba6(0x122)](_0x2d3d22,_0x2c0d13,_0x181154){const _0x5f4b8e=_0x4e0ba6,_0x6c3d9a={'iuXWM':function(_0x537553,_0x13df30){return _0x537553||_0x13df30;}};return napCatCore['session'][_0x5f4b8e(0x137)]()[_0x5f4b8e(0x121)](![],{'operateType':_0x2c0d13,'targetMsg':{'seq':_0x2d3d22['seq'],'type':_0x2d3d22['type'],'groupCode':_0x2d3d22['group'][_0x5f4b8e(0x114)],'postscript':_0x6c3d9a[_0x5f4b8e(0x11c)](_0x181154,'')}});}static async['quitGroup'](_0x18bee4){const _0x182842=_0x4e0ba6;return napCatCore['session'][_0x182842(0x137)]()[_0x182842(0x123)](_0x18bee4);}static async[_0x4e0ba6(0x148)](_0x5dd506,_0x309d7e,_0x37f881=![],_0x16b56c=''){const _0x4188d9=_0x4e0ba6;return napCatCore[_0x4188d9(0x133)][_0x4188d9(0x137)]()[_0x4188d9(0x148)](_0x5dd506,_0x309d7e,_0x37f881,_0x16b56c);}static async[_0x4e0ba6(0x139)](_0x1e7bae,_0x3b53d9){const _0x33cb07=_0x4e0ba6;return napCatCore[_0x33cb07(0x133)][_0x33cb07(0x137)]()[_0x33cb07(0x11d)](_0x1e7bae,_0x3b53d9);}static async['banGroup'](_0x1626cf,_0x2b274b){const _0x5e38c8=_0x4e0ba6;return napCatCore[_0x5e38c8(0x133)][_0x5e38c8(0x137)]()[_0x5e38c8(0x125)](_0x1626cf,_0x2b274b);}static async[_0x4e0ba6(0x120)](_0x126f98,_0xd87fa6,_0x43e5c8){const _0x5f32f0=_0x4e0ba6;return napCatCore[_0x5f32f0(0x133)][_0x5f32f0(0x137)]()[_0x5f32f0(0x124)](_0x126f98,_0xd87fa6,_0x43e5c8);}static async[_0x4e0ba6(0x10f)](_0x178152,_0x5ce20c,_0x1fcc68){const _0x2ef938=_0x4e0ba6;return napCatCore[_0x2ef938(0x133)][_0x2ef938(0x137)]()[_0x2ef938(0x13c)](_0x178152,_0x5ce20c,_0x1fcc68);}static async[_0x4e0ba6(0x144)](_0x4d96c7,_0x1f1606){const _0x23553b=_0x4e0ba6;return napCatCore[_0x23553b(0x133)][_0x23553b(0x137)]()[_0x23553b(0x116)](_0x4d96c7,_0x1f1606,![]);}static async['setGroupTitle'](_0x472a6d,_0x401a14,_0x335fa7){}static async[_0x4e0ba6(0x147)](_0x118f5d,_0xb9f968,_0x373820=undefined,_0x629e33=0x0,_0xfba23=0x0){const _0x2aad93=_0x4e0ba6,_0x4fce5e={'zPxYn':'qun.qq.com','bXAqn':function(_0xa5bb09,_0x3f7a59){return _0xa5bb09(_0x3f7a59);}},_0x38e333=(await NTQQUserApi[_0x2aad93(0x126)]([_0x4fce5e[_0x2aad93(0x145)]]))[_0x4fce5e[_0x2aad93(0x145)]];let _0x573871={'text':_0x4fce5e[_0x2aad93(0x11a)](encodeURI,_0xb9f968),'picInfo':_0x373820,'oldFeedsId':'','pinned':_0x629e33,'confirmRequired':_0xfba23};return napCatCore['session']['getGroupService']()['publishGroupBulletin'](_0x118f5d,_0x38e333,_0x573871);}} \ No newline at end of file +const _0xd22e14=_0x1371;(function(_0x1a43c8,_0x1a99fc){const _0x150bbf=_0x1371,_0x44e6e8=_0x1a43c8();while(!![]){try{const _0x155377=parseInt(_0x150bbf(0xca))/0x1+-parseInt(_0x150bbf(0xbf))/0x2*(-parseInt(_0x150bbf(0xc6))/0x3)+-parseInt(_0x150bbf(0xef))/0x4*(parseInt(_0x150bbf(0xf6))/0x5)+parseInt(_0x150bbf(0xfb))/0x6*(parseInt(_0x150bbf(0xf7))/0x7)+parseInt(_0x150bbf(0xff))/0x8+parseInt(_0x150bbf(0xd1))/0x9*(-parseInt(_0x150bbf(0xe6))/0xa)+-parseInt(_0x150bbf(0xda))/0xb;if(_0x155377===_0x1a99fc)break;else _0x44e6e8['push'](_0x44e6e8['shift']());}catch(_0x21519b){_0x44e6e8['push'](_0x44e6e8['shift']());}}}(_0x37b0,0x1d215));function _0x1371(_0x484ced,_0x203e60){const _0x37b093=_0x37b0();return _0x1371=function(_0x1371a3,_0x2447fa){_0x1371a3=_0x1371a3-0xbf;let _0x38a9e6=_0x37b093[_0x1371a3];return _0x38a9e6;},_0x1371(_0x484ced,_0x203e60);}import{NTQQUserApi,napCatCore}from'@/core';function _0x37b0(){const _0x57c72a=['CQEuM','LlPnK','getGroupList','83946BalkzV','获取群列表完成','setMemberShutUp','setGroupShutUp','132168prXDhR','getGroupService','onLoginSuccess','uploadGroupBulletinPic','tYtkh','finish','delete','errCode','1062uqMLuk','getPSkey','onGroupListUpdate','errMsg','publishGroupBulletin','banGroup','result','717aKxAVA','modifyGroupName','kickMember','modifyMemberRole','123307CWtzJQ','finish:\x20','HdbwR','OzEaB','set','MVMss','groupMemberList_MainWindow','3357UDTkXS','operateSysNotify','quitGroup','setMemberCard',')成员列表结果:','SZzVC','handleGroupRequest','uid','seq','2500388THFTTM','getNextMemberList','获取群(','getGroups','createMemberListScene','session','setGroupTitle','UekGy','addListener','JAEOQ','getGroupIgnoreNotifies','modifyMemberCardName','1470qMPdjW','setMemberRole','LsiEH','yXbez','infos','then','获取群列表超时','BCmFY','poyHr','34376DxXpMh','forEach','banMember','setGroupName','RLbjN','qun.qq.com','group','60KulRhc','119uIGJhD'];_0x37b0=function(){return _0x57c72a;};return _0x37b0();}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();groupListener[_0xd22e14(0xc1)]=(_0x539c01,_0x55cea7)=>{const _0x122ea6=_0xd22e14,_0x47046a={'MVMss':function(_0x577847,_0x298187,_0x257c2d){return _0x577847(_0x298187,_0x257c2d);}};for(const [_0x2a1b97,_0x335ff0]of groupMemberTasks){_0x47046a[_0x122ea6(0xcf)](_0x335ff0,_0x539c01,_0x55cea7),groupMemberTasks[_0x122ea6(0x105)](_0x2a1b97);}},setTimeout(()=>{const _0x109eda=_0xd22e14;napCatCore[_0x109eda(0x101)](()=>{const _0x406a02=_0x109eda;napCatCore[_0x406a02(0xe2)](groupListener);});},0x64);export class NTQQGroupApi{static async[_0xd22e14(0xdd)](_0x4703ea=![]){const _0x59f73a=_0xd22e14,_0x3c157b={'uixoO':function(_0x17550a,_0x38d64b){return _0x17550a(_0x38d64b);},'poyHr':_0x59f73a(0xec),'LlPnK':function(_0x401260,_0x1dd044){return _0x401260(_0x1dd044);},'RLbjN':function(_0xa33061,_0x507ec7,_0x2a0c50){return _0xa33061(_0x507ec7,_0x2a0c50);},'UekGy':_0x59f73a(0xfc),'BCmFY':function(_0x56d6c4,_0x3a8f4e,_0x31d7be){return _0x56d6c4(_0x3a8f4e,_0x31d7be);},'LsiEH':function(_0x121783){return _0x121783();}};let _0x4439a8=![];return new Promise((_0xc1d547,_0x52f566)=>{const _0x1d86e2=_0x59f73a;_0x3c157b[_0x1d86e2(0xed)](setTimeout,()=>{const _0x15fed1=_0x1d86e2;!_0x4439a8&&(_0x3c157b['uixoO'](logDebug,_0x3c157b['poyHr']),_0x3c157b[_0x15fed1(0xf9)](_0x52f566,_0x3c157b[_0x15fed1(0xee)]));},0x1388);const _0x325660=(_0x43ceba,_0x50dd6b)=>{const _0x39a180=_0x1d86e2;_0x4439a8=!![],_0x3c157b[_0x39a180(0xf3)](logDebug,_0x3c157b[_0x39a180(0xe1)],_0x50dd6b),_0x3c157b[_0x39a180(0xf9)](_0xc1d547,_0x50dd6b);};groupMemberTasks[_0x1d86e2(0xce)](_0x3c157b[_0x1d86e2(0xe8)](randomUUID),_0x325660),napCatCore[_0x1d86e2(0xdf)][_0x1d86e2(0x100)]()[_0x1d86e2(0xfa)](_0x4703ea)[_0x1d86e2(0xeb)]();});}static async['getGroupMembers'](_0x4cef21,_0x138562=0xbb8){const _0x3f1547=_0xd22e14,_0x3375a9={'JAEOQ':_0x3f1547(0xd0),'yXbez':function(_0x2945c8,_0x551975){return _0x2945c8!==_0x551975;},'HdbwR':function(_0xe536f3,_0x2101cf){return _0xe536f3+_0x2101cf;},'tYtkh':'获取群成员列表出错,','UogGK':function(_0x355774,_0x490afa,_0x453d21){return _0x355774(_0x490afa,_0x453d21);}},_0x3c1535=napCatCore[_0x3f1547(0xdf)]['getGroupService'](),_0x1de839=_0x3c1535[_0x3f1547(0xde)](_0x4cef21,_0x3375a9[_0x3f1547(0xe3)]),_0x1169f2=await _0x3c1535[_0x3f1547(0xdb)](_0x1de839,undefined,_0x138562);if(_0x3375a9[_0x3f1547(0xe9)](_0x1169f2[_0x3f1547(0x106)],0x0))throw _0x3375a9[_0x3f1547(0xcc)](_0x3375a9[_0x3f1547(0x103)],_0x1169f2[_0x3f1547(0xc2)]);return _0x3375a9['UogGK'](logDebug,_0x3f1547(0xdc)+_0x4cef21+_0x3f1547(0xd5),_0x3f1547(0xcb)+_0x1169f2['result'][_0x3f1547(0x104)]),_0x1169f2[_0x3f1547(0xc5)][_0x3f1547(0xea)][_0x3f1547(0xf0)](_0x4ca935=>{const _0x46d7f5=_0x3f1547;uid2UinMap[_0x4ca935[_0x46d7f5(0xd8)]]=_0x4ca935['uin'];}),_0x1169f2['result'][_0x3f1547(0xea)];}static async['getGroupNotifies'](){}static async[_0xd22e14(0xe4)](){}static async[_0xd22e14(0x102)](_0xd4a5c6,_0x4e0a34){const _0x29f796=_0xd22e14,_0x2edc33={'KxkuI':'qun.qq.com'},_0xc54492=(await NTQQUserApi[_0x29f796(0xc0)]([_0x2edc33['KxkuI']]))[_0x2edc33['KxkuI']];return napCatCore['session'][_0x29f796(0x100)]()[_0x29f796(0x102)](_0xd4a5c6,_0xc54492,_0x4e0a34);}static async[_0xd22e14(0xd7)](_0x21fe7d,_0x18ea0c,_0x441b38){const _0x305a95=_0xd22e14,_0x33fa91={'OzEaB':function(_0x2fa9e4,_0x453c8d){return _0x2fa9e4||_0x453c8d;}};return napCatCore[_0x305a95(0xdf)][_0x305a95(0x100)]()[_0x305a95(0xd2)](![],{'operateType':_0x18ea0c,'targetMsg':{'seq':_0x21fe7d[_0x305a95(0xd9)],'type':_0x21fe7d['type'],'groupCode':_0x21fe7d[_0x305a95(0xf5)]['groupCode'],'postscript':_0x33fa91[_0x305a95(0xcd)](_0x441b38,'')}});}static async[_0xd22e14(0xd3)](_0x1cbfcf){const _0x1377cf=_0xd22e14;return napCatCore[_0x1377cf(0xdf)][_0x1377cf(0x100)]()[_0x1377cf(0xd3)](_0x1cbfcf);}static async[_0xd22e14(0xc8)](_0x2913a8,_0x2d3d15,_0x248df5=![],_0x2a3661=''){const _0x590294=_0xd22e14;return napCatCore[_0x590294(0xdf)][_0x590294(0x100)]()[_0x590294(0xc8)](_0x2913a8,_0x2d3d15,_0x248df5,_0x2a3661);}static async[_0xd22e14(0xf1)](_0x57b0d5,_0x58d560){const _0x5f0bd9=_0xd22e14;return napCatCore[_0x5f0bd9(0xdf)][_0x5f0bd9(0x100)]()[_0x5f0bd9(0xfd)](_0x57b0d5,_0x58d560);}static async[_0xd22e14(0xc4)](_0x5df122,_0x4a31c5){const _0x555087=_0xd22e14;return napCatCore[_0x555087(0xdf)]['getGroupService']()[_0x555087(0xfe)](_0x5df122,_0x4a31c5);}static async[_0xd22e14(0xd4)](_0x455612,_0x2669ef,_0x5c4e25){const _0x354aa0=_0xd22e14;return napCatCore[_0x354aa0(0xdf)][_0x354aa0(0x100)]()[_0x354aa0(0xe5)](_0x455612,_0x2669ef,_0x5c4e25);}static async[_0xd22e14(0xe7)](_0x40e4ab,_0x21f06f,_0x5aae88){const _0x42ae11=_0xd22e14;return napCatCore[_0x42ae11(0xdf)]['getGroupService']()[_0x42ae11(0xc9)](_0x40e4ab,_0x21f06f,_0x5aae88);}static async[_0xd22e14(0xf2)](_0x422c2e,_0x11f2af){const _0x50b6ed=_0xd22e14;return napCatCore[_0x50b6ed(0xdf)][_0x50b6ed(0x100)]()[_0x50b6ed(0xc7)](_0x422c2e,_0x11f2af,![]);}static async[_0xd22e14(0xe0)](_0xd3a429,_0xab06d4,_0x584d92){}static async['publishGroupBulletin'](_0x3ed87e,_0x1eedeb,_0x1bb2a0=undefined,_0x84ce44=0x0,_0x1a7354=0x0){const _0x4d0767=_0xd22e14,_0x4e5102={'CQEuM':_0x4d0767(0xf4),'SZzVC':function(_0x19d45f,_0x2be5f5){return _0x19d45f(_0x2be5f5);}},_0x397e13=(await NTQQUserApi[_0x4d0767(0xc0)]([_0x4e5102[_0x4d0767(0xf8)]]))[_0x4e5102[_0x4d0767(0xf8)]];let _0x32e9bd={'text':_0x4e5102[_0x4d0767(0xd6)](encodeURI,_0x1eedeb),'picInfo':_0x1bb2a0,'oldFeedsId':'','pinned':_0x84ce44,'confirmRequired':_0x1a7354};return napCatCore[_0x4d0767(0xdf)]['getGroupService']()[_0x4d0767(0xc3)](_0x3ed87e,_0x397e13,_0x32e9bd);}} \ No newline at end of file diff --git a/src/core.lib/src/apis/index.js b/src/core.lib/src/apis/index.js index d5d19b35..4a5504f3 100644 --- a/src/core.lib/src/apis/index.js +++ b/src/core.lib/src/apis/index.js @@ -1 +1 @@ -(function(_0x223135,_0x5cadc3){var _0x51e283=_0x3f83,_0x1434ee=_0x223135();while(!![]){try{var _0x4fe77f=parseInt(_0x51e283(0xcc))/0x1+-parseInt(_0x51e283(0xca))/0x2+-parseInt(_0x51e283(0xcd))/0x3+-parseInt(_0x51e283(0xcb))/0x4*(parseInt(_0x51e283(0xce))/0x5)+-parseInt(_0x51e283(0xcf))/0x6+-parseInt(_0x51e283(0xd0))/0x7*(parseInt(_0x51e283(0xc9))/0x8)+parseInt(_0x51e283(0xd1))/0x9;if(_0x4fe77f===_0x5cadc3)break;else _0x1434ee['push'](_0x1434ee['shift']());}catch(_0x27ff7c){_0x1434ee['push'](_0x1434ee['shift']());}}}(_0x4cd9,0xb9cb5));export*from'./file';export*from'./friend';export*from'./group';function _0x3f83(_0x19de79,_0xd90394){var _0x4cd941=_0x4cd9();return _0x3f83=function(_0x3f830f,_0x4b011b){_0x3f830f=_0x3f830f-0xc9;var _0x2e671a=_0x4cd941[_0x3f830f];return _0x2e671a;},_0x3f83(_0x19de79,_0xd90394);}function _0x4cd9(){var _0x4a1fb9=['6723968Ybxbkr','2739534YlrVwz','1099556bFInVi','279057KjKrrz','1745502WthHah','20fVZhwy','447282EqvCuN','7lGOhxG','40033404MinrLp'];_0x4cd9=function(){return _0x4a1fb9;};return _0x4cd9();}export*from'./msg';export*from'./user';export*from'./webapi'; \ No newline at end of file +(function(_0x3cdd3c,_0x184dea){var _0x2fde92=_0x296c,_0x4c6e64=_0x3cdd3c();while(!![]){try{var _0x5b61ea=parseInt(_0x2fde92(0x18d))/0x1*(-parseInt(_0x2fde92(0x18c))/0x2)+-parseInt(_0x2fde92(0x196))/0x3+-parseInt(_0x2fde92(0x194))/0x4*(parseInt(_0x2fde92(0x195))/0x5)+-parseInt(_0x2fde92(0x18e))/0x6+-parseInt(_0x2fde92(0x193))/0x7*(parseInt(_0x2fde92(0x190))/0x8)+parseInt(_0x2fde92(0x192))/0x9*(-parseInt(_0x2fde92(0x191))/0xa)+parseInt(_0x2fde92(0x18f))/0xb;if(_0x5b61ea===_0x184dea)break;else _0x4c6e64['push'](_0x4c6e64['shift']());}catch(_0x4622ce){_0x4c6e64['push'](_0x4c6e64['shift']());}}}(_0x5cdc,0xb2595));function _0x296c(_0x1bde28,_0x32ba82){var _0x5cdc33=_0x5cdc();return _0x296c=function(_0x296c88,_0x393f35){_0x296c88=_0x296c88-0x18c;var _0x55054a=_0x5cdc33[_0x296c88];return _0x55054a;},_0x296c(_0x1bde28,_0x32ba82);}export*from'./file';export*from'./friend';export*from'./group';function _0x5cdc(){var _0x115d33=['492740rLmwUH','250185djUgyb','574834OOMRMU','2MVXPLI','5740386rPVxoW','62245799KxVemX','888sYGygh','20YhQaDt','3927438gZdfpv','91756OqqesQ','40ntEVjD'];_0x5cdc=function(){return _0x115d33;};return _0x5cdc();}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 55105e4e..8d53d26a 100644 --- a/src/core.lib/src/apis/msg.js +++ b/src/core.lib/src/apis/msg.js @@ -1 +1 @@ -function _0x23df(){const _0x55a8dc=['ZljwJ','56NFnmSB','fppCq','2632959JDRBoV','2260448xrvday','UyPfI','setMsgEmojiLikes','com.tencent.multimsg','recallMsg','arkElement','iZAkj','setEmojiLike','senderUid','onLoginSuccess','then','length','session','multiForwardMsg','JppJy','2250204NJABeo','1344978hkAzwl','iUPeU','nZAnO','mMlkj','184079xWBgDT','8117658bmNyGt','set','setMsgRead','xGPrG','RdmIi','getMsgsBySeqAndCount','hNHSl','QkSve','xNNtC','onAddSendMsg','发送超时','nick','toString','delete','peerUid','activateChat','EuUdT','parse','getMultiMsg','tSaRL','chatType','app','dOZtZ','3gixCZX','sendMsg','getMsgHistory','getMsgService','xIRVJ','msgId','AOTxa','3621250ZLIfog','forEach','fetchRecentContact','multiForwardMsgWithComment','elements','doUYL','forwardMsg','onMsgInfoListUpdate'];_0x23df=function(){return _0x55a8dc;};return _0x23df();}const _0x18f5fe=_0x1ff0;(function(_0x459e67,_0x3b7e35){const _0x5b3d00=_0x1ff0,_0xc321ca=_0x459e67();while(!![]){try{const _0xaa4b02=-parseInt(_0x5b3d00(0x178))/0x1+-parseInt(_0x5b3d00(0x164))/0x2*(parseInt(_0x5b3d00(0x151))/0x3)+-parseInt(_0x5b3d00(0x173))/0x4+parseInt(_0x5b3d00(0x158))/0x5+parseInt(_0x5b3d00(0x179))/0x6+-parseInt(_0x5b3d00(0x163))/0x7+parseInt(_0x5b3d00(0x161))/0x8*(parseInt(_0x5b3d00(0x174))/0x9);if(_0xaa4b02===_0x3b7e35)break;else _0xc321ca['push'](_0xc321ca['shift']());}catch(_0x41bc9b){_0xc321ca['push'](_0xc321ca['shift']());}}}(_0x23df,0xd4798));import{selfInfo}from'@/core/data';function _0x1ff0(_0x2efc38,_0x592794){const _0x23dfb0=_0x23df();return _0x1ff0=function(_0x1ff0af,_0x44f991){_0x1ff0af=_0x1ff0af-0x148;let _0x285db6=_0x23dfb0[_0x1ff0af];return _0x285db6;},_0x1ff0(_0x2efc38,_0x592794);}import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener[_0x18f5fe(0x182)]=_0x497b42=>{const _0x4ea0c9=_0x18f5fe;for(const [_0x5dfbf3,_0x33f15b]of sentMsgTasks){_0x33f15b(_0x497b42),sentMsgTasks[_0x4ea0c9(0x186)](_0x5dfbf3);}if(sendMessagePool[_0x497b42['peerUid']]){const _0x1b6ceb=sendMessagePool[_0x497b42[_0x4ea0c9(0x148)]]?.(_0x497b42);_0x1b6ceb instanceof Promise&&_0x1b6ceb['then']()['catch'](logError);}},msgListener[_0x18f5fe(0x15f)]=_0x1ba30f=>{const _0x4f6c6a=_0x18f5fe,_0x4316e1={'xNNtC':function(_0x59c1b2,_0x5c340c){return _0x59c1b2(_0x5c340c);},'AOTxa':function(_0x240879,_0x316154){return _0x240879 instanceof _0x316154;},'nZAnO':function(_0x3ceb4c,_0x647c2){return _0x3ceb4c(_0x647c2);}};_0x1ba30f[_0x4f6c6a(0x159)](_0x53fef0=>{const _0x304489=_0x4f6c6a;new Promise((_0x49e4c0,_0x34fbc6)=>{const _0x3e055c=_0x1ff0;for(const _0xba202b in sendSuccessCBMap){const _0x2ded30=sendSuccessCBMap[_0xba202b],_0x2c1fce=_0x4316e1[_0x3e055c(0x181)](_0x2ded30,_0x53fef0),_0x1bd495=_0x3cfbef=>{_0x3cfbef&&delete sendSuccessCBMap[_0xba202b];};_0x4316e1[_0x3e055c(0x157)](_0x2c1fce,Promise)?_0x2c1fce[_0x3e055c(0x16e)](_0x1bd495):_0x4316e1[_0x3e055c(0x176)](_0x1bd495,_0x2c1fce);}})[_0x304489(0x16e)]()['catch'](log);});},setTimeout(()=>{const _0x446f62=_0x18f5fe;napCatCore[_0x446f62(0x16d)](()=>{napCatCore['addListener'](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x18f5fe(0x16b)](_0x4a6ee1,_0x58cded,_0x37c876,_0x55e7a2=!![]){const _0x38fd0c=_0x18f5fe,_0x24695e={'CAwRX':function(_0x5ac04f,_0x3d4985){return _0x5ac04f>_0x3d4985;}};return _0x37c876=_0x37c876[_0x38fd0c(0x185)](),napCatCore[_0x38fd0c(0x170)]['getMsgService']()[_0x38fd0c(0x166)](_0x4a6ee1,_0x58cded,_0x37c876,_0x24695e['CAwRX'](_0x37c876[_0x38fd0c(0x16f)],0x3)?'2':'1',_0x55e7a2);}static async[_0x18f5fe(0x14c)](_0x4f3cef,_0x43a8b0,_0x29a9cf){const _0x9d56bc=_0x18f5fe;return napCatCore[_0x9d56bc(0x170)][_0x9d56bc(0x154)]()['getMultiMsg'](_0x4f3cef,_0x43a8b0,_0x29a9cf);}static async['getMsgsByMsgId'](_0x2433b3,_0x25a087){const _0xa236cb=_0x18f5fe;return await napCatCore[_0xa236cb(0x170)][_0xa236cb(0x154)]()['getMsgsByMsgId'](_0x2433b3,_0x25a087);}static async[_0x18f5fe(0x17e)](_0x1bef48,_0x4d93e8,_0x53c08b,_0x11d499,_0x6590f5){const _0x199e1e=_0x18f5fe;return await napCatCore[_0x199e1e(0x170)]['getMsgService']()['getMsgsBySeqAndCount'](_0x1bef48,_0x4d93e8,_0x53c08b,_0x11d499,_0x6590f5);}static async[_0x18f5fe(0x149)](_0x2dcb53){}static async['activateChatAndGetHistory'](_0x1343f8){}static async[_0x18f5fe(0x17b)](_0x13e9e2){const _0xd6af63=_0x18f5fe;return napCatCore[_0xd6af63(0x170)]['getMsgService']()[_0xd6af63(0x17b)](_0x13e9e2);}static async[_0x18f5fe(0x153)](_0x29e934,_0x13b6b2,_0x1b412e){const _0x342601=_0x18f5fe;return napCatCore[_0x342601(0x170)]['getMsgService']()['getMsgsIncludeSelf'](_0x29e934,_0x13b6b2,_0x1b412e,!![]);}static async[_0x18f5fe(0x15a)](){}static async[_0x18f5fe(0x168)](_0x32723a,_0x2c2f0f){const _0x5f16ed=_0x18f5fe;await napCatCore[_0x5f16ed(0x170)][_0x5f16ed(0x154)]()[_0x5f16ed(0x168)]({'chatType':_0x32723a[_0x5f16ed(0x14e)],'peerUid':_0x32723a[_0x5f16ed(0x148)]},_0x2c2f0f);}static async[_0x18f5fe(0x152)](_0x22a05a,_0x183682,_0x202a19=!![],_0x3c2785=0x2710){const _0x1d9468=_0x18f5fe,_0x4b4f08={'tSaRL':function(_0x1d1ffc,_0x15ae02){return _0x1d1ffc>_0x15ae02;},'HkFMq':_0x1d9468(0x183),'EuUdT':function(_0x5d8678,_0x5e0483){return _0x5d8678(_0x5e0483);},'dOZtZ':function(_0x4d98ba){return _0x4d98ba();},'JppJy':function(_0x38ef30,_0x238d28){return _0x38ef30===_0x238d28;},'ydNFm':function(_0x6c9b90,_0x32358d){return _0x6c9b90(_0x32358d);},'QkSve':function(_0x36534b,_0x1a294f,_0x4639a4){return _0x36534b(_0x1a294f,_0x4639a4);}},_0x235878=_0x22a05a['peerUid'];let _0x4139ab=0x0;const _0xfe52ee=async()=>{const _0x285a7d=_0x1d9468;if(_0x4b4f08[_0x285a7d(0x14d)](_0x4139ab,_0x3c2785))throw _0x4b4f08['HkFMq'];const _0x32ba89=sendMessagePool[_0x22a05a[_0x285a7d(0x148)]];if(_0x32ba89)return await _0x4b4f08[_0x285a7d(0x14a)](sleep,0x1f4),_0x4139ab+=0x1f4,await _0x4b4f08[_0x285a7d(0x150)](_0xfe52ee);else return;};return await _0x4b4f08[_0x1d9468(0x150)](_0xfe52ee),new Promise((_0x1c2be7,_0x15ecab)=>{const _0x38426f=_0x1d9468,_0x54bc56={'fppCq':function(_0x5835d6,_0x1d27ea){return _0x4b4f08['ydNFm'](_0x5835d6,_0x1d27ea);},'xIRVJ':_0x4b4f08['HkFMq']};let _0x27298e=![],_0x50a587=null;const _0x145352=_0x4b4f08[_0x38426f(0x150)](randomUUID);sendSuccessCBMap[_0x145352]=_0x4bc61b=>{const _0x549b25=_0x38426f;if(_0x4b4f08[_0x549b25(0x172)](_0x4bc61b[_0x549b25(0x156)],_0x50a587?.[_0x549b25(0x156)])){if(_0x4bc61b['sendStatus']===0x2)return delete sendSuccessCBMap[_0x145352],_0x27298e=!![],_0x4b4f08[_0x549b25(0x14a)](_0x1c2be7,_0x4bc61b),!![];return![];}return![];},sendMessagePool[_0x235878]=async _0x2261ec=>{delete sendMessagePool[_0x235878],_0x50a587=_0x2261ec;},_0x4b4f08[_0x38426f(0x180)](setTimeout,()=>{const _0x34cd23=_0x38426f;if(_0x27298e)return;delete sendMessagePool[_0x235878],delete sendSuccessCBMap[_0x145352],_0x54bc56[_0x34cd23(0x162)](_0x15ecab,_0x54bc56[_0x34cd23(0x155)]);},_0x3c2785);const _0x4c9662=napCatCore[_0x38426f(0x170)][_0x38426f(0x154)]()[_0x38426f(0x152)]('0',_0x22a05a,_0x183682,new Map());});}static async[_0x18f5fe(0x15e)](_0x10ac79,_0x175654,_0x5dde80){const _0x38ec96=_0x18f5fe;return napCatCore[_0x38ec96(0x170)][_0x38ec96(0x154)]()[_0x38ec96(0x15e)](_0x5dde80,_0x10ac79,[_0x175654],new Map());}static async[_0x18f5fe(0x171)](_0x23e7fe,_0x5cb215,_0x5acfc3){const _0x23e442=_0x18f5fe,_0x8333a5={'RdmIi':_0x23e442(0x167),'mMlkj':function(_0x28e127,_0x27f4ed){return _0x28e127==_0x27f4ed;},'UyPfI':function(_0x8a8d4d,_0x387646){return _0x8a8d4d==_0x387646;},'doUYL':function(_0x4ea75e,_0x2fd6a6){return _0x4ea75e(_0x2fd6a6);},'xGPrG':function(_0x146d69){return _0x146d69();},'yKkFc':function(_0x56f383,_0xf1f9ce,_0x32a493){return _0x56f383(_0xf1f9ce,_0x32a493);}},_0x10b95f=_0x5acfc3['map'](_0xec5b6c=>{const _0x273ec6=_0x23e442;return{'msgId':_0xec5b6c,'senderShowName':selfInfo[_0x273ec6(0x184)]};});return new Promise((_0x5d5943,_0xaf8057)=>{const _0x284010=_0x23e442,_0x20741e={'iUPeU':_0x8333a5[_0x284010(0x17d)],'oflTV':function(_0x58e433,_0x4d5159){const _0x2a5063=_0x284010;return _0x8333a5[_0x2a5063(0x177)](_0x58e433,_0x4d5159);},'ZljwJ':function(_0x5baf0f,_0x59cfeb){const _0x7acace=_0x284010;return _0x8333a5[_0x7acace(0x165)](_0x5baf0f,_0x59cfeb);},'iZAkj':function(_0x1d64fe,_0x3f5afa){const _0x2a6edc=_0x284010;return _0x8333a5[_0x2a6edc(0x15d)](_0x1d64fe,_0x3f5afa);},'hNHSl':'转发消息超时'};let _0x4afaba=![];const _0x4682da=_0x55f6ac=>{const _0x2e6d9a=_0x284010,_0x43f6f5=_0x55f6ac[_0x2e6d9a(0x15c)]['find'](_0x511553=>_0x511553[_0x2e6d9a(0x169)]);if(!_0x43f6f5)return;const _0x2a2444=JSON[_0x2e6d9a(0x14b)](_0x43f6f5[_0x2e6d9a(0x169)]['bytesData']);if(_0x2a2444[_0x2e6d9a(0x14f)]!=_0x20741e[_0x2e6d9a(0x175)])return;_0x20741e['oflTV'](_0x55f6ac['peerUid'],_0x5cb215[_0x2e6d9a(0x148)])&&_0x20741e[_0x2e6d9a(0x160)](_0x55f6ac[_0x2e6d9a(0x16c)],selfInfo['uid'])&&(_0x4afaba=!![],_0x20741e[_0x2e6d9a(0x16a)](_0x5d5943,_0x55f6ac));};sentMsgTasks[_0x284010(0x17a)](_0x8333a5[_0x284010(0x17c)](randomUUID),_0x4682da),_0x8333a5['yKkFc'](setTimeout,()=>{const _0xae182f=_0x284010;!_0x4afaba&&_0x20741e[_0xae182f(0x16a)](_0xaf8057,_0x20741e[_0xae182f(0x17f)]);},0x1388),napCatCore[_0x284010(0x170)][_0x284010(0x154)]()[_0x284010(0x15b)](_0x10b95f,_0x23e7fe,_0x5cb215,[],new Map());});}} \ No newline at end of file +const _0x2fc698=_0x19e1;(function(_0x40f2d1,_0x10e45a){const _0x148fd9=_0x19e1,_0x1e51b1=_0x40f2d1();while(!![]){try{const _0x1b8930=parseInt(_0x148fd9(0x15e))/0x1+-parseInt(_0x148fd9(0x160))/0x2*(parseInt(_0x148fd9(0x137))/0x3)+-parseInt(_0x148fd9(0x133))/0x4+parseInt(_0x148fd9(0x152))/0x5+parseInt(_0x148fd9(0x13c))/0x6*(parseInt(_0x148fd9(0x14e))/0x7)+parseInt(_0x148fd9(0x147))/0x8+-parseInt(_0x148fd9(0x167))/0x9;if(_0x1b8930===_0x10e45a)break;else _0x1e51b1['push'](_0x1e51b1['shift']());}catch(_0x1c0ac1){_0x1e51b1['push'](_0x1e51b1['shift']());}}}(_0x1cc9,0x9a8db));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';function _0x19e1(_0x26707f,_0x51716e){const _0x1cc97d=_0x1cc9();return _0x19e1=function(_0x19e137,_0x2832f9){_0x19e137=_0x19e137-0x12f;let _0x5e8f43=_0x1cc97d[_0x19e137];return _0x5e8f43;},_0x19e1(_0x26707f,_0x51716e);}import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';function _0x1cc9(){const _0x6be04=['setMsgEmojiLikes','wGvmS','IMIhF','tGqLE','getMultiMsg','getMsgsBySeqAndCount','tVpMU','elements','发送超时','542360WVxxLk','then','740218pcKOWb','fetchRecentContact','onAddSendMsg','KQxSe','bytesData','bfdbl','getMsgHistory','20351205tblsNN','Nsfsm','session','forwardMsg','onMsgInfoListUpdate','arkElement','getMsgsByMsgId','uid','转发消息超时','find','msgId','setMsgRead','tfQRe','recallMsg','671592fADBIe','nick','setEmojiLike','addListener','3OiGlqC','HTwPP','activateChatAndGetHistory','chatType','map','36PwXCcz','WvwxX','Bkehj','NfgvV','NjJUK','getMsgService','sendMsg','getMsgsIncludeSelf','senderUid','sendStatus','activateChat','4920656xrCpkB','QOScJ','onLoginSuccess','delete','parse','length','multiForwardMsg','1261967ebNbjo','peerUid','set','catch','5965875QyHpGi','xzjRL','multiForwardMsgWithComment'];_0x1cc9=function(){return _0x6be04;};return _0x1cc9();}const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener[_0x2fc698(0x162)]=_0x4ac392=>{const _0x251b87=_0x2fc698,_0x3d7eef={'IMIhF':function(_0x84f972,_0xe1dd7c){return _0x84f972 instanceof _0xe1dd7c;}};for(const [_0x5df5ef,_0x1724a6]of sentMsgTasks){_0x1724a6(_0x4ac392),sentMsgTasks[_0x251b87(0x14a)](_0x5df5ef);}if(sendMessagePool[_0x4ac392[_0x251b87(0x14f)]]){const _0x4a1437=sendMessagePool[_0x4ac392[_0x251b87(0x14f)]]?.(_0x4ac392);_0x3d7eef[_0x251b87(0x157)](_0x4a1437,Promise)&&_0x4a1437[_0x251b87(0x15f)]()['catch'](logError);}},msgListener[_0x2fc698(0x16b)]=_0xb419b7=>{const _0x581c54={'tfQRe':function(_0x49f786,_0x4e4ebb){return _0x49f786(_0x4e4ebb);}};_0xb419b7['forEach'](_0x384cae=>{const _0x3416d5=_0x19e1;new Promise((_0x5d6f35,_0x16b2ae)=>{const _0x5134a0=_0x19e1;for(const _0xae0645 in sendSuccessCBMap){const _0x218e63=sendSuccessCBMap[_0xae0645],_0x2120ad=_0x218e63(_0x384cae),_0x3ea2c6=_0x58d395=>{_0x58d395&&delete sendSuccessCBMap[_0xae0645];};_0x2120ad instanceof Promise?_0x2120ad['then'](_0x3ea2c6):_0x581c54[_0x5134a0(0x131)](_0x3ea2c6,_0x2120ad);}})['then']()[_0x3416d5(0x151)](log);});},setTimeout(()=>{const _0x359968=_0x2fc698;napCatCore[_0x359968(0x149)](()=>{const _0x29ddcb=_0x359968;napCatCore[_0x29ddcb(0x136)](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x2fc698(0x135)](_0x4830b5,_0x266c57,_0x3ed791,_0xe80d38=!![]){const _0x4a1309=_0x2fc698,_0x445ae1={'tVpMU':function(_0x2fe238,_0x491aab){return _0x2fe238>_0x491aab;}};return _0x3ed791=_0x3ed791['toString'](),napCatCore[_0x4a1309(0x169)][_0x4a1309(0x141)]()[_0x4a1309(0x155)](_0x4830b5,_0x266c57,_0x3ed791,_0x445ae1[_0x4a1309(0x15b)](_0x3ed791[_0x4a1309(0x14c)],0x3)?'2':'1',_0xe80d38);}static async[_0x2fc698(0x159)](_0x53032a,_0x55f1e7,_0x55fe6b){const _0xac4f61=_0x2fc698;return napCatCore[_0xac4f61(0x169)]['getMsgService']()['getMultiMsg'](_0x53032a,_0x55f1e7,_0x55fe6b);}static async[_0x2fc698(0x16d)](_0x1b61df,_0x48cc12){const _0x12c9aa=_0x2fc698;return await napCatCore[_0x12c9aa(0x169)][_0x12c9aa(0x141)]()[_0x12c9aa(0x16d)](_0x1b61df,_0x48cc12);}static async[_0x2fc698(0x15a)](_0x49358b,_0x105ed0,_0x42f24a,_0x21f42f,_0x5c34cf){const _0x2a9f97=_0x2fc698;return await napCatCore[_0x2a9f97(0x169)][_0x2a9f97(0x141)]()[_0x2a9f97(0x15a)](_0x49358b,_0x105ed0,_0x42f24a,_0x21f42f,_0x5c34cf);}static async[_0x2fc698(0x146)](_0xdb51c7){}static async[_0x2fc698(0x139)](_0x2b2f54){}static async[_0x2fc698(0x130)](_0x8a7204){const _0x3849df=_0x2fc698;return napCatCore[_0x3849df(0x169)]['getMsgService']()[_0x3849df(0x130)](_0x8a7204);}static async[_0x2fc698(0x166)](_0x5e5bcf,_0x224f5b,_0x1aefb2){const _0x180736=_0x2fc698;return napCatCore[_0x180736(0x169)][_0x180736(0x141)]()[_0x180736(0x143)](_0x5e5bcf,_0x224f5b,_0x1aefb2,!![]);}static async[_0x2fc698(0x161)](){}static async[_0x2fc698(0x132)](_0x3fd927,_0xdf73f8){const _0x5b900f=_0x2fc698;await napCatCore[_0x5b900f(0x169)]['getMsgService']()[_0x5b900f(0x132)]({'chatType':_0x3fd927[_0x5b900f(0x13a)],'peerUid':_0x3fd927[_0x5b900f(0x14f)]},_0xdf73f8);}static async[_0x2fc698(0x142)](_0x5858a0,_0x54be32,_0x4397ab=!![],_0x4a7c06=0x2710){const _0x3d2e2f=_0x2fc698,_0x249049={'wGvmS':function(_0x20aac6,_0x4483cb){return _0x20aac6>_0x4483cb;},'QOScJ':function(_0x40942d,_0x55cf13){return _0x40942d(_0x55cf13);},'Bkehj':function(_0x2338ef){return _0x2338ef();},'WvwxX':_0x3d2e2f(0x15d),'dSPXR':function(_0x1296ee,_0x65b2bb){return _0x1296ee===_0x65b2bb;}},_0x54d530=_0x5858a0[_0x3d2e2f(0x14f)];let _0x593ab3=0x0;const _0x37b58e=async()=>{const _0xb781bf=_0x3d2e2f;if(_0x249049[_0xb781bf(0x156)](_0x593ab3,_0x4a7c06))throw _0xb781bf(0x15d);const _0x37943d=sendMessagePool[_0x5858a0[_0xb781bf(0x14f)]];if(_0x37943d)return await _0x249049[_0xb781bf(0x148)](sleep,0x1f4),_0x593ab3+=0x1f4,await _0x249049[_0xb781bf(0x13e)](_0x37b58e);else return;};return await _0x249049[_0x3d2e2f(0x13e)](_0x37b58e),new Promise((_0x4765a7,_0x2e6b78)=>{const _0x129557=_0x3d2e2f,_0x48f77d={'bfdbl':function(_0x2d09f5,_0x38ddc6){return _0x249049['dSPXR'](_0x2d09f5,_0x38ddc6);},'xzjRL':function(_0x3267b2,_0x527696){return _0x3267b2(_0x527696);}};let _0x185681=![],_0x19cae9=null;const _0x10a01b=randomUUID();sendSuccessCBMap[_0x10a01b]=_0x24f173=>{const _0x54977c=_0x19e1;if(_0x48f77d[_0x54977c(0x165)](_0x24f173['msgId'],_0x19cae9?.[_0x54977c(0x12f)])){if(_0x48f77d['bfdbl'](_0x24f173[_0x54977c(0x145)],0x2))return delete sendSuccessCBMap[_0x10a01b],_0x185681=!![],_0x48f77d[_0x54977c(0x153)](_0x4765a7,_0x24f173),!![];return![];}return![];},sendMessagePool[_0x54d530]=async _0x11dd61=>{delete sendMessagePool[_0x54d530],_0x19cae9=_0x11dd61;},setTimeout(()=>{const _0x232a6b=_0x19e1;if(_0x185681)return;delete sendMessagePool[_0x54d530],delete sendSuccessCBMap[_0x10a01b],_0x2e6b78(_0x249049[_0x232a6b(0x13d)]);},_0x4a7c06);const _0x436b72=napCatCore[_0x129557(0x169)][_0x129557(0x141)]()[_0x129557(0x142)]('0',_0x5858a0,_0x54be32,new Map());});}static async[_0x2fc698(0x16a)](_0x179d54,_0x59cf69,_0x340e7e){const _0x41d8da=_0x2fc698;return napCatCore[_0x41d8da(0x169)][_0x41d8da(0x141)]()[_0x41d8da(0x16a)](_0x340e7e,_0x179d54,[_0x59cf69],new Map());}static async[_0x2fc698(0x14d)](_0x27459d,_0xa68a19,_0x332f14){const _0x59a5be=_0x2fc698,_0x3eb3d5={'Nsfsm':function(_0x16911a,_0x57a820){return _0x16911a!=_0x57a820;},'xxpQO':function(_0x5f13ef,_0x4f9770){return _0x5f13ef==_0x4f9770;},'eQicy':function(_0x595e7f,_0x2f236b){return _0x595e7f==_0x2f236b;},'tGqLE':function(_0x436c03,_0x3714a7){return _0x436c03(_0x3714a7);},'NfgvV':_0x59a5be(0x16f),'NjJUK':function(_0x450a7c){return _0x450a7c();},'KQxSe':function(_0x27003e,_0x1de025,_0x1e92d8){return _0x27003e(_0x1de025,_0x1e92d8);}},_0x2261b8=_0x332f14[_0x59a5be(0x13b)](_0x46d553=>{const _0x402a86=_0x59a5be;return{'msgId':_0x46d553,'senderShowName':selfInfo[_0x402a86(0x134)]};});return new Promise((_0x3f504c,_0x20817f)=>{const _0x1daf72=_0x59a5be,_0xba1659={'HTwPP':function(_0x3b34e0,_0x5216d2){const _0xa1c508=_0x19e1;return _0x3eb3d5[_0xa1c508(0x158)](_0x3b34e0,_0x5216d2);},'sJYNg':_0x3eb3d5[_0x1daf72(0x13f)]};let _0x234e61=![];const _0x151db5=_0x1a217f=>{const _0x3ec3e6=_0x1daf72,_0x1cc509=_0x1a217f[_0x3ec3e6(0x15c)][_0x3ec3e6(0x170)](_0x1a60aa=>_0x1a60aa[_0x3ec3e6(0x16c)]);if(!_0x1cc509)return;const _0x7252ba=JSON[_0x3ec3e6(0x14b)](_0x1cc509[_0x3ec3e6(0x16c)][_0x3ec3e6(0x164)]);if(_0x3eb3d5[_0x3ec3e6(0x168)](_0x7252ba['app'],'com.tencent.multimsg'))return;_0x3eb3d5['xxpQO'](_0x1a217f[_0x3ec3e6(0x14f)],_0xa68a19[_0x3ec3e6(0x14f)])&&_0x3eb3d5['eQicy'](_0x1a217f[_0x3ec3e6(0x144)],selfInfo[_0x3ec3e6(0x16e)])&&(_0x234e61=!![],_0x3f504c(_0x1a217f));};sentMsgTasks[_0x1daf72(0x150)](_0x3eb3d5[_0x1daf72(0x140)](randomUUID),_0x151db5),_0x3eb3d5[_0x1daf72(0x163)](setTimeout,()=>{const _0x337a2c=_0x1daf72;!_0x234e61&&_0xba1659[_0x337a2c(0x138)](_0x20817f,_0xba1659['sJYNg']);},0x1388),napCatCore[_0x1daf72(0x169)][_0x1daf72(0x141)]()[_0x1daf72(0x154)](_0x2261b8,_0x27459d,_0xa68a19,[],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 2e813198..9fd16c0b 100644 --- a/src/core.lib/src/apis/sign.js +++ b/src/core.lib/src/apis/sign.js @@ -1 +1 @@ -function _0x4bf0(){var _0xc8bdf0=['url','DHeek','application/json','json','714112SKymlk','vAJKS','3553860Kairpq','kuBkT','3498eOBDHt','statusText','14245IOvpjN','stringify','1125386GUVpoP','catch','6992MLNckJ','then','41819670btLKPX','eIVoQ','音乐消息生成成功','10jXFPSU','kRlIA','951644lGwJaS','POST','sign','6021JpZfri','NtMGh'];_0x4bf0=function(){return _0xc8bdf0;};return _0x4bf0();}function _0x2326(_0x5d399a,_0x1332eb){var _0x4bf00a=_0x4bf0();return _0x2326=function(_0x23262b,_0x55b729){_0x23262b=_0x23262b-0xc4;var _0x10e2c4=_0x4bf00a[_0x23262b];return _0x10e2c4;},_0x2326(_0x5d399a,_0x1332eb);}var _0x14a1a5=_0x2326;(function(_0x3393f9,_0x574ec2){var _0x1ccd80=_0x2326,_0x56d772=_0x3393f9();while(!![]){try{var _0x4974f8=-parseInt(_0x1ccd80(0xce))/0x1+-parseInt(_0x1ccd80(0xd6))/0x2+-parseInt(_0x1ccd80(0xd0))/0x3+-parseInt(_0x1ccd80(0xc5))/0x4*(parseInt(_0x1ccd80(0xdd))/0x5)+parseInt(_0x1ccd80(0xd2))/0x6*(-parseInt(_0x1ccd80(0xd4))/0x7)+parseInt(_0x1ccd80(0xd8))/0x8*(parseInt(_0x1ccd80(0xc8))/0x9)+parseInt(_0x1ccd80(0xda))/0xa;if(_0x4974f8===_0x574ec2)break;else _0x56d772['push'](_0x56d772['shift']());}catch(_0x9be71d){_0x56d772['push'](_0x56d772['shift']());}}}(_0x4bf0,0x9cfcd));import{logDebug}from'@/common/utils/log';export class MusicSign{['url'];constructor(_0x6f8962){var _0x5f4664=_0x2326;this[_0x5f4664(0xca)]=_0x6f8962;}[_0x14a1a5(0xc7)](_0x3c8f72){var _0x3df22c=_0x14a1a5,_0x48d366={'eIVoQ':function(_0x103137,_0x24ab37){return _0x103137(_0x24ab37);},'kuBkT':function(_0x2abb62,_0x4221a0,_0x1a364f){return _0x2abb62(_0x4221a0,_0x1a364f);},'vAJKS':_0x3df22c(0xc6),'kRlIA':_0x3df22c(0xcc)};return new Promise((_0x7337e4,_0x113457)=>{var _0x424afa=_0x3df22c,_0x98306c={'NtMGh':function(_0x159002,_0x368441){var _0x51687c=_0x2326;return _0x48d366[_0x51687c(0xdb)](_0x159002,_0x368441);},'DHeek':function(_0x7b8901,_0xd8aa82,_0x4fbe1c){return _0x7b8901(_0xd8aa82,_0x4fbe1c);},'JzUsN':_0x424afa(0xdc),'jZBqp':function(_0x5cf70b,_0x257669){return _0x5cf70b(_0x257669);}};_0x48d366[_0x424afa(0xd1)](fetch,this[_0x424afa(0xca)],{'method':_0x48d366[_0x424afa(0xcf)],'headers':{'Content-Type':_0x48d366[_0x424afa(0xc4)]},'body':JSON[_0x424afa(0xd5)](_0x3c8f72)})['then'](_0x3cc84f=>{var _0x36b624=_0x424afa;return!_0x3cc84f['ok']&&_0x98306c[_0x36b624(0xc9)](_0x113457,_0x3cc84f[_0x36b624(0xd3)]),_0x3cc84f[_0x36b624(0xcd)]();})[_0x424afa(0xd9)](_0x5a2324=>{var _0x44c544=_0x424afa;_0x98306c[_0x44c544(0xcb)](logDebug,_0x98306c['JzUsN'],_0x5a2324),_0x98306c['jZBqp'](_0x7337e4,_0x5a2324);})[_0x424afa(0xd7)](_0x2c7721=>{_0x113457(_0x2c7721);});});}} \ No newline at end of file +var _0x51c532=_0x2ca7;(function(_0x1c3ae2,_0x884be1){var _0x4be00f=_0x2ca7,_0x97d9c0=_0x1c3ae2();while(!![]){try{var _0x12c0e1=-parseInt(_0x4be00f(0x1ec))/0x1+parseInt(_0x4be00f(0x1e8))/0x2+-parseInt(_0x4be00f(0x1f1))/0x3+parseInt(_0x4be00f(0x1ef))/0x4*(parseInt(_0x4be00f(0x1ea))/0x5)+-parseInt(_0x4be00f(0x1f6))/0x6*(parseInt(_0x4be00f(0x1f9))/0x7)+parseInt(_0x4be00f(0x1fd))/0x8*(parseInt(_0x4be00f(0x1fa))/0x9)+-parseInt(_0x4be00f(0x1fe))/0xa*(-parseInt(_0x4be00f(0x1ee))/0xb);if(_0x12c0e1===_0x884be1)break;else _0x97d9c0['push'](_0x97d9c0['shift']());}catch(_0x34a9e9){_0x97d9c0['push'](_0x97d9c0['shift']());}}}(_0xd76e,0x58668));function _0xd76e(){var _0xcf108a=['6lrOBby','wWGeP','json','3596887NrTjVp','652590TMLmjB','VUKLq','sign','24HIjTNk','1160eAURhn','音乐消息生成成功','lTbzv','catch','358270YyOSOH','POST','426335ITrMnI','CXmEn','135665wIplEO','JsUox','57387GABVDx','16qjxIcD','RnWRS','993933lLGbNu','then','statusText','stringify','url'];_0xd76e=function(){return _0xcf108a;};return _0xd76e();}import{logDebug}from'@/common/utils/log';function _0x2ca7(_0x2182d5,_0x5dd7df){var _0xd76eae=_0xd76e();return _0x2ca7=function(_0x2ca7f5,_0xb6936d){_0x2ca7f5=_0x2ca7f5-0x1e6;var _0x3abbf4=_0xd76eae[_0x2ca7f5];return _0x3abbf4;},_0x2ca7(_0x2182d5,_0x5dd7df);}export class MusicSign{['url'];constructor(_0x48f057){var _0xa6318d=_0x2ca7;this[_0xa6318d(0x1f5)]=_0x48f057;}[_0x51c532(0x1fc)](_0x89479b){var _0x403596=_0x51c532,_0x5e9a2c={'lFUVq':function(_0x102c60,_0x5b2b94){return _0x102c60(_0x5b2b94);},'wWGeP':function(_0x4879d5,_0x51eaa5,_0x5d38e4){return _0x4879d5(_0x51eaa5,_0x5d38e4);},'CXmEn':_0x403596(0x1ff),'VUKLq':function(_0x35acf3,_0x5f05f0){return _0x35acf3(_0x5f05f0);},'JsUox':function(_0x2a3b62,_0x473e21){return _0x2a3b62(_0x473e21);},'lTbzv':_0x403596(0x1e9),'PGjZW':'application/json'};return new Promise((_0x3aec59,_0x417fcf)=>{var _0x320281=_0x403596,_0x4a5e70={'RnWRS':function(_0x51025c,_0x201bfa){var _0x347180=_0x2ca7;return _0x5e9a2c[_0x347180(0x1ed)](_0x51025c,_0x201bfa);}};_0x5e9a2c[_0x320281(0x1f7)](fetch,this[_0x320281(0x1f5)],{'method':_0x5e9a2c[_0x320281(0x1e6)],'headers':{'Content-Type':_0x5e9a2c['PGjZW']},'body':JSON[_0x320281(0x1f4)](_0x89479b)})['then'](_0x12a848=>{var _0x43c0e1=_0x320281;return!_0x12a848['ok']&&_0x5e9a2c['lFUVq'](_0x417fcf,_0x12a848[_0x43c0e1(0x1f3)]),_0x12a848[_0x43c0e1(0x1f8)]();})[_0x320281(0x1f2)](_0x4a77dc=>{var _0x5f29f6=_0x320281;_0x5e9a2c[_0x5f29f6(0x1f7)](logDebug,_0x5e9a2c[_0x5f29f6(0x1eb)],_0x4a77dc),_0x5e9a2c[_0x5f29f6(0x1fb)](_0x3aec59,_0x4a77dc);})[_0x320281(0x1e7)](_0x10c77c=>{var _0x33750e=_0x320281;_0x4a5e70[_0x33750e(0x1f0)](_0x417fcf,_0x10c77c);});});}} \ 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 230e8b5e..688851dc 100644 --- a/src/core.lib/src/apis/user.js +++ b/src/core.lib/src/apis/user.js @@ -1 +1 @@ -function _0x53de(){const _0x3b1f87=['https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','robotUinRanges','9860942XCYCHQ','errMsg','result','fmsxg','onLoginSuccess','getPSkey','khmTG','6igKXrz','getRobotService','assign','now','tUiZn','5712800nmjJQb','setHeader','ggyPH','entries','length','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','CreatTime','addListener','28071TmcSPJ','Skey','getRobotUinRange','KpNAi','getProfileLikeService','getUserDetailInfo\x20timeout','16kCgBHS','iPZaw','getPskey','get','push','2586681gIgITj','set','getUserInfo','&clientkey=','like','QgvRQ','getUserDetailInfoWithBizInfo','forEach','setBuddyProfileLike','session','delete','domainPskeyMap','rbLHL','getProfileService','setStatus','getSelfInfo','PskeyTime','eveQP','nJWMQ','PskeyData','VkcJE','kpiKR','uDjvL','866945VCICzS','forceFetchClientKey','1364419diAKma','setSelfOnlineStatus','50xRxWqv','getMsgService','getTicketService','fDgwS','mWRoT','rzsON','32332850sYYBbK','response','fromEntries','FyUIt'];_0x53de=function(){return _0x3b1f87;};return _0x53de();}const _0x4e1d2a=_0x16f7;(function(_0x4e8ed4,_0x540b5f){const _0xfb6322=_0x16f7,_0x417612=_0x4e8ed4();while(!![]){try{const _0x16bbb4=parseInt(_0xfb6322(0x1a5))/0x1+parseInt(_0xfb6322(0x1a7))/0x2*(parseInt(_0xfb6322(0x1c7))/0x3)+parseInt(_0xfb6322(0x1bf))/0x4+-parseInt(_0xfb6322(0x1a3))/0x5*(-parseInt(_0xfb6322(0x1ba))/0x6)+parseInt(_0xfb6322(0x1b3))/0x7+-parseInt(_0xfb6322(0x1cd))/0x8*(parseInt(_0xfb6322(0x1d2))/0x9)+-parseInt(_0xfb6322(0x1ad))/0xa;if(_0x16bbb4===_0x540b5f)break;else _0x417612['push'](_0x417612['shift']());}catch(_0x20b8d0){_0x417612['push'](_0x417612['shift']());}}}(_0x53de,0xc3718));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';import{logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener['onProfileDetailInfoChanged']=_0x15cf5c=>{const _0x40ea3f=_0x16f7;userInfoCache[_0x15cf5c['uid']]=_0x15cf5c,userDetailHandlers[_0x40ea3f(0x1d9)](_0x4b656b=>_0x4b656b(_0x15cf5c));},setTimeout(()=>{const _0x1982d7=_0x16f7;napCatCore[_0x1982d7(0x1b7)](()=>{const _0x40f3d1=_0x1982d7;napCatCore[_0x40f3d1(0x1c6)](profileListener);});},0x64);function _0x16f7(_0x39e026,_0x4af8e8){const _0x53de9b=_0x53de();return _0x16f7=function(_0x16f723,_0x1d5e4b){_0x16f723=_0x16f723-0x1a2;let _0x526311=_0x53de9b[_0x16f723];return _0x526311;},_0x16f7(_0x39e026,_0x4af8e8);}export class NTQQUserApi{static async[_0x4e1d2a(0x1a6)](_0x23a1d5,_0x3a7242,_0x1efd43){const _0x3206e4=_0x4e1d2a;return napCatCore[_0x3206e4(0x1db)][_0x3206e4(0x1a8)]()[_0x3206e4(0x1e0)]({'status':_0x23a1d5,'extStatus':_0x3a7242,'batteryStatus':_0x1efd43});}static async[_0x4e1d2a(0x1d6)](_0x1ad548,_0x5da610=0x1){const _0x1d7466=_0x4e1d2a;return napCatCore[_0x1d7466(0x1db)][_0x1d7466(0x1cb)]()[_0x1d7466(0x1da)]({'friendUid':_0x1ad548,'sourceId':0x47,'doLikeCount':_0x5da610,'doLikeTollCount':0x0});}static async['setQQAvatar'](_0x33080b){const _0x5abc75=_0x4e1d2a,_0x2efb5b=napCatCore[_0x5abc75(0x1db)][_0x5abc75(0x1df)]()[_0x5abc75(0x1c0)](_0x33080b);return{'result':_0x2efb5b?.[_0x5abc75(0x1b5)],'errMsg':_0x2efb5b?.[_0x5abc75(0x1b4)]};}static async[_0x4e1d2a(0x1e1)](){}static async[_0x4e1d2a(0x1d4)](_0x1c9ee3){}static async['getUserDetailInfo'](_0x1ae77a){const _0x3a81d8=_0x4e1d2a,_0x1da7ee={'VkcJE':function(_0x4ee7e5,_0x251f02){return _0x4ee7e5(_0x251f02);},'MsxmI':_0x3a81d8(0x1cc),'iPZaw':function(_0x23dfdb){return _0x23dfdb();},'tUiZn':function(_0x1a6b52,_0xe57bb7,_0x10a62c){return _0x1a6b52(_0xe57bb7,_0x10a62c);}},_0x575fcf=napCatCore['session'][_0x3a81d8(0x1df)]();return new Promise((_0x3612c1,_0x51e835)=>{const _0x492cdc=_0x3a81d8,_0x318b0a=_0x1da7ee[_0x492cdc(0x1ce)](randomUUID);let _0x15d607=![];_0x1da7ee[_0x492cdc(0x1be)](setTimeout,()=>{const _0x162fe2=_0x492cdc;!_0x15d607&&_0x1da7ee[_0x162fe2(0x1e6)](_0x51e835,_0x1da7ee['MsxmI']);},0x1388),userDetailHandlers[_0x492cdc(0x1d3)](_0x318b0a,_0x46bafa=>{const _0x38312d=_0x492cdc;_0x46bafa['uid']===_0x1ae77a&&(_0x15d607=!![],userDetailHandlers[_0x38312d(0x1dc)](_0x318b0a),_0x1da7ee[_0x38312d(0x1e6)](_0x3612c1,_0x46bafa));}),_0x575fcf[_0x492cdc(0x1d8)](_0x1ae77a,[0x0])['then'](_0x5803fd=>{});});}static async[_0x4e1d2a(0x1b8)](_0x44da40,_0x32a146=!![]){const _0x3284a0=_0x4e1d2a,_0x2e9889={'ggyPH':function(_0x4cd546,_0xe5327f){return _0x4cd546>_0xe5327f;},'rzsON':function(_0x32351e,_0x5c78ea){return _0x32351e-_0x5c78ea;},'QgvRQ':function(_0xe4313e,_0x541bed){return _0xe4313e*_0x541bed;},'kpiKR':function(_0x16fb29,_0x505d6c){return _0x16fb29>_0x505d6c;},'khmTG':function(_0x57fa11,_0x35886b){return _0x57fa11===_0x35886b;},'FyUIt':function(_0x2404f4,_0x28d2ae,_0x11131b){return _0x2404f4(_0x28d2ae,_0x11131b);},'ULXeu':'获取Pskey失败'};let _0xe00eff=[],_0x46e3e9={};for(let _0x278c33 in _0x44da40){let _0x2761b9=Credentials[_0x3284a0(0x1e5)][_0x3284a0(0x1d0)](_0x44da40[_0x278c33]),_0x1fabf1=Credentials[_0x3284a0(0x1e2)][_0x3284a0(0x1d0)](_0x44da40[_0x278c33]);!_0x2761b9||!_0x1fabf1||_0x2e9889[_0x3284a0(0x1c1)](_0x2e9889[_0x3284a0(0x1ac)](Date['now'](),_0x1fabf1),_0x2e9889[_0x3284a0(0x1d7)](0x708,0x3e8))||!_0x32a146?_0xe00eff[_0x3284a0(0x1d1)](_0x44da40[_0x278c33]):_0x46e3e9[_0x44da40[_0x278c33]]=_0x2761b9;}let _0x3eb03f={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x2e9889[_0x3284a0(0x1e7)](_0xe00eff[_0x3284a0(0x1c3)],0x0)&&(_0x3eb03f=await napCatCore['session']['getTipOffService']()[_0x3284a0(0x1cf)](_0xe00eff,!![]));let _0x26e3a4=_0x3eb03f[_0x3284a0(0x1dd)];for(let _0x577f62 of _0x26e3a4[_0x3284a0(0x1c2)]()){Credentials['PskeyData'][_0x3284a0(0x1d3)](_0x577f62[0x0],_0x577f62[0x1]),Credentials['PskeyTime'][_0x3284a0(0x1d3)](_0x577f62[0x0],Date[_0x3284a0(0x1bd)]());}let _0x59b3e8=Object[_0x3284a0(0x1bc)](Object[_0x3284a0(0x1af)](_0x26e3a4),_0x46e3e9);if(_0x2e9889[_0x3284a0(0x1b9)](_0x3eb03f['result'],0x0))return _0x59b3e8;else _0x2e9889[_0x3284a0(0x1b0)](logError,_0x2e9889['ULXeu'],_0x3eb03f['errMsg']);return{};}static async['getRobotUinRange'](){const _0x3c8572=_0x4e1d2a,_0x18c839=await napCatCore[_0x3c8572(0x1db)][_0x3c8572(0x1bb)]()[_0x3c8572(0x1c9)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x18c839?.[_0x3c8572(0x1ae)]?.[_0x3c8572(0x1b2)];}static async['getSkey'](_0x55d27e=!![]){const _0x4c5f5c=_0x4e1d2a,_0x390651={'mWRoT':function(_0x5173a9,_0x56b6c7){return _0x5173a9==_0x56b6c7;},'hHLFA':function(_0x2aef7d,_0x13092f){return _0x2aef7d*_0x13092f;},'fDgwS':function(_0x2e32f4,_0x59de9f){return _0x2e32f4!==_0x59de9f;},'rbLHL':function(_0x226482,_0x435e33){return _0x226482+_0x435e33;},'nJWMQ':function(_0x15f3ec,_0x1c4eb3){return _0x15f3ec+_0x1c4eb3;},'KpNAi':_0x4c5f5c(0x1b1),'uDjvL':_0x4c5f5c(0x1d5),'fmsxg':_0x4c5f5c(0x1c4),'yDJio':function(_0x44ef4b,_0x1c3617){return _0x44ef4b(_0x1c3617);},'eveQP':'skey'};try{if(_0x390651[_0x4c5f5c(0x1ab)](Credentials['CreatTime'],0x0)||Date[_0x4c5f5c(0x1bd)]()-Credentials[_0x4c5f5c(0x1c5)]>_0x390651['hHLFA'](0x3e8,0xe10)||!_0x55d27e){const _0x17b4ce=await napCatCore[_0x4c5f5c(0x1db)][_0x4c5f5c(0x1a9)]()[_0x4c5f5c(0x1a4)]('');if(_0x390651[_0x4c5f5c(0x1aa)](_0x17b4ce[_0x4c5f5c(0x1b5)],0x0))return'';const _0x5cd724=_0x17b4ce['clientKey'],_0x342743=_0x17b4ce['keyIndex'],_0x4ab8e8=_0x390651[_0x4c5f5c(0x1de)](_0x390651[_0x4c5f5c(0x1e4)](_0x390651[_0x4c5f5c(0x1ca)]+selfInfo['uin']+_0x390651[_0x4c5f5c(0x1a2)],_0x5cd724),_0x390651[_0x4c5f5c(0x1b6)])+_0x342743,_0x3e0570=await _0x390651['yDJio'](HttpGetCookies,_0x4ab8e8),_0x49bf38=_0x3e0570[_0x4c5f5c(0x1d0)](_0x390651[_0x4c5f5c(0x1e3)]);if(!_0x49bf38)return'';return Credentials['CreatTime']=Date[_0x4c5f5c(0x1bd)](),Credentials[_0x4c5f5c(0x1c8)]=_0x49bf38,_0x49bf38;}return Credentials['Skey'];}catch(_0x5e7c08){}return undefined;}} \ No newline at end of file +function _0x1268(_0x47b728,_0x58721f){const _0x3c9b9a=_0x3c9b();return _0x1268=function(_0x126806,_0x565c63){_0x126806=_0x126806-0x112;let _0x5a24c7=_0x3c9b9a[_0x126806];return _0x5a24c7;},_0x1268(_0x47b728,_0x58721f);}const _0x1e05b2=_0x1268;(function(_0x5178fb,_0x255ff2){const _0x56347f=_0x1268,_0x3743df=_0x5178fb();while(!![]){try{const _0x499152=parseInt(_0x56347f(0x12f))/0x1*(-parseInt(_0x56347f(0x140))/0x2)+parseInt(_0x56347f(0x141))/0x3+-parseInt(_0x56347f(0x11f))/0x4*(parseInt(_0x56347f(0x11a))/0x5)+-parseInt(_0x56347f(0x119))/0x6*(parseInt(_0x56347f(0x129))/0x7)+parseInt(_0x56347f(0x142))/0x8+parseInt(_0x56347f(0x150))/0x9*(parseInt(_0x56347f(0x133))/0xa)+parseInt(_0x56347f(0x144))/0xb;if(_0x499152===_0x255ff2)break;else _0x3743df['push'](_0x3743df['shift']());}catch(_0x5928d4){_0x3743df['push'](_0x3743df['shift']());}}}(_0x3c9b,0xe3312));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';import{logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();function _0x3c9b(){const _0x387c6a=['7256040mTanOC','ubrdv','24098767MuXdzh','delete','onLoginSuccess','vYjdI','Rcbmz','yITkX','setBuddyProfileLike','GXHDd','getTipOffService','getMsgService','then','FgWVX','45Jqkhse','push','session','wPmrX','getUserDetailInfoWithBizInfo','fromEntries','tVpPG','uin','&clientkey=','now','skey','OljyA','fmtHE','6ifMVXR','38300jdNTxb','addListener','Nljfi','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','PskeyData','496zHUHuu','getRobotUinRange','getPskey','FBoLj','setSelfOnlineStatus','get','assign','getProfileService','Skey','errMsg','5351542FlJOyO','getUserDetailInfo','setQQAvatar','uid','getRobotService','set','4211YQuYfX','getUserDetailInfo\x20timeout','onProfileDetailInfoChanged','gGDHW','318970XcKLVy','domainPskeyMap','getProfileLikeService','PskeyTime','eObFA','HnPMD','result','entries','forceFetchClientKey','CreatTime','getTicketService','forEach','getSkey','338AbUoBV','297888gsHgoX'];_0x3c9b=function(){return _0x387c6a;};return _0x3c9b();}profileListener[_0x1e05b2(0x131)]=_0xa448d0=>{const _0x51c36c=_0x1e05b2;userInfoCache[_0xa448d0[_0x51c36c(0x12c)]]=_0xa448d0,userDetailHandlers[_0x51c36c(0x13e)](_0x1eceac=>_0x1eceac(_0xa448d0));},setTimeout(()=>{const _0xde98fc=_0x1e05b2;napCatCore[_0xde98fc(0x146)](()=>{const _0x3722af=_0xde98fc;napCatCore[_0x3722af(0x11b)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x1e05b2(0x123)](_0x5e4d80,_0x38fb21,_0x5da485){const _0x50cdd0=_0x1e05b2;return napCatCore[_0x50cdd0(0x152)][_0x50cdd0(0x14d)]()['setStatus']({'status':_0x5e4d80,'extStatus':_0x38fb21,'batteryStatus':_0x5da485});}static async['like'](_0x2ff256,_0x286930=0x1){const _0x281551=_0x1e05b2;return napCatCore[_0x281551(0x152)][_0x281551(0x135)]()[_0x281551(0x14a)]({'friendUid':_0x2ff256,'sourceId':0x47,'doLikeCount':_0x286930,'doLikeTollCount':0x0});}static async[_0x1e05b2(0x12b)](_0x189fd0){const _0xe3d99a=_0x1e05b2,_0x4a4283=napCatCore[_0xe3d99a(0x152)]['getProfileService']()['setHeader'](_0x189fd0);return{'result':_0x4a4283?.['result'],'errMsg':_0x4a4283?.[_0xe3d99a(0x128)]};}static async['getSelfInfo'](){}static async['getUserInfo'](_0x4b5a6c){}static async[_0x1e05b2(0x12a)](_0x3dd7cb){const _0x59f6a0=_0x1e05b2,_0x101aa6={'ubrdv':_0x59f6a0(0x130),'lonSM':function(_0x1ce0b1,_0x20ae99){return _0x1ce0b1===_0x20ae99;},'Ztzjz':function(_0x42c39e,_0x506484,_0x4f6846){return _0x42c39e(_0x506484,_0x4f6846);}},_0x2f194b=napCatCore[_0x59f6a0(0x152)][_0x59f6a0(0x126)]();return new Promise((_0x2db17,_0x280df5)=>{const _0x5aea0a=_0x59f6a0,_0x21dfde={'gGDHW':function(_0x35ba27,_0x456876){return _0x35ba27(_0x456876);},'yITkX':_0x101aa6[_0x5aea0a(0x143)],'CZshh':function(_0x41b231,_0x2b8d1d){return _0x101aa6['lonSM'](_0x41b231,_0x2b8d1d);}},_0x4fc382=randomUUID();let _0x36f1a6=![];_0x101aa6['Ztzjz'](setTimeout,()=>{const _0x41019=_0x5aea0a;!_0x36f1a6&&_0x21dfde['gGDHW'](_0x280df5,_0x21dfde[_0x41019(0x149)]);},0x1388),userDetailHandlers[_0x5aea0a(0x12e)](_0x4fc382,_0x408aab=>{const _0x41ac11=_0x5aea0a;_0x21dfde['CZshh'](_0x408aab[_0x41ac11(0x12c)],_0x3dd7cb)&&(_0x36f1a6=!![],userDetailHandlers[_0x41ac11(0x145)](_0x4fc382),_0x21dfde[_0x41ac11(0x132)](_0x2db17,_0x408aab));}),_0x2f194b[_0x5aea0a(0x154)](_0x3dd7cb,[0x0])[_0x5aea0a(0x14e)](_0x233020=>{});});}static async['getPSkey'](_0x231a8a,_0x325c27=!![]){const _0x83b220=_0x1e05b2,_0x31eef8={'GXHDd':function(_0x323a9a,_0x20d2f8){return _0x323a9a||_0x20d2f8;},'vYjdI':function(_0x107e26,_0x342d94){return _0x107e26>_0x342d94;},'Rcbmz':function(_0x47418e,_0x57ce31){return _0x47418e-_0x57ce31;},'Nljfi':function(_0x39db11,_0x17b213){return _0x39db11>_0x17b213;},'wPmrX':function(_0x18bcb1,_0x26e418,_0x3b31e1){return _0x18bcb1(_0x26e418,_0x3b31e1);},'fmtHE':'获取Pskey失败'};let _0x593246=[],_0x51bb6e={};for(let _0x551b58 in _0x231a8a){let _0x2c3d60=Credentials[_0x83b220(0x11e)]['get'](_0x231a8a[_0x551b58]),_0x923218=Credentials['PskeyTime'][_0x83b220(0x124)](_0x231a8a[_0x551b58]);_0x31eef8[_0x83b220(0x14b)](!_0x2c3d60,!_0x923218)||_0x31eef8[_0x83b220(0x147)](_0x31eef8[_0x83b220(0x148)](Date[_0x83b220(0x115)](),_0x923218),0x708*0x3e8)||!_0x325c27?_0x593246[_0x83b220(0x151)](_0x231a8a[_0x551b58]):_0x51bb6e[_0x231a8a[_0x551b58]]=_0x2c3d60;}let _0x561e90={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x31eef8[_0x83b220(0x11c)](_0x593246['length'],0x0)&&(_0x561e90=await napCatCore[_0x83b220(0x152)][_0x83b220(0x14c)]()[_0x83b220(0x121)](_0x593246,!![]));let _0x397a71=_0x561e90[_0x83b220(0x134)];for(let _0x5d6fc2 of _0x397a71[_0x83b220(0x13a)]()){Credentials[_0x83b220(0x11e)][_0x83b220(0x12e)](_0x5d6fc2[0x0],_0x5d6fc2[0x1]),Credentials[_0x83b220(0x136)][_0x83b220(0x12e)](_0x5d6fc2[0x0],Date[_0x83b220(0x115)]());}let _0x6abf2e=Object[_0x83b220(0x125)](Object[_0x83b220(0x155)](_0x397a71),_0x51bb6e);if(_0x561e90[_0x83b220(0x139)]===0x0)return _0x6abf2e;else _0x31eef8[_0x83b220(0x153)](logError,_0x31eef8[_0x83b220(0x118)],_0x561e90[_0x83b220(0x128)]);return{};}static async[_0x1e05b2(0x120)](){const _0x3f5741=_0x1e05b2,_0x4ee1cb=await napCatCore[_0x3f5741(0x152)][_0x3f5741(0x12d)]()['getRobotUinRange']({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x4ee1cb?.['response']?.['robotUinRanges'];}static async[_0x1e05b2(0x13f)](_0x5628e4=!![]){const _0xf2c501=_0x1e05b2,_0x870672={'OljyA':function(_0x937450,_0x84be96){return _0x937450>_0x84be96;},'eObFA':function(_0x5bfc26,_0x4b15f5){return _0x5bfc26+_0x4b15f5;},'tVpPG':function(_0x5ca45e,_0x4e80fc){return _0x5ca45e+_0x4e80fc;},'FgWVX':'https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','YyaMN':_0xf2c501(0x114),'FBoLj':_0xf2c501(0x11d),'HnPMD':function(_0x5d5212,_0x67a8c7){return _0x5d5212(_0x67a8c7);},'fpIEt':_0xf2c501(0x116)};try{if(Credentials[_0xf2c501(0x13c)]==0x0||_0x870672[_0xf2c501(0x117)](Date[_0xf2c501(0x115)]()-Credentials['CreatTime'],0x3e8*0xe10)||!_0x5628e4){const _0x1cf6c1=await napCatCore[_0xf2c501(0x152)][_0xf2c501(0x13d)]()[_0xf2c501(0x13b)]('');if(_0x1cf6c1[_0xf2c501(0x139)]!==0x0)return'';const _0x2429d5=_0x1cf6c1['clientKey'],_0x45838c=_0x1cf6c1['keyIndex'],_0x1d7a96=_0x870672[_0xf2c501(0x137)](_0x870672[_0xf2c501(0x112)](_0x870672['tVpPG'](_0x870672['eObFA'](_0x870672[_0xf2c501(0x14f)]+selfInfo[_0xf2c501(0x113)],_0x870672['YyaMN']),_0x2429d5),_0x870672[_0xf2c501(0x122)]),_0x45838c),_0x1d9a38=await _0x870672[_0xf2c501(0x138)](HttpGetCookies,_0x1d7a96),_0x3abbc9=_0x1d9a38[_0xf2c501(0x124)](_0x870672['fpIEt']);if(!_0x3abbc9)return'';return Credentials['CreatTime']=Date['now'](),Credentials[_0xf2c501(0x127)]=_0x3abbc9,_0x3abbc9;}return Credentials[_0xf2c501(0x127)];}catch(_0x46818b){}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 8af6f499..5f81dea9 100644 --- a/src/core.lib/src/apis/webapi.js +++ b/src/core.lib/src/apis/webapi.js @@ -1 +1 @@ -const _0x253a11=_0x34d8;(function(_0x58cc5c,_0x12a168){const _0x298f28=_0x34d8,_0x4fabdc=_0x58cc5c();while(!![]){try{const _0x376939=-parseInt(_0x298f28(0x172))/0x1*(-parseInt(_0x298f28(0x10a))/0x2)+parseInt(_0x298f28(0x10f))/0x3*(-parseInt(_0x298f28(0x11e))/0x4)+parseInt(_0x298f28(0x118))/0x5+-parseInt(_0x298f28(0x104))/0x6*(parseInt(_0x298f28(0x12a))/0x7)+parseInt(_0x298f28(0x160))/0x8*(-parseInt(_0x298f28(0x171))/0x9)+parseInt(_0x298f28(0x16d))/0xa+-parseInt(_0x298f28(0x13e))/0xb;if(_0x376939===_0x12a168)break;else _0x4fabdc['push'](_0x4fabdc['shift']());}catch(_0x4ce824){_0x4fabdc['push'](_0x4fabdc['shift']());}}}(_0x4854,0x4eb15));import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';function _0x4854(){const _0x3f5c1c=['YHdoH','fKPTI','&sort=1&gc=','getSkey','BYexL',';\x20skey=','tmeac','2622045PlexPc','WrcQU','OMnZT','application/x-www-form-urlencoded','jcXGj','toString','12916CxgQQs','sfJAg','WMAUR','DFIaN',';\x20p_uin=o','json','CRnIq','TUyuU','uSaHx','mems','httpDataJson','getGrouptNotice','61201PSFAoY','KercQ','count','hHuRH','Gcrie','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','set','rhvmP','tAOuJ','p_skey=','retcode','ysSKB','text','AZBVt','VFuhl','&group_code=','&page_start=','yTXpN','POST','uin','5779499bhjePF','YuLuR','EYrtS','qun.qq.com','COYuZ','eNIot','dcYev','ceil','qrBdE','getPSkey','getGroupEssenceMsg','pIaPi','NWfzN','WmPnN','HXeFN','DWQkX','VBdHR','now','ROaKL','nqMfh','oPbdq','VDIxv','webapi\x20获取群成员','KGKSX','&page_limit=20','Hizpm','push','aOWPC','sRaak','GroupTime','QmSdE',';\x20uin=o','arRso','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','330224bQDihl','errcode','qid=','httpDataText','get','oRqxM','Kuzyb','uRuTv','oKEsZ','onFJM','GET','sjovS','IhDTm','2480140CQDSQA','&end=','genBkn','uFBja','63NeXfhJ','437033CzfGbF','wHjMW','gKUIb','BvGBM','30aAcqfF','GroupData','tfxKq','sSFtu','nlcFJ','gObLd','2xcJWHs','Gdmbn','uChOL','HEAD','DjYYt','27pucnIR','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn='];_0x4854=function(){return _0x3f5c1c;};return _0x4854();}function _0x34d8(_0x542389,_0x124f16){const _0x4854b3=_0x4854();return _0x34d8=function(_0x34d864,_0x565b84){_0x34d864=_0x34d864-0x104;let _0x1f3625=_0x4854b3[_0x34d864];return _0x1f3625;},_0x34d8(_0x542389,_0x124f16);}export class WebApi{static async[_0x253a11(0x148)](_0x51e6a1,_0x437baa){const _0x5b0df9=_0x253a11,_0x2a6b1c={'nqMfh':_0x5b0df9(0x141),'BYexL':function(_0x50b54f,_0xf8690){return _0x50b54f+_0xf8690;},'oKEsZ':function(_0xe5d24f,_0x4404f3){return _0xe5d24f+_0x4404f3;},'KgKgk':';\x20skey=','IhDTm':_0x5b0df9(0x122),'oDvtG':_0x5b0df9(0x15d),'HXeFN':function(_0x30788b,_0x4acf49){return _0x30788b||_0x4acf49;},'VDIxv':function(_0x286994,_0xdf0653){return _0x286994+_0xdf0653;},'fKPTI':_0x5b0df9(0x13a),'gObLd':_0x5b0df9(0x16a),'VBdHR':function(_0x487172,_0x4fef3e){return _0x487172!==_0x4fef3e;}},_0x433c90=(await NTQQUserApi['getPSkey']([_0x2a6b1c[_0x5b0df9(0x151)]]))[_0x2a6b1c[_0x5b0df9(0x151)]],_0x26d667=await NTQQUserApi[_0x5b0df9(0x114)](),_0xb0a0e=_0x2a6b1c['BYexL'](_0x2a6b1c['BYexL'](_0x2a6b1c[_0x5b0df9(0x115)](_0x2a6b1c[_0x5b0df9(0x115)](_0x2a6b1c[_0x5b0df9(0x115)](_0x2a6b1c['oKEsZ'](_0x5b0df9(0x133),_0x433c90),_0x2a6b1c['KgKgk']),_0x26d667),_0x2a6b1c[_0x5b0df9(0x16c)]),selfInfo[_0x5b0df9(0x13d)]),_0x2a6b1c['oDvtG'])+selfInfo['uin'];if(_0x2a6b1c[_0x5b0df9(0x14c)](!_0x26d667,!_0x433c90))return undefined;const _0x1b71de=WebApi[_0x5b0df9(0x16f)](_0x26d667),_0x120f4d=_0x2a6b1c['VDIxv'](_0x2a6b1c[_0x5b0df9(0x168)](_0x2a6b1c[_0x5b0df9(0x168)](_0x2a6b1c[_0x5b0df9(0x168)](_0x2a6b1c[_0x5b0df9(0x153)](_0x5b0df9(0x12f),_0x1b71de),_0x5b0df9(0x139)),_0x51e6a1),_0x2a6b1c[_0x5b0df9(0x112)]),_0x437baa)+_0x5b0df9(0x156),_0x30aca1=await WebApi['httpDataJson'](_0x120f4d,_0x2a6b1c[_0x5b0df9(0x109)],'',_0xb0a0e);if(_0x2a6b1c[_0x5b0df9(0x14e)](_0x30aca1[_0x5b0df9(0x134)],0x0))return undefined;return _0x30aca1;}static async['getGroupMembers'](_0x556682,_0x55584d=!![]){const _0x4a8dfa=_0x253a11,_0x35afa0={'CRnIq':function(_0x294441,_0x12689f,_0x37bfca){return _0x294441(_0x12689f,_0x37bfca);},'WDntC':_0x4a8dfa(0x154),'nlcFJ':function(_0x5a50a1,_0x4ee370){return _0x5a50a1>_0x4ee370;},'Wawhg':function(_0x1fb5ae,_0x442749){return _0x1fb5ae-_0x442749;},'OMnZT':function(_0x38725e,_0x49cf92){return _0x38725e*_0x49cf92;},'rhvmP':_0x4a8dfa(0x141),'KGKSX':function(_0x3d2bff,_0x32a365){return _0x3d2bff+_0x32a365;},'BvGBM':function(_0x2d9aeb,_0x2a5029){return _0x2d9aeb+_0x2a5029;},'uSaHx':function(_0x4d85df,_0x199f30){return _0x4d85df+_0x199f30;},'hHuRH':';\x20skey=','jcXGj':_0x4a8dfa(0x122),'QUPSg':function(_0x3ed649,_0x17ac97){return _0x3ed649||_0x17ac97;},'qUXpK':function(_0x361b39,_0x1d9884){return _0x361b39+_0x1d9884;},'sjovS':function(_0x5f1aab,_0x1bdab8){return _0x5f1aab+_0x1bdab8;},'sSFtu':'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','wHjMW':'&bkn=','DjYYt':_0x4a8dfa(0x13c),'EtQnU':function(_0x5b2bfe,_0x5b054f){return _0x5b2bfe!==_0x5b054f;},'pIaPi':function(_0x10f84b,_0x231448){return _0x10f84b/_0x231448;},'uRuTv':function(_0x57f60e,_0x2adf10){return _0x57f60e<=_0x2adf10;},'gKUIb':function(_0x51811e,_0x2ea1e6){return _0x51811e+_0x2ea1e6;},'sRaak':function(_0x22cfc0,_0x491f27){return _0x22cfc0+_0x491f27;},'uFBja':function(_0x3e4126,_0x506f6f){return _0x3e4126+_0x506f6f;},'AZBVt':function(_0x134f06,_0x3412ae){return _0x134f06+_0x3412ae;},'Hizpm':_0x4a8dfa(0x15f),'IXWpM':function(_0x5a933b,_0x5d04fe){return _0x5a933b*_0x5d04fe;},'tmeac':function(_0x51dcf6,_0x4d54eb){return _0x51dcf6!==_0x4d54eb;}};_0x35afa0[_0x4a8dfa(0x124)](logDebug,_0x35afa0['WDntC'],_0x556682);let _0x577c56=WebGroupData[_0x4a8dfa(0x105)][_0x4a8dfa(0x164)](_0x556682),_0x537960=WebGroupData[_0x4a8dfa(0x15b)][_0x4a8dfa(0x164)](_0x556682),_0x3d4b77=new Array();if(!_0x537960||_0x35afa0[_0x4a8dfa(0x108)](_0x35afa0['Wawhg'](Date[_0x4a8dfa(0x14f)](),_0x537960),_0x35afa0[_0x4a8dfa(0x11a)](0x708,0x3e8))||!_0x55584d){const _0x535153=(await NTQQUserApi[_0x4a8dfa(0x147)]([_0x4a8dfa(0x141)]))[_0x35afa0[_0x4a8dfa(0x131)]],_0xc60738=await NTQQUserApi[_0x4a8dfa(0x114)](),_0x10ee46=_0x35afa0['KGKSX'](_0x35afa0[_0x4a8dfa(0x155)](_0x35afa0[_0x4a8dfa(0x175)](_0x35afa0['uSaHx'](_0x4a8dfa(0x133),_0x535153),_0x35afa0[_0x4a8dfa(0x12d)]),_0xc60738),_0x35afa0[_0x4a8dfa(0x11c)])+selfInfo['uin'];if(_0x35afa0['QUPSg'](!_0xc60738,!_0x535153))return _0x3d4b77;const _0x37a1a2=WebApi['genBkn'](_0xc60738),_0x5a60fb=[],_0x4e896e=await WebApi[_0x4a8dfa(0x128)](_0x35afa0[_0x4a8dfa(0x126)](_0x35afa0['qUXpK'](_0x35afa0[_0x4a8dfa(0x16b)](_0x35afa0[_0x4a8dfa(0x107)],_0x556682),_0x35afa0[_0x4a8dfa(0x173)]),_0x37a1a2),_0x35afa0[_0x4a8dfa(0x10e)],'',_0x10ee46);if(!_0x4e896e?.[_0x4a8dfa(0x12c)]||_0x35afa0['EtQnU'](_0x4e896e?.[_0x4a8dfa(0x161)],0x0)||!_0x4e896e?.['mems'])return[];else for(const _0x5e1823 in _0x4e896e[_0x4a8dfa(0x127)]){_0x3d4b77[_0x4a8dfa(0x158)](_0x4e896e[_0x4a8dfa(0x127)][_0x5e1823]);}const _0x41fb4b=Math[_0x4a8dfa(0x145)](_0x35afa0[_0x4a8dfa(0x149)](_0x4e896e[_0x4a8dfa(0x12c)],0x28));for(let _0x520bb3=0x2;_0x35afa0[_0x4a8dfa(0x167)](_0x520bb3,_0x41fb4b);_0x520bb3++){const _0x40259=WebApi[_0x4a8dfa(0x128)](_0x35afa0[_0x4a8dfa(0x174)](_0x35afa0[_0x4a8dfa(0x15a)](_0x35afa0['qUXpK'](_0x35afa0[_0x4a8dfa(0x155)](_0x35afa0[_0x4a8dfa(0x170)](_0x35afa0[_0x4a8dfa(0x137)](_0x35afa0[_0x4a8dfa(0x157)]+_0x35afa0['IXWpM'](_0x520bb3-0x1,0x28),_0x4a8dfa(0x16e)),_0x35afa0[_0x4a8dfa(0x11a)](_0x520bb3,0x28)),_0x4a8dfa(0x113)),_0x556682),'&bkn='),_0x37a1a2),_0x4a8dfa(0x13c),'',_0x10ee46);_0x5a60fb[_0x4a8dfa(0x158)](_0x40259);}for(let _0x4efa4b=0x1;_0x4efa4b<=_0x41fb4b;_0x4efa4b++){const _0x4a3447=await _0x5a60fb[_0x4efa4b];if(!_0x4a3447?.[_0x4a8dfa(0x12c)]||_0x35afa0[_0x4a8dfa(0x117)](_0x4a3447?.[_0x4a8dfa(0x161)],0x0)||!_0x4a3447?.[_0x4a8dfa(0x127)])continue;for(const _0x39f555 in _0x4a3447[_0x4a8dfa(0x127)]){_0x3d4b77['push'](_0x4a3447[_0x4a8dfa(0x127)][_0x39f555]);}}WebGroupData['GroupData']['set'](_0x556682,_0x3d4b77),WebGroupData['GroupTime'][_0x4a8dfa(0x130)](_0x556682,Date[_0x4a8dfa(0x14f)]());}else _0x3d4b77=_0x577c56;return _0x3d4b77;}static async['setGroupNotice'](_0xbfa24d,_0x5060f4=''){const _0x50e04a=_0x253a11,_0x3e6b04={'tfxKq':'qun.qq.com','EYrtS':function(_0x641217,_0x212372){return _0x641217+_0x212372;},'DFIaN':function(_0x113866,_0x359beb){return _0x113866+_0x359beb;},'sfJAg':_0x50e04a(0x122),'DuQCc':function(_0x4ec124,_0x26aa8c){return _0x4ec124||_0x26aa8c;},'CyKgP':function(_0x42dc10,_0x4b6acd){return _0x42dc10+_0x4b6acd;},'EVJfP':function(_0x2d5ef4,_0x7a05ef){return _0x2d5ef4+_0x7a05ef;},'WMAUR':function(_0x28cb89,_0x541ed3){return _0x28cb89+_0x541ed3;},'VFuhl':_0x50e04a(0x162),'dcYev':'&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','BWDYM':_0x50e04a(0x110),'tzMqF':'GET'},_0x1c4edd=(await NTQQUserApi[_0x50e04a(0x147)]([_0x3e6b04[_0x50e04a(0x106)]]))[_0x3e6b04[_0x50e04a(0x106)]],_0x43574a=await NTQQUserApi[_0x50e04a(0x114)](),_0x473630=_0x3e6b04[_0x50e04a(0x140)](_0x3e6b04['DFIaN'](_0x3e6b04[_0x50e04a(0x140)](_0x3e6b04[_0x50e04a(0x121)](_0x50e04a(0x133)+_0x1c4edd,';\x20skey='),_0x43574a),_0x3e6b04[_0x50e04a(0x11f)]),selfInfo['uin']);let _0x5ef89f=undefined;if(_0x3e6b04['DuQCc'](!_0x43574a,!_0x1c4edd))return undefined;const _0x115bb4=WebApi[_0x50e04a(0x16f)](_0x43574a),_0x3902f0=_0x3e6b04['CyKgP'](_0x3e6b04['EVJfP'](_0x3e6b04[_0x50e04a(0x140)](_0x3e6b04[_0x50e04a(0x120)](_0x3e6b04[_0x50e04a(0x120)](_0x3e6b04[_0x50e04a(0x138)],_0xbfa24d)+'&bkn=',_0x115bb4),'&text='),_0x5060f4),_0x3e6b04[_0x50e04a(0x144)]),_0x1eeb34=_0x3e6b04['BWDYM']+_0x115bb4;try{return _0x5ef89f=await WebApi[_0x50e04a(0x128)](_0x1eeb34,_0x3e6b04['tzMqF'],'',_0x473630),_0x5ef89f;}catch(_0x203b84){return undefined;}return undefined;}static async[_0x253a11(0x129)](_0x347bde){const _0x27b23b=_0x253a11,_0x159cb4={'Gdmbn':'qun.qq.com','arRso':function(_0x3d386e,_0x39c58d){return _0x3d386e+_0x39c58d;},'aOWPC':function(_0x51862b,_0x2f6255){return _0x51862b+_0x2f6255;},'YuLuR':function(_0x33104e,_0x392863){return _0x33104e+_0x392863;},'onFJM':_0x27b23b(0x133),'QkLAD':_0x27b23b(0x116),'oRqxM':_0x27b23b(0x122),'qrBdE':function(_0x526fd9,_0x174b5a){return _0x526fd9||_0x174b5a;},'YHdoH':function(_0x4acd76,_0x3757d0){return _0x4acd76+_0x3757d0;},'WrcQU':function(_0x3dcd2e,_0x35d1a9){return _0x3dcd2e+_0x35d1a9;},'oPbdq':function(_0x351f3c,_0x530196){return _0x351f3c+_0x530196;},'ZUXdT':'https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','eNIot':'&qid=','HSXjN':function(_0x4f45db,_0x3f42df){return _0x4f45db!==_0x3f42df;}},_0x3a71bd=(await NTQQUserApi['getPSkey']([_0x159cb4[_0x27b23b(0x10b)]]))[_0x27b23b(0x141)],_0x4ef39d=await NTQQUserApi[_0x27b23b(0x114)](),_0x8cf6a3=_0x159cb4['arRso'](_0x159cb4[_0x27b23b(0x159)](_0x159cb4[_0x27b23b(0x15e)](_0x159cb4[_0x27b23b(0x13f)](_0x159cb4[_0x27b23b(0x169)]+_0x3a71bd,_0x159cb4['QkLAD']),_0x4ef39d),_0x159cb4[_0x27b23b(0x165)]),selfInfo['uin']);let _0x41ecab=undefined;if(_0x159cb4[_0x27b23b(0x146)](!_0x4ef39d,!_0x3a71bd))return undefined;const _0x3d0bb8=WebApi['genBkn'](_0x4ef39d),_0x1f063e=_0x159cb4[_0x27b23b(0x111)](_0x159cb4[_0x27b23b(0x13f)](_0x159cb4[_0x27b23b(0x119)](_0x159cb4[_0x27b23b(0x152)](_0x159cb4['ZUXdT'],_0x3d0bb8),_0x159cb4[_0x27b23b(0x143)]),_0x347bde),'&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20');try{_0x41ecab=await WebApi[_0x27b23b(0x128)](_0x1f063e,_0x27b23b(0x16a),'',_0x8cf6a3);if(_0x159cb4['HSXjN'](_0x41ecab?.['ec'],0x0))return undefined;return _0x41ecab;}catch(_0x3dc549){return undefined;}return undefined;}static async[_0x253a11(0x163)](_0x4bdd08='',_0x155206=_0x253a11(0x16a),_0x546b31='',_0x16fcc9=''){const _0x4c61e7={'xwoJv':function(_0x1c2b63,_0x27955a){return _0x1c2b63===_0x27955a;},'DWQkX':'GET','TUyuU':function(_0x840f5c,_0x3d5033){return _0x840f5c===_0x3d5033;},'yTXpN':function(_0x5d325f,_0x528505,_0x31b387){return _0x5d325f(_0x528505,_0x31b387);},'XgtTx':'application/x-www-form-urlencoded','COYuZ':function(_0x34534a,_0xe4aab4,_0x1bb646){return _0x34534a(_0xe4aab4,_0x1bb646);},'QmSdE':function(_0x562422,_0x296b9f){return _0x562422(_0x296b9f);}};let _0x56717f='';return new Promise(async(_0x50dc62,_0x5150f8)=>{const _0x2e01bc=_0x34d8;try{let _0x2a1d80=undefined;_0x4c61e7['xwoJv'](_0x155206,_0x4c61e7[_0x2e01bc(0x14d)])||_0x4c61e7[_0x2e01bc(0x125)](_0x155206,'HEAD')?_0x2a1d80=await _0x4c61e7[_0x2e01bc(0x13b)](fetch,_0x4bdd08,{'method':_0x155206,'headers':{'Content-Type':_0x4c61e7['XgtTx'],'Cookie':_0x16fcc9}}):_0x2a1d80=await _0x4c61e7[_0x2e01bc(0x142)](fetch,_0x4bdd08,{'method':_0x155206,'headers':{'Content-Type':_0x2e01bc(0x11b),'Cookie':_0x16fcc9},'body':_0x546b31});if(_0x2a1d80['ok'])_0x56717f=await _0x2a1d80[_0x2e01bc(0x136)]();else{}}catch(_0x2a6f94){}_0x4c61e7[_0x2e01bc(0x15c)](_0x50dc62,_0x56717f);});}static async[_0x253a11(0x128)](_0x386834='',_0x538442=_0x253a11(0x16a),_0x5382f4='',_0xe232e5=''){const _0x2bda76=_0x253a11,_0x133ff0={'LJBgG':function(_0x1c7007,_0x114ecd){return _0x1c7007===_0x114ecd;},'ysSKB':_0x2bda76(0x16a),'uChOL':_0x2bda76(0x10d),'KercQ':function(_0x22d158,_0x4715f3,_0x57a4cf){return _0x22d158(_0x4715f3,_0x57a4cf);},'UTdOr':_0x2bda76(0x11b),'Gcrie':function(_0x45fb11,_0x15e183){return _0x45fb11(_0x15e183);}};let _0x3b400c=undefined;return new Promise(async(_0x3767fd,_0x450d54)=>{const _0x283742=_0x2bda76;try{let _0x3c2e30=undefined;_0x133ff0['LJBgG'](_0x538442,_0x133ff0[_0x283742(0x135)])||_0x538442===_0x133ff0[_0x283742(0x10c)]?_0x3c2e30=await _0x133ff0[_0x283742(0x12b)](fetch,_0x386834,{'method':_0x538442,'headers':{'Content-Type':_0x283742(0x11b),'Cookie':_0xe232e5}}):_0x3c2e30=await _0x133ff0[_0x283742(0x12b)](fetch,_0x386834,{'method':_0x538442,'headers':{'Content-Type':_0x133ff0['UTdOr'],'Cookie':_0xe232e5},'body':_0x5382f4});if(_0x3c2e30['ok'])_0x3b400c=await _0x3c2e30[_0x283742(0x123)]();else{}}catch(_0x4f8c68){}_0x133ff0[_0x283742(0x12e)](_0x3767fd,_0x3b400c);});}static[_0x253a11(0x16f)](_0x118848){const _0x118b54=_0x253a11,_0x2bdd34={'NWfzN':function(_0x5292c7,_0x777fbe){return _0x5292c7||_0x777fbe;},'ROaKL':function(_0x25962b,_0x549d38){return _0x25962b<_0x549d38;},'Kuzyb':function(_0x49bf39,_0x18372e){return _0x49bf39+_0x18372e;},'tAOuJ':function(_0x2644b7,_0xd3ffb1){return _0x2644b7<<_0xd3ffb1;},'WmPnN':function(_0x3fca23,_0x4b1c3f){return _0x3fca23&_0x4b1c3f;}};_0x118848=_0x2bdd34[_0x118b54(0x14a)](_0x118848,'');let _0x41f8ab=0x1505;for(let _0x1a074a=0x0;_0x2bdd34[_0x118b54(0x150)](_0x1a074a,_0x118848['length']);_0x1a074a++){const _0x43321c=_0x118848['charCodeAt'](_0x1a074a);_0x41f8ab=_0x2bdd34[_0x118b54(0x166)](_0x2bdd34[_0x118b54(0x166)](_0x41f8ab,_0x2bdd34[_0x118b54(0x132)](_0x41f8ab,0x5)),_0x43321c);}return _0x2bdd34[_0x118b54(0x14b)](_0x41f8ab,0x7fffffff)[_0x118b54(0x11d)]();}} \ No newline at end of file +const _0x4a88c2=_0x3fd3;(function(_0x367a9c,_0x2ac1a9){const _0x5d1e24=_0x3fd3,_0x1e33a6=_0x367a9c();while(!![]){try{const _0x16c297=-parseInt(_0x5d1e24(0x17b))/0x1+parseInt(_0x5d1e24(0x128))/0x2*(-parseInt(_0x5d1e24(0x126))/0x3)+-parseInt(_0x5d1e24(0x16d))/0x4+-parseInt(_0x5d1e24(0x158))/0x5*(-parseInt(_0x5d1e24(0x154))/0x6)+parseInt(_0x5d1e24(0x120))/0x7*(-parseInt(_0x5d1e24(0x187))/0x8)+-parseInt(_0x5d1e24(0x11e))/0x9*(-parseInt(_0x5d1e24(0x156))/0xa)+parseInt(_0x5d1e24(0x119))/0xb;if(_0x16c297===_0x2ac1a9)break;else _0x1e33a6['push'](_0x1e33a6['shift']());}catch(_0x4dd3b6){_0x1e33a6['push'](_0x1e33a6['shift']());}}}(_0x49bf,0xe605e));import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';function _0x49bf(){const _0x2cb5f9=['&qid=','zqGff','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','errcode','zArXm','wFoqd','QhqDw','uOmKI','WOHgY','getGroupEssenceMsg','ZUota','QnOlU','wBbJv','1881690BtMgHO','getGrouptNotice','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','qun.qq.com','cNqzd','ReKRr','eYhUJ','ONfdE','hyXvq','kSSuB','dXPYP','JARwS','8wXAFxY','setGroupNotice','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','BvgmN','JRCbh',';\x20skey=','31224622wKTVgo','genBkn','charCodeAt','wkPzK','set','2981799RRCTwm','duLnh','3948994TSnmfP','yZOSy','rXpRp','&page_start=','get','grLVr','3YZJVtm','application/x-www-form-urlencoded','1833748evlqnc','lJoQd','BjyCT','getSkey','SUDvi','gpntu','getGroupMembers','waMld','ditGY','p_skey=','now','qLMTs','XjDGI','dNLoJ','VLrlf','mems','wTVAw','iOIfO','tNvQW','length','json','qid=','YHtsN','webapi\x20获取群成员','uin','FIWFz','nYILT','text','getPSkey','retcode','mVTQA','xxoCm','POST','SKRPO','vgeRR','httpDataJson','vwfxV','mtzGM',';\x20uin=o','geiJU','JVKZn','HEAD','GET','TuUal','275634dYNwaw','KqjOV','10vmLDQG','&group_code=','205NJmyfo','httpDataText','zeFtR','wFKMH','ALdDR','zQxJC','push','GroupData','GroupTime','HJUgN',';\x20p_uin=o','krBJU','mUkar','ceil','obctc','TuxxG','RzkJh','&bkn=','zGoZx','count','rJjWy','2994128NFkUqn'];_0x49bf=function(){return _0x2cb5f9;};return _0x49bf();}function _0x3fd3(_0x5ceb8a,_0x32ef85){const _0x49bf6d=_0x49bf();return _0x3fd3=function(_0x3fd35a,_0x553fe4){_0x3fd35a=_0x3fd35a-0x115;let _0x5c45fd=_0x49bf6d[_0x3fd35a];return _0x5c45fd;},_0x3fd3(_0x5ceb8a,_0x32ef85);}import{NTQQUserApi}from'./user';export class WebApi{static async[_0x4a88c2(0x177)](_0x4bc50b,_0x51b4e5){const _0x19fe72=_0x4a88c2,_0x140f64={'QhqDw':_0x19fe72(0x17e),'duLnh':function(_0x5a2f43,_0x4f29ef){return _0x5a2f43+_0x4f29ef;},'wkPzK':function(_0x156147,_0x15f1f9){return _0x156147+_0x15f1f9;},'mtzGM':function(_0x5d8f69,_0x5a14af){return _0x5d8f69+_0x5a14af;},'WdSuB':function(_0x45822d,_0x2a8e6d){return _0x45822d+_0x2a8e6d;},'PemHp':function(_0x561154,_0x1c0d65){return _0x561154+_0x1c0d65;},'eYhUJ':_0x19fe72(0x131),'JRCbh':';\x20skey=','OjOrx':';\x20p_uin=o','ePbSz':function(_0x1f4100,_0x2ed3f6){return _0x1f4100||_0x2ed3f6;},'zeFtR':function(_0x3e65ed,_0x399f16){return _0x3e65ed+_0x399f16;},'djtkR':function(_0x146c06,_0x2077a5){return _0x146c06+_0x2077a5;},'QxrgY':function(_0x4d6ed2,_0x15f37a){return _0x4d6ed2+_0x15f37a;},'SKRPO':function(_0x57d1d6,_0x3f9473){return _0x57d1d6+_0x3f9473;},'FIWFz':'https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','obctc':_0x19fe72(0x157),'cNqzd':_0x19fe72(0x123),'jgkNl':function(_0x170df7,_0x3d8c07){return _0x170df7!==_0x3d8c07;}},_0xc9149d=(await NTQQUserApi[_0x19fe72(0x144)]([_0x140f64[_0x19fe72(0x174)]]))[_0x140f64[_0x19fe72(0x174)]],_0x454e8b=await NTQQUserApi[_0x19fe72(0x12b)](),_0x54988c=_0x140f64['duLnh'](_0x140f64[_0x19fe72(0x11c)](_0x140f64[_0x19fe72(0x14d)](_0x140f64[_0x19fe72(0x11f)](_0x140f64['WdSuB'](_0x140f64['PemHp'](_0x140f64[_0x19fe72(0x181)],_0xc9149d)+_0x140f64[_0x19fe72(0x117)],_0x454e8b),_0x140f64['OjOrx']),selfInfo[_0x19fe72(0x140)]),_0x19fe72(0x14e)),selfInfo[_0x19fe72(0x140)]);if(_0x140f64['ePbSz'](!_0x454e8b,!_0xc9149d))return undefined;const _0x2afcdd=WebApi[_0x19fe72(0x11a)](_0x454e8b),_0x31a037=_0x140f64[_0x19fe72(0x11f)](_0x140f64[_0x19fe72(0x15a)](_0x140f64['djtkR'](_0x140f64['QxrgY'](_0x140f64[_0x19fe72(0x149)](_0x140f64[_0x19fe72(0x141)]+_0x2afcdd,_0x140f64[_0x19fe72(0x166)]),_0x4bc50b),_0x140f64[_0x19fe72(0x17f)]),_0x51b4e5),'&page_limit=20'),_0x2f19ad=await WebApi[_0x19fe72(0x14b)](_0x31a037,_0x19fe72(0x152),'',_0x54988c);if(_0x140f64['jgkNl'](_0x2f19ad[_0x19fe72(0x145)],0x0))return undefined;return _0x2f19ad;}static async[_0x4a88c2(0x12e)](_0x4ab674,_0x5151f5=!![]){const _0x15b9ab=_0x4a88c2,_0x100315={'ZUota':function(_0x2cda97,_0x23bcf5,_0x2f055a){return _0x2cda97(_0x23bcf5,_0x2f055a);},'iOIfO':function(_0x5c5dc4,_0x4a15b3){return _0x5c5dc4-_0x4a15b3;},'ZnNmH':function(_0x5731a9,_0xb27567){return _0x5731a9*_0xb27567;},'BvgmN':'qun.qq.com','lJoQd':function(_0x404f39,_0x3590da){return _0x404f39+_0x3590da;},'vwfxV':function(_0x3b49eb,_0x2f6be2){return _0x3b49eb+_0x2f6be2;},'mVTQA':function(_0xa485e2,_0x1c59a7){return _0xa485e2+_0x1c59a7;},'TuUal':_0x15b9ab(0x131),'xxoCm':_0x15b9ab(0x118),'JARwS':_0x15b9ab(0x162),'ONfdE':function(_0x16a53b,_0x104b8c){return _0x16a53b||_0x104b8c;},'gpntu':function(_0x29243c,_0xb9d2f3){return _0x29243c+_0xb9d2f3;},'zArXm':_0x15b9ab(0x169),'ALdDR':function(_0x3f5ad0,_0x4da3d6){return _0x3f5ad0!==_0x4da3d6;},'zjCGs':function(_0x115247,_0x42c250){return _0x115247<=_0x42c250;},'jMSxn':function(_0x44d782,_0x4dd097){return _0x44d782+_0x4dd097;},'zGoZx':function(_0x350368,_0x12fce3){return _0x350368+_0x12fce3;},'qLMTs':'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','dXPYP':function(_0x1f0e3c,_0x20c9be){return _0x1f0e3c*_0x20c9be;},'TuxxG':'&sort=1&gc=','kSSuB':function(_0x3e9b13,_0x54b684){return _0x3e9b13<=_0x54b684;}};_0x100315[_0x15b9ab(0x178)](logDebug,_0x15b9ab(0x13f),_0x4ab674);let _0x3d7a69=WebGroupData['GroupData'][_0x15b9ab(0x124)](_0x4ab674),_0x313b29=WebGroupData['GroupTime']['get'](_0x4ab674),_0x484188=new Array();if(!_0x313b29||_0x100315['iOIfO'](Date['now'](),_0x313b29)>_0x100315['ZnNmH'](0x708,0x3e8)||!_0x5151f5){const _0x33fd76=(await NTQQUserApi[_0x15b9ab(0x144)]([_0x100315[_0x15b9ab(0x116)]]))[_0x15b9ab(0x17e)],_0x10b300=await NTQQUserApi[_0x15b9ab(0x12b)](),_0x2966ed=_0x100315[_0x15b9ab(0x129)](_0x100315[_0x15b9ab(0x14c)](_0x100315[_0x15b9ab(0x146)](_0x100315[_0x15b9ab(0x146)](_0x100315[_0x15b9ab(0x153)],_0x33fd76),_0x100315[_0x15b9ab(0x147)]),_0x10b300)+_0x100315[_0x15b9ab(0x186)],selfInfo[_0x15b9ab(0x140)]);if(_0x100315[_0x15b9ab(0x182)](!_0x10b300,!_0x33fd76))return _0x484188;const _0x46909c=WebApi['genBkn'](_0x10b300),_0xc51686=[],_0x44ad13=await WebApi[_0x15b9ab(0x14b)](_0x100315[_0x15b9ab(0x12d)](_0x100315[_0x15b9ab(0x129)]('https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc='+_0x4ab674,_0x100315[_0x15b9ab(0x172)]),_0x46909c),_0x15b9ab(0x148),'',_0x2966ed);if(!_0x44ad13?.[_0x15b9ab(0x16b)]||_0x100315[_0x15b9ab(0x15c)](_0x44ad13?.[_0x15b9ab(0x171)],0x0)||!_0x44ad13?.[_0x15b9ab(0x137)])return[];else for(const _0xf1756c in _0x44ad13['mems']){_0x484188['push'](_0x44ad13[_0x15b9ab(0x137)][_0xf1756c]);}const _0x23ab20=Math[_0x15b9ab(0x165)](_0x44ad13['count']/0x28);for(let _0x456db4=0x2;_0x100315['zjCGs'](_0x456db4,_0x23ab20);_0x456db4++){const _0x453687=WebApi[_0x15b9ab(0x14b)](_0x100315['mVTQA'](_0x100315['gpntu'](_0x100315[_0x15b9ab(0x12d)](_0x100315['jMSxn'](_0x100315[_0x15b9ab(0x16a)](_0x100315[_0x15b9ab(0x133)]+_0x100315[_0x15b9ab(0x185)](_0x100315[_0x15b9ab(0x139)](_0x456db4,0x1),0x28),'&end='),_0x100315[_0x15b9ab(0x185)](_0x456db4,0x28)),_0x100315[_0x15b9ab(0x167)])+_0x4ab674,_0x100315[_0x15b9ab(0x172)]),_0x46909c),_0x15b9ab(0x148),'',_0x2966ed);_0xc51686[_0x15b9ab(0x15e)](_0x453687);}for(let _0x53a285=0x1;_0x100315[_0x15b9ab(0x184)](_0x53a285,_0x23ab20);_0x53a285++){const _0x34e679=await _0xc51686[_0x53a285];if(!_0x34e679?.[_0x15b9ab(0x16b)]||_0x34e679?.['errcode']!==0x0||!_0x34e679?.[_0x15b9ab(0x137)])continue;for(const _0x4fd936 in _0x34e679[_0x15b9ab(0x137)]){_0x484188[_0x15b9ab(0x15e)](_0x34e679['mems'][_0x4fd936]);}}WebGroupData[_0x15b9ab(0x15f)]['set'](_0x4ab674,_0x484188),WebGroupData[_0x15b9ab(0x160)][_0x15b9ab(0x11d)](_0x4ab674,Date[_0x15b9ab(0x132)]());}else _0x484188=_0x3d7a69;return _0x484188;}static async[_0x4a88c2(0x188)](_0x2e64c5,_0x1a1631=''){const _0xe92acc=_0x4a88c2,_0x5740bf={'JVKZn':_0xe92acc(0x17e),'hBEPs':function(_0x43d8f2,_0x2f251c){return _0x43d8f2+_0x2f251c;},'xdmGy':function(_0x45456b,_0x52a78c){return _0x45456b+_0x52a78c;},'rXpRp':'p_skey=','vtsYg':_0xe92acc(0x118),'wFKMH':function(_0x51e139,_0xeac82b){return _0x51e139||_0xeac82b;},'rJjWy':function(_0x20503d,_0x5ca5bf){return _0x20503d+_0x5ca5bf;},'fipjR':function(_0x2f7e72,_0x32463b){return _0x2f7e72+_0x32463b;},'dNLoJ':function(_0x11ab81,_0x399282){return _0x11ab81+_0x399282;},'agcAb':function(_0x5c0de4,_0x11157a){return _0x5c0de4+_0x11157a;},'krBJU':function(_0x2791f7,_0x2e5ef5){return _0x2791f7+_0x2e5ef5;},'QnOlU':_0xe92acc(0x13d),'KqjOV':'&bkn=','hhYuA':'&text=','nYILT':_0xe92acc(0x17d),'vgeRR':function(_0x129824,_0x2a50a9){return _0x129824+_0x2a50a9;},'ditGY':_0xe92acc(0x170),'grLVr':'GET'},_0x3e8306=(await NTQQUserApi[_0xe92acc(0x144)]([_0x5740bf['JVKZn']]))[_0x5740bf[_0xe92acc(0x150)]],_0xfc7fa=await NTQQUserApi['getSkey'](),_0xeae674=_0x5740bf['hBEPs'](_0x5740bf['hBEPs'](_0x5740bf['xdmGy'](_0x5740bf[_0xe92acc(0x122)]+_0x3e8306,_0x5740bf['vtsYg']),_0xfc7fa)+_0xe92acc(0x162),selfInfo[_0xe92acc(0x140)]);let _0x2e21dc=undefined;if(_0x5740bf[_0xe92acc(0x15b)](!_0xfc7fa,!_0x3e8306))return undefined;const _0x154256=WebApi[_0xe92acc(0x11a)](_0xfc7fa),_0xeb5121=_0x5740bf[_0xe92acc(0x16c)](_0x5740bf['fipjR'](_0x5740bf[_0xe92acc(0x135)](_0x5740bf['agcAb'](_0x5740bf[_0xe92acc(0x163)](_0x5740bf[_0xe92acc(0x179)],_0x2e64c5),_0x5740bf[_0xe92acc(0x155)]),_0x154256)+_0x5740bf['hhYuA'],_0x1a1631),_0x5740bf[_0xe92acc(0x142)]),_0x7be08a=_0x5740bf[_0xe92acc(0x14a)](_0x5740bf[_0xe92acc(0x130)],_0x154256);try{return _0x2e21dc=await WebApi[_0xe92acc(0x14b)](_0x7be08a,_0x5740bf[_0xe92acc(0x125)],'',_0xeae674),_0x2e21dc;}catch(_0x21c420){return undefined;}return undefined;}static async[_0x4a88c2(0x17c)](_0x54fbbf){const _0x3ec070=_0x4a88c2,_0x1a8cba={'ReKRr':_0x3ec070(0x17e),'waMld':function(_0xa06bdb,_0x31c9c3){return _0xa06bdb+_0x31c9c3;},'uOmKI':function(_0x2cab90,_0x5d61b1){return _0x2cab90+_0x5d61b1;},'BjyCT':function(_0x5ba4c6,_0x1d23ae){return _0x5ba4c6+_0x1d23ae;},'jrJiw':function(_0x4278e8,_0x255027){return _0x4278e8+_0x255027;},'Cvrzr':_0x3ec070(0x131),'VLrlf':_0x3ec070(0x118),'RzkJh':_0x3ec070(0x162),'YHtsN':function(_0x5492a3,_0x24959f){return _0x5492a3||_0x24959f;},'SUDvi':function(_0x20634f,_0x389ae7){return _0x20634f+_0x389ae7;},'wFoqd':function(_0x3548cf,_0x1463d9){return _0x3548cf+_0x1463d9;},'geiJU':function(_0x3308fc,_0x345cd2){return _0x3308fc+_0x345cd2;},'btDCO':_0x3ec070(0x115),'tNvQW':function(_0x3a52e6,_0xceb92b){return _0x3a52e6!==_0xceb92b;}},_0x2b0fed=(await NTQQUserApi[_0x3ec070(0x144)]([_0x1a8cba[_0x3ec070(0x180)]]))[_0x1a8cba[_0x3ec070(0x180)]],_0x50b335=await NTQQUserApi['getSkey'](),_0x4f2916=_0x1a8cba[_0x3ec070(0x12f)](_0x1a8cba['waMld'](_0x1a8cba[_0x3ec070(0x175)](_0x1a8cba[_0x3ec070(0x12a)](_0x1a8cba['jrJiw'](_0x1a8cba['Cvrzr'],_0x2b0fed),_0x1a8cba[_0x3ec070(0x136)]),_0x50b335),_0x1a8cba[_0x3ec070(0x168)]),selfInfo[_0x3ec070(0x140)]);let _0x316fc8=undefined;if(_0x1a8cba[_0x3ec070(0x13e)](!_0x50b335,!_0x2b0fed))return undefined;const _0x10d755=WebApi['genBkn'](_0x50b335),_0x583ce4=_0x1a8cba[_0x3ec070(0x12c)](_0x1a8cba[_0x3ec070(0x173)](_0x1a8cba[_0x3ec070(0x14f)](_0x1a8cba['btDCO']+_0x10d755,_0x3ec070(0x16e)),_0x54fbbf),'&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20');try{_0x316fc8=await WebApi['httpDataJson'](_0x583ce4,_0x3ec070(0x152),'',_0x4f2916);if(_0x1a8cba[_0x3ec070(0x13a)](_0x316fc8?.['ec'],0x0))return undefined;return _0x316fc8;}catch(_0x535701){return undefined;}return undefined;}static async[_0x4a88c2(0x159)](_0x2adeb9='',_0x390e99=_0x4a88c2(0x152),_0x13e7f5='',_0x43015d=''){const _0x1900d3=_0x4a88c2,_0x13f244={'zQxJC':_0x1900d3(0x152),'wTVAw':function(_0x167b80,_0x59e54a,_0x1c9d43){return _0x167b80(_0x59e54a,_0x1c9d43);},'HJUgN':'application/x-www-form-urlencoded','ZuNnp':function(_0x32b987,_0x1c8a86,_0x1b725e){return _0x32b987(_0x1c8a86,_0x1b725e);},'AEiWy':function(_0xd0abc0,_0x1a744b){return _0xd0abc0(_0x1a744b);}};let _0x5649c7='';return new Promise(async(_0x291145,_0x437200)=>{const _0x261829=_0x1900d3;try{let _0x480149=undefined;_0x390e99===_0x13f244[_0x261829(0x15d)]||_0x390e99===_0x261829(0x151)?_0x480149=await _0x13f244[_0x261829(0x138)](fetch,_0x2adeb9,{'method':_0x390e99,'headers':{'Content-Type':_0x13f244[_0x261829(0x161)],'Cookie':_0x43015d}}):_0x480149=await _0x13f244['ZuNnp'](fetch,_0x2adeb9,{'method':_0x390e99,'headers':{'Content-Type':_0x13f244['HJUgN'],'Cookie':_0x43015d},'body':_0x13e7f5});if(_0x480149['ok'])_0x5649c7=await _0x480149[_0x261829(0x143)]();else{}}catch(_0x1bfb3b){}_0x13f244['AEiWy'](_0x291145,_0x5649c7);});}static async[_0x4a88c2(0x14b)](_0x3d39f1='',_0x14a7c0='GET',_0x44b26d='',_0x8740b=''){const _0xa6a01c=_0x4a88c2,_0x415d59={'wBbJv':function(_0x2f177e,_0x5397ae){return _0x2f177e===_0x5397ae;},'yZOSy':function(_0x5067d8,_0x741f4d){return _0x5067d8===_0x741f4d;},'mUkar':_0xa6a01c(0x127),'XjDGI':function(_0x49d34d,_0x273bb5){return _0x49d34d(_0x273bb5);}};let _0x1637fc=undefined;return new Promise(async(_0x4ebd5d,_0x26ea9e)=>{const _0xd8e13=_0xa6a01c;try{let _0x5e666c=undefined;_0x415d59[_0xd8e13(0x17a)](_0x14a7c0,'GET')||_0x415d59[_0xd8e13(0x121)](_0x14a7c0,_0xd8e13(0x151))?_0x5e666c=await fetch(_0x3d39f1,{'method':_0x14a7c0,'headers':{'Content-Type':_0x415d59[_0xd8e13(0x164)],'Cookie':_0x8740b}}):_0x5e666c=await fetch(_0x3d39f1,{'method':_0x14a7c0,'headers':{'Content-Type':'application/x-www-form-urlencoded','Cookie':_0x8740b},'body':_0x44b26d});if(_0x5e666c['ok'])_0x1637fc=await _0x5e666c[_0xd8e13(0x13c)]();else{}}catch(_0x24bf12){}_0x415d59[_0xd8e13(0x134)](_0x4ebd5d,_0x1637fc);});}static[_0x4a88c2(0x11a)](_0x73910e){const _0x2f71a6=_0x4a88c2,_0x418014={'hyXvq':function(_0x4cd246,_0x177ab9){return _0x4cd246||_0x177ab9;},'zqGff':function(_0x218647,_0x2728aa){return _0x218647<_0x2728aa;},'jcQiy':function(_0x49fb4a,_0x16f5f7){return _0x49fb4a+_0x16f5f7;},'WOHgY':function(_0x43dfa1,_0xc2e719){return _0x43dfa1&_0xc2e719;}};_0x73910e=_0x418014[_0x2f71a6(0x183)](_0x73910e,'');let _0x2b76da=0x1505;for(let _0xf6efb0=0x0;_0x418014[_0x2f71a6(0x16f)](_0xf6efb0,_0x73910e[_0x2f71a6(0x13b)]);_0xf6efb0++){const _0x12d970=_0x73910e[_0x2f71a6(0x11b)](_0xf6efb0);_0x2b76da=_0x418014['jcQiy'](_0x2b76da,_0x2b76da<<0x5)+_0x12d970;}return _0x418014[_0x2f71a6(0x176)](_0x2b76da,0x7fffffff)['toString']();}} \ No newline at end of file diff --git a/src/core.lib/src/core.js b/src/core.lib/src/core.js index 12f5b065..ea382894 100644 --- a/src/core.lib/src/core.js +++ b/src/core.lib/src/core.js @@ -1 +1 @@ -const _0xa011bf=_0x4886;(function(_0x172efb,_0x184a0f){const _0x337b3b=_0x4886,_0x250ccf=_0x172efb();while(!![]){try{const _0x18c618=-parseInt(_0x337b3b(0x1b5))/0x1*(-parseInt(_0x337b3b(0x1e7))/0x2)+parseInt(_0x337b3b(0x206))/0x3*(-parseInt(_0x337b3b(0x1b6))/0x4)+parseInt(_0x337b3b(0x1dc))/0x5+-parseInt(_0x337b3b(0x1d3))/0x6*(-parseInt(_0x337b3b(0x1cc))/0x7)+parseInt(_0x337b3b(0x249))/0x8+-parseInt(_0x337b3b(0x1fe))/0x9+-parseInt(_0x337b3b(0x243))/0xa*(parseInt(_0x337b3b(0x21f))/0xb);if(_0x18c618===_0x184a0f)break;else _0x250ccf['push'](_0x250ccf['shift']());}catch(_0x2f2f76){_0x250ccf['push'](_0x250ccf['shift']());}}}(_0x33bc,0x73578));function _0x4886(_0xa7b8c2,_0x439326){const _0x33bc10=_0x33bc();return _0x4886=function(_0x488666,_0x585582){_0x488666=_0x488666-0x1ab;let _0x5086ff=_0x33bc10[_0x488666];return _0x5086ff;},_0x4886(_0xa7b8c2,_0x439326);}import _0x15c0b0 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x1ea1b4 from'node:path';function _0x33bc(){const _0x5628e6=['kqStv','uin','NodeQQNTWrapperUtil','errMsg','last_message_time','result','loginErrorInfo','84003BDpnak','DwAuI','BuddyListener','uid',')已登录,无法重复登录','NodeIKernelLoginService','zybwb','pngBase64QrcodeData','undefined','quickLoginWithUin','initWithDeskTopConfig','init','session','onLoginSuccessFuncList','catch','nOajv','initConfig','getQRCodePicture','initDataListener','tipsDesc','IrMKu','message_sent','addKernelLoginListener','engine','没有可快速登录的QQ号','20003797nIRown','IKYjT','then','packet_received','map','getMsgService','floor','getLoginList','forEach','frAOu','onQRCodeSessionFailed','getGroupService','NodeIKernelSessionListener','md5','groupCode','message_received','fvAyX','LocalLoginInfoList','EbhiW','consoleLog','mHyyt','MXVoh',')\x20在线状态变更','passwordLogin','onRecvMsg','util','get','Agwyg','HFbnK','curVersion','groupMemberList_MainWindow','getQuickLoginList','infos','sceneId','./nt_qq/global','addKernelBuddyListener','10SUBWCE','now','stringify','krfZd','mkdirSync','KYAaF','5456040BMVPSZ','onUserLoggedIn','has','fileLog','getProfileService','constructor','GYIYR','loginService','[KickedOffLine]\x20[','drOLn','clientType','jKYaQ','push','_GW_B','isQuickLogin','RUVpo','init\x20failed\x20','set','packet_sent','GGChu','startNT','RypFL','tipsTitle','wZCno','23rgmXdj','40DZpPZs','base64','IJUwC','FvjzL','jisQL','./.config/QQ','length','assign','onSelfStatusChanged','KZcWb','NodeIKernelProfileListener','onKickedOffLine','SFBBZ','140022008','NodeIGlobalAdapter','PjgWZ','本账号数据/缓存目录:','addKernelMsgListener','hex','uBsGz','name','pgvzj','7sAkNHs','faVEY','getBuddyList','dataPath','NodeIKernelBuddyListener','V1_WIN_NQ_','getNextMemberList','5208690jgBxxV','TadIN','当前账号(','onLineDev','AxLsQ','onQRCodeLoginSucceed','recallTime','qrcodeUrl','SztVo','4338695BQEwHP','loginListener','createMemberListScene','homedir','dataPathGlobal','YqPXx','read','XITwx','onProfileDetailInfoChanged','data:image/png;base64,','devUid','29434xUneaK','onLoginSuccess','onAddSendMsg','fileLogLevel','NodeIKernelLoginListener','GroupListener','NodeIKernelMsgListener','账号设备(','jaMWc','EBQfa','irzHP','Windows\x2010\x20Pro','addListener','addKernelGroupListener','proxyHandler','resolve','getMsgByLongId','-v2.db','Ugrjy','initSession','onMsgInfoListUpdate','getBuddyService','数据库初始化失败','1668357UDiNMz'];_0x33bc=function(){return _0x5628e6;};return _0x33bc();}import _0x4d048b from'node:os';import _0x491ef6 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 _0x23e424 from'node:crypto';import{rawFriends,friends,groupMembers,groups,selfInfo,stat,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'];[_0xa011bf(0x238)];['engine'];[_0xa011bf(0x250)];[_0xa011bf(0x1dd)];['onLoginSuccessFuncList']=[];[_0xa011bf(0x1f5)]={'get'(target,prop,receiver){const _0x57d9db=_0xa011bf,aFDbwy={'XITwx':function(callee,param1){return callee(param1);},'vVbvi':_0x57d9db(0x20e)};if(typeof target[prop]===aFDbwy['vVbvi'])return(...args)=>{const _0x1763bd=_0x57d9db;aFDbwy[_0x1763bd(0x1e3)](logDebug,target[_0x1763bd(0x24e)][_0x1763bd(0x1ca)]+'\x20has\x20no\x20method\x20'+prop);};return Reflect[_0x57d9db(0x239)](target,prop,receiver);}};constructor(){const _0x51fb79=_0xa011bf,_0x220a0c={'EBQfa':function(_0x5e5990,_0x11f50a){return _0x5e5990(_0x11f50a);},'SztVo':function(_0xb3e70c,_0x5534c1){return _0xb3e70c+_0x5534c1;},'FvjzL':function(_0x3d180d,_0x1525a3){return _0x3d180d+_0x1525a3;},'yElZt':_0x51fb79(0x20a),'PjgWZ':_0x51fb79(0x1fd),'RUVpo':function(_0x400978,_0x41016d,_0x10e719){return _0x400978(_0x41016d,_0x10e719);},'KZcWb':_0x51fb79(0x1c6),'ofTzk':'initSession\x20failed','lcBLD':function(_0x37802e,_0x51ae24,_0x4b0d2a){return _0x37802e(_0x51ae24,_0x4b0d2a);},'lByqH':'登录失败','GYIYR':function(_0x498b26,_0x25d72a){return _0x498b26==_0x25d72a;}};this[_0x51fb79(0x21d)]=new _0x15c0b0['NodeIQQNTWrapperEngine'](),this['util']=new _0x15c0b0[(_0x51fb79(0x201))](),this[_0x51fb79(0x250)]=new _0x15c0b0[(_0x51fb79(0x20b))](),this[_0x51fb79(0x212)]=new _0x15c0b0['NodeIQQNTWrapperSession'](),this[_0x51fb79(0x1dd)]=new LoginListener(),this[_0x51fb79(0x1dd)][_0x51fb79(0x24a)]=_0x5bf0b2=>{const _0x343b39=_0x51fb79;_0x220a0c[_0x343b39(0x1f0)](logError,_0x220a0c[_0x343b39(0x1db)](_0x220a0c[_0x343b39(0x1b9)](_0x343b39(0x1d5),_0x5bf0b2),_0x220a0c['yElZt']));},this[_0x51fb79(0x1dd)][_0x51fb79(0x1d8)]=_0x2eed9f=>{const _0x66fa80=_0x51fb79,_0x4fc847={'SFBBZ':function(_0x36dcaf,_0x2acd96,_0x3475c9){return _0x36dcaf(_0x2acd96,_0x3475c9);}};this[_0x66fa80(0x1fa)](_0x2eed9f[_0x66fa80(0x200)],_0x2eed9f[_0x66fa80(0x209)])[_0x66fa80(0x221)](_0x4d24a5=>{const _0x452258=_0x66fa80,_0x5b1eab={'wcpuk':_0x220a0c[_0x452258(0x1c5)]};selfInfo[_0x452258(0x200)]=_0x2eed9f['uin'],selfInfo[_0x452258(0x209)]=_0x2eed9f[_0x452258(0x209)],napCatConfig[_0x452258(0x1e2)](),_0x220a0c[_0x452258(0x1ac)](setLogLevel,napCatConfig[_0x452258(0x1ea)],napCatConfig['consoleLogLevel']),_0x220a0c[_0x452258(0x1f0)](enableFileLog,napCatConfig[_0x452258(0x24c)]),enableConsoleLog(napCatConfig[_0x452258(0x232)]),_0x220a0c[_0x452258(0x1f0)](setLogSelfInfo,selfInfo);const _0x1406bc=_0x1ea1b4[_0x452258(0x1f6)](this[_0x452258(0x1cf)],'./NapCat/data');_0x491ef6[_0x452258(0x247)](_0x1406bc,{'recursive':!![]}),_0x220a0c[_0x452258(0x1ac)](logDebug,_0x220a0c[_0x452258(0x1bf)],_0x1406bc),dbUtil['init'](_0x1ea1b4[_0x452258(0x1f6)](_0x1406bc,'./'+_0x2eed9f['uin']+_0x452258(0x1f8)))['then'](()=>{const _0xb98078=_0x452258,_0x5168aa={'IKYjT':function(_0x91fdcc,_0x4110cb,_0x244976){const _0x22e79c=_0x4886;return _0x4fc847[_0x22e79c(0x1c2)](_0x91fdcc,_0x4110cb,_0x244976);},'IrMKu':function(_0xb8212e,_0x5bbaa2){return _0xb8212e instanceof _0x5bbaa2;}};this[_0xb98078(0x218)](),this[_0xb98078(0x213)][_0xb98078(0x223)](_0x4cbf24=>{const _0x3adcf7=_0xb98078;new Promise((_0x5add4f,_0x2f0f63)=>{const _0x5a153d=_0x4886,_0x121290=_0x5168aa[_0x5a153d(0x220)](_0x4cbf24,_0x2eed9f[_0x5a153d(0x200)],_0x2eed9f[_0x5a153d(0x209)]);_0x5168aa[_0x5a153d(0x21a)](_0x121290,Promise)&&_0x121290[_0x5a153d(0x221)](_0x5add4f)[_0x5a153d(0x214)](_0x2f0f63);})[_0x3adcf7(0x221)]();});})['catch'](_0x2799a8=>{logError(_0x5b1eab['wcpuk'],_0x2799a8);});})[_0x66fa80(0x214)](_0x32e1ae=>{const _0x5c4d97=_0x66fa80;_0x220a0c[_0x5c4d97(0x1ac)](logError,_0x220a0c['ofTzk'],_0x32e1ae);throw new Error('启动失败:\x20'+JSON[_0x5c4d97(0x245)](_0x32e1ae));});},this[_0x51fb79(0x1dd)][_0x51fb79(0x229)]=(_0x435c73,_0xfd55eb,_0x59af49)=>{const _0x462ac3=_0x51fb79;_0x220a0c['lcBLD'](logError,_0x220a0c['lByqH'],_0x59af49),_0x435c73==0x1&&_0x220a0c[_0x462ac3(0x24f)](_0xfd55eb,0x3)&&this[_0x462ac3(0x250)][_0x462ac3(0x217)]();},this[_0x51fb79(0x1dd)]['onLoginFailed']=_0x31b594=>{logError(_0x220a0c['lByqH'],_0x31b594);},this[_0x51fb79(0x1dd)]=new Proxy(this[_0x51fb79(0x1dd)],this[_0x51fb79(0x1f5)]),this['loginService'][_0x51fb79(0x21c)](new _0x15c0b0[(_0x51fb79(0x1eb))](this['loginListener'])),this['initConfig']();}get['dataPath'](){const _0x109338=_0xa011bf,_0x4bb4c6={'drOLn':_0x109338(0x1bb)};let _0x3ee409=this['util']['getNTUserDataInfoConfig']();return!_0x3ee409&&(_0x3ee409=_0x1ea1b4[_0x109338(0x1f6)](_0x4d048b[_0x109338(0x1df)](),_0x4bb4c6[_0x109338(0x252)]),_0x491ef6[_0x109338(0x247)](_0x3ee409,{'recursive':!![]})),_0x3ee409;}get['dataPathGlobal'](){const _0x4e79e4=_0xa011bf,_0x43bc46={'mHyyt':_0x4e79e4(0x241)};return _0x1ea1b4[_0x4e79e4(0x1f6)](this[_0x4e79e4(0x1cf)],_0x43bc46[_0x4e79e4(0x233)]);}[_0xa011bf(0x216)](){const _0x430467=_0xa011bf,_0x33e727={'faVEY':_0x430467(0x1f2)};this[_0x430467(0x21d)][_0x430467(0x210)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x430467(0x23c)],'os_version':_0x33e727[_0x430467(0x1cd)],'use_xlog':!![],'qua':_0x430467(0x1d1)+qqVersionConfigInfo[_0x430467(0x23c)]['replace']('-','_')+_0x430467(0x256),'global_path_config':{'desktopGlobalPath':this[_0x430467(0x1e0)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x15c0b0[(_0x430467(0x1c4))](new GlobalAdapter())),this[_0x430467(0x250)][_0x430467(0x216)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x430467(0x1e0)],'clientVer':qqVersionConfigInfo['curVersion'],'hostName':hostname});}['initSession'](_0x1f9d16,_0x3c6cf6){const _0x59ec9d=_0xa011bf,_0x4f27d4={'Agwyg':function(_0x212ffe,_0x5b2703){return _0x212ffe===_0x5b2703;},'nOajv':function(_0x2f5798,_0x45be2f){return _0x2f5798(_0x45be2f);},'DwAuI':function(_0x778dc3,_0xad4dfa,_0x133bf3,_0x43a399){return _0x778dc3(_0xad4dfa,_0x133bf3,_0x43a399);},'UKImn':function(_0xbde33e,_0x1cf2ec){return _0xbde33e(_0x1cf2ec);},'KYAaF':function(_0x1d2139,_0x3c3445){return _0x1d2139+_0x3c3445;},'wZCno':_0x59ec9d(0x1ad)};return new Promise((_0x487afa,_0x5d936e)=>{const _0x21bd21=_0x59ec9d,_0x85ff0d=_0x4f27d4[_0x21bd21(0x207)](genSessionConfig,_0x1f9d16,_0x3c6cf6,this[_0x21bd21(0x1cf)]),_0x397ced=new SessionListener();_0x397ced['onSessionInitComplete']=_0x4d2bed=>{const _0x2f0887=_0x21bd21;if(_0x4f27d4[_0x2f0887(0x23a)](_0x4d2bed,0x0))return _0x4f27d4[_0x2f0887(0x215)](_0x487afa,0x0);_0x4f27d4[_0x2f0887(0x215)](_0x5d936e,_0x4d2bed);},this['session'][_0x21bd21(0x211)](_0x85ff0d,new _0x15c0b0['NodeIDependsAdapter'](new DependsAdapter()),new _0x15c0b0['NodeIDispatcherAdapter'](new DispatcherAdapter()),new _0x15c0b0[(_0x21bd21(0x22b))](_0x397ced));try{this[_0x21bd21(0x212)][_0x21bd21(0x1b1)](0x0);}catch(_0x4c65a4){try{this[_0x21bd21(0x212)][_0x21bd21(0x1b1)]();}catch(_0x3c8ece){_0x4f27d4['UKImn'](_0x5d936e,_0x4f27d4[_0x21bd21(0x248)](_0x4f27d4[_0x21bd21(0x1b4)],_0x3c8ece));}}});}[_0xa011bf(0x218)](){const _0x56803c=_0xa011bf,_0x548065={'jaMWc':function(_0x2a96ef,_0x4d3b9f){return _0x2a96ef===_0x4d3b9f;},'GGChu':function(_0x2e7142,_0x2485b1){return _0x2e7142(_0x2485b1);},'Canya':function(_0x1f90d5,_0xe64109){return _0x1f90d5+_0xe64109;},'jisQL':_0x56803c(0x1ee),'HFbnK':_0x56803c(0x235),'uBsGz':function(_0x49f42b,_0x2683b7){return _0x49f42b(_0x2683b7);},'kqStv':function(_0x5576a2,_0x3d379b){return _0x5576a2+_0x3d379b;},'jKYaQ':_0x56803c(0x251),'IJUwC':function(_0x372d72,_0x2f3378){return _0x372d72/_0x2f3378;},'TadIN':_0x56803c(0x23d)},_0x25e59d=new MsgListener();_0x25e59d[_0x56803c(0x1d6)]=_0x52eeb3=>{const _0x775f70=_0x56803c;_0x52eeb3[_0x775f70(0x223)](_0xe977d4=>{const _0x1586f5=_0x775f70;_0x548065[_0x1586f5(0x1ef)](_0xe977d4[_0x1586f5(0x253)],0x2)&&_0x548065[_0x1586f5(0x1b0)](log,_0x548065['Canya'](_0x548065[_0x1586f5(0x1ba)],_0xe977d4[_0x1586f5(0x1e6)])+_0x548065[_0x1586f5(0x23b)]);});},_0x25e59d[_0x56803c(0x1c1)]=_0x1ff2a9=>{const _0x4a8ee9=_0x56803c;_0x548065[_0x4a8ee9(0x1c9)](log,_0x548065[_0x4a8ee9(0x1ff)](_0x548065[_0x4a8ee9(0x254)]+_0x1ff2a9[_0x4a8ee9(0x1b3)]+']\x20',_0x1ff2a9[_0x4a8ee9(0x219)]));},_0x25e59d[_0x56803c(0x1fb)]=_0x48d7e5=>{const _0x58ea31=_0x56803c;stat[_0x58ea31(0x222)]+=0x1,_0x48d7e5['map'](_0x281c2d=>{const _0x41928c=_0x58ea31;_0x548065[_0x41928c(0x1ef)](_0x281c2d[_0x41928c(0x1d9)],'0')?dbUtil['addMsg'](_0x281c2d)[_0x41928c(0x221)]()[_0x41928c(0x214)]():dbUtil[_0x41928c(0x1f7)](_0x281c2d['msgId'])[_0x41928c(0x221)](_0x3bdefd=>{const _0x3c9972=_0x41928c;_0x3bdefd&&(_0x3bdefd[_0x3c9972(0x1d9)]=_0x281c2d[_0x3c9972(0x1d9)],dbUtil['updateMsg'](_0x3bdefd)[_0x3c9972(0x221)]());});});},_0x25e59d[_0x56803c(0x1e9)]=_0xc1d10=>{const _0x4eebd8=_0x56803c;stat[_0x4eebd8(0x1af)]+=0x1,stat[_0x4eebd8(0x21b)]+=0x1,stat['last_message_time']=Math[_0x4eebd8(0x225)](_0x548065['IJUwC'](Date['now'](),0x3e8));},_0x25e59d[_0x56803c(0x237)]=_0x3c303f=>{const _0x4c0729=_0x56803c;stat['packet_received']+=0x1,stat[_0x4c0729(0x22e)]+=_0x3c303f[_0x4c0729(0x1bc)],stat[_0x4c0729(0x203)]=Math[_0x4c0729(0x225)](_0x548065[_0x4c0729(0x1b8)](Date[_0x4c0729(0x244)](),0x3e8));},_0x25e59d['onRecvSysMsg']=(..._0x32438f)=>{const _0x279177=_0x56803c;stat[_0x279177(0x222)]+=0x1;},this[_0x56803c(0x1f3)](_0x25e59d);const _0x5c35a9=new BuddyListener();_0x5c35a9['onBuddyListChange']=_0x461ec2=>{const _0xb6ded9=_0x56803c;rawFriends[_0xb6ded9(0x1bc)]=0x0,rawFriends['push'](..._0x461ec2);for(const _0x259d75 of _0x461ec2){for(const _0xed8c31 of _0x259d75['buddyList']){const _0x11779e=friends['get'](_0xed8c31[_0xb6ded9(0x209)]);uid2UinMap[_0xed8c31[_0xb6ded9(0x209)]]=_0xed8c31[_0xb6ded9(0x200)],_0x11779e?Object['assign'](_0x11779e,_0xed8c31):friends['set'](_0xed8c31[_0xb6ded9(0x209)],_0xed8c31);}}},this['addListener'](_0x5c35a9),this[_0x56803c(0x212)]['getBuddyService']()[_0x56803c(0x1ce)](!![])[_0x56803c(0x221)](_0x290208=>{});const _0x80682e=new ProfileListener();_0x80682e[_0x56803c(0x1e4)]=_0x20f6da=>{const _0x2ed20c=_0x56803c;_0x548065['jaMWc'](_0x20f6da['uid'],selfInfo[_0x2ed20c(0x209)])&&Object[_0x2ed20c(0x1bd)](selfInfo,_0x20f6da);},_0x80682e[_0x56803c(0x1be)]=_0x567f08=>{},this[_0x56803c(0x1f3)](_0x80682e);const _0x581c21=new GroupListener();_0x581c21['onGroupListUpdate']=(_0x13d825,_0x2fa6d4)=>{const _0x43d7fb=_0x56803c,_0x343f9a={'frAOu':_0x548065[_0x43d7fb(0x1d4)]};_0x2fa6d4[_0x43d7fb(0x223)](_0x3c7618=>{const _0x3a2f47=_0x43d7fb,_0x28f299=groups[_0x3a2f47(0x239)](_0x3c7618['groupCode']);if(_0x28f299)Object[_0x3a2f47(0x1bd)](_0x28f299,_0x3c7618);else{groups['set'](_0x3c7618[_0x3a2f47(0x22d)],_0x3c7618);const _0xf31988=this[_0x3a2f47(0x212)]['getGroupService']()[_0x3a2f47(0x1de)](_0x3c7618[_0x3a2f47(0x22d)],_0x343f9a[_0x3a2f47(0x228)]);this[_0x3a2f47(0x212)][_0x3a2f47(0x22a)]()[_0x3a2f47(0x1d2)](_0xf31988,undefined,0xbb8)[_0x3a2f47(0x221)](_0x57b587=>{});}});},_0x581c21['onMemberListChange']=_0x10edb6=>{const _0x27ec45=_0x56803c,_0x26a351=_0x10edb6[_0x27ec45(0x240)]['split']('_')[0x0];if(groupMembers[_0x27ec45(0x24b)](_0x26a351)){const _0x5e5ebc=groupMembers[_0x27ec45(0x239)](_0x26a351);_0x10edb6[_0x27ec45(0x23f)][_0x27ec45(0x227)]((_0x538ccd,_0x4bd8ce)=>{const _0x4c71bd=_0x27ec45,_0x47e4e9=_0x5e5ebc[_0x4c71bd(0x239)](_0x4bd8ce);_0x47e4e9?Object[_0x4c71bd(0x1bd)](_0x47e4e9,_0x538ccd):_0x5e5ebc[_0x4c71bd(0x1ae)](_0x4bd8ce,_0x538ccd);});}else groupMembers[_0x27ec45(0x1ae)](_0x26a351,_0x10edb6[_0x27ec45(0x23f)]);},_0x581c21['onMemberInfoChange']=(_0x3acd23,_0x18444a,_0x272466)=>{const _0x468c2a=_0x56803c;_0x272466[_0x468c2a(0x227)]((_0x17334d,_0x4ca92e)=>{const _0xd40d62=_0x468c2a;uid2UinMap[_0x4ca92e]=_0x17334d[_0xd40d62(0x200)];});const _0x413e83=groupMembers[_0x468c2a(0x239)](_0x3acd23);_0x413e83?_0x272466[_0x468c2a(0x227)]((_0x53bb26,_0x1fbf2c)=>{const _0x54c49c=_0x468c2a,_0x2bb640=_0x413e83[_0x54c49c(0x239)](_0x1fbf2c);_0x2bb640?Object[_0x54c49c(0x1bd)](_0x2bb640,_0x53bb26):_0x413e83['set'](_0x1fbf2c,_0x53bb26);}):groupMembers[_0x468c2a(0x1ae)](_0x3acd23,_0x272466);},this[_0x56803c(0x1f3)](_0x581c21);}[_0xa011bf(0x1f3)](_0x286231){const _0x186acf=_0xa011bf,_0x3c52ba={'pgvzj':_0x186acf(0x208),'Ugrjy':_0x186acf(0x1ec),'RypFL':'MsgListener','irzHP':'ProfileListener'};_0x286231=new Proxy(_0x286231,this[_0x186acf(0x1f5)]);switch(_0x286231['constructor'][_0x186acf(0x1ca)]){case _0x3c52ba[_0x186acf(0x1cb)]:{return this['session'][_0x186acf(0x1fc)]()[_0x186acf(0x242)](new _0x15c0b0[(_0x186acf(0x1d0))](_0x286231));}case _0x3c52ba[_0x186acf(0x1f9)]:{return this['session'][_0x186acf(0x22a)]()[_0x186acf(0x1f4)](new _0x15c0b0['NodeIKernelGroupListener'](_0x286231));}case _0x3c52ba[_0x186acf(0x1b2)]:{return this['session'][_0x186acf(0x224)]()[_0x186acf(0x1c7)](new _0x15c0b0[(_0x186acf(0x1ed))](_0x286231));}case _0x3c52ba[_0x186acf(0x1f1)]:{return this[_0x186acf(0x212)][_0x186acf(0x24d)]()['addKernelProfileListener'](new _0x15c0b0[(_0x186acf(0x1c0))](_0x286231));}default:return-0x1;}}[_0xa011bf(0x1e8)](_0x372cae){const _0x4395e9=_0xa011bf;this[_0x4395e9(0x213)][_0x4395e9(0x255)](_0x372cae);}async['quickLogin'](_0x173799){const _0x599067=_0xa011bf,_0x51dfb2={'lnddi':function(_0x2d0fe0,_0x2a4c92){return _0x2d0fe0!==_0x2a4c92;},'krfZd':_0x599067(0x21e),'oqomb':function(_0x53f62a,_0x3129ea){return _0x53f62a(_0x3129ea);},'fvAyX':function(_0x35f5b8,_0xf6a9e3){return _0x35f5b8+_0xf6a9e3;}},_0x1b629c=await this[_0x599067(0x250)][_0x599067(0x226)]();if(_0x51dfb2['lnddi'](_0x1b629c[_0x599067(0x204)],0x0))throw new Error(_0x51dfb2[_0x599067(0x246)]);const _0x4e99a1=_0x1b629c[_0x599067(0x230)]['find'](_0x69e579=>_0x69e579[_0x599067(0x200)]===_0x173799);if(!_0x4e99a1||!_0x4e99a1?.[_0x599067(0x1ab)])throw new Error(_0x173799+'快速登录不可用');await _0x51dfb2['oqomb'](sleep,0x3e8);const _0x5d0175=await this[_0x599067(0x250)][_0x599067(0x20f)](_0x173799);if(!_0x5d0175[_0x599067(0x204)])throw new Error(_0x51dfb2[_0x599067(0x22f)]('快速登录失败\x20',_0x5d0175[_0x599067(0x205)][_0x599067(0x202)]));return _0x5d0175;}async['qrLogin'](_0x5e76f7){return new Promise((_0x56005c,_0x4f2ab5)=>{const _0x56903e=_0x4886;this[_0x56903e(0x1dd)]['onQRCodeGetPicture']=_0x464ef8=>{const _0x4edf40=_0x56903e,_0x46e256=_0x464ef8[_0x4edf40(0x20d)]['split'](_0x4edf40(0x1e5))[0x1],_0x16e4b5=Buffer['from'](_0x46e256,_0x4edf40(0x1b7));_0x5e76f7(_0x464ef8[_0x4edf40(0x1da)],_0x464ef8[_0x4edf40(0x20d)],_0x16e4b5);},this[_0x56903e(0x250)][_0x56903e(0x217)]();});}async[_0xa011bf(0x236)](_0x5ca939,_0x3c1c7b,_0x5e2632,_0x53172f,_0x1a3882){const _0xefd738=_0xa011bf,_0x1f12cb={'GAliN':_0xefd738(0x22c),'zybwb':_0xefd738(0x1c8),'MXVoh':function(_0x557745,_0xa766bf){return _0x557745&&_0xa766bf;},'EbhiW':function(_0x50538e,_0x4318a3){return _0x50538e||_0x4318a3;},'AxLsQ':function(_0x41242e,_0x2d74d8){return _0x41242e(_0x2d74d8);},'YqPXx':_0xefd738(0x1c3)},_0x148247=_0x23e424['createHash'](_0x1f12cb['GAliN'])['update'](_0x3c1c7b)['digest'](_0x1f12cb[_0xefd738(0x20c)]),_0x537f16={'uin':_0x5ca939,'passwordMd5':_0x148247,'step':_0x1f12cb[_0xefd738(0x234)](_0x5e2632,_0x53172f)&&_0x1a3882?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x1f12cb[_0xefd738(0x231)](_0x5e2632,''),'proofWaterRand':_0x1f12cb['EbhiW'](_0x53172f,''),'proofWaterSid':_0x1a3882||''};await this[_0xefd738(0x250)]['getLoginList'](),await _0x1f12cb[_0xefd738(0x1d7)](sleep,0x3e8);const _0x426ca2=await this[_0xefd738(0x250)][_0xefd738(0x236)](_0x537f16);switch(_0x426ca2[_0xefd738(0x204)]){case'0':{break;}case _0x1f12cb[_0xefd738(0x1e1)]:{break;}case'4':case'140022013':default:}}async[_0xa011bf(0x23e)](){const _0x208b69=_0xa011bf,_0x39919a=await this[_0x208b69(0x250)]['getLoginList']();return _0x39919a;}}export const napCatCore=new NapCatCore(); \ No newline at end of file +const _0xd306d9=_0x2a9d;(function(_0x340daf,_0x3378d3){const _0x1b92d2=_0x2a9d,_0x2f2687=_0x340daf();while(!![]){try{const _0x514756=-parseInt(_0x1b92d2(0x15e))/0x1*(parseInt(_0x1b92d2(0x1ab))/0x2)+parseInt(_0x1b92d2(0x1e7))/0x3*(parseInt(_0x1b92d2(0x1ce))/0x4)+-parseInt(_0x1b92d2(0x1a6))/0x5+parseInt(_0x1b92d2(0x16c))/0x6+-parseInt(_0x1b92d2(0x192))/0x7*(parseInt(_0x1b92d2(0x180))/0x8)+parseInt(_0x1b92d2(0x13b))/0x9+-parseInt(_0x1b92d2(0x146))/0xa*(-parseInt(_0x1b92d2(0x16e))/0xb);if(_0x514756===_0x3378d3)break;else _0x2f2687['push'](_0x2f2687['shift']());}catch(_0x3b540d){_0x2f2687['push'](_0x2f2687['shift']());}}}(_0x23bd,0x864b5));import _0x11f17b from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';function _0x2a9d(_0x44b9c2,_0xd4240c){const _0x23bd7e=_0x23bd();return _0x2a9d=function(_0x2a9d59,_0x4d668b){_0x2a9d59=_0x2a9d59-0x139;let _0x5c288c=_0x23bd7e[_0x2a9d59];return _0x5c288c;},_0x2a9d(_0x44b9c2,_0xd4240c);}import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x193dd0 from'node:path';import _0x5058d6 from'node:os';import _0x4ac7f9 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 _0x34293b from'node:crypto';import{rawFriends,friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';function _0x23bd(){const _0x9bb1ea=['set','initConfig','addMsg','sLKsq','uin','addKernelProfileListener','isQuickLogin','OrUxB','McWSp','getGroupService','\x20has\x20no\x20method\x20','VyTXj','get','BTPBW','getMsgByLongId','XHEfI','账号设备(','onSessionInitComplete','addKernelLoginListener','CIEdY','addListener','onKickedOffLine','RqPdz','getQuickLoginList','zEDGE','417524XTWEAP','groupCode','read','jpVAD','session','TUUtT','当前账号(','srHbn','onSelfStatusChanged','AjySs','140022013','TvcwJ','then','loginListener','NodeIKernelProfileListener','DLZkA','TVhaz','base64','buddyList','NodeQQNTWrapperUtil','TxbEQ','ElFcU','loginService','onLineDev','GrKes','6OrDuyz','onUserLoggedIn','getNTUserDataInfoConfig','map','KTvNu','consoleLogLevel','快速登录不可用','onLoginSuccessFuncList','dwtst','rscoS','message_sent','293850kkKTgq','tipsTitle','proxyHandler','MsgListener','passwordLogin','onLoginFailed','启动失败:\x20','fileLogLevel','UCGaQ','ProfileListener','onMemberListChange','50gDLowg','NodeIQQNTWrapperSession','length','NodeIQQNTWrapperEngine','数据库初始化失败','getProfileService','resolve','has','addKernelGroupListener','constructor','initSession\x20failed','onProfileDetailInfoChanged','msgId','qrLogin','homedir','onBuddyListChange','consoleLog','qrcodeUrl','name','clientType','update','engine','pngBase64QrcodeData','rUnxT','1681rgktbD','GkaQj','forEach','NodeIDispatcherAdapter','assign','message_received','[KickedOffLine]\x20[','mkdirSync','updateMsg','EXMqy','YDIEF','快速登录失败\x20','addKernelBuddyListener','init\x20failed\x20','5159676KHfDPq','JDoas','1117765MmOwat','createMemberListScene','init','BcTgb','stringify','140022008','matiC','onAddSendMsg','NodeIGlobalAdapter','NodeIKernelBuddyListener','last_message_time','getMsgService','NodeIKernelLoginListener','errMsg','tipsDesc','Uwcug','push','kkYrd','8YcbnyT','getBuddyList','devUid','onRecvMsg','floor','Windows\x2010\x20Pro','没有可快速登录的QQ号','result','loginErrorInfo','_GW_B','./.config/QQ','LocalLoginInfoList','vhLot','ToiMj','sXHVS','GGZvM','catch','onMemberInfoChange','1093001hRxAGs','util','xNVbs','initWithDeskTopConfig','NodeIDependsAdapter','NodeIKernelLoginService','onMsgInfoListUpdate','find','now','startNT','packet_sent','initDataListener','getQRCodePicture','infos','QVjcq',')\x20在线状态变更','V1_WIN_NQ_','getLoginList','getBuddyService','split','2053440dhKPQN','groupMemberList_MainWindow','dataPathGlobal','GroupListener','dataPath','586ccHrsj','fileLog','recallTime','createHash','initSession','upOlw','uid','NodeIKernelSessionListener','packet_received','fBcpv'];_0x23bd=function(){return _0x9bb1ea;};return _0x23bd();}export class NapCatCore{['session'];[_0xd306d9(0x193)];[_0xd306d9(0x15b)];['loginService'];[_0xd306d9(0x1db)];['onLoginSuccessFuncList']=[];[_0xd306d9(0x13d)]={'get'(target,prop,receiver){const _0x214e35=_0xd306d9,fkhBOG={'TxbEQ':function(x,y){return x===y;},'QVjcq':'undefined'};if(fkhBOG[_0x214e35(0x1e2)](typeof target[prop],fkhBOG[_0x214e35(0x1a0)]))return(...args)=>{const _0x407d93=_0x214e35;logDebug(target[_0x407d93(0x14f)][_0x407d93(0x158)]+_0x407d93(0x1bf)+prop);};return Reflect[_0x214e35(0x1c1)](target,prop,receiver);}};constructor(){const _0x584467=_0xd306d9,_0x1177c7={'vhLot':function(_0x43cc69,_0x4bce2c){return _0x43cc69(_0x4bce2c);},'JDoas':function(_0x243c26,_0x5992bc){return _0x243c26+_0x5992bc;},'ToiMj':')已登录,无法重复登录','OrUxB':function(_0xc75f1a,_0x9fc94,_0x59affb){return _0xc75f1a(_0x9fc94,_0x59affb);},'McWSp':function(_0x407a9c,_0x5b3db8){return _0x407a9c(_0x5b3db8);},'EXMqy':'本账号数据/缓存目录:','Uwcug':_0x584467(0x14a),'srHbn':'登录失败','GrKes':function(_0x22c24a,_0x2fabbf){return _0x22c24a==_0x2fabbf;},'RqPdz':function(_0x348d86,_0x17425b){return _0x348d86==_0x17425b;},'ILTTK':function(_0x1254ff,_0x267d1c,_0x1f8646){return _0x1254ff(_0x267d1c,_0x1f8646);}};this[_0x584467(0x15b)]=new _0x11f17b[(_0x584467(0x149))](),this[_0x584467(0x193)]=new _0x11f17b[(_0x584467(0x1e1))](),this[_0x584467(0x1e4)]=new _0x11f17b[(_0x584467(0x197))](),this[_0x584467(0x1d2)]=new _0x11f17b[(_0x584467(0x147))](),this[_0x584467(0x1db)]=new LoginListener(),this['loginListener'][_0x584467(0x1e8)]=_0x2ec763=>{const _0x281a44=_0x584467;_0x1177c7[_0x281a44(0x18c)](logError,_0x1177c7[_0x281a44(0x16d)](_0x1177c7['JDoas'](_0x281a44(0x1d4),_0x2ec763),_0x1177c7[_0x281a44(0x18d)]));},this[_0x584467(0x1db)]['onQRCodeLoginSucceed']=_0xe6792c=>{const _0x1acb63=_0x584467,_0x57e4bc={'bBpHX':_0x1177c7[_0x1acb63(0x17d)],'sLKsq':function(_0x16f95e,_0x570534,_0xd0ceb6){return _0x1177c7['OrUxB'](_0x16f95e,_0x570534,_0xd0ceb6);},'YDIEF':_0x1acb63(0x150)};this[_0x1acb63(0x1af)](_0xe6792c['uin'],_0xe6792c[_0x1acb63(0x1b1)])[_0x1acb63(0x1da)](_0x50e75a=>{const _0x5beac5=_0x1acb63,_0x5bca8e={'YuuRh':function(_0xfd1574,_0x270034,_0x1d1be0){const _0x56231f=_0x2a9d;return _0x1177c7[_0x56231f(0x1bc)](_0xfd1574,_0x270034,_0x1d1be0);}};selfInfo[_0x5beac5(0x1b9)]=_0xe6792c[_0x5beac5(0x1b9)],selfInfo[_0x5beac5(0x1b1)]=_0xe6792c[_0x5beac5(0x1b1)],napCatConfig[_0x5beac5(0x1d0)](),_0x1177c7[_0x5beac5(0x1bc)](setLogLevel,napCatConfig[_0x5beac5(0x142)],napCatConfig[_0x5beac5(0x1ec)]),enableFileLog(napCatConfig[_0x5beac5(0x1ac)]),_0x1177c7[_0x5beac5(0x1bd)](enableConsoleLog,napCatConfig[_0x5beac5(0x156)]),_0x1177c7[_0x5beac5(0x18c)](setLogSelfInfo,selfInfo);const _0x175b08=_0x193dd0[_0x5beac5(0x14c)](this[_0x5beac5(0x1aa)],'./NapCat/data');_0x4ac7f9[_0x5beac5(0x165)](_0x175b08,{'recursive':!![]}),_0x1177c7[_0x5beac5(0x1bc)](logDebug,_0x1177c7[_0x5beac5(0x167)],_0x175b08),dbUtil[_0x5beac5(0x170)](_0x193dd0[_0x5beac5(0x14c)](_0x175b08,'./'+_0xe6792c[_0x5beac5(0x1b9)]+'-v2.db'))[_0x5beac5(0x1da)](()=>{const _0x48c193=_0x5beac5,_0x4e13ed={'DLZkA':function(_0x42893b,_0x54b0eb,_0x3e4685){return _0x5bca8e['YuuRh'](_0x42893b,_0x54b0eb,_0x3e4685);}};this[_0x48c193(0x19d)](),this['onLoginSuccessFuncList'][_0x48c193(0x1ea)](_0x115800=>{const _0x5b9e13=_0x48c193,_0x1dac77={'HMwcm':function(_0x381845,_0x47222d,_0x12e052){const _0x33029e=_0x2a9d;return _0x4e13ed[_0x33029e(0x1dd)](_0x381845,_0x47222d,_0x12e052);},'ppELX':function(_0x54b57f,_0x3ff130){return _0x54b57f instanceof _0x3ff130;}};new Promise((_0xbdbad,_0x560c49)=>{const _0x5037d2=_0x2a9d,_0x4b7880=_0x1dac77['HMwcm'](_0x115800,_0xe6792c[_0x5037d2(0x1b9)],_0xe6792c[_0x5037d2(0x1b1)]);_0x1dac77['ppELX'](_0x4b7880,Promise)&&_0x4b7880[_0x5037d2(0x1da)](_0xbdbad)[_0x5037d2(0x190)](_0x560c49);})[_0x5b9e13(0x1da)]();});})[_0x5beac5(0x190)](_0x4beb2d=>{logError(_0x57e4bc['bBpHX'],_0x4beb2d);});})['catch'](_0x138075=>{const _0x38a798=_0x1acb63;_0x57e4bc[_0x38a798(0x1b8)](logError,_0x57e4bc[_0x38a798(0x168)],_0x138075);throw new Error(_0x38a798(0x141)+JSON[_0x38a798(0x172)](_0x138075));});},this['loginListener']['onQRCodeSessionFailed']=(_0x421fc2,_0x326b41,_0x4f5497)=>{const _0x40c83b=_0x584467;_0x1177c7[_0x40c83b(0x1bc)](logError,_0x1177c7[_0x40c83b(0x1d5)],_0x4f5497),_0x1177c7[_0x40c83b(0x1e6)](_0x421fc2,0x1)&&_0x1177c7[_0x40c83b(0x1cb)](_0x326b41,0x3)&&this[_0x40c83b(0x1e4)]['getQRCodePicture']();},this[_0x584467(0x1db)][_0x584467(0x140)]=_0x22854f=>{_0x1177c7['ILTTK'](logError,_0x1177c7['srHbn'],_0x22854f);},this[_0x584467(0x1db)]=new Proxy(this[_0x584467(0x1db)],this[_0x584467(0x13d)]),this[_0x584467(0x1e4)][_0x584467(0x1c7)](new _0x11f17b[(_0x584467(0x17a))](this['loginListener'])),this[_0x584467(0x1b6)]();}get[_0xd306d9(0x1aa)](){const _0x3bad54=_0xd306d9;let _0x46f49e=this['util'][_0x3bad54(0x1e9)]();return!_0x46f49e&&(_0x46f49e=_0x193dd0['resolve'](_0x5058d6[_0x3bad54(0x154)](),_0x3bad54(0x18a)),_0x4ac7f9[_0x3bad54(0x165)](_0x46f49e,{'recursive':!![]})),_0x46f49e;}get[_0xd306d9(0x1a8)](){const _0x583d0d=_0xd306d9,_0x2cb4b4={'upOlw':'./nt_qq/global'};return _0x193dd0['resolve'](this[_0x583d0d(0x1aa)],_0x2cb4b4[_0x583d0d(0x1b0)]);}[_0xd306d9(0x1b6)](){const _0x54a11b=_0xd306d9,_0x1ca85c={'sXHVS':_0x54a11b(0x185)};this['engine'][_0x54a11b(0x195)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo['curVersion'],'os_version':_0x1ca85c[_0x54a11b(0x18e)],'use_xlog':!![],'qua':_0x54a11b(0x1a2)+qqVersionConfigInfo['curVersion']['replace']('-','_')+_0x54a11b(0x189),'global_path_config':{'desktopGlobalPath':this[_0x54a11b(0x1a8)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x11f17b[(_0x54a11b(0x176))](new GlobalAdapter())),this[_0x54a11b(0x1e4)]['initConfig']({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x54a11b(0x1a8)],'clientVer':qqVersionConfigInfo['curVersion'],'hostName':hostname});}[_0xd306d9(0x1af)](_0x201df6,_0x244c2d){const _0x5c4a41={'KTvNu':function(_0x137f63,_0x1b1666){return _0x137f63(_0x1b1666);},'TVhaz':function(_0x4701ce,_0x125254){return _0x4701ce+_0x125254;}};return new Promise((_0x5d5584,_0x442a39)=>{const _0x461113=_0x2a9d,_0x19d027={'iqEWd':function(_0x36798e,_0x106d03){const _0x95774e=_0x2a9d;return _0x5c4a41[_0x95774e(0x1eb)](_0x36798e,_0x106d03);}},_0x2314fa=genSessionConfig(_0x201df6,_0x244c2d,this[_0x461113(0x1aa)]),_0x2fd793=new SessionListener();_0x2fd793[_0x461113(0x1c6)]=_0x255746=>{if(_0x255746===0x0)return _0x19d027['iqEWd'](_0x5d5584,0x0);_0x442a39(_0x255746);},this[_0x461113(0x1d2)]['init'](_0x2314fa,new _0x11f17b[(_0x461113(0x196))](new DependsAdapter()),new _0x11f17b[(_0x461113(0x161))](new DispatcherAdapter()),new _0x11f17b[(_0x461113(0x1b2))](_0x2fd793));try{this['session'][_0x461113(0x19b)](0x0);}catch(_0x46347f){try{this[_0x461113(0x1d2)][_0x461113(0x19b)]();}catch(_0x34ac66){_0x442a39(_0x5c4a41[_0x461113(0x1de)](_0x461113(0x16b),_0x34ac66));}}});}[_0xd306d9(0x19d)](){const _0x198b82=_0xd306d9,_0xebf5ff={'UCGaQ':function(_0x5e78df,_0x44c0a5){return _0x5e78df+_0x44c0a5;},'BcTgb':_0x198b82(0x1c5),'VyTXj':function(_0x4e43f7,_0xa7904){return _0x4e43f7(_0xa7904);},'AjySs':function(_0x1e22f1,_0x2bbc45){return _0x1e22f1===_0x2bbc45;},'TUUtT':function(_0x36cac6,_0x1a2ded){return _0x36cac6/_0x1a2ded;}},_0x588c23=new MsgListener();_0x588c23[_0x198b82(0x1e5)]=_0x4ef3ff=>{const _0x4fe8e4=_0x198b82,_0x92aa7a={'GGZvM':function(_0x433011,_0x115809){return _0x433011(_0x115809);},'xNVbs':function(_0x5c91fe,_0x3eb6a3){const _0x20cf97=_0x2a9d;return _0xebf5ff[_0x20cf97(0x143)](_0x5c91fe,_0x3eb6a3);},'GkaQj':_0xebf5ff[_0x4fe8e4(0x171)]};_0x4ef3ff[_0x4fe8e4(0x1ea)](_0x194177=>{const _0x4e9528=_0x4fe8e4;_0x194177[_0x4e9528(0x159)]===0x2&&_0x92aa7a[_0x4e9528(0x18f)](log,_0x92aa7a[_0x4e9528(0x194)](_0x92aa7a[_0x4e9528(0x194)](_0x92aa7a[_0x4e9528(0x15f)],_0x194177[_0x4e9528(0x182)]),_0x4e9528(0x1a1)));});},_0x588c23[_0x198b82(0x1ca)]=_0x2ffa24=>{const _0x177b57=_0x198b82;_0xebf5ff[_0x177b57(0x1c0)](log,_0xebf5ff[_0x177b57(0x143)](_0xebf5ff[_0x177b57(0x143)](_0x177b57(0x164),_0x2ffa24[_0x177b57(0x13c)]),']\x20')+_0x2ffa24[_0x177b57(0x17c)]);},_0x588c23[_0x198b82(0x198)]=_0xec7437=>{const _0x2a8ff4=_0x198b82;stat[_0x2a8ff4(0x1b3)]+=0x1,_0xec7437[_0x2a8ff4(0x1ea)](_0xf077d8=>{const _0x401dff=_0x2a8ff4;_0xebf5ff[_0x401dff(0x1d7)](_0xf077d8['recallTime'],'0')?dbUtil[_0x401dff(0x1b7)](_0xf077d8)[_0x401dff(0x1da)]()[_0x401dff(0x190)]():dbUtil[_0x401dff(0x1c3)](_0xf077d8[_0x401dff(0x152)])[_0x401dff(0x1da)](_0x29e480=>{const _0x41fe0b=_0x401dff;_0x29e480&&(_0x29e480[_0x41fe0b(0x1ad)]=_0xf077d8['recallTime'],dbUtil[_0x41fe0b(0x166)](_0x29e480)[_0x41fe0b(0x1da)]());});});},_0x588c23[_0x198b82(0x175)]=_0x417c81=>{const _0x334883=_0x198b82;stat[_0x334883(0x19c)]+=0x1,stat[_0x334883(0x13a)]+=0x1,stat[_0x334883(0x178)]=Math[_0x334883(0x184)](_0xebf5ff[_0x334883(0x1d3)](Date[_0x334883(0x19a)](),0x3e8));},_0x588c23[_0x198b82(0x183)]=_0x3a809a=>{const _0x2d162a=_0x198b82;stat[_0x2d162a(0x1b3)]+=0x1,stat[_0x2d162a(0x163)]+=_0x3a809a[_0x2d162a(0x148)],stat[_0x2d162a(0x178)]=Math[_0x2d162a(0x184)](Date[_0x2d162a(0x19a)]()/0x3e8);},_0x588c23['onRecvSysMsg']=(..._0x39e7af)=>{const _0x430c98=_0x198b82;stat[_0x430c98(0x1b3)]+=0x1;},this[_0x198b82(0x1c9)](_0x588c23);const _0x33c77c=new BuddyListener();_0x33c77c[_0x198b82(0x155)]=_0x21abd5=>{const _0x4ed84b=_0x198b82;rawFriends[_0x4ed84b(0x148)]=0x0,rawFriends['push'](..._0x21abd5);for(const _0xd58dc2 of _0x21abd5){for(const _0x426856 of _0xd58dc2[_0x4ed84b(0x1e0)]){const _0x64283=friends[_0x4ed84b(0x1c1)](_0x426856['uid']);uid2UinMap[_0x426856[_0x4ed84b(0x1b1)]]=_0x426856[_0x4ed84b(0x1b9)],_0x64283?Object[_0x4ed84b(0x162)](_0x64283,_0x426856):friends[_0x4ed84b(0x1b5)](_0x426856['uid'],_0x426856);}}},this[_0x198b82(0x1c9)](_0x33c77c),this['session']['getBuddyService']()[_0x198b82(0x181)](!![])[_0x198b82(0x1da)](_0x5da6f4=>{});const _0x30c08d=new ProfileListener();_0x30c08d[_0x198b82(0x151)]=_0x16ccf1=>{const _0xc612e1=_0x198b82;_0x16ccf1[_0xc612e1(0x1b1)]===selfInfo[_0xc612e1(0x1b1)]&&Object[_0xc612e1(0x162)](selfInfo,_0x16ccf1);},_0x30c08d[_0x198b82(0x1d6)]=_0x33bfca=>{},this['addListener'](_0x30c08d);const _0x5a2006=new GroupListener();_0x5a2006['onGroupListUpdate']=(_0x22c8b6,_0x27d091)=>{const _0x5d97f3=_0x198b82,_0x3b803c={'BTPBW':_0x5d97f3(0x1a7)};_0x27d091[_0x5d97f3(0x1ea)](_0x5637c8=>{const _0x46e322=_0x5d97f3,_0x49321f=groups[_0x46e322(0x1c1)](_0x5637c8[_0x46e322(0x1cf)]);if(_0x49321f)Object[_0x46e322(0x162)](_0x49321f,_0x5637c8);else{groups[_0x46e322(0x1b5)](_0x5637c8[_0x46e322(0x1cf)],_0x5637c8);const _0x24ac5c=this['session']['getGroupService']()[_0x46e322(0x16f)](_0x5637c8['groupCode'],_0x3b803c[_0x46e322(0x1c2)]);this[_0x46e322(0x1d2)][_0x46e322(0x1be)]()['getNextMemberList'](_0x24ac5c,undefined,0xbb8)[_0x46e322(0x1da)](_0xf9f2c1=>{});}});},_0x5a2006[_0x198b82(0x145)]=_0x284564=>{const _0x1121e3=_0x198b82,_0x21ef6f=_0x284564['sceneId'][_0x1121e3(0x1a5)]('_')[0x0];if(groupMembers[_0x1121e3(0x14d)](_0x21ef6f)){const _0x274964=groupMembers[_0x1121e3(0x1c1)](_0x21ef6f);_0x284564['infos'][_0x1121e3(0x160)]((_0x1105eb,_0xe436f6)=>{const _0x407675=_0x1121e3,_0x1a6c8a=_0x274964[_0x407675(0x1c1)](_0xe436f6);_0x1a6c8a?Object[_0x407675(0x162)](_0x1a6c8a,_0x1105eb):_0x274964[_0x407675(0x1b5)](_0xe436f6,_0x1105eb);});}else groupMembers[_0x1121e3(0x1b5)](_0x21ef6f,_0x284564[_0x1121e3(0x19f)]);},_0x5a2006[_0x198b82(0x191)]=(_0x32f688,_0xc51ff7,_0x16fce3)=>{const _0x108230=_0x198b82;_0x16fce3['forEach']((_0x269e39,_0x196315)=>{uid2UinMap[_0x196315]=_0x269e39['uin'];});const _0x406c29=groupMembers[_0x108230(0x1c1)](_0x32f688);_0x406c29?_0x16fce3[_0x108230(0x160)]((_0x34d909,_0x44fa4c)=>{const _0x321563=_0x108230,_0x2532a1=_0x406c29[_0x321563(0x1c1)](_0x44fa4c);_0x2532a1?Object[_0x321563(0x162)](_0x2532a1,_0x34d909):_0x406c29['set'](_0x44fa4c,_0x34d909);}):groupMembers[_0x108230(0x1b5)](_0x32f688,_0x16fce3);},this['addListener'](_0x5a2006);}[_0xd306d9(0x1c9)](_0xeb0257){const _0x49ca4d=_0xd306d9,_0x47d158={'ElFcU':_0x49ca4d(0x1a9),'RUUio':_0x49ca4d(0x144)};_0xeb0257=new Proxy(_0xeb0257,this[_0x49ca4d(0x13d)]);switch(_0xeb0257[_0x49ca4d(0x14f)]['name']){case'BuddyListener':{return this['session'][_0x49ca4d(0x1a4)]()[_0x49ca4d(0x16a)](new _0x11f17b[(_0x49ca4d(0x177))](_0xeb0257));}case _0x47d158[_0x49ca4d(0x1e3)]:{return this[_0x49ca4d(0x1d2)][_0x49ca4d(0x1be)]()[_0x49ca4d(0x14e)](new _0x11f17b['NodeIKernelGroupListener'](_0xeb0257));}case _0x49ca4d(0x13e):{return this[_0x49ca4d(0x1d2)][_0x49ca4d(0x179)]()['addKernelMsgListener'](new _0x11f17b['NodeIKernelMsgListener'](_0xeb0257));}case _0x47d158['RUUio']:{return this[_0x49ca4d(0x1d2)][_0x49ca4d(0x14b)]()[_0x49ca4d(0x1ba)](new _0x11f17b[(_0x49ca4d(0x1dc))](_0xeb0257));}default:return-0x1;}}['onLoginSuccess'](_0x131ba1){const _0x35bd1b=_0xd306d9;this[_0x35bd1b(0x1ee)][_0x35bd1b(0x17e)](_0x131ba1);}async['quickLogin'](_0x193e88){const _0x3e4f05=_0xd306d9,_0x194d23={'rUnxT':function(_0x5030a5,_0x4fcbd1){return _0x5030a5!==_0x4fcbd1;},'TvcwJ':_0x3e4f05(0x186),'dwtst':function(_0x402a41,_0x2b408b){return _0x402a41(_0x2b408b);},'pgYiC':function(_0x56c306,_0x587e65){return _0x56c306+_0x587e65;},'jpVAD':_0x3e4f05(0x169)},_0x455d2d=await this['loginService']['getLoginList']();if(_0x194d23[_0x3e4f05(0x15d)](_0x455d2d[_0x3e4f05(0x187)],0x0))throw new Error(_0x194d23[_0x3e4f05(0x1d9)]);const _0x1b7c05=_0x455d2d[_0x3e4f05(0x18b)][_0x3e4f05(0x199)](_0x17bd4b=>_0x17bd4b[_0x3e4f05(0x1b9)]===_0x193e88);if(!_0x1b7c05||!_0x1b7c05?.[_0x3e4f05(0x1bb)])throw new Error(_0x193e88+_0x3e4f05(0x1ed));await _0x194d23[_0x3e4f05(0x1ef)](sleep,0x3e8);const _0xc7a37d=await this[_0x3e4f05(0x1e4)]['quickLoginWithUin'](_0x193e88);if(!_0xc7a37d['result'])throw new Error(_0x194d23['pgYiC'](_0x194d23[_0x3e4f05(0x1d1)],_0xc7a37d[_0x3e4f05(0x188)][_0x3e4f05(0x17b)]));return _0xc7a37d;}async[_0xd306d9(0x153)](_0x558935){const _0x55aa5={'zEDGE':'data:image/png;base64,','XHEfI':function(_0x53fb1c,_0x303d03,_0x2f2b32,_0x291b4b){return _0x53fb1c(_0x303d03,_0x2f2b32,_0x291b4b);}};return new Promise((_0x2e271c,_0x5ee1d3)=>{const _0x52c660=_0x2a9d;this[_0x52c660(0x1db)]['onQRCodeGetPicture']=_0x2db5b9=>{const _0x2929e4=_0x52c660,_0x576e2a=_0x2db5b9[_0x2929e4(0x15c)][_0x2929e4(0x1a5)](_0x55aa5[_0x2929e4(0x1cd)])[0x1],_0x3f2624=Buffer['from'](_0x576e2a,_0x2929e4(0x1df));_0x55aa5[_0x2929e4(0x1c4)](_0x558935,_0x2db5b9[_0x2929e4(0x157)],_0x2db5b9[_0x2929e4(0x15c)],_0x3f2624);},this['loginService'][_0x52c660(0x19e)]();});}async[_0xd306d9(0x13f)](_0x5a09b9,_0xea1034,_0x1ba04b,_0x59084e,_0xb0efa1){const _0x5c8577=_0xd306d9,_0x4295d3={'fBcpv':'md5','kkYrd':function(_0x4ca3cc,_0x468229){return _0x4ca3cc&&_0x468229;},'matiC':function(_0x59f546,_0xf07f5a){return _0x59f546||_0xf07f5a;},'rscoS':function(_0x1e9f71,_0x556974){return _0x1e9f71(_0x556974);},'CIEdY':_0x5c8577(0x173)},_0x44301d=_0x34293b[_0x5c8577(0x1ae)](_0x4295d3[_0x5c8577(0x1b4)])[_0x5c8577(0x15a)](_0xea1034)['digest']('hex'),_0x59cbe4={'uin':_0x5a09b9,'passwordMd5':_0x44301d,'step':_0x4295d3[_0x5c8577(0x17f)](_0x1ba04b,_0x59084e)&&_0xb0efa1?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x1ba04b||'','proofWaterRand':_0x59084e||'','proofWaterSid':_0x4295d3[_0x5c8577(0x174)](_0xb0efa1,'')};await this[_0x5c8577(0x1e4)][_0x5c8577(0x1a3)](),await _0x4295d3[_0x5c8577(0x139)](sleep,0x3e8);const _0x174dbb=await this[_0x5c8577(0x1e4)]['passwordLogin'](_0x59cbe4);switch(_0x174dbb[_0x5c8577(0x187)]){case'0':{break;}case _0x4295d3[_0x5c8577(0x1c8)]:{break;}case'4':case _0x5c8577(0x1d8):default:}}async[_0xd306d9(0x1cc)](){const _0x51db65=_0xd306d9,_0x243ef0=await this[_0x51db65(0x1e4)][_0x51db65(0x1a3)]();return _0x243ef0;}}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 c788339c..40837ed2 100644 --- a/src/core.lib/src/data.js +++ b/src/core.lib/src/data.js @@ -1 +1 @@ -const _0x383f0b=_0x5242;(function(_0x3c87aa,_0x5981a1){const _0x306703=_0x5242,_0x5383e5=_0x3c87aa();while(!![]){try{const _0x14c950=-parseInt(_0x306703(0x1c7))/0x1+-parseInt(_0x306703(0x1c5))/0x2+parseInt(_0x306703(0x1c1))/0x3+parseInt(_0x306703(0x1c3))/0x4+parseInt(_0x306703(0x1bf))/0x5+parseInt(_0x306703(0x1cb))/0x6+-parseInt(_0x306703(0x1d1))/0x7;if(_0x14c950===_0x5981a1)break;else _0x5383e5['push'](_0x5383e5['shift']());}catch(_0x35561c){_0x5383e5['push'](_0x5383e5['shift']());}}}(_0x8cf7,0xacaf1));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};function _0x8cf7(){const _0x3ab2b3=['forEach','delete','5666885yocfOs','find','818712bFlZAj','get','5369200LcxbTt','toString','942736rtMFER','kDSRr','685134zrNMHS','length','from','getGroups','2417796rYIrWP','set','values','getGroupMembers','xDOGQ','NapCat未能正常启动,请检查日志查看错误','9014124DYdtvZ','JImPJ'];_0x8cf7=function(){return _0x3ab2b3;};return _0x8cf7();}export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x1d596b){const _0x4897ae=_0x5242;groups[_0x4897ae(0x1be)](_0x1d596b),groupMembers[_0x4897ae(0x1be)](_0x1d596b);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};function _0x5242(_0x434c0f,_0x126bbb){const _0x8cf79d=_0x8cf7();return _0x5242=function(_0x5242ee,_0xfadb77){_0x5242ee=_0x5242ee-0x1bd;let _0x1f03fe=_0x8cf79d[_0x5242ee];return _0x1f03fe;},_0x5242(_0x434c0f,_0x126bbb);}export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x383f0b(0x1d0)};export async function getFriend(_0x2c220f){const _0x46fe31=_0x383f0b,_0x338723={'kDSRr':function(_0x4ce335,_0x5bded3){return _0x4ce335(_0x5bded3);}};_0x2c220f=_0x2c220f[_0x46fe31(0x1c4)]();if(_0x338723[_0x46fe31(0x1c6)](isNumeric,_0x2c220f)){const _0x56e60a=Array[_0x46fe31(0x1c9)](friends['values']());return _0x56e60a['find'](_0x359ccb=>_0x359ccb['uin']===_0x2c220f);}else return friends[_0x46fe31(0x1c2)](_0x2c220f);}export async function getGroup(_0x6a5972){const _0x482f46=_0x383f0b;let _0x155c49=groups['get'](_0x6a5972[_0x482f46(0x1c4)]());if(!_0x155c49)try{const _0x2b0a1e=await NTQQGroupApi[_0x482f46(0x1ca)]();_0x2b0a1e[_0x482f46(0x1c8)]&&_0x2b0a1e[_0x482f46(0x1bd)](_0x6396be=>{groups['set'](_0x6396be['groupCode'],_0x6396be);});}catch(_0x1f1ea8){return undefined;}return _0x155c49=groups[_0x482f46(0x1c2)](_0x6a5972[_0x482f46(0x1c4)]()),_0x155c49;}export async function getGroupMember(_0x39a37d,_0x57cce4){const _0x455f35=_0x383f0b,_0x5dbdfc={'xDOGQ':function(_0x4e22e4,_0x3c0d48){return _0x4e22e4(_0x3c0d48);},'giMvw':function(_0x4691ea){return _0x4691ea();}};_0x39a37d=_0x39a37d['toString'](),_0x57cce4=_0x57cce4[_0x455f35(0x1c4)]();let _0x5dd0b0=groupMembers[_0x455f35(0x1c2)](_0x39a37d);if(!_0x5dd0b0)try{_0x5dd0b0=await NTQQGroupApi['getGroupMembers'](_0x39a37d),groupMembers[_0x455f35(0x1cc)](_0x39a37d,_0x5dd0b0);}catch(_0x3bdc78){return null;}const _0x30ff99=()=>{const _0x54f859=_0x455f35;let _0x4217ba=undefined;return _0x5dbdfc[_0x54f859(0x1cf)](isNumeric,_0x57cce4)?_0x4217ba=Array['from'](_0x5dd0b0[_0x54f859(0x1cd)]())[_0x54f859(0x1c0)](_0x547ade=>_0x547ade['uin']===_0x57cce4):_0x4217ba=_0x5dd0b0[_0x54f859(0x1c2)](_0x57cce4),_0x4217ba;};let _0x2d464f=_0x5dbdfc['giMvw'](_0x30ff99);return!_0x2d464f&&(_0x5dd0b0=await NTQQGroupApi[_0x455f35(0x1ce)](_0x39a37d),_0x2d464f=_0x30ff99()),_0x2d464f;}export const uid2UinMap={};export function getUidByUin(_0x5d5dee){const _0x59a38b=_0x383f0b,_0x29a184={'JImPJ':function(_0x2e9b63,_0x9b5c3e){return _0x2e9b63===_0x9b5c3e;}};for(const _0x21ebf8 in uid2UinMap){if(_0x29a184[_0x59a38b(0x1d2)](uid2UinMap[_0x21ebf8],_0x5d5dee))return _0x21ebf8;}}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0}; \ No newline at end of file +const _0x57fc90=_0x39a7;(function(_0x5676f2,_0x246ed3){const _0x17e5c0=_0x39a7,_0x50e031=_0x5676f2();while(!![]){try{const _0x2cfce6=parseInt(_0x17e5c0(0xb7))/0x1*(-parseInt(_0x17e5c0(0xae))/0x2)+-parseInt(_0x17e5c0(0xb9))/0x3*(-parseInt(_0x17e5c0(0xb5))/0x4)+-parseInt(_0x17e5c0(0xa9))/0x5+-parseInt(_0x17e5c0(0xac))/0x6*(-parseInt(_0x17e5c0(0xb3))/0x7)+parseInt(_0x17e5c0(0xbf))/0x8+-parseInt(_0x17e5c0(0xb4))/0x9*(-parseInt(_0x17e5c0(0xa7))/0xa)+-parseInt(_0x17e5c0(0xb2))/0xb;if(_0x2cfce6===_0x246ed3)break;else _0x50e031['push'](_0x50e031['shift']());}catch(_0xedd6ae){_0x50e031['push'](_0x50e031['shift']());}}}(_0x2a8c,0xe1e91));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';function _0x2a8c(){const _0xe32f97=['delete','from','6982554cjXArz','length','2kwgHku','uin','vYgKN','toString','19100895zecKFV','7nRmbNV','9hkBEOp','12NEVTwF','groupCode','1671426PccYfE','set','1609689zvOeUG','clulj','getGroups','OAORX','get','find','8032616GBCWDw','NapCat未能正常启动,请检查日志查看错误','forEach','hQwyr','getGroupMembers','12325340ZhHxIq','GZxqA','3384295vEekSh'];_0x2a8c=function(){return _0xe32f97;};return _0x2a8c();}export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x45080d){const _0x1794de=_0x39a7;groups[_0x1794de(0xaa)](_0x45080d),groupMembers[_0x1794de(0xaa)](_0x45080d);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};function _0x39a7(_0x555580,_0x797bd3){const _0x2a8c2a=_0x2a8c();return _0x39a7=function(_0x39a774,_0x3942d9){_0x39a774=_0x39a774-0xa4;let _0x1397cf=_0x2a8c2a[_0x39a774];return _0x1397cf;},_0x39a7(_0x555580,_0x797bd3);}export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x57fc90(0xc0)};export async function getFriend(_0x2e1bbb){const _0x14658c=_0x57fc90,_0x47cb71={'hQwyr':function(_0x32d8f4,_0x392487){return _0x32d8f4(_0x392487);}};_0x2e1bbb=_0x2e1bbb[_0x14658c(0xb1)]();if(_0x47cb71[_0x14658c(0xa5)](isNumeric,_0x2e1bbb)){const _0x5341cc=Array[_0x14658c(0xab)](friends['values']());return _0x5341cc[_0x14658c(0xbe)](_0x44bd0a=>_0x44bd0a[_0x14658c(0xaf)]===_0x2e1bbb);}else return friends[_0x14658c(0xbd)](_0x2e1bbb);}export async function getGroup(_0x52f13a){const _0xa97e2b=_0x57fc90;let _0x5925ba=groups[_0xa97e2b(0xbd)](_0x52f13a[_0xa97e2b(0xb1)]());if(!_0x5925ba)try{const _0x160a07=await NTQQGroupApi[_0xa97e2b(0xbb)]();_0x160a07[_0xa97e2b(0xad)]&&_0x160a07[_0xa97e2b(0xa4)](_0x4016a5=>{const _0xd6a7a3=_0xa97e2b;groups[_0xd6a7a3(0xb8)](_0x4016a5[_0xd6a7a3(0xb6)],_0x4016a5);});}catch(_0x5d1156){return undefined;}return _0x5925ba=groups[_0xa97e2b(0xbd)](_0x52f13a[_0xa97e2b(0xb1)]()),_0x5925ba;}export async function getGroupMember(_0xd0fbfb,_0x409136){const _0x1958ba=_0x57fc90,_0x27cb9c={'GZxqA':function(_0x522511,_0x153cd5){return _0x522511(_0x153cd5);},'clulj':function(_0x23b2c0){return _0x23b2c0();},'OAORX':function(_0x4aa53a){return _0x4aa53a();}};_0xd0fbfb=_0xd0fbfb[_0x1958ba(0xb1)](),_0x409136=_0x409136[_0x1958ba(0xb1)]();let _0x249321=groupMembers['get'](_0xd0fbfb);if(!_0x249321)try{_0x249321=await NTQQGroupApi[_0x1958ba(0xa6)](_0xd0fbfb),groupMembers[_0x1958ba(0xb8)](_0xd0fbfb,_0x249321);}catch(_0x5eaa66){return null;}const _0x19396e=()=>{const _0x4533a5=_0x1958ba;let _0x1e2b5c=undefined;return _0x27cb9c[_0x4533a5(0xa8)](isNumeric,_0x409136)?_0x1e2b5c=Array[_0x4533a5(0xab)](_0x249321['values']())[_0x4533a5(0xbe)](_0xa07385=>_0xa07385[_0x4533a5(0xaf)]===_0x409136):_0x1e2b5c=_0x249321[_0x4533a5(0xbd)](_0x409136),_0x1e2b5c;};let _0x13128b=_0x27cb9c[_0x1958ba(0xba)](_0x19396e);return!_0x13128b&&(_0x249321=await NTQQGroupApi[_0x1958ba(0xa6)](_0xd0fbfb),_0x13128b=_0x27cb9c[_0x1958ba(0xbc)](_0x19396e)),_0x13128b;}export const uid2UinMap={};export function getUidByUin(_0x5a6b6e){const _0x1bac5b=_0x57fc90,_0x38637b={'vYgKN':function(_0x5e63fd,_0x229414){return _0x5e63fd===_0x229414;}};for(const _0x3044c9 in uid2UinMap){if(_0x38637b[_0x1bac5b(0xb0)](uid2UinMap[_0x3044c9],_0x5a6b6e))return _0x3044c9;}}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0}; \ No newline at end of file diff --git a/src/core.lib/src/entities/cache.js b/src/core.lib/src/entities/cache.js index d72535ca..64bd7f93 100644 --- a/src/core.lib/src/entities/cache.js +++ b/src/core.lib/src/entities/cache.js @@ -1 +1 @@ -(function(_0x42146e,_0x11e9c7){var _0x5b9c33=_0x2c26,_0xbb3aa4=_0x42146e();while(!![]){try{var _0x4effa1=parseInt(_0x5b9c33(0xfd))/0x1*(-parseInt(_0x5b9c33(0x10a))/0x2)+-parseInt(_0x5b9c33(0x106))/0x3*(parseInt(_0x5b9c33(0x105))/0x4)+parseInt(_0x5b9c33(0x101))/0x5*(parseInt(_0x5b9c33(0xfa))/0x6)+parseInt(_0x5b9c33(0xfc))/0x7*(-parseInt(_0x5b9c33(0x10b))/0x8)+parseInt(_0x5b9c33(0xf9))/0x9*(-parseInt(_0x5b9c33(0x104))/0xa)+parseInt(_0x5b9c33(0x10c))/0xb*(-parseInt(_0x5b9c33(0xf8))/0xc)+-parseInt(_0x5b9c33(0xfb))/0xd*(-parseInt(_0x5b9c33(0x100))/0xe);if(_0x4effa1===_0x11e9c7)break;else _0xbb3aa4['push'](_0xbb3aa4['shift']());}catch(_0x4cd6c6){_0xbb3aa4['push'](_0xbb3aa4['shift']());}}}(_0x3e68,0x56099));;export var CacheFileType;function _0x3e68(){var _0x31dcf2=['13STbSTa','840756lwOpzu','305ywHHBK','DOCUMENT','IhDFb','17807622IdaxhG','25iNBmqs','psOLI','VIDEO','10JHxhyW','748rLCCUG','7467BgXxXO','OTHER','oDXYf','GvrqJ','2350crwVUn','8jgyyYj','11dAauoN','1789404jdviTd','2551554JxWxwM','548382OiEgaF'];_0x3e68=function(){return _0x31dcf2;};return _0x3e68();}function _0x2c26(_0x289043,_0x1c3794){var _0x3e6824=_0x3e68();return _0x2c26=function(_0x2c2610,_0x33c087){_0x2c2610=_0x2c2610-0xf8;var _0x339f0d=_0x3e6824[_0x2c2610];return _0x339f0d;},_0x2c26(_0x289043,_0x1c3794);}(function(_0x19b248){var _0x5ce77c=_0x2c26,_0x500325={'Zcrec':'1|0|2|4|3','IhDFb':_0x5ce77c(0x103),'psOLI':'IMAGE','GvrqJ':'AUDIO','oDXYf':_0x5ce77c(0x107)},_0x39f9e6=_0x500325['Zcrec']['split']('|'),_0x52d526=0x0;while(!![]){switch(_0x39f9e6[_0x52d526++]){case'0':_0x19b248[_0x19b248[_0x5ce77c(0x103)]=0x1]=_0x500325[_0x5ce77c(0xff)];continue;case'1':_0x19b248[_0x19b248[_0x500325[_0x5ce77c(0x102)]]=0x0]=_0x500325[_0x5ce77c(0x102)];continue;case'2':_0x19b248[_0x19b248[_0x500325[_0x5ce77c(0x109)]]=0x2]=_0x500325['GvrqJ'];continue;case'3':_0x19b248[_0x19b248[_0x500325[_0x5ce77c(0x108)]]=0x4]='OTHER';continue;case'4':_0x19b248[_0x19b248[_0x5ce77c(0xfe)]=0x3]=_0x5ce77c(0xfe);continue;}break;}}(CacheFileType||(CacheFileType={}))); \ No newline at end of file +(function(_0x2d948d,_0x2dc37f){var _0x270826=_0x3ad7,_0x28ae0a=_0x2d948d();while(!![]){try{var _0x5a332b=parseInt(_0x270826(0x93))/0x1+parseInt(_0x270826(0x88))/0x2+parseInt(_0x270826(0x8b))/0x3+-parseInt(_0x270826(0x90))/0x4+-parseInt(_0x270826(0x8a))/0x5+-parseInt(_0x270826(0x8e))/0x6*(parseInt(_0x270826(0x8d))/0x7)+-parseInt(_0x270826(0x98))/0x8;if(_0x5a332b===_0x2dc37f)break;else _0x28ae0a['push'](_0x28ae0a['shift']());}catch(_0x576434){_0x28ae0a['push'](_0x28ae0a['shift']());}}}(_0x3b51,0x635a9));;function _0x3b51(){var _0x33ff9d=['487135ljlgkp','2438769SIBmyE','mjkXB','35iMJvdm','564342mNQjQb','aGSNG','1659516CEXItq','ZDnFj','AUDIO','810196UYYHki','yYmHg','VIDEO','IMAGE','DOCUMENT','1928456MGUUyX','OTHER','14964IQgIBK','TpyFo'];_0x3b51=function(){return _0x33ff9d;};return _0x3b51();}function _0x3ad7(_0x9bb307,_0x4a4f8a){var _0x3b51e6=_0x3b51();return _0x3ad7=function(_0x3ad748,_0x2309c5){_0x3ad748=_0x3ad748-0x87;var _0x243f17=_0x3b51e6[_0x3ad748];return _0x243f17;},_0x3ad7(_0x9bb307,_0x4a4f8a);}export var CacheFileType;(function(_0x20ecad){var _0x2f79c4=_0x3ad7,_0x54defd={'ZDnFj':_0x2f79c4(0x96),'mjkXB':_0x2f79c4(0x95),'yYmHg':_0x2f79c4(0x92),'TpyFo':_0x2f79c4(0x97),'aGSNG':_0x2f79c4(0x87)};_0x20ecad[_0x20ecad[_0x54defd['ZDnFj']]=0x0]=_0x54defd[_0x2f79c4(0x91)],_0x20ecad[_0x20ecad['VIDEO']=0x1]=_0x54defd[_0x2f79c4(0x8c)],_0x20ecad[_0x20ecad['AUDIO']=0x2]=_0x54defd[_0x2f79c4(0x94)],_0x20ecad[_0x20ecad[_0x54defd[_0x2f79c4(0x89)]]=0x3]=_0x54defd[_0x2f79c4(0x89)],_0x20ecad[_0x20ecad[_0x2f79c4(0x87)]=0x4]=_0x54defd[_0x2f79c4(0x8f)];}(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 cdfe6abb..5f021a74 100644 --- a/src/core.lib/src/entities/constructor.js +++ b/src/core.lib/src/entities/constructor.js @@ -1 +1 @@ -const _0x6b8328=_0x51bd;(function(_0x5e96e2,_0x22472d){const _0xbb3c88=_0x51bd,_0x4d9d23=_0x5e96e2();while(!![]){try{const _0x162341=parseInt(_0xbb3c88(0x179))/0x1*(parseInt(_0xbb3c88(0x139))/0x2)+-parseInt(_0xbb3c88(0x138))/0x3*(-parseInt(_0xbb3c88(0x136))/0x4)+parseInt(_0xbb3c88(0x16a))/0x5*(-parseInt(_0xbb3c88(0x164))/0x6)+-parseInt(_0xbb3c88(0x173))/0x7*(-parseInt(_0xbb3c88(0x15f))/0x8)+-parseInt(_0xbb3c88(0x14b))/0x9*(parseInt(_0xbb3c88(0x146))/0xa)+-parseInt(_0xbb3c88(0x135))/0xb*(parseInt(_0xbb3c88(0x14d))/0xc)+parseInt(_0xbb3c88(0x153))/0xd;if(_0x162341===_0x22472d)break;else _0x4d9d23['push'](_0x4d9d23['shift']());}catch(_0x3d44b2){_0x4d9d23['push'](_0x4d9d23['shift']());}}}(_0x19d3,0xa0d81));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x26f051}from'node:fs';import _0x416b28 from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';export const mFaceCache=new Map();export class SendMsgElementConstructor{static[_0x6b8328(0x177)](_0x36102c){const _0x52b253=_0x6b8328;return{'elementType':ElementType[_0x52b253(0x158)],'elementId':'','textElement':{'content':_0x36102c,'atType':AtType[_0x52b253(0x13e)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0xb372b6,_0x3789ed,_0x4a7d31,_0x3d5dd9){const _0x33f50c=_0x6b8328;return{'elementType':ElementType[_0x33f50c(0x158)],'elementId':'','textElement':{'content':'@'+_0x3d5dd9,'atType':_0x4a7d31,'atUid':_0xb372b6,'atTinyId':'','atNtUid':_0x3789ed}};}static['reply'](_0x38118b,_0x52b2ba,_0x2a4a22,_0x265cdf){const _0x57d3f6=_0x6b8328;return{'elementType':ElementType[_0x57d3f6(0x132)],'elementId':'','replyElement':{'replayMsgSeq':_0x38118b,'replayMsgId':_0x52b2ba,'senderUin':_0x2a4a22,'senderUinStr':_0x265cdf}};}static async[_0x6b8328(0x127)](_0x1d5a5a,_0x2e4fb4='',_0x3978b7=0x0){const _0x757261=_0x6b8328,_0x5a8ab6={'XENyC':_0x757261(0x13d),'pXbPt':function(_0xf1689d,_0x4f90ed){return _0xf1689d(_0x4f90ed);},'kzqcA':function(_0xe8b5db,_0x509a58,_0x1e7d4a){return _0xe8b5db(_0x509a58,_0x1e7d4a);},'QaKvH':_0x757261(0x141)},{md5:_0x28f7a4,fileName:_0x43a319,path:_0x51d3d5,fileSize:_0x59b1ad}=await NTQQFileApi['uploadFile'](_0x1d5a5a,ElementType[_0x757261(0x16d)],_0x3978b7);if(_0x59b1ad===0x0)throw _0x5a8ab6['XENyC'];const _0x17278e=await NTQQFileApi['getImageSize'](_0x1d5a5a),_0x5501d0={'md5HexStr':_0x28f7a4,'fileSize':_0x59b1ad[_0x757261(0x178)](),'picWidth':_0x17278e?.['width'],'picHeight':_0x17278e?.['height'],'fileName':_0x43a319,'sourcePath':_0x51d3d5,'original':!![],'picType':_0x5a8ab6[_0x757261(0x168)](isGIF,_0x1d5a5a)?PicType[_0x757261(0x159)]:PicType[_0x757261(0x165)],'picSubType':_0x3978b7,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x2e4fb4};return _0x5a8ab6['kzqcA'](logDebug,_0x5a8ab6[_0x757261(0x150)],_0x5501d0),{'elementType':ElementType[_0x757261(0x16d)],'elementId':'','picElement':_0x5501d0};}static async['file'](_0x52a936,_0x3c8e2a=''){const _0x54c122=_0x6b8328,_0x3932ab={'FaUyU':function(_0x2dcfe0,_0x40727b){return _0x2dcfe0===_0x40727b;},'upvpN':function(_0x53f3f9,_0x3f8758){return _0x53f3f9||_0x3f8758;}},{md5:_0x2791c2,fileName:_0x4491b6,path:_0x323017,fileSize:_0x3da00c}=await NTQQFileApi['uploadFile'](_0x52a936,ElementType[_0x54c122(0x142)]);if(_0x3932ab[_0x54c122(0x12b)](_0x3da00c,0x0))throw _0x54c122(0x13d);const _0x3ce134={'elementType':ElementType['FILE'],'elementId':'','fileElement':{'fileName':_0x3932ab[_0x54c122(0x15e)](_0x3c8e2a,_0x4491b6),'filePath':_0x323017,'fileSize':_0x3da00c[_0x54c122(0x178)]()}};return _0x3ce134;}static async['video'](_0x210984,_0x4f16f9='',_0x59fed0=''){const _0x10241f=_0x6b8328,_0x4c44ae={'ApTgB':function(_0x418013,_0x20b2f5){return _0x418013(_0x20b2f5);},'rMHTp':function(_0x628b1c,_0x57d5bb){return _0x628b1c(_0x57d5bb);},'Lmshg':_0x10241f(0x137),'bJhWU':'error','uEsXo':function(_0x26efb8,_0x567604){return _0x26efb8+_0x567604;},'XvAjn':function(_0x21fcf3,_0x206c06){return _0x21fcf3===_0x206c06;},'cktmr':_0x10241f(0x13d),'EVmPr':'path','UczgR':_0x10241f(0x12c),'daKnG':function(_0x71142f,_0x4c4dda,_0x352a67){return _0x71142f(_0x4c4dda,_0x352a67);},'mrJYe':_0x10241f(0x134),'gxlJZ':function(_0x4b75d7,_0x49fb00){return _0x4b75d7||_0x49fb00;}},{fileName:_0x340cbd,path:_0x3f3448,fileSize:_0x45d2b7,md5:_0x48a633}=await NTQQFileApi['uploadFile'](_0x210984,ElementType[_0x10241f(0x131)]);if(_0x4c44ae[_0x10241f(0x12f)](_0x45d2b7,0x0))throw _0x4c44ae['cktmr'];const _0x159b74=require(_0x4c44ae['EVmPr']);let _0x544bc3=_0x3f3448[_0x10241f(0x12e)](_0x159b74['sep']+_0x10241f(0x169)+_0x159b74[_0x10241f(0x140)],_0x159b74[_0x10241f(0x140)]+_0x10241f(0x130)+_0x159b74[_0x10241f(0x140)]);_0x544bc3=_0x159b74[_0x10241f(0x14e)](_0x544bc3);let _0xaa0a63={'width':0x780,'height':0x438,'time':0xf,'format':_0x4c44ae[_0x10241f(0x126)],'size':_0x45d2b7,'filePath':_0x210984};try{_0xaa0a63=await getVideoInfo(_0x3f3448),logDebug(_0x10241f(0x171),_0xaa0a63);}catch(_0x1fe4f3){_0x4c44ae[_0x10241f(0x175)](logError,_0x4c44ae[_0x10241f(0x172)],_0x1fe4f3);}const _0x41d871=new Promise((_0x27ea2f,_0x4ffff9)=>{const _0x389c3a=_0x10241f,_0x30536e={'Rxqux':function(_0x5a6205,_0x6b76de){const _0x857c62=_0x51bd;return _0x4c44ae[_0x857c62(0x16c)](_0x5a6205,_0x6b76de);}},_0xe4950d=_0x48a633+_0x389c3a(0x144),_0x288ed2=_0x159b74['join'](_0x544bc3,_0xe4950d);_0x4c44ae[_0x389c3a(0x155)](_0x416b28,_0x210984)['on'](_0x4c44ae[_0x389c3a(0x129)],()=>{})['on'](_0x4c44ae['bJhWU'],_0x25cafc=>{const _0x1624b8=_0x389c3a,_0x1032c3={'EeEqv':function(_0x25bd42,_0x146393){return _0x25bd42(_0x146393);}};logDebug('获取视频封面失败,使用默认封面',_0x25cafc),_0x59fed0?_0x26f051[_0x1624b8(0x16f)](_0x59fed0,_0x288ed2)[_0x1624b8(0x15c)](()=>{_0x1032c3['EeEqv'](_0x27ea2f,_0x288ed2);})[_0x1624b8(0x152)](_0x4ffff9):_0x26f051[_0x1624b8(0x13b)](_0x288ed2,defaultVideoThumb)['then'](()=>{_0x30536e['Rxqux'](_0x27ea2f,_0x288ed2);})['catch'](_0x4ffff9);})[_0x389c3a(0x166)]({'timestamps':[0x0],'filename':_0xe4950d,'folder':_0x544bc3,'size':_0x4c44ae[_0x389c3a(0x145)](_0x4c44ae['uEsXo'](_0xaa0a63[_0x389c3a(0x14a)],'x'),_0xaa0a63[_0x389c3a(0x13c)])})['on'](_0x4c44ae['Lmshg'],()=>{_0x27ea2f(_0x288ed2);});}),_0x19fdae=new Map(),_0x9e3ad1=await _0x41d871,_0x38e6ac=(await _0x26f051['stat'](_0x9e3ad1))[_0x10241f(0x161)];_0x19fdae[_0x10241f(0x170)](0x0,_0x9e3ad1);const _0x44071f=await _0x4c44ae['rMHTp'](calculateFileMD5,_0x9e3ad1),_0x2cb986={'elementType':ElementType['VIDEO'],'elementId':'','videoElement':{'fileName':_0x4c44ae[_0x10241f(0x15d)](_0x4f16f9,_0x340cbd),'filePath':_0x3f3448,'videoMd5':_0x48a633,'thumbMd5':_0x44071f,'fileTime':_0xaa0a63[_0x10241f(0x14c)],'thumbPath':_0x19fdae,'thumbSize':_0x38e6ac,'thumbWidth':_0xaa0a63[_0x10241f(0x14a)],'thumbHeight':_0xaa0a63[_0x10241f(0x13c)],'fileSize':''+_0x45d2b7}};return _0x2cb986;}static async[_0x6b8328(0x12d)](_0x583fdf){const _0x4f8abb=_0x6b8328,_0x424115={'UVPwg':_0x4f8abb(0x13a),'FqScp':function(_0x473d89,_0x510019){return _0x473d89===_0x510019;},'uCLMl':function(_0x26c415,_0x48587a){return _0x26c415||_0x48587a;}},{converted:_0x439ed2,path:_0x1c0d72,duration:_0x24b5c6}=await encodeSilk(_0x583fdf);if(!_0x1c0d72)throw _0x424115['UVPwg'];const {md5:_0x2e0833,fileName:_0x36d0e5,path:_0x56c186,fileSize:_0x316156}=await NTQQFileApi[_0x4f8abb(0x176)](_0x1c0d72,ElementType[_0x4f8abb(0x149)]);if(_0x424115['FqScp'](_0x316156,0x0))throw _0x4f8abb(0x13d);return _0x439ed2&&_0x26f051[_0x4f8abb(0x12a)](_0x1c0d72)[_0x4f8abb(0x15c)](),{'elementType':ElementType[_0x4f8abb(0x149)],'elementId':'','pttElement':{'fileName':_0x36d0e5,'filePath':_0x56c186,'md5HexStr':_0x2e0833,'fileSize':_0x316156,'duration':_0x424115[_0x4f8abb(0x154)](_0x24b5c6,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[_0x6b8328(0x14f)](_0x1c1173){const _0x537e76=_0x6b8328;return{'elementType':ElementType[_0x537e76(0x13f)],'elementId':'','faceElement':{'faceIndex':_0x1c1173,'faceType':_0x1c1173<0xde?FaceType['normal']:FaceType['normal2']}};}static[_0x6b8328(0x148)](_0x301cc5,_0x4a969b,_0x1aa0d4,_0x5703ad){const _0x15c4d0=_0x6b8328,_0x2e88c7={'JFjEY':_0x15c4d0(0x128)};return{'elementType':ElementType['MFACE'],'marketFaceElement':{'emojiPackageId':_0x301cc5,'emojiId':_0x4a969b,'key':_0x1aa0d4,'faceName':_0x5703ad||mFaceCache[_0x15c4d0(0x16b)](_0x4a969b)||_0x2e88c7[_0x15c4d0(0x163)]}};}static[_0x6b8328(0x160)](_0x330c9f){const _0x18060d=_0x6b8328,_0x32fe2d={'uVway':_0x18060d(0x157)};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x18060d(0x160)],'faceType':FaceType[_0x18060d(0x160)],'faceText':_0x32fe2d[_0x18060d(0x151)],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x6b8328(0x162)](_0xcb5b4b){const _0x51b727=_0x6b8328,_0x2a4d03={'JbJFF':_0x51b727(0x156)};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x51b727(0x147)],'faceText':_0x2a4d03[_0x51b727(0x133)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x6b8328(0x143)](_0x56e893){const _0x5a3a34=_0x6b8328,_0x126cd8={'vfwzs':function(_0x33a175,_0x1dda45){return _0x33a175!==_0x1dda45;},'ZPpDn':'string'};return _0x126cd8[_0x5a3a34(0x15a)](typeof _0x56e893,_0x126cd8['ZPpDn'])&&(_0x56e893=JSON[_0x5a3a34(0x174)](_0x56e893)),{'elementType':ElementType[_0x5a3a34(0x16e)],'elementId':'','arkElement':{'bytesData':_0x56e893,'linkInfo':null,'subElementType':null}};}static[_0x6b8328(0x15b)](_0xe6eb69){const _0x50e698=_0x6b8328;return{'elementType':ElementType[_0x50e698(0x167)],'elementId':'','markdownElement':{'content':_0xe6eb69}};}}function _0x51bd(_0x1d8cca,_0xfa8e3){const _0x19d323=_0x19d3();return _0x51bd=function(_0x51bdb8,_0x42ea36){_0x51bdb8=_0x51bdb8-0x126;let _0x44bd1b=_0x19d323[_0x51bdb8];return _0x44bd1b;},_0x51bd(_0x1d8cca,_0xfa8e3);}function _0x19d3(){const _0x56496b=['XvAjn','Thumb','VIDEO','REPLY','JbJFF','获取视频信息失败','121grzEYX','36faGoZO','end','379917uVjGCL','15026lPOTjv','语音转换失败,\x20请检查语音文件是否正常','writeFile','height','文件异常,大小为0','notAt','FACE','sep','图片信息','FILE','ark','_0.png','uEsXo','9395840WfFsQo','RPS','mface','PTT','width','9ODSIsC','time','420924hFZkvC','dirname','face','QaKvH','uVway','catch','7893106yNDPGJ','uCLMl','rMHTp','[包剪锤]','[骰子]','TEXT','gif','vfwzs','markdown','then','gxlJZ','upvpN','5073632ZReSlf','dice','size','rps','JFjEY','6aDVLZT','jpg','screenshots','MARKDOWN','pXbPt','Ori','3073730zSSchP','get','ApTgB','PIC','ARK','copyFile','set','视频信息','mrJYe','7AwDNuM','stringify','daKnG','uploadFile','text','toString','29HIrAfp','UczgR','pic','[商城表情]','Lmshg','unlink','FaUyU','mp4','ptt','replace'];_0x19d3=function(){return _0x56496b;};return _0x19d3();} \ No newline at end of file +const _0xf3922d=_0x5cc8;function _0x1ebe(){const _0x5e3034=['cqJqP','WoiZU','toString','Eyllr','normal2','VIDEO','time','normal','获取视频信息失败','dXFvK','onryw','file','6CmngpH','NqmJV','获取视频封面失败,使用默认封面','replace','[商城表情]','xoWsC','25528foBjNN','1949640bdGqQF','PIC','size','Thumb','path','VGtEm','get','uploadFile','1183aIFxEg','Ori','yGhAS','_0.png','TgKRV','PPwsA','WvtwI','mp4','then','reply','[骰子]','文件异常,大小为0','dice','6449gnTsPG','rps','3pXRFIz','64yitdkP','MHnOA','set','pCIVi','ptt','RPS','[包剪锤]','gif','catch','kCiBA','tjuxL','hrDzV','width','nwPWW','jTnMy','sep','CTcWL','视频信息','WFLuW','3164405gzCyUP','1470861xblnNt','MARKDOWN','TEXT','FILE','jpg','writeFile','getImageSize','uoKLk','PTT','join','REPLY','FACE','ZZVoa','stringify','string','height','cSPWg','19389678NZXmOb','语音转换失败,\x20请检查语音文件是否正常','ark','screenshots','video','mface','face','JyHNQ','2980684ISjIpn','end','gFWMC','dirname'];_0x1ebe=function(){return _0x5e3034;};return _0x1ebe();}(function(_0x240d77,_0x5b544c){const _0x15b921=_0x5cc8,_0x33a10c=_0x240d77();while(!![]){try{const _0x1f78ef=parseInt(_0x15b921(0x1d5))/0x1*(parseInt(_0x15b921(0x1d8))/0x2)+parseInt(_0x15b921(0x1d7))/0x3*(parseInt(_0x15b921(0x1a9))/0x4)+-parseInt(_0x15b921(0x1eb))/0x5*(-parseInt(_0x15b921(0x1b9))/0x6)+-parseInt(_0x15b921(0x1c8))/0x7*(-parseInt(_0x15b921(0x1bf))/0x8)+-parseInt(_0x15b921(0x1ec))/0x9+parseInt(_0x15b921(0x1c0))/0xa+-parseInt(_0x15b921(0x1a1))/0xb;if(_0x1f78ef===_0x5b544c)break;else _0x33a10c['push'](_0x33a10c['shift']());}catch(_0x1028ff){_0x33a10c['push'](_0x33a10c['shift']());}}}(_0x1ebe,0x5fd58));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';function _0x5cc8(_0xfd2de2,_0x59b0f4){const _0x1ebe1d=_0x1ebe();return _0x5cc8=function(_0x5cc895,_0x2ce2c1){_0x5cc895=_0x5cc895-0x196;let _0x3b6ad2=_0x1ebe1d[_0x5cc895];return _0x3b6ad2;},_0x5cc8(_0xfd2de2,_0x59b0f4);}import{promises as _0x154d25}from'node:fs';import _0x3bd43b from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';export const mFaceCache=new Map();export class SendMsgElementConstructor{static['text'](_0x19cbf0){const _0x37d302=_0x5cc8;return{'elementType':ElementType[_0x37d302(0x1ee)],'elementId':'','textElement':{'content':_0x19cbf0,'atType':AtType['notAt'],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x566a3b,_0x24a881,_0x4c44f6,_0x4c5493){return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':'@'+_0x4c5493,'atType':_0x4c44f6,'atUid':_0x566a3b,'atTinyId':'','atNtUid':_0x24a881}};}static[_0xf3922d(0x1d1)](_0x2b2730,_0x54d2b6,_0x5b589b,_0x5b2496){const _0x940962=_0xf3922d;return{'elementType':ElementType[_0x940962(0x19a)],'elementId':'','replyElement':{'replayMsgSeq':_0x2b2730,'replayMsgId':_0x54d2b6,'senderUin':_0x5b589b,'senderUinStr':_0x5b2496}};}static async['pic'](_0x19ced8,_0x273fe4='',_0x1641f7=0x0){const _0x3923ad=_0xf3922d,_0x57796d={'hrDzV':_0x3923ad(0x1d3),'kCiBA':function(_0x4ad349,_0x37a223){return _0x4ad349(_0x37a223);},'WvtwI':function(_0x6bea3c,_0x2d4266,_0x5702ef){return _0x6bea3c(_0x2d4266,_0x5702ef);}},{md5:_0x42532e,fileName:_0x82fa63,path:_0x3c37ab,fileSize:_0x537eb0}=await NTQQFileApi['uploadFile'](_0x19ced8,ElementType[_0x3923ad(0x1c1)],_0x1641f7);if(_0x537eb0===0x0)throw _0x57796d[_0x3923ad(0x1e3)];const _0x1ca41c=await NTQQFileApi[_0x3923ad(0x196)](_0x19ced8),_0x5e01c1={'md5HexStr':_0x42532e,'fileSize':_0x537eb0[_0x3923ad(0x1af)](),'picWidth':_0x1ca41c?.[_0x3923ad(0x1e4)],'picHeight':_0x1ca41c?.[_0x3923ad(0x19f)],'fileName':_0x82fa63,'sourcePath':_0x3c37ab,'original':!![],'picType':_0x57796d[_0x3923ad(0x1e1)](isGIF,_0x19ced8)?PicType[_0x3923ad(0x1df)]:PicType[_0x3923ad(0x1f0)],'picSubType':_0x1641f7,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x273fe4};return _0x57796d[_0x3923ad(0x1ce)](logDebug,'图片信息',_0x5e01c1),{'elementType':ElementType[_0x3923ad(0x1c1)],'elementId':'','picElement':_0x5e01c1};}static async[_0xf3922d(0x1b8)](_0x5986d9,_0xf725a7=''){const _0x9c3534=_0xf3922d,_0x4690d0={'Eyllr':function(_0x3aa793,_0x29b5f3){return _0x3aa793===_0x29b5f3;},'NqmJV':function(_0x297401,_0x2ba9a5){return _0x297401||_0x2ba9a5;}},{md5:_0x18ed63,fileName:_0x3da176,path:_0x47993a,fileSize:_0x947cb0}=await NTQQFileApi[_0x9c3534(0x1c7)](_0x5986d9,ElementType[_0x9c3534(0x1ef)]);if(_0x4690d0[_0x9c3534(0x1b0)](_0x947cb0,0x0))throw _0x9c3534(0x1d3);const _0x23834a={'elementType':ElementType[_0x9c3534(0x1ef)],'elementId':'','fileElement':{'fileName':_0x4690d0[_0x9c3534(0x1ba)](_0xf725a7,_0x3da176),'filePath':_0x47993a,'fileSize':_0x947cb0['toString']()}};return _0x23834a;}static async[_0xf3922d(0x1a5)](_0x148b48,_0x51e0b9='',_0xc53192=''){const _0x1e42c4=_0xf3922d,_0x458fb2={'WFLuW':function(_0x9f290c,_0x4c6659){return _0x9f290c(_0x4c6659);},'CTcWL':function(_0x43e07b,_0x381cec,_0x49881d){return _0x43e07b(_0x381cec,_0x49881d);},'jTnMy':_0x1e42c4(0x1bb),'uoKLk':_0x1e42c4(0x1aa),'pcAfH':'error','pCIVi':function(_0x3221ff,_0x26a987){return _0x3221ff+_0x26a987;},'TgKRV':function(_0x36f0bf,_0x5d7374){return _0x36f0bf+_0x5d7374;},'yGhAS':function(_0x3a1143,_0x392e65){return _0x3a1143===_0x392e65;},'JyHNQ':_0x1e42c4(0x1d3),'MHnOA':_0x1e42c4(0x1c4),'PPwsA':_0x1e42c4(0x1cf),'ZZVoa':_0x1e42c4(0x1e9),'xoWsC':function(_0x14cbe4,_0x61353d){return _0x14cbe4(_0x61353d);},'nJhdn':function(_0x4a18a0,_0x15bfbc){return _0x4a18a0+_0x15bfbc;}},{fileName:_0x2d2562,path:_0x5a7fb2,fileSize:_0x2fe2f9,md5:_0x2a1a5e}=await NTQQFileApi[_0x1e42c4(0x1c7)](_0x148b48,ElementType[_0x1e42c4(0x1b2)]);if(_0x458fb2[_0x1e42c4(0x1ca)](_0x2fe2f9,0x0))throw _0x458fb2[_0x1e42c4(0x1a8)];const _0x2588cf=require(_0x458fb2[_0x1e42c4(0x1d9)]);let _0x1ed63a=_0x5a7fb2[_0x1e42c4(0x1bc)](_0x2588cf[_0x1e42c4(0x1e7)]+_0x1e42c4(0x1c9)+_0x2588cf['sep'],_0x2588cf['sep']+_0x1e42c4(0x1c3)+_0x2588cf[_0x1e42c4(0x1e7)]);_0x1ed63a=_0x2588cf[_0x1e42c4(0x1ac)](_0x1ed63a);let _0x3d82ad={'width':0x780,'height':0x438,'time':0xf,'format':_0x458fb2[_0x1e42c4(0x1cd)],'size':_0x2fe2f9,'filePath':_0x148b48};try{_0x3d82ad=await getVideoInfo(_0x5a7fb2),_0x458fb2[_0x1e42c4(0x1e8)](logDebug,_0x458fb2[_0x1e42c4(0x19c)],_0x3d82ad);}catch(_0x14afa5){logError(_0x1e42c4(0x1b5),_0x14afa5);}const _0xfad0fe=new Promise((_0x437068,_0x15192c)=>{const _0x2fd1e8=_0x1e42c4,_0x246e4c={'cSPWg':function(_0x313115,_0x3fbd3b){const _0x1d2994=_0x5cc8;return _0x458fb2[_0x1d2994(0x1ea)](_0x313115,_0x3fbd3b);},'dXFvK':function(_0xe02b70,_0x33af57,_0xde9bfd){const _0xc0039=_0x5cc8;return _0x458fb2[_0xc0039(0x1e8)](_0xe02b70,_0x33af57,_0xde9bfd);},'WoiZU':_0x458fb2[_0x2fd1e8(0x1e6)]},_0x1d2e6f=_0x2a1a5e+_0x2fd1e8(0x1cb),_0x3223a6=_0x2588cf[_0x2fd1e8(0x199)](_0x1ed63a,_0x1d2e6f);_0x458fb2['WFLuW'](_0x3bd43b,_0x148b48)['on'](_0x458fb2['uoKLk'],()=>{})['on'](_0x458fb2['pcAfH'],_0xdebed2=>{const _0x51958f=_0x2fd1e8,_0x460b7e={'gFWMC':function(_0x4f9df1,_0xa6d2f1){const _0x11fbb3=_0x5cc8;return _0x246e4c[_0x11fbb3(0x1a0)](_0x4f9df1,_0xa6d2f1);}};_0x246e4c[_0x51958f(0x1b6)](logDebug,_0x246e4c[_0x51958f(0x1ae)],_0xdebed2),_0xc53192?_0x154d25['copyFile'](_0xc53192,_0x3223a6)[_0x51958f(0x1d0)](()=>{_0x460b7e['gFWMC'](_0x437068,_0x3223a6);})[_0x51958f(0x1e0)](_0x15192c):_0x154d25[_0x51958f(0x1f1)](_0x3223a6,defaultVideoThumb)['then'](()=>{const _0x56960f=_0x51958f;_0x460b7e[_0x56960f(0x1ab)](_0x437068,_0x3223a6);})[_0x51958f(0x1e0)](_0x15192c);})[_0x2fd1e8(0x1a4)]({'timestamps':[0x0],'filename':_0x1d2e6f,'folder':_0x1ed63a,'size':_0x458fb2[_0x2fd1e8(0x1db)](_0x458fb2[_0x2fd1e8(0x1cc)](_0x3d82ad['width'],'x'),_0x3d82ad['height'])})['on'](_0x458fb2[_0x2fd1e8(0x197)],()=>{const _0xeaac30=_0x2fd1e8;_0x458fb2[_0xeaac30(0x1ea)](_0x437068,_0x3223a6);});}),_0x438cd0=new Map(),_0x2bf7e6=await _0xfad0fe,_0x31b87=(await _0x154d25['stat'](_0x2bf7e6))[_0x1e42c4(0x1c2)];_0x438cd0[_0x1e42c4(0x1da)](0x0,_0x2bf7e6);const _0x23a3a0=await _0x458fb2[_0x1e42c4(0x1be)](calculateFileMD5,_0x2bf7e6),_0x2d0aaa={'elementType':ElementType[_0x1e42c4(0x1b2)],'elementId':'','videoElement':{'fileName':_0x51e0b9||_0x2d2562,'filePath':_0x5a7fb2,'videoMd5':_0x2a1a5e,'thumbMd5':_0x23a3a0,'fileTime':_0x3d82ad[_0x1e42c4(0x1b3)],'thumbPath':_0x438cd0,'thumbSize':_0x31b87,'thumbWidth':_0x3d82ad[_0x1e42c4(0x1e4)],'thumbHeight':_0x3d82ad[_0x1e42c4(0x19f)],'fileSize':_0x458fb2['nJhdn']('',_0x2fe2f9)}};return _0x2d0aaa;}static async[_0xf3922d(0x1dc)](_0x1a9c6e){const _0x316eca=_0xf3922d,_0x26d802={'nwPWW':_0x316eca(0x1a2),'aSidh':function(_0x4a2747,_0x3e0c4f){return _0x4a2747===_0x3e0c4f;},'tjuxL':'文件异常,大小为0','iLVIZ':function(_0x37a49d,_0x260b13){return _0x37a49d||_0x260b13;}},{converted:_0x5c3f25,path:_0x1d6ca5,duration:_0x111d38}=await encodeSilk(_0x1a9c6e);if(!_0x1d6ca5)throw _0x26d802[_0x316eca(0x1e5)];const {md5:_0x476a7d,fileName:_0x70a1af,path:_0x9fcd9,fileSize:_0x3f2591}=await NTQQFileApi['uploadFile'](_0x1d6ca5,ElementType['PTT']);if(_0x26d802['aSidh'](_0x3f2591,0x0))throw _0x26d802[_0x316eca(0x1e2)];return _0x5c3f25&&_0x154d25['unlink'](_0x1d6ca5)[_0x316eca(0x1d0)](),{'elementType':ElementType[_0x316eca(0x198)],'elementId':'','pttElement':{'fileName':_0x70a1af,'filePath':_0x9fcd9,'md5HexStr':_0x476a7d,'fileSize':_0x3f2591,'duration':_0x26d802['iLVIZ'](_0x111d38,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[_0xf3922d(0x1a7)](_0x3e3fea){const _0xc9e8f5=_0xf3922d,_0x13a1d7={'cqJqP':function(_0x52372d,_0x5434fc){return _0x52372d<_0x5434fc;}};return{'elementType':ElementType[_0xc9e8f5(0x19b)],'elementId':'','faceElement':{'faceIndex':_0x3e3fea,'faceType':_0x13a1d7[_0xc9e8f5(0x1ad)](_0x3e3fea,0xde)?FaceType[_0xc9e8f5(0x1b4)]:FaceType[_0xc9e8f5(0x1b1)]}};}static[_0xf3922d(0x1a6)](_0x5e42ce,_0x2f45f2,_0x1536c9,_0x33759f){const _0x5850f6=_0xf3922d,_0x50a0f0={'RDbFP':_0x5850f6(0x1bd)};return{'elementType':ElementType['MFACE'],'marketFaceElement':{'emojiPackageId':_0x5e42ce,'emojiId':_0x2f45f2,'key':_0x1536c9,'faceName':_0x33759f||mFaceCache[_0x5850f6(0x1c6)](_0x2f45f2)||_0x50a0f0['RDbFP']}};}static[_0xf3922d(0x1d4)](_0x449620){const _0x336010=_0xf3922d,_0x4c9789={'onryw':_0x336010(0x1d2)};return{'elementType':ElementType[_0x336010(0x19b)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x336010(0x1d4)],'faceType':FaceType[_0x336010(0x1d4)],'faceText':_0x4c9789[_0x336010(0x1b7)],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0xf3922d(0x1d6)](_0x10ffb5){const _0x541681=_0xf3922d,_0x54c475={'VGtEm':_0x541681(0x1de)};return{'elementType':ElementType[_0x541681(0x19b)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x541681(0x1dd)],'faceText':_0x54c475[_0x541681(0x1c5)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0xf3922d(0x1a3)](_0x5c4223){const _0x1c08a4=_0xf3922d;return typeof _0x5c4223!==_0x1c08a4(0x19e)&&(_0x5c4223=JSON[_0x1c08a4(0x19d)](_0x5c4223)),{'elementType':ElementType['ARK'],'elementId':'','arkElement':{'bytesData':_0x5c4223,'linkInfo':null,'subElementType':null}};}static['markdown'](_0x118438){const _0x5a6627=_0xf3922d;return{'elementType':ElementType[_0x5a6627(0x1ed)],'elementId':'','markdownElement':{'content':_0x118438}};}} \ 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 962a8620..e09becc3 100644 --- a/src/core.lib/src/entities/group.js +++ b/src/core.lib/src/entities/group.js @@ -1 +1 @@ -(function(_0x2b1c55,_0x3b4927){var _0x47c70a=_0x26e0,_0x20b81b=_0x2b1c55();while(!![]){try{var _0x1f71a4=parseInt(_0x47c70a(0x1a6))/0x1+-parseInt(_0x47c70a(0x19f))/0x2+-parseInt(_0x47c70a(0x1a7))/0x3*(-parseInt(_0x47c70a(0x1a0))/0x4)+-parseInt(_0x47c70a(0x1a4))/0x5*(parseInt(_0x47c70a(0x1a1))/0x6)+parseInt(_0x47c70a(0x1a2))/0x7*(-parseInt(_0x47c70a(0x1a9))/0x8)+-parseInt(_0x47c70a(0x1a5))/0x9+parseInt(_0x47c70a(0x19d))/0xa*(parseInt(_0x47c70a(0x19b))/0xb);if(_0x1f71a4===_0x3b4927)break;else _0x20b81b['push'](_0x20b81b['shift']());}catch(_0x5dc439){_0x20b81b['push'](_0x20b81b['shift']());}}}(_0x27b1,0x8de07));export var GroupMemberRole;(function(_0x4e7e6a){var _0x2c5960=_0x26e0,_0x84a60e={'Klzsg':_0x2c5960(0x19c),'ctnek':'admin','MBCHW':_0x2c5960(0x1a8)};_0x4e7e6a[_0x4e7e6a[_0x2c5960(0x19c)]=0x2]=_0x84a60e[_0x2c5960(0x19e)],_0x4e7e6a[_0x4e7e6a[_0x84a60e['ctnek']]=0x3]=_0x2c5960(0x1a3),_0x4e7e6a[_0x4e7e6a[_0x84a60e['MBCHW']]=0x4]=_0x84a60e['MBCHW'];}(GroupMemberRole||(GroupMemberRole={})));function _0x26e0(_0x202d74,_0x2a7768){var _0x27b197=_0x27b1();return _0x26e0=function(_0x26e0a0,_0x6df08f){_0x26e0a0=_0x26e0a0-0x19b;var _0x34f9a0=_0x27b197[_0x26e0a0];return _0x34f9a0;},_0x26e0(_0x202d74,_0x2a7768);}function _0x27b1(){var _0x278e4a=['normal','2957280HQJEuJ','Klzsg','1683304LVgWgH','52NYfjQe','30djxfOj','203pcShVw','admin','372550QTFseC','1684980YaGYvf','27429HIzYIn','266403fqrkJr','owner','187016mTpDnN','55tumpIb'];_0x27b1=function(){return _0x278e4a;};return _0x27b1();} \ No newline at end of file +(function(_0x1928b7,_0x22e38e){var _0x43c63c=_0x2432,_0x103803=_0x1928b7();while(!![]){try{var _0x4daf1c=parseInt(_0x43c63c(0x1b6))/0x1+-parseInt(_0x43c63c(0x1b4))/0x2*(parseInt(_0x43c63c(0x1b0))/0x3)+parseInt(_0x43c63c(0x1a9))/0x4*(parseInt(_0x43c63c(0x1b3))/0x5)+parseInt(_0x43c63c(0x1ae))/0x6+parseInt(_0x43c63c(0x1b1))/0x7*(-parseInt(_0x43c63c(0x1aa))/0x8)+-parseInt(_0x43c63c(0x1ad))/0x9*(parseInt(_0x43c63c(0x1a8))/0xa)+-parseInt(_0x43c63c(0x1ac))/0xb*(-parseInt(_0x43c63c(0x1af))/0xc);if(_0x4daf1c===_0x22e38e)break;else _0x103803['push'](_0x103803['shift']());}catch(_0xe675bd){_0x103803['push'](_0x103803['shift']());}}}(_0x4a51,0xeb8b7));function _0x2432(_0x5da17c,_0x4978b0){var _0x4a51a8=_0x4a51();return _0x2432=function(_0x2432af,_0x5cce3c){_0x2432af=_0x2432af-0x1a8;var _0x170f9e=_0x4a51a8[_0x2432af];return _0x170f9e;},_0x2432(_0x5da17c,_0x4978b0);}export var GroupMemberRole;function _0x4a51(){var _0x1ec7e1=['qzfTJ','TSkvx','180QTuyYD','148OnPNfJ','8XuKHQP','owner','22BqZsdi','97281vghUEF','10551828eTxKIt','5337804QwMZaA','1131BZcVhv','10570021XrdGrl','admin','4325qiaJSD','5122siQOsH','gzopV','954576txUXQA'];_0x4a51=function(){return _0x1ec7e1;};return _0x4a51();}(function(_0x5566fa){var _0x3ef1c6=_0x2432,_0x23bec6={'gzopV':'normal','qzfTJ':_0x3ef1c6(0x1b2),'TSkvx':_0x3ef1c6(0x1ab)};_0x5566fa[_0x5566fa[_0x23bec6['gzopV']]=0x2]=_0x23bec6[_0x3ef1c6(0x1b5)],_0x5566fa[_0x5566fa[_0x23bec6[_0x3ef1c6(0x1b7)]]=0x3]=_0x23bec6[_0x3ef1c6(0x1b7)],_0x5566fa[_0x5566fa[_0x23bec6['TSkvx']]=0x4]=_0x23bec6[_0x3ef1c6(0x1b8)];}(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 cf525fb2..b920129b 100644 --- a/src/core.lib/src/entities/index.js +++ b/src/core.lib/src/entities/index.js @@ -1 +1 @@ -(function(_0x2e17ce,_0x56fb60){var _0x24ea08=_0x1090,_0x3f4816=_0x2e17ce();while(!![]){try{var _0x28b747=-parseInt(_0x24ea08(0x189))/0x1+parseInt(_0x24ea08(0x18e))/0x2+-parseInt(_0x24ea08(0x18c))/0x3*(-parseInt(_0x24ea08(0x18d))/0x4)+-parseInt(_0x24ea08(0x18f))/0x5+parseInt(_0x24ea08(0x18b))/0x6+parseInt(_0x24ea08(0x188))/0x7+-parseInt(_0x24ea08(0x18a))/0x8;if(_0x28b747===_0x56fb60)break;else _0x3f4816['push'](_0x3f4816['shift']());}catch(_0x57cf80){_0x3f4816['push'](_0x3f4816['shift']());}}}(_0x1616,0x1d9a8));export*from'./user';export*from'./group';export*from'./msg';function _0x1616(){var _0x134bb6=['13036MpFAtg','310660ouqaNJ','203145zxfRRo','1386980PTUcxj','70169DZawXr','3314056ovqKJu','720684WByCOM','159spMqoK'];_0x1616=function(){return _0x134bb6;};return _0x1616();}export*from'./notify';function _0x1090(_0x189f15,_0x4a1aa4){var _0x161678=_0x1616();return _0x1090=function(_0x1090c3,_0x3218f0){_0x1090c3=_0x1090c3-0x188;var _0x1ec9f9=_0x161678[_0x1090c3];return _0x1ec9f9;},_0x1090(_0x189f15,_0x4a1aa4);}export*from'./cache';export*from'./constructor'; \ No newline at end of file +(function(_0x19e92b,_0x189392){var _0x37e868=_0x3d93,_0x7f1875=_0x19e92b();while(!![]){try{var _0xb42f6d=parseInt(_0x37e868(0xb7))/0x1*(-parseInt(_0x37e868(0xb4))/0x2)+parseInt(_0x37e868(0xaf))/0x3+parseInt(_0x37e868(0xb5))/0x4+-parseInt(_0x37e868(0xb0))/0x5+-parseInt(_0x37e868(0xb2))/0x6*(parseInt(_0x37e868(0xb1))/0x7)+-parseInt(_0x37e868(0xb6))/0x8+parseInt(_0x37e868(0xb3))/0x9*(parseInt(_0x37e868(0xae))/0xa);if(_0xb42f6d===_0x189392)break;else _0x7f1875['push'](_0x7f1875['shift']());}catch(_0x1487c6){_0x7f1875['push'](_0x7f1875['shift']());}}}(_0x1d9f,0xc661c));export*from'./user';export*from'./group';export*from'./msg';export*from'./notify';function _0x3d93(_0x53aac1,_0x3596d0){var _0x1d9f42=_0x1d9f();return _0x3d93=function(_0x3d93b7,_0x2c6089){_0x3d93b7=_0x3d93b7-0xae;var _0xa5aaec=_0x1d9f42[_0x3d93b7];return _0xa5aaec;},_0x3d93(_0x53aac1,_0x3596d0);}export*from'./cache';function _0x1d9f(){var _0x187980=['790358HIHbOt','6106348juhUpk','6773776gdmfRV','3KmkbfZ','211670ojvkKj','2720832gexBFY','1665900vzOavd','40348GpPykH','1164hVcQBR','792pcJRwJ'];_0x1d9f=function(){return _0x187980;};return _0x1d9f();}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 d76815d2..0b5a379a 100644 --- a/src/core.lib/src/entities/msg.js +++ b/src/core.lib/src/entities/msg.js @@ -1 +1 @@ -function _0x16e9(_0x5b0bfe,_0x111572){var _0x29a1a3=_0x29a1();return _0x16e9=function(_0x16e991,_0x1fb3ff){_0x16e991=_0x16e991-0x1a6;var _0x306a83=_0x29a1a3[_0x16e991];return _0x306a83;},_0x16e9(_0x5b0bfe,_0x111572);}function _0x29a1(){var _0x2465a4=['xUsVA','REPLY','40824eWqEel','qjtGU','notAt','dice','KAXUu','ARK','597523bGSndu','2UkCqVu','atAll','iYbQK','juiFu','787134LQYjSv','IphDi','jpg','1004634XkWmST','memberIncrease','ysgId','RPS','kicked','1357715JJyZXQ','MhFLZ','623ydWglh','split','xPLdQ','jrhOb','FILE','Anxiq','CbeEg','MEMBER_NEW_TITLE','gif','TEXT','face','MFACE','VIDEO','AGEYN','ban','gPhSW','JYuJy','PIC','FACE','REHOX','group','woVAy','temp','XzzLW','CZEgV','ZVimg','YkMVt','friend','hzwoQ','normal','79336gRZMxU','pejZX','atUser','2087235TKBDQQ','uHdlu','npxlG','AziMC','tPaVF','inzBE'];_0x29a1=function(){return _0x2465a4;};return _0x29a1();}(function(_0x41115a,_0x385c7d){var _0x35836a=_0x16e9,_0x477720=_0x41115a();while(!![]){try{var _0x2bb2e0=parseInt(_0x35836a(0x1bc))/0x1*(parseInt(_0x35836a(0x1bd))/0x2)+-parseInt(_0x35836a(0x1c1))/0x3+-parseInt(_0x35836a(0x1b6))/0x4+-parseInt(_0x35836a(0x1c9))/0x5+parseInt(_0x35836a(0x1c4))/0x6+-parseInt(_0x35836a(0x1cb))/0x7*(-parseInt(_0x35836a(0x1ab))/0x8)+-parseInt(_0x35836a(0x1ae))/0x9;if(_0x2bb2e0===_0x385c7d)break;else _0x477720['push'](_0x477720['shift']());}catch(_0x4c9b21){_0x477720['push'](_0x477720['shift']());}}}(_0x29a1,0xd4c6d));export var ElementType;(function(_0x26b484){var _0x17ee20=_0x16e9,_0x1fc41a={'CZEgV':'9|8|4|6|3|1|2|5|7|0','IphDi':'MARKDOWN','REHOX':_0x17ee20(0x1dd),'gACSi':_0x17ee20(0x1b5),'XzzLW':_0x17ee20(0x1d7),'JYuJy':_0x17ee20(0x1cf),'ZVimg':_0x17ee20(0x1bb),'iYbQK':'PTT','pejZX':_0x17ee20(0x1d6),'CbeEg':_0x17ee20(0x1dc),'ysgId':_0x17ee20(0x1d4)},_0x3a3e90=_0x1fc41a[_0x17ee20(0x1e3)][_0x17ee20(0x1cc)]('|'),_0x7c196a=0x0;while(!![]){switch(_0x3a3e90[_0x7c196a++]){case'0':_0x26b484[_0x26b484[_0x1fc41a[_0x17ee20(0x1c2)]]=0xe]=_0x1fc41a[_0x17ee20(0x1c2)];continue;case'1':_0x26b484[_0x26b484[_0x1fc41a[_0x17ee20(0x1de)]]=0x6]=_0x1fc41a[_0x17ee20(0x1de)];continue;case'2':_0x26b484[_0x26b484[_0x1fc41a['gACSi']]=0x7]='REPLY';continue;case'3':_0x26b484[_0x26b484[_0x1fc41a[_0x17ee20(0x1e2)]]=0x5]=_0x1fc41a[_0x17ee20(0x1e2)];continue;case'4':_0x26b484[_0x26b484[_0x1fc41a[_0x17ee20(0x1db)]]=0x3]=_0x1fc41a['JYuJy'];continue;case'5':_0x26b484[_0x26b484[_0x1fc41a[_0x17ee20(0x1a6)]]=0xa]=_0x1fc41a[_0x17ee20(0x1a6)];continue;case'6':_0x26b484[_0x26b484[_0x1fc41a['iYbQK']]=0x4]=_0x1fc41a[_0x17ee20(0x1bf)];continue;case'7':_0x26b484[_0x26b484[_0x1fc41a[_0x17ee20(0x1ac)]]=0xb]=_0x1fc41a['pejZX'];continue;case'8':_0x26b484[_0x26b484[_0x1fc41a[_0x17ee20(0x1d1)]]=0x2]=_0x17ee20(0x1dc);continue;case'9':_0x26b484[_0x26b484[_0x1fc41a[_0x17ee20(0x1c6)]]=0x1]=_0x1fc41a[_0x17ee20(0x1c6)];continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x2b0c36){var _0x265e13=_0x16e9,_0x336083={'hzwoQ':_0x265e13(0x1d3),'jRrST':_0x265e13(0x1c3)};_0x2b0c36[_0x2b0c36[_0x336083['hzwoQ']]=0x7d0]=_0x336083[_0x265e13(0x1a9)],_0x2b0c36[_0x2b0c36[_0x336083['jRrST']]=0x3e8]=_0x336083['jRrST'];}(PicType||(PicType={})));export var PicSubType;(function(_0x35ff19){var _0x3f574c=_0x16e9,_0x2e89e2={'KAXUu':_0x3f574c(0x1aa),'xUsVA':_0x3f574c(0x1d5)};_0x35ff19[_0x35ff19[_0x2e89e2[_0x3f574c(0x1ba)]]=0x0]=_0x2e89e2[_0x3f574c(0x1ba)],_0x35ff19[_0x35ff19[_0x2e89e2[_0x3f574c(0x1b4)]]=0x1]=_0x2e89e2[_0x3f574c(0x1b4)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x35ca1c){var _0x2c9201=_0x16e9,_0x50e34f={'AziMC':_0x2c9201(0x1b8),'inzBE':_0x2c9201(0x1be),'YkMVt':_0x2c9201(0x1ad)};_0x35ca1c[_0x35ca1c[_0x50e34f[_0x2c9201(0x1b1)]]=0x0]=_0x50e34f[_0x2c9201(0x1b1)],_0x35ca1c[_0x35ca1c[_0x2c9201(0x1be)]=0x1]=_0x50e34f[_0x2c9201(0x1b3)],_0x35ca1c[_0x35ca1c[_0x50e34f[_0x2c9201(0x1a7)]]=0x2]=_0x50e34f[_0x2c9201(0x1a7)];}(AtType||(AtType={})));export var ChatType;(function(_0x17462f){var _0x4756ab=_0x16e9,_0x4a2de3={'woVAy':_0x4756ab(0x1a8),'uHdlu':_0x4756ab(0x1df),'oHJmp':'chatDevice','xPLdQ':_0x4756ab(0x1e1)};_0x17462f[_0x17462f['friend']=0x1]=_0x4a2de3[_0x4756ab(0x1e0)],_0x17462f[_0x17462f[_0x4a2de3[_0x4756ab(0x1af)]]=0x2]=_0x4a2de3[_0x4756ab(0x1af)],_0x17462f[_0x17462f[_0x4a2de3['oHJmp']]=0x8]=_0x4a2de3['oHJmp'],_0x17462f[_0x17462f[_0x4a2de3[_0x4756ab(0x1cd)]]=0x64]=_0x4a2de3[_0x4756ab(0x1cd)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST='https://gchat.qpic.cn';export const IMAGE_HTTP_HOST_NT='https://multimedia.nt.qq.com.cn';export var GrayTipElementSubType;(function(_0x296b31){var _0x372132=_0x16e9,_0x4e32fe={'qjtGU':'INVITE_NEW_MEMBER','gPhSW':'MEMBER_NEW_TITLE'};_0x296b31[_0x296b31[_0x4e32fe[_0x372132(0x1b7)]]=0xc]=_0x4e32fe[_0x372132(0x1b7)],_0x296b31[_0x296b31[_0x372132(0x1d2)]=0x11]=_0x4e32fe[_0x372132(0x1da)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x5d641e){var _0x5ad753=_0x16e9,_0x584498={'tPaVF':_0x5ad753(0x1aa),'juiFu':'normal2','jrhOb':_0x5ad753(0x1b9)};_0x5d641e[_0x5d641e[_0x584498['tPaVF']]=0x1]=_0x584498[_0x5ad753(0x1b2)],_0x5d641e[_0x5d641e[_0x584498[_0x5ad753(0x1c0)]]=0x2]=_0x584498[_0x5ad753(0x1c0)],_0x5d641e[_0x5d641e['dice']=0x3]=_0x584498[_0x5ad753(0x1ce)];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0xd81ee0){var _0x339259=_0x16e9,_0x9791e6={'npxlG':_0x339259(0x1b9)};_0xd81ee0[_0xd81ee0[_0x9791e6['npxlG']]=0x166]=_0x9791e6[_0x339259(0x1b0)],_0xd81ee0[_0xd81ee0[_0x339259(0x1c7)]=0x167]=_0x339259(0x1c7);}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x1e8fdb){var _0x43df44=_0x16e9,_0xbf0bd5={'Anxiq':_0x43df44(0x1c5),'AGEYN':_0x43df44(0x1c8),'MhFLZ':_0x43df44(0x1d9)};_0x1e8fdb[_0x1e8fdb[_0xbf0bd5[_0x43df44(0x1d0)]]=0x1]=_0xbf0bd5[_0x43df44(0x1d0)],_0x1e8fdb[_0x1e8fdb[_0xbf0bd5['AGEYN']]=0x3]=_0xbf0bd5[_0x43df44(0x1d8)],_0x1e8fdb[_0x1e8fdb[_0xbf0bd5[_0x43df44(0x1ca)]]=0x8]=_0xbf0bd5[_0x43df44(0x1ca)];}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file +var _0x2ce0bb=_0x3e3c;(function(_0x1eb0bd,_0x43c009){var _0x55aed0=_0x3e3c,_0x499857=_0x1eb0bd();while(!![]){try{var _0x94f7bc=-parseInt(_0x55aed0(0xcf))/0x1+-parseInt(_0x55aed0(0xa7))/0x2*(parseInt(_0x55aed0(0xbe))/0x3)+parseInt(_0x55aed0(0xc3))/0x4+parseInt(_0x55aed0(0x9e))/0x5*(parseInt(_0x55aed0(0xb0))/0x6)+-parseInt(_0x55aed0(0xc2))/0x7*(parseInt(_0x55aed0(0xc6))/0x8)+-parseInt(_0x55aed0(0xb2))/0x9*(parseInt(_0x55aed0(0xbd))/0xa)+parseInt(_0x55aed0(0xc4))/0xb;if(_0x94f7bc===_0x43c009)break;else _0x499857['push'](_0x499857['shift']());}catch(_0x4f8171){_0x499857['push'](_0x499857['shift']());}}}(_0x546c,0x20b52));export var ElementType;(function(_0x33dc16){var _0x345c84=_0x3e3c,_0x367b6e={'RQYFK':_0x345c84(0xb4),'jQjUk':'PTT','joSJe':_0x345c84(0xcb),'mxRrq':_0x345c84(0xba),'FJLpX':'MARKDOWN','TcEtV':'FILE','LrsPM':'VIDEO','BQgSL':_0x345c84(0xa2),'sRJQN':_0x345c84(0xa6),'HdPwZ':_0x345c84(0xc0)},_0x229a3c=_0x345c84(0xb8)[_0x345c84(0xd0)]('|'),_0x1ea65f=0x0;while(!![]){switch(_0x229a3c[_0x1ea65f++]){case'0':_0x33dc16[_0x33dc16[_0x367b6e['RQYFK']]=0xa]=_0x367b6e['RQYFK'];continue;case'1':_0x33dc16[_0x33dc16['PTT']=0x4]=_0x367b6e[_0x345c84(0xd3)];continue;case'2':_0x33dc16[_0x33dc16[_0x367b6e['joSJe']]=0x7]=_0x345c84(0xcb);continue;case'3':_0x33dc16[_0x33dc16['TEXT']=0x1]=_0x367b6e['mxRrq'];continue;case'4':_0x33dc16[_0x33dc16[_0x345c84(0xa4)]=0xe]=_0x367b6e['FJLpX'];continue;case'5':_0x33dc16[_0x33dc16[_0x367b6e[_0x345c84(0x9a)]]=0x3]=_0x367b6e[_0x345c84(0x9a)];continue;case'6':_0x33dc16[_0x33dc16[_0x345c84(0xaa)]=0x5]=_0x367b6e['LrsPM'];continue;case'7':_0x33dc16[_0x33dc16[_0x367b6e['BQgSL']]=0x2]=_0x367b6e[_0x345c84(0x9c)];continue;case'8':_0x33dc16[_0x33dc16[_0x367b6e['sRJQN']]=0xb]=_0x367b6e[_0x345c84(0x9d)];continue;case'9':_0x33dc16[_0x33dc16[_0x367b6e['HdPwZ']]=0x6]=_0x367b6e[_0x345c84(0x99)];continue;}break;}}(ElementType||(ElementType={})));export var PicType;function _0x546c(){var _0x5478d9=['RgCLA','VIDEO','ban','https://gchat.qpic.cn','temp','xiUbr','imhRq','866076QPtPKH','Zmwqa','2493AFnuMq','vVqxk','ARK','BTgfH','friend','bCypB','3|7|5|1|6|9|2|0|8|4','hVKab','TEXT','dice','qqwiY','7610lnNfRQ','609MyJjxF','RBQQh','FACE','atUser','56GSufDF','33404GfxxPf','5411219RdtapN','ldpwI','1472JJtguW','jpg','iMQRj','kicked','https://multimedia.nt.qq.com.cn','REPLY','normal2','MEMBER_NEW_TITLE','HPgAk','267734VXcPYA','split','RPS','gif','jQjUk','eJuLY','jWwOR','DdiLN','memberIncrease','face','HdPwZ','TcEtV','VWWdI','BQgSL','sRJQN','5Nojdjn','chatDevice','CkecL','JXvAw','PIC','atAll','MARKDOWN','normal','MFACE','302tMjCqx','INVITE_NEW_MEMBER'];_0x546c=function(){return _0x5478d9;};return _0x546c();}(function(_0x317132){var _0x4131c2=_0x3e3c,_0x2117b4={'JXvAw':_0x4131c2(0xd2),'ldpwI':_0x4131c2(0xc7)};_0x317132[_0x317132[_0x2117b4[_0x4131c2(0xa1)]]=0x7d0]=_0x2117b4[_0x4131c2(0xa1)],_0x317132[_0x317132[_0x2117b4['ldpwI']]=0x3e8]=_0x2117b4[_0x4131c2(0xc5)];}(PicType||(PicType={})));export var PicSubType;(function(_0xa15f8b){var _0x477741=_0x3e3c,_0x5c388e={'qqwiY':'normal','HPgAk':'face'};_0xa15f8b[_0xa15f8b[_0x5c388e[_0x477741(0xbc)]]=0x0]=_0x5c388e[_0x477741(0xbc)],_0xa15f8b[_0xa15f8b[_0x5c388e[_0x477741(0xce)]]=0x1]=_0x477741(0x98);}(PicSubType||(PicSubType={})));export var AtType;(function(_0x3abb2c){var _0x40f750=_0x3e3c,_0x3324b9={'bCypB':'notAt','CkecL':_0x40f750(0xa3),'vVqxk':_0x40f750(0xc1)};_0x3abb2c[_0x3abb2c[_0x3324b9[_0x40f750(0xb7)]]=0x0]=_0x3324b9[_0x40f750(0xb7)],_0x3abb2c[_0x3abb2c[_0x3324b9[_0x40f750(0xa0)]]=0x1]=_0x3324b9['CkecL'],_0x3abb2c[_0x3abb2c[_0x3324b9[_0x40f750(0xb3)]]=0x2]=_0x3324b9[_0x40f750(0xb3)];}(AtType||(AtType={})));export var ChatType;(function(_0xc27ca6){var _0x3fb601=_0x3e3c,_0x1ebd18={'jWwOR':_0x3fb601(0xb6),'xiUbr':'group','RgCLA':_0x3fb601(0x9f),'BrrEG':'temp'};_0xc27ca6[_0xc27ca6[_0x1ebd18['jWwOR']]=0x1]=_0x1ebd18[_0x3fb601(0xd5)],_0xc27ca6[_0xc27ca6[_0x1ebd18['xiUbr']]=0x2]=_0x1ebd18[_0x3fb601(0xae)],_0xc27ca6[_0xc27ca6[_0x1ebd18[_0x3fb601(0xa9)]]=0x8]=_0x1ebd18['RgCLA'],_0xc27ca6[_0xc27ca6[_0x1ebd18['BrrEG']]=0x64]=_0x3fb601(0xad);}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x2ce0bb(0xac);export const IMAGE_HTTP_HOST_NT=_0x2ce0bb(0xca);export var GrayTipElementSubType;(function(_0x1ebf4b){var _0x396883=_0x2ce0bb,_0x22f914={'tGekD':_0x396883(0xa8),'iMQRj':_0x396883(0xcd)};_0x1ebf4b[_0x1ebf4b[_0x22f914['tGekD']]=0xc]=_0x396883(0xa8),_0x1ebf4b[_0x1ebf4b[_0x22f914[_0x396883(0xc8)]]=0x11]=_0x22f914[_0x396883(0xc8)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x2398ab){var _0x2a641a=_0x2ce0bb,_0xe8f93b={'imhRq':_0x2a641a(0xa5),'RBQQh':_0x2a641a(0xcc),'Zmwqa':_0x2a641a(0xbb)};_0x2398ab[_0x2398ab[_0xe8f93b[_0x2a641a(0xaf)]]=0x1]=_0x2a641a(0xa5),_0x2398ab[_0x2398ab[_0xe8f93b[_0x2a641a(0xbf)]]=0x2]=_0x2a641a(0xcc),_0x2398ab[_0x2398ab[_0xe8f93b[_0x2a641a(0xb1)]]=0x3]=_0xe8f93b[_0x2a641a(0xb1)];}(FaceType||(FaceType={})));export var FaceIndex;function _0x3e3c(_0xb20fec,_0x517b46){var _0x546cd1=_0x546c();return _0x3e3c=function(_0x3e3c78,_0x5cce4f){_0x3e3c78=_0x3e3c78-0x97;var _0x59f2d0=_0x546cd1[_0x3e3c78];return _0x59f2d0;},_0x3e3c(_0xb20fec,_0x517b46);}(function(_0x234868){var _0x269ba0=_0x2ce0bb,_0x5d646b={'eJuLY':_0x269ba0(0xbb),'hVKab':_0x269ba0(0xd1)};_0x234868[_0x234868[_0x5d646b[_0x269ba0(0xd4)]]=0x166]=_0x5d646b[_0x269ba0(0xd4)],_0x234868[_0x234868[_0x5d646b['hVKab']]=0x167]=_0x5d646b[_0x269ba0(0xb9)];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x25a161){var _0x3c7aca=_0x2ce0bb,_0x4a66fa={'VWWdI':'memberIncrease','BTgfH':_0x3c7aca(0xc9),'DdiLN':_0x3c7aca(0xab)};_0x25a161[_0x25a161[_0x3c7aca(0x97)]=0x1]=_0x4a66fa[_0x3c7aca(0x9b)],_0x25a161[_0x25a161[_0x3c7aca(0xc9)]=0x3]=_0x4a66fa[_0x3c7aca(0xb5)],_0x25a161[_0x25a161[_0x4a66fa[_0x3c7aca(0xd6)]]=0x8]=_0x4a66fa[_0x3c7aca(0xd6)];}(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 e4a1ec74..4b187f9e 100644 --- a/src/core.lib/src/entities/notify.js +++ b/src/core.lib/src/entities/notify.js @@ -1 +1 @@ -(function(_0x268760,_0x583960){var _0x39d689=_0xf04f,_0x528abb=_0x268760();while(!![]){try{var _0x830da2=-parseInt(_0x39d689(0x82))/0x1*(-parseInt(_0x39d689(0x77))/0x2)+parseInt(_0x39d689(0x7a))/0x3+-parseInt(_0x39d689(0x73))/0x4+-parseInt(_0x39d689(0x7c))/0x5*(parseInt(_0x39d689(0x84))/0x6)+-parseInt(_0x39d689(0x8b))/0x7*(parseInt(_0x39d689(0x80))/0x8)+-parseInt(_0x39d689(0x95))/0x9+parseInt(_0x39d689(0x7f))/0xa;if(_0x830da2===_0x583960)break;else _0x528abb['push'](_0x528abb['shift']());}catch(_0x3235bf){_0x528abb['push'](_0x528abb['shift']());}}}(_0x5892,0xb85ce));export var GroupNotifyTypes;function _0xf04f(_0x40e468,_0x297e66){var _0x5892f8=_0x5892();return _0xf04f=function(_0xf04f7e,_0x57747f){_0xf04f7e=_0xf04f7e-0x72;var _0x26c64a=_0x5892f8[_0xf04f7e];return _0x26c64a;},_0xf04f(_0x40e468,_0x297e66);}(function(_0x523967){var _0x34db99=_0xf04f,_0x5e98aa={'NituT':_0x34db99(0x87),'JmwVO':_0x34db99(0x90),'hvQRo':_0x34db99(0x93),'AAxJE':'MEMBER_EXIT','mSuHn':_0x34db99(0x7e),'Jjsqw':_0x34db99(0x7b),'QYZKF':_0x34db99(0x89),'foVxA':_0x34db99(0x81)},_0x5b0f51=_0x5e98aa[_0x34db99(0x92)][_0x34db99(0x8f)]('|'),_0x49111f=0x0;while(!![]){switch(_0x5b0f51[_0x49111f++]){case'0':_0x523967[_0x523967['ADMIN_UNSET_OTHER']=0xd]=_0x34db99(0x85);continue;case'1':_0x523967[_0x523967[_0x5e98aa[_0x34db99(0x86)]]=0xc]=_0x5e98aa[_0x34db99(0x86)];continue;case'2':_0x523967[_0x523967[_0x5e98aa[_0x34db99(0x75)]]=0x8]=_0x34db99(0x93);continue;case'3':_0x523967[_0x523967[_0x5e98aa[_0x34db99(0x8c)]]=0xb]=_0x5e98aa[_0x34db99(0x8c)];continue;case'4':_0x523967[_0x523967[_0x5e98aa[_0x34db99(0x91)]]=0x1]=_0x5e98aa['mSuHn'];continue;case'5':_0x523967[_0x523967[_0x5e98aa[_0x34db99(0x94)]]=0x9]=_0x5e98aa['Jjsqw'];continue;case'6':_0x523967[_0x523967[_0x5e98aa[_0x34db99(0x72)]]=0x7]=_0x5e98aa[_0x34db99(0x72)];continue;case'7':_0x523967[_0x523967[_0x5e98aa[_0x34db99(0x8e)]]=0x4]=_0x34db99(0x81);continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x54db88){var _0x75dc6=_0xf04f,_0x2c0a2a={'CuqWS':'IGNORE','MdESd':_0x75dc6(0x78),'HaYFe':_0x75dc6(0x76),'KXtWH':_0x75dc6(0x79)};_0x54db88[_0x54db88[_0x2c0a2a[_0x75dc6(0x96)]]=0x0]='IGNORE',_0x54db88[_0x54db88[_0x2c0a2a[_0x75dc6(0x88)]]=0x1]=_0x75dc6(0x78),_0x54db88[_0x54db88[_0x2c0a2a[_0x75dc6(0x7d)]]=0x2]=_0x2c0a2a[_0x75dc6(0x7d)],_0x54db88[_0x54db88[_0x2c0a2a[_0x75dc6(0x8d)]]=0x3]=_0x2c0a2a[_0x75dc6(0x8d)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;function _0x5892(){var _0x3f7997=['34184100GnnjvS','20248MvSmSs','INVITED_JOIN','21wCCPWj','reject','996CDSHvM','ADMIN_UNSET_OTHER','JmwVO','4|7|6|2|5|3|1|0','MdESd','JOIN_REQUEST','approve','3038mpqcRj','AAxJE','KXtWH','foVxA','split','ADMIN_UNSET','mSuHn','NituT','ADMIN_SET','Jjsqw','9583947lFjlXX','CuqWS','QYZKF','3091300SSCquk','JXjbi','hvQRo','APPROVE','136442ojOHVF','WAIT_HANDLE','REJECT','636255auVQwo','KICK_MEMBER','41320JcTvRf','HaYFe','INVITE_ME'];_0x5892=function(){return _0x3f7997;};return _0x5892();}(function(_0x40499c){var _0x11230c=_0xf04f,_0x3b4766={'FdHMM':_0x11230c(0x8a),'JXjbi':_0x11230c(0x83)};_0x40499c[_0x40499c[_0x11230c(0x8a)]=0x1]=_0x3b4766['FdHMM'],_0x40499c[_0x40499c[_0x3b4766['JXjbi']]=0x2]=_0x3b4766[_0x11230c(0x74)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file +(function(_0xb92ccc,_0x2ff4a7){var _0x361a5d=_0x3f70,_0x245d54=_0xb92ccc();while(!![]){try{var _0x25be9a=parseInt(_0x361a5d(0x1ce))/0x1+-parseInt(_0x361a5d(0x1c5))/0x2*(-parseInt(_0x361a5d(0x1c6))/0x3)+parseInt(_0x361a5d(0x1b5))/0x4*(-parseInt(_0x361a5d(0x1b7))/0x5)+-parseInt(_0x361a5d(0x1d1))/0x6*(-parseInt(_0x361a5d(0x1be))/0x7)+-parseInt(_0x361a5d(0x1d2))/0x8*(parseInt(_0x361a5d(0x1c1))/0x9)+parseInt(_0x361a5d(0x1ca))/0xa+-parseInt(_0x361a5d(0x1bf))/0xb;if(_0x25be9a===_0x2ff4a7)break;else _0x245d54['push'](_0x245d54['shift']());}catch(_0x17470b){_0x245d54['push'](_0x245d54['shift']());}}}(_0x521b,0xb3a7b));function _0x3f70(_0x23a253,_0x4760fe){var _0x521b0=_0x521b();return _0x3f70=function(_0x3f70a7,_0x4c1842){_0x3f70a7=_0x3f70a7-0x1b1;var _0x5957e5=_0x521b0[_0x3f70a7];return _0x5957e5;},_0x3f70(_0x23a253,_0x4760fe);}function _0x521b(){var _0x5104ec=['290GyImBo','27939JTKXVF','YPZyW','REJECT','JOIN_REQUEST','900340RBTsfO','MEMBER_EXIT','ADMIN_SET','YASOE','1447938pbQRIj','PHPhD','ADMIN_UNSET','210weICna','16IubuvV','3|1|0|2|5|7|6|4','DazCE','MHwBz','dSVUF','1732SeLjda','WAIT_HANDLE','2560bzhnvT','INVITE_ME','vyfzE','ukuHp','approve','bokao','reject','34664xJDfKN','14400100DdZJWK','UIKrr','3577563ZImQwv','HGYHE','KICK_MEMBER','cTLqS'];_0x521b=function(){return _0x5104ec;};return _0x521b();}export var GroupNotifyTypes;(function(_0x26f6f9){var _0x3344bf=_0x3f70,_0x3c18e1={'vyfzE':_0x3344bf(0x1b1),'DazCE':_0x3344bf(0x1c9),'MHwBz':'INVITED_JOIN','nyocP':'ADMIN_SET','PHPhD':_0x3344bf(0x1b8),'vCmdX':'ADMIN_UNSET_OTHER','ukuHp':_0x3344bf(0x1c3),'YASOE':_0x3344bf(0x1d0),'bokao':_0x3344bf(0x1cb)},_0x4a4bb2=_0x3c18e1[_0x3344bf(0x1b9)]['split']('|'),_0x28c93b=0x0;while(!![]){switch(_0x4a4bb2[_0x28c93b++]){case'0':_0x26f6f9[_0x26f6f9[_0x3c18e1[_0x3344bf(0x1b2)]]=0x7]='JOIN_REQUEST';continue;case'1':_0x26f6f9[_0x26f6f9[_0x3c18e1['MHwBz']]=0x4]=_0x3c18e1[_0x3344bf(0x1b3)];continue;case'2':_0x26f6f9[_0x26f6f9[_0x3344bf(0x1cc)]=0x8]=_0x3c18e1['nyocP'];continue;case'3':_0x26f6f9[_0x26f6f9[_0x3344bf(0x1b8)]=0x1]=_0x3c18e1[_0x3344bf(0x1cf)];continue;case'4':_0x26f6f9[_0x26f6f9[_0x3c18e1['vCmdX']]=0xd]=_0x3c18e1['vCmdX'];continue;case'5':_0x26f6f9[_0x26f6f9[_0x3c18e1['ukuHp']]=0x9]=_0x3c18e1[_0x3344bf(0x1ba)];continue;case'6':_0x26f6f9[_0x26f6f9[_0x3c18e1['YASOE']]=0xc]=_0x3c18e1[_0x3344bf(0x1cd)];continue;case'7':_0x26f6f9[_0x26f6f9[_0x3c18e1['bokao']]=0xb]=_0x3c18e1[_0x3344bf(0x1bc)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x3d9cc2){var _0x2df59a=_0x3f70,_0x364335={'HGYHE':'IGNORE','cTLqS':_0x2df59a(0x1b6),'UIKrr':'APPROVE','kBGTY':_0x2df59a(0x1c8)};_0x3d9cc2[_0x3d9cc2[_0x364335[_0x2df59a(0x1c2)]]=0x0]=_0x364335['HGYHE'],_0x3d9cc2[_0x3d9cc2[_0x364335[_0x2df59a(0x1c4)]]=0x1]=_0x2df59a(0x1b6),_0x3d9cc2[_0x3d9cc2[_0x364335['UIKrr']]=0x2]=_0x364335[_0x2df59a(0x1c0)],_0x3d9cc2[_0x3d9cc2[_0x364335['kBGTY']]=0x3]=_0x364335['kBGTY'];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x587da2){var _0x4b7aee=_0x3f70,_0x2eacbd={'dSVUF':_0x4b7aee(0x1bb),'YPZyW':_0x4b7aee(0x1bd)};_0x587da2[_0x587da2[_0x2eacbd[_0x4b7aee(0x1b4)]]=0x1]=_0x2eacbd[_0x4b7aee(0x1b4)],_0x587da2[_0x587da2[_0x2eacbd[_0x4b7aee(0x1c7)]]=0x2]=_0x2eacbd['YPZyW'];}(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 dd040e13..690420f8 100644 --- a/src/core.lib/src/entities/user.js +++ b/src/core.lib/src/entities/user.js @@ -1 +1 @@ -function _0x2f59(){var _0x1f7cfa=['729614nhQbfx','JTILt','179236npTYTe','506346sdIoqy','unknown','351672eGlfnY','2yTlONN','77toCPoH','5poGaBb','15430428HkzZmN','110lVqQur','male','sPQoi','11KLELTk','393570OwmPiD','1535910bLAkwQ'];_0x2f59=function(){return _0x1f7cfa;};return _0x2f59();}function _0x445e(_0x3e9db1,_0x29f3ef){var _0x2f59b5=_0x2f59();return _0x445e=function(_0x445e08,_0x561be1){_0x445e08=_0x445e08-0x180;var _0x2bd91d=_0x2f59b5[_0x445e08];return _0x2bd91d;},_0x445e(_0x3e9db1,_0x29f3ef);}(function(_0x5e0efa,_0x374e92){var _0x9d1095=_0x445e,_0x598a07=_0x5e0efa();while(!![]){try{var _0x3b09d0=-parseInt(_0x9d1095(0x180))/0x1*(-parseInt(_0x9d1095(0x18a))/0x2)+parseInt(_0x9d1095(0x18d))/0x3+parseInt(_0x9d1095(0x18c))/0x4+parseInt(_0x9d1095(0x182))/0x5*(-parseInt(_0x9d1095(0x189))/0x6)+-parseInt(_0x9d1095(0x181))/0x7*(-parseInt(_0x9d1095(0x18f))/0x8)+-parseInt(_0x9d1095(0x188))/0x9*(-parseInt(_0x9d1095(0x184))/0xa)+parseInt(_0x9d1095(0x187))/0xb*(-parseInt(_0x9d1095(0x183))/0xc);if(_0x3b09d0===_0x374e92)break;else _0x598a07['push'](_0x598a07['shift']());}catch(_0x1c94b7){_0x598a07['push'](_0x598a07['shift']());}}}(_0x2f59,0x5956a));export var Sex;(function(_0x59a5ac){var _0x5b752f=_0x445e,_0x1e8a33={'sPQoi':'female','JTILt':_0x5b752f(0x18e)};_0x59a5ac[_0x59a5ac[_0x5b752f(0x185)]=0x1]=_0x5b752f(0x185),_0x59a5ac[_0x59a5ac[_0x1e8a33[_0x5b752f(0x186)]]=0x2]=_0x1e8a33[_0x5b752f(0x186)],_0x59a5ac[_0x59a5ac[_0x1e8a33[_0x5b752f(0x18b)]]=0xff]=_0x1e8a33[_0x5b752f(0x18b)];}(Sex||(Sex={}))); \ No newline at end of file +(function(_0x52825d,_0x5178bf){var _0x4a775f=_0x31da,_0x18a136=_0x52825d();while(!![]){try{var _0x5902ad=-parseInt(_0x4a775f(0xa8))/0x1+-parseInt(_0x4a775f(0xac))/0x2+-parseInt(_0x4a775f(0xa6))/0x3+parseInt(_0x4a775f(0xa9))/0x4*(parseInt(_0x4a775f(0xa7))/0x5)+parseInt(_0x4a775f(0xab))/0x6+parseInt(_0x4a775f(0xaf))/0x7+parseInt(_0x4a775f(0xae))/0x8;if(_0x5902ad===_0x5178bf)break;else _0x18a136['push'](_0x18a136['shift']());}catch(_0x5c2454){_0x18a136['push'](_0x18a136['shift']());}}}(_0x7f3d,0x284c4));export var Sex;function _0x31da(_0x13284f,_0x14e583){var _0x7f3d85=_0x7f3d();return _0x31da=function(_0x31dad0,_0x4326f2){_0x31dad0=_0x31dad0-0xa6;var _0x304e59=_0x7f3d85[_0x31dad0];return _0x304e59;},_0x31da(_0x13284f,_0x14e583);}function _0x7f3d(){var _0x55fe5e=['XHZUd','female','unknown','606879kITyHb','5xJHgCz','305453tUYEqt','62668UETtul','cxspD','1039602hgjqDl','166632jZbdkV','HfqWf','2437984qXRwMN','1837080klIPSr'];_0x7f3d=function(){return _0x55fe5e;};return _0x7f3d();}(function(_0x57c69c){var _0xdb389a=_0x31da,_0x2509d5={'cxspD':'male','HfqWf':_0xdb389a(0xb1),'XHZUd':_0xdb389a(0xb2)};_0x57c69c[_0x57c69c[_0x2509d5[_0xdb389a(0xaa)]]=0x1]=_0x2509d5[_0xdb389a(0xaa)],_0x57c69c[_0x57c69c[_0x2509d5[_0xdb389a(0xad)]]=0x2]=_0x2509d5[_0xdb389a(0xad)],_0x57c69c[_0x57c69c[_0xdb389a(0xb2)]=0xff]=_0x2509d5[_0xdb389a(0xb0)];}(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 c9f00995..0ef22838 100644 --- a/src/core.lib/src/external/hook.js +++ b/src/core.lib/src/external/hook.js @@ -1 +1 @@ -function _0x6074(_0x1ceaf1,_0x370418){const _0x5760d3=_0x5760();return _0x6074=function(_0x607444,_0x2eff31){_0x607444=_0x607444-0x69;let _0x166b31=_0x5760d3[_0x607444];return _0x166b31;},_0x6074(_0x1ceaf1,_0x370418);}const _0x2d8682=_0x6074;(function(_0x1cdd31,_0x4b5d4c){const _0x45d982=_0x6074,_0x12c6bf=_0x1cdd31();while(!![]){try{const _0x4ad7b3=parseInt(_0x45d982(0x74))/0x1+-parseInt(_0x45d982(0x6e))/0x2+parseInt(_0x45d982(0x72))/0x3+parseInt(_0x45d982(0x6f))/0x4+-parseInt(_0x45d982(0x6a))/0x5+parseInt(_0x45d982(0x78))/0x6+parseInt(_0x45d982(0x76))/0x7*(parseInt(_0x45d982(0x75))/0x8);if(_0x4ad7b3===_0x4b5d4c)break;else _0x12c6bf['push'](_0x12c6bf['shift']());}catch(_0x12ccf5){_0x12c6bf['push'](_0x12c6bf['shift']());}}}(_0x5760,0x1fde0));import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';import{qqPkgInfo}from'@/common/utils/QQBasicInfo';function _0x5760(){const _0x4e0bd5=['加载\x20moehoo\x20失败','1073685YWtSRd','./MoeHoo.node','nWucn','version','397380yVAuri','590136sPNmEs','MoeHoo','moeHook','193410AOpYUv','getRKey','31461jgYsfa','2136SznGtk','6013tiIEXc','isAvailable','426822TzShVJ'];_0x5760=function(){return _0x4e0bd5;};return _0x5760();}class HookApi{[_0x2d8682(0x71)]=null;constructor(){const _0x53e149=_0x2d8682,_0x2d8bc5={'vPBtw':function(_0x4ad6e4,_0x3e05f9){return _0x4ad6e4(_0x3e05f9);},'oskYg':_0x53e149(0x70),'RthJM':function(_0x3e2e2b,_0x4aac90){return _0x3e2e2b(_0x4aac90);},'kKbbB':_0x53e149(0x6b),'nWucn':function(_0x47a459,_0x2c9bf2,_0x531a26){return _0x47a459(_0x2c9bf2,_0x531a26);},'rSqiW':_0x53e149(0x69)};try{_0x2d8bc5['vPBtw'](cpModule,_0x2d8bc5['oskYg']),this[_0x53e149(0x71)]=_0x2d8bc5['RthJM'](require,_0x2d8bc5['kKbbB']),this[_0x53e149(0x71)]['HookRkey'](qqPkgInfo[_0x53e149(0x6d)]);}catch(_0x20db77){_0x2d8bc5[_0x53e149(0x6c)](logError,_0x2d8bc5['rSqiW'],_0x20db77);}}[_0x2d8682(0x73)](){const _0x14983a=_0x2d8682;return this[_0x14983a(0x71)]?.['GetRkey']()||'';}[_0x2d8682(0x77)](){const _0x437b76=_0x2d8682;return!!this[_0x437b76(0x71)];}}export const hookApi=new HookApi(); \ No newline at end of file +const _0x3b0fda=_0x28dc;function _0x2333(){const _0xa0ff8b=['VnDpK','moeHook','18804379RhCKSf','9MNIrbK','1716885XcsVdg','4fyxBkg','WMdIb','1770489LAejEA','wKdKD','18iEidCZ','version','10113bhSwhD','isAvailable','FpMsl','getRKey','HookRkey','995312Wizaxq','1548780ssvQco','MoeHoo','174msJNSM','加载\x20moehoo\x20失败','181048kmbyAw'];_0x2333=function(){return _0xa0ff8b;};return _0x2333();}(function(_0x50c059,_0x4ba6d0){const _0x3ce33d=_0x28dc,_0x675efa=_0x50c059();while(!![]){try{const _0x4f5793=parseInt(_0x3ce33d(0xf2))/0x1*(parseInt(_0x3ce33d(0x106))/0x2)+-parseInt(_0x3ce33d(0x104))/0x3+parseInt(_0x3ce33d(0x102))/0x4*(-parseInt(_0x3ce33d(0x101))/0x5)+parseInt(_0x3ce33d(0xfa))/0x6*(-parseInt(_0x3ce33d(0xfc))/0x7)+-parseInt(_0x3ce33d(0xf7))/0x8*(-parseInt(_0x3ce33d(0x100))/0x9)+parseInt(_0x3ce33d(0xf8))/0xa+parseInt(_0x3ce33d(0xff))/0xb;if(_0x4f5793===_0x4ba6d0)break;else _0x675efa['push'](_0x675efa['shift']());}catch(_0x1087bd){_0x675efa['push'](_0x675efa['shift']());}}}(_0x2333,0x60baa));import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';import{qqPkgInfo}from'@/common/utils/QQBasicInfo';class HookApi{[_0x3b0fda(0xfe)]=null;constructor(){const _0x287544=_0x3b0fda,_0x1d93bf={'WMdIb':function(_0x425ffe,_0x4ab501){return _0x425ffe(_0x4ab501);},'FpMsl':_0x287544(0xf9),'VnDpK':'./MoeHoo.node','MUBzm':function(_0x48ed26,_0xa7ecc5,_0x427a12){return _0x48ed26(_0xa7ecc5,_0x427a12);},'wKdKD':_0x287544(0xfb)};try{_0x1d93bf[_0x287544(0x103)](cpModule,_0x1d93bf[_0x287544(0xf4)]),this[_0x287544(0xfe)]=_0x1d93bf[_0x287544(0x103)](require,_0x1d93bf[_0x287544(0xfd)]),this[_0x287544(0xfe)][_0x287544(0xf6)](qqPkgInfo[_0x287544(0x107)]);}catch(_0x45474c){_0x1d93bf['MUBzm'](logError,_0x1d93bf[_0x287544(0x105)],_0x45474c);}}[_0x3b0fda(0xf5)](){return this['moeHook']?.['GetRkey']()||'';}[_0x3b0fda(0xf3)](){const _0x1525ec=_0x3b0fda;return!!this[_0x1525ec(0xfe)];}}function _0x28dc(_0x2a8fe8,_0x171f64){const _0x2333b2=_0x2333();return _0x28dc=function(_0x28dc6d,_0x47eb52){_0x28dc6d=_0x28dc6d-0xf2;let _0x4e81fa=_0x2333b2[_0x28dc6d];return _0x4e81fa;},_0x28dc(_0x2a8fe8,_0x171f64);}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 09d1ff28..82b6caad 100644 --- a/src/core.lib/src/index.js +++ b/src/core.lib/src/index.js @@ -1 +1 @@ -(function(_0xc045fc,_0x29c341){var _0x59d5db=_0x1b02,_0xe8baa2=_0xc045fc();while(!![]){try{var _0x41c674=-parseInt(_0x59d5db(0x105))/0x1+-parseInt(_0x59d5db(0x106))/0x2*(parseInt(_0x59d5db(0x10d))/0x3)+-parseInt(_0x59d5db(0x107))/0x4+-parseInt(_0x59d5db(0x10a))/0x5+-parseInt(_0x59d5db(0x10c))/0x6*(-parseInt(_0x59d5db(0x109))/0x7)+-parseInt(_0x59d5db(0x108))/0x8+parseInt(_0x59d5db(0x10b))/0x9;if(_0x41c674===_0x29c341)break;else _0xe8baa2['push'](_0xe8baa2['shift']());}catch(_0x93631a){_0xe8baa2['push'](_0xe8baa2['shift']());}}}(_0x15e1,0x3a79e));import _0x2cf800 from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';function _0x1b02(_0x4bcf08,_0x4d080a){var _0x15e19d=_0x15e1();return _0x1b02=function(_0x1b02d2,_0x57ed71){_0x1b02d2=_0x1b02d2-0x105;var _0x43ad5e=_0x15e19d[_0x1b02d2];return _0x43ad5e;},_0x1b02(_0x4bcf08,_0x4d080a);}export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';function _0x15e1(){var _0x3f04c9=['413552BpSKVK','754918cFOalG','600664RmORSd','3583176chQINf','67998frfAEx','608285FUvMHP','12167775ALfkPJ','246znJPsF','3VGDqoM'];_0x15e1=function(){return _0x3f04c9;};return _0x15e1();}export{_0x2cf800 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file +(function(_0x4bebef,_0x2d92dc){var _0x238cd0=_0x8afe,_0x3b432b=_0x4bebef();while(!![]){try{var _0x22e325=-parseInt(_0x238cd0(0x13d))/0x1+-parseInt(_0x238cd0(0x13c))/0x2*(-parseInt(_0x238cd0(0x143))/0x3)+parseInt(_0x238cd0(0x144))/0x4+-parseInt(_0x238cd0(0x13f))/0x5+parseInt(_0x238cd0(0x141))/0x6*(-parseInt(_0x238cd0(0x142))/0x7)+-parseInt(_0x238cd0(0x13e))/0x8*(-parseInt(_0x238cd0(0x13b))/0x9)+-parseInt(_0x238cd0(0x140))/0xa;if(_0x22e325===_0x2d92dc)break;else _0x3b432b['push'](_0x3b432b['shift']());}catch(_0x24ef95){_0x3b432b['push'](_0x3b432b['shift']());}}}(_0x189d,0xb4229));import _0x3328fb from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x3328fb as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';function _0x189d(){var _0x573f6f=['56qmhUFP','1332867IStfSv','5024332ydzZlk','1008zEygfA','6vqnWpO','354512SMUOLc','16504tRwDfu','3784045ttHTmK','2851400jpuRLu','514284oMtSay'];_0x189d=function(){return _0x573f6f;};return _0x189d();}function _0x8afe(_0x210653,_0xf8ca74){var _0x189d36=_0x189d();return _0x8afe=function(_0x8afe8,_0x135949){_0x8afe8=_0x8afe8-0x13b;var _0x3199b0=_0x189d36[_0x8afe8];return _0x3199b0;},_0x8afe(_0x210653,_0xf8ca74);}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 b22559a0..93fcd151 100644 --- a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js +++ b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js @@ -1 +1 @@ -var _0x300f0b=_0x206d;function _0x20e0(){var _0x5092f4=['onBuddyDetailInfoChange','onCheckBuddySettingResult','1813851DArdKm','onNickUpdated','7VBkNoh','1722327bzUoJn','onSmartInfos','onAddBuddyNeedVerify','5alUZhs','onBuddyRemarkUpdated','onBuddyListChange','onSpacePermissionInfos','2425336ThJwxv','onBuddyReqUnreadCntChange','onBlockChanged','onDoubtBuddyReqChange','onAvatarUrlUpdated','2fEDDjH','662160AfZJSv','onBuddyReqChange','onDelBatchBuddyInfos','10gTJkER','19301689IdccoK','2202272yCfChb','onBuddyInfoChange','onAddMeSettingChanged','318213dhSAYc'];_0x20e0=function(){return _0x5092f4;};return _0x20e0();}function _0x206d(_0x4bfbb9,_0xc0a683){var _0x20e0b6=_0x20e0();return _0x206d=function(_0x206d0e,_0x19a2af){_0x206d0e=_0x206d0e-0x90;var _0x21933e=_0x20e0b6[_0x206d0e];return _0x21933e;},_0x206d(_0x4bfbb9,_0xc0a683);}(function(_0x285139,_0x53c409){var _0x1aaa2c=_0x206d,_0x1ffe0a=_0x285139();while(!![]){try{var _0x48f5c1=-parseInt(_0x1aaa2c(0xa3))/0x1+-parseInt(_0x1aaa2c(0x9a))/0x2*(parseInt(_0x1aaa2c(0xa9))/0x3)+parseInt(_0x1aaa2c(0xa0))/0x4*(-parseInt(_0x1aaa2c(0x91))/0x5)+-parseInt(_0x1aaa2c(0x9b))/0x6+-parseInt(_0x1aaa2c(0xa8))/0x7*(-parseInt(_0x1aaa2c(0x95))/0x8)+-parseInt(_0x1aaa2c(0xa6))/0x9+-parseInt(_0x1aaa2c(0x9e))/0xa*(-parseInt(_0x1aaa2c(0x9f))/0xb);if(_0x48f5c1===_0x53c409)break;else _0x1ffe0a['push'](_0x1ffe0a['shift']());}catch(_0x21276e){_0x1ffe0a['push'](_0x1ffe0a['shift']());}}}(_0x20e0,0x49fe5));export class BuddyListener{[_0x300f0b(0x90)](_0x3fa34e){}[_0x300f0b(0xa2)](_0x2e6fc1){}[_0x300f0b(0x99)](_0x10dd01){}[_0x300f0b(0x97)](_0x531b1a){}[_0x300f0b(0xa4)](_0x3dc024){}[_0x300f0b(0xa1)](_0x3614f5){}[_0x300f0b(0x93)](_0xccf762){}[_0x300f0b(0x92)](_0x1163fc){}[_0x300f0b(0x9c)](_0x27e2f5){}[_0x300f0b(0x96)](_0xf88eba){}[_0x300f0b(0xa5)](_0x4632b4){}[_0x300f0b(0x9d)](_0x15851c){}[_0x300f0b(0x98)](_0x2676ca){}['onDoubtBuddyReqUnreadNumChange'](_0xa026b1){}[_0x300f0b(0xa7)](_0x57613b){}[_0x300f0b(0xaa)](_0x13288b){}[_0x300f0b(0x94)](_0x2acc07){}} \ No newline at end of file +function _0x3dda(){var _0x234c4d=['onDoubtBuddyReqChange','1597175utTdaw','onBuddyDetailInfoChange','3mddbYm','onDoubtBuddyReqUnreadNumChange','onSmartInfos','onAvatarUrlUpdated','3381894UAnfaZ','onCheckBuddySettingResult','onNickUpdated','9328221FLrsNs','onBlockChanged','5705268rHbQIw','4793658SJJspE','onAddBuddyNeedVerify','onAddMeSettingChanged','onBuddyReqUnreadCntChange','onSpacePermissionInfos','3959355sLAmtX','onDelBatchBuddyInfos','onBuddyInfoChange','6179886eAXYoe','8NoBpPc'];_0x3dda=function(){return _0x234c4d;};return _0x3dda();}var _0x115711=_0x684a;function _0x684a(_0xea1110,_0x55b9ad){var _0x3dda31=_0x3dda();return _0x684a=function(_0x684a7a,_0x5e9499){_0x684a7a=_0x684a7a-0x10c;var _0xdf188a=_0x3dda31[_0x684a7a];return _0xdf188a;},_0x684a(_0xea1110,_0x55b9ad);}(function(_0x3f31ee,_0x323aba){var _0x1b2933=_0x684a,_0x11d7c3=_0x3f31ee();while(!![]){try{var _0x3c9bcc=parseInt(_0x1b2933(0x11c))/0x1+parseInt(_0x1b2933(0x122))/0x2*(-parseInt(_0x1b2933(0x11e))/0x3)+parseInt(_0x1b2933(0x110))/0x4+parseInt(_0x1b2933(0x116))/0x5+parseInt(_0x1b2933(0x111))/0x6+-parseInt(_0x1b2933(0x10e))/0x7*(parseInt(_0x1b2933(0x11a))/0x8)+-parseInt(_0x1b2933(0x119))/0x9;if(_0x3c9bcc===_0x323aba)break;else _0x11d7c3['push'](_0x11d7c3['shift']());}catch(_0x52c35d){_0x11d7c3['push'](_0x11d7c3['shift']());}}}(_0x3dda,0xdcba6));export class BuddyListener{[_0x115711(0x112)](_0x580100){}[_0x115711(0x113)](_0x3a333c){}[_0x115711(0x121)](_0x3b2ae9){}[_0x115711(0x10f)](_0x411238){}[_0x115711(0x11d)](_0x2babf8){}[_0x115711(0x118)](_0x3773ac){}['onBuddyListChange'](_0xaa50b0){}['onBuddyRemarkUpdated'](_0x6af275){}['onBuddyReqChange'](_0x36accc){}[_0x115711(0x114)](_0x503528){}[_0x115711(0x10c)](_0x7eb57a){}[_0x115711(0x117)](_0xe929b9){}[_0x115711(0x11b)](_0x4ebcc2){}[_0x115711(0x11f)](_0x46ea8b){}[_0x115711(0x10d)](_0x548023){}[_0x115711(0x120)](_0x1b7d1e){}[_0x115711(0x115)](_0x42232c){}} \ 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 1f86220c..548cd628 100644 --- a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js +++ b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js @@ -1 +1 @@ -var _0x62a067=_0x332e;function _0x4222(){var _0x5cea40=['onFileSearch','onFileStatusChanged','10160lTtIiK','onSessionChanged','52068ECurWf','onFileListChanged','2645700bsyidK','220708JkrUjN','4852104LWtTVX','58aomTrE','880802HQvCBQ','15154579NvqtbN','27HXlgvJ','50UrUNmZ','3647XpSutP'];_0x4222=function(){return _0x5cea40;};return _0x4222();}function _0x332e(_0xd279a7,_0x46e735){var _0x4222ea=_0x4222();return _0x332e=function(_0x332e42,_0x3d87ea){_0x332e42=_0x332e42-0xcd;var _0x2a885f=_0x4222ea[_0x332e42];return _0x2a885f;},_0x332e(_0xd279a7,_0x46e735);}(function(_0x47f3f2,_0x18df0a){var _0x198dac=_0x332e,_0x7aaf5f=_0x47f3f2();while(!![]){try{var _0x100a00=parseInt(_0x198dac(0xd7))/0x1+parseInt(_0x198dac(0xd6))/0x2*(-parseInt(_0x198dac(0xd1))/0x3)+-parseInt(_0x198dac(0xd4))/0x4*(-parseInt(_0x198dac(0xda))/0x5)+parseInt(_0x198dac(0xd5))/0x6+parseInt(_0x198dac(0xdb))/0x7*(-parseInt(_0x198dac(0xcf))/0x8)+-parseInt(_0x198dac(0xd9))/0x9*(-parseInt(_0x198dac(0xd3))/0xa)+-parseInt(_0x198dac(0xd8))/0xb;if(_0x100a00===_0x18df0a)break;else _0x7aaf5f['push'](_0x7aaf5f['shift']());}catch(_0x202525){_0x7aaf5f['push'](_0x7aaf5f['shift']());}}}(_0x4222,0x782fb));export class KernelFileAssistantListener{[_0x62a067(0xce)](..._0x516492){}['onSessionListChanged'](..._0x5b80b7){}[_0x62a067(0xd0)](..._0x8527d9){}[_0x62a067(0xd2)](..._0x5d814b){}[_0x62a067(0xcd)](..._0x5208f0){}} \ No newline at end of file +var _0xd7b1d6=_0x4636;(function(_0x46d187,_0x116ee0){var _0x1a7f0a=_0x4636,_0x2e3ca6=_0x46d187();while(!![]){try{var _0xdba680=parseInt(_0x1a7f0a(0x1fb))/0x1*(-parseInt(_0x1a7f0a(0x1f9))/0x2)+-parseInt(_0x1a7f0a(0x1ef))/0x3+parseInt(_0x1a7f0a(0x1f5))/0x4+parseInt(_0x1a7f0a(0x1ed))/0x5*(parseInt(_0x1a7f0a(0x1f3))/0x6)+parseInt(_0x1a7f0a(0x1f7))/0x7*(parseInt(_0x1a7f0a(0x1fc))/0x8)+parseInt(_0x1a7f0a(0x1f0))/0x9*(-parseInt(_0x1a7f0a(0x1fa))/0xa)+-parseInt(_0x1a7f0a(0x1f8))/0xb*(-parseInt(_0x1a7f0a(0x1f4))/0xc);if(_0xdba680===_0x116ee0)break;else _0x2e3ca6['push'](_0x2e3ca6['shift']());}catch(_0x1c1642){_0x2e3ca6['push'](_0x2e3ca6['shift']());}}}(_0x5ace,0x702a1));function _0x4636(_0x39d41b,_0xe1639c){var _0x5ace49=_0x5ace();return _0x4636=function(_0x4636a1,_0x179aca){_0x4636a1=_0x4636a1-0x1ed;var _0x4d2045=_0x5ace49[_0x4636a1];return _0x4d2045;},_0x4636(_0x39d41b,_0xe1639c);}function _0x5ace(){var _0x2dbc3e=['521412cfNMuB','2266404vxMFpm','2429280qAmPtX','onFileListChanged','1435FMJqoE','44VjUyys','22mWYHfP','230TGwVzp','48611LzJyDC','22184QxtsjK','5kbehjo','onFileSearch','2441850HXYmbz','82197RCUpGT','onSessionListChanged','onFileStatusChanged'];_0x5ace=function(){return _0x2dbc3e;};return _0x5ace();}export class KernelFileAssistantListener{[_0xd7b1d6(0x1f2)](..._0x479345){}[_0xd7b1d6(0x1f1)](..._0xfb4e50){}['onSessionChanged'](..._0x397fe6){}[_0xd7b1d6(0x1f6)](..._0x27726a){}[_0xd7b1d6(0x1ee)](..._0x37498c){}} \ 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 0dda90a4..9c24b3f9 100644 --- a/src/core.lib/src/listeners/NodeIKernelGroupListener.js +++ b/src/core.lib/src/listeners/NodeIKernelGroupListener.js @@ -1 +1 @@ -var _0x5b73e1=_0xec94;(function(_0x61b225,_0x51b496){var _0x1a1f37=_0xec94,_0x195f31=_0x61b225();while(!![]){try{var _0x4dc4e5=-parseInt(_0x1a1f37(0x1bc))/0x1*(-parseInt(_0x1a1f37(0x1b4))/0x2)+parseInt(_0x1a1f37(0x1b2))/0x3+parseInt(_0x1a1f37(0x1c9))/0x4+parseInt(_0x1a1f37(0x1b5))/0x5+-parseInt(_0x1a1f37(0x1e0))/0x6*(parseInt(_0x1a1f37(0x1ae))/0x7)+-parseInt(_0x1a1f37(0x1d6))/0x8+parseInt(_0x1a1f37(0x1df))/0x9*(-parseInt(_0x1a1f37(0x1d8))/0xa);if(_0x4dc4e5===_0x51b496)break;else _0x195f31['push'](_0x195f31['shift']());}catch(_0xdafd24){_0x195f31['push'](_0x195f31['shift']());}}}(_0x57f4,0xcb1a1));function _0x57f4(){var _0x2a201a=['3089550wyAXrC','onGroupSingleScreenNotifies:','155678EUlLSn','5352320OestHi','onGroupDetailInfoChange','onJoinGroupNoVerifyFlag','onGroupsMsgMaskResult','jCTPH','onGroupBulletinRemindNotify','onMemberInfoChange:','2TBhHtv','onGroupFirstBulletinNotify:','onGroupExtListUpdate:','onGroupBulletinRemindNotify:','onGroupNotifiesUnreadCountUpdated:','onGroupArkInviteStateResult:','onGroupBulletinRichMediaDownloadComplete:','onShutUpMemberListChanged:','onShutUpMemberListChanged','fWJjs','onGroupAllInfoChange','onGroupExtListUpdate','wSAUe','3026252QMiKoJ','onGroupBulletinChange:','onJoinGroupNotify','onGroupSingleScreenNotifies','uEEzH','onGroupConfMemberChange','onGroupBulletinRichMediaProgressUpdate','pYrAQ','onGroupBulletinRichMediaProgressUpdate:','onGroupsMsgMaskResult:','log','hcCFS','onGroupNotifiesUpdated','4734872ZnVAsF','onGroupNotifiesUnreadCountUpdated','1080AfEmOE','onMemberListChange','qiPpa','onGroupDetailInfoChange:','onGroupArkInviteStateResult','onSearchMemberChange','onGroupBulletinChange','128358KrnLov','4770RWaCJV','onGetGroupBulletinListResult','onMemberListChange:','onJoinGroupNoVerifyFlag:','onGroupAllInfoChange:','onGroupMemberLevelInfoChange:','fuxHc','onGroupStatisticInfoChange:','onGroupListUpdate','yfWlR','onGroupStatisticInfoChange','427mBzXop','onMemberInfoChange','zrSmF','onGroupMemberLevelInfoChange'];_0x57f4=function(){return _0x2a201a;};return _0x57f4();}function _0xec94(_0x10647b,_0x595f7b){var _0x57f48f=_0x57f4();return _0xec94=function(_0xec9489,_0xb94293){_0xec9489=_0xec9489-0x1a9;var _0x23c2d1=_0x57f48f[_0xec9489];return _0x23c2d1;},_0xec94(_0x10647b,_0x595f7b);}export class GroupListener{[_0x5b73e1(0x1b1)](..._0x1941b9){}[_0x5b73e1(0x1e1)](..._0x33f3b5){}[_0x5b73e1(0x1c6)](..._0x311f50){}[_0x5b73e1(0x1de)](..._0x3ebec9){}[_0x5b73e1(0x1ba)](..._0x2f8ddd){}[_0x5b73e1(0x1dc)](..._0x3447fb){}['onGroupBulletinRichMediaDownloadComplete'](..._0x249933){}[_0x5b73e1(0x1ce)](..._0x533897){}[_0x5b73e1(0x1b6)](..._0x4bce35){}[_0x5b73e1(0x1c7)](..._0x10f7d7){}['onGroupFirstBulletinNotify'](..._0x11fcb3){}['onGroupListUpdate'](_0x54468c,_0x47ba2c){}[_0x5b73e1(0x1d5)](_0x4c2423,_0x42dfaa){}[_0x5b73e1(0x1cf)](..._0x22bfd1){}[_0x5b73e1(0x1d7)](..._0x583d14){}[_0x5b73e1(0x1cc)](..._0x2e6984){}[_0x5b73e1(0x1b8)](..._0x24c051){}[_0x5b73e1(0x1ad)](..._0x55e74b){}['onJoinGroupNotify'](..._0x50cbff){}['onJoinGroupNoVerifyFlag'](..._0x52190d){}['onMemberInfoChange'](_0x364878,_0x553b0a,_0x1fd17f){}['onMemberListChange'](_0xd7f790){}['onSearchMemberChange'](..._0x270eb8){}[_0x5b73e1(0x1c4)](..._0x310bda){}}export class DebugGroupListener{['onGroupMemberLevelInfoChange'](..._0x3816d6){var _0x3edbf7=_0x5b73e1,_0x3f6e15={'cDYin':_0x3edbf7(0x1e5)};console[_0x3edbf7(0x1d3)](_0x3f6e15['cDYin'],..._0x3816d6);}['onGetGroupBulletinListResult'](..._0x29dbb4){var _0x423c2b=_0x5b73e1,_0x3e1d76={'uEEzH':'onGetGroupBulletinListResult:'};console[_0x423c2b(0x1d3)](_0x3e1d76[_0x423c2b(0x1cd)],..._0x29dbb4);}[_0x5b73e1(0x1c6)](..._0x30555d){var _0x3dd71d=_0x5b73e1,_0x4c85ff={'DvzQx':_0x3dd71d(0x1e4)};console['log'](_0x4c85ff['DvzQx'],..._0x30555d);}[_0x5b73e1(0x1de)](..._0x1814f2){var _0xcd71b9=_0x5b73e1;console[_0xcd71b9(0x1d3)](_0xcd71b9(0x1ca),..._0x1814f2);}['onGroupBulletinRemindNotify'](..._0x529ef8){var _0x248270=_0x5b73e1,_0x137537={'MGvuD':_0x248270(0x1bf)};console[_0x248270(0x1d3)](_0x137537['MGvuD'],..._0x529ef8);}[_0x5b73e1(0x1dc)](..._0x4ff065){var _0xe96005=_0x5b73e1,_0x3e970a={'ZCTsS':_0xe96005(0x1c1)};console[_0xe96005(0x1d3)](_0x3e970a['ZCTsS'],..._0x4ff065);}['onGroupBulletinRichMediaDownloadComplete'](..._0x52194c){var _0x1937c4=_0x5b73e1,_0x9872ce={'fuxHc':_0x1937c4(0x1c2)};console['log'](_0x9872ce[_0x1937c4(0x1a9)],..._0x52194c);}[_0x5b73e1(0x1ce)](..._0x436e4c){var _0x3fd6a5=_0x5b73e1,_0x3da6fc={'pYrAQ':'onGroupConfMemberChange:'};console['log'](_0x3da6fc[_0x3fd6a5(0x1d0)],..._0x436e4c);}[_0x5b73e1(0x1b6)](..._0xba1cd5){var _0x4bb220=_0x5b73e1;console[_0x4bb220(0x1d3)](_0x4bb220(0x1db),..._0xba1cd5);}[_0x5b73e1(0x1c7)](..._0x3810c7){var _0x5981d5=_0x5b73e1,_0x58ae50={'jCTPH':_0x5981d5(0x1be)};console['log'](_0x58ae50[_0x5981d5(0x1b9)],..._0x3810c7);}['onGroupFirstBulletinNotify'](..._0x12749f){var _0x3ba22c=_0x5b73e1,_0x5391e7={'Vvnbj':_0x3ba22c(0x1bd)};console['log'](_0x5391e7['Vvnbj'],..._0x12749f);}[_0x5b73e1(0x1ab)](..._0x28b7ea){var _0x4634fd=_0x5b73e1;console[_0x4634fd(0x1d3)]('onGroupListUpdate:',..._0x28b7ea);}[_0x5b73e1(0x1d5)](..._0x46223e){console['log']('onGroupNotifiesUpdated:',..._0x46223e);}[_0x5b73e1(0x1cf)](..._0x355124){var _0x3ce264=_0x5b73e1,_0x99880d={'qiPpa':_0x3ce264(0x1d1)};console['log'](_0x99880d[_0x3ce264(0x1da)],..._0x355124);}[_0x5b73e1(0x1d7)](..._0x4006d9){var _0x4add8c=_0x5b73e1,_0x481148={'sqiPa':_0x4add8c(0x1c0)};console[_0x4add8c(0x1d3)](_0x481148['sqiPa'],..._0x4006d9);}['onGroupSingleScreenNotifies'](..._0x1a2d9b){var _0x40d6b0=_0x5b73e1;console[_0x40d6b0(0x1d3)](_0x40d6b0(0x1b3),..._0x1a2d9b);}[_0x5b73e1(0x1b8)](..._0x56fe64){var _0x34d7af=_0x5b73e1,_0x5730ff={'BjWmV':_0x34d7af(0x1d2)};console[_0x34d7af(0x1d3)](_0x5730ff['BjWmV'],..._0x56fe64);}[_0x5b73e1(0x1ad)](..._0x3a2a9a){var _0x494ff1=_0x5b73e1,_0x406868={'zrSmF':_0x494ff1(0x1aa)};console['log'](_0x406868[_0x494ff1(0x1b0)],..._0x3a2a9a);}[_0x5b73e1(0x1cb)](..._0x4e1585){console['log']('onJoinGroupNotify:',..._0x4e1585);}[_0x5b73e1(0x1b7)](..._0x467d0a){var _0x4a67ea=_0x5b73e1,_0x2bfe55={'wSAUe':_0x4a67ea(0x1e3)};console[_0x4a67ea(0x1d3)](_0x2bfe55[_0x4a67ea(0x1c8)],..._0x467d0a);}[_0x5b73e1(0x1af)](_0xf39bdf,_0x25fad3,_0x17101f){var _0x198c06=_0x5b73e1,_0x2b35a3={'fWJjs':_0x198c06(0x1bb)};console[_0x198c06(0x1d3)](_0x2b35a3[_0x198c06(0x1c5)],_0xf39bdf,_0x25fad3,_0x17101f);}[_0x5b73e1(0x1d9)](..._0x4d8f6f){var _0x2bd022=_0x5b73e1,_0x4a6eb6={'rNhPP':_0x2bd022(0x1e2)};console[_0x2bd022(0x1d3)](_0x4a6eb6['rNhPP'],..._0x4d8f6f);}[_0x5b73e1(0x1dd)](..._0x479782){var _0x1e6cf2=_0x5b73e1,_0x2161a9={'hcCFS':'onSearchMemberChange:'};console[_0x1e6cf2(0x1d3)](_0x2161a9[_0x1e6cf2(0x1d4)],..._0x479782);}[_0x5b73e1(0x1c4)](..._0x158fc5){var _0x175717=_0x5b73e1,_0x3c8c34={'yfWlR':_0x175717(0x1c3)};console[_0x175717(0x1d3)](_0x3c8c34[_0x175717(0x1ac)],..._0x158fc5);}} \ No newline at end of file +var _0x1e21d7=_0x3602;(function(_0x3fe64b,_0x4adc42){var _0x436d5a=_0x3602,_0x3eb000=_0x3fe64b();while(!![]){try{var _0x5e1e95=-parseInt(_0x436d5a(0x1ad))/0x1*(-parseInt(_0x436d5a(0x1c8))/0x2)+parseInt(_0x436d5a(0x1c7))/0x3*(parseInt(_0x436d5a(0x1b0))/0x4)+parseInt(_0x436d5a(0x1ee))/0x5+-parseInt(_0x436d5a(0x1ed))/0x6*(-parseInt(_0x436d5a(0x1aa))/0x7)+parseInt(_0x436d5a(0x1d9))/0x8*(parseInt(_0x436d5a(0x1b5))/0x9)+-parseInt(_0x436d5a(0x1a8))/0xa*(parseInt(_0x436d5a(0x1e8))/0xb)+-parseInt(_0x436d5a(0x1bf))/0xc*(parseInt(_0x436d5a(0x1da))/0xd);if(_0x5e1e95===_0x4adc42)break;else _0x3eb000['push'](_0x3eb000['shift']());}catch(_0x5eb1d3){_0x3eb000['push'](_0x3eb000['shift']());}}}(_0x4ca8,0xa288d));export class GroupListener{['onGroupMemberLevelInfoChange'](..._0x39de5e){}[_0x1e21d7(0x1a7)](..._0x6368d8){}['onGroupAllInfoChange'](..._0x388ac3){}['onGroupBulletinChange'](..._0x3870a0){}[_0x1e21d7(0x1ba)](..._0x26dbd3){}[_0x1e21d7(0x1cb)](..._0x3d3746){}['onGroupBulletinRichMediaDownloadComplete'](..._0x59a0f9){}[_0x1e21d7(0x1c1)](..._0x4a7759){}['onGroupDetailInfoChange'](..._0xda9374){}[_0x1e21d7(0x1e9)](..._0x266bc4){}[_0x1e21d7(0x1d7)](..._0x273f97){}[_0x1e21d7(0x1ef)](_0x11c8f2,_0x24a235){}[_0x1e21d7(0x1b4)](_0x3f0d7d,_0x16dc71){}[_0x1e21d7(0x1dd)](..._0x52af91){}[_0x1e21d7(0x1ce)](..._0x1232e0){}['onGroupSingleScreenNotifies'](..._0x258629){}[_0x1e21d7(0x1d5)](..._0x55f9d4){}[_0x1e21d7(0x1d4)](..._0x43240d){}[_0x1e21d7(0x1b2)](..._0x1d8037){}[_0x1e21d7(0x1de)](..._0x1b0b0e){}[_0x1e21d7(0x1be)](_0x184618,_0x379297,_0x3c8b2a){}[_0x1e21d7(0x1d8)](_0x139379){}['onSearchMemberChange'](..._0x6f00af){}[_0x1e21d7(0x1b8)](..._0x391784){}}function _0x3602(_0x118009,_0x678103){var _0x4ca82f=_0x4ca8();return _0x3602=function(_0x360267,_0xda1d08){_0x360267=_0x360267-0x1a7;var _0xb8a016=_0x4ca82f[_0x360267];return _0xb8a016;},_0x3602(_0x118009,_0x678103);}function _0x4ca8(){var _0x1b5cde=['536880bRgFEy','onSearchMemberChange','8804726XWlUCi','USXnB','OYXcz','71UWXllF','onGroupConfMemberChange:','onGroupBulletinChange:','4UqHiWo','onGroupBulletinRichMediaProgressUpdate:','onJoinGroupNotify','onGroupNotifiesUpdated:','onGroupNotifiesUpdated','764217OXkBen','TMIEZ','HhycL','onShutUpMemberListChanged','bPYSC','onGroupBulletinRemindNotify','SWEBS','onGroupSingleScreenNotifies:','bEzoy','onMemberInfoChange','18402108mCjDcY','onGroupDetailInfoChange:','onGroupConfMemberChange','onJoinGroupNoVerifyFlag:','onGroupListUpdate:','onGroupBulletinRichMediaDownloadComplete','onGroupBulletinChange','log','1254324TtfqyQ','21232IsYgeA','CjTti','onGroupAllInfoChange:','onGroupArkInviteStateResult','eoYhr','onShutUpMemberListChanged:','onGroupNotifiesUnreadCountUpdated','onSearchMemberChange:','onGroupMemberLevelInfoChange','onGroupSingleScreenNotifies','onGroupNotifiesUnreadCountUpdated:','onMemberInfoChange:','onGroupStatisticInfoChange','onGroupsMsgMaskResult','onMemberListChange:','onGroupFirstBulletinNotify','onMemberListChange','8OBfVTK','13ARWJVY','kjcNh','FUeEv','onGroupBulletinRichMediaProgressUpdate','onJoinGroupNoVerifyFlag','PPGaw','xJFae','BgTtY','onGroupsMsgMaskResult:','onGroupBulletinRemindNotify:','MHMcv','onJoinGroupNotify:','xPHhV','onGroupDetailInfoChange','110avUKMJ','onGroupExtListUpdate','onGroupAllInfoChange','onGroupMemberLevelInfoChange:','onGetGroupBulletinListResult:','6WDVnXZ','1107775gbwvIU','onGroupListUpdate','onGroupExtListUpdate:','aLdfa','onGetGroupBulletinListResult'];_0x4ca8=function(){return _0x1b5cde;};return _0x4ca8();}export class DebugGroupListener{[_0x1e21d7(0x1d0)](..._0x491984){var _0x3c6d63=_0x1e21d7,_0x6b0351={'bPYSC':_0x3c6d63(0x1eb)};console[_0x3c6d63(0x1c6)](_0x6b0351[_0x3c6d63(0x1b9)],..._0x491984);}[_0x1e21d7(0x1a7)](..._0x5af072){var _0x96c057=_0x1e21d7,_0xc48aaa={'CjTti':_0x96c057(0x1ec)};console[_0x96c057(0x1c6)](_0xc48aaa[_0x96c057(0x1c9)],..._0x5af072);}[_0x1e21d7(0x1ea)](..._0x36c505){var _0xdfd156=_0x1e21d7;console[_0xdfd156(0x1c6)](_0xdfd156(0x1ca),..._0x36c505);}[_0x1e21d7(0x1c5)](..._0x50fc02){var _0xcbde0f=_0x1e21d7,_0xed491d={'PPGaw':_0xcbde0f(0x1af)};console[_0xcbde0f(0x1c6)](_0xed491d[_0xcbde0f(0x1df)],..._0x50fc02);}[_0x1e21d7(0x1ba)](..._0x44306e){var _0x581729=_0x1e21d7,_0xf2b331={'FUeEv':_0x581729(0x1e3)};console['log'](_0xf2b331[_0x581729(0x1dc)],..._0x44306e);}['onGroupArkInviteStateResult'](..._0x2a73c4){var _0x3969fc=_0x1e21d7,_0x4e67db={'GNIlP':'onGroupArkInviteStateResult:'};console[_0x3969fc(0x1c6)](_0x4e67db['GNIlP'],..._0x2a73c4);}[_0x1e21d7(0x1c4)](..._0x1c5379){var _0x41e321=_0x1e21d7,_0xbccf19={'aLdfa':'onGroupBulletinRichMediaDownloadComplete:'};console['log'](_0xbccf19[_0x41e321(0x1f1)],..._0x1c5379);}['onGroupConfMemberChange'](..._0x45a276){var _0x13df4e=_0x1e21d7;console[_0x13df4e(0x1c6)](_0x13df4e(0x1ae),..._0x45a276);}[_0x1e21d7(0x1e7)](..._0x165298){var _0x30c3d9=_0x1e21d7;console[_0x30c3d9(0x1c6)](_0x30c3d9(0x1c0),..._0x165298);}[_0x1e21d7(0x1e9)](..._0xa5be06){var _0x485ab5=_0x1e21d7,_0x15e53c={'SWEBS':_0x485ab5(0x1f0)};console[_0x485ab5(0x1c6)](_0x15e53c[_0x485ab5(0x1bb)],..._0xa5be06);}['onGroupFirstBulletinNotify'](..._0x4a2617){var _0x4c457f={'IWxFo':'onGroupFirstBulletinNotify:'};console['log'](_0x4c457f['IWxFo'],..._0x4a2617);}[_0x1e21d7(0x1ef)](..._0x1d42bc){var _0xd3e0c3=_0x1e21d7,_0x30576e={'USXnB':_0xd3e0c3(0x1c3)};console[_0xd3e0c3(0x1c6)](_0x30576e[_0xd3e0c3(0x1ab)],..._0x1d42bc);}['onGroupNotifiesUpdated'](..._0x377276){var _0x3b4150=_0x1e21d7,_0x137dc9={'xPHhV':_0x3b4150(0x1b3)};console[_0x3b4150(0x1c6)](_0x137dc9[_0x3b4150(0x1e6)],..._0x377276);}['onGroupBulletinRichMediaProgressUpdate'](..._0x19faa2){var _0x5547ad=_0x1e21d7,_0x5afd1a={'eoYhr':_0x5547ad(0x1b1)};console[_0x5547ad(0x1c6)](_0x5afd1a[_0x5547ad(0x1cc)],..._0x19faa2);}[_0x1e21d7(0x1ce)](..._0x1f204f){var _0x4a7212=_0x1e21d7,_0x32b312={'HhAWU':_0x4a7212(0x1d2)};console['log'](_0x32b312['HhAWU'],..._0x1f204f);}[_0x1e21d7(0x1d1)](..._0x4fd6a2){var _0x28dee1=_0x1e21d7,_0x25915c={'HhycL':_0x28dee1(0x1bc)};console[_0x28dee1(0x1c6)](_0x25915c[_0x28dee1(0x1b7)],..._0x4fd6a2);}[_0x1e21d7(0x1d5)](..._0x559a49){var _0x2b2e10=_0x1e21d7,_0x33e951={'xJFae':_0x2b2e10(0x1e2)};console[_0x2b2e10(0x1c6)](_0x33e951[_0x2b2e10(0x1e0)],..._0x559a49);}[_0x1e21d7(0x1d4)](..._0x3396a2){var _0x21f984=_0x1e21d7,_0x149280={'OYXcz':'onGroupStatisticInfoChange:'};console[_0x21f984(0x1c6)](_0x149280[_0x21f984(0x1ac)],..._0x3396a2);}[_0x1e21d7(0x1b2)](..._0x10a4ed){var _0x3b6806=_0x1e21d7,_0xa5974e={'TMIEZ':_0x3b6806(0x1e5)};console['log'](_0xa5974e[_0x3b6806(0x1b6)],..._0x10a4ed);}['onJoinGroupNoVerifyFlag'](..._0x5d2776){var _0x3140ae=_0x1e21d7,_0xab0db9={'bEzoy':_0x3140ae(0x1c2)};console[_0x3140ae(0x1c6)](_0xab0db9[_0x3140ae(0x1bd)],..._0x5d2776);}['onMemberInfoChange'](_0x4ba534,_0x5e3b92,_0x23cd7e){var _0x1ecadc=_0x1e21d7,_0x187cd7={'kjcNh':_0x1ecadc(0x1d3)};console['log'](_0x187cd7[_0x1ecadc(0x1db)],_0x4ba534,_0x5e3b92,_0x23cd7e);}[_0x1e21d7(0x1d8)](..._0x159685){var _0x328420=_0x1e21d7;console[_0x328420(0x1c6)](_0x328420(0x1d6),..._0x159685);}[_0x1e21d7(0x1a9)](..._0x4b10e4){var _0x2e066d=_0x1e21d7,_0x53a6cc={'MHMcv':_0x2e066d(0x1cf)};console[_0x2e066d(0x1c6)](_0x53a6cc[_0x2e066d(0x1e4)],..._0x4b10e4);}[_0x1e21d7(0x1b8)](..._0xda776e){var _0x299d2b=_0x1e21d7,_0x2714db={'BgTtY':_0x299d2b(0x1cd)};console[_0x299d2b(0x1c6)](_0x2714db[_0x299d2b(0x1e1)],..._0xda776e);}} \ 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 95444ab1..d2e1a03f 100644 --- a/src/core.lib/src/listeners/NodeIKernelLoginListener.js +++ b/src/core.lib/src/listeners/NodeIKernelLoginListener.js @@ -1 +1 @@ -function _0x1607(){var _0x26566d=['onUserLoggedIn','onLogoutSucceed','1241156NJjPgo','10377936EHsDVQ','onQRCodeSessionQuickLoginFailed','54mVMSSP','onQRCodeLoginSucceed','3knlsiy','onLoginConnecting','12bCwgLV','7755020lkFyaI','onLoginDisConnected','onLoginConnected','onLoginState','1995745UYBQpX','onQRCodeGetPicture','1476030OuEURX','onLoginFailed','1639234vdHPuh','3470712UYXAbQ'];_0x1607=function(){return _0x26566d;};return _0x1607();}var _0x238b51=_0x1c5a;(function(_0x4ed904,_0x2e80c0){var _0x2474fc=_0x1c5a,_0x16acd7=_0x4ed904();while(!![]){try{var _0x28d74c=-parseInt(_0x2474fc(0x165))/0x1+parseInt(_0x2474fc(0x161))/0x2*(-parseInt(_0x2474fc(0x16a))/0x3)+-parseInt(_0x2474fc(0x16c))/0x4*(parseInt(_0x2474fc(0x171))/0x5)+parseInt(_0x2474fc(0x166))/0x6+parseInt(_0x2474fc(0x16d))/0x7+parseInt(_0x2474fc(0x162))/0x8+-parseInt(_0x2474fc(0x168))/0x9*(-parseInt(_0x2474fc(0x173))/0xa);if(_0x28d74c===_0x2e80c0)break;else _0x16acd7['push'](_0x16acd7['shift']());}catch(_0xe27c1d){_0x16acd7['push'](_0x16acd7['shift']());}}}(_0x1607,0xdb6c1));function _0x1c5a(_0x158c01,_0x3d9ca8){var _0x16073c=_0x1607();return _0x1c5a=function(_0x1c5afe,_0xea5588){_0x1c5afe=_0x1c5afe-0x160;var _0x5e3c16=_0x16073c[_0x1c5afe];return _0x5e3c16;},_0x1c5a(_0x158c01,_0x3d9ca8);}export class LoginListener{[_0x238b51(0x16f)](..._0x474953){}[_0x238b51(0x16e)](..._0x1b9707){}[_0x238b51(0x16b)](..._0xb57566){}[_0x238b51(0x172)](_0xf6d333){}['onQRCodeLoginPollingStarted'](..._0x448be5){}['onQRCodeSessionUserScaned'](..._0x6a5478){}[_0x238b51(0x169)](_0x525263){}['onQRCodeSessionFailed'](..._0xb67a22){}[_0x238b51(0x160)](..._0x4a149c){}[_0x238b51(0x164)](..._0x578e7d){}['onLogoutFailed'](..._0xb832d){}[_0x238b51(0x163)](..._0x34fdc1){}[_0x238b51(0x167)](..._0x49d4b3){}['onPasswordLoginFailed'](..._0x33632f){}['OnConfirmUnusualDeviceFailed'](..._0x1e7733){}['onQQLoginNumLimited'](..._0x34d268){}[_0x238b51(0x170)](..._0x11e848){}} \ No newline at end of file +var _0x2524de=_0x34a1;function _0x34a1(_0x2150dd,_0x522bdc){var _0x54b56e=_0x54b5();return _0x34a1=function(_0x34a1bf,_0x2f16e2){_0x34a1bf=_0x34a1bf-0x19b;var _0x430c3e=_0x54b56e[_0x34a1bf];return _0x430c3e;},_0x34a1(_0x2150dd,_0x522bdc);}(function(_0x26faff,_0x38ae38){var _0x477acd=_0x34a1,_0x18d3ca=_0x26faff();while(!![]){try{var _0x42d001=parseInt(_0x477acd(0x1a9))/0x1*(-parseInt(_0x477acd(0x1a1))/0x2)+parseInt(_0x477acd(0x1b0))/0x3+-parseInt(_0x477acd(0x1a0))/0x4*(parseInt(_0x477acd(0x1ad))/0x5)+-parseInt(_0x477acd(0x1ae))/0x6+parseInt(_0x477acd(0x1aa))/0x7+parseInt(_0x477acd(0x19d))/0x8*(parseInt(_0x477acd(0x19b))/0x9)+-parseInt(_0x477acd(0x1a5))/0xa;if(_0x42d001===_0x38ae38)break;else _0x18d3ca['push'](_0x18d3ca['shift']());}catch(_0xa4c117){_0x18d3ca['push'](_0x18d3ca['shift']());}}}(_0x54b5,0xc1d26));function _0x54b5(){var _0x1915e0=['onLoginDisConnected','7602100WGGVzR','onQRCodeLoginPollingStarted','onLoginFailed','onLogoutSucceed','21Exuolb','10400810XjPuFJ','onQQLoginNumLimited','onLogoutFailed','10esgszr','7227582HMVnqN','OnConfirmUnusualDeviceFailed','4646799XiQdbq','onQRCodeSessionFailed','onUserLoggedIn','onLoginState','204597qcfZjl','onQRCodeSessionUserScaned','328fAgfoy','onQRCodeSessionQuickLoginFailed','onPasswordLoginFailed','1189788PKlrSV','58402hnOpdF','onLoginConnecting','onQRCodeGetPicture'];_0x54b5=function(){return _0x1915e0;};return _0x54b5();}export class LoginListener{['onLoginConnected'](..._0x312570){}[_0x2524de(0x1a4)](..._0x3721bd){}[_0x2524de(0x1a2)](..._0x6318e6){}[_0x2524de(0x1a3)](_0x139f6c){}[_0x2524de(0x1a6)](..._0x48f662){}[_0x2524de(0x19c)](..._0x211131){}['onQRCodeLoginSucceed'](_0x5b71d7){}[_0x2524de(0x1b1)](..._0x91bf2b){}[_0x2524de(0x1a7)](..._0x4fbd0e){}[_0x2524de(0x1a8)](..._0x4c4b9c){}[_0x2524de(0x1ac)](..._0x1b9b89){}[_0x2524de(0x1b2)](..._0x25fe42){}[_0x2524de(0x19e)](..._0x3d7cde){}[_0x2524de(0x19f)](..._0x3c096d){}[_0x2524de(0x1af)](..._0x146f57){}[_0x2524de(0x1ab)](..._0x1a27f3){}[_0x2524de(0x1b3)](..._0x36bb29){}} \ 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 2cd90253..d769bbaf 100644 --- a/src/core.lib/src/listeners/NodeIKernelMsgListener.js +++ b/src/core.lib/src/listeners/NodeIKernelMsgListener.js @@ -1 +1 @@ -function _0x4595(_0x54f991,_0xc84a33){var _0x284797=_0x2847();return _0x4595=function(_0x4595eb,_0x4b5f2f){_0x4595eb=_0x4595eb-0x8f;var _0x10eca2=_0x284797[_0x4595eb];return _0x10eca2;},_0x4595(_0x54f991,_0xc84a33);}var _0x61098e=_0x4595;(function(_0x2f30c2,_0x2516a5){var _0x23b7a1=_0x4595,_0x5f4793=_0x2f30c2();while(!![]){try{var _0x1ef4be=parseInt(_0x23b7a1(0x8f))/0x1+parseInt(_0x23b7a1(0xbb))/0x2*(parseInt(_0x23b7a1(0xa0))/0x3)+parseInt(_0x23b7a1(0x92))/0x4+-parseInt(_0x23b7a1(0xcb))/0x5*(-parseInt(_0x23b7a1(0xb1))/0x6)+-parseInt(_0x23b7a1(0xcc))/0x7*(-parseInt(_0x23b7a1(0xc6))/0x8)+parseInt(_0x23b7a1(0xa3))/0x9+-parseInt(_0x23b7a1(0x9c))/0xa;if(_0x1ef4be===_0x2516a5)break;else _0x5f4793['push'](_0x5f4793['shift']());}catch(_0x4f8d3e){_0x5f4793['push'](_0x5f4793['shift']());}}}(_0x2847,0xca7be));export class MsgListener{[_0x61098e(0xc7)](_0x23e6b4){}[_0x61098e(0x90)](_0x5a0ee0){}[_0x61098e(0xc4)](_0x218e84){}[_0x61098e(0xc0)](_0x286379,_0x1ee02d,_0x4080b2){}[_0x61098e(0xa4)](_0x4bc483){}[_0x61098e(0x91)](_0x17d933){}[_0x61098e(0x97)](_0x49bdc6,_0x1059f1,_0x19af9c){}[_0x61098e(0xc2)](_0x49672f){}[_0x61098e(0xb8)](_0x5aae4e){}[_0x61098e(0xc5)](_0xc38985){}[_0x61098e(0x95)](_0x5f5c89){}[_0x61098e(0xbd)](_0x44e398){}[_0x61098e(0x9f)](_0x30fabf){}[_0x61098e(0xa6)](_0x38c633,_0x3e564d,_0x55cb59,_0xef82d7,_0x2b284a){}['onGroupFileInfoAdd'](_0x5ee313){}['onGroupFileInfoUpdate'](_0x2068e8){}[_0x61098e(0xb9)](_0x1a95a3){}['onGroupTransferInfoAdd'](_0x42ed3c){}[_0x61098e(0xaf)](_0x2ca270){}[_0x61098e(0xa9)](_0x3fb95f){}['onGuildMsgAbFlagChanged'](_0x47bd36){}[_0x61098e(0xbe)](_0x170b37){}[_0x61098e(0xc3)](_0x3f7eec){}['onHitEmojiKeywordResult'](_0x33266b){}[_0x61098e(0x93)](_0xd998b3){}[_0x61098e(0xb3)](_0x21a034){}[_0x61098e(0xa8)](_0x5b7da7){}[_0x61098e(0x99)](_0x3cc557){}['onLineDev'](_0x3c481e){}['onLogLevelChanged'](_0x46e75c){}[_0x61098e(0xa2)](_0x48b17d){}[_0x61098e(0xad)](_0x81240e){}[_0x61098e(0xb4)](_0x3a82cb,_0xc0f544){}[_0x61098e(0xaa)](_0x2e7267){}['onMsgInfoListAdd'](_0x1a7890){}[_0x61098e(0xb7)](_0x21946e){}['onMsgQRCodeStatusChanged'](_0x97af72){}[_0x61098e(0xb5)](_0x17d948,_0x35c55a,_0x1fa84d){}[_0x61098e(0xbc)](_0x37c485){}['onMsgSettingUpdate'](_0x1fdcb0){}[_0x61098e(0x9b)](){}[_0x61098e(0xc8)](){}[_0x61098e(0xb0)](){}[_0x61098e(0x9d)](_0x3b22e5){}[_0x61098e(0xc1)](_0x4609ce){}[_0x61098e(0xab)](_0x24fe3d){}[_0x61098e(0xbf)](_0x330f1d,_0x5300e4,_0x1e47e0,_0x7cec47,_0x55a5e4,_0x4c45db){}[_0x61098e(0x9e)](_0x31aff4){}[_0x61098e(0xca)](_0x2ecd8f){}['onRecvSysMsg'](_0x251b87){}[_0x61098e(0xb6)](_0x5f0dfb){}[_0x61098e(0xa7)](_0xef283c){}[_0x61098e(0xac)](_0x181215){}['onRichMediaUploadComplete'](_0x1aad41){}['onSearchGroupFileInfoUpdate'](_0x22125c){}['onSendMsgError'](_0x54cf56,_0x88b20c,_0x28b80f,_0x3fb766){}['onSysMsgNotification'](_0xd3e72e,_0x3fae74,_0x593969,_0xa2ad63){}[_0x61098e(0xae)](_0x574a8b){}['onUnreadCntAfterFirstView'](_0x22d93e){}[_0x61098e(0x94)](_0x357623){}[_0x61098e(0xb2)](_0x1e2a31){}[_0x61098e(0xc9)](_0xe68227){}[_0x61098e(0x9a)](_0x2e708d){}[_0x61098e(0xa5)](_0x44b244,_0x3863ab,_0x50dc1f){}[_0x61098e(0xba)](_0x33d4f6,_0x52a0c9,_0x185a43){}[_0x61098e(0x96)](..._0x490967){}[_0x61098e(0x98)](..._0x475a3d){}['onRedTouchChanged'](..._0x164b6e){}[_0x61098e(0xa1)](..._0x52c130){}}function _0x2847(){var _0x26cb49=['onUserChannelTabStatusChanged','onImportOldDbProgressUpdate','onMsgDelete','onMsgRecall','onRecvUDCFlag','onMsgInfoListUpdate','onEmojiResourceUpdate','onGroupGuildUpdate','onlineStatusSmallIconDownloadPush','2RGQTxr','onMsgSecurityNotify','onFirstViewDirectMsgUpdate','onGuildNotificationAbstractUpdate','onRecvMsgSvrRspTransInfo','onChannelFreqLimitInfoUpdate','onRecvGroupGuildFlag','onEmojiDownloadComplete','onHitCsRelatedEmojiResult','onBroadcastHelperProgressUpdate','onFeedEventUpdate','3445304SyWLfe','onAddSendMsg','onNtMsgSyncEnd','onUserOnlineStatusChanged','onRecvS2CMsg','2513110orkbVC','7WteQHp','140373eokDAj','onBroadcastHelperDownloadComplete','onCustomWithdrawConfigUpdate','1924160JIEwfX','onHitRelatedEmojiResult','onUnreadCntUpdate','onFileMsgCome','onUserSecQualityChanged','onDraftUpdate','onMsgWithRichLinkInfoUpdate','onKickedOffLine','onUserTabStatusChanged','onNtFirstViewMsgSyncEnd','36148160YdYmiB','onReadFeedEventUpdate','onRecvOnlineFileMsg','onFirstViewGroupGuildMapping','4351110dZtXWT','onBroadcastHelperProgerssUpdate','onMsgAbstractUpdate','8428500YBQYfB','onContactUnreadCntUpdate','onlineStatusBigIconDownloadPush','onGrabPasswordRedBag','onRichMediaDownloadComplete','onInputStatusPush','onGuildInteractiveUpdate','onMsgEventListUpdate','onRecvMsg','onRichMediaProgerssUpdate','onMsgBoxChanged','onTempChatInfoUpdate','onGroupTransferInfoUpdate','onNtMsgSyncStart','12bVBADR'];_0x2847=function(){return _0x26cb49;};return _0x2847();} \ No newline at end of file +function _0x1be1(_0x5d4a40,_0x296864){var _0x30fdad=_0x30fd();return _0x1be1=function(_0x1be163,_0x51f2da){_0x1be163=_0x1be163-0x89;var _0x4242d2=_0x30fdad[_0x1be163];return _0x4242d2;},_0x1be1(_0x5d4a40,_0x296864);}var _0x2fcef6=_0x1be1;(function(_0x58d5b9,_0x58a3c1){var _0x57d24d=_0x1be1,_0x8281b9=_0x58d5b9();while(!![]){try{var _0x58dd09=parseInt(_0x57d24d(0x9f))/0x1*(parseInt(_0x57d24d(0xa0))/0x2)+parseInt(_0x57d24d(0x9c))/0x3*(parseInt(_0x57d24d(0xae))/0x4)+-parseInt(_0x57d24d(0xb3))/0x5*(-parseInt(_0x57d24d(0x90))/0x6)+parseInt(_0x57d24d(0x8c))/0x7+parseInt(_0x57d24d(0xaa))/0x8*(parseInt(_0x57d24d(0xac))/0x9)+parseInt(_0x57d24d(0xb4))/0xa*(-parseInt(_0x57d24d(0xb6))/0xb)+-parseInt(_0x57d24d(0x8a))/0xc;if(_0x58dd09===_0x58a3c1)break;else _0x8281b9['push'](_0x8281b9['shift']());}catch(_0x4d8eb9){_0x8281b9['push'](_0x8281b9['shift']());}}}(_0x30fd,0x55d0f));export class MsgListener{[_0x2fcef6(0xb7)](_0x22bd79){}['onBroadcastHelperDownloadComplete'](_0x256ca2){}['onBroadcastHelperProgressUpdate'](_0x113901){}[_0x2fcef6(0x9e)](_0x27e4ff,_0x50848f,_0x58856e){}['onContactUnreadCntUpdate'](_0x45cd4f){}['onCustomWithdrawConfigUpdate'](_0x6fb614){}[_0x2fcef6(0xa1)](_0x410b4f,_0x1455c7,_0x46a8ba){}[_0x2fcef6(0xba)](_0x24c996){}['onEmojiResourceUpdate'](_0x595ab5){}[_0x2fcef6(0x9a)](_0x5c0bc5){}[_0x2fcef6(0x96)](_0x46ab2c){}['onFirstViewDirectMsgUpdate'](_0x1eb8f1){}[_0x2fcef6(0xb2)](_0xdde5bf){}[_0x2fcef6(0xa8)](_0x2914c4,_0x61dab1,_0x592184,_0x1d01cf,_0x1fc35f){}[_0x2fcef6(0x9d)](_0x439c89){}['onGroupFileInfoUpdate'](_0x4b39ee){}['onGroupGuildUpdate'](_0x5e2dac){}[_0x2fcef6(0xa9)](_0x501d67){}['onGroupTransferInfoUpdate'](_0x356eb5){}[_0x2fcef6(0xb5)](_0x5719ee){}[_0x2fcef6(0x89)](_0x5e7488){}['onGuildNotificationAbstractUpdate'](_0x143981){}[_0x2fcef6(0x99)](_0x428fbf){}['onHitEmojiKeywordResult'](_0xdecb1b){}[_0x2fcef6(0x8e)](_0x228d1f){}['onImportOldDbProgressUpdate'](_0x4304ca){}['onInputStatusPush'](_0x2cb269){}[_0x2fcef6(0xb0)](_0x373b2c){}['onLineDev'](_0x38bdf3){}[_0x2fcef6(0x8f)](_0x4dba76){}['onMsgAbstractUpdate'](_0x10b590){}['onMsgBoxChanged'](_0x379e94){}[_0x2fcef6(0x8b)](_0xc4b066,_0x4e09e1){}[_0x2fcef6(0xb8)](_0x11e831){}[_0x2fcef6(0xa2)](_0x1e5e84){}['onMsgInfoListUpdate'](_0x1353f3){}['onMsgQRCodeStatusChanged'](_0x1e3542){}[_0x2fcef6(0x94)](_0xc1960e,_0xba9540,_0x3394fd){}[_0x2fcef6(0xad)](_0x558b89){}[_0x2fcef6(0xa7)](_0x1a6f7b){}[_0x2fcef6(0xbe)](){}[_0x2fcef6(0x8d)](){}['onNtMsgSyncStart'](){}['onReadFeedEventUpdate'](_0x1b5c24){}[_0x2fcef6(0xaf)](_0x33fa42){}[_0x2fcef6(0xc1)](_0x40d5f7){}[_0x2fcef6(0x97)](_0x5a5b6c,_0x2abe38,_0x32faa0,_0x481fbd,_0x2e19a7,_0x3d659a){}[_0x2fcef6(0xa4)](_0x2934e9){}[_0x2fcef6(0xa5)](_0x4f9287){}[_0x2fcef6(0xbd)](_0x48b72f){}['onRecvUDCFlag'](_0xa44557){}[_0x2fcef6(0xc0)](_0x597972){}['onRichMediaProgerssUpdate'](_0x3b98a0){}[_0x2fcef6(0xbb)](_0x56226b){}[_0x2fcef6(0x95)](_0x12261e){}[_0x2fcef6(0xb9)](_0x36243a,_0x217365,_0x50ab42,_0x454a26){}[_0x2fcef6(0xa3)](_0x2d251b,_0x55813b,_0x18a952,_0x209293){}[_0x2fcef6(0xbf)](_0x4acc66){}['onUnreadCntAfterFirstView'](_0x2d1463){}[_0x2fcef6(0xb1)](_0x1276c5){}['onUserChannelTabStatusChanged'](_0x1752e6){}[_0x2fcef6(0xbc)](_0x569a7e){}[_0x2fcef6(0x92)](_0x243d82){}[_0x2fcef6(0x98)](_0x1884f0,_0x20f1e9,_0x3608b3){}[_0x2fcef6(0x9b)](_0x5bfb67,_0x188a9e,_0x325ea6){}[_0x2fcef6(0x91)](..._0x468644){}[_0x2fcef6(0xa6)](..._0xcecf96){}[_0x2fcef6(0x93)](..._0x54ef9e){}[_0x2fcef6(0xab)](..._0x3b1f9b){}}function _0x30fd(){var _0x3cc51e=['onLogLevelChanged','732ylJwNQ','onUserSecQualityChanged','onUserTabStatusChanged','onRedTouchChanged','onMsgRecall','onSearchGroupFileInfoUpdate','onFileMsgCome','onRecvMsgSvrRspTransInfo','onlineStatusBigIconDownloadPush','onHitCsRelatedEmojiResult','onFeedEventUpdate','onlineStatusSmallIconDownloadPush','88677IMAeCA','onGroupFileInfoAdd','onChannelFreqLimitInfoUpdate','149749cNuBJZ','4YjuhTL','onDraftUpdate','onMsgInfoListAdd','onSysMsgNotification','onRecvOnlineFileMsg','onRecvS2CMsg','onMsgWithRichLinkInfoUpdate','onMsgSettingUpdate','onGrabPasswordRedBag','onGroupTransferInfoAdd','8zmCIwa','onBroadcastHelperProgerssUpdate','2957751hhHKKE','onMsgSecurityNotify','92lrOUCk','onRecvGroupGuildFlag','onKickedOffLine','onUnreadCntUpdate','onFirstViewGroupGuildMapping','20115Zbdtig','230qSkyNE','onGuildInteractiveUpdate','63052MDqIIo','onAddSendMsg','onMsgEventListUpdate','onSendMsgError','onEmojiDownloadComplete','onRichMediaUploadComplete','onUserOnlineStatusChanged','onRecvSysMsg','onNtFirstViewMsgSyncEnd','onTempChatInfoUpdate','onRichMediaDownloadComplete','onRecvMsg','onGuildMsgAbFlagChanged','16418004uuIFDe','onMsgDelete','368942HqCJIu','onNtMsgSyncEnd','onHitRelatedEmojiResult'];_0x30fd=function(){return _0x3cc51e;};return _0x30fd();} \ 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 ef11896b..01889ef1 100644 --- a/src/core.lib/src/listeners/NodeIKernelProfileListener.js +++ b/src/core.lib/src/listeners/NodeIKernelProfileListener.js @@ -1 +1 @@ -function _0x1d43(_0x4a5ca3,_0x3480e3){var _0x39e947=_0x39e9();return _0x1d43=function(_0x1d432a,_0x1d5bd2){_0x1d432a=_0x1d432a-0x1bf;var _0x2a7a42=_0x39e947[_0x1d432a];return _0x2a7a42;},_0x1d43(_0x4a5ca3,_0x3480e3);}var _0x57175b=_0x1d43;(function(_0x2eb326,_0x350bab){var _0x4322a6=_0x1d43,_0x3d00cf=_0x2eb326();while(!![]){try{var _0x5d8244=parseInt(_0x4322a6(0x1c9))/0x1+-parseInt(_0x4322a6(0x1c4))/0x2+parseInt(_0x4322a6(0x1c0))/0x3*(-parseInt(_0x4322a6(0x1c2))/0x4)+parseInt(_0x4322a6(0x1cb))/0x5+parseInt(_0x4322a6(0x1c8))/0x6*(parseInt(_0x4322a6(0x1c3))/0x7)+-parseInt(_0x4322a6(0x1c1))/0x8*(-parseInt(_0x4322a6(0x1ca))/0x9)+-parseInt(_0x4322a6(0x1bf))/0xa;if(_0x5d8244===_0x350bab)break;else _0x3d00cf['push'](_0x3d00cf['shift']());}catch(_0x822cbc){_0x3d00cf['push'](_0x3d00cf['shift']());}}}(_0x39e9,0x5936d));function _0x39e9(){var _0xac0240=['252077dtVQNf','151126LsjHMy','onSelfStatusChanged','onProfileSimpleChanged','onProfileDetailInfoChanged','6xjewvS','142995JvXAEL','9Bgcwwm','2707135fVGAnx','onStatusUpdate','5728500XWZCtQ','57462eUCjIK','4952152ocIFGY','68nJOeHn'];_0x39e9=function(){return _0xac0240;};return _0x39e9();}export class ProfileListener{[_0x57175b(0x1c6)](..._0x3ece36){}[_0x57175b(0x1c7)](_0x301b22){}[_0x57175b(0x1cc)](..._0x205d21){}[_0x57175b(0x1c5)](..._0x241daf){}['onStrangerRemarkChanged'](..._0x5538b3){}} \ No newline at end of file +function _0x32ad(){var _0x13d590=['93874HVPhmY','onStrangerRemarkChanged','9uvAqQl','onSelfStatusChanged','onStatusUpdate','16593248pmlSBz','200406XVfzWl','onProfileDetailInfoChanged','30ejCVsW','5321656hvCkkl','6035310erpZgw','2143770QkXKaS','553105GNxgEp','onProfileSimpleChanged'];_0x32ad=function(){return _0x13d590;};return _0x32ad();}var _0x3111ff=_0x4988;(function(_0x41b70d,_0x2abe96){var _0x21abb9=_0x4988,_0x136f68=_0x41b70d();while(!![]){try{var _0x11b254=-parseInt(_0x21abb9(0x18f))/0x1+parseInt(_0x21abb9(0x195))/0x2+-parseInt(_0x21abb9(0x18c))/0x3+-parseInt(_0x21abb9(0x198))/0x4+parseInt(_0x21abb9(0x199))/0x5+-parseInt(_0x21abb9(0x197))/0x6*(parseInt(_0x21abb9(0x18d))/0x7)+parseInt(_0x21abb9(0x194))/0x8*(parseInt(_0x21abb9(0x191))/0x9);if(_0x11b254===_0x2abe96)break;else _0x136f68['push'](_0x136f68['shift']());}catch(_0x7cd805){_0x136f68['push'](_0x136f68['shift']());}}}(_0x32ad,0xcee6c));function _0x4988(_0x4eea7d,_0x54f9b0){var _0x32ad43=_0x32ad();return _0x4988=function(_0x498838,_0x1317ba){_0x498838=_0x498838-0x18c;var _0x538c7f=_0x32ad43[_0x498838];return _0x538c7f;},_0x4988(_0x4eea7d,_0x54f9b0);}export class ProfileListener{[_0x3111ff(0x18e)](..._0x692aee){}[_0x3111ff(0x196)](_0x33f496){}[_0x3111ff(0x193)](..._0x441196){}[_0x3111ff(0x192)](..._0x1c59d2){}[_0x3111ff(0x190)](..._0x2d1bae){}} \ 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 61bb523f..f42c127d 100644 --- a/src/core.lib/src/listeners/NodeIKernelRobotListener.js +++ b/src/core.lib/src/listeners/NodeIKernelRobotListener.js @@ -1 +1 @@ -var _0x4999c9=_0x5bcf;(function(_0x285262,_0x7cadc2){var _0x39fefa=_0x5bcf,_0x3203b2=_0x285262();while(!![]){try{var _0x315bae=-parseInt(_0x39fefa(0x74))/0x1*(parseInt(_0x39fefa(0x7b))/0x2)+-parseInt(_0x39fefa(0x78))/0x3+parseInt(_0x39fefa(0x76))/0x4+-parseInt(_0x39fefa(0x79))/0x5*(parseInt(_0x39fefa(0x7d))/0x6)+parseInt(_0x39fefa(0x7e))/0x7+parseInt(_0x39fefa(0x7c))/0x8+parseInt(_0x39fefa(0x7a))/0x9*(parseInt(_0x39fefa(0x77))/0xa);if(_0x315bae===_0x7cadc2)break;else _0x3203b2['push'](_0x3203b2['shift']());}catch(_0x358c1e){_0x3203b2['push'](_0x3203b2['shift']());}}}(_0x1be9,0x69b5f));function _0x5bcf(_0x4b5136,_0xbfc20c){var _0x1be9c7=_0x1be9();return _0x5bcf=function(_0x5bcf12,_0x458aab){_0x5bcf12=_0x5bcf12-0x74;var _0x4da8e6=_0x1be9c7[_0x5bcf12];return _0x4da8e6;},_0x5bcf(_0x4b5136,_0xbfc20c);}export class KernelRobotListener{['onRobotFriendListChanged'](..._0x18681c){}['onRobotListChanged'](..._0x6d919d){}[_0x4999c9(0x75)](..._0xd92318){}}function _0x1be9(){var _0x10b8e7=['991860DYSQeS','62165bKbJIW','9Lihxtz','2YqbpaX','735256cPCPnd','30VredOI','2850974GMCtXA','705247rzAMRJ','onRobotProfileChanged','2570348atHJtt','3892470HBujUM'];_0x1be9=function(){return _0x10b8e7;};return _0x1be9();} \ No newline at end of file +var _0x5161f8=_0x3a2e;function _0x3a2e(_0x4242bd,_0x2be9e4){var _0x4a19bf=_0x4a19();return _0x3a2e=function(_0x3a2edf,_0x3f2342){_0x3a2edf=_0x3a2edf-0x1dc;var _0x4f3bed=_0x4a19bf[_0x3a2edf];return _0x4f3bed;},_0x3a2e(_0x4242bd,_0x2be9e4);}function _0x4a19(){var _0x12b086=['7194alFRwj','1123230IchMPQ','5428199FUWfyc','2336913uuHNLb','onRobotProfileChanged','4dNxqlD','12080UlzPti','1296uVVpWb','onRobotFriendListChanged','9867160FUTLls','335pPdIlP','onRobotListChanged','731215WIXiad'];_0x4a19=function(){return _0x12b086;};return _0x4a19();}(function(_0x4f85eb,_0x17292b){var _0x1bdddc=_0x3a2e,_0x5ed21a=_0x4f85eb();while(!![]){try{var _0x365ff5=parseInt(_0x1bdddc(0x1e6))/0x1+parseInt(_0x1bdddc(0x1e8))/0x2+parseInt(_0x1bdddc(0x1dd))/0x3*(-parseInt(_0x1bdddc(0x1df))/0x4)+-parseInt(_0x1bdddc(0x1e4))/0x5*(parseInt(_0x1bdddc(0x1e7))/0x6)+-parseInt(_0x1bdddc(0x1dc))/0x7+-parseInt(_0x1bdddc(0x1e0))/0x8*(parseInt(_0x1bdddc(0x1e1))/0x9)+parseInt(_0x1bdddc(0x1e3))/0xa;if(_0x365ff5===_0x17292b)break;else _0x5ed21a['push'](_0x5ed21a['shift']());}catch(_0x4391fc){_0x5ed21a['push'](_0x5ed21a['shift']());}}}(_0x4a19,0x68551));export class KernelRobotListener{[_0x5161f8(0x1e2)](..._0x1d70c9){}[_0x5161f8(0x1e5)](..._0x27158d){}[_0x5161f8(0x1de)](..._0x35082b){}} \ 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 53c1ee53..8d839083 100644 --- a/src/core.lib/src/listeners/NodeIKernelSessionListener.js +++ b/src/core.lib/src/listeners/NodeIKernelSessionListener.js @@ -1 +1 @@ -var _0x8cc1ee=_0x1f88;(function(_0x44c816,_0x5748e6){var _0x32fc67=_0x1f88,_0x91ebc4=_0x44c816();while(!![]){try{var _0x190d6c=-parseInt(_0x32fc67(0xf7))/0x1+-parseInt(_0x32fc67(0xfe))/0x2+parseInt(_0x32fc67(0x103))/0x3*(parseInt(_0x32fc67(0xf8))/0x4)+parseInt(_0x32fc67(0x102))/0x5*(-parseInt(_0x32fc67(0x101))/0x6)+parseInt(_0x32fc67(0xff))/0x7*(parseInt(_0x32fc67(0xfa))/0x8)+-parseInt(_0x32fc67(0x100))/0x9+parseInt(_0x32fc67(0xfd))/0xa;if(_0x190d6c===_0x5748e6)break;else _0x91ebc4['push'](_0x91ebc4['shift']());}catch(_0x2bc313){_0x91ebc4['push'](_0x91ebc4['shift']());}}}(_0x1265,0x768a7));function _0x1265(){var _0x5ee6b5=['289746QHkXiw','15tcmemY','75kwKSBu','onUserOnlineResult','onNTSessionCreate','882590VOZfeB','128748SBCysk','onOpentelemetryInit','1032yDOBAZ','onSessionInitComplete','onGProSessionCreate','13682180lbZBCq','1481104laQOqH','39368eaQQpZ','5803479XMcOPD'];_0x1265=function(){return _0x5ee6b5;};return _0x1265();}function _0x1f88(_0x103be9,_0x44beb2){var _0x126591=_0x1265();return _0x1f88=function(_0x1f8890,_0x456bee){_0x1f8890=_0x1f8890-0xf7;var _0x31a999=_0x126591[_0x1f8890];return _0x31a999;},_0x1f88(_0x103be9,_0x44beb2);}export class SessionListener{[_0x8cc1ee(0x105)](_0x1fb599){}[_0x8cc1ee(0xfc)](_0x287f0f){}[_0x8cc1ee(0xfb)](_0x45815d){}[_0x8cc1ee(0xf9)](_0x34f019){}[_0x8cc1ee(0x104)](_0x1be8d1){}['onGetSelfTinyId'](_0x2eaf1a){}} \ No newline at end of file +var _0x560d50=_0xa24e;function _0xa24e(_0xe6b3c,_0x2a1906){var _0x1bcaf9=_0x1bca();return _0xa24e=function(_0xa24e21,_0xf25696){_0xa24e21=_0xa24e21-0x124;var _0x57db19=_0x1bcaf9[_0xa24e21];return _0x57db19;},_0xa24e(_0xe6b3c,_0x2a1906);}(function(_0x5e3805,_0x288204){var _0x2f3f89=_0xa24e,_0x4b6e1d=_0x5e3805();while(!![]){try{var _0x46a690=-parseInt(_0x2f3f89(0x127))/0x1*(parseInt(_0x2f3f89(0x12c))/0x2)+-parseInt(_0x2f3f89(0x133))/0x3*(-parseInt(_0x2f3f89(0x128))/0x4)+parseInt(_0x2f3f89(0x130))/0x5+parseInt(_0x2f3f89(0x125))/0x6+-parseInt(_0x2f3f89(0x126))/0x7+-parseInt(_0x2f3f89(0x12e))/0x8*(-parseInt(_0x2f3f89(0x129))/0x9)+parseInt(_0x2f3f89(0x12f))/0xa*(parseInt(_0x2f3f89(0x131))/0xb);if(_0x46a690===_0x288204)break;else _0x4b6e1d['push'](_0x4b6e1d['shift']());}catch(_0x11283a){_0x4b6e1d['push'](_0x4b6e1d['shift']());}}}(_0x1bca,0xf2b43));function _0x1bca(){var _0x142bb4=['3832535IYRlIN','572rvMFzh','onNTSessionCreate','983070QdEPdw','onGProSessionCreate','7916766DGXAII','11867996jWQOfu','457yzMkDc','4YleRib','45VwkRZA','onUserOnlineResult','onGetSelfTinyId','1796VASXYo','onSessionInitComplete','733784HPGdMQ','43780swKeHl'];_0x1bca=function(){return _0x142bb4;};return _0x1bca();}export class SessionListener{[_0x560d50(0x132)](_0x1edc3f){}[_0x560d50(0x124)](_0x41d1e4){}[_0x560d50(0x12d)](_0x31863e){}['onOpentelemetryInit'](_0x485a6d){}[_0x560d50(0x12a)](_0x1c7468){}[_0x560d50(0x12b)](_0x460662){}} \ 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 9d0d6ced..a30307ee 100644 --- a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js +++ b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js @@ -1 +1 @@ -function _0xb0eb(_0x32f7cd,_0x30311c){var _0xc6c5ca=_0xc6c5();return _0xb0eb=function(_0xb0eb1a,_0xc9e9f0){_0xb0eb1a=_0xb0eb1a-0x196;var _0x4aa81e=_0xc6c5ca[_0xb0eb1a];return _0x4aa81e;},_0xb0eb(_0x32f7cd,_0x30311c);}var _0x3a2d5e=_0xb0eb;(function(_0x270370,_0x16fbcc){var _0x51d5d5=_0xb0eb,_0x50c420=_0x270370();while(!![]){try{var _0x3836f0=parseInt(_0x51d5d5(0x1a1))/0x1+parseInt(_0x51d5d5(0x1a3))/0x2+parseInt(_0x51d5d5(0x197))/0x3*(parseInt(_0x51d5d5(0x19a))/0x4)+-parseInt(_0x51d5d5(0x198))/0x5+parseInt(_0x51d5d5(0x1a4))/0x6*(parseInt(_0x51d5d5(0x19f))/0x7)+-parseInt(_0x51d5d5(0x19b))/0x8*(-parseInt(_0x51d5d5(0x1a2))/0x9)+parseInt(_0x51d5d5(0x196))/0xa*(-parseInt(_0x51d5d5(0x19d))/0xb);if(_0x3836f0===_0x16fbcc)break;else _0x50c420['push'](_0x50c420['shift']());}catch(_0x8e55de){_0x50c420['push'](_0x50c420['shift']());}}}(_0xc6c5,0xdcd63));function _0xc6c5(){var _0x42fbbd=['onChatCleanDone','10fXVRBV','3543051UcRshR','2256900JELUGe','onCleanCacheStorageChanged','4bbHNYa','408lJxiev','onScanCacheProgressChanged','40549542mEvlMY','onFinishScan','1547BDxRKx','onCleanCacheProgressChanged','1654299WdNpTK','63918CvIgQr','896464McnpUm','37914yvlODl'];_0xc6c5=function(){return _0x42fbbd;};return _0xc6c5();}export class StorageCleanListener{[_0x3a2d5e(0x1a0)](_0x49c1af){}[_0x3a2d5e(0x19c)](_0xa5c10c){}[_0x3a2d5e(0x199)](_0x4aae45){}[_0x3a2d5e(0x19e)](_0x3ed1dc){}[_0x3a2d5e(0x1a5)](_0x2e3608){}} \ No newline at end of file +var _0x5b5e5d=_0x22dd;(function(_0x242e29,_0x38affc){var _0x290d2a=_0x22dd,_0x298103=_0x242e29();while(!![]){try{var _0x52624b=parseInt(_0x290d2a(0xf4))/0x1+-parseInt(_0x290d2a(0xfa))/0x2*(parseInt(_0x290d2a(0xef))/0x3)+-parseInt(_0x290d2a(0xee))/0x4*(-parseInt(_0x290d2a(0xf9))/0x5)+-parseInt(_0x290d2a(0xf5))/0x6*(-parseInt(_0x290d2a(0xfc))/0x7)+-parseInt(_0x290d2a(0xf0))/0x8*(parseInt(_0x290d2a(0xfb))/0x9)+-parseInt(_0x290d2a(0xed))/0xa*(parseInt(_0x290d2a(0xf1))/0xb)+-parseInt(_0x290d2a(0xf3))/0xc;if(_0x52624b===_0x38affc)break;else _0x298103['push'](_0x298103['shift']());}catch(_0x251ce8){_0x298103['push'](_0x298103['shift']());}}}(_0x1fad,0x41a14));export class StorageCleanListener{[_0x5b5e5d(0xf2)](_0x1738c3){}[_0x5b5e5d(0xf6)](_0x3aa60b){}[_0x5b5e5d(0xf8)](_0x2520b2){}[_0x5b5e5d(0xf7)](_0x5758d6){}['onChatCleanDone'](_0x26f4c1){}}function _0x22dd(_0x5dbf05,_0x10d4ea){var _0x1fad05=_0x1fad();return _0x22dd=function(_0x22dd92,_0x21b616){_0x22dd92=_0x22dd92-0xed;var _0x127ab5=_0x1fad05[_0x22dd92];return _0x127ab5;},_0x22dd(_0x5dbf05,_0x10d4ea);}function _0x1fad(){var _0x5e4a14=['onFinishScan','onCleanCacheStorageChanged','2321445XanmYz','301148mCTdyW','9VgTadh','65086QUKlJw','3707020KzikDL','4mOtieH','3imIONz','1928728VXJtCV','11SZmwVp','onCleanCacheProgressChanged','3155628AAYufr','439351OmMJMk','252tdHsJV','onScanCacheProgressChanged'];_0x1fad=function(){return _0x5e4a14;};return _0x1fad();} \ 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 09dad0ea..e670a7ee 100644 --- a/src/core.lib/src/listeners/index.js +++ b/src/core.lib/src/listeners/index.js @@ -1 +1 @@ -(function(_0x6fef70,_0x4f223a){var _0x35249b=_0x39f0,_0x47d542=_0x6fef70();while(!![]){try{var _0x2633bb=-parseInt(_0x35249b(0xd7))/0x1*(-parseInt(_0x35249b(0xce))/0x2)+parseInt(_0x35249b(0xd0))/0x3*(-parseInt(_0x35249b(0xd2))/0x4)+parseInt(_0x35249b(0xd5))/0x5+parseInt(_0x35249b(0xd3))/0x6+-parseInt(_0x35249b(0xcf))/0x7+parseInt(_0x35249b(0xd1))/0x8*(-parseInt(_0x35249b(0xd4))/0x9)+parseInt(_0x35249b(0xd8))/0xa*(parseInt(_0x35249b(0xd6))/0xb);if(_0x2633bb===_0x4f223a)break;else _0x47d542['push'](_0x47d542['shift']());}catch(_0x271aae){_0x47d542['push'](_0x47d542['shift']());}}}(_0x4fc3,0xdbdb2));export*from'./NodeIKernelSessionListener';function _0x39f0(_0x29d6ef,_0x5531ce){var _0x4fc385=_0x4fc3();return _0x39f0=function(_0x39f086,_0x1234f8){_0x39f086=_0x39f086-0xce;var _0x414dc0=_0x4fc385[_0x39f086];return _0x414dc0;},_0x39f0(_0x29d6ef,_0x5531ce);}export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';function _0x4fc3(){var _0x213156=['4732281ivICFv','4133320nSHmtP','17237lcOLmh','26ORvqHz','6170EWxvWo','130070vRfAKv','12178005DRSLZs','3dWjSaH','8czwfNR','4556164ldNUVF','4924092kZvmzu'];_0x4fc3=function(){return _0x213156;};return _0x4fc3();}export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file +(function(_0x44ba0a,_0x7c379c){var _0x3bbe00=_0x5353,_0x52ae53=_0x44ba0a();while(!![]){try{var _0x5919b4=-parseInt(_0x3bbe00(0x174))/0x1+parseInt(_0x3bbe00(0x178))/0x2*(-parseInt(_0x3bbe00(0x17b))/0x3)+parseInt(_0x3bbe00(0x179))/0x4*(-parseInt(_0x3bbe00(0x17f))/0x5)+parseInt(_0x3bbe00(0x175))/0x6+-parseInt(_0x3bbe00(0x17a))/0x7*(-parseInt(_0x3bbe00(0x17e))/0x8)+parseInt(_0x3bbe00(0x177))/0x9*(parseInt(_0x3bbe00(0x17c))/0xa)+parseInt(_0x3bbe00(0x17d))/0xb*(-parseInt(_0x3bbe00(0x176))/0xc);if(_0x5919b4===_0x7c379c)break;else _0x52ae53['push'](_0x52ae53['shift']());}catch(_0x4cd605){_0x52ae53['push'](_0x52ae53['shift']());}}}(_0x55f6,0x61bfe));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';function _0x55f6(){var _0x553f18=['36DfstdB','1211nOCYJl','738JJPfuF','3180AtLrIA','539baVCiZ','14952iQedsi','313675vorBWx','46662KdqDEH','3816432dshBCy','109704CrVkoc','17631fPUIwy','998kogicC'];_0x55f6=function(){return _0x553f18;};return _0x55f6();}export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';function _0x5353(_0x5f4e89,_0x5891a9){var _0x55f672=_0x55f6();return _0x5353=function(_0x5353f6,_0x33f9f0){_0x5353f6=_0x5353f6-0x174;var _0x481c99=_0x55f672[_0x5353f6];return _0x481c99;},_0x5353(_0x5f4e89,_0x5891a9);}export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file diff --git a/src/core.lib/src/services/common.js b/src/core.lib/src/services/common.js index 29621a31..3439dfc6 100644 --- a/src/core.lib/src/services/common.js +++ b/src/core.lib/src/services/common.js @@ -1 +1 @@ -(function(_0x3fc41e,_0x3423f2){var _0x44208b=_0x1dff,_0x13791a=_0x3fc41e();while(!![]){try{var _0x1c0f86=parseInt(_0x44208b(0xdc))/0x1+parseInt(_0x44208b(0xe6))/0x2+parseInt(_0x44208b(0xe3))/0x3*(parseInt(_0x44208b(0xe2))/0x4)+parseInt(_0x44208b(0xe5))/0x5*(parseInt(_0x44208b(0xe1))/0x6)+-parseInt(_0x44208b(0xde))/0x7*(-parseInt(_0x44208b(0xdf))/0x8)+-parseInt(_0x44208b(0xe0))/0x9*(parseInt(_0x44208b(0xe4))/0xa)+-parseInt(_0x44208b(0xdd))/0xb;if(_0x1c0f86===_0x3423f2)break;else _0x13791a['push'](_0x13791a['shift']());}catch(_0xe757ea){_0x13791a['push'](_0x13791a['shift']());}}}(_0x2f05,0x65f73));export var GeneralCallResultStatus;(function(_0x340a06){_0x340a06[_0x340a06['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));function _0x1dff(_0x5ed6c5,_0x4dec8e){var _0x2f054c=_0x2f05();return _0x1dff=function(_0x1dffab,_0x2f9058){_0x1dffab=_0x1dffab-0xdc;var _0x50b7c7=_0x2f054c[_0x1dffab];return _0x50b7c7;},_0x1dff(_0x5ed6c5,_0x4dec8e);}function _0x2f05(){var _0x2f0eb4=['291078OCLvKk','235278yJSnGT','40xBCulx','222675VciYCH','210HPjujz','60qjuORc','615960qOCmnV','324708dDWYHq','16576769MTSyKr','77psqnhc','551504XYnwWw'];_0x2f05=function(){return _0x2f0eb4;};return _0x2f05();} \ No newline at end of file +(function(_0x178f93,_0x6e8a4f){var _0x5727d0=_0x2ad1,_0x3bdb0f=_0x178f93();while(!![]){try{var _0x35f1ff=-parseInt(_0x5727d0(0x16c))/0x1*(-parseInt(_0x5727d0(0x16b))/0x2)+-parseInt(_0x5727d0(0x172))/0x3+parseInt(_0x5727d0(0x16f))/0x4+parseInt(_0x5727d0(0x168))/0x5*(parseInt(_0x5727d0(0x16a))/0x6)+-parseInt(_0x5727d0(0x16d))/0x7*(parseInt(_0x5727d0(0x170))/0x8)+parseInt(_0x5727d0(0x16e))/0x9*(-parseInt(_0x5727d0(0x167))/0xa)+-parseInt(_0x5727d0(0x171))/0xb*(-parseInt(_0x5727d0(0x169))/0xc);if(_0x35f1ff===_0x6e8a4f)break;else _0x3bdb0f['push'](_0x3bdb0f['shift']());}catch(_0x57c1cd){_0x3bdb0f['push'](_0x3bdb0f['shift']());}}}(_0x12fd,0x72941));function _0x2ad1(_0x1c01fe,_0x4fc683){var _0x12fda4=_0x12fd();return _0x2ad1=function(_0x2ad1d7,_0x45ca45){_0x2ad1d7=_0x2ad1d7-0x167;var _0x398451=_0x12fda4[_0x2ad1d7];return _0x398451;},_0x2ad1(_0x1c01fe,_0x4fc683);}function _0x12fd(){var _0x3ab807=['2979XVCUZU','768236jvcJGw','196520GGwVJo','643082oEkOOO','1817886fvnEOR','22180tGPMev','426495pvcjPc','96ShlbPu','42IEBvnD','1792990iwkdTX','1fGGaFO','98TDJeai'];_0x12fd=function(){return _0x3ab807;};return _0x12fd();}export var GeneralCallResultStatus;(function(_0x2ccbf5){_0x2ccbf5[_0x2ccbf5['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file diff --git a/src/core.lib/src/services/index.js b/src/core.lib/src/services/index.js index 192fa9b4..5d242b13 100644 --- a/src/core.lib/src/services/index.js +++ b/src/core.lib/src/services/index.js @@ -1 +1 @@ -(function(_0x28ff8d,_0xf335e1){var _0x47ac76=_0x5868,_0x27094d=_0x28ff8d();while(!![]){try{var _0x2ed2c0=parseInt(_0x47ac76(0xf0))/0x1+parseInt(_0x47ac76(0xf3))/0x2+-parseInt(_0x47ac76(0xf1))/0x3+parseInt(_0x47ac76(0xf8))/0x4+parseInt(_0x47ac76(0xef))/0x5*(parseInt(_0x47ac76(0xf4))/0x6)+parseInt(_0x47ac76(0xf5))/0x7*(-parseInt(_0x47ac76(0xf6))/0x8)+parseInt(_0x47ac76(0xf2))/0x9*(-parseInt(_0x47ac76(0xf7))/0xa);if(_0x2ed2c0===_0xf335e1)break;else _0x27094d['push'](_0x27094d['shift']());}catch(_0xaba1fe){_0x27094d['push'](_0x27094d['shift']());}}}(_0x8f94,0x7499d));function _0x8f94(){var _0x5c1a3e=['12810czOqVr','3008mIfXnT','10mrOIJX','594296SGvwFL','35AmHpNc','907605LTfQfb','1123074JCbfDj','10080495tTUTry','1428660jPmind','762498oVMfdS'];_0x8f94=function(){return _0x5c1a3e;};return _0x8f94();}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';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';function _0x5868(_0x96356e,_0x23d6a3){var _0x8f9417=_0x8f94();return _0x5868=function(_0x586868,_0x5668b0){_0x586868=_0x586868-0xef;var _0x5b6385=_0x8f9417[_0x586868];return _0x5b6385;},_0x5868(_0x96356e,_0x23d6a3);}export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService'; \ No newline at end of file +(function(_0x104a4d,_0x349ac5){var _0x97067=_0x46da,_0x5b8606=_0x104a4d();while(!![]){try{var _0x3b94fc=parseInt(_0x97067(0x93))/0x1*(parseInt(_0x97067(0x91))/0x2)+parseInt(_0x97067(0x97))/0x3*(parseInt(_0x97067(0x90))/0x4)+parseInt(_0x97067(0x95))/0x5*(-parseInt(_0x97067(0x96))/0x6)+-parseInt(_0x97067(0x99))/0x7+parseInt(_0x97067(0x8e))/0x8*(-parseInt(_0x97067(0x92))/0x9)+-parseInt(_0x97067(0x8f))/0xa*(-parseInt(_0x97067(0x94))/0xb)+parseInt(_0x97067(0x98))/0xc;if(_0x3b94fc===_0x349ac5)break;else _0x5b8606['push'](_0x5b8606['shift']());}catch(_0x4a111f){_0x5b8606['push'](_0x5b8606['shift']());}}}(_0xecd4,0xaec8f));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';function _0xecd4(){var _0x546d22=['3PTOWft','30040080zRGcvF','4370100qZAIDq','758256rKyhvy','1680530boztfR','2691648azuboZ','15716ENQYPB','108PORsne','10AqGHEx','11tkCsmE','60595CfJFJb','468qcHknk'];_0xecd4=function(){return _0x546d22;};return _0xecd4();}export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';function _0x46da(_0x57d4fa,_0xff5582){var _0xecd438=_0xecd4();return _0x46da=function(_0x46da7b,_0x40f3a0){_0x46da7b=_0x46da7b-0x8e;var _0x4f5004=_0xecd438[_0x46da7b];return _0x4f5004;},_0x46da(_0x57d4fa,_0xff5582);}export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService'; \ No newline at end of file diff --git a/src/core.lib/src/sessionConfig.js b/src/core.lib/src/sessionConfig.js index 1eddb0c6..1c19a45c 100644 --- a/src/core.lib/src/sessionConfig.js +++ b/src/core.lib/src/sessionConfig.js @@ -1 +1 @@ -(function(_0x5405b7,_0x32efe8){const _0x35f2a0=_0x1651,_0x29c5a2=_0x5405b7();while(!![]){try{const _0x47b3a6=parseInt(_0x35f2a0(0x120))/0x1+-parseInt(_0x35f2a0(0x122))/0x2*(-parseInt(_0x35f2a0(0x11c))/0x3)+-parseInt(_0x35f2a0(0x127))/0x4*(-parseInt(_0x35f2a0(0x132))/0x5)+parseInt(_0x35f2a0(0x11a))/0x6*(parseInt(_0x35f2a0(0x125))/0x7)+parseInt(_0x35f2a0(0x129))/0x8*(parseInt(_0x35f2a0(0x12c))/0x9)+-parseInt(_0x35f2a0(0x124))/0xa+-parseInt(_0x35f2a0(0x12a))/0xb*(parseInt(_0x35f2a0(0x123))/0xc);if(_0x47b3a6===_0x32efe8)break;else _0x29c5a2['push'](_0x29c5a2['shift']());}catch(_0x73eb74){_0x29c5a2['push'](_0x29c5a2['shift']());}}}(_0x5ccb,0x1e377));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';function _0x5ccb(){const _0x41b274=['{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','27JcagFO','version','assign','readFileSync','rKDKi','guid.txt','5eeOHbK','writeFileSync','6iipFdx','mkdirSync','732OhFiKV','NapCat','RLKFC','gZKKX','77327gGzLvk','temp','284CfwfUo','24uhyhbR','135870NprGqU','1378832qfPKzi','join','540808ndkeqC','utf-8','194328hFbULL','2088196GHUklZ'];_0x5ccb=function(){return _0x41b274;};return _0x5ccb();}import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x32907c from'node:path';import _0x4a3e0a from'node:fs';function _0x1651(_0xc23a8,_0xf294ef){const _0x5ccb7b=_0x5ccb();return _0x1651=function(_0x16517f,_0x105770){_0x16517f=_0x16517f-0x11a;let _0x3126b9=_0x5ccb7b[_0x16517f];return _0x3126b9;},_0x1651(_0xc23a8,_0xf294ef);}import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0x46ebca,_0x13b602,_0x4967c6){const _0xc8aa45=_0x1651,_0x4c0a40={'rKDKi':_0xc8aa45(0x11d),'OuHPK':_0xc8aa45(0x121),'gZKKX':_0xc8aa45(0x131),'RLKFC':function(_0x327582){return _0x327582();},'FIRPV':_0xc8aa45(0x128),'fWIFx':_0xc8aa45(0x12b)},_0x32c41d=_0x32907c[_0xc8aa45(0x126)](_0x4967c6,_0x4c0a40[_0xc8aa45(0x130)],_0x4c0a40['OuHPK']);_0x4a3e0a[_0xc8aa45(0x11b)](_0x32c41d,{'recursive':!![]});const _0x5c0505=_0x32907c['join'](_0x4967c6,_0xc8aa45(0x11d),_0x4c0a40[_0xc8aa45(0x11f)]);let _0x4d00f7=_0x4c0a40[_0xc8aa45(0x11e)](randomUUID);try{_0x4d00f7=_0x4a3e0a[_0xc8aa45(0x12f)](_0x32907c[_0xc8aa45(0x126)](_0x5c0505),_0x4c0a40['FIRPV']);}catch(_0x18ad78){_0x4a3e0a[_0xc8aa45(0x133)](_0x32907c[_0xc8aa45(0x126)](_0x5c0505),_0x4d00f7,_0xc8aa45(0x128));}const _0x49c085={'selfUin':_0x46ebca,'selfUid':_0x13b602,'desktopPathConfig':{'account_path':_0x4967c6},'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':_0x32c41d,'deviceInfo':{'guid':_0x4d00f7,'buildVer':qqPkgInfo[_0xc8aa45(0x12d)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x4c0a40['fWIFx']};return Object[_0xc8aa45(0x12e)](sessionConfig,_0x49c085),_0x49c085;} \ No newline at end of file +(function(_0x4f1f85,_0x4b8928){const _0x1224fc=_0x4574,_0x28520f=_0x4f1f85();while(!![]){try{const _0x1d032e=-parseInt(_0x1224fc(0x19a))/0x1+-parseInt(_0x1224fc(0x191))/0x2*(-parseInt(_0x1224fc(0x190))/0x3)+parseInt(_0x1224fc(0x198))/0x4*(-parseInt(_0x1224fc(0x197))/0x5)+-parseInt(_0x1224fc(0x194))/0x6*(-parseInt(_0x1224fc(0x199))/0x7)+parseInt(_0x1224fc(0x18d))/0x8+parseInt(_0x1224fc(0x186))/0x9+-parseInt(_0x1224fc(0x18c))/0xa;if(_0x1d032e===_0x4b8928)break;else _0x28520f['push'](_0x28520f['shift']());}catch(_0x2e4ae5){_0x28520f['push'](_0x28520f['shift']());}}}(_0x47a4,0x77088));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x16ca20 from'node:path';import _0x2bae57 from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};function _0x4574(_0x2b0e06,_0x1f6c1a){const _0x47a4a=_0x47a4();return _0x4574=function(_0x457409,_0x3d6c89){_0x457409=_0x457409-0x186;let _0x1296df=_0x47a4a[_0x457409];return _0x1296df;},_0x4574(_0x2b0e06,_0x1f6c1a);}export function genSessionConfig(_0x44d850,_0x42dff4,_0x2b0fc7){const _0x5844c8=_0x4574,_0x382697={'arcvs':_0x5844c8(0x189),'SMYVg':_0x5844c8(0x18e),'UMGAi':_0x5844c8(0x18a)},_0x5b05a4=_0x16ca20[_0x5844c8(0x19b)](_0x2b0fc7,_0x382697[_0x5844c8(0x18b)],_0x5844c8(0x196));_0x2bae57[_0x5844c8(0x192)](_0x5b05a4,{'recursive':!![]});const _0x2a835b=_0x16ca20[_0x5844c8(0x19b)](_0x2b0fc7,_0x382697[_0x5844c8(0x18b)],'guid.txt');let _0x4a6c5e=randomUUID();try{_0x4a6c5e=_0x2bae57[_0x5844c8(0x187)](_0x16ca20[_0x5844c8(0x19b)](_0x2a835b),_0x5844c8(0x18e));}catch(_0x2b8a6d){_0x2bae57[_0x5844c8(0x19c)](_0x16ca20[_0x5844c8(0x19b)](_0x2a835b),_0x4a6c5e,_0x382697[_0x5844c8(0x193)]);}const _0x4f4971={'selfUin':_0x44d850,'selfUid':_0x42dff4,'desktopPathConfig':{'account_path':_0x2b0fc7},'clientVer':qqVersionConfigInfo[_0x5844c8(0x195)],'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':_0x5b05a4,'deviceInfo':{'guid':_0x4a6c5e,'buildVer':qqPkgInfo[_0x5844c8(0x188)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x382697['UMGAi']};return Object[_0x5844c8(0x18f)](sessionConfig,_0x4f4971),_0x4f4971;}function _0x47a4(){const _0xf0a0c8=['4EWvxYn','4137833faZuqe','17534wecUEw','join','writeFileSync','545751sjyxsN','readFileSync','version','NapCat','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','arcvs','4912010fQUrtF','5698008QGeqEz','utf-8','assign','13791kjJZDX','50hYAkAo','mkdirSync','SMYVg','6FWJxkG','curVersion','temp','2413195ZjvWMt'];_0x47a4=function(){return _0xf0a0c8;};return _0x47a4();} \ 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 ad877517..f147af55 100644 --- a/src/core.lib/src/utils/config.js +++ b/src/core.lib/src/utils/config.js @@ -1 +1 @@ -const _0xb91de5=_0x5b5f;(function(_0x38bdf6,_0x1aad3c){const _0x499d11=_0x5b5f,_0x4d069c=_0x38bdf6();while(!![]){try{const _0x498a88=-parseInt(_0x499d11(0x10f))/0x1*(-parseInt(_0x499d11(0x111))/0x2)+-parseInt(_0x499d11(0x103))/0x3+parseInt(_0x499d11(0x10b))/0x4*(parseInt(_0x499d11(0x109))/0x5)+parseInt(_0x499d11(0x10e))/0x6+-parseInt(_0x499d11(0x102))/0x7*(parseInt(_0x499d11(0x112))/0x8)+parseInt(_0x499d11(0x100))/0x9*(-parseInt(_0x499d11(0x10c))/0xa)+parseInt(_0x499d11(0x106))/0xb;if(_0x498a88===_0x1aad3c)break;else _0x4d069c['push'](_0x4d069c['shift']());}catch(_0x30b1d5){_0x4d069c['push'](_0x4d069c['shift']());}}}(_0x1507,0x1c5db));import _0x332e05 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';function _0x5b5f(_0x275d1c,_0x2c7774){const _0x1507ca=_0x1507();return _0x5b5f=function(_0x5b5fe2,_0x5c5a0b){_0x5b5fe2=_0x5b5fe2-0xff;let _0x570c17=_0x1507ca[_0x5b5fe2];return _0x570c17;},_0x5b5f(_0x275d1c,_0x2c7774);}class Config extends ConfigBase{[_0xb91de5(0x107)]=!![];[_0xb91de5(0x114)]=!![];[_0xb91de5(0x110)]=LogLevel[_0xb91de5(0x108)];[_0xb91de5(0x101)]=LogLevel['INFO'];constructor(){super();}[_0xb91de5(0x104)](){const _0x45284e=_0xb91de5;return _0x332e05[_0x45284e(0x113)](this[_0x45284e(0x105)](),_0x45284e(0xff)+selfInfo[_0x45284e(0x10a)]+_0x45284e(0x10d));}}function _0x1507(){const _0x52df17=['352620xnzlOG','7361keoKpH','fileLogLevel','38fPyqVt','1282384bgNZKI','join','consoleLog','napcat_','1021779AloQdA','consoleLogLevel','7fvwyWY','61794iejlCe','getConfigPath','getConfigDir','806047UTtCeO','fileLog','DEBUG','693540CWECeQ','uin','4tirRdC','10RnMSDz','.json'];_0x1507=function(){return _0x52df17;};return _0x1507();}export const napCatConfig=new Config(); \ No newline at end of file +function _0xf521(_0x287b64,_0x3be384){const _0x950f5e=_0x950f();return _0xf521=function(_0xf52191,_0x3a66a0){_0xf52191=_0xf52191-0x8a;let _0x19bc1f=_0x950f5e[_0xf52191];return _0x19bc1f;},_0xf521(_0x287b64,_0x3be384);}const _0x1f6a2b=_0xf521;(function(_0x93b2ef,_0x2ab49a){const _0x34b3b1=_0xf521,_0x204749=_0x93b2ef();while(!![]){try{const _0x74845f=-parseInt(_0x34b3b1(0x97))/0x1*(parseInt(_0x34b3b1(0x8e))/0x2)+parseInt(_0x34b3b1(0x90))/0x3+parseInt(_0x34b3b1(0x99))/0x4*(parseInt(_0x34b3b1(0x95))/0x5)+parseInt(_0x34b3b1(0x8f))/0x6+-parseInt(_0x34b3b1(0x91))/0x7*(-parseInt(_0x34b3b1(0x93))/0x8)+parseInt(_0x34b3b1(0x98))/0x9+-parseInt(_0x34b3b1(0x8c))/0xa;if(_0x74845f===_0x2ab49a)break;else _0x204749['push'](_0x204749['shift']());}catch(_0x5c06ea){_0x204749['push'](_0x204749['shift']());}}}(_0x950f,0x57e66));function _0x950f(){const _0x2b0e93=['napcat_','consoleLogLevel','getConfigDir','fileLogLevel','20490840BhfzTl','consoleLog','515022CqJHuv','3417306Dcnaii','1132155eHLrKy','3901065fAQLoy','getConfigPath','8UwtiiE','INFO','5RRxDbV','DEBUG','1NLKuDe','4405509AUwjiI','2691604vqcaua','uin'];_0x950f=function(){return _0x2b0e93;};return _0x950f();}import _0x362f9d from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{['fileLog']=!![];[_0x1f6a2b(0x8d)]=!![];[_0x1f6a2b(0x8b)]=LogLevel[_0x1f6a2b(0x96)];[_0x1f6a2b(0x9c)]=LogLevel[_0x1f6a2b(0x94)];constructor(){super();}[_0x1f6a2b(0x92)](){const _0x42268f=_0x1f6a2b;return _0x362f9d['join'](this[_0x42268f(0x8a)](),_0x42268f(0x9b)+selfInfo[_0x42268f(0x9a)]+'.json');}}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 efdae822..0b00d809 100644 --- a/src/core.lib/src/utils/db.js +++ b/src/core.lib/src/utils/db.js @@ -1 +1 @@ -const _0x23eb40=_0x3aa1;(function(_0xac58c4,_0x1ab0c0){const _0x35c3a7=_0x3aa1,_0x5b226a=_0xac58c4();while(!![]){try{const _0x2d798c=-parseInt(_0x35c3a7(0x1cd))/0x1*(-parseInt(_0x35c3a7(0x1e7))/0x2)+parseInt(_0x35c3a7(0x1f3))/0x3+parseInt(_0x35c3a7(0x1c4))/0x4+parseInt(_0x35c3a7(0x171))/0x5*(parseInt(_0x35c3a7(0x1c0))/0x6)+-parseInt(_0x35c3a7(0x1ee))/0x7*(parseInt(_0x35c3a7(0x1bf))/0x8)+parseInt(_0x35c3a7(0x1ed))/0x9*(parseInt(_0x35c3a7(0x1b2))/0xa)+-parseInt(_0x35c3a7(0x19a))/0xb*(parseInt(_0x35c3a7(0x1e8))/0xc);if(_0x2d798c===_0x1ab0c0)break;else _0x5b226a['push'](_0x5b226a['shift']());}catch(_0x24cacc){_0x5b226a['push'](_0x5b226a['shift']());}}}(_0x5bb7,0x8ec8d));import _0x2998e9 from'sqlite3';function _0x3aa1(_0x175737,_0x4208db){const _0x5bb7ab=_0x5bb7();return _0x3aa1=function(_0x3aa149,_0x18bb8d){_0x3aa149=_0x3aa149-0x168;let _0x3b3f14=_0x5bb7ab[_0x3aa149];return _0x3b3f14;},_0x3aa1(_0x175737,_0x4208db);}import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async[_0x23eb40(0x16c)](_0x2f9963){const _0x4286f8=_0x23eb40,_0x55aafc={'KGpYn':_0x4286f8(0x17b)};if(this['db'])return;return new Promise((_0x5cd6fb,_0x4abaaf)=>{const _0x3e649c=_0x4286f8,_0x53a64e={'YYWir':_0x55aafc[_0x3e649c(0x199)],'Xqabc':function(_0x267a10,_0x514351){return _0x267a10(_0x514351);},'lNZga':function(_0x275f7f){return _0x275f7f();}};this['db']=new _0x2998e9[(_0x3e649c(0x18d))](_0x2f9963,_0x2998e9[_0x3e649c(0x1d7)]|_0x2998e9[_0x3e649c(0x1da)],_0x469782=>{const _0x22f9c2=_0x3e649c;if(_0x469782){logError(_0x53a64e[_0x22f9c2(0x1ab)],_0x469782),_0x53a64e[_0x22f9c2(0x1d3)](_0x4abaaf,_0x469782);return;}this['createTable'](),_0x53a64e[_0x22f9c2(0x1f7)](_0x5cd6fb);});});}[_0x23eb40(0x176)](){const _0x43fdbe=_0x23eb40,_0x5702e9={'nEIQJ':'Method\x20not\x20implemented.'};throw new Error(_0x5702e9[_0x43fdbe(0x17f)]);}[_0x23eb40(0x18f)](){const _0x18c0da=_0x23eb40;this['db']?.[_0x18c0da(0x18f)]();}}class DBUtil extends DBUtilBase{[_0x23eb40(0x1c1)]=new Map();[_0x23eb40(0x1eb)]=-0x7ffffff8;constructor(){const _0xcae3c2=_0x23eb40,_0x24b3dc={'tZEQN':function(_0x2891f3,_0x5aa159){return _0x2891f3>_0x5aa159;},'ueSNQ':function(_0x2b9bec,_0x3ffe06){return _0x2b9bec*_0x3ffe06;},'KlhgL':function(_0x4b79d6,_0x5a2d84){return _0x4b79d6(_0x5a2d84);},'fpySg':function(_0x2cb136,_0x5f2ec6){return _0x2cb136*_0x5f2ec6;},'aGRYp':function(_0x5b9427,_0x2e438a){return _0x5b9427*_0x2e438a;},'dQtHH':function(_0x29147a,_0x14265d,_0x293e4e){return _0x29147a(_0x14265d,_0x293e4e);}};super();const _0x1ae65e=_0x24b3dc['fpySg'](_0x24b3dc[_0xcae3c2(0x1f6)](0x3e8,0x3c),0xa);_0x24b3dc[_0xcae3c2(0x1b0)](setInterval,()=>{const _0x4e63f7=_0xcae3c2;_0x24b3dc[_0x4e63f7(0x18a)](logDebug,_0x4e63f7(0x1c3)),this[_0x4e63f7(0x1c1)]['forEach']((_0x3e438c,_0xa684e8)=>{const _0x1dbb73=_0x4e63f7;_0x24b3dc[_0x1dbb73(0x1b6)](Date[_0x1dbb73(0x194)]()-_0x24b3dc[_0x1dbb73(0x1ef)](_0x24b3dc[_0x1dbb73(0x18a)](parseInt,_0x3e438c['msgTime']),0x3e8),_0x1ae65e)&&this[_0x1dbb73(0x1c1)][_0x1dbb73(0x1ba)](_0xa684e8);});},_0x1ae65e);}async[_0x23eb40(0x16c)](_0x29ec09){const _0x453005=_0x23eb40;await super[_0x453005(0x16c)](_0x29ec09),this['globalMsgShortId']=await this[_0x453005(0x173)]();}['createTable'](){const _0x4ac776=_0x23eb40,_0x4ce2dc={'wdKHh':function(_0x17bb82,_0x15f393,_0x255f33){return _0x17bb82(_0x15f393,_0x255f33);},'yTiOO':'Could\x20not\x20create\x20table\x20msgs','JViGM':'Could\x20not\x20create\x20table\x20files','Iqqtm':_0x4ac776(0x179)},_0x6b1adb=_0x4ac776(0x1d4);this['db'][_0x4ac776(0x172)](_0x6b1adb,function(_0x35715c){const _0x1265fb=_0x4ac776;_0x35715c&&_0x4ce2dc[_0x1265fb(0x182)](logError,_0x4ce2dc[_0x1265fb(0x197)],_0x35715c[_0x1265fb(0x1e6)]);});const _0x236ab5=_0x4ac776(0x1d6);this['db'][_0x4ac776(0x172)](_0x236ab5,function(_0x2dc0b0){const _0x51ba03=_0x4ac776;_0x2dc0b0&&_0x4ce2dc[_0x51ba03(0x182)](logError,_0x4ce2dc[_0x51ba03(0x1a9)],_0x2dc0b0);});const _0x55b21b=_0x4ac776(0x168);this['db']['run'](_0x55b21b,function(_0x1d996a){const _0x3b4b1d=_0x4ac776;_0x1d996a&&_0x4ce2dc[_0x3b4b1d(0x182)](logError,_0x4ce2dc[_0x3b4b1d(0x1c6)],_0x1d996a);});}async[_0x23eb40(0x173)](){const _0x566a79=_0x23eb40,_0x5258bb={'fMiCK':function(_0x2cae55,_0x5bc442,_0x37b514){return _0x2cae55(_0x5bc442,_0x37b514);},'upVRg':function(_0x6d0b56,_0x2cfa9a){return _0x6d0b56(_0x2cfa9a);},'hHOQH':_0x566a79(0x186),'xzCLr':function(_0x418e76,_0x556568){return _0x418e76(_0x556568);},'OmmGk':_0x566a79(0x17a)};return new Promise((_0x4090af,_0x3e5820)=>{const _0x46bc7e=_0x566a79,_0x192f93={'wopWT':function(_0x1b1f67,_0x27d6ca,_0x48e8eb){return _0x5258bb['fMiCK'](_0x1b1f67,_0x27d6ca,_0x48e8eb);},'dJZul':function(_0x3f3bec,_0x47f17c){const _0x5039a0=_0x3aa1;return _0x5258bb[_0x5039a0(0x189)](_0x3f3bec,_0x47f17c);},'AeQjf':_0x5258bb[_0x46bc7e(0x1b9)],'CBIxn':function(_0x453e5d,_0x3ec7c4){const _0x2e3219=_0x46bc7e;return _0x5258bb[_0x2e3219(0x1e9)](_0x453e5d,_0x3ec7c4);}};this['db'][_0x46bc7e(0x1f0)](_0x5258bb[_0x46bc7e(0x185)],(_0x352cf3,_0x36f924)=>{const _0x459d58=_0x46bc7e;if(_0x352cf3)return _0x192f93[_0x459d58(0x1b7)](logDebug,_0x459d58(0x1e1),_0x352cf3),_0x192f93[_0x459d58(0x180)](_0x4090af,-0x7ffffff8);_0x192f93[_0x459d58(0x1b7)](logDebug,_0x192f93[_0x459d58(0x1f1)],_0x36f924?.['maxId']),_0x192f93[_0x459d58(0x1e0)](_0x4090af,_0x36f924?.[_0x459d58(0x1a5)]??-0x7ffffff8);});});}async[_0x23eb40(0x1d5)](_0x58b673,_0x3271f1){const _0x3cc2b2=_0x23eb40,_0x311630={'eWekn':function(_0x592fdc,_0x3f357c,_0xffa0bb,_0x2570d9,_0xae7f95){return _0x592fdc(_0x3f357c,_0xffa0bb,_0x2570d9,_0xae7f95);},'uSjXT':_0x3cc2b2(0x1ea),'nplry':function(_0x549354,_0x117b0a){return _0x549354(_0x117b0a);}},_0x4ce779=this['db'][_0x3cc2b2(0x181)](_0x58b673);return new Promise((_0x5edf48,_0x199ec7)=>{const _0x2065a8=_0x3cc2b2,_0x380ce2={'VbcIp':function(_0x52cb9e,_0x309c48){return _0x52cb9e(_0x309c48);},'cQjKZ':function(_0x258e29,_0x536df1,_0x51202a,_0x3acf8e,_0x3a9186){const _0x5207b8=_0x3aa1;return _0x311630[_0x5207b8(0x1ec)](_0x258e29,_0x536df1,_0x51202a,_0x3acf8e,_0x3a9186);},'YdMWu':_0x311630[_0x2065a8(0x16b)],'hHJnh':function(_0x242c12,_0x221120){return _0x311630['nplry'](_0x242c12,_0x221120);},'uCEII':function(_0x5f391d,_0xe15382){const _0x2500c6=_0x2065a8;return _0x311630[_0x2500c6(0x1bd)](_0x5f391d,_0xe15382);}};_0x4ce779[_0x2065a8(0x1f0)](..._0x3271f1,(_0x572351,_0x5151f7)=>{const _0x2c0823=_0x2065a8,_0x3bd792={'jZpHe':function(_0x8e8b10,_0x257ce6){const _0x3e0c61=_0x3aa1;return _0x380ce2[_0x3e0c61(0x1f9)](_0x8e8b10,_0x257ce6);}};if(_0x572351)return _0x380ce2['cQjKZ'](logError,_0x380ce2[_0x2c0823(0x1e5)],_0x572351,_0x58b673,_0x3271f1),_0x380ce2[_0x2c0823(0x1aa)](_0x5edf48,null);if(!_0x5151f7){_0x380ce2[_0x2c0823(0x169)](_0x5edf48,null);return;}const _0x5f4e84=_0x5151f7[_0x2c0823(0x1c8)];NTQQMsgApi[_0x2c0823(0x1c2)]({'peerUid':_0x5151f7[_0x2c0823(0x1a7)],'chatType':_0x5151f7[_0x2c0823(0x1a6)]},[_0x5f4e84])['then'](_0xb8cc06=>{const _0x3c8d1=_0x2c0823,_0x338070=_0xb8cc06[_0x3c8d1(0x192)][0x0];if(!_0x338070){_0x5edf48(null);return;}_0x338070['id']=_0x5151f7[_0x3c8d1(0x19b)],_0x5edf48(_0x338070);})[_0x2c0823(0x1f2)](_0x553190=>{const _0x4fbb8f=_0x2c0823;_0x3bd792[_0x4fbb8f(0x1af)](_0x5edf48,null);});});});}async[_0x23eb40(0x1ac)](_0x5cfa81){const _0xdd574c=_0x23eb40,_0x135f25={'ALUvF':'SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?'};if(this[_0xdd574c(0x1c1)][_0xdd574c(0x1b3)](_0x5cfa81))return this[_0xdd574c(0x1c1)][_0xdd574c(0x1f0)](_0x5cfa81);const _0x5d038d=_0x135f25[_0xdd574c(0x1a1)];return this['getMsg'](_0x5d038d,[_0x5cfa81]);}async[_0x23eb40(0x184)](_0x691005){const _0x3c179d=_0x23eb40,_0x92b0f8={'XFRuu':_0x3c179d(0x196)};if(this['msgCache']['has'](_0x691005))return this[_0x3c179d(0x1c1)]['get'](_0x691005);return this[_0x3c179d(0x1d5)](_0x92b0f8['XFRuu'],[_0x691005]);}async[_0x23eb40(0x1d8)](_0xf26bf4,_0x3a516e){const _0x125444=_0x23eb40,_0x5bd0ec={'JSycN':'SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?'},_0x2db297=_0x5bd0ec['JSycN'];return this[_0x125444(0x1d5)](_0x2db297,[_0xf26bf4,_0x3a516e]);}async[_0x23eb40(0x16d)](_0x1a5ba9,_0x5508c1=!![]){const _0xa13ed1=_0x23eb40,_0x365ba0={'MahPV':function(_0x3c1459,_0x5264d2,_0x59935b){return _0x3c1459(_0x5264d2,_0x59935b);},'jpPco':'INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','BDTql':function(_0x3f0534,_0x5d428b){return _0x3f0534(_0x5d428b);}},_0x3cbe6b=await this[_0xa13ed1(0x184)](_0x1a5ba9['msgId']);if(_0x3cbe6b){if(_0x5508c1)this['updateMsg'](_0x1a5ba9)['then']();return _0x3cbe6b['id'];}const _0x171c99=this['db'][_0xa13ed1(0x181)](_0x365ba0['jpPco']),_0x2aa989=++this[_0xa13ed1(0x1eb)];return _0x1a5ba9['id']=_0x2aa989,_0x365ba0[_0xa13ed1(0x1a8)](logDebug,_0xa13ed1(0x1b8)+_0x1a5ba9['msgId']+_0xa13ed1(0x1d1)+_0x1a5ba9['id']),this['msgCache'][_0xa13ed1(0x16f)](_0x2aa989,_0x1a5ba9),this[_0xa13ed1(0x1c1)][_0xa13ed1(0x16f)](_0x1a5ba9[_0xa13ed1(0x1d9)],_0x1a5ba9),_0x171c99[_0xa13ed1(0x172)](this[_0xa13ed1(0x1eb)],_0x1a5ba9[_0xa13ed1(0x1d9)],_0x1a5ba9[_0xa13ed1(0x1a4)]['toString'](),_0x1a5ba9[_0xa13ed1(0x1a7)],_0x1a5ba9[_0xa13ed1(0x1a6)],_0x3a953f=>{const _0x54f516=_0xa13ed1,_0x4f4554={'RLeAV':function(_0x1af6f2,_0x3b9dfc,_0x51304e){const _0x39a426=_0x3aa1;return _0x365ba0[_0x39a426(0x190)](_0x1af6f2,_0x3b9dfc,_0x51304e);}};_0x3a953f&&(_0x3a953f[_0x54f516(0x18b)]===0x13?this[_0x54f516(0x184)](_0x1a5ba9[_0x54f516(0x1d9)])[_0x54f516(0x1be)](_0x583b9d=>{const _0x463a7a=_0x54f516;_0x583b9d?(this[_0x463a7a(0x1c1)][_0x463a7a(0x16f)](_0x2aa989,_0x583b9d),this[_0x463a7a(0x1c1)][_0x463a7a(0x16f)](_0x583b9d[_0x463a7a(0x1d9)],_0x583b9d)):_0x4f4554['RLeAV'](logError,'db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id',_0x3a953f);})[_0x54f516(0x1f2)](_0x32c9a9=>logError(_0x54f516(0x1df),_0x32c9a9)):_0x365ba0[_0x54f516(0x190)](logError,'db\x20could\x20not\x20add\x20msg',_0x3a953f));}),_0x2aa989;}async[_0x23eb40(0x1e4)](_0x5bbd10){const _0x3ca42a=_0x23eb40,_0x41dac2={'CxQSi':function(_0x3989d4,_0x99bd68,_0x5a2928){return _0x3989d4(_0x99bd68,_0x5a2928);},'IiRxp':_0x3ca42a(0x1ad),'BmXfL':function(_0x4ab624,_0x1ddf32){return _0x4ab624(_0x1ddf32);}},_0x355530=this[_0x3ca42a(0x1c1)][_0x3ca42a(0x1f0)](_0x5bbd10[_0x3ca42a(0x1d9)]);_0x355530&&Object[_0x3ca42a(0x1ae)](_0x355530,_0x5bbd10);_0x41dac2[_0x3ca42a(0x1ce)](logDebug,_0x3ca42a(0x1f4)+_0x5bbd10['id']+_0x3ca42a(0x17e)+_0x5bbd10[_0x3ca42a(0x1a4)]+',\x20msgId:\x20'+_0x5bbd10[_0x3ca42a(0x1d9)]);const _0x4b7b3c=this['db'][_0x3ca42a(0x181)](_0x3ca42a(0x193));_0x4b7b3c['run'](_0x5bbd10[_0x3ca42a(0x1a4)],_0x5bbd10[_0x3ca42a(0x1d9)],_0x95406c=>{const _0x2df7fd=_0x3ca42a;_0x95406c&&_0x41dac2[_0x2df7fd(0x188)](logError,_0x41dac2[_0x2df7fd(0x1b1)],_0x95406c);});}async[_0x23eb40(0x1c7)](_0x66dd11){const _0x2f3f27=_0x23eb40,_0x5c5e3f={'glUvO':function(_0x532552,_0x438117,_0x42de6a){return _0x532552(_0x438117,_0x42de6a);},'YVdqM':_0x2f3f27(0x174)},_0x2c2855=this['db'][_0x2f3f27(0x181)](_0x2f3f27(0x1ca));return new Promise((_0x4b7d93,_0xdc7100)=>{const _0x4e9846=_0x2f3f27;_0x2c2855[_0x4e9846(0x172)](_0x66dd11[_0x4e9846(0x191)],_0x66dd11[_0x4e9846(0x1a3)],_0x66dd11['url'],_0x66dd11['size'],_0x66dd11[_0x4e9846(0x19e)],_0x66dd11[_0x4e9846(0x195)],JSON[_0x4e9846(0x1bc)](_0x66dd11[_0x4e9846(0x16a)]),_0x66dd11['elementId'],_0x66dd11['msgId'],function(_0xafbd2b){const _0x3b3136=_0x4e9846;_0xafbd2b&&(_0x5c5e3f[_0x3b3136(0x1f5)](logError,_0x5c5e3f[_0x3b3136(0x1d0)],_0xafbd2b),_0xdc7100(_0xafbd2b)),_0x4b7d93(null);});});}async[_0x23eb40(0x18c)](_0x29c1d5,_0x130fa5){const _0x2d9d16=_0x23eb40,_0x4ee62e={'DSoYB':function(_0x21cc4b,_0x3c46be,_0x53b20e){return _0x21cc4b(_0x3c46be,_0x53b20e);},'jbvgA':_0x2d9d16(0x1a0),'EMrDI':function(_0x47fcf3,_0x469e11){return _0x47fcf3(_0x469e11);},'ssmlh':function(_0x123da2,_0x5f127e){return _0x123da2(_0x5f127e);}},_0x157be3=this['db'][_0x2d9d16(0x181)](_0x29c1d5);return new Promise((_0x50c43a,_0xf77c99)=>{const _0x3dd192=_0x2d9d16;_0x157be3[_0x3dd192(0x1f0)](..._0x130fa5,(_0x47a016,_0x36570d)=>{const _0x1ddb8b=_0x3dd192;_0x47a016&&(_0x4ee62e['DSoYB'](logError,_0x4ee62e[_0x1ddb8b(0x1cc)],_0x47a016),_0x4ee62e['EMrDI'](_0xf77c99,_0x47a016)),_0x36570d&&(_0x36570d['element']=JSON['parse'](_0x36570d['element'])),_0x4ee62e['ssmlh'](_0x50c43a,_0x36570d);});});}async[_0x23eb40(0x1f8)](_0x460ef0){const _0x435306=_0x23eb40,_0x639691={'WKZZm':_0x435306(0x18e)};return this[_0x435306(0x18c)](_0x639691[_0x435306(0x1dc)],[_0x460ef0]);}async[_0x23eb40(0x178)](_0x4bae87){const _0xfb8bbf=_0x23eb40,_0x501a03={'kcemx':'SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?'};return this[_0xfb8bbf(0x18c)](_0x501a03['kcemx'],[_0x4bae87]);}async[_0x23eb40(0x1c5)](_0x26b5ed){const _0xc83e57=_0x23eb40,_0x28dca8={'yNhRe':function(_0x451d8c,_0x244053,_0x1cac28){return _0x451d8c(_0x244053,_0x1cac28);},'hJUQw':_0xc83e57(0x1e2),'DqauB':function(_0x220326,_0x13b2b4){return _0x220326(_0x13b2b4);}},_0x2b7cdd=this['db'][_0xc83e57(0x181)](_0xc83e57(0x17d));return new Promise((_0x4fe010,_0x85c00b)=>{const _0x45b6e7=_0xc83e57;_0x2b7cdd['run'](_0x26b5ed[_0x45b6e7(0x1a3)],_0x26b5ed[_0x45b6e7(0x183)],_0x26b5ed[_0x45b6e7(0x19e)],function(_0x530ae2){const _0x47d304=_0x45b6e7;_0x530ae2&&(_0x28dca8[_0x47d304(0x1b5)](logError,_0x28dca8['hJUQw'],_0x530ae2),_0x28dca8['DqauB'](_0x85c00b,_0x530ae2)),_0x4fe010(null);});});}async[_0x23eb40(0x170)](){const _0x5f5ba7=_0x23eb40,_0x2174a2={'dcwDE':function(_0x31a6bc,_0x2f4366,_0x540ba0){return _0x31a6bc(_0x2f4366,_0x540ba0);},'gTsNr':_0x5f5ba7(0x1a2),'DZEXp':function(_0x1f8650,_0x3b2b2e){return _0x1f8650(_0x3b2b2e);},'wacRw':function(_0xc2bbf9,_0x289edf){return _0xc2bbf9(_0x289edf);},'ziYwq':'SELECT\x20*\x20FROM\x20temp_uins'},_0x4b64dc=_0x2174a2[_0x5f5ba7(0x177)];return new Promise((_0x372f8c,_0x24a61b)=>{const _0x5cce11=_0x5f5ba7,_0x4922ae={'VBwak':function(_0x587ca1,_0x35261c,_0x6b8d19){const _0x2f8ce0=_0x3aa1;return _0x2174a2[_0x2f8ce0(0x19c)](_0x587ca1,_0x35261c,_0x6b8d19);},'LjqnZ':_0x2174a2[_0x5cce11(0x16e)],'rtvKY':function(_0x2ef7a4,_0x22dfa0){const _0x196bf6=_0x5cce11;return _0x2174a2[_0x196bf6(0x1b4)](_0x2ef7a4,_0x22dfa0);},'DFhrF':function(_0x5540b8,_0xe55d01){const _0x284b49=_0x5cce11;return _0x2174a2[_0x284b49(0x198)](_0x5540b8,_0xe55d01);}};this['db']['all'](_0x4b64dc,(_0x224164,_0x1e89f9)=>{const _0x4911a8=_0x5cce11;_0x224164&&(_0x4922ae['VBwak'](logError,_0x4922ae[_0x4911a8(0x19d)],_0x224164),_0x4922ae[_0x4911a8(0x187)](_0x24a61b,_0x224164));const _0x340327={};_0x1e89f9[_0x4911a8(0x1db)](_0x181792=>{const _0x3afdff=_0x4911a8;_0x340327[_0x181792[_0x3afdff(0x1c9)]]=_0x181792['uid'];}),_0x4922ae[_0x4911a8(0x1cf)](_0x372f8c,_0x340327);});});}async[_0x23eb40(0x17c)](_0x3b60d3){const _0x2b2a62=_0x23eb40,_0x38a58c={'TuoGi':function(_0x23f708,_0x1c8027,_0x4ffd9e){return _0x23f708(_0x1c8027,_0x4ffd9e);},'SOJVP':_0x2b2a62(0x1a2),'UZQYv':function(_0x55665a,_0x2933d2){return _0x55665a(_0x2933d2);},'uoEuj':function(_0x184bab,_0x4639c7){return _0x184bab(_0x4639c7);},'crwNx':_0x2b2a62(0x1cb)},_0x42a3fe=_0x38a58c[_0x2b2a62(0x19f)];return new Promise((_0x2e1bdf,_0x465a49)=>{const _0x42b632=_0x2b2a62;this['db'][_0x42b632(0x1f0)](_0x42a3fe,[_0x3b60d3],(_0x558cc6,_0x6d336f)=>{const _0x51688b=_0x42b632;_0x558cc6&&(_0x38a58c['TuoGi'](logError,_0x38a58c[_0x51688b(0x175)],_0x558cc6),_0x38a58c['UZQYv'](_0x465a49,_0x558cc6)),_0x38a58c['uoEuj'](_0x2e1bdf,_0x6d336f?.[_0x51688b(0x1e3)]);});});}async[_0x23eb40(0x1dd)](_0x5f4008,_0xabc0aa){const _0x44afd2=_0x23eb40,_0xc96e8a={'qVyHs':function(_0x2f7568,_0x4c83c6,_0x43e92e){return _0x2f7568(_0x4c83c6,_0x43e92e);},'thHjD':'db\x20could\x20not\x20add\x20temp\x20uin','CyGVW':function(_0xa064a,_0xee3705){return _0xa064a(_0xee3705);},'XrWGg':_0x44afd2(0x1bb)},_0x79a708=await this[_0x44afd2(0x17c)](_0x5f4008);if(!_0x79a708){const _0x320f1c=this['db']['prepare'](_0xc96e8a[_0x44afd2(0x1d2)]);return new Promise((_0x24008e,_0x5ef6e5)=>{const _0x14f808=_0x44afd2;_0x320f1c[_0x14f808(0x172)](_0x5f4008,_0xabc0aa,function(_0x5dcc85){const _0x57816f=_0x14f808;_0x5dcc85&&(_0xc96e8a[_0x57816f(0x1de)](logError,_0xc96e8a['thHjD'],_0x5dcc85),_0xc96e8a['CyGVW'](_0x5ef6e5,_0x5dcc85)),_0xc96e8a['CyGVW'](_0x24008e,null);});});}}}function _0x5bb7(){const _0x3abbb4=['updateMsg','YdMWu','stack','2rgMYzK','120ldUcKG','xzCLr','Could\x20not\x20get\x20msg','globalMsgShortId','eWekn','9Yqjleh','1589VgtFDL','ueSNQ','get','AeQjf','catch','2292000sXvFkS','更新消息,\x20shortId:','glUvO','aGRYp','lNZga','getFileCacheByName','VbcIp','\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)','uCEII','element','uSjXT','init','addMsg','gTsNr','set','getReceivedTempUinMap','335fHubOg','run','getCurrentMaxShortId','db\x20could\x20not\x20add\x20file','SOJVP','createTable','ziYwq','getFileCacheByUuid','Could\x20not\x20create\x20table\x20temp_uins','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','Could\x20not\x20connect\x20to\x20database','getUidByTempUin','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?',',\x20seq:\x20','nEIQJ','dJZul','prepare','wdKHh','url','getMsgByLongId','OmmGk','数据库中消息最大短id','rtvKY','CxQSi','upVRg','KlhgL','errno','getFileCache','Database','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','close','MahPV','name','msgList','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','now','elementType','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','yTiOO','wacRw','KGpYn','1807014VtjsMg','shortId','dcwDE','LjqnZ','uuid','crwNx','db\x20could\x20not\x20get\x20file\x20cache','ALUvF','db\x20could\x20not\x20get\x20temp\x20uin\x20map','path','msgSeq','maxId','chatType','peerUid','BDTql','JViGM','hHJnh','YYWir','getMsgByShortId','updateMsg\x20db\x20error','assign','jZpHe','dQtHH','IiRxp','835410xfOuSR','has','DZEXp','yNhRe','tZEQN','wopWT','记录消息到数据库,\x20消息长id:\x20','hHOQH','delete','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','stringify','nplry','then','24248tzZqOt','75846kyBJRZ','msgCache','getMsgsByMsgId','清理消息缓存','720068EifKjE','updateFileCache','Iqqtm','addFileCache','longId','uin','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','jbvgA','1041117MiNlPv','BmXfL','DFhrF','YVdqM',',\x20短id:\x20','XrWGg','Xqabc','\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)','getMsg','\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)','OPEN_READWRITE','getMsgBySeq','msgId','OPEN_CREATE','forEach','WKZZm','addTempUin','qVyHs','db\x20getMsgByLongId\x20error','CBIxn','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','db\x20could\x20not\x20update\x20file\x20cache','uid'];_0x5bb7=function(){return _0x3abbb4;};return _0x5bb7();}export const dbUtil=new DBUtil(); \ No newline at end of file +function _0x16dc(){const _0x425067=['then','db\x20could\x20not\x20add\x20msg','清理消息缓存','YxsEl','wLiUd','716DMigeE','Could\x20not\x20create\x20table\x20msgs','msgSeq','UPFyP','ZcBIS','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','Xddvp','QsyTD','3676424ypevxY','lbSVc','uuid','qaFZi','IblJH','1148646INbmOf','ARSSj','gRXzd','getMsgByLongId','addMsg','get','UYhlK','catch','updateMsg','hVAvm','IPsPp','XpGtq','LJtqS','qXZnT','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','TPIhP','JHtGh','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','lJQaR','getReceivedTempUinMap','Could\x20not\x20get\x20msg','716576oakPTI','WkXve','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','msgCache','uid','has','SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?','getMsg','2643hfUVDe','OrYah','tNzsm','yJzKX','tdMjp','delete','sypzs','msgId','sbqgK','iQsyz','forEach','Xiyvi','elementId','记录消息到数据库,\x20消息长id:\x20','path','POhLo','wwyuh','maxId','getMsgsByMsgId','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','assign','UMECq','prepare',',\x20短id:\x20','db\x20could\x20not\x20add\x20file','hAyVT','element','now','parse','JDmNz','db\x20could\x20not\x20get\x20file\x20cache','kGWlX','set','getFileCache','all','run','Method\x20not\x20implemented.','KzlLT','QvAyD','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','5341406dGXQBW','size','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','kvPgH','msgList','tUkny','DIYbs','pHuhs','Could\x20not\x20create\x20table\x20temp_uins','db\x20could\x20not\x20get\x20temp\x20uin\x20map','getMsgBySeq','NdljG','errno','gRQqJ','chatType','Could\x20not\x20create\x20table\x20files','LiBGl','close','stack','kfvSw','SELECT\x20*\x20FROM\x20temp_uins','\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)','QWIWx','sueAy','KoEFP','hCvgF','Cvjds','elementType','Could\x20not\x20connect\x20to\x20database','url','oevYA','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','getMsgByShortId','PSDtA','数据库中消息最大短id','db\x20could\x20not\x20update\x20file\x20cache','iEdlz','agrmz','swfrD','init','XZbNU','toString','16068942VtIggb','peerUid','db\x20getMsgByLongId\x20error','BWyxb','1985268AydWVb','addTempUin','getFileCacheByUuid','QlpvE','createTable','getFileCacheByName','更新消息,\x20shortId:','BknsT','name','gRsVx','globalMsgShortId','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','getCurrentMaxShortId','Database','padFO','OPEN_READWRITE','5CRLuPt','EeemT','\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)','BKxNd','OPEN_CREATE'];_0x16dc=function(){return _0x425067;};return _0x16dc();}const _0x3ca36c=_0x1e9f;(function(_0x1de2fd,_0x639761){const _0x1a5957=_0x1e9f,_0x45dea2=_0x1de2fd();while(!![]){try{const _0x30856f=parseInt(_0x1a5957(0x13c))/0x1+-parseInt(_0x1a5957(0xff))/0x2+parseInt(_0x1a5957(0x144))/0x3*(parseInt(_0x1a5957(0x119))/0x4)+parseInt(_0x1a5957(0x10f))/0x5*(parseInt(_0x1a5957(0x126))/0x6)+-parseInt(_0x1a5957(0x16c))/0x7+-parseInt(_0x1a5957(0x121))/0x8+parseInt(_0x1a5957(0xfb))/0x9;if(_0x30856f===_0x639761)break;else _0x45dea2['push'](_0x45dea2['shift']());}catch(_0x13c6e9){_0x45dea2['push'](_0x45dea2['shift']());}}}(_0x16dc,0x9b405));import _0x120ee5 from'sqlite3';function _0x1e9f(_0x58ec3f,_0x39e7ac){const _0x16dcd5=_0x16dc();return _0x1e9f=function(_0x1e9f9a,_0x28bc80){_0x1e9f9a=_0x1e9f9a-0xe6;let _0x314dd1=_0x16dcd5[_0x1e9f9a];return _0x314dd1;},_0x1e9f(_0x58ec3f,_0x39e7ac);}import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async[_0x3ca36c(0xf8)](_0x4ecb41){const _0x153410=_0x3ca36c,_0x446054={'lbSVc':function(_0x23bd05,_0x429169,_0x56ba64){return _0x23bd05(_0x429169,_0x56ba64);},'PsyLc':_0x153410(0xed),'pHPzz':function(_0x2686b1){return _0x2686b1();},'padFO':function(_0x24821c,_0x4d0a19){return _0x24821c|_0x4d0a19;}};if(this['db'])return;return new Promise((_0x56de21,_0x40452b)=>{const _0x37fc1d=_0x153410,_0x2d96d8={'UYhlK':function(_0x4997b6,_0x3314f6,_0x2e0b5b){const _0x17593d=_0x1e9f;return _0x446054[_0x17593d(0x122)](_0x4997b6,_0x3314f6,_0x2e0b5b);},'WkXve':_0x446054['PsyLc'],'EeemT':function(_0x5dff7c,_0x401517){return _0x5dff7c(_0x401517);},'iQsyz':function(_0x3b9560){return _0x446054['pHPzz'](_0x3b9560);}};this['db']=new _0x120ee5[(_0x37fc1d(0x10c))](_0x4ecb41,_0x446054[_0x37fc1d(0x10d)](_0x120ee5[_0x37fc1d(0x10e)],_0x120ee5[_0x37fc1d(0x113)]),_0x554a1a=>{const _0x46d635=_0x37fc1d;if(_0x554a1a){_0x2d96d8[_0x46d635(0x12c)](logError,_0x2d96d8[_0x46d635(0x13d)],_0x554a1a),_0x2d96d8[_0x46d635(0x110)](_0x40452b,_0x554a1a);return;}this['createTable'](),_0x2d96d8[_0x46d635(0x14d)](_0x56de21);});});}['createTable'](){const _0x3bf583=_0x3ca36c;throw new Error(_0x3bf583(0x168));}[_0x3ca36c(0x17d)](){this['db']?.['close']();}}class DBUtil extends DBUtilBase{['msgCache']=new Map();['globalMsgShortId']=-0x7ffffff8;constructor(){const _0x385a44=_0x3ca36c,_0x40b464={'VIjmH':function(_0x4ac4e0,_0x9e5873){return _0x4ac4e0-_0x9e5873;},'hVAvm':function(_0x3b15f4,_0x5abb26){return _0x3b15f4*_0x5abb26;},'lJQaR':function(_0x2e4317,_0x353aa2){return _0x2e4317(_0x353aa2);},'qXZnT':_0x385a44(0x116),'CMYDK':function(_0x280ac4,_0x119154){return _0x280ac4*_0x119154;}};super();const _0xf36b05=_0x40b464['CMYDK'](0x3e8,0x3c)*0xa;setInterval(()=>{const _0x5f4ea9=_0x385a44,_0x42f580={'PSDtA':function(_0x18bd19,_0x4b0b43){return _0x18bd19>_0x4b0b43;},'XpGtq':function(_0x4db48f,_0x173eee){return _0x40b464['VIjmH'](_0x4db48f,_0x173eee);},'BknsT':function(_0x59e5e7,_0x2e7fca){const _0x27d3f9=_0x1e9f;return _0x40b464[_0x27d3f9(0x12f)](_0x59e5e7,_0x2e7fca);},'hCvgF':function(_0x5c7966,_0x1806e6){return _0x5c7966(_0x1806e6);}};_0x40b464[_0x5f4ea9(0x139)](logDebug,_0x40b464[_0x5f4ea9(0x133)]),this[_0x5f4ea9(0x13f)]['forEach']((_0x3c2ccc,_0x1fefd2)=>{const _0xc5e5b4=_0x5f4ea9;_0x42f580[_0xc5e5b4(0xf2)](_0x42f580[_0xc5e5b4(0x131)](Date[_0xc5e5b4(0x15f)](),_0x42f580[_0xc5e5b4(0x106)](_0x42f580[_0xc5e5b4(0xea)](parseInt,_0x3c2ccc['msgTime']),0x3e8)),_0xf36b05)&&this[_0xc5e5b4(0x13f)][_0xc5e5b4(0x149)](_0x1fefd2);});},_0xf36b05);}async[_0x3ca36c(0xf8)](_0x475683){const _0xae8bd2=_0x3ca36c;await super[_0xae8bd2(0xf8)](_0x475683),this['globalMsgShortId']=await this['getCurrentMaxShortId']();}[_0x3ca36c(0x103)](){const _0x420981=_0x3ca36c,_0x1d2f87={'wwyuh':function(_0x17b409,_0x18d963,_0xef5fa6){return _0x17b409(_0x18d963,_0xef5fa6);},'kfvSw':_0x420981(0x17b),'wLiUd':_0x420981(0x174)},_0x102d6c='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20msgs\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shortId\x20INTEGER\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20longId\x20TEXT\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20seq\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20peerUid\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chatType\x20INTEGER\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)';this['db'][_0x420981(0x167)](_0x102d6c,function(_0x258865){const _0xbdb784=_0x420981;_0x258865&&logError(_0xbdb784(0x11a),_0x258865[_0xbdb784(0x17e)]);});const _0x46d823=_0x420981(0xe6);this['db']['run'](_0x46d823,function(_0xfe1e4f){const _0x2f0b3c=_0x420981;_0xfe1e4f&&_0x1d2f87[_0x2f0b3c(0x154)](logError,_0x1d2f87[_0x2f0b3c(0x17f)],_0xfe1e4f);});const _0x4670f8=_0x420981(0x111);this['db'][_0x420981(0x167)](_0x4670f8,function(_0x55c800){const _0x8b6de5=_0x420981;_0x55c800&&logError(_0x1d2f87[_0x8b6de5(0x118)],_0x55c800);});}async[_0x3ca36c(0x10b)](){const _0x1a33e9=_0x3ca36c,_0x4dcbe4={'IPsPp':function(_0x3e9aee,_0x5799c5,_0x44f858){return _0x3e9aee(_0x5799c5,_0x44f858);},'XZbNU':'Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','KoEFP':function(_0x3dc738,_0x35bd62){return _0x3dc738(_0x35bd62);},'BKxNd':_0x1a33e9(0xf3),'oevYA':_0x1a33e9(0x11e)};return new Promise((_0x160676,_0x2792d9)=>{const _0x9a060d=_0x1a33e9;this['db']['get'](_0x4dcbe4[_0x9a060d(0xef)],(_0x3a235d,_0xc0dd90)=>{const _0x3ed541=_0x9a060d;if(_0x3a235d)return _0x4dcbe4[_0x3ed541(0x130)](logDebug,_0x4dcbe4[_0x3ed541(0xf9)],_0x3a235d),_0x4dcbe4[_0x3ed541(0xe9)](_0x160676,-0x7ffffff8);_0x4dcbe4[_0x3ed541(0x130)](logDebug,_0x4dcbe4[_0x3ed541(0x112)],_0xc0dd90?.['maxId']),_0x4dcbe4['KoEFP'](_0x160676,_0xc0dd90?.[_0x3ed541(0x155)]??-0x7ffffff8);});});}async[_0x3ca36c(0x143)](_0x20d0ce,_0x9df7cc){const _0x15db31=_0x3ca36c,_0x591f2a={'CwAbz':_0x15db31(0x13b),'UMECq':function(_0x84289d,_0x4f8a8c){return _0x84289d(_0x4f8a8c);},'sypzs':function(_0x23bcc8,_0x520cd2){return _0x23bcc8(_0x520cd2);}},_0x399dec=this['db'][_0x15db31(0x15a)](_0x20d0ce);return new Promise((_0x40a3f6,_0x179730)=>{const _0x3c1ad5=_0x15db31,_0x2e6e48={'QsyTD':function(_0x2e2553,_0x48d7e9){const _0x4dcb18=_0x1e9f;return _0x591f2a[_0x4dcb18(0x14a)](_0x2e2553,_0x48d7e9);}};_0x399dec[_0x3c1ad5(0x12b)](..._0x9df7cc,(_0x50e43b,_0x5c7992)=>{const _0x2be365=_0x3c1ad5,_0x2123a8={'YxsEl':function(_0x3fb088,_0xd53c06){return _0x3fb088(_0xd53c06);}};if(_0x50e43b)return logError(_0x591f2a['CwAbz'],_0x50e43b,_0x20d0ce,_0x9df7cc),_0x591f2a[_0x2be365(0x159)](_0x40a3f6,null);if(!_0x5c7992){_0x40a3f6(null);return;}const _0x2bb4fc=_0x5c7992['longId'];NTQQMsgApi[_0x2be365(0x156)]({'peerUid':_0x5c7992[_0x2be365(0xfc)],'chatType':_0x5c7992[_0x2be365(0x17a)]},[_0x2bb4fc])[_0x2be365(0x114)](_0xca4eff=>{const _0x50e9d0=_0x2be365,_0x59570c=_0xca4eff[_0x50e9d0(0x170)][0x0];if(!_0x59570c){_0x40a3f6(null);return;}_0x59570c['id']=_0x5c7992['shortId'],_0x2123a8[_0x50e9d0(0x117)](_0x40a3f6,_0x59570c);})['catch'](_0xec580c=>{const _0x3d8df9=_0x2be365;_0x2e6e48[_0x3d8df9(0x120)](_0x40a3f6,null);});});});}async[_0x3ca36c(0xf1)](_0x312418){const _0xf28603=_0x3ca36c,_0x29d31a={'IblJH':'SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?'};if(this['msgCache'][_0xf28603(0x141)](_0x312418))return this['msgCache']['get'](_0x312418);const _0x213f9a=_0x29d31a[_0xf28603(0x125)];return this['getMsg'](_0x213f9a,[_0x312418]);}async[_0x3ca36c(0x129)](_0x57771d){const _0x36cd9d=_0x3ca36c,_0xa37ff={'qaFZi':_0x36cd9d(0x16e)};if(this[_0x36cd9d(0x13f)][_0x36cd9d(0x141)](_0x57771d))return this[_0x36cd9d(0x13f)][_0x36cd9d(0x12b)](_0x57771d);return this['getMsg'](_0xa37ff[_0x36cd9d(0x124)],[_0x57771d]);}async[_0x3ca36c(0x176)](_0x2ff131,_0x5110a3){const _0x2dcf34=_0x3ca36c,_0x74fdd3={'kBaUz':_0x2dcf34(0x134)},_0x692bf0=_0x74fdd3['kBaUz'];return this[_0x2dcf34(0x143)](_0x692bf0,[_0x2ff131,_0x5110a3]);}async[_0x3ca36c(0x12a)](_0x4948e6,_0x24495a=!![]){const _0x4c1d42=_0x3ca36c,_0x2f208c={'kvPgH':function(_0x5e774d,_0x410c0d,_0x3d6d1d){return _0x5e774d(_0x410c0d,_0x3d6d1d);},'Xiyvi':'db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','KzlLT':function(_0x30784c,_0x2ba91c){return _0x30784c===_0x2ba91c;},'LiBGl':_0x4c1d42(0x115),'LJtqS':_0x4c1d42(0xf0),'elkTH':function(_0x31b203,_0x438741){return _0x31b203(_0x438741);}},_0x549af4=await this[_0x4c1d42(0x129)](_0x4948e6[_0x4c1d42(0x14b)]);if(_0x549af4){if(_0x24495a)this['updateMsg'](_0x4948e6)[_0x4c1d42(0x114)]();return _0x549af4['id'];}const _0x3e7937=this['db']['prepare'](_0x2f208c[_0x4c1d42(0x132)]),_0x2cd3e2=++this[_0x4c1d42(0x109)];return _0x4948e6['id']=_0x2cd3e2,_0x2f208c['elkTH'](logDebug,_0x4c1d42(0x151)+_0x4948e6['msgId']+_0x4c1d42(0x15b)+_0x4948e6['id']),this[_0x4c1d42(0x13f)][_0x4c1d42(0x164)](_0x2cd3e2,_0x4948e6),this[_0x4c1d42(0x13f)][_0x4c1d42(0x164)](_0x4948e6[_0x4c1d42(0x14b)],_0x4948e6),_0x3e7937[_0x4c1d42(0x167)](this['globalMsgShortId'],_0x4948e6[_0x4c1d42(0x14b)],_0x4948e6[_0x4c1d42(0x11b)][_0x4c1d42(0xfa)](),_0x4948e6[_0x4c1d42(0xfc)],_0x4948e6['chatType'],_0x3705ad=>{const _0x184a8e=_0x4c1d42;_0x3705ad&&(_0x2f208c[_0x184a8e(0x169)](_0x3705ad[_0x184a8e(0x178)],0x13)?this[_0x184a8e(0x129)](_0x4948e6['msgId'])['then'](_0xfa8ef7=>{const _0x5bf444=_0x184a8e;_0xfa8ef7?(this[_0x5bf444(0x13f)][_0x5bf444(0x164)](_0x2cd3e2,_0xfa8ef7),this[_0x5bf444(0x13f)][_0x5bf444(0x164)](_0xfa8ef7[_0x5bf444(0x14b)],_0xfa8ef7)):_0x2f208c[_0x5bf444(0x16f)](logError,_0x2f208c[_0x5bf444(0x14f)],_0x3705ad);})[_0x184a8e(0x12d)](_0x533bc1=>logError(_0x184a8e(0xfd),_0x533bc1)):logError(_0x2f208c[_0x184a8e(0x17c)],_0x3705ad));}),_0x2cd3e2;}async[_0x3ca36c(0x12e)](_0x141612){const _0x3da6bb=_0x3ca36c,_0x112ba1={'NdljG':function(_0x4f656f,_0x40312b,_0x779f){return _0x4f656f(_0x40312b,_0x779f);},'sbqgK':'updateMsg\x20db\x20error'},_0x1db70e=this[_0x3da6bb(0x13f)]['get'](_0x141612['msgId']);_0x1db70e&&Object[_0x3da6bb(0x158)](_0x1db70e,_0x141612);logDebug(_0x3da6bb(0x105)+_0x141612['id']+',\x20seq:\x20'+_0x141612[_0x3da6bb(0x11b)]+',\x20msgId:\x20'+_0x141612[_0x3da6bb(0x14b)]);const _0x5a6da=this['db'][_0x3da6bb(0x15a)](_0x3da6bb(0x10a));_0x5a6da[_0x3da6bb(0x167)](_0x141612[_0x3da6bb(0x11b)],_0x141612[_0x3da6bb(0x14b)],_0x4a4b2f=>{const _0x184ec7=_0x3da6bb;_0x4a4b2f&&_0x112ba1[_0x184ec7(0x177)](logError,_0x112ba1[_0x184ec7(0x14c)],_0x4a4b2f);});}async['addFileCache'](_0x554c08){const _0x2b6bb2=_0x3ca36c,_0x673265={'POhLo':function(_0x17fbd9,_0x4b7374,_0x276775){return _0x17fbd9(_0x4b7374,_0x276775);},'sueAy':_0x2b6bb2(0x15c),'BWyxb':function(_0x150843,_0xeaab49){return _0x150843(_0xeaab49);},'swfrD':function(_0x192368,_0x8ade9c){return _0x192368(_0x8ade9c);},'ARSSj':_0x2b6bb2(0x157)},_0x1b054a=this['db'][_0x2b6bb2(0x15a)](_0x673265[_0x2b6bb2(0x127)]);return new Promise((_0x1367fe,_0x66f86a)=>{const _0x57d6d8=_0x2b6bb2;_0x1b054a[_0x57d6d8(0x167)](_0x554c08[_0x57d6d8(0x107)],_0x554c08['path'],_0x554c08['url'],_0x554c08[_0x57d6d8(0x16d)],_0x554c08['uuid'],_0x554c08[_0x57d6d8(0xec)],JSON['stringify'](_0x554c08[_0x57d6d8(0x15e)]),_0x554c08[_0x57d6d8(0x150)],_0x554c08[_0x57d6d8(0x14b)],function(_0xcd039a){const _0x8aad25=_0x57d6d8;_0xcd039a&&(_0x673265[_0x8aad25(0x153)](logError,_0x673265[_0x8aad25(0xe8)],_0xcd039a),_0x673265[_0x8aad25(0xfe)](_0x66f86a,_0xcd039a)),_0x673265[_0x8aad25(0xf7)](_0x1367fe,null);});});}async['getFileCache'](_0x449878,_0x2b1dbf){const _0x341399=_0x3ca36c,_0x1ebe37={'wkgCU':function(_0x19f715,_0x176a60,_0x24ae45){return _0x19f715(_0x176a60,_0x24ae45);},'gRsVx':_0x341399(0x162),'QvAyD':function(_0x4dcf60,_0x4fe1dd){return _0x4dcf60(_0x4fe1dd);}},_0x475ad8=this['db'][_0x341399(0x15a)](_0x449878);return new Promise((_0x3370be,_0x37668c)=>{const _0x321474=_0x341399,_0x548a3f={'UPFyP':function(_0x4b0d47,_0x2a505d,_0x1c7646){return _0x1ebe37['wkgCU'](_0x4b0d47,_0x2a505d,_0x1c7646);},'kGWlX':_0x1ebe37[_0x321474(0x108)],'qFBob':function(_0x40b5ed,_0x5e2ff9){const _0x5cf3df=_0x321474;return _0x1ebe37[_0x5cf3df(0x16a)](_0x40b5ed,_0x5e2ff9);},'JDmNz':function(_0x3f3ac3,_0x527091){const _0x6dca72=_0x321474;return _0x1ebe37[_0x6dca72(0x16a)](_0x3f3ac3,_0x527091);}};_0x475ad8['get'](..._0x2b1dbf,(_0x45b3e9,_0xf086ac)=>{const _0x1ab02f=_0x321474;_0x45b3e9&&(_0x548a3f[_0x1ab02f(0x11c)](logError,_0x548a3f[_0x1ab02f(0x163)],_0x45b3e9),_0x548a3f['qFBob'](_0x37668c,_0x45b3e9)),_0xf086ac&&(_0xf086ac[_0x1ab02f(0x15e)]=JSON[_0x1ab02f(0x160)](_0xf086ac[_0x1ab02f(0x15e)])),_0x548a3f[_0x1ab02f(0x161)](_0x3370be,_0xf086ac);});});}async[_0x3ca36c(0x104)](_0x463551){const _0x2711a5=_0x3ca36c,_0x1a8b80={'Dcmxv':_0x2711a5(0x13e)};return this[_0x2711a5(0x165)](_0x1a8b80['Dcmxv'],[_0x463551]);}async[_0x3ca36c(0x101)](_0x411470){const _0x4fb7ed=_0x3ca36c,_0x49ad2b={'TPIhP':_0x4fb7ed(0x142)};return this['getFileCache'](_0x49ad2b[_0x4fb7ed(0x135)],[_0x411470]);}async['updateFileCache'](_0x20052e){const _0x5ee077=_0x3ca36c,_0x105320={'yJzKX':function(_0x26d93b,_0x4c0520,_0x278954){return _0x26d93b(_0x4c0520,_0x278954);},'gRXzd':_0x5ee077(0xf4),'NZqqZ':function(_0x791e5c,_0x57daa6){return _0x791e5c(_0x57daa6);}},_0x5eab1e=this['db'][_0x5ee077(0x15a)](_0x5ee077(0x16b));return new Promise((_0xdc4067,_0x234622)=>{const _0x502404=_0x5ee077,_0x4fa5b8={'yioeF':function(_0x2fea23,_0xbfa623,_0x859775){const _0x5bcca2=_0x1e9f;return _0x105320[_0x5bcca2(0x147)](_0x2fea23,_0xbfa623,_0x859775);},'ZcBIS':_0x105320[_0x502404(0x128)],'tNzsm':function(_0x18cfee,_0x43d781){return _0x105320['NZqqZ'](_0x18cfee,_0x43d781);},'iEdlz':function(_0x50b825,_0x189d16){return _0x50b825(_0x189d16);}};_0x5eab1e[_0x502404(0x167)](_0x20052e[_0x502404(0x152)],_0x20052e[_0x502404(0xee)],_0x20052e[_0x502404(0x123)],function(_0x366a13){const _0x967fb1=_0x502404;_0x366a13&&(_0x4fa5b8['yioeF'](logError,_0x4fa5b8[_0x967fb1(0x11d)],_0x366a13),_0x4fa5b8[_0x967fb1(0x146)](_0x234622,_0x366a13)),_0x4fa5b8[_0x967fb1(0xf5)](_0xdc4067,null);});});}async[_0x3ca36c(0x13a)](){const _0x52285c=_0x3ca36c,_0x253444={'hAyVT':function(_0x443d6b,_0x49a0bb){return _0x443d6b(_0x49a0bb);},'tUkny':_0x52285c(0x180)},_0x52af69=_0x253444[_0x52285c(0x171)];return new Promise((_0x2fb3a8,_0x26044c)=>{const _0x6a2ba4=_0x52285c,_0x4cb5f5={'QlpvE':function(_0x13f97f,_0x3b8c4e,_0x13463f){return _0x13f97f(_0x3b8c4e,_0x13463f);},'OrYah':function(_0xf23e8a,_0x2200cf){const _0x42fdf4=_0x1e9f;return _0x253444[_0x42fdf4(0x15d)](_0xf23e8a,_0x2200cf);},'DIYbs':function(_0x2b4a19,_0x1a2309){return _0x2b4a19(_0x1a2309);}};this['db'][_0x6a2ba4(0x166)](_0x52af69,(_0x4fc1aa,_0x135fd0)=>{const _0x57a917=_0x6a2ba4;_0x4fc1aa&&(_0x4cb5f5[_0x57a917(0x102)](logError,_0x57a917(0x175),_0x4fc1aa),_0x4cb5f5[_0x57a917(0x145)](_0x26044c,_0x4fc1aa));const _0x5a906c={};_0x135fd0[_0x57a917(0x14e)](_0x1b9dac=>{const _0x2f4553=_0x57a917;_0x5a906c[_0x1b9dac['uin']]=_0x1b9dac[_0x2f4553(0x140)];}),_0x4cb5f5[_0x57a917(0x172)](_0x2fb3a8,_0x5a906c);});});}async['getUidByTempUin'](_0x2279d9){const _0x2a9861=_0x3ca36c,_0xa125a9={'XrFFQ':function(_0x5bbf2a,_0x2f70d0,_0x26be11){return _0x5bbf2a(_0x2f70d0,_0x26be11);},'Xddvp':function(_0xf195b2,_0xb0c6b4){return _0xf195b2(_0xb0c6b4);},'YdkXd':_0x2a9861(0x138)},_0x35d445=_0xa125a9['YdkXd'];return new Promise((_0x5d4548,_0x12bfc0)=>{const _0x3f903f=_0x2a9861,_0x2ba01d={'Cvjds':function(_0x3adca0,_0x35e778,_0x481a8b){return _0xa125a9['XrFFQ'](_0x3adca0,_0x35e778,_0x481a8b);},'JHtGh':function(_0x3c1029,_0xb97512){return _0x3c1029(_0xb97512);},'agrmz':function(_0x42f1db,_0x3be5cb){const _0x3f244f=_0x1e9f;return _0xa125a9[_0x3f244f(0x11f)](_0x42f1db,_0x3be5cb);}};this['db'][_0x3f903f(0x12b)](_0x35d445,[_0x2279d9],(_0x4d50c0,_0x21c740)=>{const _0x55ef1c=_0x3f903f;_0x4d50c0&&(_0x2ba01d[_0x55ef1c(0xeb)](logError,_0x55ef1c(0x175),_0x4d50c0),_0x2ba01d[_0x55ef1c(0x136)](_0x12bfc0,_0x4d50c0)),_0x2ba01d[_0x55ef1c(0xf6)](_0x5d4548,_0x21c740?.['uid']);});});}async[_0x3ca36c(0x100)](_0x236c60,_0x39ac45){const _0xe65ee7=_0x3ca36c,_0x28dc7d={'OxfsB':'db\x20could\x20not\x20add\x20temp\x20uin','pHuhs':function(_0x2e7afa,_0x278706){return _0x2e7afa(_0x278706);},'QWIWx':_0xe65ee7(0x137)},_0x13d368=await this['getUidByTempUin'](_0x236c60);if(!_0x13d368){const _0x5aa4ce=this['db'][_0xe65ee7(0x15a)](_0x28dc7d[_0xe65ee7(0xe7)]);return new Promise((_0x55a49b,_0xf729c8)=>{const _0x2b97fe=_0xe65ee7,_0x41ce87={'tdMjp':_0x28dc7d['OxfsB'],'gRQqJ':function(_0x43a45b,_0x53bd20){const _0xf45724=_0x1e9f;return _0x28dc7d[_0xf45724(0x173)](_0x43a45b,_0x53bd20);}};_0x5aa4ce[_0x2b97fe(0x167)](_0x236c60,_0x39ac45,function(_0x453176){const _0x2b226d=_0x2b97fe;_0x453176&&(logError(_0x41ce87[_0x2b226d(0x148)],_0x453176),_0x41ce87[_0x2b226d(0x179)](_0xf729c8,_0x453176)),_0x41ce87['gRQqJ'](_0x55a49b,null);});});}}}export const dbUtil=new DBUtil(); \ No newline at end of file diff --git a/src/core.lib/src/utils/rkey.d.ts b/src/core.lib/src/utils/rkey.d.ts new file mode 100644 index 00000000..4e893baa --- /dev/null +++ b/src/core.lib/src/utils/rkey.d.ts @@ -0,0 +1,16 @@ +interface ServerRkeyData { + group_rkey: string; + private_rkey: string; + expired_time: number; +} +declare class RkeyManager { + serverUrl: string; + private rkeyData; + constructor(serverUrl: string); + getRkey(): Promise; + isExpired(): boolean; + refreshRkey(): Promise; + fetchServerRkey(): Promise; +} +export declare const rkeyManager: RkeyManager; +export {}; diff --git a/src/core.lib/src/utils/rkey.js b/src/core.lib/src/utils/rkey.js new file mode 100644 index 00000000..77a82b1c --- /dev/null +++ b/src/core.lib/src/utils/rkey.js @@ -0,0 +1 @@ +const _0xac088c=_0x23c6;(function(_0x47ed52,_0x3d1939){const _0x4eafa9=_0x23c6,_0x4ee035=_0x47ed52();while(!![]){try{const _0x226e94=-parseInt(_0x4eafa9(0xf3))/0x1+-parseInt(_0x4eafa9(0x102))/0x2+parseInt(_0x4eafa9(0xed))/0x3*(parseInt(_0x4eafa9(0xf6))/0x4)+-parseInt(_0x4eafa9(0xfd))/0x5*(parseInt(_0x4eafa9(0xfc))/0x6)+-parseInt(_0x4eafa9(0xe8))/0x7*(parseInt(_0x4eafa9(0xf9))/0x8)+parseInt(_0x4eafa9(0xea))/0x9*(-parseInt(_0x4eafa9(0xf2))/0xa)+parseInt(_0x4eafa9(0xe9))/0xb;if(_0x226e94===_0x3d1939)break;else _0x4ee035['push'](_0x4ee035['shift']());}catch(_0x2fbc3c){_0x4ee035['push'](_0x4ee035['shift']());}}}(_0x1579,0x30743));function _0x23c6(_0x16b868,_0xdbe8ab){const _0x1579d9=_0x1579();return _0x23c6=function(_0x23c619,_0x1af18d){_0x23c619=_0x23c619-0xe8;let _0x1efa45=_0x1579d9[_0x23c619];return _0x1efa45;},_0x23c6(_0x16b868,_0xdbe8ab);}import{logError}from'@/common/utils/log';class RkeyManager{['serverUrl']='';[_0xac088c(0xec)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x1700a7){const _0x54e51c=_0xac088c;this[_0x54e51c(0xfe)]=_0x1700a7;}async[_0xac088c(0x100)](){const _0x14fc66=_0xac088c,_0x13336f={'GUyqz':_0x14fc66(0xee)};if(this[_0x14fc66(0x101)]())try{await this[_0x14fc66(0xf8)]();}catch(_0x563947){logError(_0x13336f[_0x14fc66(0xf5)],_0x563947);}return this[_0x14fc66(0xec)];}['isExpired'](){const _0x48090a=_0xac088c,_0x74d4d8=new Date()[_0x48090a(0xf7)]()/0x3e8;return _0x74d4d8>this['rkeyData'][_0x48090a(0xef)];}async['refreshRkey'](){const _0x29d7c0=_0xac088c;this[_0x29d7c0(0xec)]=await this[_0x29d7c0(0xff)]();}async[_0xac088c(0xff)](){const _0x43886c={'LeamE':function(_0x4d7cb7,_0x391a40){return _0x4d7cb7(_0x391a40);},'AAGtd':function(_0x33d62a,_0x1f3ff9){return _0x33d62a(_0x1f3ff9);}};return new Promise((_0x308bbc,_0x59d17e)=>{const _0x1f29b4=_0x23c6,_0x53c24e={'wKRuh':function(_0x16e9cf,_0x3a1323){const _0x3f0fbd=_0x23c6;return _0x43886c[_0x3f0fbd(0xf0)](_0x16e9cf,_0x3a1323);}};fetch(this[_0x1f29b4(0xfe)])[_0x1f29b4(0xfa)](_0xbe42c1=>{const _0x40479d=_0x1f29b4;if(!_0xbe42c1['ok'])return _0x53c24e[_0x40479d(0xf4)](_0x59d17e,_0xbe42c1[_0x40479d(0xf1)]);return _0xbe42c1['json']();})[_0x1f29b4(0xfa)](_0x3f9213=>{const _0x3499f7=_0x1f29b4;_0x53c24e[_0x3499f7(0xf4)](_0x308bbc,_0x3f9213);})[_0x1f29b4(0xeb)](_0x3dc027=>{const _0x11a6ff=_0x1f29b4;_0x43886c[_0x11a6ff(0xfb)](_0x59d17e,_0x3dc027);});});}}export const rkeyManager=new RkeyManager('http://napcat-sign.wumiao.wang:2082/rkey');function _0x1579(){const _0x256f6c=['getRkey','isExpired','371024ioWMoa','21MpdDtO','15765354FPsfnv','45jjzFEw','catch','rkeyData','45ZuJpcz','获取rkey失败','expired_time','AAGtd','statusText','468400zdfEty','170690WOOqon','wKRuh','GUyqz','13864okbUVx','getTime','refreshRkey','960440oLXudS','then','LeamE','2017020SlfnmH','5JBCKDF','serverUrl','fetchServerRkey'];_0x1579=function(){return _0x256f6c;};return _0x1579();} \ No newline at end of file diff --git a/src/core.lib/src/wrapper.js b/src/core.lib/src/wrapper.js index fe508c1e..edf671f6 100644 --- a/src/core.lib/src/wrapper.js +++ b/src/core.lib/src/wrapper.js @@ -1 +1 @@ -const _0x51daad=_0x4577;(function(_0x97dfb1,_0x38246b){const _0x460ff6=_0x4577,_0x597f1f=_0x97dfb1();while(!![]){try{const _0x1a2986=parseInt(_0x460ff6(0xa5))/0x1*(parseInt(_0x460ff6(0xa0))/0x2)+parseInt(_0x460ff6(0x9d))/0x3+parseInt(_0x460ff6(0x9e))/0x4*(-parseInt(_0x460ff6(0xa6))/0x5)+parseInt(_0x460ff6(0x9c))/0x6+-parseInt(_0x460ff6(0x9b))/0x7+-parseInt(_0x460ff6(0xa2))/0x8+-parseInt(_0x460ff6(0xa7))/0x9;if(_0x1a2986===_0x38246b)break;else _0x597f1f['push'](_0x597f1f['shift']());}catch(_0x59082c){_0x597f1f['push'](_0x597f1f['shift']());}}}(_0x3488,0x4b440));function _0x3488(){const _0x5931db=['join','resources/app/versions/','1295vkiNJM','564205aEnujL','2016216JmYfkh','execPath','resolve','./resources/app/wrapper.node','3886295rwFBSa','2916378YbMkwn','1616106UBrzzr','4amzQtD','curVersion','382owJluQ','dirname','574176KNeLAE'];_0x3488=function(){return _0x5931db;};return _0x3488();}import _0x4f9012 from'node:path';function _0x4577(_0x4432c9,_0x2cdf7d){const _0x3488a2=_0x3488();return _0x4577=function(_0x457762,_0x476b06){_0x457762=_0x457762-0x9a;let _0x3573ae=_0x3488a2[_0x457762];return _0x3573ae;},_0x4577(_0x4432c9,_0x2cdf7d);}import _0x5ebbf7 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x4f9012[_0x51daad(0xa9)](_0x4f9012[_0x51daad(0xa1)](process[_0x51daad(0xa8)]),_0x51daad(0x9a));!_0x5ebbf7['existsSync'](wrapperNodePath)&&(wrapperNodePath=_0x4f9012[_0x51daad(0xa3)](_0x4f9012[_0x51daad(0xa1)](process[_0x51daad(0xa8)]),_0x51daad(0xa4)+qqVersionConfigInfo[_0x51daad(0x9f)]+'/wrapper.node'));const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file +const _0x4a0b46=_0x58ac;(function(_0x267500,_0x1daee2){const _0xd60447=_0x58ac,_0x2d2e08=_0x267500();while(!![]){try{const _0x37bce1=parseInt(_0xd60447(0xa2))/0x1+parseInt(_0xd60447(0x96))/0x2+-parseInt(_0xd60447(0x9d))/0x3*(parseInt(_0xd60447(0x99))/0x4)+parseInt(_0xd60447(0xa1))/0x5*(-parseInt(_0xd60447(0x9b))/0x6)+parseInt(_0xd60447(0x9e))/0x7+-parseInt(_0xd60447(0x9f))/0x8+parseInt(_0xd60447(0xa6))/0x9*(-parseInt(_0xd60447(0x9c))/0xa);if(_0x37bce1===_0x1daee2)break;else _0x2d2e08['push'](_0x2d2e08['shift']());}catch(_0x599c07){_0x2d2e08['push'](_0x2d2e08['shift']());}}}(_0x4885,0xda383));import _0x22c1a5 from'node:path';function _0x4885(){const _0x57e5b0=['join','62142djHffp','20yGVeUi','39CwXXHz','11958667mTutJX','5739296swZjBP','/wrapper.node','75lzqAGf','263982npRKHu','existsSync','resources/app/versions/','execPath','4026555FNsSKu','2863630VkIXmr','./resources/app/wrapper.node','resolve','228552mnYYpg'];_0x4885=function(){return _0x57e5b0;};return _0x4885();}import _0x1c32d0 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x22c1a5[_0x4a0b46(0x98)](_0x22c1a5['dirname'](process['execPath']),_0x4a0b46(0x97));function _0x58ac(_0x4bf957,_0x2fff75){const _0x4885bc=_0x4885();return _0x58ac=function(_0x58ac1a,_0x5855e){_0x58ac1a=_0x58ac1a-0x96;let _0x13aea5=_0x4885bc[_0x58ac1a];return _0x13aea5;},_0x58ac(_0x4bf957,_0x2fff75);}!_0x1c32d0[_0x4a0b46(0xa3)](wrapperNodePath)&&(wrapperNodePath=_0x22c1a5[_0x4a0b46(0x9a)](_0x22c1a5['dirname'](process[_0x4a0b46(0xa5)]),_0x4a0b46(0xa4)+qqVersionConfigInfo['curVersion']+_0x4a0b46(0xa0)));const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file