faker3/utils/Rebels_sendJDNotify.js
2024-06-28 15:38:28 +08:00

30 lines
27 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
一个强大的推送通知库,主要用于汇总多条账号消息后集中推送通知
默认情况下账号消息指的是单一账号的消息,它由“<前缀><用户名><消息内容>”组成,其中消息内容由一条或多条组成最后用指定字符拼接成一条合并内容
脚本最终汇总多条账号消息后集中触发推送通知业务,每个账号的消息占用一行,排列顺序以优先触发记录为原则
此库封装了多条方法,推送通知业务调用自 sendNotify.js可引用此模块来平替引用它支持单消息推送
账号消息自定义功能如下(环境变量)
1。关键词匹配白名单触发时推送对应单条账号消息另外定义后不再适用于黑名单关键词过滤 JD_NOTIFY_MATCH_KEYWORDS
export JD_NOTIFY_MATCH_KEYWORDS="积分",多个关键词用@分割
2。关键词过滤黑名单触发时不推送对应单条账号消息 JD_NOTIFY_FILTER_KEYWORDS
export JD_NOTIFY_FILTER_KEYWORDS="空气@会员",多个关键词用@分割
3。关键词清除触发时会清除消息内容中的对应关键字 JD_NOTIFY_CLEAR_KEYWORDS
export JD_NOTIFY_CLEAR_KEYWORDS="" # 例:"空气",多个关键词用|分割,如果你不想在账号消息中看到某些字样则可以使用此功能
4。消息内容分隔符 JD_NOTIFY_SEPARATOR默认为中文逗号
export JD_NOTIFY_SEPARATOR="、",此分隔符用于分隔多条账号消息
5。设置用户名昵称 JD_NOTIFY_NICKNAMES
export JD_NOTIFY_NICKNAMES="userpin_α@哥哥,userpin_β@弟弟",多个昵称配置用英文逗号分割,用户名和昵称用@分割
6。是否展示用户名 JD_NOTIFY_SHOW_USERNAMEtrue/false默认展示
export JD_NOTIFY_SHOW_USERNAME="false"
7. 设置推送通知的用户名是否脱敏 JD_NOTIFY_USERNAME_MASKINGtrue/false默认不脱敏根据用户名长度动态将部分字符用*替换
JD_NOTIFY_USERNAME_MASKING="true"
8。设置消息前缀格式 JD_NOTIFY_PREFIX_FORMAT默认为 "【京东账号<序号>】<用户名>"
export JD_NOTIFY_PREFIX_FORMAT="账号%【@】"%代表账号序号、@代表用户名
9。设置自动合并消息中用数字开头表示数量的内容 JD_NOTIFY_AUTO_MERGE_TYPE
export JD_NOTIFY_AUTO_MERGE_TYPE="积分",多个规则用@分割,正则匹配
new Env('Rebels_sendJDNotify');
*/
var il='jsjiami.com.v7';const l1iIlI=iii1II;(function(IllIll,i1lllI,llIIi1,iI1IlI,l1i1Il,ill1I1,l1i1II){return IllIll=IllIll>>0x9,ill1I1='hs',l1i1II='hs',function(ili111,Ii1I11,IllIli,ii1Ii,ii1Il){const IIIl1=iii1II;ii1Ii='tfi',ill1I1=ii1Ii+ill1I1,ii1Il='up',l1i1II+=ii1Il,ill1I1=IllIli(ill1I1),l1i1II=IllIli(l1i1II),IllIli=0x0;const l1iII=ili111();while(!![]&&--iI1IlI+Ii1I11){try{ii1Ii=parseInt(IIIl1(0x208,'9f$6'))/0x1+-parseInt(IIIl1(0x14a,'lIld'))/0x2*(parseInt(IIIl1(0x140,'xeoS'))/0x3)+-parseInt(IIIl1(0x216,'hVXw'))/0x4*(-parseInt(IIIl1(0x124,'P#EF'))/0x5)+-parseInt(IIIl1(0x16d,'XpGH'))/0x6*(parseInt(IIIl1(0x1c6,'I#vS'))/0x7)+parseInt(IIIl1(0x19f,'xJeF'))/0x8+parseInt(IIIl1(0x126,'[H$!'))/0x9+parseInt(IIIl1(0x122,'qTB6'))/0xa;}catch(iI1Ill){ii1Ii=IllIli;}finally{ii1Il=l1iII[ill1I1]();if(IllIll<=iI1IlI)IllIli?l1i1Il?ii1Ii=ii1Il:l1i1Il=ii1Il:IllIli=ii1Il;else{if(IllIli==l1i1Il['replace'](/[KyPMbOhnWRASLExBXu=]/g,'')){if(ii1Ii===Ii1I11){l1iII['un'+ill1I1](ii1Il);break;}l1iII[l1i1II](ii1Il);}}}}}(llIIi1,i1lllI,function(lilI1,IIIi1,i1llli,i1llll,iI1Ili,llIIiI,iI1111){return IIIi1='\x73\x70\x6c\x69\x74',lilI1=arguments[0x0],lilI1=lilI1[IIIi1](''),i1llli=`\x72\x65\x76\x65\x72\x73\x65`,lilI1=lilI1[i1llli]('\x76'),i1llll=`\x6a\x6f\x69\x6e`,(0x169969,lilI1[i1llll](''));});}(0x18200,0xe9712,Iii11l,0xc3),Iii11l)&&(il=0x1a7);function iii1II(_0x474d3a,_0x3a6adc){const _0x475ddf=Iii11l();return iii1II=function(_0x21f6b9,_0x1b73b0){_0x21f6b9=_0x21f6b9-0x10b;let _0x1077c5=_0x475ddf[_0x21f6b9];if(iii1II['HpzdrL']===undefined){var _0x5dcfda=function(_0xffe65f){const _0x3bae9f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2046fc='',_0x4848d8='';for(let _0x39f781=0x0,_0x49c5bf,_0x497454,_0x548612=0x0;_0x497454=_0xffe65f['charAt'](_0x548612++);~_0x497454&&(_0x49c5bf=_0x39f781%0x4?_0x49c5bf*0x40+_0x497454:_0x497454,_0x39f781++%0x4)?_0x2046fc+=String['fromCharCode'](0xff&_0x49c5bf>>(-0x2*_0x39f781&0x6)):0x0){_0x497454=_0x3bae9f['indexOf'](_0x497454);}for(let _0x35e45f=0x0,_0x16c722=_0x2046fc['length'];_0x35e45f<_0x16c722;_0x35e45f++){_0x4848d8+='%'+('00'+_0x2046fc['charCodeAt'](_0x35e45f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4848d8);};const _0x598be6=function(_0x20fb74,_0x446c4d){let _0x479b37=[],_0x6d4142=0x0,_0x45a4de,_0x36aaa8='';_0x20fb74=_0x5dcfda(_0x20fb74);let _0x45a2ef;for(_0x45a2ef=0x0;_0x45a2ef<0x100;_0x45a2ef++){_0x479b37[_0x45a2ef]=_0x45a2ef;}for(_0x45a2ef=0x0;_0x45a2ef<0x100;_0x45a2ef++){_0x6d4142=(_0x6d4142+_0x479b37[_0x45a2ef]+_0x446c4d['charCodeAt'](_0x45a2ef%_0x446c4d['length']))%0x100,_0x45a4de=_0x479b37[_0x45a2ef],_0x479b37[_0x45a2ef]=_0x479b37[_0x6d4142],_0x479b37[_0x6d4142]=_0x45a4de;}_0x45a2ef=0x0,_0x6d4142=0x0;for(let _0x53aaa5=0x0;_0x53aaa5<_0x20fb74['length'];_0x53aaa5++){_0x45a2ef=(_0x45a2ef+0x1)%0x100,_0x6d4142=(_0x6d4142+_0x479b37[_0x45a2ef])%0x100,_0x45a4de=_0x479b37[_0x45a2ef],_0x479b37[_0x45a2ef]=_0x479b37[_0x6d4142],_0x479b37[_0x6d4142]=_0x45a4de,_0x36aaa8+=String['fromCharCode'](_0x20fb74['charCodeAt'](_0x53aaa5)^_0x479b37[(_0x479b37[_0x45a2ef]+_0x479b37[_0x6d4142])%0x100]);}return _0x36aaa8;};iii1II['wlLFgd']=_0x598be6,_0x474d3a=arguments,iii1II['HpzdrL']=!![];}const _0x2ee92b=_0x475ddf[0x0],_0x12b607=_0x21f6b9+_0x2ee92b,_0x3f1947=_0x474d3a[_0x12b607];return!_0x3f1947?(iii1II['umvswY']===undefined&&(iii1II['umvswY']=!![]),_0x1077c5=iii1II['wlLFgd'](_0x1077c5,_0x1b73b0),_0x474d3a[_0x12b607]=_0x1077c5):_0x1077c5=_0x3f1947,_0x1077c5;},iii1II(_0x474d3a,_0x3a6adc);}function Iii11l(){const liII1=(function(){return[...[il,'KhjBsXPjOyinaLEmxRiAb.bEcnKoLumMW.MvLS7E==','gSoDW7FdNs0','W5XyW5tcVw7cS8oT','jCofduORWR8','r8o0W4WLigS2W5GqW7W','WR3cSwOHW6e','eSotW7pdGchcQ8kXWPS','W4mubmoFlW','sMKzy8oJ','aCoepNuW','WOldRCoEogi','WRpdPaxdLhG','sNieyG','EZCfxs0Nf8kC','kwBcVCoGW4hcJSkJCexdILhcImkl','W6NdMmo6kfxdOmk9ysap','jmoeo3W8','ydWwxtKGfW','n8kjxHLejmo8W5yRA0SjW54V','AexcN8oKa8kCpSkZ','FSoNWRq9sa','WQS7Bvb0','W43cIM7cSI8','W5GVeSoomW','i8occfKE','WQlcH0G+B8osW5/cIXWh','E8kxwH01WOuTuCk5kW','W4/dJ0DEWPxdVNWyW659W4yxDmoABr7cNa','WOJdQLhcNri6ASo+DW4IW79TW4pdKIrzkmozWRurwG','WPJdIdtdT17cHwBdLq','jx1QjIdcNbyKWOdcJKtcVCoaeCkYW5hcVrpcNmofFa','brRcVGddKuxcRCk3B8oHWQ7cU8kpza','pCoscKa','x0PLnG','W5NdHmo6lfFdOmkrAtypW5uvWPLQ','W4GYeSo5g1vuWQhdOSoiW5hdVCoAaSkpW5i','mSouW5lcLdvoW5fu','n8oIefKukWJcOqyhW5Ghhee','W6RcTfpcTbKOWRjOaYPygd0y','W53cILVcSe3dVq','kxtdHXVcU8kZcSkVoCkMW5rJnq','W5qwWOBdNmoJW5hcHW','WQxdKmotW5vZW7yJehJcTColW6mqWPPZqSoXWOtcVI3dSwO','F1nKWP7cRajAzCkGW4a','nSkGWOXyWPa','WRqUB150sG','W6JdKYrFaa','drb3FqK','W7GXmmoyaI0FWOu','BuWDdey','W5ldN8oGo1hdVCk5','qCoEWP0JCW','s8opWRCntq','ig9qbM8IaCkyWPxdKCo3','zmoOW6yQjG','E0NdVCoDW4G','pqHJBby','f8kvFgrS','WRlcK24+W70b','iSojW4e','WRFcI1ajzCoo','wKtcICoKb8kvkmkPuCk3kgnwC2tcQSojW5fdW4RdT8oH','W50dpSosjK98WORdNSoAW7pdGSo0kSkZW6OReY3cUSkjpsZcLq','DJavqtCWfW','zxfSWQdcMG','WQWEWRezW4q','mCoqW6BdMYm','W5LBW4pcMx3cK8oQWOlcVCk4W6S0','W6e+hSoO','W5ZcGeBcSa','FSo7WRe3wq','iCooW5VcKH5D','CaldT8k2WOG','W43cSmkDqfK','W5OyWPZdI8oU','qe1rod4','WR7dQvFcGHq/AmoO','r1RdPSodW7lcVmoYpbjhhmktwf5ftmo2','c8ovW5zcfW','WR3cH1iADmou','W7NdGGtdNeqTeHPcDq','A8oWW4eIaxeSW4ufW4tcSI05WQS','vKSiAmk5WP0CW4ZcVL8','W67dJmo7jwS','iCoiW4xcOXPmW5q','hmoXgLC','wK3cICoLbCkEfSkLvSkTm21DzW','W4xdSmoFdKC','WP/dNvxcJaO','Cfz4nY3cN8kVfCoHW67cQG','ECoLWRe5','vtuEyWS','W5iMmmomltKEWPtcVXpcNgrHhCoDWRxdISkVW5tdGW','W63cSK7cSbm1WQm','lSojW5tcIG5lW5Lc','zsBdP8k0','EhuUc2HjASovhJNcSSk/W4XU'],...(function(){return[...['WR0LDW','xexcP8ockq','WO7dTCo9mf0zW4jplv/dKbrL','h8kUA3fBa8of','W7JdTLPiWQe','u206vCoT','WP8ksN54','W5udimo6WOK','W7hdRa7cS8oGW7xcKSk8aNNdNH8wxa','WQS0WPe6W68Xfq','dmkEWR1BWP0QhmkXc8k0WPBdG8kUCa','qq3dICkiWQa','W7KRiCogkq','WQpdRKdcGGq','WRJcJfGyEa','WOZcRdVcS8oIDYPsW47cQv7dJ8oGourwfeddIxj8kvK','a8oXW5Lramkacq','o8ofe0e+WRqU','eSoxW7a','44cK5lI95lQ+6lwN5y6ziEobK8oX772S','A8oWW5C1auKNW4mrW6dcLcyOWRC','tJNdQ8kQWORdMSoYwL/dQ2VcN8kSW7mjWR9s','W6dcTmk8BaHbWOXDc0VdRdDw','WO01WRuSW6a','W7NdJeziWP4','W6e9gSoUWOi','W6GkWOddH8oXW6RcGa3dIeFdONhdOW','WQBdTWhdULG','W5ddN8oRlLO','WPNcPxeEzW','W7dcGK7cPL/dQaCRmcuPhhBcSmkOW7H6W6ZcTCkOxa','hSocW7ZcSZa','WOhdGqtcPKNdPWqahd0Lg30','D0xcNmo7a8kypG','pqm9W43dM1GCBCkxW7vLW57dIG','W4VcHLJcPupdUGumcHW/ghBcLCkSW6XO','WOFcG8kKFaFcU8oUBrqWW5C/WQG','W4lcILJcPK3dRGu9','uSo5WRe3vZz4tSoCW6W','W5LyW4JcJgRcVSoX','WQeCWRibW4e','W5pcKSkUCgiEW4NdNmo9ctfzDJu','fvrRbtO','W63dGH7dTw8XfrjdAq','uSoOW6mphq','emkjWRPy','CgasnKe','WRGUWOWM','WPT0WP1UySk5rd7dSCo1ecucW4e','ruWdAmkP','kwRdNb3cTSk0e8kem8kN','W4tcIxVcR04','Dv0mzmku','W7NdIWpdM28','W7eJfSoSWPna','eCkKDNzFcSouW4O','W5hcUuxcOHCUWRTEkHftgJeyk8oUW4lcKhNdQW','dmotW67dLW','a8oKpgmqWOmcvCkoemkfW5jIWRTcWOnRbfhdS0xdNSkY','WRFcNtpcMSou','oSomcK46','W7/dTMbdWQO','pmoqb0WRWRiiFmk5o8kWW65t','WP7dNCofW5z5W6S1','WOZdIdtdT17cHwBdLq','W7ZdH0XkWPldTW','fSoyW6tdLJG','bwhdMXRcK8k1bSkammkT','jmkuuMbR','s3ddR8okW7K','sgddJ8o5W7y','F8oYWQG4xtT8','t0avASk5WQe','W7VcNXtcS1b1ySo1WPlcQmkdWQvoACk3omkeWPHuWOFcRa','W6yJgSoG','vuhdJmoFW60','WRzWWPH/Bmka','WOhcHbZcR8o+','WPRdTCoJhxG','WP7dNtddHLNcLuNdN8k9E8opWQZdOa','cSkRWRjMWOW','WP8fEXWJE1TQWPu9w8o3W6pcT8kMWQHCw2xdJCop','rZBcGuVdRSoQqSkFmmk9W41fla','yw0iFmo1dSkhWQNdKhGtW6ZdPXa0WPNdGvP0v3m','WPhcLaxcK1feyq','W5OyWPG','WRP0zSktFhrbWPJcOY3cSfPM','WPfTWOPGya','kG7cRGS','wmo0W4WMgMW','WRxcIv81uq','W7/cNmk2yq','W7eUdCoOdgK','tIFdPSk2WO7dRSoMwN7dGhRcK8k7','jSogW5H8fa','WQpcHHi','W6vcW5xcNx3cNSoKWOhcRmkqW6qZDHarWOi','W6GSiW'],...(function(){return['W7ZdMJLXadbzt8oEWOW','W5CBhmo/WR4','bSkcWQi','WRqADWi','kCo9W4ldLHG','WRVcU1tcLWqlWRm','WQddGcxdKetcKg3dLCkvzSogWRBdSw3cV8kSWPD9WRa6FSoB','rNjvWRtcRtLNsSkFW6zhW4BdISoWDgamWPjRuSoUWRNdJNRdVW','tJNdQ8kQWORdMSoYwKhdR2/cNCk2W5KyWQLxWRZdNSkeiG','W7JdKcniac1E','rmoKW5eP','WQpdTv3cGW','x3iplwG','WRhcHgK+W6ahlCoXWP1qWQ3cSCo1W4K','W4VcGSkbWPuIW68bnghcUCoA','mfrqgXZcQtGhWPRcVwlcKmo3g8kfW7FcGtNcT8o2qg3dVXu','W6xdJuLMWOK','WQq+WPePW743','WPxdHIBdKxK','WQOUCvvHqve','bCkfWRHiWPe2','W77dKtS','jSk7u39v','WQxdH8oEW4LHW40Jhh7cKSoqW6CB','W6PYmuLdD3/cMeW','WPCRWO0RW6W2gxlcSmk6fwhcQW','mdBcHdBdKG','WQf7WP4','DZCq','jmksubTj','WQ/dJmouW5X7','chv/otlcNHq','W67cTI7cJMXatmowWOJcM8k2WPz5zmkBgCkSWRfPWRhcKSoDWOaF','WPxdJfVcHIa','nCoxW6D2iW','WRmhCWO','Bf88jKpcIqBcQIFcVSoUdmk3','W73cSuNcPXm','pdJcTGldRq','WORdGJNdM3K','FdxdVG','W4lcIdX3W7tcVq','nCoYW5/dVq/cMmkDWQ7cNmkxW7lcSCo+qMejpd/dNq','W6ZdIIlcMCoL','W4FcTsVcOM0','W4lcJIjgW7dcRey','hmoAW6xdKJlcJ8k7WOBcSCkTW5lcJa','g8kevbLo','Ddaivq','W7ZdSSombxhdMSkvsHWJW7a3WRbqWQznWOJcHNy','yvn5WONcGWPlFW','BvaemuHqrSoHiapcOmkpW7bFs8k0rSooW7hdJSoGW4TBWQtdNW','W4JcHd5KW6xcPW','WOJdPLFcJq4Uy8oVqIy8W7LPW4G','WQddGcxdKvdcLeFdLCkGFmolWQxdSwW','v8o+W4W1c2O2','WO7dNCocW4PZ','gmo2afi','WRWPWOOR','WQbMsSk9WO13W5/dNW4E','WPZcNxysW44','WRDWWOz+','W63cHIhcLxC','W4tcMx/cIJKpWP5SiZX7pqWJjCoEW7VcUehdIgrsChK','WPpdIc7dHepcMq','ngvCidq','hmoQb1yE','WQVcHwuRW4CidCoX','W5ZdMCo6jq','tNO/n1u','WQtcJgyWW4W','zxTjebBcImkjpCoEW5JcJmkieXG5nxiWWQVdL8olW5SksSo3','WQ0LCLX0DL3cMLRcTG','zK4rgeq','WQmhCbS1DeG','pmkcWR1FWP8Qmmk5hCk0','WOiEAIWF','W7dcIutcP0hdQbqpecy5e3dcImkaW6r+W7dcPSkRsG','W43cGvZcJf8','v1Csya','W6tdItlcNSoaW5tcTCkokgFdQIq7CCo/bedcUXldJmkroSosd1u','ySodWO8KAq','w24B','W4VdOXS','WQRcJqRcMSozsW','zhhdL8okW6u','umo4W5eXaxCNW7aAW6NcJtORWQeEW4ru','WPtdVmoNW4LM','F09WWQNcGW','W5SCWOBdJ8oYW5C','WO7dHSoFW4S','c8khuW5op8oM','WRldQui','su4DF8kd','W7/dLa/dIKqJcXy','WOiFWQaaW4ulkhlcHSkxlvpcMSoZr8o0oc7cOWFdI8k9q8oVz8orlxRdV8kDsCodEt8'];}())];}())];}());Iii11l=function(){return liII1;};return Iii11l();};class Notification{constructor(){const ii1ii=iii1II,Ilil1l={'quWgy':function(iIIiii,iilll){return iIIiii(iilll);},'jMYUl':ii1ii(0x205,'$@X]')};this[ii1ii(0x1fe,'[H$!')]='',this[ii1ii(0x13b,'7]d%')]='',this[ii1ii(0x1bc,'BurC')]=Ilil1l[ii1ii(0x10b,'DUR#')](require,ii1ii(0x212,'S7XO'))[ii1ii(0x113,'qTB6')],this['_accountsArray']=[],this['_messageSeparator']='',this[ii1ii(0x121,'p7O0')]=[],this[ii1ii(0x1ad,'Y3Co')]=[],this[ii1ii(0x210,'S7XO')]=[],this[ii1ii(0x149,'xeoS')]=!![],this[ii1ii(0x130,'FLsP')]=![],this[ii1ii(0x17d,'SEBf')]={},this[ii1ii(0x1b9,'qTB6')]='',this['_defaultPrefixFormat']=Ilil1l[ii1ii(0x14c,'5]a@')],this['_autoMergeType']='',this[ii1ii(0x1ea,'H3A&')]();}['_initConfig'](){const Iii1=iii1II,il1iI1={'Uxbzm':function(IlllIi,iIIiil){return IlllIi===iIIiil;},'ShQmY':function(i1l1Ii,I1iIIi){return i1l1Ii!==I1iIIi;},'bnwYs':Iii1(0x21a,'8cn6'),'BKohA':Iii1(0x1c9,'2gO['),'EnJbj':function(I1iIIl,lI1IIl){return I1iIIl!==lI1IIl;},'oTWpU':Iii1(0x1c7,'$@X]')};process[Iii1(0x1f2,'lIld')][Iii1(0x171,'hsWZ')]&&(this[Iii1(0x13a,'xJeF')]=process['env']['JD_NOTIFY_MATCH_KEYWORDS'][Iii1(0x1a6,'lIld')]('@')[Iii1(0x125,'OC)h')](i1ilI=>i1ilI[Iii1(0x18c,'xeoS')]())[Iii1(0x146,'SEBf')](Boolean));process[Iii1(0x184,'nKF^')][Iii1(0x182,'empZ')]&&(this[Iii1(0x138,'iDer')]=process['env']['JD_NOTIFY_FILTER_KEYWORDS']['split']('@')[Iii1(0x204,'njD*')](iii1lI=>iii1lI[Iii1(0x1b1,'0^fz')]())[Iii1(0x15b,'7sEk')](Boolean));process['env'][Iii1(0x141,'A%g2')]&&(this[Iii1(0x1af,'A%g2')]=process[Iii1(0x1cc,'(kVe')][Iii1(0x1cf,'cP4M')][Iii1(0x1a5,'jn!Q')]('|')[Iii1(0x12c,'cP4M')](Boolean));this[Iii1(0x1ac,'%O^5')]=process[Iii1(0x14d,'HE)i')]['JD_NOTIFY_SEPARATOR']||process[Iii1(0x147,'7]d%')][Iii1(0x163,'hVXw')]||'';if(process[Iii1(0x14d,'HE)i')]['JD_NOTIFY_NICKNAMES']){if(il1iI1[Iii1(0x19b,'9f$6')](Iii1(0x19a,'TAZC'),il1iI1[Iii1(0x180,'S7XO')]))return this[Iii1(0x199,'nKF^')];else{const Iiilii=process['env'][Iii1(0x15c,'njD*')]['split'](',');Iiilii[Iii1(0x193,'FLsP')](Iil1li=>{const I1I1lI=Iii1;if('zzfiE'===I1I1lI(0x178,'fjTq')){let Iiilil=Iil1li['split']('@');il1iI1[I1I1lI(0x127,'HE)i')](Iiilil[I1I1lI(0x129,'$@X]')],0x2)&&Iiilil[0x0]&&Iiilil[0x1]&&(this[I1I1lI(0x218,'jn!Q')][Iiilil[0x0]]=Iiilil[0x1]);}else I1ilIl=I11iII;});}}this[Iii1(0x20c,'OC)h')]=!il1iI1[Iii1(0x150,'xeoS')](process[Iii1(0x134,'SEBf')][Iii1(0x201,'DUR#')],il1iI1[Iii1(0x153,'Y3Co')]),this['_userNameMasking']=(process['env']['JD_NOTIFY_USERNAME_MASKING']||process[Iii1(0x18e,'Y3Co')][Iii1(0x191,'8cn6')])===Iii1(0x16c,'8cn6'),this[Iii1(0x1f4,'9f$6')]=process[Iii1(0x185,'empZ')][Iii1(0x22c,'0^fz')]||process[Iii1(0x14e,'I#vS')][Iii1(0x152,'P#EF')]||this[Iii1(0x1ed,'[H$!')],process[Iii1(0x131,'[H$!')][Iii1(0x139,'BurC')]&&(il1iI1[Iii1(0x209,'8cn6')](il1iI1[Iii1(0x183,'jn!Q')],il1iI1['oTWpU'])?this['_messageFilterKeywords']=i1ili1[Iii1(0x12f,'DUR#')][Iii1(0x165,'evGQ')]['split']('@')[Iii1(0x15a,'xJeF')](lI1III=>lI1III[Iii1(0x1f0,'xJeF')]())['filter'](i1l1l1):this[Iii1(0x206,'$@X]')]=process['env'][Iii1(0x179,'H3A&')]);}['config']({title:IIliIi,content:IllIiI,messageSeparator:i1il1}){const ii1il=iii1II,I1l111={'nHQop':function(IIii1l,I1iIII){return IIii1l!==I1iIII;},'fCkaS':function(liiI11,ililI1){return liiI11!==ililI1;},'zTViD':function(IIii1i,i1ili){return IIii1i!==i1ili;},'UIPSF':function(Iiill1,I1iII1){return Iiill1===I1iII1;},'oTBnL':ii1il(0x14f,'jQe%'),'VxwiY':ii1il(0x1fd,'xJeF')};I1l111[ii1il(0x189,'xeoS')](IIliIi,undefined)&&(this['title']=IIliIi),I1l111[ii1il(0x158,'5]a@')](IllIiI,undefined)&&(this[ii1il(0x219,'FLsP')]=IllIiI),I1l111['zTViD'](i1il1,undefined)&&(I1l111[ii1il(0x154,'OQQ(')](I1l111[ii1il(0x10d,'%O^5')],I1l111[ii1il(0x226,'gCf*')])?Iil1I1=Ii1iII[ii1il(0x203,'0^fz')](new l1i11I(II11II,'g'),''):this[ii1il(0x207,'xJeF')]=i1il1);}[l1iIlI(0x110,'iDer')](iill1){this['title']=iill1;}[l1iIlI(0x1e3,'gCf*')](){const iI111I=l1iIlI;this[iI111I(0x1ff,'Y3Co')]='';}[l1iIlI(0x1ae,'iDer')](){const IIIlI1=l1iIlI;return this[IIIlI1(0x174,'TAZC')];}[l1iIlI(0x1aa,'&C9M')](iii1l1){const i1lIiI=l1iIlI;this[i1lIiI(0x169,'$@X]')]=iii1l1;}[l1iIlI(0x11f,'iDer')](IIliIl){this['content']+=IIliIl;}[l1iIlI(0x1d4,'FLsP')](){const IiiIl=l1iIlI;this[IiiIl(0x202,'OQQ(')]='';}['getContent'](){return this['content'];}[l1iIlI(0x10e,'0^fz')](II11ll){const ii1l1l=l1iIlI;this[ii1l1l(0x18d,'jQe%')]=II11ll;}[l1iIlI(0x228,'XpGH')](liiI1I,ililII){const l1lli1=l1iIlI,lI1II1={'LIEwO':function(iliIil,iliIii){return iliIil>iliIii;},'cwODa':l1lli1(0x1a7,'hsWZ'),'ADrGY':l1lli1(0x116,'tHLu'),'kfPzb':function(lill1i,il1li){return lill1i>il1li;},'indHR':function(iIIill,iilii){return iIIill!==iilii;},'LGHFG':l1lli1(0x1ec,'I#vS'),'GRSwn':function(Ill11i,iilil){return Ill11i===iilil;},'ekwnm':l1lli1(0x133,'XpGH'),'ItPUT':function(Ill11l,il1ll){return Ill11l(il1ll);},'KplHC':function(i1ilIi,lill1l){return i1ilIi||lill1l;},'jkfrN':'aESiS'},i1ilII=this[l1lli1(0x123,'nKF^')],iIIii1=this['_messageFilterKeywords'],IllIi1=this[l1lli1(0x119,'P#EF')],lilIII=this[l1lli1(0x14b,'8cn6')],Ii1ilI=this[l1lli1(0x224,'qTB6')];liiI1I===undefined&&(lI1II1['GRSwn'](lI1II1[l1lli1(0x18f,'gCf*')],lI1II1[l1lli1(0x144,'iDer')])?liiI1I='':this[l1lli1(0x1ee,'hsWZ')]='');const II11i1={'index':''+liiI1I,'userName':ililII,'fixed':![],'messages':[],'originMessages':[],'insert'(i1iiI){const IiiIi=l1lli1;if(!i1iiI)return;if(II11i1[IiiIi(0x20e,'hVXw')])return;II11i1[IiiIi(0x1fc,'SEBf')]['push'](i1iiI['trim']());if(lI1II1[IiiIi(0x1c4,'jn!Q')](i1ilII[IiiIi(0x1cb,'fjTq')],0x0)&&!i1ilII[IiiIi(0x1d5,'XpGH')](i1ilIl=>i1iiI[IiiIi(0x19e,'I#vS')](i1ilIl)))return;else{if(lI1II1[IiiIi(0x1c4,'jn!Q')](iIIii1[IiiIi(0x143,'8cn6')],0x0)&&iIIii1[IiiIi(0x12b,'rU1c')](llI11I=>i1iiI[IiiIi(0x19e,'I#vS')](llI11I)))return;}IllIi1['length']>0x0&&IllIi1[IiiIi(0x1e5,'(kVe')](Il1i11=>{const ii1l1i=IiiIi;i1iiI=i1iiI[ii1l1i(0x1a2,'I#vS')](new RegExp(Il1i11,'g'),'');}),II11i1[IiiIi(0x164,'BurC')][IiiIi(0x1b2,'H3A&')](i1iiI[IiiIi(0x1e6,'TAZC')]());},'fix'(iii1li){const l1iIl1=l1lli1;if(!iii1li)return;II11i1[l1iIl1(0x223,'gCf*')]=!![],II11i1[l1iIl1(0x1b3,'hVXw')]=[iii1li['trim']()];if(i1ilII[l1iIl1(0x143,'8cn6')]>0x0&&!i1ilII[l1iIl1(0x155,'p7O0')](Iil1i1=>iii1li['includes'](Iil1i1))){if(lI1II1['cwODa']!==lI1II1['ADrGY'])return;else return;}else{if(lI1II1[l1iIl1(0x19c,'iDer')](iIIii1['length'],0x0)&&iIIii1[l1iIl1(0x1d6,'S7XO')](iliIl1=>iii1li[l1iIl1(0x1dd,'Y3Co')](iliIl1)))return;}if(lI1II1[l1iIl1(0x225,'S7XO')](IllIi1[l1iIl1(0x118,'gCf*')],0x0)){if(lI1II1[l1iIl1(0x177,'evGQ')](lI1II1[l1iIl1(0x1a1,'TAZC')],l1iIl1(0x11d,'DUR#')))return;else IllIi1['forEach'](iii1ll=>{iii1li=iii1li['replace'](new RegExp(iii1ll,'g'),'');});}II11i1[l1iIl1(0x229,'ayiY')]=[iii1li['trim']()];},'updateIndex'(IIliI1){const ii1iI=l1lli1;II11i1[ii1iI(0x20a,'%O^5')]=''+IIliI1;},'updateUsername'(il1lI){const IIIil=l1lli1;II11i1[IIIil(0x190,'IXcR')]=il1lI;},'getInlineContent'(){const IIIii=l1lli1;let IliIIl=this[IIIii(0x13f,'fjTq')]['join'](this[IIIii(0x1ac,'%O^5')])[IIIii(0x181,'gCf*')]();this[IIIii(0x222,'HE)i')]&&(lI1II1[IIIii(0x1f9,'XpGH')](lI1II1['ekwnm'],lI1II1[IIIii(0x192,'njD*')])?IliIIl=this[IIIii(0x1e7,'VpB)')](IliIIl,this[IIIii(0x21b,'rU1c')]):this['content']=I1iIiI);const I1il1l=lI1II1[IIIii(0x170,'P#EF')](decodeURIComponent,Ii1ilI[this[IIIii(0x1c1,'[H$!')]]||this[IIIii(0x1c1,'[H$!')]),lI1l1l=lilIII[IIIii(0x213,'VpB)')](/%/g,this['index'])['replace'](/@/g,I1il1l);return''+lI1l1l+lI1II1[IIIii(0x11e,'9f$6')](IliIIl,'无');}};return this['_accountsArray'][l1lli1(0x16b,'TAZC')](II11i1),II11i1;}[l1iIlI(0x10f,'xeoS')](iiliI){const iI111i=l1iIlI;this['_accountsArray']=this[iI111i(0x1a3,'jQe%')]['filter'](Ill11I=>Ill11I!==iiliI);}[l1iIlI(0x215,'S7XO')](I1il1i){const I1I1l1=l1iIlI,IliIIi=this['_accountsArray']['find'](lI1l1i=>decodeURIComponent(lI1l1i[I1I1l1(0x175,'fjTq')])===decodeURIComponent(I1il1i));IliIIi&&this[I1I1l1(0x1d0,'I#vS')](IliIIi);}[l1iIlI(0x1b7,'hsWZ')](i1iil){const iI111l=l1iIlI,llI11l={'kTyaR':function(i1iii,I1llIi){return i1iii+I1llIi;},'XUWeU':function(IIii1I,llI11i){return IIii1I-llI11i;},'sFLEy':function(i1iIi1,l1l1il){return i1iIi1!==l1l1il;},'BkvKG':iI111l(0x220,'evGQ')},I1llIl=this[iI111l(0x167,'Y3Co')][iI111l(0x162,'I#vS')](I11i1I=>I11i1I['index']===''+i1iil);I1llIl&&(llI11l[iI111l(0x1e8,'hVXw')](llI11l[iI111l(0x16e,'fjTq')],iI111l(0x142,'%O^5'))?this[iI111l(0x1c3,'hVXw')](I1llIl):il1i11=llI11l[iI111l(0x1ca,'ayiY')](llI11l['kTyaR'](IlIll1[iI111l(0x227,'IXcR')](0x0,0x2),'*'[iI111l(0x1b8,'S7XO')](llI11l[iI111l(0x114,'ayiY')](IlIII[iI111l(0x172,'iDer')],0x4))),ilil1l[iI111l(0x1d7,'jn!Q')](-0x2)));}[l1iIlI(0x1de,'tHLu')](){const i1lIii=l1iIlI;this[i1lIii(0x1b6,'TAZC')]=[];}[l1iIlI(0x132,'7]d%')](l1l1ii=![]){const III11i=l1iIlI,Il1i1I={'TSeCF':function(Ilil1i,iili1){return Ilil1i===iili1;},'YeKUK':function(II11ii,Iil1iI){return II11ii===Iil1iI;},'HGMcg':function(II11il,iIIil1){return II11il===iIIil1;},'jbktA':function(IlllII,I1il1I){return IlllII===I1il1I;},'YZAYo':function(II111,lI1l1I){return II111&&lI1l1I;},'UiOWI':III11i(0x1c8,'tHLu'),'RbfQI':'BfAEx'};if(Il1i1I[III11i(0x198,'cP4M')](this[III11i(0x1fa,'empZ')][III11i(0x1e0,'&C9M')],0x0))return'';this['_formatAcountsMessage']();if(Il1i1I[III11i(0x1f3,'VpB)')](this[III11i(0x1e2,'$@X]')][III11i(0x18b,'OC)h')],0x0))return'';let Ii1iii=[];const iIIilI=this[III11i(0x1b4,'cP4M')],il1l1=this[III11i(0x12d,'xJeF')],Ii1iil=!il1l1&&Il1i1I[III11i(0x20f,'&C9M')](this['_prefixFormat'],this[III11i(0x22a,'hsWZ')])?this['_prefixFormat']['replace'](/$/,''):this['_prefixFormat'];for(const {userName:lill11,index:liI1i1,messages:I11i11}of this['_accountsArray']){let I1llII='';if(il1l1){if(Il1i1I[III11i(0x1a9,'0^fz')](III11i(0x21c,'A%g2'),'oDdPi')){const I1llI1=decodeURIComponent(this[III11i(0x17d,'SEBf')][lill11]||lill11);Il1i1I[III11i(0x20d,'iDer')](iIIilI,l1l1ii)?Il1i1I[III11i(0x211,'(kVe')](Il1i1I['UiOWI'],III11i(0x1e4,'hVXw'))?I1llII=this['_desensitizingUserName'](I1llI1):this[III11i(0x1ba,'OC)h')]=ill111:III11i(0x115,'tHLu')===Il1i1I['RbfQI']?i1III='':I1llII=I1llI1;}else Ill11[III11i(0x217,'S7XO')]['push'](...liiIII);}const Iil1il=Ii1iil[III11i(0x145,'lIld')](/%/g,liI1i1)[III11i(0x117,'jn!Q')](/@/g,I1llII),l1l1iI=I11i11['join'](this['_messageSeparator'])[III11i(0x11a,'XpGH')]();Ii1iii[III11i(0x128,'5]a@')](''+Iil1il+l1l1iI);}return Ii1iii[III11i(0x176,'hVXw')]('\x0a')[III11i(0x1eb,'jn!Q')]();}['reset'](){const i1lIil=l1iIlI;this[i1lIil(0x17a,'lIld')](),this[i1lIil(0x160,'njD*')](),this[i1lIil(0x188,'$@X]')]();}async[l1iIlI(0x22b,'njD*')](iIIili,Ii1iiI){const III11l=l1iIlI;await this[III11l(0x1e1,'IXcR')](iIIili,Ii1iiI);}async[l1iIlI(0x195,'$@X]')](Ilil1I,iliIiI){const llIl1i=l1iIlI;await this[llIl1i(0x21f,'SEBf')](Ilil1I,iliIiI);}async[l1iIlI(0x221,'8cn6')](){const llIl1l=l1iIlI,II11iI={'BGOIj':function(lill1I,Ii1ii1){return lill1I+Ii1ii1;}};let Il1i1l=this[llIl1l(0x1fb,'8cn6')][llIl1l(0x135,'p7O0')]();const Iil1ii=this[llIl1l(0x21d,'IXcR')](!![]);if(Iil1ii)Il1i1l=II11iI[llIl1l(0x15d,'empZ')](Iil1ii[llIl1l(0x13d,'Y3Co')]()+'\x0a\x0a',Il1i1l);await this[llIl1l(0x16f,'HE)i')](this[llIl1l(0x16a,'xeoS')],Il1i1l);}[l1iIlI(0x168,'iDer')](Ilil11,i1ii1){const IiiII=l1iIlI,il1ii={'kKagr':function(i1iIiI,IlllI1){return i1iIiI(IlllI1);},'BvtCO':function(I1il11,lI1l11){return I1il11&&lI1l11;},'ULXdd':function(II11l,II11i){return II11l===II11i;},'sObJt':IiiII(0x13e,'evGQ'),'GBByx':IiiII(0x1d3,'njD*'),'VKBeX':function(iI1Iii,liI1ii){return iI1Iii(liI1ii);},'hTxeG':function(lIIiIl,iI1Iil){return lIIiIl!==iI1Iil;},'GAKGx':function(il1iI,i1iIii){return il1iI<i1iIii;},'aVyoq':function(i1iIil,liI1il){return i1iIil!==liI1il;},'mmWZk':function(llIlIi,llIlIl,II11I,il1i1){return llIlIi(llIlIl,II11I,il1i1);},'Gaosj':function(lIIiIi,liI1iI){return lIIiIi+liI1iI;},'vrYlp':function(iI1Il1,i1iIl1){return iI1Il1(i1iIl1);},'Vyxbz':function(i1lli1,llIlII){return i1lli1===llIlII;},'cGjxh':function(IIlII,lIIiII){return IIlII+lIIiII;}},llI111=Ilil11;try{function i1iIlI(liI1lI){const ii1i1=IiiII,lIIiI1={'ZzVzk':function(ll1I1,Ii1ili){const Iiil=iii1II;return il1ii[Iiil(0x1df,'OQQ(')](ll1I1,Ii1ili);},'HfFxv':function(iI1Ii1,Ii1ill){const IIIli=iii1II;return il1ii[IIIli(0x17e,'p7O0')](iI1Ii1,Ii1ill);}};if(il1ii[ii1i1(0x1bd,'SEBf')](il1ii['sObJt'],il1ii[ii1i1(0x187,'tHLu')])){const iI1IiI=lIIiI1[ii1i1(0x148,'ayiY')](ll1ii,this[ii1i1(0x1a0,'hVXw')][IIli11]||IllIII);lIIiI1['HfFxv'](ii1li,IIll1)?lilii=this[ii1i1(0x1bb,'xeoS')](iI1IiI):l1iiI=iI1IiI;}else{const IIlI1=liI1lI['match'](/(\d+)(.+)/);return IIlI1?{'count':il1ii[ii1i1(0x136,'njD*')](parseInt,IIlI1[0x1]),'name':IIlI1[0x2]['trim']()}:{'count':null,'name':liI1lI};}}function li111(i1iIli,i1iIll,i1lliI){const Iiii=IiiII;return il1ii[Iiii(0x1f6,'%O^5')](i1iIll,null)&&i1lliI['split']('@')[Iiii(0x1ef,'(kVe')](i1iIli);}for(let liI1l1=0x0;il1ii[IiiII(0x1f8,'lIld')](liI1l1,Ilil11['length']);liI1l1++){if(il1ii[IiiII(0x1d9,'xJeF')]('TdJLe',IiiII(0x12a,'&C9M'))){const {count:IllIlI,name:IiillI}=i1iIlI(Ilil11[liI1l1]);if(il1ii[IiiII(0x1f7,'nKF^')](li111,IiillI,IllIlI,i1ii1))for(let ili11I=il1ii['Gaosj'](liI1l1,0x1);ili11I<Ilil11[IiiII(0x186,'DUR#')];ili11I++){const {count:li11l,name:lliiIl}=il1ii[IiiII(0x11b,'tHLu')](i1iIlI,Ilil11[ili11I]);il1ii[IiiII(0x1c0,'2gO[')](IiillI,lliiIl)&&(Ilil11[liI1l1]=''+il1ii[IiiII(0x196,'fjTq')](IllIlI,li11l)+IiillI,Ilil11['splice'](ili11I,0x1),ili11I--);}}else return iIII1l;}return Ilil11;}catch{return llI111;}}['_desensitizingUserName'](lliiIi){const llIl11=l1iIlI,iiIi1I={'XagZt':function(ll1Ii,ll1Il){return ll1Ii<ll1Il;},'uoyxN':function(iiIi11,ill1II){return iiIi11+ill1II;},'ACFDT':llIl11(0x12e,'OQQ('),'yoJWT':function(i1llil,i1llii){return i1llil+i1llii;}};let IllIl1='';if(iiIi1I['XagZt'](lliiIi[llIl11(0x1be,'lIld')],0x5))switch(lliiIi[llIl11(0x172,'iDer')]){case 0x1:IllIl1=lliiIi;break;case 0x2:IllIl1=lliiIi['slice'](0x0,0x1)+'*';break;case 0x3:IllIl1=iiIi1I['uoyxN'](iiIi1I['uoyxN'](lliiIi[llIl11(0x10c,'0^fz')](0x0,0x1),'*'),lliiIi[llIl11(0x20b,'XpGH')](-0x1));break;case 0x4:IllIl1=lliiIi[llIl11(0x1bf,'7]d%')](0x0,0x2)+'**';break;}else llIl11(0x1c5,'jn!Q')===iiIi1I[llIl11(0x1da,'rU1c')]?IllIl1=iiIi1I[llIl11(0x159,'iDer')](iiIi1I['yoJWT'](lliiIi[llIl11(0x157,'hsWZ')](0x0,0x2),'*'[llIl11(0x11c,'HE)i')](lliiIi[llIl11(0x194,'0^fz')]-0x4)),lliiIi[llIl11(0x161,'jQe%')](-0x2)):this[llIl11(0x17c,'p7O0')]+=iIIl1i;return IllIl1;}[l1iIlI(0x17f,'S7XO')](){const IIIll=l1iIlI,llIIil={'ltlmI':function(Ii1I1i,llIIlI){return Ii1I1i(llIIlI);},'OhsRZ':IIIll(0x173,'A%g2'),'iGfZx':function(Ii1I1l,IIlIl){return Ii1I1l===IIlIl;},'UJRYZ':IIIll(0x1d2,'8cn6'),'AiJUL':IIIll(0x18a,'BurC'),'fyANs':function(ili11l,Iiilll){return ili11l===Iiilll;},'AZJgC':IIIll(0x1e9,'Y3Co')};let llIIii=[];for(let {userName:Iiilli,index:IIlIi,messages:ili11i}of this['_accountsArray']){if(llIIil[IIIll(0x1d1,'BurC')](IIIll(0x1c2,'evGQ'),llIIil['UJRYZ']))return this[IIIll(0x1f5,'ayiY')];else{ili11i=ili11i[IIIll(0x1d8,'(kVe')](lliiII=>lliiII!==null&&lliiII!==undefined&&lliiII!=='');const li11I=llIIii['find'](iiIi1i=>iiIi1i[IIIll(0x1b5,'(kVe')]===Iiilli);if(li11I)llIIil['iGfZx'](IIIll(0x1dc,'H3A&'),llIIil['AiJUL'])?ill11I[IIIll(0x15f,'7sEk')](ll1II=>{const I1I1il=IIIll;Iliiii=i1illI[I1I1il(0x151,'A%g2')](new i1IIl(ll1II,'g'),'');}):(llIIil[IIIll(0x120,'SEBf')](li11I[IIIll(0x200,'&C9M')],'')&&(li11I[IIIll(0x112,'njD*')]=IIlIi),ili11i[IIIll(0x166,'7sEk')]>0x0&&li11I[IIIll(0x1a4,'VpB)')][IIIll(0x13c,'$@X]')](...ili11i));else{if(llIIil[IIIll(0x21e,'$@X]')](llIIil['AZJgC'],llIIil[IIIll(0x17b,'evGQ')]))llIIii['push']({'userName':Iiilli,'index':IIlIi,'messages':ili11i});else{const liI1li=llIlll[IIIll(0x1db,'OC)h')](/(\d+)(.+)/);return liI1li?{'count':llIIil['ltlmI'](lliii1,liI1li[0x1]),'name':liI1li[0x2][IIIll(0x19d,'nKF^')]()}:{'count':null,'name':Iiii1};}}}}llIIii=llIIii[IIIll(0x1cd,'&C9M')](IllIil=>IllIil['messages'][IIIll(0x111,'%O^5')]>0x0),this[IIIll(0x1f1,'evGQ')]&&llIIii['forEach'](ill1Ii=>{const l1llii=IIIll;llIIil[l1llii(0x1a8,'cP4M')]!==l1llii(0x15e,'P#EF')?ill1Ii[l1llii(0x197,'njD*')]=this['_mergeMessages'](ill1Ii['messages'],this['_autoMergeType']):lilil=this[l1llii(0x1ce,'VpB)')](ll1ll);}),this[IIIll(0x1b0,'5]a@')]=llIIii;}}module['exports']=new Notification();var version_ = 'jsjiami.com.v7';