clawmini 0.0.1 → 0.0.2

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 (56) hide show
  1. package/README.md +60 -77
  2. package/dist/adapter-discord/index.mjs +2 -2
  3. package/dist/{chats-Zd_HXDHx.mjs → chats-BcbxvPlj.mjs} +2 -2
  4. package/dist/{chats-Zd_HXDHx.mjs.map → chats-BcbxvPlj.mjs.map} +1 -1
  5. package/dist/{chats-DKgTeU7i.mjs → chats-CpRQrNHj.mjs} +2 -2
  6. package/dist/{chats-DKgTeU7i.mjs.map → chats-CpRQrNHj.mjs.map} +1 -1
  7. package/dist/cli/index.mjs +4 -3
  8. package/dist/cli/index.mjs.map +1 -1
  9. package/dist/cli/lite.mjs +48 -0
  10. package/dist/cli/lite.mjs.map +1 -1
  11. package/dist/daemon/index.mjs +311 -19
  12. package/dist/daemon/index.mjs.map +1 -1
  13. package/dist/{lite-Dl7WXyaH.mjs → lite-DBUuHsX0.mjs} +2 -2
  14. package/dist/{lite-Dl7WXyaH.mjs.map → lite-DBUuHsX0.mjs.map} +1 -1
  15. package/dist/policy-utils-BvfOK6Ih.mjs +114 -0
  16. package/dist/policy-utils-BvfOK6Ih.mjs.map +1 -0
  17. package/dist/web/_app/immutable/chunks/{CSvS_NwK.js → B3YcEpQV.js} +1 -1
  18. package/dist/web/_app/immutable/chunks/{COekwvP2.js → CAZeqksE.js} +1 -1
  19. package/dist/web/_app/immutable/entry/{app.B-vZe7PN.js → app.ZuicLpkH.js} +2 -2
  20. package/dist/web/_app/immutable/entry/start.DuQwh4Nz.js +1 -0
  21. package/dist/web/_app/immutable/nodes/{0.B5WFN0zw.js → 0.BB1CjKco.js} +1 -1
  22. package/dist/web/_app/immutable/nodes/{1.D1wtJb2k.js → 1.CdSgEHu9.js} +1 -1
  23. package/dist/web/_app/immutable/nodes/{3.BB5wCoBf.js → 3.CKp7Wkn8.js} +1 -1
  24. package/dist/web/_app/immutable/nodes/{4.Dr2jvAXK.js → 4.FyeoMY-Y.js} +1 -1
  25. package/dist/web/_app/immutable/nodes/{5.BJl7oM3b.js → 5.D6mVN7l7.js} +1 -1
  26. package/dist/web/_app/version.json +1 -1
  27. package/dist/web/index.html +6 -6
  28. package/dist/{workspace-CSgfo_2J.mjs → workspace-BC1ahx4R.mjs} +13 -2
  29. package/dist/workspace-BC1ahx4R.mjs.map +1 -0
  30. package/docs/CLI_REFERENCE.md +35 -0
  31. package/docs/guides/sandbox_policies.md +12 -5
  32. package/package.json +1 -1
  33. package/web/.svelte-kit/ambient.d.ts +2 -6
  34. package/web/.svelte-kit/generated/server/internal.js +1 -1
  35. package/web/.svelte-kit/output/client/.vite/manifest.json +25 -25
  36. package/web/.svelte-kit/output/client/_app/immutable/chunks/{CSvS_NwK.js → B3YcEpQV.js} +1 -1
  37. package/web/.svelte-kit/output/client/_app/immutable/chunks/{COekwvP2.js → CAZeqksE.js} +1 -1
  38. package/web/.svelte-kit/output/client/_app/immutable/entry/{app.B-vZe7PN.js → app.ZuicLpkH.js} +2 -2
  39. package/web/.svelte-kit/output/client/_app/immutable/entry/start.DuQwh4Nz.js +1 -0
  40. package/web/.svelte-kit/output/client/_app/immutable/nodes/{0.B5WFN0zw.js → 0.BB1CjKco.js} +1 -1
  41. package/web/.svelte-kit/output/client/_app/immutable/nodes/{1.D1wtJb2k.js → 1.CdSgEHu9.js} +1 -1
  42. package/web/.svelte-kit/output/client/_app/immutable/nodes/{3.BB5wCoBf.js → 3.CKp7Wkn8.js} +1 -1
  43. package/web/.svelte-kit/output/client/_app/immutable/nodes/{4.Dr2jvAXK.js → 4.FyeoMY-Y.js} +1 -1
  44. package/web/.svelte-kit/output/client/_app/immutable/nodes/{5.BJl7oM3b.js → 5.D6mVN7l7.js} +1 -1
  45. package/web/.svelte-kit/output/client/_app/version.json +1 -1
  46. package/web/.svelte-kit/output/server/chunks/internal.js +1 -1
  47. package/web/.svelte-kit/output/server/manifest-full.js +1 -1
  48. package/web/.svelte-kit/output/server/manifest.js +1 -1
  49. package/web/.svelte-kit/output/server/nodes/0.js +1 -1
  50. package/web/.svelte-kit/output/server/nodes/1.js +1 -1
  51. package/web/.svelte-kit/output/server/nodes/3.js +1 -1
  52. package/web/.svelte-kit/output/server/nodes/4.js +1 -1
  53. package/web/.svelte-kit/output/server/nodes/5.js +1 -1
  54. package/dist/web/_app/immutable/entry/start.oP1AgKhs.js +0 -1
  55. package/dist/workspace-CSgfo_2J.mjs.map +0 -1
  56. package/web/.svelte-kit/output/client/_app/immutable/entry/start.oP1AgKhs.js +0 -1
@@ -1 +1 @@
1
- import{bg as _e,bq as bt,I as U,w as A,D as P,aR as ne,br as kt}from"./CpaGRn9L.js";import{o as Me}from"./B8yYFADm.js";const V=[];function Ae(e,t=_e){let n=null;const r=new Set;function a(o){if(bt(e,o)&&(e=o,n)){const l=!V.length;for(const c of r)c[1](),V.push(c,e);if(l){for(let c=0;c<V.length;c+=2)V[c][0](V[c+1]);V.length=0}}}function i(o){a(o(e))}function s(o,l=_e){const c=[o,l];return r.add(c),r.size===1&&(n=t(a,i)||_e),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:a,update:i,subscribe:s}}class Pe{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 Te{constructor(t,n){this.status=t,this.location=n}}class Ie extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function Et(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function St(e){return e.split("%25").map(decodeURI).join("%25")}function Rt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function we({href:e}){return e.split("#")[0]}function xt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(s,o){if(o==="get"||o==="getAll"||o==="has")return(c,...d)=>(n(c),s[o](c,...d));t();const l=Reflect.get(s,o);return typeof l=="function"?l.bind(s):l}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const s of i)Object.defineProperty(a,s,{get(){return t(),e[s]},enumerable:!0,configurable:!0});return a}function Lt(...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;new TextDecoder;function Ut(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 At=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&G.delete(Oe(e)),At(e,t));const G=new Map;function Pt(e,t){const n=Oe(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...i}=JSON.parse(r.textContent);const s=r.getAttribute("data-ttl");return s&&G.set(n,{body:a,init:i,ttl:1e3*Number(s)}),r.getAttribute("data-b64")!==null&&(a=Ut(a)),Promise.resolve(new Response(a,i))}return window.fetch(e,t)}function Tt(e,t,n){if(G.size>0){const r=Oe(e,n),a=G.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);G.delete(r)}}return window.fetch(t,n)}function Oe(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="${Lt(...a)}"]`}return r}const It=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Ot(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Ct(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 i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const s=r.split(/\[(.+?)\](?!\])/);return"/"+s.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return ve(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return ve(String.fromCharCode(...l.slice(2).split("-").map(w=>parseInt(w,16))));const d=It.exec(l),[,p,f,u,h]=d;return t.push({name:u,matcher:h,optional:!!p,rest:!!f,chained:f?c===1&&s[0]==="":!1}),f?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return ve(l)}).join("")}).join("")}/?$`),params:t}}function $t(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Ct(e){return e.slice(1).split("/").filter($t)}function jt(e,t,n){const r={},a=e.slice(1),i=a.filter(o=>o!==void 0);let s=0;for(let o=0;o<t.length;o+=1){const l=t[o];let c=a[o-s];if(l.chained&&l.rest&&s&&(c=a.slice(o-s,o+1).filter(d=>d).join("/"),s=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){r[l.name]=c;const d=t[o+1],p=a[o+1];d&&!d.rest&&d.optional&&p&&l.chained&&(s=0),!d&&!p&&Object.keys(r).length===i.length&&(s=0);continue}if(l.optional&&l.chained){s++;continue}return}if(!s)return r}function ve(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Nt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[l,c,d]])=>{const{pattern:p,params:f}=Ot(o),u={id:o,exec:h=>{const w=p.exec(h);if(w)return jt(w,f,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...c||[]].map(s),leaf:i(l)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(o){const l=o<0;return l&&(o=~o),[l,e[o]]}function s(o){return o===void 0?o:[a.has(o),e[o]]}}function Ze(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function He(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const x=globalThis.__sveltekit_2krgzd?.base??"",qt=globalThis.__sveltekit_2krgzd?.assets??x??"",Dt="1773082257224",et="sveltekit:snapshot",tt="sveltekit:scroll",nt="sveltekit:states",Vt="sveltekit:pageurl",B="sveltekit:history",H="sveltekit:navigation",N={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},he=location.origin;function $e(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 q(){return{x:pageXOffset,y:pageYOffset}}function z(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const We={...N,"":N.hover};function rt(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function at(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=rt(e)}}function Ee(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,i=!r||!!a||pe(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),s=r?.origin===he&&e.hasAttribute("download");return{url:r,external:i,target:a,download:s}}function re(e){let t=null,n=null,r=null,a=null,i=null,s=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=z(o,"preload-code")),a===null&&(a=z(o,"preload-data")),t===null&&(t=z(o,"keepfocus")),n===null&&(n=z(o,"noscroll")),i===null&&(i=z(o,"reload")),s===null&&(s=z(o,"replacestate")),o=rt(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:We[r??"off"],preload_data:We[a??"off"],keepfocus:l(t),noscroll:l(n),reload:l(i),replace_state:l(s)}}function Je(e){const t=Ae(e);let n=!0;function r(){n=!0,t.update(s=>s)}function a(s){n=!1,t.set(s)}function i(s){let o;return t.subscribe(l=>{(o===void 0||n&&l!==o)&&s(o=l)})}return{notify:r,set:a,subscribe:i}}const ot={v:()=>{}};function zt(){const{set:e,subscribe:t}=Ae(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${qt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const s=(await a.json()).version!==Dt;return s&&(e(!0),ot.v(),clearTimeout(n)),s}catch{return!1}}return{subscribe:t,check:r}}function pe(e,t,n){return e.origin!==he||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function hn(e){}const st=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...st];const Bt=new Set([...st]);[...Bt];function Kt(e){return e.filter(t=>t!=null)}function Ce(e){return e instanceof Pe||e instanceof Ie?e.status:500}function Ft(e){return e instanceof Ie?e.text:"Internal Error"}let b,W,ye;const Gt=Me.toString().includes("$$")||/function \w+\(\) \{\}/.test(Me.toString());Gt?(b={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},W={current:null},ye={current:!1}):(b=new class{#e=U({});get data(){return A(this.#e)}set data(t){P(this.#e,t)}#t=U(null);get form(){return A(this.#t)}set form(t){P(this.#t,t)}#n=U(null);get error(){return A(this.#n)}set error(t){P(this.#n,t)}#r=U({});get params(){return A(this.#r)}set params(t){P(this.#r,t)}#a=U({id:null});get route(){return A(this.#a)}set route(t){P(this.#a,t)}#o=U({});get state(){return A(this.#o)}set state(t){P(this.#o,t)}#s=U(-1);get status(){return A(this.#s)}set status(t){P(this.#s,t)}#i=U(new URL("https://example.com"));get url(){return A(this.#i)}set url(t){P(this.#i,t)}},W=new class{#e=U(null);get current(){return A(this.#e)}set current(t){P(this.#e,t)}},ye=new class{#e=U(!1);get current(){return A(this.#e)}set current(t){P(this.#e,t)}},ot.v=()=>ye.current=!0);function it(e){Object.assign(b,e)}const Ye={spanContext(){return Mt},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}},Mt={traceId:"",spanId:"",traceFlags:0},Ht=new Set(["icon","shortcut icon","apple-touch-icon"]),j=Ze(tt)??{},J=Ze(et)??{},C={url:Je({}),page:Je({}),navigating:Ae(null),updated:zt()};function je(e){j[e]=q()}function Wt(e,t){let n=e+1;for(;j[n];)delete j[n],n+=1;for(n=t+1;J[n];)delete J[n],n+=1}function Y(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function lt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function Se(){}let Ne,Re,ae,T,xe,v;const oe=[],se=[];let L=null;function ie(){L?.fork?.then(e=>e?.discard()),L=null}const te=new Map,ct=new Set,Jt=new Set,M=new Set;let _={branch:[],error:null,url:null},ut=!1,le=!1,Xe=!0,X=!1,F=!1,ft=!1,ge=!1,qe,y,R,I;const ce=new Set;let be;const ue=new Map;async function _n(e,t,n){globalThis.__sveltekit_2krgzd?.data&&globalThis.__sveltekit_2krgzd.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Ne=Nt(e),T=document.documentElement,xe=t,Re=e.nodes[0],ae=e.nodes[1],Re(),ae(),y=history.state?.[B],R=history.state?.[H],y||(y=R=Date.now(),history.replaceState({...history.state,[B]:y,[H]:R},""));const r=j[y];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await sn(xe,n)):(await K({type:"enter",url:$e(v.hash?un(new URL(location.href)):location.href),replace_state:!0}),a()),on()}async function Yt(e=!0,t=!0){if(await(be||=Promise.resolve()),!be)return;be=null;const n=I={},r=await Z(_.url,!0);if(ie(),ge&&ue.forEach(({resource:a})=>{a.refresh?.()}),e){const a=b.state,i=r&&await Be(r);if(!i||n!==I)return;if(i.type==="redirect")return De(new URL(i.location,_.url).href,{replaceState:!0},1,n);t||(i.props.page.state=a),it(i.props.page),_=i.state,Le(),qe.$set(i.props)}else Le();await Promise.all([...ue.values()].map(({resource:a})=>a)).catch(Se)}function Le(){oe.length=0,ge=!1}function dt(e){se.some(t=>t?.snapshot)&&(J[e]=se.map(t=>t?.snapshot?.capture()))}function ht(e){J[e]?.forEach((t,n)=>{se[n]?.snapshot?.restore(t)})}function Qe(){je(y),He(tt,j),dt(R),He(et,J)}async function De(e,t,n,r){let a;t.invalidateAll&&ie(),await K({type:"goto",url:$e(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(ge=!0,a=[...ue.keys()]),t.invalidate&&t.invalidate.forEach(wt)}}),t.invalidateAll&&ne().then(ne).then(()=>{ue.forEach(({resource:i},s)=>{a?.includes(s)&&i.refresh?.()})})}async function Xt(e){if(e.id!==L?.id){ie();const t={};ce.add(t),L={id:e.id,token:t,promise:Be({...e,preload:t}).then(n=>(ce.delete(t),n.type==="loaded"&&n.state.error&&ie(),n)),fork:null}}return L.promise}async function ke(e){const t=(await Z(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function pt(e,t,n){_=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(b,e.props.page),qe=new v.root({target:t,props:{...e.props,stores:C,components:se},hydrate:n,sync:!1}),await Promise.resolve(),ht(R),n){const a={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href),scroll:j[y]??q()},willUnload:!1,type:"enter",complete:Promise.resolve()};M.forEach(i=>i(a))}le=!0}function fe({url:e,params:t,branch:n,status:r,error:a,route:i,form:s}){let o="never";if(x&&(e.pathname===x||e.pathname===x+"/"))o="always";else for(const u of n)u?.slash!==void 0&&(o=u.slash);e.pathname=Et(e.pathname,o),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:i},props:{constructors:Kt(n).map(u=>u.node.component),page:Ge(b)}};s!==void 0&&(l.props.form=s);let c={},d=!b,p=0;for(let u=0;u<Math.max(n.length,_.branch.length);u+=1){const h=n[u],w=_.branch[u];h?.data!==w?.data&&(d=!0),h&&(c={...c,...h.data},d&&(l.props[`data_${p}`]=c),p+=1)}return(!_.url||e.href!==_.url.href||_.error!==a||s!==void 0&&s!==b.form||d)&&(l.props.page={error:a,params:t,route:{id:i?.id??null},state:{},status:r,url:new URL(e),form:s??null,data:d?c:b.data}),l}async function Ve({loader:e,parent:t,url:n,params:r,route:a,server_data_node:i}){let s=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(c.universal?.load){let d=function(...f){for(const u of f){const{href:h}=new URL(u,n);l.dependencies.add(h)}};const p={tracing:{enabled:!1,root:Ye,current:Ye},route:new Proxy(a,{get:(f,u)=>(o&&(l.route=!0),f[u])}),params:new Proxy(r,{get:(f,u)=>(o&&l.params.add(u),f[u])}),data:i?.data??null,url:xt(n,()=>{o&&(l.url=!0)},f=>{o&&l.search_params.add(f)},v.hash),async fetch(f,u){f instanceof Request&&(u={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f?.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...u});const{resolved:h,promise:w}=gt(f,u,n);return o&&d(h.href),w},setHeaders:()=>{},depends:d,parent(){return o&&(l.parent=!0),t()},untrack(f){o=!1;try{return f()}finally{o=!0}}};s=await c.universal.load.call(null,p)??null}return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:s,uses:l}:null,data:s??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function gt(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 i=le?Tt(r,a.href,t):Pt(r,t);return{resolved:a,promise:i}}function Qt(e,t,n,r,a,i){if(ge)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const s of a.search_params)if(r.has(s))return!0;for(const s of a.params)if(i[s]!==_.params[s])return!0;for(const s of a.dependencies)if(oe.some(o=>o(new URL(s))))return!0;return!1}function ze(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Zt(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),i=t.searchParams.getAll(r);a.every(s=>i.includes(s))&&i.every(s=>a.includes(s))&&n.delete(r)}return n}function en({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Ge(b),constructors:[]}}}async function Be({id:e,invalidating:t,url:n,params:r,route:a,preload:i}){if(L?.id===e)return ce.delete(L.token),L.promise;const{errors:s,layouts:o,leaf:l}=a,c=[...o,l];s.forEach(m=>m?.().catch(()=>{})),c.forEach(m=>m?.[1]().catch(()=>{}));const d=_.url?e!==de(_.url):!1,p=_.route?a.id!==_.route.id:!1,f=Zt(_.url,n);let u=!1;const h=c.map(async(m,g)=>{if(!m)return;const E=_.branch[g];return m[1]===E?.loader&&!Qt(u,p,d,f,E.universal?.uses,r)?E:(u=!0,Ve({loader:m[1],url:n,params:r,route:a,parent:async()=>{const O={};for(let $=0;$<g;$+=1)Object.assign(O,(await h[$])?.data);return O},server_data_node:ze(m[0]?{type:"skip"}:null,m[0]?E?.server:void 0)}))});for(const m of h)m.catch(()=>{});const w=[];for(let m=0;m<c.length;m+=1)if(c[m])try{w.push(await h[m])}catch(g){if(g instanceof Te)return{type:"redirect",location:g.location};if(ce.has(i))return en({error:await Q(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let E=Ce(g),S;if(g instanceof Pe)S=g.body;else{if(await C.updated.check())return await lt(),await Y(n);S=await Q(g,{params:r,url:n,route:{id:a.id}})}const O=await tn(m,w,s);return O?fe({url:n,params:r,branch:w.slice(0,O.idx).concat(O.node),status:E,error:S,route:a}):await _t(n,{id:a.id},S,E)}else w.push(void 0);return fe({url:n,params:r,branch:w,status:200,error:null,route:a,form:t?void 0:null})}async function tn(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 Ke({status:e,error:t,url:n,route:r}){const a={};let i=null;try{const s=await Ve({loader:Re,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:ze(i)}),o={node:await ae(),loader:ae,universal:null,server:null,data:null};return fe({url:n,params:a,branch:[s,o],status:e,error:t,route:null})}catch(s){if(s instanceof Te)return De(new URL(s.location,location.href),{},0);throw s}}async function nn(e){const t=e.href;if(te.has(t))return te.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(i,s)=>gt(i,s,e).promise})??e;if(typeof a=="string"){const i=new URL(e);v.hash?i.hash=a:i.pathname=a,a=i}return a})();te.set(t,r),n=await r}catch{te.delete(t);return}return n}async function Z(e,t){if(e&&!pe(e,x,v.hash)){const n=await nn(e);if(!n)return;const r=rn(n);for(const a of Ne){const i=a.exec(r);if(i)return{id:de(e),invalidating:t,route:a,params:Rt(i),url:e}}}}function rn(e){return St(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function de(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function mt({url:e,type:t,intent:n,delta:r,event:a,scroll:i}){let s=!1;const o=Fe(_,n,e,t,i??null);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const l={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return X||ct.forEach(c=>c(l)),s?null:o}async function K({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s={},redirect_count:o=0,nav_token:l={},accept:c=Se,block:d=Se,event:p}){const f=I;I=l;const u=await Z(t,!1),h=e==="enter"?Fe(_,u,t,e):mt({url:t,type:e,delta:n?.delta,intent:u,scroll:n?.scroll,event:p});if(!h){d(),I===l&&(I=f);return}const w=y,m=R;c(),X=!0,le&&h.navigation.type!=="enter"&&C.navigating.set(W.current=h.navigation);let g=u&&await Be(u);if(!g){if(pe(t,x,v.hash))return await Y(t,i);g=await _t(t,{id:null},await Q(new Ie(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,I!==l)return h.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(o<20){await K({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s,redirect_count:o+1,nav_token:l}),h.fulfil(void 0);return}g=await Ke({status:500,error:await Q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await C.updated.check()&&(await lt(),await Y(t,i));if(Le(),je(w),dt(m),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),s=n?n.state:s,!n){const k=i?0:1,ee={[B]:y+=k,[H]:R+=k,[nt]:s};(i?history.replaceState:history.pushState).call(history,ee,"",t),i||Wt(y,R)}const E=u&&L?.id===u.id?L.fork:null;L=null,g.props.page.state=s;let S;if(le){const k=(await Promise.all(Array.from(Jt,D=>D(h.navigation)))).filter(D=>typeof D=="function");if(k.length>0){let D=function(){k.forEach(me=>{M.delete(me)})};k.push(D),k.forEach(me=>{M.add(me)})}_=g.state,g.props.page&&(g.props.page.url=t);const ee=E&&await E;ee?S=ee.commit():(qe.$set(g.props),it(g.props.page),S=kt?.()),ft=!0}else await pt(g,xe,!1);const{activeElement:O}=document;await S,await ne(),await ne();let $=null;if(Xe){const k=n?n.scroll:a?q():null;k?scrollTo(k.x,k.y):($=t.hash&&document.getElementById(vt(t)))?$.scrollIntoView():scrollTo(0,0)}const yt=document.activeElement!==O&&document.activeElement!==document.body;!r&&!yt&&cn(t,!$),Xe=!0,g.props.page&&Object.assign(b,g.props.page),X=!1,e==="popstate"&&ht(R),h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=q()),M.forEach(k=>k(h.navigation)),C.navigating.set(W.current=null)}async function _t(e,t,n,r,a){return e.origin===he&&e.pathname===location.pathname&&!ut?await Ke({status:r,error:n,url:e,route:t}):await Y(e,a)}function an(){let e,t={element:void 0,href:void 0},n;T.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(e),e=setTimeout(()=>{i(l,N.hover)},20)});function r(o){o.defaultPrevented||i(o.composedPath()[0],N.tap)}T.addEventListener("mousedown",r),T.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(ke(new URL(l.target.href)),a.unobserve(l.target))},{threshold:0});async function i(o,l){const c=at(o,T),d=c===t.element&&c?.href===t.href&&l>=n;if(!c||d)return;const{url:p,external:f,download:u}=Ee(c,x,v.hash);if(f||u)return;const h=re(c),w=p&&de(_.url)===de(p);if(!(h.reload||w))if(l<=h.preload_data){t={element:c,href:c.href},n=N.tap;const m=await Z(p,!1);if(!m)return;Xt(m)}else l<=h.preload_code&&(t={element:c,href:c.href},n=l,ke(p))}function s(){a.disconnect();for(const o of T.querySelectorAll("a")){const{url:l,external:c,download:d}=Ee(o,x,v.hash);if(c||d)continue;const p=re(o);p.reload||(p.preload_code===N.viewport&&a.observe(o),p.preload_code===N.eager&&ke(l))}}M.add(s),s()}function Q(e,t){if(e instanceof Pe)return e.body;const n=Ce(e),r=Ft(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function wn(e,t={}){return e=new URL($e(e)),e.origin!==he?Promise.reject(new Error("goto: invalid URL")):De(e,t,0)}function vn(e){return wt(e),Yt()}function wt(e){if(typeof e=="function")oe.push(e);else{const{href:t}=new URL(e,location.href);oe.push(n=>n.href===t)}}function on(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Qe(),!X){const r=Fe(_,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};ct.forEach(i=>i(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Qe()}),navigator.connection?.saveData||an(),T.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=at(t.composedPath()[0],T);if(!n)return;const{url:r,external:a,target:i,download:s}=Ee(n,x,v.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const o=re(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;const[c,d]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=c===we(location);if(a||o.reload&&(!p||!d)){mt({url:r,type:"link",event:t})?X=!0:t.preventDefault();return}if(d!==void 0&&p){const[,f]=_.url.href.split("#");if(f===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(d));u&&(u.scrollIntoView(),u.focus())}return}if(F=!0,je(y),e(r),!o.replace_state)return;F=!1}t.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await K({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),T.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 s=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(pe(s,x,!1))return;const o=t.target,l=re(o);if(l.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(o,r);s.search=new URLSearchParams(c).toString(),K({type:"form",url:s,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??s.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ue){if(t.state?.[B]){const n=t.state[B];if(I={},n===y)return;const r=j[n],a=t.state[nt]??{},i=new URL(t.state[Vt]??location.href),s=t.state[H],o=_.url?we(location)===we(_.url):!1;if(s===R&&(ft||o)){a!==b.state&&(b.state=a),e(i),j[y]=q(),r&&scrollTo(r.x,r.y),y=n;return}const c=n-y;await K({type:"popstate",url:i,popped:{state:a,scroll:r,delta:c},accept:()=>{y=n,R=s},block:()=>{history.go(-c)},nav_token:I,event:t})}else if(!F){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[B]:++y,[H]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Ht.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&C.navigating.set(W.current=null)});function e(t){_.url=b.url=t,C.page.set(Ge(b)),C.page.notify()}}async function sn(e,{status:t=200,error:n,node_ids:r,params:a,route:i,server_route:s,data:o,form:l}){ut=!0;const c=new URL(location.href);let d;({params:a={},route:i={id:null}}=await Z(c,!1)||{}),d=Ne.find(({id:u})=>u===i.id);let p,f=!0;try{const u=r.map(async(w,m)=>{const g=o[m];return g?.uses&&(g.uses=ln(g.uses)),Ve({loader:v.nodes[w],url:c,params:a,route:i,parent:async()=>{const E={};for(let S=0;S<m;S+=1)Object.assign(E,(await u[S]).data);return E},server_data_node:ze(g)})}),h=await Promise.all(u);if(d){const w=d.layouts;for(let m=0;m<w.length;m++)w[m]||h.splice(m,0,void 0)}p=fe({url:c,params:a,branch:h,status:t,error:n,form:l,route:d??null})}catch(u){if(u instanceof Te){await Y(new URL(u.location,location.href));return}p=await Ke({status:Ce(u),error:await Q(u,{url:c,params:a,route:i}),url:c,route:i}),e.textContent="",f=!1}p.props.page&&(p.props.page.state={}),await pt(p,e,f)}function ln(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 Ue=!1;function cn(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=vt(e);if(r&&document.getElementById(r)){const{x:i,y:s}=q();setTimeout(()=>{const o=history.state;Ue=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(o,"",e),t&&scrollTo(i,s),Ue=!1})}else{const i=document.body,s=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),s!==null?i.setAttribute("tabindex",s):i.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const i=[];for(let s=0;s<a.rangeCount;s+=1)i.push(a.getRangeAt(s));setTimeout(()=>{if(a.rangeCount===i.length){for(let s=0;s<a.rangeCount;s+=1){const o=i[s],l=a.getRangeAt(s);if(o.commonAncestorContainer!==l.commonAncestorContainer||o.startContainer!==l.startContainer||o.endContainer!==l.endContainer||o.startOffset!==l.startOffset||o.endOffset!==l.endOffset)return}a.removeAllRanges()}})}}}function Fe(e,t,n,r,a=null){let i,s;const o=new Promise((c,d)=>{i=c,s=d});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:q()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:a},willUnload:!t,type:r,complete:o},fulfil:i,reject:s}}function Ge(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 un(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{_n as a,wn as g,vn as i,hn as l,b as p,C as s};
1
+ import{bg as _e,bq as bt,I as U,w as A,D as P,aR as ne,br as kt}from"./CpaGRn9L.js";import{o as ze}from"./B8yYFADm.js";const V=[];function Ae(e,t=_e){let n=null;const r=new Set;function a(o){if(bt(e,o)&&(e=o,n)){const l=!V.length;for(const c of r)c[1](),V.push(c,e);if(l){for(let c=0;c<V.length;c+=2)V[c][0](V[c+1]);V.length=0}}}function i(o){a(o(e))}function s(o,l=_e){const c=[o,l];return r.add(c),r.size===1&&(n=t(a,i)||_e),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:a,update:i,subscribe:s}}class Pe{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 Te{constructor(t,n){this.status=t,this.location=n}}class Ie extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function Et(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function St(e){return e.split("%25").map(decodeURI).join("%25")}function Rt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function we({href:e}){return e.split("#")[0]}function xt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(s,o){if(o==="get"||o==="getAll"||o==="has")return(c,...d)=>(n(c),s[o](c,...d));t();const l=Reflect.get(s,o);return typeof l=="function"?l.bind(s):l}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];r&&i.push("hash");for(const s of i)Object.defineProperty(a,s,{get(){return t(),e[s]},enumerable:!0,configurable:!0});return a}function Lt(...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;new TextDecoder;function Ut(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 At=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&M.delete(Oe(e)),At(e,t));const M=new Map;function Pt(e,t){const n=Oe(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...i}=JSON.parse(r.textContent);const s=r.getAttribute("data-ttl");return s&&M.set(n,{body:a,init:i,ttl:1e3*Number(s)}),r.getAttribute("data-b64")!==null&&(a=Ut(a)),Promise.resolve(new Response(a,i))}return window.fetch(e,t)}function Tt(e,t,n){if(M.size>0){const r=Oe(e,n),a=M.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);M.delete(r)}}return window.fetch(t,n)}function Oe(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="${Lt(...a)}"]`}return r}const It=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Ot(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Ct(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 i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const s=r.split(/\[(.+?)\](?!\])/);return"/"+s.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return ve(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return ve(String.fromCharCode(...l.slice(2).split("-").map(w=>parseInt(w,16))));const d=It.exec(l),[,p,f,u,h]=d;return t.push({name:u,matcher:h,optional:!!p,rest:!!f,chained:f?c===1&&s[0]==="":!1}),f?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return ve(l)}).join("")}).join("")}/?$`),params:t}}function $t(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Ct(e){return e.slice(1).split("/").filter($t)}function jt(e,t,n){const r={},a=e.slice(1),i=a.filter(o=>o!==void 0);let s=0;for(let o=0;o<t.length;o+=1){const l=t[o];let c=a[o-s];if(l.chained&&l.rest&&s&&(c=a.slice(o-s,o+1).filter(d=>d).join("/"),s=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){r[l.name]=c;const d=t[o+1],p=a[o+1];d&&!d.rest&&d.optional&&p&&l.chained&&(s=0),!d&&!p&&Object.keys(r).length===i.length&&(s=0);continue}if(l.optional&&l.chained){s++;continue}return}if(!s)return r}function ve(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Nt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[l,c,d]])=>{const{pattern:p,params:f}=Ot(o),u={id:o,exec:h=>{const w=p.exec(h);if(w)return jt(w,f,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...c||[]].map(s),leaf:i(l)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(o){const l=o<0;return l&&(o=~o),[l,e[o]]}function s(o){return o===void 0?o:[a.has(o),e[o]]}}function Ze(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function He(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const x=globalThis.__sveltekit_746l1x?.base??"",qt=globalThis.__sveltekit_746l1x?.assets??x??"",Dt="1773201565623",et="sveltekit:snapshot",tt="sveltekit:scroll",nt="sveltekit:states",Vt="sveltekit:pageurl",K="sveltekit:history",H="sveltekit:navigation",N={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},he=location.origin;function $e(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 q(){return{x:pageXOffset,y:pageYOffset}}function B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const We={...N,"":N.hover};function rt(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function at(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=rt(e)}}function Ee(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,i=!r||!!a||pe(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),s=r?.origin===he&&e.hasAttribute("download");return{url:r,external:i,target:a,download:s}}function re(e){let t=null,n=null,r=null,a=null,i=null,s=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=B(o,"preload-code")),a===null&&(a=B(o,"preload-data")),t===null&&(t=B(o,"keepfocus")),n===null&&(n=B(o,"noscroll")),i===null&&(i=B(o,"reload")),s===null&&(s=B(o,"replacestate")),o=rt(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:We[r??"off"],preload_data:We[a??"off"],keepfocus:l(t),noscroll:l(n),reload:l(i),replace_state:l(s)}}function Je(e){const t=Ae(e);let n=!0;function r(){n=!0,t.update(s=>s)}function a(s){n=!1,t.set(s)}function i(s){let o;return t.subscribe(l=>{(o===void 0||n&&l!==o)&&s(o=l)})}return{notify:r,set:a,subscribe:i}}const ot={v:()=>{}};function Bt(){const{set:e,subscribe:t}=Ae(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${qt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const s=(await a.json()).version!==Dt;return s&&(e(!0),ot.v(),clearTimeout(n)),s}catch{return!1}}return{subscribe:t,check:r}}function pe(e,t,n){return e.origin!==he||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function hn(e){}const st=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...st];const Kt=new Set([...st]);[...Kt];function Ft(e){return e.filter(t=>t!=null)}function Ce(e){return e instanceof Pe||e instanceof Ie?e.status:500}function Gt(e){return e instanceof Ie?e.text:"Internal Error"}let b,W,ye;const Mt=ze.toString().includes("$$")||/function \w+\(\) \{\}/.test(ze.toString());Mt?(b={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},W={current:null},ye={current:!1}):(b=new class{#e=U({});get data(){return A(this.#e)}set data(t){P(this.#e,t)}#t=U(null);get form(){return A(this.#t)}set form(t){P(this.#t,t)}#n=U(null);get error(){return A(this.#n)}set error(t){P(this.#n,t)}#r=U({});get params(){return A(this.#r)}set params(t){P(this.#r,t)}#a=U({id:null});get route(){return A(this.#a)}set route(t){P(this.#a,t)}#o=U({});get state(){return A(this.#o)}set state(t){P(this.#o,t)}#s=U(-1);get status(){return A(this.#s)}set status(t){P(this.#s,t)}#i=U(new URL("https://example.com"));get url(){return A(this.#i)}set url(t){P(this.#i,t)}},W=new class{#e=U(null);get current(){return A(this.#e)}set current(t){P(this.#e,t)}},ye=new class{#e=U(!1);get current(){return A(this.#e)}set current(t){P(this.#e,t)}},ot.v=()=>ye.current=!0);function it(e){Object.assign(b,e)}const Ye={spanContext(){return zt},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}},zt={traceId:"",spanId:"",traceFlags:0},Ht=new Set(["icon","shortcut icon","apple-touch-icon"]),j=Ze(tt)??{},J=Ze(et)??{},C={url:Je({}),page:Je({}),navigating:Ae(null),updated:Bt()};function je(e){j[e]=q()}function Wt(e,t){let n=e+1;for(;j[n];)delete j[n],n+=1;for(n=t+1;J[n];)delete J[n],n+=1}function Y(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function lt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function Se(){}let Ne,Re,ae,T,xe,v;const oe=[],se=[];let L=null;function ie(){L?.fork?.then(e=>e?.discard()),L=null}const te=new Map,ct=new Set,Jt=new Set,z=new Set;let _={branch:[],error:null,url:null},ut=!1,le=!1,Xe=!0,X=!1,G=!1,ft=!1,ge=!1,qe,y,R,I;const ce=new Set;let be;const ue=new Map;async function _n(e,t,n){globalThis.__sveltekit_746l1x?.data&&globalThis.__sveltekit_746l1x.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Ne=Nt(e),T=document.documentElement,xe=t,Re=e.nodes[0],ae=e.nodes[1],Re(),ae(),y=history.state?.[K],R=history.state?.[H],y||(y=R=Date.now(),history.replaceState({...history.state,[K]:y,[H]:R},""));const r=j[y];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await sn(xe,n)):(await F({type:"enter",url:$e(v.hash?un(new URL(location.href)):location.href),replace_state:!0}),a()),on()}async function Yt(e=!0,t=!0){if(await(be||=Promise.resolve()),!be)return;be=null;const n=I={},r=await Z(_.url,!0);if(ie(),ge&&ue.forEach(({resource:a})=>{a.refresh?.()}),e){const a=b.state,i=r&&await Ke(r);if(!i||n!==I)return;if(i.type==="redirect")return De(new URL(i.location,_.url).href,{replaceState:!0},1,n);t||(i.props.page.state=a),it(i.props.page),_=i.state,Le(),qe.$set(i.props)}else Le();await Promise.all([...ue.values()].map(({resource:a})=>a)).catch(Se)}function Le(){oe.length=0,ge=!1}function dt(e){se.some(t=>t?.snapshot)&&(J[e]=se.map(t=>t?.snapshot?.capture()))}function ht(e){J[e]?.forEach((t,n)=>{se[n]?.snapshot?.restore(t)})}function Qe(){je(y),He(tt,j),dt(R),He(et,J)}async function De(e,t,n,r){let a;t.invalidateAll&&ie(),await F({type:"goto",url:$e(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(ge=!0,a=[...ue.keys()]),t.invalidate&&t.invalidate.forEach(wt)}}),t.invalidateAll&&ne().then(ne).then(()=>{ue.forEach(({resource:i},s)=>{a?.includes(s)&&i.refresh?.()})})}async function Xt(e){if(e.id!==L?.id){ie();const t={};ce.add(t),L={id:e.id,token:t,promise:Ke({...e,preload:t}).then(n=>(ce.delete(t),n.type==="loaded"&&n.state.error&&ie(),n)),fork:null}}return L.promise}async function ke(e){const t=(await Z(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function pt(e,t,n){_=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(b,e.props.page),qe=new v.root({target:t,props:{...e.props,stores:C,components:se},hydrate:n,sync:!1}),await Promise.resolve(),ht(R),n){const a={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href),scroll:j[y]??q()},willUnload:!1,type:"enter",complete:Promise.resolve()};z.forEach(i=>i(a))}le=!0}function fe({url:e,params:t,branch:n,status:r,error:a,route:i,form:s}){let o="never";if(x&&(e.pathname===x||e.pathname===x+"/"))o="always";else for(const u of n)u?.slash!==void 0&&(o=u.slash);e.pathname=Et(e.pathname,o),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:i},props:{constructors:Ft(n).map(u=>u.node.component),page:Me(b)}};s!==void 0&&(l.props.form=s);let c={},d=!b,p=0;for(let u=0;u<Math.max(n.length,_.branch.length);u+=1){const h=n[u],w=_.branch[u];h?.data!==w?.data&&(d=!0),h&&(c={...c,...h.data},d&&(l.props[`data_${p}`]=c),p+=1)}return(!_.url||e.href!==_.url.href||_.error!==a||s!==void 0&&s!==b.form||d)&&(l.props.page={error:a,params:t,route:{id:i?.id??null},state:{},status:r,url:new URL(e),form:s??null,data:d?c:b.data}),l}async function Ve({loader:e,parent:t,url:n,params:r,route:a,server_data_node:i}){let s=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(c.universal?.load){let d=function(...f){for(const u of f){const{href:h}=new URL(u,n);l.dependencies.add(h)}};const p={tracing:{enabled:!1,root:Ye,current:Ye},route:new Proxy(a,{get:(f,u)=>(o&&(l.route=!0),f[u])}),params:new Proxy(r,{get:(f,u)=>(o&&l.params.add(u),f[u])}),data:i?.data??null,url:xt(n,()=>{o&&(l.url=!0)},f=>{o&&l.search_params.add(f)},v.hash),async fetch(f,u){f instanceof Request&&(u={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f?.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...u});const{resolved:h,promise:w}=gt(f,u,n);return o&&d(h.href),w},setHeaders:()=>{},depends:d,parent(){return o&&(l.parent=!0),t()},untrack(f){o=!1;try{return f()}finally{o=!0}}};s=await c.universal.load.call(null,p)??null}return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:s,uses:l}:null,data:s??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function gt(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 i=le?Tt(r,a.href,t):Pt(r,t);return{resolved:a,promise:i}}function Qt(e,t,n,r,a,i){if(ge)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const s of a.search_params)if(r.has(s))return!0;for(const s of a.params)if(i[s]!==_.params[s])return!0;for(const s of a.dependencies)if(oe.some(o=>o(new URL(s))))return!0;return!1}function Be(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Zt(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),i=t.searchParams.getAll(r);a.every(s=>i.includes(s))&&i.every(s=>a.includes(s))&&n.delete(r)}return n}function en({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Me(b),constructors:[]}}}async function Ke({id:e,invalidating:t,url:n,params:r,route:a,preload:i}){if(L?.id===e)return ce.delete(L.token),L.promise;const{errors:s,layouts:o,leaf:l}=a,c=[...o,l];s.forEach(m=>m?.().catch(()=>{})),c.forEach(m=>m?.[1]().catch(()=>{}));const d=_.url?e!==de(_.url):!1,p=_.route?a.id!==_.route.id:!1,f=Zt(_.url,n);let u=!1;const h=c.map(async(m,g)=>{if(!m)return;const E=_.branch[g];return m[1]===E?.loader&&!Qt(u,p,d,f,E.universal?.uses,r)?E:(u=!0,Ve({loader:m[1],url:n,params:r,route:a,parent:async()=>{const O={};for(let $=0;$<g;$+=1)Object.assign(O,(await h[$])?.data);return O},server_data_node:Be(m[0]?{type:"skip"}:null,m[0]?E?.server:void 0)}))});for(const m of h)m.catch(()=>{});const w=[];for(let m=0;m<c.length;m+=1)if(c[m])try{w.push(await h[m])}catch(g){if(g instanceof Te)return{type:"redirect",location:g.location};if(ce.has(i))return en({error:await Q(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let E=Ce(g),S;if(g instanceof Pe)S=g.body;else{if(await C.updated.check())return await lt(),await Y(n);S=await Q(g,{params:r,url:n,route:{id:a.id}})}const O=await tn(m,w,s);return O?fe({url:n,params:r,branch:w.slice(0,O.idx).concat(O.node),status:E,error:S,route:a}):await _t(n,{id:a.id},S,E)}else w.push(void 0);return fe({url:n,params:r,branch:w,status:200,error:null,route:a,form:t?void 0:null})}async function tn(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 Fe({status:e,error:t,url:n,route:r}){const a={};let i=null;try{const s=await Ve({loader:Re,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Be(i)}),o={node:await ae(),loader:ae,universal:null,server:null,data:null};return fe({url:n,params:a,branch:[s,o],status:e,error:t,route:null})}catch(s){if(s instanceof Te)return De(new URL(s.location,location.href),{},0);throw s}}async function nn(e){const t=e.href;if(te.has(t))return te.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(i,s)=>gt(i,s,e).promise})??e;if(typeof a=="string"){const i=new URL(e);v.hash?i.hash=a:i.pathname=a,a=i}return a})();te.set(t,r),n=await r}catch{te.delete(t);return}return n}async function Z(e,t){if(e&&!pe(e,x,v.hash)){const n=await nn(e);if(!n)return;const r=rn(n);for(const a of Ne){const i=a.exec(r);if(i)return{id:de(e),invalidating:t,route:a,params:Rt(i),url:e}}}}function rn(e){return St(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function de(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function mt({url:e,type:t,intent:n,delta:r,event:a,scroll:i}){let s=!1;const o=Ge(_,n,e,t,i??null);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const l={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return X||ct.forEach(c=>c(l)),s?null:o}async function F({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s={},redirect_count:o=0,nav_token:l={},accept:c=Se,block:d=Se,event:p}){const f=I;I=l;const u=await Z(t,!1),h=e==="enter"?Ge(_,u,t,e):mt({url:t,type:e,delta:n?.delta,intent:u,scroll:n?.scroll,event:p});if(!h){d(),I===l&&(I=f);return}const w=y,m=R;c(),X=!0,le&&h.navigation.type!=="enter"&&C.navigating.set(W.current=h.navigation);let g=u&&await Ke(u);if(!g){if(pe(t,x,v.hash))return await Y(t,i);g=await _t(t,{id:null},await Q(new Ie(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,I!==l)return h.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(o<20){await F({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:i,state:s,redirect_count:o+1,nav_token:l}),h.fulfil(void 0);return}g=await Fe({status:500,error:await Q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await C.updated.check()&&(await lt(),await Y(t,i));if(Le(),je(w),dt(m),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),s=n?n.state:s,!n){const k=i?0:1,ee={[K]:y+=k,[H]:R+=k,[nt]:s};(i?history.replaceState:history.pushState).call(history,ee,"",t),i||Wt(y,R)}const E=u&&L?.id===u.id?L.fork:null;L=null,g.props.page.state=s;let S;if(le){const k=(await Promise.all(Array.from(Jt,D=>D(h.navigation)))).filter(D=>typeof D=="function");if(k.length>0){let D=function(){k.forEach(me=>{z.delete(me)})};k.push(D),k.forEach(me=>{z.add(me)})}_=g.state,g.props.page&&(g.props.page.url=t);const ee=E&&await E;ee?S=ee.commit():(qe.$set(g.props),it(g.props.page),S=kt?.()),ft=!0}else await pt(g,xe,!1);const{activeElement:O}=document;await S,await ne(),await ne();let $=null;if(Xe){const k=n?n.scroll:a?q():null;k?scrollTo(k.x,k.y):($=t.hash&&document.getElementById(vt(t)))?$.scrollIntoView():scrollTo(0,0)}const yt=document.activeElement!==O&&document.activeElement!==document.body;!r&&!yt&&cn(t,!$),Xe=!0,g.props.page&&Object.assign(b,g.props.page),X=!1,e==="popstate"&&ht(R),h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=q()),z.forEach(k=>k(h.navigation)),C.navigating.set(W.current=null)}async function _t(e,t,n,r,a){return e.origin===he&&e.pathname===location.pathname&&!ut?await Fe({status:r,error:n,url:e,route:t}):await Y(e,a)}function an(){let e,t={element:void 0,href:void 0},n;T.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(e),e=setTimeout(()=>{i(l,N.hover)},20)});function r(o){o.defaultPrevented||i(o.composedPath()[0],N.tap)}T.addEventListener("mousedown",r),T.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(ke(new URL(l.target.href)),a.unobserve(l.target))},{threshold:0});async function i(o,l){const c=at(o,T),d=c===t.element&&c?.href===t.href&&l>=n;if(!c||d)return;const{url:p,external:f,download:u}=Ee(c,x,v.hash);if(f||u)return;const h=re(c),w=p&&de(_.url)===de(p);if(!(h.reload||w))if(l<=h.preload_data){t={element:c,href:c.href},n=N.tap;const m=await Z(p,!1);if(!m)return;Xt(m)}else l<=h.preload_code&&(t={element:c,href:c.href},n=l,ke(p))}function s(){a.disconnect();for(const o of T.querySelectorAll("a")){const{url:l,external:c,download:d}=Ee(o,x,v.hash);if(c||d)continue;const p=re(o);p.reload||(p.preload_code===N.viewport&&a.observe(o),p.preload_code===N.eager&&ke(l))}}z.add(s),s()}function Q(e,t){if(e instanceof Pe)return e.body;const n=Ce(e),r=Gt(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function wn(e,t={}){return e=new URL($e(e)),e.origin!==he?Promise.reject(new Error("goto: invalid URL")):De(e,t,0)}function vn(e){return wt(e),Yt()}function wt(e){if(typeof e=="function")oe.push(e);else{const{href:t}=new URL(e,location.href);oe.push(n=>n.href===t)}}function on(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Qe(),!X){const r=Ge(_,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};ct.forEach(i=>i(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Qe()}),navigator.connection?.saveData||an(),T.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=at(t.composedPath()[0],T);if(!n)return;const{url:r,external:a,target:i,download:s}=Ee(n,x,v.hash);if(!r)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const o=re(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;const[c,d]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=c===we(location);if(a||o.reload&&(!p||!d)){mt({url:r,type:"link",event:t})?X=!0:t.preventDefault();return}if(d!==void 0&&p){const[,f]=_.url.href.split("#");if(f===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(d));u&&(u.scrollIntoView(),u.focus())}return}if(G=!0,je(y),e(r),!o.replace_state)return;G=!1}t.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await F({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),T.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 s=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(pe(s,x,!1))return;const o=t.target,l=re(o);if(l.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(o,r);s.search=new URLSearchParams(c).toString(),F({type:"form",url:s,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??s.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ue){if(t.state?.[K]){const n=t.state[K];if(I={},n===y)return;const r=j[n],a=t.state[nt]??{},i=new URL(t.state[Vt]??location.href),s=t.state[H],o=_.url?we(location)===we(_.url):!1;if(s===R&&(ft||o)){a!==b.state&&(b.state=a),e(i),j[y]=q(),r&&scrollTo(r.x,r.y),y=n;return}const c=n-y;await F({type:"popstate",url:i,popped:{state:a,scroll:r,delta:c},accept:()=>{y=n,R=s},block:()=>{history.go(-c)},nav_token:I,event:t})}else if(!G){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{G&&(G=!1,history.replaceState({...history.state,[K]:++y,[H]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Ht.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&C.navigating.set(W.current=null)});function e(t){_.url=b.url=t,C.page.set(Me(b)),C.page.notify()}}async function sn(e,{status:t=200,error:n,node_ids:r,params:a,route:i,server_route:s,data:o,form:l}){ut=!0;const c=new URL(location.href);let d;({params:a={},route:i={id:null}}=await Z(c,!1)||{}),d=Ne.find(({id:u})=>u===i.id);let p,f=!0;try{const u=r.map(async(w,m)=>{const g=o[m];return g?.uses&&(g.uses=ln(g.uses)),Ve({loader:v.nodes[w],url:c,params:a,route:i,parent:async()=>{const E={};for(let S=0;S<m;S+=1)Object.assign(E,(await u[S]).data);return E},server_data_node:Be(g)})}),h=await Promise.all(u);if(d){const w=d.layouts;for(let m=0;m<w.length;m++)w[m]||h.splice(m,0,void 0)}p=fe({url:c,params:a,branch:h,status:t,error:n,form:l,route:d??null})}catch(u){if(u instanceof Te){await Y(new URL(u.location,location.href));return}p=await Fe({status:Ce(u),error:await Q(u,{url:c,params:a,route:i}),url:c,route:i}),e.textContent="",f=!1}p.props.page&&(p.props.page.state={}),await pt(p,e,f)}function ln(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 Ue=!1;function cn(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=vt(e);if(r&&document.getElementById(r)){const{x:i,y:s}=q();setTimeout(()=>{const o=history.state;Ue=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(o,"",e),t&&scrollTo(i,s),Ue=!1})}else{const i=document.body,s=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),s!==null?i.setAttribute("tabindex",s):i.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const i=[];for(let s=0;s<a.rangeCount;s+=1)i.push(a.getRangeAt(s));setTimeout(()=>{if(a.rangeCount===i.length){for(let s=0;s<a.rangeCount;s+=1){const o=i[s],l=a.getRangeAt(s);if(o.commonAncestorContainer!==l.commonAncestorContainer||o.startContainer!==l.startContainer||o.endContainer!==l.endContainer||o.startOffset!==l.startOffset||o.endOffset!==l.endOffset)return}a.removeAllRanges()}})}}}function Ge(e,t,n,r,a=null){let i,s;const o=new Promise((c,d)=>{i=c,s=d});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:q()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:a},willUnload:!t,type:r,complete:o},fulfil:i,reject:s}}function Me(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 un(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{_n as a,wn as g,vn as i,hn as l,b as p,C as s};
@@ -1 +1 @@
1
- import{s as e,p as r}from"./CSvS_NwK.js";const t={get error(){return r.error},get status(){return r.status},get url(){return r.url}};e.updated.check;const a=t;export{a as p};
1
+ import{s as e,p as r}from"./B3YcEpQV.js";const t={get error(){return r.error},get status(){return r.status},get url(){return r.url}};e.updated.check;const a=t;export{a as p};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.B5WFN0zw.js","../chunks/Dc-UOHw9.js","../chunks/CpaGRn9L.js","../chunks/DG5RZBw-.js","../chunks/BmUXQ3wy.js","../chunks/C3k55nDF.js","../chunks/Bi0jeV7Q.js","../chunks/DcrmIfTj.js","../chunks/CyNaE55B.js","../chunks/BPy8HLo7.js","../chunks/B8yYFADm.js","../chunks/COekwvP2.js","../chunks/CSvS_NwK.js","../chunks/ZkLyk0mE.js","../chunks/B5abRDXp.js","../assets/0.GI4C4dpV.css","../nodes/1.D1wtJb2k.js","../nodes/2.CK3CLC0f.js","../nodes/3.BB5wCoBf.js","../nodes/4.Dr2jvAXK.js","../nodes/5.BJl7oM3b.js"])))=>i.map(i=>d[i]);
2
- import{D as k,ah as B,w as f,aP as F,aF as Q,aQ as W,p as Y,u as z,n as H,aR as J,f as O,s as K,a as X,I as L,c as Z,r as $,G as x,t as tt}from"../chunks/CpaGRn9L.js";import{h as et,m as rt,u as st,s as nt}from"../chunks/DG5RZBw-.js";import{a as y,c as A,f as V,t as at}from"../chunks/Dc-UOHw9.js";import{o as ot}from"../chunks/B8yYFADm.js";import{p as S,i as j,b as C}from"../chunks/C3k55nDF.js";import{c as D}from"../chunks/CyNaE55B.js";function ct(o){return class extends it{constructor(t){super({component:o,...t})}}}class it{#e;#t;constructor(t){var n=new Map,i=(r,e)=>{var s=W(e,!1,!1);return n.set(r,s),s};const u=new Proxy({...t.props||{},$$events:{}},{get(r,e){return f(n.get(e)??i(e,Reflect.get(r,e)))},has(r,e){return e===B?!0:(f(n.get(e)??i(e,Reflect.get(r,e))),Reflect.has(r,e))},set(r,e,s){return k(n.get(e)??i(e,s),s),Reflect.set(r,e,s)}});this.#t=(t.hydrate?et:rt)(t.component,{target:t.target,anchor:t.anchor,props:u,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&F(),this.#e=u.$$events;for(const r of Object.keys(this.#t))r==="$set"||r==="$destroy"||r==="$on"||Q(this,r,{get(){return this.#t[r]},set(e){this.#t[r]=e},enumerable:!0});this.#t.$set=r=>{Object.assign(u,r)},this.#t.$destroy=()=>{st(this.#t)}}$set(t){this.#t.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const i=(...u)=>n.call(this,...u);return this.#e[t].push(i),()=>{this.#e[t]=this.#e[t].filter(u=>u!==i)}}$destroy(){this.#t.$destroy()}}const ut="modulepreload",lt=function(o,t){return new URL(o,t).href},T={},b=function(t,n,i){let u=Promise.resolve();if(n&&n.length>0){let w=function(c){return Promise.all(c.map(m=>Promise.resolve(m).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const e=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),R=s?.nonce||s?.getAttribute("nonce");u=w(n.map(c=>{if(c=lt(c,i),c in T)return;T[c]=!0;const m=c.endsWith(".css"),d=m?'[rel="stylesheet"]':"";if(i)for(let h=e.length-1;h>=0;h--){const a=e[h];if(a.href===c&&(!m||a.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const l=document.createElement("link");if(l.rel=m?"stylesheet":ut,m||(l.as="script"),l.crossOrigin="",l.href=c,R&&l.setAttribute("nonce",R),document.head.appendChild(l),m)return new Promise((h,a)=>{l.addEventListener("load",h),l.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(e){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=e,window.dispatchEvent(s),!s.defaultPrevented)throw e}return u.then(e=>{for(const s of e||[])s.status==="rejected"&&r(s.reason);return t().catch(r)})},pt={};var mt=V('<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>'),ft=V("<!> <!>",1);function dt(o,t){Y(t,!0);let n=S(t,"components",23,()=>[]),i=S(t,"data_0",3,null),u=S(t,"data_1",3,null);z(()=>t.stores.page.set(t.page)),H(()=>{t.stores,t.page,t.constructors,n(),t.form,i(),u(),t.stores.page.notify()});let r=L(!1),e=L(!1),s=L(null);ot(()=>{const a=t.stores.page.subscribe(()=>{f(r)&&(k(e,!0),J().then(()=>{k(s,document.title||"untitled page",!0)}))});return k(r,!0),a});const R=x(()=>t.constructors[1]);var w=ft(),c=O(w);{var m=a=>{const _=x(()=>t.constructors[0]);var v=A(),P=O(v);D(P,()=>f(_),(g,E)=>{C(E(g,{get data(){return i()},get form(){return t.form},get params(){return t.page.params},children:(p,_t)=>{var I=A(),N=O(I);D(N,()=>f(R),(q,G)=>{C(G(q,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),U=>n()[1]=U,()=>n()?.[1])}),y(p,I)},$$slots:{default:!0}}),p=>n()[0]=p,()=>n()?.[0])}),y(a,v)},d=a=>{const _=x(()=>t.constructors[0]);var v=A(),P=O(v);D(P,()=>f(_),(g,E)=>{C(E(g,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),p=>n()[0]=p,()=>n()?.[0])}),y(a,v)};j(c,a=>{t.constructors[1]?a(m):a(d,-1)})}var l=K(c,2);{var h=a=>{var _=mt(),v=Z(_);{var P=g=>{var E=at();tt(()=>nt(E,f(s))),y(g,E)};j(v,g=>{f(e)&&g(P)})}$(_),y(a,_)};j(l,a=>{f(r)&&a(h)})}y(o,w),X()}const Rt=ct(dt),wt=[()=>b(()=>import("../nodes/0.B5WFN0zw.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url),()=>b(()=>import("../nodes/1.D1wtJb2k.js"),__vite__mapDeps([16,1,2,6,3,7,11,12,10]),import.meta.url),()=>b(()=>import("../nodes/2.CK3CLC0f.js"),__vite__mapDeps([17,1,2,6]),import.meta.url),()=>b(()=>import("../nodes/3.BB5wCoBf.js"),__vite__mapDeps([18,1,2,3,5,4,6,7,8,12,10,13,9]),import.meta.url),()=>b(()=>import("../nodes/4.Dr2jvAXK.js"),__vite__mapDeps([19,1,2,10,3,5,4,6,7,12,14]),import.meta.url),()=>b(()=>import("../nodes/5.BJl7oM3b.js"),__vite__mapDeps([20,1,2,3,5,4,6,7,12,10,13]),import.meta.url)],Ot=[],kt={"/":[2],"/agents":[3],"/chats/[id]":[4],"/chats/[id]/settings":[5]},M={handleError:(({error:o})=>{console.error(o)}),reroute:(()=>{}),transport:{}},ht=Object.fromEntries(Object.entries(M.transport).map(([o,t])=>[o,t.decode])),Lt=Object.fromEntries(Object.entries(M.transport).map(([o,t])=>[o,t.encode])),xt=!1,At=(o,t)=>ht[o](t);export{At as decode,ht as decoders,kt as dictionary,Lt as encoders,xt as hash,M as hooks,pt as matchers,wt as nodes,Rt as root,Ot as server_loads};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BB1CjKco.js","../chunks/Dc-UOHw9.js","../chunks/CpaGRn9L.js","../chunks/DG5RZBw-.js","../chunks/BmUXQ3wy.js","../chunks/C3k55nDF.js","../chunks/Bi0jeV7Q.js","../chunks/DcrmIfTj.js","../chunks/CyNaE55B.js","../chunks/BPy8HLo7.js","../chunks/B8yYFADm.js","../chunks/CAZeqksE.js","../chunks/B3YcEpQV.js","../chunks/ZkLyk0mE.js","../chunks/B5abRDXp.js","../assets/0.GI4C4dpV.css","../nodes/1.CdSgEHu9.js","../nodes/2.CK3CLC0f.js","../nodes/3.CKp7Wkn8.js","../nodes/4.FyeoMY-Y.js","../nodes/5.D6mVN7l7.js"])))=>i.map(i=>d[i]);
2
+ import{D as k,ah as B,w as f,aP as F,aF as Q,aQ as W,p as Y,u as z,n as H,aR as J,f as O,s as K,a as X,I as L,c as Z,r as $,G as x,t as tt}from"../chunks/CpaGRn9L.js";import{h as et,m as rt,u as st,s as nt}from"../chunks/DG5RZBw-.js";import{a as y,c as A,f as V,t as at}from"../chunks/Dc-UOHw9.js";import{o as ot}from"../chunks/B8yYFADm.js";import{p as S,i as j,b as C}from"../chunks/C3k55nDF.js";import{c as D}from"../chunks/CyNaE55B.js";function ct(o){return class extends it{constructor(t){super({component:o,...t})}}}class it{#e;#t;constructor(t){var n=new Map,i=(r,e)=>{var s=W(e,!1,!1);return n.set(r,s),s};const u=new Proxy({...t.props||{},$$events:{}},{get(r,e){return f(n.get(e)??i(e,Reflect.get(r,e)))},has(r,e){return e===B?!0:(f(n.get(e)??i(e,Reflect.get(r,e))),Reflect.has(r,e))},set(r,e,s){return k(n.get(e)??i(e,s),s),Reflect.set(r,e,s)}});this.#t=(t.hydrate?et:rt)(t.component,{target:t.target,anchor:t.anchor,props:u,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&F(),this.#e=u.$$events;for(const r of Object.keys(this.#t))r==="$set"||r==="$destroy"||r==="$on"||Q(this,r,{get(){return this.#t[r]},set(e){this.#t[r]=e},enumerable:!0});this.#t.$set=r=>{Object.assign(u,r)},this.#t.$destroy=()=>{st(this.#t)}}$set(t){this.#t.$set(t)}$on(t,n){this.#e[t]=this.#e[t]||[];const i=(...u)=>n.call(this,...u);return this.#e[t].push(i),()=>{this.#e[t]=this.#e[t].filter(u=>u!==i)}}$destroy(){this.#t.$destroy()}}const ut="modulepreload",lt=function(o,t){return new URL(o,t).href},T={},b=function(t,n,i){let u=Promise.resolve();if(n&&n.length>0){let w=function(c){return Promise.all(c.map(m=>Promise.resolve(m).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const e=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),R=s?.nonce||s?.getAttribute("nonce");u=w(n.map(c=>{if(c=lt(c,i),c in T)return;T[c]=!0;const m=c.endsWith(".css"),d=m?'[rel="stylesheet"]':"";if(i)for(let h=e.length-1;h>=0;h--){const a=e[h];if(a.href===c&&(!m||a.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${d}`))return;const l=document.createElement("link");if(l.rel=m?"stylesheet":ut,m||(l.as="script"),l.crossOrigin="",l.href=c,R&&l.setAttribute("nonce",R),document.head.appendChild(l),m)return new Promise((h,a)=>{l.addEventListener("load",h),l.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(e){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=e,window.dispatchEvent(s),!s.defaultPrevented)throw e}return u.then(e=>{for(const s of e||[])s.status==="rejected"&&r(s.reason);return t().catch(r)})},pt={};var mt=V('<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>'),ft=V("<!> <!>",1);function dt(o,t){Y(t,!0);let n=S(t,"components",23,()=>[]),i=S(t,"data_0",3,null),u=S(t,"data_1",3,null);z(()=>t.stores.page.set(t.page)),H(()=>{t.stores,t.page,t.constructors,n(),t.form,i(),u(),t.stores.page.notify()});let r=L(!1),e=L(!1),s=L(null);ot(()=>{const a=t.stores.page.subscribe(()=>{f(r)&&(k(e,!0),J().then(()=>{k(s,document.title||"untitled page",!0)}))});return k(r,!0),a});const R=x(()=>t.constructors[1]);var w=ft(),c=O(w);{var m=a=>{const _=x(()=>t.constructors[0]);var v=A(),P=O(v);D(P,()=>f(_),(g,E)=>{C(E(g,{get data(){return i()},get form(){return t.form},get params(){return t.page.params},children:(p,_t)=>{var I=A(),N=O(I);D(N,()=>f(R),(q,G)=>{C(G(q,{get data(){return u()},get form(){return t.form},get params(){return t.page.params}}),U=>n()[1]=U,()=>n()?.[1])}),y(p,I)},$$slots:{default:!0}}),p=>n()[0]=p,()=>n()?.[0])}),y(a,v)},d=a=>{const _=x(()=>t.constructors[0]);var v=A(),P=O(v);D(P,()=>f(_),(g,E)=>{C(E(g,{get data(){return i()},get form(){return t.form},get params(){return t.page.params}}),p=>n()[0]=p,()=>n()?.[0])}),y(a,v)};j(c,a=>{t.constructors[1]?a(m):a(d,-1)})}var l=K(c,2);{var h=a=>{var _=mt(),v=Z(_);{var P=g=>{var E=at();tt(()=>nt(E,f(s))),y(g,E)};j(v,g=>{f(e)&&g(P)})}$(_),y(a,_)};j(l,a=>{f(r)&&a(h)})}y(o,w),X()}const Rt=ct(dt),wt=[()=>b(()=>import("../nodes/0.BB1CjKco.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url),()=>b(()=>import("../nodes/1.CdSgEHu9.js"),__vite__mapDeps([16,1,2,6,3,7,11,12,10]),import.meta.url),()=>b(()=>import("../nodes/2.CK3CLC0f.js"),__vite__mapDeps([17,1,2,6]),import.meta.url),()=>b(()=>import("../nodes/3.CKp7Wkn8.js"),__vite__mapDeps([18,1,2,3,5,4,6,7,8,12,10,13,9]),import.meta.url),()=>b(()=>import("../nodes/4.FyeoMY-Y.js"),__vite__mapDeps([19,1,2,10,3,5,4,6,7,12,14]),import.meta.url),()=>b(()=>import("../nodes/5.D6mVN7l7.js"),__vite__mapDeps([20,1,2,3,5,4,6,7,12,10,13]),import.meta.url)],Ot=[],kt={"/":[2],"/agents":[3],"/chats/[id]":[4],"/chats/[id]/settings":[5]},M={handleError:(({error:o})=>{console.error(o)}),reroute:(()=>{}),transport:{}},ht=Object.fromEntries(Object.entries(M.transport).map(([o,t])=>[o,t.decode])),Lt=Object.fromEntries(Object.entries(M.transport).map(([o,t])=>[o,t.encode])),xt=!1,At=(o,t)=>ht[o](t);export{At as decode,ht as decoders,kt as dictionary,Lt as encoders,xt as hash,M as hooks,pt as matchers,wt as nodes,Rt as root,Ot as server_loads};
@@ -0,0 +1 @@
1
+ import{l as o,a as r}from"../chunks/B3YcEpQV.js";export{o as load_css,r as start};