diff --git a/build/client/_app/immutable/chunks/singletons.385caa4e.js b/build/client/_app/immutable/chunks/singletons.385caa4e.js new file mode 100644 index 0000000..25ff59a --- /dev/null +++ b/build/client/_app/immutable/chunks/singletons.385caa4e.js @@ -0,0 +1 @@ +import{H as d,s as m}from"./index.ccd4248b.js";const c=[];function p(e,t=d){let n;const o=new Set;function a(s){if(m(e,s)&&(e=s,n)){const u=!c.length;for(const i of o)i[1](),c.push(i,e);if(u){for(let i=0;i{o.delete(i),o.size===0&&n&&(n(),n=null)}}return{set:a,update:l,subscribe:r}}var g;const E=((g=globalThis.__sveltekit_1iqjkk3)==null?void 0:g.base)??"";var k;const S=((k=globalThis.__sveltekit_1iqjkk3)==null?void 0:k.assets)??E,w="1683520495603",y="sveltekit:snapshot",I="sveltekit:scroll",x="sveltekit:index",_={tap:1,hover:2,viewport:3,eager:4,off:-1};function O(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function U(){return{x:pageXOffset,y:pageYOffset}}function f(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const b={..._,"":_.hover};function v(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function q(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=v(e)}}function L(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,a=!n||!!o||R(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===location.origin&&e.hasAttribute("download");return{url:n,external:a,target:o,download:l}}function N(e){let t=null,n=null,o=null,a=null,l=null,r=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=f(s,"preload-code")),a===null&&(a=f(s,"preload-data")),t===null&&(t=f(s,"keepfocus")),n===null&&(n=f(s,"noscroll")),l===null&&(l=f(s,"reload")),r===null&&(r=f(s,"replacestate")),s=v(s);return{preload_code:b[o??"off"],preload_data:b[a??"off"],keep_focus:t==="off"?!1:t===""?!0:null,noscroll:n==="off"?!1:n===""?!0:null,reload:l==="off"?!1:l===""?!0:null,replace_state:r==="off"?!1:r===""?!0:null}}function h(e){const t=p(e);let n=!0;function o(){n=!0,t.update(r=>r)}function a(r){n=!1,t.set(r)}function l(r){let s;return t.subscribe(u=>{(s===void 0||n&&u!==s)&&r(s=u)})}return{notify:o,set:a,subscribe:l}}function A(){const{set:e,subscribe:t}=p(!1);let n;async function o(){clearTimeout(n);try{const a=await fetch(`${S}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const r=(await a.json()).version!==w;return r&&(e(!0),clearTimeout(n)),r}catch{return!1}}return{subscribe:t,check:o}}function R(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}function j(e){e.client}const P={url:h({}),page:h({}),navigating:p(null),updated:A()};export{x as I,_ as P,I as S,y as a,L as b,N as c,U as d,E as e,q as f,O as g,j as h,R as i,P as s}; diff --git a/build/client/_app/immutable/chunks/singletons.485662cb.js b/build/client/_app/immutable/chunks/singletons.485662cb.js deleted file mode 100644 index e3c2cc3..0000000 --- a/build/client/_app/immutable/chunks/singletons.485662cb.js +++ /dev/null @@ -1 +0,0 @@ -import{H as d,s as v}from"./index.ccd4248b.js";const u=[];function p(e,t=d){let n;const o=new Set;function a(s){if(v(e,s)&&(e=s,n)){const c=!u.length;for(const i of o)i[1](),u.push(i,e);if(c){for(let i=0;i{o.delete(i),o.size===0&&n&&(n(),n=null)}}return{set:a,update:l,subscribe:r}}var g;const E=((g=globalThis.__sveltekit_rekncm)==null?void 0:g.base)??"";var k;const S=((k=globalThis.__sveltekit_rekncm)==null?void 0:k.assets)??E,w="1683520449414",y="sveltekit:snapshot",I="sveltekit:scroll",x="sveltekit:index",_={tap:1,hover:2,viewport:3,eager:4,off:-1};function O(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function U(){return{x:pageXOffset,y:pageYOffset}}function f(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const b={..._,"":_.hover};function m(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function L(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=m(e)}}function N(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,a=!n||!!o||R(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===location.origin&&e.hasAttribute("download");return{url:n,external:a,target:o,download:l}}function P(e){let t=null,n=null,o=null,a=null,l=null,r=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=f(s,"preload-code")),a===null&&(a=f(s,"preload-data")),t===null&&(t=f(s,"keepfocus")),n===null&&(n=f(s,"noscroll")),l===null&&(l=f(s,"reload")),r===null&&(r=f(s,"replacestate")),s=m(s);return{preload_code:b[o??"off"],preload_data:b[a??"off"],keep_focus:t==="off"?!1:t===""?!0:null,noscroll:n==="off"?!1:n===""?!0:null,reload:l==="off"?!1:l===""?!0:null,replace_state:r==="off"?!1:r===""?!0:null}}function h(e){const t=p(e);let n=!0;function o(){n=!0,t.update(r=>r)}function a(r){n=!1,t.set(r)}function l(r){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&r(s=c)})}return{notify:o,set:a,subscribe:l}}function A(){const{set:e,subscribe:t}=p(!1);let n;async function o(){clearTimeout(n);try{const a=await fetch(`${S}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const r=(await a.json()).version!==w;return r&&(e(!0),clearTimeout(n)),r}catch{return!1}}return{subscribe:t,check:o}}function R(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}function V(e){e.client}const Y={url:h({}),page:h({}),navigating:p(null),updated:A()};export{x as I,_ as P,I as S,y as a,N as b,P as c,U as d,E as e,L as f,O as g,V as h,R as i,Y as s}; diff --git a/build/client/_app/immutable/entry/app.6c81417f.js b/build/client/_app/immutable/entry/app.9a9bb5e3.js similarity index 96% rename from build/client/_app/immutable/entry/app.6c81417f.js rename to build/client/_app/immutable/entry/app.9a9bb5e3.js index 7155a08..c7a3ce2 100644 --- a/build/client/_app/immutable/entry/app.6c81417f.js +++ b/build/client/_app/immutable/entry/app.9a9bb5e3.js @@ -1 +1 @@ -import{S as V,i as q,s as U,a as j,e as h,c as z,b as w,d as p,f as y,g as d,h as g,j as W,o as F,k as G,l as H,m as J,n as N,p as m,q as K,r as M,u as Q,v as L,w as P,x as k,y as v,z as A,A as E,B as R}from"../chunks/index.ccd4248b.js";const X="modulepreload",Y=function(a,e){return new URL(a,e).href},B={},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=Y(f,i),f in B)return;B[f]=!0;const t=f.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(!!i)for(let l=s.length-1;l>=0;l--){const _=s[l];if(_.href===f&&(!t||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${r}`))return;const o=document.createElement("link");if(o.rel=t?"stylesheet":X,t||(o.as="script",o.crossOrigin=""),o.href=f,document.head.appendChild(o),t)return new Promise((l,_)=>{o.addEventListener("load",l),o.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${f}`)))})})).then(()=>e())},ie={};function Z(a){let e,n,i;var s=a[1][0];function f(t){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,f(a)),a[12](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&A(e.$$.fragment,t),n=h()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){const u={};if(r&8&&(u.data=t[3]),r&4&&(u.form=t[2]),r&2&&s!==(s=t[1][0])){if(e){L();const o=e;p(o.$$.fragment,1,0,()=>{R(o,1)}),y()}s?(e=k(s,f(t)),t[12](e),v(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else s&&e.$set(u)},i(t){i||(e&&d(e.$$.fragment,t),i=!0)},o(t){e&&p(e.$$.fragment,t),i=!1},d(t){a[12](null),t&&g(n),e&&R(e,t)}}}function $(a){let e,n,i;var s=a[1][0];function f(t){return{props:{data:t[3],$$slots:{default:[x]},$$scope:{ctx:t}}}}return s&&(e=k(s,f(a)),a[11](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&A(e.$$.fragment,t),n=h()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){const u={};if(r&8&&(u.data=t[3]),r&8215&&(u.$$scope={dirty:r,ctx:t}),r&2&&s!==(s=t[1][0])){if(e){L();const o=e;p(o.$$.fragment,1,0,()=>{R(o,1)}),y()}s?(e=k(s,f(t)),t[11](e),v(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else s&&e.$set(u)},i(t){i||(e&&d(e.$$.fragment,t),i=!0)},o(t){e&&p(e.$$.fragment,t),i=!1},d(t){a[11](null),t&&g(n),e&&R(e,t)}}}function x(a){let e,n,i;var s=a[1][1];function f(t){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,f(a)),a[10](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&A(e.$$.fragment,t),n=h()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){const u={};if(r&16&&(u.data=t[4]),r&4&&(u.form=t[2]),r&2&&s!==(s=t[1][1])){if(e){L();const o=e;p(o.$$.fragment,1,0,()=>{R(o,1)}),y()}s?(e=k(s,f(t)),t[10](e),v(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else s&&e.$set(u)},i(t){i||(e&&d(e.$$.fragment,t),i=!0)},o(t){e&&p(e.$$.fragment,t),i=!1},d(t){a[10](null),t&&g(n),e&&R(e,t)}}}function C(a){let e,n=a[6]&&D(a);return{c(){e=G("div"),n&&n.c(),this.h()},l(i){e=H(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=J(e);n&&n.l(s),s.forEach(g),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){w(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=D(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&g(e),n&&n.d()}}}function D(a){let e;return{c(){e=K(a[7])},l(n){e=M(n,a[7])},m(n,i){w(n,e,i)},p(n,i){i&128&&Q(e,n[7])},d(n){n&&g(e)}}}function ee(a){let e,n,i,s,f;const t=[$,Z],r=[];function u(l,_){return l[1][1]?0:1}e=u(a),n=r[e]=t[e](a);let o=a[5]&&C(a);return{c(){n.c(),i=j(),o&&o.c(),s=h()},l(l){n.l(l),i=z(l),o&&o.l(l),s=h()},m(l,_){r[e].m(l,_),w(l,i,_),o&&o.m(l,_),w(l,s,_),f=!0},p(l,[_]){let b=e;e=u(l),e===b?r[e].p(l,_):(L(),p(r[b],1,1,()=>{r[b]=null}),y(),n=r[e],n?n.p(l,_):(n=r[e]=t[e](l),n.c()),d(n,1),n.m(i.parentNode,i)),l[5]?o?o.p(l,_):(o=C(l),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null)},i(l){f||(d(n),f=!0)},o(l){p(n),f=!1},d(l){r[e].d(l),l&&g(i),o&&o.d(l),l&&g(s)}}}function te(a,e,n){let{stores:i}=e,{page:s}=e,{constructors:f}=e,{components:t=[]}=e,{form:r}=e,{data_0:u=null}=e,{data_1:o=null}=e;W(i.page.notify);let l=!1,_=!1,b=null;F(()=>{const c=i.page.subscribe(()=>{l&&(n(6,_=!0),n(7,b=document.title||"untitled page"))});return n(5,l=!0),c});function I(c){P[c?"unshift":"push"](()=>{t[1]=c,n(0,t)})}function O(c){P[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}function T(c){P[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}return a.$$set=c=>{"stores"in c&&n(8,i=c.stores),"page"in c&&n(9,s=c.page),"constructors"in c&&n(1,f=c.constructors),"components"in c&&n(0,t=c.components),"form"in c&&n(2,r=c.form),"data_0"in c&&n(3,u=c.data_0),"data_1"in c&&n(4,o=c.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(s)},[t,f,r,u,o,l,_,b,i,s,I,O,T]}class se extends V{constructor(e){super(),q(this,e,te,ee,U,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const re=[()=>S(()=>import("../nodes/0.71e9386d.js"),["../nodes/0.71e9386d.js","../chunks/index.ccd4248b.js"],import.meta.url),()=>S(()=>import("../nodes/1.0ff28dfd.js"),["../nodes/1.0ff28dfd.js","../chunks/index.ccd4248b.js","../chunks/singletons.485662cb.js"],import.meta.url),()=>S(()=>import("../nodes/2.c57165ac.js"),["../nodes/2.c57165ac.js","../chunks/index.ccd4248b.js"],import.meta.url)],oe=[],ae={"/":[2]},le={handleError:({error:a})=>{console.error(a)}};export{ae as dictionary,le as hooks,ie as matchers,re as nodes,se as root,oe as server_loads}; +import{S as V,i as q,s as U,a as j,e as h,c as z,b as w,d as p,f as y,g as d,h as g,j as W,o as F,k as G,l as H,m as J,n as N,p as m,q as K,r as M,u as Q,v as L,w as P,x as k,y as v,z as A,A as E,B as R}from"../chunks/index.ccd4248b.js";const X="modulepreload",Y=function(a,e){return new URL(a,e).href},B={},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=Y(f,i),f in B)return;B[f]=!0;const t=f.endsWith(".css"),r=t?'[rel="stylesheet"]':"";if(!!i)for(let l=s.length-1;l>=0;l--){const _=s[l];if(_.href===f&&(!t||_.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${f}"]${r}`))return;const o=document.createElement("link");if(o.rel=t?"stylesheet":X,t||(o.as="script",o.crossOrigin=""),o.href=f,document.head.appendChild(o),t)return new Promise((l,_)=>{o.addEventListener("load",l),o.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${f}`)))})})).then(()=>e())},ie={};function Z(a){let e,n,i;var s=a[1][0];function f(t){return{props:{data:t[3],form:t[2]}}}return s&&(e=k(s,f(a)),a[12](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&A(e.$$.fragment,t),n=h()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){const u={};if(r&8&&(u.data=t[3]),r&4&&(u.form=t[2]),r&2&&s!==(s=t[1][0])){if(e){L();const o=e;p(o.$$.fragment,1,0,()=>{R(o,1)}),y()}s?(e=k(s,f(t)),t[12](e),v(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else s&&e.$set(u)},i(t){i||(e&&d(e.$$.fragment,t),i=!0)},o(t){e&&p(e.$$.fragment,t),i=!1},d(t){a[12](null),t&&g(n),e&&R(e,t)}}}function $(a){let e,n,i;var s=a[1][0];function f(t){return{props:{data:t[3],$$slots:{default:[x]},$$scope:{ctx:t}}}}return s&&(e=k(s,f(a)),a[11](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&A(e.$$.fragment,t),n=h()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){const u={};if(r&8&&(u.data=t[3]),r&8215&&(u.$$scope={dirty:r,ctx:t}),r&2&&s!==(s=t[1][0])){if(e){L();const o=e;p(o.$$.fragment,1,0,()=>{R(o,1)}),y()}s?(e=k(s,f(t)),t[11](e),v(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else s&&e.$set(u)},i(t){i||(e&&d(e.$$.fragment,t),i=!0)},o(t){e&&p(e.$$.fragment,t),i=!1},d(t){a[11](null),t&&g(n),e&&R(e,t)}}}function x(a){let e,n,i;var s=a[1][1];function f(t){return{props:{data:t[4],form:t[2]}}}return s&&(e=k(s,f(a)),a[10](e)),{c(){e&&v(e.$$.fragment),n=h()},l(t){e&&A(e.$$.fragment,t),n=h()},m(t,r){e&&E(e,t,r),w(t,n,r),i=!0},p(t,r){const u={};if(r&16&&(u.data=t[4]),r&4&&(u.form=t[2]),r&2&&s!==(s=t[1][1])){if(e){L();const o=e;p(o.$$.fragment,1,0,()=>{R(o,1)}),y()}s?(e=k(s,f(t)),t[10](e),v(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else s&&e.$set(u)},i(t){i||(e&&d(e.$$.fragment,t),i=!0)},o(t){e&&p(e.$$.fragment,t),i=!1},d(t){a[10](null),t&&g(n),e&&R(e,t)}}}function C(a){let e,n=a[6]&&D(a);return{c(){e=G("div"),n&&n.c(),this.h()},l(i){e=H(i,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var s=J(e);n&&n.l(s),s.forEach(g),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){w(i,e,s),n&&n.m(e,null)},p(i,s){i[6]?n?n.p(i,s):(n=D(i),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(i){i&&g(e),n&&n.d()}}}function D(a){let e;return{c(){e=K(a[7])},l(n){e=M(n,a[7])},m(n,i){w(n,e,i)},p(n,i){i&128&&Q(e,n[7])},d(n){n&&g(e)}}}function ee(a){let e,n,i,s,f;const t=[$,Z],r=[];function u(l,_){return l[1][1]?0:1}e=u(a),n=r[e]=t[e](a);let o=a[5]&&C(a);return{c(){n.c(),i=j(),o&&o.c(),s=h()},l(l){n.l(l),i=z(l),o&&o.l(l),s=h()},m(l,_){r[e].m(l,_),w(l,i,_),o&&o.m(l,_),w(l,s,_),f=!0},p(l,[_]){let b=e;e=u(l),e===b?r[e].p(l,_):(L(),p(r[b],1,1,()=>{r[b]=null}),y(),n=r[e],n?n.p(l,_):(n=r[e]=t[e](l),n.c()),d(n,1),n.m(i.parentNode,i)),l[5]?o?o.p(l,_):(o=C(l),o.c(),o.m(s.parentNode,s)):o&&(o.d(1),o=null)},i(l){f||(d(n),f=!0)},o(l){p(n),f=!1},d(l){r[e].d(l),l&&g(i),o&&o.d(l),l&&g(s)}}}function te(a,e,n){let{stores:i}=e,{page:s}=e,{constructors:f}=e,{components:t=[]}=e,{form:r}=e,{data_0:u=null}=e,{data_1:o=null}=e;W(i.page.notify);let l=!1,_=!1,b=null;F(()=>{const c=i.page.subscribe(()=>{l&&(n(6,_=!0),n(7,b=document.title||"untitled page"))});return n(5,l=!0),c});function I(c){P[c?"unshift":"push"](()=>{t[1]=c,n(0,t)})}function O(c){P[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}function T(c){P[c?"unshift":"push"](()=>{t[0]=c,n(0,t)})}return a.$$set=c=>{"stores"in c&&n(8,i=c.stores),"page"in c&&n(9,s=c.page),"constructors"in c&&n(1,f=c.constructors),"components"in c&&n(0,t=c.components),"form"in c&&n(2,r=c.form),"data_0"in c&&n(3,u=c.data_0),"data_1"in c&&n(4,o=c.data_1)},a.$$.update=()=>{a.$$.dirty&768&&i.page.set(s)},[t,f,r,u,o,l,_,b,i,s,I,O,T]}class se extends V{constructor(e){super(),q(this,e,te,ee,U,{stores:8,page:9,constructors:1,components:0,form:2,data_0:3,data_1:4})}}const re=[()=>S(()=>import("../nodes/0.71e9386d.js"),["../nodes/0.71e9386d.js","../chunks/index.ccd4248b.js"],import.meta.url),()=>S(()=>import("../nodes/1.506fdcf1.js"),["../nodes/1.506fdcf1.js","../chunks/index.ccd4248b.js","../chunks/singletons.385caa4e.js"],import.meta.url),()=>S(()=>import("../nodes/2.c57165ac.js"),["../nodes/2.c57165ac.js","../chunks/index.ccd4248b.js"],import.meta.url)],oe=[],ae={"/":[2]},le={handleError:({error:a})=>{console.error(a)}};export{ae as dictionary,le as hooks,ie as matchers,re as nodes,se as root,oe as server_loads}; diff --git a/build/client/_app/immutable/entry/start.2c9122e1.js b/build/client/_app/immutable/entry/start.1c5387bd.js similarity index 99% rename from build/client/_app/immutable/entry/start.2c9122e1.js rename to build/client/_app/immutable/entry/start.1c5387bd.js index 8796756..ee580b1 100644 --- a/build/client/_app/immutable/entry/start.2c9122e1.js +++ b/build/client/_app/immutable/entry/start.1c5387bd.js @@ -1,3 +1,3 @@ -import{o as Ce,t as ye}from"../chunks/index.ccd4248b.js";import{S as Ge,a as Je,I as q,g as De,f as qe,b as we,c as le,s as H,i as _e,d as Q,e as J,P as Fe,h as We}from"../chunks/singletons.485662cb.js";function Xe(t,o){return t==="/"||o==="ignore"?t:o==="never"?t.endsWith("/")?t.slice(0,-1):t:o==="always"&&!t.endsWith("/")?t+"/":t}function Ze(t){return t.split("%25").map(decodeURI).join("%25")}function Qe(t){for(const o in t)t[o]=decodeURIComponent(t[o]);return t}const et=["href","pathname","search","searchParams","toString","toJSON"];function tt(t,o){const u=new URL(t);for(const i of et)Object.defineProperty(u,i,{get(){return o(),t[i]},enumerable:!0,configurable:!0});return nt(u),u}function nt(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const at="/__data.json";function rt(t){return t.replace(/\/$/,"")+at}function Ke(t){try{return JSON.parse(sessionStorage[t])}catch{}}function Me(t,o){const u=JSON.stringify(o);try{sessionStorage[t]=u}catch{}}function ot(...t){let o=5381;for(const u of t)if(typeof u=="string"){let i=u.length;for(;i;)o=o*33^u.charCodeAt(--i)}else if(ArrayBuffer.isView(u)){const i=new Uint8Array(u.buffer,u.byteOffset,u.byteLength);let d=i.length;for(;d;)o=o*33^i[--d]}else throw new TypeError("value must be a string or TypedArray");return(o>>>0).toString(36)}const fe=window.fetch;window.fetch=(t,o)=>((t instanceof Request?t.method:(o==null?void 0:o.method)||"GET")!=="GET"&&te.delete(Se(t)),fe(t,o));const te=new Map;function it(t,o){const u=Se(t,o),i=document.querySelector(u);if(i!=null&&i.textContent){const{body:d,...f}=JSON.parse(i.textContent),S=i.getAttribute("data-ttl");return S&&te.set(u,{body:d,init:f,ttl:1e3*Number(S)}),Promise.resolve(new Response(d,f))}return fe(t,o)}function st(t,o,u){if(te.size>0){const i=Se(t,u),d=te.get(i);if(d){if(performance.now(){const d=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(i);if(d)return o.push({name:d[1],matcher:d[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const f=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(i);if(f)return o.push({name:f[1],matcher:f[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!i)return;const S=i.split(/\[(.+?)\](?!\])/);return"/"+S.map((b,w)=>{if(w%2){if(b.startsWith("x+"))return be(String.fromCharCode(parseInt(b.slice(2),16)));if(b.startsWith("u+"))return be(String.fromCharCode(...b.slice(2).split("-").map(P=>parseInt(P,16))));const p=ct.exec(b);if(!p)throw new Error(`Invalid param: ${b}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,C,N,k,T]=p;return o.push({name:k,matcher:T,optional:!!C,rest:!!N,chained:N?w===1&&S[0]==="":!1}),N?"(.*?)":C?"([^/]*)?":"([^/]+?)"}return be(b)}).join("")}).join("")}/?$`),params:o}}function ft(t){return!/^\([^)]+\)$/.test(t)}function ut(t){return t.slice(1).split("/").filter(ft)}function dt(t,o,u){const i={},d=t.slice(1);let f=0;for(let S=0;Sw).join("/"),f=0;continue}if(b===void 0){l.rest&&(i[l.name]="");continue}if(!l.matcher||u[l.matcher](b)){i[l.name]=b;const w=o[S+1],p=d[S+1];w&&!w.rest&&w.optional&&p&&(f=0);continue}if(l.optional&&l.chained){f++;continue}return}if(!f)return i}function be(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function pt({nodes:t,server_loads:o,dictionary:u,matchers:i}){const d=new Set(o);return Object.entries(u).map(([l,[b,w,p]])=>{const{pattern:C,params:N}=lt(l),k={id:l,exec:T=>{const P=C.exec(T);if(P)return dt(P,N,i)},errors:[1,...p||[]].map(T=>t[T]),layouts:[0,...w||[]].map(S),leaf:f(b)};return k.errors.length=k.layouts.length=Math.max(k.errors.length,k.layouts.length),k});function f(l){const b=l<0;return b&&(l=~l),[b,t[l]]}function S(l){return l===void 0?l:[d.has(l),t[l]]}}let ee=class{constructor(o,u){this.status=o,typeof u=="string"?this.body={message:u}:u?this.body=u:this.body={message:`Error: ${o}`}}toString(){return JSON.stringify(this.body)}},He=class{constructor(o,u){this.status=o,this.location=u}};async function ht(t){var o;for(const u in t)if(typeof((o=t[u])==null?void 0:o.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([i,d])=>[i,await d])));return t}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");const gt=-1,mt=-2,yt=-3,wt=-4,_t=-5,bt=-6;function vt(t,o){if(typeof t=="number")return d(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const u=t,i=Array(u.length);function d(f,S=!1){if(f===gt)return;if(f===yt)return NaN;if(f===wt)return 1/0;if(f===_t)return-1/0;if(f===bt)return-0;if(S)throw new Error("Invalid input");if(f in i)return i[f];const l=u[f];if(!l||typeof l!="object")i[f]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const b=l[0],w=o==null?void 0:o[b];if(w)return i[f]=w(d(l[1]));switch(b){case"Date":i[f]=new Date(l[1]);break;case"Set":const p=new Set;i[f]=p;for(let k=1;ko!=null)}const kt="x-sveltekit-invalidated",K=Ke(Ge)??{},Z=Ke(Je)??{};function ve(t){K[t]=Q()}function Rt(t,o){var xe;const u=pt(t),i=t.nodes[0],d=t.nodes[1];i(),d();const f=document.documentElement,S=[],l=[];let b=null;const w={before_navigate:[],after_navigate:[]};let p={branch:[],error:null,url:null},C=!1,N=!1,k=!0,T=!1,P=!1,z=!1,V=!1,F,j=(xe=history.state)==null?void 0:xe[q];j||(j=Date.now(),history.replaceState({...history.state,[q]:j},"",location.href));const ue=K[j];ue&&(history.scrollRestoration="manual",scrollTo(ue.x,ue.y));let M,ne,ae;async function ke(){ae=ae||Promise.resolve(),await ae,ae=null;const e=new URL(location.href),n=W(e,!0);b=null;const r=ne={},a=n&&await he(n);if(r===ne&&a){if(a.type==="redirect")return re(new URL(a.location,e).href,{},[e.pathname],r);a.props.page!==void 0&&(M=a.props.page),F.$set(a.props)}}function Re(e){l.some(n=>n==null?void 0:n.snapshot)&&(Z[e]=l.map(n=>{var r;return(r=n==null?void 0:n.snapshot)==null?void 0:r.capture()}))}function Ae(e){var n;(n=Z[e])==null||n.forEach((r,a)=>{var s,c;(c=(s=l[a])==null?void 0:s.snapshot)==null||c.restore(r)})}function Le(){ve(j),Me(Ge,K),Re(j),Me(Je,Z)}async function re(e,{noScroll:n=!1,replaceState:r=!1,keepFocus:a=!1,state:s={},invalidateAll:c=!1},g,m){return typeof e=="string"&&(e=new URL(e,De(document))),ce({url:e,scroll:n?Q():null,keepfocus:a,redirect_chain:g,details:{state:s,replaceState:r},nav_token:m,accepted:()=>{c&&(V=!0)},blocked:()=>{},type:"goto"})}async function Oe(e){return b={id:e.id,promise:he(e).then(n=>(n.type==="loaded"&&n.state.error&&(b=null),n))},b.promise}async function oe(...e){const r=u.filter(a=>e.some(s=>a.exec(s))).map(a=>Promise.all([...a.layouts,a.leaf].map(s=>s==null?void 0:s[1]())));await Promise.all(r)}function Ie(e){var a;p=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),M=e.props.page,F=new t.root({target:o,props:{...e.props,stores:H,components:l},hydrate:!0}),Ae(j);const r={from:null,to:{params:p.params,route:{id:((a=p.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter"};w.after_navigate.forEach(s=>s(r)),N=!0}async function Y({url:e,params:n,branch:r,status:a,error:s,route:c,form:g}){let m="never";for(const _ of r)(_==null?void 0:_.slash)!==void 0&&(m=_.slash);e.pathname=Xe(e.pathname,m),e.search=e.search;const v={type:"loaded",state:{url:e,params:n,branch:r,error:s,route:c},props:{constructors:St(r).map(_=>_.node.component)}};g!==void 0&&(v.props.form=g);let y={},R=!M,L=0;for(let _=0;_(m.params.add(U),h[U])}),data:(c==null?void 0:c.data)??null,url:tt(r,()=>{m.url=!0}),async fetch(h,U){let x;h instanceof Request?(x=h.url,U={body:h.method==="GET"||h.method==="HEAD"?void 0:await h.blob(),cache:h.cache,credentials:h.credentials,headers:h.headers,integrity:h.integrity,keepalive:h.keepalive,method:h.method,mode:h.mode,redirect:h.redirect,referrer:h.referrer,referrerPolicy:h.referrerPolicy,signal:h.signal,...U}):x=h;const D=new URL(x,r);return I(D.href),D.origin===r.origin&&(x=D.href.slice(r.origin.length)),N?st(x,D.href,U):it(x,U)},setHeaders:()=>{},depends:I,parent(){return m.parent=!0,n()}};g=await v.universal.load.call(null,_)??null,g=g?await ht(g):null}return{node:v,loader:e,server:c,universal:(R=v.universal)!=null&&R.load?{type:"data",data:g,uses:m}:null,data:g??(c==null?void 0:c.data)??null,slash:((L=v.universal)==null?void 0:L.trailingSlash)??(c==null?void 0:c.slash)}}function Pe(e,n,r,a,s){if(V)return!0;if(!a)return!1;if(a.parent&&e||a.route&&n||a.url&&r)return!0;for(const c of a.params)if(s[c]!==p.params[c])return!0;for(const c of a.dependencies)if(S.some(g=>g(new URL(c))))return!0;return!1}function pe(e,n){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?n??null:null}async function he({id:e,invalidating:n,url:r,params:a,route:s}){if((b==null?void 0:b.id)===e)return b.promise;const{errors:c,layouts:g,leaf:m}=s,v=[...g,m];c.forEach(E=>E==null?void 0:E().catch(()=>{})),v.forEach(E=>E==null?void 0:E[1]().catch(()=>{}));let y=null;const R=p.url?e!==p.url.pathname+p.url.search:!1,L=p.route?s.id!==p.route.id:!1;let I=!1;const _=v.map((E,O)=>{var G;const A=p.branch[O],$=!!(E!=null&&E[0])&&((A==null?void 0:A.loader)!==E[1]||Pe(I,L,R,(G=A.server)==null?void 0:G.uses,a));return $&&(I=!0),$});if(_.some(Boolean)){try{y=await Ve(r,_)}catch(E){return ie({status:E instanceof ee?E.status:500,error:await X(E,{url:r,params:a,route:{id:s.id}}),url:r,route:s})}if(y.type==="redirect")return y}const h=y==null?void 0:y.nodes;let U=!1;const x=v.map(async(E,O)=>{var ge;if(!E)return;const A=p.branch[O],$=h==null?void 0:h[O];if((!$||$.type==="skip")&&E[1]===(A==null?void 0:A.loader)&&!Pe(U,L,R,(ge=A.universal)==null?void 0:ge.uses,a))return A;if(U=!0,($==null?void 0:$.type)==="error")throw $;return de({loader:E[1],url:r,params:a,route:s,parent:async()=>{var $e;const je={};for(let me=0;me{});const D=[];for(let E=0;EPromise.resolve({}),server_data_node:pe(c)}),v={node:await d(),loader:d,universal:null,server:null,data:null};return await Y({url:r,params:s,branch:[m,v],status:e,error:n,route:null})}function W(e,n){if(_e(e,J))return;const r=se(e);for(const a of u){const s=a.exec(r);if(s)return{id:e.pathname+e.search,invalidating:n,route:a,params:Qe(s),url:e}}}function se(e){return Ze(e.pathname.slice(J.length)||"/")}function Ne({url:e,type:n,intent:r,delta:a}){var m,v;let s=!1;const c={from:{params:p.params,route:{id:((m=p.route)==null?void 0:m.id)??null},url:p.url},to:{params:(r==null?void 0:r.params)??null,route:{id:((v=r==null?void 0:r.route)==null?void 0:v.id)??null},url:e},willUnload:!r,type:n};a!==void 0&&(c.delta=a);const g={...c,cancel:()=>{s=!0}};return P||w.before_navigate.forEach(y=>y(g)),s?null:c}async function ce({url:e,scroll:n,keepfocus:r,redirect_chain:a,details:s,type:c,delta:g,nav_token:m={},accepted:v,blocked:y}){var x,D,E;const R=W(e,!1),L=Ne({url:e,type:c,delta:g,intent:R});if(!L){y();return}const I=j;v(),P=!0,N&&H.navigating.set(L),ne=m;let _=R&&await he(R);if(!_){if(_e(e,J))return await B(e);_=await Te(e,{id:null},await X(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(R==null?void 0:R.url)||e,ne!==m)return!1;if(_.type==="redirect")if(a.length>10||a.includes(e.pathname))_=await ie({status:500,error:await X(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(_.location,e).href,{},[...a,e.pathname],m),!1;else((x=_.props.page)==null?void 0:x.status)>=400&&await H.updated.check()&&await B(e);if(S.length=0,V=!1,T=!0,ve(I),Re(I),(D=_.props.page)!=null&&D.url&&_.props.page.url.pathname!==e.pathname&&(e.pathname=(E=_.props.page)==null?void 0:E.url.pathname),s){const O=s.replaceState?0:1;if(s.state[q]=j+=O,history[s.replaceState?"replaceState":"pushState"](s.state,"",e),!s.replaceState){let A=j+1;for(;Z[A]||K[A];)delete Z[A],delete K[A],A+=1}}b=null,N?(p=_.state,_.props.page&&(_.props.page.url=e),F.$set(_.props)):Ie(_);const{activeElement:h}=document;if(await ye(),k){const O=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));n?scrollTo(n.x,n.y):O?O.scrollIntoView():scrollTo(0,0)}const U=document.activeElement!==h&&document.activeElement!==document.body;!r&&!U&&Ee(),k=!0,_.props.page&&(M=_.props.page),P=!1,c==="popstate"&&Ae(j),w.after_navigate.forEach(O=>O(L)),H.navigating.set(null),T=!1}async function Te(e,n,r,a){return e.origin===location.origin&&e.pathname===location.pathname&&!C?await ie({status:a,error:r,url:e,route:n}):await B(e)}function B(e){return location.href=e.href,new Promise(()=>{})}function Ye(){let e;f.addEventListener("mousemove",c=>{const g=c.target;clearTimeout(e),e=setTimeout(()=>{a(g,2)},20)});function n(c){a(c.composedPath()[0],1)}f.addEventListener("mousedown",n),f.addEventListener("touchstart",n,{passive:!0});const r=new IntersectionObserver(c=>{for(const g of c)g.isIntersecting&&(oe(se(new URL(g.target.href))),r.unobserve(g.target))},{threshold:0});function a(c,g){const m=qe(c,f);if(!m)return;const{url:v,external:y,download:R}=we(m,J);if(y||R)return;const L=le(m);if(!L.reload)if(g<=L.preload_data){const I=W(v,!1);I&&Oe(I)}else g<=L.preload_code&&oe(se(v))}function s(){r.disconnect();for(const c of f.querySelectorAll("a")){const{url:g,external:m,download:v}=we(c,J);if(m||v)continue;const y=le(c);y.reload||(y.preload_code===Fe.viewport&&r.observe(c),y.preload_code===Fe.eager&&oe(se(g)))}}w.after_navigate.push(s),s()}function X(e,n){return e instanceof ee?e.body:t.hooks.handleError({error:e,event:n})??{message:n.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{Ce(()=>(w.after_navigate.push(e),()=>{const n=w.after_navigate.indexOf(e);w.after_navigate.splice(n,1)}))},before_navigate:e=>{Ce(()=>(w.before_navigate.push(e),()=>{const n=w.before_navigate.indexOf(e);w.before_navigate.splice(n,1)}))},disable_scroll_handling:()=>{(T||!N)&&(k=!1)},goto:(e,n={})=>re(e,n,[]),invalidate:e=>{if(typeof e=="function")S.push(e);else{const{href:n}=new URL(e,location.href);S.push(r=>r.href===n)}return ke()},invalidate_all:()=>(V=!0,ke()),preload_data:async e=>{const n=new URL(e,De(document)),r=W(n,!1);if(!r)throw new Error(`Attempted to preload a URL that does not belong to this app: ${n}`);await Oe(r)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const n=new URL(location.href),{branch:r,route:a}=p;if(!a)return;const s=await Ue(p.branch.length,r,a.errors);if(s){const c=await Y({url:n,params:p.params,branch:r.slice(0,s.idx).concat(s.node),status:e.status??500,error:e.error,route:a});p=c.state,F.$set(c.props),ye().then(Ee)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},[]):(F.$set({form:null,page:{...M,form:e.data,status:e.status}}),await ye(),F.$set({form:e.data}),e.type==="success"&&Ee())},_start_router:()=>{var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{var a;let r=!1;if(Le(),!P){const s={from:{params:p.params,route:{id:((a=p.route)==null?void 0:a.id)??null},url:p.url},to:null,willUnload:!0,type:"leave",cancel:()=>r=!0};w.before_navigate.forEach(c=>c(s))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Le()}),(e=navigator.connection)!=null&&e.saveData||Ye(),f.addEventListener("click",n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=qe(n.composedPath()[0],f);if(!r)return;const{url:a,external:s,target:c,download:g}=we(r,J);if(!a)return;if(c==="_parent"||c==="_top"){if(window.parent!==window)return}else if(c&&c!=="_self")return;const m=le(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||g)return;if(s||m.reload){Ne({url:a,type:"link"})?P=!0:n.preventDefault();return}const[y,R]=a.href.split("#");if(R!==void 0&&y===location.href.split("#")[0]){if(z=!0,ve(j),p.url=a,H.page.set({...M,url:a}),H.page.notify(),!m.replace_state)return;z=!1,n.preventDefault()}ce({url:a,scroll:m.noscroll?Q():null,keepfocus:m.keep_focus??!1,redirect_chain:[],details:{state:{},replaceState:m.replace_state??a.href===location.href},accepted:()=>n.preventDefault(),blocked:()=>n.preventDefault(),type:"link"})}),f.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const c=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(_e(c,J))return;const g=n.target,{keep_focus:m,noscroll:v,reload:y,replace_state:R}=le(g);if(y)return;n.preventDefault(),n.stopPropagation();const L=new FormData(g),I=a==null?void 0:a.getAttribute("name");I&&L.append(I,(a==null?void 0:a.getAttribute("value"))??""),c.search=new URLSearchParams(L).toString(),ce({url:c,scroll:v?Q():null,keepfocus:m??!1,redirect_chain:[],details:{state:{},replaceState:R??c.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[q]){if(n.state[q]===j)return;const a=K[n.state[q]];if(p.url.href.split("#")[0]===location.href.split("#")[0]){K[j]=Q(),j=n.state[q],scrollTo(a.x,a.y);return}const s=n.state[q]-j;await ce({url:new URL(location.href),scroll:a,keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{j=n.state[q]},blocked:()=>{history.go(-s)},type:"popstate",delta:s})}}),addEventListener("hashchange",()=>{z&&(z=!1,history.replaceState({...history.state,[q]:++j},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&H.navigating.set(null)})},_hydrate:async({status:e=200,error:n,node_ids:r,params:a,route:s,data:c,form:g})=>{C=!0;const m=new URL(location.href);({params:a={},route:s={id:null}}=W(m,!1)||{});let v;try{const y=r.map(async(I,_)=>{const h=c[_];return h!=null&&h.uses&&(h.uses=Be(h.uses)),de({loader:t.nodes[I],url:m,params:a,route:s,parent:async()=>{const U={};for(let x=0;x<_;x+=1)Object.assign(U,(await y[x]).data);return U},server_data_node:pe(h)})}),R=await Promise.all(y),L=u.find(({id:I})=>I===s.id);if(L){const I=L.layouts;for(let _=0;_d?"1":"0").join(""));const i=await fe(u.href);if(!i.ok)throw new ee(i.status,await i.json());return new Promise(async d=>{var p;const f=new Map,S=i.body.getReader(),l=new TextDecoder;function b(C){return vt(C,{Promise:N=>new Promise((k,T)=>{f.set(N,{fulfil:k,reject:T})})})}let w="";for(;;){const{done:C,value:N}=await S.read();if(C&&!w)break;for(w+=!N&&w?` +import{o as Ce,t as ye}from"../chunks/index.ccd4248b.js";import{S as Ge,a as Je,I as q,g as De,f as qe,b as we,c as le,s as H,i as _e,d as Q,e as J,P as Fe,h as We}from"../chunks/singletons.385caa4e.js";function Xe(t,o){return t==="/"||o==="ignore"?t:o==="never"?t.endsWith("/")?t.slice(0,-1):t:o==="always"&&!t.endsWith("/")?t+"/":t}function Ze(t){return t.split("%25").map(decodeURI).join("%25")}function Qe(t){for(const o in t)t[o]=decodeURIComponent(t[o]);return t}const et=["href","pathname","search","searchParams","toString","toJSON"];function tt(t,o){const u=new URL(t);for(const i of et)Object.defineProperty(u,i,{get(){return o(),t[i]},enumerable:!0,configurable:!0});return nt(u),u}function nt(t){Object.defineProperty(t,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const at="/__data.json";function rt(t){return t.replace(/\/$/,"")+at}function Ke(t){try{return JSON.parse(sessionStorage[t])}catch{}}function Me(t,o){const u=JSON.stringify(o);try{sessionStorage[t]=u}catch{}}function ot(...t){let o=5381;for(const u of t)if(typeof u=="string"){let i=u.length;for(;i;)o=o*33^u.charCodeAt(--i)}else if(ArrayBuffer.isView(u)){const i=new Uint8Array(u.buffer,u.byteOffset,u.byteLength);let d=i.length;for(;d;)o=o*33^i[--d]}else throw new TypeError("value must be a string or TypedArray");return(o>>>0).toString(36)}const fe=window.fetch;window.fetch=(t,o)=>((t instanceof Request?t.method:(o==null?void 0:o.method)||"GET")!=="GET"&&te.delete(Se(t)),fe(t,o));const te=new Map;function it(t,o){const u=Se(t,o),i=document.querySelector(u);if(i!=null&&i.textContent){const{body:d,...f}=JSON.parse(i.textContent),S=i.getAttribute("data-ttl");return S&&te.set(u,{body:d,init:f,ttl:1e3*Number(S)}),Promise.resolve(new Response(d,f))}return fe(t,o)}function st(t,o,u){if(te.size>0){const i=Se(t,u),d=te.get(i);if(d){if(performance.now(){const d=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(i);if(d)return o.push({name:d[1],matcher:d[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const f=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(i);if(f)return o.push({name:f[1],matcher:f[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!i)return;const S=i.split(/\[(.+?)\](?!\])/);return"/"+S.map((b,w)=>{if(w%2){if(b.startsWith("x+"))return be(String.fromCharCode(parseInt(b.slice(2),16)));if(b.startsWith("u+"))return be(String.fromCharCode(...b.slice(2).split("-").map(P=>parseInt(P,16))));const p=ct.exec(b);if(!p)throw new Error(`Invalid param: ${b}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,C,N,k,T]=p;return o.push({name:k,matcher:T,optional:!!C,rest:!!N,chained:N?w===1&&S[0]==="":!1}),N?"(.*?)":C?"([^/]*)?":"([^/]+?)"}return be(b)}).join("")}).join("")}/?$`),params:o}}function ft(t){return!/^\([^)]+\)$/.test(t)}function ut(t){return t.slice(1).split("/").filter(ft)}function dt(t,o,u){const i={},d=t.slice(1);let f=0;for(let S=0;Sw).join("/"),f=0;continue}if(b===void 0){l.rest&&(i[l.name]="");continue}if(!l.matcher||u[l.matcher](b)){i[l.name]=b;const w=o[S+1],p=d[S+1];w&&!w.rest&&w.optional&&p&&(f=0);continue}if(l.optional&&l.chained){f++;continue}return}if(!f)return i}function be(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function pt({nodes:t,server_loads:o,dictionary:u,matchers:i}){const d=new Set(o);return Object.entries(u).map(([l,[b,w,p]])=>{const{pattern:C,params:N}=lt(l),k={id:l,exec:T=>{const P=C.exec(T);if(P)return dt(P,N,i)},errors:[1,...p||[]].map(T=>t[T]),layouts:[0,...w||[]].map(S),leaf:f(b)};return k.errors.length=k.layouts.length=Math.max(k.errors.length,k.layouts.length),k});function f(l){const b=l<0;return b&&(l=~l),[b,t[l]]}function S(l){return l===void 0?l:[d.has(l),t[l]]}}let ee=class{constructor(o,u){this.status=o,typeof u=="string"?this.body={message:u}:u?this.body=u:this.body={message:`Error: ${o}`}}toString(){return JSON.stringify(this.body)}},He=class{constructor(o,u){this.status=o,this.location=u}};async function ht(t){var o;for(const u in t)if(typeof((o=t[u])==null?void 0:o.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(t).map(async([i,d])=>[i,await d])));return t}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");const gt=-1,mt=-2,yt=-3,wt=-4,_t=-5,bt=-6;function vt(t,o){if(typeof t=="number")return d(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const u=t,i=Array(u.length);function d(f,S=!1){if(f===gt)return;if(f===yt)return NaN;if(f===wt)return 1/0;if(f===_t)return-1/0;if(f===bt)return-0;if(S)throw new Error("Invalid input");if(f in i)return i[f];const l=u[f];if(!l||typeof l!="object")i[f]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const b=l[0],w=o==null?void 0:o[b];if(w)return i[f]=w(d(l[1]));switch(b){case"Date":i[f]=new Date(l[1]);break;case"Set":const p=new Set;i[f]=p;for(let k=1;ko!=null)}const kt="x-sveltekit-invalidated",K=Ke(Ge)??{},Z=Ke(Je)??{};function ve(t){K[t]=Q()}function Rt(t,o){var xe;const u=pt(t),i=t.nodes[0],d=t.nodes[1];i(),d();const f=document.documentElement,S=[],l=[];let b=null;const w={before_navigate:[],after_navigate:[]};let p={branch:[],error:null,url:null},C=!1,N=!1,k=!0,T=!1,P=!1,z=!1,V=!1,F,j=(xe=history.state)==null?void 0:xe[q];j||(j=Date.now(),history.replaceState({...history.state,[q]:j},"",location.href));const ue=K[j];ue&&(history.scrollRestoration="manual",scrollTo(ue.x,ue.y));let M,ne,ae;async function ke(){ae=ae||Promise.resolve(),await ae,ae=null;const e=new URL(location.href),n=W(e,!0);b=null;const r=ne={},a=n&&await he(n);if(r===ne&&a){if(a.type==="redirect")return re(new URL(a.location,e).href,{},[e.pathname],r);a.props.page!==void 0&&(M=a.props.page),F.$set(a.props)}}function Re(e){l.some(n=>n==null?void 0:n.snapshot)&&(Z[e]=l.map(n=>{var r;return(r=n==null?void 0:n.snapshot)==null?void 0:r.capture()}))}function Ae(e){var n;(n=Z[e])==null||n.forEach((r,a)=>{var s,c;(c=(s=l[a])==null?void 0:s.snapshot)==null||c.restore(r)})}function Le(){ve(j),Me(Ge,K),Re(j),Me(Je,Z)}async function re(e,{noScroll:n=!1,replaceState:r=!1,keepFocus:a=!1,state:s={},invalidateAll:c=!1},g,m){return typeof e=="string"&&(e=new URL(e,De(document))),ce({url:e,scroll:n?Q():null,keepfocus:a,redirect_chain:g,details:{state:s,replaceState:r},nav_token:m,accepted:()=>{c&&(V=!0)},blocked:()=>{},type:"goto"})}async function Oe(e){return b={id:e.id,promise:he(e).then(n=>(n.type==="loaded"&&n.state.error&&(b=null),n))},b.promise}async function oe(...e){const r=u.filter(a=>e.some(s=>a.exec(s))).map(a=>Promise.all([...a.layouts,a.leaf].map(s=>s==null?void 0:s[1]())));await Promise.all(r)}function Ie(e){var a;p=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),M=e.props.page,F=new t.root({target:o,props:{...e.props,stores:H,components:l},hydrate:!0}),Ae(j);const r={from:null,to:{params:p.params,route:{id:((a=p.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter"};w.after_navigate.forEach(s=>s(r)),N=!0}async function Y({url:e,params:n,branch:r,status:a,error:s,route:c,form:g}){let m="never";for(const _ of r)(_==null?void 0:_.slash)!==void 0&&(m=_.slash);e.pathname=Xe(e.pathname,m),e.search=e.search;const v={type:"loaded",state:{url:e,params:n,branch:r,error:s,route:c},props:{constructors:St(r).map(_=>_.node.component)}};g!==void 0&&(v.props.form=g);let y={},R=!M,L=0;for(let _=0;_(m.params.add(U),h[U])}),data:(c==null?void 0:c.data)??null,url:tt(r,()=>{m.url=!0}),async fetch(h,U){let x;h instanceof Request?(x=h.url,U={body:h.method==="GET"||h.method==="HEAD"?void 0:await h.blob(),cache:h.cache,credentials:h.credentials,headers:h.headers,integrity:h.integrity,keepalive:h.keepalive,method:h.method,mode:h.mode,redirect:h.redirect,referrer:h.referrer,referrerPolicy:h.referrerPolicy,signal:h.signal,...U}):x=h;const D=new URL(x,r);return I(D.href),D.origin===r.origin&&(x=D.href.slice(r.origin.length)),N?st(x,D.href,U):it(x,U)},setHeaders:()=>{},depends:I,parent(){return m.parent=!0,n()}};g=await v.universal.load.call(null,_)??null,g=g?await ht(g):null}return{node:v,loader:e,server:c,universal:(R=v.universal)!=null&&R.load?{type:"data",data:g,uses:m}:null,data:g??(c==null?void 0:c.data)??null,slash:((L=v.universal)==null?void 0:L.trailingSlash)??(c==null?void 0:c.slash)}}function Pe(e,n,r,a,s){if(V)return!0;if(!a)return!1;if(a.parent&&e||a.route&&n||a.url&&r)return!0;for(const c of a.params)if(s[c]!==p.params[c])return!0;for(const c of a.dependencies)if(S.some(g=>g(new URL(c))))return!0;return!1}function pe(e,n){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?n??null:null}async function he({id:e,invalidating:n,url:r,params:a,route:s}){if((b==null?void 0:b.id)===e)return b.promise;const{errors:c,layouts:g,leaf:m}=s,v=[...g,m];c.forEach(E=>E==null?void 0:E().catch(()=>{})),v.forEach(E=>E==null?void 0:E[1]().catch(()=>{}));let y=null;const R=p.url?e!==p.url.pathname+p.url.search:!1,L=p.route?s.id!==p.route.id:!1;let I=!1;const _=v.map((E,O)=>{var G;const A=p.branch[O],$=!!(E!=null&&E[0])&&((A==null?void 0:A.loader)!==E[1]||Pe(I,L,R,(G=A.server)==null?void 0:G.uses,a));return $&&(I=!0),$});if(_.some(Boolean)){try{y=await Ve(r,_)}catch(E){return ie({status:E instanceof ee?E.status:500,error:await X(E,{url:r,params:a,route:{id:s.id}}),url:r,route:s})}if(y.type==="redirect")return y}const h=y==null?void 0:y.nodes;let U=!1;const x=v.map(async(E,O)=>{var ge;if(!E)return;const A=p.branch[O],$=h==null?void 0:h[O];if((!$||$.type==="skip")&&E[1]===(A==null?void 0:A.loader)&&!Pe(U,L,R,(ge=A.universal)==null?void 0:ge.uses,a))return A;if(U=!0,($==null?void 0:$.type)==="error")throw $;return de({loader:E[1],url:r,params:a,route:s,parent:async()=>{var $e;const je={};for(let me=0;me{});const D=[];for(let E=0;EPromise.resolve({}),server_data_node:pe(c)}),v={node:await d(),loader:d,universal:null,server:null,data:null};return await Y({url:r,params:s,branch:[m,v],status:e,error:n,route:null})}function W(e,n){if(_e(e,J))return;const r=se(e);for(const a of u){const s=a.exec(r);if(s)return{id:e.pathname+e.search,invalidating:n,route:a,params:Qe(s),url:e}}}function se(e){return Ze(e.pathname.slice(J.length)||"/")}function Ne({url:e,type:n,intent:r,delta:a}){var m,v;let s=!1;const c={from:{params:p.params,route:{id:((m=p.route)==null?void 0:m.id)??null},url:p.url},to:{params:(r==null?void 0:r.params)??null,route:{id:((v=r==null?void 0:r.route)==null?void 0:v.id)??null},url:e},willUnload:!r,type:n};a!==void 0&&(c.delta=a);const g={...c,cancel:()=>{s=!0}};return P||w.before_navigate.forEach(y=>y(g)),s?null:c}async function ce({url:e,scroll:n,keepfocus:r,redirect_chain:a,details:s,type:c,delta:g,nav_token:m={},accepted:v,blocked:y}){var x,D,E;const R=W(e,!1),L=Ne({url:e,type:c,delta:g,intent:R});if(!L){y();return}const I=j;v(),P=!0,N&&H.navigating.set(L),ne=m;let _=R&&await he(R);if(!_){if(_e(e,J))return await B(e);_=await Te(e,{id:null},await X(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(R==null?void 0:R.url)||e,ne!==m)return!1;if(_.type==="redirect")if(a.length>10||a.includes(e.pathname))_=await ie({status:500,error:await X(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return re(new URL(_.location,e).href,{},[...a,e.pathname],m),!1;else((x=_.props.page)==null?void 0:x.status)>=400&&await H.updated.check()&&await B(e);if(S.length=0,V=!1,T=!0,ve(I),Re(I),(D=_.props.page)!=null&&D.url&&_.props.page.url.pathname!==e.pathname&&(e.pathname=(E=_.props.page)==null?void 0:E.url.pathname),s){const O=s.replaceState?0:1;if(s.state[q]=j+=O,history[s.replaceState?"replaceState":"pushState"](s.state,"",e),!s.replaceState){let A=j+1;for(;Z[A]||K[A];)delete Z[A],delete K[A],A+=1}}b=null,N?(p=_.state,_.props.page&&(_.props.page.url=e),F.$set(_.props)):Ie(_);const{activeElement:h}=document;if(await ye(),k){const O=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));n?scrollTo(n.x,n.y):O?O.scrollIntoView():scrollTo(0,0)}const U=document.activeElement!==h&&document.activeElement!==document.body;!r&&!U&&Ee(),k=!0,_.props.page&&(M=_.props.page),P=!1,c==="popstate"&&Ae(j),w.after_navigate.forEach(O=>O(L)),H.navigating.set(null),T=!1}async function Te(e,n,r,a){return e.origin===location.origin&&e.pathname===location.pathname&&!C?await ie({status:a,error:r,url:e,route:n}):await B(e)}function B(e){return location.href=e.href,new Promise(()=>{})}function Ye(){let e;f.addEventListener("mousemove",c=>{const g=c.target;clearTimeout(e),e=setTimeout(()=>{a(g,2)},20)});function n(c){a(c.composedPath()[0],1)}f.addEventListener("mousedown",n),f.addEventListener("touchstart",n,{passive:!0});const r=new IntersectionObserver(c=>{for(const g of c)g.isIntersecting&&(oe(se(new URL(g.target.href))),r.unobserve(g.target))},{threshold:0});function a(c,g){const m=qe(c,f);if(!m)return;const{url:v,external:y,download:R}=we(m,J);if(y||R)return;const L=le(m);if(!L.reload)if(g<=L.preload_data){const I=W(v,!1);I&&Oe(I)}else g<=L.preload_code&&oe(se(v))}function s(){r.disconnect();for(const c of f.querySelectorAll("a")){const{url:g,external:m,download:v}=we(c,J);if(m||v)continue;const y=le(c);y.reload||(y.preload_code===Fe.viewport&&r.observe(c),y.preload_code===Fe.eager&&oe(se(g)))}}w.after_navigate.push(s),s()}function X(e,n){return e instanceof ee?e.body:t.hooks.handleError({error:e,event:n})??{message:n.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:e=>{Ce(()=>(w.after_navigate.push(e),()=>{const n=w.after_navigate.indexOf(e);w.after_navigate.splice(n,1)}))},before_navigate:e=>{Ce(()=>(w.before_navigate.push(e),()=>{const n=w.before_navigate.indexOf(e);w.before_navigate.splice(n,1)}))},disable_scroll_handling:()=>{(T||!N)&&(k=!1)},goto:(e,n={})=>re(e,n,[]),invalidate:e=>{if(typeof e=="function")S.push(e);else{const{href:n}=new URL(e,location.href);S.push(r=>r.href===n)}return ke()},invalidate_all:()=>(V=!0,ke()),preload_data:async e=>{const n=new URL(e,De(document)),r=W(n,!1);if(!r)throw new Error(`Attempted to preload a URL that does not belong to this app: ${n}`);await Oe(r)},preload_code:oe,apply_action:async e=>{if(e.type==="error"){const n=new URL(location.href),{branch:r,route:a}=p;if(!a)return;const s=await Ue(p.branch.length,r,a.errors);if(s){const c=await Y({url:n,params:p.params,branch:r.slice(0,s.idx).concat(s.node),status:e.status??500,error:e.error,route:a});p=c.state,F.$set(c.props),ye().then(Ee)}}else e.type==="redirect"?re(e.location,{invalidateAll:!0},[]):(F.$set({form:null,page:{...M,form:e.data,status:e.status}}),await ye(),F.$set({form:e.data}),e.type==="success"&&Ee())},_start_router:()=>{var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{var a;let r=!1;if(Le(),!P){const s={from:{params:p.params,route:{id:((a=p.route)==null?void 0:a.id)??null},url:p.url},to:null,willUnload:!0,type:"leave",cancel:()=>r=!0};w.before_navigate.forEach(c=>c(s))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Le()}),(e=navigator.connection)!=null&&e.saveData||Ye(),f.addEventListener("click",n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=qe(n.composedPath()[0],f);if(!r)return;const{url:a,external:s,target:c,download:g}=we(r,J);if(!a)return;if(c==="_parent"||c==="_top"){if(window.parent!==window)return}else if(c&&c!=="_self")return;const m=le(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||g)return;if(s||m.reload){Ne({url:a,type:"link"})?P=!0:n.preventDefault();return}const[y,R]=a.href.split("#");if(R!==void 0&&y===location.href.split("#")[0]){if(z=!0,ve(j),p.url=a,H.page.set({...M,url:a}),H.page.notify(),!m.replace_state)return;z=!1,n.preventDefault()}ce({url:a,scroll:m.noscroll?Q():null,keepfocus:m.keep_focus??!1,redirect_chain:[],details:{state:{},replaceState:m.replace_state??a.href===location.href},accepted:()=>n.preventDefault(),blocked:()=>n.preventDefault(),type:"link"})}),f.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const c=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(_e(c,J))return;const g=n.target,{keep_focus:m,noscroll:v,reload:y,replace_state:R}=le(g);if(y)return;n.preventDefault(),n.stopPropagation();const L=new FormData(g),I=a==null?void 0:a.getAttribute("name");I&&L.append(I,(a==null?void 0:a.getAttribute("value"))??""),c.search=new URLSearchParams(L).toString(),ce({url:c,scroll:v?Q():null,keepfocus:m??!1,redirect_chain:[],details:{state:{},replaceState:R??c.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[q]){if(n.state[q]===j)return;const a=K[n.state[q]];if(p.url.href.split("#")[0]===location.href.split("#")[0]){K[j]=Q(),j=n.state[q],scrollTo(a.x,a.y);return}const s=n.state[q]-j;await ce({url:new URL(location.href),scroll:a,keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{j=n.state[q]},blocked:()=>{history.go(-s)},type:"popstate",delta:s})}}),addEventListener("hashchange",()=>{z&&(z=!1,history.replaceState({...history.state,[q]:++j},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&H.navigating.set(null)})},_hydrate:async({status:e=200,error:n,node_ids:r,params:a,route:s,data:c,form:g})=>{C=!0;const m=new URL(location.href);({params:a={},route:s={id:null}}=W(m,!1)||{});let v;try{const y=r.map(async(I,_)=>{const h=c[_];return h!=null&&h.uses&&(h.uses=Be(h.uses)),de({loader:t.nodes[I],url:m,params:a,route:s,parent:async()=>{const U={};for(let x=0;x<_;x+=1)Object.assign(U,(await y[x]).data);return U},server_data_node:pe(h)})}),R=await Promise.all(y),L=u.find(({id:I})=>I===s.id);if(L){const I=L.layouts;for(let _=0;_d?"1":"0").join(""));const i=await fe(u.href);if(!i.ok)throw new ee(i.status,await i.json());return new Promise(async d=>{var p;const f=new Map,S=i.body.getReader(),l=new TextDecoder;function b(C){return vt(C,{Promise:N=>new Promise((k,T)=>{f.set(N,{fulfil:k,reject:T})})})}let w="";for(;;){const{done:C,value:N}=await S.read();if(C&&!w)break;for(w+=!N&&w?` `:l.decode(N);;){const k=w.indexOf(` `);if(k===-1)break;const T=JSON.parse(w.slice(0,k));if(w=w.slice(k+1),T.type==="redirect")return d(T);if(T.type==="data")(p=T.nodes)==null||p.forEach(P=>{(P==null?void 0:P.type)==="data"&&(P.uses=Be(P.uses),P.data=b(P.data))}),d(T);else if(T.type==="chunk"){const{id:P,data:z,error:V}=T,F=f.get(P);f.delete(P),V?F.reject(b(V)):F.fulfil(b(z))}}}})}function Be(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 o=document.body,u=o.getAttribute("tabindex");o.tabIndex=-1,o.focus({preventScroll:!0}),u!==null?o.setAttribute("tabindex",u):o.removeAttribute("tabindex");const i=getSelection();if(i&&i.type!=="None"){const d=[];for(let f=0;f{if(i.rangeCount===d.length){for(let f=0;f{const s=C;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},I={subscribe(s){return G().page.subscribe(s)}};function P(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=_("h1"),o=f(r),n=H(),i=_("p"),l=f(c)},l(e){t=d(e,"H1",{});var a=g(t);o=h(a,r),a.forEach(u),n=k(e),i=d(e,"P",{});var p=g(i);l=h(p,c),p.forEach(u)},m(e,a){m(e,t,a),v(t,o),m(e,n,a),m(e,i,a),v(i,l)},p(e,[a]){var p;a&1&&r!==(r=e[0].status+"")&&$(o,r),a&1&&c!==(c=((p=e[0].error)==null?void 0:p.message)+"")&&$(l,c)},i:E,o:E,d(e){e&&u(t),e&&u(n),e&&u(i)}}}function j(s,t,r){let o;return y(s,I,n=>r(0,o=n)),[o]}let A=class extends S{constructor(t){super(),q(this,t,j,P,x,{})}};export{A as component}; +import{S,i as q,s as x,k as _,q as f,a as H,l as d,m as g,r as h,h as u,c as k,b as m,G as v,u as $,H as E,I as y}from"../chunks/index.ccd4248b.js";import{s as C}from"../chunks/singletons.385caa4e.js";const G=()=>{const s=C;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},I={subscribe(s){return G().page.subscribe(s)}};function P(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=_("h1"),o=f(r),n=H(),i=_("p"),l=f(c)},l(e){t=d(e,"H1",{});var a=g(t);o=h(a,r),a.forEach(u),n=k(e),i=d(e,"P",{});var p=g(i);l=h(p,c),p.forEach(u)},m(e,a){m(e,t,a),v(t,o),m(e,n,a),m(e,i,a),v(i,l)},p(e,[a]){var p;a&1&&r!==(r=e[0].status+"")&&$(o,r),a&1&&c!==(c=((p=e[0].error)==null?void 0:p.message)+"")&&$(l,c)},i:E,o:E,d(e){e&&u(t),e&&u(n),e&&u(i)}}}function j(s,t,r){let o;return y(s,I,n=>r(0,o=n)),[o]}let A=class extends S{constructor(t){super(),q(this,t,j,P,x,{})}};export{A as component}; diff --git a/build/client/_app/version.json b/build/client/_app/version.json index 350ebc2..52874dc 100644 --- a/build/client/_app/version.json +++ b/build/client/_app/version.json @@ -1 +1 @@ -{"version":"1683520449414"} \ No newline at end of file +{"version":"1683520495603"} \ No newline at end of file diff --git a/build/server/chunks/1-71074d36.js b/build/server/chunks/1-4b7cce61.js similarity index 68% rename from build/server/chunks/1-71074d36.js rename to build/server/chunks/1-4b7cce61.js index bcbc8dc..2f2a16d 100644 --- a/build/server/chunks/1-71074d36.js +++ b/build/server/chunks/1-4b7cce61.js @@ -1,8 +1,8 @@ const index = 1; const component = async () => (await import('./error.svelte-c261d815.js')).default; -const imports = ["_app/immutable/nodes/1.0ff28dfd.js","_app/immutable/chunks/index.ccd4248b.js","_app/immutable/chunks/singletons.485662cb.js"]; +const imports = ["_app/immutable/nodes/1.506fdcf1.js","_app/immutable/chunks/index.ccd4248b.js","_app/immutable/chunks/singletons.385caa4e.js"]; const stylesheets = []; const fonts = []; export { component, fonts, imports, index, stylesheets }; -//# sourceMappingURL=1-71074d36.js.map +//# sourceMappingURL=1-4b7cce61.js.map diff --git a/build/server/chunks/1-71074d36.js.map b/build/server/chunks/1-4b7cce61.js.map similarity index 72% rename from build/server/chunks/1-71074d36.js.map rename to build/server/chunks/1-4b7cce61.js.map index ce6c1a7..16129a8 100644 --- a/build/server/chunks/1-71074d36.js.map +++ b/build/server/chunks/1-4b7cce61.js.map @@ -1 +1 @@ -{"version":3,"file":"1-71074d36.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nexport const component = async () => (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.0ff28dfd.js\",\"_app/immutable/chunks/index.ccd4248b.js\",\"_app/immutable/chunks/singletons.485662cb.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACX,MAAC,SAAS,GAAG,YAAY,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE,QAAQ;AACxF,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,yCAAyC,CAAC,8CAA8C,EAAE;AAC3I,MAAC,WAAW,GAAG,GAAG;AAClB,MAAC,KAAK,GAAG;;;;"} \ No newline at end of file +{"version":3,"file":"1-4b7cce61.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nexport const component = async () => (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.506fdcf1.js\",\"_app/immutable/chunks/index.ccd4248b.js\",\"_app/immutable/chunks/singletons.385caa4e.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG,EAAE;AACX,MAAC,SAAS,GAAG,YAAY,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE,QAAQ;AACxF,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,yCAAyC,CAAC,8CAA8C,EAAE;AAC3I,MAAC,WAAW,GAAG,GAAG;AAClB,MAAC,KAAK,GAAG;;;;"} \ No newline at end of file diff --git a/build/server/index.js b/build/server/index.js index 832759a..6529fba 100644 --- a/build/server/index.js +++ b/build/server/index.js @@ -162,7 +162,7 @@ const options = {
` + status + '\n
\n

' + message + "

\n
\n
\n \n\n" }, - version_hash: "rekncm" + version_hash: "1iqjkk3" }; function get_hooks() { return {}; diff --git a/build/server/index.js.map b/build/server/index.js.map index 433aeca..9115a29 100644 --- a/build/server/index.js.map +++ b/build/server/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sources":["../../.svelte-kit/adapter-node/chunks/internal.js","../../.svelte-kit/adapter-node/chunks/index.js","../../.svelte-kit/adapter-node/index.js"],"sourcesContent":["import { c as create_ssr_component, s as setContext, v as validate_component, m as missing_component } from \"./index2.js\";\nlet base = \"\";\nlet assets = base;\nconst initial = { base, assets };\nfunction reset() {\n base = initial.base;\n assets = initial.assets;\n}\nfunction set_assets(path) {\n assets = initial.assets = path;\n}\nlet public_env = {};\nfunction set_private_env(environment) {\n}\nfunction set_public_env(environment) {\n public_env = environment;\n}\nfunction afterUpdate() {\n}\nfunction set_building() {\n}\nconst Root = create_ssr_component(($$result, $$props, $$bindings, slots) => {\n let { stores } = $$props;\n let { page } = $$props;\n let { constructors } = $$props;\n let { components = [] } = $$props;\n let { form } = $$props;\n let { data_0 = null } = $$props;\n let { data_1 = null } = $$props;\n {\n setContext(\"__svelte__\", stores);\n }\n afterUpdate(stores.page.notify);\n if ($$props.stores === void 0 && $$bindings.stores && stores !== void 0)\n $$bindings.stores(stores);\n if ($$props.page === void 0 && $$bindings.page && page !== void 0)\n $$bindings.page(page);\n if ($$props.constructors === void 0 && $$bindings.constructors && constructors !== void 0)\n $$bindings.constructors(constructors);\n if ($$props.components === void 0 && $$bindings.components && components !== void 0)\n $$bindings.components(components);\n if ($$props.form === void 0 && $$bindings.form && form !== void 0)\n $$bindings.form(form);\n if ($$props.data_0 === void 0 && $$bindings.data_0 && data_0 !== void 0)\n $$bindings.data_0(data_0);\n if ($$props.data_1 === void 0 && $$bindings.data_1 && data_1 !== void 0)\n $$bindings.data_1(data_1);\n let $$settled;\n let $$rendered;\n do {\n $$settled = true;\n {\n stores.page.set(page);\n }\n $$rendered = `\n\n\n${constructors[1] ? `${validate_component(constructors[0] || missing_component, \"svelte:component\").$$render(\n $$result,\n { data: data_0, this: components[0] },\n {\n this: ($$value) => {\n components[0] = $$value;\n $$settled = false;\n }\n },\n {\n default: () => {\n return `${validate_component(constructors[1] || missing_component, \"svelte:component\").$$render(\n $$result,\n { data: data_1, form, this: components[1] },\n {\n this: ($$value) => {\n components[1] = $$value;\n $$settled = false;\n }\n },\n {}\n )}`;\n }\n }\n )}` : `${validate_component(constructors[0] || missing_component, \"svelte:component\").$$render(\n $$result,\n { data: data_0, form, this: components[0] },\n {\n this: ($$value) => {\n components[0] = $$value;\n $$settled = false;\n }\n },\n {}\n )}`}\n\n${``}`;\n } while (!$$settled);\n return $$rendered;\n});\nconst options = {\n app_template_contains_nonce: false,\n csp: { \"mode\": \"auto\", \"directives\": { \"upgrade-insecure-requests\": false, \"block-all-mixed-content\": false }, \"reportOnly\": { \"upgrade-insecure-requests\": false, \"block-all-mixed-content\": false } },\n csrf_check_origin: true,\n embedded: false,\n env_public_prefix: \"PUBLIC_\",\n hooks: null,\n // added lazily, via `get_hooks`\n preload_strategy: \"modulepreload\",\n root: Root,\n service_worker: false,\n templates: {\n app: ({ head, body, assets: assets2, nonce, env }) => '\\n\\n\t\\n\t\t\\n\t\t\\n\t\t\\n\t\t' + head + '\\n\t\\n\t\\n\t\t
' + body + \"
\\n\t\\n\\n\",\n error: ({ status, message }) => '\\n\\n\t\\n\t\t\\n\t\t' + message + `\n\n\t\t\n\t\n\t\n\t\t
\n\t\t\t` + status + '\\n\t\t\t
\\n\t\t\t\t

' + message + \"

\\n\t\t\t
\\n\t\t
\\n\t\\n\\n\"\n },\n version_hash: \"rekncm\"\n};\nfunction get_hooks() {\n return {};\n}\nexport {\n assets as a,\n base as b,\n set_assets as c,\n set_building as d,\n set_private_env as e,\n get_hooks as g,\n options as o,\n public_env as p,\n reset as r,\n set_public_env as s\n};\n","import { n as noop, b as safe_not_equal } from \"./index2.js\";\nconst subscriber_queue = [];\nfunction readable(value, start) {\n return {\n subscribe: writable(value, start).subscribe\n };\n}\nfunction writable(value, start = noop) {\n let stop;\n const subscribers = /* @__PURE__ */ new Set();\n function set(new_value) {\n if (safe_not_equal(value, new_value)) {\n value = new_value;\n if (stop) {\n const run_queue = !subscriber_queue.length;\n for (const subscriber of subscribers) {\n subscriber[1]();\n subscriber_queue.push(subscriber, value);\n }\n if (run_queue) {\n for (let i = 0; i < subscriber_queue.length; i += 2) {\n subscriber_queue[i][0](subscriber_queue[i + 1]);\n }\n subscriber_queue.length = 0;\n }\n }\n }\n }\n function update(fn) {\n set(fn(value));\n }\n function subscribe(run, invalidate = noop) {\n const subscriber = [run, invalidate];\n subscribers.add(subscriber);\n if (subscribers.size === 1) {\n stop = start(set) || noop;\n }\n run(value);\n return () => {\n subscribers.delete(subscriber);\n if (subscribers.size === 0 && stop) {\n stop();\n stop = null;\n }\n };\n }\n return { set, update, subscribe };\n}\nexport {\n readable as r,\n writable as w\n};\n","import { b as base, a as assets, r as reset, p as public_env, o as options, g as get_hooks, s as set_public_env } from \"./chunks/internal.js\";\nimport { r as readable, w as writable } from \"./chunks/index.js\";\nconst DEV = false;\nfunction negotiate(accept, types) {\n const parts = [];\n accept.split(\",\").forEach((str, i) => {\n const match = /([^/]+)\\/([^;]+)(?:;q=([0-9.]+))?/.exec(str);\n if (match) {\n const [, type, subtype, q = \"1\"] = match;\n parts.push({ type, subtype, q: +q, i });\n }\n });\n parts.sort((a, b) => {\n if (a.q !== b.q) {\n return b.q - a.q;\n }\n if (a.subtype === \"*\" !== (b.subtype === \"*\")) {\n return a.subtype === \"*\" ? 1 : -1;\n }\n if (a.type === \"*\" !== (b.type === \"*\")) {\n return a.type === \"*\" ? 1 : -1;\n }\n return a.i - b.i;\n });\n let accepted;\n let min_priority = Infinity;\n for (const mimetype of types) {\n const [type, subtype] = mimetype.split(\"/\");\n const priority = parts.findIndex(\n (part) => (part.type === type || part.type === \"*\") && (part.subtype === subtype || part.subtype === \"*\")\n );\n if (priority !== -1 && priority < min_priority) {\n accepted = mimetype;\n min_priority = priority;\n }\n }\n return accepted;\n}\nfunction is_content_type(request, ...types) {\n const type = request.headers.get(\"content-type\")?.split(\";\", 1)[0].trim() ?? \"\";\n return types.includes(type.toLowerCase());\n}\nfunction is_form_content_type(request) {\n return is_content_type(\n request,\n \"application/x-www-form-urlencoded\",\n \"multipart/form-data\",\n \"text/plain\"\n );\n}\nlet HttpError = class HttpError2 {\n /**\n * @param {number} status\n * @param {{message: string} extends App.Error ? (App.Error | string | undefined) : App.Error} body\n */\n constructor(status, body) {\n this.status = status;\n if (typeof body === \"string\") {\n this.body = { message: body };\n } else if (body) {\n this.body = body;\n } else {\n this.body = { message: `Error: ${status}` };\n }\n }\n toString() {\n return JSON.stringify(this.body);\n }\n};\nlet Redirect = class Redirect2 {\n /**\n * @param {300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308} status\n * @param {string} location\n */\n constructor(status, location) {\n this.status = status;\n this.location = location;\n }\n};\nlet ActionFailure = class ActionFailure2 {\n /**\n * @param {number} status\n * @param {T} [data]\n */\n constructor(status, data) {\n this.status = status;\n this.data = data;\n }\n};\nfunction error(status, message) {\n if (isNaN(status) || status < 400 || status > 599) {\n throw new Error(`HTTP error status codes must be between 400 and 599 — ${status} is invalid`);\n }\n return new HttpError(status, message);\n}\nfunction json(data, init2) {\n const body = JSON.stringify(data);\n const headers = new Headers(init2?.headers);\n if (!headers.has(\"content-length\")) {\n headers.set(\"content-length\", encoder$3.encode(body).byteLength.toString());\n }\n if (!headers.has(\"content-type\")) {\n headers.set(\"content-type\", \"application/json\");\n }\n return new Response(body, {\n ...init2,\n headers\n });\n}\nconst encoder$3 = new TextEncoder();\nfunction text(body, init2) {\n const headers = new Headers(init2?.headers);\n if (!headers.has(\"content-length\")) {\n headers.set(\"content-length\", encoder$3.encode(body).byteLength.toString());\n }\n return new Response(body, {\n ...init2,\n headers\n });\n}\nfunction coalesce_to_error(err) {\n return err instanceof Error || err && /** @type {any} */\n err.name && /** @type {any} */\n err.message ? (\n /** @type {Error} */\n err\n ) : new Error(JSON.stringify(err));\n}\nfunction normalize_error(error2) {\n return (\n /** @type {Redirect | HttpError | Error} */\n error2\n );\n}\nfunction method_not_allowed(mod, method) {\n return text(`${method} method not allowed`, {\n status: 405,\n headers: {\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405\n // \"The server must generate an Allow header field in a 405 status code response\"\n allow: allowed_methods(mod).join(\", \")\n }\n });\n}\nfunction allowed_methods(mod) {\n const allowed = [\"GET\", \"POST\", \"PUT\", \"PATCH\", \"DELETE\", \"OPTIONS\"].filter(\n (method) => method in mod\n );\n if (\"GET\" in mod || \"HEAD\" in mod)\n allowed.push(\"HEAD\");\n return allowed;\n}\nfunction static_error_page(options2, status, message) {\n let page = options2.templates.error({ status, message });\n return text(page, {\n headers: { \"content-type\": \"text/html; charset=utf-8\" },\n status\n });\n}\nasync function handle_fatal_error(event, options2, error2) {\n error2 = error2 instanceof HttpError ? error2 : coalesce_to_error(error2);\n const status = error2 instanceof HttpError ? error2.status : 500;\n const body = await handle_error_and_jsonify(event, options2, error2);\n const type = negotiate(event.request.headers.get(\"accept\") || \"text/html\", [\n \"application/json\",\n \"text/html\"\n ]);\n if (event.isDataRequest || type === \"application/json\") {\n return json(body, {\n status\n });\n }\n return static_error_page(options2, status, body.message);\n}\nasync function handle_error_and_jsonify(event, options2, error2) {\n if (error2 instanceof HttpError) {\n return error2.body;\n } else {\n return await options2.hooks.handleError({ error: error2, event }) ?? {\n message: event.route.id != null ? \"Internal Error\" : \"Not Found\"\n };\n }\n}\nfunction redirect_response(status, location) {\n const response = new Response(void 0, {\n status,\n headers: { location }\n });\n return response;\n}\nfunction clarify_devalue_error(event, error2) {\n if (error2.path) {\n return `Data returned from \\`load\\` while rendering ${event.route.id} is not serializable: ${error2.message} (data${error2.path})`;\n }\n if (error2.path === \"\") {\n return `Data returned from \\`load\\` while rendering ${event.route.id} is not a plain object`;\n }\n return error2.message;\n}\nfunction stringify_uses(node) {\n const uses = [];\n if (node.uses && node.uses.dependencies.size > 0) {\n uses.push(`\"dependencies\":${JSON.stringify(Array.from(node.uses.dependencies))}`);\n }\n if (node.uses && node.uses.params.size > 0) {\n uses.push(`\"params\":${JSON.stringify(Array.from(node.uses.params))}`);\n }\n if (node.uses?.parent)\n uses.push(`\"parent\":1`);\n if (node.uses?.route)\n uses.push(`\"route\":1`);\n if (node.uses?.url)\n uses.push(`\"url\":1`);\n return `\"uses\":{${uses.join(\",\")}}`;\n}\nasync function render_endpoint(event, mod, state) {\n const method = (\n /** @type {import('types').HttpMethod} */\n event.request.method\n );\n let handler = mod[method];\n if (!handler && method === \"HEAD\") {\n handler = mod.GET;\n }\n if (!handler) {\n return method_not_allowed(mod, method);\n }\n const prerender = mod.prerender ?? state.prerender_default;\n if (prerender && (mod.POST || mod.PATCH || mod.PUT || mod.DELETE)) {\n throw new Error(\"Cannot prerender endpoints that have mutative methods\");\n }\n if (state.prerendering && !prerender) {\n if (state.depth > 0) {\n throw new Error(`${event.route.id} is not prerenderable`);\n } else {\n return new Response(void 0, { status: 204 });\n }\n }\n try {\n const response = await handler(\n /** @type {import('types').RequestEvent>} */\n event\n );\n if (!(response instanceof Response)) {\n throw new Error(\n `Invalid response from route ${event.url.pathname}: handler should return a Response object`\n );\n }\n if (state.prerendering) {\n response.headers.set(\"x-sveltekit-prerender\", String(prerender));\n }\n return response;\n } catch (e) {\n if (e instanceof Redirect) {\n return new Response(void 0, {\n status: e.status,\n headers: { location: e.location }\n });\n }\n throw e;\n }\n}\nfunction is_endpoint_request(event) {\n const { method, headers } = event.request;\n if (method === \"PUT\" || method === \"PATCH\" || method === \"DELETE\" || method === \"OPTIONS\") {\n return true;\n }\n if (method === \"POST\" && headers.get(\"x-sveltekit-action\") === \"true\")\n return false;\n const accept = event.request.headers.get(\"accept\") ?? \"*/*\";\n return negotiate(accept, [\"*\", \"text/html\"]) !== \"text/html\";\n}\nfunction compact(arr) {\n return arr.filter(\n /** @returns {val is NonNullable} */\n (val) => val != null\n );\n}\nfunction normalize_path(path, trailing_slash) {\n if (path === \"/\" || trailing_slash === \"ignore\")\n return path;\n if (trailing_slash === \"never\") {\n return path.endsWith(\"/\") ? path.slice(0, -1) : path;\n } else if (trailing_slash === \"always\" && !path.endsWith(\"/\")) {\n return path + \"/\";\n }\n return path;\n}\nfunction decode_pathname(pathname) {\n return pathname.split(\"%25\").map(decodeURI).join(\"%25\");\n}\nfunction decode_params(params) {\n for (const key2 in params) {\n params[key2] = decodeURIComponent(params[key2]);\n }\n return params;\n}\nconst tracked_url_properties = (\n /** @type {const} */\n [\n \"href\",\n \"pathname\",\n \"search\",\n \"searchParams\",\n \"toString\",\n \"toJSON\"\n ]\n);\nfunction make_trackable(url, callback) {\n const tracked = new URL(url);\n for (const property of tracked_url_properties) {\n Object.defineProperty(tracked, property, {\n get() {\n callback();\n return url[property];\n },\n enumerable: true,\n configurable: true\n });\n }\n {\n tracked[Symbol.for(\"nodejs.util.inspect.custom\")] = (depth, opts, inspect) => {\n return inspect(url, opts);\n };\n }\n disable_hash(tracked);\n return tracked;\n}\nfunction disable_hash(url) {\n Object.defineProperty(url, \"hash\", {\n get() {\n throw new Error(\n \"Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead\"\n );\n }\n });\n}\nfunction disable_search(url) {\n for (const property of [\"search\", \"searchParams\"]) {\n Object.defineProperty(url, property, {\n get() {\n throw new Error(`Cannot access url.${property} on a page with prerendering enabled`);\n }\n });\n }\n}\nconst DATA_SUFFIX = \"/__data.json\";\nfunction has_data_suffix(pathname) {\n return pathname.endsWith(DATA_SUFFIX);\n}\nfunction add_data_suffix(pathname) {\n return pathname.replace(/\\/$/, \"\") + DATA_SUFFIX;\n}\nfunction strip_data_suffix(pathname) {\n return pathname.slice(0, -DATA_SUFFIX.length);\n}\nconst escaped = {\n \"<\": \"\\\\u003C\",\n \">\": \"\\\\u003E\",\n \"/\": \"\\\\u002F\",\n \"\\\\\": \"\\\\\\\\\",\n \"\\b\": \"\\\\b\",\n \"\\f\": \"\\\\f\",\n \"\\n\": \"\\\\n\",\n \"\\r\": \"\\\\r\",\n \"\t\": \"\\\\t\",\n \"\\0\": \"\\\\u0000\",\n \"\\u2028\": \"\\\\u2028\",\n \"\\u2029\": \"\\\\u2029\"\n};\nclass DevalueError extends Error {\n /**\n * @param {string} message\n * @param {string[]} keys\n */\n constructor(message, keys) {\n super(message);\n this.name = \"DevalueError\";\n this.path = keys.join(\"\");\n }\n}\nfunction is_primitive(thing) {\n return Object(thing) !== thing;\n}\nconst object_proto_names = Object.getOwnPropertyNames(Object.prototype).sort().join(\"\\0\");\nfunction is_plain_object(thing) {\n const proto = Object.getPrototypeOf(thing);\n return proto === Object.prototype || proto === null || Object.getOwnPropertyNames(proto).sort().join(\"\\0\") === object_proto_names;\n}\nfunction get_type(thing) {\n return Object.prototype.toString.call(thing).slice(8, -1);\n}\nfunction stringify_string(str) {\n let result = '\"';\n for (let i = 0; i < str.length; i += 1) {\n const char = str.charAt(i);\n const code = char.charCodeAt(0);\n if (char === '\"') {\n result += '\\\\\"';\n } else if (char in escaped) {\n result += escaped[char];\n } else if (code <= 31) {\n result += `\\\\u${code.toString(16).toUpperCase().padStart(4, \"0\")}`;\n } else if (code >= 55296 && code <= 57343) {\n const next = str.charCodeAt(i + 1);\n if (code <= 56319 && next >= 56320 && next <= 57343) {\n result += char + str[++i];\n } else {\n result += `\\\\u${code.toString(16).toUpperCase()}`;\n }\n } else {\n result += char;\n }\n }\n result += '\"';\n return result;\n}\nconst chars$1 = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$\";\nconst unsafe_chars = /[<>\\b\\f\\n\\r\\t\\0\\u2028\\u2029]/g;\nconst reserved = /^(?:do|if|in|for|int|let|new|try|var|byte|case|char|else|enum|goto|long|this|void|with|await|break|catch|class|const|final|float|short|super|throw|while|yield|delete|double|export|import|native|return|switch|throws|typeof|boolean|default|extends|finally|package|private|abstract|continue|debugger|function|volatile|interface|protected|transient|implements|instanceof|synchronized)$/;\nfunction uneval(value, replacer) {\n const counts = /* @__PURE__ */ new Map();\n const keys = [];\n const custom = /* @__PURE__ */ new Map();\n function walk(thing) {\n if (typeof thing === \"function\") {\n throw new DevalueError(`Cannot stringify a function`, keys);\n }\n if (!is_primitive(thing)) {\n if (counts.has(thing)) {\n counts.set(thing, counts.get(thing) + 1);\n return;\n }\n counts.set(thing, 1);\n if (replacer) {\n const str2 = replacer(thing);\n if (typeof str2 === \"string\") {\n custom.set(thing, str2);\n return;\n }\n }\n const type = get_type(thing);\n switch (type) {\n case \"Number\":\n case \"BigInt\":\n case \"String\":\n case \"Boolean\":\n case \"Date\":\n case \"RegExp\":\n return;\n case \"Array\":\n thing.forEach((value2, i) => {\n keys.push(`[${i}]`);\n walk(value2);\n keys.pop();\n });\n break;\n case \"Set\":\n Array.from(thing).forEach(walk);\n break;\n case \"Map\":\n for (const [key2, value2] of thing) {\n keys.push(\n `.get(${is_primitive(key2) ? stringify_primitive$1(key2) : \"...\"})`\n );\n walk(value2);\n keys.pop();\n }\n break;\n default:\n if (!is_plain_object(thing)) {\n throw new DevalueError(\n `Cannot stringify arbitrary non-POJOs`,\n keys\n );\n }\n if (Object.getOwnPropertySymbols(thing).length > 0) {\n throw new DevalueError(\n `Cannot stringify POJOs with symbolic keys`,\n keys\n );\n }\n for (const key2 in thing) {\n keys.push(`.${key2}`);\n walk(thing[key2]);\n keys.pop();\n }\n }\n }\n }\n walk(value);\n const names = /* @__PURE__ */ new Map();\n Array.from(counts).filter((entry) => entry[1] > 1).sort((a, b) => b[1] - a[1]).forEach((entry, i) => {\n names.set(entry[0], get_name(i));\n });\n function stringify2(thing) {\n if (names.has(thing)) {\n return names.get(thing);\n }\n if (is_primitive(thing)) {\n return stringify_primitive$1(thing);\n }\n if (custom.has(thing)) {\n return custom.get(thing);\n }\n const type = get_type(thing);\n switch (type) {\n case \"Number\":\n case \"String\":\n case \"Boolean\":\n return `Object(${stringify2(thing.valueOf())})`;\n case \"RegExp\":\n return `new RegExp(${stringify_string(thing.source)}, \"${thing.flags}\")`;\n case \"Date\":\n return `new Date(${thing.getTime()})`;\n case \"Array\":\n const members = (\n /** @type {any[]} */\n thing.map(\n (v, i) => i in thing ? stringify2(v) : \"\"\n )\n );\n const tail = thing.length === 0 || thing.length - 1 in thing ? \"\" : \",\";\n return `[${members.join(\",\")}${tail}]`;\n case \"Set\":\n case \"Map\":\n return `new ${type}([${Array.from(thing).map(stringify2).join(\",\")}])`;\n default:\n const obj = `{${Object.keys(thing).map((key2) => `${safe_key(key2)}:${stringify2(thing[key2])}`).join(\",\")}}`;\n const proto = Object.getPrototypeOf(thing);\n if (proto === null) {\n return Object.keys(thing).length > 0 ? `Object.assign(Object.create(null),${obj})` : `Object.create(null)`;\n }\n return obj;\n }\n }\n const str = stringify2(value);\n if (names.size) {\n const params = [];\n const statements = [];\n const values = [];\n names.forEach((name, thing) => {\n params.push(name);\n if (custom.has(thing)) {\n values.push(\n /** @type {string} */\n custom.get(thing)\n );\n return;\n }\n if (is_primitive(thing)) {\n values.push(stringify_primitive$1(thing));\n return;\n }\n const type = get_type(thing);\n switch (type) {\n case \"Number\":\n case \"String\":\n case \"Boolean\":\n values.push(`Object(${stringify2(thing.valueOf())})`);\n break;\n case \"RegExp\":\n values.push(thing.toString());\n break;\n case \"Date\":\n values.push(`new Date(${thing.getTime()})`);\n break;\n case \"Array\":\n values.push(`Array(${thing.length})`);\n thing.forEach((v, i) => {\n statements.push(`${name}[${i}]=${stringify2(v)}`);\n });\n break;\n case \"Set\":\n values.push(`new Set`);\n statements.push(\n `${name}.${Array.from(thing).map((v) => `add(${stringify2(v)})`).join(\".\")}`\n );\n break;\n case \"Map\":\n values.push(`new Map`);\n statements.push(\n `${name}.${Array.from(thing).map(([k, v]) => `set(${stringify2(k)}, ${stringify2(v)})`).join(\".\")}`\n );\n break;\n default:\n values.push(\n Object.getPrototypeOf(thing) === null ? \"Object.create(null)\" : \"{}\"\n );\n Object.keys(thing).forEach((key2) => {\n statements.push(\n `${name}${safe_prop(key2)}=${stringify2(thing[key2])}`\n );\n });\n }\n });\n statements.push(`return ${str}`);\n return `(function(${params.join(\",\")}){${statements.join(\n \";\"\n )}}(${values.join(\",\")}))`;\n } else {\n return str;\n }\n}\nfunction get_name(num) {\n let name = \"\";\n do {\n name = chars$1[num % chars$1.length] + name;\n num = ~~(num / chars$1.length) - 1;\n } while (num >= 0);\n return reserved.test(name) ? `${name}0` : name;\n}\nfunction escape_unsafe_char(c) {\n return escaped[c] || c;\n}\nfunction escape_unsafe_chars(str) {\n return str.replace(unsafe_chars, escape_unsafe_char);\n}\nfunction safe_key(key2) {\n return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key2) ? key2 : escape_unsafe_chars(JSON.stringify(key2));\n}\nfunction safe_prop(key2) {\n return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key2) ? `.${key2}` : `[${escape_unsafe_chars(JSON.stringify(key2))}]`;\n}\nfunction stringify_primitive$1(thing) {\n if (typeof thing === \"string\")\n return stringify_string(thing);\n if (thing === void 0)\n return \"void 0\";\n if (thing === 0 && 1 / thing < 0)\n return \"-0\";\n const str = String(thing);\n if (typeof thing === \"number\")\n return str.replace(/^(-)?0\\./, \"$1.\");\n if (typeof thing === \"bigint\")\n return thing + \"n\";\n return str;\n}\nconst UNDEFINED = -1;\nconst HOLE = -2;\nconst NAN = -3;\nconst POSITIVE_INFINITY = -4;\nconst NEGATIVE_INFINITY = -5;\nconst NEGATIVE_ZERO = -6;\nfunction stringify(value, reducers) {\n const stringified = [];\n const indexes = /* @__PURE__ */ new Map();\n const custom = [];\n for (const key2 in reducers) {\n custom.push({ key: key2, fn: reducers[key2] });\n }\n const keys = [];\n let p = 0;\n function flatten(thing) {\n if (typeof thing === \"function\") {\n throw new DevalueError(`Cannot stringify a function`, keys);\n }\n if (indexes.has(thing))\n return indexes.get(thing);\n if (thing === void 0)\n return UNDEFINED;\n if (Number.isNaN(thing))\n return NAN;\n if (thing === Infinity)\n return POSITIVE_INFINITY;\n if (thing === -Infinity)\n return NEGATIVE_INFINITY;\n if (thing === 0 && 1 / thing < 0)\n return NEGATIVE_ZERO;\n const index2 = p++;\n indexes.set(thing, index2);\n for (const { key: key2, fn } of custom) {\n const value2 = fn(thing);\n if (value2) {\n stringified[index2] = `[\"${key2}\",${flatten(value2)}]`;\n return index2;\n }\n }\n let str = \"\";\n if (is_primitive(thing)) {\n str = stringify_primitive(thing);\n } else {\n const type = get_type(thing);\n switch (type) {\n case \"Number\":\n case \"String\":\n case \"Boolean\":\n str = `[\"Object\",${stringify_primitive(thing)}]`;\n break;\n case \"BigInt\":\n str = `[\"BigInt\",${thing}]`;\n break;\n case \"Date\":\n str = `[\"Date\",\"${thing.toISOString()}\"]`;\n break;\n case \"RegExp\":\n const { source, flags } = thing;\n str = flags ? `[\"RegExp\",${stringify_string(source)},\"${flags}\"]` : `[\"RegExp\",${stringify_string(source)}]`;\n break;\n case \"Array\":\n str = \"[\";\n for (let i = 0; i < thing.length; i += 1) {\n if (i > 0)\n str += \",\";\n if (i in thing) {\n keys.push(`[${i}]`);\n str += flatten(thing[i]);\n keys.pop();\n } else {\n str += HOLE;\n }\n }\n str += \"]\";\n break;\n case \"Set\":\n str = '[\"Set\"';\n for (const value2 of thing) {\n str += `,${flatten(value2)}`;\n }\n str += \"]\";\n break;\n case \"Map\":\n str = '[\"Map\"';\n for (const [key2, value2] of thing) {\n keys.push(\n `.get(${is_primitive(key2) ? stringify_primitive(key2) : \"...\"})`\n );\n str += `,${flatten(key2)},${flatten(value2)}`;\n }\n str += \"]\";\n break;\n default:\n if (!is_plain_object(thing)) {\n throw new DevalueError(\n `Cannot stringify arbitrary non-POJOs`,\n keys\n );\n }\n if (Object.getOwnPropertySymbols(thing).length > 0) {\n throw new DevalueError(\n `Cannot stringify POJOs with symbolic keys`,\n keys\n );\n }\n if (Object.getPrototypeOf(thing) === null) {\n str = '[\"null\"';\n for (const key2 in thing) {\n keys.push(`.${key2}`);\n str += `,${stringify_string(key2)},${flatten(thing[key2])}`;\n keys.pop();\n }\n str += \"]\";\n } else {\n str = \"{\";\n let started = false;\n for (const key2 in thing) {\n if (started)\n str += \",\";\n started = true;\n keys.push(`.${key2}`);\n str += `${stringify_string(key2)}:${flatten(thing[key2])}`;\n keys.pop();\n }\n str += \"}\";\n }\n }\n }\n stringified[index2] = str;\n return index2;\n }\n const index = flatten(value);\n if (index < 0)\n return `${index}`;\n return `[${stringified.join(\",\")}]`;\n}\nfunction stringify_primitive(thing) {\n const type = typeof thing;\n if (type === \"string\")\n return stringify_string(thing);\n if (thing instanceof String)\n return stringify_string(thing.toString());\n if (thing === void 0)\n return UNDEFINED.toString();\n if (thing === 0 && 1 / thing < 0)\n return NEGATIVE_ZERO.toString();\n if (type === \"bigint\")\n return `[\"BigInt\",\"${thing}\"]`;\n return String(thing);\n}\nfunction is_action_json_request(event) {\n const accept = negotiate(event.request.headers.get(\"accept\") ?? \"*/*\", [\n \"application/json\",\n \"text/html\"\n ]);\n return accept === \"application/json\" && event.request.method === \"POST\";\n}\nasync function handle_action_json_request(event, options2, server) {\n const actions = server?.actions;\n if (!actions) {\n const no_actions_error = error(405, \"POST method not allowed. No actions exist for this page\");\n return action_json(\n {\n type: \"error\",\n error: await handle_error_and_jsonify(event, options2, no_actions_error)\n },\n {\n status: no_actions_error.status,\n headers: {\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405\n // \"The server must generate an Allow header field in a 405 status code response\"\n allow: \"GET\"\n }\n }\n );\n }\n check_named_default_separate(actions);\n try {\n const data = await call_action(event, actions);\n if (false)\n ;\n if (data instanceof ActionFailure) {\n return action_json({\n type: \"failure\",\n status: data.status,\n // @ts-expect-error we assign a string to what is supposed to be an object. That's ok\n // because we don't use the object outside, and this way we have better code navigation\n // through knowing where the related interface is used.\n data: stringify_action_response(\n data.data,\n /** @type {string} */\n event.route.id\n )\n });\n } else {\n return action_json({\n type: \"success\",\n status: data ? 200 : 204,\n // @ts-expect-error see comment above\n data: stringify_action_response(\n data,\n /** @type {string} */\n event.route.id\n )\n });\n }\n } catch (e) {\n const err = normalize_error(e);\n if (err instanceof Redirect) {\n return action_json_redirect(err);\n }\n return action_json(\n {\n type: \"error\",\n error: await handle_error_and_jsonify(event, options2, check_incorrect_fail_use(err))\n },\n {\n status: err instanceof HttpError ? err.status : 500\n }\n );\n }\n}\nfunction check_incorrect_fail_use(error2) {\n return error2 instanceof ActionFailure ? new Error(`Cannot \"throw fail()\". Use \"return fail()\"`) : error2;\n}\nfunction action_json_redirect(redirect) {\n return action_json({\n type: \"redirect\",\n status: redirect.status,\n location: redirect.location\n });\n}\nfunction action_json(data, init2) {\n return json(data, init2);\n}\nfunction is_action_request(event) {\n return event.request.method === \"POST\";\n}\nasync function handle_action_request(event, server) {\n const actions = server?.actions;\n if (!actions) {\n event.setHeaders({\n // https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405\n // \"The server must generate an Allow header field in a 405 status code response\"\n allow: \"GET\"\n });\n return {\n type: \"error\",\n error: error(405, \"POST method not allowed. No actions exist for this page\")\n };\n }\n check_named_default_separate(actions);\n try {\n const data = await call_action(event, actions);\n if (false)\n ;\n if (data instanceof ActionFailure) {\n return {\n type: \"failure\",\n status: data.status,\n data: data.data\n };\n } else {\n return {\n type: \"success\",\n status: 200,\n // @ts-expect-error this will be removed upon serialization, so `undefined` is the same as omission\n data\n };\n }\n } catch (e) {\n const err = normalize_error(e);\n if (err instanceof Redirect) {\n return {\n type: \"redirect\",\n status: err.status,\n location: err.location\n };\n }\n return {\n type: \"error\",\n error: check_incorrect_fail_use(err)\n };\n }\n}\nfunction check_named_default_separate(actions) {\n if (actions.default && Object.keys(actions).length > 1) {\n throw new Error(\n `When using named actions, the default action cannot be used. See the docs for more info: https://kit.svelte.dev/docs/form-actions#named-actions`\n );\n }\n}\nasync function call_action(event, actions) {\n const url = new URL(event.request.url);\n let name = \"default\";\n for (const param of url.searchParams) {\n if (param[0].startsWith(\"/\")) {\n name = param[0].slice(1);\n if (name === \"default\") {\n throw new Error('Cannot use reserved action name \"default\"');\n }\n break;\n }\n }\n const action = actions[name];\n if (!action) {\n throw new Error(`No action with name '${name}' found`);\n }\n if (!is_form_content_type(event.request)) {\n throw new Error(\n `Actions expect form-encoded data (received ${event.request.headers.get(\"content-type\")})`\n );\n }\n return action(event);\n}\nfunction validate_action_return(data) {\n if (data instanceof Redirect) {\n throw new Error(`Cannot \\`return redirect(...)\\` — use \\`throw redirect(...)\\` instead`);\n }\n if (data instanceof HttpError) {\n throw new Error(\n `Cannot \\`return error(...)\\` — use \\`throw error(...)\\` or \\`return fail(...)\\` instead`\n );\n }\n}\nfunction uneval_action_response(data, route_id) {\n return try_deserialize(data, uneval, route_id);\n}\nfunction stringify_action_response(data, route_id) {\n return try_deserialize(data, stringify, route_id);\n}\nfunction try_deserialize(data, fn, route_id) {\n try {\n return fn(data);\n } catch (e) {\n const error2 = (\n /** @type {any} */\n e\n );\n if (\"path\" in error2) {\n let message = `Data returned from action inside ${route_id} is not serializable: ${error2.message}`;\n if (error2.path !== \"\")\n message += ` (data.${error2.path})`;\n throw new Error(message);\n }\n throw error2;\n }\n}\nasync function unwrap_promises(object) {\n for (const key2 in object) {\n if (typeof object[key2]?.then === \"function\") {\n return Object.fromEntries(\n await Promise.all(Object.entries(object).map(async ([key3, value]) => [key3, await value]))\n );\n }\n }\n return object;\n}\nconst INVALIDATED_PARAM = \"x-sveltekit-invalidated\";\nasync function load_server_data({ event, state, node, parent }) {\n if (!node?.server)\n return null;\n const uses = {\n dependencies: /* @__PURE__ */ new Set(),\n params: /* @__PURE__ */ new Set(),\n parent: false,\n route: false,\n url: false\n };\n const url = make_trackable(event.url, () => {\n uses.url = true;\n });\n if (state.prerendering) {\n disable_search(url);\n }\n const result = await node.server.load?.call(null, {\n ...event,\n fetch: (info, init2) => {\n const url2 = new URL(info instanceof Request ? info.url : info, event.url);\n uses.dependencies.add(url2.href);\n return event.fetch(info, init2);\n },\n /** @param {string[]} deps */\n depends: (...deps) => {\n for (const dep of deps) {\n const { href } = new URL(dep, event.url);\n uses.dependencies.add(href);\n }\n },\n params: new Proxy(event.params, {\n get: (target, key2) => {\n uses.params.add(key2);\n return target[\n /** @type {string} */\n key2\n ];\n }\n }),\n parent: async () => {\n uses.parent = true;\n return parent();\n },\n route: new Proxy(event.route, {\n get: (target, key2) => {\n uses.route = true;\n return target[\n /** @type {'id'} */\n key2\n ];\n }\n }),\n url\n });\n const data = result ? await unwrap_promises(result) : null;\n return {\n type: \"data\",\n data,\n uses,\n slash: node.server.trailingSlash\n };\n}\nasync function load_data({\n event,\n fetched,\n node,\n parent,\n server_data_promise,\n state,\n resolve_opts,\n csr\n}) {\n const server_data_node = await server_data_promise;\n if (!node?.universal?.load) {\n return server_data_node?.data ?? null;\n }\n const result = await node.universal.load.call(null, {\n url: event.url,\n params: event.params,\n data: server_data_node?.data ?? null,\n route: event.route,\n fetch: create_universal_fetch(event, state, fetched, csr, resolve_opts),\n setHeaders: event.setHeaders,\n depends: () => {\n },\n parent\n });\n const data = result ? await unwrap_promises(result) : null;\n return data;\n}\nfunction create_universal_fetch(event, state, fetched, csr, resolve_opts) {\n return async (input, init2) => {\n const cloned_body = input instanceof Request && input.body ? input.clone().body : null;\n let response = await event.fetch(input, init2);\n const url = new URL(input instanceof Request ? input.url : input, event.url);\n const same_origin = url.origin === event.url.origin;\n let dependency;\n if (same_origin) {\n if (state.prerendering) {\n dependency = { response, body: null };\n state.prerendering.dependencies.set(url.pathname, dependency);\n }\n } else {\n const mode = input instanceof Request ? input.mode : init2?.mode ?? \"cors\";\n if (mode === \"no-cors\") {\n response = new Response(\"\", {\n status: response.status,\n statusText: response.statusText,\n headers: response.headers\n });\n } else {\n const acao = response.headers.get(\"access-control-allow-origin\");\n if (!acao || acao !== event.url.origin && acao !== \"*\") {\n throw new Error(\n `CORS error: ${acao ? \"Incorrect\" : \"No\"} 'Access-Control-Allow-Origin' header is present on the requested resource`\n );\n }\n }\n }\n const proxy = new Proxy(response, {\n get(response2, key2, _receiver) {\n async function text2() {\n const body = await response2.text();\n if (!body || typeof body === \"string\") {\n const status_number = Number(response2.status);\n if (isNaN(status_number)) {\n throw new Error(\n `response.status is not a number. value: \"${response2.status}\" type: ${typeof response2.status}`\n );\n }\n fetched.push({\n url: same_origin ? url.href.slice(event.url.origin.length) : url.href,\n method: event.request.method,\n request_body: (\n /** @type {string | ArrayBufferView | undefined} */\n input instanceof Request && cloned_body ? await stream_to_string(cloned_body) : init2?.body\n ),\n request_headers: init2?.headers,\n response_body: body,\n response: response2\n });\n }\n if (dependency) {\n dependency.body = body;\n }\n return body;\n }\n if (key2 === \"arrayBuffer\") {\n return async () => {\n const buffer = await response2.arrayBuffer();\n if (dependency) {\n dependency.body = new Uint8Array(buffer);\n }\n return buffer;\n };\n }\n if (key2 === \"text\") {\n return text2;\n }\n if (key2 === \"json\") {\n return async () => {\n return JSON.parse(await text2());\n };\n }\n return Reflect.get(response2, key2, response2);\n }\n });\n if (csr) {\n const get = response.headers.get;\n response.headers.get = (key2) => {\n const lower = key2.toLowerCase();\n const value = get.call(response.headers, lower);\n if (value && !lower.startsWith(\"x-sveltekit-\")) {\n const included = resolve_opts.filterSerializedResponseHeaders(lower, value);\n if (!included) {\n throw new Error(\n `Failed to get response header \"${lower}\" — it must be included by the \\`filterSerializedResponseHeaders\\` option: https://kit.svelte.dev/docs/hooks#server-hooks-handle (at ${event.route.id})`\n );\n }\n }\n return value;\n };\n }\n return proxy;\n };\n}\nasync function stream_to_string(stream) {\n let result = \"\";\n const reader = stream.getReader();\n const decoder = new TextDecoder();\n while (true) {\n const { done, value } = await reader.read();\n if (done) {\n break;\n }\n result += decoder.decode(value);\n }\n return result;\n}\nfunction hash(...values) {\n let hash2 = 5381;\n for (const value of values) {\n if (typeof value === \"string\") {\n let i = value.length;\n while (i)\n hash2 = hash2 * 33 ^ value.charCodeAt(--i);\n } else if (ArrayBuffer.isView(value)) {\n const buffer = new Uint8Array(value.buffer, value.byteOffset, value.byteLength);\n let i = buffer.length;\n while (i)\n hash2 = hash2 * 33 ^ buffer[--i];\n } else {\n throw new TypeError(\"value must be a string or TypedArray\");\n }\n }\n return (hash2 >>> 0).toString(36);\n}\nconst escape_html_attr_dict = {\n \"&\": \"&\",\n '\"': \""\"\n};\nconst escape_html_attr_regex = new RegExp(\n // special characters\n `[${Object.keys(escape_html_attr_dict).join(\"\")}]|[\\\\ud800-\\\\udbff](?![\\\\udc00-\\\\udfff])|[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]|[\\\\udc00-\\\\udfff]`,\n \"g\"\n);\nfunction escape_html_attr(str) {\n const escaped_str = str.replace(escape_html_attr_regex, (match) => {\n if (match.length === 2) {\n return match;\n }\n return escape_html_attr_dict[match] ?? `&#${match.charCodeAt(0)};`;\n });\n return `\"${escaped_str}\"`;\n}\nconst replacements = {\n \"<\": \"\\\\u003C\",\n \"\\u2028\": \"\\\\u2028\",\n \"\\u2029\": \"\\\\u2029\"\n};\nconst pattern = new RegExp(`[${Object.keys(replacements).join(\"\")}]`, \"g\");\nfunction serialize_data(fetched, filter, prerendering = false) {\n const headers = {};\n let cache_control = null;\n let age = null;\n let vary = false;\n for (const [key2, value] of fetched.response.headers) {\n if (filter(key2, value)) {\n headers[key2] = value;\n }\n if (key2 === \"cache-control\")\n cache_control = value;\n if (key2 === \"age\")\n age = value;\n if (key2 === \"vary\")\n vary = true;\n }\n const payload = {\n status: fetched.response.status,\n statusText: fetched.response.statusText,\n headers,\n body: fetched.response_body\n };\n const safe_payload = JSON.stringify(payload).replace(pattern, (match) => replacements[match]);\n const attrs = [\n 'type=\"application/json\"',\n \"data-sveltekit-fetched\",\n `data-url=${escape_html_attr(fetched.url)}`\n ];\n if (fetched.request_headers || fetched.request_body) {\n const values = [];\n if (fetched.request_headers) {\n values.push([...new Headers(fetched.request_headers)].join(\",\"));\n }\n if (fetched.request_body) {\n values.push(fetched.request_body);\n }\n attrs.push(`data-hash=\"${hash(...values)}\"`);\n }\n if (!prerendering && fetched.method === \"GET\" && cache_control && !vary) {\n const match = /s-maxage=(\\d+)/g.exec(cache_control) ?? /max-age=(\\d+)/g.exec(cache_control);\n if (match) {\n const ttl = +match[1] - +(age ?? \"0\");\n attrs.push(`data-ttl=\"${ttl}\"`);\n }\n }\n return `