P);I['key']=I['key']&&[I['key']]['flat']()['filter'](P=>P);I['props']=I['props']&&[I['props']]['flat']()['filter'](P=>P);I['filter']=typeof I['filter']=='function'&&I['filter'];let K=firstArray=J;while(!b['ArrayUtils']['is'](firstArray)&&firstArray['props']&&firstArray['props']['children'])firstArray=firstArray['props']['children'];if(!b['ArrayUtils']['is'](firstArray)){if(K&&K['props']){K['props']['children']=[K['props']['children']];firstArray=K['props']['children'];}else firstArray=[];}return L(J);function L(P){let Q=[firstArray,-0x1];if(!P)return Q;if(!b['ArrayUtils']['is'](P)){if(N(P))Q=M(P);else if(P['props']&&P['props']['children']){K=P;Q=L(P['props']['children']);}}else{for(let R=0x0;Q[0x1]==-0x1&&Rc['isInstanceCorrect'](P,R))||I['key']&&I['key']['some'](R=>P['key']==R)||Q&&I['props']&&I['props'][I['someProps']?'some':'every'](R=>b['ArrayUtils']['is'](R)?b['ArrayUtils']['is'](R[0x1])?R[0x1]['some'](S=>O(Q,R[0x0],S)):O(Q,R[0x0],R[0x1]):Q[R]!==undefined)||I['filter']&&I['filter'](P);}function O(P,Q,R){return Q!=null&&P[Q]!=null&&R!=null&&(Q=='className'?('\x20'+P[Q]+'\x20')['indexOf']('\x20'+R+'\x20')>-0x1:b['equals'](P[Q],R));}};b['ReactUtils']['findProps']=function(H,I){if(!b['ObjectUtils']['is'](I))return null;if(!H||!I['name']&&!I['key'])return null;let J=Node['prototype']['isPrototypeOf'](H)?b['ReactUtils']['getInstance'](H):H;if(!b['ObjectUtils']['is'](J))return null;I['name']=I['name']&&[I['name']]['flat']()['filter'](Q=>Q);I['key']=I['key']&&[I['key']]['flat']()['filter'](Q=>Q);let K=-0x1;let L=performance['now']();let M=I['unlimited']?0x3b9ac9ff:I['depth']===undefined?0x1e:I['depth'];let N=I['unlimited']?0x3b9ac9ff:I['time']===undefined?0x96:I['time'];let O=I['up']?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};return P(J);function P(Q){K++;let R=undefined;if(Q&&!Node['prototype']['isPrototypeOf'](Q)&&!b['ReactUtils']['getInstance'](Q)&&Kc['isInstanceCorrect'](Q,S['split']('\x20_\x20_\x20')[0x0]))||I['key']&&I['key']['some'](S=>Q['key']==S)))R=Q['memoizedProps'];if(R===undefined){let S=Object['getOwnPropertyNames'](Q);for(let T=0x0;R===undefined&&TJ))if(I['updater']&&typeof I['updater']['isMounted']=='function'&&I['updater']['isMounted'](I))I['forceUpdate']();};b['ReactUtils']['getInstance']=function(H){if(!b['ObjectUtils']['is'](H))return null;return H[Object['keys'](H)['find'](I=>I['startsWith']('__reactInternalInstance'))];};b['ReactUtils']['getValue']=function(H,I){if(!H||!I)return null;let J=Node['prototype']['isPrototypeOf'](H)?b['ReactUtils']['getInstance'](H):H;if(!b['ObjectUtils']['is'](J))return null;let K=J,L=I['split']('.')['filter'](M=>M);for(value of L){if(!K)return null;K=K[value];}return K;};b['ReactUtils']['render']=function(H,I){if(!b['ReactUtils']['isValidElement'](H)||!Node['prototype']['isPrototypeOf'](I))return;try{m['ReactDOM']['render'](H,I);let J=new MutationObserver(K=>K['forEach'](L=>{let M=Array['from'](L['removedNodes']);if(M['indexOf'](I)>-0x1||M['some'](N=>N['contains'](I))){J['disconnect']();b['ReactUtils']['unmountComponentAtNode'](I);}}));J['observe'](document['body'],{'subtree':!![],'childList':!![]});}catch(K){b['LogUtils']['error']('Could\x20not\x20render\x20react\x20element!\x20'+K);}};c['setDefaultProps']=function(H,I){if(b['ObjectUtils']['is'](H))H['defaultProps']=Object['assign']({},H['defaultProps'],I);};c['loadPatchedComp']=function(H){let I=b['ReactUtils']['getValue'](window['BDFDB'],'LibraryComponents.'+H);if(I&&I['prototype']&&I['prototype']['BDFDBpatch'])return I;};b['sameProto']=function(H,I){if(H!=null&&typeof H=='object')return H['constructor']&&H['constructor']['prototype']&&typeof H['constructor']['prototype']['isPrototypeOf']=='function'&&H['constructor']['prototype']['isPrototypeOf'](I);else return typeof H==typeof I;};b['equals']=function(H,I,J){var K=-0x1;if(J===undefined||typeof J!=='boolean')J=![];return L(H,I);function L(M,N){K++;var O=!![];if(K>0x3e8)O=null;else{if(typeof M!==typeof N)O=![];else if(typeof M==='function')O=M['toString']()==N['toString']();else if(typeof M==='undefined')O=!![];else if(typeof M==='symbol')O=!![];else if(typeof M==='boolean')O=M==N;else if(typeof M==='string')O=M==N;else if(typeof M==='number'){if(isNaN(M)||isNaN(N))O=isNaN(M)==isNaN(N);else O=M==N;}else if(!M&&!N)O=!![];else if(!M||!N)O=![];else if(typeof M==='object'){var P=Object['getOwnPropertyNames'](M);var Q=Object['getOwnPropertyNames'](N);if(P['length']!==Q['length'])O=![];else for(let R=0x0;O===!![]&&R{let I=b['ReactUtils']['findOwner'](document['querySelector'](b['dotCN']['app']),{'name':'Messages','unlimited':!![]});let J=b['ReactUtils']['getValue'](I,'_reactInternalFiber.type.prototype');if(I&&J){b['ModuleUtils']['patch'](b,J,'render',{'after':K=>{let [L,M]=b['ReactUtils']['findParent'](K['returnValue'],{'props':['message','channel']});if(M>-0x1)for(let N of L)if(N['props']['message'])N['props']['message']=new b['DiscordObjects']['Message'](N['props']['message']);}},{'once':!![]});b['ReactUtils']['forceUpdate'](I);}},0x3e8);};b['UserUtils']={};b['UserUtils']['is']=function(H){return H&&H instanceof b['DiscordObjects']['User'];};var o=m['CurrentUserStore']&&m['CurrentUserStore']['getCurrentUser']();b['UserUtils']['me']=new Proxy(o||{},{'get':function(H,I){return(o=m['CurrentUserStore']['getCurrentUser']())&&o[I];}});b['UserUtils']['getStatus']=function(H=b['UserUtils']['me']['id']){H=typeof H=='number'?H['toFixed']():H;let I=b['UserUtils']['getActivitiy'](H);return I&&I['type']==b['DiscordConstants']['ActivityTypes']['STREAMING']?'streaming':m['StatusMetaUtils']['getStatus'](H);};b['UserUtils']['getStatusColor']=function(H){H=typeof H=='string'?H['toLowerCase']():null;switch(H){case'online':return b['DiscordConstants']['Colors']['STATUS_GREEN'];case'mobile':return b['DiscordConstants']['Colors']['STATUS_GREEN'];case'idle':return b['DiscordConstants']['Colors']['STATUS_YELLOW'];case'dnd':return b['DiscordConstants']['Colors']['STATUS_RED'];case'playing':return b['DiscordConstants']['Colors']['BRAND'];case'listening':return b['DiscordConstants']['Colors']['SPOTIFY'];case'streaming':return b['DiscordConstants']['Colors']['TWITCH'];default:return b['DiscordConstants']['Colors']['STATUS_GREY'];}};b['UserUtils']['getActivitiy']=function(H=b['UserUtils']['me']['id']){for(let I of m['StatusMetaUtils']['getActivities'](H))if(I['type']!=b['DiscordConstants']['ActivityTypes']['CUSTOM_STATUS'])return I;return null;};b['UserUtils']['getAvatar']=function(H=b['UserUtils']['me']['id']){let I=m['UserStore']['getUser'](typeof H=='number'?H['toFixed']():H);if(!I)return window['location']['origin']+'/assets/322c936a8c8be1b803cd94861bdfa868.png';else return((I['avatar']?'':window['location']['origin'])+m['IconUtils']['getUserAvatarURL'](I))['split']('?')[0x0];};b['UserUtils']['can']=function(H,I=b['UserUtils']['me']['id'],J=m['LastChannelStore']['getChannelId']()){if(!b['DiscordConstants']['Permissions'][H])b['LogUtils']['warn'](H+'\x20not\x20found\x20in\x20Permissions');else{let K=m['ChannelStore']['getChannel'](J);if(K)return m['PermissionUtils']['canUser'](I,b['DiscordConstants']['Permissions'][H],K);}return![];};let p;b['GuildUtils']={};b['GuildUtils']['is']=function(H){if(!b['ObjectUtils']['is'](H))return![];let I=Object['keys'](H);return H instanceof b['DiscordObjects']['Guild']||Object['keys'](new b['DiscordObjects']['Guild']({}))['every'](J=>I['indexOf'](J)>-0x1);};b['GuildUtils']['getIcon']=function(H){let I=m['GuildStore']['getGuild'](typeof H=='number'?H['toFixed']():H);if(!I||!I['icon'])return null;return m['IconUtils']['getGuildIconURL'](I)['split']('?')[0x0];};b['GuildUtils']['getBanner']=function(H){let I=m['GuildStore']['getGuild'](typeof H=='number'?H['toFixed']():H);if(!I||!I['banner'])return null;return m['IconUtils']['getGuildBannerURL'](I)['split']('?')[0x0];};b['GuildUtils']['getFolder']=function(H){return b['LibraryModules']['FolderStore']['guildFolders']['filter'](I=>I['folderId'])['find'](I=>I['guildIds']['includes'](H));};b['GuildUtils']['getId']=function(H){if(!Node['prototype']['isPrototypeOf'](H)||!b['ReactUtils']['getInstance'](H))return;let I=b['DOMUtils']['getParent'](b['dotCN']['guildouter'],H);if(!I)return;let J=I['querySelector'](b['dotCN']['guildiconwrapper']);let K=J&&J['href']?J['href']['split']('/')['slice'](-0x2)[0x0]:null;return K&&!isNaN(parseInt(K))?K['toString']():null;};b['GuildUtils']['getData']=function(H){if(!H)return null;let I=Node['prototype']['isPrototypeOf'](H)?b['GuildUtils']['getId'](H):typeof H=='object'?H['id']:H;I=typeof I=='number'?I['toFixed']():I;for(let J of b['GuildUtils']['getAll']())if(J&&J['id']==I)return J;return null;};b['GuildUtils']['getAll']=function(){let H=[],I=[];for(let J of b['ReactUtils']['findOwner'](document['querySelector'](b['dotCN']['guilds']),{'name':['Guild','GuildIcon'],'all':!![],'unlimited':!![]})){if(J['props']&&J['props']['guild'])I['push'](Object['assign'](new J['props']['guild']['constructor'](J['props']['guild']),{'div':J['handleContextMenu']&&b['ReactUtils']['findDOMNode'](J),'instance':J}));}for(let K of b['LibraryModules']['FolderStore']['getFlattenedGuildIds']()){let L=null;for(let M of I)if(M['id']==K){L=M;break;}if(L)H['push'](L);else{let N=b['LibraryModules']['GuildStore']['getGuild'](K);if(N)H['push'](Object['assign'](new N['constructor'](N),{'div':null,'instance':null}));}}return H;};b['GuildUtils']['getUnread']=function(H){let I=[];for(let J of H===undefined||!b['ArrayUtils']['is'](H)?b['GuildUtils']['getAll']():H){if(!J)return null;let K=Node['prototype']['isPrototypeOf'](J)?b['GuildUtils']['getId'](J):typeof J=='object'?J['id']:J;K=typeof K=='number'?K['toFixed']():K;if(K&&(m['UnreadGuildUtils']['hasUnread'](K)||m['UnreadGuildUtils']['getMentionCount'](K)>0x0))I['push'](J);}return I;};b['GuildUtils']['getPinged']=function(H){let I=[];for(let J of H===undefined||!b['ArrayUtils']['is'](H)?b['GuildUtils']['getAll']():H){if(!J)return null;let K=Node['prototype']['isPrototypeOf'](J)?b['GuildUtils']['getId'](J):typeof J=='object'?J['id']:J;K=typeof K=='number'?K['toFixed']():K;if(K&&m['UnreadGuildUtils']['getMentionCount'](K)>0x0)I['push'](J);}return I;};b['GuildUtils']['getMuted']=function(H){let I=[];for(let J of H===undefined||!b['ArrayUtils']['is'](H)?b['GuildUtils']['getAll']():H){if(!J)return null;let K=Node['prototype']['isPrototypeOf'](J)?b['GuildUtils']['getId'](J):typeof J=='object'?J['id']:J;K=typeof K=='number'?K['toFixed']():K;if(K&&m['MutedUtils']['isGuildOrCategoryOrChannelMuted'](K))I['push'](J);}return I;};b['GuildUtils']['getSelected']=function(){let H=m['GuildStore']['getGuild'](m['LastGuildStore']['getGuildId']());if(H)return b['GuildUtils']['getData'](H['id'])||Object['assign'](new H['constructor'](H),{'div':null,'instance':null});else return null;};b['GuildUtils']['openMenu']=function(H,I=b['InternalData']['mousePosition']){if(!H)return;let J=Node['prototype']['isPrototypeOf'](H)?b['GuildUtils']['getId'](H):typeof H=='object'?H['id']:H;let K=m['GuildStore']['getGuild'](J);if(K)m['ContextMenuUtils']['openContextMenu'](I,function(L){return b['ReactUtils']['createElement']((b['ModuleUtils']['findByName']('GuildContextMenu',![])||{'exports':{}})['exports']['default'],Object['assign']({},L,{'guild':K}));});};b['GuildUtils']['markAsRead']=function(H){if(!H)return;let I=[];for(let J of b['ArrayUtils']['is'](H)?H:typeof H=='string'||typeof H=='number'?Array['of'](H):Array['from'](H)){let K=Node['prototype']['isPrototypeOf'](J)?b['GuildUtils']['getId'](J):J&&typeof J=='object'?J['id']:J;let L=K&&m['GuildChannelStore']['getChannels'](K);if(L)for(let M in L)if(b['ArrayUtils']['is'](L[M]))for(let N of L[M])I['push'](N['channel']['id']);}if(I['length'])b['ChannelUtils']['markAsRead'](I);};b['GuildUtils']['rerenderAll']=function(){b['TimeUtils']['clear'](p);p=b['TimeUtils']['timeout'](H=>{let I=b['ReactUtils']['findOwner'](document['querySelector'](b['dotCN']['app']),{'name':'Guilds','unlimited':!![]});let J=b['ReactUtils']['getValue'](I,'_reactInternalFiber.type.prototype');if(I&&J){b['ModuleUtils']['patch'](b,J,'render',{'after':K=>{let [L,M]=b['ReactUtils']['findParent'](K['returnValue'],{'name':'ConnectedUnreadDMs'});if(M>-0x1)L['splice'](M+0x1,0x0,b['ReactUtils']['createElement']('div',{}));b['ReactUtils']['forceUpdate'](I);}},{'once':!![]});b['ReactUtils']['forceUpdate'](I);}},0x3e8);};b['FolderUtils']={};b['FolderUtils']['getId']=function(H){if(!Node['prototype']['isPrototypeOf'](H)||!b['ReactUtils']['getInstance'](H))return;H=b['DOMUtils']['getParent'](b['dotCN']['guildfolderwrapper'],H);if(!H)return;return b['ReactUtils']['findValue'](H,'folderId',{'up':!![]});};b['FolderUtils']['getDefaultName']=function(H){let I=b['LibraryModules']['FolderStore']['getGuildFolderById'](H);if(!I)return'';let J=0x2*b['DiscordConstants']['MAX_GUILD_FOLDER_NAME_LENGTH'];let K=[],L=I['guildIds']['map'](M=>(b['LibraryModules']['GuildStore']['getGuild'](M)||{})['name'])['filter'](M=>M);for(let M of L)if(M['length']I['indexOf'](J)>-0x1);};b['ChannelUtils']['isTextChannel']=function(H){let I=typeof H=='string'?m['ChannelStore']['getChannel'](H):H;return b['ObjectUtils']['is'](I)&&(I['type']==b['DiscordConstants']['ChannelTypes']['GUILD_TEXT']||I['type']==b['DiscordConstants']['ChannelTypes']['GUILD_STORE']||I['type']==b['DiscordConstants']['ChannelTypes']['GUILD_ANNOUNCEMENT']);};b['ChannelUtils']['getId']=function(H){if(!Node['prototype']['isPrototypeOf'](H)||!b['ReactUtils']['getInstance'](H))return;H=b['DOMUtils']['getParent'](b['dotCNC']['categorycontainerdefault']+b['dotCNC']['channelcontainerdefault']+b['dotCN']['dmchannel'],H);if(!H)return;let I=b['ReactUtils']['findValue'](H,'channel');return I?I['id']['toString']():null;};b['ChannelUtils']['getDiv']=function(H){if(!H)return null;let I=b['ChannelUtils']['getData'](H);return I?I['div']:null;};b['ChannelUtils']['getData']=function(H){if(!H)return null;let I=Node['prototype']['isPrototypeOf'](H)?b['ChannelUtils']['getId'](H):typeof H=='object'?H['id']:H;I=typeof I=='number'?I['toFixed']():I;for(let J of b['ChannelUtils']['getAll']())if(J&&J['id']==I)return J;return null;};b['ChannelUtils']['getName']=function(H,I){let J=b['LibraryModules']['ChannelStore']['getChannel'](H);if(!J)return'';switch(J['type']){case b['DiscordConstants']['ChannelTypes']['DM']:let K=J['recipients']['map'](b['LibraryModules']['UserStore']['getUser'])['filter'](M=>M)[0x0];return(I&&'@'||'')+(K&&K['toString']()||'');case b['DiscordConstants']['ChannelTypes']['GROUP_DM']:if(J['name'])return J['name'];let L=J['recipients']['map'](b['LibraryModules']['UserStore']['getUser'])['filter'](M=>M);return L['length']>0x0?L['map'](M=>M['toString'])['join'](',\x20'):b['LanguageUtils']['LanguageStrings']['UNNAMED'];case b['DiscordConstants']['ChannelTypes']['GUILD_ANNOUNCEMENT']:case b['DiscordConstants']['ChannelTypes']['GUILD_TEXT']:return(I&&'#'||'')+J['name'];default:return J['name'];}};b['ChannelUtils']['getAll']=function(){let H=[];for(let J of b['ReactUtils']['findOwner'](document['querySelector'](b['dotCN']['channels']),{'name':['ChannelCategoryItem','ChannelItem','PrivateChannel'],'all':!![],'unlimited':!![]}))if(J['props']&&!J['props']['ispin']&&J['props']['channel']&&J['_reactInternalFiber']['return']){var I=b['ReactUtils']['findDOMNode'](J);I=I&&b['DOMUtils']['containsClass'](I['parentElement'],b['disCN']['categorycontainerdefault'],b['disCN']['channelcontainerdefault'],![])?I['parentElement']:I;H['push'](Object['assign'](new J['props']['channel']['constructor'](J['props']['channel']),{'div':I,'instance':J}));}return H;};b['ChannelUtils']['getSelected']=function(){let H=m['ChannelStore']['getChannel'](m['LastChannelStore']['getChannelId']());if(H)return b['ChannelUtils']['getData'](H['id'])||Object['assign'](new H['constructor'](H),{'div':null,'instance':null});else return null;};b['ChannelUtils']['markAsRead']=function(H){if(!H)return;let I=[];for(let J of H=b['ArrayUtils']['is'](H)?H:typeof H=='string'||typeof H=='number'?Array['of'](H):Array['from'](H)){let K=Node['prototype']['isPrototypeOf'](J)?b['ChannelUtils']['getId'](J):J&&typeof J=='object'?J['id']:J;if(K&&b['ChannelUtils']['isTextChannel'](K))I['push']({'channelId':K,'messageId':m['UnreadChannelUtils']['lastMessageId'](K)});}if(I['length'])m['AckUtils']['bulkAck'](I);};b['DMUtils']={};b['DMUtils']['isDMChannel']=function(H){let I=typeof H=='string'?m['ChannelStore']['getChannel'](H):H;return b['ObjectUtils']['is'](I)&&(I['type']==b['DiscordConstants']['ChannelTypes']['DM']||I['type']==b['DiscordConstants']['ChannelTypes']['GROUP_DM']);};b['DMUtils']['getIcon']=function(H){let I=m['ChannelStore']['getChannel'](H=typeof H=='number'?H['toFixed']():H);if(!I)return null;if(!I['icon'])return I['type']==0x1?b['UserUtils']['getAvatar'](I['recipients'][0x0]):I['type']==0x3?window['location']['origin']+m['IconUtils']['getChannelIconURL'](I)['split']('?')[0x0]:null;return m['IconUtils']['getChannelIconURL'](I)['split']('?')[0x0];};b['DMUtils']['getId']=function(H){if(!Node['prototype']['isPrototypeOf'](H)||!b['ReactUtils']['getInstance'](H))return;let I=b['DOMUtils']['getParent'](b['dotCN']['guildouter'],H);if(!I)return;let J=I['querySelector'](b['dotCN']['guildiconwrapper']);let K=J&&J['href']?J['href']['split']('/')['slice'](-0x1)[0x0]:null;return K&&!isNaN(parseInt(K))?K['toString']():null;};b['DMUtils']['getDiv']=function(H){if(!H)return null;if(Node['prototype']['isPrototypeOf'](H)){var I=b['DOMUtils']['getParent'](b['dotCN']['guildouter'],H);return I?I['parentElement']:I;}else{let J=typeof H=='object'?H['id']:H;if(J){var I=b['DOMUtils']['getParent'](b['dotCN']['guildouter'],document['querySelector'](b['dotCNS']['guilds']+b['dotCN']['dmpill']+'\x20+\x20*\x20'+b['dotCN']['guildiconwrapper']+'[href*=\x22/channels/@me/'+J+'\x22]'));return I&&b?I['parentElement']:I;}}return null;};b['DMUtils']['getData']=function(H){if(!H)return null;let I=Node['prototype']['isPrototypeOf'](H)?b['BDFDB']['DMUtils']['getId'](H):typeof H=='object'?H['id']:H;I=typeof I=='number'?I['toFixed']():I;for(let J of b['DMUtils']['getAll']())if(J&&J['id']==I)return J;return null;};b['DMUtils']['getAll']=function(){let H=[];for(let I of b['ReactUtils']['findOwner'](document['querySelector'](b['dotCN']['guilds']),{'name':'DirectMessage','all':!![],'unlimited':!![]})){if(I['props']&&I['props']['channel'])H['push'](Object['assign'](new I['props']['channel']['constructor'](I['props']['channel']),{'div':b['ReactUtils']['findDOMNode'](I),'instance':I}));}return H;};b['DMUtils']['openMenu']=function(H,I=b['InternalData']['mousePosition']){if(!H)return;let J=Node['prototype']['isPrototypeOf'](H)?b['ChannelUtils']['getId'](H):typeof H=='object'?H['id']:H;let K=m['ChannelStore']['getChannel'](J);if(K){if(K['isMultiUserDM']())m['ContextMenuUtils']['openContextMenu'](I,function(L){return b['ReactUtils']['createElement']((b['ModuleUtils']['findByName']('GroupDMContextMenu',![])||{'exports':{}})['exports']['default'],Object['assign']({},L,{'channel':K,'selected':K['id']==m['LastChannelStore']['getChannelId']()}));});else m['ContextMenuUtils']['openContextMenu'](I,function(L){return b['ReactUtils']['createElement']((b['ModuleUtils']['findByName']('DMUserContextMenu',![])||{'exports':{}})['exports']['default'],Object['assign']({},L,{'user':m['UserStore']['getUser'](K['recipients'][0x0]),'channel':K,'selected':K['id']==m['LastChannelStore']['getChannelId']()}));});}};b['DMUtils']['markAsRead']=function(H){if(!H)return;let I=[];for(let J of H=b['ArrayUtils']['is'](H)?H:typeof H=='string'||typeof H=='number'?Array['of'](H):Array['from'](H)){let K=Node['prototype']['isPrototypeOf'](J)?b['BDFDB']['DMUtils']['getId'](J):J&&typeof J=='object'?J['id']:J;if(K)I['push'](K);}for(let L in I)b['TimeUtils']['timeout'](M=>{m['AckUtils']['ack'](I[L]);},L*0x3e8);};b['DataUtils']={};b['DataUtils']['cached']=window['BDFDB']&&window['BDFDB']['DataUtils']&&window['BDFDB']['DataUtils']['cached']||{};b['DataUtils']['save']=function(H,I,J,K){I=I==b&&c||I;let L=typeof I==='string'?I:I['name'];let M=l['path']['join'](b['BDUtils']['getPluginsFolder'](),L+'.config.json');let N=b['DataUtils']['cached'][L]!==undefined?b['DataUtils']['cached'][L]:c['readConfig'](M)||{};if(J===undefined)N=b['ObjectUtils']['is'](H)?b['ObjectUtils']['sort'](H):H;else{if(K===undefined)N[J]=b['ObjectUtils']['is'](H)?b['ObjectUtils']['sort'](H):H;else{if(!b['ObjectUtils']['is'](N[J]))N[J]={};N[J][K]=b['ObjectUtils']['is'](H)?b['ObjectUtils']['sort'](H):H;}}let O=b['ObjectUtils']['is'](N);if(J!==undefined&&O&&b['ObjectUtils']['is'](N[J])&&b['ObjectUtils']['isEmpty'](N[J]))delete N[J];if(b['ObjectUtils']['isEmpty'](N)){delete b['DataUtils']['cached'][L];if(l['fs']['existsSync'](M))l['fs']['unlinkSync'](M);}else{if(O)N=b['ObjectUtils']['sort'](N);b['DataUtils']['cached'][L]=O?b['ObjectUtils']['deepAssign']({},N):N;c['writeConfig'](M,N);}};b['DataUtils']['load']=function(H,I,J){H=H==b&&c||H;let K=typeof H==='string'?H:H['name'];let L=l['path']['join'](b['BDUtils']['getPluginsFolder'](),K+'.config.json');let M=b['DataUtils']['cached'][K]!==undefined?b['DataUtils']['cached'][K]:c['readConfig'](L)||{};let N=b['ObjectUtils']['is'](M);b['DataUtils']['cached'][K]=N?b['ObjectUtils']['deepAssign']({},M):M;if(I===undefined)return M;else{let O=N?b['ObjectUtils']['is'](M[I])||M[I]==undefined?b['ObjectUtils']['deepAssign']({},M[I]):M[I]:null;if(J===undefined)return O;else return!b['ObjectUtils']['is'](O)||O[J]===undefined?null:O[J];}};b['DataUtils']['remove']=function(H,I,J){H=H==b&&c||H;let K=typeof H==='string'?H:H['name'];let L=l['path']['join'](b['BDUtils']['getPluginsFolder'](),K+'.config.json');let M=b['DataUtils']['cached'][K]!==undefined?b['DataUtils']['cached'][K]:c['readConfig'](L)||{};let N=b['ObjectUtils']['is'](M);if(I===undefined||!N)M={};else{if(J===undefined)delete M[I];else if(b['ObjectUtils']['is'](M[I]))delete M[I][J];}if(b['ObjectUtils']['is'](M[I])&&b['ObjectUtils']['isEmpty'](M[I]))delete M[I];if(b['ObjectUtils']['isEmpty'](M)){delete b['DataUtils']['cached'][K];if(l['fs']['existsSync'](L))l['fs']['unlinkSync'](L);}else{if(N)M=b['ObjectUtils']['sort'](M);b['DataUtils']['cached'][K]=N?b['ObjectUtils']['deepAssign']({},M):M;c['writeConfig'](L,M);}};b['DataUtils']['get']=function(H,I,J){H=H==b&&c||H;H=typeof H=='string'?b['BDUtils']['getPlugin'](H):H;if(!b['ObjectUtils']['is'](H))return J===undefined?{}:null;let K=H['defaults'];if(!b['ObjectUtils']['is'](K)||!K[I])return J===undefined?{}:null;let L=b['DataUtils']['load'](H,I),M={},N=![];for(let O in K[I]){let P=b['ObjectUtils']['is'](K[I][O]['value']);if(L[O]==null||P&&(!b['ObjectUtils']['is'](L[O])||Object['keys'](K[I][O]['value'])['some'](Q=>K[I][O]['value'][Q]!=null&&!b['sameProto'](K[I][O]['value'][Q],L[O][Q])))){M[O]=P?b['ObjectUtils']['deepAssign']({},K[I][O]['value']):K[I][O]['value'];N=!![];}else M[O]=L[O];}if(N)b['DataUtils']['save'](M,H,I);if(J===undefined)return M;else return M[J]===undefined?null:M[J];};c['writeConfig']=function(H,I){try{l['fs']['writeFileSync'](H,JSON['stringify'](I,null,'\x09'));}catch(J){}};c['readConfig']=function(H){try{return JSON['parse'](l['fs']['readFileSync'](H));}catch(I){return{};}};b['ColorUtils']={};b['ColorUtils']['convert']=function(H,I,J){if(b['ObjectUtils']['is'](H)){var K={};for(let a8 in H)K[a8]=b['ColorUtils']['convert'](H[a8],I,J);return K;}else{I=I===undefined||!I?I='RGBCOMP':I['toUpperCase']();J=J===undefined||!J||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP','HEX','HEXA','INT']['includes'](J['toUpperCase']())?b['ColorUtils']['getType'](H):J['toUpperCase']();if(I=='RGBCOMP'){switch(J){case'RGBCOMP':if(H['length']==0x3)return a3(H);else if(H['length']==0x4){let ab=a4(H['pop']());return a3(H)['concat'](ab);}break;case'RGB':return a3(H['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':let a9=H['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');let aa=a4(a9['pop']());return a3(a9)['concat'](aa);case'HSLCOMP':if(H['length']==0x3)return b['ColorUtils']['convert']('hsl('+a6(H)['join'](',')+')','RGBCOMP');else if(H['length']==0x4){let ac=a4(H['pop']());return b['ColorUtils']['convert']('hsl('+a6(H)['join'](',')+')','RGBCOMP')['concat'](ac);}break;case'HSL':var L=a6(H['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var M,N,O,P,Q,R,S,T;var U=L[0x0]/0x168,V=parseInt(L[0x1])/0x64,W=parseInt(L[0x2])/0x64;P=Math['floor'](U*0x6);Q=U*0x6-P;R=W*(0x1-V);S=W*(0x1-Q*V);T=W*(0x1-(0x1-Q)*V);switch(P%0x6){case 0x0:M=W,N=T,O=R;break;case 0x1:M=S,N=W,O=R;break;case 0x2:M=R,N=W,O=T;break;case 0x3:M=R,N=S,O=W;break;case 0x4:M=T,N=R,O=W;break;case 0x5:M=W,N=R,O=S;break;}return[Math['round'](M*0xff),Math['round'](N*0xff),Math['round'](O*0xff)];case'HSLA':var L=H['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');return b['ColorUtils']['convert']('hsl('+L['slice'](0x0,0x3)['join'](',')+')','RGBCOMP')['concat'](a4(L['pop']()));case'HEX':var X=/^#([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'](H);return[parseInt(X[0x1]+X[0x1]||X[0x4],0x10)['toString'](),parseInt(X[0x2]+X[0x2]||X[0x5],0x10)['toString'](),parseInt(X[0x3]+X[0x3]||X[0x6],0x10)['toString']()];case'HEXA':var X=/^#([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})([a-f\d]{1})$|^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i['exec'](H);return[parseInt(X[0x1]+X[0x1]||X[0x5],0x10)['toString'](),parseInt(X[0x2]+X[0x2]||X[0x6],0x10)['toString'](),parseInt(X[0x3]+X[0x3]||X[0x7],0x10)['toString'](),Math['floor'](b['NumberUtils']['mapRange']([0x0,0xff],[0x0,0x64],parseInt(X[0x4]+X[0x4]||X[0x8],0x10)['toString']()))/0x64];case'INT':H=a7(H);return[(H>>0x10&0xff)['toString'](),(H>>0x8&0xff)['toString'](),(H&0xff)['toString']()];default:return null;}}else{if(I&&J&&I['indexOf']('HSL')==0x0&&J['indexOf']('HSL')==0x0){if(J=='HSLCOMP'){switch(I){case'HSLCOMP':if(H['length']==0x3)return a6(H);else if(H['length']==0x4){var Y=a4(H['pop']());return a6(H)['concat'](Y);}break;case'HSL':return'hsl('+a6(H['slice'](0x0,0x3))['join'](',')+')';case'HSLA':H=H['slice'](0x0,0x4);var Y=H['length']==0x4?a4(H['pop']()):0x1;return'hsla('+a6(H)['concat'](Y)['join'](',')+')';}}else return b['ColorUtils']['convert'](H['replace'](/\s/g,'')['slice'](H['toLowerCase']()['indexOf']('hsla')==0x0?0x5:0x4,-0x1)['split'](','),I,'HSLCOMP');}else{let ad=J=='RGBCOMP'?H:b['ColorUtils']['convert'](H,'RGBCOMP',J);if(ad)switch(I){case'RGB':return'rgb('+a3(ad['slice'](0x0,0x3))['join'](',')+')';case'RGBA':ad=ad['slice'](0x0,0x4);var Y=ad['length']==0x4?a4(ad['pop']()):0x1;return'rgba('+a3(ad)['concat'](Y)['join'](',')+')';case'HSLCOMP':var Y=ad['length']==0x4?a4(ad['pop']()):null;var L=a6(b['ColorUtils']['convert'](ad,'HSL')['replace'](/\s/g,'')['split'](','));return Y!=null?L['concat'](Y):L;case'HSL':var M=a2(ad[0x0]),N=a2(ad[0x1]),O=a2(ad[0x2]);var Z=Math['max'](M,N,O),a0=Math['min'](M,N,O),a1=Z-a0,U,V=Z===0x0?0x0:a1/Z,W=Z/0xff;switch(Z){case a0:U=0x0;break;case M:U=N-O+a1*(N0xff?0xff:ae<0x0?0x0:ae;}};function a3(ae){return ae['map'](af=>{return a2(af);});};function a4(ae){if(ae==null){return 0x1;}else{ae=ae['toString']();ae=(ae['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(ae['replace'](/[^0-9\.\-]/g,''));return isNaN(ae)||ae>0x1?0x1:ae<0x0?0x0:ae;}};function a5(ae){if(ae==null){return'100%';}else{ae=parseFloat(ae['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(ae)||ae>0x64?0x64:ae<0x0?0x0:ae)+'%';}};function a6(ae){let af=parseFloat(ae['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));af=isNaN(af)||af>0x168?0x168:af<0x0?0x0:af;return[af]['concat'](ae['map'](ag=>{return a5(ag);}));};function a7(ae){if(ae==null){return 0xffffff;}else{ae=parseInt(ae['toString']()['replace'](/[^0-9]/g,''));return isNaN(ae)||ae>0xffffff?0xffffff:ae<0x0?0x0:ae;}};};b['ColorUtils']['setAlpha']=function(H,I,J){if(b['ObjectUtils']['is'](H)){var K={};for(let M in H)K[M]=b['ColorUtils']['setAlpha'](H[M],I,J);return K;}else{var L=b['ColorUtils']['convert'](H,'RGBCOMP');if(L){I=I['toString']();I=(I['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(I['replace'](/[^0-9\.\-]/g,''));I=isNaN(I)||I>0x1?0x1:I<0x0?0x0:I;L[0x3]=I;J=(J||b['ColorUtils']['getType'](H))['toUpperCase']();J=J=='RGB'||J=='HSL'||J=='HEX'?J+'A':J;return b['ColorUtils']['convert'](L,J);}}return null;};b['ColorUtils']['getAlpha']=function(H){var I=b['ColorUtils']['convert'](H,'RGBCOMP');if(I){if(I['length']==0x3)return 0x1;else if(I['length']==0x4){let J=I[0x3]['toString']();J=(J['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(J['replace'](/[^0-9\.\-]/g,''));return isNaN(J)||J>0x1?0x1:J<0x0?0x0:J;}}return null;};b['ColorUtils']['change']=function(H,I,J){I=parseFloat(I);if(H!=null&&typeof I=='number'&&!isNaN(I)){if(b['ObjectUtils']['is'](H)){var K={};for(let M in H)K[M]=b['ColorUtils']['change'](H[M],I,J);return K;}else{var L=b['ColorUtils']['convert'](H,'RGBCOMP');if(L){if(parseInt(I)!==I){I=I['toString']();I=(I['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(I['replace'](/[^0-9\.\-]/g,''));I=isNaN(I)?0x0:I;return b['ColorUtils']['convert']([Math['round'](L[0x0]*(0x1+I)),Math['round'](L[0x1]*(0x1+I)),Math['round'](L[0x2]*(0x1+I))],J||b['ColorUtils']['getType'](H));}else return b['ColorUtils']['convert']([Math['round'](L[0x0]+I),Math['round'](L[0x1]+I),Math['round'](L[0x2]+I)],J||b['ColorUtils']['getType'](H));}}}return null;};b['ColorUtils']['invert']=function(H,I){if(b['ObjectUtils']['is'](H)){var J={};for(let L in H)J[L]=b['ColorUtils']['invert'](H[L],I);return J;}else{var K=b['ColorUtils']['convert'](H,'RGBCOMP');if(K)return b['ColorUtils']['convert']([0xff-K[0x0],0xff-K[0x1],0xff-K[0x2]],I||b['ColorUtils']['getType'](H));}return null;};b['ColorUtils']['compare']=function(H,I){if(H&&I){H=b['ColorUtils']['convert'](H,'RGBA');I=b['ColorUtils']['convert'](I,'RGBA');if(H&&I)return b['equals'](H,I);}return null;};b['ColorUtils']['isBright']=function(H,I=0xa0){H=b['ColorUtils']['convert'](H,'RGBCOMP');if(!H)return![];return parseInt(I)