const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/main-C60qP0Ub.js","assets/chunk-CilyBKbf.js","assets/Export-DccON-tT.js","assets/RuneCanvas-DSMxo_5r.js","assets/Health-CvDMCr1u.js","assets/Panic-DtOGgvs_.js"])))=>i.map(i=>d[i]); import{n as e,r as t,t as n}from"./chunk-CilyBKbf.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var r={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return i(this.context.count)},getNextContextId(){return i(this.context.count++)}};function i(e){let t=String(e),n=t.length-1;return r.context.id+(n?String.fromCharCode(96+n):``)+t}function a(e){r.context=e}function o(){return{...r.context,id:r.getNextContextId(),count:0}}var s=(e,t)=>e===t,c=Symbol(`solid-track`),l={equals:s},u=null,d=R,f=1,p=2,m={owned:null,cleanups:null,context:null,owner:null},h={},g=null,_=null,v=null,y=null,b=null,x=null,S=null,C=0;function w(e,t){let n=b,r=g,i=e.length===0,a=t===void 0?r:t,o=i?m:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?e:()=>e(()=>M(()=>be(o)));g=o,b=null;try{return he(s,!0)}finally{b=n,g=r}}function T(e,t){t=t?Object.assign({},l,t):l;let n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0};return[le.bind(n),e=>(typeof e==`function`&&(e=_&&_.running&&_.sources.has(n)?e(n.tValue):e(n.value)),ue(n,e))]}function E(e,t,n){let r=pe(e,t,!0,f);v&&_&&_.running?x.push(r):de(r)}function D(e,t,n){let r=pe(e,t,!1,f);v&&_&&_.running?x.push(r):de(r)}function O(e,t,n){d=ve;let r=pe(e,t,!1,f),i=se&&ae(se);i&&(r.suspense=i),(!n||!n.render)&&(r.user=!0),S?S.push(r):de(r)}function k(e,t,n){n=n?Object.assign({},l,n):l;let r=pe(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,v&&_&&_.running?(r.tState=f,x.push(r)):de(r),le.bind(r)}function A(e){return e&&typeof e==`object`&&`then`in e}function j(e,t,n){let i,a,o;typeof t==`function`?(i=e,a=t,o=n||{}):(i=!0,a=e,o=t||{});let s=null,c=h,l=null,u=!1,d=!1,f=`initialValue`in o,p=typeof i==`function`&&k(i),m=new Set,[v,y]=(o.storage||T)(o.initialValue),[x,S]=T(void 0),[C,w]=T(void 0,{equals:!1}),[D,O]=T(f?`ready`:`unresolved`);r.context&&(l=r.getNextContextId(),o.ssrLoadFrom===`initial`?c=o.initialValue:r.load&&r.has(l)&&(c=r.load(l)));function j(e,t,n,r){return s===e&&(s=null,r!==void 0&&(f=!0),(e===c||t===c)&&o.onHydrated&&queueMicrotask(()=>o.onHydrated(r,{value:t})),c=h,_&&e&&u?(_.promises.delete(e),u=!1,he(()=>{_.running=!0,N(t,n)},!1)):N(t,n)),t}function N(e,t){he(()=>{t===void 0&&y(()=>e),O(t===void 0?f?`ready`:`unresolved`:`errored`),S(t);for(let e of m.keys())e.decrement();m.clear()},!1)}function P(){let e=se&&ae(se),t=v(),n=x();if(n!==void 0&&!s)throw n;return b&&!b.user&&e&&E(()=>{C(),s&&(e.resolved&&_&&u?_.promises.add(s):m.has(e)||(e.increment(),m.add(e)))}),t}function F(e=!0){if(e!==!1&&d)return;d=!1;let t=p?p():i;if(u=_&&_.running,t==null||t===!1){j(s,M(v));return}_&&s&&_.promises.delete(s);let n,r=c===h?M(()=>{try{return a(t,{value:v(),refetching:e})}catch(e){n=e}}):c;if(n!==void 0){j(s,void 0,Se(n),t);return}else if(!A(r))return j(s,r,void 0,t),r;return s=r,`v`in r?(r.s===1?j(s,r.v,void 0,t):j(s,void 0,Se(r.v),t),r):(d=!0,queueMicrotask(()=>d=!1),he(()=>{O(f?`refreshing`:`pending`),w()},!1),r.then(e=>j(r,e,void 0,t),e=>j(r,void 0,Se(e),t)))}Object.defineProperties(P,{state:{get:()=>D()},error:{get:()=>x()},loading:{get(){let e=D();return e===`pending`||e===`refreshing`}},latest:{get(){if(!f)return P();let e=x();if(e&&!s)throw e;return v()}}});let ee=g;return p?E(()=>(ee=g,F(!1))):F(!1),[P,{refetch:e=>te(ee,()=>F(e)),mutate:y}]}function M(e){if(!y&&b===null)return e();let t=b;b=null;try{return y?y.untrack(e):e()}finally{b=t}}function N(e,t,n){let r=Array.isArray(e),i,a=n&&n.defer;return n=>{let o;if(r){o=Array(e.length);for(let t=0;tt(o,i,n));return i=o,s}}function P(e){O(()=>M(e))}function F(e){return g===null||(g.cleanups===null?g.cleanups=[e]:g.cleanups.push(e)),e}function ee(){return g}function te(e,t){let n=g,r=b;g=e,b=null;try{return he(t,!0)}catch(e){we(e)}finally{g=n,b=r}}function ne(e){if(_&&_.running)return e(),_.done;let t=b,n=g;return Promise.resolve().then(()=>{b=t,g=n;let r;return(v||se)&&(r=_||={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0},r.done||=new Promise(e=>r.resolve=e),r.running=!0),he(e,!1),b=g=null,r?r.done:void 0})}var[I,re]=T(!1);function L(e){S.push.apply(S,e),e.length=0}function ie(e,t){let n=Symbol(`context`);return{id:n,Provider:Te(n),defaultValue:e}}function ae(e){let t;return g&&g.context&&(t=g.context[e.id])!==void 0?t:e.defaultValue}function oe(e){let t=k(e),n=k(()=>B(t()));return n.toArray=()=>{let e=n();return Array.isArray(e)?e:e==null?[]:[e]},n}var se;function ce(){return se||=ie()}function le(){let e=_&&_.running;if(this.sources&&(e?this.tState:this.state))if((e?this.tState:this.state)===f)de(this);else{let e=x;x=null,he(()=>ye(this),!1),x=e}if(b){let e=this.observers?this.observers.length:0;b.sources?(b.sources.push(this),b.sourceSlots.push(e)):(b.sources=[this],b.sourceSlots=[e]),this.observers?(this.observers.push(b),this.observerSlots.push(b.sources.length-1)):(this.observers=[b],this.observerSlots=[b.sources.length-1])}return e&&_.sources.has(this)?this.tValue:this.value}function ue(e,t,n){let r=_&&_.running&&_.sources.has(e)?e.tValue:e.value;if(!e.comparator||!e.comparator(r,t)){if(_){let r=_.running;(r||!n&&_.sources.has(e))&&(_.sources.add(e),e.tValue=t),r||(e.value=t)}else e.value=t;e.observers&&e.observers.length&&he(()=>{for(let t=0;t1e6)throw x=[],Error()},!1)}return t}function de(e){if(!e.fn)return;be(e);let t=C;fe(e,_&&_.running&&_.sources.has(e)?e.tValue:e.value,t),_&&!_.running&&_.sources.has(e)&&queueMicrotask(()=>{he(()=>{_&&(_.running=!0),b=g=e,fe(e,e.tValue,t),b=g=null},!1)})}function fe(e,t,n){let r,i=g,a=b;b=g=e;try{r=e.fn(t)}catch(t){return e.pure&&(_&&_.running?(e.tState=f,e.tOwned&&e.tOwned.forEach(be),e.tOwned=void 0):(e.state=f,e.owned&&e.owned.forEach(be),e.owned=null)),e.updatedAt=n+1,we(t)}finally{b=a,g=i}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&`observers`in e?ue(e,r,!0):_&&_.running&&e.pure?(_.sources.has(e)||(e.value=r),_.sources.add(e),e.tValue=r):e.value=r,e.updatedAt=n)}function pe(e,t,n,r=f,i){let a={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:g,context:g?g.context:null,pure:n};if(_&&_.running&&(a.state=0,a.tState=r),g===null||g!==m&&(_&&_.running&&g.pure?g.tOwned?g.tOwned.push(a):g.tOwned=[a]:g.owned?g.owned.push(a):g.owned=[a]),y&&a.fn){let e=a.fn,[t,n]=T(void 0,{equals:!1}),r=y.factory(e,n);F(()=>r.dispose());let i,o=()=>ne(n).then(()=>{i&&=(i.dispose(),void 0)});a.fn=n=>(t(),_&&_.running?(i||=y.factory(e,o),i.track(n)):r.track(n))}return a}function me(e){let t=_&&_.running;if((t?e.tState:e.state)===0)return;if((t?e.tState:e.state)===p)return ye(e);if(e.suspense&&M(e.suspense.inFallback))return e.suspense.effects.push(e);let n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;r--){if(e=n[r],t){let t=e,i=n[r+1];for(;(t=t.owner)&&t!==i;)if(_.disposed.has(t))return}if((t?e.tState:e.state)===f)de(e);else if((t?e.tState:e.state)===p){let t=x;x=null,he(()=>ye(e,n[0]),!1),x=t}}}function he(e,t){if(x)return e();let n=!1;t||(x=[]),S?n=!0:S=[],C++;try{let t=e();return ge(n),t}catch(e){n||(S=null),x=null,we(e)}}function ge(e){if(x&&=(v&&_&&_.running?_e(x):R(x),null),e)return;let t;if(_){if(!_.promises.size&&!_.queue.size){let e=_.sources,n=_.disposed;S.push.apply(S,_.effects),t=_.resolve;for(let e of S)`tState`in e&&(e.state=e.tState),delete e.tState;_=null,he(()=>{for(let e of n)be(e);for(let t of e){if(t.value=t.tValue,t.owned)for(let e=0,n=t.owned.length;ed(n),!1),t&&t()}function R(e){for(let t=0;t{r.delete(n),he(()=>{_.running=!0,me(n)},!1),_&&(_.running=!1)}))}}function ve(e){let t,n=0;for(t=0;t=0;t--)be(e.tOwned[t]);delete e.tOwned}if(_&&_.running&&e.pure)xe(e,!0);else if(e.owned){for(t=e.owned.length-1;t>=0;t--)be(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}_&&_.running?e.tState=0:e.state=0}function xe(e,t){if(t||(e.tState=0,_.disposed.add(e)),e.owned)for(let t=0;tn=M(()=>(g.context={...g.context,[e]:t.value},oe(()=>t.children))),void 0),n}}var V=Symbol(`fallback`);function Ee(e){for(let t=0;t1?[]:null;return F(()=>Ee(a)),()=>{let l=e()||[],u=l.length,d,f;return l[c],M(()=>{let e,t,c,m,h,g,_,v,y;if(u===0)o!==0&&(Ee(a),a=[],r=[],i=[],o=0,s&&=[]),n.fallback&&(r=[V],i[0]=w(e=>(a[0]=e,n.fallback())),o=1);else if(o===0){for(i=Array(u),f=0;f=g&&v>=g&&r[_]===l[v];_--,v--)c[v]=i[_],m[v]=a[_],s&&(h[v]=s[_]);for(e=new Map,t=Array(v+1),f=v;f>=g;f--)y=l[f],d=e.get(y),t[f]=d===void 0?-1:d,e.set(y,f);for(d=g;d<=_;d++)y=r[d],f=e.get(y),f!==void 0&&f!==-1?(c[f]=i[d],m[f]=a[d],s&&(h[f]=s[d]),f=t[f],e.set(y,f)):a[d]();for(f=g;fEe(a)),()=>{let u=e()||[],d=u.length;return u[c],M(()=>{if(d===0)return s!==0&&(Ee(a),a=[],r=[],i=[],s=0,o=[]),n.fallback&&(r=[V],i[0]=w(e=>(a[0]=e,n.fallback())),s=1),i;for(r[0]===V&&(a[0](),a=[],r=[],i=[],s=0),l=0;lu[l]):l>=r.length&&(i[l]=w(f));for(;le(t||{}));return a(n),i}return M(()=>e(t||{}))}function Ae(e){let t,n,i=i=>{let o=r.context;if(o){let[i,s]=T();r.count||=0,r.count++,(n||=e()).then(e=>{!r.done&&a(o),r.count--,s(()=>e.default),a()}),t=i}else if(!t){let[r]=j(()=>(n||=e()).then(e=>e.default));t=r}let s;return k(()=>(s=t())?M(()=>{if(!o||r.done)return s(i);let e=r.context;a(o);let t=s(i);return a(e),t}):``)};return i.preload=()=>n||((n=e()).then(e=>t=()=>e.default),n),i}var je=e=>`Stale read from <${e}>.`;function Me(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return k(De(()=>e.each,e.children,t||void 0))}function Ne(e){let t=`fallback`in e&&{fallback:()=>e.fallback};return k(Oe(()=>e.each,e.children,t||void 0))}function U(e){let t=e.keyed,n=k(()=>e.when,void 0,void 0),r=t?n:k(n,void 0,{equals:(e,t)=>!e==!t});return k(()=>{let i=r();if(i){let a=e.children;return typeof a==`function`&&a.length>0?M(()=>a(t?i:()=>{if(!M(r))throw je(`Show`);return n()})):a}return e.fallback},void 0,void 0)}function Pe(e){let t=oe(()=>e.children),n=k(()=>{let e=t(),n=Array.isArray(e)?e:[e],r=()=>void 0;for(let e=0;ea()?void 0:i.when,void 0,void 0),s=i.keyed?o:k(o,void 0,{equals:(e,t)=>!e==!t});r=()=>a()||(s()?[t,o,i]:void 0)}return r});return k(()=>{let t=n()();if(!t)return e.fallback;let[r,i,a]=t,o=a.children;return typeof o==`function`&&o.length>0?M(()=>o(a.keyed?i():()=>{if(M(n)()?.[0]!==r)throw je(`Match`);return i()})):o},void 0,void 0)}function Fe(e){return e}var Ie=ie();function Le(e){let t=0,n,i,o,s,c,[l,u]=T(!1),d=ce(),f={increment:()=>{++t===1&&u(!0)},decrement:()=>{--t===0&&u(!1)},inFallback:l,effects:[],resolved:!1},p=ee();if(r.context&&r.load){let e=r.getContextId(),t=r.load(e);if(t&&(typeof t!=`object`||t.s!==1?o=t:r.gather(e)),o&&o!==`$$f`){let[t,n]=T(void 0,{equals:!1});s=t,o.then(()=>{if(r.done)return n();r.gather(e),a(i),n(),a()},e=>{c=e,n()})}}let m=ae(Ie);m&&(n=m.register(f.inFallback));let h;return F(()=>h&&h()),H(d.Provider,{value:f,get children(){return k(()=>{if(c)throw c;if(i=r.context,s){s(),s=void 0;return}i&&o===`$$f`&&a();let t=k(()=>e.children);return k(r=>{let s=f.inFallback(),{showContent:c=!0,showFallback:l=!0}=n?n():{};if((!s||o&&o!==`$$f`)&&c)return f.resolved=!0,h&&h(),h=i=o=void 0,L(f.effects),t();if(l)return h?r:w(t=>(h=t,i&&=(a({id:i.id+`F`,count:0}),void 0),e.fallback),p)})})}})}var W=e=>k(()=>e());function Re(e,t,n){let r=n.length,i=t.length,a=r,o=0,s=0,c=t[i-1].nextSibling,l=null;for(;or-s){let i=t[o];for(;s{i=r,t===document?e():X(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{i(),t.textContent=``}}function G(e,t,n,r){let i,a=()=>{let t=r?document.createElementNS(`http://www.w3.org/1998/Math/MathML`,`template`):document.createElement(`template`);return t.innerHTML=e,n?t.content.firstChild.firstChild:r?t.firstChild:t.content.firstChild},o=t?()=>M(()=>document.importNode(i||=a(),!0)):()=>(i||=a()).cloneNode(!0);return o.cloneNode=o,o}function Ve(e,t=window.document){let n=t[ze]||(t[ze]=new Set);for(let r=0,i=e.length;rr.call(e,n[1],t))}else e.addEventListener(t,n,typeof n!=`function`&&n)}function He(e,t,n){if(!t)return n?K(e,`style`):t;let r=e.style;if(typeof t==`string`)return r.cssText=t;typeof n==`string`&&(r.cssText=n=void 0),n||={},t||={};let i,a;for(a in n)t[a]??r.removeProperty(a),delete n[a];for(a in t)i=t[a],i!==n[a]&&(r.setProperty(a,i),n[a]=i);return n}function Ue(e,t,n){n==null?e.style.removeProperty(t):e.style.setProperty(t,n)}function Y(e,t,n){return M(()=>e(t,n))}function X(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!=`function`)return Ke(e,t,r,n);D(r=>Ke(e,t(),r,n),r)}function We(e){return!!r.context&&!r.done&&(!e||e.isConnected)}function Ge(e){if(r.registry&&r.events&&r.events.find(([t,n])=>n===e))return;let t=e.target,n=`$$${e.type}`,i=e.target,a=e.currentTarget,o=t=>Object.defineProperty(e,`target`,{configurable:!0,value:t}),s=()=>{let r=t[n];if(r&&!t.disabled){let i=t[`${n}Data`];if(i===void 0?r.call(t,e):r.call(t,i,e),e.cancelBubble)return}return t.host&&typeof t.host!=`string`&&!t.host._$host&&t.contains(e.target)&&o(t.host),!0},c=()=>{for(;s()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,`currentTarget`,{configurable:!0,get(){return t||document}}),r.registry&&!r.done&&(r.done=_$HY.done=!0),e.composedPath){let n=e.composedPath();o(n[0]);for(let e=0;e{let i=t();for(;typeof i==`function`;)i=i();n=Ke(e,i,n,r)}),()=>n;else if(Array.isArray(t)){let o=[],c=n&&Array.isArray(n);if(qe(o,t,n,i))return D(()=>n=Ke(e,o,n,r,!0)),()=>n;if(a){if(!o.length)return n;if(r===void 0)return n=[...e.childNodes];let t=o[0];if(t.parentNode!==e)return n;let i=[t];for(;(t=t.nextSibling)!==r;)i.push(t);return n=i}if(o.length===0){if(n=Ye(e,n,r),s)return n}else c?n.length===0?Je(e,o,r):Re(e,n,o):(n&&Ye(e),Je(e,o));n=o}else if(t.nodeType){if(a&&t.parentNode)return n=s?[t]:t;if(Array.isArray(n)){if(s)return n=Ye(e,n,r,t);Ye(e,n,null,t)}else n==null||n===``||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}return n}function qe(e,t,n,r){let i=!1;for(let a=0,o=t.length;a=0;a--){let o=t[a];if(i!==o){let t=o.parentNode===e;!r&&!a?t?e.replaceChild(i,o):e.insertBefore(i,n):t&&o.remove()}else r=!0}}else e.insertBefore(i,n);return[i]}var Xe;(function(e){e.Unimplemented=`UNIMPLEMENTED`,e.Unavailable=`UNAVAILABLE`})(Xe||={});var Ze=class extends Error{constructor(e,t,n){super(e),this.message=e,this.code=t,this.data=n}},Qe=e=>e?.androidBridge?`android`:e?.webkit?.messageHandlers?.bridge?`ios`:`web`,$e=e=>{let t=e.CapacitorCustomPlatform||null,n=e.Capacitor||{},r=n.Plugins=n.Plugins||{},i=()=>t===null?Qe(e):t.name,a=()=>i()!==`web`,o=e=>!!(l.get(e)?.platforms.has(i())||s(e)),s=e=>n.PluginHeaders?.find(t=>t.name===e),c=t=>e.console.error(t),l=new Map;return n.convertFileSrc||=e=>e,n.getPlatform=i,n.handleError=c,n.isNativePlatform=a,n.isPluginAvailable=o,n.registerPlugin=(e,a={})=>{let o=l.get(e);if(o)return console.warn(`Capacitor plugin "${e}" already registered. Cannot register plugins twice.`),o.proxy;let c=i(),u=s(e),d,f=async()=>(!d&&c in a?d=d=typeof a[c]==`function`?await a[c]():a[c]:t!==null&&!d&&`web`in a&&(d=d=typeof a.web==`function`?await a.web():a.web),d),p=(t,r)=>{if(u){let i=u?.methods.find(e=>r===e.name);if(i)return i.rtype===`promise`?t=>n.nativePromise(e,r.toString(),t):(t,i)=>n.nativeCallback(e,r.toString(),t,i);if(t)return t[r]?.bind(t)}else if(t)return t[r]?.bind(t);else throw new Ze(`"${e}" plugin is not implemented on ${c}`,Xe.Unimplemented)},m=t=>{let n,r=(...r)=>{let i=f().then(i=>{let a=p(i,t);if(a){let e=a(...r);return n=e?.remove,e}else throw new Ze(`"${e}.${t}()" is not implemented on ${c}`,Xe.Unimplemented)});return t===`addListener`&&(i.remove=async()=>n()),i};return r.toString=()=>`${t.toString()}() { [capacitor code] }`,Object.defineProperty(r,`name`,{value:t,writable:!1,configurable:!1}),r},h=m(`addListener`),g=m(`removeListener`),_=(e,t)=>{let n=h({eventName:e},t),r=async()=>{g({eventName:e,callbackId:await n},t)},i=new Promise(e=>n.then(()=>e({remove:r})));return i.remove=async()=>{console.warn(`Using addListener() without 'await' is deprecated.`),await r()},i},v=new Proxy({},{get(e,t){switch(t){case`$$typeof`:return;case`toJSON`:return()=>({});case`addListener`:return u?_:h;case`removeListener`:return g;default:return m(t)}}});return r[e]=v,l.set(e,{name:e,proxy:v,platforms:new Set([...Object.keys(a),...u?[c]:[]])}),v},n.Exception=Ze,n.DEBUG=!!n.DEBUG,n.isLoggingEnabled=!!n.isLoggingEnabled,n},et=(e=>e.Capacitor=$e(e))(typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}),tt=et.registerPlugin,nt=class{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(e,t){let n=!1;this.listeners[e]||(this.listeners[e]=[],n=!0),this.listeners[e].push(t);let r=this.windowListeners[e];return r&&!r.registered&&this.addWindowListener(r),n&&this.sendRetainedArgumentsForEvent(e),Promise.resolve({remove:async()=>this.removeListener(e,t)})}async removeAllListeners(){this.listeners={};for(let e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t,n){let r=this.listeners[e];if(!r){if(n){let n=this.retainedEventArguments[e];n||=[],n.push(t),this.retainedEventArguments[e]=n}return}r.forEach(e=>e(t))}hasListeners(e){return!!this.listeners[e]?.length}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:e=>{this.notifyListeners(t,e)}}}unimplemented(e=`not implemented`){return new et.Exception(e,Xe.Unimplemented)}unavailable(e=`not available`){return new et.Exception(e,Xe.Unavailable)}async removeListener(e,t){let n=this.listeners[e];if(!n)return;let r=n.indexOf(t);this.listeners[e].splice(r,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}sendRetainedArgumentsForEvent(e){let t=this.retainedEventArguments[e];t&&(delete this.retainedEventArguments[e],t.forEach(t=>{this.notifyListeners(e,t)}))}},rt=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),it=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent),at=class extends nt{async getCookies(){let e=document.cookie,t={};return e.split(`;`).forEach(e=>{if(e.length<=0)return;let[n,r]=e.replace(/=/,`CAP_COOKIE`).split(`CAP_COOKIE`);n=it(n).trim(),r=it(r).trim(),t[n]=r}),t}async setCookie(e){try{let t=rt(e.key),n=rt(e.value),r=e.expires?`; expires=${e.expires.replace(`expires=`,``)}`:``,i=(e.path||`/`).replace(`path=`,``),a=e.url!=null&&e.url.length>0?`domain=${e.url}`:``;document.cookie=`${t}=${n||``}${r}; path=${i}; ${a};`}catch(e){return Promise.reject(e)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(e){return Promise.reject(e)}}async clearCookies(){try{let e=document.cookie.split(`;`)||[];for(let t of e)document.cookie=t.replace(/^ +/,``).replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}};tt(`CapacitorCookies`,{web:()=>new at});var ot=async e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=r.result;t(e.indexOf(`,`)>=0?e.split(`,`)[1]:e)},r.onerror=e=>n(e),r.readAsDataURL(e)}),st=(e={})=>{let t=Object.keys(e);return Object.keys(e).map(e=>e.toLocaleLowerCase()).reduce((n,r,i)=>(n[r]=e[t[i]],n),{})},ct=(e,t=!0)=>e?Object.entries(e).reduce((e,n)=>{let[r,i]=n,a,o;return Array.isArray(i)?(o=``,i.forEach(e=>{a=t?encodeURIComponent(e):e,o+=`${r}=${a}&`}),o.slice(0,-1)):(a=t?encodeURIComponent(i):i,o=`${r}=${a}`),`${e}&${o}`},``).substr(1):null,lt=(e,t={})=>{let n=Object.assign({method:e.method||`GET`,headers:e.headers},t),r=st(e.headers)[`content-type`]||``;if(typeof e.data==`string`)n.body=e.data;else if(r.includes(`application/x-www-form-urlencoded`)){let t=new URLSearchParams;for(let[n,r]of Object.entries(e.data||{}))t.set(n,r);n.body=t.toString()}else if(r.includes(`multipart/form-data`)||e.data instanceof FormData){let t=new FormData;if(e.data instanceof FormData)e.data.forEach((e,n)=>{t.append(n,e)});else for(let n of Object.keys(e.data))t.append(n,e.data[n]);n.body=t;let r=new Headers(n.headers);r.delete(`content-type`),n.headers=r}else (r.includes(`application/json`)||typeof e.data==`object`)&&(n.body=JSON.stringify(e.data));return n},ut=class extends nt{async request(e){let t=lt(e,e.webFetchExtra),n=ct(e.params,e.shouldEncodeUrlParams),r=n?`${e.url}?${n}`:e.url,i=await fetch(r,t),a=i.headers.get(`content-type`)||``,{responseType:o=`text`}=i.ok?e:{};a.includes(`application/json`)&&(o=`json`);let s,c;switch(o){case`arraybuffer`:case`blob`:c=await i.blob(),s=await ot(c);break;case`json`:s=await i.json();break;default:s=await i.text()}let l={};return i.headers.forEach((e,t)=>{l[t]=e}),{data:s,headers:l,status:i.status,url:i.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:`GET`}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:`POST`}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:`PUT`}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:`PATCH`}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:`DELETE`}))}};tt(`CapacitorHttp`,{web:()=>new ut});var dt;(function(e){e.Dark=`DARK`,e.Light=`LIGHT`,e.Default=`DEFAULT`})(dt||={});var ft;(function(e){e.StatusBar=`StatusBar`,e.NavigationBar=`NavigationBar`})(ft||={});var pt=class extends nt{async setStyle(){this.unavailable(`not available for web`)}async setAnimation(){this.unavailable(`not available for web`)}async show(){this.unavailable(`not available for web`)}async hide(){this.unavailable(`not available for web`)}};tt(`SystemBars`,{web:()=>new pt});var mt=`modulepreload`,ht=function(e){return`/`+e},gt={},_t=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=ht(t,n),t in gt)return;gt[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:mt,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},vt=tt(`Preferences`,{web:()=>_t(()=>import(`./web-Cmd0b3Gu.js`).then(e=>new e.PreferencesWeb),[])});async function yt(e){if(!et.isNativePlatform())return(await chrome.storage.local.get(e))[e]??null;let{value:t}=await vt.get({key:e});return t}async function bt(e,t){if(!et.isNativePlatform()){await chrome.storage.local.set({[e]:t});return}await vt.set({key:e,value:t})}function xt(e){return e.passkey!==void 0&&e.passkey.credentialId.length>0}function St(e){return xt(e)&&!e.password}var Ct=[{name:`peach`,hex:`#F49C70`},{name:`rose`,hex:`#FF8AA6`},{name:`plum`,hex:`#D597F2`},{name:`lavender`,hex:`#A6A8FF`},{name:`sky`,hex:`#5BC8EE`},{name:`mint`,hex:`#5EE0B0`},{name:`sage`,hex:`#B5D870`},{name:`butter`,hex:`#FFD45A`},{name:`sand`,hex:`#EDBC85`},{name:`clay`,hex:`#F08660`},{name:`slate`,hex:`#80BEDE`},{name:`stone`,hex:`#C8B8A8`}],wt=G(`