feat: en2zh

This commit is contained in:
手瓜一十雪
2024-05-29 10:25:13 +08:00
parent 33c94e1888
commit 516f2da144
52 changed files with 387 additions and 818 deletions

View File

@@ -7,8 +7,8 @@ QQ Version: Windows 9.9.10-24108 / Linux 3.2.7-23361
* 优化日志膨胀问题 * 优化日志膨胀问题
* 在线状态刷新问题修复 * 在线状态刷新问题修复
## 新增与调整 ## 新增与调整
* 支持非管理群 本地记录时间数据 (注意备份配置) * 支持非管理群 本地记录时间数据 (建议 **备份配置 清空配置 重新配置**)
* 新增翻译接口 Api: /xxxx * 新增英译中接口 Api: /translate_en2zh
* 新增群文件管理相关扩接口 Api: /xxxx * 新增群文件管理相关扩接口 Api: /xxxx
新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api) 新增的 API 详细见[API文档](https://napneko.github.io/zh-CN/develop/extends_api)

View File

@@ -4,7 +4,6 @@ import sqlite3 from 'sqlite3';
import { log, logDebug, logError } from '@/common/utils/log'; import { log, logDebug, logError } from '@/common/utils/log';
import { NTQQMsgApi } from '@/core'; import { NTQQMsgApi } from '@/core';
import LRU from "@/common/utils/LRUCache"; import LRU from "@/common/utils/LRUCache";
import { ob11Config } from '@/onebot11/config';
export interface IRember { export interface IRember {
last_sent_time: number; last_sent_time: number;

View File

@@ -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){}} 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();}

View File

@@ -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){}} 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){}}

View File

@@ -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){}} 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){}}

View File

@@ -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'; (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';

File diff suppressed because one or more lines are too long

View File

@@ -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});}} 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});}}

File diff suppressed because one or more lines are too long

View File

@@ -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'; 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';

File diff suppressed because one or more lines are too long

View File

@@ -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;} 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;}

View File

@@ -1,4 +1,7 @@
export declare class NTQQSystemApi { export declare class NTQQSystemApi {
static hasOtherRunningQQProcess(): Promise<boolean>; static hasOtherRunningQQProcess(): Promise<boolean>;
static ORCImage(filePath: string): Promise<import("@/core").GeneralCallResult>; static ORCImage(filePath: string): Promise<import("@/core").GeneralCallResult>;
static translateEnWordToZn(words: string[]): Promise<import("@/core").GeneralCallResult & {
words: string[];
}>;
} }

View File

@@ -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);}} 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();}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -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}; (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};

View File

@@ -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={}))); (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={})));

File diff suppressed because one or more lines are too long

View File

@@ -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={}))); (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();}

View File

@@ -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'; 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';

File diff suppressed because one or more lines are too long

View File

@@ -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={}))); (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={})));

View File

@@ -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();} (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={})));

View File

@@ -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'; 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';

View File

@@ -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){}} 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){}}

View File

@@ -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){}} 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){}}

File diff suppressed because one or more lines are too long

View File

@@ -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();} 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){}}

View File

@@ -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){}} 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){}}

View File

@@ -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){}} 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){}}

View File

@@ -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();} 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();}

View File

@@ -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();} 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){}}

View File

@@ -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();} 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();}

View File

@@ -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();} (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';

View File

@@ -1,3 +1,4 @@
import { GeneralCallResult } from "./common";
export interface NodeIKernelRichMediaService { export interface NodeIKernelRichMediaService {
getVideoPlayUrl(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown, arg5: unknown): unknown; getVideoPlayUrl(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown, arg5: unknown): unknown;
getVideoPlayUrlV2(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; transGroupFile(arg1: unknown, arg2: unknown): unknown;
searchGroupFileByWord(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown, arg5: unknown): unknown; searchGroupFileByWord(arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown, arg5: unknown): unknown;
deleteGroupFile(arg1: unknown, arg2: unknown, arg3: unknown): unknown; deleteGroupFile(arg1: unknown, arg2: unknown, arg3: unknown): unknown;
translateEnWordToZn(words: string[]): Promise<GeneralCallResult & {
words: string[];
}>;
getScreenOCR(arg: unknown): unknown; getScreenOCR(arg: unknown): unknown;
translateEnWordToZn(arg: unknown): unknown;
batchGetGroupFileCount(arg: unknown): unknown; batchGetGroupFileCount(arg: unknown): unknown;
queryPicDownloadSize(arg: unknown): unknown; queryPicDownloadSize(arg: unknown): unknown;
searchGroupFiletransgroupfile(arg1: unknown, arg2: unknown): unknown; searchGroupFiletransgroupfile(arg1: unknown, arg2: unknown): unknown;

View File

@@ -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={}))); (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={})));

View File

@@ -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'; (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';

View File

@@ -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();} (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;}

View File

@@ -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(); 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();

View File

@@ -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'); 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();}

View File

@@ -1,7 +1,7 @@
import { WrapperSessionInitConfig } from './sessionConfig'; import { WrapperSessionInitConfig } from './sessionConfig';
import { NodeIDependsAdapter, NodeIDispatcherAdapter, NodeIGlobalAdapter } from './adapters'; import { NodeIDependsAdapter, NodeIDispatcherAdapter, NodeIGlobalAdapter } from './adapters';
import { NodeIKernelSessionListener, NodeIKernelMsgListener, NodeIKernelLoginListener, NodeIKernelBuddyListener, NodeIKernelGroupListener, NodeIKernelProfileListener } from './listeners'; 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 { NodeIKernelStorageCleanService } from './services/NodeIKernelStorageCleanService';
import { NodeIKernelRobotService } from './services/NodeIKernelRobotService'; import { NodeIKernelRobotService } from './services/NodeIKernelRobotService';
import { NodeIKernelNodeMiscService } from './services/NodeIKernelNodeMiscService'; import { NodeIKernelNodeMiscService } from './services/NodeIKernelNodeMiscService';
@@ -70,12 +70,12 @@ export interface NodeIQQNTWrapperSession {
getTicketService(): NodeIKernelTicketService; getTicketService(): NodeIKernelTicketService;
getTipOffService(): NodeIKernelTipOffService; getTipOffService(): NodeIKernelTipOffService;
getNodeMiscService(): NodeIKernelNodeMiscService; getNodeMiscService(): NodeIKernelNodeMiscService;
getRichMediaService(): NodeIKernelRichMediaService;
getMsgBackupService(): unknown; getMsgBackupService(): unknown;
getAlbumService(): unknown; getAlbumService(): unknown;
getTianShuService(): unknown; getTianShuService(): unknown;
getUnitedConfigService(): unknown; getUnitedConfigService(): unknown;
getSearchService(): unknown; getSearchService(): unknown;
getRichMediaService(): unknown;
getDirectSessionService(): unknown; getDirectSessionService(): unknown;
getRDeliveryService(): unknown; getRDeliveryService(): unknown;
getAvatarService(): unknown; getAvatarService(): unknown;

View File

@@ -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; 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;

View File

@@ -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<typeof SchemaData>;
export class TranslateEnWordToZn extends BaseAction<Payload, Array<any> | 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;
}
}

View File

@@ -1,66 +1,66 @@
import { OB11GroupMember } from '../../types'; import { OB11GroupMember } from '../../types';
import { getGroup, getGroupMember, groupMembers } from '@/core/data'; import { getGroup, getGroupMember, groupMembers } from '@/core/data';
import { OB11Constructor } from '../../constructor'; import { OB11Constructor } from '../../constructor';
import BaseAction from '../BaseAction'; import BaseAction from '../BaseAction';
import { ActionName } from '../types'; import { ActionName } from '../types';
import { NTQQUserApi } from '@/core/apis/user'; import { NTQQUserApi } from '@/core/apis/user';
import { log, logDebug } from '@/common/utils/log'; import { log, logDebug } from '@/common/utils/log';
import { isNull } from '../../../common/utils/helper'; import { isNull } from '../../../common/utils/helper';
import { WebApi } from '@/core/apis/webapi'; import { WebApi } from '@/core/apis/webapi';
import { NTQQGroupApi } from '@/core'; import { NTQQGroupApi } from '@/core';
import { FromSchema, JSONSchema } from 'json-schema-to-ts'; import { FromSchema, JSONSchema } from 'json-schema-to-ts';
// no_cache get时传字符串 // no_cache get时传字符串
const SchemaData = { const SchemaData = {
type: 'object', type: 'object',
properties: { properties: {
group_id: { type: 'number' }, group_id: { type: ['number', 'string'] },
user_id: { type: 'number' }, user_id: { type: ['number', 'string'] },
no_cache: { type: ['boolean', 'string'] }, no_cache: { type: ['boolean', 'string'] },
}, },
required: ['group_id', 'user_id'] required: ['group_id', 'user_id']
} as const satisfies JSONSchema; } as const satisfies JSONSchema;
type Payload = FromSchema<typeof SchemaData>; type Payload = FromSchema<typeof SchemaData>;
class GetGroupMemberInfo extends BaseAction<Payload, OB11GroupMember> { class GetGroupMemberInfo extends BaseAction<Payload, OB11GroupMember> {
actionName = ActionName.GetGroupMemberInfo; actionName = ActionName.GetGroupMemberInfo;
PayloadSchema = SchemaData; PayloadSchema = SchemaData;
protected async _handle(payload: Payload) { protected async _handle(payload: Payload) {
const group = await getGroup(payload.group_id.toString()); const group = await getGroup(payload.group_id.toString());
if (!group) { if (!group) {
throw (`群(${payload.group_id})不存在`); throw (`群(${payload.group_id})不存在`);
} }
const webGroupMembers = await WebApi.getGroupMembers(payload.group_id.toString()); const webGroupMembers = await WebApi.getGroupMembers(payload.group_id.toString());
if (payload.no_cache == true /*|| payload.no_cache === 'true'*/) { if (payload.no_cache == true /*|| payload.no_cache === 'true'*/) {
groupMembers.set(group.groupCode, await NTQQGroupApi.getGroupMembers(payload.group_id.toString())); groupMembers.set(group.groupCode, await NTQQGroupApi.getGroupMembers(payload.group_id.toString()));
} }
const member = await getGroupMember(payload.group_id.toString(), payload.user_id.toString()); const member = await getGroupMember(payload.group_id.toString(), payload.user_id.toString());
// log(member); // log(member);
if (member) { if (member) {
logDebug('获取群成员详细信息'); logDebug('获取群成员详细信息');
try { try {
const info = (await NTQQUserApi.getUserDetailInfo(member.uid)); const info = (await NTQQUserApi.getUserDetailInfo(member.uid));
logDebug('群成员详细信息结果', info); logDebug('群成员详细信息结果', info);
Object.assign(member, info); Object.assign(member, info);
} catch (e) { } catch (e) {
logDebug('获取群成员详细信息失败, 只能返回基础信息', e); logDebug('获取群成员详细信息失败, 只能返回基础信息', e);
} }
const retMember = OB11Constructor.groupMember(payload.group_id.toString(), member); const retMember = OB11Constructor.groupMember(payload.group_id.toString(), member);
for (let i = 0, len = webGroupMembers.length; i < len; i++) { for (let i = 0, len = webGroupMembers.length; i < len; i++) {
if (webGroupMembers[i]?.uin && webGroupMembers[i].uin === retMember.user_id) { if (webGroupMembers[i]?.uin && webGroupMembers[i].uin === retMember.user_id) {
retMember.join_time = webGroupMembers[i]?.join_time; retMember.join_time = webGroupMembers[i]?.join_time;
retMember.last_sent_time = webGroupMembers[i]?.last_speak_time; retMember.last_sent_time = webGroupMembers[i]?.last_speak_time;
retMember.qage = webGroupMembers[i]?.qage; retMember.qage = webGroupMembers[i]?.qage;
retMember.level = webGroupMembers[i]?.lv.level; retMember.level = webGroupMembers[i]?.lv.level;
} }
} }
return retMember; return retMember;
} else { } else {
throw (`群(${payload.group_id})成员${payload.user_id}不存在`); throw (`群(${payload.group_id})成员${payload.user_id}不存在`);
} }
} }
} }
export default GetGroupMemberInfo; export default GetGroupMemberInfo;

View File

@@ -9,7 +9,7 @@ const SchemaData = {
group_id: { type: 'number' }, group_id: { type: 'number' },
is_dismiss: { type: 'boolean' } is_dismiss: { type: 'boolean' }
}, },
required: ['group_id', 'is_dismiss'] required: ['group_id']
} as const satisfies JSONSchema; } as const satisfies JSONSchema;
type Payload = FromSchema<typeof SchemaData>; type Payload = FromSchema<typeof SchemaData>;

View File

@@ -1,142 +1,144 @@
import GetMsg from './msg/GetMsg'; import GetMsg from './msg/GetMsg';
import GetLoginInfo from './system/GetLoginInfo'; import GetLoginInfo from './system/GetLoginInfo';
import GetFriendList from './user/GetFriendList'; import GetFriendList from './user/GetFriendList';
import GetGroupList from './group/GetGroupList'; import GetGroupList from './group/GetGroupList';
import GetGroupInfo from './group/GetGroupInfo'; import GetGroupInfo from './group/GetGroupInfo';
import GetGroupMemberList from './group/GetGroupMemberList'; import GetGroupMemberList from './group/GetGroupMemberList';
import GetGroupMemberInfo from './group/GetGroupMemberInfo'; import GetGroupMemberInfo from './group/GetGroupMemberInfo';
import SendGroupMsg from './group/SendGroupMsg'; import SendGroupMsg from './group/SendGroupMsg';
import SendPrivateMsg from './msg/SendPrivateMsg'; import SendPrivateMsg from './msg/SendPrivateMsg';
import SendMsg from './msg/SendMsg'; import SendMsg from './msg/SendMsg';
import DeleteMsg from './msg/DeleteMsg'; import DeleteMsg from './msg/DeleteMsg';
import BaseAction from './BaseAction'; import BaseAction from './BaseAction';
import GetVersionInfo from './system/GetVersionInfo'; import GetVersionInfo from './system/GetVersionInfo';
import CanSendRecord from './system/CanSendRecord'; import CanSendRecord from './system/CanSendRecord';
import CanSendImage from './system/CanSendImage'; import CanSendImage from './system/CanSendImage';
import GetStatus from './system/GetStatus'; import GetStatus from './system/GetStatus';
import { import {
GoCQHTTPSendForwardMsg, GoCQHTTPSendForwardMsg,
GoCQHTTPSendGroupForwardMsg, GoCQHTTPSendGroupForwardMsg,
GoCQHTTPSendPrivateForwardMsg GoCQHTTPSendPrivateForwardMsg
} from './go-cqhttp/SendForwardMsg'; } from './go-cqhttp/SendForwardMsg';
import GoCQHTTPGetStrangerInfo from './go-cqhttp/GetStrangerInfo'; import GoCQHTTPGetStrangerInfo from './go-cqhttp/GetStrangerInfo';
import SendLike from './user/SendLike'; import SendLike from './user/SendLike';
import SetGroupAddRequest from './group/SetGroupAddRequest'; import SetGroupAddRequest from './group/SetGroupAddRequest';
import SetGroupLeave from './group/SetGroupLeave'; import SetGroupLeave from './group/SetGroupLeave';
import GetGuildList from './group/GetGuildList'; import GetGuildList from './group/GetGuildList';
import Debug from '@/onebot11/action/extends/Debug'; import Debug from '@/onebot11/action/extends/Debug';
import SetFriendAddRequest from './user/SetFriendAddRequest'; import SetFriendAddRequest from './user/SetFriendAddRequest';
import SetGroupWholeBan from './group/SetGroupWholeBan'; import SetGroupWholeBan from './group/SetGroupWholeBan';
import SetGroupName from './group/SetGroupName'; import SetGroupName from './group/SetGroupName';
import SetGroupBan from './group/SetGroupBan'; import SetGroupBan from './group/SetGroupBan';
import SetGroupKick from './group/SetGroupKick'; import SetGroupKick from './group/SetGroupKick';
import SetGroupAdmin from './group/SetGroupAdmin'; import SetGroupAdmin from './group/SetGroupAdmin';
import SetGroupCard from './group/SetGroupCard'; import SetGroupCard from './group/SetGroupCard';
import GetImage from './file/GetImage'; import GetImage from './file/GetImage';
import GetRecord from './file/GetRecord'; import GetRecord from './file/GetRecord';
import { GoCQHTTPMarkMsgAsRead, MarkGroupMsgAsRead, MarkPrivateMsgAsRead } from './msg/MarkMsgAsRead'; import { GoCQHTTPMarkMsgAsRead, MarkGroupMsgAsRead, MarkPrivateMsgAsRead } from './msg/MarkMsgAsRead';
import CleanCache from './system/CleanCache'; import CleanCache from './system/CleanCache';
import GoCQHTTPUploadGroupFile from './go-cqhttp/UploadGroupFile'; import GoCQHTTPUploadGroupFile from './go-cqhttp/UploadGroupFile';
import { GetConfigAction, SetConfigAction } from '@/onebot11/action/extends/Config'; import { GetConfigAction, SetConfigAction } from '@/onebot11/action/extends/Config';
import GetGroupAddRequest from '@/onebot11/action/extends/GetGroupAddRequest'; import GetGroupAddRequest from '@/onebot11/action/extends/GetGroupAddRequest';
import SetQQAvatar from '@/onebot11/action/extends/SetQQAvatar'; import SetQQAvatar from '@/onebot11/action/extends/SetQQAvatar';
import GoCQHTTPDownloadFile from './go-cqhttp/DownloadFile'; import GoCQHTTPDownloadFile from './go-cqhttp/DownloadFile';
import GoCQHTTPGetGroupMsgHistory from './go-cqhttp/GetGroupMsgHistory'; import GoCQHTTPGetGroupMsgHistory from './go-cqhttp/GetGroupMsgHistory';
import GetFile from './file/GetFile'; import GetFile from './file/GetFile';
import { GoCQHTTGetForwardMsgAction } from './go-cqhttp/GetForwardMsg'; import { GoCQHTTGetForwardMsgAction } from './go-cqhttp/GetForwardMsg';
import GetFriendMsgHistory from './go-cqhttp/GetFriendMsgHistory'; import GetFriendMsgHistory from './go-cqhttp/GetFriendMsgHistory';
import { GetCookies } from './user/GetCookies'; import { GetCookies } from './user/GetCookies';
import { SetMsgEmojiLike } from '@/onebot11/action/msg/SetMsgEmojiLike'; import { SetMsgEmojiLike } from '@/onebot11/action/msg/SetMsgEmojiLike';
import { GetRobotUinRange } from './extends/GetRobotUinRange'; import { GetRobotUinRange } from './extends/GetRobotUinRange';
import { SetOnlineStatus } from './extends/SetOnlineStatus'; import { SetOnlineStatus } from './extends/SetOnlineStatus';
import { GetGroupNotice } from './group/GetGroupNotice'; import { GetGroupNotice } from './group/GetGroupNotice';
import { GetGroupEssence } from './group/GetGroupEssence'; import { GetGroupEssence } from './group/GetGroupEssence';
import { ForwardFriendSingleMsg, ForwardGroupSingleMsg } from '@/onebot11/action/msg/ForwardSingleMsg'; import { ForwardFriendSingleMsg, ForwardGroupSingleMsg } from '@/onebot11/action/msg/ForwardSingleMsg';
import { GetFriendWithCategory } from './extends/GetFriendWithCategory'; import { GetFriendWithCategory } from './extends/GetFriendWithCategory';
import { SendGroupNotice } from './go-cqhttp/SendGroupNotice'; import { SendGroupNotice } from './go-cqhttp/SendGroupNotice';
import { Reboot, RebootNormol } from './system/Reboot'; import { Reboot, RebootNormol } from './system/Reboot';
import { GetGroupHonorInfo } from './go-cqhttp/GetGroupHonorInfo'; import { GetGroupHonorInfo } from './go-cqhttp/GetGroupHonorInfo';
import { GoCQHTTHandleQuickAction } from './go-cqhttp/QuickAction'; import { GoCQHTTHandleQuickAction } from './go-cqhttp/QuickAction';
import { GetGroupSystemMsg } from './group/GetGroupSystemMsg'; import { GetGroupSystemMsg } from './group/GetGroupSystemMsg';
import { GetOnlineClient } from './go-cqhttp/GetOnlineClient'; import { GetOnlineClient } from './go-cqhttp/GetOnlineClient';
import { IOCRImage, OCRImage } from './extends/OCRImage'; import { IOCRImage, OCRImage } from './extends/OCRImage';
import { TranslateEnWordToZn } from './extends/translateEnWordToZn';
export const actionHandlers = [
new RebootNormol(), export const actionHandlers = [
new GetFile(), new RebootNormol(),
new Debug(), new GetFile(),
new Reboot(), new Debug(),
// new GetConfigAction(), new Reboot(),
// new SetConfigAction(), // new GetConfigAction(),
// new GetGroupAddRequest(), // new SetConfigAction(),
new ForwardFriendSingleMsg(), // new GetGroupAddRequest(),
new ForwardGroupSingleMsg(), new ForwardFriendSingleMsg(),
new MarkGroupMsgAsRead(), new ForwardGroupSingleMsg(),
new MarkPrivateMsgAsRead(), new MarkGroupMsgAsRead(),
new SetQQAvatar(), new MarkPrivateMsgAsRead(),
// onebot11 new SetQQAvatar(),
new SendLike(), new TranslateEnWordToZn(),
new GetMsg(), // onebot11
new GetLoginInfo(), new SendLike(),
new GetFriendList(), new GetMsg(),
new GetGroupList(), new GetGroupInfo(), new GetLoginInfo(),
new GetGroupMemberList(), new GetGroupMemberInfo(), new GetFriendList(),
new SendGroupMsg(), new SendPrivateMsg(), new SendMsg(), new GetGroupList(), new GetGroupInfo(),
new DeleteMsg(), new GetGroupMemberList(), new GetGroupMemberInfo(),
new SetGroupAddRequest(), new SendGroupMsg(), new SendPrivateMsg(), new SendMsg(),
new SetFriendAddRequest(), new DeleteMsg(),
new SetGroupLeave(), new SetGroupAddRequest(),
new GetVersionInfo(), new SetFriendAddRequest(),
new CanSendRecord(), new SetGroupLeave(),
new CanSendImage(), new GetVersionInfo(),
new GetStatus(), new CanSendRecord(),
new SetGroupWholeBan(), new CanSendImage(),
new SetGroupBan(), new GetStatus(),
new SetGroupKick(), new SetGroupWholeBan(),
new SetGroupAdmin(), new SetGroupBan(),
new SetGroupName(), new SetGroupKick(),
new SetGroupCard(), new SetGroupAdmin(),
new GetImage(), new SetGroupName(),
new GetRecord(), new SetGroupCard(),
new SetMsgEmojiLike(), new GetImage(),
// new CleanCache(), new GetRecord(),
new GetCookies(), new SetMsgEmojiLike(),
// // new CleanCache(),
new SetOnlineStatus(), new GetCookies(),
new GetRobotUinRange(), //
new GetFriendWithCategory(), new SetOnlineStatus(),
//以下为go-cqhttp api new GetRobotUinRange(),
new GetOnlineClient(), new GetFriendWithCategory(),
new OCRImage(), //以下为go-cqhttp api
new IOCRImage(), new GetOnlineClient(),
new GetGroupHonorInfo(), new OCRImage(),
new SendGroupNotice(), new IOCRImage(),
new GetGroupNotice(), new GetGroupHonorInfo(),
new GetGroupEssence(), new SendGroupNotice(),
new GoCQHTTPSendForwardMsg(), new GetGroupNotice(),
new GoCQHTTPSendGroupForwardMsg(), new GetGroupEssence(),
new GoCQHTTPSendPrivateForwardMsg(), new GoCQHTTPSendForwardMsg(),
new GoCQHTTPGetStrangerInfo(), new GoCQHTTPSendGroupForwardMsg(),
new GoCQHTTPDownloadFile(), new GoCQHTTPSendPrivateForwardMsg(),
new GetGuildList(), new GoCQHTTPGetStrangerInfo(),
new GoCQHTTPMarkMsgAsRead(), new GoCQHTTPDownloadFile(),
new GoCQHTTPUploadGroupFile(), new GetGuildList(),
new GoCQHTTPGetGroupMsgHistory(), new GoCQHTTPMarkMsgAsRead(),
new GoCQHTTGetForwardMsgAction(), new GoCQHTTPUploadGroupFile(),
new GetFriendMsgHistory(), new GoCQHTTPGetGroupMsgHistory(),
new GoCQHTTHandleQuickAction(), new GoCQHTTGetForwardMsgAction(),
new GetGroupSystemMsg() new GetFriendMsgHistory(),
]; new GoCQHTTHandleQuickAction(),
new GetGroupSystemMsg()
function initActionMap() { ];
const actionMap = new Map<string, BaseAction<any, any>>();
for (const action of actionHandlers) { function initActionMap() {
actionMap.set(action.actionName, action); const actionMap = new Map<string, BaseAction<any, any>>();
actionMap.set(action.actionName + '_async', action); for (const action of actionHandlers) {
actionMap.set(action.actionName + '_rate_limited', action); actionMap.set(action.actionName, action);
} actionMap.set(action.actionName + '_async', action);
actionMap.set(action.actionName + '_rate_limited', action);
return actionMap; }
}
return actionMap;
export const actionMap = initActionMap(); }
export const actionMap = initActionMap();

View File

@@ -1,85 +1,86 @@
export type BaseCheckResult = ValidCheckResult | InvalidCheckResult export type BaseCheckResult = ValidCheckResult | InvalidCheckResult
export interface ValidCheckResult { export interface ValidCheckResult {
valid: true valid: true
[k: string | number]: any [k: string | number]: any
} }
export interface InvalidCheckResult { export interface InvalidCheckResult {
valid: false valid: false
message: string message: string
[k: string | number]: any [k: string | number]: any
} }
export enum ActionName { export enum ActionName {
// 以下为扩展napcat扩展 // 以下为扩展napcat扩展
RebootNormol = 'reboot_normol',//无快速登录重新启动 RebootNormol = 'reboot_normol',//无快速登录重新启动
GetRobotUinRange = 'get_robot_uin_range', GetRobotUinRange = 'get_robot_uin_range',
SetOnlineStatus = 'set_online_status', SetOnlineStatus = 'set_online_status',
GetFriendsWithCategory = 'get_friends_with_category', GetFriendsWithCategory = 'get_friends_with_category',
GetGroupIgnoreAddRequest = 'get_group_ignore_add_request', GetGroupIgnoreAddRequest = 'get_group_ignore_add_request',
SetQQAvatar = 'set_qq_avatar', SetQQAvatar = 'set_qq_avatar',
GetConfig = 'get_config', GetConfig = 'get_config',
SetConfig = 'set_config', SetConfig = 'set_config',
Debug = 'debug', Debug = 'debug',
GetFile = 'get_file', GetFile = 'get_file',
ForwardFriendSingleMsg = 'forward_friend_single_msg', ForwardFriendSingleMsg = 'forward_friend_single_msg',
ForwardGroupSingleMsg = 'forward_group_single_msg', ForwardGroupSingleMsg = 'forward_group_single_msg',
// onebot 11 // onebot 11
Reboot = 'set_restart', Reboot = 'set_restart',
SendLike = 'send_like', SendLike = 'send_like',
GetLoginInfo = 'get_login_info', GetLoginInfo = 'get_login_info',
GetFriendList = 'get_friend_list', GetFriendList = 'get_friend_list',
GetGroupInfo = 'get_group_info', GetGroupInfo = 'get_group_info',
GetGroupList = 'get_group_list', GetGroupList = 'get_group_list',
GetGroupMemberInfo = 'get_group_member_info', GetGroupMemberInfo = 'get_group_member_info',
GetGroupMemberList = 'get_group_member_list', GetGroupMemberList = 'get_group_member_list',
GetMsg = 'get_msg', GetMsg = 'get_msg',
SendMsg = 'send_msg', SendMsg = 'send_msg',
SendGroupMsg = 'send_group_msg', SendGroupMsg = 'send_group_msg',
SendPrivateMsg = 'send_private_msg', SendPrivateMsg = 'send_private_msg',
DeleteMsg = 'delete_msg', DeleteMsg = 'delete_msg',
SetMsgEmojiLike = 'set_msg_emoji_like', SetMsgEmojiLike = 'set_msg_emoji_like',
SetGroupAddRequest = 'set_group_add_request', SetGroupAddRequest = 'set_group_add_request',
SetFriendAddRequest = 'set_friend_add_request', SetFriendAddRequest = 'set_friend_add_request',
SetGroupLeave = 'set_group_leave', SetGroupLeave = 'set_group_leave',
GetVersionInfo = 'get_version_info', GetVersionInfo = 'get_version_info',
GetStatus = 'get_status', GetStatus = 'get_status',
CanSendRecord = 'can_send_record', CanSendRecord = 'can_send_record',
CanSendImage = 'can_send_image', CanSendImage = 'can_send_image',
SetGroupKick = 'set_group_kick', SetGroupKick = 'set_group_kick',
SetGroupBan = 'set_group_ban', SetGroupBan = 'set_group_ban',
SetGroupWholeBan = 'set_group_whole_ban', SetGroupWholeBan = 'set_group_whole_ban',
SetGroupAdmin = 'set_group_admin', SetGroupAdmin = 'set_group_admin',
SetGroupCard = 'set_group_card', SetGroupCard = 'set_group_card',
SetGroupName = 'set_group_name', SetGroupName = 'set_group_name',
GetImage = 'get_image', GetImage = 'get_image',
GetRecord = 'get_record', GetRecord = 'get_record',
CleanCache = 'clean_cache', CleanCache = 'clean_cache',
GetCookies = 'get_cookies', GetCookies = 'get_cookies',
// 以下为go-cqhttp api // 以下为go-cqhttp api
GoCQHTTP_HandleQuickAction = '.handle_quick_operation', GoCQHTTP_HandleQuickAction = '.handle_quick_operation',
GetGroupHonorInfo = 'get_group_honor_info', GetGroupHonorInfo = 'get_group_honor_info',
GoCQHTTP_GetEssenceMsg = 'get_essence_msg_list', GoCQHTTP_GetEssenceMsg = 'get_essence_msg_list',
GoCQHTTP_SendGroupNotice = '_send_group_notice', GoCQHTTP_SendGroupNotice = '_send_group_notice',
GoCQHTTP_GetGroupNotice = '_get_group_notice', GoCQHTTP_GetGroupNotice = '_get_group_notice',
GoCQHTTP_SendForwardMsg = 'send_forward_msg', GoCQHTTP_SendForwardMsg = 'send_forward_msg',
GoCQHTTP_SendGroupForwardMsg = 'send_group_forward_msg', GoCQHTTP_SendGroupForwardMsg = 'send_group_forward_msg',
GoCQHTTP_SendPrivateForwardMsg = 'send_private_forward_msg', GoCQHTTP_SendPrivateForwardMsg = 'send_private_forward_msg',
GoCQHTTP_GetStrangerInfo = 'get_stranger_info', GoCQHTTP_GetStrangerInfo = 'get_stranger_info',
GoCQHTTP_MarkMsgAsRead = 'mark_msg_as_read', GoCQHTTP_MarkMsgAsRead = 'mark_msg_as_read',
GetGuildList = 'get_guild_list', GetGuildList = 'get_guild_list',
MarkPrivateMsgAsRead = 'mark_private_msg_as_read', MarkPrivateMsgAsRead = 'mark_private_msg_as_read',
MarkGroupMsgAsRead = 'mark_group_msg_as_read', MarkGroupMsgAsRead = 'mark_group_msg_as_read',
GoCQHTTP_UploadGroupFile = 'upload_group_file', GoCQHTTP_UploadGroupFile = 'upload_group_file',
GoCQHTTP_DownloadFile = 'download_file', GoCQHTTP_DownloadFile = 'download_file',
GoCQHTTP_GetGroupMsgHistory = 'get_group_msg_history', GoCQHTTP_GetGroupMsgHistory = 'get_group_msg_history',
GoCQHTTP_GetForwardMsg = 'get_forward_msg', GoCQHTTP_GetForwardMsg = 'get_forward_msg',
GetFriendMsgHistory = 'get_friend_msg_history', GetFriendMsgHistory = 'get_friend_msg_history',
GetGroupSystemMsg = 'get_group_system_msg', GetGroupSystemMsg = 'get_group_system_msg',
GetOnlineClient = "get_online_clients", GetOnlineClient = "get_online_clients",
OCRImage = "ocr_image", OCRImage = "ocr_image",
IOCRImage = ".ocr_image" IOCRImage = ".ocr_image",
} TranslateEnWordToZn = "translate_en2zh"
}

View File

@@ -1,476 +0,0 @@
const SettingList = (items, title, isCollapsible = false, direction = "column") => {
return `<setting-section ${title && !isCollapsible ? `data-title="${title}"` : ""}>
<setting-panel>
<setting-list ${direction ? `data-direction="${direction}"` : ""} ${isCollapsible ? "is-collapsible" : ""} ${title && isCollapsible ? `data-title="${title}"` : ""}>
${items.join("")}
</setting-list>
</setting-panel>
</setting-section>`;
};
const SettingItem = (title, subtitle, action, id, visible = true) => {
return `<setting-item ${id ? `id="${id}"` : ""} ${!visible ? "is-hidden" : ""}>
<div>
<setting-text>${title}</setting-text>
${subtitle ? `<setting-text data-type="secondary">${subtitle}</setting-text>` : ""}
</div>
${action ? `<div>${action}</div>` : ""}
</setting-item>`;
};
const SettingButton = (text, id, type = "secondary") => {
return `<setting-button ${type ? `data-type="${type}"` : ""} ${id ? `id="${id}"` : ""}>${text}</setting-button>`;
};
const SettingSwitch = (configKey, isActive = false, extraData) => {
return `<setting-switch
${configKey ? `data-config-key="${configKey}"` : ""}
${isActive ? "is-active" : ""}
${extraData ? Object.keys(extraData).map((key) => `data-${key}="${extraData[key]}"`) : ""}
>
</setting-switch>`;
};
const SettingOption = (text, value, isSelected = false) => {
return `<setting-option ${value ? `data-value="${value}"` : ""} ${isSelected ? "is-selected" : ""}>${text}</setting-option>`;
};
const SelectTemplate = document.createElement("template");
SelectTemplate.innerHTML = `<style>
.hidden { display: none !important; }
</style>
<div part="parent">
<div part="button">
<input type="text" placeholder="请选择" part="current-text" />
<svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" part="button-arrow">
<path d="M12 6.0001L8.00004 10L4 6" stroke="currentColor" stroke-linejoin="round"></path>
</svg>
</div>
<ul class="hidden" part="option-list"><slot></slot></ul>
</div>`;
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 `<ob-setting-select ${configKey ? `data-config-key="${configKey}"` : ""}>
${items.map((e, i) => {
return SettingOption(e.text, e.value, configKey && configValue ? configValue === e.value : i === 0);
}).join("")}
</ob-setting-select>`;
};
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(
[
"<div>",
`<setting-section id="napcat-error">
<setting-panel><pre><code></code></pre></setting-panel>
</setting-section>`,
SettingList([
SettingItem(
'<span id="napcat-update-title">Napcat</span>',
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,
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.http.port" type="number" min="1" max="65534" value="${ob11Config.http.port}" placeholder="${ob11Config.http.port}" /></div>`,
"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"
})
),
`<div class="config-host-list" id="config-ob11-http-postUrls" ${ob11Config.http.enablePost ? "" : "is-hidden"}>
<setting-item data-direction="row">
<div>
<setting-text>HTTP 事件上报密钥</setting-text>
</div>
<div class="q-input">
<input id="config-ob11-http-secret" class="q-input__inner" data-config-key="ob11.http.secret" type="text" value="${ob11Config.http.secret}" placeholder="未设置" />
</div>
</setting-item>
<setting-item data-direction="row">
<div>
<setting-text>HTTP 事件上报地址</setting-text>
</div>
<setting-button id="config-ob11-http-postUrls-add" data-type="primary">添加</setting-button>
</setting-item>
<div id="config-ob11-http-postUrls-list"></div>
</div>`,
SettingItem(
"启用正向 WebSocket 服务",
void 0,
SettingSwitch("ob11.ws.enable", ob11Config.ws.enable, {
"control-display-id": "config-ob11-ws-port"
})
),
SettingItem(
"正向 WebSocket 服务监听端口",
void 0,
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.ws.port" type="number" min="1" max="65534" value="${ob11Config.ws.port}" placeholder="${ob11Config.ws.port}" /></div>`,
"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"
})
),
`<div class="config-host-list" id="config-ob11-reverseWs-urls" ${ob11Config.reverseWs.enable ? "" : "is-hidden"}>
<setting-item data-direction="row">
<div>
<setting-text>反向 WebSocket 监听地址</setting-text>
</div>
<setting-button id="config-ob11-reverseWs-urls-add" data-type="primary">添加</setting-button>
</setting-item>
<div id="config-ob11-reverseWs-urls-list"></div>
</div>`,
SettingItem(
" WebSocket 服务心跳间隔",
"控制每隔多久发送一个心跳包,单位为毫秒",
`<div class="q-input"><input class="q-input__inner" data-config-key="ob11.heartInterval" type="number" min="1000" value="${ob11Config.heartInterval}" placeholder="${ob11Config.heartInterval}" /></div>`
),
SettingItem(
"Access token",
void 0,
`<div class="q-input" style="width:210px;"><input class="q-input__inner" data-config-key="ob11.token" type="text" value="${ob11Config.token}" placeholder="未设置" /></div>`
),
SettingItem(
"新消息上报格式",
`如客户端无特殊需求推荐保持默认设置,两者的详细差异可参考 <a href="javascript:LiteLoader.api.openExternal('https://github.com/botuniverse/onebot-11/tree/master/message#readme');">OneBot v11 文档</a>`,
SettingSelect(
[
{ text: "消息段", value: "array" },
{ text: "CQ码", value: "string" }
],
"ob11.messagePostFormat",
ob11Config.messagePostFormat
)
),
SettingItem(
"音乐卡片签名地址",
void 0,
`<div class="q-input" style="width:210px;"><input class="q-input__inner" data-config-key="ob11.musicSignUrl" type="text" value="${ob11Config.musicSignUrl}" placeholder="未设置" /></div>`,
"ob11.musicSignUrl"
),
SettingItem(
"启用本地进群时间与发言时间记录",
void 0,
SettingSwitch("ob11.GroupLocalTime.Record", ob11Config.GroupLocalTime.Record, {
"control-display-id": "config-ob11-GroupLocalTime-RecordList"
})
),
`<div class="config-host-list" id="config-ob11-GroupLocalTime-RecordList" ${ob11Config.GroupLocalTime.Record ? "" : "is-hidden"}>
<setting-item data-direction="row">
<div>
<setting-text>群列表</setting-text>
</div>
<setting-button id="config-ob11-GroupLocalTime-RecordList-add" data-type="primary">添加</setting-button>
</setting-item>
<div id="config-ob11-GroupLocalTime-RecordList-list"></div>
</div>`,
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")
)
]),
"</div>"
].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 };

View File

@@ -420,7 +420,7 @@ async function onSettingWindowCreated(view) {
doc.querySelector("#config-ob11-GroupLocalTime-RecordList-add")?.addEventListener( doc.querySelector("#config-ob11-GroupLocalTime-RecordList-add")?.addEventListener(
"click", "click",
() => addReverseHost("GroupLocalTime.RecordList", document, { () => addReverseHost("GroupLocalTime.RecordList", document, {
placeholder: "ws://127.0.0.1:5140/onebot" placeholder: "此处填写群号 -1为全部"
}) })
); );
doc.querySelector("#config-ffmpeg-select")?.addEventListener("click", () => { doc.querySelector("#config-ffmpeg-select")?.addEventListener("click", () => {