diff --git a/docs/changelogs/CHANGELOG.v1.4.1.md b/docs/changelogs/CHANGELOG.v1.4.1.md index 3267205f..e073bec9 100644 --- a/docs/changelogs/CHANGELOG.v1.4.1.md +++ b/docs/changelogs/CHANGELOG.v1.4.1.md @@ -7,8 +7,8 @@ QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361 * 优化日志膨胀问题 * 在线状态刷新问题修复 ## 新增与调整 -* 支持非管理群 本地记录时间数据 (注意备份配置) -* 新增翻译接口 Api: /xxxx -* 新增群文件管理相关扩胸接口 Api: /xxxx +* 支持非管理群 本地记录时间数据 (建议 **备份配置 清空配置 重新配置**) +* 新增英译中接口 Api: /translate_en2zh +* 新增群文件管理相关扩展接口 Api: /xxxx 新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api) diff --git a/src/common/utils/db.ts b/src/common/utils/db.ts index a200089d..c5586609 100644 --- a/src/common/utils/db.ts +++ b/src/common/utils/db.ts @@ -4,7 +4,6 @@ import sqlite3 from 'sqlite3'; import { log, logDebug, logError } from '@/common/utils/log'; import { NTQQMsgApi } from '@/core'; import LRU from "@/common/utils/LRUCache"; -import { ob11Config } from '@/onebot11/config'; export interface IRember { last_sent_time: number; diff --git a/src/core b/src/core index dc6d2ace..841da902 160000 --- a/src/core +++ b/src/core @@ -1 +1 @@ -Subproject commit dc6d2ace4d494ae04b87f9f1aed8c8d88cf2e030 +Subproject commit 841da902e3a362bc06086969329334d5456ac46b diff --git a/src/core.lib/src/adapters/NodeIDependsAdapter.js b/src/core.lib/src/adapters/NodeIDependsAdapter.js index 437bf22c..11e515c6 100644 --- a/src/core.lib/src/adapters/NodeIDependsAdapter.js +++ b/src/core.lib/src/adapters/NodeIDependsAdapter.js @@ -1 +1 @@ -var _0x4286a3=_0xc001;function _0xc001(_0x4c2239,_0x96eba5){var _0x411e52=_0x411e();return _0xc001=function(_0xc0015f,_0xa050ce){_0xc0015f=_0xc0015f-0x131;var _0x38be80=_0x411e52[_0xc0015f];return _0x38be80;},_0xc001(_0x4c2239,_0x96eba5);}(function(_0x206675,_0x34f075){var _0x5471fa=_0xc001,_0x4a1e1e=_0x206675();while(!![]){try{var _0x27cb7b=-parseInt(_0x5471fa(0x139))/0x1+parseInt(_0x5471fa(0x134))/0x2*(-parseInt(_0x5471fa(0x137))/0x3)+parseInt(_0x5471fa(0x13a))/0x4+-parseInt(_0x5471fa(0x132))/0x5+-parseInt(_0x5471fa(0x138))/0x6*(parseInt(_0x5471fa(0x131))/0x7)+parseInt(_0x5471fa(0x135))/0x8*(-parseInt(_0x5471fa(0x13b))/0x9)+parseInt(_0x5471fa(0x136))/0xa;if(_0x27cb7b===_0x34f075)break;else _0x4a1e1e['push'](_0x4a1e1e['shift']());}catch(_0x138714){_0x4a1e1e['push'](_0x4a1e1e['shift']());}}}(_0x411e,0x450e7));function _0x411e(){var _0x755003=['214781tOSknq','1855195euFZTj','onMSFStatusChange','4714cSbHFO','8KTPhrc','17262790MMMkXf','141PjSgbd','102LdDKde','405414YILiZW','495392pIycFq','1425861FhlsKe','getGroupCode'];_0x411e=function(){return _0x755003;};return _0x411e();}export class DependsAdapter{[_0x4286a3(0x133)](_0x12de58,_0x1f0efe){}['onMSFSsoError'](_0xca0a39){}[_0x4286a3(0x13c)](_0x4c5eb1){}} \ No newline at end of file +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 diff --git a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js index e84e36d6..6a94b4d9 100644 --- a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js +++ b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js @@ -1 +1 @@ -function _0x21e6(_0x440a57,_0x31f94d){var _0x12f5d4=_0x12f5();return _0x21e6=function(_0x21e66d,_0x4920fd){_0x21e66d=_0x21e66d-0x14d;var _0x526a9e=_0x12f5d4[_0x21e66d];return _0x526a9e;},_0x21e6(_0x440a57,_0x31f94d);}var _0x422013=_0x21e6;(function(_0x2fa66e,_0x22800f){var _0x3c19fc=_0x21e6,_0x156abb=_0x2fa66e();while(!![]){try{var _0x3cc608=parseInt(_0x3c19fc(0x15b))/0x1*(parseInt(_0x3c19fc(0x155))/0x2)+parseInt(_0x3c19fc(0x14f))/0x3*(parseInt(_0x3c19fc(0x14e))/0x4)+-parseInt(_0x3c19fc(0x157))/0x5*(parseInt(_0x3c19fc(0x153))/0x6)+parseInt(_0x3c19fc(0x15a))/0x7+-parseInt(_0x3c19fc(0x159))/0x8*(parseInt(_0x3c19fc(0x154))/0x9)+-parseInt(_0x3c19fc(0x152))/0xa*(-parseInt(_0x3c19fc(0x151))/0xb)+-parseInt(_0x3c19fc(0x14d))/0xc;if(_0x3cc608===_0x22800f)break;else _0x156abb['push'](_0x156abb['shift']());}catch(_0x339181){_0x156abb['push'](_0x156abb['shift']());}}}(_0x12f5,0x2b75c));function _0x12f5(){var _0x19fc02=['595HTUNEc','dispatchCall','647328fnItMm','555324BKjuJv','100sqUxWm','4116228XRMnZq','8ECbvNz','499635BYIhlI','dispatchCallWithJson','11JzQOIl','2169940VldTwi','1338JttKec','27HVAuMI','3218hAtPMn','dispatchRequest'];_0x12f5=function(){return _0x19fc02;};return _0x12f5();}export class DispatcherAdapter{[_0x422013(0x156)](_0x3d7e84){}[_0x422013(0x158)](_0x30bbe4){}[_0x422013(0x150)](_0x37dc2d){}} \ No newline at end of file +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 diff --git a/src/core.lib/src/adapters/NodeIGlobalAdapter.js b/src/core.lib/src/adapters/NodeIGlobalAdapter.js index 3f4d5e29..a052a890 100644 --- a/src/core.lib/src/adapters/NodeIGlobalAdapter.js +++ b/src/core.lib/src/adapters/NodeIGlobalAdapter.js @@ -1 +1 @@ -var _0x2939c5=_0x5c92;function _0x444e(){var _0x387a96=['onGetOfflineMsg','508976CqGqPD','841056SpHjYV','1885953bvARcY','5vuDhBq','onUpdateGeneralFlag','539562iegsWb','1666696qZNLIt','1553646RwuGaH','300720tYgvjB'];_0x444e=function(){return _0x387a96;};return _0x444e();}function _0x5c92(_0x2b8964,_0x500df2){var _0x444e11=_0x444e();return _0x5c92=function(_0x5c92b2,_0x348f8a){_0x5c92b2=_0x5c92b2-0x96;var _0x5f1f53=_0x444e11[_0x5c92b2];return _0x5f1f53;},_0x5c92(_0x2b8964,_0x500df2);}(function(_0x12f213,_0x5b3c66){var _0x4b9e50=_0x5c92,_0x1df8cf=_0x12f213();while(!![]){try{var _0x3543f2=parseInt(_0x4b9e50(0x96))/0x1+-parseInt(_0x4b9e50(0x9b))/0x2+-parseInt(_0x4b9e50(0x98))/0x3+parseInt(_0x4b9e50(0x9c))/0x4+parseInt(_0x4b9e50(0x99))/0x5*(parseInt(_0x4b9e50(0x9d))/0x6)+-parseInt(_0x4b9e50(0x9e))/0x7+parseInt(_0x4b9e50(0x97))/0x8;if(_0x3543f2===_0x5b3c66)break;else _0x1df8cf['push'](_0x1df8cf['shift']());}catch(_0x48230a){_0x1df8cf['push'](_0x1df8cf['shift']());}}}(_0x444e,0x550ab));export class GlobalAdapter{['onLog'](..._0x134cfe){}['onGetSrvCalTime'](..._0x1ad4a8){}['onShowErrUITips'](..._0x4efcf4){}['fixPicImgType'](..._0x361410){}['getAppSetting'](..._0x59b72d){}['onInstallFinished'](..._0x5a6e5c){}[_0x2939c5(0x9a)](..._0x48be09){}[_0x2939c5(0x9f)](..._0x430918){}} \ No newline at end of file +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 diff --git a/src/core.lib/src/adapters/index.js b/src/core.lib/src/adapters/index.js index f016588f..34ca2cd2 100644 --- a/src/core.lib/src/adapters/index.js +++ b/src/core.lib/src/adapters/index.js @@ -1 +1 @@ -(function(_0x2ea151,_0x55cc34){var _0x38d405=_0x57a7,_0x4d6dfb=_0x2ea151();while(!![]){try{var _0x27d103=-parseInt(_0x38d405(0x1bd))/0x1*(-parseInt(_0x38d405(0x1c2))/0x2)+parseInt(_0x38d405(0x1bb))/0x3*(-parseInt(_0x38d405(0x1be))/0x4)+-parseInt(_0x38d405(0x1bf))/0x5*(-parseInt(_0x38d405(0x1c3))/0x6)+-parseInt(_0x38d405(0x1c0))/0x7+-parseInt(_0x38d405(0x1bc))/0x8+parseInt(_0x38d405(0x1c4))/0x9+-parseInt(_0x38d405(0x1c1))/0xa*(parseInt(_0x38d405(0x1c5))/0xb);if(_0x27d103===_0x55cc34)break;else _0x4d6dfb['push'](_0x4d6dfb['shift']());}catch(_0x4b2257){_0x4d6dfb['push'](_0x4d6dfb['shift']());}}}(_0x36fd,0x53bf0));export*from'./NodeIDependsAdapter';function _0x57a7(_0x100c5a,_0x54ff5f){var _0x36fd98=_0x36fd();return _0x57a7=function(_0x57a7aa,_0x1efa11){_0x57a7aa=_0x57a7aa-0x1bb;var _0x34959b=_0x36fd98[_0x57a7aa];return _0x34959b;},_0x57a7(_0x100c5a,_0x54ff5f);}export*from'./NodeIDispatcherAdapter';function _0x36fd(){var _0x309643=['35vQBpsy','1740284LmgFVU','1020940gmwWOG','1232aIFRDL','474072xaKzGu','4018950PKMWYM','33BpnFdQ','27339bOcqOC','1411032ZtBdjU','136cixToE','4niHgnn'];_0x36fd=function(){return _0x309643;};return _0x36fd();}export*from'./NodeIGlobalAdapter'; \ No newline at end of file +(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 diff --git a/src/core.lib/src/apis/file.js b/src/core.lib/src/apis/file.js index cfd74245..e67292d4 100644 --- a/src/core.lib/src/apis/file.js +++ b/src/core.lib/src/apis/file.js @@ -1 +1 @@ -const _0x55bf23=_0x309b;(function(_0x1e5f3e,_0x11d954){const _0x3a8fd9=_0x309b,_0x6b6c48=_0x1e5f3e();while(!![]){try{const _0x304267=-parseInt(_0x3a8fd9(0x184))/0x1+parseInt(_0x3a8fd9(0x183))/0x2*(parseInt(_0x3a8fd9(0x17e))/0x3)+parseInt(_0x3a8fd9(0x146))/0x4+parseInt(_0x3a8fd9(0x18a))/0x5*(-parseInt(_0x3a8fd9(0x176))/0x6)+parseInt(_0x3a8fd9(0x145))/0x7+parseInt(_0x3a8fd9(0x175))/0x8+-parseInt(_0x3a8fd9(0x171))/0x9;if(_0x304267===_0x11d954)break;else _0x6b6c48['push'](_0x6b6c48['shift']());}catch(_0x164b91){_0x6b6c48['push'](_0x6b6c48['shift']());}}}(_0x4b7d,0x7561b));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0xc33a9e from'path';import _0x194602 from'fs';import _0x51289b from'fs/promises';function _0x309b(_0x5411ff,_0x3c284d){const _0x4b7d54=_0x4b7d();return _0x309b=function(_0x309b7c,_0xaa3dff){_0x309b7c=_0x309b7c-0x143;let _0x5a311c=_0x4b7d54[_0x309b7c];return _0x5a311c;},_0x309b(_0x5411ff,_0x3c284d);}import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x422dd5 from'file-type';import{MsgListener}from'@/core/listeners';function _0x4b7d(){const _0x5e59db=['delete','unlink','indexOf','392504sunuXl','2194732WxBveF','getChatCacheList','getRkey','ZYcOT','onRichMediaDownloadComplete','LjnmI','RRPXL','basename','tsKWI','downloadRichMedia','&rkey=','下载超时','getStorageCleanService','existsSync','getDesktopTmpPath','getRichMediaFilePathForGuild','MZNbB','clearCache','lhntQ','session','SinJG','HqPdx','ext','PqYKt','BgPux','addCacheScannedPaths','scanCache','getImageUrl','originImageUrl','getImageSize','getChatCacheInfo','getFileCacheInfo','/download','VCkwo','filePath','startsWith','hotUpdate','getCacheSessionPathList','getFileSize','private_rkey','defaultFileDownloadPath','toUpperCase','set','3060927Itmpuo','copyFile','clearCacheDataByKeys','downloadMedia','4951488fPtkZZ','5874TmoVck','IGetM','onLoginSuccess','mIbVI','addListener','FAKTz','md5HexStr','图片url获取失败','3RreJkS','UAvVb','/gchatpic_new/0/0-0-','getFileType','util','98364crEOaG','257154AKNFJx','setCacheSilentScan','getHotUpdateCachePath','PIC','getMsgService','clearChatCacheInfo','995ddeOsR','clearChatCache'];_0x4b7d=function(){return _0x5e59db;};return _0x4b7d();}import _0x219445 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[_0x55bf23(0x14a)]=_0x30e1e9=>{const _0x1c8d6b=_0x55bf23,_0xd71df5={'BgPux':function(_0x4d57ee,_0x5393ba){return _0x4d57ee(_0x5393ba);}};for(const [_0x840339,_0x232915]of downloadMediaTasks){_0xd71df5[_0x1c8d6b(0x15e)](_0x232915,_0x30e1e9),downloadMediaTasks[_0x1c8d6b(0x18c)](_0x840339);}},setTimeout(()=>{const _0x14d545=_0x55bf23;napCatCore[_0x14d545(0x178)](()=>{const _0x222fa4=_0x14d545;napCatCore[_0x222fa4(0x17a)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x55bf23(0x181)](_0x296b01){return _0x422dd5['fileTypeFromFile'](_0x296b01);}static async[_0x55bf23(0x172)](_0x2b3e0c,_0x40e90b){const _0x41737f=_0x55bf23;await napCatCore[_0x41737f(0x182)][_0x41737f(0x172)](_0x2b3e0c,_0x40e90b);}static async[_0x55bf23(0x16c)](_0x54e9f){const _0x39c469=_0x55bf23;return await napCatCore[_0x39c469(0x182)]['getFileSize'](_0x54e9f);}static async['uploadFile'](_0x13eabc,_0x5c94e5=ElementType[_0x55bf23(0x187)],_0x263c29=0x0){const _0x1b9026=_0x55bf23,_0x41a1e0={'MZNbB':function(_0x572f59,_0x24ca78){return _0x572f59(_0x24ca78);},'FAKTz':function(_0x1f874b,_0x56add6){return _0x1f874b+_0x56add6;},'qCePU':function(_0x4ef9d7,_0x5f372d){return _0x4ef9d7===_0x5f372d;}},_0x343d6c=await _0x41a1e0[_0x1b9026(0x156)](calculateFileMD5,_0x13eabc);let _0x1c3003=(await NTQQFileApi[_0x1b9026(0x181)](_0x13eabc))?.[_0x1b9026(0x15c)]||'';_0x1c3003&&(_0x1c3003=_0x41a1e0[_0x1b9026(0x17b)]('.',_0x1c3003));let _0x5af45c=''+_0xc33a9e[_0x1b9026(0x14d)](_0x13eabc);_0x41a1e0['qCePU'](_0x5af45c[_0x1b9026(0x144)]('.'),-0x1)&&(_0x5af45c+=_0x1c3003);const _0x53f56c=napCatCore[_0x1b9026(0x159)]['getMsgService']()[_0x1b9026(0x155)]({'md5HexStr':_0x343d6c,'fileName':_0x5af45c,'elementType':_0x5c94e5,'elementSubType':_0x263c29,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi['copyFile'](_0x13eabc,_0x53f56c);const _0x3fc91e=await NTQQFileApi['getFileSize'](_0x13eabc);return{'md5':_0x343d6c,'fileName':_0x5af45c,'path':_0x53f56c,'fileSize':_0x3fc91e,'ext':_0x1c3003};}static async[_0x55bf23(0x174)](_0x46fce2,_0x41129a,_0x464b01,_0x56c4a5,_0x54d114,_0x2364e1,_0x115766=0x3e8*0x3c*0x2,_0x3ecd86=![]){const _0x1375d7=_0x55bf23,_0xed1a71={'PqYKt':function(_0x3e3bbb,_0x57af12){return _0x3e3bbb===_0x57af12;}};if(_0x2364e1&&_0x194602[_0x1375d7(0x153)](_0x2364e1)){if(_0x3ecd86)try{await _0x51289b[_0x1375d7(0x143)](_0x2364e1);}catch(_0x13648f){}else return _0x2364e1;}return new Promise((_0x48d40e,_0x19dccf)=>{const _0x2b4644=_0x1375d7,_0x11b88c={'lhntQ':function(_0x30ec35,_0x12143f){return _0x30ec35(_0x12143f);}};let _0xb0b014=![];const _0xe10cb3=_0x262dab=>{const _0x30b9d9=_0x309b;if(_0xed1a71[_0x30b9d9(0x15d)](_0x262dab['msgId'],_0x46fce2)){_0xb0b014=!![];let _0x23d81e=_0x262dab[_0x30b9d9(0x168)];if(_0x23d81e[_0x30b9d9(0x169)]('\x5c')){const _0x1ddeb9=sessionConfig[_0x30b9d9(0x16e)];_0x23d81e=_0xc33a9e['join'](_0x1ddeb9,_0x23d81e);}_0x48d40e(_0x23d81e);}};downloadMediaTasks[_0x2b4644(0x170)](randomUUID(),_0xe10cb3),setTimeout(()=>{const _0x44ed5e=_0x2b4644;!_0xb0b014&&_0x11b88c[_0x44ed5e(0x158)](_0x19dccf,_0x44ed5e(0x151));},_0x115766),napCatCore['session'][_0x2b4644(0x188)]()[_0x2b4644(0x14f)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x46fce2,'chatType':_0x41129a,'peerUid':_0x464b01,'elementId':_0x56c4a5,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x54d114});});}static async[_0x55bf23(0x163)](_0x4ed146){const _0x1176cd={'IGetM':function(_0x2f4b40,_0x222650){return _0x2f4b40(_0x222650);},'SinJG':function(_0x344f70,_0x5cd256){return _0x344f70(_0x5cd256);},'mIbVI':function(_0x5c5012,_0x4c23df,_0x993c98){return _0x5c5012(_0x4c23df,_0x993c98);}};return new Promise((_0x4ce4da,_0xca21cb)=>{const _0x1f94f3=_0x309b,_0x4b1d5e={'RRPXL':function(_0x50d35a,_0x5906ca){const _0x347b03=_0x309b;return _0x1176cd[_0x347b03(0x177)](_0x50d35a,_0x5906ca);},'xTSoy':function(_0x338374,_0xe88048){const _0x7df54e=_0x309b;return _0x1176cd[_0x7df54e(0x15a)](_0x338374,_0xe88048);}};_0x1176cd[_0x1f94f3(0x179)](_0x219445,_0x4ed146,(_0x20f474,_0x2cacbf)=>{const _0x24cc09=_0x1f94f3;_0x20f474?_0x4b1d5e[_0x24cc09(0x14c)](_0xca21cb,_0x20f474):_0x4b1d5e['xTSoy'](_0x4ce4da,_0x2cacbf);});});}static async[_0x55bf23(0x161)](_0x28c48c,_0x44e45e){const _0x38bd99=_0x55bf23,_0xbb0ca={'HqPdx':_0x38bd99(0x166),'tsKWI':_0x38bd99(0x150),'LjnmI':function(_0x2ee5bd,_0x142dd7){return _0x2ee5bd+_0x142dd7;},'fWupX':function(_0x132ac9,_0x168f18){return _0x132ac9+_0x168f18;},'GJpwf':function(_0x3d307e,_0x4cfba1){return _0x3d307e+_0x4cfba1;},'UAvVb':function(_0x3cecd2,_0x300f1e){return _0x3cecd2||_0x300f1e;},'ZYcOT':function(_0x1e4689,_0x1e8111,_0x2cd1fb){return _0x1e4689(_0x1e8111,_0x2cd1fb);},'VCkwo':_0x38bd99(0x17d)};if(!_0x28c48c)return'';const _0x4a6639=_0x28c48c[_0x38bd99(0x162)],_0xa7b803=_0x28c48c[_0x38bd99(0x17c)],_0x3aea04=_0x28c48c[_0x38bd99(0x17c)],_0x2fafc3=_0x28c48c['fileUuid'];if(_0x4a6639){if(_0x4a6639[_0x38bd99(0x169)](_0xbb0ca[_0x38bd99(0x15b)])){if(_0x4a6639['includes'](_0xbb0ca[_0x38bd99(0x14e)]))return _0xbb0ca[_0x38bd99(0x14b)](IMAGE_HTTP_HOST_NT,_0x4a6639);const _0x56fa09=await rkeyManager[_0x38bd99(0x148)](),_0x3c1d94=_0x44e45e?_0x56fa09[_0x38bd99(0x16d)]:_0x56fa09['group_rkey'];return _0xbb0ca['fWupX'](IMAGE_HTTP_HOST_NT,_0x4a6639)+(''+_0x3c1d94);}else return _0xbb0ca['GJpwf'](IMAGE_HTTP_HOST,_0x4a6639);}else{if(_0x3aea04||_0xa7b803)return IMAGE_HTTP_HOST+_0x38bd99(0x180)+_0xbb0ca[_0x38bd99(0x17f)](_0x3aea04,_0xa7b803)[_0x38bd99(0x16f)]()+'/0';}return _0xbb0ca[_0x38bd99(0x149)](logDebug,_0xbb0ca[_0x38bd99(0x167)],_0x28c48c),'';}}export class NTQQFileCacheApi{static async[_0x55bf23(0x185)](_0x4e0f0a=!![]){return'';}static[_0x55bf23(0x16b)](){return'';}static[_0x55bf23(0x157)](_0x100042=['tmp',_0x55bf23(0x16a)]){const _0x53d34d=_0x55bf23;return napCatCore[_0x53d34d(0x159)][_0x53d34d(0x152)]()[_0x53d34d(0x173)](_0x100042);}static[_0x55bf23(0x15f)](_0x8bbaa4={}){const _0x1f9779=_0x55bf23;return napCatCore[_0x1f9779(0x159)][_0x1f9779(0x152)]()['addCacheScanedPaths'](_0x8bbaa4);}static[_0x55bf23(0x160)](){const _0x13e780=_0x55bf23;return napCatCore[_0x13e780(0x159)][_0x13e780(0x152)]()[_0x13e780(0x160)]();}static[_0x55bf23(0x186)](){return'';}static[_0x55bf23(0x154)](){return'';}static[_0x55bf23(0x147)](_0x3d0d96,_0x11ad84=0x3e8,_0x4e3358=0x0){const _0x137aae=_0x55bf23;return napCatCore[_0x137aae(0x159)][_0x137aae(0x152)]()[_0x137aae(0x164)](_0x3d0d96,_0x11ad84,0x1,_0x4e3358);}static[_0x55bf23(0x165)](_0x34ce1a,_0x5b0f11=0x3e8,_0x455d1d){const _0x440dd8=_0x455d1d?_0x455d1d:{'fileType':_0x34ce1a};}static async[_0x55bf23(0x18b)](_0xf3d61e=[],_0x48cb84=[]){const _0x15d1cb=_0x55bf23;return napCatCore[_0x15d1cb(0x159)][_0x15d1cb(0x152)]()[_0x15d1cb(0x189)](_0xf3d61e,_0x48cb84);}} \ No newline at end of file +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 diff --git a/src/core.lib/src/apis/friend.js b/src/core.lib/src/apis/friend.js index d4603c0c..68b02f74 100644 --- a/src/core.lib/src/apis/friend.js +++ b/src/core.lib/src/apis/friend.js @@ -1 +1 @@ -const _0x457e45=_0x4e0e;function _0x4b5b(){const _0x240b2b=['getBuddyService','uin','set','AKKSa','234905esmYTn','getFriends','handleFriendRequest','获取好友列表超时','then','24826QGlpMc','delete','reqTime','KdUKu','2718HumsHl','6MgUQiL','809763HqUALi','1595344wOHVui','push','uid','getBuddyList','qsLsI','onBuddyListChange','31AXCCFJ','NzWmT','2280061jdrGaL','approvalFriendRequest','16cTHQou','2765609liXDhA','onLoginSuccess','7500rqLYqO','friendUid','session'];_0x4b5b=function(){return _0x240b2b;};return _0x4b5b();}(function(_0xd63ec6,_0x2cba24){const _0x245a4a=_0x4e0e,_0x9931d6=_0xd63ec6();while(!![]){try{const _0x479e62=-parseInt(_0x245a4a(0x1e6))/0x1*(-parseInt(_0x245a4a(0x1f9))/0x2)+parseInt(_0x245a4a(0x1df))/0x3+parseInt(_0x245a4a(0x1ea))/0x4*(parseInt(_0x245a4a(0x1f4))/0x5)+-parseInt(_0x245a4a(0x1fe))/0x6*(parseInt(_0x245a4a(0x1e8))/0x7)+parseInt(_0x245a4a(0x1e0))/0x8+parseInt(_0x245a4a(0x1fd))/0x9*(-parseInt(_0x245a4a(0x1ed))/0xa)+-parseInt(_0x245a4a(0x1eb))/0xb;if(_0x479e62===_0x2cba24)break;else _0x9931d6['push'](_0x9931d6['shift']());}catch(_0x1bfb06){_0x9931d6['push'](_0x9931d6['shift']());}}}(_0x4b5b,0x3a358));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';function _0x4e0e(_0x492aba,_0x2490de){const _0x4b5b78=_0x4b5b();return _0x4e0e=function(_0x4e0ec9,_0x351c9d){_0x4e0ec9=_0x4e0ec9-0x1df;let _0x4612a2=_0x4b5b78[_0x4e0ec9];return _0x4612a2;},_0x4e0e(_0x492aba,_0x2490de);}import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x457e45(0x1e5)]=_0x1c2a8e=>{const _0x323186=_0x457e45,_0x3c7104={'HvjSC':function(_0x4f1440,_0x4d9691){return _0x4f1440(_0x4d9691);}};for(const [_0x5efea5,_0x480780]of buddyChangeTasks){_0x3c7104['HvjSC'](_0x480780,_0x1c2a8e),buddyChangeTasks[_0x323186(0x1fa)](_0x5efea5);}},setTimeout(()=>{const _0x377492=_0x457e45;napCatCore[_0x377492(0x1ec)](()=>{napCatCore['addListener'](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x457e45(0x1f5)](_0xb2ddf2=![]){const _0x328b82=_0x457e45,_0x1ce56b={'qsLsI':function(_0x4702e9,_0x283231){return _0x4702e9(_0x283231);},'KdUKu':_0x328b82(0x1f7),'NzWmT':function(_0x846f01,_0x413925){return _0x846f01(_0x413925);},'AKKSa':function(_0x40b5f6,_0x5b741f,_0x5ebbb3){return _0x40b5f6(_0x5b741f,_0x5ebbb3);}};return new Promise((_0x5ac26f,_0x263ade)=>{const _0x5d8984=_0x328b82;let _0x24f5a8=![];_0x1ce56b[_0x5d8984(0x1f3)](setTimeout,()=>{const _0x14e176=_0x5d8984;!_0x24f5a8&&(_0x1ce56b[_0x14e176(0x1e4)](logDebug,_0x1ce56b[_0x14e176(0x1fc)]),_0x1ce56b[_0x14e176(0x1e4)](_0x263ade,_0x14e176(0x1f7)));},0x1388);const _0x2a1e1e=[],_0x2b2771=_0x1b6532=>{const _0x4e755a=_0x5d8984;for(const _0x136476 of _0x1b6532){for(const _0x233f4d of _0x136476['buddyList']){_0x2a1e1e[_0x4e755a(0x1e1)](_0x233f4d),uid2UinMap[_0x233f4d[_0x4e755a(0x1e2)]]=_0x233f4d[_0x4e755a(0x1f1)];}}_0x24f5a8=!![],_0x1ce56b[_0x4e755a(0x1e7)](_0x5ac26f,_0x2a1e1e);};buddyChangeTasks[_0x5d8984(0x1f2)](randomUUID(),_0x2b2771),napCatCore[_0x5d8984(0x1ef)][_0x5d8984(0x1f0)]()[_0x5d8984(0x1e3)](_0xb2ddf2)[_0x5d8984(0x1f8)](_0x1d398c=>{logDebug('开始获取好友列表',_0x1d398c);});});}static async[_0x457e45(0x1f6)](_0x209772,_0x81cd4b){const _0x3648ed=_0x457e45;napCatCore[_0x3648ed(0x1ef)]['getBuddyService']()?.[_0x3648ed(0x1e9)]({'friendUid':_0x209772[_0x3648ed(0x1ee)],'reqTime':_0x209772[_0x3648ed(0x1fb)],'accept':_0x81cd4b});}} \ No newline at end of file +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 diff --git a/src/core.lib/src/apis/group.js b/src/core.lib/src/apis/group.js index 28748a5f..300c05b3 100644 --- a/src/core.lib/src/apis/group.js +++ b/src/core.lib/src/apis/group.js @@ -1 +1 @@ -const _0x1411f5=_0x1cb9;(function(_0x49162c,_0x46f52c){const _0x4fa21f=_0x1cb9,_0x156345=_0x49162c();while(!![]){try{const _0x3390c8=-parseInt(_0x4fa21f(0x200))/0x1+-parseInt(_0x4fa21f(0x1e3))/0x2*(parseInt(_0x4fa21f(0x1c8))/0x3)+-parseInt(_0x4fa21f(0x1e1))/0x4*(-parseInt(_0x4fa21f(0x1d6))/0x5)+parseInt(_0x4fa21f(0x203))/0x6+-parseInt(_0x4fa21f(0x1cb))/0x7+parseInt(_0x4fa21f(0x1ce))/0x8*(-parseInt(_0x4fa21f(0x1e2))/0x9)+-parseInt(_0x4fa21f(0x1d3))/0xa*(-parseInt(_0x4fa21f(0x1eb))/0xb);if(_0x3390c8===_0x46f52c)break;else _0x156345['push'](_0x156345['shift']());}catch(_0x3f7c4f){_0x156345['push'](_0x156345['shift']());}}}(_0x29fd,0x7b3ad));import{NTQQUserApi,napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';function _0x29fd(){const _0x469ca4=['uin','12312iMWZey','获取群列表超时','获取群成员列表出错,','wFzBn','iqoda','2260610rBSyoj','lSZjF','set','35xqbwQE','type','setGroupTitle','NCWkc','onGroupListUpdate','errCode','setGroupName','groupCode','groupMemberList_MainWindow','modifyMemberCardName','uploadGroupBulletinPic','564116lRHhmr','4185KpLHGL','369346nijsFd','setGroupShutUp','modifyGroupName','delete','setMemberShutUp','result','cDUUp','qun.qq.com','44RcJHcv','lmPPk','BlOVr','hdzfN','session','dwZhV','group','createMemberListScene','getPSkey','getGroupMembers','IPzIt','getGroupService','publishGroupBulletin','modifyMemberRole','errMsg','onLoginSuccess','tfJZS','addListener','setMemberCard','operateSysNotify','quitGroup','68874RZcIWd','kickMember','getGroups','1524360AOajmB','setMemberRole','infos','getSingleScreenNotifies','获取群系统消息列表超时','mEmQA','3lHnCZb','getGroupList','banMember','4701032nkJXsz','getGroupIgnoreNotifies'];_0x29fd=function(){return _0x469ca4;};return _0x29fd();}import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';function _0x1cb9(_0x572ade,_0x543ac1){const _0x29fdee=_0x29fd();return _0x1cb9=function(_0x1cb912,_0x383162){_0x1cb912=_0x1cb912-0x1c8;let _0x200c2b=_0x29fdee[_0x1cb912];return _0x200c2b;},_0x1cb9(_0x572ade,_0x543ac1);}const groupMemberTasks=new Map(),SingleScreenNotifiesTasks=new Map(),groupListener=new GroupListener();groupListener['onGroupSingleScreenNotifies']=(_0x36eb23,_0x4f642e,_0x16a475)=>{const _0x1d3479={'PDFNk':function(_0x1115fd,_0x122d8a,_0x3bd284,_0xa4e36b){return _0x1115fd(_0x122d8a,_0x3bd284,_0xa4e36b);}};for(const [_0x2faa6c,_0x4aad5d]of SingleScreenNotifiesTasks){_0x1d3479['PDFNk'](_0x4aad5d,_0x36eb23,_0x4f642e,_0x16a475),groupMemberTasks['delete'](_0x2faa6c);}},groupListener[_0x1411f5(0x1da)]=(_0x1343c7,_0x31f38d)=>{const _0x58b6f4=_0x1411f5,_0xbad26b={'lSZjF':function(_0x5c10bc,_0x54473f,_0xad94b7){return _0x5c10bc(_0x54473f,_0xad94b7);}};for(const [_0x5e0523,_0xdfe8eb]of groupMemberTasks){_0xbad26b[_0x58b6f4(0x1d4)](_0xdfe8eb,_0x1343c7,_0x31f38d),groupMemberTasks[_0x58b6f4(0x1e6)](_0x5e0523);}},setTimeout(()=>{const _0x34108d=_0x1411f5;napCatCore[_0x34108d(0x1fa)](()=>{const _0x39a6bf=_0x34108d;napCatCore[_0x39a6bf(0x1fc)](groupListener);});},0x64);export class NTQQGroupApi{static async[_0x1411f5(0x202)](_0xcd7e48=![]){const _0x52c6a0=_0x1411f5,_0x468dfe={'IPzIt':_0x52c6a0(0x1cf),'wFzBn':function(_0x23bde6,_0x3ba604){return _0x23bde6(_0x3ba604);},'dwZhV':'获取群列表完成','sZqoH':function(_0x581881,_0x36236f,_0x4ce65c){return _0x581881(_0x36236f,_0x4ce65c);}};let _0x543571=![];return new Promise((_0x2a6e4d,_0x25efd3)=>{const _0x56fde2=_0x52c6a0,_0x2f9688={'iqoda':_0x468dfe[_0x56fde2(0x1f0)]};_0x468dfe['sZqoH'](setTimeout,()=>{const _0x210365=_0x56fde2;!_0x543571&&(logDebug(_0x468dfe[_0x210365(0x1f5)]),_0x468dfe[_0x210365(0x1d1)](_0x25efd3,_0x468dfe[_0x210365(0x1f5)]));},0x1388);const _0x8f94f=(_0x1f2586,_0x13305d)=>{const _0x53e48a=_0x56fde2;_0x543571=!![],logDebug(_0x2f9688[_0x53e48a(0x1d2)],_0x13305d),_0x2a6e4d(_0x13305d);};groupMemberTasks[_0x56fde2(0x1d5)](randomUUID(),_0x8f94f),napCatCore['session']['getGroupService']()[_0x56fde2(0x1c9)](_0xcd7e48)['then']();});}static async[_0x1411f5(0x206)](_0x14c631){const _0x10f1a4=_0x1411f5,_0x11cfd6={'ObVLs':function(_0x4ee12f,_0x2f9739){return _0x4ee12f(_0x2f9739);},'lmPPk':_0x10f1a4(0x207),'rauAF':function(_0x2d70a9,_0x4af3f4){return _0x2d70a9(_0x4af3f4);},'NCWkc':function(_0x49676f,_0x459b14,_0x528223){return _0x49676f(_0x459b14,_0x528223);}},_0x256b64=napCatCore['session'][_0x10f1a4(0x1f6)]();return new Promise((_0x42aab0,_0x5ec90b)=>{const _0x1bfc28=_0x10f1a4,_0x41fd3f={'cDUUp':function(_0x401b07,_0x33e8cc){return _0x11cfd6['rauAF'](_0x401b07,_0x33e8cc);}};let _0x1e2aff=![];_0x11cfd6[_0x1bfc28(0x1d9)](setTimeout,()=>{const _0x335306=_0x1bfc28;!_0x1e2aff&&_0x11cfd6['ObVLs'](_0x5ec90b,_0x11cfd6[_0x335306(0x1ec)]);},0x1388);const _0x4efdae=(_0x5c5bc3,_0x491c86,_0x42e957)=>{const _0x4e3d71=_0x1bfc28;_0x1e2aff=!![],_0x41fd3f[_0x4e3d71(0x1e9)](_0x42aab0,_0x42e957);};SingleScreenNotifiesTasks[_0x1bfc28(0x1d5)](randomUUID(),_0x4efdae),_0x256b64[_0x1bfc28(0x206)](![],'',_0x14c631);});}static async[_0x1411f5(0x1f4)](_0x40122a,_0x4d5736=0xbb8){const _0x24520f=_0x1411f5,_0x38c7f5={'hdzfN':_0x24520f(0x1de),'RJPTy':function(_0xd3b250,_0xe131a0){return _0xd3b250+_0xe131a0;},'tfJZS':_0x24520f(0x1d0)},_0x40fa9e=napCatCore[_0x24520f(0x1ef)][_0x24520f(0x1f6)](),_0xfceab6=_0x40fa9e[_0x24520f(0x1f2)](_0x40122a,_0x38c7f5[_0x24520f(0x1ee)]),_0x765cd6=await _0x40fa9e['getNextMemberList'](_0xfceab6,undefined,_0x4d5736);if(_0x765cd6[_0x24520f(0x1db)]!==0x0)throw _0x38c7f5['RJPTy'](_0x38c7f5[_0x24520f(0x1fb)],_0x765cd6[_0x24520f(0x1f9)]);return _0x765cd6[_0x24520f(0x1e8)][_0x24520f(0x205)]['forEach'](_0x855a57=>{const _0x3c4d47=_0x24520f;uid2UinMap[_0x855a57['uid']]=_0x855a57[_0x3c4d47(0x1cd)];}),_0x765cd6['result'][_0x24520f(0x205)];}static async['getGroupNotifies'](){}static async[_0x1411f5(0x1cc)](){}static async[_0x1411f5(0x1e0)](_0x2da0d8,_0x1b0dda){const _0x45e61e=_0x1411f5,_0x388e7e={'mEmQA':_0x45e61e(0x1ea)},_0x586f81=(await NTQQUserApi[_0x45e61e(0x1f3)]([_0x388e7e[_0x45e61e(0x208)]]))[_0x388e7e[_0x45e61e(0x208)]];return napCatCore['session'][_0x45e61e(0x1f6)]()[_0x45e61e(0x1e0)](_0x2da0d8,_0x586f81,_0x1b0dda);}static async['handleGroupRequest'](_0x36e98f,_0xcb589c,_0x32695){const _0x2ed8dc=_0x1411f5;return napCatCore[_0x2ed8dc(0x1ef)][_0x2ed8dc(0x1f6)]()[_0x2ed8dc(0x1fe)](![],{'operateType':_0xcb589c,'targetMsg':{'seq':_0x36e98f['seq'],'type':_0x36e98f[_0x2ed8dc(0x1d7)],'groupCode':_0x36e98f[_0x2ed8dc(0x1f1)][_0x2ed8dc(0x1dd)],'postscript':_0x32695||''}});}static async[_0x1411f5(0x1ff)](_0x255c40){const _0x14f8a5=_0x1411f5;return napCatCore[_0x14f8a5(0x1ef)]['getGroupService']()[_0x14f8a5(0x1ff)](_0x255c40);}static async[_0x1411f5(0x201)](_0x2bb0e6,_0x3dbe8e,_0x305968=![],_0x3d2012=''){const _0x2a675=_0x1411f5;return napCatCore[_0x2a675(0x1ef)][_0x2a675(0x1f6)]()[_0x2a675(0x201)](_0x2bb0e6,_0x3dbe8e,_0x305968,_0x3d2012);}static async[_0x1411f5(0x1ca)](_0x565385,_0x2fcae8){const _0x28e0c6=_0x1411f5;return napCatCore[_0x28e0c6(0x1ef)]['getGroupService']()[_0x28e0c6(0x1e7)](_0x565385,_0x2fcae8);}static async['banGroup'](_0x16df0b,_0x4d74de){const _0x3eac76=_0x1411f5;return napCatCore[_0x3eac76(0x1ef)][_0x3eac76(0x1f6)]()[_0x3eac76(0x1e4)](_0x16df0b,_0x4d74de);}static async[_0x1411f5(0x1fd)](_0x239d49,_0xd5c87a,_0x3e7bae){const _0x322344=_0x1411f5;return napCatCore[_0x322344(0x1ef)][_0x322344(0x1f6)]()[_0x322344(0x1df)](_0x239d49,_0xd5c87a,_0x3e7bae);}static async[_0x1411f5(0x204)](_0x44a04b,_0x5f2bb6,_0x529dec){const _0x234f62=_0x1411f5;return napCatCore[_0x234f62(0x1ef)]['getGroupService']()[_0x234f62(0x1f8)](_0x44a04b,_0x5f2bb6,_0x529dec);}static async[_0x1411f5(0x1dc)](_0x30fa50,_0x53d178){const _0x2512a4=_0x1411f5;return napCatCore[_0x2512a4(0x1ef)]['getGroupService']()[_0x2512a4(0x1e5)](_0x30fa50,_0x53d178,![]);}static async[_0x1411f5(0x1d8)](_0x460373,_0x40d8d5,_0x6a3ace){}static async[_0x1411f5(0x1f7)](_0x44a33a,_0x1ff0ca,_0x1860dc=undefined,_0x1c553b=0x0,_0x1c1b1a=0x0){const _0x5ce242=_0x1411f5,_0x2f328e={'BlOVr':_0x5ce242(0x1ea)},_0x4c4ae1=(await NTQQUserApi[_0x5ce242(0x1f3)]([_0x2f328e['BlOVr']]))[_0x2f328e[_0x5ce242(0x1ed)]];let _0x8c96d0={'text':encodeURI(_0x1ff0ca),'picInfo':_0x1860dc,'oldFeedsId':'','pinned':_0x1c553b,'confirmRequired':_0x1c1b1a};return napCatCore[_0x5ce242(0x1ef)]['getGroupService']()[_0x5ce242(0x1f7)](_0x44a33a,_0x4c4ae1,_0x8c96d0);}} \ No newline at end of file +const _0x4cf0ca=_0x5d56;(function(_0x45b392,_0x43e4dc){const _0x2f9368=_0x5d56,_0x5104b5=_0x45b392();while(!![]){try{const _0x3b5e28=-parseInt(_0x2f9368(0x135))/0x1*(-parseInt(_0x2f9368(0x130))/0x2)+parseInt(_0x2f9368(0x103))/0x3*(parseInt(_0x2f9368(0x10d))/0x4)+parseInt(_0x2f9368(0x110))/0x5*(-parseInt(_0x2f9368(0x141))/0x6)+-parseInt(_0x2f9368(0x138))/0x7*(-parseInt(_0x2f9368(0x13d))/0x8)+-parseInt(_0x2f9368(0x119))/0x9*(parseInt(_0x2f9368(0x137))/0xa)+-parseInt(_0x2f9368(0x11e))/0xb+parseInt(_0x2f9368(0x123))/0xc*(parseInt(_0x2f9368(0x117))/0xd);if(_0x3b5e28===_0x43e4dc)break;else _0x5104b5['push'](_0x5104b5['shift']());}catch(_0x552cae){_0x5104b5['push'](_0x5104b5['shift']());}}}(_0x4fe9,0x5291b));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();function _0x4fe9(){const _0x1863e2=['kickMember','getGroupMembers','xjdms','1662177BJoEYX','获取群系统消息列表超时','session','获取群列表完成','QDfxa','onGroupSingleScreenNotifies','modifyGroupName','getSingleScreenNotifies','getPSkey','operateSysNotify','4TuYnoz','createMemberListScene','handleGroupRequest','3067105eSIuRQ','result','banGroup','nWpsf','getGroupNotifies','sFwAr','onLoginSuccess','4783987hhvtnf','setGroupShutUp','2003013mHSBUi','groupCode','errMsg','modifyMemberRole','type','6709263AIqmRO','tuuVH','QPGyK','quitGroup','ocFAi','12nPCeSA','dnZwi','uploadGroupBulletinPic','set','forEach','cEBmW','errCode','setGroupTitle','getGroupService','groupMemberList_MainWindow','ORvQu','qun.qq.com','gTBna','18pcxKfm','publishGroupBulletin','获取群列表超时','uin','infos','64453ifvHok','获取群成员列表出错,','10JWLRKn','7uUbZUm','getGroupIgnoreNotifies','seq','QNNjb','delete','2255832mvelRm','setMemberCard','onGroupListUpdate','addListener','6aKrIJP','getNextMemberList','then'];_0x4fe9=function(){return _0x1863e2;};return _0x4fe9();}function _0x5d56(_0x75ac4a,_0xa3d961){const _0x4fe957=_0x4fe9();return _0x5d56=function(_0x5d562e,_0x5e7422){_0x5d562e=_0x5d562e-0x103;let _0x4b5189=_0x4fe957[_0x5d562e];return _0x4b5189;},_0x5d56(_0x75ac4a,_0xa3d961);}groupListener[_0x4cf0ca(0x108)]=(_0x8c9813,_0x5b566b,_0x41b662)=>{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 diff --git a/src/core.lib/src/apis/index.js b/src/core.lib/src/apis/index.js index 6cb9f9d1..e6e28925 100644 --- a/src/core.lib/src/apis/index.js +++ b/src/core.lib/src/apis/index.js @@ -1 +1 @@ -function _0x5ba2(_0x46f271,_0x2cb014){var _0xff0d5d=_0xff0d();return _0x5ba2=function(_0x5ba2eb,_0x49c143){_0x5ba2eb=_0x5ba2eb-0xf7;var _0xb88bf3=_0xff0d5d[_0x5ba2eb];return _0xb88bf3;},_0x5ba2(_0x46f271,_0x2cb014);}(function(_0x418628,_0x3389d7){var _0x1546c0=_0x5ba2,_0x2b3a41=_0x418628();while(!![]){try{var _0x2ff6c0=-parseInt(_0x1546c0(0x101))/0x1*(-parseInt(_0x1546c0(0xf9))/0x2)+-parseInt(_0x1546c0(0x100))/0x3+-parseInt(_0x1546c0(0xf7))/0x4*(-parseInt(_0x1546c0(0xfd))/0x5)+parseInt(_0x1546c0(0xf8))/0x6*(parseInt(_0x1546c0(0xfa))/0x7)+parseInt(_0x1546c0(0xfc))/0x8+parseInt(_0x1546c0(0xfb))/0x9*(-parseInt(_0x1546c0(0xff))/0xa)+-parseInt(_0x1546c0(0xfe))/0xb;if(_0x2ff6c0===_0x3389d7)break;else _0x2b3a41['push'](_0x2b3a41['shift']());}catch(_0x524e16){_0x2b3a41['push'](_0x2b3a41['shift']());}}}(_0xff0d,0x2a687));function _0xff0d(){var _0x5cccba=['29844QHxsui','6rDqvXb','378eiptyC','409419yEpXuL','421808IXoyws','895hdAsXd','3359642GSqgVP','20pCLJNx','499728nKzdWv','110828nvUMqs','1852szNlXq'];_0xff0d=function(){return _0x5cccba;};return _0xff0d();}export*from'./file';export*from'./friend';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 _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 diff --git a/src/core.lib/src/apis/msg.js b/src/core.lib/src/apis/msg.js index 3fc8e1c7..1e693a25 100644 --- a/src/core.lib/src/apis/msg.js +++ b/src/core.lib/src/apis/msg.js @@ -1 +1 @@ -const _0x48d236=_0x2e0f;function _0x2e0f(_0x241dc5,_0x1a326c){const _0x943275=_0x9432();return _0x2e0f=function(_0x2e0f92,_0x5a01c1){_0x2e0f92=_0x2e0f92-0x14d;let _0x11129d=_0x943275[_0x2e0f92];return _0x11129d;},_0x2e0f(_0x241dc5,_0x1a326c);}(function(_0x1d6e0a,_0x18adc8){const _0x2242dc=_0x2e0f,_0x261c5f=_0x1d6e0a();while(!![]){try{const _0x4bb907=-parseInt(_0x2242dc(0x161))/0x1*(parseInt(_0x2242dc(0x16c))/0x2)+parseInt(_0x2242dc(0x174))/0x3+parseInt(_0x2242dc(0x171))/0x4*(parseInt(_0x2242dc(0x15c))/0x5)+parseInt(_0x2242dc(0x16b))/0x6*(parseInt(_0x2242dc(0x17d))/0x7)+parseInt(_0x2242dc(0x152))/0x8+parseInt(_0x2242dc(0x181))/0x9+-parseInt(_0x2242dc(0x165))/0xa;if(_0x4bb907===_0x18adc8)break;else _0x261c5f['push'](_0x261c5f['shift']());}catch(_0x4cc4a0){_0x261c5f['push'](_0x261c5f['shift']());}}}(_0x9432,0xd9678));function _0x9432(){const _0x692cdd=['onAddSendMsg','multiForwardMsgWithComment','addListener','com.tencent.multimsg','GYcow','getMsgHistory','find','WBUfw','TEdnz','KrdrB','setMsgRead','getMultiMsg','sendMsg','4906096TOmyhP','foBHP','nick','juUuv','setEmojiLike','yPrMQ','getMsgsByMsgId','dEtAJ','VxbbD','parse','590UQokaw','arkElement','zGxzY','msgId','session','52859Fekhzi','onLoginSuccess','nQHoG','elements','28350460rTJamY','NNzni','uid','getMsgService','set','forwardMsg','9055710BtmoSQ','24lJzGfB','sendStatus','getMsgsBySeqAndCount','catch','peerUid','25796CecsJy','then','WJtXb','1612848wnKGWQ','lQpZZ','LnQsQ','recallMsg','KcCxh','setMsgEmojiLikes','tNqhy','chatType','onMsgInfoListUpdate','7AnDPMb','activateChatAndGetHistory','fetchRecentContact','forEach','8448273dzjEUr'];_0x9432=function(){return _0x692cdd;};return _0x9432();}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[_0x48d236(0x182)]=_0x1861a2=>{const _0x44fbe1=_0x48d236,_0x4df7b8={'lQpZZ':function(_0x4a656c,_0x2050ca){return _0x4a656c(_0x2050ca);},'WPdju':function(_0x4a0e73,_0x1a9c64){return _0x4a0e73 instanceof _0x1a9c64;}};for(const [_0x44d69f,_0x5e8456]of sentMsgTasks){_0x4df7b8[_0x44fbe1(0x175)](_0x5e8456,_0x1861a2),sentMsgTasks['delete'](_0x44d69f);}if(sendMessagePool[_0x1861a2[_0x44fbe1(0x170)]]){const _0x41cf3c=sendMessagePool[_0x1861a2[_0x44fbe1(0x170)]]?.(_0x1861a2);_0x4df7b8['WPdju'](_0x41cf3c,Promise)&&_0x41cf3c[_0x44fbe1(0x172)]()[_0x44fbe1(0x16f)](logError);}},msgListener[_0x48d236(0x17c)]=_0x12b44f=>{const _0x259da8=_0x48d236,_0x3fa3c5={'mVBHl':function(_0x4456d6,_0x2081f7){return _0x4456d6(_0x2081f7);},'KlmUi':function(_0x205f8a,_0x5ab890){return _0x205f8a instanceof _0x5ab890;},'ihJNl':function(_0x256393,_0x512fbd){return _0x256393(_0x512fbd);}};_0x12b44f[_0x259da8(0x180)](_0x2d7084=>{const _0x244683=_0x259da8;new Promise((_0x402a7d,_0x29d3b2)=>{const _0x351d2a=_0x2e0f;for(const _0x3a0b0f in sendSuccessCBMap){const _0x5b30a7=sendSuccessCBMap[_0x3a0b0f],_0x319007=_0x3fa3c5['mVBHl'](_0x5b30a7,_0x2d7084),_0x44f70b=_0x5b11f5=>{_0x5b11f5&&delete sendSuccessCBMap[_0x3a0b0f];};_0x3fa3c5['KlmUi'](_0x319007,Promise)?_0x319007[_0x351d2a(0x172)](_0x44f70b):_0x3fa3c5['ihJNl'](_0x44f70b,_0x319007);}})[_0x244683(0x172)]()[_0x244683(0x16f)](log);});},setTimeout(()=>{const _0x301b7c=_0x48d236;napCatCore[_0x301b7c(0x162)](()=>{const _0xeafadd=_0x301b7c;napCatCore[_0xeafadd(0x184)](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x48d236(0x156)](_0xb76078,_0x5bb283,_0x3d2f49,_0x27e3a4=!![]){const _0x18142a=_0x48d236,_0x323124={'GYcow':function(_0x246af2,_0x236f96){return _0x246af2>_0x236f96;}};return _0x3d2f49=_0x3d2f49['toString'](),napCatCore[_0x18142a(0x160)][_0x18142a(0x168)]()[_0x18142a(0x179)](_0xb76078,_0x5bb283,_0x3d2f49,_0x323124[_0x18142a(0x186)](_0x3d2f49['length'],0x3)?'2':'1',_0x27e3a4);}static async[_0x48d236(0x150)](_0x9a6b2e,_0x3ead61,_0x298689){const _0x57cc34=_0x48d236;return napCatCore[_0x57cc34(0x160)][_0x57cc34(0x168)]()[_0x57cc34(0x150)](_0x9a6b2e,_0x3ead61,_0x298689);}static async[_0x48d236(0x158)](_0x30889a,_0x551a9f){const _0x44d0f3=_0x48d236;return await napCatCore[_0x44d0f3(0x160)][_0x44d0f3(0x168)]()[_0x44d0f3(0x158)](_0x30889a,_0x551a9f);}static async['getMsgsBySeqAndCount'](_0x3137a8,_0x57ea7b,_0x2a6548,_0x40ae54,_0xf20ba7){const _0x58d9bc=_0x48d236;return await napCatCore[_0x58d9bc(0x160)][_0x58d9bc(0x168)]()[_0x58d9bc(0x16e)](_0x3137a8,_0x57ea7b,_0x2a6548,_0x40ae54,_0xf20ba7);}static async['activateChat'](_0x4cb441){}static async[_0x48d236(0x17e)](_0x1e11e4){}static async[_0x48d236(0x14f)](_0x3fd534){const _0x15c1c5=_0x48d236;return napCatCore['session'][_0x15c1c5(0x168)]()[_0x15c1c5(0x14f)](_0x3fd534);}static async[_0x48d236(0x187)](_0x20d235,_0x571046,_0x1c182a){const _0x245238=_0x48d236;return napCatCore[_0x245238(0x160)][_0x245238(0x168)]()['getMsgsIncludeSelf'](_0x20d235,_0x571046,_0x1c182a,!![]);}static async[_0x48d236(0x17f)](){}static async[_0x48d236(0x177)](_0x2fc273,_0x30b2c4){const _0x1a05ca=_0x48d236;await napCatCore[_0x1a05ca(0x160)][_0x1a05ca(0x168)]()[_0x1a05ca(0x177)]({'chatType':_0x2fc273[_0x1a05ca(0x17b)],'peerUid':_0x2fc273['peerUid']},_0x30b2c4);}static async[_0x48d236(0x151)](_0x49ef6a,_0x410c4b,_0x145f85=!![],_0x1ee35d=0x2710){const _0x3a62e7=_0x48d236,_0x4b4f67={'KmInG':function(_0x310e7f,_0x45dda9){return _0x310e7f>_0x45dda9;},'LnQsQ':'发送超时','tNqhy':function(_0x169e79,_0x45ce77){return _0x169e79(_0x45ce77);},'WBUfw':function(_0x5217e4){return _0x5217e4();},'zGxzY':function(_0x40ddd1,_0x58b6ad){return _0x40ddd1(_0x58b6ad);},'VxbbD':function(_0x3ef856,_0x18ac58){return _0x3ef856===_0x18ac58;},'KrdrB':function(_0x51729a,_0x18c097){return _0x51729a(_0x18c097);},'nvjEm':function(_0x2440b8,_0x21a42c,_0x1c2c16){return _0x2440b8(_0x21a42c,_0x1c2c16);},'WJtXb':function(_0x2340fd){return _0x2340fd();}},_0x5e55d4=_0x49ef6a[_0x3a62e7(0x170)];let _0x45bb46=0x0;const _0x526649=async()=>{const _0x453c73=_0x3a62e7;if(_0x4b4f67['KmInG'](_0x45bb46,_0x1ee35d))throw _0x4b4f67[_0x453c73(0x176)];const _0x4eabcc=sendMessagePool[_0x49ef6a[_0x453c73(0x170)]];if(_0x4eabcc)return await _0x4b4f67[_0x453c73(0x17a)](sleep,0x1f4),_0x45bb46+=0x1f4,await _0x4b4f67[_0x453c73(0x189)](_0x526649);else return;};return await _0x4b4f67[_0x3a62e7(0x173)](_0x526649),new Promise((_0x577e66,_0x4c9710)=>{const _0x5da374=_0x3a62e7,_0x5a22a1={'juUuv':function(_0x45650b,_0x2b9e8d){const _0x4b61b5=_0x2e0f;return _0x4b4f67[_0x4b61b5(0x15a)](_0x45650b,_0x2b9e8d);},'KcCxh':function(_0x1553fe,_0x3e1ec6){return _0x4b4f67['VxbbD'](_0x1553fe,_0x3e1ec6);},'yPrMQ':function(_0x4cc44c,_0x31c44b){const _0x5c726e=_0x2e0f;return _0x4b4f67[_0x5c726e(0x14e)](_0x4cc44c,_0x31c44b);}};let _0x4eed14=![],_0x4f6e6e=null;const _0x271efd=randomUUID();sendSuccessCBMap[_0x271efd]=_0x316da2=>{const _0x27eac9=_0x2e0f;if(_0x5a22a1[_0x27eac9(0x155)](_0x316da2[_0x27eac9(0x15f)],_0x4f6e6e?.['msgId'])){if(_0x5a22a1[_0x27eac9(0x178)](_0x316da2[_0x27eac9(0x16d)],0x2))return delete sendSuccessCBMap[_0x271efd],_0x4eed14=!![],_0x5a22a1[_0x27eac9(0x157)](_0x577e66,_0x316da2),!![];return![];}return![];},sendMessagePool[_0x5e55d4]=async _0x43e38b=>{delete sendMessagePool[_0x5e55d4],_0x4f6e6e=_0x43e38b;},_0x4b4f67['nvjEm'](setTimeout,()=>{const _0x4549fe=_0x2e0f;if(_0x4eed14)return;delete sendMessagePool[_0x5e55d4],delete sendSuccessCBMap[_0x271efd],_0x4b4f67[_0x4549fe(0x15e)](_0x4c9710,_0x4b4f67['LnQsQ']);},_0x1ee35d);const _0x38a4a1=napCatCore[_0x5da374(0x160)][_0x5da374(0x168)]()['sendMsg']('0',_0x49ef6a,_0x410c4b,new Map());});}static async[_0x48d236(0x16a)](_0x2b4e77,_0x12a906,_0x57ab71){const _0x4389aa=_0x48d236;return napCatCore['session'][_0x4389aa(0x168)]()[_0x4389aa(0x16a)](_0x57ab71,_0x2b4e77,[_0x12a906],new Map());}static async['multiForwardMsg'](_0x5dc56b,_0x129abe,_0x22f44b){const _0x522367={'zQony':function(_0x2edc47,_0x5180b8){return _0x2edc47!=_0x5180b8;},'foBHP':function(_0x27aebd,_0x47791e){return _0x27aebd==_0x47791e;},'TEdnz':function(_0x39f70b,_0x4fd3d7){return _0x39f70b(_0x4fd3d7);},'NNzni':'转发消息超时','dEtAJ':function(_0x396267){return _0x396267();},'nQHoG':function(_0x5c598a,_0x459ea4,_0xff5520){return _0x5c598a(_0x459ea4,_0xff5520);}},_0xfe14a9=_0x22f44b['map'](_0x35711d=>{const _0x2dc157=_0x2e0f;return{'msgId':_0x35711d,'senderShowName':selfInfo[_0x2dc157(0x154)]};});return new Promise((_0x2bf64f,_0x34a3d5)=>{const _0x263585=_0x2e0f;let _0x161176=![];const _0x576e39=_0xbd0bfe=>{const _0x4cfb8f=_0x2e0f,_0x585bd0=_0xbd0bfe[_0x4cfb8f(0x164)][_0x4cfb8f(0x188)](_0x569067=>_0x569067[_0x4cfb8f(0x15d)]);if(!_0x585bd0)return;const _0xf573bf=JSON[_0x4cfb8f(0x15b)](_0x585bd0[_0x4cfb8f(0x15d)]['bytesData']);if(_0x522367['zQony'](_0xf573bf['app'],_0x4cfb8f(0x185)))return;_0x522367[_0x4cfb8f(0x153)](_0xbd0bfe[_0x4cfb8f(0x170)],_0x129abe[_0x4cfb8f(0x170)])&&_0xbd0bfe['senderUid']==selfInfo[_0x4cfb8f(0x167)]&&(_0x161176=!![],_0x522367[_0x4cfb8f(0x14d)](_0x2bf64f,_0xbd0bfe));};sentMsgTasks[_0x263585(0x169)](_0x522367[_0x263585(0x159)](randomUUID),_0x576e39),_0x522367[_0x263585(0x163)](setTimeout,()=>{const _0x22bdca=_0x263585;!_0x161176&&_0x522367[_0x22bdca(0x14d)](_0x34a3d5,_0x522367[_0x22bdca(0x166)]);},0x1388),napCatCore[_0x263585(0x160)][_0x263585(0x168)]()[_0x263585(0x183)](_0xfe14a9,_0x5dc56b,_0x129abe,[],new Map());});}} \ No newline at end of file +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 diff --git a/src/core.lib/src/apis/sign.js b/src/core.lib/src/apis/sign.js index 4f1d6344..a68f8e9c 100644 --- a/src/core.lib/src/apis/sign.js +++ b/src/core.lib/src/apis/sign.js @@ -1 +1 @@ -(function(_0x29c259,_0x56fda5){const _0xd8cbb8=_0x4c87,_0x41cf3a=_0x29c259();while(!![]){try{const _0x11f1ce=-parseInt(_0xd8cbb8(0xe0))/0x1+parseInt(_0xd8cbb8(0xef))/0x2*(-parseInt(_0xd8cbb8(0xf7))/0x3)+parseInt(_0xd8cbb8(0x10a))/0x4*(parseInt(_0xd8cbb8(0xf9))/0x5)+-parseInt(_0xd8cbb8(0xe7))/0x6+-parseInt(_0xd8cbb8(0xe4))/0x7+-parseInt(_0xd8cbb8(0xe1))/0x8*(-parseInt(_0xd8cbb8(0x109))/0x9)+parseInt(_0xd8cbb8(0xf4))/0xa;if(_0x11f1ce===_0x56fda5)break;else _0x41cf3a['push'](_0x41cf3a['shift']());}catch(_0x3c5898){_0x41cf3a['push'](_0x41cf3a['shift']());}}}(_0x4694,0x4aa5c));import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';import{selfInfo}from'../data';import{RequestUtil}from'@/common/utils/request';function _0x4694(){const _0x47f8a5=['genBkn','\x5c/\x5c/','iSoxg','AvmGn',';\x20uin=o','https://h5.qzone.qq.com/v2/vip/tx/trpc/ark-share/GenNewSignedArk?g_tk=','p_skey','qwzTU',';\x20skey=','com.tencent.miniapp.lua','title','aykmh','18IWOXEi','373860sWFoRR','SsUTQ','169719LzGrGR','2100856GCINQv','FjBUg','GET','3201037ONZgmu','data','tDFCg','1542678iaMMoJ','tagIcon','tag','getQzoneCookies','MiniApp\x20JSON\x20消息生成失败','miniapp','PLcjX','HttpGetJson','170OxBniS','&ark=','uin','source','tianxuan.imgJumpArk','6745450iOHTnH','sourcelogo','normal','10245apqhVt','oCWfX','15AOKISF','p_skey=','replace','preview'];_0x4694=function(){return _0x47f8a5;};return _0x4694();}import{WebApi}from'./webapi';function _0x4c87(_0x58db78,_0x3fa61d){const _0x469427=_0x4694();return _0x4c87=function(_0x4c87b5,_0x31a4a9){_0x4c87b5=_0x4c87b5-0xe0;let _0xcb2930=_0x469427[_0x4c87b5];return _0xcb2930;},_0x4c87(_0x58db78,_0x3fa61d);}export async function SignMiniApp(_0x2e9d16){const _0x326440=_0x4c87,_0x7dacb6={'SsUTQ':_0x326440(0xf3),'tDFCg':_0x326440(0xec),'oCWfX':_0x326440(0xfe),'HpKyo':function(_0x15e743,_0x3187f6){return _0x15e743+_0x3187f6;},'sOsae':function(_0x40fd53,_0x30a91b){return _0x40fd53+_0x30a91b;},'PLcjX':function(_0x270089,_0x5dab18){return _0x270089+_0x5dab18;},'aykmh':_0x326440(0xfa),'cXvhQ':';\x20p_uin=o','FjBUg':function(_0x460c91,_0x247dab){return _0x460c91+_0x247dab;},'TkqEx':function(_0x2cbe23,_0x192edb){return _0x2cbe23+_0x192edb;},'AvmGn':_0x326440(0xf0),'EwsSP':function(_0x3dace0,_0x28fd7f){return _0x3dace0(_0x28fd7f);},'nJnYw':_0x326440(0xe3),'qwzTU':function(_0x4fb2e1,_0x4ec187,_0x4ea55d){return _0x4fb2e1(_0x4ec187,_0x4ea55d);},'iSoxg':_0x326440(0xeb)};let _0x3c1e1c={'app':_0x326440(0x106),'bizsrc':_0x7dacb6[_0x326440(0x10b)],'view':_0x7dacb6[_0x326440(0xe6)],'prompt':_0x2e9d16['prompt'],'config':{'type':_0x326440(0xf6),'forward':0x1,'autosize':0x0},'meta':{'miniapp':{'title':_0x2e9d16[_0x326440(0x107)],'preview':_0x2e9d16[_0x326440(0xfc)][_0x326440(0xfb)](/\\/g,_0x7dacb6[_0x326440(0xf8)]),'jumpUrl':_0x2e9d16['jumpUrl'][_0x326440(0xfb)](/\\/g,_0x7dacb6[_0x326440(0xf8)]),'tag':_0x2e9d16[_0x326440(0xe9)],'tagIcon':_0x2e9d16[_0x326440(0xe8)][_0x326440(0xfb)](/\\/g,_0x7dacb6[_0x326440(0xf8)]),'source':_0x2e9d16[_0x326440(0xf2)],'sourcelogo':_0x2e9d16[_0x326440(0xf5)][_0x326440(0xfb)](/\\/g,_0x7dacb6[_0x326440(0xf8)])}}};const _0x43f740=await NTQQUserApi['getSkey']();let _0x162301=await NTQQUserApi[_0x326440(0xea)]();const _0x5cca8f=WebApi[_0x326440(0xfd)](_0x162301[_0x326440(0x103)]),_0x3f889b=_0x7dacb6['HpKyo'](_0x7dacb6['sOsae'](_0x7dacb6['sOsae'](_0x7dacb6['HpKyo'](_0x7dacb6[_0x326440(0xed)](_0x7dacb6['sOsae'](_0x7dacb6[_0x326440(0x108)],_0x162301['p_skey']),_0x326440(0x105)),_0x162301['skey'])+_0x7dacb6['cXvhQ'],selfInfo[_0x326440(0xf1)]),_0x326440(0x101)),selfInfo['uin']);let _0x2c2205=_0x7dacb6[_0x326440(0xe2)](_0x7dacb6['TkqEx'](_0x326440(0x102),_0x5cca8f)+_0x7dacb6[_0x326440(0x100)],_0x7dacb6['EwsSP'](encodeURIComponent,JSON['stringify'](_0x3c1e1c))),_0x5e0c68='';try{let _0xfdf7eb=await RequestUtil[_0x326440(0xee)](_0x2c2205,_0x7dacb6['nJnYw'],undefined,{'Cookie':_0x3f889b});_0x5e0c68=_0xfdf7eb[_0x326440(0xe5)]['signed_ark'];}catch(_0x30d6fa){_0x7dacb6[_0x326440(0x104)](logDebug,_0x7dacb6[_0x326440(0xff)],_0x30d6fa);}return _0x5e0c68;} \ No newline at end of file +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 diff --git a/src/core.lib/src/apis/system.d.ts b/src/core.lib/src/apis/system.d.ts index 099eac9c..0dcb0776 100644 --- a/src/core.lib/src/apis/system.d.ts +++ b/src/core.lib/src/apis/system.d.ts @@ -1,4 +1,7 @@ export declare class NTQQSystemApi { static hasOtherRunningQQProcess(): Promise; static ORCImage(filePath: string): Promise; + static translateEnWordToZn(words: string[]): Promise; } diff --git a/src/core.lib/src/apis/system.js b/src/core.lib/src/apis/system.js index 66024945..e910d76a 100644 --- a/src/core.lib/src/apis/system.js +++ b/src/core.lib/src/apis/system.js @@ -1 +1 @@ -var _0x1ff0b2=_0x24a7;function _0x24a7(_0x3e960f,_0x201e9b){var _0x4562f2=_0x4562();return _0x24a7=function(_0x24a782,_0x3b4a8b){_0x24a782=_0x24a782-0x187;var _0x336c82=_0x4562f2[_0x24a782];return _0x336c82;},_0x24a7(_0x3e960f,_0x201e9b);}(function(_0x470adb,_0x89a806){var _0x47bb02=_0x24a7,_0x1ce265=_0x470adb();while(!![]){try{var _0x482f2e=-parseInt(_0x47bb02(0x187))/0x1*(parseInt(_0x47bb02(0x195))/0x2)+parseInt(_0x47bb02(0x191))/0x3+-parseInt(_0x47bb02(0x18c))/0x4*(-parseInt(_0x47bb02(0x18a))/0x5)+-parseInt(_0x47bb02(0x189))/0x6*(-parseInt(_0x47bb02(0x192))/0x7)+parseInt(_0x47bb02(0x193))/0x8+parseInt(_0x47bb02(0x18d))/0x9+-parseInt(_0x47bb02(0x188))/0xa;if(_0x482f2e===_0x89a806)break;else _0x1ce265['push'](_0x1ce265['shift']());}catch(_0x5582ef){_0x1ce265['push'](_0x1ce265['shift']());}}}(_0x4562,0x41b25));import{napCatCore}from'@/core';function _0x4562(){var _0x4cbb98=['3936186HMDhOB','ORCImage','util','hasOtherRunningQQProcess','1465725iuRfHS','76363OLAjeF','1064200GqurEX','wantWinScreenOCR','1094CaHAoA','651XyktXm','9983520SkHQft','54EmlSDS','8935eAhdFy','session','1044yGuoLN'];_0x4562=function(){return _0x4cbb98;};return _0x4562();}export class NTQQSystemApi{static async[_0x1ff0b2(0x190)](){var _0x14fc63=_0x1ff0b2;return napCatCore[_0x14fc63(0x18f)][_0x14fc63(0x190)]();}static async[_0x1ff0b2(0x18e)](_0x533e9f){var _0x28a68a=_0x1ff0b2;return napCatCore[_0x28a68a(0x18b)]['getNodeMiscService']()[_0x28a68a(0x194)](_0x533e9f);}} \ No newline at end of file +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 diff --git a/src/core.lib/src/apis/user.js b/src/core.lib/src/apis/user.js index 124f2027..27e557ba 100644 --- a/src/core.lib/src/apis/user.js +++ b/src/core.lib/src/apis/user.js @@ -1 +1 @@ -const _0x44d698=_0x37c1;(function(_0x361e94,_0x4ec3cd){const _0x478b40=_0x37c1,_0x38f8cf=_0x361e94();while(!![]){try{const _0x201124=-parseInt(_0x478b40(0x108))/0x1+parseInt(_0x478b40(0x126))/0x2*(-parseInt(_0x478b40(0x11d))/0x3)+parseInt(_0x478b40(0x119))/0x4*(-parseInt(_0x478b40(0x120))/0x5)+parseInt(_0x478b40(0x139))/0x6+parseInt(_0x478b40(0x13f))/0x7+parseInt(_0x478b40(0xfe))/0x8+-parseInt(_0x478b40(0x141))/0x9;if(_0x201124===_0x4ec3cd)break;else _0x38f8cf['push'](_0x38f8cf['shift']());}catch(_0x456fd2){_0x38f8cf['push'](_0x38f8cf['shift']());}}}(_0x4ad8,0x7d7de));import{Credentials,selfInfo,uid2UinMap}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';function _0x4ad8(){const _0x4ddcca=['LNrcA','585515tkHtKu','AxaJx','forEach','getMsgService','CreatTime','getSkey','71726hlgNmO','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','getProfileLikeService','Fdjzm','PskeyData','ClientKey','Htsao','getPSkey','setHeader','set','keyIndex','dKBKI','PskeyTime','RgjvK','fromEntries','push','then','KxmZF','getRobotUinRange','5037312nQytTY','LfORB','clientKey','getQzoneCookies','onLoginSuccess','请求获取Cookies时失败','3634540Xmxcmx','domainPskeyMap','6741891CLohqZ','now','setBuddyProfileLike','skxqX','获取Pskey失败','kVXKW','getProfileService','result','%2Finfocenter&keyindex=19%27','pgIZw','&clientkey=','uid','TinaE','MBBsS','qaMCJ','NwvbL','setStatus','addListener','7714152lvLukc','JCWmE','skey','response','jBBgJ','delete','onProfileDetailInfoChanged','getUserDetailInfo\x20timeout','&u1=https%3A%2F%2Fuser.qzone.qq.com%2F','forceFetchClientKey','108462qwSwHR','get','setSelfOnlineStatus','Skey','hTtYY','HttpsGetCookies','getTipOffService','setQQAvatar','mJKqf','getPskey','ixQcM','errMsg','LPZmT','entries','nYqkb','KeyIndex','iHPqM','8bqQWBq','pABGU','uin','session','60qmdofw','XLaXg'];_0x4ad8=function(){return _0x4ddcca;};return _0x4ad8();}import{RequestUtil}from'@/common/utils/request';import{logDebug,logError}from'@/common/utils/log';function _0x37c1(_0x2d9f3e,_0x338281){const _0x4ad890=_0x4ad8();return _0x37c1=function(_0x37c1f6,_0xbe8db){_0x37c1f6=_0x37c1f6-0xfb;let _0x2f8bd5=_0x4ad890[_0x37c1f6];return _0x2f8bd5;},_0x37c1(_0x2d9f3e,_0x338281);}const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x44d698(0x104)]=_0x39b080=>{const _0x590f6c=_0x44d698;userInfoCache[_0x39b080[_0x590f6c(0x14c)]]=_0x39b080,userDetailHandlers[_0x590f6c(0x122)](_0x47aaa8=>_0x47aaa8(_0x39b080));},setTimeout(()=>{const _0x26bea9=_0x44d698;napCatCore[_0x26bea9(0x13d)](()=>{const _0x22cfd7=_0x26bea9;napCatCore[_0x22cfd7(0xfd)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x44d698(0x10a)](_0x8f282d,_0x4ed534,_0x313809){const _0x511da2=_0x44d698;return napCatCore[_0x511da2(0x11c)][_0x511da2(0x123)]()[_0x511da2(0xfc)]({'status':_0x8f282d,'extStatus':_0x4ed534,'batteryStatus':_0x313809});}static async['like'](_0x4a666f,_0x5d674f=0x1){const _0xcef9e7=_0x44d698;return napCatCore[_0xcef9e7(0x11c)][_0xcef9e7(0x128)]()[_0xcef9e7(0x143)]({'friendUid':_0x4a666f,'sourceId':0x47,'doLikeCount':_0x5d674f,'doLikeTollCount':0x0});}static async[_0x44d698(0x10f)](_0x66f082){const _0x163c9c=_0x44d698,_0x41101a=napCatCore[_0x163c9c(0x11c)][_0x163c9c(0x147)]()[_0x163c9c(0x12e)](_0x66f082);return{'result':_0x41101a?.[_0x163c9c(0x148)],'errMsg':_0x41101a?.[_0x163c9c(0x113)]};}static async['getSelfInfo'](){}static async['getUserInfo'](_0x3a413d){}static async['getUserDetailInfo'](_0x1cf865){const _0x4333be=_0x44d698,_0x23648d={'jBBgJ':function(_0x25f894,_0x3c689e){return _0x25f894===_0x3c689e;},'zXarJ':function(_0x465c3e,_0x5ecdd9){return _0x465c3e(_0x5ecdd9);},'nYqkb':function(_0x563b26){return _0x563b26();},'hTtYY':function(_0x37985c,_0x17b367,_0x1a5c23){return _0x37985c(_0x17b367,_0x1a5c23);}},_0x35e364=napCatCore[_0x4333be(0x11c)][_0x4333be(0x147)]();return new Promise((_0x4c2a02,_0x49fbd4)=>{const _0x42e21f=_0x4333be,_0x4566a9={'LNrcA':function(_0x3fdb69,_0x4998cf){return _0x23648d['zXarJ'](_0x3fdb69,_0x4998cf);}},_0x41441f=_0x23648d[_0x42e21f(0x116)](randomUUID);let _0x242019=![],_0x4b9f4b=undefined,_0x3d9069=!![];_0x23648d[_0x42e21f(0x10c)](setTimeout,()=>{const _0x23b85b=_0x42e21f;!_0x242019&&(_0x4b9f4b?_0x4566a9['LNrcA'](_0x4c2a02,_0x4b9f4b):_0x4566a9[_0x23b85b(0x11f)](_0x49fbd4,_0x23b85b(0x105))),userDetailHandlers[_0x23b85b(0x103)](_0x41441f);},0x1388),userDetailHandlers[_0x42e21f(0x12f)](_0x41441f,_0x3dbc9a=>{const _0x1ab4f4=_0x42e21f;_0x23648d[_0x1ab4f4(0x102)](_0x3dbc9a[_0x1ab4f4(0x14c)],_0x1cf865)&&(uid2UinMap[_0x1cf865]=_0x3dbc9a[_0x1ab4f4(0x11b)],_0x3d9069?(_0x4b9f4b=_0x3dbc9a,_0x3d9069=![]):(_0x242019=!![],_0x4c2a02(_0x3dbc9a)));}),_0x35e364['getUserDetailInfoWithBizInfo'](_0x1cf865,[0x0])[_0x42e21f(0x136)](_0x3218e3=>{});});}static async[_0x44d698(0x12d)](_0x121e9f,_0x742c2e=!![]){const _0x2581d3=_0x44d698,_0x4100ce={'dKBKI':function(_0x1372a5,_0x41d69b){return _0x1372a5||_0x41d69b;},'pgIZw':function(_0x29ad38,_0x20ac1a){return _0x29ad38>_0x20ac1a;},'PtPpA':function(_0x57aa54,_0x5f35e1){return _0x57aa54-_0x5f35e1;},'RgjvK':function(_0x1cd112,_0x15b2ef){return _0x1cd112*_0x15b2ef;},'MBBsS':function(_0x342972,_0x408ef0){return _0x342972>_0x408ef0;},'Dleiz':function(_0x184c2b,_0x3b04a3){return _0x184c2b===_0x3b04a3;},'JCWmE':function(_0x6a994c,_0x156620,_0x10557a){return _0x6a994c(_0x156620,_0x10557a);},'qaMCJ':_0x2581d3(0x145)},_0x2d1d4c=[],_0x43fcde={};for(const _0x437ed0 in _0x121e9f){const _0x4ae163=Credentials[_0x2581d3(0x12a)][_0x2581d3(0x109)](_0x121e9f[_0x437ed0]),_0x317f91=Credentials[_0x2581d3(0x132)][_0x2581d3(0x109)](_0x121e9f[_0x437ed0]);_0x4100ce[_0x2581d3(0x131)](!_0x4ae163,!_0x317f91)||_0x4100ce[_0x2581d3(0x14a)](_0x4100ce['PtPpA'](Date[_0x2581d3(0x142)](),_0x317f91),_0x4100ce[_0x2581d3(0x133)](0x708,0x3e8))||!_0x742c2e?_0x2d1d4c[_0x2581d3(0x135)](_0x121e9f[_0x437ed0]):_0x43fcde[_0x121e9f[_0x437ed0]]=_0x4ae163;}let _0x24ce9c={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x4100ce[_0x2581d3(0x14e)](_0x2d1d4c['length'],0x0)&&(_0x24ce9c=await napCatCore[_0x2581d3(0x11c)][_0x2581d3(0x10e)]()[_0x2581d3(0x111)](_0x2d1d4c,!![]));const _0x10fddc=_0x24ce9c[_0x2581d3(0x140)];for(const _0x12656a of _0x10fddc[_0x2581d3(0x115)]()){Credentials[_0x2581d3(0x12a)][_0x2581d3(0x12f)](_0x12656a[0x0],_0x12656a[0x1]),Credentials['PskeyTime'][_0x2581d3(0x12f)](_0x12656a[0x0],Date[_0x2581d3(0x142)]());}const _0x42835e=Object['assign'](Object[_0x2581d3(0x134)](_0x10fddc),_0x43fcde);if(_0x4100ce['Dleiz'](_0x24ce9c['result'],0x0))return _0x42835e;else _0x4100ce[_0x2581d3(0xff)](logError,_0x4100ce[_0x2581d3(0x14f)],_0x24ce9c['errMsg']);return{};}static async['getRobotUinRange'](){const _0xd06dbb=_0x44d698,_0x46e4cd=await napCatCore[_0xd06dbb(0x11c)]['getRobotService']()[_0xd06dbb(0x138)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x46e4cd?.[_0xd06dbb(0x101)]?.['robotUinRanges'];}static async[_0x44d698(0x13c)](){const _0x43e16c=_0x44d698,_0x425f44={'wHaNK':function(_0x551ac9,_0x262d75){return _0x551ac9+_0x262d75;},'pABGU':function(_0x3d89ba,_0x54678e){return _0x3d89ba+_0x54678e;},'Fdjzm':function(_0xee8baa,_0x35fb59){return _0xee8baa+_0x35fb59;},'LfORB':function(_0x5d02af,_0x30a88c){return _0x5d02af+_0x30a88c;},'eECXN':_0x43e16c(0x127),'KxmZF':_0x43e16c(0x106),'iHPqM':_0x43e16c(0x149),'TinaE':function(_0x59654f,_0x123c2d,_0x8798eb){return _0x59654f(_0x123c2d,_0x8798eb);},'kVXKW':_0x43e16c(0x13e)},_0x968d0d=_0x425f44['wHaNK'](_0x425f44[_0x43e16c(0x11a)](_0x425f44[_0x43e16c(0x129)](_0x425f44[_0x43e16c(0x11a)](_0x425f44[_0x43e16c(0x13a)](_0x425f44['eECXN']+selfInfo[_0x43e16c(0x11b)],_0x43e16c(0x14b)),Credentials[_0x43e16c(0x12b)]),_0x425f44[_0x43e16c(0x137)]),selfInfo[_0x43e16c(0x11b)]),_0x425f44[_0x43e16c(0x118)]);let _0x2d3cea={};try{_0x2d3cea=await RequestUtil[_0x43e16c(0x10d)](_0x968d0d);}catch(_0x140ad9){_0x425f44[_0x43e16c(0x14d)](logDebug,_0x425f44[_0x43e16c(0x146)],_0x140ad9),_0x2d3cea={};}return _0x2d3cea;}static async[_0x44d698(0x125)](_0x8cfca=!![]){const _0x360f54=_0x44d698,_0x56323d={'ixQcM':function(_0x3931dd,_0x28e60d){return _0x3931dd-_0x28e60d;},'skxqX':function(_0x291bb0,_0x380782){return _0x291bb0*_0x380782;},'Htsao':function(_0x62056a,_0x317564){return _0x62056a+_0x317564;},'mJKqf':function(_0x279cca,_0x5f02fe){return _0x279cca+_0x5f02fe;},'sVeSw':function(_0x2eb746,_0x36c371){return _0x2eb746+_0x36c371;},'XLaXg':function(_0x598a3f,_0x1a5fc3){return _0x598a3f+_0x1a5fc3;},'AxaJx':_0x360f54(0x127),'twHtx':'&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','NwvbL':function(_0xaf77c0,_0x506c8a,_0x5da613){return _0xaf77c0(_0x506c8a,_0x5da613);},'LPZmT':'请求获取Skey时失败','xKFQl':_0x360f54(0x100)};try{if(Credentials[_0x360f54(0x124)]==0x0||_0x56323d[_0x360f54(0x112)](Date[_0x360f54(0x142)](),Credentials[_0x360f54(0x124)])>_0x56323d[_0x360f54(0x144)](0x3e8,0xe10)||!_0x8cfca){const _0x3e95dc=await napCatCore[_0x360f54(0x11c)]['getTicketService']()[_0x360f54(0x107)]('');if(_0x3e95dc[_0x360f54(0x148)]!==0x0)return'';const _0x44f972=_0x3e95dc[_0x360f54(0x13b)],_0x183105=_0x3e95dc[_0x360f54(0x130)],_0xdf38ad=_0x56323d[_0x360f54(0x12c)](_0x56323d[_0x360f54(0x110)](_0x56323d['sVeSw'](_0x56323d[_0x360f54(0x11e)](_0x56323d[_0x360f54(0x110)](_0x56323d[_0x360f54(0x121)],selfInfo[_0x360f54(0x11b)]),_0x360f54(0x14b)),_0x44f972),_0x56323d['twHtx']),_0x183105);let _0x4013a8={};try{_0x4013a8=await RequestUtil[_0x360f54(0x10d)](_0xdf38ad);}catch(_0x5e5c9f){_0x56323d[_0x360f54(0xfb)](logDebug,_0x56323d[_0x360f54(0x114)],_0x5e5c9f),_0x4013a8={};}const _0x3cd59e=_0x4013a8[_0x56323d['xKFQl']];if(!_0x3cd59e)return'';return Credentials['ClientKey']=_0x44f972,Credentials[_0x360f54(0x117)]=_0x183105,Credentials[_0x360f54(0x124)]=Date[_0x360f54(0x142)](),Credentials[_0x360f54(0x10b)]=_0x3cd59e,_0x3cd59e;}return Credentials['Skey'];}catch(_0x153607){}return undefined;}} \ No newline at end of file +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 diff --git a/src/core.lib/src/apis/webapi.js b/src/core.lib/src/apis/webapi.js index 268f7d69..1c9d736a 100644 --- a/src/core.lib/src/apis/webapi.js +++ b/src/core.lib/src/apis/webapi.js @@ -1 +1 @@ -const _0x25b539=_0x2715;(function(_0x4d4e93,_0x574637){const _0x3dd37e=_0x2715,_0x232474=_0x4d4e93();while(!![]){try{const _0x32e525=parseInt(_0x3dd37e(0x17d))/0x1*(parseInt(_0x3dd37e(0x167))/0x2)+parseInt(_0x3dd37e(0x15c))/0x3*(parseInt(_0x3dd37e(0x141))/0x4)+-parseInt(_0x3dd37e(0x1a9))/0x5+parseInt(_0x3dd37e(0x1b2))/0x6*(-parseInt(_0x3dd37e(0x1b3))/0x7)+parseInt(_0x3dd37e(0x161))/0x8+parseInt(_0x3dd37e(0x11c))/0x9+parseInt(_0x3dd37e(0x1a6))/0xa;if(_0x32e525===_0x574637)break;else _0x232474['push'](_0x232474['shift']());}catch(_0x2eec3e){_0x232474['push'](_0x232474['shift']());}}}(_0x14e4,0x90220));import{WebGroupData,selfInfo}from'@/core/data';function _0x2715(_0x4b2c8c,_0x20fd55){const _0x14e4b6=_0x14e4();return _0x2715=function(_0x2715cd,_0x17289d){_0x2715cd=_0x2715cd-0x115;let _0x4e0ada=_0x14e4b6[_0x2715cd];return _0x4e0ada;},_0x2715(_0x4b2c8c,_0x20fd55);}import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';import{RequestUtil}from'@/common/utils/request';export var WebHonorType;(function(_0x468b7a){const _0x22f792=_0x2715,_0x12c9ab={'xVzkY':_0x22f792(0x13e),'lfZRM':_0x22f792(0x120),'RcCzf':'performer','rixjA':_0x22f792(0x150),'JNGSg':_0x22f792(0x19d),'zJuKK':'STORONGE_NEWBI','eSacy':_0x22f792(0x19c),'UkYmZ':'TALKACTIVE','fScyN':_0x22f792(0x1a0),'pmsIo':_0x22f792(0x190)},_0x2ea059=_0x12c9ab[_0x22f792(0x115)][_0x22f792(0x158)]('|');let _0x29fa9b=0x0;while(!![]){switch(_0x2ea059[_0x29fa9b++]){case'0':_0x468b7a[_0x12c9ab[_0x22f792(0x1a1)]]=_0x12c9ab['RcCzf'];continue;case'1':_0x468b7a[_0x12c9ab['rixjA']]=_0x12c9ab['JNGSg'];continue;case'2':_0x468b7a[_0x12c9ab[_0x22f792(0x1ac)]]=_0x12c9ab['eSacy'];continue;case'3':_0x468b7a[_0x12c9ab[_0x22f792(0x1a8)]]='talkative';continue;case'4':_0x468b7a[_0x22f792(0x11f)]=_0x12c9ab[_0x22f792(0x164)];continue;case'5':_0x468b7a[_0x22f792(0x1b5)]=_0x12c9ab[_0x22f792(0x16e)];continue;}break;}}(WebHonorType||(WebHonorType={})));export class WebApi{static async[_0x25b539(0x19a)](_0x294a98,_0xb8390d){const _0x2f828f=_0x25b539,_0x2c937c={'CpiIo':_0x2f828f(0x121),'RiBSa':function(_0x408b4b,_0x42387c){return _0x408b4b+_0x42387c;},'cmwcX':function(_0x567466,_0x660b52){return _0x567466+_0x660b52;},'yNjHC':function(_0x488159,_0x1c0c49){return _0x488159+_0x1c0c49;},'uzhGi':function(_0x22ed43,_0x1af70f){return _0x22ed43+_0x1af70f;},'jaLSk':_0x2f828f(0x135),'XQLKY':_0x2f828f(0x126),'xtARQ':_0x2f828f(0x17a),'AtVGa':function(_0x5a2a61,_0x348a3e){return _0x5a2a61||_0x348a3e;},'zNlTF':function(_0x53e9eb,_0x104300){return _0x53e9eb+_0x104300;},'KqQvu':function(_0xa42188,_0x1565cf){return _0xa42188+_0x1565cf;},'AZiHc':_0x2f828f(0x142),'aJmIL':_0x2f828f(0x1b6),'BuQVa':'&page_limit=20','FZrkC':_0x2f828f(0x183)},_0x2f8d72=(await NTQQUserApi[_0x2f828f(0x119)]([_0x2c937c[_0x2f828f(0x13a)]]))[_0x2f828f(0x121)],_0x5646e8=await NTQQUserApi[_0x2f828f(0x169)](),_0x389d75=_0x2c937c[_0x2f828f(0x15f)](_0x2c937c[_0x2f828f(0x15f)](_0x2c937c[_0x2f828f(0x144)](_0x2c937c['cmwcX'](_0x2c937c['yNjHC'](_0x2c937c[_0x2f828f(0x139)](_0x2c937c[_0x2f828f(0x197)],_0x2f8d72),_0x2c937c[_0x2f828f(0x155)]),_0x5646e8),_0x2c937c[_0x2f828f(0x179)]),selfInfo['uin']),_0x2f828f(0x116))+selfInfo[_0x2f828f(0x122)];if(_0x2c937c['AtVGa'](!_0x5646e8,!_0x2f8d72))return undefined;const _0x761bfc=WebApi[_0x2f828f(0x184)](_0x5646e8),_0x5e9c7a=_0x2c937c[_0x2f828f(0x16d)](_0x2c937c['yNjHC'](_0x2c937c[_0x2f828f(0x14f)](_0x2c937c[_0x2f828f(0x139)](_0x2c937c[_0x2f828f(0x146)](_0x2c937c['AZiHc'],_0x761bfc),_0x2f828f(0x152)),_0x294a98),_0x2c937c[_0x2f828f(0x154)]),_0xb8390d)+_0x2c937c[_0x2f828f(0x15b)];let _0x2f5b5f;try{_0x2f5b5f=await RequestUtil['HttpGetJson'](_0x5e9c7a,_0x2c937c[_0x2f828f(0x140)],'',{'Cookie':_0x389d75});}catch{return undefined;}if(_0x2f5b5f['retcode']!==0x0)return undefined;return _0x2f5b5f;}static async[_0x25b539(0x1af)](_0x1e7682,_0x4f3d91=!![]){const _0x1504b7=_0x25b539,_0x4b902c={'aPzQZ':function(_0xbe8586,_0x33c07a){return _0xbe8586>_0x33c07a;},'TNNPf':function(_0x603de1,_0x406ff1){return _0x603de1-_0x406ff1;},'FKIed':function(_0x31c63a,_0x5c22bd){return _0x31c63a*_0x5c22bd;},'fltFg':'qun.qq.com','xIwiO':function(_0x17cbb6,_0x480ee3){return _0x17cbb6+_0x480ee3;},'VIDXT':function(_0x52dad1,_0x438d96){return _0x52dad1+_0x438d96;},'pZzqZ':_0x1504b7(0x135),'zvtpG':';\x20skey=','NkwKw':';\x20p_uin=o','DMzDe':'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','mDHsQ':_0x1504b7(0x163),'ElpVC':_0x1504b7(0x16b),'svWNv':function(_0x3df868,_0x1c79b9){return _0x3df868!==_0x1c79b9;},'cccja':function(_0x242697,_0x37215c){return _0x242697/_0x37215c;},'LgCHh':function(_0x4ba087,_0x58ae4a){return _0x4ba087<=_0x58ae4a;},'TOpWf':function(_0x4327ad,_0x5ae878){return _0x4327ad+_0x5ae878;},'fIfzS':function(_0x258a1b,_0x40e729){return _0x258a1b+_0x40e729;},'ODWUU':_0x1504b7(0x133)};let _0x1fdc3d=new Array();try{let _0x4f4091=WebGroupData[_0x1504b7(0x124)][_0x1504b7(0x157)](_0x1e7682),_0x2c7461=WebGroupData['GroupTime'][_0x1504b7(0x157)](_0x1e7682);if(!_0x2c7461||_0x4b902c[_0x1504b7(0x181)](_0x4b902c[_0x1504b7(0x15d)](Date['now'](),_0x2c7461),_0x4b902c[_0x1504b7(0x14d)](0x708,0x3e8))||!_0x4f3d91){const _0x58c505=(await NTQQUserApi[_0x1504b7(0x119)]([_0x4b902c[_0x1504b7(0x15e)]]))[_0x4b902c[_0x1504b7(0x15e)]],_0x287f01=await NTQQUserApi[_0x1504b7(0x169)](),_0x5d332b=_0x4b902c[_0x1504b7(0x14a)](_0x4b902c[_0x1504b7(0x14a)](_0x4b902c[_0x1504b7(0x14a)](_0x4b902c['VIDXT'](_0x4b902c[_0x1504b7(0x16a)],_0x58c505)+_0x4b902c[_0x1504b7(0x11d)],_0x287f01),_0x4b902c[_0x1504b7(0x17e)]),selfInfo[_0x1504b7(0x122)]);if(!_0x287f01||!_0x58c505)return _0x1fdc3d;const _0x20b19d=WebApi['genBkn'](_0x287f01),_0x18bfdc=[],_0x59d9cf=await RequestUtil[_0x1504b7(0x12d)](_0x4b902c['xIwiO'](_0x4b902c[_0x1504b7(0x185)]+_0x1e7682+_0x4b902c[_0x1504b7(0x148)],_0x20b19d),_0x4b902c['ElpVC'],'',{'Cookie':_0x5d332b});if(!_0x59d9cf?.[_0x1504b7(0x1b0)]||_0x4b902c['svWNv'](_0x59d9cf?.[_0x1504b7(0x159)],0x0)||!_0x59d9cf?.[_0x1504b7(0x128)])return[];else for(const _0x671800 in _0x59d9cf[_0x1504b7(0x128)]){_0x1fdc3d['push'](_0x59d9cf['mems'][_0x671800]);}const _0x2da435=Math[_0x1504b7(0x145)](_0x4b902c[_0x1504b7(0x13f)](_0x59d9cf[_0x1504b7(0x1b0)],0x28));for(let _0x1d72c6=0x2;_0x4b902c['LgCHh'](_0x1d72c6,_0x2da435);_0x1d72c6++){const _0x1db605=RequestUtil[_0x1504b7(0x12d)](_0x4b902c[_0x1504b7(0x1a3)](_0x4b902c[_0x1504b7(0x1a3)](_0x4b902c[_0x1504b7(0x1a3)](_0x4b902c[_0x1504b7(0x13c)](_0x4b902c[_0x1504b7(0x188)](_0x1504b7(0x16f),_0x4b902c[_0x1504b7(0x14d)](_0x4b902c['TNNPf'](_0x1d72c6,0x1),0x28)),_0x4b902c[_0x1504b7(0x160)]),_0x4b902c['FKIed'](_0x1d72c6,0x28)),_0x1504b7(0x17b)),_0x1e7682)+_0x1504b7(0x163)+_0x20b19d,_0x4b902c[_0x1504b7(0x12e)],'',{'Cookie':_0x5d332b});_0x18bfdc[_0x1504b7(0x11a)](_0x1db605);}for(let _0x37ffe3=0x1;_0x4b902c[_0x1504b7(0x198)](_0x37ffe3,_0x2da435);_0x37ffe3++){const _0x21861c=await _0x18bfdc[_0x37ffe3];if(!_0x21861c?.[_0x1504b7(0x1b0)]||_0x4b902c[_0x1504b7(0x182)](_0x21861c?.[_0x1504b7(0x159)],0x0)||!_0x21861c?.['mems'])continue;for(const _0x247462 in _0x21861c[_0x1504b7(0x128)]){_0x1fdc3d[_0x1504b7(0x11a)](_0x21861c[_0x1504b7(0x128)][_0x247462]);}}WebGroupData[_0x1504b7(0x124)]['set'](_0x1e7682,_0x1fdc3d),WebGroupData['GroupTime'][_0x1504b7(0x136)](_0x1e7682,Date['now']());}else _0x1fdc3d=_0x4f4091;}catch{return _0x1fdc3d;}return _0x1fdc3d;}static async[_0x25b539(0x149)](_0x86c9be,_0x2a303e=''){const _0x48c862=_0x25b539,_0x4c6256={'QvLEw':function(_0x11b999,_0x2fd7d0){return _0x11b999+_0x2fd7d0;},'PXdQc':function(_0x4da7bd,_0x55fccb){return _0x4da7bd+_0x55fccb;},'UnMjU':function(_0x5b3f42,_0x239ed2){return _0x5b3f42+_0x239ed2;},'XlPjc':'p_skey=','KAcVF':_0x48c862(0x126),'JqbzJ':function(_0x327b13,_0x2c5120){return _0x327b13||_0x2c5120;},'PQbaF':_0x48c862(0x163),'sQIdM':_0x48c862(0x117),'QDdQp':'&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','fDtse':_0x48c862(0x156),'lxnLW':_0x48c862(0x183)},_0x53a168=(await NTQQUserApi[_0x48c862(0x119)]([_0x48c862(0x121)]))['qun.qq.com'],_0x14133d=await NTQQUserApi[_0x48c862(0x169)](),_0x281f5d=_0x4c6256[_0x48c862(0x172)](_0x4c6256['QvLEw'](_0x4c6256[_0x48c862(0x1ae)](_0x4c6256[_0x48c862(0x175)](_0x4c6256[_0x48c862(0x175)](_0x4c6256[_0x48c862(0x1a2)],_0x53a168),_0x4c6256['KAcVF']),_0x14133d),_0x48c862(0x17a)),selfInfo[_0x48c862(0x122)]);let _0x4fa335=undefined;if(_0x4c6256[_0x48c862(0x187)](!_0x14133d,!_0x53a168))return undefined;const _0x1b3ee8=WebApi[_0x48c862(0x184)](_0x14133d),_0x17c4c6=_0x4c6256[_0x48c862(0x175)](_0x4c6256['PXdQc'](_0x4c6256[_0x48c862(0x1ae)](_0x4c6256[_0x48c862(0x1ae)](_0x4c6256[_0x48c862(0x1ae)](_0x48c862(0x14b),_0x86c9be),_0x4c6256[_0x48c862(0x178)])+_0x1b3ee8,_0x4c6256[_0x48c862(0x18a)]),_0x2a303e),_0x4c6256[_0x48c862(0x15a)]),_0x3d3ffe=_0x4c6256[_0x48c862(0x175)](_0x4c6256['fDtse'],_0x1b3ee8);try{return _0x4fa335=await RequestUtil['HttpGetJson'](_0x3d3ffe,_0x4c6256[_0x48c862(0x196)],'',{'Cookie':_0x281f5d}),_0x4fa335;}catch(_0x47cfc4){return undefined;}return undefined;}static async['getGrouptNotice'](_0x289230){const _0x3b7713=_0x25b539,_0x14bff0={'WXoMj':_0x3b7713(0x121),'YQdrm':function(_0x34fec9,_0x29f688){return _0x34fec9+_0x29f688;},'xqWgf':function(_0xe7775e,_0x5e0a77){return _0xe7775e+_0x5e0a77;},'AEbCS':_0x3b7713(0x135),'leffB':';\x20skey=','qwTrl':_0x3b7713(0x17a),'vfFpz':function(_0x19745c,_0x39b7c3){return _0x19745c||_0x39b7c3;},'mbVlp':function(_0x1d7f50,_0x172c78){return _0x1d7f50+_0x172c78;},'vjlac':_0x3b7713(0x1ad),'WFIoI':_0x3b7713(0x192),'pZWfn':function(_0x1b93fe,_0x52bce3){return _0x1b93fe!==_0x52bce3;}},_0xb81d43=(await NTQQUserApi[_0x3b7713(0x119)]([_0x14bff0[_0x3b7713(0x1aa)]]))[_0x14bff0[_0x3b7713(0x1aa)]],_0x4079e3=await NTQQUserApi[_0x3b7713(0x169)](),_0x101876=_0x14bff0[_0x3b7713(0x19b)](_0x14bff0[_0x3b7713(0x19b)](_0x14bff0[_0x3b7713(0x19b)](_0x14bff0[_0x3b7713(0x19b)](_0x14bff0['xqWgf'](_0x14bff0['AEbCS'],_0xb81d43),_0x14bff0[_0x3b7713(0x134)]),_0x4079e3),_0x14bff0[_0x3b7713(0x153)]),selfInfo[_0x3b7713(0x122)]);let _0x2b2528=undefined;if(_0x14bff0[_0x3b7713(0x189)](!_0x4079e3,!_0xb81d43))return undefined;const _0x1016c5=WebApi[_0x3b7713(0x184)](_0x4079e3),_0x2acb1b=_0x14bff0[_0x3b7713(0x17f)](_0x14bff0['xqWgf'](_0x14bff0[_0x3b7713(0x17c)]+_0x1016c5+_0x14bff0[_0x3b7713(0x12f)],_0x289230),_0x3b7713(0x1b4));try{_0x2b2528=await RequestUtil[_0x3b7713(0x12d)](_0x2acb1b,'GET','',{'Cookie':_0x101876});if(_0x14bff0[_0x3b7713(0x177)](_0x2b2528?.['ec'],0x0))return undefined;return _0x2b2528;}catch(_0x250f0d){return undefined;}return undefined;}static[_0x25b539(0x184)](_0x24a7f3){const _0x339cf2=_0x25b539,_0x254b2d={'JEvZB':function(_0xf455d9,_0x21c914){return _0xf455d9||_0x21c914;},'GUyLw':function(_0x308a68,_0x241155){return _0x308a68<_0x241155;},'raIKz':function(_0x41d4f8,_0x25f2d8){return _0x41d4f8+_0x25f2d8;},'PObNn':function(_0x30a441,_0x3bfc47){return _0x30a441+_0x3bfc47;},'XTabt':function(_0x452a1b,_0xe3be57){return _0x452a1b<<_0xe3be57;},'dMDjO':function(_0x53fac0,_0x421776){return _0x53fac0&_0x421776;}};_0x24a7f3=_0x254b2d[_0x339cf2(0x11e)](_0x24a7f3,'');let _0x1045ae=0x1505;for(let _0x44ee6e=0x0;_0x254b2d['GUyLw'](_0x44ee6e,_0x24a7f3[_0x339cf2(0x118)]);_0x44ee6e++){const _0x5081cd=_0x24a7f3[_0x339cf2(0x18d)](_0x44ee6e);_0x1045ae=_0x254b2d['raIKz'](_0x254b2d[_0x339cf2(0x166)](_0x1045ae,_0x254b2d[_0x339cf2(0x174)](_0x1045ae,0x5)),_0x5081cd);}return _0x254b2d['dMDjO'](_0x1045ae,0x7fffffff)[_0x339cf2(0x143)]();}static async[_0x25b539(0x129)](_0x4d1306,_0x45e6e1){const _0x9a700c=_0x25b539,_0x1d71d9={'MHoYh':function(_0x50f716,_0x360b01){return _0x50f716+_0x360b01;},'bzHxH':function(_0xb16066,_0xc7d84f){return _0xb16066+_0xc7d84f;},'eyVvv':'https://qun.qq.com/interactive/honorlist?gc=','NLeRi':'GET','icrSz':function(_0x1c5c85,_0x52dffc){return _0x1c5c85===_0x52dffc;},'VTjAQ':_0x9a700c(0x147),'UWyXT':'qun.qq.com','bmsMo':function(_0xcec6b3,_0x2ee201){return _0xcec6b3||_0x2ee201;},'XeHKT':function(_0x3c56f4,_0x91a9ae){return _0x3c56f4+_0x91a9ae;},'bFPdE':function(_0x20e5ad,_0x423b82){return _0x20e5ad+_0x423b82;},'wxNVB':function(_0xe668e6,_0x1ba868){return _0xe668e6+_0x1ba868;},'WtSHa':function(_0x2660bc,_0x8fbca){return _0x2660bc+_0x8fbca;},'pVtxF':'p_skey=','GazkW':_0x9a700c(0x126),'zDVKA':';\x20p_uin=o','AdTLY':_0x9a700c(0x116),'YTTUs':function(_0x1cef1f,_0x32404a){return _0x1cef1f===_0x32404a;},'gBuGP':function(_0x12cb05,_0x5f0828,_0x523e78){return _0x12cb05(_0x5f0828,_0x523e78);},'lRMiJ':_0x9a700c(0x191),'gomFC':function(_0x5d26fc,_0x113f5c){return _0x5d26fc===_0x113f5c;},'tVMpW':_0x9a700c(0x19f),'bifdI':function(_0x6ab18,_0x4166c7){return _0x6ab18(_0x4166c7);},'CLaPQ':function(_0x2cb08f,_0x1bccc5){return _0x2cb08f===_0x1bccc5;},'RdNKR':function(_0x1417ac,_0x3300a7,_0x312390){return _0x1417ac(_0x3300a7,_0x312390);},'qrbSe':_0x9a700c(0x151),'azxZP':function(_0x5a03c1,_0x4c9fc0,_0x433106){return _0x5a03c1(_0x4c9fc0,_0x433106);},'kNEyj':function(_0x4866d9,_0x2f2f26){return _0x4866d9===_0x2f2f26;},'UaknA':_0x9a700c(0x171),'TJuRx':function(_0x315cfe,_0x4c3734){return _0x315cfe===_0x4c3734;}},_0x2e6c82=(await NTQQUserApi['getPSkey']([_0x1d71d9[_0x9a700c(0x12b)]]))['qun.qq.com'],_0x151a7b=await NTQQUserApi[_0x9a700c(0x169)]();if(_0x1d71d9[_0x9a700c(0x132)](!_0x151a7b,!_0x2e6c82))return undefined;async function _0xa9800c(_0xb473d2,_0x3771df){const _0x377bd0=_0x9a700c;let _0xf1dda7=_0x1d71d9[_0x377bd0(0x1a7)](_0x1d71d9[_0x377bd0(0x165)](_0x1d71d9[_0x377bd0(0x165)](_0x1d71d9[_0x377bd0(0x1a4)],_0xb473d2),'&type='),_0x3771df[_0x377bd0(0x143)]()),_0x41705a='',_0x19464f;try{_0x41705a=await RequestUtil['HttpGetText'](_0xf1dda7,_0x1d71d9[_0x377bd0(0x123)],'',{'Cookie':_0x2f11dc});const _0x46df5e=_0x41705a['match'](/window\.__INITIAL_STATE__=(.*?);/);return _0x46df5e&&(_0x19464f=JSON[_0x377bd0(0x170)](_0x46df5e[0x1][_0x377bd0(0x127)]())),_0x1d71d9[_0x377bd0(0x11b)](_0x3771df,0x1)?_0x19464f?.[_0x377bd0(0x131)]:_0x19464f?.[_0x377bd0(0x180)];}catch(_0x315d96){logDebug(_0x1d71d9[_0x377bd0(0x137)],_0xf1dda7,_0x315d96);}return undefined;}let _0x4e384d={'group_id':_0x4d1306};const _0x2f11dc=_0x1d71d9[_0x9a700c(0x16c)](_0x1d71d9['XeHKT'](_0x1d71d9[_0x9a700c(0x19e)](_0x1d71d9[_0x9a700c(0x1a7)](_0x1d71d9[_0x9a700c(0x125)](_0x1d71d9['WtSHa'](_0x1d71d9[_0x9a700c(0x18b)],_0x2e6c82),_0x1d71d9[_0x9a700c(0x18e)]),_0x151a7b),_0x1d71d9[_0x9a700c(0x12c)])+selfInfo['uin'],_0x1d71d9['AdTLY']),selfInfo[_0x9a700c(0x122)]);if(_0x1d71d9[_0x9a700c(0x162)](_0x45e6e1,WebHonorType[_0x9a700c(0x138)])||_0x1d71d9[_0x9a700c(0x162)](_0x45e6e1,WebHonorType[_0x9a700c(0x1b5)]))try{let _0x58b54b=await _0x1d71d9[_0x9a700c(0x168)](_0xa9800c,_0x4d1306,0x1);if(!_0x58b54b)throw new Error(_0x1d71d9[_0x9a700c(0x1ab)]);_0x4e384d['current_talkative']={'user_id':_0x58b54b[0x0]?.[_0x9a700c(0x122)],'avatar':_0x58b54b[0x0]?.[_0x9a700c(0x1a5)],'nickname':_0x58b54b[0x0]?.[_0x9a700c(0x193)],'day_count':0x0,'description':_0x58b54b[0x0]?.['desc']},_0x4e384d[_0x9a700c(0x173)]=[];for(const _0x2af894 of _0x58b54b){_0x4e384d['talkative_list'][_0x9a700c(0x11a)]({'user_id':_0x2af894?.[_0x9a700c(0x122)],'avatar':_0x2af894?.[_0x9a700c(0x1a5)],'description':_0x2af894?.['desc'],'day_count':0x0,'nickname':_0x2af894?.[_0x9a700c(0x193)]});}}catch(_0x52e0b5){logDebug(_0x52e0b5);}if(_0x1d71d9[_0x9a700c(0x130)](_0x45e6e1,WebHonorType[_0x9a700c(0x120)])||_0x1d71d9[_0x9a700c(0x130)](_0x45e6e1,WebHonorType['ALL']))try{let _0x5e7350=await _0xa9800c(_0x4d1306,0x2);if(!_0x5e7350)throw new Error(_0x1d71d9[_0x9a700c(0x176)]);_0x4e384d[_0x9a700c(0x199)]=[];for(const _0x4bb06d of _0x5e7350){_0x4e384d[_0x9a700c(0x199)][_0x9a700c(0x11a)]({'user_id':_0x4bb06d?.['uin'],'nickname':_0x4bb06d?.[_0x9a700c(0x193)],'avatar':_0x4bb06d?.['avatar'],'description':_0x4bb06d?.[_0x9a700c(0x12a)]});}}catch(_0x35ad2c){_0x1d71d9[_0x9a700c(0x194)](logDebug,_0x35ad2c);}if(_0x1d71d9[_0x9a700c(0x11b)](_0x45e6e1,WebHonorType[_0x9a700c(0x120)])||_0x1d71d9[_0x9a700c(0x18f)](_0x45e6e1,WebHonorType[_0x9a700c(0x1b5)]))try{let _0x32f170=await _0x1d71d9[_0x9a700c(0x13b)](_0xa9800c,_0x4d1306,0x3);if(!_0x32f170)throw new Error(_0x1d71d9['qrbSe']);_0x4e384d['legend_list']=[];for(const _0x261f7c of _0x32f170){_0x4e384d[_0x9a700c(0x14e)][_0x9a700c(0x11a)]({'user_id':_0x261f7c?.[_0x9a700c(0x122)],'nickname':_0x261f7c?.[_0x9a700c(0x193)],'avatar':_0x261f7c?.['avatar'],'desc':_0x261f7c?.['description']});}}catch(_0x2566b0){_0x1d71d9[_0x9a700c(0x18c)](logDebug,_0x9a700c(0x151),_0x2566b0);}if(_0x1d71d9['kNEyj'](_0x45e6e1,WebHonorType['EMOTION'])||_0x1d71d9[_0x9a700c(0x18f)](_0x45e6e1,WebHonorType[_0x9a700c(0x1b5)]))try{let _0x878987=await _0xa9800c(_0x4d1306,0x6);if(!_0x878987)throw new Error(_0x9a700c(0x171));_0x4e384d[_0x9a700c(0x1b1)]=[];for(const _0x4292f7 of _0x878987){_0x4e384d[_0x9a700c(0x1b1)][_0x9a700c(0x11a)]({'user_id':_0x4292f7?.['uin'],'nickname':_0x4292f7?.['name'],'avatar':_0x4292f7?.[_0x9a700c(0x1a5)],'desc':_0x4292f7?.[_0x9a700c(0x186)]});}}catch(_0x6a7304){logDebug(_0x1d71d9[_0x9a700c(0x14c)],_0x6a7304);}return(_0x45e6e1===WebHonorType[_0x9a700c(0x11f)]||_0x1d71d9[_0x9a700c(0x13d)](_0x45e6e1,WebHonorType[_0x9a700c(0x1b5)]))&&(_0x4e384d[_0x9a700c(0x195)]=[]),_0x4e384d;}}function _0x14e4(){const _0x4c14fe=['77dbUqwH','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','ALL','&page_start=','xVzkY',';\x20uin=o','&text=','length','getPSkey','push','icrSz','2752857Kpedfp','zvtpG','JEvZB','EMOTION','PERFROMER','qun.qq.com','uin','NLeRi','GroupData','wxNVB',';\x20skey=','trim','mems','getGroupHonorInfo','desc','UWyXT','zDVKA','HttpGetJson','ElpVC','WFIoI','gomFC','talkativeList','bmsMo','&end=','leffB','p_skey=','set','VTjAQ','TALKACTIVE','uzhGi','CpiIo','RdNKR','TOpWf','TJuRx','5|3|0|1|2|4','cccja','FZrkC','1008HvbVnY','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','toString','cmwcX','ceil','yNjHC','获取当前群荣耀失败','mDHsQ','setGroupNotice','xIwiO','qid=','UaknA','FKIed','legend_list','KqQvu','LEGEND','获取群聊炽焰失败','&group_code=','qwTrl','aJmIL','XQLKY','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','get','split','errcode','QDdQp','BuQVa','1014pvNlua','TNNPf','fltFg','RiBSa','ODWUU','2684512pHWbvr','YTTUs','&bkn=','fScyN','bzHxH','PObNn','120wlRwdE','gBuGP','getSkey','pZzqZ','POST','XeHKT','zNlTF','pmsIo','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','parse','获取快乐源泉失败','QvLEw','talkative_list','XTabt','UnMjU','tVMpW','pZWfn','PQbaF','xtARQ',';\x20p_uin=o','&sort=1&gc=','vjlac','2332AXJJlm','NkwKw','mbVlp','actorList','aPzQZ','svWNv','GET','genBkn','DMzDe','description','JqbzJ','fIfzS','vfFpz','sQIdM','pVtxF','azxZP','charCodeAt','GazkW','CLaPQ','all','获取龙王信息失败','&qid=','name','bifdI','strong_newbie_list','lxnLW','jaLSk','LgCHh','performer_list','getGroupEssenceMsg','YQdrm','strong_newbie','legend','bFPdE','获取群聊之火失败','emotion','lfZRM','XlPjc','VIDXT','eyVvv','avatar','14671420BMwUqj','MHoYh','UkYmZ','4275340NujHAL','WXoMj','lRMiJ','zJuKK','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','PXdQc','getGroupMembers','count','emotion_list','484494YDYCaR'];_0x14e4=function(){return _0x4c14fe;};return _0x14e4();} \ No newline at end of file +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 diff --git a/src/core.lib/src/core.js b/src/core.lib/src/core.js index f2c16300..ae81415d 100644 --- a/src/core.lib/src/core.js +++ b/src/core.lib/src/core.js @@ -1 +1 @@ -const _0x5663c3=_0x13a7;(function(_0x5c436b,_0x22ccb2){const _0x4a5474=_0x13a7,_0x50f5f2=_0x5c436b();while(!![]){try{const _0x117b4b=parseInt(_0x4a5474(0x192))/0x1+-parseInt(_0x4a5474(0x1a3))/0x2+parseInt(_0x4a5474(0x1dd))/0x3+-parseInt(_0x4a5474(0x1d0))/0x4+-parseInt(_0x4a5474(0x1fb))/0x5+parseInt(_0x4a5474(0x223))/0x6+parseInt(_0x4a5474(0x185))/0x7;if(_0x117b4b===_0x22ccb2)break;else _0x50f5f2['push'](_0x50f5f2['shift']());}catch(_0x2dbfc2){_0x50f5f2['push'](_0x50f5f2['shift']());}}}(_0xeeb9,0xcd743));import _0x104b49 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x5a1322 from'node:path';import _0x44de70 from'node:os';import _0x280043 from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';function _0xeeb9(){const _0x15f8b0=[')\x20在线状态变更','cNfda','createHash','dataPathGlobal','constructor','1710656zhENep','KCroq','isPki','tipsTitle','errMsg','RAruB','tipsDesc','IJJYv','\x20has\x20no\x20method\x20','getBuddyService','uin','NodeQQNTWrapperUtil','onSelfStatusChanged','2860866zOMwXs','loginListener','memberCount','dataPath','本账号数据/缓存目录:','onKickedOffLine','getProfileService','vpKmE','AbusP','V1_WIN_NQ_','onLoginSuccessFuncList','NEqLz','IFdwD','lWCwy','当前账号(','digest','mkdirSync','result','get','JYIfr','NodeIDependsAdapter','onSessionInitComplete','assign','addKernelProfileListener','getQuickLoginList','data:image/png;base64,','onMemberListChange','engine','floor','DPsND','2692370rLPUMP','getNextMemberList','./nt_qq/global','BuddyListener','find','length','VCTog','proxyHandler','HrHVj','loginService','onLineDev','aisOu','replace','onLoginSuccess','onLoginFailed','consoleLog','addMsg','getMsgByLongId','addListener','init','sLFul','util','_GW_B','loginErrorInfo','map','UMgXF','ETDdx','onBuddyListChange','split','session','wfdlt','OyaBH','catch','bCvOz','onRecvSysMsg','onUserLoggedIn','快速登录失败\x20','resolve','NodeIKernelGroupListener','NJvCQ','4371774fNPvYc','getGroupService','last_message_time','has','initWithDeskTopConfig','YqQTW','NodeIKernelSessionListener','NodeIKernelLoginService','message_sent','recallTime','./NapCat/data','initDataListener','hMDUT','登录失败','TtZDY','Wcxlb','getBuddyList','isDelete','sNPgK','IBKuB','passwordLogin','3668581gVxvtS','initSession','groupCode','pngBase64QrcodeData','message_received','NodeIGlobalAdapter','MsgListener','NodeIKernelLoginListener','fileLog','JlLSH','gnJWb','read','stringify','858437ThCqnu','initSession\x20failed','set','NodeIDispatcherAdapter','clientType','OSoYZ','now','PDXoI','forEach','./.config/QQ','uHQXC','finzU','没有可快速登录的QQ号','isQuickLogin','from','NodeIKernelMsgListener','wsQhc','2514188ULAHOn','infos','XzFQe','consoleLogLevel','MqRIP','undefined','packet_received','name','onQRCodeLoginSucceed','guteK','qrLogin','getLoginList','msgId','DGozr','startNT','dscDH','KHGlr','uid','HACSD','groupMemberList_MainWindow','curVersion','bREzt','getMsgService','devUid','NodeIQQNTWrapperEngine','onQRCodeSessionFailed','getQRCodePicture','base64','onMemberInfoChange','-v2.db','NodeIKernelProfileListener','GroupListener','push','LocalLoginInfoList','hex','getNTUserDataInfoConfig','EiDka','createMemberListScene','initConfig','then'];_0xeeb9=function(){return _0x15f8b0;};return _0xeeb9();}import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/common/utils/db';import{sleep}from'@/common/utils/helper';function _0x13a7(_0x43846c,_0x30c3b5){const _0xeeb9d9=_0xeeb9();return _0x13a7=function(_0x13a74d,_0x152a68){_0x13a74d=_0x13a74d-0x17d;let _0x17d6b2=_0xeeb9d9[_0x13a74d];return _0x17d6b2;},_0x13a7(_0x43846c,_0x30c3b5);}import _0x56474a 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{[_0x5663c3(0x218)];['util'];[_0x5663c3(0x1f8)];[_0x5663c3(0x1de)];['loginService'];[_0x5663c3(0x1e7)]=[];[_0x5663c3(0x202)]={'get'(target,prop,receiver){const _0x462da4=_0x5663c3,Ynpbux={'YqQTW':_0x462da4(0x1a8)};if(typeof target[prop]===Ynpbux[_0x462da4(0x228)])return(...args)=>{const _0x3596f9=_0x462da4;logDebug(target[_0x3596f9(0x1cf)][_0x3596f9(0x1aa)]+_0x3596f9(0x1d8)+prop);};return Reflect[_0x462da4(0x1ef)](target,prop,receiver);}};constructor(){const _0x146576=_0x5663c3,_0x42877d={'HrHVj':function(_0x37a027,_0xf984ef){return _0x37a027(_0xf984ef);},'xoOjg':function(_0x34ec3c,_0x390de0){return _0x34ec3c+_0x390de0;},'Wcxlb':_0x146576(0x1eb),'KCroq':')已登录,无法重复登录','IBKuB':function(_0x4bea4c,_0x3ce746,_0x10209e){return _0x4bea4c(_0x3ce746,_0x10209e);},'NEqLz':function(_0x3bd45e,_0x50beab){return _0x3bd45e instanceof _0x50beab;},'UMgXF':function(_0x2a5f6b,_0x49aee5){return _0x2a5f6b(_0x49aee5);},'DGozr':_0x146576(0x22d),'OSoYZ':function(_0x1b9482,_0x3566e1,_0x25242b){return _0x1b9482(_0x3566e1,_0x25242b);},'NJvCQ':_0x146576(0x193),'bCvOz':_0x146576(0x17d),'DPsND':function(_0x4250ab,_0x514481){return _0x4250ab==_0x514481;},'XzFQe':function(_0x53a3ef,_0x3cc1ac,_0x2ed8c8){return _0x53a3ef(_0x3cc1ac,_0x2ed8c8);}};this[_0x146576(0x1f8)]=new _0x104b49[(_0x146576(0x1bb))](),this[_0x146576(0x210)]=new _0x104b49[(_0x146576(0x1db))](),this['loginService']=new _0x104b49[(_0x146576(0x22a))](),this[_0x146576(0x218)]=new _0x104b49['NodeIQQNTWrapperSession'](),this['loginListener']=new LoginListener(),this[_0x146576(0x1de)][_0x146576(0x21e)]=_0x2dcd4b=>{const _0x49eda3=_0x146576;_0x42877d['HrHVj'](logError,_0x42877d['xoOjg'](_0x42877d[_0x49eda3(0x17f)]+_0x2dcd4b,_0x42877d[_0x49eda3(0x1d1)]));},this[_0x146576(0x1de)][_0x146576(0x1ab)]=_0x5d0959=>{const _0xcff489=_0x146576;this[_0xcff489(0x186)](_0x5d0959[_0xcff489(0x1da)],_0x5d0959[_0xcff489(0x1b4)])[_0xcff489(0x1ca)](_0xf254=>{const _0xcc5d39=_0xcff489,_0x5a26c8={'sNPgK':function(_0x334eb5,_0x37b0f6,_0x356224){const _0x4b12d8=_0x13a7;return _0x42877d[_0x4b12d8(0x183)](_0x334eb5,_0x37b0f6,_0x356224);},'KHGlr':function(_0x3f5c96,_0x20bf6f){const _0x3dad6f=_0x13a7;return _0x42877d[_0x3dad6f(0x1e8)](_0x3f5c96,_0x20bf6f);},'HACSD':function(_0x282df8,_0x3b56c9,_0x56df25){return _0x282df8(_0x3b56c9,_0x56df25);}};selfInfo[_0xcc5d39(0x1da)]=_0x5d0959[_0xcc5d39(0x1da)],selfInfo[_0xcc5d39(0x1b4)]=_0x5d0959[_0xcc5d39(0x1b4)],napCatConfig[_0xcc5d39(0x190)](),setLogLevel(napCatConfig['fileLogLevel'],napCatConfig[_0xcc5d39(0x1a6)]),_0x42877d[_0xcc5d39(0x214)](enableFileLog,napCatConfig[_0xcc5d39(0x18d)]),_0x42877d[_0xcc5d39(0x203)](enableConsoleLog,napCatConfig[_0xcc5d39(0x20a)]),_0x42877d[_0xcc5d39(0x203)](setLogSelfInfo,selfInfo);const _0xac1d02=_0x5a1322['resolve'](this['dataPath'],_0x42877d[_0xcc5d39(0x1b0)]);_0x280043[_0xcc5d39(0x1ed)](_0xac1d02,{'recursive':!![]}),_0x42877d[_0xcc5d39(0x197)](logDebug,_0xcc5d39(0x1e1),_0xac1d02),dbUtil[_0xcc5d39(0x20e)](_0x5a1322[_0xcc5d39(0x220)](_0xac1d02,'./'+_0x5d0959[_0xcc5d39(0x1da)]+_0xcc5d39(0x1c0)))['then'](()=>{const _0x5f3420=_0xcc5d39,_0x153ec6={'PDXoI':function(_0x2b6aee,_0x137b7a,_0x3292a6){const _0x25a6a7=_0x13a7;return _0x5a26c8[_0x25a6a7(0x182)](_0x2b6aee,_0x137b7a,_0x3292a6);},'guteK':function(_0xb253ca,_0x2fb094){const _0x5cfb0a=_0x13a7;return _0x5a26c8[_0x5cfb0a(0x1b3)](_0xb253ca,_0x2fb094);}};this[_0x5f3420(0x22e)](),this[_0x5f3420(0x1e7)][_0x5f3420(0x213)](_0x5bb834=>{const _0x4c0478=_0x5f3420,_0x4f7167={'vpKmE':function(_0xe3c0d1,_0x437099,_0x432f72){const _0x3507db=_0x13a7;return _0x153ec6[_0x3507db(0x199)](_0xe3c0d1,_0x437099,_0x432f72);},'Mdghi':function(_0x44953f,_0x449b52){const _0x6e0113=_0x13a7;return _0x153ec6[_0x6e0113(0x1ac)](_0x44953f,_0x449b52);}};new Promise((_0x84af24,_0x42fc13)=>{const _0x19c4b9=_0x13a7,_0x146976=_0x4f7167[_0x19c4b9(0x1e4)](_0x5bb834,_0x5d0959['uin'],_0x5d0959[_0x19c4b9(0x1b4)]);_0x4f7167['Mdghi'](_0x146976,Promise)&&_0x146976[_0x19c4b9(0x1ca)](_0x84af24)[_0x19c4b9(0x21b)](_0x42fc13);})[_0x4c0478(0x1ca)]();});})['catch'](_0x911d1d=>{const _0x36a398=_0xcc5d39;_0x5a26c8[_0x36a398(0x1b5)](logError,'数据库初始化失败',_0x911d1d);});})[_0xcff489(0x21b)](_0x54e398=>{const _0xdae80e=_0xcff489;_0x42877d[_0xdae80e(0x197)](logError,_0x42877d[_0xdae80e(0x222)],_0x54e398);throw new Error('启动失败:\x20'+JSON[_0xdae80e(0x191)](_0x54e398));});},this[_0x146576(0x1de)][_0x146576(0x1bc)]=(_0x4980dc,_0x3ce95b,_0x512cae)=>{const _0x21b41f=_0x146576;logError(_0x42877d['bCvOz'],_0x512cae),_0x42877d[_0x21b41f(0x1fa)](_0x4980dc,0x1)&&_0x3ce95b==0x3&&this[_0x21b41f(0x204)][_0x21b41f(0x1bd)]();},this['loginListener'][_0x146576(0x209)]=_0x428f79=>{const _0x52a482=_0x146576;_0x42877d[_0x52a482(0x1a5)](logError,_0x42877d[_0x52a482(0x21c)],_0x428f79);},this[_0x146576(0x1de)]=new Proxy(this[_0x146576(0x1de)],this[_0x146576(0x202)]),this['loginService']['addKernelLoginListener'](new _0x104b49[(_0x146576(0x18c))](this['loginListener'])),this[_0x146576(0x1c9)]();}get[_0x5663c3(0x1e0)](){const _0x58a68e=_0x5663c3,_0x5b71ff={'cNfda':_0x58a68e(0x19b)};let _0x5b5496=this[_0x58a68e(0x210)][_0x58a68e(0x1c6)]();return!_0x5b5496&&(_0x5b5496=_0x5a1322[_0x58a68e(0x220)](_0x44de70['homedir'](),_0x5b71ff[_0x58a68e(0x1cc)]),_0x280043[_0x58a68e(0x1ed)](_0x5b5496,{'recursive':!![]})),_0x5b5496;}get[_0x5663c3(0x1ce)](){const _0x6c9ece=_0x5663c3;return _0x5a1322[_0x6c9ece(0x220)](this[_0x6c9ece(0x1e0)],_0x6c9ece(0x1fd));}[_0x5663c3(0x1c9)](){const _0x1e225d=_0x5663c3;this['engine'][_0x1e225d(0x227)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x1e225d(0x1b7)],'os_version':'Windows\x2010\x20Pro','use_xlog':!![],'qua':_0x1e225d(0x1e6)+qqVersionConfigInfo[_0x1e225d(0x1b7)][_0x1e225d(0x207)]('-','_')+_0x1e225d(0x211),'global_path_config':{'desktopGlobalPath':this[_0x1e225d(0x1ce)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x104b49[(_0x1e225d(0x18a))](new GlobalAdapter())),this[_0x1e225d(0x204)][_0x1e225d(0x1c9)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x1e225d(0x1ce)],'clientVer':qqVersionConfigInfo[_0x1e225d(0x1b7)],'hostName':hostname});}['initSession'](_0x15d55f,_0x595361){const _0x4898f2={'psNsY':function(_0x8d13c7,_0x82fc1a){return _0x8d13c7===_0x82fc1a;},'finzU':function(_0xa45430,_0x289e32){return _0xa45430(_0x289e32);},'lWCwy':function(_0x57744f,_0x15cd6b,_0x4096b7,_0x46cf5e){return _0x57744f(_0x15cd6b,_0x4096b7,_0x46cf5e);},'isPki':function(_0x26c6b5,_0x4f1a06){return _0x26c6b5+_0x4f1a06;}};return new Promise((_0x35d964,_0x511dda)=>{const _0x12c632=_0x13a7,_0x2d8f44=_0x4898f2[_0x12c632(0x1ea)](genSessionConfig,_0x15d55f,_0x595361,this[_0x12c632(0x1e0)]),_0x1ecb81=new SessionListener();_0x1ecb81[_0x12c632(0x1f2)]=_0x36ffe0=>{if(_0x4898f2['psNsY'](_0x36ffe0,0x0))return _0x35d964(0x0);_0x4898f2['finzU'](_0x511dda,_0x36ffe0);},this['session'][_0x12c632(0x20e)](_0x2d8f44,new _0x104b49[(_0x12c632(0x1f1))](new DependsAdapter()),new _0x104b49[(_0x12c632(0x195))](new DispatcherAdapter()),new _0x104b49[(_0x12c632(0x229))](_0x1ecb81));try{this[_0x12c632(0x218)][_0x12c632(0x1b1)](0x0);}catch(_0x13e569){try{this[_0x12c632(0x218)][_0x12c632(0x1b1)]();}catch(_0x186422){_0x4898f2[_0x12c632(0x19d)](_0x511dda,_0x4898f2[_0x12c632(0x1d2)]('init\x20failed\x20',_0x186422));}}});}[_0x5663c3(0x22e)](){const _0x6e08a8=_0x5663c3,_0x3227f2={'LJpww':function(_0x43aace,_0x491662){return _0x43aace===_0x491662;},'bREzt':function(_0x54ed05,_0x50bb5){return _0x54ed05(_0x50bb5);},'AbusP':function(_0x30bd54,_0x27136c){return _0x30bd54+_0x27136c;},'RAruB':'账号设备(','EiDka':_0x6e08a8(0x1cb),'wsQhc':function(_0x548d92,_0x4db9e3){return _0x548d92+_0x4db9e3;},'MqRIP':function(_0x22b72b,_0x317c7a){return _0x22b72b+_0x317c7a;},'voACG':'[KickedOffLine]\x20[','aisOu':function(_0x52b899,_0xf3ffb4){return _0x52b899/_0xf3ffb4;},'yDoAN':function(_0x264d37,_0x2b0d89){return _0x264d37===_0x2b0d89;},'uHQXC':function(_0x39bfd0,_0x134785){return _0x39bfd0!==_0x134785;},'gnJWb':_0x6e08a8(0x1b6),'dscDH':function(_0x106e02,_0x3a1103,_0x1dc60f){return _0x106e02(_0x3a1103,_0x1dc60f);}},_0x25cdb9=new MsgListener();_0x25cdb9[_0x6e08a8(0x205)]=_0x2e773f=>{const _0x43d035=_0x6e08a8;_0x2e773f[_0x43d035(0x213)](_0xcc21f7=>{const _0x877565=_0x43d035;_0x3227f2['LJpww'](_0xcc21f7[_0x877565(0x196)],0x2)&&_0x3227f2[_0x877565(0x1b8)](log,_0x3227f2[_0x877565(0x1e5)](_0x3227f2[_0x877565(0x1e5)](_0x3227f2[_0x877565(0x1d5)],_0xcc21f7[_0x877565(0x1ba)]),_0x3227f2[_0x877565(0x1c7)]));});},_0x25cdb9[_0x6e08a8(0x1e2)]=_0x501175=>{const _0x21bd5e=_0x6e08a8;log(_0x3227f2[_0x21bd5e(0x1a2)](_0x3227f2[_0x21bd5e(0x1a7)](_0x3227f2['voACG'],_0x501175[_0x21bd5e(0x1d3)])+']\x20',_0x501175[_0x21bd5e(0x1d6)]));},_0x25cdb9['onMsgInfoListUpdate']=_0x211c85=>{const _0x2246c1=_0x6e08a8;stat[_0x2246c1(0x1a9)]+=0x1,_0x211c85[_0x2246c1(0x213)](_0x1a9742=>{const _0x2bf0ac=_0x2246c1;_0x3227f2['LJpww'](_0x1a9742[_0x2bf0ac(0x22c)],'0')?dbUtil[_0x2bf0ac(0x20b)](_0x1a9742)[_0x2bf0ac(0x1ca)]()[_0x2bf0ac(0x21b)]():dbUtil[_0x2bf0ac(0x20c)](_0x1a9742[_0x2bf0ac(0x1af)])[_0x2bf0ac(0x1ca)](_0x1ca40d=>{const _0x4a585b=_0x2bf0ac;_0x1ca40d&&(_0x1ca40d[_0x4a585b(0x22c)]=_0x1a9742[_0x4a585b(0x22c)],dbUtil['updateMsg'](_0x1ca40d)[_0x4a585b(0x1ca)]());});});},_0x25cdb9['onAddSendMsg']=_0x1d098b=>{const _0x2b681e=_0x6e08a8;stat['packet_sent']+=0x1,stat[_0x2b681e(0x22b)]+=0x1,stat[_0x2b681e(0x225)]=Math[_0x2b681e(0x1f9)](_0x3227f2[_0x2b681e(0x206)](Date[_0x2b681e(0x198)](),0x3e8));},_0x25cdb9['onRecvMsg']=_0x295a62=>{const _0x41d256=_0x6e08a8;stat['packet_received']+=0x1,stat[_0x41d256(0x189)]+=_0x295a62[_0x41d256(0x200)],stat[_0x41d256(0x225)]=Math[_0x41d256(0x1f9)](_0x3227f2['aisOu'](Date[_0x41d256(0x198)](),0x3e8));},_0x25cdb9[_0x6e08a8(0x21d)]=(..._0x51e629)=>{const _0x42d203=_0x6e08a8;stat[_0x42d203(0x1a9)]+=0x1;},this[_0x6e08a8(0x20d)](_0x25cdb9);const _0x4f56f5=new BuddyListener();_0x4f56f5[_0x6e08a8(0x216)]=_0xb3f6f9=>{const _0x1f9f89=_0x6e08a8;rawFriends[_0x1f9f89(0x200)]=0x0,rawFriends[_0x1f9f89(0x1c3)](..._0xb3f6f9);for(const _0x5bc17d of _0xb3f6f9){for(const _0x4998e4 of _0x5bc17d['buddyList']){const _0x4cb37a=friends[_0x1f9f89(0x1ef)](_0x4998e4[_0x1f9f89(0x1b4)]);uid2UinMap[_0x4998e4[_0x1f9f89(0x1b4)]]=_0x4998e4[_0x1f9f89(0x1da)],_0x4cb37a?Object[_0x1f9f89(0x1f3)](_0x4cb37a,_0x4998e4):friends['set'](_0x4998e4['uid'],_0x4998e4);}}},this[_0x6e08a8(0x20d)](_0x4f56f5),this[_0x6e08a8(0x218)][_0x6e08a8(0x1d9)]()[_0x6e08a8(0x180)](!![])[_0x6e08a8(0x1ca)](_0x50445d=>{});const _0x3b593d=new ProfileListener();_0x3b593d['onProfileDetailInfoChanged']=_0xa15d01=>{const _0x1ff1b8=_0x6e08a8;_0x3227f2['yDoAN'](_0xa15d01[_0x1ff1b8(0x1b4)],selfInfo[_0x1ff1b8(0x1b4)])&&Object['assign'](selfInfo,_0xa15d01);},_0x3b593d[_0x6e08a8(0x1dc)]=_0x10d207=>{},this[_0x6e08a8(0x20d)](_0x3b593d);const _0x37cb47=new GroupListener();_0x37cb47['onGroupListUpdate']=(_0x3dea42,_0x5b6e51)=>{const _0x1a4e0f=_0x6e08a8;_0x5b6e51[_0x1a4e0f(0x213)](_0x3cdf74=>{const _0x460533=_0x1a4e0f,_0x807bc1=groups[_0x460533(0x1ef)](_0x3cdf74['groupCode']);if(_0x807bc1&&_0x3227f2[_0x460533(0x19c)](_0x3cdf74['memberCount'],_0x807bc1[_0x460533(0x1df)]))Object[_0x460533(0x1f3)](_0x807bc1,_0x3cdf74);else{groups['set'](_0x3cdf74[_0x460533(0x187)],_0x3cdf74);const _0x2fd522=this[_0x460533(0x218)][_0x460533(0x224)]()[_0x460533(0x1c8)](_0x3cdf74['groupCode'],_0x3227f2[_0x460533(0x18f)]);this[_0x460533(0x218)][_0x460533(0x224)]()[_0x460533(0x1fc)](_0x2fd522,undefined,0xbb8)['then'](_0x185348=>{});}});},_0x37cb47[_0x6e08a8(0x1f7)]=_0x51746e=>{const _0x24242a=_0x6e08a8,_0x49f278=_0x51746e['sceneId']['split']('_')[0x0];if(groupMembers[_0x24242a(0x226)](_0x49f278)){const _0x435e84=groupMembers[_0x24242a(0x1ef)](_0x49f278);_0x51746e[_0x24242a(0x1a4)]['forEach']((_0x17c857,_0x545721)=>{const _0x4b1dbc=_0x24242a,_0x3624d6=_0x435e84['get'](_0x545721);_0x3624d6?Object[_0x4b1dbc(0x1f3)](_0x3624d6,_0x17c857):_0x435e84['set'](_0x545721,_0x17c857);});}else groupMembers['set'](_0x49f278,_0x51746e[_0x24242a(0x1a4)]);},_0x37cb47[_0x6e08a8(0x1bf)]=(_0x2631dc,_0x46ed3f,_0x4a45dd)=>{const _0x353f33=_0x6e08a8;_0x46ed3f===0x0&&_0x4a45dd[_0x353f33(0x1ef)](selfInfo[_0x353f33(0x1b4)])&&_0x4a45dd[_0x353f33(0x1ef)](selfInfo[_0x353f33(0x1b4)])?.[_0x353f33(0x181)]&&_0x3227f2[_0x353f33(0x1b2)](setTimeout,()=>{groups['delete'](_0x2631dc);},0x1388);_0x4a45dd[_0x353f33(0x19a)]((_0x59ede1,_0x10815d)=>{const _0x3200a0=_0x353f33;uid2UinMap[_0x10815d]=_0x59ede1[_0x3200a0(0x1da)];});const _0x81220c=groupMembers['get'](_0x2631dc);_0x81220c?_0x4a45dd[_0x353f33(0x19a)]((_0x3c9a17,_0x532f69)=>{const _0x34c25a=_0x353f33,_0x23a20d=_0x81220c[_0x34c25a(0x1ef)](_0x532f69);_0x23a20d?Object[_0x34c25a(0x1f3)](_0x23a20d,_0x3c9a17):_0x81220c[_0x34c25a(0x194)](_0x532f69,_0x3c9a17);}):groupMembers[_0x353f33(0x194)](_0x2631dc,_0x4a45dd);},this[_0x6e08a8(0x20d)](_0x37cb47);}[_0x5663c3(0x20d)](_0x343f03){const _0x4d6dd9=_0x5663c3,_0x21cf9f={'ETDdx':_0x4d6dd9(0x1c2),'JYIfr':_0x4d6dd9(0x18b),'AyKIV':'ProfileListener'};_0x343f03=new Proxy(_0x343f03,this[_0x4d6dd9(0x202)]);switch(_0x343f03['constructor'][_0x4d6dd9(0x1aa)]){case _0x4d6dd9(0x1fe):{return this['session'][_0x4d6dd9(0x1d9)]()['addKernelBuddyListener'](new _0x104b49['NodeIKernelBuddyListener'](_0x343f03));}case _0x21cf9f[_0x4d6dd9(0x215)]:{return this['session'][_0x4d6dd9(0x224)]()['addKernelGroupListener'](new _0x104b49[(_0x4d6dd9(0x221))](_0x343f03));}case _0x21cf9f[_0x4d6dd9(0x1f0)]:{return this[_0x4d6dd9(0x218)][_0x4d6dd9(0x1b9)]()['addKernelMsgListener'](new _0x104b49[(_0x4d6dd9(0x1a1))](_0x343f03));}case _0x21cf9f['AyKIV']:{return this[_0x4d6dd9(0x218)][_0x4d6dd9(0x1e3)]()[_0x4d6dd9(0x1f4)](new _0x104b49[(_0x4d6dd9(0x1c1))](_0x343f03));}default:return-0x1;}}[_0x5663c3(0x208)](_0x5c6fa5){const _0x4eb110=_0x5663c3;this[_0x4eb110(0x1e7)][_0x4eb110(0x1c3)](_0x5c6fa5);}async['quickLogin'](_0x5497ca){const _0x6a790d=_0x5663c3,_0x4541de={'wfdlt':function(_0xcdd77c,_0x5bbb2b){return _0xcdd77c!==_0x5bbb2b;},'OyaBH':_0x6a790d(0x19e),'TtZDY':function(_0x15de69,_0x1e56e9){return _0x15de69(_0x1e56e9);},'ONcGd':_0x6a790d(0x21f)},_0x39ea17=await this[_0x6a790d(0x204)][_0x6a790d(0x1ae)]();if(_0x4541de[_0x6a790d(0x219)](_0x39ea17[_0x6a790d(0x1ee)],0x0))throw new Error(_0x4541de[_0x6a790d(0x21a)]);const _0x5d1918=_0x39ea17[_0x6a790d(0x1c4)][_0x6a790d(0x1ff)](_0x2a6e63=>_0x2a6e63[_0x6a790d(0x1da)]===_0x5497ca);if(!_0x5d1918||!_0x5d1918?.[_0x6a790d(0x19f)])throw new Error(_0x5497ca+'快速登录不可用');await _0x4541de[_0x6a790d(0x17e)](sleep,0x3e8);const _0x5f2c0c=await this[_0x6a790d(0x204)]['quickLoginWithUin'](_0x5497ca);if(!_0x5f2c0c['result'])throw new Error(_0x4541de['ONcGd']+_0x5f2c0c[_0x6a790d(0x212)][_0x6a790d(0x1d4)]);return _0x5f2c0c;}async[_0x5663c3(0x1ad)](_0x22edab){const _0x14a6b3=_0x5663c3,_0x438a36={'IFdwD':_0x14a6b3(0x1f6),'JlLSH':function(_0xef709,_0x1d9c59,_0x3a33f4,_0x11c593){return _0xef709(_0x1d9c59,_0x3a33f4,_0x11c593);}};return new Promise((_0x4ca904,_0x38f9a2)=>{const _0x8b78cc=_0x14a6b3;this[_0x8b78cc(0x1de)]['onQRCodeGetPicture']=_0x6b98a5=>{const _0x246f5f=_0x8b78cc,_0x6b4b4b=_0x6b98a5[_0x246f5f(0x188)][_0x246f5f(0x217)](_0x438a36[_0x246f5f(0x1e9)])[0x1],_0x5a84f6=Buffer[_0x246f5f(0x1a0)](_0x6b4b4b,_0x246f5f(0x1be));_0x438a36[_0x246f5f(0x18e)](_0x22edab,_0x6b98a5['qrcodeUrl'],_0x6b98a5[_0x246f5f(0x188)],_0x5a84f6);},this[_0x8b78cc(0x204)]['getQRCodePicture']();});}async['passwordLogin'](_0x2e6de0,_0x556953,_0xc1f2a7,_0x3f96e6,_0x27da38){const _0x5805e2=_0x5663c3,_0x37ef5e={'qzmYC':_0x5805e2(0x1c5),'hMDUT':function(_0x779439,_0x26d976){return _0x779439&&_0x26d976;},'VCTog':function(_0xc8a15a,_0x5d9f44){return _0xc8a15a||_0x5d9f44;},'IJJYv':'140022008','sLFul':'140022013'},_0x4d57a9=_0x56474a[_0x5805e2(0x1cd)]('md5')['update'](_0x556953)[_0x5805e2(0x1ec)](_0x37ef5e['qzmYC']),_0x2000b3={'uin':_0x2e6de0,'passwordMd5':_0x4d57a9,'step':_0x37ef5e[_0x5805e2(0x22f)](_0xc1f2a7,_0x3f96e6)&&_0x27da38?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x37ef5e[_0x5805e2(0x201)](_0xc1f2a7,''),'proofWaterRand':_0x3f96e6||'','proofWaterSid':_0x27da38||''};await this[_0x5805e2(0x204)][_0x5805e2(0x1ae)](),await sleep(0x3e8);const _0x5c260e=await this[_0x5805e2(0x204)][_0x5805e2(0x184)](_0x2000b3);switch(_0x5c260e[_0x5805e2(0x1ee)]){case'0':{break;}case _0x37ef5e[_0x5805e2(0x1d7)]:{break;}case'4':case _0x37ef5e[_0x5805e2(0x20f)]:default:}}async[_0x5663c3(0x1f5)](){const _0x814f2d=_0x5663c3,_0x154d8d=await this['loginService'][_0x814f2d(0x1ae)]();return _0x154d8d;}}export const napCatCore=new NapCatCore(); \ No newline at end of file +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 diff --git a/src/core.lib/src/data.js b/src/core.lib/src/data.js index 72125f78..de86b565 100644 --- a/src/core.lib/src/data.js +++ b/src/core.lib/src/data.js @@ -1 +1 @@ -const _0x561b1e=_0x19d2;function _0x5786(){const _0x489834=['from','find','get','values','1557cmjHXv','326944HiInCs','2335476oLkzta','9340965ZjAOqL','NapCat未能正常启动,请检查日志查看错误','forEach','42AeObdy','delete','89576aUGkiN','set','vLnfG','groupCode','NvisB','WuDWz','8293YbscuB','toString','5251085nmPVYn','uin','8327ydUUrB','length','224IDxJuZ','8620QpPKtA'];_0x5786=function(){return _0x489834;};return _0x5786();}(function(_0x2cea5b,_0x5435b7){const _0x5ccfcd=_0x19d2,_0x442fb3=_0x2cea5b();while(!![]){try{const _0x519bc4=-parseInt(_0x5ccfcd(0xac))/0x1*(-parseInt(_0x5ccfcd(0x98))/0x2)+parseInt(_0x5ccfcd(0xa4))/0x3*(parseInt(_0x5ccfcd(0x9f))/0x4)+parseInt(_0x5ccfcd(0xa1))/0x5+parseInt(_0x5ccfcd(0xa0))/0x6+-parseInt(_0x5ccfcd(0x94))/0x7+parseInt(_0x5ccfcd(0xa6))/0x8*(-parseInt(_0x5ccfcd(0x9e))/0x9)+parseInt(_0x5ccfcd(0x99))/0xa*(-parseInt(_0x5ccfcd(0x96))/0xb);if(_0x519bc4===_0x5435b7)break;else _0x442fb3['push'](_0x442fb3['shift']());}catch(_0x35f6ea){_0x442fb3['push'](_0x442fb3['shift']());}}}(_0x5786,0xf1e45));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(_0x40d3fb){const _0x504f58=_0x19d2;groups[_0x504f58(0xa5)](_0x40d3fb),groupMembers[_0x504f58(0xa5)](_0x40d3fb);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};function _0x19d2(_0x366433,_0x3d2af2){const _0x5786bc=_0x5786();return _0x19d2=function(_0x19d2a8,_0x2f03e6){_0x19d2a8=_0x19d2a8-0x93;let _0x8aad7=_0x5786bc[_0x19d2a8];return _0x8aad7;},_0x19d2(_0x366433,_0x3d2af2);}export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x561b1e(0xa2)};export async function getFriend(_0x447ef0){const _0x65681b=_0x561b1e,_0x1a8b34={'NvisB':function(_0x655d89,_0x1dfbc7){return _0x655d89(_0x1dfbc7);}};_0x447ef0=_0x447ef0['toString']();if(_0x1a8b34[_0x65681b(0xaa)](isNumeric,_0x447ef0)){const _0x26792d=Array[_0x65681b(0x9a)](friends['values']());return _0x26792d[_0x65681b(0x9b)](_0x910c14=>_0x910c14[_0x65681b(0x95)]===_0x447ef0);}else return friends[_0x65681b(0x9c)](_0x447ef0);}export async function getGroup(_0x5d4cad){const _0x1a9732=_0x561b1e;let _0xa7840a=groups['get'](_0x5d4cad[_0x1a9732(0x93)]());if(!_0xa7840a)try{const _0x547d01=await NTQQGroupApi['getGroups']();_0x547d01[_0x1a9732(0x97)]&&_0x547d01[_0x1a9732(0xa3)](_0x469a98=>{const _0x116d0e=_0x1a9732;groups[_0x116d0e(0xa7)](_0x469a98[_0x116d0e(0xa9)],_0x469a98);});}catch(_0x3b88e9){return undefined;}return _0xa7840a=groups[_0x1a9732(0x9c)](_0x5d4cad[_0x1a9732(0x93)]()),_0xa7840a;}export async function getGroupMember(_0x958a21,_0x5c9f28){const _0x4763df=_0x561b1e,_0x546dc2={'vLnfG':function(_0x5996fa,_0x121bc3){return _0x5996fa(_0x121bc3);},'ZNkdc':function(_0x1b6087){return _0x1b6087();}};_0x958a21=_0x958a21['toString'](),_0x5c9f28=_0x5c9f28[_0x4763df(0x93)]();let _0x45ec0c=groupMembers['get'](_0x958a21);if(!_0x45ec0c)try{_0x45ec0c=await NTQQGroupApi['getGroupMembers'](_0x958a21),groupMembers[_0x4763df(0xa7)](_0x958a21,_0x45ec0c);}catch(_0x19972c){return null;}const _0x538033=()=>{const _0x1401a2=_0x4763df;let _0x5e1e33=undefined;return _0x546dc2[_0x1401a2(0xa8)](isNumeric,_0x5c9f28)?_0x5e1e33=Array[_0x1401a2(0x9a)](_0x45ec0c[_0x1401a2(0x9d)]())[_0x1401a2(0x9b)](_0x19593d=>_0x19593d[_0x1401a2(0x95)]===_0x5c9f28):_0x5e1e33=_0x45ec0c[_0x1401a2(0x9c)](_0x5c9f28),_0x5e1e33;};let _0x4cbbe7=_0x538033();return!_0x4cbbe7&&(_0x45ec0c=await NTQQGroupApi['getGroupMembers'](_0x958a21),_0x4cbbe7=_0x546dc2['ZNkdc'](_0x538033)),_0x4cbbe7;}export const uid2UinMap={};export function getUidByUin(_0x5c668b){const _0x2ab4d9=_0x561b1e,_0xa000da={'WuDWz':function(_0x6771d1,_0x73bd53){return _0x6771d1===_0x73bd53;}};for(const _0x1799b0 in uid2UinMap){if(_0xa000da[_0x2ab4d9(0xab)](uid2UinMap[_0x1799b0],_0x5c668b))return _0x1799b0;}}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(_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 diff --git a/src/core.lib/src/entities/cache.js b/src/core.lib/src/entities/cache.js index 54360c1f..27acdca7 100644 --- a/src/core.lib/src/entities/cache.js +++ b/src/core.lib/src/entities/cache.js @@ -1 +1 @@ -(function(_0x3e1a0f,_0x1b567f){var _0x5d5053=_0x42a3,_0x517b92=_0x3e1a0f();while(!![]){try{var _0x50cb68=-parseInt(_0x5d5053(0x1c4))/0x1+parseInt(_0x5d5053(0x1c1))/0x2*(parseInt(_0x5d5053(0x1c9))/0x3)+-parseInt(_0x5d5053(0x1c7))/0x4+-parseInt(_0x5d5053(0x1c3))/0x5*(-parseInt(_0x5d5053(0x1cf))/0x6)+-parseInt(_0x5d5053(0x1cd))/0x7+-parseInt(_0x5d5053(0x1c5))/0x8*(parseInt(_0x5d5053(0x1ca))/0x9)+parseInt(_0x5d5053(0x1cc))/0xa;if(_0x50cb68===_0x1b567f)break;else _0x517b92['push'](_0x517b92['shift']());}catch(_0x23b68f){_0x517b92['push'](_0x517b92['shift']());}}}(_0x78aa,0x189de));;function _0x42a3(_0x1cf8f6,_0x648a48){var _0x78aa9c=_0x78aa();return _0x42a3=function(_0x42a3f2,_0x3eea2b){_0x42a3f2=_0x42a3f2-0x1c1;var _0x2e5cfa=_0x78aa9c[_0x42a3f2];return _0x2e5cfa;},_0x42a3(_0x1cf8f6,_0x648a48);}export var CacheFileType;function _0x78aa(){var _0x54db64=['4380EVElbb','naNRt','35795pWdIfR','112025chGuIt','6152qgoxfp','AUDIO','694380EMIxyA','OTHER','42AgMtGg','639EtmABB','VIDEO','4826570xAWBfU','555989vigWSg','ztYzc','6JqINkb','DOCUMENT','vOEgK','xCZLF'];_0x78aa=function(){return _0x54db64;};return _0x78aa();}(function(_0x1129e6){var _0x56a10b=_0x42a3,_0x132272={'vOEgK':'IMAGE','ztYzc':'VIDEO','xCZLF':_0x56a10b(0x1c6),'naNRt':_0x56a10b(0x1d0),'CuppO':_0x56a10b(0x1c8)};_0x1129e6[_0x1129e6[_0x132272['vOEgK']]=0x0]=_0x132272[_0x56a10b(0x1d1)],_0x1129e6[_0x1129e6[_0x56a10b(0x1cb)]=0x1]=_0x132272[_0x56a10b(0x1ce)],_0x1129e6[_0x1129e6[_0x132272[_0x56a10b(0x1d2)]]=0x2]=_0x132272[_0x56a10b(0x1d2)],_0x1129e6[_0x1129e6[_0x132272[_0x56a10b(0x1c2)]]=0x3]=_0x132272['naNRt'],_0x1129e6[_0x1129e6[_0x132272['CuppO']]=0x4]=_0x132272['CuppO'];}(CacheFileType||(CacheFileType={}))); \ No newline at end of file +(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 diff --git a/src/core.lib/src/entities/constructor.js b/src/core.lib/src/entities/constructor.js index 2ff57203..04346bcf 100644 --- a/src/core.lib/src/entities/constructor.js +++ b/src/core.lib/src/entities/constructor.js @@ -1 +1 @@ -const _0x34f78a=_0x5382;(function(_0x1eeae4,_0x11dc6b){const _0x98b8e6=_0x5382,_0x2fcb87=_0x1eeae4();while(!![]){try{const _0x9fec81=-parseInt(_0x98b8e6(0x13e))/0x1*(parseInt(_0x98b8e6(0x146))/0x2)+parseInt(_0x98b8e6(0x143))/0x3*(parseInt(_0x98b8e6(0x186))/0x4)+-parseInt(_0x98b8e6(0x140))/0x5*(-parseInt(_0x98b8e6(0x14d))/0x6)+-parseInt(_0x98b8e6(0x149))/0x7*(parseInt(_0x98b8e6(0x161))/0x8)+parseInt(_0x98b8e6(0x150))/0x9+-parseInt(_0x98b8e6(0x17c))/0xa+parseInt(_0x98b8e6(0x17b))/0xb;if(_0x9fec81===_0x11dc6b)break;else _0x2fcb87['push'](_0x2fcb87['shift']());}catch(_0x4ee840){_0x2fcb87['push'](_0x2fcb87['shift']());}}}(_0x52bf,0xb22bb));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x4af065}from'node:fs';import _0x3917c9 from'fluent-ffmpeg';function _0x52bf(){const _0x5c11a2=['VIDEO','qFWeI','AniStickerPackId','FILE','4fWUkSf','QSid','PTT','yBpVl','mface','uploadFile','https://www.bilibili.com/','ark','end','FACE','MARKDOWN','markdown','then','time','AniStickerType','toString','[包剪锤]','dirname','tjvQS','PUbEr','HOscU','1230079tSztbf','fegxT','25pGPqLw','jiWif','Bot\x20Test','2037495rhlbJE','rps','video','2UtoYjd','OqpQG','MwWTu','8653309VxoOxk','Thumb','XfrVC','string','651666jbXVKg','获取视频信息失败','reply','604206CyfSsp','sysface','mp4','catch','dice','writeFile','fQTkm','error','stringify','AeTNg','zjiaY','ptt','zcVGf','[骰子]','notAt','sep','file','8tbyWOu','screenshots','get','aoeZB','UuhDl','text','xudxV','jpg','MFACE','RPS','width','gvOBQ','ARK','文件异常,大小为0','stat','https://tianquan.gtimg.cn/qqAIAgent/item/7/square.png','AniStickerId','unlink','getImageSize','FzeOL','REPLY','_0.png','PIC','[商城表情]','height','语音转换失败,\x20请检查语音文件是否正常','26358794gZUSjc','4895550SqiewB','gif','获取视频封面失败,使用默认封面','replace','JbcdN','xRfFr'];_0x52bf=function(){return _0x5c11a2;};return _0x52bf();}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';function _0x5382(_0x6883f5,_0x40f5a1){const _0x52bfdf=_0x52bf();return _0x5382=function(_0x53821d,_0x298314){_0x53821d=_0x53821d-0x137;let _0x305765=_0x52bfdf[_0x53821d];return _0x305765;},_0x5382(_0x6883f5,_0x40f5a1);}import _0x1be45e from'./face_config.json';import*as _0x17c989 from'node:path';import{SignMiniApp}from'../apis';export const mFaceCache=new Map();export class SendMsgElementConstructor{static[_0x34f78a(0x166)](_0x28dfa6){const _0x55a657=_0x34f78a;return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':_0x28dfa6,'atType':AtType[_0x55a657(0x15e)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x35bb71,_0x245c70,_0x4dc219,_0x115d3b){return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':'@'+_0x115d3b,'atType':_0x4dc219,'atUid':_0x35bb71,'atTinyId':'','atNtUid':_0x245c70}};}static[_0x34f78a(0x14f)](_0x91bc82,_0xd00003,_0x2d3ac8,_0x353ea1){const _0x55e852=_0x34f78a;return{'elementType':ElementType[_0x55e852(0x175)],'elementId':'','replyElement':{'replayMsgSeq':_0x91bc82,'replayMsgId':_0xd00003,'senderUin':_0x2d3ac8,'senderUinStr':_0x353ea1}};}static async['pic'](_0x505fee,_0x4963a1='',_0x42ad8a=0x0){const _0x5c0ad8=_0x34f78a,_0x5baa8f={'fegxT':function(_0x47babc,_0x5442e0){return _0x47babc===_0x5442e0;},'GNmmQ':function(_0x2030c7,_0x51f02e){return _0x2030c7(_0x51f02e);}},{md5:_0x5e7b39,fileName:_0x3fa9a2,path:_0xb4295f,fileSize:_0x9f47f1}=await NTQQFileApi[_0x5c0ad8(0x18b)](_0x505fee,ElementType[_0x5c0ad8(0x177)],_0x42ad8a);if(_0x5baa8f[_0x5c0ad8(0x13f)](_0x9f47f1,0x0))throw _0x5c0ad8(0x16e);const _0x2b7c89=await NTQQFileApi[_0x5c0ad8(0x173)](_0x505fee),_0x4b9bb8={'md5HexStr':_0x5e7b39,'fileSize':_0x9f47f1[_0x5c0ad8(0x138)](),'picWidth':_0x2b7c89?.['width'],'picHeight':_0x2b7c89?.[_0x5c0ad8(0x179)],'fileName':_0x3fa9a2,'sourcePath':_0xb4295f,'original':!![],'picType':_0x5baa8f['GNmmQ'](isGIF,_0x505fee)?PicType[_0x5c0ad8(0x17d)]:PicType[_0x5c0ad8(0x168)],'picSubType':_0x42ad8a,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x4963a1};return{'elementType':ElementType[_0x5c0ad8(0x177)],'elementId':'','picElement':_0x4b9bb8};}static async[_0x34f78a(0x160)](_0x2b123a,_0x3a4444=''){const _0xcfa28f=_0x34f78a,_0x5aee44={'zjiaY':function(_0x9ee29b,_0x576955){return _0x9ee29b===_0x576955;},'HOscU':'文件异常,大小为0','WfUKt':function(_0x372ac4,_0xff9162){return _0x372ac4||_0xff9162;}},{md5:_0x5bf828,fileName:_0x456758,path:_0x53c8eb,fileSize:_0x865b5b}=await NTQQFileApi[_0xcfa28f(0x18b)](_0x2b123a,ElementType[_0xcfa28f(0x185)]);if(_0x5aee44[_0xcfa28f(0x15a)](_0x865b5b,0x0))throw _0x5aee44[_0xcfa28f(0x13d)];const _0x5ca9cb={'elementType':ElementType[_0xcfa28f(0x185)],'elementId':'','fileElement':{'fileName':_0x5aee44['WfUKt'](_0x3a4444,_0x456758),'filePath':_0x53c8eb,'fileSize':_0x865b5b[_0xcfa28f(0x138)]()}};return _0x5ca9cb;}static async[_0x34f78a(0x145)](_0x33a4c9,_0x283806='',_0x131e53=''){const _0x305721=_0x34f78a,_0x27dbc6={'qFWeI':function(_0x5061d2,_0xdbf57e,_0x53b718){return _0x5061d2(_0xdbf57e,_0x53b718);},'jiWif':_0x305721(0x17e),'yBpVl':function(_0xa12aef,_0x4160ac){return _0xa12aef(_0x4160ac);},'JDYgS':_0x305721(0x157),'XfrVC':function(_0x2a7b5d,_0x3c559e){return _0x2a7b5d+_0x3c559e;},'aoeZB':_0x305721(0x18e),'nKsyh':function(_0x552b7e,_0xb65561){return _0x552b7e(_0xb65561);},'zcVGf':_0x305721(0x14e),'astDn':function(_0x3d6b17,_0x272c50){return _0x3d6b17(_0x272c50);},'UuhDl':function(_0x317b24,_0x5e7479){return _0x317b24||_0x5e7479;},'tjvQS':function(_0x3656ab,_0x5e98a0){return _0x3656ab+_0x5e98a0;}},{fileName:_0x2fc2a2,path:_0x40deb9,fileSize:_0x2185c6,md5:_0x159494}=await NTQQFileApi[_0x305721(0x18b)](_0x33a4c9,ElementType[_0x305721(0x182)]);if(_0x2185c6===0x0)throw _0x305721(0x16e);let _0x26f65f=_0x40deb9[_0x305721(0x17f)](_0x17c989['sep']+'Ori'+_0x17c989[_0x305721(0x15f)],_0x17c989[_0x305721(0x15f)]+_0x305721(0x14a)+_0x17c989['sep']);_0x26f65f=_0x17c989[_0x305721(0x13a)](_0x26f65f);let _0x2f1aa4={'width':0x780,'height':0x438,'time':0xf,'format':_0x305721(0x152),'size':_0x2185c6,'filePath':_0x33a4c9};try{_0x2f1aa4=await _0x27dbc6['nKsyh'](getVideoInfo,_0x40deb9);}catch(_0x405230){logError(_0x27dbc6[_0x305721(0x15c)],_0x405230);}const _0x2ebb05=new Promise((_0xbf9477,_0x3c0096)=>{const _0x29ec22=_0x305721,_0x81dcc5={'SZDuZ':function(_0x1f89cd,_0xfc262c){const _0x5069fe=_0x5382;return _0x27dbc6[_0x5069fe(0x189)](_0x1f89cd,_0xfc262c);},'lebaJ':function(_0x4fe218,_0x3d64bb){return _0x4fe218(_0x3d64bb);}},_0xcd5f46=_0x159494+_0x29ec22(0x176),_0x4b2fa9=_0x17c989['join'](_0x26f65f,_0xcd5f46);_0x3917c9(_0x33a4c9)['on'](_0x29ec22(0x18e),()=>{})['on'](_0x27dbc6['JDYgS'],_0x2635b3=>{const _0x95d0db=_0x29ec22;_0x27dbc6[_0x95d0db(0x183)](logDebug,_0x27dbc6[_0x95d0db(0x141)],_0x2635b3),_0x131e53?_0x4af065['copyFile'](_0x131e53,_0x4b2fa9)[_0x95d0db(0x192)](()=>{_0xbf9477(_0x4b2fa9);})['catch'](_0x3c0096):_0x4af065[_0x95d0db(0x155)](_0x4b2fa9,defaultVideoThumb)[_0x95d0db(0x192)](()=>{_0x81dcc5['SZDuZ'](_0xbf9477,_0x4b2fa9);})[_0x95d0db(0x153)](_0x3c0096);})[_0x29ec22(0x162)]({'timestamps':[0x0],'filename':_0xcd5f46,'folder':_0x26f65f,'size':_0x27dbc6[_0x29ec22(0x14b)](_0x2f1aa4[_0x29ec22(0x16b)],'x')+_0x2f1aa4[_0x29ec22(0x179)]})['on'](_0x27dbc6[_0x29ec22(0x164)],()=>{_0x81dcc5['lebaJ'](_0xbf9477,_0x4b2fa9);});}),_0xa87d92=new Map(),_0x216f43=await _0x2ebb05,_0x3e5be5=(await _0x4af065[_0x305721(0x16f)](_0x216f43))['size'];_0xa87d92['set'](0x0,_0x216f43);const _0x3683e7=await _0x27dbc6['astDn'](calculateFileMD5,_0x216f43),_0x3b9ad3={'elementType':ElementType[_0x305721(0x182)],'elementId':'','videoElement':{'fileName':_0x27dbc6[_0x305721(0x165)](_0x283806,_0x2fc2a2),'filePath':_0x40deb9,'videoMd5':_0x159494,'thumbMd5':_0x3683e7,'fileTime':_0x2f1aa4[_0x305721(0x193)],'thumbPath':_0xa87d92,'thumbSize':_0x3e5be5,'thumbWidth':_0x2f1aa4[_0x305721(0x16b)],'thumbHeight':_0x2f1aa4[_0x305721(0x179)],'fileSize':_0x27dbc6[_0x305721(0x13b)]('',_0x2185c6)}};return _0x3b9ad3;}static async[_0x34f78a(0x15b)](_0x2a31ae){const _0x52885f=_0x34f78a,_0x274771={'gvOBQ':_0x52885f(0x17a),'fQTkm':'文件异常,大小为0'},{converted:_0x39bd21,path:_0x40ae63,duration:_0x57de99}=await encodeSilk(_0x2a31ae);if(!_0x40ae63)throw _0x274771[_0x52885f(0x16c)];const {md5:_0x2f09b5,fileName:_0x3b833f,path:_0x547d99,fileSize:_0x224443}=await NTQQFileApi[_0x52885f(0x18b)](_0x40ae63,ElementType['PTT']);if(_0x224443===0x0)throw _0x274771[_0x52885f(0x156)];return _0x39bd21&&_0x4af065[_0x52885f(0x172)](_0x40ae63)[_0x52885f(0x192)](),{'elementType':ElementType[_0x52885f(0x188)],'elementId':'','pttElement':{'fileName':_0x3b833f,'filePath':_0x547d99,'md5HexStr':_0x2f09b5,'fileSize':_0x224443,'duration':_0x57de99||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'](_0x35f0b8){const _0x22622e=_0x34f78a,_0x976532={'MmuuF':function(_0x1f11be,_0x4b254a){return _0x1f11be(_0x4b254a);},'PUbEr':function(_0x1c496f,_0x1c543c){return _0x1c496f>=_0x1c543c;}},_0x1fb7b7=_0x1be45e[_0x22622e(0x151)],_0x2ca49d=_0x1be45e['emoji'],_0x497e62=_0x1fb7b7['find'](_0x2d29fe=>_0x2d29fe[_0x22622e(0x187)]===_0x35f0b8[_0x22622e(0x138)]());_0x35f0b8=_0x976532['MmuuF'](parseInt,_0x35f0b8['toString']());let _0x358e4f=0x1;return _0x976532[_0x22622e(0x13c)](_0x35f0b8,0xde)&&(_0x358e4f=0x2),_0x497e62[_0x22622e(0x137)]&&(_0x358e4f=0x3),{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':_0x35f0b8,'faceType':_0x358e4f,'faceText':_0x497e62['QDes'],'stickerId':_0x497e62[_0x22622e(0x171)],'stickerType':_0x497e62['AniStickerType'],'packId':_0x497e62[_0x22622e(0x184)],'sourceType':0x1}};}static[_0x34f78a(0x18a)](_0x2f54ca,_0x461898,_0x48f238,_0x5d8103){const _0x6fde9=_0x34f78a;return{'elementType':ElementType[_0x6fde9(0x169)],'marketFaceElement':{'emojiPackageId':_0x2f54ca,'emojiId':_0x461898,'key':_0x48f238,'faceName':_0x5d8103||mFaceCache[_0x6fde9(0x163)](_0x461898)||_0x6fde9(0x178)}};}static[_0x34f78a(0x154)](_0x36a57a){const _0x2476d6=_0x34f78a,_0x95dbf7={'FzeOL':_0x2476d6(0x15d)};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x2476d6(0x154)],'faceType':FaceType[_0x2476d6(0x154)],'faceText':_0x95dbf7[_0x2476d6(0x174)],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x34f78a(0x144)](_0x4aa606){const _0x260e44=_0x34f78a;return{'elementType':ElementType[_0x260e44(0x18f)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x260e44(0x16a)],'faceText':_0x260e44(0x139),'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x34f78a(0x18d)](_0x1ba093){const _0xda99e1=_0x34f78a,_0x27f14a={'xudxV':function(_0xfb03f,_0x47a008){return _0xfb03f!==_0x47a008;}};return _0x27f14a[_0xda99e1(0x167)](typeof _0x1ba093,_0xda99e1(0x14c))&&(_0x1ba093=JSON[_0xda99e1(0x158)](_0x1ba093)),{'elementType':ElementType['ARK'],'elementId':'','arkElement':{'bytesData':_0x1ba093,'linkInfo':null,'subElementType':null}};}static[_0x34f78a(0x191)](_0x5da173){const _0x578448=_0x34f78a;return{'elementType':ElementType[_0x578448(0x190)],'elementId':'','markdownElement':{'content':_0x5da173}};}static async['miniapp'](){const _0x27948c=_0x34f78a,_0x55f885={'OqpQG':function(_0x3e9059,_0x37168c){return _0x3e9059(_0x37168c);},'JbcdN':_0x27948c(0x142),'AeTNg':_0x27948c(0x170),'MwWTu':_0x27948c(0x18c),'xRfFr':'https://tianquan.gtimg.cn/shoal/qqAIAgent/3e9d70c9-d98c-45b8-80b4-79d82971b514.png'};let _0x276db2=await _0x55f885[_0x27948c(0x147)](SignMiniApp,{'prompt':_0x27948c(0x142),'title':_0x55f885[_0x27948c(0x180)],'preview':_0x55f885[_0x27948c(0x159)],'jumpUrl':_0x55f885[_0x27948c(0x148)],'tag':_0x55f885[_0x27948c(0x180)],'tagIcon':_0x55f885['xRfFr'],'source':_0x55f885[_0x27948c(0x180)],'sourcelogo':_0x55f885[_0x27948c(0x181)]});return{'elementType':ElementType[_0x27948c(0x16d)],'elementId':'','arkElement':{'bytesData':_0x276db2,'linkInfo':null,'subElementType':null}};}} \ No newline at end of file +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 diff --git a/src/core.lib/src/entities/group.js b/src/core.lib/src/entities/group.js index cc77fe03..dcd43dae 100644 --- a/src/core.lib/src/entities/group.js +++ b/src/core.lib/src/entities/group.js @@ -1 +1 @@ -function _0x2570(){var _0x538a5a=['1000212uFzhbF','2723ZFoyil','normal','1621865BAhmZk','3883852VlLWPr','129wrkmow','owner','VQqkh','50890GWsdLR','admin','CpVZD','6136waqguE','2383344hIXyVm','116302BnZNeJ','FcQXA'];_0x2570=function(){return _0x538a5a;};return _0x2570();}(function(_0x578f46,_0x16bfae){var _0x5bb041=_0x493c,_0x37052f=_0x578f46();while(!![]){try{var _0x5d1ef1=parseInt(_0x5bb041(0xc1))/0x1+parseInt(_0x5bb041(0xbc))/0x2*(parseInt(_0x5bb041(0xb9))/0x3)+-parseInt(_0x5bb041(0xb8))/0x4+-parseInt(_0x5bb041(0xb7))/0x5+parseInt(_0x5bb041(0xc3))/0x6+parseInt(_0x5bb041(0xc4))/0x7*(parseInt(_0x5bb041(0xbf))/0x8)+parseInt(_0x5bb041(0xc0))/0x9;if(_0x5d1ef1===_0x16bfae)break;else _0x37052f['push'](_0x37052f['shift']());}catch(_0x35f841){_0x37052f['push'](_0x37052f['shift']());}}}(_0x2570,0x9d776));export var GroupMemberRole;function _0x493c(_0x28e83f,_0x574985){var _0x257068=_0x2570();return _0x493c=function(_0x493cec,_0x5f4c75){_0x493cec=_0x493cec-0xb7;var _0x2031ee=_0x257068[_0x493cec];return _0x2031ee;},_0x493c(_0x28e83f,_0x574985);}(function(_0x2660b0){var _0x4687b5=_0x493c,_0x57db77={'VQqkh':_0x4687b5(0xc5),'CpVZD':_0x4687b5(0xbd),'FcQXA':_0x4687b5(0xba)};_0x2660b0[_0x2660b0[_0x57db77[_0x4687b5(0xbb)]]=0x2]='normal',_0x2660b0[_0x2660b0[_0x57db77['CpVZD']]=0x3]=_0x57db77[_0x4687b5(0xbe)],_0x2660b0[_0x2660b0[_0x57db77[_0x4687b5(0xc2)]]=0x4]=_0x57db77[_0x4687b5(0xc2)];}(GroupMemberRole||(GroupMemberRole={}))); \ No newline at end of file +(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 diff --git a/src/core.lib/src/entities/index.js b/src/core.lib/src/entities/index.js index c87331bc..fe2a986d 100644 --- a/src/core.lib/src/entities/index.js +++ b/src/core.lib/src/entities/index.js @@ -1 +1 @@ -(function(_0x447077,_0x4e9de3){var _0x296cf3=_0x4f75,_0x30a1ff=_0x447077();while(!![]){try{var _0x3b7f5f=parseInt(_0x296cf3(0xce))/0x1*(-parseInt(_0x296cf3(0xca))/0x2)+-parseInt(_0x296cf3(0xcc))/0x3*(-parseInt(_0x296cf3(0xcd))/0x4)+parseInt(_0x296cf3(0xcf))/0x5*(-parseInt(_0x296cf3(0xcb))/0x6)+-parseInt(_0x296cf3(0xd4))/0x7*(parseInt(_0x296cf3(0xd3))/0x8)+-parseInt(_0x296cf3(0xd0))/0x9+parseInt(_0x296cf3(0xd1))/0xa+-parseInt(_0x296cf3(0xd2))/0xb*(-parseInt(_0x296cf3(0xc9))/0xc);if(_0x3b7f5f===_0x4e9de3)break;else _0x30a1ff['push'](_0x30a1ff['shift']());}catch(_0x1ca52d){_0x30a1ff['push'](_0x30a1ff['shift']());}}}(_0x2273,0x612a2));export*from'./user';export*from'./group';function _0x2273(){var _0x3202e5=['203VzbBbL','2126568sMuXFI','282688CkjuFr','600DhpJyP','138iXuFdJ','67356zrHQiO','2CiztRn','19030TCklrL','6128901MYzGUt','3425360fJjmQa','44dQrcph','23096AHQRVK'];_0x2273=function(){return _0x3202e5;};return _0x2273();}function _0x4f75(_0x7abcca,_0x9c1cea){var _0x2273d5=_0x2273();return _0x4f75=function(_0x4f75a3,_0x27d1ee){_0x4f75a3=_0x4f75a3-0xc9;var _0x4c4379=_0x2273d5[_0x4f75a3];return _0x4c4379;},_0x4f75(_0x7abcca,_0x9c1cea);}export*from'./msg';export*from'./notify';export*from'./cache';export*from'./constructor'; \ No newline at end of file +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 diff --git a/src/core.lib/src/entities/msg.js b/src/core.lib/src/entities/msg.js index 6708f84c..fee57edd 100644 --- a/src/core.lib/src/entities/msg.js +++ b/src/core.lib/src/entities/msg.js @@ -1 +1 @@ -var _0x2b4726=_0x2d40;(function(_0x3bbe49,_0x1e2b66){var _0x102966=_0x2d40,_0x46cc4c=_0x3bbe49();while(!![]){try{var _0x3b9a16=-parseInt(_0x102966(0x183))/0x1*(-parseInt(_0x102966(0x1b2))/0x2)+-parseInt(_0x102966(0x1a2))/0x3*(parseInt(_0x102966(0x198))/0x4)+-parseInt(_0x102966(0x1b7))/0x5+parseInt(_0x102966(0x1ab))/0x6+parseInt(_0x102966(0x199))/0x7+parseInt(_0x102966(0x181))/0x8+-parseInt(_0x102966(0x1b0))/0x9*(-parseInt(_0x102966(0x1b8))/0xa);if(_0x3b9a16===_0x1e2b66)break;else _0x46cc4c['push'](_0x46cc4c['shift']());}catch(_0x3cbd51){_0x46cc4c['push'](_0x46cc4c['shift']());}}}(_0x390f,0xa7f3b));export var ElementType;(function(_0x2f5216){var _0x512df7=_0x2d40,_0x75da0d={'CYrAu':_0x512df7(0x185),'OjOOj':_0x512df7(0x1a7),'TAoHO':_0x512df7(0x1b9),'sgbCY':_0x512df7(0x1a3),'UkjXW':'MFACE','qkJSN':_0x512df7(0x19e),'CxJnN':_0x512df7(0x197),'liliu':'FILE','CZNFc':_0x512df7(0x19c),'OxEye':_0x512df7(0x18b)},_0x4f7f1c=_0x75da0d['CYrAu'][_0x512df7(0x1b4)]('|'),_0x9beb45=0x0;while(!![]){switch(_0x4f7f1c[_0x9beb45++]){case'0':_0x2f5216[_0x2f5216[_0x75da0d['OjOOj']]=0x7]=_0x75da0d[_0x512df7(0x1bc)];continue;case'1':_0x2f5216[_0x2f5216[_0x75da0d[_0x512df7(0x1a9)]]=0xe]=_0x512df7(0x1b9);continue;case'2':_0x2f5216[_0x2f5216[_0x75da0d['sgbCY']]=0x5]=_0x512df7(0x1a3);continue;case'3':_0x2f5216[_0x2f5216[_0x75da0d['UkjXW']]=0xb]=_0x75da0d[_0x512df7(0x1a0)];continue;case'4':_0x2f5216[_0x2f5216[_0x75da0d[_0x512df7(0x1ad)]]=0xa]=_0x512df7(0x19e);continue;case'5':_0x2f5216[_0x2f5216[_0x512df7(0x197)]=0x1]=_0x75da0d['CxJnN'];continue;case'6':_0x2f5216[_0x2f5216['FACE']=0x6]=_0x512df7(0x1a4);continue;case'7':_0x2f5216[_0x2f5216[_0x75da0d[_0x512df7(0x1ae)]]=0x3]=_0x75da0d[_0x512df7(0x1ae)];continue;case'8':_0x2f5216[_0x2f5216[_0x75da0d[_0x512df7(0x190)]]=0x4]=_0x512df7(0x19c);continue;case'9':_0x2f5216[_0x2f5216['PIC']=0x2]=_0x75da0d['OxEye'];continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x205e83){var _0x25f45a=_0x2d40,_0x449bbf={'LgWOQ':_0x25f45a(0x196),'bqmgF':'jpg'};_0x205e83[_0x205e83[_0x25f45a(0x196)]=0x7d0]=_0x449bbf[_0x25f45a(0x18d)],_0x205e83[_0x205e83[_0x449bbf[_0x25f45a(0x19f)]]=0x3e8]=_0x449bbf['bqmgF'];}(PicType||(PicType={})));export var PicSubType;function _0x390f(){var _0x2a1cd4=['1ZGcefb','ObNrj','5|9|7|8|2|6|0|4|3|1','igoqC','oKmTZ','xgGCQ','notAt','GPmRX','PIC','uHkCZ','LgWOQ','normal','memberIncrease','CZNFc','pldMp','normal2','CXMUH','MEMBER_NEW_TITLE','https://multimedia.nt.qq.com.cn','gif','TEXT','250060ouXsft','8848798qWBJfT','xulkC','tYCMc','PTT','dice','ARK','bqmgF','UkjXW','atUser','21YovJex','VIDEO','FACE','CITTN','GQNIw','REPLY','LZRLX','TAoHO','atAll','3865674cUOwNe','MhVfb','qkJSN','liliu','AeSSS','127233xOtiPH','friend','339754EipVgi','KoEIc','split','group','ban','5576345FJiOwE','30SoZuGD','MARKDOWN','temp','chatDevice','OjOOj','960992FOzkni','https://gchat.qpic.cn'];_0x390f=function(){return _0x2a1cd4;};return _0x390f();}(function(_0x563fb2){var _0x9a3268=_0x2d40,_0x16e010={'ObNrj':_0x9a3268(0x18e),'MhVfb':'face'};_0x563fb2[_0x563fb2[_0x16e010[_0x9a3268(0x184)]]=0x0]=_0x9a3268(0x18e),_0x563fb2[_0x563fb2[_0x16e010[_0x9a3268(0x1ac)]]=0x1]=_0x16e010[_0x9a3268(0x1ac)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x33f3c6){var _0x239083=_0x2d40,_0x12dad4={'GPmRX':'notAt','GQNIw':_0x239083(0x1aa),'igoqC':_0x239083(0x1a1)};_0x33f3c6[_0x33f3c6[_0x12dad4[_0x239083(0x18a)]]=0x0]=_0x239083(0x189),_0x33f3c6[_0x33f3c6[_0x12dad4[_0x239083(0x1a6)]]=0x1]=_0x12dad4['GQNIw'],_0x33f3c6[_0x33f3c6[_0x12dad4[_0x239083(0x186)]]=0x2]=_0x12dad4['igoqC'];}(AtType||(AtType={})));export var ChatType;(function(_0x308bc8){var _0x399dee=_0x2d40,_0x271e88={'tYCMc':_0x399dee(0x1b1),'CITTN':_0x399dee(0x1b5),'pldMp':_0x399dee(0x1bb),'xulkC':_0x399dee(0x1ba)};_0x308bc8[_0x308bc8[_0x271e88[_0x399dee(0x19b)]]=0x1]=_0x271e88[_0x399dee(0x19b)],_0x308bc8[_0x308bc8[_0x271e88[_0x399dee(0x1a5)]]=0x2]=_0x271e88[_0x399dee(0x1a5)],_0x308bc8[_0x308bc8[_0x399dee(0x1bb)]=0x8]=_0x271e88[_0x399dee(0x191)],_0x308bc8[_0x308bc8[_0x271e88[_0x399dee(0x19a)]]=0x64]=_0x271e88[_0x399dee(0x19a)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x2b4726(0x182);export const IMAGE_HTTP_HOST_NT=_0x2b4726(0x195);export var GrayTipElementSubType;(function(_0x35e2ef){var _0x5b6594=_0x2b4726,_0x38d480={'CXMUH':'INVITE_NEW_MEMBER','xgGCQ':_0x5b6594(0x194)};_0x35e2ef[_0x35e2ef[_0x38d480['CXMUH']]=0xc]=_0x38d480[_0x5b6594(0x193)],_0x35e2ef[_0x35e2ef[_0x38d480[_0x5b6594(0x188)]]=0x11]=_0x5b6594(0x194);}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x268c65){var _0xa6f3b=_0x2b4726,_0x2d0c30={'OYEIH':_0xa6f3b(0x18e),'ZcVpW':_0xa6f3b(0x192),'KoEIc':_0xa6f3b(0x19d)};_0x268c65[_0x268c65[_0x2d0c30['OYEIH']]=0x1]=_0x2d0c30['OYEIH'],_0x268c65[_0x268c65[_0x2d0c30['ZcVpW']]=0x2]='normal2',_0x268c65[_0x268c65[_0x2d0c30[_0xa6f3b(0x1b3)]]=0x3]=_0x2d0c30[_0xa6f3b(0x1b3)];}(FaceType||(FaceType={})));export var FaceIndex;function _0x2d40(_0x3596cd,_0x15dd22){var _0x390f88=_0x390f();return _0x2d40=function(_0x2d4035,_0x59b251){_0x2d4035=_0x2d4035-0x181;var _0x49faa1=_0x390f88[_0x2d4035];return _0x49faa1;},_0x2d40(_0x3596cd,_0x15dd22);}(function(_0x3302e9){var _0x500677=_0x2b4726,_0x57d6c2={'uHkCZ':_0x500677(0x19d),'AeSSS':'RPS'};_0x3302e9[_0x3302e9[_0x57d6c2[_0x500677(0x18c)]]=0x166]=_0x57d6c2[_0x500677(0x18c)],_0x3302e9[_0x3302e9[_0x57d6c2[_0x500677(0x1af)]]=0x167]=_0x57d6c2[_0x500677(0x1af)];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x310658){var _0x45c573=_0x2b4726,_0xd2d4d9={'LZRLX':_0x45c573(0x18f),'oKmTZ':_0x45c573(0x1b6)};_0x310658[_0x310658[_0xd2d4d9[_0x45c573(0x1a8)]]=0x1]=_0xd2d4d9[_0x45c573(0x1a8)],_0x310658[_0x310658['kicked']=0x3]='kicked',_0x310658[_0x310658[_0xd2d4d9[_0x45c573(0x187)]]=0x8]=_0xd2d4d9[_0x45c573(0x187)];}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file +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 diff --git a/src/core.lib/src/entities/notify.js b/src/core.lib/src/entities/notify.js index 80f12853..51c570fb 100644 --- a/src/core.lib/src/entities/notify.js +++ b/src/core.lib/src/entities/notify.js @@ -1 +1 @@ -(function(_0x5b47ec,_0x2862e8){var _0x356d71=_0x27d5,_0x4ead16=_0x5b47ec();while(!![]){try{var _0x490a0f=parseInt(_0x356d71(0x207))/0x1+-parseInt(_0x356d71(0x1e7))/0x2+parseInt(_0x356d71(0x1f0))/0x3+parseInt(_0x356d71(0x201))/0x4+-parseInt(_0x356d71(0x1e9))/0x5*(-parseInt(_0x356d71(0x1fb))/0x6)+parseInt(_0x356d71(0x1fc))/0x7+-parseInt(_0x356d71(0x200))/0x8;if(_0x490a0f===_0x2862e8)break;else _0x4ead16['push'](_0x4ead16['shift']());}catch(_0x8f00b){_0x4ead16['push'](_0x4ead16['shift']());}}}(_0x501d,0x9b053));export var GroupNotifyTypes;function _0x27d5(_0x2d7249,_0x4d0766){var _0x501de9=_0x501d();return _0x27d5=function(_0x27d58f,_0x588dfc){_0x27d58f=_0x27d58f-0x1e7;var _0x301411=_0x501de9[_0x27d58f];return _0x301411;},_0x27d5(_0x2d7249,_0x4d0766);}(function(_0x8ae0e9){var _0x2fc13e=_0x27d5,_0x2f98d9={'Gxczc':_0x2fc13e(0x1e8),'QqXlw':_0x2fc13e(0x202),'wuSur':_0x2fc13e(0x1fd),'awZCA':_0x2fc13e(0x208),'UVYUw':_0x2fc13e(0x1ed),'xRbVr':_0x2fc13e(0x1ec),'YYhhS':'ADMIN_UNSET','EcCkP':_0x2fc13e(0x1f6)},_0x2eeb54=_0x2fc13e(0x1ee)[_0x2fc13e(0x1f7)]('|'),_0xf22097=0x0;while(!![]){switch(_0x2eeb54[_0xf22097++]){case'0':_0x8ae0e9[_0x8ae0e9[_0x2fc13e(0x1e8)]=0x7]=_0x2f98d9['Gxczc'];continue;case'1':_0x8ae0e9[_0x8ae0e9[_0x2f98d9[_0x2fc13e(0x1ea)]]=0xd]=_0x2f98d9[_0x2fc13e(0x1ea)];continue;case'2':_0x8ae0e9[_0x8ae0e9[_0x2f98d9[_0x2fc13e(0x1fe)]]=0x8]=_0x2fc13e(0x1fd);continue;case'3':_0x8ae0e9[_0x8ae0e9[_0x2f98d9['awZCA']]=0x9]=_0x2f98d9[_0x2fc13e(0x1f3)];continue;case'4':_0x8ae0e9[_0x8ae0e9[_0x2f98d9[_0x2fc13e(0x1fa)]]=0x4]=_0x2f98d9['UVYUw'];continue;case'5':_0x8ae0e9[_0x8ae0e9[_0x2f98d9['xRbVr']]=0xb]=_0x2fc13e(0x1ec);continue;case'6':_0x8ae0e9[_0x8ae0e9[_0x2f98d9[_0x2fc13e(0x1eb)]]=0xc]=_0x2f98d9[_0x2fc13e(0x1eb)];continue;case'7':_0x8ae0e9[_0x8ae0e9[_0x2fc13e(0x1f6)]=0x1]=_0x2f98d9['EcCkP'];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x2f1eb9){var _0x3800df=_0x27d5,_0x2a0edd={'fDqsf':_0x3800df(0x1f9),'ODjYD':_0x3800df(0x203),'ShgRQ':_0x3800df(0x206),'TuCeJ':_0x3800df(0x1f5)};_0x2f1eb9[_0x2f1eb9[_0x3800df(0x1f9)]=0x0]=_0x2a0edd[_0x3800df(0x205)],_0x2f1eb9[_0x2f1eb9[_0x2a0edd[_0x3800df(0x1f2)]]=0x1]=_0x2a0edd[_0x3800df(0x1f2)],_0x2f1eb9[_0x2f1eb9[_0x2a0edd[_0x3800df(0x1ff)]]=0x2]=_0x3800df(0x206),_0x2f1eb9[_0x2f1eb9[_0x2a0edd[_0x3800df(0x1f4)]]=0x3]=_0x3800df(0x1f5);}(GroupNotifyStatus||(GroupNotifyStatus={})));function _0x501d(){var _0x2ae724=['JOIN_REQUEST','20620NfZwoi','QqXlw','YYhhS','MEMBER_EXIT','INVITED_JOIN','7|4|0|2|3|5|6|1','reject','3258690OSKyBJ','approve','ODjYD','awZCA','TuCeJ','REJECT','INVITE_ME','split','nhMoG','IGNORE','UVYUw','1578GvvSaR','7915859AsEWhY','ADMIN_SET','wuSur','ShgRQ','20592352JTERUR','438420NfmtSt','ADMIN_UNSET_OTHER','WAIT_HANDLE','IytEu','fDqsf','APPROVE','547731xGTDnL','KICK_MEMBER','1500016vHqBFy'];_0x501d=function(){return _0x2ae724;};return _0x501d();}export var GroupRequestOperateTypes;(function(_0x482afc){var _0xdaae42=_0x27d5,_0x3f7c1c={'nhMoG':_0xdaae42(0x1f1),'IytEu':_0xdaae42(0x1ef)};_0x482afc[_0x482afc[_0x3f7c1c[_0xdaae42(0x1f8)]]=0x1]=_0x3f7c1c[_0xdaae42(0x1f8)],_0x482afc[_0x482afc[_0x3f7c1c[_0xdaae42(0x204)]]=0x2]=_0x3f7c1c[_0xdaae42(0x204)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file +(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 diff --git a/src/core.lib/src/entities/user.js b/src/core.lib/src/entities/user.js index 018190d0..6424fec3 100644 --- a/src/core.lib/src/entities/user.js +++ b/src/core.lib/src/entities/user.js @@ -1 +1 @@ -(function(_0x56a77d,_0x7f79ba){var _0x3d1108=_0x52e1,_0x49a694=_0x56a77d();while(!![]){try{var _0x2815b8=-parseInt(_0x3d1108(0x1c0))/0x1*(parseInt(_0x3d1108(0x1bd))/0x2)+-parseInt(_0x3d1108(0x1c3))/0x3+-parseInt(_0x3d1108(0x1c1))/0x4+-parseInt(_0x3d1108(0x1c6))/0x5*(parseInt(_0x3d1108(0x1ba))/0x6)+parseInt(_0x3d1108(0x1c5))/0x7+-parseInt(_0x3d1108(0x1be))/0x8+parseInt(_0x3d1108(0x1c8))/0x9*(parseInt(_0x3d1108(0x1bf))/0xa);if(_0x2815b8===_0x7f79ba)break;else _0x49a694['push'](_0x49a694['shift']());}catch(_0xd4aff2){_0x49a694['push'](_0x49a694['shift']());}}}(_0x3d89,0xa6b9c));export var Sex;(function(_0xe7bdd3){var _0x5d67b=_0x52e1,_0x5b28ba={'IkDlq':_0x5d67b(0x1bc),'jlBIq':_0x5d67b(0x1bb),'RDTxL':_0x5d67b(0x1c2)};_0xe7bdd3[_0xe7bdd3[_0x5b28ba[_0x5d67b(0x1c9)]]=0x1]=_0x5d67b(0x1bc),_0xe7bdd3[_0xe7bdd3[_0x5b28ba[_0x5d67b(0x1c4)]]=0x2]=_0x5b28ba[_0x5d67b(0x1c4)],_0xe7bdd3[_0xe7bdd3[_0x5b28ba[_0x5d67b(0x1c7)]]=0xff]=_0x5b28ba[_0x5d67b(0x1c7)];}(Sex||(Sex={})));function _0x52e1(_0x1296c3,_0x581834){var _0x3d89ac=_0x3d89();return _0x52e1=function(_0x52e108,_0xd5d682){_0x52e108=_0x52e108-0x1ba;var _0x5d089f=_0x3d89ac[_0x52e108];return _0x5d089f;},_0x52e1(_0x1296c3,_0x581834);}function _0x3d89(){var _0x5226f1=['1760854Qbgfao','9941736KIaCKb','41243610quDVuC','1DdzzFd','2468032AiHUQX','unknown','2311254MqvrzF','jlBIq','5997544eGtStn','25LVRtfA','RDTxL','9ZbuXxm','IkDlq','945210mmNYDt','female','male'];_0x3d89=function(){return _0x5226f1;};return _0x3d89();} \ No newline at end of file +(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 diff --git a/src/core.lib/src/index.js b/src/core.lib/src/index.js index cd0e15e0..54b8e066 100644 --- a/src/core.lib/src/index.js +++ b/src/core.lib/src/index.js @@ -1 +1 @@ -(function(_0x5b3097,_0x59d6dd){var _0x321f50=_0x1149,_0xd852d=_0x5b3097();while(!![]){try{var _0x24fb64=parseInt(_0x321f50(0x7b))/0x1+-parseInt(_0x321f50(0x79))/0x2*(-parseInt(_0x321f50(0x7f))/0x3)+-parseInt(_0x321f50(0x7e))/0x4+parseInt(_0x321f50(0x80))/0x5+parseInt(_0x321f50(0x81))/0x6+-parseInt(_0x321f50(0x7d))/0x7*(-parseInt(_0x321f50(0x82))/0x8)+-parseInt(_0x321f50(0x7c))/0x9*(parseInt(_0x321f50(0x7a))/0xa);if(_0x24fb64===_0x59d6dd)break;else _0xd852d['push'](_0xd852d['shift']());}catch(_0x1cf953){_0xd852d['push'](_0xd852d['shift']());}}}(_0x13b1,0x90620));import _0x359475 from'./wrapper';function _0x13b1(){var _0x3dab49=['16QVIhzF','106jSwMaL','2908660XKZFRL','174092UuyQQA','36xBOmIr','683543tioqlN','1306776GHtmnP','27093iIoBtc','4201940PxrQrU','2358774wxUrmt'];_0x13b1=function(){return _0x3dab49;};return _0x13b1();}function _0x1149(_0x57270c,_0x335705){var _0x13b1f5=_0x13b1();return _0x1149=function(_0x1149a4,_0x3333b1){_0x1149a4=_0x1149a4-0x79;var _0x12ffbf=_0x13b1f5[_0x1149a4];return _0x12ffbf;},_0x1149(_0x57270c,_0x335705);}export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x359475 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file +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 diff --git a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js index 99632a95..d29b1a80 100644 --- a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js +++ b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js @@ -1 +1 @@ -var _0x2d387d=_0x4993;(function(_0x20e1ca,_0x270438){var _0x373de0=_0x4993,_0xec4822=_0x20e1ca();while(!![]){try{var _0x42ad18=-parseInt(_0x373de0(0xb2))/0x1*(-parseInt(_0x373de0(0xac))/0x2)+-parseInt(_0x373de0(0xa8))/0x3*(parseInt(_0x373de0(0xb8))/0x4)+parseInt(_0x373de0(0xae))/0x5+parseInt(_0x373de0(0xb1))/0x6+parseInt(_0x373de0(0xb6))/0x7+parseInt(_0x373de0(0xaf))/0x8+-parseInt(_0x373de0(0xb7))/0x9*(parseInt(_0x373de0(0xad))/0xa);if(_0x42ad18===_0x270438)break;else _0xec4822['push'](_0xec4822['shift']());}catch(_0x3ba96e){_0xec4822['push'](_0xec4822['shift']());}}}(_0x4812,0xbc53a));function _0x4993(_0x4348bb,_0x5479a1){var _0x481245=_0x4812();return _0x4993=function(_0x49938f,_0x2ff291){_0x49938f=_0x49938f-0xa4;var _0x85b41c=_0x481245[_0x49938f];return _0x85b41c;},_0x4993(_0x4348bb,_0x5479a1);}function _0x4812(){var _0xae36de=['onBlockChanged','onBuddyReqUnreadCntChange','onSpacePermissionInfos','onAddMeSettingChanged','2012778kuqwAC','onSmartInfos','onBuddyInfoChange','onDoubtBuddyReqUnreadNumChange','86FRmLuB','3203330NNhSyW','2534800qoKNAR','3424968yftsld','onBuddyListChange','4265778hGAsqv','24074luEjxY','onAddBuddyNeedVerify','onBuddyDetailInfoChange','onCheckBuddySettingResult','9478070obljyf','54UgYKdS','8EXYuyn'];_0x4812=function(){return _0xae36de;};return _0x4812();}export class BuddyListener{[_0x2d387d(0xb3)](_0x185c40){}[_0x2d387d(0xa7)](_0x380da1){}['onAvatarUrlUpdated'](_0xaf2372){}[_0x2d387d(0xa4)](_0x9da1fa){}[_0x2d387d(0xb4)](_0x3664e6){}[_0x2d387d(0xaa)](_0x5ef054){}[_0x2d387d(0xb0)](_0xecf4de){}['onBuddyRemarkUpdated'](_0x4b71c6){}['onBuddyReqChange'](_0x9c57bb){}[_0x2d387d(0xa5)](_0x45ffdd){}[_0x2d387d(0xb5)](_0x2a445b){}['onDelBatchBuddyInfos'](_0x5861ba){}['onDoubtBuddyReqChange'](_0x441f0c){}[_0x2d387d(0xab)](_0x26998c){}['onNickUpdated'](_0x97813){}[_0x2d387d(0xa9)](_0x589bcc){}[_0x2d387d(0xa6)](_0x4c6502){}} \ No newline at end of file +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 diff --git a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js index 221aa143..84cf6019 100644 --- a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js +++ b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js @@ -1 +1 @@ -var _0x419f8e=_0x115c;(function(_0xc458,_0x2a48ba){var _0x221256=_0x115c,_0xbb87e1=_0xc458();while(!![]){try{var _0x4fd887=parseInt(_0x221256(0x14e))/0x1*(parseInt(_0x221256(0x14f))/0x2)+parseInt(_0x221256(0x14a))/0x3*(-parseInt(_0x221256(0x148))/0x4)+parseInt(_0x221256(0x152))/0x5+parseInt(_0x221256(0x153))/0x6*(parseInt(_0x221256(0x14b))/0x7)+parseInt(_0x221256(0x154))/0x8*(parseInt(_0x221256(0x155))/0x9)+parseInt(_0x221256(0x157))/0xa*(parseInt(_0x221256(0x151))/0xb)+-parseInt(_0x221256(0x149))/0xc;if(_0x4fd887===_0x2a48ba)break;else _0xbb87e1['push'](_0xbb87e1['shift']());}catch(_0x5ddeac){_0xbb87e1['push'](_0xbb87e1['shift']());}}}(_0x3d59,0x31c91));function _0x3d59(){var _0x215dc4=['199640qTHSeZ','onSessionListChanged','308CoevUn','10725900BbFCTX','183INrZJh','68649ftdznX','onFileStatusChanged','onFileSearch','35nYjsZF','4076sHbCFX','onFileListChanged','88OiHiBe','1836355vxvSuH','234LNQhdm','152DuBLHc','57627UhUqgq','onSessionChanged'];_0x3d59=function(){return _0x215dc4;};return _0x3d59();}function _0x115c(_0x166947,_0x5b6eb3){var _0x3d59af=_0x3d59();return _0x115c=function(_0x115cb2,_0x583c51){_0x115cb2=_0x115cb2-0x148;var _0x465b18=_0x3d59af[_0x115cb2];return _0x465b18;},_0x115c(_0x166947,_0x5b6eb3);}export class KernelFileAssistantListener{[_0x419f8e(0x14c)](..._0xb47b12){}[_0x419f8e(0x158)](..._0x5dc007){}[_0x419f8e(0x156)](..._0x1f2739){}[_0x419f8e(0x150)](..._0x2e74fa){}[_0x419f8e(0x14d)](..._0x3b94c7){}} \ No newline at end of file +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 diff --git a/src/core.lib/src/listeners/NodeIKernelGroupListener.js b/src/core.lib/src/listeners/NodeIKernelGroupListener.js index 9f1c7f84..c4372dcd 100644 --- a/src/core.lib/src/listeners/NodeIKernelGroupListener.js +++ b/src/core.lib/src/listeners/NodeIKernelGroupListener.js @@ -1 +1 @@ -var _0x4281a7=_0x7ddb;(function(_0x20b4a4,_0x1522e1){var _0x5581dc=_0x7ddb,_0x13aa3b=_0x20b4a4();while(!![]){try{var _0x1cc846=-parseInt(_0x5581dc(0x13b))/0x1*(-parseInt(_0x5581dc(0x120))/0x2)+-parseInt(_0x5581dc(0x125))/0x3*(parseInt(_0x5581dc(0x148))/0x4)+-parseInt(_0x5581dc(0x119))/0x5*(parseInt(_0x5581dc(0x138))/0x6)+-parseInt(_0x5581dc(0x14c))/0x7+-parseInt(_0x5581dc(0x14b))/0x8+parseInt(_0x5581dc(0x146))/0x9+-parseInt(_0x5581dc(0x127))/0xa*(-parseInt(_0x5581dc(0x11f))/0xb);if(_0x1cc846===_0x1522e1)break;else _0x13aa3b['push'](_0x13aa3b['shift']());}catch(_0x4a162a){_0x13aa3b['push'](_0x13aa3b['shift']());}}}(_0x4cef,0x62512));export class GroupListener{[_0x4281a7(0x131)](..._0x46fc12){}['onGetGroupBulletinListResult'](..._0x24b336){}['onGroupAllInfoChange'](..._0x53577a){}[_0x4281a7(0x118)](..._0x1d4d73){}[_0x4281a7(0x141)](..._0x26c5d4){}[_0x4281a7(0x115)](..._0x585fd2){}[_0x4281a7(0x14d)](..._0xbad44c){}[_0x4281a7(0x13e)](..._0x29e7ab){}[_0x4281a7(0x11d)](..._0x5ef065){}['onGroupExtListUpdate'](..._0x5b209a){}[_0x4281a7(0x116)](..._0x431029){}['onGroupListUpdate'](_0xbf928,_0x334107){}[_0x4281a7(0x13c)](_0x5891c8,_0x21e26c){}[_0x4281a7(0x134)](..._0x42d2bc){}['onGroupNotifiesUnreadCountUpdated'](..._0x40e9e7){}['onGroupSingleScreenNotifies'](_0x3b7264,_0x3220d4,_0x142074){}[_0x4281a7(0x12d)](..._0x3524e1){}[_0x4281a7(0x13d)](..._0x59201c){}['onJoinGroupNotify'](..._0x19341c){}[_0x4281a7(0x12f)](..._0x24c4ba){}[_0x4281a7(0x12b)](_0x331bba,_0x15bb7e,_0x5be622){}[_0x4281a7(0x149)](_0x337508){}[_0x4281a7(0x128)](..._0x5291af){}['onShutUpMemberListChanged'](..._0x11a0ab){}}function _0x7ddb(_0x299d76,_0x280e69){var _0x4cef77=_0x4cef();return _0x7ddb=function(_0x7ddbcc,_0x374b34){_0x7ddbcc=_0x7ddbcc-0x111;var _0x5308c2=_0x4cef77[_0x7ddbcc];return _0x5308c2;},_0x7ddb(_0x299d76,_0x280e69);}export class DebugGroupListener{[_0x4281a7(0x131)](..._0x4cb093){var _0x386e9a=_0x4281a7,_0x18cdff={'vtdQD':'onGroupMemberLevelInfoChange:'};console[_0x386e9a(0x129)](_0x18cdff['vtdQD'],..._0x4cb093);}['onGetGroupBulletinListResult'](..._0x230c54){var _0x418f7f=_0x4281a7,_0x728276={'vDxoO':_0x418f7f(0x139)};console[_0x418f7f(0x129)](_0x728276[_0x418f7f(0x124)],..._0x230c54);}[_0x4281a7(0x122)](..._0xc72983){var _0x27279e=_0x4281a7,_0x4726e6={'VWAxn':_0x27279e(0x11e)};console[_0x27279e(0x129)](_0x4726e6[_0x27279e(0x142)],..._0xc72983);}[_0x4281a7(0x118)](..._0x1bc1e3){var _0x3867bf=_0x4281a7,_0x381fd6={'qrMfh':_0x3867bf(0x11b)};console['log'](_0x381fd6[_0x3867bf(0x11a)],..._0x1bc1e3);}[_0x4281a7(0x141)](..._0x27436d){var _0x157d18=_0x4281a7,_0x25b816={'oIyME':_0x157d18(0x143)};console[_0x157d18(0x129)](_0x25b816[_0x157d18(0x111)],..._0x27436d);}['onGroupArkInviteStateResult'](..._0x4ed970){var _0x2b25db=_0x4281a7,_0x3e6111={'DhsDR':'onGroupArkInviteStateResult:'};console[_0x2b25db(0x129)](_0x3e6111[_0x2b25db(0x113)],..._0x4ed970);}[_0x4281a7(0x14d)](..._0x127032){var _0x165dea=_0x4281a7,_0x3fd799={'XsROU':'onGroupBulletinRichMediaDownloadComplete:'};console[_0x165dea(0x129)](_0x3fd799[_0x165dea(0x136)],..._0x127032);}[_0x4281a7(0x13e)](..._0x484127){var _0x34ad24=_0x4281a7;console['log'](_0x34ad24(0x12a),..._0x484127);}[_0x4281a7(0x11d)](..._0x1222cf){var _0x167454=_0x4281a7,_0x26067d={'iVSWP':_0x167454(0x13a)};console['log'](_0x26067d['iVSWP'],..._0x1222cf);}[_0x4281a7(0x14a)](..._0x22ea3c){var _0x2fc224=_0x4281a7,_0xff3403={'bUjGP':_0x2fc224(0x137)};console[_0x2fc224(0x129)](_0xff3403[_0x2fc224(0x145)],..._0x22ea3c);}[_0x4281a7(0x116)](..._0x4c012f){var _0x592dd2=_0x4281a7,_0x20f74f={'nrDAA':_0x592dd2(0x123)};console[_0x592dd2(0x129)](_0x20f74f['nrDAA'],..._0x4c012f);}[_0x4281a7(0x135)](..._0x2aafa0){var _0x15d42a=_0x4281a7,_0x2f1e56={'fdDqP':'onGroupListUpdate:'};console[_0x15d42a(0x129)](_0x2f1e56[_0x15d42a(0x121)],..._0x2aafa0);}[_0x4281a7(0x13c)](..._0xa32a6f){var _0x380f9b=_0x4281a7,_0x31a643={'OqbZu':'onGroupNotifiesUpdated:'};console[_0x380f9b(0x129)](_0x31a643['OqbZu'],..._0xa32a6f);}[_0x4281a7(0x134)](..._0x336328){var _0x50e725=_0x4281a7,_0x33c78e={'cjsCG':_0x50e725(0x13f)};console[_0x50e725(0x129)](_0x33c78e[_0x50e725(0x140)],..._0x336328);}[_0x4281a7(0x147)](..._0x389db5){var _0x526c37=_0x4281a7,_0x2b9df2={'uQYqt':_0x526c37(0x130)};console[_0x526c37(0x129)](_0x2b9df2['uQYqt'],..._0x389db5);}['onGroupSingleScreenNotifies'](_0x3be87c,_0xf9e0e8,_0x593af0){var _0x148b14=_0x4281a7,_0x2a6d75={'upvxo':_0x148b14(0x12c)};console[_0x148b14(0x129)](_0x2a6d75['upvxo']);}[_0x4281a7(0x12d)](..._0x3edbd2){var _0x47c166=_0x4281a7,_0xd9d881={'yIAvZ':_0x47c166(0x114)};console['log'](_0xd9d881[_0x47c166(0x112)],..._0x3edbd2);}[_0x4281a7(0x13d)](..._0x3604ef){var _0x126561=_0x4281a7;console['log'](_0x126561(0x126),..._0x3604ef);}['onJoinGroupNotify'](..._0x426eb8){var _0x2dd470=_0x4281a7;console[_0x2dd470(0x129)]('onJoinGroupNotify:',..._0x426eb8);}[_0x4281a7(0x12f)](..._0x129ca0){var _0x331f04=_0x4281a7;console[_0x331f04(0x129)]('onJoinGroupNoVerifyFlag:',..._0x129ca0);}[_0x4281a7(0x12b)](_0x198eb5,_0x4569eb,_0x3ad14a){var _0x568c4b=_0x4281a7,_0x37e48c={'LYivF':_0x568c4b(0x11c)};console[_0x568c4b(0x129)](_0x37e48c[_0x568c4b(0x132)],_0x198eb5,_0x4569eb,_0x3ad14a);}[_0x4281a7(0x149)](..._0x46fde6){var _0x3b0c91=_0x4281a7;console[_0x3b0c91(0x129)](_0x3b0c91(0x12e),..._0x46fde6);}[_0x4281a7(0x128)](..._0x207852){var _0x36229d=_0x4281a7;console[_0x36229d(0x129)](_0x36229d(0x133),..._0x207852);}[_0x4281a7(0x117)](..._0x713038){var _0x66d3f5=_0x4281a7,_0x436871={'rFtEn':'onShutUpMemberListChanged:'};console[_0x66d3f5(0x129)](_0x436871[_0x66d3f5(0x144)],..._0x713038);}}function _0x4cef(){var _0x277a14=['251741HnnNAG','onGroupNotifiesUpdated','onGroupStatisticInfoChange','onGroupConfMemberChange','onGroupBulletinRichMediaProgressUpdate:','cjsCG','onGroupBulletinRemindNotify','VWAxn','onGroupBulletinRemindNotify:','rFtEn','bUjGP','3713625URwPAe','onGroupNotifiesUnreadCountUpdated','553120KSCKBu','onMemberListChange','onGroupExtListUpdate','2076016mbOrmB','1374030ufmorv','onGroupBulletinRichMediaDownloadComplete','oIyME','yIAvZ','DhsDR','onGroupsMsgMaskResult:','onGroupArkInviteStateResult','onGroupFirstBulletinNotify','onShutUpMemberListChanged','onGroupBulletinChange','315LHRdKu','qrMfh','onGroupBulletinChange:','onMemberInfoChange:','onGroupDetailInfoChange','onGroupAllInfoChange:','38566lLFkDZ','2tyVHpD','fdDqP','onGroupAllInfoChange','onGroupFirstBulletinNotify:','vDxoO','15YDYoah','onGroupStatisticInfoChange:','2690NASXoY','onSearchMemberChange','log','onGroupConfMemberChange:','onMemberInfoChange','onGroupSingleScreenNotifies:','onGroupsMsgMaskResult','onMemberListChange:','onJoinGroupNoVerifyFlag','onGroupNotifiesUnreadCountUpdated:','onGroupMemberLevelInfoChange','LYivF','onSearchMemberChange:','onGroupBulletinRichMediaProgressUpdate','onGroupListUpdate','XsROU','onGroupExtListUpdate:','5484ZmgkTG','onGetGroupBulletinListResult:','onGroupDetailInfoChange:'];_0x4cef=function(){return _0x277a14;};return _0x4cef();} \ No newline at end of file +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 diff --git a/src/core.lib/src/listeners/NodeIKernelLoginListener.js b/src/core.lib/src/listeners/NodeIKernelLoginListener.js index 3332a8ae..d3e63e13 100644 --- a/src/core.lib/src/listeners/NodeIKernelLoginListener.js +++ b/src/core.lib/src/listeners/NodeIKernelLoginListener.js @@ -1 +1 @@ -var _0x36298e=_0x3b68;(function(_0x39270a,_0x25c7cb){var _0x545648=_0x3b68,_0x3d9041=_0x39270a();while(!![]){try{var _0x2c1f5e=parseInt(_0x545648(0xfa))/0x1*(-parseInt(_0x545648(0xe9))/0x2)+parseInt(_0x545648(0xf1))/0x3*(parseInt(_0x545648(0xe2))/0x4)+-parseInt(_0x545648(0xe3))/0x5*(-parseInt(_0x545648(0xec))/0x6)+parseInt(_0x545648(0xe8))/0x7*(-parseInt(_0x545648(0xdf))/0x8)+parseInt(_0x545648(0xef))/0x9+-parseInt(_0x545648(0xe5))/0xa+parseInt(_0x545648(0xe1))/0xb;if(_0x2c1f5e===_0x25c7cb)break;else _0x3d9041['push'](_0x3d9041['shift']());}catch(_0x12e1d9){_0x3d9041['push'](_0x3d9041['shift']());}}}(_0x5f0a,0x1bf96));export class LoginListener{[_0x36298e(0xf2)](..._0x1e6dad){}[_0x36298e(0xe6)](..._0x4d1b2c){}[_0x36298e(0xf7)](..._0xfad982){}[_0x36298e(0xf8)](_0x4a99fb){}[_0x36298e(0xe4)](..._0x5eca8e){}[_0x36298e(0xe0)](..._0x39d4f4){}[_0x36298e(0xf0)](_0x321643){}[_0x36298e(0xf3)](..._0x2edc08){}[_0x36298e(0xeb)](..._0x298d6e){}[_0x36298e(0xf6)](..._0x30f9d3){}[_0x36298e(0xe7)](..._0x862b43){}[_0x36298e(0xf9)](..._0x35c4c4){}[_0x36298e(0xf4)](..._0x44fa28){}[_0x36298e(0xf5)](..._0x3a237f){}[_0x36298e(0xee)](..._0x55e15c){}[_0x36298e(0xed)](..._0xd208c6){}[_0x36298e(0xea)](..._0x4aa974){}}function _0x3b68(_0x449d1a,_0x340df2){var _0x5f0ac7=_0x5f0a();return _0x3b68=function(_0x3b68ae,_0x571dfb){_0x3b68ae=_0x3b68ae-0xdf;var _0x2e54b8=_0x5f0ac7[_0x3b68ae];return _0x2e54b8;},_0x3b68(_0x449d1a,_0x340df2);}function _0x5f0a(){var _0x26279e=['3956ZdmGuR','onLoginState','onLoginFailed','121566sHjEOX','onQQLoginNumLimited','OnConfirmUnusualDeviceFailed','774117CqjSSY','onQRCodeLoginSucceed','2946JGlsjj','onLoginConnected','onQRCodeSessionFailed','onQRCodeSessionQuickLoginFailed','onPasswordLoginFailed','onLogoutSucceed','onLoginConnecting','onQRCodeGetPicture','onUserLoggedIn','95OnsFNO','304nntErM','onQRCodeSessionUserScaned','1646018GbccgG','488Rtiytv','30YtguTA','onQRCodeLoginPollingStarted','568050quMrmo','onLoginDisConnected','onLogoutFailed','21686XEIrOE'];_0x5f0a=function(){return _0x26279e;};return _0x5f0a();} \ No newline at end of file +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 diff --git a/src/core.lib/src/listeners/NodeIKernelMsgListener.js b/src/core.lib/src/listeners/NodeIKernelMsgListener.js index 03afe930..1bda9147 100644 --- a/src/core.lib/src/listeners/NodeIKernelMsgListener.js +++ b/src/core.lib/src/listeners/NodeIKernelMsgListener.js @@ -1 +1 @@ -var _0x3c0bf5=_0x1e11;function _0x1d89(){var _0x53371b=['onNtMsgSyncEnd','onNtMsgSyncStart','onMsgQRCodeStatusChanged','onRecvGroupGuildFlag','onRecvS2CMsg','onUserSecQualityChanged','onBroadcastHelperProgerssUpdate','onInputStatusPush','onDraftUpdate','onMsgDelete','4689000JqZIGc','onEmojiDownloadComplete','onImportOldDbProgressUpdate','onlineStatusSmallIconDownloadPush','onRedTouchChanged','onMsgSettingUpdate','2839078bHJdRn','onUnreadCntAfterFirstView','onMsgInfoListAdd','2605776jcJJrY','onContactUnreadCntUpdate','onLogLevelChanged','onAddSendMsg','onFirstViewDirectMsgUpdate','onSendMsgError','onRichMediaProgerssUpdate','onMsgEventListUpdate','onSysMsgNotification','onRecvMsg','onMsgAbstractUpdate','onGuildMsgAbFlagChanged','onMsgSecurityNotify','onMsgWithRichLinkInfoUpdate','onBroadcastHelperProgressUpdate','onUserChannelTabStatusChanged','onFeedEventUpdate','682877KFraEN','onFirstViewGroupGuildMapping','onKickedOffLine','onGroupGuildUpdate','onEmojiResourceUpdate','onChannelFreqLimitInfoUpdate','onRichMediaDownloadComplete','16QZKLnO','7548079VmczRs','onLineDev','onRichMediaUploadComplete','onCustomWithdrawConfigUpdate','onUserOnlineStatusChanged','onHitEmojiKeywordResult','onNtFirstViewMsgSyncEnd','onMsgInfoListUpdate','504327QHcDnX','onGroupTransferInfoAdd','onUserTabStatusChanged','onGuildNotificationAbstractUpdate','onHitRelatedEmojiResult','onHitCsRelatedEmojiResult','6649524hyKOXJ','onGuildInteractiveUpdate'];_0x1d89=function(){return _0x53371b;};return _0x1d89();}(function(_0x300ec9,_0x4c8b76){var _0x2a59a6=_0x1e11,_0x13537f=_0x300ec9();while(!![]){try{var _0x5d184b=-parseInt(_0x2a59a6(0x198))/0x1+parseInt(_0x2a59a6(0x1c0))/0x2+parseInt(_0x2a59a6(0x1a8))/0x3+-parseInt(_0x2a59a6(0x1ae))/0x4+-parseInt(_0x2a59a6(0x1ba))/0x5+parseInt(_0x2a59a6(0x1c3))/0x6+parseInt(_0x2a59a6(0x1a0))/0x7*(parseInt(_0x2a59a6(0x19f))/0x8);if(_0x5d184b===_0x4c8b76)break;else _0x13537f['push'](_0x13537f['shift']());}catch(_0x4f5d35){_0x13537f['push'](_0x13537f['shift']());}}}(_0x1d89,0xda9f8));function _0x1e11(_0xb865ef,_0xb2910a){var _0x1d8900=_0x1d89();return _0x1e11=function(_0x1e11ac,_0x1ea1fc){_0x1e11ac=_0x1e11ac-0x18c;var _0x460e47=_0x1d8900[_0x1e11ac];return _0x460e47;},_0x1e11(_0xb865ef,_0xb2910a);}export class MsgListener{[_0x3c0bf5(0x1c6)](_0xaa82a9){}['onBroadcastHelperDownloadComplete'](_0x1db337){}[_0x3c0bf5(0x195)](_0x13bf52){}[_0x3c0bf5(0x19d)](_0x4af65b,_0x5d7362,_0xc7e2c8){}[_0x3c0bf5(0x1c4)](_0x52b9cf){}[_0x3c0bf5(0x1a3)](_0x42eea9){}[_0x3c0bf5(0x1b8)](_0x12e7d6,_0x8b2ed5,_0xb3f92){}[_0x3c0bf5(0x1bb)](_0x24c0a0){}[_0x3c0bf5(0x19c)](_0x245b31){}[_0x3c0bf5(0x197)](_0x440cf9){}['onFileMsgCome'](_0x30e9a0){}[_0x3c0bf5(0x1c7)](_0x359562){}[_0x3c0bf5(0x199)](_0x2afff8){}['onGrabPasswordRedBag'](_0x1d8b1a,_0x5e978c,_0x257fe4,_0x2e6b69,_0x309967){}['onGroupFileInfoAdd'](_0x977a){}['onGroupFileInfoUpdate'](_0x1c0c47){}[_0x3c0bf5(0x19b)](_0x5ae10e){}[_0x3c0bf5(0x1a9)](_0x483ccf){}['onGroupTransferInfoUpdate'](_0x1ab447){}[_0x3c0bf5(0x1af)](_0x2d6b35){}[_0x3c0bf5(0x192)](_0x614167){}[_0x3c0bf5(0x1ab)](_0x2da0b2){}[_0x3c0bf5(0x1ad)](_0x47fa75){}[_0x3c0bf5(0x1a5)](_0x34c2fd){}[_0x3c0bf5(0x1ac)](_0x4b4dc7){}[_0x3c0bf5(0x1bc)](_0x4e4b18){}[_0x3c0bf5(0x1b7)](_0x1beeca){}[_0x3c0bf5(0x19a)](_0x47dd49){}[_0x3c0bf5(0x1a1)](_0x53bc5a){}[_0x3c0bf5(0x1c5)](_0x52699f){}[_0x3c0bf5(0x191)](_0x4b82a3){}['onMsgBoxChanged'](_0x50f795){}[_0x3c0bf5(0x1b9)](_0x3e89f9,_0x58ff02){}[_0x3c0bf5(0x18e)](_0x2966a4){}[_0x3c0bf5(0x1c2)](_0x2a9b89){}[_0x3c0bf5(0x1a7)](_0x5e7771){}[_0x3c0bf5(0x1b2)](_0x3bc8a5){}['onMsgRecall'](_0x257eb7,_0x51e0ad,_0x276c44){}[_0x3c0bf5(0x193)](_0x5e60f3){}[_0x3c0bf5(0x1bf)](_0x11111f){}[_0x3c0bf5(0x1a6)](){}[_0x3c0bf5(0x1b0)](){}[_0x3c0bf5(0x1b1)](){}['onReadFeedEventUpdate'](_0x249cbd){}[_0x3c0bf5(0x1b3)](_0x91c770){}[_0x3c0bf5(0x190)](_0x3b10e3){}['onRecvMsgSvrRspTransInfo'](_0x3bef80,_0x59e330,_0x3f900e,_0x163398,_0x429e14,_0x1fb33c){}['onRecvOnlineFileMsg'](_0x398dc8){}[_0x3c0bf5(0x1b4)](_0x12bd99){}['onRecvSysMsg'](_0x949280){}['onRecvUDCFlag'](_0x260587){}[_0x3c0bf5(0x19e)](_0x5035a2){}[_0x3c0bf5(0x18d)](_0xa483ba){}[_0x3c0bf5(0x1a2)](_0x128852){}['onSearchGroupFileInfoUpdate'](_0x3af3f2){}[_0x3c0bf5(0x18c)](_0x30e426,_0x207c59,_0x5858b1,_0x5ed9a2){}[_0x3c0bf5(0x18f)](_0x451816,_0x53b825,_0x2e8f9c,_0x55ed78){}['onTempChatInfoUpdate'](_0x53f6d3){}[_0x3c0bf5(0x1c1)](_0x30ea41){}['onUnreadCntUpdate'](_0x159a48){}[_0x3c0bf5(0x196)](_0x2f5748){}[_0x3c0bf5(0x1a4)](_0x1d8d55){}[_0x3c0bf5(0x1aa)](_0x5b768b){}['onlineStatusBigIconDownloadPush'](_0x4486a8,_0x89cc16,_0x460ccc){}[_0x3c0bf5(0x1bd)](_0x3d005a,_0x3f8022,_0x38c049){}[_0x3c0bf5(0x1b5)](..._0x38b011){}[_0x3c0bf5(0x194)](..._0x308d9c){}[_0x3c0bf5(0x1be)](..._0x3302e0){}[_0x3c0bf5(0x1b6)](..._0x214682){}} \ No newline at end of file +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 diff --git a/src/core.lib/src/listeners/NodeIKernelProfileListener.js b/src/core.lib/src/listeners/NodeIKernelProfileListener.js index a4169da0..b7f65769 100644 --- a/src/core.lib/src/listeners/NodeIKernelProfileListener.js +++ b/src/core.lib/src/listeners/NodeIKernelProfileListener.js @@ -1 +1 @@ -var _0x2ad522=_0x46eb;function _0x49c0(){var _0x226a01=['onStrangerRemarkChanged','7679844Yaspdc','3wbgzZs','onProfileDetailInfoChanged','1735842pzSkIy','14796TrloFo','1705495WajDMG','onProfileSimpleChanged','4795224ZVNXpR','onSelfStatusChanged','onStatusUpdate','100810QTtMeM','5264eDWtQP','4470552SBvAlb'];_0x49c0=function(){return _0x226a01;};return _0x49c0();}function _0x46eb(_0x385d68,_0x2eaf33){var _0x49c090=_0x49c0();return _0x46eb=function(_0x46eb71,_0xe9b5fd){_0x46eb71=_0x46eb71-0x8c;var _0x539bfe=_0x49c090[_0x46eb71];return _0x539bfe;},_0x46eb(_0x385d68,_0x2eaf33);}(function(_0x4fd84a,_0x3eca87){var _0x37a016=_0x46eb,_0x303780=_0x4fd84a();while(!![]){try{var _0x19e8e2=-parseInt(_0x37a016(0x94))/0x1+parseInt(_0x37a016(0x8d))/0x2*(-parseInt(_0x37a016(0x99))/0x3)+parseInt(_0x37a016(0x96))/0x4+-parseInt(_0x37a016(0x8f))/0x5+parseInt(_0x37a016(0x98))/0x6+parseInt(_0x37a016(0x91))/0x7+parseInt(_0x37a016(0x95))/0x8*(-parseInt(_0x37a016(0x8e))/0x9);if(_0x19e8e2===_0x3eca87)break;else _0x303780['push'](_0x303780['shift']());}catch(_0x49496b){_0x303780['push'](_0x303780['shift']());}}}(_0x49c0,0xa8b76));export class ProfileListener{[_0x2ad522(0x90)](..._0x16e122){}[_0x2ad522(0x8c)](_0x5919df){}[_0x2ad522(0x93)](..._0x1a5800){}[_0x2ad522(0x92)](..._0x4f0d7e){}[_0x2ad522(0x97)](..._0x4f3224){}} \ No newline at end of file +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 diff --git a/src/core.lib/src/listeners/NodeIKernelRobotListener.js b/src/core.lib/src/listeners/NodeIKernelRobotListener.js index dbbd38a0..6014085b 100644 --- a/src/core.lib/src/listeners/NodeIKernelRobotListener.js +++ b/src/core.lib/src/listeners/NodeIKernelRobotListener.js @@ -1 +1 @@ -var _0x5dbfcc=_0x3d8d;(function(_0x459873,_0x3ef49a){var _0x1dc98b=_0x3d8d,_0x470040=_0x459873();while(!![]){try{var _0x254b76=-parseInt(_0x1dc98b(0x7f))/0x1*(-parseInt(_0x1dc98b(0x73))/0x2)+-parseInt(_0x1dc98b(0x7e))/0x3*(-parseInt(_0x1dc98b(0x7b))/0x4)+-parseInt(_0x1dc98b(0x7a))/0x5*(-parseInt(_0x1dc98b(0x7c))/0x6)+parseInt(_0x1dc98b(0x75))/0x7*(parseInt(_0x1dc98b(0x79))/0x8)+parseInt(_0x1dc98b(0x80))/0x9+-parseInt(_0x1dc98b(0x74))/0xa*(-parseInt(_0x1dc98b(0x77))/0xb)+-parseInt(_0x1dc98b(0x81))/0xc;if(_0x254b76===_0x3ef49a)break;else _0x470040['push'](_0x470040['shift']());}catch(_0x2869e1){_0x470040['push'](_0x470040['shift']());}}}(_0x3fbc,0x3269c));export class KernelRobotListener{[_0x5dbfcc(0x7d)](..._0x519219){}[_0x5dbfcc(0x76)](..._0x2fcd5d){}[_0x5dbfcc(0x78)](..._0x29150c){}}function _0x3d8d(_0x5ccbec,_0x50511b){var _0x3fbc43=_0x3fbc();return _0x3d8d=function(_0x3d8d5f,_0x5b0a03){_0x3d8d5f=_0x3d8d5f-0x73;var _0x41ad1d=_0x3fbc43[_0x3d8d5f];return _0x41ad1d;},_0x3d8d(_0x5ccbec,_0x50511b);}function _0x3fbc(){var _0x549061=['90249FJYyaJ','260783FLmbXc','2905542BbFCsz','12502932nNMMcs','2nOrzkl','30BibIGX','7JkaNvf','onRobotListChanged','958639NEAiwL','onRobotProfileChanged','291752SZgLqL','20sMZTlR','40JQNNMR','99054CmCrmW','onRobotFriendListChanged'];_0x3fbc=function(){return _0x549061;};return _0x3fbc();} \ No newline at end of file +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 diff --git a/src/core.lib/src/listeners/NodeIKernelSessionListener.js b/src/core.lib/src/listeners/NodeIKernelSessionListener.js index b0b1c0d6..983ca7da 100644 --- a/src/core.lib/src/listeners/NodeIKernelSessionListener.js +++ b/src/core.lib/src/listeners/NodeIKernelSessionListener.js @@ -1 +1 @@ -var _0x25a2d2=_0x1876;(function(_0x2d6fca,_0x5555d4){var _0x3608a0=_0x1876,_0xac50f6=_0x2d6fca();while(!![]){try{var _0x2c6fb5=-parseInt(_0x3608a0(0xde))/0x1*(parseInt(_0x3608a0(0xda))/0x2)+-parseInt(_0x3608a0(0xe9))/0x3+parseInt(_0x3608a0(0xe5))/0x4*(parseInt(_0x3608a0(0xe3))/0x5)+parseInt(_0x3608a0(0xe6))/0x6*(parseInt(_0x3608a0(0xea))/0x7)+parseInt(_0x3608a0(0xe2))/0x8*(-parseInt(_0x3608a0(0xe4))/0x9)+parseInt(_0x3608a0(0xdd))/0xa*(parseInt(_0x3608a0(0xe0))/0xb)+parseInt(_0x3608a0(0xe8))/0xc;if(_0x2c6fb5===_0x5555d4)break;else _0xac50f6['push'](_0xac50f6['shift']());}catch(_0x596e52){_0xac50f6['push'](_0xac50f6['shift']());}}}(_0x177b,0xe677c));export class SessionListener{[_0x25a2d2(0xdb)](_0x2f8301){}[_0x25a2d2(0xdf)](_0xc15e8){}[_0x25a2d2(0xe7)](_0x154e51){}[_0x25a2d2(0xe1)](_0x2d74fc){}[_0x25a2d2(0xd9)](_0x44121b){}[_0x25a2d2(0xdc)](_0x4bd674){}}function _0x1876(_0x503e32,_0x486a34){var _0x177bd7=_0x177b();return _0x1876=function(_0x187678,_0xb92670){_0x187678=_0x187678-0xd9;var _0x1f8110=_0x177bd7[_0x187678];return _0x1f8110;},_0x1876(_0x503e32,_0x486a34);}function _0x177b(){var _0x15767b=['1ZHcjCe','onGProSessionCreate','1915826NsActM','onOpentelemetryInit','168aCitqp','1523810uGstUC','150975AqtOWi','20PeiSBR','258xnhOYA','onSessionInitComplete','3430776RTzLgb','4876986gERrTP','222033BIhWKO','onUserOnlineResult','1896712plhiPs','onNTSessionCreate','onGetSelfTinyId','40DmoPuQ'];_0x177b=function(){return _0x15767b;};return _0x177b();} \ No newline at end of file +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 diff --git a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js index 20616b7d..2ff332dd 100644 --- a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js +++ b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js @@ -1 +1 @@ -var _0x3b9e23=_0x1e7f;(function(_0x4bda7a,_0x379a09){var _0x23bedf=_0x1e7f,_0x44bb55=_0x4bda7a();while(!![]){try{var _0x33f8d2=parseInt(_0x23bedf(0x1e2))/0x1+parseInt(_0x23bedf(0x1e0))/0x2+parseInt(_0x23bedf(0x1dc))/0x3+-parseInt(_0x23bedf(0x1e4))/0x4*(-parseInt(_0x23bedf(0x1e6))/0x5)+-parseInt(_0x23bedf(0x1e5))/0x6+parseInt(_0x23bedf(0x1dd))/0x7+-parseInt(_0x23bedf(0x1e3))/0x8;if(_0x33f8d2===_0x379a09)break;else _0x44bb55['push'](_0x44bb55['shift']());}catch(_0x3d8e57){_0x44bb55['push'](_0x44bb55['shift']());}}}(_0xf89e,0xa0918));function _0x1e7f(_0x7867f5,_0x17926a){var _0xf89ee=_0xf89e();return _0x1e7f=function(_0x1e7f1e,_0x4edc56){_0x1e7f1e=_0x1e7f1e-0x1db;var _0x11e06a=_0xf89ee[_0x1e7f1e];return _0x11e06a;},_0x1e7f(_0x7867f5,_0x17926a);}export class StorageCleanListener{[_0x3b9e23(0x1db)](_0x3f3e71){}[_0x3b9e23(0x1e1)](_0x5385f9){}[_0x3b9e23(0x1e7)](_0x24510b){}[_0x3b9e23(0x1de)](_0x4063cc){}[_0x3b9e23(0x1df)](_0x5c1d39){}}function _0xf89e(){var _0x5c23be=['onFinishScan','onChatCleanDone','1032840oCzhMR','onScanCacheProgressChanged','178194WfRsnj','6765272gOpCfY','4KwhNET','2856162lqQpHb','2028745qvJhdA','onCleanCacheStorageChanged','onCleanCacheProgressChanged','510195GrnUqY','4962622HZIcPk'];_0xf89e=function(){return _0x5c23be;};return _0xf89e();} \ No newline at end of file +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 diff --git a/src/core.lib/src/listeners/index.js b/src/core.lib/src/listeners/index.js index ba49fe5f..ea7016d3 100644 --- a/src/core.lib/src/listeners/index.js +++ b/src/core.lib/src/listeners/index.js @@ -1 +1 @@ -(function(_0xb489bc,_0x316663){var _0x5f0d71=_0x28d8,_0x3f859a=_0xb489bc();while(!![]){try{var _0x14154c=-parseInt(_0x5f0d71(0x15f))/0x1+parseInt(_0x5f0d71(0x15a))/0x2+parseInt(_0x5f0d71(0x157))/0x3+parseInt(_0x5f0d71(0x15d))/0x4*(-parseInt(_0x5f0d71(0x15e))/0x5)+parseInt(_0x5f0d71(0x15c))/0x6*(parseInt(_0x5f0d71(0x15b))/0x7)+parseInt(_0x5f0d71(0x159))/0x8+-parseInt(_0x5f0d71(0x158))/0x9*(parseInt(_0x5f0d71(0x160))/0xa);if(_0x14154c===_0x316663)break;else _0x3f859a['push'](_0x3f859a['shift']());}catch(_0x184808){_0x3f859a['push'](_0x3f859a['shift']());}}}(_0x4de6,0xba574));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';function _0x28d8(_0xa7516b,_0x596b4f){var _0x4de64e=_0x4de6();return _0x28d8=function(_0x28d8be,_0x104a46){_0x28d8be=_0x28d8be-0x157;var _0x5a6cfb=_0x4de64e[_0x28d8be];return _0x5a6cfb;},_0x28d8(_0xa7516b,_0x596b4f);}export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';function _0x4de6(){var _0xcfb3c=['685145aWagUY','49570DSZdYD','40pdNgNq','1704942uGHZhf','6520014EFfHNc','7688768OFdtTO','2909118QdzlCp','7cJVIkk','5181996CxkJSI','4wrqJzq'];_0x4de6=function(){return _0xcfb3c;};return _0x4de6();} \ No newline at end of file +(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 diff --git a/src/core.lib/src/services/NodeIKernelRichMediaService.d.ts b/src/core.lib/src/services/NodeIKernelRichMediaService.d.ts index 756b45f2..a65ca18a 100644 --- a/src/core.lib/src/services/NodeIKernelRichMediaService.d.ts +++ b/src/core.lib/src/services/NodeIKernelRichMediaService.d.ts @@ -1,3 +1,4 @@ +import { GeneralCallResult } from "./common"; export interface NodeIKernelRichMediaService { getVideoPlayUrl(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown, arg5: unknown): unknown; getVideoPlayUrlV2(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown, arg5: unknown): unknown; @@ -27,8 +28,10 @@ export interface NodeIKernelRichMediaService { 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; + translateEnWordToZn(words: string[]): Promise; getScreenOCR(arg: unknown): unknown; - translateEnWordToZn(arg: unknown): unknown; batchGetGroupFileCount(arg: unknown): unknown; queryPicDownloadSize(arg: unknown): unknown; searchGroupFiletransgroupfile(arg1: unknown, arg2: unknown): unknown; diff --git a/src/core.lib/src/services/common.js b/src/core.lib/src/services/common.js index 26e45f14..24baf866 100644 --- a/src/core.lib/src/services/common.js +++ b/src/core.lib/src/services/common.js @@ -1 +1 @@ -function _0x4091(_0x181032,_0xf6fc72){var _0x25e68d=_0x25e6();return _0x4091=function(_0x40910b,_0x4a2096){_0x40910b=_0x40910b-0x7c;var _0x52aef6=_0x25e68d[_0x40910b];return _0x52aef6;},_0x4091(_0x181032,_0xf6fc72);}function _0x25e6(){var _0x23581a=['2638OgpQDy','3540590FMPkAA','624275JlcRQq','549208rnLlee','6GBuzes','518768qhRiTu','2502YWhCQr','618961vrrZdY','8sjRRSm','18awFMwh'];_0x25e6=function(){return _0x23581a;};return _0x25e6();}(function(_0x314f1d,_0x2fef36){var _0x3b5d39=_0x4091,_0x5ac68a=_0x314f1d();while(!![]){try{var _0x4387ec=-parseInt(_0x3b5d39(0x82))/0x1*(parseInt(_0x3b5d39(0x80))/0x2)+-parseInt(_0x3b5d39(0x7e))/0x3+parseInt(_0x3b5d39(0x7d))/0x4+-parseInt(_0x3b5d39(0x84))/0x5*(parseInt(_0x3b5d39(0x7c))/0x6)+-parseInt(_0x3b5d39(0x7f))/0x7+-parseInt(_0x3b5d39(0x85))/0x8*(parseInt(_0x3b5d39(0x81))/0x9)+parseInt(_0x3b5d39(0x83))/0xa;if(_0x4387ec===_0x2fef36)break;else _0x5ac68a['push'](_0x5ac68a['shift']());}catch(_0x99abc){_0x5ac68a['push'](_0x5ac68a['shift']());}}}(_0x25e6,0x1dbb9));export var GeneralCallResultStatus;(function(_0x10149c){_0x10149c[_0x10149c['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file +(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 diff --git a/src/core.lib/src/services/index.js b/src/core.lib/src/services/index.js index ecbd6dc0..759d2e4a 100644 --- a/src/core.lib/src/services/index.js +++ b/src/core.lib/src/services/index.js @@ -1 +1 @@ -function _0x4edf(_0x17f180,_0x1f12b8){var _0x5cea45=_0x5cea();return _0x4edf=function(_0x4edf09,_0xec7df0){_0x4edf09=_0x4edf09-0xe1;var _0x565435=_0x5cea45[_0x4edf09];return _0x565435;},_0x4edf(_0x17f180,_0x1f12b8);}(function(_0x3513f4,_0x327df4){var _0x5759b4=_0x4edf,_0x2d767e=_0x3513f4();while(!![]){try{var _0x22449f=-parseInt(_0x5759b4(0xe6))/0x1*(parseInt(_0x5759b4(0xe5))/0x2)+parseInt(_0x5759b4(0xe4))/0x3+-parseInt(_0x5759b4(0xe3))/0x4*(-parseInt(_0x5759b4(0xe8))/0x5)+-parseInt(_0x5759b4(0xe9))/0x6+parseInt(_0x5759b4(0xe7))/0x7+-parseInt(_0x5759b4(0xe1))/0x8+-parseInt(_0x5759b4(0xe2))/0x9*(-parseInt(_0x5759b4(0xea))/0xa);if(_0x22449f===_0x327df4)break;else _0x2d767e['push'](_0x2d767e['shift']());}catch(_0x27eec2){_0x2d767e['push'](_0x2d767e['shift']());}}}(_0x5cea,0x87b0a));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';function _0x5cea(){var _0x5ba63e=['8140ynGheP','313059zbmChl','8MYjPiN','89899uaWuKj','3062871vPXsdX','1765LKdEny','2368560bJOhYO','50RByiTh','7876432BckWPU','1861983gvjaLf'];_0x5cea=function(){return _0x5ba63e;};return _0x5cea();}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(_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 diff --git a/src/core.lib/src/sessionConfig.js b/src/core.lib/src/sessionConfig.js index 399fe33b..b2a7b056 100644 --- a/src/core.lib/src/sessionConfig.js +++ b/src/core.lib/src/sessionConfig.js @@ -1 +1 @@ -function _0x4577(_0x5d7a28,_0x5f217d){const _0x261673=_0x2616();return _0x4577=function(_0x4577dd,_0x2d26ee){_0x4577dd=_0x4577dd-0xab;let _0x47eb4d=_0x261673[_0x4577dd];return _0x47eb4d;},_0x4577(_0x5d7a28,_0x5f217d);}(function(_0x4b0e59,_0x312f3d){const _0x4d7933=_0x4577,_0x1b1cf3=_0x4b0e59();while(!![]){try{const _0x1cf138=parseInt(_0x4d7933(0xb6))/0x1+-parseInt(_0x4d7933(0xad))/0x2*(-parseInt(_0x4d7933(0xbe))/0x3)+-parseInt(_0x4d7933(0xb3))/0x4*(-parseInt(_0x4d7933(0xac))/0x5)+parseInt(_0x4d7933(0xb9))/0x6*(parseInt(_0x4d7933(0xb8))/0x7)+parseInt(_0x4d7933(0xbf))/0x8+parseInt(_0x4d7933(0xb7))/0x9+parseInt(_0x4d7933(0xb2))/0xa*(-parseInt(_0x4d7933(0xbb))/0xb);if(_0x1cf138===_0x312f3d)break;else _0x1b1cf3['push'](_0x1b1cf3['shift']());}catch(_0x2fe350){_0x1b1cf3['push'](_0x1b1cf3['shift']());}}}(_0x2616,0x68736));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x32cc5c from'node:path';import _0x23c21a from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0x352e74,_0x5d6edc,_0x3e93ba){const _0x529b22=_0x4577,_0x959bad={'pCkXV':'temp','oynMx':'guid.txt','ahXAu':_0x529b22(0xae)},_0x42c34a=_0x32cc5c[_0x529b22(0xbd)](_0x3e93ba,_0x529b22(0xb5),_0x959bad[_0x529b22(0xbc)]);_0x23c21a[_0x529b22(0xb1)](_0x42c34a,{'recursive':!![]});const _0x4a853f=_0x32cc5c[_0x529b22(0xbd)](_0x3e93ba,_0x529b22(0xb5),_0x959bad[_0x529b22(0xb4)]);let _0x79485=randomUUID();try{_0x79485=_0x23c21a[_0x529b22(0xaf)](_0x32cc5c[_0x529b22(0xbd)](_0x4a853f),_0x959bad[_0x529b22(0xba)]);}catch(_0x2865dd){_0x23c21a[_0x529b22(0xab)](_0x32cc5c[_0x529b22(0xbd)](_0x4a853f),_0x79485,_0x529b22(0xae));}const _0x185145={'selfUin':_0x352e74,'selfUid':_0x5d6edc,'desktopPathConfig':{'account_path':_0x3e93ba},'clientVer':qqVersionConfigInfo[_0x529b22(0xc1)],'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':_0x42c34a,'deviceInfo':{'guid':_0x79485,'buildVer':qqPkgInfo[_0x529b22(0xc0)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':'{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}'};return Object[_0x529b22(0xb0)](sessionConfig,_0x185145),_0x185145;}function _0x2616(){const _0x49651b=['version','curVersion','writeFileSync','5FZMSvV','298qlziuU','utf-8','readFileSync','assign','mkdirSync','670Gprfss','683916kozCXb','oynMx','NapCat','587934yqjsps','7212762vRUDBQ','11893rpqaoO','2580VEDyIU','ahXAu','412225pxLWoX','pCkXV','join','2871TekfqW','4041288IUcDTI'];_0x2616=function(){return _0x49651b;};return _0x2616();} \ No newline at end of file +(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 diff --git a/src/core.lib/src/utils/config.js b/src/core.lib/src/utils/config.js index ccc0c698..0dd5db3c 100644 --- a/src/core.lib/src/utils/config.js +++ b/src/core.lib/src/utils/config.js @@ -1 +1 @@ -const _0x37b4d6=_0x5e55;(function(_0x5b831d,_0x47cdf0){const _0x15b931=_0x5e55,_0x4a6f6a=_0x5b831d();while(!![]){try{const _0x59a1b6=parseInt(_0x15b931(0xf9))/0x1+-parseInt(_0x15b931(0x107))/0x2*(-parseInt(_0x15b931(0x103))/0x3)+-parseInt(_0x15b931(0xf8))/0x4+parseInt(_0x15b931(0xfc))/0x5+parseInt(_0x15b931(0x100))/0x6*(-parseInt(_0x15b931(0x101))/0x7)+-parseInt(_0x15b931(0x102))/0x8+parseInt(_0x15b931(0xfa))/0x9;if(_0x59a1b6===_0x47cdf0)break;else _0x4a6f6a['push'](_0x4a6f6a['shift']());}catch(_0x29af31){_0x4a6f6a['push'](_0x4a6f6a['shift']());}}}(_0x49f3,0x585f0));import _0x39ec80 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';function _0x5e55(_0x681293,_0xbde1c8){const _0x49f3a5=_0x49f3();return _0x5e55=function(_0x5e55d4,_0xd65a9b){_0x5e55d4=_0x5e55d4-0xf7;let _0xead9b1=_0x49f3a5[_0x5e55d4];return _0xead9b1;},_0x5e55(_0x681293,_0xbde1c8);}import{selfInfo}from'@/core/data';function _0x49f3(){const _0x4e3286=['consoleLogLevel','1773036AistwK','7cJZlcL','5739312wyQpNG','3prXSqJ','join','uin','getConfigDir','341974HKMeHB','napcat_','DEBUG','.json','2460508FTqlHH','375979zkyAsj','9557109uAKHNg','fileLog','1905740WNCJcG','consoleLog','INFO'];_0x49f3=function(){return _0x4e3286;};return _0x49f3();}class Config extends ConfigBase{[_0x37b4d6(0xfb)]=!![];[_0x37b4d6(0xfd)]=!![];['fileLogLevel']=LogLevel[_0x37b4d6(0x109)];[_0x37b4d6(0xff)]=LogLevel[_0x37b4d6(0xfe)];constructor(){super();}['getConfigPath'](){const _0x39dcf5=_0x37b4d6;return _0x39ec80[_0x39dcf5(0x104)](this[_0x39dcf5(0x106)](),_0x39dcf5(0x108)+selfInfo[_0x39dcf5(0x105)]+_0x39dcf5(0xf7));}}export const napCatConfig=new Config(); \ No newline at end of file +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 diff --git a/src/core.lib/src/utils/rkey.js b/src/core.lib/src/utils/rkey.js index 39308fbd..a39884bf 100644 --- a/src/core.lib/src/utils/rkey.js +++ b/src/core.lib/src/utils/rkey.js @@ -1 +1 @@ -function _0x3a7a(_0x52cf98,_0xeb12c6){const _0x5721c4=_0x5721();return _0x3a7a=function(_0x3a7a8d,_0xc75625){_0x3a7a8d=_0x3a7a8d-0xd9;let _0xe92175=_0x5721c4[_0x3a7a8d];return _0xe92175;},_0x3a7a(_0x52cf98,_0xeb12c6);}const _0x479397=_0x3a7a;(function(_0x8bf183,_0x16c3e0){const _0x27721a=_0x3a7a,_0x318bf4=_0x8bf183();while(!![]){try{const _0x3da9bb=-parseInt(_0x27721a(0xea))/0x1+parseInt(_0x27721a(0xde))/0x2*(parseInt(_0x27721a(0xe7))/0x3)+parseInt(_0x27721a(0xdd))/0x4+-parseInt(_0x27721a(0xe6))/0x5+parseInt(_0x27721a(0xe4))/0x6*(parseInt(_0x27721a(0xd9))/0x7)+-parseInt(_0x27721a(0xe5))/0x8+-parseInt(_0x27721a(0xed))/0x9*(-parseInt(_0x27721a(0xec))/0xa);if(_0x3da9bb===_0x16c3e0)break;else _0x318bf4['push'](_0x318bf4['shift']());}catch(_0x5c112f){_0x318bf4['push'](_0x318bf4['shift']());}}}(_0x5721,0xae862));import{logError}from'@/common/utils/log';function _0x5721(){const _0x2e2947=['serverUrl','HttpGetJson','CCMda','30ZmbJeP','9037040LaMELT','1808660BJnWfh','33UGZNWe','refreshRkey','expired_time','838680UTpBWG','isExpired','2140yVJeaz','306fxiMfG','964684iUSKBg','获取rkey失败','czACC','RHQVe','5702492sBWlxC','167806VGRPRA','OFnOj','rkeyData'];_0x5721=function(){return _0x2e2947;};return _0x5721();}import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x479397(0xe1)]='';[_0x479397(0xe0)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x26fbf3){const _0x3e6b58=_0x479397;this[_0x3e6b58(0xe1)]=_0x26fbf3;}async['getRkey'](){const _0x3896b5=_0x479397,_0x58f0e6={'OFnOj':function(_0x582b9d,_0x1fc747,_0x46a028){return _0x582b9d(_0x1fc747,_0x46a028);},'RHQVe':_0x3896b5(0xda)};if(this['isExpired']())try{await this[_0x3896b5(0xe8)]();}catch(_0x412ba1){_0x58f0e6[_0x3896b5(0xdf)](logError,_0x58f0e6[_0x3896b5(0xdc)],_0x412ba1);}return this[_0x3896b5(0xe0)];}[_0x479397(0xeb)](){const _0x501fd6=_0x479397,_0x45ccd1={'CCMda':function(_0x1d0cae,_0xd0c71){return _0x1d0cae>_0xd0c71;}},_0x263996=new Date()['getTime']()/0x3e8;return _0x45ccd1[_0x501fd6(0xe3)](_0x263996,this['rkeyData'][_0x501fd6(0xe9)]);}async['refreshRkey'](){const _0x2d61c0=_0x479397,_0x28f025={'czACC':'GET'};this[_0x2d61c0(0xe0)]=await RequestUtil[_0x2d61c0(0xe2)](this[_0x2d61c0(0xe1)],_0x28f025[_0x2d61c0(0xdb)]);}}export const rkeyManager=new RkeyManager('http://napcat-sign.wumiao.wang:2082/rkey'); \ No newline at end of file +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 diff --git a/src/core.lib/src/wrapper.d.ts b/src/core.lib/src/wrapper.d.ts index ab9c6d95..18e38526 100644 --- a/src/core.lib/src/wrapper.d.ts +++ b/src/core.lib/src/wrapper.d.ts @@ -1,7 +1,7 @@ import { WrapperSessionInitConfig } from './sessionConfig'; import { NodeIDependsAdapter, NodeIDispatcherAdapter, NodeIGlobalAdapter } from './adapters'; import { NodeIKernelSessionListener, NodeIKernelMsgListener, NodeIKernelLoginListener, NodeIKernelBuddyListener, NodeIKernelGroupListener, NodeIKernelProfileListener } from './listeners'; -import { NodeIKernelLoginService, NodeIKernelMsgService, NodeIKernelBuddyService, NodeIKernelGroupService, NodeIKernelProfileService, NodeIKernelProfileLikeService, NodeIKernelTicketService, NodeIKernelTipOffService } from './services'; +import { NodeIKernelLoginService, NodeIKernelMsgService, NodeIKernelBuddyService, NodeIKernelGroupService, NodeIKernelProfileService, NodeIKernelProfileLikeService, NodeIKernelTicketService, NodeIKernelTipOffService, NodeIKernelRichMediaService } from './services'; import { NodeIKernelStorageCleanService } from './services/NodeIKernelStorageCleanService'; import { NodeIKernelRobotService } from './services/NodeIKernelRobotService'; import { NodeIKernelNodeMiscService } from './services/NodeIKernelNodeMiscService'; @@ -70,12 +70,12 @@ export interface NodeIQQNTWrapperSession { getTicketService(): NodeIKernelTicketService; getTipOffService(): NodeIKernelTipOffService; getNodeMiscService(): NodeIKernelNodeMiscService; + getRichMediaService(): NodeIKernelRichMediaService; getMsgBackupService(): unknown; getAlbumService(): unknown; getTianShuService(): unknown; getUnitedConfigService(): unknown; getSearchService(): unknown; - getRichMediaService(): unknown; getDirectSessionService(): unknown; getRDeliveryService(): unknown; getAvatarService(): unknown; diff --git a/src/core.lib/src/wrapper.js b/src/core.lib/src/wrapper.js index 42116880..8d4fb2af 100644 --- a/src/core.lib/src/wrapper.js +++ b/src/core.lib/src/wrapper.js @@ -1 +1 @@ -const _0x1e264b=_0xe36f;(function(_0x24563d,_0x5e207c){const _0x3083f6=_0xe36f,_0x5e806c=_0x24563d();while(!![]){try{const _0x6303b0=parseInt(_0x3083f6(0xd5))/0x1+-parseInt(_0x3083f6(0xd2))/0x2*(parseInt(_0x3083f6(0xd4))/0x3)+parseInt(_0x3083f6(0xe4))/0x4*(parseInt(_0x3083f6(0xda))/0x5)+-parseInt(_0x3083f6(0xdc))/0x6*(-parseInt(_0x3083f6(0xcf))/0x7)+parseInt(_0x3083f6(0xe6))/0x8+-parseInt(_0x3083f6(0xd6))/0x9*(-parseInt(_0x3083f6(0xd0))/0xa)+parseInt(_0x3083f6(0xdb))/0xb*(-parseInt(_0x3083f6(0xe1))/0xc);if(_0x6303b0===_0x5e207c)break;else _0x5e806c['push'](_0x5e806c['shift']());}catch(_0x2998f5){_0x5e806c['push'](_0x5e806c['shift']());}}}(_0x4cd5,0x7bc40));import _0x134562 from'node:path';import _0x5b55cb from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{dirname}from'node:path';import{fileURLToPath}from'node:url';function _0xe36f(_0x135722,_0x4f5be7){const _0x4cd51f=_0x4cd5();return _0xe36f=function(_0xe36f27,_0x7f913d){_0xe36f27=_0xe36f27-0xce;let _0x5bd545=_0x4cd51f[_0xe36f27];return _0x5bd545;},_0xe36f(_0x135722,_0x4f5be7);}const __filename=fileURLToPath(import.meta[_0x1e264b(0xe0)]),__dirname=dirname(__filename);let wrapperNodePath=_0x134562['resolve'](_0x134562[_0x1e264b(0xd3)](process[_0x1e264b(0xe2)]),_0x1e264b(0xdd));!_0x5b55cb[_0x1e264b(0xdf)](wrapperNodePath)&&(wrapperNodePath=_0x134562[_0x1e264b(0xe3)](_0x134562[_0x1e264b(0xd3)](process[_0x1e264b(0xe2)]),'resources/app/versions/'+qqVersionConfigInfo[_0x1e264b(0xce)]+_0x1e264b(0xd8)));let WrapperLoader=_0x134562[_0x1e264b(0xe3)](__dirname,_0x1e264b(0xd7));_0x5b55cb[_0x1e264b(0xd9)](WrapperLoader,_0x1e264b(0xde)+wrapperNodePath['replace'](/\\/g,'\x5c\x5c')+_0x1e264b(0xd1));const QQWrapper=(await import('file://'+WrapperLoader))[_0x1e264b(0xe5)];function _0x4cd5(){const _0x3bb230=['./resources/app/wrapper.node','\x0amodule.exports\x20=\x20require(\x22','existsSync','url','4272XCajSt','execPath','join','50812ysPBQd','default','5105856witeBg','curVersion','10689nqWopR','170jknjiT','\x22);\x0aexports\x20=\x20module.exports;\x0a','9778zAPYJU','dirname','291ttDDIY','598207lNAVby','403371WbLZcO','WrapperLoader.cjs','/wrapper.node','writeFileSync','365iEPpXa','88770JsgXHn','3648tPKRwk'];_0x4cd5=function(){return _0x3bb230;};return _0x4cd5();}export default QQWrapper; \ No newline at end of file +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 diff --git a/src/onebot11/action/extends/TranslateEnWordToZn.ts b/src/onebot11/action/extends/TranslateEnWordToZn.ts new file mode 100644 index 00000000..64d78f4b --- /dev/null +++ b/src/onebot11/action/extends/TranslateEnWordToZn.ts @@ -0,0 +1,37 @@ +import { OB11User } from '../../types'; +import { OB11Constructor } from '../../constructor'; +import { friends } from '@/core/data'; +import BaseAction from '../BaseAction'; +import { ActionName, BaseCheckResult } from '../types'; +import { NTQQSystemApi, NTQQUserApi } from '@/core/apis'; +import { FromSchema, JSONSchema } from 'json-schema-to-ts'; +import Ajv from 'ajv'; +// 设置在线状态 + +const SchemaData = { + type: 'object', + properties: { + words: { + type: 'array', + items: { + type: 'string', + } + } + }, + required: ['words'], +} as const satisfies JSONSchema; + +type Payload = FromSchema; + +export class TranslateEnWordToZn extends BaseAction | null> { + actionName = ActionName.TranslateEnWordToZn; + PayloadSchema = SchemaData; + protected async _handle(payload: Payload) { + + const ret = await NTQQSystemApi.translateEnWordToZn(payload.words); + if (ret.result !== 0) { + throw new Error('翻译失败'); + } + return ret.words; + } +} diff --git a/src/onebot11/action/group/GetGroupMemberInfo.ts b/src/onebot11/action/group/GetGroupMemberInfo.ts index 13e4acda..07238705 100644 --- a/src/onebot11/action/group/GetGroupMemberInfo.ts +++ b/src/onebot11/action/group/GetGroupMemberInfo.ts @@ -1,66 +1,66 @@ -import { OB11GroupMember } from '../../types'; -import { getGroup, getGroupMember, groupMembers } from '@/core/data'; -import { OB11Constructor } from '../../constructor'; -import BaseAction from '../BaseAction'; -import { ActionName } from '../types'; -import { NTQQUserApi } from '@/core/apis/user'; -import { log, logDebug } from '@/common/utils/log'; -import { isNull } from '../../../common/utils/helper'; -import { WebApi } from '@/core/apis/webapi'; -import { NTQQGroupApi } from '@/core'; -import { FromSchema, JSONSchema } from 'json-schema-to-ts'; - -// no_cache get时传字符串 -const SchemaData = { - type: 'object', - properties: { - group_id: { type: 'number' }, - user_id: { type: 'number' }, - no_cache: { type: ['boolean', 'string'] }, - }, - required: ['group_id', 'user_id'] -} as const satisfies JSONSchema; - -type Payload = FromSchema; - -class GetGroupMemberInfo extends BaseAction { - actionName = ActionName.GetGroupMemberInfo; - PayloadSchema = SchemaData; - protected async _handle(payload: Payload) { - const group = await getGroup(payload.group_id.toString()); - if (!group) { - throw (`群(${payload.group_id})不存在`); - } - const webGroupMembers = await WebApi.getGroupMembers(payload.group_id.toString()); - if (payload.no_cache == true /*|| payload.no_cache === 'true'*/) { - groupMembers.set(group.groupCode, await NTQQGroupApi.getGroupMembers(payload.group_id.toString())); - } - const member = await getGroupMember(payload.group_id.toString(), payload.user_id.toString()); - // log(member); - if (member) { - logDebug('获取群成员详细信息'); - try { - const info = (await NTQQUserApi.getUserDetailInfo(member.uid)); - logDebug('群成员详细信息结果', info); - Object.assign(member, info); - } catch (e) { - logDebug('获取群成员详细信息失败, 只能返回基础信息', e); - } - const retMember = OB11Constructor.groupMember(payload.group_id.toString(), member); - for (let i = 0, len = webGroupMembers.length; i < len; i++) { - if (webGroupMembers[i]?.uin && webGroupMembers[i].uin === retMember.user_id) { - retMember.join_time = webGroupMembers[i]?.join_time; - retMember.last_sent_time = webGroupMembers[i]?.last_speak_time; - retMember.qage = webGroupMembers[i]?.qage; - retMember.level = webGroupMembers[i]?.lv.level; - } - - } - return retMember; - } else { - throw (`群(${payload.group_id})成员${payload.user_id}不存在`); - } - } -} - -export default GetGroupMemberInfo; +import { OB11GroupMember } from '../../types'; +import { getGroup, getGroupMember, groupMembers } from '@/core/data'; +import { OB11Constructor } from '../../constructor'; +import BaseAction from '../BaseAction'; +import { ActionName } from '../types'; +import { NTQQUserApi } from '@/core/apis/user'; +import { log, logDebug } from '@/common/utils/log'; +import { isNull } from '../../../common/utils/helper'; +import { WebApi } from '@/core/apis/webapi'; +import { NTQQGroupApi } from '@/core'; +import { FromSchema, JSONSchema } from 'json-schema-to-ts'; + +// no_cache get时传字符串 +const SchemaData = { + type: 'object', + properties: { + group_id: { type: ['number', 'string'] }, + user_id: { type: ['number', 'string'] }, + no_cache: { type: ['boolean', 'string'] }, + }, + required: ['group_id', 'user_id'] +} as const satisfies JSONSchema; + +type Payload = FromSchema; + +class GetGroupMemberInfo extends BaseAction { + actionName = ActionName.GetGroupMemberInfo; + PayloadSchema = SchemaData; + protected async _handle(payload: Payload) { + const group = await getGroup(payload.group_id.toString()); + if (!group) { + throw (`群(${payload.group_id})不存在`); + } + const webGroupMembers = await WebApi.getGroupMembers(payload.group_id.toString()); + if (payload.no_cache == true /*|| payload.no_cache === 'true'*/) { + groupMembers.set(group.groupCode, await NTQQGroupApi.getGroupMembers(payload.group_id.toString())); + } + const member = await getGroupMember(payload.group_id.toString(), payload.user_id.toString()); + // log(member); + if (member) { + logDebug('获取群成员详细信息'); + try { + const info = (await NTQQUserApi.getUserDetailInfo(member.uid)); + logDebug('群成员详细信息结果', info); + Object.assign(member, info); + } catch (e) { + logDebug('获取群成员详细信息失败, 只能返回基础信息', e); + } + const retMember = OB11Constructor.groupMember(payload.group_id.toString(), member); + for (let i = 0, len = webGroupMembers.length; i < len; i++) { + if (webGroupMembers[i]?.uin && webGroupMembers[i].uin === retMember.user_id) { + retMember.join_time = webGroupMembers[i]?.join_time; + retMember.last_sent_time = webGroupMembers[i]?.last_speak_time; + retMember.qage = webGroupMembers[i]?.qage; + retMember.level = webGroupMembers[i]?.lv.level; + } + + } + return retMember; + } else { + throw (`群(${payload.group_id})成员${payload.user_id}不存在`); + } + } +} + +export default GetGroupMemberInfo; diff --git a/src/onebot11/action/group/SetGroupLeave.ts b/src/onebot11/action/group/SetGroupLeave.ts index 9505f901..e78971ce 100644 --- a/src/onebot11/action/group/SetGroupLeave.ts +++ b/src/onebot11/action/group/SetGroupLeave.ts @@ -9,7 +9,7 @@ const SchemaData = { group_id: { type: 'number' }, is_dismiss: { type: 'boolean' } }, - required: ['group_id', 'is_dismiss'] + required: ['group_id'] } as const satisfies JSONSchema; type Payload = FromSchema; diff --git a/src/onebot11/action/index.ts b/src/onebot11/action/index.ts index 333d9d74..fe2e1804 100644 --- a/src/onebot11/action/index.ts +++ b/src/onebot11/action/index.ts @@ -1,142 +1,144 @@ -import GetMsg from './msg/GetMsg'; -import GetLoginInfo from './system/GetLoginInfo'; -import GetFriendList from './user/GetFriendList'; -import GetGroupList from './group/GetGroupList'; -import GetGroupInfo from './group/GetGroupInfo'; -import GetGroupMemberList from './group/GetGroupMemberList'; -import GetGroupMemberInfo from './group/GetGroupMemberInfo'; -import SendGroupMsg from './group/SendGroupMsg'; -import SendPrivateMsg from './msg/SendPrivateMsg'; -import SendMsg from './msg/SendMsg'; -import DeleteMsg from './msg/DeleteMsg'; -import BaseAction from './BaseAction'; -import GetVersionInfo from './system/GetVersionInfo'; -import CanSendRecord from './system/CanSendRecord'; -import CanSendImage from './system/CanSendImage'; -import GetStatus from './system/GetStatus'; -import { - GoCQHTTPSendForwardMsg, - GoCQHTTPSendGroupForwardMsg, - GoCQHTTPSendPrivateForwardMsg -} from './go-cqhttp/SendForwardMsg'; -import GoCQHTTPGetStrangerInfo from './go-cqhttp/GetStrangerInfo'; -import SendLike from './user/SendLike'; -import SetGroupAddRequest from './group/SetGroupAddRequest'; -import SetGroupLeave from './group/SetGroupLeave'; -import GetGuildList from './group/GetGuildList'; -import Debug from '@/onebot11/action/extends/Debug'; -import SetFriendAddRequest from './user/SetFriendAddRequest'; -import SetGroupWholeBan from './group/SetGroupWholeBan'; -import SetGroupName from './group/SetGroupName'; -import SetGroupBan from './group/SetGroupBan'; -import SetGroupKick from './group/SetGroupKick'; -import SetGroupAdmin from './group/SetGroupAdmin'; -import SetGroupCard from './group/SetGroupCard'; -import GetImage from './file/GetImage'; -import GetRecord from './file/GetRecord'; -import { GoCQHTTPMarkMsgAsRead, MarkGroupMsgAsRead, MarkPrivateMsgAsRead } from './msg/MarkMsgAsRead'; -import CleanCache from './system/CleanCache'; -import GoCQHTTPUploadGroupFile from './go-cqhttp/UploadGroupFile'; -import { GetConfigAction, SetConfigAction } from '@/onebot11/action/extends/Config'; -import GetGroupAddRequest from '@/onebot11/action/extends/GetGroupAddRequest'; -import SetQQAvatar from '@/onebot11/action/extends/SetQQAvatar'; -import GoCQHTTPDownloadFile from './go-cqhttp/DownloadFile'; -import GoCQHTTPGetGroupMsgHistory from './go-cqhttp/GetGroupMsgHistory'; -import GetFile from './file/GetFile'; -import { GoCQHTTGetForwardMsgAction } from './go-cqhttp/GetForwardMsg'; -import GetFriendMsgHistory from './go-cqhttp/GetFriendMsgHistory'; -import { GetCookies } from './user/GetCookies'; -import { SetMsgEmojiLike } from '@/onebot11/action/msg/SetMsgEmojiLike'; -import { GetRobotUinRange } from './extends/GetRobotUinRange'; -import { SetOnlineStatus } from './extends/SetOnlineStatus'; -import { GetGroupNotice } from './group/GetGroupNotice'; -import { GetGroupEssence } from './group/GetGroupEssence'; -import { ForwardFriendSingleMsg, ForwardGroupSingleMsg } from '@/onebot11/action/msg/ForwardSingleMsg'; -import { GetFriendWithCategory } from './extends/GetFriendWithCategory'; -import { SendGroupNotice } from './go-cqhttp/SendGroupNotice'; -import { Reboot, RebootNormol } from './system/Reboot'; -import { GetGroupHonorInfo } from './go-cqhttp/GetGroupHonorInfo'; -import { GoCQHTTHandleQuickAction } from './go-cqhttp/QuickAction'; -import { GetGroupSystemMsg } from './group/GetGroupSystemMsg'; -import { GetOnlineClient } from './go-cqhttp/GetOnlineClient'; -import { IOCRImage, OCRImage } from './extends/OCRImage'; - -export const actionHandlers = [ - new RebootNormol(), - new GetFile(), - new Debug(), - new Reboot(), - // new GetConfigAction(), - // new SetConfigAction(), - // new GetGroupAddRequest(), - new ForwardFriendSingleMsg(), - new ForwardGroupSingleMsg(), - new MarkGroupMsgAsRead(), - new MarkPrivateMsgAsRead(), - new SetQQAvatar(), - // onebot11 - new SendLike(), - new GetMsg(), - new GetLoginInfo(), - new GetFriendList(), - new GetGroupList(), new GetGroupInfo(), - new GetGroupMemberList(), new GetGroupMemberInfo(), - new SendGroupMsg(), new SendPrivateMsg(), new SendMsg(), - new DeleteMsg(), - new SetGroupAddRequest(), - new SetFriendAddRequest(), - new SetGroupLeave(), - new GetVersionInfo(), - new CanSendRecord(), - new CanSendImage(), - new GetStatus(), - new SetGroupWholeBan(), - new SetGroupBan(), - new SetGroupKick(), - new SetGroupAdmin(), - new SetGroupName(), - new SetGroupCard(), - new GetImage(), - new GetRecord(), - new SetMsgEmojiLike(), - // new CleanCache(), - new GetCookies(), - // - new SetOnlineStatus(), - new GetRobotUinRange(), - new GetFriendWithCategory(), - //以下为go-cqhttp api - new GetOnlineClient(), - new OCRImage(), - new IOCRImage(), - new GetGroupHonorInfo(), - new SendGroupNotice(), - new GetGroupNotice(), - new GetGroupEssence(), - new GoCQHTTPSendForwardMsg(), - new GoCQHTTPSendGroupForwardMsg(), - new GoCQHTTPSendPrivateForwardMsg(), - new GoCQHTTPGetStrangerInfo(), - new GoCQHTTPDownloadFile(), - new GetGuildList(), - new GoCQHTTPMarkMsgAsRead(), - new GoCQHTTPUploadGroupFile(), - new GoCQHTTPGetGroupMsgHistory(), - new GoCQHTTGetForwardMsgAction(), - new GetFriendMsgHistory(), - new GoCQHTTHandleQuickAction(), - new GetGroupSystemMsg() -]; - -function initActionMap() { - const actionMap = new Map>(); - for (const action of actionHandlers) { - actionMap.set(action.actionName, action); - actionMap.set(action.actionName + '_async', action); - actionMap.set(action.actionName + '_rate_limited', action); - } - - return actionMap; -} - -export const actionMap = initActionMap(); +import GetMsg from './msg/GetMsg'; +import GetLoginInfo from './system/GetLoginInfo'; +import GetFriendList from './user/GetFriendList'; +import GetGroupList from './group/GetGroupList'; +import GetGroupInfo from './group/GetGroupInfo'; +import GetGroupMemberList from './group/GetGroupMemberList'; +import GetGroupMemberInfo from './group/GetGroupMemberInfo'; +import SendGroupMsg from './group/SendGroupMsg'; +import SendPrivateMsg from './msg/SendPrivateMsg'; +import SendMsg from './msg/SendMsg'; +import DeleteMsg from './msg/DeleteMsg'; +import BaseAction from './BaseAction'; +import GetVersionInfo from './system/GetVersionInfo'; +import CanSendRecord from './system/CanSendRecord'; +import CanSendImage from './system/CanSendImage'; +import GetStatus from './system/GetStatus'; +import { + GoCQHTTPSendForwardMsg, + GoCQHTTPSendGroupForwardMsg, + GoCQHTTPSendPrivateForwardMsg +} from './go-cqhttp/SendForwardMsg'; +import GoCQHTTPGetStrangerInfo from './go-cqhttp/GetStrangerInfo'; +import SendLike from './user/SendLike'; +import SetGroupAddRequest from './group/SetGroupAddRequest'; +import SetGroupLeave from './group/SetGroupLeave'; +import GetGuildList from './group/GetGuildList'; +import Debug from '@/onebot11/action/extends/Debug'; +import SetFriendAddRequest from './user/SetFriendAddRequest'; +import SetGroupWholeBan from './group/SetGroupWholeBan'; +import SetGroupName from './group/SetGroupName'; +import SetGroupBan from './group/SetGroupBan'; +import SetGroupKick from './group/SetGroupKick'; +import SetGroupAdmin from './group/SetGroupAdmin'; +import SetGroupCard from './group/SetGroupCard'; +import GetImage from './file/GetImage'; +import GetRecord from './file/GetRecord'; +import { GoCQHTTPMarkMsgAsRead, MarkGroupMsgAsRead, MarkPrivateMsgAsRead } from './msg/MarkMsgAsRead'; +import CleanCache from './system/CleanCache'; +import GoCQHTTPUploadGroupFile from './go-cqhttp/UploadGroupFile'; +import { GetConfigAction, SetConfigAction } from '@/onebot11/action/extends/Config'; +import GetGroupAddRequest from '@/onebot11/action/extends/GetGroupAddRequest'; +import SetQQAvatar from '@/onebot11/action/extends/SetQQAvatar'; +import GoCQHTTPDownloadFile from './go-cqhttp/DownloadFile'; +import GoCQHTTPGetGroupMsgHistory from './go-cqhttp/GetGroupMsgHistory'; +import GetFile from './file/GetFile'; +import { GoCQHTTGetForwardMsgAction } from './go-cqhttp/GetForwardMsg'; +import GetFriendMsgHistory from './go-cqhttp/GetFriendMsgHistory'; +import { GetCookies } from './user/GetCookies'; +import { SetMsgEmojiLike } from '@/onebot11/action/msg/SetMsgEmojiLike'; +import { GetRobotUinRange } from './extends/GetRobotUinRange'; +import { SetOnlineStatus } from './extends/SetOnlineStatus'; +import { GetGroupNotice } from './group/GetGroupNotice'; +import { GetGroupEssence } from './group/GetGroupEssence'; +import { ForwardFriendSingleMsg, ForwardGroupSingleMsg } from '@/onebot11/action/msg/ForwardSingleMsg'; +import { GetFriendWithCategory } from './extends/GetFriendWithCategory'; +import { SendGroupNotice } from './go-cqhttp/SendGroupNotice'; +import { Reboot, RebootNormol } from './system/Reboot'; +import { GetGroupHonorInfo } from './go-cqhttp/GetGroupHonorInfo'; +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'; + +export const actionHandlers = [ + new RebootNormol(), + new GetFile(), + new Debug(), + new Reboot(), + // new GetConfigAction(), + // new SetConfigAction(), + // new GetGroupAddRequest(), + new ForwardFriendSingleMsg(), + new ForwardGroupSingleMsg(), + new MarkGroupMsgAsRead(), + new MarkPrivateMsgAsRead(), + new SetQQAvatar(), + new TranslateEnWordToZn(), + // onebot11 + new SendLike(), + new GetMsg(), + new GetLoginInfo(), + new GetFriendList(), + new GetGroupList(), new GetGroupInfo(), + new GetGroupMemberList(), new GetGroupMemberInfo(), + new SendGroupMsg(), new SendPrivateMsg(), new SendMsg(), + new DeleteMsg(), + new SetGroupAddRequest(), + new SetFriendAddRequest(), + new SetGroupLeave(), + new GetVersionInfo(), + new CanSendRecord(), + new CanSendImage(), + new GetStatus(), + new SetGroupWholeBan(), + new SetGroupBan(), + new SetGroupKick(), + new SetGroupAdmin(), + new SetGroupName(), + new SetGroupCard(), + new GetImage(), + new GetRecord(), + new SetMsgEmojiLike(), + // new CleanCache(), + new GetCookies(), + // + new SetOnlineStatus(), + new GetRobotUinRange(), + new GetFriendWithCategory(), + //以下为go-cqhttp api + new GetOnlineClient(), + new OCRImage(), + new IOCRImage(), + new GetGroupHonorInfo(), + new SendGroupNotice(), + new GetGroupNotice(), + new GetGroupEssence(), + new GoCQHTTPSendForwardMsg(), + new GoCQHTTPSendGroupForwardMsg(), + new GoCQHTTPSendPrivateForwardMsg(), + new GoCQHTTPGetStrangerInfo(), + new GoCQHTTPDownloadFile(), + new GetGuildList(), + new GoCQHTTPMarkMsgAsRead(), + new GoCQHTTPUploadGroupFile(), + new GoCQHTTPGetGroupMsgHistory(), + new GoCQHTTGetForwardMsgAction(), + new GetFriendMsgHistory(), + new GoCQHTTHandleQuickAction(), + new GetGroupSystemMsg() +]; + +function initActionMap() { + const actionMap = new Map>(); + for (const action of actionHandlers) { + actionMap.set(action.actionName, action); + actionMap.set(action.actionName + '_async', action); + actionMap.set(action.actionName + '_rate_limited', action); + } + + return actionMap; +} + +export const actionMap = initActionMap(); diff --git a/src/onebot11/action/types.ts b/src/onebot11/action/types.ts index af736f97..8ed8ad84 100644 --- a/src/onebot11/action/types.ts +++ b/src/onebot11/action/types.ts @@ -1,85 +1,86 @@ -export type BaseCheckResult = ValidCheckResult | InvalidCheckResult - -export interface ValidCheckResult { - valid: true - - [k: string | number]: any -} - -export interface InvalidCheckResult { - valid: false - message: string - - [k: string | number]: any -} - -export enum ActionName { - // 以下为扩展napcat扩展 - RebootNormol = 'reboot_normol',//无快速登录重新启动 - GetRobotUinRange = 'get_robot_uin_range', - SetOnlineStatus = 'set_online_status', - GetFriendsWithCategory = 'get_friends_with_category', - GetGroupIgnoreAddRequest = 'get_group_ignore_add_request', - SetQQAvatar = 'set_qq_avatar', - GetConfig = 'get_config', - SetConfig = 'set_config', - Debug = 'debug', - GetFile = 'get_file', - ForwardFriendSingleMsg = 'forward_friend_single_msg', - ForwardGroupSingleMsg = 'forward_group_single_msg', - // onebot 11 - Reboot = 'set_restart', - SendLike = 'send_like', - GetLoginInfo = 'get_login_info', - GetFriendList = 'get_friend_list', - GetGroupInfo = 'get_group_info', - GetGroupList = 'get_group_list', - GetGroupMemberInfo = 'get_group_member_info', - GetGroupMemberList = 'get_group_member_list', - GetMsg = 'get_msg', - SendMsg = 'send_msg', - SendGroupMsg = 'send_group_msg', - SendPrivateMsg = 'send_private_msg', - DeleteMsg = 'delete_msg', - SetMsgEmojiLike = 'set_msg_emoji_like', - SetGroupAddRequest = 'set_group_add_request', - SetFriendAddRequest = 'set_friend_add_request', - SetGroupLeave = 'set_group_leave', - GetVersionInfo = 'get_version_info', - GetStatus = 'get_status', - CanSendRecord = 'can_send_record', - CanSendImage = 'can_send_image', - SetGroupKick = 'set_group_kick', - SetGroupBan = 'set_group_ban', - SetGroupWholeBan = 'set_group_whole_ban', - SetGroupAdmin = 'set_group_admin', - SetGroupCard = 'set_group_card', - SetGroupName = 'set_group_name', - GetImage = 'get_image', - GetRecord = 'get_record', - CleanCache = 'clean_cache', - GetCookies = 'get_cookies', - // 以下为go-cqhttp api - GoCQHTTP_HandleQuickAction = '.handle_quick_operation', - GetGroupHonorInfo = 'get_group_honor_info', - GoCQHTTP_GetEssenceMsg = 'get_essence_msg_list', - GoCQHTTP_SendGroupNotice = '_send_group_notice', - GoCQHTTP_GetGroupNotice = '_get_group_notice', - GoCQHTTP_SendForwardMsg = 'send_forward_msg', - GoCQHTTP_SendGroupForwardMsg = 'send_group_forward_msg', - GoCQHTTP_SendPrivateForwardMsg = 'send_private_forward_msg', - GoCQHTTP_GetStrangerInfo = 'get_stranger_info', - GoCQHTTP_MarkMsgAsRead = 'mark_msg_as_read', - GetGuildList = 'get_guild_list', - MarkPrivateMsgAsRead = 'mark_private_msg_as_read', - MarkGroupMsgAsRead = 'mark_group_msg_as_read', - GoCQHTTP_UploadGroupFile = 'upload_group_file', - GoCQHTTP_DownloadFile = 'download_file', - GoCQHTTP_GetGroupMsgHistory = 'get_group_msg_history', - GoCQHTTP_GetForwardMsg = 'get_forward_msg', - GetFriendMsgHistory = 'get_friend_msg_history', - GetGroupSystemMsg = 'get_group_system_msg', - GetOnlineClient = "get_online_clients", - OCRImage = "ocr_image", - IOCRImage = ".ocr_image" -} +export type BaseCheckResult = ValidCheckResult | InvalidCheckResult + +export interface ValidCheckResult { + valid: true + + [k: string | number]: any +} + +export interface InvalidCheckResult { + valid: false + message: string + + [k: string | number]: any +} + +export enum ActionName { + // 以下为扩展napcat扩展 + RebootNormol = 'reboot_normol',//无快速登录重新启动 + GetRobotUinRange = 'get_robot_uin_range', + SetOnlineStatus = 'set_online_status', + GetFriendsWithCategory = 'get_friends_with_category', + GetGroupIgnoreAddRequest = 'get_group_ignore_add_request', + SetQQAvatar = 'set_qq_avatar', + GetConfig = 'get_config', + SetConfig = 'set_config', + Debug = 'debug', + GetFile = 'get_file', + ForwardFriendSingleMsg = 'forward_friend_single_msg', + ForwardGroupSingleMsg = 'forward_group_single_msg', + // onebot 11 + Reboot = 'set_restart', + SendLike = 'send_like', + GetLoginInfo = 'get_login_info', + GetFriendList = 'get_friend_list', + GetGroupInfo = 'get_group_info', + GetGroupList = 'get_group_list', + GetGroupMemberInfo = 'get_group_member_info', + GetGroupMemberList = 'get_group_member_list', + GetMsg = 'get_msg', + SendMsg = 'send_msg', + SendGroupMsg = 'send_group_msg', + SendPrivateMsg = 'send_private_msg', + DeleteMsg = 'delete_msg', + SetMsgEmojiLike = 'set_msg_emoji_like', + SetGroupAddRequest = 'set_group_add_request', + SetFriendAddRequest = 'set_friend_add_request', + SetGroupLeave = 'set_group_leave', + GetVersionInfo = 'get_version_info', + GetStatus = 'get_status', + CanSendRecord = 'can_send_record', + CanSendImage = 'can_send_image', + SetGroupKick = 'set_group_kick', + SetGroupBan = 'set_group_ban', + SetGroupWholeBan = 'set_group_whole_ban', + SetGroupAdmin = 'set_group_admin', + SetGroupCard = 'set_group_card', + SetGroupName = 'set_group_name', + GetImage = 'get_image', + GetRecord = 'get_record', + CleanCache = 'clean_cache', + GetCookies = 'get_cookies', + // 以下为go-cqhttp api + GoCQHTTP_HandleQuickAction = '.handle_quick_operation', + GetGroupHonorInfo = 'get_group_honor_info', + GoCQHTTP_GetEssenceMsg = 'get_essence_msg_list', + GoCQHTTP_SendGroupNotice = '_send_group_notice', + GoCQHTTP_GetGroupNotice = '_get_group_notice', + GoCQHTTP_SendForwardMsg = 'send_forward_msg', + GoCQHTTP_SendGroupForwardMsg = 'send_group_forward_msg', + GoCQHTTP_SendPrivateForwardMsg = 'send_private_forward_msg', + GoCQHTTP_GetStrangerInfo = 'get_stranger_info', + GoCQHTTP_MarkMsgAsRead = 'mark_msg_as_read', + GetGuildList = 'get_guild_list', + MarkPrivateMsgAsRead = 'mark_private_msg_as_read', + MarkGroupMsgAsRead = 'mark_group_msg_as_read', + GoCQHTTP_UploadGroupFile = 'upload_group_file', + GoCQHTTP_DownloadFile = 'download_file', + GoCQHTTP_GetGroupMsgHistory = 'get_group_msg_history', + GoCQHTTP_GetForwardMsg = 'get_forward_msg', + GetFriendMsgHistory = 'get_friend_msg_history', + GetGroupSystemMsg = 'get_group_system_msg', + GetOnlineClient = "get_online_clients", + OCRImage = "ocr_image", + IOCRImage = ".ocr_image", + TranslateEnWordToZn = "translate_en2zh" +} diff --git a/static/assets/renderer copy.js b/static/assets/renderer copy.js deleted file mode 100644 index 0b3438f5..00000000 --- a/static/assets/renderer copy.js +++ /dev/null @@ -1,476 +0,0 @@ -const SettingList = (items, title, isCollapsible = false, direction = "column") => { - return ` - - - ${items.join("")} - - - `; -}; - -const SettingItem = (title, subtitle, action, id, visible = true) => { - return ` -
- ${title} - ${subtitle ? `${subtitle}` : ""} -
- ${action ? `
${action}
` : ""} -
`; -}; - -const SettingButton = (text, id, type = "secondary") => { - return `${text}`; -}; - -const SettingSwitch = (configKey, isActive = false, extraData) => { - return ` `data-${key}="${extraData[key]}"`) : ""} - > - `; -}; - -const SettingOption = (text, value, isSelected = false) => { - return `${text}`; -}; - -const SelectTemplate = document.createElement("template"); -SelectTemplate.innerHTML = ` -
-
- - - - -
- -
`; -window.customElements.define( - "ob-setting-select", - class extends HTMLElement { - _button; - _text; - _context; - constructor() { - super(); - this.attachShadow({ mode: "open" }); - this.shadowRoot?.append(SelectTemplate.content.cloneNode(true)); - this._button = this.shadowRoot.querySelector('div[part="button"]'); - this._text = this.shadowRoot.querySelector('input[part="current-text"]'); - this._context = this.shadowRoot.querySelector('ul[part="option-list"]'); - const buttonClick = () => { - const isHidden = this._context.classList.toggle("hidden"); - window[`${isHidden ? "remove" : "add"}EventListener`]("pointerdown", windowPointerDown); - }; - const windowPointerDown = ({ target }) => { - if (!this.contains(target)) - buttonClick(); - }; - this._button.addEventListener("click", buttonClick); - this._context.addEventListener("click", ({ target }) => { - if (target.tagName !== "SETTING-OPTION") - return; - buttonClick(); - if (target.hasAttribute("is-selected")) - return; - this.querySelectorAll("setting-option[is-selected]").forEach((dom) => dom.toggleAttribute("is-selected")); - target.toggleAttribute("is-selected"); - this._text.value = target.textContent; - this.dispatchEvent( - new CustomEvent("selected", { - bubbles: true, - composed: true, - detail: { - name: target.textContent, - value: target.dataset.value - } - }) - ); - }); - this._text.value = this.querySelector("setting-option[is-selected]")?.textContent; - } - } -); -const SettingSelect = (items, configKey, configValue) => { - return ` - ${items.map((e, i) => { - return SettingOption(e.text, e.value, configKey && configValue ? configValue === e.value : i === 0); - }).join("")} -`; -}; - -class WebUiApiOB11ConfigWrapper { - retCredential = ""; - async Init(Credential) { - this.retCredential = Credential; - } - async GetOB11Config() { - const ConfigResponse = await fetch("/api/OB11Config/GetConfig", { - method: "POST", - headers: { - Authorization: "Bearer " + this.retCredential, - "Content-Type": "application/json" - } - }); - if (ConfigResponse.status == 200) { - const ConfigResponseJson = await ConfigResponse.json(); - if (ConfigResponseJson.code == 0) { - return ConfigResponseJson?.data; - } - } - return {}; - } - async SetOB11Config(config) { - const ConfigResponse = await fetch("/api/OB11Config/SetConfig", { - method: "POST", - headers: { - Authorization: "Bearer " + this.retCredential, - "Content-Type": "application/json" - }, - body: JSON.stringify({ config: JSON.stringify(config) }) - }); - if (ConfigResponse.status == 200) { - const ConfigResponseJson = await ConfigResponse.json(); - if (ConfigResponseJson.code == 0) { - return true; - } - } - return false; - } -} -const OB11ConfigWrapper = new WebUiApiOB11ConfigWrapper(); - -async function onSettingWindowCreated(view) { - const isEmpty = (value) => value === void 0 || value === void 0 || value === ""; - await OB11ConfigWrapper.Init(localStorage.getItem("auth")); - const ob11Config = await OB11ConfigWrapper.GetOB11Config(); - const setOB11Config = (key, value) => { - const configKey = key.split("."); - if (configKey.length === 2) { - ob11Config[configKey[1]] = value; - } else if (configKey.length === 3) { - ob11Config[configKey[1]][configKey[2]] = value; - } - OB11ConfigWrapper.SetOB11Config(ob11Config); - }; - const parser = new DOMParser(); - const doc = parser.parseFromString( - [ - "
", - ` -
-
`, - SettingList([ - SettingItem( - 'Napcat', - void 0, - SettingButton("V1.4.0", "napcat-update-button", "secondary") - ) - ]), - SettingList([ - SettingItem( - "启用 HTTP 服务", - void 0, - SettingSwitch("ob11.http.enable", ob11Config.http.enable, { - "control-display-id": "config-ob11-http-port" - }) - ), - SettingItem( - "HTTP 服务监听端口", - void 0, - `
`, - "config-ob11-http-port", - ob11Config.http.enable - ), - SettingItem( - "启用 HTTP 心跳", - void 0, - SettingSwitch("ob11.http.enableHeart", ob11Config.http.enableHeart, { - "control-display-id": "config-ob11-HTTP.enableHeart" - }) - ), - SettingItem( - "启用 HTTP 事件上报", - void 0, - SettingSwitch("ob11.http.enablePost", ob11Config.http.enablePost, { - "control-display-id": "config-ob11-http-postUrls" - }) - ), - `
- -
- HTTP 事件上报密钥 -
-
- -
-
- -
- HTTP 事件上报地址 -
- 添加 -
-
-
`, - SettingItem( - "启用正向 WebSocket 服务", - void 0, - SettingSwitch("ob11.ws.enable", ob11Config.ws.enable, { - "control-display-id": "config-ob11-ws-port" - }) - ), - SettingItem( - "正向 WebSocket 服务监听端口", - void 0, - `
`, - "config-ob11-ws-port", - ob11Config.ws.enable - ), - SettingItem( - "启用反向 WebSocket 服务", - void 0, - SettingSwitch("ob11.reverseWs.enable", ob11Config.reverseWs.enable, { - "control-display-id": "config-ob11-reverseWs-urls" - }) - ), - `
- -
- 反向 WebSocket 监听地址 -
- 添加 -
-
-
`, - SettingItem( - " WebSocket 服务心跳间隔", - "控制每隔多久发送一个心跳包,单位为毫秒", - `
` - ), - SettingItem( - "Access token", - void 0, - `
` - ), - SettingItem( - "新消息上报格式", - `如客户端无特殊需求推荐保持默认设置,两者的详细差异可参考 OneBot v11 文档`, - SettingSelect( - [ - { text: "消息段", value: "array" }, - { text: "CQ码", value: "string" } - ], - "ob11.messagePostFormat", - ob11Config.messagePostFormat - ) - ), - SettingItem( - "音乐卡片签名地址", - void 0, - `
`, - "ob11.musicSignUrl" - ), - SettingItem( - "启用本地进群时间与发言时间记录", - void 0, - SettingSwitch("ob11.GroupLocalTime.Record", ob11Config.GroupLocalTime.Record, { - "control-display-id": "config-ob11-GroupLocalTime-RecordList" - }) - ), - `
- -
- 群列表 -
- 添加 -
-
-
`, - SettingItem( - "", - void 0, - SettingButton("保存", "config-ob11-save", "primary") - ) - ]), - SettingList([ - SettingItem( - "上报 Bot 自身发送的消息", - "上报 event 为 message_sent", - SettingSwitch("ob11.reportSelfMessage", ob11Config.reportSelfMessage) - ) - ]), - SettingList([ - SettingItem( - "GitHub 仓库", - "https://github.com/NapNeko/NapCatQQ", - SettingButton("点个星星", "open-github") - ), - SettingItem("NapCat 文档", "", SettingButton("看看文档", "open-docs")), - SettingItem( - "Telegram 群", - "https://t.me/+nLZEnpne-pQ1OWFl", - SettingButton("进去逛逛", "open-telegram") - ), - SettingItem( - "QQ 群", - "545402644", - SettingButton("我要进去", "open-qq-group") - ) - ]), - "
" - ].join(""), - "text/html" - ); - doc.querySelector("#open-github")?.addEventListener("click", () => { - window.open("https://napneko.github.io/", "_blank"); - }); - doc.querySelector("#open-telegram")?.addEventListener("click", () => { - window.open("https://t.me/+nLZEnpne-pQ1OWFl"); - }); - doc.querySelector("#open-qq-group")?.addEventListener("click", () => { - window.open("https://qm.qq.com/q/bDnHRG38aI"); - }); - doc.querySelector("#open-docs")?.addEventListener("click", () => { - window.open("https://github.com/NapNeko/NapCatQQ"); - }); - const buildHostListItem = (type, host, index, inputAttrs = {}) => { - const dom = { - container: document.createElement("setting-item"), - input: document.createElement("input"), - inputContainer: document.createElement("div"), - deleteBtn: document.createElement("setting-button") - }; - dom.container.classList.add("setting-host-list-item"); - dom.container.dataset.direction = "row"; - Object.assign(dom.input, inputAttrs); - dom.input.classList.add("q-input__inner"); - dom.input.type = "url"; - dom.input.value = host; - dom.input.addEventListener("input", () => { - ob11Config[type.split("-")[0]][type.split("-")[1]][index] = dom.input.value; - }); - dom.inputContainer.classList.add("q-input"); - dom.inputContainer.appendChild(dom.input); - dom.deleteBtn.innerHTML = "删除"; - dom.deleteBtn.dataset.type = "secondary"; - dom.deleteBtn.addEventListener("click", () => { - ob11Config[type.split("-")[0]][type.split("-")[1]].splice(index, 1); - initReverseHost(type); - }); - dom.container.appendChild(dom.inputContainer); - dom.container.appendChild(dom.deleteBtn); - return dom.container; - }; - const buildHostList = (hosts, type, inputAttr = {}) => { - const result = []; - hosts?.forEach((host, index) => { - result.push(buildHostListItem(type, host, index, inputAttr)); - }); - return result; - }; - const addReverseHost = (type, doc2 = document, inputAttr = {}) => { - type = type.replace(/\./g, "-"); - const hostContainerDom = doc2.body.querySelector( - `#config-ob11-${type}-list` - ); - hostContainerDom?.appendChild( - buildHostListItem( - type, - "", - ob11Config[type.split("-")[0]][type.split("-")[1]].length, - inputAttr - ) - ); - ob11Config[type.split("-")[0]][type.split("-")[1]].push(""); - }; - const initReverseHost = (type, doc2 = document) => { - type = type.replace(/\./g, "-"); - const hostContainerDom = doc2.body?.querySelector( - `#config-ob11-${type}-list` - ); - if (hostContainerDom) { - [...hostContainerDom.childNodes].forEach((dom) => dom.remove()); - buildHostList( - ob11Config[type.split("-")[0]][type.split("-")[1]], - type - ).forEach((dom) => { - hostContainerDom?.appendChild(dom); - }); - } - }; - initReverseHost("http.postUrls", doc); - initReverseHost("reverseWs.urls", doc); - initReverseHost("GroupLocalTime.RecordList", doc); - doc.querySelector("#config-ob11-http-postUrls-add")?.addEventListener( - "click", - () => addReverseHost("http.postUrls", document, { - placeholder: "如:http://127.0.0.1:5140/onebot" - }) - ); - doc.querySelector("#config-ob11-reverseWs-urls-add")?.addEventListener( - "click", - () => addReverseHost("reverseWs.urls", document, { - placeholder: "如:ws://127.0.0.1:5140/onebot" - }) - ); - doc.querySelector("#config-ob11-GroupLocalTime-RecordList-add")?.addEventListener( - "click", - () => addReverseHost("GroupLocalTime.RecordList", document, { - placeholder: "此处填写群号 -1为全部" - }) - ); - doc.querySelector("#config-ffmpeg-select")?.addEventListener("click", () => { - }); - doc.querySelector("#config-open-log-path")?.addEventListener("click", () => { - }); - doc.querySelectorAll("setting-switch[data-config-key]").forEach((dom) => { - dom.addEventListener("click", () => { - const active = dom.getAttribute("is-active") == void 0; - setOB11Config(dom.dataset.configKey, active); - if (active) - dom.setAttribute("is-active", ""); - else - dom.removeAttribute("is-active"); - if (!isEmpty(dom.dataset.controlDisplayId)) { - const displayDom = document.querySelector( - //@ts-expect-error 等待修复 - `#${dom.dataset.controlDisplayId}` - ); - if (active) - displayDom?.removeAttribute("is-hidden"); - else - displayDom?.setAttribute("is-hidden", ""); - } - }); - }); - doc.querySelectorAll( - "setting-item .q-input input.q-input__inner[data-config-key]" - ).forEach((dom) => { - dom.addEventListener("input", () => { - const Type = dom.getAttribute("type"); - const configKey = dom.dataset.configKey; - const configValue = Type === "number" ? parseInt(dom.value) >= 1 ? parseInt(dom.value) : 1 : dom.value; - setOB11Config(configKey, configValue); - }); - }); - doc.querySelectorAll("ob-setting-select[data-config-key]").forEach((dom) => { - dom?.addEventListener("selected", (e) => { - const configKey = dom.dataset.configKey; - const configValue = e.detail.value; - setOB11Config(configKey, configValue); - }); - }); - doc.querySelector("#config-ob11-save")?.addEventListener("click", () => { - OB11ConfigWrapper.SetOB11Config(ob11Config); - alert("保存成功"); - }); - doc.body.childNodes.forEach((node) => { - view.appendChild(node); - }); -} - -export { onSettingWindowCreated }; diff --git a/static/assets/renderer.js b/static/assets/renderer.js index f5c4ebe8..0b3438f5 100644 --- a/static/assets/renderer.js +++ b/static/assets/renderer.js @@ -420,7 +420,7 @@ async function onSettingWindowCreated(view) { doc.querySelector("#config-ob11-GroupLocalTime-RecordList-add")?.addEventListener( "click", () => addReverseHost("GroupLocalTime.RecordList", document, { - placeholder: "如:ws://127.0.0.1:5140/onebot" + placeholder: "此处填写群号 -1为全部" }) ); doc.querySelector("#config-ffmpeg-select")?.addEventListener("click", () => {