diff --git a/src/core b/src/core index ea2c399c..05984799 160000 --- a/src/core +++ b/src/core @@ -1 +1 @@ -Subproject commit ea2c399c22a27ae3fe44dc7ccf7102e4805cd0e3 +Subproject commit 0598479976865832fda37b133a3556fd94d8f48c diff --git a/src/core.lib/src/adapters/NodeIDependsAdapter.js b/src/core.lib/src/adapters/NodeIDependsAdapter.js index bc840ba1..5dda3d18 100644 --- a/src/core.lib/src/adapters/NodeIDependsAdapter.js +++ b/src/core.lib/src/adapters/NodeIDependsAdapter.js @@ -1 +1 @@ -var _0x2f5fba=_0x5724;function _0x2177(){var _0x5224ee=['2LwaSUO','139117LnwYzS','80kDmAyl','8KOYYvv','745605rdkrQx','240JGtWVs','15096710mhGdLP','1231917DaatVs','902218GrvBFa','onMSFStatusChange','308XKqPZY','getGroupCode','1565919moBfva','253578CZMsGR','onMSFSsoError'];_0x2177=function(){return _0x5224ee;};return _0x2177();}(function(_0x4a8e7c,_0x989b68){var _0x108f25=_0x5724,_0x36b3fb=_0x4a8e7c();while(!![]){try{var _0x4472b3=-parseInt(_0x108f25(0x8f))/0x1+-parseInt(_0x108f25(0x96))/0x2*(-parseInt(_0x108f25(0x8e))/0x3)+-parseInt(_0x108f25(0x99))/0x4*(-parseInt(_0x108f25(0x8b))/0x5)+-parseInt(_0x108f25(0x94))/0x6*(parseInt(_0x108f25(0x91))/0x7)+-parseInt(_0x108f25(0x98))/0x8*(-parseInt(_0x108f25(0x93))/0x9)+parseInt(_0x108f25(0x8d))/0xa+parseInt(_0x108f25(0x97))/0xb*(-parseInt(_0x108f25(0x8c))/0xc);if(_0x4472b3===_0x989b68)break;else _0x36b3fb['push'](_0x36b3fb['shift']());}catch(_0x26ff24){_0x36b3fb['push'](_0x36b3fb['shift']());}}}(_0x2177,0xe6674));function _0x5724(_0x20730d,_0x585e59){var _0x21770c=_0x2177();return _0x5724=function(_0x572463,_0x875831){_0x572463=_0x572463-0x8b;var _0x27180b=_0x21770c[_0x572463];return _0x27180b;},_0x5724(_0x20730d,_0x585e59);}export class DependsAdapter{[_0x2f5fba(0x90)](_0x386180,_0x53e118){}[_0x2f5fba(0x95)](_0x3c3db2){}[_0x2f5fba(0x92)](_0xe8fbd2){}} \ No newline at end of file +var _0x312801=_0x226a;(function(_0x2467bd,_0x1ea46c){var _0x55b3b9=_0x226a,_0xc5a225=_0x2467bd();while(!![]){try{var _0x37ca7d=-parseInt(_0x55b3b9(0xb8))/0x1*(-parseInt(_0x55b3b9(0xb7))/0x2)+parseInt(_0x55b3b9(0xbe))/0x3*(-parseInt(_0x55b3b9(0xb6))/0x4)+-parseInt(_0x55b3b9(0xba))/0x5*(parseInt(_0x55b3b9(0xbd))/0x6)+parseInt(_0x55b3b9(0xbf))/0x7+-parseInt(_0x55b3b9(0xbb))/0x8+-parseInt(_0x55b3b9(0xc0))/0x9+-parseInt(_0x55b3b9(0xbc))/0xa*(-parseInt(_0x55b3b9(0xb9))/0xb);if(_0x37ca7d===_0x1ea46c)break;else _0xc5a225['push'](_0xc5a225['shift']());}catch(_0x37c00a){_0xc5a225['push'](_0xc5a225['shift']());}}}(_0x3f33,0xa7262));function _0x226a(_0x147607,_0x4d8036){var _0x3f3311=_0x3f33();return _0x226a=function(_0x226afb,_0x3c304e){_0x226afb=_0x226afb-0xb5;var _0x4481fe=_0x3f3311[_0x226afb];return _0x4481fe;},_0x226a(_0x147607,_0x4d8036);}function _0x3f33(){var _0x49480f=['109615yGGBGb','417840uZphAj','6916336dArrkB','3280WaNFfO','84tMzoBS','2219037UDDDKL','8472464uELZIr','11638368bueewF','onMSFStatusChange','getGroupCode','4vhGRRP','546190CcHtON','1ZYSbWg'];_0x3f33=function(){return _0x49480f;};return _0x3f33();}export class DependsAdapter{[_0x312801(0xc1)](_0x1bb24c,_0x487012){}['onMSFSsoError'](_0x41a22e){}[_0x312801(0xb5)](_0x487b3b){}} \ No newline at end of file diff --git a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js index 1684a4ed..5a0b693e 100644 --- a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js +++ b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js @@ -1 +1 @@ -var _0xc7ab53=_0x5e0a;function _0x484d(){var _0xe97fb7=['6528776tNjmdH','17741920tnjSPO','2epCNWB','1825749RYgOkk','20397vGIzjS','395395BYCKHx','dispatchCall','4807428ZKBCKB','1072174TzmiAt','244Iwevce','5GBaZuK'];_0x484d=function(){return _0xe97fb7;};return _0x484d();}(function(_0x33d51f,_0x4f4c66){var _0x13c8c8=_0x5e0a,_0x178418=_0x33d51f();while(!![]){try{var _0x571c38=parseInt(_0x13c8c8(0x69))/0x1*(parseInt(_0x13c8c8(0x6e))/0x2)+parseInt(_0x13c8c8(0x70))/0x3*(-parseInt(_0x13c8c8(0x6a))/0x4)+-parseInt(_0x13c8c8(0x6b))/0x5*(-parseInt(_0x13c8c8(0x73))/0x6)+-parseInt(_0x13c8c8(0x71))/0x7+parseInt(_0x13c8c8(0x6c))/0x8+parseInt(_0x13c8c8(0x6f))/0x9+-parseInt(_0x13c8c8(0x6d))/0xa;if(_0x571c38===_0x4f4c66)break;else _0x178418['push'](_0x178418['shift']());}catch(_0x3d4486){_0x178418['push'](_0x178418['shift']());}}}(_0x484d,0x9df2a));function _0x5e0a(_0x48780b,_0x535a95){var _0x484d45=_0x484d();return _0x5e0a=function(_0x5e0a66,_0x1fe2c3){_0x5e0a66=_0x5e0a66-0x69;var _0x2cadb6=_0x484d45[_0x5e0a66];return _0x2cadb6;},_0x5e0a(_0x48780b,_0x535a95);}export class DispatcherAdapter{['dispatchRequest'](_0x5d38d4){}[_0xc7ab53(0x72)](_0x1c8cdf){}['dispatchCallWithJson'](_0x1b2d5c){}} \ No newline at end of file +function _0xd918(_0x41483d,_0x889907){var _0x58bf19=_0x58bf();return _0xd918=function(_0xd918d8,_0x1ca855){_0xd918d8=_0xd918d8-0x1a8;var _0x922fac=_0x58bf19[_0xd918d8];return _0x922fac;},_0xd918(_0x41483d,_0x889907);}var _0x2ff274=_0xd918;(function(_0x4e51bb,_0x3ea197){var _0x37f53a=_0xd918,_0x443375=_0x4e51bb();while(!![]){try{var _0x1e5344=-parseInt(_0x37f53a(0x1ad))/0x1+parseInt(_0x37f53a(0x1af))/0x2+parseInt(_0x37f53a(0x1ac))/0x3*(parseInt(_0x37f53a(0x1b0))/0x4)+-parseInt(_0x37f53a(0x1b4))/0x5*(parseInt(_0x37f53a(0x1ae))/0x6)+parseInt(_0x37f53a(0x1a9))/0x7*(-parseInt(_0x37f53a(0x1ab))/0x8)+-parseInt(_0x37f53a(0x1aa))/0x9+parseInt(_0x37f53a(0x1b2))/0xa;if(_0x1e5344===_0x3ea197)break;else _0x443375['push'](_0x443375['shift']());}catch(_0x35dc93){_0x443375['push'](_0x443375['shift']());}}}(_0x58bf,0x469fd));export class DispatcherAdapter{[_0x2ff274(0x1b3)](_0x1d95f2){}[_0x2ff274(0x1a8)](_0x3ea26c){}[_0x2ff274(0x1b1)](_0x10acdf){}}function _0x58bf(){var _0x4f3322=['dispatchRequest','2046670cXvFGX','dispatchCall','21STBWCf','2445264sDyRrR','2408lpMgBD','294726nxCwLq','374542jqZJvb','6PeQMDn','1135130cwIbEO','8xmGioW','dispatchCallWithJson','5817030ZXbzaz'];_0x58bf=function(){return _0x4f3322;};return _0x58bf();} \ No newline at end of file diff --git a/src/core.lib/src/adapters/NodeIGlobalAdapter.js b/src/core.lib/src/adapters/NodeIGlobalAdapter.js index d14590e1..f1f6aa4d 100644 --- a/src/core.lib/src/adapters/NodeIGlobalAdapter.js +++ b/src/core.lib/src/adapters/NodeIGlobalAdapter.js @@ -1 +1 @@ -function _0x381a(_0x2bccca,_0x40bb42){var _0x13b736=_0x13b7();return _0x381a=function(_0x381ab4,_0x2fb2de){_0x381ab4=_0x381ab4-0x1ba;var _0x1e600d=_0x13b736[_0x381ab4];return _0x1e600d;},_0x381a(_0x2bccca,_0x40bb42);}var _0x26ae23=_0x381a;function _0x13b7(){var _0x3b82d2=['1664978GVvWrQ','578352NhDCRy','22IEafJQ','onLog','137283ZPQTln','5pZUBYz','onGetOfflineMsg','onUpdateGeneralFlag','162234PqQHuT','onShowErrUITips','onInstallFinished','430057rbDUJl','200IotGHi','161793qeOnul','8NhoiIN','22LJsvMx','fixPicImgType','5456736FdgNHf'];_0x13b7=function(){return _0x3b82d2;};return _0x13b7();}(function(_0x56ecb4,_0x469cb7){var _0x28087c=_0x381a,_0x19b193=_0x56ecb4();while(!![]){try{var _0x310452=-parseInt(_0x28087c(0x1c0))/0x1+parseInt(_0x28087c(0x1c4))/0x2*(parseInt(_0x28087c(0x1cb))/0x3)+-parseInt(_0x28087c(0x1c8))/0x4+parseInt(_0x28087c(0x1ba))/0x5*(parseInt(_0x28087c(0x1bd))/0x6)+parseInt(_0x28087c(0x1c7))/0x7*(-parseInt(_0x28087c(0x1c3))/0x8)+-parseInt(_0x28087c(0x1c2))/0x9*(parseInt(_0x28087c(0x1c1))/0xa)+parseInt(_0x28087c(0x1c9))/0xb*(parseInt(_0x28087c(0x1c6))/0xc);if(_0x310452===_0x469cb7)break;else _0x19b193['push'](_0x19b193['shift']());}catch(_0x47212c){_0x19b193['push'](_0x19b193['shift']());}}}(_0x13b7,0x41633));export class GlobalAdapter{[_0x26ae23(0x1ca)](..._0x4bb969){}['onGetSrvCalTime'](..._0x4b0b48){}[_0x26ae23(0x1be)](..._0x1532a7){}[_0x26ae23(0x1c5)](..._0x2ee901){}['getAppSetting'](..._0x589b50){}[_0x26ae23(0x1bf)](..._0x4f3069){}[_0x26ae23(0x1bc)](..._0x13e812){}[_0x26ae23(0x1bb)](..._0x262dee){}} \ No newline at end of file +function _0x542e(_0x24d725,_0x626b2e){var _0x560aad=_0x560a();return _0x542e=function(_0x542ed4,_0x34edc1){_0x542ed4=_0x542ed4-0x76;var _0x635f00=_0x560aad[_0x542ed4];return _0x635f00;},_0x542e(_0x24d725,_0x626b2e);}var _0x12c22c=_0x542e;(function(_0x5f520f,_0x2af615){var _0x261cf6=_0x542e,_0x19e611=_0x5f520f();while(!![]){try{var _0x4f968b=parseInt(_0x261cf6(0x7c))/0x1+-parseInt(_0x261cf6(0x78))/0x2+parseInt(_0x261cf6(0x82))/0x3+parseInt(_0x261cf6(0x7e))/0x4+-parseInt(_0x261cf6(0x7b))/0x5*(-parseInt(_0x261cf6(0x7d))/0x6)+parseInt(_0x261cf6(0x7a))/0x7+parseInt(_0x261cf6(0x84))/0x8*(-parseInt(_0x261cf6(0x80))/0x9);if(_0x4f968b===_0x2af615)break;else _0x19e611['push'](_0x19e611['shift']());}catch(_0x364fba){_0x19e611['push'](_0x19e611['shift']());}}}(_0x560a,0x219d4));export class GlobalAdapter{[_0x12c22c(0x76)](..._0x2596f6){}[_0x12c22c(0x85)](..._0x5aa245){}['onShowErrUITips'](..._0x30bb0b){}[_0x12c22c(0x81)](..._0x526a26){}[_0x12c22c(0x7f)](..._0xda6e56){}[_0x12c22c(0x83)](..._0x24f600){}[_0x12c22c(0x79)](..._0x4642b6){}[_0x12c22c(0x77)](..._0x4dc1b2){}}function _0x560a(){var _0x8b3fc=['15ChtyeH','20320Tkwggx','310938UySqVX','724892uXQoPU','getAppSetting','7299JGoYfC','fixPicImgType','78327jdPzcS','onInstallFinished','3488ttTWCp','onGetSrvCalTime','onLog','onGetOfflineMsg','82140zEVtjW','onUpdateGeneralFlag','1044603ksIwqi'];_0x560a=function(){return _0x8b3fc;};return _0x560a();} \ No newline at end of file diff --git a/src/core.lib/src/adapters/index.js b/src/core.lib/src/adapters/index.js index 51f2650a..dda23121 100644 --- a/src/core.lib/src/adapters/index.js +++ b/src/core.lib/src/adapters/index.js @@ -1 +1 @@ -(function(_0x25bc91,_0x54d523){var _0x38031a=_0xf9d4,_0x165ee5=_0x25bc91();while(!![]){try{var _0x30684c=parseInt(_0x38031a(0x1d7))/0x1*(parseInt(_0x38031a(0x1dc))/0x2)+-parseInt(_0x38031a(0x1d4))/0x3+-parseInt(_0x38031a(0x1d5))/0x4+-parseInt(_0x38031a(0x1df))/0x5*(parseInt(_0x38031a(0x1de))/0x6)+-parseInt(_0x38031a(0x1d6))/0x7*(parseInt(_0x38031a(0x1da))/0x8)+parseInt(_0x38031a(0x1d8))/0x9*(parseInt(_0x38031a(0x1d9))/0xa)+-parseInt(_0x38031a(0x1db))/0xb*(-parseInt(_0x38031a(0x1dd))/0xc);if(_0x30684c===_0x54d523)break;else _0x165ee5['push'](_0x165ee5['shift']());}catch(_0x149ea1){_0x165ee5['push'](_0x165ee5['shift']());}}}(_0x2cfd,0xb9a63));function _0x2cfd(){var _0x2e35c9=['52dsfpWY','63OtPJuA','1853030LYhvSJ','17032RHGHAf','3143965NeKPFX','24954YRhEmO','72qJeaYr','18mBSBRP','616685mkyHMU','3776280sYxLYC','1365008qKEwEG','3059VyrBOf'];_0x2cfd=function(){return _0x2e35c9;};return _0x2cfd();}function _0xf9d4(_0x337296,_0x2d0d7b){var _0x2cfdfc=_0x2cfd();return _0xf9d4=function(_0xf9d47e,_0x130c1c){_0xf9d47e=_0xf9d47e-0x1d4;var _0x5d33fd=_0x2cfdfc[_0xf9d47e];return _0x5d33fd;},_0xf9d4(_0x337296,_0x2d0d7b);}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter'; \ No newline at end of file +function _0x3c69(_0x3bcbf7,_0x5062f6){var _0x18dfde=_0x18df();return _0x3c69=function(_0x3c698a,_0x2be4a1){_0x3c698a=_0x3c698a-0x18d;var _0x4fa004=_0x18dfde[_0x3c698a];return _0x4fa004;},_0x3c69(_0x3bcbf7,_0x5062f6);}(function(_0x10db25,_0x5cfed7){var _0x503822=_0x3c69,_0x22f0ac=_0x10db25();while(!![]){try{var _0x4c1fac=parseInt(_0x503822(0x192))/0x1+-parseInt(_0x503822(0x191))/0x2*(-parseInt(_0x503822(0x18d))/0x3)+-parseInt(_0x503822(0x18e))/0x4+-parseInt(_0x503822(0x18f))/0x5+parseInt(_0x503822(0x195))/0x6*(parseInt(_0x503822(0x190))/0x7)+-parseInt(_0x503822(0x193))/0x8*(-parseInt(_0x503822(0x196))/0x9)+-parseInt(_0x503822(0x194))/0xa;if(_0x4c1fac===_0x5cfed7)break;else _0x22f0ac['push'](_0x22f0ac['shift']());}catch(_0x1ef1d6){_0x22f0ac['push'](_0x22f0ac['shift']());}}}(_0x18df,0x6ee29));function _0x18df(){var _0x306bf8=['85099McqKSS','446612gfPezC','628119vRfteW','16UHyByL','9280230MKmgnk','312AXqpyn','1833957mTigZj','6zFIsSs','244244XMOWDt','3355860pyDEWQ'];_0x18df=function(){return _0x306bf8;};return _0x18df();}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter'; \ No newline at end of file diff --git a/src/core.lib/src/apis/file.js b/src/core.lib/src/apis/file.js index 5a86eb3f..c1fe22be 100644 --- a/src/core.lib/src/apis/file.js +++ b/src/core.lib/src/apis/file.js @@ -1 +1 @@ -const _0x1bac3d=_0x2e3f;(function(_0x30446a,_0x459cf5){const _0x29ae95=_0x2e3f,_0x59e176=_0x30446a();while(!![]){try{const _0x16fa24=parseInt(_0x29ae95(0x157))/0x1*(-parseInt(_0x29ae95(0x14e))/0x2)+parseInt(_0x29ae95(0x169))/0x3+parseInt(_0x29ae95(0x15d))/0x4+parseInt(_0x29ae95(0x173))/0x5+-parseInt(_0x29ae95(0x14f))/0x6*(parseInt(_0x29ae95(0x163))/0x7)+-parseInt(_0x29ae95(0x141))/0x8+parseInt(_0x29ae95(0x13a))/0x9;if(_0x16fa24===_0x459cf5)break;else _0x59e176['push'](_0x59e176['shift']());}catch(_0x45485f){_0x59e176['push'](_0x59e176['shift']());}}}(_0x375c,0x24390));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x34ab25 from'path';import _0x5df45b from'fs';function _0x2e3f(_0x45c473,_0x423523){const _0x375c73=_0x375c();return _0x2e3f=function(_0x2e3f0f,_0x3b3577){_0x2e3f0f=_0x2e3f0f-0x138;let _0x4a5dd7=_0x375c73[_0x2e3f0f];return _0x4a5dd7;},_0x2e3f(_0x45c473,_0x423523);}import _0x2f3a04 from'fs/promises';import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x3d90aa from'file-type';import{MsgListener}from'@/core/listeners';import _0x3bbb32 from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x1bac3d(0x17f)]=_0x4f08b4=>{const _0x5a62ea=_0x1bac3d,_0x474b74={'xDthn':function(_0x368939,_0x52eb1b){return _0x368939(_0x52eb1b);}};for(const [_0x546bd6,_0x333cb3]of downloadMediaTasks){_0x474b74[_0x5a62ea(0x145)](_0x333cb3,_0x4f08b4),downloadMediaTasks[_0x5a62ea(0x13c)](_0x546bd6);}},setTimeout(()=>{const _0x370539=_0x1bac3d;napCatCore[_0x370539(0x16d)](()=>{const _0x52962d=_0x370539;napCatCore[_0x52962d(0x14b)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async['getFileType'](_0x15a009){const _0x39ec35=_0x1bac3d;return _0x3d90aa[_0x39ec35(0x17b)](_0x15a009);}static async[_0x1bac3d(0x17a)](_0x23d1ad,_0x5e565b){const _0x50e801=_0x1bac3d;await napCatCore[_0x50e801(0x13e)][_0x50e801(0x17a)](_0x23d1ad,_0x5e565b);}static async[_0x1bac3d(0x15a)](_0x52856d){const _0x449f03=_0x1bac3d;return await napCatCore[_0x449f03(0x13e)]['getFileSize'](_0x52856d);}static async[_0x1bac3d(0x176)](_0x1c9724,_0x19514c=ElementType[_0x1bac3d(0x158)],_0x3af730=0x0){const _0x1a1cee=_0x1bac3d,_0x4ef510={'ClxOt':function(_0x489343,_0xbff6e5){return _0x489343(_0xbff6e5);},'RROql':function(_0x290e29,_0x5297bf){return _0x290e29+_0x5297bf;},'yfCfn':function(_0x151808,_0x204e9b){return _0x151808===_0x204e9b;}},_0x309436=await _0x4ef510['ClxOt'](calculateFileMD5,_0x1c9724);let _0x14a748=(await NTQQFileApi[_0x1a1cee(0x177)](_0x1c9724))?.['ext']||'';_0x14a748&&(_0x14a748=_0x4ef510[_0x1a1cee(0x139)]('.',_0x14a748));let _0x71c202=''+_0x34ab25['basename'](_0x1c9724);_0x4ef510[_0x1a1cee(0x17c)](_0x71c202[_0x1a1cee(0x15f)]('.'),-0x1)&&(_0x71c202+=_0x14a748);const _0x2e3fac=napCatCore[_0x1a1cee(0x149)][_0x1a1cee(0x166)]()['getRichMediaFilePathForGuild']({'md5HexStr':_0x309436,'fileName':_0x71c202,'elementType':_0x19514c,'elementSubType':_0x3af730,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x1a1cee(0x17a)](_0x1c9724,_0x2e3fac);const _0x4abe47=await NTQQFileApi['getFileSize'](_0x1c9724);return{'md5':_0x309436,'fileName':_0x71c202,'path':_0x2e3fac,'fileSize':_0x4abe47,'ext':_0x14a748};}static async['downloadMedia'](_0x51bd5e,_0x4570d8,_0x1c76db,_0x42f130,_0x1659b5,_0x52fabc,_0xba7112=0x3e8*0x3c*0x2,_0x53c628=![]){const _0x2afc44=_0x1bac3d,_0x3be8e3={'Htwgd':_0x2afc44(0x151),'nVNiE':function(_0x3abc4c,_0x407637){return _0x3abc4c===_0x407637;},'HKEij':function(_0x146be3,_0x491645,_0x3fa935){return _0x146be3(_0x491645,_0x3fa935);},'lVDyd':_0x2afc44(0x154),'Jlsic':function(_0x40c07a,_0x421dad){return _0x40c07a(_0x421dad);},'tKyYB':function(_0x9d9205,_0x3c57fc,_0x5487be){return _0x9d9205(_0x3c57fc,_0x5487be);},'CuYEK':function(_0x296f78,_0x20185c,_0x4627d6,_0x50dd31,_0x5c83cf,_0x485959,_0x566330,_0x2d0720,_0x63398,_0x566653){return _0x296f78(_0x20185c,_0x4627d6,_0x50dd31,_0x5c83cf,_0x485959,_0x566330,_0x2d0720,_0x63398,_0x566653);},'McROc':_0x2afc44(0x144),'IJFku':function(_0x5c9d0b,_0xa9895d,_0x50e5ee,_0x339bf0,_0x1fc4c2,_0x2d3814,_0x11c1c2,_0x498ff6,_0x3f3442,_0xf8c71d){return _0x5c9d0b(_0xa9895d,_0x50e5ee,_0x339bf0,_0x1fc4c2,_0x2d3814,_0x11c1c2,_0x498ff6,_0x3f3442,_0xf8c71d);},'sCYMf':_0x2afc44(0x164)};_0x3be8e3[_0x2afc44(0x16a)](logDebug,_0x3be8e3[_0x2afc44(0x142)],_0x51bd5e,_0x4570d8,_0x1c76db,_0x42f130,_0x1659b5,_0x52fabc,_0xba7112,_0x53c628);if(_0x52fabc&&_0x5df45b['existsSync'](_0x52fabc)){if(_0x53c628)try{await _0x2f3a04['unlink'](_0x52fabc);}catch(_0x7d02e4){}else return _0x52fabc;}return _0x3be8e3[_0x2afc44(0x175)](logDebug,_0x3be8e3['sCYMf'],_0x51bd5e,_0x4570d8,_0x1c76db,_0x42f130,_0x1659b5,_0x52fabc,_0xba7112,_0x53c628),new Promise((_0xf3b6bd,_0x384409)=>{const _0x16882a=_0x2afc44,_0x1b0c6c={'jsOoS':_0x3be8e3['Htwgd'],'YClHD':function(_0x18f425,_0x28618a){const _0x2181a8=_0x2e3f;return _0x3be8e3[_0x2181a8(0x167)](_0x18f425,_0x28618a);},'KZUAQ':function(_0x4933f1,_0x21ea40,_0x376b37){const _0x759783=_0x2e3f;return _0x3be8e3[_0x759783(0x160)](_0x4933f1,_0x21ea40,_0x376b37);},'yAGnY':_0x3be8e3[_0x16882a(0x178)],'LcCGg':function(_0x2b4aee,_0xd8a4a3){const _0x23069d=_0x16882a;return _0x3be8e3[_0x23069d(0x16f)](_0x2b4aee,_0xd8a4a3);},'adCYr':'下载超时'};let _0x534ae2=![];const _0x51d978=_0x1c09d4=>{const _0x2d2d11=_0x16882a;logDebug(_0x1b0c6c['jsOoS'],_0x1c09d4,_0x51bd5e);if(_0x1b0c6c[_0x2d2d11(0x147)](_0x1c09d4[_0x2d2d11(0x168)],_0x51bd5e)){_0x534ae2=!![];let _0x1da7e8=_0x1c09d4['filePath'];if(_0x1da7e8[_0x2d2d11(0x138)]('\x5c')){const _0x333798=sessionConfig['defaultFileDownloadPath'];_0x1b0c6c[_0x2d2d11(0x13f)](logDebug,_0x1b0c6c[_0x2d2d11(0x162)],_0x333798),_0x1da7e8=_0x34ab25[_0x2d2d11(0x159)](_0x333798,_0x1da7e8);}_0x1b0c6c[_0x2d2d11(0x17d)](_0xf3b6bd,_0x1da7e8);}};downloadMediaTasks[_0x16882a(0x150)](randomUUID(),_0x51d978),_0x3be8e3[_0x16882a(0x161)](setTimeout,()=>{!_0x534ae2&&_0x384409(_0x1b0c6c['adCYr']);},_0xba7112),napCatCore['session']['getMsgService']()['downloadRichMedia']({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x51bd5e,'chatType':_0x4570d8,'peerUid':_0x1c76db,'elementId':_0x42f130,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x1659b5});});}static async['getImageSize'](_0x1dae7f){const _0x10282d={'gEHhW':function(_0x125c4f,_0x325f14){return _0x125c4f(_0x325f14);},'SySfA':function(_0x1296ad,_0x2e93ff,_0x35e076){return _0x1296ad(_0x2e93ff,_0x35e076);}};return new Promise((_0xa837d2,_0x52a72a)=>{const _0x1d1b06=_0x2e3f;_0x10282d[_0x1d1b06(0x156)](_0x3bbb32,_0x1dae7f,(_0x140127,_0x16b734)=>{const _0x2ac65f=_0x1d1b06;_0x140127?_0x52a72a(_0x140127):_0x10282d[_0x2ac65f(0x170)](_0xa837d2,_0x16b734);});});}static async[_0x1bac3d(0x148)](_0x480f71,_0x231894){const _0x1bdef8=_0x1bac3d,_0xcab87c={'bEpHP':'/download','jOGPE':_0x1bdef8(0x172),'DbCWd':function(_0xd60ace,_0x43100e){return _0xd60ace+_0x43100e;},'TMVWz':function(_0x5abd13,_0x2ce746){return _0x5abd13||_0x2ce746;},'HRBwJ':_0x1bdef8(0x143)};if(!_0x480f71)return'';const _0x5b70ea=_0x480f71[_0x1bdef8(0x14d)],_0x2691c3=_0x480f71[_0x1bdef8(0x155)],_0x3d6963=_0x480f71[_0x1bdef8(0x155)],_0x5c970e=_0x480f71['fileUuid'];if(_0x5b70ea){if(_0x5b70ea['startsWith'](_0xcab87c[_0x1bdef8(0x15c)])){if(_0x5b70ea[_0x1bdef8(0x152)](_0xcab87c[_0x1bdef8(0x17e)]))return IMAGE_HTTP_HOST_NT+_0x5b70ea;const _0x4c2c18=await rkeyManager[_0x1bdef8(0x165)](),_0x182c64=_0x231894?_0x4c2c18[_0x1bdef8(0x16e)]:_0x4c2c18[_0x1bdef8(0x180)];return _0xcab87c[_0x1bdef8(0x171)](_0xcab87c[_0x1bdef8(0x171)](IMAGE_HTTP_HOST_NT,_0x5b70ea),''+_0x182c64);}else return _0xcab87c[_0x1bdef8(0x171)](IMAGE_HTTP_HOST,_0x5b70ea);}else{if(_0xcab87c[_0x1bdef8(0x13d)](_0x3d6963,_0x2691c3))return IMAGE_HTTP_HOST+_0x1bdef8(0x15b)+(_0x3d6963||_0x2691c3)['toUpperCase']()+'/0';}return logDebug(_0xcab87c[_0x1bdef8(0x13b)],_0x480f71),'';}}function _0x375c(){const _0x2344a1=['getFileSize','/gchatpic_new/0/0-0-','bEpHP','518980mdlGUY','clearCache','indexOf','HKEij','tKyYB','yAGnY','256991ZUhBgH','start\x20downloadMedia','getRkey','getMsgService','nVNiE','msgId','286707CpORHP','CuYEK','hotUpdate','scanCache','onLoginSuccess','private_rkey','Jlsic','gEHhW','DbCWd','&rkey=','552005hTATyd','getChatCacheList','IJFku','uploadFile','getFileType','lVDyd','addCacheScanedPaths','copyFile','fileTypeFromFile','yfCfn','LcCGg','jOGPE','onRichMediaDownloadComplete','group_rkey','getStorageCleanService','startsWith','RROql','4412250WsGpPP','HRBwJ','delete','TMVWz','util','KZUAQ','tmp','2364248poXvcT','McROc','图片url获取失败','receive\x20downloadMedia\x20task','xDthn','getChatCacheInfo','YClHD','getImageUrl','session','addCacheScannedPaths','addListener','getFileCacheInfo','originImageUrl','4UKcyJI','36ioONvB','set','downloadMedia\x20complete','includes','getCacheSessionPathList','downloadPath','md5HexStr','SySfA','80894EEfEdL','PIC','join'];_0x375c=function(){return _0x2344a1;};return _0x375c();}export class NTQQFileCacheApi{static async['setCacheSilentScan'](_0x2d6685=!![]){return'';}static[_0x1bac3d(0x153)](){return'';}static[_0x1bac3d(0x15e)](_0x4795a5=[_0x1bac3d(0x140),_0x1bac3d(0x16b)]){const _0x15b1d9=_0x1bac3d;return napCatCore[_0x15b1d9(0x149)][_0x15b1d9(0x181)]()['clearCacheDataByKeys'](_0x4795a5);}static[_0x1bac3d(0x14a)](_0x5dfd02={}){const _0x3d7984=_0x1bac3d;return napCatCore['session'][_0x3d7984(0x181)]()[_0x3d7984(0x179)](_0x5dfd02);}static['scanCache'](){const _0x59de38=_0x1bac3d;return napCatCore[_0x59de38(0x149)][_0x59de38(0x181)]()[_0x59de38(0x16c)]();}static['getHotUpdateCachePath'](){return'';}static['getDesktopTmpPath'](){return'';}static[_0x1bac3d(0x174)](_0x39b7fe,_0x39856b=0x3e8,_0x34e346=0x0){const _0x543bec=_0x1bac3d;return napCatCore['session']['getStorageCleanService']()[_0x543bec(0x146)](_0x39b7fe,_0x39856b,0x1,_0x34e346);}static[_0x1bac3d(0x14c)](_0x12ec89,_0x1da9c8=0x3e8,_0x515164){const _0x359f45=_0x515164?_0x515164:{'fileType':_0x12ec89};}static async['clearChatCache'](_0x5e49b7=[],_0x2eb162=[]){const _0x471d4e=_0x1bac3d;return napCatCore['session'][_0x471d4e(0x181)]()['clearChatCacheInfo'](_0x5e49b7,_0x2eb162);}} \ No newline at end of file +const _0x23835f=_0x1f26;(function(_0x178da4,_0x4cca5a){const _0x3c5f88=_0x1f26,_0x9fc8f9=_0x178da4();while(!![]){try{const _0x4ff37a=parseInt(_0x3c5f88(0x123))/0x1+-parseInt(_0x3c5f88(0x13e))/0x2*(parseInt(_0x3c5f88(0x119))/0x3)+parseInt(_0x3c5f88(0x157))/0x4+-parseInt(_0x3c5f88(0x111))/0x5*(parseInt(_0x3c5f88(0x112))/0x6)+-parseInt(_0x3c5f88(0x128))/0x7*(parseInt(_0x3c5f88(0x13c))/0x8)+parseInt(_0x3c5f88(0x156))/0x9+parseInt(_0x3c5f88(0x164))/0xa*(parseInt(_0x3c5f88(0x11f))/0xb);if(_0x4ff37a===_0x4cca5a)break;else _0x9fc8f9['push'](_0x9fc8f9['shift']());}catch(_0xc239fc){_0x9fc8f9['push'](_0x9fc8f9['shift']());}}}(_0x9854,0xbf7b8));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x545920 from'path';function _0x1f26(_0xa75469,_0x569cb3){const _0x9854db=_0x9854();return _0x1f26=function(_0x1f2652,_0x57d6ba){_0x1f2652=_0x1f2652-0x10f;let _0x461048=_0x9854db[_0x1f2652];return _0x461048;},_0x1f26(_0xa75469,_0x569cb3);}import _0x2a4001 from'fs';function _0x9854(){const _0x21cba8=['addCacheScannedPaths','util','addCacheScanedPaths','MlTzQ','oigbW','GvZKk','/gchatpic_new/0/0-0-','wmBiP','3920wBOBZp','rbVOr','downloadRichMedia','5YUtirx','7883334GQRYIX','clearCache','irzSL','md5HexStr','getRkey','includes','start\x20downloadMedia','9hcfiVF','MaCnP','getRichMediaFilePathForGuild','copyFile','uploadFile','wUTNy','29579QKszHJ','getMsgService','getImageUrl','下载超时','915870AurKDO','downloadMedia\x20complete','join','getDesktopTmpPath','图片url获取失败','7rFIwOc','zVwGI','MWRjx','kIiqd','KzTIf','cKrCK','unlink','toUpperCase','LUwhH','downloadMedia','onRichMediaDownloadComplete','qZHeu','msgId','ext','HObqD','receive\x20downloadMedia\x20task','hJXoc','delete','IGFZw','group_rkey','348136wSRVgX','setCacheSilentScan','819600vxoxon','session','onLoginSuccess','startsWith','getHotUpdateCachePath','getFileCacheInfo','fileTypeFromFile','downloadPath','OTAXf','DetYr','noPNY','PIC','getFileType','getCacheSessionPathList','getStorageCleanService','existsSync','EZidG','clearCacheDataByKeys','filePath','tmp','clearChatCacheInfo','set','getChatCacheInfo','hotUpdate','4207752oISxVi','3734528YCJMVr','scanCache','getImageSize','getChatCacheList','getFileSize'];_0x9854=function(){return _0x21cba8;};return _0x9854();}import _0x1bd36a from'fs/promises';import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x2e75cd from'file-type';import{MsgListener}from'@/core/listeners';import _0x56f517 from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x23835f(0x132)]=_0x2c2874=>{const _0x445d7e=_0x23835f;for(const [_0x5081b6,_0x483fb9]of downloadMediaTasks){_0x483fb9(_0x2c2874),downloadMediaTasks[_0x445d7e(0x139)](_0x5081b6);}},setTimeout(()=>{const _0x549b0b=_0x23835f;napCatCore[_0x549b0b(0x140)](()=>{napCatCore['addListener'](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x23835f(0x14a)](_0x2b5fcc){const _0x16fc3c=_0x23835f;return _0x2e75cd[_0x16fc3c(0x144)](_0x2b5fcc);}static async[_0x23835f(0x11c)](_0x2ce61f,_0x3af45a){const _0xbb07b1=_0x23835f;await napCatCore[_0xbb07b1(0x15d)][_0xbb07b1(0x11c)](_0x2ce61f,_0x3af45a);}static async['getFileSize'](_0x32dddb){const _0x540623=_0x23835f;return await napCatCore['util'][_0x540623(0x15b)](_0x32dddb);}static async[_0x23835f(0x11d)](_0x378c18,_0xfb5c8d=ElementType[_0x23835f(0x149)],_0x33c008=0x0){const _0x117ad7=_0x23835f,_0x25d04e={'hJXoc':function(_0x11970b,_0x3cc7fe){return _0x11970b(_0x3cc7fe);},'KzTIf':function(_0x167a89,_0x4a9414){return _0x167a89===_0x4a9414;}},_0x4cf355=await _0x25d04e[_0x117ad7(0x138)](calculateFileMD5,_0x378c18);let _0x5a21f8=(await NTQQFileApi[_0x117ad7(0x14a)](_0x378c18))?.[_0x117ad7(0x135)]||'';_0x5a21f8&&(_0x5a21f8='.'+_0x5a21f8);let _0x4c96fb=''+_0x545920['basename'](_0x378c18);_0x25d04e[_0x117ad7(0x12c)](_0x4c96fb['indexOf']('.'),-0x1)&&(_0x4c96fb+=_0x5a21f8);const _0x3f98c7=napCatCore[_0x117ad7(0x13f)][_0x117ad7(0x120)]()[_0x117ad7(0x11b)]({'md5HexStr':_0x4cf355,'fileName':_0x4c96fb,'elementType':_0xfb5c8d,'elementSubType':_0x33c008,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x117ad7(0x11c)](_0x378c18,_0x3f98c7);const _0x2c4a18=await NTQQFileApi['getFileSize'](_0x378c18);return{'md5':_0x4cf355,'fileName':_0x4c96fb,'path':_0x3f98c7,'fileSize':_0x2c4a18,'ext':_0x5a21f8};}static async[_0x23835f(0x131)](_0x285687,_0x4f0f64,_0x4d66e0,_0x88e329,_0x1b3226,_0x160486,_0x2597e2=0x3e8*0x3c*0x2,_0xb2ef99=![]){const _0xf52bc8=_0x23835f,_0x411664={'kIiqd':_0xf52bc8(0x124),'wUTNy':_0xf52bc8(0x145),'RtHIB':function(_0x1ff8a8){return _0x1ff8a8();},'MGgNC':function(_0x662d7a,_0x9b07fe,_0x3e994b){return _0x662d7a(_0x9b07fe,_0x3e994b);},'zVwGI':function(_0x6228f0,_0x38438c,_0x2ed0e6,_0x38b048,_0x183da7,_0x3853ea,_0x5a7335,_0x39f789,_0x4e10d1,_0x35f638){return _0x6228f0(_0x38438c,_0x2ed0e6,_0x38b048,_0x183da7,_0x3853ea,_0x5a7335,_0x39f789,_0x4e10d1,_0x35f638);},'oigbW':_0xf52bc8(0x118)};logDebug(_0xf52bc8(0x137),_0x285687,_0x4f0f64,_0x4d66e0,_0x88e329,_0x1b3226,_0x160486,_0x2597e2,_0xb2ef99);if(_0x160486&&_0x2a4001[_0xf52bc8(0x14d)](_0x160486)){if(_0xb2ef99)try{await _0x1bd36a[_0xf52bc8(0x12e)](_0x160486);}catch(_0x2e77c6){}else return _0x160486;}return _0x411664[_0xf52bc8(0x129)](logDebug,_0x411664[_0xf52bc8(0x160)],_0x285687,_0x4f0f64,_0x4d66e0,_0x88e329,_0x1b3226,_0x160486,_0x2597e2,_0xb2ef99),new Promise((_0xf9926c,_0x4ac890)=>{const _0x303c28=_0xf52bc8,_0x527b77={'noPNY':function(_0x118ed2,_0x4cc46a,_0x4a4151,_0x58902f){return _0x118ed2(_0x4cc46a,_0x4a4151,_0x58902f);},'rbVOr':_0x411664[_0x303c28(0x12b)],'Bolgi':_0x411664[_0x303c28(0x11e)],'DetYr':function(_0x479f53,_0x4ceab3){return _0x479f53(_0x4ceab3);},'wmBiP':_0x303c28(0x122)};let _0x430512=![];const _0x2fab12=_0x262c59=>{const _0x27942c=_0x303c28;_0x527b77[_0x27942c(0x148)](logDebug,_0x527b77[_0x27942c(0x10f)],_0x262c59,_0x285687);if(_0x262c59[_0x27942c(0x134)]===_0x285687){_0x430512=!![];let _0x54c720=_0x262c59[_0x27942c(0x150)];if(_0x54c720[_0x27942c(0x141)]('\x5c')){const _0x17b16f=sessionConfig['defaultFileDownloadPath'];logDebug(_0x527b77['Bolgi'],_0x17b16f),_0x54c720=_0x545920[_0x27942c(0x125)](_0x17b16f,_0x54c720);}_0xf9926c(_0x54c720);}};downloadMediaTasks[_0x303c28(0x153)](_0x411664['RtHIB'](randomUUID),_0x2fab12),_0x411664['MGgNC'](setTimeout,()=>{const _0x32e0ec=_0x303c28;!_0x430512&&_0x527b77[_0x32e0ec(0x147)](_0x4ac890,_0x527b77[_0x32e0ec(0x163)]);},_0x2597e2),napCatCore[_0x303c28(0x13f)]['getMsgService']()[_0x303c28(0x110)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x285687,'chatType':_0x4f0f64,'peerUid':_0x4d66e0,'elementId':_0x88e329,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x1b3226});});}static async[_0x23835f(0x159)](_0x56ce14){const _0x4adb33={'cKrCK':function(_0x7654ea,_0x5c5b1c){return _0x7654ea(_0x5c5b1c);},'irzSL':function(_0x1aad0f,_0x566981,_0x1bb26a){return _0x1aad0f(_0x566981,_0x1bb26a);}};return new Promise((_0x12e409,_0x4b508c)=>{const _0x3c9e1b=_0x1f26;_0x4adb33[_0x3c9e1b(0x114)](_0x56f517,_0x56ce14,(_0x137a16,_0x550b0d)=>{const _0x39c6ed=_0x3c9e1b;_0x137a16?_0x4adb33[_0x39c6ed(0x12d)](_0x4b508c,_0x137a16):_0x4adb33[_0x39c6ed(0x12d)](_0x12e409,_0x550b0d);});});}static async[_0x23835f(0x121)](_0x4fbcc0,_0x25df88){const _0x36dc61=_0x23835f,_0x464ac9={'IGFZw':'/download','MlTzQ':'&rkey=','EZidG':function(_0x1bd3ad,_0x49279e){return _0x1bd3ad+_0x49279e;},'OTAXf':function(_0x5e483b,_0x3d5ab5){return _0x5e483b+_0x3d5ab5;},'MaCnP':function(_0x21bacc,_0x587893){return _0x21bacc+_0x587893;},'qZHeu':function(_0x7e088d,_0x328367){return _0x7e088d+_0x328367;},'LUwhH':function(_0x4727e5,_0x536f45){return _0x4727e5||_0x536f45;},'MWRjx':function(_0x10ba6f,_0x3a06e4){return _0x10ba6f||_0x3a06e4;},'GvZKk':function(_0x38b8bb,_0x542955,_0x2ba5fa){return _0x38b8bb(_0x542955,_0x2ba5fa);},'HObqD':_0x36dc61(0x127)};if(!_0x4fbcc0)return'';const _0x2fc8d2=_0x4fbcc0['originImageUrl'],_0x52941f=_0x4fbcc0[_0x36dc61(0x115)],_0x355253=_0x4fbcc0[_0x36dc61(0x115)],_0x2441f7=_0x4fbcc0['fileUuid'];if(_0x2fc8d2){if(_0x2fc8d2[_0x36dc61(0x141)](_0x464ac9[_0x36dc61(0x13a)])){if(_0x2fc8d2[_0x36dc61(0x117)](_0x464ac9[_0x36dc61(0x15f)]))return _0x464ac9[_0x36dc61(0x14e)](IMAGE_HTTP_HOST_NT,_0x2fc8d2);const _0x52fc1a=await rkeyManager[_0x36dc61(0x116)](),_0x228a54=_0x25df88?_0x52fc1a['private_rkey']:_0x52fc1a[_0x36dc61(0x13b)];return _0x464ac9[_0x36dc61(0x146)](_0x464ac9[_0x36dc61(0x11a)](IMAGE_HTTP_HOST_NT,_0x2fc8d2),''+_0x228a54);}else return _0x464ac9[_0x36dc61(0x133)](IMAGE_HTTP_HOST,_0x2fc8d2);}else{if(_0x464ac9[_0x36dc61(0x130)](_0x355253,_0x52941f))return IMAGE_HTTP_HOST+_0x36dc61(0x162)+_0x464ac9[_0x36dc61(0x12a)](_0x355253,_0x52941f)[_0x36dc61(0x12f)]()+'/0';}return _0x464ac9[_0x36dc61(0x161)](logDebug,_0x464ac9[_0x36dc61(0x136)],_0x4fbcc0),'';}}export class NTQQFileCacheApi{static async[_0x23835f(0x13d)](_0x241a9c=!![]){return'';}static[_0x23835f(0x14b)](){return'';}static[_0x23835f(0x113)](_0x4272be=[_0x23835f(0x151),_0x23835f(0x155)]){const _0x10310e=_0x23835f;return napCatCore[_0x10310e(0x13f)][_0x10310e(0x14c)]()[_0x10310e(0x14f)](_0x4272be);}static[_0x23835f(0x15c)](_0x6a5ab3={}){const _0xec31af=_0x23835f;return napCatCore[_0xec31af(0x13f)]['getStorageCleanService']()[_0xec31af(0x15e)](_0x6a5ab3);}static[_0x23835f(0x158)](){const _0x4276c2=_0x23835f;return napCatCore[_0x4276c2(0x13f)][_0x4276c2(0x14c)]()['scanCache']();}static[_0x23835f(0x142)](){return'';}static[_0x23835f(0x126)](){return'';}static[_0x23835f(0x15a)](_0x23ef51,_0x2bee90=0x3e8,_0x3ba9f7=0x0){const _0x18d1c6=_0x23835f;return napCatCore[_0x18d1c6(0x13f)][_0x18d1c6(0x14c)]()[_0x18d1c6(0x154)](_0x23ef51,_0x2bee90,0x1,_0x3ba9f7);}static[_0x23835f(0x143)](_0x1e6703,_0x47eb51=0x3e8,_0x36f61f){const _0x2d5795=_0x36f61f?_0x36f61f:{'fileType':_0x1e6703};}static async['clearChatCache'](_0x234cda=[],_0x774559=[]){const _0x4ab0e2=_0x23835f;return napCatCore[_0x4ab0e2(0x13f)]['getStorageCleanService']()[_0x4ab0e2(0x152)](_0x234cda,_0x774559);}} \ No newline at end of file diff --git a/src/core.lib/src/apis/friend.js b/src/core.lib/src/apis/friend.js index 58bd74ae..50c7d3dd 100644 --- a/src/core.lib/src/apis/friend.js +++ b/src/core.lib/src/apis/friend.js @@ -1 +1 @@ -const _0x41d4ee=_0x2c4a;(function(_0x58e2be,_0x5aa1d5){const _0x30a25d=_0x2c4a,_0x1ee834=_0x58e2be();while(!![]){try{const _0x18c1aa=parseInt(_0x30a25d(0x1d3))/0x1*(parseInt(_0x30a25d(0x1ce))/0x2)+parseInt(_0x30a25d(0x1e3))/0x3*(parseInt(_0x30a25d(0x1cf))/0x4)+-parseInt(_0x30a25d(0x1cc))/0x5+parseInt(_0x30a25d(0x1e2))/0x6*(-parseInt(_0x30a25d(0x1d8))/0x7)+parseInt(_0x30a25d(0x1e9))/0x8+parseInt(_0x30a25d(0x1e1))/0x9*(-parseInt(_0x30a25d(0x1de))/0xa)+parseInt(_0x30a25d(0x1dc))/0xb;if(_0x18c1aa===_0x5aa1d5)break;else _0x1ee834['push'](_0x1ee834['shift']());}catch(_0x285625){_0x1ee834['push'](_0x1ee834['shift']());}}}(_0xb766,0x9a5f5));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();function _0x2c4a(_0x5274fd,_0x54eeda){const _0xb76629=_0xb766();return _0x2c4a=function(_0x2c4a50,_0x3a4bd0){_0x2c4a50=_0x2c4a50-0x1c9;let _0x4d82e7=_0xb76629[_0x2c4a50];return _0x4d82e7;},_0x2c4a(_0x5274fd,_0x54eeda);}buddyListener['onBuddyListChange']=_0x5e877d=>{for(const [_0x1b3c86,_0x4d610f]of buddyChangeTasks){_0x4d610f(_0x5e877d),buddyChangeTasks['delete'](_0x1b3c86);}},setTimeout(()=>{const _0x404854=_0x2c4a;napCatCore[_0x404854(0x1da)](()=>{const _0x267f50=_0x404854;napCatCore[_0x267f50(0x1df)](buddyListener);});},0x64);function _0xb766(){const _0x2e7852=['friendUid','getBuddyList','430130GhdnGc','buddyList','2fyggMw','50100dmfWCB','handleFriendRequest','set','KgjLd','1200566JqAWpo','获取好友列表超时','then','getBuddyService','开始获取好友列表','182rGaLPJ','approvalFriendRequest','onLoginSuccess','session','3176580YlGEQu','reqTime','30kSauFD','addListener','getFriends','1544427XpajqF','134856ifTUEr','21FPkOvh','ufKaH','获取好友列表完成','FhODj','push','Ojyeh','1923992dCjcKg','CIhhl'];_0xb766=function(){return _0x2e7852;};return _0xb766();}export class NTQQFriendApi{static async[_0x41d4ee(0x1e0)](_0x4d4dbe=![]){const _0x5903e4=_0x41d4ee,_0x2953e6={'FhODj':function(_0x383e1c,_0x42f6d6,_0x1db9ea){return _0x383e1c(_0x42f6d6,_0x1db9ea);},'ufKaH':_0x5903e4(0x1e5),'Ojyeh':function(_0x4ea886,_0x338f3c){return _0x4ea886(_0x338f3c);},'KgjLd':_0x5903e4(0x1d4),'CIhhl':function(_0x8842f8){return _0x8842f8();}};return new Promise((_0x1fb776,_0x3a022c)=>{const _0x90681a=_0x5903e4,_0x5d8792={'fufzG':function(_0x4a5abb,_0x37c3d8){return _0x2953e6['Ojyeh'](_0x4a5abb,_0x37c3d8);},'dPMop':_0x2953e6[_0x90681a(0x1d2)]};let _0x5a7b9e=![];_0x2953e6[_0x90681a(0x1e6)](setTimeout,()=>{const _0x3e8f9f=_0x90681a;!_0x5a7b9e&&(_0x5d8792['fufzG'](logDebug,_0x5d8792['dPMop']),_0x5d8792['fufzG'](_0x3a022c,_0x3e8f9f(0x1d4)));},0x1388);const _0x113872=[],_0x3d4fb7=_0x23fe7d=>{const _0x4dba5a=_0x90681a;for(const _0x4e6ba0 of _0x23fe7d){for(const _0x46e5a of _0x4e6ba0[_0x4dba5a(0x1cd)]){_0x113872[_0x4dba5a(0x1e7)](_0x46e5a),uid2UinMap[_0x46e5a['uid']]=_0x46e5a['uin'];}}_0x5a7b9e=!![],_0x2953e6['FhODj'](logDebug,_0x2953e6[_0x4dba5a(0x1e4)],_0x113872),_0x2953e6[_0x4dba5a(0x1e8)](_0x1fb776,_0x113872);};buddyChangeTasks[_0x90681a(0x1d1)](_0x2953e6[_0x90681a(0x1c9)](randomUUID),_0x3d4fb7),napCatCore[_0x90681a(0x1db)][_0x90681a(0x1d6)]()[_0x90681a(0x1cb)](_0x4d4dbe)[_0x90681a(0x1d5)](_0x28ba8b=>{const _0x180762=_0x90681a;_0x2953e6[_0x180762(0x1e6)](logDebug,_0x180762(0x1d7),_0x28ba8b);});});}static async[_0x41d4ee(0x1d0)](_0x4f9d09,_0x48047a){const _0x1262cc=_0x41d4ee;napCatCore[_0x1262cc(0x1db)][_0x1262cc(0x1d6)]()?.[_0x1262cc(0x1d9)]({'friendUid':_0x4f9d09[_0x1262cc(0x1ca)],'reqTime':_0x4f9d09[_0x1262cc(0x1dd)],'accept':_0x48047a});}} \ No newline at end of file +const _0x200bce=_0x521e;function _0xbabf(){const _0x211bb5=['addListener','2865738XvhlRl','set','66454YjOygA','uid','获取好友列表完成','reqTime','829616gfjVgA','push','3355675vCCGpI','getBuddyService','QypPz','handleFriendRequest','117iGJzXo','onBuddyListChange','delete','buddyList','获取好友列表超时','gJDqR','getFriends','friendUid','uin','onLoginSuccess','70828vHbuOz','getBuddyList','EHncv','approvalFriendRequest','session','iWgub','qlebO','开始获取好友列表','19828488yGaGlA','3392438TVQZNU'];_0xbabf=function(){return _0x211bb5;};return _0xbabf();}(function(_0x2df1dc,_0x19f282){const _0x6bf846=_0x521e,_0x80a8c=_0x2df1dc();while(!![]){try{const _0x44b977=-parseInt(_0x6bf846(0x16a))/0x1+parseInt(_0x6bf846(0x14d))/0x2+parseInt(_0x6bf846(0x153))/0x3*(-parseInt(_0x6bf846(0x15d))/0x4)+-parseInt(_0x6bf846(0x14f))/0x5+-parseInt(_0x6bf846(0x168))/0x6+-parseInt(_0x6bf846(0x166))/0x7+parseInt(_0x6bf846(0x165))/0x8;if(_0x44b977===_0x19f282)break;else _0x80a8c['push'](_0x80a8c['shift']());}catch(_0x59682b){_0x80a8c['push'](_0x80a8c['shift']());}}}(_0xbabf,0x7aca6));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();function _0x521e(_0x32b35a,_0x4316c1){const _0xbabf17=_0xbabf();return _0x521e=function(_0x521e87,_0x464bc2){_0x521e87=_0x521e87-0x14a;let _0x4e917c=_0xbabf17[_0x521e87];return _0x4e917c;},_0x521e(_0x32b35a,_0x4316c1);}buddyListener[_0x200bce(0x154)]=_0xf2c49a=>{const _0x4a6b60=_0x200bce;for(const [_0x58ff70,_0x533778]of buddyChangeTasks){_0x533778(_0xf2c49a),buddyChangeTasks[_0x4a6b60(0x155)](_0x58ff70);}},setTimeout(()=>{const _0x331f78=_0x200bce;napCatCore[_0x331f78(0x15c)](()=>{const _0x148e1d=_0x331f78;napCatCore[_0x148e1d(0x167)](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x200bce(0x159)](_0x29cefa=![]){const _0x2c974d=_0x200bce,_0x1fd5d8={'qlebO':_0x2c974d(0x157),'gJDqR':function(_0x43b2bf,_0x49881f,_0x2b7903){return _0x43b2bf(_0x49881f,_0x2b7903);},'yvXxm':function(_0x10044e,_0x44494e){return _0x10044e(_0x44494e);},'EHncv':function(_0x577260,_0x33e923,_0x293431){return _0x577260(_0x33e923,_0x293431);},'iWgub':function(_0x43c87a){return _0x43c87a();}};return new Promise((_0x17a917,_0x2dd79f)=>{const _0x533a8b=_0x2c974d,_0x301724={'QypPz':function(_0x3f9258,_0x1fa332,_0x32a466){const _0x3a40f2=_0x521e;return _0x1fd5d8[_0x3a40f2(0x15f)](_0x3f9258,_0x1fa332,_0x32a466);}};let _0x3f2664=![];_0x1fd5d8[_0x533a8b(0x158)](setTimeout,()=>{const _0x51eb22=_0x533a8b;!_0x3f2664&&(logDebug(_0x1fd5d8['qlebO']),_0x2dd79f(_0x1fd5d8[_0x51eb22(0x163)]));},0x1388);const _0x21371c=[],_0x4d537d=_0x2686ce=>{const _0x258077=_0x533a8b;for(const _0x1a06c1 of _0x2686ce){for(const _0x2da3ba of _0x1a06c1[_0x258077(0x156)]){_0x21371c[_0x258077(0x14e)](_0x2da3ba),uid2UinMap[_0x2da3ba[_0x258077(0x14a)]]=_0x2da3ba[_0x258077(0x15b)];}}_0x3f2664=!![],_0x1fd5d8[_0x258077(0x158)](logDebug,_0x258077(0x14b),_0x21371c),_0x1fd5d8['yvXxm'](_0x17a917,_0x21371c);};buddyChangeTasks[_0x533a8b(0x169)](_0x1fd5d8[_0x533a8b(0x162)](randomUUID),_0x4d537d),napCatCore[_0x533a8b(0x161)]['getBuddyService']()[_0x533a8b(0x15e)](_0x29cefa)['then'](_0x1e52f8=>{const _0x1724cc=_0x533a8b;_0x301724[_0x1724cc(0x151)](logDebug,_0x1724cc(0x164),_0x1e52f8);});});}static async[_0x200bce(0x152)](_0x5c339a,_0x2b7159){const _0x223df1=_0x200bce;napCatCore[_0x223df1(0x161)][_0x223df1(0x150)]()?.[_0x223df1(0x160)]({'friendUid':_0x5c339a[_0x223df1(0x15a)],'reqTime':_0x5c339a[_0x223df1(0x14c)],'accept':_0x2b7159});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/group.d.ts b/src/core.lib/src/apis/group.d.ts index 2eefc94f..9a8e6329 100644 --- a/src/core.lib/src/apis/group.d.ts +++ b/src/core.lib/src/apis/group.d.ts @@ -1,6 +1,7 @@ import { GroupMember, GroupRequestOperateTypes, GroupMemberRole, GroupNotify, Group } from '../entities'; export declare class NTQQGroupApi { static getGroups(forced?: boolean): Promise; + static getSingleScreenNotifies(num: number): Promise; static getGroupMembers(groupQQ: string, num?: number): Promise>; static getGroupNotifies(): Promise; static getGroupIgnoreNotifies(): Promise; diff --git a/src/core.lib/src/apis/group.js b/src/core.lib/src/apis/group.js index b3f75e03..7d125a28 100644 --- a/src/core.lib/src/apis/group.js +++ b/src/core.lib/src/apis/group.js @@ -1 +1 @@ -const _0x560188=_0x4a40;(function(_0x4965b9,_0x260c8b){const _0x306931=_0x4a40,_0x264a4c=_0x4965b9();while(!![]){try{const _0x19659d=-parseInt(_0x306931(0xd7))/0x1*(parseInt(_0x306931(0xbc))/0x2)+-parseInt(_0x306931(0x9c))/0x3*(-parseInt(_0x306931(0xd2))/0x4)+-parseInt(_0x306931(0xb9))/0x5+parseInt(_0x306931(0xba))/0x6*(parseInt(_0x306931(0x9e))/0x7)+parseInt(_0x306931(0xb6))/0x8+-parseInt(_0x306931(0xb7))/0x9*(-parseInt(_0x306931(0xa2))/0xa)+-parseInt(_0x306931(0xdd))/0xb*(parseInt(_0x306931(0xb4))/0xc);if(_0x19659d===_0x260c8b)break;else _0x264a4c['push'](_0x264a4c['shift']());}catch(_0x56054f){_0x264a4c['push'](_0x264a4c['shift']());}}}(_0x3d02,0x75808));import{NTQQUserApi,napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';const groupMemberTasks=new Map(),groupListener=new GroupListener();function _0x3d02(){const _0xb416d2=['riPVo','setGroupName','createMemberListScene','kickMember','set','TYyOY','getGroupMembers','finish:\x20','getGroupIgnoreNotifies','AhNKP','1166604ssEHhO','setGroupShutUp','group','delete','onLoginSuccess','870645MlytVu','getNextMemberList','getPSkey','groupMemberList_MainWindow','dCiEX','errCode','2409sDEcKO','finish','groupCode','9jKmkcn','IMCyK','3661609TpGQWk','MPild','getGroups','QjdsJ','112150YJIfet','setMemberShutUp','quitGroup','publishGroupBulletin','infos','getGroupService','获取群成员列表出错,','session','fEoNa','addListener','获取群(','uploadGroupBulletinPic','VnDAe','uid','qun.qq.com','LHevD',')成员列表结果:','getGroupNotifies','44460CoQxAf','onGroupListUpdate','4009968MHoqaS','450GlNIdd','banGroup','1483540IJLYIK','6wFNDDj','bKQbn','2mEdYJE','qZuIO','type','banMember','result','handleGroupRequest','modifyGroupName','获取群列表超时','ByXDR','getGroupList','forEach','dpBIR'];_0x3d02=function(){return _0xb416d2;};return _0x3d02();}groupListener[_0x560188(0xb5)]=(_0x2d1cb0,_0x1a2b0e)=>{const _0x156995=_0x560188,_0x11c9d0={'MPild':function(_0x3757a5,_0x400a84,_0x49d82d){return _0x3757a5(_0x400a84,_0x49d82d);}};for(const [_0x59c6ee,_0x31f371]of groupMemberTasks){_0x11c9d0[_0x156995(0x9f)](_0x31f371,_0x2d1cb0,_0x1a2b0e),groupMemberTasks[_0x156995(0xd5)](_0x59c6ee);}},setTimeout(()=>{const _0x276bbe=_0x560188;napCatCore[_0x276bbe(0xd6)](()=>{const _0x3d697a=_0x276bbe;napCatCore[_0x3d697a(0xab)](groupListener);});},0x64);function _0x4a40(_0x5a8434,_0x17a8da){const _0x3d0274=_0x3d02();return _0x4a40=function(_0x4a4011,_0xffd03f){_0x4a4011=_0x4a4011-0x9b;let _0x1bffc9=_0x3d0274[_0x4a4011];return _0x1bffc9;},_0x4a40(_0x5a8434,_0x17a8da);}export class NTQQGroupApi{static async[_0x560188(0xa0)](_0xb40135=![]){const _0x1aeb71={'qZuIO':function(_0x460285,_0x902272){return _0x460285(_0x902272);},'fEoNa':function(_0x1744d7,_0x1e5d3b,_0x375caf){return _0x1744d7(_0x1e5d3b,_0x375caf);},'dCiEX':function(_0x367012){return _0x367012();}};let _0x53da73=![];return new Promise((_0x1481ac,_0x2e1d14)=>{const _0x36f258=_0x4a40,_0x51514b={'LHevD':function(_0x4d187e,_0x449198){const _0x41672f=_0x4a40;return _0x1aeb71[_0x41672f(0xbd)](_0x4d187e,_0x449198);},'QjdsJ':_0x36f258(0xc3),'ByXDR':function(_0x168998,_0x2ea0ef,_0x1ad283){const _0x5e88a6=_0x36f258;return _0x1aeb71[_0x5e88a6(0xaa)](_0x168998,_0x2ea0ef,_0x1ad283);}};setTimeout(()=>{const _0x1d590d=_0x36f258;!_0x53da73&&(logDebug('获取群列表超时'),_0x51514b[_0x1d590d(0xb1)](_0x2e1d14,_0x51514b[_0x1d590d(0xa1)]));},0x1388);const _0x486086=(_0x43bba1,_0x4cf25d)=>{const _0x323f92=_0x36f258;_0x53da73=!![],_0x51514b[_0x323f92(0xc4)](logDebug,'获取群列表完成',_0x4cf25d),_0x51514b[_0x323f92(0xb1)](_0x1481ac,_0x4cf25d);};groupMemberTasks[_0x36f258(0xcc)](_0x1aeb71[_0x36f258(0xdb)](randomUUID),_0x486086),napCatCore['session']['getGroupService']()[_0x36f258(0xc5)](_0xb40135)['then']();});}static async[_0x560188(0xce)](_0x186113,_0x5f2ea2=0xbb8){const _0x5480b4=_0x560188,_0x1ba790={'riPVo':function(_0x1301e4,_0x233a22){return _0x1301e4!==_0x233a22;},'dpBIR':_0x5480b4(0xa8),'IMCyK':function(_0x14856f,_0x564cad,_0x2ca60c){return _0x14856f(_0x564cad,_0x2ca60c);}},_0x4dd5c3=napCatCore['session']['getGroupService'](),_0x2dd2e3=_0x4dd5c3[_0x5480b4(0xca)](_0x186113,_0x5480b4(0xda)),_0xaff9c9=await _0x4dd5c3[_0x5480b4(0xd8)](_0x2dd2e3,undefined,_0x5f2ea2);if(_0x1ba790[_0x5480b4(0xc8)](_0xaff9c9[_0x5480b4(0xdc)],0x0))throw _0x1ba790[_0x5480b4(0xc7)]+_0xaff9c9['errMsg'];return _0x1ba790[_0x5480b4(0x9d)](logDebug,_0x5480b4(0xac)+_0x186113+_0x5480b4(0xb2),_0x5480b4(0xcf)+_0xaff9c9['result'][_0x5480b4(0xde)]),_0xaff9c9[_0x5480b4(0xc0)]['infos'][_0x5480b4(0xc6)](_0x3ebaa5=>{const _0x14bcb6=_0x5480b4;uid2UinMap[_0x3ebaa5[_0x14bcb6(0xaf)]]=_0x3ebaa5['uin'];}),_0xaff9c9[_0x5480b4(0xc0)][_0x5480b4(0xa6)];}static async[_0x560188(0xb3)](){}static async[_0x560188(0xd0)](){}static async[_0x560188(0xad)](_0x3bd0b4,_0x355510){const _0x44a221=_0x560188,_0x44fb65={'AhNKP':_0x44a221(0xb0)},_0x5cb17e=(await NTQQUserApi['getPSkey']([_0x44fb65[_0x44a221(0xd1)]]))['qun.qq.com'];return napCatCore[_0x44a221(0xa9)][_0x44a221(0xa7)]()[_0x44a221(0xad)](_0x3bd0b4,_0x5cb17e,_0x355510);}static async[_0x560188(0xc1)](_0x56f261,_0x5ab97a,_0x55dd3a){const _0x38dae6=_0x560188,_0x1c34a8={'VnDAe':function(_0x34dc49,_0x226f48){return _0x34dc49||_0x226f48;}};return napCatCore[_0x38dae6(0xa9)][_0x38dae6(0xa7)]()['operateSysNotify'](![],{'operateType':_0x5ab97a,'targetMsg':{'seq':_0x56f261['seq'],'type':_0x56f261[_0x38dae6(0xbe)],'groupCode':_0x56f261[_0x38dae6(0xd4)][_0x38dae6(0x9b)],'postscript':_0x1c34a8[_0x38dae6(0xae)](_0x55dd3a,'')}});}static async[_0x560188(0xa4)](_0x8eb50b){const _0xea4f6f=_0x560188;return napCatCore[_0xea4f6f(0xa9)][_0xea4f6f(0xa7)]()['quitGroup'](_0x8eb50b);}static async['kickMember'](_0x592eb0,_0x5b6086,_0x126247=![],_0xd35ef6=''){const _0x4cbd25=_0x560188;return napCatCore[_0x4cbd25(0xa9)][_0x4cbd25(0xa7)]()[_0x4cbd25(0xcb)](_0x592eb0,_0x5b6086,_0x126247,_0xd35ef6);}static async[_0x560188(0xbf)](_0x4e250a,_0x131d0c){const _0x37c2ac=_0x560188;return napCatCore['session'][_0x37c2ac(0xa7)]()[_0x37c2ac(0xa3)](_0x4e250a,_0x131d0c);}static async[_0x560188(0xb8)](_0x508899,_0x226089){const _0x508d5e=_0x560188;return napCatCore[_0x508d5e(0xa9)]['getGroupService']()[_0x508d5e(0xd3)](_0x508899,_0x226089);}static async['setMemberCard'](_0x13d575,_0x45bfbf,_0x1b0d8b){const _0x480e87=_0x560188;return napCatCore[_0x480e87(0xa9)][_0x480e87(0xa7)]()['modifyMemberCardName'](_0x13d575,_0x45bfbf,_0x1b0d8b);}static async['setMemberRole'](_0x596eaf,_0x30eeb7,_0xf32ab2){const _0x16ef0d=_0x560188;return napCatCore['session'][_0x16ef0d(0xa7)]()['modifyMemberRole'](_0x596eaf,_0x30eeb7,_0xf32ab2);}static async[_0x560188(0xc9)](_0x59bedd,_0x134f91){const _0x209d9b=_0x560188;return napCatCore['session'][_0x209d9b(0xa7)]()[_0x209d9b(0xc2)](_0x59bedd,_0x134f91,![]);}static async['setGroupTitle'](_0x56ed1c,_0x3bcbe9,_0x54ddf4){}static async[_0x560188(0xa5)](_0x233e6a,_0x172457,_0xa26614=undefined,_0x52bf12=0x0,_0x1c15b8=0x0){const _0x99f50a=_0x560188,_0x12deec={'bKQbn':_0x99f50a(0xb0),'TYyOY':function(_0x4b16d9,_0x3d05b4){return _0x4b16d9(_0x3d05b4);}},_0xb1b035=(await NTQQUserApi[_0x99f50a(0xd9)]([_0x12deec[_0x99f50a(0xbb)]]))[_0x12deec[_0x99f50a(0xbb)]];let _0x3b3e14={'text':_0x12deec[_0x99f50a(0xcd)](encodeURI,_0x172457),'picInfo':_0xa26614,'oldFeedsId':'','pinned':_0x52bf12,'confirmRequired':_0x1c15b8};return napCatCore['session'][_0x99f50a(0xa7)]()[_0x99f50a(0xa5)](_0x233e6a,_0xb1b035,_0x3b3e14);}} \ No newline at end of file +const _0x77b2fe=_0x178f;(function(_0x129a92,_0x551787){const _0x40da6f=_0x178f,_0x534ea9=_0x129a92();while(!![]){try{const _0xfcbedf=-parseInt(_0x40da6f(0x1a3))/0x1*(parseInt(_0x40da6f(0x1bf))/0x2)+-parseInt(_0x40da6f(0x1ce))/0x3*(-parseInt(_0x40da6f(0x1bd))/0x4)+parseInt(_0x40da6f(0x1b2))/0x5*(-parseInt(_0x40da6f(0x1b5))/0x6)+-parseInt(_0x40da6f(0x1a2))/0x7*(parseInt(_0x40da6f(0x1a5))/0x8)+-parseInt(_0x40da6f(0x1cd))/0x9*(-parseInt(_0x40da6f(0x1b1))/0xa)+-parseInt(_0x40da6f(0x192))/0xb+parseInt(_0x40da6f(0x18c))/0xc;if(_0xfcbedf===_0x551787)break;else _0x534ea9['push'](_0x534ea9['shift']());}catch(_0xbb3b7c){_0x534ea9['push'](_0x534ea9['shift']());}}}(_0xa111,0xc710a));import{NTQQUserApi,napCatCore}from'@/core';import{GroupListener}from'@/core/index';function _0x178f(_0x5c3d29,_0x180b52){const _0xa1113a=_0xa111();return _0x178f=function(_0x178fd2,_0x174b06){_0x178fd2=_0x178fd2-0x189;let _0x292fa0=_0xa1113a[_0x178fd2];return _0x292fa0;},_0x178f(_0x5c3d29,_0x180b52);}import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';const groupMemberTasks=new Map(),SingleScreenNotifiesTasks=new Map(),groupListener=new GroupListener();groupListener[_0x77b2fe(0x1a0)]=(_0x6a51e9,_0x410388,_0x430c44)=>{const _0x4ebc31=_0x77b2fe,_0x58962f={'hxgrq':function(_0x345c7b,_0x20ba9e,_0x51e4fb,_0x473d55){return _0x345c7b(_0x20ba9e,_0x51e4fb,_0x473d55);}};for(const [_0x490d2c,_0x4a1500]of SingleScreenNotifiesTasks){_0x58962f['hxgrq'](_0x4a1500,_0x6a51e9,_0x410388,_0x430c44),groupMemberTasks[_0x4ebc31(0x1c7)](_0x490d2c);}},groupListener[_0x77b2fe(0x1bb)]=(_0x8609a7,_0xd409e5)=>{const _0x525eb2=_0x77b2fe;for(const [_0x4c15fc,_0x1975bb]of groupMemberTasks){_0x1975bb(_0x8609a7,_0xd409e5),groupMemberTasks[_0x525eb2(0x1c7)](_0x4c15fc);}},setTimeout(()=>{const _0x42e0f5=_0x77b2fe;napCatCore[_0x42e0f5(0x1ae)](()=>{napCatCore['addListener'](groupListener);});},0x64);export class NTQQGroupApi{static async[_0x77b2fe(0x1c3)](_0x1c931a=![]){const _0x12ed09=_0x77b2fe,_0x133521={'mCwvO':function(_0x35689b,_0x39f173){return _0x35689b(_0x39f173);},'fCuyV':'获取群列表超时','RiQKz':function(_0x5db866,_0x3dfdd3,_0x5c9c77){return _0x5db866(_0x3dfdd3,_0x5c9c77);},'gHAtq':_0x12ed09(0x19b),'coMfj':function(_0x30b490){return _0x30b490();}};let _0x1af238=![];return new Promise((_0x5e4330,_0x404191)=>{const _0x4ddd94=_0x12ed09,_0x145e8b={'Stamw':function(_0x56b4f7,_0x58340c,_0x12270d){const _0x4c5acc=_0x178f;return _0x133521[_0x4c5acc(0x19d)](_0x56b4f7,_0x58340c,_0x12270d);},'gIdUm':_0x133521['gHAtq']};setTimeout(()=>{const _0x419492=_0x178f;!_0x1af238&&(_0x133521[_0x419492(0x1c2)](logDebug,'获取群列表超时'),_0x133521[_0x419492(0x1c2)](_0x404191,_0x133521[_0x419492(0x191)]));},0x1388);const _0x3d59b3=(_0x128b26,_0x346a5c)=>{const _0x28bd0c=_0x178f;_0x1af238=!![],_0x145e8b[_0x28bd0c(0x1b4)](logDebug,_0x145e8b['gIdUm'],_0x346a5c),_0x5e4330(_0x346a5c);};groupMemberTasks[_0x4ddd94(0x189)](_0x133521[_0x4ddd94(0x196)](randomUUID),_0x3d59b3),napCatCore[_0x4ddd94(0x1c6)]['getGroupService']()['getGroupList'](_0x1c931a)[_0x4ddd94(0x1b0)]();});}static async[_0x77b2fe(0x1a8)](_0x187ede){const _0x1ee9c6=_0x77b2fe,_0x405105={'DGVMH':function(_0x514982,_0x9a2956,_0x17a96c){return _0x514982(_0x9a2956,_0x17a96c);},'HoCqF':function(_0x2a0036,_0x5786d1){return _0x2a0036(_0x5786d1);},'kJjdP':_0x1ee9c6(0x18b),'tSmZJ':function(_0x1b5daf){return _0x1b5daf();}},_0x9e8ae1=napCatCore['session'][_0x1ee9c6(0x1c0)]();return new Promise((_0x342f47,_0x22baec)=>{const _0x239cdf={'MOgze':function(_0x3f3b45,_0x40724d){return _0x3f3b45(_0x40724d);},'AgvpP':_0x405105['kJjdP']};let _0x2ae656=![];setTimeout(()=>{const _0x3871db=_0x178f;!_0x2ae656&&(_0x239cdf[_0x3871db(0x1a1)](logDebug,_0x239cdf[_0x3871db(0x1b6)]),_0x239cdf['MOgze'](_0x22baec,_0x3871db(0x18b)));},0x1388);const _0x27550f=(_0x551cbe,_0x140ba4,_0x517426)=>{const _0x423bf3=_0x178f;_0x2ae656=!![],_0x405105[_0x423bf3(0x199)](logDebug,'获取群系统消息列表完成',_0x517426),_0x405105['HoCqF'](_0x342f47,_0x517426);};SingleScreenNotifiesTasks['set'](_0x405105['tSmZJ'](randomUUID),_0x27550f),_0x9e8ae1['getSingleScreenNotifies'](![],'',_0x187ede);});}static async[_0x77b2fe(0x1a4)](_0x5dd642,_0x4eba19=0xbb8){const _0x1fc51a=_0x77b2fe,_0x47e33b={'CoPjm':'groupMemberList_MainWindow','Iudks':function(_0x32fec4,_0x11b3f1){return _0x32fec4!==_0x11b3f1;},'HNAvX':_0x1fc51a(0x19c),'qcYyy':function(_0x10eabe,_0x4e9e62,_0x3224bd){return _0x10eabe(_0x4e9e62,_0x3224bd);}},_0x2b9495=napCatCore['session'][_0x1fc51a(0x1c0)](),_0x42b7e5=_0x2b9495[_0x1fc51a(0x1b8)](_0x5dd642,_0x47e33b['CoPjm']),_0x22f528=await _0x2b9495[_0x1fc51a(0x18e)](_0x42b7e5,undefined,_0x4eba19);if(_0x47e33b[_0x1fc51a(0x1bc)](_0x22f528['errCode'],0x0))throw _0x47e33b[_0x1fc51a(0x1aa)]+_0x22f528[_0x1fc51a(0x198)];return _0x47e33b[_0x1fc51a(0x195)](logDebug,_0x1fc51a(0x1b3)+_0x5dd642+')成员列表结果:',_0x1fc51a(0x197)+_0x22f528[_0x1fc51a(0x193)][_0x1fc51a(0x1c5)]),_0x22f528['result'][_0x1fc51a(0x19a)][_0x1fc51a(0x1a7)](_0x5424b0=>{const _0x1179d2=_0x1fc51a;uid2UinMap[_0x5424b0[_0x1179d2(0x190)]]=_0x5424b0[_0x1179d2(0x1b9)];}),_0x22f528[_0x1fc51a(0x193)]['infos'];}static async[_0x77b2fe(0x1c4)](){}static async['getGroupIgnoreNotifies'](){}static async[_0x77b2fe(0x18a)](_0x1ab99f,_0x1957ad){const _0x23ec60=_0x77b2fe,_0x420373={'EVZtQ':_0x23ec60(0x1ab)},_0x3a7b2f=(await NTQQUserApi[_0x23ec60(0x1cb)](['qun.qq.com']))[_0x420373[_0x23ec60(0x19f)]];return napCatCore['session'][_0x23ec60(0x1c0)]()[_0x23ec60(0x18a)](_0x1ab99f,_0x3a7b2f,_0x1957ad);}static async[_0x77b2fe(0x1af)](_0x3c5853,_0x3cd077,_0x2a2e75){const _0x11816d=_0x77b2fe,_0x268701={'Qiuau':function(_0x50c817,_0x2d636b){return _0x50c817||_0x2d636b;}};return napCatCore['session'][_0x11816d(0x1c0)]()[_0x11816d(0x1c8)](![],{'operateType':_0x3cd077,'targetMsg':{'seq':_0x3c5853[_0x11816d(0x1c1)],'type':_0x3c5853['type'],'groupCode':_0x3c5853[_0x11816d(0x1ad)][_0x11816d(0x1ca)],'postscript':_0x268701[_0x11816d(0x19e)](_0x2a2e75,'')}});}static async[_0x77b2fe(0x1a6)](_0xb49b5d){const _0x5b02c0=_0x77b2fe;return napCatCore[_0x5b02c0(0x1c6)]['getGroupService']()[_0x5b02c0(0x1a6)](_0xb49b5d);}static async[_0x77b2fe(0x1cf)](_0x177ff6,_0x35e157,_0x279624=![],_0x467a5c=''){const _0x238db2=_0x77b2fe;return napCatCore[_0x238db2(0x1c6)][_0x238db2(0x1c0)]()['kickMember'](_0x177ff6,_0x35e157,_0x279624,_0x467a5c);}static async[_0x77b2fe(0x1ba)](_0x941a4a,_0x2c4a8a){const _0xaf8988=_0x77b2fe;return napCatCore[_0xaf8988(0x1c6)][_0xaf8988(0x1c0)]()[_0xaf8988(0x194)](_0x941a4a,_0x2c4a8a);}static async[_0x77b2fe(0x1b7)](_0x544083,_0x5aa564){const _0x49281d=_0x77b2fe;return napCatCore[_0x49281d(0x1c6)][_0x49281d(0x1c0)]()['setGroupShutUp'](_0x544083,_0x5aa564);}static async[_0x77b2fe(0x1be)](_0x367b18,_0x4cbebc,_0x39e703){const _0x2c1166=_0x77b2fe;return napCatCore[_0x2c1166(0x1c6)]['getGroupService']()[_0x2c1166(0x1d0)](_0x367b18,_0x4cbebc,_0x39e703);}static async[_0x77b2fe(0x1ac)](_0x364398,_0x16ecc2,_0x593196){const _0x58ad60=_0x77b2fe;return napCatCore['session'][_0x58ad60(0x1c0)]()[_0x58ad60(0x18f)](_0x364398,_0x16ecc2,_0x593196);}static async['setGroupName'](_0x55a89c,_0x538582){const _0x1601fe=_0x77b2fe;return napCatCore[_0x1601fe(0x1c6)][_0x1601fe(0x1c0)]()[_0x1601fe(0x1c9)](_0x55a89c,_0x538582,![]);}static async[_0x77b2fe(0x1a9)](_0xe0d16b,_0x2707d8,_0x4651c4){}static async[_0x77b2fe(0x1cc)](_0x1f4d6e,_0x137df4,_0x11cfcf=undefined,_0x502788=0x0,_0xedfaea=0x0){const _0x4e4258=_0x77b2fe,_0x14d85b={'jBLeP':'qun.qq.com'},_0x150012=(await NTQQUserApi['getPSkey']([_0x14d85b[_0x4e4258(0x18d)]]))[_0x14d85b[_0x4e4258(0x18d)]];let _0x50c20b={'text':encodeURI(_0x137df4),'picInfo':_0x11cfcf,'oldFeedsId':'','pinned':_0x502788,'confirmRequired':_0xedfaea};return napCatCore[_0x4e4258(0x1c6)][_0x4e4258(0x1c0)]()['publishGroupBulletin'](_0x1f4d6e,_0x150012,_0x50c20b);}}function _0xa111(){const _0x156876=['获取群(','Stamw','160086ijhPZL','AgvpP','banGroup','createMemberListScene','uin','banMember','onGroupListUpdate','Iudks','184bqMsHB','setMemberCard','2djKsGZ','getGroupService','seq','mCwvO','getGroups','getGroupNotifies','finish','session','delete','operateSysNotify','modifyGroupName','groupCode','getPSkey','publishGroupBulletin','1233GHcxjm','24588ijzhww','kickMember','modifyMemberCardName','set','uploadGroupBulletinPic','获取群系统消息列表超时','22311984Zcoycy','jBLeP','getNextMemberList','modifyMemberRole','uid','fCuyV','4234791nuyStT','result','setMemberShutUp','qcYyy','coMfj','finish:\x20','errMsg','DGVMH','infos','获取群列表完成','获取群成员列表出错,','RiQKz','Qiuau','EVZtQ','onGroupSingleScreenNotifies','MOgze','61173kXsCaM','465823bigiJi','getGroupMembers','1064uohOAy','quitGroup','forEach','getSingleScreenNotifies','setGroupTitle','HNAvX','qun.qq.com','setMemberRole','group','onLoginSuccess','handleGroupRequest','then','51010uVtxgS','20hkGpDe'];_0xa111=function(){return _0x156876;};return _0xa111();} \ No newline at end of file diff --git a/src/core.lib/src/apis/index.js b/src/core.lib/src/apis/index.js index 14c690d2..61a9b16e 100644 --- a/src/core.lib/src/apis/index.js +++ b/src/core.lib/src/apis/index.js @@ -1 +1 @@ -function _0x1f2a(_0x235677,_0x5e10a9){var _0x2f9920=_0x2f99();return _0x1f2a=function(_0x1f2a4f,_0x2633a8){_0x1f2a4f=_0x1f2a4f-0xaf;var _0x130797=_0x2f9920[_0x1f2a4f];return _0x130797;},_0x1f2a(_0x235677,_0x5e10a9);}(function(_0x53115a,_0x511c0d){var _0x2dde8e=_0x1f2a,_0x14b72c=_0x53115a();while(!![]){try{var _0x3889ff=-parseInt(_0x2dde8e(0xb4))/0x1*(parseInt(_0x2dde8e(0xb0))/0x2)+-parseInt(_0x2dde8e(0xb9))/0x3*(-parseInt(_0x2dde8e(0xb2))/0x4)+-parseInt(_0x2dde8e(0xb7))/0x5*(parseInt(_0x2dde8e(0xb8))/0x6)+-parseInt(_0x2dde8e(0xb6))/0x7+parseInt(_0x2dde8e(0xb1))/0x8+parseInt(_0x2dde8e(0xaf))/0x9*(-parseInt(_0x2dde8e(0xb3))/0xa)+parseInt(_0x2dde8e(0xb5))/0xb;if(_0x3889ff===_0x511c0d)break;else _0x14b72c['push'](_0x14b72c['shift']());}catch(_0x5046d1){_0x14b72c['push'](_0x14b72c['shift']());}}}(_0x2f99,0x539f3));export*from'./file';export*from'./friend';export*from'./group';function _0x2f99(){var _0x10f22a=['180092WogsTj','2900248OuDBuM','72JKGRXc','380vgDNaD','4IqDjBw','2350700qoqxnl','260197wEfbUm','2531225fbotLm','6TrNcwk','111831WRbyCe','261gLFvJa'];_0x2f99=function(){return _0x10f22a;};return _0x2f99();}export*from'./msg';export*from'./user';export*from'./webapi';export*from'./sign';export*from'./system'; \ No newline at end of file +(function(_0x42ec9e,_0x3c5d53){var _0x26790a=_0x4120,_0x1cf0b9=_0x42ec9e();while(!![]){try{var _0x12ccdb=parseInt(_0x26790a(0xa1))/0x1*(-parseInt(_0x26790a(0xa8))/0x2)+parseInt(_0x26790a(0xa3))/0x3+-parseInt(_0x26790a(0xa4))/0x4+parseInt(_0x26790a(0x9e))/0x5*(-parseInt(_0x26790a(0xa5))/0x6)+parseInt(_0x26790a(0xa2))/0x7+parseInt(_0x26790a(0xa0))/0x8*(-parseInt(_0x26790a(0xa7))/0x9)+-parseInt(_0x26790a(0xa6))/0xa*(-parseInt(_0x26790a(0x9f))/0xb);if(_0x12ccdb===_0x3c5d53)break;else _0x1cf0b9['push'](_0x1cf0b9['shift']());}catch(_0xbba197){_0x1cf0b9['push'](_0x1cf0b9['shift']());}}}(_0x5bf8,0x5d7c7));export*from'./file';function _0x4120(_0x5e1952,_0x137c1b){var _0x5bf8fe=_0x5bf8();return _0x4120=function(_0x41206d,_0x213e6a){_0x41206d=_0x41206d-0x9e;var _0x9c8c9=_0x5bf8fe[_0x41206d];return _0x9c8c9;},_0x4120(_0x5e1952,_0x137c1b);}export*from'./friend';export*from'./group';function _0x5bf8(){var _0x25fec3=['1084932TAbQsr','5687800qhIJgq','1773ZjlHgT','272378dWjIPd','10DlCeMH','33tXMZNU','25336ZEgeJd','1DQMToq','976647qkfmox','941649ujvmGm','2620372YxyMrf'];_0x5bf8=function(){return _0x25fec3;};return _0x5bf8();}export*from'./msg';export*from'./user';export*from'./webapi';export*from'./sign';export*from'./system'; \ No newline at end of file diff --git a/src/core.lib/src/apis/msg.js b/src/core.lib/src/apis/msg.js index f485a1ac..a2aa34c0 100644 --- a/src/core.lib/src/apis/msg.js +++ b/src/core.lib/src/apis/msg.js @@ -1 +1 @@ -const _0x1aee28=_0x39e2;(function(_0x31bb02,_0x1e1858){const _0x8cada5=_0x39e2,_0x203a69=_0x31bb02();while(!![]){try{const _0x4ddae9=parseInt(_0x8cada5(0x188))/0x1+parseInt(_0x8cada5(0x156))/0x2+parseInt(_0x8cada5(0x15b))/0x3+parseInt(_0x8cada5(0x18f))/0x4*(parseInt(_0x8cada5(0x16c))/0x5)+-parseInt(_0x8cada5(0x15e))/0x6*(-parseInt(_0x8cada5(0x172))/0x7)+-parseInt(_0x8cada5(0x17a))/0x8+-parseInt(_0x8cada5(0x179))/0x9*(parseInt(_0x8cada5(0x158))/0xa);if(_0x4ddae9===_0x1e1858)break;else _0x203a69['push'](_0x203a69['shift']());}catch(_0x5e38ab){_0x203a69['push'](_0x203a69['shift']());}}}(_0x3851,0x4d53b));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';function _0x39e2(_0x278f5a,_0x2c91e6){const _0x3851e8=_0x3851();return _0x39e2=function(_0x39e213,_0x2f28f9){_0x39e213=_0x39e213-0x154;let _0x22b600=_0x3851e8[_0x39e213];return _0x22b600;},_0x39e2(_0x278f5a,_0x2c91e6);}import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';function _0x3851(){const _0x28ee1b=['sendStatus','getMsgsByMsgId','getMsgsIncludeSelf','session','com.tencent.multimsg','16461ZhYjGL','2159904jECDbB','sendMsg','peerUid','onMsgInfoListUpdate','activateChat','chatType','parse','getMsgService','setMsgRead','length','转发消息超时','setMsgEmojiLikes','delete','onAddSendMsg','153378RTGyih','multiForwardMsgWithComment','recallMsg','QmwpO','bytesData','wzwTJ','mkxvM','12usNsJz','arkElement','set','elements','activateChatAndGetHistory','1208916aeNfqF','msgId','3620LYCWsF','senderUid','forEach','96021hOGFNW','发送超时','LMqvj','1416wHNHGK','addListener','qJNGl','getMsgsBySeqAndCount','toString','RuIhE','onLoginSuccess','fetchRecentContact','uid','lWGWZ','kXtXG','forwardMsg','then','LKOub','654430ApYSGH','swaWS','ASLtb','bUXbC','hcabX','nick','1967OzdmcD','multiForwardMsg'];_0x3851=function(){return _0x28ee1b;};return _0x3851();}import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener[_0x1aee28(0x187)]=_0x104976=>{const _0x31f338=_0x1aee28,_0x28a48f={'bUXbC':function(_0x48394d,_0x2e866a){return _0x48394d(_0x2e866a);}};for(const [_0x5b16dc,_0x217a79]of sentMsgTasks){_0x28a48f[_0x31f338(0x16f)](_0x217a79,_0x104976),sentMsgTasks[_0x31f338(0x186)](_0x5b16dc);}if(sendMessagePool[_0x104976[_0x31f338(0x17c)]]){const _0x336806=sendMessagePool[_0x104976[_0x31f338(0x17c)]]?.(_0x104976);_0x336806 instanceof Promise&&_0x336806['then']()['catch'](logError);}},msgListener[_0x1aee28(0x17d)]=_0x3b7b87=>{const _0x5f0bf7=_0x1aee28,_0x3e33f8={'wzwTJ':function(_0x2eea60,_0x1d3fad){return _0x2eea60 instanceof _0x1d3fad;},'XRfyy':function(_0x4950c9,_0x1e2faf){return _0x4950c9(_0x1e2faf);}};_0x3b7b87[_0x5f0bf7(0x15a)](_0x398c7f=>{const _0x59b25a=_0x5f0bf7;new Promise((_0x2aa7ce,_0x27dbd9)=>{const _0x45510d=_0x39e2;for(const _0x5a8758 in sendSuccessCBMap){const _0x7af85f=sendSuccessCBMap[_0x5a8758],_0x5e3f18=_0x7af85f(_0x398c7f),_0x48b365=_0x134eb3=>{_0x134eb3&&delete sendSuccessCBMap[_0x5a8758];};_0x3e33f8[_0x45510d(0x18d)](_0x5e3f18,Promise)?_0x5e3f18[_0x45510d(0x16a)](_0x48b365):_0x3e33f8['XRfyy'](_0x48b365,_0x5e3f18);}})[_0x59b25a(0x16a)]()['catch'](log);});},setTimeout(()=>{const _0xdf2fcb=_0x1aee28;napCatCore[_0xdf2fcb(0x164)](()=>{const _0xeab113=_0xdf2fcb;napCatCore[_0xeab113(0x15f)](msgListener);});},0x64);export class NTQQMsgApi{static async['setEmojiLike'](_0x1ca4cc,_0x1fdf4d,_0x36f615,_0x401888=!![]){const _0x2286a7=_0x1aee28;return _0x36f615=_0x36f615[_0x2286a7(0x162)](),napCatCore[_0x2286a7(0x177)][_0x2286a7(0x181)]()[_0x2286a7(0x185)](_0x1ca4cc,_0x1fdf4d,_0x36f615,_0x36f615[_0x2286a7(0x183)]>0x3?'2':'1',_0x401888);}static async['getMultiMsg'](_0x4c7fb9,_0x22f054,_0x1717b5){const _0x50909a=_0x1aee28;return napCatCore[_0x50909a(0x177)][_0x50909a(0x181)]()['getMultiMsg'](_0x4c7fb9,_0x22f054,_0x1717b5);}static async[_0x1aee28(0x175)](_0x23238b,_0x55636a){const _0x31e594=_0x1aee28;return await napCatCore[_0x31e594(0x177)]['getMsgService']()['getMsgsByMsgId'](_0x23238b,_0x55636a);}static async[_0x1aee28(0x161)](_0x258f2e,_0x3c5181,_0x5c5c4e,_0x3bc4c8,_0x1c2dc4){const _0x1089ad=_0x1aee28;return await napCatCore[_0x1089ad(0x177)][_0x1089ad(0x181)]()[_0x1089ad(0x161)](_0x258f2e,_0x3c5181,_0x5c5c4e,_0x3bc4c8,_0x1c2dc4);}static async[_0x1aee28(0x17e)](_0x45a2d8){}static async[_0x1aee28(0x155)](_0x4b04eb){}static async[_0x1aee28(0x182)](_0x3e06a8){const _0x2a138e=_0x1aee28;return napCatCore['session'][_0x2a138e(0x181)]()[_0x2a138e(0x182)](_0x3e06a8);}static async['getMsgHistory'](_0x104cde,_0x2bbcff,_0x49cb9d){const _0x5caa17=_0x1aee28;return napCatCore[_0x5caa17(0x177)]['getMsgService']()[_0x5caa17(0x176)](_0x104cde,_0x2bbcff,_0x49cb9d,!![]);}static async[_0x1aee28(0x165)](){}static async['recallMsg'](_0x3f4243,_0x49f056){const _0x392359=_0x1aee28;await napCatCore[_0x392359(0x177)][_0x392359(0x181)]()[_0x392359(0x18a)]({'chatType':_0x3f4243[_0x392359(0x17f)],'peerUid':_0x3f4243[_0x392359(0x17c)]},_0x49f056);}static async[_0x1aee28(0x17b)](_0x120256,_0x375e86,_0x2362b3=!![],_0x5bb03e=0x2710){const _0xd21176=_0x1aee28,_0x33e749={'LMqvj':function(_0x502a10,_0x3b27b2){return _0x502a10>_0x3b27b2;},'hcabX':function(_0x40ff2d){return _0x40ff2d();},'QmwpO':function(_0x398a35,_0x4ee1cb){return _0x398a35(_0x4ee1cb);},'YhLWJ':_0xd21176(0x15c),'hOhbf':function(_0x3e9f10,_0xa7d526,_0x4005c5){return _0x3e9f10(_0xa7d526,_0x4005c5);}},_0x2c9635=_0x120256[_0xd21176(0x17c)];let _0x36d6c5=0x0;const _0x46914b=async()=>{const _0x946393=_0xd21176;if(_0x33e749[_0x946393(0x15d)](_0x36d6c5,_0x5bb03e))throw _0x946393(0x15c);const _0x1360e8=sendMessagePool[_0x120256[_0x946393(0x17c)]];if(_0x1360e8)return await sleep(0x1f4),_0x36d6c5+=0x1f4,await _0x33e749[_0x946393(0x170)](_0x46914b);else return;};return await _0x33e749['hcabX'](_0x46914b),new Promise((_0x72e9d7,_0x68fe3)=>{const _0x207bb8=_0xd21176,_0x202769={'gYPNN':function(_0x391a91,_0x5809f8){return _0x391a91===_0x5809f8;},'LKOub':function(_0x28961c,_0x54ce67){const _0x151076=_0x39e2;return _0x33e749[_0x151076(0x18b)](_0x28961c,_0x54ce67);},'mkxvM':function(_0x266f09,_0x4b152a){return _0x266f09(_0x4b152a);},'swaWS':_0x33e749['YhLWJ']};let _0x2db53c=![],_0xafe78c=null;const _0x5e1572=_0x33e749[_0x207bb8(0x170)](randomUUID);sendSuccessCBMap[_0x5e1572]=_0xd6cd6f=>{const _0x2c5bf0=_0x207bb8;if(_0xd6cd6f[_0x2c5bf0(0x157)]===_0xafe78c?.[_0x2c5bf0(0x157)]){if(_0x202769['gYPNN'](_0xd6cd6f[_0x2c5bf0(0x174)],0x2))return delete sendSuccessCBMap[_0x5e1572],_0x2db53c=!![],_0x202769[_0x2c5bf0(0x16b)](_0x72e9d7,_0xd6cd6f),!![];return![];}return![];},sendMessagePool[_0x2c9635]=async _0x418b56=>{delete sendMessagePool[_0x2c9635],_0xafe78c=_0x418b56;},_0x33e749['hOhbf'](setTimeout,()=>{const _0xf6b29f=_0x207bb8;if(_0x2db53c)return;delete sendMessagePool[_0x2c9635],delete sendSuccessCBMap[_0x5e1572],_0x202769[_0xf6b29f(0x18e)](_0x68fe3,_0x202769[_0xf6b29f(0x16d)]);},_0x5bb03e);const _0x68d6aa=napCatCore['session']['getMsgService']()[_0x207bb8(0x17b)]('0',_0x120256,_0x375e86,new Map());});}static async['forwardMsg'](_0x23d62e,_0x1dbf4a,_0x2a2911){const _0x3e0022=_0x1aee28;return napCatCore[_0x3e0022(0x177)]['getMsgService']()[_0x3e0022(0x169)](_0x2a2911,_0x23d62e,[_0x1dbf4a],new Map());}static async[_0x1aee28(0x173)](_0x55ca41,_0x566446,_0x2c4420){const _0x55bbf6={'qJNGl':function(_0x26ccf1,_0x88d428){return _0x26ccf1==_0x88d428;},'lWGWZ':function(_0x220284,_0x1fa8bd){return _0x220284(_0x1fa8bd);},'kXtXG':function(_0x47de62,_0x30029f){return _0x47de62(_0x30029f);},'RuIhE':function(_0x4dc28e){return _0x4dc28e();}},_0x5c2a83=_0x2c4420['map'](_0x2d64c0=>{const _0x55628f=_0x39e2;return{'msgId':_0x2d64c0,'senderShowName':selfInfo[_0x55628f(0x171)]};});return new Promise((_0x1d1dde,_0x54ab2d)=>{const _0x1962f7=_0x39e2,_0x1b72b8={'ASLtb':function(_0x3c161b,_0x46202e){const _0x31aabf=_0x39e2;return _0x55bbf6[_0x31aabf(0x168)](_0x3c161b,_0x46202e);}};let _0x23c577=![];const _0x44cc27=_0x2ae18a=>{const _0x309009=_0x39e2,_0x2292be=_0x2ae18a[_0x309009(0x154)]['find'](_0x29f3ad=>_0x29f3ad[_0x309009(0x190)]);if(!_0x2292be)return;const _0x3a450d=JSON[_0x309009(0x180)](_0x2292be[_0x309009(0x190)][_0x309009(0x18c)]);if(_0x3a450d['app']!=_0x309009(0x178))return;_0x55bbf6[_0x309009(0x160)](_0x2ae18a[_0x309009(0x17c)],_0x566446[_0x309009(0x17c)])&&_0x2ae18a[_0x309009(0x159)]==selfInfo[_0x309009(0x166)]&&(_0x23c577=!![],_0x55bbf6[_0x309009(0x167)](_0x1d1dde,_0x2ae18a));};sentMsgTasks[_0x1962f7(0x191)](_0x55bbf6[_0x1962f7(0x163)](randomUUID),_0x44cc27),setTimeout(()=>{const _0x4b1a20=_0x1962f7;!_0x23c577&&_0x1b72b8[_0x4b1a20(0x16e)](_0x54ab2d,_0x4b1a20(0x184));},0x1388),napCatCore['session'][_0x1962f7(0x181)]()[_0x1962f7(0x189)](_0x5c2a83,_0x55ca41,_0x566446,[],new Map());});}} \ No newline at end of file +const _0x5bac7f=_0x31d1;function _0x31d1(_0x5f5cbf,_0x366566){const _0xc08493=_0xc084();return _0x31d1=function(_0x31d1fc,_0x1e41fc){_0x31d1fc=_0x31d1fc-0x10d;let _0x2dbd46=_0xc08493[_0x31d1fc];return _0x2dbd46;},_0x31d1(_0x5f5cbf,_0x366566);}(function(_0x1c6e21,_0x5b0de7){const _0x4cb410=_0x31d1,_0x5afdca=_0x1c6e21();while(!![]){try{const _0x5d4a26=parseInt(_0x4cb410(0x111))/0x1+-parseInt(_0x4cb410(0x11f))/0x2*(-parseInt(_0x4cb410(0x113))/0x3)+-parseInt(_0x4cb410(0x123))/0x4+parseInt(_0x4cb410(0x143))/0x5*(-parseInt(_0x4cb410(0x13f))/0x6)+parseInt(_0x4cb410(0x11d))/0x7+-parseInt(_0x4cb410(0x10f))/0x8+parseInt(_0x4cb410(0x12b))/0x9;if(_0x5d4a26===_0x5b0de7)break;else _0x5afdca['push'](_0x5afdca['shift']());}catch(_0x10ce67){_0x5afdca['push'](_0x5afdca['shift']());}}}(_0xc084,0x2ce59));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';function _0xc084(){const _0x4f960f=['map','83590gwXBQC','getMsgsByMsgId','forwardMsg','364728URBogs','KsONx','193157toocgM','getMsgsBySeqAndCount','95661AJZbOa','multiForwardMsg','xMXZa','com.tencent.multimsg','find','bytesData','setMsgRead','getMsgsIncludeSelf','WXOXE','session','976192guLGPo','RIMUJ','10yupeYh','setEmojiLike','getMsgService','recallMsg','21292PMtRXv','sendMsg','peerUid','YhhTU','app','nick','chatType','arkElement','543645zhspeH','chOoL','fetchRecentContact','multiForwardMsgWithComment','msgId','jRKxa','onLoginSuccess','IGgTl','delete','DKvrg','sendStatus','then','SxGZQ','activateChat','catch','XnZbZ','onMsgInfoListUpdate','addListener','PCThX','forEach','114FcjUjk','onAddSendMsg','getMsgHistory'];_0xc084=function(){return _0x4f960f;};return _0xc084();}const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener[_0x5bac7f(0x140)]=_0x3714be=>{const _0x4f5bd2=_0x5bac7f;for(const [_0x41a6a2,_0x46ccec]of sentMsgTasks){_0x46ccec(_0x3714be),sentMsgTasks[_0x4f5bd2(0x133)](_0x41a6a2);}if(sendMessagePool[_0x3714be[_0x4f5bd2(0x125)]]){const _0x42b1a6=sendMessagePool[_0x3714be['peerUid']]?.(_0x3714be);_0x42b1a6 instanceof Promise&&_0x42b1a6[_0x4f5bd2(0x136)]()[_0x4f5bd2(0x139)](logError);}},msgListener[_0x5bac7f(0x13b)]=_0x466ae2=>{const _0x33773b=_0x5bac7f,_0x5bf7a9={'UuFuP':function(_0x29a5f9,_0x3e4dd3){return _0x29a5f9 instanceof _0x3e4dd3;},'IGgTl':function(_0x46eee5,_0x3c7a7e){return _0x46eee5(_0x3c7a7e);}};_0x466ae2[_0x33773b(0x13e)](_0x1f9387=>{const _0x2f896a=_0x33773b,_0xac9822={'SxGZQ':function(_0x1f0c81,_0x3d4682){return _0x5bf7a9['UuFuP'](_0x1f0c81,_0x3d4682);},'DKvrg':function(_0x518041,_0x48a319){const _0xcfe14a=_0x31d1;return _0x5bf7a9[_0xcfe14a(0x132)](_0x518041,_0x48a319);}};new Promise((_0x1fd9b2,_0x67ee72)=>{const _0x277e1f=_0x31d1;for(const _0x546a3b in sendSuccessCBMap){const _0x261738=sendSuccessCBMap[_0x546a3b],_0x2cecfd=_0x261738(_0x1f9387),_0x4c3adc=_0x4ecbbc=>{_0x4ecbbc&&delete sendSuccessCBMap[_0x546a3b];};_0xac9822[_0x277e1f(0x137)](_0x2cecfd,Promise)?_0x2cecfd[_0x277e1f(0x136)](_0x4c3adc):_0xac9822[_0x277e1f(0x134)](_0x4c3adc,_0x2cecfd);}})[_0x2f896a(0x136)]()[_0x2f896a(0x139)](log);});},setTimeout(()=>{const _0x338427=_0x5bac7f;napCatCore[_0x338427(0x131)](()=>{const _0x24db68=_0x338427;napCatCore[_0x24db68(0x13c)](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x5bac7f(0x120)](_0x4682c3,_0x534e7a,_0x5eef8c,_0x5c294c=!![]){const _0x25682a=_0x5bac7f,_0x28a497={'KsONx':function(_0x12b68a,_0x5657a9){return _0x12b68a>_0x5657a9;}};return _0x5eef8c=_0x5eef8c['toString'](),napCatCore[_0x25682a(0x11c)][_0x25682a(0x121)]()['setMsgEmojiLikes'](_0x4682c3,_0x534e7a,_0x5eef8c,_0x28a497[_0x25682a(0x110)](_0x5eef8c['length'],0x3)?'2':'1',_0x5c294c);}static async['getMultiMsg'](_0x525191,_0x32163d,_0x80928a){const _0x57f7e3=_0x5bac7f;return napCatCore['session'][_0x57f7e3(0x121)]()['getMultiMsg'](_0x525191,_0x32163d,_0x80928a);}static async['getMsgsByMsgId'](_0x522d29,_0x22b9e6){const _0x27bc5d=_0x5bac7f;return await napCatCore[_0x27bc5d(0x11c)][_0x27bc5d(0x121)]()[_0x27bc5d(0x10d)](_0x522d29,_0x22b9e6);}static async[_0x5bac7f(0x112)](_0xbfc3e9,_0x47013e,_0x58cca4,_0x105e6d,_0x11bd7e){const _0x3093f0=_0x5bac7f;return await napCatCore[_0x3093f0(0x11c)][_0x3093f0(0x121)]()['getMsgsBySeqAndCount'](_0xbfc3e9,_0x47013e,_0x58cca4,_0x105e6d,_0x11bd7e);}static async[_0x5bac7f(0x138)](_0x5a974d){}static async['activateChatAndGetHistory'](_0x107143){}static async[_0x5bac7f(0x119)](_0x2c9252){const _0x145b0b=_0x5bac7f;return napCatCore[_0x145b0b(0x11c)][_0x145b0b(0x121)]()[_0x145b0b(0x119)](_0x2c9252);}static async[_0x5bac7f(0x141)](_0x292b68,_0x52d699,_0x308329){const _0x5ec9e5=_0x5bac7f;return napCatCore['session'][_0x5ec9e5(0x121)]()[_0x5ec9e5(0x11a)](_0x292b68,_0x52d699,_0x308329,!![]);}static async[_0x5bac7f(0x12d)](){}static async['recallMsg'](_0x252dcf,_0x21ac7c){const _0x106c8c=_0x5bac7f;await napCatCore['session'][_0x106c8c(0x121)]()[_0x106c8c(0x122)]({'chatType':_0x252dcf[_0x106c8c(0x129)],'peerUid':_0x252dcf['peerUid']},_0x21ac7c);}static async[_0x5bac7f(0x124)](_0x393690,_0x179003,_0x564d3c=!![],_0x1437a7=0x2710){const _0x57f082=_0x5bac7f,_0x5ad8ff={'chOoL':function(_0x1e66dd,_0xbe399a){return _0x1e66dd>_0xbe399a;},'RIMUJ':'发送超时','WXOXE':function(_0x27e283,_0x32e1d9){return _0x27e283(_0x32e1d9);},'jRKxa':function(_0x2b6249){return _0x2b6249();},'YhhTU':function(_0x230546,_0x3edca0){return _0x230546===_0x3edca0;},'XnZbZ':function(_0x1f3a9e){return _0x1f3a9e();},'uPKpc':function(_0x47a67c,_0x5a04ea,_0x2121c8){return _0x47a67c(_0x5a04ea,_0x2121c8);}},_0x3261d9=_0x393690[_0x57f082(0x125)];let _0x29916d=0x0;const _0x4754b7=async()=>{const _0x32e776=_0x57f082;if(_0x5ad8ff[_0x32e776(0x12c)](_0x29916d,_0x1437a7))throw _0x5ad8ff[_0x32e776(0x11e)];const _0x1e6696=sendMessagePool[_0x393690['peerUid']];if(_0x1e6696)return await _0x5ad8ff[_0x32e776(0x11b)](sleep,0x1f4),_0x29916d+=0x1f4,await _0x5ad8ff[_0x32e776(0x130)](_0x4754b7);else return;};return await _0x4754b7(),new Promise((_0x5177d6,_0xbaa2c9)=>{const _0x22f87a=_0x57f082;let _0x5f2473=![],_0x36fb65=null;const _0x212718=_0x5ad8ff[_0x22f87a(0x13a)](randomUUID);sendSuccessCBMap[_0x212718]=_0x385204=>{const _0x1cd0e9=_0x22f87a;if(_0x385204[_0x1cd0e9(0x12f)]===_0x36fb65?.[_0x1cd0e9(0x12f)]){if(_0x5ad8ff[_0x1cd0e9(0x126)](_0x385204[_0x1cd0e9(0x135)],0x2))return delete sendSuccessCBMap[_0x212718],_0x5f2473=!![],_0x5ad8ff[_0x1cd0e9(0x11b)](_0x5177d6,_0x385204),!![];return![];}return![];},sendMessagePool[_0x3261d9]=async _0x218b2c=>{delete sendMessagePool[_0x3261d9],_0x36fb65=_0x218b2c;},_0x5ad8ff['uPKpc'](setTimeout,()=>{const _0xafde84=_0x22f87a;if(_0x5f2473)return;delete sendMessagePool[_0x3261d9],delete sendSuccessCBMap[_0x212718],_0x5ad8ff[_0xafde84(0x11b)](_0xbaa2c9,_0x5ad8ff[_0xafde84(0x11e)]);},_0x1437a7);const _0x337b2e=napCatCore['session'][_0x22f87a(0x121)]()[_0x22f87a(0x124)]('0',_0x393690,_0x179003,new Map());});}static async[_0x5bac7f(0x10e)](_0x30b87b,_0x310c01,_0x519b71){const _0x10be44=_0x5bac7f;return napCatCore[_0x10be44(0x11c)][_0x10be44(0x121)]()['forwardMsg'](_0x519b71,_0x30b87b,[_0x310c01],new Map());}static async[_0x5bac7f(0x114)](_0x4ba57e,_0x4275c0,_0x297385){const _0x4c7354=_0x5bac7f,_0x4de953={'TXDhC':function(_0xe25921,_0x188c31){return _0xe25921!=_0x188c31;},'PCThX':function(_0x14b851,_0x473a37){return _0x14b851==_0x473a37;},'xMXZa':function(_0x5a5992,_0xe83867){return _0x5a5992==_0xe83867;}},_0x3267b3=_0x297385[_0x4c7354(0x142)](_0x18e081=>{const _0x37a748=_0x4c7354;return{'msgId':_0x18e081,'senderShowName':selfInfo[_0x37a748(0x128)]};});return new Promise((_0x3ee664,_0xde4702)=>{const _0x42139f=_0x4c7354;let _0x5ca539=![];const _0x14cb98=_0x4d2073=>{const _0x334821=_0x31d1,_0x49177b=_0x4d2073['elements'][_0x334821(0x117)](_0x50a010=>_0x50a010[_0x334821(0x12a)]);if(!_0x49177b)return;const _0x352715=JSON['parse'](_0x49177b[_0x334821(0x12a)][_0x334821(0x118)]);if(_0x4de953['TXDhC'](_0x352715[_0x334821(0x127)],_0x334821(0x116)))return;_0x4de953[_0x334821(0x13d)](_0x4d2073['peerUid'],_0x4275c0[_0x334821(0x125)])&&_0x4de953[_0x334821(0x115)](_0x4d2073['senderUid'],selfInfo['uid'])&&(_0x5ca539=!![],_0x3ee664(_0x4d2073));};sentMsgTasks['set'](randomUUID(),_0x14cb98),setTimeout(()=>{!_0x5ca539&&_0xde4702('转发消息超时');},0x1388),napCatCore[_0x42139f(0x11c)]['getMsgService']()[_0x42139f(0x12e)](_0x3267b3,_0x4ba57e,_0x4275c0,[],new Map());});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/system.js b/src/core.lib/src/apis/system.js index 39b4ecda..e5451155 100644 --- a/src/core.lib/src/apis/system.js +++ b/src/core.lib/src/apis/system.js @@ -1 +1 @@ -function _0x9328(){var _0x4dc20e=['2529XxMxCx','63994644PrEYOa','303TFAuCS','13611675XyAExo','7eSuqfv','12280VAfFgB','6845670pzBbUs','99767mXhadO','10aTAQOE','28BmBeff','38072uFAPgm','6737394NPxIQU'];_0x9328=function(){return _0x4dc20e;};return _0x9328();}(function(_0x51993b,_0x1973f7){var _0x3632c9=_0x402f,_0x1c8cbc=_0x51993b();while(!![]){try{var _0x2dc09e=-parseInt(_0x3632c9(0x190))/0x1*(parseInt(_0x3632c9(0x192))/0x2)+parseInt(_0x3632c9(0x197))/0x3*(parseInt(_0x3632c9(0x193))/0x4)+-parseInt(_0x3632c9(0x18f))/0x5+-parseInt(_0x3632c9(0x194))/0x6*(parseInt(_0x3632c9(0x18d))/0x7)+-parseInt(_0x3632c9(0x18e))/0x8*(parseInt(_0x3632c9(0x195))/0x9)+parseInt(_0x3632c9(0x191))/0xa*(-parseInt(_0x3632c9(0x18c))/0xb)+parseInt(_0x3632c9(0x196))/0xc;if(_0x2dc09e===_0x1973f7)break;else _0x1c8cbc['push'](_0x1c8cbc['shift']());}catch(_0x4043e6){_0x1c8cbc['push'](_0x1c8cbc['shift']());}}}(_0x9328,0xb3da2));import{napCatCore}from'@/core';function _0x402f(_0x7b534d,_0x59e0a3){var _0x93282e=_0x9328();return _0x402f=function(_0x402f05,_0xf13cfa){_0x402f05=_0x402f05-0x18c;var _0x3771c3=_0x93282e[_0x402f05];return _0x3771c3;},_0x402f(_0x7b534d,_0x59e0a3);}export class NTQQSystemApi{static async['hasOtherRunningQQProcess'](){return napCatCore['util']['hasOtherRunningQQProcess']();}} \ No newline at end of file +function _0xe208(_0x239302,_0x48d04f){var _0x34ef9f=_0x34ef();return _0xe208=function(_0xe20843,_0x541c07){_0xe20843=_0xe20843-0x13e;var _0x19a61e=_0x34ef9f[_0xe20843];return _0x19a61e;},_0xe208(_0x239302,_0x48d04f);}var _0x3f60c9=_0xe208;function _0x34ef(){var _0x406d51=['4900240iHNPdG','1370170vDQCth','2972523tLPDlP','4203250HeADmm','908327esyrES','4ZClBmZ','hasOtherRunningQQProcess','5169774BrFFYi','8558163ynHfmc','10JnedOb','7nGjUnb','util'];_0x34ef=function(){return _0x406d51;};return _0x34ef();}(function(_0x1f3083,_0xe1cf2e){var _0xf220e2=_0xe208,_0x6caf01=_0x1f3083();while(!![]){try{var _0x2e3826=-parseInt(_0xf220e2(0x144))/0x1+parseInt(_0xf220e2(0x141))/0x2+-parseInt(_0xf220e2(0x142))/0x3*(-parseInt(_0xf220e2(0x145))/0x4)+-parseInt(_0xf220e2(0x143))/0x5+-parseInt(_0xf220e2(0x147))/0x6*(parseInt(_0xf220e2(0x13e))/0x7)+parseInt(_0xf220e2(0x140))/0x8+-parseInt(_0xf220e2(0x148))/0x9*(-parseInt(_0xf220e2(0x149))/0xa);if(_0x2e3826===_0xe1cf2e)break;else _0x6caf01['push'](_0x6caf01['shift']());}catch(_0x5d654c){_0x6caf01['push'](_0x6caf01['shift']());}}}(_0x34ef,0x99815));import{napCatCore}from'@/core';export class NTQQSystemApi{static async[_0x3f60c9(0x146)](){var _0x1497e8=_0x3f60c9;return napCatCore[_0x1497e8(0x13f)][_0x1497e8(0x146)]();}} \ No newline at end of file diff --git a/src/core.lib/src/apis/user.js b/src/core.lib/src/apis/user.js index bd389938..240f0d2a 100644 --- a/src/core.lib/src/apis/user.js +++ b/src/core.lib/src/apis/user.js @@ -1 +1 @@ -const _0x463562=_0x820d;(function(_0x32af5e,_0x29a8e9){const _0x2e6aef=_0x820d,_0x43d405=_0x32af5e();while(!![]){try{const _0xf078dd=-parseInt(_0x2e6aef(0x171))/0x1+parseInt(_0x2e6aef(0x19a))/0x2+-parseInt(_0x2e6aef(0x1a1))/0x3*(parseInt(_0x2e6aef(0x179))/0x4)+parseInt(_0x2e6aef(0x19e))/0x5+parseInt(_0x2e6aef(0x183))/0x6*(parseInt(_0x2e6aef(0x175))/0x7)+-parseInt(_0x2e6aef(0x1a4))/0x8+parseInt(_0x2e6aef(0x164))/0x9*(-parseInt(_0x2e6aef(0x185))/0xa);if(_0xf078dd===_0x29a8e9)break;else _0x43d405['push'](_0x43d405['shift']());}catch(_0x3ee825){_0x43d405['push'](_0x43d405['shift']());}}}(_0xb970,0x3b077));import{Credentials,selfInfo,uid2UinMap}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';function _0xb970(){const _0x47f177=['getUserDetailInfoWithBizInfo','exFvC','setQQAvatar','forEach','AvtPe','rKqRx','请求获取Skey时失败','ZRVZE','HttpsGetCookies','getUserDetailInfo\x20timeout','setBuddyProfileLike','result','hGvDo','&clientkey=','soMPp','get','setHeader','获取Pskey失败','376664KSzkNJ','setSelfOnlineStatus','clientKey','getMsgService','2067605zeXgvz','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','getPSkey','15bIduqC','errMsg','getProfileService','507808ynrRUU','getProfileLikeService','uin','session','9RNsMXS','robotUinRanges','then','forceFetchClientKey','skey','onLoginSuccess','CreatTime','getPskey','mVeFx','RyXoC','addListener','entries','assign','140479ItuOWf','aTVDC','vwFCa','PskeyData','7DgtyOP','keyIndex','length','ejdXA','13228SKRaol','vFTcf','getRobotUinRange','now','getTipOffService','vSGrE','like','PskeyTime','set','uid','2562342lblkZr','onProfileDetailInfoChanged','5666370EVQnnm','push','Skey'];_0xb970=function(){return _0x47f177;};return _0xb970();}import{RequestUtil}from'@/common/utils/request';import{logDebug,logError}from'@/common/utils/log';function _0x820d(_0x2feb50,_0x1b72a1){const _0xb970ea=_0xb970();return _0x820d=function(_0x820d5b,_0x5bbaf2){_0x820d5b=_0x820d5b-0x161;let _0x2f5bda=_0xb970ea[_0x820d5b];return _0x2f5bda;},_0x820d(_0x2feb50,_0x1b72a1);}const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x463562(0x184)]=_0x165a0a=>{const _0x29414f=_0x463562;userInfoCache[_0x165a0a[_0x29414f(0x182)]]=_0x165a0a,userDetailHandlers[_0x29414f(0x18b)](_0x3f6674=>_0x3f6674(_0x165a0a));},setTimeout(()=>{const _0x2259e2=_0x463562;napCatCore[_0x2259e2(0x169)](()=>{const _0x2506d1=_0x2259e2;napCatCore[_0x2506d1(0x16e)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x463562(0x19b)](_0x787e50,_0x2cc9dc,_0x33deae){const _0x1f7f6e=_0x463562;return napCatCore[_0x1f7f6e(0x163)][_0x1f7f6e(0x19d)]()['setStatus']({'status':_0x787e50,'extStatus':_0x2cc9dc,'batteryStatus':_0x33deae});}static async[_0x463562(0x17f)](_0x1396aa,_0x45cf55=0x1){const _0x152cb7=_0x463562;return napCatCore[_0x152cb7(0x163)][_0x152cb7(0x161)]()[_0x152cb7(0x192)]({'friendUid':_0x1396aa,'sourceId':0x47,'doLikeCount':_0x45cf55,'doLikeTollCount':0x0});}static async[_0x463562(0x18a)](_0x50130a){const _0x1f215f=_0x463562,_0x8cc80=napCatCore[_0x1f215f(0x163)][_0x1f215f(0x1a3)]()[_0x1f215f(0x198)](_0x50130a);return{'result':_0x8cc80?.['result'],'errMsg':_0x8cc80?.[_0x1f215f(0x1a2)]};}static async['getSelfInfo'](){}static async['getUserInfo'](_0x32b8f1){}static async['getUserDetailInfo'](_0x3d6bbd){const _0x4c743c=_0x463562,_0x1697af={'rKqRx':_0x4c743c(0x191),'mRsDR':function(_0x11ace9,_0x446616){return _0x11ace9===_0x446616;},'exFvC':function(_0x402706,_0x4face5){return _0x402706(_0x4face5);},'RyXoC':function(_0xdc458e){return _0xdc458e();},'aTVDC':function(_0x5f41c2,_0x9307f,_0x269053){return _0x5f41c2(_0x9307f,_0x269053);}},_0x3ec1c4=napCatCore['session'][_0x4c743c(0x1a3)]();return new Promise((_0x1e6c18,_0x24020f)=>{const _0x4088f1=_0x4c743c,_0x2efb37=_0x1697af[_0x4088f1(0x16d)](randomUUID);let _0x40266b=![];_0x1697af[_0x4088f1(0x172)](setTimeout,()=>{const _0x5868f8=_0x4088f1;!_0x40266b&&_0x24020f(_0x1697af[_0x5868f8(0x18d)]);},0x1388),userDetailHandlers['set'](_0x2efb37,_0x30be88=>{const _0x4890e1=_0x4088f1;_0x1697af['mRsDR'](_0x30be88[_0x4890e1(0x182)],_0x3d6bbd)&&(_0x40266b=!![],userDetailHandlers['delete'](_0x2efb37),uid2UinMap[_0x3d6bbd]=_0x30be88[_0x4890e1(0x162)],_0x1697af[_0x4890e1(0x189)](_0x1e6c18,_0x30be88));}),_0x3ec1c4[_0x4088f1(0x188)](_0x3d6bbd,[0x0])[_0x4088f1(0x166)](_0x3eab5f=>{});});}static async[_0x463562(0x1a0)](_0x2e5ca9,_0x4597a0=!![]){const _0x351d1d=_0x463562,_0x3e5414={'soMPp':function(_0x1e928a,_0x41fd35){return _0x1e928a>_0x41fd35;},'vPutX':function(_0x83cfc1,_0x5b026a){return _0x83cfc1-_0x5b026a;},'hGvDo':function(_0x149875,_0x2bc19d){return _0x149875*_0x2bc19d;},'vwFCa':function(_0x597406,_0x542952){return _0x597406===_0x542952;},'ZRVZE':function(_0xcecd57,_0x55c972,_0x354335){return _0xcecd57(_0x55c972,_0x354335);}},_0x1d1ac3=[],_0x37212b={};for(const _0x5a20d2 in _0x2e5ca9){const _0x8a69fe=Credentials[_0x351d1d(0x174)][_0x351d1d(0x197)](_0x2e5ca9[_0x5a20d2]),_0x41c26d=Credentials[_0x351d1d(0x180)][_0x351d1d(0x197)](_0x2e5ca9[_0x5a20d2]);!_0x8a69fe||!_0x41c26d||_0x3e5414[_0x351d1d(0x196)](_0x3e5414['vPutX'](Date[_0x351d1d(0x17c)](),_0x41c26d),_0x3e5414[_0x351d1d(0x194)](0x708,0x3e8))||!_0x4597a0?_0x1d1ac3[_0x351d1d(0x186)](_0x2e5ca9[_0x5a20d2]):_0x37212b[_0x2e5ca9[_0x5a20d2]]=_0x8a69fe;}let _0x302a86={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x3e5414[_0x351d1d(0x196)](_0x1d1ac3[_0x351d1d(0x177)],0x0)&&(_0x302a86=await napCatCore[_0x351d1d(0x163)][_0x351d1d(0x17d)]()[_0x351d1d(0x16b)](_0x1d1ac3,!![]));const _0x414368=_0x302a86['domainPskeyMap'];for(const _0x350809 of _0x414368[_0x351d1d(0x16f)]()){Credentials[_0x351d1d(0x174)][_0x351d1d(0x181)](_0x350809[0x0],_0x350809[0x1]),Credentials[_0x351d1d(0x180)]['set'](_0x350809[0x0],Date[_0x351d1d(0x17c)]());}const _0x2058f7=Object[_0x351d1d(0x170)](Object['fromEntries'](_0x414368),_0x37212b);if(_0x3e5414[_0x351d1d(0x173)](_0x302a86['result'],0x0))return _0x2058f7;else _0x3e5414[_0x351d1d(0x18f)](logError,_0x351d1d(0x199),_0x302a86[_0x351d1d(0x1a2)]);return{};}static async['getRobotUinRange'](){const _0x202bd9=_0x463562,_0x236163=await napCatCore[_0x202bd9(0x163)]['getRobotService']()[_0x202bd9(0x17b)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x236163?.['response']?.[_0x202bd9(0x165)];}static async['getSkey'](_0x13d35a=!![]){const _0x40cde9=_0x463562,_0x11ff4f={'mVeFx':function(_0x18099a,_0x1720f1){return _0x18099a==_0x1720f1;},'ejdXA':function(_0xb0b157,_0x2b486b){return _0xb0b157>_0x2b486b;},'AvtPe':function(_0x459ae4,_0x589fb7){return _0x459ae4-_0x589fb7;},'zBpqj':function(_0x3c1011,_0x2d403f){return _0x3c1011*_0x2d403f;},'ggJXx':function(_0x3a8531,_0x5b95fa){return _0x3a8531!==_0x5b95fa;},'vFTcf':function(_0x386301,_0x3e3e45){return _0x386301+_0x3e3e45;},'EripV':function(_0xe2a77b,_0x488ebc){return _0xe2a77b+_0x488ebc;},'oxBot':function(_0x205949,_0x6e8bbe){return _0x205949+_0x6e8bbe;},'vSGrE':_0x40cde9(0x168)};try{if(_0x11ff4f[_0x40cde9(0x16c)](Credentials[_0x40cde9(0x16a)],0x0)||_0x11ff4f[_0x40cde9(0x178)](_0x11ff4f[_0x40cde9(0x18c)](Date[_0x40cde9(0x17c)](),Credentials[_0x40cde9(0x16a)]),_0x11ff4f['zBpqj'](0x3e8,0xe10))||!_0x13d35a){const _0xaf1b85=await napCatCore[_0x40cde9(0x163)]['getTicketService']()[_0x40cde9(0x167)]('');if(_0x11ff4f['ggJXx'](_0xaf1b85[_0x40cde9(0x193)],0x0))return'';const _0x4cb1db=_0xaf1b85[_0x40cde9(0x19c)],_0xdf2fee=_0xaf1b85[_0x40cde9(0x176)],_0x526ec1=_0x11ff4f[_0x40cde9(0x17a)](_0x11ff4f['vFTcf'](_0x11ff4f['EripV'](_0x11ff4f['oxBot'](_0x11ff4f[_0x40cde9(0x17a)]('https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=',selfInfo[_0x40cde9(0x162)]),_0x40cde9(0x195)),_0x4cb1db),_0x40cde9(0x19f)),_0xdf2fee);let _0x3e7b62;try{_0x3e7b62=await RequestUtil[_0x40cde9(0x190)](_0x526ec1);}catch(_0x48fc8f){logDebug(_0x40cde9(0x18e),_0x48fc8f),_0x3e7b62=new Map();}const _0x5ed942=_0x3e7b62['get'](_0x11ff4f[_0x40cde9(0x17e)]);if(!_0x5ed942)return'';return Credentials[_0x40cde9(0x16a)]=Date['now'](),Credentials[_0x40cde9(0x187)]=_0x5ed942,_0x5ed942;}return Credentials['Skey'];}catch(_0x446972){}return undefined;}} \ No newline at end of file +function _0x5091(){const _0x2695a7=['keyIndex','onLoginSuccess','addListener','result','ZzKiI','16590624HvtldO','5KPkJJh','getUserInfo','JtbkY','3016TsoJJx','forEach','getUserDetailInfoWithBizInfo','AeOJY','getUserDetailInfo','setHeader','entries','setStatus','PskeyTime','now','43430AozgmG','then','CreatTime','uin','&clientkey=','ENDme','mCgdx','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','response','获取Pskey失败','QFMbe','Skey','set','clientKey','19017LHGyHs','forceFetchClientKey','19906oagUQs','getTipOffService','getRobotUinRange','HttpsGetCookies','robotUinRanges','694099BvevCm','6MENQiC','onProfileDetailInfoChanged','getUserDetailInfo\x20timeout','push','getProfileService','delete','session','1418523KjoLro','HupMq','getSelfInfo','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','tXAcB','get','473YYypcL','setBuddyProfileLike','NTEfn','bKmfO','errMsg','getProfileLikeService','DeLkZ','3019028UtRZDp','length','qIdmx','318CoRLdF','uid','skey','PskeyData','请求获取Skey时失败','getRobotService'];_0x5091=function(){return _0x2695a7;};return _0x5091();}const _0x428a8a=_0x2186;(function(_0xbf0536,_0x498bbb){const _0x10cba1=_0x2186,_0x2abeca=_0xbf0536();while(!![]){try{const _0x3cf59b=parseInt(_0x10cba1(0x18c))/0x1+-parseInt(_0x10cba1(0x17f))/0x2*(-parseInt(_0x10cba1(0x156))/0x3)+parseInt(_0x10cba1(0x153))/0x4*(parseInt(_0x10cba1(0x162))/0x5)+parseInt(_0x10cba1(0x185))/0x6*(-parseInt(_0x10cba1(0x184))/0x7)+-parseInt(_0x10cba1(0x165))/0x8*(parseInt(_0x10cba1(0x17d))/0x9)+parseInt(_0x10cba1(0x16f))/0xa*(-parseInt(_0x10cba1(0x14c))/0xb)+-parseInt(_0x10cba1(0x161))/0xc;if(_0x3cf59b===_0x498bbb)break;else _0x2abeca['push'](_0x2abeca['shift']());}catch(_0x3d852b){_0x2abeca['push'](_0x2abeca['shift']());}}}(_0x5091,0xba567));import{Credentials,selfInfo,uid2UinMap}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';function _0x2186(_0x47a9b9,_0x51e497){const _0x509166=_0x5091();return _0x2186=function(_0x2186a0,_0x23dc2c){_0x2186a0=_0x2186a0-0x147;let _0x4caccf=_0x509166[_0x2186a0];return _0x4caccf;},_0x2186(_0x47a9b9,_0x51e497);}import{randomUUID}from'crypto';import{RequestUtil}from'@/common/utils/request';import{logDebug,logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x428a8a(0x186)]=_0x2f5929=>{const _0x19640b=_0x428a8a;userInfoCache[_0x2f5929[_0x19640b(0x157)]]=_0x2f5929,userDetailHandlers[_0x19640b(0x166)](_0x549660=>_0x549660(_0x2f5929));},setTimeout(()=>{const _0x280a45=_0x428a8a;napCatCore[_0x280a45(0x15d)](()=>{const _0x2fb566=_0x280a45;napCatCore[_0x2fb566(0x15e)](profileListener);});},0x64);export class NTQQUserApi{static async['setSelfOnlineStatus'](_0x56e1ba,_0x239419,_0x545204){const _0x171312=_0x428a8a;return napCatCore[_0x171312(0x18b)]['getMsgService']()[_0x171312(0x16c)]({'status':_0x56e1ba,'extStatus':_0x239419,'batteryStatus':_0x545204});}static async['like'](_0x359743,_0x3b1e9f=0x1){const _0x337c5a=_0x428a8a;return napCatCore[_0x337c5a(0x18b)][_0x337c5a(0x151)]()[_0x337c5a(0x14d)]({'friendUid':_0x359743,'sourceId':0x47,'doLikeCount':_0x3b1e9f,'doLikeTollCount':0x0});}static async['setQQAvatar'](_0x1730a1){const _0x13a5e3=_0x428a8a,_0xbcad8d=napCatCore[_0x13a5e3(0x18b)][_0x13a5e3(0x189)]()[_0x13a5e3(0x16a)](_0x1730a1);return{'result':_0xbcad8d?.[_0x13a5e3(0x15f)],'errMsg':_0xbcad8d?.[_0x13a5e3(0x150)]};}static async[_0x428a8a(0x148)](){}static async[_0x428a8a(0x163)](_0x29d86f){}static async[_0x428a8a(0x169)](_0x1d7f33){const _0x356779=_0x428a8a,_0x227815={'GEKsW':function(_0x2c4fb3,_0x25a729){return _0x2c4fb3(_0x25a729);},'mCgdx':_0x356779(0x187)},_0x36c56d=napCatCore[_0x356779(0x18b)]['getProfileService']();return new Promise((_0x2dd7af,_0x3e3f41)=>{const _0x386a40=_0x356779,_0xea282f=randomUUID();let _0x803334=![];setTimeout(()=>{const _0x198f68=_0x2186;!_0x803334&&_0x227815['GEKsW'](_0x3e3f41,_0x227815[_0x198f68(0x175)]);},0x1388),userDetailHandlers[_0x386a40(0x17b)](_0xea282f,_0xc6a4ca=>{const _0x2a6b4d=_0x386a40;_0xc6a4ca[_0x2a6b4d(0x157)]===_0x1d7f33&&(_0x803334=!![],userDetailHandlers[_0x2a6b4d(0x18a)](_0xea282f),uid2UinMap[_0x1d7f33]=_0xc6a4ca[_0x2a6b4d(0x172)],_0x2dd7af(_0xc6a4ca));}),_0x36c56d[_0x386a40(0x167)](_0x1d7f33,[0x0])[_0x386a40(0x170)](_0x5cdaf7=>{});});}static async['getPSkey'](_0x4c6044,_0x35f3bd=!![]){const _0x5a2347=_0x428a8a,_0x1536ca={'ENDme':function(_0x1f3998,_0x58df55){return _0x1f3998||_0x58df55;},'qIdmx':function(_0x204f70,_0x2e452e){return _0x204f70>_0x2e452e;},'clLwJ':function(_0x38b54b,_0x1e2be7){return _0x38b54b-_0x1e2be7;},'HybHZ':function(_0x594af,_0x49fa3a){return _0x594af*_0x49fa3a;},'AeOJY':function(_0x33cbb7,_0x10551b){return _0x33cbb7===_0x10551b;},'ZzKiI':function(_0x561191,_0x10839d,_0x26fc36){return _0x561191(_0x10839d,_0x26fc36);}},_0x46c870=[],_0x54d9b8={};for(const _0x3d766d in _0x4c6044){const _0x34d9d2=Credentials[_0x5a2347(0x159)][_0x5a2347(0x14b)](_0x4c6044[_0x3d766d]),_0x1c98ec=Credentials[_0x5a2347(0x16d)][_0x5a2347(0x14b)](_0x4c6044[_0x3d766d]);_0x1536ca[_0x5a2347(0x174)](!_0x34d9d2,!_0x1c98ec)||_0x1536ca[_0x5a2347(0x155)](_0x1536ca['clLwJ'](Date[_0x5a2347(0x16e)](),_0x1c98ec),_0x1536ca['HybHZ'](0x708,0x3e8))||!_0x35f3bd?_0x46c870[_0x5a2347(0x188)](_0x4c6044[_0x3d766d]):_0x54d9b8[_0x4c6044[_0x3d766d]]=_0x34d9d2;}let _0x851080={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x1536ca[_0x5a2347(0x155)](_0x46c870[_0x5a2347(0x154)],0x0)&&(_0x851080=await napCatCore[_0x5a2347(0x18b)][_0x5a2347(0x180)]()['getPskey'](_0x46c870,!![]));const _0x1e9f15=_0x851080['domainPskeyMap'];for(const _0x2fb2ad of _0x1e9f15[_0x5a2347(0x16b)]()){Credentials['PskeyData'][_0x5a2347(0x17b)](_0x2fb2ad[0x0],_0x2fb2ad[0x1]),Credentials['PskeyTime']['set'](_0x2fb2ad[0x0],Date['now']());}const _0x3ecee7=Object['assign'](Object['fromEntries'](_0x1e9f15),_0x54d9b8);if(_0x1536ca[_0x5a2347(0x168)](_0x851080[_0x5a2347(0x15f)],0x0))return _0x3ecee7;else _0x1536ca[_0x5a2347(0x160)](logError,_0x5a2347(0x178),_0x851080[_0x5a2347(0x150)]);return{};}static async[_0x428a8a(0x181)](){const _0x5f303d=_0x428a8a,_0x3f9f26=await napCatCore[_0x5f303d(0x18b)][_0x5f303d(0x15b)]()[_0x5f303d(0x181)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x3f9f26?.[_0x5f303d(0x177)]?.[_0x5f303d(0x183)];}static async['getSkey'](_0x4a373f=!![]){const _0x19b60d=_0x428a8a,_0x5b7cb6={'kndTI':function(_0x467582,_0x5e3266){return _0x467582==_0x5e3266;},'BzrNr':function(_0x41fba1,_0x263dce){return _0x41fba1>_0x263dce;},'JtbkY':function(_0x59dd62,_0x5569a1){return _0x59dd62-_0x5569a1;},'tXAcB':function(_0x4a9ac8,_0x5ed1ee){return _0x4a9ac8*_0x5ed1ee;},'EEVHT':function(_0x256ac5,_0x4e449d){return _0x256ac5!==_0x4e449d;},'PJveN':function(_0x1d5f89,_0x320e9a){return _0x1d5f89+_0x320e9a;},'uJahB':function(_0xc32579,_0xed6f1f){return _0xc32579+_0xed6f1f;},'NTEfn':function(_0x61a40f,_0x1cb542){return _0x61a40f+_0x1cb542;},'QFMbe':function(_0x591adb,_0x44cfa2){return _0x591adb+_0x44cfa2;},'HupMq':_0x19b60d(0x149),'DeLkZ':_0x19b60d(0x173),'bKmfO':_0x19b60d(0x176),'fUlHy':_0x19b60d(0x15a)};try{if(_0x5b7cb6['kndTI'](Credentials[_0x19b60d(0x171)],0x0)||_0x5b7cb6['BzrNr'](_0x5b7cb6[_0x19b60d(0x164)](Date[_0x19b60d(0x16e)](),Credentials[_0x19b60d(0x171)]),_0x5b7cb6[_0x19b60d(0x14a)](0x3e8,0xe10))||!_0x4a373f){const _0xaa18b5=await napCatCore[_0x19b60d(0x18b)]['getTicketService']()[_0x19b60d(0x17e)]('');if(_0x5b7cb6['EEVHT'](_0xaa18b5[_0x19b60d(0x15f)],0x0))return'';const _0x3efed8=_0xaa18b5[_0x19b60d(0x17c)],_0x453bf2=_0xaa18b5[_0x19b60d(0x15c)],_0x51a38a=_0x5b7cb6['PJveN'](_0x5b7cb6['uJahB'](_0x5b7cb6[_0x19b60d(0x14e)](_0x5b7cb6[_0x19b60d(0x179)](_0x5b7cb6[_0x19b60d(0x147)],selfInfo['uin']),_0x5b7cb6[_0x19b60d(0x152)])+_0x3efed8,_0x5b7cb6[_0x19b60d(0x14f)]),_0x453bf2);let _0x13f96f;try{_0x13f96f=await RequestUtil[_0x19b60d(0x182)](_0x51a38a);}catch(_0x317301){logDebug(_0x5b7cb6['fUlHy'],_0x317301),_0x13f96f=new Map();}const _0x47b111=_0x13f96f[_0x19b60d(0x14b)](_0x19b60d(0x158));if(!_0x47b111)return'';return Credentials['CreatTime']=Date[_0x19b60d(0x16e)](),Credentials[_0x19b60d(0x17a)]=_0x47b111,_0x47b111;}return Credentials[_0x19b60d(0x17a)];}catch(_0x1ab182){}return undefined;}} \ No newline at end of file diff --git a/src/core.lib/src/apis/webapi.js b/src/core.lib/src/apis/webapi.js index a7ad351a..155015dd 100644 --- a/src/core.lib/src/apis/webapi.js +++ b/src/core.lib/src/apis/webapi.js @@ -1 +1 @@ -function _0x31d3(_0x1a0bfc,_0x255602){const _0x514d5b=_0x514d();return _0x31d3=function(_0x31d35f,_0x59fc31){_0x31d35f=_0x31d35f-0x19b;let _0x2530d5=_0x514d5b[_0x31d35f];return _0x2530d5;},_0x31d3(_0x1a0bfc,_0x255602);}const _0x2b06a5=_0x31d3;(function(_0x3999b2,_0x1a3171){const _0x3632ea=_0x31d3,_0x301c6d=_0x3999b2();while(!![]){try{const _0x219f0a=parseInt(_0x3632ea(0x23c))/0x1+-parseInt(_0x3632ea(0x1d7))/0x2*(parseInt(_0x3632ea(0x1e5))/0x3)+parseInt(_0x3632ea(0x1e3))/0x4*(-parseInt(_0x3632ea(0x22a))/0x5)+-parseInt(_0x3632ea(0x1ff))/0x6*(parseInt(_0x3632ea(0x1c8))/0x7)+parseInt(_0x3632ea(0x239))/0x8+parseInt(_0x3632ea(0x1c0))/0x9+parseInt(_0x3632ea(0x1b8))/0xa;if(_0x219f0a===_0x1a3171)break;else _0x301c6d['push'](_0x301c6d['shift']());}catch(_0xd8417d){_0x301c6d['push'](_0x301c6d['shift']());}}}(_0x514d,0xba9f9));import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';function _0x514d(){const _0x4fd1bf=['YFIIM','FmmYk','smHrz','&end=','mZMmf','bVNwW','talkative_list','dQvOZ','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','ogilM','&bkn=','10690fEfPaN','set','NhcOy','eklWQ','qun.qq.com','LtuiW','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','getGrouptNotice','now','3|2|1|4|0|5','uxlVr','get','desc','push','HttpGetJson','7163784uTGuQL','获取当前群荣耀失败','dWKAX','880468BYmOhQ','GroupData','ujuvx','LEGEND','bHgYP','GET','zEUhv','ngqeU',';\x20uin=o','oocnv','qsGqT','rLSrn','zNKqW','zrmVR','retcode','ZytaI','UIaXi','nujep','HoamB','RJbvK','tGyPp','GroupTime','wybEq','FFIka','OdRsW','length','qmEHj','parse','aHjWR','VzBZc','getSkey','10428980VuwNuK','mems','description','HttpGetText','hcWKC','AQMnE','xRIYH','PERFROMER','12857733pUuxKr','kTuJN','&text=','ypJKj','&page_limit=20','talkativeList','toString','FoYup','9211426pmiOGH','polcy','aOJeM','performer_list','avatar','VvHGl','QwHoB','PgVwo','AIeqr','CHZvd','获取龙王信息失败','EMOTION','&type=','rsvsN','strong_newbie','82158grpbqE','SjypX','hmtwd','VEUXN','emotion_list','bzRcy','DvtsD','legend_list','match','mhRUu','VcfNk','ALL','2748IgYPAZ','TALKACTIVE','51Cryxro','pWnFq','获取群聊炽焰失败','MRlsZ','p_skey=','talkative','DNlBk','ceil','ZJsPG','split','performer',';\x20skey=','Zrflx','TzZFW','KgLah','webapi\x20获取群成员','iWnQN','mTpsz','lzdop','&page_start=','DHQXq','genBkn','count','&group_code=','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','strong_newbie_list','6vwIRJT','xHHKe','current_talkative','CMKkB','iiaCN','jGOSn',';\x20p_uin=o','JpYtF','emotion','mLFtU','WBpxZ','dpbVv','BSfBe','trim','FiFYh','jtRGy','zXuPA','uin','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','jDAMb','getPSkey','charCodeAt','TvIPm','HhCDT','xCOEw','&sort=1&gc=','OtoDt','all','gzGMb','name','ZFcTv','&qid='];_0x514d=function(){return _0x4fd1bf;};return _0x514d();}import{RequestUtil}from'@/common/utils/request';export var WebHonorType;(function(_0x471400){const _0xb30c5a=_0x31d3,_0x7562a7={'xHHKe':_0xb30c5a(0x233),'DvtsD':'STORONGE_NEWBI','zXuPA':_0xb30c5a(0x1d6),'VEUXN':_0xb30c5a(0x1bf),'dpbVv':'TALKACTIVE','nToYW':_0xb30c5a(0x1ea),'xRIYH':_0xb30c5a(0x19c),'NlowC':'legend','MRlsZ':_0xb30c5a(0x207)},_0x476342=_0x7562a7[_0xb30c5a(0x200)][_0xb30c5a(0x1ee)]('|');let _0x24cab7=0x0;while(!![]){switch(_0x476342[_0x24cab7++]){case'0':_0x471400[_0x7562a7[_0xb30c5a(0x1dd)]]=_0x7562a7[_0xb30c5a(0x20f)];continue;case'1':_0x471400[_0x7562a7[_0xb30c5a(0x1da)]]=_0xb30c5a(0x1ef);continue;case'2':_0x471400[_0x7562a7[_0xb30c5a(0x20a)]]=_0x7562a7['nToYW'];continue;case'3':_0x471400[_0xb30c5a(0x1e2)]=_0xb30c5a(0x21a);continue;case'4':_0x471400[_0x7562a7[_0xb30c5a(0x1be)]]=_0x7562a7['NlowC'];continue;case'5':_0x471400[_0xb30c5a(0x1d3)]=_0x7562a7[_0xb30c5a(0x1e8)];continue;}break;}}(WebHonorType||(WebHonorType={})));export class WebApi{static async['getGroupEssenceMsg'](_0x2458e7,_0x183e2d){const _0x2e5f19=_0x31d3,_0x2197bc={'UIaXi':_0x2e5f19(0x22e),'SjypX':function(_0x489808,_0x4e14d1){return _0x489808+_0x4e14d1;},'aHjWR':function(_0x1a19df,_0x2d0e45){return _0x1a19df+_0x2d0e45;},'VcfNk':';\x20skey=','KgLah':_0x2e5f19(0x205),'HoamB':_0x2e5f19(0x1a1),'ziPHh':function(_0x2069f7,_0x263dda){return _0x2069f7||_0x263dda;},'jtRGy':function(_0x10f643,_0x34f683){return _0x10f643+_0x34f683;},'ujuvx':function(_0x1dd93a,_0x348cde){return _0x1dd93a+_0x348cde;},'VzBZc':_0x2e5f19(0x227),'zEUhv':_0x2e5f19(0x1fc),'ypJKj':_0x2e5f19(0x1f8),'hcWKC':_0x2e5f19(0x1c4),'dQvOZ':'GET','ZytaI':function(_0x5b3750,_0x102cb6){return _0x5b3750!==_0x102cb6;}},_0xe5e851=(await NTQQUserApi[_0x2e5f19(0x213)]([_0x2197bc[_0x2e5f19(0x1a9)]]))[_0x2197bc[_0x2e5f19(0x1a9)]],_0x16f899=await NTQQUserApi[_0x2e5f19(0x1b7)](),_0x3fba89=_0x2197bc[_0x2e5f19(0x1d8)](_0x2197bc[_0x2e5f19(0x1d8)](_0x2197bc['aHjWR'](_0x2197bc[_0x2e5f19(0x1d8)](_0x2197bc[_0x2e5f19(0x1b5)]('p_skey=',_0xe5e851),_0x2197bc[_0x2e5f19(0x1e1)]),_0x16f899)+_0x2197bc[_0x2e5f19(0x1f3)]+selfInfo[_0x2e5f19(0x210)],_0x2197bc[_0x2e5f19(0x1ab)]),selfInfo[_0x2e5f19(0x210)]);if(_0x2197bc['ziPHh'](!_0x16f899,!_0xe5e851))return undefined;const _0x235f45=WebApi[_0x2e5f19(0x1fa)](_0x16f899),_0xd80815=_0x2197bc[_0x2e5f19(0x1b5)](_0x2197bc['aHjWR'](_0x2197bc[_0x2e5f19(0x20e)](_0x2197bc[_0x2e5f19(0x19b)](_0x2197bc['SjypX'](_0x2197bc[_0x2e5f19(0x1b6)],_0x235f45),_0x2197bc[_0x2e5f19(0x19f)]),_0x2458e7)+_0x2197bc[_0x2e5f19(0x1c3)],_0x183e2d),_0x2197bc[_0x2e5f19(0x1bc)]);let _0x166b65;try{_0x166b65=await RequestUtil[_0x2e5f19(0x238)](_0xd80815,_0x2197bc[_0x2e5f19(0x226)],'',{'Cookie':_0x3fba89});}catch{return undefined;}if(_0x2197bc[_0x2e5f19(0x1a8)](_0x166b65[_0x2e5f19(0x1a7)],0x0))return undefined;return _0x166b65;}static async['getGroupMembers'](_0x86c18e,_0x32a2cf=!![]){const _0x41b589=_0x31d3,_0x3405cb={'FmmYk':function(_0xeaa70b,_0x4ee6cb,_0x1b5803){return _0xeaa70b(_0x4ee6cb,_0x1b5803);},'YFIIM':_0x41b589(0x1f4),'HhCDT':function(_0x467e15,_0x3eca6d){return _0x467e15>_0x3eca6d;},'BahHQ':function(_0x580b53,_0x3e4d08){return _0x580b53*_0x3e4d08;},'FoYup':_0x41b589(0x22e),'FMwdK':function(_0x4801a,_0x185156){return _0x4801a+_0x185156;},'zNKqW':function(_0x25239e,_0x1a072e){return _0x25239e+_0x1a072e;},'tMXQJ':function(_0x417247,_0x46a58d){return _0x417247+_0x46a58d;},'iQOnQ':'p_skey=','mhRUu':_0x41b589(0x205),'eklWQ':function(_0x47a008,_0x4264d2){return _0x47a008+_0x4264d2;},'gzGMb':function(_0x55bee8,_0x472a65){return _0x55bee8+_0x472a65;},'iHaSu':_0x41b589(0x1fd),'FiFYh':_0x41b589(0x229),'rsvsN':'POST','yHsHk':function(_0xc3232d,_0xce7cfc){return _0xc3232d!==_0xce7cfc;},'mMJNj':function(_0x46228a,_0x590beb){return _0x46228a/_0x590beb;},'RJbvK':function(_0x1ee66f,_0x37bb46){return _0x1ee66f<=_0x37bb46;},'mZMmf':function(_0x5893c2,_0x1e1364){return _0x5893c2+_0x1e1364;},'zrmVR':function(_0x12ced4,_0x32b1a1){return _0x12ced4+_0x32b1a1;},'BSfBe':function(_0x385b0a,_0x302e8f){return _0x385b0a+_0x302e8f;},'VvHGl':_0x41b589(0x211),'pWnFq':function(_0x9f5e43,_0x256159){return _0x9f5e43*_0x256159;},'EeAcZ':function(_0x2e2573,_0x1ab42f){return _0x2e2573-_0x1ab42f;},'xcSdz':_0x41b589(0x222),'CMKkB':function(_0x4b9cc3,_0x3ea3c2){return _0x4b9cc3*_0x3ea3c2;},'OtoDt':_0x41b589(0x218),'AFOtd':function(_0x5bd94e,_0x238316){return _0x5bd94e<=_0x238316;},'JpYtF':function(_0x339384,_0x339c04){return _0x339384!==_0x339c04;}};_0x3405cb[_0x41b589(0x220)](logDebug,_0x3405cb[_0x41b589(0x21f)],_0x86c18e);let _0x4be406=new Array();try{let _0x3f19e8=WebGroupData[_0x41b589(0x23d)][_0x41b589(0x235)](_0x86c18e),_0x2a2012=WebGroupData['GroupTime'][_0x41b589(0x235)](_0x86c18e);if(!_0x2a2012||_0x3405cb[_0x41b589(0x216)](Date[_0x41b589(0x232)]()-_0x2a2012,_0x3405cb['BahHQ'](0x708,0x3e8))||!_0x32a2cf){const _0x495f53=(await NTQQUserApi[_0x41b589(0x213)]([_0x3405cb[_0x41b589(0x1c7)]]))[_0x3405cb['FoYup']],_0x82c03=await NTQQUserApi[_0x41b589(0x1b7)](),_0x561cb2=_0x3405cb['FMwdK'](_0x3405cb['FMwdK'](_0x3405cb[_0x41b589(0x1a5)](_0x3405cb['tMXQJ'](_0x3405cb['iQOnQ'],_0x495f53),_0x41b589(0x1f0))+_0x82c03,_0x3405cb[_0x41b589(0x1e0)]),selfInfo[_0x41b589(0x210)]);if(!_0x82c03||!_0x495f53)return _0x4be406;const _0x5e8d34=WebApi['genBkn'](_0x82c03),_0x11ca2a=[],_0x28e0f6=await RequestUtil[_0x41b589(0x238)](_0x3405cb[_0x41b589(0x1a5)](_0x3405cb[_0x41b589(0x22d)](_0x3405cb[_0x41b589(0x21b)](_0x3405cb['iHaSu'],_0x86c18e),_0x3405cb[_0x41b589(0x20d)]),_0x5e8d34),_0x3405cb['rsvsN'],'',{'Cookie':_0x561cb2});if(!_0x28e0f6?.[_0x41b589(0x1fb)]||_0x3405cb['yHsHk'](_0x28e0f6?.['errcode'],0x0)||!_0x28e0f6?.[_0x41b589(0x1b9)])return[];else for(const _0x29a2a6 in _0x28e0f6[_0x41b589(0x1b9)]){_0x4be406['push'](_0x28e0f6[_0x41b589(0x1b9)][_0x29a2a6]);}const _0x5a58d5=Math[_0x41b589(0x1ec)](_0x3405cb['mMJNj'](_0x28e0f6[_0x41b589(0x1fb)],0x28));for(let _0x37131f=0x2;_0x3405cb[_0x41b589(0x1ac)](_0x37131f,_0x5a58d5);_0x37131f++){const _0x45ce5c=RequestUtil[_0x41b589(0x238)](_0x3405cb[_0x41b589(0x22d)](_0x3405cb[_0x41b589(0x223)](_0x3405cb[_0x41b589(0x1a6)](_0x3405cb[_0x41b589(0x22d)](_0x3405cb[_0x41b589(0x1a5)](_0x3405cb[_0x41b589(0x21b)](_0x3405cb[_0x41b589(0x20b)](_0x3405cb[_0x41b589(0x1cd)],_0x3405cb[_0x41b589(0x1e6)](_0x3405cb['EeAcZ'](_0x37131f,0x1),0x28)),_0x3405cb['xcSdz']),_0x3405cb[_0x41b589(0x202)](_0x37131f,0x28)),_0x3405cb[_0x41b589(0x219)]),_0x86c18e),_0x41b589(0x229)),_0x5e8d34),_0x3405cb[_0x41b589(0x1d5)],'',{'Cookie':_0x561cb2});_0x11ca2a[_0x41b589(0x237)](_0x45ce5c);}for(let _0x43fd28=0x1;_0x3405cb['AFOtd'](_0x43fd28,_0x5a58d5);_0x43fd28++){const _0x4edd45=await _0x11ca2a[_0x43fd28];if(!_0x4edd45?.[_0x41b589(0x1fb)]||_0x3405cb[_0x41b589(0x206)](_0x4edd45?.['errcode'],0x0)||!_0x4edd45?.[_0x41b589(0x1b9)])continue;for(const _0x117d76 in _0x4edd45['mems']){_0x4be406['push'](_0x4edd45['mems'][_0x117d76]);}}WebGroupData[_0x41b589(0x23d)][_0x41b589(0x22b)](_0x86c18e,_0x4be406),WebGroupData[_0x41b589(0x1ae)]['set'](_0x86c18e,Date[_0x41b589(0x232)]());}else _0x4be406=_0x3f19e8;}catch{return _0x4be406;}return _0x4be406;}static async['setGroupNotice'](_0x1bc3f6,_0x4421b7=''){const _0x460fc1=_0x31d3,_0x56c706={'DHQXq':'qun.qq.com','xCOEw':function(_0x22e281,_0x15c901){return _0x22e281+_0x15c901;},'TvIPm':_0x460fc1(0x1f0),'Jnbao':_0x460fc1(0x205),'AQMnE':function(_0x20c782,_0x5af63a){return _0x20c782||_0x5af63a;},'WBpxZ':function(_0x277c59,_0x25906c){return _0x277c59+_0x25906c;},'tGyPp':'qid=','aOJeM':_0x460fc1(0x229),'TzZFW':_0x460fc1(0x1c2),'OdRsW':'&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','PgVwo':'https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','xNVOg':'GET'},_0xce8b5=(await NTQQUserApi['getPSkey']([_0x56c706[_0x460fc1(0x1f9)]]))[_0x56c706[_0x460fc1(0x1f9)]],_0x45cf1d=await NTQQUserApi['getSkey'](),_0x26a13f=_0x56c706[_0x460fc1(0x217)](_0x56c706['xCOEw'](_0x56c706['xCOEw'](_0x56c706[_0x460fc1(0x217)](_0x460fc1(0x1e9),_0xce8b5),_0x56c706[_0x460fc1(0x215)]),_0x45cf1d)+_0x56c706['Jnbao'],selfInfo[_0x460fc1(0x210)]);let _0x33a6de=undefined;if(_0x56c706[_0x460fc1(0x1bd)](!_0x45cf1d,!_0xce8b5))return undefined;const _0x45ec2d=WebApi[_0x460fc1(0x1fa)](_0x45cf1d),_0x53ff51=_0x56c706[_0x460fc1(0x217)](_0x56c706[_0x460fc1(0x217)](_0x56c706['WBpxZ'](_0x56c706[_0x460fc1(0x217)](_0x56c706[_0x460fc1(0x209)](_0x56c706[_0x460fc1(0x1ad)],_0x1bc3f6),_0x56c706[_0x460fc1(0x1ca)]),_0x45ec2d),_0x56c706[_0x460fc1(0x1f2)]),_0x4421b7)+_0x56c706[_0x460fc1(0x1b1)],_0x5203ad=_0x56c706[_0x460fc1(0x1cf)]+_0x45ec2d;try{return _0x33a6de=await RequestUtil[_0x460fc1(0x238)](_0x5203ad,_0x56c706['xNVOg'],'',{'Cookie':_0x26a13f}),_0x33a6de;}catch(_0x41bad9){return undefined;}return undefined;}static async[_0x2b06a5(0x231)](_0x14e726){const _0x328bb9=_0x2b06a5,_0x77aeec={'iiaCN':function(_0x59730f,_0x3ae3c4){return _0x59730f+_0x3ae3c4;},'NhcOy':function(_0x293e41,_0x1e29ce){return _0x293e41+_0x1e29ce;},'jGOSn':function(_0x3527db,_0xe09b60){return _0x3527db+_0xe09b60;},'bHgYP':_0x328bb9(0x1e9),'smHrz':_0x328bb9(0x1f0),'qsGqT':_0x328bb9(0x205),'oocnv':function(_0x258d86,_0x29255c){return _0x258d86+_0x29255c;},'mLFtU':_0x328bb9(0x230),'bzRcy':_0x328bb9(0x21e),'XRNJz':'&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','Zrflx':'GET','kQHHU':function(_0x1a2664,_0x447263){return _0x1a2664!==_0x447263;}},_0x40e919=(await NTQQUserApi[_0x328bb9(0x213)](['qun.qq.com']))[_0x328bb9(0x22e)],_0x550c24=await NTQQUserApi['getSkey'](),_0x5127f7=_0x77aeec['iiaCN'](_0x77aeec[_0x328bb9(0x203)](_0x77aeec[_0x328bb9(0x22c)](_0x77aeec['jGOSn'](_0x77aeec[_0x328bb9(0x204)](_0x77aeec[_0x328bb9(0x19d)],_0x40e919),_0x77aeec[_0x328bb9(0x221)]),_0x550c24),_0x77aeec[_0x328bb9(0x1a3)]),selfInfo['uin']);let _0x59255e=undefined;if(!_0x550c24||!_0x40e919)return undefined;const _0x1c1396=WebApi['genBkn'](_0x550c24),_0x140051=_0x77aeec[_0x328bb9(0x1a2)](_0x77aeec[_0x328bb9(0x204)](_0x77aeec[_0x328bb9(0x22c)](_0x77aeec[_0x328bb9(0x208)]+_0x1c1396,_0x77aeec[_0x328bb9(0x1dc)]),_0x14e726),_0x77aeec['XRNJz']);try{_0x59255e=await RequestUtil['HttpGetJson'](_0x140051,_0x77aeec[_0x328bb9(0x1f1)],'',{'Cookie':_0x5127f7});if(_0x77aeec['kQHHU'](_0x59255e?.['ec'],0x0))return undefined;return _0x59255e;}catch(_0x519e0f){return undefined;}return undefined;}static[_0x2b06a5(0x1fa)](_0x2ae79f){const _0x4074ac=_0x2b06a5,_0x200977={'kuQrL':function(_0x239149,_0x467476){return _0x239149+_0x467476;},'ZeYXu':function(_0x20f235,_0xb904c7){return _0x20f235<<_0xb904c7;},'CpyOv':function(_0x184918,_0x5014cf){return _0x184918&_0x5014cf;}};_0x2ae79f=_0x2ae79f||'';let _0x449cb5=0x1505;for(let _0x89d11c=0x0;_0x89d11c<_0x2ae79f[_0x4074ac(0x1b2)];_0x89d11c++){const _0x2fa5b7=_0x2ae79f[_0x4074ac(0x214)](_0x89d11c);_0x449cb5=_0x200977['kuQrL'](_0x449cb5+_0x200977['ZeYXu'](_0x449cb5,0x5),_0x2fa5b7);}return _0x200977['CpyOv'](_0x449cb5,0x7fffffff)[_0x4074ac(0x1c6)]();}static async['getGroupHonorInfo'](_0x59730b,_0x58a834){const _0x11f0ee=_0x2b06a5,_0x546bd7={'FFIka':function(_0xe0e366,_0x4d98ba){return _0xe0e366+_0x4d98ba;},'ngqeU':'https://qun.qq.com/interactive/honorlist?gc=','LtuiW':_0x11f0ee(0x1d4),'rLSrn':function(_0x3347c4,_0x556f63){return _0x3347c4===_0x556f63;},'DNlBk':function(_0x5755ca,_0x5dc5e4,_0xd3c334,_0x413582){return _0x5755ca(_0x5dc5e4,_0xd3c334,_0x413582);},'kTuJN':_0x11f0ee(0x23a),'iWnQN':_0x11f0ee(0x22e),'nujep':function(_0x474de7,_0x5e7567){return _0x474de7||_0x5e7567;},'lzdop':function(_0x33ea99,_0x34daf8){return _0x33ea99+_0x34daf8;},'CHZvd':function(_0x57936d,_0x36f5ab){return _0x57936d+_0x36f5ab;},'mTpsz':function(_0x16d8c8,_0x4e99ae){return _0x16d8c8+_0x4e99ae;},'COOsB':function(_0x25aa1e,_0x5d6054){return _0x25aa1e+_0x5d6054;},'AIeqr':function(_0x582628,_0xd0110c){return _0x582628+_0xd0110c;},'bVNwW':_0x11f0ee(0x1f0),'ZJsPG':_0x11f0ee(0x205),'hmtwd':_0x11f0ee(0x1a1),'polcy':function(_0x204ece,_0x1e43a4){return _0x204ece===_0x1e43a4;},'QwHoB':function(_0x1f85d2,_0x104803){return _0x1f85d2===_0x104803;},'wybEq':_0x11f0ee(0x1d2),'uxlVr':function(_0x48ebc4,_0x209df3){return _0x48ebc4(_0x209df3);},'qmEHj':function(_0x2660ff,_0xef4288,_0x2cc760){return _0x2660ff(_0xef4288,_0x2cc760);},'zzZtC':function(_0x40d743,_0x155e08){return _0x40d743===_0x155e08;},'dWKAX':function(_0x54762c,_0x3089f3){return _0x54762c===_0x3089f3;},'ogilM':function(_0x443659,_0x4447ed,_0x1f164a){return _0x443659(_0x4447ed,_0x1f164a);},'ZFcTv':_0x11f0ee(0x1e7),'FLvMr':function(_0x5a2445,_0x5bfb2f,_0x3553b7){return _0x5a2445(_0x5bfb2f,_0x3553b7);},'UZNCK':function(_0x4e9aca,_0xe7b7bf){return _0x4e9aca===_0xe7b7bf;},'jWGkR':function(_0xa8ca86,_0x53f39b,_0x28d07e){return _0xa8ca86(_0x53f39b,_0x28d07e);},'jDAMb':'获取快乐源泉失败'},_0x4e833f=(await NTQQUserApi['getPSkey']([_0x546bd7[_0x11f0ee(0x1f5)]]))[_0x546bd7['iWnQN']],_0x32c231=await NTQQUserApi['getSkey']();if(_0x546bd7[_0x11f0ee(0x1aa)](!_0x32c231,!_0x4e833f))return undefined;async function _0x1d25b2(_0x1a3b9d,_0x2fc905){const _0xfae79e=_0x11f0ee;let _0x5dc7d0=_0x546bd7[_0xfae79e(0x1b0)](_0x546bd7[_0xfae79e(0x1b0)](_0x546bd7[_0xfae79e(0x1a0)]+_0x1a3b9d,_0x546bd7[_0xfae79e(0x22f)]),_0x2fc905[_0xfae79e(0x1c6)]()),_0x34d9ed='',_0x743736;try{_0x34d9ed=await RequestUtil[_0xfae79e(0x1bb)](_0x5dc7d0,_0xfae79e(0x19e),'',{'Cookie':_0x4cce17});const _0x4167cb=_0x34d9ed[_0xfae79e(0x1df)](/window\.__INITIAL_STATE__=(.*?);/);return _0x4167cb&&(_0x743736=JSON[_0xfae79e(0x1b4)](_0x4167cb[0x1][_0xfae79e(0x20c)]())),_0x546bd7[_0xfae79e(0x1a4)](_0x2fc905,0x1)?_0x743736?.[_0xfae79e(0x1c5)]:_0x743736?.['actorList'];}catch(_0x2f5c05){_0x546bd7[_0xfae79e(0x1eb)](logDebug,_0x546bd7[_0xfae79e(0x1c1)],_0x5dc7d0,_0x2f5c05);}return undefined;}let _0xc03c79={'group_id':_0x59730b};const _0x4cce17=_0x546bd7[_0x11f0ee(0x1f7)](_0x546bd7['FFIka'](_0x546bd7[_0x11f0ee(0x1b0)](_0x546bd7[_0x11f0ee(0x1d1)](_0x546bd7[_0x11f0ee(0x1f6)](_0x546bd7['COOsB'](_0x546bd7[_0x11f0ee(0x1d0)](_0x11f0ee(0x1e9),_0x4e833f),_0x546bd7[_0x11f0ee(0x224)]),_0x32c231),_0x546bd7[_0x11f0ee(0x1ed)]),selfInfo[_0x11f0ee(0x210)]),_0x546bd7[_0x11f0ee(0x1d9)]),selfInfo[_0x11f0ee(0x210)]);if(_0x546bd7[_0x11f0ee(0x1c9)](_0x58a834,WebHonorType[_0x11f0ee(0x1e4)])||_0x546bd7[_0x11f0ee(0x1ce)](_0x58a834,WebHonorType[_0x11f0ee(0x1e2)]))try{let _0x47aa62=await _0x1d25b2(_0x59730b,0x1);if(!_0x47aa62)throw new Error(_0x546bd7[_0x11f0ee(0x1af)]);_0xc03c79[_0x11f0ee(0x201)]={'user_id':_0x47aa62[0x0]?.['uin'],'avatar':_0x47aa62[0x0]?.[_0x11f0ee(0x1cc)],'nickname':_0x47aa62[0x0]?.[_0x11f0ee(0x21c)],'day_count':0x0,'description':_0x47aa62[0x0]?.[_0x11f0ee(0x236)]},_0xc03c79[_0x11f0ee(0x225)]=[];for(const _0x21afdd of _0x47aa62){_0xc03c79[_0x11f0ee(0x225)][_0x11f0ee(0x237)]({'user_id':_0x21afdd?.[_0x11f0ee(0x210)],'avatar':_0x21afdd?.[_0x11f0ee(0x1cc)],'description':_0x21afdd?.[_0x11f0ee(0x236)],'day_count':0x0,'nickname':_0x21afdd?.[_0x11f0ee(0x21c)]});}}catch(_0x360d91){_0x546bd7[_0x11f0ee(0x234)](logDebug,_0x360d91);}if(_0x546bd7[_0x11f0ee(0x1c9)](_0x58a834,WebHonorType[_0x11f0ee(0x1bf)])||_0x546bd7[_0x11f0ee(0x1ce)](_0x58a834,WebHonorType[_0x11f0ee(0x1e2)]))try{let _0xb185e9=await _0x546bd7[_0x11f0ee(0x1b3)](_0x1d25b2,_0x59730b,0x2);if(!_0xb185e9)throw new Error('获取群聊之火失败');_0xc03c79[_0x11f0ee(0x1cb)]=[];for(const _0x53802e of _0xb185e9){_0xc03c79['performer_list']['push']({'user_id':_0x53802e?.[_0x11f0ee(0x210)],'nickname':_0x53802e?.[_0x11f0ee(0x21c)],'avatar':_0x53802e?.[_0x11f0ee(0x1cc)],'description':_0x53802e?.[_0x11f0ee(0x236)]});}}catch(_0x4d3227){logDebug(_0x4d3227);}if(_0x546bd7['zzZtC'](_0x58a834,WebHonorType[_0x11f0ee(0x1bf)])||_0x546bd7[_0x11f0ee(0x23b)](_0x58a834,WebHonorType[_0x11f0ee(0x1e2)]))try{let _0x9e3918=await _0x546bd7[_0x11f0ee(0x228)](_0x1d25b2,_0x59730b,0x3);if(!_0x9e3918)throw new Error(_0x546bd7[_0x11f0ee(0x21d)]);_0xc03c79[_0x11f0ee(0x1de)]=[];for(const _0x4ba958 of _0x9e3918){_0xc03c79[_0x11f0ee(0x1de)][_0x11f0ee(0x237)]({'user_id':_0x4ba958?.[_0x11f0ee(0x210)],'nickname':_0x4ba958?.[_0x11f0ee(0x21c)],'avatar':_0x4ba958?.['avatar'],'desc':_0x4ba958?.[_0x11f0ee(0x1ba)]});}}catch(_0x36c241){_0x546bd7['FLvMr'](logDebug,_0x546bd7[_0x11f0ee(0x21d)],_0x36c241);}if(_0x546bd7[_0x11f0ee(0x1ce)](_0x58a834,WebHonorType[_0x11f0ee(0x1d3)])||_0x546bd7['UZNCK'](_0x58a834,WebHonorType[_0x11f0ee(0x1e2)]))try{let _0x132742=await _0x546bd7['jWGkR'](_0x1d25b2,_0x59730b,0x6);if(!_0x132742)throw new Error(_0x546bd7[_0x11f0ee(0x212)]);_0xc03c79[_0x11f0ee(0x1db)]=[];for(const _0x38e805 of _0x132742){_0xc03c79[_0x11f0ee(0x1db)][_0x11f0ee(0x237)]({'user_id':_0x38e805?.['uin'],'nickname':_0x38e805?.['name'],'avatar':_0x38e805?.[_0x11f0ee(0x1cc)],'desc':_0x38e805?.[_0x11f0ee(0x1ba)]});}}catch(_0x1d5698){_0x546bd7[_0x11f0ee(0x1b3)](logDebug,_0x546bd7[_0x11f0ee(0x212)],_0x1d5698);}return(_0x58a834===WebHonorType[_0x11f0ee(0x1d3)]||_0x546bd7[_0x11f0ee(0x23b)](_0x58a834,WebHonorType[_0x11f0ee(0x1e2)]))&&(_0xc03c79[_0x11f0ee(0x1fe)]=[]),_0xc03c79;}} \ No newline at end of file +const _0x156f26=_0x53ee;(function(_0x455ae0,_0xdd8e6d){const _0x4ee67b=_0x53ee,_0x206e2c=_0x455ae0();while(!![]){try{const _0x1fa904=parseInt(_0x4ee67b(0xbc))/0x1+parseInt(_0x4ee67b(0xb8))/0x2*(parseInt(_0x4ee67b(0x104))/0x3)+parseInt(_0x4ee67b(0x127))/0x4*(-parseInt(_0x4ee67b(0xf4))/0x5)+-parseInt(_0x4ee67b(0xa0))/0x6*(parseInt(_0x4ee67b(0x9c))/0x7)+parseInt(_0x4ee67b(0x9b))/0x8+-parseInt(_0x4ee67b(0xf5))/0x9+parseInt(_0x4ee67b(0x11f))/0xa;if(_0x1fa904===_0xdd8e6d)break;else _0x206e2c['push'](_0x206e2c['shift']());}catch(_0x53183f){_0x206e2c['push'](_0x206e2c['shift']());}}}(_0x599f,0x8fc59));function _0x53ee(_0x22dd85,_0x328df8){const _0x599f3d=_0x599f();return _0x53ee=function(_0x53ee47,_0x5e8888){_0x53ee47=_0x53ee47-0x8a;let _0x4d2db8=_0x599f3d[_0x53ee47];return _0x4d2db8;},_0x53ee(_0x22dd85,_0x328df8);}import{WebGroupData,selfInfo}from'@/core/data';function _0x599f(){const _0x4fde82=['name','getGrouptNotice','qid=','legend_list','rNMhl','jAeyT','kIDFT','desc','&end=','SCInI','dcZGH','BAfAk','strong_newbie','116OtVtHL','xBBID','all','&page_start=','1044515kXWFOz',';\x20uin=o','length','woaUG','POST','ssjnu','PUtVe','&text=','mems','EEKya','TyLtF','cjrXt','https://qun.qq.com/interactive/honorlist?gc=','pZXwW','errcode','HEAUa','mHssn','AuCYg','AdRVE','eJVSO','JWVVc','&group_code=','p_skey=','oJcaf','upbvU','CjPGU','ivGli','GroupData','yGjjT','获取快乐源泉失败','BlvYu','eGinJ','KQTxT','KoKUr','dekXE','EMOTION','push','4|5|3|2|1|0','jBCRo','getSkey','fpJCH','MvfBl','&bkn=','trim','UEwki','emotion_list','KqKla','actorList','KQyvw','获取当前群荣耀失败','eeZfv','cmGme',';\x20p_uin=o','parse','iEikN','doOFG','456355HFZIrU','10007937PXIDUh','getPSkey','tJUlc','avatar','toString','ALL','fBXjZ','set','HOMLL','HttpGetJson','Vgooy','hfjja','sDhUn','ExheG','TALKACTIVE','10776bZuSLB','getGroupEssenceMsg','GET','ZJyIO','&type=','nTbwK','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','JKoxw','CrzPq','GVTln','upMKZ','KNdQF','LsHNn','&page_limit=20','ihCeO','HttpGetText','description','jKdCZ','kYvnr','talkative_list','cvsGh','performer','strong_newbie_list','bDSsl','获取群聊炽焰失败','JapPW','KVGEr','9780940CXQrlX','genBkn','talkativeList','get','xAeFJ','tXyQo','now','wBAQk','4VkJieS','webapi\x20获取群成员','legend','hxxZv','ulwfH','DkAFu','npsmF','KukbZ','current_talkative','aizgg','mFfME','hHGhP','ozlVW','vCAxX','qvHkP','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','PERFROMER','eAtqM','gdDvD','FiLBN','UWjtG','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','qfcfU','imTEM','qun.qq.com','LEGEND','2131128yKdaQL','777YSNZLn','count','YelLR','KkxIR','38118aJBPQo','fiSAx','eMTxt',';\x20skey=','EDVzF','uin','vdxLp','performer_list','获取龙王信息失败','owSol','GroupTime'];_0x599f=function(){return _0x4fde82;};return _0x599f();}import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';import{RequestUtil}from'@/common/utils/request';export var WebHonorType;(function(_0x4d4bcc){const _0x310036=_0x53ee,_0x171930={'FiLBN':_0x310036(0xe1),'KkxIR':'EMOTION','HEAUa':'emotion','EEKya':'STORONGE_NEWBI','KoKUr':_0x310036(0x9a),'eeZfv':_0x310036(0x129),'yGjjT':_0x310036(0x91),'wBAQk':_0x310036(0x119),'jAeyT':'ALL','KukbZ':_0x310036(0xba),'hHGhP':_0x310036(0x103),'DkAFu':'talkative'},_0x3a086c=_0x171930[_0x310036(0x94)]['split']('|');let _0x51312a=0x0;while(!![]){switch(_0x3a086c[_0x51312a++]){case'0':_0x4d4bcc[_0x171930[_0x310036(0x9f)]]=_0x171930[_0x310036(0xcb)];continue;case'1':_0x4d4bcc[_0x171930[_0x310036(0xc5)]]=_0x310036(0xb7);continue;case'2':_0x4d4bcc[_0x171930[_0x310036(0xdd)]]=_0x171930[_0x310036(0xee)];continue;case'3':_0x4d4bcc[_0x171930[_0x310036(0xd8)]]=_0x171930[_0x310036(0x126)];continue;case'4':_0x4d4bcc[_0x171930[_0x310036(0xb0)]]=_0x171930[_0x310036(0x12e)];continue;case'5':_0x4d4bcc[_0x171930[_0x310036(0x8c)]]=_0x171930[_0x310036(0x12c)];continue;}break;}}(WebHonorType||(WebHonorType={})));export class WebApi{static async[_0x156f26(0x105)](_0x246b1d,_0x5417d6){const _0x1ce665=_0x156f26,_0x33dca1={'mHssn':_0x1ce665(0x99),'SCInI':function(_0x3e40fa,_0x57f55b){return _0x3e40fa+_0x57f55b;},'ozlVW':function(_0x2ba448,_0x2e15d6){return _0x2ba448+_0x2e15d6;},'jKdCZ':function(_0x316e30,_0x8e533a){return _0x316e30+_0x8e533a;},'KVGEr':_0x1ce665(0xd2),'KkjCG':';\x20skey=','fpJCH':_0x1ce665(0xf0),'upbvU':_0x1ce665(0xbd),'xBBID':function(_0x2c7eed,_0x48903a){return _0x2c7eed||_0x48903a;},'gdDvD':function(_0x270db2,_0x1f60d3){return _0x270db2+_0x1f60d3;},'upMKZ':'https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','ivGli':_0x1ce665(0xd1),'AuCYg':_0x1ce665(0xbb),'BlvYu':_0x1ce665(0x111),'CjPGU':'GET','owSol':function(_0x3d7a27,_0x1679b7){return _0x3d7a27!==_0x1679b7;}},_0x305f28=(await NTQQUserApi[_0x1ce665(0xf6)]([_0x33dca1[_0x1ce665(0xcc)]]))[_0x33dca1[_0x1ce665(0xcc)]],_0x3e3060=await NTQQUserApi[_0x1ce665(0xe3)](),_0x36e264=_0x33dca1[_0x1ce665(0xb4)](_0x33dca1[_0x1ce665(0x8d)](_0x33dca1['ozlVW'](_0x33dca1[_0x1ce665(0x115)](_0x33dca1['jKdCZ'](_0x33dca1[_0x1ce665(0xb4)](_0x33dca1[_0x1ce665(0x11e)],_0x305f28),_0x33dca1['KkjCG']),_0x3e3060),_0x33dca1[_0x1ce665(0xe4)]),selfInfo[_0x1ce665(0xa5)])+_0x33dca1[_0x1ce665(0xd4)],selfInfo[_0x1ce665(0xa5)]);if(_0x33dca1[_0x1ce665(0xb9)](!_0x3e3060,!_0x305f28))return undefined;const _0x1cb49b=WebApi['genBkn'](_0x3e3060),_0xac6a8b=_0x33dca1[_0x1ce665(0x115)](_0x33dca1[_0x1ce665(0x8d)](_0x33dca1['jKdCZ'](_0x33dca1[_0x1ce665(0x8d)](_0x33dca1[_0x1ce665(0x93)](_0x33dca1[_0x1ce665(0x10e)],_0x1cb49b)+_0x33dca1[_0x1ce665(0xd6)],_0x246b1d),_0x33dca1[_0x1ce665(0xcd)]),_0x5417d6),_0x33dca1[_0x1ce665(0xda)]);let _0x2c377d;try{_0x2c377d=await RequestUtil['HttpGetJson'](_0xac6a8b,_0x33dca1[_0x1ce665(0xd5)],'',{'Cookie':_0x36e264});}catch{return undefined;}if(_0x33dca1[_0x1ce665(0xa9)](_0x2c377d['retcode'],0x0))return undefined;return _0x2c377d;}static async['getGroupMembers'](_0x29e706,_0x29ad4a=!![]){const _0x201376=_0x156f26,_0x4cceed={'KqKla':function(_0xf674b,_0x5d2d8b,_0x1d0c8c){return _0xf674b(_0x5d2d8b,_0x1d0c8c);},'qfcfU':_0x201376(0x128),'eAtqM':function(_0x38db67,_0x3faf74){return _0x38db67>_0x3faf74;},'aTdDc':function(_0x583d13,_0x3fa513){return _0x583d13-_0x3fa513;},'cvsGh':function(_0x1b68ce,_0x3a8927){return _0x1b68ce*_0x3a8927;},'cmGme':_0x201376(0x99),'ihCeO':function(_0x1b1d82,_0x1f188b){return _0x1b1d82+_0x1f188b;},'Vgooy':function(_0x324c13,_0x493ddf){return _0x324c13+_0x493ddf;},'eJVSO':function(_0x56ec02,_0x32abc7){return _0x56ec02+_0x32abc7;},'iEikN':_0x201376(0xa3),'mFfME':';\x20p_uin=o','hxxZv':function(_0x4766fb,_0x21bc4b){return _0x4766fb||_0x21bc4b;},'WkMhg':function(_0x485249,_0x58a702){return _0x485249+_0x58a702;},'doOFG':'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','kIDFT':_0x201376(0xc0),'nTbwK':function(_0x2c6071,_0x4af5bb){return _0x2c6071!==_0x4af5bb;},'NwCRS':function(_0x3da748,_0x23b4af){return _0x3da748<=_0x23b4af;},'bDSsl':function(_0x4ccd9c,_0x2475fe){return _0x4ccd9c+_0x2475fe;},'rNMhl':function(_0x50127a,_0x588b2b){return _0x50127a+_0x588b2b;},'pKHOn':_0x201376(0x96),'PUtVe':function(_0x3d5906,_0x345cef){return _0x3d5906-_0x345cef;},'dekXE':_0x201376(0xb3),'CrzPq':function(_0x56ac86,_0x3505e1){return _0x56ac86*_0x3505e1;},'vCAxX':'&sort=1&gc=','YelLR':'&bkn=','eMTxt':function(_0x297211,_0x561cf1){return _0x297211<=_0x561cf1;}};_0x4cceed[_0x201376(0xea)](logDebug,_0x4cceed[_0x201376(0x97)],_0x29e706);let _0x467cd0=new Array();try{let _0x27f711=WebGroupData['GroupData'][_0x201376(0x122)](_0x29e706),_0x2c5538=WebGroupData[_0x201376(0xaa)][_0x201376(0x122)](_0x29e706);if(!_0x2c5538||_0x4cceed[_0x201376(0x92)](_0x4cceed['aTdDc'](Date[_0x201376(0x125)](),_0x2c5538),_0x4cceed[_0x201376(0x118)](0x708,0x3e8))||!_0x29ad4a){const _0x2132af=(await NTQQUserApi[_0x201376(0xf6)]([_0x4cceed['cmGme']]))[_0x4cceed[_0x201376(0xef)]],_0x2f0798=await NTQQUserApi[_0x201376(0xe3)](),_0x38aa75=_0x4cceed[_0x201376(0x112)](_0x4cceed[_0x201376(0xff)](_0x4cceed[_0x201376(0xcf)](_0x201376(0xd2),_0x2132af)+_0x4cceed[_0x201376(0xf2)],_0x2f0798),_0x4cceed[_0x201376(0x8b)])+selfInfo[_0x201376(0xa5)];if(_0x4cceed[_0x201376(0x12a)](!_0x2f0798,!_0x2132af))return _0x467cd0;const _0x486a6c=WebApi[_0x201376(0x120)](_0x2f0798),_0x1afa66=[],_0x58e224=await RequestUtil[_0x201376(0xfe)](_0x4cceed[_0x201376(0xcf)](_0x4cceed[_0x201376(0xcf)](_0x4cceed['WkMhg'](_0x4cceed[_0x201376(0xf3)],_0x29e706),_0x201376(0xe6)),_0x486a6c),_0x4cceed[_0x201376(0xb1)],'',{'Cookie':_0x38aa75});if(!_0x58e224?.[_0x201376(0x9d)]||_0x4cceed['nTbwK'](_0x58e224?.['errcode'],0x0)||!_0x58e224?.['mems'])return[];else for(const _0x2b305f in _0x58e224[_0x201376(0xc4)]){_0x467cd0[_0x201376(0xe0)](_0x58e224[_0x201376(0xc4)][_0x2b305f]);}const _0x583869=Math['ceil'](_0x58e224[_0x201376(0x9d)]/0x28);for(let _0x1148e7=0x2;_0x4cceed['NwCRS'](_0x1148e7,_0x583869);_0x1148e7++){const _0x25a79d=RequestUtil[_0x201376(0xfe)](_0x4cceed[_0x201376(0x11b)](_0x4cceed[_0x201376(0xff)](_0x4cceed['Vgooy'](_0x4cceed[_0x201376(0xaf)](_0x4cceed['pKHOn']+_0x4cceed['cvsGh'](_0x4cceed[_0x201376(0xc2)](_0x1148e7,0x1),0x28),_0x4cceed[_0x201376(0xde)]),_0x4cceed[_0x201376(0x10c)](_0x1148e7,0x28)),_0x4cceed[_0x201376(0x8e)]),_0x29e706)+_0x4cceed[_0x201376(0x9e)]+_0x486a6c,_0x4cceed['kIDFT'],'',{'Cookie':_0x38aa75});_0x1afa66[_0x201376(0xe0)](_0x25a79d);}for(let _0xacbdb7=0x1;_0x4cceed[_0x201376(0xa2)](_0xacbdb7,_0x583869);_0xacbdb7++){const _0x24fd34=await _0x1afa66[_0xacbdb7];if(!_0x24fd34?.[_0x201376(0x9d)]||_0x4cceed[_0x201376(0x109)](_0x24fd34?.[_0x201376(0xca)],0x0)||!_0x24fd34?.[_0x201376(0xc4)])continue;for(const _0x169f76 in _0x24fd34[_0x201376(0xc4)]){_0x467cd0['push'](_0x24fd34[_0x201376(0xc4)][_0x169f76]);}}WebGroupData[_0x201376(0xd7)][_0x201376(0xfc)](_0x29e706,_0x467cd0),WebGroupData['GroupTime'][_0x201376(0xfc)](_0x29e706,Date[_0x201376(0x125)]());}else _0x467cd0=_0x27f711;}catch{return _0x467cd0;}return _0x467cd0;}static async['setGroupNotice'](_0x4fc8c8,_0x3e117a=''){const _0x87577a=_0x156f26,_0xfd1f29={'JKoxw':_0x87577a(0x99),'aizgg':function(_0x466a0f,_0x32f56){return _0x466a0f+_0x32f56;},'EDVzF':function(_0x44b0a2,_0x267ea9){return _0x44b0a2+_0x267ea9;},'imTEM':_0x87577a(0xd2),'fiSAx':_0x87577a(0xa3),'eGinJ':_0x87577a(0xf0),'lvzDp':function(_0x6c2225,_0x2c8079){return _0x6c2225||_0x2c8079;},'hfjja':function(_0x1b565f,_0x45f320){return _0x1b565f+_0x45f320;},'BAfAk':function(_0x5675ba,_0x3ffa7d){return _0x5675ba+_0x3ffa7d;},'npsmF':function(_0x4d2013,_0x38c68a){return _0x4d2013+_0x38c68a;},'qvHkP':_0x87577a(0xe6),'GVTln':_0x87577a(0xc3),'sDhUn':function(_0x3c2bbf,_0x1f4fd6){return _0x3c2bbf+_0x1f4fd6;},'woaUG':_0x87577a(0x10a),'tZezU':_0x87577a(0x106)},_0x15f0f1=(await NTQQUserApi['getPSkey']([_0xfd1f29[_0x87577a(0x10b)]]))[_0xfd1f29[_0x87577a(0x10b)]],_0x19fd28=await NTQQUserApi[_0x87577a(0xe3)](),_0x4194b3=_0xfd1f29[_0x87577a(0x8a)](_0xfd1f29[_0x87577a(0x8a)](_0xfd1f29[_0x87577a(0xa4)](_0xfd1f29[_0x87577a(0x8a)](_0xfd1f29[_0x87577a(0x98)],_0x15f0f1),_0xfd1f29[_0x87577a(0xa1)]),_0x19fd28)+_0xfd1f29[_0x87577a(0xdb)],selfInfo['uin']);let _0xa5e337=undefined;if(_0xfd1f29['lvzDp'](!_0x19fd28,!_0x15f0f1))return undefined;const _0xc33357=WebApi[_0x87577a(0x120)](_0x19fd28),_0x2183f1=_0xfd1f29[_0x87577a(0xa4)](_0xfd1f29['aizgg'](_0xfd1f29[_0x87577a(0x100)](_0xfd1f29[_0x87577a(0xb6)](_0xfd1f29[_0x87577a(0x12d)](_0x87577a(0xad)+_0x4fc8c8,_0xfd1f29[_0x87577a(0x8f)]),_0xc33357),_0xfd1f29[_0x87577a(0x10d)]),_0x3e117a),'&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}'),_0xdf0a07=_0xfd1f29[_0x87577a(0x101)](_0xfd1f29[_0x87577a(0xbf)],_0xc33357);try{return _0xa5e337=await RequestUtil['HttpGetJson'](_0xdf0a07,_0xfd1f29['tZezU'],'',{'Cookie':_0x4194b3}),_0xa5e337;}catch(_0x2674f6){return undefined;}return undefined;}static async[_0x156f26(0xac)](_0x14e474){const _0x2a255a=_0x156f26,_0x3ae682={'fBXjZ':_0x2a255a(0x99),'ExheG':function(_0x45402b,_0x55261a){return _0x45402b+_0x55261a;},'UWjtG':'p_skey=','tXyQo':';\x20skey=','HVxxN':';\x20p_uin=o','cjrXt':'&qid=','AdRVE':_0x2a255a(0x90),'tJUlc':_0x2a255a(0x106),'gjUQT':function(_0x15bfe9,_0x22a3fa){return _0x15bfe9!==_0x22a3fa;}},_0x34e83c=(await NTQQUserApi['getPSkey']([_0x3ae682[_0x2a255a(0xfb)]]))[_0x3ae682['fBXjZ']],_0x2a0b8c=await NTQQUserApi[_0x2a255a(0xe3)](),_0x12dc81=_0x3ae682[_0x2a255a(0x102)](_0x3ae682[_0x2a255a(0x102)](_0x3ae682[_0x2a255a(0x102)](_0x3ae682[_0x2a255a(0x102)](_0x3ae682[_0x2a255a(0x95)],_0x34e83c),_0x3ae682[_0x2a255a(0x124)]),_0x2a0b8c)+_0x3ae682['HVxxN'],selfInfo['uin']);let _0x23439c=undefined;if(!_0x2a0b8c||!_0x34e83c)return undefined;const _0x54870a=WebApi[_0x2a255a(0x120)](_0x2a0b8c),_0x364f50=_0x3ae682[_0x2a255a(0x102)]('https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn='+_0x54870a+_0x3ae682[_0x2a255a(0xc7)],_0x14e474)+_0x3ae682[_0x2a255a(0xce)];try{_0x23439c=await RequestUtil['HttpGetJson'](_0x364f50,_0x3ae682[_0x2a255a(0xf7)],'',{'Cookie':_0x12dc81});if(_0x3ae682['gjUQT'](_0x23439c?.['ec'],0x0))return undefined;return _0x23439c;}catch(_0x2ba8fb){return undefined;}return undefined;}static[_0x156f26(0x120)](_0x395d93){const _0x4eba6a=_0x156f26,_0x272fd0={'vdxLp':function(_0x3f278a,_0x144db9){return _0x3f278a||_0x144db9;},'ulwfH':function(_0x189276,_0x1333b4){return _0x189276<_0x1333b4;},'HOMLL':function(_0x20a4aa,_0x506a5f){return _0x20a4aa+_0x506a5f;},'kYvnr':function(_0x3ca2bc,_0x27e477){return _0x3ca2bc<<_0x27e477;},'dcZGH':function(_0x572aa7,_0x185941){return _0x572aa7&_0x185941;}};_0x395d93=_0x272fd0[_0x4eba6a(0xa6)](_0x395d93,'');let _0x2c11dd=0x1505;for(let _0x303229=0x0;_0x272fd0[_0x4eba6a(0x12b)](_0x303229,_0x395d93[_0x4eba6a(0xbe)]);_0x303229++){const _0x6f8c25=_0x395d93['charCodeAt'](_0x303229);_0x2c11dd=_0x272fd0[_0x4eba6a(0xfd)](_0x2c11dd+_0x272fd0[_0x4eba6a(0x116)](_0x2c11dd,0x5),_0x6f8c25);}return _0x272fd0[_0x4eba6a(0xb5)](_0x2c11dd,0x7fffffff)[_0x4eba6a(0xf9)]();}static async['getGroupHonorInfo'](_0x2ee1df,_0x31fea5){const _0x4f14cd=_0x156f26,_0x370652={'JWVVc':function(_0xb78963,_0x103b4a){return _0xb78963+_0x103b4a;},'dAMLO':_0x4f14cd(0xc8),'oJcaf':function(_0x4a7f28,_0x50cd9b,_0x3c3782,_0x431330){return _0x4a7f28(_0x50cd9b,_0x3c3782,_0x431330);},'KQyvw':_0x4f14cd(0xed),'TyLtF':_0x4f14cd(0x99),'KQTxT':function(_0xb8c95b,_0x2c3aa2){return _0xb8c95b+_0x2c3aa2;},'KNdQF':function(_0x3f0bdf,_0x1143a7){return _0x3f0bdf+_0x1143a7;},'pZXwW':function(_0x1e23db,_0x27e6a2){return _0x1e23db+_0x27e6a2;},'LsHNn':';\x20skey=','pvSfS':';\x20uin=o','pfROw':function(_0x1c0949,_0x9b45dc){return _0x1c0949===_0x9b45dc;},'JapPW':function(_0x1cd94d,_0x25a2dd){return _0x1cd94d===_0x25a2dd;},'ssjnu':_0x4f14cd(0xa8),'MvfBl':function(_0x1d1d4b,_0x554e37){return _0x1d1d4b===_0x554e37;},'xAeFJ':function(_0x1ca2d6,_0x3125eb,_0x569b55){return _0x1ca2d6(_0x3125eb,_0x569b55);},'jBCRo':function(_0x1c0554,_0x3d7c08){return _0x1c0554(_0x3d7c08);},'ZJyIO':function(_0x44ac17,_0x4f405f){return _0x44ac17===_0x4f405f;},'xhtlN':'获取群聊炽焰失败','XozbP':function(_0x176bbc,_0x302639){return _0x176bbc===_0x302639;},'UEwki':_0x4f14cd(0xd9),'tlWzt':function(_0x1b9016,_0x360951,_0x3afa61){return _0x1b9016(_0x360951,_0x3afa61);}},_0x3b405b=(await NTQQUserApi[_0x4f14cd(0xf6)]([_0x370652[_0x4f14cd(0xc6)]]))[_0x370652[_0x4f14cd(0xc6)]],_0x82b969=await NTQQUserApi['getSkey']();if(!_0x82b969||!_0x3b405b)return undefined;async function _0x395647(_0x1b802f,_0x30dd1d){const _0x3f5c43=_0x4f14cd;let _0x15acde=_0x370652[_0x3f5c43(0xd0)](_0x370652[_0x3f5c43(0xd0)](_0x370652[_0x3f5c43(0xd0)](_0x370652['dAMLO'],_0x1b802f),_0x3f5c43(0x108)),_0x30dd1d[_0x3f5c43(0xf9)]()),_0x5cf8bb='',_0x313f8c;try{_0x5cf8bb=await RequestUtil[_0x3f5c43(0x113)](_0x15acde,_0x3f5c43(0x106),'',{'Cookie':_0x3b3ee7});const _0x44b96b=_0x5cf8bb['match'](/window\.__INITIAL_STATE__=(.*?);/);return _0x44b96b&&(_0x313f8c=JSON[_0x3f5c43(0xf1)](_0x44b96b[0x1][_0x3f5c43(0xe7)]())),_0x30dd1d===0x1?_0x313f8c?.[_0x3f5c43(0x121)]:_0x313f8c?.[_0x3f5c43(0xeb)];}catch(_0x180659){_0x370652[_0x3f5c43(0xd3)](logDebug,_0x370652[_0x3f5c43(0xec)],_0x15acde,_0x180659);}return undefined;}let _0x37be4a={'group_id':_0x2ee1df};const _0x3b3ee7=_0x370652[_0x4f14cd(0xd0)](_0x370652[_0x4f14cd(0xdc)](_0x370652['KQTxT'](_0x370652[_0x4f14cd(0x10f)](_0x370652['JWVVc'](_0x370652[_0x4f14cd(0xc9)](_0x4f14cd(0xd2)+_0x3b405b,_0x370652[_0x4f14cd(0x110)]),_0x82b969),';\x20p_uin=o'),selfInfo[_0x4f14cd(0xa5)]),_0x370652['pvSfS']),selfInfo[_0x4f14cd(0xa5)]);if(_0x370652['pfROw'](_0x31fea5,WebHonorType[_0x4f14cd(0x103)])||_0x370652[_0x4f14cd(0x11d)](_0x31fea5,WebHonorType[_0x4f14cd(0xfa)]))try{let _0x927211=await _0x395647(_0x2ee1df,0x1);if(!_0x927211)throw new Error(_0x370652[_0x4f14cd(0xc1)]);_0x37be4a[_0x4f14cd(0x12f)]={'user_id':_0x927211[0x0]?.[_0x4f14cd(0xa5)],'avatar':_0x927211[0x0]?.[_0x4f14cd(0xf8)],'nickname':_0x927211[0x0]?.[_0x4f14cd(0xab)],'day_count':0x0,'description':_0x927211[0x0]?.[_0x4f14cd(0xb2)]},_0x37be4a[_0x4f14cd(0x117)]=[];for(const _0x4d29bc of _0x927211){_0x37be4a[_0x4f14cd(0x117)][_0x4f14cd(0xe0)]({'user_id':_0x4d29bc?.[_0x4f14cd(0xa5)],'avatar':_0x4d29bc?.[_0x4f14cd(0xf8)],'description':_0x4d29bc?.[_0x4f14cd(0xb2)],'day_count':0x0,'nickname':_0x4d29bc?.['name']});}}catch(_0x4c90ea){logDebug(_0x4c90ea);}if(_0x31fea5===WebHonorType['PERFROMER']||_0x370652[_0x4f14cd(0xe5)](_0x31fea5,WebHonorType[_0x4f14cd(0xfa)]))try{let _0x59aab1=await _0x370652[_0x4f14cd(0x123)](_0x395647,_0x2ee1df,0x2);if(!_0x59aab1)throw new Error('获取群聊之火失败');_0x37be4a[_0x4f14cd(0xa7)]=[];for(const _0x2ba721 of _0x59aab1){_0x37be4a[_0x4f14cd(0xa7)]['push']({'user_id':_0x2ba721?.[_0x4f14cd(0xa5)],'nickname':_0x2ba721?.[_0x4f14cd(0xab)],'avatar':_0x2ba721?.['avatar'],'description':_0x2ba721?.[_0x4f14cd(0xb2)]});}}catch(_0x443d09){_0x370652[_0x4f14cd(0xe2)](logDebug,_0x443d09);}if(_0x370652[_0x4f14cd(0xe5)](_0x31fea5,WebHonorType[_0x4f14cd(0x91)])||_0x370652[_0x4f14cd(0x107)](_0x31fea5,WebHonorType[_0x4f14cd(0xfa)]))try{let _0x1d5433=await _0x370652[_0x4f14cd(0x123)](_0x395647,_0x2ee1df,0x3);if(!_0x1d5433)throw new Error(_0x370652['xhtlN']);_0x37be4a[_0x4f14cd(0xae)]=[];for(const _0x3075ca of _0x1d5433){_0x37be4a[_0x4f14cd(0xae)][_0x4f14cd(0xe0)]({'user_id':_0x3075ca?.[_0x4f14cd(0xa5)],'nickname':_0x3075ca?.[_0x4f14cd(0xab)],'avatar':_0x3075ca?.['avatar'],'desc':_0x3075ca?.[_0x4f14cd(0x114)]});}}catch(_0x3c99b4){_0x370652[_0x4f14cd(0x123)](logDebug,_0x4f14cd(0x11c),_0x3c99b4);}if(_0x370652['JapPW'](_0x31fea5,WebHonorType[_0x4f14cd(0xdf)])||_0x370652['XozbP'](_0x31fea5,WebHonorType[_0x4f14cd(0xfa)]))try{let _0x18df87=await _0x370652[_0x4f14cd(0x123)](_0x395647,_0x2ee1df,0x6);if(!_0x18df87)throw new Error(_0x370652[_0x4f14cd(0xe8)]);_0x37be4a[_0x4f14cd(0xe9)]=[];for(const _0x92898c of _0x18df87){_0x37be4a['emotion_list']['push']({'user_id':_0x92898c?.['uin'],'nickname':_0x92898c?.[_0x4f14cd(0xab)],'avatar':_0x92898c?.[_0x4f14cd(0xf8)],'desc':_0x92898c?.['description']});}}catch(_0x31d688){_0x370652['tlWzt'](logDebug,_0x370652[_0x4f14cd(0xe8)],_0x31d688);}return(_0x31fea5===WebHonorType[_0x4f14cd(0xdf)]||_0x370652[_0x4f14cd(0x107)](_0x31fea5,WebHonorType['ALL']))&&(_0x37be4a[_0x4f14cd(0x11a)]=[]),_0x37be4a;}} \ No newline at end of file diff --git a/src/core.lib/src/core.js b/src/core.lib/src/core.js index 9d5e12f9..9a7093ac 100644 --- a/src/core.lib/src/core.js +++ b/src/core.lib/src/core.js @@ -1 +1 @@ -const _0x10f612=_0xc74a;(function(_0x2030fe,_0x3b09c3){const _0x2be164=_0xc74a,_0x2b8659=_0x2030fe();while(!![]){try{const _0x2e5f40=-parseInt(_0x2be164(0x1d2))/0x1*(-parseInt(_0x2be164(0x26d))/0x2)+parseInt(_0x2be164(0x1ff))/0x3+-parseInt(_0x2be164(0x1ef))/0x4+-parseInt(_0x2be164(0x211))/0x5*(-parseInt(_0x2be164(0x1f2))/0x6)+parseInt(_0x2be164(0x26b))/0x7+-parseInt(_0x2be164(0x1eb))/0x8+-parseInt(_0x2be164(0x269))/0x9;if(_0x2e5f40===_0x3b09c3)break;else _0x2b8659['push'](_0x2b8659['shift']());}catch(_0x337f4c){_0x2b8659['push'](_0x2b8659['shift']());}}}(_0x52aa,0x5de51));import _0x7e599d from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';function _0xc74a(_0x56ea9a,_0x3e09a5){const _0x52aadf=_0x52aa();return _0xc74a=function(_0xc74a1d,_0xe373de){_0xc74a1d=_0xc74a1d-0x1ca;let _0x4c1f26=_0x52aadf[_0xc74a1d];return _0x4c1f26;},_0xc74a(_0x56ea9a,_0x3e09a5);}import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x5b499f from'node:path';import _0x57cea3 from'node:os';import _0x125e81 from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';function _0x52aa(){const _0x11f86e=['onBuddyListChange','数据库初始化失败','onRecvMsg','read','length','addKernelLoginListener','init\x20failed\x20','bBnIx','bnequ','qyKZU','136416PvuPog','addListener','getMsgService','catch','onProfileDetailInfoChanged','Aduhg','clientType','BrrHI','KjwqO','recallTime','session','WZWpc','jQvmH','WZkHy','onQRCodeLoginSucceed','addKernelBuddyListener','util','./nt_qq/global','homedir','initConfig','RRjJj','快速登录不可用','onSessionInitComplete','groupCode','rEhSa','3858104HVffcw','onLineDev','createMemberListScene','VkJdN','2633888NhRduJ','isQuickLogin','bwRBC','426HaGtQb','quickLogin','140022013','set','onUserLoggedIn','name','BickE','getBuddyService','本账号数据/缓存目录:','NodeIGlobalAdapter','mkdirSync','consoleLog','zOFlC','1744626XNgMPR','hex','\x20has\x20no\x20method\x20','onMemberListChange','NodeIKernelBuddyListener','140022008','NodeIKernelMsgListener','isDelete','PHeBI','data:image/png;base64,','addMsg','XEMef','onMsgInfoListUpdate','has','resolve','fileLogLevel','onQRCodeSessionFailed','buddyList','46955wkSRTr','split','update','QBUuB','onGroupListUpdate','NodeIKernelLoginListener','gQCWr','assign','YhuEL','ybjwU','getGroupService','consoleLogLevel','akcHl','xIddA','jhZiJ','last_message_time','proxyHandler','map','dataPath','packet_received','tipsDesc','message_sent','CxdFS','VJAXQ','快速登录失败\x20','from','pCvas','登录失败',')已登录,无法重复登录','tipsTitle','delete','DIppQ','getQuickLoginList','initSession\x20failed','forEach','initWithDeskTopConfig','engine','onLoginSuccessFuncList','NodeQQNTWrapperUtil','iJzVI','find','addKernelGroupListener','ProfileListener','curVersion','getLoginList','result','NpRYU','NodeIQQNTWrapperEngine','floor','RxSwB','initDataListener','NcdOo','undefined','onSelfStatusChanged','BGyub','getMsgByLongId','NodeIKernelSessionListener','startNT','rOQkD','push','Oecim','initSession','V1_WIN_NQ_','pngBase64QrcodeData','qrLogin','now','_GW_B','GroupListener','uin','当前账号(','rrmsX','IEEqH','onLoginSuccess','NodeIDependsAdapter','./.config/QQ','init','loginErrorInfo','JVrAV','IJdrE','createHash','replace','cuglv','dataPathGlobal','GgxCv','getQRCodePicture','NodeIKernelProfileListener','getNTUserDataInfoConfig','loginService','7391205VBeTOx','get','4823154khHTca',')\x20在线状态变更','6eYuRJW','Windows\x2010\x20Pro','sceneId','账号设备(','./NapCat/data','then','hygJR','passwordLogin','GjYGC','constructor','loginListener','uid','swnVy'];_0x52aa=function(){return _0x11f86e;};return _0x52aa();}import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0x3b742f from'node:crypto';import{rawFriends,friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{[_0x10f612(0x1dc)];[_0x10f612(0x1e2)];[_0x10f612(0x235)];[_0x10f612(0x277)];['loginService'];[_0x10f612(0x236)]=[];[_0x10f612(0x221)]={'get'(target,prop,receiver){const _0x39db08=_0x10f612,crUvht={'pZkkn':function(callee,param1){return callee(param1);}};if(typeof target[prop]===_0x39db08(0x245))return(...args)=>{const _0x3cf6d5=_0x39db08;crUvht['pZkkn'](logDebug,target[_0x3cf6d5(0x276)]['name']+_0x3cf6d5(0x201)+prop);};return Reflect[_0x39db08(0x26a)](target,prop,receiver);}};constructor(){const _0x31130e=_0x10f612,_0x242669={'qyKZU':function(_0x5d0e91,_0x155fcb){return _0x5d0e91(_0x155fcb);},'MyrFd':function(_0x1ee872,_0x46623d){return _0x1ee872+_0x46623d;},'BickE':_0x31130e(0x22d),'bwRBC':function(_0x13549e,_0x52fb4e,_0x50e674){return _0x13549e(_0x52fb4e,_0x50e674);},'akcHl':_0x31130e(0x232),'zOFlC':_0x31130e(0x27b),'ybjwU':function(_0x24c750,_0x35df4b,_0x4d94f5){return _0x24c750(_0x35df4b,_0x4d94f5);},'IJkkr':function(_0x11fe74,_0x1fa400){return _0x11fe74(_0x1fa400);},'RRjJj':function(_0x44bac9,_0x56543d){return _0x44bac9==_0x56543d;},'PHeBI':function(_0x10606b,_0x43b563){return _0x10606b==_0x43b563;},'BrrHI':_0x31130e(0x22c)};this[_0x31130e(0x235)]=new _0x7e599d[(_0x31130e(0x240))](),this[_0x31130e(0x1e2)]=new _0x7e599d[(_0x31130e(0x237))](),this[_0x31130e(0x268)]=new _0x7e599d['NodeIKernelLoginService'](),this[_0x31130e(0x1dc)]=new _0x7e599d['NodeIQQNTWrapperSession'](),this[_0x31130e(0x277)]=new LoginListener(),this['loginListener'][_0x31130e(0x1f6)]=_0x29ab02=>{const _0x5165cf=_0x31130e;_0x242669[_0x5165cf(0x1d1)](logError,_0x242669['MyrFd'](_0x5165cf(0x256)+_0x29ab02,_0x242669[_0x5165cf(0x1f8)]));},this[_0x31130e(0x277)][_0x31130e(0x1e0)]=_0x375438=>{const _0x43fb4f=_0x31130e,_0x3bd585={'IJdrE':function(_0x3db84c,_0x1e63df,_0x336f6b){const _0x2a1c9b=_0xc74a;return _0x242669[_0x2a1c9b(0x1f1)](_0x3db84c,_0x1e63df,_0x336f6b);},'jQvmH':_0x242669[_0x43fb4f(0x1fe)],'Oecim':function(_0x52c261,_0x5968b4,_0x14fa31){const _0x43c019=_0x43fb4f;return _0x242669[_0x43c019(0x21a)](_0x52c261,_0x5968b4,_0x14fa31);},'RaXNZ':function(_0x13b507,_0x5df86b){return _0x13b507(_0x5df86b);},'WZWpc':function(_0x4a65f0,_0x42bd1d){const _0x51f2ad=_0x43fb4f;return _0x242669[_0x51f2ad(0x1d1)](_0x4a65f0,_0x42bd1d);},'IEEqH':function(_0x79983c,_0x1e6fbf){return _0x242669['IJkkr'](_0x79983c,_0x1e6fbf);},'gQCWr':_0x43fb4f(0x271)};this[_0x43fb4f(0x24e)](_0x375438[_0x43fb4f(0x255)],_0x375438[_0x43fb4f(0x278)])['then'](_0x32b09c=>{const _0x4c9d7e=_0x43fb4f;selfInfo[_0x4c9d7e(0x255)]=_0x375438[_0x4c9d7e(0x255)],selfInfo[_0x4c9d7e(0x278)]=_0x375438[_0x4c9d7e(0x278)],napCatConfig[_0x4c9d7e(0x1cb)](),_0x3bd585[_0x4c9d7e(0x24d)](setLogLevel,napCatConfig[_0x4c9d7e(0x20e)],napCatConfig[_0x4c9d7e(0x21c)]),_0x3bd585['RaXNZ'](enableFileLog,napCatConfig['fileLog']),_0x3bd585[_0x4c9d7e(0x1dd)](enableConsoleLog,napCatConfig[_0x4c9d7e(0x1fd)]),_0x3bd585[_0x4c9d7e(0x258)](setLogSelfInfo,selfInfo);const _0x504903=_0x5b499f['resolve'](this[_0x4c9d7e(0x223)],_0x3bd585[_0x4c9d7e(0x217)]);_0x125e81[_0x4c9d7e(0x1fc)](_0x504903,{'recursive':!![]}),_0x3bd585[_0x4c9d7e(0x25f)](logDebug,_0x4c9d7e(0x1fa),_0x504903),dbUtil[_0x4c9d7e(0x25c)](_0x5b499f[_0x4c9d7e(0x20d)](_0x504903,'./'+_0x375438[_0x4c9d7e(0x255)]+'-v2.db'))[_0x4c9d7e(0x272)](()=>{const _0x2cde65=_0x4c9d7e;this[_0x2cde65(0x243)](),this[_0x2cde65(0x236)][_0x2cde65(0x222)](_0x288811=>{const _0xb8d26f=_0x2cde65;new Promise((_0x47f55b,_0x57d57c)=>{const _0x2647f9=_0xc74a,_0x56cfea=_0x288811(_0x375438[_0x2647f9(0x255)],_0x375438[_0x2647f9(0x278)]);_0x56cfea instanceof Promise&&_0x56cfea[_0x2647f9(0x272)](_0x47f55b)['catch'](_0x57d57c);})[_0xb8d26f(0x272)]();});})['catch'](_0x4d41cc=>{const _0x20ace5=_0x4c9d7e;_0x3bd585['IJdrE'](logError,_0x3bd585[_0x20ace5(0x1de)],_0x4d41cc);});})[_0x43fb4f(0x1d5)](_0x297565=>{const _0x12a96c=_0x43fb4f;_0x242669[_0x12a96c(0x1f1)](logError,_0x242669[_0x12a96c(0x21d)],_0x297565);throw new Error('启动失败:\x20'+JSON['stringify'](_0x297565));});},this[_0x31130e(0x277)][_0x31130e(0x20f)]=(_0x477322,_0x3704f5,_0x2742ab)=>{const _0x45712f=_0x31130e;_0x242669[_0x45712f(0x1f1)](logError,_0x45712f(0x22c),_0x2742ab),_0x242669[_0x45712f(0x1e6)](_0x477322,0x1)&&_0x242669[_0x45712f(0x207)](_0x3704f5,0x3)&&this['loginService'][_0x45712f(0x265)]();},this[_0x31130e(0x277)]['onLoginFailed']=_0x245e49=>{const _0x269cef=_0x31130e;_0x242669[_0x269cef(0x1f1)](logError,_0x242669[_0x269cef(0x1d9)],_0x245e49);},this[_0x31130e(0x277)]=new Proxy(this[_0x31130e(0x277)],this[_0x31130e(0x221)]),this[_0x31130e(0x268)][_0x31130e(0x1cd)](new _0x7e599d[(_0x31130e(0x216))](this[_0x31130e(0x277)])),this[_0x31130e(0x1e5)]();}get['dataPath'](){const _0x48e739=_0x10f612;let _0x835611=this['util'][_0x48e739(0x267)]();return!_0x835611&&(_0x835611=_0x5b499f[_0x48e739(0x20d)](_0x57cea3[_0x48e739(0x1e4)](),_0x48e739(0x25b)),_0x125e81[_0x48e739(0x1fc)](_0x835611,{'recursive':!![]})),_0x835611;}get[_0x10f612(0x263)](){const _0x84b0be=_0x10f612,_0x5f2a65={'IwwuA':_0x84b0be(0x1e3)};return _0x5b499f[_0x84b0be(0x20d)](this[_0x84b0be(0x223)],_0x5f2a65['IwwuA']);}[_0x10f612(0x1e5)](){const _0x5f128c=_0x10f612,_0x3bdff8={'iJzVI':_0x5f128c(0x26e)};this['engine'][_0x5f128c(0x234)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x5f128c(0x23c)],'os_version':_0x3bdff8[_0x5f128c(0x238)],'use_xlog':!![],'qua':_0x5f128c(0x24f)+qqVersionConfigInfo[_0x5f128c(0x23c)][_0x5f128c(0x261)]('-','_')+_0x5f128c(0x253),'global_path_config':{'desktopGlobalPath':this[_0x5f128c(0x263)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x7e599d[(_0x5f128c(0x1fb))](new GlobalAdapter())),this[_0x5f128c(0x268)][_0x5f128c(0x1e5)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x5f128c(0x263)],'clientVer':qqVersionConfigInfo['curVersion'],'hostName':hostname});}[_0x10f612(0x24e)](_0x2e2f18,_0x23a77f){const _0x75e940=_0x10f612,_0x461241={'GgxCv':function(_0x5a0d18,_0xf95fc){return _0x5a0d18(_0xf95fc);},'hygJR':function(_0x359fa5,_0x1b1ea5,_0xb334db,_0x3e51bf){return _0x359fa5(_0x1b1ea5,_0xb334db,_0x3e51bf);},'XOpLn':function(_0x106311,_0x2b6380){return _0x106311+_0x2b6380;},'GjYGC':_0x75e940(0x1ce)};return new Promise((_0x114793,_0x431b44)=>{const _0x274ea4=_0x75e940,_0x14cac7=_0x461241[_0x274ea4(0x273)](genSessionConfig,_0x2e2f18,_0x23a77f,this['dataPath']),_0x4bc8c0=new SessionListener();_0x4bc8c0[_0x274ea4(0x1e8)]=_0x568491=>{const _0xeb3776=_0x274ea4;if(_0x568491===0x0)return _0x461241[_0xeb3776(0x264)](_0x114793,0x0);_0x431b44(_0x568491);},this[_0x274ea4(0x1dc)]['init'](_0x14cac7,new _0x7e599d[(_0x274ea4(0x25a))](new DependsAdapter()),new _0x7e599d['NodeIDispatcherAdapter'](new DispatcherAdapter()),new _0x7e599d[(_0x274ea4(0x249))](_0x4bc8c0));try{this[_0x274ea4(0x1dc)][_0x274ea4(0x24a)](0x0);}catch(_0x252405){try{this[_0x274ea4(0x1dc)][_0x274ea4(0x24a)]();}catch(_0x383f64){_0x461241[_0x274ea4(0x264)](_0x431b44,_0x461241['XOpLn'](_0x461241[_0x274ea4(0x275)],_0x383f64));}}});}['initDataListener'](){const _0x3d63ce=_0x10f612,_0x11e0d7={'rrmsX':function(_0xf6fdaf,_0x484256){return _0xf6fdaf+_0x484256;},'CxdFS':_0x3d63ce(0x26c),'LKjJW':function(_0x2e8083,_0x16feb6){return _0x2e8083+_0x16feb6;},'VJAXQ':function(_0x2ddb2a,_0x2d1968){return _0x2ddb2a+_0x2d1968;},'Zarbi':'[KickedOffLine]\x20[','QBUuB':function(_0xa4855c,_0x35f033){return _0xa4855c/_0x35f033;},'bBnIx':function(_0x2d3eb4,_0x297a2e){return _0x2d3eb4/_0x297a2e;},'vbpeS':'groupMemberList_MainWindow','pCvas':function(_0x3a9933,_0x4fa3bd){return _0x3a9933===_0x4fa3bd;},'NcdOo':function(_0x164264,_0x347792,_0x37e36e){return _0x164264(_0x347792,_0x37e36e);}},_0x22b771=new MsgListener();_0x22b771[_0x3d63ce(0x1ec)]=_0x5578fb=>{const _0x40c454=_0x3d63ce;_0x5578fb[_0x40c454(0x222)](_0x483be9=>{const _0x45d101=_0x40c454;_0x483be9[_0x45d101(0x1d8)]===0x2&&log(_0x11e0d7[_0x45d101(0x257)](_0x45d101(0x270),_0x483be9['devUid'])+_0x11e0d7[_0x45d101(0x227)]);});},_0x22b771['onKickedOffLine']=_0x194138=>{const _0x527891=_0x3d63ce;log(_0x11e0d7[_0x527891(0x257)](_0x11e0d7['LKjJW'](_0x11e0d7[_0x527891(0x228)](_0x11e0d7['Zarbi'],_0x194138[_0x527891(0x22e)]),']\x20'),_0x194138[_0x527891(0x225)]));},_0x22b771[_0x3d63ce(0x20b)]=_0x26a507=>{const _0x2aeaed=_0x3d63ce;stat[_0x2aeaed(0x224)]+=0x1,_0x26a507['map'](_0x5010a6=>{const _0x56c762=_0x2aeaed;_0x5010a6[_0x56c762(0x1db)]==='0'?dbUtil[_0x56c762(0x209)](_0x5010a6)[_0x56c762(0x272)]()[_0x56c762(0x1d5)]():dbUtil[_0x56c762(0x248)](_0x5010a6['msgId'])['then'](_0x22031b=>{const _0xb9316=_0x56c762;_0x22031b&&(_0x22031b['recallTime']=_0x5010a6[_0xb9316(0x1db)],dbUtil['updateMsg'](_0x22031b)[_0xb9316(0x272)]());});});},_0x22b771['onAddSendMsg']=_0x282f75=>{const _0x261ec6=_0x3d63ce;stat['packet_sent']+=0x1,stat[_0x261ec6(0x226)]+=0x1,stat[_0x261ec6(0x220)]=Math[_0x261ec6(0x241)](_0x11e0d7[_0x261ec6(0x214)](Date[_0x261ec6(0x252)](),0x3e8));},_0x22b771[_0x3d63ce(0x1ca)]=_0x2edcd1=>{const _0x1293c1=_0x3d63ce;stat[_0x1293c1(0x224)]+=0x1,stat['message_received']+=_0x2edcd1[_0x1293c1(0x1cc)],stat[_0x1293c1(0x220)]=Math['floor'](_0x11e0d7[_0x1293c1(0x1cf)](Date['now'](),0x3e8));},_0x22b771['onRecvSysMsg']=(..._0x4e6ae7)=>{const _0x5f25d7=_0x3d63ce;stat[_0x5f25d7(0x224)]+=0x1;},this[_0x3d63ce(0x1d3)](_0x22b771);const _0x37ed54=new BuddyListener();_0x37ed54[_0x3d63ce(0x27a)]=_0x140718=>{const _0x4532ce=_0x3d63ce;rawFriends['length']=0x0,rawFriends[_0x4532ce(0x24c)](..._0x140718);for(const _0x40944b of _0x140718){for(const _0x2f7ef0 of _0x40944b[_0x4532ce(0x210)]){const _0x1e52fc=friends[_0x4532ce(0x26a)](_0x2f7ef0[_0x4532ce(0x278)]);uid2UinMap[_0x2f7ef0[_0x4532ce(0x278)]]=_0x2f7ef0[_0x4532ce(0x255)],_0x1e52fc?Object[_0x4532ce(0x218)](_0x1e52fc,_0x2f7ef0):friends['set'](_0x2f7ef0[_0x4532ce(0x278)],_0x2f7ef0);}}},this[_0x3d63ce(0x1d3)](_0x37ed54),this[_0x3d63ce(0x1dc)]['getBuddyService']()['getBuddyList'](!![])[_0x3d63ce(0x272)](_0x327077=>{});const _0xd6c0c4=new ProfileListener();_0xd6c0c4[_0x3d63ce(0x1d6)]=_0x5dbac3=>{const _0x4539e8=_0x3d63ce;_0x5dbac3[_0x4539e8(0x278)]===selfInfo[_0x4539e8(0x278)]&&Object[_0x4539e8(0x218)](selfInfo,_0x5dbac3);},_0xd6c0c4[_0x3d63ce(0x246)]=_0x226c33=>{},this[_0x3d63ce(0x1d3)](_0xd6c0c4);const _0x294c3b=new GroupListener();_0x294c3b[_0x3d63ce(0x215)]=(_0x35cf7e,_0x197df8)=>{const _0x570f30=_0x3d63ce,_0x3e06b8={'BGyub':_0x11e0d7['vbpeS']};_0x197df8[_0x570f30(0x222)](_0x43a2ac=>{const _0x3d9c8=_0x570f30,_0x1035a7=groups[_0x3d9c8(0x26a)](_0x43a2ac[_0x3d9c8(0x1e9)]);if(_0x1035a7)Object[_0x3d9c8(0x218)](_0x1035a7,_0x43a2ac);else{groups['set'](_0x43a2ac['groupCode'],_0x43a2ac);const _0x4892f3=this[_0x3d9c8(0x1dc)][_0x3d9c8(0x21b)]()[_0x3d9c8(0x1ed)](_0x43a2ac[_0x3d9c8(0x1e9)],_0x3e06b8[_0x3d9c8(0x247)]);this[_0x3d9c8(0x1dc)][_0x3d9c8(0x21b)]()['getNextMemberList'](_0x4892f3,undefined,0xbb8)[_0x3d9c8(0x272)](_0x7b2d7f=>{});}});},_0x294c3b[_0x3d63ce(0x202)]=_0x9e1d7b=>{const _0x36298c=_0x3d63ce,_0x3a84a7=_0x9e1d7b[_0x36298c(0x26f)]['split']('_')[0x0];if(groupMembers[_0x36298c(0x20c)](_0x3a84a7)){const _0x191590=groupMembers['get'](_0x3a84a7);_0x9e1d7b['infos'][_0x36298c(0x233)]((_0x567080,_0x549133)=>{const _0x97731b=_0x36298c,_0x51c93f=_0x191590[_0x97731b(0x26a)](_0x549133);_0x51c93f?Object[_0x97731b(0x218)](_0x51c93f,_0x567080):_0x191590['set'](_0x549133,_0x567080);});}else groupMembers[_0x36298c(0x1f5)](_0x3a84a7,_0x9e1d7b['infos']);},_0x294c3b['onMemberInfoChange']=(_0x3f1097,_0x487865,_0x1f9ae0)=>{const _0x4983fe=_0x3d63ce;_0x11e0d7[_0x4983fe(0x22b)](_0x487865,0x0)&&_0x1f9ae0[_0x4983fe(0x26a)](selfInfo[_0x4983fe(0x278)])&&_0x1f9ae0[_0x4983fe(0x26a)](selfInfo[_0x4983fe(0x278)])?.[_0x4983fe(0x206)]&&_0x11e0d7[_0x4983fe(0x244)](setTimeout,()=>{const _0x33ba53=_0x4983fe;groups[_0x33ba53(0x22f)](_0x3f1097);},0x1388);_0x1f9ae0['forEach']((_0x3c9771,_0x136342)=>{uid2UinMap[_0x136342]=_0x3c9771['uin'];});const _0x3fcdfa=groupMembers[_0x4983fe(0x26a)](_0x3f1097);_0x3fcdfa?_0x1f9ae0[_0x4983fe(0x233)]((_0x2acc0d,_0x59aea6)=>{const _0x466cb1=_0x4983fe,_0x36bf75=_0x3fcdfa[_0x466cb1(0x26a)](_0x59aea6);_0x36bf75?Object[_0x466cb1(0x218)](_0x36bf75,_0x2acc0d):_0x3fcdfa[_0x466cb1(0x1f5)](_0x59aea6,_0x2acc0d);}):groupMembers['set'](_0x3f1097,_0x1f9ae0);},this[_0x3d63ce(0x1d3)](_0x294c3b);}[_0x10f612(0x1d3)](_0x59e45a){const _0x18f97b=_0x10f612,_0x5d4c3c={'YhuEL':'BuddyListener','xIddA':'MsgListener','NpRYU':_0x18f97b(0x23b)};_0x59e45a=new Proxy(_0x59e45a,this[_0x18f97b(0x221)]);switch(_0x59e45a[_0x18f97b(0x276)][_0x18f97b(0x1f7)]){case _0x5d4c3c[_0x18f97b(0x219)]:{return this[_0x18f97b(0x1dc)][_0x18f97b(0x1f9)]()[_0x18f97b(0x1e1)](new _0x7e599d[(_0x18f97b(0x203))](_0x59e45a));}case _0x18f97b(0x254):{return this[_0x18f97b(0x1dc)][_0x18f97b(0x21b)]()[_0x18f97b(0x23a)](new _0x7e599d['NodeIKernelGroupListener'](_0x59e45a));}case _0x5d4c3c[_0x18f97b(0x21e)]:{return this[_0x18f97b(0x1dc)][_0x18f97b(0x1d4)]()['addKernelMsgListener'](new _0x7e599d[(_0x18f97b(0x205))](_0x59e45a));}case _0x5d4c3c[_0x18f97b(0x23f)]:{return this[_0x18f97b(0x1dc)]['getProfileService']()['addKernelProfileListener'](new _0x7e599d[(_0x18f97b(0x266))](_0x59e45a));}default:return-0x1;}}[_0x10f612(0x259)](_0x115e38){const _0x4771cf=_0x10f612;this[_0x4771cf(0x236)][_0x4771cf(0x24c)](_0x115e38);}async[_0x10f612(0x1f3)](_0x20705e){const _0x24a7a1=_0x10f612,_0x3030b4={'bguek':function(_0x5b93fb,_0x49f8ae){return _0x5b93fb!==_0x49f8ae;},'XEMef':'没有可快速登录的QQ号','swnVy':function(_0x5d24d8,_0x2f0a92){return _0x5d24d8+_0x2f0a92;}},_0x58394a=await this[_0x24a7a1(0x268)][_0x24a7a1(0x23d)]();if(_0x3030b4['bguek'](_0x58394a[_0x24a7a1(0x23e)],0x0))throw new Error(_0x3030b4[_0x24a7a1(0x20a)]);const _0x412ac3=_0x58394a['LocalLoginInfoList'][_0x24a7a1(0x239)](_0x59c5bb=>_0x59c5bb[_0x24a7a1(0x255)]===_0x20705e);if(!_0x412ac3||!_0x412ac3?.[_0x24a7a1(0x1f0)])throw new Error(_0x20705e+_0x24a7a1(0x1e7));await sleep(0x3e8);const _0x45709f=await this[_0x24a7a1(0x268)]['quickLoginWithUin'](_0x20705e);if(!_0x45709f[_0x24a7a1(0x23e)])throw new Error(_0x3030b4[_0x24a7a1(0x279)](_0x24a7a1(0x229),_0x45709f[_0x24a7a1(0x25d)]['errMsg']));return _0x45709f;}async[_0x10f612(0x251)](_0x49143f){const _0x847ce9=_0x10f612,_0x6d7a44={'DIppQ':_0x847ce9(0x208),'Aduhg':'base64','WZkHy':function(_0x432d43,_0x3d2e5e,_0x1c4181,_0x4829c4){return _0x432d43(_0x3d2e5e,_0x1c4181,_0x4829c4);}};return new Promise((_0x3d44f6,_0x1e33c7)=>{const _0x2ae11f=_0x847ce9,_0x55b370={'JVrAV':_0x6d7a44[_0x2ae11f(0x230)],'rEhSa':_0x6d7a44[_0x2ae11f(0x1d7)],'VkJdN':function(_0x4905f6,_0x6603f,_0x36af6e,_0x41fa2c){const _0x18187e=_0x2ae11f;return _0x6d7a44[_0x18187e(0x1df)](_0x4905f6,_0x6603f,_0x36af6e,_0x41fa2c);}};this[_0x2ae11f(0x277)]['onQRCodeGetPicture']=_0x287f49=>{const _0xc06766=_0x2ae11f,_0x33531f=_0x287f49[_0xc06766(0x250)][_0xc06766(0x212)](_0x55b370[_0xc06766(0x25e)])[0x1],_0x11b911=Buffer[_0xc06766(0x22a)](_0x33531f,_0x55b370[_0xc06766(0x1ea)]);_0x55b370[_0xc06766(0x1ee)](_0x49143f,_0x287f49['qrcodeUrl'],_0x287f49[_0xc06766(0x250)],_0x11b911);},this['loginService'][_0x2ae11f(0x265)]();});}async[_0x10f612(0x274)](_0x2ada25,_0x19a8e5,_0x57dc05,_0x369376,_0x3b445b){const _0xa6baa=_0x10f612,_0x5ab898={'bnequ':_0xa6baa(0x200),'cuglv':function(_0x1cf07c,_0x22a02a){return _0x1cf07c&&_0x22a02a;},'rOQkD':function(_0x34007b,_0x242b15){return _0x34007b||_0x242b15;},'RxSwB':function(_0x24a722,_0xd16c2b){return _0x24a722||_0xd16c2b;},'xpbOh':function(_0x2bc014,_0x3348d4){return _0x2bc014(_0x3348d4);},'KjwqO':_0xa6baa(0x204),'jhZiJ':_0xa6baa(0x1f4)},_0x59b68e=_0x3b742f[_0xa6baa(0x260)]('md5')[_0xa6baa(0x213)](_0x19a8e5)['digest'](_0x5ab898[_0xa6baa(0x1d0)]),_0x5ed4d0={'uin':_0x2ada25,'passwordMd5':_0x59b68e,'step':_0x5ab898[_0xa6baa(0x262)](_0x57dc05,_0x369376)&&_0x3b445b?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x5ab898[_0xa6baa(0x24b)](_0x57dc05,''),'proofWaterRand':_0x369376||'','proofWaterSid':_0x5ab898[_0xa6baa(0x242)](_0x3b445b,'')};await this[_0xa6baa(0x268)]['getLoginList'](),await _0x5ab898['xpbOh'](sleep,0x3e8);const _0xbbff72=await this[_0xa6baa(0x268)][_0xa6baa(0x274)](_0x5ed4d0);switch(_0xbbff72['result']){case'0':{break;}case _0x5ab898[_0xa6baa(0x1da)]:{break;}case'4':case _0x5ab898[_0xa6baa(0x21f)]:default:}}async[_0x10f612(0x231)](){const _0x2ca5f1=_0x10f612,_0x232aee=await this[_0x2ca5f1(0x268)][_0x2ca5f1(0x23d)]();return _0x232aee;}}export const napCatCore=new NapCatCore(); \ No newline at end of file +const _0x240855=_0x815b;(function(_0x470432,_0x101429){const _0x55a88f=_0x815b,_0x2499a0=_0x470432();while(!![]){try{const _0x85096b=-parseInt(_0x55a88f(0xb2))/0x1*(parseInt(_0x55a88f(0xb9))/0x2)+parseInt(_0x55a88f(0x144))/0x3+-parseInt(_0x55a88f(0x159))/0x4+-parseInt(_0x55a88f(0xf5))/0x5+parseInt(_0x55a88f(0xda))/0x6*(parseInt(_0x55a88f(0x143))/0x7)+parseInt(_0x55a88f(0x129))/0x8+parseInt(_0x55a88f(0x141))/0x9;if(_0x85096b===_0x101429)break;else _0x2499a0['push'](_0x2499a0['shift']());}catch(_0x588812){_0x2499a0['push'](_0x2499a0['shift']());}}}(_0x5b58,0x7818c));import _0xad918e from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x34dc6e from'node:path';function _0x815b(_0x1eab5e,_0x2d4fa3){const _0x5b580d=_0x5b58();return _0x815b=function(_0x815b5d,_0xcca38e){_0x815b5d=_0x815b5d-0xa3;let _0x1cee29=_0x5b580d[_0x815b5d];return _0x1cee29;},_0x815b(_0x1eab5e,_0x2d4fa3);}import _0x238ed8 from'node:os';import _0x1f5aff from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0x495ab2 from'node:crypto';import{rawFriends,friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';function _0x5b58(){const _0x1d35ae=['packet_received','loginService','getBuddyService','快速登录失败\x20','initSession','pngBase64QrcodeData','2891484WBLlum','EElwq','850087MbdOQI','1086321oCgsFn','fileLog','FeQBD','session','homedir','then','没有可快速登录的QQ号','initConfig','LocalLoginInfoList','getNTUserDataInfoConfig','GroupListener','_GW_B','recallTime','iLugb','LWkyb','xTbiG','BuddyListener','has','onQRCodeSessionFailed','errMsg','resolve','43684OLNLDM','IiVLC','message_sent','digest','OLPdF','XkIxr','TMqag','qrLogin','NodeIKernelBuddyListener','getQuickLoginList','quickLoginWithUin','NodeIKernelSessionListener','数据库初始化失败','length','./.config/QQ','getQRCodePicture','groupCode','onSessionInitComplete','[KickedOffLine]\x20[','QpghH','ERFaU','tipsTitle','pAnjg','fSLKE','packet_sent','xsPeJ','4225TfdtzK','buddyList','eZBhh','MYRwV','update','addListener','getProfileService','242WCKlVZ','tipsDesc','dataPath','qrcodeUrl','consoleLogLevel',')\x20在线状态变更','getNextMemberList','VGdbk','createHash','NodeIQQNTWrapperSession','启动失败:\x20','onQRCodeLoginSucceed','bIaRk','passwordLogin','WEiMJ','replace','uid','Windows\x2010\x20Pro','LhIvU','onRecvMsg','NodeIQQNTWrapperEngine','dAgGe','hex','onProfileDetailInfoChanged','getMsgByLongId','onLoginFailed','util','GoBTz','当前账号(','getGroupService','账号设备(','\x20has\x20no\x20method\x20','onSelfStatusChanged','42tFjgyf','result','IJwWi','-v2.db','knNeZ','addKernelLoginListener','本账号数据/缓存目录:','lampe','BDIkI','push','qZaFx','md5','onQRCodeGetPicture','TQMvm','now','onLineDev','niPgw','initDataListener','wLAPc','NodeIDispatcherAdapter','mkdirSync','proxyHandler','vFQeL','undefined','loginListener','CSdfp','dataPathGlobal','2608650FvDNgG','addMsg','140022013','onLoginSuccessFuncList','assign','140022008','addKernelGroupListener','initWithDeskTopConfig','uin','RYPwS','oLPuP','wraGc','getLoginList','kKkDw','engine',')已登录,无法重复登录','VIrfy','infos','updateMsg','name','MsgListener','sceneId','onGroupListUpdate','nkHlc','devUid','fileLogLevel','getMsgService','nMriu','NXarO','addKernelBuddyListener','consoleLog','stringify','YhZjT','NodeIKernelMsgListener','KnmSd','uQVqd','V1_WIN_NQ_','mdMZM','catch','onAddSendMsg','get','ysPNe','onLoginSuccess','data:image/png;base64,','set','createMemberListScene','quickLogin','forEach','bDmGr','dgLNQ','loginErrorInfo','constructor','18576OcgZbS','NodeIKernelGroupListener','base64','NodeIGlobalAdapter','groupMemberList_MainWindow','init','qXLnT','clientType','map','onKickedOffLine','fGqwb','onMemberInfoChange','./NapCat/data','addKernelProfileListener','floor','fCZRb','curVersion','getBuddyList'];_0x5b58=function(){return _0x1d35ae;};return _0x5b58();}import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{[_0x240855(0x147)];[_0x240855(0xd3)];[_0x240855(0x103)];[_0x240855(0xf2)];[_0x240855(0x13c)];[_0x240855(0xf8)]=[];[_0x240855(0xef)]={'get'(target,prop,receiver){const _0x16d6ce=_0x240855,YcXyAw={'oLPuP':function(callee,param1){return callee(param1);},'zcYpn':_0x16d6ce(0xf1)};if(typeof target[prop]===YcXyAw['zcYpn'])return(...args)=>{const _0x57ee6f=_0x16d6ce;YcXyAw[_0x57ee6f(0xff)](logDebug,target[_0x57ee6f(0x128)][_0x57ee6f(0x108)]+_0x57ee6f(0xd8)+prop);};return Reflect[_0x16d6ce(0x11d)](target,prop,receiver);}};constructor(){const _0x2c719d=_0x240855,_0x225eb8={'mdMZM':function(_0x3c0283,_0x1218e9){return _0x3c0283+_0x1218e9;},'qZaFx':_0x2c719d(0xd5),'LJzmK':_0x2c719d(0x104),'fGqwb':'initSession\x20failed','NXarO':function(_0x134ae7,_0x49a597,_0x246dc1){return _0x134ae7(_0x49a597,_0x246dc1);},'CSdfp':_0x2c719d(0xa4),'pAnjg':function(_0x55f527,_0x1a2a42){return _0x55f527(_0x1a2a42);},'FeQBD':_0x2c719d(0x135),'LWkyb':function(_0x2a6bb1,_0x49ff2b,_0x115172){return _0x2a6bb1(_0x49ff2b,_0x115172);},'VGdbk':'登录失败','jtPkF':function(_0x2b9b97,_0x4f1b99){return _0x2b9b97==_0x4f1b99;},'qXLnT':function(_0x38e10b,_0x1758c6,_0x2d367b){return _0x38e10b(_0x1758c6,_0x2d367b);}};this[_0x2c719d(0x103)]=new _0xad918e[(_0x2c719d(0xcd))](),this[_0x2c719d(0xd3)]=new _0xad918e['NodeQQNTWrapperUtil'](),this[_0x2c719d(0x13c)]=new _0xad918e['NodeIKernelLoginService'](),this[_0x2c719d(0x147)]=new _0xad918e[(_0x2c719d(0xc2))](),this[_0x2c719d(0xf2)]=new LoginListener(),this[_0x2c719d(0xf2)]['onUserLoggedIn']=_0x37246f=>{const _0x5cbcd1=_0x2c719d;logError(_0x225eb8[_0x5cbcd1(0x11a)](_0x225eb8[_0x5cbcd1(0xe4)],_0x37246f)+_0x225eb8['LJzmK']);},this[_0x2c719d(0xf2)][_0x2c719d(0xc4)]=_0x19da8b=>{const _0x31be23=_0x2c719d,_0x4e4583={'fSLKE':function(_0x48294f,_0x151fdf,_0x13630c){const _0xe678f4=_0x815b;return _0x225eb8[_0xe678f4(0x111)](_0x48294f,_0x151fdf,_0x13630c);},'wraGc':_0x225eb8[_0x31be23(0xf3)],'EElwq':function(_0x38932c,_0x4283b2){return _0x38932c instanceof _0x4283b2;},'dAgGe':function(_0x523910,_0x387fdc){const _0x3b0e45=_0x31be23;return _0x225eb8[_0x3b0e45(0xae)](_0x523910,_0x387fdc);},'TMqag':_0x225eb8[_0x31be23(0x146)],'AWRCt':function(_0x47d449,_0x1923fe,_0xe6f00a){return _0x47d449(_0x1923fe,_0xe6f00a);},'LSVbB':_0x31be23(0xe0)};this[_0x31be23(0x13f)](_0x19da8b[_0x31be23(0xfd)],_0x19da8b['uid'])[_0x31be23(0x149)](_0x424db8=>{const _0x123f80=_0x31be23,_0x4b7b4f={'bIaRk':function(_0xca26b5,_0x4f466e){const _0x2b4313=_0x815b;return _0x4e4583[_0x2b4313(0x142)](_0xca26b5,_0x4f466e);}};selfInfo[_0x123f80(0xfd)]=_0x19da8b[_0x123f80(0xfd)],selfInfo[_0x123f80(0xc9)]=_0x19da8b[_0x123f80(0xc9)],napCatConfig['read'](),_0x4e4583[_0x123f80(0xaf)](setLogLevel,napCatConfig[_0x123f80(0x10e)],napCatConfig[_0x123f80(0xbd)]),_0x4e4583[_0x123f80(0xce)](enableFileLog,napCatConfig[_0x123f80(0x145)]),_0x4e4583[_0x123f80(0xce)](enableConsoleLog,napCatConfig[_0x123f80(0x113)]),setLogSelfInfo(selfInfo);const _0x27e21c=_0x34dc6e['resolve'](this[_0x123f80(0xbb)],_0x4e4583[_0x123f80(0x15f)]);_0x1f5aff[_0x123f80(0xee)](_0x27e21c,{'recursive':!![]}),_0x4e4583['AWRCt'](logDebug,_0x4e4583['LSVbB'],_0x27e21c),dbUtil[_0x123f80(0x12e)](_0x34dc6e['resolve'](_0x27e21c,'./'+_0x19da8b[_0x123f80(0xfd)]+_0x123f80(0xdd)))[_0x123f80(0x149)](()=>{const _0x281335=_0x123f80,_0x4dce8b={'GoBTz':function(_0x3b3fa6,_0x97ed41,_0x5b2ecf){return _0x3b3fa6(_0x97ed41,_0x5b2ecf);},'WEiMJ':function(_0x1bbcad,_0x1b5d20){const _0x1006f1=_0x815b;return _0x4b7b4f[_0x1006f1(0xc5)](_0x1bbcad,_0x1b5d20);}};this[_0x281335(0xeb)](),this['onLoginSuccessFuncList'][_0x281335(0x131)](_0x9a89fc=>{const _0x7f5191=_0x281335;new Promise((_0x20742e,_0x3813e5)=>{const _0x348ce5=_0x815b,_0x114c0c=_0x4dce8b[_0x348ce5(0xd4)](_0x9a89fc,_0x19da8b['uin'],_0x19da8b[_0x348ce5(0xc9)]);_0x4dce8b[_0x348ce5(0xc7)](_0x114c0c,Promise)&&_0x114c0c[_0x348ce5(0x149)](_0x20742e)[_0x348ce5(0x11b)](_0x3813e5);})[_0x7f5191(0x149)]();});})[_0x123f80(0x11b)](_0x5c2796=>{const _0x23fb9e=_0x123f80;_0x4e4583[_0x23fb9e(0xaf)](logError,_0x4e4583[_0x23fb9e(0x100)],_0x5c2796);});})[_0x31be23(0x11b)](_0x2f5337=>{const _0x36dc0d=_0x31be23;logError(_0x225eb8[_0x36dc0d(0x133)],_0x2f5337);throw new Error(_0x36dc0d(0xc3)+JSON[_0x36dc0d(0x114)](_0x2f5337));});},this[_0x2c719d(0xf2)][_0x2c719d(0x156)]=(_0x47a1c1,_0x4b845f,_0x592acb)=>{const _0x4ee7ca=_0x2c719d;_0x225eb8[_0x4ee7ca(0x152)](logError,_0x225eb8['VGdbk'],_0x592acb),_0x225eb8['jtPkF'](_0x47a1c1,0x1)&&_0x4b845f==0x3&&this[_0x4ee7ca(0x13c)]['getQRCodePicture']();},this[_0x2c719d(0xf2)][_0x2c719d(0xd2)]=_0x5937ba=>{const _0x1e79a3=_0x2c719d;_0x225eb8[_0x1e79a3(0x12f)](logError,_0x225eb8[_0x1e79a3(0xc0)],_0x5937ba);},this[_0x2c719d(0xf2)]=new Proxy(this['loginListener'],this[_0x2c719d(0xef)]),this[_0x2c719d(0x13c)][_0x2c719d(0xdf)](new _0xad918e['NodeIKernelLoginListener'](this[_0x2c719d(0xf2)])),this[_0x2c719d(0x14b)]();}get[_0x240855(0xbb)](){const _0x418751=_0x240855,_0x2574ae={'wLAPc':_0x418751(0xa6)};let _0x4b3f0c=this[_0x418751(0xd3)][_0x418751(0x14d)]();return!_0x4b3f0c&&(_0x4b3f0c=_0x34dc6e[_0x418751(0x158)](_0x238ed8[_0x418751(0x148)](),_0x2574ae[_0x418751(0xec)]),_0x1f5aff['mkdirSync'](_0x4b3f0c,{'recursive':!![]})),_0x4b3f0c;}get[_0x240855(0xf4)](){const _0x51b793=_0x240855,_0x4c1828={'qDHwI':'./nt_qq/global'};return _0x34dc6e['resolve'](this[_0x51b793(0xbb)],_0x4c1828['qDHwI']);}[_0x240855(0x14b)](){const _0x5da83e=_0x240855,_0x11e6ba={'IiVLC':_0x5da83e(0xca)};this[_0x5da83e(0x103)][_0x5da83e(0xfc)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x5da83e(0x139)],'os_version':_0x11e6ba[_0x5da83e(0x15a)],'use_xlog':!![],'qua':_0x5da83e(0x119)+qqVersionConfigInfo[_0x5da83e(0x139)][_0x5da83e(0xc8)]('-','_')+_0x5da83e(0x14f),'global_path_config':{'desktopGlobalPath':this[_0x5da83e(0xf4)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0xad918e[(_0x5da83e(0x12c))](new GlobalAdapter())),this[_0x5da83e(0x13c)][_0x5da83e(0x14b)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x5da83e(0xf4)],'clientVer':qqVersionConfigInfo[_0x5da83e(0x139)],'hostName':hostname});}[_0x240855(0x13f)](_0x18612c,_0x11a8b9){const _0xfde3f0={'dgLNQ':function(_0x59c192,_0x19e1e3){return _0x59c192===_0x19e1e3;},'fCZRb':function(_0x342848,_0xfa3c80,_0x20d0a4,_0x5646ad){return _0x342848(_0xfa3c80,_0x20d0a4,_0x5646ad);},'QpghH':function(_0x18da2b,_0x9a70f1){return _0x18da2b(_0x9a70f1);},'ClmJx':function(_0x7d89a7,_0x5b7c69){return _0x7d89a7+_0x5b7c69;},'RYPwS':'init\x20failed\x20'};return new Promise((_0x230540,_0x4861b9)=>{const _0x2ed76c=_0x815b,_0x204722={'ysPNe':function(_0x795137,_0x235d0d){const _0x277229=_0x815b;return _0xfde3f0[_0x277229(0x126)](_0x795137,_0x235d0d);},'LhIvU':function(_0x4ff43c,_0x4b7ed5){return _0x4ff43c(_0x4b7ed5);}},_0x33ec4c=_0xfde3f0[_0x2ed76c(0x138)](genSessionConfig,_0x18612c,_0x11a8b9,this[_0x2ed76c(0xbb)]),_0x1d8745=new SessionListener();_0x1d8745[_0x2ed76c(0xa9)]=_0x2b73f2=>{const _0x1082e5=_0x2ed76c;if(_0x204722[_0x1082e5(0x11e)](_0x2b73f2,0x0))return _0x204722[_0x1082e5(0xcb)](_0x230540,0x0);_0x204722[_0x1082e5(0xcb)](_0x4861b9,_0x2b73f2);},this[_0x2ed76c(0x147)][_0x2ed76c(0x12e)](_0x33ec4c,new _0xad918e['NodeIDependsAdapter'](new DependsAdapter()),new _0xad918e[(_0x2ed76c(0xed))](new DispatcherAdapter()),new _0xad918e[(_0x2ed76c(0xa3))](_0x1d8745));try{this[_0x2ed76c(0x147)]['startNT'](0x0);}catch(_0x45da22){try{this[_0x2ed76c(0x147)]['startNT']();}catch(_0x2e7496){_0xfde3f0[_0x2ed76c(0xab)](_0x4861b9,_0xfde3f0['ClmJx'](_0xfde3f0[_0x2ed76c(0xfe)],_0x2e7496));}}});}['initDataListener'](){const _0x4eeaf7=_0x240855,_0x7e7084={'MYRwV':function(_0x38fe0c,_0x1215b3){return _0x38fe0c===_0x1215b3;},'OLPdF':function(_0x35cbd6,_0x2bb776){return _0x35cbd6+_0x2bb776;},'niPgw':function(_0x587972,_0x93f40){return _0x587972+_0x93f40;},'KnmSd':_0x4eeaf7(0xd7),'iLugb':function(_0x1bde25,_0x43946d){return _0x1bde25(_0x43946d);},'BDIkI':_0x4eeaf7(0xaa),'nDZhK':function(_0x198bcc,_0x1a8a8f){return _0x198bcc/_0x1a8a8f;},'ERFaU':function(_0x1df91a,_0x4787af){return _0x1df91a/_0x4787af;},'nkHlc':_0x4eeaf7(0x12d),'KtcZi':function(_0x255315,_0xf35784,_0x5b2196){return _0x255315(_0xf35784,_0x5b2196);}},_0x6c4140=new MsgListener();_0x6c4140[_0x4eeaf7(0xe9)]=_0x5bfda0=>{_0x5bfda0['map'](_0x25c28a=>{const _0x445020=_0x815b;_0x7e7084[_0x445020(0xb5)](_0x25c28a[_0x445020(0x130)],0x2)&&log(_0x7e7084[_0x445020(0x15d)](_0x7e7084[_0x445020(0xea)](_0x7e7084[_0x445020(0x117)],_0x25c28a[_0x445020(0x10d)]),_0x445020(0xbe)));});},_0x6c4140[_0x4eeaf7(0x132)]=_0x20f8e3=>{const _0x5323d2=_0x4eeaf7;_0x7e7084[_0x5323d2(0x151)](log,_0x7e7084[_0x5323d2(0xea)](_0x7e7084[_0x5323d2(0xe2)]+_0x20f8e3[_0x5323d2(0xad)]+']\x20',_0x20f8e3[_0x5323d2(0xba)]));},_0x6c4140['onMsgInfoListUpdate']=_0x3caada=>{const _0x1e8334=_0x4eeaf7;stat[_0x1e8334(0x13b)]+=0x1,_0x3caada['map'](_0x3a31f8=>{const _0x267d28=_0x1e8334;_0x3a31f8[_0x267d28(0x150)]==='0'?dbUtil[_0x267d28(0xf6)](_0x3a31f8)[_0x267d28(0x149)]()['catch']():dbUtil[_0x267d28(0xd1)](_0x3a31f8['msgId'])[_0x267d28(0x149)](_0x1dd22e=>{const _0x55e3bf=_0x267d28;_0x1dd22e&&(_0x1dd22e[_0x55e3bf(0x150)]=_0x3a31f8[_0x55e3bf(0x150)],dbUtil[_0x55e3bf(0x107)](_0x1dd22e)[_0x55e3bf(0x149)]());});});},_0x6c4140[_0x4eeaf7(0x11c)]=_0x3669a4=>{const _0x4745d2=_0x4eeaf7;stat[_0x4745d2(0xb0)]+=0x1,stat[_0x4745d2(0x15b)]+=0x1,stat['last_message_time']=Math[_0x4745d2(0x137)](_0x7e7084['nDZhK'](Date['now'](),0x3e8));},_0x6c4140[_0x4eeaf7(0xcc)]=_0x3ce01c=>{const _0x1a5ca2=_0x4eeaf7;stat[_0x1a5ca2(0x13b)]+=0x1,stat['message_received']+=_0x3ce01c[_0x1a5ca2(0xa5)],stat['last_message_time']=Math[_0x1a5ca2(0x137)](_0x7e7084[_0x1a5ca2(0xac)](Date[_0x1a5ca2(0xe8)](),0x3e8));},_0x6c4140['onRecvSysMsg']=(..._0x259503)=>{const _0x32d54e=_0x4eeaf7;stat[_0x32d54e(0x13b)]+=0x1;},this[_0x4eeaf7(0xb7)](_0x6c4140);const _0x751225=new BuddyListener();_0x751225['onBuddyListChange']=_0x2df251=>{const _0xdd1298=_0x4eeaf7;rawFriends[_0xdd1298(0xa5)]=0x0,rawFriends[_0xdd1298(0xe3)](..._0x2df251);for(const _0x2e97fe of _0x2df251){for(const _0x3c7b81 of _0x2e97fe[_0xdd1298(0xb3)]){const _0x219303=friends[_0xdd1298(0x11d)](_0x3c7b81[_0xdd1298(0xc9)]);uid2UinMap[_0x3c7b81[_0xdd1298(0xc9)]]=_0x3c7b81['uin'],_0x219303?Object[_0xdd1298(0xf9)](_0x219303,_0x3c7b81):friends[_0xdd1298(0x121)](_0x3c7b81[_0xdd1298(0xc9)],_0x3c7b81);}}},this[_0x4eeaf7(0xb7)](_0x751225),this[_0x4eeaf7(0x147)][_0x4eeaf7(0x13d)]()[_0x4eeaf7(0x13a)](!![])[_0x4eeaf7(0x149)](_0x1885de=>{});const _0x4bf746=new ProfileListener();_0x4bf746[_0x4eeaf7(0xd0)]=_0x47b316=>{const _0x455ec8=_0x4eeaf7;_0x47b316[_0x455ec8(0xc9)]===selfInfo[_0x455ec8(0xc9)]&&Object[_0x455ec8(0xf9)](selfInfo,_0x47b316);},_0x4bf746[_0x4eeaf7(0xd9)]=_0x3a1b53=>{},this[_0x4eeaf7(0xb7)](_0x4bf746);const _0x53a9b3=new GroupListener();_0x53a9b3[_0x4eeaf7(0x10b)]=(_0x3668c6,_0x2bf2f8)=>{const _0x1b0f1c=_0x4eeaf7;_0x2bf2f8[_0x1b0f1c(0x131)](_0x24f693=>{const _0x510cac=_0x1b0f1c,_0x348ca1=groups[_0x510cac(0x11d)](_0x24f693[_0x510cac(0xa8)]);if(_0x348ca1)Object[_0x510cac(0xf9)](_0x348ca1,_0x24f693);else{groups['set'](_0x24f693[_0x510cac(0xa8)],_0x24f693);const _0x1fc7d8=this[_0x510cac(0x147)]['getGroupService']()[_0x510cac(0x122)](_0x24f693[_0x510cac(0xa8)],_0x7e7084[_0x510cac(0x10c)]);this[_0x510cac(0x147)][_0x510cac(0xd6)]()[_0x510cac(0xbf)](_0x1fc7d8,undefined,0xbb8)[_0x510cac(0x149)](_0x24a9bb=>{});}});},_0x53a9b3['onMemberListChange']=_0x9b0d8=>{const _0x50b4a7=_0x4eeaf7,_0xdfe37c=_0x9b0d8[_0x50b4a7(0x10a)]['split']('_')[0x0];if(groupMembers[_0x50b4a7(0x155)](_0xdfe37c)){const _0x4a8185=groupMembers[_0x50b4a7(0x11d)](_0xdfe37c);_0x9b0d8['infos'][_0x50b4a7(0x124)]((_0x1db8c3,_0x4b1956)=>{const _0x56074b=_0x50b4a7,_0x704db4=_0x4a8185[_0x56074b(0x11d)](_0x4b1956);_0x704db4?Object['assign'](_0x704db4,_0x1db8c3):_0x4a8185['set'](_0x4b1956,_0x1db8c3);});}else groupMembers[_0x50b4a7(0x121)](_0xdfe37c,_0x9b0d8[_0x50b4a7(0x106)]);},_0x53a9b3[_0x4eeaf7(0x134)]=(_0x595dd3,_0x2c33f2,_0x31b106)=>{const _0x3b1cac=_0x4eeaf7;_0x7e7084[_0x3b1cac(0xb5)](_0x2c33f2,0x0)&&_0x31b106[_0x3b1cac(0x11d)](selfInfo[_0x3b1cac(0xc9)])&&_0x31b106[_0x3b1cac(0x11d)](selfInfo[_0x3b1cac(0xc9)])?.['isDelete']&&_0x7e7084['KtcZi'](setTimeout,()=>{groups['delete'](_0x595dd3);},0x1388);_0x31b106[_0x3b1cac(0x124)]((_0xb2eb28,_0x1eb700)=>{const _0x44009e=_0x3b1cac;uid2UinMap[_0x1eb700]=_0xb2eb28[_0x44009e(0xfd)];});const _0x1c9a0a=groupMembers[_0x3b1cac(0x11d)](_0x595dd3);_0x1c9a0a?_0x31b106[_0x3b1cac(0x124)]((_0x5e4ef6,_0x2e7b43)=>{const _0x21a25b=_0x3b1cac,_0x7e3e8e=_0x1c9a0a[_0x21a25b(0x11d)](_0x2e7b43);_0x7e3e8e?Object['assign'](_0x7e3e8e,_0x5e4ef6):_0x1c9a0a[_0x21a25b(0x121)](_0x2e7b43,_0x5e4ef6);}):groupMembers[_0x3b1cac(0x121)](_0x595dd3,_0x31b106);},this['addListener'](_0x53a9b3);}[_0x240855(0xb7)](_0xaeb1a4){const _0x26a210=_0x240855,_0x1a308f={'cyhPr':_0x26a210(0x154),'IJwWi':_0x26a210(0x14e),'vlDLd':_0x26a210(0x109)};_0xaeb1a4=new Proxy(_0xaeb1a4,this[_0x26a210(0xef)]);switch(_0xaeb1a4[_0x26a210(0x128)][_0x26a210(0x108)]){case _0x1a308f['cyhPr']:{return this[_0x26a210(0x147)][_0x26a210(0x13d)]()[_0x26a210(0x112)](new _0xad918e[(_0x26a210(0x161))](_0xaeb1a4));}case _0x1a308f[_0x26a210(0xdc)]:{return this[_0x26a210(0x147)][_0x26a210(0xd6)]()[_0x26a210(0xfb)](new _0xad918e[(_0x26a210(0x12a))](_0xaeb1a4));}case _0x1a308f['vlDLd']:{return this[_0x26a210(0x147)][_0x26a210(0x10f)]()['addKernelMsgListener'](new _0xad918e[(_0x26a210(0x116))](_0xaeb1a4));}case'ProfileListener':{return this[_0x26a210(0x147)][_0x26a210(0xb8)]()[_0x26a210(0x136)](new _0xad918e['NodeIKernelProfileListener'](_0xaeb1a4));}default:return-0x1;}}[_0x240855(0x11f)](_0x31cc97){this['onLoginSuccessFuncList']['push'](_0x31cc97);}async[_0x240855(0x123)](_0x1ddbba){const _0x4711df=_0x240855,_0x42263b={'kFXEV':function(_0x1e60b1,_0x3fc95c){return _0x1e60b1!==_0x3fc95c;},'eZBhh':_0x4711df(0x14a),'bDmGr':function(_0x579683,_0x2f77bd){return _0x579683(_0x2f77bd);},'kKkDw':function(_0x4f6be2,_0x1d026a){return _0x4f6be2+_0x1d026a;},'knNeZ':_0x4711df(0x13e)},_0x27410a=await this['loginService'][_0x4711df(0x101)]();if(_0x42263b['kFXEV'](_0x27410a['result'],0x0))throw new Error(_0x42263b[_0x4711df(0xb4)]);const _0x40d3f5=_0x27410a[_0x4711df(0x14c)]['find'](_0x5dce4c=>_0x5dce4c[_0x4711df(0xfd)]===_0x1ddbba);if(!_0x40d3f5||!_0x40d3f5?.['isQuickLogin'])throw new Error(_0x1ddbba+'快速登录不可用');await _0x42263b[_0x4711df(0x125)](sleep,0x3e8);const _0x51f15b=await this['loginService'][_0x4711df(0x163)](_0x1ddbba);if(!_0x51f15b[_0x4711df(0xdb)])throw new Error(_0x42263b[_0x4711df(0x102)](_0x42263b[_0x4711df(0xde)],_0x51f15b[_0x4711df(0x127)][_0x4711df(0x157)]));return _0x51f15b;}async[_0x240855(0x160)](_0x11a6aa){const _0x351707=_0x240855,_0x4207ac={'YhZjT':_0x351707(0x120),'nMriu':_0x351707(0x12b),'xTbiG':function(_0x291169,_0x456681,_0x27638e,_0x421854){return _0x291169(_0x456681,_0x27638e,_0x421854);}};return new Promise((_0x522d1b,_0x28cec5)=>{const _0x20c77c=_0x351707,_0x22dda7={'xsPeJ':_0x4207ac[_0x20c77c(0x115)],'VIrfy':_0x4207ac[_0x20c77c(0x110)],'AyeWC':function(_0x86071,_0x5804d5,_0x2fdb4f,_0x14bd0d){const _0x2d3892=_0x20c77c;return _0x4207ac[_0x2d3892(0x153)](_0x86071,_0x5804d5,_0x2fdb4f,_0x14bd0d);}};this[_0x20c77c(0xf2)][_0x20c77c(0xe6)]=_0xb97cab=>{const _0x549055=_0x20c77c,_0x4e74d3=_0xb97cab[_0x549055(0x140)]['split'](_0x22dda7[_0x549055(0xb1)])[0x1],_0x156561=Buffer['from'](_0x4e74d3,_0x22dda7[_0x549055(0x105)]);_0x22dda7['AyeWC'](_0x11a6aa,_0xb97cab[_0x549055(0xbc)],_0xb97cab[_0x549055(0x140)],_0x156561);},this[_0x20c77c(0x13c)][_0x20c77c(0xa7)]();});}async[_0x240855(0xc6)](_0x3a3a6c,_0x57cfa5,_0xd28692,_0x2aa840,_0x1d8a75){const _0x5e9a74=_0x240855,_0x2831d3={'TQMvm':_0x5e9a74(0xcf),'vFQeL':function(_0x3133f7,_0x590778){return _0x3133f7&&_0x590778;},'AVziu':function(_0x3ce8cf,_0x45478f){return _0x3ce8cf||_0x45478f;},'XkIxr':function(_0x5b4f57,_0x55d28f){return _0x5b4f57||_0x55d28f;},'lampe':function(_0x28f9ee,_0x3afb23){return _0x28f9ee(_0x3afb23);},'uQVqd':_0x5e9a74(0xfa),'KaqlI':_0x5e9a74(0xf7)},_0x1d9a3c=_0x495ab2[_0x5e9a74(0xc1)](_0x5e9a74(0xe5))[_0x5e9a74(0xb6)](_0x57cfa5)[_0x5e9a74(0x15c)](_0x2831d3[_0x5e9a74(0xe7)]),_0x152471={'uin':_0x3a3a6c,'passwordMd5':_0x1d9a3c,'step':_0x2831d3[_0x5e9a74(0xf0)](_0xd28692,_0x2aa840)&&_0x1d8a75?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x2831d3['AVziu'](_0xd28692,''),'proofWaterRand':_0x2aa840||'','proofWaterSid':_0x2831d3[_0x5e9a74(0x15e)](_0x1d8a75,'')};await this['loginService'][_0x5e9a74(0x101)](),await _0x2831d3[_0x5e9a74(0xe1)](sleep,0x3e8);const _0x173259=await this[_0x5e9a74(0x13c)][_0x5e9a74(0xc6)](_0x152471);switch(_0x173259['result']){case'0':{break;}case _0x2831d3[_0x5e9a74(0x118)]:{break;}case'4':case _0x2831d3['KaqlI']:default:}}async[_0x240855(0x162)](){const _0x3b1bc7=_0x240855,_0x34b87e=await this[_0x3b1bc7(0x13c)][_0x3b1bc7(0x101)]();return _0x34b87e;}}export const napCatCore=new NapCatCore(); \ No newline at end of file diff --git a/src/core.lib/src/data.js b/src/core.lib/src/data.js index e399f1e8..b525aff7 100644 --- a/src/core.lib/src/data.js +++ b/src/core.lib/src/data.js @@ -1 +1 @@ -const _0xfb6c1b=_0x124b;(function(_0x38932b,_0x436ac5){const _0x24f799=_0x124b,_0x125c30=_0x38932b();while(!![]){try{const _0x294ba7=parseInt(_0x24f799(0xe1))/0x1*(parseInt(_0x24f799(0xdb))/0x2)+parseInt(_0x24f799(0xe2))/0x3+-parseInt(_0x24f799(0xe6))/0x4+parseInt(_0x24f799(0xd8))/0x5+-parseInt(_0x24f799(0xe5))/0x6*(parseInt(_0x24f799(0xe9))/0x7)+parseInt(_0x24f799(0xe7))/0x8+-parseInt(_0x24f799(0xe8))/0x9;if(_0x294ba7===_0x436ac5)break;else _0x125c30['push'](_0x125c30['shift']());}catch(_0x5c3e5c){_0x125c30['push'](_0x125c30['shift']());}}}(_0x57ab,0x4f0bd));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};function _0x124b(_0x394c86,_0x425dce){const _0x57ab18=_0x57ab();return _0x124b=function(_0x124bb8,_0x2eda89){_0x124bb8=_0x124bb8-0xd7;let _0x47f3bc=_0x57ab18[_0x124bb8];return _0x47f3bc;},_0x124b(_0x394c86,_0x425dce);}export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x515a4a){const _0xe16ea4=_0x124b;groups[_0xe16ea4(0xd7)](_0x515a4a),groupMembers[_0xe16ea4(0xd7)](_0x515a4a);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0xfb6c1b(0xdc)};export async function getFriend(_0x5f2f9a){const _0x2e4edf=_0xfb6c1b;_0x5f2f9a=_0x5f2f9a[_0x2e4edf(0xea)]();if(isNumeric(_0x5f2f9a)){const _0xb9bd14=Array['from'](friends['values']());return _0xb9bd14[_0x2e4edf(0xeb)](_0x1c96fa=>_0x1c96fa[_0x2e4edf(0xde)]===_0x5f2f9a);}else return friends[_0x2e4edf(0xdd)](_0x5f2f9a);}export async function getGroup(_0x4aca92){const _0x4c3845=_0xfb6c1b;let _0x493f47=groups[_0x4c3845(0xdd)](_0x4aca92[_0x4c3845(0xea)]());if(!_0x493f47)try{const _0x5f4128=await NTQQGroupApi[_0x4c3845(0xe0)]();_0x5f4128['length']&&_0x5f4128[_0x4c3845(0xe4)](_0x215ac3=>{const _0x18500b=_0x4c3845;groups[_0x18500b(0xdf)](_0x215ac3['groupCode'],_0x215ac3);});}catch(_0xde8842){return undefined;}return _0x493f47=groups[_0x4c3845(0xdd)](_0x4aca92[_0x4c3845(0xea)]()),_0x493f47;}export async function getGroupMember(_0x587689,_0x50c561){const _0x3ec9b5=_0xfb6c1b,_0xab45c1={'XfnyJ':function(_0x2cd94b,_0x32910d){return _0x2cd94b(_0x32910d);},'SugLu':function(_0xac520e){return _0xac520e();}};_0x587689=_0x587689[_0x3ec9b5(0xea)](),_0x50c561=_0x50c561[_0x3ec9b5(0xea)]();let _0x5236ea=groupMembers['get'](_0x587689);if(!_0x5236ea)try{_0x5236ea=await NTQQGroupApi['getGroupMembers'](_0x587689),groupMembers[_0x3ec9b5(0xdf)](_0x587689,_0x5236ea);}catch(_0x3b97dc){return null;}const _0x3d3d65=()=>{const _0x5eb3e1=_0x3ec9b5;let _0x17e20b=undefined;return _0xab45c1[_0x5eb3e1(0xe3)](isNumeric,_0x50c561)?_0x17e20b=Array[_0x5eb3e1(0xd9)](_0x5236ea[_0x5eb3e1(0xda)]())[_0x5eb3e1(0xeb)](_0x2d790b=>_0x2d790b[_0x5eb3e1(0xde)]===_0x50c561):_0x17e20b=_0x5236ea[_0x5eb3e1(0xdd)](_0x50c561),_0x17e20b;};let _0x4354ea=_0xab45c1['SugLu'](_0x3d3d65);return!_0x4354ea&&(_0x5236ea=await NTQQGroupApi['getGroupMembers'](_0x587689),_0x4354ea=_0x3d3d65()),_0x4354ea;}export const uid2UinMap={};function _0x57ab(){const _0x53128a=['1738504QdoIPW','3552880QkYJul','5674230YJgIGp','1309gIiCzd','toString','find','delete','1383600bfppVr','from','values','16jUFBPM','NapCat未能正常启动,请检查日志查看错误','get','uin','set','getGroups','68065RyXmri','1801668DaubdH','XfnyJ','forEach','15306SWicpO'];_0x57ab=function(){return _0x53128a;};return _0x57ab();}export function getUidByUin(_0x2333c3){for(const _0x3a792b in uid2UinMap){if(uid2UinMap[_0x3a792b]===_0x2333c3)return _0x3a792b;}}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0}; \ No newline at end of file +(function(_0x3ebc58,_0x278ca2){const _0x3a0376=_0x1e30,_0x83a85e=_0x3ebc58();while(!![]){try{const _0x51f1e1=parseInt(_0x3a0376(0x1ef))/0x1*(-parseInt(_0x3a0376(0x1f9))/0x2)+parseInt(_0x3a0376(0x1fe))/0x3+-parseInt(_0x3a0376(0x1fc))/0x4*(-parseInt(_0x3a0376(0x202))/0x5)+parseInt(_0x3a0376(0x200))/0x6+parseInt(_0x3a0376(0x1fd))/0x7*(parseInt(_0x3a0376(0x1fa))/0x8)+parseInt(_0x3a0376(0x1f0))/0x9+-parseInt(_0x3a0376(0x1f1))/0xa;if(_0x51f1e1===_0x278ca2)break;else _0x83a85e['push'](_0x83a85e['shift']());}catch(_0x3fa2ad){_0x83a85e['push'](_0x83a85e['shift']());}}}(_0x6135,0x5b287));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};function _0x6135(){const _0x218b47=['pLLqI','3612348Oiugmy','hCecN','230445pEsdgN','FcJLn','uin','forEach','set','length','1gjXCGZ','4420674SlOtlx','16691040XGhKNZ','find','toString','delete','from','getGroups','values','getGroupMembers','560130rgiveV','5665448XbQjyg','get','44qFlfFy','7YgvFyk','42444dRbilI'];_0x6135=function(){return _0x218b47;};return _0x6135();}export const groups=new Map();export function deleteGroup(_0x33ed07){const _0x482ae5=_0x1e30;groups['delete'](_0x33ed07),groupMembers[_0x482ae5(0x1f4)](_0x33ed07);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};function _0x1e30(_0x45c4ed,_0x2bf4ae){const _0x6135fc=_0x6135();return _0x1e30=function(_0x1e30df,_0x20883c){_0x1e30df=_0x1e30df-0x1ee;let _0x5a103e=_0x6135fc[_0x1e30df];return _0x5a103e;},_0x1e30(_0x45c4ed,_0x2bf4ae);}export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':'NapCat未能正常启动,请检查日志查看错误'};export async function getFriend(_0xbd6485){const _0x3c07e8=_0x1e30,_0x34bab0={'pLLqI':function(_0x1d9813,_0xaaadf){return _0x1d9813(_0xaaadf);}};_0xbd6485=_0xbd6485[_0x3c07e8(0x1f3)]();if(_0x34bab0[_0x3c07e8(0x1ff)](isNumeric,_0xbd6485)){const _0x439346=Array[_0x3c07e8(0x1f5)](friends[_0x3c07e8(0x1f7)]());return _0x439346[_0x3c07e8(0x1f2)](_0x4b18cb=>_0x4b18cb[_0x3c07e8(0x204)]===_0xbd6485);}else return friends[_0x3c07e8(0x1fb)](_0xbd6485);}export async function getGroup(_0x293a95){const _0x33890d=_0x1e30;let _0xa7774a=groups['get'](_0x293a95[_0x33890d(0x1f3)]());if(!_0xa7774a)try{const _0x4be3f3=await NTQQGroupApi[_0x33890d(0x1f6)]();_0x4be3f3[_0x33890d(0x1ee)]&&_0x4be3f3[_0x33890d(0x205)](_0x92d757=>{const _0xba692b=_0x33890d;groups[_0xba692b(0x206)](_0x92d757['groupCode'],_0x92d757);});}catch(_0x20ea00){return undefined;}return _0xa7774a=groups[_0x33890d(0x1fb)](_0x293a95[_0x33890d(0x1f3)]()),_0xa7774a;}export async function getGroupMember(_0x18480c,_0x2125ec){const _0x471e2e=_0x1e30,_0x223a78={'hCecN':function(_0x331209){return _0x331209();}};_0x18480c=_0x18480c[_0x471e2e(0x1f3)](),_0x2125ec=_0x2125ec[_0x471e2e(0x1f3)]();let _0x452426=groupMembers[_0x471e2e(0x1fb)](_0x18480c);if(!_0x452426)try{_0x452426=await NTQQGroupApi[_0x471e2e(0x1f8)](_0x18480c),groupMembers[_0x471e2e(0x206)](_0x18480c,_0x452426);}catch(_0x1b0ef7){return null;}const _0x216782=()=>{const _0x31689d=_0x471e2e;let _0x14adc1=undefined;return isNumeric(_0x2125ec)?_0x14adc1=Array[_0x31689d(0x1f5)](_0x452426['values']())[_0x31689d(0x1f2)](_0x677c22=>_0x677c22[_0x31689d(0x204)]===_0x2125ec):_0x14adc1=_0x452426['get'](_0x2125ec),_0x14adc1;};let _0x520321=_0x223a78[_0x471e2e(0x201)](_0x216782);return!_0x520321&&(_0x452426=await NTQQGroupApi['getGroupMembers'](_0x18480c),_0x520321=_0x223a78[_0x471e2e(0x201)](_0x216782)),_0x520321;}export const uid2UinMap={};export function getUidByUin(_0x28d7ba){const _0x29d819=_0x1e30,_0x58327d={'FcJLn':function(_0x17f83d,_0x349a01){return _0x17f83d===_0x349a01;}};for(const _0x28ccc4 in uid2UinMap){if(_0x58327d[_0x29d819(0x203)](uid2UinMap[_0x28ccc4],_0x28d7ba))return _0x28ccc4;}}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0}; \ No newline at end of file diff --git a/src/core.lib/src/entities/cache.js b/src/core.lib/src/entities/cache.js index 38640c24..0914286e 100644 --- a/src/core.lib/src/entities/cache.js +++ b/src/core.lib/src/entities/cache.js @@ -1 +1 @@ -function _0x11cd(_0x4d7431,_0x2f8f84){var _0x15af65=_0x15af();return _0x11cd=function(_0x11cdb0,_0x251f94){_0x11cdb0=_0x11cdb0-0x135;var _0x187cb7=_0x15af65[_0x11cdb0];return _0x187cb7;},_0x11cd(_0x4d7431,_0x2f8f84);}(function(_0x3c0d9f,_0x11137f){var _0x51892b=_0x11cd,_0x4c3e33=_0x3c0d9f();while(!![]){try{var _0x50ad03=parseInt(_0x51892b(0x146))/0x1+parseInt(_0x51892b(0x145))/0x2+parseInt(_0x51892b(0x138))/0x3+-parseInt(_0x51892b(0x143))/0x4*(parseInt(_0x51892b(0x13f))/0x5)+parseInt(_0x51892b(0x140))/0x6+parseInt(_0x51892b(0x139))/0x7+-parseInt(_0x51892b(0x147))/0x8*(parseInt(_0x51892b(0x135))/0x9);if(_0x50ad03===_0x11137f)break;else _0x4c3e33['push'](_0x4c3e33['shift']());}catch(_0x3cee78){_0x4c3e33['push'](_0x4c3e33['shift']());}}}(_0x15af,0x5a014));function _0x15af(){var _0x346334=['OTHER','10167615OmelOE','DOCUMENT','imCex','1325631HztYCv','4535055Mydacb','IZWgN','1|0|4|2|3','DHOhQ','AUDIO','fHmHv','5YbJhSf','1853028SRTbbt','IMAGE','VIDEO','1294564YOGQXa','FhDoC','819898PSTcum','13507WmulWC','8BQmoHF'];_0x15af=function(){return _0x346334;};return _0x15af();};export var CacheFileType;(function(_0xb272b1){var _0x4f2cc5=_0x11cd,_0x59a336={'IZWgN':_0x4f2cc5(0x13b),'FhDoC':'VIDEO','fHmHv':_0x4f2cc5(0x141),'JWDFi':_0x4f2cc5(0x136),'DHOhQ':_0x4f2cc5(0x148),'imCex':_0x4f2cc5(0x13d)},_0x115596=_0x59a336[_0x4f2cc5(0x13a)]['split']('|'),_0x4b32e6=0x0;while(!![]){switch(_0x115596[_0x4b32e6++]){case'0':_0xb272b1[_0xb272b1[_0x59a336[_0x4f2cc5(0x144)]]=0x1]=_0x4f2cc5(0x142);continue;case'1':_0xb272b1[_0xb272b1[_0x59a336[_0x4f2cc5(0x13e)]]=0x0]=_0x59a336[_0x4f2cc5(0x13e)];continue;case'2':_0xb272b1[_0xb272b1[_0x59a336['JWDFi']]=0x3]=_0x59a336['JWDFi'];continue;case'3':_0xb272b1[_0xb272b1[_0x59a336[_0x4f2cc5(0x13c)]]=0x4]=_0x59a336[_0x4f2cc5(0x13c)];continue;case'4':_0xb272b1[_0xb272b1[_0x59a336[_0x4f2cc5(0x137)]]=0x2]=_0x59a336['imCex'];continue;}break;}}(CacheFileType||(CacheFileType={}))); \ No newline at end of file +function _0x494d(_0x4d76f4,_0x322ab9){var _0xeb019b=_0xeb01();return _0x494d=function(_0x494df3,_0x3be8f4){_0x494df3=_0x494df3-0x108;var _0xf939f4=_0xeb019b[_0x494df3];return _0xf939f4;},_0x494d(_0x4d76f4,_0x322ab9);}(function(_0x1096ee,_0x502f76){var _0x31a750=_0x494d,_0x3d4a95=_0x1096ee();while(!![]){try{var _0x1c0149=-parseInt(_0x31a750(0x10b))/0x1+parseInt(_0x31a750(0x119))/0x2+parseInt(_0x31a750(0x113))/0x3*(-parseInt(_0x31a750(0x11d))/0x4)+parseInt(_0x31a750(0x11c))/0x5+-parseInt(_0x31a750(0x10c))/0x6*(parseInt(_0x31a750(0x11a))/0x7)+-parseInt(_0x31a750(0x10a))/0x8*(parseInt(_0x31a750(0x117))/0x9)+-parseInt(_0x31a750(0x112))/0xa*(-parseInt(_0x31a750(0x10e))/0xb);if(_0x1c0149===_0x502f76)break;else _0x3d4a95['push'](_0x3d4a95['shift']());}catch(_0x59109d){_0x3d4a95['push'](_0x3d4a95['shift']());}}}(_0xeb01,0x89c6c));;export var CacheFileType;(function(_0x1f9549){var _0x143626=_0x494d,_0x43595b={'Duvec':_0x143626(0x114),'zqthz':_0x143626(0x11e),'IZMwB':_0x143626(0x10d),'KIqaE':_0x143626(0x108),'yibUK':_0x143626(0x115),'vPdgO':_0x143626(0x111)},_0x17a434=_0x43595b['Duvec'][_0x143626(0x116)]('|'),_0x54a2d8=0x0;while(!![]){switch(_0x17a434[_0x54a2d8++]){case'0':_0x1f9549[_0x1f9549[_0x43595b[_0x143626(0x10f)]]=0x2]=_0x43595b['zqthz'];continue;case'1':_0x1f9549[_0x1f9549[_0x143626(0x10d)]=0x0]=_0x43595b[_0x143626(0x109)];continue;case'2':_0x1f9549[_0x1f9549[_0x43595b['KIqaE']]=0x3]=_0x43595b[_0x143626(0x11b)];continue;case'3':_0x1f9549[_0x1f9549[_0x43595b[_0x143626(0x110)]]=0x4]=_0x43595b[_0x143626(0x110)];continue;case'4':_0x1f9549[_0x1f9549[_0x43595b[_0x143626(0x118)]]=0x1]=_0x43595b['vPdgO'];continue;}break;}}(CacheFileType||(CacheFileType={})));function _0xeb01(){var _0x9fa370=['14742aDCGKh','KIqaE','1681495lCHQMn','1831352CCQYHC','AUDIO','DOCUMENT','IZMwB','5567960pFNaKM','561245nvVGFv','1374qTyxIN','IMAGE','4906nOgtqm','zqthz','yibUK','VIDEO','35500mtzNbb','3aFFliJ','1|4|0|2|3','OTHER','split','9JfIniE','vPdgO','1684170vPYujA'];_0xeb01=function(){return _0x9fa370;};return _0xeb01();} \ No newline at end of file diff --git a/src/core.lib/src/entities/constructor.js b/src/core.lib/src/entities/constructor.js index 9ca62274..038b3885 100644 --- a/src/core.lib/src/entities/constructor.js +++ b/src/core.lib/src/entities/constructor.js @@ -1 +1 @@ -const _0x5764e8=_0xaccd;(function(_0x35e63d,_0x1aa05a){const _0x2282ac=_0xaccd,_0x26afc7=_0x35e63d();while(!![]){try{const _0x30d5c2=parseInt(_0x2282ac(0x15e))/0x1*(parseInt(_0x2282ac(0x14b))/0x2)+parseInt(_0x2282ac(0x196))/0x3+-parseInt(_0x2282ac(0x183))/0x4*(-parseInt(_0x2282ac(0x173))/0x5)+parseInt(_0x2282ac(0x145))/0x6*(-parseInt(_0x2282ac(0x148))/0x7)+parseInt(_0x2282ac(0x17f))/0x8*(parseInt(_0x2282ac(0x182))/0x9)+-parseInt(_0x2282ac(0x16a))/0xa+parseInt(_0x2282ac(0x17a))/0xb;if(_0x30d5c2===_0x1aa05a)break;else _0x26afc7['push'](_0x26afc7['shift']());}catch(_0x22a1d2){_0x26afc7['push'](_0x26afc7['shift']());}}}(_0x4ada,0x3ed9c));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x404e36}from'node:fs';function _0x4ada(){const _0x53db8d=['TEXT','LDbIp','MFACE','Thumb','VIDEO','face','writeFile','uploadFile','stat','size','3001750OnQsjL','dirname','PTT','ksqnR','EZKnW','width','获取视频信息失败','join','_0.png','105BKJRtI','文件异常,大小为0','PCaUc','HaQmF','Sgjea','AniStickerType','emoji','376365GMeLRl','ark','[骰子]','hUfUO','path','1448IXNGnP','TOofN','MARKDOWN','6759jsMpYA','57544acmCHe','mface','NKWJc','screenshots','height','QSid','图片信息','find','sep','[包剪锤]','QDes','replace','toString','dice','PbiHJ','rps','catch','text','CzRHY','53223BoZVJQ','PIC','YmcjI','rvJuy','dFoAP','396jBLfNO','end','ARK','45010IFtmFX','VJHlD','stringify','983996jTevlN','FACE','AniStickerId','sysface','EHKSw','ptt','error','then','[商城表情]','UhDIA','AniStickerPackId','mp4','copyFile','iozNK','gHZlD','time','EffXO','video','getImageSize','1ZjKDeg','gif'];_0x4ada=function(){return _0x53db8d;};return _0x4ada();}import _0x5bb219 from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';import _0x461464 from'./face_config.json';function _0xaccd(_0x1188b4,_0x44d679){const _0x4ada9b=_0x4ada();return _0xaccd=function(_0xaccd7f,_0x2e1952){_0xaccd7f=_0xaccd7f-0x142;let _0x5777bc=_0x4ada9b[_0xaccd7f];return _0x5777bc;},_0xaccd(_0x1188b4,_0x44d679);}export const mFaceCache=new Map();export class SendMsgElementConstructor{static[_0x5764e8(0x194)](_0x82da2b){const _0x377e33=_0x5764e8;return{'elementType':ElementType[_0x377e33(0x160)],'elementId':'','textElement':{'content':_0x82da2b,'atType':AtType['notAt'],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x81addc,_0x28517a,_0x4a519c,_0x5afe66){return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':'@'+_0x5afe66,'atType':_0x4a519c,'atUid':_0x81addc,'atTinyId':'','atNtUid':_0x28517a}};}static['reply'](_0x5478a2,_0x109c03,_0x19b13e,_0x1947dd){return{'elementType':ElementType['REPLY'],'elementId':'','replyElement':{'replayMsgSeq':_0x5478a2,'replayMsgId':_0x109c03,'senderUin':_0x19b13e,'senderUinStr':_0x1947dd}};}static async['pic'](_0x22e37b,_0x2d6f88='',_0x13706b=0x0){const _0x34d21c=_0x5764e8,_0x1a7151={'TOofN':function(_0x569414,_0x90bef3){return _0x569414===_0x90bef3;},'CzRHY':function(_0x3a54d3,_0x35f10b){return _0x3a54d3(_0x35f10b);},'PbiHJ':_0x34d21c(0x189)},{md5:_0x2e81c8,fileName:_0x5a508d,path:_0x1abe36,fileSize:_0x2ce90f}=await NTQQFileApi[_0x34d21c(0x167)](_0x22e37b,ElementType[_0x34d21c(0x197)],_0x13706b);if(_0x1a7151[_0x34d21c(0x180)](_0x2ce90f,0x0))throw _0x34d21c(0x174);const _0x15bf48=await NTQQFileApi[_0x34d21c(0x15d)](_0x22e37b),_0x2d89bf={'md5HexStr':_0x2e81c8,'fileSize':_0x2ce90f['toString'](),'picWidth':_0x15bf48?.[_0x34d21c(0x16f)],'picHeight':_0x15bf48?.[_0x34d21c(0x187)],'fileName':_0x5a508d,'sourcePath':_0x1abe36,'original':!![],'picType':_0x1a7151[_0x34d21c(0x195)](isGIF,_0x22e37b)?PicType[_0x34d21c(0x15f)]:PicType['jpg'],'picSubType':_0x13706b,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x2d6f88};return logDebug(_0x1a7151[_0x34d21c(0x191)],_0x2d89bf),{'elementType':ElementType['PIC'],'elementId':'','picElement':_0x2d89bf};}static async['file'](_0x527492,_0x91342d=''){const _0x16a1e7=_0x5764e8,_0x10c3bf={'YmcjI':function(_0x476305,_0x3a628d){return _0x476305===_0x3a628d;},'hUfUO':'文件异常,大小为0','UhDIA':function(_0x4ee0d5,_0x2098e8){return _0x4ee0d5||_0x2098e8;}},{md5:_0x5b3046,fileName:_0x2d7162,path:_0x32de10,fileSize:_0x492b3f}=await NTQQFileApi[_0x16a1e7(0x167)](_0x527492,ElementType['FILE']);if(_0x10c3bf[_0x16a1e7(0x142)](_0x492b3f,0x0))throw _0x10c3bf[_0x16a1e7(0x17d)];const _0x2592e2={'elementType':ElementType['FILE'],'elementId':'','fileElement':{'fileName':_0x10c3bf[_0x16a1e7(0x154)](_0x91342d,_0x2d7162),'filePath':_0x32de10,'fileSize':_0x492b3f['toString']()}};return _0x2592e2;}static async[_0x5764e8(0x15c)](_0x5cf50d,_0x8d2a75='',_0x407004=''){const _0x22c33a=_0x5764e8,_0x4a18e5={'VJHlD':function(_0x15bf73,_0x4cdb33,_0x13dc80){return _0x15bf73(_0x4cdb33,_0x13dc80);},'Sgjea':'获取视频封面失败,使用默认封面','PCaUc':function(_0x1bda17,_0xef3dc7){return _0x1bda17(_0xef3dc7);},'PAdWY':function(_0x109285,_0x28072c){return _0x109285(_0x28072c);},'EffXO':_0x22c33a(0x146),'gHZlD':function(_0xf3a353,_0x104eb2){return _0xf3a353+_0x104eb2;},'EHKSw':'文件异常,大小为0','dNxUc':_0x22c33a(0x17e),'dFoAP':function(_0x1db995,_0x109065){return _0x1db995(_0x109065);},'ZIyTY':function(_0x41bb91,_0x38f070,_0x26d211){return _0x41bb91(_0x38f070,_0x26d211);},'rvJuy':function(_0x1e06a6,_0x28881a){return _0x1e06a6||_0x28881a;}},{fileName:_0xc6751,path:_0x4d1912,fileSize:_0x193c6d,md5:_0x2c596a}=await NTQQFileApi[_0x22c33a(0x167)](_0x5cf50d,ElementType[_0x22c33a(0x164)]);if(_0x193c6d===0x0)throw _0x4a18e5[_0x22c33a(0x14f)];const _0x4f0828=require(_0x4a18e5['dNxUc']);let _0x1fc7ca=_0x4d1912[_0x22c33a(0x18e)](_0x4f0828['sep']+'Ori'+_0x4f0828[_0x22c33a(0x18b)],_0x4f0828['sep']+_0x22c33a(0x163)+_0x4f0828[_0x22c33a(0x18b)]);_0x1fc7ca=_0x4f0828[_0x22c33a(0x16b)](_0x1fc7ca);let _0x497f26={'width':0x780,'height':0x438,'time':0xf,'format':_0x22c33a(0x156),'size':_0x193c6d,'filePath':_0x5cf50d};try{_0x497f26=await _0x4a18e5[_0x22c33a(0x144)](getVideoInfo,_0x4d1912),logDebug('视频信息',_0x497f26);}catch(_0x59caf7){_0x4a18e5['ZIyTY'](logError,_0x22c33a(0x170),_0x59caf7);}const _0x3d35e5=new Promise((_0x5bc802,_0x5dd8ba)=>{const _0x17b647=_0x22c33a,_0x491a32={'ksqnR':function(_0x16d22c,_0x57065e){return _0x4a18e5['PAdWY'](_0x16d22c,_0x57065e);}},_0x26f41e=_0x2c596a+_0x17b647(0x172),_0x309877=_0x4f0828[_0x17b647(0x171)](_0x1fc7ca,_0x26f41e);_0x5bb219(_0x5cf50d)['on'](_0x4a18e5[_0x17b647(0x15b)],()=>{})['on'](_0x17b647(0x151),_0xa9faba=>{const _0x407d5a=_0x17b647,_0x5bb0cf={'EZKnW':function(_0x37cee2,_0x116ed4){return _0x37cee2(_0x116ed4);}};_0x4a18e5[_0x407d5a(0x149)](logDebug,_0x4a18e5[_0x407d5a(0x177)],_0xa9faba),_0x407004?_0x404e36[_0x407d5a(0x157)](_0x407004,_0x309877)[_0x407d5a(0x152)](()=>{const _0x307de7=_0x407d5a;_0x491a32[_0x307de7(0x16d)](_0x5bc802,_0x309877);})[_0x407d5a(0x193)](_0x5dd8ba):_0x404e36[_0x407d5a(0x166)](_0x309877,defaultVideoThumb)[_0x407d5a(0x152)](()=>{const _0x589198=_0x407d5a;_0x5bb0cf[_0x589198(0x16e)](_0x5bc802,_0x309877);})['catch'](_0x5dd8ba);})[_0x17b647(0x186)]({'timestamps':[0x0],'filename':_0x26f41e,'folder':_0x1fc7ca,'size':_0x4a18e5['gHZlD'](_0x4a18e5[_0x17b647(0x159)](_0x497f26[_0x17b647(0x16f)],'x'),_0x497f26[_0x17b647(0x187)])})['on'](_0x4a18e5[_0x17b647(0x15b)],()=>{_0x4a18e5['PCaUc'](_0x5bc802,_0x309877);});}),_0x3d1778=new Map(),_0x1ed97d=await _0x3d35e5,_0x772cdb=(await _0x404e36[_0x22c33a(0x168)](_0x1ed97d))[_0x22c33a(0x169)];_0x3d1778['set'](0x0,_0x1ed97d);const _0x399eec=await _0x4a18e5[_0x22c33a(0x175)](calculateFileMD5,_0x1ed97d),_0x1ea522={'elementType':ElementType['VIDEO'],'elementId':'','videoElement':{'fileName':_0x4a18e5[_0x22c33a(0x143)](_0x8d2a75,_0xc6751),'filePath':_0x4d1912,'videoMd5':_0x2c596a,'thumbMd5':_0x399eec,'fileTime':_0x497f26[_0x22c33a(0x15a)],'thumbPath':_0x3d1778,'thumbSize':_0x772cdb,'thumbWidth':_0x497f26[_0x22c33a(0x16f)],'thumbHeight':_0x497f26[_0x22c33a(0x187)],'fileSize':_0x4a18e5[_0x22c33a(0x159)]('',_0x193c6d)}};return _0x1ea522;}static async[_0x5764e8(0x150)](_0xc908d1){const _0x281707=_0x5764e8,_0x32d353={'NKWJc':function(_0x3cbf98,_0x12719b){return _0x3cbf98(_0x12719b);},'yTPJB':'语音转换失败,\x20请检查语音文件是否正常','HaQmF':function(_0x5ba3ee,_0x1924e3){return _0x5ba3ee===_0x1924e3;},'kyUvz':function(_0x2a624b,_0x3dad26){return _0x2a624b||_0x3dad26;}},{converted:_0x54ec18,path:_0x535759,duration:_0x2fc745}=await _0x32d353[_0x281707(0x185)](encodeSilk,_0xc908d1);if(!_0x535759)throw _0x32d353['yTPJB'];const {md5:_0x41fdca,fileName:_0x41e5e5,path:_0x4e93f3,fileSize:_0xfa638e}=await NTQQFileApi[_0x281707(0x167)](_0x535759,ElementType[_0x281707(0x16c)]);if(_0x32d353[_0x281707(0x176)](_0xfa638e,0x0))throw _0x281707(0x174);return _0x54ec18&&_0x404e36['unlink'](_0x535759)[_0x281707(0x152)](),{'elementType':ElementType[_0x281707(0x16c)],'elementId':'','pttElement':{'fileName':_0x41e5e5,'filePath':_0x4e93f3,'md5HexStr':_0x41fdca,'fileSize':_0xfa638e,'duration':_0x32d353['kyUvz'](_0x2fc745,0x1),'formatType':0x1,'voiceType':0x1,'voiceChangeType':0x0,'canConvert2Text':!![],'waveAmplitudes':[0x0,0x12,0x9,0x17,0x10,0x11,0x10,0xf,0x2c,0x11,0x18,0x14,0xe,0xf,0x11],'fileSubId':'','playState':0x1,'autoConvertText':0x0}};}static[_0x5764e8(0x165)](_0x2ad4aa){const _0x2fcbab=_0x5764e8,_0x53a9f2=_0x461464[_0x2fcbab(0x14e)],_0xdb3721=_0x461464[_0x2fcbab(0x179)],_0x4ce03e=_0x53a9f2[_0x2fcbab(0x18a)](_0x3cd15c=>_0x3cd15c[_0x2fcbab(0x188)]===_0x2ad4aa['toString']());_0x2ad4aa=parseInt(_0x2ad4aa[_0x2fcbab(0x18f)]());let _0x3dda0c=0x1;return _0x2ad4aa>=0xde&&(_0x3dda0c=0x2),_0x4ce03e[_0x2fcbab(0x178)]&&(_0x3dda0c=0x3),{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':_0x2ad4aa,'faceType':_0x3dda0c,'faceText':_0x4ce03e[_0x2fcbab(0x18d)],'stickerId':_0x4ce03e[_0x2fcbab(0x14d)],'stickerType':_0x4ce03e['AniStickerType'],'packId':_0x4ce03e[_0x2fcbab(0x155)],'sourceType':0x1}};}static[_0x5764e8(0x184)](_0x253ca7,_0x38cb9d,_0x510b98,_0x56483e){const _0x58253f=_0x5764e8,_0x9a9895={'LDbIp':_0x58253f(0x153)};return{'elementType':ElementType[_0x58253f(0x162)],'marketFaceElement':{'emojiPackageId':_0x253ca7,'emojiId':_0x38cb9d,'key':_0x510b98,'faceName':_0x56483e||mFaceCache['get'](_0x38cb9d)||_0x9a9895[_0x58253f(0x161)]}};}static[_0x5764e8(0x190)](_0x419c7d){const _0x21c47e=_0x5764e8;return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex['dice'],'faceType':FaceType['dice'],'faceText':_0x21c47e(0x17c),'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x5764e8(0x192)](_0x45b0ae){const _0x340464=_0x5764e8,_0x2365cf={'ESLaM':_0x340464(0x18c)};return{'elementType':ElementType[_0x340464(0x14c)],'elementId':'','faceElement':{'faceIndex':FaceIndex['RPS'],'faceText':_0x2365cf['ESLaM'],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x5764e8(0x17b)](_0x1dc836){const _0x210be0=_0x5764e8,_0x482e54={'iozNK':function(_0x31b6ab,_0x55c8a3){return _0x31b6ab!==_0x55c8a3;},'NspDr':'string'};return _0x482e54[_0x210be0(0x158)](typeof _0x1dc836,_0x482e54['NspDr'])&&(_0x1dc836=JSON[_0x210be0(0x14a)](_0x1dc836)),{'elementType':ElementType[_0x210be0(0x147)],'elementId':'','arkElement':{'bytesData':_0x1dc836,'linkInfo':null,'subElementType':null}};}static['markdown'](_0x3cdba0){const _0x37225b=_0x5764e8;return{'elementType':ElementType[_0x37225b(0x181)],'elementId':'','markdownElement':{'content':_0x3cdba0}};}} \ No newline at end of file +function _0x3d6d(){const _0x442260=['98132KCnpbx','stringify','获取视频信息失败','time','Thumb','图片信息','hVyVc','[包剪锤]','TEXT','get','QDes','bsOVA','screenshots','size','视频信息','width','path','mface','writeFile','owZrK','134123EYQlzD','sysface','sep','PTT','ptt','VIDEO','catch','QSid','error','kzgif','zYmlP','27JsSTst','pBUQy','gif','toString','Lfhnv','OxFfS','获取视频封面失败,使用默认封面','Miwix','wwinL','find','QUpOJ','stat','ark','20vLMfIs','itfNH','652797UXzmWO','PIC','FACE','text','video','face','KrfaP','AniStickerId','dirname','getImageSize','AZhlx','height','Ori','ZvFxe','RPS','语音转换失败,\x20请检查语音文件是否正常','pic','then','emoji','306438emhNOd','uploadFile','AniStickerType','[骰子]','1295315OgzsLv','replace','WKAiZ','FILE','eMykT','311610tiblNZ','mp4','jpg','VkxpX','dice','UkMUl','1282584OkCkyr','MFACE','copyFile','ARK','notAt','file'];_0x3d6d=function(){return _0x442260;};return _0x3d6d();}const _0x44b0df=_0x521b;(function(_0x1deeb9,_0x50364e){const _0x369a7f=_0x521b,_0x5710cd=_0x1deeb9();while(!![]){try{const _0x28b71c=-parseInt(_0x369a7f(0x165))/0x1+parseInt(_0x369a7f(0x145))/0x2+parseInt(_0x369a7f(0x11a))/0x3*(parseInt(_0x369a7f(0x151))/0x4)+-parseInt(_0x369a7f(0x127))/0x5*(parseInt(_0x369a7f(0x13c))/0x6)+parseInt(_0x369a7f(0x140))/0x7+-parseInt(_0x369a7f(0x14b))/0x8+parseInt(_0x369a7f(0x129))/0x9;if(_0x28b71c===_0x50364e)break;else _0x5710cd['push'](_0x5710cd['shift']());}catch(_0x4cd10d){_0x5710cd['push'](_0x5710cd['shift']());}}}(_0x3d6d,0x21112));function _0x521b(_0x124e63,_0xd5a107){const _0x3d6d77=_0x3d6d();return _0x521b=function(_0x521b3a,_0x58b533){_0x521b3a=_0x521b3a-0x113;let _0x1e1a0e=_0x3d6d77[_0x521b3a];return _0x1e1a0e;},_0x521b(_0x124e63,_0xd5a107);}import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x22d392}from'node:fs';import _0x2ee0f6 from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';import _0x4f2513 from'./face_config.json';export const mFaceCache=new Map();export class SendMsgElementConstructor{static[_0x44b0df(0x12c)](_0x4c624c){const _0x29b0ad=_0x44b0df;return{'elementType':ElementType[_0x29b0ad(0x159)],'elementId':'','textElement':{'content':_0x4c624c,'atType':AtType[_0x29b0ad(0x14f)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x49dc32,_0x2eb998,_0x3ae47b,_0x186ef2){const _0x3b5b9a=_0x44b0df;return{'elementType':ElementType[_0x3b5b9a(0x159)],'elementId':'','textElement':{'content':'@'+_0x186ef2,'atType':_0x3ae47b,'atUid':_0x49dc32,'atTinyId':'','atNtUid':_0x2eb998}};}static['reply'](_0x2c1e4b,_0x477cd2,_0x24e52e,_0x11c22a){return{'elementType':ElementType['REPLY'],'elementId':'','replyElement':{'replayMsgSeq':_0x2c1e4b,'replayMsgId':_0x477cd2,'senderUin':_0x24e52e,'senderUinStr':_0x11c22a}};}static async[_0x44b0df(0x139)](_0x2a33a8,_0x5c9837='',_0x3f08fb=0x0){const _0x439e9f=_0x44b0df,_0x3167cd={'ZvFxe':'文件异常,大小为0','hVyVc':function(_0x50131b,_0xdfbff9){return _0x50131b(_0xdfbff9);},'Miwix':_0x439e9f(0x156)},{md5:_0x3d480e,fileName:_0x26c7fa,path:_0x1e94f0,fileSize:_0x4d421e}=await NTQQFileApi[_0x439e9f(0x13d)](_0x2a33a8,ElementType[_0x439e9f(0x12a)],_0x3f08fb);if(_0x4d421e===0x0)throw _0x3167cd[_0x439e9f(0x136)];const _0x1f7573=await NTQQFileApi[_0x439e9f(0x132)](_0x2a33a8),_0x34f8fe={'md5HexStr':_0x3d480e,'fileSize':_0x4d421e[_0x439e9f(0x11d)](),'picWidth':_0x1f7573?.[_0x439e9f(0x160)],'picHeight':_0x1f7573?.[_0x439e9f(0x134)],'fileName':_0x26c7fa,'sourcePath':_0x1e94f0,'original':!![],'picType':_0x3167cd[_0x439e9f(0x157)](isGIF,_0x2a33a8)?PicType[_0x439e9f(0x11c)]:PicType[_0x439e9f(0x147)],'picSubType':_0x3f08fb,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x5c9837};return logDebug(_0x3167cd[_0x439e9f(0x121)],_0x34f8fe),{'elementType':ElementType[_0x439e9f(0x12a)],'elementId':'','picElement':_0x34f8fe};}static async[_0x44b0df(0x150)](_0x3c50ba,_0x53f1ae=''){const _0x1be519=_0x44b0df,_0xad26f5={'UnHjs':function(_0x434f34,_0x5db3be){return _0x434f34===_0x5db3be;},'mPSpa':'文件异常,大小为0','PiFLD':function(_0x38f791,_0x6d784){return _0x38f791||_0x6d784;}},{md5:_0x4ed230,fileName:_0x4d03b1,path:_0x9de2ff,fileSize:_0x1acf76}=await NTQQFileApi[_0x1be519(0x13d)](_0x3c50ba,ElementType[_0x1be519(0x143)]);if(_0xad26f5['UnHjs'](_0x1acf76,0x0))throw _0xad26f5['mPSpa'];const _0x42d6c3={'elementType':ElementType['FILE'],'elementId':'','fileElement':{'fileName':_0xad26f5['PiFLD'](_0x53f1ae,_0x4d03b1),'filePath':_0x9de2ff,'fileSize':_0x1acf76[_0x1be519(0x11d)]()}};return _0x42d6c3;}static async[_0x44b0df(0x12d)](_0x294128,_0x5598aa='',_0x54efb6=''){const _0x2c0998=_0x44b0df,_0x9daecc={'WKAiZ':function(_0x3fda4e,_0xdcd794){return _0x3fda4e(_0xdcd794);},'AZhlx':_0x2c0998(0x120),'eMykT':function(_0x4de638,_0x54b602){return _0x4de638(_0x54b602);},'pBUQy':function(_0x8f8f3c,_0x4f2a99){return _0x8f8f3c(_0x4f2a99);},'zYmlP':function(_0x160303,_0x1a9faf){return _0x160303+_0x1a9faf;},'UkMUl':'end','kzgif':function(_0x15af4e,_0x439dcb){return _0x15af4e===_0x439dcb;},'QUpOJ':'文件异常,大小为0','KrfaP':_0x2c0998(0x15f),'gKCnp':function(_0xf6b5cb,_0x4109b3,_0x43a55c){return _0xf6b5cb(_0x4109b3,_0x43a55c);},'OxFfS':function(_0x2d9eb6,_0x144d18){return _0x2d9eb6||_0x144d18;},'ezffX':function(_0x1bf5c8,_0x14a20d){return _0x1bf5c8+_0x14a20d;}},{fileName:_0x35b11b,path:_0x5cfc0a,fileSize:_0x39db6c,md5:_0x213e6d}=await NTQQFileApi[_0x2c0998(0x13d)](_0x294128,ElementType[_0x2c0998(0x114)]);if(_0x9daecc[_0x2c0998(0x118)](_0x39db6c,0x0))throw _0x9daecc[_0x2c0998(0x124)];const _0x533947=_0x9daecc[_0x2c0998(0x144)](require,_0x2c0998(0x161));let _0x1a8fe0=_0x5cfc0a[_0x2c0998(0x141)](_0x533947[_0x2c0998(0x167)]+_0x2c0998(0x135)+_0x533947['sep'],_0x533947[_0x2c0998(0x167)]+_0x2c0998(0x155)+_0x533947['sep']);_0x1a8fe0=_0x533947[_0x2c0998(0x131)](_0x1a8fe0);let _0x1a2b06={'width':0x780,'height':0x438,'time':0xf,'format':_0x2c0998(0x146),'size':_0x39db6c,'filePath':_0x294128};try{_0x1a2b06=await _0x9daecc[_0x2c0998(0x11b)](getVideoInfo,_0x5cfc0a),logDebug(_0x9daecc[_0x2c0998(0x12f)],_0x1a2b06);}catch(_0xaf55b4){_0x9daecc['gKCnp'](logError,_0x2c0998(0x153),_0xaf55b4);}const _0x939c09=new Promise((_0x5f4260,_0x17351b)=>{const _0x374b9c=_0x2c0998,_0x2df76d={'bXmIk':function(_0x5ba69e,_0x226e63){const _0x5991c7=_0x521b;return _0x9daecc[_0x5991c7(0x144)](_0x5ba69e,_0x226e63);}},_0x41baec=_0x213e6d+'_0.png',_0x3d4925=_0x533947['join'](_0x1a8fe0,_0x41baec);_0x9daecc[_0x374b9c(0x11b)](_0x2ee0f6,_0x294128)['on']('end',()=>{})['on'](_0x374b9c(0x117),_0x1a23c5=>{const _0x429a0f=_0x374b9c,_0x9860c3={'owZrK':function(_0x4580bb,_0x405784){const _0x146314=_0x521b;return _0x9daecc[_0x146314(0x142)](_0x4580bb,_0x405784);}};logDebug(_0x9daecc[_0x429a0f(0x133)],_0x1a23c5),_0x54efb6?_0x22d392[_0x429a0f(0x14d)](_0x54efb6,_0x3d4925)[_0x429a0f(0x13a)](()=>{_0x2df76d['bXmIk'](_0x5f4260,_0x3d4925);})[_0x429a0f(0x115)](_0x17351b):_0x22d392[_0x429a0f(0x163)](_0x3d4925,defaultVideoThumb)[_0x429a0f(0x13a)](()=>{const _0x3fb272=_0x429a0f;_0x9860c3[_0x3fb272(0x164)](_0x5f4260,_0x3d4925);})[_0x429a0f(0x115)](_0x17351b);})[_0x374b9c(0x15d)]({'timestamps':[0x0],'filename':_0x41baec,'folder':_0x1a8fe0,'size':_0x9daecc[_0x374b9c(0x119)](_0x1a2b06[_0x374b9c(0x160)]+'x',_0x1a2b06[_0x374b9c(0x134)])})['on'](_0x9daecc[_0x374b9c(0x14a)],()=>{_0x9daecc['eMykT'](_0x5f4260,_0x3d4925);});}),_0x58b46d=new Map(),_0x5465bb=await _0x939c09,_0xcd6770=(await _0x22d392[_0x2c0998(0x125)](_0x5465bb))[_0x2c0998(0x15e)];_0x58b46d['set'](0x0,_0x5465bb);const _0x4ee6f4=await calculateFileMD5(_0x5465bb),_0xd18c3d={'elementType':ElementType[_0x2c0998(0x114)],'elementId':'','videoElement':{'fileName':_0x9daecc[_0x2c0998(0x11f)](_0x5598aa,_0x35b11b),'filePath':_0x5cfc0a,'videoMd5':_0x213e6d,'thumbMd5':_0x4ee6f4,'fileTime':_0x1a2b06[_0x2c0998(0x154)],'thumbPath':_0x58b46d,'thumbSize':_0xcd6770,'thumbWidth':_0x1a2b06[_0x2c0998(0x160)],'thumbHeight':_0x1a2b06['height'],'fileSize':_0x9daecc['ezffX']('',_0x39db6c)}};return _0xd18c3d;}static async[_0x44b0df(0x113)](_0x2e6297){const _0x170e73=_0x44b0df,_0x434085={'wwinL':function(_0x4d3e16,_0xa73c69){return _0x4d3e16===_0xa73c69;},'bnsBC':'文件异常,大小为0','bsOVA':function(_0x5233b7,_0x1d7b4f){return _0x5233b7||_0x1d7b4f;}},{converted:_0x330e3b,path:_0x550a2e,duration:_0x5cfbae}=await encodeSilk(_0x2e6297);if(!_0x550a2e)throw _0x170e73(0x138);const {md5:_0x2856b9,fileName:_0x1b7157,path:_0x50b727,fileSize:_0x4b4d3c}=await NTQQFileApi[_0x170e73(0x13d)](_0x550a2e,ElementType['PTT']);if(_0x434085[_0x170e73(0x122)](_0x4b4d3c,0x0))throw _0x434085['bnsBC'];return _0x330e3b&&_0x22d392['unlink'](_0x550a2e)[_0x170e73(0x13a)](),{'elementType':ElementType[_0x170e73(0x168)],'elementId':'','pttElement':{'fileName':_0x1b7157,'filePath':_0x50b727,'md5HexStr':_0x2856b9,'fileSize':_0x4b4d3c,'duration':_0x434085[_0x170e73(0x15c)](_0x5cfbae,0x1),'formatType':0x1,'voiceType':0x1,'voiceChangeType':0x0,'canConvert2Text':!![],'waveAmplitudes':[0x0,0x12,0x9,0x17,0x10,0x11,0x10,0xf,0x2c,0x11,0x18,0x14,0xe,0xf,0x11],'fileSubId':'','playState':0x1,'autoConvertText':0x0}};}static[_0x44b0df(0x12e)](_0x8339df){const _0x164780=_0x44b0df,_0x6694dc={'itfNH':function(_0x23a78b,_0x4f131a){return _0x23a78b>=_0x4f131a;}},_0x161c6e=_0x4f2513[_0x164780(0x166)],_0x380470=_0x4f2513[_0x164780(0x13b)],_0x5d3882=_0x161c6e[_0x164780(0x123)](_0x7ebc4b=>_0x7ebc4b[_0x164780(0x116)]===_0x8339df[_0x164780(0x11d)]());_0x8339df=parseInt(_0x8339df[_0x164780(0x11d)]());let _0x55b566=0x1;return _0x6694dc[_0x164780(0x128)](_0x8339df,0xde)&&(_0x55b566=0x2),_0x5d3882[_0x164780(0x13e)]&&(_0x55b566=0x3),{'elementType':ElementType[_0x164780(0x12b)],'elementId':'','faceElement':{'faceIndex':_0x8339df,'faceType':_0x55b566,'faceText':_0x5d3882[_0x164780(0x15b)],'stickerId':_0x5d3882[_0x164780(0x130)],'stickerType':_0x5d3882[_0x164780(0x13e)],'packId':_0x5d3882['AniStickerPackId'],'sourceType':0x1}};}static[_0x44b0df(0x162)](_0x427bab,_0x10f7eb,_0x3e6e16,_0x1743ee){const _0x59a6b0=_0x44b0df;return{'elementType':ElementType[_0x59a6b0(0x14c)],'marketFaceElement':{'emojiPackageId':_0x427bab,'emojiId':_0x10f7eb,'key':_0x3e6e16,'faceName':_0x1743ee||mFaceCache[_0x59a6b0(0x15a)](_0x10f7eb)||'[商城表情]'}};}static[_0x44b0df(0x149)](_0x15881a){const _0x229276=_0x44b0df,_0x30d49b={'VkxpX':_0x229276(0x13f)};return{'elementType':ElementType[_0x229276(0x12b)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x229276(0x149)],'faceType':FaceType[_0x229276(0x149)],'faceText':_0x30d49b[_0x229276(0x148)],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static['rps'](_0x24cdbc){const _0x17d204=_0x44b0df,_0x23f865={'YqoIB':_0x17d204(0x158)};return{'elementType':ElementType[_0x17d204(0x12b)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x17d204(0x137)],'faceText':_0x23f865['YqoIB'],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x44b0df(0x126)](_0x5cdd14){const _0x349189=_0x44b0df,_0x1f2a74={'Lfhnv':function(_0x326f06,_0x2556b9){return _0x326f06!==_0x2556b9;},'tuYBn':'string'};return _0x1f2a74[_0x349189(0x11e)](typeof _0x5cdd14,_0x1f2a74['tuYBn'])&&(_0x5cdd14=JSON[_0x349189(0x152)](_0x5cdd14)),{'elementType':ElementType[_0x349189(0x14e)],'elementId':'','arkElement':{'bytesData':_0x5cdd14,'linkInfo':null,'subElementType':null}};}static['markdown'](_0x17743c){return{'elementType':ElementType['MARKDOWN'],'elementId':'','markdownElement':{'content':_0x17743c}};}} \ No newline at end of file diff --git a/src/core.lib/src/entities/group.js b/src/core.lib/src/entities/group.js index 6e576a0e..6bb9877f 100644 --- a/src/core.lib/src/entities/group.js +++ b/src/core.lib/src/entities/group.js @@ -1 +1 @@ -function _0x127f(_0x53c1aa,_0x637ba2){var _0x1e2050=_0x1e20();return _0x127f=function(_0x127fcc,_0x54cf63){_0x127fcc=_0x127fcc-0x1a8;var _0x5117d6=_0x1e2050[_0x127fcc];return _0x5117d6;},_0x127f(_0x53c1aa,_0x637ba2);}function _0x1e20(){var _0x1a222b=['admin','300417FMjWkU','hcaLD','34ndhfrp','2273596VvAxkb','1701420usYcfg','4508jQVvng','owner','12222dplegl','1470ZbMDBR','50737tNqGgK','normal','15128tyvfVO','ZptIb','2125470dspaKi'];_0x1e20=function(){return _0x1a222b;};return _0x1e20();}(function(_0x3511a6,_0x275535){var _0xcf395c=_0x127f,_0x2793ef=_0x3511a6();while(!![]){try{var _0x287268=-parseInt(_0xcf395c(0x1b4))/0x1*(parseInt(_0xcf395c(0x1ad))/0x2)+-parseInt(_0xcf395c(0x1ab))/0x3+parseInt(_0xcf395c(0x1ae))/0x4+parseInt(_0xcf395c(0x1af))/0x5+-parseInt(_0xcf395c(0x1a9))/0x6+-parseInt(_0xcf395c(0x1b0))/0x7*(-parseInt(_0xcf395c(0x1b6))/0x8)+-parseInt(_0xcf395c(0x1b2))/0x9*(parseInt(_0xcf395c(0x1b3))/0xa);if(_0x287268===_0x275535)break;else _0x2793ef['push'](_0x2793ef['shift']());}catch(_0x206e72){_0x2793ef['push'](_0x2793ef['shift']());}}}(_0x1e20,0x94e9c));export var GroupMemberRole;(function(_0x42e9d9){var _0x5b3606=_0x127f,_0xff50f2={'ZptIb':_0x5b3606(0x1b5),'hcaLD':'admin','ukkZC':_0x5b3606(0x1b1)};_0x42e9d9[_0x42e9d9[_0x5b3606(0x1b5)]=0x2]=_0xff50f2[_0x5b3606(0x1a8)],_0x42e9d9[_0x42e9d9[_0x5b3606(0x1aa)]=0x3]=_0xff50f2[_0x5b3606(0x1ac)],_0x42e9d9[_0x42e9d9[_0x5b3606(0x1b1)]=0x4]=_0xff50f2['ukkZC'];}(GroupMemberRole||(GroupMemberRole={}))); \ No newline at end of file +function _0x2807(){var _0x4ef20b=['owner','21416CUqYdz','266XXrvJN','6906SRQDUL','admin','1020SLsIQz','787310iZgKPa','52VJDNOy','356IfpTxy','2394297ZFaOgj','150648DakNdJ','lerWW','198ZhjMav','9368YnoGlx','1878kbCktK'];_0x2807=function(){return _0x4ef20b;};return _0x2807();}(function(_0x3ba2fc,_0x196bac){var _0x2bc3ed=_0x54db,_0x437ec3=_0x3ba2fc();while(!![]){try{var _0x1ae6f2=-parseInt(_0x2bc3ed(0xfa))/0x1*(-parseInt(_0x2bc3ed(0x100))/0x2)+-parseInt(_0x2bc3ed(0x105))/0x3*(parseInt(_0x2bc3ed(0xfb))/0x4)+-parseInt(_0x2bc3ed(0xf8))/0x5*(-parseInt(_0x2bc3ed(0x101))/0x6)+-parseInt(_0x2bc3ed(0x104))/0x7*(-parseInt(_0x2bc3ed(0x103))/0x8)+-parseInt(_0x2bc3ed(0xfc))/0x9+parseInt(_0x2bc3ed(0xf9))/0xa+-parseInt(_0x2bc3ed(0xff))/0xb*(-parseInt(_0x2bc3ed(0xfd))/0xc);if(_0x1ae6f2===_0x196bac)break;else _0x437ec3['push'](_0x437ec3['shift']());}catch(_0x3ef279){_0x437ec3['push'](_0x437ec3['shift']());}}}(_0x2807,0x3b4fa));export var GroupMemberRole;function _0x54db(_0x27a480,_0x521d94){var _0x28077e=_0x2807();return _0x54db=function(_0x54dbfd,_0x1f85a7){_0x54dbfd=_0x54dbfd-0xf7;var _0x3d90b3=_0x28077e[_0x54dbfd];return _0x3d90b3;},_0x54db(_0x27a480,_0x521d94);}(function(_0x181feb){var _0x173256=_0x54db,_0x2a759a={'lerWW':'normal','leCkQ':_0x173256(0xf7),'QEoRo':_0x173256(0x102)};_0x181feb[_0x181feb[_0x2a759a[_0x173256(0xfe)]]=0x2]=_0x2a759a[_0x173256(0xfe)],_0x181feb[_0x181feb['admin']=0x3]=_0x2a759a['leCkQ'],_0x181feb[_0x181feb[_0x2a759a['QEoRo']]=0x4]=_0x173256(0x102);}(GroupMemberRole||(GroupMemberRole={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/index.js b/src/core.lib/src/entities/index.js index a024ce9d..90518fce 100644 --- a/src/core.lib/src/entities/index.js +++ b/src/core.lib/src/entities/index.js @@ -1 +1 @@ -(function(_0x6a7289,_0x5324cb){var _0x496b2a=_0x431b,_0x48a23c=_0x6a7289();while(!![]){try{var _0x3e0e6a=parseInt(_0x496b2a(0x187))/0x1*(-parseInt(_0x496b2a(0x186))/0x2)+-parseInt(_0x496b2a(0x18a))/0x3*(-parseInt(_0x496b2a(0x183))/0x4)+-parseInt(_0x496b2a(0x18b))/0x5+parseInt(_0x496b2a(0x188))/0x6+parseInt(_0x496b2a(0x184))/0x7+-parseInt(_0x496b2a(0x189))/0x8+parseInt(_0x496b2a(0x185))/0x9;if(_0x3e0e6a===_0x5324cb)break;else _0x48a23c['push'](_0x48a23c['shift']());}catch(_0x10330b){_0x48a23c['push'](_0x48a23c['shift']());}}}(_0x32c2,0xbc107));export*from'./user';function _0x431b(_0x4abf4b,_0x596e00){var _0x32c28d=_0x32c2();return _0x431b=function(_0x431be0,_0x42cb63){_0x431be0=_0x431be0-0x183;var _0x134bed=_0x32c28d[_0x431be0];return _0x134bed;},_0x431b(_0x4abf4b,_0x596e00);}function _0x32c2(){var _0x137bb7=['15177051OUEsBw','73516ussKXo','37dwXOng','161472xxUcWM','7995984CqWTfL','2199LLdtfW','1649945qUKddp','8388djKflz','1466444ebCaGM'];_0x32c2=function(){return _0x137bb7;};return _0x32c2();}export*from'./group';export*from'./msg';export*from'./notify';export*from'./cache';export*from'./constructor'; \ No newline at end of file +(function(_0x483221,_0x43ca14){var _0x5d27d8=_0x9e95,_0x41b2bc=_0x483221();while(!![]){try{var _0x25dafa=-parseInt(_0x5d27d8(0xe0))/0x1+-parseInt(_0x5d27d8(0xe2))/0x2*(-parseInt(_0x5d27d8(0xe4))/0x3)+-parseInt(_0x5d27d8(0xe3))/0x4*(-parseInt(_0x5d27d8(0xe8))/0x5)+-parseInt(_0x5d27d8(0xe9))/0x6*(parseInt(_0x5d27d8(0xe1))/0x7)+parseInt(_0x5d27d8(0xe7))/0x8*(-parseInt(_0x5d27d8(0xe6))/0x9)+parseInt(_0x5d27d8(0xe5))/0xa+-parseInt(_0x5d27d8(0xea))/0xb*(-parseInt(_0x5d27d8(0xdf))/0xc);if(_0x25dafa===_0x43ca14)break;else _0x41b2bc['push'](_0x41b2bc['shift']());}catch(_0x222f73){_0x41b2bc['push'](_0x41b2bc['shift']());}}}(_0x222a,0xb7397));export*from'./user';export*from'./group';export*from'./msg';function _0x9e95(_0x189da4,_0x2fda57){var _0x222a1b=_0x222a();return _0x9e95=function(_0x9e959c,_0x316d0b){_0x9e959c=_0x9e959c-0xdf;var _0x3af864=_0x222a1b[_0x9e959c];return _0x3af864;},_0x9e95(_0x189da4,_0x2fda57);}function _0x222a(){var _0x5f0ff9=['16hwytYu','1955105QngILm','4206tcPTFX','810139NYaiaR','276PcAraa','374245pqZHAZ','13601cbIKCi','718424GphXdX','4vCgNYX','6PtVgbD','4454410FaQwMM','3429171Ypsmhg'];_0x222a=function(){return _0x5f0ff9;};return _0x222a();}export*from'./notify';export*from'./cache';export*from'./constructor'; \ No newline at end of file diff --git a/src/core.lib/src/entities/msg.js b/src/core.lib/src/entities/msg.js index 5387db18..6bb59e95 100644 --- a/src/core.lib/src/entities/msg.js +++ b/src/core.lib/src/entities/msg.js @@ -1 +1 @@ -var _0x3aa721=_0x2cfe;(function(_0x10d7a5,_0x232f51){var _0x714e94=_0x2cfe,_0x18f11f=_0x10d7a5();while(!![]){try{var _0x379d17=parseInt(_0x714e94(0xc7))/0x1*(-parseInt(_0x714e94(0xc2))/0x2)+parseInt(_0x714e94(0xe3))/0x3+-parseInt(_0x714e94(0xbf))/0x4*(-parseInt(_0x714e94(0xc0))/0x5)+parseInt(_0x714e94(0xb5))/0x6*(parseInt(_0x714e94(0xe8))/0x7)+parseInt(_0x714e94(0xdd))/0x8+parseInt(_0x714e94(0xc3))/0x9+-parseInt(_0x714e94(0xd7))/0xa*(parseInt(_0x714e94(0xee))/0xb);if(_0x379d17===_0x232f51)break;else _0x18f11f['push'](_0x18f11f['shift']());}catch(_0x28f49c){_0x18f11f['push'](_0x18f11f['shift']());}}}(_0xf98d,0xa0aa9));export var ElementType;(function(_0x182d2d){var _0x1d0878=_0x2cfe,_0x42ec06={'JyMtR':'5|2|6|7|3|0|1|8|4|9','CFfFZ':_0x1d0878(0xb4),'PnWkq':_0x1d0878(0xb8),'uSeFJ':_0x1d0878(0xe1),'klcWp':_0x1d0878(0xe9),'qpsfq':_0x1d0878(0xcc),'QEtIy':'TEXT','SJXmk':'FILE','DTNSB':'PTT','xysqa':'ARK','eqJHT':_0x1d0878(0xc1)},_0x42897f=_0x42ec06[_0x1d0878(0xbb)][_0x1d0878(0xcd)]('|'),_0x89944f=0x0;while(!![]){switch(_0x42897f[_0x89944f++]){case'0':_0x182d2d[_0x182d2d[_0x42ec06[_0x1d0878(0xdb)]]=0x6]=_0x42ec06[_0x1d0878(0xdb)];continue;case'1':_0x182d2d[_0x182d2d[_0x42ec06[_0x1d0878(0xec)]]=0x7]=_0x42ec06['PnWkq'];continue;case'2':_0x182d2d[_0x182d2d[_0x42ec06['uSeFJ']]=0x2]=_0x1d0878(0xe1);continue;case'3':_0x182d2d[_0x182d2d[_0x1d0878(0xe9)]=0x5]=_0x42ec06[_0x1d0878(0xe0)];continue;case'4':_0x182d2d[_0x182d2d[_0x42ec06['qpsfq']]=0xb]=_0x42ec06[_0x1d0878(0xce)];continue;case'5':_0x182d2d[_0x182d2d[_0x42ec06[_0x1d0878(0xbc)]]=0x1]=_0x42ec06[_0x1d0878(0xbc)];continue;case'6':_0x182d2d[_0x182d2d[_0x42ec06[_0x1d0878(0xe7)]]=0x3]=_0x1d0878(0xc6);continue;case'7':_0x182d2d[_0x182d2d[_0x42ec06[_0x1d0878(0xd2)]]=0x4]=_0x42ec06[_0x1d0878(0xd2)];continue;case'8':_0x182d2d[_0x182d2d['ARK']=0xa]=_0x42ec06['xysqa'];continue;case'9':_0x182d2d[_0x182d2d[_0x1d0878(0xc1)]=0xe]=_0x42ec06[_0x1d0878(0xe6)];continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x525175){var _0x2ba08c=_0x2cfe,_0x369896={'BFATf':_0x2ba08c(0xd5)};_0x525175[_0x525175[_0x369896[_0x2ba08c(0xea)]]=0x7d0]=_0x369896[_0x2ba08c(0xea)],_0x525175[_0x525175['jpg']=0x3e8]='jpg';}(PicType||(PicType={})));export var PicSubType;(function(_0x502917){var _0x4a47fa=_0x2cfe,_0x30d7b2={'bKZbR':_0x4a47fa(0xd4),'YYVzi':_0x4a47fa(0xd0)};_0x502917[_0x502917['normal']=0x0]=_0x30d7b2['bKZbR'],_0x502917[_0x502917[_0x30d7b2[_0x4a47fa(0xcf)]]=0x1]=_0x30d7b2['YYVzi'];}(PicSubType||(PicSubType={})));export var AtType;function _0xf98d(){var _0x10392d=['MARKDOWN','2mTcnCm','4132386pWXUVt','yyaGW','RPS','FILE','678583idkTbB','INVITE_NEW_MEMBER','KOWHa','atAll','ban','MFACE','split','qpsfq','YYVzi','face','jnWxD','DTNSB','taLae','normal','gif','group','10DxeqyO','dice','chatDevice','MEMBER_NEW_TITLE','CFfFZ','atUser','5101008RbayRs','VxBFd','oSPqK','klcWp','PIC','https://gchat.qpic.cn','3143409lbfGhZ','SuVRr','RQyUt','eqJHT','SJXmk','1946EEHXbh','VIDEO','BFATf','friend','PnWkq','wooFF','23914627BzeaKq','FACE','21234sONDOB','memberIncrease','MBOKH','REPLY','normal2','QUaZh','JyMtR','QEtIy','ZuxNo','WWbCb','1664wTQOrr','4595rZqFUK'];_0xf98d=function(){return _0x10392d;};return _0xf98d();}(function(_0x565075){var _0x1d6340=_0x2cfe,_0x464ef3={'QUaZh':'notAt','jnWxD':_0x1d6340(0xca),'oSPqK':_0x1d6340(0xdc)};_0x565075[_0x565075[_0x464ef3[_0x1d6340(0xba)]]=0x0]=_0x464ef3[_0x1d6340(0xba)],_0x565075[_0x565075[_0x464ef3[_0x1d6340(0xd1)]]=0x1]=_0x464ef3[_0x1d6340(0xd1)],_0x565075[_0x565075[_0x464ef3[_0x1d6340(0xdf)]]=0x2]=_0x464ef3[_0x1d6340(0xdf)];}(AtType||(AtType={})));export var ChatType;function _0x2cfe(_0x52ca7e,_0x1f793d){var _0xf98d1f=_0xf98d();return _0x2cfe=function(_0x2cfe27,_0x3d5e43){_0x2cfe27=_0x2cfe27-0xb4;var _0x268503=_0xf98d1f[_0x2cfe27];return _0x268503;},_0x2cfe(_0x52ca7e,_0x1f793d);}(function(_0x5bbead){var _0x3a0d28=_0x2cfe,_0x14d683={'MBOKH':_0x3a0d28(0xeb),'ZuxNo':_0x3a0d28(0xd9),'yyaGW':'temp'};_0x5bbead[_0x5bbead[_0x14d683[_0x3a0d28(0xb7)]]=0x1]=_0x14d683['MBOKH'],_0x5bbead[_0x5bbead[_0x3a0d28(0xd6)]=0x2]=_0x3a0d28(0xd6),_0x5bbead[_0x5bbead[_0x14d683['ZuxNo']]=0x8]=_0x14d683[_0x3a0d28(0xbd)],_0x5bbead[_0x5bbead[_0x14d683[_0x3a0d28(0xc4)]]=0x64]=_0x14d683[_0x3a0d28(0xc4)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x3aa721(0xe2);export const IMAGE_HTTP_HOST_NT='https://multimedia.nt.qq.com.cn';export var GrayTipElementSubType;(function(_0x2f9840){var _0x45af7d=_0x3aa721,_0x375cd7={'WWbCb':_0x45af7d(0xc8),'NBDQM':_0x45af7d(0xda)};_0x2f9840[_0x2f9840[_0x375cd7[_0x45af7d(0xbe)]]=0xc]=_0x375cd7[_0x45af7d(0xbe)],_0x2f9840[_0x2f9840[_0x375cd7['NBDQM']]=0x11]=_0x375cd7['NBDQM'];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0xa02a5c){var _0x404270=_0x3aa721,_0x1c49e5={'SuVRr':_0x404270(0xd4),'RQyUt':_0x404270(0xb9),'FmiLn':_0x404270(0xd8)};_0xa02a5c[_0xa02a5c[_0x1c49e5[_0x404270(0xe4)]]=0x1]='normal',_0xa02a5c[_0xa02a5c[_0x1c49e5[_0x404270(0xe5)]]=0x2]=_0x1c49e5[_0x404270(0xe5)],_0xa02a5c[_0xa02a5c[_0x404270(0xd8)]=0x3]=_0x1c49e5['FmiLn'];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0xe2c757){var _0xd0c518=_0x3aa721,_0x3e103c={'wooFF':_0xd0c518(0xd8),'VxBFd':_0xd0c518(0xc5)};_0xe2c757[_0xe2c757[_0x3e103c[_0xd0c518(0xed)]]=0x166]=_0x3e103c[_0xd0c518(0xed)],_0xe2c757[_0xe2c757[_0x3e103c[_0xd0c518(0xde)]]=0x167]=_0x3e103c[_0xd0c518(0xde)];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x2a3a6c){var _0x606041=_0x3aa721,_0x668abb={'taLae':_0x606041(0xb6),'KOWHa':'kicked'};_0x2a3a6c[_0x2a3a6c[_0x668abb[_0x606041(0xd3)]]=0x1]=_0x668abb[_0x606041(0xd3)],_0x2a3a6c[_0x2a3a6c[_0x668abb[_0x606041(0xc9)]]=0x3]=_0x668abb[_0x606041(0xc9)],_0x2a3a6c[_0x2a3a6c[_0x606041(0xcb)]=0x8]=_0x606041(0xcb);}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file +var _0x41b376=_0x339a;(function(_0x23eff5,_0x314e33){var _0x519aea=_0x339a,_0x5e86af=_0x23eff5();while(!![]){try{var _0x221e19=-parseInt(_0x519aea(0x1e1))/0x1+-parseInt(_0x519aea(0x1e7))/0x2+-parseInt(_0x519aea(0x1ef))/0x3+-parseInt(_0x519aea(0x1dc))/0x4*(parseInt(_0x519aea(0x1c6))/0x5)+parseInt(_0x519aea(0x1fa))/0x6*(-parseInt(_0x519aea(0x1d6))/0x7)+parseInt(_0x519aea(0x1dd))/0x8*(-parseInt(_0x519aea(0x1e9))/0x9)+parseInt(_0x519aea(0x1f4))/0xa;if(_0x221e19===_0x314e33)break;else _0x5e86af['push'](_0x5e86af['shift']());}catch(_0x5e4dce){_0x5e86af['push'](_0x5e86af['shift']());}}}(_0x172d,0xca74c));export var ElementType;(function(_0x4f35b8){var _0x28552a=_0x339a,_0x185c6f={'WFyGw':'9|0|7|4|1|8|5|6|2|3','htOcs':_0x28552a(0x1c9),'cqTve':'VIDEO','OpcoM':'MFACE','vXRbJ':_0x28552a(0x1ed),'AkxhS':_0x28552a(0x1ce),'JVUwP':'REPLY','vyTnv':_0x28552a(0x1f8),'xwLnb':_0x28552a(0x1e5),'eMdQN':_0x28552a(0x1d5),'jbGfc':_0x28552a(0x1f7)},_0x316ebd=_0x185c6f['WFyGw']['split']('|'),_0x4a037c=0x0;while(!![]){switch(_0x316ebd[_0x4a037c++]){case'0':_0x4f35b8[_0x4f35b8[_0x28552a(0x1c9)]=0x2]=_0x185c6f[_0x28552a(0x1f3)];continue;case'1':_0x4f35b8[_0x4f35b8[_0x185c6f[_0x28552a(0x1cf)]]=0x5]=_0x185c6f[_0x28552a(0x1cf)];continue;case'2':_0x4f35b8[_0x4f35b8[_0x185c6f['OpcoM']]=0xb]=_0x185c6f[_0x28552a(0x1c1)];continue;case'3':_0x4f35b8[_0x4f35b8[_0x185c6f[_0x28552a(0x1c5)]]=0xe]=_0x185c6f[_0x28552a(0x1c5)];continue;case'4':_0x4f35b8[_0x4f35b8[_0x185c6f[_0x28552a(0x1c7)]]=0x4]=_0x185c6f[_0x28552a(0x1c7)];continue;case'5':_0x4f35b8[_0x4f35b8[_0x185c6f['JVUwP']]=0x7]=_0x28552a(0x1cb);continue;case'6':_0x4f35b8[_0x4f35b8[_0x28552a(0x1f8)]=0xa]=_0x185c6f[_0x28552a(0x1de)];continue;case'7':_0x4f35b8[_0x4f35b8[_0x185c6f[_0x28552a(0x1f0)]]=0x3]=_0x28552a(0x1e5);continue;case'8':_0x4f35b8[_0x4f35b8[_0x185c6f[_0x28552a(0x1d1)]]=0x6]=_0x185c6f[_0x28552a(0x1d1)];continue;case'9':_0x4f35b8[_0x4f35b8[_0x185c6f[_0x28552a(0x1e3)]]=0x1]=_0x185c6f[_0x28552a(0x1e3)];continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x394856){var _0x515924=_0x339a,_0x5235dd={'yuGmV':'gif','hYhat':_0x515924(0x1c4)};_0x394856[_0x394856['gif']=0x7d0]=_0x5235dd[_0x515924(0x1d4)],_0x394856[_0x394856[_0x5235dd[_0x515924(0x1f5)]]=0x3e8]=_0x5235dd[_0x515924(0x1f5)];}(PicType||(PicType={})));export var PicSubType;(function(_0x3f31e9){var _0x2fd9d4=_0x339a,_0x3b31b8={'JVUrg':_0x2fd9d4(0x1ea),'kMPvK':_0x2fd9d4(0x1d2)};_0x3f31e9[_0x3f31e9[_0x3b31b8[_0x2fd9d4(0x1db)]]=0x0]=_0x3b31b8[_0x2fd9d4(0x1db)],_0x3f31e9[_0x3f31e9[_0x2fd9d4(0x1d2)]=0x1]=_0x3b31b8[_0x2fd9d4(0x1e8)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x2dfd95){var _0x79f2d3=_0x339a,_0x15d245={'xnONZ':_0x79f2d3(0x1cd),'upnKv':_0x79f2d3(0x1da),'hYZms':_0x79f2d3(0x1f1)};_0x2dfd95[_0x2dfd95[_0x15d245['xnONZ']]=0x0]=_0x15d245['xnONZ'],_0x2dfd95[_0x2dfd95[_0x15d245['upnKv']]=0x1]='atAll',_0x2dfd95[_0x2dfd95[_0x79f2d3(0x1f1)]=0x2]=_0x15d245[_0x79f2d3(0x1c8)];}(AtType||(AtType={})));export var ChatType;(function(_0x5eabbf){var _0x48b09b=_0x339a,_0xc81938={'sFGXp':_0x48b09b(0x1e0),'oWaAs':_0x48b09b(0x1c2),'qTWps':_0x48b09b(0x1d3),'ULgms':'temp'};_0x5eabbf[_0x5eabbf[_0xc81938[_0x48b09b(0x1f2)]]=0x1]=_0x48b09b(0x1e0),_0x5eabbf[_0x5eabbf['group']=0x2]=_0xc81938[_0x48b09b(0x1d0)],_0x5eabbf[_0x5eabbf[_0xc81938['qTWps']]=0x8]=_0xc81938[_0x48b09b(0x1f9)],_0x5eabbf[_0x5eabbf[_0xc81938[_0x48b09b(0x1cc)]]=0x64]=_0xc81938[_0x48b09b(0x1cc)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST='https://gchat.qpic.cn';export const IMAGE_HTTP_HOST_NT=_0x41b376(0x1ec);export var GrayTipElementSubType;(function(_0x5a4ea5){var _0xbadd79=_0x41b376,_0x2ebf69={'cWGMp':_0xbadd79(0x1e2),'fYqnk':_0xbadd79(0x1df)};_0x5a4ea5[_0x5a4ea5[_0x2ebf69['cWGMp']]=0xc]=_0x2ebf69[_0xbadd79(0x1d7)],_0x5a4ea5[_0x5a4ea5[_0x2ebf69['fYqnk']]=0x11]=_0xbadd79(0x1df);}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x438870){var _0x3dfc30=_0x41b376,_0x2eccdb={'XCHcT':_0x3dfc30(0x1ea),'FUJaO':'normal2','HMRgj':'dice'};_0x438870[_0x438870[_0x3dfc30(0x1ea)]=0x1]=_0x2eccdb[_0x3dfc30(0x1c3)],_0x438870[_0x438870[_0x2eccdb[_0x3dfc30(0x1d9)]]=0x2]=_0x2eccdb[_0x3dfc30(0x1d9)],_0x438870[_0x438870[_0x3dfc30(0x1e6)]=0x3]=_0x2eccdb[_0x3dfc30(0x1eb)];}(FaceType||(FaceType={})));function _0x339a(_0x427e28,_0x456d2c){var _0x172da4=_0x172d();return _0x339a=function(_0x339a78,_0xde928d){_0x339a78=_0x339a78-0x1c1;var _0x10f170=_0x172da4[_0x339a78];return _0x10f170;},_0x339a(_0x427e28,_0x456d2c);}export var FaceIndex;function _0x172d(){var _0x2943b6=['cWGMp','ban','FUJaO','atAll','JVUrg','40zSJKtO','8dbLtLp','vyTnv','MEMBER_NEW_TITLE','friend','315420nQxQmF','INVITE_NEW_MEMBER','jbGfc','RPS','FILE','dice','59642dgwVey','kMPvK','2811465ysMxxj','normal','HMRgj','https://multimedia.nt.qq.com.cn','MARKDOWN','kicked','797301NCrdjr','xwLnb','atUser','sFGXp','htOcs','35424180ySvdVn','hYhat','memberIncrease','TEXT','ARK','qTWps','36990pNZgWo','OpcoM','group','XCHcT','jpg','vXRbJ','688355bzseow','AkxhS','hYZms','PIC','nTlaW','REPLY','ULgms','notAt','PTT','cqTve','oWaAs','eMdQN','face','chatDevice','yuGmV','FACE','469NUOyOd'];_0x172d=function(){return _0x2943b6;};return _0x172d();}(function(_0x227062){var _0x5e7a20=_0x41b376,_0x20391d={'nTlaW':_0x5e7a20(0x1e6),'yuPmL':_0x5e7a20(0x1e4)};_0x227062[_0x227062[_0x20391d[_0x5e7a20(0x1ca)]]=0x166]=_0x20391d[_0x5e7a20(0x1ca)],_0x227062[_0x227062[_0x20391d['yuPmL']]=0x167]='RPS';}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x1f52b1){var _0x6d3185=_0x41b376,_0x30d137={'jByMG':_0x6d3185(0x1ee),'OdApB':_0x6d3185(0x1d8)};_0x1f52b1[_0x1f52b1[_0x6d3185(0x1f6)]=0x1]='memberIncrease',_0x1f52b1[_0x1f52b1[_0x6d3185(0x1ee)]=0x3]=_0x30d137['jByMG'],_0x1f52b1[_0x1f52b1[_0x30d137['OdApB']]=0x8]=_0x6d3185(0x1d8);}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/notify.js b/src/core.lib/src/entities/notify.js index 1cb06870..13296db5 100644 --- a/src/core.lib/src/entities/notify.js +++ b/src/core.lib/src/entities/notify.js @@ -1 +1 @@ -function _0x5229(){var _0x4c7272=['xXeUa','YhdtW','6812022qLuyWk','3225338RwNYZs','WAIT_HANDLE','approve','ADMIN_UNSET_OTHER','uHiAE','INVITE_ME','4466607zBVPrj','EfeUH','EhcoW','APPROVE','JOIN_REQUEST','KICK_MEMBER','split','REJECT','10297224BhnUcH','tHMFD','10DyXpgq','ntEuH','jmFqK','1zVTHcP','ADMIN_SET','WfXAa','Vewji','pPzhx','zInfC','5604184bfKtSE','311145uNWMLi','7|6|4|5|3|2|1|0','KJcBe','12080007QZmQOO','INVITED_JOIN','reject','4atYOWO','jYsTu','KAxxT'];_0x5229=function(){return _0x4c7272;};return _0x5229();}(function(_0xf2e50e,_0x7d80fb){var _0x4e2a91=_0x2816,_0x5c9a9f=_0xf2e50e();while(!![]){try{var _0x258da1=-parseInt(_0x4e2a91(0xe2))/0x1*(-parseInt(_0x4e2a91(0xf5))/0x2)+parseInt(_0x4e2a91(0xd5))/0x3+-parseInt(_0x4e2a91(0xef))/0x4*(parseInt(_0x4e2a91(0xe9))/0x5)+-parseInt(_0x4e2a91(0xdd))/0x6+-parseInt(_0x4e2a91(0xf4))/0x7+-parseInt(_0x4e2a91(0xe8))/0x8+-parseInt(_0x4e2a91(0xec))/0x9*(-parseInt(_0x4e2a91(0xdf))/0xa);if(_0x258da1===_0x7d80fb)break;else _0x5c9a9f['push'](_0x5c9a9f['shift']());}catch(_0x66bc72){_0x5c9a9f['push'](_0x5c9a9f['shift']());}}}(_0x5229,0xf21ab));export var GroupNotifyTypes;(function(_0x40483e){var _0x33f171=_0x2816,_0x243cd2={'jmFqK':_0x33f171(0xea),'EfeUH':_0x33f171(0xd2),'Vewji':'ADMIN_UNSET','KJcBe':'MEMBER_EXIT','jYsTu':_0x33f171(0xda),'ntEuH':_0x33f171(0xd9),'xXeUa':'ADMIN_SET','uHiAE':'INVITED_JOIN','pPzhx':_0x33f171(0xd4)},_0x3bf1d1=_0x243cd2[_0x33f171(0xe1)][_0x33f171(0xdb)]('|'),_0x5b93e7=0x0;while(!![]){switch(_0x3bf1d1[_0x5b93e7++]){case'0':_0x40483e[_0x40483e[_0x243cd2['EfeUH']]=0xd]=_0x243cd2[_0x33f171(0xd6)];continue;case'1':_0x40483e[_0x40483e[_0x243cd2[_0x33f171(0xe5)]]=0xc]=_0x243cd2[_0x33f171(0xe5)];continue;case'2':_0x40483e[_0x40483e[_0x243cd2[_0x33f171(0xeb)]]=0xb]=_0x243cd2['KJcBe'];continue;case'3':_0x40483e[_0x40483e[_0x243cd2[_0x33f171(0xf0)]]=0x9]=_0x243cd2[_0x33f171(0xf0)];continue;case'4':_0x40483e[_0x40483e['JOIN_REQUEST']=0x7]=_0x243cd2[_0x33f171(0xe0)];continue;case'5':_0x40483e[_0x40483e[_0x243cd2[_0x33f171(0xf2)]]=0x8]=_0x33f171(0xe3);continue;case'6':_0x40483e[_0x40483e[_0x243cd2[_0x33f171(0xd3)]]=0x4]=_0x33f171(0xed);continue;case'7':_0x40483e[_0x40483e[_0x243cd2[_0x33f171(0xe6)]]=0x1]='INVITE_ME';continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;function _0x2816(_0xc259e5,_0x1e78f3){var _0x522988=_0x5229();return _0x2816=function(_0x281684,_0x2d3149){_0x281684=_0x281684-0xd0;var _0x468977=_0x522988[_0x281684];return _0x468977;},_0x2816(_0xc259e5,_0x1e78f3);}(function(_0x533049){var _0x46db2f=_0x2816,_0x598142={'WfXAa':'IGNORE','tHMFD':_0x46db2f(0xd0),'YhdtW':_0x46db2f(0xd8),'EhcoW':_0x46db2f(0xdc)};_0x533049[_0x533049[_0x598142['WfXAa']]=0x0]=_0x598142[_0x46db2f(0xe4)],_0x533049[_0x533049[_0x598142[_0x46db2f(0xde)]]=0x1]=_0x46db2f(0xd0),_0x533049[_0x533049[_0x598142[_0x46db2f(0xf3)]]=0x2]=_0x598142[_0x46db2f(0xf3)],_0x533049[_0x533049[_0x46db2f(0xdc)]=0x3]=_0x598142[_0x46db2f(0xd7)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x4393d4){var _0x29165a=_0x2816,_0x24479d={'KAxxT':_0x29165a(0xd1),'zInfC':_0x29165a(0xee)};_0x4393d4[_0x4393d4[_0x24479d[_0x29165a(0xf1)]]=0x1]=_0x29165a(0xd1),_0x4393d4[_0x4393d4[_0x24479d[_0x29165a(0xe7)]]=0x2]=_0x24479d[_0x29165a(0xe7)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file +(function(_0x597755,_0x495d5b){var _0x47ee60=_0x3ba9,_0x53437c=_0x597755();while(!![]){try{var _0x1f8aa0=parseInt(_0x47ee60(0x132))/0x1+parseInt(_0x47ee60(0x11e))/0x2+-parseInt(_0x47ee60(0x126))/0x3+parseInt(_0x47ee60(0x129))/0x4+-parseInt(_0x47ee60(0x121))/0x5*(-parseInt(_0x47ee60(0x134))/0x6)+parseInt(_0x47ee60(0x11d))/0x7+-parseInt(_0x47ee60(0x12f))/0x8;if(_0x1f8aa0===_0x495d5b)break;else _0x53437c['push'](_0x53437c['shift']());}catch(_0x47c442){_0x53437c['push'](_0x53437c['shift']());}}}(_0x4f72,0x36c78));export var GroupNotifyTypes;(function(_0x42092b){var _0x146440=_0x3ba9,_0x2d617d={'WmUTX':'1|0|7|3|2|4|6|5','RshSK':'INVITED_JOIN','FiHVa':'INVITE_ME','PVhaW':_0x146440(0x124),'YYbcU':_0x146440(0x12e),'HBYIM':_0x146440(0x133),'hNtNd':'ADMIN_UNSET_OTHER','XzmFW':_0x146440(0x118),'DPknG':_0x146440(0x12b)},_0x556669=_0x2d617d['WmUTX'][_0x146440(0x136)]('|'),_0x210252=0x0;while(!![]){switch(_0x556669[_0x210252++]){case'0':_0x42092b[_0x42092b[_0x2d617d[_0x146440(0x135)]]=0x4]=_0x2d617d[_0x146440(0x135)];continue;case'1':_0x42092b[_0x42092b[_0x2d617d[_0x146440(0x12c)]]=0x1]=_0x2d617d[_0x146440(0x12c)];continue;case'2':_0x42092b[_0x42092b[_0x2d617d[_0x146440(0x130)]]=0x9]=_0x2d617d['PVhaW'];continue;case'3':_0x42092b[_0x42092b[_0x2d617d[_0x146440(0x11a)]]=0x8]=_0x2d617d[_0x146440(0x11a)];continue;case'4':_0x42092b[_0x42092b[_0x2d617d[_0x146440(0x131)]]=0xb]=_0x2d617d[_0x146440(0x131)];continue;case'5':_0x42092b[_0x42092b[_0x2d617d[_0x146440(0x12a)]]=0xd]=_0x146440(0x127);continue;case'6':_0x42092b[_0x42092b[_0x2d617d[_0x146440(0x117)]]=0xc]=_0x146440(0x118);continue;case'7':_0x42092b[_0x42092b[_0x2d617d['DPknG']]=0x7]=_0x2d617d[_0x146440(0x119)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));function _0x3ba9(_0x363fa6,_0x4a4417){var _0x4f7201=_0x4f72();return _0x3ba9=function(_0x3ba98f,_0x4940ff){_0x3ba98f=_0x3ba98f-0x117;var _0x1598fa=_0x4f7201[_0x3ba98f];return _0x1598fa;},_0x3ba9(_0x363fa6,_0x4a4417);}export var GroupNotifyStatus;(function(_0x2c1a48){var _0x3cd212=_0x3ba9,_0x108bfa={'FFrqV':_0x3cd212(0x11c),'mmKwz':'APPROVE','MdUSB':_0x3cd212(0x122)};_0x2c1a48[_0x2c1a48[_0x3cd212(0x120)]=0x0]=_0x3cd212(0x120),_0x2c1a48[_0x2c1a48[_0x108bfa[_0x3cd212(0x123)]]=0x1]=_0x108bfa[_0x3cd212(0x123)],_0x2c1a48[_0x2c1a48[_0x108bfa[_0x3cd212(0x12d)]]=0x2]=_0x108bfa[_0x3cd212(0x12d)],_0x2c1a48[_0x2c1a48[_0x3cd212(0x122)]=0x3]=_0x108bfa[_0x3cd212(0x11f)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;function _0x4f72(){var _0x477d17=['ADMIN_UNSET_OTHER','approve','1363320mSZoUD','hNtNd','JOIN_REQUEST','FiHVa','mmKwz','ADMIN_SET','8323784ecKLSV','PVhaW','HBYIM','163549FiTSob','MEMBER_EXIT','347946uHQutX','RshSK','split','XzmFW','ADMIN_UNSET','DPknG','YYbcU','reject','WAIT_HANDLE','2885211wbBSFD','598888Pbgtzq','MdUSB','IGNORE','20TIqfla','REJECT','FFrqV','KICK_MEMBER','pNUWl','549333IUIRPO'];_0x4f72=function(){return _0x477d17;};return _0x4f72();}(function(_0x2bd852){var _0x407584=_0x3ba9,_0x316115={'pNUWl':_0x407584(0x128),'fzYUx':_0x407584(0x11b)};_0x2bd852[_0x2bd852[_0x316115[_0x407584(0x125)]]=0x1]=_0x316115[_0x407584(0x125)],_0x2bd852[_0x2bd852[_0x407584(0x11b)]=0x2]=_0x316115['fzYUx'];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/user.js b/src/core.lib/src/entities/user.js index 5452334e..f91c1f0e 100644 --- a/src/core.lib/src/entities/user.js +++ b/src/core.lib/src/entities/user.js @@ -1 +1 @@ -function _0x2621(_0x18aed5,_0x14acdf){var _0x3ed8ab=_0x3ed8();return _0x2621=function(_0x2621c4,_0xb21daa){_0x2621c4=_0x2621c4-0xf9;var _0x3ee055=_0x3ed8ab[_0x2621c4];return _0x3ee055;},_0x2621(_0x18aed5,_0x14acdf);}(function(_0xa541d9,_0x1ad973){var _0x571e8f=_0x2621,_0x1154a0=_0xa541d9();while(!![]){try{var _0x55fe90=parseInt(_0x571e8f(0x100))/0x1+parseInt(_0x571e8f(0x105))/0x2*(parseInt(_0x571e8f(0xfc))/0x3)+parseInt(_0x571e8f(0xff))/0x4+-parseInt(_0x571e8f(0xfe))/0x5+parseInt(_0x571e8f(0x104))/0x6*(-parseInt(_0x571e8f(0x102))/0x7)+-parseInt(_0x571e8f(0x106))/0x8+-parseInt(_0x571e8f(0x103))/0x9*(-parseInt(_0x571e8f(0xfb))/0xa);if(_0x55fe90===_0x1ad973)break;else _0x1154a0['push'](_0x1154a0['shift']());}catch(_0x490a3d){_0x1154a0['push'](_0x1154a0['shift']());}}}(_0x3ed8,0x7ec5f));function _0x3ed8(){var _0xb3fb2f=['24147oLqpVc','male','5078240usOWcj','1744964MakFAX','676829hSplbK','vjTyR','7CWOMuv','333KGooBu','4762614ymuXKc','58yCgUpl','1592584fkaEyK','unknown','IAPUe','319260fdJRxr'];_0x3ed8=function(){return _0xb3fb2f;};return _0x3ed8();}export var Sex;(function(_0x3738bb){var _0x2d908f=_0x2621,_0x467729={'IAPUe':_0x2d908f(0xfd),'FuVAE':'female','vjTyR':_0x2d908f(0xf9)};_0x3738bb[_0x3738bb[_0x467729[_0x2d908f(0xfa)]]=0x1]=_0x2d908f(0xfd),_0x3738bb[_0x3738bb['female']=0x2]=_0x467729['FuVAE'],_0x3738bb[_0x3738bb[_0x467729[_0x2d908f(0x101)]]=0xff]=_0x467729[_0x2d908f(0x101)];}(Sex||(Sex={}))); \ No newline at end of file +(function(_0x4121c2,_0x3a8bee){var _0x24f3b6=_0x34b7,_0x1faed3=_0x4121c2();while(!![]){try{var _0x5e0c2d=parseInt(_0x24f3b6(0x188))/0x1+parseInt(_0x24f3b6(0x192))/0x2+-parseInt(_0x24f3b6(0x18f))/0x3*(parseInt(_0x24f3b6(0x187))/0x4)+parseInt(_0x24f3b6(0x185))/0x5+-parseInt(_0x24f3b6(0x189))/0x6*(-parseInt(_0x24f3b6(0x186))/0x7)+-parseInt(_0x24f3b6(0x18e))/0x8+parseInt(_0x24f3b6(0x18a))/0x9*(-parseInt(_0x24f3b6(0x190))/0xa);if(_0x5e0c2d===_0x3a8bee)break;else _0x1faed3['push'](_0x1faed3['shift']());}catch(_0x22b0c3){_0x1faed3['push'](_0x1faed3['shift']());}}}(_0x121a,0xe7e53));function _0x34b7(_0x5436d7,_0xb54fe1){var _0x121ac7=_0x121a();return _0x34b7=function(_0x34b7f3,_0x3bc3fc){_0x34b7f3=_0x34b7f3-0x185;var _0xd1cff6=_0x121ac7[_0x34b7f3];return _0xd1cff6;},_0x34b7(_0x5436d7,_0xb54fe1);}export var Sex;function _0x121a(){var _0x14c1fc=['745026OHeVaF','495174cVhLTD','16551QHrdYN','male','VKQTj','female','1297288AiBdRI','4328151mUPdnO','3620XlDDEF','unknown','960396tcgIpt','4199045zncOin','98OUgwUY','4vkINsT'];_0x121a=function(){return _0x14c1fc;};return _0x121a();}(function(_0x447638){var _0x5f25e4=_0x34b7,_0x25373c={'VKQTj':_0x5f25e4(0x18b),'eYdrQ':_0x5f25e4(0x18d)};_0x447638[_0x447638[_0x25373c[_0x5f25e4(0x18c)]]=0x1]=_0x5f25e4(0x18b),_0x447638[_0x447638[_0x25373c['eYdrQ']]=0x2]=_0x25373c['eYdrQ'],_0x447638[_0x447638[_0x5f25e4(0x191)]=0xff]=_0x5f25e4(0x191);}(Sex||(Sex={}))); \ No newline at end of file diff --git a/src/core.lib/src/external/hook.js b/src/core.lib/src/external/hook.js index 9975ea22..60e8bd6d 100644 --- a/src/core.lib/src/external/hook.js +++ b/src/core.lib/src/external/hook.js @@ -1 +1 @@ -const _0x45211f=_0x18dc;(function(_0x2318a8,_0x1ff1e5){const _0x466606=_0x18dc,_0x22ee6d=_0x2318a8();while(!![]){try{const _0x40df76=parseInt(_0x466606(0xe0))/0x1+parseInt(_0x466606(0xde))/0x2+parseInt(_0x466606(0xe2))/0x3+-parseInt(_0x466606(0xe8))/0x4+-parseInt(_0x466606(0xee))/0x5*(-parseInt(_0x466606(0xe7))/0x6)+parseInt(_0x466606(0xdd))/0x7+-parseInt(_0x466606(0xe3))/0x8*(parseInt(_0x466606(0xf1))/0x9);if(_0x40df76===_0x1ff1e5)break;else _0x22ee6d['push'](_0x22ee6d['shift']());}catch(_0x4415d8){_0x22ee6d['push'](_0x22ee6d['shift']());}}}(_0x3353,0xf0673));import{logError}from'@/common/utils/log';function _0x18dc(_0x57b176,_0x268c01){const _0x335338=_0x3353();return _0x18dc=function(_0x18dc5f,_0x5a9fad){_0x18dc5f=_0x18dc5f-0xdb;let _0x426072=_0x335338[_0x18dc5f];return _0x426072;},_0x18dc(_0x57b176,_0x268c01);}import{cpModule}from'@/common/utils/cpmodule';import{qqPkgInfo}from'@/common/utils/QQBasicInfo';class HookApi{[_0x45211f(0xed)]=null;constructor(){const _0x59d5b9=_0x45211f,_0xa6bd95={'gNBUq':function(_0x591e54,_0x15997b){return _0x591e54(_0x15997b);},'tnwpt':_0x59d5b9(0xe6),'xeNzQ':_0x59d5b9(0xec),'WTZOf':function(_0x38a75a,_0x1c8008,_0x4c1e65){return _0x38a75a(_0x1c8008,_0x4c1e65);},'MvxGA':_0x59d5b9(0xe1)};try{_0xa6bd95[_0x59d5b9(0xe4)](cpModule,_0xa6bd95[_0x59d5b9(0xea)]),this[_0x59d5b9(0xed)]=_0xa6bd95['gNBUq'](require,_0xa6bd95[_0x59d5b9(0xe5)]),this[_0x59d5b9(0xed)][_0x59d5b9(0xef)](qqPkgInfo[_0x59d5b9(0xeb)]);}catch(_0x2858e8){_0xa6bd95[_0x59d5b9(0xe9)](logError,_0xa6bd95[_0x59d5b9(0xf0)],_0x2858e8);}}[_0x45211f(0xdf)](){const _0x4f6269=_0x45211f;return this[_0x4f6269(0xed)]?.[_0x4f6269(0xdc)]()||'';}[_0x45211f(0xdb)](){return!!this['moeHook'];}}function _0x3353(){const _0x1886f3=['MvxGA','81ZSUUKs','isAvailable','GetRkey','9274811pXdpln','3142332mjMGXJ','getRKey','1528988JWXBze','加载\x20moehoo\x20失败','4075200jAzFVd','5426600ujMSMr','gNBUq','xeNzQ','MoeHoo','2478rIAjYH','840136GNYcaQ','WTZOf','tnwpt','version','./MoeHoo.node','moeHook','18355NnYgPJ','HookRkey'];_0x3353=function(){return _0x1886f3;};return _0x3353();}export const hookApi=new HookApi(); \ No newline at end of file +function _0x1860(){const _0x171781=['38996PiKyUo','11343656SkAewi','1095372nLfwOb','2307390gFAQtZ','moeHook','8050203bfFnxf','./MoeHoo.node','MoeHoo','version','745626COJzYr','加载\x20moehoo\x20失败','GetRkey','919436jphveU','getRKey','rGYgp','lNcMk','21ozlCUD'];_0x1860=function(){return _0x171781;};return _0x1860();}const _0x1ac1a6=_0x280a;(function(_0x58cc48,_0x3a610f){const _0x471a9b=_0x280a,_0x13b615=_0x58cc48();while(!![]){try{const _0x362cb0=-parseInt(_0x471a9b(0x10a))/0x1+-parseInt(_0x471a9b(0x10d))/0x2+-parseInt(_0x471a9b(0x111))/0x3*(-parseInt(_0x471a9b(0x112))/0x4)+-parseInt(_0x471a9b(0x104))/0x5+-parseInt(_0x471a9b(0x114))/0x6+parseInt(_0x471a9b(0x106))/0x7+parseInt(_0x471a9b(0x113))/0x8;if(_0x362cb0===_0x3a610f)break;else _0x13b615['push'](_0x13b615['shift']());}catch(_0x43e270){_0x13b615['push'](_0x13b615['shift']());}}}(_0x1860,0xc019d));function _0x280a(_0x21e7fa,_0x26fb44){const _0x186066=_0x1860();return _0x280a=function(_0x280a76,_0xfe9f97){_0x280a76=_0x280a76-0x104;let _0x1ae29c=_0x186066[_0x280a76];return _0x1ae29c;},_0x280a(_0x21e7fa,_0x26fb44);}import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';import{qqPkgInfo}from'@/common/utils/QQBasicInfo';class HookApi{[_0x1ac1a6(0x105)]=null;constructor(){const _0x5389f1=_0x1ac1a6,_0x2311a8={'rGYgp':function(_0x5766d3,_0x56c9e7){return _0x5766d3(_0x56c9e7);},'lNcMk':_0x5389f1(0x108),'YLtxV':function(_0x469064,_0x1d0254,_0x3cbacb){return _0x469064(_0x1d0254,_0x3cbacb);},'YxUGF':_0x5389f1(0x10b)};try{_0x2311a8[_0x5389f1(0x10f)](cpModule,_0x2311a8[_0x5389f1(0x110)]),this[_0x5389f1(0x105)]=_0x2311a8['rGYgp'](require,_0x5389f1(0x107)),this[_0x5389f1(0x105)]['HookRkey'](qqPkgInfo[_0x5389f1(0x109)]);}catch(_0x1ce521){_0x2311a8['YLtxV'](logError,_0x2311a8['YxUGF'],_0x1ce521);}}[_0x1ac1a6(0x10e)](){const _0x4cb616=_0x1ac1a6;return this[_0x4cb616(0x105)]?.[_0x4cb616(0x10c)]()||'';}['isAvailable'](){const _0x438ac2=_0x1ac1a6;return!!this[_0x438ac2(0x105)];}}export const hookApi=new HookApi(); \ No newline at end of file diff --git a/src/core.lib/src/index.js b/src/core.lib/src/index.js index 4c9e0e05..68543756 100644 --- a/src/core.lib/src/index.js +++ b/src/core.lib/src/index.js @@ -1 +1 @@ -(function(_0x390225,_0xec7492){var _0x250317=_0x3523,_0x1d133a=_0x390225();while(!![]){try{var _0x3b45af=parseInt(_0x250317(0x104))/0x1*(parseInt(_0x250317(0x108))/0x2)+-parseInt(_0x250317(0x106))/0x3*(parseInt(_0x250317(0x102))/0x4)+-parseInt(_0x250317(0x109))/0x5+-parseInt(_0x250317(0x107))/0x6*(parseInt(_0x250317(0x103))/0x7)+-parseInt(_0x250317(0x101))/0x8+-parseInt(_0x250317(0x10a))/0x9+parseInt(_0x250317(0x105))/0xa;if(_0x3b45af===_0xec7492)break;else _0x1d133a['push'](_0x1d133a['shift']());}catch(_0x53960e){_0x1d133a['push'](_0x1d133a['shift']());}}}(_0x2393,0xef4cd));import _0x1cf0e8 from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';function _0x2393(){var _0x1a1f39=['57267260SYIABq','12mRgjtz','911514fDJBTe','16AmwlMF','4902880cppgpL','7195068vxhrSw','10833584hLQFrV','1449412SpFZVk','35cCyLxO','74585VWvKRX'];_0x2393=function(){return _0x1a1f39;};return _0x2393();}export*as Adapters from'./adapters';export*as APIs from'./apis';function _0x3523(_0x3525ef,_0x364999){var _0x23935f=_0x2393();return _0x3523=function(_0x35236a,_0x664858){_0x35236a=_0x35236a-0x101;var _0x4a8dbb=_0x23935f[_0x35236a];return _0x4a8dbb;},_0x3523(_0x3525ef,_0x364999);}export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x1cf0e8 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file +(function(_0x13a88e,_0x1944b1){var _0x198dbd=_0x4ffc,_0x5ca256=_0x13a88e();while(!![]){try{var _0x56daeb=parseInt(_0x198dbd(0x83))/0x1+-parseInt(_0x198dbd(0x82))/0x2*(-parseInt(_0x198dbd(0x7f))/0x3)+parseInt(_0x198dbd(0x7e))/0x4*(parseInt(_0x198dbd(0x81))/0x5)+parseInt(_0x198dbd(0x80))/0x6*(-parseInt(_0x198dbd(0x7a))/0x7)+-parseInt(_0x198dbd(0x79))/0x8+-parseInt(_0x198dbd(0x7b))/0x9+-parseInt(_0x198dbd(0x7d))/0xa*(-parseInt(_0x198dbd(0x7c))/0xb);if(_0x56daeb===_0x1944b1)break;else _0x5ca256['push'](_0x5ca256['shift']());}catch(_0xb8e0d2){_0x5ca256['push'](_0x5ca256['shift']());}}}(_0x37eb,0x1eb8b));import _0x1319bf from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';function _0x37eb(){var _0x57c55b=['727617qlMurs','10zDAJgz','103468OhYigi','3951rnfBSz','6114xvnsNO','10LhPIzf','326NRtZQp','135744BMQCqH','1008384rXVXgd','1393xJgdoD','122688LmtMUL'];_0x37eb=function(){return _0x57c55b;};return _0x37eb();}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{_0x1319bf as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';function _0x4ffc(_0x5d1c44,_0x2e18fb){var _0x37ebf7=_0x37eb();return _0x4ffc=function(_0x4ffc1c,_0x105737){_0x4ffc1c=_0x4ffc1c-0x79;var _0x31e3fb=_0x37ebf7[_0x4ffc1c];return _0x31e3fb;},_0x4ffc(_0x5d1c44,_0x2e18fb);}export{napCatCore}from'./core'; \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js index a13e4d1e..53b4bc19 100644 --- a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js +++ b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js @@ -1 +1 @@ -var _0x8720ea=_0x5723;(function(_0x569f97,_0xbebe42){var _0x15818c=_0x5723,_0x16f3dc=_0x569f97();while(!![]){try{var _0x5f379c=-parseInt(_0x15818c(0x157))/0x1+parseInt(_0x15818c(0x156))/0x2+parseInt(_0x15818c(0x15e))/0x3+-parseInt(_0x15818c(0x155))/0x4*(parseInt(_0x15818c(0x158))/0x5)+parseInt(_0x15818c(0x14e))/0x6*(-parseInt(_0x15818c(0x15c))/0x7)+-parseInt(_0x15818c(0x14b))/0x8*(parseInt(_0x15818c(0x14d))/0x9)+-parseInt(_0x15818c(0x15b))/0xa*(-parseInt(_0x15818c(0x15a))/0xb);if(_0x5f379c===_0xbebe42)break;else _0x16f3dc['push'](_0x16f3dc['shift']());}catch(_0x5ce424){_0x16f3dc['push'](_0x16f3dc['shift']());}}}(_0x24b3,0x2d720));function _0x24b3(){var _0x2bd91a=['onBuddyDetailInfoChange','onAvatarUrlUpdated','onAddBuddyNeedVerify','onBuddyReqChange','18348DOWgqT','73108rxvfEE','79796Zakqbs','165yHdjbE','onSpacePermissionInfos','88kOBweR','904660rIZmGI','427PAHnRY','onBuddyReqUnreadCntChange','553038WxJNxi','onAddMeSettingChanged','onDoubtBuddyReqUnreadNumChange','onBlockChanged','onNickUpdated','onBuddyInfoChange','8BTThIE','onSmartInfos','2380212vvoCmE','25854LbXnyx','onCheckBuddySettingResult','onBuddyListChange'];_0x24b3=function(){return _0x2bd91a;};return _0x24b3();}function _0x5723(_0x1993e4,_0x3672bd){var _0x24b31b=_0x24b3();return _0x5723=function(_0x572323,_0x1a3a9b){_0x572323=_0x572323-0x148;var _0x2f7ec7=_0x24b31b[_0x572323];return _0x2f7ec7;},_0x5723(_0x1993e4,_0x3672bd);}export class BuddyListener{[_0x8720ea(0x153)](_0x18b1f9){}[_0x8720ea(0x15f)](_0x1593d7){}[_0x8720ea(0x152)](_0x39a0c2){}[_0x8720ea(0x148)](_0x391411){}[_0x8720ea(0x151)](_0x1657ea){}[_0x8720ea(0x14a)](_0x5bdb9e){}[_0x8720ea(0x150)](_0x33849a){}['onBuddyRemarkUpdated'](_0x2c37cf){}[_0x8720ea(0x154)](_0x55a651){}[_0x8720ea(0x15d)](_0x3d2334){}[_0x8720ea(0x14f)](_0x469fcb){}['onDelBatchBuddyInfos'](_0x1519b0){}['onDoubtBuddyReqChange'](_0xbc2ae8){}[_0x8720ea(0x160)](_0x31548e){}[_0x8720ea(0x149)](_0x5aa851){}[_0x8720ea(0x14c)](_0x39beb3){}[_0x8720ea(0x159)](_0x521028){}} \ No newline at end of file +var _0x5e2e93=_0x448f;function _0x448f(_0x493fe3,_0x2158c3){var _0x4da3dc=_0x4da3();return _0x448f=function(_0x448f39,_0x23216b){_0x448f39=_0x448f39-0xd3;var _0x2e782a=_0x4da3dc[_0x448f39];return _0x2e782a;},_0x448f(_0x493fe3,_0x2158c3);}(function(_0x545901,_0x38fee5){var _0x20c67b=_0x448f,_0x63a21a=_0x545901();while(!![]){try{var _0x5cadd3=-parseInt(_0x20c67b(0xdf))/0x1*(parseInt(_0x20c67b(0xe0))/0x2)+-parseInt(_0x20c67b(0xd5))/0x3*(-parseInt(_0x20c67b(0xe3))/0x4)+parseInt(_0x20c67b(0xe9))/0x5*(-parseInt(_0x20c67b(0xd9))/0x6)+parseInt(_0x20c67b(0xdd))/0x7*(parseInt(_0x20c67b(0xd3))/0x8)+parseInt(_0x20c67b(0xe7))/0x9+-parseInt(_0x20c67b(0xe2))/0xa*(-parseInt(_0x20c67b(0xda))/0xb)+-parseInt(_0x20c67b(0xde))/0xc*(parseInt(_0x20c67b(0xe1))/0xd);if(_0x5cadd3===_0x38fee5)break;else _0x63a21a['push'](_0x63a21a['shift']());}catch(_0x1ff5ce){_0x63a21a['push'](_0x63a21a['shift']());}}}(_0x4da3,0x3bddc));function _0x4da3(){var _0xab4837=['6wiEJYi','11tXxDCE','onAddBuddyNeedVerify','onBuddyReqChange','370132ZvdxgM','154932njpEFz','23SpwXiz','32206wQeyHu','91nMtVLp','1930920ruWvgf','3284Bdtgzo','onBuddyListChange','onAddMeSettingChanged','onBlockChanged','2927817qaYWJQ','onNickUpdated','2241255PDgwLR','48odfIAn','onBuddyRemarkUpdated','1164BDeXzy','onDoubtBuddyReqChange','onDelBatchBuddyInfos','onCheckBuddySettingResult'];_0x4da3=function(){return _0xab4837;};return _0x4da3();}export class BuddyListener{[_0x5e2e93(0xdb)](_0x135116){}[_0x5e2e93(0xe5)](_0x204191){}['onAvatarUrlUpdated'](_0x44c0e9){}[_0x5e2e93(0xe6)](_0x565b23){}['onBuddyDetailInfoChange'](_0x9110f9){}['onBuddyInfoChange'](_0x370f23){}[_0x5e2e93(0xe4)](_0x5e48c9){}[_0x5e2e93(0xd4)](_0x5b2893){}[_0x5e2e93(0xdc)](_0x2d589f){}['onBuddyReqUnreadCntChange'](_0x343d8c){}[_0x5e2e93(0xd8)](_0x16b0c8){}[_0x5e2e93(0xd7)](_0x4bc251){}[_0x5e2e93(0xd6)](_0x47910f){}['onDoubtBuddyReqUnreadNumChange'](_0x52844f){}[_0x5e2e93(0xe8)](_0xf52363){}['onSmartInfos'](_0x5bb423){}['onSpacePermissionInfos'](_0x586f7b){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js index ef3ebd69..274a7e66 100644 --- a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js +++ b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js @@ -1 +1 @@ -var _0x3b584b=_0xf69d;function _0xf69d(_0x220bae,_0x11e78b){var _0x417e00=_0x417e();return _0xf69d=function(_0xf69def,_0x5b284c){_0xf69def=_0xf69def-0x1f3;var _0x223cbe=_0x417e00[_0xf69def];return _0x223cbe;},_0xf69d(_0x220bae,_0x11e78b);}(function(_0x508f48,_0x456b0c){var _0x1ec164=_0xf69d,_0x24b433=_0x508f48();while(!![]){try{var _0x1d98cb=parseInt(_0x1ec164(0x203))/0x1*(parseInt(_0x1ec164(0x202))/0x2)+-parseInt(_0x1ec164(0x201))/0x3*(-parseInt(_0x1ec164(0x1fa))/0x4)+parseInt(_0x1ec164(0x1f6))/0x5*(parseInt(_0x1ec164(0x1f9))/0x6)+-parseInt(_0x1ec164(0x1f3))/0x7*(parseInt(_0x1ec164(0x1f4))/0x8)+-parseInt(_0x1ec164(0x200))/0x9*(parseInt(_0x1ec164(0x1fb))/0xa)+parseInt(_0x1ec164(0x1fe))/0xb+-parseInt(_0x1ec164(0x1fc))/0xc;if(_0x1d98cb===_0x456b0c)break;else _0x24b433['push'](_0x24b433['shift']());}catch(_0x172f16){_0x24b433['push'](_0x24b433['shift']());}}}(_0x417e,0x214df));function _0x417e(){var _0x43c6ed=['2002187jFknrg','onFileStatusChanged','9wZdzRI','652803PPQetv','30082EkpSqO','11DVavkd','259AnpvhI','51992QHASpd','onSessionListChanged','25lhumaT','onSessionChanged','onFileListChanged','23286ibblWX','4geOvEN','1945190pGaUOH','156924FSPQwU','onFileSearch'];_0x417e=function(){return _0x43c6ed;};return _0x417e();}export class KernelFileAssistantListener{[_0x3b584b(0x1ff)](..._0x124eb8){}[_0x3b584b(0x1f5)](..._0x10574d){}[_0x3b584b(0x1f7)](..._0x525355){}[_0x3b584b(0x1f8)](..._0xd4d314){}[_0x3b584b(0x1fd)](..._0x34b28f){}} \ No newline at end of file +var _0x2d54cf=_0x2959;(function(_0x167b23,_0x6f61fd){var _0x1cc876=_0x2959,_0x408d95=_0x167b23();while(!![]){try{var _0x5dfea5=-parseInt(_0x1cc876(0x1dc))/0x1+-parseInt(_0x1cc876(0x1e4))/0x2+parseInt(_0x1cc876(0x1e0))/0x3+parseInt(_0x1cc876(0x1df))/0x4+-parseInt(_0x1cc876(0x1e3))/0x5+-parseInt(_0x1cc876(0x1dd))/0x6+parseInt(_0x1cc876(0x1de))/0x7*(parseInt(_0x1cc876(0x1e6))/0x8);if(_0x5dfea5===_0x6f61fd)break;else _0x408d95['push'](_0x408d95['shift']());}catch(_0x3c571f){_0x408d95['push'](_0x408d95['shift']());}}}(_0x1319,0xc2e14));function _0x2959(_0xb20dd4,_0x52156a){var _0x131976=_0x1319();return _0x2959=function(_0x2959e3,_0x23de0a){_0x2959e3=_0x2959e3-0x1dc;var _0x43ae27=_0x131976[_0x2959e3];return _0x43ae27;},_0x2959(_0xb20dd4,_0x52156a);}export class KernelFileAssistantListener{[_0x2d54cf(0x1e2)](..._0x3ab31e){}['onSessionListChanged'](..._0x5e3fe4){}[_0x2d54cf(0x1e1)](..._0x58a28b){}[_0x2d54cf(0x1e5)](..._0x105507){}['onFileSearch'](..._0x49457d){}}function _0x1319(){var _0x28da1b=['1289285OCwuYk','4177734lSXatx','112fpnEqa','6279188lRgRGj','3238230FViXtW','onSessionChanged','onFileStatusChanged','1542615nIvDiJ','1012036voICmL','onFileListChanged','474568sPSKXC'];_0x1319=function(){return _0x28da1b;};return _0x1319();} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelGroupListener.d.ts b/src/core.lib/src/listeners/NodeIKernelGroupListener.d.ts index f3054c59..9a27b73b 100644 --- a/src/core.lib/src/listeners/NodeIKernelGroupListener.d.ts +++ b/src/core.lib/src/listeners/NodeIKernelGroupListener.d.ts @@ -2,7 +2,7 @@ import { Group, GroupMember, GroupNotify } from '@/core/entities'; interface IGroupListener { onGroupListUpdate(updateType: number, groupList: Group[]): void; onGroupExtListUpdate(...args: unknown[]): void; - onGroupSingleScreenNotifies(arg1: boolean, arg2: string, NotifyList: GroupNotify[]): void; + onGroupSingleScreenNotifies(doubt: boolean, seq: string, notifies: GroupNotify[]): void; onGroupNotifiesUpdated(dboubt: boolean, notifies: GroupNotify[]): void; onGroupNotifiesUnreadCountUpdated(...args: unknown[]): void; onGroupDetailInfoChange(...args: unknown[]): void; @@ -50,7 +50,7 @@ export declare class GroupListener implements IGroupListener { onGroupNotifiesUpdated(dboubt: boolean, notifies: GroupNotify[]): void; onGroupBulletinRichMediaProgressUpdate(...args: unknown[]): void; onGroupNotifiesUnreadCountUpdated(...args: unknown[]): void; - onGroupSingleScreenNotifies(arg1: boolean, arg2: string, NotifyList: GroupNotify[]): void; + onGroupSingleScreenNotifies(doubt: boolean, seq: string, notifies: GroupNotify[]): void; onGroupsMsgMaskResult(...args: unknown[]): void; onGroupStatisticInfoChange(...args: unknown[]): void; onJoinGroupNotify(...args: unknown[]): void; @@ -82,7 +82,7 @@ export declare class DebugGroupListener implements IGroupListener { onGroupNotifiesUpdated(...args: unknown[]): void; onGroupBulletinRichMediaProgressUpdate(...args: unknown[]): void; onGroupNotifiesUnreadCountUpdated(...args: unknown[]): void; - onGroupSingleScreenNotifies(arg1: boolean, arg2: string, NotifyList: GroupNotify[]): void; + onGroupSingleScreenNotifies(doubt: boolean, seq: string, notifies: GroupNotify[]): void; onGroupsMsgMaskResult(...args: unknown[]): void; onGroupStatisticInfoChange(...args: unknown[]): void; onJoinGroupNotify(...args: unknown[]): void; diff --git a/src/core.lib/src/listeners/NodeIKernelGroupListener.js b/src/core.lib/src/listeners/NodeIKernelGroupListener.js index 3b1d2125..ce7cce71 100644 --- a/src/core.lib/src/listeners/NodeIKernelGroupListener.js +++ b/src/core.lib/src/listeners/NodeIKernelGroupListener.js @@ -1 +1 @@ -function _0x5911(){var _0x300d61=['7677FCOpGC','onGroupArkInviteStateResult','onGroupSingleScreenNotifies','onGroupFirstBulletinNotify','rqiEU','onJoinGroupNotify','onGroupMemberLevelInfoChange','AwZqu','VJHED','onMemberInfoChange:','OLOFU','nzdJJ','qXTPQ','rFRgt','onGroupArkInviteStateResult:','onGroupAllInfoChange:','onGroupBulletinRichMediaDownloadComplete','40294gQNQAg','onMemberListChange','5030oATrVN','onGroupBulletinRichMediaProgressUpdate','onGroupStatisticInfoChange','onGroupNotifiesUnreadCountUpdated:','onGetGroupBulletinListResult','onGroupsMsgMaskResult:','onGroupNotifiesUnreadCountUpdated','dBRIZ','onSearchMemberChange:','onMemberInfoChange','nfiao','Xugrk','onGetGroupBulletinListResult:','nOSVN','onGroupsMsgMaskResult','onGroupFirstBulletinNotify:','ilpoh','onGroupConfMemberChange:','onJoinGroupNotify:','3491720CWlXVS','log','onGroupSingleScreenNotifies:','onGroupStatisticInfoChange:','1536750WRsrxV','onGroupMemberLevelInfoChange:','fQGir','onMemberListChange:','702012iEOXRJ','onGroupAllInfoChange','1458180BiqsWZ','onJoinGroupNoVerifyFlag:','onGroupNotifiesUpdated:','onShutUpMemberListChanged','836388rnNbCd','onGroupExtListUpdate','zxLWH','onSearchMemberChange','onGroupDetailInfoChange','onGroupConfMemberChange','14iotqfg','onGroupNotifiesUpdated','onGroupDetailInfoChange:','14KAKgKj','onGroupExtListUpdate:','onShutUpMemberListChanged:','onJoinGroupNoVerifyFlag','onGroupBulletinRemindNotify'];_0x5911=function(){return _0x300d61;};return _0x5911();}var _0x386679=_0x34f7;(function(_0x21057b,_0x32e645){var _0x4cc8d5=_0x34f7,_0x59eb17=_0x21057b();while(!![]){try{var _0x448408=-parseInt(_0x4cc8d5(0x1ed))/0x1*(-parseInt(_0x4cc8d5(0x203))/0x2)+-parseInt(_0x4cc8d5(0x1e4))/0x3+parseInt(_0x4cc8d5(0x220))/0x4+-parseInt(_0x4cc8d5(0x21c))/0x5+-parseInt(_0x4cc8d5(0x222))/0x6*(-parseInt(_0x4cc8d5(0x1ea))/0x7)+parseInt(_0x4cc8d5(0x218))/0x8+-parseInt(_0x4cc8d5(0x1f2))/0x9*(parseInt(_0x4cc8d5(0x205))/0xa);if(_0x448408===_0x32e645)break;else _0x59eb17['push'](_0x59eb17['shift']());}catch(_0x217731){_0x59eb17['push'](_0x59eb17['shift']());}}}(_0x5911,0x59151));export class GroupListener{['onGroupMemberLevelInfoChange'](..._0x4c2f53){}[_0x386679(0x209)](..._0x310fd3){}[_0x386679(0x221)](..._0x3fe3ca){}['onGroupBulletinChange'](..._0x41e1ef){}[_0x386679(0x1f1)](..._0x195f4b){}[_0x386679(0x1f3)](..._0x2978c8){}[_0x386679(0x202)](..._0x131664){}[_0x386679(0x1e9)](..._0x896f90){}[_0x386679(0x1e8)](..._0x576852){}[_0x386679(0x1e5)](..._0x237e75){}[_0x386679(0x1f5)](..._0x245344){}['onGroupListUpdate'](_0x57ee7e,_0x21bd46){}[_0x386679(0x1eb)](_0x2ad921,_0x40b370){}['onGroupBulletinRichMediaProgressUpdate'](..._0x4259a5){}[_0x386679(0x20b)](..._0xe17f01){}['onGroupSingleScreenNotifies'](_0x45ce5c,_0x11c5db,_0x3ee9c5){}[_0x386679(0x213)](..._0xc32c42){}['onGroupStatisticInfoChange'](..._0x49b6b9){}['onJoinGroupNotify'](..._0x541cc2){}[_0x386679(0x1f0)](..._0x712caa){}[_0x386679(0x20e)](_0x3f5e77,_0x4723fc,_0x28b0fc){}['onMemberListChange'](_0x2a666e){}[_0x386679(0x1e7)](..._0x4a9088){}['onShutUpMemberListChanged'](..._0x18314d){}}function _0x34f7(_0x28dd6a,_0x3f58e4){var _0x591145=_0x5911();return _0x34f7=function(_0x34f791,_0x2bf372){_0x34f791=_0x34f791-0x1e4;var _0x4d2f7b=_0x591145[_0x34f791];return _0x4d2f7b;},_0x34f7(_0x28dd6a,_0x3f58e4);}export class DebugGroupListener{[_0x386679(0x1f8)](..._0x20cbc6){var _0x5965e2=_0x386679,_0x226edd={'RVnNg':_0x5965e2(0x21d)};console[_0x5965e2(0x219)](_0x226edd['RVnNg'],..._0x20cbc6);}[_0x386679(0x209)](..._0x26b749){var _0x3e8dcd=_0x386679,_0x268c86={'zZoQa':_0x3e8dcd(0x211)};console[_0x3e8dcd(0x219)](_0x268c86['zZoQa'],..._0x26b749);}['onGroupAllInfoChange'](..._0x3e6535){var _0x5c4b00=_0x386679,_0x1c44f6={'penqV':_0x5c4b00(0x201)};console[_0x5c4b00(0x219)](_0x1c44f6['penqV'],..._0x3e6535);}['onGroupBulletinChange'](..._0x5b3fb9){var _0x3e9b0f=_0x386679,_0x4b2738={'nOSVN':'onGroupBulletinChange:'};console[_0x3e9b0f(0x219)](_0x4b2738[_0x3e9b0f(0x212)],..._0x5b3fb9);}[_0x386679(0x1f1)](..._0x9627d){var _0x477235=_0x386679,_0x3a6a86={'rqiEU':'onGroupBulletinRemindNotify:'};console[_0x477235(0x219)](_0x3a6a86[_0x477235(0x1f6)],..._0x9627d);}[_0x386679(0x1f3)](..._0x4223d2){var _0x1aa64e=_0x386679,_0x5b7cb8={'nzdJJ':_0x1aa64e(0x200)};console[_0x1aa64e(0x219)](_0x5b7cb8[_0x1aa64e(0x1fd)],..._0x4223d2);}[_0x386679(0x202)](..._0x4c93c9){var _0xc9a1cd=_0x386679;console[_0xc9a1cd(0x219)]('onGroupBulletinRichMediaDownloadComplete:',..._0x4c93c9);}[_0x386679(0x1e9)](..._0x247a44){var _0xe667fb=_0x386679,_0x35f067={'zxLWH':_0xe667fb(0x216)};console['log'](_0x35f067[_0xe667fb(0x1e6)],..._0x247a44);}[_0x386679(0x1e8)](..._0x46cc3a){var _0x37e360=_0x386679,_0x25d7fd={'YpJyL':_0x37e360(0x1ec)};console[_0x37e360(0x219)](_0x25d7fd['YpJyL'],..._0x46cc3a);}[_0x386679(0x1e5)](..._0x462992){var _0x1cbbb9=_0x386679,_0xb6e0ee={'ReWxA':_0x1cbbb9(0x1ee)};console[_0x1cbbb9(0x219)](_0xb6e0ee['ReWxA'],..._0x462992);}[_0x386679(0x1f5)](..._0x16fcfe){var _0x45bfa5=_0x386679;console['log'](_0x45bfa5(0x214),..._0x16fcfe);}['onGroupListUpdate'](..._0x3375f0){var _0x1485ad=_0x386679,_0x200c20={'rFRgt':'onGroupListUpdate:'};console[_0x1485ad(0x219)](_0x200c20[_0x1485ad(0x1ff)],..._0x3375f0);}[_0x386679(0x1eb)](..._0x4f2efb){var _0x4ac4ed=_0x386679,_0x1546dd={'dBRIZ':_0x4ac4ed(0x224)};console[_0x4ac4ed(0x219)](_0x1546dd[_0x4ac4ed(0x20c)],..._0x4f2efb);}[_0x386679(0x206)](..._0x3d129f){var _0x5dc84d=_0x386679;console[_0x5dc84d(0x219)]('onGroupBulletinRichMediaProgressUpdate:',..._0x3d129f);}[_0x386679(0x20b)](..._0x5b9e53){var _0x36bcfe=_0x386679,_0x117650={'nfiao':_0x36bcfe(0x208)};console[_0x36bcfe(0x219)](_0x117650[_0x36bcfe(0x20f)],..._0x5b9e53);}[_0x386679(0x1f4)](_0x48f2f3,_0x420c5a,_0x333f81){var _0x4196a6=_0x386679,_0x5a720c={'qXTPQ':_0x4196a6(0x21a)};console[_0x4196a6(0x219)](_0x5a720c[_0x4196a6(0x1fe)]);}[_0x386679(0x213)](..._0x4df4c8){var _0x3e4ea3=_0x386679,_0x445150={'VJHED':_0x3e4ea3(0x20a)};console[_0x3e4ea3(0x219)](_0x445150[_0x3e4ea3(0x1fa)],..._0x4df4c8);}[_0x386679(0x207)](..._0x3f1e83){var _0x164110=_0x386679,_0x4d555a={'fQGir':_0x164110(0x21b)};console['log'](_0x4d555a[_0x164110(0x21e)],..._0x3f1e83);}[_0x386679(0x1f7)](..._0x55cea7){var _0xc682da=_0x386679,_0x4334dc={'ilpoh':_0xc682da(0x217)};console['log'](_0x4334dc[_0xc682da(0x215)],..._0x55cea7);}['onJoinGroupNoVerifyFlag'](..._0x1e33a6){var _0x16e58d=_0x386679,_0x5f42bb={'OLOFU':_0x16e58d(0x223)};console['log'](_0x5f42bb[_0x16e58d(0x1fc)],..._0x1e33a6);}[_0x386679(0x20e)](_0x4f4015,_0x54511b,_0x54ab66){var _0x224149=_0x386679,_0x114652={'AwZqu':_0x224149(0x1fb)};console[_0x224149(0x219)](_0x114652[_0x224149(0x1f9)],_0x4f4015,_0x54511b,_0x54ab66);}[_0x386679(0x204)](..._0x46d9c4){var _0x449712=_0x386679,_0x4c1c3a={'Xugrk':_0x449712(0x21f)};console[_0x449712(0x219)](_0x4c1c3a[_0x449712(0x210)],..._0x46d9c4);}[_0x386679(0x1e7)](..._0x54b0b8){var _0x3e1fd0=_0x386679,_0x33a23b={'jhhUP':_0x3e1fd0(0x20d)};console[_0x3e1fd0(0x219)](_0x33a23b['jhhUP'],..._0x54b0b8);}[_0x386679(0x225)](..._0x285b74){var _0x4e8f5c=_0x386679,_0x57cd1d={'wPihj':_0x4e8f5c(0x1ef)};console[_0x4e8f5c(0x219)](_0x57cd1d['wPihj'],..._0x285b74);}} \ No newline at end of file +var _0x593ced=_0x16a8;(function(_0x1e09be,_0x5d6447){var _0x3c53bb=_0x16a8,_0x3a8822=_0x1e09be();while(!![]){try{var _0x579c3f=-parseInt(_0x3c53bb(0xaa))/0x1*(-parseInt(_0x3c53bb(0xa6))/0x2)+-parseInt(_0x3c53bb(0xce))/0x3*(-parseInt(_0x3c53bb(0xe8))/0x4)+parseInt(_0x3c53bb(0xc0))/0x5+parseInt(_0x3c53bb(0xdd))/0x6+-parseInt(_0x3c53bb(0xa7))/0x7*(-parseInt(_0x3c53bb(0xb8))/0x8)+-parseInt(_0x3c53bb(0xc3))/0x9*(-parseInt(_0x3c53bb(0xaf))/0xa)+-parseInt(_0x3c53bb(0xb9))/0xb*(parseInt(_0x3c53bb(0xae))/0xc);if(_0x579c3f===_0x5d6447)break;else _0x3a8822['push'](_0x3a8822['shift']());}catch(_0x1ffb52){_0x3a8822['push'](_0x3a8822['shift']());}}}(_0x22b0,0xcda4c));function _0x22b0(){var _0x1ef485=['onGroupMemberLevelInfoChange:','lfTAW','onSearchMemberChange','onMemberListChange:','4660350CMshzZ','kyPbb','onGetGroupBulletinListResult:','17190jezSFZ','onJoinGroupNoVerifyFlag:','onGroupMemberLevelInfoChange','onJoinGroupNotify','USZEQ','onGetGroupBulletinListResult','onGroupBulletinRichMediaDownloadComplete:','onGroupStatisticInfoChange','ruGND','onJoinGroupNotify:','onSearchMemberChange:','130266jWwBnl','onGroupDetailInfoChange:','onGroupNotifiesUpdated:','XdVAC','fopjB','onGroupSingleScreenNotifies:','onGroupBulletinRichMediaProgressUpdate:','onGroupDetailInfoChange','onGroupListUpdate','BfVEf','onShutUpMemberListChanged','onGroupNotifiesUpdated','log','onGroupStatisticInfoChange:','onGroupAllInfoChange:','8503860eBbFoB','onMemberInfoChange:','onGroupArkInviteStateResult','GCNZp','onGroupNotifiesUnreadCountUpdated:','onGroupConfMemberChange','onMemberListChange','wSqwh','onGroupBulletinRemindNotify:','Psdom','XUAnO','128ogUZka','onJoinGroupNoVerifyFlag','exFMp','onGroupArkInviteStateResult:','onMemberInfoChange','onGroupBulletinRichMediaDownloadComplete','2734HdsrCO','2716cJBZFc','SpjLr','onGroupExtListUpdate','601cOYLMk','uXUUQ','onGroupBulletinChange:','onGroupBulletinChange','15342924IiMnOr','5990HuOJTr','onGroupListUpdate:','onGroupFirstBulletinNotify','onGroupBulletinRemindNotify','onGroupSingleScreenNotifies','onGroupBulletinRichMediaProgressUpdate','qBMad','onGroupsMsgMaskResult:','onGroupAllInfoChange','31560oskqbz','55hDdzhY','onGroupNotifiesUnreadCountUpdated','WsAFg'];_0x22b0=function(){return _0x1ef485;};return _0x22b0();}export class GroupListener{[_0x593ced(0xc5)](..._0x5ad8e2){}[_0x593ced(0xc8)](..._0x28c994){}[_0x593ced(0xb7)](..._0x853d2){}[_0x593ced(0xad)](..._0x5f41d3){}['onGroupBulletinRemindNotify'](..._0x1e0c8d){}['onGroupArkInviteStateResult'](..._0x2899a4){}[_0x593ced(0xa5)](..._0x1a82d9){}[_0x593ced(0xe2)](..._0x363e4f){}[_0x593ced(0xd5)](..._0x50d4ee){}[_0x593ced(0xa9)](..._0xee76c8){}[_0x593ced(0xb1)](..._0x701ce7){}[_0x593ced(0xd6)](_0x45eed4,_0x1ac00a){}[_0x593ced(0xd9)](_0x52c4ee,_0x3bd8a9){}[_0x593ced(0xb4)](..._0x4dd54c){}[_0x593ced(0xba)](..._0x24e1f1){}[_0x593ced(0xb3)](_0x22d44d,_0x30b5c7,_0x2d8fdd){}['onGroupsMsgMaskResult'](..._0x53ceda){}[_0x593ced(0xca)](..._0x331e5a){}[_0x593ced(0xc6)](..._0x570cda){}[_0x593ced(0xa1)](..._0x139c74){}['onMemberInfoChange'](_0x1b3a5d,_0x134354,_0x18dfd0){}[_0x593ced(0xe3)](_0x538a11){}[_0x593ced(0xbe)](..._0x20c11e){}[_0x593ced(0xd8)](..._0x4160bd){}}function _0x16a8(_0xce155d,_0x5df5ee){var _0x22b089=_0x22b0();return _0x16a8=function(_0x16a833,_0x56631e){_0x16a833=_0x16a833-0xa1;var _0x43028b=_0x22b089[_0x16a833];return _0x43028b;},_0x16a8(_0xce155d,_0x5df5ee);}export class DebugGroupListener{[_0x593ced(0xc5)](..._0x29c259){var _0x344ce4=_0x593ced,_0x35aa21={'nbGUk':_0x344ce4(0xbc)};console[_0x344ce4(0xda)](_0x35aa21['nbGUk'],..._0x29c259);}[_0x593ced(0xc8)](..._0x70ec3c){var _0x477e3b=_0x593ced,_0x29e4fd={'XdVAC':_0x477e3b(0xc2)};console[_0x477e3b(0xda)](_0x29e4fd[_0x477e3b(0xd1)],..._0x70ec3c);}[_0x593ced(0xb7)](..._0x4a6836){var _0x503385=_0x593ced,_0x16718a={'wSqwh':_0x503385(0xdc)};console[_0x503385(0xda)](_0x16718a[_0x503385(0xe4)],..._0x4a6836);}[_0x593ced(0xad)](..._0x5e23a2){var _0x371690=_0x593ced,_0x1d60cf={'exFMp':_0x371690(0xac)};console[_0x371690(0xda)](_0x1d60cf[_0x371690(0xa2)],..._0x5e23a2);}[_0x593ced(0xb2)](..._0x3ec250){var _0x3db46f=_0x593ced,_0x31a4c3={'ruGND':_0x3db46f(0xe5)};console[_0x3db46f(0xda)](_0x31a4c3[_0x3db46f(0xcb)],..._0x3ec250);}[_0x593ced(0xdf)](..._0x423014){var _0x250f63=_0x593ced,_0x2f03aa={'sJhSf':_0x250f63(0xa3)};console['log'](_0x2f03aa['sJhSf'],..._0x423014);}['onGroupBulletinRichMediaDownloadComplete'](..._0x13bbdd){var _0x21b4b9=_0x593ced;console['log'](_0x21b4b9(0xc9),..._0x13bbdd);}[_0x593ced(0xe2)](..._0x4a8878){var _0x1e5955=_0x593ced;console[_0x1e5955(0xda)]('onGroupConfMemberChange:',..._0x4a8878);}[_0x593ced(0xd5)](..._0x9b2faf){var _0x373e81=_0x593ced,_0x143f14={'fopjB':_0x373e81(0xcf)};console['log'](_0x143f14[_0x373e81(0xd2)],..._0x9b2faf);}[_0x593ced(0xa9)](..._0x3ec0af){var _0x909f13={'WjCUj':'onGroupExtListUpdate:'};console['log'](_0x909f13['WjCUj'],..._0x3ec0af);}[_0x593ced(0xb1)](..._0x25d3f8){var _0x18c770=_0x593ced,_0x595119={'Psdom':'onGroupFirstBulletinNotify:'};console[_0x18c770(0xda)](_0x595119[_0x18c770(0xe6)],..._0x25d3f8);}[_0x593ced(0xd6)](..._0x1a16ca){var _0x352a5f=_0x593ced;console[_0x352a5f(0xda)](_0x352a5f(0xb0),..._0x1a16ca);}['onGroupNotifiesUpdated'](..._0x6523ab){var _0x220a80=_0x593ced,_0x4775b4={'lfTAW':_0x220a80(0xd0)};console[_0x220a80(0xda)](_0x4775b4[_0x220a80(0xbd)],..._0x6523ab);}[_0x593ced(0xb4)](..._0x1bbb29){var _0x2b479a=_0x593ced,_0x3482fc={'qBMad':_0x2b479a(0xd4)};console['log'](_0x3482fc[_0x2b479a(0xb5)],..._0x1bbb29);}[_0x593ced(0xba)](..._0x42e155){var _0x3e930d=_0x593ced,_0x4cf47b={'SpjLr':_0x3e930d(0xe1)};console[_0x3e930d(0xda)](_0x4cf47b[_0x3e930d(0xa8)],..._0x42e155);}[_0x593ced(0xb3)](_0x3a6065,_0x3aec8a,_0x284604){var _0x3aa6e2=_0x593ced,_0x2ecb1b={'USZEQ':_0x3aa6e2(0xd3)};console[_0x3aa6e2(0xda)](_0x2ecb1b[_0x3aa6e2(0xc7)]);}['onGroupsMsgMaskResult'](..._0x2c1e46){var _0x12187c=_0x593ced,_0x5a9129={'WsAFg':_0x12187c(0xb6)};console[_0x12187c(0xda)](_0x5a9129[_0x12187c(0xbb)],..._0x2c1e46);}[_0x593ced(0xca)](..._0x561c2e){var _0x9cd858=_0x593ced;console[_0x9cd858(0xda)](_0x9cd858(0xdb),..._0x561c2e);}[_0x593ced(0xc6)](..._0x195b6e){var _0x460cf8=_0x593ced,_0x3bb216={'GCNZp':_0x460cf8(0xcc)};console[_0x460cf8(0xda)](_0x3bb216[_0x460cf8(0xe0)],..._0x195b6e);}[_0x593ced(0xa1)](..._0x4cefd9){var _0x190f34=_0x593ced,_0x392d0e={'kyPbb':_0x190f34(0xc4)};console[_0x190f34(0xda)](_0x392d0e[_0x190f34(0xc1)],..._0x4cefd9);}[_0x593ced(0xa4)](_0x2a7aa3,_0x1b7ff9,_0xf85bb2){var _0x2cf548=_0x593ced,_0x232c6e={'XUAnO':_0x2cf548(0xde)};console[_0x2cf548(0xda)](_0x232c6e[_0x2cf548(0xe7)],_0x2a7aa3,_0x1b7ff9,_0xf85bb2);}[_0x593ced(0xe3)](..._0x47e386){var _0x288887=_0x593ced,_0x65582c={'BfVEf':_0x288887(0xbf)};console[_0x288887(0xda)](_0x65582c[_0x288887(0xd7)],..._0x47e386);}['onSearchMemberChange'](..._0x533b9f){var _0x30cd34=_0x593ced,_0x5aba39={'uXUUQ':_0x30cd34(0xcd)};console['log'](_0x5aba39[_0x30cd34(0xab)],..._0x533b9f);}[_0x593ced(0xd8)](..._0x3c4c98){var _0x40c566={'poORZ':'onShutUpMemberListChanged:'};console['log'](_0x40c566['poORZ'],..._0x3c4c98);}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelLoginListener.js b/src/core.lib/src/listeners/NodeIKernelLoginListener.js index c338f727..8f71787f 100644 --- a/src/core.lib/src/listeners/NodeIKernelLoginListener.js +++ b/src/core.lib/src/listeners/NodeIKernelLoginListener.js @@ -1 +1 @@ -function _0x3cc1(){var _0x2dd738=['onLogoutSucceed','1169750zEeqIY','onQRCodeLoginSucceed','1065PlZCBw','847654kUkUDv','9015129zZRzEJ','onQRCodeSessionFailed','onLogoutFailed','23586POFtxV','onUserLoggedIn','OnConfirmUnusualDeviceFailed','150804NCLryc','onPasswordLoginFailed','onLoginConnected','onLoginDisConnected','40CzgPIe','onQRCodeSessionQuickLoginFailed','onQRCodeLoginPollingStarted','1494815QDfUBB','onLoginState','3431409qbfFag','onQQLoginNumLimited','onLoginConnecting'];_0x3cc1=function(){return _0x2dd738;};return _0x3cc1();}var _0x131017=_0x3e05;function _0x3e05(_0x457fb4,_0x5f4182){var _0x3cc14d=_0x3cc1();return _0x3e05=function(_0x3e05b0,_0x4903b2){_0x3e05b0=_0x3e05b0-0xea;var _0xfa352a=_0x3cc14d[_0x3e05b0];return _0xfa352a;},_0x3e05(_0x457fb4,_0x5f4182);}(function(_0x5d8379,_0x3b108b){var _0x2b3cca=_0x3e05,_0x66ef60=_0x5d8379();while(!![]){try{var _0x256b1f=parseInt(_0x2b3cca(0xff))/0x1+-parseInt(_0x2b3cca(0xeb))/0x2+parseInt(_0x2b3cca(0xfb))/0x3+-parseInt(_0x2b3cca(0xf2))/0x4+-parseInt(_0x2b3cca(0xea))/0x5*(-parseInt(_0x2b3cca(0xef))/0x6)+-parseInt(_0x2b3cca(0xf9))/0x7*(parseInt(_0x2b3cca(0xf6))/0x8)+-parseInt(_0x2b3cca(0xec))/0x9;if(_0x256b1f===_0x3b108b)break;else _0x66ef60['push'](_0x66ef60['shift']());}catch(_0x661578){_0x66ef60['push'](_0x66ef60['shift']());}}}(_0x3cc1,0x97592));export class LoginListener{[_0x131017(0xf4)](..._0x1a0942){}[_0x131017(0xf5)](..._0x6fa429){}[_0x131017(0xfd)](..._0x4e0d19){}['onQRCodeGetPicture'](_0x5e8643){}[_0x131017(0xf8)](..._0x22ac54){}['onQRCodeSessionUserScaned'](..._0x10cbc2){}[_0x131017(0x100)](_0x153403){}[_0x131017(0xed)](..._0x2fcb54){}['onLoginFailed'](..._0xcb734f){}[_0x131017(0xfe)](..._0x4a2cf7){}[_0x131017(0xee)](..._0x4ee4bc){}[_0x131017(0xf0)](..._0x3891da){}[_0x131017(0xf7)](..._0x8a20e9){}[_0x131017(0xf3)](..._0x2386bd){}[_0x131017(0xf1)](..._0x4e3d84){}[_0x131017(0xfc)](..._0xbc2b2c){}[_0x131017(0xfa)](..._0x19d98a){}} \ No newline at end of file +var _0x53d0e4=_0x3888;function _0x3888(_0x248fd0,_0x5426cb){var _0x474825=_0x4748();return _0x3888=function(_0x388829,_0x412e9a){_0x388829=_0x388829-0x1f1;var _0x1886b3=_0x474825[_0x388829];return _0x1886b3;},_0x3888(_0x248fd0,_0x5426cb);}function _0x4748(){var _0x41bf40=['282678SlalCz','OnConfirmUnusualDeviceFailed','59108GqGOcl','onQRCodeSessionQuickLoginFailed','7421904lloxjm','2036065dMeRIK','11707443IlCftj','onUserLoggedIn','4qMvWTc','onQRCodeSessionUserScaned','8bSwjQO','9545774dLByrK','onQQLoginNumLimited','275615uCBCEy','onQRCodeLoginPollingStarted','onQRCodeSessionFailed','820vTzfJY','onLogoutSucceed','156edYQcT','onQRCodeGetPicture','onLoginConnecting','onLogoutFailed'];_0x4748=function(){return _0x41bf40;};return _0x4748();}(function(_0x1de079,_0x413380){var _0x427085=_0x3888,_0x2227f8=_0x1de079();while(!![]){try{var _0x25221e=parseInt(_0x427085(0x206))/0x1+parseInt(_0x427085(0x1fb))/0x2*(-parseInt(_0x427085(0x1f5))/0x3)+-parseInt(_0x427085(0x201))/0x4*(-parseInt(_0x427085(0x1fe))/0x5)+parseInt(_0x427085(0x1fd))/0x6+parseInt(_0x427085(0x204))/0x7+parseInt(_0x427085(0x203))/0x8*(parseInt(_0x427085(0x1ff))/0x9)+-parseInt(_0x427085(0x1f3))/0xa*(parseInt(_0x427085(0x1f9))/0xb);if(_0x25221e===_0x413380)break;else _0x2227f8['push'](_0x2227f8['shift']());}catch(_0x4b52f7){_0x2227f8['push'](_0x2227f8['shift']());}}}(_0x4748,0xe58f5));export class LoginListener{['onLoginConnected'](..._0x255e24){}['onLoginDisConnected'](..._0x424005){}[_0x53d0e4(0x1f7)](..._0x4437a5){}[_0x53d0e4(0x1f6)](_0x1689d3){}[_0x53d0e4(0x1f1)](..._0x3c4b1b){}[_0x53d0e4(0x202)](..._0x29ef4a){}['onQRCodeLoginSucceed'](_0x13c2d0){}[_0x53d0e4(0x1f2)](..._0x1d8f62){}['onLoginFailed'](..._0x6c6359){}[_0x53d0e4(0x1f4)](..._0x2e8fee){}[_0x53d0e4(0x1f8)](..._0x646558){}[_0x53d0e4(0x200)](..._0x2b42e7){}[_0x53d0e4(0x1fc)](..._0x3b3707){}['onPasswordLoginFailed'](..._0x4c7b87){}[_0x53d0e4(0x1fa)](..._0x3a2a91){}[_0x53d0e4(0x205)](..._0x2bd96c){}['onLoginState'](..._0x1cb3bb){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelMsgListener.js b/src/core.lib/src/listeners/NodeIKernelMsgListener.js index 639534e3..008f772e 100644 --- a/src/core.lib/src/listeners/NodeIKernelMsgListener.js +++ b/src/core.lib/src/listeners/NodeIKernelMsgListener.js @@ -1 +1 @@ -var _0xead8dd=_0xe1d1;function _0x363a(){var _0x4225ff=['onFirstViewDirectMsgUpdate','onRecvSysMsg','onEmojiDownloadComplete','onChannelFreqLimitInfoUpdate','87388TeYZSd','onGroupTransferInfoAdd','onNtFirstViewMsgSyncEnd','onFeedEventUpdate','onRichMediaProgerssUpdate','onMsgRecall','onMsgDelete','onRecvUDCFlag','576897aGPwBy','onGroupFileInfoUpdate','onUserChannelTabStatusChanged','onMsgSecurityNotify','onHitRelatedEmojiResult','onUserSecQualityChanged','onEmojiResourceUpdate','12362850LNiNsY','onGroupFileInfoAdd','14204Wtdkuu','onNtMsgSyncEnd','onImportOldDbProgressUpdate','onReadFeedEventUpdate','1806135XEvXpU','onBroadcastHelperProgressUpdate','onMsgEventListUpdate','onFileMsgCome','onHitCsRelatedEmojiResult','onMsgSettingUpdate','48iVYsIh','onUserOnlineStatusChanged','13kqQqmQ','onMsgInfoListAdd','onBroadcastHelperProgerssUpdate','onlineStatusBigIconDownloadPush','onRecvS2CMsg','onRichMediaUploadComplete','onRecvMsg','onSysMsgNotification','onGuildMsgAbFlagChanged','onBroadcastHelperDownloadComplete','onRecvOnlineFileMsg','onCustomWithdrawConfigUpdate','onRecvGroupGuildFlag','onRedTouchChanged','onMsgAbstractUpdate','onMsgQRCodeStatusChanged','1359584ySWKtq','onSearchGroupFileInfoUpdate','onNtMsgSyncStart','onContactUnreadCntUpdate','onMsgBoxChanged','onUnreadCntUpdate','onLogLevelChanged','onAddSendMsg','onGroupTransferInfoUpdate','onInputStatusPush','onDraftUpdate','onRecvMsgSvrRspTransInfo','onGrabPasswordRedBag','onTempChatInfoUpdate','onGuildNotificationAbstractUpdate','1535028TjcEYk'];_0x363a=function(){return _0x4225ff;};return _0x363a();}(function(_0x2b5921,_0x494309){var _0x14fa2e=_0xe1d1,_0x5c5347=_0x2b5921();while(!![]){try{var _0x480735=-parseInt(_0x14fa2e(0x132))/0x1*(-parseInt(_0x14fa2e(0x167))/0x2)+-parseInt(_0x14fa2e(0x15e))/0x3+-parseInt(_0x14fa2e(0x142))/0x4+-parseInt(_0x14fa2e(0x16b))/0x5+-parseInt(_0x14fa2e(0x151))/0x6+parseInt(_0x14fa2e(0x156))/0x7*(-parseInt(_0x14fa2e(0x130))/0x8)+parseInt(_0x14fa2e(0x165))/0x9;if(_0x480735===_0x494309)break;else _0x5c5347['push'](_0x5c5347['shift']());}catch(_0x252478){_0x5c5347['push'](_0x5c5347['shift']());}}}(_0x363a,0x3b094));function _0xe1d1(_0x34c4dd,_0x4b51b9){var _0x363a1d=_0x363a();return _0xe1d1=function(_0xe1d1c7,_0xb06417){_0xe1d1c7=_0xe1d1c7-0x12c;var _0x51a50c=_0x363a1d[_0xe1d1c7];return _0x51a50c;},_0xe1d1(_0x34c4dd,_0x4b51b9);}export class MsgListener{[_0xead8dd(0x149)](_0x1d206c){}[_0xead8dd(0x13b)](_0x1fb728){}[_0xead8dd(0x16c)](_0x6e5204){}[_0xead8dd(0x155)](_0x3cddef,_0x427aa6,_0x1e7180){}[_0xead8dd(0x145)](_0x1f436d){}[_0xead8dd(0x13d)](_0x41491d){}[_0xead8dd(0x14c)](_0x3ef2ff,_0x126fd4,_0x2869f8){}[_0xead8dd(0x154)](_0x432c98){}[_0xead8dd(0x164)](_0x5b4222){}[_0xead8dd(0x159)](_0x59ae02){}[_0xead8dd(0x12d)](_0x4b34e9){}[_0xead8dd(0x152)](_0x504217){}['onFirstViewGroupGuildMapping'](_0x1fd21c){}[_0xead8dd(0x14e)](_0x521834,_0x335eca,_0x67392c,_0x28be7f,_0x4425d1){}[_0xead8dd(0x166)](_0x2c31d2){}[_0xead8dd(0x15f)](_0x29f389){}['onGroupGuildUpdate'](_0x3bec2a){}[_0xead8dd(0x157)](_0x235c91){}[_0xead8dd(0x14a)](_0x478444){}['onGuildInteractiveUpdate'](_0x454e75){}[_0xead8dd(0x13a)](_0x1e8e00){}[_0xead8dd(0x150)](_0x59b99a){}[_0xead8dd(0x12e)](_0x5b04b0){}['onHitEmojiKeywordResult'](_0x2b1de1){}[_0xead8dd(0x162)](_0x4910e8){}[_0xead8dd(0x169)](_0xe980f8){}[_0xead8dd(0x14b)](_0x4b33e5){}['onKickedOffLine'](_0x29a371){}['onLineDev'](_0xb5720a){}[_0xead8dd(0x148)](_0x3a71f7){}[_0xead8dd(0x140)](_0x3c18a8){}[_0xead8dd(0x146)](_0x3ae4d4){}[_0xead8dd(0x15c)](_0x1f7fcd,_0xc354de){}[_0xead8dd(0x12c)](_0x54c507){}[_0xead8dd(0x133)](_0x17ce0d){}['onMsgInfoListUpdate'](_0x352290){}[_0xead8dd(0x141)](_0x558ee2){}[_0xead8dd(0x15b)](_0x459954,_0x1ff7c4,_0x136bf5){}[_0xead8dd(0x161)](_0x27da5f){}[_0xead8dd(0x12f)](_0x14c149){}[_0xead8dd(0x158)](){}[_0xead8dd(0x168)](){}[_0xead8dd(0x144)](){}[_0xead8dd(0x16a)](_0x3316c6){}[_0xead8dd(0x13e)](_0x5cb2d4){}[_0xead8dd(0x138)](_0x114ebd){}[_0xead8dd(0x14d)](_0x4762a7,_0x1d8029,_0x40cdf8,_0x5d967d,_0x380d37,_0x1b1d61){}[_0xead8dd(0x13c)](_0x2be907){}[_0xead8dd(0x136)](_0x17fd6a){}[_0xead8dd(0x153)](_0x240a24){}[_0xead8dd(0x15d)](_0x46534b){}['onRichMediaDownloadComplete'](_0x4914c0){}[_0xead8dd(0x15a)](_0x51ab5c){}[_0xead8dd(0x137)](_0x54165b){}[_0xead8dd(0x143)](_0x3978b7){}['onSendMsgError'](_0x15040b,_0x2b5956,_0x291f31,_0x349703){}[_0xead8dd(0x139)](_0x5114ec,_0x127542,_0x2cb88f,_0x485462){}[_0xead8dd(0x14f)](_0x533281){}['onUnreadCntAfterFirstView'](_0x5c1e90){}[_0xead8dd(0x147)](_0x393112){}[_0xead8dd(0x160)](_0x3ccc53){}[_0xead8dd(0x131)](_0x4e1df0){}['onUserTabStatusChanged'](_0x198de9){}[_0xead8dd(0x135)](_0x30f18b,_0x1a5132,_0xed4797){}['onlineStatusSmallIconDownloadPush'](_0x29c513,_0x482551,_0x4661ee){}[_0xead8dd(0x163)](..._0xf83fcd){}['onMsgWithRichLinkInfoUpdate'](..._0x3269d5){}[_0xead8dd(0x13f)](..._0x17de40){}[_0xead8dd(0x134)](..._0x5ee9ba){}} \ No newline at end of file +var _0x2858fb=_0x149e;function _0x2898(){var _0x4f12fa=['onMsgSecurityNotify','onRedTouchChanged','3603048RSwvIn','onRecvUDCFlag','onFeedEventUpdate','onGuildNotificationAbstractUpdate','onUserSecQualityChanged','onTempChatInfoUpdate','onUserChannelTabStatusChanged','onMsgWithRichLinkInfoUpdate','onMsgInfoListAdd','244612aGGHpF','onRichMediaDownloadComplete','onRichMediaProgerssUpdate','onSendMsgError','onGroupGuildUpdate','onMsgRecall','onNtFirstViewMsgSyncEnd','onMsgSettingUpdate','onlineStatusSmallIconDownloadPush','onMsgQRCodeStatusChanged','onEmojiDownloadComplete','onGroupTransferInfoAdd','onCustomWithdrawConfigUpdate','onRecvSysMsg','onRecvGroupGuildFlag','203067MXOKNQ','onLogLevelChanged','onMsgAbstractUpdate','onKickedOffLine','onGroupTransferInfoUpdate','2NYZuzX','onRecvMsgSvrRspTransInfo','onHitCsRelatedEmojiResult','onSysMsgNotification','onRecvS2CMsg','onInputStatusPush','4817340hCfUbo','onEmojiResourceUpdate','onFirstViewGroupGuildMapping','onRichMediaUploadComplete','onImportOldDbProgressUpdate','onBroadcastHelperDownloadComplete','onLineDev','onBroadcastHelperProgerssUpdate','onContactUnreadCntUpdate','20vkWDrS','onGuildInteractiveUpdate','onGroupFileInfoUpdate','onNtMsgSyncEnd','810TfTEua','onNtMsgSyncStart','onRecvOnlineFileMsg','110889TkRyOP','onGroupFileInfoAdd','onFileMsgCome','onUnreadCntAfterFirstView','onlineStatusBigIconDownloadPush','onDraftUpdate','7469BpvuyL','onHitRelatedEmojiResult','onMsgBoxChanged','onMsgEventListUpdate','6170544mOWlqq'];_0x2898=function(){return _0x4f12fa;};return _0x2898();}function _0x149e(_0x5a357b,_0x483adb){var _0x289839=_0x2898();return _0x149e=function(_0x149eda,_0x1c076e){_0x149eda=_0x149eda-0x144;var _0x5cdacf=_0x289839[_0x149eda];return _0x5cdacf;},_0x149e(_0x5a357b,_0x483adb);}(function(_0x221f65,_0x5d0a85){var _0x41a607=_0x149e,_0x49487b=_0x221f65();while(!![]){try{var _0x150708=parseInt(_0x41a607(0x148))/0x1*(parseInt(_0x41a607(0x15c))/0x2)+parseInt(_0x41a607(0x157))/0x3*(parseInt(_0x41a607(0x16b))/0x4)+-parseInt(_0x41a607(0x162))/0x5+-parseInt(_0x41a607(0x17f))/0x6+-parseInt(_0x41a607(0x178))/0x7+parseInt(_0x41a607(0x17c))/0x8+parseInt(_0x41a607(0x172))/0x9*(parseInt(_0x41a607(0x16f))/0xa);if(_0x150708===_0x5d0a85)break;else _0x49487b['push'](_0x49487b['shift']());}catch(_0x1cb5e9){_0x49487b['push'](_0x49487b['shift']());}}}(_0x2898,0xc0385));export class MsgListener{['onAddSendMsg'](_0x5d0e4d){}[_0x2858fb(0x167)](_0x204799){}['onBroadcastHelperProgressUpdate'](_0x5a89a2){}['onChannelFreqLimitInfoUpdate'](_0xdefa11,_0x2ae40b,_0x2b7fce){}[_0x2858fb(0x16a)](_0x258ae2){}[_0x2858fb(0x154)](_0xf71886){}[_0x2858fb(0x177)](_0x303889,_0x5f48b6,_0x43d78d){}[_0x2858fb(0x152)](_0x8acef1){}[_0x2858fb(0x163)](_0x756a19){}[_0x2858fb(0x181)](_0x3d468c){}[_0x2858fb(0x174)](_0x58b740){}['onFirstViewDirectMsgUpdate'](_0x2ccc78){}[_0x2858fb(0x164)](_0x2889fb){}['onGrabPasswordRedBag'](_0x28c2c6,_0x5df018,_0x2b054a,_0x31bc42,_0x24de34){}[_0x2858fb(0x173)](_0xc4855b){}[_0x2858fb(0x16d)](_0x5c5961){}[_0x2858fb(0x14c)](_0x1fae80){}[_0x2858fb(0x153)](_0x59c877){}[_0x2858fb(0x15b)](_0x1e691d){}[_0x2858fb(0x16c)](_0x454c04){}['onGuildMsgAbFlagChanged'](_0x132d16){}[_0x2858fb(0x182)](_0x2e92d2){}[_0x2858fb(0x15e)](_0x350db7){}['onHitEmojiKeywordResult'](_0x14f394){}[_0x2858fb(0x179)](_0x2dc21a){}[_0x2858fb(0x166)](_0x372ee2){}[_0x2858fb(0x161)](_0x45687f){}[_0x2858fb(0x15a)](_0x5c27f8){}[_0x2858fb(0x168)](_0x55505e){}[_0x2858fb(0x158)](_0x5b6a12){}[_0x2858fb(0x159)](_0x19fe0e){}[_0x2858fb(0x17a)](_0x66adef){}['onMsgDelete'](_0x19292d,_0x307c47){}[_0x2858fb(0x17b)](_0x45da85){}[_0x2858fb(0x147)](_0x580590){}['onMsgInfoListUpdate'](_0x5e7f7c){}[_0x2858fb(0x151)](_0x5d78df){}[_0x2858fb(0x14d)](_0x251d43,_0xb13e27,_0xd59f53){}[_0x2858fb(0x17d)](_0x43760d){}[_0x2858fb(0x14f)](_0x3b18c2){}[_0x2858fb(0x14e)](){}[_0x2858fb(0x16e)](){}[_0x2858fb(0x170)](){}['onReadFeedEventUpdate'](_0x424f95){}[_0x2858fb(0x156)](_0x14e8c3){}['onRecvMsg'](_0xfcdc9f){}[_0x2858fb(0x15d)](_0x461def,_0x5c1d67,_0xe6bad7,_0x5ed7e8,_0xe71919,_0x42eb9f){}[_0x2858fb(0x171)](_0x422bd0){}[_0x2858fb(0x160)](_0x5b4187){}[_0x2858fb(0x155)](_0x3aa34c){}[_0x2858fb(0x180)](_0x31f900){}[_0x2858fb(0x149)](_0x576141){}[_0x2858fb(0x14a)](_0x453f3c){}[_0x2858fb(0x165)](_0x1f0452){}['onSearchGroupFileInfoUpdate'](_0x288219){}[_0x2858fb(0x14b)](_0x319f4a,_0x155e36,_0xa3b6c5,_0xa577b0){}[_0x2858fb(0x15f)](_0x516865,_0x207065,_0x45fddd,_0x4d8d00){}[_0x2858fb(0x144)](_0x228f4f){}[_0x2858fb(0x175)](_0xd5609e){}['onUnreadCntUpdate'](_0x415bd2){}[_0x2858fb(0x145)](_0x11d029){}['onUserOnlineStatusChanged'](_0x5c82b2){}['onUserTabStatusChanged'](_0x3389d0){}[_0x2858fb(0x176)](_0x481161,_0x5edf86,_0x5f2eee){}[_0x2858fb(0x150)](_0x3e6399,_0x48247,_0x5bf46a){}[_0x2858fb(0x183)](..._0x51c9e2){}[_0x2858fb(0x146)](..._0x212a11){}[_0x2858fb(0x17e)](..._0x23cf3d){}[_0x2858fb(0x169)](..._0x1c93c3){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelProfileListener.js b/src/core.lib/src/listeners/NodeIKernelProfileListener.js index 9f771c91..88572793 100644 --- a/src/core.lib/src/listeners/NodeIKernelProfileListener.js +++ b/src/core.lib/src/listeners/NodeIKernelProfileListener.js @@ -1 +1 @@ -function _0x903b(_0x4eb073,_0x397320){var _0x557bf5=_0x557b();return _0x903b=function(_0x903b33,_0x23d9de){_0x903b33=_0x903b33-0x1db;var _0x452a01=_0x557bf5[_0x903b33];return _0x452a01;},_0x903b(_0x4eb073,_0x397320);}function _0x557b(){var _0x2aab29=['8oKcFJL','12RKMDyj','onProfileDetailInfoChanged','onProfileSimpleChanged','1467115ECNhTP','3924347cgmLYs','13406Auyqgn','1114320vLOfaw','8slsZNH','2656610NHdbtW','1464372DRXOxl','684GVsTxR','2710NONDcR','4HBgnqr','onStatusUpdate'];_0x557b=function(){return _0x2aab29;};return _0x557b();}var _0xa90640=_0x903b;(function(_0x1c109e,_0x4196dd){var _0x4586bb=_0x903b,_0x1d4ef5=_0x1c109e();while(!![]){try{var _0x53bfa0=parseInt(_0x4586bb(0x1db))/0x1*(parseInt(_0x4586bb(0x1e2))/0x2)+parseInt(_0x4586bb(0x1dc))/0x3+parseInt(_0x4586bb(0x1dd))/0x4*(-parseInt(_0x4586bb(0x1e8))/0x5)+-parseInt(_0x4586bb(0x1df))/0x6+-parseInt(_0x4586bb(0x1e9))/0x7*(-parseInt(_0x4586bb(0x1e4))/0x8)+-parseInt(_0x4586bb(0x1e0))/0x9*(parseInt(_0x4586bb(0x1e1))/0xa)+-parseInt(_0x4586bb(0x1de))/0xb*(-parseInt(_0x4586bb(0x1e5))/0xc);if(_0x53bfa0===_0x4196dd)break;else _0x1d4ef5['push'](_0x1d4ef5['shift']());}catch(_0x549fb7){_0x1d4ef5['push'](_0x1d4ef5['shift']());}}}(_0x557b,0x552cf));export class ProfileListener{[_0xa90640(0x1e7)](..._0x43ac50){}[_0xa90640(0x1e6)](_0x11558b){}[_0xa90640(0x1e3)](..._0x2e8b8a){}['onSelfStatusChanged'](..._0x5a8fd1){}['onStrangerRemarkChanged'](..._0x2e11d5){}} \ No newline at end of file +var _0x26cb96=_0x4b2f;(function(_0x2e111b,_0x56d2e0){var _0x258dd7=_0x4b2f,_0x50e740=_0x2e111b();while(!![]){try{var _0x4e5c7f=parseInt(_0x258dd7(0x1d0))/0x1+parseInt(_0x258dd7(0x1d7))/0x2*(-parseInt(_0x258dd7(0x1cc))/0x3)+-parseInt(_0x258dd7(0x1cf))/0x4+-parseInt(_0x258dd7(0x1d1))/0x5*(parseInt(_0x258dd7(0x1cd))/0x6)+-parseInt(_0x258dd7(0x1cb))/0x7+-parseInt(_0x258dd7(0x1d3))/0x8+-parseInt(_0x258dd7(0x1d2))/0x9*(-parseInt(_0x258dd7(0x1ce))/0xa);if(_0x4e5c7f===_0x56d2e0)break;else _0x50e740['push'](_0x50e740['shift']());}catch(_0x44e4b3){_0x50e740['push'](_0x50e740['shift']());}}}(_0x3349,0xacf85));function _0x4b2f(_0x1b7573,_0x142190){var _0x334930=_0x3349();return _0x4b2f=function(_0x4b2f97,_0x2e6988){_0x4b2f97=_0x4b2f97-0x1cb;var _0x3a02ed=_0x334930[_0x4b2f97];return _0x3a02ed;},_0x4b2f(_0x1b7573,_0x142190);}export class ProfileListener{[_0x26cb96(0x1d6)](..._0x1fb431){}[_0x26cb96(0x1d4)](_0x4fe7ab){}['onStatusUpdate'](..._0x57a2f6){}['onSelfStatusChanged'](..._0x2c7701){}[_0x26cb96(0x1d5)](..._0x524af8){}}function _0x3349(){var _0x4cf5d3=['89928DsSQwf','9214048tiErhG','onProfileDetailInfoChanged','onStrangerRemarkChanged','onProfileSimpleChanged','34084ACQMRl','1566600ZcQina','111cERRNu','6iykDXv','3070QKDabH','1213032JHXqqH','997818PvComQ','5237545NyEzET'];_0x3349=function(){return _0x4cf5d3;};return _0x3349();} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelRobotListener.js b/src/core.lib/src/listeners/NodeIKernelRobotListener.js index 153c0348..0819f69c 100644 --- a/src/core.lib/src/listeners/NodeIKernelRobotListener.js +++ b/src/core.lib/src/listeners/NodeIKernelRobotListener.js @@ -1 +1 @@ -var _0x33cd08=_0x56d4;function _0x1c43(){var _0xe328e6=['964728qTYAjV','5268190AvSeMY','25321HrkACC','11GKrxWV','14PqpcpI','3339693MAhtnF','72435MSNPqp','478093xCMCfw','9145OfPFuL','onRobotFriendListChanged','186GVFaDb','onRobotListChanged','onRobotProfileChanged','56pVmtdw'];_0x1c43=function(){return _0xe328e6;};return _0x1c43();}function _0x56d4(_0x5cd3db,_0x83547e){var _0x1c4379=_0x1c43();return _0x56d4=function(_0x56d4f1,_0x4c98c8){_0x56d4f1=_0x56d4f1-0x1e1;var _0x4554a8=_0x1c4379[_0x56d4f1];return _0x4554a8;},_0x56d4(_0x5cd3db,_0x83547e);}(function(_0x21ee5c,_0x58352a){var _0x341748=_0x56d4,_0x2badba=_0x21ee5c();while(!![]){try{var _0x53d8f1=-parseInt(_0x341748(0x1ee))/0x1*(-parseInt(_0x341748(0x1e2))/0x2)+-parseInt(_0x341748(0x1e4))/0x3*(-parseInt(_0x341748(0x1eb))/0x4)+-parseInt(_0x341748(0x1e6))/0x5*(-parseInt(_0x341748(0x1e8))/0x6)+-parseInt(_0x341748(0x1e5))/0x7+-parseInt(_0x341748(0x1ec))/0x8+parseInt(_0x341748(0x1e3))/0x9+-parseInt(_0x341748(0x1ed))/0xa*(parseInt(_0x341748(0x1e1))/0xb);if(_0x53d8f1===_0x58352a)break;else _0x2badba['push'](_0x2badba['shift']());}catch(_0x4e87d0){_0x2badba['push'](_0x2badba['shift']());}}}(_0x1c43,0x37810));export class KernelRobotListener{[_0x33cd08(0x1e7)](..._0xd2b0da){}[_0x33cd08(0x1e9)](..._0x32ae3c){}[_0x33cd08(0x1ea)](..._0xa6dadf){}} \ No newline at end of file +var _0x380b2e=_0x7275;(function(_0x46856b,_0x5d45f3){var _0xea48c3=_0x7275,_0x16bf3f=_0x46856b();while(!![]){try{var _0x5ed2b9=-parseInt(_0xea48c3(0x195))/0x1*(-parseInt(_0xea48c3(0x198))/0x2)+-parseInt(_0xea48c3(0x196))/0x3+-parseInt(_0xea48c3(0x19a))/0x4*(-parseInt(_0xea48c3(0x19b))/0x5)+parseInt(_0xea48c3(0x197))/0x6+-parseInt(_0xea48c3(0x1a0))/0x7*(parseInt(_0xea48c3(0x199))/0x8)+-parseInt(_0xea48c3(0x19f))/0x9*(parseInt(_0xea48c3(0x19e))/0xa)+parseInt(_0xea48c3(0x193))/0xb*(parseInt(_0xea48c3(0x19d))/0xc);if(_0x5ed2b9===_0x5d45f3)break;else _0x16bf3f['push'](_0x16bf3f['shift']());}catch(_0x312df4){_0x16bf3f['push'](_0x16bf3f['shift']());}}}(_0x37bd,0xe7b2d));export class KernelRobotListener{[_0x380b2e(0x19c)](..._0x119c83){}['onRobotListChanged'](..._0x3fa342){}[_0x380b2e(0x194)](..._0x24d8fb){}}function _0x7275(_0x25247f,_0x7d1c0a){var _0x37bd87=_0x37bd();return _0x7275=function(_0x7275f4,_0x2adac6){_0x7275f4=_0x7275f4-0x193;var _0x467203=_0x37bd87[_0x7275f4];return _0x467203;},_0x7275(_0x25247f,_0x7d1c0a);}function _0x37bd(){var _0x31a4f8=['8870477GAyoME','onRobotProfileChanged','9233EFgZyo','809331DKVFst','3552468mYlSbP','10MwKOMB','24sIUkSQ','2369356KwWFyY','5bCOSNU','onRobotFriendListChanged','24SxCVXO','9656140PbhRqz','9xfBFib','1537592ungsWh'];_0x37bd=function(){return _0x31a4f8;};return _0x37bd();} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelSessionListener.js b/src/core.lib/src/listeners/NodeIKernelSessionListener.js index 44fed384..a8f07036 100644 --- a/src/core.lib/src/listeners/NodeIKernelSessionListener.js +++ b/src/core.lib/src/listeners/NodeIKernelSessionListener.js @@ -1 +1 @@ -var _0x378a89=_0x4809;(function(_0xaf14ec,_0x240f36){var _0x413d50=_0x4809,_0x356fee=_0xaf14ec();while(!![]){try{var _0x221ede=-parseInt(_0x413d50(0x1ae))/0x1*(-parseInt(_0x413d50(0x1b1))/0x2)+-parseInt(_0x413d50(0x1b3))/0x3+parseInt(_0x413d50(0x1b2))/0x4+-parseInt(_0x413d50(0x1ba))/0x5+parseInt(_0x413d50(0x1b6))/0x6+-parseInt(_0x413d50(0x1b9))/0x7*(parseInt(_0x413d50(0x1bb))/0x8)+parseInt(_0x413d50(0x1b4))/0x9;if(_0x221ede===_0x240f36)break;else _0x356fee['push'](_0x356fee['shift']());}catch(_0x3fc735){_0x356fee['push'](_0x356fee['shift']());}}}(_0x5d0f,0x2159a));function _0x4809(_0x4aef7f,_0xead1c5){var _0x5d0f37=_0x5d0f();return _0x4809=function(_0x48094d,_0x10c647){_0x48094d=_0x48094d-0x1ad;var _0x141c96=_0x5d0f37[_0x48094d];return _0x141c96;},_0x4809(_0x4aef7f,_0xead1c5);}export class SessionListener{[_0x378a89(0x1ad)](_0x1aff78){}[_0x378a89(0x1b8)](_0x37cc5b){}[_0x378a89(0x1af)](_0x2daeb4){}[_0x378a89(0x1b7)](_0x46d5ee){}[_0x378a89(0x1b0)](_0x50ddc7){}[_0x378a89(0x1b5)](_0x412673){}}function _0x5d0f(){var _0x5d4931=['onGetSelfTinyId','432042CHZfiO','onOpentelemetryInit','onGProSessionCreate','21XDdBfj','497060eDUGbg','631416aiJlnt','onNTSessionCreate','1IjbYAM','onSessionInitComplete','onUserOnlineResult','394108nMusQk','214276ZnINVt','785085zGPLep','3706740tHkuHJ'];_0x5d0f=function(){return _0x5d4931;};return _0x5d0f();} \ No newline at end of file +var _0x5a32ff=_0x74ad;function _0x74ad(_0x15db47,_0x5f3d55){var _0x48ded2=_0x48de();return _0x74ad=function(_0x74ad61,_0x2f841a){_0x74ad61=_0x74ad61-0x160;var _0x30326b=_0x48ded2[_0x74ad61];return _0x30326b;},_0x74ad(_0x15db47,_0x5f3d55);}(function(_0x26569f,_0x3457cb){var _0x3d8d94=_0x74ad,_0x18f6ac=_0x26569f();while(!![]){try{var _0x30ea5c=-parseInt(_0x3d8d94(0x169))/0x1+-parseInt(_0x3d8d94(0x163))/0x2*(parseInt(_0x3d8d94(0x16b))/0x3)+-parseInt(_0x3d8d94(0x160))/0x4*(parseInt(_0x3d8d94(0x162))/0x5)+-parseInt(_0x3d8d94(0x16d))/0x6+parseInt(_0x3d8d94(0x166))/0x7+-parseInt(_0x3d8d94(0x16f))/0x8*(-parseInt(_0x3d8d94(0x161))/0x9)+parseInt(_0x3d8d94(0x167))/0xa;if(_0x30ea5c===_0x3457cb)break;else _0x18f6ac['push'](_0x18f6ac['shift']());}catch(_0x2facfe){_0x18f6ac['push'](_0x18f6ac['shift']());}}}(_0x48de,0x47c59));export class SessionListener{[_0x5a32ff(0x16e)](_0x591132){}[_0x5a32ff(0x16c)](_0x204426){}[_0x5a32ff(0x164)](_0x3fcd96){}[_0x5a32ff(0x168)](_0x120deb){}[_0x5a32ff(0x165)](_0x2fd2d4){}[_0x5a32ff(0x16a)](_0x516233){}}function _0x48de(){var _0x18e587=['4206MCleuy','onSessionInitComplete','onUserOnlineResult','2862622GfHEsS','10028360cxAMAG','onOpentelemetryInit','326138wUIJdw','onGetSelfTinyId','639takDjq','onGProSessionCreate','3459750csAJuA','onNTSessionCreate','4072axeXoO','472DEahzC','7569MIUHeM','8270tgntiD'];_0x48de=function(){return _0x18e587;};return _0x48de();} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js index 43340e85..954f8c67 100644 --- a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js +++ b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js @@ -1 +1 @@ -function _0x2c34(){var _0x4bd867=['onChatCleanDone','529750OHumXo','onScanCacheProgressChanged','onCleanCacheProgressChanged','1001WoTvZy','225IndicJ','1554088Vtxdmw','11784EMldkk','105500uCkJPy','1838750PCLfmA','230860BPAZWv','4688xpbpbA','417NlFbLf'];_0x2c34=function(){return _0x4bd867;};return _0x2c34();}var _0x3128d6=_0x4058;(function(_0x86cfcb,_0x17dc76){var _0xfae8f7=_0x4058,_0x8578cc=_0x86cfcb();while(!![]){try{var _0x5deb94=parseInt(_0xfae8f7(0x1c7))/0x1+parseInt(_0xfae8f7(0x1c4))/0x2*(-parseInt(_0xfae8f7(0x1c5))/0x3)+parseInt(_0xfae8f7(0x1c3))/0x4+parseInt(_0xfae8f7(0x1c2))/0x5+parseInt(_0xfae8f7(0x1c0))/0x6*(-parseInt(_0xfae8f7(0x1bd))/0x7)+parseInt(_0xfae8f7(0x1bf))/0x8+-parseInt(_0xfae8f7(0x1be))/0x9*(parseInt(_0xfae8f7(0x1c1))/0xa);if(_0x5deb94===_0x17dc76)break;else _0x8578cc['push'](_0x8578cc['shift']());}catch(_0x347f3b){_0x8578cc['push'](_0x8578cc['shift']());}}}(_0x2c34,0x44212));function _0x4058(_0x1d9f6c,_0x1fa38f){var _0x2c341b=_0x2c34();return _0x4058=function(_0x405806,_0x4a202a){_0x405806=_0x405806-0x1bc;var _0x2f0ac8=_0x2c341b[_0x405806];return _0x2f0ac8;},_0x4058(_0x1d9f6c,_0x1fa38f);}export class StorageCleanListener{[_0x3128d6(0x1bc)](_0x5cb833){}[_0x3128d6(0x1c8)](_0x3eafbc){}['onCleanCacheStorageChanged'](_0x481bf4){}['onFinishScan'](_0x10ea41){}[_0x3128d6(0x1c6)](_0x328749){}} \ No newline at end of file +function _0x2e13(_0x5afad2,_0x2309b4){var _0x153d3a=_0x153d();return _0x2e13=function(_0x2e1331,_0x9d9577){_0x2e1331=_0x2e1331-0x1ab;var _0xa40500=_0x153d3a[_0x2e1331];return _0xa40500;},_0x2e13(_0x5afad2,_0x2309b4);}var _0x334134=_0x2e13;(function(_0x5e4d26,_0x20c95d){var _0x353371=_0x2e13,_0x4ecb59=_0x5e4d26();while(!![]){try{var _0x49ff82=-parseInt(_0x353371(0x1b8))/0x1*(-parseInt(_0x353371(0x1ae))/0x2)+parseInt(_0x353371(0x1ac))/0x3*(-parseInt(_0x353371(0x1b4))/0x4)+-parseInt(_0x353371(0x1b2))/0x5*(-parseInt(_0x353371(0x1ab))/0x6)+parseInt(_0x353371(0x1b9))/0x7*(parseInt(_0x353371(0x1bb))/0x8)+parseInt(_0x353371(0x1b6))/0x9+parseInt(_0x353371(0x1ad))/0xa*(-parseInt(_0x353371(0x1ba))/0xb)+parseInt(_0x353371(0x1b0))/0xc*(-parseInt(_0x353371(0x1af))/0xd);if(_0x49ff82===_0x20c95d)break;else _0x4ecb59['push'](_0x4ecb59['shift']());}catch(_0x3474fd){_0x4ecb59['push'](_0x4ecb59['shift']());}}}(_0x153d,0x5846f));export class StorageCleanListener{[_0x334134(0x1b5)](_0x5d18ab){}[_0x334134(0x1b1)](_0x992fa0){}[_0x334134(0x1b7)](_0x1eb7b9){}['onFinishScan'](_0x199f50){}[_0x334134(0x1b3)](_0x47421a){}}function _0x153d(){var _0x511b88=['onScanCacheProgressChanged','2289065lacNos','onChatCleanDone','4FUJdrq','onCleanCacheProgressChanged','5311197RxWdMX','onCleanCacheStorageChanged','6883hzvBHB','925827UPKtiz','165XxHIUf','8RJLUur','6XnavMx','322872uHbHix','20500vYoIhI','38UJQotq','91wjdCUI','1390332CRTIIM'];_0x153d=function(){return _0x511b88;};return _0x153d();} \ No newline at end of file diff --git a/src/core.lib/src/listeners/index.js b/src/core.lib/src/listeners/index.js index df17c6e1..f607bc16 100644 --- a/src/core.lib/src/listeners/index.js +++ b/src/core.lib/src/listeners/index.js @@ -1 +1 @@ -(function(_0x2f33f4,_0x232522){var _0x1645f8=_0x34ee,_0x4e9bb5=_0x2f33f4();while(!![]){try{var _0x2247a6=parseInt(_0x1645f8(0xad))/0x1+-parseInt(_0x1645f8(0xaa))/0x2+-parseInt(_0x1645f8(0xb3))/0x3*(-parseInt(_0x1645f8(0xb4))/0x4)+parseInt(_0x1645f8(0xae))/0x5*(-parseInt(_0x1645f8(0xb0))/0x6)+parseInt(_0x1645f8(0xb2))/0x7+-parseInt(_0x1645f8(0xaf))/0x8*(-parseInt(_0x1645f8(0xab))/0x9)+parseInt(_0x1645f8(0xac))/0xa*(-parseInt(_0x1645f8(0xb1))/0xb);if(_0x2247a6===_0x232522)break;else _0x4e9bb5['push'](_0x4e9bb5['shift']());}catch(_0x3dcfe6){_0x4e9bb5['push'](_0x4e9bb5['shift']());}}}(_0x3747,0x918d7));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 _0x3747(){var _0x259eb5=['106975VhPfuU','4233592SQrgms','210zzVLsY','22XpiHLR','873551alPygs','930toVxwo','15304aacVjB','1823314OCSjwm','18yAkzJo','3917150VRKOSD','670844OepJHS'];_0x3747=function(){return _0x259eb5;};return _0x3747();}function _0x34ee(_0x1d4fee,_0x3a28c5){var _0x37476e=_0x3747();return _0x34ee=function(_0x34ee87,_0x4224f2){_0x34ee87=_0x34ee87-0xaa;var _0x55b9c4=_0x37476e[_0x34ee87];return _0x55b9c4;},_0x34ee(_0x1d4fee,_0x3a28c5);}export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file +(function(_0x22508b,_0x5ebe54){var _0x3dc377=_0x2a4f,_0x18f38f=_0x22508b();while(!![]){try{var _0x95abcd=-parseInt(_0x3dc377(0x1ce))/0x1+-parseInt(_0x3dc377(0x1d5))/0x2*(parseInt(_0x3dc377(0x1d2))/0x3)+-parseInt(_0x3dc377(0x1d0))/0x4*(parseInt(_0x3dc377(0x1cf))/0x5)+parseInt(_0x3dc377(0x1d7))/0x6*(parseInt(_0x3dc377(0x1d3))/0x7)+-parseInt(_0x3dc377(0x1d1))/0x8+parseInt(_0x3dc377(0x1d6))/0x9+parseInt(_0x3dc377(0x1d4))/0xa;if(_0x95abcd===_0x5ebe54)break;else _0x18f38f['push'](_0x18f38f['shift']());}catch(_0x23879b){_0x18f38f['push'](_0x18f38f['shift']());}}}(_0x2a5a,0x2587f));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 _0x2a4f(_0x3fd26c,_0x2fca98){var _0x2a5a74=_0x2a5a();return _0x2a4f=function(_0x2a4f82,_0x18a64f){_0x2a4f82=_0x2a4f82-0x1ce;var _0x225e81=_0x2a5a74[_0x2a4f82];return _0x225e81;},_0x2a4f(_0x3fd26c,_0x2fca98);}export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener';function _0x2a5a(){var _0x1642db=['6ArXwni','138559dFkndJ','203055FPHzBT','12DKWHmt','257856SHuDHQ','21cNVYMz','835121VPmjxG','3205030VMewiP','49438VgUUOs','1616202nMoAEZ'];_0x2a5a=function(){return _0x1642db;};return _0x2a5a();} \ No newline at end of file diff --git a/src/core.lib/src/services/common.js b/src/core.lib/src/services/common.js index 6f474b16..eb9f44fa 100644 --- a/src/core.lib/src/services/common.js +++ b/src/core.lib/src/services/common.js @@ -1 +1 @@ -function _0x2d75(){var _0x324a3a=['15112XkTuBE','6203095mnQHkN','904XiIdGt','6VWWjtj','153852abNzkK','1822952igvcFY','14142518yLYfdD','45fNiKsk','451kpNPfT','4488HjRaxx','56ndtyva','7lNswkr','556550EviVgx','188NhMDXP'];_0x2d75=function(){return _0x324a3a;};return _0x2d75();}(function(_0x4fbf48,_0x444d17){var _0x1293ff=_0x253b,_0x31e9e9=_0x4fbf48();while(!![]){try{var _0x571834=parseInt(_0x1293ff(0x136))/0x1*(-parseInt(_0x1293ff(0x135))/0x2)+parseInt(_0x1293ff(0x13f))/0x3*(-parseInt(_0x1293ff(0x138))/0x4)+-parseInt(_0x1293ff(0x137))/0x5*(parseInt(_0x1293ff(0x139))/0x6)+-parseInt(_0x1293ff(0x141))/0x7*(parseInt(_0x1293ff(0x13b))/0x8)+-parseInt(_0x1293ff(0x13d))/0x9*(-parseInt(_0x1293ff(0x134))/0xa)+parseInt(_0x1293ff(0x13e))/0xb*(-parseInt(_0x1293ff(0x13a))/0xc)+-parseInt(_0x1293ff(0x13c))/0xd*(-parseInt(_0x1293ff(0x140))/0xe);if(_0x571834===_0x444d17)break;else _0x31e9e9['push'](_0x31e9e9['shift']());}catch(_0x34f5cc){_0x31e9e9['push'](_0x31e9e9['shift']());}}}(_0x2d75,0xd61f6));export var GeneralCallResultStatus;function _0x253b(_0x410f01,_0x4dd03e){var _0x2d75e2=_0x2d75();return _0x253b=function(_0x253bfa,_0x1dbe33){_0x253bfa=_0x253bfa-0x134;var _0x35e7b2=_0x2d75e2[_0x253bfa];return _0x35e7b2;},_0x253b(_0x410f01,_0x4dd03e);}(function(_0xd4a99d){_0xd4a99d[_0xd4a99d['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file +(function(_0x53febb,_0x6cc64a){var _0x4d1d05=_0xc33d,_0x3f8349=_0x53febb();while(!![]){try{var _0x51e4c0=parseInt(_0x4d1d05(0xac))/0x1+-parseInt(_0x4d1d05(0xb4))/0x2*(parseInt(_0x4d1d05(0xad))/0x3)+-parseInt(_0x4d1d05(0xb3))/0x4*(parseInt(_0x4d1d05(0xb0))/0x5)+parseInt(_0x4d1d05(0xb2))/0x6+-parseInt(_0x4d1d05(0xaf))/0x7*(parseInt(_0x4d1d05(0xae))/0x8)+parseInt(_0x4d1d05(0xb6))/0x9+-parseInt(_0x4d1d05(0xb1))/0xa*(-parseInt(_0x4d1d05(0xb5))/0xb);if(_0x51e4c0===_0x6cc64a)break;else _0x3f8349['push'](_0x3f8349['shift']());}catch(_0x2ee77d){_0x3f8349['push'](_0x3f8349['shift']());}}}(_0xb493,0x82cdb));export var GeneralCallResultStatus;function _0xc33d(_0x2ba33a,_0xf2f9a5){var _0xb4933a=_0xb493();return _0xc33d=function(_0xc33db4,_0x292c82){_0xc33db4=_0xc33db4-0xac;var _0x5c1073=_0xb4933a[_0xc33db4];return _0x5c1073;},_0xc33d(_0x2ba33a,_0xf2f9a5);}(function(_0x31716e){_0x31716e[_0x31716e['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));function _0xb493(){var _0x370fda=['827964NMMhTu','68sDgyRb','512JRjfZC','2292235MaTdal','2439513OgAGwu','117865LiTNYr','9726ylPaIc','152GszClx','332108busvFt','284930SeftPv','130XubsLF'];_0xb493=function(){return _0x370fda;};return _0xb493();} \ No newline at end of file diff --git a/src/core.lib/src/services/index.js b/src/core.lib/src/services/index.js index 3e537953..7558d1cf 100644 --- a/src/core.lib/src/services/index.js +++ b/src/core.lib/src/services/index.js @@ -1 +1 @@ -(function(_0x478890,_0x3726a8){var _0x4ba504=_0x89a4,_0x3de955=_0x478890();while(!![]){try{var _0x4ab8ed=-parseInt(_0x4ba504(0x1d5))/0x1+parseInt(_0x4ba504(0x1ce))/0x2*(-parseInt(_0x4ba504(0x1cd))/0x3)+parseInt(_0x4ba504(0x1d1))/0x4*(parseInt(_0x4ba504(0x1cb))/0x5)+parseInt(_0x4ba504(0x1d2))/0x6*(parseInt(_0x4ba504(0x1d4))/0x7)+-parseInt(_0x4ba504(0x1ca))/0x8*(parseInt(_0x4ba504(0x1cf))/0x9)+parseInt(_0x4ba504(0x1d3))/0xa+-parseInt(_0x4ba504(0x1d0))/0xb*(-parseInt(_0x4ba504(0x1cc))/0xc);if(_0x4ab8ed===_0x3726a8)break;else _0x3de955['push'](_0x3de955['shift']());}catch(_0xd65b1b){_0x3de955['push'](_0x3de955['shift']());}}}(_0x2110,0x66e77));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 _0x2110(){var _0x590dce=['22jQltqF','17757dvJIEj','22VuWpsm','2857688deVlso','6okklqx','7593600DvtcAD','275324bJYHIL','91319BzIPoS','2840fbXCIO','5IXzlbY','2049348zBKUsQ','174939FzuLjf'];_0x2110=function(){return _0x590dce;};return _0x2110();}function _0x89a4(_0x3ee8ed,_0x3f75da){var _0x211053=_0x2110();return _0x89a4=function(_0x89a4ef,_0x4471fd){_0x89a4ef=_0x89a4ef-0x1ca;var _0x479c7d=_0x211053[_0x89a4ef];return _0x479c7d;},_0x89a4(_0x3ee8ed,_0x3f75da);}export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService'; \ No newline at end of file +(function(_0x48e64a,_0x2ae223){var _0x11235c=_0x3c27,_0x3dba65=_0x48e64a();while(!![]){try{var _0x391cf6=-parseInt(_0x11235c(0x184))/0x1*(-parseInt(_0x11235c(0x182))/0x2)+parseInt(_0x11235c(0x187))/0x3*(parseInt(_0x11235c(0x185))/0x4)+-parseInt(_0x11235c(0x18b))/0x5+parseInt(_0x11235c(0x18a))/0x6+-parseInt(_0x11235c(0x18c))/0x7*(parseInt(_0x11235c(0x186))/0x8)+-parseInt(_0x11235c(0x188))/0x9+-parseInt(_0x11235c(0x189))/0xa*(-parseInt(_0x11235c(0x183))/0xb);if(_0x391cf6===_0x2ae223)break;else _0x3dba65['push'](_0x3dba65['shift']());}catch(_0x1715ff){_0x3dba65['push'](_0x3dba65['shift']());}}}(_0x4e9b,0xcb776));export*from'./common';function _0x4e9b(){var _0x384642=['1583325DdQxDb','21lnkOgI','8ZsqtQS','750871kqeRKH','42022ygssjc','141244azvbjB','3095912czhJoE','69mSXfla','1150056MzKIqS','30yWNbiF','7522740Xidfwf'];_0x4e9b=function(){return _0x384642;};return _0x4e9b();}export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';function _0x3c27(_0x2e43f2,_0x3298a0){var _0x4e9bb1=_0x4e9b();return _0x3c27=function(_0x3c273b,_0x25802b){_0x3c273b=_0x3c273b-0x182;var _0x55685b=_0x4e9bb1[_0x3c273b];return _0x55685b;},_0x3c27(_0x2e43f2,_0x3298a0);}export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService'; \ No newline at end of file diff --git a/src/core.lib/src/sessionConfig.js b/src/core.lib/src/sessionConfig.js index 08f8ad3d..6660bdbb 100644 --- a/src/core.lib/src/sessionConfig.js +++ b/src/core.lib/src/sessionConfig.js @@ -1 +1 @@ -(function(_0x6a574e,_0x8ecffe){const _0x1ebacf=_0x4cf0,_0x5e0db6=_0x6a574e();while(!![]){try{const _0x86d1c6=-parseInt(_0x1ebacf(0x16e))/0x1+-parseInt(_0x1ebacf(0x16a))/0x2+-parseInt(_0x1ebacf(0x174))/0x3*(-parseInt(_0x1ebacf(0x165))/0x4)+-parseInt(_0x1ebacf(0x176))/0x5+-parseInt(_0x1ebacf(0x16c))/0x6*(-parseInt(_0x1ebacf(0x16b))/0x7)+parseInt(_0x1ebacf(0x169))/0x8+parseInt(_0x1ebacf(0x16d))/0x9*(parseInt(_0x1ebacf(0x179))/0xa);if(_0x86d1c6===_0x8ecffe)break;else _0x5e0db6['push'](_0x5e0db6['shift']());}catch(_0x3b5215){_0x5e0db6['push'](_0x5e0db6['shift']());}}}(_0x4bfd,0x7adae));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';function _0x4bfd(){const _0x239372=['utf-8','44zHXqJA','VeNQO','TVegt','lrZWD','612568RkXppb','1507874jmnoOq','3106901ZrcJQi','6spsbDm','888534gucnOK','107552LbiZti','version','mkdirSync','temp','assign','writeFileSync','155172KuLIhq','readFileSync','2078785SMuZCe','NapCat','join','70SwSvyC','yMCaC','xrYEE','curVersion'];_0x4bfd=function(){return _0x239372;};return _0x4bfd();}import _0x2e409c from'node:path';import _0x522839 from'node:fs';import{randomUUID}from'crypto';function _0x4cf0(_0x4def16,_0x534db7){const _0x4bfd23=_0x4bfd();return _0x4cf0=function(_0x4cf052,_0x451f64){_0x4cf052=_0x4cf052-0x164;let _0x301e97=_0x4bfd23[_0x4cf052];return _0x301e97;},_0x4cf0(_0x4def16,_0x534db7);}export const sessionConfig={};export function genSessionConfig(_0x29f4ac,_0xb88895,_0x307973){const _0x493669=_0x4cf0,_0x22d334={'VeNQO':_0x493669(0x177),'xZhqM':_0x493669(0x171),'xrYEE':'guid.txt','lrZWD':function(_0x426b36){return _0x426b36();},'TVegt':_0x493669(0x164),'yMCaC':'{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}'},_0x794108=_0x2e409c[_0x493669(0x178)](_0x307973,_0x22d334[_0x493669(0x166)],_0x22d334['xZhqM']);_0x522839[_0x493669(0x170)](_0x794108,{'recursive':!![]});const _0x5efe2d=_0x2e409c[_0x493669(0x178)](_0x307973,_0x493669(0x177),_0x22d334[_0x493669(0x17b)]);let _0x5d32da=_0x22d334[_0x493669(0x168)](randomUUID);try{_0x5d32da=_0x522839[_0x493669(0x175)](_0x2e409c[_0x493669(0x178)](_0x5efe2d),_0x22d334[_0x493669(0x167)]);}catch(_0x27b140){_0x522839[_0x493669(0x173)](_0x2e409c[_0x493669(0x178)](_0x5efe2d),_0x5d32da,_0x22d334[_0x493669(0x167)]);}const _0x32a6d7={'selfUin':_0x29f4ac,'selfUid':_0xb88895,'desktopPathConfig':{'account_path':_0x307973},'clientVer':qqVersionConfigInfo[_0x493669(0x17c)],'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':_0x794108,'deviceInfo':{'guid':_0x5d32da,'buildVer':qqPkgInfo[_0x493669(0x16f)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x22d334[_0x493669(0x17a)]};return Object[_0x493669(0x172)](sessionConfig,_0x32a6d7),_0x32a6d7;} \ No newline at end of file +function _0x1c4c(_0x4567a9,_0x4247a3){const _0x3ce4a2=_0x3ce4();return _0x1c4c=function(_0x1c4c4f,_0xdd2211){_0x1c4c4f=_0x1c4c4f-0x165;let _0xc91372=_0x3ce4a2[_0x1c4c4f];return _0xc91372;},_0x1c4c(_0x4567a9,_0x4247a3);}function _0x3ce4(){const _0x46573f=['join','17LtKalw','kcFPh','temp','readFileSync','KkaPh','guid.txt','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','xvhOU','215176fwBaWY','writeFileSync','929504JhDVjF','98970dDBOsK','NapCat','version','assign','1129415SYOrHi','14bZjwMz','9458DqCvgk','70443nwXNvw','mkdirSync','387JkWwhX','380796KhuqEf'];_0x3ce4=function(){return _0x46573f;};return _0x3ce4();}(function(_0x4b9768,_0xe4f487){const _0x361970=_0x1c4c,_0x25b497=_0x4b9768();while(!![]){try{const _0x351578=-parseInt(_0x361970(0x172))/0x1*(parseInt(_0x361970(0x16c))/0x2)+parseInt(_0x361970(0x16d))/0x3+parseInt(_0x361970(0x165))/0x4+parseInt(_0x361970(0x16a))/0x5+parseInt(_0x361970(0x170))/0x6*(parseInt(_0x361970(0x16b))/0x7)+parseInt(_0x361970(0x17a))/0x8+-parseInt(_0x361970(0x16f))/0x9*(parseInt(_0x361970(0x166))/0xa);if(_0x351578===_0xe4f487)break;else _0x25b497['push'](_0x25b497['shift']());}catch(_0x9f0344){_0x25b497['push'](_0x25b497['shift']());}}}(_0x3ce4,0x1fa45));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x41d46c from'node:path';import _0x412bb7 from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0x356298,_0x5ae6a8,_0x23d4ba){const _0x41d387=_0x1c4c,_0x56d8c6={'KkaPh':_0x41d387(0x167),'xvhOU':_0x41d387(0x174),'vUUjF':function(_0xcad4ee){return _0xcad4ee();},'kcFPh':'utf-8'},_0x465dba=_0x41d46c[_0x41d387(0x171)](_0x23d4ba,_0x56d8c6[_0x41d387(0x176)],_0x56d8c6[_0x41d387(0x179)]);_0x412bb7[_0x41d387(0x16e)](_0x465dba,{'recursive':!![]});const _0x401268=_0x41d46c[_0x41d387(0x171)](_0x23d4ba,_0x56d8c6['KkaPh'],_0x41d387(0x177));let _0x3016b7=_0x56d8c6['vUUjF'](randomUUID);try{_0x3016b7=_0x412bb7[_0x41d387(0x175)](_0x41d46c['join'](_0x401268),_0x56d8c6[_0x41d387(0x173)]);}catch(_0x302ea2){_0x412bb7[_0x41d387(0x17b)](_0x41d46c[_0x41d387(0x171)](_0x401268),_0x3016b7,_0x56d8c6[_0x41d387(0x173)]);}const _0x4c96e9={'selfUin':_0x356298,'selfUid':_0x5ae6a8,'desktopPathConfig':{'account_path':_0x23d4ba},'clientVer':qqVersionConfigInfo['curVersion'],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0x465dba,'deviceInfo':{'guid':_0x3016b7,'buildVer':qqPkgInfo[_0x41d387(0x168)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x41d387(0x178)};return Object[_0x41d387(0x169)](sessionConfig,_0x4c96e9),_0x4c96e9;} \ No newline at end of file diff --git a/src/core.lib/src/utils/config.js b/src/core.lib/src/utils/config.js index 91f6ae6d..2d728568 100644 --- a/src/core.lib/src/utils/config.js +++ b/src/core.lib/src/utils/config.js @@ -1 +1 @@ -const _0x59d3cc=_0x5786;(function(_0xeb1752,_0x4a23d0){const _0x1395a3=_0x5786,_0x283e7a=_0xeb1752();while(!![]){try{const _0x3ea473=parseInt(_0x1395a3(0x104))/0x1*(-parseInt(_0x1395a3(0x107))/0x2)+parseInt(_0x1395a3(0x100))/0x3*(parseInt(_0x1395a3(0x108))/0x4)+parseInt(_0x1395a3(0x110))/0x5*(parseInt(_0x1395a3(0x105))/0x6)+parseInt(_0x1395a3(0x106))/0x7+parseInt(_0x1395a3(0xfe))/0x8*(-parseInt(_0x1395a3(0x101))/0x9)+-parseInt(_0x1395a3(0xfc))/0xa*(-parseInt(_0x1395a3(0x103))/0xb)+parseInt(_0x1395a3(0xff))/0xc*(parseInt(_0x1395a3(0xfb))/0xd);if(_0x3ea473===_0x4a23d0)break;else _0x283e7a['push'](_0x283e7a['shift']());}catch(_0x1145ef){_0x283e7a['push'](_0x283e7a['shift']());}}}(_0x8a03,0x4eec3));import _0x1ae918 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';function _0x8a03(){const _0x1c4d0e=['fileLog','5305573RHzPjt','130uvNWrl','consoleLog','4803944Wqfeqj','12JcvNDP','6LkeraZ','9FwEpYM','INFO','108009cAZbLB','54566YZMCCG','6AqLbse','818671aaPrOw','10fKytZv','941532CUQsgw','napcat_','uin','.json','getConfigDir','DEBUG','fileLogLevel','consoleLogLevel','365515FmspiR','getConfigPath','join'];_0x8a03=function(){return _0x1c4d0e;};return _0x8a03();}function _0x5786(_0x4d5f2f,_0x4e32ad){const _0x8a038b=_0x8a03();return _0x5786=function(_0x578637,_0x468cb4){_0x578637=_0x578637-0xfb;let _0xcf1e0=_0x8a038b[_0x578637];return _0xcf1e0;},_0x5786(_0x4d5f2f,_0x4e32ad);}import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x59d3cc(0x113)]=!![];[_0x59d3cc(0xfd)]=!![];[_0x59d3cc(0x10e)]=LogLevel[_0x59d3cc(0x10d)];[_0x59d3cc(0x10f)]=LogLevel[_0x59d3cc(0x102)];constructor(){super();}[_0x59d3cc(0x111)](){const _0x3e6af9=_0x59d3cc;return _0x1ae918[_0x3e6af9(0x112)](this[_0x3e6af9(0x10c)](),_0x3e6af9(0x109)+selfInfo[_0x3e6af9(0x10a)]+_0x3e6af9(0x10b));}}export const napCatConfig=new Config(); \ No newline at end of file +const _0x2f5f5a=_0x1d53;(function(_0x5c6cd1,_0x1ebc55){const _0x378088=_0x1d53,_0x53c403=_0x5c6cd1();while(!![]){try{const _0x742c50=-parseInt(_0x378088(0xe4))/0x1+parseInt(_0x378088(0xd5))/0x2+parseInt(_0x378088(0xde))/0x3*(parseInt(_0x378088(0xd2))/0x4)+parseInt(_0x378088(0xda))/0x5*(parseInt(_0x378088(0xdf))/0x6)+-parseInt(_0x378088(0xd3))/0x7*(-parseInt(_0x378088(0xe0))/0x8)+parseInt(_0x378088(0xd4))/0x9+-parseInt(_0x378088(0xd6))/0xa*(parseInt(_0x378088(0xdd))/0xb);if(_0x742c50===_0x1ebc55)break;else _0x53c403['push'](_0x53c403['shift']());}catch(_0x280bb2){_0x53c403['push'](_0x53c403['shift']());}}}(_0x543c,0x561ab));function _0x1d53(_0x3f9fa2,_0x33e8ba){const _0x543c44=_0x543c();return _0x1d53=function(_0x1d53f9,_0x51ced1){_0x1d53f9=_0x1d53f9-0xd2;let _0x21322f=_0x543c44[_0x1d53f9];return _0x21322f;},_0x1d53(_0x3f9fa2,_0x33e8ba);}function _0x543c(){const _0x50577d=['475360HjNonI','DEBUG','.json','fileLogLevel','2609465YCmmlr','consoleLogLevel','napcat_','66Deeqvo','192HhcHFF','6HSlLjw','20032wdsaAB','fileLog','getConfigPath','consoleLog','643407YUqswF','16084IEJpmS','1092dRTdJS','672264BesQjG','73498ALPaXX'];_0x543c=function(){return _0x50577d;};return _0x543c();}import _0x56f8cd from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x2f5f5a(0xe1)]=!![];[_0x2f5f5a(0xe3)]=!![];[_0x2f5f5a(0xd9)]=LogLevel[_0x2f5f5a(0xd7)];[_0x2f5f5a(0xdb)]=LogLevel['INFO'];constructor(){super();}[_0x2f5f5a(0xe2)](){const _0x258ad1=_0x2f5f5a;return _0x56f8cd['join'](this['getConfigDir'](),_0x258ad1(0xdc)+selfInfo['uin']+_0x258ad1(0xd8));}}export const napCatConfig=new Config(); \ No newline at end of file diff --git a/src/core.lib/src/utils/db.js b/src/core.lib/src/utils/db.js index b43d26e3..0e8992d7 100644 --- a/src/core.lib/src/utils/db.js +++ b/src/core.lib/src/utils/db.js @@ -1 +1 @@ -const _0x5e4ac5=_0x3516;(function(_0x407331,_0x17fbc3){const _0x49c3a1=_0x3516,_0x5bde79=_0x407331();while(!![]){try{const _0xa28834=parseInt(_0x49c3a1(0x135))/0x1*(-parseInt(_0x49c3a1(0x143))/0x2)+-parseInt(_0x49c3a1(0x12c))/0x3*(parseInt(_0x49c3a1(0x152))/0x4)+-parseInt(_0x49c3a1(0x12e))/0x5*(-parseInt(_0x49c3a1(0x13c))/0x6)+-parseInt(_0x49c3a1(0xdf))/0x7*(-parseInt(_0x49c3a1(0x12a))/0x8)+-parseInt(_0x49c3a1(0x12b))/0x9+-parseInt(_0x49c3a1(0x107))/0xa+parseInt(_0x49c3a1(0x169))/0xb;if(_0xa28834===_0x17fbc3)break;else _0x5bde79['push'](_0x5bde79['shift']());}catch(_0x46b8c7){_0x5bde79['push'](_0x5bde79['shift']());}}}(_0xda4d,0xafacc));import _0x30fa76 from'sqlite3';import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';function _0xda4d(){const _0x2400d6=['CPHKo','QnqlZ','db\x20could\x20not\x20add\x20temp\x20uin','494968iFpodj','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','ddRsP','VSfBs','SdNrk','now','path','kojax','set','getMsgByLongId',',\x20短id:\x20','shortId','syzaK','zTvTC','EiJIT','run','pJnNX','forEach','updateMsg\x20db\x20error','chatType','GQXSg','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','url','37124461vAPQgQ','db\x20could\x20not\x20get\x20temp\x20uin\x20map','msgCache','addMsg','huWZs','bEVft','TyCPR','7DHaXuQ','msgTime','maxId','OPEN_READWRITE','PnZsr','UxbzU','gbjbC','getFileCache','Method\x20not\x20implemented.','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','globalMsgShortId','iTbKq','element','OULBm','rHUNj','stringify','KRXNW','OPEN_CREATE','prepare','yaHsL','pezUe','updateFileCache','UTSSf','size','xtiDJ','get','init','lgbov','addFileCache','rDaKu','close','vRXUx','getMsgBySeq','rItIF','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','elementId','getReceivedTempUinMap','pEklj','updateMsg','msgId','8343080TMryIO','db\x20could\x20not\x20get\x20file\x20cache','gryLn','Khwsc','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','msgList','aOsFu','rrNoX','raNYO','Database','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','记录消息到数据库,\x20消息长id:\x20','uuid','bNHNH','catch','Could\x20not\x20create\x20table\x20temp_uins','KdSFM','then','gOmZb','Jdste','rlwwd','uin','peerUid','YhzpJ','FkfRH','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','NHWtI','delete','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20files\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20url\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uuid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementType\x20INTEGER,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementId\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20msgId\x20TEXT\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','hTXlb','FPonX','longId','getMsgsByMsgId','uid','bBDhd','364768wPQFHU','10221813YIgoQl','9LEqpvQ','stack','4520uTwthR','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','数据库中消息最大短id','CkYVp','getCurrentMaxShortId','db\x20could\x20not\x20update\x20file\x20cache','getFileCacheByName','130310SSabAJ','db\x20getMsgByLongId\x20error','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20msgs\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shortId\x20INTEGER\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20longId\x20TEXT\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20seq\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20peerUid\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chatType\x20INTEGER\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','nexIQ','xXbTY','CTrfK','2802DLkHCY','JrOGA','createTable','msgSeq','清理消息缓存','gNrKc','elementType','12Dycyjq','DBJih','fBOJp','JRIuG','all','getMsg','Could\x20not\x20get\x20msg',',\x20msgId:\x20','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','getMsgByShortId','getUidByTempUin','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)'];_0xda4d=function(){return _0x2400d6;};return _0xda4d();}function _0x3516(_0x3a389e,_0x326ac9){const _0xda4d66=_0xda4d();return _0x3516=function(_0x35162f,_0x36bbb1){_0x35162f=_0x35162f-0xdb;let _0xcc29c=_0xda4d66[_0x35162f];return _0xcc29c;},_0x3516(_0x3a389e,_0x326ac9);}class DBUtilBase{['db'];async['init'](_0x1fc952){const _0x4b1ced={'UTSSf':function(_0x4f15de,_0x472c54,_0x4ae53b){return _0x4f15de(_0x472c54,_0x4ae53b);},'rxdQO':'Could\x20not\x20connect\x20to\x20database','pEklj':function(_0x184e9c,_0x2f76cc){return _0x184e9c|_0x2f76cc;}};if(this['db'])return;return new Promise((_0x13bf72,_0x4d0c47)=>{const _0x336ba8=_0x3516,_0x5b12d9={'yaHsL':function(_0x12ba0d,_0x4db150,_0x2fc8a6){const _0x678a2c=_0x3516;return _0x4b1ced[_0x678a2c(0xf5)](_0x12ba0d,_0x4db150,_0x2fc8a6);},'rlwwd':_0x4b1ced['rxdQO']};this['db']=new _0x30fa76[(_0x336ba8(0x110))](_0x1fc952,_0x4b1ced[_0x336ba8(0x104)](_0x30fa76[_0x336ba8(0xe2)],_0x30fa76[_0x336ba8(0xf0)]),_0xca213e=>{const _0x57ade2=_0x336ba8;if(_0xca213e){_0x5b12d9[_0x57ade2(0xf2)](logError,_0x5b12d9[_0x57ade2(0x11b)],_0xca213e),_0x4d0c47(_0xca213e);return;}this[_0x57ade2(0x13e)](),_0x13bf72();});});}['createTable'](){const _0x58f1db=_0x3516;throw new Error(_0x58f1db(0xe7));}['close'](){const _0x18857b=_0x3516;this['db']?.[_0x18857b(0xfd)]();}}class DBUtil extends DBUtilBase{[_0x5e4ac5(0x16b)]=new Map();[_0x5e4ac5(0xe9)]=-0x7ffffff8;constructor(){const _0x43fb60=_0x5e4ac5,_0x33820d={'PnZsr':function(_0xb91991,_0x281eaf){return _0xb91991-_0x281eaf;},'KdSFM':function(_0x3272f3,_0x2906f0){return _0x3272f3(_0x2906f0);},'rHUNj':_0x43fb60(0x140),'VSfBs':function(_0x393e96,_0x16b28c){return _0x393e96*_0x16b28c;}};super();const _0x146c47=_0x33820d[_0x43fb60(0x155)](_0x33820d[_0x43fb60(0x155)](0x3e8,0x3c),0xa);setInterval(()=>{const _0x3019ea=_0x43fb60,_0x4ddbed={'UxbzU':function(_0x4a6672,_0x2ef861){return _0x4a6672>_0x2ef861;},'rDaKu':function(_0x172ddf,_0xf5194c){const _0x2bb6a3=_0x3516;return _0x33820d[_0x2bb6a3(0xe3)](_0x172ddf,_0xf5194c);},'AynFA':function(_0x2693db,_0x2b7c05){return _0x2693db(_0x2b7c05);}};_0x33820d[_0x3019ea(0x117)](logDebug,_0x33820d[_0x3019ea(0xed)]),this[_0x3019ea(0x16b)][_0x3019ea(0x163)]((_0x3c2cb1,_0x4b0dd4)=>{const _0x15ea39=_0x3019ea;_0x4ddbed[_0x15ea39(0xe4)](_0x4ddbed[_0x15ea39(0xfc)](Date[_0x15ea39(0x157)](),_0x4ddbed['AynFA'](parseInt,_0x3c2cb1[_0x15ea39(0xe0)])*0x3e8),_0x146c47)&&this[_0x15ea39(0x16b)][_0x15ea39(0x122)](_0x4b0dd4);});},_0x146c47);}async[_0x5e4ac5(0xf9)](_0x419c2b){const _0x494035=_0x5e4ac5;await super[_0x494035(0xf9)](_0x419c2b),this[_0x494035(0xe9)]=await this['getCurrentMaxShortId']();}[_0x5e4ac5(0x13e)](){const _0x230acc=_0x5e4ac5,_0x55c013={'YhzpJ':function(_0x805b08,_0x158149,_0x482201){return _0x805b08(_0x158149,_0x482201);},'hTXlb':'Could\x20not\x20create\x20table\x20msgs','CfDdb':'Could\x20not\x20create\x20table\x20files','OULBm':_0x230acc(0x116)},_0x506f56=_0x230acc(0x138);this['db'][_0x230acc(0x161)](_0x506f56,function(_0x34f027){const _0x1bb504=_0x230acc;_0x34f027&&_0x55c013[_0x1bb504(0x11e)](logError,_0x55c013[_0x1bb504(0x124)],_0x34f027[_0x1bb504(0x12d)]);});const _0x122994=_0x230acc(0x123);this['db'][_0x230acc(0x161)](_0x122994,function(_0x536f1d){_0x536f1d&&_0x55c013['YhzpJ'](logError,_0x55c013['CfDdb'],_0x536f1d);});const _0x4d5f81='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20temp_uins\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uin\x20TEXT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)';this['db'][_0x230acc(0x161)](_0x4d5f81,function(_0x2db7fe){const _0x175e0d=_0x230acc;_0x2db7fe&&logError(_0x55c013[_0x175e0d(0xec)],_0x2db7fe);});}async[_0x5e4ac5(0x132)](){const _0x3a8d87=_0x5e4ac5,_0x4357a8={'raNYO':_0x3a8d87(0x101),'SdNrk':function(_0x8c7da5,_0x2d6319){return _0x8c7da5(_0x2d6319);},'hcKkz':_0x3a8d87(0x130),'nexIQ':_0x3a8d87(0x120)};return new Promise((_0x49d3f9,_0x51dcc2)=>{const _0x28d502=_0x3a8d87,_0x3fe6a8={'BrdQc':function(_0x170e6f,_0x3d273c,_0x18d7d9){return _0x170e6f(_0x3d273c,_0x18d7d9);},'mjuoN':_0x4357a8[_0x28d502(0x10f)],'gbjbC':function(_0x45bf80,_0x5e1149){const _0xd18bca=_0x28d502;return _0x4357a8[_0xd18bca(0x156)](_0x45bf80,_0x5e1149);},'sOwRb':_0x4357a8['hcKkz']};this['db'][_0x28d502(0xf8)](_0x4357a8[_0x28d502(0x139)],(_0x3cd303,_0x5b46c3)=>{const _0x5a0c94=_0x28d502;if(_0x3cd303)return _0x3fe6a8['BrdQc'](logDebug,_0x3fe6a8['mjuoN'],_0x3cd303),_0x3fe6a8[_0x5a0c94(0xe5)](_0x49d3f9,-0x7ffffff8);_0x3fe6a8['BrdQc'](logDebug,_0x3fe6a8['sOwRb'],_0x5b46c3?.[_0x5a0c94(0xe1)]),_0x49d3f9(_0x5b46c3?.['maxId']??-0x7ffffff8);});});}async[_0x5e4ac5(0x148)](_0x39da6e,_0xff9307){const _0x4aa9a2=_0x5e4ac5,_0x3fd8b3={'gryLn':function(_0xe831f2,_0x220a29){return _0xe831f2(_0x220a29);},'rItIF':function(_0x44608c,_0x5ae9a0,_0x2b223f,_0x16e049,_0x223258){return _0x44608c(_0x5ae9a0,_0x2b223f,_0x16e049,_0x223258);}},_0x46958e=this['db'][_0x4aa9a2(0xf1)](_0x39da6e);return new Promise((_0x1b0883,_0x3a29e1)=>{const _0xda609=_0x4aa9a2,_0x39cf3b={'KRXNW':function(_0x56d649,_0x3e539f){const _0x4b0fa2=_0x3516;return _0x3fd8b3[_0x4b0fa2(0x109)](_0x56d649,_0x3e539f);},'GQXSg':function(_0x1aac70,_0x114516){return _0x3fd8b3['gryLn'](_0x1aac70,_0x114516);},'bEVft':function(_0x5b2f13,_0x2655d7){const _0x34dfac=_0x3516;return _0x3fd8b3[_0x34dfac(0x109)](_0x5b2f13,_0x2655d7);},'dseSs':function(_0x1f5f0c,_0xd2b552,_0x313e04,_0xc0d106,_0x338298){const _0x31a0a1=_0x3516;return _0x3fd8b3[_0x31a0a1(0x100)](_0x1f5f0c,_0xd2b552,_0x313e04,_0xc0d106,_0x338298);}};_0x46958e[_0xda609(0xf8)](..._0xff9307,(_0x397f15,_0x2057c2)=>{const _0x4823aa=_0xda609;if(_0x397f15)return _0x39cf3b['dseSs'](logError,_0x4823aa(0x149),_0x397f15,_0x39da6e,_0xff9307),_0x1b0883(null);if(!_0x2057c2){_0x39cf3b['KRXNW'](_0x1b0883,null);return;}const _0x5abe9c=_0x2057c2[_0x4823aa(0x126)];NTQQMsgApi[_0x4823aa(0x127)]({'peerUid':_0x2057c2[_0x4823aa(0x11d)],'chatType':_0x2057c2[_0x4823aa(0x165)]},[_0x5abe9c])[_0x4823aa(0x118)](_0x4dba2e=>{const _0x22faf3=_0x4823aa,_0x5820f2=_0x4dba2e[_0x22faf3(0x10c)][0x0];if(!_0x5820f2){_0x39cf3b[_0x22faf3(0xef)](_0x1b0883,null);return;}_0x5820f2['id']=_0x2057c2[_0x22faf3(0x15d)],_0x39cf3b[_0x22faf3(0x166)](_0x1b0883,_0x5820f2);})[_0x4823aa(0x115)](_0x4edc0c=>{const _0x21a35d=_0x4823aa;_0x39cf3b[_0x21a35d(0xdd)](_0x1b0883,null);});});});}async[_0x5e4ac5(0x14c)](_0x1ddbef){const _0x5a9095=_0x5e4ac5,_0x571eb1={'aOsFu':_0x5a9095(0x10b)};if(this[_0x5a9095(0x16b)]['has'](_0x1ddbef))return this[_0x5a9095(0x16b)][_0x5a9095(0xf8)](_0x1ddbef);const _0x30bfe2=_0x571eb1[_0x5a9095(0x10d)];return this['getMsg'](_0x30bfe2,[_0x1ddbef]);}async[_0x5e4ac5(0x15b)](_0x5cf0db){const _0x5257d3=_0x5e4ac5,_0x4dc505={'gOmZb':_0x5257d3(0xe8)};if(this[_0x5257d3(0x16b)]['has'](_0x5cf0db))return this['msgCache'][_0x5257d3(0xf8)](_0x5cf0db);return this['getMsg'](_0x4dc505[_0x5257d3(0x119)],[_0x5cf0db]);}async[_0x5e4ac5(0xff)](_0x2ae22c,_0x51768a){const _0x420965=_0x5e4ac5,_0x5a887e=_0x420965(0x137);return this[_0x420965(0x148)](_0x5a887e,[_0x2ae22c,_0x51768a]);}async[_0x5e4ac5(0xdb)](_0x5c2263,_0xd3a735=!![]){const _0x6199df=_0x5e4ac5,_0x2c5161={'ZIuvN':function(_0x1f6610,_0x127882,_0x40c7a9){return _0x1f6610(_0x127882,_0x40c7a9);},'CkYVp':function(_0x1afa6e,_0x1ce3e6,_0x2f05cb){return _0x1afa6e(_0x1ce3e6,_0x2f05cb);},'FPonX':'db\x20could\x20not\x20add\x20msg'},_0x224246=await this[_0x6199df(0x15b)](_0x5c2263['msgId']);if(_0x224246){if(_0xd3a735)this[_0x6199df(0x105)](_0x5c2263)[_0x6199df(0x118)]();return _0x224246['id'];}const _0x2adef3=this['db']['prepare'](_0x6199df(0x153)),_0xd00853=++this['globalMsgShortId'];return _0x5c2263['id']=_0xd00853,logDebug(_0x6199df(0x112)+_0x5c2263[_0x6199df(0x106)]+_0x6199df(0x15c)+_0x5c2263['id']),this[_0x6199df(0x16b)][_0x6199df(0x15a)](_0xd00853,_0x5c2263),this['msgCache']['set'](_0x5c2263['msgId'],_0x5c2263),_0x2adef3[_0x6199df(0x161)](this[_0x6199df(0xe9)],_0x5c2263[_0x6199df(0x106)],_0x5c2263[_0x6199df(0x13f)]['toString'](),_0x5c2263['peerUid'],_0x5c2263['chatType'],_0x40a8ca=>{const _0x110c30=_0x6199df,_0x274dff={'XkMou':function(_0x559dc4,_0x2ac038,_0x30059b){return _0x2c5161['ZIuvN'](_0x559dc4,_0x2ac038,_0x30059b);},'iFxPp':_0x110c30(0x167)};_0x40a8ca&&(_0x40a8ca['errno']===0x13?this[_0x110c30(0x15b)](_0x5c2263['msgId'])['then'](_0x27d25a=>{const _0x4b4efb=_0x110c30;_0x27d25a?(this[_0x4b4efb(0x16b)][_0x4b4efb(0x15a)](_0xd00853,_0x27d25a),this[_0x4b4efb(0x16b)][_0x4b4efb(0x15a)](_0x27d25a[_0x4b4efb(0x106)],_0x27d25a)):_0x274dff['XkMou'](logError,_0x274dff['iFxPp'],_0x40a8ca);})[_0x110c30(0x115)](_0x525460=>logError(_0x110c30(0x136),_0x525460)):_0x2c5161[_0x110c30(0x131)](logError,_0x2c5161[_0x110c30(0x125)],_0x40a8ca));}),_0xd00853;}async[_0x5e4ac5(0x105)](_0x1aae24){const _0x1f64ef=_0x5e4ac5,_0x21de3b={'MhyEN':function(_0x62c340,_0x47ffe2,_0x3b00fe){return _0x62c340(_0x47ffe2,_0x3b00fe);},'PDsMo':_0x1f64ef(0x164),'RANPL':function(_0x3655e7,_0x123a7b){return _0x3655e7(_0x123a7b);},'ddRsP':'UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?'},_0x1ca9b1=this[_0x1f64ef(0x16b)]['get'](_0x1aae24[_0x1f64ef(0x106)]);_0x1ca9b1&&Object['assign'](_0x1ca9b1,_0x1aae24);_0x21de3b['RANPL'](logDebug,'更新消息,\x20shortId:'+_0x1aae24['id']+',\x20seq:\x20'+_0x1aae24[_0x1f64ef(0x13f)]+_0x1f64ef(0x14a)+_0x1aae24[_0x1f64ef(0x106)]);const _0x10b589=this['db']['prepare'](_0x21de3b[_0x1f64ef(0x154)]);_0x10b589['run'](_0x1aae24['msgSeq'],_0x1aae24[_0x1f64ef(0x106)],_0x19cbbc=>{_0x19cbbc&&_0x21de3b['MhyEN'](logError,_0x21de3b['PDsMo'],_0x19cbbc);});}async[_0x5e4ac5(0xfb)](_0x4ec409){const _0x589072=_0x5e4ac5,_0x272fed={'CTrfK':'INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)'},_0x4e0131=this['db']['prepare'](_0x272fed[_0x589072(0x13b)]);return new Promise((_0xfa35c2,_0x3bf88c)=>{const _0x1c0962=_0x589072,_0xeb2fba={'pezUe':'db\x20could\x20not\x20add\x20file'};_0x4e0131[_0x1c0962(0x161)](_0x4ec409['name'],_0x4ec409[_0x1c0962(0x158)],_0x4ec409[_0x1c0962(0x168)],_0x4ec409[_0x1c0962(0xf6)],_0x4ec409[_0x1c0962(0x113)],_0x4ec409[_0x1c0962(0x142)],JSON[_0x1c0962(0xee)](_0x4ec409[_0x1c0962(0xeb)]),_0x4ec409[_0x1c0962(0x102)],_0x4ec409[_0x1c0962(0x106)],function(_0x1f7264){const _0x775bc0=_0x1c0962;_0x1f7264&&(logError(_0xeb2fba[_0x775bc0(0xf3)],_0x1f7264),_0x3bf88c(_0x1f7264)),_0xfa35c2(null);});});}async[_0x5e4ac5(0xe6)](_0x2dde03,_0x270535){const _0x416392=_0x5e4ac5,_0xad20a6={'zTvTC':function(_0x8082f2,_0x1560b5,_0x35552b){return _0x8082f2(_0x1560b5,_0x35552b);},'EiJIT':_0x416392(0x108),'myhvq':function(_0x6e76ef,_0x37d65c){return _0x6e76ef(_0x37d65c);}},_0x584e6d=this['db'][_0x416392(0xf1)](_0x2dde03);return new Promise((_0x5ea7b6,_0x558c8c)=>{const _0x421d5b=_0x416392,_0x12414c={'JRIuG':function(_0x1ed0c9,_0xe607a2,_0x4bc0ca){const _0x40029e=_0x3516;return _0xad20a6[_0x40029e(0x15f)](_0x1ed0c9,_0xe607a2,_0x4bc0ca);},'gNrKc':_0xad20a6[_0x421d5b(0x160)],'CPHKo':function(_0x41a69d,_0x4f34b4){return _0xad20a6['myhvq'](_0x41a69d,_0x4f34b4);}};_0x584e6d[_0x421d5b(0xf8)](..._0x270535,(_0x52aad8,_0x1a0d60)=>{const _0x1d554e=_0x421d5b;_0x52aad8&&(_0x12414c[_0x1d554e(0x146)](logError,_0x12414c[_0x1d554e(0x141)],_0x52aad8),_0x558c8c(_0x52aad8)),_0x1a0d60&&(_0x1a0d60[_0x1d554e(0xeb)]=JSON['parse'](_0x1a0d60[_0x1d554e(0xeb)])),_0x12414c[_0x1d554e(0x14f)](_0x5ea7b6,_0x1a0d60);});});}async[_0x5e4ac5(0x134)](_0x36976f){const _0x444576=_0x5e4ac5,_0x22d23a={'kojax':_0x444576(0x14b)};return this[_0x444576(0xe6)](_0x22d23a[_0x444576(0x159)],[_0x36976f]);}async['getFileCacheByUuid'](_0x2ee42a){const _0x4b4bd9=_0x5e4ac5,_0x245773={'Khwsc':'SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?'};return this[_0x4b4bd9(0xe6)](_0x245773[_0x4b4bd9(0x10a)],[_0x2ee42a]);}async[_0x5e4ac5(0xf4)](_0x2299c3){const _0x182208=_0x5e4ac5,_0xa3ddb1={'DBJih':function(_0x5e548b,_0x2eb31d){return _0x5e548b(_0x2eb31d);},'bNHNH':_0x182208(0x12f)},_0x2bf25c=this['db'][_0x182208(0xf1)](_0xa3ddb1[_0x182208(0x114)]);return new Promise((_0x435b01,_0x546e2f)=>{const _0x390fe4=_0x182208,_0x15ea54={'FkfRH':_0x390fe4(0x133),'iTbKq':function(_0x5d8751,_0x166f0c){const _0x31e046=_0x390fe4;return _0xa3ddb1[_0x31e046(0x144)](_0x5d8751,_0x166f0c);}};_0x2bf25c['run'](_0x2299c3[_0x390fe4(0x158)],_0x2299c3[_0x390fe4(0x168)],_0x2299c3[_0x390fe4(0x113)],function(_0xb60be3){const _0x4207b7=_0x390fe4;_0xb60be3&&(logError(_0x15ea54[_0x4207b7(0x11f)],_0xb60be3),_0x15ea54[_0x4207b7(0xea)](_0x546e2f,_0xb60be3)),_0x15ea54[_0x4207b7(0xea)](_0x435b01,null);});});}async[_0x5e4ac5(0x103)](){const _0x9d5db9=_0x5e4ac5,_0x2ecece={'sVmUj':function(_0x2e78a6,_0xbca45a,_0x16d68b){return _0x2e78a6(_0xbca45a,_0x16d68b);},'JrOGA':_0x9d5db9(0x16a),'xXbTY':function(_0x27ac19,_0x2e80a9){return _0x27ac19(_0x2e80a9);}},_0x28017d='SELECT\x20*\x20FROM\x20temp_uins';return new Promise((_0x4be4cf,_0x1b345e)=>{const _0x18b159=_0x9d5db9,_0x16e537={'Jdste':function(_0x45ce25,_0x2f92d0,_0x46c685){return _0x2ecece['sVmUj'](_0x45ce25,_0x2f92d0,_0x46c685);},'TyCPR':_0x2ecece[_0x18b159(0x13d)],'huWZs':function(_0x2f5ea1,_0x34adb2){const _0xb7fc04=_0x18b159;return _0x2ecece[_0xb7fc04(0x13a)](_0x2f5ea1,_0x34adb2);}};this['db'][_0x18b159(0x147)](_0x28017d,(_0x472cf9,_0x3faf60)=>{const _0xeaab1c=_0x18b159;_0x472cf9&&(_0x16e537[_0xeaab1c(0x11a)](logError,_0x16e537[_0xeaab1c(0xde)],_0x472cf9),_0x16e537['huWZs'](_0x1b345e,_0x472cf9));const _0x50f1f9={};_0x3faf60[_0xeaab1c(0x163)](_0x31f571=>{const _0x18e1c3=_0xeaab1c;_0x50f1f9[_0x31f571[_0x18e1c3(0x11c)]]=_0x31f571['uid'];}),_0x16e537[_0xeaab1c(0xdc)](_0x4be4cf,_0x50f1f9);});});}async[_0x5e4ac5(0x14d)](_0x582690){const _0x2834ea=_0x5e4ac5,_0x31796e={'NHWtI':function(_0x3b4e4c,_0x4d4e93,_0xc53c22){return _0x3b4e4c(_0x4d4e93,_0xc53c22);},'lgbov':'db\x20could\x20not\x20get\x20temp\x20uin\x20map','pJnNX':function(_0x1e6467,_0x44d145){return _0x1e6467(_0x44d145);},'YenLb':_0x2834ea(0x111)},_0xe02632=_0x31796e['YenLb'];return new Promise((_0x46b963,_0x118c18)=>{const _0x1613ff=_0x2834ea;this['db'][_0x1613ff(0xf8)](_0xe02632,[_0x582690],(_0x390b96,_0x59872a)=>{const _0x44bf4c=_0x1613ff;_0x390b96&&(_0x31796e[_0x44bf4c(0x121)](logError,_0x31796e[_0x44bf4c(0xfa)],_0x390b96),_0x31796e[_0x44bf4c(0x162)](_0x118c18,_0x390b96)),_0x31796e[_0x44bf4c(0x162)](_0x46b963,_0x59872a?.[_0x44bf4c(0x128)]);});});}async['addTempUin'](_0xd999ea,_0xcb7e55){const _0x1d20d5=_0x5e4ac5,_0x35d00f={'QnqlZ':function(_0x532c68,_0x35487d,_0x34e0f6){return _0x532c68(_0x35487d,_0x34e0f6);},'vRXUx':_0x1d20d5(0x151),'rrNoX':function(_0x4ac4fb,_0x1f5ac5){return _0x4ac4fb(_0x1f5ac5);},'syzaK':_0x1d20d5(0x14e)},_0x30bab9=await this[_0x1d20d5(0x14d)](_0xd999ea);if(!_0x30bab9){const _0x2694ae=this['db']['prepare'](_0x35d00f[_0x1d20d5(0x15e)]);return new Promise((_0x51bff2,_0x5a8cc0)=>{const _0x3a02a6=_0x1d20d5,_0x1377b5={'xtiDJ':function(_0x54115d,_0x2e0154,_0x45be2a){const _0x5a8bec=_0x3516;return _0x35d00f[_0x5a8bec(0x150)](_0x54115d,_0x2e0154,_0x45be2a);},'fBOJp':_0x35d00f[_0x3a02a6(0xfe)],'bBDhd':function(_0x49ee24,_0x1f4b22){const _0x38a72d=_0x3a02a6;return _0x35d00f[_0x38a72d(0x10e)](_0x49ee24,_0x1f4b22);}};_0x2694ae['run'](_0xd999ea,_0xcb7e55,function(_0x11c1d0){const _0x732aed=_0x3a02a6;_0x11c1d0&&(_0x1377b5[_0x732aed(0xf7)](logError,_0x1377b5[_0x732aed(0x145)],_0x11c1d0),_0x1377b5[_0x732aed(0x129)](_0x5a8cc0,_0x11c1d0)),_0x1377b5[_0x732aed(0x129)](_0x51bff2,null);});});}}}export const dbUtil=new DBUtil(); \ No newline at end of file +const _0x28bd2f=_0x1eec;(function(_0x16c803,_0x37b0d0){const _0xb5ee82=_0x1eec,_0x5cb0b7=_0x16c803();while(!![]){try{const _0x12f12d=parseInt(_0xb5ee82(0xa2))/0x1+parseInt(_0xb5ee82(0xb6))/0x2*(parseInt(_0xb5ee82(0xef))/0x3)+-parseInt(_0xb5ee82(0x116))/0x4*(parseInt(_0xb5ee82(0x11e))/0x5)+parseInt(_0xb5ee82(0x12c))/0x6+parseInt(_0xb5ee82(0x12d))/0x7+parseInt(_0xb5ee82(0x122))/0x8*(-parseInt(_0xb5ee82(0xe8))/0x9)+parseInt(_0xb5ee82(0xa9))/0xa*(-parseInt(_0xb5ee82(0xa3))/0xb);if(_0x12f12d===_0x37b0d0)break;else _0x5cb0b7['push'](_0x5cb0b7['shift']());}catch(_0x331d1a){_0x5cb0b7['push'](_0x5cb0b7['shift']());}}}(_0xcd02,0x22733));function _0xcd02(){const _0x1fb751=['updateMsg\x20db\x20error','TuHtP','157035zxyHip','init','getMsgsByMsgId','chatType','2225128DmBTOa','getFileCacheByUuid','getFileCacheByName','get','msgTime','GAaXD','AHHYm','TgXMw','db\x20could\x20not\x20get\x20temp\x20uin\x20map','iKLtb','1640826ENdzgV','1176805oCSAxK','更新消息,\x20shortId:','addTempUin','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','清理消息缓存','getMsgBySeq','PSbuk','KyIss','sEILe','138384IBfZxZ','22xNGIth','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','xAVZD','now','384910pmDegN','uuid','YUdSD','XvxkT','GAXmy','eTPMC','kqAkG','KPwQo','db\x20could\x20not\x20update\x20file\x20cache','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','Lnpod','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20files\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20url\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uuid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementType\x20INTEGER,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementId\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20msgId\x20TEXT\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','2eAtito','msgSeq','JNuMk','WJcEM','globalMsgShortId','all','MBsKB','FuQsF','MLbBB','CsPLk','size','Could\x20not\x20create\x20table\x20files','element','KdjXj','longId','getUidByTempUin','Method\x20not\x20implemented.','XwyoX','Could\x20not\x20create\x20table\x20msgs','zGTcg','eqWGG','onowA','nlLyG','db\x20could\x20not\x20add\x20file','GMXsX','yYQrE','toString','forEach','getMsgByLongId','pQtfI','parse','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20msgs\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shortId\x20INTEGER\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20longId\x20TEXT\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20seq\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20peerUid\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chatType\x20INTEGER\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','stringify','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20temp_uins\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uin\x20TEXT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','getFileCache','createTable','yOPei','set','nMaki','uaFEb','eopQn','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','scySS','XzRsY','peerUid','msgList','QVDoe','RjyqH','elementType','9vOGaax','maxId','ZWuBH','db\x20could\x20not\x20add\x20msg','getCurrentMaxShortId','getReceivedTempUinMap','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','31443wDkphM','updateFileCache','PVbbZ','ayfWn','db\x20getMsgByLongId\x20error','then','Could\x20not\x20connect\x20to\x20database','addMsg','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','url','FRjBV','eMHED',',\x20seq:\x20','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','eXLoo','close','ErRTT','Could\x20not\x20create\x20table\x20temp_uins','cntqQ','catch','VQmwc','updateMsg','db\x20could\x20not\x20add\x20temp\x20uin','msgId','getMsg','EAjSl','path','errno','nWVzY','uid','name',',\x20短id:\x20','JoYyr','OPEN_CREATE','Database','SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?',',\x20msgId:\x20','aDDSr','phidS','12qfFAei','run','msgCache','EDCJR','prepare','Could\x20not\x20get\x20msg'];_0xcd02=function(){return _0x1fb751;};return _0xcd02();}import _0x41597f from'sqlite3';import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async[_0x28bd2f(0x11f)](_0x5c6360){const _0x4cb068={'XvxkT':function(_0x36e9bb,_0x558a5f,_0x338b96){return _0x36e9bb(_0x558a5f,_0x338b96);},'WouNp':function(_0xef1171,_0xeb4b14){return _0xef1171(_0xeb4b14);},'ximUJ':function(_0x2dab1e,_0x69c26d){return _0x2dab1e|_0x69c26d;}};if(this['db'])return;return new Promise((_0x4050ea,_0x5a8bac)=>{const _0x28dd75=_0x1eec;this['db']=new _0x41597f[(_0x28dd75(0x111))](_0x5c6360,_0x4cb068['ximUJ'](_0x41597f['OPEN_READWRITE'],_0x41597f[_0x28dd75(0x110)]),_0x1f64d9=>{const _0x4c9c0b=_0x28dd75;if(_0x1f64d9){_0x4cb068[_0x4c9c0b(0xac)](logError,_0x4c9c0b(0xf5),_0x1f64d9),_0x4cb068['WouNp'](_0x5a8bac,_0x1f64d9);return;}this['createTable'](),_0x4050ea();});});}[_0x28bd2f(0xda)](){const _0x39899d=_0x28bd2f,_0xd300ca={'JoYyr':_0x39899d(0xc6)};throw new Error(_0xd300ca[_0x39899d(0x10f)]);}['close'](){const _0x1df371=_0x28bd2f;this['db']?.[_0x1df371(0xfe)]();}}class DBUtil extends DBUtilBase{['msgCache']=new Map();[_0x28bd2f(0xba)]=-0x7ffffff8;constructor(){const _0x14eb32=_0x28bd2f,_0x4e51f9={'sEILe':function(_0x2398e3,_0x3ed547){return _0x2398e3>_0x3ed547;},'eTPMC':function(_0x4ea408,_0x4dd340){return _0x4ea408(_0x4dd340);},'ZXMrl':function(_0x355727,_0x2ec51b){return _0x355727(_0x2ec51b);},'GMXsX':function(_0x28295d,_0x48f4b9){return _0x28295d*_0x48f4b9;},'PVbbZ':function(_0x3cf439,_0x2f8ef9,_0x1140d8){return _0x3cf439(_0x2f8ef9,_0x1140d8);}};super();const _0x41fe16=_0x4e51f9[_0x14eb32(0xce)](0x3e8*0x3c,0xa);_0x4e51f9[_0x14eb32(0xf1)](setInterval,()=>{const _0x2360f6=_0x14eb32;_0x4e51f9['ZXMrl'](logDebug,_0x2360f6(0x131)),this[_0x2360f6(0x118)][_0x2360f6(0xd1)]((_0x35daaa,_0x1e8443)=>{const _0x1d23b0=_0x2360f6;_0x4e51f9[_0x1d23b0(0xa1)](Date[_0x1d23b0(0xa8)]()-_0x4e51f9[_0x1d23b0(0xae)](parseInt,_0x35daaa[_0x1d23b0(0x126)])*0x3e8,_0x41fe16)&&this[_0x1d23b0(0x118)]['delete'](_0x1e8443);});},_0x41fe16);}async['init'](_0x28e8c8){const _0x53e50e=_0x28bd2f;await super[_0x53e50e(0x11f)](_0x28e8c8),this[_0x53e50e(0xba)]=await this[_0x53e50e(0xec)]();}[_0x28bd2f(0xda)](){const _0x51bd25=_0x28bd2f,_0xb33ee9={'uLXzb':function(_0x18caea,_0x3268fe,_0x324410){return _0x18caea(_0x3268fe,_0x324410);},'FYUoW':_0x51bd25(0xc8),'nMaki':function(_0x47aa6e,_0x25cb2f,_0x5e79d4){return _0x47aa6e(_0x25cb2f,_0x5e79d4);},'cntqQ':_0x51bd25(0xc1),'XcpVQ':_0x51bd25(0x100)},_0x45ec2c=_0x51bd25(0xd5);this['db'][_0x51bd25(0x117)](_0x45ec2c,function(_0x59b83f){_0x59b83f&&_0xb33ee9['uLXzb'](logError,_0xb33ee9['FYUoW'],_0x59b83f['stack']);});const _0x4b303f=_0x51bd25(0xb5);this['db']['run'](_0x4b303f,function(_0x45a4f8){const _0x12d3f2=_0x51bd25;_0x45a4f8&&_0xb33ee9[_0x12d3f2(0xdd)](logError,_0xb33ee9[_0x12d3f2(0x101)],_0x45a4f8);});const _0x2c841f=_0x51bd25(0xd8);this['db'][_0x51bd25(0x117)](_0x2c841f,function(_0x19a9b1){_0x19a9b1&&logError(_0xb33ee9['XcpVQ'],_0x19a9b1);});}async['getCurrentMaxShortId'](){const _0x315f74={'CsPLk':function(_0x165af2,_0x4e08c1,_0x4ae183){return _0x165af2(_0x4e08c1,_0x4ae183);},'MLbBB':function(_0x21f4c8,_0x6be945){return _0x21f4c8(_0x6be945);},'scySS':function(_0xb4802,_0xcf215,_0x2a4c72){return _0xb4802(_0xcf215,_0x2a4c72);},'VQmwc':'数据库中消息最大短id','FSnmy':'SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs'};return new Promise((_0x5bfd23,_0x505b83)=>{const _0x114566=_0x1eec,_0xd11029={'nlLyG':function(_0x26fd22,_0xbce66c,_0x4099da){const _0x178855=_0x1eec;return _0x315f74[_0x178855(0xbf)](_0x26fd22,_0xbce66c,_0x4099da);},'ThGYK':_0x114566(0xee),'eqWGG':function(_0x425f05,_0x4e4da7){const _0x25618a=_0x114566;return _0x315f74[_0x25618a(0xbe)](_0x425f05,_0x4e4da7);},'YUdSD':function(_0x24f0b0,_0x13e2d6,_0x4e20bb){const _0x40c8a4=_0x114566;return _0x315f74[_0x40c8a4(0xe1)](_0x24f0b0,_0x13e2d6,_0x4e20bb);},'aDDSr':_0x315f74[_0x114566(0x103)]};this['db'][_0x114566(0x125)](_0x315f74['FSnmy'],(_0x5cfcab,_0x3c8725)=>{const _0x4d4025=_0x114566;if(_0x5cfcab)return _0xd11029[_0x4d4025(0xcc)](logDebug,_0xd11029['ThGYK'],_0x5cfcab),_0xd11029[_0x4d4025(0xca)](_0x5bfd23,-0x7ffffff8);_0xd11029[_0x4d4025(0xab)](logDebug,_0xd11029[_0x4d4025(0x114)],_0x3c8725?.[_0x4d4025(0xe9)]),_0xd11029['eqWGG'](_0x5bfd23,_0x3c8725?.[_0x4d4025(0xe9)]??-0x7ffffff8);});});}async[_0x28bd2f(0x107)](_0x1e0b7b,_0x1f8d0c){const _0x1d0ee7=_0x28bd2f,_0x2f9144={'eopQn':function(_0x244fcf,_0x4e3e59){return _0x244fcf(_0x4e3e59);},'JNuMk':_0x1d0ee7(0x11b),'ErRTT':function(_0x4e67d2,_0x572bf3){return _0x4e67d2(_0x572bf3);}},_0x49f481=this['db'][_0x1d0ee7(0x11a)](_0x1e0b7b);return new Promise((_0x2f5019,_0x416442)=>{const _0x55cfbb=_0x1d0ee7,_0x46ad38={'MBsKB':function(_0x601eeb,_0x307953){const _0x172701=_0x1eec;return _0x2f9144[_0x172701(0xdf)](_0x601eeb,_0x307953);},'WJcEM':function(_0x56f1d9,_0x43d060,_0x5b47a7,_0xae358e,_0x1705ca){return _0x56f1d9(_0x43d060,_0x5b47a7,_0xae358e,_0x1705ca);},'KyIss':_0x2f9144[_0x55cfbb(0xb8)],'Lnpod':function(_0x5bdee6,_0x5b7de5){const _0x5b6065=_0x55cfbb;return _0x2f9144[_0x5b6065(0xff)](_0x5bdee6,_0x5b7de5);}};_0x49f481[_0x55cfbb(0x125)](..._0x1f8d0c,(_0x5d83e5,_0x597bc4)=>{const _0x1f583f=_0x55cfbb,_0x2674f0={'nWVzY':function(_0x4925ad,_0x63f542){const _0x4aa922=_0x1eec;return _0x46ad38[_0x4aa922(0xbc)](_0x4925ad,_0x63f542);}};if(_0x5d83e5)return _0x46ad38[_0x1f583f(0xb9)](logError,_0x46ad38[_0x1f583f(0x134)],_0x5d83e5,_0x1e0b7b,_0x1f8d0c),_0x46ad38[_0x1f583f(0xbc)](_0x2f5019,null);if(!_0x597bc4){_0x46ad38[_0x1f583f(0xb3)](_0x2f5019,null);return;}const _0x45d44a=_0x597bc4[_0x1f583f(0xc4)];NTQQMsgApi[_0x1f583f(0x120)]({'peerUid':_0x597bc4[_0x1f583f(0xe3)],'chatType':_0x597bc4['chatType']},[_0x45d44a])[_0x1f583f(0xf4)](_0x4af1ef=>{const _0x50bf1b=_0x1f583f,_0x2335ff=_0x4af1ef[_0x50bf1b(0xe4)][0x0];if(!_0x2335ff){_0x2674f0[_0x50bf1b(0x10b)](_0x2f5019,null);return;}_0x2335ff['id']=_0x597bc4['shortId'],_0x2674f0[_0x50bf1b(0x10b)](_0x2f5019,_0x2335ff);})[_0x1f583f(0x102)](_0x3769a4=>{const _0x13e3a0=_0x1f583f;_0x46ad38[_0x13e3a0(0xbc)](_0x2f5019,null);});});});}async['getMsgByShortId'](_0x306641){const _0x11ce91=_0x28bd2f,_0x4af219={'FRjBV':_0x11ce91(0x130)};if(this[_0x11ce91(0x118)]['has'](_0x306641))return this[_0x11ce91(0x118)]['get'](_0x306641);const _0x295d9a=_0x4af219[_0x11ce91(0xf9)];return this['getMsg'](_0x295d9a,[_0x306641]);}async[_0x28bd2f(0xd2)](_0x406655){const _0x4b9463=_0x28bd2f,_0x107992={'RjyqH':_0x4b9463(0xd6)};if(this['msgCache']['has'](_0x406655))return this['msgCache'][_0x4b9463(0x125)](_0x406655);return this[_0x4b9463(0x107)](_0x107992[_0x4b9463(0xe6)],[_0x406655]);}async[_0x28bd2f(0x132)](_0x328ad5,_0x5bf732){const _0x1d8c67=_0x28bd2f,_0x2021b1=_0x1d8c67(0xe0);return this['getMsg'](_0x2021b1,[_0x328ad5,_0x5bf732]);}async[_0x28bd2f(0xf6)](_0x5aa7a8,_0x578e05=!![]){const _0x4eabd8=_0x28bd2f,_0x2a3365={'TgXMw':function(_0x195fc7,_0x10f01d){return _0x195fc7===_0x10f01d;},'TuHtP':function(_0x5301d3,_0x549db5,_0xec281){return _0x5301d3(_0x549db5,_0xec281);},'yOPei':_0x4eabd8(0xeb),'kqAkG':function(_0x99c73c,_0x2d0c52){return _0x99c73c(_0x2d0c52);}},_0x3500bf=await this[_0x4eabd8(0xd2)](_0x5aa7a8['msgId']);if(_0x3500bf){if(_0x578e05)this['updateMsg'](_0x5aa7a8)['then']();return _0x3500bf['id'];}const _0x73d4e0=this['db'][_0x4eabd8(0x11a)]('INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)'),_0x3ce2c8=++this['globalMsgShortId'];return _0x5aa7a8['id']=_0x3ce2c8,_0x2a3365[_0x4eabd8(0xaf)](logDebug,'记录消息到数据库,\x20消息长id:\x20'+_0x5aa7a8[_0x4eabd8(0x106)]+_0x4eabd8(0x10e)+_0x5aa7a8['id']),this[_0x4eabd8(0x118)]['set'](_0x3ce2c8,_0x5aa7a8),this[_0x4eabd8(0x118)][_0x4eabd8(0xdc)](_0x5aa7a8[_0x4eabd8(0x106)],_0x5aa7a8),_0x73d4e0[_0x4eabd8(0x117)](this[_0x4eabd8(0xba)],_0x5aa7a8[_0x4eabd8(0x106)],_0x5aa7a8[_0x4eabd8(0xb7)][_0x4eabd8(0xd0)](),_0x5aa7a8[_0x4eabd8(0xe3)],_0x5aa7a8[_0x4eabd8(0x121)],_0x4c523c=>{const _0xc9602c=_0x4eabd8,_0x4769d1={'XwyoX':function(_0x42102b,_0x50fbc3,_0x55fcf0){return _0x42102b(_0x50fbc3,_0x55fcf0);}};_0x4c523c&&(_0x2a3365[_0xc9602c(0x129)](_0x4c523c[_0xc9602c(0x10a)],0x13)?this[_0xc9602c(0xd2)](_0x5aa7a8['msgId'])[_0xc9602c(0xf4)](_0x36f3ee=>{const _0x1dd289=_0xc9602c;_0x36f3ee?(this[_0x1dd289(0x118)][_0x1dd289(0xdc)](_0x3ce2c8,_0x36f3ee),this[_0x1dd289(0x118)][_0x1dd289(0xdc)](_0x36f3ee['msgId'],_0x36f3ee)):_0x4769d1[_0x1dd289(0xc7)](logError,_0x1dd289(0xfc),_0x4c523c);})[_0xc9602c(0x102)](_0x2f947d=>logError(_0xc9602c(0xf3),_0x2f947d)):_0x2a3365[_0xc9602c(0x11d)](logError,_0x2a3365[_0xc9602c(0xdb)],_0x4c523c));}),_0x3ce2c8;}async[_0x28bd2f(0x104)](_0x137cc6){const _0x247584=_0x28bd2f,_0x40653a={'AHHYm':_0x247584(0x11c),'uaFEb':_0x247584(0xa5)},_0x1fefbd=this['msgCache'][_0x247584(0x125)](_0x137cc6[_0x247584(0x106)]);_0x1fefbd&&Object['assign'](_0x1fefbd,_0x137cc6);logDebug(_0x247584(0x12e)+_0x137cc6['id']+_0x247584(0xfb)+_0x137cc6[_0x247584(0xb7)]+_0x247584(0x113)+_0x137cc6[_0x247584(0x106)]);const _0x1abf12=this['db'][_0x247584(0x11a)](_0x40653a[_0x247584(0xde)]);_0x1abf12[_0x247584(0x117)](_0x137cc6[_0x247584(0xb7)],_0x137cc6['msgId'],_0x17637a=>{const _0x55f0ca=_0x247584;_0x17637a&&logError(_0x40653a[_0x55f0ca(0x128)],_0x17637a);});}async['addFileCache'](_0x1eda82){const _0x46c8c6=_0x28bd2f,_0x3955e1={'eXLoo':function(_0x1bea1f,_0x45e3f0,_0x3a8444){return _0x1bea1f(_0x45e3f0,_0x3a8444);},'yYQrE':function(_0x119886,_0x264084){return _0x119886(_0x264084);},'zGTcg':_0x46c8c6(0xa4)},_0x581212=this['db'][_0x46c8c6(0x11a)](_0x3955e1[_0x46c8c6(0xc9)]);return new Promise((_0x514146,_0xcb7068)=>{const _0x9c816a=_0x46c8c6,_0x275f61={'GAXmy':function(_0x4ab9a7,_0x5e8e9f,_0x8351e){const _0x18074d=_0x1eec;return _0x3955e1[_0x18074d(0xfd)](_0x4ab9a7,_0x5e8e9f,_0x8351e);},'pQtfI':function(_0x230717,_0x5f2e7a){const _0x1ca48e=_0x1eec;return _0x3955e1[_0x1ca48e(0xcf)](_0x230717,_0x5f2e7a);},'ayfWn':function(_0xea1b3a,_0x2ef3ce){const _0x1871b3=_0x1eec;return _0x3955e1[_0x1871b3(0xcf)](_0xea1b3a,_0x2ef3ce);}};_0x581212[_0x9c816a(0x117)](_0x1eda82[_0x9c816a(0x10d)],_0x1eda82[_0x9c816a(0x109)],_0x1eda82[_0x9c816a(0xf8)],_0x1eda82[_0x9c816a(0xc0)],_0x1eda82[_0x9c816a(0xaa)],_0x1eda82[_0x9c816a(0xe7)],JSON[_0x9c816a(0xd7)](_0x1eda82['element']),_0x1eda82['elementId'],_0x1eda82[_0x9c816a(0x106)],function(_0x561fde){const _0x1530d8=_0x9c816a;_0x561fde&&(_0x275f61[_0x1530d8(0xad)](logError,_0x1530d8(0xcd),_0x561fde),_0x275f61[_0x1530d8(0xd3)](_0xcb7068,_0x561fde)),_0x275f61[_0x1530d8(0xf2)](_0x514146,null);});});}async['getFileCache'](_0x5752bd,_0x2d633d){const _0x53fd65=_0x28bd2f,_0x355984={'XzRsY':function(_0x3d20ef,_0x5848fe,_0x5d84fa){return _0x3d20ef(_0x5848fe,_0x5d84fa);}},_0x4f92c0=this['db'][_0x53fd65(0x11a)](_0x5752bd);return new Promise((_0x5b8ef4,_0x165a81)=>{const _0x1b226e={'pGvWV':function(_0x248845,_0x133b13,_0x320784){const _0x35ce74=_0x1eec;return _0x355984[_0x35ce74(0xe2)](_0x248845,_0x133b13,_0x320784);},'ZWuBH':'db\x20could\x20not\x20get\x20file\x20cache','KPwQo':function(_0x425b2c,_0x207907){return _0x425b2c(_0x207907);}};_0x4f92c0['get'](..._0x2d633d,(_0x162d3e,_0xb5c3dd)=>{const _0x307160=_0x1eec;_0x162d3e&&(_0x1b226e['pGvWV'](logError,_0x1b226e[_0x307160(0xea)],_0x162d3e),_0x1b226e[_0x307160(0xb0)](_0x165a81,_0x162d3e)),_0xb5c3dd&&(_0xb5c3dd[_0x307160(0xc2)]=JSON[_0x307160(0xd4)](_0xb5c3dd['element'])),_0x5b8ef4(_0xb5c3dd);});});}async[_0x28bd2f(0x124)](_0x5856ec){const _0x503271=_0x28bd2f;return this[_0x503271(0xd9)](_0x503271(0xb2),[_0x5856ec]);}async[_0x28bd2f(0x123)](_0x3ac8ad){const _0x1fb28f=_0x28bd2f;return this['getFileCache'](_0x1fb28f(0x112),[_0x3ac8ad]);}async[_0x28bd2f(0xf0)](_0x426485){const _0x4e4f65=_0x28bd2f,_0x2c946d={'onowA':_0x4e4f65(0xb1),'gHkfv':function(_0x15586a,_0x12cb0d){return _0x15586a(_0x12cb0d);},'eMHED':function(_0x1d67ff,_0x530524){return _0x1d67ff(_0x530524);},'phidS':_0x4e4f65(0xa6)},_0x2599cd=this['db']['prepare'](_0x2c946d[_0x4e4f65(0x115)]);return new Promise((_0x589625,_0x5ac910)=>{const _0x3f1a6f=_0x4e4f65;_0x2599cd['run'](_0x426485[_0x3f1a6f(0x109)],_0x426485['url'],_0x426485[_0x3f1a6f(0xaa)],function(_0x42c37c){const _0x3a98cd=_0x3f1a6f;_0x42c37c&&(logError(_0x2c946d[_0x3a98cd(0xcb)],_0x42c37c),_0x2c946d['gHkfv'](_0x5ac910,_0x42c37c)),_0x2c946d[_0x3a98cd(0xfa)](_0x589625,null);});});}async[_0x28bd2f(0xed)](){const _0x206a3b={'KdjXj':function(_0x4aff71,_0x8c6e9e,_0x15691c){return _0x4aff71(_0x8c6e9e,_0x15691c);},'EAjSl':function(_0x43d141,_0x1f3acc){return _0x43d141(_0x1f3acc);},'pUckY':function(_0x4db2e5,_0xff6401){return _0x4db2e5(_0xff6401);},'EbikO':'SELECT\x20*\x20FROM\x20temp_uins'},_0x4a543e=_0x206a3b['EbikO'];return new Promise((_0x4f41db,_0x4e454b)=>{const _0x2abe5c=_0x1eec;this['db'][_0x2abe5c(0xbb)](_0x4a543e,(_0x3afa08,_0x5186b7)=>{const _0x5009af=_0x2abe5c;_0x3afa08&&(_0x206a3b[_0x5009af(0xc3)](logError,_0x5009af(0x12a),_0x3afa08),_0x206a3b[_0x5009af(0x108)](_0x4e454b,_0x3afa08));const _0x1803db={};_0x5186b7[_0x5009af(0xd1)](_0x50988a=>{_0x1803db[_0x50988a['uin']]=_0x50988a['uid'];}),_0x206a3b['pUckY'](_0x4f41db,_0x1803db);});});}async[_0x28bd2f(0xc5)](_0x3e9871){const _0x311d2a=_0x28bd2f,_0x43d95b={'PSbuk':function(_0xc53816,_0x4bf11a,_0x3bd78d){return _0xc53816(_0x4bf11a,_0x3bd78d);},'FuQsF':function(_0x1fe26a,_0x3a7d0a){return _0x1fe26a(_0x3a7d0a);},'iKLtb':_0x311d2a(0xb4)},_0x15e294=_0x43d95b[_0x311d2a(0x12b)];return new Promise((_0x47a0ac,_0x8ebd9d)=>{this['db']['get'](_0x15e294,[_0x3e9871],(_0x56df6a,_0x31f3ac)=>{const _0xfda570=_0x1eec;_0x56df6a&&(_0x43d95b[_0xfda570(0x133)](logError,_0xfda570(0x12a),_0x56df6a),_0x8ebd9d(_0x56df6a)),_0x43d95b[_0xfda570(0xbd)](_0x47a0ac,_0x31f3ac?.[_0xfda570(0x10c)]);});});}async[_0x28bd2f(0x12f)](_0xbc3103,_0x7c98bc){const _0x49690a=_0x28bd2f,_0x47e9bd={'xAVZD':function(_0x188331,_0x58f0c8,_0x3cc655){return _0x188331(_0x58f0c8,_0x3cc655);},'EDCJR':_0x49690a(0x105),'GAaXD':function(_0xf51d48,_0x1167c6){return _0xf51d48(_0x1167c6);},'QVDoe':function(_0x202765,_0x11b7da){return _0x202765(_0x11b7da);},'pqrru':_0x49690a(0xf7)},_0x480c1b=await this[_0x49690a(0xc5)](_0xbc3103);if(!_0x480c1b){const _0x582a85=this['db'][_0x49690a(0x11a)](_0x47e9bd['pqrru']);return new Promise((_0x3f1bf4,_0x1aa619)=>{const _0x2b8bbd=_0x49690a;_0x582a85[_0x2b8bbd(0x117)](_0xbc3103,_0x7c98bc,function(_0x4856ed){const _0x504eee=_0x2b8bbd;_0x4856ed&&(_0x47e9bd[_0x504eee(0xa7)](logError,_0x47e9bd[_0x504eee(0x119)],_0x4856ed),_0x47e9bd[_0x504eee(0x127)](_0x1aa619,_0x4856ed)),_0x47e9bd[_0x504eee(0xe5)](_0x3f1bf4,null);});});}}}function _0x1eec(_0x43a1e6,_0x383e0b){const _0xcd0240=_0xcd02();return _0x1eec=function(_0x1eec44,_0x145c31){_0x1eec44=_0x1eec44-0xa1;let _0x53f63b=_0xcd0240[_0x1eec44];return _0x53f63b;},_0x1eec(_0x43a1e6,_0x383e0b);}export const dbUtil=new DBUtil(); \ No newline at end of file diff --git a/src/core.lib/src/utils/rkey.js b/src/core.lib/src/utils/rkey.js index 13f60bc6..5f29055b 100644 --- a/src/core.lib/src/utils/rkey.js +++ b/src/core.lib/src/utils/rkey.js @@ -1 +1 @@ -const _0x473197=_0x1021;function _0x475f(){const _0x3e1fd9=['rkeyData','isExpired','170kkdstd','3189644jYCXMq','8Zciuvk','serverUrl','getTime','5XkWOik','zqfiO','XxbgC','21955WpGyCu','5995780epkRSX','vQnQo','5017113ysfXhw','refreshRkey','expired_time','HttpGetJson','7144692QwYiKa','http://napcat-sign.wumiao.wang:2082/rkey','5638122lTZlLm','6120670biGkvl','GET'];_0x475f=function(){return _0x3e1fd9;};return _0x475f();}(function(_0x5b09e9,_0x4ad0d9){const _0x4b41e0=_0x1021,_0xc3c814=_0x5b09e9();while(!![]){try{const _0x2e6ed5=parseInt(_0x4b41e0(0xc7))/0x1*(-parseInt(_0x4b41e0(0xd5))/0x2)+parseInt(_0x4b41e0(0xca))/0x3+parseInt(_0x4b41e0(0xd6))/0x4*(parseInt(_0x4b41e0(0xda))/0x5)+parseInt(_0x4b41e0(0xce))/0x6+-parseInt(_0x4b41e0(0xc8))/0x7+parseInt(_0x4b41e0(0xd7))/0x8*(parseInt(_0x4b41e0(0xd0))/0x9)+-parseInt(_0x4b41e0(0xd1))/0xa;if(_0x2e6ed5===_0x4ad0d9)break;else _0xc3c814['push'](_0xc3c814['shift']());}catch(_0x49760f){_0xc3c814['push'](_0xc3c814['shift']());}}}(_0x475f,0xe87b0));import{logError}from'@/common/utils/log';import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x473197(0xd8)]='';[_0x473197(0xd3)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x48b846){this['serverUrl']=_0x48b846;}async['getRkey'](){const _0x3e2f03=_0x473197,_0x511855={'WQLBz':function(_0x1d285f,_0x56b1a4,_0x176542){return _0x1d285f(_0x56b1a4,_0x176542);},'uVUoD':'获取rkey失败'};if(this[_0x3e2f03(0xd4)]())try{await this['refreshRkey']();}catch(_0x517102){_0x511855['WQLBz'](logError,_0x511855['uVUoD'],_0x517102);}return this[_0x3e2f03(0xd3)];}[_0x473197(0xd4)](){const _0x5718e5=_0x473197,_0x10ae61={'zqfiO':function(_0x2e0a7b,_0x47f034){return _0x2e0a7b/_0x47f034;},'vQnQo':function(_0x1a725c,_0x97daa){return _0x1a725c>_0x97daa;}},_0x5e08da=_0x10ae61[_0x5718e5(0xdb)](new Date()[_0x5718e5(0xd9)](),0x3e8);return _0x10ae61[_0x5718e5(0xc9)](_0x5e08da,this['rkeyData'][_0x5718e5(0xcc)]);}async[_0x473197(0xcb)](){const _0x28e55e=_0x473197,_0x322441={'XxbgC':_0x28e55e(0xd2)};this[_0x28e55e(0xd3)]=await RequestUtil[_0x28e55e(0xcd)](this[_0x28e55e(0xd8)],_0x322441[_0x28e55e(0xdc)]);}}function _0x1021(_0x237ce1,_0x16512d){const _0x475fbf=_0x475f();return _0x1021=function(_0x10211f,_0x587df7){_0x10211f=_0x10211f-0xc7;let _0x443955=_0x475fbf[_0x10211f];return _0x443955;},_0x1021(_0x237ce1,_0x16512d);}export const rkeyManager=new RkeyManager(_0x473197(0xcf)); \ No newline at end of file +function _0x7e42(_0x27159f,_0x771883){const _0x134f72=_0x134f();return _0x7e42=function(_0x7e426,_0x1db690){_0x7e426=_0x7e426-0x1dc;let _0x294b7c=_0x134f72[_0x7e426];return _0x294b7c;},_0x7e42(_0x27159f,_0x771883);}const _0x2b45bc=_0x7e42;function _0x134f(){const _0x485dd1=['hoCoC','rkeyData','NiBjE','1004750qQhPZi','获取rkey失败','refreshRkey','20936xXrHnF','9IEqrGc','getRkey','3934570CpiMCc','2zQLldJ','http://napcat-sign.wumiao.wang:2082/rkey','serverUrl','511UtfsSN','183432FTQmmN','396743lNDSvc','isExpired','HttpGetJson','666420voTxnK','321yKxcZZ','expired_time','13644mOcccC','1265zwxVMS','getTime'];_0x134f=function(){return _0x485dd1;};return _0x134f();}(function(_0x4b9229,_0x168892){const _0xeb3d7d=_0x7e42,_0x3ec80e=_0x4b9229();while(!![]){try{const _0x412e7a=parseInt(_0xeb3d7d(0x1f0))/0x1*(-parseInt(_0xeb3d7d(0x1eb))/0x2)+parseInt(_0xeb3d7d(0x1dc))/0x3*(-parseInt(_0xeb3d7d(0x1de))/0x4)+-parseInt(_0xeb3d7d(0x1e4))/0x5+-parseInt(_0xeb3d7d(0x1f3))/0x6+parseInt(_0xeb3d7d(0x1ee))/0x7*(parseInt(_0xeb3d7d(0x1e7))/0x8)+-parseInt(_0xeb3d7d(0x1e8))/0x9*(parseInt(_0xeb3d7d(0x1ea))/0xa)+parseInt(_0xeb3d7d(0x1df))/0xb*(parseInt(_0xeb3d7d(0x1ef))/0xc);if(_0x412e7a===_0x168892)break;else _0x3ec80e['push'](_0x3ec80e['shift']());}catch(_0x26f873){_0x3ec80e['push'](_0x3ec80e['shift']());}}}(_0x134f,0x759c6));import{logError}from'@/common/utils/log';import{RequestUtil}from'@/common/utils/request';class RkeyManager{[_0x2b45bc(0x1ed)]='';[_0x2b45bc(0x1e2)]={'group_rkey':'','private_rkey':'','expired_time':0x0};constructor(_0x30b7aa){const _0x1591c5=_0x2b45bc;this[_0x1591c5(0x1ed)]=_0x30b7aa;}async[_0x2b45bc(0x1e9)](){const _0x5f1ea4=_0x2b45bc;if(this[_0x5f1ea4(0x1f1)]())try{await this['refreshRkey']();}catch(_0x1f8937){logError(_0x5f1ea4(0x1e5),_0x1f8937);}return this[_0x5f1ea4(0x1e2)];}['isExpired'](){const _0x3cbc03=_0x2b45bc,_0x54f8cd={'hoCoC':function(_0x12a600,_0x4bf8c2){return _0x12a600/_0x4bf8c2;},'NiBjE':function(_0x552a61,_0x34a18a){return _0x552a61>_0x34a18a;}},_0x267394=_0x54f8cd[_0x3cbc03(0x1e1)](new Date()[_0x3cbc03(0x1e0)](),0x3e8);return _0x54f8cd[_0x3cbc03(0x1e3)](_0x267394,this[_0x3cbc03(0x1e2)][_0x3cbc03(0x1dd)]);}async[_0x2b45bc(0x1e6)](){const _0x1534f5=_0x2b45bc;this['rkeyData']=await RequestUtil[_0x1534f5(0x1f2)](this[_0x1534f5(0x1ed)],'GET');}}export const rkeyManager=new RkeyManager(_0x2b45bc(0x1ec)); \ No newline at end of file diff --git a/src/core.lib/src/wrapper.js b/src/core.lib/src/wrapper.js index e17b32a6..f581b681 100644 --- a/src/core.lib/src/wrapper.js +++ b/src/core.lib/src/wrapper.js @@ -1 +1 @@ -function _0x3984(){const _0x21b2f3=['resources/app/versions/','1858692IKXYWZ','execPath','201449hzfBey','dirname','777489rkBUGJ','24ThMwVq','2AYTOgW','./resources/app/wrapper.node','existsSync','64368lvTfIA','2693020JKexbF','82540qZqeUm','1102076BIpfBb','join','738cbNZEf','581RnXEvK','curVersion','/wrapper.node','5wBnGPu'];_0x3984=function(){return _0x21b2f3;};return _0x3984();}const _0x113c38=_0x3839;(function(_0x26887c,_0x36916f){const _0x5ad72f=_0x3839,_0x1de0df=_0x26887c();while(!![]){try{const _0x49547d=-parseInt(_0x5ad72f(0x7c))/0x1+-parseInt(_0x5ad72f(0x80))/0x2*(parseInt(_0x5ad72f(0x7e))/0x3)+parseInt(_0x5ad72f(0x72))/0x4+-parseInt(_0x5ad72f(0x78))/0x5*(parseInt(_0x5ad72f(0x7a))/0x6)+-parseInt(_0x5ad72f(0x75))/0x7*(-parseInt(_0x5ad72f(0x6f))/0x8)+parseInt(_0x5ad72f(0x74))/0x9*(parseInt(_0x5ad72f(0x71))/0xa)+-parseInt(_0x5ad72f(0x70))/0xb*(parseInt(_0x5ad72f(0x7f))/0xc);if(_0x49547d===_0x36916f)break;else _0x1de0df['push'](_0x1de0df['shift']());}catch(_0x3df9ce){_0x1de0df['push'](_0x1de0df['shift']());}}}(_0x3984,0x57ec3));import _0x3ddf18 from'node:path';import _0x3b2539 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x3ddf18['resolve'](_0x3ddf18['dirname'](process[_0x113c38(0x7b)]),_0x113c38(0x81));function _0x3839(_0x3976b0,_0x21ff8a){const _0x398415=_0x3984();return _0x3839=function(_0x3839a4,_0x4798ae){_0x3839a4=_0x3839a4-0x6e;let _0xfdb38e=_0x398415[_0x3839a4];return _0xfdb38e;},_0x3839(_0x3976b0,_0x21ff8a);}!_0x3b2539[_0x113c38(0x6e)](wrapperNodePath)&&(wrapperNodePath=_0x3ddf18[_0x113c38(0x73)](_0x3ddf18[_0x113c38(0x7d)](process[_0x113c38(0x7b)]),_0x113c38(0x79)+qqVersionConfigInfo[_0x113c38(0x76)]+_0x113c38(0x77)));const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file +const _0x14196f=_0x8deb;function _0x8deb(_0x1f62b8,_0x459a8e){const _0x4a1abb=_0x4a1a();return _0x8deb=function(_0x8deb2d,_0x2256da){_0x8deb2d=_0x8deb2d-0x116;let _0x3391ff=_0x4a1abb[_0x8deb2d];return _0x3391ff;},_0x8deb(_0x1f62b8,_0x459a8e);}function _0x4a1a(){const _0x129444=['2149443ZQBgcq','curVersion','14113980NxFjrT','16lBQmKc','join','/wrapper.node','34764aAOXzD','execPath','15010ZYoxRB','732iVaDem','./resources/app/wrapper.node','resolve','4304986Fnuuhb','1919388lsgwgc','427574mQPocN','24AosIWH','resources/app/versions/'];_0x4a1a=function(){return _0x129444;};return _0x4a1a();}(function(_0x51b502,_0xeae0d4){const _0x560c77=_0x8deb,_0x2e9a70=_0x51b502();while(!![]){try{const _0x3d5b76=-parseInt(_0x560c77(0x126))/0x1+-parseInt(_0x560c77(0x11b))/0x2*(parseInt(_0x560c77(0x11e))/0x3)+-parseInt(_0x560c77(0x121))/0x4*(-parseInt(_0x560c77(0x120))/0x5)+parseInt(_0x560c77(0x125))/0x6+-parseInt(_0x560c77(0x124))/0x7+-parseInt(_0x560c77(0x116))/0x8*(parseInt(_0x560c77(0x118))/0x9)+parseInt(_0x560c77(0x11a))/0xa;if(_0x3d5b76===_0xeae0d4)break;else _0x2e9a70['push'](_0x2e9a70['shift']());}catch(_0x96603a){_0x2e9a70['push'](_0x2e9a70['shift']());}}}(_0x4a1a,0x68b69));import _0x26f032 from'node:path';import _0x2b5d9b from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x26f032[_0x14196f(0x123)](_0x26f032['dirname'](process[_0x14196f(0x11f)]),_0x14196f(0x122));!_0x2b5d9b['existsSync'](wrapperNodePath)&&(wrapperNodePath=_0x26f032[_0x14196f(0x11c)](_0x26f032['dirname'](process[_0x14196f(0x11f)]),_0x14196f(0x117)+qqVersionConfigInfo[_0x14196f(0x119)]+_0x14196f(0x11d)));const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file diff --git a/src/onebot11/action/group/GetGroupSystemMsg.ts b/src/onebot11/action/group/GetGroupSystemMsg.ts index 681b21e4..5341b032 100644 --- a/src/onebot11/action/group/GetGroupSystemMsg.ts +++ b/src/onebot11/action/group/GetGroupSystemMsg.ts @@ -1,11 +1,22 @@ +import { NTQQGroupApi } from '@/core'; import BaseAction from '../BaseAction'; import { ActionName } from '../types'; import { NTQQMsgApi } from '@/core/apis/msg'; +import { FromSchema, JSONSchema } from 'json-schema-to-ts'; +const SchemaData = { + type: 'object', + properties: { + group_id: { type: 'number' } + }, +} as const satisfies JSONSchema; -export class GetGroupSystemMsg extends BaseAction { +type Payload = FromSchema; + +export class GetGroupSystemMsg extends BaseAction { actionName = ActionName.GetGroupSystemMsg; protected async _handle(payload: void) { - + // 默认10条 该api未完整实现 包括响应数据规范化 类型规范化 + return await NTQQGroupApi.getSingleScreenNotifies(10); } } diff --git a/src/onebot11/action/index.ts b/src/onebot11/action/index.ts index 368b56ac..1a9d677a 100644 --- a/src/onebot11/action/index.ts +++ b/src/onebot11/action/index.ts @@ -57,6 +57,7 @@ import { SendGroupNotice } from './go-cqhttp/SendGroupNotice'; import { Reboot, RebootNormol } from './system/Reboot'; import { GetGroupHonorInfo } from './go-cqhttp/GetGroupHonorInfo'; import { GoCQHTTHandleQuickAction } from './go-cqhttp/QuickAction'; +import { GetGroupSystemMsg } from './group/GetGroupSystemMsg'; export const actionHandlers = [ new RebootNormol(), @@ -118,7 +119,8 @@ export const actionHandlers = [ new GoCQHTTPGetGroupMsgHistory(), new GoCQHTTGetForwardMsgAction(), new GetFriendMsgHistory(), - new GoCQHTTHandleQuickAction() + new GoCQHTTHandleQuickAction(), + new GetGroupSystemMsg() ]; function initActionMap() { diff --git a/src/onebot11/main.ts b/src/onebot11/main.ts index 307edda3..5c362ef2 100644 --- a/src/onebot11/main.ts +++ b/src/onebot11/main.ts @@ -127,6 +127,7 @@ export class NapCatOnebot11 { // BuddyListener const buddyListener = new BuddyListener(); buddyListener.onBuddyReqChange = ((req) => { + //从这里获取?好友请求 this.postFriendRequest(req.buddyReqs).then().catch(logError); }); napCatCore.addListener(buddyListener); @@ -298,7 +299,7 @@ export class NapCatOnebot11 { // if (notify.user2.uid) { // member2 = await getGroupMember(notify.group.groupCode, null, notify.user2.uid); // } - + if ([GroupNotifyTypes.ADMIN_SET, GroupNotifyTypes.ADMIN_UNSET, GroupNotifyTypes.ADMIN_UNSET_OTHER].includes(notify.type)) { const member1 = await getGroupMember(notify.group.groupCode, notify.user1.uid); logDebug('有管理员变动通知');