From 2748cb0ba30cbf6d54a7aebf3bbcdd35785b3d6b Mon Sep 17 00:00:00 2001 From: linyuchen Date: Sun, 5 May 2024 19:25:17 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20Moehoo=E5=92=8CQQ=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=EF=BC=8C=E4=B8=8D=E5=86=8D=E5=85=BC=E5=AE=B9?= =?UTF-8?q?=E5=A4=9A=E4=B8=AA=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core | 2 +- src/core.lib/MoeHoo-linux-x64.node | Bin 63360 -> 63360 bytes .../src/adapters/NodeIDependsAdapter.js | 2 +- .../src/adapters/NodeIDispatcherAdapter.js | 2 +- .../src/adapters/NodeIGlobalAdapter.js | 2 +- src/core.lib/src/adapters/index.js | 2 +- src/core.lib/src/apis/file.js | 2 +- src/core.lib/src/apis/friend.js | 2 +- src/core.lib/src/apis/group.js | 2 +- src/core.lib/src/apis/index.js | 2 +- src/core.lib/src/apis/msg.js | 2 +- src/core.lib/src/apis/sign.js | 2 +- src/core.lib/src/apis/user.d.ts | 4 ++-- src/core.lib/src/apis/user.js | 2 +- src/core.lib/src/apis/webapi.d.ts | 4 ++-- src/core.lib/src/apis/webapi.js | 2 +- src/core.lib/src/core.js | 2 +- src/core.lib/src/data.d.ts | 7 +++++++ src/core.lib/src/data.js | 2 +- src/core.lib/src/entities/cache.js | 2 +- src/core.lib/src/entities/constructor.js | 2 +- src/core.lib/src/entities/group.js | 2 +- src/core.lib/src/entities/index.js | 2 +- src/core.lib/src/entities/msg.js | 2 +- src/core.lib/src/entities/notify.js | 2 +- src/core.lib/src/entities/user.js | 2 +- src/core.lib/src/external/hook.js | 2 +- src/core.lib/src/index.js | 2 +- .../src/listeners/NodeIKernelBuddyListener.js | 2 +- .../NodeIKernelFileAssistantListener.js | 2 +- .../src/listeners/NodeIKernelGroupListener.js | 2 +- .../src/listeners/NodeIKernelLoginListener.js | 2 +- .../src/listeners/NodeIKernelMsgListener.js | 2 +- .../listeners/NodeIKernelProfileListener.js | 2 +- .../src/listeners/NodeIKernelRobotListener.js | 2 +- .../listeners/NodeIKernelSessionListener.js | 2 +- .../NodeIKernelStorageCleanListener.js | 2 +- src/core.lib/src/listeners/index.js | 2 +- src/core.lib/src/services/common.js | 2 +- src/core.lib/src/services/index.js | 2 +- src/core.lib/src/sessionConfig.js | 2 +- src/core.lib/src/utils/config.js | 2 +- src/core.lib/src/utils/db.js | 2 +- src/core.lib/src/wrapper.js | 2 +- 44 files changed, 51 insertions(+), 44 deletions(-) diff --git a/src/core b/src/core index 08a5970f..95846580 160000 --- a/src/core +++ b/src/core @@ -1 +1 @@ -Subproject commit 08a5970f0a632bf71fa9092a471ad79f93fbde25 +Subproject commit 958465804a6bcbb27ab158c13fab3699c18ca846 diff --git a/src/core.lib/MoeHoo-linux-x64.node b/src/core.lib/MoeHoo-linux-x64.node index 36c4c527b5e71e6c1f7ecfaeb00edbd1fa85164a..39973fde8d3fd1beb5049dcfa8c7654abde43b9e 100644 GIT binary patch delta 9175 zcmZ8n3tSY{_n%o=T@cv?B|uTY76l(XRLn;dYaoLyitl%7Dw>+2t_r3t%3_Y|;^St2 z@~4L7JN2hwN&ZkFz(@H&%U@PLuwT}!kHEAdE$9C|GXt*9=L6@?x#ygF?m6e)bMBqZ zt!fo^W(Sz zw$V367hb@=^o`-m*k8V}_UcTPW~T}`n>WV=fHrQniZ}yadR9Re;n!-~`>1H{u$PKA zjZqOf;HRfU1N~(6Jw(&xkxr$r9-`pc&KA-9T6UpDP)N~Cl`;<$^z8QMxCqX~)iB;K zNN1YCTKmQDbu7&+zm~|B6iOYYH1VJ=EWrhsA?s#2xCxMhD#N;Ta)RdjTNWK^waP*O~W$H+zsZN zhe5Y0lU!yD3JF(@!Y$Fb&S_(nv4iL}O;^$7kVVg7qskl3Za|X*nx2cbX$%JiIgHb+ z@wvjoaUW<7iyN&Xu4?#7jlPaqOtEREk5qK9)_ViIT@o-XgzB~vImV` zQ~bH9gWhM#tc-vptQpcc>>Otyj)-%0uZ^s}$ zw|I9)b9;N7;Ix^Ogy_dYzHHM=rhjBva4s{qARvR}PHZGA(a=u~_nx%X4*cyk#1N&97^e|FJJKd;A(3t%(rhAi zN_s*#8W2XuLRprjx<|6?o`n|SO+xSMHb23cYz`M(S-jMpgkw6LF`c!?$y#DgVGwBLhCI7C?K+J2vfXPa~0I3R*?mSdv>{DgD-6-Rb zhm1myr#Y7z)M*Z&Q6bT;h)mQ(Zg?VcqbhQ&DzZzX$k#nY_6NB#3u%^0-BqQ2oYydk z9v;-epuTTx_fQb4((`|^8E6ibc4EY&LeWVU)70BX=!OXw;f09nVLf%Y$A1xZLPv}f zf04}P(r1jIF`G%nAd6abVn17B_%B&tdMEy6mXsdG+u20?pTKg{ z6Jn!DcwSZb?QaFA!+Z*SirWK#cCS=I*kR6S!2Vs&eoBuCJ5x^z-F8PJW-Q`(&iz;+ zEHxJ)Jfwjveqhhm_FPh_)LaNugH|=zi6uX_Y+xAw65ERZ?O6H1_PR%ZGD~{95kLG% zQfsBJNh5HU5NEz@bQmCA8joK0W5wi$%+=_!M*o^l=C*>R2%T2(PpR+^5X}S8v20>S z&k8nrP$&B%;E8T1L>t2t>kb!OT`!T@fZjy&aV93_((A9|1y|r6^tgWqmoY3^^@e4b z)fLHrCdQUZwA2cDcMQ@5m6-#xRs0eB(oyii)eG$q=S=Kq=hkP0SzSP8#u&p8U3j2` z;7aUG2^C`9!udqg`~>GLS6j zJY2|29P>7sf_T&Bi&3`#FL^(J;ikYzC-j@y`HaNpl1Nv+Vt}hl6xnV`n)5}o^eSsV zxL5K#&|=&xLS6+g^uD^_W_;Q0i)#f}Le4;rJB|S0;>)D*_h~_b=O@KiRkz>Qlv9xB z*_OdQd^av7Ep7MHaL>^W?n|fy-BC9z9U9EP!`>UZsLLQ_2D8jjR&3wlv<0++BQ0-nTy8JU=qS^1 zTwaQSr^!~b-oqmKrfkBnZY}=< zM)c%wFyE0e{1>e6$brv)^eb%UO8iKGc@EcMk%VKBWUdvQ!x5rGOhVs43)?%g8y4jC zkz*q6-&Lr+h`Je3XJO|7wJY(PRG=QzvN5B!h4?|HwmG_2flAx6+zVOI=q}->Yi0Qe zQa6|EGIM`k7A8ySlYbH-u3E*P$-tf1SdcL*WQn_`Q+M@IAi{LkV`3dsK1xhInf|EXF-q%+O*zxZ2OT= zjQO)E>tgWtpx1Jns#m@Z$RqfZ>x|{Y6>ak86WtSMU7wFMY|IbA2uh4`XgE`RT^X`C z+&8bDH|D>hFr*;ZYXxUUFdSS89%KGHO*u}^fG$wO{XB?Z7IjOi(@a5Hy5AsnrMj64 z=V0|I^@=nKFT|RGKD(_&L%kwdG<+QKC}=8=q)x=^g!vTHr^Nq}5`UNSXa~&pJ*cDT zeiL<^#W~DO#4k@X?E(s$Bqy3s? z!uU+!L(wL26rhq3nn30zML2eHv}c)3_`gl*H~I$~{U@5p>m<$?J{Z|ttYR@INpq)ZY%dH=ln|_!= zFL+_O4KYx<&;P-g|EFTr+Op%(WJ=g77mywbku0fB(QdU8VsKeBxhxCzIb<#ajQ~IA z0s>KrAfrM-6vD|d6naK~MAICb*<|$3Hmww*RLj6y*~VxkEvYu@0JRhwwbpDz`((Ik zo?j&s;*87_rJ1Ka%=2K5HszjAo5zk#vIe=0_JgNS9zPfzr>=@Jxo)l~|EPQ~4h1Td|LlM~%@|$W-0h!bS@8hJSuQ5RhBrPg})5taiBb z^_x$-b1L-h-=ObdkU!;4r258mw`(@J(+2$&chbT3DQ~uU+MA+6J{9EfCb`n_n{o_L zcm4_==bU8eGYQJLd^=+*O1&gRm!o{Dep#uUqJKgsYWS^0q;QE<&eUXOi;|WoNNjzA zc*`n2R=IgM1fb@s{U5S{vTT(yNIDNmuuPy`5hGcMH@X6Yx{qOhYuKvO#A|8dU8z_x zkh)=e?AMz#^fUW)KG4d3?Vg153xYPy*~+Zd2RUz&!M;JH!Cv@n7$%}pPy%$n zf>*Vp8|n~sm$w-0unu3g8c8dD#Kqff%U?0-~V~JB$U~P=|fd*sgM~Y;0G!D;wKY?o*BJ z3iln4b|_YDgB-aLU*#@DTPyil(&TWX8c1#b!37%X=omIT)BOMrnAt7fp#Q&zQ!t|4<_PY|n~xpVk{J)UCm>C%_v)Jj#?S=!VNk>1+t zhU-e*zCy|Aw^w;oht5Qiy*srxAIr{79jv=r!y+=H{PHkLgLVG?9~+sOz!x%CW>?*B z(^zR{gzow@c0F?z&ok?^U3?t-ecDLf1PQ-486laP-a1A%) zml+)ecy$SUo$;X0f?BJyqva^}5AODhR9#q|2@%X|MlaOpi8DfVUrk|SXN>1(vCn6` z!%t+EndT0IF#`xo6aQ(D_cAaZ@_Gu+wi}sqW;AbLpU!mhONuSC3V1${RlnJ{(?3^m z=!QiRz>fs+_cRxl5b1Oicn=v}?@eS0vnQLj0PXAt%?Bt{YuK*YgLM`EEq*k6n^*I$ zU#rG(mwn6j%+Ki9X{@#%#?w}dLyI8(EL{Z=?Ft4e-G)LnFBV}N$?q-Bv3c`;11_i{ zkk8$}U1Dn&RO_ysW8+q~XO4vv{W^A5Vu4~f8wbtb7G@hhIZJNWcW3h!Md==nWSbU^ z4b4BV;QVlJin{_7$tbgw)S`bhg0;+!jIf=ft?du1C`-K++C%1vQ1OTXW~YOdnT^hF zr~Cap%gJu%r3W#)mK&Os|OZN*A+i75z!#oOkj4og>$S$x;SHF^F2Mp+9 z!8vpJp=?!7jQ14apybVAtUM>44`BCm(hNze;&WN@;+}jT_SWJ~{2;btaTo6y7!Sl1 z!`KgtxBHhWtTvRCi0yFc?pJKxTO)N3&ahi=74lagex}G_O28_OoYnI zc-F-pru%LXOSfO;`?1cs1NeWlg}Dy?L-r`Qk8WBOnSxJcBbN2!z1aK9LcM>fRMf7w zvSZ6a0ZESF(gjP*%6yR)o)y8@N&IuT$>84b5NS)h{UvM$S`dk&&Llrz(T zqNjm`1WDh2ffMAVhPxE2h}*PZDHSef&gGqP7(TqbEuYOUEq~#;nhMe=g*!rb)Pgf9 z4t3NOTuQa^`Zx>mFCIGIUL6Hyu%! zx?g@IAHsU%TQFz8{P1QN^_q0Btax+&QNGoO$FYWtpPdt$tTu-$lTDb$X1{Ys_r-C9 z?kIzFR58t9R=TovpPqEi)GR|cSg_1k6$R^~QbwRkKmLapO4We63F#pEIfa?TAbtUh z61(vO*jO=Ccj-SYM;yX$WoN|KbQeommsPF#0+zZei%(%CtJ3UWJqKCOkt|nY%OJEj zmMZOL)V_xNA?;Q>KP1AtK!ETTwaeA^Dr#R++ZU-lS`~1D+M88;CbbVz8{Rayizy+x z5*Gv8R(cg^D_wznkJ9CRpy(i-xScqX*kwYmeJbRUFi8uCh?vM23VJ=!xp+NB=!1;E>h*}bTdqRRbZ`4cH0dQeaFz)$jM zI~sW_+-5{(gEm$Vd=C#f8yb15+~Qr+`T}V_b1mVNdrJ2wjqgI=gz**}b#U1@&18!doNr^%C-?v*^#0Qp znEP@kTd*{rwJt~v=nE#nIkOiXW5TV@$l@e6zn~+(iv6n~il0677jR`X zYQ33HVoTSD=?)aLE$fF^t`sXy|I`ouss2Q1pQd&z;MED9ltvLg5BZs+)0K@v4fpYX_8*^kO3yJ0j@j- zMFDpqcrw6O0yu@_049Sz8}U+uflC16nt~4-UozljY_*Q2IN3>P6arBXxR(g3WVsBm z@PsT!VP;XMalZjrkJJ;68A{c%d<9UzX7O0yCaOxV(WHv3^8oM#8kA}hyUZK#V+g!($()~w|4YtJ8qXOBhTXw z)z7p-H^z_T5Yrj_WiZRmmVs6*sD|&3!N5MiUoZB?&NloKmcO$vJ_wiZ4B{`d?{;<% zoC0Sw(2|tBaLhy&v8yF$6L!7y+)bRF+qCg*W>||3WJAu3KLZnY4aJ9%tGk{@UgdXB z)~`Mw%Q@_g-BH#$U6Xsfk6*7;zc`CuR6oD)etyCI{7n7)43_3#4aeUwh`NU$yMngY zOR$Guoi4B0il(deF0Xm`PJ;^p1zP7@o`JOlqG!pa-tQH1b;S4 zX@y~gXK+!#C41nKKy5{oC9#7azrugQe*gG+q{WcEuOQcq-}^kqTDEs4pTX{;UCsRW zrQ&LN^u918;hcR#bzY~~xqUneXgAZ}4d9L$^fv;yAH4PNE|MURB?ids)r)Lz_FUk2v zqo=T=hxP};*Q^Px%{WsnXW5gJ)B9 zaRuz**@c+P+;fX`akJU2bH^}^-REOr-tW%Wwtn_^B^B7A+G8YB0sFDKApY5(myBqw z3OCJAM{{WLF-ODKu&oy+z<&Hi3{V_@u{K;6IDoakALCuZRE`oh`hIE)16Ae)SEj<3YzJ{|}1J^_>6! delta 8926 zcmZWv3tSb|)}I+UdO+lWLV%)z9u!P@nE0lEAO}4dKJb}JS3^ootYev(M+D6AcobW9 zqt{K#6rWl2m3b|X0X|BNtZr(V*wvb&CRAS2%I5p8nE}uB&hH0n&)Vy?*IsMywfCH5 zO>LGnwW+KMTsTh9pM~o-CI{As8ZY&4pGp=xs+)|rTaY?SABDdhpMBxxLwDxhb$Wf+ z%j4R9d{5G;V>Oqhs{wSqU6j~`&b5oI3AJVfNV^}VvB625y=x6IZ?-Yud5a+Q5JH6A z9(pM_Now%WC&5W#3Ec=zb}cJ1Xto$Ya0UuON6ydPlT zg((JN2>AKwWzuKNG~T04TmFy?dhb{rPg^=9iW&5IhsfysIR<4JDEQeLCJ1ptsNf|r zBvSG|Or1lL#0``ik{n$!+aSp@fRH2_11zLaAF=f`={3mLB5i`P~8%?7Mj~eo=rkYB6ur~&JzwugfTki&1*E>=y ztl8Sz-oq6uyPftFIq@&KLUUTw(3_ejyO-Fl#_PsE@v1bbH~uovg-l&yQs1F|kM2u0 zrY|<=7Z~&(B|)>SoKX+(JGwKNFTYjGHWM8yyZp4TREg!4w#s`??ZJq*7!hSC2s1hV z%aAqd6sCKY=|bfpXPqIkJKG*BdrCw#gBdV_!5G1Q_K$k^A8b>ERt^*0uCxY*$|2cp zXI2_84>VJT&G=%*AyDsFPx{$Qhtuj95mMLR1$aCG# zn68|}YFi|ZG9|v@x+SvO5c#kna%ii_5Hw+k;!+_qI+u&ypGtxOP7Pq4c@mb)jgY3d8`wXbowAQ(z(^@&vD&?PHp)erQkv%CWlhKI`SB_d65M2Y8Vz9T|>f+`#- zk$KC}jd_f1p*e{(RnO86nLHP&+FFR_ZttbNj=A!!MTSyD>PfV73$PElyZMe zmtCN7D8H$jufdGR;Lwj2F%`Jh)9m~ExB~V5CiOwcsAR_#$ew-|*b5-pah(OH=doqV zm1(jkVlR4p7Vy}*XB&>r9PjYNzX3Ee_GIrWO>)^~t2*Cc4h6GA`5yf0G1wrx(^j}Z zkh}I=duYNOBRD6*PRhakSCb0!s`sw8g1PnRS;@T z2>NK9KCL4?ogahAsmkw`_*E%L7T#GPm!&_l6ir#V;0%W1UBIi+SK*>rnx-AJ?4+~# z>38I_xnk`|Pv3+*1mcoh_i(#9mHLkvoV^^h(EF`iRx8Rw&Mdr;>b-QLQud@NqXl6< zrc_Avs`Gy3bOX;-eOBr(y=WSzBhS*VF$03PJ;PR{1`7o#bBto^}qpdE1c z<^Qmrg?SG5!cd;G)es4L)Aa72Q?KPJUfDg-s)p-+w0N+=z^%v>4dhL^N}U=6OXadU zq*~*&%m*^3WlpbE4yj+#i(`AWosoxOS5y7i-r`{TX>8}Q6^6P8Wp}V0QyYtZS^19V zy$ck>kP))GLoAf!q(x3u=O$7esQ$2ou|p;?!xBo85bqKK%2)s*>{FM zg1Pnt2Nv2`PVjI{Jqp)AKL@?gKD-0|_^9W;M@|4yG`7`a30fX=nu zS0^jA>M446d=GIKeLdbT#?hbSW5l@>T`)}wSxk!x67aIIV4#>oCkyOiCEYCOCHlxd zVWfCB&7Tk@-lUZi62+FL`h^Jt#h)o=Vv=}*Mok>uv*rqX=1H%S;hsay$dXuO zNl~TjEtApQo=^_v@doK#SOYaL-v>2oARj?^;8xb4X94#(>Bi(fuDNK+rI!;Bo3mthKzxE8 z{^j;4AX2?D*49Bkacm8@U&^j@xcj9p6okxWh%;Mx2uOHNc**XZiH*$a$=5QK@pfz3 zbWjwmk)H5Tkxjf4it@?$x>q*^?h3 zD?k?6n!J#`T2~@tR#Nu22ZJJq+TL5Oo509~y~+=owo(qag<08LR}ALstb>g~ks%Z* z>+M|G!UjHLsH|5nvpuy~JK#hs+S4;auRIs8vc?pUb_!yR;p$PZ45h`UFSb{uGaN}QW>XFnFydZT^v2!8@in0D69Bma-AXKjS z##a70HxM%FNo1$&85b@mek@mS!cY%RZQsdMzjQJg=FtNQ4y&T0^=Pu5ssZS}Fyc1YW~SFEjM$wMtlJW-XC$Yo&Ve$(NVQodY0PyIq{ubj7!ddyU^|dw^$p@Q!!S2O zfhoF*7L)>CVOyHFaqtGT6Mt)v?wFc zoY*Y;Edhr)z&Y?kgsVL`IhqP@9f1&uUG$Jd#dk0EEcGoUy>AFw4v5cyVSTYKBIs?2 zbHQiW(xD^UG6az?f|qScJ>pRQ;(!-SJIsLB?KuCaVTTJ0v%v7b8^U#V31`J=1Pm&q zATG8yBX{=dD~ECr3BjdF8%T!<@p|Gsfqpr$R#r~?CSc~Z6TXG0KbzScUoOirlPDLP z$!Rd+pr$91e;(B`9_ZWhXorqQ9{H+R5SPQ5XsGLf_YFeJ2zx|burCh2GL-TO(=Q*e z?xV{OkrwPzfPtaK5Mg9UArO9%nLUpq^90;sPTYHf9+@ZpCo;R}l>0%+k@?Q;s;hv2 z1CWC=pv$oDt^d|_WG*V($8|l<={zT#fxJl@Ie18?Hj=^R*0Z6SIVQ5c?dbFynbo)M zzY)Q{`!G;rh<3F6XoD|p)bW>Az_@)llL1@>H$VY^I_`W+sZ;NpfRy60X9}X)x7d8a z8t%K>uYD8|+fo}{@oWF#*Z!-uUGJ-DZP)q+{YcNwOtf9r=euhj#)oosDea%xEl|TH z6i$iiv-HEvT@luQV;{}N5gs*Ys7FT7q({u5t+Q5jd8*L}p-`p%wsU(EjeaOIC~p|c zX;LE^>BWb7#rH8^FPzoO;}v>xU0UT=gt^mC(fNmlh%V|@G)C%ojusRpgnR)lEydtH z=V?n(nyAv5qJC0VF$K?#lah-mdG=g!481bDT3kjs#S^83+4PU%QQ|jrvDhgV(Ts-= zCZB~AtopL2z*^z8l{etkBa6+pw}TcoIo!Q7KSXv4mxkNAX9x~=+5#H?$Y8O7Jdeak zT^^$Ck4zKyQQ(|s#n)-w9D6Uq2p}w1x!EGG6c|5w17&yDi}cN$L~#;X=DNkBHS6ZC z5ygoV`{=Mf_ngr*eIbyQKV;=UxgHdUY*TOG{bcmZe2^+0of+ErEtF-!@{u~#=XCwi zF;b_mYevoA6wv;eFAV4Sq?7dffbt4YnSc*~6=u56;)I^%OC_b(ZOb+FmL(x=4r+wF6 z2ov}6r4Fy2PTIPto0QW)m7}{!1;=SOK-zJdpVv)_IL^oQxc?l33QxIx61F71!+?rv zFsuEJYFatm_ZbyGwLpA>PCu0t`0l5=IcWtHwm4P%8{NA&*ILQ^Zp#5$zj&ayiauT3 zM|_R0E$$n**BDQy0=o0*H^YJN+DnM^7&sDQa|ZS-JQNjVc`~yh=wRsfi7t@4PV|P@Vh#lE;)}%9O2>tTCzNG;A^NH zWt5J^9QAlwE==_6nm)By>c7GvSubB43T~jT@UC=%zFB^!IDy)gbrla&eA%EoQgqQd z!d||~MU9h!x}mRw9xJ<7>isdjU$#jS>uFlKU7SP9%kPr5)X|IzyA<{@oheV1M%Phj zg-36v@nI^j$iyJ0SH!l1*6&pDK+R7TABy3>>_^Jj-a9V0S#6KiN0;_K zee~>QsiPN>I>|ctBYlh;DOl+|bOoQ@Ojqy?5L~g{K*8N8jS-h>|9#A`&xoKjug*R2 zJ}OiqVeulRzxWbuS7N02eRM<_%jexy)1@9C(vnr3#qa2aRVCu{WOe7d{>nczBHekD|FN4Iv7YnCxpK=5!98W#zUol4|{p23*`r-o^@ee~mB%_zJP+ia~ zh9Hr#a}8Cw+-?T7vEUx^{R+po>@Z8q`5d5d9!AH#G%L9=P3r$}<_rFr*9 z)2E(p9m?P`Hai!)?H;=38IaKtm?HgpPrv^2Nv-elu(X|-C|PieH#?N8v!%%Lv?)Nz zLw<8cEW4+VGfJ(cN7jt!=tdXUvU1oIPHqqlExdluTpoE%cC-vPc1m9fBQG$-%a zcu^04ME#aZsdMB;G%tN;(ATTu{txunp4~O?(CA>Qyet2?4VAQiLmZ8gY!thxp=S5S zS#4Z{U)Hn@$hqsUY1&~x>jq701l+Sp(=H>u&H*0AacTFPnr62MLIYp`u4lqGYua4E zBEUZZzXL4BaxZPsw3I+Wcxs!btp=kdu34*7=x7fCq$C+yU;^&qGQ zY+yn_6|icTrp3U3YQPl0J%Ck!gW;=C7!-x^IRPhOakvb)2$7KwzLkKpm>)13^fH2> z5sFs=rnH58z-+*3tZwCParv+ZjVd4x1MXk~KrdkNK}}1*$gX3(uLL}djU*N$+|!_G z-vUOVOdpRC9tJFdf|G#dfGS`W;B~+qfL5Gcy?~PduL7RL4Z=$B^Ak?%Hg`uXyuG=1 zbizL{FavG$;r|2pi>048M@rUh6trb%*SXc2hCLhCjv=8dq$wdRhnbGzFP0wM(kUVa z+0ydqEehDH_>)Q5(nVZNZ*Ccevgh2ENYq$2w%irr+1Olu%}MCtRo(RNsAv zrH>$V=@Q(|T8R$qZGs(tQM9#soLEOUt9y$0Lb!FN<(1u9$Vk4iv25(jT@t9CI%NhkR+pB>l!emg+wX-_ zB6jq|E$WaR_u{7a8MF&&E`>+S(ivs<)m>?oXXWBEBu_$I(|Axt=Lu^bB%8rxcwjzU>G%kv$D zAA>A6!-Rjgx9sdF{1I$96(-boh=0DO>s!M*Amd|OKSEaCZw#yDv*QL@uy2r5_y(2U zHQ~7rCyB*1lRtdRlE`zyPX_)ZeA=uU$#2HIF~oJZj`vb(?Fcc2o~liD?J;TYWdc0U zWA2#uPZMu`sTOKX{OC~z9am8NTrlywap%a-_ju=L5^|X395m@U^!VX5g7Fs(JoT;% zi+<1?9v`at>4zB+kr#zDrY;%jRa!S9I)&rc@8PwCdB0Jyy z>6tnhpQQ0?hmN0q)cN)=*a(WKxBtAN7OPYbX!3gK`-U~CxBtpwLT5v`_hCa@xfvhx zO?)M7{CozyE}nqbYf?`%#Y*+L)Z^Erz+y5uifQt%BRZ(a|JH}j1$83tuc1MHKSMeF c>%hR0%?3#cMPD5hShdS|tE!oNwRfBU2WJAOV*mgE diff --git a/src/core.lib/src/adapters/NodeIDependsAdapter.js b/src/core.lib/src/adapters/NodeIDependsAdapter.js index 776272de..e4392ef8 100644 --- a/src/core.lib/src/adapters/NodeIDependsAdapter.js +++ b/src/core.lib/src/adapters/NodeIDependsAdapter.js @@ -1 +1 @@ -var _0x19cca1=_0x3b67;function _0x3b67(_0x4e2d62,_0x2b703c){var _0x43da95=_0x43da();return _0x3b67=function(_0x3b6794,_0x5e2486){_0x3b6794=_0x3b6794-0x186;var _0x30a87a=_0x43da95[_0x3b6794];return _0x30a87a;},_0x3b67(_0x4e2d62,_0x2b703c);}function _0x43da(){var _0x485bdb=['onMSFSsoError','2718873aSehtg','46326dbXYaL','13KNQOpC','getGroupCode','500FKyOoW','2825766sIjvqf','2443SNCuSJ','onMSFStatusChange','5149530LDXDOT','28430WpXmXq','6928nFtyJZ','25344720iHJUOk'];_0x43da=function(){return _0x485bdb;};return _0x43da();}(function(_0x503e40,_0x4b232d){var _0x5cda5a=_0x3b67,_0xa74c3b=_0x503e40();while(!![]){try{var _0x3b6569=-parseInt(_0x5cda5a(0x192))/0x1*(-parseInt(_0x5cda5a(0x191))/0x2)+-parseInt(_0x5cda5a(0x190))/0x3+parseInt(_0x5cda5a(0x187))/0x4*(-parseInt(_0x5cda5a(0x18c))/0x5)+-parseInt(_0x5cda5a(0x188))/0x6+parseInt(_0x5cda5a(0x189))/0x7*(parseInt(_0x5cda5a(0x18d))/0x8)+-parseInt(_0x5cda5a(0x18b))/0x9+parseInt(_0x5cda5a(0x18e))/0xa;if(_0x3b6569===_0x4b232d)break;else _0xa74c3b['push'](_0xa74c3b['shift']());}catch(_0x55844b){_0xa74c3b['push'](_0xa74c3b['shift']());}}}(_0x43da,0x749d5));export class DependsAdapter{[_0x19cca1(0x18a)](_0x1d14d4,_0x4f88a6){}[_0x19cca1(0x18f)](_0x156ded){}[_0x19cca1(0x186)](_0x4766d7){}} \ No newline at end of file +var _0x11703e=_0x4289;(function(_0x14fe9e,_0x385e95){var _0x17a8f4=_0x4289,_0x2fee79=_0x14fe9e();while(!![]){try{var _0x23485e=-parseInt(_0x17a8f4(0x199))/0x1*(parseInt(_0x17a8f4(0x1a0))/0x2)+-parseInt(_0x17a8f4(0x19a))/0x3+-parseInt(_0x17a8f4(0x197))/0x4+-parseInt(_0x17a8f4(0x1a1))/0x5*(parseInt(_0x17a8f4(0x19b))/0x6)+parseInt(_0x17a8f4(0x19f))/0x7+parseInt(_0x17a8f4(0x19d))/0x8+parseInt(_0x17a8f4(0x198))/0x9;if(_0x23485e===_0x385e95)break;else _0x2fee79['push'](_0x2fee79['shift']());}catch(_0xd40188){_0x2fee79['push'](_0x2fee79['shift']());}}}(_0x5678,0xb840b));function _0x5678(){var _0x4f43f4=['656136jGBuYE','18eJrtre','onMSFSsoError','3176448SZEefF','onMSFStatusChange','6203204hhrgJY','170698rxrFyG','1812385VRGNUy','5262764iOVXMB','23448591ySUCvT','6kBAGxc'];_0x5678=function(){return _0x4f43f4;};return _0x5678();}function _0x4289(_0x1925a2,_0x3dd9f7){var _0x567848=_0x5678();return _0x4289=function(_0x428940,_0xa1099d){_0x428940=_0x428940-0x197;var _0x54a209=_0x567848[_0x428940];return _0x54a209;},_0x4289(_0x1925a2,_0x3dd9f7);}export class DependsAdapter{[_0x11703e(0x19e)](_0xbfdeff,_0x342738){}[_0x11703e(0x19c)](_0x4fa625){}['getGroupCode'](_0xc52be7){}} \ 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 77d23f07..70265fbe 100644 --- a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js +++ b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js @@ -1 +1 @@ -function _0x5373(_0x2b9ce7,_0xffbb7d){var _0x2366ad=_0x2366();return _0x5373=function(_0x537331,_0x559829){_0x537331=_0x537331-0xd4;var _0x1f83da=_0x2366ad[_0x537331];return _0x1f83da;},_0x5373(_0x2b9ce7,_0xffbb7d);}var _0x278f04=_0x5373;(function(_0x367efd,_0x3f1bf7){var _0x384670=_0x5373,_0x565677=_0x367efd();while(!![]){try{var _0x26beb0=-parseInt(_0x384670(0xdf))/0x1*(parseInt(_0x384670(0xe1))/0x2)+parseInt(_0x384670(0xd5))/0x3*(parseInt(_0x384670(0xdd))/0x4)+-parseInt(_0x384670(0xda))/0x5*(parseInt(_0x384670(0xe0))/0x6)+-parseInt(_0x384670(0xd7))/0x7+-parseInt(_0x384670(0xdb))/0x8*(parseInt(_0x384670(0xde))/0x9)+-parseInt(_0x384670(0xd6))/0xa*(-parseInt(_0x384670(0xd4))/0xb)+parseInt(_0x384670(0xd9))/0xc;if(_0x26beb0===_0x3f1bf7)break;else _0x565677['push'](_0x565677['shift']());}catch(_0x4de050){_0x565677['push'](_0x565677['shift']());}}}(_0x2366,0x57694));export class DispatcherAdapter{[_0x278f04(0xd8)](_0x2a639c){}[_0x278f04(0xdc)](_0x3df573){}['dispatchCallWithJson'](_0x6e6a4c){}}function _0x2366(){var _0xc6638c=['1898568MMlxTI','dispatchCall','1799812jXdYXo','27pZjsRH','6007PSOqrs','625128YiqIDj','6meDdBF','362461TnDcTN','3EkkoSG','70NqnjQm','663054oxnAYm','dispatchRequest','13527120ltVhkv','30ruWnzX'];_0x2366=function(){return _0xc6638c;};return _0x2366();} \ No newline at end of file +function _0x457b(){var _0x518fd6=['dispatchRequest','4812IByFfB','dispatchCallWithJson','866148CveLuN','1436420SVJfni','14ffhyvo','319RuoNAg','9498186DzIrKk','4720DPciZQ','15OmBUzY','1528672VLtpbQ','24296KtcOah','dispatchCall','766490JgvRsu'];_0x457b=function(){return _0x518fd6;};return _0x457b();}function _0x4873(_0x2524dd,_0x480c8c){var _0x457b05=_0x457b();return _0x4873=function(_0x48739e,_0x379e7f){_0x48739e=_0x48739e-0x1c9;var _0x1c20a5=_0x457b05[_0x48739e];return _0x1c20a5;},_0x4873(_0x2524dd,_0x480c8c);}var _0x421b03=_0x4873;(function(_0x106d9a,_0x2d23ed){var _0x1586ef=_0x4873,_0x3f9eac=_0x106d9a();while(!![]){try{var _0x3fc30c=parseInt(_0x1586ef(0x1d2))/0x1+parseInt(_0x1586ef(0x1ca))/0x2+parseInt(_0x1586ef(0x1c9))/0x3*(parseInt(_0x1586ef(0x1d1))/0x4)+-parseInt(_0x1586ef(0x1d6))/0x5*(-parseInt(_0x1586ef(0x1cf))/0x6)+parseInt(_0x1586ef(0x1d3))/0x7*(parseInt(_0x1586ef(0x1cb))/0x8)+-parseInt(_0x1586ef(0x1d5))/0x9+-parseInt(_0x1586ef(0x1cd))/0xa*(parseInt(_0x1586ef(0x1d4))/0xb);if(_0x3fc30c===_0x2d23ed)break;else _0x3f9eac['push'](_0x3f9eac['shift']());}catch(_0xbe43ef){_0x3f9eac['push'](_0x3f9eac['shift']());}}}(_0x457b,0xbb9ac));export class DispatcherAdapter{[_0x421b03(0x1ce)](_0x3d785c){}[_0x421b03(0x1cc)](_0x5bd04c){}[_0x421b03(0x1d0)](_0x36e7b3){}} \ 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 06e5d162..da8e816e 100644 --- a/src/core.lib/src/adapters/NodeIGlobalAdapter.js +++ b/src/core.lib/src/adapters/NodeIGlobalAdapter.js @@ -1 +1 @@ -var _0x507796=_0x4dd4;(function(_0x5d8a39,_0x2e8960){var _0x151ed0=_0x4dd4,_0x5c0894=_0x5d8a39();while(!![]){try{var _0x412819=-parseInt(_0x151ed0(0x9a))/0x1+-parseInt(_0x151ed0(0x99))/0x2+parseInt(_0x151ed0(0x9c))/0x3*(parseInt(_0x151ed0(0xa4))/0x4)+-parseInt(_0x151ed0(0x9f))/0x5+-parseInt(_0x151ed0(0xa2))/0x6*(parseInt(_0x151ed0(0xa0))/0x7)+-parseInt(_0x151ed0(0x9d))/0x8*(-parseInt(_0x151ed0(0x9b))/0x9)+parseInt(_0x151ed0(0xa3))/0xa;if(_0x412819===_0x2e8960)break;else _0x5c0894['push'](_0x5c0894['shift']());}catch(_0x1543ea){_0x5c0894['push'](_0x5c0894['shift']());}}}(_0x1fbf,0x7ea3f));function _0x4dd4(_0x5acf60,_0x5e2498){var _0x1fbfa9=_0x1fbf();return _0x4dd4=function(_0x4dd4ed,_0x493fef){_0x4dd4ed=_0x4dd4ed-0x98;var _0xe69a6f=_0x1fbfa9[_0x4dd4ed];return _0xe69a6f;},_0x4dd4(_0x5acf60,_0x5e2498);}function _0x1fbf(){var _0x46492c=['726755BvXnhR','21eovJev','fixPicImgType','946908fciiBt','10083230HbWaVK','8wfvDYM','onGetOfflineMsg','onShowErrUITips','getAppSetting','1566992IQpUwL','299110syqAMD','27NHBruA','1243551NyRWug','1020728hSDVQy','onInstallFinished'];_0x1fbf=function(){return _0x46492c;};return _0x1fbf();}export class GlobalAdapter{['onLog'](..._0x5dfe5f){}['onGetSrvCalTime'](..._0x42ea71){}[_0x507796(0xa6)](..._0x1e2771){}[_0x507796(0xa1)](..._0x43eacc){}[_0x507796(0x98)](..._0x4fad89){}[_0x507796(0x9e)](..._0x3d6570){}['onUpdateGeneralFlag'](..._0x233bc3){}[_0x507796(0xa5)](..._0x13035d){}} \ No newline at end of file +var _0x5c9ae4=_0x2c91;(function(_0x43cd1e,_0x5f2726){var _0x3d0d5f=_0x2c91,_0x4d4242=_0x43cd1e();while(!![]){try{var _0x198f8d=-parseInt(_0x3d0d5f(0x1ca))/0x1+-parseInt(_0x3d0d5f(0x1d2))/0x2*(-parseInt(_0x3d0d5f(0x1c9))/0x3)+-parseInt(_0x3d0d5f(0x1ce))/0x4*(-parseInt(_0x3d0d5f(0x1cb))/0x5)+-parseInt(_0x3d0d5f(0x1d8))/0x6*(parseInt(_0x3d0d5f(0x1cf))/0x7)+-parseInt(_0x3d0d5f(0x1cc))/0x8+parseInt(_0x3d0d5f(0x1d3))/0x9+parseInt(_0x3d0d5f(0x1d7))/0xa;if(_0x198f8d===_0x5f2726)break;else _0x4d4242['push'](_0x4d4242['shift']());}catch(_0x312485){_0x4d4242['push'](_0x4d4242['shift']());}}}(_0xb55f,0xad4de));function _0x2c91(_0x324a0b,_0x2ec743){var _0xb55f5a=_0xb55f();return _0x2c91=function(_0x2c9140,_0x6596a3){_0x2c9140=_0x2c9140-0x1c8;var _0x107167=_0xb55f5a[_0x2c9140];return _0x107167;},_0x2c91(_0x324a0b,_0x2ec743);}function _0xb55f(){var _0x28c32a=['onShowErrUITips','fixPicImgType','25282700HCwjdj','29826nObaNT','onLog','87519QBkIZe','548044NXdnta','960UbXKkE','9384632mENyDN','onInstallFinished','14644IMFvsb','1365sBxMDg','getAppSetting','onGetSrvCalTime','2jzthzw','1259703WJTONS','onGetOfflineMsg'];_0xb55f=function(){return _0x28c32a;};return _0xb55f();}export class GlobalAdapter{[_0x5c9ae4(0x1c8)](..._0x4faadc){}[_0x5c9ae4(0x1d1)](..._0x5eddcd){}[_0x5c9ae4(0x1d5)](..._0x5e2de5){}[_0x5c9ae4(0x1d6)](..._0x4276c8){}[_0x5c9ae4(0x1d0)](..._0x17fbdc){}[_0x5c9ae4(0x1cd)](..._0x6c30cd){}['onUpdateGeneralFlag'](..._0xbba1){}[_0x5c9ae4(0x1d4)](..._0x43d571){}} \ 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 c2ebf9c6..75e3df22 100644 --- a/src/core.lib/src/adapters/index.js +++ b/src/core.lib/src/adapters/index.js @@ -1 +1 @@ -(function(_0x3ddc3c,_0x2196c4){var _0x19e16a=_0x18ea,_0x1b8482=_0x3ddc3c();while(!![]){try{var _0x4c96bb=-parseInt(_0x19e16a(0x1f5))/0x1*(parseInt(_0x19e16a(0x1f6))/0x2)+-parseInt(_0x19e16a(0x1fc))/0x3*(-parseInt(_0x19e16a(0x1f8))/0x4)+-parseInt(_0x19e16a(0x1fa))/0x5+-parseInt(_0x19e16a(0x1f3))/0x6*(-parseInt(_0x19e16a(0x1f9))/0x7)+-parseInt(_0x19e16a(0x1fb))/0x8*(parseInt(_0x19e16a(0x1f4))/0x9)+parseInt(_0x19e16a(0x1f7))/0xa+-parseInt(_0x19e16a(0x1f2))/0xb;if(_0x4c96bb===_0x2196c4)break;else _0x1b8482['push'](_0x1b8482['shift']());}catch(_0x5704d2){_0x1b8482['push'](_0x1b8482['shift']());}}}(_0x50c1,0x5914c));function _0x18ea(_0x59a999,_0xa62c8b){var _0x50c133=_0x50c1();return _0x18ea=function(_0x18eaf4,_0x5b2dd8){_0x18eaf4=_0x18eaf4-0x1f2;var _0xdb4126=_0x50c133[_0x18eaf4];return _0xdb4126;},_0x18ea(_0x59a999,_0xa62c8b);}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';function _0x50c1(){var _0x25f92a=['244svyoWI','18956RxJdBu','866245nHgMjv','40RonzIC','3126noqWuq','408672rSzKzb','864zoStvL','104022dAaYDi','260044qjwCVq','2UiMGjy','4395970MYGRWb'];_0x50c1=function(){return _0x25f92a;};return _0x50c1();} \ No newline at end of file +(function(_0x59f571,_0x28e69f){var _0x30c288=_0x2c90,_0x28bdfe=_0x59f571();while(!![]){try{var _0x3383ad=parseInt(_0x30c288(0xb1))/0x1*(parseInt(_0x30c288(0xb2))/0x2)+parseInt(_0x30c288(0xb3))/0x3+parseInt(_0x30c288(0xb0))/0x4*(-parseInt(_0x30c288(0xb6))/0x5)+parseInt(_0x30c288(0xae))/0x6*(parseInt(_0x30c288(0xb5))/0x7)+-parseInt(_0x30c288(0xaf))/0x8+parseInt(_0x30c288(0xad))/0x9+parseInt(_0x30c288(0xb4))/0xa;if(_0x3383ad===_0x28e69f)break;else _0x28bdfe['push'](_0x28bdfe['shift']());}catch(_0x111d88){_0x28bdfe['push'](_0x28bdfe['shift']());}}}(_0x9096,0x3d0f3));function _0x9096(){var _0x418405=['190821ceZuPY','956780uilhaD','342818kLgOrT','11915kYmiPh','72162CkmnuE','54aIlPZo','2932344RGHGVv','52DjVmbW','96SiwDqy','824UGWrUQ'];_0x9096=function(){return _0x418405;};return _0x9096();}function _0x2c90(_0x560b6e,_0x32ed0f){var _0x909699=_0x9096();return _0x2c90=function(_0x2c90a7,_0x28cdaf){_0x2c90a7=_0x2c90a7-0xad;var _0x85ee41=_0x909699[_0x2c90a7];return _0x85ee41;},_0x2c90(_0x560b6e,_0x32ed0f);}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 d5d78883..3fd88f5f 100644 --- a/src/core.lib/src/apis/file.js +++ b/src/core.lib/src/apis/file.js @@ -1 +1 @@ -const _0x146e2b=_0x86af;(function(_0x4cf837,_0x5d6e08){const _0x197be2=_0x86af,_0x5214c8=_0x4cf837();while(!![]){try{const _0x4bf7d8=parseInt(_0x197be2(0x1ce))/0x1+-parseInt(_0x197be2(0x1f9))/0x2*(parseInt(_0x197be2(0x215))/0x3)+-parseInt(_0x197be2(0x1bf))/0x4*(parseInt(_0x197be2(0x203))/0x5)+parseInt(_0x197be2(0x1d3))/0x6+parseInt(_0x197be2(0x1f2))/0x7+-parseInt(_0x197be2(0x1c9))/0x8+parseInt(_0x197be2(0x1b7))/0x9;if(_0x4bf7d8===_0x5d6e08)break;else _0x5214c8['push'](_0x5214c8['shift']());}catch(_0x504da4){_0x5214c8['push'](_0x5214c8['shift']());}}}(_0x33e3,0x5de6e));import{ChatType,ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x22b9c1 from'path';import _0x43f84f from'fs';import _0x4e8eea from'fs/promises';import{logDebug,logError}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x213a39 from'file-type';function _0x86af(_0x21992b,_0x5987f6){const _0x33e3e9=_0x33e3();return _0x86af=function(_0x86af00,_0x18fe0a){_0x86af00=_0x86af00-0x1a7;let _0x3cb118=_0x33e3e9[_0x86af00];return _0x3cb118;},_0x86af(_0x21992b,_0x5987f6);}import{MsgListener}from'@/core/listeners';import _0x571c4a from'image-size';function _0x33e3(){const _0x225433=['CfsCm','10YYUGDM','clearCacheDataByKeys','HrDQz','indexOf','set','downloadMedia','peerUid','util','unlink','WrGNA','XyPqp','basename','JuMrm','getFileCacheInfo','addCacheScannedPaths','elementId','get','MUwAT','91506qnlBsw','图片url获取失败','UXHld','zadNW','LahwU','md5HexStr','sourcePath','zpHqT','图片rkey有效','downloadRichMedia','wFYyp','hookApi\x20is\x20not\x20available','getImageSize','getRKey','receive\x20downloadMedia\x20task','wNJwH','nhzgX','Fslav','addCacheScanedPaths','group','getDesktopTmpPath','getCacheSessionPathList','iNqEc','5173029FcPsta','nThKS','&rkey=','getFileType','EQHJN','hENOh','catch','originImageUrl','1045488rdFloW','aTZQG','getMsgService','toUpperCase','join','/gchatpic_new/0/0-0-','开始调用moeHook获取rkey','getImageUrl','getHotUpdateCachePath','clearChatCache','2701136wWgiyA','检查rkey是否有效','getChatCacheList','uploadFile','then','741211snpLAj','onRichMediaDownloadComplete','zPRWd','AnhSd','ZnaGn','808818jXEucQ','ext','PhXHF','elements','GChFH','error','AwJLd','nafho','copyFile','downloadMedia\x20complete','OAZyo','qEKgc','find','/download','addListener','WaPLP','isAvailable','picElement','getChatCacheInfo','mBdfZ','JobII','existsSync','fileTypeFromFile','start\x20downloadMedia','下载超时','filePath','chatType','defaultFileDownloadPath','clearChatCacheInfo','now','VYhHr','1975715rPHoiu','kNEOg','startsWith','tlsEp','getFileSize','fileUuid','getStorageCleanService','32TssfhC','session','CdjEb','图片rkey获取失败','BlOyq','PIC','onLoginSuccess','wuuSl','aTQJb'];_0x33e3=function(){return _0x225433;};return _0x33e3();}import{sessionConfig}from'@/core/sessionConfig';import{hookApi}from'@/core/external/hook';import{randomUUID}from'crypto';import{AsyncQueue}from'@/common/utils/AsyncQueue';import{sleep}from'@/common/utils/helper';import _0xaf5c56 from'https';let privateImageRKey='',groupImageRKey='',lastGetPrivateRKeyTime=0x0,lastGetGroupRKeyTime=0x0;const rkeyExpireTime=0x3e8*0x3c*0x1e,getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x146e2b(0x1cf)]=_0x52c054=>{const _0x3a49e9=_0x146e2b,_0x225853={'wuuSl':function(_0x1e54e2,_0x3d0744){return _0x1e54e2(_0x3d0744);}};for(const [_0x249d96,_0x3888d3]of downloadMediaTasks){_0x225853[_0x3a49e9(0x200)](_0x3888d3,_0x52c054),downloadMediaTasks['delete'](_0x249d96);}},setTimeout(()=>{const _0x29b328=_0x146e2b;napCatCore[_0x29b328(0x1ff)](()=>{const _0xbd26ce=_0x29b328;napCatCore[_0xbd26ce(0x1e1)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async['getFileType'](_0x21b928){const _0x382803=_0x146e2b;return _0x213a39[_0x382803(0x1e9)](_0x21b928);}static async[_0x146e2b(0x1db)](_0x2e0f8f,_0x448a5f){const _0x12014b=_0x146e2b;await napCatCore[_0x12014b(0x20a)][_0x12014b(0x1db)](_0x2e0f8f,_0x448a5f);}static async[_0x146e2b(0x1f6)](_0x3425ad){const _0x34119c=_0x146e2b;return await napCatCore['util'][_0x34119c(0x1f6)](_0x3425ad);}static async[_0x146e2b(0x1cc)](_0xb91dff,_0x1f24a9=ElementType[_0x146e2b(0x1fe)],_0x198b11=0x0){const _0x28bdd6=_0x146e2b,_0x32343d={'AwJLd':function(_0x41e505,_0x486e4c){return _0x41e505+_0x486e4c;},'nThKS':function(_0x50b386,_0x1d9137){return _0x50b386===_0x1d9137;}},_0x75afdd=await calculateFileMD5(_0xb91dff);let _0x469508=(await NTQQFileApi[_0x28bdd6(0x1ba)](_0xb91dff))?.[_0x28bdd6(0x1d4)]||'';_0x469508&&(_0x469508=_0x32343d[_0x28bdd6(0x1d9)]('.',_0x469508));let _0x4783e9=''+_0x22b9c1[_0x28bdd6(0x20e)](_0xb91dff);_0x32343d[_0x28bdd6(0x1b8)](_0x4783e9[_0x28bdd6(0x206)]('.'),-0x1)&&(_0x4783e9+=_0x469508);const _0x5bbb1f=napCatCore[_0x28bdd6(0x1fa)][_0x28bdd6(0x1c1)]()['getRichMediaFilePathForGuild']({'md5HexStr':_0x75afdd,'fileName':_0x4783e9,'elementType':_0x1f24a9,'elementSubType':_0x198b11,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x28bdd6(0x1db)](_0xb91dff,_0x5bbb1f);const _0x497254=await NTQQFileApi[_0x28bdd6(0x1f6)](_0xb91dff);return{'md5':_0x75afdd,'fileName':_0x4783e9,'path':_0x5bbb1f,'fileSize':_0x497254,'ext':_0x469508};}static async[_0x146e2b(0x208)](_0x5576be,_0x29b30e,_0x14688d,_0x35a352,_0x539296,_0x83db93,_0x274dec=0x3e8*0x3c*0x2,_0x119854=![]){const _0x1ce967=_0x146e2b,_0x3ea0dd={'MUwAT':_0x1ce967(0x1eb),'zpHqT':_0x1ce967(0x1dc),'JuMrm':function(_0x16fd92,_0x268797){return _0x16fd92===_0x268797;},'UXHld':'downloadPath','HDqfx':function(_0x46fd91,_0x688191){return _0x46fd91(_0x688191);},'VYhHr':function(_0x294584,_0x2dabd5,_0x2d77ac){return _0x294584(_0x2dabd5,_0x2d77ac);},'Fslav':function(_0x363981,_0x6e07d9,_0x5fba26,_0xb7e241,_0x132b55,_0xc13a8f,_0x1c61eb,_0x258e84,_0x2b9a70,_0x20743a){return _0x363981(_0x6e07d9,_0x5fba26,_0xb7e241,_0x132b55,_0xc13a8f,_0x1c61eb,_0x258e84,_0x2b9a70,_0x20743a);},'iKRjs':_0x1ce967(0x1ae),'tlsEp':function(_0x4219e6,_0xa64c00,_0x26462c,_0x33303c,_0x12ef72,_0x2532c1,_0x3f1921,_0x4f03a5,_0x5a2571,_0x4fe76b){return _0x4219e6(_0xa64c00,_0x26462c,_0x33303c,_0x12ef72,_0x2532c1,_0x3f1921,_0x4f03a5,_0x5a2571,_0x4fe76b);},'PhXHF':_0x1ce967(0x1ea)};_0x3ea0dd[_0x1ce967(0x1b1)](logDebug,_0x3ea0dd['iKRjs'],_0x5576be,_0x29b30e,_0x14688d,_0x35a352,_0x539296,_0x83db93,_0x274dec,_0x119854);if(_0x83db93&&_0x43f84f[_0x1ce967(0x1e8)](_0x83db93)){if(_0x119854)try{await _0x4e8eea[_0x1ce967(0x20b)](_0x83db93);}catch(_0x23fc68){}else return _0x83db93;}return _0x3ea0dd[_0x1ce967(0x1f5)](logDebug,_0x3ea0dd[_0x1ce967(0x1d5)],_0x5576be,_0x29b30e,_0x14688d,_0x35a352,_0x539296,_0x83db93,_0x274dec,_0x119854),new Promise((_0x318a28,_0x4c34dd)=>{const _0x2c6830=_0x1ce967,_0x3aa68e={'rxFzk':function(_0x4ad823,_0x14e8b0,_0x2be698,_0x376dd1){return _0x4ad823(_0x14e8b0,_0x2be698,_0x376dd1);},'HrDQz':_0x3ea0dd[_0x2c6830(0x1a7)],'mANCD':function(_0x14836e,_0x4032bb){const _0x51f22d=_0x2c6830;return _0x3ea0dd[_0x51f22d(0x20f)](_0x14836e,_0x4032bb);},'JYSli':function(_0x460ae7,_0x5a3e43,_0x3b217c){return _0x460ae7(_0x5a3e43,_0x3b217c);},'BlOyq':_0x3ea0dd[_0x2c6830(0x217)],'EQHJN':function(_0x5ed836,_0x41cce1){return _0x3ea0dd['HDqfx'](_0x5ed836,_0x41cce1);}};let _0x4d32ca=![];const _0x3d31f0=_0x3c78d4=>{const _0x4b1e07=_0x2c6830;_0x3aa68e['rxFzk'](logDebug,_0x3aa68e[_0x4b1e07(0x205)],_0x3c78d4,_0x5576be);if(_0x3aa68e['mANCD'](_0x3c78d4['msgId'],_0x5576be)){_0x4d32ca=!![];let _0x5dac68=_0x3c78d4[_0x4b1e07(0x1ec)];if(_0x5dac68[_0x4b1e07(0x1f4)]('\x5c')){const _0x2863c8=sessionConfig[_0x4b1e07(0x1ee)];_0x3aa68e['JYSli'](logDebug,_0x3aa68e[_0x4b1e07(0x1fd)],_0x2863c8),_0x5dac68=_0x22b9c1[_0x4b1e07(0x1c3)](_0x2863c8,_0x5dac68);}_0x3aa68e[_0x4b1e07(0x1bb)](_0x318a28,_0x5dac68);}};downloadMediaTasks[_0x2c6830(0x207)](randomUUID(),_0x3d31f0),_0x3ea0dd[_0x2c6830(0x1f1)](setTimeout,()=>{const _0x262a11=_0x2c6830;!_0x4d32ca&&_0x4c34dd(_0x3ea0dd[_0x262a11(0x214)]);},_0x274dec),napCatCore[_0x2c6830(0x1fa)][_0x2c6830(0x1c1)]()[_0x2c6830(0x1a9)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x5576be,'chatType':_0x29b30e,'peerUid':_0x14688d,'elementId':_0x35a352,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x539296});});}static async[_0x146e2b(0x1ac)](_0xc4a0c6){const _0x5045e5={'VzCkG':function(_0x414ddd,_0x22f0a1){return _0x414ddd(_0x22f0a1);},'qEKgc':function(_0x2a8b83,_0x191f7e,_0x28d1da){return _0x2a8b83(_0x191f7e,_0x28d1da);}};return new Promise((_0x5943b8,_0x51f708)=>{const _0x475dbd=_0x86af,_0x29d326={'OAZyo':function(_0x12cab1,_0x3c0357){return _0x5045e5['VzCkG'](_0x12cab1,_0x3c0357);}};_0x5045e5[_0x475dbd(0x1de)](_0x571c4a,_0xc4a0c6,(_0x4afaca,_0x2c3861)=>{const _0x38c869=_0x475dbd;_0x4afaca?_0x29d326[_0x38c869(0x1dd)](_0x51f708,_0x4afaca):_0x29d326[_0x38c869(0x1dd)](_0x5943b8,_0x2c3861);});});}static async[_0x146e2b(0x1c6)](_0x4bd897){const _0x18b4c2=_0x146e2b,_0x3ac886={'zPRWd':_0x18b4c2(0x1fc),'nhzgX':_0x18b4c2(0x1d8),'AnhSd':function(_0x23a36e,_0x1490e7){return _0x23a36e(_0x1490e7);},'ulklm':'获取图片rkey...','cllme':function(_0x512b05,_0x47eabd){return _0x512b05*_0x47eabd;},'iNqEc':function(_0x1fcd50,_0x473445){return _0x1fcd50(_0x473445);},'frDIU':function(_0x50aee4,_0x4f6bba){return _0x50aee4(_0x4f6bba);},'JobII':function(_0x517c4a,_0x3ceaa2){return _0x517c4a+_0x3ceaa2;},'kNEOg':function(_0x4db5cc,_0x27101f,_0x48aa1c){return _0x4db5cc(_0x27101f,_0x48aa1c);},'LahwU':function(_0x4e33b0,_0x1fca0f){return _0x4e33b0(_0x1fca0f);},'hENOh':function(_0x53eae4,_0x193134,_0x198047,_0x24b5a0){return _0x53eae4(_0x193134,_0x198047,_0x24b5a0);},'CdjEb':'图片rkey有误','NqQSy':function(_0x264c36){return _0x264c36();},'QUOwX':function(_0x56050a,_0x3f7bff){return _0x56050a(_0x3f7bff);},'WrGNA':function(_0x51c694,_0x18c9e5){return _0x51c694!==_0x18c9e5;},'WaPLP':_0x18b4c2(0x1e0),'CfsCm':_0x18b4c2(0x1b9),'nafho':_0x18b4c2(0x1ab),'mBdfZ':function(_0x1d3c5b,_0x352655){return _0x1d3c5b-_0x352655;},'aTZQG':function(_0x596f1e,_0x17aed9){return _0x596f1e+_0x17aed9;},'ZnaGn':function(_0x3734c7,_0x52a8c4){return _0x3734c7||_0x52a8c4;},'TzYIm':function(_0x42713c,_0x467430){return _0x42713c||_0x467430;},'wNJwH':_0x18b4c2(0x216)},_0x2b2a43=_0x3ac886[_0x18b4c2(0x20c)](_0x4bd897[_0x18b4c2(0x1ed)],ChatType[_0x18b4c2(0x1b3)]),_0x395be0=_0x4bd897[_0x18b4c2(0x1d6)][_0x18b4c2(0x1df)](_0x3ba220=>!!_0x3ba220[_0x18b4c2(0x1e4)]);if(!_0x395be0)return'';const _0x202565=_0x395be0[_0x18b4c2(0x1e4)][_0x18b4c2(0x1be)],_0x517467=_0x395be0[_0x18b4c2(0x1e4)][_0x18b4c2(0x21a)],_0x2a8343=_0x395be0[_0x18b4c2(0x1e4)]['md5HexStr'],_0x43050c=_0x395be0[_0x18b4c2(0x1e4)][_0x18b4c2(0x1f7)],_0xb62c3f=_0x10efb3=>{_0x2b2a43?(privateImageRKey=_0x10efb3,lastGetPrivateRKeyTime=Date['now']()):(groupImageRKey=_0x10efb3,lastGetGroupRKeyTime=Date['now']());};if(_0x202565){if(_0x202565[_0x18b4c2(0x1f4)](_0x3ac886[_0x18b4c2(0x1e2)])){if(_0x202565['includes'](_0x3ac886[_0x18b4c2(0x202)]))return IMAGE_HTTP_HOST_NT+_0x202565;if(!hookApi[_0x18b4c2(0x1e3)]())return _0x3ac886[_0x18b4c2(0x1d1)](logDebug,_0x3ac886[_0x18b4c2(0x1da)]),'';const _0x2f3836=async()=>{const _0x1b43b3=_0x18b4c2,_0x34cfe8={'XyPqp':function(_0x5f5a5a,_0x4eaae7){return _0x5f5a5a(_0x4eaae7);},'zadNW':_0x3ac886[_0x1b43b3(0x1d0)],'wFYyp':_0x3ac886[_0x1b43b3(0x1b0)]};_0x3ac886['AnhSd'](logDebug,_0x3ac886['ulklm']),NTQQFileApi[_0x1b43b3(0x208)](_0x4bd897['msgId'],_0x4bd897[_0x1b43b3(0x1ed)],_0x4bd897[_0x1b43b3(0x209)],_0x395be0[_0x1b43b3(0x212)],'',_0x395be0[_0x1b43b3(0x1e4)][_0x1b43b3(0x21b)],_0x3ac886['cllme'](0x3e8,0x1e),![])[_0x1b43b3(0x1cd)](_0xc0ae37=>{})[_0x1b43b3(0x1bd)](logError),await _0x3ac886[_0x1b43b3(0x1b6)](sleep,0x3e8),_0x3ac886['frDIU'](logDebug,_0x1b43b3(0x1c5));const _0x46ce19=hookApi[_0x1b43b3(0x1ad)]()||'',_0x479c8a=_0x3ac886[_0x1b43b3(0x1e7)](_0x3ac886[_0x1b43b3(0x1e7)](IMAGE_HTTP_HOST_NT,_0x202565),_0x46ce19);if(_0x46ce19)try{_0x3ac886['kNEOg'](logDebug,_0x1b43b3(0x1ca),_0x479c8a),await new Promise((_0x5952ba,_0x92b16d)=>{const _0x4c6a21=_0x1b43b3,_0x213822={'GChFH':function(_0x2f0508,_0x3d9011){const _0x54912c=_0x86af;return _0x34cfe8[_0x54912c(0x20d)](_0x2f0508,_0x3d9011);},'aTQJb':_0x34cfe8[_0x4c6a21(0x218)]};_0xaf5c56[_0x4c6a21(0x213)](_0x479c8a,_0x251ea0=>{const _0x33b07d=_0x4c6a21;_0x251ea0['statusCode']!==0xc8?_0x213822[_0x33b07d(0x1d7)](_0x92b16d,_0x213822[_0x33b07d(0x201)]):_0x213822[_0x33b07d(0x1d7)](_0x5952ba,_0x251ea0);})['on'](_0x34cfe8[_0x4c6a21(0x1aa)],_0x359ab1=>{const _0x22fbca=_0x4c6a21;_0x34cfe8[_0x22fbca(0x20d)](_0x92b16d,_0x359ab1);});}),_0x3ac886['kNEOg'](logDebug,_0x1b43b3(0x1a8),_0x479c8a),_0x3ac886[_0x1b43b3(0x219)](_0xb62c3f,_0x46ce19);}catch(_0x4d27bb){return _0x3ac886[_0x1b43b3(0x1bc)](logError,_0x3ac886[_0x1b43b3(0x1fb)],_0x479c8a,_0x4d27bb),'';}return _0x46ce19;},_0x1857c4=new Promise((_0x28f411,_0x4d6c39)=>{getRKeyTaskQueue['addTask'](async()=>{const _0xd8f1c0=await _0x3ac886['NqQSy'](_0x2f3836);_0x3ac886['QUOwX'](_0x28f411,_0xd8f1c0);});}),_0x65985c=_0x2b2a43?privateImageRKey:groupImageRKey,_0x18f3a7=_0x2b2a43?lastGetPrivateRKeyTime:lastGetGroupRKeyTime;if(_0x3ac886[_0x18b4c2(0x1e6)](Date[_0x18b4c2(0x1f0)](),_0x18f3a7)>rkeyExpireTime||!_0x65985c){const _0x3e163c=await _0x1857c4;if(_0x3e163c)return _0x3ac886['JobII'](IMAGE_HTTP_HOST_NT+_0x202565,''+_0x3e163c);else _0x3ac886[_0x18b4c2(0x1f3)](logError,_0x3ac886[_0x18b4c2(0x1d0)],_0x202565);}if(_0x65985c)return _0x3ac886[_0x18b4c2(0x1c0)](IMAGE_HTTP_HOST_NT,_0x202565)+(''+_0x65985c);return'';}else return IMAGE_HTTP_HOST+_0x202565;}else{if(_0x3ac886[_0x18b4c2(0x1d2)](_0x2a8343,_0x517467))return IMAGE_HTTP_HOST+_0x18b4c2(0x1c4)+_0x3ac886['TzYIm'](_0x2a8343,_0x517467)[_0x18b4c2(0x1c2)]()+'/0';}return logDebug(_0x3ac886[_0x18b4c2(0x1af)],_0x4bd897),'';}}export class NTQQFileCacheApi{static async['setCacheSilentScan'](_0x19c3e4=!![]){return'';}static[_0x146e2b(0x1b5)](){return'';}static['clearCache'](_0x1b7400=['tmp','hotUpdate']){const _0x87e938=_0x146e2b;return napCatCore[_0x87e938(0x1fa)][_0x87e938(0x1f8)]()[_0x87e938(0x204)](_0x1b7400);}static[_0x146e2b(0x211)](_0x11f47c={}){const _0x40aea8=_0x146e2b;return napCatCore['session']['getStorageCleanService']()[_0x40aea8(0x1b2)](_0x11f47c);}static['scanCache'](){const _0x578b78=_0x146e2b;return napCatCore[_0x578b78(0x1fa)]['getStorageCleanService']()['scanCache']();}static[_0x146e2b(0x1c7)](){return'';}static[_0x146e2b(0x1b4)](){return'';}static[_0x146e2b(0x1cb)](_0x5ea93c,_0x1c521e=0x3e8,_0x2f8f3a=0x0){const _0x3f324c=_0x146e2b;return napCatCore[_0x3f324c(0x1fa)][_0x3f324c(0x1f8)]()[_0x3f324c(0x1e5)](_0x5ea93c,_0x1c521e,0x1,_0x2f8f3a);}static[_0x146e2b(0x210)](_0x139780,_0xd017d7=0x3e8,_0x1c93ab){const _0x3ca21d=_0x1c93ab?_0x1c93ab:{'fileType':_0x139780};}static async[_0x146e2b(0x1c8)](_0x4f8d02=[],_0x4d0c01=[]){const _0x47c074=_0x146e2b;return napCatCore[_0x47c074(0x1fa)]['getStorageCleanService']()[_0x47c074(0x1ef)](_0x4f8d02,_0x4d0c01);}} \ No newline at end of file +function _0x2e51(_0x4f9904,_0x502d2a){const _0x5abf7c=_0x5abf();return _0x2e51=function(_0x2e5144,_0x30ac83){_0x2e5144=_0x2e5144-0x137;let _0x382a83=_0x5abf7c[_0x2e5144];return _0x382a83;},_0x2e51(_0x4f9904,_0x502d2a);}const _0x4a3b4f=_0x2e51;function _0x5abf(){const _0x29ba54=['loAHD','msgId','getFileCacheInfo','getRichMediaFilePathForGuild','ajDlW','clearCache','NKIYR','getFileSize','join','chatType','statusCode','startsWith','图片url获取失败','group','882119dNVaCi','md5HexStr','nHDfp','195QkzUAa','delete','ext','addTask','41864SDaMEP','getFileType','djMAj','179mGrFWb','picElement','EaMuK','2510022nfPumU','clearCacheDataByKeys','indexOf','MbqKQ','util','prosD','Owhdb','XvTqa','setCacheSilentScan','/gchatpic_new/0/0-0-','xAfzI','GBbit','peerUid','NBqfo','isAvailable','getStorageCleanService','basename','toUpperCase','start\x20downloadMedia','session','PIC','16hPpncW','458712IHAbWF','IAjbG','LXaoP','getMsgService','clearChatCacheInfo','downloadMedia','hookApi\x20is\x20not\x20available','414GoiMva','includes','uSUam','getCacheSessionPathList','onLoginSuccess','then','MdyVo','tmp','JYZcK','fileUuid','ICyGb','wtxjd','onRichMediaDownloadComplete','unlink','find','图片rkey有误','clearChatCache','getDesktopTmpPath','/download','开始调用moeHook获取rkey','图片rkey获取失败','getChatCacheInfo','80720LfYkXP','getChatCacheList','scanCache','get','HKdEy','addCacheScanedPaths','3206005aeckFS','existsSync','fileTypeFromFile','BjRym','elements','now','3214yCccZo','getImageSize','addCacheScannedPaths','elementId','getImageUrl','downloadPath'];_0x5abf=function(){return _0x29ba54;};return _0x5abf();}(function(_0x3bff14,_0x57bd6c){const _0x28738f=_0x2e51,_0x3dde9f=_0x3bff14();while(!![]){try{const _0x8cc264=-parseInt(_0x28738f(0x16c))/0x1*(parseInt(_0x28738f(0x14e))/0x2)+-parseInt(_0x28738f(0x185))/0x3+-parseInt(_0x28738f(0x169))/0x4*(-parseInt(_0x28738f(0x165))/0x5)+parseInt(_0x28738f(0x16f))/0x6+parseInt(_0x28738f(0x162))/0x7*(-parseInt(_0x28738f(0x184))/0x8)+-parseInt(_0x28738f(0x18c))/0x9*(-parseInt(_0x28738f(0x142))/0xa)+-parseInt(_0x28738f(0x148))/0xb;if(_0x8cc264===_0x57bd6c)break;else _0x3dde9f['push'](_0x3dde9f['shift']());}catch(_0x54bcf7){_0x3dde9f['push'](_0x3dde9f['shift']());}}}(_0x5abf,0x34311));import{ChatType,ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x1ef4de from'path';import _0x12bc2a from'fs';import _0x488e10 from'fs/promises';import{logDebug,logError}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x567521 from'file-type';import{MsgListener}from'@/core/listeners';import _0x216dde from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{hookApi}from'@/core/external/hook';import{randomUUID}from'crypto';import{AsyncQueue}from'@/common/utils/AsyncQueue';import{sleep}from'@/common/utils/helper';import _0xcf9096 from'https';let privateImageRKey='',groupImageRKey='',lastGetPrivateRKeyTime=0x0,lastGetGroupRKeyTime=0x0;const rkeyExpireTime=0x3e8*0x3c*0x1e,getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x4a3b4f(0x138)]=_0x5cd9f0=>{const _0x49d7b1=_0x4a3b4f;for(const [_0x384c87,_0x49d7a2]of downloadMediaTasks){_0x49d7a2(_0x5cd9f0),downloadMediaTasks[_0x49d7b1(0x166)](_0x384c87);}},setTimeout(()=>{const _0x1f56af=_0x4a3b4f;napCatCore[_0x1f56af(0x190)](()=>{napCatCore['addListener'](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x4a3b4f(0x16a)](_0x54b95b){const _0x1149d7=_0x4a3b4f;return _0x567521[_0x1149d7(0x14a)](_0x54b95b);}static async['copyFile'](_0x1d59e2,_0x4f7467){await napCatCore['util']['copyFile'](_0x1d59e2,_0x4f7467);}static async['getFileSize'](_0x3aac8f){const _0x3e5240=_0x4a3b4f;return await napCatCore[_0x3e5240(0x173)]['getFileSize'](_0x3aac8f);}static async['uploadFile'](_0x38555b,_0x4f6f9c=ElementType[_0x4a3b4f(0x183)],_0x2e47e4=0x0){const _0x283564=_0x4a3b4f,_0x1af03a={'NBqfo':function(_0x5935d8,_0x308311){return _0x5935d8(_0x308311);},'XYhYq':function(_0x47bbab,_0x3261e4){return _0x47bbab+_0x3261e4;},'JYZcK':function(_0x53f3bf,_0xccbfda){return _0x53f3bf===_0xccbfda;}},_0xf7e452=await _0x1af03a[_0x283564(0x17c)](calculateFileMD5,_0x38555b);let _0x56c257=(await NTQQFileApi[_0x283564(0x16a)](_0x38555b))?.[_0x283564(0x167)]||'';_0x56c257&&(_0x56c257=_0x1af03a['XYhYq']('.',_0x56c257));let _0x1791a6=''+_0x1ef4de[_0x283564(0x17f)](_0x38555b);_0x1af03a[_0x283564(0x194)](_0x1791a6[_0x283564(0x171)]('.'),-0x1)&&(_0x1791a6+=_0x56c257);const _0x5b11ae=napCatCore[_0x283564(0x182)][_0x283564(0x188)]()[_0x283564(0x157)]({'md5HexStr':_0xf7e452,'fileName':_0x1791a6,'elementType':_0x4f6f9c,'elementSubType':_0x2e47e4,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi['copyFile'](_0x38555b,_0x5b11ae);const _0x1221b7=await NTQQFileApi[_0x283564(0x15b)](_0x38555b);return{'md5':_0xf7e452,'fileName':_0x1791a6,'path':_0x5b11ae,'fileSize':_0x1221b7,'ext':_0x56c257};}static async[_0x4a3b4f(0x18a)](_0x47c606,_0xe7efce,_0x4bbe68,_0xe83f30,_0x3278df,_0x4ea02d,_0x43e128=0x3e8*0x3c*0x2,_0x361f66=![]){const _0x4ce4e0=_0x4a3b4f,_0x4d9f0a={'prosD':function(_0x591389,_0x58b181,_0x1a5d61,_0x19282e){return _0x591389(_0x58b181,_0x1a5d61,_0x19282e);},'EzXUj':'downloadMedia\x20complete','BjRym':function(_0x2e2f62,_0x1bcd8b,_0x4f9638){return _0x2e2f62(_0x1bcd8b,_0x4f9638);},'EaMuK':_0x4ce4e0(0x153),'uSUam':function(_0x47c2df,_0xed7446){return _0x47c2df(_0xed7446);},'AzCiu':function(_0x70efba){return _0x70efba();},'xAfzI':function(_0x58b8aa,_0x190a7c,_0x47d5e3){return _0x58b8aa(_0x190a7c,_0x47d5e3);},'Owhdb':function(_0x30cbe4,_0x15817b,_0x3172a3,_0x5d1094,_0x3e0bce,_0x32f13a,_0x17633e,_0x498cef,_0x5dc526,_0x4075bf){return _0x30cbe4(_0x15817b,_0x3172a3,_0x5d1094,_0x3e0bce,_0x32f13a,_0x17633e,_0x498cef,_0x5dc526,_0x4075bf);},'ICyGb':_0x4ce4e0(0x181)};_0x4d9f0a[_0x4ce4e0(0x175)](logDebug,'receive\x20downloadMedia\x20task',_0x47c606,_0xe7efce,_0x4bbe68,_0xe83f30,_0x3278df,_0x4ea02d,_0x43e128,_0x361f66);if(_0x4ea02d&&_0x12bc2a[_0x4ce4e0(0x149)](_0x4ea02d)){if(_0x361f66)try{await _0x488e10[_0x4ce4e0(0x139)](_0x4ea02d);}catch(_0x228153){}else return _0x4ea02d;}return logDebug(_0x4d9f0a[_0x4ce4e0(0x196)],_0x47c606,_0xe7efce,_0x4bbe68,_0xe83f30,_0x3278df,_0x4ea02d,_0x43e128,_0x361f66),new Promise((_0x5b1c94,_0x537470)=>{const _0x4cf363=_0x4ce4e0;let _0x114c57=![];const _0x2056fa=_0x44e8af=>{const _0x1bf1e3=_0x2e51;_0x4d9f0a[_0x1bf1e3(0x174)](logDebug,_0x4d9f0a['EzXUj'],_0x44e8af,_0x47c606);if(_0x44e8af[_0x1bf1e3(0x155)]===_0x47c606){_0x114c57=!![];let _0x1e230e=_0x44e8af['filePath'];if(_0x1e230e[_0x1bf1e3(0x15f)]('\x5c')){const _0xa16d33=sessionConfig['defaultFileDownloadPath'];_0x4d9f0a[_0x1bf1e3(0x14b)](logDebug,_0x4d9f0a[_0x1bf1e3(0x16e)],_0xa16d33),_0x1e230e=_0x1ef4de[_0x1bf1e3(0x15c)](_0xa16d33,_0x1e230e);}_0x4d9f0a[_0x1bf1e3(0x18e)](_0x5b1c94,_0x1e230e);}};downloadMediaTasks['set'](_0x4d9f0a['AzCiu'](randomUUID),_0x2056fa),_0x4d9f0a[_0x4cf363(0x179)](setTimeout,()=>{!_0x114c57&&_0x537470('下载超时');},_0x43e128),napCatCore[_0x4cf363(0x182)][_0x4cf363(0x188)]()['downloadRichMedia']({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x47c606,'chatType':_0xe7efce,'peerUid':_0x4bbe68,'elementId':_0xe83f30,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x3278df});});}static async[_0x4a3b4f(0x14f)](_0x171658){const _0x584b7f={'GBbit':function(_0x4905cc,_0x1397e7){return _0x4905cc(_0x1397e7);}};return new Promise((_0x913739,_0x33cab1)=>{const _0x20fa51={'Zvqkp':function(_0x2b6e8a,_0x18830e){const _0x5dbb6d=_0x2e51;return _0x584b7f[_0x5dbb6d(0x17a)](_0x2b6e8a,_0x18830e);}};_0x216dde(_0x171658,(_0x599f80,_0x3ceeb4)=>{_0x599f80?_0x20fa51['Zvqkp'](_0x33cab1,_0x599f80):_0x913739(_0x3ceeb4);});});}static async[_0x4a3b4f(0x152)](_0x424a87){const _0x107352=_0x4a3b4f,_0x50d3e4={'ajDlW':'error','MdyVo':function(_0x3839c5,_0x3a0a8a){return _0x3839c5(_0x3a0a8a);},'djMAj':function(_0x4d7dc0,_0x5221a0){return _0x4d7dc0*_0x5221a0;},'YLsvK':function(_0xd74347,_0x48701d){return _0xd74347(_0x48701d);},'nHDfp':function(_0x3a377f,_0xae8c3c){return _0x3a377f+_0xae8c3c;},'BIaFV':function(_0x520291,_0xd714da,_0x543ea2){return _0x520291(_0xd714da,_0x543ea2);},'wtxjd':'检查rkey是否有效','uofOy':'图片rkey有效','NqwXQ':function(_0x42b091,_0xb82ff7){return _0x42b091(_0xb82ff7);},'rJdpA':function(_0x461c8b,_0x2b6cbd){return _0x461c8b(_0x2b6cbd);},'loAHD':_0x107352(0x13e),'rJGyQ':function(_0x403544,_0x4ecaf0){return _0x403544>_0x4ecaf0;},'tLMkK':function(_0x173485,_0x3823ce){return _0x173485-_0x3823ce;},'IAjbG':function(_0x214635,_0xb93e78){return _0x214635+_0xb93e78;},'LXaoP':_0x107352(0x140),'HKdEy':function(_0x22e8b5,_0xa4bd35){return _0x22e8b5+_0xa4bd35;},'NKIYR':function(_0x1a57e3,_0x465d81,_0x37a647){return _0x1a57e3(_0x465d81,_0x37a647);}},_0x586e57=_0x424a87[_0x107352(0x15d)]!==ChatType[_0x107352(0x161)],_0x13beca=_0x424a87[_0x107352(0x14c)][_0x107352(0x13a)](_0x5a5060=>!!_0x5a5060[_0x107352(0x16d)]);if(!_0x13beca)return'';const _0x2fbfd7=_0x13beca[_0x107352(0x16d)]['originImageUrl'],_0x1d2c60=_0x13beca[_0x107352(0x16d)][_0x107352(0x163)],_0xd5719d=_0x13beca[_0x107352(0x16d)][_0x107352(0x163)],_0x3b010d=_0x13beca[_0x107352(0x16d)][_0x107352(0x195)],_0x1aa4ef=_0x1bb73d=>{const _0x5b501f=_0x107352;_0x586e57?(privateImageRKey=_0x1bb73d,lastGetPrivateRKeyTime=Date[_0x5b501f(0x14d)]()):(groupImageRKey=_0x1bb73d,lastGetGroupRKeyTime=Date[_0x5b501f(0x14d)]());};if(_0x2fbfd7){if(_0x2fbfd7['startsWith'](_0x50d3e4[_0x107352(0x154)])){if(_0x2fbfd7[_0x107352(0x18d)]('&rkey='))return _0x50d3e4[_0x107352(0x164)](IMAGE_HTTP_HOST_NT,_0x2fbfd7);if(!hookApi[_0x107352(0x17d)]())return _0x50d3e4['NqwXQ'](logDebug,_0x107352(0x18b)),'';const _0x49b143=async()=>{const _0x260b3c=_0x107352,_0x216ef8={'pSojK':function(_0x6f9c0b,_0x4d9960){return _0x6f9c0b(_0x4d9960);},'XvTqa':_0x50d3e4[_0x260b3c(0x158)]};_0x50d3e4[_0x260b3c(0x192)](logDebug,'获取图片rkey...'),NTQQFileApi['downloadMedia'](_0x424a87[_0x260b3c(0x155)],_0x424a87[_0x260b3c(0x15d)],_0x424a87[_0x260b3c(0x17b)],_0x13beca[_0x260b3c(0x151)],'',_0x13beca['picElement']['sourcePath'],_0x50d3e4[_0x260b3c(0x16b)](0x3e8,0x1e),![])[_0x260b3c(0x191)](_0x44ff88=>{})['catch'](logError),await _0x50d3e4['YLsvK'](sleep,0x3e8),logDebug(_0x260b3c(0x13f));const _0xfb9313=hookApi['getRKey']()||'',_0x52d036=_0x50d3e4['nHDfp'](IMAGE_HTTP_HOST_NT+_0x2fbfd7,_0xfb9313);if(_0xfb9313)try{_0x50d3e4['BIaFV'](logDebug,_0x50d3e4[_0x260b3c(0x137)],_0x52d036),await new Promise((_0x8f2e2d,_0x51b754)=>{const _0xff5bdc=_0x260b3c;_0xcf9096[_0xff5bdc(0x145)](_0x52d036,_0x5c518e=>{const _0x2587eb=_0xff5bdc;_0x5c518e[_0x2587eb(0x15e)]!==0xc8?_0x216ef8['pSojK'](_0x51b754,_0x2587eb(0x140)):_0x216ef8['pSojK'](_0x8f2e2d,_0x5c518e);})['on'](_0x216ef8[_0xff5bdc(0x176)],_0x240942=>{_0x51b754(_0x240942);});}),logDebug(_0x50d3e4['uofOy'],_0x52d036),_0x50d3e4['NqwXQ'](_0x1aa4ef,_0xfb9313);}catch(_0x3ce1f0){return logError(_0x260b3c(0x13b),_0x52d036,_0x3ce1f0),'';}return _0xfb9313;},_0x507b65=new Promise((_0x482ae8,_0x443c57)=>{const _0x4b2932=_0x107352,_0x276779={'MbqKQ':function(_0x5756ad){return _0x5756ad();},'dAXFs':function(_0x30067f,_0x58d5a6){return _0x50d3e4['rJdpA'](_0x30067f,_0x58d5a6);}};getRKeyTaskQueue[_0x4b2932(0x168)](async()=>{const _0x25fca3=_0x4b2932,_0x821cef=await _0x276779[_0x25fca3(0x172)](_0x49b143);_0x276779['dAXFs'](_0x482ae8,_0x821cef);});}),_0x2ec28e=_0x586e57?privateImageRKey:groupImageRKey,_0x3f4955=_0x586e57?lastGetPrivateRKeyTime:lastGetGroupRKeyTime;if(_0x50d3e4['rJGyQ'](_0x50d3e4['tLMkK'](Date['now'](),_0x3f4955),rkeyExpireTime)||!_0x2ec28e){const _0x23e3d7=await _0x507b65;if(_0x23e3d7)return _0x50d3e4[_0x107352(0x186)](IMAGE_HTTP_HOST_NT+_0x2fbfd7,''+_0x23e3d7);else logError(_0x50d3e4[_0x107352(0x187)],_0x2fbfd7);}if(_0x2ec28e)return IMAGE_HTTP_HOST_NT+_0x2fbfd7+(''+_0x2ec28e);return'';}else return _0x50d3e4[_0x107352(0x146)](IMAGE_HTTP_HOST,_0x2fbfd7);}else{if(_0xd5719d||_0x1d2c60)return IMAGE_HTTP_HOST+_0x107352(0x178)+(_0xd5719d||_0x1d2c60)[_0x107352(0x180)]()+'/0';}return _0x50d3e4[_0x107352(0x15a)](logDebug,_0x107352(0x160),_0x424a87),'';}}export class NTQQFileCacheApi{static async[_0x4a3b4f(0x177)](_0x26c09b=!![]){return'';}static[_0x4a3b4f(0x18f)](){return'';}static[_0x4a3b4f(0x159)](_0x4c3ee0=[_0x4a3b4f(0x193),'hotUpdate']){const _0x1b64a1=_0x4a3b4f;return napCatCore[_0x1b64a1(0x182)][_0x1b64a1(0x17e)]()[_0x1b64a1(0x170)](_0x4c3ee0);}static[_0x4a3b4f(0x150)](_0x31eda6={}){const _0x211bc3=_0x4a3b4f;return napCatCore[_0x211bc3(0x182)][_0x211bc3(0x17e)]()[_0x211bc3(0x147)](_0x31eda6);}static[_0x4a3b4f(0x144)](){const _0x1be467=_0x4a3b4f;return napCatCore[_0x1be467(0x182)]['getStorageCleanService']()[_0x1be467(0x144)]();}static['getHotUpdateCachePath'](){return'';}static[_0x4a3b4f(0x13d)](){return'';}static[_0x4a3b4f(0x143)](_0x59623b,_0x10b19b=0x3e8,_0x38c01=0x0){const _0x61019a=_0x4a3b4f;return napCatCore[_0x61019a(0x182)]['getStorageCleanService']()[_0x61019a(0x141)](_0x59623b,_0x10b19b,0x1,_0x38c01);}static[_0x4a3b4f(0x156)](_0xec8fc6,_0xaea49a=0x3e8,_0x206c73){const _0x807580=_0x206c73?_0x206c73:{'fileType':_0xec8fc6};}static async[_0x4a3b4f(0x13c)](_0x1d6038=[],_0xb24d9f=[]){const _0x596364=_0x4a3b4f;return napCatCore[_0x596364(0x182)][_0x596364(0x17e)]()[_0x596364(0x189)](_0x1d6038,_0xb24d9f);}} \ 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 87e6bde4..bf319757 100644 --- a/src/core.lib/src/apis/friend.js +++ b/src/core.lib/src/apis/friend.js @@ -1 +1 @@ -const _0x327915=_0x564b;(function(_0x2e46de,_0x32429){const _0x25e762=_0x564b,_0x54d6c9=_0x2e46de();while(!![]){try{const _0x4d804f=parseInt(_0x25e762(0x141))/0x1+parseInt(_0x25e762(0x148))/0x2*(-parseInt(_0x25e762(0x12f))/0x3)+parseInt(_0x25e762(0x132))/0x4*(parseInt(_0x25e762(0x12d))/0x5)+parseInt(_0x25e762(0x136))/0x6+-parseInt(_0x25e762(0x142))/0x7+parseInt(_0x25e762(0x149))/0x8+parseInt(_0x25e762(0x138))/0x9;if(_0x4d804f===_0x32429)break;else _0x54d6c9['push'](_0x54d6c9['shift']());}catch(_0x3a2885){_0x54d6c9['push'](_0x54d6c9['shift']());}}}(_0x5b8c,0xeef4e));function _0x5b8c(){const _0x3261b2=['JpBwQ','friendUid','349292rZMGNe','reqTime','uid','Bltxv','3198366VaHWrP','rEjUL','4904334BJWSZt','getBuddyService','push','NSGct','approvalFriendRequest','addListener','uin','delete','onBuddyListChange','1782105sxSTUD','8412243LcAaMR','getBuddyList','erKVn','开始获取好友列表','getFriends','获取好友列表超时','2197058AvBzFy','557280jXZTqm','ysELY','rbzhB','onLoginSuccess','then','buddyList','session','20UKwLKb','获取好友列表完成','3vYxReh'];_0x5b8c=function(){return _0x3261b2;};return _0x5b8c();}import{BuddyListener,napCatCore}from'@/core';function _0x564b(_0x347121,_0x4157c3){const _0x5b8ce7=_0x5b8c();return _0x564b=function(_0x564b28,_0x4847e6){_0x564b28=_0x564b28-0x128;let _0x35e1df=_0x5b8ce7[_0x564b28];return _0x35e1df;},_0x564b(_0x347121,_0x4157c3);}import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x327915(0x140)]=_0x37416c=>{const _0x50bfe2=_0x327915,_0x529cf1={'EArLC':function(_0x3676f4,_0x2762b7){return _0x3676f4(_0x2762b7);}};for(const [_0x22967e,_0x11e636]of buddyChangeTasks){_0x529cf1['EArLC'](_0x11e636,_0x37416c),buddyChangeTasks[_0x50bfe2(0x13f)](_0x22967e);}},setTimeout(()=>{const _0xa7114d=_0x327915;napCatCore[_0xa7114d(0x129)](()=>{const _0x988e4=_0xa7114d;napCatCore[_0x988e4(0x13d)](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x327915(0x146)](_0x87cae5=![]){const _0x3d612f=_0x327915,_0x383a4a={'ysELY':function(_0x377aef,_0x630508){return _0x377aef(_0x630508);},'Bltxv':function(_0x302a07,_0x739814,_0x47d689){return _0x302a07(_0x739814,_0x47d689);},'erKVn':_0x3d612f(0x145),'NSGct':function(_0x9fad3f,_0x1428b9){return _0x9fad3f(_0x1428b9);},'rEjUL':_0x3d612f(0x147),'xkKTE':function(_0xfa4d95){return _0xfa4d95();}};return new Promise((_0xb5ffe5,_0x53cb63)=>{const _0xd25d1f=_0x3d612f,_0x4db5ff={'JpBwQ':function(_0x46165b,_0x23dcb3){const _0x17f1ef=_0x564b;return _0x383a4a[_0x17f1ef(0x13b)](_0x46165b,_0x23dcb3);},'rbzhB':_0x383a4a[_0xd25d1f(0x137)]};let _0x4e386c=![];_0x383a4a[_0xd25d1f(0x135)](setTimeout,()=>{const _0x25b6a5=_0xd25d1f;!_0x4e386c&&(_0x4db5ff[_0x25b6a5(0x130)](logDebug,_0x4db5ff[_0x25b6a5(0x128)]),_0x4db5ff['JpBwQ'](_0x53cb63,_0x4db5ff['rbzhB']));},0x1388);const _0x59b5fb=[],_0x4020d5=_0x1158ce=>{const _0x5d7db9=_0xd25d1f;for(const _0x2405ca of _0x1158ce){for(const _0x527fe3 of _0x2405ca[_0x5d7db9(0x12b)]){_0x59b5fb[_0x5d7db9(0x13a)](_0x527fe3),uid2UinMap[_0x527fe3[_0x5d7db9(0x134)]]=_0x527fe3[_0x5d7db9(0x13e)];}}_0x4e386c=!![],logDebug(_0x5d7db9(0x12e),_0x59b5fb),_0x383a4a[_0x5d7db9(0x14a)](_0xb5ffe5,_0x59b5fb);};buddyChangeTasks['set'](_0x383a4a['xkKTE'](randomUUID),_0x4020d5),napCatCore[_0xd25d1f(0x12c)][_0xd25d1f(0x139)]()[_0xd25d1f(0x143)](_0x87cae5)[_0xd25d1f(0x12a)](_0x248b5d=>{const _0x59fb5e=_0xd25d1f;_0x383a4a[_0x59fb5e(0x135)](logDebug,_0x383a4a[_0x59fb5e(0x144)],_0x248b5d);});});}static async['handleFriendRequest'](_0x1cf1f1,_0x5252ac){const _0x33a2ff=_0x327915;napCatCore[_0x33a2ff(0x12c)][_0x33a2ff(0x139)]()?.[_0x33a2ff(0x13c)]({'friendUid':_0x1cf1f1[_0x33a2ff(0x131)],'reqTime':_0x1cf1f1[_0x33a2ff(0x133)],'accept':_0x5252ac});}} \ No newline at end of file +const _0xb850a9=_0x2340;(function(_0x26e74d,_0x5864b9){const _0x5e159f=_0x2340,_0x73466c=_0x26e74d();while(!![]){try{const _0x530aaa=parseInt(_0x5e159f(0x137))/0x1*(-parseInt(_0x5e159f(0x130))/0x2)+parseInt(_0x5e159f(0x127))/0x3*(-parseInt(_0x5e159f(0x11d))/0x4)+-parseInt(_0x5e159f(0x133))/0x5+-parseInt(_0x5e159f(0x131))/0x6+parseInt(_0x5e159f(0x11b))/0x7+parseInt(_0x5e159f(0x12b))/0x8+-parseInt(_0x5e159f(0x11e))/0x9*(-parseInt(_0x5e159f(0x123))/0xa);if(_0x530aaa===_0x5864b9)break;else _0x73466c['push'](_0x73466c['shift']());}catch(_0x3097a5){_0x73466c['push'](_0x73466c['shift']());}}}(_0x1122,0x2434f));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';function _0x1122(){const _0x448506=['then','669480NRjRil','JAhYT','getBuddyService','getFriends','onLoginSuccess','2402bEHkPE','796218BLdFOV','FBIQB','1278385iWZYQg','获取好友列表完成','yPAZz','set','85cAyaIL','获取好友列表超时','UGKpt','857332FIKuXN','push','93660bxlspg','62622imFSXk','getBuddyList','uin','EmIhh','开始获取好友列表','790Choilr','addListener','session','QHKBM','15BquPNZ','SeLry','onBuddyListChange'];_0x1122=function(){return _0x448506;};return _0x1122();}import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0xb850a9(0x129)]=_0x11ff39=>{for(const [_0x306164,_0x8d3c58]of buddyChangeTasks){_0x8d3c58(_0x11ff39),buddyChangeTasks['delete'](_0x306164);}},setTimeout(()=>{const _0xd0811a=_0xb850a9;napCatCore[_0xd0811a(0x12f)](()=>{const _0x1da4f0=_0xd0811a;napCatCore[_0x1da4f0(0x124)](buddyListener);});},0x64);function _0x2340(_0x3c40eb,_0x405939){const _0x112210=_0x1122();return _0x2340=function(_0x234056,_0x3c5a58){_0x234056=_0x234056-0x11b;let _0x55985a=_0x112210[_0x234056];return _0x55985a;},_0x2340(_0x3c40eb,_0x405939);}export class NTQQFriendApi{static async[_0xb850a9(0x12e)](_0x117023=![]){const _0x487a25=_0xb850a9,_0x15e6a4={'JAhYT':function(_0x3e1547,_0x5e4dd8){return _0x3e1547(_0x5e4dd8);},'SeLry':_0x487a25(0x138),'yPAZz':_0x487a25(0x122),'jLesf':function(_0x2f94ba){return _0x2f94ba();}};return new Promise((_0x178bbb,_0x44831b)=>{const _0x1ae529=_0x487a25,_0x3a4ccf={'QHKBM':function(_0x2ca02a,_0x3d19d2,_0x54af96){return _0x2ca02a(_0x3d19d2,_0x54af96);},'UGKpt':_0x1ae529(0x134),'FBIQB':function(_0x9ec24b,_0x2bf60d){const _0x143683=_0x1ae529;return _0x15e6a4[_0x143683(0x12c)](_0x9ec24b,_0x2bf60d);},'EmIhh':_0x15e6a4[_0x1ae529(0x135)]};let _0x1b46cd=![];setTimeout(()=>{const _0x3c313b=_0x1ae529;!_0x1b46cd&&(_0x15e6a4[_0x3c313b(0x12c)](logDebug,_0x15e6a4[_0x3c313b(0x128)]),_0x15e6a4['JAhYT'](_0x44831b,_0x3c313b(0x138)));},0x1388);const _0x346fb7=[],_0x26fdd0=_0x290122=>{const _0x2140f9=_0x1ae529;for(const _0xda6192 of _0x290122){for(const _0x24341f of _0xda6192['buddyList']){_0x346fb7[_0x2140f9(0x11c)](_0x24341f),uid2UinMap[_0x24341f['uid']]=_0x24341f[_0x2140f9(0x120)];}}_0x1b46cd=!![],_0x3a4ccf[_0x2140f9(0x126)](logDebug,_0x3a4ccf[_0x2140f9(0x139)],_0x346fb7),_0x3a4ccf[_0x2140f9(0x132)](_0x178bbb,_0x346fb7);};buddyChangeTasks[_0x1ae529(0x136)](_0x15e6a4['jLesf'](randomUUID),_0x26fdd0),napCatCore[_0x1ae529(0x125)]['getBuddyService']()[_0x1ae529(0x11f)](_0x117023)[_0x1ae529(0x12a)](_0xa42e2f=>{const _0x3e068a=_0x1ae529;_0x3a4ccf[_0x3e068a(0x126)](logDebug,_0x3a4ccf[_0x3e068a(0x121)],_0xa42e2f);});});}static async['handleFriendRequest'](_0x1822dd,_0x139e89){const _0x3790b0=_0xb850a9;napCatCore[_0x3790b0(0x125)][_0x3790b0(0x12d)]()?.['approvalFriendRequest']({'friendUid':_0x1822dd['friendUid'],'reqTime':_0x1822dd['reqTime'],'accept':_0x139e89});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/group.js b/src/core.lib/src/apis/group.js index f2d2a987..13a90a94 100644 --- a/src/core.lib/src/apis/group.js +++ b/src/core.lib/src/apis/group.js @@ -1 +1 @@ -const _0x4117c0=_0x32e9;function _0x32e9(_0x46c978,_0xb4f6d){const _0x22ae42=_0x22ae();return _0x32e9=function(_0x32e9c0,_0x245e7a){_0x32e9c0=_0x32e9c0-0x1e0;let _0x4246be=_0x22ae42[_0x32e9c0];return _0x4246be;},_0x32e9(_0x46c978,_0xb4f6d);}(function(_0x1c25d3,_0x3d3eee){const _0x1ffc4a=_0x32e9,_0x2f6cf3=_0x1c25d3();while(!![]){try{const _0x50f461=parseInt(_0x1ffc4a(0x205))/0x1+parseInt(_0x1ffc4a(0x210))/0x2+parseInt(_0x1ffc4a(0x1e0))/0x3+parseInt(_0x1ffc4a(0x1ed))/0x4*(-parseInt(_0x1ffc4a(0x206))/0x5)+-parseInt(_0x1ffc4a(0x1f7))/0x6+parseInt(_0x1ffc4a(0x201))/0x7+-parseInt(_0x1ffc4a(0x1e3))/0x8*(-parseInt(_0x1ffc4a(0x1f6))/0x9);if(_0x50f461===_0x3d3eee)break;else _0x2f6cf3['push'](_0x2f6cf3['shift']());}catch(_0x439ed){_0x2f6cf3['push'](_0x2f6cf3['shift']());}}}(_0x22ae,0x401d7));import{napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';function _0x22ae(){const _0x151f7f=['getGroupIgnoreNotifies','111708qjmtnm','banGroup','seq','RYGUp','938760OdGaMt','operateSysNotify','kickMember','8lmmAtI','type','RJSIJ','getGroupService','addListener','groupMemberList_MainWindow','JkDJN','banMember','tfldH','result','4oYaxgs','setMemberRole','onGroupListUpdate','uin','wdLbd','infos','quitGroup','getGroups','errMsg','2745702FIOMNx','1961250ceEpZw','setMemberShutUp','mMazC','pZrUV','getGroupList','BtVNT','modifyGroupName','publishGroupBulletin','leciQ','set','1980755QwXvEg','setGroupTitle','获取群(','session','60976qEXIhD','2141515VVSApw','forEach','createMemberListScene','then','wBaZI','Xvbcl','onLoginSuccess','setGroupShutUp','getGroupNotifies'];_0x22ae=function(){return _0x151f7f;};return _0x22ae();}import{randomUUID}from'crypto';const groupMemberTasks=new Map(),groupListener=new GroupListener();groupListener[_0x4117c0(0x1ef)]=(_0x11623a,_0x4ba834)=>{const _0x165050=_0x4117c0,_0x6b5fd5={'JkDJN':function(_0x3f3722,_0x54da1a,_0x17feeb){return _0x3f3722(_0x54da1a,_0x17feeb);}};for(const [_0x32a922,_0x5169c8]of groupMemberTasks){_0x6b5fd5[_0x165050(0x1e9)](_0x5169c8,_0x11623a,_0x4ba834),groupMemberTasks['delete'](_0x32a922);}},setTimeout(()=>{const _0x9f8a77=_0x4117c0;napCatCore[_0x9f8a77(0x20c)](()=>{const _0xf96da5=_0x9f8a77;napCatCore[_0xf96da5(0x1e7)](groupListener);});},0x64);export class NTQQGroupApi{static async[_0x4117c0(0x1f4)](_0x384c3f=![]){const _0x5a8d26={'RJSIJ':'获取群列表完成','leciQ':function(_0x10b158,_0x182605){return _0x10b158(_0x182605);},'wBaZI':function(_0x456820,_0x15f14b,_0x339ecb){return _0x456820(_0x15f14b,_0x339ecb);},'pZrUV':function(_0x5a7172){return _0x5a7172();}};let _0x45761f=![];return new Promise((_0x2e073e,_0x40c989)=>{const _0x1b3105=_0x32e9,_0xba3f4c={'tlOxK':function(_0x46f305,_0x2e813a){const _0x250dd0=_0x32e9;return _0x5a8d26[_0x250dd0(0x1ff)](_0x46f305,_0x2e813a);},'wdLbd':'获取群列表超时'};_0x5a8d26[_0x1b3105(0x20a)](setTimeout,()=>{const _0x167917=_0x1b3105;!_0x45761f&&(_0xba3f4c['tlOxK'](logDebug,_0xba3f4c[_0x167917(0x1f1)]),_0x40c989('获取群列表超时'));},0x1388);const _0x402bee=(_0x5e8d50,_0x5261af)=>{const _0x356efc=_0x1b3105;_0x45761f=!![],logDebug(_0x5a8d26[_0x356efc(0x1e5)],_0x5261af),_0x2e073e(_0x5261af);};groupMemberTasks[_0x1b3105(0x200)](_0x5a8d26[_0x1b3105(0x1fa)](randomUUID),_0x402bee),napCatCore[_0x1b3105(0x204)]['getGroupService']()[_0x1b3105(0x1fb)](_0x384c3f)[_0x1b3105(0x209)]();});}static async['getGroupMembers'](_0x4c3874,_0x26dce9=0xbb8){const _0x40924a=_0x4117c0,_0x2b3024={'BtVNT':_0x40924a(0x1e8),'RYGUp':function(_0x48366c,_0x3e1e81){return _0x48366c!==_0x3e1e81;},'Xvbcl':function(_0x5eff69,_0x21c846){return _0x5eff69+_0x21c846;},'tfldH':'获取群成员列表出错,'},_0x3e0d4d=napCatCore[_0x40924a(0x204)][_0x40924a(0x1e6)](),_0x2790e7=_0x3e0d4d[_0x40924a(0x208)](_0x4c3874,_0x2b3024[_0x40924a(0x1fc)]),_0x3b3c22=await _0x3e0d4d['getNextMemberList'](_0x2790e7,undefined,_0x26dce9);if(_0x2b3024[_0x40924a(0x213)](_0x3b3c22['errCode'],0x0))throw _0x2b3024[_0x40924a(0x20b)](_0x2b3024[_0x40924a(0x1eb)],_0x3b3c22[_0x40924a(0x1f5)]);return logDebug(_0x40924a(0x203)+_0x4c3874+')成员列表结果:','finish:\x20'+_0x3b3c22[_0x40924a(0x1ec)]['finish']),_0x3b3c22[_0x40924a(0x1ec)][_0x40924a(0x1f2)][_0x40924a(0x207)](_0x3d4138=>{const _0x583e3e=_0x40924a;uid2UinMap[_0x3d4138['uid']]=_0x3d4138[_0x583e3e(0x1f0)];}),_0x3b3c22[_0x40924a(0x1ec)]['infos'];}static async[_0x4117c0(0x20e)](){}static async[_0x4117c0(0x20f)](){}static async['handleGroupRequest'](_0x30cc02,_0x47e024,_0x579870){const _0x4f5653=_0x4117c0,_0xc19e3f={'mMazC':function(_0x51ad3f,_0xc8d462){return _0x51ad3f||_0xc8d462;}};return napCatCore[_0x4f5653(0x204)][_0x4f5653(0x1e6)]()[_0x4f5653(0x1e1)](![],{'operateType':_0x47e024,'targetMsg':{'seq':_0x30cc02[_0x4f5653(0x212)],'type':_0x30cc02[_0x4f5653(0x1e4)],'groupCode':_0x30cc02['group']['groupCode'],'postscript':_0xc19e3f[_0x4f5653(0x1f9)](_0x579870,'')}});}static async[_0x4117c0(0x1f3)](_0x343004){const _0x3cfe5c=_0x4117c0;return napCatCore[_0x3cfe5c(0x204)]['getGroupService']()[_0x3cfe5c(0x1f3)](_0x343004);}static async[_0x4117c0(0x1e2)](_0x3ba511,_0x13220b,_0x4da536=![],_0x540ef8=''){const _0x53b16f=_0x4117c0;return napCatCore[_0x53b16f(0x204)][_0x53b16f(0x1e6)]()[_0x53b16f(0x1e2)](_0x3ba511,_0x13220b,_0x4da536,_0x540ef8);}static async[_0x4117c0(0x1ea)](_0x2a86ef,_0xef1cf0){const _0x1b7e30=_0x4117c0;return napCatCore[_0x1b7e30(0x204)][_0x1b7e30(0x1e6)]()[_0x1b7e30(0x1f8)](_0x2a86ef,_0xef1cf0);}static async[_0x4117c0(0x211)](_0x2c7628,_0x2118b4){const _0x3e5797=_0x4117c0;return napCatCore[_0x3e5797(0x204)][_0x3e5797(0x1e6)]()[_0x3e5797(0x20d)](_0x2c7628,_0x2118b4);}static async['setMemberCard'](_0x40ceea,_0x375a98,_0x891d54){const _0x3493ed=_0x4117c0;return napCatCore[_0x3493ed(0x204)][_0x3493ed(0x1e6)]()['modifyMemberCardName'](_0x40ceea,_0x375a98,_0x891d54);}static async[_0x4117c0(0x1ee)](_0xc26315,_0x280845,_0x539612){const _0x3c5519=_0x4117c0;return napCatCore[_0x3c5519(0x204)][_0x3c5519(0x1e6)]()['modifyMemberRole'](_0xc26315,_0x280845,_0x539612);}static async['setGroupName'](_0x28a5e7,_0x1bc90b){const _0x538d62=_0x4117c0;return napCatCore[_0x538d62(0x204)][_0x538d62(0x1e6)]()[_0x538d62(0x1fd)](_0x28a5e7,_0x1bc90b,![]);}static async[_0x4117c0(0x202)](_0x110cb4,_0x12534b,_0x437310){}static[_0x4117c0(0x1fe)](_0xa17595,_0xa53e2f,_0x2f522e){}} \ No newline at end of file +const _0x204e05=_0x2a04;(function(_0x47ffe9,_0x4444f2){const _0x2f43fe=_0x2a04,_0x3daa1a=_0x47ffe9();while(!![]){try{const _0x559d9a=-parseInt(_0x2f43fe(0x213))/0x1+parseInt(_0x2f43fe(0x1f4))/0x2+-parseInt(_0x2f43fe(0x1f7))/0x3*(parseInt(_0x2f43fe(0x1e2))/0x4)+parseInt(_0x2f43fe(0x1f3))/0x5+-parseInt(_0x2f43fe(0x201))/0x6+parseInt(_0x2f43fe(0x1ec))/0x7*(parseInt(_0x2f43fe(0x1de))/0x8)+parseInt(_0x2f43fe(0x1e7))/0x9*(-parseInt(_0x2f43fe(0x203))/0xa);if(_0x559d9a===_0x4444f2)break;else _0x3daa1a['push'](_0x3daa1a['shift']());}catch(_0x2ac6c4){_0x3daa1a['push'](_0x3daa1a['shift']());}}}(_0x4410,0xd6988));import{napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';function _0x2a04(_0x12d176,_0x3133f4){const _0x4410a4=_0x4410();return _0x2a04=function(_0x2a044e,_0x3967c3){_0x2a044e=_0x2a044e-0x1da;let _0x10a4c5=_0x4410a4[_0x2a044e];return _0x10a4c5;},_0x2a04(_0x12d176,_0x3133f4);}const groupMemberTasks=new Map(),groupListener=new GroupListener();groupListener[_0x204e05(0x211)]=(_0x14c480,_0x434d6f)=>{const _0x3fb6ea=_0x204e05,_0x3d1e14={'JNHCX':function(_0x1c9ca6,_0x4019e3,_0x142cb6){return _0x1c9ca6(_0x4019e3,_0x142cb6);}};for(const [_0x2546a4,_0x15e7b7]of groupMemberTasks){_0x3d1e14[_0x3fb6ea(0x1e1)](_0x15e7b7,_0x14c480,_0x434d6f),groupMemberTasks['delete'](_0x2546a4);}},setTimeout(()=>{const _0x487827=_0x204e05;napCatCore[_0x487827(0x1f8)](()=>{const _0x4dfcbc=_0x487827;napCatCore[_0x4dfcbc(0x212)](groupListener);});},0x64);function _0x4410(){const _0x1945a1=['uin','uid','获取群列表超时','PdZKd','getGroupIgnoreNotifies','setMemberRole','970024sVVnBd','zpBYT','finish','JNHCX','1429772TmjBTg','session','iqbpN','set','groupCode','5878053YWwfKM','DPHce',')成员列表结果:','type','获取群(','14rqjlLc','mIPGV','SuTYE','PExFQ','seq','SePTx','handleGroupRequest','680530bddsPp','3431094cJJCNK','groupMemberList_MainWindow','getGroups','3ORNwLX','onLoginSuccess','getNextMemberList','createMemberListScene','result','getGroupService','setGroupName','operateSysNotify','modifyGroupName','setMemberCard','434928IKrBSQ','getGroupList','10pAgdTV','getGroupMembers','获取群成员列表出错,','then','errMsg','setGroupTitle','amDXP','finish:\x20','getGroupNotifies','WZJcu','modifyMemberCardName','errCode','group','infos','onGroupListUpdate','addListener','132127KDhgOd','banMember','setGroupShutUp','forEach'];_0x4410=function(){return _0x1945a1;};return _0x4410();}export class NTQQGroupApi{static async[_0x204e05(0x1f6)](_0x3d52cb=![]){const _0x493023=_0x204e05,_0x2bf47b={'mIPGV':function(_0x31263c,_0x5bad48,_0xc5bd99){return _0x31263c(_0x5bad48,_0xc5bd99);},'amDXP':'获取群列表完成','WZJcu':function(_0x1e0f3d,_0x2d65e3){return _0x1e0f3d(_0x2d65e3);},'PdZKd':_0x493023(0x1da)};let _0x182d87=![];return new Promise((_0x11a9f0,_0x1c65d2)=>{const _0x5cde1d=_0x493023,_0x18d779={'DPHce':function(_0x33d067,_0xbda229){return _0x33d067(_0xbda229);},'PExFQ':_0x2bf47b[_0x5cde1d(0x1db)],'SePTx':function(_0x3ce1d4,_0x27645f){const _0x48ffbf=_0x5cde1d;return _0x2bf47b[_0x48ffbf(0x20c)](_0x3ce1d4,_0x27645f);}};_0x2bf47b[_0x5cde1d(0x1ed)](setTimeout,()=>{const _0x425d5c=_0x5cde1d;!_0x182d87&&(_0x18d779[_0x425d5c(0x1e8)](logDebug,_0x18d779[_0x425d5c(0x1ef)]),_0x18d779[_0x425d5c(0x1f1)](_0x1c65d2,_0x18d779[_0x425d5c(0x1ef)]));},0x1388);const _0x28a030=(_0x2d8c61,_0x97ab62)=>{const _0x26e476=_0x5cde1d;_0x182d87=!![],_0x2bf47b['mIPGV'](logDebug,_0x2bf47b[_0x26e476(0x209)],_0x97ab62),_0x2bf47b[_0x26e476(0x20c)](_0x11a9f0,_0x97ab62);};groupMemberTasks[_0x5cde1d(0x1e5)](randomUUID(),_0x28a030),napCatCore[_0x5cde1d(0x1e3)][_0x5cde1d(0x1fc)]()[_0x5cde1d(0x202)](_0x3d52cb)[_0x5cde1d(0x206)]();});}static async[_0x204e05(0x204)](_0x42ef1c,_0x4ecd13=0xbb8){const _0x5c9dfa=_0x204e05,_0x244449={'JurkJ':function(_0x5db7c9,_0x58ff3f){return _0x5db7c9!==_0x58ff3f;},'SuTYE':function(_0x36fe98,_0x154348){return _0x36fe98+_0x154348;},'vgLMy':_0x5c9dfa(0x205),'iqbpN':function(_0x2ba21f,_0x56f30a,_0xd4cda7){return _0x2ba21f(_0x56f30a,_0xd4cda7);}},_0x103031=napCatCore[_0x5c9dfa(0x1e3)][_0x5c9dfa(0x1fc)](),_0x43ec3c=_0x103031[_0x5c9dfa(0x1fa)](_0x42ef1c,_0x5c9dfa(0x1f5)),_0xbd574e=await _0x103031[_0x5c9dfa(0x1f9)](_0x43ec3c,undefined,_0x4ecd13);if(_0x244449['JurkJ'](_0xbd574e[_0x5c9dfa(0x20e)],0x0))throw _0x244449[_0x5c9dfa(0x1ee)](_0x244449['vgLMy'],_0xbd574e[_0x5c9dfa(0x207)]);return _0x244449[_0x5c9dfa(0x1e4)](logDebug,_0x5c9dfa(0x1eb)+_0x42ef1c+_0x5c9dfa(0x1e9),_0x5c9dfa(0x20a)+_0xbd574e['result'][_0x5c9dfa(0x1e0)]),_0xbd574e[_0x5c9dfa(0x1fb)][_0x5c9dfa(0x210)][_0x5c9dfa(0x216)](_0x15b3ff=>{const _0x3ffc6a=_0x5c9dfa;uid2UinMap[_0x15b3ff[_0x3ffc6a(0x218)]]=_0x15b3ff[_0x3ffc6a(0x217)];}),_0xbd574e[_0x5c9dfa(0x1fb)][_0x5c9dfa(0x210)];}static async[_0x204e05(0x20b)](){}static async[_0x204e05(0x1dc)](){}static async[_0x204e05(0x1f2)](_0x48f34a,_0x465b58,_0x20c21b){const _0x5767ee=_0x204e05,_0x673b13={'zpBYT':function(_0x2a7c29,_0x3dfac3){return _0x2a7c29||_0x3dfac3;}};return napCatCore[_0x5767ee(0x1e3)]['getGroupService']()[_0x5767ee(0x1fe)](![],{'operateType':_0x465b58,'targetMsg':{'seq':_0x48f34a[_0x5767ee(0x1f0)],'type':_0x48f34a[_0x5767ee(0x1ea)],'groupCode':_0x48f34a[_0x5767ee(0x20f)][_0x5767ee(0x1e6)],'postscript':_0x673b13[_0x5767ee(0x1df)](_0x20c21b,'')}});}static async['quitGroup'](_0x257708){const _0x4e8a66=_0x204e05;return napCatCore[_0x4e8a66(0x1e3)][_0x4e8a66(0x1fc)]()['quitGroup'](_0x257708);}static async['kickMember'](_0x5aa719,_0x34150f,_0x544eb2=![],_0x55e659=''){const _0x3abf82=_0x204e05;return napCatCore[_0x3abf82(0x1e3)][_0x3abf82(0x1fc)]()['kickMember'](_0x5aa719,_0x34150f,_0x544eb2,_0x55e659);}static async[_0x204e05(0x214)](_0x3e713f,_0x24be47){const _0x131535=_0x204e05;return napCatCore[_0x131535(0x1e3)][_0x131535(0x1fc)]()['setMemberShutUp'](_0x3e713f,_0x24be47);}static async['banGroup'](_0xef7f60,_0x24c23a){const _0x2e1c38=_0x204e05;return napCatCore[_0x2e1c38(0x1e3)]['getGroupService']()[_0x2e1c38(0x215)](_0xef7f60,_0x24c23a);}static async[_0x204e05(0x200)](_0x3b9de3,_0x76f313,_0x425b79){const _0x2e0e0d=_0x204e05;return napCatCore['session'][_0x2e0e0d(0x1fc)]()[_0x2e0e0d(0x20d)](_0x3b9de3,_0x76f313,_0x425b79);}static async[_0x204e05(0x1dd)](_0x46569d,_0x182abb,_0xda2862){const _0x19351f=_0x204e05;return napCatCore[_0x19351f(0x1e3)][_0x19351f(0x1fc)]()['modifyMemberRole'](_0x46569d,_0x182abb,_0xda2862);}static async[_0x204e05(0x1fd)](_0x20be19,_0x124b2a){const _0x3a2726=_0x204e05;return napCatCore['session'][_0x3a2726(0x1fc)]()[_0x3a2726(0x1ff)](_0x20be19,_0x124b2a,![]);}static async[_0x204e05(0x208)](_0x55fde2,_0x51ee79,_0x2ab187){}static['publishGroupBulletin'](_0x15da1d,_0x50cce1,_0x276de9){}} \ 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 a147db7c..76c9b3a1 100644 --- a/src/core.lib/src/apis/index.js +++ b/src/core.lib/src/apis/index.js @@ -1 +1 @@ -function _0xbc1b(_0x3e9440,_0x4dd314){var _0x328cfa=_0x328c();return _0xbc1b=function(_0xbc1b91,_0x21cbab){_0xbc1b91=_0xbc1b91-0x139;var _0x23d317=_0x328cfa[_0xbc1b91];return _0x23d317;},_0xbc1b(_0x3e9440,_0x4dd314);}(function(_0x2a9ad9,_0x105444){var _0x4df036=_0xbc1b,_0x4404de=_0x2a9ad9();while(!![]){try{var _0xd6ff50=-parseInt(_0x4df036(0x13a))/0x1*(parseInt(_0x4df036(0x13e))/0x2)+-parseInt(_0x4df036(0x142))/0x3*(-parseInt(_0x4df036(0x143))/0x4)+-parseInt(_0x4df036(0x13b))/0x5*(parseInt(_0x4df036(0x140))/0x6)+-parseInt(_0x4df036(0x13d))/0x7+parseInt(_0x4df036(0x13c))/0x8+parseInt(_0x4df036(0x13f))/0x9+parseInt(_0x4df036(0x141))/0xa*(parseInt(_0x4df036(0x139))/0xb);if(_0xd6ff50===_0x105444)break;else _0x4404de['push'](_0x4404de['shift']());}catch(_0x5225ed){_0x4404de['push'](_0x4404de['shift']());}}}(_0x328c,0xcd7fc));export*from'./file';function _0x328c(){var _0x5319a9=['722LahlVI','55GwkVRA','13245072IDasaX','10379320ajSNYf','2086ucOfUp','1829565losmEC','315870NhUrBy','20LjcJxA','152457babiKn','120kEUETL','1502248smLhhN'];_0x328c=function(){return _0x5319a9;};return _0x328c();}export*from'./friend';export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi'; \ No newline at end of file +function _0x5302(_0x2571ed,_0x4b93cb){var _0x14f62d=_0x14f6();return _0x5302=function(_0x5302be,_0x4dd585){_0x5302be=_0x5302be-0x1d0;var _0x3f2650=_0x14f62d[_0x5302be];return _0x3f2650;},_0x5302(_0x2571ed,_0x4b93cb);}(function(_0x48d822,_0x5051d2){var _0x15a37f=_0x5302,_0x460fdb=_0x48d822();while(!![]){try{var _0x14bbfe=parseInt(_0x15a37f(0x1d1))/0x1*(parseInt(_0x15a37f(0x1d7))/0x2)+parseInt(_0x15a37f(0x1d5))/0x3+parseInt(_0x15a37f(0x1d2))/0x4*(parseInt(_0x15a37f(0x1d4))/0x5)+parseInt(_0x15a37f(0x1d6))/0x6+-parseInt(_0x15a37f(0x1d0))/0x7*(parseInt(_0x15a37f(0x1d3))/0x8)+-parseInt(_0x15a37f(0x1d9))/0x9+-parseInt(_0x15a37f(0x1d8))/0xa;if(_0x14bbfe===_0x5051d2)break;else _0x460fdb['push'](_0x460fdb['shift']());}catch(_0x367557){_0x460fdb['push'](_0x460fdb['shift']());}}}(_0x14f6,0x75da2));export*from'./file';export*from'./friend';export*from'./group';export*from'./msg';function _0x14f6(){var _0x56d024=['64616nyPBaS','105kfolsA','819402uMcPoY','997242WlkFeh','4tKKZnw','9399760VQWofv','2011860lyacwP','112mwEwLQ','262313YVFNnY','154572gmnQXs'];_0x14f6=function(){return _0x56d024;};return _0x14f6();}export*from'./user';export*from'./webapi'; \ No newline at end of file diff --git a/src/core.lib/src/apis/msg.js b/src/core.lib/src/apis/msg.js index 9e33c90e..d1db8226 100644 --- a/src/core.lib/src/apis/msg.js +++ b/src/core.lib/src/apis/msg.js @@ -1 +1 @@ -function _0x28d7(){const _0x3113a5=['28699380KSPsSr','3995058nefZEq','发送超时','forwardMsg','bJOKl','cWDmO','recallMsg','activateChatAndGetHistory','set','chatType','activateChat','getMsgService','jJpRM','aKpiC','1678885vhgUti','map','YfZeT','gmhtj','4bICKCu','XFqDf','peerUid','jjYKW','com.tencent.multimsg','ESmvd','setEmojiLike','转发消息超时','forEach','301058fEORZn','nick','getMsgHistory','7bGXYAh','senderUid','getMsgsByMsgId','getMsgsBySeqAndCount','uid','addListener','3470325wpNtqp','744123sALcig','msgId','multiForwardMsg','getMsgsIncludeSelf','dpoEn','5698032wYumtC','arkElement','sendMsg','onMsgInfoListUpdate','eMENi','LTUgv','catch','sendStatus','setMsgRead','zmsZl','elements','pObLc','session','then','guildId','fetchRecentContact','getMultiMsg','bytesData'];_0x28d7=function(){return _0x3113a5;};return _0x28d7();}const _0x4e6c8a=_0x13f2;(function(_0x413781,_0x596a07){const _0x59a2cf=_0x13f2,_0x124b40=_0x413781();while(!![]){try{const _0x419359=-parseInt(_0x59a2cf(0x156))/0x1+-parseInt(_0x59a2cf(0x14c))/0x2+-parseInt(_0x59a2cf(0x155))/0x3*(parseInt(_0x59a2cf(0x143))/0x4)+-parseInt(_0x59a2cf(0x13f))/0x5+-parseInt(_0x59a2cf(0x132))/0x6*(parseInt(_0x59a2cf(0x14f))/0x7)+parseInt(_0x59a2cf(0x15b))/0x8+parseInt(_0x59a2cf(0x131))/0x9;if(_0x419359===_0x596a07)break;else _0x124b40['push'](_0x124b40['shift']());}catch(_0x1d2245){_0x124b40['push'](_0x124b40['shift']());}}}(_0x28d7,0xcf09b));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener['onAddSendMsg']=_0x362fd0=>{const _0x4364d4=_0x13f2,_0x5a9ffa={'dpoEn':function(_0x5ca0f6,_0xc51b92){return _0x5ca0f6(_0xc51b92);},'XqGXl':function(_0x45f9bd,_0x50eb83){return _0x45f9bd instanceof _0x50eb83;}};for(const [_0x4b246f,_0x1b3ca6]of sentMsgTasks){_0x5a9ffa[_0x4364d4(0x15a)](_0x1b3ca6,_0x362fd0),sentMsgTasks['delete'](_0x4b246f);}if(sendMessagePool[_0x362fd0['peerUid']]){const _0x19dddc=sendMessagePool[_0x362fd0[_0x4364d4(0x145)]]?.(_0x362fd0);_0x5a9ffa['XqGXl'](_0x19dddc,Promise)&&_0x19dddc[_0x4364d4(0x168)]()[_0x4364d4(0x161)](logError);}},msgListener[_0x4e6c8a(0x15e)]=_0x2ccc39=>{const _0x266732=_0x4e6c8a,_0x428168={'zmsZl':function(_0x30c4a4,_0x5579c4){return _0x30c4a4(_0x5579c4);}};_0x2ccc39[_0x266732(0x14b)](_0x90f618=>{const _0x3439da=_0x266732,_0x4eef16={'pObLc':function(_0x3fb3d7,_0x10ce41){const _0x37cefd=_0x13f2;return _0x428168[_0x37cefd(0x164)](_0x3fb3d7,_0x10ce41);},'AqQKD':function(_0x15279f,_0x53c452){const _0x4f0df5=_0x13f2;return _0x428168[_0x4f0df5(0x164)](_0x15279f,_0x53c452);}};new Promise((_0x5aacb3,_0x43b9da)=>{const _0x6ab2a7=_0x13f2;for(const _0x4ceb2d in sendSuccessCBMap){const _0x4a31c1=sendSuccessCBMap[_0x4ceb2d],_0x1fb910=_0x4eef16[_0x6ab2a7(0x166)](_0x4a31c1,_0x90f618),_0x9637ee=_0x21dfb9=>{_0x21dfb9&&delete sendSuccessCBMap[_0x4ceb2d];};_0x1fb910 instanceof Promise?_0x1fb910['then'](_0x9637ee):_0x4eef16['AqQKD'](_0x9637ee,_0x1fb910);}})[_0x3439da(0x168)]()[_0x3439da(0x161)](log);});},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{const _0x38b188=_0x13f2;napCatCore[_0x38b188(0x154)](msgListener);});},0x64);function _0x13f2(_0x3e8f55,_0x5b583f){const _0x28d7fb=_0x28d7();return _0x13f2=function(_0x13f2c7,_0x1ab9b4){_0x13f2c7=_0x13f2c7-0x12f;let _0x5f4ca6=_0x28d7fb[_0x13f2c7];return _0x5f4ca6;},_0x13f2(_0x3e8f55,_0x5b583f);}export class NTQQMsgApi{static async[_0x4e6c8a(0x149)](_0x4c5822,_0x31f2ad,_0x42c536,_0x537665=!![]){const _0x5c3102=_0x4e6c8a,_0x3c4cea={'Kabmi':function(_0x2c5008,_0x55e9f3){return _0x2c5008>_0x55e9f3;}};return napCatCore[_0x5c3102(0x167)][_0x5c3102(0x13c)]()['setMsgEmojiLikes'](_0x4c5822,_0x31f2ad,_0x42c536,_0x3c4cea['Kabmi'](_0x42c536['length'],0x3)?'2':'1',_0x537665);}static async[_0x4e6c8a(0x12f)](_0x444f0a,_0x2d4b2e,_0x4ada80){const _0x3f8c91=_0x4e6c8a;return napCatCore[_0x3f8c91(0x167)][_0x3f8c91(0x13c)]()[_0x3f8c91(0x12f)](_0x444f0a,_0x2d4b2e,_0x4ada80);}static async[_0x4e6c8a(0x151)](_0x38a71b,_0x49c9eb){const _0xdc934b=_0x4e6c8a;return await napCatCore[_0xdc934b(0x167)][_0xdc934b(0x13c)]()[_0xdc934b(0x151)](_0x38a71b,_0x49c9eb);}static async[_0x4e6c8a(0x152)](_0x38c187,_0x5260fe,_0x30a3cf,_0x186ba5,_0x576f94){const _0x131331=_0x4e6c8a;return await napCatCore[_0x131331(0x167)][_0x131331(0x13c)]()['getMsgsBySeqAndCount'](_0x38c187,_0x5260fe,_0x30a3cf,_0x186ba5,_0x576f94);}static async[_0x4e6c8a(0x13b)](_0x3c0e87){}static async[_0x4e6c8a(0x138)](_0x2454a5){}static async[_0x4e6c8a(0x163)](_0x158728){const _0x5c817a=_0x4e6c8a;return napCatCore[_0x5c817a(0x167)][_0x5c817a(0x13c)]()['setMsgRead'](_0x158728[_0x5c817a(0x13a)],_0x158728[_0x5c817a(0x145)],_0x158728[_0x5c817a(0x169)]);}static async[_0x4e6c8a(0x14e)](_0x106ebd,_0x45cbe2,_0xa5cb80){const _0x3e7713=_0x4e6c8a;return napCatCore[_0x3e7713(0x167)]['getMsgService']()[_0x3e7713(0x159)](_0x106ebd,_0x45cbe2,_0xa5cb80,!![]);}static async[_0x4e6c8a(0x16a)](){}static async[_0x4e6c8a(0x137)](_0x1cc9c8,_0x545d32){const _0x324f55=_0x4e6c8a;await napCatCore[_0x324f55(0x167)]['getMsgService']()[_0x324f55(0x137)]({'chatType':_0x1cc9c8[_0x324f55(0x13a)],'peerUid':_0x1cc9c8['peerUid']},_0x545d32);}static async[_0x4e6c8a(0x15d)](_0x5eed1d,_0x80d23d,_0x30736d=!![],_0x4b4e7b=0x2710){const _0x1a0cba=_0x4e6c8a,_0x469a6f={'mnfmm':function(_0x4382d2,_0x370005){return _0x4382d2>_0x370005;},'LTUgv':_0x1a0cba(0x133),'XFqDf':function(_0x3fa57a,_0x4f0344){return _0x3fa57a(_0x4f0344);},'ESmvd':function(_0x380138){return _0x380138();},'aKpiC':function(_0x3edc0d,_0x40f4bb){return _0x3edc0d===_0x40f4bb;},'cWDmO':function(_0x2ea7b2,_0x384202,_0x5cc509){return _0x2ea7b2(_0x384202,_0x5cc509);}},_0x5d27ec=_0x5eed1d[_0x1a0cba(0x145)];let _0x406f67=0x0;const _0x10d295=async()=>{const _0x34b081=_0x1a0cba;if(_0x469a6f['mnfmm'](_0x406f67,_0x4b4e7b))throw _0x469a6f[_0x34b081(0x160)];const _0x190fa8=sendMessagePool[_0x5eed1d[_0x34b081(0x145)]];if(_0x190fa8)return await _0x469a6f[_0x34b081(0x144)](sleep,0x1f4),_0x406f67+=0x1f4,await _0x469a6f[_0x34b081(0x148)](_0x10d295);else return;};return await _0x469a6f[_0x1a0cba(0x148)](_0x10d295),new Promise((_0x56f4f4,_0x51fd63)=>{const _0x1a4705=_0x1a0cba;let _0x3238a0=![],_0x1ec79a=null;const _0xf5231b=_0x469a6f[_0x1a4705(0x148)](randomUUID);sendSuccessCBMap[_0xf5231b]=_0x4a3a8f=>{const _0xd3b048=_0x1a4705;if(_0x469a6f[_0xd3b048(0x13e)](_0x4a3a8f[_0xd3b048(0x157)],_0x1ec79a?.[_0xd3b048(0x157)])){if(_0x469a6f[_0xd3b048(0x13e)](_0x4a3a8f[_0xd3b048(0x162)],0x2))return delete sendSuccessCBMap[_0xf5231b],_0x3238a0=!![],_0x469a6f[_0xd3b048(0x144)](_0x56f4f4,_0x4a3a8f),!![];return![];}return![];},sendMessagePool[_0x5d27ec]=async _0x3c1943=>{delete sendMessagePool[_0x5d27ec],_0x1ec79a=_0x3c1943;},_0x469a6f[_0x1a4705(0x136)](setTimeout,()=>{const _0x3088d3=_0x1a4705;if(_0x3238a0)return;delete sendMessagePool[_0x5d27ec],delete sendSuccessCBMap[_0xf5231b],_0x51fd63(_0x469a6f[_0x3088d3(0x160)]);},_0x4b4e7b);const _0x27a355=napCatCore['session'][_0x1a4705(0x13c)]()[_0x1a4705(0x15d)]('0',_0x5eed1d,_0x80d23d,new Map());});}static async['forwardMsg'](_0x365239,_0x15911d,_0x2924d1){const _0x1efea1=_0x4e6c8a;return napCatCore[_0x1efea1(0x167)][_0x1efea1(0x13c)]()[_0x1efea1(0x134)](_0x2924d1,_0x365239,[_0x15911d],new Map());}static async[_0x4e6c8a(0x158)](_0x435d61,_0x2e34e7,_0x516d3b){const _0x21d82d=_0x4e6c8a,_0x7fd1d1={'NZwqV':function(_0x447126,_0x2f9581){return _0x447126!=_0x2f9581;},'eMENi':function(_0x984458,_0xf12322){return _0x984458==_0xf12322;},'jJpRM':function(_0x1981d9,_0x222b13){return _0x1981d9(_0x222b13);},'TPPNP':_0x21d82d(0x14a),'gmhtj':function(_0x545e76,_0xce3c1b,_0x5e6182){return _0x545e76(_0xce3c1b,_0x5e6182);}},_0x311039=_0x516d3b[_0x21d82d(0x140)](_0x3ae240=>{const _0x3a227b=_0x21d82d;return{'msgId':_0x3ae240,'senderShowName':selfInfo[_0x3a227b(0x14d)]};});return new Promise((_0x3005dd,_0x340ab2)=>{const _0x3cdb5a=_0x21d82d,_0xd18a74={'jjYKW':function(_0x376b19,_0x359cf4){return _0x7fd1d1['NZwqV'](_0x376b19,_0x359cf4);},'YfZeT':function(_0x966f40,_0x357bfa){const _0x53090d=_0x13f2;return _0x7fd1d1[_0x53090d(0x15f)](_0x966f40,_0x357bfa);},'bJOKl':function(_0x60baeb,_0x43842f){const _0x275272=_0x13f2;return _0x7fd1d1[_0x275272(0x13d)](_0x60baeb,_0x43842f);},'ygEII':function(_0x4db9d7,_0xf7b18f){const _0x270914=_0x13f2;return _0x7fd1d1[_0x270914(0x13d)](_0x4db9d7,_0xf7b18f);},'tsknD':_0x7fd1d1['TPPNP']};let _0x28fff5=![];const _0x3c805d=_0xc212b6=>{const _0x428e9a=_0x13f2,_0x5389c5=_0xc212b6[_0x428e9a(0x165)]['find'](_0x16478b=>_0x16478b[_0x428e9a(0x15c)]);if(!_0x5389c5)return;const _0x3bec35=JSON['parse'](_0x5389c5['arkElement'][_0x428e9a(0x130)]);if(_0xd18a74[_0x428e9a(0x146)](_0x3bec35['app'],_0x428e9a(0x147)))return;_0xd18a74[_0x428e9a(0x141)](_0xc212b6[_0x428e9a(0x145)],_0x2e34e7[_0x428e9a(0x145)])&&_0xd18a74[_0x428e9a(0x141)](_0xc212b6[_0x428e9a(0x150)],selfInfo[_0x428e9a(0x153)])&&(_0x28fff5=!![],_0xd18a74[_0x428e9a(0x135)](_0x3005dd,_0xc212b6));};sentMsgTasks[_0x3cdb5a(0x139)](randomUUID(),_0x3c805d),_0x7fd1d1[_0x3cdb5a(0x142)](setTimeout,()=>{!_0x28fff5&&_0xd18a74['ygEII'](_0x340ab2,_0xd18a74['tsknD']);},0x1388),napCatCore[_0x3cdb5a(0x167)][_0x3cdb5a(0x13c)]()['multiForwardMsgWithComment'](_0x311039,_0x435d61,_0x2e34e7,[],new Map());});}} \ No newline at end of file +const _0x484e3e=_0x5b28;(function(_0x1c82dc,_0x3d75cb){const _0x320a63=_0x5b28,_0x42f0ff=_0x1c82dc();while(!![]){try{const _0x50c10c=-parseInt(_0x320a63(0x199))/0x1+-parseInt(_0x320a63(0x1ae))/0x2*(parseInt(_0x320a63(0x188))/0x3)+-parseInt(_0x320a63(0x182))/0x4*(-parseInt(_0x320a63(0x18e))/0x5)+-parseInt(_0x320a63(0x1a0))/0x6+-parseInt(_0x320a63(0x19c))/0x7*(parseInt(_0x320a63(0x1b4))/0x8)+-parseInt(_0x320a63(0x1ba))/0x9+parseInt(_0x320a63(0x184))/0xa;if(_0x50c10c===_0x3d75cb)break;else _0x42f0ff['push'](_0x42f0ff['shift']());}catch(_0x3c1828){_0x42f0ff['push'](_0x42f0ff['shift']());}}}(_0x1720,0x8b859));function _0x5b28(_0x2e6740,_0x36c511){const _0x1720a9=_0x1720();return _0x5b28=function(_0x5b2816,_0x2ac5e1){_0x5b2816=_0x5b2816-0x182;let _0x5001d4=_0x1720a9[_0x5b2816];return _0x5001d4;},_0x5b28(_0x2e6740,_0x36c511);}import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';function _0x1720(){const _0x12fd4f=['43857MOFiLs','ThgCE','set','getMsgService','toString','ZCfyf','5ulPbpo','sendStatus','FDdKf','getMultiMsg','app','getMsgHistory','find','euhsg','arkElement','activateChatAndGetHistory','TycAT','336733yNGlEK','session','addListener','413tvHnrH','guildId','multiForwardMsg','ZTRlN','4135716sFczhG','iByvV','map','PvAvL','uid','COain','then','setEmojiLike','getMsgsByMsgId','cbVsY','onLoginSuccess','msgId','forwardMsg','OzMjd','116flFZdT','转发消息超时','senderUid','CHKFp','chatType','setMsgEmojiLikes','5296mheevH','EiOeR','recallMsg','length','HJzmB','onMsgInfoListUpdate','4559409VyykUZ','fbXHd','multiForwardMsgWithComment','fetchRecentContact','setMsgRead','sendMsg','getMsgsBySeqAndCount','3898276ZCKFBM','peerUid','20164920Cpjhzk','mzZET','bytesData','Cwoxk'];_0x1720=function(){return _0x12fd4f;};return _0x1720();}import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener['onAddSendMsg']=_0x151b3e=>{const _0x835477=_0x5b28,_0x562cef={'HJzmB':function(_0x37090c,_0x347432){return _0x37090c(_0x347432);},'PvAvL':function(_0x3758c9,_0x4d5e73){return _0x3758c9 instanceof _0x4d5e73;}};for(const [_0xa37b0f,_0x4d9e94]of sentMsgTasks){_0x562cef[_0x835477(0x1b8)](_0x4d9e94,_0x151b3e),sentMsgTasks['delete'](_0xa37b0f);}if(sendMessagePool[_0x151b3e[_0x835477(0x183)]]){const _0x2185b8=sendMessagePool[_0x151b3e['peerUid']]?.(_0x151b3e);_0x562cef[_0x835477(0x1a3)](_0x2185b8,Promise)&&_0x2185b8[_0x835477(0x1a6)]()['catch'](logError);}},msgListener[_0x484e3e(0x1b9)]=_0x7fb6bd=>{const _0x2e5865={'VHKAu':function(_0xc42bf9,_0x2ba880){return _0xc42bf9(_0x2ba880);},'COain':function(_0x348818,_0x1c24d1){return _0x348818 instanceof _0x1c24d1;},'euhsg':function(_0x44ef86,_0x34e9b7){return _0x44ef86(_0x34e9b7);}};_0x7fb6bd['forEach'](_0x5c4da3=>{const _0x246017=_0x5b28;new Promise((_0x2d22f1,_0x19d97b)=>{const _0x2dcc7c=_0x5b28;for(const _0x440d71 in sendSuccessCBMap){const _0x50b07d=sendSuccessCBMap[_0x440d71],_0x14a162=_0x2e5865['VHKAu'](_0x50b07d,_0x5c4da3),_0x558f75=_0x1e3e09=>{_0x1e3e09&&delete sendSuccessCBMap[_0x440d71];};_0x2e5865[_0x2dcc7c(0x1a5)](_0x14a162,Promise)?_0x14a162['then'](_0x558f75):_0x2e5865[_0x2dcc7c(0x195)](_0x558f75,_0x14a162);}})[_0x246017(0x1a6)]()['catch'](log);});},setTimeout(()=>{const _0x249cf8=_0x484e3e;napCatCore[_0x249cf8(0x1aa)](()=>{const _0x1c5580=_0x249cf8;napCatCore[_0x1c5580(0x19b)](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x484e3e(0x1a7)](_0x5283f4,_0x399649,_0x542980,_0x33762d=!![]){const _0x5cda7b=_0x484e3e,_0x594548={'srRqz':function(_0x4ff5ba,_0x504f40){return _0x4ff5ba>_0x504f40;}};return _0x542980=_0x542980[_0x5cda7b(0x18c)](),napCatCore[_0x5cda7b(0x19a)][_0x5cda7b(0x18b)]()[_0x5cda7b(0x1b3)](_0x5283f4,_0x399649,_0x542980,_0x594548['srRqz'](_0x542980[_0x5cda7b(0x1b7)],0x3)?'2':'1',_0x33762d);}static async[_0x484e3e(0x191)](_0x5b0c13,_0x279264,_0x197061){const _0x52ff30=_0x484e3e;return napCatCore['session'][_0x52ff30(0x18b)]()[_0x52ff30(0x191)](_0x5b0c13,_0x279264,_0x197061);}static async[_0x484e3e(0x1a8)](_0x83c47c,_0x3d251d){const _0xa7b248=_0x484e3e;return await napCatCore['session']['getMsgService']()[_0xa7b248(0x1a8)](_0x83c47c,_0x3d251d);}static async[_0x484e3e(0x1c0)](_0x24efc7,_0x383ea8,_0x341c2f,_0x203548,_0x4b9641){const _0x2dc3b1=_0x484e3e;return await napCatCore['session'][_0x2dc3b1(0x18b)]()['getMsgsBySeqAndCount'](_0x24efc7,_0x383ea8,_0x341c2f,_0x203548,_0x4b9641);}static async['activateChat'](_0x1ca8e5){}static async[_0x484e3e(0x197)](_0x51fff3){}static async['setMsgRead'](_0xb61164){const _0x47d806=_0x484e3e;return napCatCore['session']['getMsgService']()[_0x47d806(0x1be)](_0xb61164['chatType'],_0xb61164[_0x47d806(0x183)],_0xb61164[_0x47d806(0x19d)]);}static async[_0x484e3e(0x193)](_0x3fd9a4,_0x27ab91,_0x2ae709){const _0x117239=_0x484e3e;return napCatCore[_0x117239(0x19a)][_0x117239(0x18b)]()['getMsgsIncludeSelf'](_0x3fd9a4,_0x27ab91,_0x2ae709,!![]);}static async[_0x484e3e(0x1bd)](){}static async[_0x484e3e(0x1b6)](_0x19eb2f,_0x282dd6){const _0x357ed5=_0x484e3e;await napCatCore[_0x357ed5(0x19a)][_0x357ed5(0x18b)]()['recallMsg']({'chatType':_0x19eb2f[_0x357ed5(0x1b2)],'peerUid':_0x19eb2f['peerUid']},_0x282dd6);}static async[_0x484e3e(0x1bf)](_0x4290a7,_0x3da8e6,_0x36db75=!![],_0x37356b=0x2710){const _0x500068=_0x484e3e,_0x2eb0fa={'mRgHV':function(_0x3a561f,_0x530e07){return _0x3a561f>_0x530e07;},'gSndY':'发送超时','CHKFp':function(_0x2e4fc8){return _0x2e4fc8();},'FDdKf':function(_0x455ccb,_0x53b230){return _0x455ccb===_0x53b230;},'GgqHi':function(_0x4d06f0,_0x2c4617){return _0x4d06f0(_0x2c4617);},'fQMOY':function(_0x522296){return _0x522296();},'mzZET':function(_0x2ce1d1){return _0x2ce1d1();}},_0x5a1e87=_0x4290a7[_0x500068(0x183)];let _0x5a2d11=0x0;const _0x21e427=async()=>{const _0x1e4c2e=_0x500068;if(_0x2eb0fa['mRgHV'](_0x5a2d11,_0x37356b))throw _0x2eb0fa['gSndY'];const _0x548154=sendMessagePool[_0x4290a7[_0x1e4c2e(0x183)]];if(_0x548154)return await sleep(0x1f4),_0x5a2d11+=0x1f4,await _0x2eb0fa[_0x1e4c2e(0x1b1)](_0x21e427);else return;};return await _0x2eb0fa[_0x500068(0x185)](_0x21e427),new Promise((_0x4c550b,_0x290242)=>{const _0x5189e6=_0x500068,_0x137960={'Cwoxk':function(_0x4ea584,_0x2282d4){const _0x1f106b=_0x5b28;return _0x2eb0fa[_0x1f106b(0x190)](_0x4ea584,_0x2282d4);},'EiOeR':function(_0x5138fa,_0x8b7d01){return _0x2eb0fa['GgqHi'](_0x5138fa,_0x8b7d01);},'ObbtG':_0x2eb0fa['gSndY']};let _0x508270=![],_0xee5469=null;const _0x318b1b=_0x2eb0fa['fQMOY'](randomUUID);sendSuccessCBMap[_0x318b1b]=_0x49eb26=>{const _0xe274bc=_0x5b28;if(_0x49eb26[_0xe274bc(0x1ab)]===_0xee5469?.['msgId']){if(_0x137960[_0xe274bc(0x187)](_0x49eb26[_0xe274bc(0x18f)],0x2))return delete sendSuccessCBMap[_0x318b1b],_0x508270=!![],_0x137960[_0xe274bc(0x1b5)](_0x4c550b,_0x49eb26),!![];return![];}return![];},sendMessagePool[_0x5a1e87]=async _0x3622ef=>{delete sendMessagePool[_0x5a1e87],_0xee5469=_0x3622ef;},setTimeout(()=>{if(_0x508270)return;delete sendMessagePool[_0x5a1e87],delete sendSuccessCBMap[_0x318b1b],_0x137960['EiOeR'](_0x290242,_0x137960['ObbtG']);},_0x37356b);const _0x4362f8=napCatCore[_0x5189e6(0x19a)]['getMsgService']()[_0x5189e6(0x1bf)]('0',_0x4290a7,_0x3da8e6,new Map());});}static async[_0x484e3e(0x1ac)](_0x351edb,_0x3d788c,_0x4623f4){const _0x36cde5=_0x484e3e;return napCatCore[_0x36cde5(0x19a)]['getMsgService']()['forwardMsg'](_0x4623f4,_0x351edb,[_0x3d788c],new Map());}static async[_0x484e3e(0x19e)](_0x3858c3,_0x4aaad6,_0x57c049){const _0xaafda5=_0x484e3e,_0x21ed49={'fbXHd':function(_0x52c8b7,_0x5e76f9){return _0x52c8b7(_0x5e76f9);},'ZCfyf':_0xaafda5(0x1af),'NWtfN':'com.tencent.multimsg','OzMjd':function(_0x59270c,_0x9a831){return _0x59270c(_0x9a831);},'TycAT':function(_0x4782a7){return _0x4782a7();},'EMGOX':function(_0x517fd8,_0x247f7b,_0x28f4cd){return _0x517fd8(_0x247f7b,_0x28f4cd);}},_0xb70ad4=_0x57c049[_0xaafda5(0x1a2)](_0x196610=>{return{'msgId':_0x196610,'senderShowName':selfInfo['nick']};});return new Promise((_0x115610,_0x2e03cd)=>{const _0x50651d=_0xaafda5,_0x2428e3={'iByvV':function(_0x54b958,_0x1c279e){return _0x54b958!=_0x1c279e;},'cbVsY':_0x21ed49['NWtfN'],'ThgCE':function(_0x46ce2f,_0x368a6e){return _0x46ce2f==_0x368a6e;},'ZTRlN':function(_0x46bb36,_0x437cbc){const _0x3e8c8e=_0x5b28;return _0x21ed49[_0x3e8c8e(0x1ad)](_0x46bb36,_0x437cbc);}};let _0x11d78d=![];const _0x31867c=_0x239e41=>{const _0x2ecab0=_0x5b28,_0x1bb761=_0x239e41['elements'][_0x2ecab0(0x194)](_0x1b7ad0=>_0x1b7ad0['arkElement']);if(!_0x1bb761)return;const _0x36287b=JSON['parse'](_0x1bb761[_0x2ecab0(0x196)][_0x2ecab0(0x186)]);if(_0x2428e3[_0x2ecab0(0x1a1)](_0x36287b[_0x2ecab0(0x192)],_0x2428e3[_0x2ecab0(0x1a9)]))return;_0x239e41[_0x2ecab0(0x183)]==_0x4aaad6[_0x2ecab0(0x183)]&&_0x2428e3[_0x2ecab0(0x189)](_0x239e41[_0x2ecab0(0x1b0)],selfInfo[_0x2ecab0(0x1a4)])&&(_0x11d78d=!![],_0x2428e3[_0x2ecab0(0x19f)](_0x115610,_0x239e41));};sentMsgTasks[_0x50651d(0x18a)](_0x21ed49[_0x50651d(0x198)](randomUUID),_0x31867c),_0x21ed49['EMGOX'](setTimeout,()=>{const _0x85be21=_0x50651d;!_0x11d78d&&_0x21ed49[_0x85be21(0x1bb)](_0x2e03cd,_0x21ed49[_0x85be21(0x18d)]);},0x1388),napCatCore[_0x50651d(0x19a)][_0x50651d(0x18b)]()[_0x50651d(0x1bc)](_0xb70ad4,_0x3858c3,_0x4aaad6,[],new Map());});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/sign.js b/src/core.lib/src/apis/sign.js index 57b97fd6..f65980dd 100644 --- a/src/core.lib/src/apis/sign.js +++ b/src/core.lib/src/apis/sign.js @@ -1 +1 @@ -function _0x1371(){var _0x4793ef=['zKNvo','POST','ylWlE','stringify','eGSZb','音乐消息生成成功','3842573ClTNPl','789790VQiXFB','42HWpbgl','then','10594112XlxlcW','url','Ehaay','sign','KUOdv','450792VRcmRa','974330rJPbvV','HmDrc','catch','840192kopfJB','json','418401ubuxyj'];_0x1371=function(){return _0x4793ef;};return _0x1371();}var _0x23b3aa=_0x4d96;(function(_0x53b1e4,_0x349af7){var _0xb4b8ef=_0x4d96,_0x2e6a39=_0x53b1e4();while(!![]){try{var _0x96ce6=parseInt(_0xb4b8ef(0x18f))/0x1+parseInt(_0xb4b8ef(0x190))/0x2+-parseInt(_0xb4b8ef(0x195))/0x3+parseInt(_0xb4b8ef(0x193))/0x4+parseInt(_0xb4b8ef(0x187))/0x5*(-parseInt(_0xb4b8ef(0x188))/0x6)+-parseInt(_0xb4b8ef(0x186))/0x7+parseInt(_0xb4b8ef(0x18a))/0x8;if(_0x96ce6===_0x349af7)break;else _0x2e6a39['push'](_0x2e6a39['shift']());}catch(_0x75665f){_0x2e6a39['push'](_0x2e6a39['shift']());}}}(_0x1371,0xa590d));function _0x4d96(_0x3d1c2f,_0x5c7b66){var _0x137148=_0x1371();return _0x4d96=function(_0x4d9690,_0x1aac65){_0x4d9690=_0x4d9690-0x181;var _0xe5dfb0=_0x137148[_0x4d9690];return _0xe5dfb0;},_0x4d96(_0x3d1c2f,_0x5c7b66);}import{logDebug}from'@/common/utils/log';export class MusicSign{[_0x23b3aa(0x18b)];constructor(_0x53fa4b){this['url']=_0x53fa4b;}[_0x23b3aa(0x18d)](_0x43cb2a){var _0x185715=_0x23b3aa,_0x37a66b={'ylWlE':function(_0x52b843,_0x53d245){return _0x52b843(_0x53d245);},'ZMnTO':_0x185715(0x185),'eGSZb':function(_0x548de7,_0x2137eb){return _0x548de7(_0x2137eb);},'HmDrc':function(_0xdbdb5a,_0x36baf9,_0x2dac2d){return _0xdbdb5a(_0x36baf9,_0x2dac2d);},'KUOdv':'application/json'};return new Promise((_0xed5963,_0x4f4aff)=>{var _0x233bc5=_0x185715,_0x334c4c={'zKNvo':function(_0x2417cf,_0xc697f6,_0x27c27f){return _0x2417cf(_0xc697f6,_0x27c27f);},'VNabJ':_0x37a66b['ZMnTO'],'Ehaay':function(_0x37993f,_0x5255ca){var _0x4d6b29=_0x4d96;return _0x37a66b[_0x4d6b29(0x184)](_0x37993f,_0x5255ca);}};_0x37a66b[_0x233bc5(0x191)](fetch,this[_0x233bc5(0x18b)],{'method':_0x233bc5(0x181),'headers':{'Content-Type':_0x37a66b[_0x233bc5(0x18e)]},'body':JSON[_0x233bc5(0x183)](_0x43cb2a)})[_0x233bc5(0x189)](_0x678827=>{var _0xce56=_0x233bc5;return!_0x678827['ok']&&_0x37a66b[_0xce56(0x182)](_0x4f4aff,_0x678827['statusText']),_0x678827[_0xce56(0x194)]();})[_0x233bc5(0x189)](_0x2dead6=>{var _0x2c7c00=_0x233bc5;_0x334c4c[_0x2c7c00(0x196)](logDebug,_0x334c4c['VNabJ'],_0x2dead6),_0xed5963(_0x2dead6);})[_0x233bc5(0x192)](_0xa4aeed=>{var _0x23d2c4=_0x233bc5;_0x334c4c[_0x23d2c4(0x18c)](_0x4f4aff,_0xa4aeed);});});}} \ No newline at end of file +var _0x139532=_0x779b;(function(_0x333a71,_0x4162b6){var _0x441a50=_0x779b,_0x28e01b=_0x333a71();while(!![]){try{var _0x4c55c9=-parseInt(_0x441a50(0x194))/0x1*(parseInt(_0x441a50(0x1a0))/0x2)+-parseInt(_0x441a50(0x18e))/0x3+-parseInt(_0x441a50(0x199))/0x4+-parseInt(_0x441a50(0x1a2))/0x5+-parseInt(_0x441a50(0x193))/0x6+-parseInt(_0x441a50(0x19d))/0x7*(-parseInt(_0x441a50(0x190))/0x8)+parseInt(_0x441a50(0x198))/0x9*(parseInt(_0x441a50(0x19e))/0xa);if(_0x4c55c9===_0x4162b6)break;else _0x28e01b['push'](_0x28e01b['shift']());}catch(_0x505b3f){_0x28e01b['push'](_0x28e01b['shift']());}}}(_0x1f7b,0x48ec0));function _0x779b(_0x5e20aa,_0x48a3f9){var _0x1f7b05=_0x1f7b();return _0x779b=function(_0x779b60,_0x2b5fab){_0x779b60=_0x779b60-0x18e;var _0xd41570=_0x1f7b05[_0x779b60];return _0xd41570;},_0x779b(_0x5e20aa,_0x48a3f9);}import{logDebug}from'@/common/utils/log';export class MusicSign{[_0x139532(0x19a)];constructor(_0x254301){var _0x5ad418=_0x139532;this[_0x5ad418(0x19a)]=_0x254301;}[_0x139532(0x195)](_0x869034){var _0x5d1cef=_0x139532,_0x3fe379={'xdhzB':_0x5d1cef(0x1a1),'BwhVa':function(_0x3c0b34,_0x249fc2){return _0x3c0b34(_0x249fc2);},'XXhTn':_0x5d1cef(0x191)};return new Promise((_0x28e599,_0x511f69)=>{var _0x2a4a4c=_0x5d1cef,_0x49361f={'SOYQW':function(_0x119ad9,_0x11aaf2){return _0x3fe379['BwhVa'](_0x119ad9,_0x11aaf2);}};fetch(this[_0x2a4a4c(0x19a)],{'method':_0x2a4a4c(0x192),'headers':{'Content-Type':_0x3fe379[_0x2a4a4c(0x18f)]},'body':JSON['stringify'](_0x869034)})[_0x2a4a4c(0x19c)](_0x12acc7=>{var _0x3a1fc7=_0x2a4a4c;return!_0x12acc7['ok']&&_0x49361f[_0x3a1fc7(0x196)](_0x511f69,_0x12acc7[_0x3a1fc7(0x1a3)]),_0x12acc7[_0x3a1fc7(0x19f)]();})[_0x2a4a4c(0x19c)](_0x1e0346=>{logDebug(_0x3fe379['xdhzB'],_0x1e0346),_0x3fe379['BwhVa'](_0x28e599,_0x1e0346);})[_0x2a4a4c(0x197)](_0x49c153=>{var _0x12ffb9=_0x2a4a4c;_0x3fe379[_0x12ffb9(0x19b)](_0x511f69,_0x49c153);});});}}function _0x1f7b(){var _0x3f1fb6=['POST','604350JckANw','1GeVpIW','sign','SOYQW','catch','6636141Wnukjg','413760wMjIHI','url','BwhVa','then','2146949gCRody','10dbhmeY','json','61886XxPIBP','音乐消息生成成功','55315FPIouN','statusText','1497591EHhzYH','XXhTn','8fzOIMD','application/json'];_0x1f7b=function(){return _0x3f1fb6;};return _0x1f7b();} \ No newline at end of file diff --git a/src/core.lib/src/apis/user.d.ts b/src/core.lib/src/apis/user.d.ts index abf36b46..adb85131 100644 --- a/src/core.lib/src/apis/user.d.ts +++ b/src/core.lib/src/apis/user.d.ts @@ -14,7 +14,7 @@ export declare class NTQQUserApi { static getSelfInfo(): Promise; static getUserInfo(uid: string): Promise; static getUserDetailInfo(uid: string): Promise; - static getPSkey(domainList: string[]): Promise; + static getPSkey(domainList: string[], cached?: boolean): Promise; static getRobotUinRange(): Promise>; - static getSkey(): Promise; + static getSkey(cached?: boolean): Promise; } diff --git a/src/core.lib/src/apis/user.js b/src/core.lib/src/apis/user.js index 3b73aa96..9a33da3e 100644 --- a/src/core.lib/src/apis/user.js +++ b/src/core.lib/src/apis/user.js @@ -1 +1 @@ -const _0x307389=_0x4dc3;(function(_0x393c7f,_0x108825){const _0x5291c8=_0x4dc3,_0x25c461=_0x393c7f();while(!![]){try{const _0xa57e5c=-parseInt(_0x5291c8(0x19a))/0x1+parseInt(_0x5291c8(0x19b))/0x2*(-parseInt(_0x5291c8(0x189))/0x3)+parseInt(_0x5291c8(0x184))/0x4+-parseInt(_0x5291c8(0x168))/0x5*(-parseInt(_0x5291c8(0x187))/0x6)+parseInt(_0x5291c8(0x16c))/0x7+-parseInt(_0x5291c8(0x198))/0x8*(-parseInt(_0x5291c8(0x166))/0x9)+-parseInt(_0x5291c8(0x162))/0xa*(-parseInt(_0x5291c8(0x183))/0xb);if(_0xa57e5c===_0x108825)break;else _0x25c461['push'](_0x25c461['shift']());}catch(_0xd2ee15){_0x25c461['push'](_0x25c461['shift']());}}}(_0x53ab,0x55d06));import{Credentials,selfInfo}from'@/core/data';import{napCatCore}from'@/core';function _0x53ab(){const _0x2a8203=['session','getUserInfo','setHeader','getProfileService','setSelfOnlineStatus','fhNfA','getSkey','TcGEi','QRIfE','uid','CreatTime','skey','KuaZl','getRobotUinRange','addListener','like','bECLU','getProfileLikeService','then','toXpl','FuNOG','getRobotService','33xxFcUr','700200TBhGzB','DeVWJ','onProfileDetailInfoChanged','108ILZNoY','Nwjqg','3pYCcqs','getUserDetailInfo\x20timeout','GcKeM','fromEntries','&clientkey=','get','getMsgService','forEach','forceFetchClientKey','getUserDetailInfo','now','getUserDetailInfoWithBizInfo','set','robotUinRanges','eVYPe','8HeRnLp','ddxfH','407809OvsedH','586732hQKazz','response','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','onLoginSuccess','获取Pskey失败','delete','ikRsh','getSelfInfo','errMsg','10250kSPfIZ','keyIndex','result','getTicketService','2427417JcKIKZ','setQQAvatar','36355KnOQhy','Skey','domainPskeyMap','gHsKh','3317671LJTgNa'];_0x53ab=function(){return _0x2a8203;};return _0x53ab();}import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';function _0x4dc3(_0x4c2fb5,_0x46f474){const _0x53ab6d=_0x53ab();return _0x4dc3=function(_0x4dc32e,_0xaac5cc){_0x4dc32e=_0x4dc32e-0x161;let _0x4f1ddf=_0x53ab6d[_0x4dc32e];return _0x4f1ddf;},_0x4dc3(_0x4c2fb5,_0x46f474);}import{HttpGetCookies}from'../../../common/utils/request';import{logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x307389(0x186)]=_0x5576b7=>{const _0x381f6f=_0x307389;userInfoCache[_0x5576b7[_0x381f6f(0x176)]]=_0x5576b7,userDetailHandlers[_0x381f6f(0x190)](_0x1d6093=>_0x1d6093(_0x5576b7));},setTimeout(()=>{const _0x80aa56=_0x307389;napCatCore[_0x80aa56(0x19e)](()=>{const _0x1d3cd4=_0x80aa56;napCatCore[_0x1d3cd4(0x17b)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x307389(0x171)](_0x4ebbc7,_0x4fac87,_0x359197){const _0x5d9505=_0x307389;return napCatCore['session'][_0x5d9505(0x18f)]()['setStatus']({'status':_0x4ebbc7,'extStatus':_0x4fac87,'batteryStatus':_0x359197});}static async[_0x307389(0x17c)](_0x2b2680,_0x49c782=0x1){const _0x48b0d5=_0x307389;return napCatCore[_0x48b0d5(0x16d)][_0x48b0d5(0x17e)]()['setBuddyProfileLike']({'friendUid':_0x2b2680,'sourceId':0x47,'doLikeCount':_0x49c782,'doLikeTollCount':0x0});}static async[_0x307389(0x167)](_0x1636c5){const _0x80080=_0x307389,_0x3d9c0e=napCatCore['session']['getProfileService']()[_0x80080(0x16f)](_0x1636c5);return{'result':_0x3d9c0e?.[_0x80080(0x164)],'errMsg':_0x3d9c0e?.[_0x80080(0x161)]};}static async[_0x307389(0x1a2)](){}static async[_0x307389(0x16e)](_0x24ed5c){}static async[_0x307389(0x192)](_0x33f445){const _0x3a1d85=_0x307389,_0x1ed0fc={'fhNfA':function(_0x24276a,_0x4a5857){return _0x24276a===_0x4a5857;},'DeVWJ':function(_0x561b96,_0x4e7607,_0x302fb5){return _0x561b96(_0x4e7607,_0x302fb5);}},_0x1b21b0=napCatCore[_0x3a1d85(0x16d)][_0x3a1d85(0x170)]();return new Promise((_0x3f5175,_0x246ce0)=>{const _0x3d1f14=_0x3a1d85,_0x4c6327={'eVYPe':_0x3d1f14(0x18a),'Nwjqg':function(_0x40b3af,_0x4e0c91){const _0x430f2d=_0x3d1f14;return _0x1ed0fc[_0x430f2d(0x172)](_0x40b3af,_0x4e0c91);},'TcGEi':function(_0x558e31,_0x4c66f3){return _0x558e31(_0x4c66f3);}},_0x11c4bd=randomUUID();let _0x5cd5c6=![];_0x1ed0fc[_0x3d1f14(0x185)](setTimeout,()=>{const _0x1d38b9=_0x3d1f14;!_0x5cd5c6&&_0x246ce0(_0x4c6327[_0x1d38b9(0x197)]);},0x1388),userDetailHandlers[_0x3d1f14(0x195)](_0x11c4bd,_0x18acdc=>{const _0x1270d2=_0x3d1f14;_0x4c6327[_0x1270d2(0x188)](_0x18acdc[_0x1270d2(0x176)],_0x33f445)&&(_0x5cd5c6=!![],userDetailHandlers[_0x1270d2(0x1a0)](_0x11c4bd),_0x4c6327[_0x1270d2(0x174)](_0x3f5175,_0x18acdc));}),_0x1b21b0[_0x3d1f14(0x194)](_0x33f445,[0x0])[_0x3d1f14(0x17f)](_0xf9e76a=>{});});}static async['getPSkey'](_0x387780){const _0x31589b=_0x307389,_0x2b4aa1=await napCatCore[_0x31589b(0x16d)]['getTipOffService']()['getPskey'](_0x387780,!![]);if(_0x2b4aa1[_0x31589b(0x164)]===0x0){const _0x1966c4=_0x2b4aa1[_0x31589b(0x16a)];return Object[_0x31589b(0x18c)](_0x1966c4);}else logError(_0x31589b(0x19f),_0x2b4aa1[_0x31589b(0x161)]);return{};}static async[_0x307389(0x17a)](){const _0x4e7fec=_0x307389,_0x2228b3=await napCatCore[_0x4e7fec(0x16d)][_0x4e7fec(0x182)]()[_0x4e7fec(0x17a)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x2228b3?.[_0x4e7fec(0x19c)]?.[_0x4e7fec(0x196)];}static async[_0x307389(0x173)](){const _0xf04b4b=_0x307389,_0xce48ca={'ikRsh':function(_0x570217,_0x24481e){return _0x570217==_0x24481e;},'toXpl':function(_0x135809,_0x36c90f){return _0x135809>_0x36c90f;},'FuNOG':function(_0x19adc0,_0x1f18a4){return _0x19adc0!==_0x1f18a4;},'bwyMY':function(_0x61e52d,_0x219979){return _0x61e52d+_0x219979;},'KuaZl':function(_0x48a359,_0x42b019){return _0x48a359+_0x42b019;},'GcKeM':function(_0x2d3b1f,_0x23bab8){return _0x2d3b1f+_0x23bab8;},'bECLU':function(_0x212939,_0x37bcb5){return _0x212939+_0x37bcb5;},'QRIfE':'https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','gHsKh':_0xf04b4b(0x19d),'ddxfH':function(_0x5013e0,_0xa2589a){return _0x5013e0(_0xa2589a);}};try{if(_0xce48ca[_0xf04b4b(0x1a1)](Credentials[_0xf04b4b(0x177)],0x0)||_0xce48ca[_0xf04b4b(0x180)](Date[_0xf04b4b(0x193)]()-Credentials[_0xf04b4b(0x177)],0x3e8*0xe10)){const _0x567ab4=await napCatCore['session'][_0xf04b4b(0x165)]()[_0xf04b4b(0x191)]('');if(_0xce48ca[_0xf04b4b(0x181)](_0x567ab4['result'],0x0))return'';const _0x1aa8c6=_0x567ab4['clientKey'],_0x5cd42b=_0x567ab4[_0xf04b4b(0x163)],_0x19b5ab=_0xce48ca['bwyMY'](_0xce48ca[_0xf04b4b(0x179)](_0xce48ca[_0xf04b4b(0x18b)](_0xce48ca[_0xf04b4b(0x179)](_0xce48ca[_0xf04b4b(0x17d)](_0xce48ca[_0xf04b4b(0x175)],selfInfo['uin']),_0xf04b4b(0x18d)),_0x1aa8c6),_0xce48ca[_0xf04b4b(0x16b)]),_0x5cd42b),_0x5c59d8=await _0xce48ca[_0xf04b4b(0x199)](HttpGetCookies,_0x19b5ab),_0x272a80=_0x5c59d8[_0xf04b4b(0x18e)](_0xf04b4b(0x178));if(!_0x272a80)return'';return Credentials[_0xf04b4b(0x177)]=Date[_0xf04b4b(0x193)](),Credentials['Skey']=_0x272a80,_0x272a80;}return Credentials[_0xf04b4b(0x169)];}catch(_0x5a2434){}return undefined;}} \ No newline at end of file +const _0x3fe8e5=_0x1bfc;(function(_0x3d25b1,_0x4312d0){const _0x351a6e=_0x1bfc,_0x82cdff=_0x3d25b1();while(!![]){try{const _0x54998b=parseInt(_0x351a6e(0xa5))/0x1*(-parseInt(_0x351a6e(0xb1))/0x2)+-parseInt(_0x351a6e(0x9e))/0x3+parseInt(_0x351a6e(0xb7))/0x4+-parseInt(_0x351a6e(0xb3))/0x5*(-parseInt(_0x351a6e(0xa4))/0x6)+parseInt(_0x351a6e(0xcd))/0x7+parseInt(_0x351a6e(0x9d))/0x8+parseInt(_0x351a6e(0xb6))/0x9;if(_0x54998b===_0x4312d0)break;else _0x82cdff['push'](_0x82cdff['shift']());}catch(_0x25b0a8){_0x82cdff['push'](_0x82cdff['shift']());}}}(_0x32d0,0x6e405));import{Credentials,selfInfo}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';import{HttpGetCookies}from'../../../common/utils/request';import{logError}from'@/common/utils/log';function _0x32d0(){const _0x37eca4=['2842696DPTMac','KEUNR','setSelfOnlineStatus','then','getUserDetailInfo','get','Vfxwq','getRobotService','getSkey','CreatTime','getMsgService','PxFmz','errMsg','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','setBuddyProfileLike','QoAZc','lIBcw','qxkRq','bgRWF','uin','PskeyTime','onLoginSuccess','1907955xFXpIo','&clientkey=','getPskey','getUserInfo','Fyfyv','sCVAQ','forEach','session','push','now','addListener','jARUp','getProfileService','getPSkey','fromEntries','getRobotUinRange','ZLDEZ','izglc','like','keyIndex','onProfileDetailInfoChanged','entries','lRGoY','robotUinRanges','result','aOWLn','2321104xaeYjN','1320201lDmYSE','getUserDetailInfo\x20timeout','XHPxz','getProfileLikeService','forceFetchClientKey','LaQdH','33624ykyUry','78983wcuDjS','getTipOffService','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','DjhnA','uid','Skey','set','获取Pskey失败','setQQAvatar','setHeader','length','STuLc','22ervzYt','PskeyData','340VJbENd','response','getSelfInfo','954180BZgbam'];_0x32d0=function(){return _0x37eca4;};return _0x32d0();}const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();function _0x1bfc(_0x46b878,_0x30f152){const _0x32d0cf=_0x32d0();return _0x1bfc=function(_0x1bfc0c,_0x5642e1){_0x1bfc0c=_0x1bfc0c-0x89;let _0x5e192d=_0x32d0cf[_0x1bfc0c];return _0x5e192d;},_0x1bfc(_0x46b878,_0x30f152);}profileListener[_0x3fe8e5(0x97)]=_0x5ea68f=>{const _0x50666a=_0x3fe8e5;userInfoCache[_0x5ea68f['uid']]=_0x5ea68f,userDetailHandlers[_0x50666a(0x89)](_0x13e5f5=>_0x13e5f5(_0x5ea68f));},setTimeout(()=>{const _0x3787c6=_0x3fe8e5;napCatCore[_0x3787c6(0xcc)](()=>{const _0x7d6b6b=_0x3787c6;napCatCore[_0x7d6b6b(0x8d)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x3fe8e5(0xb9)](_0x5b2c11,_0xecb1e1,_0x2f5814){const _0x2e37cc=_0x3fe8e5;return napCatCore[_0x2e37cc(0x8a)][_0x2e37cc(0xc1)]()['setStatus']({'status':_0x5b2c11,'extStatus':_0xecb1e1,'batteryStatus':_0x2f5814});}static async[_0x3fe8e5(0x95)](_0x626071,_0x33f6e9=0x1){const _0x4e7e7c=_0x3fe8e5;return napCatCore[_0x4e7e7c(0x8a)][_0x4e7e7c(0xa1)]()[_0x4e7e7c(0xc5)]({'friendUid':_0x626071,'sourceId':0x47,'doLikeCount':_0x33f6e9,'doLikeTollCount':0x0});}static async[_0x3fe8e5(0xad)](_0x20e836){const _0x202cf7=_0x3fe8e5,_0x171993=napCatCore['session'][_0x202cf7(0x8f)]()[_0x202cf7(0xae)](_0x20e836);return{'result':_0x171993?.[_0x202cf7(0x9b)],'errMsg':_0x171993?.[_0x202cf7(0xc3)]};}static async[_0x3fe8e5(0xb5)](){}static async[_0x3fe8e5(0xd0)](_0x17cb8){}static async[_0x3fe8e5(0xbb)](_0x354d06){const _0x1e98c9=_0x3fe8e5,_0x3dec3a={'STuLc':function(_0x462f40,_0x9b38bc){return _0x462f40(_0x9b38bc);},'Vfxwq':_0x1e98c9(0x9f),'qxkRq':function(_0x10b866){return _0x10b866();},'DjhnA':function(_0x2801b2,_0x401c09,_0x546115){return _0x2801b2(_0x401c09,_0x546115);}},_0x3ef905=napCatCore[_0x1e98c9(0x8a)][_0x1e98c9(0x8f)]();return new Promise((_0xf93998,_0x18a950)=>{const _0x3d30f4=_0x1e98c9,_0xae3997={'ZLDEZ':function(_0x335d29,_0x5e0fca){const _0x455cae=_0x1bfc;return _0x3dec3a[_0x455cae(0xb0)](_0x335d29,_0x5e0fca);},'izglc':_0x3dec3a[_0x3d30f4(0xbd)],'jARUp':function(_0x3f9efc,_0x25efe6){return _0x3f9efc===_0x25efe6;}},_0x2338f4=_0x3dec3a[_0x3d30f4(0xc8)](randomUUID);let _0x1b4b4b=![];_0x3dec3a[_0x3d30f4(0xa8)](setTimeout,()=>{const _0x413634=_0x3d30f4;!_0x1b4b4b&&_0xae3997[_0x413634(0x93)](_0x18a950,_0xae3997[_0x413634(0x94)]);},0x1388),userDetailHandlers[_0x3d30f4(0xab)](_0x2338f4,_0xa193a0=>{const _0x2b2f4c=_0x3d30f4;_0xae3997[_0x2b2f4c(0x8e)](_0xa193a0[_0x2b2f4c(0xa9)],_0x354d06)&&(_0x1b4b4b=!![],userDetailHandlers['delete'](_0x2338f4),_0xae3997[_0x2b2f4c(0x93)](_0xf93998,_0xa193a0));}),_0x3ef905['getUserDetailInfoWithBizInfo'](_0x354d06,[0x0])[_0x3d30f4(0xba)](_0x36926a=>{});});}static async[_0x3fe8e5(0x90)](_0x4154ea,_0x495ae3=!![]){const _0x52d64e=_0x3fe8e5,_0x4e8c05={'PxFmz':function(_0x535287,_0x351301){return _0x535287||_0x351301;},'Fyfyv':function(_0x5b0e24,_0xc8ded1){return _0x5b0e24>_0xc8ded1;},'aOWLn':function(_0x3f6cf4,_0xf46f){return _0x3f6cf4-_0xf46f;},'bgRWF':function(_0x29cd3c,_0x2f6b6a){return _0x29cd3c*_0x2f6b6a;},'gZXla':function(_0x38d858,_0x56ea3f){return _0x38d858===_0x56ea3f;},'lIBcw':function(_0x2767bd,_0x54e7e6,_0x4971fb){return _0x2767bd(_0x54e7e6,_0x4971fb);},'XHPxz':_0x52d64e(0xac)};let _0x59c4fe=[],_0xd687d1={};for(let _0x567a68 in _0x4154ea){let _0x2619f2=Credentials['PskeyData'][_0x52d64e(0xbc)](_0x4154ea[_0x567a68]),_0x1438c6=Credentials[_0x52d64e(0xcb)][_0x52d64e(0xbc)](_0x4154ea[_0x567a68]);_0x4e8c05[_0x52d64e(0xc2)](!_0x2619f2,!_0x1438c6)||_0x4e8c05[_0x52d64e(0xd1)](_0x4e8c05[_0x52d64e(0x9c)](Date['now'](),_0x1438c6),_0x4e8c05[_0x52d64e(0xc9)](0x708,0x3e8))||!_0x495ae3?_0x59c4fe[_0x52d64e(0x8b)](_0x4154ea[_0x567a68]):_0xd687d1[_0x4154ea[_0x567a68]]=_0x2619f2;}let _0x2f637f={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x4e8c05['Fyfyv'](_0x59c4fe[_0x52d64e(0xaf)],0x0)&&(_0x2f637f=await napCatCore[_0x52d64e(0x8a)][_0x52d64e(0xa6)]()[_0x52d64e(0xcf)](_0x59c4fe,!![]));let _0x565e2c=_0x2f637f['domainPskeyMap'];for(let _0x71c11c of _0x565e2c[_0x52d64e(0x98)]()){Credentials[_0x52d64e(0xb2)]['set'](_0x71c11c[0x0],_0x71c11c[0x1]),Credentials[_0x52d64e(0xcb)][_0x52d64e(0xab)](_0x71c11c[0x0],Date[_0x52d64e(0x8c)]());}let _0x43b74f=Object['assign'](Object[_0x52d64e(0x91)](_0x565e2c),_0xd687d1);if(_0x4e8c05['gZXla'](_0x2f637f['result'],0x0))return _0x43b74f;else _0x4e8c05[_0x52d64e(0xc7)](logError,_0x4e8c05[_0x52d64e(0xa0)],_0x2f637f[_0x52d64e(0xc3)]);return{};}static async[_0x3fe8e5(0x92)](){const _0x262c9d=_0x3fe8e5,_0x2d53e9=await napCatCore[_0x262c9d(0x8a)][_0x262c9d(0xbe)]()[_0x262c9d(0x92)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x2d53e9?.[_0x262c9d(0xb4)]?.[_0x262c9d(0x9a)];}static async[_0x3fe8e5(0xbf)](_0x663475=!![]){const _0x5e3653=_0x3fe8e5,_0x2bba6c={'QoAZc':function(_0x3e35a7,_0xd35cc){return _0x3e35a7==_0xd35cc;},'KEUNR':function(_0x3b485e,_0x4415eb){return _0x3b485e+_0x4415eb;},'sCVAQ':function(_0x48768d,_0x3f6f5d){return _0x48768d+_0x3f6f5d;},'lRGoY':_0x5e3653(0xa7),'LaQdH':_0x5e3653(0xce),'GpXaR':_0x5e3653(0xc4),'ELesw':function(_0x550fcf,_0x3736a4){return _0x550fcf(_0x3736a4);}};try{if(_0x2bba6c[_0x5e3653(0xc6)](Credentials[_0x5e3653(0xc0)],0x0)||Date[_0x5e3653(0x8c)]()-Credentials[_0x5e3653(0xc0)]>0x3e8*0xe10||!_0x663475){const _0x4513ca=await napCatCore[_0x5e3653(0x8a)]['getTicketService']()[_0x5e3653(0xa2)]('');if(_0x4513ca[_0x5e3653(0x9b)]!==0x0)return'';const _0x58afd1=_0x4513ca['clientKey'],_0x40e7eb=_0x4513ca[_0x5e3653(0x96)],_0x59d8d0=_0x2bba6c['KEUNR'](_0x2bba6c[_0x5e3653(0xb8)](_0x2bba6c[_0x5e3653(0xd2)](_0x2bba6c[_0x5e3653(0xd2)](_0x2bba6c['sCVAQ'](_0x2bba6c[_0x5e3653(0x99)],selfInfo[_0x5e3653(0xca)]),_0x2bba6c[_0x5e3653(0xa3)]),_0x58afd1),_0x2bba6c['GpXaR']),_0x40e7eb),_0x4656b9=await _0x2bba6c['ELesw'](HttpGetCookies,_0x59d8d0),_0x34f3bd=_0x4656b9[_0x5e3653(0xbc)]('skey');if(!_0x34f3bd)return'';return Credentials[_0x5e3653(0xc0)]=Date[_0x5e3653(0x8c)](),Credentials['Skey']=_0x34f3bd,_0x34f3bd;}return Credentials[_0x5e3653(0xaa)];}catch(_0x3e7f27){}return undefined;}} \ No newline at end of file diff --git a/src/core.lib/src/apis/webapi.d.ts b/src/core.lib/src/apis/webapi.d.ts index 3f1ada0d..492b46fa 100644 --- a/src/core.lib/src/apis/webapi.d.ts +++ b/src/core.lib/src/apis/webapi.d.ts @@ -1,4 +1,4 @@ -interface WebApiGroupMember { +export interface WebApiGroupMember { uin: number; role: number; g: number; @@ -88,7 +88,7 @@ export interface GroupEssenceMsgRet { } export declare class WebApi { static getGroupEssenceMsg(GroupCode: string, page_start: string): Promise; - static getGroupMembers(GroupCode: string): Promise; + static getGroupMembers(GroupCode: string, cached?: boolean): Promise; static setGroupNotice(GroupCode: string, Content?: string): Promise; static getGrouptNotice(GroupCode: string): Promise; static httpDataText(url?: string, method?: string, data?: string, CookiesValue?: string): Promise; diff --git a/src/core.lib/src/apis/webapi.js b/src/core.lib/src/apis/webapi.js index 97e0749c..490e5731 100644 --- a/src/core.lib/src/apis/webapi.js +++ b/src/core.lib/src/apis/webapi.js @@ -1 +1 @@ -const _0x5e5d36=_0x23db;(function(_0x181864,_0x7b95e9){const _0x171812=_0x23db,_0x3c696f=_0x181864();while(!![]){try{const _0x4a5542=-parseInt(_0x171812(0xf9))/0x1*(parseInt(_0x171812(0xd9))/0x2)+-parseInt(_0x171812(0x10f))/0x3+-parseInt(_0x171812(0xd4))/0x4+parseInt(_0x171812(0xe2))/0x5*(-parseInt(_0x171812(0x102))/0x6)+parseInt(_0x171812(0x10b))/0x7*(parseInt(_0x171812(0x100))/0x8)+parseInt(_0x171812(0x103))/0x9*(-parseInt(_0x171812(0xd6))/0xa)+parseInt(_0x171812(0xf1))/0xb*(parseInt(_0x171812(0xc5))/0xc);if(_0x4a5542===_0x7b95e9)break;else _0x3c696f['push'](_0x3c696f['shift']());}catch(_0x41d21a){_0x3c696f['push'](_0x3c696f['shift']());}}}(_0x5615,0x7d7d7));import{selfInfo}from'@/core/data';import{NTQQUserApi}from'./user';function _0x23db(_0x2685b2,_0x1cb7d4){const _0x56151a=_0x5615();return _0x23db=function(_0x23dbfe,_0x1953d3){_0x23dbfe=_0x23dbfe-0xbf;let _0x896246=_0x56151a[_0x23dbfe];return _0x896246;},_0x23db(_0x2685b2,_0x1cb7d4);}function _0x5615(){const _0x477f7e=['https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','ALHay','&page_limit=20','json','vSLIa','mems','BIkiZ','nSsiu','OGZEe','iCfvK','setGroupNotice','errcode','wsiqj',';\x20p_uin=o','FbXKf','gesJO','&group_code=','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','Mguei','nVtwL','p_skey=','RCLHY','84XonCGB','retcode','QkASr','&qid=','xUSae','iudoR',';\x20uin=o','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','LljHD','gsMPT','getPSkey','POST','tWHEc','GET','getSkey','4018136WvXOcB','bzIaY','20kkGHUr','aCCMW','UVUhz','12476Hmfoms','ndeXF','&page_start=','WSwTw','getGroupEssenceMsg','application/x-www-form-urlencoded','RZMSp','qid=','UBcPR','1290rJjANN','count','&end=','oFIQE','length','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','Zjjof','genBkn','YpZUx','SEewI','ceil','oCkwX','EKgaC','deAQd','NvUmD','4068097XwjMcR',';\x20skey=','httpDataJson','uin','KPWDs','KKbas','push','SvLNg','20HEBvpH','NMbmp','hYPrw','JLxRn','tfPsF','LGYdW','mGrRc','1535944Fykzuo','OBrnb','8154AtDBOh','3162717CWrJRd','charCodeAt','wMgrb','&bkn=','uTnGH','VhUkj','RAiVJ','UorMc','7uPhxJc','fedWh','wvISL','DQhhK','252099gYTLHw','qun.qq.com','httpDataText','zPIjw'];_0x5615=function(){return _0x477f7e;};return _0x5615();}export class WebApi{static async[_0x5e5d36(0xdd)](_0x20da90,_0x1596e4){const _0x594bf6=_0x5e5d36,_0x1c5d4e={'deAQd':_0x594bf6(0x110),'UVUhz':function(_0x27a7e1,_0x2e47bf){return _0x27a7e1+_0x2e47bf;},'Jytmn':'p_skey=','MDVHY':';\x20p_uin=o','fedWh':function(_0xdbfbf2,_0xbdf319){return _0xdbfbf2||_0xbdf319;},'bmUvW':function(_0x5a8fdc,_0x5a7445){return _0x5a8fdc+_0x5a7445;},'iVthU':function(_0x5568d9,_0x3a2df5){return _0x5568d9+_0x3a2df5;},'Wkxyu':function(_0x568928,_0x1fe9d3){return _0x568928+_0x1fe9d3;},'ALHay':_0x594bf6(0xdb),'LavoX':_0x594bf6(0x115),'OBrnb':'GET'},_0x556586=(await NTQQUserApi[_0x594bf6(0xcf)]([_0x1c5d4e[_0x594bf6(0xef)]]))[_0x594bf6(0x110)],_0x4bf876=await NTQQUserApi[_0x594bf6(0xd3)](),_0x39b748=_0x1c5d4e[_0x594bf6(0xd8)](_0x1c5d4e[_0x594bf6(0xd8)](_0x1c5d4e[_0x594bf6(0xd8)](_0x1c5d4e['Jytmn']+_0x556586+';\x20skey=',_0x4bf876),_0x1c5d4e['MDVHY'])+selfInfo[_0x594bf6(0xf4)]+_0x594bf6(0xcb),selfInfo[_0x594bf6(0xf4)]);if(_0x1c5d4e[_0x594bf6(0x10c)](!_0x4bf876,!_0x556586))return undefined;const _0x124c9e=WebApi[_0x594bf6(0xe9)](_0x4bf876),_0x1a5545=_0x1c5d4e[_0x594bf6(0xd8)](_0x1c5d4e['UVUhz'](_0x1c5d4e['bmUvW'](_0x1c5d4e[_0x594bf6(0xd8)](_0x1c5d4e['iVthU'](_0x1c5d4e['Wkxyu'](_0x594bf6(0x113),_0x124c9e),_0x594bf6(0xbf)),_0x20da90),_0x1c5d4e[_0x594bf6(0x114)]),_0x1596e4),_0x1c5d4e['LavoX']),_0x557584=await WebApi[_0x594bf6(0xf3)](_0x1a5545,_0x1c5d4e[_0x594bf6(0x101)],'',_0x39b748);if(_0x557584[_0x594bf6(0xc6)]!==0x0)return undefined;return _0x557584;}static async['getGroupMembers'](_0x1a5396){const _0xcfbdea=_0x5e5d36,_0x39524e={'SvLNg':_0xcfbdea(0x110),'iCfvK':function(_0x34e784,_0x84a58b){return _0x34e784+_0x84a58b;},'hYPrw':function(_0x3cbe38,_0x360316){return _0x3cbe38+_0x360316;},'BIkiZ':function(_0x58eb8e,_0x26aa6e){return _0x58eb8e+_0x26aa6e;},'Zjjof':_0xcfbdea(0xc3),'QkASr':';\x20skey=','wMgrb':function(_0x1b4a66,_0x1764f0){return _0x1b4a66||_0x1764f0;},'EKgaC':function(_0x21247a,_0x46ad24){return _0x21247a+_0x46ad24;},'NMbmp':function(_0x1a2bbc,_0x86a5cd){return _0x1a2bbc+_0x86a5cd;},'FbXKf':_0xcfbdea(0xc0),'LljHD':_0xcfbdea(0xd0),'wsiqj':function(_0x34c345,_0x328f15){return _0x34c345!==_0x328f15;},'gesJO':function(_0x2c7ed9,_0x4a811c){return _0x2c7ed9/_0x4a811c;},'ndeXF':function(_0x1d6360,_0x1977fc){return _0x1d6360+_0x1977fc;},'bxnpS':'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','nSsiu':function(_0x1a934d,_0x571e82){return _0x1a934d*_0x571e82;},'gsMPT':function(_0x3878ed,_0x3ec9ee){return _0x3878ed-_0x3ec9ee;},'vSLIa':_0xcfbdea(0xe4),'VhUkj':function(_0x173f82,_0x403c58){return _0x173f82*_0x403c58;},'UBcPR':'&sort=1&gc=','ZREmd':function(_0x5d2798,_0x2e2f3d){return _0x5d2798<=_0x2e2f3d;}},_0x227ef4=(await NTQQUserApi[_0xcfbdea(0xcf)]([_0x39524e[_0xcfbdea(0xf8)]]))[_0x39524e['SvLNg']],_0x481eca=await NTQQUserApi[_0xcfbdea(0xd3)](),_0x7d35fc=_0x39524e[_0xcfbdea(0x11c)](_0x39524e[_0xcfbdea(0xfb)](_0x39524e[_0xcfbdea(0x119)](_0x39524e[_0xcfbdea(0xe8)]+_0x227ef4,_0x39524e[_0xcfbdea(0xc7)])+_0x481eca,_0xcfbdea(0x120)),selfInfo[_0xcfbdea(0xf4)]),_0x5b89a7=new Array();if(_0x39524e[_0xcfbdea(0x105)](!_0x481eca,!_0x227ef4))return _0x5b89a7;const _0x30d732=WebApi[_0xcfbdea(0xe9)](_0x481eca),_0x469b3e=[],_0x2f4240=await WebApi[_0xcfbdea(0xf3)](_0x39524e[_0xcfbdea(0xee)](_0x39524e[_0xcfbdea(0xfa)](_0x39524e[_0xcfbdea(0x121)]+_0x1a5396,_0xcfbdea(0x106)),_0x30d732),_0x39524e[_0xcfbdea(0xcd)],'',_0x7d35fc);if(!_0x2f4240?.[_0xcfbdea(0xe3)]||_0x39524e[_0xcfbdea(0x11f)](_0x2f4240?.[_0xcfbdea(0x11e)],0x0)||!_0x2f4240?.[_0xcfbdea(0x118)])return[];else for(const _0x3b1183 in _0x2f4240['mems']){_0x5b89a7[_0xcfbdea(0xf7)](_0x2f4240['mems'][_0x3b1183]);}const _0x14d811=Math[_0xcfbdea(0xec)](_0x39524e[_0xcfbdea(0x122)](_0x2f4240['count'],0x28));for(let _0x5338a6=0x2;_0x5338a6<=_0x14d811;_0x5338a6++){const _0x12947b=WebApi[_0xcfbdea(0xf3)](_0x39524e[_0xcfbdea(0xfa)](_0x39524e[_0xcfbdea(0xfb)](_0x39524e[_0xcfbdea(0xda)](_0x39524e['ndeXF'](_0x39524e[_0xcfbdea(0xfb)](_0x39524e[_0xcfbdea(0xee)](_0x39524e[_0xcfbdea(0x119)](_0x39524e['bxnpS'],_0x39524e[_0xcfbdea(0x11a)](_0x39524e[_0xcfbdea(0xce)](_0x5338a6,0x1),0x28)),_0x39524e[_0xcfbdea(0x117)]),_0x39524e[_0xcfbdea(0x108)](_0x5338a6,0x28)),_0x39524e[_0xcfbdea(0xe1)]),_0x1a5396),'&bkn='),_0x30d732),_0x39524e[_0xcfbdea(0xcd)],'',_0x7d35fc);_0x469b3e[_0xcfbdea(0xf7)](_0x12947b);}for(let _0xf60be7=0x1;_0x39524e['ZREmd'](_0xf60be7,_0x14d811);_0xf60be7++){const _0x4048f4=await _0x469b3e[_0xf60be7];if(!_0x4048f4?.[_0xcfbdea(0xe3)]||_0x39524e[_0xcfbdea(0x11f)](_0x4048f4?.['errcode'],0x0)||!_0x4048f4?.[_0xcfbdea(0x118)])continue;for(const _0x35c8f9 in _0x4048f4['mems']){_0x5b89a7[_0xcfbdea(0xf7)](_0x4048f4['mems'][_0x35c8f9]);}}return _0x5b89a7;}static async[_0x5e5d36(0x11d)](_0x4a2eaa,_0x46ece0=''){const _0x2f95c0=_0x5e5d36,_0x4bd901={'uTnGH':_0x2f95c0(0x110),'UorMc':function(_0x557edf,_0x47f7f8){return _0x557edf+_0x47f7f8;},'oFIQE':_0x2f95c0(0xc3),'RZMSp':_0x2f95c0(0x120),'zPIjw':function(_0x20cc43,_0x1df349){return _0x20cc43||_0x1df349;},'KKbas':function(_0x123dfd,_0x1bfb88){return _0x123dfd+_0x1bfb88;},'nVtwL':'&text=','tfPsF':_0x2f95c0(0xe7),'tWHEc':'https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','mkGdz':'GET'},_0x584f52=(await NTQQUserApi[_0x2f95c0(0xcf)]([_0x4bd901[_0x2f95c0(0x107)]]))[_0x4bd901[_0x2f95c0(0x107)]],_0x429763=await NTQQUserApi[_0x2f95c0(0xd3)](),_0x54796a=_0x4bd901['UorMc'](_0x4bd901[_0x2f95c0(0x10a)](_0x4bd901[_0x2f95c0(0xe5)]+_0x584f52,_0x2f95c0(0xf2)),_0x429763)+_0x4bd901[_0x2f95c0(0xdf)]+selfInfo[_0x2f95c0(0xf4)];let _0x1275a6=undefined;if(_0x4bd901[_0x2f95c0(0x112)](!_0x429763,!_0x584f52))return undefined;const _0x798689=WebApi[_0x2f95c0(0xe9)](_0x429763),_0xf4f19a=_0x4bd901[_0x2f95c0(0xf6)](_0x4bd901['UorMc'](_0x4bd901[_0x2f95c0(0xf6)](_0x4bd901[_0x2f95c0(0x10a)](_0x2f95c0(0xe0),_0x4a2eaa)+_0x2f95c0(0x106),_0x798689),_0x4bd901[_0x2f95c0(0xc2)]),_0x46ece0)+_0x4bd901[_0x2f95c0(0xfd)],_0x39acb4=_0x4bd901[_0x2f95c0(0xd1)]+_0x798689;try{return _0x1275a6=await WebApi[_0x2f95c0(0xf3)](_0x39acb4,_0x4bd901['mkGdz'],'',_0x54796a),_0x1275a6;}catch(_0x7f50d5){return undefined;}return undefined;}static async['getGrouptNotice'](_0x100d21){const _0x3e10c6=_0x5e5d36,_0x44d899={'RCLHY':'qun.qq.com','Vlxqr':function(_0x2cc827,_0x2741fd){return _0x2cc827+_0x2741fd;},'DQhhK':function(_0x127308,_0x223fe7){return _0x127308+_0x223fe7;},'Mguei':function(_0x47182f,_0x40be24){return _0x47182f+_0x40be24;},'LGYdW':_0x3e10c6(0xc3),'RAiVJ':';\x20skey=','dJAhC':_0x3e10c6(0x120),'XPCrH':function(_0x425066,_0x23c966){return _0x425066||_0x23c966;},'oCkwX':function(_0x1078af,_0x1e0cad){return _0x1078af+_0x1e0cad;},'wvISL':'https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','RVVXt':_0x3e10c6(0xc8),'KPWDs':_0x3e10c6(0xd2),'bzIaY':function(_0x1040fc,_0x5153b4){return _0x1040fc!==_0x5153b4;}},_0x21c2db=(await NTQQUserApi['getPSkey']([_0x44d899[_0x3e10c6(0xc4)]]))[_0x44d899['RCLHY']],_0x18210a=await NTQQUserApi[_0x3e10c6(0xd3)](),_0x3b878a=_0x44d899['Vlxqr'](_0x44d899[_0x3e10c6(0x10e)](_0x44d899['Mguei'](_0x44d899[_0x3e10c6(0xfe)]+_0x21c2db,_0x44d899[_0x3e10c6(0x109)]),_0x18210a)+_0x44d899['dJAhC'],selfInfo[_0x3e10c6(0xf4)]);let _0x418a32=undefined;if(_0x44d899['XPCrH'](!_0x18210a,!_0x21c2db))return undefined;const _0x3a7bd3=WebApi[_0x3e10c6(0xe9)](_0x18210a),_0x3b0fdc=_0x44d899[_0x3e10c6(0xc1)](_0x44d899[_0x3e10c6(0xed)](_0x44d899[_0x3e10c6(0x10e)](_0x44d899[_0x3e10c6(0x10d)],_0x3a7bd3),_0x44d899['RVVXt']),_0x100d21)+_0x3e10c6(0xcc);try{_0x418a32=await WebApi[_0x3e10c6(0xf3)](_0x3b0fdc,_0x44d899[_0x3e10c6(0xf5)],'',_0x3b878a);if(_0x44d899[_0x3e10c6(0xd5)](_0x418a32?.['ec'],0x0))return undefined;return _0x418a32;}catch(_0x599e91){return undefined;}return undefined;}static async[_0x5e5d36(0x111)](_0x224785='',_0x2ba1ae='GET',_0x4bbe26='',_0x3c120c=''){const _0x49add0=_0x5e5d36,_0x59dfb3={'aCCMW':function(_0x2e2bc5,_0x5e89bf){return _0x2e2bc5===_0x5e89bf;},'SEewI':_0x49add0(0xd2),'mGrRc':'HEAD','OGZEe':_0x49add0(0xde),'JLxRn':function(_0x38ebee,_0xee18e6,_0x181f3b){return _0x38ebee(_0xee18e6,_0x181f3b);},'iudoR':function(_0x43408b,_0x2d6ef2){return _0x43408b(_0x2d6ef2);}};let _0xc59514='';return new Promise(async(_0x5cc391,_0x3a4423)=>{const _0x498215=_0x49add0;try{let _0x373b1a=undefined;_0x59dfb3[_0x498215(0xd7)](_0x2ba1ae,_0x59dfb3[_0x498215(0xeb)])||_0x59dfb3[_0x498215(0xd7)](_0x2ba1ae,_0x59dfb3[_0x498215(0xff)])?_0x373b1a=await fetch(_0x224785,{'method':_0x2ba1ae,'headers':{'Content-Type':_0x59dfb3[_0x498215(0x11b)],'Cookie':_0x3c120c}}):_0x373b1a=await _0x59dfb3[_0x498215(0xfc)](fetch,_0x224785,{'method':_0x2ba1ae,'headers':{'Content-Type':_0x59dfb3['OGZEe'],'Cookie':_0x3c120c},'body':_0x4bbe26});if(_0x373b1a['ok'])_0xc59514=await _0x373b1a['text']();else{}}catch(_0x3223e0){}_0x59dfb3[_0x498215(0xca)](_0x5cc391,_0xc59514);});}static async[_0x5e5d36(0xf3)](_0x3edefe='',_0x39bde0='GET',_0x2cc364='',_0x4fd643=''){const _0x761d2d=_0x5e5d36,_0x13f729={'WSwTw':function(_0x2b1c61,_0x2c603b){return _0x2b1c61===_0x2c603b;},'AYNvH':_0x761d2d(0xd2),'xUSae':'HEAD','ZuOyL':_0x761d2d(0xde),'NvUmD':function(_0x54352e,_0x349c30,_0x5b3350){return _0x54352e(_0x349c30,_0x5b3350);},'WDXBH':function(_0x54b930,_0xc5023){return _0x54b930(_0xc5023);}};let _0x19b040=undefined;return new Promise(async(_0x17d737,_0x4e7d02)=>{const _0x1a3917=_0x761d2d;try{let _0x1fee5c=undefined;_0x13f729[_0x1a3917(0xdc)](_0x39bde0,_0x13f729['AYNvH'])||_0x13f729[_0x1a3917(0xdc)](_0x39bde0,_0x13f729[_0x1a3917(0xc9)])?_0x1fee5c=await fetch(_0x3edefe,{'method':_0x39bde0,'headers':{'Content-Type':_0x13f729['ZuOyL'],'Cookie':_0x4fd643}}):_0x1fee5c=await _0x13f729[_0x1a3917(0xf0)](fetch,_0x3edefe,{'method':_0x39bde0,'headers':{'Content-Type':'application/x-www-form-urlencoded','Cookie':_0x4fd643},'body':_0x2cc364});if(_0x1fee5c['ok'])_0x19b040=await _0x1fee5c[_0x1a3917(0x116)]();else{}}catch(_0x1de3a9){}_0x13f729['WDXBH'](_0x17d737,_0x19b040);});}static[_0x5e5d36(0xe9)](_0x58814c){const _0x2c84d7=_0x5e5d36,_0x517db5={'PZvqA':function(_0x1268fb,_0x475599){return _0x1268fb||_0x475599;},'QdGoY':function(_0x6ff96c,_0x1f9625){return _0x6ff96c<_0x1f9625;},'YpZUx':function(_0x31c1f0,_0x5d55ae){return _0x31c1f0+_0x5d55ae;},'BXnOZ':function(_0x4c20a8,_0x1171a0){return _0x4c20a8<<_0x1171a0;},'HkfFj':function(_0x29e748,_0x87eda7){return _0x29e748&_0x87eda7;}};_0x58814c=_0x517db5['PZvqA'](_0x58814c,'');let _0x43dd79=0x1505;for(let _0x22a2d5=0x0;_0x517db5['QdGoY'](_0x22a2d5,_0x58814c[_0x2c84d7(0xe6)]);_0x22a2d5++){const _0x1dbb7a=_0x58814c[_0x2c84d7(0x104)](_0x22a2d5);_0x43dd79=_0x517db5[_0x2c84d7(0xea)](_0x43dd79+_0x517db5['BXnOZ'](_0x43dd79,0x5),_0x1dbb7a);}return _0x517db5['HkfFj'](_0x43dd79,0x7fffffff)['toString']();}} \ No newline at end of file +const _0x20674e=_0x5f0a;(function(_0x545d0e,_0x5773e5){const _0x5aca4d=_0x5f0a,_0x293ae8=_0x545d0e();while(!![]){try{const _0x20b990=-parseInt(_0x5aca4d(0x159))/0x1*(-parseInt(_0x5aca4d(0x13b))/0x2)+-parseInt(_0x5aca4d(0x120))/0x3+-parseInt(_0x5aca4d(0x168))/0x4*(-parseInt(_0x5aca4d(0x132))/0x5)+parseInt(_0x5aca4d(0x154))/0x6*(parseInt(_0x5aca4d(0x116))/0x7)+parseInt(_0x5aca4d(0x143))/0x8+parseInt(_0x5aca4d(0x11f))/0x9+parseInt(_0x5aca4d(0x10d))/0xa*(-parseInt(_0x5aca4d(0x158))/0xb);if(_0x20b990===_0x5773e5)break;else _0x293ae8['push'](_0x293ae8['shift']());}catch(_0x2cb03b){_0x293ae8['push'](_0x293ae8['shift']());}}}(_0x25cd,0x2c2c0));import{WebGroupData,selfInfo}from'@/core/data';function _0x5f0a(_0x35191f,_0x400901){const _0x25cd96=_0x25cd();return _0x5f0a=function(_0x5f0aa7,_0x1572f1){_0x5f0aa7=_0x5f0aa7-0x104;let _0x2fe2a6=_0x25cd96[_0x5f0aa7];return _0x2fe2a6;},_0x5f0a(_0x35191f,_0x400901);}function _0x25cd(){const _0x370eb2=['push','RaqXq','861ydLcvs','retcode','GroupData','YFlfp',';\x20skey=','wdiIS','POST','Wivcb','Jwlwp','2642175uVWbkj','627564pNycRk','cTnqc','mVlGt','&bkn=','count','ytzRz','VzTkC','HmKpH','chCbg','LmvOD','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','VxdpL','XhDEx','now','OKvWJ','&page_start=','QrBpC','zPPRo','201335kuznal','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','&sort=1&gc=','httpDataJson','gIffw','&page_limit=20','gciQm','qun.qq.com','genBkn','409454mvuwXJ','p_skey=','GET','CtLeX','gsIUi','charCodeAt','cdTvI',';\x20p_uin=o','2336528JyhYZv','hUKsB','&group_code=','getGroupEssenceMsg','get','qid=','tPDzU','qczXU','length','cmSpc','rbFwT','toString','VXVnE','fknMg','qHYQx','errcode','&qid=','4974MtkLNY','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','RlJDU','SPxri','33LClYiZ','1kByHUd','webapi\x20获取群成员','DhAYZ','mems','getPSkey','GroupTime','&text=','SIFIN','mdekA','JXwby','jVjrI','zBKMn','JCJtP','ZCabj','vBMNZ','20yLicAr','ceil','uYKJh','XKfcQ','set','uin','application/x-www-form-urlencoded',';\x20uin=o','srdqG','sfwVN','LsXnP','vtBhz','FFCuk','text','LAyfh','WWVye','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','znVde','KtvDj','KxjiE','setGroupNotice','xRicz','getGroupMembers','json','ebXno','LzXeT','kBOnw','FzbmM','kSTPe','KuGoV','sVwYd','2345180sSzwZO','getSkey','fCeRx','GkeCU','vycSM','jZYxM','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc='];_0x25cd=function(){return _0x370eb2;};return _0x25cd();}import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';export class WebApi{static async[_0x20674e(0x146)](_0x461229,_0x3aa85a){const _0x24e5d3=_0x20674e,_0x469de2={'qIaWk':_0x24e5d3(0x139),'qmVae':function(_0x529bcc,_0xf05945){return _0x529bcc+_0xf05945;},'vBMNZ':function(_0x3d65ed,_0x9ff29e){return _0x3d65ed+_0x9ff29e;},'RlJDU':function(_0x52cc62,_0xc0563b){return _0x52cc62+_0xc0563b;},'pYPBu':_0x24e5d3(0x13c),'zBKMn':';\x20p_uin=o','Bjwws':_0x24e5d3(0x16f),'CtLeX':function(_0x337a14,_0x4ad185){return _0x337a14||_0x4ad185;},'rOGxU':function(_0x3c971a,_0x4a0048){return _0x3c971a+_0x4a0048;},'Aqown':function(_0x1f205d,_0x16070f){return _0x1f205d+_0x16070f;},'gIffw':function(_0x4bbc59,_0x589f56){return _0x4bbc59+_0x589f56;},'gciQm':function(_0x5c7413,_0x5961a3){return _0x5c7413+_0x5961a3;},'SPxri':'https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','sfwVN':_0x24e5d3(0x12f),'hUKsB':_0x24e5d3(0x13d),'vgQgT':function(_0x3359bd,_0x157ba9){return _0x3359bd!==_0x157ba9;}},_0x8a0c44=(await NTQQUserApi['getPSkey']([_0x469de2['qIaWk']]))[_0x469de2['qIaWk']],_0xfd6281=await NTQQUserApi[_0x24e5d3(0x10e)](),_0x59a254=_0x469de2['qmVae'](_0x469de2[_0x24e5d3(0x167)](_0x469de2['RlJDU'](_0x469de2[_0x24e5d3(0x156)](_0x469de2[_0x24e5d3(0x167)](_0x469de2['pYPBu'],_0x8a0c44),_0x24e5d3(0x11a)),_0xfd6281)+_0x469de2[_0x24e5d3(0x164)],selfInfo[_0x24e5d3(0x16d)])+_0x469de2['Bjwws'],selfInfo[_0x24e5d3(0x16d)]);if(_0x469de2[_0x24e5d3(0x13e)](!_0xfd6281,!_0x8a0c44))return undefined;const _0x46453c=WebApi['genBkn'](_0xfd6281),_0x15185a=_0x469de2['rOGxU'](_0x469de2[_0x24e5d3(0x167)](_0x469de2['Aqown'](_0x469de2[_0x24e5d3(0x136)](_0x469de2[_0x24e5d3(0x167)](_0x469de2[_0x24e5d3(0x138)](_0x469de2[_0x24e5d3(0x157)],_0x46453c),_0x24e5d3(0x145)),_0x461229),_0x469de2[_0x24e5d3(0x171)]),_0x3aa85a),_0x24e5d3(0x137)),_0x55fc48=await WebApi[_0x24e5d3(0x135)](_0x15185a,_0x469de2[_0x24e5d3(0x144)],'',_0x59a254);if(_0x469de2['vgQgT'](_0x55fc48[_0x24e5d3(0x117)],0x0))return undefined;return _0x55fc48;}static async[_0x20674e(0x104)](_0x256cb2,_0x32376a=!![]){const _0xbb4721=_0x20674e,_0x16f7dc={'fknMg':function(_0x68bf57,_0x2b0063,_0x314deb){return _0x68bf57(_0x2b0063,_0x314deb);},'cmSpc':_0xbb4721(0x15a),'LsXnP':function(_0x18395c,_0x1c4bef){return _0x18395c-_0x1c4bef;},'HWnKh':function(_0x1ff499,_0x56341c){return _0x1ff499*_0x56341c;},'ytzRz':_0xbb4721(0x139),'XhDEx':function(_0x333c9d,_0x3ee010){return _0x333c9d+_0x3ee010;},'YFlfp':function(_0x129eb5,_0x454716){return _0x129eb5+_0x454716;},'Jwlwp':function(_0x4a2684,_0x281f31){return _0x4a2684+_0x281f31;},'KuGoV':function(_0x1bbdfa,_0x5d4d80){return _0x1bbdfa+_0x5d4d80;},'DhAYZ':_0xbb4721(0x13c),'LzXeT':_0xbb4721(0x11a),'gsIUi':_0xbb4721(0x142),'ZCabj':function(_0x313a2a,_0x2b13e4){return _0x313a2a||_0x2b13e4;},'WWVye':function(_0x12afce,_0x496c24){return _0x12afce+_0x496c24;},'qHYQx':_0xbb4721(0x113),'GkeCU':_0xbb4721(0x123),'HmKpH':_0xbb4721(0x11c),'KtvDj':function(_0x17964f,_0x5018e6){return _0x17964f/_0x5018e6;},'eMEiz':function(_0x37ef06,_0xeab6e3){return _0x37ef06+_0xeab6e3;},'tPDzU':function(_0x2e02f3,_0x4fd8e6){return _0x2e02f3+_0x4fd8e6;},'FFCuk':function(_0x40d0ef,_0x56bf0c){return _0x40d0ef+_0x56bf0c;},'QrBpC':_0xbb4721(0x178),'mdekA':function(_0x6fefc2,_0x8d7c1e){return _0x6fefc2*_0x8d7c1e;},'yLCIk':_0xbb4721(0x134),'MBdcJ':function(_0x53a009,_0x4b3706){return _0x53a009<=_0x4b3706;},'PQaSf':function(_0x52e5cb,_0x4ba589){return _0x52e5cb!==_0x4ba589;}};_0x16f7dc[_0xbb4721(0x150)](logDebug,_0x16f7dc[_0xbb4721(0x14c)],_0x256cb2);let _0x2aa1cd=WebGroupData[_0xbb4721(0x118)][_0xbb4721(0x147)](_0x256cb2),_0x1d597d=WebGroupData[_0xbb4721(0x15e)]['get'](_0x256cb2),_0x377a28=new Array();if(!_0x1d597d||_0x16f7dc[_0xbb4721(0x172)](Date[_0xbb4721(0x12d)](),_0x1d597d)>_0x16f7dc['HWnKh'](0x708,0x3e8)||!_0x32376a){const _0x22ff57=(await NTQQUserApi[_0xbb4721(0x15d)]([_0x16f7dc[_0xbb4721(0x125)]]))[_0x16f7dc[_0xbb4721(0x125)]],_0x31ec79=await NTQQUserApi[_0xbb4721(0x10e)](),_0x58be73=_0x16f7dc[_0xbb4721(0x12c)](_0x16f7dc[_0xbb4721(0x119)](_0x16f7dc['YFlfp'](_0x16f7dc[_0xbb4721(0x11e)](_0x16f7dc[_0xbb4721(0x10b)](_0x16f7dc[_0xbb4721(0x15b)],_0x22ff57),_0x16f7dc[_0xbb4721(0x107)]),_0x31ec79),_0x16f7dc[_0xbb4721(0x13f)]),selfInfo['uin']);if(_0x16f7dc[_0xbb4721(0x166)](!_0x31ec79,!_0x22ff57))return _0x377a28;const _0x4dc8fd=WebApi[_0xbb4721(0x13a)](_0x31ec79),_0x13397d=[],_0x3ddec0=await WebApi[_0xbb4721(0x135)](_0x16f7dc[_0xbb4721(0x10b)](_0x16f7dc[_0xbb4721(0x177)](_0x16f7dc[_0xbb4721(0x11e)](_0x16f7dc[_0xbb4721(0x151)],_0x256cb2),_0x16f7dc[_0xbb4721(0x110)]),_0x4dc8fd),_0x16f7dc[_0xbb4721(0x127)],'',_0x58be73);if(!_0x3ddec0?.['count']||_0x3ddec0?.[_0xbb4721(0x152)]!==0x0||!_0x3ddec0?.[_0xbb4721(0x15c)])return[];else for(const _0x32faf9 in _0x3ddec0[_0xbb4721(0x15c)]){_0x377a28[_0xbb4721(0x114)](_0x3ddec0[_0xbb4721(0x15c)][_0x32faf9]);}const _0x322c60=Math[_0xbb4721(0x169)](_0x16f7dc[_0xbb4721(0x17a)](_0x3ddec0[_0xbb4721(0x124)],0x28));for(let _0x5becdc=0x2;_0x5becdc<=_0x322c60;_0x5becdc++){const _0x2fb0d1=WebApi[_0xbb4721(0x135)](_0x16f7dc['XhDEx'](_0x16f7dc['XhDEx'](_0x16f7dc['eMEiz'](_0x16f7dc['eMEiz'](_0x16f7dc[_0xbb4721(0x149)](_0x16f7dc[_0xbb4721(0x174)](_0x16f7dc[_0xbb4721(0x130)],_0x16f7dc[_0xbb4721(0x161)](_0x5becdc-0x1,0x28))+'&end=',_0x16f7dc[_0xbb4721(0x161)](_0x5becdc,0x28)),_0x16f7dc['yLCIk']),_0x256cb2),_0xbb4721(0x123)),_0x4dc8fd),_0xbb4721(0x11c),'',_0x58be73);_0x13397d[_0xbb4721(0x114)](_0x2fb0d1);}for(let _0x10dc0e=0x1;_0x16f7dc['MBdcJ'](_0x10dc0e,_0x322c60);_0x10dc0e++){const _0x3baf2d=await _0x13397d[_0x10dc0e];if(!_0x3baf2d?.[_0xbb4721(0x124)]||_0x16f7dc['PQaSf'](_0x3baf2d?.[_0xbb4721(0x152)],0x0)||!_0x3baf2d?.[_0xbb4721(0x15c)])continue;for(const _0xa592c2 in _0x3baf2d[_0xbb4721(0x15c)]){_0x377a28[_0xbb4721(0x114)](_0x3baf2d[_0xbb4721(0x15c)][_0xa592c2]);}}WebGroupData['GroupData'][_0xbb4721(0x16c)](_0x256cb2,_0x377a28),WebGroupData['GroupTime'][_0xbb4721(0x16c)](_0x256cb2,Date[_0xbb4721(0x12d)]());}else _0x377a28=_0x2aa1cd;return _0x377a28;}static async[_0x20674e(0x17c)](_0xfb9444,_0x4ec2a7=''){const _0xeb2c8c=_0x20674e,_0x38d712={'uYKJh':'qun.qq.com','jVjrI':function(_0x1ead73,_0x1ed684){return _0x1ead73+_0x1ed684;},'KxjiE':function(_0x1773ca,_0x28dac5){return _0x1773ca+_0x28dac5;},'vycSM':function(_0x131969,_0x2e62dc){return _0x131969+_0x2e62dc;},'RaqXq':_0xeb2c8c(0x13c),'NbTfV':_0xeb2c8c(0x142),'YBKZo':function(_0x589ae1,_0x1bf37d){return _0x589ae1+_0x1bf37d;},'sVwYd':function(_0x44bb99,_0x5040b2){return _0x44bb99+_0x5040b2;},'kSTPe':function(_0x549ae1,_0x349661){return _0x549ae1+_0x349661;},'rbFwT':_0xeb2c8c(0x148),'OKvWJ':_0xeb2c8c(0x123),'wdiIS':_0xeb2c8c(0x15f),'mVlGt':_0xeb2c8c(0x12a),'kBOnw':function(_0x5cb12c,_0x31c1f7){return _0x5cb12c+_0x31c1f7;},'gzTMf':_0xeb2c8c(0x155),'srdqG':_0xeb2c8c(0x13d)},_0x5df988=(await NTQQUserApi[_0xeb2c8c(0x15d)]([_0x38d712[_0xeb2c8c(0x16a)]]))[_0x38d712[_0xeb2c8c(0x16a)]],_0x268418=await NTQQUserApi[_0xeb2c8c(0x10e)](),_0x2655e9=_0x38d712['jVjrI'](_0x38d712['KxjiE'](_0x38d712[_0xeb2c8c(0x111)](_0x38d712[_0xeb2c8c(0x111)](_0x38d712[_0xeb2c8c(0x17b)](_0x38d712[_0xeb2c8c(0x115)],_0x5df988),_0xeb2c8c(0x11a)),_0x268418),_0x38d712['NbTfV']),selfInfo[_0xeb2c8c(0x16d)]);let _0x4548fa=undefined;if(!_0x268418||!_0x5df988)return undefined;const _0x20e373=WebApi[_0xeb2c8c(0x13a)](_0x268418),_0x4ec978=_0x38d712['YBKZo'](_0x38d712[_0xeb2c8c(0x163)](_0x38d712[_0xeb2c8c(0x17b)](_0x38d712[_0xeb2c8c(0x10c)](_0x38d712[_0xeb2c8c(0x10a)](_0x38d712[_0xeb2c8c(0x14d)],_0xfb9444),_0x38d712[_0xeb2c8c(0x12e)])+_0x20e373,_0x38d712[_0xeb2c8c(0x11b)]),_0x4ec2a7),_0x38d712[_0xeb2c8c(0x122)]),_0x5852c9=_0x38d712[_0xeb2c8c(0x108)](_0x38d712['gzTMf'],_0x20e373);try{return _0x4548fa=await WebApi[_0xeb2c8c(0x135)](_0x5852c9,_0x38d712[_0xeb2c8c(0x170)],'',_0x2655e9),_0x4548fa;}catch(_0x3fc474){return undefined;}return undefined;}static async['getGrouptNotice'](_0x2eb505){const _0xe05b91=_0x20674e,_0x2288d5={'xRicz':_0xe05b91(0x139),'froet':function(_0x59f381,_0x341ada){return _0x59f381+_0x341ada;},'jZYxM':function(_0x67a5dd,_0x5f1000){return _0x67a5dd+_0x5f1000;},'VXVnE':function(_0x4469cf,_0x44ede2){return _0x4469cf+_0x44ede2;},'JCJtP':function(_0x1f7ed0,_0x30214a){return _0x1f7ed0+_0x30214a;},'LmvOD':'p_skey=','LQoPt':_0xe05b91(0x11a),'ebXno':_0xe05b91(0x142),'VzTkC':function(_0x7bb324,_0x24a091){return _0x7bb324+_0x24a091;},'BchiW':_0xe05b91(0x153),'XKfcQ':'&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','Wivcb':function(_0x216b89,_0x4d206d){return _0x216b89!==_0x4d206d;}},_0x48bd93=(await NTQQUserApi[_0xe05b91(0x15d)]([_0x2288d5[_0xe05b91(0x17d)]]))[_0x2288d5['xRicz']],_0x1ad4ff=await NTQQUserApi[_0xe05b91(0x10e)](),_0x53c2f2=_0x2288d5['froet'](_0x2288d5[_0xe05b91(0x112)](_0x2288d5[_0xe05b91(0x14f)](_0x2288d5[_0xe05b91(0x14f)](_0x2288d5[_0xe05b91(0x165)](_0x2288d5[_0xe05b91(0x129)],_0x48bd93),_0x2288d5['LQoPt']),_0x1ad4ff),_0x2288d5[_0xe05b91(0x106)]),selfInfo[_0xe05b91(0x16d)]);let _0x4808c7=undefined;if(!_0x1ad4ff||!_0x48bd93)return undefined;const _0x15c4a6=WebApi[_0xe05b91(0x13a)](_0x1ad4ff),_0xc77022=_0x2288d5['jZYxM'](_0x2288d5['JCJtP'](_0x2288d5[_0xe05b91(0x14f)](_0x2288d5[_0xe05b91(0x126)](_0xe05b91(0x133),_0x15c4a6),_0x2288d5['BchiW']),_0x2eb505),_0x2288d5[_0xe05b91(0x16b)]);try{_0x4808c7=await WebApi['httpDataJson'](_0xc77022,_0xe05b91(0x13d),'',_0x53c2f2);if(_0x2288d5[_0xe05b91(0x11d)](_0x4808c7?.['ec'],0x0))return undefined;return _0x4808c7;}catch(_0x5077c1){return undefined;}return undefined;}static async['httpDataText'](_0x47cf8e='',_0x2ca6e1=_0x20674e(0x13d),_0x151bcd='',_0x4dcb9c=''){const _0x28a9fb=_0x20674e,_0x19255b={'zPPRo':function(_0x51c14f,_0x1d8b1f){return _0x51c14f===_0x1d8b1f;},'fCeRx':'GET','kQqAh':'HEAD','jLeMi':function(_0x4ce676,_0x4d4540,_0x42bca7){return _0x4ce676(_0x4d4540,_0x42bca7);},'NEhZE':_0x28a9fb(0x16e),'chCbg':function(_0x11ab7a,_0x446efe,_0x488727){return _0x11ab7a(_0x446efe,_0x488727);},'znVde':function(_0x51aec0,_0x1b88f9){return _0x51aec0(_0x1b88f9);}};let _0x2aa326='';return new Promise(async(_0xed6622,_0x419346)=>{const _0xd3cbca=_0x28a9fb;try{let _0x2dbe63=undefined;_0x19255b[_0xd3cbca(0x131)](_0x2ca6e1,_0x19255b[_0xd3cbca(0x10f)])||_0x2ca6e1===_0x19255b['kQqAh']?_0x2dbe63=await _0x19255b['jLeMi'](fetch,_0x47cf8e,{'method':_0x2ca6e1,'headers':{'Content-Type':_0x19255b['NEhZE'],'Cookie':_0x4dcb9c}}):_0x2dbe63=await _0x19255b[_0xd3cbca(0x128)](fetch,_0x47cf8e,{'method':_0x2ca6e1,'headers':{'Content-Type':'application/x-www-form-urlencoded','Cookie':_0x4dcb9c},'body':_0x151bcd});if(_0x2dbe63['ok'])_0x2aa326=await _0x2dbe63[_0xd3cbca(0x175)]();else{}}catch(_0x128c5c){}_0x19255b[_0xd3cbca(0x179)](_0xed6622,_0x2aa326);});}static async[_0x20674e(0x135)](_0x396161='',_0xcc8c5c=_0x20674e(0x13d),_0x520d3c='',_0x135d8e=''){const _0x342eab=_0x20674e,_0x2234d8={'cTnqc':_0x342eab(0x13d),'vtBhz':function(_0x42e496,_0x2feec4){return _0x42e496===_0x2feec4;},'VxdpL':'HEAD','qczXU':function(_0xbfbe2d,_0x37bb50,_0x1879b1){return _0xbfbe2d(_0x37bb50,_0x1879b1);},'JXwby':_0x342eab(0x16e),'FzbmM':function(_0x6c036c,_0xe5a4db){return _0x6c036c(_0xe5a4db);}};let _0x1a1fea=undefined;return new Promise(async(_0x3eb6e2,_0x4cefd2)=>{const _0xcfa9ec=_0x342eab;try{let _0x3240e5=undefined;_0xcc8c5c===_0x2234d8[_0xcfa9ec(0x121)]||_0x2234d8[_0xcfa9ec(0x173)](_0xcc8c5c,_0x2234d8[_0xcfa9ec(0x12b)])?_0x3240e5=await _0x2234d8['qczXU'](fetch,_0x396161,{'method':_0xcc8c5c,'headers':{'Content-Type':_0x2234d8[_0xcfa9ec(0x162)],'Cookie':_0x135d8e}}):_0x3240e5=await _0x2234d8[_0xcfa9ec(0x14a)](fetch,_0x396161,{'method':_0xcc8c5c,'headers':{'Content-Type':_0xcfa9ec(0x16e),'Cookie':_0x135d8e},'body':_0x520d3c});if(_0x3240e5['ok'])_0x1a1fea=await _0x3240e5[_0xcfa9ec(0x105)]();else{}}catch(_0x142288){}_0x2234d8[_0xcfa9ec(0x109)](_0x3eb6e2,_0x1a1fea);});}static[_0x20674e(0x13a)](_0x35a260){const _0x3192dc=_0x20674e,_0x5706f0={'LAyfh':function(_0xa9135d,_0x176684){return _0xa9135d||_0x176684;},'SIFIN':function(_0xccdb44,_0x24d135){return _0xccdb44+_0x24d135;},'cdTvI':function(_0x31cc38,_0x3a1870){return _0x31cc38<<_0x3a1870;}};_0x35a260=_0x5706f0[_0x3192dc(0x176)](_0x35a260,'');let _0x53a4af=0x1505;for(let _0x5953e3=0x0;_0x5953e3<_0x35a260[_0x3192dc(0x14b)];_0x5953e3++){const _0xa981c7=_0x35a260[_0x3192dc(0x140)](_0x5953e3);_0x53a4af=_0x5706f0[_0x3192dc(0x160)](_0x53a4af+_0x5706f0[_0x3192dc(0x141)](_0x53a4af,0x5),_0xa981c7);}return(_0x53a4af&0x7fffffff)[_0x3192dc(0x14e)]();}} \ No newline at end of file diff --git a/src/core.lib/src/core.js b/src/core.lib/src/core.js index da828eb9..a5a40a3c 100644 --- a/src/core.lib/src/core.js +++ b/src/core.lib/src/core.js @@ -1 +1 @@ -const _0x510c76=_0x2f1c;(function(_0x39044a,_0x24b873){const _0x38fb12=_0x2f1c,_0x2fa58e=_0x39044a();while(!![]){try{const _0x5a74f0=parseInt(_0x38fb12(0xf3))/0x1*(parseInt(_0x38fb12(0x14f))/0x2)+parseInt(_0x38fb12(0x138))/0x3+parseInt(_0x38fb12(0xc4))/0x4+-parseInt(_0x38fb12(0xc7))/0x5*(parseInt(_0x38fb12(0xed))/0x6)+parseInt(_0x38fb12(0xc9))/0x7*(parseInt(_0x38fb12(0xfe))/0x8)+parseInt(_0x38fb12(0x13d))/0x9*(-parseInt(_0x38fb12(0x15c))/0xa)+-parseInt(_0x38fb12(0x142))/0xb*(parseInt(_0x38fb12(0x116))/0xc);if(_0x5a74f0===_0x24b873)break;else _0x2fa58e['push'](_0x2fa58e['shift']());}catch(_0x1d4175){_0x2fa58e['push'](_0x2fa58e['shift']());}}}(_0x3643,0x7c0a2));import _0x2d55ab from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x5ebf0b from'node:path';import _0x493b8b from'node:os';import _0x50577e 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 _0x41997d from'node:crypto';import{friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';function _0x2f1c(_0x10d820,_0x52533d){const _0x364307=_0x3643();return _0x2f1c=function(_0x2f1c90,_0x45410d){_0x2f1c90=_0x2f1c90-0xaf;let _0x1abf3f=_0x364307[_0x2f1c90];return _0x1abf3f;},_0x2f1c(_0x10d820,_0x52533d);}export class NapCatCore{['session'];[_0x510c76(0xb1)];[_0x510c76(0xf6)];[_0x510c76(0x126)];['loginListener'];[_0x510c76(0x14c)]=[];[_0x510c76(0xe7)]={'get'(target,prop,receiver){const _0x3ff77b=_0x510c76,gBRxYM={'mLDbw':function(x,y){return x===y;},'DFaqj':_0x3ff77b(0xd3)};if(gBRxYM[_0x3ff77b(0x104)](typeof target[prop],gBRxYM[_0x3ff77b(0xe5)]))return(...args)=>{const _0x5331a5=_0x3ff77b;logDebug(target[_0x5331a5(0x140)][_0x5331a5(0x106)]+'\x20has\x20no\x20method\x20'+prop);};return Reflect[_0x3ff77b(0x141)](target,prop,receiver);}};constructor(){const _0x348f85=_0x510c76,_0x4d59e1={'uikUJ':function(_0x4d4c55,_0x54b71e){return _0x4d4c55+_0x54b71e;},'MPgAg':'当前账号(','thlDA':_0x348f85(0x131),'WrLgb':function(_0x38bde9,_0x51c496){return _0x38bde9(_0x51c496);},'StuDN':function(_0x10aebf,_0x45e9d6){return _0x10aebf(_0x45e9d6);},'TofVd':function(_0x281017,_0x1179bb,_0x4a39bc){return _0x281017(_0x1179bb,_0x4a39bc);},'Objcn':_0x348f85(0x12c),'TduDC':function(_0x2defdd,_0x13f708,_0x4d8bd5){return _0x2defdd(_0x13f708,_0x4d8bd5);}};this[_0x348f85(0xf6)]=new _0x2d55ab[(_0x348f85(0x159))](),this[_0x348f85(0xb1)]=new _0x2d55ab['NodeQQNTWrapperUtil'](),this[_0x348f85(0x126)]=new _0x2d55ab[(_0x348f85(0x137))](),this[_0x348f85(0x127)]=new _0x2d55ab['NodeIQQNTWrapperSession'](),this['loginListener']=new LoginListener(),this['loginListener']['onUserLoggedIn']=_0x4bf0b5=>{const _0x576279=_0x348f85;logError(_0x4d59e1[_0x576279(0xd8)](_0x4d59e1[_0x576279(0xd7)]+_0x4bf0b5,')已登录,无法重复登录'));},this[_0x348f85(0x143)][_0x348f85(0x139)]=_0x2e8234=>{const _0x47e079=_0x348f85;this[_0x47e079(0x156)](_0x2e8234[_0x47e079(0x15d)],_0x2e8234['uid'])[_0x47e079(0x11e)](_0x37e142=>{const _0x140bc2=_0x47e079,_0x23327b={'SCCXY':_0x4d59e1[_0x140bc2(0x160)]};selfInfo['uin']=_0x2e8234['uin'],selfInfo[_0x140bc2(0x125)]=_0x2e8234[_0x140bc2(0x125)],napCatConfig[_0x140bc2(0xc5)](),setLogLevel(napCatConfig[_0x140bc2(0xce)],napCatConfig[_0x140bc2(0x13e)]),_0x4d59e1['WrLgb'](enableFileLog,napCatConfig[_0x140bc2(0x161)]),_0x4d59e1['WrLgb'](enableConsoleLog,napCatConfig[_0x140bc2(0x123)]),_0x4d59e1['StuDN'](setLogSelfInfo,selfInfo);const _0xf5817d=_0x5ebf0b['resolve'](this['dataPath'],_0x140bc2(0x102));_0x50577e[_0x140bc2(0xcb)](_0xf5817d,{'recursive':!![]}),_0x4d59e1[_0x140bc2(0xc6)](logDebug,'本账号数据/缓存目录:',_0xf5817d),dbUtil['init'](_0x5ebf0b[_0x140bc2(0x12e)](_0xf5817d,'./'+_0x2e8234[_0x140bc2(0x15d)]+_0x140bc2(0x129)))[_0x140bc2(0x11e)](()=>{const _0x14ccfa=_0x140bc2,_0x5ae3ec={'hlznw':function(_0x1ceeae,_0x2f4376){return _0x1ceeae instanceof _0x2f4376;}};this[_0x14ccfa(0x12a)](),this[_0x14ccfa(0x14c)][_0x14ccfa(0x146)](_0x36a1b7=>{new Promise((_0xa7db7d,_0x48feac)=>{const _0x499c0a=_0x2f1c,_0x39699a=_0x36a1b7(_0x2e8234[_0x499c0a(0x15d)],_0x2e8234['uid']);_0x5ae3ec[_0x499c0a(0x154)](_0x39699a,Promise)&&_0x39699a[_0x499c0a(0x11e)](_0xa7db7d)[_0x499c0a(0x10d)](_0x48feac);})['then']();});})[_0x140bc2(0x10d)](_0x30b9db=>{logError(_0x23327b['SCCXY'],_0x30b9db);});})['catch'](_0x48a9e1=>{const _0x1c251a=_0x47e079;logError(_0x4d59e1[_0x1c251a(0x151)],_0x48a9e1);throw new Error(_0x1c251a(0xf2)+JSON[_0x1c251a(0x105)](_0x48a9e1));});},this[_0x348f85(0x143)]['onQRCodeSessionFailed']=_0x45ef27=>{const _0x5c56be=_0x348f85;_0x4d59e1[_0x5c56be(0x103)](logError,_0x5c56be(0xdb),_0x45ef27);},this[_0x348f85(0x143)][_0x348f85(0x133)]=_0x147868=>{const _0x3676e3=_0x348f85;_0x4d59e1[_0x3676e3(0xc6)](logError,'登录失败',_0x147868);},this[_0x348f85(0x143)]=new Proxy(this[_0x348f85(0x143)],this[_0x348f85(0xe7)]),this[_0x348f85(0x126)][_0x348f85(0xe4)](new _0x2d55ab[(_0x348f85(0xc1))](this['loginListener'])),this[_0x348f85(0x132)]();}get[_0x510c76(0xb5)](){const _0x1e6566=_0x510c76,_0x1d6730={'QhaQO':_0x1e6566(0x117)};let _0x152dbf=this[_0x1e6566(0xb1)][_0x1e6566(0x111)]();return!_0x152dbf&&(_0x152dbf=_0x5ebf0b[_0x1e6566(0x12e)](_0x493b8b[_0x1e6566(0xf7)](),_0x1d6730['QhaQO']),_0x50577e[_0x1e6566(0xcb)](_0x152dbf,{'recursive':!![]})),_0x152dbf;}get[_0x510c76(0x10b)](){const _0xaf58af=_0x510c76;return _0x5ebf0b[_0xaf58af(0x12e)](this[_0xaf58af(0xb5)],_0xaf58af(0x114));}[_0x510c76(0x132)](){const _0xc95d3c=_0x510c76,_0x1977a3={'wDHrQ':_0xc95d3c(0x150)};this['engine'][_0xc95d3c(0x119)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0xc95d3c(0x10f)],'os_version':_0x1977a3[_0xc95d3c(0xc8)],'use_xlog':!![],'qua':_0xc95d3c(0x107)+qqVersionConfigInfo[_0xc95d3c(0x10f)][_0xc95d3c(0x130)]('-','_')+_0xc95d3c(0x11a),'global_path_config':{'desktopGlobalPath':this[_0xc95d3c(0x10b)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x2d55ab[(_0xc95d3c(0x11c))](new GlobalAdapter())),this[_0xc95d3c(0x126)][_0xc95d3c(0x132)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this['dataPathGlobal'],'clientVer':qqVersionConfigInfo[_0xc95d3c(0x10f)],'hostName':hostname});}[_0x510c76(0x156)](_0x24b2fa,_0x168798){const _0x34d925={'wOVPi':function(_0x3936d5,_0x9cb85){return _0x3936d5===_0x9cb85;},'MmKeZ':function(_0x5c0d7b,_0x2aef9c){return _0x5c0d7b(_0x2aef9c);},'YvzAG':function(_0x29eaf4,_0x37b580){return _0x29eaf4(_0x37b580);}};return new Promise((_0x52e59f,_0x1a7f12)=>{const _0x4df7d3=_0x2f1c,_0x451784=genSessionConfig(_0x24b2fa,_0x168798,this[_0x4df7d3(0xb5)]),_0x138860=new SessionListener();_0x138860[_0x4df7d3(0xcd)]=_0x23ecfd=>{const _0x1b2d6d=_0x4df7d3;if(_0x34d925[_0x1b2d6d(0x10c)](_0x23ecfd,0x0))return _0x34d925[_0x1b2d6d(0x10e)](_0x52e59f,0x0);_0x34d925[_0x1b2d6d(0x10e)](_0x1a7f12,_0x23ecfd);},this['session'][_0x4df7d3(0xc0)](_0x451784,new _0x2d55ab[(_0x4df7d3(0x13c))](new DependsAdapter()),new _0x2d55ab[(_0x4df7d3(0x158))](new DispatcherAdapter()),new _0x2d55ab[(_0x4df7d3(0xe1))](_0x138860));try{this[_0x4df7d3(0x127)][_0x4df7d3(0xf8)](0x0);}catch(_0xffdb87){try{this[_0x4df7d3(0x127)][_0x4df7d3(0xf8)]();}catch(_0x2a54c7){_0x34d925[_0x4df7d3(0x15e)](_0x1a7f12,_0x4df7d3(0x148)+_0x2a54c7);}}});}['initDataListener'](){const _0x4301b6=_0x510c76,_0x4a94e0={'aPkGC':function(_0x1c31f3,_0x5eaccf){return _0x1c31f3+_0x5eaccf;},'PZdJo':function(_0x4bffe0,_0x49f096){return _0x4bffe0+_0x49f096;},'kNqbx':')\x20在线状态变更','gPNuK':function(_0xa5b733,_0x5c787e){return _0xa5b733(_0x5c787e);},'oAfxZ':function(_0x5046cb,_0x180002){return _0x5046cb+_0x180002;},'TLDzY':function(_0x44482d,_0x367bb7){return _0x44482d+_0x367bb7;},'AmSwF':_0x4301b6(0xda),'fmhSO':function(_0x61a177,_0x2a1fe0){return _0x61a177===_0x2a1fe0;},'fOeyG':function(_0x315ca3,_0xfcb47e){return _0x315ca3/_0xfcb47e;},'psuwQ':function(_0x45f949,_0x3b1be1){return _0x45f949===_0x3b1be1;},'qsAfH':_0x4301b6(0x155)},_0x265b1b=new MsgListener();_0x265b1b[_0x4301b6(0xe2)]=_0x503d7c=>{const _0x55f7a9=_0x4301b6,_0x1e8911={'FNvFJ':function(_0x3356f8,_0x8e9bb6){const _0x48a81b=_0x2f1c;return _0x4a94e0[_0x48a81b(0xb8)](_0x3356f8,_0x8e9bb6);},'ippRI':function(_0x56e5fd,_0x5a3de0){const _0x234a4f=_0x2f1c;return _0x4a94e0[_0x234a4f(0x100)](_0x56e5fd,_0x5a3de0);},'pBSqq':_0x4a94e0['kNqbx']};_0x503d7c[_0x55f7a9(0x146)](_0x9a424f=>{const _0x1f0bc8=_0x55f7a9;_0x9a424f[_0x1f0bc8(0xff)]===0x2&&log(_0x1e8911[_0x1f0bc8(0xeb)](_0x1e8911[_0x1f0bc8(0xaf)]('账号设备(',_0x9a424f[_0x1f0bc8(0x14b)]),_0x1e8911[_0x1f0bc8(0x118)]));});},_0x265b1b[_0x4301b6(0xd6)]=_0x3907f9=>{const _0xa2376b=_0x4301b6;_0x4a94e0['gPNuK'](log,_0x4a94e0[_0xa2376b(0xbd)](_0x4a94e0[_0xa2376b(0xdf)](_0x4a94e0[_0xa2376b(0x152)],_0x3907f9['tipsTitle']),']\x20')+_0x3907f9[_0xa2376b(0xb3)]);},_0x265b1b[_0x4301b6(0x149)]=_0x2e95f9=>{const _0x53dcc6=_0x4301b6;stat[_0x53dcc6(0x113)]+=0x1,_0x2e95f9[_0x53dcc6(0x146)](_0x53312b=>{const _0x23d267=_0x53dcc6;_0x4a94e0['fmhSO'](_0x53312b[_0x23d267(0x14d)],'0')?dbUtil[_0x23d267(0xf0)](_0x53312b)['then']()[_0x23d267(0x10d)]():dbUtil['getMsgByLongId'](_0x53312b[_0x23d267(0x11f)])[_0x23d267(0x11e)](_0x3892d5=>{const _0x5aba8d=_0x23d267;_0x3892d5&&(_0x3892d5[_0x5aba8d(0x14d)]=_0x53312b[_0x5aba8d(0x14d)],dbUtil[_0x5aba8d(0x147)](_0x3892d5)[_0x5aba8d(0x11e)]());});});},_0x265b1b['onAddSendMsg']=_0x4538c1=>{const _0x1fbec2=_0x4301b6;stat[_0x1fbec2(0xfa)]+=0x1,stat['message_sent']+=0x1,stat[_0x1fbec2(0x134)]=Math[_0x1fbec2(0xb7)](Date[_0x1fbec2(0x11d)]()/0x3e8);},_0x265b1b['onRecvMsg']=_0xd5ede6=>{const _0x376718=_0x4301b6;stat[_0x376718(0x113)]+=0x1,stat[_0x376718(0x145)]+=_0xd5ede6['length'],stat[_0x376718(0x134)]=Math['floor'](_0x4a94e0['fOeyG'](Date[_0x376718(0x11d)](),0x3e8));},_0x265b1b[_0x4301b6(0xe6)]=(..._0x4a2ba7)=>{const _0x1bcfe8=_0x4301b6;stat[_0x1bcfe8(0x113)]+=0x1;},this['addListener'](_0x265b1b);const _0x40a26c=new BuddyListener();_0x40a26c[_0x4301b6(0xf9)]=_0x39a6b3=>{const _0x2984c6=_0x4301b6;for(const _0x26daf4 of _0x39a6b3){for(const _0x10674c of _0x26daf4[_0x2984c6(0xd1)]){const _0x318912=friends[_0x2984c6(0x141)](_0x10674c[_0x2984c6(0x125)]);uid2UinMap[_0x10674c[_0x2984c6(0x125)]]=_0x10674c[_0x2984c6(0x15d)],_0x318912?Object['assign'](_0x318912,_0x10674c):friends[_0x2984c6(0xf5)](_0x10674c[_0x2984c6(0x125)],_0x10674c);}}},this[_0x4301b6(0x136)](_0x40a26c),this['session'][_0x4301b6(0xd2)]()[_0x4301b6(0xbe)](!![])[_0x4301b6(0x11e)](_0x442af8=>{});const _0xc9703e=new ProfileListener();_0xc9703e[_0x4301b6(0xec)]=_0x25653a=>{const _0x787168=_0x4301b6;_0x4a94e0[_0x787168(0xde)](_0x25653a['uid'],selfInfo[_0x787168(0x125)])&&Object[_0x787168(0xd5)](selfInfo,_0x25653a);},_0xc9703e[_0x4301b6(0x11b)]=_0x569b9f=>{},this[_0x4301b6(0x136)](_0xc9703e);const _0x11e7d4=new GroupListener();_0x11e7d4['onGroupListUpdate']=(_0x26103c,_0x439822)=>{const _0x268bfc=_0x4301b6,_0x1acd2d={'IphEk':_0x4a94e0[_0x268bfc(0xb4)]};_0x439822[_0x268bfc(0x146)](_0x38bbf5=>{const _0x3d9cd7=_0x268bfc,_0x451279=groups[_0x3d9cd7(0x141)](_0x38bbf5[_0x3d9cd7(0xd0)]);if(_0x451279)Object[_0x3d9cd7(0xd5)](_0x451279,_0x38bbf5);else{groups[_0x3d9cd7(0xf5)](_0x38bbf5[_0x3d9cd7(0xd0)],_0x38bbf5);const _0x4ca24d=this['session'][_0x3d9cd7(0x12d)]()[_0x3d9cd7(0xb2)](_0x38bbf5[_0x3d9cd7(0xd0)],_0x1acd2d[_0x3d9cd7(0xe8)]);this[_0x3d9cd7(0x127)][_0x3d9cd7(0x12d)]()[_0x3d9cd7(0xf4)](_0x4ca24d,undefined,0xbb8)[_0x3d9cd7(0x11e)](_0x4234b3=>{});}});},_0x11e7d4[_0x4301b6(0x15a)]=_0x30bc7c=>{const _0xd3552c=_0x4301b6,_0xe4eac=_0x30bc7c[_0xd3552c(0x13a)]['split']('_')[0x0];if(groupMembers[_0xd3552c(0xcc)](_0xe4eac)){const _0x4f591f=groupMembers[_0xd3552c(0x141)](_0xe4eac);_0x30bc7c['infos'][_0xd3552c(0xe0)]((_0x57b4cf,_0x141a2f)=>{const _0x197f15=_0xd3552c,_0x3b3f0a=_0x4f591f[_0x197f15(0x141)](_0x141a2f);_0x3b3f0a?Object[_0x197f15(0xd5)](_0x3b3f0a,_0x57b4cf):_0x4f591f[_0x197f15(0xf5)](_0x141a2f,_0x57b4cf);});}else groupMembers[_0xd3552c(0xf5)](_0xe4eac,_0x30bc7c[_0xd3552c(0xe9)]);},_0x11e7d4['onMemberInfoChange']=(_0x1e6adc,_0x4d1138,_0x158d61)=>{const _0x375f3c=_0x4301b6;_0x158d61[_0x375f3c(0xe0)]((_0x1e715b,_0x24de1e)=>{uid2UinMap[_0x24de1e]=_0x1e715b['uin'];});const _0x3c635e=groupMembers[_0x375f3c(0x141)](_0x1e6adc);_0x3c635e?_0x158d61[_0x375f3c(0xe0)]((_0xae35da,_0x5bc51a)=>{const _0x1491b1=_0x375f3c,_0x1a5038=_0x3c635e[_0x1491b1(0x141)](_0x5bc51a);_0x1a5038?Object[_0x1491b1(0xd5)](_0x1a5038,_0xae35da):_0x3c635e[_0x1491b1(0xf5)](_0x5bc51a,_0xae35da);}):groupMembers[_0x375f3c(0xf5)](_0x1e6adc,_0x158d61);},this[_0x4301b6(0x136)](_0x11e7d4);}['addListener'](_0x3b4808){const _0x4cec9f=_0x510c76,_0x1c8cae={'cFEHy':_0x4cec9f(0xc2),'VbGNZ':'GroupListener','vPQeq':'MsgListener','UTpUK':_0x4cec9f(0x10a)};_0x3b4808=new Proxy(_0x3b4808,this[_0x4cec9f(0xe7)]);switch(_0x3b4808[_0x4cec9f(0x140)]['name']){case _0x1c8cae[_0x4cec9f(0x15b)]:{return this[_0x4cec9f(0x127)]['getBuddyService']()['addKernelBuddyListener'](new _0x2d55ab[(_0x4cec9f(0xfd))](_0x3b4808));}case _0x1c8cae[_0x4cec9f(0x13f)]:{return this[_0x4cec9f(0x127)]['getGroupService']()[_0x4cec9f(0xd4)](new _0x2d55ab[(_0x4cec9f(0x14a))](_0x3b4808));}case _0x1c8cae[_0x4cec9f(0xf1)]:{return this[_0x4cec9f(0x127)][_0x4cec9f(0x12b)]()['addKernelMsgListener'](new _0x2d55ab[(_0x4cec9f(0xba))](_0x3b4808));}case _0x1c8cae['UTpUK']:{return this[_0x4cec9f(0x127)]['getProfileService']()['addKernelProfileListener'](new _0x2d55ab[(_0x4cec9f(0xdd))](_0x3b4808));}default:return-0x1;}}[_0x510c76(0x144)](_0x262909){const _0x5f03cd=_0x510c76;this[_0x5f03cd(0x14c)][_0x5f03cd(0x112)](_0x262909);}async[_0x510c76(0x153)](_0x3d5c8d){const _0x3d551e=_0x510c76,_0x551cd6={'vQXUT':function(_0x31ab47,_0x1c8fd0){return _0x31ab47!==_0x1c8fd0;},'OLxdY':_0x3d551e(0xee),'AfDWt':function(_0x576e99,_0x395340){return _0x576e99(_0x395340);},'reIOl':function(_0x5ced90,_0x14dc13){return _0x5ced90+_0x14dc13;}},_0x3cdb1e=await this[_0x3d551e(0x126)][_0x3d551e(0x12f)]();if(_0x551cd6[_0x3d551e(0xfb)](_0x3cdb1e[_0x3d551e(0x135)],0x0))throw new Error(_0x551cd6[_0x3d551e(0x110)]);const _0x30dd9b=_0x3cdb1e[_0x3d551e(0xbb)][_0x3d551e(0xdc)](_0x3983c2=>_0x3983c2[_0x3d551e(0x15d)]===_0x3d5c8d);if(!_0x30dd9b||!_0x30dd9b?.[_0x3d551e(0x124)])throw new Error(_0x3d5c8d+_0x3d551e(0xe3));await _0x551cd6[_0x3d551e(0x157)](sleep,0x3e8);const _0x2ccd3d=await this[_0x3d551e(0x126)][_0x3d551e(0x15f)](_0x3d5c8d);if(!_0x2ccd3d[_0x3d551e(0x135)])throw new Error(_0x551cd6[_0x3d551e(0x120)]('快速登录失败\x20',_0x2ccd3d[_0x3d551e(0x101)][_0x3d551e(0x115)]));return _0x2ccd3d;}async[_0x510c76(0xb6)](){const _0x1d7198={'Ujkup':function(_0x23be66,_0x13ba61){return _0x23be66(_0x13ba61);},'Nbycz':'base64','nSYFB':function(_0x3ec7d1,_0x4f570d,_0x2b5284){return _0x3ec7d1(_0x4f570d,_0x2b5284);}};let _0x3fb7d0=![];return new Promise((_0x349a59,_0x1218f1)=>{const _0x1412f9=_0x2f1c,_0x3ae20f={'QafmG':_0x1d7198['Nbycz']};_0x1d7198[_0x1412f9(0x13b)](setTimeout,()=>{const _0x38cd26=_0x1412f9;!_0x3fb7d0&&_0x1d7198[_0x38cd26(0x14e)](_0x1218f1,'获取二维码登录超时');},0x2710),this[_0x1412f9(0x143)][_0x1412f9(0xbf)]=_0x18d0a3=>{const _0x4785fb=_0x1412f9;_0x3fb7d0=!![];const _0x3a9fdd=_0x18d0a3[_0x4785fb(0x108)][_0x4785fb(0xc3)]('data:image/png;base64,')[0x1],_0x36511d=Buffer[_0x4785fb(0xcf)](_0x3a9fdd,_0x3ae20f['QafmG']);_0x349a59({'url':_0x18d0a3['qrcodeUrl'],'base64':_0x18d0a3[_0x4785fb(0x108)],'buffer':_0x36511d});},this['loginService'][_0x1412f9(0xca)]();});}async[_0x510c76(0xfc)](_0x2c5028,_0x5a58ad,_0x75e126,_0x4466eb,_0x1c72dd){const _0x3e1eb7=_0x510c76,_0x15651f={'XhToi':'hex','bCcPF':function(_0x29e84b,_0x191f8b){return _0x29e84b&&_0x191f8b;},'DbUdp':function(_0x4a4067,_0x4beca0){return _0x4a4067||_0x4beca0;},'MovOh':function(_0x4f7b45,_0x17bcf6){return _0x4f7b45||_0x17bcf6;},'qUmUx':function(_0x1784b8,_0x274052){return _0x1784b8(_0x274052);},'vnkxv':'140022008','BdXYt':_0x3e1eb7(0xea)},_0x43c21c=_0x41997d[_0x3e1eb7(0xef)](_0x3e1eb7(0xbc))[_0x3e1eb7(0xb9)](_0x5a58ad)['digest'](_0x15651f[_0x3e1eb7(0x122)]),_0x30d5ec={'uin':_0x2c5028,'passwordMd5':_0x43c21c,'step':_0x15651f[_0x3e1eb7(0xd9)](_0x75e126,_0x4466eb)&&_0x1c72dd?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x15651f['DbUdp'](_0x75e126,''),'proofWaterRand':_0x15651f[_0x3e1eb7(0xb0)](_0x4466eb,''),'proofWaterSid':_0x1c72dd||''};await this[_0x3e1eb7(0x126)][_0x3e1eb7(0x12f)](),await _0x15651f[_0x3e1eb7(0x128)](sleep,0x3e8);const _0x5b8d99=await this[_0x3e1eb7(0x126)][_0x3e1eb7(0xfc)](_0x30d5ec);switch(_0x5b8d99['result']){case'0':{break;}case _0x15651f[_0x3e1eb7(0x109)]:{break;}case'4':case _0x15651f[_0x3e1eb7(0x121)]:default:}}}function _0x3643(){const _0x143059=['ProfileListener','dataPathGlobal','wOVPi','catch','MmKeZ','curVersion','OLxdY','getNTUserDataInfoConfig','push','packet_received','./nt_qq/global','errMsg','106920iDUclC','./.config/QQ','pBSqq','initWithDeskTopConfig','_GW_B','onSelfStatusChanged','NodeIGlobalAdapter','now','then','msgId','reIOl','BdXYt','XhToi','consoleLog','isQuickLogin','uid','loginService','session','qUmUx','-v2.db','initDataListener','getMsgService','initSession\x20failed','getGroupService','resolve','getLoginList','replace','数据库初始化失败','initConfig','onLoginFailed','last_message_time','result','addListener','NodeIKernelLoginService','154575XiXpcx','onQRCodeLoginSucceed','sceneId','nSYFB','NodeIDependsAdapter','18nqboZZ','consoleLogLevel','VbGNZ','constructor','get','22XtptCo','loginListener','onLoginSuccess','message_received','map','updateMsg','init\x20failed\x20','onMsgInfoListUpdate','NodeIKernelGroupListener','devUid','onLoginSuccessFuncList','recallTime','Ujkup','2120wsYVeh','Windows\x2010\x20Pro','Objcn','AmSwF','quickLogin','hlznw','groupMemberList_MainWindow','initSession','AfDWt','NodeIDispatcherAdapter','NodeIQQNTWrapperEngine','onMemberListChange','cFEHy','1082320dCVtHr','uin','YvzAG','quickLoginWithUin','thlDA','fileLog','ippRI','MovOh','util','createMemberListScene','tipsDesc','qsAfH','dataPath','qrLogin','floor','aPkGC','update','NodeIKernelMsgListener','LocalLoginInfoList','md5','oAfxZ','getBuddyList','onQRCodeGetPicture','init','NodeIKernelLoginListener','BuddyListener','split','2049944FSGpMv','read','TofVd','1275ImgQum','wDHrQ','3218803IBeRzh','getQRCodePicture','mkdirSync','has','onSessionInitComplete','fileLogLevel','from','groupCode','buddyList','getBuddyService','undefined','addKernelGroupListener','assign','onKickedOffLine','MPgAg','uikUJ','bCcPF','[KickedOffLine]\x20[','登录失败','find','NodeIKernelProfileListener','psuwQ','TLDzY','forEach','NodeIKernelSessionListener','onLineDev','快速登录不可用','addKernelLoginListener','DFaqj','onRecvSysMsg','proxyHandler','IphEk','infos','140022013','FNvFJ','onProfileDetailInfoChanged','8868RJQXrD','没有可快速登录的QQ号','createHash','addMsg','vPQeq','启动失败:\x20','90GZxdhs','getNextMemberList','set','engine','homedir','startNT','onBuddyListChange','packet_sent','vQXUT','passwordLogin','NodeIKernelBuddyListener','8asiXTN','clientType','PZdJo','loginErrorInfo','./NapCat/data','TduDC','mLDbw','stringify','name','V1_WIN_NQ_','pngBase64QrcodeData','vnkxv'];_0x3643=function(){return _0x143059;};return _0x3643();}export const napCatCore=new NapCatCore(); \ No newline at end of file +const _0x86a825=_0xcfb7;(function(_0xb3203c,_0x9c72d3){const _0x589d17=_0xcfb7,_0x585dd9=_0xb3203c();while(!![]){try{const _0x26ed4d=-parseInt(_0x589d17(0x236))/0x1*(parseInt(_0x589d17(0x297))/0x2)+-parseInt(_0x589d17(0x24f))/0x3+-parseInt(_0x589d17(0x2a5))/0x4*(-parseInt(_0x589d17(0x224))/0x5)+parseInt(_0x589d17(0x276))/0x6*(-parseInt(_0x589d17(0x202))/0x7)+parseInt(_0x589d17(0x290))/0x8+parseInt(_0x589d17(0x2aa))/0x9*(parseInt(_0x589d17(0x1ef))/0xa)+-parseInt(_0x589d17(0x282))/0xb*(parseInt(_0x589d17(0x211))/0xc);if(_0x26ed4d===_0x9c72d3)break;else _0x585dd9['push'](_0x585dd9['shift']());}catch(_0x4a9156){_0x585dd9['push'](_0x585dd9['shift']());}}}(_0x1321,0x56df6));import _0x106365 from'@/core/wrapper';function _0x1321(){const _0x460b00=['TResy','GAOJZ','NodeIKernelLoginListener','devUid','NodeIKernelSessionListener','fileLogLevel','sfpbG','NodeIDispatcherAdapter','onProfileDetailInfoChanged','name','startNT','packet_received','getQRCodePicture','map','UvZRw','length','hmiVK','NodeIKernelGroupListener','addKernelProfileListener','启动失败:\x20','onQRCodeLoginSucceed','wPfdY','onAddSendMsg','yfwIS','addKernelMsgListener','then','./.config/QQ','QJSJQ','getMsgService','addMsg','PGNEi','mkdirSync','QDtkk','19632MrrPSy','登录失败','获取二维码登录超时','proxyHandler','onSelfStatusChanged','data:image/png;base64,','find','recallTime','getBuddyList','update','DJhQF','addKernelBuddyListener','9999XHQIur','NodeIKernelProfileListener','split','没有可快速登录的QQ号','loginService','Qhjuo','set','数据库初始化失败','YRIZd','initSession','tipsDesc','from','xwlPl','groupCode','5073640wkUMrR','WOPwc','NodeIKernelLoginService','onLoginSuccess','onLoginFailed','LocalLoginInfoList','-v2.db','202162XLFLks','xFSVr','uid','loginListener','[KickedOffLine]\x20[','快速登录不可用','./NapCat/data','createMemberListScene','140022013','quickLogin','assign','util','BuddyListener','JZYBu','2077324vMarDs','addListener','infos','GroupListener','onQRCodeGetPicture','65115EFhQZX','790QGDJbI','getNextMemberList','addKernelLoginListener','onMsgInfoListUpdate','quickLoginWithUin','jZXzl','init\x20failed\x20','MvKkC','140022008','QGQWm','last_message_time','consoleLogLevel','sceneId','VbnXv','buddyList','getGroupService','XHsJj','message_sent','NodeIDependsAdapter','1477GWqnoV',')已登录,无法重复登录','CjIIc','NodeIQQNTWrapperEngine','HPyad','Windows\x2010\x20Pro','now','stringify','getLoginList','tvcWm','Nhogh','updateMsg','nfGyD','WczpY','isQuickLogin','4236pVQgQE','xlsJM','kqmmD','constructor','OUxEd','passwordLogin','initWithDeskTopConfig','xNYYZ','get','TNAHa','tipsTitle','homedir','onSessionInitComplete','getBuddyService','resolve','curVersion','rRnrN','loginErrorInfo','has','5OwyzIw','packet_sent','dataPath','initDataListener','pngBase64QrcodeData','SNYTJ','NodeIKernelBuddyListener','read','onBuddyListChange','V1_WIN_NQ_','floor','result','快速登录失败\x20','errMsg','\x20has\x20no\x20method\x20','consoleLog','YcHLR','uin','2juyCrU','createHash','onLoginSuccessFuncList','session','BQXrS','hex','groupMemberList_MainWindow','cPSdS','当前账号(','BlNxc','forEach','base64','ybWsp','账号设备(','UPwcG','./nt_qq/global','md5','upMPK','initSession\x20failed','push','qrcodeUrl','initConfig','onQRCodeSessionFailed','getNTUserDataInfoConfig','NodeIKernelMsgListener','467520KmhCzs','HkYgC','KaLUo','engine','NodeQQNTWrapperUtil','dataPathGlobal'];_0x1321=function(){return _0x460b00;};return _0x1321();}function _0xcfb7(_0x56bbe2,_0x1fcfed){const _0x132182=_0x1321();return _0xcfb7=function(_0xcfb770,_0x20a4ec){_0xcfb770=_0xcfb770-0x1ef;let _0x4205b1=_0x132182[_0xcfb770];return _0x4205b1;},_0xcfb7(_0x56bbe2,_0x1fcfed);}import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x51e7dc from'node:path';import _0x112d62 from'node:os';import _0x4e239b 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 _0x9021ea from'node:crypto';import{friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{['session'];['util'];[_0x86a825(0x252)];[_0x86a825(0x286)];[_0x86a825(0x29a)];['onLoginSuccessFuncList']=[];[_0x86a825(0x279)]={'get'(target,prop,receiver){const _0x221e7b=_0x86a825,mmbLWB={'yfwIS':function(callee,param1){return callee(param1);},'HcEET':function(x,y){return x===y;},'YRIZd':'undefined'};if(mmbLWB['HcEET'](typeof target[prop],mmbLWB[_0x221e7b(0x28a)]))return(...args)=>{const _0x145f2c=_0x221e7b;mmbLWB[_0x145f2c(0x26c)](logDebug,target['constructor'][_0x145f2c(0x25e)]+_0x145f2c(0x232)+prop);};return Reflect[_0x221e7b(0x219)](target,prop,receiver);}};constructor(){const _0x32f2d7=_0x86a825,_0x6f281c={'TResy':function(_0x4006cd,_0x225e3d){return _0x4006cd(_0x225e3d);},'BQXrS':function(_0x46bf85,_0xc8e79b){return _0x46bf85+_0xc8e79b;},'feCcH':_0x32f2d7(0x203),'wPfdY':_0x32f2d7(0x289),'QDtkk':function(_0x402f38,_0x3a32cd,_0x3b2cae){return _0x402f38(_0x3a32cd,_0x3b2cae);},'HPyad':_0x32f2d7(0x29d),'upMPK':function(_0x3afc6f,_0x6ced73,_0x342a58){return _0x3afc6f(_0x6ced73,_0x342a58);},'MvKkC':function(_0x434157,_0x570a6f,_0x42732f){return _0x434157(_0x570a6f,_0x42732f);},'kqmmD':_0x32f2d7(0x248),'KaLUo':function(_0x3c6746,_0xe1309,_0x1b6fae){return _0x3c6746(_0xe1309,_0x1b6fae);},'BlNxc':_0x32f2d7(0x277)};this[_0x32f2d7(0x252)]=new _0x106365[(_0x32f2d7(0x205))](),this[_0x32f2d7(0x2a2)]=new _0x106365[(_0x32f2d7(0x253))](),this['loginService']=new _0x106365[(_0x32f2d7(0x292))](),this[_0x32f2d7(0x239)]=new _0x106365['NodeIQQNTWrapperSession'](),this['loginListener']=new LoginListener(),this[_0x32f2d7(0x29a)]['onUserLoggedIn']=_0x13ff40=>{const _0x8771ec=_0x32f2d7;_0x6f281c[_0x8771ec(0x255)](logError,_0x6f281c[_0x8771ec(0x23a)](_0x8771ec(0x23e),_0x13ff40)+_0x6f281c['feCcH']);},this[_0x32f2d7(0x29a)][_0x32f2d7(0x269)]=_0x4ed9dd=>{const _0x3514a0=_0x32f2d7,_0x442373={'fuuxo':function(_0x153f53,_0x36c638,_0x201a4a){const _0x2fc53e=_0xcfb7;return _0x6f281c[_0x2fc53e(0x251)](_0x153f53,_0x36c638,_0x201a4a);}};this[_0x3514a0(0x28b)](_0x4ed9dd[_0x3514a0(0x235)],_0x4ed9dd['uid'])['then'](_0xf3a5b=>{const _0xc03fdb=_0x3514a0,_0x3d5e3f={'cPSdS':function(_0x569f3f,_0x5a8c82,_0x4c5922){return _0x569f3f(_0x5a8c82,_0x4c5922);},'cDsSi':_0x6f281c[_0xc03fdb(0x26a)]};selfInfo[_0xc03fdb(0x235)]=_0x4ed9dd[_0xc03fdb(0x235)],selfInfo['uid']=_0x4ed9dd[_0xc03fdb(0x299)],napCatConfig[_0xc03fdb(0x22b)](),_0x6f281c[_0xc03fdb(0x275)](setLogLevel,napCatConfig[_0xc03fdb(0x25a)],napCatConfig[_0xc03fdb(0x1fa)]),_0x6f281c[_0xc03fdb(0x255)](enableFileLog,napCatConfig['fileLog']),enableConsoleLog(napCatConfig[_0xc03fdb(0x233)]),setLogSelfInfo(selfInfo);const _0x18fb86=_0x51e7dc[_0xc03fdb(0x21f)](this[_0xc03fdb(0x226)],_0x6f281c[_0xc03fdb(0x206)]);_0x4e239b[_0xc03fdb(0x274)](_0x18fb86,{'recursive':!![]}),_0x6f281c[_0xc03fdb(0x247)](logDebug,'本账号数据/缓存目录:',_0x18fb86),dbUtil['init'](_0x51e7dc[_0xc03fdb(0x21f)](_0x18fb86,'./'+_0x4ed9dd[_0xc03fdb(0x235)]+_0xc03fdb(0x296)))['then'](()=>{const _0x4ee932=_0xc03fdb,_0x4879fe={'XHsJj':function(_0x4e6798,_0x2cf836,_0x5092d6){return _0x442373['fuuxo'](_0x4e6798,_0x2cf836,_0x5092d6);}};this['initDataListener'](),this[_0x4ee932(0x238)][_0x4ee932(0x262)](_0x58f8f8=>{const _0x420a13=_0x4ee932;new Promise((_0x4e0108,_0xd87a5e)=>{const _0x44b178=_0xcfb7,_0x2e59ba=_0x4879fe[_0x44b178(0x1ff)](_0x58f8f8,_0x4ed9dd[_0x44b178(0x235)],_0x4ed9dd['uid']);_0x2e59ba instanceof Promise&&_0x2e59ba[_0x44b178(0x26e)](_0x4e0108)['catch'](_0xd87a5e);})[_0x420a13(0x26e)]();});})['catch'](_0x1ddca6=>{const _0x3871b2=_0xc03fdb;_0x3d5e3f[_0x3871b2(0x23d)](logError,_0x3d5e3f['cDsSi'],_0x1ddca6);});})['catch'](_0x406520=>{const _0x457fb7=_0x3514a0;_0x6f281c[_0x457fb7(0x1f6)](logError,_0x6f281c[_0x457fb7(0x213)],_0x406520);throw new Error(_0x457fb7(0x268)+JSON[_0x457fb7(0x209)](_0x406520));});},this[_0x32f2d7(0x29a)][_0x32f2d7(0x24c)]=_0x25a582=>{const _0xe21b87=_0x32f2d7;_0x6f281c[_0xe21b87(0x1f6)](logError,_0x6f281c[_0xe21b87(0x23f)],_0x25a582);},this[_0x32f2d7(0x29a)][_0x32f2d7(0x294)]=_0x2fad64=>{const _0x5724e=_0x32f2d7;_0x6f281c[_0x5724e(0x275)](logError,_0x6f281c['BlNxc'],_0x2fad64);},this['loginListener']=new Proxy(this[_0x32f2d7(0x29a)],this['proxyHandler']),this[_0x32f2d7(0x286)][_0x32f2d7(0x1f1)](new _0x106365[(_0x32f2d7(0x257))](this[_0x32f2d7(0x29a)])),this[_0x32f2d7(0x24b)]();}get[_0x86a825(0x226)](){const _0x1d0d99=_0x86a825;let _0x578543=this[_0x1d0d99(0x2a2)][_0x1d0d99(0x24d)]();return!_0x578543&&(_0x578543=_0x51e7dc[_0x1d0d99(0x21f)](_0x112d62[_0x1d0d99(0x21c)](),_0x1d0d99(0x26f)),_0x4e239b[_0x1d0d99(0x274)](_0x578543,{'recursive':!![]})),_0x578543;}get['dataPathGlobal'](){const _0x1eaf95=_0x86a825,_0x4e14ad={'DJhQF':_0x1eaf95(0x245)};return _0x51e7dc['resolve'](this['dataPath'],_0x4e14ad[_0x1eaf95(0x280)]);}[_0x86a825(0x24b)](){const _0x1e799e=_0x86a825,_0x488640={'YcHLR':_0x1e799e(0x207)};this[_0x1e799e(0x252)][_0x1e799e(0x217)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x1e799e(0x220)],'os_version':_0x488640[_0x1e799e(0x234)],'use_xlog':!![],'qua':_0x1e799e(0x22d)+qqVersionConfigInfo[_0x1e799e(0x220)]['replace']('-','_')+'_GW_B','global_path_config':{'desktopGlobalPath':this[_0x1e799e(0x254)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x106365['NodeIGlobalAdapter'](new GlobalAdapter())),this[_0x1e799e(0x286)][_0x1e799e(0x24b)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this['dataPathGlobal'],'clientVer':qqVersionConfigInfo[_0x1e799e(0x220)],'hostName':hostname});}[_0x86a825(0x28b)](_0x34428b,_0x10208e){const _0x42667e=_0x86a825,_0x35caa2={'UPwcG':function(_0x21e668,_0x3e7d7b){return _0x21e668(_0x3e7d7b);},'QGQWm':function(_0x553d5d,_0x4337a1,_0x1f0537,_0x4d1a1b){return _0x553d5d(_0x4337a1,_0x1f0537,_0x4d1a1b);},'tvcWm':function(_0x289e8d,_0x214ea7){return _0x289e8d+_0x214ea7;},'xNYYZ':_0x42667e(0x1f5)};return new Promise((_0x18d1d2,_0x3cc0b3)=>{const _0x53f567=_0x42667e,_0x3d435b={'SNYTJ':function(_0x4dc466,_0x4138e9){return _0x4dc466===_0x4138e9;},'OUxEd':function(_0x49e491,_0x5129b0){return _0x35caa2['UPwcG'](_0x49e491,_0x5129b0);}},_0x3c59e1=_0x35caa2[_0x53f567(0x1f8)](genSessionConfig,_0x34428b,_0x10208e,this[_0x53f567(0x226)]),_0x5b9566=new SessionListener();_0x5b9566[_0x53f567(0x21d)]=_0x4caa28=>{const _0x537085=_0x53f567;if(_0x3d435b[_0x537085(0x229)](_0x4caa28,0x0))return _0x3d435b[_0x537085(0x215)](_0x18d1d2,0x0);_0x3d435b[_0x537085(0x215)](_0x3cc0b3,_0x4caa28);},this[_0x53f567(0x239)]['init'](_0x3c59e1,new _0x106365[(_0x53f567(0x201))](new DependsAdapter()),new _0x106365[(_0x53f567(0x25c))](new DispatcherAdapter()),new _0x106365[(_0x53f567(0x259))](_0x5b9566));try{this['session'][_0x53f567(0x25f)](0x0);}catch(_0x2afe2e){try{this[_0x53f567(0x239)]['startNT']();}catch(_0xbaf18c){_0x35caa2[_0x53f567(0x244)](_0x3cc0b3,_0x35caa2[_0x53f567(0x20b)](_0x35caa2[_0x53f567(0x218)],_0xbaf18c));}}});}[_0x86a825(0x227)](){const _0x5c09bb=_0x86a825,_0x17042e={'Qhjuo':function(_0x3d455c,_0x1d5e57){return _0x3d455c+_0x1d5e57;},'HkYgC':function(_0x2c9a0f,_0x2e9e20){return _0x2c9a0f(_0x2e9e20);},'VbnXv':function(_0x5c8887,_0x2682d7){return _0x5c8887+_0x2682d7;},'DtEUQ':_0x5c09bb(0x29b),'Nhogh':function(_0x5b8c16,_0x49bbd0){return _0x5b8c16===_0x49bbd0;},'rRnrN':function(_0x145505,_0x38ea38){return _0x145505/_0x38ea38;}},_0x240db1=new MsgListener();_0x240db1['onLineDev']=_0x1794b5=>{const _0x2040c0=_0x5c09bb,_0x441e1e={'PGNEi':function(_0x4b9f01,_0x4eb8d2){return _0x4b9f01(_0x4eb8d2);},'GAOJZ':function(_0x379cd6,_0x137ea6){const _0x11278b=_0xcfb7;return _0x17042e[_0x11278b(0x287)](_0x379cd6,_0x137ea6);},'JZYBu':_0x2040c0(0x243)};_0x1794b5[_0x2040c0(0x262)](_0x3604d7=>{const _0x36aa63=_0x2040c0;_0x3604d7['clientType']===0x2&&_0x441e1e[_0x36aa63(0x273)](log,_0x441e1e[_0x36aa63(0x256)](_0x441e1e[_0x36aa63(0x2a4)],_0x3604d7[_0x36aa63(0x258)])+')\x20在线状态变更');});},_0x240db1['onKickedOffLine']=_0x1dfa7c=>{const _0x4f091b=_0x5c09bb;_0x17042e[_0x4f091b(0x250)](log,_0x17042e[_0x4f091b(0x287)](_0x17042e[_0x4f091b(0x1fc)](_0x17042e[_0x4f091b(0x287)](_0x17042e['DtEUQ'],_0x1dfa7c[_0x4f091b(0x21b)]),']\x20'),_0x1dfa7c[_0x4f091b(0x28c)]));},_0x240db1[_0x5c09bb(0x1f2)]=_0xc00ee5=>{const _0x546193=_0x5c09bb;stat[_0x546193(0x260)]+=0x1,_0xc00ee5[_0x546193(0x262)](_0x2eb380=>{const _0x16ea92=_0x546193;_0x17042e['Nhogh'](_0x2eb380[_0x16ea92(0x27d)],'0')?dbUtil[_0x16ea92(0x272)](_0x2eb380)[_0x16ea92(0x26e)]()['catch']():dbUtil['getMsgByLongId'](_0x2eb380['msgId'])[_0x16ea92(0x26e)](_0x3d0b07=>{const _0x35d9b9=_0x16ea92;_0x3d0b07&&(_0x3d0b07[_0x35d9b9(0x27d)]=_0x2eb380[_0x35d9b9(0x27d)],dbUtil[_0x35d9b9(0x20d)](_0x3d0b07)[_0x35d9b9(0x26e)]());});});},_0x240db1[_0x5c09bb(0x26b)]=_0x24e20c=>{const _0x165dbb=_0x5c09bb;stat[_0x165dbb(0x225)]+=0x1,stat[_0x165dbb(0x200)]+=0x1,stat[_0x165dbb(0x1f9)]=Math[_0x165dbb(0x22e)](Date[_0x165dbb(0x208)]()/0x3e8);},_0x240db1['onRecvMsg']=_0x5dda71=>{const _0x21decd=_0x5c09bb;stat[_0x21decd(0x260)]+=0x1,stat['message_received']+=_0x5dda71[_0x21decd(0x264)],stat[_0x21decd(0x1f9)]=Math[_0x21decd(0x22e)](_0x17042e[_0x21decd(0x221)](Date['now'](),0x3e8));},_0x240db1['onRecvSysMsg']=(..._0x44ee61)=>{const _0x4b5ce4=_0x5c09bb;stat[_0x4b5ce4(0x260)]+=0x1;},this[_0x5c09bb(0x2a6)](_0x240db1);const _0x26d5e0=new BuddyListener();_0x26d5e0[_0x5c09bb(0x22c)]=_0x4fcde2=>{const _0x5da6da=_0x5c09bb;for(const _0xfadd75 of _0x4fcde2){for(const _0x310046 of _0xfadd75[_0x5da6da(0x1fd)]){const _0xd9e9cf=friends[_0x5da6da(0x219)](_0x310046[_0x5da6da(0x299)]);uid2UinMap[_0x310046['uid']]=_0x310046[_0x5da6da(0x235)],_0xd9e9cf?Object[_0x5da6da(0x2a1)](_0xd9e9cf,_0x310046):friends['set'](_0x310046[_0x5da6da(0x299)],_0x310046);}}},this[_0x5c09bb(0x2a6)](_0x26d5e0),this[_0x5c09bb(0x239)][_0x5c09bb(0x21e)]()[_0x5c09bb(0x27e)](!![])[_0x5c09bb(0x26e)](_0x4d48d9=>{});const _0x46ce94=new ProfileListener();_0x46ce94[_0x5c09bb(0x25d)]=_0x32c49e=>{const _0x47c19e=_0x5c09bb;_0x17042e[_0x47c19e(0x20c)](_0x32c49e[_0x47c19e(0x299)],selfInfo[_0x47c19e(0x299)])&&Object[_0x47c19e(0x2a1)](selfInfo,_0x32c49e);},_0x46ce94[_0x5c09bb(0x27a)]=_0x1979b8=>{},this[_0x5c09bb(0x2a6)](_0x46ce94);const _0x140c26=new GroupListener();_0x140c26['onGroupListUpdate']=(_0x70f333,_0x358251)=>{const _0xc7ca06=_0x5c09bb;_0x358251[_0xc7ca06(0x262)](_0x59c30d=>{const _0x5d74ea=_0xc7ca06,_0x474685=groups['get'](_0x59c30d['groupCode']);if(_0x474685)Object['assign'](_0x474685,_0x59c30d);else{groups[_0x5d74ea(0x288)](_0x59c30d['groupCode'],_0x59c30d);const _0x4b223a=this['session']['getGroupService']()[_0x5d74ea(0x29e)](_0x59c30d[_0x5d74ea(0x28f)],_0x5d74ea(0x23c));this[_0x5d74ea(0x239)][_0x5d74ea(0x1fe)]()[_0x5d74ea(0x1f0)](_0x4b223a,undefined,0xbb8)[_0x5d74ea(0x26e)](_0x39acdf=>{});}});},_0x140c26['onMemberListChange']=_0x5d40e8=>{const _0x4324c5=_0x5c09bb,_0x59dd5c=_0x5d40e8[_0x4324c5(0x1fb)][_0x4324c5(0x284)]('_')[0x0];if(groupMembers[_0x4324c5(0x223)](_0x59dd5c)){const _0x713e8b=groupMembers[_0x4324c5(0x219)](_0x59dd5c);_0x5d40e8[_0x4324c5(0x2a7)][_0x4324c5(0x240)]((_0x1f9e56,_0x9a22a4)=>{const _0x49ce36=_0x4324c5,_0x1aa678=_0x713e8b[_0x49ce36(0x219)](_0x9a22a4);_0x1aa678?Object[_0x49ce36(0x2a1)](_0x1aa678,_0x1f9e56):_0x713e8b[_0x49ce36(0x288)](_0x9a22a4,_0x1f9e56);});}else groupMembers[_0x4324c5(0x288)](_0x59dd5c,_0x5d40e8['infos']);},_0x140c26['onMemberInfoChange']=(_0x3361e1,_0x28043a,_0x30ded5)=>{const _0x58ed69=_0x5c09bb;_0x30ded5[_0x58ed69(0x240)]((_0x7040b6,_0x5c06de)=>{uid2UinMap[_0x5c06de]=_0x7040b6['uin'];});const _0x1b22e4=groupMembers[_0x58ed69(0x219)](_0x3361e1);_0x1b22e4?_0x30ded5['forEach']((_0x414acc,_0x2c7e83)=>{const _0x1b492d=_0x58ed69,_0x271001=_0x1b22e4[_0x1b492d(0x219)](_0x2c7e83);_0x271001?Object['assign'](_0x271001,_0x414acc):_0x1b22e4[_0x1b492d(0x288)](_0x2c7e83,_0x414acc);}):groupMembers['set'](_0x3361e1,_0x30ded5);},this['addListener'](_0x140c26);}[_0x86a825(0x2a6)](_0x3b3aad){const _0x3ddc88=_0x86a825,_0x2f15fd={'aAraF':_0x3ddc88(0x2a3),'WczpY':'ProfileListener'};_0x3b3aad=new Proxy(_0x3b3aad,this[_0x3ddc88(0x279)]);switch(_0x3b3aad[_0x3ddc88(0x214)][_0x3ddc88(0x25e)]){case _0x2f15fd['aAraF']:{return this[_0x3ddc88(0x239)][_0x3ddc88(0x21e)]()[_0x3ddc88(0x281)](new _0x106365[(_0x3ddc88(0x22a))](_0x3b3aad));}case _0x3ddc88(0x2a8):{return this[_0x3ddc88(0x239)][_0x3ddc88(0x1fe)]()['addKernelGroupListener'](new _0x106365[(_0x3ddc88(0x266))](_0x3b3aad));}case'MsgListener':{return this[_0x3ddc88(0x239)][_0x3ddc88(0x271)]()[_0x3ddc88(0x26d)](new _0x106365[(_0x3ddc88(0x24e))](_0x3b3aad));}case _0x2f15fd[_0x3ddc88(0x20f)]:{return this[_0x3ddc88(0x239)]['getProfileService']()[_0x3ddc88(0x267)](new _0x106365[(_0x3ddc88(0x283))](_0x3b3aad));}default:return-0x1;}}[_0x86a825(0x293)](_0x2abf0c){const _0x35596d=_0x86a825;this[_0x35596d(0x238)][_0x35596d(0x249)](_0x2abf0c);}async[_0x86a825(0x2a0)](_0x47e494){const _0x5482f0=_0x86a825,_0x31e43a={'nfGyD':function(_0x5d658b,_0x32ff1b){return _0x5d658b!==_0x32ff1b;},'Nopvt':function(_0x36f3d8,_0x11a6a5){return _0x36f3d8(_0x11a6a5);},'FGZDz':_0x5482f0(0x230)},_0x594cc3=await this['loginService'][_0x5482f0(0x20a)]();if(_0x31e43a[_0x5482f0(0x20e)](_0x594cc3['result'],0x0))throw new Error(_0x5482f0(0x285));const _0x133417=_0x594cc3[_0x5482f0(0x295)][_0x5482f0(0x27c)](_0x496d79=>_0x496d79[_0x5482f0(0x235)]===_0x47e494);if(!_0x133417||!_0x133417?.[_0x5482f0(0x210)])throw new Error(_0x47e494+_0x5482f0(0x29c));await _0x31e43a['Nopvt'](sleep,0x3e8);const _0x272d2a=await this[_0x5482f0(0x286)][_0x5482f0(0x1f3)](_0x47e494);if(!_0x272d2a[_0x5482f0(0x22f)])throw new Error(_0x31e43a['FGZDz']+_0x272d2a[_0x5482f0(0x222)][_0x5482f0(0x231)]);return _0x272d2a;}async['qrLogin'](){const _0x1169dd=_0x86a825,_0x34b23f={'WOPwc':function(_0x3544e5,_0x400b47){return _0x3544e5(_0x400b47);},'QJSJQ':_0x1169dd(0x278),'xwlPl':_0x1169dd(0x27b),'UvZRw':function(_0x540179,_0x407c60,_0x99157e){return _0x540179(_0x407c60,_0x99157e);}};let _0x4b0e14=![];return new Promise((_0x3923b0,_0x1dbc04)=>{const _0x2f2b35=_0x1169dd,_0x22f06d={'hmiVK':_0x34b23f[_0x2f2b35(0x28e)],'qXkCQ':_0x2f2b35(0x241),'xlsJM':function(_0x33e5b3,_0x165913){return _0x33e5b3(_0x165913);}};_0x34b23f[_0x2f2b35(0x263)](setTimeout,()=>{const _0xff2d9f=_0x2f2b35;!_0x4b0e14&&_0x34b23f[_0xff2d9f(0x291)](_0x1dbc04,_0x34b23f[_0xff2d9f(0x270)]);},0x2710),this[_0x2f2b35(0x29a)][_0x2f2b35(0x2a9)]=_0x3474d4=>{const _0xdc175d=_0x2f2b35;_0x4b0e14=!![];const _0x5c1898=_0x3474d4[_0xdc175d(0x228)][_0xdc175d(0x284)](_0x22f06d[_0xdc175d(0x265)])[0x1],_0x38eff6=Buffer[_0xdc175d(0x28d)](_0x5c1898,_0x22f06d['qXkCQ']);_0x22f06d[_0xdc175d(0x212)](_0x3923b0,{'url':_0x3474d4[_0xdc175d(0x24a)],'base64':_0x3474d4[_0xdc175d(0x228)],'buffer':_0x38eff6});},this['loginService'][_0x2f2b35(0x261)]();});}async[_0x86a825(0x216)](_0x15f405,_0xb0b343,_0x761833,_0xbedc72,_0xe7533b){const _0xf6db75=_0x86a825,_0x5c4b14={'ybWsp':_0xf6db75(0x246),'CjIIc':_0xf6db75(0x23b),'TNAHa':function(_0x29086a,_0x2f085c){return _0x29086a&&_0x2f085c;},'sfpbG':function(_0x123dc8,_0xeb711a){return _0x123dc8||_0xeb711a;},'jZXzl':function(_0x1a3dd6,_0x3ee823){return _0x1a3dd6||_0x3ee823;},'xFSVr':function(_0x34ab89,_0x47bff4){return _0x34ab89||_0x47bff4;},'xaZsL':_0xf6db75(0x1f7),'JbVoJ':_0xf6db75(0x29f)},_0x168513=_0x9021ea[_0xf6db75(0x237)](_0x5c4b14[_0xf6db75(0x242)])[_0xf6db75(0x27f)](_0xb0b343)['digest'](_0x5c4b14[_0xf6db75(0x204)]),_0x82513e={'uin':_0x15f405,'passwordMd5':_0x168513,'step':_0x5c4b14[_0xf6db75(0x21a)](_0x761833,_0xbedc72)&&_0xe7533b?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x5c4b14[_0xf6db75(0x25b)](_0x761833,''),'proofWaterRand':_0x5c4b14[_0xf6db75(0x1f4)](_0xbedc72,''),'proofWaterSid':_0x5c4b14[_0xf6db75(0x298)](_0xe7533b,'')};await this[_0xf6db75(0x286)][_0xf6db75(0x20a)](),await sleep(0x3e8);const _0x268cd6=await this['loginService'][_0xf6db75(0x216)](_0x82513e);switch(_0x268cd6['result']){case'0':{break;}case _0x5c4b14['xaZsL']:{break;}case'4':case _0x5c4b14['JbVoJ']:default:}}}export const napCatCore=new NapCatCore(); \ No newline at end of file diff --git a/src/core.lib/src/data.d.ts b/src/core.lib/src/data.d.ts index 16455963..5c7381e4 100644 --- a/src/core.lib/src/data.d.ts +++ b/src/core.lib/src/data.d.ts @@ -1,7 +1,14 @@ import { type Friend, type FriendRequest, type Group, type GroupMember, GroupNotify, type SelfInfo } from './entities'; +import { WebApiGroupMember } from '@/core/apis'; export declare const Credentials: { Skey: string; CreatTime: number; + PskeyData: Map; + PskeyTime: Map; +}; +export declare const WebGroupData: { + GroupData: Map; + GroupTime: Map; }; export declare const selfInfo: SelfInfo; export declare const groups: Map; diff --git a/src/core.lib/src/data.js b/src/core.lib/src/data.js index 31a06581..da8794a9 100644 --- a/src/core.lib/src/data.js +++ b/src/core.lib/src/data.js @@ -1 +1 @@ -function _0x2473(){const _0x18c21f=['uin','3783375JlUlKS','length','find','get','7411248QXcWKo','2291634NYKsUf','set','38549TfOUBn','19344okpWwX','getGroupMembers','68190hpEPBl','getGroups','NapCat未能正常启动,请检查日志查看错误','40SaALam','fiOFQ','values','PeFnS','1005429jfwwtr','8LORkhL','toString','delete'];_0x2473=function(){return _0x18c21f;};return _0x2473();}const _0x4cb42f=_0x219f;(function(_0x2e71de,_0x4dc2a4){const _0x46e0eb=_0x219f,_0x38eeca=_0x2e71de();while(!![]){try{const _0x3c64c7=-parseInt(_0x46e0eb(0xec))/0x1+parseInt(_0x46e0eb(0xd8))/0x2+-parseInt(_0x46e0eb(0xdf))/0x3*(-parseInt(_0x46e0eb(0xe0))/0x4)+-parseInt(_0x46e0eb(0xe4))/0x5+-parseInt(_0x46e0eb(0xe9))/0x6+parseInt(_0x46e0eb(0xeb))/0x7*(parseInt(_0x46e0eb(0xdb))/0x8)+parseInt(_0x46e0eb(0xe8))/0x9;if(_0x3c64c7===_0x4dc2a4)break;else _0x38eeca['push'](_0x38eeca['shift']());}catch(_0x437ef4){_0x38eeca['push'](_0x38eeca['shift']());}}}(_0x2473,0x61076));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};function _0x219f(_0x3a9fec,_0x3316d5){const _0x2473a9=_0x2473();return _0x219f=function(_0x219f64,_0x27fbc1){_0x219f64=_0x219f64-0xd8;let _0x42ebc1=_0x2473a9[_0x219f64];return _0x42ebc1;},_0x219f(_0x3a9fec,_0x3316d5);}export const groups=new Map();export function deleteGroup(_0x59213a){const _0x551fee=_0x219f;groups['delete'](_0x59213a),groupMembers[_0x551fee(0xe2)](_0x59213a);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x4cb42f(0xda)};export async function getFriend(_0x27b08d){const _0x21b8e0=_0x4cb42f,_0x478357={'BpFkA':function(_0x27365c,_0x1a1847){return _0x27365c(_0x1a1847);}};_0x27b08d=_0x27b08d['toString']();if(_0x478357['BpFkA'](isNumeric,_0x27b08d)){const _0x22184b=Array['from'](friends['values']());return _0x22184b[_0x21b8e0(0xe6)](_0xfae4d8=>_0xfae4d8['uin']===_0x27b08d);}else return friends[_0x21b8e0(0xe7)](_0x27b08d);}export async function getGroup(_0x32685c){const _0x263e7a=_0x4cb42f;let _0x3539b5=groups['get'](_0x32685c['toString']());if(!_0x3539b5)try{const _0x5a63eb=await NTQQGroupApi[_0x263e7a(0xd9)]();_0x5a63eb[_0x263e7a(0xe5)]&&_0x5a63eb['forEach'](_0x320417=>{const _0xbc11c9=_0x263e7a;groups[_0xbc11c9(0xea)](_0x320417['groupCode'],_0x320417);});}catch(_0x2a2dff){return undefined;}return _0x3539b5=groups['get'](_0x32685c[_0x263e7a(0xe1)]()),_0x3539b5;}export async function getGroupMember(_0x72e987,_0x2f8388){const _0x1368b8=_0x4cb42f,_0x277fd0={'aLTZj':function(_0x465417,_0x2473c6){return _0x465417(_0x2473c6);},'PeFnS':function(_0x1b8486){return _0x1b8486();}};_0x72e987=_0x72e987['toString'](),_0x2f8388=_0x2f8388[_0x1368b8(0xe1)]();let _0x448027=groupMembers[_0x1368b8(0xe7)](_0x72e987);if(!_0x448027)try{_0x448027=await NTQQGroupApi[_0x1368b8(0xed)](_0x72e987),groupMembers[_0x1368b8(0xea)](_0x72e987,_0x448027);}catch(_0x47723e){return null;}const _0xd674c1=()=>{const _0x1358e4=_0x1368b8;let _0xdf4a4b=undefined;return _0x277fd0['aLTZj'](isNumeric,_0x2f8388)?_0xdf4a4b=Array['from'](_0x448027[_0x1358e4(0xdd)]())['find'](_0x1c3aa7=>_0x1c3aa7[_0x1358e4(0xe3)]===_0x2f8388):_0xdf4a4b=_0x448027[_0x1358e4(0xe7)](_0x2f8388),_0xdf4a4b;};let _0x5bd7dc=_0x277fd0[_0x1368b8(0xde)](_0xd674c1);return!_0x5bd7dc&&(_0x448027=await NTQQGroupApi['getGroupMembers'](_0x72e987),_0x5bd7dc=_0x277fd0[_0x1368b8(0xde)](_0xd674c1)),_0x5bd7dc;}export const uid2UinMap={};export function getUidByUin(_0x34b6de){const _0x2247aa=_0x4cb42f,_0x3d8b6b={'fiOFQ':function(_0x149107,_0x417269){return _0x149107===_0x417269;}};for(const _0x5e5c07 in uid2UinMap){if(_0x3d8b6b[_0x2247aa(0xdc)](uid2UinMap[_0x5e5c07],_0x34b6de))return _0x5e5c07;}}export const tempGroupCodeMap={};export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0}; \ No newline at end of file +const _0x9f0ff2=_0x4ec0;(function(_0x3c0acd,_0xd59fb){const _0xc104c0=_0x4ec0,_0x412fff=_0x3c0acd();while(!![]){try{const _0x83525a=parseInt(_0xc104c0(0xc9))/0x1+-parseInt(_0xc104c0(0xc8))/0x2+-parseInt(_0xc104c0(0xcf))/0x3+parseInt(_0xc104c0(0xd7))/0x4*(-parseInt(_0xc104c0(0xc6))/0x5)+parseInt(_0xc104c0(0xd1))/0x6+parseInt(_0xc104c0(0xd2))/0x7+-parseInt(_0xc104c0(0xcb))/0x8*(-parseInt(_0xc104c0(0xca))/0x9);if(_0x83525a===_0xd59fb)break;else _0x412fff['push'](_0x412fff['shift']());}catch(_0x5af5f0){_0x412fff['push'](_0x412fff['shift']());}}}(_0x1aae,0x7c5a8));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':!![]};export const groups=new Map();export function deleteGroup(_0x5cfd25){const _0x2b9857=_0x4ec0;groups['delete'](_0x5cfd25),groupMembers[_0x2b9857(0xd3)](_0x5cfd25);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};function _0x1aae(){const _0x1c98bc=['mdqby','values','2147295deXEWW','uin','2209500huxJhw','5933046YVFHms','delete','set','Baics','NapCat未能正常启动,请检查日志查看错误','1784fTeWEc','find','from','getGroupMembers','10000ppOjOG','toString','1375488EEVjqJ','1008952WwqzCx','9XleUNN','4640648UjEUbC','get'];_0x1aae=function(){return _0x1c98bc;};return _0x1aae();}export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x9f0ff2(0xd6)};export async function getFriend(_0x5953bd){const _0xa72fc8=_0x9f0ff2,_0x33791a={'Baics':function(_0x4c59fd,_0x3fc8f7){return _0x4c59fd(_0x3fc8f7);}};_0x5953bd=_0x5953bd[_0xa72fc8(0xc7)]();if(_0x33791a[_0xa72fc8(0xd5)](isNumeric,_0x5953bd)){const _0x553678=Array[_0xa72fc8(0xc4)](friends['values']());return _0x553678[_0xa72fc8(0xc3)](_0x22cd62=>_0x22cd62[_0xa72fc8(0xd0)]===_0x5953bd);}else return friends['get'](_0x5953bd);}export async function getGroup(_0x466837){const _0x4f81d7=_0x9f0ff2;let _0x11e408=groups['get'](_0x466837[_0x4f81d7(0xc7)]());if(!_0x11e408)try{const _0x512f20=await NTQQGroupApi['getGroups']();_0x512f20['length']&&_0x512f20['forEach'](_0x13be31=>{const _0x550b2c=_0x4f81d7;groups[_0x550b2c(0xd4)](_0x13be31['groupCode'],_0x13be31);});}catch(_0x5394e9){return undefined;}return _0x11e408=groups[_0x4f81d7(0xcc)](_0x466837[_0x4f81d7(0xc7)]()),_0x11e408;}export async function getGroupMember(_0x206668,_0x30d4cf){const _0x3a28e9=_0x9f0ff2,_0x13f41e={'RKLdy':function(_0x428d10,_0x45a7bf){return _0x428d10(_0x45a7bf);}};_0x206668=_0x206668[_0x3a28e9(0xc7)](),_0x30d4cf=_0x30d4cf[_0x3a28e9(0xc7)]();let _0x4790a4=groupMembers[_0x3a28e9(0xcc)](_0x206668);if(!_0x4790a4)try{_0x4790a4=await NTQQGroupApi['getGroupMembers'](_0x206668),groupMembers['set'](_0x206668,_0x4790a4);}catch(_0x15c312){return null;}const _0x1cd63d=()=>{const _0x54ae91=_0x3a28e9;let _0x5928cb=undefined;return _0x13f41e['RKLdy'](isNumeric,_0x30d4cf)?_0x5928cb=Array['from'](_0x4790a4[_0x54ae91(0xce)]())['find'](_0x4ff6ad=>_0x4ff6ad[_0x54ae91(0xd0)]===_0x30d4cf):_0x5928cb=_0x4790a4['get'](_0x30d4cf),_0x5928cb;};let _0x266268=_0x1cd63d();return!_0x266268&&(_0x4790a4=await NTQQGroupApi[_0x3a28e9(0xc5)](_0x206668),_0x266268=_0x1cd63d()),_0x266268;}export const uid2UinMap={};export function getUidByUin(_0x150d80){const _0x24b4b3=_0x9f0ff2,_0xda4016={'mdqby':function(_0x1cc6fd,_0x34ab7f){return _0x1cc6fd===_0x34ab7f;}};for(const _0x2f3433 in uid2UinMap){if(_0xda4016[_0x24b4b3(0xcd)](uid2UinMap[_0x2f3433],_0x150d80))return _0x2f3433;}}function _0x4ec0(_0x560a3c,_0x416607){const _0x1aae03=_0x1aae();return _0x4ec0=function(_0x4ec0dd,_0x506daa){_0x4ec0dd=_0x4ec0dd-0xc3;let _0x16e48f=_0x1aae03[_0x4ec0dd];return _0x16e48f;},_0x4ec0(_0x560a3c,_0x416607);}export const tempGroupCodeMap={};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 cebccfb1..4a782b8e 100644 --- a/src/core.lib/src/entities/cache.js +++ b/src/core.lib/src/entities/cache.js @@ -1 +1 @@ -function _0xb790(_0x1d7a46,_0x78c48d){var _0x54178c=_0x5417();return _0xb790=function(_0xb7901c,_0x1a8c60){_0xb7901c=_0xb7901c-0x113;var _0x461f28=_0x54178c[_0xb7901c];return _0x461f28;},_0xb790(_0x1d7a46,_0x78c48d);}(function(_0x5ee3fc,_0x301352){var _0x1c92be=_0xb790,_0x54b9e3=_0x5ee3fc();while(!![]){try{var _0x5c06b3=-parseInt(_0x1c92be(0x122))/0x1*(-parseInt(_0x1c92be(0x11a))/0x2)+-parseInt(_0x1c92be(0x116))/0x3*(parseInt(_0x1c92be(0x126))/0x4)+-parseInt(_0x1c92be(0x119))/0x5+-parseInt(_0x1c92be(0x123))/0x6*(-parseInt(_0x1c92be(0x114))/0x7)+parseInt(_0x1c92be(0x11c))/0x8+-parseInt(_0x1c92be(0x113))/0x9*(-parseInt(_0x1c92be(0x124))/0xa)+parseInt(_0x1c92be(0x11f))/0xb*(-parseInt(_0x1c92be(0x117))/0xc);if(_0x5c06b3===_0x301352)break;else _0x54b9e3['push'](_0x54b9e3['shift']());}catch(_0x44b08d){_0x54b9e3['push'](_0x54b9e3['shift']());}}}(_0x5417,0x4d253));export var CacheFileType;(function(_0x47b42f){var _0x5b1841=_0xb790,_0x4c58ad={'MjjMg':_0x5b1841(0x127),'TApWt':_0x5b1841(0x11d),'kFhYU':_0x5b1841(0x121),'psbuV':_0x5b1841(0x118),'evwWp':_0x5b1841(0x11b)};_0x47b42f[_0x47b42f[_0x5b1841(0x127)]=0x0]=_0x4c58ad['MjjMg'],_0x47b42f[_0x47b42f[_0x4c58ad[_0x5b1841(0x120)]]=0x1]=_0x4c58ad[_0x5b1841(0x120)],_0x47b42f[_0x47b42f[_0x4c58ad[_0x5b1841(0x125)]]=0x2]=_0x4c58ad[_0x5b1841(0x125)],_0x47b42f[_0x47b42f[_0x4c58ad[_0x5b1841(0x11e)]]=0x3]=_0x4c58ad[_0x5b1841(0x11e)],_0x47b42f[_0x47b42f[_0x4c58ad[_0x5b1841(0x115)]]=0x4]=_0x4c58ad[_0x5b1841(0x115)];}(CacheFileType||(CacheFileType={})));function _0x5417(){var _0x576b99=['3131220NqBWIp','DOCUMENT','2411965XLWaRE','122MQINLg','OTHER','3107216XGToQO','VIDEO','psbuV','11wqXaJy','TApWt','AUDIO','6467exvmlg','162jfVGGF','382890MgLHqe','kFhYU','12RfRxxt','IMAGE','27fItuIN','43785AJGBQC','evwWp','7326ofsmmp'];_0x5417=function(){return _0x576b99;};return _0x5417();} \ No newline at end of file +function _0x47d4(_0x3b8e36,_0x574a8c){var _0x10e1a1=_0x10e1();return _0x47d4=function(_0x47d499,_0x12ce60){_0x47d499=_0x47d499-0x1e6;var _0x21a3c9=_0x10e1a1[_0x47d499];return _0x21a3c9;},_0x47d4(_0x3b8e36,_0x574a8c);}function _0x10e1(){var _0x513236=['1479005TOLDCw','oVkBK','OTHER','3201650miZmlw','7phygqx','15zLmPNC','FGDuw','3|0|2|1|4','4074590BoFYUA','split','BCdRn','103048ZhAtgi','69248NwFMSY','IMAGE','AUDIO','UDbhI','DOCUMENT','6BTUyaT','prOkc','90868LpMvkt','1307070tuVzdl','322AdJQcb','tWGUg'];_0x10e1=function(){return _0x513236;};return _0x10e1();}(function(_0x3cf626,_0x122dd1){var _0x3aee9a=_0x47d4,_0x3c0d3c=_0x3cf626();while(!![]){try{var _0x1daf93=parseInt(_0x3aee9a(0x1f9))/0x1*(parseInt(_0x3aee9a(0x1f1))/0x2)+-parseInt(_0x3aee9a(0x1fa))/0x3*(parseInt(_0x3aee9a(0x1e9))/0x4)+-parseInt(_0x3aee9a(0x1f8))/0x5*(parseInt(_0x3aee9a(0x1ef))/0x6)+-parseInt(_0x3aee9a(0x1f3))/0x7*(-parseInt(_0x3aee9a(0x1ea))/0x8)+parseInt(_0x3aee9a(0x1f2))/0x9+parseInt(_0x3aee9a(0x1e6))/0xa+-parseInt(_0x3aee9a(0x1f5))/0xb;if(_0x1daf93===_0x122dd1)break;else _0x3c0d3c['push'](_0x3c0d3c['shift']());}catch(_0x165a78){_0x3c0d3c['push'](_0x3c0d3c['shift']());}}}(_0x10e1,0x592fc));export var CacheFileType;(function(_0xb6f3c1){var _0x23d935=_0x47d4,_0x4e7d2e={'tWGUg':_0x23d935(0x1fc),'prOkc':'VIDEO','BCdRn':_0x23d935(0x1ee),'UDbhI':'AUDIO','FGDuw':_0x23d935(0x1eb),'oVkBK':'OTHER'},_0x37ce6d=_0x4e7d2e[_0x23d935(0x1f4)][_0x23d935(0x1e7)]('|'),_0x116c8e=0x0;while(!![]){switch(_0x37ce6d[_0x116c8e++]){case'0':_0xb6f3c1[_0xb6f3c1[_0x4e7d2e[_0x23d935(0x1f0)]]=0x1]=_0x4e7d2e[_0x23d935(0x1f0)];continue;case'1':_0xb6f3c1[_0xb6f3c1[_0x4e7d2e[_0x23d935(0x1e8)]]=0x3]=_0x23d935(0x1ee);continue;case'2':_0xb6f3c1[_0xb6f3c1[_0x23d935(0x1ec)]=0x2]=_0x4e7d2e[_0x23d935(0x1ed)];continue;case'3':_0xb6f3c1[_0xb6f3c1[_0x4e7d2e['FGDuw']]=0x0]=_0x4e7d2e[_0x23d935(0x1fb)];continue;case'4':_0xb6f3c1[_0xb6f3c1[_0x23d935(0x1f7)]=0x4]=_0x4e7d2e[_0x23d935(0x1f6)];continue;}break;}}(CacheFileType||(CacheFileType={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/constructor.js b/src/core.lib/src/entities/constructor.js index a3da9007..e04dde82 100644 --- a/src/core.lib/src/entities/constructor.js +++ b/src/core.lib/src/entities/constructor.js @@ -1 +1 @@ -const _0xb11d16=_0x640e;(function(_0x113280,_0x58a337){const _0x5631de=_0x640e,_0x288134=_0x113280();while(!![]){try{const _0x27fbce=parseInt(_0x5631de(0x1f7))/0x1*(parseInt(_0x5631de(0x1f0))/0x2)+parseInt(_0x5631de(0x1fe))/0x3*(parseInt(_0x5631de(0x1f1))/0x4)+parseInt(_0x5631de(0x1c7))/0x5*(-parseInt(_0x5631de(0x1ba))/0x6)+parseInt(_0x5631de(0x1e4))/0x7+-parseInt(_0x5631de(0x1e6))/0x8*(parseInt(_0x5631de(0x1dc))/0x9)+parseInt(_0x5631de(0x1b5))/0xa+parseInt(_0x5631de(0x1e5))/0xb;if(_0x27fbce===_0x58a337)break;else _0x288134['push'](_0x288134['shift']());}catch(_0x591691){_0x288134['push'](_0x288134['shift']());}}}(_0x5245,0x8fd40));function _0x5245(){const _0x5ad301=['PNAdv','MARKDOWN','stat','9Fzivnx','zQgpr','_0.png','AUadT','MFACE','video','eBnjZ','PuVYd','replace','cOIxk','LElhO','height','XPcGD','screenshots','pimel','1033700xUpcSA','BLtzc','unlink','ptt','size','18piXWlw','fdRqv','FACE','PMMYH','rQDRV','Thumb','jpg','stringify','文件异常,大小为0','PTT','TEXT','fQWzu','przxm','1209515NKULRI','VIDEO','toString','writeFile','REPLY','pic','width','reply','getImageSize','file','text','whjLW','Zekam','Ori','RPS','copyFile','dirname','XqYGo','gif','get','DAead','9AJtfDG','end','string','then','[商城表情]','face','BGAmf','rps','3934161RkKWbt','3602379gavydY','2528152zdwIrK','WSEqU','ARK','join','ark','FILE','mp4','uploadFile','PIC','UtwoX','10iMNFKc','177028LaeGYx','[包剪锤]','catch','markdown','UocmR','dice','101039JGxnUu','mface','sep','jTbJr'];_0x5245=function(){return _0x5ad301;};return _0x5245();}import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';function _0x640e(_0x2486eb,_0x3d5190){const _0x524539=_0x5245();return _0x640e=function(_0x640e72,_0x30ac26){_0x640e72=_0x640e72-0x1ac;let _0xad0fa7=_0x524539[_0x640e72];return _0xad0fa7;},_0x640e(_0x2486eb,_0x3d5190);}import{promises as _0x4c6e13}from'node:fs';import _0x3f3ed5 from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';export const mFaceCache=new Map();export class SendMsgElementConstructor{static[_0xb11d16(0x1d1)](_0x54a4bf){const _0x542431=_0xb11d16;return{'elementType':ElementType[_0x542431(0x1c4)],'elementId':'','textElement':{'content':_0x54a4bf,'atType':AtType['notAt'],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x4ffcfc,_0x31f487,_0x2dfc9a,_0x2c5dd4){const _0x3b6c13=_0xb11d16;return{'elementType':ElementType[_0x3b6c13(0x1c4)],'elementId':'','textElement':{'content':'@'+_0x2c5dd4,'atType':_0x2dfc9a,'atUid':_0x4ffcfc,'atTinyId':'','atNtUid':_0x31f487}};}static[_0xb11d16(0x1ce)](_0x3fc200,_0x3b7c00,_0x5acb33,_0x4faae5){const _0x474737=_0xb11d16;return{'elementType':ElementType[_0x474737(0x1cb)],'elementId':'','replyElement':{'replayMsgSeq':_0x3fc200,'replayMsgId':_0x3b7c00,'senderUin':_0x5acb33,'senderUinStr':_0x4faae5}};}static async[_0xb11d16(0x1cc)](_0x1e0f1c,_0x53e994='',_0x4bbd5d=0x0){const _0x3f4036=_0xb11d16,_0x1eed64={'rfEJf':function(_0xc79344,_0x2f8fd7){return _0xc79344===_0x2f8fd7;},'AUadT':_0x3f4036(0x1c2),'WSEqU':function(_0x5740e6,_0x21bc77,_0x305c09){return _0x5740e6(_0x21bc77,_0x305c09);},'XPcGD':'图片信息'},{md5:_0x472516,fileName:_0x2442a0,path:_0x98a04e,fileSize:_0x5c6980}=await NTQQFileApi[_0x3f4036(0x1ed)](_0x1e0f1c,ElementType[_0x3f4036(0x1ee)],_0x4bbd5d);if(_0x1eed64['rfEJf'](_0x5c6980,0x0))throw _0x1eed64[_0x3f4036(0x201)];const _0x6219af=await NTQQFileApi[_0x3f4036(0x1cf)](_0x1e0f1c),_0x51614a={'md5HexStr':_0x472516,'fileSize':_0x5c6980[_0x3f4036(0x1c9)](),'picWidth':_0x6219af?.['width'],'picHeight':_0x6219af?.[_0x3f4036(0x1b1)],'fileName':_0x2442a0,'sourcePath':_0x98a04e,'original':!![],'picType':isGIF(_0x1e0f1c)?PicType[_0x3f4036(0x1d9)]:PicType[_0x3f4036(0x1c0)],'picSubType':_0x4bbd5d,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x53e994};return _0x1eed64[_0x3f4036(0x1e7)](logDebug,_0x1eed64[_0x3f4036(0x1b2)],_0x51614a),{'elementType':ElementType[_0x3f4036(0x1ee)],'elementId':'','picElement':_0x51614a};}static async[_0xb11d16(0x1d0)](_0x455b46,_0x5e7c97=''){const _0x53b889=_0xb11d16,_0x558ca9={'PMMYH':_0x53b889(0x1c2),'LElhO':function(_0x4d0278,_0x2646de){return _0x4d0278||_0x2646de;}},{md5:_0x5aa6de,fileName:_0x210c66,path:_0x74e18e,fileSize:_0x47483d}=await NTQQFileApi[_0x53b889(0x1ed)](_0x455b46,ElementType['FILE']);if(_0x47483d===0x0)throw _0x558ca9[_0x53b889(0x1bd)];const _0x5c4203={'elementType':ElementType[_0x53b889(0x1eb)],'elementId':'','fileElement':{'fileName':_0x558ca9[_0x53b889(0x1b0)](_0x5e7c97,_0x210c66),'filePath':_0x74e18e,'fileSize':_0x47483d[_0x53b889(0x1c9)]()}};return _0x5c4203;}static async[_0xb11d16(0x203)](_0x2f046d,_0x1bcbac='',_0x4ab8d9=''){const _0xf8a337=_0xb11d16,_0x9e9dd7={'UtwoX':function(_0x2bf161,_0x3b74c1,_0x181971){return _0x2bf161(_0x3b74c1,_0x181971);},'Zekam':'获取视频封面失败,使用默认封面','fQWzu':function(_0x3d08b6,_0x1f930e){return _0x3d08b6(_0x1f930e);},'PuVYd':_0xf8a337(0x1dd),'przxm':'error','kEMtR':function(_0x557625,_0x290881){return _0x557625+_0x290881;},'cOIxk':function(_0x21aa73,_0x228d4e){return _0x21aa73===_0x228d4e;},'whjLW':_0xf8a337(0x1c2),'pimel':function(_0x94aec2,_0x4b6a48){return _0x94aec2(_0x4b6a48);},'tloyw':'path','fdRqv':'视频信息','UocmR':function(_0xaf0aa8,_0x3fabac){return _0xaf0aa8(_0x3fabac);},'PFaeg':function(_0x1d78ec,_0x1dba65){return _0x1d78ec||_0x1dba65;}},{fileName:_0x5a1dc1,path:_0x1b9569,fileSize:_0x5a9a9a,md5:_0x282cd9}=await NTQQFileApi[_0xf8a337(0x1ed)](_0x2f046d,ElementType['VIDEO']);if(_0x9e9dd7[_0xf8a337(0x1af)](_0x5a9a9a,0x0))throw _0x9e9dd7[_0xf8a337(0x1d2)];const _0x48777e=_0x9e9dd7[_0xf8a337(0x1b4)](require,_0x9e9dd7['tloyw']);let _0x1cacfb=_0x1b9569[_0xf8a337(0x1ae)](_0x48777e[_0xf8a337(0x1f9)]+_0xf8a337(0x1d4)+_0x48777e['sep'],_0x48777e[_0xf8a337(0x1f9)]+_0xf8a337(0x1bf)+_0x48777e[_0xf8a337(0x1f9)]);_0x1cacfb=_0x48777e[_0xf8a337(0x1d7)](_0x1cacfb);let _0x403699={'width':0x780,'height':0x438,'time':0xf,'format':_0xf8a337(0x1ec),'size':_0x5a9a9a,'filePath':_0x2f046d};try{_0x403699=await _0x9e9dd7['fQWzu'](getVideoInfo,_0x1b9569),_0x9e9dd7[_0xf8a337(0x1ef)](logDebug,_0x9e9dd7[_0xf8a337(0x1bb)],_0x403699);}catch(_0x26b97f){_0x9e9dd7[_0xf8a337(0x1ef)](logError,'获取视频信息失败',_0x26b97f);}const _0x5179b2=new Promise((_0x214586,_0x5c2157)=>{const _0x4c089d=_0xf8a337,_0x187d6a={'XqYGo':function(_0x175414,_0x5535ca){const _0x2abb88=_0x640e;return _0x9e9dd7[_0x2abb88(0x1c5)](_0x175414,_0x5535ca);}},_0x9efc8b=_0x282cd9+_0x4c089d(0x200),_0x226d89=_0x48777e[_0x4c089d(0x1e9)](_0x1cacfb,_0x9efc8b);_0x3f3ed5(_0x2f046d)['on'](_0x9e9dd7[_0x4c089d(0x1ad)],()=>{})['on'](_0x9e9dd7[_0x4c089d(0x1c6)],_0x614dbc=>{const _0x39645d=_0x4c089d,_0x2d088d={'BGAmf':function(_0x5c4427,_0xe8209f){return _0x5c4427(_0xe8209f);}};_0x9e9dd7['UtwoX'](logDebug,_0x9e9dd7[_0x39645d(0x1d3)],_0x614dbc),_0x4ab8d9?_0x4c6e13[_0x39645d(0x1d6)](_0x4ab8d9,_0x226d89)['then'](()=>{const _0x291d35=_0x39645d;_0x2d088d[_0x291d35(0x1e2)](_0x214586,_0x226d89);})[_0x39645d(0x1f3)](_0x5c2157):_0x4c6e13[_0x39645d(0x1ca)](_0x226d89,defaultVideoThumb)[_0x39645d(0x1df)](()=>{const _0x3c7215=_0x39645d;_0x187d6a[_0x3c7215(0x1d8)](_0x214586,_0x226d89);})[_0x39645d(0x1f3)](_0x5c2157);})[_0x4c089d(0x1b3)]({'timestamps':[0x0],'filename':_0x9efc8b,'folder':_0x1cacfb,'size':_0x9e9dd7['kEMtR'](_0x403699['width']+'x',_0x403699['height'])})['on'](_0x9e9dd7['PuVYd'],()=>{_0x214586(_0x226d89);});}),_0x179130=new Map(),_0x435be0=await _0x5179b2,_0x2b8087=(await _0x4c6e13[_0xf8a337(0x1fd)](_0x435be0))[_0xf8a337(0x1b9)];_0x179130['set'](0x0,_0x435be0);const _0x15ac7c=await _0x9e9dd7[_0xf8a337(0x1f5)](calculateFileMD5,_0x435be0),_0x5aa8ac={'elementType':ElementType[_0xf8a337(0x1c8)],'elementId':'','videoElement':{'fileName':_0x9e9dd7['PFaeg'](_0x1bcbac,_0x5a1dc1),'filePath':_0x1b9569,'videoMd5':_0x282cd9,'thumbMd5':_0x15ac7c,'fileTime':_0x403699['time'],'thumbPath':_0x179130,'thumbSize':_0x2b8087,'thumbWidth':_0x403699[_0xf8a337(0x1cd)],'thumbHeight':_0x403699['height'],'fileSize':''+_0x5a9a9a}};return _0x5aa8ac;}static async[_0xb11d16(0x1b8)](_0xab35b7){const _0x49fa00=_0xb11d16,_0x338f5c={'DAead':function(_0x3173b1,_0x20df46){return _0x3173b1(_0x20df46);},'PNAdv':'语音转换失败,\x20请检查语音文件是否正常','zQgpr':function(_0x4e13d2,_0x5c2677){return _0x4e13d2===_0x5c2677;},'eBnjZ':function(_0x276483,_0x24934d){return _0x276483||_0x24934d;}},{converted:_0x3f6968,path:_0x469ca1,duration:_0x30224d}=await _0x338f5c[_0x49fa00(0x1db)](encodeSilk,_0xab35b7);if(!_0x469ca1)throw _0x338f5c[_0x49fa00(0x1fb)];const {md5:_0x277666,fileName:_0x216af2,path:_0x504548,fileSize:_0x238085}=await NTQQFileApi['uploadFile'](_0x469ca1,ElementType[_0x49fa00(0x1c3)]);if(_0x338f5c[_0x49fa00(0x1ff)](_0x238085,0x0))throw'文件异常,大小为0';return _0x3f6968&&_0x4c6e13[_0x49fa00(0x1b7)](_0x469ca1)[_0x49fa00(0x1df)](),{'elementType':ElementType[_0x49fa00(0x1c3)],'elementId':'','pttElement':{'fileName':_0x216af2,'filePath':_0x504548,'md5HexStr':_0x277666,'fileSize':_0x238085,'duration':_0x338f5c[_0x49fa00(0x1ac)](_0x30224d,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[_0xb11d16(0x1e1)](_0x55cc70){const _0x3061e8=_0xb11d16,_0x3bd1a2={'QJPle':function(_0x44827f,_0x425974){return _0x44827f<_0x425974;}};return{'elementType':ElementType[_0x3061e8(0x1bc)],'elementId':'','faceElement':{'faceIndex':_0x55cc70,'faceType':_0x3bd1a2['QJPle'](_0x55cc70,0xde)?FaceType['normal']:FaceType['normal2']}};}static[_0xb11d16(0x1f8)](_0x176bcb,_0xdc9f5e,_0x48451a,_0x49344b){const _0x2f1202=_0xb11d16,_0x663cdb={'smYXN':_0x2f1202(0x1e0)};return{'elementType':ElementType[_0x2f1202(0x202)],'marketFaceElement':{'emojiPackageId':_0x176bcb,'emojiId':_0xdc9f5e,'key':_0x48451a,'faceName':_0x49344b||mFaceCache[_0x2f1202(0x1da)](_0xdc9f5e)||_0x663cdb['smYXN']}};}static[_0xb11d16(0x1f6)](_0x44e2a3){const _0x1030ea=_0xb11d16,_0xde6f10={'ucnJu':'[骰子]'};return{'elementType':ElementType[_0x1030ea(0x1bc)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x1030ea(0x1f6)],'faceType':FaceType['dice'],'faceText':_0xde6f10['ucnJu'],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0xb11d16(0x1e3)](_0x1ab601){const _0xe1e6a4=_0xb11d16,_0x5183ff={'rQDRV':_0xe1e6a4(0x1f2)};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0xe1e6a4(0x1d5)],'faceText':_0x5183ff[_0xe1e6a4(0x1be)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0xb11d16(0x1ea)](_0x26befb){const _0x3a9c57=_0xb11d16,_0xa75b5b={'jTbJr':function(_0x574b70,_0x3e1cc0){return _0x574b70!==_0x3e1cc0;},'BLtzc':_0x3a9c57(0x1de)};return _0xa75b5b[_0x3a9c57(0x1fa)](typeof _0x26befb,_0xa75b5b[_0x3a9c57(0x1b6)])&&(_0x26befb=JSON[_0x3a9c57(0x1c1)](_0x26befb)),{'elementType':ElementType[_0x3a9c57(0x1e8)],'elementId':'','arkElement':{'bytesData':_0x26befb,'linkInfo':null,'subElementType':null}};}static[_0xb11d16(0x1f4)](_0x3687be){const _0x232370=_0xb11d16;return{'elementType':ElementType[_0x232370(0x1fc)],'elementId':'','markdownElement':{'content':_0x3687be}};}} \ No newline at end of file +const _0x35fbf6=_0xaba9;function _0xa694(){const _0x7e8e34=['replace','normal2','视频信息','ITFtf','get','set','721265hYjVcF','rps','ARK','[商城表情]','lnKNd','[包剪锤]','PIC','zNjtQ','lZikK','unlink','face','14019kItTuY','TEXT','toString','10171854bDKbjb','height','rrTQk','dyzUj','width','Ori','获取视频信息失败','文件异常,大小为0','hcBuL','uploadFile','图片信息','pic','end','ark','_0.png','MFACE','53606YoOJUp','normal','then','path','ujnFJ','Llfnk','markdown','sep','error','size','time','moBLu','4475152kGUPIK','VDGvj','FACE','PTT','语音转换失败,\x20请检查语音文件是否正常','ptt','OkptB','FILE','dVKQY','getImageSize','pEXVa','string','WermL','10FjMIdU','2845332SUyjLi','18hQTQAX','jpg','LlQUQ','DORzQ','244IWiBie','stringify','MARKDOWN','reply','REPLY','1221336BuBAud','pkuru','aFjTB','file','zWipB','join','RPS','dice','JPofO','writeFile','dirname','NWHOc','[骰子]','catch','17ILOqBd'];_0xa694=function(){return _0x7e8e34;};return _0xa694();}function _0xaba9(_0xca338,_0x1f9d32){const _0xa6940a=_0xa694();return _0xaba9=function(_0xaba916,_0x2171a8){_0xaba916=_0xaba916-0x90;let _0x550e6e=_0xa6940a[_0xaba916];return _0x550e6e;},_0xaba9(_0xca338,_0x1f9d32);}(function(_0x15c45f,_0x29127b){const _0x345a2f=_0xaba9,_0x26b78c=_0x15c45f();while(!![]){try{const _0x223a5a=parseInt(_0x345a2f(0xb6))/0x1*(-parseInt(_0x345a2f(0xdb))/0x2)+-parseInt(_0x345a2f(0xc8))/0x3*(parseInt(_0x345a2f(0xa3))/0x4)+parseInt(_0x345a2f(0xbd))/0x5*(parseInt(_0x345a2f(0x9f))/0x6)+parseInt(_0x345a2f(0x9e))/0x7+-parseInt(_0x345a2f(0x90))/0x8+-parseInt(_0x345a2f(0xa8))/0x9*(parseInt(_0x345a2f(0x9d))/0xa)+parseInt(_0x345a2f(0xcb))/0xb;if(_0x223a5a===_0x29127b)break;else _0x26b78c['push'](_0x26b78c['shift']());}catch(_0x249e90){_0x26b78c['push'](_0x26b78c['shift']());}}}(_0xa694,0x501d3));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x12992a}from'node:fs';import _0x495410 from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';export const mFaceCache=new Map();export class SendMsgElementConstructor{static['text'](_0x9edce6){return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':_0x9edce6,'atType':AtType['notAt'],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x41add2,_0x38f7cf,_0x27991c,_0x1832fd){const _0x26458b=_0xaba9;return{'elementType':ElementType[_0x26458b(0xc9)],'elementId':'','textElement':{'content':'@'+_0x1832fd,'atType':_0x27991c,'atUid':_0x41add2,'atTinyId':'','atNtUid':_0x38f7cf}};}static[_0x35fbf6(0xa6)](_0x480a23,_0x5d429d,_0x2b11ed,_0x414f94){const _0x3fb7e0=_0x35fbf6;return{'elementType':ElementType[_0x3fb7e0(0xa7)],'elementId':'','replyElement':{'replayMsgSeq':_0x480a23,'replayMsgId':_0x5d429d,'senderUin':_0x2b11ed,'senderUinStr':_0x414f94}};}static async[_0x35fbf6(0xd6)](_0x2481be,_0x551b08='',_0x2039c3=0x0){const _0x1fa7b9=_0x35fbf6,_0x1f4ea3={'KssvV':function(_0x176a0f,_0x12f070){return _0x176a0f===_0x12f070;},'ujnFJ':_0x1fa7b9(0xd2),'pEXVa':function(_0x11beea,_0x20c63d){return _0x11beea(_0x20c63d);},'ITFtf':function(_0x45819b,_0x5e1fd8,_0x10dcec){return _0x45819b(_0x5e1fd8,_0x10dcec);},'aFjTB':_0x1fa7b9(0xd5)},{md5:_0x25c7ea,fileName:_0x737029,path:_0x396a74,fileSize:_0x26449b}=await NTQQFileApi[_0x1fa7b9(0xd4)](_0x2481be,ElementType[_0x1fa7b9(0xc3)],_0x2039c3);if(_0x1f4ea3['KssvV'](_0x26449b,0x0))throw _0x1f4ea3[_0x1fa7b9(0xdf)];const _0x1a5f5b=await NTQQFileApi[_0x1fa7b9(0x99)](_0x2481be),_0x2b7297={'md5HexStr':_0x25c7ea,'fileSize':_0x26449b[_0x1fa7b9(0xca)](),'picWidth':_0x1a5f5b?.[_0x1fa7b9(0xcf)],'picHeight':_0x1a5f5b?.['height'],'fileName':_0x737029,'sourcePath':_0x396a74,'original':!![],'picType':_0x1f4ea3[_0x1fa7b9(0x9a)](isGIF,_0x2481be)?PicType['gif']:PicType[_0x1fa7b9(0xa0)],'picSubType':_0x2039c3,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x551b08};return _0x1f4ea3[_0x1fa7b9(0xba)](logDebug,_0x1f4ea3[_0x1fa7b9(0xaa)],_0x2b7297),{'elementType':ElementType[_0x1fa7b9(0xc3)],'elementId':'','picElement':_0x2b7297};}static async[_0x35fbf6(0xab)](_0x95b6c,_0x4f864f=''){const _0x19ac52=_0x35fbf6,_0x37c587={'jsdrD':function(_0x2caadb,_0x2bda7e){return _0x2caadb===_0x2bda7e;},'zNjtQ':'文件异常,大小为0'},{md5:_0x8d2aad,fileName:_0x1c8aba,path:_0x1d2761,fileSize:_0x95a00b}=await NTQQFileApi[_0x19ac52(0xd4)](_0x95b6c,ElementType[_0x19ac52(0x97)]);if(_0x37c587['jsdrD'](_0x95a00b,0x0))throw _0x37c587[_0x19ac52(0xc4)];const _0x5640ae={'elementType':ElementType['FILE'],'elementId':'','fileElement':{'fileName':_0x4f864f||_0x1c8aba,'filePath':_0x1d2761,'fileSize':_0x95a00b[_0x19ac52(0xca)]()}};return _0x5640ae;}static async['video'](_0x4b9dde,_0x13bde3='',_0xc70447=''){const _0x335ddf=_0x35fbf6,_0x1735f7={'lnKNd':function(_0x522f3e,_0x462fdf,_0x51cdac){return _0x522f3e(_0x462fdf,_0x51cdac);},'DORzQ':_0x335ddf(0xd7),'OkptB':function(_0x3e9ce3,_0x4d52cb){return _0x3e9ce3+_0x4d52cb;},'rrTQk':function(_0xc94eed,_0x15ae30){return _0xc94eed+_0x15ae30;},'hcBuL':function(_0x5e9843,_0x5c611f){return _0x5e9843===_0x5c611f;},'Llfnk':_0x335ddf(0xd2),'pkuru':function(_0x3ab7a2,_0x1ec6a8){return _0x3ab7a2(_0x1ec6a8);},'qXfTN':_0x335ddf(0xde),'moBLu':'mp4','NqKiR':_0x335ddf(0xb9),'XIBLh':_0x335ddf(0xd1),'dyzUj':function(_0x5f7242,_0x5ad6d8){return _0x5f7242||_0x5ad6d8;},'rhLXz':function(_0xbef942,_0x41aa25){return _0xbef942+_0x41aa25;}},{fileName:_0x1975b4,path:_0x172e1f,fileSize:_0x448bec,md5:_0x4aa930}=await NTQQFileApi[_0x335ddf(0xd4)](_0x4b9dde,ElementType['VIDEO']);if(_0x1735f7[_0x335ddf(0xd3)](_0x448bec,0x0))throw _0x1735f7[_0x335ddf(0xe0)];const _0x164ae2=_0x1735f7[_0x335ddf(0xa9)](require,_0x1735f7['qXfTN']);let _0x5a4d6c=_0x172e1f[_0x335ddf(0xb7)](_0x164ae2['sep']+_0x335ddf(0xd0)+_0x164ae2['sep'],_0x164ae2[_0x335ddf(0xe2)]+'Thumb'+_0x164ae2['sep']);_0x5a4d6c=_0x164ae2[_0x335ddf(0xb2)](_0x5a4d6c);let _0x54ece4={'width':0x780,'height':0x438,'time':0xf,'format':_0x1735f7[_0x335ddf(0xe6)],'size':_0x448bec,'filePath':_0x4b9dde};try{_0x54ece4=await _0x1735f7['pkuru'](getVideoInfo,_0x172e1f),_0x1735f7[_0x335ddf(0xc1)](logDebug,_0x1735f7['NqKiR'],_0x54ece4);}catch(_0x367497){_0x1735f7[_0x335ddf(0xc1)](logError,_0x1735f7['XIBLh'],_0x367497);}const _0x44e8f4=new Promise((_0x505ca1,_0x1b44f6)=>{const _0x201f40=_0x335ddf,_0x22ebae={'dPrMp':function(_0x336c1e,_0x5a7a89){return _0x336c1e(_0x5a7a89);},'WermL':function(_0x2376b2,_0x4cafbc,_0xf8a3e){const _0x1ba1e9=_0xaba9;return _0x1735f7[_0x1ba1e9(0xc1)](_0x2376b2,_0x4cafbc,_0xf8a3e);}},_0x4bb1fc=_0x4aa930+_0x201f40(0xd9),_0x3822f2=_0x164ae2[_0x201f40(0xad)](_0x5a4d6c,_0x4bb1fc);_0x495410(_0x4b9dde)['on'](_0x1735f7[_0x201f40(0xa2)],()=>{})['on'](_0x201f40(0xe3),_0x44bf3e=>{const _0x3979ca=_0x201f40,_0x501d9b={'VDGvj':function(_0x128b68,_0x3ea32e){return _0x22ebae['dPrMp'](_0x128b68,_0x3ea32e);}};_0x22ebae[_0x3979ca(0x9c)](logDebug,'获取视频封面失败,使用默认封面',_0x44bf3e),_0xc70447?_0x12992a['copyFile'](_0xc70447,_0x3822f2)['then'](()=>{_0x505ca1(_0x3822f2);})[_0x3979ca(0xb5)](_0x1b44f6):_0x12992a[_0x3979ca(0xb1)](_0x3822f2,defaultVideoThumb)[_0x3979ca(0xdd)](()=>{const _0x1e731f=_0x3979ca;_0x501d9b[_0x1e731f(0x91)](_0x505ca1,_0x3822f2);})[_0x3979ca(0xb5)](_0x1b44f6);})['screenshots']({'timestamps':[0x0],'filename':_0x4bb1fc,'folder':_0x5a4d6c,'size':_0x1735f7[_0x201f40(0x96)](_0x1735f7[_0x201f40(0xcd)](_0x54ece4[_0x201f40(0xcf)],'x'),_0x54ece4[_0x201f40(0xcc)])})['on'](_0x1735f7['DORzQ'],()=>{_0x505ca1(_0x3822f2);});}),_0x48cb1f=new Map(),_0x351cd2=await _0x44e8f4,_0x25de7c=(await _0x12992a['stat'](_0x351cd2))[_0x335ddf(0xe4)];_0x48cb1f[_0x335ddf(0xbc)](0x0,_0x351cd2);const _0x179a57=await _0x1735f7[_0x335ddf(0xa9)](calculateFileMD5,_0x351cd2),_0xd7bb83={'elementType':ElementType['VIDEO'],'elementId':'','videoElement':{'fileName':_0x1735f7[_0x335ddf(0xce)](_0x13bde3,_0x1975b4),'filePath':_0x172e1f,'videoMd5':_0x4aa930,'thumbMd5':_0x179a57,'fileTime':_0x54ece4[_0x335ddf(0xe5)],'thumbPath':_0x48cb1f,'thumbSize':_0x25de7c,'thumbWidth':_0x54ece4['width'],'thumbHeight':_0x54ece4[_0x335ddf(0xcc)],'fileSize':_0x1735f7['rhLXz']('',_0x448bec)}};return _0xd7bb83;}static async[_0x35fbf6(0x95)](_0x37d5fc){const _0x4c021d=_0x35fbf6,_0x119098={'lZikK':function(_0x196e81,_0xa15b77){return _0x196e81(_0xa15b77);},'LlQUQ':_0x4c021d(0x94),'NWHOc':_0x4c021d(0xd2)},{converted:_0x569130,path:_0x32fa70,duration:_0x80f802}=await _0x119098[_0x4c021d(0xc5)](encodeSilk,_0x37d5fc);if(!_0x32fa70)throw _0x119098[_0x4c021d(0xa1)];const {md5:_0xdf0783,fileName:_0x5e9849,path:_0x400667,fileSize:_0x1fb1bd}=await NTQQFileApi[_0x4c021d(0xd4)](_0x32fa70,ElementType['PTT']);if(_0x1fb1bd===0x0)throw _0x119098[_0x4c021d(0xb3)];return _0x569130&&_0x12992a[_0x4c021d(0xc6)](_0x32fa70)[_0x4c021d(0xdd)](),{'elementType':ElementType[_0x4c021d(0x93)],'elementId':'','pttElement':{'fileName':_0x5e9849,'filePath':_0x400667,'md5HexStr':_0xdf0783,'fileSize':_0x1fb1bd,'duration':_0x80f802||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[_0x35fbf6(0xc7)](_0x5851fd){const _0x5b7803=_0x35fbf6,_0x250542={'dVKQY':function(_0xf18d2f,_0x63525){return _0xf18d2f<_0x63525;}};return{'elementType':ElementType[_0x5b7803(0x92)],'elementId':'','faceElement':{'faceIndex':_0x5851fd,'faceType':_0x250542[_0x5b7803(0x98)](_0x5851fd,0xde)?FaceType[_0x5b7803(0xdc)]:FaceType[_0x5b7803(0xb8)]}};}static['mface'](_0x36bfaa,_0x245cb4,_0x406fe3,_0x4b5bc8){const _0x50950a=_0x35fbf6;return{'elementType':ElementType[_0x50950a(0xda)],'marketFaceElement':{'emojiPackageId':_0x36bfaa,'emojiId':_0x245cb4,'key':_0x406fe3,'faceName':_0x4b5bc8||mFaceCache[_0x50950a(0xbb)](_0x245cb4)||_0x50950a(0xc0)}};}static[_0x35fbf6(0xaf)](_0x3fe095){const _0x5e4c19=_0x35fbf6,_0x81b3e9={'gqjdY':_0x5e4c19(0xb4)};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x5e4c19(0xaf)],'faceType':FaceType[_0x5e4c19(0xaf)],'faceText':_0x81b3e9['gqjdY'],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x35fbf6(0xbe)](_0x5d4951){const _0x875864=_0x35fbf6,_0x44d163={'zWipB':_0x875864(0xc2)};return{'elementType':ElementType[_0x875864(0x92)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x875864(0xae)],'faceText':_0x44d163[_0x875864(0xac)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x35fbf6(0xd8)](_0x5bfd0b){const _0x4ccd8f=_0x35fbf6,_0x5062e2={'znfqN':function(_0x2bba75,_0xd2b0ca){return _0x2bba75!==_0xd2b0ca;},'JPofO':_0x4ccd8f(0x9b)};return _0x5062e2['znfqN'](typeof _0x5bfd0b,_0x5062e2[_0x4ccd8f(0xb0)])&&(_0x5bfd0b=JSON[_0x4ccd8f(0xa4)](_0x5bfd0b)),{'elementType':ElementType[_0x4ccd8f(0xbf)],'elementId':'','arkElement':{'bytesData':_0x5bfd0b,'linkInfo':null,'subElementType':null}};}static[_0x35fbf6(0xe1)](_0x3704fa){const _0x287505=_0x35fbf6;return{'elementType':ElementType[_0x287505(0xa5)],'elementId':'','markdownElement':{'content':_0x3704fa}};}} \ 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 0d51db8a..1f618ecc 100644 --- a/src/core.lib/src/entities/group.js +++ b/src/core.lib/src/entities/group.js @@ -1 +1 @@ -(function(_0x47f2cd,_0x49b496){var _0x34b1c1=_0x30b0,_0x4b5f84=_0x47f2cd();while(!![]){try{var _0x1b076f=-parseInt(_0x34b1c1(0xa9))/0x1+-parseInt(_0x34b1c1(0xa6))/0x2*(parseInt(_0x34b1c1(0xa2))/0x3)+parseInt(_0x34b1c1(0xa3))/0x4+-parseInt(_0x34b1c1(0xa5))/0x5+parseInt(_0x34b1c1(0xa7))/0x6+parseInt(_0x34b1c1(0xa1))/0x7+-parseInt(_0x34b1c1(0xaa))/0x8;if(_0x1b076f===_0x49b496)break;else _0x4b5f84['push'](_0x4b5f84['shift']());}catch(_0x2cb483){_0x4b5f84['push'](_0x4b5f84['shift']());}}}(_0x3ab3,0xcff5d));function _0x30b0(_0x5e6c92,_0x403687){var _0x3ab307=_0x3ab3();return _0x30b0=function(_0x30b0b1,_0x343eda){_0x30b0b1=_0x30b0b1-0xa1;var _0x1810fe=_0x3ab307[_0x30b0b1];return _0x1810fe;},_0x30b0(_0x5e6c92,_0x403687);}export var GroupMemberRole;(function(_0x1dc42d){var _0xd67d1=_0x30b0,_0x3ae4e8={'hAAOs':'normal','uCYgN':'admin','NlkzU':'owner'};_0x1dc42d[_0x1dc42d[_0x3ae4e8[_0xd67d1(0xa8)]]=0x2]=_0x3ae4e8[_0xd67d1(0xa8)],_0x1dc42d[_0x1dc42d[_0x3ae4e8['uCYgN']]=0x3]=_0x3ae4e8[_0xd67d1(0xa4)],_0x1dc42d[_0x1dc42d[_0x3ae4e8['NlkzU']]=0x4]=_0x3ae4e8['NlkzU'];}(GroupMemberRole||(GroupMemberRole={})));function _0x3ab3(){var _0x45f512=['9737124BUkBaH','hAAOs','554138DjivcZ','3278968jcwWDm','10218229ngbsOW','150030ofEZFa','2616656bKvQUH','uCYgN','5603955ljoTeA','32wSgMeU'];_0x3ab3=function(){return _0x45f512;};return _0x3ab3();} \ No newline at end of file +(function(_0x256b42,_0x1d01de){var _0x907bad=_0x3723,_0x258003=_0x256b42();while(!![]){try{var _0x11c161=-parseInt(_0x907bad(0x191))/0x1+-parseInt(_0x907bad(0x193))/0x2*(parseInt(_0x907bad(0x195))/0x3)+-parseInt(_0x907bad(0x192))/0x4+-parseInt(_0x907bad(0x19b))/0x5+-parseInt(_0x907bad(0x190))/0x6*(-parseInt(_0x907bad(0x19a))/0x7)+parseInt(_0x907bad(0x19c))/0x8+parseInt(_0x907bad(0x199))/0x9;if(_0x11c161===_0x1d01de)break;else _0x258003['push'](_0x258003['shift']());}catch(_0xcb532f){_0x258003['push'](_0x258003['shift']());}}}(_0x28e3,0x7f477));export var GroupMemberRole;function _0x28e3(){var _0x1667a5=['owner','admin','normal','2063871dpuwcl','3353WTlHxc','3538735VntVnP','8174776YCsudH','12654KGOyfK','20921VfuvlM','3408544TxQzHb','412egcPhb','OCvxg','2319MMIdjR'];_0x28e3=function(){return _0x1667a5;};return _0x28e3();}function _0x3723(_0x31d775,_0xaf764b){var _0x28e39d=_0x28e3();return _0x3723=function(_0x3723dd,_0x12aed4){_0x3723dd=_0x3723dd-0x190;var _0x120adc=_0x28e39d[_0x3723dd];return _0x120adc;},_0x3723(_0x31d775,_0xaf764b);}(function(_0x47fc01){var _0x11a10f=_0x3723,_0x289c0a={'OCvxg':_0x11a10f(0x198),'PGNdd':_0x11a10f(0x196)};_0x47fc01[_0x47fc01['normal']=0x2]=_0x289c0a[_0x11a10f(0x194)],_0x47fc01[_0x47fc01['admin']=0x3]=_0x11a10f(0x197),_0x47fc01[_0x47fc01[_0x11a10f(0x196)]=0x4]=_0x289c0a['PGNdd'];}(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 a54fbf12..9f93d16d 100644 --- a/src/core.lib/src/entities/index.js +++ b/src/core.lib/src/entities/index.js @@ -1 +1 @@ -function _0x24ae(_0x9e09ae,_0x2be9c8){var _0x803b8f=_0x803b();return _0x24ae=function(_0x24ae0a,_0x7bc5ca){_0x24ae0a=_0x24ae0a-0x17a;var _0x24241f=_0x803b8f[_0x24ae0a];return _0x24241f;},_0x24ae(_0x9e09ae,_0x2be9c8);}(function(_0xab9107,_0x3938d1){var _0x1a7314=_0x24ae,_0x243dce=_0xab9107();while(!![]){try{var _0x1e3d37=parseInt(_0x1a7314(0x184))/0x1*(-parseInt(_0x1a7314(0x17b))/0x2)+parseInt(_0x1a7314(0x17a))/0x3*(parseInt(_0x1a7314(0x17c))/0x4)+parseInt(_0x1a7314(0x183))/0x5+parseInt(_0x1a7314(0x182))/0x6+parseInt(_0x1a7314(0x17e))/0x7*(-parseInt(_0x1a7314(0x180))/0x8)+parseInt(_0x1a7314(0x17d))/0x9*(-parseInt(_0x1a7314(0x181))/0xa)+parseInt(_0x1a7314(0x17f))/0xb;if(_0x1e3d37===_0x3938d1)break;else _0x243dce['push'](_0x243dce['shift']());}catch(_0x564253){_0x243dce['push'](_0x243dce['shift']());}}}(_0x803b,0xa9ffe));export*from'./user';export*from'./group';export*from'./msg';function _0x803b(){var _0xec03d6=['136hYsiSi','4wxrqkR','36ctLSXG','21YysgYy','5112558ottcJD','2650216Rivkyi','2557670IYHjio','7534002guDlry','3778165jyiuGd','10333TTaHKc','2819349LvpPXu'];_0x803b=function(){return _0xec03d6;};return _0x803b();}export*from'./notify';export*from'./cache';export*from'./constructor'; \ No newline at end of file +function _0x3ae8(_0x5564eb,_0x26e7a3){var _0x44ebb8=_0x44eb();return _0x3ae8=function(_0x3ae8b4,_0x45ca0b){_0x3ae8b4=_0x3ae8b4-0xf9;var _0xaa43c0=_0x44ebb8[_0x3ae8b4];return _0xaa43c0;},_0x3ae8(_0x5564eb,_0x26e7a3);}(function(_0xa0a06,_0x5cd45e){var _0x3945e4=_0x3ae8,_0x27565f=_0xa0a06();while(!![]){try{var _0x24dc9a=-parseInt(_0x3945e4(0xfb))/0x1*(-parseInt(_0x3945e4(0xfc))/0x2)+parseInt(_0x3945e4(0xfd))/0x3+parseInt(_0x3945e4(0xfa))/0x4*(parseInt(_0x3945e4(0x103))/0x5)+-parseInt(_0x3945e4(0xfe))/0x6*(-parseInt(_0x3945e4(0x101))/0x7)+parseInt(_0x3945e4(0x102))/0x8*(-parseInt(_0x3945e4(0xff))/0x9)+parseInt(_0x3945e4(0x104))/0xa*(-parseInt(_0x3945e4(0xf9))/0xb)+-parseInt(_0x3945e4(0x100))/0xc;if(_0x24dc9a===_0x5cd45e)break;else _0x27565f['push'](_0x27565f['shift']());}catch(_0x5ed638){_0x27565f['push'](_0x27565f['shift']());}}}(_0x44eb,0x4e0be));export*from'./user';export*from'./group';export*from'./msg';export*from'./notify';export*from'./cache';function _0x44eb(){var _0x398ca5=['1556UNGdQz','1046PbLBDo','1190LyfnDj','933531riusaV','196044BlQNyh','104283pTYKEh','4204512XhSruQ','84CKuOtR','304kOwSHx','670ahKUXL','2674010rtprVK','11HcKrBa'];_0x44eb=function(){return _0x398ca5;};return _0x44eb();}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 7570af39..de20ee0f 100644 --- a/src/core.lib/src/entities/msg.js +++ b/src/core.lib/src/entities/msg.js @@ -1 +1 @@ -var _0x1150ab=_0x45f6;function _0x5bc5(){var _0x419d17=['twYTP','3sUyPQI','normal','XiDej','atAll','cXurD','1853142MbpiTN','REPLY','dice','5tFRvmr','PTT','epQzb','4767327yPMPrb','hYwhF','AoUgU','DDPfL','yueWX','atUser','ZOiWI','GAxtN','gYXUA','ARK','OijJQ','cDmrh','memberIncrease','face','109406xkXDBX','notAt','FILE','TEXT','VqWKB','aFLyt','xkTBF','Wxppc','temp','dgiSk','nacSg','35zFrZXl','jpg','lkEQi','MEMBER_NEW_TITLE','SJZxd','MAkBP','580582qJrBOI','gif','FACE','2217564HojkBy','INVITE_NEW_MEMBER','group','JfxQA','MARKDOWN','1191608ziZijs','friend','1630ZuObUb','https://multimedia.nt.qq.com.cn','RPS','normal2','ban','MFACE','wSMCo','1572574QWlSVk'];_0x5bc5=function(){return _0x419d17;};return _0x5bc5();}(function(_0x23d73c,_0x16f902){var _0x58c197=_0x45f6,_0x1100b6=_0x23d73c();while(!![]){try{var _0x29b1eb=parseInt(_0x58c197(0x148))/0x1+parseInt(_0x58c197(0x11c))/0x2+-parseInt(_0x58c197(0x11e))/0x3*(-parseInt(_0x58c197(0x14b))/0x4)+-parseInt(_0x58c197(0x126))/0x5*(-parseInt(_0x58c197(0x123))/0x6)+parseInt(_0x58c197(0x142))/0x7*(-parseInt(_0x58c197(0x150))/0x8)+parseInt(_0x58c197(0x129))/0x9+-parseInt(_0x58c197(0x152))/0xa*(parseInt(_0x58c197(0x137))/0xb);if(_0x29b1eb===_0x16f902)break;else _0x1100b6['push'](_0x1100b6['shift']());}catch(_0x39c648){_0x1100b6['push'](_0x1100b6['shift']());}}}(_0x5bc5,0x6028b));export var ElementType;(function(_0x8d1c91){var _0x2ed01c=_0x45f6,_0x34476e={'kZzia':_0x2ed01c(0x13a),'XiDej':'PIC','ZOiWI':_0x2ed01c(0x139),'ktRKr':_0x2ed01c(0x127),'AqcwW':'VIDEO','twYTP':_0x2ed01c(0x14a),'OijJQ':_0x2ed01c(0x124),'wSMCo':_0x2ed01c(0x132),'epQzb':_0x2ed01c(0x157),'MAkBP':_0x2ed01c(0x14f)};_0x8d1c91[_0x8d1c91[_0x34476e['kZzia']]=0x1]=_0x34476e['kZzia'],_0x8d1c91[_0x8d1c91[_0x34476e[_0x2ed01c(0x120)]]=0x2]=_0x34476e[_0x2ed01c(0x120)],_0x8d1c91[_0x8d1c91[_0x34476e['ZOiWI']]=0x3]=_0x34476e[_0x2ed01c(0x12f)],_0x8d1c91[_0x8d1c91[_0x2ed01c(0x127)]=0x4]=_0x34476e['ktRKr'],_0x8d1c91[_0x8d1c91['VIDEO']=0x5]=_0x34476e['AqcwW'],_0x8d1c91[_0x8d1c91[_0x34476e[_0x2ed01c(0x11d)]]=0x6]=_0x2ed01c(0x14a),_0x8d1c91[_0x8d1c91[_0x34476e[_0x2ed01c(0x133)]]=0x7]=_0x34476e['OijJQ'],_0x8d1c91[_0x8d1c91[_0x34476e[_0x2ed01c(0x158)]]=0xa]=_0x34476e[_0x2ed01c(0x158)],_0x8d1c91[_0x8d1c91[_0x34476e[_0x2ed01c(0x128)]]=0xb]=_0x34476e['epQzb'],_0x8d1c91[_0x8d1c91[_0x34476e[_0x2ed01c(0x147)]]=0xe]=_0x2ed01c(0x14f);}(ElementType||(ElementType={})));export var PicType;(function(_0x558d3e){var _0x3e2b6f=_0x45f6,_0x2e7191={'DDPfL':_0x3e2b6f(0x149),'hYwhF':_0x3e2b6f(0x143)};_0x558d3e[_0x558d3e[_0x2e7191['DDPfL']]=0x7d0]=_0x2e7191[_0x3e2b6f(0x12c)],_0x558d3e[_0x558d3e[_0x2e7191[_0x3e2b6f(0x12a)]]=0x3e8]=_0x3e2b6f(0x143);}(PicType||(PicType={})));export var PicSubType;(function(_0x15095a){var _0x4ec4eb=_0x45f6,_0x26ee19={'mYWas':_0x4ec4eb(0x11f),'JfxQA':_0x4ec4eb(0x136)};_0x15095a[_0x15095a[_0x26ee19['mYWas']]=0x0]=_0x4ec4eb(0x11f),_0x15095a[_0x15095a[_0x26ee19['JfxQA']]=0x1]=_0x26ee19[_0x4ec4eb(0x14e)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x118e16){var _0x586f74=_0x45f6,_0x59d3a={'GAxtN':_0x586f74(0x121),'gYXUA':_0x586f74(0x12e)};_0x118e16[_0x118e16[_0x586f74(0x138)]=0x0]=_0x586f74(0x138),_0x118e16[_0x118e16[_0x59d3a[_0x586f74(0x130)]]=0x1]=_0x59d3a[_0x586f74(0x130)],_0x118e16[_0x118e16[_0x59d3a[_0x586f74(0x131)]]=0x2]=_0x586f74(0x12e);}(AtType||(AtType={})));export var ChatType;(function(_0x3d89e5){var _0x2d938a=_0x45f6,_0x39a62d={'AoUgU':_0x2d938a(0x151),'cDmrh':_0x2d938a(0x14d),'xkTBF':_0x2d938a(0x13f)};_0x3d89e5[_0x3d89e5[_0x39a62d[_0x2d938a(0x12b)]]=0x1]=_0x2d938a(0x151),_0x3d89e5[_0x3d89e5[_0x2d938a(0x14d)]=0x2]=_0x39a62d[_0x2d938a(0x134)],_0x3d89e5[_0x3d89e5[_0x39a62d[_0x2d938a(0x13d)]]=0x64]=_0x39a62d[_0x2d938a(0x13d)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST='https://gchat.qpic.cn';export const IMAGE_HTTP_HOST_NT=_0x1150ab(0x153);export var GrayTipElementSubType;(function(_0x3874bc){var _0x5a05c4=_0x1150ab,_0x1eeae4={'SJZxd':_0x5a05c4(0x14c),'nacSg':_0x5a05c4(0x145)};_0x3874bc[_0x3874bc[_0x1eeae4[_0x5a05c4(0x146)]]=0xc]=_0x1eeae4[_0x5a05c4(0x146)],_0x3874bc[_0x3874bc[_0x1eeae4[_0x5a05c4(0x141)]]=0x11]=_0x5a05c4(0x145);}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x32a9d4){var _0xb8d4ca=_0x1150ab,_0x2fc778={'Wxppc':_0xb8d4ca(0x11f),'aFLyt':_0xb8d4ca(0x155),'nfixX':_0xb8d4ca(0x125)};_0x32a9d4[_0x32a9d4[_0x2fc778[_0xb8d4ca(0x13e)]]=0x1]=_0x2fc778[_0xb8d4ca(0x13e)],_0x32a9d4[_0x32a9d4[_0x2fc778['aFLyt']]=0x2]=_0x2fc778[_0xb8d4ca(0x13c)],_0x32a9d4[_0x32a9d4[_0x2fc778['nfixX']]=0x3]=_0x2fc778['nfixX'];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x9fb307){var _0x230abc=_0x1150ab,_0xadbf80={'yueWX':_0x230abc(0x125),'cXurD':_0x230abc(0x154)};_0x9fb307[_0x9fb307[_0xadbf80[_0x230abc(0x12d)]]=0x166]=_0xadbf80[_0x230abc(0x12d)],_0x9fb307[_0x9fb307[_0x230abc(0x154)]=0x167]=_0xadbf80[_0x230abc(0x122)];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;function _0x45f6(_0x2f3227,_0x578a7d){var _0x5bc5ce=_0x5bc5();return _0x45f6=function(_0x45f621,_0x2b2cd9){_0x45f621=_0x45f621-0x11c;var _0x3f85bf=_0x5bc5ce[_0x45f621];return _0x3f85bf;},_0x45f6(_0x2f3227,_0x578a7d);}(function(_0x7d5f6e){var _0x3d233f=_0x1150ab,_0x179a27={'VqWKB':_0x3d233f(0x135),'lkEQi':'kicked','dgiSk':_0x3d233f(0x156)};_0x7d5f6e[_0x7d5f6e[_0x179a27[_0x3d233f(0x13b)]]=0x1]=_0x3d233f(0x135),_0x7d5f6e[_0x7d5f6e[_0x179a27[_0x3d233f(0x144)]]=0x3]=_0x179a27['lkEQi'],_0x7d5f6e[_0x7d5f6e[_0x179a27[_0x3d233f(0x140)]]=0x8]=_0x179a27[_0x3d233f(0x140)];}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file +var _0x15bee2=_0x9401;(function(_0x2365bd,_0xbe37f){var _0x31cdc8=_0x9401,_0x31fc98=_0x2365bd();while(!![]){try{var _0x3dd997=parseInt(_0x31cdc8(0x201))/0x1+parseInt(_0x31cdc8(0x200))/0x2*(-parseInt(_0x31cdc8(0x1f0))/0x3)+-parseInt(_0x31cdc8(0x1ff))/0x4+-parseInt(_0x31cdc8(0x206))/0x5*(parseInt(_0x31cdc8(0x1cd))/0x6)+-parseInt(_0x31cdc8(0x203))/0x7*(parseInt(_0x31cdc8(0x1e0))/0x8)+-parseInt(_0x31cdc8(0x1f6))/0x9*(parseInt(_0x31cdc8(0x207))/0xa)+parseInt(_0x31cdc8(0x1d9))/0xb;if(_0x3dd997===_0xbe37f)break;else _0x31fc98['push'](_0x31fc98['shift']());}catch(_0x596e3c){_0x31fc98['push'](_0x31fc98['shift']());}}}(_0x504e,0xb1e12));export var ElementType;function _0x504e(){var _0x51cf31=['friend','21054473wCFQze','QQwZT','face','OGkBa','gLRrw','FILE','ARK','287384HbiFgF','ouPJt','group','gif','dGDEY','yYxyP','MEMBER_NEW_TITLE','RPS','QqAnb','kicked','NZlMu','REPLY','temp','5|8|7|2|0|1|9|3|4|6','GlvQM','UoHdr','35190MwVDgj','ZTZAG','ymoAv','hKyOd','jpg','UAcCV','225LaQKvY','memberIncrease','INVITE_NEW_MEMBER','MFACE','ekKCz','PIC','jgPBj','ban','MARKDOWN','2189348espOPs','14WwBdsE','434820aEhQxj','pWIHW','14qHWxPg','tvMPl','notAt','2387005yXuLaa','176630JAEKKC','TEXT','https://multimedia.nt.qq.com.cn','VIDEO','normal','6VqvIRn','ezkYV','https://gchat.qpic.cn','normal2','XiLNc','jYzUN','wUgJL','dice','atUser','ClbbB','pdGeZ'];_0x504e=function(){return _0x51cf31;};return _0x504e();}function _0x9401(_0x3d7cfc,_0x4d151b){var _0x504ee6=_0x504e();return _0x9401=function(_0x9401f,_0xdfac72){_0x9401f=_0x9401f-0x1c9;var _0x5c7158=_0x504ee6[_0x9401f];return _0x5c7158;},_0x9401(_0x3d7cfc,_0x4d151b);}(function(_0x51cbaa){var _0x317bcb=_0x9401,_0x46f36d={'ymoAv':_0x317bcb(0x1cb),'pWIHW':'FACE','pdGeZ':'PTT','ekKCz':_0x317bcb(0x1df),'QQwZT':_0x317bcb(0x1f9),'gLRrw':_0x317bcb(0x1c9),'UAcCV':'MARKDOWN','QqAnb':_0x317bcb(0x1de),'JzZDW':_0x317bcb(0x1fb),'ClbbB':_0x317bcb(0x1eb)},_0x2de13d=_0x317bcb(0x1ed)['split']('|'),_0x325500=0x0;while(!![]){switch(_0x2de13d[_0x325500++]){case'0':_0x51cbaa[_0x51cbaa[_0x46f36d['ymoAv']]=0x5]=_0x46f36d[_0x317bcb(0x1f2)];continue;case'1':_0x51cbaa[_0x51cbaa[_0x46f36d[_0x317bcb(0x202)]]=0x6]=_0x46f36d['pWIHW'];continue;case'2':_0x51cbaa[_0x51cbaa[_0x46f36d[_0x317bcb(0x1d7)]]=0x4]=_0x46f36d[_0x317bcb(0x1d7)];continue;case'3':_0x51cbaa[_0x51cbaa[_0x46f36d[_0x317bcb(0x1fa)]]=0xa]=_0x46f36d['ekKCz'];continue;case'4':_0x51cbaa[_0x51cbaa[_0x46f36d[_0x317bcb(0x1da)]]=0xb]=_0x317bcb(0x1f9);continue;case'5':_0x51cbaa[_0x51cbaa[_0x46f36d[_0x317bcb(0x1dd)]]=0x1]=_0x46f36d[_0x317bcb(0x1dd)];continue;case'6':_0x51cbaa[_0x51cbaa[_0x317bcb(0x1fe)]=0xe]=_0x46f36d[_0x317bcb(0x1f5)];continue;case'7':_0x51cbaa[_0x51cbaa[_0x46f36d[_0x317bcb(0x1e8)]]=0x3]=_0x317bcb(0x1de);continue;case'8':_0x51cbaa[_0x51cbaa[_0x46f36d['JzZDW']]=0x2]=_0x317bcb(0x1fb);continue;case'9':_0x51cbaa[_0x51cbaa[_0x46f36d['ClbbB']]=0x7]=_0x46f36d[_0x317bcb(0x1d6)];continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x1b590c){var _0x3a2417=_0x9401,_0x24e9d7={'FoxAy':'gif','yYxyP':'jpg'};_0x1b590c[_0x1b590c[_0x24e9d7['FoxAy']]=0x7d0]=_0x3a2417(0x1e3),_0x1b590c[_0x1b590c[_0x3a2417(0x1f4)]=0x3e8]=_0x24e9d7[_0x3a2417(0x1e5)];}(PicType||(PicType={})));export var PicSubType;(function(_0x5343a0){var _0x4bf3ea=_0x9401,_0x9735b3={'FKJzU':_0x4bf3ea(0x1cc),'OGkBa':_0x4bf3ea(0x1db)};_0x5343a0[_0x5343a0[_0x9735b3['FKJzU']]=0x0]=_0x9735b3['FKJzU'],_0x5343a0[_0x5343a0['face']=0x1]=_0x9735b3[_0x4bf3ea(0x1dc)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x5e8419){var _0x494df1=_0x9401,_0x5f7016={'NZlMu':'atAll','wUgJL':_0x494df1(0x1d5)};_0x5e8419[_0x5e8419[_0x494df1(0x205)]=0x0]=_0x494df1(0x205),_0x5e8419[_0x5e8419[_0x5f7016[_0x494df1(0x1ea)]]=0x1]=_0x5f7016[_0x494df1(0x1ea)],_0x5e8419[_0x5e8419[_0x494df1(0x1d5)]=0x2]=_0x5f7016[_0x494df1(0x1d3)];}(AtType||(AtType={})));export var ChatType;(function(_0x2f8e56){var _0x44939d=_0x9401,_0x36477d={'jgPBj':_0x44939d(0x1d8),'jYzUN':_0x44939d(0x1ec)};_0x2f8e56[_0x2f8e56[_0x36477d[_0x44939d(0x1fc)]]=0x1]=_0x36477d[_0x44939d(0x1fc)],_0x2f8e56[_0x2f8e56[_0x44939d(0x1e2)]=0x2]=_0x44939d(0x1e2),_0x2f8e56[_0x2f8e56[_0x36477d[_0x44939d(0x1d2)]]=0x64]='temp';}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x15bee2(0x1cf);export const IMAGE_HTTP_HOST_NT=_0x15bee2(0x1ca);export var GrayTipElementSubType;(function(_0x2871a5){var _0x4174b2=_0x15bee2,_0x39b5e4={'dGDEY':_0x4174b2(0x1f8),'ezkYV':_0x4174b2(0x1e6)};_0x2871a5[_0x2871a5[_0x39b5e4[_0x4174b2(0x1e4)]]=0xc]=_0x39b5e4['dGDEY'],_0x2871a5[_0x2871a5['MEMBER_NEW_TITLE']=0x11]=_0x39b5e4[_0x4174b2(0x1ce)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x24159c){var _0xe9d63e=_0x15bee2,_0x376d1a={'ouPJt':_0xe9d63e(0x1cc),'hKyOd':'normal2','tvMPl':_0xe9d63e(0x1d4)};_0x24159c[_0x24159c['normal']=0x1]=_0x376d1a[_0xe9d63e(0x1e1)],_0x24159c[_0x24159c[_0x376d1a[_0xe9d63e(0x1f3)]]=0x2]=_0xe9d63e(0x1d0),_0x24159c[_0x24159c[_0x376d1a[_0xe9d63e(0x204)]]=0x3]=_0x376d1a[_0xe9d63e(0x204)];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x339d87){var _0x4f1241=_0x15bee2,_0x18620a={'UoHdr':_0x4f1241(0x1d4),'GlvQM':_0x4f1241(0x1e7)};_0x339d87[_0x339d87[_0x18620a[_0x4f1241(0x1ef)]]=0x166]=_0x4f1241(0x1d4),_0x339d87[_0x339d87[_0x18620a[_0x4f1241(0x1ee)]]=0x167]=_0x18620a[_0x4f1241(0x1ee)];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x440681){var _0x257e3e=_0x15bee2,_0x57262b={'ZTZAG':_0x257e3e(0x1e9),'XiLNc':_0x257e3e(0x1fd)};_0x440681[_0x440681[_0x257e3e(0x1f7)]=0x1]=_0x257e3e(0x1f7),_0x440681[_0x440681[_0x57262b[_0x257e3e(0x1f1)]]=0x3]=_0x57262b['ZTZAG'],_0x440681[_0x440681[_0x57262b[_0x257e3e(0x1d1)]]=0x8]=_0x57262b['XiLNc'];}(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 0a11eb62..d3e903c9 100644 --- a/src/core.lib/src/entities/notify.js +++ b/src/core.lib/src/entities/notify.js @@ -1 +1 @@ -function _0x521a(_0x9e0d30,_0x2af5a9){var _0x1b9b0a=_0x1b9b();return _0x521a=function(_0x521a0e,_0x2d3b24){_0x521a0e=_0x521a0e-0x70;var _0x26f5d6=_0x1b9b0a[_0x521a0e];return _0x26f5d6;},_0x521a(_0x9e0d30,_0x2af5a9);}(function(_0x3ee827,_0x29a54a){var _0x3b89ef=_0x521a,_0x198fa2=_0x3ee827();while(!![]){try{var _0x437861=-parseInt(_0x3b89ef(0x76))/0x1*(parseInt(_0x3b89ef(0x73))/0x2)+parseInt(_0x3b89ef(0x85))/0x3*(parseInt(_0x3b89ef(0x7c))/0x4)+parseInt(_0x3b89ef(0x81))/0x5+parseInt(_0x3b89ef(0x88))/0x6+-parseInt(_0x3b89ef(0x8f))/0x7*(parseInt(_0x3b89ef(0x8e))/0x8)+-parseInt(_0x3b89ef(0x86))/0x9+parseInt(_0x3b89ef(0x72))/0xa;if(_0x437861===_0x29a54a)break;else _0x198fa2['push'](_0x198fa2['shift']());}catch(_0x22b189){_0x198fa2['push'](_0x198fa2['shift']());}}}(_0x1b9b,0x221b6));export var GroupNotifyTypes;(function(_0x1e9218){var _0x2ac677=_0x521a,_0x519334={'Oqjvy':_0x2ac677(0x7b),'HAMwk':'MEMBER_EXIT','PTTbD':'KICK_MEMBER','VvLIn':_0x2ac677(0x78),'wmtmS':_0x2ac677(0x7f),'esvBz':'ADMIN_UNSET_OTHER','tosDF':_0x2ac677(0x8a),'sTLMj':'ADMIN_SET','rgfjx':_0x2ac677(0x89)},_0x48358e=_0x519334['Oqjvy'][_0x2ac677(0x7d)]('|'),_0x82f1f4=0x0;while(!![]){switch(_0x48358e[_0x82f1f4++]){case'0':_0x1e9218[_0x1e9218[_0x519334[_0x2ac677(0x70)]]=0xb]=_0x519334[_0x2ac677(0x70)];continue;case'1':_0x1e9218[_0x1e9218[_0x519334[_0x2ac677(0x80)]]=0x9]=_0x519334[_0x2ac677(0x80)];continue;case'2':_0x1e9218[_0x1e9218[_0x519334['VvLIn']]=0x4]=_0x519334[_0x2ac677(0x71)];continue;case'3':_0x1e9218[_0x1e9218[_0x519334[_0x2ac677(0x84)]]=0xc]=_0x519334[_0x2ac677(0x84)];continue;case'4':_0x1e9218[_0x1e9218[_0x519334[_0x2ac677(0x75)]]=0xd]=_0x519334['esvBz'];continue;case'5':_0x1e9218[_0x1e9218[_0x519334['tosDF']]=0x1]=_0x2ac677(0x8a);continue;case'6':_0x1e9218[_0x1e9218[_0x519334[_0x2ac677(0x83)]]=0x8]=_0x519334[_0x2ac677(0x83)];continue;case'7':_0x1e9218[_0x1e9218[_0x519334[_0x2ac677(0x8b)]]=0x7]=_0x519334[_0x2ac677(0x8b)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));function _0x1b9b(){var _0x12ff97=['408163qyuhQu','HAMwk','VvLIn','1911070nsvCQO','8sQYbIn','APPROVE','esvBz','36767quZqnp','mfwow','INVITED_JOIN','ZVRFw','sxbzd','5|2|7|6|1|0|3|4','158660puVDlU','split','WAIT_HANDLE','ADMIN_UNSET','PTTbD','1352375USrHmu','approve','sTLMj','wmtmS','3RLJiVA','1160496CWHgiO','reject','186510wzbZJy','JOIN_REQUEST','INVITE_ME','rgfjx','IGNORE','REJECT','16gGsXcT'];_0x1b9b=function(){return _0x12ff97;};return _0x1b9b();}export var GroupNotifyStatus;(function(_0x3948c1){var _0x832b66=_0x521a,_0x5a5de0={'mfwow':_0x832b66(0x7e),'ZVRFw':_0x832b66(0x74),'sxbzd':_0x832b66(0x8d)};_0x3948c1[_0x3948c1[_0x832b66(0x8c)]=0x0]='IGNORE',_0x3948c1[_0x3948c1[_0x5a5de0[_0x832b66(0x77)]]=0x1]=_0x5a5de0[_0x832b66(0x77)],_0x3948c1[_0x3948c1[_0x5a5de0[_0x832b66(0x79)]]=0x2]=_0x5a5de0[_0x832b66(0x79)],_0x3948c1[_0x3948c1[_0x5a5de0[_0x832b66(0x7a)]]=0x3]=_0x5a5de0['sxbzd'];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0xba5dac){var _0x52cfce=_0x521a,_0x5cc00e={'JtMBU':_0x52cfce(0x82)};_0xba5dac[_0xba5dac[_0x5cc00e['JtMBU']]=0x1]=_0x52cfce(0x82),_0xba5dac[_0xba5dac[_0x52cfce(0x87)]=0x2]=_0x52cfce(0x87);}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file +function _0x4c38(){var _0x15f607=['ADMIN_UNSET','1YEQpJB','WASrD','JOIN_REQUEST','approve','owDZX','IGNORE','ieUaH','7lvYJPF','MEMBER_EXIT','SUgqC','5203480AzpNev','WECkb','36TNKvIL','zjNPs','1366645bANZeP','WrXkM','5|7|6|2|4|1|3|0','XFFxv','3101802SNrizD','1969082PjUIkr','ADMIN_UNSET_OTHER','KICK_MEMBER','VcbwJ','REJECT','11241320sFIebf','reject','446076QYnkje','IywmO','INVITE_ME','11ntLkfX','WAIT_HANDLE','DWhHJ','12804687SzJBrW','APPROVE'];_0x4c38=function(){return _0x15f607;};return _0x4c38();}(function(_0x41ed0e,_0x3531e4){var _0x1100fb=_0x3825,_0x1030b0=_0x41ed0e();while(!![]){try{var _0x40f61e=parseInt(_0x1100fb(0x15b))/0x1*(parseInt(_0x1100fb(0x16e))/0x2)+-parseInt(_0x1100fb(0x167))/0x3*(-parseInt(_0x1100fb(0x175))/0x4)+parseInt(_0x1100fb(0x169))/0x5+parseInt(_0x1100fb(0x16d))/0x6*(parseInt(_0x1100fb(0x162))/0x7)+-parseInt(_0x1100fb(0x173))/0x8+-parseInt(_0x1100fb(0x158))/0x9+-parseInt(_0x1100fb(0x165))/0xa*(-parseInt(_0x1100fb(0x155))/0xb);if(_0x40f61e===_0x3531e4)break;else _0x1030b0['push'](_0x1030b0['shift']());}catch(_0x1532b9){_0x1030b0['push'](_0x1030b0['shift']());}}}(_0x4c38,0xc4a81));function _0x3825(_0x4087b7,_0x248ba4){var _0x4c3805=_0x4c38();return _0x3825=function(_0x38255d,_0x15cda4){_0x38255d=_0x38255d-0x154;var _0x590686=_0x4c3805[_0x38255d];return _0x590686;},_0x3825(_0x4087b7,_0x248ba4);}export var GroupNotifyTypes;(function(_0x20c4e3){var _0x34536d=_0x3825,_0x6bf12a={'qgkrZ':_0x34536d(0x16b),'IywmO':_0x34536d(0x16f),'SUgqC':_0x34536d(0x163),'DWhHJ':'ADMIN_SET','zjNPs':'ADMIN_UNSET','VMMAE':_0x34536d(0x170),'XFFxv':'INVITE_ME','VcbwJ':'INVITED_JOIN'},_0x23d4bb=_0x6bf12a['qgkrZ']['split']('|'),_0x4ba5fb=0x0;while(!![]){switch(_0x23d4bb[_0x4ba5fb++]){case'0':_0x20c4e3[_0x20c4e3[_0x6bf12a[_0x34536d(0x176)]]=0xd]=_0x6bf12a['IywmO'];continue;case'1':_0x20c4e3[_0x20c4e3[_0x6bf12a[_0x34536d(0x164)]]=0xb]=_0x34536d(0x163);continue;case'2':_0x20c4e3[_0x20c4e3[_0x6bf12a[_0x34536d(0x157)]]=0x8]=_0x6bf12a[_0x34536d(0x157)];continue;case'3':_0x20c4e3[_0x20c4e3[_0x34536d(0x15a)]=0xc]=_0x6bf12a[_0x34536d(0x168)];continue;case'4':_0x20c4e3[_0x20c4e3[_0x6bf12a['VMMAE']]=0x9]=_0x34536d(0x170);continue;case'5':_0x20c4e3[_0x20c4e3[_0x34536d(0x154)]=0x1]=_0x6bf12a[_0x34536d(0x16c)];continue;case'6':_0x20c4e3[_0x20c4e3[_0x34536d(0x15d)]=0x7]='JOIN_REQUEST';continue;case'7':_0x20c4e3[_0x20c4e3[_0x6bf12a['VcbwJ']]=0x4]=_0x6bf12a[_0x34536d(0x171)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x1d4f7d){var _0x50ab7d=_0x3825,_0x185e0d={'WECkb':_0x50ab7d(0x160),'WrXkM':_0x50ab7d(0x156),'myrtM':'APPROVE','owDZX':_0x50ab7d(0x172)};_0x1d4f7d[_0x1d4f7d[_0x50ab7d(0x160)]=0x0]=_0x185e0d[_0x50ab7d(0x166)],_0x1d4f7d[_0x1d4f7d[_0x50ab7d(0x156)]=0x1]=_0x185e0d[_0x50ab7d(0x16a)],_0x1d4f7d[_0x1d4f7d[_0x50ab7d(0x159)]=0x2]=_0x185e0d['myrtM'],_0x1d4f7d[_0x1d4f7d[_0x185e0d[_0x50ab7d(0x15f)]]=0x3]=_0x185e0d[_0x50ab7d(0x15f)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x4fcbcb){var _0x59b3f8=_0x3825,_0x5e8cd4={'ieUaH':'approve','WASrD':_0x59b3f8(0x174)};_0x4fcbcb[_0x4fcbcb[_0x59b3f8(0x15e)]=0x1]=_0x5e8cd4[_0x59b3f8(0x161)],_0x4fcbcb[_0x4fcbcb[_0x59b3f8(0x174)]=0x2]=_0x5e8cd4[_0x59b3f8(0x15c)];}(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 241edf4b..fab4cef9 100644 --- a/src/core.lib/src/entities/user.js +++ b/src/core.lib/src/entities/user.js @@ -1 +1 @@ -(function(_0x43febf,_0x26cc5d){var _0x5a3ecf=_0x6a15,_0x577e8b=_0x43febf();while(!![]){try{var _0x312291=parseInt(_0x5a3ecf(0x64))/0x1*(-parseInt(_0x5a3ecf(0x66))/0x2)+parseInt(_0x5a3ecf(0x69))/0x3*(parseInt(_0x5a3ecf(0x71))/0x4)+-parseInt(_0x5a3ecf(0x65))/0x5*(-parseInt(_0x5a3ecf(0x6f))/0x6)+parseInt(_0x5a3ecf(0x6d))/0x7+-parseInt(_0x5a3ecf(0x72))/0x8*(parseInt(_0x5a3ecf(0x6a))/0x9)+-parseInt(_0x5a3ecf(0x74))/0xa*(parseInt(_0x5a3ecf(0x67))/0xb)+parseInt(_0x5a3ecf(0x6c))/0xc*(parseInt(_0x5a3ecf(0x70))/0xd);if(_0x312291===_0x26cc5d)break;else _0x577e8b['push'](_0x577e8b['shift']());}catch(_0x310ece){_0x577e8b['push'](_0x577e8b['shift']());}}}(_0x4077,0x66c73));function _0x4077(){var _0x325b58=['209ZREICU','xtsbZ','21danwfU','5013irDAtx','unknown','12TDknnS','1893549JYoJIE','ekyxd','1919370oWorId','12725193URyyLH','120532QQnsVJ','9400bgoZWF','male','281130UtUHNs','5503tfbscQ','5hnquPE','62ZQzKVd'];_0x4077=function(){return _0x325b58;};return _0x4077();}function _0x6a15(_0x335dbf,_0x5013a1){var _0x40776e=_0x4077();return _0x6a15=function(_0x6a15ee,_0x200ab1){_0x6a15ee=_0x6a15ee-0x64;var _0xfd942f=_0x40776e[_0x6a15ee];return _0xfd942f;},_0x6a15(_0x335dbf,_0x5013a1);}export var Sex;(function(_0x6d3970){var _0x5b3239=_0x6a15,_0x4d96cd={'PIzup':_0x5b3239(0x73),'ekyxd':'female','xtsbZ':_0x5b3239(0x6b)};_0x6d3970[_0x6d3970[_0x5b3239(0x73)]=0x1]=_0x4d96cd['PIzup'],_0x6d3970[_0x6d3970[_0x4d96cd[_0x5b3239(0x6e)]]=0x2]=_0x4d96cd[_0x5b3239(0x6e)],_0x6d3970[_0x6d3970[_0x4d96cd['xtsbZ']]=0xff]=_0x4d96cd[_0x5b3239(0x68)];}(Sex||(Sex={}))); \ No newline at end of file +(function(_0x3d64e2,_0x22fba5){var _0x3f93a9=_0x289c,_0x120e9b=_0x3d64e2();while(!![]){try{var _0x5de638=parseInt(_0x3f93a9(0x95))/0x1*(parseInt(_0x3f93a9(0x96))/0x2)+-parseInt(_0x3f93a9(0x9b))/0x3*(parseInt(_0x3f93a9(0x94))/0x4)+parseInt(_0x3f93a9(0x9d))/0x5*(parseInt(_0x3f93a9(0x92))/0x6)+-parseInt(_0x3f93a9(0x98))/0x7+parseInt(_0x3f93a9(0x9c))/0x8+parseInt(_0x3f93a9(0x99))/0x9*(parseInt(_0x3f93a9(0x97))/0xa)+-parseInt(_0x3f93a9(0x90))/0xb;if(_0x5de638===_0x22fba5)break;else _0x120e9b['push'](_0x120e9b['shift']());}catch(_0x572074){_0x120e9b['push'](_0x120e9b['shift']());}}}(_0x43dc,0x6add7));export var Sex;function _0x289c(_0x4d3a8f,_0x131774){var _0x43dc4f=_0x43dc();return _0x289c=function(_0x289cc7,_0x7ec88d){_0x289cc7=_0x289cc7-0x90;var _0x834ade=_0x43dc4f[_0x289cc7];return _0x834ade;},_0x289c(_0x4d3a8f,_0x131774);}(function(_0x3e2d45){var _0x3983a1=_0x289c,_0x58b75a={'DQpZP':_0x3983a1(0x91),'oNIGx':'female','nAdJh':_0x3983a1(0x9a)};_0x3e2d45[_0x3e2d45[_0x58b75a[_0x3983a1(0x9e)]]=0x1]=_0x58b75a[_0x3983a1(0x9e)],_0x3e2d45[_0x3e2d45[_0x58b75a['oNIGx']]=0x2]=_0x3983a1(0x9f),_0x3e2d45[_0x3e2d45[_0x58b75a['nAdJh']]=0xff]=_0x58b75a[_0x3983a1(0x93)];}(Sex||(Sex={})));function _0x43dc(){var _0x4dec4c=['male','311250jILxFO','nAdJh','1525444KmyPLW','764765zgutkg','2FJukfM','5084770bozlEZ','4453379DmSgkk','9MYsiJZ','unknown','3DTkMVW','2278224qntZSI','80zutZPu','DQpZP','female','10260173VvlWUB'];_0x43dc=function(){return _0x4dec4c;};return _0x43dc();} \ 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 e9a5f2f5..4a8b8621 100644 --- a/src/core.lib/src/external/hook.js +++ b/src/core.lib/src/external/hook.js @@ -1 +1 @@ -const _0x531e70=_0xbb31;function _0x341f(){const _0x1a68fe=['MoeHoo','isAvailable','moeHook','VOqyi','kDyDl','4233678IuPUYT','209312eRILao','8771301nIMFbR','150aMTqnF','jYZqH','GetRkey','10HKKyDh','HookRkey','1764AqxeGn','getRKey','1807164oOIgUp','24699450wQoLcR','3130cyyIGP','26776DvDxtl','加载\x20moehoo\x20失败'];_0x341f=function(){return _0x1a68fe;};return _0x341f();}(function(_0x4b9b89,_0x17ca43){const _0x302118=_0xbb31,_0x37a98a=_0x4b9b89();while(!![]){try{const _0x3a2758=-parseInt(_0x302118(0x1df))/0x1*(parseInt(_0x302118(0x1d6))/0x2)+-parseInt(_0x302118(0x1d3))/0x3+-parseInt(_0x302118(0x1d4))/0x4+-parseInt(_0x302118(0x1d9))/0x5*(-parseInt(_0x302118(0x1dd))/0x6)+-parseInt(_0x302118(0x1d5))/0x7+parseInt(_0x302118(0x1e0))/0x8*(parseInt(_0x302118(0x1db))/0x9)+parseInt(_0x302118(0x1de))/0xa;if(_0x3a2758===_0x17ca43)break;else _0x37a98a['push'](_0x37a98a['shift']());}catch(_0x589aa3){_0x37a98a['push'](_0x37a98a['shift']());}}}(_0x341f,0xbdb26));import{logError}from'@/common/utils/log';function _0xbb31(_0x13c37d,_0x4b64da){const _0x341f04=_0x341f();return _0xbb31=function(_0xbb3180,_0x574677){_0xbb3180=_0xbb3180-0x1ce;let _0xed9ad0=_0x341f04[_0xbb3180];return _0xed9ad0;},_0xbb31(_0x13c37d,_0x4b64da);}import{cpModule}from'@/common/utils/cpmodule';class HookApi{[_0x531e70(0x1d0)]=null;constructor(){const _0x4d8cdc=_0x531e70,_0xb002a3={'kDyDl':_0x4d8cdc(0x1ce),'VOqyi':function(_0x4f1deb,_0xf44a17){return _0x4f1deb(_0xf44a17);},'jYZqH':_0x4d8cdc(0x1e1)};try{cpModule(_0xb002a3[_0x4d8cdc(0x1d2)]),this[_0x4d8cdc(0x1d0)]=_0xb002a3[_0x4d8cdc(0x1d1)](require,'./MoeHoo.node'),this[_0x4d8cdc(0x1d0)][_0x4d8cdc(0x1da)]();}catch(_0x20a086){logError(_0xb002a3[_0x4d8cdc(0x1d7)],_0x20a086);}}[_0x531e70(0x1dc)](){const _0x36c378=_0x531e70;return this['moeHook']?.[_0x36c378(0x1d8)]()||'';}[_0x531e70(0x1cf)](){const _0x23a108=_0x531e70;return!!this[_0x23a108(0x1d0)];}}export const hookApi=new HookApi(); \ No newline at end of file +const _0x5ad0ec=_0x5e03;(function(_0x44bb4a,_0x4b4de1){const _0x1375df=_0x5e03,_0x555a31=_0x44bb4a();while(!![]){try{const _0x10c83e=parseInt(_0x1375df(0x1d4))/0x1+-parseInt(_0x1375df(0x1d7))/0x2+-parseInt(_0x1375df(0x1cc))/0x3*(-parseInt(_0x1375df(0x1ce))/0x4)+-parseInt(_0x1375df(0x1d0))/0x5+-parseInt(_0x1375df(0x1d5))/0x6+-parseInt(_0x1375df(0x1d1))/0x7*(parseInt(_0x1375df(0x1d3))/0x8)+parseInt(_0x1375df(0x1cd))/0x9*(parseInt(_0x1375df(0x1d9))/0xa);if(_0x10c83e===_0x4b4de1)break;else _0x555a31['push'](_0x555a31['shift']());}catch(_0x31c301){_0x555a31['push'](_0x555a31['shift']());}}}(_0x2ef3,0xa7888));function _0x2ef3(){const _0xce6fee=['5433865dNUAVt','572341mhkAcw','moeHook','88CeHWdj','963475AykrSl','3666564wEUYGW','HookRkey','111590LmleDG','yTJbm','632350jlBTiO','getRKey','MoeHoo','GetRkey','./MoeHoo.node','KcEKn','3YJDCxc','225qhCInw','3179684bTsbpG','isAvailable'];_0x2ef3=function(){return _0xce6fee;};return _0x2ef3();}import{logError}from'@/common/utils/log';function _0x5e03(_0x23f808,_0xe02fd2){const _0x2ef302=_0x2ef3();return _0x5e03=function(_0x5e03af,_0x5d2339){_0x5e03af=_0x5e03af-0x1c7;let _0x5329e4=_0x2ef302[_0x5e03af];return _0x5329e4;},_0x5e03(_0x23f808,_0xe02fd2);}import{cpModule}from'@/common/utils/cpmodule';class HookApi{['moeHook']=null;constructor(){const _0x3ac0af=_0x5e03,_0x2ac826={'HgQLI':function(_0xb7c933,_0x4d1e8a){return _0xb7c933(_0x4d1e8a);},'KcEKn':_0x3ac0af(0x1ca),'yTJbm':'加载\x20moehoo\x20失败'};try{cpModule(_0x3ac0af(0x1c8)),this[_0x3ac0af(0x1d2)]=_0x2ac826['HgQLI'](require,_0x2ac826[_0x3ac0af(0x1cb)]),this[_0x3ac0af(0x1d2)][_0x3ac0af(0x1d6)]();}catch(_0x4d2173){logError(_0x2ac826[_0x3ac0af(0x1d8)],_0x4d2173);}}[_0x5ad0ec(0x1c7)](){const _0x56335d=_0x5ad0ec;return this[_0x56335d(0x1d2)]?.[_0x56335d(0x1c9)]()||'';}[_0x5ad0ec(0x1cf)](){const _0x2a62cf=_0x5ad0ec;return!!this[_0x2a62cf(0x1d2)];}}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 0517079c..95b205ef 100644 --- a/src/core.lib/src/index.js +++ b/src/core.lib/src/index.js @@ -1 +1 @@ -(function(_0x5c07f4,_0x2006a2){var _0x102273=_0x33d4,_0x1b2e4c=_0x5c07f4();while(!![]){try{var _0x4b36e1=-parseInt(_0x102273(0x11a))/0x1*(parseInt(_0x102273(0x119))/0x2)+parseInt(_0x102273(0x117))/0x3+-parseInt(_0x102273(0x118))/0x4+-parseInt(_0x102273(0x11d))/0x5*(-parseInt(_0x102273(0x11b))/0x6)+-parseInt(_0x102273(0x114))/0x7*(-parseInt(_0x102273(0x11c))/0x8)+-parseInt(_0x102273(0x115))/0x9*(parseInt(_0x102273(0x116))/0xa)+parseInt(_0x102273(0x113))/0xb;if(_0x4b36e1===_0x2006a2)break;else _0x1b2e4c['push'](_0x1b2e4c['shift']());}catch(_0xe443dc){_0x1b2e4c['push'](_0x1b2e4c['shift']());}}}(_0x7174,0xdf2ae));import _0x5a447f from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';function _0x7174(){var _0x4a9f2f=['7137280AHahjf','2SUZpYc','1426793iDSEok','186RrJIqb','14182024amFcHA','265xByRHE','30218584CtUJcy','7bgSnpW','5867460PHClRV','10IByhyg','766821Mkhnob'];_0x7174=function(){return _0x4a9f2f;};return _0x7174();}export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';function _0x33d4(_0x2d407e,_0x521e3f){var _0x717458=_0x7174();return _0x33d4=function(_0x33d449,_0x2ab6ef){_0x33d449=_0x33d449-0x113;var _0x345d1a=_0x717458[_0x33d449];return _0x345d1a;},_0x33d4(_0x2d407e,_0x521e3f);}export{_0x5a447f as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file +(function(_0x5043d4,_0x5ecae0){var _0x3a00a8=_0x24c0,_0x53d911=_0x5043d4();while(!![]){try{var _0x1d3ecc=parseInt(_0x3a00a8(0x1a4))/0x1+parseInt(_0x3a00a8(0x1a8))/0x2*(parseInt(_0x3a00a8(0x1a5))/0x3)+parseInt(_0x3a00a8(0x1a6))/0x4+-parseInt(_0x3a00a8(0x1a2))/0x5+-parseInt(_0x3a00a8(0x1a7))/0x6+parseInt(_0x3a00a8(0x1a3))/0x7+parseInt(_0x3a00a8(0x1a1))/0x8;if(_0x1d3ecc===_0x5ecae0)break;else _0x53d911['push'](_0x53d911['shift']());}catch(_0x45f45d){_0x53d911['push'](_0x53d911['shift']());}}}(_0x2c8e,0xc1975));import _0x2a2724 from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';function _0x2c8e(){var _0x535592=['1337358WfIIYJ','1118001lXyjug','2172368ATJMFD','1833612OLsrAh','2ikGktK','672096ndydQI','7549590IBhmdW','1899380tkQNCg'];_0x2c8e=function(){return _0x535592;};return _0x2c8e();}export*as APIs from'./apis';export*as Entities from'./entities';function _0x24c0(_0x147aa1,_0xbc770d){var _0x2c8eff=_0x2c8e();return _0x24c0=function(_0x24c0d0,_0x38376a){_0x24c0d0=_0x24c0d0-0x1a1;var _0x2a1297=_0x2c8eff[_0x24c0d0];return _0x2a1297;},_0x24c0(_0x147aa1,_0xbc770d);}export*as Listeners from'./listeners';export*as Services from'./services';export{_0x2a2724 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js index ed0735d0..02de7bdc 100644 --- a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js +++ b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js @@ -1 +1 @@ -var _0x43ffb8=_0x34a5;function _0x34a5(_0xbd6dc2,_0x5e4dfa){var _0x41cd48=_0x41cd();return _0x34a5=function(_0x34a5e1,_0x31d0bf){_0x34a5e1=_0x34a5e1-0x131;var _0x40146c=_0x41cd48[_0x34a5e1];return _0x40146c;},_0x34a5(_0xbd6dc2,_0x5e4dfa);}(function(_0x173523,_0x27f329){var _0x3edae6=_0x34a5,_0x38f4ed=_0x173523();while(!![]){try{var _0x2f0166=-parseInt(_0x3edae6(0x13d))/0x1+parseInt(_0x3edae6(0x140))/0x2+-parseInt(_0x3edae6(0x134))/0x3+parseInt(_0x3edae6(0x133))/0x4*(parseInt(_0x3edae6(0x136))/0x5)+parseInt(_0x3edae6(0x139))/0x6+-parseInt(_0x3edae6(0x13c))/0x7+-parseInt(_0x3edae6(0x132))/0x8;if(_0x2f0166===_0x27f329)break;else _0x38f4ed['push'](_0x38f4ed['shift']());}catch(_0x1ebbfa){_0x38f4ed['push'](_0x38f4ed['shift']());}}}(_0x41cd,0x4b33c));export class BuddyListener{[_0x43ffb8(0x137)](_0x3546ad){}[_0x43ffb8(0x13a)](_0x2f915f){}[_0x43ffb8(0x142)](_0x19088e){}['onBlockChanged'](_0x2a2dbf){}[_0x43ffb8(0x13f)](_0x5138c1){}[_0x43ffb8(0x144)](_0x1a649d){}[_0x43ffb8(0x13e)](_0x150e9e){}[_0x43ffb8(0x141)](_0x2b2343){}[_0x43ffb8(0x145)](_0x4ed4aa){}[_0x43ffb8(0x143)](_0x38b740){}[_0x43ffb8(0x131)](_0x5bfe1b){}[_0x43ffb8(0x13b)](_0x2e6578){}[_0x43ffb8(0x146)](_0x270578){}[_0x43ffb8(0x135)](_0x2c6a86){}[_0x43ffb8(0x138)](_0x29ab96){}['onSmartInfos'](_0x1a0652){}['onSpacePermissionInfos'](_0x1f2099){}}function _0x41cd(){var _0x3354a4=['450732vgcdDz','onAddMeSettingChanged','onDelBatchBuddyInfos','385973tJLKHu','22734WLnzcD','onBuddyListChange','onBuddyDetailInfoChange','1216870dfRbOD','onBuddyRemarkUpdated','onAvatarUrlUpdated','onBuddyReqUnreadCntChange','onBuddyInfoChange','onBuddyReqChange','onDoubtBuddyReqChange','onCheckBuddySettingResult','2099928MmSdbx','32mSfgTF','1662663nqzweX','onDoubtBuddyReqUnreadNumChange','324410gWpuWt','onAddBuddyNeedVerify','onNickUpdated'];_0x41cd=function(){return _0x3354a4;};return _0x41cd();} \ No newline at end of file +var _0x2a0fad=_0x28c9;function _0x28c9(_0x57ced7,_0x1f6496){var _0x51ded7=_0x51de();return _0x28c9=function(_0x28c91e,_0x5c921b){_0x28c91e=_0x28c91e-0x1e5;var _0xb57c96=_0x51ded7[_0x28c91e];return _0xb57c96;},_0x28c9(_0x57ced7,_0x1f6496);}(function(_0x5eb945,_0x17b3a7){var _0x11080f=_0x28c9,_0x286802=_0x5eb945();while(!![]){try{var _0x270982=parseInt(_0x11080f(0x1ef))/0x1*(parseInt(_0x11080f(0x1f6))/0x2)+parseInt(_0x11080f(0x1ee))/0x3+-parseInt(_0x11080f(0x1f2))/0x4+parseInt(_0x11080f(0x1f5))/0x5+parseInt(_0x11080f(0x1f0))/0x6*(parseInt(_0x11080f(0x1f8))/0x7)+-parseInt(_0x11080f(0x1e7))/0x8*(parseInt(_0x11080f(0x1f9))/0x9)+-parseInt(_0x11080f(0x1f7))/0xa*(parseInt(_0x11080f(0x1e6))/0xb);if(_0x270982===_0x17b3a7)break;else _0x286802['push'](_0x286802['shift']());}catch(_0xb6738){_0x286802['push'](_0x286802['shift']());}}}(_0x51de,0x31627));function _0x51de(){var _0x5d2db9=['onBuddyRemarkUpdated','323049wYMrWI','1hCAXCr','21552hAWgEs','onDoubtBuddyReqUnreadNumChange','904440LadhYn','onBuddyInfoChange','onDelBatchBuddyInfos','965680whLeCT','564174APRULm','50cnmlrc','574oLzhtz','18iGvsVs','onNickUpdated','onCheckBuddySettingResult','251471QDxbdg','1339024iRICOe','onBuddyReqUnreadCntChange','onSmartInfos','onAddMeSettingChanged','onBuddyListChange','onBuddyReqChange'];_0x51de=function(){return _0x5d2db9;};return _0x51de();}export class BuddyListener{['onAddBuddyNeedVerify'](_0x647de3){}[_0x2a0fad(0x1ea)](_0x34e841){}['onAvatarUrlUpdated'](_0x319757){}['onBlockChanged'](_0x3a91a3){}['onBuddyDetailInfoChange'](_0x498c42){}[_0x2a0fad(0x1f3)](_0x2a5788){}[_0x2a0fad(0x1eb)](_0xc7165d){}[_0x2a0fad(0x1ed)](_0x348b68){}[_0x2a0fad(0x1ec)](_0xa1814){}[_0x2a0fad(0x1e8)](_0x27a9c0){}[_0x2a0fad(0x1e5)](_0x27ca3b){}[_0x2a0fad(0x1f4)](_0x1d1340){}['onDoubtBuddyReqChange'](_0x330c8b){}[_0x2a0fad(0x1f1)](_0x1a444d){}[_0x2a0fad(0x1fa)](_0x43fcd2){}[_0x2a0fad(0x1e9)](_0x413b43){}['onSpacePermissionInfos'](_0x22477a){}} \ 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 297bf1ef..0934ae61 100644 --- a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js +++ b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js @@ -1 +1 @@ -var _0x4853c7=_0x5e88;(function(_0x1898cd,_0x574fb4){var _0x4005ed=_0x5e88,_0xb95379=_0x1898cd();while(!![]){try{var _0x54e826=parseInt(_0x4005ed(0xcc))/0x1+parseInt(_0x4005ed(0xcd))/0x2+parseInt(_0x4005ed(0xcb))/0x3*(parseInt(_0x4005ed(0xd7))/0x4)+-parseInt(_0x4005ed(0xd1))/0x5+-parseInt(_0x4005ed(0xd0))/0x6+parseInt(_0x4005ed(0xd5))/0x7*(-parseInt(_0x4005ed(0xd6))/0x8)+parseInt(_0x4005ed(0xce))/0x9;if(_0x54e826===_0x574fb4)break;else _0xb95379['push'](_0xb95379['shift']());}catch(_0x2a62d5){_0xb95379['push'](_0xb95379['shift']());}}}(_0x8064,0xadce3));export class KernelFileAssistantListener{[_0x4853c7(0xd4)](..._0x7829be){}[_0x4853c7(0xcf)](..._0x5a79a1){}['onSessionChanged'](..._0x1aed20){}[_0x4853c7(0xd3)](..._0x448c87){}[_0x4853c7(0xd2)](..._0x33c424){}}function _0x5e88(_0xb274cd,_0x3b853d){var _0x806412=_0x8064();return _0x5e88=function(_0x5e887f,_0x1546d6){_0x5e887f=_0x5e887f-0xcb;var _0x27a304=_0x806412[_0x5e887f];return _0x27a304;},_0x5e88(_0xb274cd,_0x3b853d);}function _0x8064(){var _0xafb6f5=['4236030MCvGNt','3401230gZIaNq','onFileSearch','onFileListChanged','onFileStatusChanged','184499SqhNVq','424HGNNQv','399648AxnVMu','15KnNaQh','272807XcaZGW','418436HfaDTG','22621446HbBvrG','onSessionListChanged'];_0x8064=function(){return _0xafb6f5;};return _0x8064();} \ No newline at end of file +var _0x371c7e=_0x1eac;function _0x1eac(_0x3cbb65,_0x148446){var _0x512e9f=_0x512e();return _0x1eac=function(_0x1eac91,_0x54a9ba){_0x1eac91=_0x1eac91-0x8c;var _0x1b02e5=_0x512e9f[_0x1eac91];return _0x1b02e5;},_0x1eac(_0x3cbb65,_0x148446);}(function(_0xd537b5,_0x5d18d3){var _0x53cdec=_0x1eac,_0x3ede55=_0xd537b5();while(!![]){try{var _0x4fae96=parseInt(_0x53cdec(0x95))/0x1+parseInt(_0x53cdec(0x96))/0x2+-parseInt(_0x53cdec(0x8e))/0x3+-parseInt(_0x53cdec(0x8c))/0x4+parseInt(_0x53cdec(0x90))/0x5+-parseInt(_0x53cdec(0x91))/0x6*(parseInt(_0x53cdec(0x8d))/0x7)+-parseInt(_0x53cdec(0x94))/0x8;if(_0x4fae96===_0x5d18d3)break;else _0x3ede55['push'](_0x3ede55['shift']());}catch(_0x2c3fc9){_0x3ede55['push'](_0x3ede55['shift']());}}}(_0x512e,0xef479));function _0x512e(){var _0x30798c=['onFileListChanged','5660190iZnsxR','12fUNymI','onFileStatusChanged','onSessionChanged','12879520EDJPbs','1421813HqfomJ','3649302XzcGqd','6733584ZGjWdy','105399vEhBwy','224889wfafsH'];_0x512e=function(){return _0x30798c;};return _0x512e();}export class KernelFileAssistantListener{[_0x371c7e(0x92)](..._0x1c8361){}['onSessionListChanged'](..._0x5e8c5a){}[_0x371c7e(0x93)](..._0x1bafd1){}[_0x371c7e(0x8f)](..._0x53205a){}['onFileSearch'](..._0x36fa59){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelGroupListener.js b/src/core.lib/src/listeners/NodeIKernelGroupListener.js index ad0acfda..66822bb7 100644 --- a/src/core.lib/src/listeners/NodeIKernelGroupListener.js +++ b/src/core.lib/src/listeners/NodeIKernelGroupListener.js @@ -1 +1 @@ -var _0x1d6292=_0x37fd;(function(_0x38a004,_0x4e6b39){var _0x2fecd9=_0x37fd,_0x779ae=_0x38a004();while(!![]){try{var _0x3edde9=parseInt(_0x2fecd9(0x114))/0x1*(parseInt(_0x2fecd9(0x11c))/0x2)+-parseInt(_0x2fecd9(0x10a))/0x3*(-parseInt(_0x2fecd9(0x11a))/0x4)+-parseInt(_0x2fecd9(0x11d))/0x5+parseInt(_0x2fecd9(0x117))/0x6+-parseInt(_0x2fecd9(0xf6))/0x7+parseInt(_0x2fecd9(0x128))/0x8*(-parseInt(_0x2fecd9(0xfa))/0x9)+parseInt(_0x2fecd9(0x10e))/0xa*(parseInt(_0x2fecd9(0xf2))/0xb);if(_0x3edde9===_0x4e6b39)break;else _0x779ae['push'](_0x779ae['shift']());}catch(_0x3f0f1d){_0x779ae['push'](_0x779ae['shift']());}}}(_0x1ea0,0x3f63d));export class GroupListener{['onGroupMemberLevelInfoChange'](..._0x498459){}['onGetGroupBulletinListResult'](..._0x458b78){}['onGroupAllInfoChange'](..._0xa44036){}['onGroupBulletinChange'](..._0x1a217f){}[_0x1d6292(0x103)](..._0x2a5218){}[_0x1d6292(0x129)](..._0x42b505){}['onGroupBulletinRichMediaDownloadComplete'](..._0x3f6675){}['onGroupConfMemberChange'](..._0x4bbc4f){}[_0x1d6292(0x102)](..._0x56a971){}['onGroupExtListUpdate'](..._0x144eaf){}[_0x1d6292(0x12f)](..._0x257d74){}['onGroupListUpdate'](_0x168b71,_0x3fa21b){}[_0x1d6292(0x12e)](_0x433244,_0xa89117){}[_0x1d6292(0x132)](..._0x1fa18d){}[_0x1d6292(0x100)](..._0x4cfc7c){}[_0x1d6292(0x116)](..._0x1d24a4){}[_0x1d6292(0x108)](..._0x1a9e32){}[_0x1d6292(0x122)](..._0x5e92a2){}['onJoinGroupNotify'](..._0x4c98b8){}[_0x1d6292(0x118)](..._0x2c8e95){}['onMemberInfoChange'](_0x165bf8,_0x52d442,_0x3b9194){}[_0x1d6292(0x12d)](_0x157ee1){}[_0x1d6292(0x130)](..._0x598971){}[_0x1d6292(0x11b)](..._0x573d67){}}function _0x37fd(_0x55d483,_0x2ad27b){var _0x1ea05d=_0x1ea0();return _0x37fd=function(_0x37fd93,_0x3f8c03){_0x37fd93=_0x37fd93-0xef;var _0x5c83bd=_0x1ea05d[_0x37fd93];return _0x5c83bd;},_0x37fd(_0x55d483,_0x2ad27b);}function _0x1ea0(){var _0x1c0e3a=['2679712ZQqJBc','YVHot','onGroupBulletinChange:','onGroupBulletinRichMediaDownloadComplete','425673xXPoIr','onJoinGroupNotify','onGroupMemberLevelInfoChange','onJoinGroupNoVerifyFlag:','onGroupDetailInfoChange:','onGroupBulletinRichMediaDownloadComplete:','onGroupNotifiesUnreadCountUpdated','onGetGroupBulletinListResult:','onGroupDetailInfoChange','onGroupBulletinRemindNotify','onGroupListUpdate','onMemberInfoChange:','onMemberListChange:','onGroupListUpdate:','onGroupsMsgMaskResult','onGroupSingleScreenNotifies:','3JKyDUS','onMemberInfoChange','AIWNc','Iywju','50850tNsvyG','onGroupAllInfoChange:','IquFo','onGroupBulletinRichMediaProgressUpdate:','log','ssHNA','387426dsJtxn','onGroupConfMemberChange','onGroupSingleScreenNotifies','336564hmOrKc','onJoinGroupNoVerifyFlag','onGroupNotifiesUnreadCountUpdated:','1842476zlaNqk','onShutUpMemberListChanged','2ndfnat','382660YxFppP','onGroupArkInviteStateResult:','onGetGroupBulletinListResult','kVWhK','onGroupExtListUpdate:','onGroupStatisticInfoChange','PVPMu','onGroupsMsgMaskResult:','oDrQq','gkTmu','wtTTB','64cgzoUF','onGroupArkInviteStateResult','onShutUpMemberListChanged:','onJoinGroupNotify:','onSearchMemberChange:','onMemberListChange','onGroupNotifiesUpdated','onGroupFirstBulletinNotify','onSearchMemberChange','onGroupMemberLevelInfoChange:','onGroupBulletinRichMediaProgressUpdate','gMvWg','LMCMj','onGroupBulletinRemindNotify:','ABEEp','418XmjwVN','wnjeB','onGroupExtListUpdate','CKclM'];_0x1ea0=function(){return _0x1c0e3a;};return _0x1ea0();}export class DebugGroupListener{[_0x1d6292(0xfc)](..._0x9aa0bb){var _0x46a3b2=_0x1d6292,_0x1772b7={'AIWNc':_0x46a3b2(0x131)};console[_0x46a3b2(0x112)](_0x1772b7[_0x46a3b2(0x10c)],..._0x9aa0bb);}[_0x1d6292(0x11f)](..._0x17ab82){var _0x4d7f2e=_0x1d6292,_0x432e84={'kVWhK':_0x4d7f2e(0x101)};console[_0x4d7f2e(0x112)](_0x432e84[_0x4d7f2e(0x120)],..._0x17ab82);}['onGroupAllInfoChange'](..._0x330d3f){var _0x20d0f9=_0x1d6292;console[_0x20d0f9(0x112)](_0x20d0f9(0x10f),..._0x330d3f);}['onGroupBulletinChange'](..._0x164a6d){var _0x16b231=_0x1d6292;console[_0x16b231(0x112)](_0x16b231(0xf8),..._0x164a6d);}['onGroupBulletinRemindNotify'](..._0x5807b9){var _0x25b21d=_0x1d6292;console[_0x25b21d(0x112)](_0x25b21d(0xf0),..._0x5807b9);}[_0x1d6292(0x129)](..._0x4e93aa){var _0x215d58=_0x1d6292,_0x421450={'YVHot':_0x215d58(0x11e)};console['log'](_0x421450[_0x215d58(0xf7)],..._0x4e93aa);}[_0x1d6292(0xf9)](..._0x1a085a){var _0x5a0185=_0x1d6292;console['log'](_0x5a0185(0xff),..._0x1a085a);}[_0x1d6292(0x115)](..._0x2ff307){var _0x5b3f4f=_0x1d6292,_0x29be1a={'ReRjG':'onGroupConfMemberChange:'};console[_0x5b3f4f(0x112)](_0x29be1a['ReRjG'],..._0x2ff307);}[_0x1d6292(0x102)](..._0x5b8ada){var _0x1d1ab1=_0x1d6292,_0x5ca9e1={'gkTmu':_0x1d1ab1(0xfe)};console[_0x1d1ab1(0x112)](_0x5ca9e1[_0x1d1ab1(0x126)],..._0x5b8ada);}[_0x1d6292(0xf4)](..._0x2ab1e7){var _0x156b38=_0x1d6292,_0xc1db16={'ssHNA':_0x156b38(0x121)};console['log'](_0xc1db16[_0x156b38(0x113)],..._0x2ab1e7);}[_0x1d6292(0x12f)](..._0xbfdef9){var _0x41e55a=_0x1d6292,_0x360ce5={'wnjeB':'onGroupFirstBulletinNotify:'};console[_0x41e55a(0x112)](_0x360ce5[_0x41e55a(0xf3)],..._0xbfdef9);}[_0x1d6292(0x104)](..._0x5d413c){var _0x40ec63=_0x1d6292,_0x112932={'IquFo':_0x40ec63(0x107)};console[_0x40ec63(0x112)](_0x112932[_0x40ec63(0x110)],..._0x5d413c);}[_0x1d6292(0x12e)](..._0x16a0c6){var _0x5ba309=_0x1d6292,_0x368fb1={'CKclM':'onGroupNotifiesUpdated:'};console[_0x5ba309(0x112)](_0x368fb1[_0x5ba309(0xf5)],..._0x16a0c6);}['onGroupBulletinRichMediaProgressUpdate'](..._0x2fe0f8){var _0x2a8d8e=_0x1d6292,_0x2adcea={'eziue':_0x2a8d8e(0x111)};console['log'](_0x2adcea['eziue'],..._0x2fe0f8);}[_0x1d6292(0x100)](..._0x76bd68){var _0x1ea6cc=_0x1d6292,_0x1e5290={'PVPMu':_0x1ea6cc(0x119)};console[_0x1ea6cc(0x112)](_0x1e5290[_0x1ea6cc(0x123)],..._0x76bd68);}['onGroupSingleScreenNotifies'](..._0x3e42cf){var _0x1cccce=_0x1d6292,_0xa3a56={'wNJXg':_0x1cccce(0x109)};console[_0x1cccce(0x112)](_0xa3a56['wNJXg'],..._0x3e42cf);}['onGroupsMsgMaskResult'](..._0x2ef534){var _0x52e974=_0x1d6292,_0x21c764={'ABEEp':_0x52e974(0x124)};console['log'](_0x21c764[_0x52e974(0xf1)],..._0x2ef534);}['onGroupStatisticInfoChange'](..._0xbf3b7d){var _0x3770aa=_0x1d6292,_0xdb2c44={'bFdAT':'onGroupStatisticInfoChange:'};console[_0x3770aa(0x112)](_0xdb2c44['bFdAT'],..._0xbf3b7d);}[_0x1d6292(0xfb)](..._0x451979){var _0xb50f76=_0x1d6292,_0x2a9b87={'LMCMj':_0xb50f76(0x12b)};console[_0xb50f76(0x112)](_0x2a9b87[_0xb50f76(0xef)],..._0x451979);}[_0x1d6292(0x118)](..._0x1c4969){var _0x296528=_0x1d6292;console[_0x296528(0x112)](_0x296528(0xfd),..._0x1c4969);}[_0x1d6292(0x10b)](_0x475d1c,_0x43860b,_0x1b6988){var _0x2eddb0=_0x1d6292,_0x15b724={'wtTTB':_0x2eddb0(0x105)};console[_0x2eddb0(0x112)](_0x15b724[_0x2eddb0(0x127)],_0x475d1c,_0x43860b,_0x1b6988);}['onMemberListChange'](..._0x571986){var _0x37ffaa=_0x1d6292,_0x54bc58={'oDrQq':_0x37ffaa(0x106)};console[_0x37ffaa(0x112)](_0x54bc58[_0x37ffaa(0x125)],..._0x571986);}[_0x1d6292(0x130)](..._0x18179a){var _0x59f34=_0x1d6292,_0x451904={'gMvWg':_0x59f34(0x12c)};console['log'](_0x451904[_0x59f34(0x133)],..._0x18179a);}[_0x1d6292(0x11b)](..._0x4c922b){var _0x39f90e=_0x1d6292,_0x32fbf={'Iywju':_0x39f90e(0x12a)};console['log'](_0x32fbf[_0x39f90e(0x10d)],..._0x4c922b);}} \ No newline at end of file +var _0x299833=_0x3ea3;function _0x4709(){var _0x181587=['uReeg','1665XsTJdY','hmsJd','onGroupListUpdate','OKjNW','onMemberInfoChange','gXAuX','PCRGC','onJoinGroupNotify:','zJFjY','AXTlm','onGroupExtListUpdate','onGroupArkInviteStateResult','onGroupFirstBulletinNotify','DHkhD','onGetGroupBulletinListResult','onGroupExtListUpdate:','3268076GpSEiE','onGroupNotifiesUnreadCountUpdated','NSPus','onGroupsMsgMaskResult','onGroupBulletinRichMediaProgressUpdate:','2366478uFHZya','onGroupBulletinRichMediaDownloadComplete','onGroupDetailInfoChange:','SEoAa','onShutUpMemberListChanged:','onGroupNotifiesUpdated:','log','onGroupBulletinChange:','jLhcg','onGroupListUpdate:','5134huAHSW','onGroupDetailInfoChange','onGroupStatisticInfoChange:','onGroupBulletinRemindNotify:','onGroupStatisticInfoChange','AdLPX','onJoinGroupNotify','onGroupFirstBulletinNotify:','ReSJW','onShutUpMemberListChanged','59360FPYTjc','onGroupConfMemberChange','BBCfN','449766YHVSUX','1510852wxOygz','onMemberListChange:','onSearchMemberChange:','onGroupMemberLevelInfoChange:','onGroupSingleScreenNotifies','115355UPmiCi','cVsxz','onJoinGroupNoVerifyFlag:','onGroupBulletinRichMediaProgressUpdate','onGroupMemberLevelInfoChange','onSearchMemberChange','onGroupBulletinRichMediaDownloadComplete:','WitkL','17BtcXNB','YbyaJ','PMlDo','onGroupBulletinRemindNotify','onMemberListChange','XLMRz','onGroupNotifiesUpdated','onJoinGroupNoVerifyFlag','onGroupBulletinChange','onGroupAllInfoChange:','onGroupAllInfoChange','onGetGroupBulletinListResult:'];_0x4709=function(){return _0x181587;};return _0x4709();}function _0x3ea3(_0x50dc68,_0x3a30e1){var _0x470966=_0x4709();return _0x3ea3=function(_0x3ea34d,_0x26ce58){_0x3ea34d=_0x3ea34d-0x1dc;var _0x7e1f0=_0x470966[_0x3ea34d];return _0x7e1f0;},_0x3ea3(_0x50dc68,_0x3a30e1);}(function(_0x3538c8,_0x285781){var _0x1dfb10=_0x3ea3,_0x575521=_0x3538c8();while(!![]){try{var _0x589959=parseInt(_0x1dfb10(0x1f6))/0x1*(-parseInt(_0x1dfb10(0x222))/0x2)+parseInt(_0x1dfb10(0x1e8))/0x3+-parseInt(_0x1dfb10(0x1e9))/0x4+parseInt(_0x1dfb10(0x1ee))/0x5+-parseInt(_0x1dfb10(0x218))/0x6+-parseInt(_0x1dfb10(0x213))/0x7+parseInt(_0x1dfb10(0x1e5))/0x8*(parseInt(_0x1dfb10(0x203))/0x9);if(_0x589959===_0x285781)break;else _0x575521['push'](_0x575521['shift']());}catch(_0x2c0142){_0x575521['push'](_0x575521['shift']());}}}(_0x4709,0x40394));export class GroupListener{[_0x299833(0x1f2)](..._0x47e465){}[_0x299833(0x211)](..._0x56e0a9){}['onGroupAllInfoChange'](..._0x228085){}[_0x299833(0x1fe)](..._0x45fcc1){}['onGroupBulletinRemindNotify'](..._0x5dbb34){}['onGroupArkInviteStateResult'](..._0x27ba50){}['onGroupBulletinRichMediaDownloadComplete'](..._0x20dab6){}[_0x299833(0x1e6)](..._0x5082b3){}[_0x299833(0x1dc)](..._0xbfb02e){}[_0x299833(0x20d)](..._0x1258a3){}[_0x299833(0x20f)](..._0x20304b){}[_0x299833(0x205)](_0x16f9f5,_0x3ed8de){}[_0x299833(0x1fc)](_0x384261,_0x3d1961){}[_0x299833(0x1f1)](..._0x4cca2d){}[_0x299833(0x214)](..._0x5f3a4e){}['onGroupSingleScreenNotifies'](..._0x233d90){}[_0x299833(0x216)](..._0xb5c4e3){}[_0x299833(0x1df)](..._0x4e4153){}['onJoinGroupNotify'](..._0x451a92){}[_0x299833(0x1fd)](..._0x5010dc){}[_0x299833(0x207)](_0x4ae59e,_0x42c8cf,_0x1a8ffc){}['onMemberListChange'](_0x29b612){}[_0x299833(0x1f3)](..._0x50f410){}['onShutUpMemberListChanged'](..._0x4a0f89){}}export class DebugGroupListener{['onGroupMemberLevelInfoChange'](..._0x56c4e6){var _0x3afd3c=_0x299833,_0x5de399={'AXTlm':_0x3afd3c(0x1ec)};console['log'](_0x5de399[_0x3afd3c(0x20c)],..._0x56c4e6);}[_0x299833(0x211)](..._0x361c1b){var _0x3836ee=_0x299833,_0x1badd1={'PCRGC':_0x3836ee(0x201)};console[_0x3836ee(0x21e)](_0x1badd1[_0x3836ee(0x209)],..._0x361c1b);}[_0x299833(0x200)](..._0x2c8f6d){var _0x12f10c=_0x299833,_0x140d8e={'NSPus':_0x12f10c(0x1ff)};console[_0x12f10c(0x21e)](_0x140d8e[_0x12f10c(0x215)],..._0x2c8f6d);}['onGroupBulletinChange'](..._0x159bf4){var _0x4a7971=_0x299833,_0x59ad16={'WitkL':_0x4a7971(0x21f)};console[_0x4a7971(0x21e)](_0x59ad16[_0x4a7971(0x1f5)],..._0x159bf4);}[_0x299833(0x1f9)](..._0x52b80d){var _0x5c36bd=_0x299833;console[_0x5c36bd(0x21e)](_0x5c36bd(0x1de),..._0x52b80d);}[_0x299833(0x20e)](..._0xed4b27){var _0x5438db=_0x299833,_0x1b38f1={'YbyaJ':'onGroupArkInviteStateResult:'};console[_0x5438db(0x21e)](_0x1b38f1[_0x5438db(0x1f7)],..._0xed4b27);}[_0x299833(0x219)](..._0x5b3e7a){var _0x323817=_0x299833,_0x500d51={'hmsJd':_0x323817(0x1f4)};console[_0x323817(0x21e)](_0x500d51[_0x323817(0x204)],..._0x5b3e7a);}[_0x299833(0x1e6)](..._0x3ce091){var _0x21257f=_0x299833;console[_0x21257f(0x21e)]('onGroupConfMemberChange:',..._0x3ce091);}[_0x299833(0x1dc)](..._0x50a674){var _0x34eddb=_0x299833,_0x191d19={'MtzEh':_0x34eddb(0x21a)};console[_0x34eddb(0x21e)](_0x191d19['MtzEh'],..._0x50a674);}[_0x299833(0x20d)](..._0x3eb3bd){var _0x29b159=_0x299833,_0x39cc8b={'cVsxz':_0x29b159(0x212)};console[_0x29b159(0x21e)](_0x39cc8b[_0x29b159(0x1ef)],..._0x3eb3bd);}[_0x299833(0x20f)](..._0x421eee){var _0x313cfd=_0x299833,_0x46e7d1={'AdLPX':_0x313cfd(0x1e2)};console[_0x313cfd(0x21e)](_0x46e7d1[_0x313cfd(0x1e0)],..._0x421eee);}[_0x299833(0x205)](..._0x5ef354){var _0x200d71=_0x299833,_0x448d44={'gXAuX':_0x200d71(0x221)};console[_0x200d71(0x21e)](_0x448d44[_0x200d71(0x208)],..._0x5ef354);}[_0x299833(0x1fc)](..._0x1a97b5){var _0x5b4f84=_0x299833,_0x2d7fa5={'SEoAa':_0x5b4f84(0x21d)};console[_0x5b4f84(0x21e)](_0x2d7fa5[_0x5b4f84(0x21b)],..._0x1a97b5);}[_0x299833(0x1f1)](..._0x312e44){var _0x9305b9=_0x299833,_0x53950d={'BBCfN':_0x9305b9(0x217)};console[_0x9305b9(0x21e)](_0x53950d[_0x9305b9(0x1e7)],..._0x312e44);}[_0x299833(0x214)](..._0x477107){var _0x13a003={'iqfrJ':'onGroupNotifiesUnreadCountUpdated:'};console['log'](_0x13a003['iqfrJ'],..._0x477107);}[_0x299833(0x1ed)](..._0x317f1d){var _0x5ec57a=_0x299833,_0x365c33={'OKjNW':'onGroupSingleScreenNotifies:'};console[_0x5ec57a(0x21e)](_0x365c33[_0x5ec57a(0x206)],..._0x317f1d);}[_0x299833(0x216)](..._0x55ae82){var _0x53a981=_0x299833,_0x4b932d={'PMlDo':'onGroupsMsgMaskResult:'};console['log'](_0x4b932d[_0x53a981(0x1f8)],..._0x55ae82);}[_0x299833(0x1df)](..._0x49a2ab){var _0x470036=_0x299833,_0x5c5805={'zJFjY':_0x470036(0x1dd)};console[_0x470036(0x21e)](_0x5c5805[_0x470036(0x20b)],..._0x49a2ab);}[_0x299833(0x1e1)](..._0x48c93c){var _0x12aea1=_0x299833,_0x45364d={'ReSJW':_0x12aea1(0x20a)};console[_0x12aea1(0x21e)](_0x45364d[_0x12aea1(0x1e3)],..._0x48c93c);}[_0x299833(0x1fd)](..._0x438772){var _0x52483b=_0x299833,_0x3f2c3e={'XLMRz':_0x52483b(0x1f0)};console[_0x52483b(0x21e)](_0x3f2c3e[_0x52483b(0x1fb)],..._0x438772);}['onMemberInfoChange'](_0x4ff969,_0x59abe7,_0x2078b4){var _0x543ef7=_0x299833,_0x18e0c0={'uReeg':'onMemberInfoChange:'};console['log'](_0x18e0c0[_0x543ef7(0x202)],_0x4ff969,_0x59abe7,_0x2078b4);}[_0x299833(0x1fa)](..._0x1fffaa){var _0x199513=_0x299833,_0x1bcedd={'jLhcg':_0x199513(0x1ea)};console[_0x199513(0x21e)](_0x1bcedd[_0x199513(0x220)],..._0x1fffaa);}['onSearchMemberChange'](..._0x1330b3){var _0x5d44fd=_0x299833,_0x4d4cf6={'DHkhD':_0x5d44fd(0x1eb)};console[_0x5d44fd(0x21e)](_0x4d4cf6[_0x5d44fd(0x210)],..._0x1330b3);}[_0x299833(0x1e4)](..._0x220e52){var _0x50caae=_0x299833;console[_0x50caae(0x21e)](_0x50caae(0x21c),..._0x220e52);}} \ 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 fff2ed79..d3f42074 100644 --- a/src/core.lib/src/listeners/NodeIKernelLoginListener.js +++ b/src/core.lib/src/listeners/NodeIKernelLoginListener.js @@ -1 +1 @@ -var _0x2c2191=_0x57cf;function _0x57cf(_0x1324ed,_0x1af608){var _0x1e621b=_0x1e62();return _0x57cf=function(_0x57cf4f,_0x89d541){_0x57cf4f=_0x57cf4f-0xa1;var _0x7d6835=_0x1e621b[_0x57cf4f];return _0x7d6835;},_0x57cf(_0x1324ed,_0x1af608);}(function(_0x356fe1,_0x443ea9){var _0x382dfc=_0x57cf,_0x4a9b78=_0x356fe1();while(!![]){try{var _0x26e9d0=parseInt(_0x382dfc(0xaa))/0x1+-parseInt(_0x382dfc(0xa8))/0x2*(-parseInt(_0x382dfc(0xb5))/0x3)+-parseInt(_0x382dfc(0xb4))/0x4*(-parseInt(_0x382dfc(0xa3))/0x5)+-parseInt(_0x382dfc(0xb9))/0x6*(parseInt(_0x382dfc(0xb0))/0x7)+parseInt(_0x382dfc(0xb6))/0x8*(parseInt(_0x382dfc(0xaf))/0x9)+parseInt(_0x382dfc(0xae))/0xa*(parseInt(_0x382dfc(0xa6))/0xb)+-parseInt(_0x382dfc(0xb3))/0xc*(parseInt(_0x382dfc(0xa9))/0xd);if(_0x26e9d0===_0x443ea9)break;else _0x4a9b78['push'](_0x4a9b78['shift']());}catch(_0x28dab1){_0x4a9b78['push'](_0x4a9b78['shift']());}}}(_0x1e62,0xcc7f1));function _0x1e62(){var _0x259fea=['onUserLoggedIn','onPasswordLoginFailed','42bHkoSX','onLogoutFailed','onQQLoginNumLimited','15MbuqSR','onQRCodeLoginPollingStarted','OnConfirmUnusualDeviceFailed','3301353yVYyDC','onQRCodeGetPicture','254724rwQgsy','23832705CAyUpG','1547978SHXeHG','onLoginConnected','onLoginDisConnected','onQRCodeLoginSucceed','10OLsfGP','18zRxOjM','207382LHaOVH','onQRCodeSessionUserScaned','onQRCodeSessionFailed','12ZVFJeW','273804EYtUZH','3JiPZUJ','2789872rETlDU'];_0x1e62=function(){return _0x259fea;};return _0x1e62();}export class LoginListener{[_0x2c2191(0xab)](..._0x140a64){}[_0x2c2191(0xac)](..._0x3bcbc1){}['onLoginConnecting'](..._0xd0d306){}[_0x2c2191(0xa7)](_0x1c0929){}[_0x2c2191(0xa4)](..._0x24cac1){}[_0x2c2191(0xb1)](..._0x360dc8){}[_0x2c2191(0xad)](_0x3a9880){}[_0x2c2191(0xb2)](..._0x2b64a5){}['onLoginFailed'](..._0x567a84){}['onLogoutSucceed'](..._0x5e108f){}[_0x2c2191(0xa1)](..._0x2c631a){}[_0x2c2191(0xb7)](..._0xbfe86){}['onQRCodeSessionQuickLoginFailed'](..._0x3fbdf2){}[_0x2c2191(0xb8)](..._0x23f439){}[_0x2c2191(0xa5)](..._0x2b4043){}[_0x2c2191(0xa2)](..._0x41415b){}['onLoginState'](..._0x1a4bdc){}} \ No newline at end of file +var _0x2932c1=_0x1c8c;function _0x1c8c(_0x40946c,_0x4f79c2){var _0x534524=_0x5345();return _0x1c8c=function(_0x1c8ced,_0x311270){_0x1c8ced=_0x1c8ced-0x178;var _0x4e6235=_0x534524[_0x1c8ced];return _0x4e6235;},_0x1c8c(_0x40946c,_0x4f79c2);}function _0x5345(){var _0x58d1f8=['onQRCodeGetPicture','onQRCodeSessionFailed','onLogoutFailed','onQRCodeSessionUserScaned','488913XyDJMt','onLoginConnecting','onQRCodeLoginSucceed','1392792BIRZej','onQRCodeLoginPollingStarted','onUserLoggedIn','OnConfirmUnusualDeviceFailed','7083108FTZvVB','8553050AAxTsk','onLogoutSucceed','onQRCodeSessionQuickLoginFailed','onPasswordLoginFailed','onLoginConnected','onQQLoginNumLimited','77FEAdhF','3548952iYIgZH','onLoginDisConnected','317322GvqAup','1684792bYRKug'];_0x5345=function(){return _0x58d1f8;};return _0x5345();}(function(_0x5c2351,_0x272ab0){var _0x422305=_0x1c8c,_0x13a048=_0x5c2351();while(!![]){try{var _0x4a5b71=-parseInt(_0x422305(0x179))/0x1+-parseInt(_0x422305(0x182))/0x2+parseInt(_0x422305(0x17f))/0x3+parseInt(_0x422305(0x186))/0x4+parseInt(_0x422305(0x187))/0x5+parseInt(_0x422305(0x18e))/0x6+parseInt(_0x422305(0x18d))/0x7*(-parseInt(_0x422305(0x17a))/0x8);if(_0x4a5b71===_0x272ab0)break;else _0x13a048['push'](_0x13a048['shift']());}catch(_0x46974e){_0x13a048['push'](_0x13a048['shift']());}}}(_0x5345,0xdd147));export class LoginListener{[_0x2932c1(0x18b)](..._0x4db2b3){}[_0x2932c1(0x178)](..._0x1e87d9){}[_0x2932c1(0x180)](..._0x33ae2b){}[_0x2932c1(0x17b)](_0xf9931e){}[_0x2932c1(0x183)](..._0x371731){}[_0x2932c1(0x17e)](..._0x4c36a8){}[_0x2932c1(0x181)](_0x5ce41e){}[_0x2932c1(0x17c)](..._0x329d55){}['onLoginFailed'](..._0x9a4065){}[_0x2932c1(0x188)](..._0x109dec){}[_0x2932c1(0x17d)](..._0x17eb1c){}[_0x2932c1(0x184)](..._0x391f25){}[_0x2932c1(0x189)](..._0x4cad4e){}[_0x2932c1(0x18a)](..._0x1d5cb5){}[_0x2932c1(0x185)](..._0x32ffd7){}[_0x2932c1(0x18c)](..._0x1db094){}['onLoginState'](..._0x283bab){}} \ 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 bad81b2e..05eb0e5b 100644 --- a/src/core.lib/src/listeners/NodeIKernelMsgListener.js +++ b/src/core.lib/src/listeners/NodeIKernelMsgListener.js @@ -1 +1 @@ -function _0x20e7(_0x428e24,_0xc70b29){var _0x2fdce0=_0x2fdc();return _0x20e7=function(_0x20e770,_0x59667c){_0x20e770=_0x20e770-0x1ca;var _0x566d75=_0x2fdce0[_0x20e770];return _0x566d75;},_0x20e7(_0x428e24,_0xc70b29);}var _0x5988e5=_0x20e7;(function(_0x5c73a6,_0x36a829){var _0xf46355=_0x20e7,_0x5bc38b=_0x5c73a6();while(!![]){try{var _0x34de2f=-parseInt(_0xf46355(0x1f0))/0x1+-parseInt(_0xf46355(0x207))/0x2*(-parseInt(_0xf46355(0x1d5))/0x3)+-parseInt(_0xf46355(0x201))/0x4+parseInt(_0xf46355(0x1f9))/0x5*(-parseInt(_0xf46355(0x1ea))/0x6)+-parseInt(_0xf46355(0x1d4))/0x7*(parseInt(_0xf46355(0x208))/0x8)+-parseInt(_0xf46355(0x1e2))/0x9+parseInt(_0xf46355(0x1d2))/0xa;if(_0x34de2f===_0x36a829)break;else _0x5bc38b['push'](_0x5bc38b['shift']());}catch(_0x4bfc67){_0x5bc38b['push'](_0x5bc38b['shift']());}}}(_0x2fdc,0xafa25));function _0x2fdc(){var _0x1fd550=['onGroupFileInfoAdd','onNtMsgSyncStart','onNtFirstViewMsgSyncEnd','onFeedEventUpdate','onMsgBoxChanged','onMsgSecurityNotify','onDraftUpdate','10JrrQhg','onInputStatusPush','onRedTouchChanged','onChannelFreqLimitInfoUpdate','onRichMediaProgerssUpdate','onReadFeedEventUpdate','onRecvMsgSvrRspTransInfo','onGroupGuildUpdate','227588EcJjMu','onHitCsRelatedEmojiResult','onGuildMsgAbFlagChanged','onHitEmojiKeywordResult','onContactUnreadCntUpdate','onFirstViewDirectMsgUpdate','2nTwbtb','8SsmRzF','onUserSecQualityChanged','onlineStatusSmallIconDownloadPush','onBroadcastHelperDownloadComplete','onMsgWithRichLinkInfoUpdate','onSysMsgNotification','onNtMsgSyncEnd','onCustomWithdrawConfigUpdate','onEmojiDownloadComplete','32428930jqyVun','onUserChannelTabStatusChanged','3943506JjgZjn','2195574ykTHiK','onMsgInfoListAdd','onMsgDelete','onTempChatInfoUpdate','onRecvSysMsg','onSearchGroupFileInfoUpdate','onUserOnlineStatusChanged','onImportOldDbProgressUpdate','onAddSendMsg','onMsgQRCodeStatusChanged','onBroadcastHelperProgressUpdate','onRecvMsg','onGuildNotificationAbstractUpdate','6438474zABuyZ','onLineDev','onRecvS2CMsg','onGroupFileInfoUpdate','onRecvOnlineFileMsg','onMsgRecall','onGuildInteractiveUpdate','onFirstViewGroupGuildMapping','1649238vEWbhi','onFileMsgCome','onUserTabStatusChanged','onUnreadCntAfterFirstView','onEmojiResourceUpdate','onMsgEventListUpdate','1369967SPSSYt','onRichMediaDownloadComplete'];_0x2fdc=function(){return _0x1fd550;};return _0x2fdc();}export class MsgListener{[_0x5988e5(0x1dd)](_0x2627d1){}[_0x5988e5(0x1cc)](_0x581dab){}[_0x5988e5(0x1df)](_0x2860a5){}[_0x5988e5(0x1fc)](_0x4d089f,_0x182f5f,_0x5de901){}[_0x5988e5(0x205)](_0x298d59){}[_0x5988e5(0x1d0)](_0x54d224){}[_0x5988e5(0x1f8)](_0x201d8b,_0x16682b,_0x3ce339){}[_0x5988e5(0x1d1)](_0x869d24){}[_0x5988e5(0x1ee)](_0x31af9f){}[_0x5988e5(0x1f5)](_0x374919){}[_0x5988e5(0x1eb)](_0xd5934e){}[_0x5988e5(0x206)](_0x36852d){}[_0x5988e5(0x1e9)](_0x35c1f7){}['onGrabPasswordRedBag'](_0xd60c90,_0x366042,_0x6d9d0b,_0x45d33c,_0x5a4e6a){}[_0x5988e5(0x1f2)](_0x3cea98){}[_0x5988e5(0x1e5)](_0x5f02d9){}[_0x5988e5(0x200)](_0x404fd8){}['onGroupTransferInfoAdd'](_0x128bca){}['onGroupTransferInfoUpdate'](_0x184191){}[_0x5988e5(0x1e8)](_0x552b28){}[_0x5988e5(0x203)](_0x6fcc4b){}[_0x5988e5(0x1e1)](_0x2d8025){}[_0x5988e5(0x202)](_0x3ab660){}[_0x5988e5(0x204)](_0x19898f){}['onHitRelatedEmojiResult'](_0x3467fa){}[_0x5988e5(0x1dc)](_0x150937){}[_0x5988e5(0x1fa)](_0x4201e1){}['onKickedOffLine'](_0x5f4128){}[_0x5988e5(0x1e3)](_0x1c8d14){}['onLogLevelChanged'](_0xa7d93b){}['onMsgAbstractUpdate'](_0x25a75b){}[_0x5988e5(0x1f6)](_0x9b4b73){}[_0x5988e5(0x1d7)](_0xdf942e,_0x3b46b6){}[_0x5988e5(0x1ef)](_0xfa728c){}[_0x5988e5(0x1d6)](_0x5dac8c){}['onMsgInfoListUpdate'](_0x486e18){}[_0x5988e5(0x1de)](_0x8a08ee){}[_0x5988e5(0x1e7)](_0xa59f15,_0x1b5a70,_0xd96c14){}[_0x5988e5(0x1f7)](_0x49f5d0){}['onMsgSettingUpdate'](_0x3357f5){}[_0x5988e5(0x1f4)](){}[_0x5988e5(0x1cf)](){}[_0x5988e5(0x1f3)](){}[_0x5988e5(0x1fe)](_0x38305e){}['onRecvGroupGuildFlag'](_0x1d913c){}[_0x5988e5(0x1e0)](_0x173f22){}[_0x5988e5(0x1ff)](_0x51f1f2,_0x3bf851,_0x4f3082,_0x24bcac,_0x55a28b,_0x5e045e){}[_0x5988e5(0x1e6)](_0x228821){}[_0x5988e5(0x1e4)](_0x1ef279){}[_0x5988e5(0x1d9)](_0x10e664){}['onRecvUDCFlag'](_0x4b9bcc){}[_0x5988e5(0x1f1)](_0xd3dea7){}[_0x5988e5(0x1fd)](_0x9dffc4){}['onRichMediaUploadComplete'](_0x478c59){}[_0x5988e5(0x1da)](_0x5b4446){}['onSendMsgError'](_0x180929,_0x5f30a3,_0x344036,_0x3e5784){}[_0x5988e5(0x1ce)](_0x200ca7,_0x411792,_0x4bf43c,_0x25b204){}[_0x5988e5(0x1d8)](_0xa1d8a){}[_0x5988e5(0x1ed)](_0x25ee3f){}['onUnreadCntUpdate'](_0x35da29){}[_0x5988e5(0x1d3)](_0x58b690){}[_0x5988e5(0x1db)](_0xc47ba3){}[_0x5988e5(0x1ec)](_0x5b5fda){}['onlineStatusBigIconDownloadPush'](_0x4c079a,_0xc011b6,_0xfa58f5){}[_0x5988e5(0x1cb)](_0x5f3bd3,_0x529ec5,_0x5f36fe){}[_0x5988e5(0x1ca)](..._0x9517ee){}[_0x5988e5(0x1cd)](..._0xddadba){}[_0x5988e5(0x1fb)](..._0x31dca2){}['onBroadcastHelperProgerssUpdate'](..._0x116a78){}} \ No newline at end of file +var _0x2cb81b=_0x10cd;function _0x5eca(){var _0x349fe0=['onMsgSettingUpdate','onDraftUpdate','onMsgInfoListAdd','onRecvMsg','848412usZLrV','onLineDev','608928NNleJX','onUserOnlineStatusChanged','onAddSendMsg','onGroupTransferInfoAdd','onKickedOffLine','onNtFirstViewMsgSyncEnd','onRichMediaDownloadComplete','onUnreadCntAfterFirstView','onSysMsgNotification','onRichMediaUploadComplete','onRecvSysMsg','67TudQIT','onInputStatusPush','onSearchGroupFileInfoUpdate','onContactUnreadCntUpdate','onHitCsRelatedEmojiResult','1968169EzhAvA','onRecvS2CMsg','6155908HFKUiH','onNtMsgSyncStart','onFirstViewGroupGuildMapping','926AIeDDB','97152PrsiBB','onGrabPasswordRedBag','onRedTouchChanged','onFileMsgCome','onGroupFileInfoAdd','onFeedEventUpdate','6580PlCVYb','onGuildInteractiveUpdate','onChannelFreqLimitInfoUpdate','onGuildNotificationAbstractUpdate','onMsgRecall','onMsgQRCodeStatusChanged','onlineStatusBigIconDownloadPush','onTempChatInfoUpdate','onGuildMsgAbFlagChanged','onMsgDelete','onEmojiResourceUpdate','onLogLevelChanged','onMsgAbstractUpdate','onUserSecQualityChanged','10qGzHZf','onMsgInfoListUpdate','onlineStatusSmallIconDownloadPush','onBroadcastHelperDownloadComplete','onRecvGroupGuildFlag','onUserChannelTabStatusChanged','965phTAKV','onSendMsgError','6ioIrds','onMsgEventListUpdate','onHitEmojiKeywordResult','onFirstViewDirectMsgUpdate','onHitRelatedEmojiResult','onMsgBoxChanged','onCustomWithdrawConfigUpdate','onRecvUDCFlag','onMsgWithRichLinkInfoUpdate','onNtMsgSyncEnd','onGroupGuildUpdate','onGroupFileInfoUpdate','onBroadcastHelperProgerssUpdate','onGroupTransferInfoUpdate','onUserTabStatusChanged','onRecvOnlineFileMsg'];_0x5eca=function(){return _0x349fe0;};return _0x5eca();}function _0x10cd(_0x324e7d,_0x1348c6){var _0x5eca42=_0x5eca();return _0x10cd=function(_0x10cd14,_0x5e382c){_0x10cd14=_0x10cd14-0x111;var _0x2472d4=_0x5eca42[_0x10cd14];return _0x2472d4;},_0x10cd(_0x324e7d,_0x1348c6);}(function(_0x2ca5d8,_0x4c6f44){var _0x1882a3=_0x10cd,_0x3176d7=_0x2ca5d8();while(!![]){try{var _0x550064=parseInt(_0x1882a3(0x150))/0x1*(parseInt(_0x1882a3(0x112))/0x2)+-parseInt(_0x1882a3(0x145))/0x3+-parseInt(_0x1882a3(0x119))/0x4*(-parseInt(_0x1882a3(0x12d))/0x5)+parseInt(_0x1882a3(0x12f))/0x6*(-parseInt(_0x1882a3(0x155))/0x7)+parseInt(_0x1882a3(0x113))/0x8+-parseInt(_0x1882a3(0x143))/0x9+parseInt(_0x1882a3(0x127))/0xa*(parseInt(_0x1882a3(0x157))/0xb);if(_0x550064===_0x4c6f44)break;else _0x3176d7['push'](_0x3176d7['shift']());}catch(_0x535f5b){_0x3176d7['push'](_0x3176d7['shift']());}}}(_0x5eca,0x5376b));export class MsgListener{[_0x2cb81b(0x147)](_0x425d33){}[_0x2cb81b(0x12a)](_0x1d850e){}['onBroadcastHelperProgressUpdate'](_0x3cd625){}[_0x2cb81b(0x11b)](_0x50cea6,_0x26b85c,_0x4a8463){}[_0x2cb81b(0x153)](_0x181111){}[_0x2cb81b(0x135)](_0x470659){}[_0x2cb81b(0x140)](_0x5b3f67,_0x1517ae,_0x1c1b6d){}['onEmojiDownloadComplete'](_0x1f9b24){}[_0x2cb81b(0x123)](_0x15b09f){}[_0x2cb81b(0x118)](_0x3dc570){}[_0x2cb81b(0x116)](_0x1baa41){}[_0x2cb81b(0x132)](_0xd673ac){}[_0x2cb81b(0x111)](_0x54bf8c){}[_0x2cb81b(0x114)](_0x5aa941,_0x5211f1,_0x42e672,_0x2cc1a1,_0x58477){}[_0x2cb81b(0x117)](_0x8e4410){}[_0x2cb81b(0x13a)](_0x421a7b){}[_0x2cb81b(0x139)](_0x28d30b){}[_0x2cb81b(0x148)](_0x135c26){}[_0x2cb81b(0x13c)](_0x7fa98d){}[_0x2cb81b(0x11a)](_0x31106d){}[_0x2cb81b(0x121)](_0x72678){}[_0x2cb81b(0x11c)](_0x147bfb){}[_0x2cb81b(0x154)](_0x10bd51){}[_0x2cb81b(0x131)](_0x22a603){}[_0x2cb81b(0x133)](_0x5788e6){}['onImportOldDbProgressUpdate'](_0x1fbe00){}[_0x2cb81b(0x151)](_0x29f285){}[_0x2cb81b(0x149)](_0x5b5280){}[_0x2cb81b(0x144)](_0x2f35b8){}[_0x2cb81b(0x124)](_0x1dac78){}[_0x2cb81b(0x125)](_0x6b7177){}[_0x2cb81b(0x134)](_0x1c43c8){}[_0x2cb81b(0x122)](_0x54ef80,_0x39162f){}[_0x2cb81b(0x130)](_0x40f485){}[_0x2cb81b(0x141)](_0x52fafb){}[_0x2cb81b(0x128)](_0xee3348){}[_0x2cb81b(0x11e)](_0x53ed3b){}[_0x2cb81b(0x11d)](_0x345759,_0x451acb,_0x10004f){}['onMsgSecurityNotify'](_0x1fbdb0){}[_0x2cb81b(0x13f)](_0x56d174){}[_0x2cb81b(0x14a)](){}[_0x2cb81b(0x138)](){}[_0x2cb81b(0x158)](){}['onReadFeedEventUpdate'](_0x3dd634){}[_0x2cb81b(0x12b)](_0x3fc270){}[_0x2cb81b(0x142)](_0x11f5e3){}['onRecvMsgSvrRspTransInfo'](_0x72a5f5,_0x592cc4,_0x215a19,_0x1a8ce3,_0x67af6a,_0x27cbaa){}[_0x2cb81b(0x13e)](_0x2273f0){}[_0x2cb81b(0x156)](_0x5c23b0){}[_0x2cb81b(0x14f)](_0x3bcbc9){}[_0x2cb81b(0x136)](_0x31dfe0){}[_0x2cb81b(0x14b)](_0x41ae9e){}['onRichMediaProgerssUpdate'](_0x2d04e7){}[_0x2cb81b(0x14e)](_0x350643){}[_0x2cb81b(0x152)](_0x1f47b5){}[_0x2cb81b(0x12e)](_0x5c3f18,_0x59edcd,_0x582c69,_0x3b1dfc){}[_0x2cb81b(0x14d)](_0x9db913,_0x369724,_0x6d440c,_0x2f0541){}[_0x2cb81b(0x120)](_0x429705){}[_0x2cb81b(0x14c)](_0x40385b){}['onUnreadCntUpdate'](_0x1d2901){}[_0x2cb81b(0x12c)](_0x39c1d5){}[_0x2cb81b(0x146)](_0x47ba8f){}[_0x2cb81b(0x13d)](_0x21d105){}[_0x2cb81b(0x11f)](_0x5533ae,_0x4e2093,_0x5cc647){}[_0x2cb81b(0x129)](_0x550b32,_0x4eed34,_0x4788e1){}[_0x2cb81b(0x126)](..._0x5cede1){}[_0x2cb81b(0x137)](..._0x19bad7){}[_0x2cb81b(0x115)](..._0x4b51a1){}[_0x2cb81b(0x13b)](..._0x44c577){}} \ 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 ac375365..c65ccffd 100644 --- a/src/core.lib/src/listeners/NodeIKernelProfileListener.js +++ b/src/core.lib/src/listeners/NodeIKernelProfileListener.js @@ -1 +1 @@ -function _0x126f(_0x24bd9e,_0x5af36b){var _0x50ec22=_0x50ec();return _0x126f=function(_0x126f24,_0x2f48f4){_0x126f24=_0x126f24-0x8d;var _0x476815=_0x50ec22[_0x126f24];return _0x476815;},_0x126f(_0x24bd9e,_0x5af36b);}var _0x27707c=_0x126f;function _0x50ec(){var _0x2a38e9=['2792321YnOPpl','2LKBTnS','onSelfStatusChanged','897723VRpDmE','4557088EXHWdW','onProfileDetailInfoChanged','226876ViCJTN','346916lRmOuW','onStatusUpdate','54qTfZNl','12gwlpPp','onStrangerRemarkChanged','onProfileSimpleChanged','4328115kXUcgm','43018500WeaFvG'];_0x50ec=function(){return _0x2a38e9;};return _0x50ec();}(function(_0x5083d5,_0x15b8aa){var _0x5b85e7=_0x126f,_0x3728da=_0x5083d5();while(!![]){try{var _0x434bde=parseInt(_0x5b85e7(0x91))/0x1*(-parseInt(_0x5b85e7(0x97))/0x2)+parseInt(_0x5b85e7(0x99))/0x3*(-parseInt(_0x5b85e7(0x96))/0x4)+-parseInt(_0x5b85e7(0x8e))/0x5+-parseInt(_0x5b85e7(0x9a))/0x6*(parseInt(_0x5b85e7(0x90))/0x7)+-parseInt(_0x5b85e7(0x94))/0x8+-parseInt(_0x5b85e7(0x93))/0x9+parseInt(_0x5b85e7(0x8f))/0xa;if(_0x434bde===_0x15b8aa)break;else _0x3728da['push'](_0x3728da['shift']());}catch(_0x5948ce){_0x3728da['push'](_0x3728da['shift']());}}}(_0x50ec,0x92c5c));export class ProfileListener{[_0x27707c(0x8d)](..._0x4199c5){}[_0x27707c(0x95)](_0x23cc3c){}[_0x27707c(0x98)](..._0x584f39){}[_0x27707c(0x92)](..._0x49957d){}[_0x27707c(0x9b)](..._0x132c8b){}} \ No newline at end of file +var _0x549123=_0x23ca;(function(_0x3cbb4d,_0x82184c){var _0x275c8e=_0x23ca,_0x4b0da5=_0x3cbb4d();while(!![]){try{var _0x4cf110=-parseInt(_0x275c8e(0xa5))/0x1*(parseInt(_0x275c8e(0xab))/0x2)+-parseInt(_0x275c8e(0xaf))/0x3*(-parseInt(_0x275c8e(0xb2))/0x4)+parseInt(_0x275c8e(0xaa))/0x5+parseInt(_0x275c8e(0xb4))/0x6+parseInt(_0x275c8e(0xb1))/0x7*(-parseInt(_0x275c8e(0xa7))/0x8)+-parseInt(_0x275c8e(0xad))/0x9+parseInt(_0x275c8e(0xac))/0xa*(parseInt(_0x275c8e(0xa8))/0xb);if(_0x4cf110===_0x82184c)break;else _0x4b0da5['push'](_0x4b0da5['shift']());}catch(_0x3561ae){_0x4b0da5['push'](_0x4b0da5['shift']());}}}(_0x5723,0xae931));export class ProfileListener{[_0x549123(0xb0)](..._0x2cc9b0){}[_0x549123(0xa6)](_0x5b383b){}[_0x549123(0xae)](..._0x19c015){}[_0x549123(0xb3)](..._0x4c7a7f){}[_0x549123(0xa9)](..._0x349d35){}}function _0x23ca(_0x2450a8,_0x5a18c2){var _0x5723b8=_0x5723();return _0x23ca=function(_0x23ca61,_0x43870e){_0x23ca61=_0x23ca61-0xa5;var _0x333b8f=_0x5723b8[_0x23ca61];return _0x333b8f;},_0x23ca(_0x2450a8,_0x5a18c2);}function _0x5723(){var _0x3843be=['690375ejfTKz','4REGdnE','2440sldfOE','12159945FIxPmH','onStatusUpdate','75LzJlXs','onProfileSimpleChanged','7TvlVIF','16180tOJYmb','onSelfStatusChanged','5987334oMBSpM','542881jGBhuF','onProfileDetailInfoChanged','5427176xFlZBY','116908oNEpzP','onStrangerRemarkChanged'];_0x5723=function(){return _0x3843be;};return _0x5723();} \ 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 9a0a6c53..f0841920 100644 --- a/src/core.lib/src/listeners/NodeIKernelRobotListener.js +++ b/src/core.lib/src/listeners/NodeIKernelRobotListener.js @@ -1 +1 @@ -function _0x3f73(){var _0x43fcff=['onRobotProfileChanged','205106EnguQn','4847059PfkNeq','387047yeYDsj','1862260MruHfa','22584xrfWLm','3GtXWPi','369BvPiti','70bbuEtR','onRobotFriendListChanged','2567118BaPhAm','491086FeXLae','5hQlSpz'];_0x3f73=function(){return _0x43fcff;};return _0x3f73();}var _0x257027=_0x6a51;function _0x6a51(_0x2c9957,_0x4f2f68){var _0x3f73fb=_0x3f73();return _0x6a51=function(_0x6a5135,_0x330e8d){_0x6a5135=_0x6a5135-0xe3;var _0x469a32=_0x3f73fb[_0x6a5135];return _0x469a32;},_0x6a51(_0x2c9957,_0x4f2f68);}(function(_0x46cac2,_0x2259df){var _0x48cff1=_0x6a51,_0x23b9b7=_0x46cac2();while(!![]){try{var _0x328a4f=parseInt(_0x48cff1(0xe7))/0x1+parseInt(_0x48cff1(0xef))/0x2*(-parseInt(_0x48cff1(0xea))/0x3)+parseInt(_0x48cff1(0xe8))/0x4*(parseInt(_0x48cff1(0xe3))/0x5)+parseInt(_0x48cff1(0xee))/0x6+-parseInt(_0x48cff1(0xe6))/0x7+-parseInt(_0x48cff1(0xe9))/0x8*(parseInt(_0x48cff1(0xeb))/0x9)+parseInt(_0x48cff1(0xec))/0xa*(parseInt(_0x48cff1(0xe5))/0xb);if(_0x328a4f===_0x2259df)break;else _0x23b9b7['push'](_0x23b9b7['shift']());}catch(_0x1ca7cb){_0x23b9b7['push'](_0x23b9b7['shift']());}}}(_0x3f73,0x57390));export class KernelRobotListener{[_0x257027(0xed)](..._0x9e6013){}['onRobotListChanged'](..._0x597224){}[_0x257027(0xe4)](..._0x6ed318){}} \ No newline at end of file +function _0x2b46(_0x8e782b,_0x3a19f8){var _0x96b290=_0x96b2();return _0x2b46=function(_0x2b46f0,_0x33293a){_0x2b46f0=_0x2b46f0-0x107;var _0x4486c6=_0x96b290[_0x2b46f0];return _0x4486c6;},_0x2b46(_0x8e782b,_0x3a19f8);}var _0x436721=_0x2b46;(function(_0x37ac53,_0x37ccff){var _0x5864d4=_0x2b46,_0x290e2a=_0x37ac53();while(!![]){try{var _0x586212=-parseInt(_0x5864d4(0x112))/0x1*(-parseInt(_0x5864d4(0x113))/0x2)+parseInt(_0x5864d4(0x110))/0x3+-parseInt(_0x5864d4(0x10d))/0x4*(parseInt(_0x5864d4(0x10c))/0x5)+parseInt(_0x5864d4(0x10a))/0x6+-parseInt(_0x5864d4(0x111))/0x7+-parseInt(_0x5864d4(0x107))/0x8*(-parseInt(_0x5864d4(0x109))/0x9)+-parseInt(_0x5864d4(0x10b))/0xa;if(_0x586212===_0x37ccff)break;else _0x290e2a['push'](_0x290e2a['shift']());}catch(_0x79b386){_0x290e2a['push'](_0x290e2a['shift']());}}}(_0x96b2,0x5e53e));export class KernelRobotListener{[_0x436721(0x108)](..._0x1cc5ca){}[_0x436721(0x10e)](..._0x20233a){}[_0x436721(0x10f)](..._0x17bac5){}}function _0x96b2(){var _0x526e50=['2EmOHxS','730872TvTEOx','onRobotFriendListChanged','36UBnTVL','2208912oJRdIL','664870mvhfds','75QvobMK','103100pbWAAe','onRobotListChanged','onRobotProfileChanged','1028241PmiFXu','2605652WUDhuR','135379saqxKD'];_0x96b2=function(){return _0x526e50;};return _0x96b2();} \ 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 756f0bba..580caebb 100644 --- a/src/core.lib/src/listeners/NodeIKernelSessionListener.js +++ b/src/core.lib/src/listeners/NodeIKernelSessionListener.js @@ -1 +1 @@ -var _0x5087c3=_0x4531;function _0x4531(_0x34042d,_0x19f8ec){var _0x12f2fb=_0x12f2();return _0x4531=function(_0x453176,_0x2d0164){_0x453176=_0x453176-0xb9;var _0x1e0379=_0x12f2fb[_0x453176];return _0x1e0379;},_0x4531(_0x34042d,_0x19f8ec);}(function(_0x5c3aed,_0x3244f0){var _0x219f2f=_0x4531,_0x5b32ae=_0x5c3aed();while(!![]){try{var _0x2dc36d=-parseInt(_0x219f2f(0xc8))/0x1*(-parseInt(_0x219f2f(0xb9))/0x2)+parseInt(_0x219f2f(0xba))/0x3*(parseInt(_0x219f2f(0xbd))/0x4)+parseInt(_0x219f2f(0xbb))/0x5*(-parseInt(_0x219f2f(0xc9))/0x6)+parseInt(_0x219f2f(0xc2))/0x7*(-parseInt(_0x219f2f(0xc4))/0x8)+-parseInt(_0x219f2f(0xc3))/0x9*(-parseInt(_0x219f2f(0xcb))/0xa)+parseInt(_0x219f2f(0xca))/0xb*(-parseInt(_0x219f2f(0xc7))/0xc)+-parseInt(_0x219f2f(0xc6))/0xd*(-parseInt(_0x219f2f(0xbf))/0xe);if(_0x2dc36d===_0x3244f0)break;else _0x5b32ae['push'](_0x5b32ae['shift']());}catch(_0x95dc2){_0x5b32ae['push'](_0x5b32ae['shift']());}}}(_0x12f2,0xb990a));export class SessionListener{[_0x5087c3(0xbc)](_0x593108){}[_0x5087c3(0xc0)](_0x4e6db2){}[_0x5087c3(0xc1)](_0xa188b6){}[_0x5087c3(0xc5)](_0x4bb1e4){}['onUserOnlineResult'](_0x36bcfc){}[_0x5087c3(0xbe)](_0x1a4402){}}function _0x12f2(){var _0x80a1fa=['4452vIcPLz','3295836AefmHk','17944MEsKDv','onOpentelemetryInit','143MTkOBO','48552RWjUQP','252tcODuq','726HDTLny','814jLHhcq','10TVEQru','11042zFMGiU','1723293jrKWEg','43395lLXgge','onNTSessionCreate','4kamPRj','onGetSelfTinyId','1532692wJuQIz','onGProSessionCreate','onSessionInitComplete'];_0x12f2=function(){return _0x80a1fa;};return _0x12f2();} \ No newline at end of file +var _0x4df7e9=_0x4303;(function(_0x5826b1,_0xd5cce7){var _0x1bf014=_0x4303,_0x530b2a=_0x5826b1();while(!![]){try{var _0x3e145d=parseInt(_0x1bf014(0x170))/0x1*(parseInt(_0x1bf014(0x17a))/0x2)+parseInt(_0x1bf014(0x174))/0x3*(-parseInt(_0x1bf014(0x177))/0x4)+-parseInt(_0x1bf014(0x176))/0x5+-parseInt(_0x1bf014(0x16f))/0x6+parseInt(_0x1bf014(0x178))/0x7+-parseInt(_0x1bf014(0x16c))/0x8*(parseInt(_0x1bf014(0x175))/0x9)+parseInt(_0x1bf014(0x173))/0xa;if(_0x3e145d===_0xd5cce7)break;else _0x530b2a['push'](_0x530b2a['shift']());}catch(_0x1b4550){_0x530b2a['push'](_0x530b2a['shift']());}}}(_0x3ca6,0x47cf2));export class SessionListener{[_0x4df7e9(0x16e)](_0x5e7af7){}['onGProSessionCreate'](_0x119a05){}[_0x4df7e9(0x172)](_0x4113de){}[_0x4df7e9(0x171)](_0x2b3447){}[_0x4df7e9(0x16d)](_0x16baab){}[_0x4df7e9(0x179)](_0x40c59){}}function _0x4303(_0x3b8874,_0x39ef0b){var _0x3ca620=_0x3ca6();return _0x4303=function(_0x4303fd,_0x4b1ece){_0x4303fd=_0x4303fd-0x16c;var _0x21902a=_0x3ca620[_0x4303fd];return _0x21902a;},_0x4303(_0x3b8874,_0x39ef0b);}function _0x3ca6(){var _0x1d8173=['1356018Nxkrrh','1DECzXn','onOpentelemetryInit','onSessionInitComplete','8972440chdiqQ','722583GIenvx','3697803cbwnir','437370JdHJxO','4QlwyjY','2185820foyEvC','onGetSelfTinyId','99662oFaotB','8HlrPIq','onUserOnlineResult','onNTSessionCreate'];_0x3ca6=function(){return _0x1d8173;};return _0x3ca6();} \ 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 610878fc..981f51e7 100644 --- a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js +++ b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js @@ -1 +1 @@ -function _0x32cd(_0x2f3066,_0x1feb5f){var _0x316275=_0x3162();return _0x32cd=function(_0x32cd06,_0x593090){_0x32cd06=_0x32cd06-0xc1;var _0x3ff089=_0x316275[_0x32cd06];return _0x3ff089;},_0x32cd(_0x2f3066,_0x1feb5f);}var _0x11f65d=_0x32cd;function _0x3162(){var _0x1feb88=['1372642yUNSAO','4RhhotB','30leltWE','24ivPOTa','11aUcYmo','1597719gzStJV','onChatCleanDone','1337380VHAxna','34049790dZTNNS','onCleanCacheProgressChanged','onFinishScan','4158666XRPTWy','2343117DQPicA','922730uAgcCZ'];_0x3162=function(){return _0x1feb88;};return _0x3162();}(function(_0x17b712,_0x13a0c4){var _0x130e48=_0x32cd,_0x1969e0=_0x17b712();while(!![]){try{var _0x3280ef=-parseInt(_0x130e48(0xc1))/0x1+parseInt(_0x130e48(0xc2))/0x2+-parseInt(_0x130e48(0xc7))/0x3*(parseInt(_0x130e48(0xc3))/0x4)+parseInt(_0x130e48(0xc9))/0x5*(-parseInt(_0x130e48(0xc4))/0x6)+-parseInt(_0x130e48(0xce))/0x7*(parseInt(_0x130e48(0xc5))/0x8)+parseInt(_0x130e48(0xcd))/0x9+-parseInt(_0x130e48(0xca))/0xa*(-parseInt(_0x130e48(0xc6))/0xb);if(_0x3280ef===_0x13a0c4)break;else _0x1969e0['push'](_0x1969e0['shift']());}catch(_0x49be8d){_0x1969e0['push'](_0x1969e0['shift']());}}}(_0x3162,0xb8b12));export class StorageCleanListener{[_0x11f65d(0xcb)](_0x230cdc){}['onScanCacheProgressChanged'](_0x50635a){}['onCleanCacheStorageChanged'](_0x477f79){}[_0x11f65d(0xcc)](_0xae0959){}[_0x11f65d(0xc8)](_0x53016c){}} \ No newline at end of file +function _0x10a7(_0x32c380,_0x3959c1){var _0xd3fe32=_0xd3fe();return _0x10a7=function(_0x10a764,_0x5786bb){_0x10a764=_0x10a764-0xdb;var _0x297979=_0xd3fe32[_0x10a764];return _0x297979;},_0x10a7(_0x32c380,_0x3959c1);}function _0xd3fe(){var _0x13c41b=['462930ZOYklz','90834vhEQtP','20iwRKKf','6242890nhZSvL','9MKUwJU','onFinishScan','1502862qfylEV','80BzoYFf','423899hCgUsu','onChatCleanDone','12375352OBtBZt','51LRdKpT','onScanCacheProgressChanged','1653228jtxelh','onCleanCacheProgressChanged'];_0xd3fe=function(){return _0x13c41b;};return _0xd3fe();}var _0x21db12=_0x10a7;(function(_0x3bc2a7,_0xb40641){var _0x263c98=_0x10a7,_0x583270=_0x3bc2a7();while(!![]){try{var _0xb77d2f=-parseInt(_0x263c98(0xe5))/0x1+parseInt(_0x263c98(0xe6))/0x2*(-parseInt(_0x263c98(0xe1))/0x3)+parseInt(_0x263c98(0xe3))/0x4+parseInt(_0x263c98(0xe7))/0x5*(-parseInt(_0x263c98(0xdc))/0x6)+-parseInt(_0x263c98(0xde))/0x7*(-parseInt(_0x263c98(0xdd))/0x8)+-parseInt(_0x263c98(0xe9))/0x9*(-parseInt(_0x263c98(0xe8))/0xa)+parseInt(_0x263c98(0xe0))/0xb;if(_0xb77d2f===_0xb40641)break;else _0x583270['push'](_0x583270['shift']());}catch(_0x20422c){_0x583270['push'](_0x583270['shift']());}}}(_0xd3fe,0x81b47));export class StorageCleanListener{[_0x21db12(0xe4)](_0xd299f0){}[_0x21db12(0xe2)](_0x59cd59){}['onCleanCacheStorageChanged'](_0x10b22a){}[_0x21db12(0xdb)](_0x582f40){}[_0x21db12(0xdf)](_0x2db157){}} \ 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 072b419c..6fa60ff9 100644 --- a/src/core.lib/src/listeners/index.js +++ b/src/core.lib/src/listeners/index.js @@ -1 +1 @@ -(function(_0x73cffa,_0x20a9d5){var _0x5ec26b=_0x3dcb,_0x1c675a=_0x73cffa();while(!![]){try{var _0x39d906=-parseInt(_0x5ec26b(0x122))/0x1+parseInt(_0x5ec26b(0x120))/0x2*(-parseInt(_0x5ec26b(0x123))/0x3)+parseInt(_0x5ec26b(0x121))/0x4*(-parseInt(_0x5ec26b(0x11b))/0x5)+parseInt(_0x5ec26b(0x11c))/0x6+parseInt(_0x5ec26b(0x11f))/0x7+-parseInt(_0x5ec26b(0x11a))/0x8+parseInt(_0x5ec26b(0x11d))/0x9*(parseInt(_0x5ec26b(0x11e))/0xa);if(_0x39d906===_0x20a9d5)break;else _0x1c675a['push'](_0x1c675a['shift']());}catch(_0x4463cf){_0x1c675a['push'](_0x1c675a['shift']());}}}(_0x1bd2,0x4131b));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';function _0x3dcb(_0x23f63b,_0x2485d0){var _0x1bd21d=_0x1bd2();return _0x3dcb=function(_0x3dcb9a,_0x11d807){_0x3dcb9a=_0x3dcb9a-0x11a;var _0x4cd4fe=_0x1bd21d[_0x3dcb9a];return _0x4cd4fe;},_0x3dcb(_0x23f63b,_0x2485d0);}function _0x1bd2(){var _0x5cab13=['18280XwudgH','2440487PTiOTM','1214lqRIKr','4zLlQgg','475837KNPwQy','828PfRMlG','1672480llmZjF','926165ucoSWd','2840784majLdN','2376zXrOcd'];_0x1bd2=function(){return _0x5cab13;};return _0x1bd2();}export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file +(function(_0x4ca725,_0x365d1e){var _0x4d2568=_0x56e4,_0x6dd0d9=_0x4ca725();while(!![]){try{var _0x3d9195=-parseInt(_0x4d2568(0xd3))/0x1+-parseInt(_0x4d2568(0xd2))/0x2*(parseInt(_0x4d2568(0xd1))/0x3)+-parseInt(_0x4d2568(0xd0))/0x4+parseInt(_0x4d2568(0xcf))/0x5*(parseInt(_0x4d2568(0xd6))/0x6)+parseInt(_0x4d2568(0xd4))/0x7+-parseInt(_0x4d2568(0xce))/0x8+parseInt(_0x4d2568(0xd5))/0x9;if(_0x3d9195===_0x365d1e)break;else _0x6dd0d9['push'](_0x6dd0d9['shift']());}catch(_0x2b0d99){_0x6dd0d9['push'](_0x6dd0d9['shift']());}}}(_0x38c1,0x5efa3));export*from'./NodeIKernelSessionListener';function _0x38c1(){var _0x2ebab5=['1155FRMbbY','878292rhIgkz','118806dDOTtz','2ehhLsJ','466354POFPSy','415058EGYkLs','12465990RpoaMh','10962CsSkri','6015080KhFvzL'];_0x38c1=function(){return _0x2ebab5;};return _0x38c1();}export*from'./NodeIKernelLoginListener';function _0x56e4(_0x4b0cac,_0x4e5291){var _0x38c133=_0x38c1();return _0x56e4=function(_0x56e4ce,_0x3748a5){_0x56e4ce=_0x56e4ce-0xce;var _0x2cbe9a=_0x38c133[_0x56e4ce];return _0x2cbe9a;},_0x56e4(_0x4b0cac,_0x4e5291);}export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file diff --git a/src/core.lib/src/services/common.js b/src/core.lib/src/services/common.js index 69597a07..685abf94 100644 --- a/src/core.lib/src/services/common.js +++ b/src/core.lib/src/services/common.js @@ -1 +1 @@ -function _0xf113(){var _0xcf5c86=['82061XArbOh','146312EdBSlm','7334450xiDBLn','6HadBFN','18640nBuqpE','156ArIVCT','8ZtJJyz','11kwtJnj','35882172LKCNAJ','2019393UBmAjm','430IjBrtk','741126aJGfcJ'];_0xf113=function(){return _0xcf5c86;};return _0xf113();}(function(_0x3b7e7e,_0x4f63d1){var _0x18aae4=_0x5854,_0x32bad7=_0x3b7e7e();while(!![]){try{var _0x2ca02d=-parseInt(_0x18aae4(0x180))/0x1+parseInt(_0x18aae4(0x182))/0x2*(-parseInt(_0x18aae4(0x184))/0x3)+-parseInt(_0x18aae4(0x185))/0x4*(parseInt(_0x18aae4(0x17f))/0x5)+-parseInt(_0x18aae4(0x186))/0x6*(parseInt(_0x18aae4(0x181))/0x7)+parseInt(_0x18aae4(0x17b))/0x8*(-parseInt(_0x18aae4(0x17e))/0x9)+parseInt(_0x18aae4(0x183))/0xa*(-parseInt(_0x18aae4(0x17c))/0xb)+parseInt(_0x18aae4(0x17d))/0xc;if(_0x2ca02d===_0x4f63d1)break;else _0x32bad7['push'](_0x32bad7['shift']());}catch(_0x137fdd){_0x32bad7['push'](_0x32bad7['shift']());}}}(_0xf113,0x6b443));function _0x5854(_0x5ee109,_0x2d8cac){var _0xf11387=_0xf113();return _0x5854=function(_0x5854c3,_0x3e6a29){_0x5854c3=_0x5854c3-0x17b;var _0x1494a4=_0xf11387[_0x5854c3];return _0x1494a4;},_0x5854(_0x5ee109,_0x2d8cac);}export var GeneralCallResultStatus;(function(_0x2fb038){_0x2fb038[_0x2fb038['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file +(function(_0x241e1d,_0x2fb7c9){var _0x2d4d3b=_0x1891,_0x3cff90=_0x241e1d();while(!![]){try{var _0x2af71c=parseInt(_0x2d4d3b(0xb2))/0x1+parseInt(_0x2d4d3b(0xb5))/0x2*(-parseInt(_0x2d4d3b(0xb3))/0x3)+parseInt(_0x2d4d3b(0xb9))/0x4*(parseInt(_0x2d4d3b(0xb6))/0x5)+-parseInt(_0x2d4d3b(0xb8))/0x6*(-parseInt(_0x2d4d3b(0xba))/0x7)+-parseInt(_0x2d4d3b(0xb7))/0x8+-parseInt(_0x2d4d3b(0xb1))/0x9*(-parseInt(_0x2d4d3b(0xb4))/0xa)+parseInt(_0x2d4d3b(0xb0))/0xb;if(_0x2af71c===_0x2fb7c9)break;else _0x3cff90['push'](_0x3cff90['shift']());}catch(_0x35b167){_0x3cff90['push'](_0x3cff90['shift']());}}}(_0x330d,0xc06aa));export var GeneralCallResultStatus;function _0x1891(_0x528d6c,_0x11e43d){var _0x330dca=_0x330d();return _0x1891=function(_0x189146,_0x31ecb1){_0x189146=_0x189146-0xb0;var _0x523ab2=_0x330dca[_0x189146];return _0x523ab2;},_0x1891(_0x528d6c,_0x11e43d);}function _0x330d(){var _0x265600=['8933856vmsrBx','48ZdZYYY','63256ogcTeh','517083CUNeve','1232792jTtrRC','27nmKpVS','570637iuQieK','33rJidsv','4194180nAOrYf','280774jYPLMX','290gsuNzY'];_0x330d=function(){return _0x265600;};return _0x330d();}(function(_0x4daa1e){_0x4daa1e[_0x4daa1e['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file diff --git a/src/core.lib/src/services/index.js b/src/core.lib/src/services/index.js index 89997a36..a397262b 100644 --- a/src/core.lib/src/services/index.js +++ b/src/core.lib/src/services/index.js @@ -1 +1 @@ -(function(_0x3d60d6,_0x4cbae9){var _0x20a7f0=_0x2099,_0x234841=_0x3d60d6();while(!![]){try{var _0x1f24f9=-parseInt(_0x20a7f0(0x9f))/0x1*(parseInt(_0x20a7f0(0x9b))/0x2)+parseInt(_0x20a7f0(0x9c))/0x3+-parseInt(_0x20a7f0(0x9d))/0x4+parseInt(_0x20a7f0(0xa0))/0x5+parseInt(_0x20a7f0(0x9e))/0x6+parseInt(_0x20a7f0(0x99))/0x7+-parseInt(_0x20a7f0(0x9a))/0x8;if(_0x1f24f9===_0x4cbae9)break;else _0x234841['push'](_0x234841['shift']());}catch(_0x59ce6e){_0x234841['push'](_0x234841['shift']());}}}(_0x4201,0x43bf1));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';function _0x4201(){var _0x227191=['695481rUKKpX','946940JaZyZJ','1728774jTmNrx','142325JHZpLR','932165yaVHWF','2548847aBUfJJ','1034488oUVBzM','6QkTGvY'];_0x4201=function(){return _0x227191;};return _0x4201();}export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';function _0x2099(_0x2e77eb,_0x5ca2ff){var _0x420117=_0x4201();return _0x2099=function(_0x2099b0,_0xe07f84){_0x2099b0=_0x2099b0-0x99;var _0xdd7fc8=_0x420117[_0x2099b0];return _0xdd7fc8;},_0x2099(_0x2e77eb,_0x5ca2ff);}export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService'; \ No newline at end of file +(function(_0x29397a,_0x431a06){var _0x66e61d=_0x5ed3,_0x2fa344=_0x29397a();while(!![]){try{var _0x2dcf31=parseInt(_0x66e61d(0x172))/0x1*(parseInt(_0x66e61d(0x174))/0x2)+parseInt(_0x66e61d(0x16c))/0x3+-parseInt(_0x66e61d(0x171))/0x4*(parseInt(_0x66e61d(0x16e))/0x5)+-parseInt(_0x66e61d(0x173))/0x6+parseInt(_0x66e61d(0x16a))/0x7+-parseInt(_0x66e61d(0x16b))/0x8*(-parseInt(_0x66e61d(0x16d))/0x9)+parseInt(_0x66e61d(0x16f))/0xa*(-parseInt(_0x66e61d(0x170))/0xb);if(_0x2dcf31===_0x431a06)break;else _0x2fa344['push'](_0x2fa344['shift']());}catch(_0x2b89b6){_0x2fa344['push'](_0x2fa344['shift']());}}}(_0x55d5,0x75588));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';function _0x5ed3(_0x5bf686,_0x32ceaf){var _0x55d563=_0x55d5();return _0x5ed3=function(_0x5ed34e,_0x2f7e98){_0x5ed34e=_0x5ed34e-0x16a;var _0x36df12=_0x55d563[_0x5ed34e];return _0x36df12;},_0x5ed3(_0x5bf686,_0x32ceaf);}export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';function _0x55d5(){var _0x304029=['1630118eiCZoN','8SyuzSc','1524249AOmWjs','2545497tjwnxr','5QOIWyf','9990PwUPjs','11781RXkOQY','538108PRMBWz','563ZPjqXY','899814xTruNd','2882fcqbOL'];_0x55d5=function(){return _0x304029;};return _0x55d5();}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 0a2abaee..51bc2c81 100644 --- a/src/core.lib/src/sessionConfig.js +++ b/src/core.lib/src/sessionConfig.js @@ -1 +1 @@ -(function(_0x15a4ba,_0x22f46f){const _0x458557=_0x11db,_0x1126e5=_0x15a4ba();while(!![]){try{const _0x22696e=-parseInt(_0x458557(0xc3))/0x1+parseInt(_0x458557(0xc1))/0x2+parseInt(_0x458557(0xb3))/0x3*(parseInt(_0x458557(0xb9))/0x4)+-parseInt(_0x458557(0xbf))/0x5+parseInt(_0x458557(0xb7))/0x6+-parseInt(_0x458557(0xba))/0x7*(parseInt(_0x458557(0xb5))/0x8)+parseInt(_0x458557(0xc6))/0x9;if(_0x22696e===_0x22f46f)break;else _0x1126e5['push'](_0x1126e5['shift']());}catch(_0x421d05){_0x1126e5['push'](_0x1126e5['shift']());}}}(_0x18f2,0xa2cb3));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';function _0x18f2(){const _0x454e2a=['join','500JCbZFo','14YZDjPc','curVersion','KMtTB','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','version','6375295DnuNVS','ESmVg','1177680cHVMkA','readFileSync','758131HpXBBx','writeFileSync','assign','13282245LDCUZF','guid.txt','23937PKFUNr','NapCat','3187936LxtVAE','MsuIb','2609742NgdWWf'];_0x18f2=function(){return _0x454e2a;};return _0x18f2();}function _0x11db(_0x31c82b,_0xc12385){const _0x18f240=_0x18f2();return _0x11db=function(_0x11db06,_0x449557){_0x11db06=_0x11db06-0xb2;let _0x3beb3a=_0x18f240[_0x11db06];return _0x3beb3a;},_0x11db(_0x31c82b,_0xc12385);}import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x137693 from'node:path';import _0x525422 from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0x45878c,_0x3544df,_0x384a4b){const _0xa9df19=_0x11db,_0x3d8927={'BayUh':_0xa9df19(0xb4),'KMtTB':_0xa9df19(0xb2),'ESmVg':function(_0x243e0a){return _0x243e0a();},'MsuIb':'utf-8'},_0x2677d8=_0x137693['join'](_0x384a4b,_0x3d8927['BayUh'],'temp');_0x525422['mkdirSync'](_0x2677d8,{'recursive':!![]});const _0x1c2282=_0x137693[_0xa9df19(0xb8)](_0x384a4b,_0xa9df19(0xb4),_0x3d8927[_0xa9df19(0xbc)]);let _0x10a64f=_0x3d8927[_0xa9df19(0xc0)](randomUUID);try{_0x10a64f=_0x525422[_0xa9df19(0xc2)](_0x137693[_0xa9df19(0xb8)](_0x1c2282),_0x3d8927[_0xa9df19(0xb6)]);}catch(_0x34c881){_0x525422[_0xa9df19(0xc4)](_0x137693['join'](_0x1c2282),_0x10a64f,_0x3d8927[_0xa9df19(0xb6)]);}const _0x59562f={'selfUin':_0x45878c,'selfUid':_0x3544df,'desktopPathConfig':{'account_path':_0x384a4b},'clientVer':qqVersionConfigInfo[_0xa9df19(0xbb)],'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':_0x2677d8,'deviceInfo':{'guid':_0x10a64f,'buildVer':qqPkgInfo[_0xa9df19(0xbe)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0xa9df19(0xbd)};return Object[_0xa9df19(0xc5)](sessionConfig,_0x59562f),_0x59562f;} \ No newline at end of file +(function(_0x5b4624,_0x4cea17){const _0x3bcf37=_0x510a,_0x3485b4=_0x5b4624();while(!![]){try{const _0x358780=-parseInt(_0x3bcf37(0xd9))/0x1+-parseInt(_0x3bcf37(0xd7))/0x2*(parseInt(_0x3bcf37(0xdc))/0x3)+-parseInt(_0x3bcf37(0xd0))/0x4+parseInt(_0x3bcf37(0xd4))/0x5*(-parseInt(_0x3bcf37(0xda))/0x6)+parseInt(_0x3bcf37(0xd3))/0x7*(-parseInt(_0x3bcf37(0xd5))/0x8)+-parseInt(_0x3bcf37(0xcb))/0x9*(parseInt(_0x3bcf37(0xd2))/0xa)+parseInt(_0x3bcf37(0xca))/0xb;if(_0x358780===_0x4cea17)break;else _0x3485b4['push'](_0x3485b4['shift']());}catch(_0x41eb06){_0x3485b4['push'](_0x3485b4['shift']());}}}(_0x223a,0xdbc65));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';function _0x223a(){const _0x5780e3=['8VXtOpy','mkdirSync','178GHZsju','ukFxJ','109023YLABBm','2683266EHVPcK','curVersion','26694zFlUxl','temp','Ilxij','assign','LZfLt','zxOeF','63729270wyjkHk','9054seNgaP','guid.txt','utf-8','join','NapCat','1162192ZNmPep','PgcVL','17020qaibUI','10797199mPjCtw','5FWolrN'];_0x223a=function(){return _0x5780e3;};return _0x223a();}import _0x415417 from'node:path';import _0x1c01c7 from'node:fs';function _0x510a(_0x18ef8c,_0x50b10c){const _0x223a39=_0x223a();return _0x510a=function(_0x510a4f,_0x12949a){_0x510a4f=_0x510a4f-0xc6;let _0x2b6a83=_0x223a39[_0x510a4f];return _0x2b6a83;},_0x510a(_0x18ef8c,_0x50b10c);}import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0xbfc045,_0x40303d,_0x23f002){const _0x5b20e9=_0x510a,_0x1855df={'LZfLt':'NapCat','PgcVL':_0x5b20e9(0xcc),'Ilxij':function(_0x245920){return _0x245920();},'zxOeF':_0x5b20e9(0xcd),'ukFxJ':'{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}'},_0x4f89a2=_0x415417['join'](_0x23f002,_0x5b20e9(0xcf),_0x5b20e9(0xdd));_0x1c01c7[_0x5b20e9(0xd6)](_0x4f89a2,{'recursive':!![]});const _0x34b672=_0x415417[_0x5b20e9(0xce)](_0x23f002,_0x1855df[_0x5b20e9(0xc8)],_0x1855df[_0x5b20e9(0xd1)]);let _0xe744ef=_0x1855df[_0x5b20e9(0xc6)](randomUUID);try{_0xe744ef=_0x1c01c7['readFileSync'](_0x415417[_0x5b20e9(0xce)](_0x34b672),'utf-8');}catch(_0x26725e){_0x1c01c7['writeFileSync'](_0x415417[_0x5b20e9(0xce)](_0x34b672),_0xe744ef,_0x1855df[_0x5b20e9(0xc9)]);}const _0x137485={'selfUin':_0xbfc045,'selfUid':_0x40303d,'desktopPathConfig':{'account_path':_0x23f002},'clientVer':qqVersionConfigInfo[_0x5b20e9(0xdb)],'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':_0x4f89a2,'deviceInfo':{'guid':_0xe744ef,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x1855df[_0x5b20e9(0xd8)]};return Object[_0x5b20e9(0xc7)](sessionConfig,_0x137485),_0x137485;} \ 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 c65753e2..20f3e9f8 100644 --- a/src/core.lib/src/utils/config.js +++ b/src/core.lib/src/utils/config.js @@ -1 +1 @@ -const _0xfe97de=_0x26ba;(function(_0x418a2d,_0x43eb18){const _0x274349=_0x26ba,_0x2db36b=_0x418a2d();while(!![]){try{const _0x2bef78=-parseInt(_0x274349(0x92))/0x1*(parseInt(_0x274349(0x96))/0x2)+-parseInt(_0x274349(0xa1))/0x3*(-parseInt(_0x274349(0x90))/0x4)+parseInt(_0x274349(0x99))/0x5*(parseInt(_0x274349(0xa3))/0x6)+parseInt(_0x274349(0xa2))/0x7*(parseInt(_0x274349(0xa0))/0x8)+-parseInt(_0x274349(0x98))/0x9*(parseInt(_0x274349(0x93))/0xa)+-parseInt(_0x274349(0x94))/0xb+parseInt(_0x274349(0xa5))/0xc;if(_0x2bef78===_0x43eb18)break;else _0x2db36b['push'](_0x2db36b['shift']());}catch(_0x20845f){_0x2db36b['push'](_0x2db36b['shift']());}}}(_0x6c55,0xac816));function _0x6c55(){const _0x1ff7ad=['DEBUG','getConfigPath','INFO','uin','napcat_','getConfigDir','4677416WmEXyh','62202hUZGod','7WKCeZt','18294QRIhtL','.json','11357340pvVZUF','196WkAwZe','consoleLogLevel','1hAJhvy','10cSUmcf','12250777JjQrXE','consoleLog','789540bDEfCr','join','10013157nkJRTo','1280CmbkDK'];_0x6c55=function(){return _0x1ff7ad;};return _0x6c55();}import _0x261723 from'node:path';function _0x26ba(_0xadbee2,_0x5dae46){const _0x6c5529=_0x6c55();return _0x26ba=function(_0x26bab0,_0x55879a){_0x26bab0=_0x26bab0-0x90;let _0x317a85=_0x6c5529[_0x26bab0];return _0x317a85;},_0x26ba(_0xadbee2,_0x5dae46);}import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{['fileLog']=!![];[_0xfe97de(0x95)]=!![];['fileLogLevel']=LogLevel[_0xfe97de(0x9a)];[_0xfe97de(0x91)]=LogLevel[_0xfe97de(0x9c)];constructor(){super();}[_0xfe97de(0x9b)](){const _0x5b0d31=_0xfe97de;return _0x261723[_0x5b0d31(0x97)](this[_0x5b0d31(0x9f)](),_0x5b0d31(0x9e)+selfInfo[_0x5b0d31(0x9d)]+_0x5b0d31(0xa4));}}export const napCatConfig=new Config(); \ No newline at end of file +const _0x1d0b26=_0x142d;function _0x142d(_0x481c10,_0x5cf065){const _0x1b3ce1=_0x1b3c();return _0x142d=function(_0x142dc4,_0xbc6672){_0x142dc4=_0x142dc4-0x7e;let _0x3a32f1=_0x1b3ce1[_0x142dc4];return _0x3a32f1;},_0x142d(_0x481c10,_0x5cf065);}(function(_0x53e850,_0x3bc172){const _0x4fa942=_0x142d,_0x3f5262=_0x53e850();while(!![]){try{const _0x210ab9=parseInt(_0x4fa942(0x8b))/0x1*(-parseInt(_0x4fa942(0x8c))/0x2)+-parseInt(_0x4fa942(0x86))/0x3+parseInt(_0x4fa942(0x7e))/0x4+-parseInt(_0x4fa942(0x81))/0x5+-parseInt(_0x4fa942(0x83))/0x6*(-parseInt(_0x4fa942(0x8a))/0x7)+parseInt(_0x4fa942(0x88))/0x8+-parseInt(_0x4fa942(0x82))/0x9*(parseInt(_0x4fa942(0x7f))/0xa);if(_0x210ab9===_0x3bc172)break;else _0x3f5262['push'](_0x3f5262['shift']());}catch(_0x2ab09f){_0x3f5262['push'](_0x3f5262['shift']());}}}(_0x1b3c,0x18ad0));import _0x2d3762 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{['fileLog']=!![];[_0x1d0b26(0x80)]=!![];[_0x1d0b26(0x85)]=LogLevel[_0x1d0b26(0x87)];[_0x1d0b26(0x84)]=LogLevel[_0x1d0b26(0x8f)];constructor(){super();}[_0x1d0b26(0x89)](){const _0x454262=_0x1d0b26;return _0x2d3762['join'](this[_0x454262(0x8d)](),'napcat_'+selfInfo['uin']+_0x454262(0x8e));}}function _0x1b3c(){const _0x5ca652=['1kFcXxd','64052jscmrk','getConfigDir','.json','INFO','792676UtWvyx','10qODvlS','consoleLog','531030HUTriv','1227114FcTlRO','12GBQSKr','consoleLogLevel','fileLogLevel','403992TIFKRR','DEBUG','1208040mTCKeI','getConfigPath','563990kOmiHT'];_0x1b3c=function(){return _0x5ca652;};return _0x1b3c();}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 44585210..3dae9679 100644 --- a/src/core.lib/src/utils/db.js +++ b/src/core.lib/src/utils/db.js @@ -1 +1 @@ -function _0x1940(){const _0x259b56=['1287816EXpDWM','getMsgBySeq','getFileCache','uid','msgCache','longId','sewGi','\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)','umEzl','addFileCache','jbcoo','errno','ONezX','UYNCc','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','Zbaqa','UQMIC','now','get','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','plhFx','Could\x20not\x20create\x20table\x20temp_uins','FWPDS','elementId','ArBoY','Could\x20not\x20connect\x20to\x20database',',\x20seq:\x20','GMEqf','KgyJE','525879kTHVoy',',\x20msgId:\x20','globalMsgShortId','tybYf','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','FRTKI','db\x20could\x20not\x20get\x20temp\x20uin\x20map','path','element','createTable','db\x20could\x20not\x20add\x20file','getCurrentMaxShortId','NBoyp','更新消息,\x20shortId:','53809BhjCTi','TsJfW','Nmndu','url','aOMpU','AmYsH','记录消息到数据库,\x20消息长id:\x20','msgId','getMsgsByMsgId','513405qUYVos','清理消息缓存','init','HUubb','epNbg','LdoIR','MwdHb','2TxvKep','name','aTCPl','860192hEhoQD','has','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','HjfGd','elementType','chatType','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20msgs\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shortId\x20INTEGER\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20longId\x20TEXT\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20seq\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20peerUid\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chatType\x20INTEGER\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','getMsg','forEach','updateMsg\x20db\x20error','ghJTV','db\x20could\x20not\x20add\x20msg','\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)','then','cbnPI','IEPLD','70YSpauN','catch','db\x20getMsgByLongId\x20error','getMsgByShortId','getFileCacheByUuid','lRzXY','Could\x20not\x20create\x20table\x20files','close','run','getReceivedTempUinMap','oNdca','215709NshPEH','stringify','SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?','aYMWU','xDiUl','zTfSN','set','BBqGm','all','getFileCacheByName','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','uin','prepare','758090tjEJeD','msgSeq','addMsg','zrVCl','hFLrr','vIGYf','wSZJK','uRIoz','delete','150kjvfjY','SgRjj','db\x20could\x20not\x20update\x20file\x20cache','RivYT','maxId','JnFCX','size','数据库中消息最大短id','getMsgByLongId','NhVQv','PpxfV',',\x20短id:\x20','Database','toString','znaWH','Could\x20not\x20create\x20table\x20msgs','NYelT','Method\x20not\x20implemented.'];_0x1940=function(){return _0x259b56;};return _0x1940();}const _0x44c136=_0x16e5;(function(_0x170ef5,_0x3d704b){const _0x4a2a53=_0x16e5,_0x231b4e=_0x170ef5();while(!![]){try{const _0x1a4858=parseInt(_0x4a2a53(0xf8))/0x1+parseInt(_0x4a2a53(0xda))/0x2*(-parseInt(_0x4a2a53(0xbc))/0x3)+parseInt(_0x4a2a53(0xdd))/0x4+-parseInt(_0x4a2a53(0x105))/0x5+-parseInt(_0x4a2a53(0x10e))/0x6*(parseInt(_0x4a2a53(0xca))/0x7)+-parseInt(_0x4a2a53(0x9f))/0x8+-parseInt(_0x4a2a53(0xd3))/0x9*(-parseInt(_0x4a2a53(0xed))/0xa);if(_0x1a4858===_0x3d704b)break;else _0x231b4e['push'](_0x231b4e['shift']());}catch(_0x31965e){_0x231b4e['push'](_0x231b4e['shift']());}}}(_0x1940,0x249f9));import _0x54c40d from'sqlite3';function _0x16e5(_0x199735,_0x37cc32){const _0x1940b6=_0x1940();return _0x16e5=function(_0x16e55c,_0x4bd6e7){_0x16e55c=_0x16e55c-0x8e;let _0x37cc88=_0x1940b6[_0x16e55c];return _0x37cc88;},_0x16e5(_0x199735,_0x37cc32);}import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async[_0x44c136(0xd5)](_0x11c056){const _0x4428d2=_0x44c136,_0x3fffcc={'JnFCX':function(_0x8ee2c5,_0x46d3f6,_0xbbde44){return _0x8ee2c5(_0x46d3f6,_0xbbde44);},'rSiXO':_0x4428d2(0xb8),'noTNd':function(_0xcf784a){return _0xcf784a();},'epNbg':function(_0x29b3dc,_0x29e417){return _0x29b3dc|_0x29e417;}};if(this['db'])return;return new Promise((_0x22ec0d,_0x4e51de)=>{const _0x3eb7a5=_0x4428d2,_0x285c2f={'cfltY':function(_0x562002,_0x47fef3,_0x3f5e3d){const _0x1c78e8=_0x16e5;return _0x3fffcc[_0x1c78e8(0x92)](_0x562002,_0x47fef3,_0x3f5e3d);},'LdoIR':_0x3fffcc['rSiXO'],'UYNCc':function(_0x5c67b5){return _0x3fffcc['noTNd'](_0x5c67b5);}};this['db']=new _0x54c40d[(_0x3eb7a5(0x99))](_0x11c056,_0x3fffcc[_0x3eb7a5(0xd7)](_0x54c40d['OPEN_READWRITE'],_0x54c40d['OPEN_CREATE']),_0x349ca4=>{const _0x31d8c9=_0x3eb7a5;if(_0x349ca4){_0x285c2f['cfltY'](logError,_0x285c2f[_0x31d8c9(0xd8)],_0x349ca4),_0x4e51de(_0x349ca4);return;}this[_0x31d8c9(0xc5)](),_0x285c2f[_0x31d8c9(0xac)](_0x22ec0d);});});}[_0x44c136(0xc5)](){const _0x21f699=_0x44c136;throw new Error(_0x21f699(0x9e));}[_0x44c136(0xf4)](){const _0x32eecd=_0x44c136;this['db']?.[_0x32eecd(0xf4)]();}}class DBUtil extends DBUtilBase{['msgCache']=new Map();[_0x44c136(0xbe)]=-0x7ffffff8;constructor(){const _0x2c4d76=_0x44c136,_0x347aad={'oNdca':function(_0x3a8948,_0xe92e36){return _0x3a8948>_0xe92e36;},'rhWqS':function(_0x4aa72e,_0x4926b9){return _0x4aa72e-_0x4926b9;},'TsJfW':function(_0x5a3e28,_0x39f68d){return _0x5a3e28(_0x39f68d);},'IEPLD':function(_0x433a34,_0x1f3265){return _0x433a34*_0x1f3265;},'xDiUl':function(_0x192ed7,_0x3af3bf){return _0x192ed7*_0x3af3bf;},'BBqGm':function(_0x3a3d7e,_0x22cc72,_0x145f96){return _0x3a3d7e(_0x22cc72,_0x145f96);}};super();const _0x1442f3=_0x347aad[_0x2c4d76(0xec)](_0x347aad[_0x2c4d76(0xfc)](0x3e8,0x3c),0xa);_0x347aad[_0x2c4d76(0xff)](setInterval,()=>{const _0x1e8b03=_0x2c4d76;_0x347aad[_0x1e8b03(0xcb)](logDebug,_0x1e8b03(0xd4)),this[_0x1e8b03(0xa3)][_0x1e8b03(0xe5)]((_0x301819,_0x6fdb0b)=>{const _0x2c3301=_0x1e8b03;_0x347aad[_0x2c3301(0xf7)](_0x347aad['rhWqS'](Date[_0x2c3301(0xb0)](),_0x347aad[_0x2c3301(0xcb)](parseInt,_0x301819['msgTime'])*0x3e8),_0x1442f3)&&this[_0x2c3301(0xa3)][_0x2c3301(0x10d)](_0x6fdb0b);});},_0x1442f3);}async[_0x44c136(0xd5)](_0x561468){await super['init'](_0x561468),this['globalMsgShortId']=await this['getCurrentMaxShortId']();}['createTable'](){const _0x1e4eb9=_0x44c136,_0x29ad4c={'wSZJK':function(_0x2ad59a,_0x5b63ce,_0x3cd6bc){return _0x2ad59a(_0x5b63ce,_0x3cd6bc);},'aOMpU':_0x1e4eb9(0xf3),'cbnPI':function(_0x2b532b,_0x250ef6,_0x34caf6){return _0x2b532b(_0x250ef6,_0x34caf6);},'HjfGd':_0x1e4eb9(0xb4)},_0x271b76=_0x1e4eb9(0xe3);this['db']['run'](_0x271b76,function(_0xabe3d){const _0x442afb=_0x1e4eb9;_0xabe3d&&logError(_0x442afb(0x9c),_0xabe3d['stack']);});const _0x2610b3=_0x1e4eb9(0xa6);this['db'][_0x1e4eb9(0xf5)](_0x2610b3,function(_0x1d3381){const _0x17e62b=_0x1e4eb9;_0x1d3381&&_0x29ad4c[_0x17e62b(0x10b)](logError,_0x29ad4c[_0x17e62b(0xce)],_0x1d3381);});const _0x2764c0=_0x1e4eb9(0xe9);this['db']['run'](_0x2764c0,function(_0x350770){const _0x3e8379=_0x1e4eb9;_0x350770&&_0x29ad4c[_0x3e8379(0xeb)](logError,_0x29ad4c[_0x3e8379(0xe0)],_0x350770);});}async[_0x44c136(0xc7)](){const _0x299cb7=_0x44c136,_0x16600d={'tybYf':_0x299cb7(0x94)};return new Promise((_0x1104ec,_0xbc6bff)=>{const _0x40595a=_0x299cb7,_0x2036ee={'sewGi':'Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','jbcoo':function(_0x561ed4,_0x2e1b87){return _0x561ed4(_0x2e1b87);},'bTegi':_0x16600d[_0x40595a(0xbf)]};this['db']['get'](_0x40595a(0xad),(_0x2e9e0c,_0x383a11)=>{const _0x5d135d=_0x40595a;if(_0x2e9e0c)return logDebug(_0x2036ee[_0x5d135d(0xa5)],_0x2e9e0c),_0x2036ee[_0x5d135d(0xa9)](_0x1104ec,-0x7ffffff8);logDebug(_0x2036ee['bTegi'],_0x383a11?.[_0x5d135d(0x91)]),_0x2036ee[_0x5d135d(0xa9)](_0x1104ec,_0x383a11?.[_0x5d135d(0x91)]??-0x7ffffff8);});});}async['getMsg'](_0x1fa4e8,_0x14b408){const _0xe4b407=_0x44c136,_0x3fcf30={'KsNNe':function(_0x1d7990,_0x18ec19,_0x4d304a,_0x305394,_0x71987b){return _0x1d7990(_0x18ec19,_0x4d304a,_0x305394,_0x71987b);},'ghJTV':function(_0x1feefb,_0x2ac1ed){return _0x1feefb(_0x2ac1ed);},'rhVXq':function(_0x5068d0,_0x1220fb){return _0x5068d0(_0x1220fb);}},_0x43eb99=this['db'][_0xe4b407(0x104)](_0x1fa4e8);return new Promise((_0x1933b4,_0x4c7aca)=>{const _0x31305c=_0xe4b407;_0x43eb99[_0x31305c(0xb1)](..._0x14b408,(_0x49546b,_0x3565a6)=>{const _0x119bc0=_0x31305c,_0x23c309={'SgRjj':function(_0x5680b9,_0x95e1e8){return _0x5680b9(_0x95e1e8);}};if(_0x49546b)return _0x3fcf30['KsNNe'](logError,'Could\x20not\x20get\x20msg',_0x49546b,_0x1fa4e8,_0x14b408),_0x3fcf30[_0x119bc0(0xe7)](_0x1933b4,null);if(!_0x3565a6){_0x3fcf30['rhVXq'](_0x1933b4,null);return;}const _0x3ff7f6=_0x3565a6[_0x119bc0(0xa4)];NTQQMsgApi[_0x119bc0(0xd2)]({'peerUid':_0x3565a6['peerUid'],'chatType':_0x3565a6[_0x119bc0(0xe2)]},[_0x3ff7f6])[_0x119bc0(0xea)](_0x1d13c6=>{const _0x1bfd81=_0x119bc0,_0x48757d=_0x1d13c6['msgList'][0x0];if(!_0x48757d){_0x1933b4(null);return;}_0x48757d['id']=_0x3565a6['shortId'],_0x23c309[_0x1bfd81(0x8e)](_0x1933b4,_0x48757d);})['catch'](_0xbaba76=>{_0x1933b4(null);});});});}async[_0x44c136(0xf0)](_0x2063bc){const _0x141e14=_0x44c136,_0x4d7291={'lRzXY':'SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?'};if(this['msgCache'][_0x141e14(0xde)](_0x2063bc))return this[_0x141e14(0xa3)]['get'](_0x2063bc);const _0x34696a=_0x4d7291[_0x141e14(0xf2)];return this['getMsg'](_0x34696a,[_0x2063bc]);}async[_0x44c136(0x95)](_0x28aff5){const _0x13cf40=_0x44c136,_0x4ac3d9={'KgyJE':_0x13cf40(0xb2)};if(this['msgCache'][_0x13cf40(0xde)](_0x28aff5))return this[_0x13cf40(0xa3)][_0x13cf40(0xb1)](_0x28aff5);return this[_0x13cf40(0xe4)](_0x4ac3d9[_0x13cf40(0xbb)],[_0x28aff5]);}async[_0x44c136(0xa0)](_0x137687,_0x146282){const _0x323b11=_0x44c136,_0x59f756={'XAgtp':_0x323b11(0xdf)},_0x38b26f=_0x59f756['XAgtp'];return this[_0x323b11(0xe4)](_0x38b26f,[_0x137687,_0x146282]);}async[_0x44c136(0x107)](_0x51b9eb,_0x4d2fc6=!![]){const _0x57652d=_0x44c136,_0x38d9b8={'Nmndu':_0x57652d(0xc0),'aYMWU':function(_0x5cf40f,_0x24448b){return _0x5cf40f===_0x24448b;},'vjXfp':function(_0x508fff,_0x3b01b0,_0x41c2eb){return _0x508fff(_0x3b01b0,_0x41c2eb);},'NYelT':_0x57652d(0xe8),'MwdHb':'INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)'},_0x30562c=await this[_0x57652d(0x95)](_0x51b9eb[_0x57652d(0xd1)]);if(_0x30562c){if(_0x4d2fc6)this['updateMsg'](_0x51b9eb)[_0x57652d(0xea)]();return _0x30562c['id'];}const _0xf836d9=this['db'][_0x57652d(0x104)](_0x38d9b8[_0x57652d(0xd9)]),_0xb0a3fd=++this[_0x57652d(0xbe)];return _0x51b9eb['id']=_0xb0a3fd,logDebug(_0x57652d(0xd0)+_0x51b9eb['msgId']+_0x57652d(0x98)+_0x51b9eb['id']),this['msgCache'][_0x57652d(0xfe)](_0xb0a3fd,_0x51b9eb),this[_0x57652d(0xa3)][_0x57652d(0xfe)](_0x51b9eb[_0x57652d(0xd1)],_0x51b9eb),_0xf836d9[_0x57652d(0xf5)](this[_0x57652d(0xbe)],_0x51b9eb[_0x57652d(0xd1)],_0x51b9eb[_0x57652d(0x106)][_0x57652d(0x9a)](),_0x51b9eb['peerUid'],_0x51b9eb[_0x57652d(0xe2)],_0xe09bfb=>{const _0x3ee1d9=_0x57652d,_0x50afc3={'MyEDP':_0x38d9b8[_0x3ee1d9(0xcc)]};_0xe09bfb&&(_0x38d9b8[_0x3ee1d9(0xfb)](_0xe09bfb[_0x3ee1d9(0xaa)],0x13)?this[_0x3ee1d9(0x95)](_0x51b9eb[_0x3ee1d9(0xd1)])[_0x3ee1d9(0xea)](_0x247718=>{const _0x1a40d1=_0x3ee1d9;_0x247718?(this[_0x1a40d1(0xa3)][_0x1a40d1(0xfe)](_0xb0a3fd,_0x247718),this[_0x1a40d1(0xa3)][_0x1a40d1(0xfe)](_0x247718[_0x1a40d1(0xd1)],_0x247718)):logError(_0x50afc3['MyEDP'],_0xe09bfb);})[_0x3ee1d9(0xee)](_0x10efa4=>logError(_0x3ee1d9(0xef),_0x10efa4)):_0x38d9b8['vjXfp'](logError,_0x38d9b8[_0x3ee1d9(0x9d)],_0xe09bfb));}),_0xb0a3fd;}async['updateMsg'](_0x3deb68){const _0x396a6c=_0x44c136,_0x2b522f={'FRTKI':function(_0x4529bd,_0x55462d,_0x1f24f5){return _0x4529bd(_0x55462d,_0x1f24f5);},'vIGYf':_0x396a6c(0xe6),'ONezX':function(_0x4e1948,_0x21ef02){return _0x4e1948(_0x21ef02);},'aTCPl':'UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?'},_0x22aa37=this['msgCache'][_0x396a6c(0xb1)](_0x3deb68[_0x396a6c(0xd1)]);_0x22aa37&&Object['assign'](_0x22aa37,_0x3deb68);_0x2b522f[_0x396a6c(0xab)](logDebug,_0x396a6c(0xc9)+_0x3deb68['id']+_0x396a6c(0xb9)+_0x3deb68['msgSeq']+_0x396a6c(0xbd)+_0x3deb68[_0x396a6c(0xd1)]);const _0x2f444d=this['db']['prepare'](_0x2b522f[_0x396a6c(0xdc)]);_0x2f444d[_0x396a6c(0xf5)](_0x3deb68[_0x396a6c(0x106)],_0x3deb68[_0x396a6c(0xd1)],_0x5323b4=>{const _0x40e35c=_0x396a6c;_0x5323b4&&_0x2b522f[_0x40e35c(0xc1)](logError,_0x2b522f[_0x40e35c(0x10a)],_0x5323b4);});}async[_0x44c136(0xa8)](_0x122bec){const _0x29ce4a=_0x44c136,_0x43a9d2={'plhFx':function(_0x393168,_0x1807da,_0x18ed8d){return _0x393168(_0x1807da,_0x18ed8d);},'umEzl':_0x29ce4a(0xc6),'AmYsH':'INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)'},_0x5517c7=this['db'][_0x29ce4a(0x104)](_0x43a9d2[_0x29ce4a(0xcf)]);return new Promise((_0x3d0c40,_0x40fbc3)=>{const _0x5ad5ed=_0x29ce4a;_0x5517c7[_0x5ad5ed(0xf5)](_0x122bec[_0x5ad5ed(0xdb)],_0x122bec[_0x5ad5ed(0xc3)],_0x122bec[_0x5ad5ed(0xcd)],_0x122bec[_0x5ad5ed(0x93)],_0x122bec['uuid'],_0x122bec[_0x5ad5ed(0xe1)],JSON[_0x5ad5ed(0xf9)](_0x122bec[_0x5ad5ed(0xc4)]),_0x122bec[_0x5ad5ed(0xb6)],_0x122bec[_0x5ad5ed(0xd1)],function(_0x347fb3){const _0x13573f=_0x5ad5ed;_0x347fb3&&(_0x43a9d2[_0x13573f(0xb3)](logError,_0x43a9d2[_0x13573f(0xa7)],_0x347fb3),_0x40fbc3(_0x347fb3)),_0x3d0c40(null);});});}async['getFileCache'](_0x2d7a53,_0x1ac490){const _0x11322b=_0x44c136,_0x6be81d={'GMEqf':function(_0x508844,_0x11a913){return _0x508844(_0x11a913);}},_0x501433=this['db'][_0x11322b(0x104)](_0x2d7a53);return new Promise((_0x3d4000,_0x51ddbc)=>{const _0x416022=_0x11322b,_0x4214db={'zTfSN':function(_0x25fcc1,_0xdfb48){const _0xc62f7=_0x16e5;return _0x6be81d[_0xc62f7(0xba)](_0x25fcc1,_0xdfb48);}};_0x501433[_0x416022(0xb1)](..._0x1ac490,(_0x38888c,_0x519b4f)=>{const _0x2eedb2=_0x416022;_0x38888c&&(logError('db\x20could\x20not\x20get\x20file\x20cache',_0x38888c),_0x51ddbc(_0x38888c)),_0x519b4f&&(_0x519b4f['element']=JSON['parse'](_0x519b4f[_0x2eedb2(0xc4)])),_0x4214db[_0x2eedb2(0xfd)](_0x3d4000,_0x519b4f);});});}async[_0x44c136(0x101)](_0x1abb4a){const _0x16a1a3=_0x44c136;return this['getFileCache'](_0x16a1a3(0x102),[_0x1abb4a]);}async[_0x44c136(0xf1)](_0x560df3){const _0x5e7f68=_0x44c136,_0x48abc2={'FWPDS':_0x5e7f68(0xfa)};return this[_0x5e7f68(0xa1)](_0x48abc2[_0x5e7f68(0xb5)],[_0x560df3]);}async['updateFileCache'](_0xa45e8f){const _0x1946ac=_0x44c136,_0x3b39aa={'UEzQf':function(_0x106cce,_0x1f8bb4,_0xa07c59){return _0x106cce(_0x1f8bb4,_0xa07c59);},'ZwCGf':_0x1946ac(0x8f),'AYyNH':function(_0x265ea6,_0x2f9145){return _0x265ea6(_0x2f9145);},'Zbaqa':'UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?'},_0xbd3c28=this['db'][_0x1946ac(0x104)](_0x3b39aa[_0x1946ac(0xae)]);return new Promise((_0x3220c,_0x5c13a7)=>{const _0x2707e2=_0x1946ac;_0xbd3c28[_0x2707e2(0xf5)](_0xa45e8f['path'],_0xa45e8f[_0x2707e2(0xcd)],_0xa45e8f['uuid'],function(_0x3f67c1){_0x3f67c1&&(_0x3b39aa['UEzQf'](logError,_0x3b39aa['ZwCGf'],_0x3f67c1),_0x5c13a7(_0x3f67c1)),_0x3b39aa['AYyNH'](_0x3220c,null);});});}async[_0x44c136(0xf6)](){const _0x1ba4ad=_0x44c136,_0x4b3ed9={'NhVQv':function(_0x2b189d,_0x3b198d,_0x44967e){return _0x2b189d(_0x3b198d,_0x44967e);},'TuhtT':_0x1ba4ad(0xc2),'PpxfV':'SELECT\x20*\x20FROM\x20temp_uins'},_0x402125=_0x4b3ed9[_0x1ba4ad(0x97)];return new Promise((_0xa19c25,_0x25b066)=>{const _0x41b46f=_0x1ba4ad,_0x469e85={'uRIoz':function(_0x4139e1,_0xc80ae,_0x53429e){const _0x41103e=_0x16e5;return _0x4b3ed9[_0x41103e(0x96)](_0x4139e1,_0xc80ae,_0x53429e);},'hFLrr':_0x4b3ed9['TuhtT']};this['db'][_0x41b46f(0x100)](_0x402125,(_0x52fc55,_0x13dc42)=>{const _0x168bd2=_0x41b46f;_0x52fc55&&(_0x469e85[_0x168bd2(0x10c)](logError,_0x469e85[_0x168bd2(0x109)],_0x52fc55),_0x25b066(_0x52fc55));const _0x507763={};_0x13dc42['forEach'](_0x37c91b=>{const _0xa90366=_0x168bd2;_0x507763[_0x37c91b[_0xa90366(0x103)]]=_0x37c91b[_0xa90366(0xa2)];}),_0xa19c25(_0x507763);});});}async['getUidByTempUin'](_0x2ba219){const _0x348474=_0x44c136,_0x4bfb7e={'ArBoY':'db\x20could\x20not\x20get\x20temp\x20uin\x20map','wXXFy':function(_0x89a58e,_0x55f548){return _0x89a58e(_0x55f548);},'NBoyp':'SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?'},_0x3e4bd0=_0x4bfb7e[_0x348474(0xc8)];return new Promise((_0x30f482,_0x3390d6)=>{const _0x3fb61e=_0x348474,_0xde7251={'HUubb':_0x4bfb7e[_0x3fb61e(0xb7)],'RivYT':function(_0x40bdbf,_0x42029b){return _0x4bfb7e['wXXFy'](_0x40bdbf,_0x42029b);}};this['db']['get'](_0x3e4bd0,[_0x2ba219],(_0x212a9a,_0xed4c70)=>{const _0x4c41f1=_0x3fb61e;_0x212a9a&&(logError(_0xde7251[_0x4c41f1(0xd6)],_0x212a9a),_0xde7251[_0x4c41f1(0x90)](_0x3390d6,_0x212a9a)),_0xde7251[_0x4c41f1(0x90)](_0x30f482,_0xed4c70?.[_0x4c41f1(0xa2)]);});});}async['addTempUin'](_0x517e2e,_0x527a40){const _0x29d27e=_0x44c136,_0x597566={'zrVCl':function(_0x516728,_0x422b78,_0x2006e9){return _0x516728(_0x422b78,_0x2006e9);},'znaWH':'db\x20could\x20not\x20add\x20temp\x20uin','UQMIC':function(_0x3ee95c,_0x50403){return _0x3ee95c(_0x50403);},'myBQs':'INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)'},_0x9ca045=await this['getUidByTempUin'](_0x517e2e);if(!_0x9ca045){const _0x50c4c0=this['db'][_0x29d27e(0x104)](_0x597566['myBQs']);return new Promise((_0x29baa6,_0x16d104)=>{const _0x2f5004=_0x29d27e;_0x50c4c0[_0x2f5004(0xf5)](_0x517e2e,_0x527a40,function(_0x184ed7){const _0x50389c=_0x2f5004;_0x184ed7&&(_0x597566[_0x50389c(0x108)](logError,_0x597566[_0x50389c(0x9b)],_0x184ed7),_0x16d104(_0x184ed7)),_0x597566[_0x50389c(0xaf)](_0x29baa6,null);});});}}}export const dbUtil=new DBUtil(); \ No newline at end of file +const _0x5acaac=_0x1ec2;function _0x23c4(){const _0x48edc9=['Could\x20not\x20get\x20msg','stack','errno','KxGYa','496hmrpCU','dfERs','updateFileCache','更新消息,\x20shortId:','299562sJJWNd','wbhAh','bgFPj','NwUNz','VddyG','Could\x20not\x20create\x20table\x20files','SPgHb','\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)','catch','QYOmw','PyFoz','get','\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)','uiqop','all','msgSeq','OPEN_READWRITE','elementType','msgTime','url','updateMsg','Recxt','awECC','清理消息缓存','name','IUfyX','PvTHA','getCurrentMaxShortId','delete','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','CbrQL','1309962nuuvJV','zAxlS','lktkR','jTiNj','Could\x20not\x20connect\x20to\x20database','peerUid','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','cRXJf','42834154PMEZVt','fJYXq','lpVPj','createTable','BVjNq','LeBHG','getFileCache','Could\x20not\x20create\x20table\x20msgs','msgCache','hVsjv','longId','elementId','chatType','msgId','then','430PFMZnK','EbJir','forEach','swqOH','SBIGh','wXMoT',',\x20短id:\x20','uid','prepare','path','52tMiHrT','Could\x20not\x20create\x20table\x20temp_uins','getUidByTempUin','24073gUUhfZ','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','mhoOy','gaQyQ','OPEN_CREATE','caSgZ','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','db\x20could\x20not\x20add\x20msg','db\x20could\x20not\x20get\x20temp\x20uin\x20map','set','addTempUin','uuid','maxId','getMsg','has','KxjhX','SELECT\x20*\x20FROM\x20temp_uins','addFileCache','586016HgkxMK','记录消息到数据库,\x20消息长id:\x20','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','242883mdQDfK','getMsgByLongId','stringify','fdvzf','数据库中消息最大短id','PYaRp','6jbgNDw','YVOYV','BSpnk','db\x20could\x20not\x20add\x20temp\x20uin','thmBS','size','uvHob','cMmiS','run','groOa','aAgVa','qTdqr','assign','Method\x20not\x20implemented.','yNYls','globalMsgShortId','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','pYZRr','close','init','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','element','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','zygkF','TsAVb','ZLXOo','VGrUx','6035105WOPVtz','getFileCacheByUuid','msgList'];_0x23c4=function(){return _0x48edc9;};return _0x23c4();}(function(_0x3b2a4c,_0xa235f5){const _0xb387a8=_0x1ec2,_0x45407d=_0x3b2a4c();while(!![]){try{const _0x3ed927=-parseInt(_0xb387a8(0x19a))/0x1+-parseInt(_0xb387a8(0x14b))/0x2+-parseInt(_0xb387a8(0x17b))/0x3*(parseInt(_0xb387a8(0x136))/0x4)+-parseInt(_0xb387a8(0x170))/0x5*(parseInt(_0xb387a8(0x154))/0x6)+-parseInt(_0xb387a8(0x139))/0x7*(parseInt(_0xb387a8(0x177))/0x8)+-parseInt(_0xb387a8(0x14e))/0x9*(-parseInt(_0xb387a8(0x12c))/0xa)+parseInt(_0xb387a8(0x1a2))/0xb;if(_0x3ed927===_0xa235f5)break;else _0x45407d['push'](_0x45407d['shift']());}catch(_0x5eee8c){_0x45407d['push'](_0x45407d['shift']());}}}(_0x23c4,0xb2fd8));import _0xbf6b95 from'sqlite3';import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';function _0x1ec2(_0x5eb1a8,_0x5d7107){const _0x23c42e=_0x23c4();return _0x1ec2=function(_0x1ec238,_0x592376){_0x1ec238=_0x1ec238-0x120;let _0x398c89=_0x23c42e[_0x1ec238];return _0x398c89;},_0x1ec2(_0x5eb1a8,_0x5d7107);}class DBUtilBase{['db'];async[_0x5acaac(0x167)](_0x400035){const _0x3c6318={'QYOmw':function(_0x1ea65e,_0x3096bc,_0x198067){return _0x1ea65e(_0x3096bc,_0x198067);},'VGrUx':function(_0x2b5017,_0x19fc52){return _0x2b5017(_0x19fc52);},'wbhAh':function(_0x3ea95e){return _0x3ea95e();},'ZiOvt':function(_0x1aceee,_0x387abe){return _0x1aceee|_0x387abe;}};if(this['db'])return;return new Promise((_0x6d306a,_0x14385f)=>{const _0x253902=_0x1ec2,_0x35027b={'aAgVa':function(_0x149e91,_0x2311b8,_0x3c6b9b){const _0x136b23=_0x1ec2;return _0x3c6318[_0x136b23(0x184)](_0x149e91,_0x2311b8,_0x3c6b9b);},'VddyG':function(_0x1e7900,_0x584325){const _0x145304=_0x1ec2;return _0x3c6318[_0x145304(0x16f)](_0x1e7900,_0x584325);},'PWrDJ':function(_0x2d3657){const _0x339035=_0x1ec2;return _0x3c6318[_0x339035(0x17c)](_0x2d3657);}};this['db']=new _0xbf6b95['Database'](_0x400035,_0x3c6318['ZiOvt'](_0xbf6b95[_0x253902(0x18b)],_0xbf6b95[_0x253902(0x13d)]),_0xa0a05f=>{const _0x1427db=_0x253902;if(_0xa0a05f){_0x35027b[_0x1427db(0x15e)](logError,_0x1427db(0x19e),_0xa0a05f),_0x35027b[_0x1427db(0x17f)](_0x14385f,_0xa0a05f);return;}this[_0x1427db(0x120)](),_0x35027b['PWrDJ'](_0x6d306a);});});}[_0x5acaac(0x120)](){const _0x4d314f=_0x5acaac,_0x3e84ab={'uvHob':_0x4d314f(0x161)};throw new Error(_0x3e84ab[_0x4d314f(0x15a)]);}[_0x5acaac(0x166)](){this['db']?.['close']();}}class DBUtil extends DBUtilBase{['msgCache']=new Map();['globalMsgShortId']=-0x7ffffff8;constructor(){const _0x245d7b=_0x5acaac,_0x2ea607={'BSpnk':function(_0x261ca9,_0x4b9cf6){return _0x261ca9>_0x4b9cf6;},'yNYls':function(_0x4828b2,_0x359c6c){return _0x4828b2-_0x359c6c;},'YVOYV':function(_0x528d21,_0x315aa4){return _0x528d21*_0x315aa4;},'cRXJf':function(_0x1c36ce,_0x2f73c1){return _0x1c36ce(_0x2f73c1);},'Zmqcj':_0x245d7b(0x192),'caSgZ':function(_0x2882cb,_0x5128ef){return _0x2882cb*_0x5128ef;},'awECC':function(_0x50b65c,_0x548683){return _0x50b65c*_0x548683;}};super();const _0x42d95d=_0x2ea607[_0x245d7b(0x13e)](_0x2ea607[_0x245d7b(0x191)](0x3e8,0x3c),0xa);setInterval(()=>{const _0x32350b=_0x245d7b;_0x2ea607[_0x32350b(0x1a1)](logDebug,_0x2ea607['Zmqcj']),this[_0x32350b(0x125)][_0x32350b(0x12e)]((_0x485eef,_0xa66d92)=>{const _0x1f60d9=_0x32350b;_0x2ea607[_0x1f60d9(0x156)](_0x2ea607[_0x1f60d9(0x162)](Date['now'](),_0x2ea607[_0x1f60d9(0x155)](_0x2ea607[_0x1f60d9(0x1a1)](parseInt,_0x485eef[_0x1f60d9(0x18d)]),0x3e8)),_0x42d95d)&&this[_0x1f60d9(0x125)][_0x1f60d9(0x197)](_0xa66d92);});},_0x42d95d);}async[_0x5acaac(0x167)](_0xaf3cd1){const _0x55f98a=_0x5acaac;await super[_0x55f98a(0x167)](_0xaf3cd1),this[_0x55f98a(0x163)]=await this[_0x55f98a(0x196)]();}[_0x5acaac(0x120)](){const _0x1ebec2=_0x5acaac,_0x44f093={'mhoOy':function(_0x3f658e,_0x30fc6c,_0x1b75a3){return _0x3f658e(_0x30fc6c,_0x1b75a3);},'IUfyX':function(_0x1664de,_0x2820e9,_0x2c6a97){return _0x1664de(_0x2820e9,_0x2c6a97);},'groOa':_0x1ebec2(0x137)},_0x259643=_0x1ebec2(0x182);this['db'][_0x1ebec2(0x15c)](_0x259643,function(_0x754e6d){const _0x5dcdee=_0x1ebec2;_0x754e6d&&_0x44f093[_0x5dcdee(0x13b)](logError,_0x5dcdee(0x124),_0x754e6d[_0x5dcdee(0x174)]);});const _0x4e50e8=_0x1ebec2(0x187);this['db'][_0x1ebec2(0x15c)](_0x4e50e8,function(_0x4ae2c0){const _0x3c116b=_0x1ebec2;_0x4ae2c0&&_0x44f093[_0x3c116b(0x194)](logError,_0x3c116b(0x180),_0x4ae2c0);});const _0x4c806e='\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'][_0x1ebec2(0x15c)](_0x4c806e,function(_0x347b12){const _0x3c72d9=_0x1ebec2;_0x347b12&&logError(_0x44f093[_0x3c72d9(0x15d)],_0x347b12);});}async[_0x5acaac(0x196)](){const _0x9cc276=_0x5acaac,_0x22c14e={'fJYXq':function(_0x217031,_0x3e3c7a,_0x20739c){return _0x217031(_0x3e3c7a,_0x20739c);},'KxGYa':_0x9cc276(0x164),'TsAVb':_0x9cc276(0x152),'BxFqL':'SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs'};return new Promise((_0x437c0a,_0x3c08f9)=>{const _0x479d60=_0x9cc276;this['db'][_0x479d60(0x186)](_0x22c14e['BxFqL'],(_0x54d009,_0x4621e5)=>{const _0x133983=_0x479d60;if(_0x54d009)return _0x22c14e[_0x133983(0x1a3)](logDebug,_0x22c14e[_0x133983(0x176)],_0x54d009),_0x437c0a(-0x7ffffff8);logDebug(_0x22c14e[_0x133983(0x16d)],_0x4621e5?.[_0x133983(0x145)]),_0x437c0a(_0x4621e5?.[_0x133983(0x145)]??-0x7ffffff8);});});}async[_0x5acaac(0x146)](_0x5dbd9d,_0x320ca9){const _0x18aef4=_0x5acaac,_0x12676d={'pYZRr':function(_0x431f2a,_0x5cae41){return _0x431f2a(_0x5cae41);},'swqOH':function(_0x23fe0e,_0x387f1c,_0x207a3c,_0x1a8ac1,_0x3cdc01){return _0x23fe0e(_0x387f1c,_0x207a3c,_0x1a8ac1,_0x3cdc01);}},_0x3154cd=this['db'][_0x18aef4(0x134)](_0x5dbd9d);return new Promise((_0x518c11,_0x7e3db7)=>{const _0x309b21=_0x18aef4;_0x3154cd[_0x309b21(0x186)](..._0x320ca9,(_0x1889f6,_0x4a13e1)=>{const _0x4b00a2=_0x309b21,_0x2814e7={'gaQyQ':function(_0x68df9c,_0x553568){return _0x12676d['pYZRr'](_0x68df9c,_0x553568);},'pbZNZ':function(_0x5ecd7d,_0x2e7473){const _0x598eda=_0x1ec2;return _0x12676d[_0x598eda(0x165)](_0x5ecd7d,_0x2e7473);}};if(_0x1889f6)return _0x12676d[_0x4b00a2(0x12f)](logError,_0x4b00a2(0x173),_0x1889f6,_0x5dbd9d,_0x320ca9),_0x12676d[_0x4b00a2(0x165)](_0x518c11,null);if(!_0x4a13e1){_0x12676d[_0x4b00a2(0x165)](_0x518c11,null);return;}const _0x57f542=_0x4a13e1[_0x4b00a2(0x127)];NTQQMsgApi['getMsgsByMsgId']({'peerUid':_0x4a13e1[_0x4b00a2(0x19f)],'chatType':_0x4a13e1[_0x4b00a2(0x129)]},[_0x57f542])['then'](_0x500fbf=>{const _0x6a1b09=_0x4b00a2,_0x597884=_0x500fbf[_0x6a1b09(0x172)][0x0];if(!_0x597884){_0x2814e7[_0x6a1b09(0x13c)](_0x518c11,null);return;}_0x597884['id']=_0x4a13e1['shortId'],_0x2814e7['pbZNZ'](_0x518c11,_0x597884);})['catch'](_0x59cff8=>{const _0x586919=_0x4b00a2;_0x2814e7[_0x586919(0x13c)](_0x518c11,null);});});});}async['getMsgByShortId'](_0x4291df){const _0x2ba3b3=_0x5acaac,_0xfda709={'wXMoT':_0x2ba3b3(0x14d)};if(this[_0x2ba3b3(0x125)][_0x2ba3b3(0x147)](_0x4291df))return this[_0x2ba3b3(0x125)][_0x2ba3b3(0x186)](_0x4291df);const _0x10016a=_0xfda709[_0x2ba3b3(0x131)];return this[_0x2ba3b3(0x146)](_0x10016a,[_0x4291df]);}async['getMsgByLongId'](_0x3f5094){const _0x56de4d=_0x5acaac,_0x1708bc={'lpVPj':_0x56de4d(0x1a0)};if(this[_0x56de4d(0x125)]['has'](_0x3f5094))return this[_0x56de4d(0x125)][_0x56de4d(0x186)](_0x3f5094);return this[_0x56de4d(0x146)](_0x1708bc[_0x56de4d(0x1a4)],[_0x3f5094]);}async['getMsgBySeq'](_0x1e2405,_0x5cb34a){const _0x4186a2=_0x5acaac,_0x2bb4f9=_0x4186a2(0x13f);return this[_0x4186a2(0x146)](_0x2bb4f9,[_0x1e2405,_0x5cb34a]);}async['addMsg'](_0x44713d,_0x1fc2a8=!![]){const _0x1b9866=_0x5acaac,_0x41dae3={'PYaRp':function(_0x5e9c43,_0x95a62d){return _0x5e9c43===_0x95a62d;},'lfOAC':_0x1b9866(0x140),'xUrIZ':_0x1b9866(0x168),'ZLXOo':function(_0x271f6a,_0x53d77c){return _0x271f6a(_0x53d77c);}},_0x51b225=await this['getMsgByLongId'](_0x44713d[_0x1b9866(0x12a)]);if(_0x51b225){if(_0x1fc2a8)this[_0x1b9866(0x18f)](_0x44713d)[_0x1b9866(0x12b)]();return _0x51b225['id'];}const _0x2e9cab=this['db']['prepare'](_0x41dae3['xUrIZ']),_0x5a21a1=++this[_0x1b9866(0x163)];return _0x44713d['id']=_0x5a21a1,_0x41dae3[_0x1b9866(0x16e)](logDebug,_0x1b9866(0x14c)+_0x44713d[_0x1b9866(0x12a)]+_0x1b9866(0x132)+_0x44713d['id']),this['msgCache'][_0x1b9866(0x142)](_0x5a21a1,_0x44713d),this[_0x1b9866(0x125)][_0x1b9866(0x142)](_0x44713d[_0x1b9866(0x12a)],_0x44713d),_0x2e9cab[_0x1b9866(0x15c)](this[_0x1b9866(0x163)],_0x44713d[_0x1b9866(0x12a)],_0x44713d[_0x1b9866(0x18a)]['toString'](),_0x44713d['peerUid'],_0x44713d[_0x1b9866(0x129)],_0x42a90f=>{const _0x51ea9e=_0x1b9866;_0x42a90f&&(_0x41dae3[_0x51ea9e(0x153)](_0x42a90f[_0x51ea9e(0x175)],0x13)?this[_0x51ea9e(0x14f)](_0x44713d[_0x51ea9e(0x12a)])[_0x51ea9e(0x12b)](_0x4da8fe=>{const _0x185089=_0x51ea9e;_0x4da8fe?(this[_0x185089(0x125)][_0x185089(0x142)](_0x5a21a1,_0x4da8fe),this['msgCache'][_0x185089(0x142)](_0x4da8fe['msgId'],_0x4da8fe)):logError(_0x185089(0x16b),_0x42a90f);})[_0x51ea9e(0x183)](_0x3202e9=>logError('db\x20getMsgByLongId\x20error',_0x3202e9)):logError(_0x41dae3['lfOAC'],_0x42a90f));}),_0x5a21a1;}async[_0x5acaac(0x18f)](_0x3ccb44){const _0x24685b=_0x5acaac,_0x1b1b5d={'jTiNj':'updateMsg\x20db\x20error','cMmiS':'UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?'},_0x7fcd0e=this[_0x24685b(0x125)][_0x24685b(0x186)](_0x3ccb44[_0x24685b(0x12a)]);_0x7fcd0e&&Object[_0x24685b(0x160)](_0x7fcd0e,_0x3ccb44);logDebug(_0x24685b(0x17a)+_0x3ccb44['id']+',\x20seq:\x20'+_0x3ccb44[_0x24685b(0x18a)]+',\x20msgId:\x20'+_0x3ccb44[_0x24685b(0x12a)]);const _0x5e080a=this['db'][_0x24685b(0x134)](_0x1b1b5d[_0x24685b(0x15b)]);_0x5e080a['run'](_0x3ccb44[_0x24685b(0x18a)],_0x3ccb44[_0x24685b(0x12a)],_0xc69fd4=>{const _0x412adb=_0x24685b;_0xc69fd4&&logError(_0x1b1b5d[_0x412adb(0x19d)],_0xc69fd4);});}async[_0x5acaac(0x14a)](_0x5aae16){const _0x5a5f96=_0x5acaac,_0x8afa12={'XgGzs':function(_0x1fd4dc,_0x56b9cd){return _0x1fd4dc(_0x56b9cd);},'dfERs':function(_0x4a8d8b,_0xa0b2f5){return _0x4a8d8b(_0xa0b2f5);}},_0x3760de=this['db'][_0x5a5f96(0x134)](_0x5a5f96(0x198));return new Promise((_0x23b3ee,_0x20f572)=>{const _0x42c337=_0x5a5f96,_0x45f8bf={'SBIGh':function(_0x44d26c,_0x596370){return _0x8afa12['XgGzs'](_0x44d26c,_0x596370);},'NwUNz':function(_0x1086b4,_0x19aa40){const _0x565ee0=_0x1ec2;return _0x8afa12[_0x565ee0(0x178)](_0x1086b4,_0x19aa40);}};_0x3760de[_0x42c337(0x15c)](_0x5aae16[_0x42c337(0x193)],_0x5aae16[_0x42c337(0x135)],_0x5aae16[_0x42c337(0x18e)],_0x5aae16[_0x42c337(0x159)],_0x5aae16[_0x42c337(0x144)],_0x5aae16[_0x42c337(0x18c)],JSON[_0x42c337(0x150)](_0x5aae16[_0x42c337(0x16a)]),_0x5aae16[_0x42c337(0x128)],_0x5aae16[_0x42c337(0x12a)],function(_0x566647){const _0x2f408d=_0x42c337;_0x566647&&(logError('db\x20could\x20not\x20add\x20file',_0x566647),_0x45f8bf[_0x2f408d(0x130)](_0x20f572,_0x566647)),_0x45f8bf[_0x2f408d(0x17e)](_0x23b3ee,null);});});}async[_0x5acaac(0x123)](_0x408128,_0x19c1f2){const _0x84d243={'ntYxo':function(_0x1b9a62,_0x166c9f,_0x4fb475){return _0x1b9a62(_0x166c9f,_0x4fb475);},'GdFde':'db\x20could\x20not\x20get\x20file\x20cache'},_0x3d7438=this['db']['prepare'](_0x408128);return new Promise((_0x4b4f3f,_0x9bc4a1)=>{const _0x3b9fe1=_0x1ec2,_0x1f6147={'lNHHM':function(_0x18017a,_0x2eabe0,_0x1ab195){return _0x84d243['ntYxo'](_0x18017a,_0x2eabe0,_0x1ab195);},'qTdqr':_0x84d243['GdFde'],'hVsjv':function(_0x49a666,_0x20fce3){return _0x49a666(_0x20fce3);}};_0x3d7438[_0x3b9fe1(0x186)](..._0x19c1f2,(_0xf8fd39,_0x387891)=>{const _0x5c87c7=_0x3b9fe1;_0xf8fd39&&(_0x1f6147['lNHHM'](logError,_0x1f6147[_0x5c87c7(0x15f)],_0xf8fd39),_0x9bc4a1(_0xf8fd39)),_0x387891&&(_0x387891[_0x5c87c7(0x16a)]=JSON['parse'](_0x387891[_0x5c87c7(0x16a)])),_0x1f6147[_0x5c87c7(0x126)](_0x4b4f3f,_0x387891);});});}async['getFileCacheByName'](_0x5684d7){const _0x534c92=_0x5acaac,_0x13f062={'tSEav':_0x534c92(0x169)};return this[_0x534c92(0x123)](_0x13f062['tSEav'],[_0x5684d7]);}async[_0x5acaac(0x171)](_0x59c802){const _0xf5276b=_0x5acaac,_0x91185a={'PyFoz':'SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?'};return this[_0xf5276b(0x123)](_0x91185a[_0xf5276b(0x185)],[_0x59c802]);}async[_0x5acaac(0x179)](_0x5b879e){const _0x474c73=_0x5acaac,_0x8d1fa1={'gUTOJ':'db\x20could\x20not\x20update\x20file\x20cache','KxjhX':function(_0x3f85c3,_0x4bf34a){return _0x3f85c3(_0x4bf34a);},'PvTHA':'UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?'},_0x37c5be=this['db'][_0x474c73(0x134)](_0x8d1fa1[_0x474c73(0x195)]);return new Promise((_0xc73ac0,_0x28259d)=>{const _0xd0da=_0x474c73;_0x37c5be['run'](_0x5b879e[_0xd0da(0x135)],_0x5b879e[_0xd0da(0x18e)],_0x5b879e[_0xd0da(0x144)],function(_0x2c04a9){const _0x4e09fa=_0xd0da;_0x2c04a9&&(logError(_0x8d1fa1['gUTOJ'],_0x2c04a9),_0x8d1fa1[_0x4e09fa(0x148)](_0x28259d,_0x2c04a9)),_0xc73ac0(null);});});}async['getReceivedTempUinMap'](){const _0x17014b=_0x5acaac,_0x4a1893={'bgFPj':function(_0x2fea00,_0x1faa82,_0x16d49f){return _0x2fea00(_0x1faa82,_0x16d49f);},'BVjNq':function(_0x563edb,_0xc559b8){return _0x563edb(_0xc559b8);}},_0x272125=_0x17014b(0x149);return new Promise((_0xf800fd,_0x4d43e3)=>{const _0x3f8b47=_0x17014b,_0x3bfa63={'ciNOB':function(_0x4f963f,_0x433080,_0x35373e){const _0x4de568=_0x1ec2;return _0x4a1893[_0x4de568(0x17d)](_0x4f963f,_0x433080,_0x35373e);},'CbrQL':_0x3f8b47(0x141),'lktkR':function(_0x5b16d,_0x3c8ca7){const _0x2b6b30=_0x3f8b47;return _0x4a1893[_0x2b6b30(0x121)](_0x5b16d,_0x3c8ca7);}};this['db'][_0x3f8b47(0x189)](_0x272125,(_0x477eea,_0x792b8f)=>{const _0x20ceb8=_0x3f8b47;_0x477eea&&(_0x3bfa63['ciNOB'](logError,_0x3bfa63[_0x20ceb8(0x199)],_0x477eea),_0x3bfa63[_0x20ceb8(0x19c)](_0x4d43e3,_0x477eea));const _0xf86bb4={};_0x792b8f['forEach'](_0x42f2b1=>{_0xf86bb4[_0x42f2b1['uin']]=_0x42f2b1['uid'];}),_0xf800fd(_0xf86bb4);});});}async[_0x5acaac(0x138)](_0x3d99a7){const _0x4a48c7=_0x5acaac,_0xd35d46={'qDznm':function(_0x5a7198,_0x30fbd7,_0x817485){return _0x5a7198(_0x30fbd7,_0x817485);},'SPgHb':function(_0x13b569,_0xffbff4){return _0x13b569(_0xffbff4);},'uiqop':'SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?'},_0xc8fe34=_0xd35d46[_0x4a48c7(0x188)];return new Promise((_0x4d8ac5,_0x3d5030)=>{const _0x1ba2df=_0x4a48c7,_0xa13451={'zAxlS':function(_0x56dd21,_0x270799,_0x184b4d){return _0xd35d46['qDznm'](_0x56dd21,_0x270799,_0x184b4d);},'Recxt':_0x1ba2df(0x141),'EbJir':function(_0x46107a,_0x4d744f){const _0x513b6a=_0x1ba2df;return _0xd35d46[_0x513b6a(0x181)](_0x46107a,_0x4d744f);}};this['db'][_0x1ba2df(0x186)](_0xc8fe34,[_0x3d99a7],(_0x4d52a5,_0x3e7d60)=>{const _0x1e9138=_0x1ba2df;_0x4d52a5&&(_0xa13451[_0x1e9138(0x19b)](logError,_0xa13451[_0x1e9138(0x190)],_0x4d52a5),_0xa13451[_0x1e9138(0x12d)](_0x3d5030,_0x4d52a5)),_0x4d8ac5(_0x3e7d60?.[_0x1e9138(0x133)]);});});}async[_0x5acaac(0x143)](_0x5ed27d,_0x51f4c7){const _0xa09814=_0x5acaac,_0x39b669={'thmBS':function(_0x4f42e3,_0x576b23,_0x204346){return _0x4f42e3(_0x576b23,_0x204346);},'zygkF':function(_0x3f2486,_0x420c73){return _0x3f2486(_0x420c73);},'LBfIm':_0xa09814(0x13a)},_0x272cea=await this[_0xa09814(0x138)](_0x5ed27d);if(!_0x272cea){const _0x3cdaa5=this['db'][_0xa09814(0x134)](_0x39b669['LBfIm']);return new Promise((_0x34dc09,_0x13df33)=>{const _0x527403=_0xa09814,_0x22f068={'LeBHG':function(_0x2f6384,_0x11a76a,_0x28f659){const _0x305c09=_0x1ec2;return _0x39b669[_0x305c09(0x158)](_0x2f6384,_0x11a76a,_0x28f659);},'EqPPX':_0x527403(0x157),'fdvzf':function(_0x1739de,_0x6591f8){const _0x5162cd=_0x527403;return _0x39b669[_0x5162cd(0x16c)](_0x1739de,_0x6591f8);}};_0x3cdaa5[_0x527403(0x15c)](_0x5ed27d,_0x51f4c7,function(_0x277310){const _0x4556b6=_0x527403;_0x277310&&(_0x22f068[_0x4556b6(0x122)](logError,_0x22f068['EqPPX'],_0x277310),_0x13df33(_0x277310)),_0x22f068[_0x4556b6(0x151)](_0x34dc09,null);});});}}}export const dbUtil=new DBUtil(); \ No newline at end of file diff --git a/src/core.lib/src/wrapper.js b/src/core.lib/src/wrapper.js index 0e084b18..e7af8ad2 100644 --- a/src/core.lib/src/wrapper.js +++ b/src/core.lib/src/wrapper.js @@ -1 +1 @@ -const _0x3e7a09=_0x277c;(function(_0x5aec84,_0x23470e){const _0x155680=_0x277c,_0x12c583=_0x5aec84();while(!![]){try{const _0x1e905e=parseInt(_0x155680(0x19f))/0x1*(parseInt(_0x155680(0x1ae))/0x2)+parseInt(_0x155680(0x19c))/0x3*(parseInt(_0x155680(0x1aa))/0x4)+parseInt(_0x155680(0x1a2))/0x5*(parseInt(_0x155680(0x19b))/0x6)+parseInt(_0x155680(0x1a7))/0x7*(parseInt(_0x155680(0x1a4))/0x8)+-parseInt(_0x155680(0x1ad))/0x9*(parseInt(_0x155680(0x1af))/0xa)+parseInt(_0x155680(0x1a6))/0xb*(-parseInt(_0x155680(0x1ac))/0xc)+-parseInt(_0x155680(0x19e))/0xd*(parseInt(_0x155680(0x1ab))/0xe);if(_0x1e905e===_0x23470e)break;else _0x12c583['push'](_0x12c583['shift']());}catch(_0x5560e8){_0x12c583['push'](_0x12c583['shift']());}}}(_0x57c9,0x890fb));function _0x57c9(){const _0xb51459=['2407026aNbuiR','/wrapper.node','65VnvtUx','58027DpvhQH','./resources/app/wrapper.node','resources/app/versions/','6835SouCYJ','existsSync','8vCKaPf','join','3513191ZUSQJF','7063343rTaaWm','dirname','resolve','4HnLkOk','4083226sdfQAD','36LfJHpv','24813YFilAS','38pNgdED','730XwDHkO','1164MYdxwR'];_0x57c9=function(){return _0xb51459;};return _0x57c9();}import _0x1a1705 from'node:path';function _0x277c(_0x50fd3f,_0x2ee50e){const _0x57c993=_0x57c9();return _0x277c=function(_0x277cd0,_0x8101d1){_0x277cd0=_0x277cd0-0x19b;let _0x46fda8=_0x57c993[_0x277cd0];return _0x46fda8;},_0x277c(_0x50fd3f,_0x2ee50e);}import _0x7d7363 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x1a1705[_0x3e7a09(0x1a9)](_0x1a1705[_0x3e7a09(0x1a8)](process['execPath']),_0x3e7a09(0x1a0));!_0x7d7363[_0x3e7a09(0x1a3)](wrapperNodePath)&&(wrapperNodePath=_0x1a1705[_0x3e7a09(0x1a5)](_0x1a1705['dirname'](process['execPath']),_0x3e7a09(0x1a1)+qqVersionConfigInfo['curVersion']+_0x3e7a09(0x19d)));const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file +const _0x3b8553=_0x3e6c;(function(_0x1b7ff7,_0x2bf216){const _0x41643f=_0x3e6c,_0x4aab86=_0x1b7ff7();while(!![]){try{const _0x46834b=-parseInt(_0x41643f(0x152))/0x1+parseInt(_0x41643f(0x156))/0x2+parseInt(_0x41643f(0x154))/0x3+parseInt(_0x41643f(0x161))/0x4*(-parseInt(_0x41643f(0x160))/0x5)+-parseInt(_0x41643f(0x159))/0x6+-parseInt(_0x41643f(0x15a))/0x7*(-parseInt(_0x41643f(0x155))/0x8)+-parseInt(_0x41643f(0x162))/0x9*(-parseInt(_0x41643f(0x15f))/0xa);if(_0x46834b===_0x2bf216)break;else _0x4aab86['push'](_0x4aab86['shift']());}catch(_0x22a4b8){_0x4aab86['push'](_0x4aab86['shift']());}}}(_0x4b6c,0x2cc41));import _0x24598c from'node:path';import _0x3d31a5 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';function _0x3e6c(_0x4bfbac,_0x207aa0){const _0x4b6c4c=_0x4b6c();return _0x3e6c=function(_0x3e6cbd,_0x1858b0){_0x3e6cbd=_0x3e6cbd-0x152;let _0x3fa8c7=_0x4b6c4c[_0x3e6cbd];return _0x3fa8c7;},_0x3e6c(_0x4bfbac,_0x207aa0);}let wrapperNodePath=_0x24598c[_0x3b8553(0x153)](_0x24598c['dirname'](process[_0x3b8553(0x15c)]),_0x3b8553(0x157));!_0x3d31a5[_0x3b8553(0x15d)](wrapperNodePath)&&(wrapperNodePath=_0x24598c['join'](_0x24598c['dirname'](process['execPath']),_0x3b8553(0x15b)+qqVersionConfigInfo[_0x3b8553(0x15e)]+_0x3b8553(0x158)));const QQWrapper=require(wrapperNodePath);function _0x4b6c(){const _0x5b5beb=['existsSync','curVersion','330auLnHo','285OwSLgY','18748wCoutp','95967MsQsMC','182295grSrKc','resolve','320604SrbAIl','8OhoppJ','710398QkOSRb','./resources/app/wrapper.node','/wrapper.node','1625556DrTZcH','628565Iagrse','resources/app/versions/','execPath'];_0x4b6c=function(){return _0x5b5beb;};return _0x4b6c();}export default QQWrapper; \ No newline at end of file