From 86cedee15459cd390982f9ffcad5366973e7afa2 Mon Sep 17 00:00:00 2001 From: marcoow Date: Thu, 23 Nov 2023 08:16:10 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20mainmatt?= =?UTF-8?q?er/svelte-promise-modals@c823755d16c41821bac3e20b8b9d99a57fa783?= =?UTF-8?q?3b=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/immutable/chunks/index.0841e91f.js | 1 - app/immutable/chunks/index.54020e72.js | 1 + .../{index.f2fadb18.js => index.927f4769.js} | 2 +- app/immutable/chunks/scheduler.b8da4d9f.js | 1 - app/immutable/chunks/scheduler.f61bd660.js | 1 + app/immutable/chunks/singletons.0db49489.js | 1 + app/immutable/chunks/singletons.90ff99e2.js | 1 - .../{app.f1416e1f.js => app.82917ddd.js} | 2 +- .../{start.71d09cad.js => start.89cb0b16.js} | 2 +- .../nodes/{0.5b0067ac.js => 0.49bfbd5e.js} | 2 +- .../nodes/{1.69348d28.js => 1.5c75b525.js} | 2 +- app/immutable/nodes/2.09342fe3.js | 40 +++++++++++++++++++ app/immutable/nodes/2.0da38877.js | 40 ------------------- app/version.json | 2 +- index.html | 18 ++++----- 15 files changed, 58 insertions(+), 58 deletions(-) delete mode 100644 app/immutable/chunks/index.0841e91f.js create mode 100644 app/immutable/chunks/index.54020e72.js rename app/immutable/chunks/{index.f2fadb18.js => index.927f4769.js} (75%) delete mode 100644 app/immutable/chunks/scheduler.b8da4d9f.js create mode 100644 app/immutable/chunks/scheduler.f61bd660.js create mode 100644 app/immutable/chunks/singletons.0db49489.js delete mode 100644 app/immutable/chunks/singletons.90ff99e2.js rename app/immutable/entry/{app.f1416e1f.js => app.82917ddd.js} (89%) rename app/immutable/entry/{start.71d09cad.js => start.89cb0b16.js} (99%) rename app/immutable/nodes/{0.5b0067ac.js => 0.49bfbd5e.js} (78%) rename app/immutable/nodes/{1.69348d28.js => 1.5c75b525.js} (81%) create mode 100644 app/immutable/nodes/2.09342fe3.js delete mode 100644 app/immutable/nodes/2.0da38877.js diff --git a/app/immutable/chunks/index.0841e91f.js b/app/immutable/chunks/index.0841e91f.js deleted file mode 100644 index 1ff5950..0000000 --- a/app/immutable/chunks/index.0841e91f.js +++ /dev/null @@ -1 +0,0 @@ -var E=Object.defineProperty;var B=(e,t,n)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var p=(e,t,n)=>(B(e,typeof t!="symbol"?t+"":t,n),n);import{r as h,n as y,l as w,m as C,k as A,p as j,q as b,v as I,w as L,x as N,y as P,z as T,A as q}from"./scheduler.b8da4d9f.js";let $=!1;function z(){$=!0}function H(){$=!1}function M(e,t,n,i){for(;e>1);n(s)<=i?e=s+1:t=s}return e}function O(e){if(e.hydrate_init)return;e.hydrate_init=!0;let t=e.childNodes;if(e.nodeName==="HEAD"){const r=[];for(let a=0;a0&&t[n[s]].claim_order<=a?s+1:M(1,s,_=>t[n[_]].claim_order,a))-1;i[r]=n[o]+1;const u=o+1;n[u]=r,s=Math.max(u,s)}const f=[],l=[];let c=t.length-1;for(let r=n[s]+1;r!=0;r=i[r-1]){for(f.push(t[r-1]);c>=r;c--)l.push(t[c]);c--}for(;c>=0;c--)l.push(t[c]);f.reverse(),l.sort((r,a)=>r.claim_order-a.claim_order);for(let r=0,a=0;r=f[a].claim_order;)a++;const o=ae.removeEventListener(t,n,i)}function ae(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function le(e){return e.dataset.svelteH}function V(e){return Array.from(e.childNodes)}function W(e){e.claim_info===void 0&&(e.claim_info={last_index:0,total_claimed:0})}function S(e,t,n,i,s=!1){W(e);const f=(()=>{for(let l=e.claim_info.last_index;l=0;l--){const c=e[l];if(t(c)){const r=n(c);return r===void 0?e.splice(l,1):e[l]=r,s?r===void 0&&e.claim_info.last_index--:e.claim_info.last_index=l,c}}return i()})();return f.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1,f}function F(e,t,n,i){return S(e,s=>s.nodeName===t,s=>{const f=[];for(let l=0;ls.removeAttribute(l))},()=>i(t))}function se(e,t,n){return F(e,t,n,U)}function G(e,t){return S(e,n=>n.nodeType===3,n=>{const i=""+t;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>x(t),!0)}function ce(e){return G(e," ")}function fe(e,t){t=""+t,e.data!==t&&(e.data=t)}function ue(e,t,n,i){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,i?"important":"")}function oe(e,t,n){e.classList.toggle(t,!!n)}function de(e,t){return new e(t)}const m=new Set;let d;function _e(){d={r:0,c:[],p:d}}function me(){d.r||h(d.c),d=d.p}function J(e,t){e&&e.i&&(m.delete(e),e.i(t))}function he(e,t,n,i){if(e&&e.o){if(m.has(e))return;m.add(e),d.c.push(()=>{m.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function $e(e){e&&e.c()}function pe(e,t){e&&e.l(t)}function K(e,t,n){const{fragment:i,after_update:s}=e.$$;i&&i.m(t,n),b(()=>{const f=e.$$.on_mount.map(P).filter(A);e.$$.on_destroy?e.$$.on_destroy.push(...f):h(f),e.$$.on_mount=[]}),s.forEach(b)}function Q(e,t){const n=e.$$;n.fragment!==null&&(I(n.after_update),h(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function X(e,t){e.$$.dirty[0]===-1&&(T.push(e),q(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const v=g.length?g[0]:_;return a.ctx&&s(a.ctx[u],a.ctx[u]=v)&&(!a.skip_bound&&a.bound[u]&&a.bound[u](v),o&&X(e,u)),_}):[],a.update(),o=!0,h(a.before_update),a.fragment=i?i(a.ctx):!1,t.target){if(t.hydrate){z();const u=V(t.target);a.fragment&&a.fragment.l(u),u.forEach(R)}else a.fragment&&a.fragment.c();t.intro&&J(e.$$.fragment),K(e,t.target,t.anchor),H(),C()}N(r)}class xe{constructor(){p(this,"$$");p(this,"$$set")}$destroy(){Q(this,1),this.$destroy=y}$on(t,n){if(!A(n))return y;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const s=i.indexOf(n);s!==-1&&i.splice(s,1)}}$set(t){this.$$set&&!j(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Y="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Y);export{le as A,re as B,xe as S,ee as a,me as b,ce as c,J as d,ie as e,R as f,U as g,se as h,ye as i,V as j,ae as k,ue as l,x as m,G as n,fe as o,_e as p,de as q,$e as r,ne as s,he as t,pe as u,K as v,Q as w,D as x,oe as y,te as z}; diff --git a/app/immutable/chunks/index.54020e72.js b/app/immutable/chunks/index.54020e72.js new file mode 100644 index 0000000..ec9c3b5 --- /dev/null +++ b/app/immutable/chunks/index.54020e72.js @@ -0,0 +1 @@ +var S=Object.defineProperty;var C=(e,t,n)=>t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var p=(e,t,n)=>(C(e,typeof t!="symbol"?t+"":t,n),n);import{r as h,n as y,m as w,p as B,l as A,q as T,v as N,w as j,x as D,y as b,z as H,A as L,B as I}from"./scheduler.f61bd660.js";let $=!1;function P(){$=!0}function q(){$=!1}function z(e,t,n,i){for(;e>1);n(r)<=i?e=r+1:t=r}return e}function M(e){if(e.hydrate_init)return;e.hydrate_init=!0;let t=e.childNodes;if(e.nodeName==="HEAD"){const s=[];for(let l=0;l0&&t[n[r]].claim_order<=l?r+1:z(1,r,_=>t[n[_]].claim_order,l))-1;i[s]=n[o]+1;const u=o+1;n[u]=s,r=Math.max(u,r)}const c=[],a=[];let f=t.length-1;for(let s=n[r]+1;s!=0;s=i[s-1]){for(c.push(t[s-1]);f>=s;f--)a.push(t[f]);f--}for(;f>=0;f--)a.push(t[f]);c.reverse(),a.sort((s,l)=>s.claim_order-l.claim_order);for(let s=0,l=0;s=c[l].claim_order;)l++;const o=le.removeEventListener(t,n,i)}function se(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function le(e){return e.dataset.svelteH}function V(e){return Array.from(e.childNodes)}function W(e){e.claim_info===void 0&&(e.claim_info={last_index:0,total_claimed:0})}function E(e,t,n,i,r=!1){W(e);const c=(()=>{for(let a=e.claim_info.last_index;a=0;a--){const f=e[a];if(t(f)){const s=n(f);return s===void 0?e.splice(a,1):e[a]=s,r?s===void 0&&e.claim_info.last_index--:e.claim_info.last_index=a,f}}return i()})();return c.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1,c}function F(e,t,n,i){return E(e,r=>r.nodeName===t,r=>{const c=[];for(let a=0;ar.removeAttribute(a))},()=>i(t))}function ae(e,t,n){return F(e,t,n,U)}function G(e,t){return E(e,n=>n.nodeType===3,n=>{const i=""+t;if(n.data.startsWith(i)){if(n.data.length!==i.length)return n.splitText(i.length)}else n.data=i},()=>x(t),!0)}function ce(e){return G(e," ")}function fe(e,t){t=""+t,e.data!==t&&(e.data=t)}function ue(e,t,n,i){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,i?"important":"")}function oe(e,t,n){e.classList.toggle(t,!!n)}function de(e,t){const n=[];let i=0;for(const r of t.childNodes)if(r.nodeType===8){const c=r.textContent.trim();c===`HEAD_${e}_END`?(i-=1,n.push(r)):c===`HEAD_${e}_START`&&(i+=1,n.push(r))}else i>0&&n.push(r);return n}function _e(e,t){return new e(t)}const m=new Set;let d;function me(){d={r:0,c:[],p:d}}function he(){d.r||h(d.c),d=d.p}function J(e,t){e&&e.i&&(m.delete(e),e.i(t))}function $e(e,t,n,i){if(e&&e.o){if(m.has(e))return;m.add(e),d.c.push(()=>{m.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}else i&&i()}function pe(e){e&&e.c()}function ye(e,t){e&&e.l(t)}function K(e,t,n){const{fragment:i,after_update:r}=e.$$;i&&i.m(t,n),N(()=>{const c=e.$$.on_mount.map(H).filter(A);e.$$.on_destroy?e.$$.on_destroy.push(...c):h(c),e.$$.on_mount=[]}),r.forEach(N)}function Q(e,t){const n=e.$$;n.fragment!==null&&(j(n.after_update),h(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function X(e,t){e.$$.dirty[0]===-1&&(L.push(e),I(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const v=g.length?g[0]:_;return l.ctx&&r(l.ctx[u],l.ctx[u]=v)&&(!l.skip_bound&&l.bound[u]&&l.bound[u](v),o&&X(e,u)),_}):[],l.update(),o=!0,h(l.before_update),l.fragment=i?i(l.ctx):!1,t.target){if(t.hydrate){P();const u=V(t.target);l.fragment&&l.fragment.l(u),u.forEach(R)}else l.fragment&&l.fragment.c();t.intro&&J(e.$$.fragment),K(e,t.target,t.anchor),q(),B()}b(s)}class ge{constructor(){p(this,"$$");p(this,"$$set")}$destroy(){Q(this,1),this.$destroy=y}$on(t,n){if(!A(n))return y;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!T(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Y="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Y);export{le as A,re as B,de as C,ge as S,ee as a,he as b,ce as c,J as d,ie as e,R as f,U as g,ae as h,xe as i,V as j,se as k,ue as l,x as m,G as n,fe as o,me as p,_e as q,pe as r,ne as s,$e as t,ye as u,K as v,Q as w,O as x,oe as y,te as z}; diff --git a/app/immutable/chunks/index.f2fadb18.js b/app/immutable/chunks/index.927f4769.js similarity index 75% rename from app/immutable/chunks/index.f2fadb18.js rename to app/immutable/chunks/index.927f4769.js index 050c29d..7fce3aa 100644 --- a/app/immutable/chunks/index.f2fadb18.js +++ b/app/immutable/chunks/index.927f4769.js @@ -1 +1 @@ -import{n as f,j as w,r as m,s as q,k as x}from"./scheduler.b8da4d9f.js";const a=[];function z(e,i){return{subscribe:A(e,i).subscribe}}function A(e,i=f){let r;const n=new Set;function u(t){if(q(e,t)&&(e=t,r)){const o=!a.length;for(const s of n)s[1](),a.push(s,e);if(o){for(let s=0;s{n.delete(s),n.size===0&&r&&(r(),r=null)}}return{set:u,update:l,subscribe:b}}function k(e,i,r){const n=!Array.isArray(e),u=n?[e]:e;if(!u.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const l=i.length<2;return z(r,(b,t)=>{let o=!1;const s=[];let d=0,p=f;const h=()=>{if(d)return;p();const c=i(n?s[0]:s,b,t);l?b(c):p=x(c)?c:f},y=u.map((c,g)=>w(c,_=>{s[g]=_,d&=~(1<{d|=1<{n.delete(s),n.size===0&&r&&(r(),r=null)}}return{set:u,update:l,subscribe:b}}function B(e,i,r){const n=!Array.isArray(e),u=n?[e]:e;if(!u.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const l=i.length<2;return z(r,(b,t)=>{let o=!1;const s=[];let d=0,p=f;const h=()=>{if(d)return;p();const c=i(n?s[0]:s,b,t);l?b(c):p=x(c)?c:f},y=u.map((c,g)=>w(c,_=>{s[g]=_,d&=~(1<{d|=1<e.unsubscribe():e}function P(t){let n;return y(t,e=>n=e)(),n}function S(t,n,e){t.$$.on_destroy.push(y(n,e))}function U(t,n,e,o){if(t){const r=m(t,n,e,o);return t[0](r)}}function m(t,n,e,o){return t[1]&&o?w(e.ctx.slice(),t[1](o(n))):e.ctx}function B(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 l=[],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{E as A,I as a,g as b,U as c,B as d,S as e,P as f,G as g,J as h,w as i,y as j,A as k,M as l,q as m,k as n,H as o,F as p,O as q,v as r,D as s,K as t,C as u,L as v,i as w,_ as x,j as y,a as z}; diff --git a/app/immutable/chunks/scheduler.f61bd660.js b/app/immutable/chunks/scheduler.f61bd660.js new file mode 100644 index 0000000..914cbfa --- /dev/null +++ b/app/immutable/chunks/scheduler.f61bd660.js @@ -0,0 +1 @@ +function w(){}function j(t,n){for(const e in n)t[e]=n[e];return t}function v(t){return t()}function A(){return Object.create(null)}function E(t){t.forEach(v)}function B(t){return typeof t=="function"}function D(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}let i;function F(t,n){return t===n?!0:(i||(i=document.createElement("a")),i.href=n,t===i.href)}function P(t){return Object.keys(t).length===0}function m(t,...n){if(t==null){for(const r of n)r(void 0);return w}const e=t.subscribe(...n);return e.unsubscribe?()=>e.unsubscribe():e}function S(t){let n;return m(t,e=>n=e)(),n}function U(t,n,e){t.$$.on_destroy.push(m(n,e))}function C(t,n,e,r){if(t){const o=x(t,n,e,r);return t[0](o)}}function x(t,n,e,r){return t[1]&&r?j(e.ctx.slice(),t[1](r(n))):e.ctx}function G(t,n,e,r){if(t[2]&&r){const o=t[2](r(e));if(n.dirty===void 0)return o;if(typeof o=="object"){const l=[],_=Math.max(n.dirty.length,o.length);for(let s=0;s<_;s+=1)l[s]=n.dirty[s]|o[s];return l}return n.dirty|o}return n.dirty}function H(t,n,e,r,o,l){if(o){const _=x(n,e,r,l);t.p(_,o)}}function I(t){if(t.ctx.length>32){const n=[],e=t.ctx.length/32;for(let r=0;rt.indexOf(r)===-1?n.push(r):e.push(r)),e.forEach(r=>r()),c=n}export{a as A,q as B,K as a,b,C as c,G as d,U as e,S as f,I as g,L as h,j as i,F as j,m as k,B as l,A as m,w as n,J as o,z as p,P as q,E as r,D as s,N as t,H as u,O as v,Q as w,f as x,h as y,v as z}; diff --git a/app/immutable/chunks/singletons.0db49489.js b/app/immutable/chunks/singletons.0db49489.js new file mode 100644 index 0000000..72b24a2 --- /dev/null +++ b/app/immutable/chunks/singletons.0db49489.js @@ -0,0 +1 @@ +import{w as u}from"./index.927f4769.js";var _;const k=((_=globalThis.__sveltekit_kflvo6)==null?void 0:_.base)??"";var g;const m=((g=globalThis.__sveltekit_kflvo6)==null?void 0:g.assets)??k,w="1700727361276",T="sveltekit:snapshot",y="sveltekit:scroll",I="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1},h=location.origin;function S(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function x(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function b(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function O(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=b(e)}}function U(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||A(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===h&&e.hasAttribute("download");return{url:n,external:r,target:o,download:l}}function L(e){let t=null,n=null,o=null,r=null,l=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=c(s,"preload-code")),r===null&&(r=c(s,"preload-data")),t===null&&(t=c(s,"keepfocus")),n===null&&(n=c(s,"noscroll")),l===null&&(l=c(s,"reload")),a===null&&(a=c(s,"replacestate")),s=b(s);function i(v){switch(v){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[o??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(a)}}function p(e){const t=u(e);let n=!0;function o(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function l(a){let s;return t.subscribe(i=>{(s===void 0||n&&i!==s)&&a(s=i)})}return{notify:o,set:r,subscribe:l}}function E(){const{set:e,subscribe:t}=u(!1);let n;async function o(){clearTimeout(n);try{const r=await fetch(`${m}/app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==w;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function A(e,t){return e.origin!==h||!e.pathname.startsWith(t)}function N(e){e.client}const P={url:p({}),page:p({}),navigating:u(null),updated:E()};export{I,f as P,y as S,T as a,U as b,L as c,P as d,k as e,O as f,S as g,N as h,A as i,h as o,x as s}; diff --git a/app/immutable/chunks/singletons.90ff99e2.js b/app/immutable/chunks/singletons.90ff99e2.js deleted file mode 100644 index 7cf9962..0000000 --- a/app/immutable/chunks/singletons.90ff99e2.js +++ /dev/null @@ -1 +0,0 @@ -import{w as u}from"./index.f2fadb18.js";var _;const k=((_=globalThis.__sveltekit_1cutrnh)==null?void 0:_.base)??"";var h;const m=((h=globalThis.__sveltekit_1cutrnh)==null?void 0:h.assets)??k,w="1700466847199",T="sveltekit:snapshot",y="sveltekit:scroll",I="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1},g=location.origin;function S(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function x(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function b(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function O(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=b(e)}}function U(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||A(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===g&&e.hasAttribute("download");return{url:n,external:r,target:o,download:l}}function L(e){let t=null,n=null,o=null,r=null,l=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=c(s,"preload-code")),r===null&&(r=c(s,"preload-data")),t===null&&(t=c(s,"keepfocus")),n===null&&(n=c(s,"noscroll")),l===null&&(l=c(s,"reload")),a===null&&(a=c(s,"replacestate")),s=b(s);function i(v){switch(v){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[o??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(a)}}function p(e){const t=u(e);let n=!0;function o(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function l(a){let s;return t.subscribe(i=>{(s===void 0||n&&i!==s)&&a(s=i)})}return{notify:o,set:r,subscribe:l}}function E(){const{set:e,subscribe:t}=u(!1);let n;async function o(){clearTimeout(n);try{const r=await fetch(`${m}/app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==w;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function A(e,t){return e.origin!==g||!e.pathname.startsWith(t)}function N(e){e.client}const P={url:p({}),page:p({}),navigating:u(null),updated:E()};export{I,f as P,y as S,T as a,U as b,L as c,P as d,k as e,O as f,S as g,N as h,A as i,g as o,x as s}; diff --git a/app/immutable/entry/app.f1416e1f.js b/app/immutable/entry/app.82917ddd.js similarity index 89% rename from app/immutable/entry/app.f1416e1f.js rename to app/immutable/entry/app.82917ddd.js index 355ae98..43a3c4c 100644 --- a/app/immutable/entry/app.f1416e1f.js +++ b/app/immutable/entry/app.82917ddd.js @@ -1 +1 @@ -import{s as A,a as B,o as U,t as j,b as P}from"../chunks/scheduler.b8da4d9f.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.0841e91f.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.5b0067ac.js"),["../nodes/0.5b0067ac.js","../chunks/scheduler.b8da4d9f.js","../chunks/index.0841e91f.js"],import.meta.url),()=>S(()=>import("../nodes/1.69348d28.js"),["../nodes/1.69348d28.js","../chunks/scheduler.b8da4d9f.js","../chunks/index.0841e91f.js","../chunks/singletons.90ff99e2.js","../chunks/index.f2fadb18.js"],import.meta.url),()=>S(()=>import("../nodes/2.0da38877.js"),["../nodes/2.0da38877.js","../chunks/scheduler.b8da4d9f.js","../chunks/index.0841e91f.js","../chunks/index.f2fadb18.js","../assets/2.edf6f040.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}; +import{s as A,a as B,o as U,t as j,b as P}from"../chunks/scheduler.f61bd660.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.54020e72.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.49bfbd5e.js"),["../nodes/0.49bfbd5e.js","../chunks/scheduler.f61bd660.js","../chunks/index.54020e72.js"],import.meta.url),()=>S(()=>import("../nodes/1.5c75b525.js"),["../nodes/1.5c75b525.js","../chunks/scheduler.f61bd660.js","../chunks/index.54020e72.js","../chunks/singletons.0db49489.js","../chunks/index.927f4769.js"],import.meta.url),()=>S(()=>import("../nodes/2.09342fe3.js"),["../nodes/2.09342fe3.js","../chunks/scheduler.f61bd660.js","../chunks/index.54020e72.js","../chunks/index.927f4769.js","../assets/2.edf6f040.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/app/immutable/entry/start.71d09cad.js b/app/immutable/entry/start.89cb0b16.js similarity index 99% rename from app/immutable/entry/start.71d09cad.js rename to app/immutable/entry/start.89cb0b16.js index 3ca4734..fb42ce7 100644 --- a/app/immutable/entry/start.71d09cad.js +++ b/app/immutable/entry/start.89cb0b16.js @@ -1,3 +1,3 @@ -import{o as me,t as we}from"../chunks/scheduler.b8da4d9f.js";import{S as Ge,a as Je,I as M,g as De,f as Ce,b as _e,c as le,s as te,i as ye,d as F,o as Me,e as J,P as Ve,h as Ze}from"../chunks/singletons.90ff99e2.js";function Qe(t,r){return t==="/"||r==="ignore"?t:r==="never"?t.endsWith("/")?t.slice(0,-1):t:r==="always"&&!t.endsWith("/")?t+"/":t}function et(t){return t.split("%25").map(decodeURI).join("%25")}function tt(t){for(const r in t)t[r]=decodeURIComponent(t[r]);return t}const nt=["href","pathname","search","searchParams","toString","toJSON"];function at(t,r){const f=new URL(t);for(const s of nt)Object.defineProperty(f,s,{get(){return r(),t[s]},enumerable:!0,configurable:!0});return rt(f),f}function rt(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const ot="/__data.json";function it(t){return t.replace(/\/$/,"")+ot}function st(...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 Ke=window.fetch;window.fetch=(t,r)=>((t instanceof Request?t.method:(r==null?void 0:r.method)||"GET")!=="GET"&&ae.delete(Se(t)),Ke(t,r));const ae=new Map;function ct(t,r){const f=Se(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&&ae.set(f,{body:d,init:u,ttl:1e3*Number(E)}),Promise.resolve(new Response(d,u))}return window.fetch(t,r)}function lt(t,r,f){if(ae.size>0){const s=Se(t,f),d=ae.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((g,m)=>{if(m%2){if(g.startsWith("x+"))return ve(String.fromCharCode(parseInt(g.slice(2),16)));if(g.startsWith("u+"))return ve(String.fromCharCode(...g.slice(2).split("-").map(U=>parseInt(U,16))));const h=ft.exec(g);if(!h)throw new Error(`Invalid param: ${g}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,x,j,k,N]=h;return r.push({name:k,matcher:N,optional:!!x,rest:!!j,chained:j?m===1&&E[0]==="":!1}),j?"(.*?)":x?"([^/]*)?":"([^/]+?)"}return ve(g)}).join("")}).join("")}/?$`),params:r}}function dt(t){return!/^\([^)]+\)$/.test(t)}function pt(t){return t.slice(1).split("/").filter(dt)}function ht(t,r,f){const s={},d=t.slice(1),u=d.filter(l=>l!==void 0);let E=0;for(let l=0;lh).join("/"),E=0),m===void 0){g.rest&&(s[g.name]="");continue}if(!g.matcher||f[g.matcher](m)){s[g.name]=m;const h=r[l+1],x=d[l+1];h&&!h.rest&&h.optional&&x&&g.chained&&(E=0),!h&&!x&&Object.keys(s).length===u.length&&(E=0);continue}if(g.optional&&g.chained){E++;continue}return}if(!E)return s}function ve(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function gt({nodes:t,server_loads:r,dictionary:f,matchers:s}){const d=new Set(r);return Object.entries(f).map(([l,[g,m,h]])=>{const{pattern:x,params:j}=ut(l),k={id:l,exec:N=>{const U=x.exec(N);if(U)return ht(U,j,s)},errors:[1,...h||[]].map(N=>t[N]),layouts:[0,...m||[]].map(E),leaf:u(g)};return k.errors.length=k.layouts.length=Math.max(k.errors.length,k.layouts.length),k});function u(l){const g=l<0;return g&&(l=~l),[g,t[l]]}function E(l){return l===void 0?l:[d.has(l),t[l]]}}function ze(t){try{return JSON.parse(sessionStorage[t])}catch{}}function qe(t,r){const f=JSON.stringify(r);try{sessionStorage[t]=f}catch{}}const mt=-1,wt=-2,_t=-3,yt=-4,vt=-5,bt=-6;function Et(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===mt)return;if(u===_t)return NaN;if(u===yt)return 1/0;if(u===vt)return-1/0;if(u===bt)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 g=l[0],m=r==null?void 0:r[g];if(m)return s[u]=m(d(l[1]));switch(g){case"Date":s[u]=new Date(l[1]);break;case"Set":const h=new Set;s[u]=h;for(let k=1;kr!=null)}const We=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...We];const kt=new Set([...We]);[...kt];async function Rt(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 ne{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 At="x-sveltekit-invalidated",It="x-sveltekit-trailing-slash",K=ze(Ge)??{},ee=ze(Je)??{};function be(t){K[t]=te()}function Lt(t,r){var Ne;const f=gt(t),s=t.nodes[0],d=t.nodes[1];s(),d();const u=document.documentElement,E=[],l=[];let g=null;const m={before_navigate:[],on_navigate:[],after_navigate:[]};let h={branch:[],error:null,url:null},x=!1,j=!1,k=!0,N=!1,U=!1,H=!1,B=!1,V,D=(Ne=history.state)==null?void 0:Ne[M];D||(D=Date.now(),history.replaceState({...history.state,[M]:D},"",location.href));const fe=K[D];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let q,z,Y;async function ke(){if(Y=Y||Promise.resolve(),await Y,!Y)return;Y=null;const e=new URL(location.href),i=Z(e,!0);g=null;const n=z={},o=i&&await pe(i);if(n===z&&o){if(o.type==="redirect")return re(new URL(o.location,e).href,{},1,n);o.props.page!==void 0&&(q=o.props.page),V.$set(o.props)}}function Re(e){l.some(i=>i==null?void 0:i.snapshot)&&(ee[e]=l.map(i=>{var n;return(n=i==null?void 0:i.snapshot)==null?void 0:n.capture()}))}function Ae(e){var i;(i=ee[e])==null||i.forEach((n,o)=>{var a,c;(c=(a=l[o])==null?void 0:a.snapshot)==null||c.restore(n)})}function Ie(){be(D),qe(Ge,K),Re(D),qe(Je,ee)}async function re(e,{noScroll:i=!1,replaceState:n=!1,keepFocus:o=!1,state:a={},invalidateAll:c=!1},p,v){return typeof e=="string"&&(e=new URL(e,De(document))),ce({url:e,scroll:i?te():null,keepfocus:o,redirect_count:p,details:{state:a,replaceState:n},nav_token:v,accepted:()=>{c&&(B=!0)},blocked:()=>{},type:"goto"})}async function Le(e){return g={id:e.id,promise:pe(e).then(i=>(i.type==="loaded"&&i.state.error&&(g=null),i))},g.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 Pe(e){var o;h=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}),Ae(D);const n={from:null,to:{params:h.params,route:{id:((o=h.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};m.after_navigate.forEach(a=>a(n)),j=!0}async function X({url:e,params:i,branch:n,status:o,error:a,route:c,form:p}){let v="never";for(const _ of n)(_==null?void 0:_.slash)!==void 0&&(v=_.slash);e.pathname=Qe(e.pathname,v),e.search=e.search;const b={type:"loaded",state:{url:e,params:i,branch:n,error:a,route:c},props:{constructors:St(n).map(_=>_.node.component)}};p!==void 0&&(b.props.form=p);let y={},L=!q,A=0;for(let _=0;_(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:at(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?lt($,C.href,O):ct($,O)},setHeaders:()=>{},depends:P,parent(){return v.parent=!0,i()}};p=await b.universal.load.call(null,_)??null,p=p?await Rt(p):null}return{node:b,loader:e,server:c,universal:(L=b.universal)!=null&&L.load?{type:"data",data:p,uses:v}:null,data:p??(c==null?void 0:c.data)??null,slash:((A=b.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Oe(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]!==h.params[c])return!0;for(const c of o.dependencies)if(E.some(p=>p(new URL(c))))return!0;return!1}function de(e,i){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?i??null:null}async function pe({id:e,invalidating:i,url:n,params:o,route:a}){if((g==null?void 0:g.id)===e)return g.promise;const{errors:c,layouts:p,leaf:v}=a,b=[...p,v];c.forEach(S=>S==null?void 0:S().catch(()=>{})),b.forEach(S=>S==null?void 0:S[1]().catch(()=>{}));let y=null;const L=h.url?e!==h.url.pathname+h.url.search:!1,A=h.route?a.id!==h.route.id:!1;let P=!1;const _=b.map((S,I)=>{var G;const R=h.branch[I],T=!!(S!=null&&S[0])&&((R==null?void 0:R.loader)!==S[1]||Oe(P,A,L,(G=R.server)==null?void 0:G.uses,o));return T&&(P=!0),T});if(_.some(Boolean)){try{y=await He(n,_)}catch(S){return ie({status:S instanceof ne?S.status:500,error:await Q(S,{url:n,params:o,route:{id:a.id}}),url:n,route:a})}if(y.type==="redirect")return y}const w=y==null?void 0:y.nodes;let O=!1;const $=b.map(async(S,I)=>{var he;if(!S)return;const R=h.branch[I],T=w==null?void 0:w[I];if((!T||T.type==="skip")&&S[1]===(R==null?void 0:R.loader)&&!Oe(O,A,L,(he=R.universal)==null?void 0:he.uses,o))return R;if(O=!0,(T==null?void 0:T.type)==="error")throw T;return ue({loader:S[1],url:n,params:o,route:a,parent:async()=>{var Te;const $e={};for(let ge=0;ge{});const C=[];for(let S=0;SPromise.resolve({}),server_data_node:de(c)}),b={node:await d(),loader:d,universal:null,server:null,data:null};return await X({url:n,params:a,branch:[v,b],status:e,error:i,route:null})}function Z(e,i){if(ye(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:tt(a),url:e}}}function se(e){return et(e.pathname.slice(J.length)||"/")}function xe({url:e,type:i,intent:n,delta:o}){let a=!1;const c=Be(h,n,e,i);o!==void 0&&(c.navigation.delta=o);const p={...c.navigation,cancel:()=>{a=!0,c.reject(new Error("navigation was cancelled"))}};return U||m.before_navigate.forEach(v=>v(p)),a?null:c}async function ce({url:e,scroll:i,keepfocus:n,redirect_count:o,details:a,type:c,delta:p,nav_token:v={},accepted:b,blocked:y}){var $,C,S;const L=Z(e,!1),A=xe({url:e,type:c,delta:p,intent:L});if(!A){y();return}const P=D;b(),U=!0,j&&F.navigating.set(A.navigation),z=v;let _=L&&await pe(L);if(!_){if(ye(e,J))return await W(e);_=await je(e,{id:null},await Q(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,z!==v)return A.reject(new Error("navigation was aborted")),!1;if(_.type==="redirect")if(o>=20)_=await ie({status:500,error:await Q(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(_.location,e).href,{},o+1,v),!1;else(($=_.props.page)==null?void 0:$.status)>=400&&await F.updated.check()&&await W(e);if(E.length=0,B=!1,N=!0,be(P),Re(P),(C=_.props.page)!=null&&C.url&&_.props.page.url.pathname!==e.pathname&&(e.pathname=(S=_.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(;ee[R]||K[R];)delete ee[R],delete K[R],R+=1}}if(g=null,j){h=_.state,_.props.page&&(_.props.page.url=e);const I=(await Promise.all(m.on_navigate.map(R=>R(A.navigation)))).filter(R=>typeof R=="function");if(I.length>0){let R=function(){m.after_navigate=m.after_navigate.filter(T=>!I.includes(T))};I.push(R),m.after_navigate.push(...I)}V.$set(_.props)}else Pe(_);const{activeElement:w}=document;if(await we(),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&&Ee(),k=!0,_.props.page&&(q=_.props.page),U=!1,c==="popstate"&&Ae(D),A.fulfil(void 0),m.after_navigate.forEach(I=>I(A.navigation)),F.navigating.set(null),N=!1}async function je(e,i,n,o){return e.origin===Me&&e.pathname===location.pathname&&!x?await ie({status:o,error:n,url:e,route:i}):await W(e)}function W(e){return location.href=e.href,new Promise(()=>{})}function Xe(){let e;u.addEventListener("mousemove",c=>{const p=c.target;clearTimeout(e),e=setTimeout(()=>{o(p,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 p of c)p.isIntersecting&&(oe(se(new URL(p.target.href))),n.unobserve(p.target))},{threshold:0});function o(c,p){const v=Ce(c,u);if(!v)return;const{url:b,external:y,download:L}=_e(v,J);if(y||L)return;const A=le(v);if(!A.reload)if(p<=A.preload_data){const P=Z(b,!1);P&&Le(P)}else p<=A.preload_code&&oe(se(b))}function a(){n.disconnect();for(const c of u.querySelectorAll("a")){const{url:p,external:v,download:b}=_e(c,J);if(v||b)continue;const y=le(c);y.reload||(y.preload_code===Ve.viewport&&n.observe(c),y.preload_code===Ve.eager&&oe(se(p)))}}m.after_navigate.push(a),a()}function Q(e,i){return e instanceof ne?e.body:t.hooks.handleError({error:e,event:i})??{message:i.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{me(()=>(m.after_navigate.push(e),()=>{const i=m.after_navigate.indexOf(e);m.after_navigate.splice(i,1)}))},before_navigate:e=>{me(()=>(m.before_navigate.push(e),()=>{const i=m.before_navigate.indexOf(e);m.before_navigate.splice(i,1)}))},on_navigate:e=>{me(()=>(m.on_navigate.push(e),()=>{const i=m.on_navigate.indexOf(e);m.on_navigate.splice(i,1)}))},disable_scroll_handling:()=>{(N||!j)&&(k=!1)},goto:(e,i={})=>re(e,i,0),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 ke()},invalidate_all:()=>(B=!0,ke()),preload_data:async e=>{const i=new URL(e,De(document)),n=Z(i,!1);if(!n)throw new Error(`Attempted to preload a URL that does not belong to this app: ${i}`);await Le(n)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const i=new URL(location.href),{branch:n,route:o}=h;if(!o)return;const a=await Ue(h.branch.length,n,o.errors);if(a){const c=await X({url:i,params:h.params,branch:n.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:o});h=c.state,V.$set(c.props),we().then(Ee)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},0):(V.$set({form:null,page:{...q,form:e.data,status:e.status}}),await we(),V.$set({form:e.data}),e.type==="success"&&Ee())},_start_router:()=>{var i;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let o=!1;if(Ie(),!U){const a=Be(h,void 0,null,"leave"),c={...a.navigation,cancel:()=>{o=!0,a.reject(new Error("navigation was cancelled"))}};m.before_navigate.forEach(p=>p(c))}o?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ie()}),(i=navigator.connection)!=null&&i.saveData||Xe(),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=Ce(n.composedPath()[0],u);if(!o)return;const{url:a,external:c,target:p,download:v}=_e(o,J);if(!a)return;if(p==="_parent"||p==="_top"){if(window.parent!==window)return}else if(p&&p!=="_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){xe({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(h.url.hash===a.hash){n.preventDefault(),(P=o.ownerDocument.getElementById(A))==null||P.scrollIntoView();return}if(H=!0,be(D),e(a),!b.replace_state)return;H=!1,n.preventDefault()}ce({url:a,scroll:b.noscroll?te():null,keepfocus:b.keep_focus??!1,redirect_count:0,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 p=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||o.action);if(ye(p,J))return;const v=n.target,{keep_focus:b,noscroll:y,reload:L,replace_state:A}=le(v);if(L)return;n.preventDefault(),n.stopPropagation();const P=new FormData(v),_=a==null?void 0:a.getAttribute("name");_&&P.append(_,(a==null?void 0:a.getAttribute("value"))??""),p.search=new URLSearchParams(P).toString(),ce({url:p,scroll:y?te():null,keepfocus:b??!1,redirect_count:0,details:{state:{},replaceState:A??p.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var o;if(z={},(o=n.state)!=null&&o[M]){if(n.state[M]===D)return;const a=K[n.state[M]],c=new URL(location.href);if(h.url.href.split("#")[0]===location.href.split("#")[0]){e(c),K[D]=te(),D=n.state[M],scrollTo(a.x,a.y);return}const p=n.state[M]-D;await ce({url:c,scroll:a,keepfocus:!1,redirect_count:0,details:null,accepted:()=>{D=n.state[M]},blocked:()=>{history.go(-p)},type:"popstate",delta:p,nav_token:z})}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){h.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:p})=>{x=!0;const v=new URL(location.href);({params:o={},route:a={id:null}}=Z(v,!1)||{});let b;try{const y=n.map(async(P,_)=>{const w=c[_];return w!=null&&w.uses&&(w.uses=Ye(w.uses)),ue({loader:t.nodes[P],url:v,params:o,route:a,parent:async()=>{const O={};for(let $=0;$<_;$+=1)Object.assign(O,(await y[$]).data);return O},server_data_node:de(w)})}),L=await Promise.all(y),A=f.find(({id:P})=>P===a.id);if(A){const P=A.layouts;for(let _=0;_d?"1":"0").join(""));const s=await Ke(f.href);if(!s.ok)throw new ne(s.status,await s.json());return new Promise(async d=>{var h;const u=new Map,E=s.body.getReader(),l=new TextDecoder;function g(x){return Et(x,{Promise:j=>new Promise((k,N)=>{u.set(j,{fulfil:k,reject:N})})})}let m="";for(;;){const{done:x,value:j}=await E.read();if(x&&!m)break;for(m+=!j&&m?` +import{o as me,t as we}from"../chunks/scheduler.f61bd660.js";import{S as Ge,a as Je,I as M,g as De,f as Ce,b as _e,c as le,s as te,i as ye,d as F,o as Me,e as J,P as Ve,h as Ze}from"../chunks/singletons.0db49489.js";function Qe(t,r){return t==="/"||r==="ignore"?t:r==="never"?t.endsWith("/")?t.slice(0,-1):t:r==="always"&&!t.endsWith("/")?t+"/":t}function et(t){return t.split("%25").map(decodeURI).join("%25")}function tt(t){for(const r in t)t[r]=decodeURIComponent(t[r]);return t}const nt=["href","pathname","search","searchParams","toString","toJSON"];function at(t,r){const f=new URL(t);for(const s of nt)Object.defineProperty(f,s,{get(){return r(),t[s]},enumerable:!0,configurable:!0});return rt(f),f}function rt(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const ot="/__data.json";function it(t){return t.replace(/\/$/,"")+ot}function st(...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 Ke=window.fetch;window.fetch=(t,r)=>((t instanceof Request?t.method:(r==null?void 0:r.method)||"GET")!=="GET"&&ae.delete(Se(t)),Ke(t,r));const ae=new Map;function ct(t,r){const f=Se(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&&ae.set(f,{body:d,init:u,ttl:1e3*Number(E)}),Promise.resolve(new Response(d,u))}return window.fetch(t,r)}function lt(t,r,f){if(ae.size>0){const s=Se(t,f),d=ae.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((g,m)=>{if(m%2){if(g.startsWith("x+"))return ve(String.fromCharCode(parseInt(g.slice(2),16)));if(g.startsWith("u+"))return ve(String.fromCharCode(...g.slice(2).split("-").map(U=>parseInt(U,16))));const h=ft.exec(g);if(!h)throw new Error(`Invalid param: ${g}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,x,j,k,N]=h;return r.push({name:k,matcher:N,optional:!!x,rest:!!j,chained:j?m===1&&E[0]==="":!1}),j?"(.*?)":x?"([^/]*)?":"([^/]+?)"}return ve(g)}).join("")}).join("")}/?$`),params:r}}function dt(t){return!/^\([^)]+\)$/.test(t)}function pt(t){return t.slice(1).split("/").filter(dt)}function ht(t,r,f){const s={},d=t.slice(1),u=d.filter(l=>l!==void 0);let E=0;for(let l=0;lh).join("/"),E=0),m===void 0){g.rest&&(s[g.name]="");continue}if(!g.matcher||f[g.matcher](m)){s[g.name]=m;const h=r[l+1],x=d[l+1];h&&!h.rest&&h.optional&&x&&g.chained&&(E=0),!h&&!x&&Object.keys(s).length===u.length&&(E=0);continue}if(g.optional&&g.chained){E++;continue}return}if(!E)return s}function ve(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function gt({nodes:t,server_loads:r,dictionary:f,matchers:s}){const d=new Set(r);return Object.entries(f).map(([l,[g,m,h]])=>{const{pattern:x,params:j}=ut(l),k={id:l,exec:N=>{const U=x.exec(N);if(U)return ht(U,j,s)},errors:[1,...h||[]].map(N=>t[N]),layouts:[0,...m||[]].map(E),leaf:u(g)};return k.errors.length=k.layouts.length=Math.max(k.errors.length,k.layouts.length),k});function u(l){const g=l<0;return g&&(l=~l),[g,t[l]]}function E(l){return l===void 0?l:[d.has(l),t[l]]}}function ze(t){try{return JSON.parse(sessionStorage[t])}catch{}}function qe(t,r){const f=JSON.stringify(r);try{sessionStorage[t]=f}catch{}}const mt=-1,wt=-2,_t=-3,yt=-4,vt=-5,bt=-6;function Et(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===mt)return;if(u===_t)return NaN;if(u===yt)return 1/0;if(u===vt)return-1/0;if(u===bt)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 g=l[0],m=r==null?void 0:r[g];if(m)return s[u]=m(d(l[1]));switch(g){case"Date":s[u]=new Date(l[1]);break;case"Set":const h=new Set;s[u]=h;for(let k=1;kr!=null)}const We=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...We];const kt=new Set([...We]);[...kt];async function Rt(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 ne{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 At="x-sveltekit-invalidated",It="x-sveltekit-trailing-slash",K=ze(Ge)??{},ee=ze(Je)??{};function be(t){K[t]=te()}function Lt(t,r){var Ne;const f=gt(t),s=t.nodes[0],d=t.nodes[1];s(),d();const u=document.documentElement,E=[],l=[];let g=null;const m={before_navigate:[],on_navigate:[],after_navigate:[]};let h={branch:[],error:null,url:null},x=!1,j=!1,k=!0,N=!1,U=!1,H=!1,B=!1,V,D=(Ne=history.state)==null?void 0:Ne[M];D||(D=Date.now(),history.replaceState({...history.state,[M]:D},"",location.href));const fe=K[D];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let q,z,Y;async function ke(){if(Y=Y||Promise.resolve(),await Y,!Y)return;Y=null;const e=new URL(location.href),i=Z(e,!0);g=null;const n=z={},o=i&&await pe(i);if(n===z&&o){if(o.type==="redirect")return re(new URL(o.location,e).href,{},1,n);o.props.page!==void 0&&(q=o.props.page),V.$set(o.props)}}function Re(e){l.some(i=>i==null?void 0:i.snapshot)&&(ee[e]=l.map(i=>{var n;return(n=i==null?void 0:i.snapshot)==null?void 0:n.capture()}))}function Ae(e){var i;(i=ee[e])==null||i.forEach((n,o)=>{var a,c;(c=(a=l[o])==null?void 0:a.snapshot)==null||c.restore(n)})}function Ie(){be(D),qe(Ge,K),Re(D),qe(Je,ee)}async function re(e,{noScroll:i=!1,replaceState:n=!1,keepFocus:o=!1,state:a={},invalidateAll:c=!1},p,v){return typeof e=="string"&&(e=new URL(e,De(document))),ce({url:e,scroll:i?te():null,keepfocus:o,redirect_count:p,details:{state:a,replaceState:n},nav_token:v,accepted:()=>{c&&(B=!0)},blocked:()=>{},type:"goto"})}async function Le(e){return g={id:e.id,promise:pe(e).then(i=>(i.type==="loaded"&&i.state.error&&(g=null),i))},g.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 Pe(e){var o;h=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}),Ae(D);const n={from:null,to:{params:h.params,route:{id:((o=h.route)==null?void 0:o.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};m.after_navigate.forEach(a=>a(n)),j=!0}async function X({url:e,params:i,branch:n,status:o,error:a,route:c,form:p}){let v="never";for(const _ of n)(_==null?void 0:_.slash)!==void 0&&(v=_.slash);e.pathname=Qe(e.pathname,v),e.search=e.search;const b={type:"loaded",state:{url:e,params:i,branch:n,error:a,route:c},props:{constructors:St(n).map(_=>_.node.component)}};p!==void 0&&(b.props.form=p);let y={},L=!q,A=0;for(let _=0;_(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:at(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?lt($,C.href,O):ct($,O)},setHeaders:()=>{},depends:P,parent(){return v.parent=!0,i()}};p=await b.universal.load.call(null,_)??null,p=p?await Rt(p):null}return{node:b,loader:e,server:c,universal:(L=b.universal)!=null&&L.load?{type:"data",data:p,uses:v}:null,data:p??(c==null?void 0:c.data)??null,slash:((A=b.universal)==null?void 0:A.trailingSlash)??(c==null?void 0:c.slash)}}function Oe(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]!==h.params[c])return!0;for(const c of o.dependencies)if(E.some(p=>p(new URL(c))))return!0;return!1}function de(e,i){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?i??null:null}async function pe({id:e,invalidating:i,url:n,params:o,route:a}){if((g==null?void 0:g.id)===e)return g.promise;const{errors:c,layouts:p,leaf:v}=a,b=[...p,v];c.forEach(S=>S==null?void 0:S().catch(()=>{})),b.forEach(S=>S==null?void 0:S[1]().catch(()=>{}));let y=null;const L=h.url?e!==h.url.pathname+h.url.search:!1,A=h.route?a.id!==h.route.id:!1;let P=!1;const _=b.map((S,I)=>{var G;const R=h.branch[I],T=!!(S!=null&&S[0])&&((R==null?void 0:R.loader)!==S[1]||Oe(P,A,L,(G=R.server)==null?void 0:G.uses,o));return T&&(P=!0),T});if(_.some(Boolean)){try{y=await He(n,_)}catch(S){return ie({status:S instanceof ne?S.status:500,error:await Q(S,{url:n,params:o,route:{id:a.id}}),url:n,route:a})}if(y.type==="redirect")return y}const w=y==null?void 0:y.nodes;let O=!1;const $=b.map(async(S,I)=>{var he;if(!S)return;const R=h.branch[I],T=w==null?void 0:w[I];if((!T||T.type==="skip")&&S[1]===(R==null?void 0:R.loader)&&!Oe(O,A,L,(he=R.universal)==null?void 0:he.uses,o))return R;if(O=!0,(T==null?void 0:T.type)==="error")throw T;return ue({loader:S[1],url:n,params:o,route:a,parent:async()=>{var Te;const $e={};for(let ge=0;ge{});const C=[];for(let S=0;SPromise.resolve({}),server_data_node:de(c)}),b={node:await d(),loader:d,universal:null,server:null,data:null};return await X({url:n,params:a,branch:[v,b],status:e,error:i,route:null})}function Z(e,i){if(ye(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:tt(a),url:e}}}function se(e){return et(e.pathname.slice(J.length)||"/")}function xe({url:e,type:i,intent:n,delta:o}){let a=!1;const c=Be(h,n,e,i);o!==void 0&&(c.navigation.delta=o);const p={...c.navigation,cancel:()=>{a=!0,c.reject(new Error("navigation was cancelled"))}};return U||m.before_navigate.forEach(v=>v(p)),a?null:c}async function ce({url:e,scroll:i,keepfocus:n,redirect_count:o,details:a,type:c,delta:p,nav_token:v={},accepted:b,blocked:y}){var $,C,S;const L=Z(e,!1),A=xe({url:e,type:c,delta:p,intent:L});if(!A){y();return}const P=D;b(),U=!0,j&&F.navigating.set(A.navigation),z=v;let _=L&&await pe(L);if(!_){if(ye(e,J))return await W(e);_=await je(e,{id:null},await Q(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(L==null?void 0:L.url)||e,z!==v)return A.reject(new Error("navigation was aborted")),!1;if(_.type==="redirect")if(o>=20)_=await ie({status:500,error:await Q(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(_.location,e).href,{},o+1,v),!1;else(($=_.props.page)==null?void 0:$.status)>=400&&await F.updated.check()&&await W(e);if(E.length=0,B=!1,N=!0,be(P),Re(P),(C=_.props.page)!=null&&C.url&&_.props.page.url.pathname!==e.pathname&&(e.pathname=(S=_.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(;ee[R]||K[R];)delete ee[R],delete K[R],R+=1}}if(g=null,j){h=_.state,_.props.page&&(_.props.page.url=e);const I=(await Promise.all(m.on_navigate.map(R=>R(A.navigation)))).filter(R=>typeof R=="function");if(I.length>0){let R=function(){m.after_navigate=m.after_navigate.filter(T=>!I.includes(T))};I.push(R),m.after_navigate.push(...I)}V.$set(_.props)}else Pe(_);const{activeElement:w}=document;if(await we(),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&&Ee(),k=!0,_.props.page&&(q=_.props.page),U=!1,c==="popstate"&&Ae(D),A.fulfil(void 0),m.after_navigate.forEach(I=>I(A.navigation)),F.navigating.set(null),N=!1}async function je(e,i,n,o){return e.origin===Me&&e.pathname===location.pathname&&!x?await ie({status:o,error:n,url:e,route:i}):await W(e)}function W(e){return location.href=e.href,new Promise(()=>{})}function Xe(){let e;u.addEventListener("mousemove",c=>{const p=c.target;clearTimeout(e),e=setTimeout(()=>{o(p,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 p of c)p.isIntersecting&&(oe(se(new URL(p.target.href))),n.unobserve(p.target))},{threshold:0});function o(c,p){const v=Ce(c,u);if(!v)return;const{url:b,external:y,download:L}=_e(v,J);if(y||L)return;const A=le(v);if(!A.reload)if(p<=A.preload_data){const P=Z(b,!1);P&&Le(P)}else p<=A.preload_code&&oe(se(b))}function a(){n.disconnect();for(const c of u.querySelectorAll("a")){const{url:p,external:v,download:b}=_e(c,J);if(v||b)continue;const y=le(c);y.reload||(y.preload_code===Ve.viewport&&n.observe(c),y.preload_code===Ve.eager&&oe(se(p)))}}m.after_navigate.push(a),a()}function Q(e,i){return e instanceof ne?e.body:t.hooks.handleError({error:e,event:i})??{message:i.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{me(()=>(m.after_navigate.push(e),()=>{const i=m.after_navigate.indexOf(e);m.after_navigate.splice(i,1)}))},before_navigate:e=>{me(()=>(m.before_navigate.push(e),()=>{const i=m.before_navigate.indexOf(e);m.before_navigate.splice(i,1)}))},on_navigate:e=>{me(()=>(m.on_navigate.push(e),()=>{const i=m.on_navigate.indexOf(e);m.on_navigate.splice(i,1)}))},disable_scroll_handling:()=>{(N||!j)&&(k=!1)},goto:(e,i={})=>re(e,i,0),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 ke()},invalidate_all:()=>(B=!0,ke()),preload_data:async e=>{const i=new URL(e,De(document)),n=Z(i,!1);if(!n)throw new Error(`Attempted to preload a URL that does not belong to this app: ${i}`);await Le(n)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const i=new URL(location.href),{branch:n,route:o}=h;if(!o)return;const a=await Ue(h.branch.length,n,o.errors);if(a){const c=await X({url:i,params:h.params,branch:n.slice(0,a.idx).concat(a.node),status:e.status??500,error:e.error,route:o});h=c.state,V.$set(c.props),we().then(Ee)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},0):(V.$set({form:null,page:{...q,form:e.data,status:e.status}}),await we(),V.$set({form:e.data}),e.type==="success"&&Ee())},_start_router:()=>{var i;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let o=!1;if(Ie(),!U){const a=Be(h,void 0,null,"leave"),c={...a.navigation,cancel:()=>{o=!0,a.reject(new Error("navigation was cancelled"))}};m.before_navigate.forEach(p=>p(c))}o?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ie()}),(i=navigator.connection)!=null&&i.saveData||Xe(),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=Ce(n.composedPath()[0],u);if(!o)return;const{url:a,external:c,target:p,download:v}=_e(o,J);if(!a)return;if(p==="_parent"||p==="_top"){if(window.parent!==window)return}else if(p&&p!=="_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){xe({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(h.url.hash===a.hash){n.preventDefault(),(P=o.ownerDocument.getElementById(A))==null||P.scrollIntoView();return}if(H=!0,be(D),e(a),!b.replace_state)return;H=!1,n.preventDefault()}ce({url:a,scroll:b.noscroll?te():null,keepfocus:b.keep_focus??!1,redirect_count:0,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 p=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||o.action);if(ye(p,J))return;const v=n.target,{keep_focus:b,noscroll:y,reload:L,replace_state:A}=le(v);if(L)return;n.preventDefault(),n.stopPropagation();const P=new FormData(v),_=a==null?void 0:a.getAttribute("name");_&&P.append(_,(a==null?void 0:a.getAttribute("value"))??""),p.search=new URLSearchParams(P).toString(),ce({url:p,scroll:y?te():null,keepfocus:b??!1,redirect_count:0,details:{state:{},replaceState:A??p.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var o;if(z={},(o=n.state)!=null&&o[M]){if(n.state[M]===D)return;const a=K[n.state[M]],c=new URL(location.href);if(h.url.href.split("#")[0]===location.href.split("#")[0]){e(c),K[D]=te(),D=n.state[M],scrollTo(a.x,a.y);return}const p=n.state[M]-D;await ce({url:c,scroll:a,keepfocus:!1,redirect_count:0,details:null,accepted:()=>{D=n.state[M]},blocked:()=>{history.go(-p)},type:"popstate",delta:p,nav_token:z})}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){h.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:p})=>{x=!0;const v=new URL(location.href);({params:o={},route:a={id:null}}=Z(v,!1)||{});let b;try{const y=n.map(async(P,_)=>{const w=c[_];return w!=null&&w.uses&&(w.uses=Ye(w.uses)),ue({loader:t.nodes[P],url:v,params:o,route:a,parent:async()=>{const O={};for(let $=0;$<_;$+=1)Object.assign(O,(await y[$]).data);return O},server_data_node:de(w)})}),L=await Promise.all(y),A=f.find(({id:P})=>P===a.id);if(A){const P=A.layouts;for(let _=0;_d?"1":"0").join(""));const s=await Ke(f.href);if(!s.ok)throw new ne(s.status,await s.json());return new Promise(async d=>{var h;const u=new Map,E=s.body.getReader(),l=new TextDecoder;function g(x){return Et(x,{Promise:j=>new Promise((k,N)=>{u.set(j,{fulfil:k,reject:N})})})}let m="";for(;;){const{done:x,value:j}=await E.read();if(x&&!m)break;for(m+=!j&&m?` `:l.decode(j);;){const k=m.indexOf(` `);if(k===-1)break;const N=JSON.parse(m.slice(0,k));if(m=m.slice(k+1),N.type==="redirect")return d(N);if(N.type==="data")(h=N.nodes)==null||h.forEach(U=>{(U==null?void 0:U.type)==="data"&&(U.uses=Ye(U.uses),U.data=g(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(g(B)):V.fulfil(g(H))}}}})}function Ye(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 Ee(){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=h,u=x});return E.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((g=t.route)==null?void 0:g.id)??null},url:t.url},to:f&&{params:(r==null?void 0:r.params)??null,route:{id:((m=r==null?void 0:r.route)==null?void 0:m.id)??null},url:f},willUnload:!r,type:s,complete:E},fulfil:d,reject:u}}async function Ut(t,r,f){const s=Lt(t,r);Ze({client:s}),f?await s._hydrate(f):s.goto(location.href,{replaceState:!0}),s._start_router()}export{Ut as start}; diff --git a/app/immutable/nodes/0.5b0067ac.js b/app/immutable/nodes/0.49bfbd5e.js similarity index 78% rename from app/immutable/nodes/0.5b0067ac.js rename to app/immutable/nodes/0.49bfbd5e.js index 1b94fe5..e37d1a6 100644 --- a/app/immutable/nodes/0.5b0067ac.js +++ b/app/immutable/nodes/0.49bfbd5e.js @@ -1 +1 @@ -import{s as l,c as i,u as r,g as u,d as f}from"../chunks/scheduler.b8da4d9f.js";import{S as _,i as c,d as p,t as m}from"../chunks/index.0841e91f.js";function d(n){let s;const a=n[1].default,e=i(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)&&r(e,a,t,t[0],s?f(a,t[0],o,null):u(t[0]),null)},i(t){s||(p(e,t),s=!0)},o(t){m(e,t),s=!1},d(t){e&&e.d(t)}}}function $(n,s,a){let{$$slots:e={},$$scope:t}=s;return n.$$set=o=>{"$$scope"in o&&a(0,t=o.$$scope)},[t,e]}class S extends _{constructor(s){super(),c(this,s,$,d,l,{})}}export{S as component}; +import{s as l,c as i,u as r,g as u,d as f}from"../chunks/scheduler.f61bd660.js";import{S as _,i as c,d as p,t as m}from"../chunks/index.54020e72.js";function d(n){let s;const a=n[1].default,e=i(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)&&r(e,a,t,t[0],s?f(a,t[0],o,null):u(t[0]),null)},i(t){s||(p(e,t),s=!0)},o(t){m(e,t),s=!1},d(t){e&&e.d(t)}}}function $(n,s,a){let{$$slots:e={},$$scope:t}=s;return n.$$set=o=>{"$$scope"in o&&a(0,t=o.$$scope)},[t,e]}class S extends _{constructor(s){super(),c(this,s,$,d,l,{})}}export{S as component}; diff --git a/app/immutable/nodes/1.69348d28.js b/app/immutable/nodes/1.5c75b525.js similarity index 81% rename from app/immutable/nodes/1.69348d28.js rename to app/immutable/nodes/1.5c75b525.js index 240a26b..ac311ca 100644 --- a/app/immutable/nodes/1.69348d28.js +++ b/app/immutable/nodes/1.5c75b525.js @@ -1 +1 @@ -import{s as x,n as _,e as S}from"../chunks/scheduler.b8da4d9f.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.0841e91f.js";import{d as H}from"../chunks/singletons.90ff99e2.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}; +import{s as x,n as _,e as S}from"../chunks/scheduler.f61bd660.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.54020e72.js";import{d as H}from"../chunks/singletons.0db49489.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/app/immutable/nodes/2.09342fe3.js b/app/immutable/nodes/2.09342fe3.js new file mode 100644 index 0000000..b13cabd --- /dev/null +++ b/app/immutable/nodes/2.09342fe3.js @@ -0,0 +1,40 @@ +var et=Object.defineProperty;var tt=(n,e,t)=>e in n?et(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var $=(n,e,t)=>(tt(n,typeof e!="symbol"?e+"":e,t),t);import{f as xe,s as ee,o as je,h as Pe,i as nt,b as Re,e as at,n as U,r as rt,j as it}from"../chunks/scheduler.f61bd660.js";import{S as te,i as ne,q as ye,g as E,s as k,r as oe,h as O,j as R,f as M,c as D,u as he,k as T,y as ae,a as B,x as w,v as le,p as Le,t as Y,w as ue,b as $e,d as V,e as we,z as st,A as I,B as X,C as ot}from"../chunks/index.54020e72.js";import{d as Be,w as ge}from"../chunks/index.927f4769.js";function Te(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function Ce(n,e){const t={},a={},i={$$scope:1};let o=n.length;for(;o--;){const r=n[o],u=e[o];if(u){for(const s in r)s in u||(a[s]=1);for(const s in u)i[s]||(t[s]=u[s],i[s]=1);n[o]=u}else for(const s in r)i[s]=1}for(const r in a)r in t||(t[r]=void 0);return t}function _e(n){return typeof n=="object"&&n!==null?n:{}}/*! +* tabbable 6.1.1 +* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE +*/var Ke=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ce=Ke.join(","),He=typeof Element>"u",G=He?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,de=!He&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n==null?void 0:n.ownerDocument},fe=function n(e,t){var a;t===void 0&&(t=!0);var i=e==null||(a=e.getAttribute)===null||a===void 0?void 0:a.call(e,"inert"),o=i===""||i==="true",r=o||t&&e&&n(e.parentNode);return r},lt=function(e){var t,a=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return a===""||a==="true"},Ue=function(e,t,a){if(fe(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(ce));return t&&G.call(e,ce)&&i.unshift(e),i=i.filter(a),i},Ve=function n(e,t,a){for(var i=[],o=Array.from(e);o.length;){var r=o.shift();if(!fe(r,!1))if(r.tagName==="SLOT"){var u=r.assignedElements(),s=u.length?u:r.children,d=n(s,!0,a);a.flatten?i.push.apply(i,d):i.push({scopeParent:r,candidates:d})}else{var f=G.call(r,ce);f&&a.filter(r)&&(t||!e.includes(r))&&i.push(r);var p=r.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(r),h=!fe(p,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(r));if(p&&h){var g=n(p===!0?r.children:p.children,!0,a);a.flatten?i.push.apply(i,g):i.push({scopeParent:r,candidates:g})}else o.unshift.apply(o,r.children)}}return i},Ge=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||lt(e))&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},ut=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ye=function(e){return e.tagName==="INPUT"},ct=function(e){return Ye(e)&&e.type==="hidden"},dt=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(a){return a.tagName==="SUMMARY"});return t},ft=function(e,t){for(var a=0;asummary:first-of-type"),r=o?e.parentElement:e;if(G.call(r,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="legacy-full"){if(typeof i=="function"){for(var u=e;e;){var s=e.parentElement,d=de(e);if(s&&!s.shadowRoot&&i(s)===!0)return Ee(e);e.assignedSlot?e=e.assignedSlot:!s&&d!==e.ownerDocument?e=d.host:e=s}e=u}if(bt(e))return!e.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return Ee(e);return!1},gt=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var a=0;a=0)},wt=function n(e){var t=[],a=[];return e.forEach(function(i,o){var r=!!i.scopeParent,u=r?i.scopeParent:i,s=Ge(u,r),d=r?n(i.candidates):u;s===0?r?t.push.apply(t,d):t.push(u):a.push({documentOrder:o,tabIndex:s,item:i,isScope:r,content:d})}),a.sort(ut).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(t)},Tt=function(e,t){t=t||{};var a;return t.getShadowRoot?a=Ve([e],t.includeContainer,{filter:be.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:yt}):a=Ue(e,t.includeContainer,be.bind(null,t)),wt(a)},Ct=function(e,t){t=t||{};var a;return t.getShadowRoot?a=Ve([e],t.includeContainer,{filter:pe.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):a=Ue(e,t.includeContainer,pe.bind(null,t)),a},re=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return G.call(e,ce)===!1?!1:be(t,e)},_t=Ke.concat("iframe").join(","),Oe=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return G.call(e,_t)===!1?!1:pe(t,e)};/*! +* focus-trap 7.3.1 +* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE +*/function Se(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);e&&(a=a.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,a)}return t}function Ae(n){for(var e=1;e0){var a=e[e.length-1];a!==t&&a.pause()}var i=e.indexOf(t);i===-1||e.splice(i,1),e.push(t)},deactivateTrap:function(e,t){var a=e.indexOf(t);a!==-1&&e.splice(a,1),e.length>0&&e[e.length-1].unpause()}},At=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Mt=function(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27},J=function(e){return e.key==="Tab"||e.keyCode===9},Nt=function(e){return J(e)&&!e.shiftKey},Ft=function(e){return J(e)&&e.shiftKey},Ne=function(e){return setTimeout(e,0)},Fe=function(e,t){var a=-1;return e.every(function(i,o){return t(i)?(a=o,!1):!0}),a},Z=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i1?v-1:0),m=1;m=0)l=a.activeElement;else{var c=r.tabbableGroups[0],v=c&&c.firstTabbableNode;l=v||f("fallbackFocus")}if(!l)throw new Error("Your focus-trap needs to have at least one focusable element");return l},h=function(){if(r.containerGroups=r.containers.map(function(l){var c=Tt(l,o.tabbableOptions),v=Ct(l,o.tabbableOptions);return{container:l,tabbableNodes:c,focusableNodes:v,firstTabbableNode:c.length>0?c[0]:null,lastTabbableNode:c.length>0?c[c.length-1]:null,nextTabbableNode:function(m){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,A=v.findIndex(function(j){return j===m});if(!(A<0))return b?v.slice(A+1).find(function(j){return re(j,o.tabbableOptions)}):v.slice(0,A).reverse().find(function(j){return re(j,o.tabbableOptions)})}}}),r.tabbableGroups=r.containerGroups.filter(function(l){return l.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!f("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},g=function y(l){if(l!==!1&&l!==a.activeElement){if(!l||!l.focus){y(p());return}l.focus({preventScroll:!!o.preventScroll}),r.mostRecentlyFocusedNode=l,At(l)&&l.select()}},S=function(l){var c=f("setReturnFocus",l);return c||(c===!1?!1:l)},F=function(l){var c=ie(l);if(!(d(c)>=0)){if(Z(o.clickOutsideDeactivates,l)){u.deactivate({returnFocus:o.returnFocusOnDeactivate});return}Z(o.allowOutsideClick,l)||l.preventDefault()}},q=function(l){var c=ie(l),v=d(c)>=0;v||c instanceof Document?v&&(r.mostRecentlyFocusedNode=c):(l.stopImmediatePropagation(),g(r.mostRecentlyFocusedNode||p()))},C=function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=ie(l);h();var _=null;if(r.tabbableGroups.length>0){var m=d(v),b=m>=0?r.containerGroups[m]:void 0;if(m<0)c?_=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:_=r.tabbableGroups[0].firstTabbableNode;else if(c){var A=Fe(r.tabbableGroups,function(ve){var me=ve.firstTabbableNode;return v===me});if(A<0&&(b.container===v||Oe(v,o.tabbableOptions)&&!re(v,o.tabbableOptions)&&!b.nextTabbableNode(v,!1))&&(A=m),A>=0){var j=A===0?r.tabbableGroups.length-1:A-1,H=r.tabbableGroups[j];_=H.lastTabbableNode}else J(l)||(_=b.nextTabbableNode(v,!1))}else{var W=Fe(r.tabbableGroups,function(ve){var me=ve.lastTabbableNode;return v===me});if(W<0&&(b.container===v||Oe(v,o.tabbableOptions)&&!re(v,o.tabbableOptions)&&!b.nextTabbableNode(v))&&(W=m),W>=0){var Je=W===r.tabbableGroups.length-1?0:W+1,Qe=r.tabbableGroups[Je];_=Qe.firstTabbableNode}else J(l)||(_=b.nextTabbableNode(v))}}else _=f("fallbackFocus");_&&(J(l)&&l.preventDefault(),g(_))},P=function(l){if(Mt(l)&&Z(o.escapeDeactivates,l)!==!1){l.preventDefault(),u.deactivate();return}(o.isKeyForward(l)||o.isKeyBackward(l))&&C(l,o.isKeyBackward(l))},N=function(l){var c=ie(l);d(c)>=0||Z(o.clickOutsideDeactivates,l)||Z(o.allowOutsideClick,l)||(l.preventDefault(),l.stopImmediatePropagation())},x=function(){if(r.active)return Me.activateTrap(i,u),r.delayInitialFocusTimer=o.delayInitialFocus?Ne(function(){g(p())}):g(p()),a.addEventListener("focusin",q,!0),a.addEventListener("mousedown",F,{capture:!0,passive:!1}),a.addEventListener("touchstart",F,{capture:!0,passive:!1}),a.addEventListener("click",N,{capture:!0,passive:!1}),a.addEventListener("keydown",P,{capture:!0,passive:!1}),u},L=function(){if(r.active)return a.removeEventListener("focusin",q,!0),a.removeEventListener("mousedown",F,!0),a.removeEventListener("touchstart",F,!0),a.removeEventListener("click",N,!0),a.removeEventListener("keydown",P,!0),u};return u={get active(){return r.active},get paused(){return r.paused},activate:function(l){if(r.active)return this;var c=s(l,"onActivate"),v=s(l,"onPostActivate"),_=s(l,"checkCanFocusTrap");_||h(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=a.activeElement,c&&c();var m=function(){_&&h(),x(),v&&v()};return _?(_(r.containers.concat()).then(m,m),this):(m(),this)},deactivate:function(l){if(!r.active)return this;var c=Ae({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},l);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,L(),r.active=!1,r.paused=!1,Me.deactivateTrap(i,u);var v=s(c,"onDeactivate"),_=s(c,"onPostDeactivate"),m=s(c,"checkCanReturnFocus"),b=s(c,"returnFocus","returnFocusOnDeactivate");v&&v();var A=function(){Ne(function(){b&&g(S(r.nodeFocusedBeforeActivation)),_&&_()})};return b&&m?(m(S(r.nodeFocusedBeforeActivation)).then(A,A),this):(A(),this)},pause:function(){return r.paused||!r.active?this:(r.paused=!0,L(),this)},unpause:function(){return!r.paused||!r.active?this:(r.paused=!1,h(),x(),this)},updateContainerElements:function(l){var c=[].concat(l).filter(Boolean);return r.containers=c.map(function(v){return typeof v=="string"?a.querySelector(v):v}),r.active&&h(),this}},u.updateContainerElements(e),u};function kt(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Dt=function(e){return xt(e)&&!jt(e)};function xt(n){return!!n&&typeof n=="object"}function jt(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||Lt(n)}var Pt=typeof Symbol=="function"&&Symbol.for,Rt=Pt?Symbol.for("react.element"):60103;function Lt(n){return n.$$typeof===Rt}function $t(n){return Array.isArray(n)?[]:{}}function Q(n,e){return e.clone!==!1&&e.isMergeableObject(n)?z($t(n),n,e):n}function Bt(n,e,t){return n.concat(e).map(function(a){return Q(a,t)})}function Kt(n,e){if(!e.customMerge)return z;var t=e.customMerge(n);return typeof t=="function"?t:z}function Ht(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function qe(n){return Object.keys(n).concat(Ht(n))}function ze(n,e){try{return e in n}catch{return!1}}function Ut(n,e){return ze(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function Vt(n,e,t){var a={};return t.isMergeableObject(n)&&qe(n).forEach(function(i){a[i]=Q(n[i],t)}),qe(e).forEach(function(i){Ut(n,i)||(ze(n,i)&&t.isMergeableObject(e[i])?a[i]=Kt(i,t)(n[i],e[i],t):a[i]=Q(e[i],t))}),a}function z(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Bt,t.isMergeableObject=t.isMergeableObject||Dt,t.cloneUnlessOtherwiseSpecified=Q;var a=Array.isArray(e),i=Array.isArray(n),o=a===i;return o?a?t.arrayMerge(n,e,t):Vt(n,e,t):Q(e,t)}z.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(a,i){return z(a,i,t)},{})};var Gt=z,Yt=Gt;const zt=kt(Yt);function Ie(){return new Wt}class Wt{constructor(){$(this,"resolve",()=>{});$(this,"reject",()=>{});$(this,"promise");this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}let Zt=class{constructor(e,t,a){$(this,"deferred",Ie());$(this,"component");$(this,"props");$(this,"result");$(this,"deferredOutAnimation");$(this,"componentInstance");$(this,"options");this.component=e,this.props=t??{},this.options={onAnimationModalOutEnd:()=>{},...a}}resolve(e){this.deferredOutAnimation||(this.deferredOutAnimation=Ie(),this.options.onAnimationModalOutEnd&&this.deferredOutAnimation.promise.then(()=>{var t,a;return(a=(t=this.options).onAnimationModalOutEnd)==null?void 0:a.call(t)}).catch(()=>{}),this.result=e,this.deferred.resolve(e))}destroy(){var e;(e=this.componentInstance)==null||e.destroyModal()}close(){var e;(e=this.componentInstance)==null||e.closeModal()}remove(){var e;Jt(this),(e=this.deferredOutAnimation)==null||e.resolve()}then(e,t){return this.deferred.promise.then(e,t)}get isClosing(){return!!this.deferredOutAnimation}};const se=ge(!1),K=ge([]);Be(K,n=>n.filter(e=>!e.isClosing).length);Be(K,n=>n.at(-1));const We=ge({focusTrapOptions:{clickOutsideDeactivates:!0}}),Xt=n=>{n&&typeof n=="object"&&We.update(e=>zt(e,n))},Ze=(n,e,t)=>{let a=new Zt(n,e,t);return K.update(i=>[...i,a]),a},Jt=n=>{K.update(e=>e.filter(t=>t!==n))};function Xe(){xe(K).forEach(n=>n.destroy())}function Qt(n){let e,t,a,i,o,r;const u=[n[0].props,{closeModal:n[3]}];var s=n[0].component;function d(f,p){let h={};if(p!==void 0&&p&9)h=Ce(u,[p&1&&_e(f[0].props),p&8&&{closeModal:f[3]}]);else for(let g=0;g{ue(h,1)}),$e()}s?(o=ye(s,d(f,p)),oe(o.$$.fragment),V(o.$$.fragment,1),le(o,i,null)):o=null}else if(s){const h=p&9?Ce(u,[p&1&&_e(f[0].props),p&8&&{closeModal:f[3]}]):{};o.$set(h)}(!r||p&2)&&ae(i,"spm-out",f[1])},i(f){r||(o&&V(o.$$.fragment,f),r=!0)},o(f){o&&Y(o.$$.fragment,f),r=!1},d(f){f&&(M(e),M(t),M(a)),o&&ue(o),n[6](null)}}}function en(n,e,t){let{modal:a}=e,i=!1,o,r,u=null,s;je(async()=>{d(),p(),se.set(!0)}),Pe(()=>{g()});const d=()=>{let C=xe(We),{focusTrapOptions:P}=C,{focusTrapOptions:N}=a.options;if(N!==null&&(s=N||P),!s)return;let x={...s,fallbackFocus:r,onDeactivate:(...L)=>{var y;(y=s.onDeactivate)==null||y.call(s,...L),S()}};o=It(r,x),o.activate()},f=C=>{o&&(typeof C>"u"&&(C=s.onDeactivate),o.deactivate({onDeactivate:C}))},p=()=>{u=({target:C,animationName:P})=>{if(C!==r)return;se.set(!1),P.slice(-4)==="-out"&&a.remove()},r&&r.addEventListener("animationend",u)},h=()=>{u&&(r&&r.removeEventListener("animationend",u),u=null)},g=()=>{f(null),h(),a.remove()},S=C=>{i||(se.set(!0),t(1,i=!0),a.resolve(C))},F=C=>{S(C),f()};function q(C){Re[C?"unshift":"push"](()=>{r=C,t(2,r)})}return n.$$set=C=>{"modal"in C&&t(0,a=C.modal)},[a,i,r,F,g,S,q]}class tn extends te{constructor(e){super(),ne(this,e,en,Qt,ee,{modal:0,destroyModal:4,closeModal:5})}get destroyModal(){return this.$$.ctx[4]}get closeModal(){return this.$$.ctx[5]}}function ke(n,e,t){const a=n.slice();return a[3]=e[t],a[4]=e,a[5]=t,a}function De(n){let e,t=n[4],a=n[5],i;const o=()=>n[2](e,t,a),r=()=>n[2](null,t,a);let u={modal:n[3]};return e=new tn({props:u}),o(),{c(){oe(e.$$.fragment)},l(s){he(e.$$.fragment,s)},m(s,d){le(e,s,d),i=!0},p(s,d){(t!==s[4]||a!==s[5])&&(r(),t=s[4],a=s[5],o());const f={};d&1&&(f.modal=s[3]),e.$set(f)},i(s){i||(V(e.$$.fragment,s),i=!0)},o(s){Y(e.$$.fragment,s),i=!1},d(s){r(),ue(e,s)}}}function nn(n){let e,t,a=Te(n[0]),i=[];for(let r=0;rY(i[r],1,1,()=>{i[r]=null});return{c(){for(let r=0;rt(0,a=r));let{options:i={}}=e;je(()=>{let r=K.subscribe(s=>{document.body.classList.toggle("spm-scrolling-disabled",s.length>0)}),u=se.subscribe(s=>{document.body.classList.toggle("spm-animating",s)});return()=>{r(),u()}}),Pe(Xe);function o(r,u,s){Re[r?"unshift":"push"](()=>{u[s].componentInstance=r,K.set(a)})}return n.$$set=r=>{"options"in r&&t(1,i=r.options)},n.$$.update=()=>{n.$$.dirty&2&&Xt(i)},[a,i,o]}class rn extends te{constructor(e){super(),ne(this,e,an,nn,ee,{options:1})}}function sn(n){let e,t,a,i="Close",o,r,u="Modal 2",s,d,f=`Sociis per justo neque pulvinar orci sagittis tristique tincidunt suspendisse cum est, rhoncus + euismod velit interdum condimentum aenean sed hendrerit arcu venenatis, rutrum commodo elementum + eros ac at non ullamcorper pellentesque turpis. Tincidunt consequat purus quam ante aliquam + mattis scelerisque viverra suspendisse, tellus convallis mollis ornare primis penatibus montes + dapibus sagittis fringilla, magna feugiat conubia luctus posuere suscipit praesent quis. + Interdum a iaculis aliquet inceptos vulputate torquent dapibus, ultricies nisl congue leo + molestie eu rutrum lectus, ac non pretium magna ad primis. Cursus dui tempus iaculis nostra + habitant quis platea hendrerit, purus augue massa elementum dapibus morbi ridiculus, magna + convallis pretium ac tincidunt inceptos cum.`,p,h;return{c(){e=E("div"),t=E("header"),a=E("button"),a.textContent=i,o=k(),r=E("h2"),r.textContent=u,s=k(),d=E("p"),d.textContent=f,this.h()},l(g){e=O(g,"DIV",{class:!0});var S=R(e);t=O(S,"HEADER",{class:!0});var F=R(t);a=O(F,"BUTTON",{type:!0,"data-svelte-h":!0}),I(a)!=="svelte-1swwpnp"&&(a.textContent=i),F.forEach(M),o=D(S),r=O(S,"H2",{"data-svelte-h":!0}),I(r)!=="svelte-dtxtrr"&&(r.textContent=u),s=D(S),d=O(S,"P",{class:!0,"data-svelte-h":!0}),I(d)!=="svelte-1kw6elh"&&(d.textContent=f),S.forEach(M),this.h()},h(){T(a,"type","button"),T(t,"class","svelte-1yrsth7"),T(d,"class","svelte-1yrsth7"),T(e,"class","modal modal2 svelte-1yrsth7")},m(g,S){B(g,e,S),w(e,t),w(t,a),w(e,o),w(e,r),w(e,s),w(e,d),p||(h=X(a,"click",n[1]),p=!0)},p:U,i:U,o:U,d(g){g&&M(e),p=!1,h()}}}function on(n,e,t){let{closeModal:a}=e;const i=()=>a("x");return n.$$set=o=>{"closeModal"in o&&t(0,a=o.closeModal)},[a,i]}class ln extends te{constructor(e){super(),ne(this,e,on,sn,ee,{closeModal:0})}}function un(n){let e,t,a,i="Close",o,r,u="Modal 1",s,d,f=`Sociis per justo neque pulvinar orci sagittis tristique tincidunt suspendisse cum est, rhoncus + euismod velit interdum condimentum aenean sed hendrerit arcu venenatis, rutrum commodo elementum + eros ac at non ullamcorper pellentesque turpis. Tincidunt consequat purus quam ante aliquam + mattis scelerisque viverra suspendisse, tellus convallis mollis ornare primis penatibus montes + dapibus sagittis fringilla, magna feugiat conubia luctus posuere suscipit praesent quis. + Interdum a iaculis aliquet inceptos vulputate torquent dapibus, ultricies nisl congue leo + molestie eu rutrum lectus, ac non pretium magna ad primis. Cursus dui tempus iaculis nostra + habitant quis platea hendrerit, purus augue massa elementum dapibus morbi ridiculus, magna + convallis pretium ac tincidunt inceptos cum.`,p,h,g,S="Open another modal",F,q,C=`Sociis per justo neque pulvinar orci sagittis tristique tincidunt suspendisse cum est, rhoncus + euismod velit interdum condimentum aenean sed hendrerit arcu venenatis, rutrum commodo elementum + eros ac at non ullamcorper pellentesque turpis. Tincidunt consequat purus quam ante aliquam + mattis scelerisque viverra suspendisse, tellus convallis mollis ornare primis penatibus montes + dapibus sagittis fringilla, magna feugiat conubia luctus posuere suscipit praesent quis. + Interdum a iaculis aliquet inceptos vulputate torquent dapibus, ultricies nisl congue leo + molestie eu rutrum lectus, ac non pretium magna ad primis. Cursus dui tempus iaculis nostra + habitant quis platea hendrerit, purus augue massa elementum dapibus morbi ridiculus, magna + convallis pretium ac tincidunt inceptos cum.`,P,N,x=`Sociis per justo neque pulvinar orci sagittis tristique tincidunt suspendisse cum est, rhoncus + euismod velit interdum condimentum aenean sed hendrerit arcu venenatis, rutrum commodo elementum + eros ac at non ullamcorper pellentesque turpis. Tincidunt consequat purus quam ante aliquam + mattis scelerisque viverra suspendisse, tellus convallis mollis ornare primis penatibus montes + dapibus sagittis fringilla, magna feugiat conubia luctus posuere suscipit praesent quis. + Interdum a iaculis aliquet inceptos vulputate torquent dapibus, ultricies nisl congue leo + molestie eu rutrum lectus, ac non pretium magna ad primis. Cursus dui tempus iaculis nostra + habitant quis platea hendrerit, purus augue massa elementum dapibus morbi ridiculus, magna + convallis pretium ac tincidunt inceptos cum.`,L,y,l,c="Close with return data",v,_;return{c(){e=E("div"),t=E("header"),a=E("button"),a.textContent=i,o=k(),r=E("h2"),r.textContent=u,s=k(),d=E("p"),d.textContent=f,p=k(),h=E("p"),g=E("button"),g.textContent=S,F=k(),q=E("p"),q.textContent=C,P=k(),N=E("p"),N.textContent=x,L=k(),y=E("p"),l=E("button"),l.textContent=c,this.h()},l(m){e=O(m,"DIV",{class:!0,"data-test-modal-wrap":!0});var b=R(e);t=O(b,"HEADER",{class:!0});var A=R(t);a=O(A,"BUTTON",{type:!0,"data-testid":!0,"data-svelte-h":!0}),I(a)!=="svelte-rosou3"&&(a.textContent=i),A.forEach(M),o=D(b),r=O(b,"H2",{"data-svelte-h":!0}),I(r)!=="svelte-jb7bes"&&(r.textContent=u),s=D(b),d=O(b,"P",{class:!0,"data-svelte-h":!0}),I(d)!=="svelte-1kw6elh"&&(d.textContent=f),p=D(b),h=O(b,"P",{class:!0});var j=R(h);g=O(j,"BUTTON",{type:!0,"data-testid":!0,"data-svelte-h":!0}),I(g)!=="svelte-9ruc2c"&&(g.textContent=S),j.forEach(M),F=D(b),q=O(b,"P",{class:!0,"data-svelte-h":!0}),I(q)!=="svelte-1kw6elh"&&(q.textContent=C),P=D(b),N=O(b,"P",{class:!0,"data-svelte-h":!0}),I(N)!=="svelte-1kw6elh"&&(N.textContent=x),L=D(b),y=O(b,"P",{class:!0});var H=R(y);l=O(H,"BUTTON",{type:!0,"data-test-submit":!0,"data-svelte-h":!0}),I(l)!=="svelte-27vmgz"&&(l.textContent=c),H.forEach(M),b.forEach(M),this.h()},h(){T(a,"type","button"),T(a,"data-testid","close"),T(t,"class","svelte-1llqch"),T(d,"class","svelte-1llqch"),T(g,"type","button"),T(g,"data-testid","show-modal-2"),T(h,"class","svelte-1llqch"),T(q,"class","svelte-1llqch"),T(N,"class","svelte-1llqch"),T(l,"type","button"),T(l,"data-test-submit",""),T(y,"class","svelte-1llqch"),T(e,"class","modal modal1 svelte-1llqch"),T(e,"data-test-modal-wrap","")},m(m,b){B(m,e,b),w(e,t),w(t,a),w(e,o),w(e,r),w(e,s),w(e,d),w(e,p),w(e,h),w(h,g),w(e,F),w(e,q),w(e,P),w(e,N),w(e,L),w(e,y),w(y,l),v||(_=[X(a,"click",n[2]),X(g,"click",n[3]),X(l,"click",n[4])],v=!0)},p:U,i:U,o:U,d(m){m&&M(e),v=!1,rt(_)}}}function cn(n,e,t){let{data:a}=e,{closeModal:i}=e;const o=()=>i({foo:"bar"}),r=()=>Ze(ln),u=()=>i(a);return n.$$set=s=>{"data"in s&&t(0,a=s.data),"closeModal"in s&&t(1,i=s.closeModal)},[a,i,o,r,u]}class dn extends te{constructor(e){super(),ne(this,e,cn,un,ee,{data:0,closeModal:1})}}const fn=""+new URL("../assets/svelte-promise-modals-logo.dd0e2d5c.svg",import.meta.url).href;function pn(n){let e,t="",a,i,o,r=`

svelte-promise-modals logo svelte-promise-modals

`,u,s,d,f,p,h="A simple modal with a button to close it",g,S,F='See the README on GitHub for setup & further instructions.',q,C,P="

Left blank to see
how scrolling is handled.

",N,x,L=`svelte-promise-modals is
made & sponsored with ❤️ by + Mainmatter`,y,l,c,v,_;return l=new rn({props:{options:n[0]}}),{c(){e=E("script"),e.innerHTML=t,i=k(),o=E("header"),o.innerHTML=r,u=k(),s=E("main"),d=E("div"),f=E("p"),p=E("button"),p.textContent=h,g=k(),S=E("p"),S.innerHTML=F,q=k(),C=E("div"),C.innerHTML=P,N=k(),x=E("p"),x.innerHTML=L,y=k(),oe(l.$$.fragment),this.h()},l(m){const b=ot("svelte-9ia6hi",document.head);e=O(b,"SCRIPT",{"data-domain":!0,src:!0,"data-svelte-h":!0}),I(e)!=="svelte-qsn6kj"&&(e.innerHTML=t),b.forEach(M),i=D(m),o=O(m,"HEADER",{"data-svelte-h":!0}),I(o)!=="svelte-uet43w"&&(o.innerHTML=r),u=D(m),s=O(m,"MAIN",{});var A=R(s);d=O(A,"DIV",{class:!0});var j=R(d);f=O(j,"P",{});var H=R(f);p=O(H,"BUTTON",{type:!0,"data-testid":!0,"data-svelte-h":!0}),I(p)!=="svelte-kjps7i"&&(p.textContent=h),H.forEach(M),j.forEach(M),g=D(A),S=O(A,"P",{"data-svelte-h":!0}),I(S)!=="svelte-1cx4w2i"&&(S.innerHTML=F),q=D(A),C=O(A,"DIV",{class:!0,"data-svelte-h":!0}),I(C)!=="svelte-1pcnp7s"&&(C.innerHTML=P),N=D(A),x=O(A,"P",{"data-svelte-h":!0}),I(x)!=="svelte-1o2qumo"&&(x.innerHTML=L),A.forEach(M),y=D(m),he(l.$$.fragment,m),this.h()},h(){e.defer=!0,T(e,"data-domain","svelte-promise-modals.com"),it(e.src,a="https://plausible.io/js/script.js")||T(e,"src",a),T(p,"type","button"),T(p,"data-testid","open-foo"),T(d,"class","box box-blue"),T(C,"class","box box-placeholder")},m(m,b){w(document.head,e),B(m,i,b),B(m,o,b),B(m,u,b),B(m,s,b),w(s,d),w(d,f),w(f,p),w(s,g),w(s,S),w(s,q),w(s,C),w(s,N),w(s,x),B(m,y,b),le(l,m,b),c=!0,v||(_=X(p,"click",n[2]),v=!0)},p:U,i(m){c||(V(l.$$.fragment,m),c=!0)},o(m){Y(l.$$.fragment,m),c=!1},d(m){m&&(M(i),M(o),M(u),M(s),M(y)),M(e),ue(l,m),v=!1,_()}}}function vn(n){window.destroyModals=Xe;let e=window.modalOptions||{};async function t(){let i=await Ze(dn);window.modalResult=i}return[e,t,()=>t()]}class wn extends te{constructor(e){super(),ne(this,e,vn,pn,ee,{})}}export{wn as component}; diff --git a/app/immutable/nodes/2.0da38877.js b/app/immutable/nodes/2.0da38877.js deleted file mode 100644 index 654ee3a..0000000 --- a/app/immutable/nodes/2.0da38877.js +++ /dev/null @@ -1,40 +0,0 @@ -var et=Object.defineProperty;var tt=(n,e,t)=>e in n?et(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var $=(n,e,t)=>(tt(n,typeof e!="symbol"?e+"":e,t),t);import{f as xe,s as Q,o as Pe,h as je,i as nt,b as Re,e as at,n as U,r as rt}from"../chunks/scheduler.b8da4d9f.js";import{S as ee,i as te,q as ye,g as E,s as k,r as oe,h as _,j as R,f as A,c as x,u as he,k as w,y as ae,a as B,x as y,v as ue,p as Le,t as G,w as le,b as $e,d as H,e as we,z as it,A as D,B as Z}from"../chunks/index.0841e91f.js";import{d as Be,w as ge}from"../chunks/index.f2fadb18.js";function Te(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function Ce(n,e){const t={},a={},r={$$scope:1};let s=n.length;for(;s--;){const i=n[s],l=e[s];if(l){for(const o in i)o in l||(a[o]=1);for(const o in l)r[o]||(t[o]=l[o],r[o]=1);n[s]=l}else for(const o in i)r[o]=1}for(const i in a)i in t||(t[i]=void 0);return t}function Ee(n){return typeof n=="object"&&n!==null?n:{}}/*! -* tabbable 6.1.1 -* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE -*/var Ke=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ce=Ke.join(","),Ue=typeof Element>"u",V=Ue?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,de=!Ue&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n==null?void 0:n.ownerDocument},fe=function n(e,t){var a;t===void 0&&(t=!0);var r=e==null||(a=e.getAttribute)===null||a===void 0?void 0:a.call(e,"inert"),s=r===""||r==="true",i=s||t&&e&&n(e.parentNode);return i},st=function(e){var t,a=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return a===""||a==="true"},He=function(e,t,a){if(fe(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(ce));return t&&V.call(e,ce)&&r.unshift(e),r=r.filter(a),r},Ve=function n(e,t,a){for(var r=[],s=Array.from(e);s.length;){var i=s.shift();if(!fe(i,!1))if(i.tagName==="SLOT"){var l=i.assignedElements(),o=l.length?l:i.children,f=n(o,!0,a);a.flatten?r.push.apply(r,f):r.push({scopeParent:i,candidates:f})}else{var d=V.call(i,ce);d&&a.filter(i)&&(t||!e.includes(i))&&r.push(i);var p=i.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(i),b=!fe(p,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(i));if(p&&b){var m=n(p===!0?i.children:p.children,!0,a);a.flatten?r.push.apply(r,m):r.push({scopeParent:i,candidates:m})}else s.unshift.apply(s,i.children)}}return r},Ge=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||st(e))&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},ot=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ye=function(e){return e.tagName==="INPUT"},ut=function(e){return Ye(e)&&e.type==="hidden"},lt=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(a){return a.tagName==="SUMMARY"});return t},ct=function(e,t){for(var a=0;asummary:first-of-type"),i=s?e.parentElement:e;if(V.call(i,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="legacy-full"){if(typeof r=="function"){for(var l=e;e;){var o=e.parentElement,f=de(e);if(o&&!o.shadowRoot&&r(o)===!0)return _e(e);e.assignedSlot?e=e.assignedSlot:!o&&f!==e.ownerDocument?e=f.host:e=o}e=l}if(pt(e))return!e.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return _e(e);return!1},bt=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var a=0;a=0)},gt=function n(e){var t=[],a=[];return e.forEach(function(r,s){var i=!!r.scopeParent,l=i?r.scopeParent:r,o=Ge(l,i),f=i?n(r.candidates):l;o===0?i?t.push.apply(t,f):t.push(l):a.push({documentOrder:s,tabIndex:o,item:r,isScope:i,content:f})}),a.sort(ot).reduce(function(r,s){return s.isScope?r.push.apply(r,s.content):r.push(s.content),r},[]).concat(t)},yt=function(e,t){t=t||{};var a;return t.getShadowRoot?a=Ve([e],t.includeContainer,{filter:be.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ht}):a=He(e,t.includeContainer,be.bind(null,t)),gt(a)},wt=function(e,t){t=t||{};var a;return t.getShadowRoot?a=Ve([e],t.includeContainer,{filter:ve.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):a=He(e,t.includeContainer,ve.bind(null,t)),a},re=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return V.call(e,ce)===!1?!1:be(t,e)},Tt=Ke.concat("iframe").join(","),Oe=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return V.call(e,Tt)===!1?!1:ve(t,e)};/*! -* focus-trap 7.3.1 -* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE -*/function Se(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);e&&(a=a.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,a)}return t}function Ae(n){for(var e=1;e0){var a=e[e.length-1];a!==t&&a.pause()}var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var a=e.indexOf(t);a!==-1&&e.splice(a,1),e.length>0&&e[e.length-1].unpause()}},Ot=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},St=function(e){return e.key==="Escape"||e.key==="Esc"||e.keyCode===27},X=function(e){return e.key==="Tab"||e.keyCode===9},At=function(e){return X(e)&&!e.shiftKey},Nt=function(e){return X(e)&&e.shiftKey},Fe=function(e){return setTimeout(e,0)},Me=function(e,t){var a=-1;return e.every(function(r,s){return t(r)?(a=s,!1):!0}),a},W=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r1?v-1:0),C=1;C=0)u=a.activeElement;else{var c=i.tabbableGroups[0],v=c&&c.firstTabbableNode;u=v||d("fallbackFocus")}if(!u)throw new Error("Your focus-trap needs to have at least one focusable element");return u},b=function(){if(i.containerGroups=i.containers.map(function(u){var c=yt(u,s.tabbableOptions),v=wt(u,s.tabbableOptions);return{container:u,tabbableNodes:c,focusableNodes:v,firstTabbableNode:c.length>0?c[0]:null,lastTabbableNode:c.length>0?c[c.length-1]:null,nextTabbableNode:function(C){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,q=v.findIndex(function(L){return L===C});if(!(q<0))return h?v.slice(q+1).find(function(L){return re(L,s.tabbableOptions)}):v.slice(0,q).reverse().find(function(L){return re(L,s.tabbableOptions)})}}}),i.tabbableGroups=i.containerGroups.filter(function(u){return u.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},m=function g(u){if(u!==!1&&u!==a.activeElement){if(!u||!u.focus){g(p());return}u.focus({preventScroll:!!s.preventScroll}),i.mostRecentlyFocusedNode=u,Ot(u)&&u.select()}},N=function(u){var c=d("setReturnFocus",u);return c||(c===!1?!1:u)},M=function(u){var c=ie(u);if(!(f(c)>=0)){if(W(s.clickOutsideDeactivates,u)){l.deactivate({returnFocus:s.returnFocusOnDeactivate});return}W(s.allowOutsideClick,u)||u.preventDefault()}},F=function(u){var c=ie(u),v=f(c)>=0;v||c instanceof Document?v&&(i.mostRecentlyFocusedNode=c):(u.stopImmediatePropagation(),m(i.mostRecentlyFocusedNode||p()))},O=function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=ie(u);b();var T=null;if(i.tabbableGroups.length>0){var C=f(v),h=C>=0?i.containerGroups[C]:void 0;if(C<0)c?T=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:T=i.tabbableGroups[0].firstTabbableNode;else if(c){var q=Me(i.tabbableGroups,function(pe){var me=pe.firstTabbableNode;return v===me});if(q<0&&(h.container===v||Oe(v,s.tabbableOptions)&&!re(v,s.tabbableOptions)&&!h.nextTabbableNode(v,!1))&&(q=C),q>=0){var L=q===0?i.tabbableGroups.length-1:q-1,ne=i.tabbableGroups[L];T=ne.lastTabbableNode}else X(u)||(T=h.nextTabbableNode(v,!1))}else{var z=Me(i.tabbableGroups,function(pe){var me=pe.lastTabbableNode;return v===me});if(z<0&&(h.container===v||Oe(v,s.tabbableOptions)&&!re(v,s.tabbableOptions)&&!h.nextTabbableNode(v))&&(z=C),z>=0){var Je=z===i.tabbableGroups.length-1?0:z+1,Qe=i.tabbableGroups[Je];T=Qe.firstTabbableNode}else X(u)||(T=h.nextTabbableNode(v))}}else T=d("fallbackFocus");T&&(X(u)&&u.preventDefault(),m(T))},I=function(u){if(St(u)&&W(s.escapeDeactivates,u)!==!1){u.preventDefault(),l.deactivate();return}(s.isKeyForward(u)||s.isKeyBackward(u))&&O(u,s.isKeyBackward(u))},S=function(u){var c=ie(u);f(c)>=0||W(s.clickOutsideDeactivates,u)||W(s.allowOutsideClick,u)||(u.preventDefault(),u.stopImmediatePropagation())},P=function(){if(i.active)return Ne.activateTrap(r,l),i.delayInitialFocusTimer=s.delayInitialFocus?Fe(function(){m(p())}):m(p()),a.addEventListener("focusin",F,!0),a.addEventListener("mousedown",M,{capture:!0,passive:!1}),a.addEventListener("touchstart",M,{capture:!0,passive:!1}),a.addEventListener("click",S,{capture:!0,passive:!1}),a.addEventListener("keydown",I,{capture:!0,passive:!1}),l},j=function(){if(i.active)return a.removeEventListener("focusin",F,!0),a.removeEventListener("mousedown",M,!0),a.removeEventListener("touchstart",M,!0),a.removeEventListener("click",S,!0),a.removeEventListener("keydown",I,!0),l};return l={get active(){return i.active},get paused(){return i.paused},activate:function(u){if(i.active)return this;var c=o(u,"onActivate"),v=o(u,"onPostActivate"),T=o(u,"checkCanFocusTrap");T||b(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=a.activeElement,c&&c();var C=function(){T&&b(),P(),v&&v()};return T?(T(i.containers.concat()).then(C,C),this):(C(),this)},deactivate:function(u){if(!i.active)return this;var c=Ae({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},u);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,j(),i.active=!1,i.paused=!1,Ne.deactivateTrap(r,l);var v=o(c,"onDeactivate"),T=o(c,"onPostDeactivate"),C=o(c,"checkCanReturnFocus"),h=o(c,"returnFocus","returnFocusOnDeactivate");v&&v();var q=function(){Fe(function(){h&&m(N(i.nodeFocusedBeforeActivation)),T&&T()})};return h&&C?(C(N(i.nodeFocusedBeforeActivation)).then(q,q),this):(q(),this)},pause:function(){return i.paused||!i.active?this:(i.paused=!0,j(),this)},unpause:function(){return!i.paused||!i.active?this:(i.paused=!1,b(),P(),this)},updateContainerElements:function(u){var c=[].concat(u).filter(Boolean);return i.containers=c.map(function(v){return typeof v=="string"?a.querySelector(v):v}),i.active&&b(),this}},l.updateContainerElements(e),l};function qt(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var It=function(e){return Dt(e)&&!kt(e)};function Dt(n){return!!n&&typeof n=="object"}function kt(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||jt(n)}var xt=typeof Symbol=="function"&&Symbol.for,Pt=xt?Symbol.for("react.element"):60103;function jt(n){return n.$$typeof===Pt}function Rt(n){return Array.isArray(n)?[]:{}}function J(n,e){return e.clone!==!1&&e.isMergeableObject(n)?Y(Rt(n),n,e):n}function Lt(n,e,t){return n.concat(e).map(function(a){return J(a,t)})}function $t(n,e){if(!e.customMerge)return Y;var t=e.customMerge(n);return typeof t=="function"?t:Y}function Bt(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function qe(n){return Object.keys(n).concat(Bt(n))}function ze(n,e){try{return e in n}catch{return!1}}function Kt(n,e){return ze(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function Ut(n,e,t){var a={};return t.isMergeableObject(n)&&qe(n).forEach(function(r){a[r]=J(n[r],t)}),qe(e).forEach(function(r){Kt(n,r)||(ze(n,r)&&t.isMergeableObject(e[r])?a[r]=$t(r,t)(n[r],e[r],t):a[r]=J(e[r],t))}),a}function Y(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Lt,t.isMergeableObject=t.isMergeableObject||It,t.cloneUnlessOtherwiseSpecified=J;var a=Array.isArray(e),r=Array.isArray(n),s=a===r;return s?a?t.arrayMerge(n,e,t):Ut(n,e,t):J(e,t)}Y.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(a,r){return Y(a,r,t)},{})};var Ht=Y,Vt=Ht;const Gt=qt(Vt);function Ie(){return new Yt}class Yt{constructor(){$(this,"resolve",()=>{});$(this,"reject",()=>{});$(this,"promise");this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}let zt=class{constructor(e,t,a){$(this,"deferred",Ie());$(this,"component");$(this,"props");$(this,"result");$(this,"deferredOutAnimation");$(this,"componentInstance");$(this,"options");this.component=e,this.props=t??{},this.options={onAnimationModalOutEnd:()=>{},...a}}resolve(e){this.deferredOutAnimation||(this.deferredOutAnimation=Ie(),this.options.onAnimationModalOutEnd&&this.deferredOutAnimation.promise.then(()=>{var t,a;return(a=(t=this.options).onAnimationModalOutEnd)==null?void 0:a.call(t)}).catch(()=>{}),this.result=e,this.deferred.resolve(e))}destroy(){var e;(e=this.componentInstance)==null||e.destroyModal()}close(){var e;(e=this.componentInstance)==null||e.closeModal()}remove(){var e;Zt(this),(e=this.deferredOutAnimation)==null||e.resolve()}then(e,t){return this.deferred.promise.then(e,t)}get isClosing(){return!!this.deferredOutAnimation}};const se=ge(!1),K=ge([]);Be(K,n=>n.filter(e=>!e.isClosing).length);Be(K,n=>n.at(-1));const We=ge({focusTrapOptions:{clickOutsideDeactivates:!0}}),Wt=n=>{n&&typeof n=="object"&&We.update(e=>Gt(e,n))},Ze=(n,e,t)=>{let a=new zt(n,e,t);return K.update(r=>[...r,a]),a},Zt=n=>{K.update(e=>e.filter(t=>t!==n))};function Xe(){xe(K).forEach(n=>n.destroy())}function Xt(n){let e,t,a,r,s,i;const l=[n[0].props,{closeModal:n[3]}];var o=n[0].component;function f(d,p){let b={};if(p!==void 0&&p&9)b=Ce(l,[p&1&&Ee(d[0].props),p&8&&{closeModal:d[3]}]);else for(let m=0;m{le(b,1)}),$e()}o?(s=ye(o,f(d,p)),oe(s.$$.fragment),H(s.$$.fragment,1),ue(s,r,null)):s=null}else if(o){const b=p&9?Ce(l,[p&1&&Ee(d[0].props),p&8&&{closeModal:d[3]}]):{};s.$set(b)}(!i||p&2)&&ae(r,"spm-out",d[1])},i(d){i||(s&&H(s.$$.fragment,d),i=!0)},o(d){s&&G(s.$$.fragment,d),i=!1},d(d){d&&(A(e),A(t),A(a)),s&&le(s),n[6](null)}}}function Jt(n,e,t){let{modal:a}=e,r=!1,s,i,l=null,o;Pe(async()=>{f(),p(),se.set(!0)}),je(()=>{m()});const f=()=>{let O=xe(We),{focusTrapOptions:I}=O,{focusTrapOptions:S}=a.options;if(S!==null&&(o=S||I),!o)return;let P={...o,fallbackFocus:i,onDeactivate:(...j)=>{var g;(g=o.onDeactivate)==null||g.call(o,...j),N()}};s=Mt(i,P),s.activate()},d=O=>{s&&(typeof O>"u"&&(O=o.onDeactivate),s.deactivate({onDeactivate:O}))},p=()=>{l=({target:O,animationName:I})=>{if(O!==i)return;se.set(!1),I.slice(-4)==="-out"&&a.remove()},i&&i.addEventListener("animationend",l)},b=()=>{l&&(i&&i.removeEventListener("animationend",l),l=null)},m=()=>{d(null),b(),a.remove()},N=O=>{r||(se.set(!0),t(1,r=!0),a.resolve(O))},M=O=>{N(O),d()};function F(O){Re[O?"unshift":"push"](()=>{i=O,t(2,i)})}return n.$$set=O=>{"modal"in O&&t(0,a=O.modal)},[a,r,i,M,m,N,F]}class Qt extends ee{constructor(e){super(),te(this,e,Jt,Xt,Q,{modal:0,destroyModal:4,closeModal:5})}get destroyModal(){return this.$$.ctx[4]}get closeModal(){return this.$$.ctx[5]}}function De(n,e,t){const a=n.slice();return a[3]=e[t],a[4]=e,a[5]=t,a}function ke(n){let e,t=n[4],a=n[5],r;const s=()=>n[2](e,t,a),i=()=>n[2](null,t,a);let l={modal:n[3]};return e=new Qt({props:l}),s(),{c(){oe(e.$$.fragment)},l(o){he(e.$$.fragment,o)},m(o,f){ue(e,o,f),r=!0},p(o,f){(t!==o[4]||a!==o[5])&&(i(),t=o[4],a=o[5],s());const d={};f&1&&(d.modal=o[3]),e.$set(d)},i(o){r||(H(e.$$.fragment,o),r=!0)},o(o){G(e.$$.fragment,o),r=!1},d(o){i(),le(e,o)}}}function en(n){let e,t,a=Te(n[0]),r=[];for(let i=0;iG(r[i],1,1,()=>{r[i]=null});return{c(){for(let i=0;it(0,a=i));let{options:r={}}=e;Pe(()=>{let i=K.subscribe(o=>{document.body.classList.toggle("spm-scrolling-disabled",o.length>0)}),l=se.subscribe(o=>{document.body.classList.toggle("spm-animating",o)});return()=>{i(),l()}}),je(Xe);function s(i,l,o){Re[i?"unshift":"push"](()=>{l[o].componentInstance=i,K.set(a)})}return n.$$set=i=>{"options"in i&&t(1,r=i.options)},n.$$.update=()=>{n.$$.dirty&2&&Wt(r)},[a,r,s]}class nn extends ee{constructor(e){super(),te(this,e,tn,en,Q,{options:1})}}function an(n){let e,t,a,r="Close",s,i,l="Modal 2",o,f,d=`Sociis per justo neque pulvinar orci sagittis tristique tincidunt suspendisse cum est, rhoncus - euismod velit interdum condimentum aenean sed hendrerit arcu venenatis, rutrum commodo elementum - eros ac at non ullamcorper pellentesque turpis. Tincidunt consequat purus quam ante aliquam - mattis scelerisque viverra suspendisse, tellus convallis mollis ornare primis penatibus montes - dapibus sagittis fringilla, magna feugiat conubia luctus posuere suscipit praesent quis. - Interdum a iaculis aliquet inceptos vulputate torquent dapibus, ultricies nisl congue leo - molestie eu rutrum lectus, ac non pretium magna ad primis. Cursus dui tempus iaculis nostra - habitant quis platea hendrerit, purus augue massa elementum dapibus morbi ridiculus, magna - convallis pretium ac tincidunt inceptos cum.`,p,b;return{c(){e=E("div"),t=E("header"),a=E("button"),a.textContent=r,s=k(),i=E("h2"),i.textContent=l,o=k(),f=E("p"),f.textContent=d,this.h()},l(m){e=_(m,"DIV",{class:!0});var N=R(e);t=_(N,"HEADER",{class:!0});var M=R(t);a=_(M,"BUTTON",{type:!0,"data-svelte-h":!0}),D(a)!=="svelte-1swwpnp"&&(a.textContent=r),M.forEach(A),s=x(N),i=_(N,"H2",{"data-svelte-h":!0}),D(i)!=="svelte-dtxtrr"&&(i.textContent=l),o=x(N),f=_(N,"P",{class:!0,"data-svelte-h":!0}),D(f)!=="svelte-1kw6elh"&&(f.textContent=d),N.forEach(A),this.h()},h(){w(a,"type","button"),w(t,"class","svelte-1yrsth7"),w(f,"class","svelte-1yrsth7"),w(e,"class","modal modal2 svelte-1yrsth7")},m(m,N){B(m,e,N),y(e,t),y(t,a),y(e,s),y(e,i),y(e,o),y(e,f),p||(b=Z(a,"click",n[1]),p=!0)},p:U,i:U,o:U,d(m){m&&A(e),p=!1,b()}}}function rn(n,e,t){let{closeModal:a}=e;const r=()=>a("x");return n.$$set=s=>{"closeModal"in s&&t(0,a=s.closeModal)},[a,r]}class sn extends ee{constructor(e){super(),te(this,e,rn,an,Q,{closeModal:0})}}function on(n){let e,t,a,r="Close",s,i,l="Modal 1",o,f,d=`Sociis per justo neque pulvinar orci sagittis tristique tincidunt suspendisse cum est, rhoncus - euismod velit interdum condimentum aenean sed hendrerit arcu venenatis, rutrum commodo elementum - eros ac at non ullamcorper pellentesque turpis. Tincidunt consequat purus quam ante aliquam - mattis scelerisque viverra suspendisse, tellus convallis mollis ornare primis penatibus montes - dapibus sagittis fringilla, magna feugiat conubia luctus posuere suscipit praesent quis. - Interdum a iaculis aliquet inceptos vulputate torquent dapibus, ultricies nisl congue leo - molestie eu rutrum lectus, ac non pretium magna ad primis. Cursus dui tempus iaculis nostra - habitant quis platea hendrerit, purus augue massa elementum dapibus morbi ridiculus, magna - convallis pretium ac tincidunt inceptos cum.`,p,b,m,N="Open another modal",M,F,O=`Sociis per justo neque pulvinar orci sagittis tristique tincidunt suspendisse cum est, rhoncus - euismod velit interdum condimentum aenean sed hendrerit arcu venenatis, rutrum commodo elementum - eros ac at non ullamcorper pellentesque turpis. Tincidunt consequat purus quam ante aliquam - mattis scelerisque viverra suspendisse, tellus convallis mollis ornare primis penatibus montes - dapibus sagittis fringilla, magna feugiat conubia luctus posuere suscipit praesent quis. - Interdum a iaculis aliquet inceptos vulputate torquent dapibus, ultricies nisl congue leo - molestie eu rutrum lectus, ac non pretium magna ad primis. Cursus dui tempus iaculis nostra - habitant quis platea hendrerit, purus augue massa elementum dapibus morbi ridiculus, magna - convallis pretium ac tincidunt inceptos cum.`,I,S,P=`Sociis per justo neque pulvinar orci sagittis tristique tincidunt suspendisse cum est, rhoncus - euismod velit interdum condimentum aenean sed hendrerit arcu venenatis, rutrum commodo elementum - eros ac at non ullamcorper pellentesque turpis. Tincidunt consequat purus quam ante aliquam - mattis scelerisque viverra suspendisse, tellus convallis mollis ornare primis penatibus montes - dapibus sagittis fringilla, magna feugiat conubia luctus posuere suscipit praesent quis. - Interdum a iaculis aliquet inceptos vulputate torquent dapibus, ultricies nisl congue leo - molestie eu rutrum lectus, ac non pretium magna ad primis. Cursus dui tempus iaculis nostra - habitant quis platea hendrerit, purus augue massa elementum dapibus morbi ridiculus, magna - convallis pretium ac tincidunt inceptos cum.`,j,g,u,c="Close with return data",v,T;return{c(){e=E("div"),t=E("header"),a=E("button"),a.textContent=r,s=k(),i=E("h2"),i.textContent=l,o=k(),f=E("p"),f.textContent=d,p=k(),b=E("p"),m=E("button"),m.textContent=N,M=k(),F=E("p"),F.textContent=O,I=k(),S=E("p"),S.textContent=P,j=k(),g=E("p"),u=E("button"),u.textContent=c,this.h()},l(C){e=_(C,"DIV",{class:!0,"data-test-modal-wrap":!0});var h=R(e);t=_(h,"HEADER",{class:!0});var q=R(t);a=_(q,"BUTTON",{type:!0,"data-testid":!0,"data-svelte-h":!0}),D(a)!=="svelte-rosou3"&&(a.textContent=r),q.forEach(A),s=x(h),i=_(h,"H2",{"data-svelte-h":!0}),D(i)!=="svelte-jb7bes"&&(i.textContent=l),o=x(h),f=_(h,"P",{class:!0,"data-svelte-h":!0}),D(f)!=="svelte-1kw6elh"&&(f.textContent=d),p=x(h),b=_(h,"P",{class:!0});var L=R(b);m=_(L,"BUTTON",{type:!0,"data-testid":!0,"data-svelte-h":!0}),D(m)!=="svelte-9ruc2c"&&(m.textContent=N),L.forEach(A),M=x(h),F=_(h,"P",{class:!0,"data-svelte-h":!0}),D(F)!=="svelte-1kw6elh"&&(F.textContent=O),I=x(h),S=_(h,"P",{class:!0,"data-svelte-h":!0}),D(S)!=="svelte-1kw6elh"&&(S.textContent=P),j=x(h),g=_(h,"P",{class:!0});var ne=R(g);u=_(ne,"BUTTON",{type:!0,"data-test-submit":!0,"data-svelte-h":!0}),D(u)!=="svelte-27vmgz"&&(u.textContent=c),ne.forEach(A),h.forEach(A),this.h()},h(){w(a,"type","button"),w(a,"data-testid","close"),w(t,"class","svelte-1llqch"),w(f,"class","svelte-1llqch"),w(m,"type","button"),w(m,"data-testid","show-modal-2"),w(b,"class","svelte-1llqch"),w(F,"class","svelte-1llqch"),w(S,"class","svelte-1llqch"),w(u,"type","button"),w(u,"data-test-submit",""),w(g,"class","svelte-1llqch"),w(e,"class","modal modal1 svelte-1llqch"),w(e,"data-test-modal-wrap","")},m(C,h){B(C,e,h),y(e,t),y(t,a),y(e,s),y(e,i),y(e,o),y(e,f),y(e,p),y(e,b),y(b,m),y(e,M),y(e,F),y(e,I),y(e,S),y(e,j),y(e,g),y(g,u),v||(T=[Z(a,"click",n[2]),Z(m,"click",n[3]),Z(u,"click",n[4])],v=!0)},p:U,i:U,o:U,d(C){C&&A(e),v=!1,rt(T)}}}function un(n,e,t){let{data:a}=e,{closeModal:r}=e;const s=()=>r({foo:"bar"}),i=()=>Ze(sn),l=()=>r(a);return n.$$set=o=>{"data"in o&&t(0,a=o.data),"closeModal"in o&&t(1,r=o.closeModal)},[a,r,s,i,l]}class ln extends ee{constructor(e){super(),te(this,e,un,on,Q,{data:0,closeModal:1})}}const cn=""+new URL("../assets/svelte-promise-modals-logo.dd0e2d5c.svg",import.meta.url).href;function dn(n){let e,t=`

svelte-promise-modals logo svelte-promise-modals

`,a,r,s,i,l,o="A simple modal with a button to close it",f,d,p='See the README on GitHub for setup & further instructions.',b,m,N="

Left blank to see
how scrolling is handled.

",M,F,O=`svelte-promise-modals is
made & sponsored with ❤️ by - Mainmatter`,I,S,P,j,g;return S=new nn({props:{options:n[0]}}),{c(){e=E("header"),e.innerHTML=t,a=k(),r=E("main"),s=E("div"),i=E("p"),l=E("button"),l.textContent=o,f=k(),d=E("p"),d.innerHTML=p,b=k(),m=E("div"),m.innerHTML=N,M=k(),F=E("p"),F.innerHTML=O,I=k(),oe(S.$$.fragment),this.h()},l(u){e=_(u,"HEADER",{"data-svelte-h":!0}),D(e)!=="svelte-uet43w"&&(e.innerHTML=t),a=x(u),r=_(u,"MAIN",{});var c=R(r);s=_(c,"DIV",{class:!0});var v=R(s);i=_(v,"P",{});var T=R(i);l=_(T,"BUTTON",{type:!0,"data-testid":!0,"data-svelte-h":!0}),D(l)!=="svelte-kjps7i"&&(l.textContent=o),T.forEach(A),v.forEach(A),f=x(c),d=_(c,"P",{"data-svelte-h":!0}),D(d)!=="svelte-1cx4w2i"&&(d.innerHTML=p),b=x(c),m=_(c,"DIV",{class:!0,"data-svelte-h":!0}),D(m)!=="svelte-1pcnp7s"&&(m.innerHTML=N),M=x(c),F=_(c,"P",{"data-svelte-h":!0}),D(F)!=="svelte-1o2qumo"&&(F.innerHTML=O),c.forEach(A),I=x(u),he(S.$$.fragment,u),this.h()},h(){w(l,"type","button"),w(l,"data-testid","open-foo"),w(s,"class","box box-blue"),w(m,"class","box box-placeholder")},m(u,c){B(u,e,c),B(u,a,c),B(u,r,c),y(r,s),y(s,i),y(i,l),y(r,f),y(r,d),y(r,b),y(r,m),y(r,M),y(r,F),B(u,I,c),ue(S,u,c),P=!0,j||(g=Z(l,"click",n[2]),j=!0)},p:U,i(u){P||(H(S.$$.fragment,u),P=!0)},o(u){G(S.$$.fragment,u),P=!1},d(u){u&&(A(e),A(a),A(r),A(I)),le(S,u),j=!1,g()}}}function fn(n){window.destroyModals=Xe;let e=window.modalOptions||{};async function t(){let r=await Ze(ln);window.modalResult=r}return[e,t,()=>t()]}class gn extends ee{constructor(e){super(),te(this,e,fn,dn,Q,{})}}export{gn as component}; diff --git a/app/version.json b/app/version.json index 5ba050b..ccebb6c 100644 --- a/app/version.json +++ b/app/version.json @@ -1 +1 @@ -{"version":"1700466847199"} \ No newline at end of file +{"version":"1700727361276"} \ No newline at end of file diff --git a/index.html b/index.html index d5535f2..a3939d1 100644 --- a/index.html +++ b/index.html @@ -5,18 +5,18 @@ - - - - - - + + + + + +