@axium/server 0.22.11 → 0.22.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/build/client/_app/immutable/chunks/CiUsfGrc.js +43 -0
  2. package/build/client/_app/immutable/chunks/CiUsfGrc.js.br +0 -0
  3. package/build/client/_app/immutable/chunks/CiUsfGrc.js.gz +0 -0
  4. package/build/client/_app/immutable/chunks/{BMQhMafy.js → D3hk2v8y.js} +1 -1
  5. package/build/client/_app/immutable/chunks/D3hk2v8y.js.br +2 -0
  6. package/build/client/_app/immutable/chunks/D3hk2v8y.js.gz +0 -0
  7. package/build/client/_app/immutable/chunks/{ButWEHh0.js → D4Bce_hb.js} +1 -1
  8. package/build/client/_app/immutable/chunks/D4Bce_hb.js.br +0 -0
  9. package/build/client/_app/immutable/chunks/D4Bce_hb.js.gz +0 -0
  10. package/build/client/_app/immutable/chunks/D9TfJrfD.js +1 -0
  11. package/build/client/_app/immutable/chunks/D9TfJrfD.js.br +0 -0
  12. package/build/client/_app/immutable/chunks/D9TfJrfD.js.gz +0 -0
  13. package/build/client/_app/immutable/chunks/Dext3JFj.js +3 -0
  14. package/build/client/_app/immutable/chunks/Dext3JFj.js.br +0 -0
  15. package/build/client/_app/immutable/chunks/Dext3JFj.js.gz +0 -0
  16. package/build/client/_app/immutable/chunks/Dy1O3iBu.js +2 -0
  17. package/build/client/_app/immutable/chunks/Dy1O3iBu.js.br +0 -0
  18. package/build/client/_app/immutable/chunks/Dy1O3iBu.js.gz +0 -0
  19. package/build/client/_app/immutable/chunks/{DN_VTkOW.js → XdRahthI.js} +1 -1
  20. package/build/client/_app/immutable/chunks/XdRahthI.js.br +0 -0
  21. package/build/client/_app/immutable/chunks/XdRahthI.js.gz +0 -0
  22. package/build/client/_app/immutable/chunks/{Cj9PL7OG.js → pba7IodQ.js} +1 -1
  23. package/build/client/_app/immutable/chunks/pba7IodQ.js.br +0 -0
  24. package/build/client/_app/immutable/chunks/pba7IodQ.js.gz +0 -0
  25. package/build/client/_app/immutable/entry/app.C5LuJT06.js +2 -0
  26. package/build/client/_app/immutable/entry/app.C5LuJT06.js.br +0 -0
  27. package/build/client/_app/immutable/entry/app.C5LuJT06.js.gz +0 -0
  28. package/build/client/_app/immutable/entry/start.BQJupvGE.js +1 -0
  29. package/build/client/_app/immutable/entry/start.BQJupvGE.js.br +2 -0
  30. package/build/client/_app/immutable/entry/start.BQJupvGE.js.gz +0 -0
  31. package/build/client/_app/immutable/nodes/{0.CE0uBbp0.js → 0.DlE8ZTIF.js} +1 -1
  32. package/build/client/_app/immutable/nodes/0.DlE8ZTIF.js.br +0 -0
  33. package/build/client/_app/immutable/nodes/0.DlE8ZTIF.js.gz +0 -0
  34. package/build/client/_app/immutable/nodes/{1.9GlBYpox.js → 1.BAsobPu4.js} +1 -1
  35. package/build/client/_app/immutable/nodes/1.BAsobPu4.js.br +0 -0
  36. package/build/client/_app/immutable/nodes/1.BAsobPu4.js.gz +0 -0
  37. package/build/client/_app/immutable/nodes/{2.B3qXd01D.js → 2.CvEpuMc7.js} +1 -1
  38. package/build/client/_app/immutable/nodes/2.CvEpuMc7.js.br +0 -0
  39. package/build/client/_app/immutable/nodes/2.CvEpuMc7.js.gz +0 -0
  40. package/build/client/_app/immutable/nodes/3.C18mc0nK.js +7 -0
  41. package/build/client/_app/immutable/nodes/3.C18mc0nK.js.br +0 -0
  42. package/build/client/_app/immutable/nodes/3.C18mc0nK.js.gz +0 -0
  43. package/build/client/_app/immutable/nodes/{4.C0wscA_4.js → 4.eINJOagY.js} +1 -1
  44. package/build/client/_app/immutable/nodes/4.eINJOagY.js.br +0 -0
  45. package/build/client/_app/immutable/nodes/4.eINJOagY.js.gz +0 -0
  46. package/build/client/_app/immutable/nodes/5.DITFCLgK.js +1 -0
  47. package/build/client/_app/immutable/nodes/5.DITFCLgK.js.br +0 -0
  48. package/build/client/_app/immutable/nodes/5.DITFCLgK.js.gz +0 -0
  49. package/build/client/_app/immutable/nodes/{6.TEubHotu.js → 6.BbgUOuKV.js} +1 -1
  50. package/build/client/_app/immutable/nodes/6.BbgUOuKV.js.br +0 -0
  51. package/build/client/_app/immutable/nodes/6.BbgUOuKV.js.gz +0 -0
  52. package/build/client/_app/version.json +1 -1
  53. package/build/client/_app/version.json.br +0 -0
  54. package/build/client/_app/version.json.gz +0 -0
  55. package/build/handler.js +26 -26
  56. package/build/server/chunks/{0-DJKsK7F_.js → 0-DgHTujtC.js} +2 -2
  57. package/build/server/chunks/{0-DJKsK7F_.js.map → 0-DgHTujtC.js.map} +1 -1
  58. package/build/server/chunks/1-5bszWZCQ.js +9 -0
  59. package/build/server/chunks/{1-D4403Evz.js.map → 1-5bszWZCQ.js.map} +1 -1
  60. package/build/server/chunks/{2-fj0aW1I0.js → 2-CXlrhpR6.js} +2 -2
  61. package/build/server/chunks/{2-fj0aW1I0.js.map → 2-CXlrhpR6.js.map} +1 -1
  62. package/build/server/chunks/3-CGyRgNsB.js +13 -0
  63. package/build/server/chunks/{3-CCrTqwF9.js.map → 3-CGyRgNsB.js.map} +1 -1
  64. package/build/server/chunks/4-BuMxaapL.js +9 -0
  65. package/build/server/chunks/{4-vjHkix88.js.map → 4-BuMxaapL.js.map} +1 -1
  66. package/build/server/chunks/5-BhHQT7ic.js +9 -0
  67. package/build/server/chunks/{5-Dc6xvhmU.js.map → 5-BhHQT7ic.js.map} +1 -1
  68. package/build/server/chunks/6-Do2XsDIk.js +9 -0
  69. package/build/server/chunks/{6-CvdeNFQU.js.map → 6-Do2XsDIk.js.map} +1 -1
  70. package/build/server/chunks/{FormDialog-CUzCwBFr.js → FormDialog-BemX_bll.js} +5 -5
  71. package/build/server/chunks/{FormDialog-CUzCwBFr.js.map → FormDialog-BemX_bll.js.map} +1 -1
  72. package/build/server/chunks/{Logout-48MBrG2s.js → Logout-BhQS74v2.js} +3 -3
  73. package/build/server/chunks/{Logout-48MBrG2s.js.map → Logout-BhQS74v2.js.map} +1 -1
  74. package/build/server/chunks/_page.svelte-BdL0IPY2.js +11 -0
  75. package/build/server/chunks/{_page.svelte-BHwIILw0.js.map → _page.svelte-BdL0IPY2.js.map} +1 -1
  76. package/build/server/chunks/{_page.svelte-Yesd_T6C.js → _page.svelte-Cw9An0SZ.js} +4 -4
  77. package/build/server/chunks/{_page.svelte-Yesd_T6C.js.map → _page.svelte-Cw9An0SZ.js.map} +1 -1
  78. package/build/server/chunks/{_page.svelte-CNug2JTC.js → _page.svelte-D6BUZio7.js} +5 -5
  79. package/build/server/chunks/{_page.svelte-CNug2JTC.js.map → _page.svelte-D6BUZio7.js.map} +1 -1
  80. package/build/server/chunks/{_page.svelte-DSnarRUI.js → _page.svelte-Q_wBpED1.js} +4 -4
  81. package/build/server/chunks/{_page.svelte-DSnarRUI.js.map → _page.svelte-Q_wBpED1.js.map} +1 -1
  82. package/build/server/chunks/{error.svelte-DtpUafMU.js → error.svelte-DNQXZmIO.js} +3 -3
  83. package/build/server/chunks/error.svelte-DNQXZmIO.js.map +1 -0
  84. package/build/server/chunks/{hooks.server-BJTU7JI4.js → hooks.server-B7iBt6uC.js} +6 -6
  85. package/build/server/chunks/hooks.server-B7iBt6uC.js.map +1 -0
  86. package/build/server/chunks/{index-apo9QTc6.js → index-RTKpMYZ1.js} +2 -2
  87. package/build/server/chunks/{index-apo9QTc6.js.map → index-RTKpMYZ1.js.map} +1 -1
  88. package/build/server/chunks/{index-iqDDeMM6.js → index-wXTeP1jh.js} +275 -257
  89. package/build/server/chunks/index-wXTeP1jh.js.map +1 -0
  90. package/build/server/chunks/{exports-Cy4FWdYs.js → utils-h74ns7K6.js} +39 -2
  91. package/build/server/chunks/utils-h74ns7K6.js.map +1 -0
  92. package/build/server/index.js +600 -380
  93. package/build/server/index.js.map +1 -1
  94. package/build/server/manifest.js +8 -8
  95. package/build/server/manifest.js.map +1 -1
  96. package/dist/cli.js +6 -4
  97. package/dist/config.d.ts +8 -8
  98. package/dist/plugins.js +1 -1
  99. package/dist/requests.js +2 -2
  100. package/package.json +1 -1
  101. package/build/client/_app/immutable/chunks/BMQhMafy.js.br +0 -0
  102. package/build/client/_app/immutable/chunks/BMQhMafy.js.gz +0 -0
  103. package/build/client/_app/immutable/chunks/ButWEHh0.js.br +0 -0
  104. package/build/client/_app/immutable/chunks/ButWEHh0.js.gz +0 -0
  105. package/build/client/_app/immutable/chunks/C8C04JmV.js +0 -1
  106. package/build/client/_app/immutable/chunks/C8C04JmV.js.br +0 -0
  107. package/build/client/_app/immutable/chunks/C8C04JmV.js.gz +0 -0
  108. package/build/client/_app/immutable/chunks/Cj9PL7OG.js.br +0 -0
  109. package/build/client/_app/immutable/chunks/Cj9PL7OG.js.gz +0 -0
  110. package/build/client/_app/immutable/chunks/DN_VTkOW.js.br +0 -0
  111. package/build/client/_app/immutable/chunks/DN_VTkOW.js.gz +0 -0
  112. package/build/client/_app/immutable/chunks/DwJfO5YS.js +0 -3
  113. package/build/client/_app/immutable/chunks/DwJfO5YS.js.br +0 -0
  114. package/build/client/_app/immutable/chunks/DwJfO5YS.js.gz +0 -0
  115. package/build/client/_app/immutable/chunks/lSbGwHqC.js +0 -51
  116. package/build/client/_app/immutable/chunks/lSbGwHqC.js.br +0 -0
  117. package/build/client/_app/immutable/chunks/lSbGwHqC.js.gz +0 -0
  118. package/build/client/_app/immutable/chunks/x4Pz-wH_.js +0 -1
  119. package/build/client/_app/immutable/chunks/x4Pz-wH_.js.br +0 -0
  120. package/build/client/_app/immutable/chunks/x4Pz-wH_.js.gz +0 -0
  121. package/build/client/_app/immutable/entry/app.DLzwCGBk.js +0 -2
  122. package/build/client/_app/immutable/entry/app.DLzwCGBk.js.br +0 -0
  123. package/build/client/_app/immutable/entry/app.DLzwCGBk.js.gz +0 -0
  124. package/build/client/_app/immutable/entry/start.BoB-G5Ls.js +0 -1
  125. package/build/client/_app/immutable/entry/start.BoB-G5Ls.js.br +0 -2
  126. package/build/client/_app/immutable/entry/start.BoB-G5Ls.js.gz +0 -0
  127. package/build/client/_app/immutable/nodes/0.CE0uBbp0.js.br +0 -0
  128. package/build/client/_app/immutable/nodes/0.CE0uBbp0.js.gz +0 -0
  129. package/build/client/_app/immutable/nodes/1.9GlBYpox.js.br +0 -0
  130. package/build/client/_app/immutable/nodes/1.9GlBYpox.js.gz +0 -0
  131. package/build/client/_app/immutable/nodes/2.B3qXd01D.js.br +0 -0
  132. package/build/client/_app/immutable/nodes/2.B3qXd01D.js.gz +0 -0
  133. package/build/client/_app/immutable/nodes/3.DuwUIVtX.js +0 -7
  134. package/build/client/_app/immutable/nodes/3.DuwUIVtX.js.br +0 -0
  135. package/build/client/_app/immutable/nodes/3.DuwUIVtX.js.gz +0 -0
  136. package/build/client/_app/immutable/nodes/4.C0wscA_4.js.br +0 -0
  137. package/build/client/_app/immutable/nodes/4.C0wscA_4.js.gz +0 -0
  138. package/build/client/_app/immutable/nodes/5.CWS-YJ56.js +0 -1
  139. package/build/client/_app/immutable/nodes/5.CWS-YJ56.js.br +0 -0
  140. package/build/client/_app/immutable/nodes/5.CWS-YJ56.js.gz +0 -0
  141. package/build/client/_app/immutable/nodes/6.TEubHotu.js.br +0 -0
  142. package/build/client/_app/immutable/nodes/6.TEubHotu.js.gz +0 -0
  143. package/build/server/chunks/1-D4403Evz.js +0 -9
  144. package/build/server/chunks/3-CCrTqwF9.js +0 -13
  145. package/build/server/chunks/4-vjHkix88.js +0 -9
  146. package/build/server/chunks/5-Dc6xvhmU.js +0 -9
  147. package/build/server/chunks/6-CvdeNFQU.js +0 -9
  148. package/build/server/chunks/_page.svelte-BHwIILw0.js +0 -11
  149. package/build/server/chunks/error.svelte-DtpUafMU.js.map +0 -1
  150. package/build/server/chunks/exports-Cy4FWdYs.js.map +0 -1
  151. package/build/server/chunks/hooks.server-BJTU7JI4.js.map +0 -1
  152. package/build/server/chunks/index-iqDDeMM6.js.map +0 -1
@@ -1 +1 @@
1
- import"./DsnmJJEf.js";import{q as p,r as c,p as f,v as d,f as b,a as u}from"./C8C04JmV.js";import{d as v}from"./x4Pz-wH_.js";import{p as n,i as _}from"./Cj9PL7OG.js";import{F as h,l as k}from"./lSbGwHqC.js";var w=(t,o)=>{t.preventDefault(),o().close(),history.back()},y=f("<button>Take me back</button>"),L=f("<p>Are you sure you want to log out?</p> <!>",1);function A(t,o){p(o,!0);let a=n(o,"dialog",15),l=n(o,"fullPage",3,!1);h(t,{get pageMode(){return l()},submitText:"Log Out",submit:()=>k().then(()=>window.location.href="/"),get dialog(){return a()},set dialog(r){a(r)},children:(r,P)=>{var i=L(),g=d(b(i),2);{var m=e=>{var s=y();s.__click=[w,a],u(e,s)};_(g,e=>{l()&&e(m)})}u(r,i)},$$slots:{default:!0}}),c()}v(["click"]);export{A as L};
1
+ import"./DsnmJJEf.js";import{q as p,r as c,p as f,v as d,f as b,a as u}from"./D9TfJrfD.js";import{d as v}from"./Dy1O3iBu.js";import{p as n,i as _}from"./pba7IodQ.js";import{F as h,l as k}from"./CiUsfGrc.js";var w=(t,o)=>{t.preventDefault(),o().close(),history.back()},y=f("<button>Take me back</button>"),L=f("<p>Are you sure you want to log out?</p> <!>",1);function A(t,o){p(o,!0);let a=n(o,"dialog",15),l=n(o,"fullPage",3,!1);h(t,{get pageMode(){return l()},submitText:"Log Out",submit:()=>k().then(()=>window.location.href="/"),get dialog(){return a()},set dialog(r){a(r)},children:(r,P)=>{var i=L(),g=d(b(i),2);{var m=e=>{var s=y();s.__click=[w,a],u(e,s)};_(g,e=>{l()&&e(m)})}u(r,i)},$$slots:{default:!0}}),c()}v(["click"]);export{A as L};
@@ -1 +1 @@
1
- import{w as N,x as I,y as Y,E as B,M as C,N as M,O as U,P as j,Q as A,R as q,C as R,S as F,U as K,T as Z,V as G,W as $,G as z,X as H,Y as Q,h as D,Z as V,_ as O,a0 as w,a1 as W,a2 as X,a3 as T,a4 as J,a5 as k,a6 as ee,a7 as re,a8 as ne,a9 as se,aa as ae,ab as te,ac as y,ad as m,ae as ie,af as fe}from"./C8C04JmV.js";function de(e,r,s=!1){I&&Y();var n=e,a=null,t=null,f=K,b=s?B:0,v=!1;const _=(u,l=!0)=>{v=!0,g(l,u)};var o=null;function c(){o!==null&&(o.lastChild.remove(),n.before(o),o=null);var u=f?a:t,l=f?t:a;u&&G(u),l&&$(l,()=>{f?t=null:a=null})}const g=(u,l)=>{if(f===(f=u))return;let h=!1;if(I){const L=C(n)===M;!!f===L&&(n=U(),j(n),A(!1),h=!0)}var d=Z(),P=n;if(d&&(o=document.createDocumentFragment(),o.append(P=q())),f?a??=l&&R(()=>l(P)):t??=l&&R(()=>l(P)),d){var i=F,p=f?a:t,S=f?t:a;p&&i.skipped_effects.delete(p),S&&i.skipped_effects.add(S),i.add_callback(c)}else c();h&&A(!0)};N(()=>{v=!1,r(_),v||g(null,null)},b),I&&(n=z)}function x(e,r){return e===r||e?.[O]===r}function _e(e={},r,s,n){return H(()=>{var a,t;return Q(()=>{a=t,t=[],D(()=>{e!==s(...t)&&(r(e,...t),a&&x(s(...a),e)&&r(null,...a))})}),()=>{V(()=>{t&&x(s(...t),e)&&r(null,...t)})}}),e}let E=!1;function ue(e){var r=E;try{return E=!1,[e(),E]}finally{E=r}}const le={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function pe(e,r,s){return new Proxy({props:e,exclude:r},le)}const oe={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(y(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let a=e.props[n];y(a)&&(a=a());const t=w(a,r);if(t&&t.set)return t.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(y(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const a=w(n,r);return a&&!a.configurable&&(a.configurable=!0),a}}},has(e,r){if(r===O||r===m)return!1;for(let s of e.props)if(y(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(y(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function ve(...e){return new Proxy({props:e},oe)}function he(e,r,s,n){var a=(s&ae)!==0,t=(s&ie)!==0,f=n,b=!0,v=()=>(b&&(b=!1,f=t?D(n):n),f),_;if(a){var o=O in e||m in e;_=w(e,r)?.set??(o&&r in e?i=>e[r]=i:void 0)}var c,g=!1;a?[c,g]=ue(()=>e[r]):c=e[r],c===void 0&&n!==void 0&&(c=v(),_&&(W(),_(c)));var u;if(u=()=>{var i=e[r];return i===void 0?v():(b=!0,i)},(s&X)===0)return u;if(_){var l=e.$$legacy;return function(i,p){return arguments.length>0?((!p||l||g)&&_(p?u():i),i):u()}}var h=!1,d=((s&te)!==0?ne:se)(()=>(h=!1,u()));a&&T(d);var P=ee;return function(i,p){if(arguments.length>0){const S=p?T(d):a?J(i):i;return k(d,S),h=!0,f!==void 0&&(f=S),i}return fe&&h||(P.f&re)!==0?d.v:T(d)}}export{_e as b,de as i,he as p,pe as r,ve as s};
1
+ import{w as N,x as I,y as Y,E as B,M as C,N as M,O as U,P as j,Q as A,R as q,C as R,S as F,U as K,T as Z,V as G,W as $,G as z,X as H,Y as Q,h as D,Z as V,_ as O,a0 as w,a1 as W,a2 as X,a3 as T,a4 as J,a5 as k,a6 as ee,a7 as re,a8 as ne,a9 as se,aa as ae,ab as te,ac as y,ad as m,ae as ie,af as fe}from"./D9TfJrfD.js";function de(e,r,s=!1){I&&Y();var n=e,a=null,t=null,f=K,b=s?B:0,v=!1;const _=(u,l=!0)=>{v=!0,g(l,u)};var o=null;function c(){o!==null&&(o.lastChild.remove(),n.before(o),o=null);var u=f?a:t,l=f?t:a;u&&G(u),l&&$(l,()=>{f?t=null:a=null})}const g=(u,l)=>{if(f===(f=u))return;let h=!1;if(I){const L=C(n)===M;!!f===L&&(n=U(),j(n),A(!1),h=!0)}var d=Z(),P=n;if(d&&(o=document.createDocumentFragment(),o.append(P=q())),f?a??=l&&R(()=>l(P)):t??=l&&R(()=>l(P)),d){var i=F,p=f?a:t,S=f?t:a;p&&i.skipped_effects.delete(p),S&&i.skipped_effects.add(S),i.add_callback(c)}else c();h&&A(!0)};N(()=>{v=!1,r(_),v||g(null,null)},b),I&&(n=z)}function x(e,r){return e===r||e?.[O]===r}function _e(e={},r,s,n){return H(()=>{var a,t;return Q(()=>{a=t,t=[],D(()=>{e!==s(...t)&&(r(e,...t),a&&x(s(...a),e)&&r(null,...a))})}),()=>{V(()=>{t&&x(s(...t),e)&&r(null,...t)})}}),e}let E=!1;function ue(e){var r=E;try{return E=!1,[e(),E]}finally{E=r}}const le={get(e,r){if(!e.exclude.includes(r))return e.props[r]},set(e,r){return!1},getOwnPropertyDescriptor(e,r){if(!e.exclude.includes(r)&&r in e.props)return{enumerable:!0,configurable:!0,value:e.props[r]}},has(e,r){return e.exclude.includes(r)?!1:r in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(r=>!e.exclude.includes(r))}};function pe(e,r,s){return new Proxy({props:e,exclude:r},le)}const oe={get(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(y(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n)return n[r]}},set(e,r,s){let n=e.props.length;for(;n--;){let a=e.props[n];y(a)&&(a=a());const t=w(a,r);if(t&&t.set)return t.set(s),!0}return!1},getOwnPropertyDescriptor(e,r){let s=e.props.length;for(;s--;){let n=e.props[s];if(y(n)&&(n=n()),typeof n=="object"&&n!==null&&r in n){const a=w(n,r);return a&&!a.configurable&&(a.configurable=!0),a}}},has(e,r){if(r===O||r===m)return!1;for(let s of e.props)if(y(s)&&(s=s()),s!=null&&r in s)return!0;return!1},ownKeys(e){const r=[];for(let s of e.props)if(y(s)&&(s=s()),!!s){for(const n in s)r.includes(n)||r.push(n);for(const n of Object.getOwnPropertySymbols(s))r.includes(n)||r.push(n)}return r}};function ve(...e){return new Proxy({props:e},oe)}function he(e,r,s,n){var a=(s&ae)!==0,t=(s&ie)!==0,f=n,b=!0,v=()=>(b&&(b=!1,f=t?D(n):n),f),_;if(a){var o=O in e||m in e;_=w(e,r)?.set??(o&&r in e?i=>e[r]=i:void 0)}var c,g=!1;a?[c,g]=ue(()=>e[r]):c=e[r],c===void 0&&n!==void 0&&(c=v(),_&&(W(),_(c)));var u;if(u=()=>{var i=e[r];return i===void 0?v():(b=!0,i)},(s&X)===0)return u;if(_){var l=e.$$legacy;return(function(i,p){return arguments.length>0?((!p||l||g)&&_(p?u():i),i):u()})}var h=!1,d=((s&te)!==0?ne:se)(()=>(h=!1,u()));a&&T(d);var P=ee;return(function(i,p){if(arguments.length>0){const S=p?T(d):a?J(i):i;return k(d,S),h=!0,f!==void 0&&(f=S),i}return fe&&h||(P.f&re)!==0?d.v:T(d)})}export{_e as b,de as i,he as p,pe as r,ve as s};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DlE8ZTIF.js","../chunks/DsnmJJEf.js","../chunks/D9TfJrfD.js","../chunks/D3hk2v8y.js","../nodes/1.BAsobPu4.js","../chunks/Dy1O3iBu.js","../chunks/Dext3JFj.js","../chunks/D4Bce_hb.js","../nodes/2.CvEpuMc7.js","../nodes/3.C18mc0nK.js","../chunks/CiUsfGrc.js","../chunks/pba7IodQ.js","../chunks/XdRahthI.js","../nodes/4.eINJOagY.js","../nodes/5.DITFCLgK.js","../nodes/6.BbgUOuKV.js"])))=>i.map(i=>d[i]);
2
+ import{x as I,y as U,w as W,E as z,R as J,C as K,S as V,T as Y,G as H,W as Q,a5 as x,ad as X,a3 as m,j as Z,ag as $,aw as ee,q as te,ax as re,u as ae,ay as k,t as se,p as q,f as w,v as ne,a as p,r as oe,c as A,K as ie,L as ce,az as L,aA as le,J as ue}from"../chunks/D9TfJrfD.js";import{h as fe,m as de,u as me,s as _e}from"../chunks/Dy1O3iBu.js";import"../chunks/DsnmJJEf.js";import{o as he}from"../chunks/D4Bce_hb.js";import{p as O,i as T,b as S}from"../chunks/pba7IodQ.js";function C(l,e,s){I&&U();var i=l,n,r,t=null,a=null;function _(){r&&(Q(r),r=null),t&&(t.lastChild.remove(),i.before(t),t=null),r=a,a=null}W(()=>{if(n!==(n=e())){var h=Y();if(n){var c=i;h&&(t=document.createDocumentFragment(),t.append(c=J()),r&&V.skipped_effects.add(r)),a=K(()=>s(c,n))}h?V.add_callback(_):_()}},z),I&&(i=H)}function ve(l){return class extends ge{constructor(e){super({component:l,...e})}}}class ge{#t;#e;constructor(e){var s=new Map,i=(r,t)=>{var a=ee(t,!1,!1);return s.set(r,a),a};const n=new Proxy({...e.props||{},$$events:{}},{get(r,t){return m(s.get(t)??i(t,Reflect.get(r,t)))},has(r,t){return t===X?!0:(m(s.get(t)??i(t,Reflect.get(r,t))),Reflect.has(r,t))},set(r,t,a){return x(s.get(t)??i(t,a),a),Reflect.set(r,t,a)}});this.#e=(e.hydrate?fe:de)(e.component,{target:e.target,anchor:e.anchor,props:n,context:e.context,intro:e.intro??!1,recover:e.recover}),(!e?.props?.$$host||e.sync===!1)&&Z(),this.#t=n.$$events;for(const r of Object.keys(this.#e))r==="$set"||r==="$destroy"||r==="$on"||$(this,r,{get(){return this.#e[r]},set(t){this.#e[r]=t},enumerable:!0});this.#e.$set=r=>{Object.assign(n,r)},this.#e.$destroy=()=>{me(this.#e)}}$set(e){this.#e.$set(e)}$on(e,s){this.#t[e]=this.#t[e]||[];const i=(...n)=>s.call(this,...n);return this.#t[e].push(i),()=>{this.#t[e]=this.#t[e].filter(n=>n!==i)}}$destroy(){this.#e.$destroy()}}const ye="modulepreload",Ee=function(l,e){return new URL(l,e).href},N={},E=function(e,s,i){let n=Promise.resolve();if(s&&s.length>0){let h=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};const t=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),_=a?.nonce||a?.getAttribute("nonce");n=h(s.map(c=>{if(c=Ee(c,i),c in N)return;N[c]=!0;const d=c.endsWith(".css"),v=d?'[rel="stylesheet"]':"";if(!!i)for(let o=t.length-1;o>=0;o--){const u=t[o];if(u.href===c&&(!d||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${v}`))return;const f=document.createElement("link");if(f.rel=d?"stylesheet":ye,d||(f.as="script"),f.crossOrigin="",f.href=c,_&&f.setAttribute("nonce",_),document.head.appendChild(f),d)return new Promise((o,u)=>{f.addEventListener("load",o),f.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(t){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=t,window.dispatchEvent(a),!a.defaultPrevented)throw t}return n.then(t=>{for(const a of t||[])a.status==="rejected"&&r(a.reason);return e().catch(r)})},Se={};var be=q('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),pe=q("<!> <!>",1);function Pe(l,e){te(e,!0);let s=O(e,"components",23,()=>[]),i=O(e,"data_0",3,null),n=O(e,"data_1",3,null);re(()=>e.stores.page.set(e.page)),ae(()=>{e.stores,e.page,e.constructors,s(),e.form,i(),n(),e.stores.page.notify()});let r=k(!1),t=k(!1),a=k(null);he(()=>{const o=e.stores.page.subscribe(()=>{m(r)&&(x(t,!0),se().then(()=>{x(a,document.title||"untitled page",!0)}))});return x(r,!0),o});const _=L(()=>e.constructors[1]);var h=pe(),c=w(h);{var d=o=>{const u=L(()=>e.constructors[0]);var g=A(),P=w(g);C(P,()=>m(u),(y,b)=>{S(b(y,{get data(){return i()},get form(){return e.form},get params(){return e.page.params},children:(R,xe)=>{var j=A(),B=w(j);C(B,()=>m(_),(F,M)=>{S(M(F,{get data(){return n()},get form(){return e.form},get params(){return e.page.params}}),G=>s()[1]=G,()=>s()?.[1])}),p(R,j)},$$slots:{default:!0}}),R=>s()[0]=R,()=>s()?.[0])}),p(o,g)},v=o=>{const u=L(()=>e.constructors[0]);var g=A(),P=w(g);C(P,()=>m(u),(y,b)=>{S(b(y,{get data(){return i()},get form(){return e.form},get params(){return e.page.params}}),R=>s()[0]=R,()=>s()?.[0])}),p(o,g)};T(c,o=>{e.constructors[1]?o(d):o(v,!1)})}var D=ne(c,2);{var f=o=>{var u=be(),g=ie(u);{var P=y=>{var b=le();ue(()=>_e(b,m(a))),p(y,b)};T(g,y=>{m(t)&&y(P)})}ce(u),p(o,u)};T(D,o=>{m(r)&&o(f)})}p(l,h),oe()}const Ce=ve(Pe),De=[()=>E(()=>import("../nodes/0.DlE8ZTIF.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),()=>E(()=>import("../nodes/1.BAsobPu4.js"),__vite__mapDeps([4,1,2,5,6,7,3]),import.meta.url),()=>E(()=>import("../nodes/2.CvEpuMc7.js"),__vite__mapDeps([8,1,2]),import.meta.url),()=>E(()=>import("../nodes/3.C18mc0nK.js"),__vite__mapDeps([9,10,1,2,5,3,11,12]),import.meta.url),()=>E(()=>import("../nodes/4.eINJOagY.js"),__vite__mapDeps([13,1,2,5,11,10,3]),import.meta.url),()=>E(()=>import("../nodes/5.DITFCLgK.js"),__vite__mapDeps([14,1,12,2,5,11,10,3]),import.meta.url),()=>E(()=>import("../nodes/6.BbgUOuKV.js"),__vite__mapDeps([15,1,2,5,11,10,3]),import.meta.url)],je=[],Ie={"/_axium/default":[2],"/account":[3],"/login":[4],"/logout":[5],"/register":[6]},Re={handleError:(({error:l})=>{console.error(l)}),reroute:(()=>{}),transport:{}},we=Object.fromEntries(Object.entries(Re.transport).map(([l,e])=>[l,e.decode])),Ve=!1,Ne=(l,e)=>we[l](e);export{Ne as decode,we as decoders,Ie as dictionary,Ve as hash,Re as hooks,Se as matchers,De as nodes,Ce as root,je as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/Dext3JFj.js";export{o as load_css,r as start};
@@ -0,0 +1,2 @@
1
+ )�import{l as o,a as r}from"../chunks/Dext3JFj.js";export{o as load_css,r as start};
2
+ 
@@ -1 +1 @@
1
- import"../chunks/DsnmJJEf.js";import{c as n,f as m,a as p}from"../chunks/C8C04JmV.js";import{s as e}from"../chunks/BMQhMafy.js";function f(a,r){var o=n(),t=m(o);e(t,()=>r.children),p(a,o)}export{f as component};
1
+ import"../chunks/DsnmJJEf.js";import{c as n,f as m,a as p}from"../chunks/D9TfJrfD.js";import{s as e}from"../chunks/D3hk2v8y.js";function f(a,r){var o=n(),t=m(o);e(t,()=>r.children),p(a,o)}export{f as component};
@@ -1 +1 @@
1
- import"../chunks/DsnmJJEf.js";import{q as i,p as h,f as g,J as v,a as d,r as l,K as s,L as a,v as _}from"../chunks/C8C04JmV.js";import{s as o}from"../chunks/x4Pz-wH_.js";import{s as x,p}from"../chunks/DwJfO5YS.js";const $={get error(){return p.error},get status(){return p.status}};x.updated.check;const m=$;var k=h("<h1> </h1> <p> </p>",1);function K(c,n){i(n,!0);var t=k(),r=g(t),u=s(r,!0);a(r);var e=_(r,2),f=s(e,!0);a(e),v(()=>{o(u,m.status),o(f,m.error?.message)}),d(c,t),l()}export{K as component};
1
+ import"../chunks/DsnmJJEf.js";import{q as i,p as h,f as g,J as v,a as d,r as l,K as s,L as a,v as _}from"../chunks/D9TfJrfD.js";import{s as o}from"../chunks/Dy1O3iBu.js";import{s as x,p}from"../chunks/Dext3JFj.js";const $={get error(){return p.error},get status(){return p.status}};x.updated.check;const m=$;var k=h("<h1> </h1> <p> </p>",1);function K(c,n){i(n,!0);var t=k(),r=g(t),u=s(r,!0);a(r);var e=_(r,2),f=s(e,!0);a(e),v(()=>{o(u,m.status),o(f,m.error?.message)}),d(c,t),l()}export{K as component};
@@ -1 +1 @@
1
- import"../chunks/DsnmJJEf.js";import{p as o,a as l}from"../chunks/C8C04JmV.js";var t=o(`<div class="main"><h1>It works!</h1> <p>This is the default Axium page. You'll want to change it.</p> <h3>Helpful links</h3> <ul><li><a href="/register">Register</a></li> <li><a href="/login">Login</a></li> <li><a href="/logout">Logout</a></li> <li><a href="/account">Account</a></li></ul></div>`);function n(i){var a=t();l(i,a)}export{n as component};
1
+ import"../chunks/DsnmJJEf.js";import{p as o,a as l}from"../chunks/D9TfJrfD.js";var t=o(`<div class="main"><h1>It works!</h1> <p>This is the default Axium page. You'll want to change it.</p> <h3>Helpful links</h3> <ul><li><a href="/register">Register</a></li> <li><a href="/login">Login</a></li> <li><a href="/logout">Logout</a></li> <li><a href="/account">Account</a></li></ul></div>`);function n(i){var a=t();l(i,a)}export{n as component};
@@ -0,0 +1,7 @@
1
+ import{g as sa,e as ia,c as la,d as oa,a as at,f as Rt,s as ie,z as $,h as et,p as At,i as ca,j as Lt,k as Pt,m as va,F as Be,n as Ot,o as ua,q as da,t as gt,u as fa,v as _a,w as ha,x as ma,y as pa,A as ga,B as ba}from"../chunks/CiUsfGrc.js";import"../chunks/DsnmJJEf.js";import{Y as Ut,x as Ae,P as ut,H as Bt,w as ya,y as wa,a3 as r,a9 as jt,M as ka,N as xa,O as Dt,Q as bt,G as $e,al as Ea,aq as Ta,C as xt,T as Ca,S as Ia,aB as Mt,R as Yt,aw as Sa,aC as Nt,au as Wt,i as Aa,aD as ft,V as Gt,W as La,aE as _t,aF as Pa,aG as yt,F as Jt,an as Oa,aH as Da,at as Ma,aI as Na,a6 as Kt,aJ as Qt,Z as Xt,aK as Va,E as za,aL as Fa,aM as qa,X as Ha,h as Zt,aN as Ra,aj as $t,ac as Ua,D as je,aO as Ba,q as rt,aP as ja,J as U,a as p,r as nt,K as y,L as _,az as re,aQ as Et,p as A,ay as tt,a5 as Oe,aR as ea,a4 as Ge,c as Y,f as H,v as k,$ as Ya,I as Wa,aS as Ga}from"../chunks/D9TfJrfD.js";import{b as Ja,d as Qe,s as Q,a as Ka}from"../chunks/Dy1O3iBu.js";import{r as Qa,p as dt,i as z,b as ct}from"../chunks/pba7IodQ.js";import{L as Xa}from"../chunks/XdRahthI.js";function Je(a,e){Ae&&ut(Bt(a)),Ut(()=>{var t=e();for(var i in t){var n=t[i];n?a.style.setProperty(i,n):a.style.removeProperty(i)}})}function Le(a,e){return e}function Za(a,e,t){for(var i=a.items,n=[],w=e.length,f=0;f<w;f++)Da(e[f].e,n,!0);var c=w>0&&n.length===0&&t!==null;if(c){var d=t.parentNode;Ma(d),d.append(t),i.clear(),he(a,e[0].prev,e[w-1].next)}Na(n,()=>{for(var l=0;l<w;l++){var o=e[l];c||(i.delete(o.k),he(a,o.prev,o.next)),Jt(o.e,!c)}})}function Pe(a,e,t,i,n,w=null){var f=a,c={flags:e,items:new Map,first:null},d=(e&Qt)!==0;if(d){var l=a;f=Ae?ut(Bt(l)):l.appendChild(Yt())}Ae&&wa();var o=null,h=!1,E=new Map,P=jt(()=>{var b=t();return Aa(b)?b:b==null?[]:Wt(b)}),v,u;function s(){$a(u,v,c,E,f,n,e,i,t),w!==null&&(v.length===0?o?Gt(o):o=xt(()=>w(f)):o!==null&&La(o,()=>{o=null}))}ya(()=>{u??=Kt,v=r(P);var b=v.length;if(h&&b===0)return;h=b===0;let T=!1;if(Ae){var x=ka(f)===xa;x!==(b===0)&&(f=Dt(),ut(f),bt(!1),T=!0)}if(Ae){for(var N=null,S,g=0;g<b;g++){if($e.nodeType===Ea&&$e.data===Ta){f=$e,T=!0,bt(!1);break}var C=v[g],O=i(C,g);S=Tt($e,c,N,null,C,O,g,n,e,t),c.items.set(O,S),N=S}b>0&&ut(Dt())}if(Ae)b===0&&w&&(o=xt(()=>w(f)));else if(Ca()){var F=new Set,ve=Ia;for(g=0;g<b;g+=1){C=v[g],O=i(C,g);var ue=c.items.get(O)??E.get(O);ue?(e&(_t|ft))!==0&&ta(ue,C,g,e):(S=Tt(null,c,null,null,C,O,g,n,e,t,!0),E.set(O,S)),F.add(O)}for(const[ee,pe]of c.items)F.has(ee)||ve.skipped_effects.add(pe.e);ve.add_callback(s)}else s();T&&bt(!0),r(P)}),Ae&&(f=$e)}function $a(a,e,t,i,n,w,f,c,d){var l=(f&Va)!==0,o=(f&(_t|ft))!==0,h=e.length,E=t.items,P=t.first,v=P,u,s=null,b,T=[],x=[],N,S,g,C;if(l)for(C=0;C<h;C+=1)N=e[C],S=c(N,C),g=E.get(S),g!==void 0&&(g.a?.measure(),(b??=new Set).add(g));for(C=0;C<h;C+=1){if(N=e[C],S=c(N,C),g=E.get(S),g===void 0){var O=i.get(S);if(O!==void 0){i.delete(S),E.set(S,O);var F=s?s.next:v;he(t,s,O),he(t,O,F),wt(O,F,n),s=O}else{var ve=v?v.e.nodes_start:n;s=Tt(ve,t,s,s===null?t.first:s.next,N,S,C,w,f,d)}E.set(S,s),T=[],x=[],v=s.next;continue}if(o&&ta(g,N,C,f),(g.e.f&yt)!==0&&(Gt(g.e),l&&(g.a?.unfix(),(b??=new Set).delete(g))),g!==v){if(u!==void 0&&u.has(g)){if(T.length<x.length){var ue=x[0],ee;s=ue.prev;var pe=T[0],te=T[T.length-1];for(ee=0;ee<T.length;ee+=1)wt(T[ee],ue,n);for(ee=0;ee<x.length;ee+=1)u.delete(x[ee]);he(t,pe.prev,te.next),he(t,s,pe),he(t,te,ue),v=ue,s=te,C-=1,T=[],x=[]}else u.delete(g),wt(g,v,n),he(t,g.prev,g.next),he(t,g,s===null?t.first:s.next),he(t,s,g),s=g;continue}for(T=[],x=[];v!==null&&v.k!==S;)(v.e.f&yt)===0&&(u??=new Set).add(v),x.push(v),v=v.next;if(v===null)continue;g=v}T.push(g),s=g,v=g.next}if(v!==null||u!==void 0){for(var X=u===void 0?[]:Wt(u);v!==null;)(v.e.f&yt)===0&&X.push(v),v=v.next;var W=X.length;if(W>0){var ge=(f&Qt)!==0&&h===0?n:null;if(l){for(C=0;C<W;C+=1)X[C].a?.measure();for(C=0;C<W;C+=1)X[C].a?.fix()}Za(t,X,ge)}}l&&Xt(()=>{if(b!==void 0)for(g of b)g.a?.apply()}),a.first=t.first&&t.first.e,a.last=s&&s.e;for(var be of i.values())Jt(be.e);i.clear()}function ta(a,e,t,i){(i&_t)!==0&&Mt(a.v,e),(i&ft)!==0?Mt(a.i,t):a.i=t}function Tt(a,e,t,i,n,w,f,c,d,l,o){var h=(d&_t)!==0,E=(d&Pa)===0,P=h?E?Sa(n,!1,!1):Nt(n):n,v=(d&ft)===0?f:Nt(f),u={i:v,v:P,k:w,a:null,e:null,prev:t,next:i};try{if(a===null){var s=document.createDocumentFragment();s.append(a=Yt())}return u.e=xt(()=>c(a,P,v,l),Ae),u.e.prev=t&&t.e,u.e.next=i&&i.e,t===null?o||(e.first=u):(t.next=u,t.e.next=u.e),i!==null&&(i.prev=u,i.e.prev=u.e),u}finally{}}function wt(a,e,t){for(var i=a.next?a.next.e.nodes_start:t,n=e?e.e.nodes_start:t,w=a.e.nodes_start;w!==null&&w!==i;){var f=Oa(w);n.before(w),w=f}}function he(a,e,t){e===null?a.first=t:(e.next=t,e.e.next=t&&t.e),t!==null&&(t.prev=e,t.e.prev=e&&e.e)}const er=()=>performance.now(),De={tick:a=>requestAnimationFrame(a),now:()=>er(),tasks:new Set};function aa(){const a=De.now();De.tasks.forEach(e=>{e.c(a)||(De.tasks.delete(e),e.f())}),De.tasks.size!==0&&De.tick(aa)}function tr(a){let e;return De.tasks.size===0&&De.tick(aa),{promise:new Promise(t=>{De.tasks.add(e={c:a,f:t})}),abort(){De.tasks.delete(e)}}}function vt(a,e){$t(()=>{a.dispatchEvent(new CustomEvent(e))})}function ar(a){if(a==="float")return"cssFloat";if(a==="offset")return"cssOffset";if(a.startsWith("--"))return a;const e=a.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(t=>t[0].toUpperCase()+t.slice(1)).join("")}function Vt(a){const e={},t=a.split(";");for(const i of t){const[n,w]=i.split(":");if(!n||w===void 0)break;const f=ar(n.trim());e[f]=w.trim()}return e}const rr=a=>a;function zt(a,e,t,i){var n=(a&Ra)!==0,w="both",f,c=e.inert,d=e.style.overflow,l,o;function h(){return $t(()=>f??=t()(e,i?.()??{},{direction:w}))}var E={is_global:n,in(){e.inert=c,vt(e,"introstart"),l=Ct(e,h(),o,1,()=>{vt(e,"introend"),l?.abort(),l=f=void 0,e.style.overflow=d})},out(s){e.inert=!0,vt(e,"outrostart"),o=Ct(e,h(),l,0,()=>{vt(e,"outroend"),s?.()})},stop:()=>{l?.abort(),o?.abort()}},P=Kt;if((P.transitions??=[]).push(E),Ja){var v=n;if(!v){for(var u=P.parent;u&&(u.f&za)!==0;)for(;(u=u.parent)&&(u.f&Fa)===0;);v=!u||(u.f&qa)!==0}v&&Ha(()=>{Zt(()=>E.in())})}}function Ct(a,e,t,i,n){var w=i===1;if(Ua(e)){var f,c=!1;return Xt(()=>{if(!c){var s=e({direction:w?"in":"out"});f=Ct(a,s,t,i,n)}}),{abort:()=>{c=!0,f?.abort()},deactivate:()=>f.deactivate(),reset:()=>f.reset(),t:()=>f.t()}}if(t?.deactivate(),!e?.duration)return n(),{abort:je,deactivate:je,reset:je,t:()=>i};const{delay:d=0,css:l,tick:o,easing:h=rr}=e;var E=[];if(w&&t===void 0&&(o&&o(0,1),l)){var P=Vt(l(0,1));E.push(P,P)}var v=()=>1-i,u=a.animate(E,{duration:d,fill:"forwards"});return u.onfinish=()=>{u.cancel();var s=t?.t()??1-i;t?.abort();var b=i-s,T=e.duration*Math.abs(b),x=[];if(T>0){var N=!1;if(l)for(var S=Math.ceil(T/16.666666666666668),g=0;g<=S;g+=1){var C=s+b*h(g/S),O=Vt(l(C,1-C));x.push(O),N||=O.overflow==="hidden"}N&&(a.style.overflow="hidden"),v=()=>{var F=u.currentTime;return s+b*h(F/T)},o&&tr(()=>{if(u.playState!=="running")return!1;var F=v();return o(F,1-F),!0})}u=a.animate(x,{duration:T,fill:"forwards"}),u.onfinish=()=>{v=()=>i,o?.(i,1-i),n()}},{abort:()=>{u&&(u.cancel(),u.effect=null,u.onfinish=je)},deactivate:()=>{n=je},reset:()=>{i===0&&o?.(1,0)},t:()=>v()}}function nr(a,e,t=e){Ba(a,"change",i=>{var n=i?a.defaultChecked:a.checked;t(n)}),(Ae&&a.defaultChecked!==a.checked||Zt(e)==null)&&t(a.checked),Ut(()=>{var i=e();a.checked=!!i})}const sr=!1;async function ir(){let a;try{a=await sa()}catch{throw window.location.href="/login?after=/account","Missing session, redirecting to login"}const e=a.user;return{currentSession:a,user:e,passkeys:await oa(e.id),sessions:await la(e.id),canVerify:await ia(e.id)}}const pn=Object.freeze(Object.defineProperty({__proto__:null,load:ir,ssr:sr},Symbol.toStringTag,{value:"Module"}));var lr=ja("<svg><use></use></svg>");const or={hash:"svelte-1l501sr",code:"svg.svelte-1l501sr {width:var(--size, 1em);height:var(--size, 1em);display:inline-block;fill:var(--fill, hsl(var(--hue) 0 var(--fg-light)));}"};function me(a,e){rt(e,!0),at(a,or);const t=Qa(e,["$$slots","$$events","$$legacy","i"]),i=re(()=>e.i.includes("/")?e.i.split("/"):["solid",e.i]),n=re(()=>Et(r(i),2)),w=re(()=>r(n)[0]),f=re(()=>r(n)[1]),c=re(()=>`/icons/${r(w)}.svg#${r(f)}`);var d=lr();Rt(d,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"1em",height:"1em",...t}),void 0,void 0,"svelte-1l501sr");var l=y(d);_(d),U(()=>ie(l,"href",r(c))),p(a,d),nt()}Qe(["click"]);const cr=a=>a;function Ft(a,{delay:e=0,duration:t=400,easing:i=cr}={}){const n=+getComputedStyle(a).opacity;return{delay:e,duration:t,easing:i,css:w=>`opacity: ${w*n}`}}var kt={exports:{}},qt;function vr(){return qt||(qt=1,(function(a){var e=Object.prototype.hasOwnProperty,t="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(t=!1));function n(d,l,o){this.fn=d,this.context=l,this.once=o||!1}function w(d,l,o,h,E){if(typeof o!="function")throw new TypeError("The listener must be a function");var P=new n(o,h||d,E),v=t?t+l:l;return d._events[v]?d._events[v].fn?d._events[v]=[d._events[v],P]:d._events[v].push(P):(d._events[v]=P,d._eventsCount++),d}function f(d,l){--d._eventsCount===0?d._events=new i:delete d._events[l]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var l=[],o,h;if(this._eventsCount===0)return l;for(h in o=this._events)e.call(o,h)&&l.push(t?h.slice(1):h);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(o)):l},c.prototype.listeners=function(l){var o=t?t+l:l,h=this._events[o];if(!h)return[];if(h.fn)return[h.fn];for(var E=0,P=h.length,v=new Array(P);E<P;E++)v[E]=h[E].fn;return v},c.prototype.listenerCount=function(l){var o=t?t+l:l,h=this._events[o];return h?h.fn?1:h.length:0},c.prototype.emit=function(l,o,h,E,P,v){var u=t?t+l:l;if(!this._events[u])return!1;var s=this._events[u],b=arguments.length,T,x;if(s.fn){switch(s.once&&this.removeListener(l,s.fn,void 0,!0),b){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,o),!0;case 3:return s.fn.call(s.context,o,h),!0;case 4:return s.fn.call(s.context,o,h,E),!0;case 5:return s.fn.call(s.context,o,h,E,P),!0;case 6:return s.fn.call(s.context,o,h,E,P,v),!0}for(x=1,T=new Array(b-1);x<b;x++)T[x-1]=arguments[x];s.fn.apply(s.context,T)}else{var N=s.length,S;for(x=0;x<N;x++)switch(s[x].once&&this.removeListener(l,s[x].fn,void 0,!0),b){case 1:s[x].fn.call(s[x].context);break;case 2:s[x].fn.call(s[x].context,o);break;case 3:s[x].fn.call(s[x].context,o,h);break;case 4:s[x].fn.call(s[x].context,o,h,E);break;default:if(!T)for(S=1,T=new Array(b-1);S<b;S++)T[S-1]=arguments[S];s[x].fn.apply(s[x].context,T)}}return!0},c.prototype.on=function(l,o,h){return w(this,l,o,h,!1)},c.prototype.once=function(l,o,h){return w(this,l,o,h,!0)},c.prototype.removeListener=function(l,o,h,E){var P=t?t+l:l;if(!this._events[P])return this;if(!o)return f(this,P),this;var v=this._events[P];if(v.fn)v.fn===o&&(!E||v.once)&&(!h||v.context===h)&&f(this,P);else{for(var u=0,s=[],b=v.length;u<b;u++)(v[u].fn!==o||E&&!v[u].once||h&&v[u].context!==h)&&s.push(v[u]);s.length?this._events[P]=s.length===1?s[0]:s:f(this,P)}return this},c.prototype.removeAllListeners=function(l){var o;return l?(o=t?t+l:l,this._events[o]&&f(this,o)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=t,c.EventEmitter=c,a.exports=c})(kt)),kt.exports}vr();function ur(a,...e){const t={};for(const i of e.flat())t[i]=a[i];return t}function We(a,e,t=/[.[\]'"]/){return e.split(t).filter(i=>i&&i!="__proto__").reduce((i,n)=>i?.[n],a)}function dr(a,e,t,i=/[.[\]'"]/){return e.split(i).filter(n=>n&&n!="__proto__").reduce((n,w,f)=>n[w]=e.split(i).filter(c=>c).length===++f?t:n[w]||{},a)}function fr(a){return new Promise(e=>setTimeout(e,a))}const Ht=Intl.NumberFormat("en",{notation:"compact"});Ht.format.bind(Ht);new TextEncoder;new TextDecoder;async function _r(a,...e){const t=new Blob(e,{type:a}),i=new ClipboardItem({[a]:t});await navigator.clipboard.write([i])}async function hr(a,e,t,i){await _r(e(),t.value),Oe(i,!0),await fr(3e3),Oe(i,!1)}var mr=A('<span class="svelte-g409dh"><!></span>'),pr=A('<span class="svelte-g409dh"><!></span>'),gr=A('<button class="svelte-g409dh"><!></button>');const br={hash:"svelte-g409dh",code:"button.svelte-g409dh {position:relative;display:inline-block;width:1em;height:1em;border:none;background:transparent;}span.svelte-g409dh {position:absolute;inset:0;}"};function yr(a,e){rt(e,!0),at(a,br);const t=dt(e,"type",3,"text/plain");let i=tt(!1);var n=gr();n.__click=[hr,t,e,i];var w=y(n);{var f=d=>{var l=mr(),o=y(l);me(o,{i:"check"}),_(l),zt(3,l,()=>Ft),p(d,l)},c=d=>{var l=pr(),o=y(l);me(o,{i:"copy"}),_(l),zt(3,l,()=>Ft),p(d,l)};z(w,d=>{r(i)?d(f):d(c,!1)})}_(n),p(a,n),nt()}Qe(["click"]);var wr=A("<input/>"),kr=A('<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>',1),xr=A('<input type="checkbox" class="svelte-23hpnn"/> <label class="checkbox svelte-23hpnn"><!></label>',1),Er=A("<option> </option>"),Tr=A("<select></select>"),Cr=A('<div class="pref-record-entry"><!></div>'),Ir=A('<div class="pref-sub"></div>'),Sr=A('<div class="pref-record-entry"><label> </label> <!></div>'),Ar=A('<div class="pref-sub"></div>'),Lr=A('<div class="pref-sub"><label> </label> <!></div>'),Pr=A('<div class="pref-sub"></div>'),Or=A("<option> </option>"),Dr=A("<select></select>"),Mr=A('<i class="error-text"> </i>');const Nr={hash:"svelte-23hpnn",code:"input[type='checkbox'].svelte-23hpnn {display:none;}label.checkbox.svelte-23hpnn {cursor:pointer;width:1.5em;height:1.5em;border:1px solid var(--border-accent);border-radius:0.5em;display:inline-flex;justify-content:center;align-items:center;}"};function Ke(a,e){const t=ea();rt(e,!0),at(a,Nr);const i=(u,s=je)=>{var b=wr();et(b),Rt(b,()=>({id:t,...s(),value:r(d),onchange:o,required:!w()}),void 0,void 0,"svelte-23hpnn"),ct(b,T=>Oe(f,T),()=>r(f)),p(u,b)};let n=dt(e,"preferences",15),w=dt(e,"optional",3,!1),f=tt(void 0),c=tt(Ge(e.schema.def.type=="boolean"&&We(n(),e.path)));const d=re(()=>We(n(),e.path)??We(At,e.path));function l(u,s){if(!u)return null;const b=F=>String(F).padStart(2,"0"),T=u.getFullYear(),x=b(u.getMonth()+1),N=b(u.getDate()),S=`${T}-${x}-${N}`,g=b(u.getHours()),C=b(u.getMinutes()),O=`${g}:${C}`;switch(s){case"date":return S;case"time":return O;case"time+sec":return`${O}:${b(u.getSeconds())}`;case"datetime":default:return`${S}T${O}`}}function o(u){const s=e.schema.parse(r(f)instanceof HTMLInputElement&&r(f).type==="checkbox"?r(f).checked:r(f).value);if(s!=We(n(),e.path)){if(We(At,e.path)==s){const b=e.path.split("."),T=b.pop();delete We(n(),b.join("."))[T]}else dr(n(),e.path,s);ca("PATCH","users/:id",{preferences:n()},e.userId)}}var h=Y(),E=H(h);{var P=u=>{{let s=re(()=>({type:e.schema.format=="email"?"email":"text",...ur(e.schema,"minLength","maxLength")}));i(u,()=>r(s))}},v=u=>{var s=Y(),b=H(s);{var T=N=>{{let S=re(()=>({type:"number",min:e.schema.minValue,max:e.schema.maxValue,step:e.schema.format?.includes("int")?1:.1}));i(N,()=>r(S))}},x=N=>{var S=Y(),g=H(S);{var C=F=>{{let ve=re(()=>({type:"number",min:Number(e.schema.minValue),max:Number(e.schema.maxValue),step:1}));i(F,()=>r(ve))}},O=F=>{var ve=Y(),ue=H(ve);{var ee=te=>{var X=xr(),W=H(X);et(W),W.__change=o,ct(W,G=>Oe(f,G),()=>r(f));var ge=k(W,2),be=y(ge);{var de=G=>{var Fe=kr(),Me=H(Fe);Je(Me,()=>({"--size":"1.3em"})),me(Me.lastChild,{i:"check"}),_(Me),p(G,Fe)};z(be,G=>{r(c)&&G(de)})}_(ge),U(()=>{ie(W,"id",t),W.required=!w(),ie(ge,"for",t)}),nr(W,()=>r(c),G=>Oe(c,G)),p(te,X)},pe=te=>{var X=Y(),W=H(X);{var ge=de=>{{let G=re(()=>({type:"date",min:l(e.schema.minDate,"date"),max:l(e.schema.maxDate,"date")}));i(de,()=>r(G))}},be=de=>{var G=Y(),Fe=H(G);{var Me=Ne=>{},Xe=Ne=>{var st=Y(),Ze=H(st);{var it=fe=>{var le=Tr();le.__change=o,Pe(le,21,()=>e.schema.values,Le,(ye,we)=>{var oe=Er(),ke=y(oe,!0);_(oe);var qe={};U(()=>{Lt(oe,r(d)===r(we)),Q(ke,r(we)),qe!==(qe=r(we))&&(oe.value=(oe.__value=r(we))??"")}),p(ye,oe)}),_(le),ct(le,ye=>Oe(f,ye),()=>r(f)),U(()=>{ie(le,"id",t),le.required=!w()}),p(fe,le)},lt=fe=>{var le=Y(),ye=H(le);{var we=ke=>{},oe=ke=>{var qe=Y(),ot=H(qe);{var ht=m=>{Ke(m,{get userId(){return e.userId},get path(){return e.path},get schema(){return e.schema.def.innerType},optional:!0,get preferences(){return n()},set preferences(M){n(M)}})},I=m=>{var M=Y(),R=H(M);{var B=Z=>{var ne=Ir();Pe(ne,21,()=>r(d),Le,(xe,He,Ee)=>{var ae=Cr(),J=y(ae);Ke(J,{get userId(){return e.userId},get path(){return`${e.path??""}.${Ee}`},get schema(){return e.schema.element},get preferences(){return n()},set preferences(Te){n(Te)}}),_(ae),p(xe,ae)}),_(ne),p(Z,ne)},j=Z=>{var ne=Y(),xe=H(ne);{var He=ae=>{var J=Ar();Pe(J,21,()=>Object.keys(r(d)),Le,(Te,Ce)=>{var Ie=Sr(),D=y(Ie),K=y(D,!0);_(D);var ce=k(D,2);Ke(ce,{get userId(){return e.userId},get path(){return`${e.path??""}.${r(Ce)??""}`},get schema(){return e.schema.valueType},get preferences(){return n()},set preferences(Se){n(Se)}}),_(Ie),U(()=>{ie(D,"for",t),Q(K,r(Ce))}),p(Te,Ie)}),_(J),p(ae,J)},Ee=ae=>{var J=Y(),Te=H(J);{var Ce=D=>{var K=Y(),ce=H(K);Pe(ce,17,()=>Object.entries(e.schema.shape),Le,(Se,L)=>{var q=re(()=>Et(r(L),2));let V=()=>r(q)[0],Ve=()=>r(q)[1];var Re=Lr(),ze=y(Re),_e=y(ze,!0);_(ze);var se=k(ze,2);Ke(se,{get userId(){return e.userId},get path(){return`${e.path??""}.${V()??""}`},get schema(){return Ve()},get preferences(){return n()},set preferences(Ue){n(Ue)}}),_(Re),U(()=>{ie(ze,"for",t),Q(_e,V())}),p(Se,Re)}),p(D,K)},Ie=D=>{var K=Y(),ce=H(K);{var Se=q=>{var V=Pr();Pe(V,21,()=>e.schema.def.items,Le,(Ve,Re,ze)=>{Ke(Ve,{get userId(){return e.userId},get path(){return`${e.path??""}.${ze}`},get schema(){return r(Re)},get preferences(){return n()},set preferences(_e){n(_e)}})}),_(V),U(()=>ie(V,"data-rest",e.schema.def.rest)),p(q,V)},L=q=>{var V=Y(),Ve=H(V);{var Re=_e=>{var se=Dr();se.__change=o,Pe(se,21,()=>Object.entries(e.schema.enum),Le,(Ue,mt)=>{var It=re(()=>Et(r(mt),2));let ra=()=>r(It)[0],pt=()=>r(It)[1];var Ye=Or(),na=y(Ye,!0);_(Ye);var St={};U(()=>{Lt(Ye,r(d)===pt()),Q(na,ra()),St!==(St=pt())&&(Ye.value=(Ye.__value=pt())??"")}),p(Ue,Ye)}),_(se),ct(se,Ue=>Oe(f,Ue),()=>r(f)),U(()=>{ie(se,"id",t),se.required=!w()}),p(_e,se)},ze=_e=>{var se=Mr(),Ue=y(se);_(se),U(mt=>Q(Ue,`Invalid preference type: ${mt??""}`),[()=>JSON.stringify(e.schema?.def?.type)]),p(_e,se)};z(Ve,_e=>{$(e.schema,"enum")?_e(Re):_e(ze,!1)},!0)}p(q,V)};z(ce,q=>{$(e.schema,"tuple")?q(Se):q(L,!1)},!0)}p(D,K)};z(Te,D=>{$(e.schema,"object")?D(Ce):D(Ie,!1)},!0)}p(ae,J)};z(xe,ae=>{$(e.schema,"record")?ae(He):ae(Ee,!1)},!0)}p(Z,ne)};z(R,Z=>{$(e.schema,"array")?Z(B):Z(j,!1)},!0)}p(m,M)};z(ot,m=>{$(e.schema,"nullable")||$(e.schema,"optional")?m(ht):m(I,!1)},!0)}p(ke,qe)};z(ye,ke=>{$(e.schema,"template_literal")?ke(we):ke(oe,!1)},!0)}p(fe,le)};z(Ze,fe=>{$(e.schema,"literal")?fe(it):fe(lt,!1)},!0)}p(Ne,st)};z(Fe,Ne=>{$(e.schema,"file")?Ne(Me):Ne(Xe,!1)},!0)}p(de,G)};z(W,de=>{$(e.schema,"date")?de(ge):de(be,!1)},!0)}p(te,X)};z(ue,te=>{$(e.schema,"boolean")?te(ee):te(pe,!1)},!0)}p(F,ve)};z(g,F=>{$(e.schema,"bigint")?F(C):F(O,!1)},!0)}p(N,S)};z(b,N=>{$(e.schema,"number")?N(T):N(x,!1)},!0)}p(u,s)};z(E,u=>{$(e.schema,"string")?u(P):u(v,!1)})}p(a,h),nt()}Qe(["change"]);var Vr=A('<div class="pref svelte-b9ddyh"><label> </label> <!></div>');const zr={hash:"svelte-b9ddyh",code:".pref.svelte-b9ddyh {display:grid;grid-template-columns:1fr 1fr;gap:1em;}"};function Fr(a,e){const t=ea();rt(e,!0),at(a,zr);let i=dt(e,"preferences",15);var n=Y(),w=H(n);Pe(w,17,()=>Object.keys(Pt),Le,(f,c)=>{var d=Vr(),l=y(d),o=y(l,!0);_(l);var h=k(l,2);Ke(h,{get userId(){return e.userId},get path(){return r(c)},get schema(){return Pt[r(c)]},get preferences(){return i()},set preferences(E){i(E)}}),_(d),U(()=>{ie(l,"for",t),Q(o,va[r(c)])}),p(f,d)}),p(a,n),nt()}Qe(["click"]);Qe(["click"]);var qr=(a,e,t)=>e[t()].showModal(),Hr=A('<button class="svelte-c74k6c"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></button>'),Rr=A('<div><label for="name">What do you want to be called?</label> <input name="name" type="text" required/></div>'),Ur=A("<dfn><!></dfn>"),Br=(a,e,t)=>ba(r(e).id).then(()=>Oe(t,!0)),jr=A("<button> </button>"),Yr=A('<div><label for="email">Email Address</label> <input name="email" type="email" required/></div>'),Wr=(a,e)=>e.logout.showModal(),Gr=(a,e)=>e.delete.showModal(),Jr=A("<p>Are you sure you want to delete your account?<br/>This action can't be undone.</p>"),Kr=A("<p> </p>"),Qr=A('<p class="subtle"><i>Unnamed</i></p>'),Xr=A('<dfn title="You must have at least one passkey" class="disabled svelte-c74k6c"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></dfn>'),Zr=A('<div><label for="name">Passkey Name</label> <input name="name" type="text"/></div>'),$r=A("<p>Are you sure you want to delete this passkey?<br/>This action can't be undone.</p>"),en=A('<div class="item passkey svelte-c74k6c"><dfn class="svelte-c74k6c"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></dfn> <dfn class="svelte-c74k6c"><svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></dfn> <!> <p> </p> <!> <!></div> <!> <!>',1),tn=(a,e,t)=>ua(r(e).id).then(t.push.bind(t)),an=A('<span class="current svelte-c74k6c">Current</span>'),rn=A('<span class="elevated svelte-c74k6c">Elevated</span>'),nn=A("<p>Are you sure you want to log out this session?</p>"),sn=A('<div class="item session svelte-c74k6c"><p> <!> <!></p> <p> </p> <p> </p> <!></div> <!>',1),ln=(a,e)=>e.logout_all.showModal(),on=A("<p>Are you sure you want to log out all sessions?</p>"),cn=A(`<div class="Account flex-content"><div id="pfp-container" class="svelte-c74k6c"><img id="pfp" alt="User profile" width="100px" height="100px" class="svelte-c74k6c"/></div> <p class="greeting svelte-c74k6c"> </p> <div class="section main svelte-c74k6c"><h3>Personal Information</h3> <div class="item info svelte-c74k6c"><p class="subtle svelte-c74k6c">Name</p> <p class="svelte-c74k6c"> </p> <!></div> <!> <div class="item info svelte-c74k6c"><p class="subtle svelte-c74k6c">Email</p> <p class="svelte-c74k6c"> <!></p> <!></div> <!> <div class="item info svelte-c74k6c"><p class="subtle svelte-c74k6c">User ID <dfn title="This is your UUID. It can't be changed."><!></dfn></p> <p class="svelte-c74k6c"> </p> <svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper></div> <span><button class="signout svelte-c74k6c">Sign Out</button> <button class="danger">Delete Account</button> <!> <!></span></div> <div class="section main svelte-c74k6c"><h3>Passkeys</h3> <!> <span><button class="icon-text"><!> Create</button></span></div> <div class="section main svelte-c74k6c"><h3>Sessions</h3> <!> <span><button class="danger">Logout All</button></span> <!></div> <div class="section main svelte-c74k6c"><h3>Preferences</h3> <!></div></div>`);const vn={hash:"svelte-c74k6c",code:`#pfp-container.svelte-c74k6c {width:100px;height:100px;margin-top:3em;.MenuToggle {float:right;position:relative;top:-24px;}}#pfp.svelte-c74k6c {width:100px;height:100px;border-radius:50%;border:1px solid #8888;}.greeting.svelte-c74k6c {font-size:2em;}.signout.svelte-c74k6c {margin-top:2em;}.section.svelte-c74k6c {width:50%;padding-top:4em;
2
+
3
+ /* This is causing duplicate separators when removing sessions/passkeys
4
+ > div:has(+ div) {
5
+ border-bottom: 1px solid #8888;
6
+ }
7
+ */}.section.svelte-c74k6c .item:where(.svelte-c74k6c) {display:grid;align-items:center;width:100%;gap:1em;text-wrap:nowrap;border-top:1px solid #8888;padding-bottom:1em;}.info.svelte-c74k6c {grid-template-columns:10em 1fr 2em;> :where(.svelte-c74k6c):first-child {margin-left:1em;}> :where(.svelte-c74k6c):nth-child(2) {text-overflow:ellipsis;overflow:hidden;}}.passkey.svelte-c74k6c {grid-template-columns:1em 1em 1fr 1fr 1em 1em;dfn:where(.svelte-c74k6c):not(.disabled) {cursor:help;}}.session.svelte-c74k6c {grid-template-columns:1fr 1fr 1fr 1em;.current:where(.svelte-c74k6c) {border-radius:2em;padding:0 0.5em;background-color:#337;}.elevated:where(.svelte-c74k6c) {border-radius:2em;padding:0 0.5em;background-color:#733;}}`};function gn(a,e){rt(e,!0),at(a,vn);const t=(I,m=je,M)=>{let R=jt(()=>Ga(M?.(),"pen"));var B=Hr();B.__click=[qr,n,m],Ot(B,"",{},{display:"contents"});var j=y(B);Je(j,()=>({"--size":"16px"})),me(j.lastChild,{get i(){return r(R)}}),_(j),_(B),p(I,B)},{canVerify:i}=e.data,n=Ge({});let w=tt(!1),f=Ge(e.data.currentSession),c=tt(Ge(e.data.user)),d=Ge(e.data.passkeys),l=Ge(e.data.sessions);async function o(I){const m=await ha(r(c).id,I);Oe(c,m,!0)}var h=cn();Ka(I=>{Ya.title="Account"});var E=y(h),P=y(E);_(E);var v=k(E,2),u=y(v);_(v);var s=k(v,2),b=k(y(s),2),T=k(y(b),2),x=y(T,!0);_(T);var N=k(T,2);t(N,()=>"edit_name"),_(b);var S=k(b,2);Be(S,{submit:o,submitText:"Change",get dialog(){return n.edit_name},set dialog(I){n.edit_name=I},children:(I,m)=>{var M=Rr(),R=k(y(M),2);et(R),_(M),U(()=>gt(R,r(c).name||"")),p(I,M)},$$slots:{default:!0}});var g=k(S,2),C=k(y(g),2),O=y(C),F=k(O);{var ve=I=>{var m=Ur(),M=y(m);me(M,{i:"regular/circle-check"}),_(m),U(R=>ie(m,"title",`Email verified on ${R??""}`),[()=>r(c).emailVerified.toLocaleDateString()]),p(I,m)},ue=I=>{var m=Y(),M=H(m);{var R=B=>{var j=jr();j.__click=[Br,c,w];var Z=y(j,!0);_(j),U(()=>Q(Z,r(w)?"Verification email sent":"Verify")),p(B,j)};z(M,B=>{i&&B(R)},!0)}p(I,m)};z(F,I=>{r(c).emailVerified?I(ve):I(ue,!1)})}_(C);var ee=k(C,2);t(ee,()=>"edit_email"),_(g);var pe=k(g,2);Be(pe,{submit:o,submitText:"Change",get dialog(){return n.edit_email},set dialog(I){n.edit_email=I},children:(I,m)=>{var M=Yr(),R=k(y(M),2);et(R),_(M),U(()=>gt(R,r(c).email||"")),p(I,M)},$$slots:{default:!0}});var te=k(pe,2),X=y(te),W=k(y(X)),ge=y(W);me(ge,{i:"regular/circle-info"}),_(W),_(X);var be=k(X,2),de=y(be,!0);_(be);var G=k(be,2);Je(G,()=>({"--size":"16px"})),yr(G.lastChild,{get value(){return r(c).id}}),_(G),_(te);var Fe=k(te,2),Me=y(Fe);Me.__click=[Wr,n];var Xe=k(Me,2);Xe.__click=[Gr,n],Ot(Xe,"",{},{cursor:"pointer"});var Ne=k(Xe,2);Xa(Ne,{get dialog(){return n.logout},set dialog(I){n.logout=I}});var st=k(Ne,2);Be(st,{submit:()=>fa(r(c).id).then(()=>window.location.href="/"),submitText:"Delete Account",submitDanger:!0,get dialog(){return n.delete},set dialog(I){n.delete=I},children:(I,m)=>{var M=Jr();p(I,M)},$$slots:{default:!0}}),_(Fe),_(s);var Ze=k(s,2),it=k(y(Ze),2);Pe(it,17,()=>d,Le,(I,m,M)=>{var R=en(),B=H(R),j=y(B),Z=y(j);{let L=re(()=>r(m).deviceType=="multiDevice"?"laptop-mobile":"mobile");Je(Z,()=>({"--size":"16px"})),me(Z.lastChild,{get i(){return r(L)}}),_(Z)}_(j);var ne=k(j,2),xe=y(ne);{let L=re(()=>r(m).backedUp?"circle-check":"circle-xmark");Je(xe,()=>({"--size":"16px"})),me(xe.lastChild,{get i(){return r(L)}}),_(xe)}_(ne);var He=k(ne,2);{var Ee=L=>{var q=Kr(),V=y(q,!0);_(q),U(()=>Q(V,r(m).name)),p(L,q)},ae=L=>{var q=Qr();p(L,q)};z(He,L=>{r(m).name?L(Ee):L(ae,!1)})}var J=k(He,2),Te=y(J);_(J);var Ce=k(J,2);t(Ce,()=>"edit_passkey#"+r(m).id);var Ie=k(Ce,2);{var D=L=>{t(L,()=>"delete_passkey#"+r(m).id,()=>"trash")},K=L=>{var q=Xr(),V=y(q);Je(V,()=>({"--fill":"#888","--size":"16px"})),me(V.lastChild,{i:"trash-slash"}),_(V),_(q),p(L,q)};z(Ie,L=>{d.length>1?L(D):L(K,!1)})}_(B);var ce=k(B,2);Be(ce,{submit:L=>{if(typeof L.name!="string")throw"Passkey name must be a string";return r(m).name=L.name,ma(r(m).id,L)},submitText:"Change",get dialog(){return n["edit_passkey#"+r(m).id]},set dialog(L){n["edit_passkey#"+r(m).id]=L},children:(L,q)=>{var V=Zr(),Ve=k(y(V),2);et(Ve),_(V),U(()=>gt(Ve,r(m).name||"")),p(L,V)},$$slots:{default:!0}});var Se=k(ce,2);Be(Se,{submit:()=>pa(r(m).id).then(()=>d.splice(d.indexOf(r(m)),1)),submitText:"Delete",submitDanger:!0,get dialog(){return n["delete_passkey#"+r(m).id]},set dialog(L){n["delete_passkey#"+r(m).id]=L},children:(L,q)=>{var V=$r();p(L,V)},$$slots:{default:!0}}),U(L=>{ie(j,"title",r(m).deviceType=="multiDevice"?"Multiple devices":"Single device"),ie(ne,"title",`This passkey is ${r(m).backedUp?"":"not "}backed up`),Q(Te,`Created ${L??""}`)},[()=>r(m).createdAt.toLocaleString()]),p(I,R)});var lt=k(it,2),fe=y(lt);fe.__click=[tn,c,d];var le=y(fe);me(le,{i:"plus"}),Wa(),_(fe),_(lt),_(Ze);var ye=k(Ze,2),we=k(y(ye),2);Pe(we,17,()=>l,Le,(I,m)=>{var M=sn(),R=H(M),B=y(R),j=y(B),Z=k(j);{var ne=D=>{var K=an();p(D,K)};z(Z,D=>{r(m).id==f.id&&D(ne)})}var xe=k(Z,2);{var He=D=>{var K=rn();p(D,K)};z(xe,D=>{r(m).elevated&&D(He)})}_(B);var Ee=k(B,2),ae=y(Ee);_(Ee);var J=k(Ee,2),Te=y(J);_(J);var Ce=k(J,2);t(Ce,()=>"logout#"+r(m).id,()=>"right-from-bracket"),_(R);var Ie=k(R,2);Be(Ie,{submit:async()=>{await ga(r(c).id,r(m).id),n["logout#"+r(m).id].remove(),l.splice(l.indexOf(r(m)),1),r(m).id==f.id&&(window.location.href="/")},submitText:"Logout",get dialog(){return n["logout#"+r(m).id]},set dialog(D){n["logout#"+r(m).id]=D},children:(D,K)=>{var ce=nn();p(D,ce)},$$slots:{default:!0}}),U((D,K,ce,Se)=>{Q(j,`${D??""}...${K??""} `),Q(ae,`Created ${ce??""}`),Q(Te,`Expires ${Se??""}`)},[()=>r(m).id.slice(0,4),()=>r(m).id.slice(-4),()=>r(m).created.toLocaleString(),()=>r(m).expires.toLocaleString()]),p(I,M)});var oe=k(we,2),ke=y(oe);ke.__click=[ln,n],_(oe);var qe=k(oe,2);Be(qe,{submit:()=>_a(r(c).id).then(()=>window.location.href="/"),submitText:"Logout All Sessions",submitDanger:!0,get dialog(){return n.logout_all},set dialog(I){n.logout_all=I},children:(I,m)=>{var M=on();p(I,M)},$$slots:{default:!0}}),_(ye);var ot=k(ye,2),ht=k(y(ot),2);Fr(ht,{get userId(){return r(c).id},get preferences(){return r(c).preferences},set preferences(I){r(c).preferences=I}}),_(ot),_(h),U(I=>{ie(P,"src",I),Q(u,`Welcome, ${r(c).name??""}`),Q(x,r(c).name),Q(O,`${r(c).email??""} `),Q(de,r(c).id)},[()=>da(r(c))]),p(a,h),nt()}Qe(["click"]);export{gn as component,pn as universal};
@@ -1 +1 @@
1
- import"../chunks/DsnmJJEf.js";import{q as c,r as v,p as d,a as s,c as h,f as _,$ as b}from"../chunks/C8C04JmV.js";import{a as q}from"../chunks/x4Pz-wH_.js";import{p as f,i as w}from"../chunks/Cj9PL7OG.js";import{a as y,F as P,b as $}from"../chunks/lSbGwHqC.js";var x=d('<div class="footer svelte-16cw95q"><a href="/register">Register instead</a></div>'),L=d('<div><label for="email">Email</label> <input name="email" type="email" required/></div>');const k={hash:"svelte-16cw95q",code:".footer.svelte-16cw95q {margin-bottom:1em;text-align:center;background:none;}"};function E(o,a){c(a,!0),y(o,k);let n=f(a,"dialog",15),m=f(a,"fullPage",3,!1);function g(t){if(typeof t.email!="string")throw"Tried to upload a file for an email. Huh?!";return $(t.email)}P(o,{submitText:"Login",submit:g,get pageMode(){return m()},get dialog(){return n()},set dialog(e){n(e)},footer:e=>{var r=h(),i=_(r);{var u=l=>{var p=x();s(l,p)};w(i,l=>{m()&&l(u)})}s(e,r)},children:(e,r)=>{var i=L();s(e,i)},$$slots:{footer:!0,default:!0}}),v()}function M(o){q(a=>{b.title="Login"}),E(o,{fullPage:!0})}export{M as component};
1
+ import"../chunks/DsnmJJEf.js";import{q as c,r as v,p as d,a as s,c as h,f as _,$ as b}from"../chunks/D9TfJrfD.js";import{a as q}from"../chunks/Dy1O3iBu.js";import{p as f,i as w}from"../chunks/pba7IodQ.js";import{a as y,F as P,b as $}from"../chunks/CiUsfGrc.js";var x=d('<div class="footer svelte-16cw95q"><a href="/register">Register instead</a></div>'),L=d('<div><label for="email">Email</label> <input name="email" type="email" required/></div>');const k={hash:"svelte-16cw95q",code:".footer.svelte-16cw95q {margin-bottom:1em;text-align:center;background:none;}"};function E(o,a){c(a,!0),y(o,k);let n=f(a,"dialog",15),m=f(a,"fullPage",3,!1);function g(t){if(typeof t.email!="string")throw"Tried to upload a file for an email. Huh?!";return $(t.email)}P(o,{submitText:"Login",submit:g,get pageMode(){return m()},get dialog(){return n()},set dialog(e){n(e)},footer:e=>{var r=h(),i=_(r);{var u=l=>{var p=x();s(l,p)};w(i,l=>{m()&&l(u)})}s(e,r)},children:(e,r)=>{var i=L();s(e,i)},$$slots:{footer:!0,default:!0}}),v()}function M(o){q(a=>{b.title="Login"}),E(o,{fullPage:!0})}export{M as component};
@@ -0,0 +1 @@
1
+ import"../chunks/DsnmJJEf.js";import{L as t}from"../chunks/XdRahthI.js";function r(o){t(o,{fullPage:!0})}export{r as component};
@@ -1 +1 @@
1
- import"../chunks/DsnmJJEf.js";import{q as p,r as u,p as f,a as l,c,f as v,I as b,$ as _}from"../chunks/C8C04JmV.js";import{a as h}from"../chunks/x4Pz-wH_.js";import{p as m,i as q}from"../chunks/Cj9PL7OG.js";import{a as x,F as y,r as P}from"../chunks/lSbGwHqC.js";var $=f('<div class="footer svelte-16cw95q"><a href="/login">Login instead</a></div>'),w=f('<div><label for="name">Display Name</label> <input name="name" type="text" required/></div> <div><label for="email">Email</label> <input name="email" type="email" required/></div>',1);const k={hash:"svelte-16cw95q",code:".footer.svelte-16cw95q {margin-bottom:1em;text-align:center;background:none;}"};function D(a,t){p(t,!0),x(a,k);let s=m(t,"dialog",15),n=m(t,"fullPage",3,!1);y(a,{submitText:"Register",get submit(){return P},get pageMode(){return n()},get dialog(){return s()},set dialog(e){s(e)},footer:e=>{var r=c(),o=v(r);{var d=i=>{var g=$();l(i,g)};q(o,i=>{n()&&i(d)})}l(e,r)},children:(e,r)=>{var o=w();b(2),l(e,o)},$$slots:{footer:!0,default:!0}}),u()}function N(a){h(t=>{_.title="Sign Up"}),D(a,{fullPage:!0})}export{N as component};
1
+ import"../chunks/DsnmJJEf.js";import{q as p,r as u,p as f,a as l,c,f as v,I as b,$ as _}from"../chunks/D9TfJrfD.js";import{a as h}from"../chunks/Dy1O3iBu.js";import{p as m,i as q}from"../chunks/pba7IodQ.js";import{a as x,F as y,r as P}from"../chunks/CiUsfGrc.js";var $=f('<div class="footer svelte-16cw95q"><a href="/login">Login instead</a></div>'),w=f('<div><label for="name">Display Name</label> <input name="name" type="text" required/></div> <div><label for="email">Email</label> <input name="email" type="email" required/></div>',1);const k={hash:"svelte-16cw95q",code:".footer.svelte-16cw95q {margin-bottom:1em;text-align:center;background:none;}"};function D(a,t){p(t,!0),x(a,k);let s=m(t,"dialog",15),n=m(t,"fullPage",3,!1);y(a,{submitText:"Register",get submit(){return P},get pageMode(){return n()},get dialog(){return s()},set dialog(e){s(e)},footer:e=>{var r=c(),o=v(r);{var d=i=>{var g=$();l(i,g)};q(o,i=>{n()&&i(d)})}l(e,r)},children:(e,r)=>{var o=w();b(2),l(e,o)},$$slots:{footer:!0,default:!0}}),u()}function N(a){h(t=>{_.title="Sign Up"}),D(a,{fullPage:!0})}export{N as component};
@@ -1 +1 @@
1
- {"version":"1755481238215"}
1
+ {"version":"1755546545743"}
Binary file
Binary file
package/build/handler.js CHANGED
@@ -1193,7 +1193,7 @@ const origin = env('ORIGIN', undefined);
1193
1193
  const xff_depth = parseInt(env('XFF_DEPTH', '1'));
1194
1194
  const address_header = env('ADDRESS_HEADER', '').toLowerCase();
1195
1195
  const protocol_header = env('PROTOCOL_HEADER', '').toLowerCase();
1196
- const host_header = env('HOST_HEADER', 'host').toLowerCase();
1196
+ const host_header = env('HOST_HEADER', '').toLowerCase();
1197
1197
  const port_header = env('PORT_HEADER', '').toLowerCase();
1198
1198
 
1199
1199
  const body_size_limit = parse_as_bytes(env('BODY_SIZE_LIMIT', '512K'));
@@ -1209,7 +1209,7 @@ const dir = path.dirname(fileURLToPath(import.meta.url));
1209
1209
  const asset_dir = `${dir}/client${base}`;
1210
1210
 
1211
1211
  await server.init({
1212
- env: process.env,
1212
+ env: /** @type {Record<string, string>} */ (process.env),
1213
1213
  read: (file) => createReadableStream(`${asset_dir}/${file}`)
1214
1214
  });
1215
1215
 
@@ -1218,22 +1218,24 @@ await server.init({
1218
1218
  * @param {boolean} client
1219
1219
  */
1220
1220
  function serve(path, client = false) {
1221
- return (
1222
- fs__default.existsSync(path) &&
1223
- sirv(path, {
1224
- etag: true,
1225
- gzip: true,
1226
- brotli: true,
1227
- setHeaders:
1228
- client &&
1229
- ((res, pathname) => {
1230
- // only apply to build directory, not e.g. version.json
1231
- if (pathname.startsWith(`/${manifest.appPath}/immutable/`) && res.statusCode === 200) {
1232
- res.setHeader('cache-control', 'public,max-age=31536000,immutable');
1233
- }
1234
- })
1235
- })
1236
- );
1221
+ return fs__default.existsSync(path)
1222
+ ? sirv(path, {
1223
+ etag: true,
1224
+ gzip: true,
1225
+ brotli: true,
1226
+ setHeaders: client
1227
+ ? (res, pathname) => {
1228
+ // only apply to build directory, not e.g. version.json
1229
+ if (
1230
+ pathname.startsWith(`/${manifest.appPath}/immutable/`) &&
1231
+ res.statusCode === 200
1232
+ ) {
1233
+ res.setHeader('cache-control', 'public,max-age=31536000,immutable');
1234
+ }
1235
+ }
1236
+ : undefined
1237
+ })
1238
+ : undefined;
1237
1239
  }
1238
1240
 
1239
1241
  // required because the static file server ignores trailing slashes
@@ -1251,7 +1253,7 @@ function serve_prerendered() {
1251
1253
  }
1252
1254
 
1253
1255
  if (prerendered.has(pathname)) {
1254
- return handler(req, res, next);
1256
+ return handler?.(req, res, next);
1255
1257
  }
1256
1258
 
1257
1259
  // remove or add trailing slash as appropriate
@@ -1357,17 +1359,15 @@ function sequence(handlers) {
1357
1359
  */
1358
1360
  function get_origin(headers) {
1359
1361
  const protocol = (protocol_header && headers[protocol_header]) || 'https';
1360
- const host = headers[host_header];
1362
+ const host = (host_header && headers[host_header]) || headers['host'];
1361
1363
  const port = port_header && headers[port_header];
1362
- if (port) {
1363
- return `${protocol}://${host}:${port}`;
1364
- } else {
1365
- return `${protocol}://${host}`;
1366
- }
1364
+
1365
+ return port ? `${protocol}://${host}:${port}` : `${protocol}://${host}`;
1367
1366
  }
1368
1367
 
1369
1368
  const handler = sequence(
1370
- [serve(path.join(dir, 'client'), true), serve_prerendered(), ssr].filter(Boolean)
1369
+ /** @type {(import('sirv').RequestHandler | import('polka').Middleware)[]} */
1370
+ ([serve(path.join(dir, 'client'), true), serve_prerendered(), ssr].filter(Boolean))
1371
1371
  );
1372
1372
 
1373
1373
  export { handler };
@@ -1,9 +1,9 @@
1
1
  const index = 0;
2
2
  let component_cache;
3
3
  const component = async () => component_cache ??= (await import('./layout.svelte-BSvrn-4a.js')).default;
4
- const imports = ["_app/immutable/nodes/0.CE0uBbp0.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/C8C04JmV.js","_app/immutable/chunks/BMQhMafy.js"];
4
+ const imports = ["_app/immutable/nodes/0.DlE8ZTIF.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/D9TfJrfD.js","_app/immutable/chunks/D3hk2v8y.js"];
5
5
  const stylesheets = [];
6
6
  const fonts = [];
7
7
 
8
8
  export { component, fonts, imports, index, stylesheets };
9
- //# sourceMappingURL=0-DJKsK7F_.js.map
9
+ //# sourceMappingURL=0-DgHTujtC.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"0-DJKsK7F_.js","sources":["../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/layout.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/0.CE0uBbp0.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/C8C04JmV.js\",\"_app/immutable/chunks/BMQhMafy.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,6BAAuC,CAAC,EAAE;AACrG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5J,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
1
+ {"version":3,"file":"0-DgHTujtC.js","sources":["../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/layout.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/0.DlE8ZTIF.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/D9TfJrfD.js\",\"_app/immutable/chunks/D3hk2v8y.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,6BAAuC,CAAC,EAAE;AACrG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5J,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
@@ -0,0 +1,9 @@
1
+ const index = 1;
2
+ let component_cache;
3
+ const component = async () => component_cache ??= (await import('./error.svelte-DNQXZmIO.js')).default;
4
+ const imports = ["_app/immutable/nodes/1.BAsobPu4.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/D9TfJrfD.js","_app/immutable/chunks/Dy1O3iBu.js","_app/immutable/chunks/Dext3JFj.js","_app/immutable/chunks/D4Bce_hb.js","_app/immutable/chunks/D3hk2v8y.js"];
5
+ const stylesheets = [];
6
+ const fonts = [];
7
+
8
+ export { component, fonts, imports, index, stylesheets };
9
+ //# sourceMappingURL=1-5bszWZCQ.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"1-D4403Evz.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.9GlBYpox.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/C8C04JmV.js\",\"_app/immutable/chunks/x4Pz-wH_.js\",\"_app/immutable/chunks/DwJfO5YS.js\",\"_app/immutable/chunks/ButWEHh0.js\",\"_app/immutable/chunks/BMQhMafy.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE;AACpG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACxQ,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
1
+ {"version":3,"file":"1-5bszWZCQ.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.BAsobPu4.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/D9TfJrfD.js\",\"_app/immutable/chunks/Dy1O3iBu.js\",\"_app/immutable/chunks/Dext3JFj.js\",\"_app/immutable/chunks/D4Bce_hb.js\",\"_app/immutable/chunks/D3hk2v8y.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE;AACpG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACxQ,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
@@ -1,9 +1,9 @@
1
1
  const index = 2;
2
2
  let component_cache;
3
3
  const component = async () => component_cache ??= (await import('./_page.svelte-D1_WJoyP.js')).default;
4
- const imports = ["_app/immutable/nodes/2.B3qXd01D.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/C8C04JmV.js"];
4
+ const imports = ["_app/immutable/nodes/2.CvEpuMc7.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/D9TfJrfD.js"];
5
5
  const stylesheets = [];
6
6
  const fonts = [];
7
7
 
8
8
  export { component, fonts, imports, index, stylesheets };
9
- //# sourceMappingURL=2-fj0aW1I0.js.map
9
+ //# sourceMappingURL=2-CXlrhpR6.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"2-fj0aW1I0.js","sources":["../../../.svelte-kit/adapter-node/nodes/2.js"],"sourcesContent":["\n\nexport const index = 2;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_axium/default/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/2.B3qXd01D.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/C8C04JmV.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAiD,CAAC,EAAE;AAC/G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC;AACxH,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
1
+ {"version":3,"file":"2-CXlrhpR6.js","sources":["../../../.svelte-kit/adapter-node/nodes/2.js"],"sourcesContent":["\n\nexport const index = 2;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_axium/default/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/2.CvEpuMc7.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/D9TfJrfD.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAiD,CAAC,EAAE;AAC/G,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC;AACxH,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
@@ -0,0 +1,13 @@
1
+ const index = 3;
2
+ let component_cache;
3
+ const component = async () => component_cache ??= (await import('./_page.svelte-D6BUZio7.js')).default;
4
+ const universal = {
5
+ "ssr": false
6
+ };
7
+ const universal_id = "routes/account/+page.ts";
8
+ const imports = ["_app/immutable/nodes/3.C18mc0nK.js","_app/immutable/chunks/CiUsfGrc.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/D9TfJrfD.js","_app/immutable/chunks/Dy1O3iBu.js","_app/immutable/chunks/D3hk2v8y.js","_app/immutable/chunks/pba7IodQ.js","_app/immutable/chunks/XdRahthI.js"];
9
+ const stylesheets = [];
10
+ const fonts = [];
11
+
12
+ export { component, fonts, imports, index, stylesheets, universal, universal_id };
13
+ //# sourceMappingURL=3-CGyRgNsB.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"3-CCrTqwF9.js","sources":["../../../.svelte-kit/adapter-node/nodes/3.js"],"sourcesContent":["\n\nexport const index = 3;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/account/_page.svelte.js')).default;\nexport const universal = {\n \"ssr\": false\n};\nexport const universal_id = \"routes/account/+page.ts\";\nexport const imports = [\"_app/immutable/nodes/3.DuwUIVtX.js\",\"_app/immutable/chunks/lSbGwHqC.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/C8C04JmV.js\",\"_app/immutable/chunks/x4Pz-wH_.js\",\"_app/immutable/chunks/BMQhMafy.js\",\"_app/immutable/chunks/Cj9PL7OG.js\",\"_app/immutable/chunks/DN_VTkOW.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA0C,CAAC,EAAE;AACxG,MAAC,SAAS,GAAG;AACzB,EAAE,KAAK,EAAE;AACT;AACY,MAAC,YAAY,GAAG;AAChB,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5S,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
1
+ {"version":3,"file":"3-CGyRgNsB.js","sources":["../../../.svelte-kit/adapter-node/nodes/3.js"],"sourcesContent":["\n\nexport const index = 3;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/account/_page.svelte.js')).default;\nexport const universal = {\n \"ssr\": false\n};\nexport const universal_id = \"routes/account/+page.ts\";\nexport const imports = [\"_app/immutable/nodes/3.C18mc0nK.js\",\"_app/immutable/chunks/CiUsfGrc.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/D9TfJrfD.js\",\"_app/immutable/chunks/Dy1O3iBu.js\",\"_app/immutable/chunks/D3hk2v8y.js\",\"_app/immutable/chunks/pba7IodQ.js\",\"_app/immutable/chunks/XdRahthI.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA0C,CAAC,EAAE;AACxG,MAAC,SAAS,GAAG;AACzB,EAAE,KAAK,EAAE;AACT;AACY,MAAC,YAAY,GAAG;AAChB,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5S,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
@@ -0,0 +1,9 @@
1
+ const index = 4;
2
+ let component_cache;
3
+ const component = async () => component_cache ??= (await import('./_page.svelte-Q_wBpED1.js')).default;
4
+ const imports = ["_app/immutable/nodes/4.eINJOagY.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/D9TfJrfD.js","_app/immutable/chunks/Dy1O3iBu.js","_app/immutable/chunks/pba7IodQ.js","_app/immutable/chunks/CiUsfGrc.js","_app/immutable/chunks/D3hk2v8y.js"];
5
+ const stylesheets = [];
6
+ const fonts = [];
7
+
8
+ export { component, fonts, imports, index, stylesheets };
9
+ //# sourceMappingURL=4-BuMxaapL.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"4-vjHkix88.js","sources":["../../../.svelte-kit/adapter-node/nodes/4.js"],"sourcesContent":["\n\nexport const index = 4;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/login/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/4.C0wscA_4.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/C8C04JmV.js\",\"_app/immutable/chunks/x4Pz-wH_.js\",\"_app/immutable/chunks/Cj9PL7OG.js\",\"_app/immutable/chunks/lSbGwHqC.js\",\"_app/immutable/chunks/BMQhMafy.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAwC,CAAC,EAAE;AACtG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACxQ,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
1
+ {"version":3,"file":"4-BuMxaapL.js","sources":["../../../.svelte-kit/adapter-node/nodes/4.js"],"sourcesContent":["\n\nexport const index = 4;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/login/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/4.eINJOagY.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/D9TfJrfD.js\",\"_app/immutable/chunks/Dy1O3iBu.js\",\"_app/immutable/chunks/pba7IodQ.js\",\"_app/immutable/chunks/CiUsfGrc.js\",\"_app/immutable/chunks/D3hk2v8y.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAwC,CAAC,EAAE;AACtG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACxQ,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
@@ -0,0 +1,9 @@
1
+ const index = 5;
2
+ let component_cache;
3
+ const component = async () => component_cache ??= (await import('./_page.svelte-BdL0IPY2.js')).default;
4
+ const imports = ["_app/immutable/nodes/5.DITFCLgK.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/XdRahthI.js","_app/immutable/chunks/D9TfJrfD.js","_app/immutable/chunks/Dy1O3iBu.js","_app/immutable/chunks/pba7IodQ.js","_app/immutable/chunks/CiUsfGrc.js","_app/immutable/chunks/D3hk2v8y.js"];
5
+ const stylesheets = [];
6
+ const fonts = [];
7
+
8
+ export { component, fonts, imports, index, stylesheets };
9
+ //# sourceMappingURL=5-BhHQT7ic.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"5-Dc6xvhmU.js","sources":["../../../.svelte-kit/adapter-node/nodes/5.js"],"sourcesContent":["\n\nexport const index = 5;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/logout/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/5.CWS-YJ56.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/DN_VTkOW.js\",\"_app/immutable/chunks/C8C04JmV.js\",\"_app/immutable/chunks/x4Pz-wH_.js\",\"_app/immutable/chunks/Cj9PL7OG.js\",\"_app/immutable/chunks/lSbGwHqC.js\",\"_app/immutable/chunks/BMQhMafy.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAyC,CAAC,EAAE;AACvG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5S,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
1
+ {"version":3,"file":"5-BhHQT7ic.js","sources":["../../../.svelte-kit/adapter-node/nodes/5.js"],"sourcesContent":["\n\nexport const index = 5;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/logout/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/5.DITFCLgK.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/XdRahthI.js\",\"_app/immutable/chunks/D9TfJrfD.js\",\"_app/immutable/chunks/Dy1O3iBu.js\",\"_app/immutable/chunks/pba7IodQ.js\",\"_app/immutable/chunks/CiUsfGrc.js\",\"_app/immutable/chunks/D3hk2v8y.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAyC,CAAC,EAAE;AACvG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5S,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
@@ -0,0 +1,9 @@
1
+ const index = 6;
2
+ let component_cache;
3
+ const component = async () => component_cache ??= (await import('./_page.svelte-Cw9An0SZ.js')).default;
4
+ const imports = ["_app/immutable/nodes/6.BbgUOuKV.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/D9TfJrfD.js","_app/immutable/chunks/Dy1O3iBu.js","_app/immutable/chunks/pba7IodQ.js","_app/immutable/chunks/CiUsfGrc.js","_app/immutable/chunks/D3hk2v8y.js"];
5
+ const stylesheets = [];
6
+ const fonts = [];
7
+
8
+ export { component, fonts, imports, index, stylesheets };
9
+ //# sourceMappingURL=6-Do2XsDIk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"6-CvdeNFQU.js","sources":["../../../.svelte-kit/adapter-node/nodes/6.js"],"sourcesContent":["\n\nexport const index = 6;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/register/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/6.TEubHotu.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/C8C04JmV.js\",\"_app/immutable/chunks/x4Pz-wH_.js\",\"_app/immutable/chunks/Cj9PL7OG.js\",\"_app/immutable/chunks/lSbGwHqC.js\",\"_app/immutable/chunks/BMQhMafy.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA2C,CAAC,EAAE;AACzG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACxQ,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
1
+ {"version":3,"file":"6-Do2XsDIk.js","sources":["../../../.svelte-kit/adapter-node/nodes/6.js"],"sourcesContent":["\n\nexport const index = 6;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/register/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/6.BbgUOuKV.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/D9TfJrfD.js\",\"_app/immutable/chunks/Dy1O3iBu.js\",\"_app/immutable/chunks/pba7IodQ.js\",\"_app/immutable/chunks/CiUsfGrc.js\",\"_app/immutable/chunks/D3hk2v8y.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAA2C,CAAC,EAAE;AACzG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACxQ,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
@@ -1,5 +1,5 @@
1
- import { j as boolean, o as object, i as email, s as string, l as literal, r as record, f as any, n as number, g as array, h as _enum, u as uuid, w as date, x as url, t as prettifyError } from './index-iqDDeMM6.js';
2
- import { v as push, F as copy_payload, G as assign_payload, W as bind_props, x as pop, Y as spread_props, T as spread_attributes, Z as attr_class, y as escape_html, _ as clsx } from './index-apo9QTc6.js';
1
+ import { j as boolean, o as object, i as email, s as string, l as literal, r as record, f as any, n as number, g as array, h as _enum, u as uuid, x as date, y as url, t as prettifyError, v as $ZodError } from './index-wXTeP1jh.js';
2
+ import { u as push, F as copy_payload, G as assign_payload, W as bind_props, w as pop, Y as spread_props, T as spread_attributes, Z as attr_class, y as escape_html, _ as clsx } from './index-RTKpMYZ1.js';
3
3
 
4
4
  /**
5
5
  * Convert the given array buffer into a Base64URL-encoded string. Ideal for converting various
@@ -775,13 +775,13 @@ function _checkId(userId) {
775
775
  try {
776
776
  uuid().parse(userId);
777
777
  } catch (e) {
778
- throw prettifyError(e);
778
+ throw e instanceof $ZodError ? prettifyError(e) : e;
779
779
  }
780
780
  }
781
781
  async function updateUser(userId, data) {
782
782
  _checkId(userId);
783
783
  const body = await UserChangeable.parseAsync(data).catch((e) => {
784
- throw prettifyError(e);
784
+ throw e instanceof $ZodError ? prettifyError(e) : e;
785
785
  });
786
786
  const result = await fetchAPI("PATCH", "users/:id", body, userId);
787
787
  result.registeredAt = new Date(result.registeredAt);
@@ -904,4 +904,4 @@ function FormDialog($$payload, $$props) {
904
904
  }
905
905
 
906
906
  export { FormDialog as F, preferenceLabels as a, preferenceDefaults as b, deletePasskey as c, deleteUser as d, logoutAll as e, updateUser as f, getUserImage as g, loginByEmail as h, logoutCurrentSession as i, logout as l, preferenceSchemas as p, register as r, updatePasskey as u, zIs as z };
907
- //# sourceMappingURL=FormDialog-CUzCwBFr.js.map
907
+ //# sourceMappingURL=FormDialog-BemX_bll.js.map