diff --git a/Plugins/BDFDB.js b/Plugins/BDFDB.js
index 2088c39e56..3413fe6dd0 100644
--- a/Plugins/BDFDB.js
+++ b/Plugins/BDFDB.js
@@ -1263,39 +1263,19 @@
};
InternalBDFDB.initiateProcess = function (plugin, type, e) {
if (BDFDB.ObjectUtils.is(plugin) && !plugin.stopping && e.instance) {
- // REMOVE
- let isLib = plugin == BDFDB;
- if (isLib) plugin = InternalBDFDB;
type = (type.split(" _ _ ")[1] || type).replace(/[^A-z0-9]|_/g, "");
type = type.charAt(0).toUpperCase() + type.slice(1);
if (typeof plugin["process" + type] == "function") {
- // REMOVE
- let isOldType = !isLib && plugin["process" + type].toString().split("\n")[0].replace(/ /g, "").split(",").length > 1;
- if (isOldType) {
- if (e.methodname == "render") {
- if (e.returnvalue) plugin["process" + type](e.instance, null, e.returnvalue, [e.methodname]);
- }
- else {
- let wrapper = BDFDB.ReactUtils.findDOMNode(e.instance);
- if (wrapper) plugin["process" + type](e.instance, wrapper, e.returnvalue, [e.methodname]);
- else BDFDB.TimeUtils.timeout(_ => {
- wrapper = BDFDB.ReactUtils.findDOMNode(e.instance);
- if (wrapper) plugin["process" + type](e.instance, wrapper, e.returnvalue, [e.methodname]);
- });
- }
- }
- else {
- if (typeof e.methodname == "string" && (e.methodname.indexOf("componentDid") == 0 || e.methodname.indexOf("componentWill") == 0)) {
+ if (typeof e.methodname == "string" && (e.methodname.indexOf("componentDid") == 0 || e.methodname.indexOf("componentWill") == 0)) {
+ e.node = BDFDB.ReactUtils.findDOMNode(e.instance);
+ if (e.node) plugin["process" + type](e);
+ else BDFDB.TimeUtils.timeout(_ => {
e.node = BDFDB.ReactUtils.findDOMNode(e.instance);
if (e.node) plugin["process" + type](e);
- else BDFDB.TimeUtils.timeout(_ => {
- e.node = BDFDB.ReactUtils.findDOMNode(e.instance);
- if (e.node) plugin["process" + type](e);
- });
-
- }
- else if (e.returnvalue || e.patchtypes.includes("before")) plugin["process" + type](e);
+ });
+
}
+ else if (e.returnvalue || e.patchtypes.includes("before")) plugin["process" + type](e);
}
}
};
@@ -1411,51 +1391,20 @@
}
};
InternalBDFDB.patchContextMenuPlugin = function (plugin, type, module) {
- if (module && module.prototype) {
- // REMOVE
- let isOldType = plugin["on" + type].toString().split("\n")[0].replace(/ /g, "").split(",").length > 1;
- if (isOldType) {
- BDFDB.ModuleUtils.patch(plugin, module.prototype, "render", {after: e => {
- let instance = e.thisObject, menu = BDFDB.ReactUtils.findDOMNode(e.thisObject), returnvalue = e.returnValue;
- if (instance && menu && returnvalue && typeof plugin[`on${type}`] === "function") plugin[`on${type}`](instance, menu, returnvalue);
- }});
- }
- else {
- BDFDB.ModuleUtils.patch(plugin, module.prototype, "render", {after: e => {
- if (e.thisObject && e.returnValue && typeof plugin[`on${type}`] === "function") plugin[`on${type}`]({instance:e.thisObject, returnvalue:e.returnValue, methodname:"render"});
- }});
- }
- }
+ if (module && module.prototype) BDFDB.ModuleUtils.patch(plugin, module.prototype, "render", {after: e => {
+ if (e.thisObject && e.returnValue && typeof plugin[`on${type}`] === "function") plugin[`on${type}`]({instance:e.thisObject, returnvalue:e.returnValue, methodname:"render"});
+ }});
};
InternalBDFDB.patchExportedContextMenuPlugin = function (plugin, type, module) {
- if (module && module.exports) {
- // REMOVE
- let isOldType = plugin["on" + type].toString().split("\n")[0].replace(/ /g, "").split(",").length > 1;
- if (isOldType) BDFDB.ModuleUtils.patch(plugin, module.exports, "default", {after: e => {
- if (e.returnValue && typeof plugin[`on${type}`] === "function") plugin[`on${type}`]({props:e.methodArguments[0]}, document, e.returnValue);
- }});
- else BDFDB.ModuleUtils.patch(plugin, module.exports, "default", {after: e => {
- if (e.returnValue && typeof plugin[`on${type}`] === "function") plugin[`on${type}`]({instance:{props:e.methodArguments[0]}, returnvalue:e.returnValue, methodname:"default"});
- }});
- }
+ if (module && module.exports) BDFDB.ModuleUtils.patch(plugin, module.exports, "default", {after: e => {
+ if (e.returnValue && typeof plugin[`on${type}`] === "function") plugin[`on${type}`]({instance:{props:e.methodArguments[0]}, returnvalue:e.returnValue, methodname:"default"});
+ }});
};
InternalBDFDB.executeExtraPatchedPatches = function (type, e) {
if (BDFDB.ObjectUtils.is(BDFDB.InternalData.componentPatchQueries[type]) && BDFDB.ArrayUtils.is(BDFDB.InternalData.componentPatchQueries[type].query)) for (let plugin of BDFDB.InternalData.componentPatchQueries[type].query) if (e.returnvalue && typeof plugin[`on${type}`] === "function") plugin[`on${type}`](e);
};
InternalBDFDB.patchContextMenuLib = function (module, repatch) {
if (module && module.prototype) {
- // REMOVE
- BDFDB.ModuleUtils.patch(BDFDB, module.prototype, "componentDidMount", {after: e => {
- if (!e.thisObject.BDFDBforceRenderTimeout && typeof e.thisObject.render == "function") e.thisObject.render();
- }});
- BDFDB.ModuleUtils.patch(BDFDB, module.prototype, "componentDidUpdate", {after: e => {
- var menu = BDFDB.ReactUtils.findDOMNode(e.thisObject);
- if (menu) {
- const updater = BDFDB.ReactUtils.getValue(e, "thisObject._reactInternalFiber.stateNode.props.onHeightUpdate");
- const mrects = BDFDB.DOMUtils.getRects(menu), arects = BDFDB.DOMUtils.getRects(document.querySelector(BDFDB.dotCN.appmount));
- if (updater && (mrects.top + mrects.height > arects.height)) updater();
- }
- }});
BDFDB.ModuleUtils.patch(BDFDB, module.prototype, "render", {after: e => {
if (e.thisObject.props.BDFDBcontextMenu && e.thisObject.props.children && e.returnValue && e.returnValue.props) {
e.returnValue.props.children = e.thisObject.props.children;
@@ -1463,10 +1412,6 @@
delete e.thisObject.props.children;
delete e.thisObject.props.BDFDBcontextMenu;
}
- if (BDFDB.ReactUtils.findDOMNode(e.thisObject)) {
- e.thisObject.BDFDBforceRenderTimeout = true;
- BDFDB.TimeUtils.timeout(_ => {delete e.thisObject.BDFDBforceRenderTimeout;}, 1000);
- }
if (repatch) {
let newmodule = BDFDB.ReactUtils.getValue(e, "thisObject._reactInternalFiber.child.type");
if (newmodule && newmodule.displayName && BDFDB.InternalData.componentPatchQueries[newmodule.displayName] && !BDFDB.InternalData.componentPatchQueries[newmodule.displayName].module) {
@@ -3581,133 +3526,6 @@
ele.addEventListener(action, callback, true);
};
};
-
- // REMOVE ONCE REWRITTEN
- BDFDB.appendModal = function (modalwrapper) {
- if (!Node.prototype.isPrototypeOf(modalwrapper)) return;
- if (!BDFDB.appendModal.modals || !document.contains(BDFDB.appendModal.modals)) BDFDB.appendModal.modals = BDFDB.ReactUtils.findDOMNode(BDFDB.ReactUtils.findOwner(document.querySelector(BDFDB.dotCN.app), {name:"Modals", unlimited:true}));
- if (!BDFDB.appendModal.modals) return;
-
- var modal = BDFDB.DOMUtils.containsClass(modalwrapper, BDFDB.disCN.modal) ? modalwrapper : modalwrapper.querySelector(BDFDB.dotCN.modal);
- var backdrop = modal ? modal.previousElementSibling : null;
-
- var modalOpacity = new LibraryModules.AnimationUtils.Value(0);
- modalOpacity
- .interpolate({inputRange: [0, 1], outputRange: [0, 1]})
- .addListener((value) => {if (modal) modal.style.setProperty("opacity", `${value.value}`);});
- var modalTransform = new LibraryModules.AnimationUtils.Value(0);
- modalTransform
- .interpolate({inputRange: [0, 1], outputRange: [0.7, 1]})
- .addListener((value) => {if (modal) modal.style.setProperty("transform", `scale(${value.value}) translateZ(0px)`);});
- var backdropOpacity = new LibraryModules.AnimationUtils.Value(0);
- backdropOpacity
- .interpolate({inputRange: [0, 1], outputRange: [0, 0.85]})
- .addListener((value) => {if (backdrop) {
- backdrop.style.setProperty("opacity", `${value.value}`);
- backdrop.style.setProperty("background-color", "rgb(0, 0, 0)");
- backdrop.style.setProperty("z-index", "1000");
- backdrop.style.setProperty("transform", "translateZ(0px)");
- }});
-
- var animate = (v) => {
- LibraryModules.AnimationUtils.parallel([
- LibraryModules.AnimationUtils.timing(modalOpacity, {toValue: v, duration: 250, easing: LibraryModules.AnimationUtils.Easing.inOut(LibraryModules.AnimationUtils.Easing.ease)}),
- LibraryModules.AnimationUtils.timing(modalTransform, {toValue: v, duration: 250, easing: LibraryModules.AnimationUtils.Easing.inOut(LibraryModules.AnimationUtils.Easing.ease)}),
- LibraryModules.AnimationUtils.timing(backdropOpacity, {toValue: v, duration: 200, delay:50}),
- ]).start();
- };
-
- var keydown = e => {
- if (!document.contains(modalwrapper)) document.removeEventListener("keydown", keydown);
- else if (e.which == 27 && backdrop) backdrop.click();
- };
- document.addEventListener("keydown", keydown);
- BDFDB.ListenerUtils.addToChildren(modalwrapper, "click", BDFDB.dotCNC.backdrop + BDFDB.dotCNC.modalclose + ".btn-close, .btn-save, .btn-send, .btn-cancel, .btn-ok, .btn-done", _ => {
- document.removeEventListener("keydown", keydown);
- animate(0);
- BDFDB.TimeUtils.timeout(_ => {modalwrapper.remove();}, 300);
- });
- BDFDB.appendModal.modals.appendChild(modalwrapper);
- BDFDB.initElements(modalwrapper);
- animate(1);
- };
-
- BDFDB.createSearchBar = function (size = "small") {
- if (typeof size != "string" || !["small","medium","large"].includes(size.toLowerCase())) size = "small";
- var sizeclass = DiscordClassModules.SearchBar[size] ? (" " + BDFDB.disCN["searchbar" + size]) : "";
- var searchBar = BDFDB.DOMUtils.create(`
`);
- BDFDB.initElements(searchBar);
- return searchBar;
- };
-
- BDFDB.createSelectMenu = function (inner, value, type = "", dark = BDFDB.DiscordUtils.getTheme() == BDFDB.disCN.themedark) {
- if (typeof inner != "string" || (typeof value != "string" && typeof value != "number")) return BDFDB.DOMUtils.create(``);
- var suffix = dark ? "dark" : "light";
- return ``;
- };
-
- BDFDB.openDropdownMenu = function (e, callback, createinner, values, above = false, dark = BDFDB.DiscordUtils.getTheme() == BDFDB.disCN.themedark) {
- if (typeof callback != "function" || typeof createinner != "function" || !values || typeof values != "object") return;
- let selectControl = (BDFDB.DOMUtils.getParent(BDFDB.dotCN.selectwrap, e.currentTarget) || e.currentTarget).querySelector(BDFDB.dotCN.selectcontrol);
- let selectWrap = selectControl.parentElement;
- if (BDFDB.DOMUtils.containsClass(selectWrap, BDFDB.disCN.selectisopen)) return;
-
- BDFDB.DOMUtils.addClass(selectWrap, BDFDB.disCN.selectisopen);
-
- var type = selectWrap.getAttribute("type");
- var oldchoice = selectWrap.getAttribute("value");
- var suffix = dark ? "dark" : "light";
- var menuhtml = ``;
- var selectMenu = BDFDB.DOMUtils.create(menuhtml);
- if (above) {
- BDFDB.DOMUtils.addClass(selectMenu, "above-select");
- selectMenu.style.setProperty("top", "unset", "important");
- selectMenu.style.setProperty("bottom", BDFDB.DOMUtils.getRects(selectWrap).height + "px", "important");
- }
- selectWrap.appendChild(selectMenu);
- BDFDB.initElements(selectMenu);
-
- BDFDB.ListenerUtils.addToChildren(selectMenu, "mouseenter", BDFDB.dotCN.selectoption + BDFDB.notCN.selectoptionselectlight + BDFDB.notCN.selectoptionselectdark, e2 => {
- if (dark) {
- BDFDB.DOMUtils.removeClass(e2.currentTarget, BDFDB.disCN.selectoptiondark);
- BDFDB.DOMUtils.addClass(e2.currentTarget, BDFDB.disCN.selectoptionhoverdark);
- }
- else {
- BDFDB.DOMUtils.removeClass(e2.currentTarget, BDFDB.disCN.selectoptionlight);
- BDFDB.DOMUtils.addClass(e2.currentTarget, BDFDB.disCN.selectoptionhoverlight);
- }
- });
- BDFDB.ListenerUtils.addToChildren(selectMenu, "mouseleave", BDFDB.dotCN.selectoption + BDFDB.notCN.selectoptionselectlight + BDFDB.notCN.selectoptionselectdark, e2 => {
- if (dark) {
- BDFDB.DOMUtils.removeClass(e2.currentTarget, BDFDB.disCN.selectoptionhoverdark);
- BDFDB.DOMUtils.addClass(e2.currentTarget, BDFDB.disCN.selectoptiondark);
- }
- else {
- BDFDB.DOMUtils.removeClass(e2.currentTarget, BDFDB.disCN.selectoptionhoverlight);
- BDFDB.DOMUtils.addClass(e2.currentTarget, BDFDB.disCN.selectoptionlight);
- }
- });
- BDFDB.ListenerUtils.addToChildren(selectMenu, "mousedown", BDFDB.dotCN.selectoption, e2 => {
- if (!BDFDB.DOMUtils.getParent(BDFDB.dotCN.giffavoritebutton, e2.target)) {
- var newchoice = e2.currentTarget.getAttribute("value");
- selectWrap.setAttribute("value", newchoice);
- callback(selectWrap, type, newchoice);
- }
- });
-
- var removeMenu = e2 => {
- if (e2.target.parentElement != selectMenu && !BDFDB.DOMUtils.getParent(BDFDB.dotCN.giffavoritebutton, e2.target)) {
- document.removeEventListener("mousedown", removeMenu);
- selectMenu.remove();
- BDFDB.TimeUtils.timeout(_ => {BDFDB.DOMUtils.removeClass(selectWrap, BDFDB.disCN.selectisopen);},100);
- }
- };
- document.addEventListener("mousedown", removeMenu);
-
- return selectMenu;
- };
BDFDB.ModalUtils = {};
BDFDB.ModalUtils.open = function (plugin, config) {
@@ -3912,38 +3730,6 @@
document.addEventListener("mousedown", mousedown);
};
- // REMOVE ONCE REWRITTEN
- var setSwatch = (swatch, color, selected) => {
- if (!swatch) return;
- else if (selected) {
- BDFDB.DOMUtils.addClass(swatch, BDFDB.disCN.colorpickerswatchselected);
- var iscustom = BDFDB.DOMUtils.containsClass(swatch, BDFDB.disCN.colorpickerswatchcustom);
- var isGradient = color && BDFDB.ObjectUtils.is(color);
- var selectedColor = BDFDB.ObjectUtils.is(color) ? BDFDB.ColorUtils.createGradient(color) : BDFDB.ColorUtils.convert(color, "RGBA");
- var bright = selectedColor && !isGradient ? BDFDB.ColorUtils.isBright(selectedColor) : false;
- if (!swatch.querySelector(`svg[name="Checkmark"]`)) swatch.appendChild(BDFDB.DOMUtils.create(``));
- if (iscustom) {
- BDFDB.DOMUtils.removeClass(swatch, BDFDB.disCN.colorpickerswatchnocolor);
- swatch.querySelector(BDFDB.dotCN.colorpickerswatchdropperfg).setAttribute("fill", bright ? "#000000" : "#ffffff");
- if (selectedColor) {
- if (isGradient) swatch.gradient = color;
- swatch.style.setProperty(isGradient ? "background-image" : "background-color", selectedColor, "important");
- }
- }
- }
- else {
- delete swatch.gradient;
- BDFDB.DOMUtils.removeClass(swatch, BDFDB.disCN.colorpickerswatchselected);
- BDFDB.DOMUtils.remove(swatch.querySelectorAll(".swatch-checkmark"));
- if (BDFDB.DOMUtils.containsClass(swatch, BDFDB.disCN.colorpickerswatchcustom)) {
- BDFDB.DOMUtils.addClass(swatch, BDFDB.disCN.colorpickerswatchnocolor);
- swatch.querySelector(BDFDB.dotCN.colorpickerswatchdropperfg).setAttribute("fill", "#ffffff");
- swatch.style.removeProperty("background-color");
- swatch.style.removeProperty("background-image");
- }
- }
- };
-
BDFDB.TimeUtils = {};
BDFDB.TimeUtils.interval = function (callback, delay) {
if (typeof callback != "function" || typeof delay != "number" || delay < 1) return;
@@ -5218,9 +5004,6 @@
divider: ["ModalDivider", "divider"],
dividerdefault: ["SettingsItems", "dividerDefault"],
dividermini: ["SettingsItems", "dividerMini"],
- modaldivider: ["ModalDivider", "divider"], // REMOVE
- modaldividerdefault: ["SettingsItems", "dividerDefault"], // REMOVE
- modaldividermini: ["SettingsItems", "dividerMini"], // REMOVE
dmchannel: ["PrivateChannel", "channel"],
dmchannelactivity: ["PrivateChannel", "activity"],
dmchannelactivityemoji: ["PrivateChannel", "activityEmoji"],
@@ -6490,148 +6273,127 @@
toast_plugin_started: "{{var0}} je započeo.",
toast_plugin_stopped: "{{var0}} zaustavljen.",
toast_plugin_translated: "prijevod na {{var0}}.",
- file_navigator_text: "Pregledajte datoteku",
- btn_all_text: "Sve" //REMOVE
+ file_navigator_text: "Pregledajte datoteku"
},
"da": {
toast_plugin_started: "{{var0}} er startet.",
toast_plugin_stopped: "{{var0}} er stoppet.",
toast_plugin_translated: "oversat til {{var0}}.",
- file_navigator_text: "Gennemse fil",
- btn_all_text: "Alle"
+ file_navigator_text: "Gennemse fil"
},
"de": {
toast_plugin_started: "{{var0}} wurde gestartet.",
toast_plugin_stopped: "{{var0}} wurde gestoppt.",
toast_plugin_translated: "auf {{var0}} übersetzt.",
- file_navigator_text: "Datei durchsuchen",
- btn_all_text: "Alle"
+ file_navigator_text: "Datei durchsuchen"
},
"es": {
toast_plugin_started: "{{var0}} se guilddiv iniciado.",
toast_plugin_stopped: "{{var0}} se guilddiv detenido.",
toast_plugin_translated: "traducido a {{var0}}.",
- file_navigator_text: "Buscar archivo",
- btn_all_text: "Todo"
+ file_navigator_text: "Buscar archivo"
},
"fr": {
toast_plugin_started: "{{var0}} a été démarré.",
toast_plugin_stopped: "{{var0}} a été arrêté.",
toast_plugin_translated: "traduit en {{var0}}.",
- file_navigator_text: "Parcourir le fichier",
- btn_all_text: "Tout"
+ file_navigator_text: "Parcourir le fichier"
},
"it": {
toast_plugin_started: "{{var0}} è stato avviato.",
toast_plugin_stopped: "{{var0}} è stato interrotto.",
toast_plugin_translated: "tradotto in {{var0}}.",
- file_navigator_text: "Sfoglia file",
- btn_all_text: "Tutto"
+ file_navigator_text: "Sfoglia file"
},
"nl": {
toast_plugin_started: "{{var0}} is gestart.",
toast_plugin_stopped: "{{var0}} is gestopt.",
toast_plugin_translated: "vertaald naar {{var0}}.",
- file_navigator_text: "Bestand zoeken",
- btn_all_text: "Alle"
+ file_navigator_text: "Bestand zoeken"
},
"no": {
toast_plugin_started: "{{var0}} er startet.",
toast_plugin_stopped: "{{var0}} er stoppet.",
toast_plugin_translated: "oversatt til {{var0}}.",
- file_navigator_text: "Bla gjennom fil",
- btn_all_text: "Alle"
+ file_navigator_text: "Bla gjennom fil"
},
"pl": {
toast_plugin_started: "{{var0}} został uruchomiony.",
toast_plugin_stopped: "{{var0}} został zatrzymany.",
toast_plugin_translated: "przetłumaczono na {{var0}}.",
- file_navigator_text: "Przeglądać plik",
- btn_all_text: "Wszystkie"
+ file_navigator_text: "Przeglądać plik"
},
"pt-BR": {
toast_plugin_started: "{{var0}} foi iniciado.",
toast_plugin_stopped: "{{var0}} foi interrompido.",
toast_plugin_translated: "traduzido para {{var0}}.",
- file_navigator_text: "Procurar arquivo",
- btn_all_text: "Todo"
+ file_navigator_text: "Procurar arquivo"
},
"fi": {
toast_plugin_started: "{{var0}} on käynnistetty.",
toast_plugin_stopped: "{{var0}} on pysäytetty.",
toast_plugin_translated: "käännetty osoitteeseen {{var0}}.",
- file_navigator_text: "Selaa tiedostoa",
- btn_all_text: "Kaikki"
+ file_navigator_text: "Selaa tiedostoa"
},
"sv": {
toast_plugin_started: "{{var0}} har startats.",
toast_plugin_stopped: "{{var0}} har blivit stoppad.",
toast_plugin_translated: "översatt till {{var0}}.",
- file_navigator_text: "Bläddra i fil",
- btn_all_text: "All"
+ file_navigator_text: "Bläddra i fil"
},
"tr": {
toast_plugin_started: "{{var0}} başlatıldı.",
toast_plugin_stopped: "{{var0}} durduruldu.",
toast_plugin_translated: "{{var0}} olarak çevrildi.",
- file_navigator_text: "Dosyaya gözat",
- btn_all_text: "Her"
+ file_navigator_text: "Dosyaya gözat"
},
"cs": {
toast_plugin_started: "{{var0}} byl spuštěn.",
toast_plugin_stopped: "{{var0}} byl zastaven.",
toast_plugin_translated: "přeložen do {{var0}}.",
- file_navigator_text: "Procházet soubor",
- btn_all_text: "Vše"
+ file_navigator_text: "Procházet soubor"
},
"bg": {
toast_plugin_started: "{{var0}} е стартиран.",
toast_plugin_stopped: "{{var0}} е спрян.",
toast_plugin_translated: "преведена на {{var0}}.",
- file_navigator_text: "Прегледайте файла",
- btn_all_text: "Bсичко"
+ file_navigator_text: "Прегледайте файла"
},
"ru": {
toast_plugin_started: "{{var0}} запущен.",
toast_plugin_stopped: "{{var0}} остановлен.",
toast_plugin_translated: "переведен на {{var0}}.",
- file_navigator_text: "Просмотр файла",
- btn_all_text: "Все"
+ file_navigator_text: "Просмотр файла"
},
"uk": {
toast_plugin_started: "{{var0}} було запущено.",
toast_plugin_stopped: "{{var0}} було зупинено.",
toast_plugin_translated: "перекладено {{var0}}.",
- file_navigator_text: "Перегляньте файл",
- btn_all_text: "Все"
+ file_navigator_text: "Перегляньте файл"
},
"ja": {
toast_plugin_started: "{{var0}}が開始されました.",
toast_plugin_stopped: "{{var0}}が停止しました.",
toast_plugin_translated: "は{{var0}}に翻訳されました.",
- file_navigator_text: "ファイルを参照",
- btn_all_text: "すべて"
+ file_navigator_text: "ファイルを参照"
},
"zh-TW": {
toast_plugin_started: "{{var0}}已經啟動.",
toast_plugin_stopped: "{{var0}}已停止.",
toast_plugin_translated: "翻譯為{{var0}}.",
- file_navigator_text: "瀏覽文件",
- btn_all_text: "所有"
+ file_navigator_text: "瀏覽文件"
},
"ko": {
toast_plugin_started: "{{var0}} 시작되었습니다.",
toast_plugin_stopped: "{{var0}} 중지되었습니다.",
toast_plugin_translated: "{{var0}} 로 번역되었습니다.",
- file_navigator_text: "파일 찾아보기",
- btn_all_text: "모든"
+ file_navigator_text: "파일 찾아보기"
},
"default": {
toast_plugin_started: "{{var0}} has been started.",
toast_plugin_stopped: "{{var0}} has been stopped.",
toast_plugin_translated: "translated to {{var0}}.",
- file_navigator_text: "Browse File",
- btn_all_text: "All"
+ file_navigator_text: "Browse File"
}
};
BDFDB.LanguageUtils.getLanguage = function () {
@@ -8157,14 +7919,6 @@
}
};
- InternalComponents.LibraryComponents.SettingsSwitch = BDFDB.ReactUtils.getValue(window.BDFDB, "LibraryComponents.SettingsSwitch") || reactInitialized && class BDFDB_SettingsSwitch extends LibraryModules.React.Component { // REMOVE
- render() {
- return BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.SettingsSaveItem, Object.assign({keys:[]}, this.props, {
- type: "Switch"
- }));
- }
- };
-
InternalComponents.LibraryComponents.Slider = BDFDB.ReactUtils.getValue(window.BDFDB, "LibraryComponents.Slider") || reactInitialized && class BDFDB_Slider extends LibraryModules.React.Component {
handleValueChange(value) {
let newvalue = BDFDB.ArrayUtils.is(this.props.edges) && this.props.edges.length == 2 ? BDFDB.NumberUtils.mapRange([0, 100], this.props.edges, value) : value;
@@ -10281,167 +10035,10 @@
BDFDB.LibraryComponents[component] = "div";
}
- BDFDB.loadMessage = BDFDB.PluginUtils.init;
- BDFDB.unloadMessage = BDFDB.PluginUtils.clear;
- BDFDB.createSettingsPanel = BDFDB.PluginUtils.createSettingsPanel;
-
- BDFDB.addObserver = BDFDB.ObserverUtils.connect;
- BDFDB.killObservers = BDFDB.ObserverUtils.disconnect;
-
- BDFDB.addEventListener = BDFDB.ListenerUtils.add;
- BDFDB.removeEventListener = BDFDB.ListenerUtils.remove;
- BDFDB.addChildEventListener = BDFDB.ListenerUtils.addToChildren;
- BDFDB.copyEvent = BDFDB.ListenerUtils.copyEvent;
- BDFDB.stopEvent = BDFDB.ListenerUtils.stopEvent;
-
- BDFDB.showToast = BDFDB.NotificationUtils.toast;
- BDFDB.showDesktopNotification = BDFDB.NotificationUtils.desktop;
- BDFDB.createNotificationsBar = BDFDB.NotificationUtils.notice;
-
- BDFDB.createTooltip = (string, ele, config) => {return BDFDB.TooltipUtils.create(ele, string, config);};
- BDFDB.updateTooltipPosition = BDFDB.TooltipUtils.update;
-
- BDFDB.isObject = BDFDB.ObjectUtils.is;
- BDFDB.sortObject = BDFDB.ObjectUtils.sort;
- BDFDB.reverseObject = BDFDB.ObjectUtils.reverse;
- BDFDB.filterObject = BDFDB.ObjectUtils.filter;
- BDFDB.mapObject = BDFDB.ObjectUtils.map;
- BDFDB.isObjectEmpty = BDFDB.ObjectUtils.isEmpty;
-
- BDFDB.sortArrayByKey = BDFDB.ArrayUtils.keySort;
- BDFDB.numSortArray = BDFDB.ArrayUtils.numSort;
- BDFDB.removeFromArray = BDFDB.ArrayUtils.remove;
- BDFDB.getAllIndexes = BDFDB.ArrayUtils.getAllIndexes;
- BDFDB.removeCopiesFromArray = BDFDB.ArrayUtils.removeCopies;
-
- BDFDB.React = Object.assign({}, BDFDB.ReactUtils);
- BDFDB.getKeyInformation = (config) => {return BDFDB.ReactUtils.findValue(config.node || config.instance, config.key, config);};
- BDFDB.getReactInstance = BDFDB.ReactUtils.getInstance;
- BDFDB.getOwnerInstance = (config) => {return BDFDB.ReactUtils.findOwner(config.node || config.instance, config);};
- BDFDB.ReactUtils.getOwner = BDFDB.ReactUtils.findOwner;
- BDFDB.getContextMenuGroupAndIndex = (startchildren, names) => {return BDFDB.ReactUtils.findChildren(startchildren, {name:names, props:[["label",names]]});};
- BDFDB.getReactValue = BDFDB.ReactUtils.getValue;
-
- BDFDB.WebModules = Object.assign({}, BDFDB.ModuleUtils);
- BDFDB.WebModules.patch = (module, methodNames, plugin, patchMethods) => {return BDFDB.ModuleUtils.patch(plugin, module, methodNames, patchMethods)};
- BDFDB.ModuleUtils.initiateProcess = InternalBDFDB.initiateProcess;
- BDFDB.WebModules.initiateProcess = InternalBDFDB.initiateProcess;
-
- BDFDB.myData = BDFDB.UserUtils.me;
- BDFDB.getUserStatus = BDFDB.UserUtils.getStatus;
- BDFDB.getUserStatusColor = BDFDB.UserUtils.getStatusColor;
- BDFDB.getUserAvatar = BDFDB.UserUtils.getAvatar;
- BDFDB.isUserAllowedTo = BDFDB.UserUtils.can;
-
- BDFDB.getGuildIcon = BDFDB.GuildUtils.getIcon;
- BDFDB.getGuildBanner = BDFDB.GuildUtils.getBanner;
- BDFDB.getServerDiv = BDFDB.GuildUtils.getDiv;
- BDFDB.getServerData = BDFDB.GuildUtils.getData;
- BDFDB.readServerList = BDFDB.GuildUtils.getAll;
- BDFDB.readUnreadServerList = BDFDB.GuildUtils.getUnread;
- BDFDB.readPingedServerList = BDFDB.GuildUtils.getPinged;
- BDFDB.readMutedServerList = BDFDB.GuildUtils.getMuted;
- BDFDB.getSelectedServer = BDFDB.GuildUtils.getSelected;
- BDFDB.openGuildContextMenu = BDFDB.GuildUtils.openMenu;
- BDFDB.markGuildAsRead = BDFDB.GuildUtils.markAsRead;
-
- BDFDB.getFolderID = BDFDB.FolderUtils.getId;
- BDFDB.getFolderDiv = BDFDB.FolderUtils.getDiv;
-
- BDFDB.getChannelDiv = BDFDB.ChannelUtils.getDiv;
- BDFDB.getSelectedChannel = BDFDB.ChannelUtils.getSelected;
- BDFDB.openChannelContextMenu = BDFDB.ChannelUtils.openMenu;
- BDFDB.markChannelAsRead = BDFDB.ChannelUtils.markAsRead;
-
- BDFDB.DmUtils = BDFDB.DMUtils;
- BDFDB.getDmDiv = BDFDB.DMUtils.getDiv;
- BDFDB.getChannelIcon = BDFDB.DMUtils.getIcon;
- BDFDB.readDmList = BDFDB.DMUtils.getAll;
-
- BDFDB.saveAllData = (data, plugin, key) => {BDFDB.DataUtils.save(data, plugin, key)};
- BDFDB.saveData = (id, data, plugin, key) => {BDFDB.DataUtils.save(data, plugin, key, id)};
- BDFDB.loadAllData = (plugin, key) => {return BDFDB.DataUtils.load(plugin, key)};
- BDFDB.loadData = (id, plugin, key) => {return BDFDB.DataUtils.load(plugin, key, id)};
- BDFDB.removeAllData = (plugin, key) => {BDFDB.DataUtils.remove(plugin, key)};
- BDFDB.removeData = (id, plugin, key) => {BDFDB.DataUtils.remove(plugin, key, id)};
- BDFDB.getAllData = (plugin, key) => {return BDFDB.DataUtils.get(plugin, key)};
- BDFDB.getData = (id, plugin, key) => {return BDFDB.DataUtils.get(plugin, key, id)};
-
- BDFDB.colorCONVERT = BDFDB.ColorUtils.convert;
- BDFDB.colorSETALPHA = BDFDB.ColorUtils.setAlpha;
- BDFDB.colorGETALPHA = BDFDB.ColorUtils.getAlpha;
- BDFDB.colorCHANGE = BDFDB.ColorUtils.change;
- BDFDB.colorINV = BDFDB.ColorUtils.invert;
- BDFDB.colorCOMPARE = BDFDB.ColorUtils.compare;
- BDFDB.colorISBRIGHT = BDFDB.ColorUtils.isBright;
- BDFDB.colorTYPE = BDFDB.ColorUtils.getType;
- BDFDB.colorGRADIENT = BDFDB.ColorUtils.createGradient;
- BDFDB.getSwatchColor = BDFDB.ColorUtils.getSwatchColor;
- BDFDB.openColorPicker = BDFDB.ColorUtils.openPicker;
-
- BDFDB.addClass = BDFDB.DOMUtils.addClass;
- BDFDB.removeClass = BDFDB.DOMUtils.removeClass;
- BDFDB.toggleClass = BDFDB.DOMUtils.toggleClass;
- BDFDB.containsClass = BDFDB.DOMUtils.containsClass;
- BDFDB.replaceClass = BDFDB.DOMUtils.replaceClass;
- BDFDB.removeClasses = BDFDB.DOMUtils.removeClassFromDOM;
- BDFDB.toggleEles = BDFDB.DOMUtils.toggle;
- BDFDB.isEleHidden = BDFDB.DOMUtils.isHidden;
- BDFDB.removeEles = BDFDB.DOMUtils.remove;
- BDFDB.htmlToElement = BDFDB.DOMUtils.create;
- BDFDB.getParentEle = BDFDB.DOMUtils.getParent;
- BDFDB.setInnerText = BDFDB.DOMUtils.setText;
- BDFDB.getInnerText = BDFDB.DOMUtils.getText;
- BDFDB.getRects = BDFDB.DOMUtils.getRects;
- BDFDB.getTotalHeight = BDFDB.DOMUtils.getHeight;
- BDFDB.getTotalWidth = BDFDB.DOMUtils.getWidth;
- BDFDB.appendLocalStyle = BDFDB.DOMUtils.appendLocalStyle;
- BDFDB.removeLocalStyle = BDFDB.DOMUtils.removeLocalStyle;
-
- BDFDB.encodeToHTML = BDFDB.StringUtils.htmlEscape;
- BDFDB.regEscape = BDFDB.StringUtils.regEscape;
- BDFDB.insertNRST = BDFDB.StringUtils.insertNRST;
- BDFDB.highlightText = BDFDB.StringUtils.highlight;
-
- BDFDB.formatBytes = BDFDB.NumberUtils.formatBytes;
- BDFDB.mapRange = BDFDB.NumberUtils.mapRange;
-
- BDFDB.getDiscordTheme = BDFDB.DiscordUtils.getTheme;
- BDFDB.getDiscordMode = BDFDB.DiscordUtils.getMode;
- BDFDB.getDiscordZoomFactor = BDFDB.DiscordUtils.getZoomFactor;
- BDFDB.getDiscordFontScale = BDFDB.DiscordUtils.getFontScale;
-
- BDFDB.openModal = BDFDB.ModalUtils.open;
- BDFDB.openConfirmModal = BDFDB.ModalUtils.confirm;
-
- BDFDB.openContextMenu = BDFDB.ContextMenuUtils.open;
- BDFDB.closeContextMenu = BDFDB.ContextMenuUtils.close;
-
- BDFDB.BdUtils = BDFDB.BDUtils;
- BDFDB.getPluginsFolder = BDFDB.BDUtils.getPluginsFolder;
- BDFDB.getThemesFolder = BDFDB.BDUtils.getThemesFolder;
- BDFDB.isPluginEnabled = BDFDB.BDUtils.isPluginEnabled;
- BDFDB.getPlugin = BDFDB.BDUtils.getPlugin;
- BDFDB.isThemeEnabled = BDFDB.BDUtils.isThemeEnabled;
- BDFDB.getTheme = BDFDB.BDUtils.getTheme;
- BDFDB.isRestartNoMoreEnabled = BDFDB.BDUtils.isAutoLoadEnabled;
-
- BDFDB.languages = BDFDB.LanguageUtils.languages;
- BDFDB.getDiscordLanguage = BDFDB.LanguageUtils.getLanguage;
- BDFDB.LanguageStrings = BDFDB.LanguageUtils.LanguageStrings;
- BDFDB.LanguageStringsCheck = BDFDB.LanguageUtils.LanguageStringsCheck;
- BDFDB.LanguageStringsFormat = BDFDB.LanguageUtils.LanguageStringsFormat;
- BDFDB.getLibraryStrings = _ => {
- let languageid = BDFDB.LanguageUtils.getLanguage().id;
- if (InternalBDFDB.LibraryStrings[languageid]) return InternalBDFDB.LibraryStrings[languageid];
- return InternalBDFDB.LibraryStrings.default;
- };
-
BDFDB.loaded = true;
-
window.BDFDB = BDFDB;
InternalBDFDB.reloadLib = _ => {
- var libraryScript = document.querySelector("head script#BDFDBLibraryScript");
+ let libraryScript = document.querySelector("head script#BDFDBLibraryScript");
if (libraryScript) libraryScript.remove();
libraryScript = document.createElement("script");
libraryScript.setAttribute("id", "BDFDBLibraryScript");
@@ -10450,7 +10047,7 @@
libraryScript.setAttribute("date", performance.now());
document.head.appendChild(libraryScript);
};
- var libKeys = Object.keys(BDFDB).length - 10, crashInterval = BDFDB.TimeUtils.interval(_ => {
+ let libKeys = Object.keys(BDFDB).length - 10, crashInterval = BDFDB.TimeUtils.interval(_ => {
if (!window.BDFDB || typeof BDFDB != "object" || Object.keys(BDFDB).length < libKeys || !BDFDB.InternalData.loadid) {
BDFDB.LogUtils.warn("Reloading library due to internal error.");
BDFDB.TimeUtils.clear(crashInterval);
diff --git a/Plugins/BDFDB.min.js b/Plugins/BDFDB.min.js
index 9b48ae32aa..b88ed507dd 100644
--- a/Plugins/BDFDB.min.js
+++ b/Plugins/BDFDB.min.js
@@ -1 +1 @@
-(c=>{if(window['BDFDB']&&window['BDFDB']['ListenerUtils']&&typeof window['BDFDB']['ListenerUtils']['remove']=='function')window['BDFDB']['ListenerUtils']['remove'](window['BDFDB']);if(window['BDFDB']&&window['BDFDB']['ObserverUtils']&&typeof window['BDFDB']['ObserverUtils']['disconnect']=='function')window['BDFDB']['ObserverUtils']['disconnect'](window['BDFDB']);if(window['BDFDB']&&window['BDFDB']['ModuleUtils']&&typeof window['BDFDB']['ModuleUtils']['unpatch']=='function')window['BDFDB']['ModuleUtils']['unpatch'](window['BDFDB']);if(window['BDFDB']&&window['BDFDB']['WindowUtils']&&typeof window['BDFDB']['WindowUtils']['closeAll']=='function')window['BDFDB']['WindowUtils']['closeAll'](window['BDFDB']);if(window['BDFDB']&&window['BDFDB']['WindowUtils']&&typeof window['BDFDB']['WindowUtils']['removeListener']=='function')window['BDFDB']['WindowUtils']['removeListener'](window['BDFDB']);var d={'myPlugins':Object['assign']({},window['BDFDB']&&window['BDFDB']['myPlugins']),'InternalData':Object['assign']({'pressedKeys':[],'mousePosition':{'pageX':0x0,'pageY':0x0},'componentPatchQueries':{}},window['BDFDB']&&window['BDFDB']['InternalData'],{'creationTime':performance['now']()}),'BDv2Api':window['BDFDB']&&window['BDFDB']['BDv2Api']||undefined,'name':'BDFDB'};var e=Math['round'](Math['random']()*0x2386f26fc10000),f={};d['InternalData']['loadid']=e;if(typeof Array['prototype']['flat']!='function')Array['prototype']['flat']=function(){return this;};f['defaults']={'settings':{'showToasts':{'value':!![],'description':'Show\x20Plugin\x20start\x20and\x20stop\x20Toasts'},'showSupportBadges':{'value':!![],'description':'Show\x20little\x20Badges\x20for\x20Users\x20who\x20support\x20my\x20Patreon'},'addSupportLinks':{'value':!![],'description':'Add\x20PayPal/Patreon\x20links\x20to\x20my\x20Plugin\x20Entries'}}};d['LogUtils']={};d['LogUtils']['log']=function(g,h){console['log']('%c['+(typeof h=='string'&&h||'BDFDB')+']','color:\x20#3a71c1;\x20font-weight:\x20700;',(typeof g=='string'&&g||'')['trim']());};d['LogUtils']['warn']=function(i,j){console['warn']('%c['+(typeof j=='string'&&j||'BDFDB')+']','color:\x20#3a71c1;\x20font-weight:\x20700;',(typeof i=='string'&&i||'')['trim']());};d['LogUtils']['error']=function(k,l){console['error']('%c['+(typeof l=='string'&&l||'BDFDB')+']','color:\x20#3a71c1;\x20font-weight:\x20700;','Fatal\x20Error:\x20'+(typeof k=='string'&&k||'')['trim']());};d['LogUtils']['log']('Loading\x20library.');d['PluginUtils']={};d['PluginUtils']['init']=function(m){m['name']=m['name']||(typeof m['getName']=='function'?m['getName']():null);m['version']=m['version']||(typeof m['getVersion']=='function'?m['getVersion']():null);m['author']=m['author']||(typeof m['getAuthor']=='function'?m['getAuthor']():null);m['description']=m['description']||(typeof m['getDescription']=='function'?m['getDescription']():null);if(m['patchModules']){m['patchedModules']={'after':m['patchModules']};delete m['patchModules'];}m['patchedModules']=d['ObjectUtils']['filter'](m['patchedModules'],n=>f7['Patchtypes']['includes'](n),!![]);f['clearStartTimeout'](m);let o=d['LanguageUtils']['LibraryStringsFormat']('toast_plugin_started','v'+m['version']);d['LogUtils']['log'](o,m['name']);if(!d['BDUtils']['getSettings']('fork-ps-2')&&d['DataUtils']['get'](d,'settings','showToasts'))d['NotificationUtils']['toast'](m['name']+'\x20'+o,{'nopointer':!![],'selector':'plugin-started-toast'});let p=typeof m['getRawUrl']=='function'&&typeof m['getRawUrl']()=='string'?m['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+m['name']+'/'+m['name']+'.plugin.js';d['PluginUtils']['checkUpdate'](m['name'],p);if(d['ObjectUtils']['is'](m['classes']))f['addPluginClasses'](m);if(typeof m['initConstructor']==='function')d['TimeUtils']['suppress'](m['initConstructor']['bind'](m),'Could\x20not\x20initiate\x20constructor!',m['name'])();if(typeof m['css']==='string')d['DOMUtils']['appendLocalStyle'](m['name'],m['css']);f['patchPlugin'](m);f['addSpecialListeners'](m);d['PluginUtils']['translate'](m);d['PluginUtils']['checkChangeLog'](m);if(!window['PluginUpdates']||typeof window['PluginUpdates']!=='object')window['PluginUpdates']={'plugins':{}};window['PluginUpdates']['plugins'][p]={'name':m['name'],'raw':p,'version':m['version']};if(typeof window['PluginUpdates']['interval']==='undefined')window['PluginUpdates']['interval']=d['TimeUtils']['interval'](c=>{d['PluginUtils']['checkAllUpdates']();},0x3e8*0x3c*0x3c*0x2);m['started']=!![];delete m['stopping'];for(let r in d['myPlugins'])if(!d['myPlugins'][r]['started']&&typeof d['myPlugins'][r]['initialize']=='function')setImmediate(c=>{d['TimeUtils']['suppress'](d['myPlugins'][r]['initialize']['bind'](d['myPlugins'][r]),'Could\x20not\x20initiate\x20plugin!',r)();});};d['PluginUtils']['clear']=function(t){f['clearStartTimeout'](t);delete d['myPlugins'][t['name']];let u=d['LanguageUtils']['LibraryStringsFormat']('toast_plugin_stopped','v'+t['version']);d['LogUtils']['log'](u,t['name']);if(!d['BDUtils']['getSettings']('fork-ps-2')&&d['DataUtils']['get'](d,'settings','showToasts'))d['NotificationUtils']['toast'](t['name']+'\x20'+u,{'nopointer':!![],'selector':'plugin-stopped-toast'});let v=typeof t['getRawUrl']=='function'&&typeof t['getRawUrl']()=='string'?t['getRawUrl']():'https://mwittrien.github.io/BetterDiscordAddons/Plugins/'+t['name']+'/'+t['name']+'.plugin.js';if(d['ObjectUtils']['is'](t['classes']))f['removePluginClasses'](t);if(typeof t['css']==='string')d['DOMUtils']['removeLocalStyle'](t['name']);d['ModuleUtils']['unpatch'](t);d['ListenerUtils']['remove'](t);d['ObserverUtils']['disconnect'](t);d['WindowUtils']['closeAll'](t);d['WindowUtils']['removeListener'](t);for(let w in d['InternalData']['componentPatchQueries'])d['ArrayUtils']['remove'](d['InternalData']['componentPatchQueries'][w]['query'],t,!![]);for(let x of document['querySelectorAll']('.'+t['name']+'-modal,\x20.'+t['name']['toLowerCase']()+'-modal,\x20.'+t['name']+'-settingsmodal,\x20.'+t['name']['toLowerCase']()+'-settingsmodal')){let y=x['querySelector'](d['dotCN']['modalclose']);if(y)y['click']();}delete d['DataUtils']['cached'][t['name']];delete window['PluginUpdates']['plugins'][v];delete t['started'];d['TimeUtils']['timeout'](c=>{delete t['stopping'];});};d['PluginUtils']['translate']=function(A){A['labels']={};if(typeof A['setLabelsByLanguage']==='function'||typeof A['changeLanguageStrings']==='function'){if(document['querySelector']('html')['lang'])D();else{var B=d['TimeUtils']['interval'](c=>{if(document['querySelector']('html')['lang']){d['TimeUtils']['clear'](B);D();}},0x64);}function D(){var E=d['LanguageUtils']['getLanguage']();if(typeof A['setLabelsByLanguage']==='function')A['labels']=A['setLabelsByLanguage'](E['id']);if(typeof A['changeLanguageStrings']==='function')A['changeLanguageStrings']();d['LogUtils']['log'](d['LanguageUtils']['LibraryStringsFormat']('toast_plugin_translated',E['ownlang']),A['name']);}}};d['PluginUtils']['checkUpdate']=function(F,G){if(d['BDUtils']['isBDv2']()||!F||!G)return;ia['request'](G,(H,I,J)=>{if(H)return;var K=J['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);if(!K)return;if(d['NumberUtils']['getVersionDifference'](K[0x0],window['PluginUpdates']['plugins'][G]['version'])>0.2){d['NotificationUtils']['toast'](F+'\x20will\x20be\x20force\x20updated,\x20because\x20your\x20version\x20is\x20heavily\x20outdated.',{'type':'warn','nopointer':!![],'selector':'plugin-forceupdate-toast'});d['PluginUtils']['downloadUpdate'](F,G);}else if(d['NumberUtils']['compareVersions'](K[0x0],window['PluginUpdates']['plugins'][G]['version']))d['PluginUtils']['showUpdateNotice'](F,G);else d['PluginUtils']['removeUpdateNotice'](F);});};d['PluginUtils']['checkAllUpdates']=function(){for(let L in window['PluginUpdates']['plugins']){var M=window['PluginUpdates']['plugins'][L];d['PluginUtils']['checkUpdate'](M['name'],M['raw']);}};d['PluginUtils']['showUpdateNotice']=function(N,O){if(!N||!O)return;var P=document['querySelector']('#pluginNotice');if(!P){P=d['NotificationUtils']['notice']('The\x20following\x20plugins\x20need\x20to\x20be\x20updated: ',{'html':!![],'id':'pluginNotice','type':'info','btn':!d['BDUtils']['isAutoLoadEnabled']()?'Reload':'','customicon':''});P['style']['setProperty']('display','block','important');P['style']['setProperty']('visibility','visible','important');P['style']['setProperty']('opacity','1','important');P['querySelector'](d['dotCN']['noticedismiss'])['addEventListener']('click',c=>{d['DOMUtils']['remove']('.update-clickme-tooltip');});let R=P['querySelector'](d['dotCN']['noticebutton']);if(R){d['DOMUtils']['toggle'](R,!![]);R['addEventListener']('click',c=>{ia['electron']['remote']['getCurrentWindow']()['reload']();});R['addEventListener']('mouseenter',c=>{if(window['PluginUpdates']['downloaded'])d['TooltipUtils']['create'](R,window['PluginUpdates']['downloaded']['join'](',\x20'),{'type':'bottom','selector':'update-notice-tooltip','style':'max-width:\x20420px'});});}}if(P){var U=P['querySelector']('#outdatedPlugins');if(U&&!U['querySelector']('#'+N+'-notice')){if(U['querySelector']('span'))U['appendChild'](d['DOMUtils']['create'](',\x20'));var V=d['DOMUtils']['create'](''+N+'');V['addEventListener']('click',c=>{d['PluginUtils']['downloadUpdate'](N,O);});U['appendChild'](V);if(!document['querySelector']('.update-clickme-tooltip'))d['TooltipUtils']['create'](U,'Click\x20us!',{'type':'bottom','selector':'update-clickme-tooltip','delay':0x1f4});}}};d['PluginUtils']['removeUpdateNotice']=function(X,Y=document['querySelector']('#pluginNotice')){if(!X||!Y)return;var Z=Y['querySelector']('#outdatedPlugins');if(Z){var a0=Z['querySelector']('#'+X+'-notice');if(a0){var a1=a0['nextSibling'];var a2=a0['prevSibling'];if(a1&&d['DOMUtils']['containsClass'](a1,'separator'))a1['remove']();else if(a2&&d['DOMUtils']['containsClass'](a2,'separator'))a2['remove']();a0['remove']();}if(!Z['querySelector']('span')){var a3=Y['querySelector'](d['dotCN']['noticebutton']);if(a3){Y['querySelector']('.notice-message')['innerText']='To\x20finish\x20updating\x20you\x20need\x20to\x20reload.';d['DOMUtils']['toggle'](a3,![]);}else Y['querySelector'](d['dotCN']['noticedismiss'])['click']();}}};d['PluginUtils']['downloadUpdate']=function(a4,a5){if(!a4||!a5)return;ia['request'](a5,(a6,a7,a8)=>{if(a6)return d['LogUtils']['warn']('Unable\x20to\x20get\x20update\x20for\x20'+a4);d['InternalData']['creationTime']=0x0;var a9=a8['match'](/['"][0-9]+\.[0-9]+\.[0-9]+['"]/i);a9=a9['toString']()['replace'](/['"]/g,'');ia['fs']['writeFileSync'](ia['path']['join'](d['BDUtils']['getPluginsFolder'](),a5['split']('/')['slice'](-0x1)[0x0]),a8);d['NotificationUtils']['toast'](a4+'\x20v'+window['PluginUpdates']['plugins'][a5]['version']+'\x20has\x20been\x20replaced\x20by\x20'+a4+'\x20v'+a9+'.',{'nopointer':!![],'selector':'plugin-updated-toast'});var aa=document['querySelector']('#pluginNotice');if(aa){if(aa['querySelector'](d['dotCN']['noticebutton'])){window['PluginUpdates']['plugins'][a5]['version']=a9;if(!window['PluginUpdates']['downloaded'])window['PluginUpdates']['downloaded']=[];if(!window['PluginUpdates']['downloaded']['includes'](a4))window['PluginUpdates']['downloaded']['push'](a4);}d['PluginUtils']['removeUpdateNotice'](a4,aa);}});};d['PluginUtils']['checkChangeLog']=function(ab){if(!d['ObjectUtils']['is'](ab)||!ab['changelog'])return;var ac=d['DataUtils']['load'](ab,'changelog');if(!ac['currentversion']||d['NumberUtils']['compareVersions'](ab['version'],ac['currentversion'])){ac['currentversion']=ab['version'];d['DataUtils']['save'](ac,ab,'changelog');d['PluginUtils']['openChangeLog'](ab);}};d['PluginUtils']['openChangeLog']=function(ad){if(!d['ObjectUtils']['is'](ad)||!ad['changelog'])return;var ae='',af={'added':'New\x20Features','fixed':'Bug\x20Fixes','improved':'Improvements','progress':'Progress'};for(let ag in ad['changelog']){ag=ag['toLowerCase']();var ah=d['disCN']['changelog'+ag];if(ah){ae+=''+af[ag]+'
';for(let ai of ad['changelog'][ag])ae+='- '+ai[0x0]+''+(ai[0x1]?':\x20'+ai[0x1]+'.':'')+'
';ae+='
';}}if(ae)d['ModalUtils']['open'](ad,{'header':ad['name']+'\x20'+d['LanguageUtils']['LanguageStrings']['CHANGE_LOG'],'subheader':'Version\x20'+ad['version'],'children':d['ReactUtils']['elementToReact'](d['DOMUtils']['create'](ae)),'className':d['disCN']['modalchangelogmodal'],'contentClassName':d['disCNS']['changelogcontainer']+d['disCN']['modalminicontent']});};d['PluginUtils']['addLoadingIcon']=function(aj){if(!Node['prototype']['isPrototypeOf'](aj))return;d['DOMUtils']['addClass'](aj,d['disCN']['loadingicon']);let ak=document['querySelector'](d['dotCN']['app']+'>'+d['dotCN']['loadingiconwrapper']);if(!ak){ak=d['DOMUtils']['create']('');document['querySelector'](d['dotCN']['app'])['appendChild'](ak);let al=new MutationObserver(am=>{if(!ak['firstElementChild'])d['DOMUtils']['remove'](ak);});al['observe'](ak,{'childList':!![]});}ak['appendChild'](aj);};d['PluginUtils']['createSettingsPanel']=function(an,ao){if(!d['ObjectUtils']['is'](an)||!ao||!d['ReactUtils']['isValidElement'](ao)&&!d['ArrayUtils']['is'](ao)||d['ArrayUtils']['is'](ao)&&!ao['length'])return;let ap=d['DOMUtils']['create']('');d['ReactUtils']['render'](d['ReactUtils']['createElement'](Ah['LibraryComponents']['SettingsPanel'],{'key':an['name']+'-settingspanel','title':an['name'],'children':ao}),ap);return ap;};d['PluginUtils']['refreshSettingsPanel']=function(aq,ar,...as){if(!d['ObjectUtils']['is'](aq)||typeof aq['getSettingsPanel']!='function'||!Node['prototype']['isPrototypeOf'](ar)||!ar['parentElement'])return;ar['parentElement']['appendChild'](aq['getSettingsPanel'](...as));ar['remove']();};f['clearStartTimeout']=function(at){if(!d['ObjectUtils']['is'](at))return;d['TimeUtils']['clear'](at['startTimeout'],at['libLoadTimeout']);delete at['startTimeout'];delete at['libLoadTimeout'];};f['addSpecialListeners']=function(au){if(d['ObjectUtils']['is'](au)){if(typeof au['onSettingsClosed']==='function'){let av=d['ModuleUtils']['findByName']('StandardSidebarView');if(av)d['ModuleUtils']['patch'](au,av['prototype'],'componentWillUnmount',{'after':aw=>{au['onSettingsClosed']();}});}if(typeof au['onSwitch']==='function'){let ax=document['querySelector'](d['dotCN']['guildswrapper']+'\x20~\x20*\x20>\x20'+d['dotCN']['chatspacer']);if(ax){let ay=new MutationObserver(az=>{az['forEach'](aA=>{if(aA['target']&&d['DOMUtils']['containsClass'](aA['target'],d['disCN']['nochannel']))au['onSwitch']();});});d['ObserverUtils']['connect'](au,ax['querySelector'](d['dotCNC']['chat']+d['dotCN']['nochannel']),{'name':'switchFixNoChannelObserver','instance':ay},{'attributes':!![]});let aB=new MutationObserver(aC=>{aC['forEach'](aD=>{if(aD['addedNodes']){aD['addedNodes']['forEach'](aE=>{if(d['DOMUtils']['containsClass'](aE,d['disCN']['chat'],d['disCN']['nochannel'],![])){d['ObserverUtils']['connect'](au,aE,{'name':'switchFixNoChannelObserver','instance':ay},{'attributes':!![]});}});}});});d['ObserverUtils']['connect'](au,ax,{'name':'switchFixSpacerObserver','instance':aB},{'childList':!![]});}}f['addContextListeners'](au);}};d['ObserverUtils']={};d['ObserverUtils']['connect']=function(aF,aG,aH,aI={'childList':!![]}){if(!d['ObjectUtils']['is'](aF)||!aG||!aH)return;if(d['ObjectUtils']['isEmpty'](aF['observers']))aF['observers']={};if(!d['ArrayUtils']['is'](aF['observers'][aH['name']]))aF['observers'][aH['name']]=[];if(!aH['multi'])for(let aJ of aF['observers'][aH['name']])aJ['disconnect']();if(aH['instance'])aF['observers'][aH['name']]['push'](aH['instance']);var aK=aF['observers'][aH['name']][aF['observers'][aH['name']]['length']-0x1];if(aK){var aL=Node['prototype']['isPrototypeOf'](aG)?aG:typeof aG==='string'?document['querySelector'](aG):null;if(aL)aK['observe'](aL,aI);}};d['ObserverUtils']['disconnect']=function(aM,aN){if(d['ObjectUtils']['is'](aM)&&!d['ObjectUtils']['isEmpty'](aM['observers'])){let aO=typeof aN=='string'?aN:d['ObjectUtils']['is'](aN)?aN['name']:null;if(!aO){for(let aN in aM['observers'])for(let aQ of aM['observers'][aN])aQ['disconnect']();delete aM['observers'];}else if(!d['ArrayUtils']['is'](aM['observers'][aO])){for(let aR of aM['observers'][aO])aR['disconnect']();delete aM['observers'][aO];}}};d['ListenerUtils']={};d['ListenerUtils']['add']=function(aS,aT,aU,aV,aW){if(!d['ObjectUtils']['is'](aS)||!Node['prototype']['isPrototypeOf'](aT)&&aT!==window||!aU)return;var aX=typeof aV=='function';var aY=aX?undefined:aV;var aZ=aX?aV:aW;if(typeof aZ!='function')return;d['ListenerUtils']['remove'](aS,aT,aU,aY);for(var b0 of aU['split']('\x20')){b0=b0['split']('.');var b1=b0['shift']()['toLowerCase']();if(!b1)return;var b2=b1;b1=b1=='mouseenter'||b1=='mouseleave'?'mouseover':b1;var b3=(b0['join']('.')||'')+aS['name'];if(!d['ArrayUtils']['is'](aS['listeners']))aS['listeners']=[];var b4=null;if(aY){if(b2=='mouseenter'||b2=='mouseleave'){b4=b5=>{for(let b6 of b5['path'])if(typeof b6['matches']=='function'&&b6['matches'](aY)&&!b6[b3+'BDFDB'+b2]){b6[b3+'BDFDB'+b2]=!![];if(b2=='mouseenter')aZ(d['ListenerUtils']['copyEvent'](b5,b6));let b7=b8=>{if(b8['target']['contains'](b6)||b8['target']==b6||!b6['contains'](b8['target'])){if(b2=='mouseleave')aZ(d['ListenerUtils']['copyEvent'](b5,b6));delete b6[b3+'BDFDB'+b2];document['removeEventListener']('mouseout',b7);}};document['addEventListener']('mouseout',b7);break;}};}else{b4=b9=>{for(let ba of b9['path'])if(typeof ba['matches']=='function'&&ba['matches'](aY)){aZ(d['ListenerUtils']['copyEvent'](b9,ba));break;}};}}else b4=bb=>{aZ(d['ListenerUtils']['copyEvent'](bb,aT));};aS['listeners']['push']({'ele':aT,'eventname':b1,'origeventname':b2,'namespace':b3,'selector':aY,'eventcallback':b4});aT['addEventListener'](b1,b4,!![]);}};d['ListenerUtils']['remove']=function(bc,bd,be='',bf){if(!d['ObjectUtils']['is'](bc)||!d['ArrayUtils']['is'](bc['listeners']))return;if(Node['prototype']['isPrototypeOf'](bd)||bd===window){for(var bg of be['split']('\x20')){bg=bg['split']('.');var bh=bg['shift']()['toLowerCase']();var bi=(bg['join']('.')||'')+bc['name'];for(let bj of bc['listeners']){let bk=[];if(bj['ele']==bd&&(!bh||bj['origeventname']==bh)&&bj['namespace']==bi&&(bf===undefined||bj['selector']==bf)){bd['removeEventListener'](bj['eventname'],bj['eventcallback'],!![]);bk['push'](bj);}if(bk['length'])bc['listeners']=bc['listeners']['filter'](bj=>{return bk['indexOf'](bj)<0x0;});}}}else if(!bd){for(let bm of bc['listeners'])bm['ele']['removeEventListener'](bm['eventname'],bm['eventcallback'],!![]);bc['listeners']=[];}};d['ListenerUtils']['multiAdd']=function(bn,bo,bp){if(!Node['prototype']['isPrototypeOf'](bn)||!bo||typeof bp!='function')return;for(var bq of bo['trim']()['split']('\x20')['filter'](br=>br))bn['addEventListener'](bq,bp,!![]);};d['ListenerUtils']['multiRemove']=function(bs,bt,bu){if(!Node['prototype']['isPrototypeOf'](bs)||!bt||typeof bu!='function')return;for(var bv of bt['trim']()['split']('\x20')['filter'](bw=>bw))bs['removeEventListener'](bv,bu,!![]);};d['ListenerUtils']['addToChildren']=function(bx,by,bz,bA){if(!Node['prototype']['isPrototypeOf'](bx)||!by||!bz||!bz['trim']()||typeof bA!='function')return;for(var bB of by['trim']()['split']('\x20')['filter'](bC=>bC)){var bD=bA;if(bB=='mouseenter'||bB=='mouseleave')bD=bE=>{if(bE['target']['matches'](bz))bA(bE);};bx['querySelectorAll'](bz['trim']())['forEach'](bF=>{bF['addEventListener'](bB,bD,!![]);});}};d['ListenerUtils']['copyEvent']=function(bG,bH){if(!bG||!bG['constructor']||!bG['type'])return bG;var bI=new bG['constructor'](bG['type'],bG);Object['defineProperty'](bI,'originalEvent',{'value':bG});Object['defineProperty'](bI,'which',{'value':bG['which']});Object['defineProperty'](bI,'keyCode',{'value':bG['keyCode']});Object['defineProperty'](bI,'path',{'value':bG['path']});Object['defineProperty'](bI,'relatedTarget',{'value':bG['relatedTarget']});Object['defineProperty'](bI,'srcElement',{'value':bG['srcElement']});Object['defineProperty'](bI,'target',{'value':bG['target']});Object['defineProperty'](bI,'toElement',{'value':bG['toElement']});if(bH)Object['defineProperty'](bI,'currentTarget',{'value':bH});return bI;};d['ListenerUtils']['stopEvent']=function(bJ){if(d['ObjectUtils']['is'](bJ)){if(typeof bJ['preventDefault']=='function')bJ['preventDefault']();if(typeof bJ['stopPropagation']=='function')bJ['stopPropagation']();if(typeof bJ['stopImmediatePropagation']=='function')bJ['stopImmediatePropagation']();if(d['ObjectUtils']['is'](bJ['originalEvent'])){if(typeof bJ['originalEvent']['preventDefault']=='function')bJ['originalEvent']['preventDefault']();if(typeof bJ['originalEvent']['stopPropagation']=='function')bJ['originalEvent']['stopPropagation']();if(typeof bJ['originalEvent']['stopImmediatePropagation']=='function')bJ['originalEvent']['stopImmediatePropagation']();}}};var bK=[],bL={'queue':[],'running':![]};d['NotificationUtils']={};d['NotificationUtils']['toast']=function(bM,bN={}){let bO=document['querySelector']('.toasts,\x20.bd-toasts');if(!bO){let bP=document['querySelector'](d['dotCN']['channels']+'\x20+\x20div');let bQ=bP?d['DOMUtils']['getRects'](bP):null;let bR=bP?bP['querySelector'](d['dotCN']['memberswrap']):null;let bS=bQ?bQ['left']:0x136;let bT=bQ?bR?bQ['width']-d['DOMUtils']['getRects'](bR)['width']:bQ['width']:window['outerWidth']-0x0;let bU=bP?bP['querySelector']('form'):null;let bV=bU?d['DOMUtils']['getRects'](bU)['height']:0x50;bO=d['DOMUtils']['create']('');(document['querySelector'](d['dotCN']['app'])||document['body'])['appendChild'](bO);}const {type='',icon=!![],timeout=0xbb8,html=![],selector='',nopointer=![],color=''}=bN;let bW=d['DOMUtils']['create'](''+(html===!![]?bM:d['StringUtils']['htmlEscape'](bM))+'
');if(type){d['DOMUtils']['addClass'](bW,'toast-'+type);if(icon)d['DOMUtils']['addClass'](bW,'icon');}else if(color){let bX=d['ColorUtils']['convert'](color,'RGB');if(bX)bW['style']['setProperty']('background-color',bX);}d['DOMUtils']['addClass'](bW,selector);bO['appendChild'](bW);bW['close']=c=>{if(document['contains'](bW)){d['DOMUtils']['addClass'](bW,'closing');bW['style']['setProperty']('pointer-events','none','important');d['TimeUtils']['timeout'](c=>{bW['remove']();if(!bO['querySelectorAll']('.toast,\x20.bd-toast')['length'])bO['remove']();},0xbb8);}};if(nopointer)bW['style']['setProperty']('pointer-events','none','important');else bW['addEventListener']('click',bW['close']);d['TimeUtils']['timeout'](c=>{bW['close']();},timeout>0x0?timeout:0x927c0);return bW;};d['NotificationUtils']['desktop']=function(c1,c2={}){var c3=c=>{bL['queue']['push']({'parsedcontent':c1,'parsedoptions':c2});c5();};var c5=c=>{if(!bL['running']){var c7=bL['queue']['shift']();if(c7)c8(c7['parsedcontent'],c7['parsedoptions']);}};var c8=(c9,ca)=>{bL['running']=!![];var cb=ca['silent'];ca['silent']=ca['silent']||ca['sound']?!![]:![];var cc=new Notification(c9,ca);var cd=new Audio();var ce=d['TimeUtils']['timeout'](c=>{ch();},ca['timeout']?ca['timeout']:0xbb8);if(typeof ca['click']=='function')cc['onclick']=c=>{d['TimeUtils']['clear'](ce);ch();ca['click']();};if(!cb&&ca['sound']){cd['src']=ca['sound'];cd['play']();}var ch=c=>{cd['pause']();cc['close']();bL['running']=![];d['TimeUtils']['timeout'](c=>{c5();},0x3e8);};};if(!('Notification'in window)){}else if(Notification['permission']==='granted')c3();else if(Notification['permission']!=='denied')Notification['requestPermission'](function(ck){if(ck==='granted')c3();});};d['NotificationUtils']['notice']=function(cl,cm={}){if(!cl)return;var cn=document['querySelector'](d['dotCN']['layers']);if(!cn)return;var co=d['NumberUtils']['generateId'](bK);var cp=d['DOMUtils']['create']('');cn['parentElement']['insertBefore'](cp,cn);var cq=cp['querySelector']('.notice-message');if(cm['platform'])for(let cr of cm['platform']['split']('\x20'))if(zl['noticeicon'+cr]){let cs=d['DOMUtils']['create']('');d['DOMUtils']['addClass'](cs,d['disCN']['noticeplatformicon']);d['DOMUtils']['removeClass'](cs,d['disCN']['noticeicon']);cp['insertBefore'](cs,cq);}if(cm['customicon']){let ct=d['DOMUtils']['create'](cm['customicon']);let cs=d['DOMUtils']['create']('');if(ct['tagName']=='span'&&!ct['firstElementChild'])cs['style']['setProperty']('background','url('+cm['customicon']+')\x20center/cover\x20no-repeat');else cs['appendChild'](ct);d['DOMUtils']['addClass'](cs,d['disCN']['noticeplatformicon']);d['DOMUtils']['removeClass'](cs,d['disCN']['noticeicon']);cp['insertBefore'](cs,cq);}if(cm['btn']||cm['button'])cp['appendChild'](d['DOMUtils']['create'](''));if(cm['id'])cp['id']=cm['id']['split']('\x20')['join']('');if(cm['selector'])d['DOMUtils']['addClass'](cp,cm['selector']);if(cm['css'])d['DOMUtils']['appendLocalStyle']('BDFDBcustomnotificationbar'+co,cm['css']);if(cm['style'])cp['style']=cm['style'];if(cm['html']===!![])cq['innerHTML']=cl;else{var cv=document['createElement']('a');var cw=[];for(let cx of cl['split']('\x20')){var cy=d['StringUtils']['htmlEscape'](cx);cv['href']=cx;cw['push'](cv['host']&&cv['host']!==window['location']['host']?'':cy);}cq['innerHTML']=cw['join']('\x20');}var cz=null;if(cm['type']&&!document['querySelector'](d['dotCNS']['chatbase']+d['dotCN']['noticestreamer'])){if(cz=d['disCN']['notice'+cm['type']])d['DOMUtils']['addClass'](cp,cz);if(cm['type']=='premium'){var cA=cp['querySelector'](d['dotCN']['noticebutton']);if(cA)d['DOMUtils']['addClass'](cA,d['disCN']['noticepremiumaction']);d['DOMUtils']['addClass'](cq,d['disCN']['noticepremiumtext']);cp['insertBefore'](d['DOMUtils']['create'](''),cq);}}if(!cz){var cB=d['ColorUtils']['convert'](cm['color'],'RGBCOMP');if(cB){var cC=cB[0x0]>0xb4&&cB[0x1]>0xb4&&cB[0x2]>0xb4?'#000':'#FFF';var cD=d['ColorUtils']['convert'](cB,'HEX');var cE=cB[0x0]>0xb4&&cB[0x1]>0xb4&&cB[0x2]>0xb4?'brightness(0%)':'brightness(100%)';d['DOMUtils']['appendLocalStyle']('BDFDBcustomnotificationbarColorCorrection'+co,d['dotCN']['noticewrapper']+'[notice-id=\x22'+co+'\x22]{background-color:'+cD+'\x20!important;}'+d['dotCN']['noticewrapper']+'[notice-id=\x22'+co+'\x22]\x20.notice-message\x20{color:'+cC+'\x20!important;}'+d['dotCN']['noticewrapper']+'[notice-id=\x22'+co+'\x22]\x20'+d['dotCN']['noticebutton']+'\x20{color:'+cC+'\x20!important;border-color:'+d['ColorUtils']['setAlpha'](cC,0.25,'RGBA')+'\x20!important;}'+d['dotCN']['noticewrapper']+'[notice-id=\x22'+co+'\x22]\x20'+d['dotCN']['noticebutton']+':hover\x20{color:'+cD+'\x20!important;background-color:'+cC+'\x20!important;}'+d['dotCN']['noticewrapper']+'[notice-id=\x22'+co+'\x22]\x20'+d['dotCN']['noticedismiss']+'\x20{filter:'+cE+'\x20!important;}');}else d['DOMUtils']['addClass'](cp,d['disCN']['noticedefault']);}cp['style']['setProperty']('height','36px','important');cp['style']['setProperty']('min-width','70vw','important');cp['style']['setProperty']('left','unset','important');cp['style']['setProperty']('right','unset','important');let cF=(d['DOMUtils']['getWidth'](document['body']['firstElementChild'])-d['DOMUtils']['getWidth'](cp))/0x2;cp['style']['setProperty']('left',cF+'px','important');cp['style']['setProperty']('right',cF+'px','important');cp['style']['setProperty']('min-width','unset','important');cp['style']['setProperty']('width','unset','important');cp['style']['setProperty']('max-width','calc(100vw\x20-\x20'+cF*0x2+'px)','important');cp['querySelector'](d['dotCN']['noticedismiss'])['addEventListener']('click',c=>{cp['style']['setProperty']('overflow','hidden','important');cp['style']['setProperty']('height','0px','important');d['TimeUtils']['timeout'](c=>{d['ArrayUtils']['remove'](bK,co);d['DOMUtils']['removeLocalStyle']('BDFDBcustomnotificationbar'+co);d['DOMUtils']['removeLocalStyle']('BDFDBcustomnotificationbarColorCorrection'+co);cp['remove']();},0x1f4);});return cp;};d['NotificationUtils']['alert']=function(cI,cJ){if(typeof cI=='string'&&typeof cI=='string'&&window['BdApi']&&typeof BdApi['alert']=='function')BdApi['alert'](cI,cJ);};var cK=[];d['TooltipUtils']={};d['TooltipUtils']['create']=function(cL,cM,cN={}){var cO=document['querySelector'](d['dotCN']['appmount']+'\x20>\x20*\x20>\x20'+d['dotCN']['itemlayercontainer']);if(!cO||typeof cM!='string'&&!d['ObjectUtils']['is'](cN['guild'])||!Node['prototype']['isPrototypeOf'](cL)||!document['contains'](cL))return null;var cP=d['NumberUtils']['generateId'](cK);var cQ=d['DOMUtils']['create']('');cO['appendChild'](cQ);var cR=cQ['firstElementChild'];if(cN['id'])cR['id']=cN['id']['split']('\x20')['join']('');if(!cN['type']||!d['disCN']['tooltip'+cN['type']['toLowerCase']()])cN['type']='top';d['DOMUtils']['addClass'](cR,d['disCN']['tooltip'+cN['type']['toLowerCase']()]);cR['type']=cN['type']['toLowerCase']();let cS=![],cT=![],cU='';if(cN['style'])cU+=cN['style'];if(cN['fontColor']){cS=d['ObjectUtils']['is'](cN['fontColor']);if(!cS)cU=(cU?cU+'\x20':'')+('color:\x20'+d['ColorUtils']['convert'](cN['fontColor'],'RGBA')+'\x20!important;');}if(cN['backgroundColor']){cT=!![];let cV=d['ObjectUtils']['is'](cN['backgroundColor']);let cW=!cV?d['ColorUtils']['convert'](cN['backgroundColor'],'RGBA'):d['ColorUtils']['createGradient'](cN['backgroundColor']);cU=(cU?cU+'\x20':'')+('background:\x20'+cW+'\x20!important;\x20border-color:\x20'+(cV?d['ColorUtils']['convert'](cN['backgroundColor'][cN['type']=='left'?0x64:0x0],'RGBA'):cW)+'\x20!important;');}if(cU)cR['style']=cU;if(cT)d['DOMUtils']['addClass'](cR,d['disCN']['tooltipcustom']);else if(cN['color']&&d['disCN']['tooltip'+cN['color']['toLowerCase']()])d['DOMUtils']['addClass'](cR,d['disCN']['tooltip'+cN['color']['toLowerCase']()]);else d['DOMUtils']['addClass'](cR,d['disCN']['tooltipblack']);if(cN['list']||d['ObjectUtils']['is'](cN['guild']))d['DOMUtils']['addClass'](cR,d['disCN']['tooltiplistitem']);if(cN['selector'])d['DOMUtils']['addClass'](cR,cN['selector']);if(d['ObjectUtils']['is'](cN['guild'])){let cX=id['StreamUtils']['getAllApplicationStreams']()['filter'](cY=>cY['guildId']===cN['guild']['id'])['map'](cZ=>cZ['ownerId']);let d0=cX['map'](d1=>id['UserStore']['getUser'](d1))['filter'](d2=>d2);let d3=Object['keys'](id['VoiceUtils']['getVoiceStates'](cN['guild']['id']))['map'](d4=>!cX['includes'](d4)&&d['LibraryModules']['UserStore']['getUser'](d4))['filter'](d5=>d5);let d6=cM||cN['guild']['toString']();if(cS)d6=''+d['StringUtils']['htmlEscape'](d6)+'';d['ReactUtils']['render'](d['ReactUtils']['createElement'](d['ReactUtils']['Fragment'],{'children':[d['ReactUtils']['createElement']('div',{'className':d['DOMUtils']['formatClassName'](d['disCN']['tooltiprow'],d['disCN']['tooltiprowguildname']),'children':[d['ReactUtils']['createElement'](Ah['LibraryComponents']['GuildComponents']['Badge'],{'guild':cN['guild'],'size':id['StringUtils']['cssValueToNumber'](za['TooltipGuild']['iconSize']),'className':d['disCN']['tooltiprowicon']}),d['ReactUtils']['createElement']('span',{'className':d['DOMUtils']['formatClassName'](d['disCN']['tooltipguildnametext'],(d3['length']||d0['length'])&&d['disCN']['tooltipguildnametextlimitedsize']),'children':cS||cN['html']?d['ReactUtils']['elementToReact'](d['DOMUtils']['create'](d6)):d6})]}),d3['length']?d['ReactUtils']['createElement']('div',{'className':d['disCN']['tooltiprow'],'children':[d['ReactUtils']['createElement'](Ah['LibraryComponents']['SvgIcon'],{'name':Ah['LibraryComponents']['SvgIcon']['Names']['SPEAKER'],'className':d['disCN']['tooltipactivityicon']}),d['ReactUtils']['createElement'](Ah['LibraryComponents']['UserSummaryItem'],{'users':d3,'max':0x6})]}):null,d0['length']?d['ReactUtils']['createElement']('div',{'className':d['disCN']['tooltiprow'],'children':[d['ReactUtils']['createElement'](Ah['LibraryComponents']['SvgIcon'],{'name':Ah['LibraryComponents']['SvgIcon']['Names']['STREAM'],'className':d['disCN']['tooltipactivityicon']}),d['ReactUtils']['createElement'](Ah['LibraryComponents']['UserSummaryItem'],{'users':d0,'max':0x6})]}):null]['filter'](d7=>d7)}),cR);}else{if(cS)cR['innerHTML']=''+d['StringUtils']['htmlEscape'](cM)+'';else if(cN['html']===!![])cR['innerHTML']=cM;else cR['innerText']=cM;}cR['appendChild'](d['DOMUtils']['create'](''));cR['anker']=cL;if(cN['hide'])d['DOMUtils']['appendLocalStyle']('BDFDBhideOtherTooltips'+cP,'#app-mount\x20'+d['dotCN']['tooltip']+':not([tooltip-id=\x22'+cP+'\x22])\x20{display:\x20none\x20!important;}',cO);let d8=c=>{d['DOMUtils']['remove'](cQ);};cL['addEventListener']('mouseleave',d8);let da=new MutationObserver(db=>db['forEach'](dc=>{let dd=Array['from'](dc['removedNodes']);if(dd['indexOf'](cQ)>-0x1||dd['indexOf'](cL)>-0x1||dd['some'](de=>de['contains'](cL))){d['ArrayUtils']['remove'](cK,cP);da['disconnect']();d['DOMUtils']['remove'](cQ);d['DOMUtils']['removeLocalStyle']('BDFDBhideOtherTooltips'+cP,cO);cL['removeEventListener']('mouseleave',d8);}}));da['observe'](document['body'],{'subtree':!![],'childList':!![]});d['TooltipUtils']['update'](cR);if(cN['delay']){d['DOMUtils']['toggle'](cQ);d['TimeUtils']['timeout'](c=>{d['DOMUtils']['toggle'](cQ);},cN['delay']);}return cQ;};d['TooltipUtils']['update']=function(dg){if(!Node['prototype']['isPrototypeOf'](dg))return;let dh=d['DOMUtils']['getParent'](d['dotCN']['itemlayer'],dg);if(!Node['prototype']['isPrototypeOf'](dh))return;dg=dh['querySelector'](d['dotCN']['tooltip']);if(!Node['prototype']['isPrototypeOf'](dg)||!Node['prototype']['isPrototypeOf'](dg['anker'])||!dg['type'])return;var di=dg['querySelector'](d['dotCN']['tooltippointer']);var dj,dk,dl=d['DOMUtils']['getRects'](dg['anker']),dm=d['DOMUtils']['getRects'](dh),dn=d['DOMUtils']['getRects'](document['querySelector'](d['dotCN']['appmount'])),dp={'height':0xa,'width':0xa};switch(dg['type']){case'top':dk=dl['top']-dm['height']-dp['height']+0x2;dj=dl['left']+(dl['width']-dm['width'])/0x2;break;case'bottom':dk=dl['top']+dl['height']+dp['height']-0x2;dj=dl['left']+(dl['width']-dm['width'])/0x2;break;case'left':dk=dl['top']+(dl['height']-dm['height'])/0x2;dj=dl['left']-dm['width']-dp['width']+0x2;break;case'right':dk=dl['top']+(dl['height']-dm['height'])/0x2;dj=dl['left']+dl['width']+dp['width']-0x2;break;}dh['style']['setProperty']('top',dk+'px');dh['style']['setProperty']('left',dj+'px');di['style']['removeProperty']('margin-left');di['style']['removeProperty']('margin-top');if(dg['type']=='top'||dg['type']=='bottom'){if(dj<0x0){dh['style']['setProperty']('left','5px');di['style']['setProperty']('margin-left',dj-0xa+'px');}else{var dq=dn['width']-(dj+dm['width']);if(dq<0x0){dh['style']['setProperty']('left',dn['width']-dm['width']-0x5+'px');di['style']['setProperty']('margin-left',-0x1*dq+'px');}}}else if(dg['type']=='left'||dg['type']=='right'){if(dk<0x0){dh['style']['setProperty']('top','5px');di['style']['setProperty']('margin-top',dk-0xa+'px');}else{var dr=dn['height']-(dk+dm['height']);if(dr<0x0){dh['style']['setProperty']('top',dn['height']-dm['height']-0x5+'px');di['style']['setProperty']('margin-top',-0x1*dr+'px');}}}};d['ObjectUtils']={};d['ObjectUtils']['is']=function(ds){return ds&&Object['prototype']['isPrototypeOf'](ds)&&!Array['prototype']['isPrototypeOf'](ds);};d['ObjectUtils']['extract']=function(dt,...du){let dv={};if(d['ObjectUtils']['is'](dt))for(let dw of du['flat'](0xa)['filter'](dx=>dx))if(dt[dw])dv[dw]=dt[dw];return dv;};d['ObjectUtils']['exclude']=function(dy,...dz){let dA=Object['assign']({},dy);d['ObjectUtils']['delete'](dA,...dz);return dA;};d['ObjectUtils']['delete']=function(dB,...dC){if(d['ObjectUtils']['is'](dB))for(let dD of dC['flat'](0xa)['filter'](dE=>dE))delete dB[dD];};d['ObjectUtils']['sort']=function(dF,dG,dH){if(!d['ObjectUtils']['is'](dF))return{};var dI={};if(dG===undefined||!dG)for(let dJ of Object['keys'](dF)['sort']())dI[dJ]=dF[dJ];else{let dK=[];for(let dJ in dF)dK['push'](dF[dJ]);dK=d['ArrayUtils']['keySort'](dK,dG,dH);for(let dM of dK)for(let dJ in dF)if(d['equals'](dM,dF[dJ])){dI[dJ]=dM;break;}}return dI;};d['ObjectUtils']['reverse']=function(dO,dP){if(!d['ObjectUtils']['is'](dO))return{};var dQ={};for(let dR of dP===undefined||!dP?Object['keys'](dO)['reverse']():Object['keys'](dO)['sort']()['reverse']())dQ[dR]=dO[dR];return dQ;};d['ObjectUtils']['filter']=function(dS,dT,dU=![]){if(!d['ObjectUtils']['is'](dS))return{};if(typeof dT!='function')return dS;return Object['keys'](dS)['filter'](dV=>dT(dU?dV:dS[dV]))['reduce']((dW,dX)=>(dW[dX]=dS[dX],dW),{});};d['ObjectUtils']['push']=function(dY,dZ){if(d['ObjectUtils']['is'](dY))dY[Object['keys'](dY)['length']]=dZ;};d['ObjectUtils']['pop']=function(e0,e1){if(d['ObjectUtils']['is'](e0)){let e2=Object['keys'](e0);if(!e2['length'])return;let e1=e0[e2[e2['length']-0x1]];delete e0[e2[e2['length']-0x1]];return e1;}};d['ObjectUtils']['map']=function(e4,e5){if(!d['ObjectUtils']['is'](e4))return{};if(typeof e5!='string'&&typeof e5!='function')return e4;var e6={};for(let e7 in e4)if(d['ObjectUtils']['is'](e4[e7]))e6[e7]=typeof e5=='string'?e4[e7][e5]:e5(e4[e7],e7);return e6;};d['ObjectUtils']['toArray']=function(e8){if(!d['ObjectUtils']['is'](e8))return[];return Object['entries'](e8)['map'](e9=>e9[0x1]);};d['ObjectUtils']['deepAssign']=function(ea,...eb){if(!eb['length'])return ea;let ec=eb['shift']();if(d['ObjectUtils']['is'](ea)&&d['ObjectUtils']['is'](ec)){for(let ed in ec){if(d['ObjectUtils']['is'](ec[ed])){if(!ea[ed])Object['assign'](ea,{[ed]:{}});d['ObjectUtils']['deepAssign'](ea[ed],ec[ed]);}else Object['assign'](ea,{[ed]:ec[ed]});}}return d['ObjectUtils']['deepAssign'](ea,...eb);};d['ObjectUtils']['isEmpty']=function(ee){return!d['ObjectUtils']['is'](ee)||Object['getOwnPropertyNames'](ee)['length']==0x0;};d['ArrayUtils']={};d['ArrayUtils']['is']=function(ef){return ef&&Array['isArray'](ef);};d['ArrayUtils']['sum']=function(eg){return Array['isArray'](eg)?eg['reduce']((eh,ei)=>eh+Math['round'](ei),0x0):0x0;};d['ArrayUtils']['keySort']=function(ej,ek,el){if(!d['ArrayUtils']['is'](ej))return[];if(ek==null)return ej;if(el===undefined)el=null;return ej['sort']((em,en)=>{var eo=em[ek],ep=en[ek];if(eo!==el)return eoep?0x1:0x0;});};d['ArrayUtils']['numSort']=function(eq){return eq['sort']((er,es)=>{return eres?0x1:0x0;});};d['ArrayUtils']['remove']=function(et,eu,ev=![]){if(!d['ArrayUtils']['is'](et))return[];if(!et['includes'](eu))return et;if(!ev)et['splice'](et['indexOf'](eu),0x1);else while(et['indexOf'](eu)>-0x1)et['splice'](et['indexOf'](eu),0x1);return et;};d['ArrayUtils']['getAllIndexes']=function(ew,ex){if(!d['ArrayUtils']['is'](ew)&&typeof ew!='string')return[];var ey=[],ez=-0x1;while((ez=ew['indexOf'](ex,ez+0x1))!==-0x1)ey['push'](ez);return ey;};d['ArrayUtils']['removeCopies']=function(eA){if(!d['ArrayUtils']['is'](eA))return[];return[...new Set(eA)];};d['ModuleUtils']={};d['ModuleUtils']['cached']=window['BDFDB']&&window['BDFDB']['ModuleUtils']&&window['BDFDB']['ModuleUtils']['cached']||{};d['ModuleUtils']['find']=function(eB,eC){eC=typeof eC!='boolean'?!![]:eC;let eD=f['getWebModuleReq']();for(let eE in eD['c'])if(eD['c']['hasOwnProperty'](eE)){let eF=eD['c'][eE]['exports'];if(eF&&(typeof eF=='object'||typeof eF=='function')&&eB(eF))return eC?eF:eD['c'][eE];if(eF&&eF['__esModule']){for(let eG in eF)if(eF[eG]&&(typeof eF[eG]=='object'||typeof eF[eG]=='function')&&eB(eF[eG]))return eC?eF[eG]:eD['c'][eE];if(eF['default']&&(typeof eF['default']=='object'||typeof eF['default']=='function'))for(let eH in eF['default'])if(eF['default'][eH]&&(typeof eF['default'][eH]=='object'||typeof eF['default'][eH]=='function')&&eB(eF['default'][eH]))return eC?eF['default'][eH]:eD['c'][eE];}}};d['ModuleUtils']['findByProperties']=function(...eI){eI=eI['flat'](0xa);let eJ=eI['pop']();if(typeof eJ!='boolean'){eI['push'](eJ);eJ=!![];}return f['findModule']('prop',JSON['stringify'](eI),eK=>eI['every'](eL=>eK[eL]!==undefined),eJ);};d['ModuleUtils']['findByName']=function(eM,eN){return f['findModule']('name',JSON['stringify'](eM),eO=>eO['displayName']===eM||eO['render']&&eO['render']['displayName']===eM,typeof eN!='boolean'?!![]:eN);};d['ModuleUtils']['findByString']=function(...eP){eP=eP['flat'](0xa);let eQ=eP['pop']();if(typeof eQ!='boolean'){eP['push'](eQ);eQ=!![];}return f['findModule']('string',JSON['stringify'](eP),eR=>eP['every'](eS=>typeof eR=='function'&&(eR['toString']()['indexOf'](eS)>-0x1||typeof eR['__originalMethod']=='function'&&eR['__originalMethod']['toString']()['indexOf'](eS)>-0x1||typeof eR['__originalFunction']=='function'&&eR['__originalFunction']['toString']()['indexOf'](eS)>-0x1)||d['ObjectUtils']['is'](eR)&&typeof eR['type']=='function'&&eR['type']['toString']()['indexOf'](eS)>-0x1),eQ);};d['ModuleUtils']['findByPrototypes']=function(...eT){eT=eT['flat'](0xa);let eU=eT['pop']();if(typeof eU!='boolean'){eT['push'](eU);eU=!![];}return f['findModule']('proto',JSON['stringify'](eT),eV=>eV['prototype']&&eT['every'](eW=>eV['prototype'][eW]!==undefined),eU);};f['findModule']=function(eX,eY,eZ,f0){if(!d['ObjectUtils']['is'](d['ModuleUtils']['cached'][eX]))d['ModuleUtils']['cached'][eX]={'module':{},'export':{}};if(f0&&d['ModuleUtils']['cached'][eX]['export'][eY])return d['ModuleUtils']['cached'][eX]['export'][eY];else if(!f0&&d['ModuleUtils']['cached'][eX]['module'][eY])return d['ModuleUtils']['cached'][eX]['module'][eY];else{var f1=d['ModuleUtils']['find'](eZ,f0);if(f1){if(f0)d['ModuleUtils']['cached'][eX]['export'][eY]=f1;else d['ModuleUtils']['cached'][eX]['module'][eY]=f1;return f1;}else d['LogUtils']['warn'](eY+'\x20['+eX+']\x20not\x20found\x20in\x20WebModules');}};f['getWebModuleReq']=function(){if(!f['getWebModuleReq']['req']){const f2='BDFDB-WebModules';const f3=window['webpackJsonp']['push']([[],{[f2]:(f4,f5,f3)=>f4['exports']=f3},[[f2]]]);delete f3['m'][f2];delete f3['c'][f2];f['getWebModuleReq']['req']=f3;}return f['getWebModuleReq']['req'];};var f7={};f7['Patchtypes']=['before','instead','after'];f7['Patchmap']={'BannedCard':'BannedUser','ChannelWindow':'Channel','InvitationCard':'InviteRow','InviteCard':'InviteRow','MemberCard':'Member','PopoutContainer':'Popout','QuickSwitchResult':'Result','UserProfile':'UserProfileBody','WebhookCard':'Webhook'};f7['ForceObserve']=['DirectMessage','GuildIcon'];f7['NonRender']=['ContextMenuItem','DiscordTag','InviteModalUserRow','Mention','Message','MessageHeader','MessageTimestamp','NameTag','NowPlayingItem','SystemMessage','SimpleMessageAccessories','UserInfo'];f7['PropsFind']=['UnavailableGuildsButton'];f7['MemoComponent']=['MessageContent','NowPlayingHeader'];f7['NonPrototype']=[]['concat'](f7['NonRender'],f7['PropsFind'],f7['MemoComponent'],['ChannelTextAreaContainer']);f7['LoadedInComponents']={'AutocompleteChannelResult':'LibraryComponents.AutocompleteItems.Channel','AutocompleteUserResult':'LibraryComponents.AutocompleteItems.User','ContextMenuItem':'NativeSubComponents.ContextMenuItem','QuickSwitchChannelResult':'LibraryComponents.QuickSwitchItems.Channel','QuickSwitchGroupDMResult':'LibraryComponents.QuickSwitchItems.GroupDM','QuickSwitchGuildResult':'LibraryComponents.QuickSwitchItems.Guild','QuickSwitchUserResult':'LibraryComponents.QuickSwitchItems.User'};f7['Patchfinder']={'Account':'accountinfo','App':'app','AppSkeleton':'app','AppView':'appcontainer','AuthWrapper':'loginscreen','BannedCard':'guildsettingsbannedcard','ChannelMember':'member','ChannelTextAreaForm':'chatform','ChannelWindow':'chatcontent','DirectMessage':'guildouter','EmojiPicker':'emojipicker','Guild':'guildouter','GuildIcon':'avataricon','GuildSettingsBans':'guildsettingsbannedcard','GuildSettingsEmoji':'guildsettingsemojicard','GuildSettingsMembers':'guildsettingsmembercard','GuildSidebar':'guildchannels','I18nLoaderWrapper':'app','InstantInviteModal':'invitemodalwrapper','InvitationCard':'invitemodalinviterow','InviteCard':'guildsettingsinvitecard','PopoutContainer':'popout','Popouts':'popouts','PrivateChannelCall':'callcurrentcontainer','PrivateChannelCallParticipants':'callcurrentcontainer','PrivateChannelRecipientsInvitePopout':'searchpopoutdmaddpopout','PrivateChannelsList':'dmchannelsscroller','QuickSwitchChannelResult':'quickswitchresult','QuickSwitchGuildResult':'quickswitchresult','QuickSwitchResult':'quickswitchresult','MemberCard':'guildsettingsmembercard','Messages':'messages','MessagesPopout':'messagespopout','ModalLayer':'layermodal','MutualGuilds':'userprofilebody','MutualFriends':'userprofilebody','NameTag':'nametag','Note':'usernote','SearchResults':'searchresultswrap','TypingUsers':'typing','UnreadDMs':'guildsscroller','Upload':'uploadmodal','UserHook':'auditloguserhook','UserPopout':'userpopout','UserProfile':'userprofile','V2C_ContentColumn':'contentcolumn','V2C_List':'_repolist','V2C_PluginCard':'_repoheader','V2C_ThemeCard':'_repoheader'};f7['GlobalModules']={};try{f7['GlobalModules']['V2C_ContentColumn']=V2C_ContentColumn;}catch(f8){d['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_ContentColumn\x22');}try{f7['GlobalModules']['V2C_List']=V2C_List;}catch(f9){d['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_List\x22');}try{f7['GlobalModules']['V2C_PluginCard']=V2C_PluginCard;}catch(fa){d['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_PluginCard\x22');}try{f7['GlobalModules']['V2C_ThemeCard']=V2C_ThemeCard;}catch(fb){d['LogUtils']['warn']('Could\x20not\x20find\x20global\x20Module\x20\x22V2C_ThemeCard\x22');}d['ModuleUtils']['isPatched']=function(fc,fd,fe){if(!fc||!d['ObjectUtils']['is'](fd)||!fd['BDFDBpatch']||!fe)return![];const ff=(typeof fc==='string'?fc:fc['name'])['toLowerCase']();return ff&&fd[fe]&&fd[fe]['__isBDFDBpatched']&&fd['BDFDBpatch'][fe]&&d['ObjectUtils']['toArray'](fd['BDFDBpatch'][fe])['some'](fg=>d['ObjectUtils']['toArray'](fg)['some'](fh=>Object['keys'](fh)['includes'](ff)));};d['ModuleUtils']['patch']=function(fi,fj,fk,fl,fm=![]){if(!fi||!d['ObjectUtils']['is'](fj)||!fk||!d['ObjectUtils']['is'](fl))return null;fl=d['ObjectUtils']['filter'](fl,fn=>f7['Patchtypes']['includes'](fn),!![]);if(d['ObjectUtils']['isEmpty'](fl))return null;const fo=typeof fi==='string'?fi:fi['name'];const fp=fo['toLowerCase']();const fq=d['ObjectUtils']['is'](fi)&&!isNaN(fi['patchPriority'])?fi['patchPriority']<0x0?0x0:fi['patchPriority']>0xa?0xa:Math['round'](fi['patchPriority']):0x5;if(!d['ObjectUtils']['is'](fj['BDFDBpatch']))fj['BDFDBpatch']={};fk=[fk]['flat'](0xa)['filter'](fr=>fr);for(let fs of fk)if(fj[fs]==null||typeof fj[fs]=='function'){let ft=0x0;if(!fj['BDFDBpatch'][fs]||fm&&(!fj[fs]||!fj[fs]['__isBDFDBpatched'])){if(!fj['BDFDBpatch'][fs]){fj['BDFDBpatch'][fs]={};for(let fu of f7['Patchtypes'])fj['BDFDBpatch'][fs][fu]={};}if(!fj[fs])fj[fs]=c=>{};const fw=fj[fs];fj['BDFDBpatch'][fs]['originalMethod']=fw;fj[fs]=function(){let fx=![],fy=![];const fz={'thisObject':this,'methodArguments':arguments,'originalMethod':fw,'originalMethodName':fs,'callOriginalMethod':c=>{if(!fy)fz['returnValue']=fz['originalMethod']['apply'](fz['thisObject'],fz['methodArguments']);},'callOriginalMethodAfterwards':c=>{fx=!![];},'stopOriginalMethodCall':c=>{fy=!![];}};if(fj['BDFDBpatch']&&fj['BDFDBpatch'][fs]){for(let fD in fj['BDFDBpatch'][fs]['before'])for(let fE in d['ObjectUtils']['sort'](fj['BDFDBpatch'][fs]['before'][fD])){d['TimeUtils']['suppress'](fj['BDFDBpatch'][fs]['before'][fD][fE],'\x22before\x22\x20callback\x20of\x20'+fs+'\x20in\x20'+(fj['constructor']?fj['constructor']['displayName']||fj['constructor']['name']:'module'),fj['BDFDBpatch'][fs]['before'][fD][fE]['pluginName'])(fz);}let fF=d['ObjectUtils']['toArray'](fj['BDFDBpatch'][fs]['instead'])['some'](fG=>!d['ObjectUtils']['isEmpty'](fG));if(fF)for(let fD in fj['BDFDBpatch'][fs]['instead'])for(let fE in d['ObjectUtils']['sort'](fj['BDFDBpatch'][fs]['instead'][fD])){let fJ=d['TimeUtils']['suppress'](fj['BDFDBpatch'][fs]['instead'][fD][fE],'\x22instead\x22\x20callback\x20of\x20'+fs+'\x20in\x20'+(fj['constructor']?fj['constructor']['displayName']||fj['constructor']['name']:'module'),fj['BDFDBpatch'][fs]['instead'][fD][fE]['pluginName'])(fz);if(fJ!==undefined)fz['returnValue']=fJ;}if((!fF||fx)&&!fy)d['TimeUtils']['suppress'](fz['callOriginalMethod'],'originalMethod\x20of\x20'+fs+'\x20in\x20'+(fj['constructor']?fj['constructor']['displayName']||fj['constructor']['name']:'module'))();for(let fD in fj['BDFDBpatch'][fs]['after'])for(let fE in d['ObjectUtils']['sort'](fj['BDFDBpatch'][fs]['after'][fD])){let fJ=d['TimeUtils']['suppress'](fj['BDFDBpatch'][fs]['after'][fD][fE],'\x22after\x22\x20callback\x20of\x20'+fs+'\x20in\x20'+(fj['constructor']?fj['constructor']['displayName']||fj['constructor']['name']:'module'),fj['BDFDBpatch'][fs]['after'][fD][fE]['pluginName'])(fz);if(fJ!==undefined)fz['returnValue']=fJ;}}else d['TimeUtils']['suppress'](fz['callOriginalMethod'],'originalMethod\x20of\x20'+fs+'\x20in\x20'+(fj['constructor']?fj['constructor']['displayName']||fj['constructor']['name']:'module'))();fx=![],fy=![];return fs=='render'&&fz['returnValue']===undefined?null:fz['returnValue'];};for(let fN of Object['keys'](fw))fj[fs][fN]=fw[fN];if(!fj[fs]['__originalFunction']){let fO=fw['__originalMethod']||fw['__originalFunction']||fw;if(typeof fO=='function')fj[fs]['__originalFunction']=fO;}fj[fs]['__isBDFDBpatched']=!![];}for(let fP in fl)if(typeof fl[fP]=='function'){if(!d['ObjectUtils']['is'](fj['BDFDBpatch'][fs][fP][fq]))fj['BDFDBpatch'][fs][fP][fq]={};fj['BDFDBpatch'][fs][fP][fq][fp]=fl[fP];fj['BDFDBpatch'][fs][fP][fq][fp]['pluginName']=fo;}}let fQ=c=>{d['ModuleUtils']['unpatch'](fi,fj,fk);};if(d['ObjectUtils']['is'](fi)){if(!d['ArrayUtils']['is'](fi['patchCancels']))fi['patchCancels']=[];fi['patchCancels']['push'](fQ);}return fQ;};d['ModuleUtils']['unpatch']=function(fS,fT,fU){if(!fT&&!fU){if(d['ObjectUtils']['is'](fS)&&d['ArrayUtils']['is'](fS['patchCancels']))while(fS['patchCancels']['length'])fS['patchCancels']['pop']()();}else{if(!d['ObjectUtils']['is'](fT)||!fT['BDFDBpatch'])return;const fV=!fS?null:(typeof fS==='string'?fS:fS['name'])['toLowerCase']();if(fU){for(let fW of[fU]['flat'](0xa)['filter'](fX=>fX))if(fT[fW]&&fT['BDFDBpatch'][fW])fZ(fW,fV);}else for(let fY of fT['BDFDBpatch'])fZ(fY,fV);}function fZ(g0,g1){for(let g2 of f7['Patchtypes']){if(g1)for(let g3 in fT['BDFDBpatch'][g0][g2]){delete fT['BDFDBpatch'][g0][g2][g3][g1];if(d['ObjectUtils']['isEmpty'](fT['BDFDBpatch'][g0][g2][g3]))delete fT['BDFDBpatch'][g0][g2][g3];}else delete fT['BDFDBpatch'][g0][g2];}if(!d['ObjectUtils']['toArray'](fT['BDFDBpatch'][g0])['some'](g4=>!d['ObjectUtils']['isEmpty'](g4))){fT[g0]=fT['BDFDBpatch'][g0]['originalMethod'];delete fT['BDFDBpatch'][g0];if(d['ObjectUtils']['isEmpty'](fT['BDFDBpatch']))delete fT['BDFDBpatch'];}}};d['ModuleUtils']['forceAllUpdates']=function(g5,g6){if(d['ObjectUtils']['is'](g5)&&d['ObjectUtils']['is'](g5['patchedModules'])){const g7=document['querySelector'](d['dotCN']['app']);const g8=document['querySelector']('#bd-settingspane-container\x20'+d['dotCN']['scrollerwrap']);if(g7){let g9=[],ga={};for(let gb in g5['patchedModules'])for(let gc in g5['patchedModules'][gb]){let gd=[g5['patchedModules'][gb][gc]]['flat'](0xa)['filter'](ge=>ge);if(gd['includes']('componentDidMount')||gd['includes']('componentDidUpdate')||gd['includes']('render')){g9['push'](gc);let gf=gc['split']('\x20_\x20_\x20')[0x0];if(!ga[gf])ga[gf]=[];ga[gf]['push'](gb);}}g6=[g6]['flat'](0xa)['filter'](gg=>gg);if(g6['length']){g6=g6['map'](gh=>gh&&f7['Patchmap'][gh]?f7['Patchmap'][gh]+'\x20_\x20_\x20'+gh:gh);g9=g9['filter'](gi=>g6['indexOf'](gi)>-0x1);}g9=d['ArrayUtils']['removeCopies'](g9);if(g9['length']){try{const gj=d['ReactUtils']['findOwner'](g7,{'name':g9,'all':!![],'group':!![],'unlimited':!![]});const gk=d['ReactUtils']['findOwner'](g7,{'name':g9,'all':!![],'group':!![],'unlimited':!![],'up':!![]});for(let gc in gj)for(let gm of gj[gc])f['forceInitiateProcess'](g5,gm,gc,ga[gc]);for(let gc in gk)for(let gm of gk[gc])f['forceInitiateProcess'](g5,gm,gc,ga[gc]);if(g8){const gp=d['ReactUtils']['findOwner'](g8,{'name':g9,'all':!![],'group':!![],'unlimited':!![]});for(let gc in gp)for(let gm of gp[gc])f['forceInitiateProcess'](g5,gm,gc,ga[gc]);}}catch(gs){d['LogUtils']['error']('Could\x20not\x20force\x20update\x20components!\x20'+gs,g5['name']);}}}}};f['forceInitiateProcess']=function(gt,gu,gv,gw){if(!gt||!gu||!gv)return;let gx=[];for(let gy in gt['patchedModules'])if(gt['patchedModules'][gy][gv])gx['push'](gt['patchedModules'][gy][gv]);gx=d['ArrayUtils']['removeCopies'](gx)['flat'](0xa)['filter'](gz=>gz);if(gx['includes']('componentDidMount'))f['initiateProcess'](gt,gv,{'instance':gu,'methodname':'componentDidMount','patchtypes':gw});if(gx['includes']('render'))d['ReactUtils']['forceUpdate'](gu);else if(gx['includes']('componentDidUpdate'))f['initiateProcess'](gt,gv,{'instance':gu,'methodname':'componentDidUpdate','patchtypes':gw});};f['initiateProcess']=function(gA,gB,gC){if(d['ObjectUtils']['is'](gA)&&!gA['stopping']&&gC['instance']){let gD=gA==d;if(gD)gA=f;gB=(gB['split']('\x20_\x20_\x20')[0x1]||gB)['replace'](/[^A-z0-9]|_/g,'');gB=gB['charAt'](0x0)['toUpperCase']()+gB['slice'](0x1);if(typeof gA['process'+gB]=='function'){let gE=!gD&&gA['process'+gB]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(gE){if(gC['methodname']=='render'){if(gC['returnvalue'])gA['process'+gB](gC['instance'],null,gC['returnvalue'],[gC['methodname']]);}else{let gF=d['ReactUtils']['findDOMNode'](gC['instance']);if(gF)gA['process'+gB](gC['instance'],gF,gC['returnvalue'],[gC['methodname']]);else d['TimeUtils']['timeout'](c=>{gF=d['ReactUtils']['findDOMNode'](gC['instance']);if(gF)gA['process'+gB](gC['instance'],gF,gC['returnvalue'],[gC['methodname']]);});}}else{if(typeof gC['methodname']=='string'&&(gC['methodname']['indexOf']('componentDid')==0x0||gC['methodname']['indexOf']('componentWill')==0x0)){gC['node']=d['ReactUtils']['findDOMNode'](gC['instance']);if(gC['node'])gA['process'+gB](gC);else d['TimeUtils']['timeout'](c=>{gC['node']=d['ReactUtils']['findDOMNode'](gC['instance']);if(gC['node'])gA['process'+gB](gC);});}else if(gC['returnvalue']||gC['patchtypes']['includes']('before'))gA['process'+gB](gC);}}}};f['patchPlugin']=function(gI){if(!d['ObjectUtils']['is'](gI)||!d['ObjectUtils']['is'](gI['patchedModules']))return;d['ModuleUtils']['unpatch'](gI);for(let gJ in gI['patchedModules'])for(let gK in gI['patchedModules'][gJ]){if(f7['GlobalModules'][gK]&&typeof f7['GlobalModules'][gK]=='function')gS(f7['GlobalModules'][gK],gK,gJ);else{let gL=gK['split']('\x20_\x20_\x20')[0x1]||gK;let gM=f7['LoadedInComponents'][gK]&&d['ReactUtils']['getValue'](Ah,f7['LoadedInComponents'][gK]);if(gM)gS(f7['NonRender']['includes'](gL)?(d['ModuleUtils']['find'](gN=>gN==gM,![])||{})['exports']:gM,gK,gJ);else{let gO=f7['Patchfinder'][gL];let gP=f7['Patchmap'][gK];let gQ=gP?gP+'\x20_\x20_\x20'+gK:gK;let gR=gQ['split']('\x20_\x20_\x20')[0x0];if(gP){gI['patchedModules'][gJ][gQ]=gI['patchedModules'][gJ][gK];delete gI['patchedModules'][gJ][gK];}if(f7['PropsFind']['includes'](gL))gS((d['ModuleUtils']['findByProperties'](gR,![])||{})['exports'],gQ,gJ,!![]);else if(f7['NonRender']['includes'](gL))gS((d['ModuleUtils']['findByName'](gR,![])||{})['exports'],gQ,gJ,!![]);else if(f7['MemoComponent']['includes'](gL))gS((d['ModuleUtils']['findByName'](gR,![])||{'exports':{}})['exports']['default'],gQ,gJ,!![]);else if(!gO)gS(d['ModuleUtils']['findByName'](gR),gQ,gJ);else if(zl[gO])h0(gO,gQ,gJ,f7['ForceObserve']['includes'](gL));}}}function gS(gT,gU,gV,gW){if(gT){let gX=gU['split']('\x20_\x20_\x20')[0x0];gT=gT['_reactInternalFiber']&&gT['_reactInternalFiber']['type']?gT['_reactInternalFiber']['type']:gT;gT=gW||f['isInstanceCorrect'](gT,gX)||f7['LoadedInComponents'][gU]?gT:d['ReactUtils']['findConstructor'](gT,gX)||d['ReactUtils']['findConstructor'](gT,gX,{'up':!![]});if(gT){gT=gT['_reactInternalFiber']&&gT['_reactInternalFiber']['type']?gT['_reactInternalFiber']['type']:gT;let gY={};gY[gV]=gZ=>{f['initiateProcess'](gI,gU,{'instance':window!=gZ['thisObject']?gZ['thisObject']:{'props':gZ['methodArguments'][0x0]},'returnvalue':gZ['returnValue'],'methodname':gZ['originalMethodName'],'patchtypes':[gV]});};d['ModuleUtils']['patch'](gI,f7['NonPrototype']['includes'](gX)?gT:gT['prototype'],gI['patchedModules'][gV][gU],gY);}}}function h0(h1,h2,h3,h4){const h5=document['querySelector'](d['dotCN']['app']),h6=document['querySelector']('#bd-settingspane-container\x20'+d['dotCN']['scrollerwrap']);let h7=![];if(!h4){if(h5){let h8=d['ReactUtils']['findConstructor'](h5,h2,{'unlimited':!![]})||d['ReactUtils']['findConstructor'](h5,h2,{'unlimited':!![],'up':!![]});if(h8&&(h7=!![]))gS(h8,h2,h3);}if(!h7&&h6){let h9=d['ReactUtils']['findConstructor'](h6,h2,{'unlimited':!![]});if(h9&&(h7=!![]))gS(h9,h2,h3);}}if(!h7){let ha=![],hb=d['disCN'][h1],hc=d['dotCN'][h1];for(let hd of document['querySelectorAll'](hc)){let he=d['ReactUtils']['getInstance'](hd);if(hl(he,h2)){ha=!![];gS(he,h2,h3);d['ModuleUtils']['forceAllUpdates'](gI,h2);break;}}if(!ha){let hf=new MutationObserver(hg=>{hg['forEach'](hh=>{hh['addedNodes']['forEach'](hi=>{if(ha||!hi||!hi['tagName'])return;let hd=null;if((hd=d['DOMUtils']['containsClass'](hi,hb)?hi:hi['querySelector'](hc))!=null){let he=d['ReactUtils']['getInstance'](hd);if(hl(he,h2)){ha=!![];hf['disconnect']();gS(he,h2,h3);d['ModuleUtils']['forceAllUpdates'](gI,h2);}}});});});d['ObserverUtils']['connect'](gI,d['dotCN']['appmount'],{'name':'checkForInstanceObserver','instance':hf,'multi':!![]},{'childList':!![],'subtree':!![]});}}}function hl(hm,hn){if(!hm)return![];hm=hm['_reactInternalFiber']&&hm['_reactInternalFiber']['type']?hm['_reactInternalFiber']['type']:hm;hm=f['isInstanceCorrect'](hm,hn)?hm:d['ReactUtils']['findConstructor'](hm,hn)||d['ReactUtils']['findConstructor'](hm,hn,{'up':!![]});return!!hm;}};f['isInstanceCorrect']=function(ho,hp){return ho&&(ho['type']&&(ho['type']['render']&&ho['type']['render']['displayName']===hp||ho['type']['displayName']===hp||ho['type']['name']===hp||ho['type']===hp)||ho['render']&&(ho['render']['displayName']===hp||ho['render']['name']===hp)||ho['displayName']==hp||ho['name']===hp);};f['addContextListeners']=function(hq){for(let hr of Bz['NormalContextMenus'])if(typeof hq['on'+hr]==='function')f['patchContextMenuPlugin'](hq,hr,Ah['LibraryComponents']['ContextMenus'][hr]);for(let hs of Bz['FluxContextMenus'])if(typeof hq['on'+hs]==='function'){if(d['InternalData']['componentPatchQueries'][hs]['module'])f['patchContextMenuPlugin'](hq,hs,d['InternalData']['componentPatchQueries'][hs]['module']);else{d['InternalData']['componentPatchQueries'][hs]['query']['push'](hq);d['InternalData']['componentPatchQueries'][hs]['query']['sort']((ht,hu)=>{return ht['name']hu['name']?0x1:0x0;});}}for(let hv of Bz['QueuedComponents'])if(typeof hq['on'+hv]==='function'){if(d['InternalData']['componentPatchQueries'][hv]['module'])f['patchExportedContextMenuPlugin'](hq,hv,d['InternalData']['componentPatchQueries'][hv]['module']);else{d['InternalData']['componentPatchQueries'][hv]['query']['push'](hq);d['InternalData']['componentPatchQueries'][hv]['query']['sort']((hw,hx)=>{return hw['name']hx['name']?0x1:0x0;});}}};f['patchContextMenuPlugin']=function(hy,hz,hA){if(hA&&hA['prototype']){let hB=hy['on'+hz]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(hB){d['ModuleUtils']['patch'](hy,hA['prototype'],'render',{'after':hC=>{let hD=hC['thisObject'],hE=d['ReactUtils']['findDOMNode'](hC['thisObject']),hF=hC['returnValue'];if(hD&&hE&&hF&&typeof hy['on'+hz]==='function')hy['on'+hz](hD,hE,hF);}});}else{d['ModuleUtils']['patch'](hy,hA['prototype'],'render',{'after':hG=>{if(hG['thisObject']&&hG['returnValue']&&typeof hy['on'+hz]==='function')hy['on'+hz]({'instance':hG['thisObject'],'returnvalue':hG['returnValue'],'methodname':'render'});}});}}};f['patchExportedContextMenuPlugin']=function(hH,hI,hJ){if(hJ&&hJ['exports']){let hK=hH['on'+hI]['toString']()['split']('\x0a')[0x0]['replace'](/ /g,'')['split'](',')['length']>0x1;if(hK)d['ModuleUtils']['patch'](hH,hJ['exports'],'default',{'after':hL=>{if(hL['returnValue']&&typeof hH['on'+hI]==='function')hH['on'+hI]({'props':hL['methodArguments'][0x0]},document,hL['returnValue']);}});else d['ModuleUtils']['patch'](hH,hJ['exports'],'default',{'after':hM=>{if(hM['returnValue']&&typeof hH['on'+hI]==='function')hH['on'+hI]({'instance':{'props':hM['methodArguments'][0x0]},'returnvalue':hM['returnValue'],'methodname':'default'});}});}};f['executeExtraPatchedPatches']=function(hN,hO){if(d['ObjectUtils']['is'](d['InternalData']['componentPatchQueries'][hN])&&d['ArrayUtils']['is'](d['InternalData']['componentPatchQueries'][hN]['query']))for(let hP of d['InternalData']['componentPatchQueries'][hN]['query'])if(hO['returnvalue']&&typeof hP['on'+hN]==='function')hP['on'+hN](hO);};f['patchContextMenuLib']=function(hQ,hR){if(hQ&&hQ['prototype']){d['ModuleUtils']['patch'](d,hQ['prototype'],'componentDidMount',{'after':hS=>{if(!hS['thisObject']['BDFDBforceRenderTimeout']&&typeof hS['thisObject']['render']=='function')hS['thisObject']['render']();}});d['ModuleUtils']['patch'](d,hQ['prototype'],'componentDidUpdate',{'after':hT=>{var hU=d['ReactUtils']['findDOMNode'](hT['thisObject']);if(hU){const hV=d['ReactUtils']['getValue'](hT,'thisObject._reactInternalFiber.stateNode.props.onHeightUpdate');const hW=d['DOMUtils']['getRects'](hU),hX=d['DOMUtils']['getRects'](document['querySelector'](d['dotCN']['appmount']));if(hV&&hW['top']+hW['height']>hX['height'])hV();}}});d['ModuleUtils']['patch'](d,hQ['prototype'],'render',{'after':hY=>{if(hY['thisObject']['props']['BDFDBcontextMenu']&&hY['thisObject']['props']['children']&&hY['returnValue']&&hY['returnValue']['props']){hY['returnValue']['props']['children']=hY['thisObject']['props']['children'];delete hY['thisObject']['props']['value'];delete hY['thisObject']['props']['children'];delete hY['thisObject']['props']['BDFDBcontextMenu'];}if(d['ReactUtils']['findDOMNode'](hY['thisObject'])){hY['thisObject']['BDFDBforceRenderTimeout']=!![];d['TimeUtils']['timeout'](c=>{delete hY['thisObject']['BDFDBforceRenderTimeout'];},0x3e8);}if(hR){let i0=d['ReactUtils']['getValue'](hY,'thisObject._reactInternalFiber.child.type');if(i0&&i0['displayName']&&d['InternalData']['componentPatchQueries'][i0['displayName']]&&!d['InternalData']['componentPatchQueries'][i0['displayName']]['module']){d['InternalData']['componentPatchQueries'][i0['displayName']]['module']=i0;f['patchContextMenuLib'](i0,![]);while(d['InternalData']['componentPatchQueries'][i0['displayName']]['query']['length'])f['patchContextMenuPlugin'](d['InternalData']['componentPatchQueries'][i0['displayName']]['query']['pop'](),i0['displayName'],i0);}}}});}};f['patchExportedContextMenuLib']=function(i1,i2,i3){let i4=d['ModuleUtils']['find'](i5=>i5==i1['type'],![]);if(i4&&i4['exports']&&i4['exports']['default']){if(!Ah['LibraryComponents']['ContextMenus'][i2]){Ah['LibraryComponents']['ContextMenus'][i2]=i4['exports']['default'];d['LibraryComponents']['ContextMenus'][i2]=i4['exports']['default'];}if(!Ah['LibraryComponents']['ContextMenus']['_Exports'][i2]){Ah['LibraryComponents']['ContextMenus']['_Exports'][i2]=i4['exports'];d['LibraryComponents']['ContextMenus']['_Exports'][i2]=i4['exports'];}if(d['InternalData']['componentPatchQueries'][i2]&&!d['InternalData']['componentPatchQueries'][i2]['module']){d['InternalData']['componentPatchQueries'][i2]['module']=i4;while(d['InternalData']['componentPatchQueries'][i2]['query']['length'])f['patchExportedContextMenuPlugin'](d['InternalData']['componentPatchQueries'][i2]['query']['pop'](),i2,i4);let i6=i3&&d['ReactUtils']['getValue'](i1,'memoizedProps.onClose');if(typeof i6=='function')i6();}if(!i4['exports']['default']['displayName'])i4['exports']['default']['displayName']=i2;}};f['getContextMenuType']=function(i7,i8){if(i7){if(i7=='MessageContextMenu'&&i8&&i8['type']!=Ah['LibraryComponents']['ContextMenus']['MessageContextMenu'])return'MessageOptionContextMenu';else if(i7['endsWith']('ContextMenu'))return i7;else if(Ah['LibraryComponents']['ContextMenus']['_Types']['includes'](i7)){if(i7['indexOf']('USER_')==0x0)return'UserContextMenu';else if(i7['indexOf']('CHANNEL_')==0x0)return'ChannelContextMenu';else if(i7['indexOf']('GUILD_')==0x0)return'GuildContextMenu';else if(i7['indexOf']('MESSAGE_')==0x0)return'MessageContextMenu';}}return null;};d['DiscordConstants']=d['ModuleUtils']['findByProperties']('Permissions','ActivityTypes');var i9={};i9['Channel']=d['ModuleUtils']['findByPrototypes']('getRecipientId','isManaged','getGuildId');i9['Guild']=d['ModuleUtils']['findByPrototypes']('getIconURL','getMaxEmojiSlots','getRole');i9['Invite']=d['ModuleUtils']['findByPrototypes']('getExpiresAt','isExpired');i9['Message']=d['ModuleUtils']['findByPrototypes']('getReaction','getAuthorName','getChannelId');i9['Messages']=d['ModuleUtils']['findByPrototypes']('jumpToMessage','hasAfterCached','forEach');i9['Timestamp']=d['ModuleUtils']['findByPrototypes']('add','dayOfYear','hasAlignedHourOffset');i9['User']=d['ModuleUtils']['findByPrototypes']('hasFlag','isLocalBot','isClaimed');d['DiscordObjects']=Object['assign']({},i9);var ia={};for(let ib of['child_process','electron','fs','path','process','request']){try{ia[ib]=require(ib);}catch(ic){}}d['LibraryRequires']=Object['assign']({},ia);var id={};id['AckUtils']=d['ModuleUtils']['findByProperties']('localAck','bulkAck');id['APIUtils']=d['ModuleUtils']['findByProperties']('getAPIBaseURL');id['AnalyticsUtils']=d['ModuleUtils']['findByProperties']('isThrottled','track');id['AnimationUtils']=d['ModuleUtils']['findByProperties']('spring','decay');id['BadgeUtils']=d['ModuleUtils']['findByProperties']('getBadgeCountString','getBadgeWidthForValue');id['CategoryCollapseStore']=d['ModuleUtils']['findByProperties']('getCollapsedCategories','isCollapsed');id['CategoryCollapseUtils']=d['ModuleUtils']['findByProperties']('categoryCollapse','categoryCollapseAll');id['ChannelStore']=d['ModuleUtils']['findByProperties']('getChannel','getChannels');id['ColorUtils']=d['ModuleUtils']['findByProperties']('hex2int','hex2rgb');id['ContextMenuUtils']=d['ModuleUtils']['findByProperties']('closeContextMenu','openContextMenu');id['CopyLinkUtils']=d['ModuleUtils']['findByProperties']('SUPPORTS_COPY','copy');id['CurrentUserStore']=d['ModuleUtils']['findByProperties']('getCurrentUser');id['CurrentVoiceUtils']=d['ModuleUtils']['findByProperties']('getAveragePing','isConnected');id['DirectMessageStore']=d['ModuleUtils']['findByProperties']('getPrivateChannelIds','getPrivateChannelTimestamps');id['DirectMessageUnreadStore']=d['ModuleUtils']['findByProperties']('getUnreadPrivateChannelIds');id['DispatchApiUtils']=d['ModuleUtils']['findByProperties']('dirtyDispatch','isDispatching');id['DispatchUtils']=d['ModuleUtils']['findByProperties']('ComponentDispatch');id['DirectMessageUtils']=d['ModuleUtils']['findByProperties']('addRecipient','openPrivateChannel');id['FriendUtils']=d['ModuleUtils']['findByProperties']('getFriendIDs','getRelationships');id['FolderStore']=d['ModuleUtils']['findByProperties']('getGuildFolderById','getFlattenedGuilds');id['FolderUtils']=d['ModuleUtils']['findByProperties']('isFolderExpanded','getExpandedFolders');id['GuildBoostUtils']=d['ModuleUtils']['findByProperties']('getTierName','getUserLevel');id['GuildChannelStore']=d['ModuleUtils']['findByProperties']('getChannels','getDefaultChannel');id['GuildEmojiStore']=d['ModuleUtils']['findByProperties']('getGuildEmoji','getDisambiguatedEmojiContext');id['GuildSettingsUtils']=d['ModuleUtils']['findByProperties']('updateChannelOverrideSettings','updateNotificationSettings');id['GuildStore']=d['ModuleUtils']['findByProperties']('getGuild','getGuilds');id['GuildUnavailableStore']=d['ModuleUtils']['findByProperties']('isUnavailable','totalUnavailableGuilds');id['GuildUtils']=d['ModuleUtils']['findByProperties']('transitionToGuildSync');id['HistoryUtils']=d['ModuleUtils']['findByProperties']('transitionTo','replaceWith','getHistory');;id['IconUtils']=d['ModuleUtils']['findByProperties']('getGuildIconURL','getGuildBannerURL');id['InviteUtils']=d['ModuleUtils']['findByProperties']('acceptInvite','createInvite');id['KeyCodeUtils']=Object['assign']({},d['ModuleUtils']['findByProperties']('toCombo','keyToCode'));id['KeyCodeUtils']['getString']=function(ie){return id['KeyCodeUtils']['toString']([ie]['flat'](0xa)['filter'](ig=>ig)['map'](ih=>[d['DiscordConstants']['KeyboardDeviceTypes']['KEYBOARD_KEY'],ih,d['DiscordConstants']['KeyboardEnvs']['BROWSER']]),!![]);};id['KeyEvents']=d['ModuleUtils']['findByProperties']('aliases','code','codes');id['LanguageStore']=d['ModuleUtils']['findByProperties']('getLanguages','Messages');id['LastChannelStore']=d['ModuleUtils']['findByProperties']('getLastSelectedChannelId');id['LastGuildStore']=d['ModuleUtils']['findByProperties']('getLastSelectedGuildId');id['LoginUtils']=d['ModuleUtils']['findByProperties']('login','logout');id['MemberStore']=d['ModuleUtils']['findByProperties']('getMember','getMembers');id['MessagePinUtils']=d['ModuleUtils']['findByProperties']('pinMessage','unpinMessage');id['MessageStore']=d['ModuleUtils']['findByProperties']('getMessage','getMessages');id['MessageUtils']=d['ModuleUtils']['findByProperties']('receiveMessage','editMessage');id['ModalUtils']=d['ModuleUtils']['findByProperties']('openModal','hasModalOpen');id['MutedUtils']=d['ModuleUtils']['findByProperties']('isGuildOrCategoryOrChannelMuted');id['NoteStore']=d['ModuleUtils']['findByProperties']('getNotes','getNote');id['NotificationSettingsUtils']=d['ModuleUtils']['findByProperties']('setDesktopType','setTTSType');id['NotificationSettingsStore']=d['ModuleUtils']['findByProperties']('getDesktopType','getTTSType');id['PlatformUtils']=d['ModuleUtils']['findByProperties']('isWindows','isLinux');id['PermissionUtils']=d['ModuleUtils']['findByProperties']('getChannelPermissions','canUser');id['PermissionRoleUtils']=d['ModuleUtils']['findByProperties']('getHighestRole','can');id['QuoteUtils']=d['ModuleUtils']['findByProperties']('canQuote','createQuotedText');id['ReactionUtils']=d['ModuleUtils']['findByProperties']('addReaction','removeReaction');id['SearchPageUtils']=d['ModuleUtils']['findByProperties']('searchNextPage','searchPreviousPage');id['SelectChannelUtils']=d['ModuleUtils']['findByProperties']('selectChannel','selectPrivateChannel');id['SettingsUtils']=d['ModuleUtils']['findByProperties']('updateRemoteSettings','updateLocalSettings');id['SoundUtils']=d['ModuleUtils']['findByProperties']('playSound','createSound');id['SpellCheckUtils']=d['ModuleUtils']['findByProperties']('learnWord','toggleSpellcheck');id['SlateUtils']=d['ModuleUtils']['findByProperties']('serialize','deserialize');id['SlateSelectionUtils']=d['ModuleUtils']['findByProperties']('serialize','serializeSelection');id['StateStoreUtils']=d['ModuleUtils']['findByProperties']('useStateFromStores','useStateFromStoresArray');id['StatusMetaUtils']=d['ModuleUtils']['findByProperties']('getApplicationActivity','getStatus');id['StoreUtils']=d['ModuleUtils']['findByProperties']('get','set','clear','remove');id['StreamUtils']=d['ModuleUtils']['findByProperties']('getStreamForUser','getActiveStream');id['StringUtils']=d['ModuleUtils']['findByProperties']('cssValueToNumber','upperCaseFirstChar');id['UnreadGuildUtils']=d['ModuleUtils']['findByProperties']('hasUnread','getUnreadGuilds');id['UnreadChannelUtils']=d['ModuleUtils']['findByProperties']('getUnreadCount','getOldestUnreadMessageId');id['UploadUtils']=d['ModuleUtils']['findByProperties']('upload','instantBatchUpload');id['UserNameUtils']=d['ModuleUtils']['findByProperties']('getName','getNickname');id['UserStore']=d['ModuleUtils']['findByProperties']('getUser','getUsers');id['Utilities']=d['ModuleUtils']['findByProperties']('flatMap','cloneDeep');id['VoiceUtils']=d['ModuleUtils']['findByProperties']('getAllVoiceStates','getVoiceStatesForChannel');id['ZoomUtils']=d['ModuleUtils']['findByProperties']('setZoom','setFontSize');d['LibraryModules']=Object['assign']({},id);id['React']=d['ModuleUtils']['findByProperties']('createElement','cloneElement');id['ReactDOM']=d['ModuleUtils']['findByProperties']('render','findDOMNode');d['ReactUtils']=Object['assign']({},id['React'],id['ReactDOM']);d['ReactUtils']['childrenToArray']=function(ii){if(ii&&ii['props']&&ii['props']['children']&&!d['ArrayUtils']['is'](ii['props']['children'])){var ij=ii['props']['children'];ii['props']['children']=[];ii['props']['children']['push'](ij);}return ii['props']['children'];};d['ReactUtils']['createElement']=function(ik,il){if(ik&&ik['defaultProps'])for(let im in ik['defaultProps'])if(il[im]==null)il[im]=ik['defaultProps'][im];try{return id['React']['createElement'](ik||'div',il||{})||null;}catch(io){d['LogUtils']['error']('Could\x20not\x20create\x20react\x20element!\x20'+io);}return null;};d['ReactUtils']['elementToReact']=function(ip){if(d['ReactUtils']['isValidElement'](ip))return ip;else if(!Node['prototype']['isPrototypeOf'](ip))return null;else if(ip['nodeType']==Node['TEXT_NODE'])return ip['nodeValue'];let iq={},ir=[];for(let is of ip['attributes'])iq[is['name']]=is['value'];if(ip['attributes']['style'])iq['style']=d['ObjectUtils']['filter'](ip['style'],it=>ip['style'][it]&&isNaN(parseInt(it)),!![]);iq['children']=[];if(ip['style']&&ip['style']['cssText'])for(let iu of ip['style']['cssText']['split'](';'))if(iu['endsWith']('!important')){let iv=iu['split'](':')[0x0];let iw=iv['replace'](/-([a-z]?)/g,(ix,iy)=>iy['toUpperCase']());if(iq['style'][iw]!=null)ir['push'](iv);}for(let iz of ip['childNodes'])iq['children']['push'](d['ReactUtils']['elementToReact'](iz));let iA=d['ReactUtils']['createElement'](ip['tagName'],iq);d['ReactUtils']['forceStyle'](iA,ir);return iA;};d['ReactUtils']['forceStyle']=function(iB,iC){if(!d['ReactUtils']['isValidElement'](iB)||!d['ObjectUtils']['is'](iB['props']['style'])||!d['ArrayUtils']['is'](iC)||!iC['length'])return;let iD=iB['ref'];iB['ref']=iE=>{if(typeof iD=='function')iD(iE);let iF=d['ReactUtils']['findDOMNode'](iE);if(Node['prototype']['isPrototypeOf'](iF))for(let iG of iC){let iH=iB['props']['style'][iG['replace'](/-([a-z]?)/g,(iI,iJ)=>iJ['toUpperCase']())];if(iH!=null)iF['style']['setProperty'](iG,iH,'important');}};};d['ReactUtils']['findChildren']=function(iK,iL){if(!iK||!d['ObjectUtils']['is'](iL)||!iL['name']&&!iL['key']&&!iL['props']&&!iL['filter'])return[null,-0x1];var iM=Node['prototype']['isPrototypeOf'](iK)?d['ReactUtils']['getInstance'](iK):iK;if(!d['ObjectUtils']['is'](iM)&&!d['ArrayUtils']['is'](iM))return[null,-0x1];iL['name']=iL['name']&&[iL['name']]['flat']()['filter'](iN=>iN);iL['key']=iL['key']&&[iL['key']]['flat']()['filter'](iO=>iO);iL['props']=iL['props']&&[iL['props']]['flat']()['filter'](iP=>iP);iL['filter']=typeof iL['filter']=='function'&&iL['filter'];var iQ=firstarray=iM;while(!d['ArrayUtils']['is'](firstarray)&&firstarray['props']&&firstarray['props']['children'])firstarray=firstarray['props']['children'];if(!d['ArrayUtils']['is'](firstarray)){if(iQ&&iQ['props']){iQ['props']['children']=[iQ['props']['children']];firstarray=iQ['props']['children'];}else firstarray=[];}return iR(iM);function iR(iS){var iT=[firstarray,-0x1];if(!iS)return iT;if(!d['ArrayUtils']['is'](iS)){if(iX(iS))iT=iV(iS);else if(iS['props']&&iS['props']['children']){iQ=iS;iT=iR(iS['props']['children']);}}else{for(let iU=0x0;iT[0x1]==-0x1&&iUf['isInstanceCorrect'](iM,j0))||iL['key']&&iL['key']['some'](j1=>iM['key']==j1)||iZ&&iL['props']&&iL['props']['every'](j2=>d['ArrayUtils']['is'](j2)?d['ArrayUtils']['is'](j2[0x1])?j2[0x1]['some'](j3=>j4(iZ,j2[0x0],j3)):j4(iZ,j2[0x0],j2[0x1]):iZ[j2]!==undefined)||iL['filter']&&iL['filter'](iM);}function j4(j5,j6,j7){return j6!=null&&j5[j6]!=null&&j7!=null&&(j6=='className'?('\x20'+j5[j6]+'\x20')['indexOf']('\x20'+j7+'\x20')>-0x1:d['equals'](j5[j6],j7));}};d['ReactUtils']['findConstructor']=function(j8,j9,ja={}){if(!d['ObjectUtils']['is'](ja))return null;if(!j8||!j9)return ja['all']?ja['group']?{}:[]:null;var jb=Node['prototype']['isPrototypeOf'](j8)?d['ReactUtils']['getInstance'](j8):j8;if(!d['ObjectUtils']['is'](jb))return ja['all']?ja['group']?{}:[]:null;j9=j9&&[j9]['flat'](0xa)['filter'](jc=>typeof jc=='string');if(!j9['length'])return ja['all']?ja['group']?{}:[]:null;;var jd=-0x1;var je=performance['now']();var jf=ja['unlimited']?0x3b9ac9ff:ja['depth']===undefined?0x1e:ja['depth'];var jg=ja['unlimited']?0x3b9ac9ff:ja['time']===undefined?0x96:ja['time'];var jh=ja['up']?{'return':!![],'sibling':!![],'default':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'default':!![],'_reactInternalFiber':!![]};var ji=ja['group']?{}:[];var jj=jm(jb);if(ja['all']){for(let jk in ji){if(ja['group'])for(let jl in ji[jk])delete ji[jk][jl]['BDFDBreactSearch'];else delete ji[jk]['BDFDBreactSearch'];}return ji;}else return jj;function jm(jb){jd++;var jo=undefined;if(jb&&!Node['prototype']['isPrototypeOf'](jb)&&!d['ReactUtils']['getInstance'](jb)&&jd(jb['type']['render']&&jb['type']['render']['displayName']||jb['type']['displayName']||jb['type']['name'])===jp['split']('\x20_\x20_\x20')[0x0])){if(ja['all']===undefined||!ja['all'])jo=jb['type'];else if(ja['all']){if(!jb['type']['BDFDBreactSearch']){jb['type']['BDFDBreactSearch']=!![];if(ja['group']){if(jb['type']&&(jb['type']['render']&&jb['type']['render']['displayName']||jb['type']['displayName']||jb['type']['name'])){let jq=ja['name']['find'](jr=>(jb['type']['render']&&jb['type']['render']['displayName']||jb['type']['displayName']||jb['type']['name']||jb['type'])['split']('\x20_\x20_\x20')[0x0]==jr)||'Default';if(!d['ArrayUtils']['is'](foundinstances[jq]))foundinstances[jq]=[];foundinstances[jq]['push'](jb['stateNode']);}}else foundinstances['push'](jb['type']);}}}if(jo===undefined){let js=Object['getOwnPropertyNames'](jb);for(let jt=0x0;jo===undefined&&jtjA);jy['key']=jy['key']&&[jy['key']]['flat']()['filter'](jB=>jB);jy['props']=jy['props']&&[jy['props']]['flat']()['filter'](jC=>jC);var jD=-0x1;var jE=performance['now']();var jF=jy['unlimited']?0x3b9ac9ff:jy['depth']===undefined?0x1e:jy['depth'];var jG=jy['unlimited']?0x3b9ac9ff:jy['time']===undefined?0x96:jy['time'];var jH=jy['up']?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};var jI=jy['group']?{}:[];var jJ=jM(jz);if(jy['all']){for(let jK in jI){if(jy['group'])for(let jL in jI[jK])delete jI[jK][jL]['BDFDBreactSearch'];else delete jI[jK]['BDFDBreactSearch'];}return jI;}else return jJ;function jM(jz){jD++;var jO=undefined;if(jz&&!Node['prototype']['isPrototypeOf'](jz)&&!d['ReactUtils']['getInstance'](jz)&&jDf['isInstanceCorrect'](jz,jQ['split']('\x20_\x20_\x20')[0x0]))||jy['key']&&jy['key']['some'](jR=>jz['key']==jR)||jP&&jy['props']&&jy['props']['every'](jS=>d['ArrayUtils']['is'](jS)?d['ArrayUtils']['is'](jS[0x1])?jS[0x1]['some'](jT=>d['equals'](jP[jS[0x0]],jT)):d['equals'](jP[jS[0x0]],jS[0x1]):jP[jS]!==undefined))){if(jy['all']===undefined||!jy['all'])jO=jz['stateNode'];else if(jy['all']){if(!jz['stateNode']['BDFDBreactSearch']){jz['stateNode']['BDFDBreactSearch']=!![];if(jy['group']){if(jy['name']&&jz['type']&&(jz['type']['render']&&jz['type']['render']['displayName']||jz['type']['displayName']||jz['type']['name']||jz['type'])){let jU=jy['name']['find'](jV=>(jz['type']['render']&&jz['type']['render']['displayName']||jz['type']['displayName']||jz['type']['name']||jz['type'])['split']('\x20_\x20_\x20')[0x0]==jV)||'Default';if(!d['ArrayUtils']['is'](jI[jU]))jI[jU]=[];jI[jU]['push'](jz['stateNode']);}}else jI['push'](jz['stateNode']);}}}if(jO===undefined){let jW=Object['getOwnPropertyNames'](jz);for(let jX=0x0;jO===undefined&&jXk2);k0['key']=k0['key']&&[k0['key']]['flat']()['filter'](k3=>k3);var k4=-0x1;var k5=performance['now']();var k6=k0['unlimited']?0x3b9ac9ff:k0['depth']===undefined?0x1e:k0['depth'];var k7=k0['unlimited']?0x3b9ac9ff:k0['time']===undefined?0x96:k0['time'];var k8=k0['up']?{'return':!![],'sibling':!![],'_reactInternalFiber':!![]}:{'child':!![],'sibling':!![],'_reactInternalFiber':!![]};return k9(k1);function k9(k1){k4++;var kb=undefined;if(k1&&!Node['prototype']['isPrototypeOf'](k1)&&!d['ReactUtils']['getInstance'](k1)&&k4(k1['type']['render']&&k1['type']['render']['displayName']||k1['type']['displayName']||k1['type']['name']||k1['type'])===kc['split']('\x20_\x20_\x20')[0x0])||k0['key']&&k0['key']['some'](kd=>k1['key']==kd)))kb=k1['memoizedProps'];if(kb===undefined){let ke=Object['getOwnPropertyNames'](k1);for(let kf=0x0;kb===undefined&&kfkE))if(kD['updater']&&typeof kD['updater']['isMounted']=='function'&&kD['updater']['isMounted'](kD))kD['forceUpdate']();};d['ReactUtils']['getInstance']=function(kF){if(!d['ObjectUtils']['is'](kF))return null;return kF[Object['keys'](kF)['find'](kG=>kG['startsWith']('__reactInternalInstance'))];};d['ReactUtils']['getValue']=function(kH,kI){if(!kH||!kI)return null;var kJ=Node['prototype']['isPrototypeOf'](kH)?d['ReactUtils']['getInstance'](kH):kH;if(!d['ObjectUtils']['is'](kJ))return null;var kK=kJ,kL=kI['split']('.')['filter'](kM=>kM);for(value of kL){if(!kK)return null;kK=kK[value];}return kK;};d['ReactUtils']['render']=function(kN,kO){if(!d['ReactUtils']['isValidElement'](kN)||!Node['prototype']['isPrototypeOf'](kO))return;try{id['ReactDOM']['render'](kN,kO);let kP=new MutationObserver(kQ=>kQ['forEach'](kR=>{let kS=Array['from'](kR['removedNodes']);if(kS['indexOf'](kO)>-0x1||kS['some'](kT=>kT['contains'](kO))){kP['disconnect']();d['ReactUtils']['unmountComponentAtNode'](kO);}}));kP['observe'](document['body'],{'subtree':!![],'childList':!![]});}catch(kU){d['LogUtils']['error']('Could\x20not\x20render\x20react\x20element!\x20'+kU);}};f['setDefaultProps']=function(kV,kW){if(d['ObjectUtils']['is'](kV))kV['defaultProps']=Object['assign']({},kV['defaultProps'],kW);};d['equals']=function(kX,kY,kZ){var l0=-0x1;if(kZ===undefined||typeof kZ!=='boolean')kZ=![];return l1(kX,kY);function l1(l2,l3){l0++;var l4=!![];if(l0>0x3e8)l4=null;else{if(typeof l2!==typeof l3)l4=![];else if(typeof l2==='function')l4=l2['toString']()==l3['toString']();else if(typeof l2==='undefined')l4=!![];else if(typeof l2==='symbol')l4=!![];else if(typeof l2==='boolean')l4=l2==l3;else if(typeof l2==='string')l4=l2==l3;else if(typeof l2==='number'){if(isNaN(l2)||isNaN(l3))l4=isNaN(l2)==isNaN(l3);else l4=l2==l3;}else if(!l2&&!l3)l4=!![];else if(!l2||!l3)l4=![];else if(typeof l2==='object'){var l5=Object['getOwnPropertyNames'](l2);var l6=Object['getOwnPropertyNames'](l3);if(l5['length']!==l6['length'])l4=![];else for(let l7=0x0;l4===!![]&&l7{let la=d['ReactUtils']['findOwner'](document['querySelector'](d['dotCN']['app']),{'name':'Messages','unlimited':!![]});let lb=d['ReactUtils']['getValue'](la,'_reactInternalFiber.type.prototype');if(la&&lb){let lc=d['ModuleUtils']['patch']({'name':'tempPatch'},lb,'render',{'after':ld=>{lc();let [le,lf]=d['ReactUtils']['findChildren'](ld['returnValue'],{'props':['message','channel']});if(lf>-0x1)for(let lg of le)if(lg['props']['message'])lg['props']['message']=new d['DiscordObjects']['Message'](lg['props']['message']);}});d['ReactUtils']['forceUpdate'](la);}},0x3e8);};d['UserUtils']={};var lh=id['CurrentUserStore']?id['CurrentUserStore']['getCurrentUser']():null;d['UserUtils']['is']=function(li){return li&&li instanceof d['DiscordObjects']['User'];};d['UserUtils']['me']=new Proxy(lh||{},{'get':function(lj,lk){if(!lh)lh=id['CurrentUserStore']['getCurrentUser']();return lh?lh[lk]:null;}});d['UserUtils']['getStatus']=function(ll=d['UserUtils']['me']['id']){ll=typeof ll=='number'?ll['toFixed']():ll;let lm=d['UserUtils']['getActivitiy'](ll);return lm&&lm['type']==d['DiscordConstants']['ActivityTypes']['STREAMING']?'streaming':id['StatusMetaUtils']['getStatus'](ll);};d['UserUtils']['getStatusColor']=function(ln){ln=typeof ln=='string'?ln['toLowerCase']():null;switch(ln){case'online':return d['DiscordConstants']['Colors']['STATUS_GREEN'];case'mobile':return d['DiscordConstants']['Colors']['STATUS_GREEN'];case'idle':return d['DiscordConstants']['Colors']['STATUS_YELLOW'];case'dnd':return d['DiscordConstants']['Colors']['STATUS_RED'];case'playing':return d['DiscordConstants']['Colors']['BRAND'];case'listening':return d['DiscordConstants']['Colors']['SPOTIFY'];case'streaming':return d['DiscordConstants']['Colors']['TWITCH'];default:return d['DiscordConstants']['Colors']['STATUS_GREY'];}};d['UserUtils']['getActivitiy']=function(lo=d['UserUtils']['me']['id']){for(let lp of id['StatusMetaUtils']['getActivities'](lo))if(lp['type']!=d['DiscordConstants']['ActivityTypes']['CUSTOM_STATUS'])return lp;return null;};d['UserUtils']['getAvatar']=function(lq=d['UserUtils']['me']['id']){var lr=id['UserStore']['getUser'](typeof lq=='number'?lq['toFixed']():lq);if(!lr)return window['location']['origin']+'/assets/322c936a8c8be1b803cd94861bdfa868.png';else return((lr['avatar']?'':window['location']['origin'])+id['IconUtils']['getUserAvatarURL'](lr))['split']('?')[0x0];};d['UserUtils']['can']=function(ls,lt=d['UserUtils']['me']['id'],lu=id['LastChannelStore']['getChannelId']()){if(!d['DiscordConstants']['Permissions'][ls])d['LogUtils']['warn'](ls+'\x20not\x20found\x20in\x20Permissions');else{var lv=id['ChannelStore']['getChannel'](lu);if(lv)return id['PermissionUtils']['canUser'](lt,d['DiscordConstants']['Permissions'][ls],lv);}return![];};d['GuildUtils']={};d['GuildUtils']['is']=function(lw){return lw&&lw instanceof d['DiscordObjects']['Guild'];};d['GuildUtils']['getIcon']=function(lx){var ly=id['GuildStore']['getGuild'](typeof lx=='number'?lx['toFixed']():lx);if(!ly||!ly['icon'])return null;return id['IconUtils']['getGuildIconURL'](ly)['split']('?')[0x0];};d['GuildUtils']['getBanner']=function(lz){var lA=id['GuildStore']['getGuild'](typeof lz=='number'?lz['toFixed']():lz);if(!lA||!lA['banner'])return null;return id['IconUtils']['getGuildBannerURL'](lA)['split']('?')[0x0];};d['GuildUtils']['getFolder']=function(lB){return d['LibraryModules']['FolderStore']['guildFolders']['filter'](lC=>lC['folderId'])['find'](lD=>lD['guildIds']['includes'](lB));};d['GuildUtils']['getId']=function(lE){if(!Node['prototype']['isPrototypeOf'](lE)||!d['ReactUtils']['getInstance'](lE))return;let lF=d['DOMUtils']['getParent'](d['dotCN']['guildouter'],lE);if(!lF)return;var lG=lF['querySelector'](d['dotCN']['guildiconwrapper']);var lH=lG&&lG['href']?lG['href']['split']('/')['slice'](-0x2)[0x0]:null;return lH&&!isNaN(parseInt(lH))?lH['toString']():null;};d['GuildUtils']['getData']=function(lI){if(!lI)return null;let lJ=Node['prototype']['isPrototypeOf'](lI)?d['GuildUtils']['getId'](lI):typeof lI=='object'?lI['id']:lI;lJ=typeof lJ=='number'?lJ['toFixed']():lJ;for(let lK of d['GuildUtils']['getAll']())if(lK&&lK['id']==lJ)return lK;return null;};d['GuildUtils']['getAll']=function(){var lL=[],lM=[];for(let lN of d['ReactUtils']['findOwner'](document['querySelector'](d['dotCN']['guilds']),{'name':['Guild','GuildIcon'],'all':!![],'unlimited':!![]})){if(lN['props']&&lN['props']['guild'])lM['push'](Object['assign'](new lN['props']['guild']['constructor'](lN['props']['guild']),{'div':lN['handleContextMenu']&&d['ReactUtils']['findDOMNode'](lN),'instance':lN}));}for(let lO of d['LibraryModules']['FolderStore']['getFlattenedGuildIds']()){let lP=null;for(let lQ of lM)if(lQ['id']==lO){lP=lQ;break;}if(lP)lL['push'](lP);else{let lR=d['LibraryModules']['GuildStore']['getGuild'](lO);lL['push'](Object['assign'](new lR['constructor'](lR),{'div':null,'instance':null}));}}return lL;};d['GuildUtils']['getUnread']=function(lS){var lT=[];for(let lU of lS===undefined||!d['ArrayUtils']['is'](lS)?d['GuildUtils']['getAll']():lS){if(!lU)return null;let lV=Node['prototype']['isPrototypeOf'](lU)?d['GuildUtils']['getId'](lU):typeof lU=='object'?lU['id']:lU;lV=typeof lV=='number'?lV['toFixed']():lV;if(lV&&(id['UnreadGuildUtils']['hasUnread'](lV)||id['UnreadGuildUtils']['getMentionCount'](lV)>0x0))lT['push'](lU);}return lT;};d['GuildUtils']['getPinged']=function(lW){var lX=[];for(let lY of lW===undefined||!d['ArrayUtils']['is'](lW)?d['GuildUtils']['getAll']():lW){if(!lY)return null;let lZ=Node['prototype']['isPrototypeOf'](lY)?d['GuildUtils']['getId'](lY):typeof lY=='object'?lY['id']:lY;lZ=typeof lZ=='number'?lZ['toFixed']():lZ;if(lZ&&id['UnreadGuildUtils']['getMentionCount'](lZ)>0x0)lX['push'](lY);}return lX;};d['GuildUtils']['getMuted']=function(m0){var m1=[];for(let m2 of m0===undefined||!d['ArrayUtils']['is'](m0)?d['GuildUtils']['getAll']():m0){if(!m2)return null;let m3=Node['prototype']['isPrototypeOf'](m2)?d['GuildUtils']['getId'](m2):typeof m2=='object'?m2['id']:m2;m3=typeof m3=='number'?m3['toFixed']():m3;if(m3&&id['MutedUtils']['isGuildOrCategoryOrChannelMuted'](m3))m1['push'](m2);}return m1;};d['GuildUtils']['getSelected']=function(){var m4=id['GuildStore']['getGuild'](id['LastGuildStore']['getGuildId']());if(m4)return d['GuildUtils']['getData'](m4['id'])||Object['assign'](new m4['constructor'](m4),{'div':null,'instance':null});else return null;};d['GuildUtils']['openMenu']=function(m5,m6=d['InternalData']['mousePosition']){if(!m5)return;let m7=Node['prototype']['isPrototypeOf'](m5)?d['GuildUtils']['getId'](m5):typeof m5=='object'?m5['id']:m5;let m8=id['GuildStore']['getGuild'](m7);if(m8)id['ContextMenuUtils']['openContextMenu'](m6,function(m6){return d['ReactUtils']['createElement'](Ah['LibraryComponents']['ContextMenus']['_Exports']['GuildContextMenu']&&Ah['LibraryComponents']['ContextMenus']['_Exports']['GuildContextMenu']['default'],Object['assign']({},m6,{'type':d['DiscordConstants']['ContextMenuTypes']['GUILD_ICON_BAR'],'guild':m8,'badge':id['UnreadGuildUtils']['getMentionCount'](m8['id']),'link':d['DiscordConstants']['Routes']['CHANNEL'](m8['id'],id['LastChannelStore']['getChannelId'](m8['id'])),'selected':m8['id']==id['LastGuildStore']['getGuildId']()}));});};d['GuildUtils']['markAsRead']=function(ma){if(!ma)return;var mb=[];for(let mc of d['ArrayUtils']['is'](ma)?ma:typeof ma=='string'||typeof ma=='number'?Array['of'](ma):Array['from'](ma)){let md=Node['prototype']['isPrototypeOf'](mc)?d['GuildUtils']['getId'](mc):mc&&typeof mc=='object'?mc['id']:mc;let me=md&&id['GuildChannelStore']['getChannels'](md);if(me)for(let mf in me)if(d['ArrayUtils']['is'](me[mf]))for(let mg of me[mf])mb['push'](mg['channel']['id']);}if(mb['length'])id['AckUtils']['bulkAck'](mb);};d['FolderUtils']={};d['FolderUtils']['getId']=function(mh){if(!Node['prototype']['isPrototypeOf'](mh)||!d['ReactUtils']['getInstance'](mh))return;mh=d['DOMUtils']['getParent'](d['dotCN']['guildfolderwrapper'],mh);if(!mh)return;return d['ReactUtils']['findValue'](mh,'folderId',{'up':!![]});};d['FolderUtils']['getDefaultName']=function(mi){let mj=d['LibraryModules']['FolderStore']['getGuildFolderById'](mi);if(!mj)return'';let mk=0x2*d['DiscordConstants']['MAX_GUILD_FOLDER_NAME_LENGTH'];let ml=[],mm=mj['guildIds']['map'](mn=>(d['LibraryModules']['GuildStore']['getGuild'](mn)||{})['name'])['filter'](mo=>mo);for(let ib of mm)if(ib['length']{id['AckUtils']['ack'](nk[nn]);},nn*0x3e8);};d['DataUtils']={};d['DataUtils']['cached']=window['BDFDB']&&window['BDFDB']['DataUtils']&&window['BDFDB']['DataUtils']['cached']||{};d['DataUtils']['save']=function(np,nq,nr,ns){let nt,nu;if(!d['BDUtils']['isBDv2']()){nu=typeof nq==='string'?nq:nq['name'];nt=ia['path']['join'](d['BDUtils']['getPluginsFolder'](),nu+'.config.json');}else{nu=typeof nq==='string'?nq['toLowerCase']():null;let nv=nu?d['Plugins'][nu]?d['Plugins'][nu]['contentPath']:null:nq['contentPath'];if(!nv)return;nt=ia['path']['join'](nv,'settings.json');}let nw=d['DataUtils']['cached'][nu]!==undefined?d['DataUtils']['cached'][nu]:f['readConfig'](nt)||{};if(nr===undefined)nw=d['ObjectUtils']['is'](np)?d['ObjectUtils']['sort'](np):np;else{if(ns===undefined)nw[nr]=d['ObjectUtils']['is'](np)?d['ObjectUtils']['sort'](np):np;else{if(!d['ObjectUtils']['is'](nw[nr]))nw[nr]={};nw[nr][ns]=d['ObjectUtils']['is'](np)?d['ObjectUtils']['sort'](np):np;}}let nx=d['ObjectUtils']['is'](nw);if(nr!==undefined&&nx&&d['ObjectUtils']['is'](nw[nr])&&d['ObjectUtils']['isEmpty'](nw[nr]))delete nw[nr];if(d['ObjectUtils']['isEmpty'](nw)){delete d['DataUtils']['cached'][nu];if(ia['fs']['existsSync'](nt))ia['fs']['unlinkSync'](nt);}else{if(nx)nw=d['ObjectUtils']['sort'](nw);d['DataUtils']['cached'][nu]=nx?d['ObjectUtils']['deepAssign']({},nw):nw;ia['fs']['writeFileSync'](nt,JSON['stringify'](nw,null,'\x09'));}};d['DataUtils']['load']=function(ny,nz,nA){let nB,nC;if(!d['BDUtils']['isBDv2']()){nC=typeof ny==='string'?ny:ny['name'];nB=ia['path']['join'](d['BDUtils']['getPluginsFolder'](),nC+'.config.json');}else{nC=typeof ny==='string'?ny['toLowerCase']():null;let nD=nC?d['Plugins'][nC]?d['Plugins'][nC]['contentPath']:null:ny['contentPath'];if(!nD)return{};nB=ia['path']['join'](nD,'settings.json');}let nE=d['DataUtils']['cached'][nC]!==undefined?d['DataUtils']['cached'][nC]:f['readConfig'](nB)||{};let nF=d['ObjectUtils']['is'](nE);d['DataUtils']['cached'][nC]=nF?d['ObjectUtils']['deepAssign']({},nE):nE;if(nz===undefined)return nE;else{let nG=nF?d['ObjectUtils']['is'](nE[nz])||nE[nz]==undefined?d['ObjectUtils']['deepAssign']({},nE[nz]):nE[nz]:null;if(nA===undefined)return nG;else return!d['ObjectUtils']['is'](nG)||nG[nA]===undefined?null:nG[nA];}};d['DataUtils']['remove']=function(nH,nI,nJ){let nK,nL;if(!d['BDUtils']['isBDv2']()){nL=typeof nH==='string'?nH:nH['name'];nK=ia['path']['join'](d['BDUtils']['getPluginsFolder'](),nL+'.config.json');}else{nL=typeof nH==='string'?nH['toLowerCase']():null;let nM=nL?d['Plugins'][nL]?d['Plugins'][nL]['contentPath']:null:nH['contentPath'];if(!nM)return;nK=ia['path']['join'](nM,'settings.json');}let nN=d['DataUtils']['cached'][nL]!==undefined?d['DataUtils']['cached'][nL]:f['readConfig'](nK)||{};let nO=d['ObjectUtils']['is'](nN);if(nI===undefined||!nO)nN={};else{if(nJ===undefined)delete nN[nI];else if(d['ObjectUtils']['is'](nN[nI]))delete nN[nI][nJ];}if(d['ObjectUtils']['is'](nN[nI])&&d['ObjectUtils']['isEmpty'](nN[nI]))delete nN[nI];if(d['ObjectUtils']['isEmpty'](nN)){delete d['DataUtils']['cached'][nL];if(ia['fs']['existsSync'](nK))ia['fs']['unlinkSync'](nK);}else{if(nO)nN=d['ObjectUtils']['sort'](nN);d['DataUtils']['cached'][nL]=nO?d['ObjectUtils']['deepAssign']({},nN):nN;ia['fs']['writeFileSync'](nK,JSON['stringify'](nN,null,'\x09'));}};d['DataUtils']['get']=function(nP,nQ,nR){nP=typeof nP=='string'?d['BDUtils']['getPlugin'](nP):nP;if(!d['ObjectUtils']['is'](nP))return nR===undefined?{}:null;let nS=(nP==d&&f||nP)['defaults'];if(!d['ObjectUtils']['is'](nS)||!nS[nQ])return nR===undefined?{}:null;var nT=d['DataUtils']['load'](nP,nQ),nU={},nV=![];for(let nW in nS[nQ]){if(nT[nW]==null){nU[nW]=d['ObjectUtils']['is'](nS[nQ][nW]['value'])?d['ObjectUtils']['deepAssign']({},nS[nQ][nW]['value']):nS[nQ][nW]['value'];nV=!![];}else nU[nW]=nT[nW];}if(nV)d['DataUtils']['save'](nU,nP,nQ);if(nR===undefined)return nU;else return nU[nR]===undefined?null:nU[nR];};f['readConfig']=function(nX){try{return JSON['parse'](ia['fs']['readFileSync'](nX));}catch(nY){return{};}};d['ColorUtils']={};d['ColorUtils']['convert']=function(nZ,o0,o1){if(d['ObjectUtils']['is'](nZ)){var o2={};for(let o3 in nZ)o2[o3]=d['ColorUtils']['convert'](nZ[o3],o0,o1);return o2;}else{o0=o0===undefined||!o0?o0='RGBCOMP':o0['toUpperCase']();o1=o1===undefined||!o1||!['RGB','RGBA','RGBCOMP','HSL','HSLA','HSLCOMP','HEX','HEXA','INT']['includes'](o1['toUpperCase']())?d['ColorUtils']['getType'](nZ):o1['toUpperCase']();if(o0=='RGBCOMP'){switch(o1){case'RGBCOMP':if(nZ['length']==0x3)return oD(nZ);else if(nZ['length']==0x4){let o4=oG(nZ['pop']());return oD(nZ)['concat'](o4);}break;case'RGB':return oD(nZ['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));case'RGBA':let o5=nZ['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');let o4=oG(o5['pop']());return oD(o5)['concat'](o4);case'HSLCOMP':if(nZ['length']==0x3)return d['ColorUtils']['convert']('hsl('+oK(nZ)['join'](',')+')','RGBCOMP');else if(nZ['length']==0x4){let o7=oG(nZ['pop']());return d['ColorUtils']['convert']('hsl('+oK(nZ)['join'](',')+')','RGBCOMP')['concat'](o7);}break;case'HSL':var o8=oK(nZ['replace'](/\s/g,'')['slice'](0x4,-0x1)['split'](','));var o9,oa,ob,oc,od,oe,of,og;var oh=o8[0x0]/0x168,oi=parseInt(o8[0x1])/0x64,oj=parseInt(o8[0x2])/0x64;oc=Math['floor'](oh*0x6);od=oh*0x6-oc;oe=oj*(0x1-oi);of=oj*(0x1-od*oi);og=oj*(0x1-(0x1-od)*oi);switch(oc%0x6){case 0x0:o9=oj,oa=og,ob=oe;break;case 0x1:o9=of,oa=oj,ob=oe;break;case 0x2:o9=oe,oa=oj,ob=og;break;case 0x3:o9=oe,oa=of,ob=oj;break;case 0x4:o9=og,oa=oe,ob=oj;break;case 0x5:o9=oj,oa=oe,ob=of;break;}return[Math['round'](o9*0xff),Math['round'](oa*0xff),Math['round'](ob*0xff)];case'HSLA':var o8=nZ['replace'](/\s/g,'')['slice'](0x5,-0x1)['split'](',');return d['ColorUtils']['convert']('hsl('+o8['slice'](0x0,0x3)['join'](',')+')','RGBCOMP')['concat'](oG(o8['pop']()));case'HEX':var ol=/^#([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'](nZ);return[parseInt(ol[0x1]+ol[0x1]||ol[0x4],0x10)['toString'](),parseInt(ol[0x2]+ol[0x2]||ol[0x5],0x10)['toString'](),parseInt(ol[0x3]+ol[0x3]||ol[0x6],0x10)['toString']()];case'HEXA':var ol=/^#([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'](nZ);return[parseInt(ol[0x1]+ol[0x1]||ol[0x5],0x10)['toString'](),parseInt(ol[0x2]+ol[0x2]||ol[0x6],0x10)['toString'](),parseInt(ol[0x3]+ol[0x3]||ol[0x7],0x10)['toString'](),Math['floor'](d['NumberUtils']['mapRange']([0x0,0xff],[0x0,0x64],parseInt(ol[0x4]+ol[0x4]||ol[0x8],0x10)['toString']()))/0x64];case'INT':nZ=oO(nZ);return[(nZ>>0x10&0xff)['toString'](),(nZ>>0x8&0xff)['toString'](),(nZ&0xff)['toString']()];default:return null;}}else{var on=o1=='RGBCOMP'?nZ:d['ColorUtils']['convert'](nZ,'RGBCOMP',o1);if(on)switch(o0){case'RGB':return'rgb('+oD(on['slice'](0x0,0x3))['join'](',')+')';case'RGBA':on=on['slice'](0x0,0x4);var oo=on['length']==0x4?oG(on['pop']()):0x1;return'rgba('+oD(on)['concat'](oo)['join'](',')+')';case'HSLCOMP':var oo=on['length']==0x4?oG(on['pop']()):null;var o8=oK(d['ColorUtils']['convert'](on,'HSL')['replace'](/\s/g,'')['split'](','));return oo!=null?o8['concat'](oo):o8;case'HSL':var o9=oB(on[0x0]),oa=oB(on[0x1]),ob=oB(on[0x2]);var ou=Math['max'](o9,oa,ob),ov=Math['min'](o9,oa,ob),ow=ou-ov,oh,oi=ou===0x0?0x0:ow/ou,oj=ou/0xff;switch(ou){case ov:oh=0x0;break;case o9:oh=oa-ob+ow*(oa0xff?0xff:od<0x0?0x0:od;}};function oD(oE){return oE['map'](od=>{return oB(od);});};function oG(oo){if(oo==null){return 0x1;}else{oo=oo['toString']();oo=(oo['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(oo['replace'](/[^0-9\.\-]/g,''));return isNaN(oo)||oo>0x1?0x1:oo<0x0?0x0:oo;}};function oI(oJ){if(oJ==null){return'100%';}else{oJ=parseFloat(oJ['toString']()['replace'](/[^0-9\.\-]/g,''));return(isNaN(oJ)||oJ>0x64?0x64:oJ<0x0?0x0:oJ)+'%';}};function oK(oL){let oh=parseFloat(oL['shift']()['toString']()['replace'](/[^0-9\.\-]/g,''));oh=isNaN(oh)||oh>0x168?0x168:oh<0x0?0x0:oh;return[oh]['concat'](oL['map'](oN=>{return oI(oN);}));};function oO(od){if(od==null){return 0xffffff;}else{od=parseInt(od['toString']()['replace'](/[^0-9]/g,''));return isNaN(od)||od>0xffffff?0xffffff:od<0x0?0x0:od;}};};d['ColorUtils']['setAlpha']=function(oQ,oR,oS){if(d['ObjectUtils']['is'](oQ)){var oT={};for(let oU in oQ)oT[oU]=d['ColorUtils']['setAlpha'](oQ[oU],oR,oS);return oT;}else{var oV=d['ColorUtils']['convert'](oQ,'RGBCOMP');if(oV){oR=oR['toString']();oR=(oR['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(oR['replace'](/[^0-9\.\-]/g,''));oR=isNaN(oR)||oR>0x1?0x1:oR<0x0?0x0:oR;oV[0x3]=oR;oS=(oS||d['ColorUtils']['getType'](oQ))['toUpperCase']();oS=oS=='RGB'||oS=='HSL'||oS=='HEX'?oS+'A':oS;return d['ColorUtils']['convert'](oV,oS);}}return null;};d['ColorUtils']['getAlpha']=function(oW){var oX=d['ColorUtils']['convert'](oW,'RGBCOMP');if(oX){if(oX['length']==0x3)return 0x1;else if(oX['length']==0x4){let oY=oX[0x3]['toString']();oY=(oY['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(oY['replace'](/[^0-9\.\-]/g,''));return isNaN(oY)||oY>0x1?0x1:oY<0x0?0x0:oY;}}return null;};d['ColorUtils']['change']=function(oZ,p0,p1){p0=parseFloat(p0);if(oZ!=null&&typeof p0=='number'&&!isNaN(p0)){if(d['ObjectUtils']['is'](oZ)){var p2={};for(let p3 in oZ)p2[p3]=d['ColorUtils']['change'](oZ[p3],p0,p1);return p2;}else{var p4=d['ColorUtils']['convert'](oZ,'RGBCOMP');if(p4){if(parseInt(p0)!==p0){p0=p0['toString']();p0=(p0['indexOf']('%')>-0x1?0.01:0x1)*parseFloat(p0['replace'](/[^0-9\.\-]/g,''));p0=isNaN(p0)?0x0:p0;return d['ColorUtils']['convert']([Math['round'](p4[0x0]*(0x1+p0)),Math['round'](p4[0x1]*(0x1+p0)),Math['round'](p4[0x2]*(0x1+p0))],p1||d['ColorUtils']['getType'](oZ));}else return d['ColorUtils']['convert']([Math['round'](p4[0x0]+p0),Math['round'](p4[0x1]+p0),Math['round'](p4[0x2]+p0)],p1||d['ColorUtils']['getType'](oZ));}}}return null;};d['ColorUtils']['invert']=function(p5,p6){if(d['ObjectUtils']['is'](p5)){var p7={};for(let p8 in p5)p7[p8]=d['ColorUtils']['invert'](p5[p8],p6);return p7;}else{var p9=d['ColorUtils']['convert'](p5,'RGBCOMP');if(p9)return d['ColorUtils']['convert']([0xff-p9[0x0],0xff-p9[0x1],0xff-p9[0x2]],p6||d['ColorUtils']['getType'](p5));}return null;};d['ColorUtils']['compare']=function(pa,pb){if(pa&&pb){pa=d['ColorUtils']['convert'](pa,'RGBA');pb=d['ColorUtils']['convert'](pb,'RGBA');if(pa&&pb)return d['equals'](pa,pb);}return null;};d['ColorUtils']['isBright']=function(pc,pd=0xa0){pc=d['ColorUtils']['convert'](pc,'RGBCOMP');if(!pc)return![];return parseInt(pd)