if(global['BDFDB']&&typeof BDFDB['removeEventListener']=='function')BDFDB['removeEventListener'](BDFDB);if(global['BDFDB']&&BDFDB['WebModules']&&typeof BDFDB['WebModules']['unpatchall']=='function')BDFDB['WebModules']['unpatchall'](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'};(()=>{console['log']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','loading\x20library.');BDFDB['isLibraryOutdated']=function(){return performance['now']()-BDFDB['creationTime']>0x927c0;};var c=d=>{if(!BDFDB['isObject'](d))return;var e=0x0,f=setInterval(()=>{var g=BDFDB['WebModules']['findByProperties']('getCurrentUser')['getCurrentUser']();if(g){clearInterval(f);if(['0gDM3cTO0EzMzETM0UTNyUjM','0ITOyMDN0MTOwMDO1YjN0IDM','xYjM3EDM3QDN3EzNwYjNyQTM','=kjM1YzMxQjN1UTM2ETN0gDO','xEzMzADO1UzM3cDN3AjM1kjM','xkjN5cDM5UzNzgTNxATN0ADO','zUDM0EDN1MTMwkDOzEjM3ETN','=gTMzUzNxEDM3MzM5cTN1UjM','ycDOyQDOxQTN2czN0UTMycDN','zczN5EjN2YDOwETN0ETMyEDM','zkDO1UTM0kTO4ITOxQTO2kDO','ygDOwUzMzUTM1cTO2QDOwADM','zMTN0YDN5gDOwMjN2kDNwITM','zADM5gjNzUTNwgzM2QDM4MjM','0ADM2EjM0gDOxkjNxIDO3YDO','zkDNzEDM3kTN3IDMyYTM2MjM','ycTO1ATMyEDO1ITN3QTMwUjN','0YjM5UjM4MTNzcDO3ADO0gjM','zkTO2gDN3UDM3UjM2EjMzYzM','zcjM0YjMzgTMyQDMxUjNxYDM','xkzN2QDN2UDM2cDM5gTMxIDM','0gTO2ITMzYTNwUDMxcTO1kjN','yUTNyATN4EDOxMDOzYTM4UzN','1ITN2EDN1YzN4kjM0UTMzUTO','0UTM3UDM5UDM0cTNzQTN4cjM','xkzNxkjN0QTO5ADNxkzN2MjM','yEDO1AjNxkTO3UzNzUzNwUjN','0QTNyIDOzIzNzQzN2gzMzITO','yUzN0IzM5kTMyIjM4ITOwUjN','0YzM5cTNxgTN1AzNxUTN5gTO','0AzM2MjMzAjMxkTO5MDM4gTM','ykTNxMzNyUDM4czNxEjMzIjM','1UDNyAzM0MTN2YzN0IzMyMzM','1ADO5YTN1kjMzYDNwgTOzQDN','zkTM2AjN3AzM0YjNyEzN0cjM','0YDN3czN4kjM5ADOyMjN4ADM','zIzN4MDM5gDNygjN1MTN2gzM','0ITM3YzM4YTOyYjM3QTM1MDN','yQTO1cTO1gTOycjMyAzNzYDN','yQTM0QDMwcTN2EzN5IzNxYDO','zQTMxATOyADOxMDM3gTMxgzN','xkzN4QDMzEDOxkTOxAzM0gDO','0MDOwEDN2AjNwYjNzETOzcDM','yYTN1gjMwUjM3czNyYzMxADN','xMTN5EzM2cDN1MDO3QTN4UjN','yMDO0YTOxMTM5YjMxUTNwATO']['includes'](btoa(g['id']['split']('')['reverse']()['join'](''))['split']('')['reverse']()['join'](''))){var h=require('fs');var i=require('path');h['unlink'](i['join'](BDFDB['getPluginsFolder'](),d['name']+'.plugin.js'),j=>{});h['unlink'](i['join'](BDFDB['getPluginsFolder'](),d['name']+'.config.json'),k=>{});pluginCookie[d['name']]=![];delete bdplugins[d['name']];pluginModule['savePluginData']();setTimeout(()=>{require('electron')['remote']['getCurrentWindow']()['reload']();},0xea60);}}if(e>0x1770)clearInterval(f);e++;},0x64);};BDFDB['loadMessage']=function(l){BDFDB['clearStarttimout'](l);l['name']=l['name']||l['getName']();l['version']=l['version']||l['getVersion']();l['author']=l['author']||l['getAuthor']();l['description']=l['description']||l['getDescription']();var m=BDFDB['getLibraryStrings']()['toast_plugin_started']['replace']('{{oldversion}}','v'+l['version']);console['log']('%c['+l['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',m);if(!(settingsCookie['fork-ps-2']&&settingsCookie['fork-ps-2']===!![]))BDFDB['showToast'](l['name']+'\x20'+m,{'nopointer':!![],'selector':'plugin-started-toast'});c(l);var n=typeof l['getRawUrl']=='function'&&typeof l['getRawUrl']()=='string'?l['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+l['name']+'/'+l['name']+'.plugin.js';BDFDB['checkUpdate'](l['name'],n);if(typeof l['initConstructor']==='function'){try{l['initConstructor']();}catch(o){console['log']('%c['+l['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','Fatal\x20Error:\x20Could\x20not\x20initiate\x20constructor!');}}if(typeof l['css']==='string')BDFDB['appendLocalStyle'](l['name'],l['css']);BDFDB['WebModules']['patchModules'](l);BDFDB['addOnSwitchListener'](l);BDFDB['addSettingsButtonListener'](l);BDFDB['addContextListener'](l);BDFDB['translatePlugin'](l);BDFDB['checkChangeLog'](l);if(!global['window']['PluginUpdates']||typeof global['window']['PluginUpdates']!=='object')global['window']['PluginUpdates']={'plugins':{}};global['window']['PluginUpdates']['plugins'][n]={'name':l['name'],'raw':n,'version':l['version']};if(typeof global['window']['PluginUpdates']['interval']==='undefined')global['window']['PluginUpdates']['interval']=setInterval(()=>{BDFDB['checkAllUpdates']();},0x3e8*0x3c*0x3c*0x2);l['started']=!![];for(let p in BDFDB['myPlugins'])if(!BDFDB['myPlugins'][p]['started']&&typeof BDFDB['myPlugins'][p]['initialize']=='function')BDFDB['myPlugins'][p]['initialize']();};BDFDB['unloadMessage']=function(q){BDFDB['clearStarttimout'](q);q['name']=q['name']||q['getName']();q['version']=q['version']||q['getVersion']();q['author']=q['author']||q['getAuthor']();q['description']=q['description']||q['getDescription']();delete BDFDB['myPlugins'][q['name']];var r=BDFDB['getLibraryStrings']()['toast_plugin_stopped']['replace']('{{oldversion}}','v'+q['version']);console['log']('%c['+q['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',r);if(!(settingsCookie['fork-ps-2']&&settingsCookie['fork-ps-2']===!![]))BDFDB['showToast'](q['name']+'\x20'+r,{'nopointer':!![],'selector':'plugin-stopped-toast'});var s=typeof q['getRawUrl']=='function'&&typeof q['getRawUrl']()=='string'?q['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+q['name']+'/'+q['name']+'.plugin.js';if(typeof q['css']==='string')BDFDB['removeLocalStyle'](q['name']);BDFDB['WebModules']['unpatchall'](q);BDFDB['removeOnSwitchListener'](q);BDFDB['removeSettingsButtonListener'](q);BDFDB['removeEventListener'](q);BDFDB['removeEles']('.'+q['name']+'-modal,\x20.'+q['name']['toLowerCase']()+'-modal,\x20.'+q['name']+'-settingsmodal,\x20.'+q['name']['toLowerCase']()+'-settingsmodal');if(!BDFDB['isObjectEmpty'](q['observers'])){for(let t in q['observers'])for(let u of q['observers'][t])u['disconnect']();delete q['observers'];}delete global['window']['PluginUpdates']['plugins'][s];if(BDFDB['isObjectEmpty'](global['window']['PluginUpdates']['plugins']))BDFDB['removeEles']('#bd-settingspane-container\x20.bd-updatebtn'+BDFDB['dotCN']['_repofolderbutton']);delete q['started'];};BDFDB['translatePlugin']=function(v){if(typeof v['setLabelsByLanguage']==='function'||typeof v['changeLanguageStrings']==='function'){if(document['querySelector']('html')['lang'])x();else{var w=setInterval(()=>{if(document['querySelector']('html')['lang']){clearInterval(w);x();}},0x64);}function x(){var y=BDFDB['getDiscordLanguage']();if(typeof v['setLabelsByLanguage']==='function')v['labels']=v['setLabelsByLanguage'](y['id']);if(typeof v['changeLanguageStrings']==='function')v['changeLanguageStrings']();var z=BDFDB['getLibraryStrings']()['toast_plugin_translated']['replace']('{{ownlang}}',y['ownlang']);console['log']('%c['+v['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',z);}}};BDFDB['clearStarttimout']=function(A){if(A['startTimeout']){clearTimeout(A['startTimeout']);delete A['startTimeout'];}if(A['libLoadTimeout']){clearTimeout(A['libLoadTimeout']);delete A['libLoadTimeout'];}};BDFDB['checkChangeLog']=function(B){if(!BDFDB['isObject'](B)||!B['changelog'])return;var C=BDFDB['loadAllData'](B,'changelog');if(!C['currentversion']||BDFDB['checkVersions'](B['version'],C['currentversion'])){C['currentversion']=B['version'];var D='';var E={'added':'New\x20Features','fixed':'Bug\x20Fixes','improved':'Improvements','progress':'Progress'};for(let F in B['changelog']){F=F['toLowerCase']();var G=BDFDB['disCN']['changelog'+F];if(G){D+='
'+E[F]+'
';for(let H of B['changelog'][F])D+='- '+H[0x0]+''+(H[0x1]?':\x20'+H[0x1]+'.':'')+'
';D+='
';}}if(D)BDFDB['removeEles'](BDFDB['openConfirmModal'](B,D,BDFDB['LanguageStrings']['CHANGE_LOG'])['querySelectorAll']('.btn-cancel'));BDFDB['saveAllData'](C,B,'changelog');}};BDFDB['addObserver']=function(I,J,K,L={'childList':!![]}){if(!BDFDB['isObject'](I)||!J||!K)return;if(BDFDB['isObjectEmpty'](I['observers']))I['observers']={};if(!Array['isArray'](I['observers'][K['name']]))I['observers'][K['name']]=[];if(!K['multi'])for(let M of I['observers'][K['name']])M['disconnect']();if(K['instance'])I['observers'][K['name']]['push'](K['instance']);var N=I['observers'][K['name']][I['observers'][K['name']]['length']-0x1];if(N){var O=Node['prototype']['isPrototypeOf'](J)?J:typeof J==='string'?document['querySelector'](J):null;if(O)N['observe'](O,L);}};BDFDB['addChildEventListener']=function(P,Q,R,S){if(!Node['prototype']['isPrototypeOf'](P)||!Q||!R||!R['trim']()||typeof S!='function')return;for(var T of Q['trim']()['split']('\x20'))if(T){var U=S;if(T=='mouseenter'||T=='mouseleave')U=V=>{if(V['target']['matches'](R))S(V);};P['querySelectorAll'](R['trim']())['forEach'](W=>{W['addEventListener'](T,U,!![]);});}};BDFDB['addEventListener']=function(X,Y,Z,a0,a1){if(!BDFDB['isObject'](X)||!Node['prototype']['isPrototypeOf'](Y)&&Y!==global['window']||!Z)return;var a2=typeof a0=='function';var a3=a2?undefined:a0;var a4=a2?a0:a1;if(typeof a4!='function')return;BDFDB['removeEventListener'](X,Y,Z,a3);for(var a5 of Z['split']('\x20')){a5=a5['split']('.');var a6=a5['shift']()['toLowerCase']();if(!a6)return;var a7=a6;a6=a6=='mouseenter'||a6=='mouseleave'?'mouseover':a6;var a8=(a5['join']('.')||'')+X['name'];if(!Array['isArray'](X['listeners']))X['listeners']=[];var a9=null;if(a3){if(a7=='mouseenter'||a7=='mouseleave'){a9=aa=>{for(let ab of aa['path'])if(typeof ab['matches']=='function'&&ab['matches'](a3)&&!ab[a8+'BDFDB'+a7]){ab[a8+'BDFDB'+a7]=!![];if(a7=='mouseenter')a4(BDFDB['copyEvent'](aa,ab));let ac=ad=>{if(ad['target']['contains'](ab)||ad['target']==ab||!ab['contains'](ad['target'])){if(a7=='mouseleave')a4(BDFDB['copyEvent'](aa,ab));delete ab[a8+'BDFDB'+a7];document['removeEventListener']('mouseout',ac);}};document['addEventListener']('mouseout',ac);break;}};}else{a9=ae=>{for(let af of ae['path'])if(typeof af['matches']=='function'&&af['matches'](a3)){a4(BDFDB['copyEvent'](ae,af));break;}};}}else a9=ag=>{a4(BDFDB['copyEvent'](ag,Y));};X['listeners']['push']({'ele':Y,'eventname':a6,'origeventname':a7,'namespace':a8,'selector':a3,'eventcallback':a9});Y['addEventListener'](a6,a9,!![]);}};BDFDB['copyEvent']=function(ah,ai){if(!ah||!ah['constructor']||!ah['type'])return ah;var aj=new ah['constructor'](ah['type'],ah);Object['defineProperty'](aj,'originalEvent',{'value':ah});Object['defineProperty'](aj,'which',{'value':ah['which']});Object['defineProperty'](aj,'keyCode',{'value':ah['keyCode']});Object['defineProperty'](aj,'path',{'value':ah['path']});Object['defineProperty'](aj,'relatedTarget',{'value':ah['relatedTarget']});Object['defineProperty'](aj,'srcElement',{'value':ah['srcElement']});Object['defineProperty'](aj,'target',{'value':ah['target']});Object['defineProperty'](aj,'toElement',{'value':ah['toElement']});if(ai)Object['defineProperty'](aj,'currentTarget',{'value':ai});return aj;};BDFDB['stopEvent']=function(ak){if(BDFDB['isObject'](ak)){if(typeof ak['preventDefault']=='function')ak['preventDefault']();if(typeof ak['stopPropagation']=='function')ak['stopPropagation']();if(typeof ak['stopImmediatePropagation']=='function')ak['stopImmediatePropagation']();if(BDFDB['isObject'](ak['originalEvent'])){if(typeof ak['originalEvent']['preventDefault']=='function')ak['originalEvent']['preventDefault']();if(typeof ak['originalEvent']['stopPropagation']=='function')ak['originalEvent']['stopPropagation']();if(typeof ak['originalEvent']['stopImmediatePropagation']=='function')ak['originalEvent']['stopImmediatePropagation']();}}};BDFDB['removeEventListener']=function(al,am,an='',ao){if(!BDFDB['isObject'](al)||!Array['isArray'](al['listeners']))return;if(Node['prototype']['isPrototypeOf'](am)||am===global['window']){for(var ap of an['split']('\x20')){ap=ap['split']('.');var aq=ap['shift']()['toLowerCase']();var ar=(ap['join']('.')||'')+al['name'];for(let as of al['listeners']){let at=[];if(as['ele']==am&&(!aq||as['origeventname']==aq)&&as['namespace']==ar&&(ao===undefined||as['selector']==ao)){am['removeEventListener'](as['eventname'],as['eventcallback'],!![]);at['push'](as);}if(at['length'])al['listeners']=al['listeners']['filter'](as=>{return at['indexOf'](as)<0x0;});}}}else if(!am){for(let av of al['listeners'])av['ele']['removeEventListener'](av['eventname'],av['eventcallback'],!![]);al['listeners']=[];}};BDFDB['checkUpdate']=function(aw,ax){if(BDFDB['isBDv2']())return;require('request')(ax,(ay,az,aA)=>{if(ay)return;var aB=aA['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);if(!aB)return;if(BDFDB['checkVersionDifference'](aB[0x0],global['window']['PluginUpdates']['plugins'][ax]['version'])>0.2){BDFDB['showToast'](aw+'\x20will\x20be\x20force\x20updated,\x20because\x20your\x20version\x20is\x20heavily\x20outdated.',{'type':'warn','nopointer':!![],'selector':'plugin-forceupdate-toast'});BDFDB['downloadPlugin'](aw,ax);}else if(BDFDB['checkVersions'](aB[0x0],global['window']['PluginUpdates']['plugins'][ax]['version']))BDFDB['showUpdateNotice'](aw,ax);else BDFDB['removeUpdateNotice'](aw);});};BDFDB['checkVersions']=function(aC,aD){if(!aC||!aD)return!![];aC=aC['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aE=>parseInt(aE))['filter'](aF=>(aF||aF==0x0)&&!isNaN(aF));aD=aD['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aG=>parseInt(aG))['filter'](aH=>(aH||aH==0x0)&&!isNaN(aH));var aI=Math['max'](aC['length'],aD['length']);if(!aI)return!![];if(aC['length']>aD['length']){var aJ=new Array(aC['length']-aD['length']);for(let aK=0x0;aKaD[aP])return!![];}return![];};BDFDB['checkVersionDifference']=function(aQ,aR){if(!aQ||!aR)return![];aQ=aQ['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aS=>parseInt(aS))['filter'](aT=>(aT||aT==0x0)&&!isNaN(aT));aR=aR['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aU=>parseInt(aU))['filter'](aV=>(aV||aV==0x0)&&!isNaN(aV));var aW=Math['max'](aQ['length'],aR['length']);if(!aW)return![];if(aQ['length']>aR['length']){var aX=new Array(aQ['length']-aR['length']);for(let aY=0x0;aY',{'html':!![],'id':'pluginNotice','type':'info','btn':!BDFDB['isRestartNoMoreEnabled']()?'Reload':'','customicon':''});b7['style']['setProperty']('display','block','important');b7['style']['setProperty']('visibility','visible','important');b7['style']['setProperty']('opacity','1','important');b7['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',()=>{BDFDB['removeEles']('.update-clickme-tooltip');});var b8=b7['querySelector'](BDFDB['dotCN']['noticebutton']);if(b8){BDFDB['toggleEles'](b8,!![]);b8['addEventListener']('click',()=>{global['window']['location']['reload'](![]);});b8['addEventListener']('mouseenter',()=>{if(global['window']['PluginUpdates']['downloaded'])BDFDB['createTooltip'](global['window']['PluginUpdates']['downloaded']['join'](',\x20'),b8,{'type':'bottom','selector':'update-notice-tooltip','style':'max-width:\x20420px'});});}}if(b7){var b9=b7['querySelector']('#outdatedPlugins');if(b9&&!b9['querySelector']('#'+b5+'-notice')){if(b9['querySelector']('span'))b9['appendChild'](BDFDB['htmlToElement'](',\x20'));var ba=BDFDB['htmlToElement'](''+b5+'');ba['addEventListener']('click',()=>{BDFDB['downloadPlugin'](b5,b6);});b9['appendChild'](ba);if(!document['querySelector']('.update-clickme-tooltip'))BDFDB['createTooltip']('Click\x20us!',b9,{'type':'bottom','selector':'update-clickme-tooltip','delay':0x1f4});}}};BDFDB['downloadPlugin']=function(bb,bc){require('request')(bc,(bd,be,bf)=>{if(bd)return console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','','Unable\x20to\x20get\x20update\x20for\x20'+bb);BDFDB['creationTime']=0x0;var bg=bf['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);bg=bg['toString']()['replace'](/['"]/g,'');require('fs')['writeFileSync'](require('path')['join'](BDFDB['getPluginsFolder'](),bdplugins[bb]?bdplugins[bb]['filename']:bc['split']('/')['slice'](-0x1)[0x0]),bf);BDFDB['showToast'](bb+'\x20v'+global['window']['PluginUpdates']['plugins'][bc]['version']+'\x20has\x20been\x20replaced\x20by\x20'+bb+'\x20v'+bg+'.',{'nopointer':!![],'selector':'plugin-updated-toast'});var bh=document['querySelector']('#pluginNotice');if(bh){if(bh['querySelector'](BDFDB['dotCN']['noticebutton'])){global['window']['PluginUpdates']['plugins'][bc]['version']=bg;if(!global['window']['PluginUpdates']['downloaded'])global['window']['PluginUpdates']['downloaded']=[];if(!global['window']['PluginUpdates']['downloaded']['includes'](bb))global['window']['PluginUpdates']['downloaded']['push'](bb);}BDFDB['removeUpdateNotice'](bb,bh);}});};BDFDB['removeUpdateNotice']=function(bi,bj=document['querySelector']('#pluginNotice')){if(!bj)return;var bk=bj['querySelector']('#outdatedPlugins');if(bk){var bl=bk['querySelector']('#'+bi+'-notice');if(bl){var bm=bl['nextSibling'];var bn=bl['prevSibling'];if(bm&&BDFDB['containsClass'](bm,'separator'))bm['remove']();else if(bn&&BDFDB['containsClass'](bn,'separator'))bn['remove']();bl['remove']();}if(!bk['querySelector']('span')){var bo=bj['querySelector'](BDFDB['dotCN']['noticebutton']);if(bo){bj['querySelector']('.notice-message')['innerText']='To\x20finish\x20updating\x20you\x20need\x20to\x20reload.';BDFDB['toggleEles'](bo,![]);}else bj['querySelector'](BDFDB['dotCN']['noticedismiss'])['click']();}}};BDFDB['showToast']=function(bp,bq={}){var br=document['querySelector']('.toasts,\x20.bd-toasts');if(!br){var bs=document['querySelector'](BDFDB['dotCN']['channels']+'\x20+\x20div');var bt=bs?BDFDB['getRects'](bs):null;var bu=bs?bs['querySelector'](BDFDB['dotCN']['memberswrap']):null;var bv=bt?bt['left']:0x136;var bw=bt?bu?bt['width']-BDFDB['getRects'](bu)['width']:bt['width']:global['window']['outerWidth']-0x0;var bx=bs?bs['querySelector']('form'):null;var by=bx?BDFDB['getRects'](bx)['height']:0x50;br=BDFDB['htmlToElement']('');document['querySelector'](BDFDB['dotCN']['app'])['appendChild'](br);}const {type='',icon=!![],timeout=0xbb8,html=![],selector='',nopointer=![]}=bq;var bz=BDFDB['htmlToElement'](''+(html===!![]?bp:BDFDB['encodeToHTML'](bp))+'
');if(type){BDFDB['addClass'](bz,'toast-'+type);if(icon)BDFDB['addClass'](bz,'icon');}BDFDB['addClass'](bz,selector);br['appendChild'](bz);bz['close']=()=>{if(document['contains'](bz)){BDFDB['addClass'](bz,'closing');setTimeout(()=>{bz['remove']();if(!br['querySelectorAll']('.toast,\x20.bd-toast')['length'])br['remove']();},0xbb8);}};if(nopointer)bz['style']['setProperty']('pointer-events','none','important');else bz['addEventListener']('click',bz['close']);setTimeout(()=>{bz['close']();},timeout>0x0?timeout:0x927c0);return bz;};BDFDB['DesktopNotificationQueue']={'queue':[],'running':![]};BDFDB['showDesktopNotification']=function(bA,bB={}){var bC=()=>{BDFDB['DesktopNotificationQueue']['queue']['push']({'parsedcontent':bA,'parsedoptions':bB});bD();};var bD=()=>{if(!BDFDB['DesktopNotificationQueue']['running']){var bE=BDFDB['DesktopNotificationQueue']['queue']['shift']();if(bE)bF(bE['parsedcontent'],bE['parsedoptions']);}};var bF=(bG,bH)=>{BDFDB['DesktopNotificationQueue']['running']=!![];var bI=bH['silent'];bH['silent']=bH['silent']||bH['sound']?!![]:![];var bJ=new Notification(bG,bH);var bK=new Audio();var bL=setTimeout(()=>{bM();},bH['timeout']?bH['timeout']:0xbb8);if(typeof bH['click']=='function')bJ['onclick']=()=>{clearTimeout(bL);bM();bH['click']();};if(!bI&&bH['sound']){bK['src']=bH['sound'];bK['play']();}var bM=()=>{bK['pause']();bJ['close']();BDFDB['DesktopNotificationQueue']['running']=![];setTimeout(()=>{bD();},0x3e8);};};if(!('Notification'in global['window'])){}else if(Notification['permission']==='granted')bC();else if(Notification['permission']!=='denied')Notification['requestPermission'](function(bN){if(bN==='granted')bC();});};BDFDB['createTooltip']=function(bO,bP,bQ={}){if(!bO||!bP||!Node['prototype']['isPrototypeOf'](bP)||!document['contains'](bP))return null;var bR=document['querySelector'](BDFDB['dotCN']['tooltips']);if(!bR)return null;var bS=Math['round'](Math['random']()*0x2386f26fc10000);var bT=BDFDB['htmlToElement']('');var bU=bT['firstElementChild']?bT['firstElementChild']:bT;if(bQ['id'])bT['id']=bQ['id']['split']('\x20')['join']('');if(bQ['selector'])BDFDB['addClass'](bT,bQ['selector']);if(bQ['css'])BDFDB['appendLocalStyle']('BDFDBcustomTooltip'+bS,bQ['css'],bR);if(bQ['style'])bU['style']=bQ['style'];if(bQ['html']===!![])bU['innerHTML']=bO;else bU['innerText']=bO;if(bQ['type']&&BDFDB['disCN']['tooltip'+bQ['type']['toLowerCase']()]){BDFDB['addClass'](bU,BDFDB['disCN']['tooltip'+bQ['type']['toLowerCase']()]);bU['appendChild'](BDFDB['htmlToElement'](''));}if(bU['style']['borderColor']&&bU['style']['backgroundColor'])BDFDB['addClass'](bU,'tooltip-customcolor');else if(bQ['color']&&BDFDB['disCN']['tooltip'+bQ['color']['toLowerCase']()])BDFDB['addClass'](bU,BDFDB['disCN']['tooltip'+bQ['color']['toLowerCase']()]);else BDFDB['addClass'](bU,BDFDB['disCN']['tooltipblack']);bR['appendChild'](bT);var bV,bW,bX=BDFDB['getRects'](bP),bY=BDFDB['getRects'](bT),bZ={'height':0x0,'width':0x0};var c0=bT['querySelector'](BDFDB['dotCN']['tooltippointer']);if(c0)bZ=BDFDB['getRects'](c0);if(!bQ['position']||bQ['type'])bQ['position']=bQ['type'];if(!bQ['position']||!['top','bottom','left','right']['includes'](bQ['position']['toLowerCase']()))bQ['position']='right';bQ['position']=bQ['position']['toLowerCase']();switch(bQ['position']){case'top':bW=bX['top']-bY['height']-bZ['height']+0x2;bV=bX['left']+(bX['width']-bY['width'])/0x2;break;case'bottom':bW=bX['top']+bX['height']+bZ['height']-0x2;bV=bX['left']+(bX['width']-bY['width'])/0x2;break;case'left':bW=bX['top']+(bX['height']-bY['height'])/0x2;bV=bX['left']-bY['width']-bZ['width']+0x2;break;case'right':bW=bX['top']+(bX['height']-bY['height'])/0x2;bV=bX['left']+bX['width']+bZ['width']-0x2;break;}bT['style']['setProperty']('top',bW+'px');bT['style']['setProperty']('left',bV+'px');var c1=BDFDB['getRects'](document['querySelector'](BDFDB['dotCN']['appmount'])),bY=BDFDB['getRects'](bT);var c3=bT['querySelector'](BDFDB['dotCN']['tooltippointer']);if(bQ['position']=='top'||bQ['position']=='bottom'){if(bY['left']<0x0){bT['style']['setProperty']('left','5px');c3['style']['setProperty']('margin-left',bY['left']-0xa+'px');}else{var c4=c1['width']-(bY['left']+bY['width']);if(c4<0x0){bT['style']['setProperty']('left',c1['width']-bY['width']-0x5+'px');c3['style']['setProperty']('margin-left',-0x1*c4+'px');}}}else if(bQ['position']=='left'||bQ['position']=='right'){if(bY['top']<0x0){bT['style']['setProperty']('top','5px');c3['style']['setProperty']('margin-top',bY['top']-0xa+'px');}else{var c5=c1['height']-(bY['top']+bY['height']);if(c5<0x0){bT['style']['setProperty']('top',c1['height']-bY['height']-0x5+'px');c3['style']['setProperty']('margin-top',-0x1*c5+'px');}}}var c6=()=>{bT['remove']();};var c7=new MutationObserver(c8=>{c8['forEach'](c9=>{var ca=Array['from'](c9['removedNodes']);var cb=ca['indexOf'](bT)>-0x1;var cc=ca['indexOf'](bP)>-0x1;var cd=ca['some'](ce=>ce['contains'](bP));if(cb||cc||cd){c7['disconnect']();bT['remove']();bP['removeEventListener']('mouseleave',c6);BDFDB['removeLocalStyle']('BDFDBcustomTooltip'+bS,bR);}});});c7['observe'](document['body'],{'subtree':!![],'childList':!![]});bP['addEventListener']('mouseleave',c6);if(bQ['delay']){BDFDB['toggleEles'](bT);setTimeout(()=>{BDFDB['toggleEles'](bT);},bQ['delay']);}return bT;};BDFDB['createNotificationsBar']=function(cf,cg={}){if(!cf)return;var ch=document['querySelector'](BDFDB['dotCN']['layers']);if(!ch)return;var ci=Math['round'](Math['random']()*0x2386f26fc10000);var cj=BDFDB['htmlToElement']('');ch['parentElement']['insertBefore'](cj,ch);var ck=cj['querySelector']('.notice-message');if(cg['platform'])for(let cl of cg['platform']['split']('\x20'))if(BDFDB['DiscordClasses']['noticeicon'+cl]){let cm=BDFDB['htmlToElement']('');cm['addClass'](BDFDB['disCN']['noticeplatformicon']);cm['removeClass'](BDFDB['disCN']['noticeicon']);cj['insertBefore'](cm,ck);}if(cg['customicon']){let cn=BDFDB['htmlToElement'](cg['customicon']);let cm=BDFDB['htmlToElement']('');if(cn['tagName']=='span'&&!cn['firstElementChild'])cm['style']['setProperty']('background','url('+cg['customicon']+')\x20center/cover\x20no-repeat');else cm['appendChild'](cn);cm['addClass'](BDFDB['disCN']['noticeplatformicon']);cm['removeClass'](BDFDB['disCN']['noticeicon']);cj['insertBefore'](cm,ck);}if(cg['btn'])cj['appendChild'](BDFDB['htmlToElement'](''));if(cg['id'])cj['id']=cg['id']['split']('\x20')['join']('');if(cg['selector'])BDFDB['addClass'](cj,cg['selector']);if(cg['css'])BDFDB['appendLocalStyle']('BDFDBcustomnotibar'+ci,cg['css']);if(cg['style'])cj['style']=cg['style'];if(cg['html']===!![])ck['innerHTML']=cf;else{var cp=document['createElement']('a');var cq=[];for(let cr of cf['split']('\x20')){var cs=BDFDB['encodeToHTML'](cr);cp['href']=cr;cq['push'](cp['host']&&cp['host']!==global['window']['location']['host']?'':cs);}ck['innerHTML']=cq['join']('\x20');}var ct=null;if(cg['type']&&!document['querySelector'](BDFDB['dotCNS']['chatbase']+BDFDB['dotCN']['noticestreamer'])){if(ct=BDFDB['disCN']['notice'+cg['type']])BDFDB['addClass'](cj,ct);if(cg['type']=='premium'){var cu=cj['querySelector'](BDFDB['dotCN']['noticebutton']);if(cu)BDFDB['addClass'](cu,BDFDB['disCN']['noticepremiumaction']);BDFDB['addClass'](ck,BDFDB['disCN']['noticepremiumtext']);cj['insertBefore'](BDFDB['htmlToElement'](''),ck);}}if(!ct){var cv=BDFDB['colorCONVERT'](cg['color'],'RGBCOMP');if(cv){var cw=cv[0x0]>0xb4&&cv[0x1]>0xb4&&cv[0x2]>0xb4?'#000':'#FFF';var cx=BDFDB['colorCONVERT'](cv,'HEX');var cy=cv[0x0]>0xb4&&cv[0x1]>0xb4&&cv[0x2]>0xb4?'brightness(0%)':'brightness(100%)';BDFDB['appendLocalStyle']('BDFDBcustomnotibarColorCorrection'+ci,'.BDFDB-notice.notice-'+ci+'{background-color:'+cx+'\x20!important;}.BDFDB-notice.notice-'+ci+'\x20.notice-message\x20{color:'+cw+'\x20!important;}.BDFDB-notice.notice-'+ci+'\x20'+BDFDB['dotCN']['noticebutton']+'\x20{color:'+cw+'\x20!important;border-color:'+BDFDB['colorSETALPHA'](cw,0.25,'RGBA')+'\x20!important;}.BDFDB-notice.notice-'+ci+'\x20'+BDFDB['dotCN']['noticebutton']+':hover\x20{color:'+cx+'\x20!important;background-color:'+cw+'\x20!important;}.BDFDB-notice.notice-'+ci+'\x20'+BDFDB['dotCN']['noticedismiss']+'\x20{filter:'+cy+'\x20!important;}');}else BDFDB['addClass'](cj,BDFDB['disCN']['noticedefault']);}cj['style']['setProperty']('height','36px','important');cj['style']['setProperty']('min-width','70vw','important');cj['style']['setProperty']('left','unset','important');cj['style']['setProperty']('right','unset','important');let cz=(BDFDB['getTotalWidth'](document['body']['firstElementChild'])-BDFDB['getTotalWidth'](cj))/0x2;cj['style']['setProperty']('left',cz+'px','important');cj['style']['setProperty']('right',cz+'px','important');cj['style']['setProperty']('min-width','unset','important');cj['style']['setProperty']('width','unset','important');cj['style']['setProperty']('max-width','calc(100vw\x20-\x20'+cz*0x2+'px)','important');cj['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',()=>{cj['style']['setProperty']('overflow','hidden','important');cj['style']['setProperty']('height','0px','important');setTimeout(()=>{BDFDB['removeLocalStyle']('BDFDBcustomnotibar'+ci);BDFDB['removeLocalStyle']('BDFDBcustomnotibarColorCorrection'+ci);cj['remove']();},0x1f4);});return cj;};BDFDB['getDiscordFolder']=function(){var cA=BDFDB['getDiscordBuilt']();cA='discord'+(cA=='stable'?'':cA);return require('path')['resolve'](require('electron')['remote']['app']['getPath']('appData'),cA,BDFDB['getDiscordVersion']());};BDFDB['getPluginsFolder']=function(){var cB=require('process');var cC=require('path');if(cB['env']['injDir'])return cC['resolve'](cB['env']['injDir'],'plugins/');switch(cB['platform']){case'win32':return cC['resolve'](cB['env']['appdata'],'BetterDiscord/plugins/');case'darwin':return cC['resolve'](cB['env']['HOME'],'Library/Preferences/BetterDiscord/plugins/');default:if(cB['env']['XDG_CONFIG_HOME'])return cC['resolve'](cB['env']['XDG_CONFIG_HOME'],'BetterDiscord/plugins/');else return cC['resolve'](cB['env']['HOME'],'.config/BetterDiscord/plugins/');}};BDFDB['getThemesFolder']=function(){var cD=require('process');var cE=require('path');if(cD['env']['injDir'])return cE['resolve'](cD['env']['injDir'],'plugins/');switch(cD['platform']){case'win32':return cE['resolve'](cD['env']['appdata'],'BetterDiscord/themes/');case'darwin':return cE['resolve'](cD['env']['HOME'],'Library/Preferences/BetterDiscord/themes/');default:if(cD['env']['XDG_CONFIG_HOME'])return cE['resolve'](cD['env']['XDG_CONFIG_HOME'],'BetterDiscord/themes/');else return cE['resolve'](cD['env']['HOME'],'.config/BetterDiscord/themes/');}};BDFDB['checkWhichRepoPage']=function(cF=document['querySelector'](BDFDB['dotCN']['layer']+'[layer-id=\x22user-settings\x22]')){if(!cF)return;var cG=cF['querySelector'](BDFDB['dotCN']['_repofolderbutton']);if(!cG)return;var cH=cG['parentElement']['querySelector']('h2');if(cH&&cH['innerText']){let cI=cH['innerText']['toLowerCase']();if(cI==='plugins'||cI==='themes')return cI;}};BDFDB['checkAllUpdates']=function(){for(let cJ in global['window']['PluginUpdates']['plugins']){var cK=global['window']['PluginUpdates']['plugins'][cJ];BDFDB['checkUpdate'](cK['name'],cK['raw']);}};BDFDB['getLineOfString']=function(cL,cM){if(typeof cL!='string'||typeof cL!='string')return-0x1;let cN=cL['indexOf'](cM);if(cN<0x0)return-0x1;return cL['substring'](0x0,cN)['split']('\x0a')['length'];};BDFDB['sortObject']=function(cO,cP,cQ){var cR={};if(cP===undefined||!cP)for(let cS of Object['keys'](cO)['sort']())cR[cS]=cO[cS];else{let cT=[];for(let cS in cO)cT['push'](cO[cS]);cT=BDFDB['sortArrayByKey'](cT,cP,cQ);for(let cV of cT)for(let cS in cO)if(BDFDB['equals'](cV,cO[cS])){cR[cS]=cV;break;}}return cR;};BDFDB['reverseObject']=function(cX,cY){var cZ={};for(let d0 of cY===undefined||!cY?Object['keys'](cX)['reverse']():Object['keys'](cX)['sort']()['reverse']())cZ[d0]=cX[d0];return cZ;};BDFDB['filterObject']=function(d1,d2){return Object['keys'](d1)['filter'](d3=>d2(d1[d3]))['reduce']((d4,d5)=>(d4[d5]=d1[d5],d4),{});};BDFDB['isObject']=function(d6){return d6&&Object['prototype']['isPrototypeOf'](d6)&&!Array['prototype']['isPrototypeOf'](d6);};BDFDB['isObjectEmpty']=function(d7){return typeof d7!=='object'||Object['getOwnPropertyNames'](d7)['length']==0x0;};BDFDB['pushToObject']=function(d8,d9){if(BDFDB['isObject'](d8))d8[Object['keys'](d8)['length']]=d9;};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*global['window']['outerWidth']/dW['width']);var dY=Math['round'](0x64*global['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&&eKeT['default']=eR},[eQ])['default']:global['window']['webpackJsonp']['push']([[],{[eQ]:(eV,eW,eR)=>eV['exports']=eR},[[eQ]]]);delete eR['m'][eQ];delete eR['c'][eQ];BDFDB['WebModules']['find']['req']=eR;}for(let eY in BDFDB['WebModules']['find']['req']['c']){if(BDFDB['WebModules']['find']['req']['c']['hasOwnProperty'](eY)){var eZ=BDFDB['WebModules']['find']['req']['c'][eY]['exports'];if(eZ&&eZ['__esModule']&&eZ['default']&&eP(eZ['default']))return eZ['default'];if(eZ&&eP(eZ))return eZ;}}};BDFDB['WebModules']['cachedData']={'prop':{},'name':{},'proto':{}};BDFDB['WebModules']['findByProperties']=function(f0){f0=Array['isArray'](f0)?f0:Array['from'](arguments);var f1=JSON['stringify'](f0);if(BDFDB['WebModules']['cachedData']['prop'][f1])return BDFDB['WebModules']['cachedData']['prop'][f1];else{var f2=BDFDB['WebModules']['find'](f2=>f0['every'](f4=>f2[f4]!==undefined));if(f2){BDFDB['WebModules']['cachedData']['prop'][f1]=f2;return f2;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',f1+'\x20[properties]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByName']=function(f5){var f6=JSON['stringify'](f5);if(BDFDB['WebModules']['cachedData']['name'][f6])return BDFDB['WebModules']['cachedData']['name'][f6];else{var f7=BDFDB['WebModules']['find'](f7=>f7['displayName']===f5);if(f7){BDFDB['WebModules']['cachedData']['name'][f6]=f7;return f7;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',f6+'\x20[name]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByPrototypes']=function(f9){f9=Array['isArray'](f9)?f9:Array['from'](arguments);var fa=JSON['stringify'](f9);if(BDFDB['WebModules']['cachedData']['proto'][fa])return BDFDB['WebModules']['cachedData']['proto'][fa];else{var fb=BDFDB['WebModules']['find'](fb=>fb['prototype']&&f9['every'](fd=>fb['prototype'][fd]!==undefined));if(fb){BDFDB['WebModules']['cachedData']['proto'][fa]=fb;return fb;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',fa+'\x20[prototypes]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['patchtypes']=['before','instead','after'];BDFDB['WebModules']['patchmap']={'BannedCard':'BannedUser','InvitationCard':'InviteRow','InviteCard':'InviteRow','PopoutContainer':'Popout','MemberCard':'Member','WebhookCard':'Webhook'};BDFDB['WebModules']['notfindablemodules']={'AuthWrapper':'loginscreen','BannedCard':'guildsettingsbannedcard','CircleIconButton':'guildbuttoncontainer','EmojiPicker':'emojipicker','FriendsOnline':'friendsonline','Guild':'guildouter','InstantInviteModal':'invitemodalwrapper','InvitationCard':'invitemodalinviterow','InviteCard':'guildsettingsinvitecard','PopoutContainer':'popout','PrivateChannelCall':'callcurrentcontainer','MemberCard':'guildsettingsmembercard','Message':'message','MessageOptionPopout':'optionpopout','MessageUsername':'messageusername','SearchResults':'searchresultswrap','TypingUsers':'typing','UserPopout':'userpopout','V2C_List':'_repolist','V2C_PluginCard':'_repoheader','V2C_ThemeCard':'_repoheader'};BDFDB['WebModules']['patch']=function(fe,ff,fg,fh){if(!fe||!ff||!fg||!Object['keys'](fh)['some'](fi=>BDFDB['WebModules']['patchtypes']['includes'](fi)))return null;const fj=(typeof fg==='string'?fg:fg['name'])['toLowerCase']();const fk=(fl,fm)=>(...fn)=>{try{return fl(...fn);}catch(fo){console['error']('Error\x20occurred\x20in\x20'+fm,fo);}};if(!fe['BDFDBpatch'])fe['BDFDBpatch']={};ff=Array['isArray'](ff)?ff:Array['of'](ff);for(let fp of ff){if(!fe[fp])fe[fp]=()=>{};const fq=fe[fp];if(!fe['BDFDBpatch'][fp]){fe['BDFDBpatch'][fp]={};for(let fr of BDFDB['WebModules']['patchtypes'])fe['BDFDBpatch'][fp][fr]={};fe['BDFDBpatch'][fp]['originalMethod']=fq;fe[fp]=function(){const fs={'thisObject':this,'methodArguments':arguments,'originalMethod':fq,'originalMethodName':fp,'callOriginalMethod':()=>fs['returnValue']=fs['originalMethod']['apply'](fs['thisObject'],fs['methodArguments'])};if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded']&&fe['BDFDBpatch'][fp]){if(!BDFDB['isObjectEmpty'](fe['BDFDBpatch'][fp]['before']))for(let ft in BDFDB['sortObject'](fe['BDFDBpatch'][fp]['before'])){fk(fe['BDFDBpatch'][fp]['before'][ft],'`before`\x20callback\x20of\x20'+fe[fp]['displayName'])(fs);}if(BDFDB['isObjectEmpty'](fe['BDFDBpatch'][fp]['instead']))fs['callOriginalMethod']();else for(let fu in BDFDB['sortObject'](fe['BDFDBpatch'][fp]['instead'])){const fv=fk(fe['BDFDBpatch'][fp]['instead'][fu],'`instead`\x20callback\x20of\x20'+fe[fp]['displayName'])(fs);if(fv!==undefined)fs['returnValue']=fv;}if(!BDFDB['isObjectEmpty'](fe['BDFDBpatch'][fp]['after']))for(let fw in BDFDB['sortObject'](fe['BDFDBpatch'][fp]['after'])){fk(fe['BDFDBpatch'][fp]['after'][fw],'`after`\x20callback\x20of\x20'+fe[fp]['displayName'])(fs);}}else fs['callOriginalMethod']();return fs['returnValue'];};}for(let fx of BDFDB['WebModules']['patchtypes'])if(typeof fh[fx]=='function')fe['BDFDBpatch'][fp][fx][fj]=fh[fx];}const fy=()=>{BDFDB['WebModules']['unpatch'](fe,ff,fg);};if(fg&&typeof fg=='object'){if(!Array['isArray'](fg['patchCancels']))fg['patchCancels']=[];fg['patchCancels']['push'](fy);}return fy;};BDFDB['WebModules']['unpatch']=function(fz,fA,fB){if(!fz||!fz['BDFDBpatch'])return;const fC=!fB?null:(typeof fB==='string'?fB:fB['name'])['toLowerCase']();fA=Array['isArray'](fA)?fA:Array['of'](fA);for(let fD of fA){if(fz[fD]&&fz['BDFDBpatch'][fD]){for(let fE of BDFDB['WebModules']['patchtypes']){if(fC)delete fz['BDFDBpatch'][fD][fE][fC];else delete fz['BDFDBpatch'][fD][fE];}var fF=!![];for(let fE of BDFDB['WebModules']['patchtypes'])if(!BDFDB['isObjectEmpty'](fz['BDFDBpatch'][fD][fE]))fF=![];if(fF){fz[fD]=fz['BDFDBpatch'][fD]['originalMethod'];delete fz['BDFDBpatch'][fD];if(BDFDB['isObjectEmpty'](fz['BDFDBpatch']))delete fz['BDFDBpatch'];}}}};BDFDB['WebModules']['unpatchall']=function(fH){if(BDFDB['isObject'](fH)&&Array['isArray'](fH['patchCancels']))for(let fI of fH['patchCancels'])fI();};BDFDB['WebModules']['forceAllUpdates']=function(fJ,fK){fK=fK&&BDFDB['WebModules']['patchmap'][fK]?BDFDB['WebModules']['patchmap'][fK]+'\x20'+fK:fK;if(BDFDB['isObject'](fJ)&&BDFDB['isObject'](fJ['patchModules'])&&(!fK||fJ['patchModules'][fK])){const fL=document['querySelector'](BDFDB['dotCN']['app']);const fM=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(fL){var fN=[];for(let fO in fJ['patchModules']){var fP=Array['isArray'](fJ['patchModules'][fO])?fJ['patchModules'][fO]:Array['of'](fJ['patchModules'][fO]);if(fP['includes']('componentDidUpdate')||fP['includes']('componentDidMount')||fP['includes']('render'))fN['push'](fO);}fN=fK?fN['filter'](fQ=>fQ==fK):fN;if(fN['length']>0x0){const fR=BDFDB['getOwnerInstance']({'node':fL,'name':fN,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let fO in fR)for(let fT in fR[fO])BDFDB['WebModules']['initiateProcess'](fJ,fR[fO][fT],fO,['componentDidUpdate','componentDidMount','render']);if(fM){const fU=BDFDB['getOwnerInstance']({'node':fM,'name':fN,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let fO in fU)for(let fT in fU[fO])BDFDB['WebModules']['initiateProcess'](fJ,fU[fO][fT],fO,['componentDidUpdate','componentDidMount','render']);}}}}};BDFDB['WebModules']['patchModules']=function(fX){if(BDFDB['isObject'](fX)&&BDFDB['isObject'](fX['patchModules'])){for(let fY in fX['patchModules']){var fZ=BDFDB['WebModules']['patchmap'][fY];if(fZ){fX['patchModules'][fZ+'\x20'+fY]=fX['patchModules'][fY];delete fX['patchModules'][fY];if(!BDFDB['WebModules']['notfindablemodules'][fY])g2(BDFDB['WebModules']['findByName'](fZ),fZ+'\x20'+fY);}else if(!BDFDB['WebModules']['notfindablemodules'][fY])g2(BDFDB['WebModules']['findByName'](fY),fY);}for(let fY in BDFDB['WebModules']['notfindablemodules']){var g1=BDFDB['WebModules']['patchmap'][fY]?BDFDB['WebModules']['patchmap'][fY]+'\x20'+fY:fY;if(BDFDB['DiscordClasses'][BDFDB['WebModules']['notfindablemodules'][fY]]&&fX['patchModules'][g1])g9(BDFDB['WebModules']['notfindablemodules'][fY],g1);}function g2(g3,fY){if(g3){var g1=fY['split']('\x20')[0x0];g3=g3['displayName']==g1?g3:BDFDB['getOwnerInstance']({'instance':g3,'name':g1,'up':!![]});if(g3){var g6=g3['_reactInternalFiber']&&g3['_reactInternalFiber']['type']?g3['_reactInternalFiber']['type']:g3;var g7={};g7[fX['name']=='$BDFDB'?'before':'after']=g8=>{if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded'])BDFDB['WebModules']['initiateProcess'](fX,g8['thisObject'],fY,[g8['originalMethodName']]);};BDFDB['WebModules']['patch'](g6['prototype'],fX['patchModules'][fY],fX,g7);}}}function g9(ga,fY){var gc=![];const gd=document['querySelector'](BDFDB['dotCN']['app']);const ge=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(gd){var gf=BDFDB['getOwnerInstance']({'node':gd,'name':fY,'depth':0x5f5e0ff,'time':0x5f5e0ff});if(gf){gc=!![];g2(gf,fY);}}if(!gc&&ge){var gg=BDFDB['getOwnerInstance']({'node':ge,'name':fY,'depth':0x5f5e0ff,'time':0x5f5e0ff});if(gg){gc=!![];g2(gg,fY);}}if(!gc){var gh=![],gi=new MutationObserver(gj=>{gj['forEach'](gk=>{gk['addedNodes']['forEach'](gl=>{var gm=null;if(!gh&&gl['tagName']&&(gm=BDFDB['containsClass'](gl,BDFDB['disCN'][ga])?gl:gl['querySelector'](BDFDB['dotCN'][ga]))!=null){instance=BDFDB['getReactInstance'](gm);if(gn(instance,fY)){gh=!![];gi['disconnect']();g2(instance,fY);BDFDB['WebModules']['forceAllUpdates'](fX,fY);}}});});});BDFDB['addObserver'](fX,BDFDB['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':gi,'multi':!![]},{'childList':!![],'subtree':!![]});}}function gn(go,fY){if(!go)return![];go=go['displayName']==fY?go:BDFDB['getOwnerInstance']({'instance':go,'name':fY,'up':!![]});return go&&(fY!='V2C_PluginCard'&&fY!='V2C_ThemeCard'||fY=='V2C_PluginCard'&&BDFDB['checkWhichRepoPage']()=='plugins'||fY=='V2C_ThemeCard'&&BDFDB['checkWhichRepoPage']()=='themes');}}};BDFDB['WebModules']['initiateProcess']=function(gq,gr,gs,gt){if(gq&&typeof gq=='object'&&gr){gs=(gs['split']('\x20')[0x1]||gs)['replace'](/[^A-z0-9]|_/g,'');gs=gs[0x0]['toUpperCase']()+gs['slice'](0x1);if(typeof gq['process'+gs]=='function'){var gu=BDFDB['React']['findDOMNodeSafe'](gr);if(gu)gq['process'+gs](gr,gu,gt);else setImmediate(()=>{gu=BDFDB['React']['findDOMNodeSafe'](gr);if(gu)gq['process'+gs](gr,gu,gt);});}}};var gv=BDFDB['WebModules']['findByProperties']('createElement','cloneElement');var gw=BDFDB['WebModules']['findByProperties']('render','findDOMNode');if(gv&&gw){BDFDB['React']=Object['assign']({},gv,gw);BDFDB['React']['findDOMNodeSafe']=function(gx){if(!gx||!gx['updater']||typeof gx['updater']['isMounted']!=='function'||!gx['updater']['isMounted'](gx))return null;var gy=gw['findDOMNode'](gx)||BDFDB['getReactValue'](gx,'child.stateNode');return Node['prototype']['isPrototypeOf'](gy)?gy:null;};};BDFDB['addOnSwitchListener']=function(gz){if(typeof gz['onSwitch']==='function'){BDFDB['removeOnSwitchListener'](gz);var gA=document['querySelector'](BDFDB['dotCN']['guildswrapper']+'\x20+\x20*\x20>\x20'+BDFDB['dotCN']['chatspacer']);if(gA){var gB=new MutationObserver(gC=>{gC['forEach'](gD=>{if(gD['target']&&BDFDB['containsClass'](gD['target'],BDFDB['disCN']['nochannel']))gz['onSwitch']();});});var gE=gA['querySelector'](BDFDB['dotCNC']['chat']+BDFDB['dotCN']['nochannel']);if(gE)gB['observe'](gE,{'attributes':!![]});gz['onSwitchFix']=new MutationObserver(gF=>{gF['forEach'](gG=>{if(gG['addedNodes']){gG['addedNodes']['forEach'](gH=>{if(BDFDB['containsClass'](gH,BDFDB['disCN']['chat'],BDFDB['disCN']['nochannel'],![]))gB['observe'](gH,{'attributes':!![]});});}});});gz['onSwitchFix']['observe'](gA,{'childList':!![]});}}};BDFDB['removeOnSwitchListener']=function(gI){if(typeof gI['onSwitch']==='function'&&BDFDB['isObject'](gI['onSwitchFix'])){gI['onSwitchFix']['disconnect']();delete gI['onSwitchFix'];}};BDFDB['addContextListener']=function(gJ){for(let gK of['User','Guild','Channel','GroupDM','Message','Native','UserSettingsCog']){if(typeof gJ['on'+gK+'Context']==='function'||typeof gJ['on'+gK+'ContextMenu']==='function'){if(gK=='GroupDM'){var gL=![],gM=new MutationObserver(gN=>{gN['forEach'](gO=>{gO['addedNodes']['forEach'](gP=>{var gQ=null;if(!gL&&gP['tagName']&&(gQ=BDFDB['containsClass'](gP,BDFDB['disCN']['contextmenu'])?gP:gP['querySelector'](BDFDB['dotCN']['contextmenu']))!=null){var gR=BDFDB['getReactInstance'](gQ);if(gR&&gR['return']&&gR['return']['type']&&gR['return']['type']['displayName']==gK+'ContextMenu'){gL=!![];gM['disconnect']();gS(gK,gR['return']['type']);gW(gK,gR['return']['stateNode'],gR['stateNode']);}}});});});BDFDB['addObserver'](gJ,BDFDB['dotCN']['appmount'],{'name':'checkForContextObserver','instance':gM,'multi':!![]},{'childList':!![],'subtree':!![]});}else gS(gK,BDFDB['WebModules']['findByName'](gK+'ContextMenu'));}}function gS(gK,gU){if(gU&&gU['prototype'])BDFDB['WebModules']['patch'](gU['prototype'],'componentDidMount',gJ,{'after':gV=>{gW(gK,gV['thisObject'],BDFDB['React']['findDOMNodeSafe'](gV['thisObject']));}});}function gW(gK,gY,gZ){if(gY&&gZ){if(typeof gJ['on'+gK+'Context']==='function')gJ['on'+gK+'Context'](gY,gZ);if(typeof gJ['on'+gK+'ContextMenu']==='function')gJ['on'+gK+'ContextMenu'](gY,gZ);BDFDB['initElements'](gZ,gJ);BDFDB['updateContextPosition'](gZ);}}};BDFDB['addSettingsButtonListener']=function(h0){if(BDFDB['isBDv2']()&&typeof h0['getSettingsPanel']==='function'){BDFDB['removeSettingsButtonListener'](h0);BDFDB['appendSettingsButton'](h0);var h1=document['querySelector']('.bd-content-region\x20>\x20.bd-content');if(h1){h0['settingsButtonObserver']=new MutationObserver(h2=>{h2['forEach'](h3=>{if(h3['addedNodes']){h3['addedNodes']['forEach'](h4=>{if(h4['tagName']&&BDFDB['containsClass'](h4,'active'))BDFDB['appendSettingsButton'](h0);});}});});h0['settingsButtonObserver']['observe'](h1,{'childList':!![]});}}};BDFDB['appendSettingsButton']=function(h5){var h6=document['querySelector'](BDFDB['dotCN']['_bdv2Card']+'[data-plugin-id='+h5['id']+']');if(h6){var h7=BDFDB['htmlToElement']('');h6['insertBefore'](h7,h6['querySelector'](BDFDB['d']['_bdv2Button']));h7['addEventListener']('mouseenter',()=>{BDFDB['createTooltip']('Settings',h7,{'type':'top'});BDFDB['addClass'](h7,BDFDB['disCN']['_bdv2TooltipOpen']);});h7['addEventListener']('mouseleave',()=>{BDFDB['removeClass'](h7,BDFDB['disCN']['_bdv2TooltipOpen']);});h7['addEventListener']('click',()=>{var h8=BDFDB['htmlToElement'](''+h5['name']+'\x20Settings
');var h9=h5['getSettingsPanel']();h8['querySelector'](BDFDB['dotCN']['modalsubinner'])['appendChild'](typeof h9=='string'?BDFDB['htmlToElement'](h9):h9);if(typeof h5['onSettingsClosed']==='function')BDFDB['addChildEventListener'](h8,'click',BDFDB['dotCNC']['modalclose']+BDFDB['dotCN']['backdrop'],()=>{h5['onSettingsClosed']();});BDFDB['appendModal'](h8);});}};BDFDB['removeSettingsButtonListener']=function(ha){if(BDFDB['isBDv2']()&&typeof ha['settingsButtonObserver']==='object'){BDFDB['removeEles']('.bd-card[data-plugin-id='+ha['id']+']\x20.BDFDB-settingsbutton');ha['settingsButtonObserver']['disconnect']();delete ha['settingsButtonObserver'];}};var hb={},hc=BDFDB['WebModules']['findByProperties']('Messages')['Messages'];BDFDB['LanguageStrings']=new Proxy(hc,{'get':function(hd,he){if(!hd[he])console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',he+'\x20not\x20found\x20in\x20BDFDB.LanguageStrings');else{var hf=typeof hd[he]=='object'?hd[he]['format'](Object['assign']({},hb)):hd[he];if(typeof hf=='string')return hf;else if(Array['isArray'](hf)){var hg='';for(let hh of hf){if(typeof hh=='string')hg+=BDFDB['encodeToHTML'](hh);else if(BDFDB['isObject'](hh)&&hh['props'])hg+='<'+hh['type']+'>'+BDFDB['encodeToHTML'](hh['props']['children'][0x0]['toString']())+''+hh['type']+'>';}return hg;}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',he+'\x20could\x20not\x20be\x20parsed\x20from\x20BDFDB.LanguageStrings');}}});BDFDB['LanguageStringsFormat']=function(hi,hj){if(hi&&hj&&hc[hi]&&typeof hc[hi]=='object'&&typeof hc[hi]['format']=='function'){try{var hk={};for(let hl in hb)hk[hl]=hj;return hc[hi]['format'](hk);}catch(hm){console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hi+'\x20failed\x20to\x20format\x20string\x20in\x20BDFDB.LanguageStrings');}}else console['warn']('%c[BDFDB]%c','color:#3a71c1;\x20font-weight:700;','',hi+'\x20is\x20not\x20a\x20formatable\x20string\x20in\x20BDFDB.LanguageStrings');};if(hc)for(let hn in hc){try{BDFDB['LanguageStrings'][hn];}catch(ho){let hp=ho['toString']()['split']('for:\x20')[0x1];if(hp&&typeof hp=='string'&&!hb[hp])hb[hp]='{{'+hp['toLowerCase']()+'}}';}};BDFDB['equals']=function(hq,hr,hs){var ht=-0x1;if(hs===undefined||typeof hs!=='boolean')hs=![];return hu(hq,hr);function hu(hv,hw){ht++;var hx=!![];if(ht>0x3e8)hx=null;else{if(typeof hv!==typeof hw)hx=![];else if(typeof hv==='undefined')hx=!![];else if(typeof hv==='symbol')hx=!![];else if(typeof hv==='boolean')hx=hv==hw;else if(typeof hv==='string')hx=hv==hw;else if(typeof hv==='number'){if(isNaN(hv)||isNaN(hw))hx=isNaN(hv)==isNaN(hw);else hx=hv==hw;}else if(!hv&&!hw)hx=!![];else if(!hv||!hw)hx=![];else if(typeof hv==='function'||typeof hv==='object'){var hy=Object['getOwnPropertyNames'](hv);var hz=Object['getOwnPropertyNames'](hw);if(hy['length']!==hz['length'])hx=![];else for(let hA=0x0;hx===!![]&&hAhS['length']?hV:hS['length'];};BDFDB['readServerList']=function(){var hW=[],hX=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':'Guild','all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let hY in hX)if(hX[hY]['props']&&hX[hY]['props']['guild']&&hX[hY]['_reactInternalFiber']['child'])hW['push'](Object['assign'](new hX[hY]['props']['guild']['constructor'](hX[hY]['props']['guild']),{'div':BDFDB['React']['findDOMNodeSafe'](hX[hY]),'instance':hX[hY]}));return hW;};BDFDB['readUnreadServerList']=function(hZ){var i0=[];for(let i1 of hZ===undefined||!Array['isArray'](hZ)?BDFDB['readServerList']():hZ){let i2=Node['prototype']['isPrototypeOf'](i1)?i1:i1&&i1['div']?i1['div']:null;let i3=BDFDB['getReactValue'](i2,'return.stateNode.props');if(i3&&(i3['unread']||i3['badge']>0x0))i0['push'](i1);}return i0;};BDFDB['readMutedServerList']=function(i4){var i5=[],i6=BDFDB['WebModules']['findByProperties']('isGuildOrCategoryOrChannelMuted');for(let i7 of i4===undefined||!Array['isArray'](i4)?BDFDB['readServerList']():i4){let i8=Node['prototype']['isPrototypeOf'](i7)?i7:i7&&i7['div']?i7['div']:null;let i9=BDFDB['getReactValue'](i8,'return.stateNode.props.guild.id');if(i9&&i6['isGuildOrCategoryOrChannelMuted'](i9))i5['push'](i7);}return i5;};BDFDB['getSelectedServer']=function(){var ia=BDFDB['WebModules']['findByProperties']('getGuilds')['getGuild'](BDFDB['WebModules']['findByProperties']('getLastSelectedGuildId')['getGuildId']());if(ia)return BDFDB['getServerData'](ia['id'])||Object['assign'](new ia['constructor'](ia),{'div':null,'instance':null});else return null;};BDFDB['getServerID']=function(ib){if(!Node['prototype']['isPrototypeOf'](ib)||!BDFDB['getReactInstance'](ib))return;let ic=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],ib);if(!ic)return;var id=ic['querySelector'](BDFDB['dotCN']['guildiconwrapper']);var ie=id&&id['href']?id['href']['split']('/')['slice'](-0x2)[0x0]:null;return ie&&!isNaN(parseInt(ie))?ie['toString']():null;};BDFDB['getServerDiv']=function(ig){if(!ig)return null;if(Node['prototype']['isPrototypeOf'](ig))return BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],ig);else{let ih=typeof ig=='object'?ig['id']:ig;if(ih)return BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],document['querySelector'](BDFDB['dotCNS']['guilds']+BDFDB['dotCN']['guildiconwrapper']+'[href*=\x22/channels/'+ih+'\x22]'));}return null;};BDFDB['getServerData']=function(ii){if(!ii)return null;let ij=Node['prototype']['isPrototypeOf'](ii)?BDFDB['getServerID'](ii):typeof ii=='object'?ii['id']:ii;ij=typeof ij=='number'?ij['toFixed']():ij;for(let ik of BDFDB['readServerList']())if(ik&&ik['id']==ij)return ik;return null;};BDFDB['readChannelList']=function(){var il=[],im=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['channels']),'name':['ChannelCategoryItem','ChannelItem','PrivateChannel'],'all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let io in im)if(im[io]['props']&&!im[io]['props']['ispin']&&im[io]['props']['channel']&&im[io]['_reactInternalFiber']['return']){var ip=BDFDB['React']['findDOMNodeSafe'](im[io]);ip=ip&&BDFDB['containsClass'](ip['parentElement'],BDFDB['disCN']['categorycontainerdefault'],BDFDB['disCN']['channelcontainerdefault'],![])?ip['parentElement']:ip;il['push'](Object['assign'](new im[io]['props']['channel']['constructor'](im[io]['props']['channel']),{'div':ip,'instance':im[io]}));}return il;};BDFDB['getSelectedChannel']=function(){var iq=BDFDB['WebModules']['findByProperties']('getChannels')['getChannel'](BDFDB['WebModules']['findByProperties']('getLastSelectedChannelId')['getChannelId']());if(iq)return BDFDB['getChannelData'](iq['id'])||Object['assign'](new iq['constructor'](iq),{'div':null,'instance':null});else return null;};BDFDB['getChannelID']=function(ir){if(!Node['prototype']['isPrototypeOf'](ir)||!BDFDB['getReactInstance'](ir))return;ir=BDFDB['getParentEle'](BDFDB['dotCNC']['categorycontainerdefault']+BDFDB['dotCNC']['channelcontainerdefault']+BDFDB['dotCN']['dmchannel'],ir);if(!ir)return;var is=BDFDB['getKeyInformation']({'node':ir,'key':'channel'});return is?is['id']['toString']():null;};BDFDB['getChannelDiv']=function(it){if(!it)return null;let iu=BDFDB['getChannelData'](it);return iu?iu['div']:null;};BDFDB['getChannelData']=function(iv){if(!iv)return null;let iw=Node['prototype']['isPrototypeOf'](iv)?BDFDB['getChannelID'](iv):typeof iv=='object'?iv['id']:iv;iw=typeof iw=='number'?iw['toFixed']():iw;for(let ix of BDFDB['readChannelList']())if(ix&&ix['id']==iw)return ix;return null;};BDFDB['readDmList']=function(){var iy=[],iz=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':'DirectMessage','all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let iA in iz)if(iz[iA]['props']&&iz[iA]['props']['channel']&&iz[iA]['_reactInternalFiber']['child'])iy['push'](Object['assign'](new iz[iA]['props']['channel']['constructor'](iz[iA]['props']['channel']),{'div':BDFDB['React']['findDOMNodeSafe'](iz[iA]),'instance':iz[iA]}));return iy;};BDFDB['getDmID']=function(iB){if(!Node['prototype']['isPrototypeOf'](iB)||!BDFDB['getReactInstance'](iB))return;let iC=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],iB);if(!iC)return;var iD=iC['querySelector'](BDFDB['dotCN']['guildiconwrapper']);var iE=iD&&iD['href']?iD['href']['split']('/')['slice'](-0x1)[0x0]:null;return iE&&!isNaN(parseInt(iE))?iE['toString']():null;};BDFDB['getDmDiv']=function(iF){if(!iF)return null;if(Node['prototype']['isPrototypeOf'](iF)){var iG=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],iF);return iG?iG['parentElement']:iG;}else{let iH=typeof iF=='object'?iF['id']:iF;if(iH){var iG=BDFDB['getParentEle'](BDFDB['dotCN']['guildouter'],document['querySelector'](BDFDB['dotCNS']['guilds']+BDFDB['dotCNS']['dmcontainer']+BDFDB['dotCN']['guildiconwrapper']+'[href*=\x22/channels/@me/'+iH+'\x22]'));return iG&&BDFDB?iG['parentElement']:iG;}}return null;};BDFDB['getDmData']=function(iJ){if(!iJ)return null;let iK=Node['prototype']['isPrototypeOf'](iJ)?BDFDB['getDmID'](iJ):typeof iJ=='object'?iJ['id']:iJ;iK=typeof iK=='number'?iK['toFixed']():iK;for(let iL of BDFDB['readDmList']())if(iL&&iL['id']==iK)return iL;return null;};BDFDB['markChannelAsRead']=function(iM){if(!iM)return;var iN=BDFDB['WebModules']['findByProperties']('getOldestUnreadMessageId');var iO=BDFDB['WebModules']['findByProperties']('getAPIBaseURL');var iP=BDFDB['WebModules']['findByProperties']('Permissions','ActivityTypes','StatusTypes');if(!iN||!iO||!iP)return;for(let iQ of Array['isArray'](iM)?iM:typeof iM=='string'||typeof iM=='number'?Array['of'](iM):Array['from'](iM)){let iR=Node['prototype']['isPrototypeOf'](iQ)?BDFDB['getChannelID'](iQ)||BDFDB['getDmID'](iQ):iQ&&typeof iQ=='object'?iQ['id']:iQ;if(iR){let iS=iN['getOldestUnreadMessageId'](iR);if(iS)iO['post']({'body':{},'url':iP['Endpoints']['MESSAGES_ACK'](iR,iS)});}}};BDFDB['markGuildAsRead']=function(iT){if(!iT)return;var iU=BDFDB['WebModules']['findByProperties']('markGuildAsRead');if(!iU)return;for(let iV of Array['isArray'](iT)?iT:typeof iT=='string'||typeof iT=='number'?Array['of'](iT):Array['from'](iT)){let iW=Node['prototype']['isPrototypeOf'](iV)?BDFDB['getServerID'](iV):iV&&typeof iV=='object'?iV['id']:iV;if(iW)iU['markGuildAsRead'](iW);}};BDFDB['saveAllData']=function(iX,iY,iZ){var j0=require('fs'),j1,j2;if(!BDFDB['isBDv2']()){j2=typeof iY==='string'?iY:iY['name'];j1=require('path')['join'](BDFDB['getPluginsFolder'](),j2+'.config.json');}else{j2=typeof iY==='string'?iY['toLowerCase']():null;var j3=j2?BDFDB['Plugins'][j2]?BDFDB['Plugins'][j2]['contentPath']:null:iY['contentPath'];if(!j3)return;j1=require('path')['join'](j3,'settings.json');}var j4=j0['existsSync'](j1);var j5=!j4?{}:typeof BDFDB['cachedData'][j2]!=='undefined'?BDFDB['cachedData'][j2]:BDFDB['readConfig'](j1);j5[iZ]=iX;if(BDFDB['isObjectEmpty'](j5[iZ]))delete j5[iZ];if(BDFDB['isObjectEmpty'](j5)){delete BDFDB['cachedData'][j2];if(j4)j0['unlinkSync'](j1);}else{BDFDB['cachedData'][j2]=j5;j0['writeFileSync'](j1,JSON['stringify'](j5,null,'\x09'));}};BDFDB['loadAllData']=function(j6,j7){var j8=require('fs'),j9,ja;if(!BDFDB['isBDv2']()){ja=typeof j6==='string'?j6:j6['name'];j9=require('path')['join'](BDFDB['getPluginsFolder'](),ja+'.config.json');}else{ja=typeof j6==='string'?j6['toLowerCase']():null;var jb=ja?BDFDB['Plugins'][ja]?BDFDB['Plugins'][ja]['contentPath']:null:j6['contentPath'];if(!jb)return{};j9=require('path')['join'](jb,'settings.json');}if(!j8['existsSync'](j9)){delete BDFDB['cachedData'][ja];return{};}var jc=typeof BDFDB['cachedData'][ja]!=='undefined'?BDFDB['cachedData'][ja]:BDFDB['readConfig'](j9);BDFDB['cachedData'][ja]=jc;return jc&&typeof jc[j7]!=='undefined'?jc[j7]:{};};BDFDB['removeAllData']=function(jd,je){var jf=require('fs'),jg,jh;if(!BDFDB['isBDv2']()){jh=typeof jd==='string'?jd:jd['name'];jg=require('path')['join'](BDFDB['getPluginsFolder'](),jh+'.config.json');}else{jh=typeof jd==='string'?jd['toLowerCase']():null;var ji=jh?BDFDB['Plugins'][jh]?BDFDB['Plugins'][jh]['contentPath']:null:jd['contentPath'];if(!ji)return;jg=require('path')['join'](ji,'settings.json');}var jj=jf['existsSync'](jg);var jk=!jj?{}:typeof BDFDB['cachedData'][jh]!=='undefined'?BDFDB['cachedData'][jh]:BDFDB['readConfig'](jg);delete jk[je];if(BDFDB['isObjectEmpty'](jk)){delete BDFDB['cachedData'][jh];if(jj)jf['unlinkSync'](jg);}else{BDFDB['cachedData'][jh]=jk;jf['writeFileSync'](jg,JSON['stringify'](jk,null,'\x09'));}};BDFDB['getAllData']=function(jl,jm){if(!BDFDB['isObject'](jl)||!jl['defaults']||!jl['defaults'][jm])return{};var jn=BDFDB['loadAllData'](jl,jm),jo={},jp=![];for(let jq in jl['defaults'][jm]){if(jn[jq]==null){jo[jq]=jl['defaults'][jm][jq]['value'];jp=!![];}else jo[jq]=jn[jq];}if(jp)BDFDB['saveAllData'](jo,jl,jm);return jo;};BDFDB['readConfig']=function(jr){try{return JSON['parse'](require('fs')['readFileSync'](jr));}catch(js){return{};}};BDFDB['saveData']=function(jt,ju,jv,jw){var jx=BDFDB['loadAllData'](jv,jw);jx[jt]=ju;BDFDB['saveAllData'](jx,jv,jw);};BDFDB['loadData']=function(jy,jz,jA){var jB=BDFDB['loadAllData'](jz,jA);var jC=jB[jy];return jC===undefined?null:jC;};BDFDB['removeData']=function(jD,jE,jF){var jG=BDFDB['loadAllData'](jE,jF);delete jG[jD];BDFDB['saveAllData'](jG,jE,jF);};BDFDB['getData']=function(jH,jI,jJ){var jK=BDFDB['getAllData'](jI,jJ);var jL=jK[jH];return jL===undefined?null:jL;};BDFDB['appendWebScript']=function(jM,jN){if(!jN&&!document['head']['querySelector']('bd-head\x20bd-scripts'))document['head']['appendChild'](BDFDB['htmlToElement'](''));jN=jN||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];jN=Node['prototype']['isPrototypeOf'](jN)?jN:document['head'];BDFDB['removeWebScript'](jM,jN);jN['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebScript']=function(jO,jP){jP=jP||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];jP=Node['prototype']['isPrototypeOf'](jP)?jP:document['head'];BDFDB['removeEles'](jP['querySelectorAll']('script[src=\x22'+jO+'\x22]'));};BDFDB['appendWebStyle']=function(jQ,jR){if(!jR&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));jR=jR||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];jR=Node['prototype']['isPrototypeOf'](jR)?jR:document['head'];BDFDB['removeWebStyle'](jQ,jR);jR['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebStyle']=function(jS,jT){jT=jT||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];jT=Node['prototype']['isPrototypeOf'](jT)?jT:document['head'];BDFDB['removeEles'](jT['querySelectorAll']('link[href=\x22'+jS+'\x22]'));};BDFDB['appendLocalStyle']=function(jU,jV,jW){if(!jW&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));jW=jW||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];jW=Node['prototype']['isPrototypeOf'](jW)?jW:document['head'];BDFDB['removeLocalStyle'](jU,jW);jW['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeLocalStyle']=function(jX,jY){jY=jY||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];jY=Node['prototype']['isPrototypeOf'](jY)?jY:document['head'];BDFDB['removeEles'](jY['querySelectorAll']('style[id=\x22'+jX+'CSS\x22]'));};BDFDB['formatBytes']=function(jZ,k0){jZ=parseInt(jZ);if(isNaN(jZ)||jZ<0x0)return'0\x20Bytes';if(jZ==0x1)return'1\x20Byte';var k1=Math['floor'](Math['log'](jZ)/Math['log'](0x400));return parseFloat((jZ/Math['pow'](0x400,k1))['toFixed'](k0<0x1?0x0:k0>0x14?0x14:k0||0x2))+'\x20'+['Bytes','KB','MB','GB','TB','PB','EB','ZB','YB'][k1];};BDFDB['colorCONVERT']=function(k2,k3,k4){if(!k2)return null;k3=k3===undefined||!k3?k3='RGBCOMP':k3['toUpperCase']();k4=k4===undefined||!k4||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP']['includes'](k4['toUpperCase']())?BDFDB['colorTYPE'](k2):k4['toUpperCase']();if(k3=='RGBCOMP'){switch(k4){case'RGBCOMP':if(k2['length']==0x3)return kE(k2);else if(k2['length']==0x4){var k5=kH(k2['pop']());return kE(k2)['concat'](k5);}case'RGB':return kE(k2['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':var k6=k2['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var k5=kH(k6['pop']());return kE(k6)['concat'](k5);case'HSLCOMP':if(k2['length']==0x3)return BDFDB['colorCONVERT']('hsl('+k2['join'](',')+')','RGBCOMP');else if(k2['length']==0x4){var k5=kH(jg['pop']());return BDFDB['colorCONVERT']('hsl('+jg['join'](',')+')','RGBCOMP')['concat'](k5);}case'HSL':var k9=kL(k2['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var ka,kb,kc,kd,ke,kf,kg,kh;var ki=k9[0x0]/0x168,kj=parseInt(k9[0x1])/0x64,kk=parseInt(k9[0x2])/0x64;kd=Math['floor'](ki*0x6);ke=ki*0x6-kd;kf=kk*(0x1-kj);kg=kk*(0x1-ke*kj);kh=kk*(0x1-(0x1-ke)*kj);switch(kd%0x6){case 0x0:ka=kk,kb=kh,kc=kf;break;case 0x1:ka=kg,kb=kk,kc=kf;break;case 0x2:ka=kf,kb=kk,kc=kh;break;case 0x3:ka=kf,kb=kg,kc=kk;break;case 0x4:ka=kh,kb=kf,kc=kk;break;case 0x5:ka=kk,kb=kf,kc=kg;break;}return[Math['round'](ka*0xff),Math['round'](kb*0xff),Math['round'](kc*0xff)];case'HSLA':var k9=k2['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var k5=kH(k9['pop']());return BDFDB['colorCONVERT']('hsl('+k9['join'](',')+')','RGBCOMP')['concat'](k5);case'HEX':var kn=/^#([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'](k2);return[parseInt(kn[0x1]+kn[0x1]||kn[0x4],0x10)['toString'](),parseInt(kn[0x2]+kn[0x2]||kn[0x5],0x10)['toString'](),parseInt(kn[0x3]+kn[0x3]||kn[0x6],0x10)['toString']()];default:return null;}}else{var ko=k4=='RGBCOMP'?k2:BDFDB['colorCONVERT'](k2,'RGBCOMP',k4);if(ko)switch(k3){case'RGB':return'rgb('+kE(ko['slice'](0x0,0x3))['join'](',')+')';case'RGBA':ko=ko['slice'](0x0,0x4);var k5=ko['length']==0x4?kH(ko['pop']()):0x1;return'rgba('+kE(ko)['concat'](k5)['join'](',')+')';case'HSLCOMP':var k5=ko['length']==0x4?kH(ko['pop']()):null;var k9=kL(BDFDB['colorCONVERT'](ko,'HSL')['replace'](/\s/g,'')['split'](','));return k5?k9['concat'](k5):k9;case'HSL':var ka=kC(ko[0x0]),kb=kC(ko[0x1]),kc=kC(ko[0x2]);var kv=Math['max'](ka,kb,kc),kw=Math['min'](ka,kb,kc),kx=kv-kw,ki,kj=kv===0x0?0x0:kx/kv,kk=kv/0xff;switch(kv){case kw:ki=0x0;break;case ka:ki=kb-kc+kx*(kb0xff?0xff:ke<0x0?0x0:ke;};function kE(k6){return k6['map'](ke=>{return kC(ke);});};function kH(k5){k5=k5['toString']();k5=(k5['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(k5['replace'](/[^0-9\.\-]/g,''));return isNaN(k5)||k5>0x1?0x1:k5<0x0?0x0:k5;};function kJ(kK){kK=parseFloat(kK['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(kK)||kK>0x64?0x64:kK<0x0?0x0:kK)+'%';};function kL(k6){let ki=parseFloat(k6['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));ki=isNaN(ki)||ki>0x168?0x168:ki<0x0?0x0:ki;return[ki]['concat'](k6['map'](kO=>{return kJ(kO);}));};};BDFDB['colorSETALPHA']=function(kP,kQ,kR){var kS=BDFDB['colorCONVERT'](kP,'RGBCOMP');if(kS){kQ=kQ['toString']();kQ=(kQ['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(kQ['replace'](/[^0-9\.\-]/g,''));kQ=isNaN(kQ)||kQ>0x1?0x1:kQ<0x0?0x0:kQ;kS[0x3]=kQ;kR=(kR||BDFDB['colorTYPE'](kP))['toUpperCase']();kR=kR=='HSL'||kR=='RGB'?kR+'A':kR;return BDFDB['colorCONVERT'](kS,kR);}return null;};BDFDB['colorCHANGE']=function(kT,kU,kV){kU=parseFloat(kU);if(kT&&typeof kU=='number'&&!isNaN(kU)){var kW=BDFDB['colorCONVERT'](kT,'RGBCOMP');if(kW){if(parseInt(kU)!==kU){kU=kU['toString']();kU=(kU['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(kU['replace'](/[^0-9\.\-]/g,''));kU=isNaN(kU)?0x0:kU;return BDFDB['colorCONVERT']([Math['round'](kW[0x0]*(0x1+kU)),Math['round'](kW[0x1]*(0x1+kU)),Math['round'](kW[0x2]*(0x1+kU))],kV||BDFDB['colorTYPE'](kT));}else return BDFDB['colorCONVERT']([Math['round'](kW[0x0]+kU),Math['round'](kW[0x1]+kU),Math['round'](kW[0x2]+kU)],kV||BDFDB['colorTYPE'](kT));}}return null;};BDFDB['colorINV']=function(kX,kY){if(kX){var kZ=BDFDB['colorCONVERT'](kX,'RGBCOMP');if(kZ)return BDFDB['colorCONVERT']([0xff-kZ[0x0],0xff-kZ[0x1],0xff-kZ[0x2]],kY||BDFDB['colorTYPE'](kX));}return null;};BDFDB['colorCOMPARE']=function(l0,l1){if(l0&&l1){l0=BDFDB['colorCONVERT'](l0,'RGBCOMP');l1=BDFDB['colorCONVERT'](l1,'RGBCOMP');if(l0&&l1)return BDFDB['equals'](l0,l1);}return null;};BDFDB['colorISBRIGHT']=function(l2,l3=0xa0){l2=BDFDB['colorCONVERT'](l2,'RGBCOMP');if(!l2)return![];return parseInt(l3)