diff --git a/Plugins/BDFDB.js b/Plugins/BDFDB.js
index 345df9b447..5a2e99fac5 100644
--- a/Plugins/BDFDB.js
+++ b/Plugins/BDFDB.js
@@ -1 +1 @@
-if(global['BDFDB']&&typeof BDFDB['removeEventListener']=='function')BDFDB['removeEventListener'](BDFDB);if(global['BDFDB']&&BDFDB['WebModules']&&typeof BDFDB['WebModules']['unpatchall']=='function')BDFDB['WebModules']['unpatchall'](BDFDB);if(global['BDFDB']&&typeof BDFDB['killObservers']=='function')BDFDB['killObservers'](BDFDB);var BDFDB={'myPlugins':BDFDB&&BDFDB['myPlugins']?BDFDB['myPlugins']:{},'BDv2Api':BDFDB&&BDFDB['BDv2Api']?BDFDB['BDv2Api']:undefined,'creationTime':performance['now'](),'cachedData':{},'pressedKeys':[],'mousePosition':{'pageX':0x0,'pageY':0x0},'name':'$BDFDB'};(()=>{var c=Math['round'](Math['random']()*0x2386f26fc10000);BDFDB['id']=c;console['log']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','loading\x20library.');BDFDB['isLibraryOutdated']=function(){return performance['now']()-BDFDB['creationTime']>0x927c0;};BDFDB['loadMessage']=function(d){BDFDB['clearStarttimout'](d);d['name']=d['name']||(typeof d['getName']=='function'?d['getName']():null);d['version']=d['version']||(typeof d['getVersion']=='function'?d['getVersion']():null);d['author']=d['author']||(typeof d['getAuthor']=='function'?d['getAuthor']():null);d['description']=d['description']||(typeof d['getDescription']=='function'?d['getDescription']():null);var e=BDFDB['getLibraryStrings']()['toast_plugin_started']['replace']('{{oldversion}}','v'+d['version']);console['log']('%c['+d['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',e);if(!(window['settingsCookie']['fork-ps-2']&&window['settingsCookie']['fork-ps-2']===!![]))BDFDB['showToast'](d['name']+'\x20'+e,{'nopointer':!![],'selector':'plugin-started-toast'});var f=typeof d['getRawUrl']=='function'&&typeof d['getRawUrl']()=='string'?d['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+d['name']+'/'+d['name']+'.plugin.js';BDFDB['checkUpdate'](d['name'],f);if(typeof d['initConstructor']==='function'){try{d['initConstructor']();}catch(g){console['error']('%c['+d['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','Fatal\x20Error:\x20Could\x20not\x20initiate\x20constructor!\x20'+g);}}if(typeof d['css']==='string')BDFDB['appendLocalStyle'](d['name'],d['css']);BDFDB['WebModules']['patchModules'](d);BDFDB['addOnSwitchListener'](d);BDFDB['addSettingsButtonListener'](d);BDFDB['addContextListener'](d);BDFDB['translatePlugin'](d);BDFDB['checkChangeLog'](d);if(!window['PluginUpdates']||typeof window['PluginUpdates']!=='object')window['PluginUpdates']={'plugins':{}};window['PluginUpdates']['plugins'][f]={'name':d['name'],'raw':f,'version':d['version']};if(typeof window['PluginUpdates']['interval']==='undefined')window['PluginUpdates']['interval']=setInterval(()=>{BDFDB['checkAllUpdates']();},0x3e8*0x3c*0x3c*0x2);d['started']=!![];for(let h in BDFDB['myPlugins'])if(!BDFDB['myPlugins'][h]['started']&&typeof BDFDB['myPlugins'][h]['initialize']=='function')BDFDB['myPlugins'][h]['initialize']();};BDFDB['unloadMessage']=function(i){BDFDB['clearStarttimout'](i);delete BDFDB['myPlugins'][i['name']];var j=BDFDB['getLibraryStrings']()['toast_plugin_stopped']['replace']('{{oldversion}}','v'+i['version']);console['log']('%c['+i['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',j);if(!(window['settingsCookie']['fork-ps-2']&&window['settingsCookie']['fork-ps-2']===!![]))BDFDB['showToast'](i['name']+'\x20'+j,{'nopointer':!![],'selector':'plugin-stopped-toast'});var k=typeof i['getRawUrl']=='function'&&typeof i['getRawUrl']()=='string'?i['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+i['name']+'/'+i['name']+'.plugin.js';if(typeof i['css']==='string')BDFDB['removeLocalStyle'](i['name']);BDFDB['WebModules']['unpatchall'](i);BDFDB['removeOnSwitchListener'](i);BDFDB['removeSettingsButtonListener'](i);BDFDB['removeEventListener'](i);BDFDB['removeEles']('.'+i['name']+'-modal,\x20.'+i['name']['toLowerCase']()+'-modal,\x20.'+i['name']+'-settingsmodal,\x20.'+i['name']['toLowerCase']()+'-settingsmodal');BDFDB['killObservers'](i);delete window['PluginUpdates']['plugins'][k];if(BDFDB['isObjectEmpty'](window['PluginUpdates']['plugins']))BDFDB['removeEles']('#bd-settingspane-container\x20.bd-updatebtn'+BDFDB['dotCN']['_repofolderbutton']);delete i['started'];};BDFDB['translatePlugin']=function(l){if(typeof l['setLabelsByLanguage']==='function'||typeof l['changeLanguageStrings']==='function'){if(document['querySelector']('html')['lang'])n();else{var m=setInterval(()=>{if(document['querySelector']('html')['lang']){clearInterval(m);n();}},0x64);}function n(){var o=BDFDB['getDiscordLanguage']();if(typeof l['setLabelsByLanguage']==='function')l['labels']=l['setLabelsByLanguage'](o['id']);if(typeof l['changeLanguageStrings']==='function')l['changeLanguageStrings']();var p=BDFDB['getLibraryStrings']()['toast_plugin_translated']['replace']('{{ownlang}}',o['ownlang']);console['log']('%c['+l['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',p);}}};BDFDB['clearStarttimout']=function(q){if(q['startTimeout']){clearTimeout(q['startTimeout']);delete q['startTimeout'];}if(q['libLoadTimeout']){clearTimeout(q['libLoadTimeout']);delete q['libLoadTimeout'];}};BDFDB['checkChangeLog']=function(r){if(!BDFDB['isObject'](r)||!r['changelog'])return;var s=BDFDB['loadAllData'](r,'changelog');if(!s['currentversion']||BDFDB['checkVersions'](r['version'],s['currentversion'])){s['currentversion']=r['version'];var t='';var u={'added':'New\x20Features','fixed':'Bug\x20Fixes','improved':'Improvements','progress':'Progress'};for(let v in r['changelog']){v=v['toLowerCase']();var w=BDFDB['disCN']['changelog'+v];if(w){t+='
'+u[v]+'
';for(let x of r['changelog'][v])t+='- '+x[0x0]+''+(x[0x1]?':\x20'+x[0x1]+'.':'')+'
';t+='
';}}if(t)BDFDB['removeEles'](BDFDB['openConfirmModal'](r,t,BDFDB['LanguageStrings']['CHANGE_LOG'])['querySelectorAll']('.btn-cancel'));BDFDB['saveAllData'](s,r,'changelog');}};BDFDB['addObserver']=function(y,z,A,B={'childList':!![]}){if(!BDFDB['isObject'](y)||!z||!A)return;if(BDFDB['isObjectEmpty'](y['observers']))y['observers']={};if(!Array['isArray'](y['observers'][A['name']]))y['observers'][A['name']]=[];if(!A['multi'])for(let C of y['observers'][A['name']])C['disconnect']();if(A['instance'])y['observers'][A['name']]['push'](A['instance']);var D=y['observers'][A['name']][y['observers'][A['name']]['length']-0x1];if(D){var E=Node['prototype']['isPrototypeOf'](z)?z:typeof z==='string'?document['querySelector'](z):null;if(E)D['observe'](E,B);}};BDFDB['killObservers']=function(F){if(!BDFDB['isObjectEmpty'](F['observers'])){for(let G in F['observers'])for(let H of F['observers'][G])H['disconnect']();delete F['observers'];}};BDFDB['addChildEventListener']=function(I,J,K,L){if(!Node['prototype']['isPrototypeOf'](I)||!J||!K||!K['trim']()||typeof L!='function')return;for(var M of J['trim']()['split']('\x20'))if(M){var N=L;if(M=='mouseenter'||M=='mouseleave')N=O=>{if(O['target']['matches'](K))L(O);};I['querySelectorAll'](K['trim']())['forEach'](P=>{P['addEventListener'](M,N,!![]);});}};BDFDB['addEventListener']=function(Q,R,S,T,U){if(!BDFDB['isObject'](Q)||!Node['prototype']['isPrototypeOf'](R)&&R!==window||!S)return;var V=typeof T=='function';var W=V?undefined:T;var X=V?T:U;if(typeof X!='function')return;BDFDB['removeEventListener'](Q,R,S,W);for(var Y of S['split']('\x20')){Y=Y['split']('.');var Z=Y['shift']()['toLowerCase']();if(!Z)return;var a0=Z;Z=Z=='mouseenter'||Z=='mouseleave'?'mouseover':Z;var a1=(Y['join']('.')||'')+Q['name'];if(!Array['isArray'](Q['listeners']))Q['listeners']=[];var a2=null;if(W){if(a0=='mouseenter'||a0=='mouseleave'){a2=a3=>{for(let a4 of a3['path'])if(typeof a4['matches']=='function'&&a4['matches'](W)&&!a4[a1+'BDFDB'+a0]){a4[a1+'BDFDB'+a0]=!![];if(a0=='mouseenter')X(BDFDB['copyEvent'](a3,a4));let a5=a6=>{if(a6['target']['contains'](a4)||a6['target']==a4||!a4['contains'](a6['target'])){if(a0=='mouseleave')X(BDFDB['copyEvent'](a3,a4));delete a4[a1+'BDFDB'+a0];document['removeEventListener']('mouseout',a5);}};document['addEventListener']('mouseout',a5);break;}};}else{a2=a7=>{for(let a8 of a7['path'])if(typeof a8['matches']=='function'&&a8['matches'](W)){X(BDFDB['copyEvent'](a7,a8));break;}};}}else a2=a9=>{X(BDFDB['copyEvent'](a9,R));};Q['listeners']['push']({'ele':R,'eventname':Z,'origeventname':a0,'namespace':a1,'selector':W,'eventcallback':a2});R['addEventListener'](Z,a2,!![]);}};BDFDB['copyEvent']=function(aa,ab){if(!aa||!aa['constructor']||!aa['type'])return aa;var ac=new aa['constructor'](aa['type'],aa);Object['defineProperty'](ac,'originalEvent',{'value':aa});Object['defineProperty'](ac,'which',{'value':aa['which']});Object['defineProperty'](ac,'keyCode',{'value':aa['keyCode']});Object['defineProperty'](ac,'path',{'value':aa['path']});Object['defineProperty'](ac,'relatedTarget',{'value':aa['relatedTarget']});Object['defineProperty'](ac,'srcElement',{'value':aa['srcElement']});Object['defineProperty'](ac,'target',{'value':aa['target']});Object['defineProperty'](ac,'toElement',{'value':aa['toElement']});if(ab)Object['defineProperty'](ac,'currentTarget',{'value':ab});return ac;};BDFDB['stopEvent']=function(ad){if(BDFDB['isObject'](ad)){if(typeof ad['preventDefault']=='function')ad['preventDefault']();if(typeof ad['stopPropagation']=='function')ad['stopPropagation']();if(typeof ad['stopImmediatePropagation']=='function')ad['stopImmediatePropagation']();if(BDFDB['isObject'](ad['originalEvent'])){if(typeof ad['originalEvent']['preventDefault']=='function')ad['originalEvent']['preventDefault']();if(typeof ad['originalEvent']['stopPropagation']=='function')ad['originalEvent']['stopPropagation']();if(typeof ad['originalEvent']['stopImmediatePropagation']=='function')ad['originalEvent']['stopImmediatePropagation']();}}};BDFDB['removeEventListener']=function(ae,af,ag='',ah){if(!BDFDB['isObject'](ae)||!Array['isArray'](ae['listeners']))return;if(Node['prototype']['isPrototypeOf'](af)||af===window){for(var ai of ag['split']('\x20')){ai=ai['split']('.');var aj=ai['shift']()['toLowerCase']();var ak=(ai['join']('.')||'')+ae['name'];for(let al of ae['listeners']){let am=[];if(al['ele']==af&&(!aj||al['origeventname']==aj)&&al['namespace']==ak&&(ah===undefined||al['selector']==ah)){af['removeEventListener'](al['eventname'],al['eventcallback'],!![]);am['push'](al);}if(am['length'])ae['listeners']=ae['listeners']['filter'](al=>{return am['indexOf'](al)<0x0;});}}}else if(!af){for(let ao of ae['listeners'])ao['ele']['removeEventListener'](ao['eventname'],ao['eventcallback'],!![]);ae['listeners']=[];}};BDFDB['checkUpdate']=function(ap,aq){if(BDFDB['isBDv2']())return;require('request')(aq,(ar,as,at)=>{if(ar)return;var au=at['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);if(!au)return;if(BDFDB['checkVersionDifference'](au[0x0],window['PluginUpdates']['plugins'][aq]['version'])>0.2){BDFDB['showToast'](ap+'\x20will\x20be\x20force\x20updated,\x20because\x20your\x20version\x20is\x20heavily\x20outdated.',{'type':'warn','nopointer':!![],'selector':'plugin-forceupdate-toast'});BDFDB['downloadPlugin'](ap,aq);}else if(BDFDB['checkVersions'](au[0x0],window['PluginUpdates']['plugins'][aq]['version']))BDFDB['showUpdateNotice'](ap,aq);else BDFDB['removeUpdateNotice'](ap);});};BDFDB['checkVersions']=function(av,aw){if(!av||!aw)return!![];av=av['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](ax=>parseInt(ax))['filter'](ay=>(ay||ay==0x0)&&!isNaN(ay));aw=aw['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](az=>parseInt(az))['filter'](aA=>(aA||aA==0x0)&&!isNaN(aA));var aB=Math['max'](av['length'],aw['length']);if(!aB)return!![];if(av['length']>aw['length']){var aC=new Array(av['length']-aw['length']);for(let aD=0x0;aDaw[aI])return!![];}return![];};BDFDB['checkVersionDifference']=function(aJ,aK){if(!aJ||!aK)return![];aJ=aJ['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aL=>parseInt(aL))['filter'](aM=>(aM||aM==0x0)&&!isNaN(aM));aK=aK['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aN=>parseInt(aN))['filter'](aO=>(aO||aO==0x0)&&!isNaN(aO));var aP=Math['max'](aJ['length'],aK['length']);if(!aP)return![];if(aJ['length']>aK['length']){var aQ=new Array(aJ['length']-aK['length']);for(let aR=0x0;aR',{'html':!![],'id':'pluginNotice','type':'info','btn':!BDFDB['isRestartNoMoreEnabled']()?'Reload':'','customicon':''});b0['style']['setProperty']('display','block','important');b0['style']['setProperty']('visibility','visible','important');b0['style']['setProperty']('opacity','1','important');b0['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',()=>{BDFDB['removeEles']('.update-clickme-tooltip');});var b1=b0['querySelector'](BDFDB['dotCN']['noticebutton']);if(b1){BDFDB['toggleEles'](b1,!![]);b1['addEventListener']('click',()=>{window['location']['reload'](![]);});b1['addEventListener']('mouseenter',()=>{if(window['PluginUpdates']['downloaded'])BDFDB['createTooltip'](window['PluginUpdates']['downloaded']['join'](',\x20'),b1,{'type':'bottom','selector':'update-notice-tooltip','style':'max-width:\x20420px'});});}}if(b0){var b2=b0['querySelector']('#outdatedPlugins');if(b2&&!b2['querySelector']('#'+aY+'-notice')){if(b2['querySelector']('span'))b2['appendChild'](BDFDB['htmlToElement'](',\x20'));var b3=BDFDB['htmlToElement'](''+aY+'');b3['addEventListener']('click',()=>{BDFDB['downloadPlugin'](aY,aZ);});b2['appendChild'](b3);if(!document['querySelector']('.update-clickme-tooltip'))BDFDB['createTooltip']('Click\x20us!',b2,{'type':'bottom','selector':'update-clickme-tooltip','delay':0x1f4});}}};BDFDB['downloadPlugin']=function(b4,b5){require('request')(b5,(b6,b7,b8)=>{if(b6)return console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','','Unable\x20to\x20get\x20update\x20for\x20'+b4);BDFDB['creationTime']=0x0;var b9=b8['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);b9=b9['toString']()['replace'](/['"]/g,'');require('fs')['writeFileSync'](require('path')['join'](BDFDB['getPluginsFolder'](),bdplugins[b4]?bdplugins[b4]['filename']:b5['split']('/')['slice'](-0x1)[0x0]),b8);BDFDB['showToast'](b4+'\x20v'+window['PluginUpdates']['plugins'][b5]['version']+'\x20has\x20been\x20replaced\x20by\x20'+b4+'\x20v'+b9+'.',{'nopointer':!![],'selector':'plugin-updated-toast'});var ba=document['querySelector']('#pluginNotice');if(ba){if(ba['querySelector'](BDFDB['dotCN']['noticebutton'])){window['PluginUpdates']['plugins'][b5]['version']=b9;if(!window['PluginUpdates']['downloaded'])window['PluginUpdates']['downloaded']=[];if(!window['PluginUpdates']['downloaded']['includes'](b4))window['PluginUpdates']['downloaded']['push'](b4);}BDFDB['removeUpdateNotice'](b4,ba);}});};BDFDB['removeUpdateNotice']=function(bb,bc=document['querySelector']('#pluginNotice')){if(!bc)return;var bd=bc['querySelector']('#outdatedPlugins');if(bd){var be=bd['querySelector']('#'+bb+'-notice');if(be){var bf=be['nextSibling'];var bg=be['prevSibling'];if(bf&&BDFDB['containsClass'](bf,'separator'))bf['remove']();else if(bg&&BDFDB['containsClass'](bg,'separator'))bg['remove']();be['remove']();}if(!bd['querySelector']('span')){var bh=bc['querySelector'](BDFDB['dotCN']['noticebutton']);if(bh){bc['querySelector']('.notice-message')['innerText']='To\x20finish\x20updating\x20you\x20need\x20to\x20reload.';BDFDB['toggleEles'](bh,![]);}else bc['querySelector'](BDFDB['dotCN']['noticedismiss'])['click']();}}};BDFDB['showToast']=function(bi,bj={}){var bk=document['querySelector']('.toasts,\x20.bd-toasts');if(!bk){var bl=document['querySelector'](BDFDB['dotCN']['channels']+'\x20+\x20div');var bm=bl?BDFDB['getRects'](bl):null;var bn=bl?bl['querySelector'](BDFDB['dotCN']['memberswrap']):null;var bo=bm?bm['left']:0x136;var bp=bm?bn?bm['width']-BDFDB['getRects'](bn)['width']:bm['width']:window['outerWidth']-0x0;var bq=bl?bl['querySelector']('form'):null;var br=bq?BDFDB['getRects'](bq)['height']:0x50;bk=BDFDB['htmlToElement']('');document['querySelector'](BDFDB['dotCN']['app'])['appendChild'](bk);}const {type='',icon=!![],timeout=0xbb8,html=![],selector='',nopointer=![],color=''}=bj;var bs=BDFDB['htmlToElement'](''+(html===!![]?bi:BDFDB['encodeToHTML'](bi))+'
');if(type){BDFDB['addClass'](bs,'toast-'+type);if(icon)BDFDB['addClass'](bs,'icon');}else if(color){var bt=BDFDB['colorCONVERT'](color,'RGB');if(bt)bs['style']['setProperty']('background-color',bt,'important');}BDFDB['addClass'](bs,selector);bk['appendChild'](bs);bs['close']=()=>{if(document['contains'](bs)){BDFDB['addClass'](bs,'closing');setTimeout(()=>{bs['remove']();if(!bk['querySelectorAll']('.toast,\x20.bd-toast')['length'])bk['remove']();},0xbb8);}};if(nopointer)bs['style']['setProperty']('pointer-events','none','important');else bs['addEventListener']('click',bs['close']);setTimeout(()=>{bs['close']();},timeout>0x0?timeout:0x927c0);return bs;};BDFDB['DesktopNotificationQueue']={'queue':[],'running':![]};BDFDB['showDesktopNotification']=function(bu,bv={}){var bw=()=>{BDFDB['DesktopNotificationQueue']['queue']['push']({'parsedcontent':bu,'parsedoptions':bv});bx();};var bx=()=>{if(!BDFDB['DesktopNotificationQueue']['running']){var by=BDFDB['DesktopNotificationQueue']['queue']['shift']();if(by)bz(by['parsedcontent'],by['parsedoptions']);}};var bz=(bA,bB)=>{BDFDB['DesktopNotificationQueue']['running']=!![];var bC=bB['silent'];bB['silent']=bB['silent']||bB['sound']?!![]:![];var bD=new Notification(bA,bB);var bE=new Audio();var bF=setTimeout(()=>{bG();},bB['timeout']?bB['timeout']:0xbb8);if(typeof bB['click']=='function')bD['onclick']=()=>{clearTimeout(bF);bG();bB['click']();};if(!bC&&bB['sound']){bE['src']=bB['sound'];bE['play']();}var bG=()=>{bE['pause']();bD['close']();BDFDB['DesktopNotificationQueue']['running']=![];setTimeout(()=>{bx();},0x3e8);};};if(!('Notification'in window)){}else if(Notification['permission']==='granted')bw();else if(Notification['permission']!=='denied')Notification['requestPermission'](function(bH){if(bH==='granted')bw();});};BDFDB['createTooltip']=function(bI,bJ,bK={}){if(!bI||!bJ||!Node['prototype']['isPrototypeOf'](bJ)||!document['contains'](bJ))return null;var bL=document['querySelector'](BDFDB['dotCN']['tooltips']);if(!bL)return null;var bM=document['querySelector']('.BDFDB-tooltips');if(!bM){bM=bL['cloneNode']();BDFDB['addClass'](bM,'BDFDB-tooltips');bL['parentElement']['insertBefore'](bM,bL['nextSibling']);}var c=Math['round'](Math['random']()*0x2386f26fc10000);var bO=BDFDB['htmlToElement']('');bO['anker']=bJ;var bP=bO['firstElementChild']?bO['firstElementChild']:bO;if(bK['id'])bO['id']=bK['id']['split']('\x20')['join']('');if(bK['selector'])BDFDB['addClass'](bO,bK['selector']);if(bK['css'])BDFDB['appendLocalStyle']('BDFDBcustomTooltip'+c,bK['css'],bM);if(bK['style'])bP['style']=bK['style'];if(bK['html']===!![])bP['innerHTML']=bI;else bP['innerText']=bI;if(bK['type']&&BDFDB['disCN']['tooltip'+bK['type']['toLowerCase']()]){BDFDB['addClass'](bP,BDFDB['disCN']['tooltip'+bK['type']['toLowerCase']()]);bP['appendChild'](BDFDB['htmlToElement'](''));}if(bP['style']['getPropertyValue']('border-color')&&(bP['style']['getPropertyValue']('background-color')||bP['style']['getPropertyValue']('background-image')))BDFDB['addClass'](bP,'tooltip-customcolor');else if(bK['color']&&BDFDB['disCN']['tooltip'+bK['color']['toLowerCase']()])BDFDB['addClass'](bP,BDFDB['disCN']['tooltip'+bK['color']['toLowerCase']()]);else BDFDB['addClass'](bP,BDFDB['disCN']['tooltipblack']);bM['appendChild'](bO);if(!bK['position']||bK['type'])bK['position']=bK['type'];if(!bK['position']||!['top','bottom','left','right']['includes'](bK['position']['toLowerCase']()))bK['position']='right';bO['position']=bK['position']['toLowerCase']();BDFDB['updateTooltipPosition'](bO);var bQ=()=>{bO['remove']();if(!bM['firstElementChild'])BDFDB['removeEles'](bM);};var bR=new MutationObserver(bS=>{bS['forEach'](bT=>{var bU=Array['from'](bT['removedNodes']);var bV=bU['indexOf'](bO)>-0x1;var bW=bU['indexOf'](bJ)>-0x1;var bX=bU['some'](bY=>bY['contains'](bJ));if(bV||bW||bX){bR['disconnect']();bQ();bJ['removeEventListener']('mouseleave',bQ);BDFDB['removeLocalStyle']('BDFDBcustomTooltip'+c,bM);}});});bR['observe'](document['body'],{'subtree':!![],'childList':!![]});bJ['addEventListener']('mouseleave',bQ);if(bK['delay']){BDFDB['toggleEles'](bO);setTimeout(()=>{BDFDB['toggleEles'](bO);},bK['delay']);}return bO;};BDFDB['updateTooltipPosition']=function(bZ){if(!Node['prototype']['isPrototypeOf'](bZ)||!Node['prototype']['isPrototypeOf'](bZ['anker'])||!bZ['position'])return;var c0,c1,c2=BDFDB['getRects'](bZ['anker']),c3=BDFDB['getRects'](bZ),c4={'height':0x0,'width':0x0};var c5=bZ['querySelector'](BDFDB['dotCN']['tooltippointer']);if(c5)c4=BDFDB['getRects'](c5);switch(bZ['position']){case'top':c1=c2['top']-c3['height']-c4['height']+0x2;c0=c2['left']+(c2['width']-c3['width'])/0x2;break;case'bottom':c1=c2['top']+c2['height']+c4['height']-0x2;c0=c2['left']+(c2['width']-c3['width'])/0x2;break;case'left':c1=c2['top']+(c2['height']-c3['height'])/0x2;c0=c2['left']-c3['width']-c4['width']+0x2;break;case'right':c1=c2['top']+(c2['height']-c3['height'])/0x2;c0=c2['left']+c2['width']+c4['width']-0x2;break;}bZ['style']['setProperty']('top',c1+'px');bZ['style']['setProperty']('left',c0+'px');var c6=BDFDB['getRects'](document['querySelector'](BDFDB['dotCN']['appmount'])),c3=BDFDB['getRects'](bZ);var c8=bZ['querySelector'](BDFDB['dotCN']['tooltippointer']);if(bZ['position']=='top'||bZ['position']=='bottom'){if(c3['left']<0x0){bZ['style']['setProperty']('left','5px');c8['style']['setProperty']('margin-left',c3['left']-0xa+'px');}else{var c9=c6['width']-(c3['left']+c3['width']);if(c9<0x0){bZ['style']['setProperty']('left',c6['width']-c3['width']-0x5+'px');c8['style']['setProperty']('margin-left',-0x1*c9+'px');}}}else if(bZ['position']=='left'||bZ['position']=='right'){if(c3['top']<0x0){bZ['style']['setProperty']('top','5px');c8['style']['setProperty']('margin-top',c3['top']-0xa+'px');}else{var ca=c6['height']-(c3['top']+c3['height']);if(ca<0x0){bZ['style']['setProperty']('top',c6['height']-c3['height']-0x5+'px');c8['style']['setProperty']('margin-top',-0x1*ca+'px');}}}};BDFDB['createNotificationsBar']=function(cb,cc={}){if(!cb)return;var cd=document['querySelector'](BDFDB['dotCN']['layers']);if(!cd)return;var c=Math['round'](Math['random']()*0x2386f26fc10000);var cf=BDFDB['htmlToElement']('');cd['parentElement']['insertBefore'](cf,cd);var cg=cf['querySelector']('.notice-message');if(cc['platform'])for(let ch of cc['platform']['split']('\x20'))if(sD['noticeicon'+ch]){let ci=BDFDB['htmlToElement']('');BDFDB['addClass'](ci,BDFDB['disCN']['noticeplatformicon']);BDFDB['removeClass'](ci,BDFDB['disCN']['noticeicon']);cf['insertBefore'](ci,cg);}if(cc['customicon']){let cj=BDFDB['htmlToElement'](cc['customicon']);let ci=BDFDB['htmlToElement']('');if(cj['tagName']=='span'&&!cj['firstElementChild'])ci['style']['setProperty']('background','url('+cc['customicon']+')\x20center/cover\x20no-repeat');else ci['appendChild'](cj);BDFDB['addClass'](ci,BDFDB['disCN']['noticeplatformicon']);BDFDB['removeClass'](ci,BDFDB['disCN']['noticeicon']);cf['insertBefore'](ci,cg);}if(cc['btn'])cf['appendChild'](BDFDB['htmlToElement'](''));if(cc['id'])cf['id']=cc['id']['split']('\x20')['join']('');if(cc['selector'])BDFDB['addClass'](cf,cc['selector']);if(cc['css'])BDFDB['appendLocalStyle']('BDFDBcustomnotibar'+c,cc['css']);if(cc['style'])cf['style']=cc['style'];if(cc['html']===!![])cg['innerHTML']=cb;else{var cl=document['createElement']('a');var cm=[];for(let cn of cb['split']('\x20')){var co=BDFDB['encodeToHTML'](cn);cl['href']=cn;cm['push'](cl['host']&&cl['host']!==window['location']['host']?'':co);}cg['innerHTML']=cm['join']('\x20');}var cp=null;if(cc['type']&&!document['querySelector'](BDFDB['dotCNS']['chatbase']+BDFDB['dotCN']['noticestreamer'])){if(cp=BDFDB['disCN']['notice'+cc['type']])BDFDB['addClass'](cf,cp);if(cc['type']=='premium'){var cq=cf['querySelector'](BDFDB['dotCN']['noticebutton']);if(cq)BDFDB['addClass'](cq,BDFDB['disCN']['noticepremiumaction']);BDFDB['addClass'](cg,BDFDB['disCN']['noticepremiumtext']);cf['insertBefore'](BDFDB['htmlToElement'](''),cg);}}if(!cp){var cr=BDFDB['colorCONVERT'](cc['color'],'RGBCOMP');if(cr){var cs=cr[0x0]>0xb4&&cr[0x1]>0xb4&&cr[0x2]>0xb4?'#000':'#FFF';var ct=BDFDB['colorCONVERT'](cr,'HEX');var cu=cr[0x0]>0xb4&&cr[0x1]>0xb4&&cr[0x2]>0xb4?'brightness(0%)':'brightness(100%)';BDFDB['appendLocalStyle']('BDFDBcustomnotibarColorCorrection'+c,'.BDFDB-notice.notice-'+c+'{background-color:'+ct+'\x20!important;}.BDFDB-notice.notice-'+c+'\x20.notice-message\x20{color:'+cs+'\x20!important;}.BDFDB-notice.notice-'+c+'\x20'+BDFDB['dotCN']['noticebutton']+'\x20{color:'+cs+'\x20!important;border-color:'+BDFDB['colorSETALPHA'](cs,0.25,'RGBA')+'\x20!important;}.BDFDB-notice.notice-'+c+'\x20'+BDFDB['dotCN']['noticebutton']+':hover\x20{color:'+ct+'\x20!important;background-color:'+cs+'\x20!important;}.BDFDB-notice.notice-'+c+'\x20'+BDFDB['dotCN']['noticedismiss']+'\x20{filter:'+cu+'\x20!important;}');}else BDFDB['addClass'](cf,BDFDB['disCN']['noticedefault']);}cf['style']['setProperty']('height','36px','important');cf['style']['setProperty']('min-width','70vw','important');cf['style']['setProperty']('left','unset','important');cf['style']['setProperty']('right','unset','important');let cv=(BDFDB['getTotalWidth'](document['body']['firstElementChild'])-BDFDB['getTotalWidth'](cf))/0x2;cf['style']['setProperty']('left',cv+'px','important');cf['style']['setProperty']('right',cv+'px','important');cf['style']['setProperty']('min-width','unset','important');cf['style']['setProperty']('width','unset','important');cf['style']['setProperty']('max-width','calc(100vw\x20-\x20'+cv*0x2+'px)','important');cf['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',()=>{cf['style']['setProperty']('overflow','hidden','important');cf['style']['setProperty']('height','0px','important');setTimeout(()=>{BDFDB['removeLocalStyle']('BDFDBcustomnotibar'+c);BDFDB['removeLocalStyle']('BDFDBcustomnotibarColorCorrection'+c);cf['remove']();},0x1f4);});return cf;};BDFDB['getDiscordFolder']=function(){var cw=BDFDB['getDiscordBuilt']();cw='discord'+(cw=='stable'?'':cw);return require('path')['resolve'](require('electron')['remote']['app']['getPath']('appData'),cw,BDFDB['getDiscordVersion']());};BDFDB['getPluginsFolder']=function(){var cx=require('process');var cy=require('path');if(cx['env']['injDir'])return cy['resolve'](cx['env']['injDir'],'plugins/');switch(cx['platform']){case'win32':return cy['resolve'](cx['env']['appdata'],'BetterDiscord/plugins/');case'darwin':return cy['resolve'](cx['env']['HOME'],'Library/Preferences/BetterDiscord/plugins/');default:if(cx['env']['XDG_CONFIG_HOME'])return cy['resolve'](cx['env']['XDG_CONFIG_HOME'],'BetterDiscord/plugins/');else return cy['resolve'](cx['env']['HOME'],'.config/BetterDiscord/plugins/');}};BDFDB['getThemesFolder']=function(){var cz=require('process');var cA=require('path');if(cz['env']['injDir'])return cA['resolve'](cz['env']['injDir'],'plugins/');switch(cz['platform']){case'win32':return cA['resolve'](cz['env']['appdata'],'BetterDiscord/themes/');case'darwin':return cA['resolve'](cz['env']['HOME'],'Library/Preferences/BetterDiscord/themes/');default:if(cz['env']['XDG_CONFIG_HOME'])return cA['resolve'](cz['env']['XDG_CONFIG_HOME'],'BetterDiscord/themes/');else return cA['resolve'](cz['env']['HOME'],'.config/BetterDiscord/themes/');}};BDFDB['checkWhichRepoPage']=function(cB=document['querySelector'](BDFDB['dotCN']['layer']+'[layer-id=\x22user-settings\x22]')){if(!cB)return;var cC=cB['querySelector'](BDFDB['dotCN']['_repofolderbutton']);if(!cC)return;var cD=cC['parentElement']['querySelector']('h2');if(cD&&cD['innerText']){let cE=cD['innerText']['toLowerCase']();if(cE==='plugins'||cE==='themes')return cE;}};BDFDB['checkAllUpdates']=function(){for(let cF in window['PluginUpdates']['plugins']){var cG=window['PluginUpdates']['plugins'][cF];BDFDB['checkUpdate'](cG['name'],cG['raw']);}};BDFDB['getLineOfString']=function(cH,cI){if(typeof cH!='string'||typeof cH!='string')return-0x1;let cJ=cH['indexOf'](cI);if(cJ<0x0)return-0x1;return cH['substring'](0x0,cJ)['split']('\x0a')['length'];};BDFDB['sortObject']=function(cK,cL,cM){var cN={};if(cL===undefined||!cL)for(let cO of Object['keys'](cK)['sort']())cN[cO]=cK[cO];else{let cP=[];for(let cO in cK)cP['push'](cK[cO]);cP=BDFDB['sortArrayByKey'](cP,cL,cM);for(let cR of cP)for(let cO in cK)if(BDFDB['equals'](cR,cK[cO])){cN[cO]=cR;break;}}return cN;};BDFDB['reverseObject']=function(cT,cU){var cV={};for(let cW of cU===undefined||!cU?Object['keys'](cT)['reverse']():Object['keys'](cT)['sort']()['reverse']())cV[cW]=cT[cW];return cV;};BDFDB['filterObject']=function(cX,cY){return Object['keys'](cX)['filter'](cZ=>cY(cX[cZ]))['reduce']((d0,d1)=>(d0[d1]=cX[d1],d0),{});};BDFDB['isObject']=function(d2){return d2&&Object['prototype']['isPrototypeOf'](d2)&&!Array['prototype']['isPrototypeOf'](d2);};BDFDB['isObjectEmpty']=function(d3){return typeof d3!=='object'||Object['getOwnPropertyNames'](d3)['length']==0x0;};BDFDB['pushToObject']=function(d4,d5){if(BDFDB['isObject'](d4))d4[Object['keys'](d4)['length']]=d5;};BDFDB['mapObject']=function(d6,d7){var d8={};if(BDFDB['isObject'](d6)&&typeof d7=='string')for(let d9 in d6)if(BDFDB['isObject'](d6[d9]))d8[d9]=d6[d9][d7];return d8;};BDFDB['deepAssign']=function(da,...db){if(!db['length'])return da;var dc=db['shift']();if(BDFDB['isObject'](da)&&BDFDB['isObject'](dc)){for(var dd in dc){if(BDFDB['isObject'](dc[dd])){if(!da[dd])Object['assign'](da,{[dd]:{}});BDFDB['deepAssign'](da[dd],dc[dd]);}else Object['assign'](da,{[dd]:dc[dd]});}}return BDFDB['deepAssign'](da,...db);};BDFDB['sortArrayByKey']=function(de,df,dg){if(dg===undefined)dg=null;return de['sort'](function(dh,di){var dj=dh[df],dk=di[df];if(dj!==dg)return djdk?0x1:0x0;});};BDFDB['numSortArray']=function(dl,dm,dn){return dl['sort'](function(dp,dq){return dpdq?0x1:0x0;});};BDFDB['removeFromArray']=function(dr,ds,dt=![]){if(!dr||!ds||!Array['isArray'](dr)||!dr['includes'](ds))return dr;if(!dt)dr['splice'](dr['indexOf'](ds),0x1);else while(dr['indexOf'](ds)>-0x1)dr['splice'](dr['indexOf'](ds),0x1);return dr;};BDFDB['getAllIndexes']=function(du,dv){var dw=[],dx=-0x1;while((dx=du['indexOf'](dv,dx+0x1))!==-0x1)dw['push'](dx);return dw;};BDFDB['removeCopiesFromArray']=function(dy){return[...new Set(dy)];};BDFDB['highlightText']=function(dz,dA){if(!dA||dA['length']<0x1)return dz;var dB=0x0,dC=dz,dD='',dE='';BDFDB['getAllIndexes'](dz['toUpperCase'](),dA['toUpperCase']())['forEach'](dF=>{var dG=dB*(dD['length']+dE['length']);dF=dF+dG;var dH=dF+dA['length'];var dI=[-0x1]['concat'](BDFDB['getAllIndexes'](dz['substring'](0x0,dF),'<'));var dJ=[-0x1]['concat'](BDFDB['getAllIndexes'](dz['substring'](0x0,dF),'>'));if(dI[dI['length']-0x1]>dJ[dJ['length']-0x1])return;dz=dz['substring'](0x0,dF)+dD+dz['substring'](dF,dH)+dE+dz['substring'](dH);dB++;});return dz?dz:dC;};BDFDB['languages']={'$discord':{'name':'Discord\x20(English\x20(US))','id':'en-US','ownlang':'English\x20(US)','integrated':![],'dic':![],'deepl':![]},'af':{'name':'Afrikaans','id':'af','ownlang':'Afrikaans','integrated':![],'dic':!![],'deepl':![]},'sq':{'name':'Albanian','id':'sq','ownlang':'Shqiptar','integrated':![],'dic':![],'deepl':![]},'am':{'name':'Amharic','id':'am','ownlang':'አማርኛ','integrated':![],'dic':![],'deepl':![]},'ar':{'name':'Arabic','id':'ar','ownlang':'اللغة\x20العربية','integrated':![],'dic':![],'deepl':![]},'hy':{'name':'Armenian','id':'hy','ownlang':'Հայերեն','integrated':![],'dic':![],'deepl':![]},'az':{'name':'Azerbaijani','id':'az','ownlang':'آذربایجان\x20دیلی','integrated':![],'dic':![],'deepl':![]},'eu':{'name':'Basque','id':'eu','ownlang':'Euskara','integrated':![],'dic':![],'deepl':![]},'be':{'name':'Belarusian','id':'be','ownlang':'Беларуская','integrated':![],'dic':![],'deepl':![]},'bn':{'name':'Bengali','id':'bn','ownlang':'বাংলা','integrated':![],'dic':![],'deepl':![]},'bs':{'name':'Bosnian','id':'bs','ownlang':'Босански','integrated':![],'dic':![],'deepl':![]},'bg':{'name':'Bulgarian','id':'bg','ownlang':'български','integrated':!![],'dic':![],'deepl':![]},'my':{'name':'Burmese','id':'my','ownlang':'မြန်မာစာ','integrated':![],'dic':![],'deepl':![]},'ca':{'name':'Catalan','id':'ca','ownlang':'Català','integrated':![],'dic':![],'deepl':![]},'ceb':{'name':'Cebuano','id':'ceb','ownlang':'Bisaya','integrated':![],'dic':![],'deepl':![]},'ny':{'name':'Chewa','id':'ny','ownlang':'Nyanja','integrated':![],'dic':![],'deepl':![]},'zh-HK':{'name':'Chinese\x20(Hong\x20Kong)','id':'zh-HK','ownlang':'香港中文','integrated':![],'dic':![],'deepl':![]},'zh-CN':{'name':'Chinese\x20(Simplified)','id':'zh-CN','ownlang':'简体中文','integrated':![],'dic':![],'deepl':![]},'zh-TW':{'name':'Chinese\x20(Traditional)','id':'zh-TW','ownlang':'繁體中文','integrated':!![],'dic':![],'deepl':![]},'co':{'name':'Corsican','id':'co','ownlang':'Corsu','integrated':![],'dic':![],'deepl':![]},'hr':{'name':'Croatian','id':'hr','ownlang':'Hrvatski','integrated':!![],'dic':![],'deepl':![]},'cs':{'name':'Czech','id':'cs','ownlang':'Čeština','integrated':!![],'dic':![],'deepl':![]},'da':{'name':'Danish','id':'da','ownlang':'Dansk','integrated':!![],'dic':!![],'deepl':![]},'nl':{'name':'Dutch','id':'nl','ownlang':'Nederlands','integrated':!![],'dic':!![],'deepl':!![]},'en':{'name':'English','id':'en','ownlang':'English','integrated':![],'dic':!![],'deepl':!![]},'en-GB':{'name':'English\x20(UK)','id':'en-GB','ownlang':'English\x20(UK)','integrated':!![],'dic':!![],'deepl':![]},'en-US':{'name':'English\x20(US)','id':'en-US','ownlang':'English\x20(US)','integrated':!![],'dic':!![],'deepl':![]},'eo':{'name':'Esperanto','id':'eo','ownlang':'Esperanto','integrated':![],'dic':![],'deepl':![]},'et':{'name':'Estonian','id':'et','ownlang':'Eesti','integrated':![],'dic':![],'deepl':![]},'fil':{'name':'Filipino','id':'fil','ownlang':'Wikang\x20Filipino','integrated':![],'dic':![],'deepl':![]},'fi':{'name':'Finnish','id':'fi','ownlang':'Suomi','integrated':!![],'dic':![],'deepl':![]},'fr':{'name':'French','id':'fr','ownlang':'Français','integrated':!![],'dic':!![],'deepl':!![]},'fr-CA':{'name':'French\x20(Canadian)','id':'fr-CA','ownlang':'Français\x20Canadien','integrated':![],'dic':![],'deepl':![]},'fy':{'name':'Frisian','id':'fy','ownlang':'Frysk','integrated':![],'dic':![],'deepl':![]},'gl':{'name':'Galician','id':'gl','ownlang':'Galego','integrated':![],'dic':![],'deepl':![]},'ka':{'name':'Georgian','id':'ka','ownlang':'ქართული','integrated':![],'dic':![],'deepl':![]},'de':{'name':'German','id':'de','ownlang':'Deutsch','integrated':!![],'dic':!![],'deepl':!![]},'de-AT':{'name':'German\x20(Austria)','id':'de-AT','ownlang':'Österreichisch\x20Deutsch','integrated':![],'dic':![],'deepl':![]},'de-CH':{'name':'German\x20(Switzerland)','id':'de-CH','ownlang':'Schweizerdeutsch','integrated':![],'dic':![],'deepl':![]},'el':{'name':'Greek','id':'el','ownlang':'Ελληνικά','integrated':![],'dic':![],'deepl':![]},'gu':{'name':'Gujarati','id':'gu','ownlang':'ગુજરાતી','integrated':![],'dic':![],'deepl':![]},'ht':{'name':'Haitian\x20Creole','id':'ht','ownlang':'Kreyòl\x20Ayisyen','integrated':![],'dic':![],'deepl':![]},'ha':{'name':'Hausa','id':'ha','ownlang':'حَوْسَ','integrated':![],'dic':![],'deepl':![]},'haw':{'name':'Hawaiian','id':'haw','ownlang':'ʻŌlelo\x20Hawaiʻi','integrated':![],'dic':![],'deepl':![]},'iw':{'name':'Hebrew','id':'iw','ownlang':'עברית','integrated':![],'dic':![],'deepl':![]},'hi':{'name':'Hindi','id':'hi','ownlang':'हिन्दी','integrated':![],'dic':![],'deepl':![]},'hmn':{'name':'Hmong','id':'hmn','ownlang':'lol\x20Hmongb','integrated':![],'dic':![],'deepl':![]},'hu':{'name':'Hungarain','id':'hu','ownlang':'Magyar','integrated':![],'dic':![],'deepl':![]},'is':{'name':'Icelandic','id':'is','ownlang':'Íslenska','integrated':![],'dic':![],'deepl':![]},'ig':{'name':'Igbo','id':'ig','ownlang':'Asụsụ\x20Igbo','integrated':![],'dic':![],'deepl':![]},'id':{'name':'Indonesian','id':'id','ownlang':'Bahasa\x20Indonesia','integrated':![],'dic':![],'deepl':![]},'ga':{'name':'Irish','id':'ga','ownlang':'Gaeilge','integrated':![],'dic':![],'deepl':![]},'it':{'name':'Italian','id':'it','ownlang':'Italiano','integrated':!![],'dic':!![],'deepl':!![]},'ja':{'name':'Japanese','id':'ja','ownlang':'日本語','integrated':!![],'dic':![],'deepl':![]},'jv':{'name':'Javanese','id':'jv','ownlang':'ꦧꦱꦗꦮ','integrated':![],'dic':![],'deepl':![]},'kn':{'name':'Kannada','id':'kn','ownlang':'ಕನ್ನಡ','integrated':![],'dic':![],'deepl':![]},'kk':{'name':'Kazakh','id':'kk','ownlang':'Қазақ\x20Tілі','integrated':![],'dic':![],'deepl':![]},'km':{'name':'Khmer','id':'km','ownlang':'ភាសាខ្មែរ','integrated':![],'dic':![],'deepl':![]},'ko':{'name':'Korean','id':'ko','ownlang':'한국어','integrated':!![],'dic':![],'deepl':![]},'ku':{'name':'Kurdish','id':'ku','ownlang':'کوردی','integrated':![],'dic':![],'deepl':![]},'ky':{'name':'Kyrgyz','id':'ky','ownlang':'кыргызча','integrated':![],'dic':![],'deepl':![]},'lo':{'name':'Lao','id':'lo','ownlang':'ພາສາລາວ','integrated':![],'dic':![],'deepl':![]},'la':{'name':'Latin','id':'la','ownlang':'Latina','integrated':![],'dic':![],'deepl':![]},'lv':{'name':'Latvian','id':'lv','ownlang':'Latviešu','integrated':![],'dic':![],'deepl':![]},'lt':{'name':'Lithuanian','id':'lt','ownlang':'Lietuvių','integrated':![],'dic':![],'deepl':![]},'lb':{'name':'Luxembourgish','id':'lb','ownlang':'Lëtzebuergesch','integrated':![],'dic':![],'deepl':![]},'mk':{'name':'Macedonian','id':'mk','ownlang':'Mакедонски','integrated':![],'dic':![],'deepl':![]},'mg':{'name':'Malagasy','id':'mg','ownlang':'Malagasy','integrated':![],'dic':![],'deepl':![]},'ms':{'name':'Malay','id':'ms','ownlang':'بهاس\x20ملايو','integrated':![],'dic':![],'deepl':![]},'ml':{'name':'Malayalam','id':'ml','ownlang':'മലയാളം','integrated':![],'dic':![],'deepl':![]},'mt':{'name':'Maltese','id':'mt','ownlang':'Malti','integrated':![],'dic':![],'deepl':![]},'mi':{'name':'Maori','id':'mi','ownlang':'te\x20Reo\x20Māori','integrated':![],'dic':![],'deepl':![]},'mr':{'name':'Marathi','id':'mr','ownlang':'मराठी','integrated':![],'dic':![],'deepl':![]},'mn':{'name':'Mongolian','id':'mn','ownlang':'Монгол\x20Хэл','integrated':![],'dic':![],'deepl':![]},'ne':{'name':'Nepali','id':'ne','ownlang':'नेपाली','integrated':![],'dic':![],'deepl':![]},'no':{'name':'Norwegian','id':'no','ownlang':'Norsk','integrated':!![],'dic':![],'deepl':![]},'ps':{'name':'Pashto','id':'ps','ownlang':'پښتو','integrated':![],'dic':![],'deepl':![]},'fa':{'name':'Persian','id':'fa','ownlang':'فارسی','integrated':![],'dic':![],'deepl':![]},'pl':{'name':'Polish','id':'pl','ownlang':'Polski','integrated':!![],'dic':![],'deepl':!![]},'pt':{'name':'Portuguese','id':'pt','ownlang':'Português','integrated':![],'dic':!![],'deepl':!![]},'pt-BR':{'name':'Portuguese\x20(Brazil)','id':'pt-BR','ownlang':'Português\x20do\x20Brasil','integrated':!![],'dic':!![],'deepl':![]},'pt-PT':{'name':'Portuguese\x20(Portugal)','id':'pt-PT','ownlang':'Português\x20do\x20Portugal','integrated':![],'dic':![],'deepl':![]},'pa':{'name':'Punjabi','id':'pa','ownlang':'पंजाबी','integrated':![],'dic':![],'deepl':![]},'ro':{'name':'Romanian','id':'ro','ownlang':'Română','integrated':![],'dic':![],'deepl':![]},'ru':{'name':'Russian','id':'ru','ownlang':'Pусский','integrated':!![],'dic':!![],'deepl':!![]},'sm':{'name':'Samoan','id':'sm','ownlang':'Gagana\x20Sāmoa','integrated':![],'dic':![],'deepl':![]},'gd':{'name':'Scottish\x20Gaelic','id':'gd','ownlang':'Gàidhlig','integrated':![],'dic':![],'deepl':![]},'sr':{'name':'Serbian','id':'sr','ownlang':'Српски','integrated':![],'dic':![],'deepl':![]},'st':{'name':'Sotho','id':'st','ownlang':'Sesotho','integrated':![],'dic':![],'deepl':![]},'sn':{'name':'Shona','id':'sn','ownlang':'Shona','integrated':![],'dic':![],'deepl':![]},'sd':{'name':'Sindhi','id':'sd','ownlang':'سنڌي','integrated':![],'dic':![],'deepl':![]},'si':{'name':'Sinhala','id':'si','ownlang':'සිංහල','integrated':![],'dic':![],'deepl':![]},'sk':{'name':'Slovak','id':'sk','ownlang':'Slovenčina','integrated':![],'dic':![],'deepl':![]},'sl':{'name':'Slovenian','id':'sl','ownlang':'Slovenščina','integrated':![],'dic':![],'deepl':![]},'es':{'name':'Spanish','id':'es','ownlang':'Español','integrated':!![],'dic':!![],'deepl':!![]},'es-419':{'name':'Spanish\x20(Latin\x20America)','id':'es-419','ownlang':'Español\x20latinoamericano','integrated':![],'dic':![],'deepl':![]},'sw':{'name':'Swahili','id':'sw','ownlang':'Kiswahili','integrated':![],'dic':![],'deepl':![]},'sv':{'name':'Swedish','id':'sv','ownlang':'Svenska','integrated':!![],'dic':!![],'deepl':![]},'tg':{'name':'Tajik','id':'tg','ownlang':'тоҷикӣ','integrated':![],'dic':![],'deepl':![]},'ta':{'name':'Tamil','id':'ta','ownlang':'தமிழ்','integrated':![],'dic':![],'deepl':![]},'te':{'name':'Telugu','id':'te','ownlang':'తెలుగు','integrated':![],'dic':![],'deepl':![]},'th':{'name':'Thai','id':'th','ownlang':'ภาษาไทย','integrated':![],'dic':![],'deepl':![]},'tr':{'name':'Turkish','id':'tr','ownlang':'Türkçe','integrated':!![],'dic':![],'deepl':![]},'uk':{'name':'Ukrainian','id':'uk','ownlang':'Yкраїнський','integrated':!![],'dic':![],'deepl':![]},'ur':{'name':'Urdu','id':'ur','ownlang':'اُردُو','integrated':![],'dic':![],'deepl':![]},'uz':{'name':'Uzbek','id':'uz','ownlang':'اوزبیک','integrated':![],'dic':![],'deepl':![]},'vi':{'name':'Vietnamese','id':'vi','ownlang':'Tiếng\x20Việt\x20Nam','integrated':![],'dic':![],'deepl':![]},'cy':{'name':'Welsh','id':'cy','ownlang':'Cymraeg','integrated':![],'dic':![],'deepl':![]},'xh':{'name':'Xhosa','id':'xh','ownlang':'Xhosa','integrated':![],'dic':![],'deepl':![]},'yi':{'name':'Yiddish','id':'yi','ownlang':'ייִדיש\x20ייִדיש','integrated':![],'dic':![],'deepl':![]},'yo':{'name':'Yoruba','id':'yo','ownlang':'Èdè\x20Yorùbá','integrated':![],'dic':![],'deepl':![]},'zu':{'name':'Zulu','id':'zu','ownlang':'Zulu','integrated':![],'dic':![],'deepl':![]}};var dK=setInterval(()=>{if(document['querySelector']('html')['lang']){clearInterval(dK);var dL=BDFDB['getDiscordLanguage']();BDFDB['languages']['$discord']['name']='Discord\x20('+dL['name']+')';BDFDB['languages']['$discord']['id']=dL['id'];BDFDB['languages']['$discord']['ownlang']=dL['ownlang'];}},0x64);BDFDB['getDiscordBuilt']=function(){if(BDFDB['getDiscordBuilt']['built'])return BDFDB['getDiscordBuilt']['built'];else{var dM=null;try{dM=require(require('electron')['remote']['app']['getAppPath']()+'/build_info.json')['releaseChannel']['toLowerCase']();}catch(dN){try{dM=require(require('electron')['remote']['app']['getAppPath']()['replace']('app.asar','')+'/build_info.json')['releaseChannel']['toLowerCase']();}catch(dO){var dP=BDFDB['getDiscordVersion']();if(dP){dP=dP['split']('.');if(dP['length']==0x3&&!isNaN(dP=parseInt(dP[0x2])))dM=dP>0x12c?'stable':da>0xc8?'canary':'ptb';else dM='stable';}else dM='stable';}}BDFDB['getDiscordBuilt']['built']=dM;return dM;}};BDFDB['getDiscordVersion']=function(){if(BDFDB['getDiscordBuilt']['version'])return BDFDB['getDiscordBuilt']['version'];else{var dQ=null;try{dQ=require('electron')['remote']['app']['getVersion']();}catch(dR){dR='';}BDFDB['getDiscordBuilt']['version']=dQ;return dQ;}};BDFDB['getDiscordLanguage']=function(){var dS=document['querySelector']('html')['lang']||'en-US';var dT=dS['split']('-');var dU=dT[0x0];var dV=dT[0x1]||'';dS=dV&&dU['toUpperCase']()!==dV['toUpperCase']()?dU+'-'+dV:dU;return BDFDB['languages'][dS]||BDFDB['languages'][dU]||BDFDB['languages']['en-US'];};BDFDB['getDiscordTheme']=function(){return document['querySelectorAll'](BDFDB['dotCN']['themelight'])['length']>=document['querySelectorAll'](BDFDB['dotCN']['themedark'])['length']?BDFDB['disCN']['themelight']:BDFDB['disCN']['themedark'];};BDFDB['getDiscordMode']=function(){return document['querySelectorAll'](BDFDB['dotCN']['messagegroupcompact'])['length']>=document['querySelectorAll'](BDFDB['dotCN']['messagegroupcozy'])['length']?'compact':'cozy';};BDFDB['getDiscordZoomFactor']=function(){var dW=BDFDB['getRects'](document['body']['firstElementChild']);var dX=Math['round'](0x64*window['outerWidth']/dW['width']);var dY=Math['round'](0x64*window['outerHeight']/dW['height']);return dXe0['startsWith']('__reactInternalInstance'))];};BDFDB['getReactValue']=function(e1,e2){if(!e1||!e2)return null;let e3=Node['prototype']['isPrototypeOf'](e1)?BDFDB['getReactInstance'](e1):e1;if(!BDFDB['isObject'](e3))return null;let e4=e3;for(let e5 of e2['split']('.')['filter'](e6=>e6)){e4=e4[e5];if(e4==undefined)return null;}return e4;};BDFDB['getOwnerInstance']=function(e7){if(e7===undefined)return null;if(!e7['node']&&!e7['instance']||!e7['name']&&(!e7['props']||!Array['isArray'](e7['props'])))return null;var e8=e7['instance']||BDFDB['getReactInstance'](e7['node']);if(!e8)return null;e7['name']=e7['name']&&!Array['isArray'](e7['name'])?Array['of'](e7['name']):e7['name'];var e9=-0x1;var ea=e7['depth']===undefined?0xf:e7['depth'];var eb=e7['up']===undefined?![]:e7['up'];var ec=performance['now']();var ed=e7['time']===undefined?0x96:e7['time'];var ee=eb?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};var ef={};var eg=ej(e8);if(e7['all']){for(let eh in ef){if(e7['group'])for(let e8 in ef[eh])delete ef[eh][e8]['BDFDBreactSearch'];else delete ef[eh]['BDFDBreactSearch'];}return ef;}else return eg;function ej(e8){e9++;if(!e8||Node['prototype']['isPrototypeOf'](e8)||BDFDB['getReactInstance'](e8)||e9>ea||performance['now']()-ec>ed)em=null;else{var el=Object['getOwnPropertyNames'](e8);var em=null;for(let en=0x0;em==null&&ene8['type']['displayName']===er['split']('\x20')[0x0]||e8['type']['name']===er['split']('\x20')[0x0])||e7['props']&&e7['props']['every'](es=>eq[es]!==undefined)||e7['defaultProps']&&e7['defaultProps']['every'](et=>eq[et]!==undefined))){if(e7['all']===undefined||!e7['all'])em=eq;else if(e7['all']){if(e7['noCopies']===undefined||!e7['noCopies']||e7['noCopies']&&!eq['BDFDBreactSearch']){eq['BDFDBreactSearch']=!![];if(e7['group']){if(e7['name']&&e8['type']&&(e8['type']['displayName']||e8['type']['name'])){var eu='Default';for(let ev of e7['name'])if(e8['type']['displayName']===ev['split']('\x20')[0x0]||e8['type']['name']===ev['split']('\x20')[0x0]){eu=ev;break;}if(typeof ef[eu]=='undefined')ef[eu]={};BDFDB['pushToObject'](ef[eu],eq);}}else BDFDB['pushToObject'](ef,eq);}}}if(em==null&&(typeof ep==='object'||typeof ep==='function')&&ee[eo])em=ej(ep);}}e9--;return em;}};BDFDB['getKeyInformation']=function(ew){if(ew===undefined)return null;if(!ew['node']&&!ew['instance']||!ew['key'])return null;var ex=ew['instance']||BDFDB['getReactInstance'](ew['node']);if(!ex)return null;var ey=-0x1;var ez=ew['depth']===undefined?0xf:ew['depth'];var eA=performance['now']();var eB=ew['time']===undefined?0x96:ew['time'];var eC={'props':!![],'state':!![],'stateNode':!![],'refs':!![],'updater':!![],'prototype':!![],'type':!![],'children':ew['up']?![]:!![],'type':!![],'memoizedProps':!![],'memoizedState':!![],'child':ew['up']?![]:!![],'return':ew['up']?!![]:![],'sibling':ew['up']?![]:!![],'firstEffect':!![]};var eD={'contextSection':!![]};if(typeof ew['whitelist']==='object')Object['assign'](eC,ew['whiteList']);if(typeof ew['blacklist']==='object')Object['assign'](eD,ew['blacklist']);var eE=[];var eF=eG(ex);if(ew['all'])return eE;else return eF;function eG(ex){ey++;if(!ex||Node['prototype']['isPrototypeOf'](ex)||BDFDB['getReactInstance'](ex)||ey>ez||performance['now']()-eA>eB)eJ=null;else{var eI=Object['getOwnPropertyNames'](ex);var eJ=null;for(let eK=0x0;eJ==null&&eK{if(!eP['req']){const c='BDFDB-WebModules';const eR=typeof window['webpackJsonp']=='function'?window['webpackJsonp']([],{[c]:(eS,eT,eR)=>eT['default']=eR},[c])['default']:window['webpackJsonp']['push']([[],{[c]:(eV,eW,eR)=>eV['exports']=eR},[[c]]]);delete eR['m'][c];delete eR['c'][c];eP['req']=eR;}return eP['req'];};BDFDB['WebModules']={};BDFDB['WebModules']['find']=function(eY){var eZ=eP();for(let f0 in eZ['c'])if(eZ['c']['hasOwnProperty'](f0)){var f1=eZ['c'][f0]['exports'];if(f1&&f1['__esModule']&&f1['default']&&eY(f1['default']))return f1['default'];if(f1&&eY(f1))return f1;}};BDFDB['WebModules']['cachedData']={'prop':{},'name':{},'proto':{}};BDFDB['WebModules']['findByProperties']=function(f2){f2=Array['isArray'](f2)?f2:Array['from'](arguments);var f3=JSON['stringify'](f2);if(BDFDB['WebModules']['cachedData']['prop'][f3])return BDFDB['WebModules']['cachedData']['prop'][f3];else{var f4=BDFDB['WebModules']['find'](f4=>f2['every'](f6=>f4[f6]!==undefined));if(f4){BDFDB['WebModules']['cachedData']['prop'][f3]=f4;return f4;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',f3+'\x20[properties]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByName']=function(f7){var f8=JSON['stringify'](f7);if(BDFDB['WebModules']['cachedData']['name'][f8])return BDFDB['WebModules']['cachedData']['name'][f8];else{var f9=BDFDB['WebModules']['find'](f9=>f9['displayName']===f7);if(f9){BDFDB['WebModules']['cachedData']['name'][f8]=f9;return f9;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',f8+'\x20[name]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByPrototypes']=function(fb){fb=Array['isArray'](fb)?fb:Array['from'](arguments);var fc=JSON['stringify'](fb);if(BDFDB['WebModules']['cachedData']['proto'][fc])return BDFDB['WebModules']['cachedData']['proto'][fc];else{var fd=BDFDB['WebModules']['find'](fd=>fd['prototype']&&fb['every'](ff=>fd['prototype'][ff]!==undefined));if(fd){BDFDB['WebModules']['cachedData']['proto'][fc]=fd;return fd;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',fc+'\x20[prototypes]\x20not\x20found\x20in\x20WebModules');}};var fg={};fg['AckUtils']=BDFDB['WebModules']['findByProperties']('localAck','bulkAck');fg['APIModule']=BDFDB['WebModules']['findByProperties']('getAPIBaseURL');fg['Animations']=BDFDB['WebModules']['findByProperties']('spring','decay');fg['BadgeUtils']=BDFDB['WebModules']['findByProperties']('getBadgeCountString','getBadgeWidthForValue');fg['ChannelStore']=BDFDB['WebModules']['findByProperties']('getChannel','getChannels');fg['ContextMenuUtils']=BDFDB['WebModules']['findByProperties']('closeContextMenu','openContextMenu');fg['CurrentUserStore']=BDFDB['WebModules']['findByProperties']('getCurrentUser');fg['DirectMessageUtils']=BDFDB['WebModules']['findByProperties']('addRecipient','openPrivateChannel');fg['DiscordConstants']=BDFDB['WebModules']['findByProperties']('Permissions','ActivityTypes');fg['GuildStore']=BDFDB['WebModules']['findByProperties']('getGuild','getGuilds');fg['GuildChannelStore']=BDFDB['WebModules']['findByProperties']('getChannels','getDefaultChannel');fg['GuildUtils']=BDFDB['WebModules']['findByProperties']('transitionToGuildSync');fg['IconUtils']=BDFDB['WebModules']['findByProperties']('getGuildIconURL','getGuildBannerURL');fg['InviteUtils']=BDFDB['WebModules']['findByProperties']('acceptInvite','createInvite');fg['LanguageStore']=BDFDB['WebModules']['findByProperties']('getLanguages','Messages');fg['LastChannelStore']=BDFDB['WebModules']['findByProperties']('getLastSelectedChannelId');fg['LastGuildStore']=BDFDB['WebModules']['findByProperties']('getLastSelectedGuildId');fg['MemberStore']=BDFDB['WebModules']['findByProperties']('getMember','getMembers');fg['MentionUtils']=BDFDB['WebModules']['findByProperties']('getMentionCount','getMentionCounts');fg['MessageStore']=BDFDB['WebModules']['findByProperties']('getMessage','getMessages');fg['MessageUtils']=BDFDB['WebModules']['findByProperties']('parse','isMentioned');fg['MutedUtils']=BDFDB['WebModules']['findByProperties']('isGuildOrCategoryOrChannelMuted');fg['PermissionUtils']=BDFDB['WebModules']['findByProperties']('getChannelPermissions','canUser');fg['SelectChannelUtils']=BDFDB['WebModules']['findByProperties']('selectChannel','selectPrivateChannel');fg['StatusUtils']=BDFDB['WebModules']['findByProperties']('getApplicationActivity','getStatus');fg['StreamingUtils']=BDFDB['WebModules']['findByProperties']('isStreaming');fg['UnreadUtils']=BDFDB['WebModules']['findByProperties']('hasUnread','getUnreadGuilds');fg['UserStore']=BDFDB['WebModules']['findByProperties']('getUser','getUsers');BDFDB['LibraryModules']=Object['assign']({},fg);fg['React']=BDFDB['WebModules']['findByProperties']('createElement','cloneElement');fg['ReactDOM']=BDFDB['WebModules']['findByProperties']('render','findDOMNode');if(fg['React']&&fg['ReactDOM']){BDFDB['React']=Object['assign']({},fg['React'],fg['ReactDOM']);BDFDB['React']['findDOMNodeSafe']=function(fh){if(Node['prototype']['isPrototypeOf'](fh))return fh;if(!fh||!fh['updater']||typeof fh['updater']['isMounted']!=='function'||!fh['updater']['isMounted'](fh))return null;var fi=fg['ReactDOM']['findDOMNode'](fh)||BDFDB['getReactValue'](fh,'child.stateNode');return Node['prototype']['isPrototypeOf'](fi)?fi:null;};};var fj=fg['CurrentUserStore']['getCurrentUser']();BDFDB['myData']=new Proxy(fj||{},{'get':function(fk,fl){if(!fj)fj=fg['CurrentUserStore']['getCurrentUser']();return fj?fj[fl]:null;}});var fm=['before','instead','after'];var fn={'Account':'FluxContainer(Account)','BannedCard':'BannedUser','InvitationCard':'InviteRow','InviteCard':'InviteRow','PopoutContainer':'Popout','MemberCard':'Member','Note':'FluxContainer(Note)','WebhookCard':'Webhook'};var fo={'AuthWrapper':'loginscreen','BannedCard':'guildsettingsbannedcard','ChannelMember':'member','CircleIconButton':'guildbuttoncontainer','EmojiPicker':'emojipicker','FriendsOnline':'friendsonline','FriendRow':'friendsrow','Guild':'guildcontainer','GuildHeader':'guildheader','InstantInviteModal':'invitemodalwrapper','InvitationCard':'invitemodalinviterow','InviteCard':'guildsettingsinvitecard','PopoutContainer':'popout','PrivateChannelCall':'callcurrentcontainer','MemberCard':'guildsettingsmembercard','Message':'message','MessageOptionPopout':'optionpopout','MessageUsername':'messageusername','NameTag':'nametag','SearchResults':'searchresultswrap','TypingUsers':'typing','UserPopout':'userpopout','V2C_List':'_repolist','V2C_PluginCard':'_repoheader','V2C_ThemeCard':'_repoheader'};BDFDB['WebModules']['patch']=function(fp,fq,fr,fs){if(!fp||!fq||!fr||!Object['keys'](fs)['some'](ft=>fm['includes'](ft)))return null;const fu=(typeof fr==='string'?fr:fr['name'])['toLowerCase']();const fv=(fw,fx)=>(...fy)=>{try{return fw(...fy);}catch(fz){console['error']('Error\x20occurred\x20in\x20'+fx,fz);}};if(!fp['BDFDBpatch'])fp['BDFDBpatch']={};fq=Array['isArray'](fq)?fq:Array['of'](fq);for(let fA of fq){if(!fp[fA])fp[fA]=()=>{};const fB=fp[fA];if(!fp['BDFDBpatch'][fA]){fp['BDFDBpatch'][fA]={};for(let fC of fm)fp['BDFDBpatch'][fA][fC]={};fp['BDFDBpatch'][fA]['originalMethod']=fB;fp[fA]=function(){const fD={'thisObject':this,'methodArguments':arguments,'originalMethod':fB,'originalMethodName':fA,'callOriginalMethod':()=>fD['returnValue']=fD['originalMethod']['apply'](fD['thisObject'],fD['methodArguments'])};if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded']&&fp['BDFDBpatch'][fA]){if(!BDFDB['isObjectEmpty'](fp['BDFDBpatch'][fA]['before']))for(let c in BDFDB['sortObject'](fp['BDFDBpatch'][fA]['before'])){fv(fp['BDFDBpatch'][fA]['before'][c],'`before`\x20callback\x20of\x20'+fp[fA]['displayName'])(fD);}if(BDFDB['isObjectEmpty'](fp['BDFDBpatch'][fA]['instead']))fD['callOriginalMethod']();else for(let c in BDFDB['sortObject'](fp['BDFDBpatch'][fA]['instead'])){const fG=fv(fp['BDFDBpatch'][fA]['instead'][c],'`instead`\x20callback\x20of\x20'+fp[fA]['displayName'])(fD);if(fG!==undefined)fD['returnValue']=fG;}if(!BDFDB['isObjectEmpty'](fp['BDFDBpatch'][fA]['after']))for(let c in BDFDB['sortObject'](fp['BDFDBpatch'][fA]['after'])){fv(fp['BDFDBpatch'][fA]['after'][c],'`after`\x20callback\x20of\x20'+fp[fA]['displayName'])(fD);}}else fD['callOriginalMethod']();return fD['returnValue'];};}for(let fI of fm)if(typeof fs[fI]=='function')fp['BDFDBpatch'][fA][fI][fu]=fs[fI];}const fJ=()=>{BDFDB['WebModules']['unpatch'](fp,fq,fr);};if(fr&&typeof fr=='object'){if(!Array['isArray'](fr['patchCancels']))fr['patchCancels']=[];fr['patchCancels']['push'](fJ);}return fJ;};BDFDB['WebModules']['unpatch']=function(fK,fL,fM){if(!fK||!fK['BDFDBpatch'])return;const fN=!fM?null:(typeof fM==='string'?fM:fM['name'])['toLowerCase']();fL=Array['isArray'](fL)?fL:Array['of'](fL);for(let fO of fL){if(fK[fO]&&fK['BDFDBpatch'][fO]){for(let fP of fm){if(fN)delete fK['BDFDBpatch'][fO][fP][fN];else delete fK['BDFDBpatch'][fO][fP];}var fQ=!![];for(let fP of fm)if(!BDFDB['isObjectEmpty'](fK['BDFDBpatch'][fO][fP]))fQ=![];if(fQ){fK[fO]=fK['BDFDBpatch'][fO]['originalMethod'];delete fK['BDFDBpatch'][fO];if(BDFDB['isObjectEmpty'](fK['BDFDBpatch']))delete fK['BDFDBpatch'];}}}};BDFDB['WebModules']['unpatchall']=function(fS){if(BDFDB['isObject'](fS)&&Array['isArray'](fS['patchCancels']))for(let fT of fS['patchCancels'])fT();};BDFDB['WebModules']['forceAllUpdates']=function(fU,fV){fV=fV&&fn[fV]?fn[fV]+'\x20'+fV:fV;if(BDFDB['isObject'](fU)&&BDFDB['isObject'](fU['patchModules'])&&(!fV||fU['patchModules'][fV])){const fW=document['querySelector'](BDFDB['dotCN']['app']);const fX=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(fW){var fY=[];for(let fZ in fU['patchModules']){var g0=Array['isArray'](fU['patchModules'][fZ])?fU['patchModules'][fZ]:Array['of'](fU['patchModules'][fZ]);if(g0['includes']('componentDidUpdate')||g0['includes']('componentDidMount')||g0['includes']('render'))fY['push'](fZ);}fY=fV?fY['filter'](g1=>g1==fV):fY;if(fY['length']>0x0){const g2=BDFDB['getOwnerInstance']({'node':fW,'name':fY,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let fZ in g2)for(let g4 in g2[fZ])BDFDB['WebModules']['initiateProcess'](fU,g2[fZ][g4],fZ,['componentDidUpdate','componentDidMount','render']);if(fX){const g5=BDFDB['getOwnerInstance']({'node':fX,'name':fY,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let fZ in g5)for(let g4 in g5[fZ])BDFDB['WebModules']['initiateProcess'](fU,g5[fZ][g4],fZ,['componentDidUpdate','componentDidMount','render']);}}}}};BDFDB['WebModules']['patchModules']=function(g8){if(BDFDB['isObject'](g8)&&BDFDB['isObject'](g8['patchModules'])){for(let g9 in g8['patchModules']){var ga=fn[g9];if(ga){g8['patchModules'][ga+'\x20'+g9]=g8['patchModules'][g9];delete g8['patchModules'][g9];if(!fo[g9])gd(BDFDB['WebModules']['findByName'](ga),ga+'\x20'+g9);}else if(!fo[g9])gd(BDFDB['WebModules']['findByName'](g9),g9);}for(let g9 in fo){var gc=fn[g9]?fn[g9]+'\x20'+g9:g9;if(sD[fo[g9]]&&g8['patchModules'][gc])gk(fo[g9],gc);}function gd(ge,g9){if(ge){var gc=g9['split']('\x20')[0x0];ge=ge['displayName']==gc?ge:BDFDB['getOwnerInstance']({'instance':ge,'name':gc,'up':!![]});if(ge){var gh=ge['_reactInternalFiber']&&ge['_reactInternalFiber']['type']?ge['_reactInternalFiber']['type']:ge;var gi={};gi[g8['name']=='$BDFDB'?'before':'after']=gj=>{if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded'])BDFDB['WebModules']['initiateProcess'](g8,gj['thisObject'],g9,[gj['originalMethodName']]);};BDFDB['WebModules']['patch'](gh['prototype'],g8['patchModules'][g9],g8,gi);}}}function gk(gl,g9){var gn=![];const go=document['querySelector'](BDFDB['dotCN']['app']);const gp=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(go){var gq=BDFDB['getOwnerInstance']({'node':go,'name':g9,'depth':0x5f5e0ff,'time':0x5f5e0ff});if(gq){gn=!![];gd(gq,g9);}}if(!gn&&gp){var gr=BDFDB['getOwnerInstance']({'node':gp,'name':g9,'depth':0x5f5e0ff,'time':0x5f5e0ff});if(gr){gn=!![];gd(gr,g9);}}if(!gn){var gs=![],gt=new MutationObserver(gu=>{gu['forEach'](gv=>{gv['addedNodes']['forEach'](gw=>{var gx=null;if(!gs&&gw['tagName']&&(gx=BDFDB['containsClass'](gw,BDFDB['disCN'][gl])?gw:gw['querySelector'](BDFDB['dotCN'][gl]))!=null){instance=BDFDB['getReactInstance'](gx);if(gy(instance,g9)){gs=!![];gt['disconnect']();gd(instance,g9);BDFDB['WebModules']['forceAllUpdates'](g8,g9);}}});});});BDFDB['addObserver'](g8,BDFDB['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':gt,'multi':!![]},{'childList':!![],'subtree':!![]});}}function gy(gz,g9){if(!gz)return![];gz=gz['displayName']==g9?gz:BDFDB['getOwnerInstance']({'instance':gz,'name':g9,'up':!![]});return gz&&(g9!='V2C_PluginCard'&&g9!='V2C_ThemeCard'||g9=='V2C_PluginCard'&&BDFDB['checkWhichRepoPage']()=='plugins'||g9=='V2C_ThemeCard'&&BDFDB['checkWhichRepoPage']()=='themes');}}};BDFDB['WebModules']['initiateProcess']=function(gB,gC,gD,gE){if(BDFDB['isObject'](gB)&&gC){gB=gB['name']=='$BDFDB'?t7:gB;gD=(gD['split']('\x20')[0x1]||gD)['replace'](/[^A-z0-9]|_/g,'');gD=gD[0x0]['toUpperCase']()+gD['slice'](0x1);if(typeof gB['process'+gD]=='function'){var gF=BDFDB['React']['findDOMNodeSafe'](gC);if(gF)gB['process'+gD](gC,gF,gE);else setImmediate(()=>{gF=BDFDB['React']['findDOMNodeSafe'](gC);if(gF)gB['process'+gD](gC,gF,gE);});}}};BDFDB['addOnSwitchListener']=function(gG){if(typeof gG['onSwitch']==='function'){BDFDB['removeOnSwitchListener'](gG);var gH=document['querySelector'](BDFDB['dotCN']['guildswrapper']+'\x20+\x20*\x20>\x20'+BDFDB['dotCN']['chatspacer']);if(gH){var gI=new MutationObserver(gJ=>{gJ['forEach'](gK=>{if(gK['target']&&BDFDB['containsClass'](gK['target'],BDFDB['disCN']['nochannel']))gG['onSwitch']();});});var gL=gH['querySelector'](BDFDB['dotCNC']['chat']+BDFDB['dotCN']['nochannel']);if(gL)gI['observe'](gL,{'attributes':!![]});gG['onSwitchFix']=new MutationObserver(gM=>{gM['forEach'](gN=>{if(gN['addedNodes']){gN['addedNodes']['forEach'](gO=>{if(BDFDB['containsClass'](gO,BDFDB['disCN']['chat'],BDFDB['disCN']['nochannel'],![]))gI['observe'](gO,{'attributes':!![]});});}});});gG['onSwitchFix']['observe'](gH,{'childList':!![]});}}};BDFDB['removeOnSwitchListener']=function(gP){if(typeof gP['onSwitch']==='function'&&BDFDB['isObject'](gP['onSwitchFix'])){gP['onSwitchFix']['disconnect']();delete gP['onSwitchFix'];}};BDFDB['addContextListener']=function(gQ){for(let gR of['User','Guild','Channel','GroupDM','Message','Native','UserSettingsCog']){if(typeof gQ['on'+gR+'Context']==='function'||typeof gQ['on'+gR+'ContextMenu']==='function'){if(gR=='GroupDM'){var gS=![],gT=new MutationObserver(gU=>{gU['forEach'](gV=>{gV['addedNodes']['forEach'](gW=>{var gX=null;if(!gS&&gW['tagName']&&(gX=BDFDB['containsClass'](gW,BDFDB['disCN']['contextmenu'])?gW:gW['querySelector'](BDFDB['dotCN']['contextmenu']))!=null){var gY=BDFDB['getReactInstance'](gX);if(gY&&gY['return']&&gY['return']['type']&&gY['return']['type']['displayName']==gR+'ContextMenu'){gS=!![];gT['disconnect']();gZ(gR,gY['return']['type']);h3(gR,gY['return']['stateNode'],gY['stateNode']);}}});});});BDFDB['addObserver'](gQ,BDFDB['dotCN']['appmount'],{'name':'checkForContextObserver','instance':gT,'multi':!![]},{'childList':!![],'subtree':!![]});}else gZ(gR,BDFDB['WebModules']['findByName'](gR+'ContextMenu'));}}function gZ(gR,h1){if(h1&&h1['prototype'])BDFDB['WebModules']['patch'](h1['prototype'],'componentDidMount',gQ,{'after':h2=>{h3(gR,h2['thisObject'],BDFDB['React']['findDOMNodeSafe'](h2['thisObject']));}});}function h3(gR,h5,h6){if(h5&&h6){if(typeof gQ['on'+gR+'Context']==='function')gQ['on'+gR+'Context'](h5,h6);if(typeof gQ['on'+gR+'ContextMenu']==='function')gQ['on'+gR+'ContextMenu'](h5,h6);BDFDB['initElements'](h6,gQ);BDFDB['updateContextPosition'](h6);}}};BDFDB['addSettingsButtonListener']=function(h7){if(BDFDB['isBDv2']()&&typeof h7['getSettingsPanel']==='function'){BDFDB['removeSettingsButtonListener'](h7);BDFDB['appendSettingsButton'](h7);var h8=document['querySelector']('.bd-content-region\x20>\x20.bd-content');if(h8){h7['settingsButtonObserver']=new MutationObserver(h9=>{h9['forEach'](ha=>{if(ha['addedNodes']){ha['addedNodes']['forEach'](hb=>{if(hb['tagName']&&BDFDB['containsClass'](hb,'active'))BDFDB['appendSettingsButton'](h7);});}});});h7['settingsButtonObserver']['observe'](h8,{'childList':!![]});}}};BDFDB['appendSettingsButton']=function(hc){var hd=document['querySelector'](BDFDB['dotCN']['_bdv2card']+'[data-plugin-id='+hc['id']+']');if(hd){var he=BDFDB['htmlToElement']('');hd['insertBefore'](he,hd['querySelector'](BDFDB['d']['_bdv2button']));he['addEventListener']('mouseenter',()=>{BDFDB['createTooltip']('Settings',he,{'type':'top'});BDFDB['addClass'](he,BDFDB['disCN']['_bdv2tooltipopen']);});he['addEventListener']('mouseleave',()=>{BDFDB['removeClass'](he,BDFDB['disCN']['_bdv2tooltipopen']);});he['addEventListener']('click',()=>{var hf=BDFDB['htmlToElement'](''+hc['name']+'\x20Settings
');var hg=hc['getSettingsPanel']();hf['querySelector'](BDFDB['dotCN']['modalsubinner'])['appendChild'](typeof hg=='string'?BDFDB['htmlToElement'](hg):hg);if(typeof hc['onSettingsClosed']==='function')BDFDB['addChildEventListener'](hf,'click',BDFDB['dotCNC']['modalclose']+BDFDB['dotCN']['backdrop'],()=>{hc['onSettingsClosed']();});BDFDB['appendModal'](hf);});}};BDFDB['removeSettingsButtonListener']=function(hh){if(BDFDB['isBDv2']()&&typeof hh['settingsButtonObserver']==='object'){BDFDB['removeEles']('.bd-card[data-plugin-id='+hh['id']+']\x20.BDFDB-settingsbutton');hh['settingsButtonObserver']['disconnect']();delete hh['settingsButtonObserver'];}};var hi={},hj=fg['LanguageStore']?Object['assign']({},fg['LanguageStore']['_proxyContext']['defaultMessages']):{};BDFDB['LanguageStrings']=new Proxy(hj,{'get':function(hk,hl){var hm=fg['LanguageStore']['Messages'][hl];if(!hm)console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hl+'\x20not\x20found\x20in\x20BDFDB.LanguageStrings');else{var hn=typeof hm=='object'?hm['format'](Object['assign']({},hi)):hm;if(typeof hn=='string')return hn;else if(Array['isArray'](hn)){var ho='';for(let hp of hn){if(typeof hp=='string')ho+=BDFDB['encodeToHTML'](hp);else if(BDFDB['isObject'](hp)&&hp['props'])ho+='<'+hp['type']+'>'+BDFDB['encodeToHTML'](hp['props']['children'][0x0]['toString']())+''+hp['type']+'>';}return ho;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hl+'\x20could\x20not\x20be\x20parsed\x20from\x20BDFDB.LanguageStrings');}return'';}});BDFDB['LanguageStringsCheck']=new Proxy(hj,{'get':function(hq,hr){return fg['LanguageStore']['Messages'][hr];}});BDFDB['LanguageStringsFormat']=function(hs,ht){if(hs&&ht){var hu=fg['LanguageStore']['Messages'][hs];if(hu&&typeof hu=='object'&&typeof hu['format']=='function'){try{var hv={};for(let hw in hi)hv[hw]=ht;var hx=hu['format'](hv);if(typeof hx=='string')return hx;else if(Array['isArray'](hx)){var hy='';for(let hz of hx){if(typeof hz=='string')hy+=BDFDB['encodeToHTML'](hz);else if(BDFDB['isObject'](hz)&&hz['props'])hy+='<'+hz['type']+'>'+BDFDB['encodeToHTML'](hz['props']['children'][0x0]['toString']())+''+hz['type']+'>';}return hy;}}catch(hA){console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hs+'\x20failed\x20to\x20format\x20string\x20in\x20BDFDB.LanguageStrings');}}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hs+'\x20is\x20not\x20a\x20formatable\x20string\x20in\x20BDFDB.LanguageStrings');}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hs+'\x20enter\x20a\x20valid\x20key\x20and\x20value\x20to\x20format\x20the\x20string');return'';};if(fg['LanguageStore'])for(let hB in hj){try{BDFDB['LanguageStrings'][hB];}catch(hC){let hD=hC['toString']()['split']('for:\x20')[0x1];if(hD&&typeof hD=='string'&&!hi[hD])hi[hD]='{{'+hD['toLowerCase']()+'}}';}};BDFDB['equals']=function(hE,hF,hG){var hH=-0x1;if(hG===undefined||typeof hG!=='boolean')hG=![];return hI(hE,hF);function hI(hJ,hK){hH++;var hL=!![];if(hH>0x3e8)hL=null;else{if(typeof hJ!==typeof hK)hL=![];else if(typeof hJ==='undefined')hL=!![];else if(typeof hJ==='symbol')hL=!![];else if(typeof hJ==='boolean')hL=hJ==hK;else if(typeof hJ==='string')hL=hJ==hK;else if(typeof hJ==='number'){if(isNaN(hJ)||isNaN(hK))hL=isNaN(hJ)==isNaN(hK);else hL=hJ==hK;}else if(!hJ&&!hK)hL=!![];else if(!hJ||!hK)hL=![];else if(typeof hJ==='function'||typeof hJ==='object'){var hM=Object['getOwnPropertyNames'](hJ);var hN=Object['getOwnPropertyNames'](hK);if(hM['length']!==hN['length'])hL=![];else for(let hO=0x0;hL===!![]&&hOi3['length']?i6:i3['length'];};BDFDB['readServerList']=function(){var i7=[],i8=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':['Guild','GuildIcon'],'all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let i9 in i8)if(i8[i9]['props']&&i8[i9]['props']['guild'])i7['push'](Object['assign'](new i8[i9]['props']['guild']['constructor'](i8[i9]['props']['guild']),{'div':i8[i9]['handleContextMenu']?BDFDB['React']['findDOMNodeSafe'](i8[i9]):BDFDB['createServerDivCopy'](i8[i9]['props']['guild']),'instance':i8[i9]}));return i7;};BDFDB['readUnreadServerList']=function(ia){var ib=[];for(let ic of ia===undefined||!Array['isArray'](ia)?BDFDB['readServerList']():ia){if(!ic)return null;let c=Node['prototype']['isPrototypeOf'](ic)?BDFDB['getServerID'](ic):typeof ic=='object'?ic['id']:ic;c=typeof c=='number'?c['toFixed']():c;if(c&&(fg['UnreadUtils']['hasUnread'](c)||fg['MentionUtils']['getMentionCount'](c)>0x0))ib['push'](ic);}return ib;};BDFDB['readMutedServerList']=function(ie){var ig=[];for(let ih of ie===undefined||!Array['isArray'](ie)?BDFDB['readServerList']():ie){if(!ih)return null;let c=Node['prototype']['isPrototypeOf'](ih)?BDFDB['getServerID'](ih):typeof ih=='object'?ih['id']:ih;c=typeof c=='number'?c['toFixed']():c;if(c&&fg['MutedUtils']['isGuildOrCategoryOrChannelMuted'](c))ig['push'](ih);}return ig;};BDFDB['getSelectedServer']=function(){var ij=fg['GuildStore']['getGuild'](fg['LastGuildStore']['getGuildId']());if(ij)return BDFDB['getServerData'](ij['id'])||Object['assign'](new ij['constructor'](ij),{'div':null,'instance':null});else return null;};BDFDB['getServerID']=function(ik){if(!Node['prototype']['isPrototypeOf'](ik)||!BDFDB['getReactInstance'](ik))return;let il=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],ik);if(!il)return;var im=il['querySelector'](BDFDB['dotCN']['guildiconwrapper']);var c=im&&im['href']?im['href']['split']('/')['slice'](-0x2)[0x0]:null;return c&&!isNaN(parseInt(c))?c['toString']():null;};BDFDB['getServerDiv']=function(ip){if(!ip)return null;if(Node['prototype']['isPrototypeOf'](ip))return BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],ip);else{let c=typeof ip=='object'?ip['id']:ip;if(c)return BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],document['querySelector'](BDFDB['dotCNS']['guilds']+BDFDB['dotCN']['guildiconwrapper']+'[href*=\x22/channels/'+c+'\x22]'))||BDFDB['createServerDivCopy'](c,{'pill':!![],'hover':!![],'click':!![],'menu':!![]});}return null;};BDFDB['getServerData']=function(ir){if(!ir)return null;let c=Node['prototype']['isPrototypeOf'](ir)?BDFDB['getServerID'](ir):typeof ir=='object'?ir['id']:ir;c=typeof c=='number'?c['toFixed']():c;for(let it of BDFDB['readServerList']())if(it&&it['id']==c)return it;return null;};BDFDB['createServerDivCopy']=function(iu,iv={'pill':![],'hover':![],'click':![],'menu':![],'size':null}){let c=typeof iu=='object'?iu['id']:iu;let ix=c?fg['GuildStore']['getGuild'](c):null;if(ix){let iy=Math['round'](Math['random']()*0x2386f26fc10000);let iz=BDFDB['htmlToElement']('');let iA=iz['querySelector'](BDFDB['dotCN']['guildcontainer']);BDFDB['toggleEles'](iz['querySelector'](BDFDB['dotCN']['guildpillwrapper']),iv['pill']);if(iv['hover']){let iB=iz['querySelector'](BDFDB['dotCN']['guildiconwrapper']);let iC=iz['querySelector'](BDFDB['dotCN']['guildpillitem']);let iD=iC['style']['getPropertyValue']('opacity')!=0x0;let iE=new fg['Animations']['Value'](0x0);iE['interpolate']({'inputRange':[0x0,0x1],'outputRange':[0x32,0x1e]})['addListener'](iF=>{iA['style']['setProperty']('border-radius',iF['value']+'%');});let iG=new fg['Animations']['Value'](0x0);iG['interpolate']({'inputRange':[0x0,0x1],'outputRange':[0x8,0x14]})['addListener'](iH=>{iC['style']['setProperty']('height',iH['value']+'px');});let iI=new fg['Animations']['Value'](0x0);iI['interpolate']({'inputRange':[0x0,0x1],'outputRange':[0x0,0.7]})['addListener'](iJ=>{iC['style']['setProperty']('opacity',''+iJ['value']);});let iK=iL=>{fg['Animations']['parallel']([fg['Animations']['timing'](iE,{'toValue':iL,'duration':0xc8}),fg['Animations']['spring'](iG,{'toValue':iL,'friction':0x5})])['start']();};let iM=iN=>{fg['Animations']['parallel']([fg['Animations']['timing'](iI,{'toValue':iN,'duration':0xc8})])['start']();};iA['addEventListener']('mouseenter',()=>{iD=iC['style']['getPropertyValue']('opacity')!=0x0;if(fg['LastGuildStore']['getGuildId']()!=ix['id']){iK(0x1);if(!iD)iM(0x1);}});iA['addEventListener']('mouseleave',()=>{if(fg['LastGuildStore']['getGuildId']()!=ix['id']){iK(0x0);if(!iD)iM(0x0);}});}if(iv['click'])iA['addEventListener']('click',iO=>{BDFDB['stopEvent'](iO);fg['GuildUtils']['transitionToGuildSync'](ix['id']);if(typeof iv['click']=='function')iv['click']();});if(iv['menu'])iA['addEventListener']('contextmenu',iP=>{BDFDB['openGuildContextMenu'](ix['id'],iP);if(typeof iv['menu']=='function')iv['menu']();});if(iv['size']){iz['style']['setProperty']('margin','0','important');iz['style']['setProperty']('width',iv['size']+'px','important');iz['style']['setProperty']('height',iv['size']+'px','important');}return iz;}else return null;};BDFDB['openGuildContextMenu']=function(iQ,iR=BDFDB['mousePosition']){let c=Node['prototype']['isPrototypeOf'](iQ)?BDFDB['getServerID'](iQ):typeof iQ=='object'?iQ['id']:iQ;let iT=fg['GuildStore']['getGuild'](c);if(iT)fg['ContextMenuUtils']['openContextMenu'](iR,function(iR){return BDFDB['React']['createElement'](BDFDB['WebModules']['findByName']('GuildContextMenu'),Object['assign']({},iR,{'type':fg['DiscordConstants']['ContextMenuTypes']['GUILD_ICON_BAR'],'guild':iT,'badge':fg['MentionUtils']['getMentionCount'](iT['id']),'link':fg['DiscordConstants']['Routes']['CHANNEL'](iT['id'],fg['LastChannelStore']['getChannelId'](iT['id'])),'selected':iT['id']==fg['LastGuildStore']['getGuildId']()}));});};BDFDB['readChannelList']=function(){var iV=[],iW=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['channels']),'name':['ChannelCategoryItem','ChannelItem','PrivateChannel'],'all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let iX in iW)if(iW[iX]['props']&&!iW[iX]['props']['ispin']&&iW[iX]['props']['channel']&&iW[iX]['_reactInternalFiber']['return']){var iY=BDFDB['React']['findDOMNodeSafe'](iW[iX]);iY=iY&&BDFDB['containsClass'](iY['parentElement'],BDFDB['disCN']['categorycontainerdefault'],BDFDB['disCN']['channelcontainerdefault'],![])?iY['parentElement']:iY;iV['push'](Object['assign'](new iW[iX]['props']['channel']['constructor'](iW[iX]['props']['channel']),{'div':iY,'instance':iW[iX]}));}return iV;};BDFDB['getSelectedChannel']=function(){var iZ=fg['ChannelStore']['getChannel'](fg['LastChannelStore']['getChannelId']());if(iZ)return BDFDB['getChannelData'](iZ['id'])||Object['assign'](new iZ['constructor'](iZ),{'div':null,'instance':null});else return null;};BDFDB['getChannelID']=function(j0){if(!Node['prototype']['isPrototypeOf'](j0)||!BDFDB['getReactInstance'](j0))return;j0=BDFDB['getParentEle'](BDFDB['dotCNC']['categorycontainerdefault']+BDFDB['dotCNC']['channelcontainerdefault']+BDFDB['dotCN']['dmchannel'],j0);if(!j0)return;var j1=BDFDB['getKeyInformation']({'node':j0,'key':'channel'});return j1?j1['id']['toString']():null;};BDFDB['getChannelDiv']=function(j2){if(!j2)return null;let j3=BDFDB['getChannelData'](j2);return j3?j3['div']:null;};BDFDB['getChannelData']=function(j4){if(!j4)return null;let c=Node['prototype']['isPrototypeOf'](j4)?BDFDB['getChannelID'](j4):typeof j4=='object'?j4['id']:j4;c=typeof c=='number'?c['toFixed']():c;for(let j6 of BDFDB['readChannelList']())if(j6&&j6['id']==c)return j6;return null;};BDFDB['readDmList']=function(){var j7=[],j8=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':'DirectMessage','all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let j9 in j8)if(j8[j9]['props']&&j8[j9]['props']['channel']&&j8[j9]['_reactInternalFiber']['child'])j7['push'](Object['assign'](new j8[j9]['props']['channel']['constructor'](j8[j9]['props']['channel']),{'div':BDFDB['React']['findDOMNodeSafe'](j8[j9]),'instance':j8[j9]}));return j7;};BDFDB['getDmID']=function(ja){if(!Node['prototype']['isPrototypeOf'](ja)||!BDFDB['getReactInstance'](ja))return;let jb=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],ja);if(!jb)return;var jc=jb['querySelector'](BDFDB['dotCN']['guildiconwrapper']);var c=jc&&jc['href']?jc['href']['split']('/')['slice'](-0x1)[0x0]:null;return c&&!isNaN(parseInt(c))?c['toString']():null;};BDFDB['getDmDiv']=function(je){if(!je)return null;if(Node['prototype']['isPrototypeOf'](je)){var jf=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],je);return jf?jf['parentElement']:jf;}else{let c=typeof je=='object'?je['id']:je;if(c){var jf=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],document['querySelector'](BDFDB['dotCNS']['guilds']+BDFDB['dotCN']['dmpill']+'\x20+\x20*\x20'+BDFDB['dotCN']['guildiconwrapper']+'[href*=\x22/channels/@me/'+c+'\x22]'));return jf&&BDFDB?jf['parentElement']:jf;}}return null;};BDFDB['getDmData']=function(ji){if(!ji)return null;let c=Node['prototype']['isPrototypeOf'](ji)?BDFDB['getDmID'](ji):typeof ji=='object'?ji['id']:ji;c=typeof c=='number'?c['toFixed']():c;for(let jk of BDFDB['readDmList']())if(jk&&jk['id']==c)return jk;return null;};BDFDB['markChannelAsRead']=function(jl){if(!jl)return;var jm=[];for(let jn of jl=Array['isArray'](jl)?jl:typeof jl=='string'||typeof jl=='number'?Array['of'](jl):Array['from'](jl)){let c=Node['prototype']['isPrototypeOf'](jn)?BDFDB['getChannelID'](jn)||BDFDB['getDmID'](jn):jn&&typeof jn=='object'?jn['id']:jn;if(c)jm['push'](c);}if(jm['length']>0x0)fg['AckUtils']['bulkAck'](jm);};BDFDB['markGuildAsRead']=function(jp){if(!jp)return;var jq=[];for(let jr of Array['isArray'](jp)?jp:typeof jp=='string'||typeof jp=='number'?Array['of'](jp):Array['from'](jp)){let c=Node['prototype']['isPrototypeOf'](jr)?BDFDB['getServerID'](jr):jr&&typeof jr=='object'?jr['id']:jr;let jt=c?fg['GuildChannelStore']['getChannels'](c):null;if(jt)for(let ju in jt)if(Array['isArray'](jt[ju]))for(let jv of jt[ju])jq['push'](jv['channel']['id']);}if(jq['length']>0x0)fg['AckUtils']['bulkAck'](jq);};BDFDB['saveAllData']=function(jw,jx,jy){var jz=require('fs'),jA,jB;if(!BDFDB['isBDv2']()){jB=typeof jx==='string'?jx:jx['name'];jA=require('path')['join'](BDFDB['getPluginsFolder'](),jB+'.config.json');}else{jB=typeof jx==='string'?jx['toLowerCase']():null;var jC=jB?BDFDB['Plugins'][jB]?BDFDB['Plugins'][jB]['contentPath']:null:jx['contentPath'];if(!jC)return;jA=require('path')['join'](jC,'settings.json');}var jD=jz['existsSync'](jA);var jE=!jD?{}:typeof BDFDB['cachedData'][jB]!=='undefined'?BDFDB['cachedData'][jB]:BDFDB['readConfig'](jA);jE[jy]=jw;if(BDFDB['isObjectEmpty'](jE[jy]))delete jE[jy];if(BDFDB['isObjectEmpty'](jE)){delete BDFDB['cachedData'][jB];if(jD)jz['unlinkSync'](jA);}else{BDFDB['cachedData'][jB]=jE;jz['writeFileSync'](jA,JSON['stringify'](jE,null,'\x09'));}};BDFDB['loadAllData']=function(jF,jG){var jH=require('fs'),jI,jJ;if(!BDFDB['isBDv2']()){jJ=typeof jF==='string'?jF:jF['name'];jI=require('path')['join'](BDFDB['getPluginsFolder'](),jJ+'.config.json');}else{jJ=typeof jF==='string'?jF['toLowerCase']():null;var jK=jJ?BDFDB['Plugins'][jJ]?BDFDB['Plugins'][jJ]['contentPath']:null:jF['contentPath'];if(!jK)return{};jI=require('path')['join'](jK,'settings.json');}if(!jH['existsSync'](jI)){delete BDFDB['cachedData'][jJ];return{};}var jL=typeof BDFDB['cachedData'][jJ]!=='undefined'?BDFDB['cachedData'][jJ]:BDFDB['readConfig'](jI);BDFDB['cachedData'][jJ]=jL;return jL&&typeof jL[jG]!=='undefined'?jL[jG]:{};};BDFDB['removeAllData']=function(jM,jN){var jO=require('fs'),jP,jQ;if(!BDFDB['isBDv2']()){jQ=typeof jM==='string'?jM:jM['name'];jP=require('path')['join'](BDFDB['getPluginsFolder'](),jQ+'.config.json');}else{jQ=typeof jM==='string'?jM['toLowerCase']():null;var jR=jQ?BDFDB['Plugins'][jQ]?BDFDB['Plugins'][jQ]['contentPath']:null:jM['contentPath'];if(!jR)return;jP=require('path')['join'](jR,'settings.json');}var jS=jO['existsSync'](jP);var jT=!jS?{}:typeof BDFDB['cachedData'][jQ]!=='undefined'?BDFDB['cachedData'][jQ]:BDFDB['readConfig'](jP);delete jT[jN];if(BDFDB['isObjectEmpty'](jT)){delete BDFDB['cachedData'][jQ];if(jS)jO['unlinkSync'](jP);}else{BDFDB['cachedData'][jQ]=jT;jO['writeFileSync'](jP,JSON['stringify'](jT,null,'\x09'));}};BDFDB['getAllData']=function(jU,jV){if(!BDFDB['isObject'](jU)||!jU['defaults']||!jU['defaults'][jV])return{};var jW=BDFDB['loadAllData'](jU,jV),jX={},jY=![];for(let jZ in jU['defaults'][jV]){if(jW[jZ]==null){jX[jZ]=jU['defaults'][jV][jZ]['value'];jY=!![];}else jX[jZ]=jW[jZ];}if(jY)BDFDB['saveAllData'](jX,jU,jV);return jX;};BDFDB['readConfig']=function(k0){try{return JSON['parse'](require('fs')['readFileSync'](k0));}catch(k1){return{};}};BDFDB['saveData']=function(c,k3,k4,k5){var k6=BDFDB['loadAllData'](k4,k5);k6[c]=k3;BDFDB['saveAllData'](k6,k4,k5);};BDFDB['loadData']=function(c,k8,k9){var ka=BDFDB['loadAllData'](k8,k9);var kb=ka[c];return kb===undefined?null:kb;};BDFDB['removeData']=function(c,kd,ke){var kf=BDFDB['loadAllData'](kd,ke);delete kf[c];BDFDB['saveAllData'](kf,kd,ke);};BDFDB['getData']=function(c,kh,ki){var kj=BDFDB['getAllData'](kh,ki);var kk=kj[c];return kk===undefined?null:kk;};BDFDB['appendWebScript']=function(kl,km){if(!km&&!document['head']['querySelector']('bd-head\x20bd-scripts'))document['head']['appendChild'](BDFDB['htmlToElement'](''));km=km||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];km=Node['prototype']['isPrototypeOf'](km)?km:document['head'];BDFDB['removeWebScript'](kl,km);km['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebScript']=function(kn,ko){ko=ko||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];ko=Node['prototype']['isPrototypeOf'](ko)?ko:document['head'];BDFDB['removeEles'](ko['querySelectorAll']('script[src=\x22'+kn+'\x22]'));};BDFDB['appendWebStyle']=function(kp,kq){if(!kq&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));kq=kq||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];kq=Node['prototype']['isPrototypeOf'](kq)?kq:document['head'];BDFDB['removeWebStyle'](kp,kq);kq['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebStyle']=function(kr,ks){ks=ks||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];ks=Node['prototype']['isPrototypeOf'](ks)?ks:document['head'];BDFDB['removeEles'](ks['querySelectorAll']('link[href=\x22'+kr+'\x22]'));};BDFDB['appendLocalStyle']=function(c,ku,kv){if(!kv&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));kv=kv||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];kv=Node['prototype']['isPrototypeOf'](kv)?kv:document['head'];BDFDB['removeLocalStyle'](c,kv);kv['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeLocalStyle']=function(c,kx){kx=kx||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];kx=Node['prototype']['isPrototypeOf'](kx)?kx:document['head'];BDFDB['removeEles'](kx['querySelectorAll']('style[id=\x22'+c+'CSS\x22]'));};BDFDB['formatBytes']=function(ky,kz){ky=parseInt(ky);if(isNaN(ky)||ky<0x0)return'0\x20Bytes';if(ky==0x1)return'1\x20Byte';var kA=Math['floor'](Math['log'](ky)/Math['log'](0x400));return parseFloat((ky/Math['pow'](0x400,kA))['toFixed'](kz<0x1?0x0:kz>0x14?0x14:kz||0x2))+'\x20'+['Bytes','KB','MB','GB','TB','PB','EB','ZB','YB'][kA];};BDFDB['colorCONVERT']=function(kB,kC,kD){if(!kB)return null;kC=kC===undefined||!kC?kC='RGBCOMP':kC['toUpperCase']();kD=kD===undefined||!kD||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP']['includes'](kD['toUpperCase']())?BDFDB['colorTYPE'](kB):kD['toUpperCase']();if(kC=='RGBCOMP'){switch(kD){case'RGBCOMP':if(kB['length']==0x3)return ld(kB);else if(kB['length']==0x4){var kE=lg(kB['pop']());return ld(kB)['concat'](kE);}case'RGB':return ld(kB['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':var kF=kB['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var kE=lg(kF['pop']());return ld(kF)['concat'](kE);case'HSLCOMP':if(kB['length']==0x3)return BDFDB['colorCONVERT']('hsl('+kB['join'](',')+')','RGBCOMP');else if(kB['length']==0x4){var kE=lg(jg['pop']());return BDFDB['colorCONVERT']('hsl('+jg['join'](',')+')','RGBCOMP')['concat'](kE);}case'HSL':var kI=lk(kB['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var kJ,kK,kL,kM,kN,kO,kP,kQ;var kR=kI[0x0]/0x168,kS=parseInt(kI[0x1])/0x64,kT=parseInt(kI[0x2])/0x64;kM=Math['floor'](kR*0x6);kN=kR*0x6-kM;kO=kT*(0x1-kS);kP=kT*(0x1-kN*kS);kQ=kT*(0x1-(0x1-kN)*kS);switch(kM%0x6){case 0x0:kJ=kT,kK=kQ,kL=kO;break;case 0x1:kJ=kP,kK=kT,kL=kO;break;case 0x2:kJ=kO,kK=kT,kL=kQ;break;case 0x3:kJ=kO,kK=kP,kL=kT;break;case 0x4:kJ=kQ,kK=kO,kL=kT;break;case 0x5:kJ=kT,kK=kO,kL=kP;break;}return[Math['round'](kJ*0xff),Math['round'](kK*0xff),Math['round'](kL*0xff)];case'HSLA':var kI=kB['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var kE=lg(kI['pop']());return BDFDB['colorCONVERT']('hsl('+kI['join'](',')+')','RGBCOMP')['concat'](kE);case'HEX':var kW=/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$|^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i['exec'](kB);return[parseInt(kW[0x1]+kW[0x1]||kW[0x4],0x10)['toString'](),parseInt(kW[0x2]+kW[0x2]||kW[0x5],0x10)['toString'](),parseInt(kW[0x3]+kW[0x3]||kW[0x6],0x10)['toString']()];default:return null;}}else{var kX=kD=='RGBCOMP'?kB:BDFDB['colorCONVERT'](kB,'RGBCOMP',kD);if(kX)switch(kC){case'RGB':return'rgb('+ld(kX['slice'](0x0,0x3))['join'](',')+')';case'RGBA':kX=kX['slice'](0x0,0x4);var kE=kX['length']==0x4?lg(kX['pop']()):0x1;return'rgba('+ld(kX)['concat'](kE)['join'](',')+')';case'HSLCOMP':var kE=kX['length']==0x4?lg(kX['pop']()):null;var kI=lk(BDFDB['colorCONVERT'](kX,'HSL')['replace'](/\s/g,'')['split'](','));return kE?kI['concat'](kE):kI;case'HSL':var kJ=lb(kX[0x0]),kK=lb(kX[0x1]),kL=lb(kX[0x2]);var l4=Math['max'](kJ,kK,kL),l5=Math['min'](kJ,kK,kL),l6=l4-l5,kR,kS=l4===0x0?0x0:l6/l4,kT=l4/0xff;switch(l4){case l5:kR=0x0;break;case kJ:kR=kK-kL+l6*(kK0xff?0xff:kN<0x0?0x0:kN;};function ld(kF){return kF['map'](kN=>{return lb(kN);});};function lg(kE){kE=kE['toString']();kE=(kE['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(kE['replace'](/[^0-9\.\-]/g,''));return isNaN(kE)||kE>0x1?0x1:kE<0x0?0x0:kE;};function li(lj){lj=parseFloat(lj['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(lj)||lj>0x64?0x64:lj<0x0?0x0:lj)+'%';};function lk(kF){let kR=parseFloat(kF['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));kR=isNaN(kR)||kR>0x168?0x168:kR<0x0?0x0:kR;return[kR]['concat'](kF['map'](ln=>{return li(ln);}));};};var lo=(lp,lq,lr)=>{var ls=BDFDB['colorCONVERT'](lp,'RGBCOMP');if(ls){lq=lq['toString']();lq=(lq['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(lq['replace'](/[^0-9\.\-]/g,''));lq=isNaN(lq)||lq>0x1?0x1:lq<0x0?0x0:lq;ls[0x3]=lq;lr=(lr||BDFDB['colorTYPE'](lp))['toUpperCase']();lr=lr=='HSL'||lr=='RGB'?lr+'A':lr;return BDFDB['colorCONVERT'](ls,lr);}return null;};BDFDB['colorSETALPHA']=function(lt,lu,lv){if(BDFDB['isObject'](lt)){var lw={};for(let lx in lt)lw[lx]=lo(lt[lx],lu,lv);return lw;}else return lo(lt,lu,lv);};var ly=(lz,lA,lB)=>{var lC=BDFDB['colorCONVERT'](lz,'RGBCOMP');if(lC){if(parseInt(lA)!==lA){lA=lA['toString']();lA=(lA['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(lA['replace'](/[^0-9\.\-]/g,''));lA=isNaN(lA)?0x0:lA;return BDFDB['colorCONVERT']([Math['round'](lC[0x0]*(0x1+lA)),Math['round'](lC[0x1]*(0x1+lA)),Math['round'](lC[0x2]*(0x1+lA))],lB||BDFDB['colorTYPE'](lz));}else return BDFDB['colorCONVERT']([Math['round'](lC[0x0]+lA),Math['round'](lC[0x1]+lA),Math['round'](lC[0x2]+lA)],lB||BDFDB['colorTYPE'](lz));}return null;};BDFDB['colorCHANGE']=function(lD,lE,lF){lE=parseFloat(lE);if(lD&&typeof lE=='number'&&!isNaN(lE)){if(BDFDB['isObject'](lD)){var lG={};for(let lH in lD)lG[lH]=ly(lD[lH],lE,lF);return lG;}else return ly(lD,lE,lF);}return null;};BDFDB['colorINV']=function(lI,lJ){if(lI){var lK=BDFDB['colorCONVERT'](lI,'RGBCOMP');if(lK)return BDFDB['colorCONVERT']([0xff-lK[0x0],0xff-lK[0x1],0xff-lK[0x2]],lJ||BDFDB['colorTYPE'](lI));}return null;};BDFDB['colorCOMPARE']=function(lL,lM){if(lL&&lM){lL=BDFDB['colorCONVERT'](lL,'RGBCOMP');lM=BDFDB['colorCONVERT'](lM,'RGBCOMP');if(lL&&lM)return BDFDB['equals'](lL,lM);}return null;};BDFDB['colorISBRIGHT']=function(lN,lO=0xa0){lN=BDFDB['colorCONVERT'](lN,'RGBCOMP');if(!lN)return![];return parseInt(lO)