diff --git a/build.sbt b/build.sbt index 96296e4..391428b 100644 --- a/build.sbt +++ b/build.sbt @@ -24,7 +24,9 @@ lazy val abandon = (project in file(".")). settings( name := "abandon", run /fork := true, - nativeImageOptions ++= List("--initialize-at-build-time", "--no-fallback", "-O2") + nativeImageOptions ++= List("--initialize-at-build-time", "--no-fallback", "-O2", "-H:IncludeResources=\".*/frontend/build.zip$\""), + nativeImageJvm := "graalvm-java21", + nativeImageVersion := "21.0.2" ) .enablePlugins(NativeImagePlugin) diff --git a/cli/src/main/resources/frontend/build.zip b/cli/src/main/resources/frontend/build.zip new file mode 100644 index 0000000..2d30bad Binary files /dev/null and b/cli/src/main/resources/frontend/build.zip differ diff --git a/cli/src/main/resources/frontend/build/_app/immutable/assets/2.d5925086.css b/cli/src/main/resources/frontend/build/_app/immutable/assets/2.d5925086.css deleted file mode 100644 index a042603..0000000 --- a/cli/src/main/resources/frontend/build/_app/immutable/assets/2.d5925086.css +++ /dev/null @@ -1 +0,0 @@ -.subdued.svelte-huhhoz{opacity:.2}tr.svelte-16pr3mu.svelte-16pr3mu{vertical-align:top;border:1px solid transparent}tr.svelte-16pr3mu:hover td.svelte-16pr3mu{border:1px solid #88b9}td.svelte-16pr3mu.svelte-16pr3mu{padding:.33em 1rem}tr.groupHead.svelte-16pr3mu.svelte-16pr3mu{background-color:#112;font-size:1.1em}tr.groupHead.svelte-16pr3mu td.name.svelte-16pr3mu{padding:.33em;font-size:1.3em}tr.odd.svelte-16pr3mu.svelte-16pr3mu{background-color:#252525}table.details.svelte-16pr3mu.svelte-16pr3mu{background-color:#292929;margin-right:1em}.indeterminate.svelte-16pr3mu.svelte-16pr3mu{background-color:#311}.comments.svelte-16pr3mu.svelte-16pr3mu{border-left:.5em solid #333;padding-left:1em;margin-left:1em;opacity:.7}tr.svelte-1h2g6gf:hover{background-color:#112}.bold.svelte-1h2g6gf{font-weight:700}.large.svelte-1h2g6gf{font-size:1.2em}button.name.svelte-1h2g6gf{background-color:#333;border-radius:.33em;padding:.33em 1em;color:#eee;border:none;font-family:monospace}span.name.svelte-1h2g6gf{padding:.33em 1em;color:#eee}td.svelte-koo16s.svelte-koo16s{padding:.33em .2em;border:1px solid transparent}tr.month.svelte-koo16s.svelte-koo16s{font-size:1.4em;font-weight:700}tr.month.svelte-koo16s td.svelte-koo16s{background-color:#112}td.account.svelte-koo16s.svelte-koo16s:hover{background-color:#114;cursor:pointer}tr.svelte-koo16s:hover td.svelte-koo16s{border:1px solid #88b9}ul.svelte-1xqxhm5{display:flex;flex-wrap:wrap;padding:0;position:sticky;top:0;background-color:#0007;-webkit-backdrop-filter:blur(.3em);backdrop-filter:blur(.3em);z-index:10;margin:0}li.svelte-1xqxhm5{text-decoration:none;list-style:none;padding:.33em 1em;background-color:#111;margin:.5em;border-radius:.1em;color:#aaa;text-transform:uppercase;font-family:monospace;font-size:1.2em;border:1px solid #333}li.svelte-1xqxhm5:hover{cursor:pointer}li.selected.svelte-1xqxhm5{background-color:#335;border:1px solid #555;color:#eee;font-weight:700}.closeButton.svelte-1xqxhm5{padding:.33em 1em;border:1px solid #111;background-color:#222;font-size:.8em;opacity:.7;font-family:sans-serif}.contents.svelte-1xqxhm5{padding:1em} diff --git a/cli/src/main/resources/frontend/build/_app/immutable/assets/_page.6bb14c6f.css b/cli/src/main/resources/frontend/build/_app/immutable/assets/_page.6bb14c6f.css deleted file mode 100644 index c2301c3..0000000 --- a/cli/src/main/resources/frontend/build/_app/immutable/assets/_page.6bb14c6f.css +++ /dev/null @@ -1 +0,0 @@ -.subdued.svelte-huhhoz{opacity:.2}tr.svelte-16pr3mu.svelte-16pr3mu{vertical-align:top;border:1px solid transparent}tr.svelte-16pr3mu:hover td.svelte-16pr3mu{border:1px solid #88b9}td.svelte-16pr3mu.svelte-16pr3mu{padding:.33em 1rem}tr.groupHead.svelte-16pr3mu.svelte-16pr3mu{background-color:#112;font-size:1.1em}tr.groupHead.svelte-16pr3mu td.name.svelte-16pr3mu{padding:.33em;font-size:1.3em}tr.odd.svelte-16pr3mu.svelte-16pr3mu{background-color:#252525}table.details.svelte-16pr3mu.svelte-16pr3mu{background-color:#292929;margin-right:1em}.indeterminate.svelte-16pr3mu.svelte-16pr3mu{background-color:#311}.comments.svelte-16pr3mu.svelte-16pr3mu{border-left:.5em solid #333;padding-left:1em;margin-left:1em;opacity:.7}tr.svelte-1h2g6gf:hover{background-color:#112}.bold.svelte-1h2g6gf{font-weight:700}.large.svelte-1h2g6gf{font-size:1.2em}button.name.svelte-1h2g6gf{background-color:#333;border-radius:.33em;padding:.33em 1em;color:#eee;border:none;font-family:monospace}span.name.svelte-1h2g6gf{padding:.33em 1em;color:#eee}td.svelte-koo16s.svelte-koo16s{padding:.33em .2em;border:1px solid transparent}tr.month.svelte-koo16s.svelte-koo16s{font-size:1.4em;font-weight:700}tr.month.svelte-koo16s td.svelte-koo16s{background-color:#112}td.account.svelte-koo16s.svelte-koo16s:hover{background-color:#114;cursor:pointer}tr.svelte-koo16s:hover td.svelte-koo16s{border:1px solid #88b9}ul.svelte-1xqxhm5{display:flex;flex-wrap:wrap;padding:0;position:sticky;top:0;background-color:#0007;backdrop-filter:blur(.3em);z-index:10;margin:0}li.svelte-1xqxhm5{text-decoration:none;list-style:none;padding:.33em 1em;background-color:#111;margin:.5em;border-radius:.1em;color:#aaa;text-transform:uppercase;font-family:monospace;font-size:1.2em;border:1px solid #333}li.svelte-1xqxhm5:hover{cursor:pointer}li.selected.svelte-1xqxhm5{background-color:#335;border:1px solid #555;color:#eee;font-weight:700}.closeButton.svelte-1xqxhm5{padding:.33em 1em;border:1px solid #111;background-color:#222;font-size:.8em;opacity:.7;font-family:sans-serif}.contents.svelte-1xqxhm5{padding:1em} diff --git a/cli/src/main/resources/frontend/build/_app/immutable/chunks/index.74f36479.js b/cli/src/main/resources/frontend/build/_app/immutable/chunks/index.74f36479.js deleted file mode 100644 index dcc0253..0000000 --- a/cli/src/main/resources/frontend/build/_app/immutable/chunks/index.74f36479.js +++ /dev/null @@ -1,4 +0,0 @@ -var tt=Object.defineProperty;var et=(t,e,n)=>e in t?tt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var y=(t,e,n)=>(et(t,typeof e!="symbol"?e+"":e,n),n);import{n as w,r as E,h as H,f as b,i as G,j as I,k as nt,l as it,m as st,p as rt,q as O,v as lt,w as at,x as ot}from"./scheduler.0f962ddd.js";const F=typeof window<"u";let U=F?()=>window.performance.now():()=>Date.now(),k=F?t=>requestAnimationFrame(t):w;const x=new Set;function V(t){x.forEach(e=>{e.c(t)||(x.delete(e),e.f())}),x.size!==0&&k(V)}function W(t){let e;return x.size===0&&k(V),{promise:new Promise(n=>{x.add(e={c:t,f:n})}),abort(){x.delete(e)}}}let M=!1;function ct(){M=!0}function ft(){M=!1}function ut(t,e,n,i){for(;t>1);n(s)<=i?t=s+1:e=s}return t}function _t(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if(t.nodeName==="HEAD"){const l=[];for(let a=0;a0&&e[n[s]].claim_order<=a?s+1:ut(1,s,_=>e[n[_]].claim_order,a))-1;i[l]=n[u]+1;const f=u+1;n[f]=l,s=Math.max(f,s)}const o=[],r=[];let c=e.length-1;for(let l=n[s]+1;l!=0;l=i[l-1]){for(o.push(e[l-1]);c>=l;c--)r.push(e[c]);c--}for(;c>=0;c--)r.push(e[c]);o.reverse(),r.sort((l,a)=>l.claim_order-a.claim_order);for(let l=0,a=0;l=o[a].claim_order;)a++;const u=at.removeEventListener(e,n,i)}function It(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Ot(t){return t.dataset.svelteH}function xt(t){return Array.from(t.childNodes)}function K(t){t.claim_info===void 0&&(t.claim_info={last_index:0,total_claimed:0})}function Q(t,e,n,i,s=!1){K(t);const o=(()=>{for(let r=t.claim_info.last_index;r=0;r--){const c=t[r];if(e(c)){const l=n(c);return l===void 0?t.splice(r,1):t[r]=l,s?l===void 0&&t.claim_info.last_index--:t.claim_info.last_index=r,c}}return i()})();return o.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,o}function wt(t,e,n,i){return Q(t,s=>s.nodeName===e,s=>{const o=[];for(let r=0;rs.removeAttribute(r))},()=>i(e))}function qt(t,e,n){return wt(t,e,n,B)}function vt(t,e){return Q(t,n=>n.nodeType===3,n=>{const i=""+e;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>D(e),!0)}function zt(t){return vt(t," ")}function q(t,e,n){for(let i=n;i>>0}function At(t,e){const n={stylesheet:ht(e),rules:{}};return S.set(t,n),n}function X(t,e,n,i,s,o,r,c=0){const l=16.666/i;let a=`{ -`;for(let $=0;$<=1;$+=l){const p=e+(n-e)*o($);a+=$*100+`%{${r(p,1-p)}} -`}const u=a+`100% {${r(n,1-n)}} -}`,f=`__svelte_${Tt(u)}_${c}`,_=J(t),{stylesheet:d,rules:h}=S.get(_)||At(_,t);h[f]||(h[f]=!0,d.insertRule(`@keyframes ${f} ${u}`,d.cssRules.length));const m=t.style.animation||"";return t.style.animation=`${m?`${m}, `:""}${f} ${i}ms linear ${s}ms 1 both`,C+=1,f}function j(t,e){const n=(t.style.animation||"").split(", "),i=n.filter(e?o=>o.indexOf(e)<0:o=>o.indexOf("__svelte")===-1),s=n.length-i.length;s&&(t.style.animation=i.join(", "),C-=s,C||bt())}function bt(){k(()=>{C||(S.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&N(e)}),S.clear())})}let v;function Y(){return v||(v=Promise.resolve(),v.then(()=>{v=null})),v}function L(t,e,n){t.dispatchEvent(Nt(`${e?"intro":"outro"}${n}`))}const A=new Set;let g;function Jt(){g={r:0,c:[],p:g}}function Kt(){g.r||E(g.c),g=g.p}function St(t,e){t&&t.i&&(A.delete(t),t.i(e))}function Qt(t,e,n,i){if(t&&t.o){if(A.has(t))return;A.add(t),g.c.push(()=>{A.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}else i&&i()}const Z={duration:0};function Xt(t,e,n){const i={direction:"in"};let s=e(t,n,i),o=!1,r,c,l=0;function a(){r&&j(t,r)}function u(){const{delay:_=0,duration:d=300,easing:h=G,tick:m=w,css:$}=s||Z;$&&(r=X(t,0,1,d,_,h,$,l++)),m(0,1);const p=U()+_,T=p+d;c&&c.abort(),o=!0,b(()=>L(t,!0,"start")),c=W(P=>{if(o){if(P>=T)return m(1,0),L(t,!0,"end"),a(),o=!1;if(P>=p){const R=h((P-p)/d);m(R,1-R)}}return o})}let f=!1;return{start(){f||(f=!0,j(t),H(s)?(s=s(i),Y().then(u)):u())},invalidate(){f=!1},end(){o&&(a(),o=!1)}}}function Yt(t,e,n){const i={direction:"out"};let s=e(t,n,i),o=!0,r;const c=g;c.r+=1;let l;function a(){const{delay:u=0,duration:f=300,easing:_=G,tick:d=w,css:h}=s||Z;h&&(r=X(t,1,0,f,u,_,h));const m=U()+u,$=m+f;b(()=>L(t,!1,"start")),"inert"in t&&(l=t.inert,t.inert=!0),W(p=>{if(o){if(p>=$)return d(0,1),L(t,!1,"end"),--c.r||E(c.c),!1;if(p>=m){const T=_((p-m)/f);d(1-T,T)}}return o})}return H(s)?Y().then(()=>{s=s(i),a()}):a(),{end(u){u&&"inert"in t&&(t.inert=l),u&&s.tick&&s.tick(1,0),o&&(r&&j(t,r),o=!1)}}}function Zt(t){t&&t.c()}function te(t,e){t&&t.l(e)}function Ct(t,e,n){const{fragment:i,after_update:s}=t.$$;i&&i.m(e,n),b(()=>{const o=t.$$.on_mount.map(lt).filter(H);t.$$.on_destroy?t.$$.on_destroy.push(...o):E(o),t.$$.on_mount=[]}),s.forEach(b)}function Lt(t,e){const n=t.$$;n.fragment!==null&&(st(n.after_update),E(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Ht(t,e){t.$$.dirty[0]===-1&&(at.push(t),ot(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const h=d.length?d[0]:_;return a.ctx&&s(a.ctx[f],a.ctx[f]=h)&&(!a.skip_bound&&a.bound[f]&&a.bound[f](h),u&&Ht(t,f)),_}):[],a.update(),u=!0,E(a.before_update),a.fragment=i?i(a.ctx):!1,e.target){if(e.hydrate){ct();const f=xt(e.target);a.fragment&&a.fragment.l(f),f.forEach(N)}else a.fragment&&a.fragment.c();e.intro&&St(t.$$.fragment),Ct(t,e.target,e.anchor),ft(),nt()}O(l)}class ne{constructor(){y(this,"$$");y(this,"$$set")}$destroy(){Lt(this,1),this.$destroy=w}$on(e,n){if(!H(n))return w;const i=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(e){this.$$set&&!it(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Mt="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Mt);export{Ot as A,Rt as B,Gt as C,Xt as D,Yt as E,z as H,ne as S,yt as a,Kt as b,zt as c,St as d,Dt as e,N as f,B as g,qt as h,ee as i,xt as j,It as k,Ut as l,D as m,vt as n,Ft as o,Jt as p,Wt as q,Zt as r,Bt as s,Qt as t,te as u,Ct as v,Lt as w,pt as x,Vt as y,kt as z}; diff --git a/cli/src/main/resources/frontend/build/_app/immutable/chunks/scheduler.0f962ddd.js b/cli/src/main/resources/frontend/build/_app/immutable/chunks/scheduler.0f962ddd.js deleted file mode 100644 index 4d2a590..0000000 --- a/cli/src/main/resources/frontend/build/_app/immutable/chunks/scheduler.0f962ddd.js +++ /dev/null @@ -1 +0,0 @@ -function x(){}const z=t=>t;function k(t,n){for(const e in n)t[e]=n[e];return t}function w(t){return t()}function F(){return Object.create(null)}function j(t){t.forEach(w)}function P(t){return typeof t=="function"}function S(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function U(t){return Object.keys(t).length===0}function E(t,...n){if(t==null){for(const o of n)o(void 0);return x}const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function A(t,n,e){t.$$.on_destroy.push(E(n,e))}function B(t,n,e,o){if(t){const r=g(t,n,e,o);return t[0](r)}}function g(t,n,e,o){return t[1]&&o?k(e.ctx.slice(),t[1](o(n))):e.ctx}function C(t,n,e,o){if(t[2]&&o){const r=t[2](o(e));if(n.dirty===void 0)return r;if(typeof r=="object"){const i=[],f=Math.max(n.dirty.length,r.length);for(let u=0;u32){const n=[],e=t.ctx.length/32;for(let o=0;ot.indexOf(o)===-1?n.push(o):e.push(o)),e.forEach(o=>o()),s=n}export{I as a,p as b,B as c,C as d,A as e,O as f,G as g,P as h,z as i,F as j,q as k,U as l,K as m,x as n,H as o,a as p,d as q,j as r,S as s,J as t,D as u,w as v,l as w,v as x}; diff --git a/cli/src/main/resources/frontend/build/_app/immutable/chunks/singletons.10934f40.js b/cli/src/main/resources/frontend/build/_app/immutable/chunks/singletons.10934f40.js deleted file mode 100644 index 4c83474..0000000 --- a/cli/src/main/resources/frontend/build/_app/immutable/chunks/singletons.10934f40.js +++ /dev/null @@ -1 +0,0 @@ -import{n as d,s as m}from"./scheduler.0f962ddd.js";const u=[];function p(e,t=d){let n;const o=new Set;function r(s){if(m(e,s)&&(e=s,n)){const c=!u.length;for(const l of o)l[1](),u.push(l,e);if(c){for(let l=0;l{o.delete(l),o.size===0&&n&&(n(),n=null)}}return{set:r,update:i,subscribe:a}}var g;const E=((g=globalThis.__sveltekit_4zltp7)==null?void 0:g.base)??"";var k;const w=((k=globalThis.__sveltekit_4zltp7)==null?void 0:k.assets)??E,A="1699282986701",y="sveltekit:snapshot",I="sveltekit:scroll",x="sveltekit:index",_={tap:1,hover:2,viewport:3,eager:4,off:-1};function O(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function U(){return{x:pageXOffset,y:pageYOffset}}function f(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const b={..._,"":_.hover};function v(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function L(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=v(e)}}function N(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!o||S(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),i=(n==null?void 0:n.origin)===location.origin&&e.hasAttribute("download");return{url:n,external:r,target:o,download:i}}function z(e){let t=null,n=null,o=null,r=null,i=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=f(s,"preload-code")),r===null&&(r=f(s,"preload-data")),t===null&&(t=f(s,"keepfocus")),n===null&&(n=f(s,"noscroll")),i===null&&(i=f(s,"reload")),a===null&&(a=f(s,"replacestate")),s=v(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:b[o??"off"],preload_data:b[r??"off"],keep_focus:c(t),noscroll:c(n),reload:c(i),replace_state:c(a)}}function h(e){const t=p(e);let n=!0;function o(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function i(a){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&a(s=c)})}return{notify:o,set:r,subscribe:i}}function R(){const{set:e,subscribe:t}=p(!1);let n;async function o(){clearTimeout(n);try{const r=await fetch(`${w}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==A;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function S(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}function P(e){e.client}const V={url:h({}),page:h({}),navigating:p(null),updated:R()};export{x as I,_ as P,I as S,y as a,N as b,z as c,V as d,E as e,L as f,O as g,P as h,S as i,U as s}; diff --git a/cli/src/main/resources/frontend/build/_app/immutable/entry/app.3e103d01.js b/cli/src/main/resources/frontend/build/_app/immutable/entry/app.3e103d01.js deleted file mode 100644 index e14d9f2..0000000 --- a/cli/src/main/resources/frontend/build/_app/immutable/entry/app.3e103d01.js +++ /dev/null @@ -1 +0,0 @@ -import{s as A,a as B,o as U,t as j,b as P}from"../chunks/scheduler.0f962ddd.js";import{S as W,i as z,s as F,e as h,c as G,a as g,t as d,b as R,d as p,f as w,g as H,h as J,j as K,k as N,l as m,m as M,n as Q,o as X,p as L,q as k,r as v,u as C,v as E,w as y}from"../chunks/index.74f36479.js";const Y="modulepreload",Z=function(o,e){return new URL(o,e).href},D={},S=function(e,n,i){if(!n||n.length===0)return e();const s=document.getElementsByTagName("link");return Promise.all(n.map(f=>{if(f=Z(f,i),f in D)return;D[f]=!0;const t=f.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(!!i)for(let a=s.length-1;a>=0;a--){const _=s[a];if(_.href===f&&(!t||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${r}`))return;const c=document.createElement("link");if(c.rel=t?"stylesheet":Y,t||(c.as="script",c.crossOrigin=""),c.href=f,document.head.appendChild(c),t)return new Promise((a,_)=>{c.addEventListener("load",a),c.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${f}`)))})})).then(()=>e()).catch(f=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=f,window.dispatchEvent(t),!t.defaultPrevented)throw f})},re={};function $(o){let e,n,i;var s=o[1][0];function f(t,r){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,f(o)),o[12](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&C(e.$$.fragment,t),n=h()},m(t,r){e&&E(e,t,r),g(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){L();const l=e;d(l.$$.fragment,1,0,()=>{y(l,1)}),R()}s?(e=k(s,f(t)),t[12](e),v(e.$$.fragment),p(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&p(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&w(n),o[12](null),e&&y(e,t)}}}function x(o){let e,n,i;var s=o[1][0];function f(t,r){return{props:{data:t[3],$$slots:{default:[ee]},$$scope:{ctx:t}}}}return s&&(e=k(s,f(o)),o[11](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&C(e.$$.fragment,t),n=h()},m(t,r){e&&E(e,t,r),g(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][0])){if(e){L();const l=e;d(l.$$.fragment,1,0,()=>{y(l,1)}),R()}s?(e=k(s,f(t)),t[11](e),v(e.$$.fragment),p(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&8&&(l.data=t[3]),r&8215&&(l.$$scope={dirty:r,ctx:t}),e.$set(l)}},i(t){i||(e&&p(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&w(n),o[11](null),e&&y(e,t)}}}function ee(o){let e,n,i;var s=o[1][1];function f(t,r){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,f(o)),o[10](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&C(e.$$.fragment,t),n=h()},m(t,r){e&&E(e,t,r),g(t,n,r),i=!0},p(t,r){if(r&2&&s!==(s=t[1][1])){if(e){L();const l=e;d(l.$$.fragment,1,0,()=>{y(l,1)}),R()}s?(e=k(s,f(t)),t[10](e),v(e.$$.fragment),p(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else if(s){const l={};r&16&&(l.data=t[4]),r&4&&(l.form=t[2]),e.$set(l)}},i(t){i||(e&&p(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&w(n),o[10](null),e&&y(e,t)}}}function I(o){let e,n=o[6]&&O(o);return{c(){e=H("div"),n&&n.c(),this.h()},l(i){e=J(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=K(e);n&&n.l(s),s.forEach(w),this.h()},h(){N(e,"id","svelte-announcer"),N(e,"aria-live","assertive"),N(e,"aria-atomic","true"),m(e,"position","absolute"),m(e,"left","0"),m(e,"top","0"),m(e,"clip","rect(0 0 0 0)"),m(e,"clip-path","inset(50%)"),m(e,"overflow","hidden"),m(e,"white-space","nowrap"),m(e,"width","1px"),m(e,"height","1px")},m(i,s){g(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=O(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&w(e),n&&n.d()}}}function O(o){let e;return{c(){e=M(o[7])},l(n){e=Q(n,o[7])},m(n,i){g(n,e,i)},p(n,i){i&128&&X(e,n[7])},d(n){n&&w(e)}}}function te(o){let e,n,i,s,f;const t=[x,$],r=[];function l(a,_){return a[1][1]?0:1}e=l(o),n=r[e]=t[e](o);let c=o[5]&&I(o);return{c(){n.c(),i=F(),c&&c.c(),s=h()},l(a){n.l(a),i=G(a),c&&c.l(a),s=h()},m(a,_){r[e].m(a,_),g(a,i,_),c&&c.m(a,_),g(a,s,_),f=!0},p(a,[_]){let b=e;e=l(a),e===b?r[e].p(a,_):(L(),d(r[b],1,1,()=>{r[b]=null}),R(),n=r[e],n?n.p(a,_):(n=r[e]=t[e](a),n.c()),p(n,1),n.m(i.parentNode,i)),a[5]?c?c.p(a,_):(c=I(a),c.c(),c.m(s.parentNode,s)):c&&(c.d(1),c=null)},i(a){f||(p(n),f=!0)},o(a){d(n),f=!1},d(a){a&&(w(i),w(s)),r[e].d(a),c&&c.d(a)}}}function ne(o,e,n){let{stores:i}=e,{page:s}=e,{constructors:f}=e,{components:t=[]}=e,{form:r}=e,{data_0:l=null}=e,{data_1:c=null}=e;B(i.page.notify);let a=!1,_=!1,b=null;U(()=>{const u=i.page.subscribe(()=>{a&&(n(6,_=!0),j().then(()=>{n(7,b=document.title||"untitled page")}))});return n(5,a=!0),u});function T(u){P[u?"unshift":"push"](()=>{t[1]=u,n(0,t)})}function V(u){P[u?"unshift":"push"](()=>{t[0]=u,n(0,t)})}function q(u){P[u?"unshift":"push"](()=>{t[0]=u,n(0,t)})}return o.$$set=u=>{"stores"in u&&n(8,i=u.stores),"page"in u&&n(9,s=u.page),"constructors"in u&&n(1,f=u.constructors),"components"in u&&n(0,t=u.components),"form"in u&&n(2,r=u.form),"data_0"in u&&n(3,l=u.data_0),"data_1"in u&&n(4,c=u.data_1)},o.$$.update=()=>{o.$$.dirty&768&&i.page.set(s)},[t,f,r,l,c,a,_,b,i,s,T,V,q]}class oe extends W{constructor(e){super(),z(this,e,ne,te,A,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const ae=[()=>S(()=>import("../nodes/0.309dddc1.js"),["../nodes/0.309dddc1.js","../chunks/scheduler.0f962ddd.js","../chunks/index.74f36479.js"],import.meta.url),()=>S(()=>import("../nodes/1.95de52ab.js"),["../nodes/1.95de52ab.js","../chunks/scheduler.0f962ddd.js","../chunks/index.74f36479.js","../chunks/singletons.10934f40.js"],import.meta.url),()=>S(()=>import("../nodes/2.0d32ef27.js"),["../nodes/2.0d32ef27.js","../chunks/scheduler.0f962ddd.js","../chunks/index.74f36479.js","../assets/2.d5925086.css"],import.meta.url)],le=[],fe={"/":[2]},ce={handleError:({error:o})=>{console.error(o)}};export{fe as dictionary,ce as hooks,re as matchers,ae as nodes,oe as root,le as server_loads}; diff --git a/cli/src/main/resources/frontend/build/_app/immutable/entry/start.0130053c.js b/cli/src/main/resources/frontend/build/_app/immutable/entry/start.0130053c.js deleted file mode 100644 index 235656b..0000000 --- a/cli/src/main/resources/frontend/build/_app/immutable/entry/start.0130053c.js +++ /dev/null @@ -1,3 +0,0 @@ -import{o as we,t as ye}from"../chunks/scheduler.0f962ddd.js";import{S as Ge,a as Je,I as M,g as Ce,f as Me,b as _e,c as le,s as ee,i as ve,d as F,e as J,P as Ve,h as Xe}from"../chunks/singletons.10934f40.js";function Ze(t,r){return t==="/"||r==="ignore"?t:r==="never"?t.endsWith("/")?t.slice(0,-1):t:r==="always"&&!t.endsWith("/")?t+"/":t}function Qe(t){return t.split("%25").map(decodeURI).join("%25")}function et(t){for(const r in t)t[r]=decodeURIComponent(t[r]);return t}const tt=["href","pathname","search","searchParams","toString","toJSON"];function nt(t,r){const f=new URL(t);for(const s of tt)Object.defineProperty(f,s,{get(){return r(),t[s]},enumerable:!0,configurable:!0});return at(f),f}function at(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const rt="/__data.json";function ot(t){return t.replace(/\/$/,"")+rt}function it(...t){let r=5381;for(const f of t)if(typeof f=="string"){let s=f.length;for(;s;)r=r*33^f.charCodeAt(--s)}else if(ArrayBuffer.isView(f)){const s=new Uint8Array(f.buffer,f.byteOffset,f.byteLength);let d=s.length;for(;d;)r=r*33^s[--d]}else throw new TypeError("value must be a string or TypedArray");return(r>>>0).toString(36)}const fe=window.fetch;window.fetch=(t,r)=>((t instanceof Request?t.method:(r==null?void 0:r.method)||"GET")!=="GET"&&ne.delete(ke(t)),fe(t,r));const ne=new Map;function st(t,r){const f=ke(t,r),s=document.querySelector(f);if(s!=null&&s.textContent){const{body:d,...u}=JSON.parse(s.textContent),E=s.getAttribute("data-ttl");return E&&ne.set(f,{body:d,init:u,ttl:1e3*Number(E)}),Promise.resolve(new Response(d,u))}return fe(t,r)}function ct(t,r,f){if(ne.size>0){const s=ke(t,f),d=ne.get(s);if(d){if(performance.now(){const d=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(s);if(d)return r.push({name:d[1],matcher:d[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const u=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(s);if(u)return r.push({name:u[1],matcher:u[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!s)return;const E=s.split(/\[(.+?)\](?!\])/);return"/"+E.map((h,g)=>{if(g%2){if(h.startsWith("x+"))return be(String.fromCharCode(parseInt(h.slice(2),16)));if(h.startsWith("u+"))return be(String.fromCharCode(...h.slice(2).split("-").map(U=>parseInt(U,16))));const p=lt.exec(h);if(!p)throw new Error(`Invalid param: ${h}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,x,j,k,N]=p;return r.push({name:k,matcher:N,optional:!!x,rest:!!j,chained:j?g===1&&E[0]==="":!1}),j?"(.*?)":x?"([^/]*)?":"([^/]+?)"}return be(h)}).join("")}).join("")}/?$`),params:r}}function ut(t){return!/^\([^)]+\)$/.test(t)}function dt(t){return t.slice(1).split("/").filter(ut)}function pt(t,r,f){const s={},d=t.slice(1),u=d.filter(l=>l!==void 0);let E=0;for(let l=0;lp).join("/"),E=0),g===void 0){h.rest&&(s[h.name]="");continue}if(!h.matcher||f[h.matcher](g)){s[h.name]=g;const p=r[l+1],x=d[l+1];p&&!p.rest&&p.optional&&x&&h.chained&&(E=0),!p&&!x&&Object.keys(s).length===u.length&&(E=0);continue}if(h.optional&&h.chained){E++;continue}return}if(!E)return s}function be(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function ht({nodes:t,server_loads:r,dictionary:f,matchers:s}){const d=new Set(r);return Object.entries(f).map(([l,[h,g,p]])=>{const{pattern:x,params:j}=ft(l),k={id:l,exec:N=>{const U=x.exec(N);if(U)return pt(U,j,s)},errors:[1,...p||[]].map(N=>t[N]),layouts:[0,...g||[]].map(E),leaf:u(h)};return k.errors.length=k.layouts.length=Math.max(k.errors.length,k.layouts.length),k});function u(l){const h=l<0;return h&&(l=~l),[h,t[l]]}function E(l){return l===void 0?l:[d.has(l),t[l]]}}function Ke(t){try{return JSON.parse(sessionStorage[t])}catch{}}function qe(t,r){const f=JSON.stringify(r);try{sessionStorage[t]=f}catch{}}const gt=-1,mt=-2,wt=-3,yt=-4,_t=-5,vt=-6;function bt(t,r){if(typeof t=="number")return d(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const f=t,s=Array(f.length);function d(u,E=!1){if(u===gt)return;if(u===wt)return NaN;if(u===yt)return 1/0;if(u===_t)return-1/0;if(u===vt)return-0;if(E)throw new Error("Invalid input");if(u in s)return s[u];const l=f[u];if(!l||typeof l!="object")s[u]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const h=l[0],g=r==null?void 0:r[h];if(g)return s[u]=g(d(l[1]));switch(h){case"Date":s[u]=new Date(l[1]);break;case"Set":const p=new Set;s[u]=p;for(let k=1;kr!=null)}const ze=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ze];const St=new Set([...ze]);[...St];async function kt(t){var r;for(const f in t)if(typeof((r=t[f])==null?void 0:r.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([s,d])=>[s,await d])));return t}class te{constructor(r,f){this.status=r,typeof f=="string"?this.body={message:f}:f?this.body=f:this.body={message:`Error: ${r}`}}toString(){return JSON.stringify(this.body)}}class Fe{constructor(r,f){this.status=r,this.location=f}}const Rt="x-sveltekit-invalidated",At="x-sveltekit-trailing-slash",K=Ke(Ge)??{},Q=Ke(Je)??{};function Ee(t){K[t]=ee()}function It(t,r){var $e;const f=ht(t),s=t.nodes[0],d=t.nodes[1];s(),d();const u=document.documentElement,E=[],l=[];let h=null;const g={before_navigate:[],on_navigate:[],after_navigate:[]};let p={branch:[],error:null,url:null},x=!1,j=!1,k=!0,N=!1,U=!1,H=!1,B=!1,V,D=($e=history.state)==null?void 0:$e[M];D||(D=Date.now(),history.replaceState({...history.state,[M]:D},"",location.href));const ue=K[D];ue&&(history.scrollRestoration="manual",scrollTo(ue.x,ue.y));let q,ae,W;async function Re(){if(W=W||Promise.resolve(),await W,!W)return;W=null;const e=new URL(location.href),i=X(e,!0);h=null;const n=ae={},o=i&&await he(i);if(n===ae&&o){if(o.type==="redirect")return re(new URL(o.location,e).href,{},[e.pathname],n);o.props.page!==void 0&&(q=o.props.page),V.$set(o.props)}}function Ae(e){l.some(i=>i==null?void 0:i.snapshot)&&(Q[e]=l.map(i=>{var n;return(n=i==null?void 0:i.snapshot)==null?void 0:n.capture()}))}function Ie(e){var i;(i=Q[e])==null||i.forEach((n,o)=>{var a,c;(c=(a=l[o])==null?void 0:a.snapshot)==null||c.restore(n)})}function Le(){Ee(D),qe(Ge,K),Ae(D),qe(Je,Q)}async function re(e,{noScroll:i=!1,replaceState:n=!1,keepFocus:o=!1,state:a={},invalidateAll:c=!1},m,v){return typeof e=="string"&&(e=new URL(e,Ce(document))),ce({url:e,scroll:i?ee():null,keepfocus:o,redirect_chain:m,details:{state:a,replaceState:n},nav_token:v,accepted:()=>{c&&(B=!0)},blocked:()=>{},type:"goto"})}async function Pe(e){return h={id:e.id,promise:he(e).then(i=>(i.type==="loaded"&&i.state.error&&(h=null),i))},h.promise}async function oe(...e){const n=f.filter(o=>e.some(a=>o.exec(a))).map(o=>Promise.all([...o.layouts,o.leaf].map(a=>a==null?void 0:a[1]())));await Promise.all(n)}function Oe(e){var o;p=e.state;const i=document.querySelector("style[data-sveltekit]");i&&i.remove(),q=e.props.page,V=new t.root({target:r,props:{...e.props,stores:F,components:l},hydrate:!0}),Ie(D);const n={from:null,to:{params:p.params,route:{id:((o=p.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};g.after_navigate.forEach(a=>a(n)),j=!0}async function Y({url:e,params:i,branch:n,status:o,error:a,route:c,form:m}){let v="never";for(const y of n)(y==null?void 0:y.slash)!==void 0&&(v=y.slash);e.pathname=Ze(e.pathname,v),e.search=e.search;const b={type:"loaded",state:{url:e,params:i,branch:n,error:a,route:c},props:{constructors:Et(n).map(y=>y.node.component)}};m!==void 0&&(b.props.form=m);let _={},L=!q,A=0;for(let y=0;y(v.route=!0,w[O])}),params:new Proxy(o,{get:(w,O)=>(v.params.add(O),w[O])}),data:(c==null?void 0:c.data)??null,url:nt(n,()=>{v.url=!0}),async fetch(w,O){let $;w instanceof Request?($=w.url,O={body:w.method==="GET"||w.method==="HEAD"?void 0:await w.blob(),cache:w.cache,credentials:w.credentials,headers:w.headers,integrity:w.integrity,keepalive:w.keepalive,method:w.method,mode:w.mode,redirect:w.redirect,referrer:w.referrer,referrerPolicy:w.referrerPolicy,signal:w.signal,...O}):$=w;const C=new URL($,n);return P(C.href),C.origin===n.origin&&($=C.href.slice(n.origin.length)),j?ct($,C.href,O):st($,O)},setHeaders:()=>{},depends:P,parent(){return v.parent=!0,i()}};m=await b.universal.load.call(null,y)??null,m=m?await kt(m):null}return{node:b,loader:e,server:c,universal:(L=b.universal)!=null&&L.load?{type:"data",data:m,uses:v}:null,data:m??(c==null?void 0:c.data)??null,slash:((A=b.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Ue(e,i,n,o,a){if(B)return!0;if(!o)return!1;if(o.parent&&e||o.route&&i||o.url&&n)return!0;for(const c of o.params)if(a[c]!==p.params[c])return!0;for(const c of o.dependencies)if(E.some(m=>m(new URL(c))))return!0;return!1}function pe(e,i){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?i??null:null}async function he({id:e,invalidating:i,url:n,params:o,route:a}){if((h==null?void 0:h.id)===e)return h.promise;const{errors:c,layouts:m,leaf:v}=a,b=[...m,v];c.forEach(S=>S==null?void 0:S().catch(()=>{})),b.forEach(S=>S==null?void 0:S[1]().catch(()=>{}));let _=null;const L=p.url?e!==p.url.pathname+p.url.search:!1,A=p.route?a.id!==p.route.id:!1;let P=!1;const y=b.map((S,I)=>{var G;const R=p.branch[I],T=!!(S!=null&&S[0])&&((R==null?void 0:R.loader)!==S[1]||Ue(P,A,L,(G=R.server)==null?void 0:G.uses,o));return T&&(P=!0),T});if(y.some(Boolean)){try{_=await He(n,y)}catch(S){return ie({status:S instanceof te?S.status:500,error:await Z(S,{url:n,params:o,route:{id:a.id}}),url:n,route:a})}if(_.type==="redirect")return _}const w=_==null?void 0:_.nodes;let O=!1;const $=b.map(async(S,I)=>{var ge;if(!S)return;const R=p.branch[I],T=w==null?void 0:w[I];if((!T||T.type==="skip")&&S[1]===(R==null?void 0:R.loader)&&!Ue(O,A,L,(ge=R.universal)==null?void 0:ge.uses,o))return R;if(O=!0,(T==null?void 0:T.type)==="error")throw T;return de({loader:S[1],url:n,params:o,route:a,parent:async()=>{var De;const Te={};for(let me=0;me{});const C=[];for(let S=0;SPromise.resolve({}),server_data_node:pe(c)}),b={node:await d(),loader:d,universal:null,server:null,data:null};return await Y({url:n,params:a,branch:[v,b],status:e,error:i,route:null})}function X(e,i){if(ve(e,J))return;const n=se(e);for(const o of f){const a=o.exec(n);if(a)return{id:e.pathname+e.search,invalidating:i,route:o,params:et(a),url:e}}}function se(e){return Qe(e.pathname.slice(J.length)||"/")}function je({url:e,type:i,intent:n,delta:o}){let a=!1;const c=Be(p,n,e,i);o!==void 0&&(c.navigation.delta=o);const m={...c.navigation,cancel:()=>{a=!0,c.reject(new Error("navigation was cancelled"))}};return U||g.before_navigate.forEach(v=>v(m)),a?null:c}async function ce({url:e,scroll:i,keepfocus:n,redirect_chain:o,details:a,type:c,delta:m,nav_token:v={},accepted:b,blocked:_}){var $,C,S;const L=X(e,!1),A=je({url:e,type:c,delta:m,intent:L});if(!A){_();return}const P=D;b(),U=!0,j&&F.navigating.set(A.navigation),ae=v;let y=L&&await he(L);if(!y){if(ve(e,J))return await z(e);y=await Ne(e,{id:null},await Z(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,ae!==v)return A.reject(new Error("navigation was aborted")),!1;if(y.type==="redirect")if(o.length>10||o.includes(e.pathname))y=await ie({status:500,error:await Z(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(y.location,e).href,{},[...o,e.pathname],v),!1;else(($=y.props.page)==null?void 0:$.status)>=400&&await F.updated.check()&&await z(e);if(E.length=0,B=!1,N=!0,Ee(P),Ae(P),(C=y.props.page)!=null&&C.url&&y.props.page.url.pathname!==e.pathname&&(e.pathname=(S=y.props.page)==null?void 0:S.url.pathname),a){const I=a.replaceState?0:1;if(a.state[M]=D+=I,history[a.replaceState?"replaceState":"pushState"](a.state,"",e),!a.replaceState){let R=D+1;for(;Q[R]||K[R];)delete Q[R],delete K[R],R+=1}}if(h=null,j){p=y.state,y.props.page&&(y.props.page.url=e);const I=(await Promise.all(g.on_navigate.map(R=>R(A.navigation)))).filter(R=>typeof R=="function");if(I.length>0){let R=function(){g.after_navigate=g.after_navigate.filter(T=>!I.includes(T))};I.push(R),g.after_navigate.push(...I)}V.$set(y.props)}else Oe(y);const{activeElement:w}=document;if(await ye(),k){const I=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));i?scrollTo(i.x,i.y):I?I.scrollIntoView():scrollTo(0,0)}const O=document.activeElement!==w&&document.activeElement!==document.body;!n&&!O&&Se(),k=!0,y.props.page&&(q=y.props.page),U=!1,c==="popstate"&&Ie(D),A.fulfil(void 0),g.after_navigate.forEach(I=>I(A.navigation)),F.navigating.set(null),N=!1}async function Ne(e,i,n,o){return e.origin===location.origin&&e.pathname===location.pathname&&!x?await ie({status:o,error:n,url:e,route:i}):await z(e)}function z(e){return location.href=e.href,new Promise(()=>{})}function Ye(){let e;u.addEventListener("mousemove",c=>{const m=c.target;clearTimeout(e),e=setTimeout(()=>{o(m,2)},20)});function i(c){o(c.composedPath()[0],1)}u.addEventListener("mousedown",i),u.addEventListener("touchstart",i,{passive:!0});const n=new IntersectionObserver(c=>{for(const m of c)m.isIntersecting&&(oe(se(new URL(m.target.href))),n.unobserve(m.target))},{threshold:0});function o(c,m){const v=Me(c,u);if(!v)return;const{url:b,external:_,download:L}=_e(v,J);if(_||L)return;const A=le(v);if(!A.reload)if(m<=A.preload_data){const P=X(b,!1);P&&Pe(P)}else m<=A.preload_code&&oe(se(b))}function a(){n.disconnect();for(const c of u.querySelectorAll("a")){const{url:m,external:v,download:b}=_e(c,J);if(v||b)continue;const _=le(c);_.reload||(_.preload_code===Ve.viewport&&n.observe(c),_.preload_code===Ve.eager&&oe(se(m)))}}g.after_navigate.push(a),a()}function Z(e,i){return e instanceof te?e.body:t.hooks.handleError({error:e,event:i})??{message:i.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{we(()=>(g.after_navigate.push(e),()=>{const i=g.after_navigate.indexOf(e);g.after_navigate.splice(i,1)}))},before_navigate:e=>{we(()=>(g.before_navigate.push(e),()=>{const i=g.before_navigate.indexOf(e);g.before_navigate.splice(i,1)}))},on_navigate:e=>{we(()=>(g.on_navigate.push(e),()=>{const i=g.on_navigate.indexOf(e);g.on_navigate.splice(i,1)}))},disable_scroll_handling:()=>{(N||!j)&&(k=!1)},goto:(e,i={})=>re(e,i,[]),invalidate:e=>{if(typeof e=="function")E.push(e);else{const{href:i}=new URL(e,location.href);E.push(n=>n.href===i)}return Re()},invalidate_all:()=>(B=!0,Re()),preload_data:async e=>{const i=new URL(e,Ce(document)),n=X(i,!1);if(!n)throw new Error(`Attempted to preload a URL that does not belong to this app: ${i}`);await Pe(n)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const i=new URL(location.href),{branch:n,route:o}=p;if(!o)return;const a=await xe(p.branch.length,n,o.errors);if(a){const c=await Y({url:i,params:p.params,branch:n.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:o});p=c.state,V.$set(c.props),ye().then(Se)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},[]):(V.$set({form:null,page:{...q,form:e.data,status:e.status}}),await ye(),V.$set({form:e.data}),e.type==="success"&&Se())},_start_router:()=>{var i;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let o=!1;if(Le(),!U){const a=Be(p,void 0,null,"leave"),c={...a.navigation,cancel:()=>{o=!0,a.reject(new Error("navigation was cancelled"))}};g.before_navigate.forEach(m=>m(c))}o?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Le()}),(i=navigator.connection)!=null&&i.saveData||Ye(),u.addEventListener("click",n=>{var P;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const o=Me(n.composedPath()[0],u);if(!o)return;const{url:a,external:c,target:m,download:v}=_e(o,J);if(!a)return;if(m==="_parent"||m==="_top"){if(window.parent!==window)return}else if(m&&m!=="_self")return;const b=le(o);if(!(o instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||v)return;if(c||b.reload){je({url:a,type:"link"})?U=!0:n.preventDefault();return}const[L,A]=a.href.split("#");if(A!==void 0&&L===location.href.split("#")[0]){if(p.url.hash===a.hash){n.preventDefault(),(P=o.ownerDocument.getElementById(A))==null||P.scrollIntoView();return}if(H=!0,Ee(D),e(a),!b.replace_state)return;H=!1,n.preventDefault()}ce({url:a,scroll:b.noscroll?ee():null,keepfocus:b.keep_focus??!1,redirect_chain:[],details:{state:{},replaceState:b.replace_state??a.href===location.href},accepted:()=>n.preventDefault(),blocked:()=>n.preventDefault(),type:"link"})}),u.addEventListener("submit",n=>{if(n.defaultPrevented)return;const o=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||o.method)!=="get")return;const m=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||o.action);if(ve(m,J))return;const v=n.target,{keep_focus:b,noscroll:_,reload:L,replace_state:A}=le(v);if(L)return;n.preventDefault(),n.stopPropagation();const P=new FormData(v),y=a==null?void 0:a.getAttribute("name");y&&P.append(y,(a==null?void 0:a.getAttribute("value"))??""),m.search=new URLSearchParams(P).toString(),ce({url:m,scroll:_?ee():null,keepfocus:b??!1,redirect_chain:[],details:{state:{},replaceState:A??m.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var o;if((o=n.state)!=null&&o[M]){if(n.state[M]===D)return;const a=K[n.state[M]];if(p.url.href.split("#")[0]===location.href.split("#")[0]){K[D]=ee(),D=n.state[M],scrollTo(a.x,a.y);return}const c=n.state[M]-D;await ce({url:new URL(location.href),scroll:a,keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{D=n.state[M]},blocked:()=>{history.go(-c)},type:"popstate",delta:c})}else if(!H){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{H&&(H=!1,history.replaceState({...history.state,[M]:++D},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&F.navigating.set(null)});function e(n){p.url=n,F.page.set({...q,url:n}),F.page.notify()}},_hydrate:async({status:e=200,error:i,node_ids:n,params:o,route:a,data:c,form:m})=>{x=!0;const v=new URL(location.href);({params:o={},route:a={id:null}}=X(v,!1)||{});let b;try{const _=n.map(async(P,y)=>{const w=c[y];return w!=null&&w.uses&&(w.uses=We(w.uses)),de({loader:t.nodes[P],url:v,params:o,route:a,parent:async()=>{const O={};for(let $=0;$P===a.id);if(A){const P=A.layouts;for(let y=0;yd?"1":"0").join(""));const s=await fe(f.href);if(!s.ok)throw new te(s.status,await s.json());return new Promise(async d=>{var p;const u=new Map,E=s.body.getReader(),l=new TextDecoder;function h(x){return bt(x,{Promise:j=>new Promise((k,N)=>{u.set(j,{fulfil:k,reject:N})})})}let g="";for(;;){const{done:x,value:j}=await E.read();if(x&&!g)break;for(g+=!j&&g?` -`:l.decode(j);;){const k=g.indexOf(` -`);if(k===-1)break;const N=JSON.parse(g.slice(0,k));if(g=g.slice(k+1),N.type==="redirect")return d(N);if(N.type==="data")(p=N.nodes)==null||p.forEach(U=>{(U==null?void 0:U.type)==="data"&&(U.uses=We(U.uses),U.data=h(U.data))}),d(N);else if(N.type==="chunk"){const{id:U,data:H,error:B}=N,V=u.get(U);u.delete(U),B?V.reject(h(B)):V.fulfil(h(H))}}}})}function We(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url)}}function Se(){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const r=document.body,f=r.getAttribute("tabindex");r.tabIndex=-1,r.focus({preventScroll:!0,focusVisible:!1}),f!==null?r.setAttribute("tabindex",f):r.removeAttribute("tabindex");const s=getSelection();if(s&&s.type!=="None"){const d=[];for(let u=0;u{if(s.rangeCount===d.length){for(let u=0;u{d=p,u=x});return E.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((h=t.route)==null?void 0:h.id)??null},url:t.url},to:f&&{params:(r==null?void 0:r.params)??null,route:{id:((g=r==null?void 0:r.route)==null?void 0:g.id)??null},url:f},willUnload:!r,type:s,complete:E},fulfil:d,reject:u}}async function Ot(t,r,f){const s=It(t,r);Xe({client:s}),f?await s._hydrate(f):s.goto(location.href,{replaceState:!0}),s._start_router()}export{Ot as start}; diff --git a/cli/src/main/resources/frontend/build/_app/immutable/nodes/0.309dddc1.js b/cli/src/main/resources/frontend/build/_app/immutable/nodes/0.309dddc1.js deleted file mode 100644 index 95870ef..0000000 --- a/cli/src/main/resources/frontend/build/_app/immutable/nodes/0.309dddc1.js +++ /dev/null @@ -1 +0,0 @@ -import{s as l,c as r,u as i,g as u,d as _}from"../chunks/scheduler.0f962ddd.js";import{S as f,i as c,d as p,t as d}from"../chunks/index.74f36479.js";const m=!0,S=Object.freeze(Object.defineProperty({__proto__:null,prerender:m},Symbol.toStringTag,{value:"Module"}));function $(n){let s;const a=n[1].default,e=r(a,n,n[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,o){e&&e.m(t,o),s=!0},p(t,[o]){e&&e.p&&(!s||o&1)&&i(e,a,t,t[0],s?_(a,t[0],o,null):u(t[0]),null)},i(t){s||(p(e,t),s=!0)},o(t){d(e,t),s=!1},d(t){e&&e.d(t)}}}function g(n,s,a){let{$$slots:e={},$$scope:t}=s;return n.$$set=o=>{"$$scope"in o&&a(0,t=o.$$scope)},[t,e]}class v extends f{constructor(s){super(),c(this,s,g,$,l,{})}}export{v as component,S as universal}; diff --git a/cli/src/main/resources/frontend/build/_app/immutable/nodes/1.95de52ab.js b/cli/src/main/resources/frontend/build/_app/immutable/nodes/1.95de52ab.js deleted file mode 100644 index 6063b85..0000000 --- a/cli/src/main/resources/frontend/build/_app/immutable/nodes/1.95de52ab.js +++ /dev/null @@ -1 +0,0 @@ -import{s as x,n as _,e as S}from"../chunks/scheduler.0f962ddd.js";import{S as j,i as q,g as f,m as d,s as y,h as g,j as h,n as v,f as u,c as C,a as m,x as $,o as E}from"../chunks/index.74f36479.js";import{d as H}from"../chunks/singletons.10934f40.js";const P=()=>{const s=H;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},k={subscribe(s){return P().page.subscribe(s)}};function w(s){var b;let t,r=s[0].status+"",o,n,i,c=((b=s[0].error)==null?void 0:b.message)+"",l;return{c(){t=f("h1"),o=d(r),n=y(),i=f("p"),l=d(c)},l(e){t=g(e,"H1",{});var a=h(t);o=v(a,r),a.forEach(u),n=C(e),i=g(e,"P",{});var p=h(i);l=v(p,c),p.forEach(u)},m(e,a){m(e,t,a),$(t,o),m(e,n,a),m(e,i,a),$(i,l)},p(e,[a]){var p;a&1&&r!==(r=e[0].status+"")&&E(o,r),a&1&&c!==(c=((p=e[0].error)==null?void 0:p.message)+"")&&E(l,c)},i:_,o:_,d(e){e&&(u(t),u(n),u(i))}}}function z(s,t,r){let o;return S(s,k,n=>r(0,o=n)),[o]}let F=class extends j{constructor(t){super(),q(this,t,z,w,x,{})}};export{F as component}; diff --git a/cli/src/main/resources/frontend/build/_app/immutable/nodes/2.0d32ef27.js b/cli/src/main/resources/frontend/build/_app/immutable/nodes/2.0d32ef27.js deleted file mode 100644 index f20d5e5..0000000 --- a/cli/src/main/resources/frontend/build/_app/immutable/nodes/2.0d32ef27.js +++ /dev/null @@ -1 +0,0 @@ -var Ke=Object.defineProperty;var Qe=(s,e,n)=>e in s?Ke(s,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[e]=n;var ae=(s,e,n)=>(Qe(s,typeof e!="symbol"?e+"":e,n),n);import{s as oe,n as _e,i as We,f as Ze,o as xe}from"../chunks/scheduler.0f962ddd.js";import{S as re,i as ce,g as b,m as W,h as k,j as E,n as Z,f as g,k as T,y as Q,a as R,x as d,o as x,s as M,e as se,c as I,d as A,p as te,t as N,b as ne,z as le,r as y,u as z,v as Y,w as G,A as ie,B as ue,H as et,C as tt,D as nt,E as lt}from"../chunks/index.74f36479.js";function X(s){return(s==null?void 0:s.length)!==void 0?s:Array.from(s)}function st(s){let e,n;return{c(){e=b("span"),n=W(s[0]),this.h()},l(t){e=k(t,"SPAN",{class:!0});var l=E(e);n=Z(l,s[0]),l.forEach(g),this.h()},h(){T(e,"class","svelte-huhhoz"),Q(e,"subdued",s[0]=="0.00")},m(t,l){R(t,e,l),d(e,n)},p(t,[l]){l&1&&x(n,t[0]),l&1&&Q(e,"subdued",t[0]=="0.00")},i:_e,o:_e,d(t){t&&g(e)}}}function at(s,e,n){let{amount:t}=e;return s.$$set=l=>{"amount"in l&&n(0,t=l.amount)},[t]}class K extends re{constructor(e){super(),ce(this,e,at,st,oe,{amount:0})}}function $e(s,e,n){const t=s.slice();return t[6]=e[n],t[8]=n,t}function be(s,e,n){const t=s.slice();return t[9]=e[n],t}function ke(s,e,n){const t=s.slice();return t[9]=e[n],t}function we(s,e,n){const t=s.slice();return t[12]=e[n],t}function Te(s,e,n){const t=s.slice();return t[9]=e[n],t}function Ee(s){let e,n,t,l,o,a,c,r,u,i,m,f,h,v,$,p,D,U;return r=new K({props:{amount:s[1].opening}}),m=new K({props:{amount:s[1].debit}}),v=new K({props:{amount:s[1].credit}}),D=new K({props:{amount:s[1].closing}}),{c(){e=b("tr"),n=b("td"),t=W(s[0]),l=M(),o=b("td"),a=M(),c=b("td"),y(r.$$.fragment),u=M(),i=b("td"),y(m.$$.fragment),f=M(),h=b("td"),y(v.$$.fragment),$=M(),p=b("td"),y(D.$$.fragment),this.h()},l(V){e=k(V,"TR",{class:!0});var F=E(e);n=k(F,"TD",{class:!0});var w=E(n);t=Z(w,s[0]),w.forEach(g),l=I(F),o=k(F,"TD",{class:!0}),E(o).forEach(g),a=I(F),c=k(F,"TD",{align:!0,class:!0});var P=E(c);z(r.$$.fragment,P),P.forEach(g),u=I(F),i=k(F,"TD",{align:!0,class:!0});var _=E(i);z(m.$$.fragment,_),_.forEach(g),f=I(F),h=k(F,"TD",{align:!0,class:!0});var B=E(h);z(v.$$.fragment,B),B.forEach(g),$=I(F),p=k(F,"TD",{align:!0,class:!0});var q=E(p);z(D.$$.fragment,q),q.forEach(g),F.forEach(g),this.h()},h(){T(n,"class","name svelte-16pr3mu"),T(o,"class","svelte-16pr3mu"),T(c,"align","right"),T(c,"class","svelte-16pr3mu"),T(i,"align","right"),T(i,"class","svelte-16pr3mu"),T(h,"align","right"),T(h,"class","svelte-16pr3mu"),T(p,"align","right"),T(p,"class","svelte-16pr3mu"),T(e,"class","groupHead svelte-16pr3mu")},m(V,F){R(V,e,F),d(e,n),d(n,t),d(e,l),d(e,o),d(e,a),d(e,c),Y(r,c,null),d(e,u),d(e,i),Y(m,i,null),d(e,f),d(e,h),Y(v,h,null),d(e,$),d(e,p),Y(D,p,null),U=!0},p(V,F){(!U||F&1)&&x(t,V[0]);const w={};F&2&&(w.amount=V[1].opening),r.$set(w);const P={};F&2&&(P.amount=V[1].debit),m.$set(P);const _={};F&2&&(_.amount=V[1].credit),v.$set(_);const B={};F&2&&(B.amount=V[1].closing),D.$set(B)},i(V){U||(A(r.$$.fragment,V),A(m.$$.fragment,V),A(v.$$.fragment,V),A(D.$$.fragment,V),U=!0)},o(V){N(r.$$.fragment,V),N(m.$$.fragment,V),N(v.$$.fragment,V),N(D.$$.fragment,V),U=!1},d(V){V&&g(e),G(r),G(m),G(v),G(D)}}}function ot(s){let e,n=s[6].posts[0].name+"",t,l,o,a="☚",c,r,u,i;function m(){return s[5](s[6])}let f=X(s[6].posts[0].comments),h=[];for(let v=0;v1?rt:ot}let F=V(s),w=F(s),P=X(s[6].comments),_=[];for(let S=0;S{q[L]=null}),ne(),h=q[f],h?h.p(S,O):(h=q[f]=B[f](S),h.c()),A(h,1),h.m(e,v));const H={};O&4&&(H.amount=S[6].selfPost.balance),p.$set(H)},i(S){U||(A(h),A(p.$$.fragment,S),U=!0)},o(S){N(h),N(p.$$.fragment,S),U=!1},d(S){S&&g(e),w.d(),le(_,S),q[f].d(),G(p)}}}function mt(s){let e,n,t,l=s[1]&&s[0]&&Ee(s),o=X(s[2]),a=[];for(let r=0;rN(a[r],1,1,()=>{a[r]=null});return{c(){l&&l.c(),e=M();for(let r=0;r{l=null}),ne()),u&12){o=X(r[2]);let i;for(i=0;ia(u.name),r=u=>a(u.posts[0].name);return s.$$set=u=>{"name"in u&&n(0,t=u.name),"group"in u&&n(1,l=u.group),"txns"in u&&n(2,o=u.txns),"onFocusAccount"in u&&n(3,a=u.onFocusAccount)},[t,l,o,a,c,r]}class _t extends re{constructor(e){super(),ce(this,e,ht,mt,oe,{name:0,group:1,txns:2,onFocusAccount:3})}}function Ne(s,e,n){const t=s.slice();return t[3]=e[n],t}function Pe(s){let e,n;return e=new _t({props:{name:s[3].name,group:s[3],txns:s[3].txns,onFocusAccount:s[2]}}),{c(){y(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){Y(e,t,l),n=!0},p(t,l){const o={};l&2&&(o.name=t[3].name),l&2&&(o.group=t[3]),l&2&&(o.txns=t[3].txns),l&4&&(o.onFocusAccount=t[2]),e.$set(o)},i(t){n||(A(e.$$.fragment,t),n=!0)},o(t){N(e.$$.fragment,t),n=!1},d(t){G(e,t)}}}function gt(s){let e,n,t,l,o,a,c=X(s[1].txnsByMonth),r=[];for(let i=0;iN(r[i],1,1,()=>{r[i]=null});return{c(){e=b("h4"),n=W(s[0]),t=M(),l=b("table"),o=b("tbody");for(let i=0;i{"accountName"in a&&n(0,t=a.accountName),"accountTxns"in a&&n(1,l=a.accountTxns),"onFocusAccount"in a&&n(2,o=a.onFocusAccount)},[t,l,o]}class vt extends re{constructor(e){super(),ce(this,e,dt,gt,oe,{accountName:0,accountTxns:1,onFocusAccount:2})}}function Se(s,{delay:e=0,duration:n=400,easing:t=We}={}){const l=+getComputedStyle(s).opacity;return{delay:e,duration:n,easing:t,css:o=>`opacity: ${o*l}`}}function Re(s,e,n){const t=s.slice();return t[11]=e[n],t}function pt(s){let e,n=s[0].name+"",t;return{c(){e=b("span"),t=W(n),this.h()},l(l){e=k(l,"SPAN",{class:!0});var o=E(e);t=Z(o,n),o.forEach(g),this.h()},h(){T(e,"class","name svelte-1h2g6gf"),Q(e,"large",s[1]<1)},m(l,o){R(l,e,o),d(e,t)},p(l,o){o&1&&n!==(n=l[0].name+"")&&x(t,n),o&2&&Q(e,"large",l[1]<1)},d(l){l&&g(e)}}}function $t(s){let e,n=s[0].name+"",t,l,o;return{c(){e=b("button"),t=W(n),this.h()},l(a){e=k(a,"BUTTON",{class:!0});var c=E(e);t=Z(c,n),c.forEach(g),this.h()},h(){T(e,"class","name svelte-1h2g6gf"),Q(e,"large",s[1]<1)},m(a,c){R(a,e,c),d(e,t),l||(o=ue(e,"click",s[8]),l=!0)},p(a,c){c&1&&n!==(n=a[0].name+"")&&x(t,n),c&2&&Q(e,"large",a[1]<1)},d(a){a&&g(e),l=!1,o()}}}function Ve(s){let e,n,t=X(s[0].children),l=[];for(let a=0;aN(l[a],1,1,()=>{l[a]=null});return{c(){for(let a=0;a{H=null}),ne())},i(C){B||(A(i.$$.fragment,C),A(h.$$.fragment,C),A(p.$$.fragment,C),A(V.$$.fragment,C),Ze(()=>{B&&(w&&w.end(1),F=nt(e,Se,{duration:200}),F.start())}),A(H),B=!0)},o(C){N(i.$$.fragment,C),N(h.$$.fragment,C),N(p.$$.fragment,C),N(V.$$.fragment,C),F&&F.invalidate(),w=lt(e,Se,{duration:100}),N(H),B=!1},d(C){C&&(g(e),g(P),g(_)),L.d(),G(i),G(h),G(p),G(V),C&&w&&w.end(),H&&H.d(C),q=!1,J()}}}function kt(s,e,n){let t,l,o,a,{prevBreadCrumbs:c=""}=e,{ab:r}=e,{level:u=0}=e,{onFocusAccount:i}=e,m=u<2;function f(){n(3,m=!m)}const h=()=>i(t);return s.$$set=v=>{"prevBreadCrumbs"in v&&n(9,c=v.prevBreadCrumbs),"ab"in v&&n(0,r=v.ab),"level"in v&&n(1,u=v.level),"onFocusAccount"in v&&n(2,i=v.onFocusAccount)},s.$$.update=()=>{s.$$.dirty&513&&n(7,t=(c.length==0?"":c+":")+r.name),s.$$.dirty&2&&n(6,l=" | ".repeat(u)),s.$$.dirty&2&&n(5,o=u+1),s.$$.dirty&1&&n(4,a=r.children.length>0)},[r,u,i,m,a,o,l,t,f,c,h]}class Je extends re{constructor(e){super(),ce(this,e,kt,bt,oe,{prevBreadCrumbs:9,ab:0,level:1,onFocusAccount:2})}}function Ie(s,e,n){const t=s.slice();return t[2]=e[n],t}function Le(s){let e,n;return e=new Je({props:{ab:s[2],onFocusAccount:s[1]}}),{c(){y(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){Y(e,t,l),n=!0},p(t,l){const o={};l&1&&(o.ab=t[2]),l&2&&(o.onFocusAccount=t[1]),e.$set(o)},i(t){n||(A(e.$$.fragment,t),n=!0)},o(t){N(e.$$.fragment,t),n=!1},d(t){G(e,t)}}}function wt(s){let e,n="Balances",t,l,o,a,c=X(s[0]),r=[];for(let i=0;iN(r[i],1,1,()=>{r[i]=null});return{c(){e=b("h4"),e.textContent=n,t=M(),l=b("table"),o=b("tbody");for(let i=0;i{"accountBalances"in o&&n(0,t=o.accountBalances),"onFocusAccount"in o&&n(1,l=o.onFocusAccount)},[t,l]}class Et extends re{constructor(e){super(),ce(this,e,Tt,wt,oe,{accountBalances:0,onFocusAccount:1})}}var ge=(s=>(s[s.Balance=0]="Balance",s[s.MonthlyRegister=1]="MonthlyRegister",s[s.Account=2]="Account",s))(ge||{});class At{constructor(){ae(this,"tabType",0);ae(this,"closeable",!1)}getTitle(){return"Balance Report"}}class de{constructor(){ae(this,"tabType",1);ae(this,"closeable",!1)}getTitle(){return"Monthly Register"}}class ve{constructor(e){ae(this,"tabType",2);ae(this,"closeable",!0);ae(this,"name");this.name=e}getTitle(){return this.name}}function Oe(s,e,n){const t=s.slice();return t[3]=e[n],t}function Ue(s,e,n){const t=s.slice();return t[6]=e[n],t}function qe(s){let e,n,t=s[6].name+"",l,o,a,c,r,u,i,m,f,h,v,$,p,D,U,V,F;function w(){return s[2](s[6])}return c=new K({props:{amount:s[6].opening}}),i=new K({props:{amount:s[6].debit}}),h=new K({props:{amount:s[6].credit}}),p=new K({props:{amount:s[6].closing}}),{c(){e=b("tr"),n=b("td"),l=W(t),o=M(),a=b("td"),y(c.$$.fragment),r=M(),u=b("td"),y(i.$$.fragment),m=M(),f=b("td"),y(h.$$.fragment),v=M(),$=b("td"),y(p.$$.fragment),D=M(),this.h()},l(P){e=k(P,"TR",{class:!0});var _=E(e);n=k(_,"TD",{class:!0});var B=E(n);l=Z(B,t),B.forEach(g),o=I(_),a=k(_,"TD",{align:!0,class:!0});var q=E(a);z(c.$$.fragment,q),q.forEach(g),r=I(_),u=k(_,"TD",{align:!0,class:!0});var J=E(u);z(i.$$.fragment,J),J.forEach(g),m=I(_),f=k(_,"TD",{align:!0,class:!0});var S=E(f);z(h.$$.fragment,S),S.forEach(g),v=I(_),$=k(_,"TD",{align:!0,class:!0});var O=E($);z(p.$$.fragment,O),O.forEach(g),D=I(_),_.forEach(g),this.h()},h(){T(n,"class","account svelte-koo16s"),T(a,"align","right"),T(a,"class","svelte-koo16s"),T(u,"align","right"),T(u,"class","svelte-koo16s"),T(f,"align","right"),T(f,"class","svelte-koo16s"),T($,"align","right"),T($,"class","svelte-koo16s"),T(e,"class","svelte-koo16s")},m(P,_){R(P,e,_),d(e,n),d(n,l),d(e,o),d(e,a),Y(c,a,null),d(e,r),d(e,u),Y(i,u,null),d(e,m),d(e,f),Y(h,f,null),d(e,v),d(e,$),Y(p,$,null),d(e,D),U=!0,V||(F=ue(n,"click",w),V=!0)},p(P,_){s=P,(!U||_&1)&&t!==(t=s[6].name+"")&&x(l,t);const B={};_&1&&(B.amount=s[6].opening),c.$set(B);const q={};_&1&&(q.amount=s[6].debit),i.$set(q);const J={};_&1&&(J.amount=s[6].credit),h.$set(J);const S={};_&1&&(S.amount=s[6].closing),p.$set(S)},i(P){U||(A(c.$$.fragment,P),A(i.$$.fragment,P),A(h.$$.fragment,P),A(p.$$.fragment,P),U=!0)},o(P){N(c.$$.fragment,P),N(i.$$.fragment,P),N(h.$$.fragment,P),N(p.$$.fragment,P),U=!1},d(P){P&&g(e),G(c),G(i),G(h),G(p),V=!1,F()}}}function He(s){let e,n,t=s[3].month+"",l,o,a,c,r,u,i,m,f,h,v,$,p,D,U,V;c=new K({props:{amount:s[3].opening}}),i=new K({props:{amount:s[3].debit}}),h=new K({props:{amount:s[3].credit}}),p=new K({props:{amount:s[3].closing}});let F=X(s[3].accountSummaries),w=[];for(let _=0;_N(w[_],1,1,()=>{w[_]=null});return{c(){e=b("tr"),n=b("td"),l=W(t),o=M(),a=b("td"),y(c.$$.fragment),r=M(),u=b("td"),y(i.$$.fragment),m=M(),f=b("td"),y(h.$$.fragment),v=M(),$=b("td"),y(p.$$.fragment),D=M();for(let _=0;_N(o[c],1,1,()=>{o[c]=null});return{c(){e=b("table"),n=b("tbody");for(let c=0;cl(a.name);return s.$$set=a=>{"monthlySummaries"in a&&n(0,t=a.monthlySummaries),"onFocusAccount"in a&&n(1,l=a.onFocusAccount)},[t,l,o]}class Ct extends re{constructor(e){super(),ce(this,e,Dt,Bt,oe,{monthlySummaries:0,onFocusAccount:1})}}function je(s,e,n){const t=s.slice();return t[8]=e[n],t[10]=n,t}function ye(s){let e,n="X",t,l;function o(){return s[7](s[10])}return{c(){e=b("span"),e.textContent=n,this.h()},l(a){e=k(a,"SPAN",{class:!0,"data-svelte-h":!0}),ie(e)!=="svelte-c9i1c1"&&(e.textContent=n),this.h()},h(){T(e,"class","closeButton svelte-1xqxhm5")},m(a,c){R(a,e,c),t||(l=ue(e,"click",o),t=!0)},p(a,c){s=a},d(a){a&&g(e),t=!1,l()}}}function ze(s){let e,n,t,l=s[8].getTitle()+"",o,a,c,r,u;function i(){return s[6](s[10])}let m=s[8].closeable&&ye(s);return{c(){e=b("li"),n=b("div"),t=b("span"),o=W(l),a=M(),m&&m.c(),c=M(),this.h()},l(f){e=k(f,"LI",{class:!0});var h=E(e);n=k(h,"DIV",{});var v=E(n);t=k(v,"SPAN",{});var $=E(t);o=Z($,l),$.forEach(g),a=I(v),m&&m.l(v),v.forEach(g),c=I(h),h.forEach(g),this.h()},h(){T(e,"class","svelte-1xqxhm5"),Q(e,"selected",s[10]==s[2])},m(f,h){R(f,e,h),d(e,n),d(n,t),d(t,o),d(n,a),m&&m.m(n,null),d(e,c),r||(u=ue(t,"click",i),r=!0)},p(f,h){s=f,h&2&&l!==(l=s[8].getTitle()+"")&&x(o,l),s[8].closeable?m?m.p(s,h):(m=ye(s),m.c(),m.m(n,null)):m&&(m.d(1),m=null),h&4&&Q(e,"selected",s[10]==s[2])},d(f){f&&g(e),m&&m.d(),r=!1,u()}}}function Ye(s){let e,n;return e=new Et({props:{accountBalances:s[0].accountBalances,onFocusAccount:s[4]}}),{c(){y(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){Y(e,t,l),n=!0},p(t,l){const o={};l&1&&(o.accountBalances=t[0].accountBalances),e.$set(o)},i(t){n||(A(e.$$.fragment,t),n=!0)},o(t){N(e.$$.fragment,t),n=!1},d(t){G(e,t)}}}function Ge(s){let e,n;return e=new vt({props:{accountName:s[3].name,accountTxns:s[0].accountTxns[s[3].name],onFocusAccount:s[4]}}),{c(){y(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){Y(e,t,l),n=!0},p(t,l){const o={};l&8&&(o.accountName=t[3].name),l&9&&(o.accountTxns=t[0].accountTxns[t[3].name]),e.$set(o)},i(t){n||(A(e.$$.fragment,t),n=!0)},o(t){N(e.$$.fragment,t),n=!1},d(t){G(e,t)}}}function Xe(s){let e,n;return e=new Ct({props:{monthlySummaries:s[0].monthlySummaries,onFocusAccount:s[4]}}),{c(){y(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){Y(e,t,l),n=!0},p(t,l){const o={};l&1&&(o.monthlySummaries=t[0].monthlySummaries),e.$set(o)},i(t){n||(A(e.$$.fragment,t),n=!0)},o(t){N(e.$$.fragment,t),n=!1},d(t){G(e,t)}}}function Ft(s){let e,n,t,l,o,a,c,r=X(s[1]),u=[];for(let h=0;h{i=null}),ne()),h[3]instanceof ve?m?(m.p(h,v),v&8&&A(m,1)):(m=Ge(h),m.c(),A(m,1),m.m(l,a)):m&&(te(),N(m,1,1,()=>{m=null}),ne()),h[3]instanceof de?f?(f.p(h,v),v&8&&A(f,1)):(f=Xe(h),f.c(),A(f,1),f.m(l,null)):f&&(te(),N(f,1,1,()=>{f=null}),ne())},i(h){c||(A(i),A(m),A(f),c=!0)},o(h){N(i),N(m),N(f),c=!1},d(h){h&&g(e),le(u,h),i&&i.d(),m&&m.d(),f&&f.d()}}}function Nt(s,e,n){let t,{application:l}=e,o=[new At,new de],a=0;function c(m){n(2,a=o.push(new ve(m))-1),n(1,o)}function r(m){o[m].closeable&&(o.splice(m,1),n(2,a=Math.min(a,o.length-1)),n(1,o))}const u=m=>n(2,a=m),i=m=>r(m);return s.$$set=m=>{"application"in m&&n(0,l=m.application)},s.$$.update=()=>{s.$$.dirty&6&&n(3,t=o[a])},[l,o,a,t,c,r,u,i]}class Pt extends re{constructor(e){super(),ce(this,e,Nt,Ft,oe,{application:0})}}function St(s){let e,n="Loading...";return{c(){e=b("p"),e.textContent=n},l(t){e=k(t,"P",{"data-svelte-h":!0}),ie(e)!=="svelte-qdsr2u"&&(e.textContent=n)},m(t,l){R(t,e,l)},p:_e,i:_e,o:_e,d(t){t&&g(e)}}}function Rt(s){let e,n;return e=new Pt({props:{application:s[0]}}),{c(){y(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){Y(e,t,l),n=!0},p(t,l){const o={};l&1&&(o.application=t[0]),e.$set(o)},i(t){n||(A(e.$$.fragment,t),n=!0)},o(t){N(e.$$.fragment,t),n=!1},d(t){G(e,t)}}}function Vt(s){let e,n,t,l;const o=[Rt,St],a=[];function c(r,u){return r[0]?0:1}return e=c(s),n=a[e]=o[e](s),{c(){n.c(),t=se()},l(r){n.l(r),t=se()},m(r,u){a[e].m(r,u),R(r,t,u),l=!0},p(r,[u]){let i=e;e=c(r),e===i?a[e].p(r,u):(te(),N(a[i],1,1,()=>{a[i]=null}),ne(),n=a[e],n?n.p(r,u):(n=a[e]=o[e](r),n.c()),A(n,1),n.m(t.parentNode,t))},i(r){l||(A(n),l=!0)},o(r){N(n),l=!1},d(r){r&&g(t),a[e].d(r)}}}function Mt(s,e,n){let t=null;const l="/api/";async function o(){const c=await(await fetch(l)).json();n(0,t=c),setTimeout(o,4e3)}return xe(async()=>{o()}),[t]}class Ut extends re{constructor(e){super(),ce(this,e,Mt,Vt,oe,{})}}export{Ut as component}; diff --git a/cli/src/main/resources/frontend/build/_app/version.json b/cli/src/main/resources/frontend/build/_app/version.json deleted file mode 100644 index fa35b3c..0000000 --- a/cli/src/main/resources/frontend/build/_app/version.json +++ /dev/null @@ -1 +0,0 @@ -{"version":"1699282986701"} \ No newline at end of file diff --git a/cli/src/main/resources/frontend/build/favicon.png b/cli/src/main/resources/frontend/build/favicon.png deleted file mode 100644 index 825b9e6..0000000 Binary files a/cli/src/main/resources/frontend/build/favicon.png and /dev/null differ diff --git a/cli/src/main/resources/frontend/build/index.html b/cli/src/main/resources/frontend/build/index.html deleted file mode 100644 index 1bc2825..0000000 --- a/cli/src/main/resources/frontend/build/index.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - -

Loading...

- - -
- - diff --git a/cli/src/main/scala/co/uproot/abandon/App.scala b/cli/src/main/scala/co/uproot/abandon/App.scala index 4033f35..1e9dce5 100644 --- a/cli/src/main/scala/co/uproot/abandon/App.scala +++ b/cli/src/main/scala/co/uproot/abandon/App.scala @@ -1,5 +1,9 @@ package co.uproot.abandon +import java.util.zip.{ZipEntry, ZipInputStream} +import java.io.{ByteArrayOutputStream, BufferedInputStream, FileInputStream} +import scala.collection.mutable.Map + import co.uproot.abandon.Helper.maxElseZero import co.uproot.abandon.web.WebAPI import org.limium.picoserve.{Handler, Server} @@ -263,23 +267,28 @@ object CLIApp { } + private val resourceFileMap = { + val resourceStream = this.getClass.getResourceAsStream("/frontend/build.zip") + val zipInputStream = new ZipInputStream(new BufferedInputStream(resourceStream)) + ZipFileReader.readZipFile(zipInputStream) + } + private val staticHandler = Handler("/", "GET", request => { val path = request.getPath() - val resName = "/frontend/build/" + (if (path == "/") "index.html" else path.tail) - val resourceStream = this.getClass.getResourceAsStream(resName) - if (resourceStream != null) { - val bytes = resourceStream.readAllBytes() - val contentType = if (resName.endsWith(".js")) { + val fileName = (if (path == "/") "index.html" else path.tail) + val bytes = resourceFileMap("build/" + fileName) + if (bytes != null) { + val contentType = if (fileName.endsWith(".js")) { "application/javascript" - } else if (resName.endsWith(".html")) { + } else if (fileName.endsWith(".html")) { "text/html" - } else if (resName.endsWith(".css")) { + } else if (fileName.endsWith(".css")) { "text/css" } else "text/plain" new ByteResponse(200, bytes, java.util.Map.of("Content-type", java.util.List.of(contentType))) } else { - new StringResponse(404, """{ "error": "not found"} """) + new StringResponse(404, s"""{ "error": "not found $fileName"} """) } }) @@ -351,3 +360,32 @@ object CLIApp { System.exit(co.uproot.abandon.CLIApp.mainStatus(args)) } } + +object ZipFileReader { + + def readZipFile(zipInputStream: ZipInputStream): Map[String, Array[Byte]] = { + val fileMap = Map[String, Array[Byte]]() + + var entry: ZipEntry = null + + try { + while ({ entry = zipInputStream.getNextEntry; entry != null }) { + if (!entry.isDirectory) { + val bos = new ByteArrayOutputStream() + val buf = new Array[Byte](1024) + var len = 0 + while ({ len = zipInputStream.read(buf); len > 0 }) { + bos.write(buf, 0, len) + } + fileMap.put(entry.getName, bos.toByteArray) + bos.close() + } + } + } finally { + zipInputStream.close() + } + + fileMap + } +} +