(()=>{"use strict";var e={348:(e,r,o)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.register=void 0;const i=o(840),n=new Map,s={init(){window.postMessage("init","*",[])},loadPrefs:e=>i.ipcRenderer.invoke("loadPrefs",e),savePrefs:(e,r)=>i.ipcRenderer.invoke("savePrefs",e,r),chooseFiles:()=>i.ipcRenderer.invoke("chooseFiles"),saveFile:e=>i.ipcRenderer.invoke("saveFile",e),getArgs:()=>i.ipcRenderer.invoke("getArgs"),getAppVersion:()=>i.ipcRenderer.invoke("getAppVersion"),getPlatform:()=>i.ipcRenderer.invoke("getPlatform"),getTmpDir:()=>i.ipcRenderer.invoke("getTmpDir"),getArchives:()=>i.ipcRenderer.invoke("getArchives"),addArchive:e=>i.ipcRenderer.invoke("addArchive",e),removeArchive:e=>i.ipcRenderer.invoke("removeArchive",e),updateArchive:e=>i.ipcRenderer.invoke("updateArchive",e),close:()=>i.ipcRenderer.invoke("close"),focus:()=>i.ipcRenderer.invoke("focus"),toggleMaximized:()=>i.ipcRenderer.invoke("toggleMaximized"),setWindowState:e=>i.ipcRenderer.invoke("setWindowState",e),download:(e,r,o)=>i.ipcRenderer.invoke("download",e,r,o),open:e=>i.ipcRenderer.invoke("open",e),launch:(e,r)=>i.ipcRenderer.invoke("launch",e,r),alert:e=>i.ipcRenderer.invoke("alert",e),notifyUpdate:e=>i.ipcRenderer.invoke("notifyUpdate",e),requestInspector:()=>i.ipcRenderer.invoke("requestInspector"),registerInspector:()=>i.ipcRenderer.invoke("registerInspector"),render:(e,r,o)=>i.ipcRenderer.invoke("render",e,r,o),getPathForFile:e=>e&&i.webUtils.getPathForFile(e)||void 0,resolve:e=>i.ipcRenderer.invoke("resolve",e),upload:(e,r,o)=>new Promise(((s,t)=>{const p={id:e,file:r,onProgress:o,onComplete:s};n.set(e,p),i.ipcRenderer.send("uploadRequest",e,r)}))};r.register=function(e={}){i.ipcRenderer.on("focus",(()=>window.postMessage("focus","*",[]))),i.ipcRenderer.on("blur",(()=>window.postMessage("blur","*",[]))),i.ipcRenderer.on("uploadProgress",((e,r,o,i)=>{const s=n.get(r);s&&s.onProgress&&s.onProgress(o,i)})),i.ipcRenderer.on("uploadComplete",((e,r,o)=>{const i=n.get(r);i&&i.onComplete&&i.onComplete(o),n.delete(r)})),i.contextBridge.exposeInMainWorld("ipc",Object.assign(s,e))}},840:e=>{e.exports=require("electron")}},r={};function o(i){var n=r[i];if(void 0!==n)return n.exports;var s=r[i]={exports:{}};return e[i](s,s.exports,o),s.exports}(()=>{const e=o(840);(0,o(348).register)({init(){const r=new MessageChannel;e.ipcRenderer.postMessage("subscribe",null,[r.port1]),window.postMessage("init","*",[r.port2])}})})()})();