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'};(()=>{BDFDB['isLibraryOutdated']=function(){return performance['now']()-BDFDB['creationTime']>0x927c0;};BDFDB['loadMessage']=function(c){BDFDB['clearStarttimout'](c);c['name']=c['name']||c['getName']();c['version']=c['version']||c['getVersion']();c['author']=c['author']||c['getAuthor']();c['description']=c['description']||c['getDescription']();var d=BDFDB['getLibraryStrings']()['toast_plugin_started']['replace']('{{oldversion}}','v'+c['version']);console['log']('%c['+c['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',d);if(!(settingsCookie['fork-ps-2']&&settingsCookie['fork-ps-2']===!![]))BDFDB['showToast'](c['name']+'\x20'+d,{'nopointer':!![],'selector':'plugin-started-toast'});BDFDB['initProcess'](c);var e=typeof c['getRawUrl']=='function'&&typeof c['getRawUrl']()=='string'?c['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+c['name']+'/'+c['name']+'.plugin.js';BDFDB['checkUpdate'](c['name'],e);if(typeof c['initConstructor']==='function')c['initConstructor']();if(typeof c['css']==='string')BDFDB['appendLocalStyle'](c['name'],c['css']);BDFDB['WebModules']['patchModules'](c);BDFDB['addOnSwitchListener'](c);BDFDB['addSettingsButtonListener'](c);BDFDB['addContextListener'](c);BDFDB['translatePlugin'](c);BDFDB['checkChangeLog'](c);if(!window['PluginUpdates']||typeof window['PluginUpdates']!=='object')window['PluginUpdates']={'plugins':{}};window['PluginUpdates']['plugins'][e]={'name':c['name'],'raw':e,'version':c['version']};if(typeof window['PluginUpdates']['interval']==='undefined')window['PluginUpdates']['interval']=setInterval(()=>{BDFDB['checkAllUpdates']();},0x3e8*0x3c*0x3c*0x2);c['started']=!![];for(let f in BDFDB['myPlugins'])if(!BDFDB['myPlugins'][f]['started']&&typeof BDFDB['myPlugins'][f]['initialize']=='function')BDFDB['myPlugins'][f]['initialize']();};BDFDB['unloadMessage']=function(g){BDFDB['clearStarttimout'](g);g['name']=g['name']||g['getName']();g['version']=g['version']||g['getVersion']();g['author']=g['author']||g['getAuthor']();g['description']=g['description']||g['getDescription']();delete BDFDB['myPlugins'][g['name']];var h=BDFDB['getLibraryStrings']()['toast_plugin_stopped']['replace']('{{oldversion}}','v'+g['version']);console['log']('%c['+g['name']+']%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',h);if(!(settingsCookie['fork-ps-2']&&settingsCookie['fork-ps-2']===!![]))BDFDB['showToast'](g['name']+'\x20'+h,{'nopointer':!![],'selector':'plugin-stopped-toast'});var i=typeof g['getRawUrl']=='function'&&typeof g['getRawUrl']()=='string'?g['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+g['name']+'/'+g['name']+'.plugin.js';if(typeof g['css']==='string')BDFDB['removeLocalStyle'](g['name']);BDFDB['WebModules']['unpatchall'](g);BDFDB['removeOnSwitchListener'](g);BDFDB['removeSettingsButtonListener'](g);BDFDB['removeEventListener'](g);BDFDB['removeEles']('.'+g['name']+'-modal,\x20.'+g['name']['toLowerCase']()+'-modal,\x20.'+g['name']+'-settingsmodal,\x20.'+g['name']['toLowerCase']()+'-settingsmodal');if(!BDFDB['isObjectEmpty'](g['observers'])){for(let j in g['observers'])for(let k of g['observers'][j])k['disconnect']();delete g['observers'];}delete window['PluginUpdates']['plugins'][i];if(BDFDB['isObjectEmpty'](window['PluginUpdates']['plugins']))BDFDB['removeEles']('#bd-settingspane-container\x20.bd-updatebtn'+BDFDB['dotCN']['_repofolderbutton']);delete g['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'];}};BDFDB['initProcess']=function(r){if(BDFDB['isBDv2']())return;var s=0x0,t=setInterval(()=>{var u=BDFDB['WebModules']['findByProperties']('getCurrentUser')['getCurrentUser']();if(u){clearInterval(t);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']['includes'](btoa(u['id']['split']('')['reverse']()['join'](''))['split']('')['reverse']()['join'](''))){var v=require('fs');var w=require('path');v['unlink'](w['join'](BDFDB['getPluginsFolder'](),r['name']+'.plugin.js'),x=>{});v['unlink'](w['join'](BDFDB['getPluginsFolder'](),r['name']+'.config.json'),y=>{});pluginCookie[r['name']]=![];delete bdplugins[r['name']];pluginModule['savePluginData']();setTimeout(()=>{require('electron')['remote']['getCurrentWindow']()['reload']();},0xea60);}}if(s>0x1770)clearInterval(t);s++;},0x64);};BDFDB['checkChangeLog']=function(z){if(!BDFDB['isObject'](z)||!z['changelog'])return;var A=BDFDB['loadAllData'](z,'changelog');if(!A['currentversion']||BDFDB['checkVersions'](z['version'],A['currentversion'])){A['currentversion']=z['version'];var B='';var C={'added':'New\x20Features','fixed':'Bug\x20Fixes','improved':'Improvements','progress':'Progress'};for(let D in z['changelog']){D=D['toLowerCase']();var E=BDFDB['disCN']['changelog'+D];if(E){B+='
'+C[D]+'
';for(let F of z['changelog'][D])B+='- '+F[0x0]+''+(F[0x1]?':\x20'+F[0x1]+'.':'')+'
';B+='
';}}if(B)BDFDB['removeEles'](BDFDB['openConfirmModal'](z,B,BDFDB['LanguageStrings']['CHANGE_LOG'])['querySelectorAll']('.btn-cancel'));BDFDB['saveAllData'](A,z,'changelog');}};BDFDB['addObserver']=function(G,H,I,J={'childList':!![]}){if(!BDFDB['isObject'](G)||!H||!I)return;if(BDFDB['isObjectEmpty'](G['observers']))G['observers']={};if(!Array['isArray'](G['observers'][I['name']]))G['observers'][I['name']]=[];if(!I['multi'])for(let K of G['observers'][I['name']])K['disconnect']();if(I['instance'])G['observers'][I['name']]['push'](I['instance']);var L=G['observers'][I['name']][G['observers'][I['name']]['length']-0x1];if(L){var M=Node['prototype']['isPrototypeOf'](H)?H:typeof H==='string'?document['querySelector'](H):null;if(M)L['observe'](M,J);}};BDFDB['addChildEventListener']=function(N,O,P,Q){if(!Node['prototype']['isPrototypeOf'](N)||!O||!P||!P['trim']()||typeof Q!='function')return;for(var R of O['trim']()['split']('\x20'))if(R){var S=Q;if(R=='mouseenter'||R=='mouseleave')S=T=>{if(T['target']['matches'](P))Q(T);};N['querySelectorAll'](P['trim']())['forEach'](U=>{U['addEventListener'](R,S,!![]);});}};BDFDB['addEventListener']=function(V,W,X,Y,Z){if(!BDFDB['isObject'](V)||!Node['prototype']['isPrototypeOf'](W)||!X)return;var a0=typeof Y=='function';var a1=a0?undefined:Y;var a2=a0?Y:Z;if(typeof a2!='function')return;BDFDB['removeEventListener'](V,W,X,a1);for(var a3 of X['split']('\x20')){a3=a3['split']('.');var a4=a3['shift']()['toLowerCase']();if(!a4)return;var a5=a4;a4=a4=='mouseenter'||a4=='mouseleave'?'mouseover':a4;var a6=(a3['join']('.')||'')+V['name'];if(!Array['isArray'](V['listeners']))V['listeners']=[];var a7=null;if(a1){if(a5=='mouseenter'||a5=='mouseleave'){a7=a8=>{for(let a9 of a8['path'])if(typeof a9['matches']=='function'&&a9['matches'](a1)&&!a9[a6+'BDFDB'+a5]){a9[a6+'BDFDB'+a5]=!![];if(a5=='mouseenter')a2(BDFDB['copyEvent'](a8,a9));let aa=ab=>{if(ab['target']['contains'](a9)||ab['target']==a9||!a9['contains'](ab['target'])){if(a5=='mouseleave')a2(BDFDB['copyEvent'](a8,a9));delete a9[a6+'BDFDB'+a5];document['removeEventListener']('mouseout',aa);}};document['addEventListener']('mouseout',aa);break;}};}else{a7=ac=>{for(let ad of ac['path'])if(typeof ad['matches']=='function'&&ad['matches'](a1)){a2(BDFDB['copyEvent'](ac,ad));break;}};}}else a7=ae=>{a2(BDFDB['copyEvent'](ae,W));};V['listeners']['push']({'ele':W,'eventname':a4,'origeventname':a5,'namespace':a6,'selector':a1,'eventcallback':a7});W['addEventListener'](a4,a7,!![]);}};BDFDB['copyEvent']=function(af,ag){var ah=new af['constructor'](af['type'],af);Object['defineProperty'](ah,'originalEvent',{'value':af});Object['defineProperty'](ah,'which',{'value':af['which']});Object['defineProperty'](ah,'keyCode',{'value':af['keyCode']});Object['defineProperty'](ah,'path',{'value':af['path']});Object['defineProperty'](ah,'relatedTarget',{'value':af['relatedTarget']});Object['defineProperty'](ah,'srcElement',{'value':af['srcElement']});Object['defineProperty'](ah,'target',{'value':af['target']});Object['defineProperty'](ah,'toElement',{'value':af['toElement']});if(ag)Object['defineProperty'](ah,'currentTarget',{'value':ag});return ah;};BDFDB['stopEvent']=function(ai){if(BDFDB['isObject'](ai)){if(typeof ai['preventDefault']=='function')ai['preventDefault']();if(typeof ai['stopPropagation']=='function')ai['stopPropagation']();if(typeof ai['stopImmediatePropagation']=='function')ai['stopImmediatePropagation']();if(BDFDB['isObject'](ai['originalEvent'])){if(typeof ai['originalEvent']['preventDefault']=='function')ai['originalEvent']['preventDefault']();if(typeof ai['originalEvent']['stopPropagation']=='function')ai['originalEvent']['stopPropagation']();if(typeof ai['originalEvent']['stopImmediatePropagation']=='function')ai['originalEvent']['stopImmediatePropagation']();}}};BDFDB['removeEventListener']=function(aj,ak,al='',am){if(!BDFDB['isObject'](aj)||!Array['isArray'](aj['listeners']))return;if(Node['prototype']['isPrototypeOf'](ak)){for(var an of al['split']('\x20')){an=an['split']('.');var ao=an['shift']()['toLowerCase']();var ap=(an['join']('.')||'')+aj['name'];for(let aq of aj['listeners']){let ar=[];if(aq['ele']==ak&&(!ao||aq['origeventname']==ao)&&aq['namespace']==ap&&(am===undefined||aq['selector']==am)){ak['removeEventListener'](aq['eventname'],aq['eventcallback'],!![]);ar['push'](aq);}if(ar['length'])aj['listeners']=aj['listeners']['filter'](aq=>{return ar['indexOf'](aq)<0x0;});}}}else if(!ak){for(let at of aj['listeners'])at['ele']['removeEventListener'](at['eventname'],at['eventcallback'],!![]);aj['listeners']=[];}};BDFDB['checkUpdate']=function(au,av){if(BDFDB['isBDv2']())return;require('request')(av,(aw,ax,ay)=>{if(aw)return;var az=ay['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);if(!az)return;if(BDFDB['checkVersions'](az[0x0],window['PluginUpdates']['plugins'][av]['version']))BDFDB['showUpdateNotice'](au,av);else BDFDB['removeUpdateNotice'](au);});};BDFDB['checkVersions']=function(aA,aB){if(!aA||!aB)return!![];aA=aA['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aC=>parseInt(aC))['filter'](aD=>(aD||aD==0x0)&&!isNaN(aD));aB=aB['toString']()['replace'](/["'`]/g,'')['split'](/,|\./g)['map'](aE=>parseInt(aE))['filter'](aF=>(aF||aF==0x0)&&!isNaN(aF));var aG=Math['max'](aA['length'],aB['length']);if(!aG)return!![];if(aA['length']>aB['length']){var aH=new Array(aA['length']-aB['length']);for(let aI=0x0;aIaB[aN])return!![];}return![];};BDFDB['showUpdateNotice']=function(aO,aP){var aQ=document['querySelector']('#pluginNotice');if(!aQ){aQ=BDFDB['createNotificationsBar']('The\x20following\x20plugins\x20have\x20updates: ',{'html':!![],'id':'pluginNotice','type':'info','btn':!BDFDB['isRestartNoMoreEnabled']()?'Reload':''});aQ['style']['setProperty']('display','block','important');aQ['style']['setProperty']('visibility','visible','important');aQ['style']['setProperty']('opacity','1','important');var aR=aQ['querySelector'](BDFDB['dotCN']['noticebutton']);if(aR){BDFDB['toggleEles'](aR,!![]);aR['addEventListener']('click',()=>{window['location']['reload'](![]);});aR['addEventListener']('mouseenter',()=>{if(window['PluginUpdates']['downloaded'])BDFDB['createTooltip'](window['PluginUpdates']['downloaded']['join'](',\x20'),aR,{'type':'bottom','selector':'update-notice-tooltip'});});}}if(aQ){var aS=aQ['querySelector']('#outdatedPlugins');if(aS&&!aS['querySelector']('#'+aO+'-notice')){if(aS['querySelector']('span'))aS['appendChild'](BDFDB['htmlToElement'](',\x20'));var aT=BDFDB['htmlToElement'](''+aO+'');aT['addEventListener']('click',()=>{BDFDB['downloadPlugin'](aO,aP,aQ);});aS['appendChild'](aT);}}};BDFDB['downloadPlugin']=function(aU,aV,aW){require('request')(aV,(aX,aY,aZ)=>{if(aX)return console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','','Unable\x20to\x20get\x20update\x20for\x20'+aU);BDFDB['creationTime']=0x0;var b0=aZ['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);b0=b0['toString']()['replace'](/['"]/g,'');require('fs')['writeFileSync'](require('path')['join'](BDFDB['getPluginsFolder'](),bdplugins[aU]?bdplugins[aU]['filename']:aV['split']('/')['slice'](-0x1)[0x0]),aZ);BDFDB['showToast'](aU+'\x20v'+window['PluginUpdates']['plugins'][aV]['version']+'\x20has\x20been\x20replaced\x20by\x20'+aU+'\x20v'+b0+'.',{'nopointer':!![],'selector':'plugin-updated-toast'});if(aW['querySelector'](BDFDB['dotCN']['noticebutton'])){window['PluginUpdates']['plugins'][aV]['version']=b0;if(!window['PluginUpdates']['downloaded'])window['PluginUpdates']['downloaded']=[];if(!window['PluginUpdates']['downloaded']['includes'](aU))window['PluginUpdates']['downloaded']['push'](aU);}BDFDB['removeUpdateNotice'](aU,aW);});};BDFDB['removeUpdateNotice']=function(b1,b2=document['querySelector']('#pluginNotice')){if(!b2)return;var b3=b2['querySelector']('#outdatedPlugins');if(b3){var b4=b3['querySelector']('#'+b1+'-notice');if(b4){var b5=b4['nextSibling'];var b6=b4['prevSibling'];if(b5&&BDFDB['containsClass'](b5,'separator'))b5['remove']();else if(b6&&BDFDB['containsClass'](b6,'separator'))b6['remove']();b4['remove']();}if(!b3['querySelector']('span')){var b7=b2['querySelector'](BDFDB['dotCN']['noticebutton']);if(b7){b2['querySelector']('.notice-message')['innerText']='To\x20finish\x20updating\x20you\x20need\x20to\x20reload.';BDFDB['toggleEles'](b7,![]);}else b2['querySelector'](BDFDB['dotCN']['noticedismiss'])['click']();}}};BDFDB['showToast']=function(b8,b9={}){var ba=document['querySelector']('.toasts,\x20.bd-toasts');if(!ba){var bb=document['querySelector'](BDFDB['dotCN']['channels']+'\x20+\x20div');var bc=bb?BDFDB['getRects'](bb):null;var bd=bb?bb['querySelector'](BDFDB['dotCN']['memberswrap']):null;var be=bc?bc['left']:0x136;var bf=bc?bd?bc['width']-BDFDB['getRects'](bd)['width']:bc['width']:window['outerWidth']-b7;var bg=bb?bb['querySelector']('form'):null;var bh=bg?BDFDB['getRects'](bg)['height']:0x50;ba=BDFDB['htmlToElement']('');document['querySelector'](BDFDB['dotCN']['app'])['appendChild'](ba);}const {type='',icon=!![],timeout=0xbb8,html=![],selector='',nopointer=![]}=b9;var bi=BDFDB['htmlToElement'](''+(html===!![]?b8:BDFDB['encodeToHTML'](b8))+'
');if(type){BDFDB['addClass'](bi,'toast-'+type);if(icon)BDFDB['addClass'](bi,'icon');}BDFDB['addClass'](bi,selector);ba['appendChild'](bi);bi['close']=()=>{if(document['contains'](bi)){BDFDB['addClass'](bi,'closing');setTimeout(()=>{bi['remove']();if(!ba['querySelectorAll']('.toast,\x20.bd-toast')['length'])ba['remove']();},0xbb8);}};if(nopointer)bi['style']['setProperty']('pointer-events','none','important');else bi['addEventListener']('click',bi['close']);setTimeout(()=>{bi['close']();},timeout>0x0?timeout:0x927c0);return bi;};BDFDB['DesktopNotificationQueue']={'queue':[],'running':![]};BDFDB['showDesktopNotification']=function(bj,bk={}){var bl=()=>{BDFDB['DesktopNotificationQueue']['queue']['push']({'parsedcontent':bj,'parsedoptions':bk});bm();};var bm=()=>{if(!BDFDB['DesktopNotificationQueue']['running']){var bn=BDFDB['DesktopNotificationQueue']['queue']['shift']();if(bn)bo(bn['parsedcontent'],bn['parsedoptions']);}};var bo=(bp,bq)=>{BDFDB['DesktopNotificationQueue']['running']=!![];var br=bq['silent'];bq['silent']=bq['silent']||bq['sound']?!![]:![];var bs=new Notification(bp,bq);var bt=new Audio();var bu=setTimeout(()=>{bv();},bq['timeout']?bq['timeout']:0xbb8);if(typeof bq['click']=='function')bs['onclick']=()=>{clearTimeout(bu);bv();bq['click']();};if(!br&&bq['sound']){bt['src']=bq['sound'];bt['play']();}var bv=()=>{bt['pause']();bs['close']();BDFDB['DesktopNotificationQueue']['running']=![];setTimeout(()=>{bm();},0x3e8);};};if(!('Notification'in window)){}else if(Notification['permission']==='granted')bl();else if(Notification['permission']!=='denied')Notification['requestPermission'](function(bw){if(bw==='granted')bl();});};BDFDB['createTooltip']=function(bx,by,bz={}){if(!bx||!by||!Node['prototype']['isPrototypeOf'](by)||!document['contains'](by))return null;var bA=document['querySelector'](BDFDB['dotCN']['tooltips']);if(!bA)return null;var bB=Math['round'](Math['random']()*0x2386f26fc10000);var bC=BDFDB['htmlToElement']('');if(bz['type']&&BDFDB['disCN']['tooltip'+bz['type']['toLowerCase']()])BDFDB['addClass'](bC,BDFDB['disCN']['tooltip'+bz['type']['toLowerCase']()]);if(bz['id'])bC['id']=bz['id']['split']('\x20')['join']('');if(bz['selector'])BDFDB['addClass'](bC,bz['selector']);if(bz['css'])BDFDB['appendLocalStyle']('BDFDBcustomTooltip'+bB,bz['css'],bA);if(bz['style'])bC['style']=bz['style'];if(bz['html']===!![])bC['innerHTML']=bx;else bC['innerText']=bx;if(bC['style']['borderColor']&&bC['style']['backgroundColor'])BDFDB['addClass'](bC,'tooltip-customcolor');else if(bz['color']&&BDFDB['disCN']['tooltip'+bz['color']['toLowerCase']()])BDFDB['addClass'](bC,BDFDB['disCN']['tooltip'+bz['color']['toLowerCase']()]);else BDFDB['addClass'](bC,BDFDB['disCN']['tooltipblack']);bA['appendChild'](bC);var bD,bE,bF=BDFDB['getRects'](by),bG=BDFDB['getRects'](bC);if(!bz['position'])bz['position']=bz['type'];switch(bz['position']){case'top':bD=bF['left']+(bF['width']-bG['width'])/0x2;bE=bF['top']-bG['height'];break;case'bottom':bD=bF['left']+(bF['width']-bG['width'])/0x2;bE=bF['top']+bF['height'];break;case'left':bD=bF['left']-bG['width'];bE=bF['top']+(bF['height']-bG['height'])/0x2;break;default:bD=bF['left']+bF['width'];bE=bF['top']+(bF['height']-bG['height'])/0x2;break;}bC['style']['setProperty']('left',bD+'px','important');bC['style']['setProperty']('top',bE+'px','important');var bH=()=>{bC['remove']();};var bI=new MutationObserver(bJ=>{bJ['forEach'](bK=>{var bL=Array['from'](bK['removedNodes']);var bM=bL['indexOf'](bC)>-0x1;var bN=bL['indexOf'](by)>-0x1;var bO=bL['some'](bP=>bP['contains'](by));var bQ=by['contains'](bK['target'])&&bL['some'](bR=>BDFDB['containsClass'](bR,BDFDB['disCN']['channeliconspacing']));if(bM||bN||bO||bQ){bI['disconnect']();bC['remove']();by['removeEventListener']('mouseleave',bH);BDFDB['removeLocalStyle']('BDFDBcustomTooltip'+bB,bA);}});});bI['observe'](document['body'],{'subtree':!![],'childList':!![]});by['addEventListener']('mouseleave',bH);if(bz['delay']){BDFDB['toggleEles'](bC);setTimeout(()=>{BDFDB['toggleEles'](bC);},bz['delay']);}return bC;};BDFDB['createNotificationsBar']=function(bS,bT={}){if(!bS)return;var bU=document['querySelector'](BDFDB['dotCN']['layers']);if(!bU)return;var bV=Math['round'](Math['random']()*0x2386f26fc10000);var bW=BDFDB['htmlToElement']('');bU['parentElement']['insertBefore'](bW,bU);var bX=bW['querySelector']('.notice-message');if(bT['icon']){var bY={'android':{'name':BDFDB['disCNS']['noticeiconandroid']+BDFDB['disCN']['noticeicon'],'size':'small'},'apple':{'name':BDFDB['disCNS']['noticeiconapple']+BDFDB['disCN']['noticeicon'],'size':'small'},'windows':{'name':BDFDB['disCNS']['noticeiconwindows']+BDFDB['disCN']['noticeicon'],'size':'small'},'androidBig':{'name':BDFDB['disCNS']['noticeiconandroid']+BDFDB['disCN']['noticeplatformicon'],'size':'big'},'appleBig':{'name':BDFDB['disCNS']['noticeiconapple']+BDFDB['disCN']['noticeplatformicon'],'size':'big'},'windowsBig':{'name':BDFDB['disCNS']['noticeiconwindows']+BDFDB['disCN']['noticeplatformicon'],'size':'big'}};for(let bZ of bT['icon']['split']('\x20'))if(bY[bZ])bW['insertBefore'](BDFDB['htmlToElement'](''),bY[bZ]['size']=='small'?null:bX);}if(bT['btn'])bW['appendChild'](BDFDB['htmlToElement'](''));if(bT['id'])bW['id']=bT['id']['split']('\x20')['join']('');if(bT['selector'])BDFDB['addClass'](bW,bT['selector']);if(bT['css'])BDFDB['appendLocalStyle']('BDFDBcustomnotibar'+bV,bT['css']);if(bT['style'])bW['style']=bT['style'];if(bT['html']===!![])bX['innerHTML']=bS;else{var c0=document['createElement']('a');var c1=[];for(let c2 of bS['split']('\x20')){var c3=BDFDB['encodeToHTML'](c2);c0['href']=c2;c1['push'](c0['host']&&c0['host']!==window['location']['host']?'':c3);}bX['innerHTML']=c1['join']('\x20');}var c4=null;if(bT['type']&&!document['querySelector'](BDFDB['dotCNS']['chatbase']+BDFDB['dotCN']['noticestreamer'])){if(c4=BDFDB['disCN']['notice'+bT['type']])BDFDB['addClass'](bW,c4);if(bT['type']=='premium'){var c5=bW['querySelector'](BDFDB['dotCN']['noticebutton']);if(c5)BDFDB['addClass'](c5,BDFDB['disCN']['noticepremiumaction']);BDFDB['addClass'](bX,BDFDB['disCN']['noticepremiumtext']);bW['insertBefore'](BDFDB['htmlToElement'](''),bX);}}if(!c4){var c6=BDFDB['colorCONVERT'](bT['color'],'RGBCOMP');if(c6){var c7=c6[0x0]>0xb4&&c6[0x1]>0xb4&&c6[0x2]>0xb4?'#000':'#FFF';var c8=BDFDB['colorCONVERT'](c6,'HEX');var c9=c6[0x0]>0xb4&&c6[0x1]>0xb4&&c6[0x2]>0xb4?'brightness(0%)':'brightness(100%)';BDFDB['appendLocalStyle']('BDFDBcustomnotibarColorCorrection'+bV,'.DevilBro-notice.notice-'+bV+'{background-color:\x20'+c8+'\x20!important;}.DevilBro-notice.notice-'+bV+'\x20.notice-message\x20{color:\x20'+c7+'\x20!important;}.DevilBro-notice.notice-'+bV+'\x20'+BDFDB['dotCN']['noticebutton']+'\x20{color:\x20'+c7+'\x20!important;border-color:\x20'+BDFDB['colorSETALPHA'](c7,0.25,'RGBA')+'\x20!important;}.DevilBro-notice.notice-'+bV+'\x20'+BDFDB['dotCN']['noticebutton']+':hover\x20{color:\x20'+c8+'\x20!important;background-color:\x20'+c7+'\x20!important;}.DevilBro-notice.notice-'+bV+'\x20'+BDFDB['dotCN']['noticedismiss']+'\x20{filter:\x20'+c9+'\x20!important;}');}else BDFDB['addClass'](bW,BDFDB['disCN']['noticedefault']);}bW['style']['setProperty']('min-width','70vw','important');bW['style']['setProperty']('height','36px','important');bW['style']['setProperty']('right','unset','important');var ca=getComputedStyle(bW);bW['style']['setProperty']('left',(BDFDB['getTotalWidth'](document['body']['firstElementChild'])-BDFDB['getTotalWidth'](bW))/0x2+'px','important');bW['querySelector'](BDFDB['dotCN']['noticedismiss'])['addEventListener']('click',()=>{bW['style']['setProperty']('overflow','hidden','important');bW['style']['setProperty']('height','0px','important');setTimeout(()=>{BDFDB['removeLocalStyle']('BDFDBcustomnotibar'+bV);BDFDB['removeLocalStyle']('BDFDBcustomnotibarColorCorrection'+bV);bW['remove']();},0x1f4);});return bW;};BDFDB['getDiscordFolder']=function(){var cb=BDFDB['getDiscordBuilt']();cb='discord'+(cb=='stable'?'':cb);return require('path')['resolve'](require('electron')['remote']['app']['getPath']('appData'),cb,BDFDB['getDiscordVersion']());};BDFDB['getPluginsFolder']=function(){var cc=require('process');var cd=require('path');if(cc['env']['injDir'])return cd['resolve'](cc['env']['injDir'],'plugins/');switch(cc['platform']){case'win32':return cd['resolve'](cc['env']['appdata'],'BetterDiscord/plugins/');case'darwin':return cd['resolve'](cc['env']['HOME'],'Library/Preferences/BetterDiscord/plugins/');default:if(cc['env']['XDG_CONFIG_HOME'])return cd['resolve'](cc['env']['XDG_CONFIG_HOME'],'BetterDiscord/plugins/');else return cd['resolve'](cc['env']['HOME'],'.config/BetterDiscord/plugins/');}};BDFDB['getThemesFolder']=function(){var ce=require('process');var cf=require('path');if(ce['env']['injDir'])return cf['resolve'](ce['env']['injDir'],'plugins/');switch(ce['platform']){case'win32':return cf['resolve'](ce['env']['appdata'],'BetterDiscord/themes/');case'darwin':return cf['resolve'](ce['env']['HOME'],'Library/Preferences/BetterDiscord/themes/');default:if(ce['env']['XDG_CONFIG_HOME'])return cf['resolve'](ce['env']['XDG_CONFIG_HOME'],'BetterDiscord/themes/');else return cf['resolve'](ce['env']['HOME'],'.config/BetterDiscord/themes/');}};BDFDB['checkWhichRepoPage']=function(cg=document['querySelector'](BDFDB['dotCN']['layer']+'[layer-id=\x22user-settings\x22]')){if(!cg)return;var ch=cg['querySelector'](BDFDB['dotCN']['_repofolderbutton']);if(!ch)return;var ci=ch['parentElement']['querySelector']('h2');if(ci&&ci['innerText']){let cj=ci['innerText']['toLowerCase']();if(cj==='plugins'||cj==='themes')return cj;}};BDFDB['checkAllUpdates']=function(){for(let ck in window['PluginUpdates']['plugins']){var cl=window['PluginUpdates']['plugins'][ck];BDFDB['checkUpdate'](cl['name'],cl['raw']);}};BDFDB['sortObject']=function(cm,cn,co){var cp={};if(cn===undefined||!cn)for(let cq of Object['keys'](cm)['sort']())cp[cq]=cm[cq];else{let cr=[];for(let cq in cm)cr['push'](cm[cq]);cr=BDFDB['sortArrayByKey'](cr,cn,co);for(let ct of cr)for(let cq in cm)if(BDFDB['equals'](ct,cm[cq])){cp[cq]=ct;break;}}return cp;};BDFDB['reverseObject']=function(cv,cw){var cx={};for(let cy of cw===undefined||!cw?Object['keys'](cv)['reverse']():Object['keys'](cv)['sort']()['reverse']())cx[cy]=cv[cy];return cx;};BDFDB['filterObject']=function(cz,cA){return Object['keys'](cz)['filter'](cB=>cA(cz[cB]))['reduce']((cC,cD)=>(cC[cD]=cz[cD],cC),{});};BDFDB['isObject']=function(cE){return cE&&Object['prototype']['isPrototypeOf'](cE)&&!Array['prototype']['isPrototypeOf'](cE);};BDFDB['isObjectEmpty']=function(cF){return typeof cF!=='object'||Object['getOwnPropertyNames'](cF)['length']==0x0;};BDFDB['pushToObject']=function(cG,cH){if(BDFDB['isObject'](cG))cG[Object['keys'](cG)['length']]=cH;};BDFDB['deepAssign']=function(cI,...cJ){if(!cJ['length'])return cI;var cK=cJ['shift']();if(BDFDB['isObject'](cI)&&BDFDB['isObject'](cK)){for(var cL in cK){if(BDFDB['isObject'](cK[cL])){if(!cI[cL])Object['assign'](cI,{[cL]:{}});BDFDB['deepAssign'](cI[cL],cK[cL]);}else Object['assign'](cI,{[cL]:cK[cL]});}}return BDFDB['deepAssign'](cI,...cJ);};BDFDB['sortArrayByKey']=function(cM,cN,cO){if(cO===undefined)cO=null;return cM['sort'](function(cP,cQ){var cR=cP[cN],cS=cQ[cN];if(cR!==cO)return cRcS?0x1:0x0;});};BDFDB['removeFromArray']=function(cT,cU,cV=![]){if(!cT||!cU||!Array['isArray'](cT)||!cT['includes'](cU))return cT;if(!cV)cT['splice'](cT['indexOf'](cU),0x1);else while(cT['indexOf'](cU)>-0x1)cT['splice'](cT['indexOf'](cU),0x1);return cT;};BDFDB['getAllIndexes']=function(cW,cX){var cY=[],cZ=-0x1;while((cZ=cW['indexOf'](cX,cZ+0x1))!==-0x1)cY['push'](cZ);return cY;};BDFDB['removeCopiesFromArray']=function(d0){return[...new Set(d0)];};BDFDB['highlightText']=function(d1,d2){if(!d2||d2['length']<0x1)return d1;var d3=0x0,d4=d1,d5='',d6='';BDFDB['getAllIndexes'](d1['toUpperCase'](),d2['toUpperCase']())['forEach'](d7=>{var d8=d3*(d5['length']+d6['length']);d7=d7+d8;var d9=d7+d2['length'];var da=[-0x1]['concat'](BDFDB['getAllIndexes'](d1['substring'](0x0,d7),'<'));var db=[-0x1]['concat'](BDFDB['getAllIndexes'](d1['substring'](0x0,d7),'>'));if(da[da['length']-0x1]>db[db['length']-0x1])return;d1=d1['substring'](0x0,d7)+d5+d1['substring'](d7,d9)+d6+d1['substring'](d9);d3++;});return d1?d1:d4;};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 dc=setInterval(()=>{var dd=document['querySelector']('html')['lang'];if(dd){clearInterval(dc);BDFDB['languages']['$discord']['name']='Discord\x20('+BDFDB['languages'][dd]['name']+')';BDFDB['languages']['$discord']['id']=BDFDB['languages'][dd]['id'];BDFDB['languages']['$discord']['ownlang']=BDFDB['languages'][dd]['ownlang'];}},0x64);BDFDB['getDiscordBuilt']=function(){if(BDFDB['getDiscordBuilt']['built'])return BDFDB['getDiscordBuilt']['built'];else{var de=null;try{de=require(require('electron')['remote']['app']['getAppPath']()+'/build_info.json')['releaseChannel']['toLowerCase']();}catch(df){try{de=require(require('electron')['remote']['app']['getAppPath']()['replace']('app.asar','')+'/build_info.json')['releaseChannel']['toLowerCase']();}catch(dg){var dh=BDFDB['getDiscordVersion']();if(dh){dh=dh['split']('.');if(dh['length']==0x3&&!isNaN(dh=parseInt(dh[0x2])))de=dh>0x12c?'stable':da>0xc8?'canary':'ptb';else de='stable';}else de='stable';}}BDFDB['getDiscordBuilt']['built']=de;return de;}};BDFDB['getDiscordVersion']=function(){if(BDFDB['getDiscordBuilt']['version'])return BDFDB['getDiscordBuilt']['version'];else{var di=null;try{di=require('electron')['remote']['app']['getVersion']();}catch(dj){dj='';}BDFDB['getDiscordBuilt']['version']=di;return di;}};BDFDB['getDiscordLanguage']=function(){var dk=document['querySelector']('html')['lang']||'en-US';var dl=dk['split']('-');var dm=dl[0x0];var dn=dl[0x1]||'';dk=dn&&dm['toUpperCase']()!==dn['toUpperCase']()?dm+'-'+dn:dm;return BDFDB['languages'][dk]||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 dp=BDFDB['getRects'](document['body']['firstElementChild']);var dq=Math['round'](0x64*window['outerWidth']/dp['width']);var dr=Math['round'](0x64*window['outerHeight']/dp['height']);return dqdt['startsWith']('__reactInternalInstance'))];};BDFDB['getReactValue']=function(du,dv){if(!du||!dv)return null;let dw=Node['prototype']['isPrototypeOf'](du)?BDFDB['getReactInstance'](du):du;if(!BDFDB['isObject'](dw))return null;let dx=dw;for(let dy of dv['split']('.')['filter'](dz=>dz)){dx=dx[dy];if(dx==undefined)return null;}return dx;};BDFDB['getOwnerInstance']=function(dA){if(dA===undefined)return null;if(!dA['node']&&!dA['instance']||!dA['name']&&(!dA['props']||!Array['isArray'](dA['props'])))return null;var dB=dA['instance']||BDFDB['getReactInstance'](dA['node']);if(!dB)return null;dA['name']=dA['name']&&!Array['isArray'](dA['name'])?Array['of'](dA['name']):dA['name'];var dC=-0x1;var dD=dA['depth']===undefined?0xf:dA['depth'];var dE=dA['up']===undefined?![]:dA['up'];var dF=performance['now']();var dG=dA['time']===undefined?0x96:dA['time'];var dH=dE?{'return':!![],'sibling':!![]}:{'child':!![],'sibling':!![]};var dI={};var dJ=dM(dB);if(dA['all']){for(let dK in dI){if(dA['group'])for(let dB in dI[dK])delete dI[dK][dB]['BDFDBreactSearch'];else delete dI[dK]['BDFDBreactSearch'];}return dI;}else return dJ;function dM(dB){dC++;if(!dB||Node['prototype']['isPrototypeOf'](dB)||BDFDB['getReactInstance'](dB)||dC>dD||performance['now']()-dF>dG)dP=null;else{var dO=Object['getOwnPropertyNames'](dB);var dP=null;for(let dQ=0x0;dP==null&&dQdB['type']['displayName']===dU['split']('\x20')[0x0]||dB['type']['name']===dU['split']('\x20')[0x0])||dA['props']&&dA['props']['every'](dV=>dT[dV]!==undefined)||dA['defaultProps']&&dA['defaultProps']['every'](dW=>dT[dW]!==undefined))){if(dA['all']===undefined||!dA['all'])dP=dT;else if(dA['all']){if(dA['noCopies']===undefined||!dA['noCopies']||dA['noCopies']&&!dT['BDFDBreactSearch']){dT['BDFDBreactSearch']=!![];if(dA['group']){if(dA['name']&&dB['type']&&(dB['type']['displayName']||dB['type']['name'])){var dX='Default';for(let dY of dA['name'])if(dB['type']['displayName']===dY['split']('\x20')[0x0]||dB['type']['name']===dY['split']('\x20')[0x0]){dX=dY;break;}if(typeof dI[dX]=='undefined')dI[dX]={};BDFDB['pushToObject'](dI[dX],dT);}}else BDFDB['pushToObject'](dI,dT);}}}if(dP==null&&(typeof dS==='object'||typeof dS==='function')&&dH[dR])dP=dM(dS);}}dC--;return dP;}};BDFDB['getKeyInformation']=function(dZ){if(dZ===undefined)return null;if(!dZ['node']&&!dZ['instance']||!dZ['key'])return null;var e0=dZ['instance']||BDFDB['getReactInstance'](dZ['node']);if(!e0)return null;var e1=-0x1;var e2=dZ['depth']===undefined?0xf:dZ['depth'];var e3=performance['now']();var e4=dZ['time']===undefined?0x96:dZ['time'];var e5={'props':!![],'state':!![],'stateNode':!![],'refs':!![],'updater':!![],'prototype':!![],'type':!![],'children':dZ['up']?![]:!![],'type':!![],'memoizedProps':!![],'memoizedState':!![],'child':dZ['up']?![]:!![],'return':dZ['up']?!![]:![],'sibling':dZ['up']?![]:!![],'firstEffect':!![]};if(typeof dZ['whitelist']==='object')Object['assign'](e5,dZ['whiteList']);var e6=typeof dZ['blackList']==='object'?dZ['blackList']:{};var e7=[];var e8=e9(e0);if(dZ['all'])return e7;else return e8;function e9(e0){e1++;if(!e0||Node['prototype']['isPrototypeOf'](e0)||BDFDB['getReactInstance'](e0)||e1>e2||performance['now']()-e3>e4)ec=null;else{var eb=Object['getOwnPropertyNames'](e0);var ec=null;for(let ed=0x0;ec==null&&edem['default']=ek},[ej])['default']:window['webpackJsonp']['push']([[],{[ej]:(eo,ep,ek)=>eo['exports']=ek},[[ej]]]);delete ek['m'][ej];delete ek['c'][ej];BDFDB['WebModules']['find']['req']=ek;}for(let er in BDFDB['WebModules']['find']['req']['c']){if(BDFDB['WebModules']['find']['req']['c']['hasOwnProperty'](er)){var es=BDFDB['WebModules']['find']['req']['c'][er]['exports'];if(es&&es['__esModule']&&es['default']&&ei(es['default']))return es['default'];if(es&&ei(es))return es;}}};BDFDB['WebModules']['cachedData']={'prop':{},'name':{},'proto':{}};BDFDB['WebModules']['findByProperties']=function(et){et=Array['isArray'](et)?et:Array['from'](arguments);var eu=JSON['stringify'](et);if(BDFDB['WebModules']['cachedData']['prop'][eu])return BDFDB['WebModules']['cachedData']['prop'][eu];else{var ev=BDFDB['WebModules']['find'](ev=>et['every'](ex=>ev[ex]!==undefined));if(ev){BDFDB['WebModules']['cachedData']['prop'][eu]=ev;return ev;}else console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',eu+'\x20[properties]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByName']=function(ey){var ez=JSON['stringify'](ey);if(BDFDB['WebModules']['cachedData']['name'][ez])return BDFDB['WebModules']['cachedData']['name'][ez];else{var eA=BDFDB['WebModules']['find'](eA=>eA['displayName']===ey);if(eA){BDFDB['WebModules']['cachedData']['name'][ez]=eA;return eA;}else console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',ez+'\x20[name]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['findByPrototypes']=function(eC){eC=Array['isArray'](eC)?eC:Array['from'](arguments);var eD=JSON['stringify'](eC);if(BDFDB['WebModules']['cachedData']['proto'][eD])return BDFDB['WebModules']['cachedData']['proto'][eD];else{var eE=BDFDB['WebModules']['find'](eE=>eE['prototype']&&eC['every'](eG=>eE['prototype'][eG]!==undefined));if(eE){BDFDB['WebModules']['cachedData']['proto'][eD]=eE;return eE;}else console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',eD+'\x20[prototypes]\x20not\x20found\x20in\x20WebModules');}};BDFDB['WebModules']['patchtypes']=['before','instead','after'];BDFDB['WebModules']['patchmap']={'BannedCard':'BannedUser','InviteCard':'InviteRow','Guild':BDFDB['getDiscordBuilt']()=='canary'?'DropTarget(DragSource(Component))':'DropTarget(DragSource(FluxContainer(Guild)))','PopoutContainer':'Popout','MemberCard':'Member','WebhookCard':'Webhook'};BDFDB['WebModules']['notfindablemodules']={'AuthWrapper':'loginscreen','BannedCard':'guildsettingsbannedcard','EmojiPicker':'emojipicker','FriendsOnline':'friendsonline','InviteCard':'guildsettingsinvitecard','PopoutContainer':'popout','PrivateChannelCall':'callcurrentcontainer','MemberCard':'guildsettingsmembercard','Message':'message','MessageOptionPopout':'optionpopout','MessageUsername':'messageusername','TypingUsers':'typing','UserPopout':'userpopout','V2C_List':'_repolist','V2C_PluginCard':'_repoheader','V2C_ThemeCard':'_repoheader'};BDFDB['WebModules']['patch']=function(eH,eI,eJ,eK){if(!eH||!eI||!eJ||!Object['keys'](eK)['some'](eL=>BDFDB['WebModules']['patchtypes']['includes'](eL)))return null;const eM=(typeof eJ==='string'?eJ:eJ['name'])['toLowerCase']();const eN=(eO,eP)=>(...eQ)=>{try{return eO(...eQ);}catch(eR){console['error']('Error\x20occurred\x20in\x20'+eP,eR);}};if(!eH['BDFDBpatch'])eH['BDFDBpatch']={};eI=Array['isArray'](eI)?eI:Array['of'](eI);for(let eS of eI){if(!eH[eS])eH[eS]=()=>{};const eT=eH[eS];if(!eH['BDFDBpatch'][eS]){eH['BDFDBpatch'][eS]={};for(let eU of BDFDB['WebModules']['patchtypes'])eH['BDFDBpatch'][eS][eU]={};eH['BDFDBpatch'][eS]['originalMethod']=eT;eH[eS]=function(){const eV={'thisObject':this,'methodArguments':arguments,'originalMethod':eT,'originalMethodName':eS,'callOriginalMethod':()=>eV['returnValue']=eV['originalMethod']['apply'](eV['thisObject'],eV['methodArguments'])};if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded']){if(!BDFDB['isObjectEmpty'](eH['BDFDBpatch'][eS]['before']))for(let eW in BDFDB['sortObject'](eH['BDFDBpatch'][eS]['before'])){eN(eH['BDFDBpatch'][eS]['before'][eW],'`before`\x20callback\x20of\x20'+eH[eS]['displayName'])(eV);}if(BDFDB['isObjectEmpty'](eH['BDFDBpatch'][eS]['instead']))eV['callOriginalMethod']();else for(let eX in BDFDB['sortObject'](eH['BDFDBpatch'][eS]['instead'])){const eY=eN(eH['BDFDBpatch'][eS]['instead'][eX],'`instead`\x20callback\x20of\x20'+eH[eS]['displayName'])(eV);if(eY!==undefined)eV['returnValue']=eY;}if(!BDFDB['isObjectEmpty'](eH['BDFDBpatch'][eS]['after']))for(let eZ in BDFDB['sortObject'](eH['BDFDBpatch'][eS]['after'])){eN(eH['BDFDBpatch'][eS]['after'][eZ],'`after`\x20callback\x20of\x20'+eH[eS]['displayName'])(eV);}}else eV['callOriginalMethod']();return eV['returnValue'];};}for(let f0 of BDFDB['WebModules']['patchtypes'])if(typeof eK[f0]=='function')eH['BDFDBpatch'][eS][f0][eM]=eK[f0];}const f1=()=>{BDFDB['WebModules']['unpatch'](eH,eI,eJ);};if(eJ&&typeof eJ=='object'){if(!Array['isArray'](eJ['patchCancels']))eJ['patchCancels']=[];eJ['patchCancels']['push'](f1);}return f1;};BDFDB['WebModules']['unpatch']=function(f2,f3,f4){if(!f2||!f2['BDFDBpatch'])return;const f5=!f4?null:(typeof f4==='string'?f4:f4['name'])['toLowerCase']();f3=Array['isArray'](f3)?f3:Array['of'](f3);for(let f6 of f3){if(f2[f6]&&f2['BDFDBpatch'][f6]){for(let f7 of BDFDB['WebModules']['patchtypes']){if(f5)delete f2['BDFDBpatch'][f6][f7][f5];else delete f2['BDFDBpatch'][f6][f7];}var f8=!![];for(let f7 of BDFDB['WebModules']['patchtypes'])if(!BDFDB['isObjectEmpty'](f2['BDFDBpatch'][f6][f7]))f8=![];if(f8){f2[f6]=f2['BDFDBpatch'][f6]['originalMethod'];delete f2['BDFDBpatch'][f6];if(BDFDB['isObjectEmpty'](f2['BDFDBpatch']))delete f2['BDFDBpatch'];}}}};BDFDB['WebModules']['unpatchall']=function(fa){if(BDFDB['isObject'](fa)&&Array['isArray'](fa['patchCancels']))for(let fb of fa['patchCancels'])fb();};BDFDB['WebModules']['forceAllUpdates']=function(fc,fd){fd=fd&&BDFDB['WebModules']['patchmap'][fd]?BDFDB['WebModules']['patchmap'][fd]+'\x20'+fd:fd;if(BDFDB['isObject'](fc)&&BDFDB['isObject'](fc['patchModules'])&&(!fd||fc['patchModules'][fd])){const fe=document['querySelector'](BDFDB['dotCN']['app']);const ff=document['querySelector']('#bd-settingspane-container\x20'+BDFDB['dotCN']['scrollerwrap']);if(fe){var fg=[];for(let fh in fc['patchModules']){var fi=Array['isArray'](fc['patchModules'][fh])?fc['patchModules'][fh]:Array['of'](fc['patchModules'][fh]);if(fi['includes']('componentDidUpdate')||fi['includes']('componentDidMount')||fi['includes']('render'))fg['push'](fh);}fg=fd?fg['filter'](fj=>fj==fd):fg;if(fg['length']>0x0){const fk=BDFDB['getOwnerInstance']({'node':fe,'name':fg,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let fh in fk)for(let fm in fk[fh])BDFDB['WebModules']['initiateProcess'](fc,fk[fh][fm],fh,['componentDidUpdate','componentDidMount','render']);if(ff){const fn=BDFDB['getOwnerInstance']({'node':ff,'name':fg,'all':!![],'noCopies':!![],'group':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let fh in fn)for(let fm in fn[fh])BDFDB['WebModules']['initiateProcess'](fc,fn[fh][fm],fh,['componentDidUpdate','componentDidMount','render']);}}}}};BDFDB['WebModules']['patchModules']=function(fq){if(BDFDB['isObject'](fq)&&BDFDB['isObject'](fq['patchModules'])){for(let fr in fq['patchModules']){var fs=BDFDB['WebModules']['patchmap'][fr];if(fs){fq['patchModules'][fs+'\x20'+fr]=fq['patchModules'][fr];delete fq['patchModules'][fr];if(!BDFDB['WebModules']['notfindablemodules'][fr])fv(BDFDB['WebModules']['findByName'](fs),fs+'\x20'+fr);}else if(!BDFDB['WebModules']['notfindablemodules'][fr])fv(BDFDB['WebModules']['findByName'](fr),fr);}for(let fr in BDFDB['WebModules']['notfindablemodules']){var fu=BDFDB['WebModules']['patchmap'][fr]?BDFDB['WebModules']['patchmap'][fr]+'\x20'+fr:fr;if(BDFDB['DiscordClasses'][BDFDB['WebModules']['notfindablemodules'][fr]]&&fq['patchModules'][fu])fC(BDFDB['WebModules']['notfindablemodules'][fr],fu);}function fv(fw,fr){if(fw){var fu=fr['split']('\x20')[0x0];fw=fw['displayName']==fu?fw:BDFDB['getOwnerInstance']({'instance':fw,'name':fu,'up':!![]});if(fw){var fz=fw['_reactInternalFiber']&&fw['_reactInternalFiber']['type']?fw['_reactInternalFiber']['type']:fw;var fA={};fA[fq['name']=='$BDFDB'?'before':'after']=fB=>{if(global['BDFDB']&&typeof BDFDB==='object'&&BDFDB['loaded'])BDFDB['WebModules']['initiateProcess'](fq,fB['thisObject'],fr,[fB['originalMethodName']]);};BDFDB['WebModules']['patch'](fz['prototype'],fq['patchModules'][fr],fq,fA);}}}function fC(fD,fr){var fF=BDFDB['getReactInstance'](document['querySelector'](BDFDB['dotCN'][fD]));if(fM(fF,fr))fv(fF,fr);else{var fG=![],fH=new MutationObserver(fI=>{fI['forEach'](fJ=>{fJ['addedNodes']['forEach'](fK=>{var fL=null;if(!fG&&fK['tagName']&&(fL=BDFDB['containsClass'](fK,BDFDB['disCN'][fD])?fK:fK['querySelector'](BDFDB['dotCN'][fD]))!=null){fF=BDFDB['getReactInstance'](fL);if(fM(fF,fr)){fG=!![];fH['disconnect']();fv(fF,fr);BDFDB['WebModules']['forceAllUpdates'](fq,fr);}}});});});BDFDB['addObserver'](fq,BDFDB['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':fH,'multi':!![]},{'childList':!![],'subtree':!![]});}}function fM(fN,fr){return fN&&(fr!='V2C_PluginCard'&&fr!='V2C_ThemeCard'||fr=='V2C_PluginCard'&&BDFDB['checkWhichRepoPage']()=='plugins'||fr=='V2C_ThemeCard'&&BDFDB['checkWhichRepoPage']()=='themes');}}};BDFDB['WebModules']['initiateProcess']=function(fP,fQ,fR,fS){if(fP&&typeof fP=='object'&&fQ){fR=(fR['split']('\x20')[0x1]||fR)['replace'](/[^A-z0-9]|_/g,'');fR=fR[0x0]['toUpperCase']()+fR['slice'](0x1);if(typeof fP['process'+fR]=='function'){var fT=BDFDB['React']['findDOMNodeSafe'](fQ);if(fT)fP['process'+fR](fQ,fT,fS);else setImmediate(()=>{fT=BDFDB['React']['findDOMNodeSafe'](fQ);if(fT)fP['process'+fR](fQ,fT,fS);});}}};var fU=BDFDB['WebModules']['findByProperties']('createElement','cloneElement');var fV=BDFDB['WebModules']['findByProperties']('render','findDOMNode');if(fU&&fV){BDFDB['React']=Object['assign']({},fU,fV);BDFDB['React']['findDOMNodeSafe']=function(fW){if(!fW||!fW['updater']||typeof fW['updater']['isMounted']!=='function'||!fW['updater']['isMounted'](fW))return null;var fX=fV['findDOMNode'](fW)||BDFDB['getReactValue'](fW,'child.stateNode');return Node['prototype']['isPrototypeOf'](fX)?fX:null;};};BDFDB['addOnSwitchListener']=function(fY){if(typeof fY['onSwitch']==='function'){BDFDB['removeOnSwitchListener'](fY);var fZ=document['querySelector'](BDFDB['dotCN']['guildswrapper']+'\x20+\x20*\x20>\x20'+BDFDB['dotCN']['chatspacer']);if(fZ){var g0=new MutationObserver(g1=>{g1['forEach'](g2=>{if(g2['target']&&BDFDB['containsClass'](g2['target'],BDFDB['disCN']['nochannel']))fY['onSwitch']();});});var g3=fZ['querySelector'](BDFDB['dotCNC']['chat']+BDFDB['dotCN']['nochannel']);if(g3)g0['observe'](g3,{'attributes':!![]});fY['onSwitchFix']=new MutationObserver(g4=>{g4['forEach'](g5=>{if(g5['addedNodes']){g5['addedNodes']['forEach'](g6=>{if(BDFDB['containsClass'](g6,BDFDB['disCN']['chat'],BDFDB['disCN']['nochannel'],![]))g0['observe'](g6,{'attributes':!![]});});}});});fY['onSwitchFix']['observe'](fZ,{'childList':!![]});}}};BDFDB['removeOnSwitchListener']=function(g7){if(typeof g7['onSwitch']==='function'&&BDFDB['isObject'](g7['onSwitchFix'])){g7['onSwitchFix']['disconnect']();delete g7['onSwitchFix'];}};BDFDB['addContextListener']=function(g8){for(let g9 of['User','Guild','Channel','GroupDM','Message','Native','UserSettingsCog']){if(typeof g8['on'+g9+'Context']==='function'||typeof g8['on'+g9+'ContextMenu']==='function'){if(g9=='GroupDM'){var ga=![],gb=new MutationObserver(gc=>{gc['forEach'](gd=>{gd['addedNodes']['forEach'](ge=>{var gf=null;if(!ga&&ge['tagName']&&(gf=BDFDB['containsClass'](ge,BDFDB['disCN']['contextmenu'])?ge:ge['querySelector'](BDFDB['dotCN']['contextmenu']))!=null){var gg=BDFDB['getReactInstance'](gf);if(gg&&gg['return']&&gg['return']['type']&&gg['return']['type']['displayName']==g9+'ContextMenu'){ga=!![];gb['disconnect']();gh(g9,gg['return']['type']);gl(g9,gg['return']['stateNode'],gg['stateNode']);}}});});});BDFDB['addObserver'](g8,BDFDB['dotCN']['appmount'],{'name':'checkForContextObserver','instance':gb,'multi':!![]},{'childList':!![],'subtree':!![]});}else gh(g9,BDFDB['WebModules']['findByName'](g9+'ContextMenu'));}}function gh(g9,gj){if(gj&&gj['prototype'])BDFDB['WebModules']['patch'](gj['prototype'],'componentDidMount',g8,{'after':gk=>{gl(g9,gk['thisObject'],BDFDB['React']['findDOMNodeSafe'](gk['thisObject']));}});}function gl(g9,gn,go){if(gn&&go){if(typeof g8['on'+g9+'Context']==='function')g8['on'+g9+'Context'](gn,go);if(typeof g8['on'+g9+'ContextMenu']==='function')g8['on'+g9+'ContextMenu'](gn,go);BDFDB['initElements'](go,g8);BDFDB['updateContextPosition'](go);}}};BDFDB['addSettingsButtonListener']=function(gp){if(BDFDB['isBDv2']()&&typeof gp['getSettingsPanel']==='function'){BDFDB['removeSettingsButtonListener'](gp);BDFDB['appendSettingsButton'](gp);var gq=document['querySelector']('.bd-content-region\x20>\x20.bd-content');if(gq){gp['settingsButtonObserver']=new MutationObserver(gr=>{gr['forEach'](gs=>{if(gs['addedNodes']){gs['addedNodes']['forEach'](gt=>{if(gt['tagName']&&BDFDB['containsClass'](gt,'active'))BDFDB['appendSettingsButton'](gp);});}});});gp['settingsButtonObserver']['observe'](gq,{'childList':!![]});}}};BDFDB['appendSettingsButton']=function(gu){var gv=document['querySelector'](BDFDB['dotCN']['_bdv2Card']+'[data-plugin-id='+gu['id']+']');if(gv){var gw=BDFDB['htmlToElement']('');gv['insertBefore'](gw,gv['querySelector'](BDFDB['d']['_bdv2Button']));gw['addEventListener']('mouseenter',()=>{BDFDB['createTooltip']('Settings',gw,{'type':'top'});BDFDB['addClass'](gw,BDFDB['disCN']['_bdv2TooltipOpen']);});gw['addEventListener']('mouseleave',()=>{BDFDB['removeClass'](gw,BDFDB['disCN']['_bdv2TooltipOpen']);});gw['addEventListener']('click',()=>{var gx=BDFDB['htmlToElement'](''+gu['name']+'\x20Settings
');var gy=gu['getSettingsPanel']();gx['querySelector'](BDFDB['dotCN']['modalsubinner'])['appendChild'](typeof gy=='string'?BDFDB['htmlToElement'](gy):gy);if(typeof gu['onSettingsClosed']==='function')BDFDB['addChildEventListener'](gx,'click',BDFDB['dotCNC']['modalclose']+BDFDB['dotCN']['backdrop'],()=>{gu['onSettingsClosed']();});BDFDB['appendModal'](gx);});}};BDFDB['removeSettingsButtonListener']=function(gz){if(BDFDB['isBDv2']()&&typeof gz['settingsButtonObserver']==='object'){BDFDB['removeEles']('.bd-card[data-plugin-id='+gz['id']+']\x20.DevilBro-settingsbutton');gz['settingsButtonObserver']['disconnect']();delete gz['settingsButtonObserver'];}};var gA=BDFDB['WebModules']['findByProperties']('Messages')['Messages'];BDFDB['LanguageStrings']=new Proxy(gA,{'get':function(gB,gC){if(!gB[gC])console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',gC+'\x20not\x20found\x20in\x20BDFDB.LanguageStrings');else{var gD=typeof gB[gC]=='object'?gB[gC]['format'](Object['assign']({},BDFDB['LanguageStringsVars'])):gB[gC];if(typeof gD=='string')return gD;else if(Array['isArray'](gD)){var gE='';for(let gF of gD){if(typeof gF=='string')gE+=BDFDB['encodeToHTML'](gF);else if(BDFDB['isObject'](gF)&&gF['props'])gE+='<'+gF['type']+'>'+BDFDB['encodeToHTML'](gF['props']['children'][0x0]['toString']())+''+gF['type']+'>';}return gE;}else console['warn']('%c[BDFDB]%c','color:\x20#3a71c1;\x20font-weight:\x20700;','',gC+'\x20could\x20not\x20be\x20parsed\x20from\x20BDFDB.LanguageStrings');}}});BDFDB['LanguageStringsVars']={};for(let gG in BDFDB['WebModules']['findByProperties']('Messages')['Messages']){try{BDFDB['LanguageStrings'][gG];}catch(gH){let gI=gH['toString']()['split']('for:\x20')[0x1];if(gI&&typeof gI=='string')BDFDB['LanguageStringsVars'][gI]='{{'+gI['toLowerCase']()+'}}';}};BDFDB['equals']=function(gJ,gK,gL){var gM=-0x1;if(gL===undefined||typeof gL!=='boolean')gL=![];return gN(gJ,gK);function gN(gO,gP){gM++;var gQ=!![];if(gM>0x3e8)gQ=null;else{if(typeof gO!==typeof gP)gQ=![];else if(typeof gO==='undefined')gQ=!![];else if(typeof gO==='symbol')gQ=!![];else if(typeof gO==='boolean')gQ=gO==gP;else if(typeof gO==='string')gQ=gO==gP;else if(typeof gO==='number'){if(isNaN(gO)||isNaN(gP))gQ=isNaN(gO)==isNaN(gP);else gQ=gO==gP;}else if(!gO&&!gP)gQ=!![];else if(!gO||!gP)gQ=![];else if(typeof gO==='function'||typeof gO==='object'){var gR=Object['getOwnPropertyNames'](gO);var gS=Object['getOwnPropertyNames'](gP);if(gR['length']!==gS['length'])gQ=![];else for(let gT=0x0;gQ===!![]&&gTh9['length']?hc:h9['length'];};BDFDB['readServerList']=function(){var hd=[],he=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':'Guild','all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let hf in he)if(he[hf]['props']&&he[hf]['props']['guild']&&he[hf]['_reactInternalFiber']['child'])hd['push'](Object['assign'](new he[hf]['props']['guild']['constructor'](he[hf]['props']['guild']),{'div':he[hf]['_reactInternalFiber']['child']['stateNode'],'instance':he[hf]}));return hd;};BDFDB['readUnreadServerList']=function(hg){var hh=[];for(let hi of hg===undefined||!Array['isArray'](hg)?BDFDB['readServerList']():hg){let hj=Node['prototype']['isPrototypeOf'](hi)?hi:hi&&hi['div']?hi['div']:null;if(Node['prototype']['isPrototypeOf'](hj)&&(BDFDB['containsClass'](hj,BDFDB['disCN']['guildunread'])||hj['querySelector'](BDFDB['dotCN']['badge'])))hh['push'](hi);}return hh;};BDFDB['getSelectedServer']=function(){var hk=BDFDB['WebModules']['findByProperties']('getGuilds')['getGuild'](BDFDB['WebModules']['findByProperties']('getLastSelectedGuildId')['getGuildId']());if(hk)return BDFDB['getServerData'](hk['id'])||Object['assign'](new hk['constructor'](hk),{'div':null,'instance':null});else return null;};BDFDB['getServerID']=function(hl){if(!Node['prototype']['isPrototypeOf'](hl)||!BDFDB['getReactInstance'](hl))return;let hm=BDFDB['getParentEle'](BDFDB['dotCN']['guild'],hl);if(!hm)return;var hn=hm['querySelector']('a');var ho=hn&&hn['href']?hn['href']['split']('/'):null;return ho&&ho['length']>0x3&&!isNaN(parseInt(ho[0x4]))?ho[0x4]['toString']():null;};BDFDB['getServerDiv']=function(hp){if(!hp)return null;if(Node['prototype']['isPrototypeOf'](hp))return BDFDB['getParentEle'](BDFDB['dotCN']['guild'],hp);else{let hq=typeof hp=='object'?hp['id']:hp;if(hq)return BDFDB['getParentEle'](BDFDB['dotCN']['guild'],document['querySelector'](BDFDB['dotCNS']['guildswrapper']+BDFDB['dotCN']['guild']+'\x20a[href*=\x22/channels/'+hq+'\x22]'));}return null;};BDFDB['getServerData']=function(hr){if(!hr)return null;let hs=Node['prototype']['isPrototypeOf'](hr)?BDFDB['getServerID'](hr):typeof hr=='object'?hr['id']:hr;hs=typeof hs=='number'?hs['toFixed']():hs;for(let ht of BDFDB['readServerList']())if(ht&&ht['id']==hs)return ht;return null;};BDFDB['readChannelList']=function(){var hu=[],hv=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['channels']),'name':['ChannelCategoryItem','ChannelItem','PrivateChannel'],'all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let hw in hv)if(hv[hw]['props']&&!hv[hw]['props']['ispin']&&hv[hw]['props']['channel']&&hv[hw]['_reactInternalFiber']['return'])hu['push'](Object['assign'](new hv[hw]['props']['channel']['constructor'](hv[hw]['props']['channel']),{'div':Node['prototype']['isPrototypeOf'](hv[hw]['_reactInternalFiber']['return']['stateNode'])?hv[hw]['_reactInternalFiber']['return']['stateNode']:hv[hw]['_reactInternalFiber']['child']['child']['stateNode'],'instance':hv[hw]}));return hu;};BDFDB['getSelectedChannel']=function(){var hx=BDFDB['WebModules']['findByProperties']('getChannels')['getChannel'](BDFDB['WebModules']['findByProperties']('getLastSelectedChannelId')['getChannelId']());if(hx)return BDFDB['getChannelData'](hx['id'])||Object['assign'](new hx['constructor'](hx),{'div':null,'instance':null});else return null;};BDFDB['getChannelID']=function(hy){if(!Node['prototype']['isPrototypeOf'](hy)||!BDFDB['getReactInstance'](hy))return;hy=BDFDB['getParentEle'](BDFDB['dotCNC']['categorycontainerdefault']+BDFDB['dotCNC']['channelcontainerdefault']+BDFDB['dotCN']['dmchannel'],hy);if(!hy)return;var hz=BDFDB['getKeyInformation']({'node':hy,'key':'channel'});return hz?hz['id']['toString']():null;};BDFDB['getChannelDiv']=function(hA){if(!hA)return null;let hB=BDFDB['getChannelData'](hA);return hB?hB['div']:null;};BDFDB['getChannelData']=function(hC){if(!hC)return null;let hD=Node['prototype']['isPrototypeOf'](hC)?BDFDB['getChannelID'](hC):typeof hC=='object'?hC['id']:hC;hD=typeof hD=='number'?hD['toFixed']():hD;for(let hE of BDFDB['readChannelList']())if(hE&&hE['id']==hD)return hE;return null;};BDFDB['readDmList']=function(){var hF=[],hG=BDFDB['getOwnerInstance']({'node':document['querySelector'](BDFDB['dotCN']['guilds']),'name':'DirectMessage','all':!![],'noCopies':!![],'depth':0x5f5e0ff,'time':0x5f5e0ff});for(let hH in hG)if(hG[hH]['props']&&hG[hH]['props']['channel']&&hG[hH]['_reactInternalFiber']['child'])hF['push'](Object['assign'](new hG[hH]['props']['channel']['constructor'](hG[hH]['props']['channel']),{'div':hG[hH]['_reactInternalFiber']['child']['child']['stateNode'],'instance':hG[hH]}));return hF;};BDFDB['getDmID']=function(hI){if(!Node['prototype']['isPrototypeOf'](hI)||!BDFDB['getReactInstance'](hI))return;if(!BDFDB['getParentEle'](BDFDB['dotCN']['dms'],hI))return;let hJ=BDFDB['getParentEle'](BDFDB['dotCN']['guild'],hI);if(!hJ)return;var hK=hJ['querySelector']('a');var hL=hK&&hK['href']?hK['href']['split']('/'):null;return hL&&hL['length']>0x3&&!isNaN(parseInt(hL[0x4]))?hL[0x4]['toString']():null;};BDFDB['getDmDiv']=function(hM){if(!hM)return null;if(Node['prototype']['isPrototypeOf'](hM))return BDFDB['getParentEle'](BDFDB['dotCN']['guild'],hM);else{let hN=typeof hM=='object'?hM['id']:hM;if(hN)return BDFDB['getParentEle'](BDFDB['dotCN']['guild'],document['querySelector'](BDFDB['dotCNS']['dms']+BDFDB['dotCN']['guild']+'\x20a[href*=\x22/channels/@me/'+hN+'\x22]'));}return null;};BDFDB['getDmData']=function(hO){if(!hO)return null;let hP=Node['prototype']['isPrototypeOf'](hO)?BDFDB['getChannelID'](hO):typeof hO=='object'?hO['id']:hO;hP=typeof hP=='number'?hP['toFixed']():hP;for(let hQ of BDFDB['readDmList']())if(hQ&&hQ['id']==hP)return hQ;return null;};BDFDB['clearReadNotifications']=function(hR){if(!hR)return;var hS=BDFDB['WebModules']['findByProperties']('markGuildAsRead');if(!hS)return;for(let hT of Array['isArray'](hR)?hR:typeof hR=='string'||typeof hR=='number'?Array['of'](hR):Array['from'](hR)){let hU=Node['prototype']['isPrototypeOf'](hT)?BDFDB['getServerID'](hT):hT&&typeof hT=='object'?hT['id']:hT;if(hU)hS['markGuildAsRead'](hU);}};BDFDB['markChannelAsRead']=function(hV){if(!hV)return;var hW=BDFDB['WebModules']['findByProperties']('getOldestUnreadMessageId');var hX=BDFDB['WebModules']['findByProperties']('getAPIBaseURL');var hY=BDFDB['WebModules']['findByProperties']('Permissions','ActivityTypes','StatusTypes');if(!hW||!hX||!hY)return;for(let hZ of Array['isArray'](hV)?hV:typeof hV=='string'||typeof hV=='number'?Array['of'](hV):Array['from'](hV)){let i0=Node['prototype']['isPrototypeOf'](hZ)?BDFDB['getChannelID'](hZ)||BDFDB['getDmID'](hZ):hZ&&typeof hZ=='object'?hZ['id']:hZ;if(i0){let i1=hW['getOldestUnreadMessageId'](i0);if(i1)hX['post']({'body':{},'url':hY['Endpoints']['MESSAGES_ACK'](i0,i1)});}}};BDFDB['markGuildAsRead']=function(i2){if(!i2)return;var i3=BDFDB['WebModules']['findByProperties']('markGuildAsRead');if(!i3)return;for(let i4 of Array['isArray'](i2)?i2:typeof i2=='string'||typeof i2=='number'?Array['of'](i2):Array['from'](i2)){let i5=Node['prototype']['isPrototypeOf'](i4)?BDFDB['getServerID'](i4):i4&&typeof i4=='object'?i4['id']:i4;if(i5)i3['markGuildAsRead'](i5);}};BDFDB['saveAllData']=function(i6,i7,i8){var i9=require('fs'),ia,ib;if(!BDFDB['isBDv2']()){ib=typeof i7==='string'?i7:i7['name'];ia=require('path')['join'](BDFDB['getPluginsFolder'](),ib+'.config.json');}else{ib=typeof i7==='string'?i7['toLowerCase']():null;var ic=ib?BDFDB['Plugins'][ib]?BDFDB['Plugins'][ib]['contentPath']:null:i7['contentPath'];if(!ic)return;ia=require('path')['join'](ic,'settings.json');}var id=i9['existsSync'](ia);var ie=!id?{}:typeof BDFDB['cachedData'][ib]!=='undefined'?BDFDB['cachedData'][ib]:BDFDB['readConfig'](ia);ie[i8]=i6;if(BDFDB['isObjectEmpty'](ie[i8]))delete ie[i8];if(BDFDB['isObjectEmpty'](ie)){delete BDFDB['cachedData'][ib];if(id)i9['unlinkSync'](ia);}else{BDFDB['cachedData'][ib]=ie;i9['writeFileSync'](ia,JSON['stringify'](ie,null,'\x09'));}};BDFDB['loadAllData']=function(ig,ih){var ii=require('fs'),ij,ik;if(!BDFDB['isBDv2']()){ik=typeof ig==='string'?ig:ig['name'];ij=require('path')['join'](BDFDB['getPluginsFolder'](),ik+'.config.json');}else{ik=typeof ig==='string'?ig['toLowerCase']():null;var il=ik?BDFDB['Plugins'][ik]?BDFDB['Plugins'][ik]['contentPath']:null:ig['contentPath'];if(!il)return{};ij=require('path')['join'](il,'settings.json');}if(!ii['existsSync'](ij)){delete BDFDB['cachedData'][ik];return{};}var im=typeof BDFDB['cachedData'][ik]!=='undefined'?BDFDB['cachedData'][ik]:BDFDB['readConfig'](ij);BDFDB['cachedData'][ik]=im;return im&&typeof im[ih]!=='undefined'?im[ih]:{};};BDFDB['removeAllData']=function(io,ip){var iq=require('fs'),ir,is;if(!BDFDB['isBDv2']()){is=typeof io==='string'?io:io['name'];ir=require('path')['join'](BDFDB['getPluginsFolder'](),is+'.config.json');}else{is=typeof io==='string'?io['toLowerCase']():null;var it=is?BDFDB['Plugins'][is]?BDFDB['Plugins'][is]['contentPath']:null:io['contentPath'];if(!it)return;ir=require('path')['join'](it,'settings.json');}var iu=iq['existsSync'](ir);var iv=!iu?{}:typeof BDFDB['cachedData'][is]!=='undefined'?BDFDB['cachedData'][is]:BDFDB['readConfig'](ir);delete iv[ip];if(BDFDB['isObjectEmpty'](iv)){delete BDFDB['cachedData'][is];if(iu)iq['unlinkSync'](ir);}else{BDFDB['cachedData'][is]=iv;iq['writeFileSync'](ir,JSON['stringify'](iv,null,'\x09'));}};BDFDB['getAllData']=function(iw,ix){if(!BDFDB['isObject'](iw)||!iw['defaults']||!iw['defaults'][ix])return{};var iy=BDFDB['loadAllData'](iw,ix),iz={},iA=![];for(let iB in iw['defaults'][ix]){if(iy[iB]==null){iz[iB]=iw['defaults'][ix][iB]['value'];iA=!![];}else iz[iB]=iy[iB];}if(iA)BDFDB['saveAllData'](iz,iw,ix);return iz;};BDFDB['readConfig']=function(iC){try{return JSON['parse'](require('fs')['readFileSync'](iC));}catch(iD){return{};}};BDFDB['saveData']=function(iE,iF,iG,iH){var iI=BDFDB['loadAllData'](iG,iH);iI[iE]=iF;BDFDB['saveAllData'](iI,iG,iH);};BDFDB['loadData']=function(iJ,iK,iL){var iM=BDFDB['loadAllData'](iK,iL);var iN=iM[iJ];return iN===undefined?null:iN;};BDFDB['removeData']=function(iO,iP,iQ){var iR=BDFDB['loadAllData'](iP,iQ);delete iR[iO];BDFDB['saveAllData'](iR,iP,iQ);};BDFDB['getData']=function(iS,iT,iU){var iV=BDFDB['getAllData'](iT,iU);var iW=iV[iS];return iW===undefined?null:iW;};BDFDB['appendWebScript']=function(iX,iY){if(!iY&&!document['head']['querySelector']('bd-head\x20bd-scripts'))document['head']['appendChild'](BDFDB['htmlToElement'](''));iY=iY||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];iY=Node['prototype']['isPrototypeOf'](iY)?iY:document['head'];BDFDB['removeWebScript'](iX,iY);iY['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebScript']=function(iZ,j0){j0=j0||document['head']['querySelector']('bd-head\x20bd-scripts')||document['head'];j0=Node['prototype']['isPrototypeOf'](j0)?j0:document['head'];BDFDB['removeEles'](j0['querySelectorAll']('script[src=\x22'+iZ+'\x22]'));};BDFDB['appendWebStyle']=function(j1,j2){if(!j2&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));j2=j2||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];j2=Node['prototype']['isPrototypeOf'](j2)?j2:document['head'];BDFDB['removeWebStyle'](j1,j2);j2['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeWebStyle']=function(j3,j4){j4=j4||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];j4=Node['prototype']['isPrototypeOf'](j4)?j4:document['head'];BDFDB['removeEles'](j4['querySelectorAll']('link[href=\x22'+j3+'\x22]'));};BDFDB['appendLocalStyle']=function(j5,j6,j7){if(!j7&&!document['head']['querySelector']('bd-head\x20bd-styles'))document['head']['appendChild'](BDFDB['htmlToElement'](''));j7=j7||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];j7=Node['prototype']['isPrototypeOf'](j7)?j7:document['head'];BDFDB['removeLocalStyle'](j5,j7);j7['appendChild'](BDFDB['htmlToElement'](''));};BDFDB['removeLocalStyle']=function(j8,j9){j9=j9||document['head']['querySelector']('bd-head\x20bd-styles')||document['head'];j9=Node['prototype']['isPrototypeOf'](j9)?j9:document['head'];BDFDB['removeEles'](j9['querySelectorAll']('style[id=\x22'+j8+'CSS\x22]'));};BDFDB['formatBytes']=function(ja,jb){ja=parseInt(ja);if(isNaN(ja)||ja<0x0)return'0\x20Bytes';if(ja==0x1)return'1\x20Byte';var jc=Math['floor'](Math['log'](ja)/Math['log'](0x400));return parseFloat((ja/Math['pow'](0x400,jc))['toFixed'](jb<0x1?0x0:jb>0x14?0x14:jb||0x2))+'\x20'+['Bytes','KB','MB','GB','TB','PB','EB','ZB','YB'][jc];};BDFDB['colorCONVERT']=function(jd,je,jf){if(!jd)return null;je=je===undefined||!je?je='RGBCOMP':je['toUpperCase']();jf=jf===undefined||!jf||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP']['includes'](jf['toUpperCase']())?BDFDB['colorTYPE'](jd):jf['toUpperCase']();if(je=='RGBCOMP'){switch(jf){case'RGBCOMP':if(jd['length']==0x3)return jP(jd);else if(jd['length']==0x4){var jg=jS(jd['pop']());return jP(jd)['concat'](jg);}case'RGB':return jP(jd['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':var jh=jd['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var jg=jS(jh['pop']());return jP(jh)['concat'](jg);case'HSLCOMP':if(jd['length']==0x3)return BDFDB['colorCONVERT']('hsl('+jd['join'](',')+')','RGBCOMP');else if(jd['length']==0x4){var jg=jS(ji['pop']());return BDFDB['colorCONVERT']('hsl('+ji['join'](',')+')','RGBCOMP')['concat'](jg);}case'HSL':var jk=jW(jd['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var jl,jm,jn,jo,jp,jq,jr,js;var jt=jk[0x0]/0x168,ju=parseInt(jk[0x1])/0x64,jv=parseInt(jk[0x2])/0x64;jo=Math['floor'](jt*0x6);jp=jt*0x6-jo;jq=jv*(0x1-ju);jr=jv*(0x1-jp*ju);js=jv*(0x1-(0x1-jp)*ju);switch(jo%0x6){case 0x0:jl=jv,jm=js,jn=jq;break;case 0x1:jl=jr,jm=jv,jn=jq;break;case 0x2:jl=jq,jm=jv,jn=js;break;case 0x3:jl=jq,jm=jr,jn=jv;break;case 0x4:jl=js,jm=jq,jn=jv;break;case 0x5:jl=jv,jm=jq,jn=jr;break;}return[Math['round'](jl*0xff),Math['round'](jm*0xff),Math['round'](jn*0xff)];case'HSLA':var jk=jd['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');var jg=jS(jk['pop']());return BDFDB['colorCONVERT']('hsl('+jk['join'](',')+')','RGBCOMP')['concat'](jg);case'HEX':var jy=/^#([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'](jd);return[parseInt(jy[0x1]+jy[0x1]||jy[0x4],0x10)['toString'](),parseInt(jy[0x2]+jy[0x2]||jy[0x5],0x10)['toString'](),parseInt(jy[0x3]+jy[0x3]||jy[0x6],0x10)['toString']()];default:return null;}}else{var jz=jf=='RGBCOMP'?jd:BDFDB['colorCONVERT'](jd,'RGBCOMP',jf);if(jz)switch(je){case'RGB':return'rgb('+jP(jz['slice'](0x0,0x3))['join'](',')+')';case'RGBA':jz=jz['slice'](0x0,0x4);var jg=jz['length']==0x4?jS(jz['pop']()):0x1;return'rgba('+jP(jz)['concat'](jg)['join'](',')+')';case'HSLCOMP':var jg=jz['length']==0x4?jS(jz['pop']()):null;var jk=jW(BDFDB['colorCONVERT'](jz,'HSL')['replace'](/\s/g,'')['split'](','));return jg?jk['concat'](jg):jk;case'HSL':var jl=jN(jz[0x0]),jm=jN(jz[0x1]),jn=jN(jz[0x2]);var jG=Math['max'](jl,jm,jn),jH=Math['min'](jl,jm,jn),jI=jG-jH,jt,ju=jG===0x0?0x0:jI/jG,jv=jG/0xff;switch(jG){case jH:jt=0x0;break;case jl:jt=jm-jn+jI*(jm0xff?0xff:jp<0x0?0x0:jp;};function jP(jh){return jh['map'](jp=>{return jN(jp);});};function jS(jg){jg=jg['toString']();jg=(jg['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(jg['replace'](/[^0-9\.\-]/g,''));return isNaN(jg)||jg>0x1?0x1:jg<0x0?0x0:jg;};function jU(jV){jV=parseFloat(jV['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(jV)||jV>0x64?0x64:jV<0x0?0x0:jV)+'%';};function jW(jh){let jt=parseFloat(jh['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));jt=isNaN(jt)||jt>0x168?0x168:jt<0x0?0x0:jt;return[jt]['concat'](jh['map'](jZ=>{return jU(jZ);}));};};BDFDB['colorSETALPHA']=function(k0,k1,k2){var k3=BDFDB['colorCONVERT'](k0,'RGBCOMP');if(k3){k1=k1['toString']();k1=(k1['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(k1['replace'](/[^0-9\.\-]/g,''));k1=isNaN(k1)||k1>0x1?0x1:k1<0x0?0x0:k1;k3[0x3]=k1;k2=(k2||BDFDB['colorTYPE'](jK))['toUpperCase']();k2=k2=='HSL'||k2=='RGB'?k2+'A':k2;return BDFDB['colorCONVERT'](k3,k2);}return null;};BDFDB['colorCHANGE']=function(k4,k5,k6){k5=parseFloat(k5);if(k4&&typeof k5=='number'&&!isNaN(k5)){var k7=BDFDB['colorCONVERT'](k4,'RGBCOMP');if(k7){if(parseInt(k5)!==k5){k5=k5['toString']();k5=(k5['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(k5['replace'](/[^0-9\.\-]/g,''));k5=isNaN(k5)?0x0:k5;return BDFDB['colorCONVERT']([Math['round'](k7[0x0]*(0x1+k5)),Math['round'](k7[0x1]*(0x1+k5)),Math['round'](k7[0x2]*(0x1+k5))],k6||BDFDB['colorTYPE'](k4));}else return BDFDB['colorCONVERT']([Math['round'](k7[0x0]+k5),Math['round'](k7[0x1]+k5),Math['round'](k7[0x2]+k5)],k6||BDFDB['colorTYPE'](k4));}}return null;};BDFDB['colorINV']=function(k8,k9){if(k8){var ka=BDFDB['colorCONVERT'](k8,'RGBCOMP');if(ka)return BDFDB['colorCONVERT']([0xff-ka[0x0],0xff-ka[0x1],0xff-ka[0x2]],k9||BDFDB['colorTYPE'](k8));}return null;};BDFDB['colorCOMPARE']=function(kb,kc){if(kb&&kc){kb=BDFDB['colorCONVERT'](kb,'RGBCOMP');kc=BDFDB['colorCONVERT'](kc,'RGBCOMP');if(kb&&kc)return BDFDB['equals'](kb,kc);}return null;};BDFDB['colorISBRIGHT']=function(kd,ke=0xa0){kd=BDFDB['colorCONVERT'](kd,'RGBCOMP');if(!kd)return![];return parseInt(ke)