@axium/server 0.24.0 → 0.24.1

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 (38) hide show
  1. package/axiumd.service +1 -1
  2. package/build/client/_app/immutable/chunks/CIywFg5g.js +3 -0
  3. package/build/client/_app/immutable/chunks/CIywFg5g.js.br +0 -0
  4. package/build/client/_app/immutable/chunks/CIywFg5g.js.gz +0 -0
  5. package/build/client/_app/immutable/entry/{app.DJWgFLyv.js → app.ChtScU8h.js} +2 -2
  6. package/build/client/_app/immutable/entry/app.ChtScU8h.js.br +0 -0
  7. package/build/client/_app/immutable/entry/app.ChtScU8h.js.gz +0 -0
  8. package/build/client/_app/immutable/entry/start.DdjgBKiR.js +1 -0
  9. package/build/client/_app/immutable/entry/start.DdjgBKiR.js.br +2 -0
  10. package/build/client/_app/immutable/entry/start.DdjgBKiR.js.gz +0 -0
  11. package/build/client/_app/immutable/nodes/{1.BER4lkmI.js → 1.DRjfV_5C.js} +1 -1
  12. package/build/client/_app/immutable/nodes/1.DRjfV_5C.js.br +0 -0
  13. package/build/client/_app/immutable/nodes/1.DRjfV_5C.js.gz +0 -0
  14. package/build/client/_app/version.json +1 -1
  15. package/build/client/_app/version.json.br +0 -0
  16. package/build/client/_app/version.json.gz +0 -0
  17. package/build/server/chunks/{1-k30i-hic.js → 1-B3zVLOO8.js} +2 -2
  18. package/build/server/chunks/{1-k30i-hic.js.map → 1-B3zVLOO8.js.map} +1 -1
  19. package/build/server/chunks/{hooks.server-BQqilaHv.js → hooks.server-CQhG9POo.js} +4 -7
  20. package/build/server/chunks/hooks.server-CQhG9POo.js.map +1 -0
  21. package/build/server/index.js +2 -2
  22. package/build/server/index.js.map +1 -1
  23. package/build/server/manifest.js +2 -2
  24. package/build/server/manifest.js.map +1 -1
  25. package/dist/io.d.ts +0 -1
  26. package/dist/io.js +1 -4
  27. package/package.json +1 -1
  28. package/build/client/_app/immutable/chunks/NhZR8nmR.js +0 -3
  29. package/build/client/_app/immutable/chunks/NhZR8nmR.js.br +0 -0
  30. package/build/client/_app/immutable/chunks/NhZR8nmR.js.gz +0 -0
  31. package/build/client/_app/immutable/entry/app.DJWgFLyv.js.br +0 -0
  32. package/build/client/_app/immutable/entry/app.DJWgFLyv.js.gz +0 -0
  33. package/build/client/_app/immutable/entry/start.CM7y0WAo.js +0 -1
  34. package/build/client/_app/immutable/entry/start.CM7y0WAo.js.br +0 -2
  35. package/build/client/_app/immutable/entry/start.CM7y0WAo.js.gz +0 -0
  36. package/build/client/_app/immutable/nodes/1.BER4lkmI.js.br +0 -0
  37. package/build/client/_app/immutable/nodes/1.BER4lkmI.js.gz +0 -0
  38. package/build/server/chunks/hooks.server-BQqilaHv.js.map +0 -1
package/axiumd.service CHANGED
@@ -11,12 +11,12 @@ FailureAction=none
11
11
  [Service]
12
12
  Type=simple
13
13
  User=axium
14
- WorkingDirectory=%Y/../../..
15
14
  AmbientCapabilities=CAP_NET_BIND_SERVICE
16
15
  CapabilityBoundingSet=CAP_NET_BIND_SERVICE
17
16
  NoNewPrivileges=false
18
17
  # 1 GiB. Users should never need to send a request larger than this
19
18
  Environment=BODY_SIZE_LIMIT=1048576
19
+ ExecStartPre=/usr/bin/env cd "%Y/../../.."
20
20
  ExecStart=/usr/bin/env npx --prefix "%Y/../../.." axium serve
21
21
  ExecReload=kill -HUP $MAINPID
22
22
  SyslogIdentifier=axium
@@ -0,0 +1,3 @@
1
+ import{o as De,s as bt}from"./D4Bce_hb.js";import{D as me,b2 as kt,ay as T,a3 as x,a5 as P,t as Fe}from"./D9TfJrfD.js";const F=[];function Re(e,t=me){let n=null;const r=new Set;function a(o){if(kt(e,o)&&(e=o,n)){const c=!F.length;for(const l of r)l[1](),F.push(l,e);if(c){for(let l=0;l<F.length;l+=2)F[l][0](F[l+1]);F.length=0}}}function s(o){a(o(e))}function i(o,c=me){const l=[o,c];return r.add(l),r.size===1&&(n=t(a,s)||me),o(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:s,subscribe:i}}class le{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ie{constructor(t,n){this.status=t,this.location=n}}class Ue extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function At(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Et(e){return e.split("%25").map(decodeURI).join("%25")}function St(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ye({href:e}){return e.split("#")[0]}function Rt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return l=>(n(l),i[o](l));t();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return t(),e[i]},enumerable:!0,configurable:!0});return a}function It(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;const Ut=new TextDecoder;function Lt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const Tt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&H.delete(Le(e)),Tt(e,t));const H=new Map;function xt(e,t){const n=Le(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&H.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=Lt(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function Pt(e,t,n){if(H.size>0){const r=Le(e,n),a=H.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);H.delete(r)}}return window.fetch(t,n)}function Le(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${It(...a)}"]`}return r}const Ct=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Nt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${jt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return we(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return we(String.fromCharCode(...c.slice(2).split("-").map(w=>parseInt(w,16))));const d=Ct.exec(c),[,h,u,f,p]=d;return t.push({name:f,matcher:p,optional:!!h,rest:!!u,chained:u?l===1&&i[0]==="":!1}),u?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return we(c)}).join("")}).join("")}/?$`),params:t}}function Ot(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function jt(e){return e.slice(1).split("/").filter(Ot)}function $t(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<t.length;o+=1){const c=t[o];let l=a[o-i];if(c.chained&&c.rest&&i&&(l=a.slice(o-i,o+1).filter(d=>d).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=t[o+1],h=a[o+1];d&&!d.rest&&d.optional&&h&&c.chained&&(i=0),!d&&!h&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function we(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Dt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,l,d]])=>{const{pattern:h,params:u}=Nt(o),f={id:o,exec:p=>{const w=h.exec(p);if(w)return $t(w,u,r)},errors:[1,...d||[]].map(p=>e[p]),layouts:[0,...l||[]].map(i),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function Xe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function qe(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const I=globalThis.__sveltekit_1mhgepf?.base??"",Ft=globalThis.__sveltekit_1mhgepf?.assets??I,qt="1756502069830",Ze="sveltekit:snapshot",Qe="sveltekit:scroll",et="sveltekit:states",Bt="sveltekit:pageurl",B="sveltekit:history",z="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},fe=location.origin;function tt(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function ue(){return{x:pageXOffset,y:pageYOffset}}function q(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Be={...j,"":j.hover};function nt(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function rt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=nt(e)}}function ke(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||de(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),i=r?.origin===fe&&e.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function te(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=q(o,"preload-code")),a===null&&(a=q(o,"preload-data")),t===null&&(t=q(o,"keepfocus")),n===null&&(n=q(o,"noscroll")),s===null&&(s=q(o,"reload")),i===null&&(i=q(o,"replacestate")),o=nt(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Be[r??"off"],preload_data:Be[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Ve(e){const t=Re(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}const at={v:()=>{}};function Vt(){const{set:e,subscribe:t}=Re(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Ft}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==qt;return i&&(e(!0),at.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function de(e,t,n){return e.origin!==fe||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function Un(e){}function Me(e){const t=Gt(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let a=0;a<n.byteLength;a++)r.setUint8(a,t.charCodeAt(a));return n}const Mt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Gt(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let a=0;a<e.length;a++)n<<=6,n|=Mt.indexOf(e[a]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const Ht=-1,Kt=-2,Wt=-3,Yt=-4,zt=-5,Jt=-6;function Xt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(s,i=!1){if(s===Ht)return;if(s===Wt)return NaN;if(s===Yt)return 1/0;if(s===zt)return-1/0;if(s===Jt)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],l=t?.[c];if(l)return r[s]=l(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const d=new Set;r[s]=d;for(let f=1;f<o.length;f+=1)d.add(a(o[f]));break;case"Map":const h=new Map;r[s]=h;for(let f=1;f<o.length;f+=2)h.set(a(o[f]),a(o[f+1]));break;case"RegExp":r[s]=new RegExp(o[1],o[2]);break;case"Object":r[s]=Object(o[1]);break;case"BigInt":r[s]=BigInt(o[1]);break;case"null":const u=Object.create(null);r[s]=u;for(let f=1;f<o.length;f+=2)u[o[f]]=a(o[f+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const f=globalThis[c],p=o[1],w=Me(p),_=new f(w);r[s]=_;break}case"ArrayBuffer":{const f=o[1],p=Me(f);r[s]=p;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(o.length);r[s]=c;for(let l=0;l<o.length;l+=1){const d=o[l];d!==Kt&&(c[l]=a(d))}}else{const c={};r[s]=c;for(const l in o){const d=o[l];c[l]=a(d)}}return r[s]}return a(0)}const ot=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ot];const Zt=new Set([...ot]);[...Zt];function Qt(e){return e.filter(t=>t!=null)}const en="x-sveltekit-invalidated",tn="x-sveltekit-trailing-slash";function ne(e){return e instanceof le||e instanceof Ue?e.status:500}function nn(e){return e instanceof Ue?e.text:"Internal Error"}let E,J,ve;const rn=De.toString().includes("$$")||/function \w+\(\) \{\}/.test(De.toString());rn?(E={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},J={current:null},ve={current:!1}):(E=new class{#e=T({});get data(){return x(this.#e)}set data(t){P(this.#e,t)}#t=T(null);get form(){return x(this.#t)}set form(t){P(this.#t,t)}#n=T(null);get error(){return x(this.#n)}set error(t){P(this.#n,t)}#r=T({});get params(){return x(this.#r)}set params(t){P(this.#r,t)}#a=T({id:null});get route(){return x(this.#a)}set route(t){P(this.#a,t)}#o=T({});get state(){return x(this.#o)}set state(t){P(this.#o,t)}#s=T(-1);get status(){return x(this.#s)}set status(t){P(this.#s,t)}#i=T(new URL("https://example.com"));get url(){return x(this.#i)}set url(t){P(this.#i,t)}},J=new class{#e=T(null);get current(){return x(this.#e)}set current(t){P(this.#e,t)}},ve=new class{#e=T(!1);get current(){return x(this.#e)}set current(t){P(this.#e,t)}},at.v=()=>ve.current=!0);function an(e){Object.assign(E,e)}const on="/__data.json",sn=".html__data.json";function cn(e){return e.endsWith(".html")?e.replace(/\.html$/,sn):e.replace(/\/$/,"")+on}const Ge={spanContext(){return ln},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},ln={traceId:"",spanId:"",traceFlags:0},{tick:fn}=bt,un=new Set(["icon","shortcut icon","apple-touch-icon"]),D=Xe(Qe)??{},X=Xe(Ze)??{},O={url:Ve({}),page:Ve({}),navigating:Re(null),updated:Vt()};function Te(e){D[e]=ue()}function dn(e,t){let n=e+1;for(;D[n];)delete D[n],n+=1;for(n=t+1;X[n];)delete X[n],n+=1}function M(e){return location.href=e.href,new Promise(()=>{})}async function st(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(I||"/");e&&await e.update()}}function He(){}let xe,Ae,re,C,Ee,v;globalThis.__sveltekit_1mhgepf.data;const ae=[],oe=[];let N=null;const ee=new Map,it=new Set,hn=new Set,K=new Set;let y={branch:[],error:null,url:null},Pe=!1,se=!1,Ke=!0,Z=!1,G=!1,ct=!1,Ce=!1,lt,k,R,$;const W=new Set,We=new Map;async function Pn(e,t,n){document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),xe=Dt(e),C=document.documentElement,Ee=t,Ae=e.nodes[0],re=e.nodes[1],Ae(),re(),k=history.state?.[B],R=history.state?.[z],k||(k=R=Date.now(),history.replaceState({...history.state,[B]:k,[z]:R},""));const r=D[k];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await An(Ee,n)):(await Y({type:"enter",url:tt(v.hash?Sn(new URL(location.href)):location.href),replace_state:!0}),a()),kn()}function pn(){ae.length=0,Ce=!1}function ft(e){oe.some(t=>t?.snapshot)&&(X[e]=oe.map(t=>t?.snapshot?.capture()))}function ut(e){X[e]?.forEach((t,n)=>{oe[n]?.snapshot?.restore(t)})}function Ye(){Te(k),qe(Qe,D),ft(R),qe(Ze,X)}async function dt(e,t,n,r){let a;const s=await Y({type:"goto",url:tt(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Ce=!0,a=[...We.keys()]),t.invalidate&&t.invalidate.forEach(bn)}});return t.invalidateAll&&Fe().then(Fe).then(()=>{We.forEach(({resource:i},o)=>{a?.includes(o)&&i.refresh?.()})}),s}async function gn(e){if(e.id!==N?.id){const t={};W.add(t),N={id:e.id,token:t,promise:gt({...e,preload:t}).then(n=>(W.delete(t),n.type==="loaded"&&n.state.error&&(N=null),n))}}return N.promise}async function be(e){const t=(await pe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function ht(e,t,n){y=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(E,e.props.page),lt=new v.root({target:t,props:{...e.props,stores:O,components:oe},hydrate:n,sync:!1}),ut(R),n){const a={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};K.forEach(s=>s(a))}se=!0}function ie({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(I&&(e.pathname===I||e.pathname===I+"/"))o="always";else for(const f of n)f?.slash!==void 0&&(o=f.slash);e.pathname=At(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:Qt(n).map(f=>f.node.component),page:$e(E)}};i!==void 0&&(c.props.form=i);let l={},d=!E,h=0;for(let f=0;f<Math.max(n.length,y.branch.length);f+=1){const p=n[f],w=y.branch[f];p?.data!==w?.data&&(d=!0),p&&(l={...l,...p.data},d&&(c.props[`data_${h}`]=l),h+=1)}return(!y.url||e.href!==y.url.href||y.error!==a||i!==void 0&&i!==E.form||d)&&(c.props.page={error:a,params:t,route:{id:s?.id??null},state:{},status:r,url:new URL(e),form:i??null,data:d?l:E.data}),c}async function Ne({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){let i=null,o=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){let d=function(...u){for(const f of u){const{href:p}=new URL(f,n);c.dependencies.add(p)}};const h={tracing:{enabled:!1,root:Ge,current:Ge},route:new Proxy(a,{get:(u,f)=>(o&&(c.route=!0),u[f])}),params:new Proxy(r,{get:(u,f)=>(o&&c.params.add(f),u[f])}),data:s?.data??null,url:Rt(n,()=>{o&&(c.url=!0)},u=>{o&&c.search_params.add(u)},v.hash),async fetch(u,f){u instanceof Request&&(f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u?.headers:void 0,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...f});const{resolved:p,promise:w}=pt(u,f,n);return o&&d(p.href),w},setHeaders:()=>{},depends:d,parent(){return o&&(c.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};i=await l.universal.load.call(null,h)??null}return{node:l,loader:e,server:s,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??s?.data??null,slash:l.universal?.trailingSlash??s?.slash}}function pt(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=se?Pt(r,a.href,t):xt(r,t);return{resolved:a,promise:s}}function ze(e,t,n,r,a,s){if(Ce)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==y.params[i])return!0;for(const i of a.dependencies)if(ae.some(o=>o(new URL(i))))return!0;return!1}function Oe(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function _n(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function Je({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:$e(E),constructors:[]}}}async function gt({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(N?.id===e)return W.delete(N.token),N.promise;const{errors:i,layouts:o,leaf:c}=a,l=[...o,c];i.forEach(g=>g?.().catch(()=>{})),l.forEach(g=>g?.[1]().catch(()=>{}));let d=null;const h=y.url?e!==ce(y.url):!1,u=y.route?a.id!==y.route.id:!1,f=_n(y.url,n);let p=!1;const w=l.map((g,m)=>{const b=y.branch[m],A=!!g?.[0]&&(b?.loader!==g[1]||ze(p,u,h,f,b.server?.uses,r));return A&&(p=!0),A});if(w.some(Boolean)){try{d=await yt(n,w)}catch(g){const m=await V(g,{url:n,params:r,route:{id:e}});return W.has(s)?Je({error:m,url:n,params:r,route:a}):he({status:ne(g),error:m,url:n,route:a})}if(d.type==="redirect")return d}const _=d?.nodes;let S=!1;const L=l.map(async(g,m)=>{if(!g)return;const b=y.branch[m],A=_?.[m];if((!A||A.type==="skip")&&g[1]===b?.loader&&!ze(S,u,h,f,b.universal?.uses,r))return b;if(S=!0,A?.type==="error")throw A;return Ne({loader:g[1],url:n,params:r,route:a,parent:async()=>{const ge={};for(let _e=0;_e<m;_e+=1)Object.assign(ge,(await L[_e])?.data);return ge},server_data_node:Oe(A===void 0&&g[0]?{type:"skip"}:A??null,g[0]?b?.server:void 0)})});for(const g of L)g.catch(()=>{});const U=[];for(let g=0;g<l.length;g+=1)if(l[g])try{U.push(await L[g])}catch(m){if(m instanceof Ie)return{type:"redirect",location:m.location};if(W.has(s))return Je({error:await V(m,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let b=ne(m),A;if(_?.includes(m))b=m.status??b,A=m.error;else if(m instanceof le)A=m.body;else{if(await O.updated.check())return await st(),await M(n);A=await V(m,{params:r,url:n,route:{id:a.id}})}const Q=await mn(g,U,i);return Q?ie({url:n,params:r,branch:U.slice(0,Q.idx).concat(Q.node),status:b,error:A,route:a}):await mt(n,{id:a.id},A,b)}else U.push(void 0);return ie({url:n,params:r,branch:U,status:200,error:null,route:a,form:t?void 0:null})}async function mn(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function he({status:e,error:t,url:n,route:r}){const a={};let s=null;if(v.server_loads[0]===0)try{const o=await yt(n,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;s=o.nodes[0]??null}catch{(n.origin!==fe||n.pathname!==location.pathname||Pe)&&await M(n)}try{const o=await Ne({loader:Ae,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Oe(s)}),c={node:await re(),loader:re,universal:null,server:null,data:null};return ie({url:n,params:a,branch:[o,c],status:e,error:t,route:null})}catch(o){if(o instanceof Ie)return dt(new URL(o.location,location.href),{},0);throw o}}async function yn(e){const t=e.href;if(ee.has(t))return ee.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(s,i)=>pt(s,i,e).promise})??e;if(typeof a=="string"){const s=new URL(e);v.hash?s.hash=a:s.pathname=a,a=s}return a})();ee.set(t,r),n=await r}catch{ee.delete(t);return}return n}async function pe(e,t){if(e&&!de(e,I,v.hash)){const n=await yn(e);if(!n)return;const r=wn(n);for(const a of xe){const s=a.exec(r);if(s)return{id:ce(e),invalidating:t,route:a,params:St(s),url:e}}}}function wn(e){return Et(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(I.length))||"/"}function ce(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function _t({url:e,type:t,intent:n,delta:r}){let a=!1;const s=je(y,n,e,t);r!==void 0&&(s.navigation.delta=r);const i={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return Z||it.forEach(o=>o(i)),a?null:s}async function Y({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:l=He,block:d=He}){const h=$;$=c;const u=await pe(t,!1),f=e==="enter"?je(y,u,t,e):_t({url:t,type:e,delta:n?.delta,intent:u});if(!f){d(),$===c&&($=h);return}const p=k,w=R;l(),Z=!0,se&&f.navigation.type!=="enter"&&O.navigating.set(J.current=f.navigation);let _=u&&await gt(u);if(!_){if(de(t,I,v.hash))return await M(t);_=await mt(t,{id:null},await V(new Ue(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=u?.url||t,$!==c)return f.reject(new Error("navigation aborted")),!1;if(_.type==="redirect")if(o>=20)_=await he({status:500,error:await V(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return await dt(new URL(_.location,t).href,{},o+1,c),!1;else _.props.page.status>=400&&await O.updated.check()&&(await st(),await M(t));if(pn(),Te(p),ft(w),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),i=n?n.state:i,!n){const g=s?0:1,m={[B]:k+=g,[z]:R+=g,[et]:i};(s?history.replaceState:history.pushState).call(history,m,"",t),s||dn(k,R)}if(N=null,_.props.page.state=i,se){const g=(await Promise.all(Array.from(hn,m=>m(f.navigation)))).filter(m=>typeof m=="function");if(g.length>0){let m=function(){g.forEach(b=>{K.delete(b)})};g.push(m),g.forEach(b=>{K.add(b)})}y=_.state,_.props.page&&(_.props.page.url=t),lt.$set(_.props),an(_.props.page),ct=!0}else ht(_,Ee,!1);const{activeElement:S}=document;await fn();const L=n?n.scroll:a?ue():null;if(Ke){const g=t.hash&&document.getElementById(vt(t));L?scrollTo(L.x,L.y):g?g.scrollIntoView():scrollTo(0,0)}const U=document.activeElement!==S&&document.activeElement!==document.body;!r&&!U&&En(t),Ke=!0,_.props.page&&Object.assign(E,_.props.page),Z=!1,e==="popstate"&&ut(R),f.fulfil(void 0),K.forEach(g=>g(f.navigation)),O.navigating.set(J.current=null)}async function mt(e,t,n,r){return e.origin===fe&&e.pathname===location.pathname&&!Pe?await he({status:r,error:n,url:e,route:t}):await M(e)}function vn(){let e,t,n;C.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(e),e=setTimeout(()=>{s(c,j.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],j.tap)}C.addEventListener("mousedown",r),C.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(be(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function s(o,c){const l=rt(o,C),d=l===t&&c>=n;if(!l||d)return;const{url:h,external:u,download:f}=ke(l,I,v.hash);if(u||f)return;const p=te(l),w=h&&ce(y.url)===ce(h);if(!(p.reload||w))if(c<=p.preload_data){t=l,n=j.tap;const _=await pe(h,!1);if(!_)return;gn(_)}else c<=p.preload_code&&(t=l,n=c,be(h))}function i(){a.disconnect();for(const o of C.querySelectorAll("a")){const{url:c,external:l,download:d}=ke(o,I,v.hash);if(l||d)continue;const h=te(o);h.reload||(h.preload_code===j.viewport&&a.observe(o),h.preload_code===j.eager&&be(c))}}K.add(i),i()}function V(e,t){if(e instanceof le)return e.body;const n=ne(e),r=nn(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function bn(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function kn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Ye(),!Z){const r=je(y,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};it.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ye()}),navigator.connection?.saveData||vn(),C.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=rt(t.composedPath()[0],C);if(!n)return;const{url:r,external:a,target:s,download:i}=ke(n,I,v.hash);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const o=te(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;const[l,d]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),h=l===ye(location);if(a||o.reload&&(!h||!d)){_t({url:r,type:"link"})?Z=!0:t.preventDefault();return}if(d!==void 0&&h){const[,u]=y.url.href.split("#");if(u===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const f=n.ownerDocument.getElementById(decodeURIComponent(d));f&&(f.scrollIntoView(),f.focus())}return}if(G=!0,Te(k),e(r),!o.replace_state)return;G=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await Y({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href})}),C.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const i=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(de(i,I,!1))return;const o=t.target,c=te(o);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(o),d=r?.getAttribute("name");d&&l.append(d,r?.getAttribute("value")??""),i.search=new URLSearchParams(l).toString(),Y({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async t=>{if(!Se){if(t.state?.[B]){const n=t.state[B];if($={},n===k)return;const r=D[n],a=t.state[et]??{},s=new URL(t.state[Bt]??location.href),i=t.state[z],o=y.url?ye(location)===ye(y.url):!1;if(i===R&&(ct||o)){a!==E.state&&(E.state=a),e(s),D[k]=ue(),r&&scrollTo(r.x,r.y),k=n;return}const l=n-k;await Y({type:"popstate",url:s,popped:{state:a,scroll:r,delta:l},accept:()=>{k=n,R=i},block:()=>{history.go(-l)},nav_token:$})}else if(!G){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{G&&(G=!1,history.replaceState({...history.state,[B]:++k,[z]:R},"",location.href))});for(const t of document.querySelectorAll("link"))un.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&O.navigating.set(J.current=null)});function e(t){y.url=E.url=t,O.page.set($e(E)),O.page.notify()}}async function An(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:c}){Pe=!0;const l=new URL(location.href);let d;({params:a={},route:s={id:null}}=await pe(l,!1)||{}),d=xe.find(({id:f})=>f===s.id);let h,u=!0;try{const f=r.map(async(w,_)=>{const S=o[_];return S?.uses&&(S.uses=wt(S.uses)),Ne({loader:v.nodes[w],url:l,params:a,route:s,parent:async()=>{const L={};for(let U=0;U<_;U+=1)Object.assign(L,(await f[U]).data);return L},server_data_node:Oe(S)})}),p=await Promise.all(f);if(d){const w=d.layouts;for(let _=0;_<w.length;_++)w[_]||p.splice(_,0,void 0)}h=ie({url:l,params:a,branch:p,status:t,error:n,form:c,route:d??null})}catch(f){if(f instanceof Ie){await M(new URL(f.location,location.href));return}h=await he({status:ne(f),error:await V(f,{url:l,params:a,route:s}),url:l,route:s}),e.textContent="",u=!1}h.props.page&&(h.props.page.state={}),ht(h,e,u)}async function yt(e,t){const n=new URL(e);n.pathname=cn(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(tn,"1"),n.searchParams.append(en,t.map(s=>s?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let s;throw a.headers.get("content-type")?.includes("application/json")?s=await a.json():a.status===404?s="Not Found":a.status===500&&(s="Internal Error"),new le(a.status,s)}return new Promise(async s=>{const i=new Map,o=a.body.getReader();function c(d){return Xt(d,{...v.decoders,Promise:h=>new Promise((u,f)=>{i.set(h,{fulfil:u,reject:f})})})}let l="";for(;;){const{done:d,value:h}=await o.read();if(d&&!l)break;for(l+=!h&&l?`
2
+ `:Ut.decode(h,{stream:!0});;){const u=l.indexOf(`
3
+ `);if(u===-1)break;const f=JSON.parse(l.slice(0,u));if(l=l.slice(u+1),f.type==="redirect")return s(f);if(f.type==="data")f.nodes?.forEach(p=>{p?.type==="data"&&(p.uses=wt(p.uses),p.data=c(p.data))}),s(f);else if(f.type==="chunk"){const{id:p,data:w,error:_}=f,S=i.get(p);i.delete(p),_?S.reject(c(_)):S.fulfil(c(w))}}}})}function wt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Se=!1;function En(e){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const n=vt(e);if(n&&document.getElementById(n)){const{x:a,y:s}=ue();setTimeout(()=>{const i=history.state;Se=!0,location.replace(`#${n}`),v.hash&&location.replace(e.hash),history.replaceState(i,"",e.hash),scrollTo(a,s),Se=!1})}else{const a=document.body,s=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),s!==null?a.setAttribute("tabindex",s):a.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s<r.rangeCount;s+=1)a.push(r.getRangeAt(s));setTimeout(()=>{if(r.rangeCount===a.length){for(let s=0;s<r.rangeCount;s+=1){const i=a[s],o=r.getRangeAt(s);if(i.commonAncestorContainer!==o.commonAncestorContainer||i.startContainer!==o.startContainer||i.endContainer!==o.endContainer||i.startOffset!==o.startOffset||i.endOffset!==o.endOffset)return}r.removeAllRanges()}})}}}function je(e,t,n,r){let a,s;const i=new Promise((c,l)=>{a=c,s=l});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:s}}function $e(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Sn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function vt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Pn as a,Un as l,E as p,O as s};
@@ -1,2 +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.BER4lkmI.js","../chunks/Dy1O3iBu.js","../chunks/NhZR8nmR.js","../chunks/D4Bce_hb.js","../nodes/2.CvEpuMc7.js","../nodes/3.CVudd8x2.js","../chunks/DJeR1n-B.js","../chunks/pba7IodQ.js","../chunks/B1E1cVbi.js","../nodes/4.Dhj0R0r7.js","../nodes/5.CGoBaVII.js","../nodes/6.BtB2uWXy.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.BER4lkmI.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.CVudd8x2.js"),__vite__mapDeps([9,10,1,2,5,3,11,12]),import.meta.url),()=>E(()=>import("../nodes/4.Dhj0R0r7.js"),__vite__mapDeps([13,1,2,5,11,10,3]),import.meta.url),()=>E(()=>import("../nodes/5.CGoBaVII.js"),__vite__mapDeps([14,1,12,2,5,11,10,3]),import.meta.url),()=>E(()=>import("../nodes/6.BtB2uWXy.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};
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.DRjfV_5C.js","../chunks/Dy1O3iBu.js","../chunks/CIywFg5g.js","../chunks/D4Bce_hb.js","../nodes/2.CvEpuMc7.js","../nodes/3.CVudd8x2.js","../chunks/DJeR1n-B.js","../chunks/pba7IodQ.js","../chunks/B1E1cVbi.js","../nodes/4.Dhj0R0r7.js","../nodes/5.CGoBaVII.js","../nodes/6.BtB2uWXy.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.DRjfV_5C.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.CVudd8x2.js"),__vite__mapDeps([9,10,1,2,5,3,11,12]),import.meta.url),()=>E(()=>import("../nodes/4.Dhj0R0r7.js"),__vite__mapDeps([13,1,2,5,11,10,3]),import.meta.url),()=>E(()=>import("../nodes/5.CGoBaVII.js"),__vite__mapDeps([14,1,12,2,5,11,10,3]),import.meta.url),()=>E(()=>import("../nodes/6.BtB2uWXy.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/CIywFg5g.js";export{o as load_css,r as start};
@@ -0,0 +1,2 @@
1
+ )�import{l as o,a as r}from"../chunks/CIywFg5g.js";export{o as load_css,r as start};
2
+ 
@@ -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/D9TfJrfD.js";import{s as o}from"../chunks/Dy1O3iBu.js";import{s as x,p}from"../chunks/NhZR8nmR.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/CIywFg5g.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
- {"version":"1756500363482"}
1
+ {"version":"1756502069830"}
Binary file
Binary file
@@ -1,9 +1,9 @@
1
1
  const index = 1;
2
2
  let component_cache;
3
3
  const component = async () => component_cache ??= (await import('./error.svelte-DNQXZmIO.js')).default;
4
- const imports = ["_app/immutable/nodes/1.BER4lkmI.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/D9TfJrfD.js","_app/immutable/chunks/Dy1O3iBu.js","_app/immutable/chunks/NhZR8nmR.js","_app/immutable/chunks/D4Bce_hb.js","_app/immutable/chunks/D3hk2v8y.js"];
4
+ const imports = ["_app/immutable/nodes/1.DRjfV_5C.js","_app/immutable/chunks/DsnmJJEf.js","_app/immutable/chunks/D9TfJrfD.js","_app/immutable/chunks/Dy1O3iBu.js","_app/immutable/chunks/CIywFg5g.js","_app/immutable/chunks/D4Bce_hb.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=1-k30i-hic.js.map
9
+ //# sourceMappingURL=1-B3zVLOO8.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"1-k30i-hic.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.BER4lkmI.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/D9TfJrfD.js\",\"_app/immutable/chunks/Dy1O3iBu.js\",\"_app/immutable/chunks/NhZR8nmR.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
+ {"version":3,"file":"1-B3zVLOO8.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.DRjfV_5C.js\",\"_app/immutable/chunks/DsnmJJEf.js\",\"_app/immutable/chunks/D9TfJrfD.js\",\"_app/immutable/chunks/Dy1O3iBu.js\",\"_app/immutable/chunks/CIywFg5g.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;;;;"}
@@ -3,10 +3,9 @@ import { readFileSync, existsSync, writeFileSync, createWriteStream } from 'node
3
3
  import 'node:http';
4
4
  import 'node:https';
5
5
  import { Logger, levelText, allLogLevels } from 'logzen';
6
- import { join, resolve, dirname } from 'node:path/posix';
6
+ import { resolve, dirname, join } from 'node:path/posix';
7
7
  import { c as capitalize, d as deepAssign, o as omit, p as pick } from './string-DLbvtT1R.js';
8
8
  import 'node:child_process';
9
- import { homedir } from 'node:os';
10
9
  import { styleText } from 'node:util';
11
10
  import { _ as _unknown, a as _tuple, b as _array, $ as $ZodUnknown, c as $ZodArray, d as $ZodTuple, p as parse, e as parseAsync, o as object, s as string, l as literal, r as record, f as any, n as number, g as array, h as _enum, i as boolean, j as custom, k as date, u as url, m as email, q as uuid, t as looseObject, v as partialRecord, w as prettifyError, x as $ZodError, y as stringbool } from './index-CvHf_GW2.js';
12
11
  import { randomBytes, randomUUID } from 'node:crypto';
@@ -114,8 +113,7 @@ function _unique(id, value) {
114
113
  }
115
114
 
116
115
  const systemDir = '/etc/axium';
117
- const userDir = join(homedir(), '.axium');
118
- const dirs = _unique('dirs', [systemDir, userDir]);
116
+ const dirs = _unique('dirs', [systemDir]);
119
117
  for (let dir = resolve(process.cwd()); dir !== '/'; dir = dirname(dir)) {
120
118
  if (fs.existsSync(join(dir, '.axium')))
121
119
  dirs.push(join(dir, '.axium'));
@@ -128,7 +126,6 @@ try {
128
126
  catch {
129
127
  // Missing permissions
130
128
  }
131
- fs.mkdirSync(userDir, { recursive: true });
132
129
  const logger = new Logger({
133
130
  hideWarningStack: true,
134
131
  noGlobalConsole: true,
@@ -612,7 +609,7 @@ function findConfigPaths() {
612
609
  if (process.env.AXIUM_CONFIG)
613
610
  await loadConfig(process.env.AXIUM_CONFIG);
614
611
 
615
- var version = "0.24.0";
612
+ var version = "0.24.1";
616
613
  var pkg = {
617
614
  version: version};
618
615
 
@@ -17298,4 +17295,4 @@ async function handleSvelteKit({ event, resolve, }) {
17298
17295
  await init();
17299
17296
 
17300
17297
  export { handleSvelteKit as handle };
17301
- //# sourceMappingURL=hooks.server-BQqilaHv.js.map
17298
+ //# sourceMappingURL=hooks.server-CQhG9POo.js.map