(()=>{var ge=Object.defineProperty;var v=(e,t)=>{for(var n in t)ge(e,n,{get:t[n],enumerable:!0})};var O={};v(O,{SetText:()=>be,Text:()=>Se});var he="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";var g=(e=21)=>{let t="",n=e;for(;n--;)t+=he[Math.random()*64|0];return t};var xe=window.location.origin+"/wails/runtime",l={Call:0,Clipboard:1,Application:2,Events:3,ContextMenu:4,Dialog:5,Window:6,Screens:7,System:8,Browser:9},L=g();function Ce(e,t,n,o){let i=new URL(xe);i.searchParams.append("object",e),i.searchParams.append("method",t);let r={headers:{}};return n&&(r.headers["x-wails-window-name"]=n),o&&i.searchParams.append("args",JSON.stringify(o)),r.headers["x-wails-client-id"]=L,new Promise((u,p)=>{fetch(i,r).then(s=>{if(s.ok)return s.headers.get("Content-Type")&&s.headers.get("Content-Type").indexOf("application/json")!==-1?s.json():s.text();p(Error(s.statusText))}).then(s=>u(s)).catch(s=>p(s))})}function a(e,t){return function(n,o=null){return Ce(e,n,t,o)}}var G=a(l.Clipboard),ve=0,We=1;function be(e){G(ve,{text:e})}function Se(){return G(We)}var I={};v(I,{Hide:()=>Me,Quit:()=>Ee,Show:()=>De});var k=a(l.Application),N={Hide:0,Show:1,Quit:2};function Me(){k(N.Hide)}function De(){k(N.Show)}function Ee(){k(N.Quit)}var z={};v(z,{GetAll:()=>Oe,GetCurrent:()=>Ne,GetPrimary:()=>ke});var A=a(l.Screens),ye=0,Re=1,Le=2;function Oe(){return A(ye)}function ke(){return A(Re)}function Ne(){return A(Le)}var T={};v(T,{IsDarkMode:()=>ze});var Ie=a(l.System),Ae=0;function ze(){return Ie(Ae)}var P={};v(P,{OpenURL:()=>Be});var Te=a(l.Browser),Pe=0;function Be(e){Te(Pe,{url:e})}var je=a(l.Call),b=0,f=new Map;function He(){let e;do e=g();while(f.has(e));return e}function Z(e,t,n){let o=f.get(e);o&&(n?o.resolve(JSON.parse(t)):o.resolve(t),f.delete(e))}function Y(e,t){let n=f.get(e);n&&(n.reject(t),f.delete(e))}function S(e,t){return new Promise((n,o)=>{let i=He();t=t||{},t["call-id"]=i,f.set(i,{resolve:n,reject:o}),je(e,t).catch(r=>{o(r),f.delete(i)})})}function Q(e){return S(b,e)}function X(e,...t){if(typeof e!="string"||e.split(".").length!==3)throw new Error("CallByName requires a string in the format 'package.struct.method'");let n=e.split(".");return S(b,{packageName:n[0],structName:n[1],methodName:n[2],args:t})}function V(e,...t){return S(b,{methodID:e,args:t})}function q(e,t,...n){return S(b,{packageName:"wails-plugins",structName:e,methodName:t,args:n})}var Ue=0,Fe=1,Ge=2,Ze=3,Ye=4,Qe=5,Xe=6,Ve=7,qe=8,Je=9,_e=10,Ke=11,$e=12,et=13,tt=14,nt=15,ot=16,it=17,rt=18,lt=19,at=20,st=21,ut=22,ct=23,dt=24,ft=25,mt=26,pt=27,wt=28,gt=29;function J(e){let t=a(l.Window,e);return{Center:()=>void t(Ue),SetTitle:n=>void t(Fe,{title:n}),Fullscreen:()=>void t(Ge),UnFullscreen:()=>void t(Ze),SetSize:(n,o)=>t(Ye,{width:n,height:o}),Size:()=>t(Qe),SetMaxSize:(n,o)=>void t(Xe,{width:n,height:o}),SetMinSize:(n,o)=>void t(Ve,{width:n,height:o}),SetAlwaysOnTop:n=>void t(qe,{alwaysOnTop:n}),SetRelativePosition:(n,o)=>t(Je,{x:n,y:o}),RelativePosition:()=>t(_e),Screen:()=>t(Ke),Hide:()=>void t($e),Maximise:()=>void t(et),Show:()=>void t(lt),Close:()=>void t(at),ToggleMaximise:()=>void t(nt),UnMaximise:()=>void t(tt),Minimise:()=>void t(ot),UnMinimise:()=>void t(it),Restore:()=>void t(rt),SetBackgroundColour:(n,o,i,r)=>void t(st,{r:n,g:o,b:i,a:r}),SetResizable:n=>void t(ut,{resizable:n}),Width:()=>t(ct),Height:()=>t(dt),ZoomIn:()=>void t(ft),ZoomOut:()=>void t(mt),ZoomReset:()=>void t(pt),GetZoomLevel:()=>t(wt),SetZoomLevel:n=>void t(gt,{zoomLevel:n})}}var ht=a(l.Events),xt=0,B=class{constructor(t,n,o){this.eventName=t,this.maxCallbacks=o||-1,this.Callback=i=>(n(i),this.maxCallbacks===-1?!1:(this.maxCallbacks-=1,this.maxCallbacks===0))}},M=class{constructor(t,n=null){this.name=t,this.data=n}},c=new Map;function D(e,t,n){let o=c.get(e)||[],i=new B(e,t,n);return o.push(i),c.set(e,o),()=>Ct(i)}function _(e,t){return D(e,t,-1)}function K(e,t){return D(e,t,1)}function Ct(e){let t=e.eventName,n=c.get(t).filter(o=>o!==e);n.length===0?c.delete(t):c.set(t,n)}function $(e){let t=c.get(e.name);if(t){let n=[];t.forEach(o=>{o.Callback(e)&&n.push(o)}),n.length>0&&(t=t.filter(o=>!n.includes(o)),t.length===0?c.delete(e.name):c.set(e.name,t))}}function ee(e,...t){[e,...t].forEach(o=>{c.delete(o)})}function te(){c.clear()}function E(e){ht(xt,e)}var vt=a(l.Dialog),Wt=0,bt=1,St=2,Mt=3,Dt=4,Et=5,m=new Map;function yt(){let e;do e=g();while(m.has(e));return e}function ne(e,t,n){let o=m.get(e);o&&(n?o.resolve(JSON.parse(t)):o.resolve(t),m.delete(e))}function oe(e,t){let n=m.get(e);n&&(n.reject(t),m.delete(e))}function h(e,t){return new Promise((n,o)=>{let i=yt();t=t||{},t["dialog-id"]=i,m.set(i,{resolve:n,reject:o}),vt(e,t).catch(r=>{o(r),m.delete(i)})})}function ie(e){return h(Wt,e)}function re(e){return h(bt,e)}function le(e){return h(St,e)}function x(e){return h(Mt,e)}function ae(e){return h(Dt,e)}function se(e){return h(Et,e)}var Rt=a(l.ContextMenu),Lt=0;function Ot(e,t,n,o){Rt(Lt,{id:e,x:t,y:n,data:o})}function ue(){window.addEventListener("contextmenu",kt)}function kt(e){let t=e.target,n=window.getComputedStyle(t).getPropertyValue("--custom-contextmenu");if(n=n?n.trim():"",n){e.preventDefault();let o=window.getComputedStyle(t).getPropertyValue("--custom-contextmenu-data");Ot(n,e.clientX,e.clientY,o);return}Nt(e)}function Nt(e){let t=e.target;switch(window.getComputedStyle(t).getPropertyValue("--default-contextmenu").trim()){case"show":return;case"hide":e.preventDefault();return;default:if(t.isContentEditable)return;let i=window.getSelection(),r=i.toString().length>0;if(r)for(let u=0;u{e.json().then(t=>{fe=me(t)})});function Tt(e){let t=e.split("."),n=fe;for(let o of t)if(n instanceof Map?n=n.get(o):n=n[o],n===void 0)break;return n}function y(e){return Tt(e)}var W=!1;function Pt(e){let t=window.getComputedStyle(e.target).getPropertyValue("--webkit-app-region");return t&&(t=t.trim()),t!=="drag"||e.buttons!==1?!1:e.detail===1}function pe(){window.addEventListener("mousedown",jt),window.addEventListener("mousemove",Ut),window.addEventListener("mouseup",Ht)}var R=null;function Bt(e){return R?(H("resize:"+R),!0):!1}function jt(e){if(!Bt())if(Pt(e)){if(e.offsetX>e.target.clientWidth||e.offsetY>e.target.clientHeight)return;W=!0}else W=!1}function Ht(e){(e.buttons!==void 0?e.buttons:e.which)>0&&U()}function U(){document.body.style.cursor="default",W=!1}function d(e){document.documentElement.style.cursor=e||Ft,R=e}function Ut(e){if(W){W=!1,(e.buttons!==void 0?e.buttons:e.which)>0&&H("drag");return}Gt(e)}var Ft="auto";function Gt(e){let t=y("system.resizeHandleHeight")||5,n=y("system.resizeHandleWidth")||5,o=y("resizeCornerExtra")||10,i=window.outerWidth-e.clientX{e.json().then(t=>{window.wails.Capabilities=t})});window._wails={dialogCallback:ne,dialogErrorCallback:oe,dispatchWailsEvent:$,callCallback:Z,callErrorCallback:Y,endDrag:U};function we(e){return{Clipboard:{...O},Application:{...I,GetWindowByName(t){return we(t)}},System:T,Screens:z,Browser:P,Call:Q,CallByID:V,CallByName:X,Plugin:q,WML:{Reload:j},Dialog:{Info:ie,Warning:re,Error:le,Question:x,OpenFile:ae,SaveFile:se},Events:{Emit:E,On:_,Once:K,OnMultiple:D,Off:ee,OffAll:te},Window:J(e)}}ue();pe();document.addEventListener("DOMContentLoaded",function(){j()});})();