This commit is contained in:
2026-02-22 13:08:08 +01:00
parent a65cb57ef2
commit ce20ca6b35
34 changed files with 65 additions and 48 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{u as c,v as p}from"./a9_IrBSG.js";const e=[];function h(n,b=c){let i=null;const o=new Set;function r(t){if(p(n,t)&&(n=t,i)){const u=!e.length;for(const s of o)s[1](),e.push(s,n);if(u){for(let s=0;s<e.length;s+=2)e[s][0](e[s+1]);e.length=0}}}function f(t){r(t(n))}function l(t,u=c){const s=[t,u];return o.add(s),o.size===1&&(i=b(r,f)||c),t(n),()=>{o.delete(s),o.size===0&&i&&(i(),i=null)}}return{set:r,update:f,subscribe:l}}export{h as w};

View File

@@ -0,0 +1 @@
import{$ as u,a0 as b,U as k,a1 as m,h as _,i as s,a2 as i}from"./a9_IrBSG.js";import{w as y}from"./BXL361Aj.js";function j(e,a,v=a){var c=new WeakSet;u(e,"input",async r=>{var l=r?e.defaultValue:e.value;if(l=d(e)?t(l):l,v(l),s!==null&&c.add(s),await b(),l!==(l=a())){var n=e.selectionStart,f=e.selectionEnd,h=e.value.length;if(e.value=l??"",f!==null){var o=e.value.length;n===f&&f===h&&o>h?(e.selectionStart=o,e.selectionEnd=o):(e.selectionStart=n,e.selectionEnd=Math.min(f,o))}}}),(_&&e.defaultValue!==e.value||k(a)==null&&e.value)&&(v(d(e)?t(e.value):e.value),s!==null&&c.add(s)),m(()=>{var r=a();if(e===document.activeElement){var l=i??s;if(c.has(l))return}d(e)&&r===t(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function B(e,a,v=a){u(e,"change",c=>{var r=c?e.defaultChecked:e.checked;v(r)}),(_&&e.defaultChecked!==e.checked||k(a)==null)&&v(e.checked),m(()=>{var c=a();e.checked=!!c})}function d(e){var a=e.type;return a==="number"||a==="range"}function t(e){return e===""?null:+e}const E=y("");fetch("/settings.json").then(e=>e.json()).then(e=>E.set(e.domain));export{E as A,B as a,j as b};

View File

@@ -1 +0,0 @@
import{a5 as h,a6 as b,S as k,a7 as _,h as m,i as s,a8 as i}from"./DvA19Lby.js";function A(e,a,v=a){var c=new WeakSet;h(e,"input",async r=>{var l=r?e.defaultValue:e.value;if(l=f(e)?n(l):l,v(l),s!==null&&c.add(s),await b(),l!==(l=a())){var t=e.selectionStart,d=e.selectionEnd,u=e.value.length;if(e.value=l??"",d!==null){var o=e.value.length;t===d&&d===u&&o>u?(e.selectionStart=o,e.selectionEnd=o):(e.selectionStart=t,e.selectionEnd=Math.min(d,o))}}}),(m&&e.defaultValue!==e.value||k(a)==null&&e.value)&&(v(f(e)?n(e.value):e.value),s!==null&&c.add(s)),_(()=>{var r=a();if(e===document.activeElement){var l=i??s;if(c.has(l))return}f(e)&&r===n(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function B(e,a,v=a){h(e,"change",c=>{var r=c?e.defaultChecked:e.checked;v(r)}),(m&&e.defaultChecked!==e.checked||k(a)==null)&&v(e.checked),_(()=>{var c=a();e.checked=!!c})}function f(e){var a=e.type;return a==="number"||a==="range"}function n(e){return e===""?null:+e}const S="*",y={domain:S},C=y.domain;export{C as A,B as a,A as b};

View File

@@ -0,0 +1,2 @@
import{ak as $,x as V,al as Y,a1 as z,U as G,am as M,q as C,n as d,h as _,R as w,b as J,a as K,ai as H,H as Q,m as c,an as T,p as A,l as W,ao as N,ap as y,aq as B,ar as X,as as L,a3 as j,o as Z,at as tt,k as D,c as S,au as et,s as st,av as I,aw as rt,E as it,ax as nt,ay as at,az as ht,aA as ot,aB as lt,aC as ft,aD as O,ab as ut,aE as ct,aj as dt,aF as x,d as R,aG as _t,aH as pt,aI as gt,aJ as vt,w as yt,aK as bt,aL as Et,y as wt}from"./a9_IrBSG.js";import{b as mt}from"./wrmqo5Xl.js";function Tt(e){let t=0,r=Y(0),i;return()=>{$()&&(V(r),z(()=>(t===0&&(i=G(()=>e(()=>M(r)))),t+=1,()=>{C(()=>{t-=1,t===0&&(i?.(),i=void 0,M(r))})})))}}var Rt=it|nt|at;function Nt(e,t,r){new St(e,t,r)}class St{parent;#s=!1;#e;#g=_?d:null;#i;#u;#n;#r=null;#t=null;#a=null;#h=null;#o=null;#c=0;#l=0;#d=!1;#f=null;#b=Tt(()=>(this.#f=Y(this.#c),()=>{this.#f=null}));constructor(t,r,i){this.#e=t,this.#i=r,this.#u=i,this.parent=w.b,this.#s=!!this.#i.pending,this.#n=J(()=>{if(w.b=this,_){const s=this.#g;K(),s.nodeType===H&&s.data===Q?this.#w():this.#E()}else{var n=this.#v();try{this.#r=c(()=>i(n))}catch(s){this.error(s)}this.#l>0?this.#p():this.#s=!1}return()=>{this.#o?.remove()}},Rt),_&&(this.#e=d)}#E(){try{this.#r=c(()=>this.#u(this.#e))}catch(t){this.error(t)}this.#s=!1}#w(){const t=this.#i.pending;t&&(this.#t=c(()=>t(this.#e)),T.enqueue(()=>{var r=this.#v();this.#r=this.#_(()=>(T.ensure(),c(()=>this.#u(r)))),this.#l>0?this.#p():(A(this.#t,()=>{this.#t=null}),this.#s=!1)}))}#v(){var t=this.#e;return this.#s&&(this.#o=W(),this.#e.before(this.#o),t=this.#o),t}is_pending(){return this.#s||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#i.pending}#_(t){var r=w,i=L,n=j;N(this.#n),y(this.#n),B(this.#n.ctx);try{return t()}catch(s){return X(s),null}finally{N(r),y(i),B(n)}}#p(){const t=this.#i.pending;this.#r!==null&&(this.#h=document.createDocumentFragment(),this.#h.append(this.#o),Z(this.#r,this.#h)),this.#t===null&&(this.#t=c(()=>t(this.#e)))}#y(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t);return}this.#l+=t,this.#l===0&&(this.#s=!1,this.#t&&A(this.#t,()=>{this.#t=null}),this.#h&&(this.#e.before(this.#h),this.#h=null))}update_pending_count(t){this.#y(t),this.#c+=t,this.#f&&tt(this.#f,this.#c)}get_effect_pending(){return this.#b(),V(this.#f)}error(t){var r=this.#i.onerror;let i=this.#i.failed;if(this.#d||!r&&!i)throw t;this.#r&&(D(this.#r),this.#r=null),this.#t&&(D(this.#t),this.#t=null),this.#a&&(D(this.#a),this.#a=null),_&&(S(this.#g),et(),S(st()));var n=!1,s=!1;const a=()=>{if(n){ht();return}n=!0,s&&rt(),T.ensure(),this.#c=0,this.#a!==null&&A(this.#a,()=>{this.#a=null}),this.#s=this.has_pending_snippet(),this.#r=this.#_(()=>(this.#d=!1,c(()=>this.#u(this.#e)))),this.#l>0?this.#p():this.#s=!1};var f=L;try{y(null),s=!0,r?.(t,a),s=!1}catch(l){I(l,this.#n&&this.#n.parent)}finally{y(f)}i&&C(()=>{this.#a=this.#_(()=>{T.ensure(),this.#d=!0;try{return c(()=>{i(this.#e,()=>t,()=>a)})}catch(l){return I(l,this.#n.parent),null}finally{this.#d=!1}})})}}const kt=["touchstart","touchmove"];function At(e){return kt.includes(e)}const Dt=new Set,q=new Set;function Lt(e,t,r,i={}){function n(s){if(i.capture||E.call(t,s),!s.cancelBubble)return lt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?C(()=>{t.addEventListener(e,n,i)}):t.addEventListener(e,n,i),n}function Ct(e,t,r,i,n){var s={capture:i,passive:n},a=Lt(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ot(()=>{t.removeEventListener(e,a,s)})}let P=null;function E(e){var t=this,r=t.ownerDocument,i=e.type,n=e.composedPath?.()||[],s=n[0]||e.target;P=e;var a=0,f=P===e&&e.__root;if(f){var l=n.indexOf(f);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var p=n.indexOf(t);if(p===-1)return;l<=p&&(a=l)}if(s=n[a]||e.target,s!==t){ft(e,"currentTarget",{configurable:!0,get(){return s||r}});var k=L,u=w;y(null),N(null);try{for(var h,o=[];s!==null;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var b=s["__"+i];b!=null&&(!s.disabled||e.target===s)&&b.call(s,e)}catch(m){h?o.push(m):h=m}if(e.cancelBubble||g===t||g===null)break;s=g}if(h){for(let m of o)queueMicrotask(()=>{throw m});throw h}}finally{e.__root=t,delete e.currentTarget,y(k),N(u)}}}function Ht(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Ot(e,t){return U(e,t)}function Mt(e,t){O(),t.intro=t.intro??!1;const r=t.target,i=_,n=d;try{for(var s=ut(r);s&&(s.nodeType!==H||s.data!==ct);)s=dt(s);if(!s)throw x;R(!0),S(s);const a=U(e,{...t,anchor:s});return R(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
`).some(f=>f.startsWith("https://svelte.dev/e/")))throw a;return a!==x&&console.warn("Failed to hydrate: ",a),t.recover===!1&&_t(),O(),pt(r),R(!1),Ot(e,t)}finally{R(i),S(n)}}const v=new Map;function U(e,{target:t,anchor:r,props:i={},events:n,context:s,intro:a=!0}){O();var f=new Set,l=u=>{for(var h=0;h<u.length;h++){var o=u[h];if(!f.has(o)){f.add(o);var g=At(o);t.addEventListener(o,E,{passive:g});var b=v.get(o);b===void 0?(document.addEventListener(o,E,{passive:g}),v.set(o,1)):v.set(o,b+1)}}};l(gt(Dt)),q.add(l);var p=void 0,k=vt(()=>{var u=r??t.appendChild(W());return Nt(u,{pending:()=>{}},h=>{if(s){yt({});var o=j;o.c=s}if(n&&(i.$$events=n),_&&mt(h,null),p=e(h,i)||{},_&&(w.nodes_end=d,d===null||d.nodeType!==H||d.data!==bt))throw Et(),x;s&&wt()}),()=>{for(var h of f){t.removeEventListener(h,E);var o=v.get(h);--o===0?(document.removeEventListener(h,E),v.delete(h)):v.set(h,o)}q.delete(l),u!==r&&u.parentNode?.removeChild(u)}});return F.set(p,k),p}let F=new WeakMap;function Bt(e,t){const r=F.get(e);return r?(F.delete(e),r(t)):Promise.resolve()}export{Ct as e,Mt as h,Ot as m,Ht as s,Bt as u};

View File

@@ -1 +0,0 @@
import{$ as o,Z as t,T as c,S as l}from"./DvA19Lby.js";function u(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function r(e){t===null&&u(),c&&t.l!==null?a(t).m.push(e):o(()=>{const n=l(e);if(typeof n=="function")return n})}function a(e){var n=e.l;return n.u??={a:[],b:[],m:[]}}export{r as o};

View File

@@ -1 +1 @@
import{i as n,j as p,k as o,p as u,l as d,m as l,h as m,n as _,o as v,t as b}from"./DvA19Lby.js";class y{anchor;#t=new Map;#s=new Map;#e=new Map;#i=!0;constructor(e,s=!0){this.anchor=e,this.#i=s}#a=()=>{var e=n;if(this.#t.has(e)){var s=this.#t.get(e),t=this.#s.get(s);if(t)p(t);else{var i=this.#e.get(s);i&&(this.#s.set(s,i.effect),this.#e.delete(s),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),t=i.effect)}for(const[a,f]of this.#t){if(this.#t.delete(a),a===e)break;const r=this.#e.get(f);r&&(o(r.effect),this.#e.delete(f))}for(const[a,f]of this.#s){if(a===s)continue;const r=()=>{if(Array.from(this.#t.values()).includes(a)){var h=document.createDocumentFragment();v(f,h),h.append(d()),this.#e.set(a,{effect:f,fragment:h})}else o(f);this.#s.delete(a)};this.#i||!t?u(f,r,!1):r()}}};#f=e=>{this.#t.delete(e);const s=Array.from(this.#t.values());for(const[t,i]of this.#e)s.includes(t)||(o(i.effect),this.#e.delete(t))};ensure(e,s){var t=n,i=b();if(s&&!this.#s.has(e)&&!this.#e.has(e))if(i){var a=document.createDocumentFragment(),f=d();a.append(f),this.#e.set(e,{effect:l(()=>s(f)),fragment:a})}else this.#s.set(e,l(()=>s(this.anchor)));if(this.#t.set(t,e),i){for(const[r,c]of this.#s)r===e?t.skipped_effects.delete(c):t.skipped_effects.add(c);for(const[r,c]of this.#e)r===e?t.skipped_effects.delete(c.effect):t.skipped_effects.add(c.effect);t.oncommit(this.#a),t.ondiscard(this.#f)}else m&&(this.anchor=_),this.#a()}}export{y as B};
import{i as n,j as p,k as o,p as u,l as d,m as l,h as m,n as _,o as v,t as b}from"./a9_IrBSG.js";class y{anchor;#t=new Map;#s=new Map;#e=new Map;#i=!0;constructor(e,s=!0){this.anchor=e,this.#i=s}#a=()=>{var e=n;if(this.#t.has(e)){var s=this.#t.get(e),t=this.#s.get(s);if(t)p(t);else{var i=this.#e.get(s);i&&(this.#s.set(s,i.effect),this.#e.delete(s),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),t=i.effect)}for(const[a,f]of this.#t){if(this.#t.delete(a),a===e)break;const r=this.#e.get(f);r&&(o(r.effect),this.#e.delete(f))}for(const[a,f]of this.#s){if(a===s)continue;const r=()=>{if(Array.from(this.#t.values()).includes(a)){var h=document.createDocumentFragment();v(f,h),h.append(d()),this.#e.set(a,{effect:f,fragment:h})}else o(f);this.#s.delete(a)};this.#i||!t?u(f,r,!1):r()}}};#f=e=>{this.#t.delete(e);const s=Array.from(this.#t.values());for(const[t,i]of this.#e)s.includes(t)||(o(i.effect),this.#e.delete(t))};ensure(e,s){var t=n,i=b();if(s&&!this.#s.has(e)&&!this.#e.has(e))if(i){var a=document.createDocumentFragment(),f=d();a.append(f),this.#e.set(e,{effect:l(()=>s(f)),fragment:a})}else this.#s.set(e,l(()=>s(this.anchor)));if(this.#t.set(t,e),i){for(const[r,c]of this.#s)r===e?t.skipped_effects.delete(c):t.skipped_effects.add(c);for(const[r,c]of this.#e)r===e?t.skipped_effects.delete(c.effect):t.skipped_effects.add(c.effect);t.oncommit(this.#a),t.ondiscard(this.#f)}else m&&(this.anchor=_),this.#a()}}export{y as B};

View File

@@ -1,2 +0,0 @@
import{ai as z,v as V,aj as Y,a7 as G,S as J,ak as M,q as C,n as d,h as _,O as w,b as U,a as Z,ag as H,H as K,m as c,al as T,p as A,l as W,am as S,an as y,ao as B,ap as Q,aq as O,Z as j,o as X,ar as tt,k as D,c as N,as as et,s as st,at as I,au as rt,E as it,av as nt,aw as at,ax as ht,ay as ot,az as lt,aA as ft,aB as F,a9 as ut,aC as ct,ah as dt,aD as L,d as R,aE as _t,aF as pt,aG as gt,aH as vt,u as yt,aI as Et,aJ as bt,w as wt}from"./DvA19Lby.js";import{b as mt}from"./CSHBicSK.js";function Tt(e){let t=0,r=Y(0),i;return()=>{z()&&(V(r),G(()=>(t===0&&(i=J(()=>e(()=>M(r)))),t+=1,()=>{C(()=>{t-=1,t===0&&(i?.(),i=void 0,M(r))})})))}}var Rt=it|nt|at;function St(e,t,r){new Nt(e,t,r)}class Nt{parent;#s=!1;#e;#g=_?d:null;#i;#u;#n;#r=null;#t=null;#a=null;#h=null;#o=null;#c=0;#l=0;#d=!1;#f=null;#E=Tt(()=>(this.#f=Y(this.#c),()=>{this.#f=null}));constructor(t,r,i){this.#e=t,this.#i=r,this.#u=i,this.parent=w.b,this.#s=!!this.#i.pending,this.#n=U(()=>{if(w.b=this,_){const s=this.#g;Z(),s.nodeType===H&&s.data===K?this.#w():this.#b()}else{var n=this.#v();try{this.#r=c(()=>i(n))}catch(s){this.error(s)}this.#l>0?this.#p():this.#s=!1}return()=>{this.#o?.remove()}},Rt),_&&(this.#e=d)}#b(){try{this.#r=c(()=>this.#u(this.#e))}catch(t){this.error(t)}this.#s=!1}#w(){const t=this.#i.pending;t&&(this.#t=c(()=>t(this.#e)),T.enqueue(()=>{var r=this.#v();this.#r=this.#_(()=>(T.ensure(),c(()=>this.#u(r)))),this.#l>0?this.#p():(A(this.#t,()=>{this.#t=null}),this.#s=!1)}))}#v(){var t=this.#e;return this.#s&&(this.#o=W(),this.#e.before(this.#o),t=this.#o),t}is_pending(){return this.#s||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#i.pending}#_(t){var r=w,i=O,n=j;S(this.#n),y(this.#n),B(this.#n.ctx);try{return t()}catch(s){return Q(s),null}finally{S(r),y(i),B(n)}}#p(){const t=this.#i.pending;this.#r!==null&&(this.#h=document.createDocumentFragment(),this.#h.append(this.#o),X(this.#r,this.#h)),this.#t===null&&(this.#t=c(()=>t(this.#e)))}#y(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t);return}this.#l+=t,this.#l===0&&(this.#s=!1,this.#t&&A(this.#t,()=>{this.#t=null}),this.#h&&(this.#e.before(this.#h),this.#h=null))}update_pending_count(t){this.#y(t),this.#c+=t,this.#f&&tt(this.#f,this.#c)}get_effect_pending(){return this.#E(),V(this.#f)}error(t){var r=this.#i.onerror;let i=this.#i.failed;if(this.#d||!r&&!i)throw t;this.#r&&(D(this.#r),this.#r=null),this.#t&&(D(this.#t),this.#t=null),this.#a&&(D(this.#a),this.#a=null),_&&(N(this.#g),et(),N(st()));var n=!1,s=!1;const a=()=>{if(n){ht();return}n=!0,s&&rt(),T.ensure(),this.#c=0,this.#a!==null&&A(this.#a,()=>{this.#a=null}),this.#s=this.has_pending_snippet(),this.#r=this.#_(()=>(this.#d=!1,c(()=>this.#u(this.#e)))),this.#l>0?this.#p():this.#s=!1};var f=O;try{y(null),s=!0,r?.(t,a),s=!1}catch(l){I(l,this.#n&&this.#n.parent)}finally{y(f)}i&&C(()=>{this.#a=this.#_(()=>{T.ensure(),this.#d=!0;try{return c(()=>{i(this.#e,()=>t,()=>a)})}catch(l){return I(l,this.#n.parent),null}finally{this.#d=!1}})})}}const kt=["touchstart","touchmove"];function At(e){return kt.includes(e)}const Dt=new Set,q=new Set;function Ot(e,t,r,i={}){function n(s){if(i.capture||b.call(t,s),!s.cancelBubble)return lt(()=>r?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?C(()=>{t.addEventListener(e,n,i)}):t.addEventListener(e,n,i),n}function Ct(e,t,r,i,n){var s={capture:i,passive:n},a=Ot(e,t,r,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ot(()=>{t.removeEventListener(e,a,s)})}let P=null;function b(e){var t=this,r=t.ownerDocument,i=e.type,n=e.composedPath?.()||[],s=n[0]||e.target;P=e;var a=0,f=P===e&&e.__root;if(f){var l=n.indexOf(f);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var p=n.indexOf(t);if(p===-1)return;l<=p&&(a=l)}if(s=n[a]||e.target,s!==t){ft(e,"currentTarget",{configurable:!0,get(){return s||r}});var k=O,u=w;y(null),S(null);try{for(var h,o=[];s!==null;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var E=s["__"+i];E!=null&&(!s.disabled||e.target===s)&&E.call(s,e)}catch(m){h?o.push(m):h=m}if(e.cancelBubble||g===t||g===null)break;s=g}if(h){for(let m of o)queueMicrotask(()=>{throw m});throw h}}finally{e.__root=t,delete e.currentTarget,y(k),S(u)}}}function Ht(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Ft(e,t){return $(e,t)}function Mt(e,t){F(),t.intro=t.intro??!1;const r=t.target,i=_,n=d;try{for(var s=ut(r);s&&(s.nodeType!==H||s.data!==ct);)s=dt(s);if(!s)throw L;R(!0),N(s);const a=$(e,{...t,anchor:s});return R(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
`).some(f=>f.startsWith("https://svelte.dev/e/")))throw a;return a!==L&&console.warn("Failed to hydrate: ",a),t.recover===!1&&_t(),F(),pt(r),R(!1),Ft(e,t)}finally{R(i),N(n)}}const v=new Map;function $(e,{target:t,anchor:r,props:i={},events:n,context:s,intro:a=!0}){F();var f=new Set,l=u=>{for(var h=0;h<u.length;h++){var o=u[h];if(!f.has(o)){f.add(o);var g=At(o);t.addEventListener(o,b,{passive:g});var E=v.get(o);E===void 0?(document.addEventListener(o,b,{passive:g}),v.set(o,1)):v.set(o,E+1)}}};l(gt(Dt)),q.add(l);var p=void 0,k=vt(()=>{var u=r??t.appendChild(W());return St(u,{pending:()=>{}},h=>{if(s){yt({});var o=j;o.c=s}if(n&&(i.$$events=n),_&&mt(h,null),p=e(h,i)||{},_&&(w.nodes_end=d,d===null||d.nodeType!==H||d.data!==Et))throw bt(),L;s&&wt()}),()=>{for(var h of f){t.removeEventListener(h,b);var o=v.get(h);--o===0?(document.removeEventListener(h,b),v.delete(h)):v.set(h,o)}q.delete(l),u!==r&&u.parentNode?.removeChild(u)}});return x.set(p,k),p}let x=new WeakMap;function Bt(e,t){const r=x.get(e);return r?(x.delete(e),r(t)):Promise.resolve()}export{Ct as e,Mt as h,Ft as m,Ht as s,Bt as u};

View File

@@ -1 +1 @@
import{b as c,h as _,a as o,E as d,r as b,H as E,s as T,c as p,d as f}from"./DvA19Lby.js";import{B as y}from"./BGXhwtVx.js";function v(t,i,h=!1){_&&o();var e=new y(t),u=h?d:0;function n(a,r){if(_){const l=b(t)===E;if(a===l){var s=T();p(s),e.anchor=s,f(!1),e.ensure(a,r),f(!0);return}}e.ensure(a,r)}c(()=>{var a=!1;i((r,s=!0)=>{a=!0,n(s,r)}),a||n(!1,null)},u)}export{v as i};
import{b as c,h as _,a as o,E as d,r as b,H as E,s as T,c as p,d as f}from"./a9_IrBSG.js";import{B as y}from"./DPjh4P1x.js";function v(t,i,h=!1){_&&o();var e=new y(t),u=h?d:0;function n(a,r){if(_){const l=b(t)===E;if(a===l){var s=T();p(s),e.anchor=s,f(!1),e.ensure(a,r),f(!0);return}}e.ensure(a,r)}c(()=>{var a=!1;i((r,s=!0)=>{a=!0,n(s,r)}),a||n(!1,null)},u)}export{v as i};

View File

@@ -0,0 +1 @@
import{a5 as o,a3 as t,V as c,U as l}from"./a9_IrBSG.js";function a(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function r(e){t===null&&a(),c&&t.l!==null?u(t).m.push(e):o(()=>{const n=l(e);if(typeof n=="function")return n})}function u(e){var n=e.l;return n.u??={a:[],b:[],m:[]}}export{r as o};

View File

@@ -1 +0,0 @@
import{F as b,G as L,P as D,v as g,I as Y,J as m,K as B,C as M,M as U,O as N,Q as h,R as x,S as y,T as C,U as G,V as $,W as q,X as w,Y as z}from"./DvA19Lby.js";let S=!1;function F(r){var n=S;try{return S=!1,[r(),S]}finally{S=n}}function K(r,n,t,d){var f=!C||(t&G)!==0,v=(t&x)!==0,R=(t&q)!==0,a=d,c=!0,I=()=>(c&&(c=!1,a=R?y(d):d),a),u;if(v){var E=w in r||z in r;u=b(r,n)?.set??(E&&n in r?e=>r[n]=e:void 0)}var _,o=!1;v?[_,o]=F(()=>r[n]):_=r[n],_===void 0&&d!==void 0&&(_=I(),u&&(f&&L(),u(_)));var i;if(f?i=()=>{var e=r[n];return e===void 0?I():(c=!0,e)}:i=()=>{var e=r[n];return e!==void 0&&(a=void 0),e===void 0?a:e},f&&(t&D)===0)return i;if(u){var A=r.$$legacy;return(function(e,l){return arguments.length>0?((!f||!l||A||o)&&u(l?i():e),e):i()})}var P=!1,s=((t&$)!==0?Y:m)(()=>(P=!1,i()));v&&g(s);var T=N;return(function(e,l){if(arguments.length>0){const O=l?g(s):f&&v?B(e):e;return M(s,O),P=!0,a!==void 0&&(a=O),e}return U&&P||(T.f&h)!==0?s.v:g(s)})}export{K as p};

View File

@@ -0,0 +1 @@
import{a3 as d,a4 as g,a5 as c,U as m,a6 as i,a7 as b,x as p,a8 as v,K as h,a9 as k}from"./a9_IrBSG.js";function y(t=!1){const a=d,e=a.l.u;if(!e)return;let f=()=>v(a.s);if(t){let n=0,s={};const _=h(()=>{let l=!1;const r=a.s;for(const o in r)r[o]!==s[o]&&(s[o]=r[o],l=!0);return l&&n++,n});f=()=>p(_)}e.b.length&&g(()=>{u(a,f),i(e.b)}),c(()=>{const n=m(()=>e.m.map(b));return()=>{for(const s of n)typeof s=="function"&&s()}}),e.a.length&&c(()=>{u(a,f),i(e.a)})}function u(t,a){if(t.l.s)for(const e of t.l.s)p(e);a()}k();export{y as i};

View File

@@ -1 +1 @@
import{h as f,N as n,q as d,e as v,L as h,g as u,f as g}from"./DvA19Lby.js";const l=Symbol("is custom element"),A=Symbol("is html");function y(r){if(f){var s=!1,e=()=>{if(!s){if(s=!0,r.hasAttribute("value")){var t=r.value;_(r,"value",null),r.value=t}if(r.hasAttribute("checked")){var o=r.checked;_(r,"checked",null),r.checked=o}}};r.__on_r=e,d(e),v()}}function _(r,s,e,t){var o=m(r);f&&(o[s]=r.getAttribute(s),s==="src"||s==="srcset"||s==="href"&&r.nodeName==="LINK")||o[s]!==(o[s]=e)&&(s==="loading"&&(r[h]=e),e==null?r.removeAttribute(s):typeof e!="string"&&p(r).includes(s)?r[s]=e:r.setAttribute(s,e))}function m(r){return r.__attributes??={[l]:r.nodeName.includes("-"),[A]:r.namespaceURI===n}}var c=new Map;function p(r){var s=r.getAttribute("is")||r.nodeName,e=c.get(s);if(e)return e;c.set(s,e=[]);for(var t,o=r,i=Element.prototype;i!==o;){t=g(o);for(var a in t)t[a].set&&e.push(a);o=u(o)}return e}export{y as r,_ as s};
import{h as f,N as n,q as d,e as v,L as h,g as u,f as g}from"./a9_IrBSG.js";const l=Symbol("is custom element"),A=Symbol("is html");function y(r){if(f){var s=!1,e=()=>{if(!s){if(s=!0,r.hasAttribute("value")){var t=r.value;_(r,"value",null),r.value=t}if(r.hasAttribute("checked")){var o=r.checked;_(r,"checked",null),r.checked=o}}};r.__on_r=e,d(e),v()}}function _(r,s,e,t){var o=m(r);f&&(o[s]=r.getAttribute(s),s==="src"||s==="srcset"||s==="href"&&r.nodeName==="LINK")||o[s]!==(o[s]=e)&&(s==="loading"&&(r[h]=e),e==null?r.removeAttribute(s):typeof e!="string"&&p(r).includes(s)?r[s]=e:r.setAttribute(s,e))}function m(r){return r.__attributes??={[l]:r.nodeName.includes("-"),[A]:r.namespaceURI===n}}var c=new Map;function p(r){var s=r.getAttribute("is")||r.nodeName,e=c.get(s);if(e)return e;c.set(s,e=[]);for(var t,o=r,i=Element.prototype;i!==o;){t=g(o);for(var a in t)t[a].set&&e.push(a);o=u(o)}return e}export{y as r,_ as s};

View File

@@ -0,0 +1 @@
import{I as b,J as L,P as D,x as g,K as Y,M as m,O as B,F as M,Q as U,R as x,S as N,T as h,U as y,V as Z,W as $,X as q,Y as w,Z as z,_ as C}from"./a9_IrBSG.js";let S=!1;function F(r){var n=S;try{return S=!1,[r(),S]}finally{S=n}}function J(r,n,t,d){var f=!Z||(t&$)!==0,v=(t&h)!==0,R=(t&w)!==0,a=d,c=!0,I=()=>(c&&(c=!1,a=R?y(d):d),a),u;if(v){var E=z in r||C in r;u=b(r,n)?.set??(E&&n in r?e=>r[n]=e:void 0)}var _,o=!1;v?[_,o]=F(()=>r[n]):_=r[n],_===void 0&&d!==void 0&&(_=I(),u&&(f&&L(),u(_)));var i;if(f?i=()=>{var e=r[n];return e===void 0?I():(c=!0,e)}:i=()=>{var e=r[n];return e!==void 0&&(a=void 0),e===void 0?a:e},f&&(t&D)===0)return i;if(u){var A=r.$$legacy;return(function(e,l){return arguments.length>0?((!f||!l||A||o)&&u(l?i():e),e):i()})}var P=!1,s=((t&q)!==0?Y:m)(()=>(P=!1,i()));v&&g(s);var T=x;return(function(e,l){if(arguments.length>0){const O=l?g(s):f&&v?B(e):e;return M(s,O),P=!0,a!==void 0&&(a=O),e}return U&&P||(T.f&N)!==0?s.v:g(s)})}export{J as p};

View File

@@ -1 +0,0 @@
import{Z as d,_ as g,$ as c,S as m,a0 as i,a1 as b,v as p,a2 as v,I as h,a3 as k}from"./DvA19Lby.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let f=()=>v(s.s);if(n){let a=0,t={};const _=h(()=>{let l=!1;const r=s.s;for(const o in r)r[o]!==t[o]&&(t[o]=r[o],l=!0);return l&&a++,a});f=()=>p(_)}e.b.length&&g(()=>{u(s,f),i(e.b)}),c(()=>{const a=m(()=>e.m.map(b));return()=>{for(const t of a)typeof t=="function"&&t()}}),e.a.length&&c(()=>{u(s,f),i(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}k();export{x as i};

View File

@@ -1 +1 @@
import{l as i,a9 as f,aa as v,O as _,ab as E,ac as p,h as d,n as o,ad as h,a as T,ae as N,c as g}from"./DvA19Lby.js";function y(r){var n=document.createElement("template");return n.innerHTML=r.replaceAll("<!>","<!---->"),n.content}function t(r,n){var e=_;e.nodes_start===null&&(e.nodes_start=r,e.nodes_end=n)}function A(r,n){var e=(n&E)!==0,u=(n&p)!==0,a,c=!r.startsWith("<!>");return()=>{if(d)return t(o,null),o;a===void 0&&(a=y(c?r:"<!>"+r),e||(a=f(a)));var s=u||v?document.importNode(a,!0):a.cloneNode(!0);if(e){var l=f(s),m=s.lastChild;t(l,m)}else t(s,s);return s}}function M(r=""){if(!d){var n=i(r+"");return t(n,n),n}var e=o;return e.nodeType!==N&&(e.before(e=i()),g(e)),t(e,e),e}function O(){if(d)return t(o,null),o;var r=document.createDocumentFragment(),n=document.createComment(""),e=i();return r.append(n,e),t(n,e),r}function b(r,n){if(d){var e=_;((e.f&h)===0||e.nodes_end===null)&&(e.nodes_end=o),T();return}r!==null&&r.before(n)}const w="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(w);export{b as a,t as b,O as c,A as f,M as t};
import{l as i,ab as f,ac as v,R as _,ad as E,ae as p,h as d,n as o,af as h,a as T,ag as g,c as N}from"./a9_IrBSG.js";function y(r){var n=document.createElement("template");return n.innerHTML=r.replaceAll("<!>","<!---->"),n.content}function t(r,n){var e=_;e.nodes_start===null&&(e.nodes_start=r,e.nodes_end=n)}function A(r,n){var e=(n&E)!==0,u=(n&p)!==0,a,c=!r.startsWith("<!>");return()=>{if(d)return t(o,null),o;a===void 0&&(a=y(c?r:"<!>"+r),e||(a=f(a)));var s=u||v?document.importNode(a,!0):a.cloneNode(!0);if(e){var l=f(s),m=s.lastChild;t(l,m)}else t(s,s);return s}}function M(r=""){if(!d){var n=i(r+"");return t(n,n),n}var e=o;return e.nodeType!==g&&(e.before(e=i()),N(e)),t(e,e),e}function R(){if(d)return t(o,null),o;var r=document.createDocumentFragment(),n=document.createComment(""),e=i();return r.append(n,e),t(n,e),r}function b(r,n){if(d){var e=_;((e.f&h)===0||e.nodes_end===null)&&(e.nodes_end=o),T();return}r!==null&&r.before(n)}const w="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(w);export{b as a,t as b,R as c,A as f,M as t};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
import{l as o,a as r}from"../chunks/B0dV4Hxy.js";export{o as load_css,r as start};

View File

@@ -1 +0,0 @@
import{l as o,a as r}from"../chunks/6QStQzpW.js";export{o as load_css,r as start};

View File

@@ -1 +1 @@
import{c as m,a as i,f as u}from"../chunks/CSHBicSK.js";import{b as d,E as g,l as v,af as _,h as r,a9 as y,ag as h,ah as o,d as f,c,n as w,a4 as E,D as b}from"../chunks/DvA19Lby.js";import{B as T}from"../chunks/BGXhwtVx.js";import{s as x}from"../chunks/C7arfCkg.js";function M(l,s,...a){var n=new T(l);d(()=>{const t=s()??null;n.ensure(t,t&&(e=>t(e,...a)))},g)}function A(l,s){let a=null,n=r;var t;if(r){a=w;for(var e=y(document.head);e!==null&&(e.nodeType!==h||e.data!==l);)e=o(e);if(e===null)f(!1);else{var p=o(e);e.remove(),c(p)}}r||(t=document.head.appendChild(v()));try{d(()=>s(t),_)}finally{n&&(f(!0),c(a))}}const C=!1,F=!0,S=Object.freeze(Object.defineProperty({__proto__:null,prerender:F,ssr:C},Symbol.toStringTag,{value:"Module"})),N="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='107'%20height='128'%20viewBox='0%200%20107%20128'%3e%3ctitle%3esvelte-logo%3c/title%3e%3cpath%20d='M94.157%2022.819c-10.4-14.885-30.94-19.297-45.792-9.835L22.282%2029.608A29.92%2029.92%200%200%200%208.764%2049.65a31.5%2031.5%200%200%200%203.108%2020.231%2030%2030%200%200%200-4.477%2011.183%2031.9%2031.9%200%200%200%205.448%2024.116c10.402%2014.887%2030.942%2019.297%2045.791%209.835l26.083-16.624A29.92%2029.92%200%200%200%2098.235%2078.35a31.53%2031.53%200%200%200-3.105-20.232%2030%2030%200%200%200%204.474-11.182%2031.88%2031.88%200%200%200-5.447-24.116'%20style='fill:%23ff3e00'/%3e%3cpath%20d='M45.817%20106.582a20.72%2020.72%200%200%201-22.237-8.243%2019.17%2019.17%200%200%201-3.277-14.503%2018%2018%200%200%201%20.624-2.435l.49-1.498%201.337.981a33.6%2033.6%200%200%200%2010.203%205.098l.97.294-.09.968a5.85%205.85%200%200%200%201.052%203.878%206.24%206.24%200%200%200%206.695%202.485%205.8%205.8%200%200%200%201.603-.704L69.27%2076.28a5.43%205.43%200%200%200%202.45-3.631%205.8%205.8%200%200%200-.987-4.371%206.24%206.24%200%200%200-6.698-2.487%205.7%205.7%200%200%200-1.6.704l-9.953%206.345a19%2019%200%200%201-5.296%202.326%2020.72%2020.72%200%200%201-22.237-8.243%2019.17%2019.17%200%200%201-3.277-14.502%2017.99%2017.99%200%200%201%208.13-12.052l26.081-16.623a19%2019%200%200%201%205.3-2.329%2020.72%2020.72%200%200%201%2022.237%208.243%2019.17%2019.17%200%200%201%203.277%2014.503%2018%2018%200%200%201-.624%202.435l-.49%201.498-1.337-.98a33.6%2033.6%200%200%200-10.203-5.1l-.97-.294.09-.968a5.86%205.86%200%200%200-1.052-3.878%206.24%206.24%200%200%200-6.696-2.485%205.8%205.8%200%200%200-1.602.704L37.73%2051.72a5.42%205.42%200%200%200-2.449%203.63%205.79%205.79%200%200%200%20.986%204.372%206.24%206.24%200%200%200%206.698%202.486%205.8%205.8%200%200%200%201.602-.704l9.952-6.342a19%2019%200%200%201%205.295-2.328%2020.72%2020.72%200%200%201%2022.237%208.242%2019.17%2019.17%200%200%201%203.277%2014.503%2018%2018%200%200%201-8.13%2012.053l-26.081%2016.622a19%2019%200%200%201-5.3%202.328'%20style='fill:%23fff'/%3e%3c/svg%3e";var O=u('<link rel="icon"/>');function j(l,s){var a=m();A("12qhfyh",t=>{var e=O();b(()=>x(e,"href",N)),i(t,e)});var n=E(a);M(n,()=>s.children),i(l,a)}export{j as component,S as universal};
import{c as m,a as i,f as u}from"../chunks/wrmqo5Xl.js";import{b as d,E as v,l as _,ah as g,h as r,ab as y,ai as h,aj as o,d as f,c,n as b,aa as w,G as E}from"../chunks/a9_IrBSG.js";import{B as T}from"../chunks/DPjh4P1x.js";import{s as x}from"../chunks/LnFm25i4.js";function M(l,s,...a){var n=new T(l);d(()=>{const t=s()??null;n.ensure(t,t&&(e=>t(e,...a)))},v)}function A(l,s){let a=null,n=r;var t;if(r){a=b;for(var e=y(document.head);e!==null&&(e.nodeType!==h||e.data!==l);)e=o(e);if(e===null)f(!1);else{var p=o(e);e.remove(),c(p)}}r||(t=document.head.appendChild(_()));try{d(()=>s(t),g)}finally{n&&(f(!0),c(a))}}const C=!1,F=!0,S=Object.freeze(Object.defineProperty({__proto__:null,prerender:F,ssr:C},Symbol.toStringTag,{value:"Module"})),N="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='107'%20height='128'%20viewBox='0%200%20107%20128'%3e%3ctitle%3esvelte-logo%3c/title%3e%3cpath%20d='M94.157%2022.819c-10.4-14.885-30.94-19.297-45.792-9.835L22.282%2029.608A29.92%2029.92%200%200%200%208.764%2049.65a31.5%2031.5%200%200%200%203.108%2020.231%2030%2030%200%200%200-4.477%2011.183%2031.9%2031.9%200%200%200%205.448%2024.116c10.402%2014.887%2030.942%2019.297%2045.791%209.835l26.083-16.624A29.92%2029.92%200%200%200%2098.235%2078.35a31.53%2031.53%200%200%200-3.105-20.232%2030%2030%200%200%200%204.474-11.182%2031.88%2031.88%200%200%200-5.447-24.116'%20style='fill:%23ff3e00'/%3e%3cpath%20d='M45.817%20106.582a20.72%2020.72%200%200%201-22.237-8.243%2019.17%2019.17%200%200%201-3.277-14.503%2018%2018%200%200%201%20.624-2.435l.49-1.498%201.337.981a33.6%2033.6%200%200%200%2010.203%205.098l.97.294-.09.968a5.85%205.85%200%200%200%201.052%203.878%206.24%206.24%200%200%200%206.695%202.485%205.8%205.8%200%200%200%201.603-.704L69.27%2076.28a5.43%205.43%200%200%200%202.45-3.631%205.8%205.8%200%200%200-.987-4.371%206.24%206.24%200%200%200-6.698-2.487%205.7%205.7%200%200%200-1.6.704l-9.953%206.345a19%2019%200%200%201-5.296%202.326%2020.72%2020.72%200%200%201-22.237-8.243%2019.17%2019.17%200%200%201-3.277-14.502%2017.99%2017.99%200%200%201%208.13-12.052l26.081-16.623a19%2019%200%200%201%205.3-2.329%2020.72%2020.72%200%200%201%2022.237%208.243%2019.17%2019.17%200%200%201%203.277%2014.503%2018%2018%200%200%201-.624%202.435l-.49%201.498-1.337-.98a33.6%2033.6%200%200%200-10.203-5.1l-.97-.294.09-.968a5.86%205.86%200%200%200-1.052-3.878%206.24%206.24%200%200%200-6.696-2.485%205.8%205.8%200%200%200-1.602.704L37.73%2051.72a5.42%205.42%200%200%200-2.449%203.63%205.79%205.79%200%200%200%20.986%204.372%206.24%206.24%200%200%200%206.698%202.486%205.8%205.8%200%200%200%201.602-.704l9.952-6.342a19%2019%200%200%201%205.295-2.328%2020.72%2020.72%200%200%201%2022.237%208.242%2019.17%2019.17%200%200%201%203.277%2014.503%2018%2018%200%200%201-8.13%2012.053l-26.081%2016.622a19%2019%200%200%201-5.3%202.328'%20style='fill:%23fff'/%3e%3c/svg%3e";var O=u('<link rel="icon"/>');function D(l,s){var a=m();A("12qhfyh",t=>{var e=O();E(()=>x(e,"href",N)),i(t,e)});var n=w(a);M(n,()=>s.children),i(l,a)}export{D as component,S as universal};

View File

@@ -0,0 +1 @@
import{f as u,a as h}from"../chunks/wrmqo5Xl.js";import{i as g}from"../chunks/FF6OmFSc.js";import{w as l,aa as v,G as d,y as _,A as s,B as e,z as x}from"../chunks/a9_IrBSG.js";import{s as o}from"../chunks/CMb69aT-.js";import{s as $,p}from"../chunks/B0dV4Hxy.js";const k={get error(){return p.error},get status(){return p.status}};$.updated.check;const m=k;var b=u("<h1> </h1> <p> </p>",1);function E(i,f){l(f,!1),g();var t=b(),r=v(t),n=s(r,!0);e(r);var a=x(r,2),c=s(a,!0);e(a),d(()=>{o(n,m.status),o(c,m.error?.message)}),h(i,t),_()}export{E as component};

View File

@@ -1 +0,0 @@
import{f as u,a as h}from"../chunks/CSHBicSK.js";import{i as g}from"../chunks/cSLH0kY1.js";import{u as l,a4 as v,D as d,w as x,y as s,z as e,x as _}from"../chunks/DvA19Lby.js";import{s as o}from"../chunks/DZOPhXt6.js";import{s as $,p}from"../chunks/6QStQzpW.js";const k={get error(){return p.error},get status(){return p.status}};$.updated.check;const m=k;var b=u("<h1> </h1> <p> </p>",1);function j(i,f){l(f,!1),g();var t=b(),r=v(t),n=s(r,!0);e(r);var a=_(r,2),c=s(a,!0);e(a),d(()=>{o(n,m.status),o(c,m.error?.message)}),h(i,t),x()}export{j as component};

View File

@@ -1 +1 @@
import{f as w,a as d}from"../chunks/CSHBicSK.js";import{i as P}from"../chunks/cSLH0kY1.js";import{u as S,v as t,w as q,x as r,y as o,z as i,A as v,B as g,C as b,D as B}from"../chunks/DvA19Lby.js";import{e as O,s as T}from"../chunks/DZOPhXt6.js";import{i as j}from"../chunks/BwmlK8l3.js";import{r as h}from"../chunks/C7arfCkg.js";import{b as _,A as z}from"../chunks/BxUMJXpY.js";import{g as D}from"../chunks/6QStQzpW.js";var E=w('<p class="error svelte-1uha8ag"> </p>'),I=w('<form class="login svelte-1uha8ag"><h2>Login</h2> <label class="svelte-1uha8ag">User <input type="text" required/></label> <label class="svelte-1uha8ag">Password <input type="password" required/></label> <button>Login</button> <!></form>');function M(y,x){S(x,!1);let s=v(""),e=v({username:"",password:""});async function A(){try{const a=await fetch(`${z}/login`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(t(e))});if(!a.ok){b(s,await a.text());return}D("/shadowrun")}catch(a){b(s,a.message)}}P();var n=I(),l=r(o(n),2),u=r(o(l));h(u),i(l);var p=r(l,2),f=r(o(p));h(f),i(p);var c=r(p,2),k=r(c,2);{var C=a=>{var m=E(),L=o(m,!0);i(m),B(()=>T(L,t(s))),d(a,m)};j(k,a=>{t(s)&&a(C)})}i(n),_(u,()=>t(e).username,a=>g(e,t(e).username=a)),_(f,()=>t(e).password,a=>g(e,t(e).password=a)),O("click",c,A),d(y,n),q()}export{M as component};
import{f as w,a as d}from"../chunks/wrmqo5Xl.js";import{i as P}from"../chunks/FF6OmFSc.js";import{w as S,x as t,y as q,z as r,A as o,B as i,C as v,D as g,F as b,G as B}from"../chunks/a9_IrBSG.js";import{e as O,s as T}from"../chunks/CMb69aT-.js";import{i as j}from"../chunks/DhE1ouZL.js";import{r as h}from"../chunks/LnFm25i4.js";import{b as _,A as z}from"../chunks/BePdLpFV.js";import{g as D}from"../chunks/B0dV4Hxy.js";var E=w('<p class="error svelte-1uha8ag"> </p>'),F=w('<form class="login svelte-1uha8ag"><h2>Login</h2> <label class="svelte-1uha8ag">User <input type="text" required/></label> <label class="svelte-1uha8ag">Password <input type="password" required/></label> <button>Login</button> <!></form>');function M(y,x){S(x,!1);let s=v(""),e=v({username:"",password:""});async function A(){try{const a=await fetch(`${z}/login`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(t(e))});if(!a.ok){b(s,await a.text());return}D("/shadowrun")}catch(a){b(s,a.message)}}P();var n=F(),l=r(o(n),2),u=r(o(l));h(u),i(l);var p=r(l,2),f=r(o(p));h(f),i(p);var c=r(p,2),k=r(c,2);{var C=a=>{var m=E(),L=o(m,!0);i(m),B(()=>T(L,t(s))),d(a,m)};j(k,a=>{t(s)&&a(C)})}i(n),_(u,()=>t(e).username,a=>g(e,t(e).username=a)),_(f,()=>t(e).password,a=>g(e,t(e).password=a)),O("click",c,A),d(y,n),q()}export{M as component};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long