OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-store / store / chat / message / message.js

1 lines · javascript ref:
(function(_0x5c3cdd,_0x4b9885){const _0x212d3e={_0x1d0148:0x29c,_0x4d7f82:0x295,_0x2430ad:0x2b2,_0xc88bc2:0x285,_0x4ea671:0x2d0,_0x4b6e5c:0x2f3,_0x44dae1:0x2b5,_0x7a1cd4:0x2e1,_0x5ecd88:0x2cf,_0x5430d6:0x2a7,_0x2f130c:0x272,_0x35697f:0x276,_0x20d129:0x2d7,_0x59c5f5:0x299,_0x427657:0x2b0,_0x59da06:0x2ce,_0x13d752:0x52a,_0x218534:0x582,_0x5b0f1e:0x553,_0x4a89b1:0x2ac,_0x3cf5ec:0x2ab,_0x42537c:0x595,_0x576c0e:0x566,_0x8cb3a3:0x581,_0x18cccd:0x573,_0x396082:0x288,_0x4b232c:0x25b,_0x40db9b:0x2b4},_0x1f4ae5={_0x289afc:0x367},_0x20736d={_0x20b749:0xb2};function _0x2eaf34(_0xccbff4,_0x1a4846,_0x1ce847,_0x169894){return _0x1595(_0xccbff4-_0x20736d._0x20b749,_0x1a4846);}function _0x5823db(_0x26f1a7,_0x1aab57,_0x4bc955,_0x5f2031){return _0x1595(_0x4bc955-_0x1f4ae5._0x289afc,_0x5f2031);}const _0x295bd6=_0x5c3cdd();while(!![]){try{const _0x35065c=parseInt(_0x2eaf34(_0x212d3e._0x1d0148,_0x212d3e._0x4d7f82,_0x212d3e._0x2430ad,_0x212d3e._0xc88bc2))/(-0x1a61+-0x160e+0x3070)+parseInt(_0x2eaf34(0x2e5,_0x212d3e._0x4ea671,0x2b5,_0x212d3e._0x4b6e5c))/(0x19*0x190+0xff7*0x1+-0x61d*0x9)+parseInt(_0x2eaf34(_0x212d3e._0x44dae1,0x2d5,_0x212d3e._0x7a1cd4,_0x212d3e._0x5ecd88))/(-0x15d+-0x1676+-0x9*-0x2a6)*(-parseInt(_0x2eaf34(_0x212d3e._0x5430d6,_0x212d3e._0x2f130c,_0x212d3e._0x35697f,_0x212d3e._0x20d129))/(-0xc2c+-0x10bd+0x1ced))+parseInt(_0x2eaf34(_0x212d3e._0x59c5f5,_0x212d3e._0x427657,0x296,_0x212d3e._0x59da06))/(0x11c0+0xa5e*0x2+-0x2677)*(parseInt(_0x5823db(_0x212d3e._0x13d752,_0x212d3e._0x218534,_0x212d3e._0x5b0f1e,0x53e))/(0x951+-0xab2+0x167))+-parseInt(_0x2eaf34(_0x212d3e._0x4a89b1,0x2ba,0x2dc,_0x212d3e._0x3cf5ec))/(0x8*0x400+0x2*-0xeb9+-0x287*0x1)+parseInt(_0x5823db(_0x212d3e._0x42537c,0x5a2,0x570,_0x212d3e._0x576c0e))/(0x7e7*-0x1+-0x2438+0x59*0x7f)+parseInt(_0x5823db(0x553,0x549,_0x212d3e._0x8cb3a3,_0x212d3e._0x18cccd))/(0xb*-0x2a1+0x1*0x1acb+0x229)*(parseInt(_0x2eaf34(_0x212d3e._0x396082,0x277,_0x212d3e._0x4b232c,_0x212d3e._0x40db9b))/(0x1102*0x2+-0x1*0x665+-0x1b95));if(_0x35065c===_0x4b9885)break;else _0x295bd6['push'](_0x295bd6['shift']());}catch(_0x886d8b){_0x295bd6['push'](_0x295bd6['shift']());}}}(_0x21a0,-0x44149+-0x2*-0xb1723+0x3*-0x10afd));const _0x3f1b47=(function(){let _0x302983=!![];return function(_0x1699a1,_0x1b4e00){const _0x27905c={_0x40dd9c:0x3f2,_0x42fedf:0x425,_0x276856:0x430,_0x5349fb:0x419},_0x2e46d1={_0x1a3c5e:0x23d},_0x44961b=_0x302983?function(){function _0x12005f(_0x32d266,_0x3e9755,_0x228a17,_0x389dd6){return _0x1595(_0x389dd6-_0x2e46d1._0x1a3c5e,_0x32d266);}if(_0x1b4e00){const _0x15a6d1=_0x1b4e00[_0x12005f(_0x27905c._0x40dd9c,_0x27905c._0x42fedf,_0x27905c._0x276856,_0x27905c._0x5349fb)](_0x1699a1,arguments);return _0x1b4e00=null,_0x15a6d1;}}:function(){};return _0x302983=![],_0x44961b;};}()),_0x113381=_0x3f1b47(this,function(){const _0x41c482={_0x3ad788:0x394,_0xf9432e:0x364,_0x1de9cf:0x4fd,_0x4c6e08:0x500,_0x4d2621:0x4d0,_0x2e14fa:0x50c,_0x4e16ed:0x535,_0xb91bc3:0x56f,_0x12d4b1:0x561,_0x202e7a:0x534,_0x1c546c:0x54a,_0xb14673:0x55d,_0xf86889:0x52e,_0x49a829:0x4fd,_0x27eaff:0x4f2,_0x25f1ef:0x4ea,_0x245500:0x521},_0x579953={_0x1eed7e:0x31c},_0x300d9d={_0x2c8355:0x17b};function _0x42c0d0(_0x49fb74,_0xb6bb70,_0x14a743,_0x520dcf){return _0x1595(_0x49fb74-_0x300d9d._0x2c8355,_0xb6bb70);}function _0x5a7a0f(_0x2cd34f,_0xf18ad9,_0x3de632,_0x3a0401){return _0x1595(_0x2cd34f-_0x579953._0x1eed7e,_0x3de632);}return _0x113381[_0x42c0d0(_0x41c482._0x3ad788,_0x41c482._0xf9432e,0x3bf,0x392)]()['search'](_0x5a7a0f(_0x41c482._0x1de9cf,_0x41c482._0x4c6e08,_0x41c482._0x4d2621,_0x41c482._0x2e14fa)+'+$')[_0x5a7a0f(_0x41c482._0x4e16ed,_0x41c482._0xb91bc3,_0x41c482._0x12d4b1,_0x41c482._0x202e7a)]()[_0x5a7a0f(_0x41c482._0x1c546c,_0x41c482._0xb14673,_0x41c482._0xf86889,0x542)+'r'](_0x113381)[_0x5a7a0f(0x500,0x4e3,0x52b,0x4e0)](_0x5a7a0f(_0x41c482._0x49a829,_0x41c482._0x27eaff,_0x41c482._0x25f1ef,_0x41c482._0x245500)+'+$');});_0x113381();import{DISPLAY_TYPES}from'@holepunchto/keet-core-api';function _0x453de9(_0x4ea938,_0x29d00b,_0x202b1c,_0x480acb){const _0x480487={_0xf22899:0x218};return _0x1595(_0x29d00b-_0x480487._0xf22899,_0x480acb);}import{first,last,isEmpty}from'../../lib/array';import{getFileId,MEDIA_TYPE,parseCoreFile}from'../../media/file';import{isAudioMimeType,isAudioVoicePath,isImageMimeType,isVideoMimeType}from'../../lib/file';import{LAST_MESSAGE_SEEN_PREFIX,CHAT_MESSAGE_TYPE,CHAT_MESSAGE_FORMAT,MESSAGE_CATEGORIES,KNOWN_EVENT_TYPES,CHAT_MESSAGE_REPORT_COUNT}from'../chat.constant';function _0x1595(_0x159509,_0x1ba3a1){const _0x3ab1ea=_0x21a0();return _0x1595=function(_0x58ab16,_0x181eae){_0x58ab16=_0x58ab16-(-0x1cb9+0x25fe+-0x9*0xd4);let _0xd551b0=_0x3ab1ea[_0x58ab16];return _0xd551b0;},_0x1595(_0x159509,_0x1ba3a1);}import{parseCoreReactions}from'../reaction/chat-reaction.model';import{displayPartial,displayToSegment,displayReplaceMention}from'./message-parser';export const GROUP_MAX_SIZE=0x2581*0x1+0x19d8*-0x1+0x7f*-0x17;const {HTTP_LINK,PEAR_LINK}=DISPLAY_TYPES;export const getLastSeenMessageKey=_0x1be939=>LAST_MESSAGE_SEEN_PREFIX+'_'+_0x1be939;export const UNKNOWN_ID=_0x24de51(-0x2,-0x2b,-0xa,0x6);export const createMessageId=_0x7a57a4=>{const _0x2a1d1b={_0x41333e:0x1b6,_0x10a549:0x199,_0x4ee163:0x1c6,_0x4b6ce1:0x1e5,_0x119923:0x200},_0x30188d={_0x5451ea:0x1f6,_0x434ee4:0xd9},_0x3b1459={_0x2a3b7d:0x44e,_0x4407f7:0xd,_0x456d4b:0x1f1};function _0x2838fc(_0x569642,_0x36e150,_0x2b9650,_0x366c3e){return _0x24de51(_0x366c3e-_0x3b1459._0x2a3b7d,_0x569642,_0x2b9650-_0x3b1459._0x4407f7,_0x366c3e-_0x3b1459._0x456d4b);}if(_0x7a57a4?.['id']?.[_0x1725a6(_0x2a1d1b._0x41333e,_0x2a1d1b._0x10a549,0x1c9,_0x2a1d1b._0x4ee163)]&&typeof _0x7a57a4?.['id']?.[_0x1725a6(_0x2a1d1b._0x4b6ce1,0x1e2,_0x2a1d1b._0x119923,0x1e8)]==='number'){const {deviceId:_0x5e353a,seq:_0x4e6666}=_0x7a57a4['id'];return _0x5e353a+'_'+_0x4e6666;}function _0x1725a6(_0x42f52f,_0x163940,_0x1acd6b,_0x13377d){return _0x24de51(_0x42f52f-_0x30188d._0x5451ea,_0x13377d,_0x1acd6b-_0x30188d._0x434ee4,_0x13377d-0x156);}return UNKNOWN_ID;};export const getChatMessageId=_0x5559bf=>{if(!_0x5559bf)return UNKNOWN_ID;return _0x5559bf['id']||UNKNOWN_ID;};export const getCoreId=_0x12c2ff=>{const _0x130973={_0x40710b:0x18a,_0x5da5cd:0x14b,_0x4a4c4b:0x15c,_0x2e7c2f:0x4bb,_0x37cef1:0x49f,_0x49c3c5:0x4f2,_0x4ea12b:0x1a6,_0x55b16a:0x155,_0x4b14dd:0x17c,_0x4b9233:0x187,_0x4969a6:0x1b6,_0x556bb2:0x453,_0x43ad79:0x475,_0x138d93:0x471,_0x1d0339:0x1a1,_0x5e7e15:0x1a9,_0x3e281a:0x1a9,_0x292cce:0x1c2,_0x23ddc3:0x182,_0x5442b3:0x18e,_0x551a4a:0x1ee,_0x13c843:0x19e,_0x36a53f:0x16c,_0x1cdf25:0x4da,_0x5c08e8:0x4ab,_0x189040:0x496,_0x45688a:0x473,_0x5a57f0:0x17b,_0x1ecb63:0x1d8,_0x8ece8c:0x1ad,_0x167b5f:0x4c4,_0x4730e1:0x491,_0x5d5008:0x4d4,_0x391a73:0x49a,_0x58daf0:0x15b,_0x222a29:0x169,_0x588582:0x17e,_0x407731:0x4bd,_0x54e63b:0x493,_0x5d6a98:0x4a0,_0x3195f5:0x16a,_0x4de3f5:0x160,_0x4bbbd6:0x18e,_0x43da74:0x4a0,_0x2e74b6:0x483,_0x571564:0x4ac,_0x1379c8:0x488},_0xb2cf8a={_0x365b17:0xe4,_0x1a3769:0x5d},_0x3eb9f3={_0x3e285b:0x159,_0x269d58:0xed};if(typeof _0x12c2ff!==_0x565f9f(-0x13d,-_0x130973._0x40710b,-_0x130973._0x5da5cd,-_0x130973._0x4a4c4b))throw new Error(_0x373020(0x48b,_0x130973._0x2e7c2f,_0x130973._0x37cef1,_0x130973._0x49c3c5)+_0x565f9f(-_0x130973._0x4ea12b,-0x186,-_0x130973._0x55b16a,-_0x130973._0x4b14dd)+'\x20message\x20I'+_0x565f9f(-0x1d4,-0x18f,-_0x130973._0x4b9233,-_0x130973._0x4969a6)+_0x12c2ff+'>');const _0x58ec3e=_0x12c2ff['split']('_');if(_0x58ec3e[_0x373020(_0x130973._0x556bb2,_0x130973._0x43ad79,0x4aa,_0x130973._0x138d93)]!==0xd*-0x25f+-0x24b6+0x1*0x438b)throw new Error('chat\x20messa'+_0x565f9f(-_0x130973._0x1d0339,-_0x130973._0x5e7e15,-_0x130973._0x3e281a,-0x17c)+_0x565f9f(-0x174,-_0x130973._0x292cce,-_0x130973._0x23ddc3,-_0x130973._0x5442b3)+_0x565f9f(-_0x130973._0x551a4a,-0x181,-_0x130973._0x13c843,-0x1b6)+_0x12c2ff+'>');const _0x5c9d8c=_0x58ec3e[0xe7c+-0x71*-0x43+-0x1*0x2c0f];if(!_0x5c9d8c)throw new Error('chat\x20messa'+_0x565f9f(-0x16c,-_0x130973._0x36a53f,-0x162,-0x17c)+_0x373020(_0x130973._0x1cdf25,_0x130973._0x5c08e8,_0x130973._0x189040,_0x130973._0x45688a)+_0x565f9f(-_0x130973._0x5a57f0,-_0x130973._0x1ecb63,-_0x130973._0x8ece8c,-0x1b6)+_0x12c2ff+'>');const _0xfa97b3=Number[_0x373020(0x4b0,_0x130973._0x167b5f,0x4eb,_0x130973._0x4730e1)](_0x58ec3e[0x173c+0x2377+0xb*-0x556],-0x241c+0x631*0x2+-0x9*-0x2a4);if(!Number[_0x373020(_0x130973._0x5d5008,0x4a1,_0x130973._0x391a73,_0x130973._0x2e7c2f)](_0xfa97b3))throw new Error(_0x565f9f(-_0x130973._0x58daf0,-0x1ac,-_0x130973._0x222a29,-_0x130973._0x588582)+_0x373020(0x4e8,_0x130973._0x407731,_0x130973._0x54e63b,_0x130973._0x5d6a98)+_0x565f9f(-_0x130973._0x3195f5,-0x1a2,-_0x130973._0x4de3f5,-_0x130973._0x4bbbd6)+_0x373020(_0x130973._0x43da74,_0x130973._0x2e74b6,_0x130973._0x571564,_0x130973._0x1379c8)+_0x12c2ff+'>');function _0x565f9f(_0x21bce9,_0x33f0a1,_0x28de1e,_0x28afa4){return _0x24de51(_0x28afa4- -_0x3eb9f3._0x3e285b,_0x28de1e,_0x28de1e-_0x3eb9f3._0x269d58,_0x28afa4-0x1f4);}function _0x373020(_0x544fe0,_0x170c07,_0x11b9c5,_0x4100fa){return _0x24de51(_0x170c07-0x4e0,_0x11b9c5,_0x11b9c5-_0xb2cf8a._0x365b17,_0x4100fa-_0xb2cf8a._0x1a3769);}return{'deviceId':_0x5c9d8c,'seq':_0xfa97b3};};function _0x21a0(){const _0x38ae67=['toString','27mmUuQI','titleChang','reportedBy','display','chat','content','add','chat\x20messa','R_CHANGED','ge:\x20broken','hidden','styles','end','invalid\x20co','total','name','parseInt','pointer','test','FILE','constructo','_CHANGED','includes','AUDIO','labels','2590572sNsfhW','_CREATED','seq','highlight','memberRemo','highlightS','memberJoin','DISPLAY','undefined','displayNam','flags','deleted','re\x20message','map','MENTION','targetMemb','string','unknown_id','NO_CATEGOR','LEFT','ROOM_TITLE','reduce','size','ndex:\x20seq\x20','MEDIA','800710UtQrVy','forEach','replyTo','ge\x20seq\x20is\x20','push','length','apply','text','callHangup','MEMBER_REM','local','(((.+)+)+)','file','preview','search','isArray','MessageByI','30925ZCwhdU','groupCount','d\x20<','414996KFjAtH','memberId','150NIqVeU','VIDEO','has','mentions','start','editedAt','event','reported','ved','1769236adlflX','isHead','datetime','blocked','mismatch:\x20','10159261mgTywh','IMAGE','timestamp','flagsClock','memberLeft','slice','JOINED','join','stringify','3BKOxwh','from','EMOJI','deviceId','isInteger','type','6065968ItFCNr','CALL_START','callStarte','split','lower\x20than','invitation','getChanged','INVITATION','\x20message\x20I','find','VOICE','OVED','Changed','segments','\x20prev','reactions'];_0x21a0=function(){return _0x38ae67;};return _0x21a0();}export const getFormattedCoreEventId=(_0x5aad69,_0xe9b5a2)=>{const _0x1d9a0c={_0x49502c:0x24a,_0x442536:0x22d,_0x2d6e31:0x244,_0x4fba33:0x1fb},_0x38c013={_0x557523:0x24f,_0x581b22:0x1e1},_0x495385={_0x470ab4:0x193,_0x2b85bf:0xf4};function _0x26928a(_0x2ceae8,_0x4acdd9,_0x75c63b,_0x23d55a){return _0x24de51(_0x75c63b-0x616,_0x4acdd9,_0x75c63b-_0x495385._0x470ab4,_0x23d55a-_0x495385._0x2b85bf);}function _0x311f43(_0x25d86a,_0x3f38d8,_0x1f62da,_0x3f1240){return _0x24de51(_0x1f62da-_0x38c013._0x557523,_0x25d86a,_0x1f62da-0xe7,_0x3f1240-_0x38c013._0x581b22);}if(_0x5aad69==='seq'&&typeof _0xe9b5a2===_0x311f43(_0x1d9a0c._0x49502c,_0x1d9a0c._0x442536,0x24c,0x225))return Number[_0x311f43(_0x1d9a0c._0x2d6e31,_0x1d9a0c._0x4fba33,0x233,0x23f)](_0xe9b5a2,-0xd*-0x1db+0x244f+-0x3c64);return _0xe9b5a2;};export const isSystemEvent=_0x4640c6=>!!_0x4640c6?.[_0x453de9(0x41e,0x40a,0x418,0x3d1)]?.['type'];function _0x24de51(_0x3b14f4,_0x1bb612,_0x51097b,_0x2d2632){const _0xf7fc9f={_0x485422:0x246};return _0x1595(_0x3b14f4- -_0xf7fc9f._0x485422,_0x1bb612);}export const isCallSystemEvent=_0x4aed2b=>!!(_0x4aed2b?.[_0x453de9(0x413,0x40a,0x43f,0x443)]?.['type']&&[CHAT_MESSAGE_TYPE[_0x453de9(0x3e9,0x422,0x458,0x402)+'ED'],CHAT_MESSAGE_TYPE['CALL_HANGU'+'P']][_0x24de51(-0x16,0x6,0x25,-0x11)](_0x4aed2b[_0x24de51(-0x54,-0x19,-0x3e,-0x73)]['type']));export const isStartCallMessage=_0x2ea9e5=>_0x2ea9e5&&_0x2ea9e5[_0x453de9(0x3e3,0x40a,0x410,0x440)]?.[_0x24de51(-0x3e,-0x33,-0x77,-0x28)]===CHAT_MESSAGE_TYPE[_0x453de9(0x40a,0x422,0x43d,0x455)+'ED'];export const updateMessage=(_0x533216,_0x4fd53e)=>{const _0x1a9316={_0x3d36ea:0x203,_0x54334c:0x23a,_0x54d04c:0x4c8,_0x33c23a:0x4df,_0x4e996e:0x4de,_0x45a71e:0x1f2,_0x3ccb2e:0x22c,_0x4496b3:0x234,_0x205610:0x1dd,_0x4ec357:0x1fd,_0x43ab12:0x50d,_0x396965:0x4df,_0x435d73:0x501,_0x1ade3a:0x4e0,_0x37c71c:0x1e0,_0x6e63bc:0x206,_0x4f09b5:0x243,_0x9ab3dc:0x212,_0x5a4761:0x22b,_0x2268dc:0x4c6,_0xc65680:0x489,_0x357c05:0x49e,_0x5a2df9:0x48d,_0x106614:0x4d9,_0x5771fe:0x4fc,_0xdb9b39:0x4c8,_0x26bb6e:0x4b1,_0x2d88a8:0x4f5,_0x59e577:0x4b5,_0x7369de:0x4c9,_0x2feaa6:0x4e3,_0x33a40e:0x4b9,_0x4f1601:0x4d0,_0x57ab08:0x213,_0x4ddabe:0x1db,_0x2b2623:0x20f,_0x4f352a:0x1ee,_0x53d02a:0x20e,_0x3b9b1c:0x25d,_0x3c61cc:0x1ee,_0x45a187:0x1c7,_0x5bb832:0x1eb,_0x487d66:0x208,_0x240a14:0x24b,_0x49f327:0x226,_0x2c7a77:0x214,_0x304599:0x22c,_0x41ed12:0x497,_0x1d7d07:0x4bf,_0x3c05c5:0x1f0,_0x41c023:0x519,_0x24be33:0x4f1,_0x230ec3:0x4bc,_0x581fe8:0x509,_0x3fa2b1:0x508,_0x4a3a09:0x4a5,_0x40fe9f:0x513,_0x116127:0x4d9,_0x1d03e1:0x1e8,_0x3cc578:0x224,_0x850a2a:0x221,_0x369ecc:0x4a6,_0x34caa5:0x4de,_0x3f83ba:0x510,_0xfb4cfd:0x4f6,_0x44dfd8:0x4ff,_0xb783f8:0x4eb},_0x38f434={_0x1c3bc0:0x254,_0x27c0a9:0x1e},_0x255d67={_0x348bf9:0x10c,_0x4f861d:0xa9,_0x22efa2:0xb};function _0x137d8c(_0x2407fd,_0x2dd7fe,_0x316965,_0x113485){return _0x453de9(_0x2407fd-_0x255d67._0x348bf9,_0x316965-_0x255d67._0x4f861d,_0x316965-_0x255d67._0x22efa2,_0x2407fd);}const {memberById:_0x56e0db,blocked:_0x24715f,local:_0x31f09e,hidden:_0x5492c1,range:_0x380d04}=_0x4fd53e||{};function _0x4a3618(_0x461e55,_0x1398ca,_0x35f3f6,_0x353cba){return _0x24de51(_0x353cba-_0x38f434._0x1c3bc0,_0x1398ca,_0x35f3f6-_0x38f434._0x27c0a9,_0x353cba-0x194);}let _0x417108={..._0x533216};if(_0x417108[_0x4a3618(_0x1a9316._0x3d36ea,0x219,_0x1a9316._0x54334c,0x22c)]){let {text:_0x3281db,display:_0x44e6ce}=_0x417108[_0x137d8c(_0x1a9316._0x54d04c,0x516,_0x1a9316._0x33c23a,_0x1a9316._0x4e996e)];const _0x4c333c=_0x417108[_0x4a3618(0x219,_0x1a9316._0x45a71e,0x233,_0x1a9316._0x3ccb2e)][_0x4a3618(_0x1a9316._0x4496b3,_0x1a9316._0x45a71e,_0x1a9316._0x205610,_0x1a9316._0x4ec357)]?.[_0x137d8c(_0x1a9316._0x43ab12,_0x1a9316._0x396965,_0x1a9316._0x435d73,_0x1a9316._0x1ade3a)](_0x14296a=>({..._0x14296a}))||[];if(_0x4c333c[_0x4a3618(_0x1a9316._0x37c71c,0x217,_0x1a9316._0x6e63bc,0x1e9)]>-0xcf6+0x2*0xbd7+-0xab8&&_0x56e0db)for(const _0x7530fc of _0x4c333c){const {memberId:_0x495470}=_0x7530fc,_0x29c073=_0x56e0db[_0x495470];if(_0x29c073){const _0x204635=displayReplaceMention({'text':_0x3281db,'display':_0x44e6ce},_0x495470,_0x29c073['displayNam'+'e']);_0x44e6ce=_0x204635[_0x4a3618(_0x1a9316._0x4f09b5,0x254,_0x1a9316._0x9ab3dc,_0x1a9316._0x5a4761)],_0x3281db=_0x204635[_0x137d8c(_0x1a9316._0x2268dc,_0x1a9316._0xc65680,_0x1a9316._0x357c05,_0x1a9316._0x5a2df9)],_0x7530fc['pending']=![];}else typeof _0x7530fc['pending']===_0x137d8c(0x4ca,_0x1a9316._0x106614,_0x1a9316._0x5771fe,_0x1a9316._0xdb9b39)&&(_0x7530fc['pending']=!![]);}_0x417108[_0x137d8c(0x4e9,_0x1a9316._0x26bb6e,_0x1a9316._0x33c23a,0x4d9)]={..._0x417108[_0x137d8c(_0x1a9316._0x2d88a8,0x4df,_0x1a9316._0x396965,_0x1a9316._0x59e577)],'display':_0x44e6ce,'text':_0x3281db||'','mentions':_0x4c333c};}_0x24715f!==undefined&&(_0x417108[_0x137d8c(_0x1a9316._0x7369de,_0x1a9316._0x2feaa6,_0x1a9316._0x33a40e,_0x1a9316._0x4f1601)]=_0x24715f);_0x31f09e!==undefined&&(_0x417108[_0x4a3618(_0x1a9316._0x57ab08,_0x1a9316._0x4ddabe,_0x1a9316._0x2b2623,_0x1a9316._0x4f352a)]=_0x31f09e);_0x417108[_0x4a3618(0x256,_0x1a9316._0x53d02a,_0x1a9316._0x3b9b1c,0x232)]=!!_0x5492c1;if(_0x380d04){const {start:_0x4969cb,end:_0x47fe7d}=_0x380d04,_0x32242e=displayPartial({'text':_0x417108[_0x137d8c(_0x1a9316._0x26bb6e,_0x1a9316._0x43ab12,0x4df,0x4e2)]?.[_0x4a3618(_0x1a9316._0x3c61cc,0x1d6,_0x1a9316._0x45a187,_0x1a9316._0x5bb832)]||'','display':_0x417108[_0x4a3618(0x25a,_0x1a9316._0x487d66,_0x1a9316._0x240a14,0x22c)]?.[_0x4a3618(0x21b,0x254,_0x1a9316._0x49f327,0x22b)]||[]},{'start':_0x4969cb,'end':_0x47fe7d});_0x417108[_0x4a3618(0x259,0x20a,_0x1a9316._0x2c7a77,_0x1a9316._0x304599)][_0x137d8c(_0x1a9316._0x41ed12,_0x1a9316._0x1d7d07,0x49e,0x48e)]=_0x32242e[_0x4a3618(0x1fb,0x1c3,_0x1a9316._0x3c05c5,_0x1a9316._0x5bb832)],_0x417108[_0x137d8c(0x4f1,_0x1a9316._0x41c023,_0x1a9316._0x33c23a,_0x1a9316._0x41c023)][_0x137d8c(_0x1a9316._0x24be33,0x4d2,_0x1a9316._0x4e996e,_0x1a9316._0x230ec3)]=_0x32242e[_0x137d8c(0x515,_0x1a9316._0x581fe8,_0x1a9316._0x4e996e,_0x1a9316._0x3fa2b1)];}return _0x417108={..._0x417108,'chat':{..._0x417108['chat'],'segments':displayToSegment({'text':_0x417108[_0x137d8c(_0x1a9316._0x4a3a09,_0x1a9316._0x40fe9f,_0x1a9316._0x396965,_0x1a9316._0x116127)]?.[_0x4a3618(_0x1a9316._0x1d03e1,_0x1a9316._0x3cc578,_0x1a9316._0x850a2a,_0x1a9316._0x5bb832)],'display':_0x417108['chat']?.[_0x137d8c(_0x1a9316._0x369ecc,0x515,_0x1a9316._0x34caa5,_0x1a9316._0x3f83ba)]}),'format':CHAT_MESSAGE_FORMAT[_0x137d8c(_0x1a9316._0xfb4cfd,_0x1a9316._0x44dfd8,0x4fb,_0x1a9316._0xb783f8)]}},_0x417108;};export const getCoreEventCategoryName=_0x4ce441=>{const _0x42d7a5={_0x425989:0x70,_0x5e0d5d:0x91,_0x1ca243:0x9a,_0xfcc763:0xb8,_0x42db8f:0x74,_0x3761ce:0x68,_0x42be71:0x90,_0x491422:0x89,_0x2519e1:0x8f,_0x1e9472:0x16b,_0x30cfe2:0x111,_0x386dfd:0x13a,_0x3e4c00:0x99,_0x3d4de7:0x78},_0x14898c={_0x418837:0xde,_0x25e9f4:0x93,_0x1e7bdc:0x3},_0x1b5cc3={_0x207543:0x9a,_0x2672c3:0x6f},_0x6597c2=_0x4ce441['event']?.['type'];function _0x10958f(_0x5e9fd4,_0x598ad9,_0x3ddfae,_0x1a1ac4){return _0x24de51(_0x5e9fd4-_0x1b5cc3._0x207543,_0x1a1ac4,_0x3ddfae-0x2f,_0x1a1ac4-_0x1b5cc3._0x2672c3);}function _0x58686a(_0x521ff5,_0x20f223,_0x270db3,_0xc67358){return _0x24de51(_0x521ff5- -_0x14898c._0x418837,_0x20f223,_0x270db3-_0x14898c._0x25e9f4,_0xc67358-_0x14898c._0x1e7bdc);}switch(_0x6597c2){case CHAT_MESSAGE_TYPE['JOINED']:return MESSAGE_CATEGORIES['JOINED'];case CHAT_MESSAGE_TYPE[_0x10958f(0x9a,_0x42d7a5._0x425989,0xab,_0x42d7a5._0x5e0d5d)]:return MESSAGE_CATEGORIES[_0x10958f(_0x42d7a5._0x1ca243,0xac,_0x42d7a5._0xfcc763,_0x42d7a5._0x42db8f)];case CHAT_MESSAGE_TYPE['MEMBER_REM'+_0x10958f(_0x42d7a5._0x3761ce,_0x42d7a5._0x42be71,_0x42d7a5._0x491422,_0x42d7a5._0x2519e1)]:return MESSAGE_CATEGORIES[_0x58686a(-0x145,-_0x42d7a5._0x1e9472,-_0x42d7a5._0x30cfe2,-_0x42d7a5._0x386dfd)+'OVED'];default:return MESSAGE_CATEGORIES[_0x10958f(_0x42d7a5._0x3e4c00,_0x42d7a5._0x42be71,_0x42d7a5._0x3d4de7,_0x42d7a5._0x3d4de7)+'Y'];}};export const getIsGroupCountLimitReached=(_0x5eb840,_0x13bd76)=>{const _0x43302a={_0x12276c:0xfa,_0x95c11a:0xc7,_0x2e3849:0x95,_0x2e4fbc:0xec,_0x4c6eb7:0x103,_0x4a80d5:0x10d,_0x43dda1:0xfe,_0x51e67e:0x105,_0xb593e3:0xdb,_0x2e94b9:0xcf},_0x50c817={_0x3f9ada:0xde,_0x539f31:0x1bd},_0x361de4={_0x35e04d:0x10d,_0x472845:0xd9,_0x5ac6fc:0xc};function _0x28e4a5(_0x1462b5,_0xb8b2d7,_0x56e602,_0x301c4b){return _0x24de51(_0xb8b2d7-_0x361de4._0x35e04d,_0x1462b5,_0x56e602-_0x361de4._0x472845,_0x301c4b-_0x361de4._0x5ac6fc);}function _0x15a4b3(_0x1b5de8,_0x4343b2,_0x19d475,_0x14d501){return _0x24de51(_0x1b5de8-0x98,_0x19d475,_0x19d475-_0x50c817._0x3f9ada,_0x14d501-_0x50c817._0x539f31);}switch(_0x5eb840){case MESSAGE_CATEGORIES[_0x28e4a5(_0x43302a._0x12276c,_0x43302a._0x95c11a,_0x43302a._0x2e3849,_0x43302a._0x2e4fbc)]:case MESSAGE_CATEGORIES[_0x28e4a5(_0x43302a._0x4c6eb7,_0x43302a._0x4a80d5,_0x43302a._0x43dda1,_0x43302a._0x51e67e)]:case MESSAGE_CATEGORIES['MEMBER_REM'+_0x28e4a5(0xaf,_0x43302a._0xb593e3,0xc5,_0x43302a._0x2e94b9)]:return _0x13bd76>=GROUP_MAX_SIZE;default:return![];}};export const getFileMediaType=(_0x45ec2c,_0x3add00)=>{const _0xbff676={_0x4ca3c7:0x33e,_0xe90c5c:0x309,_0x157059:0x326,_0x2e1477:0x330,_0x52e38a:0x311,_0x44f672:0x306,_0x3e18db:0x374,_0x159e87:0x388,_0x68208:0x372,_0x300cef:0x38b,_0x4cb6d3:0x339},_0x4b35a2={_0x405f46:0xc,_0x39464f:0xd5,_0x1eb8cd:0x1b2};if(isImageMimeType(_0x45ec2c))return MEDIA_TYPE[_0x25cf61(_0xbff676._0x4ca3c7,_0xbff676._0xe90c5c,0x35c,_0xbff676._0x157059)];function _0x25cf61(_0x15203a,_0x33a184,_0x117a06,_0x5b6351){return _0x453de9(_0x15203a-_0x4b35a2._0x405f46,_0x15203a- -_0x4b35a2._0x39464f,_0x117a06-_0x4b35a2._0x1eb8cd,_0x5b6351);}if(isVideoMimeType(_0x45ec2c))return MEDIA_TYPE[_0x25cf61(_0xbff676._0x2e1477,_0xbff676._0x52e38a,0x313,_0xbff676._0x44f672)];if(isAudioMimeType(_0x45ec2c)&&isAudioVoicePath(_0x3add00))return MEDIA_TYPE['VOICE'];if(isAudioMimeType(_0x45ec2c))return MEDIA_TYPE[_0x25cf61(_0xbff676._0x3e18db,0x390,_0xbff676._0x159e87,_0xbff676._0x68208)];function _0x4e0983(_0x54d2a5,_0x13af27,_0x1fad0e,_0x251c6b){return _0x24de51(_0x13af27-0x616,_0x1fad0e,_0x1fad0e-0x53,_0x251c6b-0x197);}return MEDIA_TYPE[_0x25cf61(0x370,_0xbff676._0x300cef,_0xbff676._0x4cb6d3,0x34f)];};export const getFileListMediaType=_0x2c4a61=>{const _0x313c03={_0x593632:0x420,_0x49c933:0x442,_0x513b2b:0x40,_0x594b81:0x61,_0x2b7d72:0x36,_0x538fe5:0x3ff,_0x55acc8:0x5e,_0x28d422:0x24,_0x55e91b:0x33,_0x1e0cfa:0x53,_0x1912e1:0x2d,_0x37e60a:0x445,_0x379d5c:0x3a,_0x4a2a09:0x8,_0x2cc882:0x472,_0x15e347:0x435,_0x440c3a:0x433,_0x575798:0x407,_0x567492:0x1c,_0x237b0c:0x25,_0x4416d6:0x3d,_0x4ba932:0xf,_0x24ebac:0x432,_0x3a8285:0x436,_0x34bb9e:0x457,_0x3ab61f:0x433,_0x39eda6:0x42c,_0x41bca2:0x45f,_0x2a2639:0x4a5,_0xd71e70:0x44e,_0x145a63:0x476,_0x1816d7:0x47d,_0x3019b5:0xd,_0x243e99:0x2e,_0x432944:0x12,_0x4d42c3:0xe,_0x4fa332:0x458,_0x156a5b:0x465,_0x2b20e3:0x466,_0x2aa5c5:0x42f,_0x1bdc5f:0x22,_0x564901:0x1b,_0x226e42:0x15,_0xd7bcfd:0x17,_0x53c177:0x3e2,_0x466085:0x3ee,_0x2ec671:0x3e8,_0x201d07:0x41c,_0xe85318:0x42e,_0x4fff71:0x453,_0x277195:0x433,_0x452eae:0x44d,_0x270cc2:0x432,_0x4112de:0x452,_0x5c20f1:0x413,_0x24df54:0xb,_0xa9c529:0x3a,_0x562ff6:0x27},_0x370a62={_0x247690:0x22,_0xf14714:0x2d,_0x141b95:0x1c6},_0x223520={_0x1ac2a4:0x4a,_0x5c6c03:0x154,_0x5caa77:0x1ac};if(!_0x2c4a61[_0x10fd23(_0x313c03._0x593632,_0x313c03._0x49c933,0x42b,0x45b)])return MEDIA_TYPE[_0x598299(_0x313c03._0x513b2b,_0x313c03._0x594b81,_0x313c03._0x2b7d72,0x31)];const _0x45b17a=new Set();for(let _0x12f8c1=-0x11*0x3d+0x2027*0x1+-0xb*0x28e;_0x12f8c1<_0x2c4a61[_0x10fd23(_0x313c03._0x593632,0x419,0x425,_0x313c03._0x538fe5)];_0x12f8c1+=0xa08+0x621+-0x1028){const _0x4c7f4f=_0x2c4a61[_0x12f8c1];_0x45b17a[_0x598299(0x18,0x30,_0x313c03._0x55acc8,_0x313c03._0x28d422)](getFileMediaType(_0x4c7f4f['mimetype'],_0x4c7f4f[_0x598299(_0x313c03._0x55e91b,0x5,_0x313c03._0x1e0cfa,_0x313c03._0x1912e1)]));}if(_0x45b17a[_0x10fd23(0x418,0x400,_0x313c03._0x37e60a,0x3e5)]===0x1b02+-0x18ea+-0x217){if(_0x45b17a[_0x598299(-_0x313c03._0x379d5c,-_0x313c03._0x4a2a09,-0xf,-0xe)](MEDIA_TYPE['IMAGE']))return MEDIA_TYPE[_0x10fd23(0x440,_0x313c03._0x2cc882,_0x313c03._0x15e347,0x447)];if(_0x45b17a[_0x10fd23(_0x313c03._0x440c3a,_0x313c03._0x575798,0x431,0x41c)](MEDIA_TYPE[_0x598299(_0x313c03._0x567492,_0x313c03._0x237b0c,-_0x313c03._0x4416d6,-_0x313c03._0x4ba932)]))return MEDIA_TYPE[_0x10fd23(_0x313c03._0x24ebac,_0x313c03._0x3a8285,0x433,_0x313c03._0x34bb9e)];if(_0x45b17a[_0x10fd23(_0x313c03._0x3ab61f,_0x313c03._0x39eda6,_0x313c03._0x41bca2,0x3fe)](MEDIA_TYPE[_0x10fd23(0x476,0x486,_0x313c03._0x2a2639,_0x313c03._0xd71e70)]))return MEDIA_TYPE[_0x10fd23(_0x313c03._0x145a63,_0x313c03._0x2cc882,0x488,_0x313c03._0x1816d7)];if(_0x45b17a[_0x598299(_0x313c03._0x3019b5,-_0x313c03._0x243e99,_0x313c03._0x432944,-_0x313c03._0x4d42c3)](MEDIA_TYPE[_0x10fd23(_0x313c03._0x4fa332,_0x313c03._0x156a5b,_0x313c03._0x2b20e3,_0x313c03._0x2aa5c5)]))return MEDIA_TYPE[_0x598299(_0x313c03._0x1bdc5f,-_0x313c03._0x564901,-_0x313c03._0x226e42,_0x313c03._0xd7bcfd)];}else{if(_0x45b17a[_0x10fd23(0x418,_0x313c03._0x53c177,_0x313c03._0x466085,_0x313c03._0x2ec671)]===-0x1e0+0x12*-0x21c+0x27da&&_0x45b17a[_0x10fd23(_0x313c03._0x3ab61f,_0x313c03._0x201d07,_0x313c03._0xe85318,_0x313c03._0x4fff71)](MEDIA_TYPE['IMAGE'])&&_0x45b17a[_0x10fd23(_0x313c03._0x277195,0x467,_0x313c03._0x452eae,0x43e)](MEDIA_TYPE[_0x10fd23(_0x313c03._0x270cc2,_0x313c03._0x4112de,_0x313c03._0x2b20e3,_0x313c03._0x5c20f1)]))return MEDIA_TYPE[_0x598299(-_0x313c03._0x24df54,-_0x313c03._0xa9c529,-_0x313c03._0x55e91b,-_0x313c03._0x562ff6)];}function _0x598299(_0x1a6313,_0xdc906a,_0x3e3a20,_0x345636){return _0x24de51(_0x345636-_0x223520._0x1ac2a4,_0xdc906a,_0x3e3a20-_0x223520._0x5c6c03,_0x345636-_0x223520._0x5caa77);}function _0x10fd23(_0x303fa0,_0x2a89a7,_0x19811d,_0x325368){return _0x453de9(_0x303fa0-_0x370a62._0x247690,_0x303fa0-_0x370a62._0xf14714,_0x19811d-_0x370a62._0x141b95,_0x19811d);}return MEDIA_TYPE['FILE'];};export const parseFiles=_0x5b644f=>{const _0x3d8ecb={_0x479b73:0x1b5,_0x282197:0x1ee,_0x1c4a54:0x1dc,_0x423764:0x1d3,_0x25dcaa:0x1cd,_0x4099db:0x206,_0x36485a:0x207,_0x3dfd1a:0x232},_0x4b4d16={_0x337353:0xa0,_0x1e3550:0xa0,_0xfc3a6f:0x6b,_0x6687a0:0x94,_0x2a89d8:0x19f,_0x403428:0x1b2,_0x4fabfe:0x1d7,_0x22e7ab:0x1b6,_0x2e675c:0x41,_0x13bfbf:0x7d,_0x5cac71:0x6e,_0x5663ce:0x1d8,_0x1cdf49:0x203,_0x56b5de:0x1c9,_0x2ecc89:0xdf,_0x333d05:0x9b,_0x2cdd31:0xb7,_0x2b5bcc:0x1e0,_0x2e9037:0x217},_0x4b1781={_0x1e14b9:0x9b,_0x234251:0x175},_0x512f6f={_0x597a71:0x40b,_0x22123:0x3a,_0x51e0a6:0xf4},_0x25e85d={_0x87c724:0x297,_0x1663b5:0x9e,_0x463496:0x1b2},_0x1f86f2={_0x5d5b87:0x247,_0x1915fb:0x110,_0x1f0197:0xc4},_0x370814=[],_0x2d8272=[];if(isSystemEvent(_0x5b644f))return{'fileId':'','fileIds':_0x2d8272,'files':_0x370814,'mediaType':null,'chat':_0x5b644f['chat']};const {chat:_0x173822,files:_0x25c835}=_0x5b644f;function _0x392deb(_0x33f8d1,_0x1dd513,_0x41518d,_0xcf25ae){return _0x24de51(_0x41518d-_0x1f86f2._0x5d5b87,_0xcf25ae,_0x41518d-_0x1f86f2._0x1915fb,_0xcf25ae-_0x1f86f2._0x1f0197);}if(_0x25c835)for(let _0x5ef651=0x1*0x1fc3+-0x851+-0x1772;_0x5ef651<_0x25c835[_0x392deb(_0x3d8ecb._0x479b73,_0x3d8ecb._0x282197,_0x3d8ecb._0x1c4a54,0x1cd)];_0x5ef651+=0x10cc+-0xbfe+-0x4cd){const _0x38f1af=parseCoreFile(_0x25c835[_0x5ef651]),{id:_0x56c1e9}=_0x38f1af;_0x56c1e9&&(_0x370814[_0x392deb(_0x3d8ecb._0x423764,_0x3d8ecb._0x25dcaa,0x1db,0x204)](_0x38f1af),_0x2d8272[_0x38691a(0x22b,_0x3d8ecb._0x4099db,_0x3d8ecb._0x36485a,_0x3d8ecb._0x3dfd1a)](_0x56c1e9));}function _0x38691a(_0x147552,_0x4de82e,_0x3aa9ea,_0x31d8f6){return _0x24de51(_0x147552-_0x25e85d._0x87c724,_0x3aa9ea,_0x3aa9ea-_0x25e85d._0x1663b5,_0x31d8f6-_0x25e85d._0x463496);}const _0x1c54ba=_0x173822?.['display'],_0x1b045b=_0x1c54ba?_0x1c54ba['map']((_0x3baf2e,_0x25a298)=>{function _0x2fe4a1(_0xf96788,_0x2c8b4f,_0xd34827,_0x78720b){return _0x38691a(_0xd34827- -_0x512f6f._0x597a71,_0x2c8b4f-_0x512f6f._0x22123,_0xf96788,_0x78720b-_0x512f6f._0x51e0a6);}function _0x1b18ff(_0x30ad8b,_0x341196,_0x1926f9,_0x27876c){return _0x392deb(_0x30ad8b-0x86,_0x341196-_0x4b1781._0x1e14b9,_0x27876c- -_0x4b1781._0x234251,_0x341196);}const _0x4cd891=_0x3baf2e[_0x1b18ff(_0x4b4d16._0x337353,_0x4b4d16._0x1e3550,_0x4b4d16._0xfc3a6f,_0x4b4d16._0x6687a0)]===HTTP_LINK||_0x3baf2e[_0x2fe4a1(-0x1c1,-_0x4b4d16._0x2a89d8,-_0x4b4d16._0x403428,-0x1a4)]===PEAR_LINK;if(_0x4cd891&&_0x3baf2e[_0x2fe4a1(-0x204,-0x1f7,-_0x4b4d16._0x4fabfe,-_0x4b4d16._0x22e7ab)]?.[_0x1b18ff(_0x4b4d16._0x2e675c,_0x4b4d16._0x13bfbf,_0x4b4d16._0x2e675c,_0x4b4d16._0x5cac71)]){const _0xbf9c87=parseCoreFile(_0x3baf2e[_0x2fe4a1(-0x1c5,-0x1b5,-0x1d7,-_0x4b4d16._0x5663ce)][_0x2fe4a1(-_0x4b4d16._0x1cdf49,-_0x4b4d16._0x56b5de,-_0x4b4d16._0x5663ce,-0x1db)]),_0x5f5cba=getFileId(_0xbf9c87[_0x1b18ff(0xbb,_0x4b4d16._0x2ecc89,_0x4b4d16._0x333d05,_0x4b4d16._0x2cdd31)])||createMessageId(_0x5b644f)+('-link-prev'+'iew-')+_0x25a298;if(_0xbf9c87)return _0xbf9c87['id']=_0x5f5cba,_0x370814[_0x2fe4a1(-0x1fb,-0x20a,-_0x4b4d16._0x2b5bcc,-_0x4b4d16._0x2e9037)](_0xbf9c87),{..._0x3baf2e,'preview':{..._0x3baf2e['preview'],'fileId':_0x5f5cba}};}return _0x3baf2e;}):[];return{'fileId':_0x2d8272[0x417*0x5+-0x8*-0x4d8+-0x5*0xbd7]||'','files':_0x370814,'mediaType':_0x370814['length']?getFileListMediaType(_0x370814):null,'fileIds':_0x2d8272,'chat':{..._0x173822,'display':_0x1b045b}};};export const parseSystemEvents=_0x19b6fc=>{const _0x3b4822={_0x3c0426:0x24e,_0x366fb7:0x225,_0x1f1402:0x215,_0xa3b5bd:0x21a,_0x56d5f5:0x200,_0x44be1d:0x1e5,_0x740fab:0x1c5,_0x4a1662:0x24a,_0x1ca0a9:0x1e7,_0x5cb2ac:0x213,_0x476deb:0x23b,_0x52bec3:0x24a,_0x3aaec0:0x16e,_0x4ea6a2:0x118,_0x5aaa25:0x137,_0x45ed2d:0x11c,_0x374431:0x14e,_0x3fb0f1:0x12e,_0x1a02d7:0x14f,_0x56e6e9:0x163,_0x36296f:0x143,_0xb6cc23:0x123,_0x364a85:0x21a,_0x32a4dc:0x222,_0x35ea03:0x243,_0x2b3837:0x110,_0x3b555d:0x141,_0x176fbe:0xf1,_0x42e597:0x1f4,_0x55f1fe:0x1f1,_0x830db1:0x1ef,_0x6bb1ea:0x14d,_0x45c73a:0x152,_0xb90d20:0x116,_0x2b6320:0x223,_0x200cb9:0x1f2,_0x411a0b:0x1e8,_0x4147d2:0x13c,_0x14544f:0x110,_0x4de84f:0x112,_0x331bab:0xdd,_0x398660:0xb6,_0x2ae296:0xee,_0x11070f:0x20e,_0x375cd6:0x25e,_0x2eb935:0xf6,_0xca1ae3:0x108,_0x356f77:0x100,_0x198a27:0xfc,_0x12435e:0x230,_0x19b6e8:0x24c,_0x36207c:0x249,_0x113652:0x20c,_0x314af0:0x1e6,_0x2e4b6f:0x221,_0x561bf4:0x1e3,_0x58fe08:0xcf,_0x3d571d:0xe9,_0x3cc068:0xf3,_0x63f05a:0xd8,_0x43a6ef:0xe5,_0x448cdb:0xde,_0x36d6fa:0x107,_0x1b29a0:0x138,_0x2fa085:0x21a,_0x35d6d1:0x206,_0x5a2091:0x259,_0x3c6ed4:0x209,_0x353baa:0x217},_0x34055b={_0x354b80:0x1d},_0x5572c7={_0x3a4b5c:0x199,_0x1278f2:0x203,_0x19c290:0x164},{message:_0x545b1e}=_0x19b6fc,{generic:_0xac470b}=_0x545b1e||{};if(_0xac470b?.[_0x2337d4(_0x3b4822._0x3c0426,0x253,0x26b,_0x3b4822._0x366fb7)+'ed'])return{'type':CHAT_MESSAGE_TYPE[_0x2337d4(_0x3b4822._0x1f1402,_0x3b4822._0xa3b5bd,0x210,0x20d)],'memberId':_0xac470b['memberJoin'+'ed'][_0x2337d4(_0x3b4822._0x56d5f5,_0x3b4822._0x44be1d,_0x3b4822._0x740fab,0x217)]};if(_0xac470b?.[_0x2337d4(0x213,_0x3b4822._0x1f1402,_0x3b4822._0x4a1662,_0x3b4822._0x1ca0a9)])return{'type':CHAT_MESSAGE_TYPE['LEFT'],'memberId':_0xac470b[_0x2337d4(_0x3b4822._0x5cb2ac,0x208,_0x3b4822._0x476deb,_0x3b4822._0x52bec3)][_0x4f92a3(-_0x3b4822._0x3aaec0,-_0x3b4822._0x4ea6a2,-_0x3b4822._0x5aaa25,-0x104)]};if(_0xac470b?.['memberRemo'+_0x4f92a3(-_0x3b4822._0x45ed2d,-_0x3b4822._0x374431,-_0x3b4822._0x3fb0f1,-_0x3b4822._0x1a02d7)])return{'type':CHAT_MESSAGE_TYPE[_0x4f92a3(-_0x3b4822._0x56e6e9,-0x176,-_0x3b4822._0x36296f,-_0x3b4822._0xb6cc23)+_0x2337d4(0x229,_0x3b4822._0x364a85,_0x3b4822._0x32a4dc,_0x3b4822._0x35ea03)],'memberId':_0x19b6fc[_0x4f92a3(-_0x3b4822._0x2b3837,-_0x3b4822._0x4ea6a2,-_0x3b4822._0x5aaa25,-_0x3b4822._0x3b555d)],'targetMemberId':_0xac470b[_0x4f92a3(-_0x3b4822._0x176fbe,-0xef,-0xeb,-0xbc)+_0x2337d4(0x209,_0x3b4822._0x42e597,_0x3b4822._0x55f1fe,_0x3b4822._0x830db1)]['memberId']};if(_0xac470b?.[_0x4f92a3(-_0x3b4822._0x6bb1ea,-_0x3b4822._0x45c73a,-0x117,-0x119)+'d'])return{'type':CHAT_MESSAGE_TYPE['CALL_START'+'ED']};if(_0xac470b?.['callMissed'])return{'type':CHAT_MESSAGE_TYPE['CALL_MISSE'+'D']};if(_0xac470b?.[_0x4f92a3(-0x16d,-0x162,-0x144,-_0x3b4822._0xb90d20)])return{'type':CHAT_MESSAGE_TYPE['CALL_HANGU'+'P']};function _0x2337d4(_0x387a86,_0x5d8738,_0x2e6f79,_0x5d24c3){return _0x453de9(_0x387a86-_0x5572c7._0x3a4b5c,_0x387a86- -_0x5572c7._0x1278f2,_0x2e6f79-_0x5572c7._0x19c290,_0x5d8738);}if(_0xac470b?.[_0x2337d4(_0x3b4822._0x2b6320,_0x3b4822._0xa3b5bd,_0x3b4822._0x200cb9,_0x3b4822._0x411a0b)+'Created'])return{'type':CHAT_MESSAGE_TYPE[_0x4f92a3(-_0x3b4822._0x4147d2,-_0x3b4822._0x14544f,-_0x3b4822._0x4de84f,-0x129)+_0x4f92a3(-_0x3b4822._0x331bab,-_0x3b4822._0x398660,-_0x3b4822._0x2ae296,-0xdb)]};if(_0xac470b?.['roomAvatar'+_0x2337d4(0x22a,_0x3b4822._0x11070f,_0x3b4822._0x366fb7,_0x3b4822._0x375cd6)])return{'type':CHAT_MESSAGE_TYPE['ROOM_AVATA'+_0x4f92a3(-_0x3b4822._0x2eb935,-_0x3b4822._0xca1ae3,-_0x3b4822._0x356f77,-_0x3b4822._0x198a27)]};function _0x4f92a3(_0x4bcf3b,_0x2080fe,_0x40c741,_0x371c82){return _0x24de51(_0x40c741- -0xdc,_0x371c82,_0x40c741-0x3a,_0x371c82-_0x34055b._0x354b80);}if(_0xac470b?.[_0x2337d4(_0x3b4822._0x12435e,_0x3b4822._0x19b6e8,_0x3b4822._0x36207c,_0x3b4822._0x113652)+'ed'])return{'type':CHAT_MESSAGE_TYPE[_0x2337d4(_0x3b4822._0x314af0,0x1c5,_0x3b4822._0x2e4b6f,_0x3b4822._0x561bf4)+_0x4f92a3(-_0x3b4822._0x58fe08,-_0x3b4822._0x3d571d,-_0x3b4822._0x3cc068,-_0x3b4822._0x63f05a)],'from':_0xac470b[_0x4f92a3(-_0x3b4822._0x43a6ef,-_0x3b4822._0x448cdb,-_0x3b4822._0x36d6fa,-_0x3b4822._0x1b29a0)+'ed'][_0x2337d4(0x219,0x22c,_0x3b4822._0x2fa085,_0x3b4822._0x35d6d1)],'to':_0xac470b[_0x2337d4(_0x3b4822._0x12435e,_0x3b4822._0x5a2091,_0x3b4822._0x3c6ed4,_0x3b4822._0x353baa)+'ed']['to']};return null;};export const parseMessage=(_0x1a56ce,_0xaa44f7)=>{const _0x339e89={_0x538788:0x395,_0x5cb135:0x353,_0x1e73c7:0x382,_0xa574a5:0x372,_0x581d02:0x35d,_0x225fe1:0x11c,_0x5aee22:0xbc,_0x3f9685:0x11a,_0x2ae552:0xc8,_0x45d61d:0xeb,_0x42c20d:0xd2,_0x1282cf:0x97,_0x316d42:0x95,_0x222c3d:0x367,_0x468595:0x30c,_0x35c366:0x132,_0x4d0705:0x16c,_0x7358fe:0xfa,_0x5b32ab:0xf4,_0x1a45df:0x15d,_0x593dba:0x129,_0x16e5eb:0x32c,_0x555301:0x37e,_0x5b64fc:0x347,_0x182b79:0x33c,_0x3ddb71:0x312,_0x2f9020:0x33c,_0x1bf856:0x350,_0x26c84e:0x3b4,_0x4ddd87:0x389,_0xbc6953:0x32b,_0x211fad:0x374,_0x482882:0x329,_0xb4444c:0x363,_0x4739c7:0x355,_0x141b57:0x393,_0x5d1ac5:0xe3,_0x482c08:0x114,_0x3c9547:0x390,_0x3c5f97:0x396,_0x14e8ca:0x358,_0x3e9f98:0x3a7,_0x4c1e5f:0x388,_0x44225a:0x33b,_0x3da22e:0x39a,_0x56e3f4:0x3a2,_0x5c44a6:0x34b,_0x3c031f:0x380,_0x3efcef:0xed,_0x3d5f3c:0xf8,_0x5c7131:0x10d,_0x4d532f:0x380,_0x324244:0x3b8,_0x358989:0x391,_0x39b743:0x37d,_0x3a63fc:0x3b2,_0x212665:0x3b3,_0x11f71d:0x37d,_0x44a5ac:0x360,_0x1bec2b:0x30a,_0x29552a:0x33c},_0x5ae8ad={_0x54506d:0x136,_0x29de84:0x1f4,_0x98ab66:0x107},_0x41ed3e={_0x11e078:0x77,_0x13e5b1:0x11e},_0x187359=createMessageId(_0x1a56ce);function _0x33bc2f(_0x2547c6,_0x4e0877,_0x23dc54,_0x4f0c24){return _0x24de51(_0x4f0c24-0x391,_0x2547c6,_0x23dc54-_0x41ed3e._0x11e078,_0x4f0c24-_0x41ed3e._0x13e5b1);}if(_0x187359===UNKNOWN_ID)throw new Error(_0x33bc2f(_0x339e89._0x538788,_0x339e89._0x5cb135,_0x339e89._0x1e73c7,_0x339e89._0xa574a5)+_0x33bc2f(_0x339e89._0x581d02,0x356,0x3a1,0x38a),{'cause':JSON[_0x22fdf2(0xf2,_0x339e89._0x225fe1,_0x339e89._0x5aee22,_0x339e89._0x3f9685)](_0x1a56ce,null,0x8*-0x4ab+0x5a*0x67+0x1*0x124)});const {fileId:fileId='',mediaType:_0x53823e,fileIds:_0x58dad0,files:_0x1adb8f,chat:_0x1bcd2d}=parseFiles(_0x1a56ce),_0x23a816=parseSystemEvents(_0x1a56ce),_0x4304aa={'id':_0x187359,'coreId':_0x1a56ce['id'],'replyTo':_0x1a56ce[_0x22fdf2(_0x339e89._0x2ae552,_0x339e89._0x45d61d,0xc8,_0x339e89._0x42c20d)]?createMessageId({'id':_0x1a56ce[_0x22fdf2(0xc8,_0x339e89._0x1282cf,_0x339e89._0x316d42,0x100)]}):undefined,'event':_0x23a816,'memberId':_0x1a56ce[_0x33bc2f(_0x339e89._0x222c3d,_0x339e89._0x468595,0x327,0x336)],'targetMemberId':_0x23a816?.[_0x22fdf2(_0x339e89._0x35c366,_0x339e89._0x4d0705,_0x339e89._0x7358fe,0x11a)+'erId'],'seq':_0x1a56ce[_0x22fdf2(0x125,_0x339e89._0x5b32ab,_0x339e89._0x1a45df,_0x339e89._0x593dba)],'timestamp':_0x1a56ce[_0x33bc2f(_0x339e89._0x16e5eb,_0x339e89._0x555301,0x370,_0x339e89._0x5b64fc)],'editedAt':_0x1a56ce[_0x33bc2f(_0x339e89._0x182b79,0x332,_0x339e89._0x3ddb71,_0x339e89._0x2f9020)],'deleted':_0x1a56ce[_0x33bc2f(0x375,_0x339e89._0x1bf856,_0x339e89._0x26c84e,_0x339e89._0x4ddd87)],'fileId':fileId,'mediaType':_0x53823e,'fileIds':_0x58dad0,'chat':_0x1bcd2d,'reactionCount':parseCoreReactions(_0x1a56ce[_0x33bc2f(_0x339e89._0xbc6953,_0x339e89._0x211fad,_0x339e89._0x482882,_0x339e89._0xb4444c)],_0x187359)[_0x33bc2f(0x391,_0x339e89._0x4739c7,_0x339e89._0x141b57,0x373)],'reported':_0xaa44f7?.[_0x22fdf2(_0x339e89._0x5d1ac5,0x113,_0x339e89._0x482c08,0xbf)]||(_0x1a56ce[_0x33bc2f(_0x339e89._0x3c9547,_0x339e89._0x3c5f97,0x39e,0x37d)]?.[_0x33bc2f(_0x339e89._0x14e8ca,0x369,_0x339e89._0x3e9f98,_0x339e89._0x4c1e5f)]||0x1451+-0x45a*-0x1+0x1*-0x18ab)>=CHAT_MESSAGE_REPORT_COUNT,'reportedByMe':_0xaa44f7?.[_0x33bc2f(_0x339e89._0x44225a,_0x339e89._0x3da22e,_0x339e89._0x555301,0x367)+'Me']||!!_0x1a56ce['labels']?.['flagged'],'reportedClock':_0x1a56ce[_0x33bc2f(_0x339e89._0x56e3f4,_0x339e89._0x5c44a6,_0x339e89._0x3c031f,0x37d)]?.[_0x22fdf2(_0x339e89._0x3efcef,_0x339e89._0x3d5f3c,_0x339e89._0x5aee22,_0x339e89._0x5c7131)]||0xacb+-0x163f+0xb74,'reportedCount':_0x1a56ce[_0x33bc2f(_0x339e89._0x4d532f,_0x339e89._0x324244,_0x339e89._0x358989,_0x339e89._0x39b743)]?.['flags']||-0x14e*-0x1a+-0x1*-0x189d+0x3e7*-0xf,'labelsEditedAt':_0x1a56ce[_0x33bc2f(_0x339e89._0x3a63fc,_0x339e89._0x212665,0x355,_0x339e89._0x11f71d)]?.[_0x33bc2f(_0x339e89._0x44a5ac,_0x339e89._0x1bec2b,0x325,_0x339e89._0x29552a)]||-0x1*-0x1125+0x11ce+-0x22f3};function _0x22fdf2(_0x8e56f3,_0x3e0560,_0x13e20c,_0x240fc0){return _0x24de51(_0x8e56f3-_0x5ae8ad._0x54506d,_0x13e20c,_0x13e20c-_0x5ae8ad._0x29de84,_0x240fc0-_0x5ae8ad._0x98ab66);}return{'message':updateMessage(_0x4304aa,_0xaa44f7),'files':_0x1adb8f};};export const isMessageChanged=(_0xde06af,_0x2ad0ca)=>{const _0x2defb6={_0xb00287:0x293,_0x20e655:0x252,_0xb78d35:0x2a7,_0x3c2ef6:0x211,_0x339315:0x1e8,_0x33c1e3:0x21c,_0x44cef3:0x1f8,_0x7ec127:0x213,_0xa26885:0x24e,_0x5ce35f:0x263,_0x25460c:0x283,_0x3d9a9b:0x23f,_0x2fd0c4:0x22d,_0x4e6182:0x21d,_0x256fef:0x209,_0x52ccdf:0x23b,_0x18cf88:0x29d,_0xe05395:0x262,_0x2ff0d5:0x2ac,_0x27bbe2:0x2c9,_0x367aeb:0x2a4,_0x162033:0x2df,_0x3be5bb:0x2b3,_0x57111d:0x2d6,_0x470a06:0x2f0,_0x335629:0x248,_0x17183d:0x207,_0x2f4443:0x218,_0x13bc03:0x242,_0x1579f7:0x1e4,_0xe21871:0x236,_0x252b00:0x298,_0x15a94e:0x2cd,_0x110183:0x2ce,_0x5748ef:0x2b7,_0x2da9db:0x250,_0x1d73bf:0x2c1,_0x5b8fed:0x2eb,_0x2b7185:0x2ee},_0x492c5a={_0x4e56e8:0x2eb,_0x127d0c:0x41},_0x5e2840={_0x24193a:0x77,_0x2e0a3c:0x3d};function _0x137d71(_0xee6473,_0x234f88,_0x6f61d5,_0x3b7dcf){return _0x453de9(_0xee6473-_0x5e2840._0x24193a,_0xee6473- -0x1f3,_0x6f61d5-_0x5e2840._0x2e0a3c,_0x6f61d5);}if(!_0xde06af||!_0x2ad0ca)return![];function _0x4f3abc(_0x1dfa3f,_0x13ac81,_0x253e2,_0x4f42c5){return _0x24de51(_0x1dfa3f-_0x492c5a._0x4e56e8,_0x253e2,_0x253e2-0x17a,_0x4f42c5-_0x492c5a._0x127d0c);}return _0xde06af['id']!==_0x2ad0ca['id']||_0xde06af['seq']!==_0x2ad0ca['seq']||_0xde06af[_0x4f3abc(0x28d,_0x2defb6._0xb00287,_0x2defb6._0x20e655,_0x2defb6._0xb78d35)]!==_0x2ad0ca['groupCount']||_0xde06af['groupSeq']!==_0x2ad0ca['groupSeq']||_0xde06af['isHead']!==_0x2ad0ca[_0x137d71(0x21b,_0x2defb6._0x3c2ef6,0x20c,_0x2defb6._0x339315)]||_0xde06af[_0x137d71(_0x2defb6._0x33c1e3,_0x2defb6._0x44cef3,_0x2defb6._0x7ec127,_0x2defb6._0xa26885)]!==_0x2ad0ca['datetime']||_0xde06af['editedAt']!==_0x2ad0ca['editedAt']||_0xde06af[_0x137d71(_0x2defb6._0x5ce35f,0x234,0x230,_0x2defb6._0x25460c)]!==_0x2ad0ca[_0x137d71(0x263,0x24d,_0x2defb6._0x3d9a9b,_0x2defb6._0x2fd0c4)]||_0xde06af[_0x137d71(_0x2defb6._0x4e6182,_0x2defb6._0x256fef,0x212,_0x2defb6._0x52ccdf)]!==_0x2ad0ca[_0x4f3abc(_0x2defb6._0x18cf88,_0x2defb6._0xe05395,_0x2defb6._0x2ff0d5,0x273)]||_0xde06af[_0x4f3abc(_0x2defb6._0x27bbe2,0x2fa,_0x2defb6._0x367aeb,_0x2defb6._0x162033)]!==_0x2ad0ca[_0x4f3abc(0x2c9,_0x2defb6._0x3be5bb,_0x2defb6._0x57111d,_0x2defb6._0x470a06)]||_0xde06af[_0x137d71(0x210,_0x2defb6._0x335629,_0x2defb6._0x17183d,0x1f8)]!==_0x2ad0ca['memberId']||_0xde06af[_0x137d71(_0x2defb6._0x2f4443,_0x2defb6._0x13bc03,_0x2defb6._0x1579f7,_0x2defb6._0xe21871)]!==_0x2ad0ca[_0x4f3abc(_0x2defb6._0x252b00,_0x2defb6._0x15a94e,_0x2defb6._0x110183,_0x2defb6._0x5748ef)]||_0xde06af[_0x137d71(0x241,0x25f,_0x2defb6._0x2da9db,0x265)+'Me']!==_0x2ad0ca[_0x4f3abc(_0x2defb6._0x1d73bf,_0x2defb6._0x5b8fed,0x2b0,_0x2defb6._0x2b7185)+'Me'];};export const isMessageChangedExcludeGrouping=(_0x4d9612,_0x76ea3)=>{const _0x3885b1={_0x22f476:0x43e,_0x596118:0x45a,_0x46d5f4:0x436,_0x187265:0x221,_0x1debed:0x210,_0x1bdbb3:0x22b,_0x17a1a5:0x20a,_0x425a52:0x1e7,_0x382d47:0x1cd,_0x55e375:0x1cb,_0x26a0dc:0x1e7,_0xb4f2a2:0x218,_0x4da966:0x234,_0x560136:0x42d,_0x13fef6:0x242,_0x1d8307:0x1ec,_0x660212:0x23a,_0x248fb1:0x21a,_0x436b5f:0x207,_0x5bbe27:0x21c,_0x1bc14a:0x1cc,_0x11314f:0x1e1,_0x49d683:0x3e0,_0x5e3fe9:0x40d,_0x59fb96:0x3d6,_0xda1e9b:0x202,_0x33fc3a:0x20d,_0x41691e:0x1e9,_0x4e706e:0x425,_0x4659b0:0x43f,_0x1d98b1:0x424,_0x2630a6:0x452},_0x5a88aa={_0xfcdcc3:0xf,_0x2b8d3d:0x122},_0x4a27cf={_0x9bfc4b:0x222,_0x118051:0xf1};function _0x38694e(_0x42875c,_0x16d89e,_0x3b7fd6,_0x59d61d){return _0x453de9(_0x42875c-0x191,_0x59d61d- -_0x4a27cf._0x9bfc4b,_0x3b7fd6-_0x4a27cf._0x118051,_0x42875c);}function _0x112a98(_0x3b194b,_0xc70cff,_0x107ae5,_0x495efc){return _0x453de9(_0x3b194b-0xb1,_0x3b194b- -_0x5a88aa._0xfcdcc3,_0x107ae5-_0x5a88aa._0x2b8d3d,_0x107ae5);}if(!_0x4d9612||!_0x76ea3)return![];return _0x4d9612['id']!==_0x76ea3['id']||_0x4d9612[_0x112a98(_0x3885b1._0x22f476,0x410,_0x3885b1._0x596118,_0x3885b1._0x46d5f4)]!==_0x76ea3[_0x38694e(_0x3885b1._0x187265,_0x3885b1._0x1debed,0x24f,_0x3885b1._0x1bdbb3)]||_0x4d9612[_0x38694e(_0x3885b1._0x17a1a5,0x214,0x1ec,_0x3885b1._0x425a52)]!==_0x76ea3[_0x38694e(_0x3885b1._0x382d47,_0x3885b1._0x55e375,_0x3885b1._0x26a0dc,0x1e7)]||_0x4d9612[_0x38694e(0x21b,_0x3885b1._0xb4f2a2,0x1f9,_0x3885b1._0x4da966)]!==_0x76ea3['deleted']||_0x4d9612['blocked']!==_0x76ea3['blocked']||_0x4d9612[_0x112a98(_0x3885b1._0x560136,0x440,0x41d,0x444)]!==_0x76ea3[_0x38694e(_0x3885b1._0x13fef6,_0x3885b1._0x1d8307,_0x3885b1._0x660212,_0x3885b1._0x248fb1)]||_0x4d9612[_0x38694e(_0x3885b1._0x436b5f,_0x3885b1._0x5bbe27,_0x3885b1._0x1bc14a,_0x3885b1._0x11314f)]!==_0x76ea3[_0x112a98(0x3f4,_0x3885b1._0x49d683,_0x3885b1._0x5e3fe9,_0x3885b1._0x59fb96)]||_0x4d9612[_0x38694e(_0x3885b1._0xda1e9b,_0x3885b1._0x33fc3a,0x223,_0x3885b1._0x41691e)]!==_0x76ea3['reported']||_0x4d9612[_0x112a98(_0x3885b1._0x4e706e,_0x3885b1._0x4659b0,_0x3885b1._0x1d98b1,_0x3885b1._0x2630a6)+'Me']!==_0x76ea3['reportedBy'+'Me'];};export const CHAT_MESSAGE_FILTER_MAP={};export const hasMoreMessages=(_0x284e83,_0x18c363)=>{const _0x5207f6={_0x2284bd:0xc5,_0x244647:0xde,_0x1b9ce5:0xd4,_0x31c5fe:0xc9,_0x19e38c:0x107,_0xcced1b:0xe2,_0xbc9356:0xd4,_0x2ca950:0xdd,_0x58e3a7:0xaf,_0x306b1f:0xa7,_0x1b9004:0xd4,_0x5f1b55:0x521,_0x24aed9:0x53a},_0x6869da={_0x1a2350:0xbd,_0x2fe698:0x521,_0x9847c6:0x1b9},_0x31a8c6={_0x5d75d0:0x18e,_0x2202b7:0xd8,_0x524a04:0xce},_0x24662a=first(_0x284e83)?.[_0x1395ca(-_0x5207f6._0x2284bd,-_0x5207f6._0x244647,-0xd7,-_0x5207f6._0x1b9ce5)],_0x5cb714=last(_0x284e83)?.[_0x1395ca(-_0x5207f6._0x31c5fe,-_0x5207f6._0x19e38c,-_0x5207f6._0xcced1b,-_0x5207f6._0xbc9356)],_0x29fc65=first(_0x18c363)?.[_0x1395ca(-_0x5207f6._0x2ca950,-_0x5207f6._0x58e3a7,-_0x5207f6._0x306b1f,-_0x5207f6._0x1b9004)];function _0x4e3fc5(_0x4f1afd,_0x2cb10f,_0x17695d,_0x19af72){return _0x453de9(_0x4f1afd-_0x31a8c6._0x5d75d0,_0x4f1afd-_0x31a8c6._0x2202b7,_0x17695d-_0x31a8c6._0x524a04,_0x17695d);}const _0x504b81=last(_0x18c363)?.[_0x4e3fc5(0x525,_0x5207f6._0x5f1b55,_0x5207f6._0x24aed9,0x523)];function _0x1395ca(_0x3dec05,_0x3f9eb8,_0x6adff9,_0x39de08){return _0x453de9(_0x3dec05-_0x6869da._0x1a2350,_0x39de08- -_0x6869da._0x2fe698,_0x6adff9-_0x6869da._0x9847c6,_0x3f9eb8);}return _0x29fc65>_0x24662a||_0x504b81<_0x5cb714;};export const isGroupedUpdateRequired=(_0x1e9685,_0x32f21e)=>{const _0x531e4b={_0x1a8ab8:0x2be,_0x40da1a:0x2b0,_0x679681:0x443,_0x21bd90:0x446,_0x41f09e:0x476,_0x5493ca:0x2d1,_0x59cbdd:0x2a6,_0x5e26ab:0x31a,_0x27af08:0x2e2,_0xf8ae2a:0x2ca,_0x4e1ca0:0x31f,_0x12526c:0x2cf,_0x52186d:0x311,_0x2f3789:0x300,_0x3aaeb4:0x4aa,_0x3d5b12:0x4bb,_0x552238:0x4aa,_0x5b9029:0x288,_0x442131:0x2b1,_0x12b29f:0x267,_0x1726bf:0x2aa,_0x47cd7b:0x2bd,_0x6bed14:0x29f,_0x407473:0x2cc,_0x24a826:0x2ba,_0x64ffa6:0x2c4,_0x15ad12:0x275,_0xc1e6a3:0x269,_0x258f1d:0x4a1,_0x20682b:0x4b7,_0x1e901d:0x4b7,_0x2d05b0:0x4a8,_0x52cbfc:0x2c4,_0x390745:0x2b4,_0x3d07ab:0x2e2},_0x2ff907={_0x9e6879:0xe0},_0x4617dc={_0x90600a:0x14d};if(!Array[_0x19fba8(_0x531e4b._0x1a8ab8,0x2a8,0x2c0,_0x531e4b._0x40da1a)](_0x32f21e)||_0x32f21e[_0x5dba6f(_0x531e4b._0x679681,0x46b,_0x531e4b._0x21bd90,_0x531e4b._0x41f09e)]<-0x4*0x79f+0x5c9+0x18b4)return![];function _0x19fba8(_0x461b7d,_0x223ab2,_0x514216,_0x46ee9d){return _0x453de9(_0x461b7d-0x1db,_0x46ee9d- -_0x4617dc._0x90600a,_0x514216-0x6e,_0x461b7d);}if(_0x1e9685[_0x19fba8(0x26f,0x27e,_0x531e4b._0x5493ca,_0x531e4b._0x59cbdd)]===0x3d*-0x93+-0x14b6+-0x37bd*-0x1)return!![];function _0x5dba6f(_0x28f10d,_0x485bd6,_0x1b11b3,_0x3fc11f){return _0x24de51(_0x3fc11f-0x4e1,_0x1b11b3,_0x1b11b3-0xce,_0x3fc11f-_0x2ff907._0x9e6879);}if(hasMoreMessages(_0x1e9685,_0x32f21e))return!![];const _0x530119=_0x1e9685[0x1b41+-0xc15+-0xf2c][_0x19fba8(_0x531e4b._0x5e26ab,_0x531e4b._0x27af08,_0x531e4b._0xf8ae2a,0x300)],{length:_0x544a86}=_0x32f21e;for(let _0x10940c=-0xb*0x23+-0xecf+-0x12*-0xe8;_0x10940c<_0x544a86;_0x10940c+=0xf*0x178+0xb3*0x2+-0x176d){const _0x311430=_0x32f21e[_0x10940c],_0x34ea1b=_0x530119-_0x311430[_0x19fba8(_0x531e4b._0x4e1ca0,_0x531e4b._0x12526c,_0x531e4b._0x52186d,_0x531e4b._0x2f3789)];if(_0x34ea1b<-0x1809+0x26b2+-0x4e3*0x3)throw new Error(_0x5dba6f(_0x531e4b._0x3aaeb4,_0x531e4b._0x3d5b12,0x4bc,_0x531e4b._0x552238)+_0x19fba8(0x2b8,_0x531e4b._0x5b9029,0x28e,_0x531e4b._0x442131)+_0x19fba8(_0x531e4b._0x12b29f,_0x531e4b._0x1726bf,_0x531e4b._0x47cd7b,_0x531e4b._0x6bed14)+_0x19fba8(0x2ab,_0x531e4b._0x407473,_0x531e4b._0x24a826,_0x531e4b._0x64ffa6)+'next\x20messa'+_0x19fba8(0x283,_0x531e4b._0x15ad12,_0x531e4b._0xc1e6a3,0x2a4)+_0x5dba6f(_0x531e4b._0x258f1d,_0x531e4b._0x20682b,_0x531e4b._0x1e901d,_0x531e4b._0x2d05b0)+_0x19fba8(_0x531e4b._0x52cbfc,_0x531e4b._0x390745,0x315,_0x531e4b._0x3d07ab));const _0x1ab6d0=_0x1e9685[_0x34ea1b];if(!_0x1ab6d0||isMessageChangedExcludeGrouping(_0x1ab6d0,_0x311430))return!![];}return![];};export const getChatDisplayNameForMention=({message:_0x14b68c,memberById:_0x2c5ecb})=>_0x14b68c[_0x24de51(-0x28,-0x19,-0x45,0xb)]?.[_0x453de9(0x428,0x42e,0x43d,0x464)]?.[_0x24de51(-0x6,0x31,-0x3d,0x20)](_0x5dd0dd=>{const _0x372fb4={_0x88e2ee:0x14d,_0x46ed19:0x15f,_0x5fe0cb:0x164,_0x191a0f:0x12f,_0x510d52:0x1e4,_0x33848f:0x1af,_0x2797e3:0x1d7,_0x30a1da:0x1e0,_0x190b0c:0x202,_0x40daa6:0x190,_0xd44f74:0x1c8,_0x2fce9d:0x1f9,_0x45d659:0x10b,_0x2fd854:0x116,_0x6cc5de:0xdb,_0x1f8812:0xf4,_0x2a4da8:0x117,_0x16eca5:0xec,_0x292881:0xf2,_0x4adfdb:0x1c9,_0x1758f9:0x218,_0x58508f:0x1f7,_0x34b1bf:0x1ca,_0x258750:0x10d,_0x310f90:0x130,_0x346aa6:0x15e,_0x9d089f:0x207},_0x3fbe7e={_0x29735c:0x3,_0x373838:0x240,_0x2de83a:0xac},_0x144646={_0x238054:0x7a,_0x34dc54:0x554,_0x9894f3:0x184};function _0x3415c7(_0x3d0b82,_0xfe5ed4,_0x56b442,_0x4e1e89){return _0x453de9(_0x3d0b82-_0x144646._0x238054,_0xfe5ed4- -_0x144646._0x34dc54,_0x56b442-_0x144646._0x9894f3,_0x3d0b82);}let _0x42fe25=_0x14b68c?.['chat']?.[_0x3415c7(-_0x372fb4._0x88e2ee,-_0x372fb4._0x46ed19,-_0x372fb4._0x5fe0cb,-_0x372fb4._0x191a0f)]?.[_0xdaabad(_0x372fb4._0x510d52,_0x372fb4._0x33848f,_0x372fb4._0x2797e3,_0x372fb4._0x30a1da)](_0x5dd0dd[_0xdaabad(_0x372fb4._0x190b0c,_0x372fb4._0x40daa6,_0x372fb4._0xd44f74,_0x372fb4._0x2fce9d)],_0x5dd0dd[_0x3415c7(-_0x372fb4._0x45d659,-_0x372fb4._0x2fd854,-0x140,-_0x372fb4._0x6cc5de)]);function _0xdaabad(_0x2d9647,_0x13ffcf,_0x509ed2,_0x442d64){return _0x453de9(_0x2d9647-_0x3fbe7e._0x29735c,_0x509ed2- -_0x3fbe7e._0x373838,_0x509ed2-_0x3fbe7e._0x2de83a,_0x442d64);}for(const _0x197ce0 of _0x5dd0dd[_0x3415c7(-_0x372fb4._0x1f8812,-_0x372fb4._0x2a4da8,-_0x372fb4._0x16eca5,-_0x372fb4._0x292881)]){const _0x1e2e84=_0x197ce0[_0xdaabad(_0x372fb4._0x4adfdb,_0x372fb4._0x1758f9,_0x372fb4._0x58508f,_0x372fb4._0x34b1bf)]?.[_0x3415c7(-_0x372fb4._0x258750,-_0x372fb4._0x310f90,-_0x372fb4._0x346aa6,-0x150)]('/')?.[-0x88*-0x16+0xa89+0x1*-0x1639],_0x1ba131=_0x2c5ecb?.[_0x1e2e84];if(!_0x1ba131?.['displayNam'+'e'])continue;_0x42fe25='@'+_0x1ba131[_0xdaabad(0x1fc,_0x372fb4._0x9d089f,0x214,0x210)+'e'];}return _0x42fe25;})[_0x453de9(0x433,0x419,0x43a,0x3ef)]('');const SEGMENTS_NOT_ALLOWED_TO_CUT=[DISPLAY_TYPES[_0x453de9(0x439,0x459,0x466,0x483)],DISPLAY_TYPES[_0x24de51(-0x41,-0x47,-0x14,-0xf)]];export function cutSegmentHighlight(_0x5d7613,_0x374999){const _0xe627d5={_0x29fea6:0xb0,_0x3e8531:0x9e,_0x4fafef:0xc2,_0x5c49ac:0x8f},_0x144c41={_0x348e20:0x4b3,_0x35afd2:0x4c4,_0x563775:0x4d0,_0x7d558a:0x4b7,_0x2e8f7a:0x50a,_0x2c2382:0x4bb,_0x38f2aa:0x156,_0xd138be:0x11a,_0x5ba475:0x162,_0xb3eff9:0x4ae,_0x58e519:0x4d0,_0xaf9b0e:0x168,_0x1f194e:0x155,_0x487551:0x133,_0x44a998:0x141,_0x561ca5:0x4d7,_0x3063d2:0x50c,_0x9c03ec:0x4f5,_0x1b891d:0x530,_0x550c53:0x12c,_0x555ade:0x10d,_0x10bd40:0xde},_0x5b3c55={_0x4caf15:0x98,_0x56ca7f:0x53,_0x1584e5:0x65},_0x2e38ce={_0x32367e:0x13b,_0xb372c8:0x77};if(isEmpty(_0x5d7613))return _0x5d7613;function _0x4554b4(_0x588642,_0x275ced,_0x468ae7,_0xa98abd){return _0x453de9(_0x588642-_0x2e38ce._0x32367e,_0xa98abd- -0x360,_0x468ae7-_0x2e38ce._0xb372c8,_0x275ced);}const _0x3cc547=[];let _0x3af47a=![];_0x5d7613[_0x4554b4(_0xe627d5._0x29fea6,_0xe627d5._0x3e8531,_0xe627d5._0x4fafef,_0xe627d5._0x5c49ac)](_0x1236c7=>{const _0x16653a={_0x1ed595:0x1de};function _0x47e778(_0x39ad90,_0x521ed0,_0x2bd22d,_0x1549ef){return _0x4554b4(_0x39ad90-_0x5b3c55._0x4caf15,_0x1549ef,_0x2bd22d-_0x5b3c55._0x56ca7f,_0x521ed0-_0x5b3c55._0x1584e5);}function _0x1ba837(_0x4bcdee,_0x309a5f,_0x247a25,_0x5bc4d2){return _0x4554b4(_0x4bcdee-_0x16653a._0x1ed595,_0x309a5f,_0x247a25-0x16f,_0x247a25-0x43e);}if(_0x1236c7['end']<=_0x374999)_0x3cc547[_0x1ba837(_0x144c41._0x348e20,_0x144c41._0x35afd2,_0x144c41._0x563775,0x4da)](_0x1236c7);else _0x1236c7[_0x1ba837(_0x144c41._0x7d558a,_0x144c41._0x2e8f7a,0x4e6,_0x144c41._0x2c2382)]<_0x374999&&_0x1236c7[_0x47e778(_0x144c41._0x38f2aa,0x143,_0x144c41._0xd138be,_0x144c41._0x5ba475)]>_0x374999?(_0x3af47a=!![],_0x3cc547[_0x1ba837(_0x144c41._0x348e20,_0x144c41._0xb3eff9,_0x144c41._0x58e519,0x508)]({..._0x1236c7,'end':_0x374999,'highlightStr':_0x1236c7[_0x47e778(_0x144c41._0xaf9b0e,_0x144c41._0x1f194e,_0x144c41._0x487551,_0x144c41._0x44a998)+'tr'][_0x1ba837(_0x144c41._0x561ca5,_0x144c41._0x3063d2,_0x144c41._0x9c03ec,_0x144c41._0x1b891d)](-0x7c2+0x81e+-0x5c*0x1,_0x374999-_0x1236c7[_0x47e778(_0x144c41._0x550c53,_0x144c41._0x555ade,0x107,_0x144c41._0x10bd40)])})):_0x3af47a=!![];});if(!_0x3af47a)return _0x5d7613;return _0x3cc547;}export const cutFormattedText=({text:_0x4228ef,segments:_0x53eda9,limit:_0x45c38d,addToEndText:_0x3a8bc1})=>{const _0x25ce99={_0x30829f:0x2a,_0x56eb11:0x1a,_0x4ba3cd:0x1d,_0x64e460:0x33,_0xb5624a:0x52,_0x4ea73d:0x2d,_0xcf0c87:0x1,_0x318f95:0x1c,_0x5ec7e7:0x1a5,_0x308b28:0x191,_0x38f56a:0x188,_0x5856e2:0x196,_0x48a484:0x176,_0x5dd07e:0x13e,_0x56aa81:0x164,_0x3e9cb5:0x27,_0x4fef73:0xa,_0x1ab273:0x17b,_0x132dac:0x1c1,_0x246ee4:0xb,_0x4817ec:0x1a,_0x2fdc8e:0x173,_0x19a4e5:0x110,_0x5b8ab7:0x171,_0x26358f:0x151,_0x85b411:0x188,_0x54c1f7:0x192,_0x24d34d:0x2a,_0x232f69:0x17,_0xa40f84:0x14d,_0x57f307:0x13d,_0x3b775f:0x11a,_0xfc9b3e:0x2b,_0x4a323a:0x2c,_0x3d8e3a:0x4d},_0x48552c={_0x29cdf5:0x85,_0x64cb10:0x69,_0x2fa91b:0x44,_0x5491a0:0x74,_0x1953ef:0x78,_0xda905d:0x75,_0x37391e:0x96,_0x30d772:0xae,_0x3f7c53:0x25,_0x5d999b:0x11,_0xd81ec1:0x93,_0x1f19e3:0xb8,_0x4a7bde:0xd3,_0x343fe2:0x9a,_0x27641b:0x3c,_0x3285fc:0x26,_0x342da0:0x18,_0x3f6f32:0x14,_0x4cefd0:0xcb,_0x59e1ec:0x91,_0x148809:0xbe,_0xdd6f1e:0x34,_0x1ffd61:0x29,_0x4275e6:0x24,_0xaf66f4:0xe,_0x4da26d:0x30,_0x2f953d:0x4d,_0x17257f:0x2b,_0x268b7e:0x2c,_0x113784:0x62},_0x35a038={_0x429a9a:0x1eb,_0x5b7226:0xa1},_0x550da4={_0x9dc412:0x4d,_0x1555a1:0x1e4},_0x26fa21={_0x183b9f:0x33,_0x34eab0:0x57b,_0x556c64:0x144},_0x410fb8={_0x3bb841:0x41,_0xcbbe29:0xe5};function _0x40b553(_0x1c2a36,_0x2cfb2b,_0x49df20,_0x361b1b){return _0x24de51(_0x1c2a36-_0x410fb8._0x3bb841,_0x49df20,_0x49df20-0x8f,_0x361b1b-_0x410fb8._0xcbbe29);}let _0x349fc9=_0x45c38d;function _0x498b69(_0x451d2b,_0x261be5,_0x45ec31,_0x5c5e8d){return _0x453de9(_0x451d2b-_0x26fa21._0x183b9f,_0x45ec31- -_0x26fa21._0x34eab0,_0x45ec31-_0x26fa21._0x556c64,_0x261be5);}if(_0x349fc9>=_0x4228ef[_0x40b553(-_0x25ce99._0x30829f,-0x44,-_0x25ce99._0x56eb11,-_0x25ce99._0x4ba3cd)])return{'text':_0x4228ef,'segments':_0x53eda9,'exceedsLimit':![]};const _0x4b3b11=_0x53eda9[_0x40b553(-_0x25ce99._0x64e460,-0x31,-0x23,-_0x25ce99._0xb5624a)]((_0x93622d,_0x4332a3)=>{if(_0x4332a3['end']<=_0x349fc9)_0x93622d[_0x58a384(_0x48552c._0x29cdf5,_0x48552c._0x64cb10,0x66,0x62)](_0x4332a3);else{if(_0x4332a3[_0x58a384(_0x48552c._0x2fa91b,_0x48552c._0x5491a0,0x51,_0x48552c._0x1953ef)]<_0x349fc9&&_0x4332a3[_0x58a384(_0x48552c._0xda905d,0xdb,_0x48552c._0x37391e,_0x48552c._0x30d772)]>_0x349fc9){const _0x58a57c=_0x4332a3[_0x5b4946(_0x48552c._0x3f7c53,0x3d,_0x48552c._0x5d999b,0x13)][_0x58a384(_0x48552c._0xd81ec1,_0x48552c._0x1f19e3,_0x48552c._0x4a7bde,_0x48552c._0x343fe2)](_0xb2c3b5=>SEGMENTS_NOT_ALLOWED_TO_CUT['indexOf'](_0xb2c3b5[_0x58a384(0x70,0xc3,0x80,0x90)])!==-(0x9b*0x27+0x1d1b+-0xa8b*0x5));_0x349fc9=_0x58a57c?_0x4332a3[_0x5b4946(_0x48552c._0x27641b,_0x48552c._0x3285fc,-_0x48552c._0x342da0,_0x48552c._0x3f6f32)]:_0x349fc9;const _0x54969c={..._0x4332a3,'end':_0x349fc9};if(!isEmpty(_0x4332a3[_0x58a384(_0x48552c._0x4cefd0,_0x48552c._0x59e1ec,0xb4,_0x48552c._0x148809)])){const _0x48fa50=_0x349fc9-_0x4332a3['start'];_0x54969c[_0x5b4946(0x1c,_0x48552c._0xdd6f1e,_0x48552c._0x1ffd61,_0x48552c._0x4275e6)]=cutSegmentHighlight(_0x4332a3[_0x5b4946(_0x48552c._0xaf66f4,0x4b,_0x48552c._0x4da26d,_0x48552c._0x4275e6)],_0x48fa50);}_0x93622d[_0x58a384(_0x48552c._0x2f953d,_0x48552c._0x17257f,_0x48552c._0x268b7e,_0x48552c._0x113784)](_0x54969c);}}function _0x5b4946(_0x47e974,_0x218ffb,_0x312747,_0x48e30f){return _0x498b69(_0x47e974-_0x550da4._0x9dc412,_0x47e974,_0x48e30f-0x151,_0x48e30f-_0x550da4._0x1555a1);}function _0x58a384(_0x2e1a81,_0x2d0f9e,_0x2b25f8,_0x37b753){return _0x498b69(_0x2e1a81-0x160,_0x2e1a81,_0x37b753-_0x35a038._0x429a9a,_0x37b753-_0x35a038._0x5b7226);}return _0x93622d;},[]),_0x5f3465=_0x4228ef[_0x40b553(-0x2a,-_0x25ce99._0x4ea73d,_0x25ce99._0xcf0c87,-_0x25ce99._0x318f95)]>_0x349fc9;if(!_0x5f3465)return{'text':_0x4228ef,'segments':_0x53eda9,'exceedsLimit':_0x5f3465};const _0x2c7fd0=_0x4b3b11[_0x4b3b11[_0x498b69(-_0x25ce99._0x5ec7e7,-_0x25ce99._0x308b28,-_0x25ce99._0x38f56a,-_0x25ce99._0x5856e2)]-(-0x994*-0x4+0x5ef+-0x2c3e)];let _0x179890=_0x4228ef[_0x498b69(-_0x25ce99._0x48a484,-_0x25ce99._0x5dd07e,-_0x25ce99._0x56aa81,-0x15e)](-0x5cd*0x2+0xe1a+-0x280,_0x349fc9);const _0x2616eb=/\s/[_0x40b553(_0x25ce99._0x3e9cb5,0x4e,0x23,-_0x25ce99._0x4fef73)](_0x179890[_0x498b69(-0x12d,-_0x25ce99._0x5dd07e,-_0x25ce99._0x56aa81,-0x156)](-(0x1d03+-0x9fd*-0x2+-0x30fc)));_0x3a8bc1&&(_0x179890+=_0x2616eb?_0x3a8bc1:'\x20'+_0x3a8bc1);if(!_0x53eda9)return{'text':_0x179890,'segments':_0x53eda9,'exceedsLimit':_0x5f3465};if(_0x3a8bc1){const _0x695c05=_0x2616eb?_0x3a8bc1[_0x498b69(-0x15d,-_0x25ce99._0x1ab273,-_0x25ce99._0x38f56a,-_0x25ce99._0x132dac)]:_0x3a8bc1[_0x40b553(-_0x25ce99._0x30829f,-_0x25ce99._0x246ee4,-_0x25ce99._0x4817ec,-0x8)]+(0xcb3+-0x1*-0x2305+-0x2fb7);!_0x2c7fd0[_0x498b69(-_0x25ce99._0x2fdc8e,-0x14c,-_0x25ce99._0x5dd07e,-_0x25ce99._0x19a4e5)][_0x498b69(-_0x25ce99._0x5b8ab7,-_0x25ce99._0x26358f,-_0x25ce99._0x85b411,-_0x25ce99._0x54c1f7)]?_0x4b3b11[_0x4b3b11[_0x40b553(-_0x25ce99._0x24d34d,-_0x25ce99._0x232f69,0x2,-0x33)]-(0x94a+0x613+-0xf5c)]={..._0x2c7fd0,'end':_0x2c7fd0[_0x498b69(-0x124,-_0x25ce99._0xa40f84,-_0x25ce99._0x57f307,-_0x25ce99._0x3b775f)]+_0x695c05}:_0x4b3b11[_0x40b553(-_0x25ce99._0xfc9b3e,-0x52,-_0x25ce99._0x4a323a,-_0x25ce99._0x3d8e3a)]({'start':_0x349fc9,'end':_0x349fc9+_0x695c05,'styles':[]});}return{'text':_0x179890,'segments':_0x4b3b11,'exceedsLimit':_0x5f3465};};export function getIsMessageHidden(_0x39a048,_0x3acdc7){const _0x54ca93={_0xc02d4d:0x609},_0x5b68da={_0x3e3e17:0xa1,_0x20732f:0x1ae,_0x2e8d32:0xee};for(const _0x45148c of _0x3acdc7){const _0x5aecd6=_0x3acdc7?CHAT_MESSAGE_FILTER_MAP[_0x45148c]:undefined;if(_0x5aecd6?.(_0x39a048))return!![];}function _0x4b4a1a(_0xff2a7f,_0x5e14b5,_0x579e4e,_0x2c21e3){return _0x453de9(_0xff2a7f-_0x5b68da._0x3e3e17,_0x2c21e3-_0x5b68da._0x20732f,_0x579e4e-_0x5b68da._0x2e8d32,_0x5e14b5);}const _0x2afd90=parseSystemEvents(_0x39a048)?.['type'];return _0x2afd90&&!KNOWN_EVENT_TYPES[_0x4b4a1a(0x5bc,_0x54ca93._0xc02d4d,0x5cd,0x5f6)](_0x2afd90);}