if("__TAURI__"inwindow){var__TAURI_GLOBALSHORTCUT__=function(e){"use strict";vart=Object.defineProperty,n=(e,t,n)=>{if(!t.has(e))throwTypeError("Cannot "+n)},r=(e,t,r)=>(n(e,t,"read from private field"),r?r.call(e):t.get(e)),i=(e,t,r,i)=>(n(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r);functiona(e,t=!1){letn=window.crypto.getRandomValues(newUint32Array(1))[0],r=`_${n}`;returnObject.defineProperty(window,r,{value:n=>(t&&Reflect.deleteProperty(window,r),e?.(n)),writable:!1,configurable:!0}),n}((e,n)=>{for(varrinn)t(e,r,{get:n[r],enumerable:!0})})({},{Channel:()=>s,PluginListener:()=>l,addPluginListener:()=>c,convertFileSrc:()=>_,invoke:()=>u,transformCallback:()=>a});varo,s=class{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,((e,t,n)=>{if(t.has(e))throwTypeError("Cannot add the same private member more than once");tinstanceofWeakSet?t.add(e):t.set(e,n)})(this,o,(()=>{})),this.id=a((e=>{r(this,o).call(this,e)}))}setonmessage(e){i(this,o,e)}getonmessage(){returnr(this,o)}toJSON(){return`__CHANNEL__:${this.id}`}};o=newWeakMap;varl=class{constructor(e,t,n){this.plugin=e,this.event=t,this.channelId=n}asyncunregister(){returnu(`plugin:${this.plugin}|remove_listener`,{event:this.event,channelId:this.channelId})}};asyncfunctionc(e,t,n){letr=news;returnr.onmessage=n,u(`plugin:${e}|register_listener`,{event:t,handler:r}).then((()=>newl(e,t,r.id)))}asyncfunctionu(e,t={},n){returnnewPromise(((r,i)=>{leto=a((e=>{r(e),Reflect.deleteProperty(window,`_${s}`)}),!0),s=a((e=>{i(e),Reflect.deleteProperty(window,`_${o}`)}),!0);window.__TAURI_IPC__({cmd:e,callback:o,error:s,payload:t,options:n})}))}function_(e,t="asset"){returnwindow.__TAURI__.convertFileSrc(e,t)}returne.isRegistered=asyncfunction(e){returnawaitu("plugin:globalShortcut|is_registered",{shortcut:e})},e.register=asyncfunction(e,t){constn=news;returnn.onmessage=t,awaitu("plugin:globalShortcut|register",{shortcut:e,handler:n})},e.registerAll=asyncfunction(e,t){constn=news;returnn.onmessage=t,awaitu("plugin:globalShortcut|register_all",{shortcuts:e,handler:n})},e.unregister=asyncfunction(e){returnawaitu("plugin:globalShortcut|unregister",{shortcut:e})},e.unregisterAll=asyncfunction(){returnawaitu("plugin:globalShortcut|unregister_all")},e}({});Object.defineProperty(window.__TAURI__,"globalShortcut",{value:__TAURI_GLOBALSHORTCUT__})}
if("__TAURI__"inwindow){var__TAURI_LOG__=function(e){"use strict";varn=Object.defineProperty,t=(e,t)=>{for(varrint)n(e,r,{get:t[r],enumerable:!0})},r=(e,n,t)=>{if(!n.has(e))throwTypeError("Cannot "+t)},a=(e,n,t)=>(r(e,n,"read from private field"),t?t.call(e):n.get(e)),i=(e,n,t,a)=>(r(e,n,"write to private field"),a?a.call(e,t):n.set(e,t),t);functiono(e,n=!1){lett=window.crypto.getRandomValues(newUint32Array(1))[0],r=`_${t}`;returnObject.defineProperty(window,r,{value:t=>(n&&Reflect.deleteProperty(window,r),e?.(t)),writable:!1,configurable:!0}),t}t({},{Channel:()=>c,PluginListener:()=>s,addPluginListener:()=>u,convertFileSrc:()=>d,invoke:()=>_,transformCallback:()=>o});varl,c=class{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,((e,n,t)=>{if(n.has(e))throwTypeError("Cannot add the same private member more than once");ninstanceofWeakSet?n.add(e):n.set(e,t)})(this,l,(()=>{})),this.id=o((e=>{a(this,l).call(this,e)}))}setonmessage(e){i(this,l,e)}getonmessage(){returna(this,l)}toJSON(){return`__CHANNEL__:${this.id}`}};l=newWeakMap;vars=class{constructor(e,n,t){this.plugin=e,this.event=n,this.channelId=t}asyncunregister(){return_(`plugin:${this.plugin}|remove_listener`,{event:this.event,channelId:this.channelId})}};asyncfunctionu(e,n,t){letr=newc;returnr.onmessage=t,_(`plugin:${e}|register_listener`,{event:n,handler:r}).then((()=>news(e,n,r.id)))}asyncfunction_(e,n={}){returnnewPromise(((t,r)=>{leta=o((e=>{t(e),Reflect.deleteProperty(window,`_${i}`)}),!0),i=o((e=>{r(e),Reflect.deleteProperty(window,`_${a}`)}),!0);window.__TAURI_IPC__({cmd:e,callback:a,error:i,...n})}))}functiond(e,n="asset"){lett=encodeURIComponent(e);returnnavigator.userAgent.includes("Windows")?`https://${n}.localhost/${t}`:`${n}://localhost/${t}`}t({},{TauriEvent:()=>f,emit:()=>E,listen:()=>v,once:()=>h});varw,f=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e))(f||{});asyncfunctiong(e,n){await_("plugin:event|unlisten",{event:e,eventId:n})}asyncfunctionv(e,n,t){return_("plugin:event|listen",{event:e,windowLabel:t?.target,handler:o(n)}).then((n=>async()=>g(e,n)))}asyncfunctionh(e,n,t){returnv(e,(t=>{n(t),g(e,t.id).catch((()=>{}))}),t)}asyncfunctionE(e,n,t){await_("plugin:event|emit",{event:e,windowLabel:t?.target,payload:n})}asyncfunctionI(e,n,t){varr,a;consti=null===(r=(newError).stack)||void0===r?void0:r.split("\n").map((e=>e.split("@"))),o=null==i?void0:i.filter((([e,n])=>e.length>0&&"[native code]"!==n)),{file:l,line:c,keyValues:s}=null!=t?t:{};letu=null===(a=null==o?void0:o[0])||void0===a?void0:a.filter((e=>e.length>0)).join("@");"Error"===u&&(u="webview::unknown"),awaitwindow.__TAURI_INVOKE__("plugin:log|log",{level:e,message:n,location:u,file:l,line:c,keyValues:s})}returnfunction(e){e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warn=4]="Warn",e[e.Error=5]="Error"}(w||(w={})),e.attachConsole=asyncfunction(){returnawaitv("log://log",(e=>{constn=e.payload,t=n.message.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,"");switch(n.level){casew.Trace:console.log(t);break;casew.Debug:console.debug(t);break;casew.Info:console.info(t);break;casew.Warn:console.warn(t);break;casew.Error:console.error(t);break;default:thrownewError(`unknown log level ${n.level}`)}}))},e.debug=asyncfunction(e,n){awaitI(w.Debug,e,n)},e.error=asyncfunction(e,n){awaitI(w.Error,e,n)},e.info=asyncfunction(e,n){awaitI(w.Info,e,n)},e.trace=asyncfunction(e,n){awaitI(w.Trace,e,n)},e.warn=asyncfunction(e,n){awaitI(w.Warn,e,n)},e}({});Object.defineProperty(window.__TAURI__,"log",{value:__TAURI_LOG__})}
if("__TAURI__"inwindow){var__TAURI_LOG__=function(e){"use strict";varn=Object.defineProperty,t=(e,t)=>{for(varrint)n(e,r,{get:t[r],enumerable:!0})},r=(e,n,t)=>{if(!n.has(e))throwTypeError("Cannot "+t)},a=(e,n,t)=>(r(e,n,"read from private field"),t?t.call(e):n.get(e)),i=(e,n,t,a)=>(r(e,n,"write to private field"),a?a.call(e,t):n.set(e,t),t);functiono(e,n=!1){lett=window.crypto.getRandomValues(newUint32Array(1))[0],r=`_${t}`;returnObject.defineProperty(window,r,{value:t=>(n&&Reflect.deleteProperty(window,r),e?.(t)),writable:!1,configurable:!0}),t}t({},{Channel:()=>c,PluginListener:()=>s,addPluginListener:()=>u,convertFileSrc:()=>d,invoke:()=>_,transformCallback:()=>o});varl,c=class{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,((e,n,t)=>{if(n.has(e))throwTypeError("Cannot add the same private member more than once");ninstanceofWeakSet?n.add(e):n.set(e,t)})(this,l,(()=>{})),this.id=o((e=>{a(this,l).call(this,e)}))}setonmessage(e){i(this,l,e)}getonmessage(){returna(this,l)}toJSON(){return`__CHANNEL__:${this.id}`}};l=newWeakMap;vars=class{constructor(e,n,t){this.plugin=e,this.event=n,this.channelId=t}asyncunregister(){return_(`plugin:${this.plugin}|remove_listener`,{event:this.event,channelId:this.channelId})}};asyncfunctionu(e,n,t){letr=newc;returnr.onmessage=t,_(`plugin:${e}|register_listener`,{event:n,handler:r}).then((()=>news(e,n,r.id)))}asyncfunction_(e,n={},t){returnnewPromise(((r,a)=>{leti=o((e=>{r(e),Reflect.deleteProperty(window,`_${l}`)}),!0),l=o((e=>{a(e),Reflect.deleteProperty(window,`_${i}`)}),!0);window.__TAURI_IPC__({cmd:e,callback:i,error:l,payload:n,options:t})}))}functiond(e,n="asset"){returnwindow.__TAURI__.convertFileSrc(e,n)}t({},{TauriEvent:()=>f,emit:()=>E,listen:()=>v,once:()=>h});varw,f=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e))(f||{});asyncfunctiong(e,n){await_("plugin:event|unlisten",{event:e,eventId:n})}asyncfunctionv(e,n,t){return_("plugin:event|listen",{event:e,windowLabel:t?.target,handler:o(n)}).then((n=>async()=>g(e,n)))}asyncfunctionh(e,n,t){returnv(e,(t=>{n(t),g(e,t.id).catch((()=>{}))}),t)}asyncfunctionE(e,n,t){await_("plugin:event|emit",{event:e,windowLabel:t?.target,payload:n})}asyncfunctionI(e,n,t){varr,a;consti=null===(r=(newError).stack)||void0===r?void0:r.split("\n").map((e=>e.split("@"))),o=null==i?void0:i.filter((([e,n])=>e.length>0&&"[native code]"!==n)),{file:l,line:c,keyValues:s}=null!=t?t:{};letu=null===(a=null==o?void0:o[0])||void0===a?void0:a.filter((e=>e.length>0)).join("@");"Error"===u&&(u="webview::unknown"),awaitwindow.__TAURI_INVOKE__("plugin:log|log",{level:e,message:n,location:u,file:l,line:c,keyValues:s})}returnfunction(e){e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warn=4]="Warn",e[e.Error=5]="Error"}(w||(w={})),e.attachConsole=asyncfunction(){returnawaitv("log://log",(e=>{constn=e.payload,t=n.message.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]/g,"");switch(n.level){casew.Trace:console.log(t);break;casew.Debug:console.debug(t);break;casew.Info:console.info(t);break;casew.Warn:console.warn(t);break;casew.Error:console.error(t);break;default:thrownewError(`unknown log level ${n.level}`)}}))},e.debug=asyncfunction(e,n){awaitI(w.Debug,e,n)},e.error=asyncfunction(e,n){awaitI(w.Error,e,n)},e.info=asyncfunction(e,n){awaitI(w.Info,e,n)},e.trace=asyncfunction(e,n){awaitI(w.Trace,e,n)},e.warn=asyncfunction(e,n){awaitI(w.Warn,e,n)},e}({});Object.defineProperty(window.__TAURI__,"log",{value:__TAURI_LOG__})}
if("__TAURI__"inwindow){var__TAURI_NOTIFICATION__=function(n){"use strict";vare=Object.defineProperty,i=(n,e,i)=>{if(!e.has(n))throwTypeError("Cannot "+i)},t=(n,e,t)=>(i(n,e,"read from private field"),t?t.call(n):e.get(n)),o=(n,e,t,o)=>(i(n,e,"write to private field"),o?o.call(n,t):e.set(n,t),t);functionr(n,e=!1){leti=window.crypto.getRandomValues(newUint32Array(1))[0],t=`_${i}`;returnObject.defineProperty(window,t,{value:i=>(e&&Reflect.deleteProperty(window,t),n?.(i)),writable:!1,configurable:!0}),i}((n,i)=>{for(vartini)e(n,t,{get:i[t],enumerable:!0})})({},{Channel:()=>a,PluginListener:()=>f,addPluginListener:()=>d,convertFileSrc:()=>p,invoke:()=>_,transformCallback:()=>r});varc,a=class{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,((n,e,i)=>{if(e.has(n))throwTypeError("Cannot add the same private member more than once");einstanceofWeakSet?e.add(n):e.set(n,i)})(this,c,(()=>{})),this.id=r((n=>{t(this,c).call(this,n)}))}setonmessage(n){o(this,c,n)}getonmessage(){returnt(this,c)}toJSON(){return`__CHANNEL__:${this.id}`}};c=newWeakMap;vars,l,u,f=class{constructor(n,e,i){this.plugin=n,this.event=e,this.channelId=i}asyncunregister(){return_(`plugin:${this.plugin}|remove_listener`,{event:this.event,channelId:this.channelId})}};asyncfunctiond(n,e,i){lett=newa;returnt.onmessage=i,_(`plugin:${n}|register_listener`,{event:e,handler:t}).then((()=>newf(n,e,t.id)))}asyncfunction_(n,e={}){returnnewPromise(((i,t)=>{leto=r((n=>{i(n),Reflect.deleteProperty(window,`_${c}`)}),!0),c=r((n=>{t(n),Reflect.deleteProperty(window,`_${o}`)}),!0);window.__TAURI_IPC__({cmd:n,callback:o,error:c,...e})}))}functionp(n,e="asset"){leti=encodeURIComponent(n);returnnavigator.userAgent.includes("Windows")?`https://${e}.localhost/${i}`:`${e}://localhost/${i}`}returnfunction(n){n.Year="Year",n.Month="Month",n.TwoWeeks="TwoWeeks",n.Week="Week",n.Day="Day",n.Hour="Hour",n.Minute="Minute",n.Second="Second"}(s||(s={})),n.Importance=void0,(l=n.Importance||(n.Importance={}))[l.None=0]="None",l[l.Min=1]="Min",l[l.Low=2]="Low",l[l.Default=3]="Default",l[l.High=4]="High",n.Visibility=void0,(u=n.Visibility||(n.Visibility={}))[u.Secret=-1]="Secret",u[u.Private=0]="Private",u[u.Public=1]="Public",n.active=asyncfunction(){return_("plugin:notification|get_active")},n.cancel=asyncfunction(n){return_("plugin:notification|cancel",{notifications:n})},n.cancelAll=asyncfunction(){return_("plugin:notification|cancel")},n.channels=asyncfunction(){return_("plugin:notification|getActive")},n.createChannel=asyncfunction(n){return_("plugin:notification|create_channel",{...n})},n.isPermissionGranted=asyncfunction(){return"default"!==window.Notification.permission?Promise.resolve("granted"===window.Notification.permission):_("plugin:notification|is_permission_granted")},n.onAction=asyncfunction(n){returnd("notification","actionPerformed",n)},n.onNotificationReceived=asyncfunction(n){returnd("notification","notification",n)},n.pending=asyncfunction(){return_("plugin:notification|get_pending")},n.registerActionTypes=asyncfunction(n){return_("plugin:notification|register_action_types",{types:n})},n.removeActive=asyncfunction(n){return_("plugin:notification|remove_active",{notifications:n})},n.removeAllActive=asyncfunction(){return_("plugin:notification|remove_active")},n.removeChannel=asyncfunction(n){return_("plugin:notification|delete_channel",{id:n})},n.requestPermission=asyncfunction(){returnwindow.Notification.requestPermission()},n.sendNotification=function(n){"string"==typeofn?newwindow.Notification(n):newwindow.Notification(n.title,n)},n}({});Object.defineProperty(window.__TAURI__,"notification",{value:__TAURI_NOTIFICATION__})}
if("__TAURI__"inwindow){var__TAURI_NOTIFICATION__=function(n){"use strict";vare=Object.defineProperty,i=(n,e,i)=>{if(!e.has(n))throwTypeError("Cannot "+i)},t=(n,e,t)=>(i(n,e,"read from private field"),t?t.call(n):e.get(n)),o=(n,e,t,o)=>(i(n,e,"write to private field"),o?o.call(n,t):e.set(n,t),t);functionr(n,e=!1){leti=window.crypto.getRandomValues(newUint32Array(1))[0],t=`_${i}`;returnObject.defineProperty(window,t,{value:i=>(e&&Reflect.deleteProperty(window,t),n?.(i)),writable:!1,configurable:!0}),i}((n,i)=>{for(vartini)e(n,t,{get:i[t],enumerable:!0})})({},{Channel:()=>a,PluginListener:()=>f,addPluginListener:()=>d,convertFileSrc:()=>w,invoke:()=>_,transformCallback:()=>r});varc,a=class{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,((n,e,i)=>{if(e.has(n))throwTypeError("Cannot add the same private member more than once");einstanceofWeakSet?e.add(n):e.set(n,i)})(this,c,(()=>{})),this.id=r((n=>{t(this,c).call(this,n)}))}setonmessage(n){o(this,c,n)}getonmessage(){returnt(this,c)}toJSON(){return`__CHANNEL__:${this.id}`}};c=newWeakMap;vars,l,u,f=class{constructor(n,e,i){this.plugin=n,this.event=e,this.channelId=i}asyncunregister(){return_(`plugin:${this.plugin}|remove_listener`,{event:this.event,channelId:this.channelId})}};asyncfunctiond(n,e,i){lett=newa;returnt.onmessage=i,_(`plugin:${n}|register_listener`,{event:e,handler:t}).then((()=>newf(n,e,t.id)))}asyncfunction_(n,e={},i){returnnewPromise(((t,o)=>{letc=r((n=>{t(n),Reflect.deleteProperty(window,`_${a}`)}),!0),a=r((n=>{o(n),Reflect.deleteProperty(window,`_${c}`)}),!0);window.__TAURI_IPC__({cmd:n,callback:c,error:a,payload:e,options:i})}))}functionw(n,e="asset"){returnwindow.__TAURI__.convertFileSrc(n,e)}returnfunction(n){n.Year="Year",n.Month="Month",n.TwoWeeks="TwoWeeks",n.Week="Week",n.Day="Day",n.Hour="Hour",n.Minute="Minute",n.Second="Second"}(s||(s={})),n.Importance=void0,(l=n.Importance||(n.Importance={}))[l.None=0]="None",l[l.Min=1]="Min",l[l.Low=2]="Low",l[l.Default=3]="Default",l[l.High=4]="High",n.Visibility=void0,(u=n.Visibility||(n.Visibility={}))[u.Secret=-1]="Secret",u[u.Private=0]="Private",u[u.Public=1]="Public",n.active=asyncfunction(){return_("plugin:notification|get_active")},n.cancel=asyncfunction(n){return_("plugin:notification|cancel",{notifications:n})},n.cancelAll=asyncfunction(){return_("plugin:notification|cancel")},n.channels=asyncfunction(){return_("plugin:notification|getActive")},n.createChannel=asyncfunction(n){return_("plugin:notification|create_channel",{...n})},n.isPermissionGranted=asyncfunction(){return"default"!==window.Notification.permission?Promise.resolve("granted"===window.Notification.permission):_("plugin:notification|is_permission_granted")},n.onAction=asyncfunction(n){returnd("notification","actionPerformed",n)},n.onNotificationReceived=asyncfunction(n){returnd("notification","notification",n)},n.pending=asyncfunction(){return_("plugin:notification|get_pending")},n.registerActionTypes=asyncfunction(n){return_("plugin:notification|register_action_types",{types:n})},n.removeActive=asyncfunction(n){return_("plugin:notification|remove_active",{notifications:n})},n.removeAllActive=asyncfunction(){return_("plugin:notification|remove_active")},n.removeChannel=asyncfunction(n){return_("plugin:notification|delete_channel",{id:n})},n.requestPermission=asyncfunction(){returnwindow.Notification.requestPermission()},n.sendNotification=function(n){"string"==typeofn?newwindow.Notification(n):newwindow.Notification(n.title,n)},n}({});Object.defineProperty(window.__TAURI__,"notification",{value:__TAURI_NOTIFICATION__})}
if("__TAURI__"inwindow){var__TAURI_SHELL__=function(e){"use strict";vart=Object.defineProperty,n=(e,t,n)=>{if(!t.has(e))throwTypeError("Cannot "+n)},r=(e,t,r)=>(n(e,t,"read from private field"),r?r.call(e):t.get(e)),s=(e,t,r,s)=>(n(e,t,"write to private field"),s?s.call(e,r):t.set(e,r),r);functioni(e,t=!1){letn=window.crypto.getRandomValues(newUint32Array(1))[0],r=`_${n}`;returnObject.defineProperty(window,r,{value:n=>(t&&Reflect.deleteProperty(window,r),e?.(n)),writable:!1,configurable:!0}),n}((e,n)=>{for(varrinn)t(e,r,{get:n[r],enumerable:!0})})({},{Channel:()=>a,PluginListener:()=>c,addPluginListener:()=>l,convertFileSrc:()=>u,invoke:()=>h,transformCallback:()=>i});varo,a=class{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,((e,t,n)=>{if(t.has(e))throwTypeError("Cannot add the same private member more than once");tinstanceofWeakSet?t.add(e):t.set(e,n)})(this,o,(()=>{})),this.id=i((e=>{r(this,o).call(this,e)}))}setonmessage(e){s(this,o,e)}getonmessage(){returnr(this,o)}toJSON(){return`__CHANNEL__:${this.id}`}};o=newWeakMap;varc=class{constructor(e,t,n){this.plugin=e,this.event=t,this.channelId=n}asyncunregister(){returnh(`plugin:${this.plugin}|remove_listener`,{event:this.event,channelId:this.channelId})}};asyncfunctionl(e,t,n){letr=newa;returnr.onmessage=n,h(`plugin:${e}|register_listener`,{event:t,handler:r}).then((()=>newc(e,t,r.id)))}asyncfunctionh(e,t={},n){returnnewPromise(((r,s)=>{leto=i((e=>{r(e),Reflect.deleteProperty(window,`_${a}`)}),!0),a=i((e=>{s(e),Reflect.deleteProperty(window,`_${o}`)}),!0);window.__TAURI_IPC__({cmd:e,callback:o,error:a,payload:t,options:n})}))}functionu(e,t="asset"){returnwindow.__TAURI__.convertFileSrc(e,t)}classd{constructor(){this.eventListeners=Object.create(null)}addListener(e,t){returnthis.on(e,t)}removeListener(e,t){returnthis.off(e,t)}on(e,t){returneinthis.eventListeners?this.eventListeners[e].push(t):this.eventListeners[e]=[t],this}once(e,t){constn=r=>{this.removeListener(e,n),t(r)};returnthis.addListener(e,n)}off(e,t){returneinthis.eventListeners&&(this.eventListeners[e]=this.eventListeners[e].filter((e=>e!==t))),this}removeAllListeners(e){returne?deletethis.eventListeners[e]:this.eventListeners=Object.create(null),this}emit(e,t){if(einthis.eventListeners){constn=this.eventListeners[e];for(consteofn)e(t);return!0}return!1}listenerCount(e){returneinthis.eventListeners?this.eventListeners[e].length:0}prependListener(e,t){returneinthis.eventListeners?this.eventListeners[e].unshift(t):this.eventListeners[e]=[t],this}prependOnceListener(e,t){constn=r=>{this.removeListener(e,n),t(r)};returnthis.prependListener(e,n)}}classp{constructor(e){this.pid=e}asyncwrite(e){returnh("plugin:shell|stdin_write",{pid:this.pid,buffer:"string"==typeofe?e:Array.from(e)})}asynckill(){returnh("plugin:shell|kill",{cmd:"killChild",pid:this.pid})}}classw extendsd{constructor(e,t=[],n){super(),this.stdout=newd,this.stderr=newd,this.program=e,this.args="string"==typeoft?[t]:t,this.options=null!=n?n:{}}staticcreate(e,t=[],n){returnneww(e,t,n)}staticsidecar(e,t=[],n){constr=neww(e,t,n);returnr.options.sidecar=!0,r}asyncspawn(){returnasyncfunction(e,t,n=[],r){"object"==typeofn&&Object.freeze(n);consts=newa;returns.onmessage=e,h("plugin:shell|execute",{program:t,args:n,options:r,onEvent:s})}((e=>{switch(e.event){case"Error":this.emit("error",e.payload);break;case"Terminated":this.emit("close",e.payload);break;case"Stdout":this.stdout.emit("data",e.payload);break;case"Stderr":this.stderr.emit("data",e.payload)}}),this.program,this.args,this.options).then((e=>newp(e)))}asyncexecute(){returnnewPromise(((e,t)=>{this.on("error",t);constn=[],r=[];this.stdout.on("data",(e=>{n.push(e)})),this.stderr.on("data",(e=>{r.push(e)})),this.on("close",(t=>{e({code:t.code,signal:t.signal,stdout:this.collectOutput(n),stderr:this.collectOutput(r)})})),this.spawn().catch(t)}))}collectOutput(e){return"raw"===this.options.encoding?e.reduce(((e,t)=>newUint8Array([...e,...t,10])),newUint8Array):e.join("\n")}}returne.Child=p,e.Command=w,e.EventEmitter=d,e.open=asyncfunction(e,t){returnh("plugin:shell|open",{path:e,with:t})},e}({});Object.defineProperty(window.__TAURI__,"shell",{value:__TAURI_SHELL__})}
if("__TAURI__"inwindow){var__TAURI_STORE__=function(e){"use strict";vart=Object.defineProperty,a=(e,a)=>{for(varnina)t(e,n,{get:a[n],enumerable:!0})},n=(e,t,a)=>{if(!t.has(e))throwTypeError("Cannot "+a)},r=(e,t,a)=>(n(e,t,"read from private field"),a?a.call(e):t.get(e)),i=(e,t,a,r)=>(n(e,t,"write to private field"),r?r.call(e,a):t.set(e,a),a);functions(e,t=!1){leta=window.crypto.getRandomValues(newUint32Array(1))[0],n=`_${a}`;returnObject.defineProperty(window,n,{value:a=>(t&&Reflect.deleteProperty(window,n),e?.(a)),writable:!1,configurable:!0}),a}a({},{Channel:()=>o,PluginListener:()=>l,addPluginListener:()=>u,convertFileSrc:()=>c,invoke:()=>h,transformCallback:()=>s});var_,o=class{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,((e,t,a)=>{if(t.has(e))throwTypeError("Cannot add the same private member more than once");tinstanceofWeakSet?t.add(e):t.set(e,a)})(this,_,(()=>{})),this.id=s((e=>{r(this,_).call(this,e)}))}setonmessage(e){i(this,_,e)}getonmessage(){returnr(this,_)}toJSON(){return`__CHANNEL__:${this.id}`}};_=newWeakMap;varl=class{constructor(e,t,a){this.plugin=e,this.event=t,this.channelId=a}asyncunregister(){returnh(`plugin:${this.plugin}|remove_listener`,{event:this.event,channelId:this.channelId})}};asyncfunctionu(e,t,a){letn=newo;returnn.onmessage=a,h(`plugin:${e}|register_listener`,{event:t,handler:n}).then((()=>newl(e,t,n.id)))}asyncfunctionh(e,t={}){returnnewPromise(((a,n)=>{letr=s((e=>{a(e),Reflect.deleteProperty(window,`_${i}`)}),!0),i=s((e=>{n(e),Reflect.deleteProperty(window,`_${r}`)}),!0);window.__TAURI_IPC__({cmd:e,callback:r,error:i,...t})}))}functionc(e,t="asset"){leta=encodeURIComponent(e);returnnavigator.userAgent.includes("Windows")?`https://${t}.localhost/${a}`:`${t}://localhost/${a}`}a({},{TauriEvent:()=>d,emit:()=>y,listen:()=>w,once:()=>I});vard=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e))(d||{});asyncfunctionp(e,t){awaith("plugin:event|unlisten",{event:e,eventId:t})}asyncfunctionw(e,t,a){returnh("plugin:event|listen",{event:e,windowLabel:a?.target,handler:s(t)}).then((t=>async()=>p(e,t)))}asyncfunctionI(e,t,a){returnw(e,(a=>{t(a),p(e,a.id).catch((()=>{}))}),a)}asyncfunctiony(e,t,a){awaith("plugin:event|emit",{event:e,windowLabel:a?.target,payload:t})}returne.Store=class{constructor(e){this.path=e}asyncset(e,t){returnawaitwindow.__TAURI_INVOKE__("plugin:store|set",{path:this.path,key:e,value:t})}asyncget(e){returnawaitwindow.__TAURI_INVOKE__("plugin:store|get",{path:this.path,key:e})}asynchas(e){returnawaitwindow.__TAURI_INVOKE__("plugin:store|has",{path:this.path,key:e})}asyncdelete(e){returnawaitwindow.__TAURI_INVOKE__("plugin:store|delete",{path:this.path,key:e})}asyncclear(){returnawaitwindow.__TAURI_INVOKE__("plugin:store|clear",{path:this.path})}asyncreset(){returnawaitwindow.__TAURI_INVOKE__("plugin:store|reset",{path:this.path})}asynckeys(){returnawaitwindow.__TAURI_INVOKE__("plugin:store|keys",{path:this.path})}asyncvalues(){returnawaitwindow.__TAURI_INVOKE__("plugin:store|values",{path:this.path})}asyncentries(){returnawaitwindow.__TAURI_INVOKE__("plugin:store|entries",{path:this.path})}asynclength(){returnawaitwindow.__TAURI_INVOKE__("plugin:store|length",{path:this.path})}asyncload(){returnawaitwindow.__TAURI_INVOKE__("plugin:store|load",{path:this.path})}asyncsave(){returnawaitwindow.__TAURI_INVOKE__("plugin:store|save",{path:this.path})}asynconKeyChange(e,t){returnawaitw("store://change",(a=>{a.payload.path===this.path&&a.payload.key===e&&t(a.payload.value)}))}asynconChange(e){returnawaitw("store://change",(t=>{t.payload.path===this.path&&e(t.payload.key,t.payload.value)}))}},e}({});Object.defineProperty(window.__TAURI__,"store",{value:__TAURI_STORE__})}
if("__TAURI__"inwindow){var__TAURI_STORE__=function(e){"use strict";vart=Object.defineProperty,a=(e,a)=>{for(varnina)t(e,n,{get:a[n],enumerable:!0})},n=(e,t,a)=>{if(!t.has(e))throwTypeError("Cannot "+a)},r=(e,t,a)=>(n(e,t,"read from private field"),a?a.call(e):t.get(e)),i=(e,t,a,r)=>(n(e,t,"write to private field"),r?r.call(e,a):t.set(e,a),a);functions(e,t=!1){leta=window.crypto.getRandomValues(newUint32Array(1))[0],n=`_${a}`;returnObject.defineProperty(window,n,{value:a=>(t&&Reflect.deleteProperty(window,n),e?.(a)),writable:!1,configurable:!0}),a}a({},{Channel:()=>o,PluginListener:()=>l,addPluginListener:()=>u,convertFileSrc:()=>c,invoke:()=>h,transformCallback:()=>s});var_,o=class{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,((e,t,a)=>{if(t.has(e))throwTypeError("Cannot add the same private member more than once");tinstanceofWeakSet?t.add(e):t.set(e,a)})(this,_,(()=>{})),this.id=s((e=>{r(this,_).call(this,e)}))}setonmessage(e){i(this,_,e)}getonmessage(){returnr(this,_)}toJSON(){return`__CHANNEL__:${this.id}`}};_=newWeakMap;varl=class{constructor(e,t,a){this.plugin=e,this.event=t,this.channelId=a}asyncunregister(){returnh(`plugin:${this.plugin}|remove_listener`,{event:this.event,channelId:this.channelId})}};asyncfunctionu(e,t,a){letn=newo;returnn.onmessage=a,h(`plugin:${e}|register_listener`,{event:t,handler:n}).then((()=>newl(e,t,n.id)))}asyncfunctionh(e,t={},a){returnnewPromise(((n,r)=>{leti=s((e=>{n(e),Reflect.deleteProperty(window,`_${_}`)}),!0),_=s((e=>{r(e),Reflect.deleteProperty(window,`_${i}`)}),!0);window.__TAURI_IPC__({cmd:e,callback:i,error:_,payload:t,options:a})}))}functionc(e,t="asset"){returnwindow.__TAURI__.convertFileSrc(e,t)}a({},{TauriEvent:()=>p,emit:()=>y,listen:()=>d,once:()=>I});varp=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e))(p||{});asyncfunctionw(e,t){awaith("plugin:event|unlisten",{event:e,eventId:t})}asyncfunctiond(e,t,a){returnh("plugin:event|listen",{event:e,windowLabel:a?.target,handler:s(t)}).then((t=>async()=>w(e,t)))}asyncfunctionI(e,t,a){returnd(e,(a=>{t(a),w(e,a.id).catch((()=>{}))}),a)}asyncfunctiony(e,t,a){awaith("plugin:event|emit",{event:e,windowLabel:a?.target,payload:t})}returne.Store=class{constructor(e){this.path=e}asyncset(e,t){returnawaitwindow.__TAURI_INVOKE__("plugin:store|set",{path:this.path,key:e,value:t})}asyncget(e){returnawaitwindow.__TAURI_INVOKE__("plugin:store|get",{path:this.path,key:e})}asynchas(e){returnawaitwindow.__TAURI_INVOKE__("plugin:store|has",{path:this.path,key:e})}asyncdelete(e){returnawaitwindow.__TAURI_INVOKE__("plugin:store|delete",{path:this.path,key:e})}asyncclear(){returnawaitwindow.__TAURI_INVOKE__("plugin:store|clear",{path:this.path})}asyncreset(){returnawaitwindow.__TAURI_INVOKE__("plugin:store|reset",{path:this.path})}asynckeys(){returnawaitwindow.__TAURI_INVOKE__("plugin:store|keys",{path:this.path})}asyncvalues(){returnawaitwindow.__TAURI_INVOKE__("plugin:store|values",{path:this.path})}asyncentries(){returnawaitwindow.__TAURI_INVOKE__("plugin:store|entries",{path:this.path})}asynclength(){returnawaitwindow.__TAURI_INVOKE__("plugin:store|length",{path:this.path})}asyncload(){returnawaitwindow.__TAURI_INVOKE__("plugin:store|load",{path:this.path})}asyncsave(){returnawaitwindow.__TAURI_INVOKE__("plugin:store|save",{path:this.path})}asynconKeyChange(e,t){returnawaitd("store://change",(a=>{a.payload.path===this.path&&a.payload.key===e&&t(a.payload.value)}))}asynconChange(e){returnawaitd("store://change",(t=>{t.payload.path===this.path&&e(t.payload.key,t.payload.value)}))}},e}({});Object.defineProperty(window.__TAURI__,"store",{value:__TAURI_STORE__})}
if("__TAURI__"inwindow){var__TAURI_UPDATER__=function(e){"use strict";varn=Object.defineProperty,t=(e,n,t)=>{if(!n.has(e))throwTypeError("Cannot "+t)},r=(e,n,r)=>(t(e,n,"read from private field"),r?r.call(e):n.get(e)),i=(e,n,r,i)=>(t(e,n,"write to private field"),i?i.call(e,r):n.set(e,r),r);functiona(e,n=!1){lett=window.crypto.getRandomValues(newUint32Array(1))[0],r=`_${t}`;returnObject.defineProperty(window,r,{value:t=>(n&&Reflect.deleteProperty(window,r),e?.(t)),writable:!1,configurable:!0}),t}((e,t)=>{for(varrint)n(e,r,{get:t[r],enumerable:!0})})({},{Channel:()=>o,PluginListener:()=>l,addPluginListener:()=>c,convertFileSrc:()=>u,invoke:()=>d,transformCallback:()=>a});vars,o=class{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,((e,n,t)=>{if(n.has(e))throwTypeError("Cannot add the same private member more than once");ninstanceofWeakSet?n.add(e):n.set(e,t)})(this,s,(()=>{})),this.id=a((e=>{r(this,s).call(this,e)}))}setonmessage(e){i(this,s,e)}getonmessage(){returnr(this,s)}toJSON(){return`__CHANNEL__:${this.id}`}};s=newWeakMap;varl=class{constructor(e,n,t){this.plugin=e,this.event=n,this.channelId=t}asyncunregister(){returnd(`plugin:${this.plugin}|remove_listener`,{event:this.event,channelId:this.channelId})}};asyncfunctionc(e,n,t){letr=newo;returnr.onmessage=t,d(`plugin:${e}|register_listener`,{event:n,handler:r}).then((()=>newl(e,n,r.id)))}asyncfunctiond(e,n={}){returnnewPromise(((t,r)=>{leti=a((e=>{t(e),Reflect.deleteProperty(window,`_${s}`)}),!0),s=a((e=>{r(e),Reflect.deleteProperty(window,`_${i}`)}),!0);window.__TAURI_IPC__({cmd:e,callback:i,error:s,...n})}))}functionu(e,n="asset"){lett=encodeURIComponent(e);returnnavigator.userAgent.includes("Windows")?`https://${n}.localhost/${t}`:`${n}://localhost/${t}`}class_{constructor(e){this.currentVersion=e.currentVersion,this.version=e.version,this.date=e.date,this.body=e.body}asyncdownloadAndInstall(e){constn=newo;returnnull!=e&&(n.onmessage=e),d("plugin:updater|download_and_install",{onEvent:n})}}returne.Update=_,e.check=asyncfunction(e){return(null==e?void0:e.headers)&&(e.headers=Array.from(newHeaders(e.headers).entries())),d("plugin:updater|check",{...e}).then((e=>e.available?new_(e):null))},e}({});Object.defineProperty(window.__TAURI__,"updater",{value:__TAURI_UPDATER__})}
if("__TAURI__"inwindow){var__TAURI_UPDATER__=function(e){"use strict";varn=Object.defineProperty,t=(e,n,t)=>{if(!n.has(e))throwTypeError("Cannot "+t)},r=(e,n,r)=>(t(e,n,"read from private field"),r?r.call(e):n.get(e)),i=(e,n,r,i)=>(t(e,n,"write to private field"),i?i.call(e,r):n.set(e,r),r);functiona(e,n=!1){lett=window.crypto.getRandomValues(newUint32Array(1))[0],r=`_${t}`;returnObject.defineProperty(window,r,{value:t=>(n&&Reflect.deleteProperty(window,r),e?.(t)),writable:!1,configurable:!0}),t}((e,t)=>{for(varrint)n(e,r,{get:t[r],enumerable:!0})})({},{Channel:()=>o,PluginListener:()=>l,addPluginListener:()=>d,convertFileSrc:()=>_,invoke:()=>c,transformCallback:()=>a});vars,o=class{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,((e,n,t)=>{if(n.has(e))throwTypeError("Cannot add the same private member more than once");ninstanceofWeakSet?n.add(e):n.set(e,t)})(this,s,(()=>{})),this.id=a((e=>{r(this,s).call(this,e)}))}setonmessage(e){i(this,s,e)}getonmessage(){returnr(this,s)}toJSON(){return`__CHANNEL__:${this.id}`}};s=newWeakMap;varl=class{constructor(e,n,t){this.plugin=e,this.event=n,this.channelId=t}asyncunregister(){returnc(`plugin:${this.plugin}|remove_listener`,{event:this.event,channelId:this.channelId})}};asyncfunctiond(e,n,t){letr=newo;returnr.onmessage=t,c(`plugin:${e}|register_listener`,{event:n,handler:r}).then((()=>newl(e,n,r.id)))}asyncfunctionc(e,n={},t){returnnewPromise(((r,i)=>{lets=a((e=>{r(e),Reflect.deleteProperty(window,`_${o}`)}),!0),o=a((e=>{i(e),Reflect.deleteProperty(window,`_${s}`)}),!0);window.__TAURI_IPC__({cmd:e,callback:s,error:o,payload:n,options:t})}))}function_(e,n="asset"){returnwindow.__TAURI__.convertFileSrc(e,n)}classu{constructor(e){this.currentVersion=e.currentVersion,this.version=e.version,this.date=e.date,this.body=e.body}asyncdownloadAndInstall(e){constn=newo;returnnull!=e&&(n.onmessage=e),c("plugin:updater|download_and_install",{onEvent:n})}}returne.Update=u,e.check=asyncfunction(e){return(null==e?void0:e.headers)&&(e.headers=Array.from(newHeaders(e.headers).entries())),c("plugin:updater|check",{...e}).then((e=>e.available?newu(e):null))},e}({});Object.defineProperty(window.__TAURI__,"updater",{value:__TAURI_UPDATER__})}
if("__TAURI__"inwindow){var__TAURI_UPLOAD__=function(e){"use strict";varn=Object.defineProperty,t=(e,n,t)=>{if(!n.has(e))throwTypeError("Cannot "+t)},r=(e,n,r)=>(t(e,n,"read from private field"),r?r.call(e):n.get(e)),o=(e,n,r,o)=>(t(e,n,"write to private field"),o?o.call(e,r):n.set(e,r),r);functiona(e,n=!1){lett=window.crypto.getRandomValues(newUint32Array(1))[0],r=`_${t}`;returnObject.defineProperty(window,r,{value:t=>(n&&Reflect.deleteProperty(window,r),e?.(t)),writable:!1,configurable:!0}),t}((e,t)=>{for(varrint)n(e,r,{get:t[r],enumerable:!0})})({},{Channel:()=>s,PluginListener:()=>l,addPluginListener:()=>d,convertFileSrc:()=>u,invoke:()=>c,transformCallback:()=>a});vari,s=class{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,((e,n,t)=>{if(n.has(e))throwTypeError("Cannot add the same private member more than once");ninstanceofWeakSet?n.add(e):n.set(e,t)})(this,i,(()=>{})),this.id=a((e=>{r(this,i).call(this,e)}))}setonmessage(e){o(this,i,e)}getonmessage(){returnr(this,i)}toJSON(){return`__CHANNEL__:${this.id}`}};i=newWeakMap;varl=class{constructor(e,n,t){this.plugin=e,this.event=n,this.channelId=t}asyncunregister(){returnc(`plugin:${this.plugin}|remove_listener`,{event:this.event,channelId:this.channelId})}};asyncfunctiond(e,n,t){letr=news;returnr.onmessage=t,c(`plugin:${e}|register_listener`,{event:n,handler:r}).then((()=>newl(e,n,r.id)))}asyncfunctionc(e,n={}){returnnewPromise(((t,r)=>{leto=a((e=>{t(e),Reflect.deleteProperty(window,`_${i}`)}),!0),i=a((e=>{r(e),Reflect.deleteProperty(window,`_${o}`)}),!0);window.__TAURI_IPC__({cmd:e,callback:o,error:i,...n})}))}functionu(e,n="asset"){lett=encodeURIComponent(e);returnnavigator.userAgent.includes("Windows")?`https://${n}.localhost/${t}`:`${n}://localhost/${t}`}returne.download=asyncfunction(e,n,t,r){consto=newUint32Array(1);window.crypto.getRandomValues(o);consta=o[0],i=news;null!=t&&(i.onmessage=t),awaitc("plugin:upload|download",{id:a,url:e,filePath:n,headers:null!=r?r:{},onProgress:i})},e.upload=asyncfunction(e,n,t,r){consto=newUint32Array(1);window.crypto.getRandomValues(o);consta=o[0],i=news;null!=t&&(i.onmessage=t),awaitc("plugin:upload|upload",{id:a,url:e,filePath:n,headers:null!=r?r:{},onProgress:i})},e}({});Object.defineProperty(window.__TAURI__,"upload",{value:__TAURI_UPLOAD__})}
if("__TAURI__"inwindow){var__TAURI_UPLOAD__=function(e){"use strict";varn=Object.defineProperty,t=(e,n,t)=>{if(!n.has(e))throwTypeError("Cannot "+t)},r=(e,n,r)=>(t(e,n,"read from private field"),r?r.call(e):n.get(e)),i=(e,n,r,i)=>(t(e,n,"write to private field"),i?i.call(e,r):n.set(e,r),r);functiono(e,n=!1){lett=window.crypto.getRandomValues(newUint32Array(1))[0],r=`_${t}`;returnObject.defineProperty(window,r,{value:t=>(n&&Reflect.deleteProperty(window,r),e?.(t)),writable:!1,configurable:!0}),t}((e,t)=>{for(varrint)n(e,r,{get:t[r],enumerable:!0})})({},{Channel:()=>l,PluginListener:()=>s,addPluginListener:()=>d,convertFileSrc:()=>u,invoke:()=>c,transformCallback:()=>o});vara,l=class{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,((e,n,t)=>{if(n.has(e))throwTypeError("Cannot add the same private member more than once");ninstanceofWeakSet?n.add(e):n.set(e,t)})(this,a,(()=>{})),this.id=o((e=>{r(this,a).call(this,e)}))}setonmessage(e){i(this,a,e)}getonmessage(){returnr(this,a)}toJSON(){return`__CHANNEL__:${this.id}`}};a=newWeakMap;vars=class{constructor(e,n,t){this.plugin=e,this.event=n,this.channelId=t}asyncunregister(){returnc(`plugin:${this.plugin}|remove_listener`,{event:this.event,channelId:this.channelId})}};asyncfunctiond(e,n,t){letr=newl;returnr.onmessage=t,c(`plugin:${e}|register_listener`,{event:n,handler:r}).then((()=>news(e,n,r.id)))}asyncfunctionc(e,n={},t){returnnewPromise(((r,i)=>{leta=o((e=>{r(e),Reflect.deleteProperty(window,`_${l}`)}),!0),l=o((e=>{i(e),Reflect.deleteProperty(window,`_${a}`)}),!0);window.__TAURI_IPC__({cmd:e,callback:a,error:l,payload:n,options:t})}))}functionu(e,n="asset"){returnwindow.__TAURI__.convertFileSrc(e,n)}returne.download=asyncfunction(e,n,t,r){consti=newUint32Array(1);window.crypto.getRandomValues(i);consto=i[0],a=newl;null!=t&&(a.onmessage=t),awaitc("plugin:upload|download",{id:o,url:e,filePath:n,headers:null!=r?r:{},onProgress:a})},e.upload=asyncfunction(e,n,t,r){consti=newUint32Array(1);window.crypto.getRandomValues(i);consto=i[0],a=newl;null!=t&&(a.onmessage=t),awaitc("plugin:upload|upload",{id:o,url:e,filePath:n,headers:null!=r?r:{},onProgress:a})},e}({});Object.defineProperty(window.__TAURI__,"upload",{value:__TAURI_UPLOAD__})}
if("__TAURI__"inwindow){var__TAURI_WEBSOCKET__=function(){"use strict";classe{constructor(e,t){this.id=e,this.listeners=t}staticasyncconnect(t,n){consti=[];returnawaitwindow.__TAURI_INVOKE__("plugin:websocket|connect",{url:t,callbackFunction:window.__TAURI__.transformCallback((e=>{i.forEach((t=>t(e)))})),options:n}).then((t=>newe(t,i)))}addListener(e){this.listeners.push(e)}asyncsend(e){lett;if("string"==typeofe)t={type:"Text",data:e};elseif("object"==typeofe&&"type"ine)t=e;else{if(!Array.isArray(e))thrownewError("invalid `message` type, expected a `{ type: string, data: any }` object, a string or a numeric array");t={type:"Binary",data:e}}returnawaitwindow.__TAURI_INVOKE__("plugin:websocket|send",{id:this.id,message:t})}asyncdisconnect(){returnawaitthis.send({type:"Close",data:{code:1e3,reason:"Disconnected by client"}})}}returne}();Object.defineProperty(window.__TAURI__,"websocket",{value:__TAURI_WEBSOCKET__})}
if("__TAURI__"inwindow){var__TAURI_WEBSOCKET__=function(){"use strict";vare=Object.defineProperty,t=(e,t,n)=>{if(!t.has(e))throwTypeError("Cannot "+n)},n=(e,n,r)=>(t(e,n,"read from private field"),r?r.call(e):n.get(e)),r=(e,n,r,i)=>(t(e,n,"write to private field"),i?i.call(e,r):n.set(e,r),r);functioni(e,t=!1){letn=window.crypto.getRandomValues(newUint32Array(1))[0],r=`_${n}`;returnObject.defineProperty(window,r,{value:n=>(t&&Reflect.deleteProperty(window,r),e?.(n)),writable:!1,configurable:!0}),n}((t,n)=>{for(varrinn)e(t,r,{get:n[r],enumerable:!0})})({},{Channel:()=>a,PluginListener:()=>o,addPluginListener:()=>c,convertFileSrc:()=>d,invoke:()=>l,transformCallback:()=>i});vars,a=class{constructor(){this.__TAURI_CHANNEL_MARKER__=!0,((e,t,n)=>{if(t.has(e))throwTypeError("Cannot add the same private member more than once");tinstanceofWeakSet?t.add(e):t.set(e,n)})(this,s,(()=>{})),this.id=i((e=>{n(this,s).call(this,e)}))}setonmessage(e){r(this,s,e)}getonmessage(){returnn(this,s)}toJSON(){return`__CHANNEL__:${this.id}`}};s=newWeakMap;varo=class{constructor(e,t,n){this.plugin=e,this.event=t,this.channelId=n}asyncunregister(){returnl(`plugin:${this.plugin}|remove_listener`,{event:this.event,channelId:this.channelId})}};asyncfunctionc(e,t,n){letr=newa;returnr.onmessage=n,l(`plugin:${e}|register_listener`,{event:t,handler:r}).then((()=>newo(e,t,r.id)))}asyncfunctionl(e,t={},n){returnnewPromise(((r,s)=>{leta=i((e=>{r(e),Reflect.deleteProperty(window,`_${o}`)}),!0),o=i((e=>{s(e),Reflect.deleteProperty(window,`_${a}`)}),!0);window.__TAURI_IPC__({cmd:e,callback:a,error:o,payload:t,options:n})}))}functiond(e,t="asset"){returnwindow.__TAURI__.convertFileSrc(e,t)}class_{constructor(e,t){this.id=e,this.listeners=t}staticasyncconnect(e,t){constn=[],r=newa;returnr.onmessage=e=>{n.forEach((t=>t(e)))},awaitl("plugin:websocket|connect",{url:e,onMessage:r,options:t}).then((e=>new_(e,n)))}addListener(e){this.listeners.push(e)}asyncsend(e){lett;if("string"==typeofe)t={type:"Text",data:e};elseif("object"==typeofe&&"type"ine)t=e;else{if(!Array.isArray(e))thrownewError("invalid `message` type, expected a `{ type: string, data: any }` object, a string or a numeric array");t={type:"Binary",data:e}}returnawaitl("plugin:websocket|send",{id:this.id,message:t})}asyncdisconnect(){returnawaitthis.send({type:"Close",data:{code:1e3,reason:"Disconnected by client"}})}}return_}();Object.defineProperty(window.__TAURI__,"websocket",{value:__TAURI_WEBSOCKET__})}