lula2 0.9.4 → 0.9.5-nightly.0

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 (34) hide show
  1. package/dist/_app/immutable/chunks/{DJeH1yiM.js → 6bml4QAB.js} +1 -1
  2. package/dist/_app/immutable/chunks/B2uEWOs1.js +1 -0
  3. package/dist/_app/immutable/chunks/BP745Y-1.js +1 -0
  4. package/dist/_app/immutable/chunks/BiCvOgOi.js +85 -0
  5. package/dist/_app/immutable/chunks/CGjnWgBq.js +1 -0
  6. package/dist/_app/immutable/chunks/{CO5HUgL0.js → CsrYvPp8.js} +1 -1
  7. package/dist/_app/immutable/chunks/{Bo7nqYmQ.js → DJXk1aSK.js} +1 -1
  8. package/dist/_app/immutable/chunks/DWSluHU4.js +1 -0
  9. package/dist/_app/immutable/chunks/cF1L9T2k.js +2 -0
  10. package/dist/_app/immutable/chunks/hVgvhsI_.js +1 -0
  11. package/dist/_app/immutable/chunks/vL99xJg7.js +2 -0
  12. package/dist/_app/immutable/entry/{app.qbL-RfKx.js → app.DBak8IJc.js} +2 -2
  13. package/dist/_app/immutable/entry/start.Chi-BnZJ.js +1 -0
  14. package/dist/_app/immutable/nodes/0.9XIgqIfx.js +2 -0
  15. package/dist/_app/immutable/nodes/1.DUIh_B0p.js +1 -0
  16. package/dist/_app/immutable/nodes/{2.CUxF3o2k.js → 2.BtDR03j8.js} +1 -1
  17. package/dist/_app/immutable/nodes/{3.wAZjsGG4.js → 3.D4sVTBre.js} +1 -1
  18. package/dist/_app/immutable/nodes/4.DeFz_8D5.js +11 -0
  19. package/dist/_app/version.json +1 -1
  20. package/dist/index.html +11 -11
  21. package/dist/index.js +0 -0
  22. package/package.json +128 -129
  23. package/dist/_app/immutable/chunks/0cLOCaE9.js +0 -1
  24. package/dist/_app/immutable/chunks/BQGu-oS8.js +0 -85
  25. package/dist/_app/immutable/chunks/BwfCKDTn.js +0 -1
  26. package/dist/_app/immutable/chunks/CSNk5sxJ.js +0 -2
  27. package/dist/_app/immutable/chunks/CXNhbKT8.js +0 -1
  28. package/dist/_app/immutable/chunks/CZwPzNYj.js +0 -1
  29. package/dist/_app/immutable/chunks/CuCrqWRY.js +0 -2
  30. package/dist/_app/immutable/chunks/Da8ydh0N.js +0 -1
  31. package/dist/_app/immutable/entry/start.D72qDHBq.js +0 -1
  32. package/dist/_app/immutable/nodes/0.Bf4NYNA7.js +0 -2
  33. package/dist/_app/immutable/nodes/1.DZxFIZ_X.js +0 -1
  34. package/dist/_app/immutable/nodes/4.DFpn0o7g.js +0 -11
@@ -1 +1 @@
1
- import{e as h,h as t,i as S,q as b,S as k}from"./CXNhbKT8.js";function u(r,i){return r===i||r?.[k]===i}function c(r={},i,a,q){return h(()=>{var f,s;return t(()=>{f=s,s=[],S(()=>{r!==a(...s)&&(i(r,...s),f&&u(a(...f),r)&&i(null,...f))})}),()=>{b(()=>{s&&u(a(...s),r)&&i(null,...s)})}}),r}export{c as b};
1
+ import{e as h,h as t,i as S,q as b,S as k}from"./CGjnWgBq.js";function u(r,i){return r===i||r?.[k]===i}function c(r={},i,a,q){return h(()=>{var f,s;return t(()=>{f=s,s=[],S(()=>{r!==a(...s)&&(i(r,...s),f&&u(a(...f),r)&&i(null,...f))})}),()=>{b(()=>{s&&u(a(...s),r)&&i(null,...s)})}}),r}export{c as b};
@@ -0,0 +1 @@
1
+ import{bi as ke,o as Ne,d as U,g as A,b as T,ae as ee,bt as ht}from"./CGjnWgBq.js";class Ee{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 Se{constructor(t,n){this.status=t,this.location=n}}class Re extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}new URL("sveltekit-internal://");function pt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function gt(e){return e.split("%25").map(decodeURI).join("%25")}function _t(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function he({href:e}){return e.split("#")[0]}function mt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function vt(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a<t.length;a++)n[a]=t.charCodeAt(a);return n}const wt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&F.delete(xe(e)),wt(e,t));const F=new Map;function yt(e,t){const n=xe(e,t),a=document.querySelector(n);if(a?.textContent){a.remove();let{body:r,...i}=JSON.parse(a.textContent);const o=a.getAttribute("data-ttl");return o&&F.set(n,{body:r,init:i,ttl:1e3*Number(o)}),a.getAttribute("data-b64")!==null&&(r=vt(r)),Promise.resolve(new Response(r,i))}return window.fetch(e,t)}function bt(e,t,n){if(F.size>0){const a=xe(e,n),r=F.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);F.delete(a)}}return window.fetch(t,n)}function xe(e,t){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),a+=`[data-hash="${mt(...r)}"]`}return a}const kt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Et(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Rt(e).map(a=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(a);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(a);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!a)return;const o=a.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return pe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return pe(String.fromCharCode(...c.slice(2).split("-").map(m=>parseInt(m,16))));const f=kt.exec(c),[,h,v,u,p]=f;return t.push({name:u,matcher:p,optional:!!h,rest:!!v,chained:v?l===1&&o[0]==="":!1}),v?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return pe(c)}).join("")}).join("")}/?$`),params:t}}function St(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Rt(e){return e.slice(1).split("/").filter(St)}function xt(e,t,n){const a={},r=e.slice(1),i=r.filter(s=>s!==void 0);let o=0;for(let s=0;s<t.length;s+=1){const c=t[s];let l=r[s-o];if(c.chained&&c.rest&&o&&(l=r.slice(s-o,s+1).filter(f=>f).join("/"),o=0),l===void 0)if(c.rest)l="";else continue;if(!c.matcher||n[c.matcher](l)){a[c.name]=l;const f=t[s+1],h=r[s+1];f&&!f.rest&&f.optional&&h&&c.chained&&(o=0),!f&&!h&&Object.keys(a).length===i.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return a}function pe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Lt({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,f]])=>{const{pattern:h,params:v}=Et(s),u={id:s,exec:p=>{const m=h.exec(p);if(m)return xt(m,v,a)},errors:[1,...f||[]].map(p=>e[p]),layouts:[0,...l||[]].map(o),leaf:i(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function o(s){return s===void 0?s:[r.has(s),e[s]]}}function Ge(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function De(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const x=globalThis.__sveltekit_1bnxhvi?.base??"",Ut=globalThis.__sveltekit_1bnxhvi?.assets??x??"",At="1771893679515",We="sveltekit:snapshot",Ye="sveltekit:scroll",ze="sveltekit:states",Tt="sveltekit:pageurl",K="sveltekit:history",W="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},le=location.origin;function Le(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 D(){return{x:pageXOffset,y:pageYOffset}}function V(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const qe={...j,"":j.hover};function He(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Je(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=He(e)}}function me(e,t,n){let a;try{if(a=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const s=location.hash.split("#")[1]||"/";a.hash=`#${s}${a.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,i=!a||!!r||ue(a,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=a?.origin===le&&e.hasAttribute("download");return{url:a,external:i,target:r,download:o}}function te(e){let t=null,n=null,a=null,r=null,i=null,o=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=V(s,"preload-code")),r===null&&(r=V(s,"preload-data")),t===null&&(t=V(s,"keepfocus")),n===null&&(n=V(s,"noscroll")),i===null&&(i=V(s,"reload")),o===null&&(o=V(s,"replacestate")),s=He(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:qe[a??"off"],preload_data:qe[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(o)}}function Ve(e){const t=ke(e);let n=!0;function a(){n=!0,t.update(o=>o)}function r(o){n=!1,t.set(o)}function i(o){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&o(s=c)})}return{notify:a,set:r,subscribe:i}}const Xe={v:()=>{}};function It(){const{set:e,subscribe:t}=ke(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${Ut}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==At;return o&&(e(!0),Xe.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:a}}function ue(e,t,n){return e.origin!==le||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function an(e){}const Qe=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...Qe];const Pt=new Set([...Qe]);[...Pt];function Ot(e){return e.filter(t=>t!=null)}function Ue(e){return e instanceof Ee||e instanceof Re?e.status:500}function $t(e){return e instanceof Re?e.text:"Internal Error"}let k,Y,ge;const Ct=Ne.toString().includes("$$")||/function \w+\(\) \{\}/.test(Ne.toString());Ct?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},Y={current:null},ge={current:!1}):(k=new class{#e=U({});get data(){return A(this.#e)}set data(t){T(this.#e,t)}#t=U(null);get form(){return A(this.#t)}set form(t){T(this.#t,t)}#n=U(null);get error(){return A(this.#n)}set error(t){T(this.#n,t)}#a=U({});get params(){return A(this.#a)}set params(t){T(this.#a,t)}#r=U({id:null});get route(){return A(this.#r)}set route(t){T(this.#r,t)}#o=U({});get state(){return A(this.#o)}set state(t){T(this.#o,t)}#s=U(-1);get status(){return A(this.#s)}set status(t){T(this.#s,t)}#i=U(new URL("https://example.com"));get url(){return A(this.#i)}set url(t){T(this.#i,t)}},Y=new class{#e=U(null);get current(){return A(this.#e)}set current(t){T(this.#e,t)}},ge=new class{#e=U(!1);get current(){return A(this.#e)}set current(t){T(this.#e,t)}},Xe.v=()=>ge.current=!0);function jt(e){Object.assign(k,e)}const Nt=new Set(["icon","shortcut icon","apple-touch-icon"]),C=Ge(Ye)??{},z=Ge(We)??{},$={url:Ve({}),page:Ve({}),navigating:ke(null),updated:It()};function Ae(e){C[e]=D()}function Dt(e,t){let n=e+1;for(;C[n];)delete C[n],n+=1;for(n=t+1;z[n];)delete z[n],n+=1}function H(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function Ze(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function Ke(){}let Te,ve,ne,I,we,y;const ae=[],re=[];let L=null;function ye(){L?.fork?.then(e=>e?.discard()),L=null}const Z=new Map,et=new Set,qt=new Set,G=new Set;let _={branch:[],error:null,url:null},tt=!1,oe=!1,Be=!0,J=!1,M=!1,nt=!1,Ie=!1,at,w,R,N;const se=new Set,Me=new Map;async function cn(e,t,n){globalThis.__sveltekit_1bnxhvi?.data&&globalThis.__sveltekit_1bnxhvi.data,document.URL!==location.href&&(location.href=location.href),y=e,await e.hooks.init?.(),Te=Lt(e),I=document.documentElement,we=t,ve=e.nodes[0],ne=e.nodes[1],ve(),ne(),w=history.state?.[K],R=history.state?.[W],w||(w=R=Date.now(),history.replaceState({...history.state,[K]:w,[W]:R},""));const a=C[w];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await Qt(we,n)):(await B({type:"enter",url:Le(y.hash?tn(new URL(location.href)):location.href),replace_state:!0}),r()),Xt()}function Vt(){ae.length=0,Ie=!1}function rt(e){re.some(t=>t?.snapshot)&&(z[e]=re.map(t=>t?.snapshot?.capture()))}function ot(e){z[e]?.forEach((t,n)=>{re[n]?.snapshot?.restore(t)})}function Fe(){Ae(w),De(Ye,C),rt(R),De(We,z)}async function st(e,t,n,a){let r;t.invalidateAll&&ye(),await B({type:"goto",url:Le(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(Ie=!0,r=[...Me.keys()]),t.invalidate&&t.invalidate.forEach(Jt)}}),t.invalidateAll&&ee().then(ee).then(()=>{Me.forEach(({resource:i},o)=>{r?.includes(o)&&i.refresh?.()})})}async function Kt(e){if(e.id!==L?.id){ye();const t={};se.add(t),L={id:e.id,token:t,promise:ct({...e,preload:t}).then(n=>(se.delete(t),n.type==="loaded"&&n.state.error&&ye(),n)),fork:null}}return L.promise}async function _e(e){const t=(await fe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}async function it(e,t,n){_=e.state;const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(k,e.props.page),at=new y.root({target:t,props:{...e.props,stores:$,components:re},hydrate:n,sync:!1}),await Promise.resolve(),ot(R),n){const r={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href),scroll:C[w]??D()},willUnload:!1,type:"enter",complete:Promise.resolve()};G.forEach(i=>i(r))}oe=!0}function ie({url:e,params:t,branch:n,status:a,error:r,route:i,form:o}){let s="never";if(x&&(e.pathname===x||e.pathname===x+"/"))s="always";else for(const u of n)u?.slash!==void 0&&(s=u.slash);e.pathname=pt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:i},props:{constructors:Ot(n).map(u=>u.node.component),page:je(k)}};o!==void 0&&(c.props.form=o);let l={},f=!k,h=0;for(let u=0;u<Math.max(n.length,_.branch.length);u+=1){const p=n[u],m=_.branch[u];p?.data!==m?.data&&(f=!0),p&&(l={...l,...p.data},f&&(c.props[`data_${h}`]=l),h+=1)}return(!_.url||e.href!==_.url.href||_.error!==r||o!==void 0&&o!==k.form||f)&&(c.props.page={error:r,params:t,route:{id:i?.id??null},state:{},status:a,url:new URL(e),form:o??null,data:f?l:k.data}),c}async function Pe({loader:e,parent:t,url:n,params:a,route:r,server_data_node:i}){let o=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:o,uses:s}:null,data:o??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function Bt(e,t,n){let a=e instanceof Request?e.url:e;const r=new URL(a,n);r.origin===n.origin&&(a=r.href.slice(n.origin.length));const i=oe?bt(a,r.href,t):yt(a,t);return{resolved:r,promise:i}}function Mt(e,t,n,a,r,i){if(Ie)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const o of r.search_params)if(a.has(o))return!0;for(const o of r.params)if(i[o]!==_.params[o])return!0;for(const o of r.dependencies)if(ae.some(s=>s(new URL(o))))return!0;return!1}function Oe(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Ft(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),i=t.searchParams.getAll(a);r.every(o=>i.includes(o))&&i.every(o=>r.includes(o))&&n.delete(a)}return n}function Gt({error:e,url:t,route:n,params:a}){return{type:"loaded",state:{error:e,url:t,route:n,params:a,branch:[]},props:{page:je(k),constructors:[]}}}async function ct({id:e,invalidating:t,url:n,params:a,route:r,preload:i}){if(L?.id===e)return se.delete(L.token),L.promise;const{errors:o,layouts:s,leaf:c}=r,l=[...s,c];o.forEach(g=>g?.().catch(()=>{})),l.forEach(g=>g?.[1]().catch(()=>{}));const f=_.url?e!==ce(_.url):!1,h=_.route?r.id!==_.route.id:!1,v=Ft(_.url,n);let u=!1;const p=l.map(async(g,d)=>{if(!g)return;const E=_.branch[d];return g[1]===E?.loader&&!Mt(u,h,f,v,E.universal?.uses,a)?E:(u=!0,Pe({loader:g[1],url:n,params:a,route:r,parent:async()=>{const P={};for(let O=0;O<d;O+=1)Object.assign(P,(await p[O])?.data);return P},server_data_node:Oe(g[0]?{type:"skip"}:null,g[0]?E?.server:void 0)}))});for(const g of p)g.catch(()=>{});const m=[];for(let g=0;g<l.length;g+=1)if(l[g])try{m.push(await p[g])}catch(d){if(d instanceof Se)return{type:"redirect",location:d.location};if(se.has(i))return Gt({error:await X(d,{params:a,url:n,route:{id:r.id}}),url:n,params:a,route:r});let E=Ue(d),S;if(d instanceof Ee)S=d.body;else{if(await $.updated.check())return await Ze(),await H(n);S=await X(d,{params:a,url:n,route:{id:r.id}})}const P=await Wt(g,m,o);return P?ie({url:n,params:a,branch:m.slice(0,P.idx).concat(P.node),status:E,error:S,route:r}):await ut(n,{id:r.id},S,E)}else m.push(void 0);return ie({url:n,params:a,branch:m,status:200,error:null,route:r,form:t?void 0:null})}async function Wt(e,t,n){for(;e--;)if(n[e]){let a=e;for(;!t[a];)a-=1;try{return{idx:a+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function $e({status:e,error:t,url:n,route:a}){const r={};let i=null;try{const o=await Pe({loader:ve,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:Oe(i)}),s={node:await ne(),loader:ne,universal:null,server:null,data:null};return ie({url:n,params:r,branch:[o,s],status:e,error:t,route:null})}catch(o){if(o instanceof Se)return st(new URL(o.location,location.href),{},0);throw o}}async function Yt(e){const t=e.href;if(Z.has(t))return Z.get(t);let n;try{const a=(async()=>{let r=await y.hooks.reroute({url:new URL(e),fetch:async(i,o)=>Bt(i,o,e).promise})??e;if(typeof r=="string"){const i=new URL(e);y.hash?i.hash=r:i.pathname=r,r=i}return r})();Z.set(t,a),n=await a}catch{Z.delete(t);return}return n}async function fe(e,t){if(e&&!ue(e,x,y.hash)){const n=await Yt(e);if(!n)return;const a=zt(n);for(const r of Te){const i=r.exec(a);if(i)return{id:ce(e),invalidating:t,route:r,params:_t(i),url:e}}}}function zt(e){return gt(y.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function ce(e){return(y.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function lt({url:e,type:t,intent:n,delta:a,event:r,scroll:i}){let o=!1;const s=Ce(_,n,e,t,i??null);a!==void 0&&(s.navigation.delta=a),r!==void 0&&(s.navigation.event=r);const c={...s.navigation,cancel:()=>{o=!0,s.reject(new Error("navigation cancelled"))}};return J||et.forEach(l=>l(c)),o?null:s}async function B({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o={},redirect_count:s=0,nav_token:c={},accept:l=Ke,block:f=Ke,event:h}){const v=N;N=c;const u=await fe(t,!1),p=e==="enter"?Ce(_,u,t,e):lt({url:t,type:e,delta:n?.delta,intent:u,scroll:n?.scroll,event:h});if(!p){f(),N===c&&(N=v);return}const m=w,g=R;l(),J=!0,oe&&p.navigation.type!=="enter"&&$.navigating.set(Y.current=p.navigation);let d=u&&await ct(u);if(!d){if(ue(t,x,y.hash))return await H(t,i);d=await ut(t,{id:null},await X(new Re(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,N!==c)return p.reject(new Error("navigation aborted")),!1;if(d.type==="redirect"){if(s<20){await B({type:e,url:new URL(d.location,t),popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o,redirect_count:s+1,nav_token:c}),p.fulfil(void 0);return}d=await $e({status:500,error:await X(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else d.props.page.status>=400&&await $.updated.check()&&(await Ze(),await H(t,i));if(Vt(),Ae(m),rt(g),d.props.page.url.pathname!==t.pathname&&(t.pathname=d.props.page.url.pathname),o=n?n.state:o,!n){const b=i?0:1,Q={[K]:w+=b,[W]:R+=b,[ze]:o};(i?history.replaceState:history.pushState).call(history,Q,"",t),i||Dt(w,R)}const E=u&&L?.id===u.id?L.fork:null;L=null,d.props.page.state=o;let S;if(oe){const b=(await Promise.all(Array.from(qt,q=>q(p.navigation)))).filter(q=>typeof q=="function");if(b.length>0){let q=function(){b.forEach(de=>{G.delete(de)})};b.push(q),b.forEach(de=>{G.add(de)})}_=d.state,d.props.page&&(d.props.page.url=t);const Q=E&&await E;Q?S=Q.commit():(at.$set(d.props),jt(d.props.page),S=ht?.()),nt=!0}else await it(d,we,!1);const{activeElement:P}=document;await S,await ee(),await ee();let O=null;if(Be){const b=n?n.scroll:r?D():null;b?scrollTo(b.x,b.y):(O=t.hash&&document.getElementById(ft(t)))?O.scrollIntoView():scrollTo(0,0)}const dt=document.activeElement!==P&&document.activeElement!==document.body;!a&&!dt&&en(t,!O),Be=!0,d.props.page&&Object.assign(k,d.props.page),J=!1,e==="popstate"&&ot(R),p.fulfil(void 0),p.navigation.to&&(p.navigation.to.scroll=D()),G.forEach(b=>b(p.navigation)),$.navigating.set(Y.current=null)}async function ut(e,t,n,a,r){return e.origin===le&&e.pathname===location.pathname&&!tt?await $e({status:a,error:n,url:e,route:t}):await H(e,r)}function Ht(){let e,t={element:void 0,href:void 0},n;I.addEventListener("mousemove",s=>{const c=s.target;clearTimeout(e),e=setTimeout(()=>{i(c,j.hover)},20)});function a(s){s.defaultPrevented||i(s.composedPath()[0],j.tap)}I.addEventListener("mousedown",a),I.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(s=>{for(const c of s)c.isIntersecting&&(_e(new URL(c.target.href)),r.unobserve(c.target))},{threshold:0});async function i(s,c){const l=Je(s,I),f=l===t.element&&l?.href===t.href&&c>=n;if(!l||f)return;const{url:h,external:v,download:u}=me(l,x,y.hash);if(v||u)return;const p=te(l),m=h&&ce(_.url)===ce(h);if(!(p.reload||m))if(c<=p.preload_data){t={element:l,href:l.href},n=j.tap;const g=await fe(h,!1);if(!g)return;Kt(g)}else c<=p.preload_code&&(t={element:l,href:l.href},n=c,_e(h))}function o(){r.disconnect();for(const s of I.querySelectorAll("a")){const{url:c,external:l,download:f}=me(s,x,y.hash);if(l||f)continue;const h=te(s);h.reload||(h.preload_code===j.viewport&&r.observe(s),h.preload_code===j.eager&&_e(c))}}G.add(o),o()}function X(e,t){if(e instanceof Ee)return e.body;const n=Ue(e),a=$t(e);return y.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function ln(e,t={}){return e=new URL(Le(e)),e.origin!==le?Promise.reject(new Error("goto: invalid URL")):st(e,t,0)}function Jt(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function Xt(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Fe(),!J){const a=Ce(_,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};et.forEach(i=>i(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Fe()}),navigator.connection?.saveData||Ht(),I.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Je(t.composedPath()[0],I);if(!n)return;const{url:a,external:r,target:i,download:o}=me(n,x,y.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const s=te(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[l,f]=(y.hash?a.hash.replace(/^#/,""):a.href).split("#"),h=l===he(location);if(r||s.reload&&(!h||!f)){lt({url:a,type:"link",event:t})?J=!0:t.preventDefault();return}if(f!==void 0&&h){const[,v]=_.url.href.split("#");if(v===f){if(t.preventDefault(),f===""||f==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(f));u&&(u.scrollIntoView(),u.focus())}return}if(M=!0,Ae(w),e(a),!s.replace_state)return;M=!1}t.preventDefault(),await new Promise(v=>{requestAnimationFrame(()=>{setTimeout(v,0)}),setTimeout(v,100)}),await B({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href,event:t})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formTarget||n.target)==="_blank"||(a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(ue(o,x,!1))return;const s=t.target,c=te(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(s,a);o.search=new URLSearchParams(l).toString(),B({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!be){if(t.state?.[K]){const n=t.state[K];if(N={},n===w)return;const a=C[n],r=t.state[ze]??{},i=new URL(t.state[Tt]??location.href),o=t.state[W],s=_.url?he(location)===he(_.url):!1;if(o===R&&(nt||s)){r!==k.state&&(k.state=r),e(i),C[w]=D(),a&&scrollTo(a.x,a.y),w=n;return}const l=n-w;await B({type:"popstate",url:i,popped:{state:r,scroll:a,delta:l},accept:()=>{w=n,R=o},block:()=>{history.go(-l)},nav_token:N,event:t})}else if(!M){const n=new URL(location.href);e(n),y.hash&&location.reload()}}}),addEventListener("hashchange",()=>{M&&(M=!1,history.replaceState({...history.state,[K]:++w,[W]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Nt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&$.navigating.set(Y.current=null)});function e(t){_.url=k.url=t,$.page.set(je(k)),$.page.notify()}}async function Qt(e,{status:t=200,error:n,node_ids:a,params:r,route:i,server_route:o,data:s,form:c}){tt=!0;const l=new URL(location.href);let f;({params:r={},route:i={id:null}}=await fe(l,!1)||{}),f=Te.find(({id:u})=>u===i.id);let h,v=!0;try{const u=a.map(async(m,g)=>{const d=s[g];return d?.uses&&(d.uses=Zt(d.uses)),Pe({loader:y.nodes[m],url:l,params:r,route:i,parent:async()=>{const E={};for(let S=0;S<g;S+=1)Object.assign(E,(await u[S]).data);return E},server_data_node:Oe(d)})}),p=await Promise.all(u);if(f){const m=f.layouts;for(let g=0;g<m.length;g++)m[g]||p.splice(g,0,void 0)}h=ie({url:l,params:r,branch:p,status:t,error:n,form:c,route:f??null})}catch(u){if(u instanceof Se){await H(new URL(u.location,location.href));return}h=await $e({status:Ue(u),error:await X(u,{url:l,params:r,route:i}),url:l,route:i}),e.textContent="",v=!1}h.props.page&&(h.props.page.state={}),await it(h,e,v)}function Zt(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 be=!1;function en(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const a=ft(e);if(a&&document.getElementById(a)){const{x:i,y:o}=D();setTimeout(()=>{const s=history.state;be=!0,location.replace(new URL(`#${a}`,location.href)),history.replaceState(s,"",e),t&&scrollTo(i,o),be=!1})}else{const i=document.body,o=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),o!==null?i.setAttribute("tabindex",o):i.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const i=[];for(let o=0;o<r.rangeCount;o+=1)i.push(r.getRangeAt(o));setTimeout(()=>{if(r.rangeCount===i.length){for(let o=0;o<r.rangeCount;o+=1){const s=i[o],c=r.getRangeAt(o);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}r.removeAllRanges()}})}}}function Ce(e,t,n,a,r=null){let i,o;const s=new Promise((l,f)=>{i=l,o=f});return s.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:D()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:r},willUnload:!t,type:a,complete:s},fulfil:i,reject:o}}function je(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 tn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function ft(e){let t;if(y.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{cn as a,ln as g,an as l,k as p,$ as s};
@@ -0,0 +1 @@
1
+ import{B as A,C as F,D as S,F as K,G as E,H as I,j as P,I as C,J as $,K as H,l as y,k as z,E as G,L as Z,M as j,N as q,O as J,P as Q,Q as g,R as V,T as W,U as O,V as X,W as k,b as M,X as ee,g as p,Y as se,Z as re,_ as L,$ as ne,a0 as T,a1 as te,z as ie,a2 as ae,a3 as ue,i as fe,a4 as ce,a5 as oe,a6 as le,a7 as de,a8 as _e,S as he,a9 as pe,aa as ve,ab as D,ac as N}from"./CGjnWgBq.js";class be{anchor;#s=new Map;#r=new Map;#e=new Map;#n=new Set;#t=!0;constructor(s,n=!0){this.anchor=s,this.#t=n}#i=()=>{var s=A;if(this.#s.has(s)){var n=this.#s.get(s),r=this.#r.get(n);if(r)F(r),this.#n.delete(n);else{var i=this.#e.get(n);i&&(this.#r.set(n,i.effect),this.#e.delete(n),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),r=i.effect)}for(const[t,u]of this.#s){if(this.#s.delete(t),t===s)break;const a=this.#e.get(u);a&&(S(a.effect),this.#e.delete(u))}for(const[t,u]of this.#r){if(t===n||this.#n.has(t))continue;const a=()=>{if(Array.from(this.#s.values()).includes(t)){var o=document.createDocumentFragment();$(u,o),o.append(E()),this.#e.set(t,{effect:u,fragment:o})}else S(u);this.#n.delete(t),this.#r.delete(t)};this.#t||!r?(this.#n.add(t),K(u,a,!1)):a()}}};#a=s=>{this.#s.delete(s);const n=Array.from(this.#s.values());for(const[r,i]of this.#e)n.includes(r)||(S(i.effect),this.#e.delete(r))};ensure(s,n){var r=A,i=H();if(n&&!this.#r.has(s)&&!this.#e.has(s))if(i){var t=document.createDocumentFragment(),u=E();t.append(u),this.#e.set(s,{effect:I(()=>n(u)),fragment:t})}else this.#r.set(s,I(()=>n(this.anchor)));if(this.#s.set(r,s),i){for(const[a,f]of this.#r)a===s?r.unskip_effect(f):r.skip_effect(f);for(const[a,f]of this.#e)a===s?r.unskip_effect(f.effect):r.skip_effect(f.effect);r.oncommit(this.#i),r.ondiscard(this.#a)}else P&&(this.anchor=C),this.#i()}}function xe(e,s,n=!1){P&&z();var r=new be(e),i=n?G:0;function t(u,a){if(P){const l=Z(e);var f;if(l===j?f=0:l===q?f=!1:f=parseInt(l.substring(1)),u!==f){var o=J();Q(o),r.anchor=o,g(!1),r.ensure(u,a),g(!0);return}}r.ensure(u,a)}y(()=>{var u=!1;s((a,f=0)=>{u=!0,t(f,a)}),u||t(!1,null)},i)}let b=!1,R=Symbol();function we(e,s,n){const r=n[s]??={store:null,source:X(void 0),unsubscribe:O};if(r.store!==e&&!(R in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=O;else{var i=!0;r.unsubscribe=k(e,t=>{i?r.source.v=t:M(r.source,t)}),i=!1}return e&&R in n?ee(e):p(r.source)}function Ae(){const e={};function s(){V(()=>{for(var n in e)e[n].unsubscribe();W(e,R,{enumerable:!1,value:!0})})}return[e,s]}function me(e){var s=b;try{return b=!1,[e(),b]}finally{b=s}}const Se={get(e,s){if(!e.exclude.includes(s))return e.props[s]},set(e,s){return!1},getOwnPropertyDescriptor(e,s){if(!e.exclude.includes(s)&&s in e.props)return{enumerable:!0,configurable:!0,value:e.props[s]}},has(e,s){return e.exclude.includes(s)?!1:s in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(s=>!e.exclude.includes(s))}};function Ee(e,s,n){return new Proxy({props:e,exclude:s},Se)}const Pe={get(e,s){if(!e.exclude.includes(s))return p(e.version),s in e.special?e.special[s]():e.props[s]},set(e,s,n){if(!(s in e.special)){var r=T;try{N(e.parent_effect),e.special[s]=Re({get[s](){return e.props[s]}},s,L)}finally{N(r)}}return e.special[s](n),D(e.version),!0},getOwnPropertyDescriptor(e,s){if(!e.exclude.includes(s)&&s in e.props)return{enumerable:!0,configurable:!0,value:e.props[s]}},deleteProperty(e,s){return e.exclude.includes(s)||(e.exclude.push(s),D(e.version)),!0},has(e,s){return e.exclude.includes(s)?!1:s in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(s=>!e.exclude.includes(s))}};function Ie(e,s){return new Proxy({props:e,exclude:s,special:{},version:ve(0),parent_effect:T},Pe)}function Re(e,s,n,r){var i=!ce||(n&oe)!==0,t=(n&ue)!==0,u=(n&de)!==0,a=r,f=!0,o=()=>(f&&(f=!1,a=u?fe(r):r),a),l;if(t){var B=he in e||pe in e;l=se(e,s)?.set??(B&&s in e?c=>e[s]=c:void 0)}var _,x=!1;t?[_,x]=me(()=>e[s]):_=e[s],_===void 0&&r!==void 0&&(_=o(),l&&(i&&re(),l(_)));var d;if(i?d=()=>{var c=e[s];return c===void 0?o():(f=!0,c)}:d=()=>{var c=e[s];return c!==void 0&&(a=void 0),c===void 0?a:c},i&&(n&L)===0)return d;if(l){var Y=e.$$legacy;return(function(c,v){return arguments.length>0?((!i||!v||Y||x)&&l(v?d():c),c):d()})}var m=!1,h=((n&le)!==0?ie:ae)(()=>(m=!1,d()));t&&p(h);var U=T;return(function(c,v){if(arguments.length>0){const w=v?p(h):i&&t?ne(c):c;return M(h,w),m=!0,a!==void 0&&(a=w),c}return _e&&m||(U.f&te)!==0?h.v:p(h)})}export{be as B,we as a,xe as i,Ie as l,Re as p,Ee as r,Ae as s};