const __p_0rnZ_dlrArray=[false,"updatePresence","details","state"];const DiscordRPC=function(){let ipcRenderer=null;function init(){try{if(typeof require!=="undefined"){const electron=require("electron");ipcRenderer=electron["ipcRenderer"];return true}}catch(e){}return __p_0rnZ_dlrArray[0x0]}const isElectron=init();return{[__p_0rnZ_dlrArray[0x1]]:async function(presence){if(!isElectron||!ipcRenderer){return{["success"]:__p_0rnZ_dlrArray[0x0]}}return await ipcRenderer["invoke"]("discord-update-presence",presence)},["setMenuPresence"]:async function(){return await this[__p_0rnZ_dlrArray[0x1]]({[__p_0rnZ_dlrArray[0x2]]:"In Main Menu",[__p_0rnZ_dlrArray[0x3]]:"Building a Torrent Empire"})},["setPlayingPresence"]:async function(){return await this[__p_0rnZ_dlrArray[0x1]]({[__p_0rnZ_dlrArray[0x2]]:"Playing",[__p_0rnZ_dlrArray[0x3]]:"Building an Empire"})},["isAvailable"]:function(){return isElectron}}}();window["DiscordRPC"]=DiscordRPC;