diff --git a/_app/immutable/chunks/constants.6d5eb8fd.js b/_app/immutable/chunks/constants.6d5eb8fd.js
deleted file mode 100644
index 09c49b5..0000000
--- a/_app/immutable/chunks/constants.6d5eb8fd.js
+++ /dev/null
@@ -1 +0,0 @@
-var e=(t=>(t.DiscordInvite="https://discord.gg/ynwckXS9T2",t.Github="https://discord.gg/ynwckXS9T2",t))(e||{});const r=/^[0-9]{18}$/;function s(t){switch(t){case 1:return"Chat Input";case 2:return"User";case 3:return"Message";default:return"Unknown"}}export{e as U,r as d,s as t};
diff --git a/_app/immutable/chunks/constants.85e98373.js b/_app/immutable/chunks/constants.85e98373.js
new file mode 100644
index 0000000..0d73f0e
--- /dev/null
+++ b/_app/immutable/chunks/constants.85e98373.js
@@ -0,0 +1 @@
+var e=(t=>(t.DiscordInvite="https://discord.gg/ynwckXS9T2",t.Github="https://github.com/typicalninja/discord-slash-manager",t))(e||{});const s=/^[0-9]{18}$/;function n(t){switch(t){case 1:return"Chat Input";case 2:return"User";case 3:return"Message";default:return"Unknown"}}export{e as U,s as d,n as t};
diff --git a/_app/immutable/chunks/navigation.2c693d71.js b/_app/immutable/chunks/navigation.2c693d71.js
new file mode 100644
index 0000000..cf7b2c3
--- /dev/null
+++ b/_app/immutable/chunks/navigation.2c693d71.js
@@ -0,0 +1 @@
+import{h as o}from"./singletons.fc8f63c9.js";const e=o("goto");export{e as g};
diff --git a/_app/immutable/chunks/navigation.826e938d.js b/_app/immutable/chunks/navigation.826e938d.js
deleted file mode 100644
index eb8bfce..0000000
--- a/_app/immutable/chunks/navigation.826e938d.js
+++ /dev/null
@@ -1 +0,0 @@
-import{h as o}from"./singletons.b5328052.js";const e=o("goto");export{e as g};
diff --git a/_app/immutable/chunks/paths.906bffba.js b/_app/immutable/chunks/paths.906bffba.js
new file mode 100644
index 0000000..7693528
--- /dev/null
+++ b/_app/immutable/chunks/paths.906bffba.js
@@ -0,0 +1 @@
+var s;const t=((s=globalThis.__sveltekit_st9uaj)==null?void 0:s.base)??"/discord-slash-manager";var a;const e=((a=globalThis.__sveltekit_st9uaj)==null?void 0:a.assets)??t;export{e as a,t as b};
diff --git a/_app/immutable/chunks/paths.f2a78332.js b/_app/immutable/chunks/paths.f2a78332.js
deleted file mode 100644
index 406261c..0000000
--- a/_app/immutable/chunks/paths.f2a78332.js
+++ /dev/null
@@ -1 +0,0 @@
-var s;const e=((s=globalThis.__sveltekit_1w2g5av)==null?void 0:s.base)??"/discord-slash-manager";var a;const t=((a=globalThis.__sveltekit_1w2g5av)==null?void 0:a.assets)??e;export{t as a,e as b};
diff --git a/_app/immutable/chunks/singletons.b5328052.js b/_app/immutable/chunks/singletons.fc8f63c9.js
similarity index 97%
rename from _app/immutable/chunks/singletons.b5328052.js
rename to _app/immutable/chunks/singletons.fc8f63c9.js
index 43f069b..30ef494 100644
--- a/_app/immutable/chunks/singletons.b5328052.js
+++ b/_app/immutable/chunks/singletons.fc8f63c9.js
@@ -1 +1 @@
-import{w as u}from"./index.403b996f.js";import{a as b}from"./paths.f2a78332.js";const v="1694191172544",A="sveltekit:snapshot",R="sveltekit:scroll",y="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function I(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function S(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function _(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function T(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=_(e)}}function x(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const s=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!s||k(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===location.origin&&e.hasAttribute("download");return{url:n,external:r,target:s,download:l}}function O(e){let t=null,n=null,s=null,r=null,l=null,a=null,o=e;for(;o&&o!==document.documentElement;)s===null&&(s=c(o,"preload-code")),r===null&&(r=c(o,"preload-data")),t===null&&(t=c(o,"keepfocus")),n===null&&(n=c(o,"noscroll")),l===null&&(l=c(o,"reload")),a===null&&(a=c(o,"replacestate")),o=_(o);function i(g){switch(g){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[s??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(a)}}function p(e){const t=u(e);let n=!0;function s(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function l(a){let o;return t.subscribe(i=>{(o===void 0||n&&i!==o)&&a(o=i)})}return{notify:s,set:r,subscribe:l}}function m(){const{set:e,subscribe:t}=u(!1);let n;async function s(){clearTimeout(n);try{const r=await fetch(`${b}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==v;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:s}}function k(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}let h;function U(e){h=e.client}function L(e){return(...t)=>h[e](...t)}const N={url:p({}),page:p({}),navigating:u(null),updated:m()};export{y as I,f as P,R as S,A as a,x as b,O as c,N as d,U as e,T as f,I as g,L as h,k as i,S as s};
+import{w as u}from"./index.403b996f.js";import{a as b}from"./paths.906bffba.js";const v="1694192294753",A="sveltekit:snapshot",R="sveltekit:scroll",y="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function I(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function S(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function _(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function T(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=_(e)}}function x(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const s=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!s||k(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===location.origin&&e.hasAttribute("download");return{url:n,external:r,target:s,download:l}}function O(e){let t=null,n=null,s=null,r=null,l=null,a=null,o=e;for(;o&&o!==document.documentElement;)s===null&&(s=c(o,"preload-code")),r===null&&(r=c(o,"preload-data")),t===null&&(t=c(o,"keepfocus")),n===null&&(n=c(o,"noscroll")),l===null&&(l=c(o,"reload")),a===null&&(a=c(o,"replacestate")),o=_(o);function i(g){switch(g){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[s??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(a)}}function p(e){const t=u(e);let n=!0;function s(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function l(a){let o;return t.subscribe(i=>{(o===void 0||n&&i!==o)&&a(o=i)})}return{notify:s,set:r,subscribe:l}}function m(){const{set:e,subscribe:t}=u(!1);let n;async function s(){clearTimeout(n);try{const r=await fetch(`${b}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==v;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:s}}function k(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}let h;function U(e){h=e.client}function L(e){return(...t)=>h[e](...t)}const N={url:p({}),page:p({}),navigating:u(null),updated:m()};export{y as I,f as P,R as S,A as a,x as b,O as c,N as d,U as e,T as f,I as g,L as h,k as i,S as s};
diff --git a/_app/immutable/chunks/stores.23aae154.js b/_app/immutable/chunks/stores.5caa3662.js
similarity index 73%
rename from _app/immutable/chunks/stores.23aae154.js
rename to _app/immutable/chunks/stores.5caa3662.js
index c560130..43f35cd 100644
--- a/_app/immutable/chunks/stores.23aae154.js
+++ b/_app/immutable/chunks/stores.5caa3662.js
@@ -1 +1 @@
-import{d as e}from"./singletons.b5328052.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
+import{d as e}from"./singletons.fc8f63c9.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
diff --git a/_app/immutable/entry/app.2b142c49.js b/_app/immutable/entry/app.ee37c3e1.js
similarity index 78%
rename from _app/immutable/entry/app.2b142c49.js
rename to _app/immutable/entry/app.ee37c3e1.js
index 24aece5..6f2bd25 100644
--- a/_app/immutable/entry/app.2b142c49.js
+++ b/_app/immutable/entry/app.ee37c3e1.js
@@ -1 +1 @@
-import{s as q,a as B,o as U,t as j,b as D}from"../chunks/scheduler.5c7fdb1c.js";import{S as W,i as z,s as F,e as d,c as G,a as w,t as h,b as L,d as p,f as g,g as H,h as J,j as K,k as I,l as m,m as M,n as Q,o as X,p as P,q as E,r as v,u as O,v as R,w as y}from"../chunks/index.21959a4f.js";const Y="modulepreload",Z=function(o,e){return new URL(o,e).href},T={},k=function(e,n,i){if(!n||n.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(n.map(f=>{if(f=Z(f,i),f in T)return;T[f]=!0;const t=f.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(!!i)for(let a=s.length-1;a>=0;a--){const u=s[a];if(u.href===f&&(!t||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${r}`))return;const c=document.createElement("link");if(c.rel=t?"stylesheet":Y,t||(c.as="script",c.crossOrigin=""),c.href=f,document.head.appendChild(c),t)return new Promise((a,u)=>{c.addEventListener("load",a),c.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${f}`)))})})).then(()=>e()).catch(f=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=f,window.dispatchEvent(t),!t.defaultPrevented)throw f})},re={};function $(o){let e,n,i;var s=o[1][0];function f(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=E(s,f(o)),o[12](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&O(e.$$.fragment,t),n=d()},m(t,r){e&&R(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){P();const l=e;h(l.$$.fragment,1,0,()=>{y(l,1)}),L()}s?(e=E(s,f(t)),t[12](e),v(e.$$.fragment),p(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&p(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){t&&g(n),o[12](null),e&&y(e,t)}}}function x(o){let e,n,i;var s=o[1][0];function f(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=E(s,f(o)),o[11](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&O(e.$$.fragment,t),n=d()},m(t,r){e&&R(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){P();const l=e;h(l.$$.fragment,1,0,()=>{y(l,1)}),L()}s?(e=E(s,f(t)),t[11](e),v(e.$$.fragment),p(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&8215&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)}},i(t){i||(e&&p(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){t&&g(n),o[11](null),e&&y(e,t)}}}function ee(o){let e,n,i;var s=o[1][1];function f(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=E(s,f(o)),o[10](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&O(e.$$.fragment,t),n=d()},m(t,r){e&&R(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){P();const l=e;h(l.$$.fragment,1,0,()=>{y(l,1)}),L()}s?(e=E(s,f(t)),t[10](e),v(e.$$.fragment),p(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const l={};r&16&&(l.data=t[4]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&p(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){t&&g(n),o[10](null),e&&y(e,t)}}}function V(o){let e,n=o[6]&&A(o);return{c(){e=H("div"),n&&n.c(),this.h()},l(i){e=J(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=K(e);n&&n.l(s),s.forEach(g),this.h()},h(){I(e,"id","svelte-announcer"),I(e,"aria-live","assertive"),I(e,"aria-atomic","true"),m(e,"position","absolute"),m(e,"left","0"),m(e,"top","0"),m(e,"clip","rect(0 0 0 0)"),m(e,"clip-path","inset(50%)"),m(e,"overflow","hidden"),m(e,"white-space","nowrap"),m(e,"width","1px"),m(e,"height","1px")},m(i,s){w(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=A(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&g(e),n&&n.d()}}}function A(o){let e;return{c(){e=M(o[7])},l(n){e=Q(n,o[7])},m(n,i){w(n,e,i)},p(n,i){i&128&&X(e,n[7])},d(n){n&&g(e)}}}function te(o){let e,n,i,s,f;const t=[x,$],r=[];function l(a,u){return a[1][1]?0:1}e=l(o),n=r[e]=t[e](o);let c=o[5]&&V(o);return{c(){n.c(),i=F(),c&&c.c(),s=d()},l(a){n.l(a),i=G(a),c&&c.l(a),s=d()},m(a,u){r[e].m(a,u),w(a,i,u),c&&c.m(a,u),w(a,s,u),f=!0},p(a,[u]){let b=e;e=l(a),e===b?r[e].p(a,u):(P(),h(r[b],1,1,()=>{r[b]=null}),L(),n=r[e],n?n.p(a,u):(n=r[e]=t[e](a),n.c()),p(n,1),n.m(i.parentNode,i)),a[5]?c?c.p(a,u):(c=V(a),c.c(),c.m(s.parentNode,s)):c&&(c.d(1),c=null)},i(a){f||(p(n),f=!0)},o(a){h(n),f=!1},d(a){a&&(g(i),g(s)),r[e].d(a),c&&c.d(a)}}}function ne(o,e,n){let{stores:i}=e,{page:s}=e,{constructors:f}=e,{components:t=[]}=e,{form:r}=e,{data_0:l=null}=e,{data_1:c=null}=e;B(i.page.notify);let a=!1,u=!1,b=null;U(()=>{const _=i.page.subscribe(()=>{a&&(n(6,u=!0),j().then(()=>{n(7,b=document.title||"untitled page")}))});return n(5,a=!0),_});function N(_){D[_?"unshift":"push"](()=>{t[1]=_,n(0,t)})}function S(_){D[_?"unshift":"push"](()=>{t[0]=_,n(0,t)})}function C(_){D[_?"unshift":"push"](()=>{t[0]=_,n(0,t)})}return o.$$set=_=>{"stores"in _&&n(8,i=_.stores),"page"in _&&n(9,s=_.page),"constructors"in _&&n(1,f=_.constructors),"components"in _&&n(0,t=_.components),"form"in _&&n(2,r=_.form),"data_0"in _&&n(3,l=_.data_0),"data_1"in _&&n(4,c=_.data_1)},o.$$.update=()=>{o.$$.dirty&768&&i.page.set(s)},[t,f,r,l,c,a,u,b,i,s,N,S,C]}class oe extends W{constructor(e){super(),z(this,e,ne,te,q,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>k(()=>import("../nodes/0.22159d4b.js"),["../nodes/0.22159d4b.js","../chunks/scheduler.5c7fdb1c.js","../chunks/index.21959a4f.js","../chunks/paths.f2a78332.js","../chunks/localStore.3ee7e119.js","../chunks/index.403b996f.js","../chunks/context.981da52b.js","../assets/0.1f96fccd.css"],import.meta.url),()=>k(()=>import("../nodes/1.e9ad0e23.js"),["../nodes/1.e9ad0e23.js","../chunks/scheduler.5c7fdb1c.js","../chunks/index.21959a4f.js","../chunks/stores.23aae154.js","../chunks/singletons.b5328052.js","../chunks/index.403b996f.js","../chunks/paths.f2a78332.js"],import.meta.url),()=>k(()=>import("../nodes/2.cc13186a.js"),["../nodes/2.cc13186a.js","../chunks/scheduler.5c7fdb1c.js","../chunks/index.21959a4f.js","../chunks/paths.f2a78332.js","../chunks/constants.6d5eb8fd.js"],import.meta.url),()=>k(()=>import("../nodes/3.8ae45990.js"),["../nodes/3.8ae45990.js","../chunks/scheduler.5c7fdb1c.js","../chunks/index.21959a4f.js","../chunks/localStore.3ee7e119.js","../chunks/index.403b996f.js","../chunks/stores.23aae154.js","../chunks/singletons.b5328052.js","../chunks/paths.f2a78332.js","../chunks/api.3d2a0698.js","../chunks/constants.6d5eb8fd.js","../chunks/context.981da52b.js","../chunks/navigation.826e938d.js"],import.meta.url),()=>k(()=>import("../nodes/4.f412b4e9.js"),["../nodes/4.f412b4e9.js","../chunks/scheduler.5c7fdb1c.js","../chunks/index.21959a4f.js","../chunks/localStore.3ee7e119.js","../chunks/index.403b996f.js","../chunks/navigation.826e938d.js","../chunks/singletons.b5328052.js","../chunks/paths.f2a78332.js","../chunks/api.3d2a0698.js","../chunks/constants.6d5eb8fd.js"],import.meta.url),()=>k(()=>import("../nodes/5.231d10e0.js"),["../nodes/5.231d10e0.js","../chunks/scheduler.5c7fdb1c.js","../chunks/index.21959a4f.js","../chunks/localStore.3ee7e119.js","../chunks/index.403b996f.js","../chunks/navigation.826e938d.js","../chunks/singletons.b5328052.js","../chunks/paths.f2a78332.js"],import.meta.url)],le=[],fe={"/":[2],"/dashboard":[3],"/login":[4],"/logout":[5]},ce={handleError:({error:o})=>{console.error(o)}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads};
+import{s as q,a as B,o as U,t as j,b as D}from"../chunks/scheduler.5c7fdb1c.js";import{S as W,i as z,s as F,e as d,c as G,a as w,t as h,b as L,d as p,f as g,g as H,h as J,j as K,k as I,l as m,m as M,n as Q,o as X,p as P,q as E,r as v,u as O,v as R,w as y}from"../chunks/index.21959a4f.js";const Y="modulepreload",Z=function(o,e){return new URL(o,e).href},T={},k=function(e,n,i){if(!n||n.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(n.map(f=>{if(f=Z(f,i),f in T)return;T[f]=!0;const t=f.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(!!i)for(let a=s.length-1;a>=0;a--){const u=s[a];if(u.href===f&&(!t||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${r}`))return;const c=document.createElement("link");if(c.rel=t?"stylesheet":Y,t||(c.as="script",c.crossOrigin=""),c.href=f,document.head.appendChild(c),t)return new Promise((a,u)=>{c.addEventListener("load",a),c.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${f}`)))})})).then(()=>e()).catch(f=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=f,window.dispatchEvent(t),!t.defaultPrevented)throw f})},re={};function $(o){let e,n,i;var s=o[1][0];function f(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=E(s,f(o)),o[12](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&O(e.$$.fragment,t),n=d()},m(t,r){e&&R(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){P();const l=e;h(l.$$.fragment,1,0,()=>{y(l,1)}),L()}s?(e=E(s,f(t)),t[12](e),v(e.$$.fragment),p(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&p(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){t&&g(n),o[12](null),e&&y(e,t)}}}function x(o){let e,n,i;var s=o[1][0];function f(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=E(s,f(o)),o[11](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&O(e.$$.fragment,t),n=d()},m(t,r){e&&R(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){P();const l=e;h(l.$$.fragment,1,0,()=>{y(l,1)}),L()}s?(e=E(s,f(t)),t[11](e),v(e.$$.fragment),p(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&8215&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)}},i(t){i||(e&&p(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){t&&g(n),o[11](null),e&&y(e,t)}}}function ee(o){let e,n,i;var s=o[1][1];function f(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=E(s,f(o)),o[10](e)),{c(){e&&v(e.$$.fragment),n=d()},l(t){e&&O(e.$$.fragment,t),n=d()},m(t,r){e&&R(e,t,r),w(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){P();const l=e;h(l.$$.fragment,1,0,()=>{y(l,1)}),L()}s?(e=E(s,f(t)),t[10](e),v(e.$$.fragment),p(e.$$.fragment,1),R(e,n.parentNode,n)):e=null}else if(s){const l={};r&16&&(l.data=t[4]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&p(e.$$.fragment,t),i=!0)},o(t){e&&h(e.$$.fragment,t),i=!1},d(t){t&&g(n),o[10](null),e&&y(e,t)}}}function V(o){let e,n=o[6]&&A(o);return{c(){e=H("div"),n&&n.c(),this.h()},l(i){e=J(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=K(e);n&&n.l(s),s.forEach(g),this.h()},h(){I(e,"id","svelte-announcer"),I(e,"aria-live","assertive"),I(e,"aria-atomic","true"),m(e,"position","absolute"),m(e,"left","0"),m(e,"top","0"),m(e,"clip","rect(0 0 0 0)"),m(e,"clip-path","inset(50%)"),m(e,"overflow","hidden"),m(e,"white-space","nowrap"),m(e,"width","1px"),m(e,"height","1px")},m(i,s){w(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=A(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&g(e),n&&n.d()}}}function A(o){let e;return{c(){e=M(o[7])},l(n){e=Q(n,o[7])},m(n,i){w(n,e,i)},p(n,i){i&128&&X(e,n[7])},d(n){n&&g(e)}}}function te(o){let e,n,i,s,f;const t=[x,$],r=[];function l(a,u){return a[1][1]?0:1}e=l(o),n=r[e]=t[e](o);let c=o[5]&&V(o);return{c(){n.c(),i=F(),c&&c.c(),s=d()},l(a){n.l(a),i=G(a),c&&c.l(a),s=d()},m(a,u){r[e].m(a,u),w(a,i,u),c&&c.m(a,u),w(a,s,u),f=!0},p(a,[u]){let b=e;e=l(a),e===b?r[e].p(a,u):(P(),h(r[b],1,1,()=>{r[b]=null}),L(),n=r[e],n?n.p(a,u):(n=r[e]=t[e](a),n.c()),p(n,1),n.m(i.parentNode,i)),a[5]?c?c.p(a,u):(c=V(a),c.c(),c.m(s.parentNode,s)):c&&(c.d(1),c=null)},i(a){f||(p(n),f=!0)},o(a){h(n),f=!1},d(a){a&&(g(i),g(s)),r[e].d(a),c&&c.d(a)}}}function ne(o,e,n){let{stores:i}=e,{page:s}=e,{constructors:f}=e,{components:t=[]}=e,{form:r}=e,{data_0:l=null}=e,{data_1:c=null}=e;B(i.page.notify);let a=!1,u=!1,b=null;U(()=>{const _=i.page.subscribe(()=>{a&&(n(6,u=!0),j().then(()=>{n(7,b=document.title||"untitled page")}))});return n(5,a=!0),_});function N(_){D[_?"unshift":"push"](()=>{t[1]=_,n(0,t)})}function S(_){D[_?"unshift":"push"](()=>{t[0]=_,n(0,t)})}function C(_){D[_?"unshift":"push"](()=>{t[0]=_,n(0,t)})}return o.$$set=_=>{"stores"in _&&n(8,i=_.stores),"page"in _&&n(9,s=_.page),"constructors"in _&&n(1,f=_.constructors),"components"in _&&n(0,t=_.components),"form"in _&&n(2,r=_.form),"data_0"in _&&n(3,l=_.data_0),"data_1"in _&&n(4,c=_.data_1)},o.$$.update=()=>{o.$$.dirty&768&&i.page.set(s)},[t,f,r,l,c,a,u,b,i,s,N,S,C]}class oe extends W{constructor(e){super(),z(this,e,ne,te,q,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>k(()=>import("../nodes/0.44f7a270.js"),["../nodes/0.44f7a270.js","../chunks/scheduler.5c7fdb1c.js","../chunks/index.21959a4f.js","../chunks/paths.906bffba.js","../chunks/localStore.3ee7e119.js","../chunks/index.403b996f.js","../chunks/context.981da52b.js","../assets/0.1f96fccd.css"],import.meta.url),()=>k(()=>import("../nodes/1.43a8c1d6.js"),["../nodes/1.43a8c1d6.js","../chunks/scheduler.5c7fdb1c.js","../chunks/index.21959a4f.js","../chunks/stores.5caa3662.js","../chunks/singletons.fc8f63c9.js","../chunks/index.403b996f.js","../chunks/paths.906bffba.js"],import.meta.url),()=>k(()=>import("../nodes/2.29e9a2af.js"),["../nodes/2.29e9a2af.js","../chunks/scheduler.5c7fdb1c.js","../chunks/index.21959a4f.js","../chunks/paths.906bffba.js","../chunks/constants.85e98373.js"],import.meta.url),()=>k(()=>import("../nodes/3.7cf76062.js"),["../nodes/3.7cf76062.js","../chunks/scheduler.5c7fdb1c.js","../chunks/index.21959a4f.js","../chunks/localStore.3ee7e119.js","../chunks/index.403b996f.js","../chunks/stores.5caa3662.js","../chunks/singletons.fc8f63c9.js","../chunks/paths.906bffba.js","../chunks/api.3d2a0698.js","../chunks/constants.85e98373.js","../chunks/context.981da52b.js","../chunks/navigation.2c693d71.js"],import.meta.url),()=>k(()=>import("../nodes/4.7690eff1.js"),["../nodes/4.7690eff1.js","../chunks/scheduler.5c7fdb1c.js","../chunks/index.21959a4f.js","../chunks/localStore.3ee7e119.js","../chunks/index.403b996f.js","../chunks/navigation.2c693d71.js","../chunks/singletons.fc8f63c9.js","../chunks/paths.906bffba.js","../chunks/api.3d2a0698.js","../chunks/constants.85e98373.js"],import.meta.url),()=>k(()=>import("../nodes/5.d9b34026.js"),["../nodes/5.d9b34026.js","../chunks/scheduler.5c7fdb1c.js","../chunks/index.21959a4f.js","../chunks/localStore.3ee7e119.js","../chunks/index.403b996f.js","../chunks/navigation.2c693d71.js","../chunks/singletons.fc8f63c9.js","../chunks/paths.906bffba.js"],import.meta.url)],le=[],fe={"/":[2],"/dashboard":[3],"/login":[4],"/logout":[5]},ce={handleError:({error:o})=>{console.error(o)}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads};
diff --git a/_app/immutable/entry/start.f3521039.js b/_app/immutable/entry/start.b5cd23d6.js
similarity index 99%
rename from _app/immutable/entry/start.f3521039.js
rename to _app/immutable/entry/start.b5cd23d6.js
index fbd03ce..6c253bb 100644
--- a/_app/immutable/entry/start.f3521039.js
+++ b/_app/immutable/entry/start.b5cd23d6.js
@@ -1,3 +1,3 @@
-import{o as we,t as ye}from"../chunks/scheduler.5c7fdb1c.js";import{S as Ge,a as Je,I as M,g as Ce,f as Me,b as _e,c as le,s as ee,i as ve,d as F,P as Ve,e as Xe}from"../chunks/singletons.b5328052.js";import{b as J}from"../chunks/paths.f2a78332.js";function Ze(t,r){return t==="/"||r==="ignore"?t:r==="never"?t.endsWith("/")?t.slice(0,-1):t:r==="always"&&!t.endsWith("/")?t+"/":t}function Qe(t){return t.split("%25").map(decodeURI).join("%25")}function et(t){for(const r in t)t[r]=decodeURIComponent(t[r]);return t}const tt=["href","pathname","search","searchParams","toString","toJSON"];function nt(t,r){const u=new URL(t);for(const s of tt)Object.defineProperty(u,s,{get(){return r(),t[s]},enumerable:!0,configurable:!0});return at(u),u}function at(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const rt="/__data.json";function ot(t){return t.replace(/\/$/,"")+rt}function it(...t){let r=5381;for(const u of t)if(typeof u=="string"){let s=u.length;for(;s;)r=r*33^u.charCodeAt(--s)}else if(ArrayBuffer.isView(u)){const s=new Uint8Array(u.buffer,u.byteOffset,u.byteLength);let d=s.length;for(;d;)r=r*33^s[--d]}else throw new TypeError("value must be a string or TypedArray");return(r>>>0).toString(36)}const fe=window.fetch;window.fetch=(t,r)=>((t instanceof Request?t.method:(r==null?void 0:r.method)||"GET")!=="GET"&&ne.delete(ke(t)),fe(t,r));const ne=new Map;function st(t,r){const u=ke(t,r),s=document.querySelector(u);if(s!=null&&s.textContent){const{body:d,...f}=JSON.parse(s.textContent),E=s.getAttribute("data-ttl");return E&&ne.set(u,{body:d,init:f,ttl:1e3*Number(E)}),Promise.resolve(new Response(d,f))}return fe(t,r)}function ct(t,r,u){if(ne.size>0){const s=ke(t,u),d=ne.get(s);if(d){if(performance.now(){const d=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(s);if(d)return r.push({name:d[1],matcher:d[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const f=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(s);if(f)return r.push({name:f[1],matcher:f[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!s)return;const E=s.split(/\[(.+?)\](?!\])/);return"/"+E.map((w,p)=>{if(p%2){if(w.startsWith("x+"))return be(String.fromCharCode(parseInt(w.slice(2),16)));if(w.startsWith("u+"))return be(String.fromCharCode(...w.slice(2).split("-").map(U=>parseInt(U,16))));const g=lt.exec(w);if(!g)throw new Error(`Invalid param: ${w}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,D,x,k,N]=g;return r.push({name:k,matcher:N,optional:!!D,rest:!!x,chained:x?p===1&&E[0]==="":!1}),x?"(.*?)":D?"([^/]*)?":"([^/]+?)"}return be(w)}).join("")}).join("")}/?$`),params:r}}function ut(t){return!/^\([^)]+\)$/.test(t)}function dt(t){return t.slice(1).split("/").filter(ut)}function pt(t,r,u){const s={},d=t.slice(1);let f=0;for(let E=0;Ep).join("/"),f=0),w===void 0){l.rest&&(s[l.name]="");continue}if(!l.matcher||u[l.matcher](w)){s[l.name]=w;const p=r[E+1],g=d[E+1];p&&!p.rest&&p.optional&&g&&l.chained&&(f=0);continue}if(l.optional&&l.chained){f++;continue}return}if(!f)return s}function be(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function ht({nodes:t,server_loads:r,dictionary:u,matchers:s}){const d=new Set(r);return Object.entries(u).map(([l,[w,p,g]])=>{const{pattern:D,params:x}=ft(l),k={id:l,exec:N=>{const U=D.exec(N);if(U)return pt(U,x,s)},errors:[1,...g||[]].map(N=>t[N]),layouts:[0,...p||[]].map(E),leaf:f(w)};return k.errors.length=k.layouts.length=Math.max(k.errors.length,k.layouts.length),k});function f(l){const w=l<0;return w&&(l=~l),[w,t[l]]}function E(l){return l===void 0?l:[d.has(l),t[l]]}}function Ke(t){try{return JSON.parse(sessionStorage[t])}catch{}}function qe(t,r){const u=JSON.stringify(r);try{sessionStorage[t]=u}catch{}}const gt=-1,mt=-2,wt=-3,yt=-4,_t=-5,vt=-6;function bt(t,r){if(typeof t=="number")return d(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const u=t,s=Array(u.length);function d(f,E=!1){if(f===gt)return;if(f===wt)return NaN;if(f===yt)return 1/0;if(f===_t)return-1/0;if(f===vt)return-0;if(E)throw new Error("Invalid input");if(f in s)return s[f];const l=u[f];if(!l||typeof l!="object")s[f]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const w=l[0],p=r==null?void 0:r[w];if(p)return s[f]=p(d(l[1]));switch(w){case"Date":s[f]=new Date(l[1]);break;case"Set":const g=new Set;s[f]=g;for(let k=1;kr!=null)}const ze=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ze];const St=new Set([...ze]);[...St];async function kt(t){var r;for(const u in t)if(typeof((r=t[u])==null?void 0:r.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([s,d])=>[s,await d])));return t}class te{constructor(r,u){this.status=r,typeof u=="string"?this.body={message:u}:u?this.body=u:this.body={message:`Error: ${r}`}}toString(){return JSON.stringify(this.body)}}class Fe{constructor(r,u){this.status=r,this.location=u}}const Rt="x-sveltekit-invalidated",At="x-sveltekit-trailing-slash",K=Ke(Ge)??{},Q=Ke(Je)??{};function Ee(t){K[t]=ee()}function It(t,r){var $e;const u=ht(t),s=t.nodes[0],d=t.nodes[1];s(),d();const f=document.documentElement,E=[],l=[];let w=null;const p={before_navigate:[],on_navigate:[],after_navigate:[]};let g={branch:[],error:null,url:null},D=!1,x=!1,k=!0,N=!1,U=!1,H=!1,B=!1,V,T=($e=history.state)==null?void 0:$e[M];T||(T=Date.now(),history.replaceState({...history.state,[M]:T},"",location.href));const ue=K[T];ue&&(history.scrollRestoration="manual",scrollTo(ue.x,ue.y));let q,ae,W;async function Re(){if(W=W||Promise.resolve(),await W,!W)return;W=null;const e=new URL(location.href),i=X(e,!0);w=null;const n=ae={},o=i&&await he(i);if(n===ae&&o){if(o.type==="redirect")return re(new URL(o.location,e).href,{},[e.pathname],n);o.props.page!==void 0&&(q=o.props.page),V.$set(o.props)}}function Ae(e){l.some(i=>i==null?void 0:i.snapshot)&&(Q[e]=l.map(i=>{var n;return(n=i==null?void 0:i.snapshot)==null?void 0:n.capture()}))}function Ie(e){var i;(i=Q[e])==null||i.forEach((n,o)=>{var a,c;(c=(a=l[o])==null?void 0:a.snapshot)==null||c.restore(n)})}function Le(){Ee(T),qe(Ge,K),Ae(T),qe(Je,Q)}async function re(e,{noScroll:i=!1,replaceState:n=!1,keepFocus:o=!1,state:a={},invalidateAll:c=!1},h,v){return typeof e=="string"&&(e=new URL(e,Ce(document))),ce({url:e,scroll:i?ee():null,keepfocus:o,redirect_chain:h,details:{state:a,replaceState:n},nav_token:v,accepted:()=>{c&&(B=!0)},blocked:()=>{},type:"goto"})}async function Pe(e){return w={id:e.id,promise:he(e).then(i=>(i.type==="loaded"&&i.state.error&&(w=null),i))},w.promise}async function oe(...e){const n=u.filter(o=>e.some(a=>o.exec(a))).map(o=>Promise.all([...o.layouts,o.leaf].map(a=>a==null?void 0:a[1]())));await Promise.all(n)}function Oe(e){var o;g=e.state;const i=document.querySelector("style[data-sveltekit]");i&&i.remove(),q=e.props.page,V=new t.root({target:r,props:{...e.props,stores:F,components:l},hydrate:!0}),Ie(T);const n={from:null,to:{params:g.params,route:{id:((o=g.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};p.after_navigate.forEach(a=>a(n)),x=!0}async function Y({url:e,params:i,branch:n,status:o,error:a,route:c,form:h}){let v="never";for(const y of n)(y==null?void 0:y.slash)!==void 0&&(v=y.slash);e.pathname=Ze(e.pathname,v),e.search=e.search;const b={type:"loaded",state:{url:e,params:i,branch:n,error:a,route:c},props:{constructors:Et(n).map(y=>y.node.component)}};h!==void 0&&(b.props.form=h);let _={},L=!q,A=0;for(let y=0;y(v.route=!0,m[O])}),params:new Proxy(o,{get:(m,O)=>(v.params.add(O),m[O])}),data:(c==null?void 0:c.data)??null,url:nt(n,()=>{v.url=!0}),async fetch(m,O){let j;m instanceof Request?(j=m.url,O={body:m.method==="GET"||m.method==="HEAD"?void 0:await m.blob(),cache:m.cache,credentials:m.credentials,headers:m.headers,integrity:m.integrity,keepalive:m.keepalive,method:m.method,mode:m.mode,redirect:m.redirect,referrer:m.referrer,referrerPolicy:m.referrerPolicy,signal:m.signal,...O}):j=m;const C=new URL(j,n);return P(C.href),C.origin===n.origin&&(j=C.href.slice(n.origin.length)),x?ct(j,C.href,O):st(j,O)},setHeaders:()=>{},depends:P,parent(){return v.parent=!0,i()}};h=await b.universal.load.call(null,y)??null,h=h?await kt(h):null}return{node:b,loader:e,server:c,universal:(L=b.universal)!=null&&L.load?{type:"data",data:h,uses:v}:null,data:h??(c==null?void 0:c.data)??null,slash:((A=b.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Ue(e,i,n,o,a){if(B)return!0;if(!o)return!1;if(o.parent&&e||o.route&&i||o.url&&n)return!0;for(const c of o.params)if(a[c]!==g.params[c])return!0;for(const c of o.dependencies)if(E.some(h=>h(new URL(c))))return!0;return!1}function pe(e,i){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?i??null:null}async function he({id:e,invalidating:i,url:n,params:o,route:a}){if((w==null?void 0:w.id)===e)return w.promise;const{errors:c,layouts:h,leaf:v}=a,b=[...h,v];c.forEach(S=>S==null?void 0:S().catch(()=>{})),b.forEach(S=>S==null?void 0:S[1]().catch(()=>{}));let _=null;const L=g.url?e!==g.url.pathname+g.url.search:!1,A=g.route?a.id!==g.route.id:!1;let P=!1;const y=b.map((S,I)=>{var G;const R=g.branch[I],$=!!(S!=null&&S[0])&&((R==null?void 0:R.loader)!==S[1]||Ue(P,A,L,(G=R.server)==null?void 0:G.uses,o));return $&&(P=!0),$});if(y.some(Boolean)){try{_=await He(n,y)}catch(S){return ie({status:S instanceof te?S.status:500,error:await Z(S,{url:n,params:o,route:{id:a.id}}),url:n,route:a})}if(_.type==="redirect")return _}const m=_==null?void 0:_.nodes;let O=!1;const j=b.map(async(S,I)=>{var ge;if(!S)return;const R=g.branch[I],$=m==null?void 0:m[I];if((!$||$.type==="skip")&&S[1]===(R==null?void 0:R.loader)&&!Ue(O,A,L,(ge=R.universal)==null?void 0:ge.uses,o))return R;if(O=!0,($==null?void 0:$.type)==="error")throw $;return de({loader:S[1],url:n,params:o,route:a,parent:async()=>{var De;const Te={};for(let me=0;me{});const C=[];for(let S=0;SPromise.resolve({}),server_data_node:pe(c)}),b={node:await d(),loader:d,universal:null,server:null,data:null};return await Y({url:n,params:a,branch:[v,b],status:e,error:i,route:null})}function X(e,i){if(ve(e,J))return;const n=se(e);for(const o of u){const a=o.exec(n);if(a)return{id:e.pathname+e.search,invalidating:i,route:o,params:et(a),url:e}}}function se(e){return Qe(e.pathname.slice(J.length)||"/")}function Ne({url:e,type:i,intent:n,delta:o}){let a=!1;const c=Be(g,n,e,i);o!==void 0&&(c.navigation.delta=o);const h={...c.navigation,cancel:()=>{a=!0,c.reject(new Error("navigation was cancelled"))}};return U||p.before_navigate.forEach(v=>v(h)),a?null:c}async function ce({url:e,scroll:i,keepfocus:n,redirect_chain:o,details:a,type:c,delta:h,nav_token:v={},accepted:b,blocked:_}){var j,C,S;const L=X(e,!1),A=Ne({url:e,type:c,delta:h,intent:L});if(!A){_();return}const P=T;b(),U=!0,x&&F.navigating.set(A.navigation),ae=v;let y=L&&await he(L);if(!y){if(ve(e,J))return await z(e);y=await je(e,{id:null},await Z(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,ae!==v)return A.reject(new Error("navigation was aborted")),!1;if(y.type==="redirect")if(o.length>10||o.includes(e.pathname))y=await ie({status:500,error:await Z(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(y.location,e).href,{},[...o,e.pathname],v),!1;else((j=y.props.page)==null?void 0:j.status)>=400&&await F.updated.check()&&await z(e);if(E.length=0,B=!1,N=!0,Ee(P),Ae(P),(C=y.props.page)!=null&&C.url&&y.props.page.url.pathname!==e.pathname&&(e.pathname=(S=y.props.page)==null?void 0:S.url.pathname),a){const I=a.replaceState?0:1;if(a.state[M]=T+=I,history[a.replaceState?"replaceState":"pushState"](a.state,"",e),!a.replaceState){let R=T+1;for(;Q[R]||K[R];)delete Q[R],delete K[R],R+=1}}if(w=null,x){g=y.state,y.props.page&&(y.props.page.url=e);const I=(await Promise.all(p.on_navigate.map(R=>R(A.navigation)))).filter(R=>typeof R=="function");if(I.length>0){let R=function(){p.after_navigate=p.after_navigate.filter($=>!I.includes($))};I.push(R),p.after_navigate.push(...I)}V.$set(y.props)}else Oe(y);const{activeElement:m}=document;if(await ye(),k){const I=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));i?scrollTo(i.x,i.y):I?I.scrollIntoView():scrollTo(0,0)}const O=document.activeElement!==m&&document.activeElement!==document.body;!n&&!O&&Se(),k=!0,y.props.page&&(q=y.props.page),U=!1,c==="popstate"&&Ie(T),A.fulfil(void 0),p.after_navigate.forEach(I=>I(A.navigation)),F.navigating.set(null),N=!1}async function je(e,i,n,o){return e.origin===location.origin&&e.pathname===location.pathname&&!D?await ie({status:o,error:n,url:e,route:i}):await z(e)}function z(e){return location.href=e.href,new Promise(()=>{})}function Ye(){let e;f.addEventListener("mousemove",c=>{const h=c.target;clearTimeout(e),e=setTimeout(()=>{o(h,2)},20)});function i(c){o(c.composedPath()[0],1)}f.addEventListener("mousedown",i),f.addEventListener("touchstart",i,{passive:!0});const n=new IntersectionObserver(c=>{for(const h of c)h.isIntersecting&&(oe(se(new URL(h.target.href))),n.unobserve(h.target))},{threshold:0});function o(c,h){const v=Me(c,f);if(!v)return;const{url:b,external:_,download:L}=_e(v,J);if(_||L)return;const A=le(v);if(!A.reload)if(h<=A.preload_data){const P=X(b,!1);P&&Pe(P)}else h<=A.preload_code&&oe(se(b))}function a(){n.disconnect();for(const c of f.querySelectorAll("a")){const{url:h,external:v,download:b}=_e(c,J);if(v||b)continue;const _=le(c);_.reload||(_.preload_code===Ve.viewport&&n.observe(c),_.preload_code===Ve.eager&&oe(se(h)))}}p.after_navigate.push(a),a()}function Z(e,i){return e instanceof te?e.body:t.hooks.handleError({error:e,event:i})??{message:i.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{we(()=>(p.after_navigate.push(e),()=>{const i=p.after_navigate.indexOf(e);p.after_navigate.splice(i,1)}))},before_navigate:e=>{we(()=>(p.before_navigate.push(e),()=>{const i=p.before_navigate.indexOf(e);p.before_navigate.splice(i,1)}))},on_navigate:e=>{we(()=>(p.on_navigate.push(e),()=>{const i=p.on_navigate.indexOf(e);p.on_navigate.splice(i,1)}))},disable_scroll_handling:()=>{(N||!x)&&(k=!1)},goto:(e,i={})=>re(e,i,[]),invalidate:e=>{if(typeof e=="function")E.push(e);else{const{href:i}=new URL(e,location.href);E.push(n=>n.href===i)}return Re()},invalidate_all:()=>(B=!0,Re()),preload_data:async e=>{const i=new URL(e,Ce(document)),n=X(i,!1);if(!n)throw new Error(`Attempted to preload a URL that does not belong to this app: ${i}`);await Pe(n)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const i=new URL(location.href),{branch:n,route:o}=g;if(!o)return;const a=await xe(g.branch.length,n,o.errors);if(a){const c=await Y({url:i,params:g.params,branch:n.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:o});g=c.state,V.$set(c.props),ye().then(Se)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},[]):(V.$set({form:null,page:{...q,form:e.data,status:e.status}}),await ye(),V.$set({form:e.data}),e.type==="success"&&Se())},_start_router:()=>{var i;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let o=!1;if(Le(),!U){const a=Be(g,void 0,null,"leave"),c={...a.navigation,cancel:()=>{o=!0,a.reject(new Error("navigation was cancelled"))}};p.before_navigate.forEach(h=>h(c))}o?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Le()}),(i=navigator.connection)!=null&&i.saveData||Ye(),f.addEventListener("click",n=>{var P;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const o=Me(n.composedPath()[0],f);if(!o)return;const{url:a,external:c,target:h,download:v}=_e(o,J);if(!a)return;if(h==="_parent"||h==="_top"){if(window.parent!==window)return}else if(h&&h!=="_self")return;const b=le(o);if(!(o instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||v)return;if(c||b.reload){Ne({url:a,type:"link"})?U=!0:n.preventDefault();return}const[L,A]=a.href.split("#");if(A!==void 0&&L===location.href.split("#")[0]){if(g.url.hash===a.hash){n.preventDefault(),(P=o.ownerDocument.getElementById(A))==null||P.scrollIntoView();return}if(H=!0,Ee(T),e(a),!b.replace_state)return;H=!1,n.preventDefault()}ce({url:a,scroll:b.noscroll?ee():null,keepfocus:b.keep_focus??!1,redirect_chain:[],details:{state:{},replaceState:b.replace_state??a.href===location.href},accepted:()=>n.preventDefault(),blocked:()=>n.preventDefault(),type:"link"})}),f.addEventListener("submit",n=>{if(n.defaultPrevented)return;const o=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||o.method)!=="get")return;const h=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||o.action);if(ve(h,J))return;const v=n.target,{keep_focus:b,noscroll:_,reload:L,replace_state:A}=le(v);if(L)return;n.preventDefault(),n.stopPropagation();const P=new FormData(v),y=a==null?void 0:a.getAttribute("name");y&&P.append(y,(a==null?void 0:a.getAttribute("value"))??""),h.search=new URLSearchParams(P).toString(),ce({url:h,scroll:_?ee():null,keepfocus:b??!1,redirect_chain:[],details:{state:{},replaceState:A??h.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var o;if((o=n.state)!=null&&o[M]){if(n.state[M]===T)return;const a=K[n.state[M]];if(g.url.href.split("#")[0]===location.href.split("#")[0]){K[T]=ee(),T=n.state[M],scrollTo(a.x,a.y);return}const c=n.state[M]-T;await ce({url:new URL(location.href),scroll:a,keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{T=n.state[M]},blocked:()=>{history.go(-c)},type:"popstate",delta:c})}else if(!H){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{H&&(H=!1,history.replaceState({...history.state,[M]:++T},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&F.navigating.set(null)});function e(n){g.url=n,F.page.set({...q,url:n}),F.page.notify()}},_hydrate:async({status:e=200,error:i,node_ids:n,params:o,route:a,data:c,form:h})=>{D=!0;const v=new URL(location.href);({params:o={},route:a={id:null}}=X(v,!1)||{});let b;try{const _=n.map(async(P,y)=>{const m=c[y];return m!=null&&m.uses&&(m.uses=We(m.uses)),de({loader:t.nodes[P],url:v,params:o,route:a,parent:async()=>{const O={};for(let j=0;jP===a.id);if(A){const P=A.layouts;for(let y=0;yd?"1":"0").join(""));const s=await fe(u.href);if(!s.ok)throw new te(s.status,await s.json());return new Promise(async d=>{var g;const f=new Map,E=s.body.getReader(),l=new TextDecoder;function w(D){return bt(D,{Promise:x=>new Promise((k,N)=>{f.set(x,{fulfil:k,reject:N})})})}let p="";for(;;){const{done:D,value:x}=await E.read();if(D&&!p)break;for(p+=!x&&p?`
+import{o as we,t as ye}from"../chunks/scheduler.5c7fdb1c.js";import{S as Ge,a as Je,I as M,g as Ce,f as Me,b as _e,c as le,s as ee,i as ve,d as F,P as Ve,e as Xe}from"../chunks/singletons.fc8f63c9.js";import{b as J}from"../chunks/paths.906bffba.js";function Ze(t,r){return t==="/"||r==="ignore"?t:r==="never"?t.endsWith("/")?t.slice(0,-1):t:r==="always"&&!t.endsWith("/")?t+"/":t}function Qe(t){return t.split("%25").map(decodeURI).join("%25")}function et(t){for(const r in t)t[r]=decodeURIComponent(t[r]);return t}const tt=["href","pathname","search","searchParams","toString","toJSON"];function nt(t,r){const u=new URL(t);for(const s of tt)Object.defineProperty(u,s,{get(){return r(),t[s]},enumerable:!0,configurable:!0});return at(u),u}function at(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const rt="/__data.json";function ot(t){return t.replace(/\/$/,"")+rt}function it(...t){let r=5381;for(const u of t)if(typeof u=="string"){let s=u.length;for(;s;)r=r*33^u.charCodeAt(--s)}else if(ArrayBuffer.isView(u)){const s=new Uint8Array(u.buffer,u.byteOffset,u.byteLength);let d=s.length;for(;d;)r=r*33^s[--d]}else throw new TypeError("value must be a string or TypedArray");return(r>>>0).toString(36)}const fe=window.fetch;window.fetch=(t,r)=>((t instanceof Request?t.method:(r==null?void 0:r.method)||"GET")!=="GET"&&ne.delete(ke(t)),fe(t,r));const ne=new Map;function st(t,r){const u=ke(t,r),s=document.querySelector(u);if(s!=null&&s.textContent){const{body:d,...f}=JSON.parse(s.textContent),E=s.getAttribute("data-ttl");return E&&ne.set(u,{body:d,init:f,ttl:1e3*Number(E)}),Promise.resolve(new Response(d,f))}return fe(t,r)}function ct(t,r,u){if(ne.size>0){const s=ke(t,u),d=ne.get(s);if(d){if(performance.now(){const d=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(s);if(d)return r.push({name:d[1],matcher:d[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const f=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(s);if(f)return r.push({name:f[1],matcher:f[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!s)return;const E=s.split(/\[(.+?)\](?!\])/);return"/"+E.map((w,p)=>{if(p%2){if(w.startsWith("x+"))return be(String.fromCharCode(parseInt(w.slice(2),16)));if(w.startsWith("u+"))return be(String.fromCharCode(...w.slice(2).split("-").map(U=>parseInt(U,16))));const g=lt.exec(w);if(!g)throw new Error(`Invalid param: ${w}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,D,x,k,N]=g;return r.push({name:k,matcher:N,optional:!!D,rest:!!x,chained:x?p===1&&E[0]==="":!1}),x?"(.*?)":D?"([^/]*)?":"([^/]+?)"}return be(w)}).join("")}).join("")}/?$`),params:r}}function ut(t){return!/^\([^)]+\)$/.test(t)}function dt(t){return t.slice(1).split("/").filter(ut)}function pt(t,r,u){const s={},d=t.slice(1);let f=0;for(let E=0;Ep).join("/"),f=0),w===void 0){l.rest&&(s[l.name]="");continue}if(!l.matcher||u[l.matcher](w)){s[l.name]=w;const p=r[E+1],g=d[E+1];p&&!p.rest&&p.optional&&g&&l.chained&&(f=0);continue}if(l.optional&&l.chained){f++;continue}return}if(!f)return s}function be(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function ht({nodes:t,server_loads:r,dictionary:u,matchers:s}){const d=new Set(r);return Object.entries(u).map(([l,[w,p,g]])=>{const{pattern:D,params:x}=ft(l),k={id:l,exec:N=>{const U=D.exec(N);if(U)return pt(U,x,s)},errors:[1,...g||[]].map(N=>t[N]),layouts:[0,...p||[]].map(E),leaf:f(w)};return k.errors.length=k.layouts.length=Math.max(k.errors.length,k.layouts.length),k});function f(l){const w=l<0;return w&&(l=~l),[w,t[l]]}function E(l){return l===void 0?l:[d.has(l),t[l]]}}function Ke(t){try{return JSON.parse(sessionStorage[t])}catch{}}function qe(t,r){const u=JSON.stringify(r);try{sessionStorage[t]=u}catch{}}const gt=-1,mt=-2,wt=-3,yt=-4,_t=-5,vt=-6;function bt(t,r){if(typeof t=="number")return d(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const u=t,s=Array(u.length);function d(f,E=!1){if(f===gt)return;if(f===wt)return NaN;if(f===yt)return 1/0;if(f===_t)return-1/0;if(f===vt)return-0;if(E)throw new Error("Invalid input");if(f in s)return s[f];const l=u[f];if(!l||typeof l!="object")s[f]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const w=l[0],p=r==null?void 0:r[w];if(p)return s[f]=p(d(l[1]));switch(w){case"Date":s[f]=new Date(l[1]);break;case"Set":const g=new Set;s[f]=g;for(let k=1;kr!=null)}const ze=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ze];const St=new Set([...ze]);[...St];async function kt(t){var r;for(const u in t)if(typeof((r=t[u])==null?void 0:r.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([s,d])=>[s,await d])));return t}class te{constructor(r,u){this.status=r,typeof u=="string"?this.body={message:u}:u?this.body=u:this.body={message:`Error: ${r}`}}toString(){return JSON.stringify(this.body)}}class Fe{constructor(r,u){this.status=r,this.location=u}}const Rt="x-sveltekit-invalidated",At="x-sveltekit-trailing-slash",K=Ke(Ge)??{},Q=Ke(Je)??{};function Ee(t){K[t]=ee()}function It(t,r){var $e;const u=ht(t),s=t.nodes[0],d=t.nodes[1];s(),d();const f=document.documentElement,E=[],l=[];let w=null;const p={before_navigate:[],on_navigate:[],after_navigate:[]};let g={branch:[],error:null,url:null},D=!1,x=!1,k=!0,N=!1,U=!1,H=!1,B=!1,V,T=($e=history.state)==null?void 0:$e[M];T||(T=Date.now(),history.replaceState({...history.state,[M]:T},"",location.href));const ue=K[T];ue&&(history.scrollRestoration="manual",scrollTo(ue.x,ue.y));let q,ae,W;async function Re(){if(W=W||Promise.resolve(),await W,!W)return;W=null;const e=new URL(location.href),i=X(e,!0);w=null;const n=ae={},o=i&&await he(i);if(n===ae&&o){if(o.type==="redirect")return re(new URL(o.location,e).href,{},[e.pathname],n);o.props.page!==void 0&&(q=o.props.page),V.$set(o.props)}}function Ae(e){l.some(i=>i==null?void 0:i.snapshot)&&(Q[e]=l.map(i=>{var n;return(n=i==null?void 0:i.snapshot)==null?void 0:n.capture()}))}function Ie(e){var i;(i=Q[e])==null||i.forEach((n,o)=>{var a,c;(c=(a=l[o])==null?void 0:a.snapshot)==null||c.restore(n)})}function Le(){Ee(T),qe(Ge,K),Ae(T),qe(Je,Q)}async function re(e,{noScroll:i=!1,replaceState:n=!1,keepFocus:o=!1,state:a={},invalidateAll:c=!1},h,v){return typeof e=="string"&&(e=new URL(e,Ce(document))),ce({url:e,scroll:i?ee():null,keepfocus:o,redirect_chain:h,details:{state:a,replaceState:n},nav_token:v,accepted:()=>{c&&(B=!0)},blocked:()=>{},type:"goto"})}async function Pe(e){return w={id:e.id,promise:he(e).then(i=>(i.type==="loaded"&&i.state.error&&(w=null),i))},w.promise}async function oe(...e){const n=u.filter(o=>e.some(a=>o.exec(a))).map(o=>Promise.all([...o.layouts,o.leaf].map(a=>a==null?void 0:a[1]())));await Promise.all(n)}function Oe(e){var o;g=e.state;const i=document.querySelector("style[data-sveltekit]");i&&i.remove(),q=e.props.page,V=new t.root({target:r,props:{...e.props,stores:F,components:l},hydrate:!0}),Ie(T);const n={from:null,to:{params:g.params,route:{id:((o=g.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};p.after_navigate.forEach(a=>a(n)),x=!0}async function Y({url:e,params:i,branch:n,status:o,error:a,route:c,form:h}){let v="never";for(const y of n)(y==null?void 0:y.slash)!==void 0&&(v=y.slash);e.pathname=Ze(e.pathname,v),e.search=e.search;const b={type:"loaded",state:{url:e,params:i,branch:n,error:a,route:c},props:{constructors:Et(n).map(y=>y.node.component)}};h!==void 0&&(b.props.form=h);let _={},L=!q,A=0;for(let y=0;y(v.route=!0,m[O])}),params:new Proxy(o,{get:(m,O)=>(v.params.add(O),m[O])}),data:(c==null?void 0:c.data)??null,url:nt(n,()=>{v.url=!0}),async fetch(m,O){let j;m instanceof Request?(j=m.url,O={body:m.method==="GET"||m.method==="HEAD"?void 0:await m.blob(),cache:m.cache,credentials:m.credentials,headers:m.headers,integrity:m.integrity,keepalive:m.keepalive,method:m.method,mode:m.mode,redirect:m.redirect,referrer:m.referrer,referrerPolicy:m.referrerPolicy,signal:m.signal,...O}):j=m;const C=new URL(j,n);return P(C.href),C.origin===n.origin&&(j=C.href.slice(n.origin.length)),x?ct(j,C.href,O):st(j,O)},setHeaders:()=>{},depends:P,parent(){return v.parent=!0,i()}};h=await b.universal.load.call(null,y)??null,h=h?await kt(h):null}return{node:b,loader:e,server:c,universal:(L=b.universal)!=null&&L.load?{type:"data",data:h,uses:v}:null,data:h??(c==null?void 0:c.data)??null,slash:((A=b.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Ue(e,i,n,o,a){if(B)return!0;if(!o)return!1;if(o.parent&&e||o.route&&i||o.url&&n)return!0;for(const c of o.params)if(a[c]!==g.params[c])return!0;for(const c of o.dependencies)if(E.some(h=>h(new URL(c))))return!0;return!1}function pe(e,i){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?i??null:null}async function he({id:e,invalidating:i,url:n,params:o,route:a}){if((w==null?void 0:w.id)===e)return w.promise;const{errors:c,layouts:h,leaf:v}=a,b=[...h,v];c.forEach(S=>S==null?void 0:S().catch(()=>{})),b.forEach(S=>S==null?void 0:S[1]().catch(()=>{}));let _=null;const L=g.url?e!==g.url.pathname+g.url.search:!1,A=g.route?a.id!==g.route.id:!1;let P=!1;const y=b.map((S,I)=>{var G;const R=g.branch[I],$=!!(S!=null&&S[0])&&((R==null?void 0:R.loader)!==S[1]||Ue(P,A,L,(G=R.server)==null?void 0:G.uses,o));return $&&(P=!0),$});if(y.some(Boolean)){try{_=await He(n,y)}catch(S){return ie({status:S instanceof te?S.status:500,error:await Z(S,{url:n,params:o,route:{id:a.id}}),url:n,route:a})}if(_.type==="redirect")return _}const m=_==null?void 0:_.nodes;let O=!1;const j=b.map(async(S,I)=>{var ge;if(!S)return;const R=g.branch[I],$=m==null?void 0:m[I];if((!$||$.type==="skip")&&S[1]===(R==null?void 0:R.loader)&&!Ue(O,A,L,(ge=R.universal)==null?void 0:ge.uses,o))return R;if(O=!0,($==null?void 0:$.type)==="error")throw $;return de({loader:S[1],url:n,params:o,route:a,parent:async()=>{var De;const Te={};for(let me=0;me{});const C=[];for(let S=0;SPromise.resolve({}),server_data_node:pe(c)}),b={node:await d(),loader:d,universal:null,server:null,data:null};return await Y({url:n,params:a,branch:[v,b],status:e,error:i,route:null})}function X(e,i){if(ve(e,J))return;const n=se(e);for(const o of u){const a=o.exec(n);if(a)return{id:e.pathname+e.search,invalidating:i,route:o,params:et(a),url:e}}}function se(e){return Qe(e.pathname.slice(J.length)||"/")}function Ne({url:e,type:i,intent:n,delta:o}){let a=!1;const c=Be(g,n,e,i);o!==void 0&&(c.navigation.delta=o);const h={...c.navigation,cancel:()=>{a=!0,c.reject(new Error("navigation was cancelled"))}};return U||p.before_navigate.forEach(v=>v(h)),a?null:c}async function ce({url:e,scroll:i,keepfocus:n,redirect_chain:o,details:a,type:c,delta:h,nav_token:v={},accepted:b,blocked:_}){var j,C,S;const L=X(e,!1),A=Ne({url:e,type:c,delta:h,intent:L});if(!A){_();return}const P=T;b(),U=!0,x&&F.navigating.set(A.navigation),ae=v;let y=L&&await he(L);if(!y){if(ve(e,J))return await z(e);y=await je(e,{id:null},await Z(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,ae!==v)return A.reject(new Error("navigation was aborted")),!1;if(y.type==="redirect")if(o.length>10||o.includes(e.pathname))y=await ie({status:500,error:await Z(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(y.location,e).href,{},[...o,e.pathname],v),!1;else((j=y.props.page)==null?void 0:j.status)>=400&&await F.updated.check()&&await z(e);if(E.length=0,B=!1,N=!0,Ee(P),Ae(P),(C=y.props.page)!=null&&C.url&&y.props.page.url.pathname!==e.pathname&&(e.pathname=(S=y.props.page)==null?void 0:S.url.pathname),a){const I=a.replaceState?0:1;if(a.state[M]=T+=I,history[a.replaceState?"replaceState":"pushState"](a.state,"",e),!a.replaceState){let R=T+1;for(;Q[R]||K[R];)delete Q[R],delete K[R],R+=1}}if(w=null,x){g=y.state,y.props.page&&(y.props.page.url=e);const I=(await Promise.all(p.on_navigate.map(R=>R(A.navigation)))).filter(R=>typeof R=="function");if(I.length>0){let R=function(){p.after_navigate=p.after_navigate.filter($=>!I.includes($))};I.push(R),p.after_navigate.push(...I)}V.$set(y.props)}else Oe(y);const{activeElement:m}=document;if(await ye(),k){const I=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));i?scrollTo(i.x,i.y):I?I.scrollIntoView():scrollTo(0,0)}const O=document.activeElement!==m&&document.activeElement!==document.body;!n&&!O&&Se(),k=!0,y.props.page&&(q=y.props.page),U=!1,c==="popstate"&&Ie(T),A.fulfil(void 0),p.after_navigate.forEach(I=>I(A.navigation)),F.navigating.set(null),N=!1}async function je(e,i,n,o){return e.origin===location.origin&&e.pathname===location.pathname&&!D?await ie({status:o,error:n,url:e,route:i}):await z(e)}function z(e){return location.href=e.href,new Promise(()=>{})}function Ye(){let e;f.addEventListener("mousemove",c=>{const h=c.target;clearTimeout(e),e=setTimeout(()=>{o(h,2)},20)});function i(c){o(c.composedPath()[0],1)}f.addEventListener("mousedown",i),f.addEventListener("touchstart",i,{passive:!0});const n=new IntersectionObserver(c=>{for(const h of c)h.isIntersecting&&(oe(se(new URL(h.target.href))),n.unobserve(h.target))},{threshold:0});function o(c,h){const v=Me(c,f);if(!v)return;const{url:b,external:_,download:L}=_e(v,J);if(_||L)return;const A=le(v);if(!A.reload)if(h<=A.preload_data){const P=X(b,!1);P&&Pe(P)}else h<=A.preload_code&&oe(se(b))}function a(){n.disconnect();for(const c of f.querySelectorAll("a")){const{url:h,external:v,download:b}=_e(c,J);if(v||b)continue;const _=le(c);_.reload||(_.preload_code===Ve.viewport&&n.observe(c),_.preload_code===Ve.eager&&oe(se(h)))}}p.after_navigate.push(a),a()}function Z(e,i){return e instanceof te?e.body:t.hooks.handleError({error:e,event:i})??{message:i.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{we(()=>(p.after_navigate.push(e),()=>{const i=p.after_navigate.indexOf(e);p.after_navigate.splice(i,1)}))},before_navigate:e=>{we(()=>(p.before_navigate.push(e),()=>{const i=p.before_navigate.indexOf(e);p.before_navigate.splice(i,1)}))},on_navigate:e=>{we(()=>(p.on_navigate.push(e),()=>{const i=p.on_navigate.indexOf(e);p.on_navigate.splice(i,1)}))},disable_scroll_handling:()=>{(N||!x)&&(k=!1)},goto:(e,i={})=>re(e,i,[]),invalidate:e=>{if(typeof e=="function")E.push(e);else{const{href:i}=new URL(e,location.href);E.push(n=>n.href===i)}return Re()},invalidate_all:()=>(B=!0,Re()),preload_data:async e=>{const i=new URL(e,Ce(document)),n=X(i,!1);if(!n)throw new Error(`Attempted to preload a URL that does not belong to this app: ${i}`);await Pe(n)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const i=new URL(location.href),{branch:n,route:o}=g;if(!o)return;const a=await xe(g.branch.length,n,o.errors);if(a){const c=await Y({url:i,params:g.params,branch:n.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:o});g=c.state,V.$set(c.props),ye().then(Se)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},[]):(V.$set({form:null,page:{...q,form:e.data,status:e.status}}),await ye(),V.$set({form:e.data}),e.type==="success"&&Se())},_start_router:()=>{var i;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let o=!1;if(Le(),!U){const a=Be(g,void 0,null,"leave"),c={...a.navigation,cancel:()=>{o=!0,a.reject(new Error("navigation was cancelled"))}};p.before_navigate.forEach(h=>h(c))}o?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Le()}),(i=navigator.connection)!=null&&i.saveData||Ye(),f.addEventListener("click",n=>{var P;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const o=Me(n.composedPath()[0],f);if(!o)return;const{url:a,external:c,target:h,download:v}=_e(o,J);if(!a)return;if(h==="_parent"||h==="_top"){if(window.parent!==window)return}else if(h&&h!=="_self")return;const b=le(o);if(!(o instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||v)return;if(c||b.reload){Ne({url:a,type:"link"})?U=!0:n.preventDefault();return}const[L,A]=a.href.split("#");if(A!==void 0&&L===location.href.split("#")[0]){if(g.url.hash===a.hash){n.preventDefault(),(P=o.ownerDocument.getElementById(A))==null||P.scrollIntoView();return}if(H=!0,Ee(T),e(a),!b.replace_state)return;H=!1,n.preventDefault()}ce({url:a,scroll:b.noscroll?ee():null,keepfocus:b.keep_focus??!1,redirect_chain:[],details:{state:{},replaceState:b.replace_state??a.href===location.href},accepted:()=>n.preventDefault(),blocked:()=>n.preventDefault(),type:"link"})}),f.addEventListener("submit",n=>{if(n.defaultPrevented)return;const o=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||o.method)!=="get")return;const h=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||o.action);if(ve(h,J))return;const v=n.target,{keep_focus:b,noscroll:_,reload:L,replace_state:A}=le(v);if(L)return;n.preventDefault(),n.stopPropagation();const P=new FormData(v),y=a==null?void 0:a.getAttribute("name");y&&P.append(y,(a==null?void 0:a.getAttribute("value"))??""),h.search=new URLSearchParams(P).toString(),ce({url:h,scroll:_?ee():null,keepfocus:b??!1,redirect_chain:[],details:{state:{},replaceState:A??h.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var o;if((o=n.state)!=null&&o[M]){if(n.state[M]===T)return;const a=K[n.state[M]];if(g.url.href.split("#")[0]===location.href.split("#")[0]){K[T]=ee(),T=n.state[M],scrollTo(a.x,a.y);return}const c=n.state[M]-T;await ce({url:new URL(location.href),scroll:a,keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{T=n.state[M]},blocked:()=>{history.go(-c)},type:"popstate",delta:c})}else if(!H){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{H&&(H=!1,history.replaceState({...history.state,[M]:++T},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&F.navigating.set(null)});function e(n){g.url=n,F.page.set({...q,url:n}),F.page.notify()}},_hydrate:async({status:e=200,error:i,node_ids:n,params:o,route:a,data:c,form:h})=>{D=!0;const v=new URL(location.href);({params:o={},route:a={id:null}}=X(v,!1)||{});let b;try{const _=n.map(async(P,y)=>{const m=c[y];return m!=null&&m.uses&&(m.uses=We(m.uses)),de({loader:t.nodes[P],url:v,params:o,route:a,parent:async()=>{const O={};for(let j=0;jP===a.id);if(A){const P=A.layouts;for(let y=0;yd?"1":"0").join(""));const s=await fe(u.href);if(!s.ok)throw new te(s.status,await s.json());return new Promise(async d=>{var g;const f=new Map,E=s.body.getReader(),l=new TextDecoder;function w(D){return bt(D,{Promise:x=>new Promise((k,N)=>{f.set(x,{fulfil:k,reject:N})})})}let p="";for(;;){const{done:D,value:x}=await E.read();if(D&&!p)break;for(p+=!x&&p?`
`:l.decode(x);;){const k=p.indexOf(`
`);if(k===-1)break;const N=JSON.parse(p.slice(0,k));if(p=p.slice(k+1),N.type==="redirect")return d(N);if(N.type==="data")(g=N.nodes)==null||g.forEach(U=>{(U==null?void 0:U.type)==="data"&&(U.uses=We(U.uses),U.data=w(U.data))}),d(N);else if(N.type==="chunk"){const{id:U,data:H,error:B}=N,V=f.get(U);f.delete(U),B?V.reject(w(B)):V.fulfil(w(H))}}}})}function We(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url)}}function Se(){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const r=document.body,u=r.getAttribute("tabindex");r.tabIndex=-1,r.focus({preventScroll:!0,focusVisible:!1}),u!==null?r.setAttribute("tabindex",u):r.removeAttribute("tabindex");const s=getSelection();if(s&&s.type!=="None"){const d=[];for(let f=0;f{if(s.rangeCount===d.length){for(let f=0;f{d=g,f=D});return E.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((w=t.route)==null?void 0:w.id)??null},url:t.url},to:u&&{params:(r==null?void 0:r.params)??null,route:{id:((p=r==null?void 0:r.route)==null?void 0:p.id)??null},url:u},willUnload:!r,type:s,complete:E},fulfil:d,reject:f}}async function Ut(t,r,u){const s=It(t,r);Xe({client:s}),u?await s._hydrate(u):s.goto(location.href,{replaceState:!0}),s._start_router()}export{Ut as start};
diff --git a/_app/immutable/nodes/0.22159d4b.js b/_app/immutable/nodes/0.44f7a270.js
similarity index 99%
rename from _app/immutable/nodes/0.22159d4b.js
rename to _app/immutable/nodes/0.44f7a270.js
index a6397ff..459f704 100644
--- a/_app/immutable/nodes/0.22159d4b.js
+++ b/_app/immutable/nodes/0.44f7a270.js
@@ -1 +1 @@
-import{s as z,n as G,c as Y,d as ue,u as oe,g as le,e as he,o as Pe,f as Oe}from"../chunks/scheduler.5c7fdb1c.js";import{S as W,i as J,g as x,s as N,h as Q,j as $,x as B,c as V,f as M,k as F,a as I,y as D,m as Z,n as ee,o as _e,d as E,t as k,r as ce,u as de,v as fe,w as pe}from"../chunks/index.21959a4f.js";import{b as T}from"../chunks/paths.f2a78332.js";import{a as Fe,b as De}from"../chunks/localStore.3ee7e119.js";import{i as Me,a as Se,r as we,n as C,t as xe,g as Qe,c as me,b as g,d as j,e as ye,S as ve,h as ge,p as w,m as te,f as se,j as ie,o as re,k as R,l as Ae,q as U,s as ae,u as $e}from"../chunks/context.981da52b.js";const Te=!0,nt=Object.freeze(Object.defineProperty({__proto__:null,prerender:Te},Symbol.toStringTag,{value:"Module"}));function Re(n){let e,t="Login";return{c(){e=x("a"),e.textContent=t,this.h()},l(s){e=Q(s,"A",{href:!0,class:!0,"data-svelte-h":!0}),B(e)!=="svelte-mr433o"&&(e.textContent=t),this.h()},h(){F(e,"href",T+"/login"),F(e,"class","text-md px-3 py-2 font-semibold rounded text-secondary-200 bg-green-500 mt-4 invisible lg:visible")},m(s,i){I(s,e,i)},p:G,d(s){s&&M(e)}}}function Ue(n){let e,t,s=n[1].username+"",i;return{c(){e=x("a"),t=Z("Logout "),i=Z(s),this.h()},l(r){e=Q(r,"A",{href:!0,class:!0});var a=$(e);t=ee(a,"Logout "),i=ee(a,s),a.forEach(M),this.h()},h(){F(e,"href",T+"/logout"),F(e,"class","text-md px-3 py-2 font-semibold rounded text-secondary-200 bg-red-600 mt-4 invisible lg:visible")},m(r,a){I(r,e,a),D(e,t),D(e,i)},p(r,a){a&2&&s!==(s=r[1].username+"")&&_e(i,s)},d(r){r&&M(e)}}}function Ee(n){let e,t,s=`
Slash Manager
`,i,r,a,u=`Dashboard`,l,m;function v(o,d){return o[0].accessToken!==""?Ue:Re}let q=v(n),h=q(n);return{c(){e=x("nav"),t=x("a"),t.innerHTML=s,i=N(),r=x("div"),a=x("div"),a.innerHTML=u,l=N(),m=x("div"),h.c(),this.h()},l(o){e=Q(o,"NAV",{class:!0});var d=$(e);t=Q(d,"A",{href:!0,class:!0,"data-svelte-h":!0}),B(t)!=="svelte-kqqfca"&&(t.innerHTML=s),i=V(d),r=Q(d,"DIV",{class:!0});var y=$(r);a=Q(y,"DIV",{class:!0,"data-svelte-h":!0}),B(a)!=="svelte-1pkzsxf"&&(a.innerHTML=u),l=V(y),m=Q(y,"DIV",{});var b=$(m);h.l(b),b.forEach(M),y.forEach(M),d.forEach(M),this.h()},h(){F(t,"href",T+"/"),F(t,"class","flex items-center flex-shrink-0 text-white gap-1 mr-6"),F(a,"class","text-sm lg:flex-grow"),F(r,"class","w-full block flex-grow lg:flex lg:items-center lg:w-auto"),F(e,"class","flex items-center justify-between flex-wrap shadow-primary-900 shadow-sm w-screen h-max p-4")},m(o,d){I(o,e,d),D(e,t),D(e,i),D(e,r),D(r,a),D(r,l),D(r,m),h.m(m,null)},p(o,[d]){q===(q=v(o))&&h?h.p(o,d):(h.d(1),h=q(o),h&&(h.c(),h.m(m,null)))},i:G,o:G,d(o){o&&M(e),h.d()}}}function ke(n,e,t){let s,i;return Y(n,Fe,r=>t(0,s=r)),Y(n,De,r=>t(1,i=r)),[s,i]}class Ie extends W{constructor(e){super(),J(this,e,ke,Ee,z,{})}}const X=console;class be{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Me(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(Se?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Ke extends be{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||X,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||He(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,t){const s=we(this.state.data,e,this.options);return this.dispatch({data:s,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),s}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const s=this.promise;return(t=this.retryer)==null||t.cancel(e),s?s.then(C).catch(C):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!xe(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var s,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var r;return(r=this.retryer)==null||r.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const o=this.observers.find(d=>d.options.queryFn);o&&this.setOptions(o.options)}Array.isArray(this.options.queryKey);const a=Qe(),u={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(u);const m=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(u)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),v={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:m};if(l(v),(s=this.options.behavior)==null||s.onFetch(v),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=v.fetchOptions)==null?void 0:i.meta)){var q;this.dispatch({type:"fetch",meta:(q=v.fetchOptions)==null?void 0:q.meta})}const h=o=>{if(j(o)&&o.silent||this.dispatch({type:"error",error:o}),!j(o)){var d,y,b,P;(d=(y=this.cache.config).onError)==null||d.call(y,o,this),(b=(P=this.cache.config).onSettled)==null||b.call(P,this.state.data,o,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=me({fn:v.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:o=>{var d,y,b,P;if(typeof o>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(o),(d=(y=this.cache.config).onSuccess)==null||d.call(y,o,this),(b=(P=this.cache.config).onSettled)==null||b.call(P,o,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(o,d)=>{this.dispatch({type:"failed",failureCount:o,error:d})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const t=s=>{var i,r;switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=e.meta)!=null?i:null,fetchStatus:ye(this.options.networkMode)?"fetching":"paused",...!s.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...s,data:e.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:(r=e.dataUpdatedAt)!=null?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return j(a)&&a.revert&&this.revertState?{...this.revertState}:{...s,error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=t(this.state),g.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function He(n){const e=typeof n.initialData=="function"?n.initialData():n.initialData,t=typeof e<"u",s=t?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"loading",fetchStatus:"idle"}}class Le extends ve{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,s){var i;const r=t.queryKey,a=(i=t.queryHash)!=null?i:ge(r,t);let u=this.get(a);return u||(u=new Ke({cache:this,logger:e.getLogger(),queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(r)}),this.add(u)),u}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(s=>s!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){g.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[s]=w(e,t);return typeof s.exact>"u"&&(s.exact=!0),this.queries.find(i=>te(s,i))}findAll(e,t){const[s]=w(e,t);return Object.keys(s).length>0?this.queries.filter(i=>te(s,i)):this.queries}notify(e){g.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){g.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){g.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class je extends be{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||X,this.observers=[],this.state=e.state||Ge(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return(e=(t=this.retryer)==null?void 0:t.continue())!=null?e:this.execute()}async execute(){const e=()=>{var c;return this.retryer=me({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(p,_)=>{this.dispatch({type:"failed",failureCount:p,error:_})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(c=this.options.retry)!=null?c:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t=this.state.status==="loading";try{var s,i,r,a,u,l,m,v;if(!t){var q,h,o,d;this.dispatch({type:"loading",variables:this.options.variables}),await((q=(h=this.mutationCache.config).onMutate)==null?void 0:q.call(h,this.state.variables,this));const p=await((o=(d=this.options).onMutate)==null?void 0:o.call(d,this.state.variables));p!==this.state.context&&this.dispatch({type:"loading",context:p,variables:this.state.variables})}const c=await e();return await((s=(i=this.mutationCache.config).onSuccess)==null?void 0:s.call(i,c,this.state.variables,this.state.context,this)),await((r=(a=this.options).onSuccess)==null?void 0:r.call(a,c,this.state.variables,this.state.context)),await((u=(l=this.mutationCache.config).onSettled)==null?void 0:u.call(l,c,null,this.state.variables,this.state.context,this)),await((m=(v=this.options).onSettled)==null?void 0:m.call(v,c,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:c}),c}catch(c){try{var y,b,P,A,S,O,K,f;throw await((y=(b=this.mutationCache.config).onError)==null?void 0:y.call(b,c,this.state.variables,this.state.context,this)),await((P=(A=this.options).onError)==null?void 0:P.call(A,c,this.state.variables,this.state.context)),await((S=(O=this.mutationCache.config).onSettled)==null?void 0:S.call(O,void 0,c,this.state.variables,this.state.context,this)),await((K=(f=this.options).onSettled)==null?void 0:K.call(f,void 0,c,this.state.variables,this.state.context)),c}finally{this.dispatch({type:"error",error:c})}}}dispatch(e){const t=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"loading":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!ye(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...s,...e.state}}};this.state=t(this.state),g.batch(()=>{this.observers.forEach(s=>{s.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function Ge(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Ne extends ve{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,s){const i=new je({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:s,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(i),i}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){g.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(t=>se(e,t))}findAll(e){return this.mutations.filter(t=>se(e,t))}notify(e){g.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=((e=this.resuming)!=null?e:Promise.resolve()).then(()=>{const t=this.mutations.filter(s=>s.state.isPaused);return g.batch(()=>t.reduce((s,i)=>s.then(()=>i.continue().catch(C)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Be(){return{onFetch:n=>{n.fetchFn=()=>{var e,t,s,i,r,a;const u=(e=n.fetchOptions)==null||(t=e.meta)==null?void 0:t.refetchPage,l=(s=n.fetchOptions)==null||(i=s.meta)==null?void 0:i.fetchMore,m=l==null?void 0:l.pageParam,v=(l==null?void 0:l.direction)==="forward",q=(l==null?void 0:l.direction)==="backward",h=((r=n.state.data)==null?void 0:r.pages)||[],o=((a=n.state.data)==null?void 0:a.pageParams)||[];let d=o,y=!1;const b=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>{var c;if((c=n.signal)!=null&&c.aborted)y=!0;else{var p;(p=n.signal)==null||p.addEventListener("abort",()=>{y=!0})}return n.signal}})},P=n.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+n.options.queryHash+"'")),A=(f,c,p,_)=>(d=_?[c,...d]:[...d,c],_?[p,...f]:[...f,p]),S=(f,c,p,_)=>{if(y)return Promise.reject("Cancelled");if(typeof p>"u"&&!c&&f.length)return Promise.resolve(f);const H={queryKey:n.queryKey,pageParam:p,meta:n.options.meta};b(H);const L=P(H);return Promise.resolve(L).then(Ce=>A(f,p,Ce,_))};let O;if(!h.length)O=S([]);else if(v){const f=typeof m<"u",c=f?m:ne(n.options,h);O=S(h,f,c)}else if(q){const f=typeof m<"u",c=f?m:Ve(n.options,h);O=S(h,f,c,!0)}else{d=[];const f=typeof n.options.getNextPageParam>"u";O=(u&&h[0]?u(h[0],0,h):!0)?S([],f,o[0]):Promise.resolve(A([],o[0],h[0]));for(let p=1;p{if(u&&h[p]?u(h[p],p,h):!0){const L=f?o[p]:ne(n.options,_);return S(_,f,L)}return Promise.resolve(A(_,o[p],h[p]))})}return O.then(f=>({pages:f,pageParams:d}))}}}}function ne(n,e){return n.getNextPageParam==null?void 0:n.getNextPageParam(e[e.length-1],e)}function Ve(n,e){return n.getPreviousPageParam==null?void 0:n.getPreviousPageParam(e[0],e)}class qe{constructor(e={}){this.queryCache=e.queryCache||new Le,this.mutationCache=e.mutationCache||new Ne,this.logger=e.logger||X,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=ie.subscribe(()=>{ie.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=re.subscribe(()=>{re.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,this.mountCount===0&&((e=this.unsubscribeFocus)==null||e.call(this),this.unsubscribeFocus=void 0,(t=this.unsubscribeOnline)==null||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[s]=w(e,t);return s.fetchStatus="fetching",this.queryCache.findAll(s).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var s;return(s=this.queryCache.find(e,t))==null?void 0:s.state.data}ensureQueryData(e,t,s){const i=R(e,t,s),r=this.getQueryData(i.queryKey);return r?Promise.resolve(r):this.fetchQuery(i)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:s})=>{const i=s.data;return[t,i]})}setQueryData(e,t,s){const i=this.queryCache.find(e),r=i==null?void 0:i.state.data,a=Ae(t,r);if(typeof a>"u")return;const u=R(e),l=this.defaultQueryOptions(u);return this.queryCache.build(this,l).setData(a,{...s,manual:!0})}setQueriesData(e,t,s){return g.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,s)]))}getQueryState(e,t){var s;return(s=this.queryCache.find(e,t))==null?void 0:s.state}removeQueries(e,t){const[s]=w(e,t),i=this.queryCache;g.batch(()=>{i.findAll(s).forEach(r=>{i.remove(r)})})}resetQueries(e,t,s){const[i,r]=w(e,t,s),a=this.queryCache,u={type:"active",...i};return g.batch(()=>(a.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(u,r)))}cancelQueries(e,t,s){const[i,r={}]=w(e,t,s);typeof r.revert>"u"&&(r.revert=!0);const a=g.batch(()=>this.queryCache.findAll(i).map(u=>u.cancel(r)));return Promise.all(a).then(C).catch(C)}invalidateQueries(e,t,s){const[i,r]=w(e,t,s);return g.batch(()=>{var a,u;if(this.queryCache.findAll(i).forEach(m=>{m.invalidate()}),i.refetchType==="none")return Promise.resolve();const l={...i,type:(a=(u=i.refetchType)!=null?u:i.type)!=null?a:"active"};return this.refetchQueries(l,r)})}refetchQueries(e,t,s){const[i,r]=w(e,t,s),a=g.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var m;return l.fetch(void 0,{...r,cancelRefetch:(m=r==null?void 0:r.cancelRefetch)!=null?m:!0,meta:{refetchPage:i.refetchPage}})}));let u=Promise.all(a).then(C);return r!=null&&r.throwOnError||(u=u.catch(C)),u}fetchQuery(e,t,s){const i=R(e,t,s),r=this.defaultQueryOptions(i);typeof r.retry>"u"&&(r.retry=!1);const a=this.queryCache.build(this,r);return a.isStaleByTime(r.staleTime)?a.fetch(r):Promise.resolve(a.state.data)}prefetchQuery(e,t,s){return this.fetchQuery(e,t,s).then(C).catch(C)}fetchInfiniteQuery(e,t,s){const i=R(e,t,s);return i.behavior=Be(),this.fetchQuery(i)}prefetchInfiniteQuery(e,t,s){return this.fetchInfiniteQuery(e,t,s).then(C).catch(C)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const s=this.queryDefaults.find(i=>U(e)===U(i.queryKey));s?s.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(s=>ae(e,s.queryKey));return t==null?void 0:t.defaultOptions}setMutationDefaults(e,t){const s=this.mutationDefaults.find(i=>U(e)===U(i.mutationKey));s?s.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(s=>ae(e,s.mutationKey));return t==null?void 0:t.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(e==null?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=ge(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.useErrorBoundary>"u"&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(e==null?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}function ze(n){let e;const t=n[2].default,s=ue(t,n,n[1],null);return{c(){s&&s.c()},l(i){s&&s.l(i)},m(i,r){s&&s.m(i,r),e=!0},p(i,[r]){s&&s.p&&(!e||r&2)&&oe(s,t,i,i[1],e?he(t,i[1],r,null):le(i[1]),null)},i(i){e||(E(s,i),e=!0)},o(i){k(s,i),e=!1},d(i){s&&s.d(i)}}}function We(n,e,t){let{$$slots:s={},$$scope:i}=e,{client:r=new qe}=e;return Pe(()=>{r.mount()}),$e(r),Oe(()=>{r.unmount()}),n.$$set=a=>{"client"in a&&t(0,r=a.client),"$$scope"in a&&t(1,i=a.$$scope)},[r,i,s]}class Je extends W{constructor(e){super(),J(this,e,We,ze,z,{client:0})}}function Xe(n){let e,t,s,i;t=new Ie({});const r=n[1].default,a=ue(r,n,n[2],null);return{c(){e=x("div"),ce(t.$$.fragment),s=N(),a&&a.c(),this.h()},l(u){e=Q(u,"DIV",{class:!0});var l=$(e);de(t.$$.fragment,l),s=V(l),a&&a.l(l),l.forEach(M),this.h()},h(){F(e,"class","bg-primary-500 text-white min-h-screen flex flex-col gap-2 overflow-x-hidden")},m(u,l){I(u,e,l),fe(t,e,null),D(e,s),a&&a.m(e,null),i=!0},p(u,l){a&&a.p&&(!i||l&4)&&oe(a,r,u,u[2],i?he(r,u[2],l,null):le(u[2]),null)},i(u){i||(E(t.$$.fragment,u),E(a,u),i=!0)},o(u){k(t.$$.fragment,u),k(a,u),i=!1},d(u){u&&M(e),pe(t),a&&a.d(u)}}}function Ye(n){let e,t;return e=new Je({props:{client:n[0],$$slots:{default:[Xe]},$$scope:{ctx:n}}}),{c(){ce(e.$$.fragment)},l(s){de(e.$$.fragment,s)},m(s,i){fe(e,s,i),t=!0},p(s,[i]){const r={};i&4&&(r.$$scope={dirty:i,ctx:s}),e.$set(r)},i(s){t||(E(e.$$.fragment,s),t=!0)},o(s){k(e.$$.fragment,s),t=!1},d(s){pe(e,s)}}}function Ze(n,e,t){let{$$slots:s={},$$scope:i}=e;const r=new qe;return n.$$set=a=>{"$$scope"in a&&t(2,i=a.$$scope)},[r,s,i]}class ut extends W{constructor(e){super(),J(this,e,Ze,Ye,z,{})}}export{ut as component,nt as universal};
+import{s as z,n as G,c as Y,d as ue,u as oe,g as le,e as he,o as Pe,f as Oe}from"../chunks/scheduler.5c7fdb1c.js";import{S as W,i as J,g as x,s as N,h as Q,j as $,x as B,c as V,f as M,k as F,a as I,y as D,m as Z,n as ee,o as _e,d as E,t as k,r as ce,u as de,v as fe,w as pe}from"../chunks/index.21959a4f.js";import{b as T}from"../chunks/paths.906bffba.js";import{a as Fe,b as De}from"../chunks/localStore.3ee7e119.js";import{i as Me,a as Se,r as we,n as C,t as xe,g as Qe,c as me,b as g,d as j,e as ye,S as ve,h as ge,p as w,m as te,f as se,j as ie,o as re,k as R,l as Ae,q as U,s as ae,u as $e}from"../chunks/context.981da52b.js";const Te=!0,nt=Object.freeze(Object.defineProperty({__proto__:null,prerender:Te},Symbol.toStringTag,{value:"Module"}));function Re(n){let e,t="Login";return{c(){e=x("a"),e.textContent=t,this.h()},l(s){e=Q(s,"A",{href:!0,class:!0,"data-svelte-h":!0}),B(e)!=="svelte-mr433o"&&(e.textContent=t),this.h()},h(){F(e,"href",T+"/login"),F(e,"class","text-md px-3 py-2 font-semibold rounded text-secondary-200 bg-green-500 mt-4 invisible lg:visible")},m(s,i){I(s,e,i)},p:G,d(s){s&&M(e)}}}function Ue(n){let e,t,s=n[1].username+"",i;return{c(){e=x("a"),t=Z("Logout "),i=Z(s),this.h()},l(r){e=Q(r,"A",{href:!0,class:!0});var a=$(e);t=ee(a,"Logout "),i=ee(a,s),a.forEach(M),this.h()},h(){F(e,"href",T+"/logout"),F(e,"class","text-md px-3 py-2 font-semibold rounded text-secondary-200 bg-red-600 mt-4 invisible lg:visible")},m(r,a){I(r,e,a),D(e,t),D(e,i)},p(r,a){a&2&&s!==(s=r[1].username+"")&&_e(i,s)},d(r){r&&M(e)}}}function Ee(n){let e,t,s=`
Slash Manager
`,i,r,a,u=`Dashboard`,l,m;function v(o,d){return o[0].accessToken!==""?Ue:Re}let q=v(n),h=q(n);return{c(){e=x("nav"),t=x("a"),t.innerHTML=s,i=N(),r=x("div"),a=x("div"),a.innerHTML=u,l=N(),m=x("div"),h.c(),this.h()},l(o){e=Q(o,"NAV",{class:!0});var d=$(e);t=Q(d,"A",{href:!0,class:!0,"data-svelte-h":!0}),B(t)!=="svelte-kqqfca"&&(t.innerHTML=s),i=V(d),r=Q(d,"DIV",{class:!0});var y=$(r);a=Q(y,"DIV",{class:!0,"data-svelte-h":!0}),B(a)!=="svelte-1pkzsxf"&&(a.innerHTML=u),l=V(y),m=Q(y,"DIV",{});var b=$(m);h.l(b),b.forEach(M),y.forEach(M),d.forEach(M),this.h()},h(){F(t,"href",T+"/"),F(t,"class","flex items-center flex-shrink-0 text-white gap-1 mr-6"),F(a,"class","text-sm lg:flex-grow"),F(r,"class","w-full block flex-grow lg:flex lg:items-center lg:w-auto"),F(e,"class","flex items-center justify-between flex-wrap shadow-primary-900 shadow-sm w-screen h-max p-4")},m(o,d){I(o,e,d),D(e,t),D(e,i),D(e,r),D(r,a),D(r,l),D(r,m),h.m(m,null)},p(o,[d]){q===(q=v(o))&&h?h.p(o,d):(h.d(1),h=q(o),h&&(h.c(),h.m(m,null)))},i:G,o:G,d(o){o&&M(e),h.d()}}}function ke(n,e,t){let s,i;return Y(n,Fe,r=>t(0,s=r)),Y(n,De,r=>t(1,i=r)),[s,i]}class Ie extends W{constructor(e){super(),J(this,e,ke,Ee,z,{})}}const X=console;class be{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Me(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,e??(Se?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Ke extends be{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||X,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||He(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(e,t){const s=we(this.state.data,e,this.options);return this.dispatch({data:s,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),s}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const s=this.promise;return(t=this.retryer)==null||t.cancel(e),s?s.then(C).catch(C):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!xe(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}onOnline(){var e;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),(e=this.retryer)==null||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var s,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&t!=null&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var r;return(r=this.retryer)==null||r.continueRetry(),this.promise}}if(e&&this.setOptions(e),!this.options.queryFn){const o=this.observers.find(d=>d.options.queryFn);o&&this.setOptions(o.options)}Array.isArray(this.options.queryKey);const a=Qe(),u={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=o=>{Object.defineProperty(o,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(u);const m=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(u)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),v={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:m};if(l(v),(s=this.options.behavior)==null||s.onFetch(v),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=v.fetchOptions)==null?void 0:i.meta)){var q;this.dispatch({type:"fetch",meta:(q=v.fetchOptions)==null?void 0:q.meta})}const h=o=>{if(j(o)&&o.silent||this.dispatch({type:"error",error:o}),!j(o)){var d,y,b,P;(d=(y=this.cache.config).onError)==null||d.call(y,o,this),(b=(P=this.cache.config).onSettled)==null||b.call(P,this.state.data,o,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=me({fn:v.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:o=>{var d,y,b,P;if(typeof o>"u"){h(new Error(this.queryHash+" data is undefined"));return}this.setData(o),(d=(y=this.cache.config).onSuccess)==null||d.call(y,o,this),(b=(P=this.cache.config).onSettled)==null||b.call(P,o,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(o,d)=>{this.dispatch({type:"failed",failureCount:o,error:d})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){const t=s=>{var i,r;switch(e.type){case"failed":return{...s,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(i=e.meta)!=null?i:null,fetchStatus:ye(this.options.networkMode)?"fetching":"paused",...!s.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...s,data:e.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:(r=e.dataUpdatedAt)!=null?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=e.error;return j(a)&&a.revert&&this.revertState?{...this.revertState}:{...s,error:a,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...e.state}}};this.state=t(this.state),g.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}function He(n){const e=typeof n.initialData=="function"?n.initialData():n.initialData,t=typeof e<"u",s=t?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"loading",fetchStatus:"idle"}}class Le extends ve{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,s){var i;const r=t.queryKey,a=(i=t.queryHash)!=null?i:ge(r,t);let u=this.get(a);return u||(u=new Ke({cache:this,logger:e.getLogger(),queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:s,defaultOptions:e.getQueryDefaults(r)}),this.add(u)),u}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(s=>s!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){g.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[s]=w(e,t);return typeof s.exact>"u"&&(s.exact=!0),this.queries.find(i=>te(s,i))}findAll(e,t){const[s]=w(e,t);return Object.keys(s).length>0?this.queries.filter(i=>te(s,i)):this.queries}notify(e){g.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){g.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){g.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class je extends be{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||X,this.observers=[],this.state=e.state||Ge(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return(e=(t=this.retryer)==null?void 0:t.continue())!=null?e:this.execute()}async execute(){const e=()=>{var c;return this.retryer=me({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(p,_)=>{this.dispatch({type:"failed",failureCount:p,error:_})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(c=this.options.retry)!=null?c:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t=this.state.status==="loading";try{var s,i,r,a,u,l,m,v;if(!t){var q,h,o,d;this.dispatch({type:"loading",variables:this.options.variables}),await((q=(h=this.mutationCache.config).onMutate)==null?void 0:q.call(h,this.state.variables,this));const p=await((o=(d=this.options).onMutate)==null?void 0:o.call(d,this.state.variables));p!==this.state.context&&this.dispatch({type:"loading",context:p,variables:this.state.variables})}const c=await e();return await((s=(i=this.mutationCache.config).onSuccess)==null?void 0:s.call(i,c,this.state.variables,this.state.context,this)),await((r=(a=this.options).onSuccess)==null?void 0:r.call(a,c,this.state.variables,this.state.context)),await((u=(l=this.mutationCache.config).onSettled)==null?void 0:u.call(l,c,null,this.state.variables,this.state.context,this)),await((m=(v=this.options).onSettled)==null?void 0:m.call(v,c,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:c}),c}catch(c){try{var y,b,P,A,S,O,K,f;throw await((y=(b=this.mutationCache.config).onError)==null?void 0:y.call(b,c,this.state.variables,this.state.context,this)),await((P=(A=this.options).onError)==null?void 0:P.call(A,c,this.state.variables,this.state.context)),await((S=(O=this.mutationCache.config).onSettled)==null?void 0:S.call(O,void 0,c,this.state.variables,this.state.context,this)),await((K=(f=this.options).onSettled)==null?void 0:K.call(f,void 0,c,this.state.variables,this.state.context)),c}finally{this.dispatch({type:"error",error:c})}}}dispatch(e){const t=s=>{switch(e.type){case"failed":return{...s,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"loading":return{...s,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!ye(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...s,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:e.error,failureCount:s.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...s,...e.state}}};this.state=t(this.state),g.batch(()=>{this.observers.forEach(s=>{s.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}function Ge(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Ne extends ve{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,s){const i=new je({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:s,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(i),i}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){g.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return typeof e.exact>"u"&&(e.exact=!0),this.mutations.find(t=>se(e,t))}findAll(e){return this.mutations.filter(t=>se(e,t))}notify(e){g.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=((e=this.resuming)!=null?e:Promise.resolve()).then(()=>{const t=this.mutations.filter(s=>s.state.isPaused);return g.batch(()=>t.reduce((s,i)=>s.then(()=>i.continue().catch(C)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Be(){return{onFetch:n=>{n.fetchFn=()=>{var e,t,s,i,r,a;const u=(e=n.fetchOptions)==null||(t=e.meta)==null?void 0:t.refetchPage,l=(s=n.fetchOptions)==null||(i=s.meta)==null?void 0:i.fetchMore,m=l==null?void 0:l.pageParam,v=(l==null?void 0:l.direction)==="forward",q=(l==null?void 0:l.direction)==="backward",h=((r=n.state.data)==null?void 0:r.pages)||[],o=((a=n.state.data)==null?void 0:a.pageParams)||[];let d=o,y=!1;const b=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>{var c;if((c=n.signal)!=null&&c.aborted)y=!0;else{var p;(p=n.signal)==null||p.addEventListener("abort",()=>{y=!0})}return n.signal}})},P=n.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+n.options.queryHash+"'")),A=(f,c,p,_)=>(d=_?[c,...d]:[...d,c],_?[p,...f]:[...f,p]),S=(f,c,p,_)=>{if(y)return Promise.reject("Cancelled");if(typeof p>"u"&&!c&&f.length)return Promise.resolve(f);const H={queryKey:n.queryKey,pageParam:p,meta:n.options.meta};b(H);const L=P(H);return Promise.resolve(L).then(Ce=>A(f,p,Ce,_))};let O;if(!h.length)O=S([]);else if(v){const f=typeof m<"u",c=f?m:ne(n.options,h);O=S(h,f,c)}else if(q){const f=typeof m<"u",c=f?m:Ve(n.options,h);O=S(h,f,c,!0)}else{d=[];const f=typeof n.options.getNextPageParam>"u";O=(u&&h[0]?u(h[0],0,h):!0)?S([],f,o[0]):Promise.resolve(A([],o[0],h[0]));for(let p=1;p{if(u&&h[p]?u(h[p],p,h):!0){const L=f?o[p]:ne(n.options,_);return S(_,f,L)}return Promise.resolve(A(_,o[p],h[p]))})}return O.then(f=>({pages:f,pageParams:d}))}}}}function ne(n,e){return n.getNextPageParam==null?void 0:n.getNextPageParam(e[e.length-1],e)}function Ve(n,e){return n.getPreviousPageParam==null?void 0:n.getPreviousPageParam(e[0],e)}class qe{constructor(e={}){this.queryCache=e.queryCache||new Le,this.mutationCache=e.mutationCache||new Ne,this.logger=e.logger||X,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=ie.subscribe(()=>{ie.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=re.subscribe(()=>{re.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,this.mountCount===0&&((e=this.unsubscribeFocus)==null||e.call(this),this.unsubscribeFocus=void 0,(t=this.unsubscribeOnline)==null||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[s]=w(e,t);return s.fetchStatus="fetching",this.queryCache.findAll(s).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var s;return(s=this.queryCache.find(e,t))==null?void 0:s.state.data}ensureQueryData(e,t,s){const i=R(e,t,s),r=this.getQueryData(i.queryKey);return r?Promise.resolve(r):this.fetchQuery(i)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:t,state:s})=>{const i=s.data;return[t,i]})}setQueryData(e,t,s){const i=this.queryCache.find(e),r=i==null?void 0:i.state.data,a=Ae(t,r);if(typeof a>"u")return;const u=R(e),l=this.defaultQueryOptions(u);return this.queryCache.build(this,l).setData(a,{...s,manual:!0})}setQueriesData(e,t,s){return g.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,s)]))}getQueryState(e,t){var s;return(s=this.queryCache.find(e,t))==null?void 0:s.state}removeQueries(e,t){const[s]=w(e,t),i=this.queryCache;g.batch(()=>{i.findAll(s).forEach(r=>{i.remove(r)})})}resetQueries(e,t,s){const[i,r]=w(e,t,s),a=this.queryCache,u={type:"active",...i};return g.batch(()=>(a.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(u,r)))}cancelQueries(e,t,s){const[i,r={}]=w(e,t,s);typeof r.revert>"u"&&(r.revert=!0);const a=g.batch(()=>this.queryCache.findAll(i).map(u=>u.cancel(r)));return Promise.all(a).then(C).catch(C)}invalidateQueries(e,t,s){const[i,r]=w(e,t,s);return g.batch(()=>{var a,u;if(this.queryCache.findAll(i).forEach(m=>{m.invalidate()}),i.refetchType==="none")return Promise.resolve();const l={...i,type:(a=(u=i.refetchType)!=null?u:i.type)!=null?a:"active"};return this.refetchQueries(l,r)})}refetchQueries(e,t,s){const[i,r]=w(e,t,s),a=g.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var m;return l.fetch(void 0,{...r,cancelRefetch:(m=r==null?void 0:r.cancelRefetch)!=null?m:!0,meta:{refetchPage:i.refetchPage}})}));let u=Promise.all(a).then(C);return r!=null&&r.throwOnError||(u=u.catch(C)),u}fetchQuery(e,t,s){const i=R(e,t,s),r=this.defaultQueryOptions(i);typeof r.retry>"u"&&(r.retry=!1);const a=this.queryCache.build(this,r);return a.isStaleByTime(r.staleTime)?a.fetch(r):Promise.resolve(a.state.data)}prefetchQuery(e,t,s){return this.fetchQuery(e,t,s).then(C).catch(C)}fetchInfiniteQuery(e,t,s){const i=R(e,t,s);return i.behavior=Be(),this.fetchQuery(i)}prefetchInfiniteQuery(e,t,s){return this.fetchInfiniteQuery(e,t,s).then(C).catch(C)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const s=this.queryDefaults.find(i=>U(e)===U(i.queryKey));s?s.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(s=>ae(e,s.queryKey));return t==null?void 0:t.defaultOptions}setMutationDefaults(e,t){const s=this.mutationDefaults.find(i=>U(e)===U(i.mutationKey));s?s.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(s=>ae(e,s.mutationKey));return t==null?void 0:t.defaultOptions}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(e==null?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=ge(t.queryKey,t)),typeof t.refetchOnReconnect>"u"&&(t.refetchOnReconnect=t.networkMode!=="always"),typeof t.useErrorBoundary>"u"&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(e==null?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}function ze(n){let e;const t=n[2].default,s=ue(t,n,n[1],null);return{c(){s&&s.c()},l(i){s&&s.l(i)},m(i,r){s&&s.m(i,r),e=!0},p(i,[r]){s&&s.p&&(!e||r&2)&&oe(s,t,i,i[1],e?he(t,i[1],r,null):le(i[1]),null)},i(i){e||(E(s,i),e=!0)},o(i){k(s,i),e=!1},d(i){s&&s.d(i)}}}function We(n,e,t){let{$$slots:s={},$$scope:i}=e,{client:r=new qe}=e;return Pe(()=>{r.mount()}),$e(r),Oe(()=>{r.unmount()}),n.$$set=a=>{"client"in a&&t(0,r=a.client),"$$scope"in a&&t(1,i=a.$$scope)},[r,i,s]}class Je extends W{constructor(e){super(),J(this,e,We,ze,z,{client:0})}}function Xe(n){let e,t,s,i;t=new Ie({});const r=n[1].default,a=ue(r,n,n[2],null);return{c(){e=x("div"),ce(t.$$.fragment),s=N(),a&&a.c(),this.h()},l(u){e=Q(u,"DIV",{class:!0});var l=$(e);de(t.$$.fragment,l),s=V(l),a&&a.l(l),l.forEach(M),this.h()},h(){F(e,"class","bg-primary-500 text-white min-h-screen flex flex-col gap-2 overflow-x-hidden")},m(u,l){I(u,e,l),fe(t,e,null),D(e,s),a&&a.m(e,null),i=!0},p(u,l){a&&a.p&&(!i||l&4)&&oe(a,r,u,u[2],i?he(r,u[2],l,null):le(u[2]),null)},i(u){i||(E(t.$$.fragment,u),E(a,u),i=!0)},o(u){k(t.$$.fragment,u),k(a,u),i=!1},d(u){u&&M(e),pe(t),a&&a.d(u)}}}function Ye(n){let e,t;return e=new Je({props:{client:n[0],$$slots:{default:[Xe]},$$scope:{ctx:n}}}),{c(){ce(e.$$.fragment)},l(s){de(e.$$.fragment,s)},m(s,i){fe(e,s,i),t=!0},p(s,[i]){const r={};i&4&&(r.$$scope={dirty:i,ctx:s}),e.$set(r)},i(s){t||(E(e.$$.fragment,s),t=!0)},o(s){k(e.$$.fragment,s),t=!1},d(s){pe(e,s)}}}function Ze(n,e,t){let{$$slots:s={},$$scope:i}=e;const r=new qe;return n.$$set=a=>{"$$scope"in a&&t(2,i=a.$$scope)},[r,s,i]}class ut extends W{constructor(e){super(),J(this,e,Ze,Ye,z,{})}}export{ut as component,nt as universal};
diff --git a/_app/immutable/nodes/1.e9ad0e23.js b/_app/immutable/nodes/1.43a8c1d6.js
similarity index 92%
rename from _app/immutable/nodes/1.e9ad0e23.js
rename to _app/immutable/nodes/1.43a8c1d6.js
index 8d3c7db..610339e 100644
--- a/_app/immutable/nodes/1.e9ad0e23.js
+++ b/_app/immutable/nodes/1.43a8c1d6.js
@@ -1 +1 @@
-import{s as x,n as u,c as y}from"../chunks/scheduler.5c7fdb1c.js";import{S,i as j,g as h,m as d,s as q,h as v,j as g,n as E,f as m,c as C,a as _,y as $,o as b}from"../chunks/index.21959a4f.js";import{p as H}from"../chunks/stores.23aae154.js";function P(p){var f;let a,t=p[0].status+"",r,o,n,i=((f=p[0].error)==null?void 0:f.message)+"",c;return{c(){a=h("h1"),r=d(t),o=q(),n=h("p"),c=d(i)},l(e){a=v(e,"H1",{});var s=g(a);r=E(s,t),s.forEach(m),o=C(e),n=v(e,"P",{});var l=g(n);c=E(l,i),l.forEach(m)},m(e,s){_(e,a,s),$(a,r),_(e,o,s),_(e,n,s),$(n,c)},p(e,[s]){var l;s&1&&t!==(t=e[0].status+"")&&b(r,t),s&1&&i!==(i=((l=e[0].error)==null?void 0:l.message)+"")&&b(c,i)},i:u,o:u,d(e){e&&(m(a),m(o),m(n))}}}function k(p,a,t){let r;return y(p,H,o=>t(0,r=o)),[r]}class B extends S{constructor(a){super(),j(this,a,k,P,x,{})}}export{B as component};
+import{s as x,n as u,c as y}from"../chunks/scheduler.5c7fdb1c.js";import{S,i as j,g as h,m as d,s as q,h as v,j as g,n as E,f as m,c as C,a as _,y as $,o as b}from"../chunks/index.21959a4f.js";import{p as H}from"../chunks/stores.5caa3662.js";function P(p){var f;let a,t=p[0].status+"",r,o,n,i=((f=p[0].error)==null?void 0:f.message)+"",c;return{c(){a=h("h1"),r=d(t),o=q(),n=h("p"),c=d(i)},l(e){a=v(e,"H1",{});var s=g(a);r=E(s,t),s.forEach(m),o=C(e),n=v(e,"P",{});var l=g(n);c=E(l,i),l.forEach(m)},m(e,s){_(e,a,s),$(a,r),_(e,o,s),_(e,n,s),$(n,c)},p(e,[s]){var l;s&1&&t!==(t=e[0].status+"")&&b(r,t),s&1&&i!==(i=((l=e[0].error)==null?void 0:l.message)+"")&&b(c,i)},i:u,o:u,d(e){e&&(m(a),m(o),m(n))}}}function k(p,a,t){let r;return y(p,H,o=>t(0,r=o)),[r]}class B extends S{constructor(a){super(),j(this,a,k,P,x,{})}}export{B as component};
diff --git a/_app/immutable/nodes/2.cc13186a.js b/_app/immutable/nodes/2.29e9a2af.js
similarity index 90%
rename from _app/immutable/nodes/2.cc13186a.js
rename to _app/immutable/nodes/2.29e9a2af.js
index 6de7513..ad141b7 100644
--- a/_app/immutable/nodes/2.cc13186a.js
+++ b/_app/immutable/nodes/2.29e9a2af.js
@@ -1,3 +1,3 @@
-import{s as r,n as s}from"../chunks/scheduler.5c7fdb1c.js";import{S as l,i as m,g as d,h as c,x as p,k as f,a as h,f as u}from"../chunks/index.21959a4f.js";import{b as g}from"../chunks/paths.f2a78332.js";import{U as o}from"../chunks/constants.6d5eb8fd.js";function x(i){let e,a=`
Discord slash command Manager
Simple tool to manage and view Discord interactions
+import{s as r,n as s}from"../chunks/scheduler.5c7fdb1c.js";import{S as l,i as m,g as d,h as c,x as p,k as f,a as h,f as u}from"../chunks/index.21959a4f.js";import{b as g}from"../chunks/paths.906bffba.js";import{U as o}from"../chunks/constants.85e98373.js";function x(i){let e,a=`
Discord slash command Manager
Simple tool to manage and view Discord interactions
for any application.
Discord does not include a ui to view and manage
slash command globally for your application. 😕
This tool aims to provide those missing features for you. ✨
`;return{c(){e=d("div"),e.innerHTML=a,this.h()},l(t){e=c(t,"DIV",{class:!0,"data-svelte-h":!0}),p(e)!=="svelte-1f1ihzm"&&(e.innerHTML=a),this.h()},h(){f(e,"class","m-4 flex flex-col gap-2")},m(t,n){h(t,e,n)},p:s,i:s,o:s,d(t){t&&u(e)}}}class D extends l{constructor(e){super(),m(this,e,null,x,r,{})}}export{D as component};
diff --git a/_app/immutable/nodes/3.8ae45990.js b/_app/immutable/nodes/3.7cf76062.js
similarity index 99%
rename from _app/immutable/nodes/3.8ae45990.js
rename to _app/immutable/nodes/3.7cf76062.js
index 57bbb6c..6d935b8 100644
--- a/_app/immutable/nodes/3.8ae45990.js
+++ b/_app/immutable/nodes/3.7cf76062.js
@@ -1,4 +1,4 @@
-import{r as ve,s as ge,n as G,h as Ce,i as Ee,b as Ie,j as Qe,c as ee,k as Te}from"../chunks/scheduler.5c7fdb1c.js";import{d as be,S as ye,i as _e,g as Q,s as L,h as T,j as O,c as F,x as N,f as p,k as f,a as P,y as m,m as U,n as A,e as te,o as q,z as V,A as H,B as Oe,r as xe,u as Se,v as Me,t as Pe,w as De,C as se,D as re}from"../chunks/index.21959a4f.js";import{b as ne}from"../chunks/localStore.3ee7e119.js";import{p as Le}from"../chunks/stores.23aae154.js";import{b as we}from"../chunks/paths.f2a78332.js";import{f as Fe}from"../chunks/api.3d2a0698.js";import{t as ie,d as z}from"../chunks/constants.6d5eb8fd.js";import{r as le,d as Ue}from"../chunks/index.403b996f.js";import{S as Ae,v as W,n as je,a as ae,i as oe,t as Be,j as Ve,e as He,r as ue,d as qe,b as K,w as Ne,k as Ke}from"../chunks/context.981da52b.js";import{g as ze}from"../chunks/navigation.826e938d.js";function Y(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function Re(r,e){r.d(1),e.delete(r.key)}function ke(r,e,t,s,n,a,i,l,h,u,g,o){let c=r.length,b=a.length,C=c;const d={};for(;C--;)d[r[C].key]=C;const _=[],D=new Map,E=new Map,R=[];for(C=b;C--;){const y=o(n,a,C),w=t(y);let I=i.get(w);I?s&&R.push(()=>I.p(y,e)):(I=u(w,y),I.c()),D.set(w,_[C]=I),w in d&&E.set(w,Math.abs(C-d[w]))}const S=new Set,x=new Set;function v(y){be(y,1),y.m(l,g),i.set(y.key,y),g=y.first,b--}for(;c&&b;){const y=_[b-1],w=r[c-1],I=y.key,k=w.key;y===w?(g=y.first,c--,b--):D.has(k)?!i.has(I)||S.has(I)?v(y):x.has(k)?c--:E.get(I)>E.get(k)?(x.add(I),v(y)):(S.add(k),c--):(h(w,i),c--)}for(;c--;){const y=r[c];D.has(y.key)||h(y,i)}for(;b;)v(_[b-1]);return ve(R),_}class Ge extends Ae{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),ce(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Z(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Z(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const s=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),W(s,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();const a=this.hasListeners();a&&he(this.currentQuery,n,this.options,s)&&this.executeFetch(),this.updateResult(t),a&&(this.currentQuery!==n||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();const i=this.computeRefetchInterval();a&&(this.currentQuery!==n||this.options.enabled!==s.enabled||i!==this.currentRefetchInterval)&&this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),s=this.createResult(t,e);return We(this,s,e)&&(this.currentResult=s,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),s}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(s=>{Object.defineProperty(t,s,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(s),e[s])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),s=this.client.getQueryCache().build(this.client,t);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(je)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),ae||this.currentResult.isStale||!oe(this.options.staleTime))return;const t=Be(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(ae||this.options.enabled===!1||!oe(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Ve.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const s=this.currentQuery,n=this.options,a=this.currentResult,i=this.currentResultState,l=this.currentResultOptions,h=e!==s,u=h?e.state:this.currentQueryInitialState,g=h?this.currentResult:this.previousQueryResult,{state:o}=e;let{dataUpdatedAt:c,error:b,errorUpdatedAt:C,fetchStatus:d,status:_}=o,D=!1,E=!1,R;if(t._optimisticResults){const w=this.hasListeners(),I=!w&&ce(e,t),k=w&&he(e,s,t,n);(I||k)&&(d=He(e.options.networkMode)?"fetching":"paused",c||(_="loading")),t._optimisticResults==="isRestoring"&&(d="idle")}if(t.keepPreviousData&&!o.dataUpdatedAt&&g!=null&&g.isSuccess&&_!=="error")R=g.data,c=g.dataUpdatedAt,_=g.status,D=!0;else if(t.select&&typeof o.data<"u")if(a&&o.data===(i==null?void 0:i.data)&&t.select===this.selectFn)R=this.selectResult;else try{this.selectFn=t.select,R=t.select(o.data),R=ue(a==null?void 0:a.data,R,t),this.selectResult=R,this.selectError=null}catch(w){this.selectError=w}else R=o.data;if(typeof t.placeholderData<"u"&&typeof R>"u"&&_==="loading"){let w;if(a!=null&&a.isPlaceholderData&&t.placeholderData===(l==null?void 0:l.placeholderData))w=a.data;else if(w=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof w<"u")try{w=t.select(w),this.selectError=null}catch(I){this.selectError=I}typeof w<"u"&&(_="success",R=ue(a==null?void 0:a.data,w,t),E=!0)}this.selectError&&(b=this.selectError,R=this.selectResult,C=Date.now(),_="error");const S=d==="fetching",x=_==="loading",v=_==="error";return{status:_,fetchStatus:d,isLoading:x,isSuccess:_==="success",isError:v,isInitialLoading:x&&S,data:R,dataUpdatedAt:c,error:b,errorUpdatedAt:C,failureCount:o.fetchFailureCount,failureReason:o.fetchFailureReason,errorUpdateCount:o.errorUpdateCount,isFetched:o.dataUpdateCount>0||o.errorUpdateCount>0,isFetchedAfterMount:o.dataUpdateCount>u.dataUpdateCount||o.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!x,isLoadingError:v&&o.dataUpdatedAt===0,isPaused:d==="paused",isPlaceholderData:E,isPreviousData:D,isRefetchError:v&&o.dataUpdatedAt!==0,isStale:J(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,s=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,W(s,t))return;this.currentResult=s;const n={cache:!0},a=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.trackedProps.size)return!0;const h=new Set(l??this.trackedProps);return this.options.useErrorBoundary&&h.add("error"),Object.keys(this.currentResult).some(u=>{const g=u;return this.currentResult[g]!==t[g]&&h.has(g)})};(e==null?void 0:e.listeners)!==!1&&a()&&(n.listeners=!0),this.notify({...n,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!qe(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){K.batch(()=>{if(e.onSuccess){var t,s,n,a;(t=(s=this.options).onSuccess)==null||t.call(s,this.currentResult.data),(n=(a=this.options).onSettled)==null||n.call(a,this.currentResult.data,null)}else if(e.onError){var i,l,h,u;(i=(l=this.options).onError)==null||i.call(l,this.currentResult.error),(h=(u=this.options).onSettled)==null||h.call(u,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:g})=>{g(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function Ye(r,e){return e.enabled!==!1&&!r.state.dataUpdatedAt&&!(r.state.status==="error"&&e.retryOnMount===!1)}function ce(r,e){return Ye(r,e)||r.state.dataUpdatedAt>0&&Z(r,e,e.refetchOnMount)}function Z(r,e,t){if(e.enabled!==!1){const s=typeof t=="function"?t(r):t;return s==="always"||s!==!1&&J(r,e)}return!1}function he(r,e,t,s){return t.enabled!==!1&&(r!==e||s.enabled===!1)&&(!t.suspense||r.state.status!=="error")&&J(r,t)}function J(r,e){return r.isStaleByTime(e.staleTime)}function We(r,e,t){return t.keepPreviousData?!1:t.placeholderData!==void 0?e.isPlaceholderData:!W(r.getCurrentResult(),e)}function Ze(){return Ne()}function Je(r,e){const t=Ze(),s=t.defaultQueryOptions(r);s._optimisticResults="optimistic";let n=new e(t,s);s.onError&&(s.onError=K.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=K.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=K.batchCalls(s.onSettled)),le(n).subscribe(l=>{n=l,n.setOptions(s,{listeners:!1})});const a=le(n.getCurrentResult(),l=>n.subscribe(K.batchCalls(l))),{subscribe:i}=Ue(a,l=>(l=n.getOptimisticResult(s),s.notifyOnChangeProps?l:n.trackResult(l)));return{subscribe:i}}function Xe(r,e,t){const s=Ke(r,e,t);return Je(s,Ge)}function de(r,e,t){const s=r.slice();return s[10]=e[t],s}function fe(r,e,t){const s=r.slice();return s[13]=e[t],s}function pe(r,e){let t,s=e[13]+"",n;return{key:r,first:null,c(){t=Q("th"),n=U(s),this.h()},l(a){t=T(a,"TH",{scope:!0,class:!0});var i=O(t);n=A(i,s),i.forEach(p),this.h()},h(){f(t,"scope","col"),f(t,"class","px-6 py-3 text-left text-xs font-bold text-stone-400 uppercase tracking-wider"),this.first=t},m(a,i){P(a,t,i),m(t,n)},p(a,i){e=a},d(a){a&&p(t)}}}function $e(r){let e=[],t=new Map,s,n=Y(r[0]);const a=i=>i[10].id;for(let i=0;i(╯°□°)╯︵ ┻━┻
Oops! Something went wrong.';return{c(){e=Q("tr"),t=Q("td"),s=Q("div"),s.innerHTML=n,this.h()},l(a){e=T(a,"TR",{});var i=O(e);t=T(i,"TD",{colspan:!0,class:!0});var l=O(t);s=T(l,"DIV",{class:!0,"data-svelte-h":!0}),N(s)!=="svelte-qmq8ry"&&(s.innerHTML=n),l.forEach(p),i.forEach(p),this.h()},h(){f(s,"class","w-max h-11 text-center mx-auto"),f(t,"colspan",r[5].length),f(t,"class","p-4")},m(a,i){P(a,e,i),m(e,t),m(t,s)},p:G,d(a){a&&p(e)}}}function tt(r){let e,t,s,n;return{c(){e=Q("tr"),t=Q("td"),s=Q("img"),this.h()},l(a){e=T(a,"TR",{});var i=O(e);t=T(i,"TD",{colspan:!0,class:!0});var l=O(t);s=T(l,"IMG",{src:!0,alt:!0,class:!0}),l.forEach(p),i.forEach(p),this.h()},h(){Ee(s.src,n=we+"/slash.png")||f(s,"src",n),f(s,"alt","loading..."),f(s,"class","animate-spin w-11 h-11 mx-auto"),f(t,"colspan",r[5].length),f(t,"class","p-4")},m(a,i){P(a,e,i),m(e,t),m(t,s)},p:G,d(a){a&&p(e)}}}function me(r,e){let t,s,n=e[10].name+"",a,i,l,h=ie(e[10].type)+"",u,g,o,c=e[10].description+"",b,C,d,_=' ',D;return{key:r,first:null,c(){t=Q("tr"),s=Q("td"),a=U(n),i=L(),l=Q("td"),u=U(h),g=L(),o=Q("td"),b=U(c),C=L(),d=Q("td"),d.innerHTML=_,D=L(),this.h()},l(E){t=T(E,"TR",{});var R=O(t);s=T(R,"TD",{class:!0});var S=O(s);a=A(S,n),S.forEach(p),i=F(R),l=T(R,"TD",{class:!0});var x=O(l);u=A(x,h),x.forEach(p),g=F(R),o=T(R,"TD",{class:!0});var v=O(o);b=A(v,c),v.forEach(p),C=F(R),d=T(R,"TD",{class:!0,"data-svelte-h":!0}),N(d)!=="svelte-fndegg"&&(d.innerHTML=_),D=F(R),R.forEach(p),this.h()},h(){f(s,"class","px-4 py-4 whitespace-nowrap font-bold font-mono"),f(l,"class","px-4 py-4 whitespace-nowrap font-semibold"),f(o,"class","px-4 py-4 whitespace-nowrap"),f(d,"class","px-4 py-4 whitespace-nowrap flex justify-center items-center gap-2"),this.first=t},m(E,R){P(E,t,R),m(t,s),m(s,a),m(t,i),m(t,l),m(l,u),m(t,g),m(t,o),m(o,b),m(t,C),m(t,d),m(t,D)},p(E,R){e=E,R&1&&n!==(n=e[10].name+"")&&q(a,n),R&1&&h!==(h=ie(e[10].type)+"")&&q(u,h),R&1&&c!==(c=e[10].description+"")&&q(b,c)},d(E){E&&p(t)}}}function st(r){let e,t,s;return{c(){e=V("svg"),t=V("path"),s=V("polyline"),this.h()},l(n){e=H(n,"svg",{xmlns:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var a=O(e);t=H(a,"path",{d:!0}),O(t).forEach(p),s=H(a,"polyline",{points:!0}),O(s).forEach(p),a.forEach(p),this.h()},h(){f(t,"d","M22 11.08V12a10 10 0 1 1-5.93-9.14"),f(s,"points","22 4 12 14.01 9 11.01"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","2"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round"),f(e,"class","text-green-500 h-7 w-7 mx-auto")},m(n,a){P(n,e,a),m(e,t),m(e,s)},d(n){n&&p(e)}}}function rt(r){let e,t,s,n,a;return{c(){e=V("svg"),t=V("path"),s=V("path"),n=V("path"),a=V("path"),this.h()},l(i){e=H(i,"svg",{xmlns:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var l=O(e);t=H(l,"path",{d:!0}),O(t).forEach(p),s=H(l,"path",{d:!0}),O(s).forEach(p),n=H(l,"path",{d:!0}),O(n).forEach(p),a=H(l,"path",{d:!0}),O(a).forEach(p),l.forEach(p),this.h()},h(){f(t,"d","M5 22h14"),f(s,"d","M5 2h14"),f(n,"d","M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22"),f(a,"d","M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","2"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round"),f(e,"class","text-yellow-500 h-7 w-7 mx-auto animate-spin")},m(i,l){P(i,e,l),m(e,t),m(e,s),m(e,n),m(e,a)},d(i){i&&p(e)}}}function nt(r){let e,t,s,n=[],a=new Map,i,l,h='',u,g,o,c,b,C=Y(r[5]);const d=v=>v[13];for(let v=0;v(u(),u=Ce(s,C=>t(8,h=C)),s);r.$$.on_destroy.push(()=>u());let o=["Name","Type","Description"],{basePath:c=""}=e,{id:b="global"}=e;return r.$$set=C=>{"basePath"in C&&t(6,c=C.basePath),"id"in C&&t(7,b=C.id)},r.$$.update=()=>{r.$$.dirty&192&&g(t(4,s=Xe({queryKey:["app.commands",b],queryFn:async()=>(await Fe(c)).data}))),r.$$.dirty&256&&t(3,n=h.isLoading),r.$$.dirty&256&&t(2,a=h.isError),r.$$.dirty&256&&t(1,i=h.isFetching),r.$$.dirty&256&&t(0,l=h.data||[])},[l,i,a,n,s,o,c,b,h]}class lt extends ye{constructor(e){super(),_e(this,e,it,nt,ge,{basePath:6,id:7})}}function at(r){let e,t="View Guild commands",s,n,a=`You are currently viewing the global list.
+import{r as ve,s as ge,n as G,h as Ce,i as Ee,b as Ie,j as Qe,c as ee,k as Te}from"../chunks/scheduler.5c7fdb1c.js";import{d as be,S as ye,i as _e,g as Q,s as L,h as T,j as O,c as F,x as N,f as p,k as f,a as P,y as m,m as U,n as A,e as te,o as q,z as V,A as H,B as Oe,r as xe,u as Se,v as Me,t as Pe,w as De,C as se,D as re}from"../chunks/index.21959a4f.js";import{b as ne}from"../chunks/localStore.3ee7e119.js";import{p as Le}from"../chunks/stores.5caa3662.js";import{b as we}from"../chunks/paths.906bffba.js";import{f as Fe}from"../chunks/api.3d2a0698.js";import{t as ie,d as z}from"../chunks/constants.85e98373.js";import{r as le,d as Ue}from"../chunks/index.403b996f.js";import{S as Ae,v as W,n as je,a as ae,i as oe,t as Be,j as Ve,e as He,r as ue,d as qe,b as K,w as Ne,k as Ke}from"../chunks/context.981da52b.js";import{g as ze}from"../chunks/navigation.2c693d71.js";function Y(r){return(r==null?void 0:r.length)!==void 0?r:Array.from(r)}function Re(r,e){r.d(1),e.delete(r.key)}function ke(r,e,t,s,n,a,i,l,h,u,g,o){let c=r.length,b=a.length,C=c;const d={};for(;C--;)d[r[C].key]=C;const _=[],D=new Map,E=new Map,R=[];for(C=b;C--;){const y=o(n,a,C),w=t(y);let I=i.get(w);I?s&&R.push(()=>I.p(y,e)):(I=u(w,y),I.c()),D.set(w,_[C]=I),w in d&&E.set(w,Math.abs(C-d[w]))}const S=new Set,x=new Set;function v(y){be(y,1),y.m(l,g),i.set(y.key,y),g=y.first,b--}for(;c&&b;){const y=_[b-1],w=r[c-1],I=y.key,k=w.key;y===w?(g=y.first,c--,b--):D.has(k)?!i.has(I)||S.has(I)?v(y):x.has(k)?c--:E.get(I)>E.get(k)?(x.add(I),v(y)):(S.add(k),c--):(h(w,i),c--)}for(;c--;){const y=r[c];D.has(y.key)||h(y,i)}for(;b;)v(_[b-1]);return ve(R),_}class Ge extends Ae{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),ce(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Z(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Z(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const s=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),W(s,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=s.queryKey),this.updateQuery();const a=this.hasListeners();a&&he(this.currentQuery,n,this.options,s)&&this.executeFetch(),this.updateResult(t),a&&(this.currentQuery!==n||this.options.enabled!==s.enabled||this.options.staleTime!==s.staleTime)&&this.updateStaleTimeout();const i=this.computeRefetchInterval();a&&(this.currentQuery!==n||this.options.enabled!==s.enabled||i!==this.currentRefetchInterval)&&this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),s=this.createResult(t,e);return We(this,s,e)&&(this.currentResult=s,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),s}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(s=>{Object.defineProperty(t,s,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(s),e[s])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),s=this.client.getQueryCache().build(this.client,t);return s.isFetchingOptimistic=!0,s.fetch().then(()=>this.createResult(s,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:(t=e.cancelRefetch)!=null?t:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return e!=null&&e.throwOnError||(t=t.catch(je)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),ae||this.currentResult.isStale||!oe(this.options.staleTime))return;const t=Be(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},t)}computeRefetchInterval(){var e;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(e=this.options.refetchInterval)!=null?e:!1}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!(ae||this.options.enabled===!1||!oe(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||Ve.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const s=this.currentQuery,n=this.options,a=this.currentResult,i=this.currentResultState,l=this.currentResultOptions,h=e!==s,u=h?e.state:this.currentQueryInitialState,g=h?this.currentResult:this.previousQueryResult,{state:o}=e;let{dataUpdatedAt:c,error:b,errorUpdatedAt:C,fetchStatus:d,status:_}=o,D=!1,E=!1,R;if(t._optimisticResults){const w=this.hasListeners(),I=!w&&ce(e,t),k=w&&he(e,s,t,n);(I||k)&&(d=He(e.options.networkMode)?"fetching":"paused",c||(_="loading")),t._optimisticResults==="isRestoring"&&(d="idle")}if(t.keepPreviousData&&!o.dataUpdatedAt&&g!=null&&g.isSuccess&&_!=="error")R=g.data,c=g.dataUpdatedAt,_=g.status,D=!0;else if(t.select&&typeof o.data<"u")if(a&&o.data===(i==null?void 0:i.data)&&t.select===this.selectFn)R=this.selectResult;else try{this.selectFn=t.select,R=t.select(o.data),R=ue(a==null?void 0:a.data,R,t),this.selectResult=R,this.selectError=null}catch(w){this.selectError=w}else R=o.data;if(typeof t.placeholderData<"u"&&typeof R>"u"&&_==="loading"){let w;if(a!=null&&a.isPlaceholderData&&t.placeholderData===(l==null?void 0:l.placeholderData))w=a.data;else if(w=typeof t.placeholderData=="function"?t.placeholderData():t.placeholderData,t.select&&typeof w<"u")try{w=t.select(w),this.selectError=null}catch(I){this.selectError=I}typeof w<"u"&&(_="success",R=ue(a==null?void 0:a.data,w,t),E=!0)}this.selectError&&(b=this.selectError,R=this.selectResult,C=Date.now(),_="error");const S=d==="fetching",x=_==="loading",v=_==="error";return{status:_,fetchStatus:d,isLoading:x,isSuccess:_==="success",isError:v,isInitialLoading:x&&S,data:R,dataUpdatedAt:c,error:b,errorUpdatedAt:C,failureCount:o.fetchFailureCount,failureReason:o.fetchFailureReason,errorUpdateCount:o.errorUpdateCount,isFetched:o.dataUpdateCount>0||o.errorUpdateCount>0,isFetchedAfterMount:o.dataUpdateCount>u.dataUpdateCount||o.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!x,isLoadingError:v&&o.dataUpdatedAt===0,isPaused:d==="paused",isPlaceholderData:E,isPreviousData:D,isRefetchError:v&&o.dataUpdatedAt!==0,isStale:J(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,s=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,W(s,t))return;this.currentResult=s;const n={cache:!0},a=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,l=typeof i=="function"?i():i;if(l==="all"||!l&&!this.trackedProps.size)return!0;const h=new Set(l??this.trackedProps);return this.options.useErrorBoundary&&h.add("error"),Object.keys(this.currentResult).some(u=>{const g=u;return this.currentResult[g]!==t[g]&&h.has(g)})};(e==null?void 0:e.listeners)!==!1&&a()&&(n.listeners=!0),this.notify({...n,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(t==null||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};e.type==="success"?t.onSuccess=!e.manual:e.type==="error"&&!qe(e.error)&&(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){K.batch(()=>{if(e.onSuccess){var t,s,n,a;(t=(s=this.options).onSuccess)==null||t.call(s,this.currentResult.data),(n=(a=this.options).onSettled)==null||n.call(a,this.currentResult.data,null)}else if(e.onError){var i,l,h,u;(i=(l=this.options).onError)==null||i.call(l,this.currentResult.error),(h=(u=this.options).onSettled)==null||h.call(u,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:g})=>{g(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function Ye(r,e){return e.enabled!==!1&&!r.state.dataUpdatedAt&&!(r.state.status==="error"&&e.retryOnMount===!1)}function ce(r,e){return Ye(r,e)||r.state.dataUpdatedAt>0&&Z(r,e,e.refetchOnMount)}function Z(r,e,t){if(e.enabled!==!1){const s=typeof t=="function"?t(r):t;return s==="always"||s!==!1&&J(r,e)}return!1}function he(r,e,t,s){return t.enabled!==!1&&(r!==e||s.enabled===!1)&&(!t.suspense||r.state.status!=="error")&&J(r,t)}function J(r,e){return r.isStaleByTime(e.staleTime)}function We(r,e,t){return t.keepPreviousData?!1:t.placeholderData!==void 0?e.isPlaceholderData:!W(r.getCurrentResult(),e)}function Ze(){return Ne()}function Je(r,e){const t=Ze(),s=t.defaultQueryOptions(r);s._optimisticResults="optimistic";let n=new e(t,s);s.onError&&(s.onError=K.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=K.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=K.batchCalls(s.onSettled)),le(n).subscribe(l=>{n=l,n.setOptions(s,{listeners:!1})});const a=le(n.getCurrentResult(),l=>n.subscribe(K.batchCalls(l))),{subscribe:i}=Ue(a,l=>(l=n.getOptimisticResult(s),s.notifyOnChangeProps?l:n.trackResult(l)));return{subscribe:i}}function Xe(r,e,t){const s=Ke(r,e,t);return Je(s,Ge)}function de(r,e,t){const s=r.slice();return s[10]=e[t],s}function fe(r,e,t){const s=r.slice();return s[13]=e[t],s}function pe(r,e){let t,s=e[13]+"",n;return{key:r,first:null,c(){t=Q("th"),n=U(s),this.h()},l(a){t=T(a,"TH",{scope:!0,class:!0});var i=O(t);n=A(i,s),i.forEach(p),this.h()},h(){f(t,"scope","col"),f(t,"class","px-6 py-3 text-left text-xs font-bold text-stone-400 uppercase tracking-wider"),this.first=t},m(a,i){P(a,t,i),m(t,n)},p(a,i){e=a},d(a){a&&p(t)}}}function $e(r){let e=[],t=new Map,s,n=Y(r[0]);const a=i=>i[10].id;for(let i=0;i(╯°□°)╯︵ ┻━┻ Oops! Something went wrong.';return{c(){e=Q("tr"),t=Q("td"),s=Q("div"),s.innerHTML=n,this.h()},l(a){e=T(a,"TR",{});var i=O(e);t=T(i,"TD",{colspan:!0,class:!0});var l=O(t);s=T(l,"DIV",{class:!0,"data-svelte-h":!0}),N(s)!=="svelte-qmq8ry"&&(s.innerHTML=n),l.forEach(p),i.forEach(p),this.h()},h(){f(s,"class","w-max h-11 text-center mx-auto"),f(t,"colspan",r[5].length),f(t,"class","p-4")},m(a,i){P(a,e,i),m(e,t),m(t,s)},p:G,d(a){a&&p(e)}}}function tt(r){let e,t,s,n;return{c(){e=Q("tr"),t=Q("td"),s=Q("img"),this.h()},l(a){e=T(a,"TR",{});var i=O(e);t=T(i,"TD",{colspan:!0,class:!0});var l=O(t);s=T(l,"IMG",{src:!0,alt:!0,class:!0}),l.forEach(p),i.forEach(p),this.h()},h(){Ee(s.src,n=we+"/slash.png")||f(s,"src",n),f(s,"alt","loading..."),f(s,"class","animate-spin w-11 h-11 mx-auto"),f(t,"colspan",r[5].length),f(t,"class","p-4")},m(a,i){P(a,e,i),m(e,t),m(t,s)},p:G,d(a){a&&p(e)}}}function me(r,e){let t,s,n=e[10].name+"",a,i,l,h=ie(e[10].type)+"",u,g,o,c=e[10].description+"",b,C,d,_=' ',D;return{key:r,first:null,c(){t=Q("tr"),s=Q("td"),a=U(n),i=L(),l=Q("td"),u=U(h),g=L(),o=Q("td"),b=U(c),C=L(),d=Q("td"),d.innerHTML=_,D=L(),this.h()},l(E){t=T(E,"TR",{});var R=O(t);s=T(R,"TD",{class:!0});var S=O(s);a=A(S,n),S.forEach(p),i=F(R),l=T(R,"TD",{class:!0});var x=O(l);u=A(x,h),x.forEach(p),g=F(R),o=T(R,"TD",{class:!0});var v=O(o);b=A(v,c),v.forEach(p),C=F(R),d=T(R,"TD",{class:!0,"data-svelte-h":!0}),N(d)!=="svelte-fndegg"&&(d.innerHTML=_),D=F(R),R.forEach(p),this.h()},h(){f(s,"class","px-4 py-4 whitespace-nowrap font-bold font-mono"),f(l,"class","px-4 py-4 whitespace-nowrap font-semibold"),f(o,"class","px-4 py-4 whitespace-nowrap"),f(d,"class","px-4 py-4 whitespace-nowrap flex justify-center items-center gap-2"),this.first=t},m(E,R){P(E,t,R),m(t,s),m(s,a),m(t,i),m(t,l),m(l,u),m(t,g),m(t,o),m(o,b),m(t,C),m(t,d),m(t,D)},p(E,R){e=E,R&1&&n!==(n=e[10].name+"")&&q(a,n),R&1&&h!==(h=ie(e[10].type)+"")&&q(u,h),R&1&&c!==(c=e[10].description+"")&&q(b,c)},d(E){E&&p(t)}}}function st(r){let e,t,s;return{c(){e=V("svg"),t=V("path"),s=V("polyline"),this.h()},l(n){e=H(n,"svg",{xmlns:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var a=O(e);t=H(a,"path",{d:!0}),O(t).forEach(p),s=H(a,"polyline",{points:!0}),O(s).forEach(p),a.forEach(p),this.h()},h(){f(t,"d","M22 11.08V12a10 10 0 1 1-5.93-9.14"),f(s,"points","22 4 12 14.01 9 11.01"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","2"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round"),f(e,"class","text-green-500 h-7 w-7 mx-auto")},m(n,a){P(n,e,a),m(e,t),m(e,s)},d(n){n&&p(e)}}}function rt(r){let e,t,s,n,a;return{c(){e=V("svg"),t=V("path"),s=V("path"),n=V("path"),a=V("path"),this.h()},l(i){e=H(i,"svg",{xmlns:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0,class:!0});var l=O(e);t=H(l,"path",{d:!0}),O(t).forEach(p),s=H(l,"path",{d:!0}),O(s).forEach(p),n=H(l,"path",{d:!0}),O(n).forEach(p),a=H(l,"path",{d:!0}),O(a).forEach(p),l.forEach(p),this.h()},h(){f(t,"d","M5 22h14"),f(s,"d","M5 2h14"),f(n,"d","M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22"),f(a,"d","M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2"),f(e,"xmlns","http://www.w3.org/2000/svg"),f(e,"viewBox","0 0 24 24"),f(e,"fill","none"),f(e,"stroke","currentColor"),f(e,"stroke-width","2"),f(e,"stroke-linecap","round"),f(e,"stroke-linejoin","round"),f(e,"class","text-yellow-500 h-7 w-7 mx-auto animate-spin")},m(i,l){P(i,e,l),m(e,t),m(e,s),m(e,n),m(e,a)},d(i){i&&p(e)}}}function nt(r){let e,t,s,n=[],a=new Map,i,l,h='',u,g,o,c,b,C=Y(r[5]);const d=v=>v[13];for(let v=0;v(u(),u=Ce(s,C=>t(8,h=C)),s);r.$$.on_destroy.push(()=>u());let o=["Name","Type","Description"],{basePath:c=""}=e,{id:b="global"}=e;return r.$$set=C=>{"basePath"in C&&t(6,c=C.basePath),"id"in C&&t(7,b=C.id)},r.$$.update=()=>{r.$$.dirty&192&&g(t(4,s=Xe({queryKey:["app.commands",b],queryFn:async()=>(await Fe(c)).data}))),r.$$.dirty&256&&t(3,n=h.isLoading),r.$$.dirty&256&&t(2,a=h.isError),r.$$.dirty&256&&t(1,i=h.isFetching),r.$$.dirty&256&&t(0,l=h.data||[])},[l,i,a,n,s,o,c,b,h]}class lt extends ye{constructor(e){super(),_e(this,e,it,nt,ge,{basePath:6,id:7})}}function at(r){let e,t="View Guild commands",s,n,a=`You are currently viewing the global list.
Enter a guild id (you bot must be invited to it)
and click the button to manage guild specific interactions`,i,l,h,u,g,o,c,b,C;return{c(){e=Q("h1"),e.textContent=t,s=L(),n=Q("p"),n.textContent=a,i=L(),l=Q("input"),h=L(),u=Q("button"),g=U("View guild commands"),this.h()},l(d){e=T(d,"H1",{"data-svelte-h":!0}),N(e)!=="svelte-1uuz0mm"&&(e.textContent=t),s=F(d),n=T(d,"P",{"data-svelte-h":!0}),N(n)!=="svelte-h1tt6h"&&(n.textContent=a),i=F(d),l=T(d,"INPUT",{class:!0}),h=F(d),u=T(d,"BUTTON",{class:!0});var _=O(u);g=A(_,"View guild commands"),_.forEach(p),this.h()},h(){f(l,"class","bg-primary-500 rounded-md p-2 focus:ring-0 focus:ring-offset-0 focus:outline-none"),u.disabled=o=r[1]==="",f(u,"class",c=(r[1]===""?"bg-primary-600 cursor-not-allowed":"bg-emerald-500 hover:bg-emerald-600")+" p-2 rounded-lg")},m(d,_){P(d,e,_),P(d,s,_),P(d,n,_),P(d,i,_),P(d,l,_),se(l,r[1]),P(d,h,_),P(d,u,_),m(u,g),b||(C=[re(l,"input",r[8]),re(u,"click",r[4])],b=!0)},p(d,_){_&2&&l.value!==d[1]&&se(l,d[1]),_&2&&o!==(o=d[1]==="")&&(u.disabled=o),_&2&&c!==(c=(d[1]===""?"bg-primary-600 cursor-not-allowed":"bg-emerald-500 hover:bg-emerald-600")+" p-2 rounded-lg")&&f(u,"class",c)},d(d){d&&(p(e),p(s),p(n),p(i),p(l),p(h),p(u)),b=!1,ve(C)}}}function ot(r){let e,t="View Global List",s,n,a,i,l,h,u,g="View global commands";return{c(){e=Q("h1"),e.textContent=t,s=L(),n=Q("p"),a=U('You are currently viewing the list for specific guild with id "'),i=U(r[0]),l=U(`"
Click the below button to view the global list`),h=L(),u=Q("a"),u.textContent=g,this.h()},l(o){e=T(o,"H1",{"data-svelte-h":!0}),N(e)!=="svelte-1mom79c"&&(e.textContent=t),s=F(o),n=T(o,"P",{});var c=O(n);a=A(c,'You are currently viewing the list for specific guild with id "'),i=A(c,r[0]),l=A(c,`"
diff --git a/_app/immutable/nodes/4.f412b4e9.js b/_app/immutable/nodes/4.7690eff1.js
similarity index 95%
rename from _app/immutable/nodes/4.f412b4e9.js
rename to _app/immutable/nodes/4.7690eff1.js
index 28dbe0f..370ed2b 100644
--- a/_app/immutable/nodes/4.f412b4e9.js
+++ b/_app/immutable/nodes/4.7690eff1.js
@@ -1,2 +1,2 @@
-import{s as Y,n as J,r as Z,k as $,o as ee}from"../chunks/scheduler.5c7fdb1c.js";import{S as te,i as ne,g as m,s as k,m as le,h as g,j as V,x,c as w,n as se,f as L,k as u,a as X,y as s,C as M,D as B}from"../chunks/index.21959a4f.js";import{a as q,b as ae}from"../chunks/localStore.3ee7e119.js";import{g as K}from"../chunks/navigation.826e938d.js";import{f as re,g as oe}from"../chunks/api.3d2a0698.js";import{d as ie}from"../chunks/constants.6d5eb8fd.js";import{b as Q}from"../chunks/paths.f2a78332.js";async function ue(){const n=await re("oauth2/@me"),{application:t}=n.data;return(t==null?void 0:t.bot)??{}}function W(n){let t,e="Please wait..., verifying credentials";return{c(){t=m("p"),t.textContent=e},l(a){t=g(a,"P",{"data-svelte-h":!0}),x(t)!=="svelte-uv8z2c"&&(t.textContent=e)},m(a,_){X(a,t,_)},d(a){a&&L(t)}}}function de(n){let t,e,a,_="Login",f,i,T="Enter your client id and client secret",P,y,S="NOT your client token",b,d,E=`Data is not sent to any 3rd party servers,
+import{s as Y,n as J,r as Z,k as $,o as ee}from"../chunks/scheduler.5c7fdb1c.js";import{S as te,i as ne,g as m,s as k,m as le,h as g,j as V,x,c as w,n as se,f as L,k as u,a as X,y as s,C as M,D as B}from"../chunks/index.21959a4f.js";import{a as q,b as ae}from"../chunks/localStore.3ee7e119.js";import{g as K}from"../chunks/navigation.2c693d71.js";import{f as re,g as oe}from"../chunks/api.3d2a0698.js";import{d as ie}from"../chunks/constants.85e98373.js";import{b as Q}from"../chunks/paths.906bffba.js";async function ue(){const n=await re("oauth2/@me"),{application:t}=n.data;return(t==null?void 0:t.bot)??{}}function W(n){let t,e="Please wait..., verifying credentials";return{c(){t=m("p"),t.textContent=e},l(a){t=g(a,"P",{"data-svelte-h":!0}),x(t)!=="svelte-uv8z2c"&&(t.textContent=e)},m(a,_){X(a,t,_)},d(a){a&&L(t)}}}function de(n){let t,e,a,_="Login",f,i,T="Enter your client id and client secret",P,y,S="NOT your client token",b,d,E=`Data is not sent to any 3rd party servers,
everything you do is only recorded to the localStorage and can be deleted if you need to.`,I,C,R='Get your application credentials from here discord.com/developers/applications',D,c,N,p,U,v,j,O,H,z,A,G,o=n[2]&&W();return{c(){t=m("div"),e=m("div"),a=m("h1"),a.textContent=_,f=k(),i=m("p"),i.textContent=T,P=k(),y=m("p"),y.textContent=S,b=k(),d=m("p"),d.innerHTML=E,I=k(),C=m("p"),C.innerHTML=R,D=k(),c=m("input"),N=k(),p=m("input"),U=k(),v=m("button"),j=le("Login with token 🚀"),z=k(),o&&o.c(),this.h()},l(r){t=g(r,"DIV",{class:!0});var h=V(t);e=g(h,"DIV",{class:!0});var l=V(e);a=g(l,"H1",{class:!0,"data-svelte-h":!0}),x(a)!=="svelte-1iq98bf"&&(a.textContent=_),f=w(l),i=g(l,"P",{class:!0,"data-svelte-h":!0}),x(i)!=="svelte-15jhly7"&&(i.textContent=T),P=w(l),y=g(l,"P",{class:!0,"data-svelte-h":!0}),x(y)!=="svelte-8qzf74"&&(y.textContent=S),b=w(l),d=g(l,"P",{class:!0,"data-svelte-h":!0}),x(d)!=="svelte-1erpz9n"&&(d.innerHTML=E),I=w(l),C=g(l,"P",{"data-svelte-h":!0}),x(C)!=="svelte-15pky1h"&&(C.innerHTML=R),D=w(l),c=g(l,"INPUT",{type:!0,placeholder:!0,class:!0}),N=w(l),p=g(l,"INPUT",{type:!0,placeholder:!0,class:!0}),U=w(l),v=g(l,"BUTTON",{class:!0});var F=V(v);j=se(F,"Login with token 🚀"),F.forEach(L),z=w(l),o&&o.l(l),l.forEach(L),h.forEach(L),this.h()},h(){u(a,"class","font-bold font-mono text-3xl"),u(i,"class","text-lg"),u(y,"class","text-sm font-bold"),u(d,"class","text-sm font-medium text-primary-300"),u(c,"type","text"),c.readOnly=n[2],u(c,"placeholder","Client Id"),u(c,"class","bg-primary-500 rounded-md p-2 focus:ring-0 focus:ring-offset-0 focus:outline-none"),u(p,"type","password"),p.readOnly=n[2],u(p,"placeholder","Client Secret"),u(p,"class","bg-primary-500 rounded-md p-2 focus:ring-0 focus:ring-offset-0 focus:outline-none"),v.disabled=O=n[3]||n[2],u(v,"class",H=(n[2]||n[3]?"bg-primary-600 cursor-not-allowed":"bg-blurple-600 hover:bg-blurple-700")+" p-2 rounded-lg"),u(e,"class","bg-primary-800 shadow-lg shadow-primary-900 border border-primary-700 opacity-90 rounded-lg p-3 w-1/2 flex flex-col gap-2 mt-9"),u(t,"class","flex justify-center")},m(r,h){X(r,t,h),s(t,e),s(e,a),s(e,f),s(e,i),s(e,P),s(e,y),s(e,b),s(e,d),s(e,I),s(e,C),s(e,D),s(e,c),M(c,n[0]),s(e,N),s(e,p),M(p,n[1]),s(e,U),s(e,v),s(v,j),s(e,z),o&&o.m(e,null),A||(G=[B(c,"input",n[5]),B(p,"input",n[6]),B(v,"click",n[4])],A=!0)},p(r,[h]){h&4&&(c.readOnly=r[2]),h&1&&c.value!==r[0]&&M(c,r[0]),h&4&&(p.readOnly=r[2]),h&2&&p.value!==r[1]&&M(p,r[1]),h&12&&O!==(O=r[3]||r[2])&&(v.disabled=O),h&12&&H!==(H=(r[2]||r[3]?"bg-primary-600 cursor-not-allowed":"bg-blurple-600 hover:bg-blurple-700")+" p-2 rounded-lg")&&u(v,"class",H),r[2]?o||(o=W(),o.c(),o.m(e,null)):o&&(o.d(1),o=null)},i:J,o:J,d(r){r&&L(t),o&&o.d(),A=!1,Z(G)}}}function ce(n,t,e){let a,_=$(q),f=_.clientId,i=_.clientSecret,T=!1;async function P(){if(!a){if(!ie.test(f))return alert("Id is invalid.");e(2,T=!0),q.update(b=>({...b,clientId:f,clientSecret:i}));try{const b=await oe(f,i);q.update(C=>({...C,accessToken:b}));const{username:d,discriminator:E,id:I}=await ue();if(typeof d!="string"||typeof I!="string")throw new TypeError("API Returned non string values");ae.set({username:d,discriminator:E,id:I}),K(`${Q}/dashboard`)}catch(b){console.log("Error while verifying",b),q.update(d=>({...d,accessToken:""})),alert("Verification failed, try again (check your credentials)")}e(2,T=!1)}}ee(()=>{_.accessToken!==""&&K(`${Q}/dashboard`)});function y(){f=this.value,e(0,f)}function S(){i=this.value,e(1,i)}return n.$$.update=()=>{n.$$.dirty&3&&e(3,a=f===""||i==="")},[f,i,T,a,P,y,S]}class be extends te{constructor(t){super(),ne(this,t,ce,de,Y,{})}}export{be as component};
diff --git a/_app/immutable/nodes/5.231d10e0.js b/_app/immutable/nodes/5.d9b34026.js
similarity index 94%
rename from _app/immutable/nodes/5.231d10e0.js
rename to _app/immutable/nodes/5.d9b34026.js
index 8377157..6013e92 100644
--- a/_app/immutable/nodes/5.231d10e0.js
+++ b/_app/immutable/nodes/5.d9b34026.js
@@ -1,3 +1,3 @@
-import{s as q,n as L,k as V,o as B}from"../chunks/scheduler.5c7fdb1c.js";import{S as N,i as O,g as l,s as h,m as U,h as i,j,x as g,c as v,n as z,f as x,k as p,a as A,y as a,D as F}from"../chunks/index.21959a4f.js";import{a as $,b as G}from"../chunks/localStore.3ee7e119.js";import{g as H}from"../chunks/navigation.826e938d.js";import{b as M}from"../chunks/paths.f2a78332.js";function J(f){let e,t,o,w="Logout",y,d,D="Everything done here? 😅",b,c,E="If you liked it please star us on github 🌟",_,r,I=`Data is not sent to any 3rd party servers,
+import{s as q,n as L,k as V,o as B}from"../chunks/scheduler.5c7fdb1c.js";import{S as N,i as O,g as l,s as h,m as U,h as i,j,x as g,c as v,n as z,f as x,k as p,a as A,y as a,D as F}from"../chunks/index.21959a4f.js";import{a as $,b as G}from"../chunks/localStore.3ee7e119.js";import{g as H}from"../chunks/navigation.2c693d71.js";import{b as M}from"../chunks/paths.906bffba.js";function J(f){let e,t,o,w="Logout",y,d,D="Everything done here? 😅",b,c,E="If you liked it please star us on github 🌟",_,r,I=`Data is not sent to any 3rd party servers,
everything you do is only recorded to the localStorage and can be deleted if you need to.
Logout does not delete any cached data!!`,C,n,k,T,P;return{c(){e=l("div"),t=l("div"),o=l("h1"),o.textContent=w,y=h(),d=l("p"),d.textContent=D,b=h(),c=l("p"),c.textContent=E,_=h(),r=l("p"),r.innerHTML=I,C=h(),n=l("button"),k=U("Logout 💔"),this.h()},l(u){e=i(u,"DIV",{class:!0});var m=j(e);t=i(m,"DIV",{class:!0});var s=j(t);o=i(s,"H1",{class:!0,"data-svelte-h":!0}),g(o)!=="svelte-15yndtu"&&(o.textContent=w),y=v(s),d=i(s,"P",{"data-svelte-h":!0}),g(d)!=="svelte-1bjxb2m"&&(d.textContent=D),b=v(s),c=i(s,"P",{"data-svelte-h":!0}),g(c)!=="svelte-w0qe6x"&&(c.textContent=E),_=v(s),r=i(s,"P",{class:!0,"data-svelte-h":!0}),g(r)!=="svelte-1mf0ujk"&&(r.innerHTML=I),C=v(s),n=i(s,"BUTTON",{class:!0});var S=j(n);k=z(S,"Logout 💔"),S.forEach(x),s.forEach(x),m.forEach(x),this.h()},h(){p(o,"class","font-bold font-mono text-3xl"),p(r,"class","text-sm font-medium text-primary-300"),n.disabled=f[0].accessToken==="",p(n,"class","bg-red-500 hover:bg-red-600 p-2 rounded-lg"),p(t,"class","bg-primary-800 shadow-lg shadow-primary-900 border border-primary-700 opacity-90 rounded-lg p-3 w-1/2 flex flex-col gap-2 mt-9"),p(e,"class","flex justify-center")},m(u,m){A(u,e,m),a(e,t),a(t,o),a(t,y),a(t,d),a(t,b),a(t,c),a(t,_),a(t,r),a(t,C),a(t,n),a(n,k),T||(P=F(n,"click",f[1]),T=!0)},p:L,i:L,o:L,d(u){u&&x(e),T=!1,P()}}}function K(f){let e=V($);function t(){$.update(o=>({...o,accessToken:""})),G.set({username:"",discriminator:"",id:""}),H(`${M}/login`)}return B(()=>{e.accessToken===""&&H(`${M}/login`)}),[e,t]}class Z extends N{constructor(e){super(),O(this,e,K,J,q,{})}}export{Z as component};
diff --git a/_app/version.json b/_app/version.json
index b448e08..9e5d008 100644
--- a/_app/version.json
+++ b/_app/version.json
@@ -1 +1 @@
-{"version":"1694191172544"}
\ No newline at end of file
+{"version":"1694192294753"}
\ No newline at end of file
diff --git a/dashboard.html b/dashboard.html
index 928bb12..e302515 100644
--- a/dashboard.html
+++ b/dashboard.html
@@ -7,21 +7,21 @@
Discord Slash Manager
-
+
-
+
-
-
+
+
-
+
-
-
+
+
-
-
+
+
Logged in for #
In global view
Name
Type
Description
View Guild commands
You are currently viewing the global list.
@@ -30,7 +30,7 @@