From 4d00936719158d9f48a68a4cbaff56ef4d545928 Mon Sep 17 00:00:00 2001 From: Lukas Forsberg Date: Mon, 23 Feb 2026 15:19:15 +0100 Subject: [PATCH] Fixed first issue, added release script --- .../chunks/{niSfElle.js => BEXiALSO.js} | 2 +- .../{app.CJZl1xEf.js => app.fM2IB28Y.js} | 4 +- .../_app/immutable/entry/start.BnAWgAKt.js | 1 - .../_app/immutable/entry/start.DL8ghe8B.js | 1 + .../nodes/{1.CqkjnNCI.js => 1.WTl2-Tto.js} | 2 +- .../nodes/{2.CffNvu5R.js => 2.ClPVIoAO.js} | 2 +- .../build/_app/immutable/nodes/3.BxcTFNGX.js | 1 + .../build/_app/immutable/nodes/3.Cbh4JYE_.js | 1 - frontend/build/_app/version.json | 2 +- frontend/build/index.html | 12 +-- frontend/build/settings.json | 5 -- frontend/build/shadowrun.html | 12 +-- frontend/src/lib/shadorwun/character.svelte | 80 +++++++++++++++++-- frontend/src/lib/shadorwun/defaults.svelte | 22 ++++- release.sh | 29 +++++++ source/shadowrun/ShadowrunDb.hpp | 4 +- 16 files changed, 142 insertions(+), 38 deletions(-) rename frontend/build/_app/immutable/chunks/{niSfElle.js => BEXiALSO.js} (51%) rename frontend/build/_app/immutable/entry/{app.CJZl1xEf.js => app.fM2IB28Y.js} (92%) delete mode 100644 frontend/build/_app/immutable/entry/start.BnAWgAKt.js create mode 100644 frontend/build/_app/immutable/entry/start.DL8ghe8B.js rename frontend/build/_app/immutable/nodes/{1.CqkjnNCI.js => 1.WTl2-Tto.js} (77%) rename frontend/build/_app/immutable/nodes/{2.CffNvu5R.js => 2.ClPVIoAO.js} (95%) create mode 100644 frontend/build/_app/immutable/nodes/3.BxcTFNGX.js delete mode 100644 frontend/build/_app/immutable/nodes/3.Cbh4JYE_.js delete mode 100644 frontend/build/settings.json create mode 100755 release.sh diff --git a/frontend/build/_app/immutable/chunks/niSfElle.js b/frontend/build/_app/immutable/chunks/BEXiALSO.js similarity index 51% rename from frontend/build/_app/immutable/chunks/niSfElle.js rename to frontend/build/_app/immutable/chunks/BEXiALSO.js index cb2ae8e..32c8cec 100644 --- a/frontend/build/_app/immutable/chunks/niSfElle.js +++ b/frontend/build/_app/immutable/chunks/BEXiALSO.js @@ -1 +1 @@ -import{b3 as pe,b4 as mt,aM as U,A as T,J as I,t as ee,b5 as Ve,b6 as wt}from"./DxMC-E2z.js";import{o as Be}from"./CgHyU30y.js";const V=[];function Ee(e,t=pe){let n=null;const r=new Set;function a(s){if(mt(e,s)&&(e=s,n)){const c=!V.length;for(const l of r)l[1](),V.push(l,e);if(c){for(let l=0;l{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:i,subscribe:o}}class Re{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class xe{constructor(t,n){this.status=t,this.location=n}}class Le extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function vt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function yt(e){return e.split("%25").map(decodeURI).join("%25")}function bt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ge({href:e}){return e.split("#")[0]}function kt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function St(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&F.delete(Ae(e)),Et(e,t));const F=new Map;function Rt(e,t){const n=Ae(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...i}=JSON.parse(r.textContent);const o=r.getAttribute("data-ttl");return o&&F.set(n,{body:a,init:i,ttl:1e3*Number(o)}),r.getAttribute("data-b64")!==null&&(a=St(a)),Promise.resolve(new Response(a,i))}return window.fetch(e,t)}function xt(e,t,n){if(F.size>0){const r=Ae(e,n),a=F.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const o=r.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return _e(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return _e(String.fromCharCode(...c.slice(2).split("-").map(m=>parseInt(m,16))));const f=Lt.exec(c),[,h,w,u,g]=f;return t.push({name:u,matcher:g,optional:!!h,rest:!!w,chained:w?l===1&&o[0]==="":!1}),w?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return _e(c)}).join("")}).join("")}/?$`),params:t}}function Ut(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Tt(e){return e.slice(1).split("/").filter(Ut)}function It(e,t,n){const r={},a=e.slice(1),i=a.filter(s=>s!==void 0);let o=0;for(let s=0;sf).join("/"),o=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const f=t[s+1],h=a[s+1];f&&!f.rest&&f.optional&&h&&c.chained&&(o=0),!f&&!h&&Object.keys(r).length===i.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return r}function _e(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ot({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([s,[c,l,f]])=>{const{pattern:h,params:w}=At(s),u={id:s,exec:g=>{const m=h.exec(g);if(m)return It(m,w,r)},errors:[1,...f||[]].map(g=>e[g]),layouts:[0,...l||[]].map(o),leaf:i(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function o(s){return s===void 0?s:[a.has(s),e[s]]}}function Je(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ke(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const L=globalThis.__sveltekit_q0ydb3?.base??"",$t=globalThis.__sveltekit_q0ydb3?.assets??L??"",Pt="1771789536194",He="sveltekit:snapshot",Xe="sveltekit:scroll",Qe="sveltekit:states",Ct="sveltekit:pageurl",K="sveltekit:history",W="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},le=location.origin;function Ue(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function ue(){return{x:pageXOffset,y:pageYOffset}}function B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Me={...j,"":j.hover};function Ze(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function et(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ze(e)}}function ve(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const s=location.hash.split("#")[1]||"/";r.hash=`#${s}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,i=!r||!!a||fe(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=r?.origin===le&&e.hasAttribute("download");return{url:r,external:i,target:a,download:o}}function te(e){let t=null,n=null,r=null,a=null,i=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=B(s,"preload-code")),a===null&&(a=B(s,"preload-data")),t===null&&(t=B(s,"keepfocus")),n===null&&(n=B(s,"noscroll")),i===null&&(i=B(s,"reload")),o===null&&(o=B(s,"replacestate")),s=Ze(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Me[r??"off"],preload_data:Me[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(o)}}function ze(e){const t=Ee(e);let n=!0;function r(){n=!0,t.update(o=>o)}function a(o){n=!1,t.set(o)}function i(o){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&o(s=c)})}return{notify:r,set:a,subscribe:i}}const tt={v:()=>{}};function jt(){const{set:e,subscribe:t}=Ee(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${$t}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const o=(await a.json()).version!==Pt;return o&&(e(!0),tt.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:r}}function fe(e,t,n){return e.origin!==le||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function ln(e){}const nt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...nt];const qt=new Set([...nt]);[...qt];function Nt(e){return e.filter(t=>t!=null)}function Te(e){return e instanceof Re||e instanceof Le?e.status:500}function Dt(e){return e instanceof Le?e.text:"Internal Error"}let k,Y,me;const Vt=Be.toString().includes("$$")||/function \w+\(\) \{\}/.test(Be.toString());Vt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},Y={current:null},me={current:!1}):(k=new class{#e=U({});get data(){return T(this.#e)}set data(t){I(this.#e,t)}#t=U(null);get form(){return T(this.#t)}set form(t){I(this.#t,t)}#n=U(null);get error(){return T(this.#n)}set error(t){I(this.#n,t)}#r=U({});get params(){return T(this.#r)}set params(t){I(this.#r,t)}#a=U({id:null});get route(){return T(this.#a)}set route(t){I(this.#a,t)}#o=U({});get state(){return T(this.#o)}set state(t){I(this.#o,t)}#s=U(-1);get status(){return T(this.#s)}set status(t){I(this.#s,t)}#i=U(new URL("https://example.com"));get url(){return T(this.#i)}set url(t){I(this.#i,t)}},Y=new class{#e=U(null);get current(){return T(this.#e)}set current(t){I(this.#e,t)}},me=new class{#e=U(!1);get current(){return T(this.#e)}set current(t){I(this.#e,t)}},tt.v=()=>me.current=!0);function rt(e){Object.assign(k,e)}const Bt=new Set(["icon","shortcut icon","apple-touch-icon"]),N=Je(Xe)??{},J=Je(He)??{},C={url:ze({}),page:ze({}),navigating:Ee(null),updated:jt()};function Ie(e){N[e]=ue()}function Kt(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;J[n];)delete J[n],n+=1}function H(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function at(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}function Fe(){}let Oe,ye,ne,O,be,v;const re=[],ae=[];let R=null;function ke(){R?.fork?.then(e=>e?.discard()),R=null}const Z=new Map,ot=new Set,Mt=new Set,G=new Set;let _={branch:[],error:null,url:null},st=!1,oe=!1,Ge=!0,X=!1,z=!1,it=!1,$e=!1,Pe,y,x,q;const se=new Set,We=new Map;async function hn(e,t,n){globalThis.__sveltekit_q0ydb3?.data&&globalThis.__sveltekit_q0ydb3.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Oe=Ot(e),O=document.documentElement,be=t,ye=e.nodes[0],ne=e.nodes[1],ye(),ne(),y=history.state?.[K],x=history.state?.[W],y||(y=x=Date.now(),history.replaceState({...history.state,[K]:y,[W]:x},""));const r=N[y];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await nn(be,n)):(await M({type:"enter",url:Ue(v.hash?on(new URL(location.href)):location.href),replace_state:!0}),a()),tn()}function zt(){re.length=0,$e=!1}function ct(e){ae.some(t=>t?.snapshot)&&(J[e]=ae.map(t=>t?.snapshot?.capture()))}function lt(e){J[e]?.forEach((t,n)=>{ae[n]?.snapshot?.restore(t)})}function Ye(){Ie(y),Ke(Xe,N),ct(x),Ke(He,J)}async function ut(e,t,n,r){let a;t.invalidateAll&&ke(),await M({type:"goto",url:Ue(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&($e=!0,a=[...We.keys()]),t.invalidate&&t.invalidate.forEach(en)}}),t.invalidateAll&&ee().then(ee).then(()=>{We.forEach(({resource:i},o)=>{a?.includes(o)&&i.refresh?.()})})}async function Ft(e){if(e.id!==R?.id){ke();const t={};if(se.add(t),R={id:e.id,token:t,promise:dt({...e,preload:t}).then(n=>(se.delete(t),n.type==="loaded"&&n.state.error&&ke(),n)),fork:null},Ve){const n=R;n.fork=n.promise.then(r=>{if(n===R&&r.type==="loaded")try{return Ve(()=>{Pe.$set(r.props),rt(r.props.page)})}catch{}return null})}}return R.promise}async function we(e){const t=(await de(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}async function ft(e,t,n){_=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(k,e.props.page),Pe=new v.root({target:t,props:{...e.props,stores:C,components:ae},hydrate:n,sync:!1}),await Promise.resolve(),lt(x),n){const a={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};G.forEach(i=>i(a))}oe=!0}function ie({url:e,params:t,branch:n,status:r,error:a,route:i,form:o}){let s="never";if(L&&(e.pathname===L||e.pathname===L+"/"))s="always";else for(const u of n)u?.slash!==void 0&&(s=u.slash);e.pathname=vt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:i},props:{constructors:Nt(n).map(u=>u.node.component),page:De(k)}};o!==void 0&&(c.props.form=o);let l={},f=!k,h=0;for(let u=0;us(new URL(o))))return!0;return!1}function je(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Yt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),i=t.searchParams.getAll(r);a.every(o=>i.includes(o))&&i.every(o=>a.includes(o))&&n.delete(r)}return n}function Jt({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:De(k),constructors:[]}}}async function dt({id:e,invalidating:t,url:n,params:r,route:a,preload:i}){if(R?.id===e)return se.delete(R.token),R.promise;const{errors:o,layouts:s,leaf:c}=a,l=[...s,c];o.forEach(p=>p?.().catch(()=>{})),l.forEach(p=>p?.[1]().catch(()=>{}));const f=_.url?e!==ce(_.url):!1,h=_.route?a.id!==_.route.id:!1,w=Yt(_.url,n);let u=!1;const g=l.map(async(p,d)=>{if(!p)return;const S=_.branch[d];return p[1]===S?.loader&&!Wt(u,h,f,w,S.universal?.uses,r)?S:(u=!0,Ce({loader:p[1],url:n,params:r,route:a,parent:async()=>{const $={};for(let A=0;A{});const m=[];for(let p=0;pPromise.resolve({}),server_data_node:je(i)}),s={node:await ne(),loader:ne,universal:null,server:null,data:null};return ie({url:n,params:a,branch:[o,s],status:e,error:t,route:null})}catch(o){if(o instanceof xe)return ut(new URL(o.location,location.href),{},0);throw o}}async function Xt(e){const t=e.href;if(Z.has(t))return Z.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(i,o)=>Gt(i,o,e).promise})??e;if(typeof a=="string"){const i=new URL(e);v.hash?i.hash=a:i.pathname=a,a=i}return a})();Z.set(t,r),n=await r}catch{Z.delete(t);return}return n}async function de(e,t){if(e&&!fe(e,L,v.hash)){const n=await Xt(e);if(!n)return;const r=Qt(n);for(const a of Oe){const i=a.exec(r);if(i)return{id:ce(e),invalidating:t,route:a,params:bt(i),url:e}}}}function Qt(e){return yt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function ce(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ht({url:e,type:t,intent:n,delta:r,event:a}){let i=!1;const o=Ne(_,n,e,t);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const s={...o.navigation,cancel:()=>{i=!0,o.reject(new Error("navigation cancelled"))}};return X||ot.forEach(c=>c(s)),i?null:o}async function M({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:o={},redirect_count:s=0,nav_token:c={},accept:l=Fe,block:f=Fe,event:h}){const w=q;q=c;const u=await de(t,!1),g=e==="enter"?Ne(_,u,t,e):ht({url:t,type:e,delta:n?.delta,intent:u,event:h});if(!g){f(),q===c&&(q=w);return}const m=y,p=x;l(),X=!0,oe&&g.navigation.type!=="enter"&&C.navigating.set(Y.current=g.navigation);let d=u&&await dt(u);if(!d){if(fe(t,L,v.hash))return await H(t,i);d=await pt(t,{id:null},await Q(new Le(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,q!==c)return g.reject(new Error("navigation aborted")),!1;if(d.type==="redirect"){if(s<20){await M({type:e,url:new URL(d.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:i,state:o,redirect_count:s+1,nav_token:c}),g.fulfil(void 0);return}d=await qe({status:500,error:await Q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else d.props.page.status>=400&&await C.updated.check()&&(await at(),await H(t,i));if(zt(),Ie(m),ct(p),d.props.page.url.pathname!==t.pathname&&(t.pathname=d.props.page.url.pathname),o=n?n.state:o,!n){const b=i?0:1,D={[K]:y+=b,[W]:x+=b,[Qe]:o};(i?history.replaceState:history.pushState).call(history,D,"",t),i||Kt(y,x)}const S=R?.fork;R=null,d.props.page.state=o;let E;if(oe){const b=(await Promise.all(Array.from(Mt,P=>P(g.navigation)))).filter(P=>typeof P=="function");if(b.length>0){let P=function(){b.forEach(he=>{G.delete(he)})};b.push(P),b.forEach(he=>{G.add(he)})}_=d.state,d.props.page&&(d.props.page.url=t);const D=S&&await S;D?E=D.commit():(Pe.$set(d.props),rt(d.props.page),E=wt?.()),it=!0}else await ft(d,be,!1);const{activeElement:$}=document;await E,await ee(),await ee();let A=n?n.scroll:a?ue():null;if(Ge){const b=t.hash&&document.getElementById(gt(t));if(A)scrollTo(A.x,A.y);else if(b){b.scrollIntoView();const{top:D,left:P}=b.getBoundingClientRect();A={x:pageXOffset+P,y:pageYOffset+D}}else scrollTo(0,0)}const _t=document.activeElement!==$&&document.activeElement!==document.body;!r&&!_t&&an(t,A),Ge=!0,d.props.page&&Object.assign(k,d.props.page),X=!1,e==="popstate"&<(x),g.fulfil(void 0),G.forEach(b=>b(g.navigation)),C.navigating.set(Y.current=null)}async function pt(e,t,n,r,a){return e.origin===le&&e.pathname===location.pathname&&!st?await qe({status:r,error:n,url:e,route:t}):await H(e,a)}function Zt(){let e,t,n;O.addEventListener("mousemove",s=>{const c=s.target;clearTimeout(e),e=setTimeout(()=>{i(c,j.hover)},20)});function r(s){s.defaultPrevented||i(s.composedPath()[0],j.tap)}O.addEventListener("mousedown",r),O.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(s=>{for(const c of s)c.isIntersecting&&(we(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function i(s,c){const l=et(s,O),f=l===t&&c>=n;if(!l||f)return;const{url:h,external:w,download:u}=ve(l,L,v.hash);if(w||u)return;const g=te(l),m=h&&ce(_.url)===ce(h);if(!(g.reload||m))if(c<=g.preload_data){t=l,n=j.tap;const p=await de(h,!1);if(!p)return;Ft(p)}else c<=g.preload_code&&(t=l,n=c,we(h))}function o(){a.disconnect();for(const s of O.querySelectorAll("a")){const{url:c,external:l,download:f}=ve(s,L,v.hash);if(l||f)continue;const h=te(s);h.reload||(h.preload_code===j.viewport&&a.observe(s),h.preload_code===j.eager&&we(c))}}G.add(o),o()}function Q(e,t){if(e instanceof Re)return e.body;const n=Te(e),r=Dt(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function pn(e,t={}){return e=new URL(Ue(e)),e.origin!==le?Promise.reject(new Error("goto: invalid URL")):ut(e,t,0)}function en(e){if(typeof e=="function")re.push(e);else{const{href:t}=new URL(e,location.href);re.push(n=>n.href===t)}}function tn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Ye(),!X){const r=Ne(_,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};ot.forEach(i=>i(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ye()}),navigator.connection?.saveData||Zt(),O.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=et(t.composedPath()[0],O);if(!n)return;const{url:r,external:a,target:i,download:o}=ve(n,L,v.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const s=te(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||o)return;const[l,f]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),h=l===ge(location);if(a||s.reload&&(!h||!f)){ht({url:r,type:"link",event:t})?X=!0:t.preventDefault();return}if(f!==void 0&&h){const[,w]=_.url.href.split("#");if(w===f){if(t.preventDefault(),f===""||f==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(f));u&&(u.scrollIntoView(),u.focus())}return}if(z=!0,Ie(y),e(r),!s.replace_state)return;z=!1}t.preventDefault(),await new Promise(w=>{requestAnimationFrame(()=>{setTimeout(w,0)}),setTimeout(w,100)}),await M({type:"link",url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),O.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const o=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(fe(o,L,!1))return;const s=t.target,c=te(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(s,r);o.search=new URLSearchParams(l).toString(),M({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Se){if(t.state?.[K]){const n=t.state[K];if(q={},n===y)return;const r=N[n],a=t.state[Qe]??{},i=new URL(t.state[Ct]??location.href),o=t.state[W],s=_.url?ge(location)===ge(_.url):!1;if(o===x&&(it||s)){a!==k.state&&(k.state=a),e(i),N[y]=ue(),r&&scrollTo(r.x,r.y),y=n;return}const l=n-y;await M({type:"popstate",url:i,popped:{state:a,scroll:r,delta:l},accept:()=>{y=n,x=o},block:()=>{history.go(-l)},nav_token:q,event:t})}else if(!z){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{z&&(z=!1,history.replaceState({...history.state,[K]:++y,[W]:x},"",location.href))});for(const t of document.querySelectorAll("link"))Bt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&C.navigating.set(Y.current=null)});function e(t){_.url=k.url=t,C.page.set(De(k)),C.page.notify()}}async function nn(e,{status:t=200,error:n,node_ids:r,params:a,route:i,server_route:o,data:s,form:c}){st=!0;const l=new URL(location.href);let f;({params:a={},route:i={id:null}}=await de(l,!1)||{}),f=Oe.find(({id:u})=>u===i.id);let h,w=!0;try{const u=r.map(async(m,p)=>{const d=s[p];return d?.uses&&(d.uses=rn(d.uses)),Ce({loader:v.nodes[m],url:l,params:a,route:i,parent:async()=>{const S={};for(let E=0;E{const s=history.state;Se=!0,location.replace(`#${r}`),v.hash&&location.replace(e.hash),history.replaceState(s,"",e.hash),scrollTo(i,o),Se=!1})}else{const i=document.body,o=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),o!==null?i.setAttribute("tabindex",o):i.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const i=[];for(let o=0;o{if(a.rangeCount===i.length){for(let o=0;o{a=c,i=l});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:r,complete:o},fulfil:a,reject:i}}function De(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function on(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function gt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{hn as a,pn as g,ln as l,k as p,C as s}; +import{b3 as pe,b4 as mt,aM as U,A as T,J as I,t as ee,b5 as Ve,b6 as wt}from"./DxMC-E2z.js";import{o as Be}from"./CgHyU30y.js";const V=[];function Ee(e,t=pe){let n=null;const a=new Set;function r(s){if(mt(e,s)&&(e=s,n)){const c=!V.length;for(const l of a)l[1](),V.push(l,e);if(c){for(let l=0;l{a.delete(l),a.size===0&&n&&(n(),n=null)}}return{set:r,update:i,subscribe:o}}class Re{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class xe{constructor(t,n){this.status=t,this.location=n}}class Le extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}new URL("sveltekit-internal://");function vt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function yt(e){return e.split("%25").map(decodeURI).join("%25")}function bt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ge({href:e}){return e.split("#")[0]}function kt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function St(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&F.delete(Ae(e)),Et(e,t));const F=new Map;function Rt(e,t){const n=Ae(e,t),a=document.querySelector(n);if(a?.textContent){a.remove();let{body:r,...i}=JSON.parse(a.textContent);const o=a.getAttribute("data-ttl");return o&&F.set(n,{body:r,init:i,ttl:1e3*Number(o)}),a.getAttribute("data-b64")!==null&&(r=St(r)),Promise.resolve(new Response(r,i))}return window.fetch(e,t)}function xt(e,t,n){if(F.size>0){const a=Ae(e,n),r=F.get(a);if(r){if(performance.now(){const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const o=a.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return _e(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return _e(String.fromCharCode(...c.slice(2).split("-").map(m=>parseInt(m,16))));const f=Lt.exec(c),[,h,w,u,g]=f;return t.push({name:u,matcher:g,optional:!!h,rest:!!w,chained:w?l===1&&o[0]==="":!1}),w?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return _e(c)}).join("")}).join("")}/?$`),params:t}}function Ut(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Tt(e){return e.slice(1).split("/").filter(Ut)}function It(e,t,n){const a={},r=e.slice(1),i=r.filter(s=>s!==void 0);let o=0;for(let s=0;sf).join("/"),o=0),l===void 0){c.rest&&(a[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const f=t[s+1],h=r[s+1];f&&!f.rest&&f.optional&&h&&c.chained&&(o=0),!f&&!h&&Object.keys(a).length===i.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return a}function _e(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ot({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,f]])=>{const{pattern:h,params:w}=At(s),u={id:s,exec:g=>{const m=h.exec(g);if(m)return It(m,w,a)},errors:[1,...f||[]].map(g=>e[g]),layouts:[0,...l||[]].map(o),leaf:i(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function o(s){return s===void 0?s:[r.has(s),e[s]]}}function Je(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ke(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const L=globalThis.__sveltekit_dfa247?.base??"",$t=globalThis.__sveltekit_dfa247?.assets??L??"",Pt="1771856210381",He="sveltekit:snapshot",Xe="sveltekit:scroll",Qe="sveltekit:states",Ct="sveltekit:pageurl",K="sveltekit:history",W="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},le=location.origin;function Ue(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function ue(){return{x:pageXOffset,y:pageYOffset}}function B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Me={...j,"":j.hover};function Ze(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function et(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ze(e)}}function ve(e,t,n){let a;try{if(a=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const s=location.hash.split("#")[1]||"/";a.hash=`#${s}${a.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,i=!a||!!r||fe(a,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=a?.origin===le&&e.hasAttribute("download");return{url:a,external:i,target:r,download:o}}function te(e){let t=null,n=null,a=null,r=null,i=null,o=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=B(s,"preload-code")),r===null&&(r=B(s,"preload-data")),t===null&&(t=B(s,"keepfocus")),n===null&&(n=B(s,"noscroll")),i===null&&(i=B(s,"reload")),o===null&&(o=B(s,"replacestate")),s=Ze(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Me[a??"off"],preload_data:Me[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(o)}}function ze(e){const t=Ee(e);let n=!0;function a(){n=!0,t.update(o=>o)}function r(o){n=!1,t.set(o)}function i(o){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&o(s=c)})}return{notify:a,set:r,subscribe:i}}const tt={v:()=>{}};function jt(){const{set:e,subscribe:t}=Ee(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${$t}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==Pt;return o&&(e(!0),tt.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:a}}function fe(e,t,n){return e.origin!==le||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function ln(e){}const nt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...nt];const Nt=new Set([...nt]);[...Nt];function qt(e){return e.filter(t=>t!=null)}function Te(e){return e instanceof Re||e instanceof Le?e.status:500}function Dt(e){return e instanceof Le?e.text:"Internal Error"}let k,Y,me;const Vt=Be.toString().includes("$$")||/function \w+\(\) \{\}/.test(Be.toString());Vt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},Y={current:null},me={current:!1}):(k=new class{#e=U({});get data(){return T(this.#e)}set data(t){I(this.#e,t)}#t=U(null);get form(){return T(this.#t)}set form(t){I(this.#t,t)}#n=U(null);get error(){return T(this.#n)}set error(t){I(this.#n,t)}#a=U({});get params(){return T(this.#a)}set params(t){I(this.#a,t)}#r=U({id:null});get route(){return T(this.#r)}set route(t){I(this.#r,t)}#o=U({});get state(){return T(this.#o)}set state(t){I(this.#o,t)}#s=U(-1);get status(){return T(this.#s)}set status(t){I(this.#s,t)}#i=U(new URL("https://example.com"));get url(){return T(this.#i)}set url(t){I(this.#i,t)}},Y=new class{#e=U(null);get current(){return T(this.#e)}set current(t){I(this.#e,t)}},me=new class{#e=U(!1);get current(){return T(this.#e)}set current(t){I(this.#e,t)}},tt.v=()=>me.current=!0);function at(e){Object.assign(k,e)}const Bt=new Set(["icon","shortcut icon","apple-touch-icon"]),q=Je(Xe)??{},J=Je(He)??{},C={url:ze({}),page:ze({}),navigating:Ee(null),updated:jt()};function Ie(e){q[e]=ue()}function Kt(e,t){let n=e+1;for(;q[n];)delete q[n],n+=1;for(n=t+1;J[n];)delete J[n],n+=1}function H(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function rt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}function Fe(){}let Oe,ye,ne,O,be,v;const ae=[],re=[];let R=null;function ke(){R?.fork?.then(e=>e?.discard()),R=null}const Z=new Map,ot=new Set,Mt=new Set,G=new Set;let _={branch:[],error:null,url:null},st=!1,oe=!1,Ge=!0,X=!1,z=!1,it=!1,$e=!1,Pe,y,x,N;const se=new Set,We=new Map;async function hn(e,t,n){globalThis.__sveltekit_dfa247?.data&&globalThis.__sveltekit_dfa247.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Oe=Ot(e),O=document.documentElement,be=t,ye=e.nodes[0],ne=e.nodes[1],ye(),ne(),y=history.state?.[K],x=history.state?.[W],y||(y=x=Date.now(),history.replaceState({...history.state,[K]:y,[W]:x},""));const a=q[y];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await nn(be,n)):(await M({type:"enter",url:Ue(v.hash?on(new URL(location.href)):location.href),replace_state:!0}),r()),tn()}function zt(){ae.length=0,$e=!1}function ct(e){re.some(t=>t?.snapshot)&&(J[e]=re.map(t=>t?.snapshot?.capture()))}function lt(e){J[e]?.forEach((t,n)=>{re[n]?.snapshot?.restore(t)})}function Ye(){Ie(y),Ke(Xe,q),ct(x),Ke(He,J)}async function ut(e,t,n,a){let r;t.invalidateAll&&ke(),await M({type:"goto",url:Ue(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&($e=!0,r=[...We.keys()]),t.invalidate&&t.invalidate.forEach(en)}}),t.invalidateAll&&ee().then(ee).then(()=>{We.forEach(({resource:i},o)=>{r?.includes(o)&&i.refresh?.()})})}async function Ft(e){if(e.id!==R?.id){ke();const t={};if(se.add(t),R={id:e.id,token:t,promise:dt({...e,preload:t}).then(n=>(se.delete(t),n.type==="loaded"&&n.state.error&&ke(),n)),fork:null},Ve){const n=R;n.fork=n.promise.then(a=>{if(n===R&&a.type==="loaded")try{return Ve(()=>{Pe.$set(a.props),at(a.props.page)})}catch{}return null})}}return R.promise}async function we(e){const t=(await de(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}async function ft(e,t,n){_=e.state;const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(k,e.props.page),Pe=new v.root({target:t,props:{...e.props,stores:C,components:re},hydrate:n,sync:!1}),await Promise.resolve(),lt(x),n){const r={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};G.forEach(i=>i(r))}oe=!0}function ie({url:e,params:t,branch:n,status:a,error:r,route:i,form:o}){let s="never";if(L&&(e.pathname===L||e.pathname===L+"/"))s="always";else for(const u of n)u?.slash!==void 0&&(s=u.slash);e.pathname=vt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:i},props:{constructors:qt(n).map(u=>u.node.component),page:De(k)}};o!==void 0&&(c.props.form=o);let l={},f=!k,h=0;for(let u=0;us(new URL(o))))return!0;return!1}function je(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Yt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),i=t.searchParams.getAll(a);r.every(o=>i.includes(o))&&i.every(o=>r.includes(o))&&n.delete(a)}return n}function Jt({error:e,url:t,route:n,params:a}){return{type:"loaded",state:{error:e,url:t,route:n,params:a,branch:[]},props:{page:De(k),constructors:[]}}}async function dt({id:e,invalidating:t,url:n,params:a,route:r,preload:i}){if(R?.id===e)return se.delete(R.token),R.promise;const{errors:o,layouts:s,leaf:c}=r,l=[...s,c];o.forEach(p=>p?.().catch(()=>{})),l.forEach(p=>p?.[1]().catch(()=>{}));const f=_.url?e!==ce(_.url):!1,h=_.route?r.id!==_.route.id:!1,w=Yt(_.url,n);let u=!1;const g=l.map(async(p,d)=>{if(!p)return;const S=_.branch[d];return p[1]===S?.loader&&!Wt(u,h,f,w,S.universal?.uses,a)?S:(u=!0,Ce({loader:p[1],url:n,params:a,route:r,parent:async()=>{const $={};for(let A=0;A{});const m=[];for(let p=0;pPromise.resolve({}),server_data_node:je(i)}),s={node:await ne(),loader:ne,universal:null,server:null,data:null};return ie({url:n,params:r,branch:[o,s],status:e,error:t,route:null})}catch(o){if(o instanceof xe)return ut(new URL(o.location,location.href),{},0);throw o}}async function Xt(e){const t=e.href;if(Z.has(t))return Z.get(t);let n;try{const a=(async()=>{let r=await v.hooks.reroute({url:new URL(e),fetch:async(i,o)=>Gt(i,o,e).promise})??e;if(typeof r=="string"){const i=new URL(e);v.hash?i.hash=r:i.pathname=r,r=i}return r})();Z.set(t,a),n=await a}catch{Z.delete(t);return}return n}async function de(e,t){if(e&&!fe(e,L,v.hash)){const n=await Xt(e);if(!n)return;const a=Qt(n);for(const r of Oe){const i=r.exec(a);if(i)return{id:ce(e),invalidating:t,route:r,params:bt(i),url:e}}}}function Qt(e){return yt(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function ce(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ht({url:e,type:t,intent:n,delta:a,event:r}){let i=!1;const o=qe(_,n,e,t);a!==void 0&&(o.navigation.delta=a),r!==void 0&&(o.navigation.event=r);const s={...o.navigation,cancel:()=>{i=!0,o.reject(new Error("navigation cancelled"))}};return X||ot.forEach(c=>c(s)),i?null:o}async function M({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o={},redirect_count:s=0,nav_token:c={},accept:l=Fe,block:f=Fe,event:h}){const w=N;N=c;const u=await de(t,!1),g=e==="enter"?qe(_,u,t,e):ht({url:t,type:e,delta:n?.delta,intent:u,event:h});if(!g){f(),N===c&&(N=w);return}const m=y,p=x;l(),X=!0,oe&&g.navigation.type!=="enter"&&C.navigating.set(Y.current=g.navigation);let d=u&&await dt(u);if(!d){if(fe(t,L,v.hash))return await H(t,i);d=await pt(t,{id:null},await Q(new Le(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,N!==c)return g.reject(new Error("navigation aborted")),!1;if(d.type==="redirect"){if(s<20){await M({type:e,url:new URL(d.location,t),popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o,redirect_count:s+1,nav_token:c}),g.fulfil(void 0);return}d=await Ne({status:500,error:await Q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else d.props.page.status>=400&&await C.updated.check()&&(await rt(),await H(t,i));if(zt(),Ie(m),ct(p),d.props.page.url.pathname!==t.pathname&&(t.pathname=d.props.page.url.pathname),o=n?n.state:o,!n){const b=i?0:1,D={[K]:y+=b,[W]:x+=b,[Qe]:o};(i?history.replaceState:history.pushState).call(history,D,"",t),i||Kt(y,x)}const S=R?.fork;R=null,d.props.page.state=o;let E;if(oe){const b=(await Promise.all(Array.from(Mt,P=>P(g.navigation)))).filter(P=>typeof P=="function");if(b.length>0){let P=function(){b.forEach(he=>{G.delete(he)})};b.push(P),b.forEach(he=>{G.add(he)})}_=d.state,d.props.page&&(d.props.page.url=t);const D=S&&await S;D?E=D.commit():(Pe.$set(d.props),at(d.props.page),E=wt?.()),it=!0}else await ft(d,be,!1);const{activeElement:$}=document;await E,await ee(),await ee();let A=n?n.scroll:r?ue():null;if(Ge){const b=t.hash&&document.getElementById(gt(t));if(A)scrollTo(A.x,A.y);else if(b){b.scrollIntoView();const{top:D,left:P}=b.getBoundingClientRect();A={x:pageXOffset+P,y:pageYOffset+D}}else scrollTo(0,0)}const _t=document.activeElement!==$&&document.activeElement!==document.body;!a&&!_t&&rn(t,A),Ge=!0,d.props.page&&Object.assign(k,d.props.page),X=!1,e==="popstate"&<(x),g.fulfil(void 0),G.forEach(b=>b(g.navigation)),C.navigating.set(Y.current=null)}async function pt(e,t,n,a,r){return e.origin===le&&e.pathname===location.pathname&&!st?await Ne({status:a,error:n,url:e,route:t}):await H(e,r)}function Zt(){let e,t,n;O.addEventListener("mousemove",s=>{const c=s.target;clearTimeout(e),e=setTimeout(()=>{i(c,j.hover)},20)});function a(s){s.defaultPrevented||i(s.composedPath()[0],j.tap)}O.addEventListener("mousedown",a),O.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(s=>{for(const c of s)c.isIntersecting&&(we(new URL(c.target.href)),r.unobserve(c.target))},{threshold:0});async function i(s,c){const l=et(s,O),f=l===t&&c>=n;if(!l||f)return;const{url:h,external:w,download:u}=ve(l,L,v.hash);if(w||u)return;const g=te(l),m=h&&ce(_.url)===ce(h);if(!(g.reload||m))if(c<=g.preload_data){t=l,n=j.tap;const p=await de(h,!1);if(!p)return;Ft(p)}else c<=g.preload_code&&(t=l,n=c,we(h))}function o(){r.disconnect();for(const s of O.querySelectorAll("a")){const{url:c,external:l,download:f}=ve(s,L,v.hash);if(l||f)continue;const h=te(s);h.reload||(h.preload_code===j.viewport&&r.observe(s),h.preload_code===j.eager&&we(c))}}G.add(o),o()}function Q(e,t){if(e instanceof Re)return e.body;const n=Te(e),a=Dt(e);return v.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function pn(e,t={}){return e=new URL(Ue(e)),e.origin!==le?Promise.reject(new Error("goto: invalid URL")):ut(e,t,0)}function en(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function tn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Ye(),!X){const a=qe(_,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};ot.forEach(i=>i(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ye()}),navigator.connection?.saveData||Zt(),O.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=et(t.composedPath()[0],O);if(!n)return;const{url:a,external:r,target:i,download:o}=ve(n,L,v.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const s=te(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[l,f]=(v.hash?a.hash.replace(/^#/,""):a.href).split("#"),h=l===ge(location);if(r||s.reload&&(!h||!f)){ht({url:a,type:"link",event:t})?X=!0:t.preventDefault();return}if(f!==void 0&&h){const[,w]=_.url.href.split("#");if(w===f){if(t.preventDefault(),f===""||f==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(f));u&&(u.scrollIntoView(),u.focus())}return}if(z=!0,Ie(y),e(a),!s.replace_state)return;z=!1}t.preventDefault(),await new Promise(w=>{requestAnimationFrame(()=>{setTimeout(w,0)}),setTimeout(w,100)}),await M({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href,event:t})}),O.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formTarget||n.target)==="_blank"||(a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(fe(o,L,!1))return;const s=t.target,c=te(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(s,a);o.search=new URLSearchParams(l).toString(),M({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Se){if(t.state?.[K]){const n=t.state[K];if(N={},n===y)return;const a=q[n],r=t.state[Qe]??{},i=new URL(t.state[Ct]??location.href),o=t.state[W],s=_.url?ge(location)===ge(_.url):!1;if(o===x&&(it||s)){r!==k.state&&(k.state=r),e(i),q[y]=ue(),a&&scrollTo(a.x,a.y),y=n;return}const l=n-y;await M({type:"popstate",url:i,popped:{state:r,scroll:a,delta:l},accept:()=>{y=n,x=o},block:()=>{history.go(-l)},nav_token:N,event:t})}else if(!z){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{z&&(z=!1,history.replaceState({...history.state,[K]:++y,[W]:x},"",location.href))});for(const t of document.querySelectorAll("link"))Bt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&C.navigating.set(Y.current=null)});function e(t){_.url=k.url=t,C.page.set(De(k)),C.page.notify()}}async function nn(e,{status:t=200,error:n,node_ids:a,params:r,route:i,server_route:o,data:s,form:c}){st=!0;const l=new URL(location.href);let f;({params:r={},route:i={id:null}}=await de(l,!1)||{}),f=Oe.find(({id:u})=>u===i.id);let h,w=!0;try{const u=a.map(async(m,p)=>{const d=s[p];return d?.uses&&(d.uses=an(d.uses)),Ce({loader:v.nodes[m],url:l,params:r,route:i,parent:async()=>{const S={};for(let E=0;E{const s=history.state;Se=!0,location.replace(`#${a}`),v.hash&&location.replace(e.hash),history.replaceState(s,"",e.hash),scrollTo(i,o),Se=!1})}else{const i=document.body,o=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),o!==null?i.setAttribute("tabindex",o):i.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const i=[];for(let o=0;o{if(r.rangeCount===i.length){for(let o=0;o{r=c,i=l});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:a,complete:o},fulfil:r,reject:i}}function De(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function on(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function gt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{hn as a,pn as g,ln as l,k as p,C as s}; diff --git a/frontend/build/_app/immutable/entry/app.CJZl1xEf.js b/frontend/build/_app/immutable/entry/app.fM2IB28Y.js similarity index 92% rename from frontend/build/_app/immutable/entry/app.CJZl1xEf.js rename to frontend/build/_app/immutable/entry/app.fM2IB28Y.js index 5459b8a..51eec4a 100644 --- a/frontend/build/_app/immutable/entry/app.CJZl1xEf.js +++ b/frontend/build/_app/immutable/entry/app.fM2IB28Y.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.4jgBJ9dL.js","../chunks/K5GTgIDA.js","../chunks/DxMC-E2z.js","../chunks/DrX-8T7E.js","../chunks/HgGInnYf.js","../nodes/1.CqkjnNCI.js","../chunks/DgU0EQmz.js","../chunks/V6M2jInR.js","../chunks/niSfElle.js","../chunks/CgHyU30y.js","../nodes/2.CffNvu5R.js","../chunks/BJWcdj5l.js","../chunks/Cp1RMksV.js","../assets/2.CJfhZtXb.css","../nodes/3.Cbh4JYE_.js","../chunks/Cx2Kkjq-.js","../assets/3.DJqIjZ0C.css"])))=>i.map(i=>d[i]); -import{h as K,a as U,b as Y,E as z,aK as J,r as W,u as H,q as Q,$ as X,J as A,a0 as Z,A as d,aL as $,aA as tt,G as et,z as rt,a2 as st,a3 as at,aM as S,t as nt,a8 as k,C as ot,B as ct,D as it,F as ut,aN as x,K as lt}from"../chunks/DxMC-E2z.js";import{h as ft,m as dt,u as mt,s as ht}from"../chunks/V6M2jInR.js";import{f as D,a as E,c as L,t as _t}from"../chunks/K5GTgIDA.js";import{o as vt}from"../chunks/CgHyU30y.js";import{i as p}from"../chunks/BJWcdj5l.js";import{B as gt}from"../chunks/DrX-8T7E.js";import{p as T}from"../chunks/Cx2Kkjq-.js";function C(s,t,a){K&&U();var i=new gt(s);Y(()=>{var n=t()??null;i.ensure(n,n&&(e=>a(e,n)))},z)}function N(s,t){return s===t||s?.[X]===t}function j(s={},t,a,i){return J(()=>{var n,e;return W(()=>{n=e,e=[],H(()=>{s!==a(...e)&&(t(s,...e),n&&N(a(...n),s)&&t(null,...n))})}),()=>{Q(()=>{e&&N(a(...e),s)&&t(null,...e)})}}),s}function yt(s){return class extends Et{constructor(t){super({component:s,...t})}}}class Et{#e;#t;constructor(t){var a=new Map,i=(e,r)=>{var o=et(r,!1,!1);return a.set(e,o),o};const n=new Proxy({...t.props||{},$$events:{}},{get(e,r){return d(a.get(r)??i(r,Reflect.get(e,r)))},has(e,r){return r===Z?!0:(d(a.get(r)??i(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,o){return A(a.get(r)??i(r,o),o),Reflect.set(e,r,o)}});this.#t=(t.hydrate?ft:dt)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&$(),this.#e=n.$$events;for(const e of Object.keys(this.#t))e==="$set"||e==="$destroy"||e==="$on"||tt(this,e,{get(){return this.#t[e]},set(r){this.#t[e]=r},enumerable:!0});this.#t.$set=e=>{Object.assign(n,e)},this.#t.$destroy=()=>{mt(this.#t)}}$set(t){this.#t.$set(t)}$on(t,a){this.#e[t]=this.#e[t]||[];const i=(...n)=>a.call(this,...n);return this.#e[t].push(i),()=>{this.#e[t]=this.#e[t].filter(n=>n!==i)}}$destroy(){this.#t.$destroy()}}const bt="modulepreload",Pt=function(s,t){return new URL(s,t).href},B={},O=function(t,a,i){let n=Promise.resolve();if(a&&a.length>0){let R=function(u){return Promise.all(u.map(f=>Promise.resolve(f).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};const r=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),w=o?.nonce||o?.getAttribute("nonce");n=R(a.map(u=>{if(u=Pt(u,i),u in B)return;B[u]=!0;const f=u.endsWith(".css"),m=f?'[rel="stylesheet"]':"";if(i)for(let h=r.length-1;h>=0;h--){const c=r[h];if(c.href===u&&(!f||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${m}`))return;const l=document.createElement("link");if(l.rel=f?"stylesheet":bt,f||(l.as="script"),l.crossOrigin="",l.href=u,w&&l.setAttribute("nonce",w),document.head.appendChild(l),f)return new Promise((h,c)=>{l.addEventListener("load",h),l.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${u}`)))})}))}function e(r){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=r,window.dispatchEvent(o),!o.defaultPrevented)throw r}return n.then(r=>{for(const o of r||[])o.status==="rejected"&&e(o.reason);return t().catch(e)})},Mt={};var wt=D('
'),Rt=D(" ",1);function kt(s,t){rt(t,!0);let a=T(t,"components",23,()=>[]),i=T(t,"data_0",3,null),n=T(t,"data_1",3,null);st(()=>t.stores.page.set(t.page)),at(()=>{t.stores,t.page,t.constructors,a(),t.form,i(),n(),t.stores.page.notify()});let e=S(!1),r=S(!1),o=S(null);vt(()=>{const c=t.stores.page.subscribe(()=>{d(e)&&(A(r,!0),nt().then(()=>{A(o,document.title||"untitled page",!0)}))});return A(e,!0),c});const w=x(()=>t.constructors[1]);var R=Rt(),u=k(R);{var f=c=>{const _=x(()=>t.constructors[0]);var v=L(),b=k(v);C(b,()=>d(_),(g,y)=>{j(y(g,{get data(){return i()},get form(){return t.form},get params(){return t.page.params},children:(P,At)=>{var M=L(),I=k(M);C(I,()=>d(w),(V,F)=>{j(F(V,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),G=>a()[1]=G,()=>a()?.[1])}),E(P,M)},$$slots:{default:!0}}),P=>a()[0]=P,()=>a()?.[0])}),E(c,v)},m=c=>{const _=x(()=>t.constructors[0]);var v=L(),b=k(v);C(b,()=>d(_),(g,y)=>{j(y(g,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),P=>a()[0]=P,()=>a()?.[0])}),E(c,v)};p(u,c=>{t.constructors[1]?c(f):c(m,!1)})}var l=ot(u,2);{var h=c=>{var _=wt(),v=it(_);{var b=g=>{var y=_t();lt(()=>ht(y,d(o))),E(g,y)};p(v,g=>{d(r)&&g(b)})}ut(_),E(c,_)};p(l,c=>{d(e)&&c(h)})}E(s,R),ct()}const Nt=yt(kt),Bt=[()=>O(()=>import("../nodes/0.4jgBJ9dL.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>O(()=>import("../nodes/1.CqkjnNCI.js"),__vite__mapDeps([5,1,2,6,7,8,9]),import.meta.url),()=>O(()=>import("../nodes/2.CffNvu5R.js"),__vite__mapDeps([10,1,2,6,7,11,3,4,12,8,9,13]),import.meta.url),()=>O(()=>import("../nodes/3.Cbh4JYE_.js"),__vite__mapDeps([14,1,2,6,9,7,11,3,4,12,15,16]),import.meta.url)],Dt=[],qt={"/":[2],"/shadowrun":[3]},q={handleError:(({error:s})=>{console.error(s)}),reroute:(()=>{}),transport:{}},Ot=Object.fromEntries(Object.entries(q.transport).map(([s,t])=>[s,t.decode])),It=Object.fromEntries(Object.entries(q.transport).map(([s,t])=>[s,t.encode])),Vt=!1,Ft=(s,t)=>Ot[s](t);export{Ft as decode,Ot as decoders,qt as dictionary,It as encoders,Vt as hash,q as hooks,Mt as matchers,Bt as nodes,Nt as root,Dt as server_loads}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.4jgBJ9dL.js","../chunks/K5GTgIDA.js","../chunks/DxMC-E2z.js","../chunks/DrX-8T7E.js","../chunks/HgGInnYf.js","../nodes/1.WTl2-Tto.js","../chunks/DgU0EQmz.js","../chunks/V6M2jInR.js","../chunks/BEXiALSO.js","../chunks/CgHyU30y.js","../nodes/2.ClPVIoAO.js","../chunks/BJWcdj5l.js","../chunks/Cp1RMksV.js","../assets/2.CJfhZtXb.css","../nodes/3.BxcTFNGX.js","../chunks/Cx2Kkjq-.js","../assets/3.DJqIjZ0C.css"])))=>i.map(i=>d[i]); +import{h as K,a as U,b as Y,E as z,aK as J,r as W,u as H,q as Q,$ as X,J as A,a0 as Z,A as d,aL as $,aA as tt,G as et,z as rt,a2 as st,a3 as at,aM as S,t as nt,a8 as k,C as ot,B as ct,D as it,F as ut,aN as x,K as lt}from"../chunks/DxMC-E2z.js";import{h as ft,m as dt,u as mt,s as ht}from"../chunks/V6M2jInR.js";import{f as D,a as E,c as L,t as _t}from"../chunks/K5GTgIDA.js";import{o as vt}from"../chunks/CgHyU30y.js";import{i as p}from"../chunks/BJWcdj5l.js";import{B as gt}from"../chunks/DrX-8T7E.js";import{p as T}from"../chunks/Cx2Kkjq-.js";function C(s,t,a){K&&U();var i=new gt(s);Y(()=>{var n=t()??null;i.ensure(n,n&&(e=>a(e,n)))},z)}function N(s,t){return s===t||s?.[X]===t}function j(s={},t,a,i){return J(()=>{var n,e;return W(()=>{n=e,e=[],H(()=>{s!==a(...e)&&(t(s,...e),n&&N(a(...n),s)&&t(null,...n))})}),()=>{Q(()=>{e&&N(a(...e),s)&&t(null,...e)})}}),s}function yt(s){return class extends Et{constructor(t){super({component:s,...t})}}}class Et{#e;#t;constructor(t){var a=new Map,i=(e,r)=>{var o=et(r,!1,!1);return a.set(e,o),o};const n=new Proxy({...t.props||{},$$events:{}},{get(e,r){return d(a.get(r)??i(r,Reflect.get(e,r)))},has(e,r){return r===Z?!0:(d(a.get(r)??i(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,o){return A(a.get(r)??i(r,o),o),Reflect.set(e,r,o)}});this.#t=(t.hydrate?ft:dt)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover}),(!t?.props?.$$host||t.sync===!1)&&$(),this.#e=n.$$events;for(const e of Object.keys(this.#t))e==="$set"||e==="$destroy"||e==="$on"||tt(this,e,{get(){return this.#t[e]},set(r){this.#t[e]=r},enumerable:!0});this.#t.$set=e=>{Object.assign(n,e)},this.#t.$destroy=()=>{mt(this.#t)}}$set(t){this.#t.$set(t)}$on(t,a){this.#e[t]=this.#e[t]||[];const i=(...n)=>a.call(this,...n);return this.#e[t].push(i),()=>{this.#e[t]=this.#e[t].filter(n=>n!==i)}}$destroy(){this.#t.$destroy()}}const bt="modulepreload",Pt=function(s,t){return new URL(s,t).href},B={},O=function(t,a,i){let n=Promise.resolve();if(a&&a.length>0){let R=function(u){return Promise.all(u.map(f=>Promise.resolve(f).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};const r=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),w=o?.nonce||o?.getAttribute("nonce");n=R(a.map(u=>{if(u=Pt(u,i),u in B)return;B[u]=!0;const f=u.endsWith(".css"),m=f?'[rel="stylesheet"]':"";if(i)for(let h=r.length-1;h>=0;h--){const c=r[h];if(c.href===u&&(!f||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${m}`))return;const l=document.createElement("link");if(l.rel=f?"stylesheet":bt,f||(l.as="script"),l.crossOrigin="",l.href=u,w&&l.setAttribute("nonce",w),document.head.appendChild(l),f)return new Promise((h,c)=>{l.addEventListener("load",h),l.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${u}`)))})}))}function e(r){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=r,window.dispatchEvent(o),!o.defaultPrevented)throw r}return n.then(r=>{for(const o of r||[])o.status==="rejected"&&e(o.reason);return t().catch(e)})},Mt={};var wt=D('
'),Rt=D(" ",1);function kt(s,t){rt(t,!0);let a=T(t,"components",23,()=>[]),i=T(t,"data_0",3,null),n=T(t,"data_1",3,null);st(()=>t.stores.page.set(t.page)),at(()=>{t.stores,t.page,t.constructors,a(),t.form,i(),n(),t.stores.page.notify()});let e=S(!1),r=S(!1),o=S(null);vt(()=>{const c=t.stores.page.subscribe(()=>{d(e)&&(A(r,!0),nt().then(()=>{A(o,document.title||"untitled page",!0)}))});return A(e,!0),c});const w=x(()=>t.constructors[1]);var R=Rt(),u=k(R);{var f=c=>{const _=x(()=>t.constructors[0]);var v=L(),b=k(v);C(b,()=>d(_),(g,y)=>{j(y(g,{get data(){return i()},get form(){return t.form},get params(){return t.page.params},children:(P,At)=>{var M=L(),I=k(M);C(I,()=>d(w),(V,F)=>{j(F(V,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),G=>a()[1]=G,()=>a()?.[1])}),E(P,M)},$$slots:{default:!0}}),P=>a()[0]=P,()=>a()?.[0])}),E(c,v)},m=c=>{const _=x(()=>t.constructors[0]);var v=L(),b=k(v);C(b,()=>d(_),(g,y)=>{j(y(g,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),P=>a()[0]=P,()=>a()?.[0])}),E(c,v)};p(u,c=>{t.constructors[1]?c(f):c(m,!1)})}var l=ot(u,2);{var h=c=>{var _=wt(),v=it(_);{var b=g=>{var y=_t();lt(()=>ht(y,d(o))),E(g,y)};p(v,g=>{d(r)&&g(b)})}ut(_),E(c,_)};p(l,c=>{d(e)&&c(h)})}E(s,R),ct()}const Nt=yt(kt),Bt=[()=>O(()=>import("../nodes/0.4jgBJ9dL.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>O(()=>import("../nodes/1.WTl2-Tto.js"),__vite__mapDeps([5,1,2,6,7,8,9]),import.meta.url),()=>O(()=>import("../nodes/2.ClPVIoAO.js"),__vite__mapDeps([10,1,2,6,7,11,3,4,12,8,9,13]),import.meta.url),()=>O(()=>import("../nodes/3.BxcTFNGX.js"),__vite__mapDeps([14,1,2,6,9,7,11,3,4,12,15,16]),import.meta.url)],Dt=[],qt={"/":[2],"/shadowrun":[3]},q={handleError:(({error:s})=>{console.error(s)}),reroute:(()=>{}),transport:{}},Ot=Object.fromEntries(Object.entries(q.transport).map(([s,t])=>[s,t.decode])),It=Object.fromEntries(Object.entries(q.transport).map(([s,t])=>[s,t.encode])),Vt=!1,Ft=(s,t)=>Ot[s](t);export{Ft as decode,Ot as decoders,qt as dictionary,It as encoders,Vt as hash,q as hooks,Mt as matchers,Bt as nodes,Nt as root,Dt as server_loads}; diff --git a/frontend/build/_app/immutable/entry/start.BnAWgAKt.js b/frontend/build/_app/immutable/entry/start.BnAWgAKt.js deleted file mode 100644 index 31922e1..0000000 --- a/frontend/build/_app/immutable/entry/start.BnAWgAKt.js +++ /dev/null @@ -1 +0,0 @@ -import{l as o,a as r}from"../chunks/niSfElle.js";export{o as load_css,r as start}; diff --git a/frontend/build/_app/immutable/entry/start.DL8ghe8B.js b/frontend/build/_app/immutable/entry/start.DL8ghe8B.js new file mode 100644 index 0000000..409685b --- /dev/null +++ b/frontend/build/_app/immutable/entry/start.DL8ghe8B.js @@ -0,0 +1 @@ +import{l as o,a as r}from"../chunks/BEXiALSO.js";export{o as load_css,r as start}; diff --git a/frontend/build/_app/immutable/nodes/1.CqkjnNCI.js b/frontend/build/_app/immutable/nodes/1.WTl2-Tto.js similarity index 77% rename from frontend/build/_app/immutable/nodes/1.CqkjnNCI.js rename to frontend/build/_app/immutable/nodes/1.WTl2-Tto.js index 1e06c69..9bc471c 100644 --- a/frontend/build/_app/immutable/nodes/1.CqkjnNCI.js +++ b/frontend/build/_app/immutable/nodes/1.WTl2-Tto.js @@ -1 +1 @@ -import{f as u,a as h}from"../chunks/K5GTgIDA.js";import{i as g}from"../chunks/DgU0EQmz.js";import{z as l,a8 as v,K as d,B as _,D as s,F as e,C as x}from"../chunks/DxMC-E2z.js";import{s as o}from"../chunks/V6M2jInR.js";import{s as $,p}from"../chunks/niSfElle.js";const k={get error(){return p.error},get status(){return p.status}};$.updated.check;const m=k;var b=u("

",1);function F(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{F as component}; +import{f as u,a as h}from"../chunks/K5GTgIDA.js";import{i as g}from"../chunks/DgU0EQmz.js";import{z as l,a8 as v,K as d,B as _,D as s,F as e,C as x}from"../chunks/DxMC-E2z.js";import{s as o}from"../chunks/V6M2jInR.js";import{s as $,p}from"../chunks/BEXiALSO.js";const k={get error(){return p.error},get status(){return p.status}};$.updated.check;const m=k;var b=u("

",1);function F(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{F as component}; diff --git a/frontend/build/_app/immutable/nodes/2.CffNvu5R.js b/frontend/build/_app/immutable/nodes/2.ClPVIoAO.js similarity index 95% rename from frontend/build/_app/immutable/nodes/2.CffNvu5R.js rename to frontend/build/_app/immutable/nodes/2.ClPVIoAO.js index 4653e80..e3f585b 100644 --- a/frontend/build/_app/immutable/nodes/2.CffNvu5R.js +++ b/frontend/build/_app/immutable/nodes/2.ClPVIoAO.js @@ -1 +1 @@ -import{f as w,a as d}from"../chunks/K5GTgIDA.js";import{i as J}from"../chunks/DgU0EQmz.js";import{z as O,A as t,B as P,C as r,D as o,F as i,G as v,I as g,J as b,K as S}from"../chunks/DxMC-E2z.js";import{e as T,s as j}from"../chunks/V6M2jInR.js";import{i as z}from"../chunks/BJWcdj5l.js";import{r as h}from"../chunks/HgGInnYf.js";import{b as _}from"../chunks/Cp1RMksV.js";import{g as A}from"../chunks/niSfElle.js";var B=w('

'),D=w('');function M(y,x){O(x,!1);let s=v(""),e=v({username:"",password:""});async function k(){try{const a=await fetch("/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(t(e))});if(!a.ok){b(s,await a.text());return}A("/shadowrun")}catch(a){b(s,a.message)}}J();var n=D(),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),C=r(c,2);{var L=a=>{var m=B(),q=o(m,!0);i(m),S(()=>j(q,t(s))),d(a,m)};z(C,a=>{t(s)&&a(L)})}i(n),_(u,()=>t(e).username,a=>g(e,t(e).username=a)),_(f,()=>t(e).password,a=>g(e,t(e).password=a)),T("click",c,k),d(y,n),P()}export{M as component}; +import{f as w,a as d}from"../chunks/K5GTgIDA.js";import{i as J}from"../chunks/DgU0EQmz.js";import{z as O,A as t,B as P,C as r,D as o,F as i,G as v,I as g,J as b,K as S}from"../chunks/DxMC-E2z.js";import{e as T,s as j}from"../chunks/V6M2jInR.js";import{i as z}from"../chunks/BJWcdj5l.js";import{r as h}from"../chunks/HgGInnYf.js";import{b as _}from"../chunks/Cp1RMksV.js";import{g as A}from"../chunks/BEXiALSO.js";var B=w('

'),D=w('');function M(y,x){O(x,!1);let s=v(""),e=v({username:"",password:""});async function k(){try{const a=await fetch("/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(t(e))});if(!a.ok){b(s,await a.text());return}A("/shadowrun")}catch(a){b(s,a.message)}}J();var n=D(),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),C=r(c,2);{var L=a=>{var m=B(),q=o(m,!0);i(m),S(()=>j(q,t(s))),d(a,m)};z(C,a=>{t(s)&&a(L)})}i(n),_(u,()=>t(e).username,a=>g(e,t(e).username=a)),_(f,()=>t(e).password,a=>g(e,t(e).password=a)),T("click",c,k),d(y,n),P()}export{M as component}; diff --git a/frontend/build/_app/immutable/nodes/3.BxcTFNGX.js b/frontend/build/_app/immutable/nodes/3.BxcTFNGX.js new file mode 100644 index 0000000..b93f9fd --- /dev/null +++ b/frontend/build/_app/immutable/nodes/3.BxcTFNGX.js @@ -0,0 +1 @@ +import{f as q,a as T,c as oa}from"../chunks/K5GTgIDA.js";import{i as la}from"../chunks/DgU0EQmz.js";import{o as ka}from"../chunks/CgHyU30y.js";import{e as be,h as Wt,a9 as Na,o as da,a as Sa,b as Ia,A as e,R as Ra,d as Wa,H as Ea,s as ze,f as pe,w as Et,ag as Ma,aI as Da,v as ge,y as Qa,aO as Xt,aP as qt,c as Kt,aQ as ua,aG as va,aR as ca,G as kt,aj as Ze,ar as ta,k as _a,n as Ta,aS as ye,q as Ba,m as ha,aT as Ka,aU as La,ah as Oa,aV as Va,aF as Xa,aW as qa,U as Ha,aK as gt,u as V,l as Fa,p as ja,aX as $a,aY as Ua,ay as Ga,t as Ja,z as ba,I as o,aZ as ea,a_ as Ya,a$ as za,a8 as Mt,D as n,F as a,C as s,as as Za,K as ut,b0 as Lt,b1 as At,a6 as me,B as pa,J as bt,aN as tr,b2 as er}from"../chunks/DxMC-E2z.js";import{e as N,s as Pt}from"../chunks/V6M2jInR.js";import{i as Vt}from"../chunks/BJWcdj5l.js";import{r as b,s as et}from"../chunks/HgGInnYf.js";import{b as u,a as aa}from"../chunks/Cp1RMksV.js";import{p as ra}from"../chunks/Cx2Kkjq-.js";function Y(c,p){return p}function ar(c,p,l){for(var C=c.items,D=[],t=p.length,m=0;m0&&D.length===0&&l!==null;if(B){var K=l.parentNode;Xa(K),K.append(l),C.clear(),wt(c,p[0].prev,p[t-1].next)}qa(D,()=>{for(var L=0;L{var j=l();return ca(j)?j:j==null?[]:va(j)}),R,k;function S(){rr(k,R,B,st,m,D,p,C,l),t!==null&&(R.length===0?Q?_a(Q):Q=ge(()=>t(m)):Q!==null&&Ta(Q,()=>{Q=null}))}Ia(()=>{k??=Ha,R=e(pt);var j=R.length;if(vt&&j===0)return;vt=j===0;let Z=!1;if(Wt){var at=Wa(m)===Ea;at!==(j===0)&&(m=ze(),be(m),pe(!1),Z=!0)}if(Wt){for(var it=null,J,w=0;w0&&be(ze())}if(Wt)j===0&&t&&(Q=ge(()=>t(m)));else if(Qa()){var dt=new Set,ct=Kt;for(w=0;w0){var Rt=(m&ua)!==0&&vt===0?D:null;if(L){for(E=0;E{if(j!==void 0)for(w of j)w.a?.apply()}),c.first=l.first&&l.first.e,c.last=S&&S.e;for(var Nt of C.values())ha(Nt.e);C.clear()}function ya(c,p,l,C){(C&Xt)!==0&&ta(c.v,p),(C&qt)!==0?ta(c.i,l):c.i=l}function we(c,p,l,C,D,t,m,B,K,L,Q){var vt=(K&Xt)!==0,st=(K&Ka)===0,pt=vt?st?kt(D,!1,!1):Ze(D):D,R=(K&qt)===0?m:Ze(m),k={i:R,v:pt,k:t,a:null,e:null,prev:l,next:C};try{if(c===null){var S=document.createDocumentFragment();S.append(c=da())}return k.e=ge(()=>B(c,pt,R,L),Wt),k.e.prev=l&&l.e,k.e.next=C&&C.e,l===null?Q||(p.first=k):(l.next=k,l.e.next=k.e),C!==null&&(C.prev=k,C.e.prev=k.e),k}finally{}}function fe(c,p,l){for(var C=c.next?c.next.e.nodes_start:l,D=p?p.e.nodes_start:l,t=c.e.nodes_start;t!==null&&t!==C;){var m=Oa(t);D.before(t),t=m}}function wt(c,p,l){p===null?c.first=l:(p.next=l,p.e.next=l&&l.e),l!==null&&(l.prev=p,l.e.prev=p&&p.e)}function St(c,p,l){gt(()=>{var C=V(()=>p(c,l?.())||{});if(C?.destroy)return()=>C.destroy()})}function ma(c,p,l=!1){if(c.multiple){if(p==null)return;if(!ca(p))return $a();for(var C of c.options)C.selected=p.includes(Dt(C));return}for(C of c.options){var D=Dt(C);if(Ua(D,p)){C.selected=!0;return}}(!l||p!==void 0)&&(c.selectedIndex=-1)}function nr(c){var p=new MutationObserver(()=>{ma(c,c.__value)});p.observe(c,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Ga(()=>{p.disconnect()})}function Ot(c,p,l=p){var C=new WeakSet,D=!0;Fa(c,"change",t=>{var m=t?"[selected]":":checked",B;if(c.multiple)B=[].map.call(c.querySelectorAll(m),Dt);else{var K=c.querySelector(m)??c.querySelector("option:not([disabled])");B=K&&Dt(K)}l(B),Kt!==null&&C.add(Kt)}),gt(()=>{var t=p();if(c===document.activeElement){var m=ja??Kt;if(C.has(m))return}if(ma(c,t,D),D&&t===void 0){var B=c.querySelector(":checked");B!==null&&(t=Dt(B),l(t))}c.__value=t,D=!1}),nr(c)}function Dt(c){return"__value"in c?c.__value:c.value}const sr={Metatype:"",Age:30,Sex:"Man",Nuyen:0,Lifestyle:"","Total Karma":0,"C. Karma":0,"Street Cred":0,Notoriety:0,Fame:0},fa={Agility:1,Body:1,Charisma:1,Edge:1,Essence:1,Initiative:1,Intuition:1,Logic:1,Reaction:1,Strength:1,Willpower:1},na={Name:"",Rating:0,Attribute:Object.keys(fa)[0],Page:1},ir={Name:"",Page:1},or={Name:"",Loyalty:0,Connection:0},lr={Weapon:"",Damage:0,Type:"Piercing",AP:0,Mode:"SA",RC:0,Ammo:0,Availabiliy:"",Page:1},dr={Weapon:"",Reach:0,Damage:1,"Strength Multiplier":.5,AP:0,Page:1},sa={Implant:"",Rating:0,Capacity:0,Essence:0,Notes:"",Page:1},ia={Qualitiy:"",Page:1},ur=Array.from({length:6},()=>Array.from({length:3},()=>!1)),vr=Array.from({length:4},()=>Array.from({length:3},()=>!1)),cr={Armor:"",Ballistic:0,Impact:0,Page:1},_r={Item:"",Quantity:1,Notes:"",Page:1},xt={Info:sr,Attributes:fa,Skills:na,Proficiencies:ir,KnowledgeSkills:na,Connections:or,RangedWeapons:lr,MeleeWeapons:dr,Cyberware:sa,Bioware:sa,PositiveQualities:ia,NegativeQualities:ia,PysicalCondition:ur,StunCondition:vr,Armor:cr,Inventory:_r};function It(c){function p(){c.style.height="auto",c.style.height=c.scrollHeight+"px"}return Ja().then(p),c.addEventListener("input",p),{destroy(){c.removeEventListener("input",p)}}}var hr=q('
'),br=q(""),pr=q(' '),yr=q(''),mr=q(""),fr=q(' '),gr=q(''),wr=q(''),Cr=q(' '),Ar=q(''),xr=q(''),Pr=q(''),kr=q(''),Nr=q(''),Sr=q(''),Ir=q(""),Rr=q(''),Wr=q(""),Er=q(''),Mr=q(""),Dr=q(""),Qr=q(''),Tr=q('

Character Info

Attributes

AgilityBodyCharismaEdge
EssenceInitiativeIntuitionLogic
ReactionStrengthWillpower

Skills

NameRatingAttributeDicePage

Proficiencies

NamePage

Knowledge Skills

NameRatingAttributeDicePage

Contacts

NameLoyaltyConnection

Ranged Weapons

WeaponDamageTypeAPModeRCAmmoAvailabiliyPage

Melee Weapons

WeaponReachDamageTypeMultiplierCal.DmgAPPage

Armor

ArmorBallisticImpactPage

Cyberware

CyberwareRatingCapacityEssenceNotesPage

Bioware

BiowareRatingCapacityEssenceNotesPage

Qualities

Positive

QualityPage

Negative

QualityPage

Pysical Condition

Stun Condition

Inventory

ItemQuantityNotesPage

Notes

',1);function Br(c,p){ba(p,!1);const l=kt();let C=ra(p,"currentCharacter",8),D=ra(p,"currentCharacterData",8),t=kt(D()??{});o(t,e(t).Info??=xt.Info),o(t,e(t).Attributes??=xt.Attributes),o(t,e(t).Skills??=[]),o(t,e(t).Connections??=[]),o(t,e(t).RangedWeapons??=[]),o(t,e(t).MeleeWeapons??=[]),o(t,e(t).Armor??=[]),o(t,e(t).Cyberware??=[]),o(t,e(t).Bioware??=[]),o(t,e(t).PositiveQualities??=[]),o(t,e(t).NegativeQualities??=[]),o(t,e(t).PysicalCondition??=xt.PysicalCondition),o(t,e(t).StunCondition??=xt.StunCondition),o(t,e(t).Inventory??=[]),o(t,e(t).Notes??={}),o(t,e(t).KnowledgeSkills??=[]),o(t,e(t).Proficiencies??=[]);let m=kt(null);const B={Metatype:"text",Age:"number",Sex:"text",Nuyen:"number",Lifestyle:"text","Total Karma":"number","C. Karma":"number","Street Cred":"number",Notoriety:"number",Fame:"number"};function K(i){const A={...xt[i]};o(t,e(t)[i]=[...e(t)[i],A])}function L(i,A){o(t,e(t)[i]=e(t)[i].filter((r,h)=>h!==A))}function Q(i){i>0&&window.open(`/assets/shadowrun/Shadowrun-4E-Corebook-p${i}.pdf`,"_blank")}function vt(i){i.ctrlKey&&i.key==="s"&&st()}async function st(){await fetch(`/api/shadowrun/characters_data/${C().id}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e(t))})}function pt(){const i=new Date().toISOString().split("T")[0];if(e(t).Notes[i]){alert("A note for today already exists!"),bt(m,i);return}o(t,e(t).Notes[i]=""),bt(m,i)}function R(){if(e(m)!==null&&confirm("Delete this note?")){delete e(t).Notes[e(m)],o(t,e(t).Notes=e(t).Notes);const i=Object.keys(e(t).Notes);i.length>0?bt(m,i.sort((A,r)=>new Date(r)-new Date(A))[0]):bt(m,null)}}function k(i){return new Date(i).toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"})}C()?.inventory,ea(()=>e(t),()=>{bt(l,Object.keys(e(t).Notes).sort((i,A)=>new Date(A)-new Date(i)))}),ea(()=>(e(l),e(m)),()=>{e(l).length>0&&e(m)===null&&bt(m,e(l)[0])}),Ya(),la();var S=Tr();N("keydown",za,vt);var j=Mt(S),Z=n(j);a(j);var at=s(j,4);z(at,5,()=>(e(t),V(()=>Object.entries(e(t).Info))),Y,(i,A,r)=>{var h=tr(()=>er(e(A),2));let d=()=>e(h)[0];var y=hr(),_=n(y);et(_,"for","field-"+r);var f=n(_,!0);a(_);var v=s(_,2);b(v),et(v,"id","field-"+r),a(y),ut(()=>{Pt(f,d()),et(v,"type",(d(),V(()=>B[d()]))),et(v,"min",(d(),V(()=>B[d()]==="number"?0:null))),et(v,"max",(d(),V(()=>B[d()]==="number"?100:null)))}),u(v,()=>e(t).Info[d()],x=>o(t,e(t).Info[d()]=x)),T(i,y)}),a(at);var it=s(at,4),J=n(it),w=n(J),E=s(n(w)),O=n(E);b(O),et(O,"id","field-Agility"),a(E);var dt=s(E,2),ct=n(dt);b(ct),et(ct,"id","field-Body"),a(dt);var ot=s(dt,2),rt=n(ot);b(rt),et(rt,"id","field-Charisma"),a(ot);var mt=s(ot,2),yt=n(mt);b(yt),et(yt,"id","field-Edge"),a(mt),a(w);var _t=s(w),ht=s(n(_t)),Rt=n(ht);b(Rt),et(Rt,"id","field-Essence"),a(ht);var Nt=s(ht,2),Ht=n(Nt);b(Ht),et(Ht,"id","field-Initiative"),a(Nt);var Ft=s(Nt,2),jt=n(Ft);b(jt),et(jt,"id","field-Charisma"),a(Ft);var Ce=s(Ft,2),$t=n(Ce);b($t),et($t,"id","field-Edge"),a(Ce),a(_t);var Ae=s(_t),Ut=s(n(Ae)),Gt=n(Ut);b(Gt),et(Gt,"id","field-Initiative"),a(Ut);var Jt=s(Ut,2),Yt=n(Jt);b(Yt),et(Yt,"id","field-Charisma"),a(Jt);var xe=s(Jt,2),zt=n(xe);b(zt),et(zt,"id","field-Edge"),a(xe),Za(),a(Ae),a(J),a(it);var Zt=s(it,4),Pe=s(n(Zt));z(Pe,5,()=>(e(t),V(()=>e(t).Skills)),Y,(i,A,r)=>{var h=pr(),d=n(h),y=n(d);At(y),St(y,W=>It?.(W)),gt(()=>u(y,()=>e(t).Skills[r].Name,W=>o(t,e(t).Skills[r].Name=W))),a(d);var _=s(d),f=n(_);b(f),a(_);var v=s(_),x=n(v);ut(()=>{e(t),Lt(()=>{})}),z(x,5,()=>(me(xt),V(()=>Object.keys(xt.Attributes))),Y,(W,I)=>{var tt=br(),Ct=n(tt,!0);a(tt);var ft={};ut(()=>{Pt(Ct,e(I)),ft!==(ft=e(I))&&(tt.value=(tt.__value=e(I))??"")}),T(W,tt)}),a(x),a(v);var P=s(v),M=n(P),g=n(M,!0);a(M),a(P);var H=s(P),F=n(H);b(F),a(H);var U=s(H),X=n(U);a(U);var G=s(U),nt=n(G);a(G),a(h),ut(()=>Pt(g,(e(A),e(t),V(()=>e(A).Rating+e(t).Attributes[e(A).Attribute])))),u(f,()=>e(t).Skills[r].Rating,W=>o(t,e(t).Skills[r].Rating=W)),Ot(x,()=>e(t).Skills[r].Attribute,W=>o(t,e(t).Skills[r].Attribute=W)),u(F,()=>e(t).Skills[r].Page,W=>o(t,e(t).Skills[r].Page=W)),N("click",X,()=>Q(e(t).Skills[r].Page)),N("click",nt,()=>L("Skills",r)),T(i,h)}),a(Pe),a(Zt);var ke=s(Zt,2),te=s(ke,4),Ne=s(n(te));z(Ne,5,()=>(e(t),V(()=>e(t).Proficiencies)),Y,(i,A,r)=>{var h=yr(),d=n(h),y=n(d);At(y),St(y,g=>It?.(g)),gt(()=>u(y,()=>e(t).Proficiencies[r].Name,g=>o(t,e(t).Proficiencies[r].Name=g))),a(d);var _=s(d),f=n(_);b(f),a(_);var v=s(_),x=n(v);a(v);var P=s(v),M=n(P);a(P),a(h),u(f,()=>e(t).Proficiencies[r].Page,g=>o(t,e(t).Proficiencies[r].Page=g)),N("click",x,()=>Q(e(t).Proficiencies[r].Page)),N("click",M,()=>L("Proficiencies",r)),T(i,h)}),a(Ne),a(te);var Se=s(te,2),ee=s(Se,4),Ie=s(n(ee));z(Ie,5,()=>(e(t),V(()=>e(t).KnowledgeSkills)),Y,(i,A,r)=>{var h=fr(),d=n(h),y=n(d);At(y),St(y,W=>It?.(W)),gt(()=>u(y,()=>e(t).KnowledgeSkills[r].Name,W=>o(t,e(t).KnowledgeSkills[r].Name=W))),a(d);var _=s(d),f=n(_);b(f),a(_);var v=s(_),x=n(v);ut(()=>{e(t),Lt(()=>{})}),z(x,5,()=>(me(xt),V(()=>Object.keys(xt.Attributes))),Y,(W,I)=>{var tt=mr(),Ct=n(tt,!0);a(tt);var ft={};ut(()=>{Pt(Ct,e(I)),ft!==(ft=e(I))&&(tt.value=(tt.__value=e(I))??"")}),T(W,tt)}),a(x),a(v);var P=s(v),M=n(P),g=n(M,!0);a(M),a(P);var H=s(P),F=n(H);b(F),a(H);var U=s(H),X=n(U);a(U);var G=s(U),nt=n(G);a(G),a(h),ut(()=>Pt(g,(e(A),e(t),V(()=>e(A).Rating+e(t).Attributes[e(A).Attribute])))),u(f,()=>e(t).KnowledgeSkills[r].Rating,W=>o(t,e(t).KnowledgeSkills[r].Rating=W)),Ot(x,()=>e(t).KnowledgeSkills[r].Attribute,W=>o(t,e(t).KnowledgeSkills[r].Attribute=W)),u(F,()=>e(t).KnowledgeSkills[r].Page,W=>o(t,e(t).KnowledgeSkills[r].Page=W)),N("click",X,()=>Q(e(t).KnowledgeSkills[r].Page)),N("click",nt,()=>L("KnowledgeSkills",r)),T(i,h)}),a(Ie),a(ee);var Re=s(ee,2),ae=s(Re,4),We=s(n(ae));z(We,5,()=>(e(t),V(()=>e(t).Connections)),Y,(i,A,r)=>{var h=gr(),d=n(h),y=n(d);At(y),St(y,g=>It?.(g)),gt(()=>u(y,()=>e(t).Connections[r].Name,g=>o(t,e(t).Connections[r].Name=g))),a(d);var _=s(d),f=n(_);b(f),a(_);var v=s(_),x=n(v);b(x),a(v);var P=s(v),M=n(P);a(P),a(h),u(f,()=>e(t).Connections[r].Loyalty,g=>o(t,e(t).Connections[r].Loyalty=g)),u(x,()=>e(t).Connections[r].Connection,g=>o(t,e(t).Connections[r].Connection=g)),N("click",M,()=>L("Connections",r)),T(i,h)}),a(We),a(ae);var Ee=s(ae,2),re=s(Ee,4),Me=s(n(re));z(Me,5,()=>(e(t),V(()=>e(t).RangedWeapons)),Y,(i,A,r)=>{var h=wr(),d=n(h),y=n(d);At(y),St(y,$=>It?.($)),gt(()=>u(y,()=>e(t).RangedWeapons[r].Weapon,$=>o(t,e(t).RangedWeapons[r].Weapon=$))),a(d);var _=s(d),f=n(_);b(f),a(_);var v=s(_),x=n(v);At(x),St(x,$=>It?.($)),gt(()=>u(x,()=>e(t).RangedWeapons[r].Type,$=>o(t,e(t).RangedWeapons[r].Type=$))),a(v);var P=s(v),M=n(P);b(M),a(P);var g=s(P),H=n(g);At(H),St(H,$=>It?.($)),gt(()=>u(H,()=>e(t).RangedWeapons[r].Mode,$=>o(t,e(t).RangedWeapons[r].Mode=$))),a(g);var F=s(g),U=n(F);b(U),a(F);var X=s(F),G=n(X);b(G),a(X);var nt=s(X),W=n(nt);At(W),St(W,$=>It?.($)),gt(()=>u(W,()=>e(t).RangedWeapons[r].Availabiliy,$=>o(t,e(t).RangedWeapons[r].Availabiliy=$))),a(nt);var I=s(nt),tt=n(I);b(tt),a(I);var Ct=s(I),ft=n(Ct);a(Ct);var Bt=s(Ct),lt=n(Bt);a(Bt),a(h),u(f,()=>e(t).RangedWeapons[r].Damage,$=>o(t,e(t).RangedWeapons[r].Damage=$)),u(M,()=>e(t).RangedWeapons[r].AP,$=>o(t,e(t).RangedWeapons[r].AP=$)),u(U,()=>e(t).RangedWeapons[r].RC,$=>o(t,e(t).RangedWeapons[r].RC=$)),u(G,()=>e(t).RangedWeapons[r].Ammo,$=>o(t,e(t).RangedWeapons[r].Ammo=$)),u(tt,()=>e(t).Connections[r].Page,$=>o(t,e(t).Connections[r].Page=$)),N("click",ft,()=>Q(e(t).Connections[r].Page)),N("click",lt,()=>L("RangedWeapons",r)),T(i,h)}),a(Me),a(re);var De=s(re,2),ne=s(De,4),Qe=s(n(ne));z(Qe,5,()=>(e(t),V(()=>e(t).MeleeWeapons)),Y,(i,A,r)=>{var h=Cr(),d=n(h),y=n(d);b(y),a(d);var _=s(d),f=n(_);b(f),a(_);var v=s(_),x=n(v);b(x),a(v);var P=s(v),M=n(P);b(M),a(P);var g=s(P),H=n(g);b(H),a(g);var F=s(g),U=n(F),X=n(U,!0);a(U),a(F);var G=s(F),nt=n(G);b(nt),a(G);var W=s(G),I=n(W);b(I),a(W);var tt=s(W),Ct=n(tt);a(tt);var ft=s(tt),Bt=n(ft);a(ft),a(h),ut(()=>Pt(X,(e(A),e(t),V(()=>e(A)["Strength Multiplier"]*e(t).Attributes.Strength+e(A).Damage)))),u(y,()=>e(t).MeleeWeapons[r].Weapon,lt=>o(t,e(t).MeleeWeapons[r].Weapon=lt)),u(f,()=>e(t).MeleeWeapons[r].Reach,lt=>o(t,e(t).MeleeWeapons[r].Reach=lt)),u(x,()=>e(t).MeleeWeapons[r].Damage,lt=>o(t,e(t).MeleeWeapons[r].Damage=lt)),u(M,()=>e(t).MeleeWeapons[r].Type,lt=>o(t,e(t).MeleeWeapons[r].Type=lt)),u(H,()=>e(t).MeleeWeapons[r]["Strength Multiplier"],lt=>o(t,e(t).MeleeWeapons[r]["Strength Multiplier"]=lt)),u(nt,()=>e(t).MeleeWeapons[r].AP,lt=>o(t,e(t).MeleeWeapons[r].AP=lt)),u(I,()=>e(t).Connections[r].Page,lt=>o(t,e(t).Connections[r].Page=lt)),N("click",Ct,()=>Q(e(t).Connections[r].Page)),N("click",Bt,()=>L("MeleeWeapons",r)),T(i,h)}),a(Qe),a(ne);var Te=s(ne,2),se=s(Te,4),Be=s(n(se));z(Be,5,()=>(e(t),V(()=>e(t).Armor)),Y,(i,A,r)=>{var h=Ar(),d=n(h),y=n(d);b(y),a(d);var _=s(d),f=n(_);b(f),a(_);var v=s(_),x=n(v);b(x),a(v);var P=s(v),M=n(P);b(M),a(P);var g=s(P),H=n(g);a(g);var F=s(g),U=n(F);a(F),a(h),u(y,()=>e(t).Armor[r].Armor,X=>o(t,e(t).Armor[r].Armor=X)),u(f,()=>e(t).Armor[r].Ballistic,X=>o(t,e(t).Armor[r].Ballistic=X)),u(x,()=>e(t).Armor[r].Impact,X=>o(t,e(t).Armor[r].Impact=X)),u(M,()=>e(t).Armor[r].Page,X=>o(t,e(t).Armor[r].Page=X)),N("click",H,()=>Q(e(t).Armor[r].Page)),N("click",U,()=>L("Armor",r)),T(i,h)}),a(Be),a(se);var Ke=s(se,2),ie=s(Ke,4),Le=s(n(ie));z(Le,5,()=>(e(t),V(()=>e(t).Cyberware)),Y,(i,A,r)=>{var h=xr(),d=n(h),y=n(d);b(y),a(d);var _=s(d),f=n(_);b(f),a(_);var v=s(_),x=n(v);b(x),a(v);var P=s(v),M=n(P);b(M),a(P);var g=s(P),H=n(g);b(H),a(g);var F=s(g),U=n(F);b(U),a(F);var X=s(F),G=n(X);a(X);var nt=s(X),W=n(nt);a(nt),a(h),u(y,()=>e(t).Cyberware[r].Implant,I=>o(t,e(t).Cyberware[r].Implant=I)),u(f,()=>e(t).Cyberware[r].Rating,I=>o(t,e(t).Cyberware[r].Rating=I)),u(x,()=>e(t).Cyberware[r].Capacity,I=>o(t,e(t).Cyberware[r].Capacity=I)),u(M,()=>e(t).Cyberware[r].Essence,I=>o(t,e(t).Cyberware[r].Essence=I)),u(H,()=>e(t).Cyberware[r].Notes,I=>o(t,e(t).Cyberware[r].Notes=I)),u(U,()=>e(t).Connections[r].Page,I=>o(t,e(t).Connections[r].Page=I)),N("click",G,()=>Q(e(t).Connections[r].Page)),N("click",W,()=>L("Cyberware",r)),T(i,h)}),a(Le),a(ie);var Oe=s(ie,2),oe=s(Oe,4),Ve=s(n(oe));z(Ve,5,()=>(e(t),V(()=>e(t).Bioware)),Y,(i,A,r)=>{var h=Pr(),d=n(h),y=n(d);b(y),a(d);var _=s(d),f=n(_);b(f),a(_);var v=s(_),x=n(v);b(x),a(v);var P=s(v),M=n(P);b(M),a(P);var g=s(P),H=n(g);b(H),a(g);var F=s(g),U=n(F);b(U),a(F);var X=s(F),G=n(X);a(X);var nt=s(X),W=n(nt);a(nt),a(h),u(y,()=>e(t).Bioware[r].Implant,I=>o(t,e(t).Bioware[r].Implant=I)),u(f,()=>e(t).Bioware[r].Rating,I=>o(t,e(t).Bioware[r].Rating=I)),u(x,()=>e(t).Bioware[r].Capacity,I=>o(t,e(t).Bioware[r].Capacity=I)),u(M,()=>e(t).Bioware[r].Essence,I=>o(t,e(t).Bioware[r].Essence=I)),u(H,()=>e(t).Bioware[r].Notes,I=>o(t,e(t).Bioware[r].Notes=I)),u(U,()=>e(t).Connections[r].Page,I=>o(t,e(t).Connections[r].Page=I)),N("click",G,()=>Q(e(t).Connections[r].Page)),N("click",W,()=>L("Bioware",r)),T(i,h)}),a(Ve),a(oe);var Xe=s(oe,2),le=s(Xe,6),qe=s(n(le));z(qe,5,()=>(e(t),V(()=>e(t).PositiveQualities)),Y,(i,A,r)=>{var h=kr(),d=n(h),y=n(d);b(y),a(d);var _=s(d),f=n(_);b(f),a(_);var v=s(_),x=n(v);a(v);var P=s(v),M=n(P);a(P),a(h),u(y,()=>e(t).PositiveQualities[r].Qualitiy,g=>o(t,e(t).PositiveQualities[r].Qualitiy=g)),u(f,()=>e(t).PositiveQualities[r].Page,g=>o(t,e(t).PositiveQualities[r].Page=g)),N("click",x,()=>Q(e(t).PositiveQualities[r].Page)),N("click",M,()=>L("PositiveQualities",r)),T(i,h)}),a(qe),a(le);var He=s(le,2),de=s(He,4),Fe=s(n(de));z(Fe,5,()=>(e(t),V(()=>e(t).NegativeQualities)),Y,(i,A,r)=>{var h=Nr(),d=n(h),y=n(d);b(y),a(d);var _=s(d),f=n(_);b(f),a(_);var v=s(_),x=n(v);a(v);var P=s(v),M=n(P);a(P),a(h),u(y,()=>e(t).NegativeQualities[r].Qualitiy,g=>o(t,e(t).NegativeQualities[r].Qualitiy=g)),u(f,()=>e(t).NegativeQualities[r].Page,g=>o(t,e(t).NegativeQualities[r].Page=g)),N("click",x,()=>Q(e(t).NegativeQualities[r].Page)),N("click",M,()=>L("NegativeQualities",r)),T(i,h)}),a(Fe),a(de);var je=s(de,2),ue=s(je,4),$e=n(ue);z($e,5,()=>(e(t),V(()=>e(t).PysicalCondition)),Y,(i,A,r)=>{var h=Ir();z(h,5,()=>e(A),Y,(d,y,_)=>{var f=Sr(),v=n(f);b(v),a(f),aa(v,()=>e(t).PysicalCondition[r][_],x=>o(t,e(t).PysicalCondition[r][_]=x)),T(d,f)}),a(h),T(i,h)}),a($e),a(ue);var ve=s(ue,4),Ue=n(ve);z(Ue,5,()=>(e(t),V(()=>e(t).StunCondition)),Y,(i,A,r)=>{var h=Wr();z(h,5,()=>e(A),Y,(d,y,_)=>{var f=Rr(),v=n(f);b(v),a(f),aa(v,()=>e(t).StunCondition[r][_],x=>o(t,e(t).StunCondition[r][_]=x)),T(d,f)}),a(h),T(i,h)}),a(Ue),a(ve);var ce=s(ve,4),Ge=s(n(ce));z(Ge,5,()=>(e(t),V(()=>e(t).Inventory)),Y,(i,A,r,h)=>{var d=Er(),y=n(d),_=n(y);b(_),a(y);var f=s(y),v=n(f);b(v),a(f);var x=s(f),P=n(x);b(P),a(x);var M=s(x),g=n(M);b(g),a(M);var H=s(M),F=n(H);a(H);var U=s(H),X=n(U);a(U),a(d),u(_,()=>e(t).Inventory[r].Item,G=>o(t,e(t).Inventory[r].Item=G)),u(v,()=>e(t).Inventory[r].Quantity,G=>o(t,e(t).Inventory[r].Quantity=G)),u(P,()=>e(t).Inventory[r].Notes,G=>o(t,e(t).Inventory[r].Notes=G)),u(g,()=>e(t).Inventory[r].Page,G=>o(t,e(t).Inventory[r].Page=G)),N("click",F,()=>Q(e(t).Inventory[r].Page)),N("click",X,()=>L("Inventory",r)),T(i,d)}),a(Ge),a(ce);var Je=s(ce,2),_e=s(Je,4),Qt=n(_e);ut(()=>{e(m),Lt(()=>{e(l)})});var ga=n(Qt);{var wa=i=>{var A=Mr();A.value=(A.__value=null)??"",T(i,A)},Ca=i=>{var A=oa(),r=Mt(A);z(r,1,()=>e(l),Y,(h,d)=>{var y=Dr(),_=n(y,!0);a(y);var f={};ut(v=>{Pt(_,v),f!==(f=e(d))&&(y.value=(y.__value=e(d))??"")},[()=>(e(d),V(()=>k(e(d))))]),T(h,y)}),T(i,A)};Vt(ga,i=>{e(l),V(()=>e(l).length===0)?i(wa):i(Ca,!1)})}a(Qt);var Ye=s(Qt,2),Aa=s(Ye,2);{var xa=i=>{var A=Qr();N("click",A,R),T(i,A)};Vt(Aa,i=>{e(m)!==null&&i(xa)})}a(_e);var he=s(_e,2),Tt=n(he);At(Tt),a(he);var Pa=s(he,2);ut(()=>{Pt(Z,`Name: ${me(C()),V(()=>C().name)??""}`),et(Tt,"placeholder",(e(l),V(()=>e(l).length===0?"Click 'New Note' to start...":"Write your session notes here..."))),Tt.disabled=e(m)===null}),u(O,()=>e(t).Attributes.Agility,i=>o(t,e(t).Attributes.Agility=i)),u(ct,()=>e(t).Attributes.Body,i=>o(t,e(t).Attributes.Body=i)),u(rt,()=>e(t).Attributes.Charisma,i=>o(t,e(t).Attributes.Charisma=i)),u(yt,()=>e(t).Attributes.Edge,i=>o(t,e(t).Attributes.Edge=i)),u(Rt,()=>e(t).Attributes.Essence,i=>o(t,e(t).Attributes.Essence=i)),u(Ht,()=>e(t).Attributes.Initiative,i=>o(t,e(t).Attributes.Initiative=i)),u(jt,()=>e(t).Attributes.Intuition,i=>o(t,e(t).Attributes.Intuition=i)),u($t,()=>e(t).Attributes.Logic,i=>o(t,e(t).Attributes.Logic=i)),u(Gt,()=>e(t).Attributes.Reaction,i=>o(t,e(t).Attributes.Reaction=i)),u(Yt,()=>e(t).Attributes.Strength,i=>o(t,e(t).Attributes.Strength=i)),u(zt,()=>e(t).Attributes.Willpower,i=>o(t,e(t).Attributes.Willpower=i)),N("click",ke,()=>K("Skills")),N("click",Se,()=>K("Proficiencies")),N("click",Re,()=>K("KnowledgeSkills")),N("click",Ee,()=>K("Connections")),N("click",De,()=>K("RangedWeapons")),N("click",Te,()=>K("MeleeWeapons")),N("click",Ke,()=>K("Armor")),N("click",Oe,()=>K("Cyberware")),N("click",Xe,()=>K("Bioware")),N("click",He,()=>K("PositiveQualities")),N("click",je,()=>K("NegativeQualities")),N("click",Je,()=>K("Inventory")),Ot(Qt,()=>e(m),i=>bt(m,i)),N("click",Ye,pt),u(Tt,()=>e(t).Notes[e(m)],i=>o(t,e(t).Notes[e(m)]=i)),N("click",Pa,st),T(c,S),pa()}var Kr=q("

No characters found.

"),Lr=q(""),Or=q(" ",1),Vr=q('

Shadowrun Character Manager

Load Existing Character

Create New Character

',1);function Yr(c,p){ba(p,!1);let l=kt([]),C=kt(null),D=kt(null),t=kt(null),m=kt("");async function B(){const k=await fetch("/api/shadowrun/characters");k.ok&&bt(l,await k.json())}async function K(k){const S=await fetch(`/api/shadowrun/characters_data/${k}`);S.ok&&bt(D,await S.json())}ka(B);async function L(){if(e(t)==null)return;const k=await fetch(`/api/shadowrun/characters/${e(t)}`);if(k.ok){const S=await k.json();await K(S.id),bt(C,S)}}async function Q(){if(!e(m))return;const k=await fetch("/api/shadowrun/characters",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e(m)})});if(k.ok){const S=await k.json();bt(C,S),e(l).push(S)}}la();var vt=oa(),st=Mt(vt);{var pt=k=>{var S=Vr(),j=s(Mt(S),2),Z=s(n(j),2);{var at=O=>{var dt=Kr();T(O,dt)},it=O=>{var dt=Or(),ct=Mt(dt);ut(()=>{e(t),Lt(()=>{e(l)})});var ot=n(ct);ot.value=(ot.__value=null)??"";var rt=s(ot);z(rt,1,()=>e(l),Y,(yt,_t)=>{var ht=Lr(),Rt=n(ht,!0);a(ht);var Nt={};ut(()=>{Pt(Rt,e(_t).name),Nt!==(Nt=e(_t).id)&&(ht.value=(ht.__value=e(_t).id)??"")}),T(yt,ht)}),a(ct);var mt=s(ct,2);ut(()=>mt.disabled=e(t)===null),Ot(ct,()=>e(t),yt=>bt(t,yt)),N("click",mt,L),T(O,dt)};Vt(Z,O=>{e(l).length===0?O(at):O(it,!1)})}a(j);var J=s(j,2),w=s(n(J),2);b(w);var E=s(w,2);a(J),u(w,()=>e(m),O=>bt(m,O)),N("click",E,Q),T(k,S)},R=k=>{Br(k,{get currentCharacter(){return e(C)},get currentCharacterData(){return e(D)}})};Vt(st,k=>{e(C)?k(R,!1):k(pt)})}T(c,vt),pa()}export{Yr as component}; diff --git a/frontend/build/_app/immutable/nodes/3.Cbh4JYE_.js b/frontend/build/_app/immutable/nodes/3.Cbh4JYE_.js deleted file mode 100644 index 09c6a2b..0000000 --- a/frontend/build/_app/immutable/nodes/3.Cbh4JYE_.js +++ /dev/null @@ -1 +0,0 @@ -import{f as H,a as O,c as ta}from"../chunks/K5GTgIDA.js";import{i as ea}from"../chunks/DgU0EQmz.js";import{o as fa}from"../chunks/CgHyU30y.js";import{e as ve,h as St,a9 as ga,o as aa,a as Ca,b as wa,A as e,R as Aa,d as xa,H as Na,s as Fe,f as ce,w as Et,ag as ka,aI as Pa,v as pe,y as Sa,aO as Vt,aP as Xt,c as Lt,aQ as ra,aG as na,aR as ia,G as gt,aj as je,ar as $e,k as sa,n as Wa,aS as he,q as Ia,m as oa,aT as Ra,aU as Ea,ah as Ma,aV as Da,aF as Qa,aW as Ta,U as Ba,aK as wt,u as q,l as La,p as Oa,aX as Va,aY as Xa,ay as qa,t as Ha,z as la,I as o,aZ as Ue,a_ as Ka,a$ as Fa,a8 as Mt,D as n,F as a,C as i,as as ja,K as bt,b0 as be,b1 as kt,a6 as Ge,B as da,J as ct,aN as $a,b2 as Ua}from"../chunks/DxMC-E2z.js";import{e as W,s as Wt}from"../chunks/V6M2jInR.js";import{i as Ot}from"../chunks/BJWcdj5l.js";import{r as _,s as tt}from"../chunks/HgGInnYf.js";import{b as v,a as Je}from"../chunks/Cp1RMksV.js";import{p as Ye}from"../chunks/Cx2Kkjq-.js";function z(d,c){return c}function Ga(d,c,l){for(var f=d.items,R=[],t=c.length,p=0;p0&&R.length===0&&l!==null;if(E){var B=l.parentNode;Qa(B),B.append(l),f.clear(),ft(d,c[0].prev,c[t-1].next)}Ta(R,()=>{for(var L=0;L{var V=l();return ia(V)?V:V==null?[]:na(V)}),k,w;function A(){Ja(w,k,E,rt,p,R,c,f,l),t!==null&&(k.length===0?M?sa(M):M=pe(()=>t(p)):M!==null&&Wa(M,()=>{M=null}))}wa(()=>{w??=Ba,k=e(_t);var V=k.length;if(lt&&V===0)return;lt=V===0;let J=!1;if(St){var et=xa(p)===Na;et!==(V===0)&&(p=Fe(),ve(p),ce(!1),J=!0)}if(St){for(var nt=null,j,m=0;m0&&ve(Fe())}if(St)V===0&&t&&(M=pe(()=>t(p)));else if(Sa()){var ot=new Set,dt=Lt;for(m=0;m0){var At=(p&ra)!==0&<===0?R:null;if(L){for(I=0;I{if(V!==void 0)for(m of V)m.a?.apply()}),d.first=l.first&&l.first.e,d.last=A&&A.e;for(var Ct of f.values())oa(Ct.e);f.clear()}function ua(d,c,l,f){(f&Vt)!==0&&$e(d.v,c),(f&Xt)!==0?$e(d.i,l):d.i=l}function ye(d,c,l,f,R,t,p,E,B,L,M){var lt=(B&Vt)!==0,rt=(B&Ra)===0,_t=lt?rt?gt(R,!1,!1):je(R):R,k=(B&Xt)===0?p:je(p),w={i:k,v:_t,k:t,a:null,e:null,prev:l,next:f};try{if(d===null){var A=document.createDocumentFragment();A.append(d=aa())}return w.e=pe(()=>E(d,_t,k,L),St),w.e.prev=l&&l.e,w.e.next=f&&f.e,l===null?M||(c.first=w):(l.next=w,l.e.next=w.e),f!==null&&(f.prev=w,f.e.prev=w.e),w}finally{}}function _e(d,c,l){for(var f=d.next?d.next.e.nodes_start:l,R=c?c.e.nodes_start:l,t=d.e.nodes_start;t!==null&&t!==f;){var p=Ma(t);R.before(t),t=p}}function ft(d,c,l){c===null?d.first=l:(c.next=l,c.e.next=l&&l.e),l!==null&&(l.prev=c,l.e.prev=c&&c.e)}function It(d,c,l){wt(()=>{var f=q(()=>c(d,l?.())||{});if(f?.destroy)return()=>f.destroy()})}function va(d,c,l=!1){if(d.multiple){if(c==null)return;if(!ia(c))return Va();for(var f of d.options)f.selected=c.includes(Dt(f));return}for(f of d.options){var R=Dt(f);if(Xa(R,c)){f.selected=!0;return}}(!l||c!==void 0)&&(d.selectedIndex=-1)}function Ya(d){var c=new MutationObserver(()=>{va(d,d.__value)});c.observe(d,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),qa(()=>{c.disconnect()})}function me(d,c,l=c){var f=new WeakSet,R=!0;La(d,"change",t=>{var p=t?"[selected]":":checked",E;if(d.multiple)E=[].map.call(d.querySelectorAll(p),Dt);else{var B=d.querySelector(p)??d.querySelector("option:not([disabled])");E=B&&Dt(B)}l(E),Lt!==null&&f.add(Lt)}),wt(()=>{var t=c();if(d===document.activeElement){var p=Oa??Lt;if(f.has(p))return}if(va(d,t,R),R&&t===void 0){var E=d.querySelector(":checked");E!==null&&(t=Dt(E),l(t))}d.__value=t,R=!1}),Ya(d)}function Dt(d){return"__value"in d?d.__value:d.value}const za={Metatype:"",Age:30,Sex:"Man",Nuyen:0,Lifestyle:"","Total Karma":0,"C. Karma":0,"Street Cred":0,Notoriety:0,Fame:0},ca={Agility:1,Body:1,Charisma:1,Edge:1,Essence:1,Initiative:1,Intuition:1,Logic:1,Reaction:1,Strength:1,Willpower:1},Za={Name:"",Rating:0,Attribute:Object.keys(ca)[0]},tr={Name:"",Loyalty:0,Connection:0},er={Weapon:"",Damage:0,Type:"Piercing",AP:0,Mode:"SA",RC:0,Ammo:0,Availabiliy:""},ar={Weapon:"",Reach:0,Damage:1,"Strength Multiplier":.5,AP:0},ze={Implant:"",Rating:0,Essence:0,Notes:""},Ze={Qualitiy:""},rr=Array.from({length:6},()=>Array.from({length:3},()=>!1)),nr=Array.from({length:4},()=>Array.from({length:3},()=>!1)),ir={Armor:"",Ballistic:0,Impact:0},sr={Item:"",Quantity:1,Notes:"",Page:1},Pt={Info:za,Attributes:ca,Skills:Za,Connections:tr,RangedWeapons:er,MeleeWeapons:ar,Cyberware:ze,Bioware:ze,PositiveQualities:Ze,NegativeQualities:Ze,PysicalCondition:rr,StunCondition:nr,Armor:ir,Inventory:sr};function Rt(d){function c(){d.style.height="auto",d.style.height=d.scrollHeight+"px"}return Ha().then(c),d.addEventListener("input",c),{destroy(){d.removeEventListener("input",c)}}}var or=H('
'),lr=H(""),dr=H(' '),ur=H(''),vr=H(''),cr=H(' '),hr=H(''),_r=H(''),pr=H(''),br=H(''),yr=H(''),mr=H(''),fr=H(""),gr=H(''),Cr=H(""),wr=H(''),Ar=H(""),xr=H(""),Nr=H(''),kr=H('

Character Info

Attributes

AgilityBodyCharismaEdge
EssenceInitiativeIntuitionLogic
ReactionStrengthWillpower

Skills

NameRatingAttributeDicePage

Contacts

NameLoyaltyConnection

Ranged Weapons

WeaponDamageTypeAPModeRCAmmoAvailabiliyPage

Melee Weapons

WeaponReachDamageTypeMultiplierCal.DmgAPPage

Armor

ArmorBallisticImpactPage

Cyberware

CyberwareRatingEssenceNotesPage

Bioware

BiowareRatingEssenceNotesPage

Qualities

Positive

QualityPage

Negative

QualityPage

Pysical Condition

Stun Condition

Inventory

ItemQuantityNotesPage

Notes

',1);function Pr(d,c){la(c,!1);const l=gt();let f=Ye(c,"currentCharacter",8),R=Ye(c,"currentCharacterData",8),t=gt(R()??{});o(t,e(t).Info??=Pt.Info),o(t,e(t).Attributes??=Pt.Attributes),o(t,e(t).Skills??=[]),o(t,e(t).Connections??=[]),o(t,e(t).RangedWeapons??=[]),o(t,e(t).MeleeWeapons??=[]),o(t,e(t).Armor??=[]),o(t,e(t).Cyberware??=[]),o(t,e(t).Bioware??=[]),o(t,e(t).PositiveQualities??=[]),o(t,e(t).NegativeQualities??=[]),o(t,e(t).PysicalCondition??=Pt.PysicalCondition),o(t,e(t).StunCondition??=Pt.StunCondition),o(t,e(t).Inventory??={}),o(t,e(t).Notes??={});let p=gt(null);const E={Metatype:"text",Age:"number",Sex:"text",Nuyen:"number",Lifestyle:"text","Total Karma":"number","C. Karma":"number","Street Cred":"number",Notoriety:"number",Fame:"number"};function B(s){const x={...Pt[s]};o(t,e(t)[s]=[...e(t)[s],x])}function L(s,x){o(t,e(t)[s]=e(t)[s].filter((r,y)=>y!==x))}function M(s){s>0&&window.open(`/assets/shadowrun/Shadowrun-4E-Corebook-p${s}.pdf`,"_blank")}function lt(s){s.ctrlKey&&s.key==="s"&&rt()}async function rt(){await fetch(`/api/shadowrun/characters_data/${f().id}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e(t))})}function _t(){const s=new Date().toISOString().split("T")[0];if(e(t).Notes[s]){alert("A note for today already exists!"),ct(p,s);return}o(t,e(t).Notes[s]=""),ct(p,s)}function k(){if(e(p)!==null&&confirm("Delete this note?")){delete e(t).Notes[e(p)],o(t,e(t).Notes=e(t).Notes);const s=Object.keys(e(t).Notes);s.length>0?ct(p,s.sort((x,r)=>new Date(r)-new Date(x))[0]):ct(p,null)}}function w(s){return new Date(s).toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"})}f()?.inventory,Ue(()=>e(t),()=>{ct(l,Object.keys(e(t).Notes).sort((s,x)=>new Date(x)-new Date(s)))}),Ue(()=>(e(l),e(p)),()=>{e(l).length>0&&e(p)===null&&ct(p,e(l)[0])}),Ka(),ea();var A=kr();W("keydown",Fa,lt);var V=Mt(A),J=n(V);a(V);var et=i(V,4);Z(et,5,()=>(e(t),q(()=>Object.entries(e(t).Info))),z,(s,x,r)=>{var y=$a(()=>Ua(e(x),2));let u=()=>e(y)[0];var g=or(),b=n(g);tt(b,"for","field-"+r);var C=n(b,!0);a(b);var h=i(b,2);_(h),tt(h,"id","field-"+r),a(g),bt(()=>{Wt(C,u()),tt(h,"type",(u(),q(()=>E[u()]))),tt(h,"min",(u(),q(()=>E[u()]==="number"?0:null))),tt(h,"max",(u(),q(()=>E[u()]==="number"?100:null)))}),v(h,()=>e(t).Info[u()],P=>o(t,e(t).Info[u()]=P)),O(s,g)}),a(et);var nt=i(et,4),j=n(nt),m=n(j),I=i(n(m)),D=n(I);_(D),tt(D,"id","field-Agility"),a(I);var ot=i(I,2),dt=n(ot);_(dt),tt(dt,"id","field-Body"),a(ot);var it=i(ot,2),at=n(it);_(at),tt(at,"id","field-Charisma"),a(it);var yt=i(it,2),pt=n(yt);_(pt),tt(pt,"id","field-Edge"),a(yt),a(m);var ut=i(m),vt=i(n(ut)),At=n(vt);_(At),tt(At,"id","field-Essence"),a(vt);var Ct=i(vt,2),qt=n(Ct);_(qt),tt(qt,"id","field-Initiative"),a(Ct);var Ht=i(Ct,2),Kt=n(Ht);_(Kt),tt(Kt,"id","field-Charisma"),a(Ht);var fe=i(Ht,2),Ft=n(fe);_(Ft),tt(Ft,"id","field-Edge"),a(fe),a(ut);var ge=i(ut),jt=i(n(ge)),$t=n(jt);_($t),tt($t,"id","field-Initiative"),a(jt);var Ut=i(jt,2),Gt=n(Ut);_(Gt),tt(Gt,"id","field-Charisma"),a(Ut);var Ce=i(Ut,2),Jt=n(Ce);_(Jt),tt(Jt,"id","field-Edge"),a(Ce),ja(),a(ge),a(j),a(nt);var Yt=i(nt,4),we=i(n(Yt));Z(we,5,()=>(e(t),q(()=>e(t).Skills)),z,(s,x,r)=>{var y=dr(),u=n(y),g=n(u);kt(g),It(g,G=>Rt?.(G)),wt(()=>v(g,()=>e(t).Skills[r].Name,G=>o(t,e(t).Skills[r].Name=G))),a(u);var b=i(u),C=n(b);_(C),a(b);var h=i(b),P=n(h);bt(()=>{e(t),be(()=>{})}),Z(P,5,()=>(Ge(Pt),q(()=>Object.keys(Pt.Attributes))),z,(G,mt)=>{var ht=lr(),xt=n(ht,!0);a(ht);var Nt={};bt(()=>{Wt(xt,e(mt)),Nt!==(Nt=e(mt))&&(ht.value=(ht.__value=e(mt))??"")}),O(G,ht)}),a(P),a(h);var S=i(h),T=n(S),N=n(T,!0);a(T),a(S);var $=i(S),K=n($);_(K),a($);var Y=i($),F=n(Y);a(Y);var U=i(Y),Q=n(U);a(U),a(y),bt(()=>Wt(N,(e(x),e(t),q(()=>e(x).Rating+e(t).Attributes[e(x).Attribute])))),v(C,()=>e(t).Skills[r].Rating,G=>o(t,e(t).Skills[r].Rating=G)),me(P,()=>e(t).Skills[r].Attribute,G=>o(t,e(t).Skills[r].Attribute=G)),v(K,()=>e(t).Skills[r].Page,G=>o(t,e(t).Skills[r].Page=G)),W("click",F,()=>M(e(t).Skills[r].Page)),W("click",Q,()=>L("Skills",r)),O(s,y)}),a(we),a(Yt);var Ae=i(Yt,2),zt=i(Ae,4),xe=i(n(zt));Z(xe,5,()=>(e(t),q(()=>e(t).Connections)),z,(s,x,r)=>{var y=ur(),u=n(y),g=n(u);kt(g),It(g,N=>Rt?.(N)),wt(()=>v(g,()=>e(t).Connections[r].Name,N=>o(t,e(t).Connections[r].Name=N))),a(u);var b=i(u),C=n(b);_(C),a(b);var h=i(b),P=n(h);_(P),a(h);var S=i(h),T=n(S);a(S),a(y),v(C,()=>e(t).Connections[r].Loyalty,N=>o(t,e(t).Connections[r].Loyalty=N)),v(P,()=>e(t).Connections[r].Connection,N=>o(t,e(t).Connections[r].Connection=N)),W("click",T,()=>L("Connections",r)),O(s,y)}),a(xe),a(zt);var Ne=i(zt,2),Zt=i(Ne,4),ke=i(n(Zt));Z(ke,5,()=>(e(t),q(()=>e(t).RangedWeapons)),z,(s,x,r)=>{var y=vr(),u=n(y),g=n(u);kt(g),It(g,X=>Rt?.(X)),wt(()=>v(g,()=>e(t).RangedWeapons[r].Weapon,X=>o(t,e(t).RangedWeapons[r].Weapon=X))),a(u);var b=i(u),C=n(b);_(C),a(b);var h=i(b),P=n(h);kt(P),It(P,X=>Rt?.(X)),wt(()=>v(P,()=>e(t).RangedWeapons[r].Type,X=>o(t,e(t).RangedWeapons[r].Type=X))),a(h);var S=i(h),T=n(S);_(T),a(S);var N=i(S),$=n(N);kt($),It($,X=>Rt?.(X)),wt(()=>v($,()=>e(t).RangedWeapons[r].Mode,X=>o(t,e(t).RangedWeapons[r].Mode=X))),a(N);var K=i(N),Y=n(K);_(Y),a(K);var F=i(K),U=n(F);_(U),a(F);var Q=i(F),G=n(Q);kt(G),It(G,X=>Rt?.(X)),wt(()=>v(G,()=>e(t).RangedWeapons[r].Availabiliy,X=>o(t,e(t).RangedWeapons[r].Availabiliy=X))),a(Q);var mt=i(Q),ht=n(mt);_(ht),a(mt);var xt=i(mt),Nt=n(xt);a(xt);var Bt=i(xt),st=n(Bt);a(Bt),a(y),v(C,()=>e(t).RangedWeapons[r].Damage,X=>o(t,e(t).RangedWeapons[r].Damage=X)),v(T,()=>e(t).RangedWeapons[r].AP,X=>o(t,e(t).RangedWeapons[r].AP=X)),v(Y,()=>e(t).RangedWeapons[r].RC,X=>o(t,e(t).RangedWeapons[r].RC=X)),v(U,()=>e(t).RangedWeapons[r].Ammo,X=>o(t,e(t).RangedWeapons[r].Ammo=X)),v(ht,()=>e(t).Connections[r].Page,X=>o(t,e(t).Connections[r].Page=X)),W("click",Nt,()=>M(e(t).Connections[r].Page)),W("click",st,()=>L("RangedWeapons",r)),O(s,y)}),a(ke),a(Zt);var Pe=i(Zt,2),te=i(Pe,4),Se=i(n(te));Z(Se,5,()=>(e(t),q(()=>e(t).MeleeWeapons)),z,(s,x,r)=>{var y=cr(),u=n(y),g=n(u);_(g),a(u);var b=i(u),C=n(b);_(C),a(b);var h=i(b),P=n(h);_(P),a(h);var S=i(h),T=n(S);_(T),a(S);var N=i(S),$=n(N);_($),a(N);var K=i(N),Y=n(K),F=n(Y,!0);a(Y),a(K);var U=i(K),Q=n(U);_(Q),a(U);var G=i(U),mt=n(G);_(mt),a(G);var ht=i(G),xt=n(ht);a(ht);var Nt=i(ht),Bt=n(Nt);a(Nt),a(y),bt(()=>Wt(F,(e(x),e(t),q(()=>e(x)["Strength Multiplier"]*e(t).Attributes.Strength+e(x).Damage)))),v(g,()=>e(t).MeleeWeapons[r].Weapon,st=>o(t,e(t).MeleeWeapons[r].Weapon=st)),v(C,()=>e(t).MeleeWeapons[r].Reach,st=>o(t,e(t).MeleeWeapons[r].Reach=st)),v(P,()=>e(t).MeleeWeapons[r].Damage,st=>o(t,e(t).MeleeWeapons[r].Damage=st)),v(T,()=>e(t).MeleeWeapons[r].Type,st=>o(t,e(t).MeleeWeapons[r].Type=st)),v($,()=>e(t).MeleeWeapons[r]["Strength Multiplier"],st=>o(t,e(t).MeleeWeapons[r]["Strength Multiplier"]=st)),v(Q,()=>e(t).MeleeWeapons[r].AP,st=>o(t,e(t).MeleeWeapons[r].AP=st)),v(mt,()=>e(t).Connections[r].Page,st=>o(t,e(t).Connections[r].Page=st)),W("click",xt,()=>M(e(t).Connections[r].Page)),W("click",Bt,()=>L("MeleeWeapons",r)),O(s,y)}),a(Se),a(te);var We=i(te,2),ee=i(We,4),Ie=i(n(ee));Z(Ie,5,()=>(e(t),q(()=>e(t).Armor)),z,(s,x,r)=>{var y=hr(),u=n(y),g=n(u);_(g),a(u);var b=i(u),C=n(b);_(C),a(b);var h=i(b),P=n(h);_(P),a(h);var S=i(h),T=n(S);_(T),a(S);var N=i(S),$=n(N);a(N);var K=i(N),Y=n(K);a(K),a(y),v(g,()=>e(t).Armor[r].Armor,F=>o(t,e(t).Armor[r].Armor=F)),v(C,()=>e(t).Armor[r].Ballistic,F=>o(t,e(t).Armor[r].Ballistic=F)),v(P,()=>e(t).Armor[r].Impact,F=>o(t,e(t).Armor[r].Impact=F)),v(T,()=>e(t).Armor[r].Page,F=>o(t,e(t).Armor[r].Page=F)),W("click",$,()=>M(e(t).Armor[r].Page)),W("click",Y,()=>L("Armor",r)),O(s,y)}),a(Ie),a(ee);var Re=i(ee,2),ae=i(Re,4),Ee=i(n(ae));Z(Ee,5,()=>(e(t),q(()=>e(t).Cyberware)),z,(s,x,r)=>{var y=_r(),u=n(y),g=n(u);_(g),a(u);var b=i(u),C=n(b);_(C),a(b);var h=i(b),P=n(h);_(P),a(h);var S=i(h),T=n(S);_(T),a(S);var N=i(S),$=n(N);_($),a(N);var K=i(N),Y=n(K);a(K);var F=i(K),U=n(F);a(F),a(y),v(g,()=>e(t).Cyberware[r].Implant,Q=>o(t,e(t).Cyberware[r].Implant=Q)),v(C,()=>e(t).Cyberware[r].Rating,Q=>o(t,e(t).Cyberware[r].Rating=Q)),v(P,()=>e(t).Cyberware[r].Essence,Q=>o(t,e(t).Cyberware[r].Essence=Q)),v(T,()=>e(t).Cyberware[r].Notes,Q=>o(t,e(t).Cyberware[r].Notes=Q)),v($,()=>e(t).Connections[r].Page,Q=>o(t,e(t).Connections[r].Page=Q)),W("click",Y,()=>M(e(t).Connections[r].Page)),W("click",U,()=>L("Cyberware",r)),O(s,y)}),a(Ee),a(ae);var Me=i(ae,2),re=i(Me,4),De=i(n(re));Z(De,5,()=>(e(t),q(()=>e(t).Bioware)),z,(s,x,r)=>{var y=pr(),u=n(y),g=n(u);_(g),a(u);var b=i(u),C=n(b);_(C),a(b);var h=i(b),P=n(h);_(P),a(h);var S=i(h),T=n(S);_(T),a(S);var N=i(S),$=n(N);_($),a(N);var K=i(N),Y=n(K);a(K);var F=i(K),U=n(F);a(F),a(y),v(g,()=>e(t).Bioware[r].Implant,Q=>o(t,e(t).Bioware[r].Implant=Q)),v(C,()=>e(t).Bioware[r].Rating,Q=>o(t,e(t).Bioware[r].Rating=Q)),v(P,()=>e(t).Bioware[r].Essence,Q=>o(t,e(t).Bioware[r].Essence=Q)),v(T,()=>e(t).Bioware[r].Notes,Q=>o(t,e(t).Bioware[r].Notes=Q)),v($,()=>e(t).Connections[r].Page,Q=>o(t,e(t).Connections[r].Page=Q)),W("click",Y,()=>M(e(t).Connections[r].Page)),W("click",U,()=>L("Bioware",r)),O(s,y)}),a(De),a(re);var Qe=i(re,2),ne=i(Qe,6),Te=i(n(ne));Z(Te,5,()=>(e(t),q(()=>e(t).PositiveQualities)),z,(s,x,r)=>{var y=br(),u=n(y),g=n(u);_(g),a(u);var b=i(u),C=n(b);_(C),a(b);var h=i(b),P=n(h);a(h);var S=i(h),T=n(S);a(S),a(y),v(g,()=>e(t).PositiveQualities[r].Qualitiy,N=>o(t,e(t).PositiveQualities[r].Qualitiy=N)),v(C,()=>e(t).PositiveQualities[r].Page,N=>o(t,e(t).PositiveQualities[r].Page=N)),W("click",P,()=>M(e(t).PositiveQualities[r].Page)),W("click",T,()=>L("PositiveQualities",r)),O(s,y)}),a(Te),a(ne);var Be=i(ne,2),ie=i(Be,4),Le=i(n(ie));Z(Le,5,()=>(e(t),q(()=>e(t).NegativeQualities)),z,(s,x,r)=>{var y=yr(),u=n(y),g=n(u);_(g),a(u);var b=i(u),C=n(b);_(C),a(b);var h=i(b),P=n(h);a(h);var S=i(h),T=n(S);a(S),a(y),v(g,()=>e(t).NegativeQualities[r].Qualitiy,N=>o(t,e(t).NegativeQualities[r].Qualitiy=N)),v(C,()=>e(t).NegativeQualities[r].Page,N=>o(t,e(t).NegativeQualities[r].Page=N)),W("click",P,()=>M(e(t).NegativeQualities[r].Page)),W("click",T,()=>L("NegativeQualities",r)),O(s,y)}),a(Le),a(ie);var Oe=i(ie,2),se=i(Oe,4),Ve=n(se);Z(Ve,5,()=>(e(t),q(()=>e(t).PysicalCondition)),z,(s,x,r)=>{var y=fr();Z(y,5,()=>e(x),z,(u,g,b)=>{var C=mr(),h=n(C);_(h),a(C),Je(h,()=>e(t).PysicalCondition[r][b],P=>o(t,e(t).PysicalCondition[r][b]=P)),O(u,C)}),a(y),O(s,y)}),a(Ve),a(se);var oe=i(se,4),Xe=n(oe);Z(Xe,5,()=>(e(t),q(()=>e(t).StunCondition)),z,(s,x,r)=>{var y=Cr();Z(y,5,()=>e(x),z,(u,g,b)=>{var C=gr(),h=n(C);_(h),a(C),Je(h,()=>e(t).StunCondition[r][b],P=>o(t,e(t).StunCondition[r][b]=P)),O(u,C)}),a(y),O(s,y)}),a(Xe),a(oe);var le=i(oe,4),qe=i(n(le));Z(qe,5,()=>(e(t),q(()=>e(t).Inventory)),z,(s,x,r,y)=>{var u=wr(),g=n(u),b=n(g);_(b),a(g);var C=i(g),h=n(C);_(h),a(C);var P=i(C),S=n(P);_(S),a(P);var T=i(P),N=n(T);_(N),a(T);var $=i(T),K=n($);a($);var Y=i($),F=n(Y);a(Y),a(u),v(b,()=>e(t).Inventory[r].Item,U=>o(t,e(t).Inventory[r].Item=U)),v(h,()=>e(t).NegativeQualities[r].Quantity,U=>o(t,e(t).NegativeQualities[r].Quantity=U)),v(S,()=>e(t).NegativeQualities[r].Notes,U=>o(t,e(t).NegativeQualities[r].Notes=U)),v(N,()=>e(t).Inventory[r].Page,U=>o(t,e(t).Inventory[r].Page=U)),W("click",K,()=>M(e(t).Inventory[r].Page)),W("click",F,()=>L("Inventory",r)),O(s,u)}),a(qe),a(le);var He=i(le,2),de=i(He,4),Qt=n(de);bt(()=>{e(p),be(()=>{e(l)})});var ha=n(Qt);{var _a=s=>{var x=Ar();x.value=(x.__value=null)??"",O(s,x)},pa=s=>{var x=ta(),r=Mt(x);Z(r,1,()=>e(l),z,(y,u)=>{var g=xr(),b=n(g,!0);a(g);var C={};bt(h=>{Wt(b,h),C!==(C=e(u))&&(g.value=(g.__value=e(u))??"")},[()=>(e(u),q(()=>w(e(u))))]),O(y,g)}),O(s,x)};Ot(ha,s=>{e(l),q(()=>e(l).length===0)?s(_a):s(pa,!1)})}a(Qt);var Ke=i(Qt,2),ba=i(Ke,2);{var ya=s=>{var x=Nr();W("click",x,k),O(s,x)};Ot(ba,s=>{e(p)!==null&&s(ya)})}a(de);var ue=i(de,2),Tt=n(ue);kt(Tt),a(ue);var ma=i(ue,2);bt(()=>{Wt(J,`Name: ${Ge(f()),q(()=>f().name)??""}`),tt(Tt,"placeholder",(e(l),q(()=>e(l).length===0?"Click 'New Note' to start...":"Write your session notes here..."))),Tt.disabled=e(p)===null}),v(D,()=>e(t).Attributes.Agility,s=>o(t,e(t).Attributes.Agility=s)),v(dt,()=>e(t).Attributes.Body,s=>o(t,e(t).Attributes.Body=s)),v(at,()=>e(t).Attributes.Charisma,s=>o(t,e(t).Attributes.Charisma=s)),v(pt,()=>e(t).Attributes.Edge,s=>o(t,e(t).Attributes.Edge=s)),v(At,()=>e(t).Attributes.Essence,s=>o(t,e(t).Attributes.Essence=s)),v(qt,()=>e(t).Attributes.Initiative,s=>o(t,e(t).Attributes.Initiative=s)),v(Kt,()=>e(t).Attributes.Intuition,s=>o(t,e(t).Attributes.Intuition=s)),v(Ft,()=>e(t).Attributes.Logic,s=>o(t,e(t).Attributes.Logic=s)),v($t,()=>e(t).Attributes.Reaction,s=>o(t,e(t).Attributes.Reaction=s)),v(Gt,()=>e(t).Attributes.Strength,s=>o(t,e(t).Attributes.Strength=s)),v(Jt,()=>e(t).Attributes.Willpower,s=>o(t,e(t).Attributes.Willpower=s)),W("click",Ae,()=>B("Skills")),W("click",Ne,()=>B("Connections")),W("click",Pe,()=>B("RangedWeapons")),W("click",We,()=>B("MeleeWeapons")),W("click",Re,()=>B("Armor")),W("click",Me,()=>B("Cyberware")),W("click",Qe,()=>B("Bioware")),W("click",Be,()=>B("PositiveQualities")),W("click",Oe,()=>B("NegativeQualities")),W("click",He,()=>B("Inventory")),me(Qt,()=>e(p),s=>ct(p,s)),W("click",Ke,_t),v(Tt,()=>e(t).Notes[e(p)],s=>o(t,e(t).Notes[e(p)]=s)),W("click",ma,rt),O(d,A),da()}var Sr=H("

No characters found.

"),Wr=H(""),Ir=H(" ",1),Rr=H('

Shadowrun Character Manager

Load Existing Character

Create New Character

',1);function Xr(d,c){la(c,!1);let l=gt([]),f=gt(null),R=gt(null),t=gt(null),p=gt("");async function E(){const w=await fetch("/api/shadowrun/characters");w.ok&&ct(l,await w.json())}async function B(w){const A=await fetch(`/api/shadowrun/characters_data/${w}`);A.ok&&ct(R,await A.json())}fa(E);async function L(){if(e(t)==null)return;const w=await fetch(`/api/shadowrun/characters/${e(t)}`);if(w.ok){const A=await w.json();await B(A.id),ct(f,A)}}async function M(){if(!e(p))return;const w=await fetch("/api/shadowrun/characters",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e(p)})});if(w.ok){const A=await w.json();ct(f,A),e(l).push(A)}}ea();var lt=ta(),rt=Mt(lt);{var _t=w=>{var A=Rr(),V=i(Mt(A),2),J=i(n(V),2);{var et=D=>{var ot=Sr();O(D,ot)},nt=D=>{var ot=Ir(),dt=Mt(ot);bt(()=>{e(t),be(()=>{e(l)})});var it=n(dt);it.value=(it.__value=null)??"";var at=i(it);Z(at,1,()=>e(l),z,(pt,ut)=>{var vt=Wr(),At=n(vt,!0);a(vt);var Ct={};bt(()=>{Wt(At,e(ut).name),Ct!==(Ct=e(ut).id)&&(vt.value=(vt.__value=e(ut).id)??"")}),O(pt,vt)}),a(dt);var yt=i(dt,2);bt(()=>yt.disabled=e(t)===null),me(dt,()=>e(t),pt=>ct(t,pt)),W("click",yt,L),O(D,ot)};Ot(J,D=>{e(l).length===0?D(et):D(nt,!1)})}a(V);var j=i(V,2),m=i(n(j),2);_(m);var I=i(m,2);a(j),v(m,()=>e(p),D=>ct(p,D)),W("click",I,M),O(w,A)},k=w=>{Pr(w,{get currentCharacter(){return e(f)},get currentCharacterData(){return e(R)}})};Ot(rt,w=>{e(f)?w(k,!1):w(_t)})}O(d,lt),da()}export{Xr as component}; diff --git a/frontend/build/_app/version.json b/frontend/build/_app/version.json index 8f16f4f..5ee32c3 100644 --- a/frontend/build/_app/version.json +++ b/frontend/build/_app/version.json @@ -1 +1 @@ -{"version":"1771789536194"} \ No newline at end of file +{"version":"1771856210381"} \ No newline at end of file diff --git a/frontend/build/index.html b/frontend/build/index.html index c075b92..4946912 100644 --- a/frontend/build/index.html +++ b/frontend/build/index.html @@ -5,11 +5,11 @@ - - + + - + @@ -20,15 +20,15 @@