diff --git a/docs/changelogs/CHANGELOG.v1.4.1.md b/docs/changelogs/CHANGELOG.v1.4.1.md index e073bec9..cf7021a6 100644 --- a/docs/changelogs/CHANGELOG.v1.4.1.md +++ b/docs/changelogs/CHANGELOG.v1.4.1.md @@ -9,6 +9,6 @@ QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361 ## 新增与调整 * 支持非管理群 本地记录时间数据 (建议 **备份配置 清空配置 重新配置**) * 新增英译中接口 Api: /translate_en2zh -* 新增群文件管理相关扩展接口 Api: /xxxx +* 新增群文件管理相关扩展接口 Api: /get_group_file_count /get_group_file_list /set_group_file_folder /del_group_file /del_group_file_folder 新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api) diff --git a/src/core b/src/core index 841da902..845f6d2a 160000 --- a/src/core +++ b/src/core @@ -1 +1 @@ -Subproject commit 841da902e3a362bc06086969329334d5456ac46b +Subproject commit 845f6d2a15b1ef3796c4e12bbcc15674cf35b154 diff --git a/src/core.lib/src/adapters/NodeIDependsAdapter.js b/src/core.lib/src/adapters/NodeIDependsAdapter.js index 11e515c6..197ff37e 100644 --- a/src/core.lib/src/adapters/NodeIDependsAdapter.js +++ b/src/core.lib/src/adapters/NodeIDependsAdapter.js @@ -1 +1 @@ -var _0x126eee=_0x5f1d;(function(_0x5db8c6,_0x1cbf08){var _0x410be2=_0x5f1d,_0x239966=_0x5db8c6();while(!![]){try{var _0x31a2d7=-parseInt(_0x410be2(0x144))/0x1+-parseInt(_0x410be2(0x142))/0x2+parseInt(_0x410be2(0x14c))/0x3*(-parseInt(_0x410be2(0x148))/0x4)+parseInt(_0x410be2(0x143))/0x5*(parseInt(_0x410be2(0x149))/0x6)+parseInt(_0x410be2(0x147))/0x7+parseInt(_0x410be2(0x14d))/0x8*(parseInt(_0x410be2(0x14a))/0x9)+parseInt(_0x410be2(0x14b))/0xa;if(_0x31a2d7===_0x1cbf08)break;else _0x239966['push'](_0x239966['shift']());}catch(_0x197042){_0x239966['push'](_0x239966['shift']());}}}(_0xd009,0xbd39c));function _0x5f1d(_0x51323c,_0x46f2a6){var _0xd009cf=_0xd009();return _0x5f1d=function(_0x5f1d5b,_0x4f7fc9){_0x5f1d5b=_0x5f1d5b-0x141;var _0x3847df=_0xd009cf[_0x5f1d5b];return _0x3847df;},_0x5f1d(_0x51323c,_0x46f2a6);}export class DependsAdapter{[_0x126eee(0x146)](_0x1a639c,_0x4382e4){}[_0x126eee(0x145)](_0x121538){}[_0x126eee(0x141)](_0x178ff7){}}function _0xd009(){var _0x1c47da=['8113470adDLGw','5064ezmWVB','16LmWNTn','getGroupCode','1669988GzyBkM','10ZbrEpj','1451899mPMurV','onMSFSsoError','onMSFStatusChange','8329160mJBrdZ','184VqEHUG','970404zGDHbu','3667113CBoedZ'];_0xd009=function(){return _0x1c47da;};return _0xd009();} \ No newline at end of file +var _0x53ad75=_0x4803;function _0xe478(){var _0x5596f4=['onMSFStatusChange','8478DSeblD','120CBHLmq','getGroupCode','8142540ClqKUq','12034690uHLFGZ','428571uSIPMn','338876izjvuv','233PrhtpI','18JfPLcz','4504910cOvOVi','onMSFSsoError','2284698NHCKkY'];_0xe478=function(){return _0x5596f4;};return _0xe478();}function _0x4803(_0x455fa5,_0x3374cc){var _0xe478fc=_0xe478();return _0x4803=function(_0x4803d1,_0x5c7d64){_0x4803d1=_0x4803d1-0x166;var _0x407b69=_0xe478fc[_0x4803d1];return _0x407b69;},_0x4803(_0x455fa5,_0x3374cc);}(function(_0xd52527,_0x276b3b){var _0x29e235=_0x4803,_0x318582=_0xd52527();while(!![]){try{var _0x4398a7=parseInt(_0x29e235(0x16d))/0x1*(-parseInt(_0x29e235(0x166))/0x2)+parseInt(_0x29e235(0x16e))/0x3*(parseInt(_0x29e235(0x16c))/0x4)+-parseInt(_0x29e235(0x16f))/0x5+parseInt(_0x29e235(0x171))/0x6+parseInt(_0x29e235(0x169))/0x7+parseInt(_0x29e235(0x167))/0x8*(-parseInt(_0x29e235(0x16b))/0x9)+parseInt(_0x29e235(0x16a))/0xa;if(_0x4398a7===_0x276b3b)break;else _0x318582['push'](_0x318582['shift']());}catch(_0x35cc58){_0x318582['push'](_0x318582['shift']());}}}(_0xe478,0x9f620));export class DependsAdapter{[_0x53ad75(0x172)](_0x5352ea,_0x25f40e){}[_0x53ad75(0x170)](_0x522fec){}[_0x53ad75(0x168)](_0x247a93){}} \ 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 6a94b4d9..cfb3c8ca 100644 --- a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js +++ b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js @@ -1 +1 @@ -function _0x44df(){var _0x35a41d=['2214640ubdLyM','7947081PrNagF','1120084fVrExS','307045iZqtAd','431056gcdKYN','9qAeRMY','820yMugzQ','23502CvYXvX','1904014DgXMST','dispatchRequest','dispatchCall'];_0x44df=function(){return _0x35a41d;};return _0x44df();}var _0x4a5017=_0x1d38;function _0x1d38(_0x2f882,_0x3010ad){var _0x44df80=_0x44df();return _0x1d38=function(_0x1d3836,_0x595a23){_0x1d3836=_0x1d3836-0x93;var _0x209346=_0x44df80[_0x1d3836];return _0x209346;},_0x1d38(_0x2f882,_0x3010ad);}(function(_0x4c8a41,_0x4d8dc2){var _0x18fa89=_0x1d38,_0x4865de=_0x4c8a41();while(!![]){try{var _0x13548a=parseInt(_0x18fa89(0x9c))/0x1+parseInt(_0x18fa89(0x99))/0x2+parseInt(_0x18fa89(0x93))/0x3*(-parseInt(_0x18fa89(0x9b))/0x4)+-parseInt(_0x18fa89(0x94))/0x5*(parseInt(_0x18fa89(0x95))/0x6)+-parseInt(_0x18fa89(0x96))/0x7+parseInt(_0x18fa89(0x9d))/0x8+parseInt(_0x18fa89(0x9a))/0x9;if(_0x13548a===_0x4d8dc2)break;else _0x4865de['push'](_0x4865de['shift']());}catch(_0x33ae5b){_0x4865de['push'](_0x4865de['shift']());}}}(_0x44df,0x91b43));export class DispatcherAdapter{[_0x4a5017(0x97)](_0x5dfd6f){}[_0x4a5017(0x98)](_0x4b38c4){}['dispatchCallWithJson'](_0x5899ff){}} \ No newline at end of file +function _0x158b(){var _0x40fbd5=['3062871vunmFV','3zYOYxk','844044tpZmIc','749852nrnXeE','dispatchRequest','1290RHPCdr','10woqzDv','18728BYyKUV','dispatchCallWithJson','2442069YPAYtZ','dispatchCall','15945sSktrD','5819128TvdfDs'];_0x158b=function(){return _0x40fbd5;};return _0x158b();}var _0x43a50b=_0x1196;function _0x1196(_0x215c22,_0x3dcb48){var _0x158b1e=_0x158b();return _0x1196=function(_0x1196d1,_0x32c0b9){_0x1196d1=_0x1196d1-0x1c1;var _0x461c24=_0x158b1e[_0x1196d1];return _0x461c24;},_0x1196(_0x215c22,_0x3dcb48);}(function(_0xde87af,_0x11e6b0){var _0x4524e8=_0x1196,_0x2ac0b2=_0xde87af();while(!![]){try{var _0x14e82f=-parseInt(_0x4524e8(0x1c7))/0x1+-parseInt(_0x4524e8(0x1c6))/0x2*(-parseInt(_0x4524e8(0x1c5))/0x3)+-parseInt(_0x4524e8(0x1cb))/0x4+parseInt(_0x4524e8(0x1c2))/0x5*(parseInt(_0x4524e8(0x1c9))/0x6)+-parseInt(_0x4524e8(0x1cd))/0x7+parseInt(_0x4524e8(0x1c3))/0x8+-parseInt(_0x4524e8(0x1c4))/0x9*(parseInt(_0x4524e8(0x1ca))/0xa);if(_0x14e82f===_0x11e6b0)break;else _0x2ac0b2['push'](_0x2ac0b2['shift']());}catch(_0x1db3ad){_0x2ac0b2['push'](_0x2ac0b2['shift']());}}}(_0x158b,0x5f8a0));export class DispatcherAdapter{[_0x43a50b(0x1c8)](_0x663338){}[_0x43a50b(0x1c1)](_0x53028f){}[_0x43a50b(0x1cc)](_0x4257c9){}} \ 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 a052a890..700914cb 100644 --- a/src/core.lib/src/adapters/NodeIGlobalAdapter.js +++ b/src/core.lib/src/adapters/NodeIGlobalAdapter.js @@ -1 +1 @@ -function _0x14de(_0x346ab5,_0x27feb7){var _0x347850=_0x3478();return _0x14de=function(_0x14de00,_0x9cd929){_0x14de00=_0x14de00-0x1b3;var _0xae6a32=_0x347850[_0x14de00];return _0xae6a32;},_0x14de(_0x346ab5,_0x27feb7);}function _0x3478(){var _0x4d483e=['onUpdateGeneralFlag','onShowErrUITips','12KDbIfE','getAppSetting','28711qzOBKw','9052OoQAUn','fixPicImgType','133795trHMZO','198947KuuBlN','406390wOzHoU','onLog','6736Dxbgps','51XUgDtU','2430nCwvOT','255312xMhRgt'];_0x3478=function(){return _0x4d483e;};return _0x3478();}var _0x30880a=_0x14de;(function(_0x3a221f,_0x591bc7){var _0x208965=_0x14de,_0x3883b3=_0x3a221f();while(!![]){try{var _0x4c6e16=-parseInt(_0x208965(0x1bf))/0x1*(-parseInt(_0x208965(0x1bd))/0x2)+-parseInt(_0x208965(0x1b8))/0x3*(-parseInt(_0x208965(0x1c0))/0x4)+parseInt(_0x208965(0x1b3))/0x5+parseInt(_0x208965(0x1ba))/0x6+parseInt(_0x208965(0x1b4))/0x7+-parseInt(_0x208965(0x1b7))/0x8*(parseInt(_0x208965(0x1b9))/0x9)+parseInt(_0x208965(0x1b5))/0xa;if(_0x4c6e16===_0x591bc7)break;else _0x3883b3['push'](_0x3883b3['shift']());}catch(_0x337963){_0x3883b3['push'](_0x3883b3['shift']());}}}(_0x3478,0x1dba8));export class GlobalAdapter{[_0x30880a(0x1b6)](..._0x167ecd){}['onGetSrvCalTime'](..._0x3c9aff){}[_0x30880a(0x1bc)](..._0x4db9f6){}[_0x30880a(0x1c1)](..._0x5f18c2){}[_0x30880a(0x1be)](..._0x38e69f){}['onInstallFinished'](..._0x1c34ba){}[_0x30880a(0x1bb)](..._0xf01101){}['onGetOfflineMsg'](..._0x37b194){}} \ No newline at end of file +function _0x238a(){var _0x2f782d=['1000848yukvGL','onInstallFinished','5585885gLEaQu','4VYrsqU','onLog','2218657SXADhe','8271816fbxQav','1210040ynNaGd','167270boAwyT','1109100ybCVbQ','765byyBwI','onGetSrvCalTime','12bTBpih','onUpdateGeneralFlag','onShowErrUITips'];_0x238a=function(){return _0x2f782d;};return _0x238a();}var _0x54dfea=_0x46f2;function _0x46f2(_0x1c572b,_0x400d30){var _0x238a4f=_0x238a();return _0x46f2=function(_0x46f2c3,_0x1890a0){_0x46f2c3=_0x46f2c3-0x1cc;var _0x2dbfad=_0x238a4f[_0x46f2c3];return _0x2dbfad;},_0x46f2(_0x1c572b,_0x400d30);}(function(_0x268b2c,_0x2ea7c2){var _0x41b9cc=_0x46f2,_0x3d5952=_0x268b2c();while(!![]){try{var _0x513579=parseInt(_0x41b9cc(0x1ce))/0x1+-parseInt(_0x41b9cc(0x1d5))/0x2+-parseInt(_0x41b9cc(0x1d7))/0x3+-parseInt(_0x41b9cc(0x1d1))/0x4*(-parseInt(_0x41b9cc(0x1d0))/0x5)+-parseInt(_0x41b9cc(0x1da))/0x6*(parseInt(_0x41b9cc(0x1d3))/0x7)+-parseInt(_0x41b9cc(0x1d4))/0x8+-parseInt(_0x41b9cc(0x1d8))/0x9*(-parseInt(_0x41b9cc(0x1d6))/0xa);if(_0x513579===_0x2ea7c2)break;else _0x3d5952['push'](_0x3d5952['shift']());}catch(_0x1ffa66){_0x3d5952['push'](_0x3d5952['shift']());}}}(_0x238a,0xdb0c5));export class GlobalAdapter{[_0x54dfea(0x1d2)](..._0x23a9ba){}[_0x54dfea(0x1d9)](..._0xc9932c){}[_0x54dfea(0x1cd)](..._0x1c2c5e){}['fixPicImgType'](..._0x247bd1){}['getAppSetting'](..._0x4bfe6c){}[_0x54dfea(0x1cf)](..._0x29783c){}[_0x54dfea(0x1cc)](..._0x38d085){}['onGetOfflineMsg'](..._0x51024e){}} \ 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 34ca2cd2..66d7b8d7 100644 --- a/src/core.lib/src/adapters/index.js +++ b/src/core.lib/src/adapters/index.js @@ -1 +1 @@ -(function(_0x4cbb32,_0x3ea3e4){var _0x362609=_0x524e,_0x549216=_0x4cbb32();while(!![]){try{var _0x532254=parseInt(_0x362609(0x10b))/0x1+-parseInt(_0x362609(0x10c))/0x2*(-parseInt(_0x362609(0x10d))/0x3)+-parseInt(_0x362609(0x10e))/0x4*(parseInt(_0x362609(0x110))/0x5)+-parseInt(_0x362609(0x107))/0x6+-parseInt(_0x362609(0x108))/0x7*(parseInt(_0x362609(0x106))/0x8)+-parseInt(_0x362609(0x10a))/0x9*(parseInt(_0x362609(0x109))/0xa)+parseInt(_0x362609(0x10f))/0xb;if(_0x532254===_0x3ea3e4)break;else _0x549216['push'](_0x549216['shift']());}catch(_0x57c085){_0x549216['push'](_0x549216['shift']());}}}(_0x3e21,0x1c0b6));function _0x524e(_0x3d1dd2,_0x32bf77){var _0x3e2139=_0x3e21();return _0x524e=function(_0x524e30,_0x2ff165){_0x524e30=_0x524e30-0x106;var _0x4ba468=_0x3e2139[_0x524e30];return _0x4ba468;},_0x524e(_0x3d1dd2,_0x32bf77);}function _0x3e21(){var _0x34f17a=['835508Tovnhf','5735125ykvlCu','5tNjpAl','48dMAbpH','1293444jjwRFn','129094QVmTht','190030iSyqEw','27wijmFk','184631yXnxnc','122acjENG','48PwUwoe'];_0x3e21=function(){return _0x34f17a;};return _0x3e21();}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter'; \ No newline at end of file +(function(_0x4e675e,_0x33381c){var _0x149ce6=_0x5a58,_0x3870c1=_0x4e675e();while(!![]){try{var _0x1bfc29=parseInt(_0x149ce6(0x70))/0x1*(-parseInt(_0x149ce6(0x6e))/0x2)+-parseInt(_0x149ce6(0x73))/0x3*(-parseInt(_0x149ce6(0x71))/0x4)+-parseInt(_0x149ce6(0x72))/0x5+parseInt(_0x149ce6(0x75))/0x6+-parseInt(_0x149ce6(0x76))/0x7+parseInt(_0x149ce6(0x74))/0x8+parseInt(_0x149ce6(0x6f))/0x9;if(_0x1bfc29===_0x33381c)break;else _0x3870c1['push'](_0x3870c1['shift']());}catch(_0x557e6b){_0x3870c1['push'](_0x3870c1['shift']());}}}(_0x15ef,0xa25f5));function _0x5a58(_0x5859b3,_0x35f5bc){var _0x15ef17=_0x15ef();return _0x5a58=function(_0x5a58c0,_0x1337cb){_0x5a58c0=_0x5a58c0-0x6e;var _0x4ec18e=_0x15ef17[_0x5a58c0];return _0x4ec18e;},_0x5a58(_0x5859b3,_0x35f5bc);}function _0x15ef(){var _0x56c869=['2087340rclyQF','9plctPm','9984688aEkshO','854592heAZeF','5016291dEMrLe','5826EGMCIE','4201965RXVteZ','246KeDUoo','877804cXkxwW'];_0x15ef=function(){return _0x56c869;};return _0x15ef();}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter'; \ No newline at end of file diff --git a/src/core.lib/src/apis/file.js b/src/core.lib/src/apis/file.js index e67292d4..f50777fd 100644 --- a/src/core.lib/src/apis/file.js +++ b/src/core.lib/src/apis/file.js @@ -1 +1 @@ -const _0x1e0da9=_0x2ced;(function(_0x6d05a0,_0x89ffc0){const _0x4c552b=_0x2ced,_0x1e4bce=_0x6d05a0();while(!![]){try{const _0x320214=parseInt(_0x4c552b(0x1b6))/0x1+-parseInt(_0x4c552b(0x1ab))/0x2*(-parseInt(_0x4c552b(0x1a8))/0x3)+parseInt(_0x4c552b(0x1c8))/0x4+parseInt(_0x4c552b(0x1cd))/0x5+-parseInt(_0x4c552b(0x1c0))/0x6*(-parseInt(_0x4c552b(0x1cb))/0x7)+parseInt(_0x4c552b(0x1a0))/0x8*(-parseInt(_0x4c552b(0x1a6))/0x9)+-parseInt(_0x4c552b(0x1bd))/0xa*(parseInt(_0x4c552b(0x1d4))/0xb);if(_0x320214===_0x89ffc0)break;else _0x1e4bce['push'](_0x1e4bce['shift']());}catch(_0x549661){_0x1e4bce['push'](_0x1e4bce['shift']());}}}(_0x275d,0xb16a0));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';function _0x275d(){const _0x477ab9=['getRkey','&rkey=','getMsgService','/download','729EnVdKM','getRichMediaFilePathForGuild','219WkEXPQ','iHoKU','indexOf','514BWBaPP','Ukrwq','getStorageCleanService','includes','set','KdvIR','PIC','md5HexStr','clearChatCacheInfo','getFileSize','filePath','189487oqtbYz','下载超时','getFileType','private_rkey','onLoginSuccess','getFileCacheInfo','lhuwO','50jVqhsj','startsWith','jXOtN','18QdwZLn','toUpperCase','addCacheScannedPaths','existsSync','downloadRichMedia','/gchatpic_new/0/0-0-','msgId','UEonW','3362076DNmTVo','scanCache','copyFile','2070341wtTphn','getChatCacheInfo','3029250WsuHNE','lBIxH','setCacheSilentScan','getChatCacheList','getCacheSessionPathList','basename','addCacheScanedPaths','2377562BjGBLk','group_rkey','LHQoH','defaultFileDownloadPath','uploadFile','session','join','72544vhelTU','clearChatCache'];_0x275d=function(){return _0x477ab9;};return _0x275d();}import _0x42ad16 from'path';import _0x249557 from'fs';import _0xd40143 from'fs/promises';function _0x2ced(_0x563d46,_0x42c9e1){const _0x275d4f=_0x275d();return _0x2ced=function(_0x2ced78,_0x133912){_0x2ced78=_0x2ced78-0x19a;let _0x3564e1=_0x275d4f[_0x2ced78];return _0x3564e1;},_0x2ced(_0x563d46,_0x42c9e1);}import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x31ed7c from'file-type';import{MsgListener}from'@/core/listeners';import _0x1f40e4 from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener['onRichMediaDownloadComplete']=_0x28bc61=>{for(const [_0x356a49,_0x26800d]of downloadMediaTasks){_0x26800d(_0x28bc61),downloadMediaTasks['delete'](_0x356a49);}},setTimeout(()=>{const _0x4713ac=_0x2ced;napCatCore[_0x4713ac(0x1ba)](()=>{napCatCore['addListener'](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x1e0da9(0x1b8)](_0x3de202){return _0x31ed7c['fileTypeFromFile'](_0x3de202);}static async[_0x1e0da9(0x1ca)](_0xfdbdf8,_0x345767){const _0x5ed788=_0x1e0da9;await napCatCore['util'][_0x5ed788(0x1ca)](_0xfdbdf8,_0x345767);}static async[_0x1e0da9(0x1b4)](_0x1c1647){const _0x7e9e1f=_0x1e0da9;return await napCatCore['util'][_0x7e9e1f(0x1b4)](_0x1c1647);}static async[_0x1e0da9(0x19d)](_0x4e5b69,_0x195503=ElementType[_0x1e0da9(0x1b1)],_0x1758de=0x0){const _0xe93516=_0x1e0da9,_0x3edb2f={'APjDi':function(_0x219a1d,_0x2ed707){return _0x219a1d(_0x2ed707);},'jXOtN':function(_0xdd3dff,_0x449046){return _0xdd3dff+_0x449046;},'hyuYW':function(_0x5b00ea,_0x10e995){return _0x5b00ea===_0x10e995;}},_0x6ba3fc=await _0x3edb2f['APjDi'](calculateFileMD5,_0x4e5b69);let _0xb12f28=(await NTQQFileApi[_0xe93516(0x1b8)](_0x4e5b69))?.['ext']||'';_0xb12f28&&(_0xb12f28=_0x3edb2f[_0xe93516(0x1bf)]('.',_0xb12f28));let _0xf2e2=''+_0x42ad16[_0xe93516(0x1d2)](_0x4e5b69);_0x3edb2f['hyuYW'](_0xf2e2[_0xe93516(0x1aa)]('.'),-0x1)&&(_0xf2e2+=_0xb12f28);const _0x1de1b7=napCatCore[_0xe93516(0x19e)][_0xe93516(0x1a4)]()[_0xe93516(0x1a7)]({'md5HexStr':_0x6ba3fc,'fileName':_0xf2e2,'elementType':_0x195503,'elementSubType':_0x1758de,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0xe93516(0x1ca)](_0x4e5b69,_0x1de1b7);const _0x18c15f=await NTQQFileApi[_0xe93516(0x1b4)](_0x4e5b69);return{'md5':_0x6ba3fc,'fileName':_0xf2e2,'path':_0x1de1b7,'fileSize':_0x18c15f,'ext':_0xb12f28};}static async['downloadMedia'](_0x4ac64e,_0x4ba3d6,_0x3dde59,_0x4315e3,_0x4973ac,_0x2b07c3,_0xa18bd9=0x3e8*0x3c*0x2,_0x50b229=![]){const _0xf42596=_0x1e0da9,_0x202161={'KdvIR':function(_0x47438f,_0x5ac6a8){return _0x47438f===_0x5ac6a8;},'lhuwO':function(_0x36fae3,_0x2ab3db){return _0x36fae3(_0x2ab3db);},'iHoKU':_0xf42596(0x1b7),'cvWEF':function(_0x39159a,_0xc8639,_0x266923){return _0x39159a(_0xc8639,_0x266923);}};if(_0x2b07c3&&_0x249557[_0xf42596(0x1c3)](_0x2b07c3)){if(_0x50b229)try{await _0xd40143['unlink'](_0x2b07c3);}catch(_0x5658ad){}else return _0x2b07c3;}return new Promise((_0x57ba29,_0x3f8ce0)=>{const _0xfcd27=_0xf42596;let _0x6cae2a=![];const _0x525432=_0x4ce162=>{const _0xf177a5=_0x2ced;if(_0x202161[_0xf177a5(0x1b0)](_0x4ce162[_0xf177a5(0x1c6)],_0x4ac64e)){_0x6cae2a=!![];let _0x547e75=_0x4ce162[_0xf177a5(0x1b5)];if(_0x547e75[_0xf177a5(0x1be)]('\x5c')){const _0x4d1f2f=sessionConfig[_0xf177a5(0x19c)];_0x547e75=_0x42ad16[_0xf177a5(0x19f)](_0x4d1f2f,_0x547e75);}_0x202161[_0xf177a5(0x1bc)](_0x57ba29,_0x547e75);}};downloadMediaTasks[_0xfcd27(0x1af)](randomUUID(),_0x525432),_0x202161['cvWEF'](setTimeout,()=>{const _0x5c03ca=_0xfcd27;!_0x6cae2a&&_0x3f8ce0(_0x202161[_0x5c03ca(0x1a9)]);},_0xa18bd9),napCatCore[_0xfcd27(0x19e)]['getMsgService']()[_0xfcd27(0x1c4)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x4ac64e,'chatType':_0x4ba3d6,'peerUid':_0x3dde59,'elementId':_0x4315e3,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x4973ac});});}static async['getImageSize'](_0x28f0eb){const _0x5f2f8e={'dXEax':function(_0x4008a4,_0x49d6c9){return _0x4008a4(_0x49d6c9);},'Ukrwq':function(_0x10f9ed,_0x1a52a2,_0x4bf93d){return _0x10f9ed(_0x1a52a2,_0x4bf93d);}};return new Promise((_0x56a5c7,_0x2ed590)=>{const _0x4f60cc=_0x2ced,_0x5987cf={'lBIxH':function(_0x240869,_0x2b3593){return _0x5f2f8e['dXEax'](_0x240869,_0x2b3593);}};_0x5f2f8e[_0x4f60cc(0x1ac)](_0x1f40e4,_0x28f0eb,(_0xe3a289,_0x1a5faf)=>{const _0x4c21dd=_0x4f60cc;_0xe3a289?_0x5987cf[_0x4c21dd(0x1ce)](_0x2ed590,_0xe3a289):_0x5987cf[_0x4c21dd(0x1ce)](_0x56a5c7,_0x1a5faf);});});}static async['getImageUrl'](_0x28306a,_0x34de79){const _0x38919b=_0x1e0da9,_0x57a0a1={'hjQyz':_0x38919b(0x1a5),'UEonW':_0x38919b(0x1a3),'LHQoH':function(_0x5f53f4,_0x8f151){return _0x5f53f4+_0x8f151;},'HctlI':function(_0x2eb649,_0x29c6bb){return _0x2eb649||_0x29c6bb;},'Ueboc':function(_0x3248e1,_0x30ff30){return _0x3248e1||_0x30ff30;},'cHbgS':function(_0x679be4,_0x4a075c,_0x27253f){return _0x679be4(_0x4a075c,_0x27253f);},'uIQEC':'图片url获取失败'};if(!_0x28306a)return'';const _0x546aea=_0x28306a['originImageUrl'],_0x24f8fe=_0x28306a[_0x38919b(0x1b2)],_0x4c36e6=_0x28306a['md5HexStr'],_0xbd4d55=_0x28306a['fileUuid'];if(_0x546aea){if(_0x546aea[_0x38919b(0x1be)](_0x57a0a1['hjQyz'])){if(_0x546aea[_0x38919b(0x1ae)](_0x57a0a1[_0x38919b(0x1c7)]))return IMAGE_HTTP_HOST_NT+_0x546aea;const _0x5a073a=await rkeyManager[_0x38919b(0x1a2)](),_0x1757c9=_0x34de79?_0x5a073a[_0x38919b(0x1b9)]:_0x5a073a[_0x38919b(0x19a)];return _0x57a0a1[_0x38919b(0x19b)](IMAGE_HTTP_HOST_NT,_0x546aea)+(''+_0x1757c9);}else return IMAGE_HTTP_HOST+_0x546aea;}else{if(_0x57a0a1['HctlI'](_0x4c36e6,_0x24f8fe))return IMAGE_HTTP_HOST+_0x38919b(0x1c5)+_0x57a0a1['Ueboc'](_0x4c36e6,_0x24f8fe)[_0x38919b(0x1c1)]()+'/0';}return _0x57a0a1['cHbgS'](logDebug,_0x57a0a1['uIQEC'],_0x28306a),'';}}export class NTQQFileCacheApi{static async[_0x1e0da9(0x1cf)](_0x3eeda5=!![]){return'';}static[_0x1e0da9(0x1d1)](){return'';}static['clearCache'](_0x293225=['tmp','hotUpdate']){const _0xbb2382=_0x1e0da9;return napCatCore[_0xbb2382(0x19e)]['getStorageCleanService']()['clearCacheDataByKeys'](_0x293225);}static[_0x1e0da9(0x1c2)](_0x46ff82={}){const _0x96fed7=_0x1e0da9;return napCatCore['session'][_0x96fed7(0x1ad)]()[_0x96fed7(0x1d3)](_0x46ff82);}static[_0x1e0da9(0x1c9)](){const _0x469dac=_0x1e0da9;return napCatCore[_0x469dac(0x19e)][_0x469dac(0x1ad)]()[_0x469dac(0x1c9)]();}static['getHotUpdateCachePath'](){return'';}static['getDesktopTmpPath'](){return'';}static[_0x1e0da9(0x1d0)](_0x239eef,_0xaab901=0x3e8,_0x39adef=0x0){const _0x459702=_0x1e0da9;return napCatCore['session']['getStorageCleanService']()[_0x459702(0x1cc)](_0x239eef,_0xaab901,0x1,_0x39adef);}static[_0x1e0da9(0x1bb)](_0x2a0a91,_0x1e5184=0x3e8,_0x4d3b69){const _0x562294=_0x4d3b69?_0x4d3b69:{'fileType':_0x2a0a91};}static async[_0x1e0da9(0x1a1)](_0x3cbafe=[],_0x5a3df3=[]){const _0x279fa8=_0x1e0da9;return napCatCore[_0x279fa8(0x19e)][_0x279fa8(0x1ad)]()[_0x279fa8(0x1b3)](_0x3cbafe,_0x5a3df3);}} \ No newline at end of file +const _0x2256cb=_0x550a;(function(_0x4552e2,_0x521831){const _0x24b51b=_0x550a,_0x1f6110=_0x4552e2();while(!![]){try{const _0x2d0101=-parseInt(_0x24b51b(0x1f6))/0x1*(-parseInt(_0x24b51b(0x1dc))/0x2)+parseInt(_0x24b51b(0x200))/0x3+-parseInt(_0x24b51b(0x207))/0x4*(-parseInt(_0x24b51b(0x204))/0x5)+-parseInt(_0x24b51b(0x1fd))/0x6+parseInt(_0x24b51b(0x1e2))/0x7*(parseInt(_0x24b51b(0x1d0))/0x8)+parseInt(_0x24b51b(0x205))/0x9*(parseInt(_0x24b51b(0x1fe))/0xa)+parseInt(_0x24b51b(0x1f4))/0xb*(-parseInt(_0x24b51b(0x1fb))/0xc);if(_0x2d0101===_0x521831)break;else _0x1f6110['push'](_0x1f6110['shift']());}catch(_0x3934d2){_0x1f6110['push'](_0x1f6110['shift']());}}}(_0x58e1,0x544f0));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x55b9df from'path';function _0x550a(_0x1c26a6,_0x2a8444){const _0x58e113=_0x58e1();return _0x550a=function(_0x550ac9,_0x4b9cb4){_0x550ac9=_0x550ac9-0x1cb;let _0x26ec90=_0x58e113[_0x550ac9];return _0x26ec90;},_0x550a(_0x1c26a6,_0x2a8444);}import _0xcedb19 from'fs';import _0x58dd5d from'fs/promises';import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x4a6abd from'file-type';import{MsgListener}from'@/core/listeners';import _0x464146 from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener['onRichMediaDownloadComplete']=_0x109f2f=>{const _0x249527={'ZNWGr':function(_0x1d5f1f,_0x2a39e7){return _0x1d5f1f(_0x2a39e7);}};for(const [_0x12df8d,_0x1e5551]of downloadMediaTasks){_0x249527['ZNWGr'](_0x1e5551,_0x109f2f),downloadMediaTasks['delete'](_0x12df8d);}},setTimeout(()=>{const _0x2105f5=_0x550a;napCatCore[_0x2105f5(0x1cf)](()=>{napCatCore['addListener'](downloadMediaListener);});},0x64);export class NTQQFileApi{static async['getFileType'](_0x344eeb){const _0x5a08b9=_0x550a;return _0x4a6abd[_0x5a08b9(0x206)](_0x344eeb);}static async[_0x2256cb(0x1ce)](_0x3c5eab,_0xe9767e){await napCatCore['util']['copyFile'](_0x3c5eab,_0xe9767e);}static async[_0x2256cb(0x1ec)](_0x28af40){const _0x252d09=_0x2256cb;return await napCatCore['util'][_0x252d09(0x1ec)](_0x28af40);}static async[_0x2256cb(0x1f0)](_0x366906,_0x1c75ab=ElementType['PIC'],_0x2b5235=0x0){const _0x488798=_0x2256cb,_0x34d1e9={'ZZULs':function(_0x55dda4,_0x14d6d4){return _0x55dda4(_0x14d6d4);},'fIKzK':function(_0x1f54b2,_0x16bf12){return _0x1f54b2===_0x16bf12;}},_0x5e8169=await _0x34d1e9[_0x488798(0x1e3)](calculateFileMD5,_0x366906);let _0x41b2e6=(await NTQQFileApi[_0x488798(0x1fc)](_0x366906))?.[_0x488798(0x1cb)]||'';_0x41b2e6&&(_0x41b2e6='.'+_0x41b2e6);let _0x150def=''+_0x55b9df['basename'](_0x366906);_0x34d1e9[_0x488798(0x1e9)](_0x150def[_0x488798(0x1da)]('.'),-0x1)&&(_0x150def+=_0x41b2e6);const _0x588f21=napCatCore[_0x488798(0x1d8)][_0x488798(0x1ea)]()[_0x488798(0x211)]({'md5HexStr':_0x5e8169,'fileName':_0x150def,'elementType':_0x1c75ab,'elementSubType':_0x2b5235,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x488798(0x1ce)](_0x366906,_0x588f21);const _0x4c3de3=await NTQQFileApi[_0x488798(0x1ec)](_0x366906);return{'md5':_0x5e8169,'fileName':_0x150def,'path':_0x588f21,'fileSize':_0x4c3de3,'ext':_0x41b2e6};}static async[_0x2256cb(0x1e7)](_0x55b274,_0x4f286c,_0x4af92a,_0xd5836a,_0x58e5d2,_0x155a5f,_0x228c37=0x3e8*0x3c*0x2,_0x1088a5=![]){const _0x1d4978=_0x2256cb,_0x481e01={'FdTUJ':function(_0x4d406c,_0x14f5b8){return _0x4d406c(_0x14f5b8);},'UkOlJ':'下载超时','GlXaF':function(_0x5e4e50,_0x2dd712){return _0x5e4e50===_0x2dd712;},'UtqFj':function(_0x20f71f,_0x5d3943){return _0x20f71f(_0x5d3943);},'rZclE':function(_0x3b6c4e){return _0x3b6c4e();},'xDYiM':function(_0x396458,_0x3dab2d,_0x4fc670){return _0x396458(_0x3dab2d,_0x4fc670);}};if(_0x155a5f&&_0xcedb19[_0x1d4978(0x1f7)](_0x155a5f)){if(_0x1088a5)try{await _0x58dd5d[_0x1d4978(0x1f3)](_0x155a5f);}catch(_0x5c335a){}else return _0x155a5f;}return new Promise((_0x41ec57,_0x61080c)=>{const _0x5a2d48=_0x1d4978,_0x17b527={'QvVjT':function(_0x4fca3f,_0x102d5c){return _0x481e01['GlXaF'](_0x4fca3f,_0x102d5c);},'nfRju':function(_0x33ea14,_0x42b8ad){const _0x16fb6a=_0x550a;return _0x481e01[_0x16fb6a(0x1dd)](_0x33ea14,_0x42b8ad);}};let _0x17a9b6=![];const _0x8780cd=_0x1c21d1=>{const _0x23fbca=_0x550a;if(_0x17b527['QvVjT'](_0x1c21d1[_0x23fbca(0x201)],_0x55b274)){_0x17a9b6=!![];let _0x22dabc=_0x1c21d1['filePath'];if(_0x22dabc[_0x23fbca(0x1d6)]('\x5c')){const _0x33659d=sessionConfig[_0x23fbca(0x1cc)];_0x22dabc=_0x55b9df[_0x23fbca(0x1f5)](_0x33659d,_0x22dabc);}_0x17b527[_0x23fbca(0x1ef)](_0x41ec57,_0x22dabc);}};downloadMediaTasks[_0x5a2d48(0x1ff)](_0x481e01[_0x5a2d48(0x1d1)](randomUUID),_0x8780cd),_0x481e01[_0x5a2d48(0x1e4)](setTimeout,()=>{const _0x1877c6=_0x5a2d48;!_0x17a9b6&&_0x481e01[_0x1877c6(0x1d4)](_0x61080c,_0x481e01[_0x1877c6(0x20c)]);},_0x228c37),napCatCore['session'][_0x5a2d48(0x1ea)]()[_0x5a2d48(0x1df)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x55b274,'chatType':_0x4f286c,'peerUid':_0x4af92a,'elementId':_0xd5836a,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x58e5d2});});}static async[_0x2256cb(0x1f8)](_0x57dfdd){const _0x215154={'gdmLn':function(_0x3f7f3e,_0x32b21d){return _0x3f7f3e(_0x32b21d);},'OFRNw':function(_0x1054a7,_0x29bd1f,_0x23f472){return _0x1054a7(_0x29bd1f,_0x23f472);}};return new Promise((_0x35f778,_0x5888e8)=>{const _0x2aaaca=_0x550a,_0x5ed6b2={'EKfAQ':function(_0x2e5b0c,_0x218785){const _0x30f451=_0x550a;return _0x215154[_0x30f451(0x1de)](_0x2e5b0c,_0x218785);}};_0x215154[_0x2aaaca(0x20a)](_0x464146,_0x57dfdd,(_0x50b205,_0xb10d24)=>{const _0x4e0072=_0x2aaaca;_0x50b205?_0x5888e8(_0x50b205):_0x5ed6b2[_0x4e0072(0x1eb)](_0x35f778,_0xb10d24);});});}static async[_0x2256cb(0x1fa)](_0x42102b,_0x418a93){const _0x16d1c4=_0x2256cb,_0x5931da={'UdzTH':_0x16d1c4(0x202),'BYiCh':_0x16d1c4(0x20e),'lqsmk':function(_0x62fb58,_0x4fbdd6){return _0x62fb58+_0x4fbdd6;},'cbnbs':function(_0x21fc5d,_0x22cfd4){return _0x21fc5d||_0x22cfd4;},'nzprv':function(_0x288fca,_0x253006,_0x5f2522){return _0x288fca(_0x253006,_0x5f2522);},'GUeXJ':'图片url获取失败'};if(!_0x42102b)return'';const _0x55b344=_0x42102b[_0x16d1c4(0x1db)],_0x1c8eb5=_0x42102b[_0x16d1c4(0x1d9)],_0x2965d0=_0x42102b[_0x16d1c4(0x1d9)],_0x405f87=_0x42102b[_0x16d1c4(0x1f9)];if(_0x55b344){if(_0x55b344[_0x16d1c4(0x1d6)](_0x5931da['UdzTH'])){if(_0x55b344[_0x16d1c4(0x1d3)](_0x5931da[_0x16d1c4(0x1d2)]))return _0x5931da['lqsmk'](IMAGE_HTTP_HOST_NT,_0x55b344);const _0x502165=await rkeyManager[_0x16d1c4(0x1e6)](),_0x47080e=_0x418a93?_0x502165['private_rkey']:_0x502165[_0x16d1c4(0x1ee)];return _0x5931da['lqsmk'](_0x5931da[_0x16d1c4(0x20d)](IMAGE_HTTP_HOST_NT,_0x55b344),''+_0x47080e);}else return _0x5931da['lqsmk'](IMAGE_HTTP_HOST,_0x55b344);}else{if(_0x2965d0||_0x1c8eb5)return IMAGE_HTTP_HOST+'/gchatpic_new/0/0-0-'+_0x5931da[_0x16d1c4(0x1d5)](_0x2965d0,_0x1c8eb5)[_0x16d1c4(0x1f1)]()+'/0';}return _0x5931da[_0x16d1c4(0x1e1)](logDebug,_0x5931da[_0x16d1c4(0x1d7)],_0x42102b),'';}}function _0x58e1(){const _0x468aff=['2mWzuEG','UtqFj','gdmLn','downloadRichMedia','hotUpdate','nzprv','17843IHsuzQ','ZZULs','xDYiM','clearChatCache','getRkey','downloadMedia','getFileCacheInfo','fIKzK','getMsgService','EKfAQ','getFileSize','getChatCacheList','group_rkey','nfRju','uploadFile','toUpperCase','getHotUpdateCachePath','unlink','55IHcyEy','join','218317bZwzRy','existsSync','getImageSize','fileUuid','getImageUrl','1683228sGUEAG','getFileType','2487336mvlsnp','10YVrjcq','set','201648QOjumF','msgId','/download','clearChatCacheInfo','23535bswZAT','5674869ETIzIP','fileTypeFromFile','212mtttqr','getChatCacheInfo','addCacheScannedPaths','OFRNw','getCacheSessionPathList','UkOlJ','lqsmk','&rkey=','getStorageCleanService','tmp','getRichMediaFilePathForGuild','scanCache','ext','defaultFileDownloadPath','clearCache','copyFile','onLoginSuccess','928TMMtrs','rZclE','BYiCh','includes','FdTUJ','cbnbs','startsWith','GUeXJ','session','md5HexStr','indexOf','originImageUrl'];_0x58e1=function(){return _0x468aff;};return _0x58e1();}export class NTQQFileCacheApi{static async['setCacheSilentScan'](_0x79532b=!![]){return'';}static[_0x2256cb(0x20b)](){return'';}static[_0x2256cb(0x1cd)](_0x5b96b2=[_0x2256cb(0x210),_0x2256cb(0x1e0)]){return napCatCore['session']['getStorageCleanService']()['clearCacheDataByKeys'](_0x5b96b2);}static[_0x2256cb(0x209)](_0x2630b7={}){const _0x2a0546=_0x2256cb;return napCatCore[_0x2a0546(0x1d8)]['getStorageCleanService']()['addCacheScanedPaths'](_0x2630b7);}static[_0x2256cb(0x212)](){const _0x3bc675=_0x2256cb;return napCatCore[_0x3bc675(0x1d8)][_0x3bc675(0x20f)]()[_0x3bc675(0x212)]();}static[_0x2256cb(0x1f2)](){return'';}static['getDesktopTmpPath'](){return'';}static[_0x2256cb(0x1ed)](_0x335344,_0x305e52=0x3e8,_0x1ce455=0x0){const _0x4feb34=_0x2256cb;return napCatCore[_0x4feb34(0x1d8)]['getStorageCleanService']()[_0x4feb34(0x208)](_0x335344,_0x305e52,0x1,_0x1ce455);}static[_0x2256cb(0x1e8)](_0x2060d3,_0x35fbc5=0x3e8,_0xfcc94a){const _0x3ffcd8=_0xfcc94a?_0xfcc94a:{'fileType':_0x2060d3};}static async[_0x2256cb(0x1e5)](_0xd571dd=[],_0xfaebf7=[]){const _0x2e5be8=_0x2256cb;return napCatCore['session'][_0x2e5be8(0x20f)]()[_0x2e5be8(0x203)](_0xd571dd,_0xfaebf7);}} \ 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 68b02f74..352452ce 100644 --- a/src/core.lib/src/apis/friend.js +++ b/src/core.lib/src/apis/friend.js @@ -1 +1 @@ -const _0x43710c=_0x766a;(function(_0x5d2c5f,_0x4e45ec){const _0x3eb2f9=_0x766a,_0x581ad2=_0x5d2c5f();while(!![]){try{const _0x1d9872=-parseInt(_0x3eb2f9(0xbb))/0x1*(parseInt(_0x3eb2f9(0xb2))/0x2)+parseInt(_0x3eb2f9(0xa9))/0x3+-parseInt(_0x3eb2f9(0xa8))/0x4*(parseInt(_0x3eb2f9(0xad))/0x5)+parseInt(_0x3eb2f9(0xae))/0x6+parseInt(_0x3eb2f9(0x9d))/0x7+parseInt(_0x3eb2f9(0x9f))/0x8*(parseInt(_0x3eb2f9(0xb3))/0x9)+parseInt(_0x3eb2f9(0xa2))/0xa*(parseInt(_0x3eb2f9(0xa0))/0xb);if(_0x1d9872===_0x4e45ec)break;else _0x581ad2['push'](_0x581ad2['shift']());}catch(_0x3ab830){_0x581ad2['push'](_0x581ad2['shift']());}}}(_0x22f2,0x40bb8));import{BuddyListener,napCatCore}from'@/core';function _0x22f2(){const _0x3a25d5=['then','getBuddyService','794ITlKLp','wsotR','gyOWr','84560GCxPLE','delete','135416BNfgCy','55PJLgsU','onLoginSuccess','412310ijDHIm','set','uin','XkbEr','获取好友列表超时','approvalFriendRequest','1572204KZAspA','1142403touZIa','getBuddyList','session','mjbSL','5hTxbar','1020816ohYhpf','PfDSE','reqTime','BzUPq','578gLdfIY','63QAbbjL','friendUid','开始获取好友列表','getFriends','buddyList','handleFriendRequest'];_0x22f2=function(){return _0x3a25d5;};return _0x22f2();}import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';function _0x766a(_0x256bb4,_0x3dd66c){const _0x22f2a4=_0x22f2();return _0x766a=function(_0x766ada,_0x36f789){_0x766ada=_0x766ada-0x9c;let _0x116422=_0x22f2a4[_0x766ada];return _0x116422;},_0x766a(_0x256bb4,_0x3dd66c);}import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener['onBuddyListChange']=_0x2897ca=>{const _0x99fade=_0x766a;for(const [_0x46636e,_0x15a4da]of buddyChangeTasks){_0x15a4da(_0x2897ca),buddyChangeTasks[_0x99fade(0x9e)](_0x46636e);}},setTimeout(()=>{const _0x2759aa=_0x766a;napCatCore[_0x2759aa(0xa1)](()=>{napCatCore['addListener'](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x43710c(0xb6)](_0x5461c4=![]){const _0x710332=_0x43710c,_0x91173b={'mjbSL':function(_0x20b27d,_0x4ca90a,_0x49120a){return _0x20b27d(_0x4ca90a,_0x49120a);},'BzUPq':_0x710332(0xb5),'XkbEr':function(_0x409751,_0x4b1253){return _0x409751(_0x4b1253);},'gyOWr':function(_0x14bf5c){return _0x14bf5c();}};return new Promise((_0x20effb,_0xcbcd09)=>{const _0xf7f2bc=_0x710332,_0x460482={'wsotR':function(_0x2e0db8,_0x137f01){const _0x4c65bc=_0x766a;return _0x91173b[_0x4c65bc(0xa5)](_0x2e0db8,_0x137f01);},'PfDSE':_0xf7f2bc(0xa6)};let _0xe2b618=![];_0x91173b['mjbSL'](setTimeout,()=>{const _0x234852=_0xf7f2bc;!_0xe2b618&&(_0x460482[_0x234852(0xbc)](logDebug,_0x460482[_0x234852(0xaf)]),_0xcbcd09(_0x460482[_0x234852(0xaf)]));},0x1388);const _0x51b9a=[],_0x369ff1=_0x582613=>{const _0x22d7bd=_0xf7f2bc;for(const _0x21a558 of _0x582613){for(const _0x17a8a0 of _0x21a558[_0x22d7bd(0xb7)]){_0x51b9a['push'](_0x17a8a0),uid2UinMap[_0x17a8a0['uid']]=_0x17a8a0[_0x22d7bd(0xa4)];}}_0xe2b618=!![],_0x460482[_0x22d7bd(0xbc)](_0x20effb,_0x51b9a);};buddyChangeTasks[_0xf7f2bc(0xa3)](_0x91173b[_0xf7f2bc(0x9c)](randomUUID),_0x369ff1),napCatCore['session']['getBuddyService']()[_0xf7f2bc(0xaa)](_0x5461c4)[_0xf7f2bc(0xb9)](_0x497b0f=>{const _0x583384=_0xf7f2bc;_0x91173b[_0x583384(0xac)](logDebug,_0x91173b[_0x583384(0xb1)],_0x497b0f);});});}static async[_0x43710c(0xb8)](_0x4d5015,_0x163383){const _0x2090a8=_0x43710c;napCatCore[_0x2090a8(0xab)][_0x2090a8(0xba)]()?.[_0x2090a8(0xa7)]({'friendUid':_0x4d5015[_0x2090a8(0xb4)],'reqTime':_0x4d5015[_0x2090a8(0xb0)],'accept':_0x163383});}} \ No newline at end of file +const _0xd4c679=_0x4272;(function(_0x496a3b,_0xb73cdd){const _0x1e4b08=_0x4272,_0x5a6bc5=_0x496a3b();while(!![]){try{const _0x288afd=parseInt(_0x1e4b08(0x1be))/0x1*(parseInt(_0x1e4b08(0x1b1))/0x2)+parseInt(_0x1e4b08(0x1ba))/0x3*(parseInt(_0x1e4b08(0x1bb))/0x4)+-parseInt(_0x1e4b08(0x1b4))/0x5+-parseInt(_0x1e4b08(0x1aa))/0x6*(parseInt(_0x1e4b08(0x1c1))/0x7)+-parseInt(_0x1e4b08(0x1a5))/0x8*(parseInt(_0x1e4b08(0x1b8))/0x9)+parseInt(_0x1e4b08(0x1a9))/0xa+parseInt(_0x1e4b08(0x1c0))/0xb;if(_0x288afd===_0xb73cdd)break;else _0x5a6bc5['push'](_0x5a6bc5['shift']());}catch(_0x34e642){_0x5a6bc5['push'](_0x5a6bc5['shift']());}}}(_0x5a33,0xa8480));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';function _0x5a33(){const _0x281cfb=['459332UUuQfM','uid','16328070ExNyrh','7ktzxku','getBuddyService','WksIN','set','获取好友列表超时','delete','8GJFJeL','reqTime','XcrxL','friendUid','2853640wHvxGr','6450762meNpzT','session','handleFriendRequest','iclee','onLoginSuccess','push','approvalFriendRequest','2EPJvRC','onBuddyListChange','buddyList','445080rFelIA','uin','aSDoe','LfWBK','5875533aSnnxI','开始获取好友列表','18BXJLCi','184796tBuDBv','JsMRs','JxKJH'];_0x5a33=function(){return _0x281cfb;};return _0x5a33();}import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();function _0x4272(_0x4f3826,_0x29a058){const _0x5a3375=_0x5a33();return _0x4272=function(_0x427267,_0x3643e1){_0x427267=_0x427267-0x1a0;let _0x33abc8=_0x5a3375[_0x427267];return _0x33abc8;},_0x4272(_0x4f3826,_0x29a058);}buddyListener[_0xd4c679(0x1b2)]=_0x590332=>{const _0x224a7a=_0xd4c679,_0x1d210f={'jjksZ':function(_0x41fb46,_0x4f5f29){return _0x41fb46(_0x4f5f29);}};for(const [_0x1a3d0f,_0xff7093]of buddyChangeTasks){_0x1d210f['jjksZ'](_0xff7093,_0x590332),buddyChangeTasks[_0x224a7a(0x1a4)](_0x1a3d0f);}},setTimeout(()=>{const _0x51828c=_0xd4c679;napCatCore[_0x51828c(0x1ae)](()=>{napCatCore['addListener'](buddyListener);});},0x64);export class NTQQFriendApi{static async['getFriends'](_0x2f4c84=![]){const _0xaf62f3=_0xd4c679,_0x32fb99={'JxKJH':function(_0x49e7d8,_0x3fb2b2){return _0x49e7d8(_0x3fb2b2);},'WksIN':_0xaf62f3(0x1a3),'LfWBK':function(_0x16b79a,_0x4cf5f9){return _0x16b79a(_0x4cf5f9);},'JsMRs':function(_0x45e55f,_0x3912f8){return _0x45e55f(_0x3912f8);},'AxTme':function(_0x384c13,_0x39c1b9,_0x2ef241){return _0x384c13(_0x39c1b9,_0x2ef241);},'iclee':function(_0x4e72f3){return _0x4e72f3();}};return new Promise((_0xf6b6df,_0xed31ba)=>{const _0x5d83fd=_0xaf62f3,_0x4ea5e1={'aSDoe':function(_0x45cfac,_0x55e521,_0x43ae7f){return _0x32fb99['AxTme'](_0x45cfac,_0x55e521,_0x43ae7f);},'XcrxL':_0x5d83fd(0x1b9)};let _0x548f69=![];setTimeout(()=>{const _0x132875=_0x5d83fd;!_0x548f69&&(_0x32fb99[_0x132875(0x1bd)](logDebug,_0x32fb99[_0x132875(0x1a1)]),_0x32fb99[_0x132875(0x1b7)](_0xed31ba,_0x32fb99[_0x132875(0x1a1)]));},0x1388);const _0x17d3e2=[],_0x32e5a0=_0x2da32a=>{const _0x4d3a2e=_0x5d83fd;for(const _0x8e01ff of _0x2da32a){for(const _0x457644 of _0x8e01ff[_0x4d3a2e(0x1b3)]){_0x17d3e2[_0x4d3a2e(0x1af)](_0x457644),uid2UinMap[_0x457644[_0x4d3a2e(0x1bf)]]=_0x457644[_0x4d3a2e(0x1b5)];}}_0x548f69=!![],_0x32fb99[_0x4d3a2e(0x1bc)](_0xf6b6df,_0x17d3e2);};buddyChangeTasks[_0x5d83fd(0x1a2)](_0x32fb99[_0x5d83fd(0x1ad)](randomUUID),_0x32e5a0),napCatCore['session'][_0x5d83fd(0x1a0)]()['getBuddyList'](_0x2f4c84)['then'](_0x50f2a9=>{const _0x39d904=_0x5d83fd;_0x4ea5e1[_0x39d904(0x1b6)](logDebug,_0x4ea5e1[_0x39d904(0x1a7)],_0x50f2a9);});});}static async[_0xd4c679(0x1ac)](_0x47c73f,_0x41bf22){const _0x436052=_0xd4c679;napCatCore[_0x436052(0x1ab)][_0x436052(0x1a0)]()?.[_0x436052(0x1b0)]({'friendUid':_0x47c73f[_0x436052(0x1a8)],'reqTime':_0x47c73f[_0x436052(0x1a6)],'accept':_0x41bf22});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/group.d.ts b/src/core.lib/src/apis/group.d.ts index 468dd786..4a7a54e5 100644 --- a/src/core.lib/src/apis/group.d.ts +++ b/src/core.lib/src/apis/group.d.ts @@ -1,9 +1,33 @@ import { GroupMember, GroupRequestOperateTypes, GroupMemberRole, GroupNotify, Group } from '../entities'; export declare class NTQQGroupApi { static getGroups(forced?: boolean): Promise; + static CreatGroupFileFolder(groupCode: string, folderName: string): Promise; + static DelGroupFile(groupCode: string, files: string[]): Promise; + static DelGroupFileFolder(groupCode: string, folderId: string): Promise; static getSingleScreenNotifies(num: number): Promise; static getGroupMembers(groupQQ: string, num?: number): Promise>; static getGroupNotifies(): Promise; + static GetGroupFileCount(Gids: Array): Promise; static getGroupIgnoreNotifies(): Promise; static uploadGroupBulletinPic(GroupCode: string, imageurl: string): Promise{const _0x15b338=_0x4cf0ca,_0x1f6e4a={'ORvQu':function(_0x2d1f03,_0x3d418b,_0x1b7163,_0x4ceb80){return _0x2d1f03(_0x3d418b,_0x1b7163,_0x4ceb80);}};for(const [_0x1f7d71,_0x5d7858]of SingleScreenNotifiesTasks){_0x1f6e4a[_0x15b338(0x12d)](_0x5d7858,_0x8c9813,_0x5b566b,_0x41b662),groupMemberTasks[_0x15b338(0x13c)](_0x1f7d71);}},groupListener[_0x4cf0ca(0x13f)]=(_0x205d01,_0x1e246b)=>{const _0x13a486=_0x4cf0ca,_0x30f6d0={'dQwcQ':function(_0x3dc064,_0xcaf1ee,_0x3d8eda){return _0x3dc064(_0xcaf1ee,_0x3d8eda);}};for(const [_0x1c1b48,_0x2368d8]of groupMemberTasks){_0x30f6d0['dQwcQ'](_0x2368d8,_0x205d01,_0x1e246b),groupMemberTasks[_0x13a486(0x13c)](_0x1c1b48);}},setTimeout(()=>{const _0xda435c=_0x4cf0ca;napCatCore[_0xda435c(0x116)](()=>{const _0x32a8f6=_0xda435c;napCatCore[_0x32a8f6(0x140)](groupListener);});},0x64);export class NTQQGroupApi{static async['getGroups'](_0x46b890=![]){const _0x257be8=_0x4cf0ca,_0x319034={'xjdms':_0x257be8(0x132),'QNNjb':function(_0x1080ce,_0xbfa575,_0x2777bc){return _0x1080ce(_0xbfa575,_0x2777bc);},'sFwAr':_0x257be8(0x106),'oXAHE':function(_0x532266){return _0x532266();}};let _0x265343=![];return new Promise((_0x4bd0b9,_0x1b80a0)=>{const _0x398dab=_0x257be8;setTimeout(()=>{const _0x265694=_0x5d56;!_0x265343&&(logDebug(_0x319034['xjdms']),_0x1b80a0(_0x319034[_0x265694(0x146)]));},0x1388);const _0x46ae1e=(_0x2cef47,_0x3e73c9)=>{const _0x184c1a=_0x5d56;_0x265343=!![],_0x319034[_0x184c1a(0x13b)](logDebug,_0x319034[_0x184c1a(0x115)],_0x3e73c9),_0x4bd0b9(_0x3e73c9);};groupMemberTasks['set'](_0x319034['oXAHE'](randomUUID),_0x46ae1e),napCatCore[_0x398dab(0x105)]['getGroupService']()['getGroupList'](_0x46b890)[_0x398dab(0x143)]();});}static async['getSingleScreenNotifies'](_0x5a65bb){const _0x56d33f=_0x4cf0ca,_0x35ae8e={'tuuVH':function(_0x25105a,_0x15afd3){return _0x25105a(_0x15afd3);},'WAuhR':_0x56d33f(0x104),'pXAFu':function(_0x4141a7,_0x58a1c6,_0x48e949){return _0x4141a7(_0x58a1c6,_0x48e949);},'QDfxa':function(_0xe93f56){return _0xe93f56();}},_0x586401=napCatCore[_0x56d33f(0x105)][_0x56d33f(0x12b)]();return new Promise((_0x41e0d5,_0x59db1b)=>{const _0x38982a=_0x56d33f,_0x3e58c0={'lHrvI':function(_0x1382ca,_0x5af385){const _0x3057b4=_0x5d56;return _0x35ae8e[_0x3057b4(0x11f)](_0x1382ca,_0x5af385);}};let _0x41cb92=![];_0x35ae8e['pXAFu'](setTimeout,()=>{const _0x2c6930=_0x5d56;!_0x41cb92&&_0x35ae8e[_0x2c6930(0x11f)](_0x59db1b,_0x35ae8e['WAuhR']);},0x1388);const _0x1b6599=(_0x389bd8,_0x29a1c1,_0x5a9d62)=>{_0x41cb92=!![],_0x3e58c0['lHrvI'](_0x41e0d5,_0x5a9d62);};SingleScreenNotifiesTasks[_0x38982a(0x126)](_0x35ae8e[_0x38982a(0x107)](randomUUID),_0x1b6599),_0x586401[_0x38982a(0x10a)](![],'',_0x5a65bb);});}static async[_0x4cf0ca(0x145)](_0x2a33f4,_0x5cbbf7=0xbb8){const _0x19baa4=_0x4cf0ca,_0x47ce8a={'dnZwi':_0x19baa4(0x12c),'nWpsf':function(_0x5dad10,_0x5dcc27){return _0x5dad10!==_0x5dcc27;},'gTBna':_0x19baa4(0x136)},_0x5f0001=napCatCore[_0x19baa4(0x105)][_0x19baa4(0x12b)](),_0x20cca0=_0x5f0001[_0x19baa4(0x10e)](_0x2a33f4,_0x47ce8a[_0x19baa4(0x124)]),_0x483277=await _0x5f0001[_0x19baa4(0x142)](_0x20cca0,undefined,_0x5cbbf7);if(_0x47ce8a[_0x19baa4(0x113)](_0x483277[_0x19baa4(0x129)],0x0))throw _0x47ce8a[_0x19baa4(0x12f)]+_0x483277[_0x19baa4(0x11b)];return _0x483277[_0x19baa4(0x111)][_0x19baa4(0x134)][_0x19baa4(0x127)](_0x4f5d88=>{const _0x22e9cf=_0x19baa4;uid2UinMap[_0x4f5d88['uid']]=_0x4f5d88[_0x22e9cf(0x133)];}),_0x483277[_0x19baa4(0x111)]['infos'];}static async[_0x4cf0ca(0x114)](){}static async[_0x4cf0ca(0x139)](){}static async[_0x4cf0ca(0x125)](_0x2ac79c,_0x1cabae){const _0x3b5171=_0x4cf0ca,_0x24d533={'QPGyK':_0x3b5171(0x12e)},_0x45c341=(await NTQQUserApi[_0x3b5171(0x10b)]([_0x24d533[_0x3b5171(0x120)]]))[_0x24d533[_0x3b5171(0x120)]];return napCatCore['session'][_0x3b5171(0x12b)]()['uploadGroupBulletinPic'](_0x2ac79c,_0x45c341,_0x1cabae);}static async[_0x4cf0ca(0x10f)](_0x270cc3,_0x1ea97f,_0x1e5688){const _0x286fbb=_0x4cf0ca,_0x405781={'ocFAi':function(_0x41c1f6,_0x1aa31d){return _0x41c1f6||_0x1aa31d;}};return napCatCore[_0x286fbb(0x105)][_0x286fbb(0x12b)]()[_0x286fbb(0x10c)](![],{'operateType':_0x1ea97f,'targetMsg':{'seq':_0x270cc3[_0x286fbb(0x13a)],'type':_0x270cc3[_0x286fbb(0x11d)],'groupCode':_0x270cc3['group'][_0x286fbb(0x11a)],'postscript':_0x405781[_0x286fbb(0x122)](_0x1e5688,'')}});}static async[_0x4cf0ca(0x121)](_0x478659){const _0x2804d7=_0x4cf0ca;return napCatCore[_0x2804d7(0x105)][_0x2804d7(0x12b)]()[_0x2804d7(0x121)](_0x478659);}static async[_0x4cf0ca(0x144)](_0x3ada7a,_0x40c0d7,_0x451ab5=![],_0x1ad198=''){const _0x4fbdfd=_0x4cf0ca;return napCatCore[_0x4fbdfd(0x105)][_0x4fbdfd(0x12b)]()[_0x4fbdfd(0x144)](_0x3ada7a,_0x40c0d7,_0x451ab5,_0x1ad198);}static async['banMember'](_0x370392,_0x582245){const _0x382290=_0x4cf0ca;return napCatCore[_0x382290(0x105)]['getGroupService']()['setMemberShutUp'](_0x370392,_0x582245);}static async[_0x4cf0ca(0x112)](_0x3ee7fa,_0x1cdb38){const _0x5978b6=_0x4cf0ca;return napCatCore[_0x5978b6(0x105)][_0x5978b6(0x12b)]()[_0x5978b6(0x118)](_0x3ee7fa,_0x1cdb38);}static async[_0x4cf0ca(0x13e)](_0x3747ab,_0x45b594,_0x525d42){const _0x1c52f3=_0x4cf0ca;return napCatCore['session'][_0x1c52f3(0x12b)]()['modifyMemberCardName'](_0x3747ab,_0x45b594,_0x525d42);}static async['setMemberRole'](_0x3bc7cb,_0x30421c,_0x426011){const _0xe3acf6=_0x4cf0ca;return napCatCore[_0xe3acf6(0x105)][_0xe3acf6(0x12b)]()[_0xe3acf6(0x11c)](_0x3bc7cb,_0x30421c,_0x426011);}static async['setGroupName'](_0x2e4cf1,_0x1b5554){const _0x4ca5fc=_0x4cf0ca;return napCatCore[_0x4ca5fc(0x105)][_0x4ca5fc(0x12b)]()[_0x4ca5fc(0x109)](_0x2e4cf1,_0x1b5554,![]);}static async[_0x4cf0ca(0x12a)](_0x4ab9c6,_0x316af9,_0x129edf){}static async[_0x4cf0ca(0x131)](_0x41be18,_0x5d6238,_0xb003b1=undefined,_0x50e73e=0x0,_0x264607=0x0){const _0x397cf1=_0x4cf0ca,_0x25c02d={'cEBmW':'qun.qq.com','mOMHi':function(_0xa34a09,_0x45ecc5){return _0xa34a09(_0x45ecc5);}},_0x3c64e7=(await NTQQUserApi['getPSkey']([_0x25c02d['cEBmW']]))[_0x25c02d[_0x397cf1(0x128)]];let _0x127ee1={'text':_0x25c02d['mOMHi'](encodeURI,_0x5d6238),'picInfo':_0xb003b1,'oldFeedsId':'','pinned':_0x50e73e,'confirmRequired':_0x264607};return napCatCore[_0x397cf1(0x105)][_0x397cf1(0x12b)]()[_0x397cf1(0x131)](_0x41be18,_0x3c64e7,_0x127ee1);}} \ No newline at end of file +function _0x7a02(_0x10b429,_0x5ceec1){const _0x301bb9=_0x301b();return _0x7a02=function(_0x7a0239,_0x3d7952){_0x7a0239=_0x7a0239-0x82;let _0x3e9fde=_0x301bb9[_0x7a0239];return _0x3e9fde;},_0x7a02(_0x10b429,_0x5ceec1);}function _0x301b(){const _0x45cb4b=['result','171bfJbpA','ULkiU','vwlZr','TqUFW','createMemberListScene','getNextMemberList','setMemberRole','2383828dRLUbG','获取群列表超时','ChpeI','获取群列表完成','PNOiT','YruhZ','DelGroupFile','seq','quitGroup','getRichMediaService','fiCpg','banGroup','publishGroupBulletin','handleGroupRequest','setGroupShutUp','kickMember','onGroupSingleScreenNotifies','session','18pBdPel','GetGroupFileCount','34696AAsdul','delete','143568VGFjFs','获取群成员列表出错,','gayGy','getGroupService','3698270xfIXcR','haQIq','getGroups','1992275bBNEok','aBRGM','forEach','infos','uploadGroupBulletinPic','36nRfwZI','33eubnmI','RHnuu','modifyGroupName','modifyMemberCardName','addListener','errCode','uin','获取群系统消息列表超时','deleteGroupFile','groupCode','then','createGroupFolder','getPSkey','59479tQVUZI','deleteGroupFolder','errMsg','setMemberShutUp','operateSysNotify','modifyMemberRole','getSingleScreenNotifies','banMember','OKNyP','qun.qq.com','set','127122PsCbjk','OweeW'];_0x301b=function(){return _0x45cb4b;};return _0x301b();}const _0x145eb0=_0x7a02;(function(_0x20672d,_0x1bde0d){const _0x24f43d=_0x7a02,_0x22c0cc=_0x20672d();while(!![]){try{const _0x514035=-parseInt(_0x24f43d(0xa5))/0x1+-parseInt(_0x24f43d(0xc1))/0x2*(-parseInt(_0x24f43d(0xc5))/0x3)+parseInt(_0x24f43d(0xaf))/0x4+parseInt(_0x24f43d(0x87))/0x5+-parseInt(_0x24f43d(0x8c))/0x6*(-parseInt(_0x24f43d(0x9a))/0x7)+-parseInt(_0x24f43d(0xc3))/0x8*(-parseInt(_0x24f43d(0xa8))/0x9)+parseInt(_0x24f43d(0x84))/0xa*(-parseInt(_0x24f43d(0x8d))/0xb);if(_0x514035===_0x1bde0d)break;else _0x22c0cc['push'](_0x22c0cc['shift']());}catch(_0x23041c){_0x22c0cc['push'](_0x22c0cc['shift']());}}}(_0x301b,0x4e96a));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(),SingleScreenNotifiesTasks=new Map(),groupListener=new GroupListener();groupListener[_0x145eb0(0xbf)]=(_0x40b4fe,_0x33ce9b,_0x5c6892)=>{for(const [_0x8ca107,_0x4f1fa0]of SingleScreenNotifiesTasks){_0x4f1fa0(_0x40b4fe,_0x33ce9b,_0x5c6892),groupMemberTasks['delete'](_0x8ca107);}},groupListener['onGroupListUpdate']=(_0x15ee71,_0xd05c37)=>{const _0x6789ea=_0x145eb0,_0x25349a={'OweeW':function(_0x3c3057,_0x8f4799,_0x148d9f){return _0x3c3057(_0x8f4799,_0x148d9f);}};for(const [_0x1852cc,_0x374f4f]of groupMemberTasks){_0x25349a[_0x6789ea(0xa6)](_0x374f4f,_0x15ee71,_0xd05c37),groupMemberTasks[_0x6789ea(0xc4)](_0x1852cc);}},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{const _0x164b0d=_0x7a02;napCatCore[_0x164b0d(0x91)](groupListener);});},0x64);export class NTQQGroupApi{static async[_0x145eb0(0x86)](_0x3658ff=![]){const _0x53d36d=_0x145eb0,_0x32652c={'ChpeI':function(_0x184fd7,_0x11480a){return _0x184fd7(_0x11480a);},'vwlZr':function(_0x561d1d,_0x9a7c72,_0x79c8f7){return _0x561d1d(_0x9a7c72,_0x79c8f7);},'PNOiT':_0x53d36d(0xb2),'pAEfp':function(_0x2723a7,_0x50947a,_0x59451e){return _0x2723a7(_0x50947a,_0x59451e);},'NvBua':function(_0x503755){return _0x503755();}};let _0x12781c=![];return new Promise((_0x45bb56,_0x5cb77d)=>{const _0x440d6f=_0x53d36d;_0x32652c['pAEfp'](setTimeout,()=>{const _0x2f9b54=_0x7a02;!_0x12781c&&(logDebug(_0x2f9b54(0xb0)),_0x32652c[_0x2f9b54(0xb1)](_0x5cb77d,_0x2f9b54(0xb0)));},0x1388);const _0x52eef2=(_0x2668fe,_0x5015f7)=>{const _0x33138e=_0x7a02;_0x12781c=!![],_0x32652c[_0x33138e(0xaa)](logDebug,_0x32652c[_0x33138e(0xb3)],_0x5015f7),_0x32652c[_0x33138e(0xb1)](_0x45bb56,_0x5015f7);};groupMemberTasks['set'](_0x32652c['NvBua'](randomUUID),_0x52eef2),napCatCore[_0x440d6f(0xc0)][_0x440d6f(0x83)]()['getGroupList'](_0x3658ff)[_0x440d6f(0x97)]();});}static async['CreatGroupFileFolder'](_0x439c77,_0x5735a2){const _0x166855=_0x145eb0;return napCatCore['session'][_0x166855(0xb8)]()[_0x166855(0x98)](_0x439c77,_0x5735a2);}static async[_0x145eb0(0xb5)](_0x50672d,_0x2afa1c){const _0x5958cb=_0x145eb0;return napCatCore[_0x5958cb(0xc0)]['getRichMediaService']()[_0x5958cb(0x95)](_0x50672d,[0x66],_0x2afa1c);}static async['DelGroupFileFolder'](_0x3aca96,_0x223b19){const _0x3db4d7=_0x145eb0;return napCatCore[_0x3db4d7(0xc0)][_0x3db4d7(0xb8)]()[_0x3db4d7(0x9b)](_0x3aca96,_0x223b19);}static async[_0x145eb0(0xa0)](_0x31350f){const _0x58c37a=_0x145eb0,_0x18581a={'AQGOd':function(_0x5c2416,_0x5774b4){return _0x5c2416(_0x5774b4);},'ULkiU':_0x58c37a(0x94),'haQIq':function(_0x5580ff,_0xb2d610,_0xf30417){return _0x5580ff(_0xb2d610,_0xf30417);},'aBRGM':function(_0x14dc02){return _0x14dc02();}},_0x5e49f2=napCatCore[_0x58c37a(0xc0)]['getGroupService']();return new Promise((_0x258ce6,_0x399946)=>{const _0x3aee74=_0x58c37a,_0x55cd58={'YruhZ':function(_0x22af08,_0x1930e4){return _0x18581a['AQGOd'](_0x22af08,_0x1930e4);}};let _0x1218b7=![];_0x18581a[_0x3aee74(0x85)](setTimeout,()=>{const _0x4b2462=_0x3aee74;!_0x1218b7&&_0x18581a['AQGOd'](_0x399946,_0x18581a[_0x4b2462(0xa9)]);},0x1388);const _0x2c4662=(_0x166931,_0x56319d,_0x59ff9e)=>{const _0x498502=_0x3aee74;_0x1218b7=!![],_0x55cd58[_0x498502(0xb4)](_0x258ce6,_0x59ff9e);};SingleScreenNotifiesTasks[_0x3aee74(0xa4)](_0x18581a[_0x3aee74(0x88)](randomUUID),_0x2c4662),_0x5e49f2[_0x3aee74(0xa0)](![],'',_0x31350f);});}static async['getGroupMembers'](_0x9457c5,_0xa883a2=0xbb8){const _0x4cac42=_0x145eb0,_0x507416={'gayGy':'groupMemberList_MainWindow','OKNyP':function(_0x559870,_0x52aa73){return _0x559870!==_0x52aa73;},'yEdeR':function(_0x32a69d,_0x5d6475){return _0x32a69d+_0x5d6475;},'Sqzxz':_0x4cac42(0xc6)},_0x360d4e=napCatCore['session'][_0x4cac42(0x83)](),_0x5def93=_0x360d4e[_0x4cac42(0xac)](_0x9457c5,_0x507416[_0x4cac42(0x82)]),_0x2f5811=await _0x360d4e[_0x4cac42(0xad)](_0x5def93,undefined,_0xa883a2);if(_0x507416[_0x4cac42(0xa2)](_0x2f5811[_0x4cac42(0x92)],0x0))throw _0x507416['yEdeR'](_0x507416['Sqzxz'],_0x2f5811[_0x4cac42(0x9c)]);return _0x2f5811[_0x4cac42(0xa7)][_0x4cac42(0x8a)][_0x4cac42(0x89)](_0x5f0361=>{const _0x2a49c1=_0x4cac42;uid2UinMap[_0x5f0361['uid']]=_0x5f0361[_0x2a49c1(0x93)];}),_0x2f5811[_0x4cac42(0xa7)][_0x4cac42(0x8a)];}static async['getGroupNotifies'](){}static async[_0x145eb0(0xc2)](_0x5c6a15){const _0x4e0e7f=_0x145eb0;return napCatCore[_0x4e0e7f(0xc0)][_0x4e0e7f(0xb8)]()['batchGetGroupFileCount'](_0x5c6a15);}static async['getGroupIgnoreNotifies'](){}static async[_0x145eb0(0x8b)](_0xbdb1fa,_0x53a804){const _0x43dbd0=_0x145eb0,_0x381a38={'fiCpg':_0x43dbd0(0xa3)},_0x233195=(await NTQQUserApi[_0x43dbd0(0x99)]([_0x381a38[_0x43dbd0(0xb9)]]))[_0x381a38[_0x43dbd0(0xb9)]];return napCatCore['session']['getGroupService']()['uploadGroupBulletinPic'](_0xbdb1fa,_0x233195,_0x53a804);}static async[_0x145eb0(0xbc)](_0x213bd6,_0x4678a7,_0x3d0193){const _0x3b4431=_0x145eb0,_0x4a0f3d={'RHnuu':function(_0x346f5b,_0x21cd21){return _0x346f5b||_0x21cd21;}};return napCatCore['session'][_0x3b4431(0x83)]()[_0x3b4431(0x9e)](![],{'operateType':_0x4678a7,'targetMsg':{'seq':_0x213bd6[_0x3b4431(0xb6)],'type':_0x213bd6['type'],'groupCode':_0x213bd6['group'][_0x3b4431(0x96)],'postscript':_0x4a0f3d[_0x3b4431(0x8e)](_0x3d0193,'')}});}static async[_0x145eb0(0xb7)](_0x383840){const _0x28ab56=_0x145eb0;return napCatCore[_0x28ab56(0xc0)][_0x28ab56(0x83)]()[_0x28ab56(0xb7)](_0x383840);}static async[_0x145eb0(0xbe)](_0x5e199d,_0x3a309b,_0xf9c425=![],_0x43bbc6=''){const _0x438729=_0x145eb0;return napCatCore['session']['getGroupService']()[_0x438729(0xbe)](_0x5e199d,_0x3a309b,_0xf9c425,_0x43bbc6);}static async[_0x145eb0(0xa1)](_0x9c5ce,_0x30b393){const _0x3f8d7c=_0x145eb0;return napCatCore[_0x3f8d7c(0xc0)][_0x3f8d7c(0x83)]()[_0x3f8d7c(0x9d)](_0x9c5ce,_0x30b393);}static async[_0x145eb0(0xba)](_0x3d5dab,_0x1c4a44){const _0x2b3716=_0x145eb0;return napCatCore[_0x2b3716(0xc0)][_0x2b3716(0x83)]()[_0x2b3716(0xbd)](_0x3d5dab,_0x1c4a44);}static async['setMemberCard'](_0x45cacf,_0x2484e1,_0x1bd386){const _0xc4316d=_0x145eb0;return napCatCore[_0xc4316d(0xc0)]['getGroupService']()[_0xc4316d(0x90)](_0x45cacf,_0x2484e1,_0x1bd386);}static async[_0x145eb0(0xae)](_0x31027f,_0x5489a1,_0x3224cd){const _0x5e97c0=_0x145eb0;return napCatCore[_0x5e97c0(0xc0)][_0x5e97c0(0x83)]()[_0x5e97c0(0x9f)](_0x31027f,_0x5489a1,_0x3224cd);}static async['setGroupName'](_0x343d9f,_0x4308c4){const _0x46519e=_0x145eb0;return napCatCore[_0x46519e(0xc0)][_0x46519e(0x83)]()[_0x46519e(0x8f)](_0x343d9f,_0x4308c4,![]);}static async['setGroupTitle'](_0x5eea7b,_0x57a558,_0x1d14e6){}static async[_0x145eb0(0xbb)](_0x384547,_0x2cb83c,_0x352967=undefined,_0x4d051c=0x0,_0x36e68d=0x0){const _0x3eb6f2=_0x145eb0,_0x10bf5d={'VSZVL':'qun.qq.com','TqUFW':function(_0x3ed013,_0x120864){return _0x3ed013(_0x120864);}},_0x49f4f3=(await NTQQUserApi[_0x3eb6f2(0x99)]([_0x10bf5d['VSZVL']]))[_0x10bf5d['VSZVL']];let _0x201934={'text':_0x10bf5d[_0x3eb6f2(0xab)](encodeURI,_0x2cb83c),'picInfo':_0x352967,'oldFeedsId':'','pinned':_0x4d051c,'confirmRequired':_0x36e68d};return napCatCore[_0x3eb6f2(0xc0)]['getGroupService']()[_0x3eb6f2(0xbb)](_0x384547,_0x49f4f3,_0x201934);}} \ 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 e6e28925..da782ef9 100644 --- a/src/core.lib/src/apis/index.js +++ b/src/core.lib/src/apis/index.js @@ -1 +1 @@ -function _0x1945(_0x443539,_0x43d363){var _0x324caa=_0x324c();return _0x1945=function(_0x1945e3,_0x3013e6){_0x1945e3=_0x1945e3-0x10c;var _0x43c094=_0x324caa[_0x1945e3];return _0x43c094;},_0x1945(_0x443539,_0x43d363);}(function(_0x1891fb,_0x421bf1){var _0x1579c2=_0x1945,_0x403871=_0x1891fb();while(!![]){try{var _0x171503=parseInt(_0x1579c2(0x115))/0x1*(parseInt(_0x1579c2(0x110))/0x2)+-parseInt(_0x1579c2(0x114))/0x3*(parseInt(_0x1579c2(0x10e))/0x4)+parseInt(_0x1579c2(0x10d))/0x5+-parseInt(_0x1579c2(0x112))/0x6+parseInt(_0x1579c2(0x113))/0x7+-parseInt(_0x1579c2(0x111))/0x8+-parseInt(_0x1579c2(0x10c))/0x9*(parseInt(_0x1579c2(0x10f))/0xa);if(_0x171503===_0x421bf1)break;else _0x403871['push'](_0x403871['shift']());}catch(_0x11b9b4){_0x403871['push'](_0x403871['shift']());}}}(_0x324c,0xaedec));export*from'./file';export*from'./friend';function _0x324c(){var _0x3393b3=['735957cEOrkH','963635bTkmgi','29060lKHZhu','60ueqnZL','148ThuoCA','350392riXLlI','5559306qKVHxm','7682710KtBrbD','9qiABbX','12281AhGnws'];_0x324c=function(){return _0x3393b3;};return _0x324c();}export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi';export*from'./sign';export*from'./system'; \ No newline at end of file +function _0x30de(){var _0x4dfdea=['30892fYcrRX','1978106FrErvJ','6017192UzyTuC','1143429tFSDZD','801784hQOjok','1050YkgOKc','32736447tmErVs','36awLbjC','1516245WndRLq'];_0x30de=function(){return _0x4dfdea;};return _0x30de();}(function(_0x1de97e,_0x53b6d7){var _0x5147ea=_0x3127,_0x10a0e3=_0x1de97e();while(!![]){try{var _0x49fe07=-parseInt(_0x5147ea(0xa3))/0x1+parseInt(_0x5147ea(0xa0))/0x2+parseInt(_0x5147ea(0x9e))/0x3+parseInt(_0x5147ea(0x9f))/0x4*(-parseInt(_0x5147ea(0xa4))/0x5)+-parseInt(_0x5147ea(0x9d))/0x6*(parseInt(_0x5147ea(0xa2))/0x7)+-parseInt(_0x5147ea(0xa1))/0x8+parseInt(_0x5147ea(0xa5))/0x9;if(_0x49fe07===_0x53b6d7)break;else _0x10a0e3['push'](_0x10a0e3['shift']());}catch(_0x3d504e){_0x10a0e3['push'](_0x10a0e3['shift']());}}}(_0x30de,0xee486));export*from'./file';export*from'./friend';export*from'./group';function _0x3127(_0x110d8c,_0x21de71){var _0x30de91=_0x30de();return _0x3127=function(_0x3127d4,_0x291243){_0x3127d4=_0x3127d4-0x9d;var _0x30a550=_0x30de91[_0x3127d4];return _0x30a550;},_0x3127(_0x110d8c,_0x21de71);}export*from'./msg';export*from'./user';export*from'./webapi';export*from'./sign';export*from'./system'; \ No newline at end of file diff --git a/src/core.lib/src/apis/msg.d.ts b/src/core.lib/src/apis/msg.d.ts index 5cd7085f..8a5a71b7 100644 --- a/src/core.lib/src/apis/msg.d.ts +++ b/src/core.lib/src/apis/msg.d.ts @@ -1,4 +1,4 @@ -import { Peer, RawMessage, SendMessageElement } from '@/core/entities'; +import { GetFileListParam, Peer, RawMessage, SendMessageElement } from '@/core/entities'; import { GeneralCallResult } from '@/core/services/common'; export declare class NTQQMsgApi { static setEmojiLike(peer: Peer, msgSeq: string, emojiId: string, set?: boolean): Promise; @@ -14,6 +14,12 @@ export declare class NTQQMsgApi { static activateChat(peer: Peer): Promise; static activateChatAndGetHistory(peer: Peer): Promise; static setMsgRead(peer: Peer): Promise; + static getGroupFileList(GroupCode: string, params: GetFileListParam): Promise<{ + FileList: Array; + totalSpace: number; + usedSpace: number; + allUpload: boolean; + }>; static getMsgHistory(peer: Peer, msgId: string, count: number): Promise; diff --git a/src/core.lib/src/apis/msg.js b/src/core.lib/src/apis/msg.js index 1e693a25..0a6a3b48 100644 --- a/src/core.lib/src/apis/msg.js +++ b/src/core.lib/src/apis/msg.js @@ -1 +1 @@ -const _0x50694c=_0x553e;function _0x553e(_0x455715,_0x39b528){const _0x20115a=_0x2011();return _0x553e=function(_0x553ea8,_0x14ec00){_0x553ea8=_0x553ea8-0x7a;let _0x9f4fa0=_0x20115a[_0x553ea8];return _0x9f4fa0;},_0x553e(_0x455715,_0x39b528);}(function(_0x446bef,_0x523c60){const _0x1f6aa6=_0x553e,_0x16cff1=_0x446bef();while(!![]){try{const _0x59f032=-parseInt(_0x1f6aa6(0x9b))/0x1*(-parseInt(_0x1f6aa6(0xaa))/0x2)+parseInt(_0x1f6aa6(0x86))/0x3*(-parseInt(_0x1f6aa6(0xa7))/0x4)+-parseInt(_0x1f6aa6(0x92))/0x5+-parseInt(_0x1f6aa6(0x83))/0x6*(-parseInt(_0x1f6aa6(0x8b))/0x7)+parseInt(_0x1f6aa6(0xae))/0x8+-parseInt(_0x1f6aa6(0xb9))/0x9+-parseInt(_0x1f6aa6(0xb3))/0xa*(-parseInt(_0x1f6aa6(0x7a))/0xb);if(_0x59f032===_0x523c60)break;else _0x16cff1['push'](_0x16cff1['shift']());}catch(_0x1f57ae){_0x16cff1['push'](_0x16cff1['shift']());}}}(_0x2011,0x8fbef));function _0x2011(){const _0x266698=['getMsgHistory','QJegA','recallMsg','QlNWU','359880eDFRAw','getMsgsByMsgId','catch','ATYIp','onMsgInfoListUpdate','length','3180276QLfOkF','uwOXf','55dndekj','delete','vsAbc','getMsgService','fqIcg','uid','addListener','forwardMsg','fetchRecentContact','132QBQZyt','getMultiMsg','setMsgRead','491442UxxVSD','msgId','com.tencent.multimsg','getMsgsIncludeSelf','multiForwardMsgWithComment','316694LulgxK','MleMb','then','sendMsg','JuHuZ','QkUXI','MTJjW','491480rLAMwj','nick','IIghW','activateChatAndGetHistory','session','set','arkElement','chatType','HrouL','1hNHstg','setEmojiLike','peerUid','发送超时','lTqIQ','onLoginSuccess','KSFFC','forEach','AhuhI','nWZPe','BSQqP','getMsgsBySeqAndCount','16eVtIxR','setMsgEmojiLikes','elements','558582TkHyya','parse','MIRwH','转发消息超时','1929152OMzllx'];_0x2011=function(){return _0x266698;};return _0x2011();}import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener['onAddSendMsg']=_0x5ac849=>{const _0x44e705=_0x553e,_0x264f84={'QlNWU':function(_0x1c1b19,_0xd42c10){return _0x1c1b19(_0xd42c10);},'AhuhI':function(_0x4f03c2,_0x323861){return _0x4f03c2 instanceof _0x323861;}};for(const [_0x6b2cd0,_0x2a79b8]of sentMsgTasks){_0x264f84[_0x44e705(0xb2)](_0x2a79b8,_0x5ac849),sentMsgTasks[_0x44e705(0x7b)](_0x6b2cd0);}if(sendMessagePool[_0x5ac849['peerUid']]){const _0xc48de9=sendMessagePool[_0x5ac849[_0x44e705(0x9d)]]?.(_0x5ac849);_0x264f84[_0x44e705(0xa3)](_0xc48de9,Promise)&&_0xc48de9['then']()[_0x44e705(0xb5)](logError);}},msgListener[_0x50694c(0xb7)]=_0x359bc5=>{const _0x405c1b=_0x50694c,_0x3d277c={'KSFFC':function(_0x5e3cc5,_0x2e4ab5){return _0x5e3cc5(_0x2e4ab5);},'HrouL':function(_0x465f45,_0x1e9743){return _0x465f45 instanceof _0x1e9743;},'ATYIp':function(_0x2862c5,_0x4f23ef){return _0x2862c5(_0x4f23ef);}};_0x359bc5[_0x405c1b(0xa2)](_0x5b43e5=>{const _0x253824=_0x405c1b;new Promise((_0x48589a,_0x294bad)=>{const _0x4fa58e=_0x553e;for(const _0xb59e22 in sendSuccessCBMap){const _0x580ae5=sendSuccessCBMap[_0xb59e22],_0x1e8c5d=_0x3d277c[_0x4fa58e(0xa1)](_0x580ae5,_0x5b43e5),_0x28ef49=_0x966db0=>{_0x966db0&&delete sendSuccessCBMap[_0xb59e22];};_0x3d277c[_0x4fa58e(0x9a)](_0x1e8c5d,Promise)?_0x1e8c5d[_0x4fa58e(0x8d)](_0x28ef49):_0x3d277c[_0x4fa58e(0xb6)](_0x28ef49,_0x1e8c5d);}})[_0x253824(0x8d)]()[_0x253824(0xb5)](log);});},setTimeout(()=>{const _0x5f5a9b=_0x50694c;napCatCore[_0x5f5a9b(0xa0)](()=>{const _0x43e276=_0x5f5a9b;napCatCore[_0x43e276(0x80)](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x50694c(0x9c)](_0x188005,_0x5c7d11,_0x378cdc,_0x3d8e85=!![]){const _0x1fd821=_0x50694c,_0x2958c5={'cDrBe':function(_0x1ee26a,_0x34b318){return _0x1ee26a>_0x34b318;}};return _0x378cdc=_0x378cdc['toString'](),napCatCore['session'][_0x1fd821(0x7d)]()[_0x1fd821(0xa8)](_0x188005,_0x5c7d11,_0x378cdc,_0x2958c5['cDrBe'](_0x378cdc[_0x1fd821(0xb8)],0x3)?'2':'1',_0x3d8e85);}static async[_0x50694c(0x84)](_0xf4a64d,_0x549aee,_0x5b7f8c){const _0x577986=_0x50694c;return napCatCore['session'][_0x577986(0x7d)]()[_0x577986(0x84)](_0xf4a64d,_0x549aee,_0x5b7f8c);}static async[_0x50694c(0xb4)](_0x169d88,_0x578db3){const _0x581910=_0x50694c;return await napCatCore[_0x581910(0x96)]['getMsgService']()['getMsgsByMsgId'](_0x169d88,_0x578db3);}static async[_0x50694c(0xa6)](_0x4fe4f8,_0x10f2a4,_0x10656d,_0x43f041,_0x2159e8){return await napCatCore['session']['getMsgService']()['getMsgsBySeqAndCount'](_0x4fe4f8,_0x10f2a4,_0x10656d,_0x43f041,_0x2159e8);}static async['activateChat'](_0x73e618){}static async[_0x50694c(0x95)](_0xcbf135){}static async['setMsgRead'](_0x31f2b1){const _0x4ea031=_0x50694c;return napCatCore[_0x4ea031(0x96)]['getMsgService']()[_0x4ea031(0x85)](_0x31f2b1);}static async[_0x50694c(0xaf)](_0xb4c0d7,_0x2c486f,_0x23c50d){const _0x2baafa=_0x50694c;return napCatCore['session'][_0x2baafa(0x7d)]()[_0x2baafa(0x89)](_0xb4c0d7,_0x2c486f,_0x23c50d,!![]);}static async[_0x50694c(0x82)](){}static async[_0x50694c(0xb1)](_0x307bbf,_0x4e671d){const _0xb4ba75=_0x50694c;await napCatCore[_0xb4ba75(0x96)][_0xb4ba75(0x7d)]()[_0xb4ba75(0xb1)]({'chatType':_0x307bbf[_0xb4ba75(0x99)],'peerUid':_0x307bbf[_0xb4ba75(0x9d)]},_0x4e671d);}static async[_0x50694c(0x8e)](_0x41b74b,_0x2e8741,_0x34058c=!![],_0x5a662e=0x2710){const _0x1c1e5f=_0x50694c,_0x54147e={'lTqIQ':function(_0x2df85a,_0x566535){return _0x2df85a(_0x566535);},'MleMb':function(_0x939bbf){return _0x939bbf();},'QkUXI':function(_0x17d5c9,_0x25071c){return _0x17d5c9===_0x25071c;},'fqIcg':function(_0x554575,_0x57de86){return _0x554575(_0x57de86);},'IIghW':_0x1c1e5f(0x9e),'BSQqP':function(_0x344654){return _0x344654();}},_0xbd31cd=_0x41b74b['peerUid'];let _0x314b87=0x0;const _0x4d5843=async()=>{const _0x5d395a=_0x1c1e5f;if(_0x314b87>_0x5a662e)throw _0x5d395a(0x9e);const _0x3eb299=sendMessagePool[_0x41b74b[_0x5d395a(0x9d)]];if(_0x3eb299)return await _0x54147e[_0x5d395a(0x9f)](sleep,0x1f4),_0x314b87+=0x1f4,await _0x54147e[_0x5d395a(0x8c)](_0x4d5843);else return;};return await _0x54147e[_0x1c1e5f(0xa5)](_0x4d5843),new Promise((_0x6b2062,_0x3ea2de)=>{const _0x58f3d7=_0x1c1e5f,_0x15595d={'uwOXf':_0x54147e[_0x58f3d7(0x94)]};let _0x31cdc9=![],_0x3e08ee=null;const _0x3e51a8=_0x54147e['BSQqP'](randomUUID);sendSuccessCBMap[_0x3e51a8]=_0x1380a4=>{const _0x15cd9e=_0x58f3d7;if(_0x1380a4[_0x15cd9e(0x87)]===_0x3e08ee?.[_0x15cd9e(0x87)]){if(_0x54147e[_0x15cd9e(0x90)](_0x1380a4['sendStatus'],0x2))return delete sendSuccessCBMap[_0x3e51a8],_0x31cdc9=!![],_0x54147e[_0x15cd9e(0x7e)](_0x6b2062,_0x1380a4),!![];return![];}return![];},sendMessagePool[_0xbd31cd]=async _0x174c23=>{delete sendMessagePool[_0xbd31cd],_0x3e08ee=_0x174c23;},setTimeout(()=>{const _0x4aa876=_0x58f3d7;if(_0x31cdc9)return;delete sendMessagePool[_0xbd31cd],delete sendSuccessCBMap[_0x3e51a8],_0x3ea2de(_0x15595d[_0x4aa876(0xba)]);},_0x5a662e);const _0x1c0fea=napCatCore[_0x58f3d7(0x96)][_0x58f3d7(0x7d)]()[_0x58f3d7(0x8e)]('0',_0x41b74b,_0x2e8741,new Map());});}static async[_0x50694c(0x81)](_0x2ce536,_0x2e1f86,_0x5cd82d){const _0x341ec2=_0x50694c;return napCatCore[_0x341ec2(0x96)][_0x341ec2(0x7d)]()['forwardMsg'](_0x5cd82d,_0x2ce536,[_0x2e1f86],new Map());}static async['multiForwardMsg'](_0x5b0f3e,_0x520f9e,_0x4bf817){const _0x470286=_0x50694c,_0x577643={'vsAbc':function(_0x27e268,_0x17f0de){return _0x27e268!=_0x17f0de;},'nWZPe':_0x470286(0x88),'TzDmY':function(_0xefb82a,_0x52a5f7){return _0xefb82a==_0x52a5f7;},'JuHuZ':function(_0x1a6168,_0x46f9ec){return _0x1a6168==_0x46f9ec;},'MTJjW':function(_0x42ba2f,_0x1e5ca3){return _0x42ba2f(_0x1e5ca3);},'QJegA':function(_0x13952c){return _0x13952c();},'MIRwH':function(_0x5a88c9,_0x22b314,_0x434d22){return _0x5a88c9(_0x22b314,_0x434d22);}},_0x13425c=_0x4bf817['map'](_0x59b6d2=>{const _0x527bee=_0x470286;return{'msgId':_0x59b6d2,'senderShowName':selfInfo[_0x527bee(0x93)]};});return new Promise((_0x5d1bfa,_0x2ed39d)=>{const _0x1d2631=_0x470286;let _0x2e9353=![];const _0x59f8a5=_0xdb4b3d=>{const _0xae33a1=_0x553e,_0x63d5de=_0xdb4b3d[_0xae33a1(0xa9)]['find'](_0x158559=>_0x158559[_0xae33a1(0x98)]);if(!_0x63d5de)return;const _0x5930ea=JSON[_0xae33a1(0xab)](_0x63d5de[_0xae33a1(0x98)]['bytesData']);if(_0x577643[_0xae33a1(0x7c)](_0x5930ea['app'],_0x577643[_0xae33a1(0xa4)]))return;_0x577643['TzDmY'](_0xdb4b3d[_0xae33a1(0x9d)],_0x520f9e[_0xae33a1(0x9d)])&&_0x577643[_0xae33a1(0x8f)](_0xdb4b3d['senderUid'],selfInfo[_0xae33a1(0x7f)])&&(_0x2e9353=!![],_0x577643[_0xae33a1(0x91)](_0x5d1bfa,_0xdb4b3d));};sentMsgTasks[_0x1d2631(0x97)](_0x577643[_0x1d2631(0xb0)](randomUUID),_0x59f8a5),_0x577643[_0x1d2631(0xac)](setTimeout,()=>{const _0x32daf8=_0x1d2631;!_0x2e9353&&_0x2ed39d(_0x32daf8(0xad));},0x1388),napCatCore[_0x1d2631(0x96)][_0x1d2631(0x7d)]()[_0x1d2631(0x8a)](_0x13425c,_0x5b0f3e,_0x520f9e,[],new Map());});}} \ No newline at end of file +const _0x1c8b79=_0xdca5;(function(_0x365349,_0x25cb60){const _0xdcd108=_0xdca5,_0x2657b7=_0x365349();while(!![]){try{const _0x23c33e=-parseInt(_0xdcd108(0x142))/0x1+-parseInt(_0xdcd108(0x102))/0x2+-parseInt(_0xdcd108(0x10d))/0x3+-parseInt(_0xdcd108(0x108))/0x4+-parseInt(_0xdcd108(0x112))/0x5*(-parseInt(_0xdcd108(0x12e))/0x6)+parseInt(_0xdcd108(0x122))/0x7*(-parseInt(_0xdcd108(0x140))/0x8)+parseInt(_0xdcd108(0x11c))/0x9*(parseInt(_0xdcd108(0x139))/0xa);if(_0x23c33e===_0x25cb60)break;else _0x2657b7['push'](_0x2657b7['shift']());}catch(_0x1961f2){_0x2657b7['push'](_0x2657b7['shift']());}}}(_0x3864,0xbd858));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},GroupFileInfoUpdateTasks=new Map(),sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener[_0x1c8b79(0x10a)]=_0x47cb11=>{const _0x2d8a93=_0x1c8b79,_0x154c99={'doaLH':function(_0x797345,_0x310ad2){return _0x797345(_0x310ad2);}};for(const [_0x4c72ed,_0x4e1c3f]of GroupFileInfoUpdateTasks){_0x154c99[_0x2d8a93(0x13c)](_0x4e1c3f,_0x47cb11),GroupFileInfoUpdateTasks[_0x2d8a93(0x13d)](_0x4c72ed);}},msgListener[_0x1c8b79(0x104)]=_0x528695=>{const _0x1644ea=_0x1c8b79;for(const [_0x9f98b8,_0x4103f7]of sentMsgTasks){_0x4103f7(_0x528695),sentMsgTasks[_0x1644ea(0x13d)](_0x9f98b8);}if(sendMessagePool[_0x528695[_0x1644ea(0x120)]]){const _0x110115=sendMessagePool[_0x528695['peerUid']]?.(_0x528695);_0x110115 instanceof Promise&&_0x110115[_0x1644ea(0x100)]()[_0x1644ea(0x113)](logError);}},msgListener[_0x1c8b79(0x12d)]=_0x3ed505=>{const _0x2d7cf8={'WQJvs':function(_0x41bf26,_0x21b440){return _0x41bf26(_0x21b440);},'GWsFc':function(_0x30b33f,_0x35e046){return _0x30b33f(_0x35e046);}};_0x3ed505['forEach'](_0x3c8696=>{const _0x666133=_0xdca5,_0x29c144={'RbcEI':function(_0x39285d,_0x50d6bc){const _0x5e3127=_0xdca5;return _0x2d7cf8[_0x5e3127(0x127)](_0x39285d,_0x50d6bc);},'pEVZB':function(_0x2254a1,_0x4600cc){return _0x2254a1 instanceof _0x4600cc;},'YQvhd':function(_0x1d5554,_0x5105be){const _0x43f38d=_0xdca5;return _0x2d7cf8[_0x43f38d(0x13e)](_0x1d5554,_0x5105be);}};new Promise((_0x377ac0,_0x1d6c32)=>{const _0x11cfbc=_0xdca5;for(const _0x1586e3 in sendSuccessCBMap){const _0x58af7b=sendSuccessCBMap[_0x1586e3],_0xd368a2=_0x29c144[_0x11cfbc(0x129)](_0x58af7b,_0x3c8696),_0x237e97=_0x25360b=>{_0x25360b&&delete sendSuccessCBMap[_0x1586e3];};_0x29c144[_0x11cfbc(0x125)](_0xd368a2,Promise)?_0xd368a2['then'](_0x237e97):_0x29c144['YQvhd'](_0x237e97,_0xd368a2);}})[_0x666133(0x100)]()['catch'](log);});},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{napCatCore['addListener'](msgListener);});},0x64);function _0xdca5(_0x2f7c08,_0x2cc148){const _0x3864c2=_0x3864();return _0xdca5=function(_0xdca511,_0x4d0a00){_0xdca511=_0xdca511-0x100;let _0x83687d=_0x3864c2[_0xdca511];return _0x83687d;},_0xdca5(_0x2f7c08,_0x2cc148);}function _0x3864(){const _0x43df75=['session','获取群文件列表超时','bytesData','arkElement','27EATSEr','setEmojiLike','item','multiForwardMsgWithComment','peerUid','chatType','2807yqZsaX','find','com.tencent.multimsg','pEVZB','getMsgsBySeqAndCount','WQJvs','sendMsg','RbcEI','echvP','tdDnK','senderUid','onMsgInfoListUpdate','3048LYtkwu','IedKH','FileList','OsTIi','parse','CRKKA','uid','getMsgService','hTSWR','activateChat','getMsgHistory','9736290lLdXBh','nick','forwardMsg','doaLH','delete','GWsFc','pJKAH','14632WmpJDB','recallMsg','558710yOEbJJ','groupSpaceResult','发送超时','multiForwardMsg','then','getMultiMsg','69026gZhmRe','app','onAddSendMsg','getMsgsByMsgId','allUpload','setMsgEmojiLikes','2936052fUecbh','setMsgRead','onGroupFileInfoUpdate','usedSpace','转发消息超时','253350nQkfaA','getGroupFileList','toString','svkuE','map','5fRgMMa','catch','length','oFQcn','totalSpace','msgId'];_0x3864=function(){return _0x43df75;};return _0x3864();}export class NTQQMsgApi{static async[_0x1c8b79(0x11d)](_0x491f25,_0x40a50f,_0x22ba94,_0x2e4007=!![]){const _0xd3f905=_0x1c8b79,_0x415f72={'echvP':function(_0x26a026,_0x3c760f){return _0x26a026>_0x3c760f;}};return _0x22ba94=_0x22ba94[_0xd3f905(0x10f)](),napCatCore[_0xd3f905(0x118)]['getMsgService']()[_0xd3f905(0x107)](_0x491f25,_0x40a50f,_0x22ba94,_0x415f72[_0xd3f905(0x12a)](_0x22ba94[_0xd3f905(0x114)],0x3)?'2':'1',_0x2e4007);}static async[_0x1c8b79(0x101)](_0x451bf4,_0x363852,_0x54daeb){const _0x483245=_0x1c8b79;return napCatCore[_0x483245(0x118)][_0x483245(0x135)]()['getMultiMsg'](_0x451bf4,_0x363852,_0x54daeb);}static async['getMsgsByMsgId'](_0x5f276f,_0x4127a1){const _0x591590=_0x1c8b79;return await napCatCore['session'][_0x591590(0x135)]()[_0x591590(0x105)](_0x5f276f,_0x4127a1);}static async[_0x1c8b79(0x126)](_0x15cf52,_0x2bef38,_0x412cd3,_0x3fa7f1,_0x469b1f){const _0xd8ac8=_0x1c8b79;return await napCatCore[_0xd8ac8(0x118)]['getMsgService']()[_0xd8ac8(0x126)](_0x15cf52,_0x2bef38,_0x412cd3,_0x3fa7f1,_0x469b1f);}static async[_0x1c8b79(0x137)](_0x344947){}static async['activateChatAndGetHistory'](_0x57c500){}static async[_0x1c8b79(0x109)](_0x19d93d){const _0x4fe633=_0x1c8b79;return napCatCore[_0x4fe633(0x118)][_0x4fe633(0x135)]()['setMsgRead'](_0x19d93d);}static async[_0x1c8b79(0x10e)](_0x2c72f5,_0x6d6cda){const _0x31ca6a={'oFQcn':function(_0xf37063,_0x3a9ca8,_0x2b76cb){return _0xf37063(_0x3a9ca8,_0x2b76cb);},'nrcza':function(_0x56a940){return _0x56a940();}};return new Promise(async(_0x2b4929,_0x1b4bc7)=>{const _0x305759=_0xdca5;let _0xf84ae1=![],_0x36cc7a={};_0x31ca6a[_0x305759(0x115)](setTimeout,()=>{const _0x180510=_0x305759;!_0xf84ae1&&_0x1b4bc7(_0x180510(0x119));},0x1388);const _0x671e92=_0x169984=>{const _0x21fe5f=_0x305759;_0xf84ae1=!![],_0x36cc7a[_0x21fe5f(0x130)]=_0x169984[_0x21fe5f(0x11e)],_0x2b4929(_0x36cc7a);};GroupFileInfoUpdateTasks['set'](_0x31ca6a['nrcza'](randomUUID),_0x671e92);const _0x1b3f8f=await napCatCore['session']['getRichMediaService']()['getGroupFileList'](_0x2c72f5,_0x6d6cda);_0x36cc7a[_0x305759(0x106)]=_0x1b3f8f[_0x305759(0x143)][_0x305759(0x106)],_0x36cc7a[_0x305759(0x116)]=_0x1b3f8f[_0x305759(0x143)][_0x305759(0x116)],_0x36cc7a[_0x305759(0x10b)]=_0x1b3f8f[_0x305759(0x143)][_0x305759(0x10b)];});}static async[_0x1c8b79(0x138)](_0x2ab437,_0x3e11a9,_0x1589df){const _0x40b7ae=_0x1c8b79;return napCatCore[_0x40b7ae(0x118)][_0x40b7ae(0x135)]()['getMsgsIncludeSelf'](_0x2ab437,_0x3e11a9,_0x1589df,!![]);}static async['fetchRecentContact'](){}static async[_0x1c8b79(0x141)](_0x50ed4f,_0x4a5dad){const _0x517734=_0x1c8b79;await napCatCore[_0x517734(0x118)]['getMsgService']()[_0x517734(0x141)]({'chatType':_0x50ed4f[_0x517734(0x121)],'peerUid':_0x50ed4f[_0x517734(0x120)]},_0x4a5dad);}static async[_0x1c8b79(0x128)](_0x41a92b,_0x585c16,_0x52e474=!![],_0x35efc1=0x2710){const _0x1ca3b5=_0x1c8b79,_0x2358d8={'CRKKA':_0x1ca3b5(0x144),'pmbtb':function(_0x3a6349,_0x4bb874){return _0x3a6349(_0x4bb874);},'svkuE':function(_0x3b63d4){return _0x3b63d4();},'hTSWR':function(_0x28a58b){return _0x28a58b();}},_0x205f59=_0x41a92b['peerUid'];let _0x3f1d0f=0x0;const _0x1a2bd6=async()=>{const _0x3b303c=_0x1ca3b5;if(_0x3f1d0f>_0x35efc1)throw _0x2358d8[_0x3b303c(0x133)];const _0x55f5cd=sendMessagePool[_0x41a92b['peerUid']];if(_0x55f5cd)return await _0x2358d8['pmbtb'](sleep,0x1f4),_0x3f1d0f+=0x1f4,await _0x2358d8[_0x3b303c(0x110)](_0x1a2bd6);else return;};return await _0x2358d8[_0x1ca3b5(0x136)](_0x1a2bd6),new Promise((_0x33fdbf,_0x19c114)=>{const _0x5c852c=_0x1ca3b5,_0x4c95a2={'YHWOh':function(_0x5718e5,_0x542bcf){return _0x5718e5===_0x542bcf;}};let _0x7ab065=![],_0x2c86a4=null;const _0x1257fc=_0x2358d8[_0x5c852c(0x110)](randomUUID);sendSuccessCBMap[_0x1257fc]=_0x58f591=>{const _0x85ff8f=_0x5c852c;if(_0x58f591[_0x85ff8f(0x117)]===_0x2c86a4?.[_0x85ff8f(0x117)]){if(_0x4c95a2['YHWOh'](_0x58f591['sendStatus'],0x2))return delete sendSuccessCBMap[_0x1257fc],_0x7ab065=!![],_0x33fdbf(_0x58f591),!![];return![];}return![];},sendMessagePool[_0x205f59]=async _0x53ed47=>{delete sendMessagePool[_0x205f59],_0x2c86a4=_0x53ed47;},setTimeout(()=>{const _0x184db3=_0x5c852c;if(_0x7ab065)return;delete sendMessagePool[_0x205f59],delete sendSuccessCBMap[_0x1257fc],_0x19c114(_0x184db3(0x144));},_0x35efc1);const _0x10b971=napCatCore[_0x5c852c(0x118)][_0x5c852c(0x135)]()[_0x5c852c(0x128)]('0',_0x41a92b,_0x585c16,new Map());});}static async[_0x1c8b79(0x13b)](_0x4ec643,_0xb26c18,_0x510954){const _0x45507c=_0x1c8b79;return napCatCore['session'][_0x45507c(0x135)]()['forwardMsg'](_0x510954,_0x4ec643,[_0xb26c18],new Map());}static async[_0x1c8b79(0x145)](_0x4e636e,_0x381160,_0x2969a9){const _0xe3254b=_0x1c8b79,_0x4b7d24={'pJKAH':function(_0x1c1134,_0x2362ce){return _0x1c1134(_0x2362ce);},'tdDnK':function(_0x2150ba,_0x2f6f28,_0x33bcb6){return _0x2150ba(_0x2f6f28,_0x33bcb6);}},_0x260471=_0x2969a9[_0xe3254b(0x111)](_0x15c563=>{const _0x4f6f92=_0xe3254b;return{'msgId':_0x15c563,'senderShowName':selfInfo[_0x4f6f92(0x13a)]};});return new Promise((_0x4876a0,_0x39ab3a)=>{const _0x314572=_0xe3254b,_0x3c954d={'OsTIi':_0x314572(0x124),'IedKH':function(_0x23ce7f,_0x221958){const _0x224a8e=_0x314572;return _0x4b7d24[_0x224a8e(0x13f)](_0x23ce7f,_0x221958);}};let _0x38ec4f=![];const _0x185bed=_0x2b994b=>{const _0x434754=_0x314572,_0x1da31b=_0x2b994b['elements'][_0x434754(0x123)](_0x5720eb=>_0x5720eb['arkElement']);if(!_0x1da31b)return;const _0x6d7424=JSON[_0x434754(0x132)](_0x1da31b[_0x434754(0x11b)][_0x434754(0x11a)]);if(_0x6d7424[_0x434754(0x103)]!=_0x3c954d[_0x434754(0x131)])return;_0x2b994b['peerUid']==_0x381160[_0x434754(0x120)]&&_0x2b994b[_0x434754(0x12c)]==selfInfo[_0x434754(0x134)]&&(_0x38ec4f=!![],_0x3c954d[_0x434754(0x12f)](_0x4876a0,_0x2b994b));};sentMsgTasks['set'](randomUUID(),_0x185bed),_0x4b7d24[_0x314572(0x12b)](setTimeout,()=>{const _0x3553fe=_0x314572;!_0x38ec4f&&_0x39ab3a(_0x3553fe(0x10c));},0x1388),napCatCore[_0x314572(0x118)][_0x314572(0x135)]()[_0x314572(0x11f)](_0x260471,_0x4e636e,_0x381160,[],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 a68f8e9c..bbb5fc49 100644 --- a/src/core.lib/src/apis/sign.js +++ b/src/core.lib/src/apis/sign.js @@ -1 +1 @@ -function _0x3adc(_0x37f861,_0x5dc811){const _0x5080da=_0x5080();return _0x3adc=function(_0x3adc11,_0x23fdd4){_0x3adc11=_0x3adc11-0x19a;let _0x336dcc=_0x5080da[_0x3adc11];return _0x336dcc;},_0x3adc(_0x37f861,_0x5dc811);}(function(_0x3f831b,_0x1bbb73){const _0x2ffcd0=_0x3adc,_0x5e437d=_0x3f831b();while(!![]){try{const _0x3668e0=-parseInt(_0x2ffcd0(0x1a2))/0x1+-parseInt(_0x2ffcd0(0x1b0))/0x2+-parseInt(_0x2ffcd0(0x19c))/0x3+parseInt(_0x2ffcd0(0x19d))/0x4+-parseInt(_0x2ffcd0(0x19a))/0x5+parseInt(_0x2ffcd0(0x1ae))/0x6+parseInt(_0x2ffcd0(0x19f))/0x7;if(_0x3668e0===_0x1bbb73)break;else _0x5e437d['push'](_0x5e437d['shift']());}catch(_0x4ad5c0){_0x5e437d['push'](_0x5e437d['shift']());}}}(_0x5080,0xdb765));import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';function _0x5080(){const _0x39a8cd=['miniapp','ioJGk','eMGKi','JEVgB',';\x20p_uin=o','tianxuan.imgJumpArk',';\x20skey=','getSkey','genBkn','tag','JnRPH','&ark=','GET','tagIcon','prompt','pyHxT','1702430YwZQQk','QLppw','2728254awtBgT','4422604ANzHCz','\x5c/\x5c/','5757192LDxDUf','MiniApp\x20JSON\x20消息生成失败','AsIeM','633260sXaPKU','https://h5.qzone.qq.com/v2/vip/tx/trpc/ark-share/GenNewSignedArk?g_tk=','uin','com.tencent.miniapp.lua','replace','ITJyg','PSunT','skey','source','preview','VgQce','HttpGetJson','10053720nVxghZ','p_skey','1643292GRWhuY'];_0x5080=function(){return _0x39a8cd;};return _0x5080();}import{selfInfo}from'../data';import{RequestUtil}from'@/common/utils/request';import{WebApi}from'./webapi';export async function SignMiniApp(_0x485594){const _0x54c0a7=_0x3adc,_0x35b68e={'MIYsX':_0x54c0a7(0x1b6),'qweVu':_0x54c0a7(0x1b1),'QLppw':'normal','AsIeM':_0x54c0a7(0x19e),'pyHxT':function(_0x3ca868,_0x44c344){return _0x3ca868+_0x44c344;},'ioJGk':function(_0x21f8ee,_0x353698){return _0x21f8ee+_0x353698;},'JnRPH':'p_skey=','eMGKi':_0x54c0a7(0x1b5),'dLmsy':';\x20uin=o','PSunT':function(_0x246fea,_0x143b71){return _0x246fea+_0x143b71;},'VgQce':_0x54c0a7(0x1a3),'JEVgB':_0x54c0a7(0x1bc),'ITJyg':function(_0x30b598,_0x497b58,_0x2dc021){return _0x30b598(_0x497b58,_0x2dc021);}};let _0x214281={'app':_0x54c0a7(0x1a5),'bizsrc':_0x35b68e['MIYsX'],'view':_0x35b68e['qweVu'],'prompt':_0x485594[_0x54c0a7(0x1bf)],'config':{'type':_0x35b68e[_0x54c0a7(0x19b)],'forward':0x1,'autosize':0x0},'meta':{'miniapp':{'title':_0x485594['title'],'preview':_0x485594[_0x54c0a7(0x1ab)]['replace'](/\\/g,_0x35b68e[_0x54c0a7(0x1a1)]),'jumpUrl':_0x485594['jumpUrl'][_0x54c0a7(0x1a6)](/\\/g,_0x35b68e['AsIeM']),'tag':_0x485594[_0x54c0a7(0x1ba)],'tagIcon':_0x485594[_0x54c0a7(0x1be)][_0x54c0a7(0x1a6)](/\\/g,_0x35b68e[_0x54c0a7(0x1a1)]),'source':_0x485594[_0x54c0a7(0x1aa)],'sourcelogo':_0x485594['sourcelogo']['replace'](/\\/g,_0x54c0a7(0x19e))}}};const _0x552886=await NTQQUserApi[_0x54c0a7(0x1b8)]();let _0x37bfe3=await NTQQUserApi['getQzoneCookies']();const _0x5ca2e5=WebApi[_0x54c0a7(0x1b9)](_0x37bfe3[_0x54c0a7(0x1af)]),_0x3affd9=_0x35b68e[_0x54c0a7(0x1c0)](_0x35b68e['pyHxT'](_0x35b68e[_0x54c0a7(0x1b2)](_0x35b68e[_0x54c0a7(0x1c0)](_0x35b68e[_0x54c0a7(0x1bb)],_0x37bfe3[_0x54c0a7(0x1af)])+_0x54c0a7(0x1b7),_0x37bfe3[_0x54c0a7(0x1a9)])+_0x35b68e[_0x54c0a7(0x1b3)],selfInfo[_0x54c0a7(0x1a4)])+_0x35b68e['dLmsy'],selfInfo[_0x54c0a7(0x1a4)]);let _0x221309=_0x35b68e[_0x54c0a7(0x1b2)](_0x35b68e[_0x54c0a7(0x1a8)](_0x35b68e[_0x54c0a7(0x1a8)](_0x35b68e[_0x54c0a7(0x1ac)],_0x5ca2e5),_0x35b68e[_0x54c0a7(0x1b4)]),encodeURIComponent(JSON['stringify'](_0x214281))),_0x3ad896='';try{let _0x374e37=await RequestUtil[_0x54c0a7(0x1ad)](_0x221309,_0x54c0a7(0x1bd),undefined,{'Cookie':_0x3affd9});_0x3ad896=_0x374e37['data']['signed_ark'];}catch(_0x78f28e){_0x35b68e[_0x54c0a7(0x1a7)](logDebug,_0x54c0a7(0x1a0),_0x78f28e);}return _0x3ad896;} \ No newline at end of file +function _0x1cdc(){const _0x52229f=[';\x20skey=','genBkn','WNsrP','306FNUjyz','preview','signed_ark','\x5c/\x5c/','sourcelogo','4195qRUdIj','miniapp','title','uin','aWjNX','tagIcon','replace','https://h5.qzone.qq.com/v2/vip/tx/trpc/ark-share/GenNewSignedArk?g_tk=','&ark=','51tnItBa','stringify','jumpUrl','GET','21690uqUhhx','yKRsG','195oyiJTX','AaAVw','skey','normal','tag','22224XRNelA','173916uuvDFJ','source','tianxuan.imgJumpArk','20fyQjiM','p_skey=','2012346iZcXuj','p_skey','MiniApp\x20JSON\x20消息生成失败','42IhwlPM','data','157264BCSwTW','getQzoneCookies',';\x20p_uin=o','2773727oWKvpG','gljct','com.tencent.miniapp.lua','HttpGetJson','prompt','VEBFq','fcQLU','WccSO','38UHMRLY'];_0x1cdc=function(){return _0x52229f;};return _0x1cdc();}(function(_0x9cb42e,_0x1d6622){const _0x5868f1=_0x18e2,_0x1d3ea2=_0x9cb42e();while(!![]){try{const _0x213a11=parseInt(_0x5868f1(0x82))/0x1*(-parseInt(_0x5868f1(0x9f))/0x2)+parseInt(_0x5868f1(0x7e))/0x3*(parseInt(_0x5868f1(0x89))/0x4)+-parseInt(_0x5868f1(0x75))/0x5*(parseInt(_0x5868f1(0x70))/0x6)+-parseInt(_0x5868f1(0x92))/0x7*(-parseInt(_0x5868f1(0x94))/0x8)+parseInt(_0x5868f1(0x8f))/0x9+-parseInt(_0x5868f1(0x8d))/0xa*(-parseInt(_0x5868f1(0x97))/0xb)+parseInt(_0x5868f1(0x8a))/0xc*(-parseInt(_0x5868f1(0x84))/0xd);if(_0x213a11===_0x1d6622)break;else _0x1d3ea2['push'](_0x1d3ea2['shift']());}catch(_0x13da4e){_0x1d3ea2['push'](_0x1d3ea2['shift']());}}}(_0x1cdc,0x416ee));import{logDebug}from'@/common/utils/log';function _0x18e2(_0x227ff2,_0x15bf56){const _0x1cdc26=_0x1cdc();return _0x18e2=function(_0x18e234,_0x2c6981){_0x18e234=_0x18e234-0x6f;let _0x3ab75f=_0x1cdc26[_0x18e234];return _0x3ab75f;},_0x18e2(_0x227ff2,_0x15bf56);}import{NTQQUserApi}from'./user';import{selfInfo}from'../data';import{RequestUtil}from'@/common/utils/request';import{WebApi}from'./webapi';export async function SignMiniApp(_0x30846b){const _0x74356d=_0x18e2,_0x162349={'aWjNX':_0x74356d(0x99),'qjkHF':_0x74356d(0x8c),'YuczR':_0x74356d(0x76),'WccSO':_0x74356d(0x73),'yKRsG':function(_0x4c1f56,_0x22b76c){return _0x4c1f56+_0x22b76c;},'MsQyW':function(_0x7767d5,_0x2f9e11){return _0x7767d5+_0x2f9e11;},'IdOiF':_0x74356d(0x8e),'VEBFq':_0x74356d(0xa0),'MyRvd':_0x74356d(0x96),'AaAVw':function(_0x20266c,_0x486322){return _0x20266c+_0x486322;},'fcQLU':_0x74356d(0x7c),'gljct':_0x74356d(0x7d),'WNsrP':function(_0x51f71c,_0x45429d){return _0x51f71c(_0x45429d);},'MasKP':_0x74356d(0x81),'ZQJik':_0x74356d(0x91)};let _0x1c22ef={'app':_0x162349[_0x74356d(0x79)],'bizsrc':_0x162349['qjkHF'],'view':_0x162349['YuczR'],'prompt':_0x30846b[_0x74356d(0x9b)],'config':{'type':_0x74356d(0x87),'forward':0x1,'autosize':0x0},'meta':{'miniapp':{'title':_0x30846b[_0x74356d(0x77)],'preview':_0x30846b[_0x74356d(0x71)]['replace'](/\\/g,_0x162349[_0x74356d(0x9e)]),'jumpUrl':_0x30846b[_0x74356d(0x80)][_0x74356d(0x7b)](/\\/g,_0x74356d(0x73)),'tag':_0x30846b[_0x74356d(0x88)],'tagIcon':_0x30846b[_0x74356d(0x7a)][_0x74356d(0x7b)](/\\/g,_0x162349[_0x74356d(0x9e)]),'source':_0x30846b[_0x74356d(0x8b)],'sourcelogo':_0x30846b[_0x74356d(0x74)][_0x74356d(0x7b)](/\\/g,_0x162349[_0x74356d(0x9e)])}}};const _0x1095c4=await NTQQUserApi['getSkey']();let _0x2c7887=await NTQQUserApi[_0x74356d(0x95)]();const _0x1ca673=WebApi[_0x74356d(0xa1)](_0x2c7887['p_skey']),_0x6ec545=_0x162349[_0x74356d(0x83)](_0x162349[_0x74356d(0x83)](_0x162349[_0x74356d(0x83)](_0x162349['yKRsG'](_0x162349['MsQyW'](_0x162349[_0x74356d(0x83)](_0x162349['IdOiF'],_0x2c7887[_0x74356d(0x90)]),_0x162349[_0x74356d(0x9c)])+_0x2c7887[_0x74356d(0x86)],_0x162349['MyRvd']),selfInfo[_0x74356d(0x78)]),';\x20uin=o'),selfInfo['uin']);let _0x432849=_0x162349[_0x74356d(0x85)](_0x162349[_0x74356d(0x9d)],_0x1ca673)+_0x162349[_0x74356d(0x98)]+_0x162349[_0x74356d(0x6f)](encodeURIComponent,JSON[_0x74356d(0x7f)](_0x1c22ef)),_0x5027ac='';try{let _0x2edab5=await RequestUtil[_0x74356d(0x9a)](_0x432849,_0x162349['MasKP'],undefined,{'Cookie':_0x6ec545});_0x5027ac=_0x2edab5[_0x74356d(0x93)][_0x74356d(0x72)];}catch(_0x642965){logDebug(_0x162349['ZQJik'],_0x642965);}return _0x5027ac;} \ No newline at end of file diff --git a/src/core.lib/src/apis/system.js b/src/core.lib/src/apis/system.js index e910d76a..3aa01779 100644 --- a/src/core.lib/src/apis/system.js +++ b/src/core.lib/src/apis/system.js @@ -1 +1 @@ -var _0x2e0414=_0x4b27;(function(_0x173b7e,_0x279b88){var _0x288da1=_0x4b27,_0x4c5b3a=_0x173b7e();while(!![]){try{var _0x464ca2=-parseInt(_0x288da1(0x1bf))/0x1+-parseInt(_0x288da1(0x1c0))/0x2+-parseInt(_0x288da1(0x1ce))/0x3*(parseInt(_0x288da1(0x1c3))/0x4)+-parseInt(_0x288da1(0x1c6))/0x5+parseInt(_0x288da1(0x1ca))/0x6+-parseInt(_0x288da1(0x1c9))/0x7*(parseInt(_0x288da1(0x1c8))/0x8)+parseInt(_0x288da1(0x1c7))/0x9;if(_0x464ca2===_0x279b88)break;else _0x4c5b3a['push'](_0x4c5b3a['shift']());}catch(_0x3dfd17){_0x4c5b3a['push'](_0x4c5b3a['shift']());}}}(_0x3675,0x675a2));import{napCatCore}from'@/core';function _0x4b27(_0x1213c5,_0x4e4827){var _0x367534=_0x3675();return _0x4b27=function(_0x4b2764,_0x2382ab){_0x4b2764=_0x4b2764-0x1bf;var _0x26a013=_0x367534[_0x4b2764];return _0x26a013;},_0x4b27(_0x1213c5,_0x4e4827);}export class NTQQSystemApi{static async[_0x2e0414(0x1cb)](){var _0x275ea7=_0x2e0414;return napCatCore[_0x275ea7(0x1c5)][_0x275ea7(0x1cb)]();}static async[_0x2e0414(0x1c2)](_0x18ddf5){var _0x1b7cac=_0x2e0414;return napCatCore[_0x1b7cac(0x1c1)][_0x1b7cac(0x1cc)]()[_0x1b7cac(0x1c4)](_0x18ddf5);}static async[_0x2e0414(0x1cd)](_0x4ec1d0){var _0xa4b2d8=_0x2e0414;return napCatCore[_0xa4b2d8(0x1c1)]['getRichMediaService']()[_0xa4b2d8(0x1cd)](_0x4ec1d0);}}function _0x3675(){var _0x4c28fb=['wantWinScreenOCR','util','1698860Weqqmw','18386928ACMJlZ','8ETUAFG','2114679wjzhcF','3259746Vsgzqk','hasOtherRunningQQProcess','getNodeMiscService','translateEnWordToZn','351RXuxsQ','446292jwAsIX','843630QFIplB','session','ORCImage','22324llaVKX'];_0x3675=function(){return _0x4c28fb;};return _0x3675();} \ No newline at end of file +var _0x3dc00c=_0x4e9e;(function(_0x46fb3f,_0x2f04e2){var _0x2cf4a2=_0x4e9e,_0x5aac15=_0x46fb3f();while(!![]){try{var _0x46fd5b=parseInt(_0x2cf4a2(0x1b2))/0x1+-parseInt(_0x2cf4a2(0x1ad))/0x2*(-parseInt(_0x2cf4a2(0x1ba))/0x3)+parseInt(_0x2cf4a2(0x1ae))/0x4*(-parseInt(_0x2cf4a2(0x1bb))/0x5)+parseInt(_0x2cf4a2(0x1b4))/0x6*(parseInt(_0x2cf4a2(0x1af))/0x7)+-parseInt(_0x2cf4a2(0x1ac))/0x8*(parseInt(_0x2cf4a2(0x1bc))/0x9)+-parseInt(_0x2cf4a2(0x1b8))/0xa*(-parseInt(_0x2cf4a2(0x1b7))/0xb)+-parseInt(_0x2cf4a2(0x1b3))/0xc;if(_0x46fd5b===_0x2f04e2)break;else _0x5aac15['push'](_0x5aac15['shift']());}catch(_0x955f77){_0x5aac15['push'](_0x5aac15['shift']());}}}(_0x1f9a,0xb28da));import{napCatCore}from'@/core';function _0x1f9a(){var _0x47a198=['hasOtherRunningQQProcess','ORCImage','4206213FkCUVC','30ZKSLmf','getNodeMiscService','3WXhsli','24515NJgMSU','39852OyufwS','util','560FjGvKF','2142714VPFzRs','616SNoHcU','24626KRooHD','session','wantWinScreenOCR','899562TokBzb','24599016FXjJJy','1242RlefLV'];_0x1f9a=function(){return _0x47a198;};return _0x1f9a();}function _0x4e9e(_0x37259c,_0x1cbff9){var _0x1f9a7c=_0x1f9a();return _0x4e9e=function(_0x4e9e97,_0x7bc1b0){_0x4e9e97=_0x4e9e97-0x1ab;var _0x5aad0d=_0x1f9a7c[_0x4e9e97];return _0x5aad0d;},_0x4e9e(_0x37259c,_0x1cbff9);}export class NTQQSystemApi{static async[_0x3dc00c(0x1b5)](){var _0x55cb72=_0x3dc00c;return napCatCore[_0x55cb72(0x1ab)]['hasOtherRunningQQProcess']();}static async[_0x3dc00c(0x1b6)](_0x4c71ab){var _0x1f31c6=_0x3dc00c;return napCatCore[_0x1f31c6(0x1b0)][_0x1f31c6(0x1b9)]()[_0x1f31c6(0x1b1)](_0x4c71ab);}static async['translateEnWordToZn'](_0x1b7b7e){return napCatCore['session']['getRichMediaService']()['translateEnWordToZn'](_0x1b7b7e);}} \ 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 27e557ba..36a390f5 100644 --- a/src/core.lib/src/apis/user.js +++ b/src/core.lib/src/apis/user.js @@ -1 +1 @@ -const _0x1576c0=_0x9d85;(function(_0x143558,_0x1e7501){const _0x27a795=_0x9d85,_0xd87b4d=_0x143558();while(!![]){try{const _0x4cbb81=parseInt(_0x27a795(0x114))/0x1*(parseInt(_0x27a795(0x146))/0x2)+-parseInt(_0x27a795(0x143))/0x3+parseInt(_0x27a795(0x142))/0x4*(parseInt(_0x27a795(0x141))/0x5)+-parseInt(_0x27a795(0x14e))/0x6+parseInt(_0x27a795(0x132))/0x7*(parseInt(_0x27a795(0x10b))/0x8)+parseInt(_0x27a795(0x13c))/0x9+parseInt(_0x27a795(0x12d))/0xa*(parseInt(_0x27a795(0x112))/0xb);if(_0x4cbb81===_0x1e7501)break;else _0xd87b4d['push'](_0xd87b4d['shift']());}catch(_0x12ccb8){_0xd87b4d['push'](_0xd87b4d['shift']());}}}(_0x23a8,0x3ac71));function _0x23a8(){const _0x2f9cdc=['fromEntries','PskeyData','&clientkey=','yElki','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','setSelfOnlineStatus','entries','vRhup','PskeyTime','jmTEA','fThJa','HttpsGetCookies','Skey','forceFetchClientKey','30xQCURF','setStatus','domainPskeyMap','DDjSE','uid','67494itWpob','HmNGG','length','ClientKey','uin','getPskey','MJDOm','setBuddyProfileLike','onProfileDetailInfoChanged','get','142560wOakJI','wvFcw','AdNKZ','errMsg','KeyIndex','15ZezppR','89852rlwuzj','1300854bZoywU','ZBeqI','GpAZn','102lQnPrv','UgLtR','delete','CreatTime','then','set','skey','Wgopi','2784018eiOGQa','esVnq','请求获取Cookies时失败','wKgkF','getRobotUinRange','assign','获取Pskey失败','nKqWz','getProfileService','&u1=https%3A%2F%2Fuser.qzone.qq.com%2F','result','sioIq','getProfileLikeService','bvRbM','getUserInfo','response','QzQdc','keyIndex','getTipOffService','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','forEach','40sBldID','like','clientKey','aEVdV','now','getUserDetailInfo','ZNmgJ','2250138RNHlGu','jNAuw','7711EXxSvl','setQQAvatar','WUszZ','MxVAB','session','XqWJx','getSkey','请求获取Skey时失败','getUserDetailInfoWithBizInfo','onLoginSuccess','getRobotService'];_0x23a8=function(){return _0x2f9cdc;};return _0x23a8();}import{Credentials,selfInfo,uid2UinMap}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';import{RequestUtil}from'@/common/utils/request';function _0x9d85(_0x2ffd92,_0x13f88c){const _0x23a8d5=_0x23a8();return _0x9d85=function(_0x9d8511,_0x246f24){_0x9d8511=_0x9d8511-0x103;let _0x39c354=_0x23a8d5[_0x9d8511];return _0x39c354;},_0x9d85(_0x2ffd92,_0x13f88c);}import{logDebug,logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x1576c0(0x13a)]=_0x324043=>{const _0x52d3a1=_0x1576c0;userInfoCache[_0x324043[_0x52d3a1(0x131)]]=_0x324043,userDetailHandlers[_0x52d3a1(0x10a)](_0xeef16=>_0xeef16(_0x324043));},setTimeout(()=>{const _0x135bf0=_0x1576c0;napCatCore[_0x135bf0(0x11d)](()=>{napCatCore['addListener'](profileListener);});},0x64);export class NTQQUserApi{static async[_0x1576c0(0x124)](_0x22003e,_0xf7f2c4,_0x57ddf2){const _0x8c21e9=_0x1576c0;return napCatCore[_0x8c21e9(0x118)]['getMsgService']()[_0x8c21e9(0x12e)]({'status':_0x22003e,'extStatus':_0xf7f2c4,'batteryStatus':_0x57ddf2});}static async[_0x1576c0(0x10c)](_0x5cf796,_0xcf8256=0x1){const _0x582978=_0x1576c0;return napCatCore[_0x582978(0x118)][_0x582978(0x15a)]()[_0x582978(0x139)]({'friendUid':_0x5cf796,'sourceId':0x47,'doLikeCount':_0xcf8256,'doLikeTollCount':0x0});}static async[_0x1576c0(0x115)](_0x8a1a6b){const _0x5d4cfc=_0x1576c0,_0x531d59=napCatCore['session']['getProfileService']()['setHeader'](_0x8a1a6b);return{'result':_0x531d59?.[_0x5d4cfc(0x158)],'errMsg':_0x531d59?.[_0x5d4cfc(0x13f)]};}static async['getSelfInfo'](){}static async[_0x1576c0(0x104)](_0x3a6283){}static async[_0x1576c0(0x110)](_0x223fe4){const _0x5ad81e=_0x1576c0,_0xb88e4b={'DDjSE':function(_0x42cff5,_0x39f5a2){return _0x42cff5(_0x39f5a2);},'yElki':'getUserDetailInfo\x20timeout','esVnq':function(_0x37023e){return _0x37023e();}},_0x177e3f=napCatCore['session'][_0x5ad81e(0x156)]();return new Promise((_0x285ccb,_0x43a453)=>{const _0x5d8b1a=_0x5ad81e,_0x3a02aa={'MJDOm':function(_0xc7be79,_0x366454){const _0x3cd12b=_0x9d85;return _0xb88e4b[_0x3cd12b(0x130)](_0xc7be79,_0x366454);},'XqWJx':_0xb88e4b[_0x5d8b1a(0x122)],'fThJa':function(_0x62648,_0x215f8b){return _0x62648===_0x215f8b;}},_0x48203a=_0xb88e4b[_0x5d8b1a(0x14f)](randomUUID);let _0x4925de=![],_0x28fd51=undefined,_0x347b41=!![];setTimeout(()=>{const _0x7ce62f=_0x5d8b1a;!_0x4925de&&(_0x28fd51?_0x3a02aa['MJDOm'](_0x285ccb,_0x28fd51):_0x3a02aa['MJDOm'](_0x43a453,_0x3a02aa[_0x7ce62f(0x119)])),userDetailHandlers[_0x7ce62f(0x148)](_0x48203a);},0x1388),userDetailHandlers[_0x5d8b1a(0x14b)](_0x48203a,_0x58159a=>{const _0x58a1ec=_0x5d8b1a;_0x3a02aa[_0x58a1ec(0x129)](_0x58159a['uid'],_0x223fe4)&&(uid2UinMap[_0x223fe4]=_0x58159a[_0x58a1ec(0x136)],_0x347b41?(_0x28fd51=_0x58159a,_0x347b41=![]):(_0x4925de=!![],_0x3a02aa[_0x58a1ec(0x138)](_0x285ccb,_0x58159a)));}),_0x177e3f[_0x5d8b1a(0x11c)](_0x223fe4,[0x0])[_0x5d8b1a(0x14a)](_0x32b941=>{});});}static async['getPSkey'](_0x1eea57,_0x460ffd=!![]){const _0x46ec3f=_0x1576c0,_0x10d8a7={'nKqWz':function(_0x21b23a,_0x460697){return _0x21b23a||_0x460697;},'jmTEA':function(_0x4bc239,_0x240f73){return _0x4bc239>_0x240f73;},'ZBeqI':function(_0x3defd3,_0x2c1acb){return _0x3defd3-_0x2c1acb;},'QzQdc':function(_0x535138,_0x279759){return _0x535138>_0x279759;},'WUszZ':function(_0xcc87de,_0x188e66){return _0xcc87de===_0x188e66;},'UgLtR':function(_0x40b20d,_0x53ed45,_0x9fdb5d){return _0x40b20d(_0x53ed45,_0x9fdb5d);},'INuaP':_0x46ec3f(0x154)},_0x4341a1=[],_0x5a3f55={};for(const _0x331b5b in _0x1eea57){const _0x37a47a=Credentials[_0x46ec3f(0x120)][_0x46ec3f(0x13b)](_0x1eea57[_0x331b5b]),_0x14a743=Credentials[_0x46ec3f(0x127)][_0x46ec3f(0x13b)](_0x1eea57[_0x331b5b]);_0x10d8a7[_0x46ec3f(0x155)](!_0x37a47a,!_0x14a743)||_0x10d8a7[_0x46ec3f(0x128)](_0x10d8a7[_0x46ec3f(0x144)](Date[_0x46ec3f(0x10f)](),_0x14a743),0x708*0x3e8)||!_0x460ffd?_0x4341a1['push'](_0x1eea57[_0x331b5b]):_0x5a3f55[_0x1eea57[_0x331b5b]]=_0x37a47a;}let _0x5593e0={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x10d8a7[_0x46ec3f(0x106)](_0x4341a1[_0x46ec3f(0x134)],0x0)&&(_0x5593e0=await napCatCore['session'][_0x46ec3f(0x108)]()[_0x46ec3f(0x137)](_0x4341a1,!![]));const _0x48a892=_0x5593e0[_0x46ec3f(0x12f)];for(const _0x40ec0f of _0x48a892[_0x46ec3f(0x125)]()){Credentials[_0x46ec3f(0x120)][_0x46ec3f(0x14b)](_0x40ec0f[0x0],_0x40ec0f[0x1]),Credentials[_0x46ec3f(0x127)]['set'](_0x40ec0f[0x0],Date[_0x46ec3f(0x10f)]());}const _0x53f57b=Object[_0x46ec3f(0x153)](Object[_0x46ec3f(0x11f)](_0x48a892),_0x5a3f55);if(_0x10d8a7[_0x46ec3f(0x116)](_0x5593e0[_0x46ec3f(0x158)],0x0))return _0x53f57b;else _0x10d8a7[_0x46ec3f(0x147)](logError,_0x10d8a7['INuaP'],_0x5593e0[_0x46ec3f(0x13f)]);return{};}static async[_0x1576c0(0x152)](){const _0x373a62=_0x1576c0,_0x11edb8=await napCatCore[_0x373a62(0x118)][_0x373a62(0x11e)]()[_0x373a62(0x152)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x11edb8?.[_0x373a62(0x105)]?.['robotUinRanges'];}static async['getQzoneCookies'](){const _0x5bf11c=_0x1576c0,_0x5d4c65={'AdNKZ':function(_0x38a5ab,_0x477c02){return _0x38a5ab+_0x477c02;},'wKgkF':function(_0x32a1a8,_0x49ddc4){return _0x32a1a8+_0x49ddc4;},'ZNmgJ':function(_0x159729,_0x4cd3f1){return _0x159729+_0x4cd3f1;},'wvFcw':function(_0x3e0ede,_0x287f8a){return _0x3e0ede+_0x287f8a;},'NeSJL':_0x5bf11c(0x121),'vRhup':'%2Finfocenter&keyindex=19%27','aWjky':function(_0x588120,_0x34e132,_0x167183){return _0x588120(_0x34e132,_0x167183);}},_0x419ffc=_0x5d4c65[_0x5bf11c(0x13e)](_0x5d4c65[_0x5bf11c(0x151)](_0x5d4c65['AdNKZ'](_0x5d4c65['AdNKZ'](_0x5d4c65[_0x5bf11c(0x111)](_0x5d4c65[_0x5bf11c(0x13d)](_0x5bf11c(0x109),selfInfo[_0x5bf11c(0x136)]),_0x5d4c65['NeSJL']),Credentials[_0x5bf11c(0x135)]),_0x5bf11c(0x157)),selfInfo[_0x5bf11c(0x136)]),_0x5d4c65[_0x5bf11c(0x126)]);let _0x354324={};try{_0x354324=await RequestUtil[_0x5bf11c(0x12a)](_0x419ffc);}catch(_0x527d6d){_0x5d4c65['aWjky'](logDebug,_0x5bf11c(0x150),_0x527d6d),_0x354324={};}return _0x354324;}static async[_0x1576c0(0x11a)](_0x9ccd46=!![]){const _0x37b1d5=_0x1576c0,_0x2dc1e3={'MxVAB':function(_0x316cc6,_0x4b5abc){return _0x316cc6*_0x4b5abc;},'bvRbM':function(_0x1d08d6,_0x58558d){return _0x1d08d6!==_0x58558d;},'RZqQv':function(_0x51b892,_0x49f3b8){return _0x51b892+_0x49f3b8;},'sioIq':function(_0x13e812,_0x2f4375){return _0x13e812+_0x2f4375;},'jNAuw':function(_0x2f7991,_0x5b70bf){return _0x2f7991+_0x5b70bf;},'HmNGG':'https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','GpAZn':_0x37b1d5(0x123),'Wgopi':function(_0x16ee99,_0x51a743,_0x5e9d12){return _0x16ee99(_0x51a743,_0x5e9d12);},'ShGNs':_0x37b1d5(0x11b),'aEVdV':_0x37b1d5(0x14c)};try{if(Credentials['CreatTime']==0x0||Date[_0x37b1d5(0x10f)]()-Credentials[_0x37b1d5(0x149)]>_0x2dc1e3[_0x37b1d5(0x117)](0x3e8,0xe10)||!_0x9ccd46){const _0x2a133d=await napCatCore[_0x37b1d5(0x118)]['getTicketService']()[_0x37b1d5(0x12c)]('');if(_0x2dc1e3[_0x37b1d5(0x103)](_0x2a133d[_0x37b1d5(0x158)],0x0))return'';const _0x562794=_0x2a133d[_0x37b1d5(0x10d)],_0x1f4f64=_0x2a133d[_0x37b1d5(0x107)],_0x2ee8ab=_0x2dc1e3['RZqQv'](_0x2dc1e3['sioIq'](_0x2dc1e3[_0x37b1d5(0x159)](_0x2dc1e3[_0x37b1d5(0x113)](_0x2dc1e3[_0x37b1d5(0x133)],selfInfo[_0x37b1d5(0x136)]),_0x37b1d5(0x121)),_0x562794)+_0x2dc1e3[_0x37b1d5(0x145)],_0x1f4f64);let _0x143635={};try{_0x143635=await RequestUtil['HttpsGetCookies'](_0x2ee8ab);}catch(_0x46a4a2){_0x2dc1e3[_0x37b1d5(0x14d)](logDebug,_0x2dc1e3['ShGNs'],_0x46a4a2),_0x143635={};}const _0x4c288e=_0x143635[_0x2dc1e3[_0x37b1d5(0x10e)]];if(!_0x4c288e)return'';return Credentials[_0x37b1d5(0x135)]=_0x562794,Credentials[_0x37b1d5(0x140)]=_0x1f4f64,Credentials[_0x37b1d5(0x149)]=Date['now'](),Credentials[_0x37b1d5(0x12b)]=_0x4c288e,_0x4c288e;}return Credentials[_0x37b1d5(0x12b)];}catch(_0x354645){}return undefined;}} \ No newline at end of file +const _0x4226c4=_0x5c83;function _0x5c83(_0x5e8604,_0x45cf49){const _0x58a8f2=_0x58a8();return _0x5c83=function(_0x5c8349,_0x544f69){_0x5c8349=_0x5c8349-0x17b;let _0x5d8053=_0x58a8f2[_0x5c8349];return _0x5d8053;},_0x5c83(_0x5e8604,_0x45cf49);}(function(_0x26fe23,_0x45aa5d){const _0x47daf3=_0x5c83,_0x4b5d33=_0x26fe23();while(!![]){try{const _0x97e6d7=-parseInt(_0x47daf3(0x190))/0x1*(-parseInt(_0x47daf3(0x1a2))/0x2)+parseInt(_0x47daf3(0x1b1))/0x3*(-parseInt(_0x47daf3(0x1b7))/0x4)+parseInt(_0x47daf3(0x19a))/0x5+parseInt(_0x47daf3(0x194))/0x6+-parseInt(_0x47daf3(0x1ad))/0x7+parseInt(_0x47daf3(0x19d))/0x8*(-parseInt(_0x47daf3(0x1cc))/0x9)+parseInt(_0x47daf3(0x1c2))/0xa*(-parseInt(_0x47daf3(0x1b9))/0xb);if(_0x97e6d7===_0x45aa5d)break;else _0x4b5d33['push'](_0x4b5d33['shift']());}catch(_0x345aef){_0x4b5d33['push'](_0x4b5d33['shift']());}}}(_0x58a8,0xd0909));import{Credentials,selfInfo,uid2UinMap}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';import{RequestUtil}from'@/common/utils/request';import{logDebug,logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x4226c4(0x1c5)]=_0x5ddf97=>{const _0x45ed28=_0x4226c4;userInfoCache[_0x5ddf97[_0x45ed28(0x1af)]]=_0x5ddf97,userDetailHandlers['forEach'](_0x2be059=>_0x2be059(_0x5ddf97));},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{const _0x9a1a2=_0x5c83;napCatCore[_0x9a1a2(0x1be)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x4226c4(0x17e)](_0x4ab9c9,_0xb5cb7d,_0x38c5a9){const _0x124fbb=_0x4226c4;return napCatCore[_0x124fbb(0x1aa)][_0x124fbb(0x185)]()[_0x124fbb(0x1a9)]({'status':_0x4ab9c9,'extStatus':_0xb5cb7d,'batteryStatus':_0x38c5a9});}static async[_0x4226c4(0x1a3)](_0x4d57a2,_0x39935a=0x1){const _0x16c467=_0x4226c4;return napCatCore[_0x16c467(0x1aa)]['getProfileLikeService']()[_0x16c467(0x182)]({'friendUid':_0x4d57a2,'sourceId':0x47,'doLikeCount':_0x39935a,'doLikeTollCount':0x0});}static async['setQQAvatar'](_0x523362){const _0x3f1a16=_0x4226c4,_0x15fb9a=napCatCore[_0x3f1a16(0x1aa)][_0x3f1a16(0x1c4)]()[_0x3f1a16(0x1a4)](_0x523362);return{'result':_0x15fb9a?.[_0x3f1a16(0x1c3)],'errMsg':_0x15fb9a?.[_0x3f1a16(0x1b2)]};}static async[_0x4226c4(0x1b4)](){}static async['getUserInfo'](_0x1801cc){}static async[_0x4226c4(0x1cd)](_0x1cbf13){const _0x527a9e={'OLmBL':function(_0x589654,_0x332eaf){return _0x589654===_0x332eaf;},'gOyVr':function(_0x164a42,_0x3238fb){return _0x164a42(_0x3238fb);}},_0x2d594e=napCatCore['session']['getProfileService']();return new Promise((_0x1cd074,_0x33e576)=>{const _0x5d3233=_0x5c83,_0x1d93e5={'PAqzO':function(_0x342737,_0x4ad37a){return _0x342737(_0x4ad37a);},'FBwWW':'getUserDetailInfo\x20timeout'},_0xf2e40f=randomUUID();let _0x4c5c4a=![],_0x357a51=undefined,_0xc00e78=!![];setTimeout(()=>{const _0x530299=_0x5c83;!_0x4c5c4a&&(_0x357a51?_0x1d93e5[_0x530299(0x1bd)](_0x1cd074,_0x357a51):_0x33e576(_0x1d93e5[_0x530299(0x1c7)])),userDetailHandlers['delete'](_0xf2e40f);},0x1388),userDetailHandlers['set'](_0xf2e40f,_0x1f92c0=>{const _0x1a6bb3=_0x5c83;_0x527a9e[_0x1a6bb3(0x1bb)](_0x1f92c0[_0x1a6bb3(0x1af)],_0x1cbf13)&&(uid2UinMap[_0x1cbf13]=_0x1f92c0[_0x1a6bb3(0x1c1)],_0xc00e78?(_0x357a51=_0x1f92c0,_0xc00e78=![]):(_0x4c5c4a=!![],_0x527a9e[_0x1a6bb3(0x197)](_0x1cd074,_0x1f92c0)));}),_0x2d594e['getUserDetailInfoWithBizInfo'](_0x1cbf13,[0x0])[_0x5d3233(0x191)](_0xb499d7=>{});});}static async[_0x4226c4(0x1b8)](_0x299f6b,_0x28ea55=!![]){const _0x4da8ec=_0x4226c4,_0x5f2055={'SUhiU':function(_0x1deef4,_0x1beea3){return _0x1deef4||_0x1beea3;},'ypBVM':function(_0xfbe2c3,_0x865407){return _0xfbe2c3>_0x865407;},'qylvr':function(_0x3c6e50,_0x2475d4){return _0x3c6e50-_0x2475d4;},'hHnnf':function(_0x49e034,_0x5d7d71){return _0x49e034===_0x5d7d71;}},_0xe624cf=[],_0x4840b0={};for(const _0x26efae in _0x299f6b){const _0x56b900=Credentials[_0x4da8ec(0x1a7)][_0x4da8ec(0x193)](_0x299f6b[_0x26efae]),_0x37a8d3=Credentials[_0x4da8ec(0x19f)]['get'](_0x299f6b[_0x26efae]);_0x5f2055[_0x4da8ec(0x1ab)](!_0x56b900,!_0x37a8d3)||_0x5f2055[_0x4da8ec(0x19e)](_0x5f2055[_0x4da8ec(0x18e)](Date[_0x4da8ec(0x1b3)](),_0x37a8d3),0x708*0x3e8)||!_0x28ea55?_0xe624cf[_0x4da8ec(0x181)](_0x299f6b[_0x26efae]):_0x4840b0[_0x299f6b[_0x26efae]]=_0x56b900;}let _0x5799a9={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0xe624cf[_0x4da8ec(0x192)]>0x0&&(_0x5799a9=await napCatCore[_0x4da8ec(0x1aa)][_0x4da8ec(0x1ce)]()[_0x4da8ec(0x1ae)](_0xe624cf,!![]));const _0x2fe0e7=_0x5799a9[_0x4da8ec(0x1a0)];for(const _0x237a36 of _0x2fe0e7[_0x4da8ec(0x17f)]()){Credentials[_0x4da8ec(0x1a7)][_0x4da8ec(0x18d)](_0x237a36[0x0],_0x237a36[0x1]),Credentials[_0x4da8ec(0x19f)][_0x4da8ec(0x18d)](_0x237a36[0x0],Date['now']());}const _0x52228a=Object[_0x4da8ec(0x199)](Object[_0x4da8ec(0x17d)](_0x2fe0e7),_0x4840b0);if(_0x5f2055[_0x4da8ec(0x1ac)](_0x5799a9[_0x4da8ec(0x1c3)],0x0))return _0x52228a;else logError(_0x4da8ec(0x18a),_0x5799a9[_0x4da8ec(0x1b2)]);return{};}static async[_0x4226c4(0x184)](){const _0x148c6d=_0x4226c4,_0x2e4cb4=await napCatCore[_0x148c6d(0x1aa)][_0x148c6d(0x195)]()[_0x148c6d(0x184)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x2e4cb4?.[_0x148c6d(0x196)]?.[_0x148c6d(0x1c8)];}static async[_0x4226c4(0x17b)](){const _0x6433df=_0x4226c4,_0x13a916={'rtmET':function(_0x998fcb,_0x468fe2){return _0x998fcb+_0x468fe2;},'tLxYm':function(_0x3d8eaa,_0x35179c){return _0x3d8eaa+_0x35179c;},'lxSeQ':function(_0x136836,_0x124c52){return _0x136836+_0x124c52;},'tbkBb':'&clientkey=','OowZU':_0x6433df(0x1a8),'mICWV':_0x6433df(0x17c)},_0x24a6be=_0x13a916[_0x6433df(0x188)](_0x13a916['tLxYm'](_0x13a916[_0x6433df(0x188)](_0x13a916[_0x6433df(0x1a6)](_0x13a916[_0x6433df(0x1a6)]('https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=',selfInfo[_0x6433df(0x1c1)]),_0x13a916[_0x6433df(0x189)]),Credentials['ClientKey'])+_0x13a916[_0x6433df(0x1cb)],selfInfo[_0x6433df(0x1c1)]),_0x13a916['mICWV']);let _0xf891a5={};try{_0xf891a5=await RequestUtil[_0x6433df(0x180)](_0x24a6be);}catch(_0x451ffe){logDebug('请求获取Cookies时失败',_0x451ffe),_0xf891a5={};}return _0xf891a5;}static async[_0x4226c4(0x18f)](_0x44de23=!![]){const _0x440a95=_0x4226c4,_0x907c2a={'fWxAs':function(_0x4e49ec,_0x54eb3b){return _0x4e49ec==_0x54eb3b;},'rhsyp':function(_0x2c0b27,_0x5a23df){return _0x2c0b27>_0x5a23df;},'OpCbj':function(_0x6ef959,_0x45ac09){return _0x6ef959-_0x45ac09;},'hDlJK':function(_0x2e25d3,_0x2ae4a8){return _0x2e25d3*_0x2ae4a8;},'RkMvk':function(_0x1e94b7,_0x5bc0f0){return _0x1e94b7!==_0x5bc0f0;},'Ijmez':function(_0x4527d2,_0x432a7f){return _0x4527d2+_0x432a7f;},'WkOpw':function(_0x5128d7,_0x11c5e8){return _0x5128d7+_0x11c5e8;},'SKaFZ':function(_0x3d140c,_0x281cf4){return _0x3d140c+_0x281cf4;},'GVkXo':function(_0xaef0b1,_0x535db7){return _0xaef0b1+_0x535db7;},'OVCic':'https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','Oxsoc':_0x440a95(0x187),'HVRMb':function(_0x4faae5,_0x4a3cf7,_0x1b638a){return _0x4faae5(_0x4a3cf7,_0x1b638a);},'NXGxu':_0x440a95(0x1a5)};try{if(_0x907c2a['fWxAs'](Credentials[_0x440a95(0x1cf)],0x0)||_0x907c2a[_0x440a95(0x1c6)](_0x907c2a[_0x440a95(0x1ba)](Date[_0x440a95(0x1b3)](),Credentials[_0x440a95(0x1cf)]),_0x907c2a['hDlJK'](0x3e8,0xe10))||!_0x44de23){const _0x3a535f=await napCatCore['session']['getTicketService']()[_0x440a95(0x1bf)]('');if(_0x907c2a[_0x440a95(0x186)](_0x3a535f[_0x440a95(0x1c3)],0x0))return'';const _0x3dcd2e=_0x3a535f[_0x440a95(0x183)],_0x5ab31a=_0x3a535f[_0x440a95(0x1bc)],_0x5abe28=_0x907c2a[_0x440a95(0x1c9)](_0x907c2a['WkOpw'](_0x907c2a[_0x440a95(0x1b5)](_0x907c2a[_0x440a95(0x18b)](_0x907c2a['Ijmez'](_0x907c2a[_0x440a95(0x198)],selfInfo['uin']),_0x440a95(0x1b6)),_0x3dcd2e),_0x907c2a[_0x440a95(0x18c)]),_0x5ab31a);let _0x311bf2={};try{_0x311bf2=await RequestUtil[_0x440a95(0x180)](_0x5abe28);}catch(_0x41d1ae){_0x907c2a[_0x440a95(0x1c0)](logDebug,_0x907c2a[_0x440a95(0x1ca)],_0x41d1ae),_0x311bf2={};}const _0x4c0ad3=_0x311bf2[_0x440a95(0x1b0)];if(!_0x4c0ad3)return'';return Credentials[_0x440a95(0x1a1)]=_0x3dcd2e,Credentials[_0x440a95(0x19c)]=_0x5ab31a,Credentials[_0x440a95(0x1cf)]=Date[_0x440a95(0x1b3)](),Credentials[_0x440a95(0x19b)]=_0x4c0ad3,_0x4c0ad3;}return Credentials[_0x440a95(0x19b)];}catch(_0xf66de6){}return undefined;}}function _0x58a8(){const _0x324606=['hHnnf','1410381isqDSN','getPskey','uid','skey','12VEhLNu','errMsg','now','getSelfInfo','SKaFZ','&clientkey=','496260Qzdsnb','getPSkey','15964179dPYymI','OpCbj','OLmBL','keyIndex','PAqzO','addListener','forceFetchClientKey','HVRMb','uin','10TGxPco','result','getProfileService','onProfileDetailInfoChanged','rhsyp','FBwWW','robotUinRanges','Ijmez','NXGxu','OowZU','162lsbJfL','getUserDetailInfo','getTipOffService','CreatTime','getQzoneCookies','%2Finfocenter&keyindex=19%27','fromEntries','setSelfOnlineStatus','entries','HttpsGetCookies','push','setBuddyProfileLike','clientKey','getRobotUinRange','getMsgService','RkMvk','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','rtmET','tbkBb','获取Pskey失败','GVkXo','Oxsoc','set','qylvr','getSkey','414893aBwRrd','then','length','get','8446866BgILCD','getRobotService','response','gOyVr','OVCic','assign','7407755udaDSO','Skey','KeyIndex','133752cBuOEO','ypBVM','PskeyTime','domainPskeyMap','ClientKey','2Gkweoi','like','setHeader','请求获取Skey时失败','lxSeQ','PskeyData','&u1=https%3A%2F%2Fuser.qzone.qq.com%2F','setStatus','session','SUhiU'];_0x58a8=function(){return _0x324606;};return _0x58a8();} \ 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 1c9d736a..1a033741 100644 --- a/src/core.lib/src/apis/webapi.js +++ b/src/core.lib/src/apis/webapi.js @@ -1 +1 @@ -function _0x343c(_0x23d75f,_0x45dc3b){const _0x1cdde5=_0x1cdd();return _0x343c=function(_0x343cef,_0x45ace4){_0x343cef=_0x343cef-0xb2;let _0x5d2eaf=_0x1cdde5[_0x343cef];return _0x5d2eaf;},_0x343c(_0x23d75f,_0x45dc3b);}const _0x4c6cf5=_0x343c;(function(_0x2f4c8e,_0x26bfdc){const _0x409835=_0x343c,_0x40e383=_0x2f4c8e();while(!![]){try{const _0x13d235=-parseInt(_0x409835(0x113))/0x1+-parseInt(_0x409835(0x133))/0x2*(-parseInt(_0x409835(0x142))/0x3)+-parseInt(_0x409835(0xf3))/0x4*(-parseInt(_0x409835(0xfa))/0x5)+-parseInt(_0x409835(0x11d))/0x6+parseInt(_0x409835(0x14f))/0x7+parseInt(_0x409835(0x11b))/0x8+-parseInt(_0x409835(0x132))/0x9*(parseInt(_0x409835(0xfb))/0xa);if(_0x13d235===_0x26bfdc)break;else _0x40e383['push'](_0x40e383['shift']());}catch(_0x1c4d97){_0x40e383['push'](_0x40e383['shift']());}}}(_0x1cdd,0xbaaab));import{WebGroupData,selfInfo}from'@/core/data';function _0x1cdd(){const _0x4fc184=['aVBKb','jEVxO','获取龙王信息失败','TJhZu','vPcJB','strong_newbie','qun.qq.com','bNFjh','GroupTime','2389338qSyNbK','actorList','LEGEND','WsUZo','ziCbw','获取群聊炽焰失败','qinIJ','desc','fmtRx','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','yybLq','p_skey=','iJXQD','aHhay','OCTCy','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','getSkey','trim','cuNOE','HelUm','length','FMRRQ','获取快乐源泉失败','getGrouptNotice','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','hsEiT','qid=','KaOfF','VkJQN',';\x20p_uin=o','toString','VtMDj','tQEvM','BNjvs','HttpGetText','EMOTION','BqQbo','RQExy','IXwXQ','WDEWX','ejTXz','EIGxV','&group_code=','rOeJh','ODMle','PzeUD','MCecL','emotion_list','&page_limit=20','mzZpF','bvifV','YZyJq','mJhRT','&page_start=','count','txLJR','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','获取当前群荣耀失败','getGroupHonorInfo','ZwfiP','IxHWU','talkativeList','noNRi','LArav','HttpGetJson','odDlC',';\x20uin=o','split','84TzBfXy','legend','XNcZt','GET','DYDRX','eCEfU','OsXea','327465PNKkIz','9790rRceDY','GNjsi','获取群聊之火失败','CBAgv','get','iWOHw','wudAO','uin','all','GroupData','GpCLc','CAEar','emotion','ppobE','EjGGT','bZLil','&end=','iFIbl','coZld','QIdZy','uSPNn','set','mems','avatar','409311XAYfew','errcode','TALKACTIVE','ZqflQ','KWQdY','KqIBV','description','push','1791336OShfcF','ceil','1898040YGhlmF','WYnjB','strong_newbie_list','&bkn=','&qid=','vsBft','performer','WXSEd','ALL','RQshs','&text=','UcbRh','match','qZDVr','talkative_list','ZvxKV','name','uGMiT','cCKxc','PERFROMER','genBkn','6822NSsNcc','583432TevEhi','EGGnx','XPCIf','ZcMBK','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','mgkrg','CDHCY','getPSkey','uczKa','BPTlG','rIqXH','now','nJuii','nShie','current_talkative','3VHTrtS','setGroupNotice','https://qun.qq.com/interactive/honorlist?gc=',';\x20skey='];_0x1cdd=function(){return _0x4fc184;};return _0x1cdd();}import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';import{RequestUtil}from'@/common/utils/request';export var WebHonorType;(function(_0x5d2268){const _0x5cb47f=_0x343c,_0x42900f={'fmtRx':'0|4|2|3|5|1','uSPNn':_0x5cb47f(0x125),'aVBKb':_0x5cb47f(0xd2),'KWQdY':_0x5cb47f(0x130),'JGYuc':_0x5cb47f(0x123),'sUEPw':_0x5cb47f(0x151),'bZLil':_0x5cb47f(0xf4),'dEtVo':'talkative','PzeUD':_0x5cb47f(0x14b)},_0xbbdf03=_0x42900f[_0x5cb47f(0xb7)][_0x5cb47f(0xf2)]('|');let _0x3c358a=0x0;while(!![]){switch(_0xbbdf03[_0x3c358a++]){case'0':_0x5d2268[_0x42900f[_0x5cb47f(0x10f)]]=_0x5cb47f(0x103);continue;case'1':_0x5d2268[_0x42900f[_0x5cb47f(0x146)]]=_0x5cb47f(0x107);continue;case'2':_0x5d2268[_0x42900f[_0x5cb47f(0x117)]]=_0x42900f['JGYuc'];continue;case'3':_0x5d2268[_0x42900f['sUEPw']]=_0x42900f[_0x5cb47f(0x10a)];continue;case'4':_0x5d2268[_0x5cb47f(0x115)]=_0x42900f['dEtVo'];continue;case'5':_0x5d2268['STORONGE_NEWBI']=_0x42900f[_0x5cb47f(0xdc)];continue;}break;}}(WebHonorType||(WebHonorType={})));export class WebApi{static async['getGroupEssenceMsg'](_0x473a01,_0x51cf0f){const _0x1714e0=_0x343c,_0x53dcea={'bvifV':_0x1714e0(0x14c),'XajLa':function(_0x317cfb,_0x3131e7){return _0x317cfb+_0x3131e7;},'ejTXz':function(_0x13102c,_0x5a70a3){return _0x13102c+_0x5a70a3;},'BNjvs':function(_0x26914f,_0x80d431){return _0x26914f+_0x80d431;},'KaOfF':_0x1714e0(0xba),'sNEaT':_0x1714e0(0x145),'EZEFu':_0x1714e0(0xcc),'KqIBV':_0x1714e0(0xf1),'XPCIf':function(_0xbeb154,_0x1a0ba2){return _0xbeb154||_0x1a0ba2;},'BiaYu':function(_0x3d83a7,_0x268b77){return _0x3d83a7+_0x268b77;},'ppobE':function(_0x2f2f11,_0x5c6eea){return _0x2f2f11+_0x5c6eea;},'uGMiT':function(_0x13b445,_0x1b5914){return _0x13b445+_0x1b5914;},'TJhZu':_0x1714e0(0xb8),'EjGGT':_0x1714e0(0xd9),'FEblA':_0x1714e0(0xe4),'BqQbo':_0x1714e0(0xdf),'YoJvr':_0x1714e0(0xf6),'QIdZy':function(_0x4b69c6,_0x5b571e){return _0x4b69c6!==_0x5b571e;}},_0x5181df=(await NTQQUserApi[_0x1714e0(0x13a)]([_0x53dcea[_0x1714e0(0xe1)]]))[_0x53dcea[_0x1714e0(0xe1)]],_0x11169b=await NTQQUserApi[_0x1714e0(0xbf)](),_0x5566da=_0x53dcea['XajLa'](_0x53dcea['XajLa'](_0x53dcea['XajLa'](_0x53dcea[_0x1714e0(0xd7)](_0x53dcea[_0x1714e0(0xd0)](_0x53dcea[_0x1714e0(0xca)],_0x5181df),_0x53dcea['sNEaT'])+_0x11169b+_0x53dcea['EZEFu'],selfInfo['uin']),_0x53dcea[_0x1714e0(0x118)]),selfInfo['uin']);if(_0x53dcea[_0x1714e0(0x135)](!_0x11169b,!_0x5181df))return undefined;const _0x2850ac=WebApi[_0x1714e0(0x131)](_0x11169b),_0x24bb1a=_0x53dcea[_0x1714e0(0xd7)](_0x53dcea['BiaYu'](_0x53dcea[_0x1714e0(0x108)](_0x53dcea[_0x1714e0(0x12e)](_0x53dcea['ejTXz'](_0x53dcea[_0x1714e0(0x149)],_0x2850ac),_0x53dcea[_0x1714e0(0x109)]),_0x473a01)+_0x53dcea['FEblA'],_0x51cf0f),_0x53dcea[_0x1714e0(0xd3)]);let _0x1665e8;try{_0x1665e8=await RequestUtil[_0x1714e0(0xef)](_0x24bb1a,_0x53dcea['YoJvr'],'',{'Cookie':_0x5566da});}catch{return undefined;}if(_0x53dcea[_0x1714e0(0x10e)](_0x1665e8['retcode'],0x0))return undefined;return _0x1665e8;}static async['getGroupMembers'](_0x594e06,_0x135b10=!![]){const _0x511976=_0x343c,_0x1b5b76={'ZvxKV':function(_0x50ce7e,_0x4f971d){return _0x50ce7e-_0x4f971d;},'WDEWX':function(_0x3ef2bf,_0x52c6d2){return _0x3ef2bf*_0x52c6d2;},'BPTlG':_0x511976(0x14c),'HelUm':function(_0x1468de,_0x47618e){return _0x1468de+_0x47618e;},'ODMle':function(_0x55d682,_0x2b8fbe){return _0x55d682+_0x2b8fbe;},'noNRi':function(_0x88cabf,_0x5b48bc){return _0x88cabf+_0x5b48bc;},'ziCbw':function(_0x465b2d,_0x15c26a){return _0x465b2d+_0x15c26a;},'UcbRh':'p_skey=','iJXQD':_0x511976(0xcc),'DYDRX':function(_0xc41481,_0x49727f){return _0xc41481+_0x49727f;},'iFIbl':_0x511976(0x137),'FMRRQ':'POST','hsEiT':function(_0x4a43fd,_0x2aa5ae){return _0x4a43fd!==_0x2aa5ae;},'RQExy':function(_0x5042b5,_0x223936){return _0x5042b5/_0x223936;},'wudAO':function(_0x157ced,_0x2e9e46){return _0x157ced<=_0x2e9e46;},'OCTCy':function(_0x5d6735,_0x359709){return _0x5d6735+_0x359709;},'ZqflQ':_0x511976(0xe7),'pRJJq':_0x511976(0x10b),'OVJwV':function(_0x3f9b6a,_0x3878a8){return _0x3f9b6a*_0x3878a8;},'AoceZ':'&sort=1&gc=','ZwfiP':function(_0x2b8bde,_0x57998d){return _0x2b8bde<=_0x57998d;}};let _0x34afc8=new Array();try{let _0xe02d39=WebGroupData[_0x511976(0x104)][_0x511976(0xff)](_0x594e06),_0x462a3d=WebGroupData[_0x511976(0x14e)][_0x511976(0xff)](_0x594e06);if(!_0x462a3d||_0x1b5b76['ZvxKV'](Date[_0x511976(0x13e)](),_0x462a3d)>_0x1b5b76[_0x511976(0xd6)](0x708,0x3e8)||!_0x135b10){const _0x195d8c=(await NTQQUserApi['getPSkey']([_0x1b5b76[_0x511976(0x13c)]]))[_0x1b5b76[_0x511976(0x13c)]],_0x212406=await NTQQUserApi[_0x511976(0xbf)](),_0x3dbe23=_0x1b5b76[_0x511976(0xc2)](_0x1b5b76[_0x511976(0xc2)](_0x1b5b76[_0x511976(0xdb)](_0x1b5b76[_0x511976(0xed)](_0x1b5b76['ziCbw'](_0x1b5b76[_0x511976(0x128)],_0x195d8c),_0x511976(0x145)),_0x212406),_0x1b5b76[_0x511976(0xbb)]),selfInfo[_0x511976(0x102)]);if(!_0x212406||!_0x195d8c)return _0x34afc8;const _0x1c4ddf=WebApi[_0x511976(0x131)](_0x212406),_0x456ab2=[],_0xb7c69c=await RequestUtil[_0x511976(0xef)](_0x1b5b76[_0x511976(0xf7)](_0x1b5b76[_0x511976(0xb3)](_0x1b5b76[_0x511976(0x10c)],_0x594e06)+_0x511976(0x120),_0x1c4ddf),_0x1b5b76[_0x511976(0xc4)],'',{'Cookie':_0x3dbe23});if(!_0xb7c69c?.[_0x511976(0xe5)]||_0x1b5b76[_0x511976(0xc8)](_0xb7c69c?.[_0x511976(0x114)],0x0)||!_0xb7c69c?.[_0x511976(0x111)])return[];else for(const _0x3e9e5e in _0xb7c69c[_0x511976(0x111)]){_0x34afc8[_0x511976(0x11a)](_0xb7c69c['mems'][_0x3e9e5e]);}const _0x12982e=Math[_0x511976(0x11c)](_0x1b5b76[_0x511976(0xd4)](_0xb7c69c['count'],0x28));for(let _0x394377=0x2;_0x1b5b76[_0x511976(0x101)](_0x394377,_0x12982e);_0x394377++){const _0x31c3cf=RequestUtil[_0x511976(0xef)](_0x1b5b76['noNRi'](_0x1b5b76['OCTCy'](_0x1b5b76[_0x511976(0xbd)](_0x1b5b76[_0x511976(0xc2)](_0x1b5b76[_0x511976(0xc2)](_0x1b5b76[_0x511976(0x116)]+_0x1b5b76[_0x511976(0xd6)](_0x1b5b76[_0x511976(0x12c)](_0x394377,0x1),0x28),_0x1b5b76['pRJJq']),_0x1b5b76['OVJwV'](_0x394377,0x28)),_0x1b5b76['AoceZ'])+_0x594e06,_0x511976(0x120)),_0x1c4ddf),_0x1b5b76[_0x511976(0xc4)],'',{'Cookie':_0x3dbe23});_0x456ab2[_0x511976(0x11a)](_0x31c3cf);}for(let _0x39d6c7=0x1;_0x1b5b76[_0x511976(0xea)](_0x39d6c7,_0x12982e);_0x39d6c7++){const _0x49455b=await _0x456ab2[_0x39d6c7];if(!_0x49455b?.['count']||_0x1b5b76['hsEiT'](_0x49455b?.['errcode'],0x0)||!_0x49455b?.['mems'])continue;for(const _0x33519f in _0x49455b[_0x511976(0x111)]){_0x34afc8[_0x511976(0x11a)](_0x49455b['mems'][_0x33519f]);}}WebGroupData[_0x511976(0x104)][_0x511976(0x110)](_0x594e06,_0x34afc8),WebGroupData['GroupTime'][_0x511976(0x110)](_0x594e06,Date[_0x511976(0x13e)]());}else _0x34afc8=_0xe02d39;}catch{return _0x34afc8;}return _0x34afc8;}static async[_0x4c6cf5(0x143)](_0xfbaec1,_0x1fea6c=''){const _0x272bf3=_0x4c6cf5,_0x2d9c43={'tQEvM':'qun.qq.com','vPcJB':function(_0x1c8303,_0x5e1468){return _0x1c8303+_0x5e1468;},'VkJQN':function(_0xc6c950,_0x12398f){return _0xc6c950+_0x12398f;},'rIqXH':function(_0x4937a7,_0x1dc1b5){return _0x4937a7+_0x1dc1b5;},'dHcUU':_0x272bf3(0xba),'EIGxV':_0x272bf3(0x145),'nJuii':function(_0x845412,_0x176a52){return _0x845412||_0x176a52;},'qZDVr':function(_0x5f85be,_0x21303d){return _0x5f85be+_0x21303d;},'CDHCY':function(_0x226aad,_0x486550){return _0x226aad+_0x486550;},'bNFjh':_0x272bf3(0xc9),'geYKW':_0x272bf3(0x120),'YZyJq':_0x272bf3(0xbe),'mzZpF':function(_0x162825,_0x55b69d){return _0x162825+_0x55b69d;},'iWOHw':'https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','nShie':_0x272bf3(0xf6)},_0x3cf7b4=(await NTQQUserApi['getPSkey']([_0x272bf3(0x14c)]))[_0x2d9c43[_0x272bf3(0xcf)]],_0x1c8126=await NTQQUserApi['getSkey'](),_0x24c9eb=_0x2d9c43['vPcJB'](_0x2d9c43[_0x272bf3(0xcb)](_0x2d9c43[_0x272bf3(0x13d)](_0x2d9c43['rIqXH'](_0x2d9c43['dHcUU'],_0x3cf7b4),_0x2d9c43[_0x272bf3(0xd8)]),_0x1c8126)+';\x20p_uin=o',selfInfo[_0x272bf3(0x102)]);let _0x488612=undefined;if(_0x2d9c43[_0x272bf3(0x13f)](!_0x1c8126,!_0x3cf7b4))return undefined;const _0x32f430=WebApi[_0x272bf3(0x131)](_0x1c8126),_0x14ff82=_0x2d9c43[_0x272bf3(0x12a)](_0x2d9c43[_0x272bf3(0x139)](_0x2d9c43[_0x272bf3(0xcb)](_0x2d9c43[_0x272bf3(0xcb)](_0x2d9c43[_0x272bf3(0x14a)](_0x2d9c43[_0x272bf3(0xcb)](_0x2d9c43[_0x272bf3(0x14d)],_0xfbaec1),_0x2d9c43['geYKW']),_0x32f430),_0x272bf3(0x127)),_0x1fea6c),_0x2d9c43[_0x272bf3(0xe2)]),_0x36d6ff=_0x2d9c43[_0x272bf3(0xe0)](_0x2d9c43[_0x272bf3(0x100)],_0x32f430);try{return _0x488612=await RequestUtil[_0x272bf3(0xef)](_0x36d6ff,_0x2d9c43[_0x272bf3(0x140)],'',{'Cookie':_0x24c9eb}),_0x488612;}catch(_0x372a33){return undefined;}return undefined;}static async[_0x4c6cf5(0xc6)](_0x24626f){const _0x443551=_0x4c6cf5,_0x674d9={'WsUZo':_0x443551(0x14c),'txLJR':function(_0xc06517,_0x5212f7){return _0xc06517+_0x5212f7;},'CAEar':function(_0x504fe7,_0x1cebcd){return _0x504fe7+_0x1cebcd;},'ZbfBT':_0x443551(0xba),'QddAL':_0x443551(0xcc),'RQshs':function(_0x10390c,_0x5b1bec){return _0x10390c||_0x5b1bec;},'OsXea':function(_0x413470,_0x3cd9e1){return _0x413470+_0x3cd9e1;},'mgkrg':function(_0x54fdf9,_0x1f929d){return _0x54fdf9+_0x1f929d;},'JFAmP':function(_0x13cdf3,_0x55976a){return _0x13cdf3+_0x55976a;},'EGGnx':_0x443551(0xc7),'rgbsr':_0x443551(0x121),'VtMDj':'&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','ZcMBK':_0x443551(0xf6)},_0x3b020a=(await NTQQUserApi[_0x443551(0x13a)]([_0x674d9[_0x443551(0xb2)]]))[_0x674d9['WsUZo']],_0x499fd9=await NTQQUserApi[_0x443551(0xbf)](),_0x7799f2=_0x674d9[_0x443551(0xe6)](_0x674d9[_0x443551(0xe6)](_0x674d9[_0x443551(0x106)](_0x674d9[_0x443551(0x106)](_0x674d9['ZbfBT']+_0x3b020a,_0x443551(0x145)),_0x499fd9),_0x674d9['QddAL']),selfInfo['uin']);let _0x5851e5=undefined;if(_0x674d9[_0x443551(0x126)](!_0x499fd9,!_0x3b020a))return undefined;const _0x460e8a=WebApi[_0x443551(0x131)](_0x499fd9),_0x27c8e0=_0x674d9[_0x443551(0xf9)](_0x674d9[_0x443551(0x138)](_0x674d9[_0x443551(0x138)](_0x674d9['JFAmP'](_0x674d9[_0x443551(0x134)],_0x460e8a),_0x674d9['rgbsr']),_0x24626f),_0x674d9[_0x443551(0xce)]);try{_0x5851e5=await RequestUtil[_0x443551(0xef)](_0x27c8e0,_0x674d9[_0x443551(0x136)],'',{'Cookie':_0x7799f2});if(_0x5851e5?.['ec']!==0x0)return undefined;return _0x5851e5;}catch(_0x484cfa){return undefined;}return undefined;}static[_0x4c6cf5(0x131)](_0x5a012a){const _0x4119b7=_0x4c6cf5,_0x47fb18={'IxHWU':function(_0x20801a,_0x1d4f05){return _0x20801a||_0x1d4f05;},'uczKa':function(_0x4214c9,_0x352032){return _0x4214c9+_0x352032;},'WYnjB':function(_0x2f5e44,_0x3060b0){return _0x2f5e44<<_0x3060b0;},'cuNOE':function(_0x2a854e,_0x4ad1be){return _0x2a854e&_0x4ad1be;}};_0x5a012a=_0x47fb18[_0x4119b7(0xeb)](_0x5a012a,'');let _0x3d84b5=0x1505;for(let _0x50df4e=0x0;_0x50df4e<_0x5a012a[_0x4119b7(0xc3)];_0x50df4e++){const _0x10ee48=_0x5a012a['charCodeAt'](_0x50df4e);_0x3d84b5=_0x47fb18[_0x4119b7(0x13b)](_0x3d84b5+_0x47fb18[_0x4119b7(0x11e)](_0x3d84b5,0x5),_0x10ee48);}return _0x47fb18[_0x4119b7(0xc1)](_0x3d84b5,0x7fffffff)[_0x4119b7(0xcd)]();}static async[_0x4c6cf5(0xe9)](_0x1788b6,_0x536c25){const _0x348917=_0x4c6cf5,_0x3b7986={'FyECO':function(_0x45db54,_0xfd6dda){return _0x45db54+_0xfd6dda;},'aHhay':function(_0x3907aa,_0x3ee68d){return _0x3907aa+_0x3ee68d;},'LArav':function(_0x11db3f,_0x412c5a){return _0x11db3f+_0x412c5a;},'odDlC':_0x348917(0x144),'cCKxc':_0x348917(0xf6),'CBAgv':function(_0x54d23c,_0x262634){return _0x54d23c===_0x262634;},'uPubw':function(_0x3d296e,_0x2201c6,_0x5e480a,_0x359d5d){return _0x3d296e(_0x2201c6,_0x5e480a,_0x359d5d);},'eCEfU':_0x348917(0xe8),'GNjsi':_0x348917(0x14c),'jEVxO':function(_0x49a682,_0x418a2d){return _0x49a682||_0x418a2d;},'XNcZt':function(_0x255d58,_0x3e1aa4){return _0x255d58+_0x3e1aa4;},'BnPuo':function(_0x34e143,_0x1de3e2){return _0x34e143+_0x1de3e2;},'kMAYU':_0x348917(0xba),'MCecL':_0x348917(0x145),'IXwXQ':_0x348917(0xcc),'WXSEd':function(_0x4928d4,_0x1cf840){return _0x4928d4===_0x1cf840;},'GpCLc':function(_0x14eab7,_0x621274,_0x5d8918){return _0x14eab7(_0x621274,_0x5d8918);},'coZld':_0x348917(0x148),'vsBft':function(_0x5e1d19,_0x1659b4){return _0x5e1d19(_0x1659b4);},'rOeJh':function(_0x5f2c56,_0x2f1579){return _0x5f2c56===_0x2f1579;},'mJhRT':_0x348917(0xb4),'yybLq':function(_0x391d79,_0x1389d7,_0x4de677){return _0x391d79(_0x1389d7,_0x4de677);},'qinIJ':_0x348917(0xc5)},_0x4d8e43=(await NTQQUserApi[_0x348917(0x13a)]([_0x3b7986[_0x348917(0xfc)]]))[_0x3b7986[_0x348917(0xfc)]],_0x55468e=await NTQQUserApi['getSkey']();if(_0x3b7986[_0x348917(0x147)](!_0x55468e,!_0x4d8e43))return undefined;async function _0x2efa62(_0x29cd16,_0x1fc5ea){const _0x189f5d=_0x348917;let _0x1be0f7=_0x3b7986['FyECO'](_0x3b7986[_0x189f5d(0xbc)](_0x3b7986['LArav'](_0x3b7986[_0x189f5d(0xf0)],_0x29cd16),'&type='),_0x1fc5ea[_0x189f5d(0xcd)]()),_0x1af76c='',_0x21b804;try{_0x1af76c=await RequestUtil[_0x189f5d(0xd1)](_0x1be0f7,_0x3b7986[_0x189f5d(0x12f)],'',{'Cookie':_0x4f997e});const _0x53ffb7=_0x1af76c[_0x189f5d(0x129)](/window\.__INITIAL_STATE__=(.*?);/);return _0x53ffb7&&(_0x21b804=JSON['parse'](_0x53ffb7[0x1][_0x189f5d(0xc0)]())),_0x3b7986[_0x189f5d(0xfe)](_0x1fc5ea,0x1)?_0x21b804?.[_0x189f5d(0xec)]:_0x21b804?.[_0x189f5d(0x150)];}catch(_0x48ce38){_0x3b7986['uPubw'](logDebug,_0x3b7986[_0x189f5d(0xf8)],_0x1be0f7,_0x48ce38);}return undefined;}let _0x43bb43={'group_id':_0x1788b6};const _0x4f997e=_0x3b7986[_0x348917(0xf5)](_0x3b7986['BnPuo'](_0x3b7986[_0x348917(0xee)](_0x3b7986['kMAYU'],_0x4d8e43),_0x3b7986[_0x348917(0xdd)])+_0x55468e+_0x3b7986[_0x348917(0xd5)]+selfInfo[_0x348917(0x102)],_0x348917(0xf1))+selfInfo[_0x348917(0x102)];if(_0x3b7986[_0x348917(0x124)](_0x536c25,WebHonorType[_0x348917(0x115)])||_0x3b7986[_0x348917(0x124)](_0x536c25,WebHonorType[_0x348917(0x125)]))try{let _0x1ff126=await _0x3b7986[_0x348917(0x105)](_0x2efa62,_0x1788b6,0x1);if(!_0x1ff126)throw new Error(_0x3b7986[_0x348917(0x10d)]);_0x43bb43[_0x348917(0x141)]={'user_id':_0x1ff126[0x0]?.[_0x348917(0x102)],'avatar':_0x1ff126[0x0]?.[_0x348917(0x112)],'nickname':_0x1ff126[0x0]?.[_0x348917(0x12d)],'day_count':0x0,'description':_0x1ff126[0x0]?.[_0x348917(0xb6)]},_0x43bb43[_0x348917(0x12b)]=[];for(const _0x11d154 of _0x1ff126){_0x43bb43[_0x348917(0x12b)][_0x348917(0x11a)]({'user_id':_0x11d154?.[_0x348917(0x102)],'avatar':_0x11d154?.[_0x348917(0x112)],'description':_0x11d154?.['desc'],'day_count':0x0,'nickname':_0x11d154?.[_0x348917(0x12d)]});}}catch(_0x10a548){logDebug(_0x10a548);}if(_0x3b7986[_0x348917(0xfe)](_0x536c25,WebHonorType['PERFROMER'])||_0x3b7986[_0x348917(0xfe)](_0x536c25,WebHonorType[_0x348917(0x125)]))try{let _0x4caacf=await _0x3b7986[_0x348917(0x105)](_0x2efa62,_0x1788b6,0x2);if(!_0x4caacf)throw new Error(_0x348917(0xfd));_0x43bb43['performer_list']=[];for(const _0x531a77 of _0x4caacf){_0x43bb43['performer_list'][_0x348917(0x11a)]({'user_id':_0x531a77?.[_0x348917(0x102)],'nickname':_0x531a77?.['name'],'avatar':_0x531a77?.['avatar'],'description':_0x531a77?.['desc']});}}catch(_0x3179be){_0x3b7986[_0x348917(0x122)](logDebug,_0x3179be);}if(_0x536c25===WebHonorType[_0x348917(0x130)]||_0x3b7986[_0x348917(0xda)](_0x536c25,WebHonorType[_0x348917(0x125)]))try{let _0x559d56=await _0x2efa62(_0x1788b6,0x3);if(!_0x559d56)throw new Error(_0x3b7986['mJhRT']);_0x43bb43['legend_list']=[];for(const _0x49c30f of _0x559d56){_0x43bb43['legend_list'][_0x348917(0x11a)]({'user_id':_0x49c30f?.['uin'],'nickname':_0x49c30f?.[_0x348917(0x12d)],'avatar':_0x49c30f?.['avatar'],'desc':_0x49c30f?.[_0x348917(0x119)]});}}catch(_0x5808ac){_0x3b7986[_0x348917(0xb9)](logDebug,_0x3b7986[_0x348917(0xe3)],_0x5808ac);}if(_0x3b7986['CBAgv'](_0x536c25,WebHonorType[_0x348917(0xd2)])||_0x3b7986['CBAgv'](_0x536c25,WebHonorType[_0x348917(0x125)]))try{let _0x35b39a=await _0x3b7986['yybLq'](_0x2efa62,_0x1788b6,0x6);if(!_0x35b39a)throw new Error('获取快乐源泉失败');_0x43bb43[_0x348917(0xde)]=[];for(const _0x545fd0 of _0x35b39a){_0x43bb43[_0x348917(0xde)][_0x348917(0x11a)]({'user_id':_0x545fd0?.['uin'],'nickname':_0x545fd0?.[_0x348917(0x12d)],'avatar':_0x545fd0?.[_0x348917(0x112)],'desc':_0x545fd0?.[_0x348917(0x119)]});}}catch(_0x1ed231){_0x3b7986['yybLq'](logDebug,_0x3b7986[_0x348917(0xb5)],_0x1ed231);}return(_0x536c25===WebHonorType[_0x348917(0xd2)]||_0x536c25===WebHonorType[_0x348917(0x125)])&&(_0x43bb43[_0x348917(0x11f)]=[]),_0x43bb43;}} \ No newline at end of file +function _0x8c59(_0x599291,_0x1d4e64){const _0x44fc3a=_0x44fc();return _0x8c59=function(_0x8c590d,_0xca9b00){_0x8c590d=_0x8c590d-0x17a;let _0x3f558d=_0x44fc3a[_0x8c590d];return _0x3f558d;},_0x8c59(_0x599291,_0x1d4e64);}const _0x4f7cc5=_0x8c59;(function(_0x2a3c33,_0x476e1b){const _0xa9bf4d=_0x8c59,_0x3e76a9=_0x2a3c33();while(!![]){try{const _0x5f2c54=parseInt(_0xa9bf4d(0x1b2))/0x1+-parseInt(_0xa9bf4d(0x1db))/0x2+parseInt(_0xa9bf4d(0x214))/0x3+parseInt(_0xa9bf4d(0x1b9))/0x4*(-parseInt(_0xa9bf4d(0x191))/0x5)+-parseInt(_0xa9bf4d(0x1de))/0x6*(-parseInt(_0xa9bf4d(0x1e4))/0x7)+parseInt(_0xa9bf4d(0x1cf))/0x8*(parseInt(_0xa9bf4d(0x1a1))/0x9)+-parseInt(_0xa9bf4d(0x1a5))/0xa;if(_0x5f2c54===_0x476e1b)break;else _0x3e76a9['push'](_0x3e76a9['shift']());}catch(_0xbb2bf2){_0x3e76a9['push'](_0x3e76a9['shift']());}}}(_0x44fc,0xece03));import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';function _0x44fc(){const _0x302589=['10UQwQzE','kcrzh','set','qid=','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','getGroupHonorInfo','gllMy','talkativeList','klcRF','TALKACTIVE','push','hFmOG','获取群聊之火失败','yuqOz','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','&sort=1&gc=','12784023vfqjoj','all','kDQre','performer','27258650fVWgLs','PERFROMER','&bkn=','talkative_list','AQMkT','&page_limit=20','VoENZ','errcode','MYRhf','getGroupMembers','BNAwc','lfNvG','OIuoh','1842010EfDTdc','wIlzG','GroupData','ZwmDa','charCodeAt','avatar','naBGV','1422328rmMjnl','KVzDJ','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','performer_list','https://qun.qq.com/interactive/honorlist?gc=','HttpGetJson','ZyYfc','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','Wvdeg','ynfhd','jqSLa',';\x20p_uin=o','czkRm','lWGeh','xrair','qun.qq.com','emotion_list','3|5|1|0|4|2','获取群聊炽焰失败','GET','split','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','8EcKPbb','current_talkative','&qid=','getGroupEssenceMsg','pTriJ','ceil','PgeSK','setGroupNotice','genBkn','IBRsB','dzjEb','nhGVA','74482kTWqfk','strong_newbie',';\x20skey=','7734JyJfNM','CtPYc','jyNUC','parse','syQVR','jtFsy','4067Schxjf','EMOTION','AqdjZ','JLYQA','uKDHx','emODe','desc','获取快乐源泉失败','HFwWU','wqayY','RZrBB','trim','juBHh','MSxvU','toString','TaIpM','hIFBS','match','PtZIr','vUxQc','OxKkv','oExbo','WUOTg','legend','POST','GroupTime','teqJl','strong_newbie_list','borYn','fcHxb','STORONGE_NEWBI','zgLSm','wvzRQ',';\x20uin=o','ilbcx','ALL','YBJaN','fbmeK','VAyMA','description','RLBLE','&page_start=','AOXxq','&text=','JAQoQ','talkative','hJxkv','count','1299441qVRpbS','zHoYx','get','WauNo','now','vFYST','SRkYJ','legend_list','getGrouptNotice','jBgaW','getSkey','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','p_skey=','&type=','DYuFq','getPSkey','&group_code=','cdgEs','mems','uin','ZgADu','name','ZFxIR','TesmW','vBvGS'];_0x44fc=function(){return _0x302589;};return _0x44fc();}import{NTQQUserApi}from'./user';import{RequestUtil}from'@/common/utils/request';export var WebHonorType;(function(_0x22b0a2){const _0x51de01=_0x8c59,_0x2a22f3={'oMbNj':_0x51de01(0x1ca),'lfNvG':'LEGEND','rndoR':_0x51de01(0x1a6),'yuqOz':_0x51de01(0x1a4),'KVzDJ':_0x51de01(0x202),'ksNwG':_0x51de01(0x1dc),'nhGVA':_0x51de01(0x19a),'JAQoQ':_0x51de01(0x211)},_0x568fc9=_0x2a22f3['oMbNj'][_0x51de01(0x1cd)]('|');let _0x40b10e=0x0;while(!![]){switch(_0x568fc9[_0x40b10e++]){case'0':_0x22b0a2[_0x2a22f3[_0x51de01(0x1b0)]]=_0x51de01(0x1fb);continue;case'1':_0x22b0a2[_0x2a22f3['rndoR']]=_0x2a22f3[_0x51de01(0x19e)];continue;case'2':_0x22b0a2['EMOTION']='emotion';continue;case'3':_0x22b0a2['ALL']=_0x51de01(0x1a2);continue;case'4':_0x22b0a2[_0x2a22f3[_0x51de01(0x1ba)]]=_0x2a22f3['ksNwG'];continue;case'5':_0x22b0a2[_0x2a22f3[_0x51de01(0x1da)]]=_0x2a22f3[_0x51de01(0x210)];continue;}break;}}(WebHonorType||(WebHonorType={})));export class WebApi{static async[_0x4f7cc5(0x1d2)](_0xf5141d,_0x36d964){const _0x13e34b=_0x4f7cc5,_0x585ffd={'wqayY':_0x13e34b(0x1c8),'BNAwc':function(_0x5a0718,_0x1a2818){return _0x5a0718+_0x1a2818;},'MSxvU':function(_0x5ab74d,_0x5338d2){return _0x5ab74d+_0x5338d2;},'fbmeK':_0x13e34b(0x1dd),'BzZku':_0x13e34b(0x1c4),'TesmW':_0x13e34b(0x205),'RZrBB':function(_0x1e9338,_0xb5f7bf){return _0x1e9338+_0xb5f7bf;},'XkgUv':function(_0x1d517b,_0x6ed61d){return _0x1d517b+_0x6ed61d;},'NAmkj':function(_0x299fa7,_0x4e9967){return _0x299fa7+_0x4e9967;},'kcrzh':function(_0x4c5ea7,_0x51ba6f){return _0x4c5ea7+_0x51ba6f;},'wvzRQ':_0x13e34b(0x1bb),'zgLSm':_0x13e34b(0x188),'vUxQc':_0x13e34b(0x20d),'naBGV':_0x13e34b(0x1aa),'kDQre':'GET','ZgADu':function(_0x5286f8,_0x1596a3){return _0x5286f8!==_0x1596a3;}},_0x5034db=(await NTQQUserApi[_0x13e34b(0x187)]([_0x585ffd[_0x13e34b(0x1ed)]]))[_0x585ffd[_0x13e34b(0x1ed)]],_0x42c8e3=await NTQQUserApi[_0x13e34b(0x182)](),_0x41cafa=_0x585ffd[_0x13e34b(0x1af)](_0x585ffd[_0x13e34b(0x1af)](_0x585ffd[_0x13e34b(0x1af)](_0x585ffd[_0x13e34b(0x1af)](_0x585ffd[_0x13e34b(0x1f1)](_0x585ffd[_0x13e34b(0x1f1)](_0x13e34b(0x184),_0x5034db)+_0x585ffd[_0x13e34b(0x209)],_0x42c8e3),_0x585ffd['BzZku']),selfInfo[_0x13e34b(0x18b)]),_0x585ffd[_0x13e34b(0x18f)]),selfInfo[_0x13e34b(0x18b)]);if(!_0x42c8e3||!_0x5034db)return undefined;const _0x14dc76=WebApi[_0x13e34b(0x1d7)](_0x42c8e3),_0x29f3f3=_0x585ffd[_0x13e34b(0x1ee)](_0x585ffd['XkgUv'](_0x585ffd[_0x13e34b(0x1ee)](_0x585ffd['NAmkj'](_0x585ffd[_0x13e34b(0x192)](_0x585ffd[_0x13e34b(0x204)],_0x14dc76),_0x585ffd[_0x13e34b(0x203)]),_0xf5141d),_0x585ffd[_0x13e34b(0x1f7)]),_0x36d964)+_0x585ffd[_0x13e34b(0x1b8)];let _0x27c659;try{_0x27c659=await RequestUtil[_0x13e34b(0x1be)](_0x29f3f3,_0x585ffd[_0x13e34b(0x1a3)],'',{'Cookie':_0x41cafa});}catch{return undefined;}if(_0x585ffd[_0x13e34b(0x18c)](_0x27c659['retcode'],0x0))return undefined;return _0x27c659;}static async[_0x4f7cc5(0x1ae)](_0x3da941,_0x525778=!![]){const _0x4c8835=_0x4f7cc5,_0x11e27a={'gllMy':function(_0x6851c3,_0x434d0a){return _0x6851c3>_0x434d0a;},'RLBLE':function(_0x381818,_0x5c9c92){return _0x381818*_0x5c9c92;},'PgeSK':_0x4c8835(0x1c8),'PtZIr':function(_0xd2cf6b,_0x92c006){return _0xd2cf6b+_0x92c006;},'oExbo':function(_0x3afcc3,_0x39c36f){return _0x3afcc3+_0x39c36f;},'ilbcx':'p_skey=','jDIhz':_0x4c8835(0x1dd),'YISUP':_0x4c8835(0x1c4),'WUOTg':_0x4c8835(0x1fc),'OxKkv':function(_0x3ad30f,_0x530eb5){return _0x3ad30f!==_0x530eb5;},'bnphi':function(_0x9a33be,_0x20e540){return _0x9a33be+_0x20e540;},'JLYQA':function(_0x483d57,_0x5e2083){return _0x483d57+_0x5e2083;},'IBRsB':function(_0x57bba4,_0x2fe82b){return _0x57bba4+_0x2fe82b;},'DYuFq':_0x4c8835(0x19f),'jyNUC':function(_0x1ae0b6,_0x394b7b){return _0x1ae0b6*_0x394b7b;},'AqdjZ':function(_0x258981,_0x17b2ac){return _0x258981-_0x17b2ac;},'vFYST':'&end=','jUxIK':_0x4c8835(0x1a0),'VAyMA':'&bkn=','zHoYx':function(_0x53aed6,_0x3c5c07){return _0x53aed6<=_0x3c5c07;}};let _0x2b9c98=new Array();try{let _0x10dc96=WebGroupData[_0x4c8835(0x1b4)][_0x4c8835(0x17a)](_0x3da941),_0x1f44d8=WebGroupData['GroupTime'][_0x4c8835(0x17a)](_0x3da941);if(!_0x1f44d8||_0x11e27a[_0x4c8835(0x197)](Date['now']()-_0x1f44d8,_0x11e27a[_0x4c8835(0x20c)](0x708,0x3e8))||!_0x525778){const _0x35ed79=(await NTQQUserApi[_0x4c8835(0x187)]([_0x11e27a[_0x4c8835(0x1d5)]]))[_0x11e27a['PgeSK']],_0x3e6791=await NTQQUserApi[_0x4c8835(0x182)](),_0x589c22=_0x11e27a[_0x4c8835(0x1f6)](_0x11e27a[_0x4c8835(0x1f6)](_0x11e27a[_0x4c8835(0x1f9)](_0x11e27a[_0x4c8835(0x206)],_0x35ed79)+_0x11e27a['jDIhz'],_0x3e6791),_0x11e27a['YISUP'])+selfInfo['uin'];if(!_0x3e6791||!_0x35ed79)return _0x2b9c98;const _0x255e20=WebApi[_0x4c8835(0x1d7)](_0x3e6791),_0x80f86a=[],_0x40575a=await RequestUtil['HttpGetJson'](_0x11e27a[_0x4c8835(0x1f6)](_0x4c8835(0x1c0),_0x3da941)+_0x4c8835(0x1a7)+_0x255e20,_0x11e27a[_0x4c8835(0x1fa)],'',{'Cookie':_0x589c22});if(!_0x40575a?.[_0x4c8835(0x213)]||_0x11e27a[_0x4c8835(0x1f8)](_0x40575a?.[_0x4c8835(0x1ac)],0x0)||!_0x40575a?.[_0x4c8835(0x18a)])return[];else for(const _0x32a239 in _0x40575a['mems']){_0x2b9c98[_0x4c8835(0x19b)](_0x40575a[_0x4c8835(0x18a)][_0x32a239]);}const _0x4adfb6=Math[_0x4c8835(0x1d4)](_0x40575a[_0x4c8835(0x213)]/0x28);for(let _0x5a155a=0x2;_0x5a155a<=_0x4adfb6;_0x5a155a++){const _0x56b9fe=RequestUtil[_0x4c8835(0x1be)](_0x11e27a[_0x4c8835(0x1f9)](_0x11e27a['bnphi'](_0x11e27a['PtZIr'](_0x11e27a[_0x4c8835(0x1f9)](_0x11e27a[_0x4c8835(0x1e7)](_0x11e27a[_0x4c8835(0x1d8)](_0x11e27a[_0x4c8835(0x186)],_0x11e27a[_0x4c8835(0x1e0)](_0x11e27a[_0x4c8835(0x1e6)](_0x5a155a,0x1),0x28)),_0x11e27a[_0x4c8835(0x17d)]),_0x11e27a[_0x4c8835(0x20c)](_0x5a155a,0x28)),_0x11e27a['jUxIK']),_0x3da941),_0x11e27a[_0x4c8835(0x20a)])+_0x255e20,_0x11e27a[_0x4c8835(0x1fa)],'',{'Cookie':_0x589c22});_0x80f86a[_0x4c8835(0x19b)](_0x56b9fe);}for(let _0x431a89=0x1;_0x11e27a[_0x4c8835(0x215)](_0x431a89,_0x4adfb6);_0x431a89++){const _0x1197cd=await _0x80f86a[_0x431a89];if(!_0x1197cd?.['count']||_0x11e27a[_0x4c8835(0x1f8)](_0x1197cd?.[_0x4c8835(0x1ac)],0x0)||!_0x1197cd?.[_0x4c8835(0x18a)])continue;for(const _0x1f4e84 in _0x1197cd[_0x4c8835(0x18a)]){_0x2b9c98['push'](_0x1197cd[_0x4c8835(0x18a)][_0x1f4e84]);}}WebGroupData['GroupData']['set'](_0x3da941,_0x2b9c98),WebGroupData[_0x4c8835(0x1fd)][_0x4c8835(0x193)](_0x3da941,Date[_0x4c8835(0x17c)]());}else _0x2b9c98=_0x10dc96;}catch{return _0x2b9c98;}return _0x2b9c98;}static async[_0x4f7cc5(0x1d6)](_0x5cd667,_0x1c76f1=''){const _0x2e2be5=_0x4f7cc5,_0x3c0901={'ZyYfc':'qun.qq.com','QXwgh':function(_0x442e5a,_0x41d387){return _0x442e5a+_0x41d387;},'emODe':function(_0x49fb66,_0xc5dfc){return _0x49fb66+_0xc5dfc;},'Wvdeg':'p_skey=','vBvGS':_0x2e2be5(0x1dd),'jqSLa':function(_0x19de04,_0x5cf2e2){return _0x19de04+_0x5cf2e2;},'hJxkv':_0x2e2be5(0x194),'syQVR':_0x2e2be5(0x1a7),'czkRm':_0x2e2be5(0x20f),'teqJl':_0x2e2be5(0x183),'dzjEb':function(_0x4e762b,_0x394efa){return _0x4e762b+_0x394efa;},'pTriJ':'GET'},_0x2602fa=(await NTQQUserApi['getPSkey']([_0x3c0901[_0x2e2be5(0x1bf)]]))[_0x3c0901[_0x2e2be5(0x1bf)]],_0x160bb5=await NTQQUserApi[_0x2e2be5(0x182)](),_0xa948c1=_0x3c0901['QXwgh'](_0x3c0901['emODe'](_0x3c0901['emODe'](_0x3c0901['QXwgh'](_0x3c0901[_0x2e2be5(0x1c1)],_0x2602fa),_0x3c0901[_0x2e2be5(0x190)]),_0x160bb5)+_0x2e2be5(0x1c4),selfInfo[_0x2e2be5(0x18b)]);let _0x2c2209=undefined;if(!_0x160bb5||!_0x2602fa)return undefined;const _0x18e7f7=WebApi[_0x2e2be5(0x1d7)](_0x160bb5),_0x3caa13=_0x3c0901['QXwgh'](_0x3c0901[_0x2e2be5(0x1e9)](_0x3c0901[_0x2e2be5(0x1c3)](_0x3c0901['emODe'](_0x3c0901[_0x2e2be5(0x212)],_0x5cd667)+_0x3c0901[_0x2e2be5(0x1e2)],_0x18e7f7)+_0x3c0901[_0x2e2be5(0x1c5)],_0x1c76f1),_0x3c0901[_0x2e2be5(0x1fe)]),_0x2c13b2=_0x3c0901[_0x2e2be5(0x1d9)](_0x2e2be5(0x1ce),_0x18e7f7);try{return _0x2c2209=await RequestUtil[_0x2e2be5(0x1be)](_0x2c13b2,_0x3c0901[_0x2e2be5(0x1d3)],'',{'Cookie':_0xa948c1}),_0x2c2209;}catch(_0x27fcdd){return undefined;}return undefined;}static async[_0x4f7cc5(0x180)](_0x52abed){const _0x4590b2=_0x4f7cc5,_0x3bc2b8={'jtFsy':_0x4590b2(0x1c8),'YBJaN':function(_0x51f6e9,_0x57febf){return _0x51f6e9+_0x57febf;},'HFwWU':function(_0x4d3727,_0x5157ba){return _0x4d3727+_0x5157ba;},'xrair':function(_0x3e26ce,_0x43e806){return _0x3e26ce+_0x43e806;},'TaIpM':';\x20skey=','fcHxb':';\x20p_uin=o','LbPBY':function(_0x20a2c8,_0x59ebd0){return _0x20a2c8+_0x59ebd0;},'AQMkT':function(_0x1422c1,_0x23eafd){return _0x1422c1!==_0x23eafd;}},_0x1ab842=(await NTQQUserApi[_0x4590b2(0x187)]([_0x3bc2b8[_0x4590b2(0x1e3)]]))[_0x3bc2b8[_0x4590b2(0x1e3)]],_0x58c1d4=await NTQQUserApi['getSkey'](),_0x137017=_0x3bc2b8[_0x4590b2(0x208)](_0x3bc2b8['YBJaN'](_0x3bc2b8['HFwWU'](_0x3bc2b8['xrair'](_0x4590b2(0x184),_0x1ab842),_0x3bc2b8[_0x4590b2(0x1f3)]),_0x58c1d4),_0x3bc2b8[_0x4590b2(0x201)])+selfInfo['uin'];let _0x48eeff=undefined;if(!_0x58c1d4||!_0x1ab842)return undefined;const _0x5f40b3=WebApi[_0x4590b2(0x1d7)](_0x58c1d4),_0x22faf6=_0x3bc2b8[_0x4590b2(0x1ec)](_0x3bc2b8[_0x4590b2(0x1c7)](_0x3bc2b8['LbPBY'](_0x3bc2b8[_0x4590b2(0x1ec)](_0x4590b2(0x195),_0x5f40b3),_0x4590b2(0x1d1)),_0x52abed),'&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20');try{_0x48eeff=await RequestUtil['HttpGetJson'](_0x22faf6,_0x4590b2(0x1cc),'',{'Cookie':_0x137017});if(_0x3bc2b8[_0x4590b2(0x1a9)](_0x48eeff?.['ec'],0x0))return undefined;return _0x48eeff;}catch(_0xeb8d5c){return undefined;}return undefined;}static[_0x4f7cc5(0x1d7)](_0x512d32){const _0x219937=_0x4f7cc5,_0x4f6b1b={'borYn':function(_0x27965a,_0x468460){return _0x27965a<_0x468460;},'CZXxD':function(_0x3e34c9,_0x460f50){return _0x3e34c9+_0x460f50;}};_0x512d32=_0x512d32||'';let _0x5847f1=0x1505;for(let _0xdbe69a=0x0;_0x4f6b1b[_0x219937(0x200)](_0xdbe69a,_0x512d32['length']);_0xdbe69a++){const _0x26b8c8=_0x512d32[_0x219937(0x1b6)](_0xdbe69a);_0x5847f1=_0x4f6b1b['CZXxD'](_0x4f6b1b['CZXxD'](_0x5847f1,_0x5847f1<<0x5),_0x26b8c8);}return(_0x5847f1&0x7fffffff)[_0x219937(0x1f2)]();}static async[_0x4f7cc5(0x196)](_0x5759b3,_0x2980bb){const _0x4753d2=_0x4f7cc5,_0x437da3={'FuzCg':function(_0x3b1bcb,_0x5922bb){return _0x3b1bcb+_0x5922bb;},'MYRhf':function(_0x301325,_0x2b5254){return _0x301325+_0x2b5254;},'QaCLJ':_0x4753d2(0x1bd),'wIlzG':_0x4753d2(0x185),'klcRF':_0x4753d2(0x1cc),'hIFBS':function(_0x58b577,_0x52e14e){return _0x58b577===_0x52e14e;},'hFmOG':function(_0x29bddb,_0x37fa91,_0x2ad06b,_0x3de01a){return _0x29bddb(_0x37fa91,_0x2ad06b,_0x3de01a);},'WauNo':_0x4753d2(0x1c8),'SRkYJ':function(_0x2bd8f1,_0x52030f){return _0x2bd8f1||_0x52030f;},'uKDHx':function(_0x2a74e8,_0x5e0f38){return _0x2a74e8+_0x5e0f38;},'ZwmDa':function(_0x49d382,_0x2eaebd){return _0x49d382+_0x2eaebd;},'VoENZ':function(_0x1027f6,_0x3184eb){return _0x1027f6+_0x3184eb;},'jWWDY':_0x4753d2(0x1dd),'cdgEs':_0x4753d2(0x1c4),'ynfhd':_0x4753d2(0x205),'lWGeh':function(_0x20701b,_0x591c5e,_0xdbcd5b){return _0x20701b(_0x591c5e,_0xdbcd5b);},'juBHh':'获取龙王信息失败','AOXxq':function(_0x3f4548,_0x364eee){return _0x3f4548(_0x364eee);},'fVpOM':_0x4753d2(0x19d),'ZFxIR':function(_0x1ae4d9,_0x2c069b){return _0x1ae4d9(_0x2c069b);},'OIuoh':function(_0x45c684,_0x3c3466,_0x245e47){return _0x45c684(_0x3c3466,_0x245e47);},'QlYJU':'获取快乐源泉失败','jBgaW':function(_0x441ec3,_0x3589d1,_0x57ca03){return _0x441ec3(_0x3589d1,_0x57ca03);},'CtPYc':function(_0x2e9ee3,_0x5b2fc6){return _0x2e9ee3===_0x5b2fc6;},'eJfYw':function(_0x8ecaeb,_0x319669){return _0x8ecaeb===_0x319669;}},_0x50d0fb=(await NTQQUserApi[_0x4753d2(0x187)]([_0x437da3['WauNo']]))[_0x437da3[_0x4753d2(0x17b)]],_0x313312=await NTQQUserApi['getSkey']();if(_0x437da3[_0x4753d2(0x17e)](!_0x313312,!_0x50d0fb))return undefined;async function _0x1c5bdc(_0x225fa1,_0x7ea438){const _0x244446=_0x4753d2;let _0x4f0918=_0x437da3['FuzCg'](_0x437da3[_0x244446(0x1ad)](_0x437da3['QaCLJ']+_0x225fa1,_0x437da3[_0x244446(0x1b3)]),_0x7ea438[_0x244446(0x1f2)]()),_0x369445='',_0x534505;try{_0x369445=await RequestUtil['HttpGetText'](_0x4f0918,_0x437da3[_0x244446(0x199)],'',{'Cookie':_0x241dd0});const _0x102e70=_0x369445[_0x244446(0x1f5)](/window\.__INITIAL_STATE__=(.*?);/);return _0x102e70&&(_0x534505=JSON[_0x244446(0x1e1)](_0x102e70[0x1][_0x244446(0x1ef)]())),_0x437da3['hIFBS'](_0x7ea438,0x1)?_0x534505?.[_0x244446(0x198)]:_0x534505?.['actorList'];}catch(_0x2edb34){_0x437da3[_0x244446(0x19c)](logDebug,'获取当前群荣耀失败',_0x4f0918,_0x2edb34);}return undefined;}let _0x59135e={'group_id':_0x5759b3};const _0x241dd0=_0x437da3[_0x4753d2(0x1e8)](_0x437da3[_0x4753d2(0x1ad)](_0x437da3[_0x4753d2(0x1b5)](_0x437da3[_0x4753d2(0x1ab)](_0x437da3[_0x4753d2(0x1b5)](_0x437da3['ZwmDa'](_0x4753d2(0x184),_0x50d0fb),_0x437da3['jWWDY'])+_0x313312,_0x437da3[_0x4753d2(0x189)]),selfInfo[_0x4753d2(0x18b)]),_0x437da3[_0x4753d2(0x1c2)]),selfInfo[_0x4753d2(0x18b)]);if(_0x437da3[_0x4753d2(0x1f4)](_0x2980bb,WebHonorType[_0x4753d2(0x19a)])||_0x437da3[_0x4753d2(0x1f4)](_0x2980bb,WebHonorType['ALL']))try{let _0x7bd375=await _0x437da3['lWGeh'](_0x1c5bdc,_0x5759b3,0x1);if(!_0x7bd375)throw new Error(_0x437da3[_0x4753d2(0x1f0)]);_0x59135e[_0x4753d2(0x1d0)]={'user_id':_0x7bd375[0x0]?.[_0x4753d2(0x18b)],'avatar':_0x7bd375[0x0]?.[_0x4753d2(0x1b7)],'nickname':_0x7bd375[0x0]?.[_0x4753d2(0x18d)],'day_count':0x0,'description':_0x7bd375[0x0]?.[_0x4753d2(0x1ea)]},_0x59135e[_0x4753d2(0x1a8)]=[];for(const _0x264704 of _0x7bd375){_0x59135e['talkative_list'][_0x4753d2(0x19b)]({'user_id':_0x264704?.[_0x4753d2(0x18b)],'avatar':_0x264704?.[_0x4753d2(0x1b7)],'description':_0x264704?.[_0x4753d2(0x1ea)],'day_count':0x0,'nickname':_0x264704?.[_0x4753d2(0x18d)]});}}catch(_0x538398){_0x437da3[_0x4753d2(0x20e)](logDebug,_0x538398);}if(_0x437da3[_0x4753d2(0x1f4)](_0x2980bb,WebHonorType[_0x4753d2(0x1a6)])||_0x437da3[_0x4753d2(0x1f4)](_0x2980bb,WebHonorType['ALL']))try{let _0x51f63e=await _0x1c5bdc(_0x5759b3,0x2);if(!_0x51f63e)throw new Error(_0x437da3['fVpOM']);_0x59135e[_0x4753d2(0x1bc)]=[];for(const _0x39dc04 of _0x51f63e){_0x59135e['performer_list'][_0x4753d2(0x19b)]({'user_id':_0x39dc04?.[_0x4753d2(0x18b)],'nickname':_0x39dc04?.[_0x4753d2(0x18d)],'avatar':_0x39dc04?.[_0x4753d2(0x1b7)],'description':_0x39dc04?.[_0x4753d2(0x1ea)]});}}catch(_0x57e1ac){_0x437da3[_0x4753d2(0x18e)](logDebug,_0x57e1ac);}if(_0x2980bb===WebHonorType[_0x4753d2(0x1a6)]||_0x437da3[_0x4753d2(0x1f4)](_0x2980bb,WebHonorType['ALL']))try{let _0x48c85a=await _0x437da3[_0x4753d2(0x1b1)](_0x1c5bdc,_0x5759b3,0x3);if(!_0x48c85a)throw new Error(_0x4753d2(0x1cb));_0x59135e['legend_list']=[];for(const _0x3e23d1 of _0x48c85a){_0x59135e[_0x4753d2(0x17f)]['push']({'user_id':_0x3e23d1?.[_0x4753d2(0x18b)],'nickname':_0x3e23d1?.[_0x4753d2(0x18d)],'avatar':_0x3e23d1?.[_0x4753d2(0x1b7)],'desc':_0x3e23d1?.[_0x4753d2(0x20b)]});}}catch(_0x2043c7){_0x437da3[_0x4753d2(0x1c6)](logDebug,'获取群聊炽焰失败',_0x2043c7);}if(_0x437da3['hIFBS'](_0x2980bb,WebHonorType[_0x4753d2(0x1e5)])||_0x2980bb===WebHonorType[_0x4753d2(0x207)])try{let _0x19939c=await _0x1c5bdc(_0x5759b3,0x6);if(!_0x19939c)throw new Error(_0x437da3['QlYJU']);_0x59135e[_0x4753d2(0x1c9)]=[];for(const _0x6dd818 of _0x19939c){_0x59135e[_0x4753d2(0x1c9)][_0x4753d2(0x19b)]({'user_id':_0x6dd818?.['uin'],'nickname':_0x6dd818?.[_0x4753d2(0x18d)],'avatar':_0x6dd818?.[_0x4753d2(0x1b7)],'desc':_0x6dd818?.['description']});}}catch(_0x240c53){_0x437da3[_0x4753d2(0x181)](logDebug,_0x4753d2(0x1eb),_0x240c53);}return(_0x437da3[_0x4753d2(0x1df)](_0x2980bb,WebHonorType[_0x4753d2(0x1e5)])||_0x437da3['eJfYw'](_0x2980bb,WebHonorType[_0x4753d2(0x207)]))&&(_0x59135e[_0x4753d2(0x1ff)]=[]),_0x59135e;}} \ No newline at end of file diff --git a/src/core.lib/src/core.js b/src/core.lib/src/core.js index ae81415d..ce10b591 100644 --- a/src/core.lib/src/core.js +++ b/src/core.lib/src/core.js @@ -1 +1 @@ -const _0x3fa1cc=_0x542e;(function(_0x28f030,_0x59444d){const _0x54eed8=_0x542e,_0x37b187=_0x28f030();while(!![]){try{const _0x1bb760=parseInt(_0x54eed8(0x1fd))/0x1+-parseInt(_0x54eed8(0x1c0))/0x2*(parseInt(_0x54eed8(0x1dc))/0x3)+parseInt(_0x54eed8(0x1ce))/0x4*(parseInt(_0x54eed8(0x21e))/0x5)+parseInt(_0x54eed8(0x21c))/0x6+parseInt(_0x54eed8(0x210))/0x7+parseInt(_0x54eed8(0x232))/0x8*(-parseInt(_0x54eed8(0x1b3))/0x9)+-parseInt(_0x54eed8(0x1ea))/0xa;if(_0x1bb760===_0x59444d)break;else _0x37b187['push'](_0x37b187['shift']());}catch(_0x2e7d8b){_0x37b187['push'](_0x37b187['shift']());}}}(_0x4a15,0xed666));import _0x264516 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x2d90ea from'node:path';import _0x521909 from'node:os';function _0x4a15(){const _0x2045a7=['onQRCodeLoginSucceed','NodeIQQNTWrapperSession','启动失败:\x20','groupMemberList_MainWindow','initDataListener','10788757OWeOXB','onLineDev','consoleLog','quickLogin','onRecvMsg','HWjTA','infos','onGroupListUpdate','onProfileDetailInfoChanged','onLoginSuccess','aWRWY','clientType','1734306oZSvCk','140022013','5epAPHY','getBuddyService','VRLZf','onAddSendMsg','onSessionInitComplete','onSelfStatusChanged','NodeIQQNTWrapperEngine','数据库初始化失败','base64','from','now','BuddyListener','name','V1_WIN_NQ_','onLoginFailed','getQuickLoginList','DsVhw','last_message_time','./NapCat/data','session','16ZfStom','_GW_B','快速登录不可用','util','hex','Jrgwx','startNT','message_received','140022008','yAzzV','recallTime','AkpCb','tipsDesc','groupCode','TWJVp','split','NodeIKernelSessionListener','then','fileLog','GroupListener','map','createMemberListScene','quickLoginWithUin','delete','onQRCodeSessionFailed','catch','packet_received','NodeIDependsAdapter','qEafy','./nt_qq/global','has','uin','digest','登录失败','onUserLoggedIn','bInEg','ZIFQT','qOdze','账号设备(','initSession\x20failed','AjrPo','addKernelGroupListener','length','memberCount','KVBeD','NodeIKernelBuddyListener','dlnIH','replace','fCbQO','result','ygImi','ProfileListener','NodeIKernelLoginService','./.config/QQ','initConfig','sVbyP','errMsg','getLoginList','addListener','OtxUm','getMsgByLongId','-v2.db','init\x20failed\x20','[KickedOffLine]\x20[','5387778LEcqsx','RUgsf','resolve','devUid','undefined','Cfrbr','fqhjM','快速登录失败\x20','fVEYM','qrcodeUrl','loginListener','ThmYj','proxyHandler','4ieiboi','getProfileService','getQRCodePicture','MjqRz','AVFNg','data:image/png;base64,','xdVfJ','engine','没有可快速登录的QQ号','getBuddyList','leLcx','uid','AbWJC','xQggQ','2621032CqhGyD',')已登录,无法重复登录','loginErrorInfo','push','addKernelBuddyListener','find','addKernelMsgListener','getNextMemberList','update','\x20has\x20no\x20method\x20','curVersion','onLoginSuccessFuncList','Windows\x2010\x20Pro','ndXTu','537579vNzUkb','md5','NodeIKernelGroupListener','initSession','SXfqr','dataPath','NodeIKernelProfileListener','onMemberListChange','onRecvSysMsg','addKernelProfileListener','AIaqo','EpawW','init','fileLogLevel','14853260RFTxqN','pngBase64QrcodeData','XwPns','onMsgInfoListUpdate','xyOxr','assign','getGroupService','forEach','FicaQ','packet_sent',')\x20在线状态变更','get','SXTNg','addKernelLoginListener','msgId','STLEE','set','floor','wBVBM','1527826lPZnmh','本账号数据/缓存目录:','NodeIGlobalAdapter','loginService','hpnjz','dataPathGlobal','OQYDb','homedir','passwordLogin','updateMsg','getMsgService','initWithDeskTopConfig','VzKzP','isQuickLogin'];_0x4a15=function(){return _0x2045a7;};return _0x4a15();}import _0x3b5b32 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'@/common/utils/db';import{sleep}from'@/common/utils/helper';import _0x781a2a from'node:crypto';import{rawFriends,friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';function _0x542e(_0x218f3b,_0x2850b3){const _0x4a1506=_0x4a15();return _0x542e=function(_0x542e5b,_0x2d7d4b){_0x542e5b=_0x542e5b-0x194;let _0x283fda=_0x4a1506[_0x542e5b];return _0x283fda;},_0x542e(_0x218f3b,_0x2850b3);}import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{[_0x3fa1cc(0x231)];[_0x3fa1cc(0x235)];[_0x3fa1cc(0x1c7)];[_0x3fa1cc(0x1bd)];['loginService'];[_0x3fa1cc(0x1d9)]=[];[_0x3fa1cc(0x1bf)]={'get'(target,prop,receiver){const _0x505978=_0x3fa1cc,oiCXUV={'ZVsHR':function(callee,param1){return callee(param1);},'SXTNg':function(x,y){return x===y;},'CeYxZ':_0x505978(0x1b7)};if(oiCXUV[_0x505978(0x1f6)](typeof target[prop],oiCXUV['CeYxZ']))return(...args)=>{const _0x25c074=_0x505978;oiCXUV['ZVsHR'](logDebug,target['constructor'][_0x25c074(0x22a)]+_0x25c074(0x1d7)+prop);};return Reflect[_0x505978(0x1f5)](target,prop,receiver);}};constructor(){const _0x2704d9=_0x3fa1cc,_0x5c22fd={'Cfrbr':function(_0xf3535c,_0x1a3358){return _0xf3535c(_0x1a3358);},'leLcx':'当前账号(','MjqRz':_0x2704d9(0x1cf),'ONGuN':_0x2704d9(0x225),'fqhjM':function(_0x258ee8,_0x11ca0f,_0x4f1ae2){return _0x258ee8(_0x11ca0f,_0x4f1ae2);},'XwPns':function(_0x1e9581,_0x379030){return _0x1e9581(_0x379030);},'AkpCb':_0x2704d9(0x230),'DsVhw':_0x2704d9(0x1fe),'KVBeD':_0x2704d9(0x194),'xdVfJ':function(_0x42655d,_0x23d80e){return _0x42655d==_0x23d80e;},'kXdwW':function(_0x3d9107,_0x354302){return _0x3d9107==_0x354302;},'HWjTA':function(_0x1ea31a,_0x237752,_0x1ea999){return _0x1ea31a(_0x237752,_0x1ea999);}};this[_0x2704d9(0x1c7)]=new _0x264516[(_0x2704d9(0x224))](),this[_0x2704d9(0x235)]=new _0x264516['NodeQQNTWrapperUtil'](),this[_0x2704d9(0x200)]=new _0x264516[(_0x2704d9(0x1a7))](),this[_0x2704d9(0x231)]=new _0x264516[(_0x2704d9(0x20c))](),this[_0x2704d9(0x1bd)]=new LoginListener(),this['loginListener'][_0x2704d9(0x195)]=_0x427ec9=>{const _0x25698a=_0x2704d9;_0x5c22fd[_0x25698a(0x1b8)](logError,_0x5c22fd[_0x25698a(0x1ca)]+_0x427ec9+_0x5c22fd[_0x25698a(0x1c3)]);},this[_0x2704d9(0x1bd)][_0x2704d9(0x20b)]=_0x341e16=>{const _0x1c6b2f=_0x2704d9,_0x550fb3={'bInEg':_0x1c6b2f(0x19a)};this[_0x1c6b2f(0x1df)](_0x341e16[_0x1c6b2f(0x251)],_0x341e16[_0x1c6b2f(0x1cb)])[_0x1c6b2f(0x243)](_0x3fcfae=>{const _0x292728=_0x1c6b2f,_0x2123b1={'wBVBM':function(_0x2c9438,_0x3f3609,_0xd66449){return _0x2c9438(_0x3f3609,_0xd66449);},'VzKzP':function(_0xad2016,_0x4a8955,_0x294c75){return _0xad2016(_0x4a8955,_0x294c75);},'qOdze':_0x5c22fd['ONGuN']};selfInfo['uin']=_0x341e16['uin'],selfInfo['uid']=_0x341e16[_0x292728(0x1cb)],napCatConfig['read'](),_0x5c22fd[_0x292728(0x1b9)](setLogLevel,napCatConfig[_0x292728(0x1e9)],napCatConfig['consoleLogLevel']),_0x5c22fd['XwPns'](enableFileLog,napCatConfig[_0x292728(0x244)]),_0x5c22fd['XwPns'](enableConsoleLog,napCatConfig[_0x292728(0x212)]),_0x5c22fd[_0x292728(0x1ec)](setLogSelfInfo,selfInfo);const _0x439992=_0x2d90ea[_0x292728(0x1b5)](this[_0x292728(0x1e1)],_0x5c22fd[_0x292728(0x23d)]);_0x3b5b32['mkdirSync'](_0x439992,{'recursive':!![]}),logDebug(_0x5c22fd[_0x292728(0x22e)],_0x439992),dbUtil[_0x292728(0x1e8)](_0x2d90ea[_0x292728(0x1b5)](_0x439992,'./'+_0x341e16[_0x292728(0x251)]+_0x292728(0x1b0)))['then'](()=>{const _0x2f0860=_0x292728,_0x81020c={'OtxUm':function(_0x2ea3e0,_0xbe6cb5,_0x2dbcff){const _0x454b0f=_0x542e;return _0x2123b1[_0x454b0f(0x1fc)](_0x2ea3e0,_0xbe6cb5,_0x2dbcff);},'hpnjz':function(_0x5d0b72,_0x18188f){return _0x5d0b72 instanceof _0x18188f;}};this[_0x2f0860(0x20f)](),this[_0x2f0860(0x1d9)][_0x2f0860(0x246)](_0x5c6947=>{new Promise((_0x403c2d,_0x3b1af7)=>{const _0x336583=_0x542e,_0x2398af=_0x81020c[_0x336583(0x1ae)](_0x5c6947,_0x341e16['uin'],_0x341e16[_0x336583(0x1cb)]);_0x81020c[_0x336583(0x201)](_0x2398af,Promise)&&_0x2398af['then'](_0x403c2d)[_0x336583(0x24b)](_0x3b1af7);})['then']();});})[_0x292728(0x24b)](_0x3e7dbe=>{const _0x3eb270=_0x292728;_0x2123b1[_0x3eb270(0x209)](logError,_0x2123b1[_0x3eb270(0x198)],_0x3e7dbe);});})[_0x1c6b2f(0x24b)](_0x20c7fb=>{const _0x578046=_0x1c6b2f;logError(_0x550fb3[_0x578046(0x196)],_0x20c7fb);throw new Error(_0x578046(0x20d)+JSON['stringify'](_0x20c7fb));});},this[_0x2704d9(0x1bd)][_0x2704d9(0x24a)]=(_0xe3d448,_0x3040b2,_0x319fcc)=>{const _0x43a91c=_0x2704d9;_0x5c22fd[_0x43a91c(0x1b9)](logError,_0x5c22fd[_0x43a91c(0x19f)],_0x319fcc),_0x5c22fd[_0x43a91c(0x1c6)](_0xe3d448,0x1)&&_0x5c22fd['kXdwW'](_0x3040b2,0x3)&&this[_0x43a91c(0x200)]['getQRCodePicture']();},this[_0x2704d9(0x1bd)][_0x2704d9(0x22c)]=_0x4fc001=>{const _0x390d54=_0x2704d9;_0x5c22fd[_0x390d54(0x215)](logError,_0x5c22fd['KVBeD'],_0x4fc001);},this[_0x2704d9(0x1bd)]=new Proxy(this[_0x2704d9(0x1bd)],this[_0x2704d9(0x1bf)]),this[_0x2704d9(0x200)][_0x2704d9(0x1f7)](new _0x264516['NodeIKernelLoginListener'](this[_0x2704d9(0x1bd)])),this['initConfig']();}get[_0x3fa1cc(0x1e1)](){const _0x222a0e=_0x3fa1cc,_0x10b5e5={'ygImi':_0x222a0e(0x1a8)};let _0x1b8793=this[_0x222a0e(0x235)]['getNTUserDataInfoConfig']();return!_0x1b8793&&(_0x1b8793=_0x2d90ea[_0x222a0e(0x1b5)](_0x521909[_0x222a0e(0x204)](),_0x10b5e5[_0x222a0e(0x1a5)]),_0x3b5b32['mkdirSync'](_0x1b8793,{'recursive':!![]})),_0x1b8793;}get[_0x3fa1cc(0x202)](){const _0x3cae27=_0x3fa1cc;return _0x2d90ea[_0x3cae27(0x1b5)](this[_0x3cae27(0x1e1)],_0x3cae27(0x24f));}[_0x3fa1cc(0x1a9)](){const _0xf9ebfd=_0x3fa1cc,_0x42d1d1={'SXfqr':_0xf9ebfd(0x1da)};this[_0xf9ebfd(0x1c7)][_0xf9ebfd(0x208)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0xf9ebfd(0x1d8)],'os_version':_0x42d1d1[_0xf9ebfd(0x1e0)],'use_xlog':!![],'qua':_0xf9ebfd(0x22b)+qqVersionConfigInfo['curVersion'][_0xf9ebfd(0x1a2)]('-','_')+_0xf9ebfd(0x233),'global_path_config':{'desktopGlobalPath':this['dataPathGlobal']},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x264516[(_0xf9ebfd(0x1ff))](new GlobalAdapter())),this[_0xf9ebfd(0x200)][_0xf9ebfd(0x1a9)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0xf9ebfd(0x202)],'clientVer':qqVersionConfigInfo['curVersion'],'hostName':hostname});}[_0x3fa1cc(0x1df)](_0x4e2b71,_0x436971){const _0x533b16=_0x3fa1cc,_0x4feef2={'STLEE':function(_0x3e7a7f,_0x514cdc){return _0x3e7a7f===_0x514cdc;},'AbWJC':function(_0x38de6d,_0x14da02){return _0x38de6d(_0x14da02);},'iAvmS':function(_0x353b77,_0x223363,_0x7c2892,_0xd31db0){return _0x353b77(_0x223363,_0x7c2892,_0xd31db0);},'AjrPo':_0x533b16(0x1b1)};return new Promise((_0x4eeb54,_0x1dff81)=>{const _0x353478=_0x533b16,_0x3dcb6a={'qEafy':function(_0x13d130,_0x57cee8){const _0x16762a=_0x542e;return _0x4feef2[_0x16762a(0x1f9)](_0x13d130,_0x57cee8);},'jITYb':function(_0x3417ce,_0x175a7c){const _0x4d315c=_0x542e;return _0x4feef2[_0x4d315c(0x1cc)](_0x3417ce,_0x175a7c);},'VRLZf':function(_0x5a7857,_0x380934){return _0x5a7857(_0x380934);}},_0x13da0d=_0x4feef2['iAvmS'](genSessionConfig,_0x4e2b71,_0x436971,this[_0x353478(0x1e1)]),_0x14ba78=new SessionListener();_0x14ba78[_0x353478(0x222)]=_0x6bd291=>{const _0x52d666=_0x353478;if(_0x3dcb6a[_0x52d666(0x24e)](_0x6bd291,0x0))return _0x3dcb6a['jITYb'](_0x4eeb54,0x0);_0x3dcb6a[_0x52d666(0x220)](_0x1dff81,_0x6bd291);},this[_0x353478(0x231)][_0x353478(0x1e8)](_0x13da0d,new _0x264516[(_0x353478(0x24d))](new DependsAdapter()),new _0x264516['NodeIDispatcherAdapter'](new DispatcherAdapter()),new _0x264516[(_0x353478(0x242))](_0x14ba78));try{this[_0x353478(0x231)][_0x353478(0x238)](0x0);}catch(_0x4dd0d6){try{this[_0x353478(0x231)]['startNT']();}catch(_0x4b2ead){_0x4feef2[_0x353478(0x1cc)](_0x1dff81,_0x4feef2[_0x353478(0x19b)]+_0x4b2ead);}}});}['initDataListener'](){const _0x1bf117=_0x3fa1cc,_0x36a9c7={'OQYDb':function(_0x1adb85,_0x15684a){return _0x1adb85===_0x15684a;},'fVEYM':function(_0x1ea982,_0x5409d3){return _0x1ea982+_0x5409d3;},'fCbQO':_0x1bf117(0x1f4),'Jrgwx':function(_0x368c69,_0x209bc0){return _0x368c69+_0x209bc0;},'ndXTu':function(_0x649f3,_0x365993){return _0x649f3===_0x365993;},'ZIFQT':function(_0x4e126b,_0x1f12ca){return _0x4e126b/_0x1f12ca;},'sVbyP':function(_0x40a501,_0x117eec){return _0x40a501!==_0x117eec;},'rRErK':function(_0x5dc100,_0x532ebd){return _0x5dc100===_0x532ebd;},'TWJVp':function(_0x32537b,_0x40aab9,_0x2c525d){return _0x32537b(_0x40aab9,_0x2c525d);}},_0x998711=new MsgListener();_0x998711[_0x1bf117(0x211)]=_0xd3eaa=>{const _0x1c8287=_0x1bf117,_0x3ab56c={'PpNoB':function(_0x20afd8,_0x2eeff8){const _0x3d2a75=_0x542e;return _0x36a9c7[_0x3d2a75(0x203)](_0x20afd8,_0x2eeff8);},'KWHZF':function(_0x3f4ae2,_0x1af7e2){const _0x5b9afc=_0x542e;return _0x36a9c7[_0x5b9afc(0x1bb)](_0x3f4ae2,_0x1af7e2);},'AIaqo':_0x36a9c7[_0x1c8287(0x1a3)]};_0xd3eaa[_0x1c8287(0x246)](_0x590ac7=>{const _0x3297b6=_0x1c8287;_0x3ab56c['PpNoB'](_0x590ac7[_0x3297b6(0x21b)],0x2)&&log(_0x3ab56c['KWHZF'](_0x3297b6(0x199)+_0x590ac7[_0x3297b6(0x1b6)],_0x3ab56c[_0x3297b6(0x1e6)]));});},_0x998711['onKickedOffLine']=_0x14581d=>{const _0x239e33=_0x1bf117;log(_0x36a9c7[_0x239e33(0x237)](_0x239e33(0x1b2),_0x14581d['tipsTitle'])+']\x20'+_0x14581d[_0x239e33(0x23e)]);},_0x998711[_0x1bf117(0x1ed)]=_0xf1c6f=>{const _0x77ba7a=_0x1bf117;stat[_0x77ba7a(0x24c)]+=0x1,_0xf1c6f[_0x77ba7a(0x246)](_0x4b06b4=>{const _0x2ab9f8=_0x77ba7a;_0x36a9c7[_0x2ab9f8(0x1db)](_0x4b06b4[_0x2ab9f8(0x23c)],'0')?dbUtil['addMsg'](_0x4b06b4)[_0x2ab9f8(0x243)]()[_0x2ab9f8(0x24b)]():dbUtil[_0x2ab9f8(0x1af)](_0x4b06b4[_0x2ab9f8(0x1f8)])[_0x2ab9f8(0x243)](_0x1e4f27=>{const _0x1c7493=_0x2ab9f8;_0x1e4f27&&(_0x1e4f27[_0x1c7493(0x23c)]=_0x4b06b4[_0x1c7493(0x23c)],dbUtil[_0x1c7493(0x206)](_0x1e4f27)[_0x1c7493(0x243)]());});});},_0x998711[_0x1bf117(0x221)]=_0xc636f7=>{const _0x51ae8a=_0x1bf117;stat[_0x51ae8a(0x1f3)]+=0x1,stat['message_sent']+=0x1,stat[_0x51ae8a(0x22f)]=Math['floor'](Date[_0x51ae8a(0x228)]()/0x3e8);},_0x998711[_0x1bf117(0x214)]=_0x16be38=>{const _0x282ef3=_0x1bf117;stat[_0x282ef3(0x24c)]+=0x1,stat[_0x282ef3(0x239)]+=_0x16be38['length'],stat[_0x282ef3(0x22f)]=Math[_0x282ef3(0x1fb)](_0x36a9c7[_0x282ef3(0x197)](Date[_0x282ef3(0x228)](),0x3e8));},_0x998711[_0x1bf117(0x1e4)]=(..._0x5f837d)=>{stat['packet_received']+=0x1;},this[_0x1bf117(0x1ad)](_0x998711);const _0x48fcbd=new BuddyListener();_0x48fcbd['onBuddyListChange']=_0x443465=>{const _0x380dcd=_0x1bf117;rawFriends[_0x380dcd(0x19d)]=0x0,rawFriends['push'](..._0x443465);for(const _0x128614 of _0x443465){for(const _0x26f649 of _0x128614['buddyList']){const _0xd4438d=friends[_0x380dcd(0x1f5)](_0x26f649[_0x380dcd(0x1cb)]);uid2UinMap[_0x26f649[_0x380dcd(0x1cb)]]=_0x26f649[_0x380dcd(0x251)],_0xd4438d?Object[_0x380dcd(0x1ef)](_0xd4438d,_0x26f649):friends[_0x380dcd(0x1fa)](_0x26f649[_0x380dcd(0x1cb)],_0x26f649);}}},this[_0x1bf117(0x1ad)](_0x48fcbd),this[_0x1bf117(0x231)][_0x1bf117(0x21f)]()[_0x1bf117(0x1c9)](!![])['then'](_0x356cdd=>{});const _0x33a598=new ProfileListener();_0x33a598[_0x1bf117(0x218)]=_0x47f134=>{const _0x107a09=_0x1bf117;_0x36a9c7[_0x107a09(0x203)](_0x47f134[_0x107a09(0x1cb)],selfInfo[_0x107a09(0x1cb)])&&Object[_0x107a09(0x1ef)](selfInfo,_0x47f134);},_0x33a598[_0x1bf117(0x223)]=_0x280e5f=>{},this[_0x1bf117(0x1ad)](_0x33a598);const _0x3d0f0e=new GroupListener();_0x3d0f0e[_0x1bf117(0x217)]=(_0x360ea0,_0x34892d)=>{const _0x5b463b=_0x1bf117;_0x34892d[_0x5b463b(0x246)](_0x2c0cf8=>{const _0x28baa3=_0x5b463b,_0x306115=groups[_0x28baa3(0x1f5)](_0x2c0cf8[_0x28baa3(0x23f)]);if(_0x306115&&_0x36a9c7[_0x28baa3(0x1aa)](_0x2c0cf8[_0x28baa3(0x19e)],_0x306115['memberCount']))Object[_0x28baa3(0x1ef)](_0x306115,_0x2c0cf8);else{groups[_0x28baa3(0x1fa)](_0x2c0cf8['groupCode'],_0x2c0cf8);const _0x1e16a8=this[_0x28baa3(0x231)]['getGroupService']()[_0x28baa3(0x247)](_0x2c0cf8[_0x28baa3(0x23f)],_0x28baa3(0x20e));this[_0x28baa3(0x231)][_0x28baa3(0x1f0)]()[_0x28baa3(0x1d5)](_0x1e16a8,undefined,0xbb8)['then'](_0x53a178=>{});}});},_0x3d0f0e[_0x1bf117(0x1e3)]=_0x42056a=>{const _0x7150f5=_0x1bf117,_0x333421=_0x42056a['sceneId'][_0x7150f5(0x241)]('_')[0x0];if(groupMembers[_0x7150f5(0x250)](_0x333421)){const _0x52196e=groupMembers[_0x7150f5(0x1f5)](_0x333421);_0x42056a[_0x7150f5(0x216)][_0x7150f5(0x1f1)]((_0x59c87f,_0x4da6d1)=>{const _0x3daa08=_0x7150f5,_0x439b39=_0x52196e[_0x3daa08(0x1f5)](_0x4da6d1);_0x439b39?Object['assign'](_0x439b39,_0x59c87f):_0x52196e[_0x3daa08(0x1fa)](_0x4da6d1,_0x59c87f);});}else groupMembers[_0x7150f5(0x1fa)](_0x333421,_0x42056a['infos']);},_0x3d0f0e['onMemberInfoChange']=(_0x2148a8,_0x33032c,_0x4b8d94)=>{const _0x6b788=_0x1bf117;_0x36a9c7['rRErK'](_0x33032c,0x0)&&_0x4b8d94[_0x6b788(0x1f5)](selfInfo['uid'])&&_0x4b8d94[_0x6b788(0x1f5)](selfInfo[_0x6b788(0x1cb)])?.['isDelete']&&_0x36a9c7[_0x6b788(0x240)](setTimeout,()=>{const _0xc21e47=_0x6b788;groups[_0xc21e47(0x249)](_0x2148a8);},0x1388);_0x4b8d94[_0x6b788(0x1f1)]((_0x55e791,_0x2c4c93)=>{uid2UinMap[_0x2c4c93]=_0x55e791['uin'];});const _0x3f74aa=groupMembers[_0x6b788(0x1f5)](_0x2148a8);_0x3f74aa?_0x4b8d94[_0x6b788(0x1f1)]((_0xc14441,_0x15ee96)=>{const _0x15428f=_0x6b788,_0x151c6f=_0x3f74aa[_0x15428f(0x1f5)](_0x15ee96);_0x151c6f?Object[_0x15428f(0x1ef)](_0x151c6f,_0xc14441):_0x3f74aa[_0x15428f(0x1fa)](_0x15ee96,_0xc14441);}):groupMembers[_0x6b788(0x1fa)](_0x2148a8,_0x4b8d94);},this[_0x1bf117(0x1ad)](_0x3d0f0e);}['addListener'](_0x30e52d){const _0x3f7331=_0x3fa1cc,_0x308980={'dlnIH':_0x3f7331(0x229),'yAzzV':_0x3f7331(0x245),'xyOxr':'MsgListener'};_0x30e52d=new Proxy(_0x30e52d,this['proxyHandler']);switch(_0x30e52d['constructor']['name']){case _0x308980[_0x3f7331(0x1a1)]:{return this[_0x3f7331(0x231)][_0x3f7331(0x21f)]()[_0x3f7331(0x1d2)](new _0x264516[(_0x3f7331(0x1a0))](_0x30e52d));}case _0x308980[_0x3f7331(0x23b)]:{return this['session'][_0x3f7331(0x1f0)]()[_0x3f7331(0x19c)](new _0x264516[(_0x3f7331(0x1de))](_0x30e52d));}case _0x308980[_0x3f7331(0x1ee)]:{return this[_0x3f7331(0x231)][_0x3f7331(0x207)]()[_0x3f7331(0x1d4)](new _0x264516['NodeIKernelMsgListener'](_0x30e52d));}case _0x3f7331(0x1a6):{return this[_0x3f7331(0x231)][_0x3f7331(0x1c1)]()[_0x3f7331(0x1e5)](new _0x264516[(_0x3f7331(0x1e2))](_0x30e52d));}default:return-0x1;}}[_0x3fa1cc(0x219)](_0x1bfca0){const _0x19f366=_0x3fa1cc;this[_0x19f366(0x1d9)][_0x19f366(0x1d1)](_0x1bfca0);}async[_0x3fa1cc(0x213)](_0x10aad2){const _0x4b137f=_0x3fa1cc,_0x2f689e={'FicaQ':function(_0x486773,_0x2aa53a){return _0x486773!==_0x2aa53a;},'ThmYj':function(_0x555eff,_0x5271ed){return _0x555eff(_0x5271ed);},'RDHVL':function(_0x3e6074,_0x57b150){return _0x3e6074+_0x57b150;},'xQggQ':_0x4b137f(0x1ba)},_0x38c152=await this[_0x4b137f(0x200)]['getLoginList']();if(_0x2f689e[_0x4b137f(0x1f2)](_0x38c152[_0x4b137f(0x1a4)],0x0))throw new Error(_0x4b137f(0x1c8));const _0x444230=_0x38c152['LocalLoginInfoList'][_0x4b137f(0x1d3)](_0x3438da=>_0x3438da['uin']===_0x10aad2);if(!_0x444230||!_0x444230?.[_0x4b137f(0x20a)])throw new Error(_0x10aad2+_0x4b137f(0x234));await _0x2f689e[_0x4b137f(0x1be)](sleep,0x3e8);const _0x58058b=await this[_0x4b137f(0x200)][_0x4b137f(0x248)](_0x10aad2);if(!_0x58058b['result'])throw new Error(_0x2f689e['RDHVL'](_0x2f689e[_0x4b137f(0x1cd)],_0x58058b[_0x4b137f(0x1d0)][_0x4b137f(0x1ab)]));return _0x58058b;}async['qrLogin'](_0x3cf887){const _0x1823e0=_0x3fa1cc,_0x548cb7={'aWRWY':_0x1823e0(0x1c5),'EpawW':_0x1823e0(0x226),'RUgsf':function(_0x4ea2a1,_0x5a2536,_0x417588,_0xc53b3d){return _0x4ea2a1(_0x5a2536,_0x417588,_0xc53b3d);}};return new Promise((_0x1b5cfb,_0x287149)=>{const _0x240eb9=_0x1823e0;this['loginListener']['onQRCodeGetPicture']=_0x4a1a59=>{const _0x3314da=_0x542e,_0x58124d=_0x4a1a59[_0x3314da(0x1eb)][_0x3314da(0x241)](_0x548cb7[_0x3314da(0x21a)])[0x1],_0x72f435=Buffer[_0x3314da(0x227)](_0x58124d,_0x548cb7[_0x3314da(0x1e7)]);_0x548cb7[_0x3314da(0x1b4)](_0x3cf887,_0x4a1a59[_0x3314da(0x1bc)],_0x4a1a59[_0x3314da(0x1eb)],_0x72f435);},this[_0x240eb9(0x200)][_0x240eb9(0x1c2)]();});}async['passwordLogin'](_0x1dc765,_0x2f8797,_0x4dfb55,_0x30b243,_0x3d305f){const _0x40efe0=_0x3fa1cc,_0x3289e4={'AEvvD':_0x40efe0(0x1dd),'AVFNg':_0x40efe0(0x236),'rIXhB':function(_0x1878bf,_0x4963dc){return _0x1878bf&&_0x4963dc;},'vQqLc':function(_0x33580a,_0x523d4f){return _0x33580a||_0x523d4f;},'pjaQH':_0x40efe0(0x23a)},_0x5d888a=_0x781a2a['createHash'](_0x3289e4['AEvvD'])[_0x40efe0(0x1d6)](_0x2f8797)[_0x40efe0(0x252)](_0x3289e4[_0x40efe0(0x1c4)]),_0x5b1461={'uin':_0x1dc765,'passwordMd5':_0x5d888a,'step':_0x3289e4['rIXhB'](_0x4dfb55,_0x30b243)&&_0x3d305f?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x4dfb55||'','proofWaterRand':_0x30b243||'','proofWaterSid':_0x3289e4['vQqLc'](_0x3d305f,'')};await this[_0x40efe0(0x200)][_0x40efe0(0x1ac)](),await sleep(0x3e8);const _0x59c953=await this[_0x40efe0(0x200)][_0x40efe0(0x205)](_0x5b1461);switch(_0x59c953[_0x40efe0(0x1a4)]){case'0':{break;}case _0x3289e4['pjaQH']:{break;}case'4':case _0x40efe0(0x21d):default:}}async[_0x3fa1cc(0x22d)](){const _0x1d2ab3=_0x3fa1cc,_0x69e8be=await this[_0x1d2ab3(0x200)][_0x1d2ab3(0x1ac)]();return _0x69e8be;}}export const napCatCore=new NapCatCore(); \ No newline at end of file +const _0x3ebcf4=_0x5b18;(function(_0x23ee36,_0x56911a){const _0x326c10=_0x5b18,_0xc9b598=_0x23ee36();while(!![]){try{const _0x500a05=parseInt(_0x326c10(0x184))/0x1*(-parseInt(_0x326c10(0x19c))/0x2)+parseInt(_0x326c10(0x217))/0x3*(-parseInt(_0x326c10(0x1af))/0x4)+parseInt(_0x326c10(0x1fa))/0x5+-parseInt(_0x326c10(0x1f4))/0x6*(parseInt(_0x326c10(0x1b7))/0x7)+parseInt(_0x326c10(0x1f1))/0x8+-parseInt(_0x326c10(0x1b6))/0x9+parseInt(_0x326c10(0x20a))/0xa;if(_0x500a05===_0x56911a)break;else _0xc9b598['push'](_0xc9b598['shift']());}catch(_0x253214){_0xc9b598['push'](_0xc9b598['shift']());}}}(_0x13f1,0xad848));import _0x3437b4 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';function _0x5b18(_0x1d2ab1,_0x402a6b){const _0x13f1a4=_0x13f1();return _0x5b18=function(_0x5b18b7,_0x7a6a5d){_0x5b18b7=_0x5b18b7-0x174;let _0x41ec9e=_0x13f1a4[_0x5b18b7];return _0x41ec9e;},_0x5b18(_0x1d2ab1,_0x402a6b);}import _0x4deabb from'node:path';import _0x493d42 from'node:os';import _0x3f1272 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'@/common/utils/db';import{sleep}from'@/common/utils/helper';import _0xde9169 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{[_0x3ebcf4(0x209)];['util'];[_0x3ebcf4(0x20c)];[_0x3ebcf4(0x18e)];[_0x3ebcf4(0x175)];[_0x3ebcf4(0x195)]=[];['proxyHandler']={'get'(target,prop,receiver){const _0x5206f3=_0x3ebcf4,wJtWfg={'XyDRs':function(callee,param1){return callee(param1);},'NRDol':_0x5206f3(0x1db)};if(typeof target[prop]===wJtWfg[_0x5206f3(0x1f7)])return(...args)=>{const _0x47c481=_0x5206f3;wJtWfg[_0x47c481(0x1fb)](logDebug,target['constructor']['name']+_0x47c481(0x17f)+prop);};return Reflect[_0x5206f3(0x1e2)](target,prop,receiver);}};constructor(){const _0x36e582=_0x3ebcf4,_0x660dd7={'JpATz':function(_0x1cc4a0,_0x3da6f2){return _0x1cc4a0(_0x3da6f2);},'QtLJu':function(_0x51db11,_0x274ec8){return _0x51db11+_0x274ec8;},'OHoXi':function(_0x1c0df4,_0x3b873d){return _0x1c0df4+_0x3b873d;},'VZqrg':_0x36e582(0x19d),'GWnce':function(_0x9a58cf,_0x3ab917,_0x39a33d){return _0x9a58cf(_0x3ab917,_0x39a33d);},'YOahV':_0x36e582(0x1b3),'FWWQl':_0x36e582(0x1c6),'DtbjJ':'initSession\x20failed','TZFdz':function(_0x4d884a,_0x3ed2a4){return _0x4d884a==_0x3ed2a4;},'bBemf':_0x36e582(0x1ad)};this['engine']=new _0x3437b4[(_0x36e582(0x219))](),this[_0x36e582(0x1a2)]=new _0x3437b4['NodeQQNTWrapperUtil'](),this[_0x36e582(0x175)]=new _0x3437b4[(_0x36e582(0x178))](),this[_0x36e582(0x209)]=new _0x3437b4[(_0x36e582(0x174))](),this['loginListener']=new LoginListener(),this[_0x36e582(0x18e)][_0x36e582(0x1c1)]=_0x54e88e=>{const _0x148afe=_0x36e582;_0x660dd7[_0x148afe(0x19e)](logError,_0x660dd7['QtLJu'](_0x660dd7['OHoXi'](_0x660dd7[_0x148afe(0x1ae)],_0x54e88e),')已登录,无法重复登录'));},this[_0x36e582(0x18e)][_0x36e582(0x1bc)]=_0x3f8fbf=>{const _0x2748f2=_0x36e582,_0x6a60b4={'qgCTr':function(_0x4fd38f,_0x3d78c7,_0x3ee6c1){const _0x4881bc=_0x5b18;return _0x660dd7[_0x4881bc(0x196)](_0x4fd38f,_0x3d78c7,_0x3ee6c1);},'SQjBZ':function(_0x463025,_0x2eb115){return _0x463025 instanceof _0x2eb115;},'NCRQV':function(_0x499786,_0x492d26,_0x52dd3f){const _0xaa9722=_0x5b18;return _0x660dd7[_0xaa9722(0x196)](_0x499786,_0x492d26,_0x52dd3f);},'nlhAV':function(_0x34fc20,_0x298189){const _0x31a9f0=_0x5b18;return _0x660dd7[_0x31a9f0(0x19e)](_0x34fc20,_0x298189);},'RUBvD':_0x660dd7[_0x2748f2(0x1d7)],'rXzJs':_0x660dd7[_0x2748f2(0x1bd)],'FKiGH':_0x660dd7[_0x2748f2(0x188)]};this[_0x2748f2(0x18f)](_0x3f8fbf[_0x2748f2(0x176)],_0x3f8fbf['uid'])[_0x2748f2(0x180)](_0x3a8234=>{const _0x3766a4=_0x2748f2,_0x595ae9={'IlnSw':function(_0x5cd8bb,_0x526773){const _0x2a4e44=_0x5b18;return _0x6a60b4[_0x2a4e44(0x201)](_0x5cd8bb,_0x526773);}};selfInfo['uin']=_0x3f8fbf[_0x3766a4(0x176)],selfInfo['uid']=_0x3f8fbf[_0x3766a4(0x1b0)],napCatConfig['read'](),_0x6a60b4[_0x3766a4(0x1c3)](setLogLevel,napCatConfig[_0x3766a4(0x200)],napCatConfig[_0x3766a4(0x190)]),_0x6a60b4[_0x3766a4(0x1d6)](enableFileLog,napCatConfig[_0x3766a4(0x191)]),enableConsoleLog(napCatConfig['consoleLog']),_0x6a60b4[_0x3766a4(0x1d6)](setLogSelfInfo,selfInfo);const _0x2321b3=_0x4deabb[_0x3766a4(0x1a9)](this[_0x3766a4(0x1e8)],_0x6a60b4[_0x3766a4(0x218)]);_0x3f1272['mkdirSync'](_0x2321b3,{'recursive':!![]}),_0x6a60b4[_0x3766a4(0x1ff)](logDebug,_0x6a60b4[_0x3766a4(0x1d1)],_0x2321b3),dbUtil[_0x3766a4(0x1ea)](_0x4deabb[_0x3766a4(0x1a9)](_0x2321b3,'./'+_0x3f8fbf[_0x3766a4(0x176)]+'-v2.db'))['then'](()=>{const _0x1ea298=_0x3766a4;this[_0x1ea298(0x1dc)](),this[_0x1ea298(0x195)][_0x1ea298(0x1e0)](_0x31cc15=>{const _0x4822e0={'NGLtz':function(_0x42818b,_0x34c853){const _0x334603=_0x5b18;return _0x595ae9[_0x334603(0x199)](_0x42818b,_0x34c853);}};new Promise((_0x351d68,_0x493b1b)=>{const _0x5c4da3=_0x5b18,_0x252ba6=_0x31cc15(_0x3f8fbf['uin'],_0x3f8fbf[_0x5c4da3(0x1b0)]);_0x4822e0[_0x5c4da3(0x220)](_0x252ba6,Promise)&&_0x252ba6[_0x5c4da3(0x180)](_0x351d68)[_0x5c4da3(0x20b)](_0x493b1b);})['then']();});})[_0x3766a4(0x20b)](_0x7d756b=>{const _0x571107=_0x3766a4;_0x6a60b4[_0x571107(0x1ff)](logError,_0x571107(0x1f9),_0x7d756b);});})[_0x2748f2(0x20b)](_0x14b86a=>{const _0x21a950=_0x2748f2;_0x6a60b4[_0x21a950(0x1ff)](logError,_0x6a60b4['FKiGH'],_0x14b86a);throw new Error('启动失败:\x20'+JSON[_0x21a950(0x198)](_0x14b86a));});},this[_0x36e582(0x18e)][_0x36e582(0x1eb)]=(_0x26c58f,_0x1d9c8b,_0x3e8ce6)=>{const _0x231475=_0x36e582;logError(_0x231475(0x1ad),_0x3e8ce6),_0x660dd7['TZFdz'](_0x26c58f,0x1)&&_0x660dd7['TZFdz'](_0x1d9c8b,0x3)&&this[_0x231475(0x175)][_0x231475(0x1f5)]();},this[_0x36e582(0x18e)][_0x36e582(0x221)]=_0x34525a=>{const _0x2d565b=_0x36e582;_0x660dd7[_0x2d565b(0x196)](logError,_0x660dd7[_0x2d565b(0x192)],_0x34525a);},this[_0x36e582(0x18e)]=new Proxy(this[_0x36e582(0x18e)],this[_0x36e582(0x205)]),this[_0x36e582(0x175)][_0x36e582(0x1b4)](new _0x3437b4[(_0x36e582(0x1c7))](this[_0x36e582(0x18e)])),this[_0x36e582(0x208)]();}get[_0x3ebcf4(0x1e8)](){const _0x289c42=_0x3ebcf4,_0x130086={'yLDmq':_0x289c42(0x17a)};let _0x2ae28e=this[_0x289c42(0x1a2)][_0x289c42(0x183)]();return!_0x2ae28e&&(_0x2ae28e=_0x4deabb['resolve'](_0x493d42[_0x289c42(0x197)](),_0x130086[_0x289c42(0x18a)]),_0x3f1272[_0x289c42(0x213)](_0x2ae28e,{'recursive':!![]})),_0x2ae28e;}get[_0x3ebcf4(0x203)](){const _0x55aaad=_0x3ebcf4;return _0x4deabb[_0x55aaad(0x1a9)](this[_0x55aaad(0x1e8)],_0x55aaad(0x187));}['initConfig'](){const _0x1b5d97=_0x3ebcf4,_0x53342={'JwWeK':_0x1b5d97(0x202)};this[_0x1b5d97(0x20c)][_0x1b5d97(0x1c5)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x1b5d97(0x1c4)],'os_version':_0x53342['JwWeK'],'use_xlog':!![],'qua':'V1_WIN_NQ_'+qqVersionConfigInfo['curVersion'][_0x1b5d97(0x1be)]('-','_')+_0x1b5d97(0x1f3),'global_path_config':{'desktopGlobalPath':this[_0x1b5d97(0x203)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x3437b4[(_0x1b5d97(0x17d))](new GlobalAdapter())),this['loginService'][_0x1b5d97(0x208)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x1b5d97(0x203)],'clientVer':qqVersionConfigInfo[_0x1b5d97(0x1c4)],'hostName':hostname});}[_0x3ebcf4(0x18f)](_0x39eb95,_0x1d04f3){const _0x5a80c9=_0x3ebcf4,_0x30f2d2={'MeFvf':function(_0x18f1ca,_0x47ee1c){return _0x18f1ca===_0x47ee1c;},'MHFPI':function(_0x4fce50,_0x58dc8c,_0x116476,_0xa2e8e1){return _0x4fce50(_0x58dc8c,_0x116476,_0xa2e8e1);},'PvncS':function(_0xea3779,_0x6cc277){return _0xea3779(_0x6cc277);},'eWHRN':function(_0x33f417,_0x12e7f4){return _0x33f417+_0x12e7f4;},'CAARh':_0x5a80c9(0x1ac)};return new Promise((_0x13edb8,_0x46ca75)=>{const _0x21f759=_0x5a80c9,_0x47ea0d={'nuPuA':function(_0x1554bf,_0x397249){return _0x30f2d2['MeFvf'](_0x1554bf,_0x397249);},'BINns':function(_0x372c5b,_0x3ee0ab){return _0x372c5b(_0x3ee0ab);}},_0x2a1133=_0x30f2d2[_0x21f759(0x189)](genSessionConfig,_0x39eb95,_0x1d04f3,this[_0x21f759(0x1e8)]),_0x48109d=new SessionListener();_0x48109d['onSessionInitComplete']=_0x1e8076=>{const _0x2e59e1=_0x21f759;if(_0x47ea0d[_0x2e59e1(0x18c)](_0x1e8076,0x0))return _0x47ea0d[_0x2e59e1(0x211)](_0x13edb8,0x0);_0x47ea0d[_0x2e59e1(0x211)](_0x46ca75,_0x1e8076);},this['session']['init'](_0x2a1133,new _0x3437b4['NodeIDependsAdapter'](new DependsAdapter()),new _0x3437b4[(_0x21f759(0x1bb))](new DispatcherAdapter()),new _0x3437b4[(_0x21f759(0x1d0))](_0x48109d));try{this[_0x21f759(0x209)][_0x21f759(0x19b)](0x0);}catch(_0x39c6a6){try{this[_0x21f759(0x209)][_0x21f759(0x19b)]();}catch(_0x1caea4){_0x30f2d2[_0x21f759(0x1a7)](_0x46ca75,_0x30f2d2[_0x21f759(0x1fc)](_0x30f2d2[_0x21f759(0x21b)],_0x1caea4));}}});}[_0x3ebcf4(0x1dc)](){const _0x329056=_0x3ebcf4,_0xa4db17={'bJzyw':function(_0x4e42c6,_0x300cde){return _0x4e42c6===_0x300cde;},'bzWEb':function(_0x5c3622,_0x42f232){return _0x5c3622+_0x42f232;},'rZirn':'账号设备(','dSJGZ':_0x329056(0x1ba),'VIPVQ':'[KickedOffLine]\x20[','tnhvr':function(_0x10b6a1,_0x32f44f){return _0x10b6a1/_0x32f44f;},'WmVoX':function(_0x4fa450,_0x3ba914){return _0x4fa450!==_0x3ba914;},'IdGXj':_0x329056(0x204)},_0x21fb3f=new MsgListener();_0x21fb3f[_0x329056(0x1c8)]=_0x33f426=>{const _0x2e49dc=_0x329056;_0x33f426[_0x2e49dc(0x1e0)](_0x52f828=>{const _0x39170f=_0x2e49dc;_0xa4db17[_0x39170f(0x1de)](_0x52f828['clientType'],0x2)&&log(_0xa4db17[_0x39170f(0x182)](_0xa4db17[_0x39170f(0x194)],_0x52f828[_0x39170f(0x1d9)])+_0xa4db17[_0x39170f(0x1fe)]);});},_0x21fb3f[_0x329056(0x186)]=_0x1783e5=>{const _0x52ac55=_0x329056;log(_0xa4db17['bzWEb'](_0xa4db17[_0x52ac55(0x182)](_0xa4db17[_0x52ac55(0x1c2)],_0x1783e5[_0x52ac55(0x1df)])+']\x20',_0x1783e5[_0x52ac55(0x1ca)]));},_0x21fb3f[_0x329056(0x1cc)]=_0x402786=>{const _0x1f155a={'zdSGK':function(_0x1eea1a,_0x419f56){const _0xb4aca2=_0x5b18;return _0xa4db17[_0xb4aca2(0x1de)](_0x1eea1a,_0x419f56);}};stat['packet_received']+=0x1,_0x402786['map'](_0x44cb48=>{const _0x32d644=_0x5b18;_0x1f155a[_0x32d644(0x1f2)](_0x44cb48[_0x32d644(0x21c)],'0')?dbUtil['addMsg'](_0x44cb48)[_0x32d644(0x180)]()[_0x32d644(0x20b)]():dbUtil[_0x32d644(0x21e)](_0x44cb48['msgId'])[_0x32d644(0x180)](_0x4340a5=>{const _0x199a7=_0x32d644;_0x4340a5&&(_0x4340a5[_0x199a7(0x21c)]=_0x44cb48[_0x199a7(0x21c)],dbUtil[_0x199a7(0x181)](_0x4340a5)[_0x199a7(0x180)]());});});},_0x21fb3f[_0x329056(0x21d)]=_0x16eb62=>{const _0x5459ee=_0x329056;stat[_0x5459ee(0x1d4)]+=0x1,stat[_0x5459ee(0x17e)]+=0x1,stat[_0x5459ee(0x1e3)]=Math[_0x5459ee(0x1a4)](Date['now']()/0x3e8);},_0x21fb3f[_0x329056(0x19a)]=_0x5a43b5=>{const _0x5230a6=_0x329056;stat[_0x5230a6(0x1b9)]+=0x1,stat[_0x5230a6(0x1aa)]+=_0x5a43b5[_0x5230a6(0x1e9)],stat[_0x5230a6(0x1e3)]=Math[_0x5230a6(0x1a4)](_0xa4db17['tnhvr'](Date[_0x5230a6(0x17c)](),0x3e8));},_0x21fb3f[_0x329056(0x20f)]=(..._0x363a28)=>{stat['packet_received']+=0x1;},this[_0x329056(0x1d8)](_0x21fb3f);const _0x411a99=new BuddyListener();_0x411a99['onBuddyListChange']=_0x233ae6=>{const _0x4e285d=_0x329056;rawFriends[_0x4e285d(0x1e9)]=0x0,rawFriends[_0x4e285d(0x1f6)](..._0x233ae6);for(const _0x12a6a2 of _0x233ae6){for(const _0x284c6d of _0x12a6a2[_0x4e285d(0x1a1)]){const _0x4a629e=friends[_0x4e285d(0x1e2)](_0x284c6d[_0x4e285d(0x1b0)]);uid2UinMap[_0x284c6d[_0x4e285d(0x1b0)]]=_0x284c6d[_0x4e285d(0x176)],_0x4a629e?Object['assign'](_0x4a629e,_0x284c6d):friends[_0x4e285d(0x1d5)](_0x284c6d['uid'],_0x284c6d);}}},this[_0x329056(0x1d8)](_0x411a99),this[_0x329056(0x209)]['getBuddyService']()[_0x329056(0x1cb)](!![])[_0x329056(0x180)](_0xe2819e=>{});const _0x17d25f=new ProfileListener();_0x17d25f[_0x329056(0x1a6)]=_0x1bd4ff=>{const _0x3c9613=_0x329056;_0xa4db17['bJzyw'](_0x1bd4ff[_0x3c9613(0x1b0)],selfInfo['uid'])&&Object[_0x3c9613(0x1bf)](selfInfo,_0x1bd4ff);},_0x17d25f[_0x329056(0x1b8)]=_0x27f26f=>{},this['addListener'](_0x17d25f);const _0x5ce22f=new GroupListener();_0x5ce22f['onGroupListUpdate']=(_0x18730c,_0x3ae1b2)=>{const _0x32f04d=_0x329056;_0x3ae1b2[_0x32f04d(0x1e0)](_0x2136d6=>{const _0xfba245=_0x32f04d,_0x41045f=groups[_0xfba245(0x1e2)](_0x2136d6[_0xfba245(0x1a3)]);if(_0x41045f&&_0xa4db17[_0xfba245(0x18d)](_0x2136d6[_0xfba245(0x225)],_0x41045f[_0xfba245(0x225)]))Object[_0xfba245(0x1bf)](_0x41045f,_0x2136d6);else{groups['set'](_0x2136d6['groupCode'],_0x2136d6);const _0x1c292c=this[_0xfba245(0x209)][_0xfba245(0x1b1)]()['createMemberListScene'](_0x2136d6[_0xfba245(0x1a3)],_0xa4db17[_0xfba245(0x224)]);this['session']['getGroupService']()[_0xfba245(0x179)](_0x1c292c,undefined,0xbb8)['then'](_0x1b568c=>{});}});},_0x5ce22f['onMemberListChange']=_0x21aadf=>{const _0x41f399=_0x329056,_0x52d7ab=_0x21aadf[_0x41f399(0x17b)]['split']('_')[0x0];if(groupMembers[_0x41f399(0x212)](_0x52d7ab)){const _0x1409bc=groupMembers[_0x41f399(0x1e2)](_0x52d7ab);_0x21aadf['infos'][_0x41f399(0x1ec)]((_0x357d38,_0xda8afd)=>{const _0x100d4c=_0x41f399,_0x13a405=_0x1409bc[_0x100d4c(0x1e2)](_0xda8afd);_0x13a405?Object['assign'](_0x13a405,_0x357d38):_0x1409bc[_0x100d4c(0x1d5)](_0xda8afd,_0x357d38);});}else groupMembers[_0x41f399(0x1d5)](_0x52d7ab,_0x21aadf[_0x41f399(0x1ef)]);},_0x5ce22f['onMemberInfoChange']=(_0x43b5c4,_0x1dc31b,_0x1e787f)=>{const _0x54d3fa=_0x329056;_0xa4db17[_0x54d3fa(0x1de)](_0x1dc31b,0x0)&&_0x1e787f[_0x54d3fa(0x1e2)](selfInfo['uid'])&&_0x1e787f[_0x54d3fa(0x1e2)](selfInfo[_0x54d3fa(0x1b0)])?.[_0x54d3fa(0x19f)]&&setTimeout(()=>{const _0x52279a=_0x54d3fa;groups[_0x52279a(0x1b2)](_0x43b5c4);},0x1388);_0x1e787f[_0x54d3fa(0x1ec)]((_0x300ba7,_0xa5b857)=>{const _0x495d59=_0x54d3fa;uid2UinMap[_0xa5b857]=_0x300ba7[_0x495d59(0x176)];});const _0x34a402=groupMembers[_0x54d3fa(0x1e2)](_0x43b5c4);_0x34a402?_0x1e787f[_0x54d3fa(0x1ec)]((_0x5f549f,_0xc12fad)=>{const _0x4db51c=_0x54d3fa,_0x4cd888=_0x34a402[_0x4db51c(0x1e2)](_0xc12fad);_0x4cd888?Object['assign'](_0x4cd888,_0x5f549f):_0x34a402[_0x4db51c(0x1d5)](_0xc12fad,_0x5f549f);}):groupMembers[_0x54d3fa(0x1d5)](_0x43b5c4,_0x1e787f);},this[_0x329056(0x1d8)](_0x5ce22f);}['addListener'](_0x471c53){const _0x175f60=_0x3ebcf4,_0x1d442a={'UvsJS':'GroupListener','ZQvSB':_0x175f60(0x1d3)};_0x471c53=new Proxy(_0x471c53,this['proxyHandler']);switch(_0x471c53[_0x175f60(0x20e)][_0x175f60(0x1c9)]){case'BuddyListener':{return this[_0x175f60(0x209)][_0x175f60(0x223)]()[_0x175f60(0x1a8)](new _0x3437b4[(_0x175f60(0x1e6))](_0x471c53));}case _0x1d442a[_0x175f60(0x21f)]:{return this[_0x175f60(0x209)][_0x175f60(0x1b1)]()['addKernelGroupListener'](new _0x3437b4[(_0x175f60(0x193))](_0x471c53));}case _0x175f60(0x215):{return this['session'][_0x175f60(0x1da)]()['addKernelMsgListener'](new _0x3437b4['NodeIKernelMsgListener'](_0x471c53));}case _0x1d442a['ZQvSB']:{return this['session']['getProfileService']()[_0x175f60(0x1cf)](new _0x3437b4[(_0x175f60(0x1e5))](_0x471c53));}default:return-0x1;}}[_0x3ebcf4(0x177)](_0x131bf5){const _0xe88567=_0x3ebcf4;this[_0xe88567(0x195)]['push'](_0x131bf5);}async[_0x3ebcf4(0x21a)](_0xd02c1d){const _0x4e81a4=_0x3ebcf4,_0x111b19={'XEpzv':function(_0x2b8666,_0x192f7a){return _0x2b8666!==_0x192f7a;},'zeCmL':function(_0x55f060,_0x2cb2f5){return _0x55f060+_0x2cb2f5;},'YPSRd':'快速登录失败\x20'},_0x5bbd8e=await this[_0x4e81a4(0x175)][_0x4e81a4(0x1e7)]();if(_0x111b19['XEpzv'](_0x5bbd8e['result'],0x0))throw new Error('没有可快速登录的QQ号');const _0x40cb7d=_0x5bbd8e[_0x4e81a4(0x185)]['find'](_0x5cec87=>_0x5cec87['uin']===_0xd02c1d);if(!_0x40cb7d||!_0x40cb7d?.['isQuickLogin'])throw new Error(_0xd02c1d+_0x4e81a4(0x1ee));await sleep(0x3e8);const _0x2f4dcd=await this[_0x4e81a4(0x175)]['quickLoginWithUin'](_0xd02c1d);if(!_0x2f4dcd[_0x4e81a4(0x1f0)])throw new Error(_0x111b19[_0x4e81a4(0x18b)](_0x111b19[_0x4e81a4(0x216)],_0x2f4dcd[_0x4e81a4(0x1e1)][_0x4e81a4(0x1c0)]));return _0x2f4dcd;}async['qrLogin'](_0x2b8a00){const _0xc7d688=_0x3ebcf4,_0xd116b9={'DmdrP':'data:image/png;base64,','XTMtD':_0xc7d688(0x1ce),'sBETS':function(_0x399e43,_0x262c0f,_0x52452a,_0x13b857){return _0x399e43(_0x262c0f,_0x52452a,_0x13b857);}};return new Promise((_0x53641c,_0x3226fe)=>{const _0x1419eb=_0xc7d688;this[_0x1419eb(0x18e)][_0x1419eb(0x206)]=_0x2c0dc8=>{const _0x5972aa=_0x1419eb,_0x2598ff=_0x2c0dc8[_0x5972aa(0x1cd)][_0x5972aa(0x1ed)](_0xd116b9[_0x5972aa(0x214)])[0x1],_0x2c7caf=Buffer[_0x5972aa(0x1b5)](_0x2598ff,_0xd116b9['XTMtD']);_0xd116b9[_0x5972aa(0x1dd)](_0x2b8a00,_0x2c0dc8[_0x5972aa(0x210)],_0x2c0dc8[_0x5972aa(0x1cd)],_0x2c7caf);},this['loginService']['getQRCodePicture']();});}async[_0x3ebcf4(0x20d)](_0x374293,_0x5e016b,_0x4a3a8e,_0x553d3b,_0x2f1570){const _0x209a51=_0x3ebcf4,_0x1cb6a1={'IjiBP':_0x209a51(0x207),'GKhYp':_0x209a51(0x222),'IJLVy':function(_0x2e0ea9,_0x5e727a){return _0x2e0ea9&&_0x5e727a;},'VeSGC':function(_0x5dee53,_0x500787){return _0x5dee53||_0x500787;},'chjUH':function(_0xad917b,_0x3d8184){return _0xad917b(_0x3d8184);},'EHfam':_0x209a51(0x1f8),'xDYHl':_0x209a51(0x1fd)},_0x2bf078=_0xde9169['createHash'](_0x1cb6a1['IjiBP'])['update'](_0x5e016b)['digest'](_0x1cb6a1[_0x209a51(0x1d2)]),_0x1f9ae0={'uin':_0x374293,'passwordMd5':_0x2bf078,'step':_0x1cb6a1[_0x209a51(0x1e4)](_0x4a3a8e,_0x553d3b)&&_0x2f1570?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x1cb6a1[_0x209a51(0x1ab)](_0x4a3a8e,''),'proofWaterRand':_0x553d3b||'','proofWaterSid':_0x1cb6a1[_0x209a51(0x1ab)](_0x2f1570,'')};await this[_0x209a51(0x175)]['getLoginList'](),await _0x1cb6a1['chjUH'](sleep,0x3e8);const _0x522afa=await this[_0x209a51(0x175)][_0x209a51(0x20d)](_0x1f9ae0);switch(_0x522afa[_0x209a51(0x1f0)]){case'0':{break;}case _0x1cb6a1[_0x209a51(0x1a5)]:{break;}case'4':case _0x1cb6a1[_0x209a51(0x1a0)]:default:}}async['getQuickLoginList'](){const _0xa01991=_0x3ebcf4,_0x4a694d=await this['loginService'][_0xa01991(0x1e7)]();return _0x4a694d;}}export const napCatCore=new NapCatCore();function _0x13f1(){const _0xfa1a1d=['sBETS','bJzyw','tipsTitle','map','loginErrorInfo','get','last_message_time','IJLVy','NodeIKernelProfileListener','NodeIKernelBuddyListener','getLoginList','dataPath','length','init','onQRCodeSessionFailed','forEach','split','快速登录不可用','infos','result','2139872PmTlcM','zdSGK','_GW_B','28890NnrKzh','getQRCodePicture','push','NRDol','140022008','数据库初始化失败','4212360EYifnb','XyDRs','eWHRN','140022013','dSJGZ','qgCTr','fileLogLevel','SQjBZ','Windows\x2010\x20Pro','dataPathGlobal','groupMemberList_MainWindow','proxyHandler','onQRCodeGetPicture','md5','initConfig','session','16137430cJpwel','catch','engine','passwordLogin','constructor','onRecvSysMsg','qrcodeUrl','BINns','has','mkdirSync','DmdrP','MsgListener','YPSRd','3RgeyLd','RUBvD','NodeIQQNTWrapperEngine','quickLogin','CAARh','recallTime','onAddSendMsg','getMsgByLongId','UvsJS','NGLtz','onLoginFailed','hex','getBuddyService','IdGXj','memberCount','NodeIQQNTWrapperSession','loginService','uin','onLoginSuccess','NodeIKernelLoginService','getNextMemberList','./.config/QQ','sceneId','now','NodeIGlobalAdapter','message_sent','\x20has\x20no\x20method\x20','then','updateMsg','bzWEb','getNTUserDataInfoConfig','1wLmjsb','LocalLoginInfoList','onKickedOffLine','./nt_qq/global','DtbjJ','MHFPI','yLDmq','zeCmL','nuPuA','WmVoX','loginListener','initSession','consoleLogLevel','fileLog','bBemf','NodeIKernelGroupListener','rZirn','onLoginSuccessFuncList','GWnce','homedir','stringify','IlnSw','onRecvMsg','startNT','896166UCngnH','当前账号(','JpATz','isDelete','xDYHl','buddyList','util','groupCode','floor','EHfam','onProfileDetailInfoChanged','PvncS','addKernelBuddyListener','resolve','message_received','VeSGC','init\x20failed\x20','登录失败','VZqrg','5344872BPapPf','uid','getGroupService','delete','./NapCat/data','addKernelLoginListener','from','1234665epXBWN','133VUONoW','onSelfStatusChanged','packet_received',')\x20在线状态变更','NodeIDispatcherAdapter','onQRCodeLoginSucceed','FWWQl','replace','assign','errMsg','onUserLoggedIn','VIPVQ','NCRQV','curVersion','initWithDeskTopConfig','本账号数据/缓存目录:','NodeIKernelLoginListener','onLineDev','name','tipsDesc','getBuddyList','onMsgInfoListUpdate','pngBase64QrcodeData','base64','addKernelProfileListener','NodeIKernelSessionListener','rXzJs','GKhYp','ProfileListener','packet_sent','set','nlhAV','YOahV','addListener','devUid','getMsgService','undefined','initDataListener'];_0x13f1=function(){return _0xfa1a1d;};return _0x13f1();} \ No newline at end of file diff --git a/src/core.lib/src/data.js b/src/core.lib/src/data.js index de86b565..7757a27e 100644 --- a/src/core.lib/src/data.js +++ b/src/core.lib/src/data.js @@ -1 +1 @@ -(function(_0x401365,_0x49c61c){const _0x4cf9d3=_0x46ad,_0x35b7b1=_0x401365();while(!![]){try{const _0xf804b0=-parseInt(_0x4cf9d3(0xe0))/0x1+parseInt(_0x4cf9d3(0xd5))/0x2+parseInt(_0x4cf9d3(0xe4))/0x3+-parseInt(_0x4cf9d3(0xe5))/0x4+-parseInt(_0x4cf9d3(0xd3))/0x5+parseInt(_0x4cf9d3(0xe2))/0x6+-parseInt(_0x4cf9d3(0xdb))/0x7;if(_0xf804b0===_0x49c61c)break;else _0x35b7b1['push'](_0x35b7b1['shift']());}catch(_0x37cea4){_0x35b7b1['push'](_0x35b7b1['shift']());}}}(_0x1de9,0x3fb3a));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'Cookies':new Map(),'ClientKey':'','KeyIndex':'','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(_0x276185){groups['delete'](_0x276185),groupMembers['delete'](_0x276185);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};function _0x1de9(){const _0x46c768=['1036428RIsfkI','181552oTBqTk','1480685bZoCFu','from','32058DZAjYK','getGroupMembers','groupCode','forEach','toString','get','440454sBiBSy','set','yZbcq','lVkTg','uin','26794ZpwVvZ','values','1983948YniqKh','FQazi'];_0x1de9=function(){return _0x46c768;};return _0x1de9();}export const groupNotifies={};function _0x46ad(_0x1099aa,_0x5a1b3a){const _0x1de96c=_0x1de9();return _0x46ad=function(_0x46ad8c,_0x3340f5){_0x46ad8c=_0x46ad8c-0xd3;let _0x49bbc0=_0x1de96c[_0x46ad8c];return _0x49bbc0;},_0x46ad(_0x1099aa,_0x5a1b3a);}export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':'NapCat未能正常启动,请检查日志查看错误'};export async function getFriend(_0x5f30fb){const _0x6e4da5=_0x46ad;_0x5f30fb=_0x5f30fb[_0x6e4da5(0xd9)]();if(isNumeric(_0x5f30fb)){const _0x3fc7a6=Array[_0x6e4da5(0xd4)](friends['values']());return _0x3fc7a6['find'](_0x2e800f=>_0x2e800f[_0x6e4da5(0xdf)]===_0x5f30fb);}else return friends[_0x6e4da5(0xda)](_0x5f30fb);}export async function getGroup(_0x21aabf){const _0x28377d=_0x46ad;let _0x2cd5c2=groups[_0x28377d(0xda)](_0x21aabf[_0x28377d(0xd9)]());if(!_0x2cd5c2)try{const _0x4d6144=await NTQQGroupApi['getGroups']();_0x4d6144['length']&&_0x4d6144[_0x28377d(0xd8)](_0x775b9b=>{const _0xf4c4e4=_0x28377d;groups[_0xf4c4e4(0xdc)](_0x775b9b[_0xf4c4e4(0xd7)],_0x775b9b);});}catch(_0x104e6d){return undefined;}return _0x2cd5c2=groups[_0x28377d(0xda)](_0x21aabf['toString']()),_0x2cd5c2;}export async function getGroupMember(_0x528bc3,_0x2e3d7e){const _0x559e60=_0x46ad,_0x594e7f={'yZbcq':function(_0x7a454b,_0x4f97d0){return _0x7a454b(_0x4f97d0);},'lVkTg':function(_0x58f8b7){return _0x58f8b7();}};_0x528bc3=_0x528bc3['toString'](),_0x2e3d7e=_0x2e3d7e['toString']();let _0x19c61a=groupMembers['get'](_0x528bc3);if(!_0x19c61a)try{_0x19c61a=await NTQQGroupApi[_0x559e60(0xd6)](_0x528bc3),groupMembers['set'](_0x528bc3,_0x19c61a);}catch(_0x521acf){return null;}const _0x4fcf5d=()=>{const _0x273111=_0x559e60;let _0x3c4506=undefined;return _0x594e7f[_0x273111(0xdd)](isNumeric,_0x2e3d7e)?_0x3c4506=Array[_0x273111(0xd4)](_0x19c61a[_0x273111(0xe1)]())['find'](_0x3cd5e1=>_0x3cd5e1[_0x273111(0xdf)]===_0x2e3d7e):_0x3c4506=_0x19c61a[_0x273111(0xda)](_0x2e3d7e),_0x3c4506;};let _0x4b71c2=_0x594e7f[_0x559e60(0xde)](_0x4fcf5d);return!_0x4b71c2&&(_0x19c61a=await NTQQGroupApi[_0x559e60(0xd6)](_0x528bc3),_0x4b71c2=_0x594e7f[_0x559e60(0xde)](_0x4fcf5d)),_0x4b71c2;}export const uid2UinMap={};export function getUidByUin(_0x2c19ed){const _0x7a948b=_0x46ad,_0x320798={'FQazi':function(_0x4bbb22,_0x56045b){return _0x4bbb22===_0x56045b;}};for(const _0x40d473 in uid2UinMap){if(_0x320798[_0x7a948b(0xe3)](uid2UinMap[_0x40d473],_0x2c19ed))return _0x40d473;}}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0}; \ No newline at end of file +(function(_0x5a094b,_0x53bca0){const _0x3456d1=_0x31c6,_0x4f983c=_0x5a094b();while(!![]){try{const _0x4ae09a=parseInt(_0x3456d1(0x154))/0x1*(-parseInt(_0x3456d1(0x167))/0x2)+parseInt(_0x3456d1(0x15a))/0x3*(parseInt(_0x3456d1(0x16b))/0x4)+-parseInt(_0x3456d1(0x169))/0x5*(parseInt(_0x3456d1(0x163))/0x6)+-parseInt(_0x3456d1(0x16c))/0x7*(-parseInt(_0x3456d1(0x159))/0x8)+-parseInt(_0x3456d1(0x15f))/0x9*(-parseInt(_0x3456d1(0x15e))/0xa)+parseInt(_0x3456d1(0x16a))/0xb*(parseInt(_0x3456d1(0x153))/0xc)+-parseInt(_0x3456d1(0x161))/0xd*(parseInt(_0x3456d1(0x15d))/0xe);if(_0x4ae09a===_0x53bca0)break;else _0x4f983c['push'](_0x4f983c['shift']());}catch(_0x4caddb){_0x4f983c['push'](_0x4f983c['shift']());}}}(_0x59e3,0x8936e));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'Cookies':new Map(),'ClientKey':'','KeyIndex':'','PskeyData':new Map(),'PskeyTime':new Map()};function _0x31c6(_0x35d7d7,_0x2b617d){const _0x59e372=_0x59e3();return _0x31c6=function(_0x31c682,_0x1e4a6f){_0x31c682=_0x31c682-0x152;let _0x42b77b=_0x59e372[_0x31c682];return _0x42b77b;},_0x31c6(_0x35d7d7,_0x2b617d);}export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x38683a){const _0x5e820b=_0x31c6;groups[_0x5e820b(0x164)](_0x38683a),groupMembers[_0x5e820b(0x164)](_0x38683a);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};function _0x59e3(){const _0xfa9a31=['forEach','values','from','47744NGjoxX','15lfbwQC','toString','wtogw','20818drtaZM','10ockpIG','7553727kuARYX','vLIBs','20059KEEnWe','set','441186NHzJPt','delete','getGroupMembers','find','12AeFSrV','get','45CpSUlf','71621suZMQH','713308iGUJgo','1036GmiFwy','uin','2064TjVpoN','35974zPmWzG','getGroups'];_0x59e3=function(){return _0xfa9a31;};return _0x59e3();}export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':'NapCat未能正常启动,请检查日志查看错误'};export async function getFriend(_0x241e6e){const _0x340a30=_0x31c6,_0x33670b={'wtogw':function(_0x33b955,_0x412eaa){return _0x33b955(_0x412eaa);}};_0x241e6e=_0x241e6e[_0x340a30(0x15b)]();if(_0x33670b[_0x340a30(0x15c)](isNumeric,_0x241e6e)){const _0x887b8a=Array[_0x340a30(0x158)](friends[_0x340a30(0x157)]());return _0x887b8a[_0x340a30(0x166)](_0x1e9b17=>_0x1e9b17['uin']===_0x241e6e);}else return friends[_0x340a30(0x168)](_0x241e6e);}export async function getGroup(_0xa20a5d){const _0x5ea1e2=_0x31c6;let _0x12a308=groups[_0x5ea1e2(0x168)](_0xa20a5d[_0x5ea1e2(0x15b)]());if(!_0x12a308)try{const _0x10a3e8=await NTQQGroupApi[_0x5ea1e2(0x155)]();_0x10a3e8['length']&&_0x10a3e8[_0x5ea1e2(0x156)](_0x3246a2=>{const _0x41b173=_0x5ea1e2;groups[_0x41b173(0x162)](_0x3246a2['groupCode'],_0x3246a2);});}catch(_0x5453c1){return undefined;}return _0x12a308=groups['get'](_0xa20a5d[_0x5ea1e2(0x15b)]()),_0x12a308;}export async function getGroupMember(_0x42d756,_0x4ebf44){const _0x28311c=_0x31c6,_0x1223dc={'vLIBs':function(_0x4eb939){return _0x4eb939();}};_0x42d756=_0x42d756[_0x28311c(0x15b)](),_0x4ebf44=_0x4ebf44['toString']();let _0x550c2d=groupMembers[_0x28311c(0x168)](_0x42d756);if(!_0x550c2d)try{_0x550c2d=await NTQQGroupApi['getGroupMembers'](_0x42d756),groupMembers['set'](_0x42d756,_0x550c2d);}catch(_0x4f4d31){return null;}const _0x1b91eb=()=>{const _0x430760=_0x28311c;let _0x481c1e=undefined;return isNumeric(_0x4ebf44)?_0x481c1e=Array[_0x430760(0x158)](_0x550c2d['values']())['find'](_0x34adef=>_0x34adef[_0x430760(0x152)]===_0x4ebf44):_0x481c1e=_0x550c2d[_0x430760(0x168)](_0x4ebf44),_0x481c1e;};let _0x5ce91f=_0x1223dc[_0x28311c(0x160)](_0x1b91eb);return!_0x5ce91f&&(_0x550c2d=await NTQQGroupApi[_0x28311c(0x165)](_0x42d756),_0x5ce91f=_0x1223dc['vLIBs'](_0x1b91eb)),_0x5ce91f;}export const uid2UinMap={};export function getUidByUin(_0xb040d4){for(const _0x235ea2 in uid2UinMap){if(uid2UinMap[_0x235ea2]===_0xb040d4)return _0x235ea2;}}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 27acdca7..4035f858 100644 --- a/src/core.lib/src/entities/cache.js +++ b/src/core.lib/src/entities/cache.js @@ -1 +1 @@ -(function(_0x3bc2ff,_0x41b78b){var _0x12c40b=_0x59cc,_0x242db8=_0x3bc2ff();while(!![]){try{var _0x497fa2=-parseInt(_0x12c40b(0x19f))/0x1*(-parseInt(_0x12c40b(0x1a0))/0x2)+parseInt(_0x12c40b(0x193))/0x3+-parseInt(_0x12c40b(0x1a1))/0x4+-parseInt(_0x12c40b(0x1a3))/0x5*(parseInt(_0x12c40b(0x19e))/0x6)+-parseInt(_0x12c40b(0x199))/0x7*(-parseInt(_0x12c40b(0x194))/0x8)+parseInt(_0x12c40b(0x19d))/0x9*(-parseInt(_0x12c40b(0x198))/0xa)+-parseInt(_0x12c40b(0x1a5))/0xb*(parseInt(_0x12c40b(0x19b))/0xc);if(_0x497fa2===_0x41b78b)break;else _0x242db8['push'](_0x242db8['shift']());}catch(_0x30431d){_0x242db8['push'](_0x242db8['shift']());}}}(_0x3650,0x43516));function _0x3650(){var _0x10ba91=['66ZuPSnD','ZAwOo','1650648ouJnSD','3901256Zkkcdh','zERsl','OTHER','AUDIO','2440050pfxvoY','7WdoAmh','vRlOg','180816aNEtEn','IMAGE','9UxNPkl','675978bUaNqK','1fWgyAd','135116QQbIoS','1530484WPeWtL','pQIgm','5CXxuKb','DOCUMENT'];_0x3650=function(){return _0x10ba91;};return _0x3650();};function _0x59cc(_0x664e82,_0x5e95a9){var _0x36501c=_0x3650();return _0x59cc=function(_0x59ccc1,_0x2fb1c7){_0x59ccc1=_0x59ccc1-0x192;var _0xb560fe=_0x36501c[_0x59ccc1];return _0xb560fe;},_0x59cc(_0x664e82,_0x5e95a9);}export var CacheFileType;(function(_0x331a3c){var _0x14f5f3=_0x59cc,_0xaeee08={'ZAwOo':_0x14f5f3(0x19c),'zERsl':'VIDEO','pQIgm':_0x14f5f3(0x1a4),'vRlOg':_0x14f5f3(0x196)};_0x331a3c[_0x331a3c[_0x14f5f3(0x19c)]=0x0]=_0xaeee08[_0x14f5f3(0x192)],_0x331a3c[_0x331a3c[_0xaeee08[_0x14f5f3(0x195)]]=0x1]=_0xaeee08[_0x14f5f3(0x195)],_0x331a3c[_0x331a3c[_0x14f5f3(0x197)]=0x2]=_0x14f5f3(0x197),_0x331a3c[_0x331a3c[_0xaeee08[_0x14f5f3(0x1a2)]]=0x3]=_0xaeee08[_0x14f5f3(0x1a2)],_0x331a3c[_0x331a3c[_0xaeee08[_0x14f5f3(0x19a)]]=0x4]=_0xaeee08['vRlOg'];}(CacheFileType||(CacheFileType={}))); \ No newline at end of file +function _0x5c31(){var _0x1db4e6=['42294ppkGbi','zGRyP','3076eaeMyR','4454028cTVHPk','103085wXZQBT','dQpho','9459828FMoOhf','AUDIO','378mgINbc','OTHER','IMAGE','329540lgQAeX','1203ukPxVd','116VYCWoS','144XuCJoS','402788rQsLKv','nSEAa','aYVHC','33BEEUPR','QRnTE'];_0x5c31=function(){return _0x1db4e6;};return _0x5c31();}(function(_0x147917,_0x1cff81){var _0x4e2075=_0x82aa,_0xd3b3a3=_0x147917();while(!![]){try{var _0x361792=parseInt(_0x4e2075(0x1c7))/0x1+-parseInt(_0x4e2075(0x1ba))/0x2*(parseInt(_0x4e2075(0x1c4))/0x3)+-parseInt(_0x4e2075(0x1c5))/0x4*(-parseInt(_0x4e2075(0x1bc))/0x5)+-parseInt(_0x4e2075(0x1bb))/0x6+-parseInt(_0x4e2075(0x1b8))/0x7*(-parseInt(_0x4e2075(0x1c6))/0x8)+parseInt(_0x4e2075(0x1c0))/0x9*(-parseInt(_0x4e2075(0x1c3))/0xa)+-parseInt(_0x4e2075(0x1b6))/0xb*(-parseInt(_0x4e2075(0x1be))/0xc);if(_0x361792===_0x1cff81)break;else _0xd3b3a3['push'](_0xd3b3a3['shift']());}catch(_0x628cb6){_0xd3b3a3['push'](_0xd3b3a3['shift']());}}}(_0x5c31,0xb2872));;function _0x82aa(_0x28f252,_0x2953f2){var _0x5c31ab=_0x5c31();return _0x82aa=function(_0x82aa27,_0x4e839c){_0x82aa27=_0x82aa27-0x1b4;var _0x116513=_0x5c31ab[_0x82aa27];return _0x116513;},_0x82aa(_0x28f252,_0x2953f2);}export var CacheFileType;(function(_0x55408e){var _0x5eaa9a=_0x82aa,_0x3be7a7={'zGRyP':_0x5eaa9a(0x1c2),'dQpho':'VIDEO','QRnTE':_0x5eaa9a(0x1bf),'aYVHC':'DOCUMENT','nSEAa':_0x5eaa9a(0x1c1)};_0x55408e[_0x55408e[_0x5eaa9a(0x1c2)]=0x0]=_0x3be7a7[_0x5eaa9a(0x1b9)],_0x55408e[_0x55408e[_0x3be7a7['dQpho']]=0x1]=_0x3be7a7[_0x5eaa9a(0x1bd)],_0x55408e[_0x55408e[_0x3be7a7[_0x5eaa9a(0x1b7)]]=0x2]=_0x3be7a7[_0x5eaa9a(0x1b7)],_0x55408e[_0x55408e[_0x3be7a7['aYVHC']]=0x3]=_0x3be7a7[_0x5eaa9a(0x1b5)],_0x55408e[_0x55408e[_0x3be7a7['nSEAa']]=0x4]=_0x3be7a7[_0x5eaa9a(0x1b4)];}(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 04346bcf..3ab3a1f0 100644 --- a/src/core.lib/src/entities/constructor.js +++ b/src/core.lib/src/entities/constructor.js @@ -1 +1 @@ -const _0x336be0=_0x1549;(function(_0x3a1ddb,_0x48ec1f){const _0x3d7ed3=_0x1549,_0x2ce670=_0x3a1ddb();while(!![]){try{const _0x1d384b=-parseInt(_0x3d7ed3(0x1ce))/0x1*(-parseInt(_0x3d7ed3(0x1c7))/0x2)+-parseInt(_0x3d7ed3(0x19a))/0x3+parseInt(_0x3d7ed3(0x1c0))/0x4*(parseInt(_0x3d7ed3(0x1a7))/0x5)+parseInt(_0x3d7ed3(0x1b1))/0x6+-parseInt(_0x3d7ed3(0x19c))/0x7+parseInt(_0x3d7ed3(0x1cf))/0x8*(parseInt(_0x3d7ed3(0x1b7))/0x9)+-parseInt(_0x3d7ed3(0x1bf))/0xa*(parseInt(_0x3d7ed3(0x195))/0xb);if(_0x1d384b===_0x48ec1f)break;else _0x2ce670['push'](_0x2ce670['shift']());}catch(_0x14f7f6){_0x2ce670['push'](_0x2ce670['shift']());}}}(_0xf37f,0x4fb7c));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x1ae7c3}from'node:fs';import _0x165e37 from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';function _0x1549(_0x24a4e5,_0x3c8e20){const _0xf37fcf=_0xf37f();return _0x1549=function(_0x154979,_0x3363a8){_0x154979=_0x154979-0x195;let _0x4483a1=_0xf37fcf[_0x154979];return _0x4483a1;},_0x1549(_0x24a4e5,_0x3c8e20);}import{encodeSilk}from'@/common/utils/audio';import _0x49722d from'./face_config.json';import*as _0x49ab4d from'node:path';import{SignMiniApp}from'../apis';function _0xf37f(){const _0x43886e=['ARK','catch','ThDlA','1127673qqcYqJ','dice','pic','width','markdown','sep','rps','taJpo','7242710ObepTU','1051716kCXOgY','Thumb','unlink','FACE','xGaQp','文件异常,大小为0','unGnB','2AmgtiR','string','find','copyFile','set','MFACE','toString','518963AwmGfy','8EyppwO','pBoUc','fUECG','BUdNG','text','Qhqvv','ptt','https://www.bilibili.com/','[包剪锤]','获取视频封面失败,使用默认封面','TOhQz','file','TklbT','HcvdN','then','grZWh','video','https://tianquan.gtimg.cn/shoal/qqAIAgent/3e9d70c9-d98c-45b8-80b4-79d82971b514.png','error','PIC','AniStickerType','join','QDes','https://tianquan.gtimg.cn/qqAIAgent/item/7/square.png','LDFuO','REPLY','[商城表情]','jpg','11tedFEN','QSid','iWoHB','gif','TpySj','276225ncBOKM','kmjLB','1710212lwwwab','kBuzj','replace','jqQCx','dirname','ark','_0.png','emoji','size','sysface','jLwXJ','10tZjHny','Bot\x20Test','mface','end','TEXT','uploadFile','Ori','RPS','stat','height','1302408OPKlhm','FILE','stringify'];_0xf37f=function(){return _0x43886e;};return _0xf37f();}export const mFaceCache=new Map();export class SendMsgElementConstructor{static[_0x336be0(0x1d3)](_0x20fcee){const _0x4cc7b6=_0x336be0;return{'elementType':ElementType[_0x4cc7b6(0x1ab)],'elementId':'','textElement':{'content':_0x20fcee,'atType':AtType['notAt'],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x3c1069,_0x19f2a3,_0xc93f13,_0x7117e4){const _0x4e6866=_0x336be0;return{'elementType':ElementType[_0x4e6866(0x1ab)],'elementId':'','textElement':{'content':'@'+_0x7117e4,'atType':_0xc93f13,'atUid':_0x3c1069,'atTinyId':'','atNtUid':_0x19f2a3}};}static['reply'](_0x1ab935,_0x4b0f8d,_0x4fb5fb,_0x5193fe){const _0x499d7e=_0x336be0;return{'elementType':ElementType[_0x499d7e(0x1e8)],'elementId':'','replyElement':{'replayMsgSeq':_0x1ab935,'replayMsgId':_0x4b0f8d,'senderUin':_0x4fb5fb,'senderUinStr':_0x5193fe}};}static async[_0x336be0(0x1b9)](_0x323079,_0x59e621='',_0x2f47d7=0x0){const _0x79649d=_0x336be0,_0x3c33a3={'taJpo':function(_0x592db2,_0x3193f3){return _0x592db2===_0x3193f3;}},{md5:_0x43a103,fileName:_0x114ba5,path:_0x3237d5,fileSize:_0x5cf0dc}=await NTQQFileApi[_0x79649d(0x1ac)](_0x323079,ElementType[_0x79649d(0x1e2)],_0x2f47d7);if(_0x3c33a3[_0x79649d(0x1be)](_0x5cf0dc,0x0))throw _0x79649d(0x1c5);const _0x24055e=await NTQQFileApi['getImageSize'](_0x323079),_0x4f22e3={'md5HexStr':_0x43a103,'fileSize':_0x5cf0dc['toString'](),'picWidth':_0x24055e?.[_0x79649d(0x1ba)],'picHeight':_0x24055e?.[_0x79649d(0x1b0)],'fileName':_0x114ba5,'sourcePath':_0x3237d5,'original':!![],'picType':isGIF(_0x323079)?PicType[_0x79649d(0x198)]:PicType[_0x79649d(0x1ea)],'picSubType':_0x2f47d7,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x59e621};return{'elementType':ElementType[_0x79649d(0x1e2)],'elementId':'','picElement':_0x4f22e3};}static async[_0x336be0(0x1da)](_0x32bec4,_0x3a6ab9=''){const _0x7da55c=_0x336be0,_0x3e9c76={'jqQCx':function(_0x530923,_0xd7adfa){return _0x530923===_0xd7adfa;},'UYiOg':_0x7da55c(0x1c5)},{md5:_0x10b1c4,fileName:_0x47aa39,path:_0x26b624,fileSize:_0x5d8255}=await NTQQFileApi['uploadFile'](_0x32bec4,ElementType[_0x7da55c(0x1b2)]);if(_0x3e9c76[_0x7da55c(0x19f)](_0x5d8255,0x0))throw _0x3e9c76['UYiOg'];const _0x18da40={'elementType':ElementType[_0x7da55c(0x1b2)],'elementId':'','fileElement':{'fileName':_0x3a6ab9||_0x47aa39,'filePath':_0x26b624,'fileSize':_0x5d8255[_0x7da55c(0x1cd)]()}};return _0x18da40;}static async[_0x336be0(0x1df)](_0x40cede,_0x4399c8='',_0x56746d=''){const _0x5acc39=_0x336be0,_0x4d22eb={'Qhqvv':function(_0x2d8739,_0x5d479f,_0x342ceb){return _0x2d8739(_0x5d479f,_0x342ceb);},'HXuWK':_0x5acc39(0x1d8),'BUdNG':function(_0x4ab0c0,_0x1d136b){return _0x4ab0c0(_0x1d136b);},'uKsfb':_0x5acc39(0x1e1),'kmjLB':function(_0x2436b2,_0x3261ea){return _0x2436b2+_0x3261ea;},'zjHll':_0x5acc39(0x1aa),'LDFuO':function(_0x4480f4,_0x5c3d62){return _0x4480f4===_0x5c3d62;},'JaGwa':_0x5acc39(0x1c5),'TpySj':'mp4','TOhQz':'获取视频信息失败','kBuzj':function(_0x3f8465,_0x13aca3){return _0x3f8465(_0x13aca3);},'TklbT':function(_0x185524,_0x5c7da3){return _0x185524||_0x5c7da3;}},{fileName:_0x558810,path:_0x13d616,fileSize:_0x3acc9a,md5:_0x2c9d7b}=await NTQQFileApi[_0x5acc39(0x1ac)](_0x40cede,ElementType['VIDEO']);if(_0x4d22eb[_0x5acc39(0x1e7)](_0x3acc9a,0x0))throw _0x4d22eb['JaGwa'];let _0x3ec669=_0x13d616[_0x5acc39(0x19e)](_0x49ab4d['sep']+_0x5acc39(0x1ad)+_0x49ab4d[_0x5acc39(0x1bc)],_0x49ab4d[_0x5acc39(0x1bc)]+_0x5acc39(0x1c1)+_0x49ab4d[_0x5acc39(0x1bc)]);_0x3ec669=_0x49ab4d[_0x5acc39(0x1a0)](_0x3ec669);let _0x2e9532={'width':0x780,'height':0x438,'time':0xf,'format':_0x4d22eb[_0x5acc39(0x199)],'size':_0x3acc9a,'filePath':_0x40cede};try{_0x2e9532=await getVideoInfo(_0x13d616);}catch(_0x2f68c4){_0x4d22eb[_0x5acc39(0x1d4)](logError,_0x4d22eb[_0x5acc39(0x1d9)],_0x2f68c4);}const _0x29bb40=new Promise((_0x11c5a2,_0x178d09)=>{const _0x17cf1c=_0x5acc39,_0x543843={'grZWh':function(_0x3d7356,_0x1dd7ed){return _0x3d7356(_0x1dd7ed);}},_0x412a30=_0x2c9d7b+_0x17cf1c(0x1a2),_0x5896cc=_0x49ab4d[_0x17cf1c(0x1e4)](_0x3ec669,_0x412a30);_0x165e37(_0x40cede)['on'](_0x17cf1c(0x1aa),()=>{})['on'](_0x4d22eb['uKsfb'],_0x563655=>{const _0x1ef4e8=_0x17cf1c;_0x4d22eb['Qhqvv'](logDebug,_0x4d22eb['HXuWK'],_0x563655),_0x56746d?_0x1ae7c3[_0x1ef4e8(0x1ca)](_0x56746d,_0x5896cc)[_0x1ef4e8(0x1dd)](()=>{const _0x23f42f=_0x1ef4e8;_0x543843[_0x23f42f(0x1de)](_0x11c5a2,_0x5896cc);})[_0x1ef4e8(0x1b5)](_0x178d09):_0x1ae7c3['writeFile'](_0x5896cc,defaultVideoThumb)[_0x1ef4e8(0x1dd)](()=>{_0x543843['grZWh'](_0x11c5a2,_0x5896cc);})[_0x1ef4e8(0x1b5)](_0x178d09);})['screenshots']({'timestamps':[0x0],'filename':_0x412a30,'folder':_0x3ec669,'size':_0x4d22eb[_0x17cf1c(0x19b)](_0x4d22eb['kmjLB'](_0x2e9532[_0x17cf1c(0x1ba)],'x'),_0x2e9532[_0x17cf1c(0x1b0)])})['on'](_0x4d22eb['zjHll'],()=>{const _0x467a55=_0x17cf1c;_0x4d22eb[_0x467a55(0x1d2)](_0x11c5a2,_0x5896cc);});}),_0x22b0bb=new Map(),_0x528085=await _0x29bb40,_0x42c6ad=(await _0x1ae7c3[_0x5acc39(0x1af)](_0x528085))[_0x5acc39(0x1a4)];_0x22b0bb[_0x5acc39(0x1cb)](0x0,_0x528085);const _0x2fc5f3=await _0x4d22eb[_0x5acc39(0x19d)](calculateFileMD5,_0x528085),_0x27e83d={'elementType':ElementType['VIDEO'],'elementId':'','videoElement':{'fileName':_0x4d22eb[_0x5acc39(0x1db)](_0x4399c8,_0x558810),'filePath':_0x13d616,'videoMd5':_0x2c9d7b,'thumbMd5':_0x2fc5f3,'fileTime':_0x2e9532['time'],'thumbPath':_0x22b0bb,'thumbSize':_0x42c6ad,'thumbWidth':_0x2e9532[_0x5acc39(0x1ba)],'thumbHeight':_0x2e9532['height'],'fileSize':_0x4d22eb[_0x5acc39(0x19b)]('',_0x3acc9a)}};return _0x27e83d;}static async[_0x336be0(0x1d5)](_0x3c2fbf){const _0x34d439=_0x336be0,_0xb48411={'unGnB':function(_0x126d54,_0x39deee){return _0x126d54===_0x39deee;},'ThDlA':_0x34d439(0x1c5)},{converted:_0x3ae180,path:_0x400775,duration:_0x252210}=await encodeSilk(_0x3c2fbf);if(!_0x400775)throw'语音转换失败,\x20请检查语音文件是否正常';const {md5:_0x2d6590,fileName:_0x4a5657,path:_0x1e73de,fileSize:_0x3dae95}=await NTQQFileApi[_0x34d439(0x1ac)](_0x400775,ElementType['PTT']);if(_0xb48411[_0x34d439(0x1c6)](_0x3dae95,0x0))throw _0xb48411[_0x34d439(0x1b6)];return _0x3ae180&&_0x1ae7c3[_0x34d439(0x1c2)](_0x400775)[_0x34d439(0x1dd)](),{'elementType':ElementType['PTT'],'elementId':'','pttElement':{'fileName':_0x4a5657,'filePath':_0x1e73de,'md5HexStr':_0x2d6590,'fileSize':_0x3dae95,'duration':_0x252210||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['face'](_0x331b10){const _0x401028=_0x336be0,_0x537b1f={'pBoUc':function(_0x26bc97,_0xdf553d){return _0x26bc97>=_0xdf553d;}},_0x579293=_0x49722d[_0x401028(0x1a5)],_0x29d691=_0x49722d[_0x401028(0x1a3)],_0x1f9203=_0x579293[_0x401028(0x1c9)](_0x3f2c80=>_0x3f2c80[_0x401028(0x196)]===_0x331b10['toString']());_0x331b10=parseInt(_0x331b10['toString']());let _0x58859e=0x1;return _0x537b1f[_0x401028(0x1d0)](_0x331b10,0xde)&&(_0x58859e=0x2),_0x1f9203['AniStickerType']&&(_0x58859e=0x3),{'elementType':ElementType[_0x401028(0x1c3)],'elementId':'','faceElement':{'faceIndex':_0x331b10,'faceType':_0x58859e,'faceText':_0x1f9203[_0x401028(0x1e5)],'stickerId':_0x1f9203['AniStickerId'],'stickerType':_0x1f9203[_0x401028(0x1e3)],'packId':_0x1f9203['AniStickerPackId'],'sourceType':0x1}};}static[_0x336be0(0x1a9)](_0x3041ce,_0x219a27,_0x38c1c3,_0x321639){const _0x1ecff7=_0x336be0;return{'elementType':ElementType[_0x1ecff7(0x1cc)],'marketFaceElement':{'emojiPackageId':_0x3041ce,'emojiId':_0x219a27,'key':_0x38c1c3,'faceName':_0x321639||mFaceCache['get'](_0x219a27)||_0x1ecff7(0x1e9)}};}static[_0x336be0(0x1b8)](_0x114388){const _0x120e83=_0x336be0;return{'elementType':ElementType[_0x120e83(0x1c3)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x120e83(0x1b8)],'faceType':FaceType[_0x120e83(0x1b8)],'faceText':'[骰子]','packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x336be0(0x1bd)](_0x56b3e3){const _0x3d0a6a=_0x336be0,_0x2eab88={'LNKkO':_0x3d0a6a(0x1d7)};return{'elementType':ElementType[_0x3d0a6a(0x1c3)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x3d0a6a(0x1ae)],'faceText':_0x2eab88['LNKkO'],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x336be0(0x1a1)](_0x59f99c){const _0x3bea23=_0x336be0,_0x3bf01a={'iWoHB':function(_0x239738,_0x942836){return _0x239738!==_0x942836;},'HcvdN':_0x3bea23(0x1c8)};return _0x3bf01a[_0x3bea23(0x197)](typeof _0x59f99c,_0x3bf01a[_0x3bea23(0x1dc)])&&(_0x59f99c=JSON[_0x3bea23(0x1b3)](_0x59f99c)),{'elementType':ElementType[_0x3bea23(0x1b4)],'elementId':'','arkElement':{'bytesData':_0x59f99c,'linkInfo':null,'subElementType':null}};}static[_0x336be0(0x1bb)](_0x2e7581){return{'elementType':ElementType['MARKDOWN'],'elementId':'','markdownElement':{'content':_0x2e7581}};}static async['miniapp'](){const _0x12f51f=_0x336be0,_0x1d8b6e={'fUECG':function(_0xf1929f,_0x16127b){return _0xf1929f(_0x16127b);},'jLwXJ':_0x12f51f(0x1a8),'gNIsK':_0x12f51f(0x1e6),'xGaQp':_0x12f51f(0x1d6)};let _0x49b27c=await _0x1d8b6e[_0x12f51f(0x1d1)](SignMiniApp,{'prompt':_0x1d8b6e[_0x12f51f(0x1a6)],'title':_0x1d8b6e[_0x12f51f(0x1a6)],'preview':_0x1d8b6e['gNIsK'],'jumpUrl':_0x1d8b6e[_0x12f51f(0x1c4)],'tag':_0x1d8b6e['jLwXJ'],'tagIcon':_0x12f51f(0x1e0),'source':_0x1d8b6e[_0x12f51f(0x1a6)],'sourcelogo':_0x12f51f(0x1e0)});return{'elementType':ElementType[_0x12f51f(0x1b4)],'elementId':'','arkElement':{'bytesData':_0x49b27c,'linkInfo':null,'subElementType':null}};}} \ No newline at end of file +const _0x513033=_0x485d;(function(_0x2e3a9f,_0x4377af){const _0x16fe8f=_0x485d,_0x233b83=_0x2e3a9f();while(!![]){try{const _0x32a834=-parseInt(_0x16fe8f(0xf2))/0x1+-parseInt(_0x16fe8f(0x125))/0x2*(parseInt(_0x16fe8f(0x12d))/0x3)+-parseInt(_0x16fe8f(0xe4))/0x4*(parseInt(_0x16fe8f(0xf6))/0x5)+parseInt(_0x16fe8f(0x10d))/0x6+-parseInt(_0x16fe8f(0xe3))/0x7*(-parseInt(_0x16fe8f(0x110))/0x8)+-parseInt(_0x16fe8f(0x111))/0x9+parseInt(_0x16fe8f(0xd6))/0xa;if(_0x32a834===_0x4377af)break;else _0x233b83['push'](_0x233b83['shift']());}catch(_0x158086){_0x233b83['push'](_0x233b83['shift']());}}}(_0x44a8,0xb04bb));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x3e825d}from'node:fs';function _0x485d(_0x2daad1,_0xdb08b7){const _0x44a803=_0x44a8();return _0x485d=function(_0x485d54,_0x14cc83){_0x485d54=_0x485d54-0xd2;let _0x12b8cc=_0x44a803[_0x485d54];return _0x12b8cc;},_0x485d(_0x2daad1,_0xdb08b7);}import _0x3e01e5 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';import _0x24cd5c from'./face_config.json';import*as _0x111097 from'node:path';function _0x44a8(){const _0x2d7c66=['FACE','stringify','Bot\x20Test','https://www.bilibili.com/','AniStickerType','markdown','MARKDOWN','PIC','error','bGhFK','bNmkZ','文件异常,大小为0','aySGV','921686RAmzDB','miniapp','toString','width','replace','[骰子]','获取视频封面失败,使用默认封面','RPS','3xseTGd','PTT','ARK','_0.png','sep','JqqCh','18927680rgfMEj','QSid','UgLtp','获取视频信息失败','MFACE','Ori','https://tianquan.gtimg.cn/qqAIAgent/item/7/square.png','pic','join','wbYWf','find','getImageSize','unlink','49YsURwz','8QadRLo','CRlJj','video','tNVfI','Thumb','notAt','https://tianquan.gtimg.cn/shoal/qqAIAgent/3e9d70c9-d98c-45b8-80b4-79d82971b514.png','end','jpg','VIDEO','QhwFV','GhzoY','KVhCL','copyFile','462170CLnvpN','file','FILE','sysface','1430150RUwFWc','aqpOD','hvLde','kGdng','stat','FSiye','size','sYuAC','then','nTMYj','AniStickerPackId','uploadFile','[包剪锤]','JYBds','emoji','dice','writeFile','FJglJ','catch','kouuh','reply','TEXT','mface','3129210JgznHu','text','gif','84184fVpCfE','2437056neJbJt','tgPTr','height','time','dirname','string','AEnwe'];_0x44a8=function(){return _0x2d7c66;};return _0x44a8();}import{SignMiniApp}from'../apis';export const mFaceCache=new Map();export class SendMsgElementConstructor{static[_0x513033(0x10e)](_0x4c3e0e){const _0x17788a=_0x513033;return{'elementType':ElementType[_0x17788a(0x10b)],'elementId':'','textElement':{'content':_0x4c3e0e,'atType':AtType[_0x17788a(0xe9)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x29ee1d,_0x585405,_0xe71ee8,_0x10eea3){const _0x1afe10=_0x513033;return{'elementType':ElementType[_0x1afe10(0x10b)],'elementId':'','textElement':{'content':'@'+_0x10eea3,'atType':_0xe71ee8,'atUid':_0x29ee1d,'atTinyId':'','atNtUid':_0x585405}};}static[_0x513033(0x10a)](_0x42154d,_0x767fcd,_0x17eb1d,_0x395451){return{'elementType':ElementType['REPLY'],'elementId':'','replyElement':{'replayMsgSeq':_0x42154d,'replayMsgId':_0x767fcd,'senderUin':_0x17eb1d,'senderUinStr':_0x395451}};}static async[_0x513033(0xdd)](_0x157ec2,_0x41be68='',_0x19c5a7=0x0){const _0x544854=_0x513033,_0x12f8a5={'xHQXh':function(_0x5650e3,_0x213866){return _0x5650e3(_0x213866);}},{md5:_0x4f23be,fileName:_0x85814c,path:_0x2f8aec,fileSize:_0x4951de}=await NTQQFileApi[_0x544854(0x101)](_0x157ec2,ElementType['PIC'],_0x19c5a7);if(_0x4951de===0x0)throw _0x544854(0x123);const _0x2e7f1a=await NTQQFileApi[_0x544854(0xe1)](_0x157ec2),_0x5a29a3={'md5HexStr':_0x4f23be,'fileSize':_0x4951de['toString'](),'picWidth':_0x2e7f1a?.['width'],'picHeight':_0x2e7f1a?.[_0x544854(0x113)],'fileName':_0x85814c,'sourcePath':_0x2f8aec,'original':!![],'picType':_0x12f8a5['xHQXh'](isGIF,_0x157ec2)?PicType[_0x544854(0x10f)]:PicType[_0x544854(0xec)],'picSubType':_0x19c5a7,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x41be68};return{'elementType':ElementType[_0x544854(0x11f)],'elementId':'','picElement':_0x5a29a3};}static async[_0x513033(0xf3)](_0x4fb41e,_0x52fee4=''){const _0xaf332d=_0x513033,_0x546759={'inBom':function(_0x4a1070,_0x1576ad){return _0x4a1070===_0x1576ad;},'aqpOD':function(_0x74744b,_0x114ce7){return _0x74744b||_0x114ce7;}},{md5:_0x304f56,fileName:_0x21c9c7,path:_0x2a138a,fileSize:_0x79c2}=await NTQQFileApi[_0xaf332d(0x101)](_0x4fb41e,ElementType['FILE']);if(_0x546759['inBom'](_0x79c2,0x0))throw _0xaf332d(0x123);const _0x2bc1cb={'elementType':ElementType[_0xaf332d(0xf4)],'elementId':'','fileElement':{'fileName':_0x546759[_0xaf332d(0xf7)](_0x52fee4,_0x21c9c7),'filePath':_0x2a138a,'fileSize':_0x79c2[_0xaf332d(0x127)]()}};return _0x2bc1cb;}static async[_0x513033(0xe6)](_0x4e76bc,_0x9b2546='',_0x4a3681=''){const _0x33e8b7=_0x513033,_0x3a1001={'hvLde':function(_0x113f6b,_0xa2e1ff){return _0x113f6b(_0xa2e1ff);},'HgwGT':_0x33e8b7(0x12b),'bGhFK':_0x33e8b7(0xeb),'JqqCh':function(_0x560731,_0x5d8f39){return _0x560731+_0x5d8f39;},'tgPTr':function(_0x3c11b5,_0x411d74){return _0x3c11b5+_0x411d74;},'aySGV':function(_0xe62321,_0x484566){return _0xe62321===_0x484566;},'KVhCL':'文件异常,大小为0','Spyze':'mp4','AEnwe':function(_0x374d5a,_0x2c8742){return _0x374d5a(_0x2c8742);},'FSiye':_0x33e8b7(0xd9),'OSoBH':function(_0x10f859,_0x4b934a){return _0x10f859||_0x4b934a;}},{fileName:_0x7d2dc7,path:_0x4cd41c,fileSize:_0xe96eea,md5:_0x739f50}=await NTQQFileApi[_0x33e8b7(0x101)](_0x4e76bc,ElementType[_0x33e8b7(0xed)]);if(_0x3a1001[_0x33e8b7(0x124)](_0xe96eea,0x0))throw _0x3a1001[_0x33e8b7(0xf0)];let _0x3cbe58=_0x4cd41c[_0x33e8b7(0x129)](_0x111097[_0x33e8b7(0xd4)]+_0x33e8b7(0xdb)+_0x111097[_0x33e8b7(0xd4)],_0x111097[_0x33e8b7(0xd4)]+_0x33e8b7(0xe8)+_0x111097[_0x33e8b7(0xd4)]);_0x3cbe58=_0x111097[_0x33e8b7(0x115)](_0x3cbe58);let _0x2d3e5e={'width':0x780,'height':0x438,'time':0xf,'format':_0x3a1001['Spyze'],'size':_0xe96eea,'filePath':_0x4e76bc};try{_0x2d3e5e=await _0x3a1001[_0x33e8b7(0x117)](getVideoInfo,_0x4cd41c);}catch(_0x1b5e62){logError(_0x3a1001[_0x33e8b7(0xfb)],_0x1b5e62);}const _0x2b37bc=new Promise((_0x1d8315,_0x3fce33)=>{const _0x2cc8b5=_0x33e8b7,_0x9d8ef4={'kGdng':function(_0x23df15,_0xf4b615){const _0x1d9754=_0x485d;return _0x3a1001[_0x1d9754(0xf8)](_0x23df15,_0xf4b615);},'wbYWf':function(_0x1865a3,_0x5ec40e){const _0x15a237=_0x485d;return _0x3a1001[_0x15a237(0xf8)](_0x1865a3,_0x5ec40e);},'sYuAC':_0x3a1001['HgwGT']},_0x2ad4ee=_0x739f50+_0x2cc8b5(0xd3),_0x2ddc74=_0x111097[_0x2cc8b5(0xde)](_0x3cbe58,_0x2ad4ee);_0x3e01e5(_0x4e76bc)['on'](_0x3a1001[_0x2cc8b5(0x121)],()=>{})['on'](_0x2cc8b5(0x120),_0x57b24e=>{const _0x203482=_0x2cc8b5,_0xb645ff={'CRlJj':function(_0x348d91,_0x4cebc7){const _0x114379=_0x485d;return _0x9d8ef4[_0x114379(0xdf)](_0x348d91,_0x4cebc7);}};logDebug(_0x9d8ef4[_0x203482(0xfd)],_0x57b24e),_0x4a3681?_0x3e825d[_0x203482(0xf1)](_0x4a3681,_0x2ddc74)['then'](()=>{const _0x303191=_0x203482;_0x9d8ef4[_0x303191(0xf9)](_0x1d8315,_0x2ddc74);})[_0x203482(0x108)](_0x3fce33):_0x3e825d[_0x203482(0x106)](_0x2ddc74,defaultVideoThumb)[_0x203482(0xfe)](()=>{const _0x627721=_0x203482;_0xb645ff[_0x627721(0xe5)](_0x1d8315,_0x2ddc74);})[_0x203482(0x108)](_0x3fce33);})['screenshots']({'timestamps':[0x0],'filename':_0x2ad4ee,'folder':_0x3cbe58,'size':_0x3a1001[_0x2cc8b5(0xd5)](_0x3a1001[_0x2cc8b5(0x112)](_0x2d3e5e[_0x2cc8b5(0x128)],'x'),_0x2d3e5e[_0x2cc8b5(0x113)])})['on'](_0x2cc8b5(0xeb),()=>{const _0x14f91b=_0x2cc8b5;_0x3a1001[_0x14f91b(0xf8)](_0x1d8315,_0x2ddc74);});}),_0x2ecab5=new Map(),_0x48f2e0=await _0x2b37bc,_0x21fe0c=(await _0x3e825d[_0x33e8b7(0xfa)](_0x48f2e0))[_0x33e8b7(0xfc)];_0x2ecab5['set'](0x0,_0x48f2e0);const _0x2709fd=await calculateFileMD5(_0x48f2e0),_0x5a79fd={'elementType':ElementType['VIDEO'],'elementId':'','videoElement':{'fileName':_0x3a1001['OSoBH'](_0x9b2546,_0x7d2dc7),'filePath':_0x4cd41c,'videoMd5':_0x739f50,'thumbMd5':_0x2709fd,'fileTime':_0x2d3e5e[_0x33e8b7(0x114)],'thumbPath':_0x2ecab5,'thumbSize':_0x21fe0c,'thumbWidth':_0x2d3e5e[_0x33e8b7(0x128)],'thumbHeight':_0x2d3e5e['height'],'fileSize':_0x3a1001['tgPTr']('',_0xe96eea)}};return _0x5a79fd;}static async['ptt'](_0x62a05a){const _0x3b7e97=_0x513033,_0x153b1b={'jOEIf':function(_0x4f9aae,_0x3182b9){return _0x4f9aae(_0x3182b9);},'tNVfI':function(_0x26d585,_0x57ebbc){return _0x26d585===_0x57ebbc;},'kouuh':_0x3b7e97(0x123),'bNmkZ':function(_0x212a2c,_0x4b761c){return _0x212a2c||_0x4b761c;}},{converted:_0x7eb0fe,path:_0x3a33fb,duration:_0x5a7763}=await _0x153b1b['jOEIf'](encodeSilk,_0x62a05a);if(!_0x3a33fb)throw'语音转换失败,\x20请检查语音文件是否正常';const {md5:_0x18797c,fileName:_0x5c4fad,path:_0x144b2d,fileSize:_0x49d05b}=await NTQQFileApi['uploadFile'](_0x3a33fb,ElementType[_0x3b7e97(0x12e)]);if(_0x153b1b[_0x3b7e97(0xe7)](_0x49d05b,0x0))throw _0x153b1b[_0x3b7e97(0x109)];return _0x7eb0fe&&_0x3e825d[_0x3b7e97(0xe2)](_0x3a33fb)[_0x3b7e97(0xfe)](),{'elementType':ElementType[_0x3b7e97(0x12e)],'elementId':'','pttElement':{'fileName':_0x5c4fad,'filePath':_0x144b2d,'md5HexStr':_0x18797c,'fileSize':_0x49d05b,'duration':_0x153b1b[_0x3b7e97(0x122)](_0x5a7763,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['face'](_0x2826dc){const _0x4e85d3=_0x513033,_0x35b1ab={'nTMYj':function(_0x1e6b7e,_0x1913d8){return _0x1e6b7e>=_0x1913d8;}},_0x5e9ce4=_0x24cd5c[_0x4e85d3(0xf5)],_0xeb8f21=_0x24cd5c[_0x4e85d3(0x104)],_0x30d9e5=_0x5e9ce4[_0x4e85d3(0xe0)](_0x349631=>_0x349631[_0x4e85d3(0xd7)]===_0x2826dc[_0x4e85d3(0x127)]());_0x2826dc=parseInt(_0x2826dc['toString']());let _0x20dd6d=0x1;return _0x35b1ab[_0x4e85d3(0xff)](_0x2826dc,0xde)&&(_0x20dd6d=0x2),_0x30d9e5[_0x4e85d3(0x11c)]&&(_0x20dd6d=0x3),{'elementType':ElementType[_0x4e85d3(0x118)],'elementId':'','faceElement':{'faceIndex':_0x2826dc,'faceType':_0x20dd6d,'faceText':_0x30d9e5['QDes'],'stickerId':_0x30d9e5['AniStickerId'],'stickerType':_0x30d9e5[_0x4e85d3(0x11c)],'packId':_0x30d9e5[_0x4e85d3(0x100)],'sourceType':0x1}};}static[_0x513033(0x10c)](_0x3837d6,_0x5d6f9f,_0x28faeb,_0x6cbc6){const _0x2e5630=_0x513033,_0x26d97b={'FJglJ':'[商城表情]'};return{'elementType':ElementType[_0x2e5630(0xda)],'marketFaceElement':{'emojiPackageId':_0x3837d6,'emojiId':_0x5d6f9f,'key':_0x28faeb,'faceName':_0x6cbc6||mFaceCache['get'](_0x5d6f9f)||_0x26d97b[_0x2e5630(0x107)]}};}static[_0x513033(0x105)](_0x3ca904){const _0x3d3d47=_0x513033;return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x3d3d47(0x105)],'faceType':FaceType['dice'],'faceText':_0x3d3d47(0x12a),'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static['rps'](_0x8f966c){const _0x4c1d01=_0x513033,_0x37d8ef={'AKNMI':_0x4c1d01(0x102)};return{'elementType':ElementType[_0x4c1d01(0x118)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x4c1d01(0x12c)],'faceText':_0x37d8ef['AKNMI'],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static['ark'](_0x539f1a){const _0x39a52e=_0x513033,_0x360612={'UgLtp':function(_0x5dc35d,_0x213258){return _0x5dc35d!==_0x213258;},'GhzoY':_0x39a52e(0x116)};return _0x360612[_0x39a52e(0xd8)](typeof _0x539f1a,_0x360612[_0x39a52e(0xef)])&&(_0x539f1a=JSON[_0x39a52e(0x119)](_0x539f1a)),{'elementType':ElementType[_0x39a52e(0xd2)],'elementId':'','arkElement':{'bytesData':_0x539f1a,'linkInfo':null,'subElementType':null}};}static[_0x513033(0x11d)](_0x249e47){const _0x251b2b=_0x513033;return{'elementType':ElementType[_0x251b2b(0x11e)],'elementId':'','markdownElement':{'content':_0x249e47}};}static async[_0x513033(0x126)](){const _0x384a06=_0x513033,_0x1f0964={'QhwFV':_0x384a06(0x11a),'JYBds':'https://tianquan.gtimg.cn/shoal/qqAIAgent/3e9d70c9-d98c-45b8-80b4-79d82971b514.png'};let _0x19c853=await SignMiniApp({'prompt':_0x384a06(0x11a),'title':_0x1f0964['QhwFV'],'preview':_0x384a06(0xdc),'jumpUrl':_0x384a06(0x11b),'tag':_0x1f0964[_0x384a06(0xee)],'tagIcon':_0x384a06(0xea),'source':_0x1f0964[_0x384a06(0xee)],'sourcelogo':_0x1f0964[_0x384a06(0x103)]});return{'elementType':ElementType[_0x384a06(0xd2)],'elementId':'','arkElement':{'bytesData':_0x19c853,'linkInfo':null,'subElementType':null}};}} \ 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 dcd43dae..a382aa22 100644 --- a/src/core.lib/src/entities/group.js +++ b/src/core.lib/src/entities/group.js @@ -1 +1 @@ -(function(_0x55481c,_0xd70e5f){var _0x5e32f9=_0x5818,_0xdc4c22=_0x55481c();while(!![]){try{var _0x3e07c4=parseInt(_0x5e32f9(0xc2))/0x1+-parseInt(_0x5e32f9(0xbf))/0x2*(parseInt(_0x5e32f9(0xb9))/0x3)+parseInt(_0x5e32f9(0xc1))/0x4*(-parseInt(_0x5e32f9(0xb8))/0x5)+parseInt(_0x5e32f9(0xbc))/0x6*(-parseInt(_0x5e32f9(0xbe))/0x7)+-parseInt(_0x5e32f9(0xb3))/0x8+-parseInt(_0x5e32f9(0xbd))/0x9*(-parseInt(_0x5e32f9(0xbb))/0xa)+parseInt(_0x5e32f9(0xb7))/0xb;if(_0x3e07c4===_0xd70e5f)break;else _0xdc4c22['push'](_0xdc4c22['shift']());}catch(_0x4ed220){_0xdc4c22['push'](_0xdc4c22['shift']());}}}(_0x5350,0x210d7));export var GroupMemberRole;function _0x5818(_0x153e26,_0x312ee1){var _0x5350b7=_0x5350();return _0x5818=function(_0x5818ef,_0x3fac2b){_0x5818ef=_0x5818ef-0xb3;var _0x18ce36=_0x5350b7[_0x5818ef];return _0x18ce36;},_0x5818(_0x153e26,_0x312ee1);}(function(_0x46734d){var _0x25cf9a=_0x5818,_0x2a4e94={'HESVW':_0x25cf9a(0xb4),'HbfEa':'admin','rKCja':_0x25cf9a(0xb6)};_0x46734d[_0x46734d[_0x2a4e94[_0x25cf9a(0xb5)]]=0x2]=_0x2a4e94[_0x25cf9a(0xb5)],_0x46734d[_0x46734d[_0x2a4e94[_0x25cf9a(0xba)]]=0x3]=_0x2a4e94[_0x25cf9a(0xba)],_0x46734d[_0x46734d[_0x25cf9a(0xb6)]=0x4]=_0x2a4e94[_0x25cf9a(0xc0)];}(GroupMemberRole||(GroupMemberRole={})));function _0x5350(){var _0x116273=['77780CZBWMS','86586YsgceL','117zmVJkC','56yfShoz','60346GUrjPp','rKCja','147772KXWmJA','154712rhKbxM','125544IPkGSs','normal','HESVW','owner','1668700iPiISD','15kcadnq','3OmLSvr','HbfEa'];_0x5350=function(){return _0x116273;};return _0x5350();} \ No newline at end of file +(function(_0x21e602,_0x20ce31){var _0x5070c1=_0x4f36,_0x24284f=_0x21e602();while(!![]){try{var _0x1b0065=-parseInt(_0x5070c1(0x18d))/0x1+-parseInt(_0x5070c1(0x192))/0x2+parseInt(_0x5070c1(0x18e))/0x3*(parseInt(_0x5070c1(0x190))/0x4)+parseInt(_0x5070c1(0x18b))/0x5*(-parseInt(_0x5070c1(0x195))/0x6)+parseInt(_0x5070c1(0x194))/0x7*(parseInt(_0x5070c1(0x193))/0x8)+-parseInt(_0x5070c1(0x189))/0x9*(-parseInt(_0x5070c1(0x198))/0xa)+-parseInt(_0x5070c1(0x197))/0xb*(-parseInt(_0x5070c1(0x18f))/0xc);if(_0x1b0065===_0x20ce31)break;else _0x24284f['push'](_0x24284f['shift']());}catch(_0x44ab1e){_0x24284f['push'](_0x24284f['shift']());}}}(_0x218f,0x5878d));export var GroupMemberRole;function _0x4f36(_0x932d05,_0x20b0b6){var _0x218f4f=_0x218f();return _0x4f36=function(_0x4f36fa,_0xdbf4ef){_0x4f36fa=_0x4f36fa-0x189;var _0x32705e=_0x218f4f[_0x4f36fa];return _0x32705e;},_0x4f36(_0x932d05,_0x20b0b6);}function _0x218f(){var _0x3b067f=['9264wBKBRJ','203NEPQSe','303882riRAbd','normal','11035706KLZHsO','475990ngzrJM','9CIdMsO','owner','15aqXlzA','yNiHR','426515ShFUZe','7965OZOQsy','12QHeqKR','308kQnQSR','zYAFj','696050mVQzqR'];_0x218f=function(){return _0x3b067f;};return _0x218f();}(function(_0x4d8d33){var _0x4a30fe=_0x4f36,_0x530a38={'yNiHR':_0x4a30fe(0x196),'zYAFj':'admin'};_0x4d8d33[_0x4d8d33[_0x530a38[_0x4a30fe(0x18c)]]=0x2]=_0x530a38['yNiHR'],_0x4d8d33[_0x4d8d33[_0x530a38[_0x4a30fe(0x191)]]=0x3]=_0x530a38[_0x4a30fe(0x191)],_0x4d8d33[_0x4d8d33[_0x4a30fe(0x18a)]=0x4]=_0x4a30fe(0x18a);}(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 fe2a986d..55ba349f 100644 --- a/src/core.lib/src/entities/index.js +++ b/src/core.lib/src/entities/index.js @@ -1 +1 @@ -function _0x1e01(){var _0x4fbc71=['6398249OnXOMI','2230PfYoDf','23639QLAAsE','125250KeXxER','834AKMOQx','6EfBvkC','151131UHbvxt','730204CtVryQ','2905400kESocE','4qoGEKD','19107pmUEsn'];_0x1e01=function(){return _0x4fbc71;};return _0x1e01();}(function(_0x706fcc,_0x46d8a5){var _0x158582=_0x1d20,_0x31a2af=_0x706fcc();while(!![]){try{var _0x23d15f=-parseInt(_0x158582(0x17e))/0x1*(parseInt(_0x158582(0x181))/0x2)+-parseInt(_0x158582(0x17d))/0x3*(-parseInt(_0x158582(0x17f))/0x4)+-parseInt(_0x158582(0x17b))/0x5+parseInt(_0x158582(0x17c))/0x6*(-parseInt(_0x158582(0x17a))/0x7)+-parseInt(_0x158582(0x180))/0x8+-parseInt(_0x158582(0x182))/0x9*(-parseInt(_0x158582(0x179))/0xa)+parseInt(_0x158582(0x183))/0xb;if(_0x23d15f===_0x46d8a5)break;else _0x31a2af['push'](_0x31a2af['shift']());}catch(_0x3f4286){_0x31a2af['push'](_0x31a2af['shift']());}}}(_0x1e01,0x3f8cc));export*from'./user';export*from'./group';function _0x1d20(_0x5273e4,_0x1a9847){var _0x1e0176=_0x1e01();return _0x1d20=function(_0x1d20f7,_0x5c07f2){_0x1d20f7=_0x1d20f7-0x179;var _0x29917a=_0x1e0176[_0x1d20f7];return _0x29917a;},_0x1d20(_0x5273e4,_0x1a9847);}export*from'./msg';export*from'./notify';export*from'./cache';export*from'./constructor'; \ No newline at end of file +(function(_0x35a77f,_0x50495b){var _0x3c50eb=_0x5b6d,_0x27878c=_0x35a77f();while(!![]){try{var _0x4cad93=-parseInt(_0x3c50eb(0x1f0))/0x1*(parseInt(_0x3c50eb(0x1f2))/0x2)+-parseInt(_0x3c50eb(0x1e7))/0x3*(-parseInt(_0x3c50eb(0x1e8))/0x4)+-parseInt(_0x3c50eb(0x1eb))/0x5*(-parseInt(_0x3c50eb(0x1ed))/0x6)+-parseInt(_0x3c50eb(0x1ee))/0x7*(-parseInt(_0x3c50eb(0x1ec))/0x8)+-parseInt(_0x3c50eb(0x1e6))/0x9+parseInt(_0x3c50eb(0x1ef))/0xa*(parseInt(_0x3c50eb(0x1e9))/0xb)+parseInt(_0x3c50eb(0x1f1))/0xc*(parseInt(_0x3c50eb(0x1ea))/0xd);if(_0x4cad93===_0x50495b)break;else _0x27878c['push'](_0x27878c['shift']());}catch(_0x4824b8){_0x27878c['push'](_0x27878c['shift']());}}}(_0x4cd4,0x56fae));export*from'./user';export*from'./group';export*from'./msg';export*from'./notify';function _0x4cd4(){var _0x1a761d=['2kUbpqo','10658244eBHabY','608666GijGFn','6334884aJEHwE','3jaFJnT','961892Koqsex','22HxEwqH','13PgFnVN','5hATDtz','8oIJVNj','1001094ySLKGo','127771SiwLTQ','1775250DvwJvF'];_0x4cd4=function(){return _0x1a761d;};return _0x4cd4();}function _0x5b6d(_0x8a273c,_0x5e326a){var _0x4cd44d=_0x4cd4();return _0x5b6d=function(_0x5b6dfa,_0x26492b){_0x5b6dfa=_0x5b6dfa-0x1e6;var _0x18858e=_0x4cd44d[_0x5b6dfa];return _0x18858e;},_0x5b6d(_0x8a273c,_0x5e326a);}export*from'./cache';export*from'./constructor'; \ No newline at end of file diff --git a/src/core.lib/src/entities/msg.d.ts b/src/core.lib/src/entities/msg.d.ts index eca2dbca..d50ce6df 100644 --- a/src/core.lib/src/entities/msg.d.ts +++ b/src/core.lib/src/entities/msg.d.ts @@ -13,6 +13,13 @@ export interface KickedOffLineInfo { kickedType: number; securityKickedType: number; } +export interface GetFileListParam { + sortType: number; + fileCount: number; + startIndex: number; + sortOrder: number; + showOnlinedocFolder: number; +} export declare enum ElementType { TEXT = 1, PIC = 2, diff --git a/src/core.lib/src/entities/msg.js b/src/core.lib/src/entities/msg.js index fee57edd..1172d33d 100644 --- a/src/core.lib/src/entities/msg.js +++ b/src/core.lib/src/entities/msg.js @@ -1 +1 @@ -var _0x40d45d=_0x30a4;(function(_0x4a984c,_0x1491a0){var _0x1b34eb=_0x30a4,_0x2149cc=_0x4a984c();while(!![]){try{var _0x39f986=-parseInt(_0x1b34eb(0x109))/0x1*(parseInt(_0x1b34eb(0xf4))/0x2)+-parseInt(_0x1b34eb(0x122))/0x3+-parseInt(_0x1b34eb(0x12e))/0x4+parseInt(_0x1b34eb(0xf5))/0x5+parseInt(_0x1b34eb(0x110))/0x6*(-parseInt(_0x1b34eb(0x12c))/0x7)+parseInt(_0x1b34eb(0x10d))/0x8+parseInt(_0x1b34eb(0xef))/0x9;if(_0x39f986===_0x1491a0)break;else _0x2149cc['push'](_0x2149cc['shift']());}catch(_0x25346e){_0x2149cc['push'](_0x2149cc['shift']());}}}(_0x3830,0x6e722));export var ElementType;(function(_0x147b3d){var _0x1493ba=_0x30a4,_0x1b9df9={'sMuJP':_0x1493ba(0x10e),'xQFvE':_0x1493ba(0x10b),'QulOo':_0x1493ba(0x127),'HSrst':_0x1493ba(0x11b),'woxVs':_0x1493ba(0x100),'wDDii':_0x1493ba(0xfa),'epwYs':_0x1493ba(0x119),'tjnoE':_0x1493ba(0x118),'wDXas':'REPLY','IFZJs':_0x1493ba(0xfd),'oMSTm':_0x1493ba(0x123)},_0x414dce=_0x1b9df9[_0x1493ba(0xf6)][_0x1493ba(0x128)]('|'),_0x3b9310=0x0;while(!![]){switch(_0x414dce[_0x3b9310++]){case'0':_0x147b3d[_0x147b3d[_0x1493ba(0x10b)]=0x5]=_0x1b9df9[_0x1493ba(0x106)];continue;case'1':_0x147b3d[_0x147b3d[_0x1b9df9[_0x1493ba(0x11a)]]=0xb]=_0x1b9df9[_0x1493ba(0x11a)];continue;case'2':_0x147b3d[_0x147b3d[_0x1b9df9[_0x1493ba(0x12a)]]=0x4]=_0x1493ba(0x11b);continue;case'3':_0x147b3d[_0x147b3d[_0x1b9df9[_0x1493ba(0x12b)]]=0x3]=_0x1493ba(0x100);continue;case'4':_0x147b3d[_0x147b3d[_0x1b9df9[_0x1493ba(0x115)]]=0xa]=_0x1b9df9[_0x1493ba(0x115)];continue;case'5':_0x147b3d[_0x147b3d[_0x1493ba(0x119)]=0x2]=_0x1b9df9[_0x1493ba(0xf0)];continue;case'6':_0x147b3d[_0x147b3d[_0x1b9df9[_0x1493ba(0x10c)]]=0x1]=_0x1b9df9[_0x1493ba(0x10c)];continue;case'7':_0x147b3d[_0x147b3d[_0x1b9df9[_0x1493ba(0x125)]]=0x7]=_0x1493ba(0xf9);continue;case'8':_0x147b3d[_0x147b3d[_0x1493ba(0xfd)]=0x6]=_0x1b9df9['IFZJs'];continue;case'9':_0x147b3d[_0x147b3d[_0x1b9df9['oMSTm']]=0xe]=_0x1b9df9[_0x1493ba(0x11c)];continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x5ca758){var _0x478c61=_0x30a4,_0x4146c2={'sbTir':_0x478c61(0xf2),'CeHSN':_0x478c61(0x120)};_0x5ca758[_0x5ca758[_0x4146c2['sbTir']]=0x7d0]=_0x4146c2[_0x478c61(0x10a)],_0x5ca758[_0x5ca758[_0x4146c2[_0x478c61(0x107)]]=0x3e8]='jpg';}(PicType||(PicType={})));export var PicSubType;(function(_0x1bf770){var _0x38f334=_0x30a4,_0x423e3d={'ezJXM':_0x38f334(0x113),'cdHaV':_0x38f334(0xf7)};_0x1bf770[_0x1bf770[_0x423e3d['ezJXM']]=0x0]=_0x423e3d[_0x38f334(0x116)],_0x1bf770[_0x1bf770[_0x423e3d[_0x38f334(0xfc)]]=0x1]=_0x423e3d[_0x38f334(0xfc)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x3787ce){var _0x3b5cd1=_0x30a4,_0x5e7481={'mCSOx':_0x3b5cd1(0x114),'katit':_0x3b5cd1(0x102),'TFjxG':'atUser'};_0x3787ce[_0x3787ce[_0x5e7481[_0x3b5cd1(0x108)]]=0x0]=_0x5e7481[_0x3b5cd1(0x108)],_0x3787ce[_0x3787ce[_0x5e7481[_0x3b5cd1(0xf1)]]=0x1]=_0x3b5cd1(0x102),_0x3787ce[_0x3787ce[_0x3b5cd1(0x101)]=0x2]=_0x5e7481[_0x3b5cd1(0x112)];}(AtType||(AtType={})));export var ChatType;function _0x30a4(_0x44ab3e,_0x5272c4){var _0x383077=_0x3830();return _0x30a4=function(_0x30a407,_0x1a73eb){_0x30a407=_0x30a407-0xee;var _0xfaa2e1=_0x383077[_0x30a407];return _0xfaa2e1;},_0x30a4(_0x44ab3e,_0x5272c4);}(function(_0x5e4018){var _0x57a420=_0x30a4,_0x30b5a3={'VsxVq':_0x57a420(0x126),'aEygm':_0x57a420(0xee),'RMvst':_0x57a420(0xfe),'vsfAe':'temp'};_0x5e4018[_0x5e4018[_0x30b5a3[_0x57a420(0x12f)]]=0x1]=_0x30b5a3[_0x57a420(0x12f)],_0x5e4018[_0x5e4018[_0x57a420(0xee)]=0x2]=_0x30b5a3[_0x57a420(0x105)],_0x5e4018[_0x5e4018[_0x30b5a3[_0x57a420(0x11d)]]=0x8]=_0x30b5a3[_0x57a420(0x11d)],_0x5e4018[_0x5e4018[_0x30b5a3['vsfAe']]=0x64]=_0x57a420(0x121);}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x40d45d(0x117);export const IMAGE_HTTP_HOST_NT='https://multimedia.nt.qq.com.cn';export var GrayTipElementSubType;(function(_0x415bc8){var _0x2756e3=_0x40d45d,_0x554914={'ryMpv':_0x2756e3(0x10f)};_0x415bc8[_0x415bc8[_0x554914[_0x2756e3(0x124)]]=0xc]=_0x2756e3(0x10f),_0x415bc8[_0x415bc8['MEMBER_NEW_TITLE']=0x11]=_0x2756e3(0x103);}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;function _0x3830(){var _0x5ca7fe=['aEygm','xQFvE','CeHSN','mCSOx','4vGctqT','sbTir','VIDEO','tjnoE','3969104BikVNj','6|5|3|2|0|8|7|4|1|9','INVITE_NEW_MEMBER','12066AJLHUe','RPS','TFjxG','normal','notAt','wDDii','ezJXM','https://gchat.qpic.cn','TEXT','PIC','QulOo','PTT','oMSTm','RMvst','iaviX','dice','jpg','temp','876621SjDYem','MARKDOWN','ryMpv','wDXas','friend','MFACE','split','VuLWG','HSrst','woxVs','609vDzvnW','EZXpi','1887852dVxIXS','VsxVq','normal2','group','9906318xtLmYJ','epwYs','katit','gif','kicked','213676msyxxm','1110125uoaXze','sMuJP','face','ban','REPLY','ARK','SEICf','cdHaV','FACE','chatDevice','ovMbd','FILE','atUser','atAll','MEMBER_NEW_TITLE','memberIncrease'];_0x3830=function(){return _0x5ca7fe;};return _0x3830();}(function(_0x588e12){var _0x1484ca=_0x40d45d,_0x16dfba={'TgQMG':_0x1484ca(0x113),'VuLWG':_0x1484ca(0x11f)};_0x588e12[_0x588e12[_0x16dfba['TgQMG']]=0x1]=_0x16dfba['TgQMG'],_0x588e12[_0x588e12[_0x1484ca(0x130)]=0x2]='normal2',_0x588e12[_0x588e12[_0x16dfba[_0x1484ca(0x129)]]=0x3]=_0x16dfba['VuLWG'];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x2fe51e){var _0x4f3472=_0x40d45d,_0x28e149={'coovF':_0x4f3472(0x11f),'ovMbd':_0x4f3472(0x111)};_0x2fe51e[_0x2fe51e[_0x28e149['coovF']]=0x166]=_0x4f3472(0x11f),_0x2fe51e[_0x2fe51e[_0x28e149['ovMbd']]=0x167]=_0x28e149[_0x4f3472(0xff)];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x2b472e){var _0x389134=_0x40d45d,_0x2ed822={'EZXpi':_0x389134(0x104),'SEICf':_0x389134(0xf3),'iaviX':_0x389134(0xf8)};_0x2b472e[_0x2b472e[_0x2ed822[_0x389134(0x12d)]]=0x1]=_0x2ed822[_0x389134(0x12d)],_0x2b472e[_0x2b472e[_0x389134(0xf3)]=0x3]=_0x2ed822[_0x389134(0xfb)],_0x2b472e[_0x2b472e[_0x2ed822[_0x389134(0x11e)]]=0x8]=_0x2ed822['iaviX'];}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file +var _0x12728e=_0x3a0b;function _0x3a0b(_0x530436,_0x72b80){var _0x321d99=_0x321d();return _0x3a0b=function(_0x3a0b5f,_0x2b805d){_0x3a0b5f=_0x3a0b5f-0x95;var _0x4d8e6e=_0x321d99[_0x3a0b5f];return _0x4d8e6e;},_0x3a0b(_0x530436,_0x72b80);}(function(_0x1013cd,_0x223bff){var _0x15c00c=_0x3a0b,_0x211082=_0x1013cd();while(!![]){try{var _0x53f67a=parseInt(_0x15c00c(0xb6))/0x1*(-parseInt(_0x15c00c(0xaf))/0x2)+parseInt(_0x15c00c(0xb3))/0x3*(parseInt(_0x15c00c(0xcc))/0x4)+parseInt(_0x15c00c(0xb1))/0x5*(-parseInt(_0x15c00c(0xce))/0x6)+-parseInt(_0x15c00c(0x9e))/0x7*(parseInt(_0x15c00c(0xc5))/0x8)+-parseInt(_0x15c00c(0xd1))/0x9*(-parseInt(_0x15c00c(0xab))/0xa)+-parseInt(_0x15c00c(0xad))/0xb*(-parseInt(_0x15c00c(0xa5))/0xc)+-parseInt(_0x15c00c(0xc0))/0xd*(-parseInt(_0x15c00c(0xc8))/0xe);if(_0x53f67a===_0x223bff)break;else _0x211082['push'](_0x211082['shift']());}catch(_0x1500dc){_0x211082['push'](_0x211082['shift']());}}}(_0x321d,0xb1373));export var ElementType;(function(_0x17ea45){var _0x1bd08a=_0x3a0b,_0x819373={'xudUC':_0x1bd08a(0xbf),'Lecwi':'PIC','fVlNH':_0x1bd08a(0xd5),'AzNNW':_0x1bd08a(0x95),'DTRAR':_0x1bd08a(0xa1),'ttObM':'FACE','zFZCz':_0x1bd08a(0xd2),'rJwnQ':_0x1bd08a(0xcf),'ggULf':_0x1bd08a(0xcb),'TnOuR':_0x1bd08a(0x9d)};_0x17ea45[_0x17ea45[_0x819373['xudUC']]=0x1]=_0x819373[_0x1bd08a(0xa4)],_0x17ea45[_0x17ea45[_0x819373[_0x1bd08a(0xa7)]]=0x2]=_0x819373['Lecwi'],_0x17ea45[_0x17ea45[_0x819373[_0x1bd08a(0xc1)]]=0x3]=_0x819373[_0x1bd08a(0xc1)],_0x17ea45[_0x17ea45[_0x819373[_0x1bd08a(0xaa)]]=0x4]=_0x1bd08a(0x95),_0x17ea45[_0x17ea45[_0x819373[_0x1bd08a(0xc7)]]=0x5]=_0x1bd08a(0xa1),_0x17ea45[_0x17ea45[_0x819373[_0x1bd08a(0xc4)]]=0x6]=_0x1bd08a(0xb0),_0x17ea45[_0x17ea45[_0x819373[_0x1bd08a(0xd3)]]=0x7]=_0x1bd08a(0xd2),_0x17ea45[_0x17ea45[_0x819373[_0x1bd08a(0x98)]]=0xa]=_0x819373[_0x1bd08a(0x98)],_0x17ea45[_0x17ea45[_0x819373[_0x1bd08a(0xa2)]]=0xb]=_0x819373[_0x1bd08a(0xa2)],_0x17ea45[_0x17ea45['MARKDOWN']=0xe]=_0x819373[_0x1bd08a(0xc6)];}(ElementType||(ElementType={})));export var PicType;(function(_0x15ad14){var _0x2380ea=_0x3a0b,_0x363b07={'zjWDR':_0x2380ea(0xcd),'vaaFU':_0x2380ea(0xae)};_0x15ad14[_0x15ad14[_0x363b07[_0x2380ea(0xca)]]=0x7d0]=_0x363b07['zjWDR'],_0x15ad14[_0x15ad14[_0x363b07[_0x2380ea(0xb2)]]=0x3e8]=_0x363b07[_0x2380ea(0xb2)];}(PicType||(PicType={})));export var PicSubType;(function(_0x201a70){var _0x6ae540=_0x3a0b,_0x19a6e4={'GmrVz':_0x6ae540(0x96),'aWYwa':_0x6ae540(0xd4)};_0x201a70[_0x201a70[_0x6ae540(0x96)]=0x0]=_0x19a6e4['GmrVz'],_0x201a70[_0x201a70[_0x19a6e4[_0x6ae540(0xc9)]]=0x1]=_0x19a6e4[_0x6ae540(0xc9)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x5a2767){var _0x3e417d=_0x3a0b,_0x4749ec={'yWsVj':_0x3e417d(0xb8),'QdPUz':'atAll','RPVin':'atUser'};_0x5a2767[_0x5a2767[_0x3e417d(0xb8)]=0x0]=_0x4749ec['yWsVj'],_0x5a2767[_0x5a2767[_0x3e417d(0xbd)]=0x1]=_0x4749ec['QdPUz'],_0x5a2767[_0x5a2767[_0x4749ec[_0x3e417d(0xbc)]]=0x2]=_0x4749ec[_0x3e417d(0xbc)];}(AtType||(AtType={})));export var ChatType;(function(_0x1ced93){var _0x4df8c6=_0x3a0b,_0x38d9a7={'XTgGR':'friend','tVjCO':_0x4df8c6(0xa3),'ejqEe':'chatDevice','jvTrI':_0x4df8c6(0x99)};_0x1ced93[_0x1ced93[_0x38d9a7['XTgGR']]=0x1]=_0x38d9a7[_0x4df8c6(0xa8)],_0x1ced93[_0x1ced93[_0x4df8c6(0xa3)]=0x2]=_0x38d9a7[_0x4df8c6(0x9b)],_0x1ced93[_0x1ced93[_0x4df8c6(0xa6)]=0x8]=_0x38d9a7[_0x4df8c6(0x9f)],_0x1ced93[_0x1ced93[_0x38d9a7[_0x4df8c6(0xd0)]]=0x64]=_0x38d9a7[_0x4df8c6(0xd0)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x12728e(0xac);export const IMAGE_HTTP_HOST_NT='https://multimedia.nt.qq.com.cn';export var GrayTipElementSubType;function _0x321d(){var _0x26f25c=['105kYjvFb','JIEnT','jSQGi','362igOoHq','PnGYB','notAt','dice','ban','INVITE_NEW_MEMBER','RPVin','atAll','sUbqH','TEXT','5473FYxpTI','fVlNH','RPS','GtFPf','ttObM','3256uimOXD','TnOuR','DTRAR','35602OgrNJs','aWYwa','zjWDR','MFACE','36780aVJXlk','gif','2152482ktfTDs','ARK','jvTrI','9zQkyHw','REPLY','zFZCz','face','FILE','PTT','normal','BcNgH','rJwnQ','temp','kicked','tVjCO','aeyWx','MARKDOWN','22274qAGEwB','ejqEe','MEMBER_NEW_TITLE','VIDEO','ggULf','group','xudUC','1736304WufpMc','chatDevice','Lecwi','XTgGR','VLCXj','AzNNW','8928280NhCpDJ','https://gchat.qpic.cn','77hBUgCg','jpg','1110QCtTwb','FACE','15jxqJyB','vaaFU'];_0x321d=function(){return _0x26f25c;};return _0x321d();}(function(_0x406f13){var _0x6d52ca=_0x12728e,_0x5dd9e4={'GtFPf':_0x6d52ca(0xbb),'VLCXj':_0x6d52ca(0xa0)};_0x406f13[_0x406f13[_0x5dd9e4[_0x6d52ca(0xc3)]]=0xc]=_0x5dd9e4[_0x6d52ca(0xc3)],_0x406f13[_0x406f13[_0x5dd9e4[_0x6d52ca(0xa9)]]=0x11]=_0x5dd9e4[_0x6d52ca(0xa9)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x224ca4){var _0x2a82a4=_0x12728e,_0x4b3e43={'BcNgH':_0x2a82a4(0x96),'JIEnT':'normal2','jSQGi':'dice'};_0x224ca4[_0x224ca4[_0x2a82a4(0x96)]=0x1]=_0x4b3e43[_0x2a82a4(0x97)],_0x224ca4[_0x224ca4[_0x4b3e43[_0x2a82a4(0xb4)]]=0x2]=_0x4b3e43[_0x2a82a4(0xb4)],_0x224ca4[_0x224ca4[_0x4b3e43[_0x2a82a4(0xb5)]]=0x3]=_0x4b3e43[_0x2a82a4(0xb5)];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x428127){var _0x5d3780=_0x12728e,_0x468bd3={'aeyWx':_0x5d3780(0xb9),'DdkMh':_0x5d3780(0xc2)};_0x428127[_0x428127[_0x468bd3[_0x5d3780(0x9c)]]=0x166]=_0x468bd3[_0x5d3780(0x9c)],_0x428127[_0x428127[_0x468bd3['DdkMh']]=0x167]=_0x468bd3['DdkMh'];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x4c0394){var _0x1a1658=_0x12728e,_0x8bb350={'PnGYB':'memberIncrease','sUbqH':_0x1a1658(0x9a),'CWdua':_0x1a1658(0xba)};_0x4c0394[_0x4c0394[_0x8bb350['PnGYB']]=0x1]=_0x8bb350[_0x1a1658(0xb7)],_0x4c0394[_0x4c0394['kicked']=0x3]=_0x8bb350[_0x1a1658(0xbe)],_0x4c0394[_0x4c0394[_0x8bb350['CWdua']]=0x8]=_0x1a1658(0xba);}(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 51c570fb..11d3877b 100644 --- a/src/core.lib/src/entities/notify.js +++ b/src/core.lib/src/entities/notify.js @@ -1 +1 @@ -(function(_0x8cf057,_0x2bc697){var _0x24d93f=_0x4a02,_0x4db8f0=_0x8cf057();while(!![]){try{var _0x5894a8=parseInt(_0x24d93f(0x1ad))/0x1*(parseInt(_0x24d93f(0x1a8))/0x2)+parseInt(_0x24d93f(0x1b8))/0x3+parseInt(_0x24d93f(0x1bf))/0x4*(-parseInt(_0x24d93f(0x1bc))/0x5)+-parseInt(_0x24d93f(0x1ac))/0x6+parseInt(_0x24d93f(0x1a9))/0x7*(parseInt(_0x24d93f(0x1aa))/0x8)+parseInt(_0x24d93f(0x1c0))/0x9+-parseInt(_0x24d93f(0x1a4))/0xa*(-parseInt(_0x24d93f(0x1c1))/0xb);if(_0x5894a8===_0x2bc697)break;else _0x4db8f0['push'](_0x4db8f0['shift']());}catch(_0xca68d9){_0x4db8f0['push'](_0x4db8f0['shift']());}}}(_0x2e36,0x2434b));function _0x4a02(_0x3c6e6,_0x4f8b86){var _0x2e36bc=_0x2e36();return _0x4a02=function(_0x4a02c7,_0x195294){_0x4a02c7=_0x4a02c7-0x19f;var _0x2087e8=_0x2e36bc[_0x4a02c7];return _0x2087e8;},_0x4a02(_0x3c6e6,_0x4f8b86);}export var GroupNotifyTypes;(function(_0x58b3bc){var _0x18f468=_0x4a02,_0xc034eb={'omtKY':_0x18f468(0x1a6),'vCPaD':_0x18f468(0x1a1),'DAOsw':_0x18f468(0x1c2),'qAdOW':_0x18f468(0x1a0),'XoeDS':_0x18f468(0x1bd),'ZiEKm':_0x18f468(0x1b4),'KqHUW':_0x18f468(0x1ae),'jPTAX':_0x18f468(0x1b6)},_0xf18b7e=_0xc034eb[_0x18f468(0x1b0)][_0x18f468(0x1a2)]('|'),_0x59d8af=0x0;while(!![]){switch(_0xf18b7e[_0x59d8af++]){case'0':_0x58b3bc[_0x58b3bc[_0x18f468(0x1a1)]=0x9]=_0xc034eb[_0x18f468(0x1ab)];continue;case'1':_0x58b3bc[_0x58b3bc['INVITED_JOIN']=0x4]=_0xc034eb[_0x18f468(0x1c3)];continue;case'2':_0x58b3bc[_0x58b3bc[_0xc034eb[_0x18f468(0x1a5)]]=0x7]=_0xc034eb[_0x18f468(0x1a5)];continue;case'3':_0x58b3bc[_0x58b3bc[_0xc034eb[_0x18f468(0x1b1)]]=0xb]=_0xc034eb[_0x18f468(0x1b1)];continue;case'4':_0x58b3bc[_0x58b3bc['INVITE_ME']=0x1]=_0x18f468(0x1b5);continue;case'5':_0x58b3bc[_0x58b3bc[_0xc034eb[_0x18f468(0x1a3)]]=0xd]=_0xc034eb['ZiEKm'];continue;case'6':_0x58b3bc[_0x58b3bc[_0xc034eb[_0x18f468(0x1b9)]]=0xc]=_0xc034eb[_0x18f468(0x1b9)];continue;case'7':_0x58b3bc[_0x58b3bc[_0xc034eb['jPTAX']]=0x8]=_0x18f468(0x1b6);continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x56a373){var _0x433f1a=_0x4a02,_0x2287c3={'iITyz':_0x433f1a(0x1b2),'FwJJA':_0x433f1a(0x19f),'jnnsI':_0x433f1a(0x1a7),'Ymevg':_0x433f1a(0x1af)};_0x56a373[_0x56a373[_0x2287c3[_0x433f1a(0x1ba)]]=0x0]=_0x2287c3[_0x433f1a(0x1ba)],_0x56a373[_0x56a373[_0x433f1a(0x19f)]=0x1]=_0x2287c3['FwJJA'],_0x56a373[_0x56a373[_0x433f1a(0x1a7)]=0x2]=_0x2287c3['jnnsI'],_0x56a373[_0x56a373[_0x2287c3[_0x433f1a(0x1b3)]]=0x3]=_0x2287c3[_0x433f1a(0x1b3)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;function _0x2e36(){var _0x2dfe75=['KICK_MEMBER','split','ZiEKm','773230QQErvT','qAdOW','4|1|2|7|0|3|6|5','APPROVE','9258HmDLrc','87794CsmGtd','40ighgEr','vCPaD','1399152zDiJOo','34DcqCaE','ADMIN_UNSET','REJECT','omtKY','XoeDS','IGNORE','Ymevg','ADMIN_UNSET_OTHER','INVITE_ME','ADMIN_SET','vxwrN','12504aoZVvG','KqHUW','iITyz','approve','3955LtQUEv','MEMBER_EXIT','reject','1176tnYwmZ','724401LyGoXn','44bZLekc','INVITED_JOIN','DAOsw','WAIT_HANDLE','JOIN_REQUEST'];_0x2e36=function(){return _0x2dfe75;};return _0x2e36();}(function(_0x31df5b){var _0x271014=_0x4a02,_0x17fa61={'pHJhm':_0x271014(0x1bb),'vxwrN':_0x271014(0x1be)};_0x31df5b[_0x31df5b[_0x17fa61['pHJhm']]=0x1]='approve',_0x31df5b[_0x31df5b[_0x17fa61['vxwrN']]=0x2]=_0x17fa61[_0x271014(0x1b7)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file +function _0x54ca(){var _0x413439=['wXdzL','JpqFu','INypQ','JOIN_REQUEST','approve','MEMBER_EXIT','WAIT_HANDLE','1945CoeyOh','jlvMw','159384kCbhvJ','reject','ADMIN_UNSET_OTHER','TwfBU','wPWpm','ADMIN_SET','REJECT','1328516ocYwNB','6ifoGCl','UoJVP','62985iJjywK','gYXeI','MxXBM','ADMIN_UNSET','5|4|3|0|6|7|1|2','80420jcoGNl','RnICI','sDMbC','996507zlSDGO','YihBm','INVITED_JOIN','1325992vwVmDT','IGNORE','KICK_MEMBER','3xdwvue'];_0x54ca=function(){return _0x413439;};return _0x54ca();}(function(_0x3a3c22,_0x14a0fd){var _0x3af4ba=_0x286c,_0x11e82f=_0x3a3c22();while(!![]){try{var _0x241641=-parseInt(_0x3af4ba(0xd9))/0x1+parseInt(_0x3af4ba(0xf1))/0x2+parseInt(_0x3af4ba(0xe7))/0x3*(parseInt(_0x3af4ba(0xde))/0x4)+parseInt(_0x3af4ba(0xef))/0x5*(-parseInt(_0x3af4ba(0xd7))/0x6)+-parseInt(_0x3af4ba(0xd6))/0x7+parseInt(_0x3af4ba(0xe4))/0x8+parseInt(_0x3af4ba(0xe1))/0x9;if(_0x241641===_0x14a0fd)break;else _0x11e82f['push'](_0x11e82f['shift']());}catch(_0x1d2770){_0x11e82f['push'](_0x11e82f['shift']());}}}(_0x54ca,0x1e0e3));function _0x286c(_0x4be22a,_0x55b68f){var _0x54ca94=_0x54ca();return _0x286c=function(_0x286c31,_0x50ef32){_0x286c31=_0x286c31-0xd6;var _0xf1750b=_0x54ca94[_0x286c31];return _0xf1750b;},_0x286c(_0x4be22a,_0x55b68f);}export var GroupNotifyTypes;(function(_0x3031ff){var _0x3b096b=_0x286c,_0x295b41={'YihBm':_0x3b096b(0xdd),'PXRAd':'ADMIN_SET','jlvMw':_0x3b096b(0xdc),'wPWpm':_0x3b096b(0xf3),'tXYiQ':'JOIN_REQUEST','gYXeI':_0x3b096b(0xe3),'JpqFu':'INVITE_ME','RnICI':_0x3b096b(0xe6),'INypQ':'MEMBER_EXIT'},_0x2860df=_0x295b41[_0x3b096b(0xe2)]['split']('|'),_0xac6aa8=0x0;while(!![]){switch(_0x2860df[_0xac6aa8++]){case'0':_0x3031ff[_0x3031ff[_0x3b096b(0xf6)]=0x8]=_0x295b41['PXRAd'];continue;case'1':_0x3031ff[_0x3031ff[_0x295b41[_0x3b096b(0xf0)]]=0xc]=_0x3b096b(0xdc);continue;case'2':_0x3031ff[_0x3031ff[_0x295b41[_0x3b096b(0xf5)]]=0xd]=_0x295b41['wPWpm'];continue;case'3':_0x3031ff[_0x3031ff[_0x3b096b(0xeb)]=0x7]=_0x295b41['tXYiQ'];continue;case'4':_0x3031ff[_0x3031ff[_0x295b41['gYXeI']]=0x4]=_0x295b41[_0x3b096b(0xda)];continue;case'5':_0x3031ff[_0x3031ff[_0x295b41[_0x3b096b(0xe9)]]=0x1]=_0x295b41[_0x3b096b(0xe9)];continue;case'6':_0x3031ff[_0x3031ff[_0x295b41['RnICI']]=0x9]=_0x295b41[_0x3b096b(0xdf)];continue;case'7':_0x3031ff[_0x3031ff[_0x3b096b(0xed)]=0xb]=_0x295b41[_0x3b096b(0xea)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x99870b){var _0x1087f4=_0x286c,_0x3ef79a={'gOZXZ':_0x1087f4(0xe5),'TwfBU':_0x1087f4(0xee),'MxXBM':'APPROVE','sDMbC':_0x1087f4(0xf7)};_0x99870b[_0x99870b['IGNORE']=0x0]=_0x3ef79a['gOZXZ'],_0x99870b[_0x99870b[_0x3ef79a[_0x1087f4(0xf4)]]=0x1]=_0x1087f4(0xee),_0x99870b[_0x99870b['APPROVE']=0x2]=_0x3ef79a[_0x1087f4(0xdb)],_0x99870b[_0x99870b[_0x3ef79a['sDMbC']]=0x3]=_0x3ef79a[_0x1087f4(0xe0)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x461df4){var _0x20ba34=_0x286c,_0x17eb3d={'wXdzL':_0x20ba34(0xec),'UoJVP':_0x20ba34(0xf2)};_0x461df4[_0x461df4[_0x17eb3d[_0x20ba34(0xe8)]]=0x1]=_0x17eb3d['wXdzL'],_0x461df4[_0x461df4[_0x17eb3d['UoJVP']]=0x2]=_0x17eb3d[_0x20ba34(0xd8)];}(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 6424fec3..632614bf 100644 --- a/src/core.lib/src/entities/user.js +++ b/src/core.lib/src/entities/user.js @@ -1 +1 @@ -(function(_0x37155b,_0x2ebeee){var _0x355f5c=_0x2c1a,_0x1970ad=_0x37155b();while(!![]){try{var _0x152ddb=parseInt(_0x355f5c(0x154))/0x1+-parseInt(_0x355f5c(0x159))/0x2*(-parseInt(_0x355f5c(0x151))/0x3)+-parseInt(_0x355f5c(0x14f))/0x4+-parseInt(_0x355f5c(0x152))/0x5+parseInt(_0x355f5c(0x158))/0x6*(parseInt(_0x355f5c(0x156))/0x7)+-parseInt(_0x355f5c(0x14e))/0x8*(-parseInt(_0x355f5c(0x15b))/0x9)+-parseInt(_0x355f5c(0x150))/0xa*(-parseInt(_0x355f5c(0x15a))/0xb);if(_0x152ddb===_0x2ebeee)break;else _0x1970ad['push'](_0x1970ad['shift']());}catch(_0x4a61f6){_0x1970ad['push'](_0x1970ad['shift']());}}}(_0x573e,0x7b071));function _0x573e(){var _0x2986c0=['4705928JyVMHI','857928lgEqOz','10LvEIfS','15judMUX','3554940rZYOVy','kUHua','49727pTHZmn','unknown','1750AtQkKl','uorxB','2814indQUZ','123846EfwsNf','4010138dQxfsP','9NgUsGy','female'];_0x573e=function(){return _0x2986c0;};return _0x573e();}function _0x2c1a(_0xd4b261,_0x595085){var _0x573ef5=_0x573e();return _0x2c1a=function(_0x2c1a6c,_0x5b7fb7){_0x2c1a6c=_0x2c1a6c-0x14e;var _0x324cde=_0x573ef5[_0x2c1a6c];return _0x324cde;},_0x2c1a(_0xd4b261,_0x595085);}export var Sex;(function(_0x254ab9){var _0x3bcd53=_0x2c1a,_0x405072={'uorxB':'male','kUHua':'female'};_0x254ab9[_0x254ab9[_0x405072[_0x3bcd53(0x157)]]=0x1]=_0x405072[_0x3bcd53(0x157)],_0x254ab9[_0x254ab9[_0x405072[_0x3bcd53(0x153)]]=0x2]=_0x3bcd53(0x15c),_0x254ab9[_0x254ab9[_0x3bcd53(0x155)]=0xff]='unknown';}(Sex||(Sex={}))); \ No newline at end of file +(function(_0x1034ff,_0x437d87){var _0xa85938=_0x5d28,_0x2551dc=_0x1034ff();while(!![]){try{var _0xff3bb=-parseInt(_0xa85938(0x1bf))/0x1*(-parseInt(_0xa85938(0x1c3))/0x2)+parseInt(_0xa85938(0x1c8))/0x3+parseInt(_0xa85938(0x1c9))/0x4+-parseInt(_0xa85938(0x1c6))/0x5*(parseInt(_0xa85938(0x1bd))/0x6)+-parseInt(_0xa85938(0x1c4))/0x7*(-parseInt(_0xa85938(0x1be))/0x8)+-parseInt(_0xa85938(0x1cb))/0x9*(parseInt(_0xa85938(0x1c1))/0xa)+-parseInt(_0xa85938(0x1c5))/0xb;if(_0xff3bb===_0x437d87)break;else _0x2551dc['push'](_0x2551dc['shift']());}catch(_0x43546b){_0x2551dc['push'](_0x2551dc['shift']());}}}(_0x2624,0x3e7a3));function _0x2624(){var _0x31bdcc=['13223dgNFcx','4653561zlAQbm','65jqAfiQ','Ugcxf','436839qdOoGB','1847256mpEiie','female','18otehHa','unknown','161898UZsnTy','1448WPTgpk','68945PBvTLp','APKJV','1321620MJHdkE','SmdcW','10RtWCVO'];_0x2624=function(){return _0x31bdcc;};return _0x2624();}export var Sex;function _0x5d28(_0x1e12fd,_0x3858e2){var _0x262404=_0x2624();return _0x5d28=function(_0x5d28df,_0x50c338){_0x5d28df=_0x5d28df-0x1bc;var _0x35f77d=_0x262404[_0x5d28df];return _0x35f77d;},_0x5d28(_0x1e12fd,_0x3858e2);}(function(_0x13bee5){var _0x5f579d=_0x5d28,_0x3915c9={'Ugcxf':'male','SmdcW':_0x5f579d(0x1ca),'APKJV':_0x5f579d(0x1bc)};_0x13bee5[_0x13bee5[_0x3915c9[_0x5f579d(0x1c7)]]=0x1]=_0x3915c9[_0x5f579d(0x1c7)],_0x13bee5[_0x13bee5[_0x3915c9[_0x5f579d(0x1c2)]]=0x2]=_0x3915c9[_0x5f579d(0x1c2)],_0x13bee5[_0x13bee5[_0x3915c9[_0x5f579d(0x1c0)]]=0xff]=_0x3915c9[_0x5f579d(0x1c0)];}(Sex||(Sex={}))); \ No newline at end of file diff --git a/src/core.lib/src/index.js b/src/core.lib/src/index.js index 54b8e066..bec5b115 100644 --- a/src/core.lib/src/index.js +++ b/src/core.lib/src/index.js @@ -1 +1 @@ -function _0x3408(){var _0x4a5c0d=['32464yTlwbh','907220FHyCQi','558NaTolX','1486510HZoOrf','936702aazrhI','6613992shvttg','8866150zXRTAb','293195qwLqtO','3cbOdYM','8rsSoQa'];_0x3408=function(){return _0x4a5c0d;};return _0x3408();}(function(_0x365cab,_0x3db9e8){var _0x374bf0=_0x5ceb,_0x95e134=_0x365cab();while(!![]){try{var _0x270f5f=-parseInt(_0x374bf0(0xb3))/0x1+parseInt(_0x374bf0(0xb2))/0x2*(parseInt(_0x374bf0(0xb7))/0x3)+parseInt(_0x374bf0(0xb8))/0x4*(parseInt(_0x374bf0(0xba))/0x5)+parseInt(_0x374bf0(0xb4))/0x6+-parseInt(_0x374bf0(0xb6))/0x7+-parseInt(_0x374bf0(0xb9))/0x8*(-parseInt(_0x374bf0(0xb1))/0x9)+-parseInt(_0x374bf0(0xb5))/0xa;if(_0x270f5f===_0x3db9e8)break;else _0x95e134['push'](_0x95e134['shift']());}catch(_0x392d7d){_0x95e134['push'](_0x95e134['shift']());}}}(_0x3408,0x913b5));import _0x31db0e from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';function _0x5ceb(_0x1dfe3b,_0x44087){var _0x3408ad=_0x3408();return _0x5ceb=function(_0x5ceb45,_0x35d635){_0x5ceb45=_0x5ceb45-0xb1;var _0x10cbd2=_0x3408ad[_0x5ceb45];return _0x10cbd2;},_0x5ceb(_0x1dfe3b,_0x44087);}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{_0x31db0e as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file +(function(_0xe4179a,_0x193855){var _0xd06679=_0x3659,_0xa0f362=_0xe4179a();while(!![]){try{var _0x44a86f=parseInt(_0xd06679(0xa8))/0x1+-parseInt(_0xd06679(0xa7))/0x2+parseInt(_0xd06679(0xab))/0x3*(-parseInt(_0xd06679(0xa5))/0x4)+parseInt(_0xd06679(0xaa))/0x5+parseInt(_0xd06679(0xa6))/0x6+parseInt(_0xd06679(0xa9))/0x7*(-parseInt(_0xd06679(0xac))/0x8)+parseInt(_0xd06679(0xa4))/0x9;if(_0x44a86f===_0x193855)break;else _0xa0f362['push'](_0xa0f362['shift']());}catch(_0x58be6c){_0xa0f362['push'](_0xa0f362['shift']());}}}(_0x3570,0x320c4));import _0x1d9e80 from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';function _0x3570(){var _0x1343a8=['129nCcpVQ','8YWLing','1967427FhxpZQ','10756yWFVon','2251266QFbrHW','615556tOrWBa','279913YSkTeT','1755866yFAyvW','27560YejDHW'];_0x3570=function(){return _0x1343a8;};return _0x3570();}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{_0x1d9e80 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';function _0x3659(_0x4e2391,_0x352e00){var _0x3570f=_0x3570();return _0x3659=function(_0x365997,_0x368f2){_0x365997=_0x365997-0xa4;var _0x23a5cd=_0x3570f[_0x365997];return _0x23a5cd;},_0x3659(_0x4e2391,_0x352e00);}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 d29b1a80..3d53a8d2 100644 --- a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js +++ b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js @@ -1 +1 @@ -var _0xe83fc1=_0x4147;(function(_0x2454be,_0x42d345){var _0x42eda8=_0x4147,_0x10d3fb=_0x2454be();while(!![]){try{var _0x37e962=-parseInt(_0x42eda8(0x16a))/0x1+parseInt(_0x42eda8(0x169))/0x2+parseInt(_0x42eda8(0x168))/0x3*(-parseInt(_0x42eda8(0x16b))/0x4)+-parseInt(_0x42eda8(0x16e))/0x5+-parseInt(_0x42eda8(0x173))/0x6+parseInt(_0x42eda8(0x171))/0x7*(-parseInt(_0x42eda8(0x178))/0x8)+-parseInt(_0x42eda8(0x175))/0x9*(-parseInt(_0x42eda8(0x177))/0xa);if(_0x37e962===_0x42d345)break;else _0x10d3fb['push'](_0x10d3fb['shift']());}catch(_0x2bd2ab){_0x10d3fb['push'](_0x10d3fb['shift']());}}}(_0x345b,0xce557));function _0x345b(){var _0x51a698=['onCheckBuddySettingResult','onBlockChanged','9JgvDQB','2544862aORvmH','1465934ltBcbO','1468280abZoCI','onBuddyDetailInfoChange','onDoubtBuddyReqChange','3457735IUGBeb','onBuddyListChange','onSmartInfos','28RJnctg','onBuddyReqChange','6745134GjwbTT','onAvatarUrlUpdated','1584bQQyno','onBuddyRemarkUpdated','267610UBJsOB','1508688MJTjVr','onDoubtBuddyReqUnreadNumChange','onBuddyInfoChange','onSpacePermissionInfos','onAddBuddyNeedVerify','onAddMeSettingChanged'];_0x345b=function(){return _0x51a698;};return _0x345b();}function _0x4147(_0x2fc02d,_0x27035b){var _0x345bc8=_0x345b();return _0x4147=function(_0x41471d,_0x470021){_0x41471d=_0x41471d-0x161;var _0x7eb9c2=_0x345bc8[_0x41471d];return _0x7eb9c2;},_0x4147(_0x2fc02d,_0x27035b);}export class BuddyListener{[_0xe83fc1(0x164)](_0x3d255d){}[_0xe83fc1(0x165)](_0x31d4fc){}[_0xe83fc1(0x174)](_0x1c4078){}[_0xe83fc1(0x167)](_0x3299a9){}[_0xe83fc1(0x16c)](_0xb6f38d){}[_0xe83fc1(0x162)](_0x34186c){}[_0xe83fc1(0x16f)](_0x277dee){}[_0xe83fc1(0x176)](_0x517107){}[_0xe83fc1(0x172)](_0x158d9b){}['onBuddyReqUnreadCntChange'](_0x410093){}[_0xe83fc1(0x166)](_0x2fb4a7){}['onDelBatchBuddyInfos'](_0x424050){}[_0xe83fc1(0x16d)](_0x2e078f){}[_0xe83fc1(0x161)](_0x57495a){}['onNickUpdated'](_0x112d32){}[_0xe83fc1(0x170)](_0x18caf5){}[_0xe83fc1(0x163)](_0x73003f){}} \ No newline at end of file +function _0xd618(_0x2965c5,_0x439a17){var _0x1c89f8=_0x1c89();return _0xd618=function(_0xd618fd,_0xbd5f16){_0xd618fd=_0xd618fd-0x148;var _0x383c19=_0x1c89f8[_0xd618fd];return _0x383c19;},_0xd618(_0x2965c5,_0x439a17);}function _0x1c89(){var _0x1ee544=['onDoubtBuddyReqUnreadNumChange','4ViILKN','onSmartInfos','15kobibE','onCheckBuddySettingResult','2321xsOTsm','onBuddyInfoChange','4240494lkaqMQ','733754JFTEBI','onDoubtBuddyReqChange','onBlockChanged','onBuddyDetailInfoChange','889572ayUiFQ','onAddBuddyNeedVerify','28488kopNan','218721JIWIIY','20pepGFq','onAddMeSettingChanged','onBuddyRemarkUpdated','1190110GgXPxC','onAvatarUrlUpdated','onNickUpdated','onDelBatchBuddyInfos','217807ttXPNK','32TzGwIK'];_0x1c89=function(){return _0x1ee544;};return _0x1c89();}var _0x2b3f04=_0xd618;(function(_0x1b875a,_0xafcdfb){var _0x38394a=_0xd618,_0x494549=_0x1b875a();while(!![]){try{var _0x2826de=-parseInt(_0x38394a(0x156))/0x1*(-parseInt(_0x38394a(0x159))/0x2)+-parseInt(_0x38394a(0x14e))/0x3*(parseInt(_0x38394a(0x14f))/0x4)+-parseInt(_0x38394a(0x15b))/0x5*(-parseInt(_0x38394a(0x14b))/0x6)+-parseInt(_0x38394a(0x160))/0x7*(parseInt(_0x38394a(0x157))/0x8)+-parseInt(_0x38394a(0x15f))/0x9+parseInt(_0x38394a(0x152))/0xa+parseInt(_0x38394a(0x15d))/0xb*(parseInt(_0x38394a(0x14d))/0xc);if(_0x2826de===_0xafcdfb)break;else _0x494549['push'](_0x494549['shift']());}catch(_0xeabd33){_0x494549['push'](_0x494549['shift']());}}}(_0x1c89,0x3be58));export class BuddyListener{[_0x2b3f04(0x14c)](_0x39ad4d){}[_0x2b3f04(0x150)](_0x50d79e){}[_0x2b3f04(0x153)](_0x5b71f7){}[_0x2b3f04(0x149)](_0x20b8c5){}[_0x2b3f04(0x14a)](_0x29c670){}[_0x2b3f04(0x15e)](_0x112fea){}['onBuddyListChange'](_0x18632c){}[_0x2b3f04(0x151)](_0x226d21){}['onBuddyReqChange'](_0x41cdff){}['onBuddyReqUnreadCntChange'](_0x3f16a2){}[_0x2b3f04(0x15c)](_0x151e81){}[_0x2b3f04(0x155)](_0x1bd91c){}[_0x2b3f04(0x148)](_0x6a6c2d){}[_0x2b3f04(0x158)](_0x4c0c6a){}[_0x2b3f04(0x154)](_0x26300a){}[_0x2b3f04(0x15a)](_0xe63b66){}['onSpacePermissionInfos'](_0x3ab4a3){}} \ 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 84cf6019..498e9f2d 100644 --- a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js +++ b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js @@ -1 +1 @@ -var _0x65462f=_0x4f5b;function _0x4164(){var _0x5069a2=['3333975tpUbQF','18729dOWKjF','1552aXnkkG','onFileSearch','2089072jkjxOP','88hIaNcN','onFileListChanged','3040387RayRvS','onSessionChanged','onSessionListChanged','52908WfNpbt','260720GxlNIO','87340vsajnG','3718LHxJPY','6RVCpBF'];_0x4164=function(){return _0x5069a2;};return _0x4164();}function _0x4f5b(_0x53d0e8,_0x34c664){var _0x416460=_0x4164();return _0x4f5b=function(_0x4f5b40,_0x34a496){_0x4f5b40=_0x4f5b40-0xdc;var _0x564bb2=_0x416460[_0x4f5b40];return _0x564bb2;},_0x4f5b(_0x53d0e8,_0x34c664);}(function(_0x1f9dee,_0x36e3f7){var _0x5bae0b=_0x4f5b,_0x3c8dfa=_0x1f9dee();while(!![]){try{var _0x4a423a=parseInt(_0x5bae0b(0xe1))/0x1+parseInt(_0x5bae0b(0xea))/0x2*(-parseInt(_0x5bae0b(0xe0))/0x3)+-parseInt(_0x5bae0b(0xe9))/0x4+-parseInt(_0x5bae0b(0xe5))/0x5+-parseInt(_0x5bae0b(0xe4))/0x6*(parseInt(_0x5bae0b(0xdd))/0x7)+-parseInt(_0x5bae0b(0xe7))/0x8*(parseInt(_0x5bae0b(0xe6))/0x9)+-parseInt(_0x5bae0b(0xe2))/0xa*(-parseInt(_0x5bae0b(0xe3))/0xb);if(_0x4a423a===_0x36e3f7)break;else _0x3c8dfa['push'](_0x3c8dfa['shift']());}catch(_0x3cd7ff){_0x3c8dfa['push'](_0x3c8dfa['shift']());}}}(_0x4164,0x6406e));export class KernelFileAssistantListener{['onFileStatusChanged'](..._0x4be581){}[_0x65462f(0xdf)](..._0x17905f){}[_0x65462f(0xde)](..._0x4d6945){}[_0x65462f(0xdc)](..._0x5a090a){}[_0x65462f(0xe8)](..._0x1c2a7e){}} \ No newline at end of file +var _0x3ca38d=_0x125f;(function(_0xd2d382,_0x20f597){var _0x243540=_0x125f,_0x5b4c07=_0xd2d382();while(!![]){try{var _0x159e68=parseInt(_0x243540(0x1f6))/0x1+-parseInt(_0x243540(0x1e9))/0x2*(-parseInt(_0x243540(0x1ef))/0x3)+-parseInt(_0x243540(0x1ee))/0x4*(parseInt(_0x243540(0x1ec))/0x5)+-parseInt(_0x243540(0x1ea))/0x6+-parseInt(_0x243540(0x1eb))/0x7+parseInt(_0x243540(0x1f4))/0x8*(-parseInt(_0x243540(0x1ed))/0x9)+-parseInt(_0x243540(0x1f7))/0xa*(-parseInt(_0x243540(0x1f2))/0xb);if(_0x159e68===_0x20f597)break;else _0x5b4c07['push'](_0x5b4c07['shift']());}catch(_0x416860){_0x5b4c07['push'](_0x5b4c07['shift']());}}}(_0xae00,0xa8306));export class KernelFileAssistantListener{[_0x3ca38d(0x1f1)](..._0x2d6a4a){}['onSessionListChanged'](..._0x57fe4c){}[_0x3ca38d(0x1f0)](..._0x4611ed){}[_0x3ca38d(0x1f3)](..._0x5d90e4){}[_0x3ca38d(0x1f5)](..._0x4eaa73){}}function _0x125f(_0x460401,_0x2924a2){var _0xae0067=_0xae00();return _0x125f=function(_0x125f07,_0x10f90d){_0x125f07=_0x125f07-0x1e9;var _0x3e289d=_0xae0067[_0x125f07];return _0x3e289d;},_0x125f(_0x460401,_0x2924a2);}function _0xae00(){var _0x1f5ea2=['onSessionChanged','onFileStatusChanged','20237019SVnSxu','onFileListChanged','192IeJYCs','onFileSearch','711762mNWCCj','20KvUADA','358500ftIawZ','7420854tWfrWS','7978523PWuPDi','205KJlguW','428940hKOOJI','52720KIsBXQ','6pqdlZX'];_0xae00=function(){return _0x1f5ea2;};return _0xae00();} \ 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 c4372dcd..d664540d 100644 --- a/src/core.lib/src/listeners/NodeIKernelGroupListener.js +++ b/src/core.lib/src/listeners/NodeIKernelGroupListener.js @@ -1 +1 @@ -var _0x463bdc=_0x52cc;(function(_0x3a1883,_0x1f220c){var _0xc0b374=_0x52cc,_0x3b0118=_0x3a1883();while(!![]){try{var _0x360ca4=-parseInt(_0xc0b374(0x10a))/0x1*(-parseInt(_0xc0b374(0xe7))/0x2)+parseInt(_0xc0b374(0xd6))/0x3*(parseInt(_0xc0b374(0xe6))/0x4)+-parseInt(_0xc0b374(0x110))/0x5*(parseInt(_0xc0b374(0x102))/0x6)+parseInt(_0xc0b374(0xda))/0x7*(-parseInt(_0xc0b374(0xfa))/0x8)+-parseInt(_0xc0b374(0xf8))/0x9+parseInt(_0xc0b374(0xed))/0xa*(-parseInt(_0xc0b374(0xf2))/0xb)+parseInt(_0xc0b374(0xde))/0xc*(parseInt(_0xc0b374(0x10e))/0xd);if(_0x360ca4===_0x1f220c)break;else _0x3b0118['push'](_0x3b0118['shift']());}catch(_0xdde3b2){_0x3b0118['push'](_0x3b0118['shift']());}}}(_0xf2a1,0x59a98));function _0x52cc(_0x1e2734,_0x2dba87){var _0xf2a1e2=_0xf2a1();return _0x52cc=function(_0x52cc46,_0x39b2e1){_0x52cc46=_0x52cc46-0xd3;var _0x2e8b6c=_0xf2a1e2[_0x52cc46];return _0x2e8b6c;},_0x52cc(_0x1e2734,_0x2dba87);}function _0xf2a1(){var _0x5cd79e=['onGroupArkInviteStateResult','49EGLxdD','onGroupExtListUpdate','onGroupsMsgMaskResult:','onGroupBulletinRemindNotify:','12LUfJyq','ciTjK','onGroupNotifiesUnreadCountUpdated','XYSZP','onGroupBulletinChange','onGroupStatisticInfoChange:','EdIBu','sHKin','56492CrduyD','98Cegigc','onJoinGroupNoVerifyFlag:','onGroupNotifiesUpdated','iEcGC','qUIQY','onGroupNotifiesUpdated:','4710520lTXrVZ','onGetGroupBulletinListResult','onGroupAllInfoChange','onJoinGroupNotify:','onGroupListUpdate','11RoldOP','onGroupAllInfoChange:','onGroupBulletinRichMediaProgressUpdate','onGroupBulletinRichMediaDownloadComplete:','onGroupsMsgMaskResult','fthPW','3450798nbVJMp','onGroupConfMemberChange:','259640jddvNB','HSOQe','onMemberInfoChange','onShutUpMemberListChanged:','onSearchMemberChange','onJoinGroupNotify','onGroupBulletinRemindNotify','onMemberListChange','1122nBzDHi','gvTOj','log','HPyMw','onGroupFirstBulletinNotify','onGroupListUpdate:','onGroupBulletinChange:','onGroupStatisticInfoChange','10522tKUUgX','onGroupConfMemberChange','onSearchMemberChange:','onMemberListChange:','12627095Yxmbsq','onGroupNotifiesUnreadCountUpdated:','7435jmyCfu','onShutUpMemberListChanged','HJKsI','onGroupBulletinRichMediaProgressUpdate:','onGroupMemberLevelInfoChange','onGroupDetailInfoChange','onGroupExtListUpdate:','51xDvROb','onJoinGroupNoVerifyFlag','onGroupBulletinRichMediaDownloadComplete'];_0xf2a1=function(){return _0x5cd79e;};return _0xf2a1();}export class GroupListener{[_0x463bdc(0xd3)](..._0x475639){}['onGetGroupBulletinListResult'](..._0x573b42){}[_0x463bdc(0xef)](..._0x4dc760){}[_0x463bdc(0xe2)](..._0x1f6bf6){}[_0x463bdc(0x100)](..._0x3d9c78){}[_0x463bdc(0xd9)](..._0x453efb){}[_0x463bdc(0xd8)](..._0x4e0791){}[_0x463bdc(0x10b)](..._0x3cb4e5){}[_0x463bdc(0xd4)](..._0x3ca0ba){}[_0x463bdc(0xdb)](..._0x1fe968){}['onGroupFirstBulletinNotify'](..._0x10b8ae){}[_0x463bdc(0xf1)](_0x149e27,_0x654ed6){}[_0x463bdc(0xe9)](_0x306d5c,_0x1f86fa){}[_0x463bdc(0xf4)](..._0x31afbc){}[_0x463bdc(0xe0)](..._0x157d7e){}['onGroupSingleScreenNotifies'](_0x109b9f,_0x2ffc9a,_0x711842){}[_0x463bdc(0xf6)](..._0x15e542){}[_0x463bdc(0x109)](..._0x1099f5){}[_0x463bdc(0xff)](..._0x1a8ca3){}[_0x463bdc(0xd7)](..._0x181297){}[_0x463bdc(0xfc)](_0x588cfa,_0xd4c04,_0x2deac0){}['onMemberListChange'](_0x34d0b2){}[_0x463bdc(0xfe)](..._0x791b47){}[_0x463bdc(0x111)](..._0x4a38e8){}}export class DebugGroupListener{[_0x463bdc(0xd3)](..._0x1ed8bc){var _0x46486a=_0x463bdc,_0x4a2169={'fthPW':'onGroupMemberLevelInfoChange:'};console[_0x46486a(0x104)](_0x4a2169[_0x46486a(0xf7)],..._0x1ed8bc);}[_0x463bdc(0xee)](..._0x2bc071){var _0x5ec1f9=_0x463bdc;console[_0x5ec1f9(0x104)]('onGetGroupBulletinListResult:',..._0x2bc071);}[_0x463bdc(0xef)](..._0x10a261){var _0xa4459=_0x463bdc,_0x401bf4={'HJKsI':_0xa4459(0xf3)};console['log'](_0x401bf4[_0xa4459(0x112)],..._0x10a261);}['onGroupBulletinChange'](..._0x4e5a2c){var _0x4aa576=_0x463bdc;console[_0x4aa576(0x104)](_0x4aa576(0x108),..._0x4e5a2c);}[_0x463bdc(0x100)](..._0x33be37){var _0x4fba66=_0x463bdc,_0xd0b033={'zGmkw':_0x4fba66(0xdd)};console['log'](_0xd0b033['zGmkw'],..._0x33be37);}[_0x463bdc(0xd9)](..._0x12da18){var _0x4c1719=_0x463bdc,_0x104aa3={'gvTOj':'onGroupArkInviteStateResult:'};console['log'](_0x104aa3[_0x4c1719(0x103)],..._0x12da18);}[_0x463bdc(0xd8)](..._0x546303){var _0x1ae900=_0x463bdc,_0x232199={'WtYcI':_0x1ae900(0xf5)};console[_0x1ae900(0x104)](_0x232199['WtYcI'],..._0x546303);}[_0x463bdc(0x10b)](..._0x506258){var _0x1d5356=_0x463bdc,_0xf53e2f={'ijXLZ':_0x1d5356(0xf9)};console[_0x1d5356(0x104)](_0xf53e2f['ijXLZ'],..._0x506258);}[_0x463bdc(0xd4)](..._0x1f9e69){var _0x44bd27=_0x463bdc,_0x266085={'guwva':'onGroupDetailInfoChange:'};console[_0x44bd27(0x104)](_0x266085['guwva'],..._0x1f9e69);}[_0x463bdc(0xdb)](..._0x4139da){var _0x4346a2=_0x463bdc,_0x4eb3ea={'HAApI':_0x4346a2(0xd5)};console[_0x4346a2(0x104)](_0x4eb3ea['HAApI'],..._0x4139da);}[_0x463bdc(0x106)](..._0x1667c7){var _0x2e9700=_0x463bdc,_0x3a2efc={'ibAYg':'onGroupFirstBulletinNotify:'};console[_0x2e9700(0x104)](_0x3a2efc['ibAYg'],..._0x1667c7);}['onGroupListUpdate'](..._0x2b7710){var _0x4c529d=_0x463bdc;console[_0x4c529d(0x104)](_0x4c529d(0x107),..._0x2b7710);}[_0x463bdc(0xe9)](..._0x2d0814){var _0x38b14e=_0x463bdc,_0x458547={'NLIRm':_0x38b14e(0xec)};console[_0x38b14e(0x104)](_0x458547['NLIRm'],..._0x2d0814);}['onGroupBulletinRichMediaProgressUpdate'](..._0x59d2b9){var _0x2261ca=_0x463bdc,_0x4046ac={'sHKin':_0x2261ca(0x113)};console['log'](_0x4046ac[_0x2261ca(0xe5)],..._0x59d2b9);}[_0x463bdc(0xe0)](..._0x312b00){var _0x16ad6a=_0x463bdc,_0x1414d9={'kLHai':_0x16ad6a(0x10f)};console[_0x16ad6a(0x104)](_0x1414d9['kLHai'],..._0x312b00);}['onGroupSingleScreenNotifies'](_0x1055c4,_0x369a40,_0x56b53c){var _0x2d6f4b=_0x463bdc,_0x13eb27={'HPyMw':'onGroupSingleScreenNotifies:'};console[_0x2d6f4b(0x104)](_0x13eb27[_0x2d6f4b(0x105)]);}[_0x463bdc(0xf6)](..._0x422d89){var _0x188525=_0x463bdc,_0x246e6f={'ciTjK':_0x188525(0xdc)};console['log'](_0x246e6f[_0x188525(0xdf)],..._0x422d89);}['onGroupStatisticInfoChange'](..._0x3df0c2){var _0x1d96dd=_0x463bdc,_0x571b4c={'EdIBu':_0x1d96dd(0xe3)};console[_0x1d96dd(0x104)](_0x571b4c[_0x1d96dd(0xe4)],..._0x3df0c2);}[_0x463bdc(0xff)](..._0x497a5e){var _0x5e3950=_0x463bdc,_0x10f685={'qUIQY':_0x5e3950(0xf0)};console[_0x5e3950(0x104)](_0x10f685[_0x5e3950(0xeb)],..._0x497a5e);}[_0x463bdc(0xd7)](..._0x3e1d53){var _0x4a1ae8=_0x463bdc,_0x67ccca={'iEcGC':_0x4a1ae8(0xe8)};console[_0x4a1ae8(0x104)](_0x67ccca[_0x4a1ae8(0xea)],..._0x3e1d53);}[_0x463bdc(0xfc)](_0x1c9e7a,_0x28f06c,_0x4c7cc4){var _0x35cfdb=_0x463bdc,_0x461aa1={'HSOQe':'onMemberInfoChange:'};console[_0x35cfdb(0x104)](_0x461aa1[_0x35cfdb(0xfb)],_0x1c9e7a,_0x28f06c,_0x4c7cc4);}[_0x463bdc(0x101)](..._0xa34406){var _0x2daf8c=_0x463bdc,_0x4f53bc={'mQyrI':_0x2daf8c(0x10d)};console[_0x2daf8c(0x104)](_0x4f53bc['mQyrI'],..._0xa34406);}[_0x463bdc(0xfe)](..._0x42522f){var _0x3a0561=_0x463bdc,_0x2874b1={'DmHXB':_0x3a0561(0x10c)};console[_0x3a0561(0x104)](_0x2874b1['DmHXB'],..._0x42522f);}[_0x463bdc(0x111)](..._0x560677){var _0x3bc6d2=_0x463bdc,_0x56f243={'XYSZP':_0x3bc6d2(0xfd)};console[_0x3bc6d2(0x104)](_0x56f243[_0x3bc6d2(0xe1)],..._0x560677);}} \ No newline at end of file +function _0x5c39(){var _0x2d9363=['keeON','onGroupSingleScreenNotifies:','onGroupDetailInfoChange','ZSPWE','onMemberInfoChange:','onGroupFirstBulletinNotify','onGroupBulletinRichMediaDownloadComplete:','onGroupConfMemberChange:','onGroupExtListUpdate:','1417731bsJVyF','onGroupNotifiesUnreadCountUpdated','onGroupExtListUpdate','onShutUpMemberListChanged','onGroupListUpdate','onJoinGroupNoVerifyFlag','onShutUpMemberListChanged:','eVGGZ','onGroupsMsgMaskResult:','538562vCdOwE','onGroupArkInviteStateResult','992950fLuSMY','onMemberListChange','BfIsR','1JNoPvK','onGroupNotifiesUnreadCountUpdated:','gNtRp','KGwed','585415TIcmGU','onGroupDetailInfoChange:','onGroupSingleScreenNotifies','onJoinGroupNoVerifyFlag:','log','onGroupBulletinChange:','JKzYh','onGroupNotifiesUpdated','FGNjl','4464168yuMMKf','onGroupArkInviteStateResult:','onGroupBulletinRichMediaProgressUpdate','onJoinGroupNotify','JzxNL','onGetGroupBulletinListResult','onSearchMemberChange:','onGroupStatisticInfoChange','onGroupListUpdate:','onGroupConfMemberChange','onGroupFirstBulletinNotify:','lRRAh','onGroupsMsgMaskResult','onGroupAllInfoChange:','onJoinGroupNotify:','2066008HtRosd','onSearchMemberChange','onGroupBulletinRemindNotify','onGroupMemberLevelInfoChange','1486752NoLyIF','onGroupAllInfoChange','bqoMf','onMemberInfoChange','onGroupBulletinChange'];_0x5c39=function(){return _0x2d9363;};return _0x5c39();}var _0x295b8b=_0x1947;(function(_0x5502c8,_0x4e86c9){var _0x1eaa9b=_0x1947,_0x4b0474=_0x5502c8();while(!![]){try{var _0x3e2935=parseInt(_0x1eaa9b(0x22d))/0x1*(-parseInt(_0x1eaa9b(0x228))/0x2)+-parseInt(_0x1eaa9b(0x21f))/0x3+parseInt(_0x1eaa9b(0x211))/0x4+-parseInt(_0x1eaa9b(0x1f5))/0x5+parseInt(_0x1eaa9b(0x1fe))/0x6+-parseInt(_0x1eaa9b(0x22a))/0x7+parseInt(_0x1eaa9b(0x20d))/0x8;if(_0x3e2935===_0x4e86c9)break;else _0x4b0474['push'](_0x4b0474['shift']());}catch(_0x512202){_0x4b0474['push'](_0x4b0474['shift']());}}}(_0x5c39,0x5b1b8));function _0x1947(_0x3655f3,_0xda2dfb){var _0x5c3914=_0x5c39();return _0x1947=function(_0x1947b8,_0x1a21a0){_0x1947b8=_0x1947b8-0x1f2;var _0x357551=_0x5c3914[_0x1947b8];return _0x357551;},_0x1947(_0x3655f3,_0xda2dfb);}export class GroupListener{[_0x295b8b(0x210)](..._0x4be48d){}[_0x295b8b(0x203)](..._0xa739a7){}[_0x295b8b(0x212)](..._0xebba42){}[_0x295b8b(0x215)](..._0x276160){}[_0x295b8b(0x20f)](..._0x4e2afe){}[_0x295b8b(0x229)](..._0x131f55){}['onGroupBulletinRichMediaDownloadComplete'](..._0x15d049){}[_0x295b8b(0x207)](..._0x5acd9c){}['onGroupDetailInfoChange'](..._0x4231e5){}[_0x295b8b(0x221)](..._0x3264ab){}['onGroupFirstBulletinNotify'](..._0x47ca15){}[_0x295b8b(0x223)](_0x53597f,_0x140d41){}[_0x295b8b(0x1fc)](_0x5f32c0,_0x2ad518){}['onGroupBulletinRichMediaProgressUpdate'](..._0x45fe7a){}['onGroupNotifiesUnreadCountUpdated'](..._0x5429d8){}[_0x295b8b(0x1f7)](_0x7581cc,_0x585dca,_0x52930d){}[_0x295b8b(0x20a)](..._0x368187){}[_0x295b8b(0x205)](..._0x87f681){}[_0x295b8b(0x201)](..._0x430ded){}[_0x295b8b(0x224)](..._0x35658e){}[_0x295b8b(0x214)](_0x281cfd,_0x2b6a3e,_0x58655e){}[_0x295b8b(0x22b)](_0x387cd1){}[_0x295b8b(0x20e)](..._0x2bdd90){}[_0x295b8b(0x222)](..._0x3feff5){}}export class DebugGroupListener{['onGroupMemberLevelInfoChange'](..._0x54dbe4){var _0x1437ae=_0x295b8b;console[_0x1437ae(0x1f9)]('onGroupMemberLevelInfoChange:',..._0x54dbe4);}[_0x295b8b(0x203)](..._0xc5df80){var _0x261002=_0x295b8b,_0x24cf4d={'lRRAh':'onGetGroupBulletinListResult:'};console[_0x261002(0x1f9)](_0x24cf4d[_0x261002(0x209)],..._0xc5df80);}['onGroupAllInfoChange'](..._0x181ab7){var _0x57376d=_0x295b8b,_0x5afbb1={'eVGGZ':_0x57376d(0x20b)};console[_0x57376d(0x1f9)](_0x5afbb1[_0x57376d(0x226)],..._0x181ab7);}[_0x295b8b(0x215)](..._0x3f03be){var _0x3ecace=_0x295b8b;console[_0x3ecace(0x1f9)](_0x3ecace(0x1fa),..._0x3f03be);}['onGroupBulletinRemindNotify'](..._0x199c2b){var _0x3dd1cf=_0x295b8b,_0x2827dd={'JKzYh':'onGroupBulletinRemindNotify:'};console[_0x3dd1cf(0x1f9)](_0x2827dd[_0x3dd1cf(0x1fb)],..._0x199c2b);}[_0x295b8b(0x229)](..._0x438f2a){var _0x283e9b=_0x295b8b;console['log'](_0x283e9b(0x1ff),..._0x438f2a);}['onGroupBulletinRichMediaDownloadComplete'](..._0x934733){var _0x2de73a=_0x295b8b,_0x1256d1={'bqoMf':_0x2de73a(0x21c)};console[_0x2de73a(0x1f9)](_0x1256d1[_0x2de73a(0x213)],..._0x934733);}[_0x295b8b(0x207)](..._0x55677d){var _0x5849c6=_0x295b8b,_0x575ede={'gNtRp':_0x5849c6(0x21d)};console[_0x5849c6(0x1f9)](_0x575ede[_0x5849c6(0x1f3)],..._0x55677d);}[_0x295b8b(0x218)](..._0x296ca3){var _0xc43df0=_0x295b8b;console[_0xc43df0(0x1f9)](_0xc43df0(0x1f6),..._0x296ca3);}[_0x295b8b(0x221)](..._0x47d047){var _0x4263bf=_0x295b8b,_0x9a60fb={'JzxNL':_0x4263bf(0x21e)};console[_0x4263bf(0x1f9)](_0x9a60fb[_0x4263bf(0x202)],..._0x47d047);}[_0x295b8b(0x21b)](..._0x3f6e16){var _0x455569=_0x295b8b;console['log'](_0x455569(0x208),..._0x3f6e16);}[_0x295b8b(0x223)](..._0x45a757){var _0x3181c0=_0x295b8b,_0x8183cf={'BfIsR':_0x3181c0(0x206)};console[_0x3181c0(0x1f9)](_0x8183cf[_0x3181c0(0x22c)],..._0x45a757);}[_0x295b8b(0x1fc)](..._0x4c9b12){var _0x36af19=_0x295b8b;console[_0x36af19(0x1f9)]('onGroupNotifiesUpdated:',..._0x4c9b12);}[_0x295b8b(0x200)](..._0x802963){var _0x2cda4d=_0x295b8b,_0x317412={'WiVtK':'onGroupBulletinRichMediaProgressUpdate:'};console[_0x2cda4d(0x1f9)](_0x317412['WiVtK'],..._0x802963);}[_0x295b8b(0x220)](..._0x86ae6c){var _0x4b144d=_0x295b8b;console[_0x4b144d(0x1f9)](_0x4b144d(0x1f2),..._0x86ae6c);}[_0x295b8b(0x1f7)](_0x2abe71,_0x286ac7,_0x231f44){var _0x2ea8e8=_0x295b8b,_0x57f6a0={'ZSPWE':_0x2ea8e8(0x217)};console['log'](_0x57f6a0[_0x2ea8e8(0x219)]);}[_0x295b8b(0x20a)](..._0x4a9e8c){var _0x1735c2=_0x295b8b;console[_0x1735c2(0x1f9)](_0x1735c2(0x227),..._0x4a9e8c);}[_0x295b8b(0x205)](..._0x27e630){console['log']('onGroupStatisticInfoChange:',..._0x27e630);}[_0x295b8b(0x201)](..._0x5bd6ca){var _0x56454e=_0x295b8b;console[_0x56454e(0x1f9)](_0x56454e(0x20c),..._0x5bd6ca);}[_0x295b8b(0x224)](..._0x41ca2b){var _0x3d3b4b=_0x295b8b;console[_0x3d3b4b(0x1f9)](_0x3d3b4b(0x1f8),..._0x41ca2b);}[_0x295b8b(0x214)](_0x3b1236,_0x3e65c6,_0x401ff3){var _0x48db1a=_0x295b8b,_0x1d5b18={'keeON':_0x48db1a(0x21a)};console[_0x48db1a(0x1f9)](_0x1d5b18[_0x48db1a(0x216)],_0x3b1236,_0x3e65c6,_0x401ff3);}[_0x295b8b(0x22b)](..._0x57a522){var _0x4331a1=_0x295b8b,_0x4895e4={'FGNjl':'onMemberListChange:'};console[_0x4331a1(0x1f9)](_0x4895e4[_0x4331a1(0x1fd)],..._0x57a522);}['onSearchMemberChange'](..._0x599da7){var _0x5cccc6=_0x295b8b,_0x1587c9={'PSmVQ':_0x5cccc6(0x204)};console[_0x5cccc6(0x1f9)](_0x1587c9['PSmVQ'],..._0x599da7);}[_0x295b8b(0x222)](..._0x4fc8a3){var _0x1b2d8a=_0x295b8b,_0x335f0c={'KGwed':_0x1b2d8a(0x225)};console[_0x1b2d8a(0x1f9)](_0x335f0c[_0x1b2d8a(0x1f4)],..._0x4fc8a3);}} \ 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 d3e63e13..11c2e89c 100644 --- a/src/core.lib/src/listeners/NodeIKernelLoginListener.js +++ b/src/core.lib/src/listeners/NodeIKernelLoginListener.js @@ -1 +1 @@ -function _0x5437(_0x55d46f,_0x5c72c5){var _0x1d1cc=_0x1d1c();return _0x5437=function(_0x54375f,_0x479d8c){_0x54375f=_0x54375f-0xcf;var _0x3dfa85=_0x1d1cc[_0x54375f];return _0x3dfa85;},_0x5437(_0x55d46f,_0x5c72c5);}var _0x12a638=_0x5437;function _0x1d1c(){var _0x5eaef1=['OnConfirmUnusualDeviceFailed','onQRCodeSessionFailed','4jlaohf','onLoginState','onQQLoginNumLimited','onQRCodeSessionQuickLoginFailed','onQRCodeLoginPollingStarted','23424236eeEyNr','onUserLoggedIn','3576432HoiVET','849600GiLsNt','onLogoutSucceed','onQRCodeSessionUserScaned','75830qcHnLy','334COjmCU','onLoginFailed','6810111sUYDbt','8yaNkyT','onLogoutFailed','204kKogSA','3695BHopmR','onLoginDisConnected','6641154WwCeji','onQRCodeGetPicture'];_0x1d1c=function(){return _0x5eaef1;};return _0x1d1c();}(function(_0x570e69,_0x166fe9){var _0x5e79b4=_0x5437,_0x1fc70c=_0x570e69();while(!![]){try{var _0x5c18ea=-parseInt(_0x5e79b4(0xd8))/0x1*(parseInt(_0x5e79b4(0xd2))/0x2)+-parseInt(_0x5e79b4(0xe5))/0x3*(parseInt(_0x5e79b4(0xde))/0x4)+parseInt(_0x5e79b4(0xd1))/0x5*(parseInt(_0x5e79b4(0xd7))/0x6)+-parseInt(_0x5e79b4(0xd4))/0x7+-parseInt(_0x5e79b4(0xd5))/0x8*(-parseInt(_0x5e79b4(0xda))/0x9)+parseInt(_0x5e79b4(0xe6))/0xa+parseInt(_0x5e79b4(0xe3))/0xb;if(_0x5c18ea===_0x166fe9)break;else _0x1fc70c['push'](_0x1fc70c['shift']());}catch(_0x5a3087){_0x1fc70c['push'](_0x1fc70c['shift']());}}}(_0x1d1c,0xa7750));export class LoginListener{['onLoginConnected'](..._0x1b8255){}[_0x12a638(0xd9)](..._0x565433){}['onLoginConnecting'](..._0x3f2ef1){}[_0x12a638(0xdb)](_0x2c6477){}[_0x12a638(0xe2)](..._0x12772f){}[_0x12a638(0xd0)](..._0x1c4d81){}['onQRCodeLoginSucceed'](_0x9d27f9){}[_0x12a638(0xdd)](..._0x353b9e){}[_0x12a638(0xd3)](..._0x228e4f){}[_0x12a638(0xcf)](..._0x38ce50){}[_0x12a638(0xd6)](..._0x56181d){}[_0x12a638(0xe4)](..._0x4ccae0){}[_0x12a638(0xe1)](..._0xe642c6){}['onPasswordLoginFailed'](..._0x18bade){}[_0x12a638(0xdc)](..._0x2110f9){}[_0x12a638(0xe0)](..._0x2826bc){}[_0x12a638(0xdf)](..._0x576cfc){}} \ No newline at end of file +function _0x43d4(_0x49190c,_0x5b089b){var _0xeb2467=_0xeb24();return _0x43d4=function(_0x43d41e,_0x1f51cf){_0x43d41e=_0x43d41e-0x13e;var _0x41df47=_0xeb2467[_0x43d41e];return _0x41df47;},_0x43d4(_0x49190c,_0x5b089b);}var _0x5408f1=_0x43d4;(function(_0x51d8ce,_0x38f665){var _0x48d175=_0x43d4,_0x19ab41=_0x51d8ce();while(!![]){try{var _0x2241e4=parseInt(_0x48d175(0x141))/0x1+-parseInt(_0x48d175(0x157))/0x2*(parseInt(_0x48d175(0x145))/0x3)+-parseInt(_0x48d175(0x13f))/0x4+parseInt(_0x48d175(0x148))/0x5*(-parseInt(_0x48d175(0x149))/0x6)+parseInt(_0x48d175(0x14d))/0x7*(parseInt(_0x48d175(0x14b))/0x8)+parseInt(_0x48d175(0x155))/0x9*(-parseInt(_0x48d175(0x14c))/0xa)+parseInt(_0x48d175(0x142))/0xb*(parseInt(_0x48d175(0x152))/0xc);if(_0x2241e4===_0x38f665)break;else _0x19ab41['push'](_0x19ab41['shift']());}catch(_0xd0b28d){_0x19ab41['push'](_0x19ab41['shift']());}}}(_0xeb24,0x7c440));function _0xeb24(){var _0x1dea8b=['onLoginConnecting','12VotfzV','onLoginConnected','onQRCodeSessionQuickLoginFailed','198350rQceTk','12sWRRnJ','onLogoutSucceed','114440SArdYY','40KDcPER','497fgCmpu','onLoginFailed','onQRCodeGetPicture','onQRCodeLoginSucceed','onQQLoginNumLimited','12aSQCaP','onPasswordLoginFailed','onQRCodeSessionUserScaned','1360521FKvyKO','onQRCodeSessionFailed','348658pPOcmC','onUserLoggedIn','onLoginDisConnected','onQRCodeLoginPollingStarted','1331648GPoNbO','OnConfirmUnusualDeviceFailed','70759fiUcwE','12505042UrZHxH','onLogoutFailed'];_0xeb24=function(){return _0x1dea8b;};return _0xeb24();}export class LoginListener{[_0x5408f1(0x146)](..._0xbbb5b1){}[_0x5408f1(0x159)](..._0x383e6d){}[_0x5408f1(0x144)](..._0x552725){}[_0x5408f1(0x14f)](_0x53d26d){}[_0x5408f1(0x13e)](..._0x37330e){}[_0x5408f1(0x154)](..._0x167edb){}[_0x5408f1(0x150)](_0x434d07){}[_0x5408f1(0x156)](..._0x43d0c4){}[_0x5408f1(0x14e)](..._0x14b7e8){}[_0x5408f1(0x14a)](..._0x244eed){}[_0x5408f1(0x143)](..._0x404746){}[_0x5408f1(0x158)](..._0x707183){}[_0x5408f1(0x147)](..._0x4f4518){}[_0x5408f1(0x153)](..._0x2d747d){}[_0x5408f1(0x140)](..._0x4a0cb0){}[_0x5408f1(0x151)](..._0x1a1de0){}['onLoginState'](..._0x4f3719){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelMsgListener.d.ts b/src/core.lib/src/listeners/NodeIKernelMsgListener.d.ts index 1d128fc2..b69bc92d 100644 --- a/src/core.lib/src/listeners/NodeIKernelMsgListener.d.ts +++ b/src/core.lib/src/listeners/NodeIKernelMsgListener.d.ts @@ -21,6 +21,16 @@ export interface OnRichMediaDownloadCompleteParams { userTotalSpacePerDay: unknown | null; userUsedSpacePerDay: unknown | null; } +export interface onGroupFileInfoUpdateParamType { + retCode: number; + retMsg: string; + clientWording: string; + isEnd: boolean; + item: Array; + allFileCount: string; + nextIndex: string; + reqId: string; +} export interface IKernelMsgListener { onAddSendMsg(msgRecord: RawMessage): void; onBroadcastHelperDownloadComplete(broadcastHelperTransNotifyInfo: unknown): void; @@ -37,7 +47,7 @@ export interface IKernelMsgListener { onFirstViewGroupGuildMapping(arrayList: unknown): void; onGrabPasswordRedBag(i2: unknown, str: unknown, i3: unknown, recvdOrder: unknown, msgRecord: unknown): void; onGroupFileInfoAdd(groupItem: unknown): void; - onGroupFileInfoUpdate(groupFileListResult: unknown): void; + onGroupFileInfoUpdate(groupFileListResult: onGroupFileInfoUpdateParamType): void; onGroupGuildUpdate(groupGuildNotifyInfo: unknown): void; onGroupTransferInfoAdd(groupItem: unknown): void; onGroupTransferInfoUpdate(groupFileListResult: unknown): void; @@ -111,7 +121,7 @@ export declare class MsgListener implements IKernelMsgListener { onFirstViewGroupGuildMapping(arrayList: unknown): void; onGrabPasswordRedBag(i2: unknown, str: unknown, i3: unknown, recvdOrder: unknown, msgRecord: unknown): void; onGroupFileInfoAdd(groupItem: unknown): void; - onGroupFileInfoUpdate(groupFileListResult: unknown): void; + onGroupFileInfoUpdate(groupFileListResult: onGroupFileInfoUpdateParamType): void; onGroupGuildUpdate(groupGuildNotifyInfo: unknown): void; onGroupTransferInfoAdd(groupItem: unknown): void; onGroupTransferInfoUpdate(groupFileListResult: unknown): void; diff --git a/src/core.lib/src/listeners/NodeIKernelMsgListener.js b/src/core.lib/src/listeners/NodeIKernelMsgListener.js index 1bda9147..169d7703 100644 --- a/src/core.lib/src/listeners/NodeIKernelMsgListener.js +++ b/src/core.lib/src/listeners/NodeIKernelMsgListener.js @@ -1 +1 @@ -var _0x40b1fb=_0x50cf;function _0x3741(){var _0x33ad4a=['27221607HZERAk','onNtFirstViewMsgSyncEnd','onKickedOffLine','onMsgSecurityNotify','onContactUnreadCntUpdate','onGroupFileInfoAdd','onMsgInfoListUpdate','onFirstViewGroupGuildMapping','onRecvMsg','26975sBUTLh','onMsgInfoListAdd','onHitCsRelatedEmojiResult','onRichMediaDownloadComplete','577836msOXhW','onRecvUDCFlag','6671770KWItwC','onFeedEventUpdate','onBroadcastHelperProgerssUpdate','onlineStatusSmallIconDownloadPush','onFirstViewDirectMsgUpdate','onLineDev','onGuildInteractiveUpdate','onUserTabStatusChanged','onRecvGroupGuildFlag','onBroadcastHelperDownloadComplete','onHitEmojiKeywordResult','onGroupGuildUpdate','onSendMsgError','onRedTouchChanged','onGroupTransferInfoAdd','onMsgAbstractUpdate','onUserOnlineStatusChanged','onMsgSettingUpdate','onlineStatusBigIconDownloadPush','2541904whaaVP','onMsgDelete','364318aePIVO','onGrabPasswordRedBag','onGuildMsgAbFlagChanged','onMsgBoxChanged','onNtMsgSyncStart','onDraftUpdate','onMsgWithRichLinkInfoUpdate','onGroupFileInfoUpdate','onChannelFreqLimitInfoUpdate','onUnreadCntAfterFirstView','onCustomWithdrawConfigUpdate','822okGJXE','10kgzyuR','onHitRelatedEmojiResult','onGuildNotificationAbstractUpdate','3569256DQSNOF','onRecvMsgSvrRspTransInfo','onUnreadCntUpdate','onInputStatusPush','onEmojiResourceUpdate','3yYqIUP','onGroupTransferInfoUpdate','onBroadcastHelperProgressUpdate','onFileMsgCome','onTempChatInfoUpdate','onMsgQRCodeStatusChanged'];_0x3741=function(){return _0x33ad4a;};return _0x3741();}function _0x50cf(_0x2dc981,_0x4235c8){var _0x374146=_0x3741();return _0x50cf=function(_0x50cfea,_0x23ebd7){_0x50cfea=_0x50cfea-0x126;var _0x19c6b5=_0x374146[_0x50cfea];return _0x19c6b5;},_0x50cf(_0x2dc981,_0x4235c8);}(function(_0x488d8e,_0x8f4503){var _0x10da64=_0x50cf,_0x311f7c=_0x488d8e();while(!![]){try{var _0x4b986b=parseInt(_0x10da64(0x14d))/0x1+parseInt(_0x10da64(0x126))/0x2*(parseInt(_0x10da64(0x13a))/0x3)+parseInt(_0x10da64(0x162))/0x4+parseInt(_0x10da64(0x149))/0x5*(parseInt(_0x10da64(0x131))/0x6)+parseInt(_0x10da64(0x14f))/0x7+parseInt(_0x10da64(0x135))/0x8+parseInt(_0x10da64(0x140))/0x9*(-parseInt(_0x10da64(0x132))/0xa);if(_0x4b986b===_0x8f4503)break;else _0x311f7c['push'](_0x311f7c['shift']());}catch(_0x14a21d){_0x311f7c['push'](_0x311f7c['shift']());}}}(_0x3741,0x7c52e));export class MsgListener{['onAddSendMsg'](_0x208a68){}[_0x40b1fb(0x158)](_0x226581){}[_0x40b1fb(0x13c)](_0x2e6acc){}[_0x40b1fb(0x12e)](_0x5bf6bc,_0x259f66,_0x1b62ef){}[_0x40b1fb(0x144)](_0x3cf956){}[_0x40b1fb(0x130)](_0x51bb4d){}[_0x40b1fb(0x12b)](_0x325a85,_0x47bd6c,_0x56381c){}['onEmojiDownloadComplete'](_0x2be2d6){}[_0x40b1fb(0x139)](_0x52768b){}[_0x40b1fb(0x150)](_0x2f83b1){}[_0x40b1fb(0x13d)](_0x5e5802){}[_0x40b1fb(0x153)](_0x35afb5){}[_0x40b1fb(0x147)](_0x283496){}[_0x40b1fb(0x127)](_0x3d3f59,_0x13f166,_0x1387ab,_0x53a49a,_0x1ddd90){}[_0x40b1fb(0x145)](_0x59cac1){}[_0x40b1fb(0x12d)](_0x192a8d){}[_0x40b1fb(0x15a)](_0x1cc22b){}[_0x40b1fb(0x15d)](_0x5d1707){}[_0x40b1fb(0x13b)](_0x2b5bdc){}[_0x40b1fb(0x155)](_0x373967){}[_0x40b1fb(0x128)](_0x52ecb0){}[_0x40b1fb(0x134)](_0x213100){}[_0x40b1fb(0x14b)](_0x4f1380){}[_0x40b1fb(0x159)](_0x26191a){}[_0x40b1fb(0x133)](_0x2282a3){}['onImportOldDbProgressUpdate'](_0x28f878){}[_0x40b1fb(0x138)](_0x2e2e61){}[_0x40b1fb(0x142)](_0x392af3){}[_0x40b1fb(0x154)](_0x182339){}['onLogLevelChanged'](_0x2ea768){}[_0x40b1fb(0x15e)](_0x2d753c){}[_0x40b1fb(0x129)](_0x36ce75){}[_0x40b1fb(0x163)](_0x23601b,_0x3c6e0f){}['onMsgEventListUpdate'](_0x1810b3){}[_0x40b1fb(0x14a)](_0x46db13){}[_0x40b1fb(0x146)](_0x34741f){}[_0x40b1fb(0x13f)](_0x51dddf){}['onMsgRecall'](_0x15a75d,_0x3eb8ad,_0x23a2b3){}[_0x40b1fb(0x143)](_0x35a76e){}[_0x40b1fb(0x160)](_0x343254){}[_0x40b1fb(0x141)](){}['onNtMsgSyncEnd'](){}[_0x40b1fb(0x12a)](){}['onReadFeedEventUpdate'](_0xb9a232){}[_0x40b1fb(0x157)](_0x54271d){}[_0x40b1fb(0x148)](_0x4a190b){}[_0x40b1fb(0x136)](_0x753216,_0x292545,_0x44d066,_0x58f626,_0x35b346,_0x1e19d0){}['onRecvOnlineFileMsg'](_0x2b39e3){}['onRecvS2CMsg'](_0x5155c6){}['onRecvSysMsg'](_0x258bdb){}[_0x40b1fb(0x14e)](_0x301a89){}[_0x40b1fb(0x14c)](_0x1bc8b8){}['onRichMediaProgerssUpdate'](_0x58cfaf){}['onRichMediaUploadComplete'](_0x5cd6d4){}['onSearchGroupFileInfoUpdate'](_0x5b7f91){}[_0x40b1fb(0x15b)](_0x55f4e7,_0x29b4b0,_0x417233,_0x5c59cb){}['onSysMsgNotification'](_0x5bb6d1,_0x1c6785,_0x36ca3c,_0x49b8e7){}[_0x40b1fb(0x13e)](_0x2b7204){}[_0x40b1fb(0x12f)](_0x512891){}[_0x40b1fb(0x137)](_0x531c66){}['onUserChannelTabStatusChanged'](_0x479fdb){}[_0x40b1fb(0x15f)](_0x2a942e){}[_0x40b1fb(0x156)](_0x5436ed){}[_0x40b1fb(0x161)](_0x23f0ef,_0x4c4eb5,_0x6d5c1e){}[_0x40b1fb(0x152)](_0x21dd6c,_0x13f541,_0x69f8cc){}['onUserSecQualityChanged'](..._0x49d73b){}[_0x40b1fb(0x12c)](..._0x18f805){}[_0x40b1fb(0x15c)](..._0x148f5e){}[_0x40b1fb(0x151)](..._0x4072d1){}} \ No newline at end of file +function _0xf6f1(_0x4f88c1,_0x2f8dfe){var _0x2c3f8f=_0x2c3f();return _0xf6f1=function(_0xf6f12c,_0x38820f){_0xf6f12c=_0xf6f12c-0xd4;var _0x4b933f=_0x2c3f8f[_0xf6f12c];return _0x4b933f;},_0xf6f1(_0x4f88c1,_0x2f8dfe);}var _0x8126cc=_0xf6f1;(function(_0x2d5ffb,_0xc20257){var _0x25623b=_0xf6f1,_0xe22769=_0x2d5ffb();while(!![]){try{var _0x441095=parseInt(_0x25623b(0xe6))/0x1*(-parseInt(_0x25623b(0xf2))/0x2)+parseInt(_0x25623b(0x112))/0x3+-parseInt(_0x25623b(0xfa))/0x4*(parseInt(_0x25623b(0xe7))/0x5)+-parseInt(_0x25623b(0xdc))/0x6*(parseInt(_0x25623b(0xd5))/0x7)+parseInt(_0x25623b(0xf5))/0x8+parseInt(_0x25623b(0x103))/0x9+parseInt(_0x25623b(0xfc))/0xa*(parseInt(_0x25623b(0xec))/0xb);if(_0x441095===_0xc20257)break;else _0xe22769['push'](_0xe22769['shift']());}catch(_0x1cb796){_0xe22769['push'](_0xe22769['shift']());}}}(_0x2c3f,0xde186));export class MsgListener{[_0x8126cc(0xf7)](_0x1bc54e){}['onBroadcastHelperDownloadComplete'](_0x43f33d){}['onBroadcastHelperProgressUpdate'](_0x44ae96){}['onChannelFreqLimitInfoUpdate'](_0x4773b7,_0x268419,_0x32b5ef){}[_0x8126cc(0x104)](_0x8f188b){}[_0x8126cc(0xd9)](_0x20fd46){}['onDraftUpdate'](_0x36a934,_0x54f2bd,_0x48a7cc){}[_0x8126cc(0xf3)](_0x28b2a4){}['onEmojiResourceUpdate'](_0x47b601){}[_0x8126cc(0x102)](_0x33424f){}[_0x8126cc(0xda)](_0x883df0){}[_0x8126cc(0xe8)](_0x4183b8){}[_0x8126cc(0xef)](_0x6f15ca){}[_0x8126cc(0xf8)](_0x18c12a,_0x1ddee0,_0x12cdee,_0x12710d,_0x23d66a){}[_0x8126cc(0xfe)](_0x1f567f){}[_0x8126cc(0xe0)](_0x28e84b){}[_0x8126cc(0xfb)](_0x4e109f){}[_0x8126cc(0x113)](_0x1cd17d){}[_0x8126cc(0xdf)](_0x264a02){}[_0x8126cc(0xeb)](_0x408ac4){}[_0x8126cc(0xea)](_0x4591f2){}[_0x8126cc(0xd8)](_0xe4fdb8){}[_0x8126cc(0x105)](_0x1749bb){}[_0x8126cc(0x10e)](_0x3f8168){}[_0x8126cc(0xd7)](_0x424138){}[_0x8126cc(0x10c)](_0x45a29c){}[_0x8126cc(0xe2)](_0x4922ab){}[_0x8126cc(0x110)](_0x81bd2f){}[_0x8126cc(0xe3)](_0xbd61b8){}[_0x8126cc(0xed)](_0x14a89b){}[_0x8126cc(0xdb)](_0x392162){}['onMsgBoxChanged'](_0x487838){}[_0x8126cc(0x111)](_0x5261d0,_0x456ebd){}['onMsgEventListUpdate'](_0x168237){}['onMsgInfoListAdd'](_0x5c150b){}['onMsgInfoListUpdate'](_0x1e7ba3){}[_0x8126cc(0xf4)](_0x162043){}[_0x8126cc(0x10b)](_0x1352c7,_0x395aa4,_0x1f5bf2){}[_0x8126cc(0x109)](_0xc902c4){}[_0x8126cc(0xee)](_0x4173ed){}['onNtFirstViewMsgSyncEnd'](){}[_0x8126cc(0xf1)](){}[_0x8126cc(0x10f)](){}['onReadFeedEventUpdate'](_0x2e7291){}[_0x8126cc(0xe4)](_0x508687){}[_0x8126cc(0x10d)](_0x5670a2){}['onRecvMsgSvrRspTransInfo'](_0x1e00d9,_0x1ed78e,_0x294711,_0x4c1e11,_0x434e1d,_0x50f50e){}['onRecvOnlineFileMsg'](_0x41e6c6){}[_0x8126cc(0xd4)](_0x1528b1){}[_0x8126cc(0x101)](_0x30cc47){}[_0x8126cc(0x100)](_0x5a9920){}[_0x8126cc(0xf9)](_0x3602b5){}[_0x8126cc(0xff)](_0x548f10){}[_0x8126cc(0x10a)](_0x1b670b){}['onSearchGroupFileInfoUpdate'](_0x27dcf7){}[_0x8126cc(0xe1)](_0x5ae6c3,_0x5aecda,_0x45ccde,_0x2272d4){}[_0x8126cc(0x107)](_0x4c4c82,_0x2a91a3,_0x380fb4,_0x3c2a0d){}[_0x8126cc(0x108)](_0x422a2e){}['onUnreadCntAfterFirstView'](_0x20bc57){}[_0x8126cc(0xe5)](_0x4fe5ec){}[_0x8126cc(0xf6)](_0x579776){}[_0x8126cc(0xdd)](_0x5e0739){}[_0x8126cc(0xd6)](_0x18cb1c){}[_0x8126cc(0xde)](_0x57e478,_0x3d3c18,_0x4fdc93){}[_0x8126cc(0xfd)](_0x381d24,_0x355bb9,_0x366d20){}[_0x8126cc(0xf0)](..._0x16222d){}['onMsgWithRichLinkInfoUpdate'](..._0xe6fec9){}[_0x8126cc(0xe9)](..._0x44fe43){}[_0x8126cc(0x106)](..._0xc14fa5){}}function _0x2c3f(){var _0x2342fc=['14BWlzCu','onUserTabStatusChanged','onHitRelatedEmojiResult','onGuildNotificationAbstractUpdate','onCustomWithdrawConfigUpdate','onFileMsgCome','onMsgAbstractUpdate','2332758EuVBQJ','onUserOnlineStatusChanged','onlineStatusBigIconDownloadPush','onGroupTransferInfoUpdate','onGroupFileInfoUpdate','onSendMsgError','onInputStatusPush','onLineDev','onRecvGroupGuildFlag','onUnreadCntUpdate','1571OjKSIl','1259485cuMsAW','onFirstViewDirectMsgUpdate','onRedTouchChanged','onGuildMsgAbFlagChanged','onGuildInteractiveUpdate','22dIJfYB','onLogLevelChanged','onMsgSettingUpdate','onFirstViewGroupGuildMapping','onUserSecQualityChanged','onNtMsgSyncEnd','10mdDrng','onEmojiDownloadComplete','onMsgQRCodeStatusChanged','8186136ZmfSRw','onUserChannelTabStatusChanged','onAddSendMsg','onGrabPasswordRedBag','onRichMediaDownloadComplete','24ApHtgp','onGroupGuildUpdate','5051370VbWClb','onlineStatusSmallIconDownloadPush','onGroupFileInfoAdd','onRichMediaProgerssUpdate','onRecvUDCFlag','onRecvSysMsg','onFeedEventUpdate','8781966AZGgnp','onContactUnreadCntUpdate','onHitCsRelatedEmojiResult','onBroadcastHelperProgerssUpdate','onSysMsgNotification','onTempChatInfoUpdate','onMsgSecurityNotify','onRichMediaUploadComplete','onMsgRecall','onImportOldDbProgressUpdate','onRecvMsg','onHitEmojiKeywordResult','onNtMsgSyncStart','onKickedOffLine','onMsgDelete','591630nipDyr','onGroupTransferInfoAdd','onRecvS2CMsg'];_0x2c3f=function(){return _0x2342fc;};return _0x2c3f();} \ 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 b7f65769..4007092f 100644 --- a/src/core.lib/src/listeners/NodeIKernelProfileListener.js +++ b/src/core.lib/src/listeners/NodeIKernelProfileListener.js @@ -1 +1 @@ -function _0x4589(_0xcb2e02,_0x27d3ff){var _0x59a506=_0x59a5();return _0x4589=function(_0x4589f3,_0x570bf8){_0x4589f3=_0x4589f3-0x189;var _0x2e9fe9=_0x59a506[_0x4589f3];return _0x2e9fe9;},_0x4589(_0xcb2e02,_0x27d3ff);}var _0x29ae63=_0x4589;function _0x59a5(){var _0x3df54b=['3354995ngsqzS','11fahPij','1683070RCrSrU','25408NmHwDY','1918900rRZetI','99tsZQmM','467565RWFSIg','onStrangerRemarkChanged','onStatusUpdate','15TfrFdu','1629tSYkaC','onProfileDetailInfoChanged','onSelfStatusChanged','1894qFmOMN','518748bAbXEF'];_0x59a5=function(){return _0x3df54b;};return _0x59a5();}(function(_0x41ffca,_0x59eb87){var _0x326562=_0x4589,_0x19a62f=_0x41ffca();while(!![]){try{var _0x28f699=parseInt(_0x326562(0x18e))/0x1+parseInt(_0x326562(0x195))/0x2*(-parseInt(_0x326562(0x18d))/0x3)+-parseInt(_0x326562(0x18c))/0x4+-parseInt(_0x326562(0x191))/0x5*(-parseInt(_0x326562(0x196))/0x6)+parseInt(_0x326562(0x197))/0x7+-parseInt(_0x326562(0x18b))/0x8*(parseInt(_0x326562(0x192))/0x9)+parseInt(_0x326562(0x18a))/0xa*(parseInt(_0x326562(0x189))/0xb);if(_0x28f699===_0x59eb87)break;else _0x19a62f['push'](_0x19a62f['shift']());}catch(_0x54c294){_0x19a62f['push'](_0x19a62f['shift']());}}}(_0x59a5,0x467bb));export class ProfileListener{['onProfileSimpleChanged'](..._0x81dff9){}[_0x29ae63(0x193)](_0x2a93f7){}[_0x29ae63(0x190)](..._0x2a47f6){}[_0x29ae63(0x194)](..._0x4d3b05){}[_0x29ae63(0x18f)](..._0x28118e){}} \ No newline at end of file +var _0x16f1d8=_0x217d;(function(_0x371222,_0x3acc28){var _0x4188f8=_0x217d,_0x4b3056=_0x371222();while(!![]){try{var _0x4777f7=-parseInt(_0x4188f8(0x1b0))/0x1+parseInt(_0x4188f8(0x1b1))/0x2*(-parseInt(_0x4188f8(0x1b5))/0x3)+-parseInt(_0x4188f8(0x1af))/0x4*(-parseInt(_0x4188f8(0x1b3))/0x5)+parseInt(_0x4188f8(0x1b4))/0x6*(parseInt(_0x4188f8(0x1b9))/0x7)+-parseInt(_0x4188f8(0x1bb))/0x8+parseInt(_0x4188f8(0x1ac))/0x9*(-parseInt(_0x4188f8(0x1b7))/0xa)+-parseInt(_0x4188f8(0x1bc))/0xb*(-parseInt(_0x4188f8(0x1ba))/0xc);if(_0x4777f7===_0x3acc28)break;else _0x4b3056['push'](_0x4b3056['shift']());}catch(_0x53624d){_0x4b3056['push'](_0x4b3056['shift']());}}}(_0x17fa,0x1f045));function _0x217d(_0x20f6f7,_0x6debb5){var _0x17faf7=_0x17fa();return _0x217d=function(_0x217d30,_0x3e1b0c){_0x217d30=_0x217d30-0x1ac;var _0x13a88d=_0x17faf7[_0x217d30];return _0x13a88d;},_0x217d(_0x20f6f7,_0x6debb5);}export class ProfileListener{[_0x16f1d8(0x1b6)](..._0x3359b7){}[_0x16f1d8(0x1ad)](_0xef7218){}[_0x16f1d8(0x1b2)](..._0x3c93b6){}[_0x16f1d8(0x1ae)](..._0x4028fd){}[_0x16f1d8(0x1b8)](..._0x51bc8a){}}function _0x17fa(){var _0x2173cf=['onProfileSimpleChanged','250evxcRz','onStrangerRemarkChanged','5719rYjbtP','7944JdjCaE','455400fHmIWz','2189vHEJLB','45225VaIFfs','onProfileDetailInfoChanged','onSelfStatusChanged','164aoupth','29243gigTaq','17014NnYCJx','onStatusUpdate','19080ItJlOi','1434FFXDGn','51DhxKSc'];_0x17fa=function(){return _0x2173cf;};return _0x17fa();} \ 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 6014085b..a50e8804 100644 --- a/src/core.lib/src/listeners/NodeIKernelRobotListener.js +++ b/src/core.lib/src/listeners/NodeIKernelRobotListener.js @@ -1 +1 @@ -function _0x3dfe(_0x3423ae,_0x15d349){var _0x1e4fb1=_0x1e4f();return _0x3dfe=function(_0x3dfeb2,_0x31a492){_0x3dfeb2=_0x3dfeb2-0x6c;var _0x448bf3=_0x1e4fb1[_0x3dfeb2];return _0x448bf3;},_0x3dfe(_0x3423ae,_0x15d349);}var _0x248688=_0x3dfe;(function(_0x27aeb9,_0x4d2834){var _0x2bb9e6=_0x3dfe,_0x17d95c=_0x27aeb9();while(!![]){try{var _0x148754=parseInt(_0x2bb9e6(0x77))/0x1+parseInt(_0x2bb9e6(0x78))/0x2*(parseInt(_0x2bb9e6(0x73))/0x3)+parseInt(_0x2bb9e6(0x70))/0x4*(-parseInt(_0x2bb9e6(0x74))/0x5)+-parseInt(_0x2bb9e6(0x75))/0x6+parseInt(_0x2bb9e6(0x6e))/0x7+-parseInt(_0x2bb9e6(0x72))/0x8+-parseInt(_0x2bb9e6(0x6f))/0x9*(parseInt(_0x2bb9e6(0x71))/0xa);if(_0x148754===_0x4d2834)break;else _0x17d95c['push'](_0x17d95c['shift']());}catch(_0x26d777){_0x17d95c['push'](_0x17d95c['shift']());}}}(_0x1e4f,0xdf070));export class KernelRobotListener{[_0x248688(0x6c)](..._0x5f48d0){}[_0x248688(0x6d)](..._0x334b84){}[_0x248688(0x76)](..._0x43153c){}}function _0x1e4f(){var _0x472562=['12eWZJht','onRobotFriendListChanged','onRobotListChanged','4527523rpQypI','5321439WpWDBd','4TbaJCP','20lRYaKR','6235088vvxWcg','771018zmOcZv','261430YlhFbq','1845564rWgubO','onRobotProfileChanged','1046503SGnpPK'];_0x1e4f=function(){return _0x472562;};return _0x1e4f();} \ No newline at end of file +var _0x49e93f=_0x1601;function _0x1601(_0x32b17a,_0x17d5dc){var _0x348249=_0x3482();return _0x1601=function(_0x16018c,_0x2c4326){_0x16018c=_0x16018c-0xba;var _0x54c3a9=_0x348249[_0x16018c];return _0x54c3a9;},_0x1601(_0x32b17a,_0x17d5dc);}function _0x3482(){var _0x3ec35a=['89618JrjWbW','30460RdwxPS','onRobotListChanged','4nbbxBU','3478590APNIjP','onRobotFriendListChanged','4176720ikfMwU','onRobotProfileChanged','2277bVDHnF','17OrYsxD','8638782TjrUvC','138325KkGVRO','8858577LhvEWV'];_0x3482=function(){return _0x3ec35a;};return _0x3482();}(function(_0x451b2b,_0x36e02e){var _0x31e82a=_0x1601,_0x2b101c=_0x451b2b();while(!![]){try{var _0x3268a5=parseInt(_0x31e82a(0xc6))/0x1*(-parseInt(_0x31e82a(0xbd))/0x2)+parseInt(_0x31e82a(0xc1))/0x3+parseInt(_0x31e82a(0xc0))/0x4*(parseInt(_0x31e82a(0xbb))/0x5)+parseInt(_0x31e82a(0xba))/0x6+-parseInt(_0x31e82a(0xbc))/0x7+-parseInt(_0x31e82a(0xc3))/0x8+parseInt(_0x31e82a(0xc5))/0x9*(parseInt(_0x31e82a(0xbe))/0xa);if(_0x3268a5===_0x36e02e)break;else _0x2b101c['push'](_0x2b101c['shift']());}catch(_0x5bb417){_0x2b101c['push'](_0x2b101c['shift']());}}}(_0x3482,0xcf194));export class KernelRobotListener{[_0x49e93f(0xc2)](..._0x581158){}[_0x49e93f(0xbf)](..._0x3e323b){}[_0x49e93f(0xc4)](..._0x1bdfe0){}} \ 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 983ca7da..6d49e421 100644 --- a/src/core.lib/src/listeners/NodeIKernelSessionListener.js +++ b/src/core.lib/src/listeners/NodeIKernelSessionListener.js @@ -1 +1 @@ -function _0x2b6e(){var _0x36f4e9=['14885vSvWHR','2360792rqZTeb','onOpentelemetryInit','41835TaUski','22IieVEU','7898946ByeLvN','628hXZJmx','8430611TIpzHV','onUserOnlineResult','259566JLBfDG','4474116EgRGBk'];_0x2b6e=function(){return _0x36f4e9;};return _0x2b6e();}var _0x56f120=_0x1cd7;(function(_0x37cdcf,_0x27a257){var _0x1e1117=_0x1cd7,_0x1e4ff7=_0x37cdcf();while(!![]){try{var _0x1f5e7e=-parseInt(_0x1e1117(0x14c))/0x1*(parseInt(_0x1e1117(0x150))/0x2)+-parseInt(_0x1e1117(0x14a))/0x3+parseInt(_0x1e1117(0x147))/0x4*(-parseInt(_0x1e1117(0x14f))/0x5)+parseInt(_0x1e1117(0x146))/0x6+parseInt(_0x1e1117(0x148))/0x7+parseInt(_0x1e1117(0x14d))/0x8+-parseInt(_0x1e1117(0x14b))/0x9;if(_0x1f5e7e===_0x27a257)break;else _0x1e4ff7['push'](_0x1e4ff7['shift']());}catch(_0x3a7b4b){_0x1e4ff7['push'](_0x1e4ff7['shift']());}}}(_0x2b6e,0xb8513));function _0x1cd7(_0x38e71d,_0x1c97e4){var _0x2b6e5d=_0x2b6e();return _0x1cd7=function(_0x1cd779,_0x2cefc8){_0x1cd779=_0x1cd779-0x146;var _0x4fe299=_0x2b6e5d[_0x1cd779];return _0x4fe299;},_0x1cd7(_0x38e71d,_0x1c97e4);}export class SessionListener{['onNTSessionCreate'](_0x4bb925){}['onGProSessionCreate'](_0xe6f303){}['onSessionInitComplete'](_0x2b0717){}[_0x56f120(0x14e)](_0x5b36a6){}[_0x56f120(0x149)](_0x47be5d){}['onGetSelfTinyId'](_0x173f9e){}} \ No newline at end of file +function _0x1c79(){var _0x471f43=['3138773NJTqkF','onOpentelemetryInit','60RLEzRG','onNTSessionCreate','9524VaBmic','849rxGLtV','108ZuerYg','145fmVbQc','27LXibhd','onUserOnlineResult','232196iOSAXm','1858426RjpYPc','5738170mYjGmU','onSessionInitComplete','onGProSessionCreate','631113YzDQGx','1601112KfBKPC'];_0x1c79=function(){return _0x471f43;};return _0x1c79();}function _0x3eb2(_0x3b9cac,_0xa54df9){var _0x1c7961=_0x1c79();return _0x3eb2=function(_0x3eb21e,_0x45f9f0){_0x3eb21e=_0x3eb21e-0xb1;var _0x7032da=_0x1c7961[_0x3eb21e];return _0x7032da;},_0x3eb2(_0x3b9cac,_0xa54df9);}var _0x576ccc=_0x3eb2;(function(_0x3848c1,_0x55c1c3){var _0x2ba13b=_0x3eb2,_0x1afd69=_0x3848c1();while(!![]){try{var _0x17ac55=parseInt(_0x2ba13b(0xb5))/0x1+-parseInt(_0x2ba13b(0xbf))/0x2*(parseInt(_0x2ba13b(0xc0))/0x3)+parseInt(_0x2ba13b(0xb4))/0x4*(-parseInt(_0x2ba13b(0xb1))/0x5)+-parseInt(_0x2ba13b(0xc1))/0x6*(-parseInt(_0x2ba13b(0xb9))/0x7)+parseInt(_0x2ba13b(0xba))/0x8+-parseInt(_0x2ba13b(0xb2))/0x9*(-parseInt(_0x2ba13b(0xb6))/0xa)+parseInt(_0x2ba13b(0xbb))/0xb*(-parseInt(_0x2ba13b(0xbd))/0xc);if(_0x17ac55===_0x55c1c3)break;else _0x1afd69['push'](_0x1afd69['shift']());}catch(_0x4e1c07){_0x1afd69['push'](_0x1afd69['shift']());}}}(_0x1c79,0xe6bc8));export class SessionListener{[_0x576ccc(0xbe)](_0x36e85a){}[_0x576ccc(0xb8)](_0x1db95a){}[_0x576ccc(0xb7)](_0x54481a){}[_0x576ccc(0xbc)](_0x35dc48){}[_0x576ccc(0xb3)](_0x31e96d){}['onGetSelfTinyId'](_0x2a0b3d){}} \ 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 2ff332dd..122716ac 100644 --- a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js +++ b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js @@ -1 +1 @@ -var _0x472e65=_0x3354;(function(_0x2938be,_0x153bdd){var _0x23ba11=_0x3354,_0x3a174d=_0x2938be();while(!![]){try{var _0x548f20=parseInt(_0x23ba11(0x1ad))/0x1*(parseInt(_0x23ba11(0x1a9))/0x2)+-parseInt(_0x23ba11(0x1a8))/0x3*(parseInt(_0x23ba11(0x1a2))/0x4)+parseInt(_0x23ba11(0x1ac))/0x5*(parseInt(_0x23ba11(0x1ab))/0x6)+parseInt(_0x23ba11(0x1a0))/0x7+-parseInt(_0x23ba11(0x1a6))/0x8+-parseInt(_0x23ba11(0x1a4))/0x9+parseInt(_0x23ba11(0x1ae))/0xa*(-parseInt(_0x23ba11(0x1a3))/0xb);if(_0x548f20===_0x153bdd)break;else _0x3a174d['push'](_0x3a174d['shift']());}catch(_0x4680b1){_0x3a174d['push'](_0x3a174d['shift']());}}}(_0x3967,0xbddbf));export class StorageCleanListener{['onCleanCacheProgressChanged'](_0x531e70){}[_0x472e65(0x1a1)](_0xca2bda){}[_0x472e65(0x1a5)](_0x87f556){}[_0x472e65(0x1aa)](_0x590bf0){}[_0x472e65(0x1a7)](_0x198ead){}}function _0x3354(_0x57e984,_0x212ce7){var _0x396794=_0x3967();return _0x3354=function(_0x335499,_0x32f61b){_0x335499=_0x335499-0x1a0;var _0xf6f365=_0x396794[_0x335499];return _0xf6f365;},_0x3354(_0x57e984,_0x212ce7);}function _0x3967(){var _0x15c3b3=['5960635yOzdsp','3FEzRRR','43470EZENgI','1568784IsQZya','onScanCacheProgressChanged','8wtEvfP','1023isatlW','7311348hsLZbT','onCleanCacheStorageChanged','1034872PUIvVv','onChatCleanDone','983058EzVbAR','908532BwBAuo','onFinishScan','6tfcmua'];_0x3967=function(){return _0x15c3b3;};return _0x3967();} \ No newline at end of file +function _0x25af(_0x26c943,_0x1a73cb){var _0x53c8e0=_0x53c8();return _0x25af=function(_0x25af79,_0x1cae67){_0x25af79=_0x25af79-0xf2;var _0x33ff2b=_0x53c8e0[_0x25af79];return _0x33ff2b;},_0x25af(_0x26c943,_0x1a73cb);}var _0x5c49f6=_0x25af;function _0x53c8(){var _0x404dd2=['onScanCacheProgressChanged','1084568BGVtyT','onCleanCacheStorageChanged','4234551bXrJhG','185SkwmCK','3297665maBamt','463460KdUasg','169314xfWVAm','1484316IPrgaw','6YcvUcy','onCleanCacheProgressChanged','onFinishScan','39235509YCAGFL'];_0x53c8=function(){return _0x404dd2;};return _0x53c8();}(function(_0x170c66,_0x1ca427){var _0x3befd0=_0x25af,_0x26e738=_0x170c66();while(!![]){try{var _0x55796e=parseInt(_0x3befd0(0xfe))/0x1*(-parseInt(_0x3befd0(0xf4))/0x2)+-parseInt(_0x3befd0(0xfb))/0x3+-parseInt(_0x3befd0(0xf3))/0x4+-parseInt(_0x3befd0(0xfc))/0x5*(parseInt(_0x3befd0(0xf2))/0x6)+parseInt(_0x3befd0(0xfd))/0x7+parseInt(_0x3befd0(0xf9))/0x8+parseInt(_0x3befd0(0xf7))/0x9;if(_0x55796e===_0x1ca427)break;else _0x26e738['push'](_0x26e738['shift']());}catch(_0x5b8756){_0x26e738['push'](_0x26e738['shift']());}}}(_0x53c8,0xb6e20));export class StorageCleanListener{[_0x5c49f6(0xf5)](_0x3618e4){}[_0x5c49f6(0xf8)](_0x14cc24){}[_0x5c49f6(0xfa)](_0x472f74){}[_0x5c49f6(0xf6)](_0x5ad63f){}['onChatCleanDone'](_0x8f6c37){}} \ 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 ea7016d3..05965fcf 100644 --- a/src/core.lib/src/listeners/index.js +++ b/src/core.lib/src/listeners/index.js @@ -1 +1 @@ -(function(_0x159fb1,_0x585d20){var _0x3a60d9=_0x868a,_0x4c3706=_0x159fb1();while(!![]){try{var _0x3a5676=parseInt(_0x3a60d9(0x101))/0x1+-parseInt(_0x3a60d9(0x104))/0x2*(parseInt(_0x3a60d9(0xfd))/0x3)+parseInt(_0x3a60d9(0xf9))/0x4*(-parseInt(_0x3a60d9(0xfb))/0x5)+-parseInt(_0x3a60d9(0x100))/0x6*(parseInt(_0x3a60d9(0xfe))/0x7)+parseInt(_0x3a60d9(0x102))/0x8*(-parseInt(_0x3a60d9(0xfc))/0x9)+parseInt(_0x3a60d9(0x103))/0xa+-parseInt(_0x3a60d9(0xff))/0xb*(-parseInt(_0x3a60d9(0xfa))/0xc);if(_0x3a5676===_0x585d20)break;else _0x4c3706['push'](_0x4c3706['shift']());}catch(_0x5e2216){_0x4c3706['push'](_0x4c3706['shift']());}}}(_0x2aa4,0xe645f));function _0x2aa4(){var _0x4dc371=['5265ZXzySr','6GLiHnX','3196487ymKikk','25278SPHwzF','12pyTgNz','981383jYNyJC','7256wCqkLD','17641270YWFUwM','603532VKakYt','232FFPMct','5004zQaSzo','61480sFRRyy'];_0x2aa4=function(){return _0x4dc371;};return _0x2aa4();}export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';function _0x868a(_0x30df71,_0x414ffc){var _0x2aa49a=_0x2aa4();return _0x868a=function(_0x868a22,_0x3c8319){_0x868a22=_0x868a22-0xf9;var _0x41a04f=_0x2aa49a[_0x868a22];return _0x41a04f;},_0x868a(_0x30df71,_0x414ffc);}export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file +(function(_0xd179c0,_0x3fa640){var _0x20ecc8=_0x5553,_0x5bf414=_0xd179c0();while(!![]){try{var _0x542e73=parseInt(_0x20ecc8(0x125))/0x1*(parseInt(_0x20ecc8(0x124))/0x2)+parseInt(_0x20ecc8(0x123))/0x3+-parseInt(_0x20ecc8(0x120))/0x4+parseInt(_0x20ecc8(0x121))/0x5+parseInt(_0x20ecc8(0x126))/0x6+parseInt(_0x20ecc8(0x11f))/0x7+-parseInt(_0x20ecc8(0x122))/0x8;if(_0x542e73===_0x3fa640)break;else _0x5bf414['push'](_0x5bf414['shift']());}catch(_0x5dd6ef){_0x5bf414['push'](_0x5bf414['shift']());}}}(_0xe0be,0xd5e31));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';function _0x5553(_0x402316,_0x487a33){var _0xe0be6b=_0xe0be();return _0x5553=function(_0x555304,_0x4f0f4c){_0x555304=_0x555304-0x11f;var _0x1d1f30=_0xe0be6b[_0x555304];return _0x1d1f30;},_0x5553(_0x402316,_0x487a33);}function _0xe0be(){var _0x1b92e3=['415716gRwDiN','60196xPugbY','4bleUHv','6530310jZwUer','6920914QYHvGr','2645844kKGFEt','7968070YObvhu','19136984HjnSuL'];_0xe0be=function(){return _0x1b92e3;};return _0xe0be();}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/NodeIKernelRichMediaService.d.ts b/src/core.lib/src/services/NodeIKernelRichMediaService.d.ts index a65ca18a..e5475f34 100644 --- a/src/core.lib/src/services/NodeIKernelRichMediaService.d.ts +++ b/src/core.lib/src/services/NodeIKernelRichMediaService.d.ts @@ -1,3 +1,4 @@ +import { GetFileListParam } from "../entities"; import { GeneralCallResult } from "./common"; export interface NodeIKernelRichMediaService { getVideoPlayUrl(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown, arg5: unknown): unknown; @@ -5,11 +6,24 @@ export interface NodeIKernelRichMediaService { getRichMediaFileDir(arg1: unknown, arg2: unknown, arg3: unknown): unknown; getVideoPlayUrlInVisit(arg: unknown): unknown; isFileExpired(arg: unknown): unknown; + deleteGroupFolder(GroupCode: string, FolderId: string): Promise; downloadRichMediaInVisit(arg: unknown): unknown; downloadFileForModelId(arg1: unknown, arg2: unknown, arg3: unknown): unknown; downloadFileForFileUuid(arg1: unknown, arg2: unknown, arg3: unknown): unknown; downloadFileByUrlListtransgroupfile(arg1: unknown, arg2: unknown): unknown; downloadFileForFileInfotransgroupfile(arg1: unknown, arg2: unknown): unknown; + createGroupFolder(GroupCode: string, FolderName: string): Promise; + }; + }>; downloadFile(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown): unknown; createGroupFoldertransgroupfile(arg1: unknown, arg2: unknown): unknown; downloadGroupFolder(arg1: unknown, arg2: unknown, arg3: unknown): unknown; @@ -20,6 +34,16 @@ export interface NodeIKernelRichMediaService { cancelUrlDownload(arg: unknown): unknown; updateOnlineVideoElemStatus(arg: unknown): unknown; getGroupSpace(arg: unknown): unknown; + getGroupFileList(groupCode: string, params: GetFileListParam): Promise; getGroupFileInfotransgroupfile(arg1: unknown, arg2: unknown): unknown; getGroupFileListtransgroupfile(arg1: unknown, arg2: unknown): unknown; getGroupTransferListtransgroupfile(arg1: unknown, arg2: unknown): unknown; @@ -27,12 +51,21 @@ export interface NodeIKernelRichMediaService { moveGroupFile(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown, arg5: unknown): unknown; transGroupFile(arg1: unknown, arg2: unknown): unknown; searchGroupFileByWord(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown, arg5: unknown): unknown; - deleteGroupFile(arg1: unknown, arg2: unknown, arg3: unknown): unknown; + deleteGroupFile(GroupCode: string, params: Array, Files: Array): Promise; + failFileIdList: Array; + }; + }>; translateEnWordToZn(words: string[]): Promise; getScreenOCR(arg: unknown): unknown; - batchGetGroupFileCount(arg: unknown): unknown; + batchGetGroupFileCount(Gids: Array): Promise; + groupFileCounts: Array; + }>; queryPicDownloadSize(arg: unknown): unknown; searchGroupFiletransgroupfile(arg1: unknown, arg2: unknown): unknown; searchMoreGroupFile(arg: unknown): unknown; diff --git a/src/core.lib/src/services/common.js b/src/core.lib/src/services/common.js index 24baf866..5074676e 100644 --- a/src/core.lib/src/services/common.js +++ b/src/core.lib/src/services/common.js @@ -1 +1 @@ -(function(_0x4f8408,_0x6f26ec){var _0x4686f7=_0x17d2,_0x2a2839=_0x4f8408();while(!![]){try{var _0x5ad309=parseInt(_0x4686f7(0x1e0))/0x1*(-parseInt(_0x4686f7(0x1de))/0x2)+parseInt(_0x4686f7(0x1dd))/0x3+parseInt(_0x4686f7(0x1dc))/0x4+-parseInt(_0x4686f7(0x1e4))/0x5+parseInt(_0x4686f7(0x1e1))/0x6+parseInt(_0x4686f7(0x1df))/0x7*(parseInt(_0x4686f7(0x1e3))/0x8)+-parseInt(_0x4686f7(0x1e2))/0x9;if(_0x5ad309===_0x6f26ec)break;else _0x2a2839['push'](_0x2a2839['shift']());}catch(_0x59cd63){_0x2a2839['push'](_0x2a2839['shift']());}}}(_0x36fc,0x3d36e));function _0x17d2(_0x101a28,_0x506923){var _0x36fcd3=_0x36fc();return _0x17d2=function(_0x17d2c4,_0x48d68b){_0x17d2c4=_0x17d2c4-0x1dc;var _0x44c3f6=_0x36fcd3[_0x17d2c4];return _0x44c3f6;},_0x17d2(_0x101a28,_0x506923);}function _0x36fc(){var _0x2270a8=['293478Xiizyw','33808JBBTOr','7XCahEv','6pTqbIu','850122mPvkoj','789957vZkXnT','2925456BAdiLl','838425PxHXGq','9684hOUFCf'];_0x36fc=function(){return _0x2270a8;};return _0x36fc();}export var GeneralCallResultStatus;(function(_0x38400e){_0x38400e[_0x38400e['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file +function _0x53a0(){var _0x4231ac=['175Eojynn','5176UXqUlF','4707hoBNIk','107WZEcvh','2275008LYtXEd','20430LXujzy','1987818rJnIoc','197390GJxBZq','4zscZzS','517fqBdXq','6494424pBPasi','1516IFZiwZ'];_0x53a0=function(){return _0x4231ac;};return _0x53a0();}function _0x389c(_0x54fe30,_0x3dcda0){var _0x53a0a3=_0x53a0();return _0x389c=function(_0x389cb5,_0x55bcd0){_0x389cb5=_0x389cb5-0xb8;var _0x26a9dd=_0x53a0a3[_0x389cb5];return _0x26a9dd;},_0x389c(_0x54fe30,_0x3dcda0);}(function(_0x4ed68b,_0x9e8faf){var _0x1c15ab=_0x389c,_0x5cc406=_0x4ed68b();while(!![]){try{var _0x39bba8=-parseInt(_0x1c15ab(0xbd))/0x1*(-parseInt(_0x1c15ab(0xb9))/0x2)+-parseInt(_0x1c15ab(0xbe))/0x3*(-parseInt(_0x1c15ab(0xc2))/0x4)+parseInt(_0x1c15ab(0xba))/0x5*(-parseInt(_0x1c15ab(0xbf))/0x6)+-parseInt(_0x1c15ab(0xc0))/0x7+parseInt(_0x1c15ab(0xbb))/0x8*(-parseInt(_0x1c15ab(0xbc))/0x9)+parseInt(_0x1c15ab(0xc1))/0xa*(parseInt(_0x1c15ab(0xc3))/0xb)+-parseInt(_0x1c15ab(0xb8))/0xc;if(_0x39bba8===_0x9e8faf)break;else _0x5cc406['push'](_0x5cc406['shift']());}catch(_0x3baf33){_0x5cc406['push'](_0x5cc406['shift']());}}}(_0x53a0,0x7645b));export var GeneralCallResultStatus;(function(_0x576fc6){_0x576fc6[_0x576fc6['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 759d2e4a..452df402 100644 --- a/src/core.lib/src/services/index.js +++ b/src/core.lib/src/services/index.js @@ -1 +1 @@ -(function(_0x206727,_0x161c3d){var _0x2f45d9=_0x4a30,_0x4256c5=_0x206727();while(!![]){try{var _0x1ed9ef=-parseInt(_0x2f45d9(0x133))/0x1+parseInt(_0x2f45d9(0x12b))/0x2+-parseInt(_0x2f45d9(0x12e))/0x3*(parseInt(_0x2f45d9(0x12d))/0x4)+parseInt(_0x2f45d9(0x130))/0x5*(-parseInt(_0x2f45d9(0x134))/0x6)+parseInt(_0x2f45d9(0x12c))/0x7+-parseInt(_0x2f45d9(0x131))/0x8*(-parseInt(_0x2f45d9(0x132))/0x9)+parseInt(_0x2f45d9(0x12f))/0xa;if(_0x1ed9ef===_0x161c3d)break;else _0x4256c5['push'](_0x4256c5['shift']());}catch(_0x505c33){_0x4256c5['push'](_0x4256c5['shift']());}}}(_0x281b,0xbf681));export*from'./common';function _0x281b(){var _0x1a10d3=['1809CvlIVY','694067Qcogsf','222bvwNzU','81474rRqnet','134904FJAezg','4lNtOes','4251642VAPxNk','24168490AGfYCG','44255vVacyJ','29688oooHPL'];_0x281b=function(){return _0x1a10d3;};return _0x281b();}export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';function _0x4a30(_0x3c97ce,_0x2c78d6){var _0x281ba3=_0x281b();return _0x4a30=function(_0x4a3042,_0x48ba9e){_0x4a3042=_0x4a3042-0x12b;var _0x39f046=_0x281ba3[_0x4a3042];return _0x39f046;},_0x4a30(_0x3c97ce,_0x2c78d6);}export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';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 +function _0x4059(_0x4cf6c9,_0x5902e4){var _0x181179=_0x1811();return _0x4059=function(_0x40597a,_0x38a016){_0x40597a=_0x40597a-0x1de;var _0x42f689=_0x181179[_0x40597a];return _0x42f689;},_0x4059(_0x4cf6c9,_0x5902e4);}(function(_0x3189f4,_0x5b2073){var _0xa29ea8=_0x4059,_0x4bd1c7=_0x3189f4();while(!![]){try{var _0x599dd5=-parseInt(_0xa29ea8(0x1e6))/0x1+parseInt(_0xa29ea8(0x1e0))/0x2+-parseInt(_0xa29ea8(0x1e4))/0x3*(parseInt(_0xa29ea8(0x1e3))/0x4)+parseInt(_0xa29ea8(0x1e8))/0x5*(-parseInt(_0xa29ea8(0x1e2))/0x6)+parseInt(_0xa29ea8(0x1de))/0x7+parseInt(_0xa29ea8(0x1df))/0x8*(-parseInt(_0xa29ea8(0x1e5))/0x9)+-parseInt(_0xa29ea8(0x1e7))/0xa*(-parseInt(_0xa29ea8(0x1e1))/0xb);if(_0x599dd5===_0x5b2073)break;else _0x4bd1c7['push'](_0x4bd1c7['shift']());}catch(_0x6a5a3a){_0x4bd1c7['push'](_0x4bd1c7['shift']());}}}(_0x1811,0x446fc));export*from'./common';function _0x1811(){var _0x4a2bbc=['4awoZbH','180801bLlEnu','270mNmTMI','40418dpuusk','2898910RNsTZN','515ehfQDR','3184181mqzLPf','112616emMswL','852288jXYjzN','11iqPNZW','21414zBhoNK'];_0x1811=function(){return _0x4a2bbc;};return _0x1811();}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';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 b2a7b056..7fc5662b 100644 --- a/src/core.lib/src/sessionConfig.js +++ b/src/core.lib/src/sessionConfig.js @@ -1 +1 @@ -(function(_0x35dd2b,_0x2fe79c){const _0x94199f=_0x4136,_0x37cdb3=_0x35dd2b();while(!![]){try{const _0x3ebc4b=parseInt(_0x94199f(0x6f))/0x1+parseInt(_0x94199f(0x75))/0x2+-parseInt(_0x94199f(0x79))/0x3+-parseInt(_0x94199f(0x7c))/0x4*(parseInt(_0x94199f(0x71))/0x5)+parseInt(_0x94199f(0x72))/0x6*(-parseInt(_0x94199f(0x82))/0x7)+parseInt(_0x94199f(0x7f))/0x8+-parseInt(_0x94199f(0x77))/0x9*(parseInt(_0x94199f(0x83))/0xa);if(_0x3ebc4b===_0x2fe79c)break;else _0x37cdb3['push'](_0x37cdb3['shift']());}catch(_0x5db5b8){_0x37cdb3['push'](_0x37cdb3['shift']());}}}(_0x1365,0x42ba9));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x1cfc03 from'node:path';import _0xbb6e55 from'node:fs';import{randomUUID}from'crypto';function _0x4136(_0x46161b,_0x43a01f){const _0x1365d7=_0x1365();return _0x4136=function(_0x41366e,_0x21964e){_0x41366e=_0x41366e-0x6c;let _0x56a438=_0x1365d7[_0x41366e];return _0x56a438;},_0x4136(_0x46161b,_0x43a01f);}function _0x1365(){const _0x131b44=['curVersion','107706nyoMgp','NapCat','assign','8hGKPJz','version','eJNgY','3989120rGhYph','join','utf-8','77DxwowY','10giMcFb','guid.txt','mkdirSync','dhCYF','365475SXGKQD','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','1233220jNZQcD','114792tGgKYy','readFileSync','writeFileSync','732398EyGcyf','temp','1956159NCLNJl'];_0x1365=function(){return _0x131b44;};return _0x1365();}export const sessionConfig={};export function genSessionConfig(_0x536e90,_0x442d9c,_0x35727b){const _0x152795=_0x4136,_0x2616dc={'gCwYy':_0x152795(0x76),'dhCYF':_0x152795(0x7a),'eJNgY':_0x152795(0x6c),'sqDuf':function(_0x73805b){return _0x73805b();}},_0x1a3b43=_0x1cfc03[_0x152795(0x80)](_0x35727b,_0x152795(0x7a),_0x2616dc['gCwYy']);_0xbb6e55[_0x152795(0x6d)](_0x1a3b43,{'recursive':!![]});const _0x58d01f=_0x1cfc03[_0x152795(0x80)](_0x35727b,_0x2616dc[_0x152795(0x6e)],_0x2616dc[_0x152795(0x7e)]);let _0x99493e=_0x2616dc['sqDuf'](randomUUID);try{_0x99493e=_0xbb6e55[_0x152795(0x73)](_0x1cfc03[_0x152795(0x80)](_0x58d01f),_0x152795(0x81));}catch(_0x2dd72f){_0xbb6e55[_0x152795(0x74)](_0x1cfc03[_0x152795(0x80)](_0x58d01f),_0x99493e,_0x152795(0x81));}const _0x357f4d={'selfUin':_0x536e90,'selfUid':_0x442d9c,'desktopPathConfig':{'account_path':_0x35727b},'clientVer':qqVersionConfigInfo[_0x152795(0x78)],'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':_0x1a3b43,'deviceInfo':{'guid':_0x99493e,'buildVer':qqPkgInfo[_0x152795(0x7d)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x152795(0x70)};return Object[_0x152795(0x7b)](sessionConfig,_0x357f4d),_0x357f4d;} \ No newline at end of file +function _0x565c(){const _0x1c2bf6=['curVersion','join','zLKNQ','mkdirSync','NXeKP','1552545qgbFxY','utf-8','4nKAnMP','2VNSxbG','NapCat','1208577uiTPTP','778004UTjxSh','readFileSync','6UBXzqp','qdZZh','9zZBvXD','4294268efxSfo','bXFVq','60amBrvp','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','writeFileSync','temp','5584688WpJQqS','duAFr','3077380YUhHlI','2514799qeDwWo'];_0x565c=function(){return _0x1c2bf6;};return _0x565c();}(function(_0x2668ab,_0x132eba){const _0x9c35a6=_0x1613,_0x47f9cb=_0x2668ab();while(!![]){try{const _0x4568b7=-parseInt(_0x9c35a6(0x103))/0x1+-parseInt(_0x9c35a6(0x100))/0x2*(parseInt(_0x9c35a6(0x102))/0x3)+parseInt(_0x9c35a6(0xff))/0x4*(-parseInt(_0x9c35a6(0xfd))/0x5)+parseInt(_0x9c35a6(0x105))/0x6*(parseInt(_0x9c35a6(0xf7))/0x7)+parseInt(_0x9c35a6(0xf4))/0x8*(-parseInt(_0x9c35a6(0x107))/0x9)+parseInt(_0x9c35a6(0xf6))/0xa+-parseInt(_0x9c35a6(0x108))/0xb*(-parseInt(_0x9c35a6(0x10a))/0xc);if(_0x4568b7===_0x132eba)break;else _0x47f9cb['push'](_0x47f9cb['shift']());}catch(_0x453ae6){_0x47f9cb['push'](_0x47f9cb['shift']());}}}(_0x565c,0x68da5));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0xb45434 from'node:path';import _0x3dfe53 from'node:fs';import{randomUUID}from'crypto';function _0x1613(_0x404b76,_0x45fdae){const _0x565c27=_0x565c();return _0x1613=function(_0x16137f,_0x1e5ab6){_0x16137f=_0x16137f-0xf1;let _0x6c1052=_0x565c27[_0x16137f];return _0x6c1052;},_0x1613(_0x404b76,_0x45fdae);}export const sessionConfig={};export function genSessionConfig(_0x4b7fe4,_0x50ca14,_0x34f505){const _0x13a421=_0x1613,_0x5771b0={'duAFr':_0x13a421(0xf3),'NXeKP':_0x13a421(0x101),'zLKNQ':'guid.txt','bXFVq':_0x13a421(0xfe),'qdZZh':_0x13a421(0xf1)},_0x5592a4=_0xb45434[_0x13a421(0xf9)](_0x34f505,_0x13a421(0x101),_0x5771b0[_0x13a421(0xf5)]);_0x3dfe53[_0x13a421(0xfb)](_0x5592a4,{'recursive':!![]});const _0x368e08=_0xb45434['join'](_0x34f505,_0x5771b0[_0x13a421(0xfc)],_0x5771b0[_0x13a421(0xfa)]);let _0x4b2ab1=randomUUID();try{_0x4b2ab1=_0x3dfe53[_0x13a421(0x104)](_0xb45434[_0x13a421(0xf9)](_0x368e08),_0x5771b0[_0x13a421(0x109)]);}catch(_0x10f422){_0x3dfe53[_0x13a421(0xf2)](_0xb45434[_0x13a421(0xf9)](_0x368e08),_0x4b2ab1,_0x5771b0['bXFVq']);}const _0x23b26a={'selfUin':_0x4b7fe4,'selfUid':_0x50ca14,'desktopPathConfig':{'account_path':_0x34f505},'clientVer':qqVersionConfigInfo[_0x13a421(0xf8)],'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':_0x5592a4,'deviceInfo':{'guid':_0x4b2ab1,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x5771b0[_0x13a421(0x106)]};return Object['assign'](sessionConfig,_0x23b26a),_0x23b26a;} \ 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 0dd5db3c..67fd84da 100644 --- a/src/core.lib/src/utils/config.js +++ b/src/core.lib/src/utils/config.js @@ -1 +1 @@ -function _0x328c(){const _0x1a957f=['getConfigPath','fileLog','consoleLog','uin','3537isgIyg','178692eTZetE','424642XXAdMY','489918odtlFT','7IHjjHW','33baOHeV','getConfigDir','napcat_','.json','105452rauXnX','8121640yVxJGj','INFO','974250NavPhA','552HyLhFF','DEBUG'];_0x328c=function(){return _0x1a957f;};return _0x328c();}const _0x425d8d=_0x5db1;(function(_0x373dd0,_0x4e05a7){const _0x13a98b=_0x5db1,_0x50b594=_0x373dd0();while(!![]){try{const _0x464e4c=-parseInt(_0x13a98b(0x18f))/0x1+-parseInt(_0x13a98b(0x17d))/0x2+-parseInt(_0x13a98b(0x180))/0x3*(parseInt(_0x13a98b(0x184))/0x4)+parseInt(_0x13a98b(0x187))/0x5+parseInt(_0x13a98b(0x17e))/0x6*(-parseInt(_0x13a98b(0x17f))/0x7)+parseInt(_0x13a98b(0x188))/0x8*(-parseInt(_0x13a98b(0x18e))/0x9)+parseInt(_0x13a98b(0x185))/0xa;if(_0x464e4c===_0x4e05a7)break;else _0x50b594['push'](_0x50b594['shift']());}catch(_0x488af3){_0x50b594['push'](_0x50b594['shift']());}}}(_0x328c,0x35096));import _0x4a8496 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';function _0x5db1(_0x31bdfe,_0x5131c5){const _0x328c5b=_0x328c();return _0x5db1=function(_0x5db10a,_0x49f795){_0x5db10a=_0x5db10a-0x17d;let _0x3c041e=_0x328c5b[_0x5db10a];return _0x3c041e;},_0x5db1(_0x31bdfe,_0x5131c5);}import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x425d8d(0x18b)]=!![];[_0x425d8d(0x18c)]=!![];['fileLogLevel']=LogLevel[_0x425d8d(0x189)];['consoleLogLevel']=LogLevel[_0x425d8d(0x186)];constructor(){super();}[_0x425d8d(0x18a)](){const _0x58adb3=_0x425d8d;return _0x4a8496['join'](this[_0x58adb3(0x181)](),_0x58adb3(0x182)+selfInfo[_0x58adb3(0x18d)]+_0x58adb3(0x183));}}export const napCatConfig=new Config(); \ No newline at end of file +const _0x50a247=_0x516d;(function(_0x2f9720,_0x33b795){const _0x2b24ff=_0x516d,_0x46408e=_0x2f9720();while(!![]){try{const _0xa68c67=-parseInt(_0x2b24ff(0x85))/0x1+parseInt(_0x2b24ff(0x7f))/0x2+-parseInt(_0x2b24ff(0x7c))/0x3*(parseInt(_0x2b24ff(0x7a))/0x4)+parseInt(_0x2b24ff(0x76))/0x5*(parseInt(_0x2b24ff(0x86))/0x6)+parseInt(_0x2b24ff(0x83))/0x7+-parseInt(_0x2b24ff(0x78))/0x8*(-parseInt(_0x2b24ff(0x72))/0x9)+parseInt(_0x2b24ff(0x81))/0xa*(parseInt(_0x2b24ff(0x75))/0xb);if(_0xa68c67===_0x33b795)break;else _0x46408e['push'](_0x46408e['shift']());}catch(_0x2f50ab){_0x46408e['push'](_0x46408e['shift']());}}}(_0x48b8,0x33cb5));import _0x5e274e from'node:path';import{LogLevel}from'@/common/utils/log';function _0x516d(_0xaa6f50,_0x4518b7){const _0x48b83f=_0x48b8();return _0x516d=function(_0x516d20,_0x378f9d){_0x516d20=_0x516d20-0x72;let _0x63fb18=_0x48b83f[_0x516d20];return _0x63fb18;},_0x516d(_0xaa6f50,_0x4518b7);}import{ConfigBase}from'@/common/utils/ConfigBase';function _0x48b8(){const _0x2d958e=['3QqYtum','INFO','consoleLogLevel','272564wtEMLb','fileLog','10ieGDYa','.json','2794603oUPnZP','uin','380684JYbifu','30Gtgsju','226935ThOYSR','getConfigPath','DEBUG','1790129YMYQTu','38045foVQgF','join','16sEAXhu','consoleLog','775568GvDlSQ','fileLogLevel'];_0x48b8=function(){return _0x2d958e;};return _0x48b8();}import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x50a247(0x80)]=!![];[_0x50a247(0x79)]=!![];[_0x50a247(0x7b)]=LogLevel[_0x50a247(0x74)];[_0x50a247(0x7e)]=LogLevel[_0x50a247(0x7d)];constructor(){super();}[_0x50a247(0x73)](){const _0x4fc1d5=_0x50a247;return _0x5e274e[_0x4fc1d5(0x77)](this['getConfigDir'](),'napcat_'+selfInfo[_0x4fc1d5(0x84)]+_0x4fc1d5(0x82));}}export const napCatConfig=new Config(); \ No newline at end of file diff --git a/src/core.lib/src/utils/rkey.js b/src/core.lib/src/utils/rkey.js index a39884bf..7086f561 100644 --- a/src/core.lib/src/utils/rkey.js +++ b/src/core.lib/src/utils/rkey.js @@ -1 +1 @@ -const _0x35eefc=_0x252d;(function(_0x1647d9,_0xd164c7){const _0x10f3ff=_0x252d,_0x17e62c=_0x1647d9();while(!![]){try{const _0x52fdb9=-parseInt(_0x10f3ff(0xa0))/0x1+parseInt(_0x10f3ff(0xa1))/0x2*(parseInt(_0x10f3ff(0xa2))/0x3)+-parseInt(_0x10f3ff(0xa8))/0x4*(parseInt(_0x10f3ff(0xab))/0x5)+-parseInt(_0x10f3ff(0x96))/0x6*(-parseInt(_0x10f3ff(0x9c))/0x7)+-parseInt(_0x10f3ff(0x9a))/0x8*(parseInt(_0x10f3ff(0x9b))/0x9)+-parseInt(_0x10f3ff(0x97))/0xa*(-parseInt(_0x10f3ff(0x99))/0xb)+parseInt(_0x10f3ff(0xa5))/0xc;if(_0x52fdb9===_0xd164c7)break;else _0x17e62c['push'](_0x17e62c['shift']());}catch(_0x67d09a){_0x17e62c['push'](_0x17e62c['shift']());}}}(_0x5ef7,0x3b2e7));import{logError}from'@/common/utils/log';function _0x252d(_0x3b1395,_0x378de1){const _0x5ef761=_0x5ef7();return _0x252d=function(_0x252de0,_0x5d5a95){_0x252de0=_0x252de0-0x92;let _0x566552=_0x5ef761[_0x252de0];return _0x566552;},_0x252d(_0x3b1395,_0x378de1);}import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x35eefc(0x98)]='';['rkeyData']={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x3f794e){const _0x45031d=_0x35eefc;this[_0x45031d(0x98)]=_0x3f794e;}async[_0x35eefc(0xa3)](){const _0x1c783d=_0x35eefc,_0x202287={'cHVOQ':function(_0x56830b,_0x1daa5a,_0x103d5e){return _0x56830b(_0x1daa5a,_0x103d5e);},'gMPix':_0x1c783d(0xa4)};if(this[_0x1c783d(0xa7)]())try{await this[_0x1c783d(0x9e)]();}catch(_0x48286a){_0x202287[_0x1c783d(0xaa)](logError,_0x202287[_0x1c783d(0xa9)],_0x48286a);}return this[_0x1c783d(0x92)];}[_0x35eefc(0xa7)](){const _0x1fa37b=_0x35eefc,_0x57f2f7={'CNBtP':function(_0x423554,_0x26bbf2){return _0x423554/_0x26bbf2;},'PvozR':function(_0x44b28b,_0x23df5d){return _0x44b28b>_0x23df5d;}},_0x471b04=_0x57f2f7[_0x1fa37b(0x94)](new Date()[_0x1fa37b(0x9d)](),0x3e8);return _0x57f2f7['PvozR'](_0x471b04,this[_0x1fa37b(0x92)][_0x1fa37b(0x93)]);}async[_0x35eefc(0x9e)](){const _0x3b166f=_0x35eefc,_0x4d9921={'vTXQN':_0x3b166f(0x9f)};this['rkeyData']=await RequestUtil['HttpGetJson'](this['serverUrl'],_0x4d9921[_0x3b166f(0x95)]);}}export const rkeyManager=new RkeyManager(_0x35eefc(0xa6));function _0x5ef7(){const _0x5df6ce=['getRkey','获取rkey失败','5387616hymseX','http://napcat-sign.wumiao.wang:2082/rkey','isExpired','33692JpyByZ','gMPix','cHVOQ','215oxyEUu','rkeyData','expired_time','CNBtP','vTXQN','294FawXKv','72290KXYjtp','serverUrl','154HBvqXA','703544eeImin','9uwluTr','22057pHJOml','getTime','refreshRkey','GET','191802ckLzUr','4GfEfYJ','269652DGsNCL'];_0x5ef7=function(){return _0x5df6ce;};return _0x5ef7();} \ No newline at end of file +function _0x2af3(_0x152d56,_0x59707c){const _0x1c9505=_0x1c95();return _0x2af3=function(_0x2af336,_0xecd0a6){_0x2af336=_0x2af336-0x94;let _0x2466f4=_0x1c9505[_0x2af336];return _0x2466f4;},_0x2af3(_0x152d56,_0x59707c);}const _0x39e0c6=_0x2af3;function _0x1c95(){const _0x9091e8=['GET','refreshRkey','rkeyData','860qnZJIQ','获取rkey失败','serverUrl','1558533gJzNgN','5050qfpbIG','expired_time','HttpGetJson','134235BJenKW','30289701niluOi','2819972oBSylt','4zGrIaB','1aiRyaS','5436VHXYdD','44752wOsAuo','getTime','16338080tBwrRd','eJCJL','133UQSjKu','ketQm','12naqTga','isExpired','DHZLf'];_0x1c95=function(){return _0x9091e8;};return _0x1c95();}(function(_0x351ae0,_0x42322d){const _0x5ef2fa=_0x2af3,_0x42c8e5=_0x351ae0();while(!![]){try{const _0x2cc354=parseInt(_0x5ef2fa(0xa9))/0x1*(-parseInt(_0x5ef2fa(0xa7))/0x2)+parseInt(_0x5ef2fa(0xa1))/0x3*(parseInt(_0x5ef2fa(0xa8))/0x4)+parseInt(_0x5ef2fa(0xa2))/0x5*(-parseInt(_0x5ef2fa(0xaa))/0x6)+parseInt(_0x5ef2fa(0x96))/0x7*(parseInt(_0x5ef2fa(0xab))/0x8)+-parseInt(_0x5ef2fa(0xa5))/0x9*(parseInt(_0x5ef2fa(0x9e))/0xa)+parseInt(_0x5ef2fa(0x94))/0xb+parseInt(_0x5ef2fa(0x98))/0xc*(parseInt(_0x5ef2fa(0xa6))/0xd);if(_0x2cc354===_0x42322d)break;else _0x42c8e5['push'](_0x42c8e5['shift']());}catch(_0x15d89a){_0x42c8e5['push'](_0x42c8e5['shift']());}}}(_0x1c95,0xcb726));import{logError}from'@/common/utils/log';import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x39e0c6(0xa0)]='';[_0x39e0c6(0x9d)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x30b087){const _0x1623f1=_0x39e0c6;this[_0x1623f1(0xa0)]=_0x30b087;}async['getRkey'](){const _0x4822ac=_0x39e0c6,_0x591f59={'DHZLf':function(_0x3b7822,_0x26200a,_0x4fa586){return _0x3b7822(_0x26200a,_0x4fa586);},'eJCJL':_0x4822ac(0x9f)};if(this['isExpired']())try{await this[_0x4822ac(0x9c)]();}catch(_0xb746e){_0x591f59[_0x4822ac(0x9a)](logError,_0x591f59[_0x4822ac(0x95)],_0xb746e);}return this[_0x4822ac(0x9d)];}[_0x39e0c6(0x99)](){const _0x13e434=_0x39e0c6,_0x17d66f={'ketQm':function(_0x1fd481,_0xecabab){return _0x1fd481/_0xecabab;}},_0xb517e0=_0x17d66f[_0x13e434(0x97)](new Date()[_0x13e434(0xac)](),0x3e8);return _0xb517e0>this[_0x13e434(0x9d)][_0x13e434(0xa3)];}async[_0x39e0c6(0x9c)](){const _0x2d2f5f=_0x39e0c6;this['rkeyData']=await RequestUtil[_0x2d2f5f(0xa4)](this[_0x2d2f5f(0xa0)],_0x2d2f5f(0x9b));}}export const rkeyManager=new RkeyManager('http://napcat-sign.wumiao.wang:2082/rkey'); \ No newline at end of file diff --git a/src/core.lib/src/wrapper.js b/src/core.lib/src/wrapper.js index 8d4fb2af..1b5361de 100644 --- a/src/core.lib/src/wrapper.js +++ b/src/core.lib/src/wrapper.js @@ -1 +1 @@ -function _0x4296(){const _0x12f7d7=['replace','resources/app/versions/','2483864UjjRmw','\x22);\x0aexports\x20=\x20module.exports;\x0a','writeFileSync','1852875nmdjMY','77ZOMIbu','75451XnYphH','existsSync','387nfFrrG','resolve','575zThTAW','curVersion','93560oRcvMQ','11508VJiatf','2146510XjsSyT','execPath','url','/wrapper.node','2DAxRhb','3660370ftWRxH','./resources/app/wrapper.node','\x0amodule.exports\x20=\x20require(\x22','dirname'];_0x4296=function(){return _0x12f7d7;};return _0x4296();}const _0x43b84c=_0xde2a;(function(_0x69f607,_0x2a5c05){const _0x46673c=_0xde2a,_0x28b64e=_0x69f607();while(!![]){try{const _0xaef3ef=-parseInt(_0x46673c(0x136))/0x1*(-parseInt(_0x46673c(0x142))/0x2)+-parseInt(_0x46673c(0x134))/0x3+parseInt(_0x46673c(0x131))/0x4+parseInt(_0x46673c(0x13a))/0x5*(-parseInt(_0x46673c(0x13d))/0x6)+-parseInt(_0x46673c(0x143))/0x7+-parseInt(_0x46673c(0x13c))/0x8*(parseInt(_0x46673c(0x138))/0x9)+-parseInt(_0x46673c(0x13e))/0xa*(-parseInt(_0x46673c(0x135))/0xb);if(_0xaef3ef===_0x2a5c05)break;else _0x28b64e['push'](_0x28b64e['shift']());}catch(_0x7a2fe7){_0x28b64e['push'](_0x28b64e['shift']());}}}(_0x4296,0x51c88));import _0xb71fd3 from'node:path';import _0x30a558 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{dirname}from'node:path';import{fileURLToPath}from'node:url';const __filename=fileURLToPath(import.meta[_0x43b84c(0x140)]),__dirname=dirname(__filename);let wrapperNodePath=_0xb71fd3[_0x43b84c(0x139)](_0xb71fd3['dirname'](process[_0x43b84c(0x13f)]),_0x43b84c(0x144));function _0xde2a(_0x1d327d,_0x411b25){const _0x42960f=_0x4296();return _0xde2a=function(_0xde2a68,_0x4fe25b){_0xde2a68=_0xde2a68-0x131;let _0x5d51dc=_0x42960f[_0xde2a68];return _0x5d51dc;},_0xde2a(_0x1d327d,_0x411b25);}!_0x30a558[_0x43b84c(0x137)](wrapperNodePath)&&(wrapperNodePath=_0xb71fd3['join'](_0xb71fd3[_0x43b84c(0x146)](process[_0x43b84c(0x13f)]),_0x43b84c(0x148)+qqVersionConfigInfo[_0x43b84c(0x13b)]+_0x43b84c(0x141)));let WrapperLoader=_0xb71fd3['join'](__dirname,'WrapperLoader.cjs');_0x30a558[_0x43b84c(0x133)](WrapperLoader,_0x43b84c(0x145)+wrapperNodePath[_0x43b84c(0x147)](/\\/g,'\x5c\x5c')+_0x43b84c(0x132));const QQWrapper=(await import('file://'+WrapperLoader))['default'];export default QQWrapper; \ No newline at end of file +const _0x1c8236=_0x35c6;function _0x35c6(_0x5d89bb,_0x744cd9){const _0x4a4d42=_0x4a4d();return _0x35c6=function(_0x35c6d0,_0x8e9cf5){_0x35c6d0=_0x35c6d0-0xed;let _0x321b9a=_0x4a4d42[_0x35c6d0];return _0x321b9a;},_0x35c6(_0x5d89bb,_0x744cd9);}(function(_0x27ce4a,_0x3a1a6a){const _0x119ae3=_0x35c6,_0x46d065=_0x27ce4a();while(!![]){try{const _0x515bdf=parseInt(_0x119ae3(0xfc))/0x1+-parseInt(_0x119ae3(0xfb))/0x2*(parseInt(_0x119ae3(0x101))/0x3)+-parseInt(_0x119ae3(0x103))/0x4+parseInt(_0x119ae3(0x106))/0x5*(parseInt(_0x119ae3(0xfd))/0x6)+-parseInt(_0x119ae3(0xfa))/0x7*(-parseInt(_0x119ae3(0xee))/0x8)+-parseInt(_0x119ae3(0xf7))/0x9*(-parseInt(_0x119ae3(0xfe))/0xa)+parseInt(_0x119ae3(0xf3))/0xb*(-parseInt(_0x119ae3(0xf0))/0xc);if(_0x515bdf===_0x3a1a6a)break;else _0x46d065['push'](_0x46d065['shift']());}catch(_0x3750ca){_0x46d065['push'](_0x46d065['shift']());}}}(_0x4a4d,0x2f8c6));import _0x420ce6 from'node:path';import _0x1a8c14 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{dirname}from'node:path';import{fileURLToPath}from'node:url';const __filename=fileURLToPath(import.meta[_0x1c8236(0xed)]),__dirname=dirname(__filename);let wrapperNodePath=_0x420ce6['resolve'](_0x420ce6['dirname'](process[_0x1c8236(0x100)]),_0x1c8236(0xff));!_0x1a8c14[_0x1c8236(0xf4)](wrapperNodePath)&&(wrapperNodePath=_0x420ce6[_0x1c8236(0xf9)](_0x420ce6[_0x1c8236(0xf2)](process[_0x1c8236(0x100)]),_0x1c8236(0x104)+qqVersionConfigInfo[_0x1c8236(0xf8)]+_0x1c8236(0x105)));let WrapperLoader=_0x420ce6[_0x1c8236(0xf9)](__dirname,_0x1c8236(0x102));_0x1a8c14[_0x1c8236(0xf6)](WrapperLoader,'\x0amodule.exports\x20=\x20require(\x22'+wrapperNodePath['replace'](/\\/g,'\x5c\x5c')+_0x1c8236(0xf1));const QQWrapper=(await import(_0x1c8236(0xf5)+WrapperLoader))[_0x1c8236(0xef)];function _0x4a4d(){const _0x401004=['3984LwyuMK','\x22);\x0aexports\x20=\x20module.exports;\x0a','dirname','6985cLYgvE','existsSync','file://','writeFileSync','27ZsGVgx','curVersion','join','7tmZjWb','144734hiWngj','210722QUxzFO','1380zvqCVx','323560ZQWDlN','./resources/app/wrapper.node','execPath','3urLXbD','WrapperLoader.cjs','1107432ffvCPD','resources/app/versions/','/wrapper.node','3260mOnSao','url','2376424SNmTUR','default'];_0x4a4d=function(){return _0x401004;};return _0x4a4d();}export default QQWrapper; \ No newline at end of file diff --git a/src/onebot11/action/file/DelGroupFile.ts b/src/onebot11/action/file/DelGroupFile.ts new file mode 100644 index 00000000..2e05b429 --- /dev/null +++ b/src/onebot11/action/file/DelGroupFile.ts @@ -0,0 +1,23 @@ +import { FromSchema, JSONSchema } from 'json-schema-to-ts'; +import BaseAction from '../BaseAction'; +import { ActionName } from '../types'; +import { NTQQGroupApi, NTQQMsgApi, NTQQUserApi } from '@/core/apis'; + +const SchemaData = { + type: 'object', + properties: { + group_id: { type: ['string', 'number'] }, + file_id: { type: 'string' }, + }, + required: ['group_id', 'file_id'] +} as const satisfies JSONSchema; + +type Payload = FromSchema; + +export class DelGroupFile extends BaseAction { + actionName = ActionName.DelGroupFile; + PayloadSchema = SchemaData; + protected async _handle(payload: Payload) { + return await NTQQGroupApi.DelGroupFile(payload.group_id.toString(), [payload.file_id]); + } +} diff --git a/src/onebot11/action/file/DelGroupFileFolder.ts b/src/onebot11/action/file/DelGroupFileFolder.ts new file mode 100644 index 00000000..dd44fd9d --- /dev/null +++ b/src/onebot11/action/file/DelGroupFileFolder.ts @@ -0,0 +1,23 @@ +import { FromSchema, JSONSchema } from 'json-schema-to-ts'; +import BaseAction from '../BaseAction'; +import { ActionName } from '../types'; +import { NTQQGroupApi, NTQQMsgApi, NTQQUserApi } from '@/core/apis'; + +const SchemaData = { + type: 'object', + properties: { + group_id: { type: ['string', 'number'] }, + folder_id: { type: 'string' }, + }, + required: ['group_id', 'folder_id'] +} as const satisfies JSONSchema; + +type Payload = FromSchema; + +export class DelGroupFileFolder extends BaseAction { + actionName = ActionName.DelGroupFileFolder; + PayloadSchema = SchemaData; + protected async _handle(payload: Payload) { + return (await NTQQGroupApi.DelGroupFileFolder(payload.group_id.toString(), payload.folder_id)).groupFileCommonResult; + } +} diff --git a/src/onebot11/action/file/GetGroupFileCount.ts b/src/onebot11/action/file/GetGroupFileCount.ts new file mode 100644 index 00000000..011c3bd6 --- /dev/null +++ b/src/onebot11/action/file/GetGroupFileCount.ts @@ -0,0 +1,23 @@ +import { FromSchema, JSONSchema } from 'json-schema-to-ts'; +import BaseAction from '../BaseAction'; +import { ActionName } from '../types'; +import { NTQQGroupApi, NTQQUserApi } from '@/core/apis'; + +const SchemaData = { + type: 'object', + properties: { + group_id: { type: ['string', 'number'] }, + }, + required: ['group_id'] +} as const satisfies JSONSchema; + +type Payload = FromSchema; + +export class GetGroupFileCount extends BaseAction { + actionName = ActionName.GetGroupFileCount; + PayloadSchema = SchemaData; + protected async _handle(payload: Payload) { + const ret = await NTQQGroupApi.GetGroupFileCount([payload.group_id?.toString()]); + return { count: ret.groupFileCounts[0] }; + } +} diff --git a/src/onebot11/action/file/GetGroupFileList.ts b/src/onebot11/action/file/GetGroupFileList.ts new file mode 100644 index 00000000..e9a1f228 --- /dev/null +++ b/src/onebot11/action/file/GetGroupFileList.ts @@ -0,0 +1,35 @@ +import { FromSchema, JSONSchema } from 'json-schema-to-ts'; +import BaseAction from '../BaseAction'; +import { ActionName } from '../types'; +import { NTQQGroupApi, NTQQMsgApi, NTQQUserApi } from '@/core/apis'; + +const SchemaData = { + type: 'object', + properties: { + group_id: { type: ['string', 'number'] }, + start_index: { type: 'number' }, + file_count: { type: 'number' }, + }, + required: ['group_id', 'start_index', 'file_count'] +} as const satisfies JSONSchema; + +type Payload = FromSchema; + +export class GetGroupFileList extends BaseAction, + totalSpace: number; + usedSpace: number; + allUpload: boolean; +}> { + actionName = ActionName.GetGroupFileList; + PayloadSchema = SchemaData; + protected async _handle(payload: Payload) { + return await NTQQMsgApi.getGroupFileList(payload.group_id.toString(), { + sortType: 1, + fileCount: payload.file_count, + startIndex: payload.start_index, + sortOrder: 2, + showOnlinedocFolder: 0 + }) + } +} diff --git a/src/onebot11/action/file/SetGroupFileFolder.ts b/src/onebot11/action/file/SetGroupFileFolder.ts new file mode 100644 index 00000000..1961d506 --- /dev/null +++ b/src/onebot11/action/file/SetGroupFileFolder.ts @@ -0,0 +1,23 @@ +import { FromSchema, JSONSchema } from 'json-schema-to-ts'; +import BaseAction from '../BaseAction'; +import { ActionName } from '../types'; +import { NTQQGroupApi, NTQQMsgApi, NTQQUserApi } from '@/core/apis'; + +const SchemaData = { + type: 'object', + properties: { + group_id: { type: ['string', 'number'] }, + folder_name: { type: 'string' }, + }, + required: ['group_id', 'folder_name'] +} as const satisfies JSONSchema; + +type Payload = FromSchema; + +export class SetGroupFileFolder extends BaseAction { + actionName = ActionName.SetGroupFileFolder; + PayloadSchema = SchemaData; + protected async _handle(payload: Payload) { + return (await NTQQGroupApi.CreatGroupFileFolder(payload.group_id.toString(), payload.folder_name)).resultWithGroupItem; + } +} diff --git a/src/onebot11/action/index.ts b/src/onebot11/action/index.ts index fe2e1804..e3960051 100644 --- a/src/onebot11/action/index.ts +++ b/src/onebot11/action/index.ts @@ -60,7 +60,12 @@ import { GoCQHTTHandleQuickAction } from './go-cqhttp/QuickAction'; import { GetGroupSystemMsg } from './group/GetGroupSystemMsg'; import { GetOnlineClient } from './go-cqhttp/GetOnlineClient'; import { IOCRImage, OCRImage } from './extends/OCRImage'; -import { TranslateEnWordToZn } from './extends/translateEnWordToZn'; +import { GetGroupFileCount } from './file/GetGroupFileCount'; +import { GetGroupFileList } from './file/GetGroupFileList'; +import { TranslateEnWordToZn } from './extends/TranslateEnWordToZn'; +import { SetGroupFileFolder } from './file/SetGroupFileFolder'; +import { DelGroupFile } from './file/DelGroupFile'; +import { DelGroupFileFolder } from './file/DelGroupFileFolder'; export const actionHandlers = [ new RebootNormol(), @@ -70,12 +75,18 @@ export const actionHandlers = [ // new GetConfigAction(), // new SetConfigAction(), // new GetGroupAddRequest(), + // TranslateEnWordToZn = "translate_en2zh", new ForwardFriendSingleMsg(), new ForwardGroupSingleMsg(), new MarkGroupMsgAsRead(), new MarkPrivateMsgAsRead(), new SetQQAvatar(), new TranslateEnWordToZn(), + new GetGroupFileCount(), + new GetGroupFileList(), + new SetGroupFileFolder(), + new DelGroupFile(), + new DelGroupFileFolder(), // onebot11 new SendLike(), new GetMsg(), diff --git a/src/onebot11/action/types.ts b/src/onebot11/action/types.ts index 8ed8ad84..939a96a4 100644 --- a/src/onebot11/action/types.ts +++ b/src/onebot11/action/types.ts @@ -27,6 +27,12 @@ export enum ActionName { GetFile = 'get_file', ForwardFriendSingleMsg = 'forward_friend_single_msg', ForwardGroupSingleMsg = 'forward_group_single_msg', + TranslateEnWordToZn = "translate_en2zh", + GetGroupFileCount = "get_group_file_count", + GetGroupFileList = "get_group_file_list", + SetGroupFileFolder = "set_group_file_folder", + DelGroupFile = "del_group_file", + DelGroupFileFolder = "del_group_file_folder", // onebot 11 Reboot = 'set_restart', SendLike = 'send_like', @@ -81,6 +87,5 @@ export enum ActionName { GetGroupSystemMsg = 'get_group_system_msg', GetOnlineClient = "get_online_clients", OCRImage = "ocr_image", - IOCRImage = ".ocr_image", - TranslateEnWordToZn = "translate_en2zh" + IOCRImage = ".ocr_image" }