@bd7pil/ocrc 0.13.5 → 0.14.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.
- package/README.md +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/service.js +85 -89
- package/dist/cli/service.js.map +1 -1
- package/dist/connectivity/pairing.js +1 -1
- package/dist/connectivity/pairing.js.map +1 -1
- package/dist/transport/telegram/handlers.js +2 -2
- package/dist/transport/telegram/handlers.js.map +1 -1
- package/package.json +1 -1
- package/web/dist/_app/immutable/assets/{0.BnXWzjok.css → 0.DHm19zMf.css} +1 -1
- package/web/dist/_app/immutable/chunks/{B_Up4G-w.js → TuGPYaVf.js} +1 -1
- package/web/dist/_app/immutable/chunks/{CwlxY-Uk.js → _PK_enp9.js} +1 -1
- package/web/dist/_app/immutable/chunks/ewK-93nZ.js +1 -0
- package/web/dist/_app/immutable/entry/{app.CjZHr_mM.js → app.BbCGOY--.js} +2 -2
- package/web/dist/_app/immutable/entry/start.CtgN6Joj.js +1 -0
- package/web/dist/_app/immutable/nodes/{0.D-BhMpTp.js → 0.C6UjvApA.js} +3 -3
- package/web/dist/_app/immutable/nodes/{1.CtzDjsmM.js → 1.duF3KASE.js} +1 -1
- package/web/dist/_app/immutable/nodes/{2.Cct3As1y.js → 2.BWOyrvG9.js} +1 -1
- package/web/dist/_app/immutable/nodes/{3.BkKSsNaw.js → 3.AtkoY52t.js} +1 -1
- package/web/dist/_app/version.json +1 -1
- package/web/dist/index.html +10 -10
- package/web/dist/service-worker.js +1 -1
- package/web/dist/_app/immutable/chunks/DyVW0y5z.js +0 -1
- package/web/dist/_app/immutable/entry/start.D5yyHWeq.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{O as Y,b7 as K,b6 as P,b4 as X,aN as R,aM as V,a8 as L,V as Z,X as ee,a2 as te,b8 as p,a9 as g,Y as m}from"./BjY4dxcB.js";function ge(e=!1){const t=Y,n=t.l.u;if(!n)return;let s=()=>Z(t.s);if(e){let i=0,o={};const d=ee(()=>{let a=!1;const l=t.s;for(const u in l)l[u]!==o[u]&&(o[u]=l[u],a=!0);return a&&i++,i});s=()=>L(d)}n.b.length&&K(()=>{N(t,s),R(n.b)}),P(()=>{const i=X(()=>n.m.map(V));return()=>{for(const o of i)typeof o=="function"&&o()}}),n.a.length&&P(()=>{N(t,s),R(n.a)})}function N(e,t){if(e.l.s)for(const n of e.l.s)L(n);t()}te();const $="ocrc.token";function B(e){const t=e.startsWith("#")?e.slice(1):e;if(!t)return null;const n=new URLSearchParams(t).get("token");return n&&n.trim()?n.trim():null}function ne(e){const t=e.startsWith("#")?e.slice(1):e;if(!t)return null;const n=new URLSearchParams(t).get("pair");return n&&n.trim()?n.trim():null}function S(){try{const e=localStorage.getItem($);return e&&e.trim()?e:null}catch{return null}}function k(e){try{localStorage.setItem($,e)}catch{}}function H(){try{localStorage.removeItem($)}catch{}}const I="ocrc.authReloaded";function se(e=window.location){if(S()){H();try{const{pathname:t,search:n}=window.location;window.history.replaceState(null,"",t+n)}catch{}e.reload();return}try{if(sessionStorage.getItem(I))return;sessionStorage.setItem(I,"1")}catch{}e.reload()}function E(){try{sessionStorage.removeItem(I)}catch{}}const f=p("booting"),A=p("");let b=null;if(typeof location<"u"&&typeof window<"u"){const e=B(location.hash);e&&k(e),b=ne(location.hash),b&&history.replaceState(null,"",location.pathname+location.search)}b?(f.set("booting"),(async()=>{try{const e=await fetch("/api/pair/exchange",{method:"POST",headers:{"content-type":"application/json"},credentials:"include",body:JSON.stringify({pending:b})});if(!e.ok)throw new Error(String(e.status));const t=await e.json();if(!t.token)throw new Error("no token");k(t.token),A.set(""),f.set("ready")}catch{A.set("配对链接已失效(5 分钟过期或已被使用)——请在主机上刷新二维码后重试。"),f.set("pairing")}})()):f.set(S()?"ready":"pairing");async function ye(e){const t=e.trim().match(/[?#]pair=([^&#\s]+)/),n=t?decodeURIComponent(t[1]):e.trim();if(!n)return"这看起来不是有效的配对链接。";try{const s=await fetch("/api/pair/exchange",{method:"POST",headers:{"content-type":"application/json"},credentials:"include",body:JSON.stringify({pending:n})});if(!s.ok)throw new Error(String(s.status));const i=await s.json();return!i.token||!ie(i.token)?"这看起来不是有效的配对链接。":(A.set(""),"")}catch{return"配对链接已失效(5 分钟过期或已被使用)——请刷新二维码后重试。"}}function T(){const e=S();if(!e){g(f)==="ready"&&se();return}const t=typeof location<"u"?B(location.hash):null;if(t&&t!==e){k(t),f.set("ready");return}if(t){f.set("rejected");return}H(),f.set("pairing")}function ie(e){const t=e.trim();return!t||t.length<16?!1:(k(t),f.set("ready"),!0)}let O="";function j(e){const t={...e??{}},n=S();return n&&(t.authorization=`Bearer ${n}`),t}async function r(e){const t=await fetch(`${O}${e}`,{credentials:"include",headers:j()});if(t.status===401)throw T(),new Error(`GET ${e} 401`);if(!t.ok)throw new Error(`GET ${e} ${t.status}`);return E(),t.json()}async function c(e,t){const n=await fetch(`${O}${e}`,{method:"POST",headers:j({"content-type":"application/json"}),credentials:"include",body:JSON.stringify(t)});if(n.status===401)throw T(),new Error(`POST ${e} 401`);if(!n.ok)throw new Error(`POST ${e} ${n.status}`);return E(),n.json()}async function z(e,t,n){const s=await fetch(`${O}${t}`,{method:e,headers:j(n===void 0?void 0:{"content-type":"application/json"}),credentials:"include",body:n===void 0?void 0:JSON.stringify(n)});if(s.status===401)throw T(),new Error(`${e} ${t} 401`);if(!s.ok)throw new Error(`${e} ${t} ${s.status}`);return E(),s.json()}async function U(e,t){return z("PATCH",e,t)}async function x(e){return z("DELETE",e)}const q={me:()=>r("/api/me"),capabilities:()=>r("/api/capabilities"),backends:()=>r("/api/backends"),setActiveBackend:e=>c("/api/backends/active",{backendId:e}),sessions:()=>r("/api/sessions"),cleanupSubagents:()=>c("/api/sessions/cleanup-subagents",{}),deleteSession:e=>c(`/api/sessions/${e}/delete`,{}),renameSession:(e,t)=>c(`/api/sessions/${e}/rename`,{title:t}),history:(e,t)=>{const n=new URLSearchParams;(t==null?void 0:t.limit)!=null&&n.set("limit",String(t.limit)),(t==null?void 0:t.offset)!=null&&n.set("offset",String(t.offset));const s=n.toString();return r(`/api/session/${e}${s?`?${s}`:""}`)},diff:e=>r(`/api/session/${e}/diff`),todo:e=>r(`/api/session/${e}/todo`),context:e=>r(`/api/session/${e}/context`),workspaces:()=>r("/api/workspaces"),createSession:e=>c("/api/session",e),mcp:()=>r("/api/mcp"),commands:e=>r(`/api/commands${e?`?backend=${encodeURIComponent(e)}`:""}`),runCommand:e=>c("/api/command",e),agents:()=>r("/api/agents"),models:()=>r("/api/models"),getOverrides:()=>r("/api/overrides"),setOverrides:e=>c("/api/overrides",e),sendMessage:e=>c("/api/message",e),abort:e=>c("/api/abort",{sessionId:e}),suggestions:e=>r(`/api/session/${e}/suggestions`),approve:(e,t,n)=>c("/api/approval",{sessionId:e,requestId:t,decision:n}),answerQuestion:(e,t,n)=>c("/api/question/reply",{sessionId:e,requestId:t,answers:n}),rejectQuestion:(e,t)=>c("/api/question/reject",{sessionId:e,requestId:t}),controls:e=>r(`/api/session/${e}/controls`),setMode:(e,t)=>c(`/api/session/${e}/mode`,{modeId:t}),setModel:(e,t)=>c(`/api/session/${e}/model`,{modelId:t}),files:(e,t)=>r(`/api/session/${e}/files?q=${encodeURIComponent(t)}`),schedules:()=>r("/api/schedules"),subagents:e=>r(`/api/session/${e}/subagents`),version:()=>r("/api/version"),skills:e=>r(`/api/skills${e?`?directory=${encodeURIComponent(e)}`:""}`),browse:(e,t)=>r(`/api/browse?directory=${encodeURIComponent(e)}&path=${encodeURIComponent(t)}`),fileContent:(e,t)=>r(`/api/file-content?directory=${encodeURIComponent(e)}&path=${encodeURIComponent(t)}`),worktrees:e=>r(`/api/worktrees${e?`?directory=${encodeURIComponent(e)}`:""}`),createWorktree:(e,t)=>c("/api/worktrees",{directory:e,name:t}),removeWorktree:(e,t)=>x(`/api/worktrees?directory=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`),channels:()=>r("/api/channels"),updateChannel:(e,t)=>U(`/api/channels/${e}`,t),resetChannel:e=>c(`/api/channels/${e}/reset`,{}),pairQr:()=>r("/api/pair/qr"),pairOnboarding:()=>r("/api/pair/onboarding"),exchangePair:e=>c("/api/pair/exchange",{pending:e}),addSchedule:e=>c("/api/schedules",e),setScheduleEnabled:(e,t)=>U(`/api/schedules/${e}`,{enabled:t}),deleteSchedule:e=>x(`/api/schedules/${e}`)},J=p([]),_=()=>({order:[],byId:{},lastSeq:0}),y=p({});function M(e,t){return e.id??`${e.kind}:${e.seq??t}`}function re(e){return e==="thinking"||e==="think-stream"}function be(e){return e?e.order.map(t=>e.byId[t]).filter(Boolean):[]}function we(e,t){return typeof t.seq=="number"&&e>0&&t.seq>e+1}function Se(e){if(!("sessionId"in e)||!e.sessionId)return;const t=e.sessionId,n=M(e,0);y.update(s=>{const i=s[t]??_();if(e.seq!=null&&e.seq<=i.lastSeq&&!(n in i.byId))return s;e.seq!=null&&(i.lastSeq=Math.max(i.lastSeq,e.seq));const o=e.id?e:{...e,id:n};if(n in i.byId)i.byId={...i.byId,[n]:o};else{let d=i.order,a=i.byId;(e.kind==="streaming"||e.kind==="assistant"||e.kind==="error")&&(a={...a},d=d.filter(l=>{var u;return re((u=a[l])==null?void 0:u.kind)?(delete a[l],!1):!0})),i.order=[...d,n],i.byId={...a,[n]:o}}return{...s,[t]:i}})}function ke(e){y.update(t=>{for(const n of Object.keys(t)){const s=t[n];if(!(e in s.byId))continue;const i={...s.byId};return delete i[e],{...t,[n]:{...s,order:s.order.filter(o=>o!==e),byId:i}}}return t})}function ve(e,t,n=0){y.update(s=>{const i=_();return i.lastSeq=n,t.forEach((o,d)=>{const a=M(o,d);i.order.push(a),i.byId[a]=o.id?o:{...o,id:a}}),{...s,[e]:i}})}let F=0;function Ie(e,t){if(t.length===0)return;F+=1;const n=F;y.update(s=>{const i=s[e]??_(),o={...i.byId},d=[];for(let a=t.length-1;a>=0;a--){const l=t[a],u=l.id??`${l.kind}:h${n}:${a}`;u in o||(d.push(u),o[u]=l.id?l:{...l,id:u})}return d.length===0?s:{...s,[e]:{order:[...d.reverse(),...i.order],byId:o,lastSeq:i.lastSeq}}})}function Ae(e){const t=new Set(Array.isArray(e)?e:e?[e]:[]);y.update(n=>{const s={};for(const i of Object.keys(n))t.has(i)&&(s[i]=n[i]);return s})}const v=p(null),h=p(null),D=p(void 0),oe=m([h,D,J,v],([e,t,n,s])=>{if(e){const i=t?n.find(a=>a.id===t):void 0,o=(i==null?void 0:i.backendId)??e.activeId,d=e.backends.find(a=>a.id===o);if(d)return d.capabilities}return(s==null?void 0:s.capabilities)??null}),ae=m([h,D,J,v],([e,t,n,s])=>{if(e){const i=t?n.find(o=>o.id===t):void 0;return(i==null?void 0:i.backendId)??e.activeId}return(s==null?void 0:s.id)??null}),Ce=m(oe,e=>t=>e?e[t]!==!1:!0),ce=m([h,v],([e,t])=>{var n;return e?((n=e.backends.find(s=>s.id===e.activeId))==null?void 0:n.capabilities)??null:(t==null?void 0:t.capabilities)??null});m(ce,e=>t=>e?e[t]!==!1:!0);const $e=m(ae,e=>{const t=e??"opencode";return t.includes(":")?t.split(":").pop():t}),w=["emerald","azure","amber","violet"],Ee={emerald:"#54d398",azure:"#5b9eff",amber:"#ffc34d",violet:"#b48cf0"},Te={emerald:"#0f261b",azure:"#101f33",amber:"#2a2110",violet:"#1d1733"},Oe={emerald:"#236b49",azure:"#2c5891",amber:"#8a6a26",violet:"#5a4790"},W="ocrc.agentAccents",G={opencode:"emerald","acp:kimi":"azure"};function de(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return t}function le(e){return G[e]?G[e]:w[de(e)%w.length]}function ue(){if(typeof localStorage>"u")return{};try{const e=localStorage.getItem(W),t=e?JSON.parse(e):{};return typeof t=="object"&&t!==null?t:{}}catch{return{}}}function fe(e){if(!(typeof localStorage>"u"))try{localStorage.setItem(W,JSON.stringify(e))}catch{}}const C=p(ue());function pe(e){const t=g(C);return w.includes(t[e])?t[e]:le(e)}function je(e,t){var s;const n={...g(C)};t&&w.includes(t)?n[e]=t:delete n[e],C.set(n),fe(n),((s=g(h))==null?void 0:s.activeId)===e&&Q(e)}function Q(e){typeof document>"u"||document.documentElement.setAttribute("data-accent",pe(e))}async function qe(){try{v.set(await q.capabilities())}catch(e){console.warn("[capabilities] failed to load",e)}}async function he(){try{h.set(await q.backends())}catch(e){console.warn("[backends] failed to load",e)}}async function _e(e){const t=g(h);t&&h.set({...t,activeId:e});try{await q.setActiveBackend(e)}catch(n){console.warn("[backends] setActive failed",n)}await he(),Q(e)}export{w as A,_e as B,je as C,ve as D,ie as E,Se as F,D as G,Te as a,Ee as b,Oe as c,C as d,pe as e,q as f,Q as g,f as h,$e as i,h as j,Ce as k,be as l,ae as m,le as n,ye as o,y as p,S as q,ge as r,we as s,he as t,qe as u,A as v,Ie as w,Ae as x,ke as y,J as z};
|
|
1
|
+
import{O as Y,b7 as K,b6 as P,b4 as X,aN as R,aM as V,a8 as L,V as Z,X as ee,a2 as te,b8 as p,a9 as g,Y as m}from"./BjY4dxcB.js";function ge(e=!1){const t=Y,n=t.l.u;if(!n)return;let s=()=>Z(t.s);if(e){let i=0,o={};const d=ee(()=>{let a=!1;const l=t.s;for(const u in l)l[u]!==o[u]&&(o[u]=l[u],a=!0);return a&&i++,i});s=()=>L(d)}n.b.length&&K(()=>{N(t,s),R(n.b)}),P(()=>{const i=X(()=>n.m.map(V));return()=>{for(const o of i)typeof o=="function"&&o()}}),n.a.length&&P(()=>{N(t,s),R(n.a)})}function N(e,t){if(e.l.s)for(const n of e.l.s)L(n);t()}te();const $="ocrc.token";function B(e){const t=e.startsWith("#")?e.slice(1):e;if(!t)return null;const n=new URLSearchParams(t).get("token");return n&&n.trim()?n.trim():null}function ne(e){const t=e.startsWith("#")?e.slice(1):e;if(!t)return null;const n=new URLSearchParams(t).get("pair");return n&&n.trim()?n.trim():null}function S(){try{const e=localStorage.getItem($);return e&&e.trim()?e:null}catch{return null}}function k(e){try{localStorage.setItem($,e)}catch{}}function H(){try{localStorage.removeItem($)}catch{}}const I="ocrc.authReloaded";function se(e=window.location){if(S()){H();try{const{pathname:t,search:n}=window.location;window.history.replaceState(null,"",t+n)}catch{}e.reload();return}try{if(sessionStorage.getItem(I))return;sessionStorage.setItem(I,"1")}catch{}e.reload()}function E(){try{sessionStorage.removeItem(I)}catch{}}const f=p("booting"),A=p("");let b=null;if(typeof location<"u"&&typeof window<"u"){const e=B(location.hash);e&&k(e),b=ne(location.hash),b&&history.replaceState(null,"",location.pathname+location.search)}b?(f.set("booting"),(async()=>{try{const e=await fetch("/api/pair/exchange",{method:"POST",headers:{"content-type":"application/json"},credentials:"include",body:JSON.stringify({pending:b})});if(!e.ok)throw new Error(String(e.status));const t=await e.json();if(!t.token)throw new Error("no token");k(t.token),A.set(""),f.set("ready")}catch{A.set("配对链接已失效(1 分钟过期或已被使用)——请在主机上刷新二维码后重试。"),f.set("pairing")}})()):f.set(S()?"ready":"pairing");async function ye(e){const t=e.trim().match(/[?#]pair=([^&#\s]+)/),n=t?decodeURIComponent(t[1]):e.trim();if(!n)return"这看起来不是有效的配对链接。";try{const s=await fetch("/api/pair/exchange",{method:"POST",headers:{"content-type":"application/json"},credentials:"include",body:JSON.stringify({pending:n})});if(!s.ok)throw new Error(String(s.status));const i=await s.json();return!i.token||!ie(i.token)?"这看起来不是有效的配对链接。":(A.set(""),"")}catch{return"配对链接已失效(1 分钟过期或已被使用)——请刷新二维码后重试。"}}function T(){const e=S();if(!e){g(f)==="ready"&&se();return}const t=typeof location<"u"?B(location.hash):null;if(t&&t!==e){k(t),f.set("ready");return}if(t){f.set("rejected");return}H(),f.set("pairing")}function ie(e){const t=e.trim();return!t||t.length<16?!1:(k(t),f.set("ready"),!0)}let O="";function j(e){const t={...e??{}},n=S();return n&&(t.authorization=`Bearer ${n}`),t}async function r(e){const t=await fetch(`${O}${e}`,{credentials:"include",headers:j()});if(t.status===401)throw T(),new Error(`GET ${e} 401`);if(!t.ok)throw new Error(`GET ${e} ${t.status}`);return E(),t.json()}async function c(e,t){const n=await fetch(`${O}${e}`,{method:"POST",headers:j({"content-type":"application/json"}),credentials:"include",body:JSON.stringify(t)});if(n.status===401)throw T(),new Error(`POST ${e} 401`);if(!n.ok)throw new Error(`POST ${e} ${n.status}`);return E(),n.json()}async function z(e,t,n){const s=await fetch(`${O}${t}`,{method:e,headers:j(n===void 0?void 0:{"content-type":"application/json"}),credentials:"include",body:n===void 0?void 0:JSON.stringify(n)});if(s.status===401)throw T(),new Error(`${e} ${t} 401`);if(!s.ok)throw new Error(`${e} ${t} ${s.status}`);return E(),s.json()}async function U(e,t){return z("PATCH",e,t)}async function x(e){return z("DELETE",e)}const q={me:()=>r("/api/me"),capabilities:()=>r("/api/capabilities"),backends:()=>r("/api/backends"),setActiveBackend:e=>c("/api/backends/active",{backendId:e}),sessions:()=>r("/api/sessions"),cleanupSubagents:()=>c("/api/sessions/cleanup-subagents",{}),deleteSession:e=>c(`/api/sessions/${e}/delete`,{}),renameSession:(e,t)=>c(`/api/sessions/${e}/rename`,{title:t}),history:(e,t)=>{const n=new URLSearchParams;(t==null?void 0:t.limit)!=null&&n.set("limit",String(t.limit)),(t==null?void 0:t.offset)!=null&&n.set("offset",String(t.offset));const s=n.toString();return r(`/api/session/${e}${s?`?${s}`:""}`)},diff:e=>r(`/api/session/${e}/diff`),todo:e=>r(`/api/session/${e}/todo`),context:e=>r(`/api/session/${e}/context`),workspaces:()=>r("/api/workspaces"),createSession:e=>c("/api/session",e),mcp:()=>r("/api/mcp"),commands:e=>r(`/api/commands${e?`?backend=${encodeURIComponent(e)}`:""}`),runCommand:e=>c("/api/command",e),agents:()=>r("/api/agents"),models:()=>r("/api/models"),getOverrides:()=>r("/api/overrides"),setOverrides:e=>c("/api/overrides",e),sendMessage:e=>c("/api/message",e),abort:e=>c("/api/abort",{sessionId:e}),suggestions:e=>r(`/api/session/${e}/suggestions`),approve:(e,t,n)=>c("/api/approval",{sessionId:e,requestId:t,decision:n}),answerQuestion:(e,t,n)=>c("/api/question/reply",{sessionId:e,requestId:t,answers:n}),rejectQuestion:(e,t)=>c("/api/question/reject",{sessionId:e,requestId:t}),controls:e=>r(`/api/session/${e}/controls`),setMode:(e,t)=>c(`/api/session/${e}/mode`,{modeId:t}),setModel:(e,t)=>c(`/api/session/${e}/model`,{modelId:t}),files:(e,t)=>r(`/api/session/${e}/files?q=${encodeURIComponent(t)}`),schedules:()=>r("/api/schedules"),subagents:e=>r(`/api/session/${e}/subagents`),version:()=>r("/api/version"),skills:e=>r(`/api/skills${e?`?directory=${encodeURIComponent(e)}`:""}`),browse:(e,t)=>r(`/api/browse?directory=${encodeURIComponent(e)}&path=${encodeURIComponent(t)}`),fileContent:(e,t)=>r(`/api/file-content?directory=${encodeURIComponent(e)}&path=${encodeURIComponent(t)}`),worktrees:e=>r(`/api/worktrees${e?`?directory=${encodeURIComponent(e)}`:""}`),createWorktree:(e,t)=>c("/api/worktrees",{directory:e,name:t}),removeWorktree:(e,t)=>x(`/api/worktrees?directory=${encodeURIComponent(e)}&name=${encodeURIComponent(t)}`),channels:()=>r("/api/channels"),updateChannel:(e,t)=>U(`/api/channels/${e}`,t),resetChannel:e=>c(`/api/channels/${e}/reset`,{}),pairQr:()=>r("/api/pair/qr"),pairOnboarding:()=>r("/api/pair/onboarding"),exchangePair:e=>c("/api/pair/exchange",{pending:e}),addSchedule:e=>c("/api/schedules",e),setScheduleEnabled:(e,t)=>U(`/api/schedules/${e}`,{enabled:t}),deleteSchedule:e=>x(`/api/schedules/${e}`)},J=p([]),_=()=>({order:[],byId:{},lastSeq:0}),y=p({});function M(e,t){return e.id??`${e.kind}:${e.seq??t}`}function re(e){return e==="thinking"||e==="think-stream"}function be(e){return e?e.order.map(t=>e.byId[t]).filter(Boolean):[]}function we(e,t){return typeof t.seq=="number"&&e>0&&t.seq>e+1}function Se(e){if(!("sessionId"in e)||!e.sessionId)return;const t=e.sessionId,n=M(e,0);y.update(s=>{const i=s[t]??_();if(e.seq!=null&&e.seq<=i.lastSeq&&!(n in i.byId))return s;e.seq!=null&&(i.lastSeq=Math.max(i.lastSeq,e.seq));const o=e.id?e:{...e,id:n};if(n in i.byId)i.byId={...i.byId,[n]:o};else{let d=i.order,a=i.byId;(e.kind==="streaming"||e.kind==="assistant"||e.kind==="error")&&(a={...a},d=d.filter(l=>{var u;return re((u=a[l])==null?void 0:u.kind)?(delete a[l],!1):!0})),i.order=[...d,n],i.byId={...a,[n]:o}}return{...s,[t]:i}})}function ke(e){y.update(t=>{for(const n of Object.keys(t)){const s=t[n];if(!(e in s.byId))continue;const i={...s.byId};return delete i[e],{...t,[n]:{...s,order:s.order.filter(o=>o!==e),byId:i}}}return t})}function ve(e,t,n=0){y.update(s=>{const i=_();return i.lastSeq=n,t.forEach((o,d)=>{const a=M(o,d);i.order.push(a),i.byId[a]=o.id?o:{...o,id:a}}),{...s,[e]:i}})}let F=0;function Ie(e,t){if(t.length===0)return;F+=1;const n=F;y.update(s=>{const i=s[e]??_(),o={...i.byId},d=[];for(let a=t.length-1;a>=0;a--){const l=t[a],u=l.id??`${l.kind}:h${n}:${a}`;u in o||(d.push(u),o[u]=l.id?l:{...l,id:u})}return d.length===0?s:{...s,[e]:{order:[...d.reverse(),...i.order],byId:o,lastSeq:i.lastSeq}}})}function Ae(e){const t=new Set(Array.isArray(e)?e:e?[e]:[]);y.update(n=>{const s={};for(const i of Object.keys(n))t.has(i)&&(s[i]=n[i]);return s})}const v=p(null),h=p(null),D=p(void 0),oe=m([h,D,J,v],([e,t,n,s])=>{if(e){const i=t?n.find(a=>a.id===t):void 0,o=(i==null?void 0:i.backendId)??e.activeId,d=e.backends.find(a=>a.id===o);if(d)return d.capabilities}return(s==null?void 0:s.capabilities)??null}),ae=m([h,D,J,v],([e,t,n,s])=>{if(e){const i=t?n.find(o=>o.id===t):void 0;return(i==null?void 0:i.backendId)??e.activeId}return(s==null?void 0:s.id)??null}),Ce=m(oe,e=>t=>e?e[t]!==!1:!0),ce=m([h,v],([e,t])=>{var n;return e?((n=e.backends.find(s=>s.id===e.activeId))==null?void 0:n.capabilities)??null:(t==null?void 0:t.capabilities)??null});m(ce,e=>t=>e?e[t]!==!1:!0);const $e=m(ae,e=>{const t=e??"opencode";return t.includes(":")?t.split(":").pop():t}),w=["emerald","azure","amber","violet"],Ee={emerald:"#54d398",azure:"#5b9eff",amber:"#ffc34d",violet:"#b48cf0"},Te={emerald:"#0f261b",azure:"#101f33",amber:"#2a2110",violet:"#1d1733"},Oe={emerald:"#236b49",azure:"#2c5891",amber:"#8a6a26",violet:"#5a4790"},W="ocrc.agentAccents",G={opencode:"emerald","acp:kimi":"azure"};function de(e){let t=0;for(let n=0;n<e.length;n++)t=t*31+e.charCodeAt(n)>>>0;return t}function le(e){return G[e]?G[e]:w[de(e)%w.length]}function ue(){if(typeof localStorage>"u")return{};try{const e=localStorage.getItem(W),t=e?JSON.parse(e):{};return typeof t=="object"&&t!==null?t:{}}catch{return{}}}function fe(e){if(!(typeof localStorage>"u"))try{localStorage.setItem(W,JSON.stringify(e))}catch{}}const C=p(ue());function pe(e){const t=g(C);return w.includes(t[e])?t[e]:le(e)}function je(e,t){var s;const n={...g(C)};t&&w.includes(t)?n[e]=t:delete n[e],C.set(n),fe(n),((s=g(h))==null?void 0:s.activeId)===e&&Q(e)}function Q(e){typeof document>"u"||document.documentElement.setAttribute("data-accent",pe(e))}async function qe(){try{v.set(await q.capabilities())}catch(e){console.warn("[capabilities] failed to load",e)}}async function he(){try{h.set(await q.backends())}catch(e){console.warn("[backends] failed to load",e)}}async function _e(e){const t=g(h);t&&h.set({...t,activeId:e});try{await q.setActiveBackend(e)}catch(n){console.warn("[backends] setActive failed",n)}await he(),Q(e)}export{w as A,_e as B,je as C,ve as D,ie as E,Se as F,D as G,Te as a,Ee as b,Oe as c,C as d,pe as e,q as f,Q as g,f as h,$e as i,h as j,Ce as k,be as l,ae as m,le as n,ye as o,y as p,S as q,ge as r,we as s,he as t,qe as u,A as v,Ie as w,Ae as x,ke as y,J as z};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{z as Ne,ai as p,ag as Z,a8 as ie,aG as Re,k as He,aV as fe,aP as F,aQ as K,ah as D,a as _e,H as Ie,ak as le,U as I,T as U,g as b,G as $,a0 as Oe,aT as De,Z as ze,am as Pe,x as ee,f as Fe,e as xe,au as Ge,aW as oe,E as Ve,D as Be,aL as Me,aA as me,I as q,B as Ye,K as Ke,at as Ue,_ as qe,ac as O,aF as B,ad as Ee,d as Ae,c as We,a$ as Se,u as Xe,y as W,aH as Je,aj as Qe,i as Ze,R as $e,o as je,n as er,C as ce,t as ue,m as rr,A as ar,N as nr,ae as tr,ab as sr,l as be,F as ir,v as fr,ar as Te,b1 as lr,b4 as we,aJ as ke,al as or,a_ as cr,b8 as m,w as ur,a7 as dr,V as vr,aK as hr}from"./BjY4dxcB.js";import{b as pr}from"./
|
|
1
|
+
import{z as Ne,ai as p,ag as Z,a8 as ie,aG as Re,k as He,aV as fe,aP as F,aQ as K,ah as D,a as _e,H as Ie,ak as le,U as I,T as U,g as b,G as $,a0 as Oe,aT as De,Z as ze,am as Pe,x as ee,f as Fe,e as xe,au as Ge,aW as oe,E as Ve,D as Be,aL as Me,aA as me,I as q,B as Ye,K as Ke,at as Ue,_ as qe,ac as O,aF as B,ad as Ee,d as Ae,c as We,a$ as Se,u as Xe,y as W,aH as Je,aj as Qe,i as Ze,R as $e,o as je,n as er,C as ce,t as ue,m as rr,A as ar,N as nr,ae as tr,ab as sr,l as be,F as ir,v as fr,ar as Te,b1 as lr,b4 as we,aJ as ke,al as or,a_ as cr,b8 as m,w as ur,a7 as dr,V as vr,aK as hr}from"./BjY4dxcB.js";import{b as pr}from"./ewK-93nZ.js";import"./CWj6FrbW.js";import"./TuGPYaVf.js";import{p as de}from"./C2FuqD3s.js";function Pr(e,r){return r}function gr(e,r,a){for(var n=[],s=r.length,i,t=r.length,u=0;u<s;u++){let _=r[u];me(_,()=>{if(i){if(i.pending.delete(_),i.done.add(_),i.pending.size===0){var d=e.outrogroups;j(e,ee(i.done)),d.delete(i),d.size===0&&(e.outrogroups=null)}}else t-=1},!1)}if(t===0){var c=n.length===0&&a!==null;if(c){var f=a,o=f.parentNode;Ke(o),o.append(f),e.items.clear()}j(e,r,!c)}else i={pending:new Set(r),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(i)}function j(e,r,a=!0){var n;if(e.pending.size>0){n=new Set;for(const t of e.pending.values())for(const u of t)n.add(e.items.get(u).e)}for(var s=0;s<r.length;s++){var i=r[s];if(n!=null&&n.has(i)){i.f|=b;const t=document.createDocumentFragment();Ue(i,t)}else qe(r[s],a)}}var ve;function Fr(e,r,a,n,s,i=null){var t=e,u=new Map,c=(r&Ae)!==0;if(c){var f=e;t=p?F(O(f)):f.appendChild(U())}p&&Z();var o=null,_=ze(()=>{var h=a();return Pe(h)?h:h==null?[]:ee(h)}),d,M=new Map,g=!0;function L(h){w.effect.f&Be||(w.pending.delete(h),w.fallback=o,_r(w,d,t,r,n),o!==null&&(d.length===0?o.f&b?(o.f^=b,P(o,null,t)):Me(o):me(o,()=>{o=null})))}function l(h){w.pending.delete(h)}var v=Ne(()=>{d=ie(_);var h=d.length;let A=!1;if(p){var x=Re(t)===He;x!==(h===0)&&(t=fe(),F(t),K(!1),A=!0)}for(var k=new Set,E=I,R=De(),C=0;C<h;C+=1){p&&D.nodeType===_e&&D.data===Ie&&(t=D,A=!0,K(!1));var H=d[C],N=n(H,C),S=g?null:u.get(N);S?(S.v&&le(S.v,H),S.i&&le(S.i,C),R&&E.unskip_effect(S.e)):(S=Mr(u,g?t:ve??(ve=U()),H,N,C,s,r,a),g||(S.e.f|=b),u.set(N,S)),k.add(N)}if(h===0&&i&&!o&&(g?o=$(()=>i(t)):(o=$(()=>i(ve??(ve=U()))),o.f|=b)),h>k.size&&Oe(),p&&h>0&&F(fe()),!g)if(M.set(E,k),R){for(const[G,V]of u)k.has(G)||E.skip_effect(V.e);E.oncommit(L),E.ondiscard(l)}else L(E);A&&K(!0),ie(_)}),w={effect:v,items:u,pending:M,outrogroups:null,fallback:o};g=!1,p&&(t=D)}function z(e){for(;e!==null&&!(e.f&Ye);)e=e.next;return e}function _r(e,r,a,n,s){var H,N,S,G,V,re,ae,ne,te;var i=(n&We)!==0,t=r.length,u=e.items,c=z(e.effect.first),f,o=null,_,d=[],M=[],g,L,l,v;if(i)for(v=0;v<t;v+=1)g=r[v],L=s(g,v),l=u.get(L).e,l.f&b||((N=(H=l.nodes)==null?void 0:H.a)==null||N.measure(),(_??(_=new Set)).add(l));for(v=0;v<t;v+=1){if(g=r[v],L=s(g,v),l=u.get(L).e,e.outrogroups!==null)for(const T of e.outrogroups)T.pending.delete(l),T.done.delete(l);if(l.f&q&&(Me(l),i&&((G=(S=l.nodes)==null?void 0:S.a)==null||G.unfix(),(_??(_=new Set)).delete(l))),l.f&b)if(l.f^=b,l===c)P(l,null,a);else{var w=o?o.next:c;l===e.effect.last&&(e.effect.last=l.prev),l.prev&&(l.prev.next=l.next),l.next&&(l.next.prev=l.prev),y(e,o,l),y(e,l,w),P(l,w,a),o=l,d=[],M=[],c=z(o.next);continue}if(l!==c){if(f!==void 0&&f.has(l)){if(d.length<M.length){var h=M[0],A;o=h.prev;var x=d[0],k=d[d.length-1];for(A=0;A<d.length;A+=1)P(d[A],h,a);for(A=0;A<M.length;A+=1)f.delete(M[A]);y(e,x.prev,k.next),y(e,o,x),y(e,k,h),c=h,o=k,v-=1,d=[],M=[]}else f.delete(l),P(l,c,a),y(e,l.prev,l.next),y(e,l,o===null?e.effect.first:o.next),y(e,o,l),o=l;continue}for(d=[],M=[];c!==null&&c!==l;)(f??(f=new Set)).add(c),M.push(c),c=z(c.next);if(c===null)continue}l.f&b||d.push(l),o=l,c=z(l.next)}if(e.outrogroups!==null){for(const T of e.outrogroups)T.pending.size===0&&(j(e,ee(T.done)),(V=e.outrogroups)==null||V.delete(T));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||f!==void 0){var E=[];if(f!==void 0)for(l of f)l.f&q||E.push(l);for(;c!==null;)!(c.f&q)&&c!==e.fallback&&E.push(c),c=z(c.next);var R=E.length;if(R>0){var C=n&Ae&&t===0?a:null;if(i){for(v=0;v<R;v+=1)(ae=(re=E[v].nodes)==null?void 0:re.a)==null||ae.measure();for(v=0;v<R;v+=1)(te=(ne=E[v].nodes)==null?void 0:ne.a)==null||te.fix()}gr(e,E,C)}}i&&B(()=>{var T,se;if(_!==void 0)for(l of _)(se=(T=l.nodes)==null?void 0:T.a)==null||se.apply()})}function Mr(e,r,a,n,s,i,t,u){var c=t&Fe?t&xe?oe(a):Ge(a,!1,!1):null,f=t&Ve?oe(s):null;return{v:c,i:f,e:$(()=>(i(r,c??a,f??s,u),()=>{e.delete(n)}))}}function P(e,r,a){if(e.nodes)for(var n=e.nodes.start,s=e.nodes.end,i=r&&!(r.f&b)?r.nodes.start:a;n!==null;){var t=Ee(n);if(i.before(n),n===s)return;n=t}}function y(e,r,a){r===null?e.effect.first=a:r.next=a,a===null?e.effect.last=r:a.prev=r}function mr(e,r,a=!1,n=!1,s=!1,i=!1){var t=e,u="";if(a){var c=e;p&&(t=F(O(c)))}Se(()=>{var f=Xe;if(u===(u=r()??"")){p&&Z();return}if(a&&!p){f.nodes=null,c.innerHTML=u,u!==""&&W(O(c),c.lastChild);return}if(f.nodes!==null&&(Je(f.nodes.start,f.nodes.end),f.nodes=null),u!==""){if(p){D.data;for(var o=Z(),_=o;o!==null&&(o.nodeType!==_e||o.data!=="");)_=o,o=Ee(o);if(o===null)throw Qe(),Ze;W(D,_),t=F(o);return}var d=n?je:s?er:void 0,M=$e(n?"svg":s?"math":"template",d);M.innerHTML=u;var g=n||s?M:M.content;if(W(O(g),g.lastChild),n||s)for(;O(g);)t.before(O(g));else t.before(g)}})}const he=[...`
|
|
2
2
|
\r\f \v\uFEFF`];function Er(e,r,a){var n=e==null?"":""+e;if(r&&(n=n?n+" "+r:r),a){for(var s of Object.keys(a))if(a[s])n=n?n+" "+s:s;else if(n.length)for(var i=s.length,t=0;(t=n.indexOf(s,t))>=0;){var u=t+i;(t===0||he.includes(n[t-1]))&&(u===n.length||he.includes(n[u]))?n=(t===0?"":n.substring(0,t))+n.substring(u+1):t=u}}return n===""?null:n}function Ar(e,r){return e==null?null:String(e)}function xr(e,r,a,n,s,i){var t=e[ce];if(p||t!==a||t===void 0){var u=Er(a,n,i);(!p||u!==e.getAttribute("class"))&&(u==null?e.removeAttribute("class"):r?e.className=u:e.setAttribute("class",u)),e[ce]=a}else if(i&&s!==i)for(var c in i){var f=!!i[c];(s==null||f!==!!s[c])&&e.classList.toggle(c,f)}return i}function Gr(e,r,a,n){var s=e[ue];if(p||s!==r){var i=Ar(r);(!p||i!==e.getAttribute("style"))&&(i==null?e.removeAttribute("style"):e.style.cssText=i),e[ue]=r}return n}const Sr=Symbol("is custom element"),br=Symbol("is html"),Tr=be?"link":"LINK",wr=be?"progress":"PROGRESS";function Vr(e){if(p){var r=!1,a=()=>{if(!r){if(r=!0,e.hasAttribute("value")){var n=e.value;Y(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var s=e.checked;Y(e,"checked",null),e.checked=s}}};e[ir]=a,B(a),fr()}}function Br(e,r){var a=Ce(e);a.value===(a.value=r??void 0)||e.value===r&&(r!==0||e.nodeName!==wr)||(e.value=r??"")}function Y(e,r,a,n){var s=Ce(e);p&&(s[r]=e.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&e.nodeName===Tr)||s[r]!==(s[r]=a)&&(r==="loading"&&(e[rr]=a),a==null?e.removeAttribute(r):typeof a!="string"&&kr(e).includes(r)?e[r]=a:e.setAttribute(r,a))}function Ce(e){var r;return e[r=ar]??(e[r]={[Sr]:e.nodeName.includes("-"),[br]:e.namespaceURI===nr})}var pe=new Map;function kr(e){var r=e.getAttribute("is")||e.nodeName,a=pe.get(r);if(a)return a;pe.set(r,a=[]);for(var n,s=e,i=Element.prototype;i!==s;){n=sr(s);for(var t in n)n[t].set&&t!=="innerHTML"&&t!=="textContent"&&t!=="innerText"&&a.push(t);s=tr(s)}return a}function Yr(e,r,a=r){var n=new WeakSet;Te(e,"input",async s=>{var i=s?e.defaultValue:e.value;if(i=J(e)?Q(i):i,a(i),I!==null&&n.add(I),await lr(),i!==(i=r())){var t=e.selectionStart,u=e.selectionEnd,c=e.value.length;if(e.value=i??"",u!==null){var f=e.value.length;t===u&&u===c&&f>c?(e.selectionStart=f,e.selectionEnd=f):(e.selectionStart=t,e.selectionEnd=Math.min(u,f))}}}),(p&&e.defaultValue!==e.value||we(r)==null&&e.value)&&(a(J(e)?Q(e.value):e.value),I!==null&&n.add(I)),ke(()=>{var s=r();if(e===document.activeElement){var i=I;if(n.has(i))return}J(e)&&s===Q(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}const X=new Set;function Kr(e,r,a,n,s=n){var i=a.getAttribute("type")==="checkbox",t=e;let u=!1;if(r!==null)for(var c of r)t=t[c]??(t[c]=[]);t.push(a),Te(a,"change",()=>{var f=a.__value;i&&(f=ge(t,f,a.checked)),s(f)},()=>s(i?[]:null)),ke(()=>{var f=n();if(p&&a.defaultChecked!==a.checked){u=!0;return}i?(f=f||[],a.checked=f.includes(a.__value)):a.checked=or(a.__value,f)}),cr(()=>{var f=t.indexOf(a);f!==-1&&t.splice(f,1)}),X.has(t)||(X.add(t),B(()=>{t.sort((f,o)=>f.compareDocumentPosition(o)===4?-1:1),X.delete(t)})),B(()=>{if(u){var f;if(i)f=ge(t,f,a.checked);else{var o=t.find(_=>_.checked);f=o==null?void 0:o.__value}s(f)}})}function ge(e,r,a){for(var n=new Set,s=0;s<e.length;s+=1)e[s].checked&&n.add(e[s].__value);return a||n.delete(r),Array.from(n)}function J(e){var r=e.type;return r==="number"||r==="range"}function Q(e){return e===""?null:+e}function Ur(e){return function(...r){var a=r[0];return a.stopPropagation(),e==null?void 0:e.apply(this,r)}}function qr(e){return function(...r){var a=r[0];return a.preventDefault(),e==null?void 0:e.apply(this,r)}}const Cr=()=>{const e=pr;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},Wr={subscribe(e){return Cr().page.subscribe(e)}},Xr=m("offline"),Jr=m(0),Qr=m(!1),Zr=m(!0),$r=m(!1),jr=m(!1),ea=m(!1),ra=m(!1),aa=m(!1),na=m(void 0),ta=m(!0),yr="ocrc-theme";function ye(){if(typeof document<"u"){const e=document.documentElement.getAttribute("data-theme");if(e==="light"||e==="dark")return e}return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}function Le(e){const r=e==="light"?"#faf9f6":"#0d0d0d";document.querySelectorAll('meta[name="theme-color"]').forEach(a=>a.setAttribute("content",r))}const Lr=m(ye());typeof document<"u"&&Le(ye());function sa(){Lr.update(e=>{const r=e==="light"?"dark":"light";try{localStorage.setItem(yr,r)}catch{}return document.documentElement.setAttribute("data-theme",r),Le(r),r})}var Nr=dr('<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"></svg>');function ia(e,r){const a={menu:'<path d="M4 7h16M4 12h16M4 17h16"/>',sun:'<circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/>',moon:'<path d="M21 12.8A9 9 0 1 1 11.2 3 7 7 0 0 0 21 12.8z"/>',"caret-down":'<path d="M6 9l6 6 6-6"/>',"caret-right":'<path d="M9 6l6 6-6 6"/>',search:'<circle cx="11" cy="11" r="7"/><path d="M21 21l-4.3-4.3"/>',check:'<path d="M20 6L9 17l-5-5"/>',copy:'<rect x="9" y="9" width="11" height="11" rx="2"/><path d="M5 15V5a2 2 0 0 1 2-2h10"/>',refresh:'<path d="M20.5 15a9 9 0 1 1-2.2-9.5L21 8"/><path d="M21 3v5h-5"/>',alert:'<path d="M12 3l10 17H2L12 3z"/><path d="M12 10v4"/><path d="M12 17.6v.4"/>',close:'<path d="M6 6l12 12M18 6L6 18"/>',gear:'<circle cx="12" cy="12" r="3"/><path d="M12 2v3M12 19v3M4.6 4.6l2.1 2.1M17.3 17.3l2.1 2.1M2 12h3M19 12h3M4.6 19.4l2.1-2.1M17.3 6.7l2.1-2.1"/>',bolt:'<path d="M13 2L4 14h6l-1 8 9-12h-6l1-8z"/>',cpu:'<rect x="5" y="5" width="14" height="14" rx="2"/><rect x="10" y="10" width="4" height="4"/><path d="M9 2v3M15 2v3M9 19v3M15 19v3M2 9h3M2 15h3M19 9h3M19 15h3"/>',plus:'<path d="M12 5v14M5 12h14"/>',"arrow-down":'<path d="M12 5v14"/><path d="M19 12l-7 7-7-7"/>'};let n=de(r,"name",8,""),s=de(r,"size",8,16);var i=Nr();mr(i,()=>(vr(n()),we(()=>a[n()]??"")),!0),hr(i),Se(()=>{Y(i,"width",s()),Y(i,"height",s())}),ur(e,i)}const fa=m([]),la=m(null);function Rr(e){const r=String(e??"").toLowerCase();return r==="completed"||r==="done"?"done":r==="in_progress"||r==="running"||r==="active"?"running":"pending"}function oa(e){const a=(Array.isArray(e)?e:[]).map(n=>({text:String((n==null?void 0:n.content)??(n==null?void 0:n.text)??(n==null?void 0:n.title)??""),status:Rr(n==null?void 0:n.status)}));return{total:a.length,done:a.filter(n=>n.status==="done").length,items:a}}export{Lr as A,sa as B,fa as C,ia as I,la as a,Kr as b,Yr as c,ea as d,na as e,ta as f,Xr as g,Fr as h,aa as i,mr as j,Pr as k,ra as l,Jr as m,Zr as n,jr as o,Wr as p,Qr as q,$r as r,qr as s,Vr as t,Y as u,xr as v,Gr as w,Br as x,Ur as y,oa as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var tt=e=>{throw TypeError(e)};var Dt=(e,t,n)=>t.has(e)||tt("Cannot "+n);var y=(e,t,n)=>(Dt(e,t,"read from private field"),n?n.call(e):t.get(e)),A=(e,t,n)=>t.has(e)?tt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);import{b8 as Ve,az as nt,aX as T,a8 as I,aO as P,b1 as _e,aZ as qt,aS as Vt}from"./BjY4dxcB.js";class ze{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 Me{constructor(t,n){try{new Headers({location:n})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(n)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=n}}class Be extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}new URL("sveltekit-internal://");function zt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Mt(e){return e.split("%25").map(decodeURI).join("%25")}function Bt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function Pe({href:e}){return e.split("#")[0]}function j(){}function Kt(...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;function Ft(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 Gt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:(t==null?void 0:t.method)||"GET")!=="GET"&&X.delete(Ke(e)),Gt(e,t));const X=new Map;function Ht(e,t){const n=Ke(e,t),a=document.querySelector(n);if(a!=null&&a.textContent){a.remove();let{body:r,...i}=JSON.parse(a.textContent);const o=a.getAttribute("data-ttl");return o&&X.set(n,{body:r,init:i,ttl:1e3*Number(o)}),a.getAttribute("data-b64")!==null&&(r=Ft(r)),Promise.resolve(new Response(r,i))}return window.fetch(e,t)}function Wt(e,t,n){if(X.size>0){const a=Ke(e,n),r=X.get(a);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(r.body,r.init);X.delete(a)}}return window.fetch(t,n)}function Ke(e,t){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t!=null&&t.headers||t!=null&&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="${Kt(...r)}"]`}return a}const Jt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Yt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${Zt(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((l,c)=>{if(c%2){if(l.startsWith("x+"))return Oe(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return Oe(String.fromCharCode(...l.slice(2).split("-").map(m=>parseInt(m,16))));const d=Jt.exec(l),[,u,w,p,f]=d;return t.push({name:p,matcher:f,optional:!!u,rest:!!w,chained:w?c===1&&o[0]==="":!1}),w?"([^]*?)":u?"([^/]*)?":"([^/]+?)"}return Oe(l)}).join("")}).join("")}/?$`),params:t}}function Xt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function Zt(e){return e.slice(1).split("/").filter(Xt)}function Qt(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 l=t[s];let c=r[s-o];if(l.chained&&l.rest&&o&&(c=r.slice(s-o,s+1).filter(d=>d).join("/"),o=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){a[l.name]=c;const d=t[s+1],u=r[s+1];d&&!d.rest&&d.optional&&u&&l.chained&&(o=0),!d&&!u&&Object.keys(a).length===i.length&&(o=0);continue}if(l.optional&&l.chained){o++;continue}return}if(!o)return a}function Oe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function en({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[l,c,d]])=>{const{pattern:u,params:w}=Yt(s),p={id:s,exec:f=>{const m=u.exec(f);if(m)return Qt(m,w,a)},errors:[1,...d||[]].map(f=>e[f]),layouts:[0,...c||[]].map(o),leaf:i(l)};return p.errors.length=p.layouts.length=Math.max(p.errors.length,p.layouts.length),p});function i(s){const l=s<0;return l&&(s=~s),[l,e[s]]}function o(s){return s===void 0?s:[r.has(s),e[s]]}}function mt(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function rt(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}var ut;const U=((ut=globalThis.__sveltekit_15sf2lz)==null?void 0:ut.base)??"";var dt;const tn=((dt=globalThis.__sveltekit_15sf2lz)==null?void 0:dt.assets)??U??"",nn="1790668823815",_t="sveltekit:snapshot",wt="sveltekit:scroll",vt="sveltekit:states",rn="sveltekit:pageurl",K="sveltekit:history",Z="sveltekit:navigation",V={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Le=location.origin;function Fe(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 z(){return{x:pageXOffset,y:pageYOffset}}function B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const at={...V,"":V.hover};function yt(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function bt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=yt(e)}}function je(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==null?void 0:a.origin)===Le&&e.hasAttribute("download");return{url:a,external:i,target:r,download:o}}function we(e){let t=null,n=null,a=null,r=null,i=null,o=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=B(s,"preload-code")),r===null&&(r=B(s,"preload-data")),t===null&&(t=B(s,"keepfocus")),n===null&&(n=B(s,"noscroll")),i===null&&(i=B(s,"reload")),o===null&&(o=B(s,"replacestate")),s=yt(s);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:at[a??"off"],preload_data:at[r??"off"],keepfocus:l(t),noscroll:l(n),reload:l(i),replace_state:l(o)}}function ot(e){const t=Ve(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(l=>{(s===void 0||n&&l!==s)&&o(s=l)})}return{notify:a,set:r,subscribe:i}}const kt={v:j};function an(){const{set:e,subscribe:t}=Ve(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${tn}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==nn;return o&&(e(!0),kt.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 On(e){}const St=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...St];const on=new Set([...St]);[...on];function sn(e){return e.filter(t=>t!=null)}function ge(e,t){return e+"/"+t}function Ge(e){return e instanceof ze||e instanceof Be?e.status:500}function ln(e){return e instanceof Be?e.text:"Internal Error"}let x,Q,$e;const cn=nt.toString().includes("$$")||/function \w+\(\) \{\}/.test(nt.toString()),st="a:";var ae,oe,se,ie,le,ce,fe,ue,ht,de,pt,he,gt;cn?(x={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(st)},Q={current:null},$e={current:!1}):(x=new(ht=class{constructor(){A(this,ae,T({}));A(this,oe,T(null));A(this,se,T(null));A(this,ie,T({}));A(this,le,T({id:null}));A(this,ce,T({}));A(this,fe,T(-1));A(this,ue,T(new URL(st)))}get data(){return I(y(this,ae))}set data(t){P(y(this,ae),t)}get form(){return I(y(this,oe))}set form(t){P(y(this,oe),t)}get error(){return I(y(this,se))}set error(t){P(y(this,se),t)}get params(){return I(y(this,ie))}set params(t){P(y(this,ie),t)}get route(){return I(y(this,le))}set route(t){P(y(this,le),t)}get state(){return I(y(this,ce))}set state(t){P(y(this,ce),t)}get status(){return I(y(this,fe))}set status(t){P(y(this,fe),t)}get url(){return I(y(this,ue))}set url(t){P(y(this,ue),t)}},ae=new WeakMap,oe=new WeakMap,se=new WeakMap,ie=new WeakMap,le=new WeakMap,ce=new WeakMap,fe=new WeakMap,ue=new WeakMap,ht),Q=new(pt=class{constructor(){A(this,de,T(null))}get current(){return I(y(this,de))}set current(t){P(y(this,de),t)}},de=new WeakMap,pt),$e=new(gt=class{constructor(){A(this,he,T(!1))}get current(){return I(y(this,he))}set current(t){P(y(this,he),t)}},he=new WeakMap,gt),kt.v=()=>$e.current=!0);function Et(e){Object.assign(x,e)}const{onMount:fn}=qt,un=new Set(["icon","shortcut icon","apple-touch-icon"]);let J=null;const D=mt(wt)??{},ee=mt(_t)??{},N={url:ot({}),page:ot({}),navigating:Ve(null),updated:an()};function He(e){D[e]=z()}function dn(e,t){let n=e+1;for(;D[n];)delete D[n],n+=1;for(n=t+1;ee[n];)delete ee[n],n+=1}function te(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(j)}async function Rt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(U||"/");e&&await e.update()}}let We,Ne,ve,O,De,S;const ye=[],be=[];let v=null;function ke(){var e;(e=v==null?void 0:v.fork)==null||e.then(t=>t==null?void 0:t.discard()),v=null}const me=new Map,xt=new Set,hn=new Set,F=new Set;let _={branch:[],error:null,url:null},Lt=!1,Se=!1,it=!0,ne=!1,Y=!1,Ut=!1,Je=!1,At,k,L,C;const Ee=new Set,lt=new Map,ct=new Map;async function Nn(e,t,n){var i,o,s,l;globalThis.__sveltekit_15sf2lz&&(globalThis.__sveltekit_15sf2lz.query,globalThis.__sveltekit_15sf2lz.prerender),document.URL!==location.href&&(location.href=location.href),S=e,await((o=(i=e.hooks).init)==null?void 0:o.call(i)),We=en(e),O=document.documentElement,De=t,Ne=e.nodes[0],ve=e.nodes[1],Ne(),ve(),k=(s=history.state)==null?void 0:s[K],L=(l=history.state)==null?void 0:l[Z],k||(k=L=Date.now(),history.replaceState({...history.state,[K]:k,[Z]:L},""));const a=D[k];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await Ln(De,n)):(await G({type:"enter",url:Fe(S.hash?Tn(new URL(location.href)):location.href),replace_state:!0}),r()),xn()}function pn(){ye.length=0,Je=!1}function Tt(e){be.some(t=>t==null?void 0:t.snapshot)&&(ee[e]=be.map(t=>{var n;return(n=t==null?void 0:t.snapshot)==null?void 0:n.capture()}))}function It(e){var t;(t=ee[e])==null||t.forEach((n,a)=>{var r,i;(i=(r=be[a])==null?void 0:r.snapshot)==null||i.restore(n)})}function ft(){He(k),rt(wt,D),Tt(L),rt(_t,ee)}async function Pt(e,t,n,a){let r,i;t.invalidateAll&&ke(),await G({type:"goto",url:Fe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{if(t.invalidateAll){Je=!0,r=new Set;for(const[o,s]of lt)for(const l of s.keys())r.add(ge(o,l));i=new Set;for(const[o,s]of ct)for(const l of s.keys())i.add(ge(o,l))}t.invalidate&&t.invalidate.forEach(Rn)}}),t.invalidateAll&&_e().then(_e).then(()=>{for(const[o,s]of lt)for(const[l,{resource:c}]of s)r!=null&&r.has(ge(o,l))&&c.refresh();for(const[o,s]of ct)for(const[l,{resource:c}]of s)i!=null&&i.has(ge(o,l))&&c.reconnect()})}async function gn(e){if(e.id!==(v==null?void 0:v.id)){ke();const t={};Ee.add(t),v={id:e.id,token:t,promise:$t({...e,preload:t}).then(n=>(Ee.delete(t),n.type==="loaded"&&n.state.error&&ke(),n)),fork:null}}return v.promise}async function Ce(e){var n;const t=(n=await Ae(e,!1))==null?void 0:n.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(a=>a[1]()))}async function Ot(e,t,n){var i;const a={params:_.params,route:{id:((i=_.route)==null?void 0:i.id)??null},url:new URL(location.href)};_={...e.state,nav:a};const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Et(e.props.page),At=new S.root({target:t,props:{...e.props,stores:N,components:be},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),It(L),n){const o={from:null,to:{...a,scroll:D[k]??z()},willUnload:!1,type:"enter",complete:Promise.resolve()};F.forEach(s=>s(o))}Se=!0}async function Re({url:e,params:t,branch:n,errors:a,status:r,error:i,route:o,form:s}){let l="never";if(U&&(e.pathname===U||e.pathname===U+"/"))l="always";else for(const f of n)(f==null?void 0:f.slash)!==void 0&&(l=f.slash);e.pathname=zt(e.pathname,l),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:i,route:o},props:{constructors:sn(n).map(f=>f.node.component),page:et(x)}};s!==void 0&&(c.props.form=s);let d={},u=!x,w=0;for(let f=0;f<Math.max(n.length,_.branch.length);f+=1){const m=n[f],h=_.branch[f];(m==null?void 0:m.data)!==(h==null?void 0:h.data)&&(u=!0),m&&(d={...d,...m.data},u&&(c.props[`data_${w}`]=d),w+=1)}return(!_.url||e.href!==_.url.href||_.error!==i||s!==void 0&&s!==x.form||u)&&(c.props.page={error:i,params:t,route:{id:(o==null?void 0:o.id)??null},state:{},status:r,url:new URL(e),form:s??null,data:u?d:x.data}),c}async function Ye({loader:e,parent:t,url:n,params:a,route:r,server_data_node:i}){var c,d;let o=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();return{node:l,loader:e,server:i,universal:(c=l.universal)!=null&&c.load?{type:"data",data:o,uses:s}:null,data:o??(i==null?void 0:i.data)??null,slash:((d=l.universal)==null?void 0:d.trailingSlash)??(i==null?void 0:i.slash)}}function mn(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=Se?Wt(a,r.href,t):Ht(a,t);return{resolved:r,promise:i}}function _n(e,t,n,a,r,i){if(Je)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(ye.some(s=>s(new URL(o))))return!0;return!1}function Xe(e,t){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?t??null:null}function wn(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 vn({error:e,url:t,route:n,params:a}){return{type:"loaded",state:{error:e,url:t,route:n,params:a,branch:[]},props:{page:et(x),constructors:[]}}}async function $t({id:e,invalidating:t,url:n,params:a,route:r,preload:i}){if((v==null?void 0:v.id)===e)return Ee.delete(v.token),v.promise;const{errors:o,layouts:s,leaf:l}=r,c=[...s,l];o.forEach(h=>h==null?void 0:h().catch(j)),c.forEach(h=>h==null?void 0:h[1]().catch(j));const d=_.url?e!==xe(_.url):!1,u=_.route?r.id!==_.route.id:!1,w=wn(_.url,n);let p=!1;const f=c.map(async(h,g)=>{var $;if(!h)return;const b=_.branch[g];return h[1]===(b==null?void 0:b.loader)&&!_n(p,u,d,w,($=b.universal)==null?void 0:$.uses,a)?b:(p=!0,Ye({loader:h[1],url:n,params:a,route:r,parent:async()=>{var pe;const q={};for(let M=0;M<g;M+=1)Object.assign(q,(pe=await f[M])==null?void 0:pe.data);return q},server_data_node:Xe(h[0]?{type:"skip"}:null,h[0]?b==null?void 0:b.server:void 0)}))});for(const h of f)h.catch(j);const m=[];for(let h=0;h<c.length;h+=1)if(c[h])try{m.push(await f[h])}catch(g){if(g instanceof Me)return{type:"redirect",location:g.location};if(Ee.has(i))return vn({error:await re(g,{params:a,url:n,route:{id:r.id}}),url:n,params:a,route:r});let b=Ge(g),R;if(g instanceof ze)R=g.body;else{if(await N.updated.check())return await Rt(),await te(n);R=await re(g,{params:a,url:n,route:{id:r.id}})}const $=await yn(h,m,o);return $?Re({url:n,params:a,branch:m.slice(0,$.idx).concat($.node),errors:o,status:b,error:R,route:r}):await jt(n,{id:r.id},R,b)}else m.push(void 0);return Re({url:n,params:a,branch:m,errors:o,status:200,error:null,route:r,form:t?void 0:null})}async function yn(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 Ze({status:e,error:t,url:n,route:a}){const r={};let i=null;try{const o=await Ye({loader:Ne,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:Xe(i)}),s={node:await ve(),loader:ve,universal:null,server:null,data:null};return Re({url:n,params:r,branch:[o,s],status:e,error:t,errors:[],route:null})}catch(o){if(o instanceof Me)return Pt(new URL(o.location,location.href),{},0);throw o}}async function bn(e){const t=e.href;if(me.has(t))return me.get(t);let n;try{const a=(async()=>{let r=await S.hooks.reroute({url:new URL(e),fetch:async(i,o)=>mn(i,o,e).promise})??e;if(typeof r=="string"){const i=new URL(e);S.hash?i.hash=r:i.pathname=r,r=i}return r})();me.set(t,a),n=await a}catch{me.delete(t);return}return n}async function Ae(e,t){if(e&&!Ue(e,U,S.hash)){const n=await bn(e);if(!n)return;const a=kn(n);for(const r of We){const i=r.exec(a);if(i)return{id:xe(e),invalidating:t,route:r,params:Bt(i),url:e}}}}function kn(e){return Mt(S.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(U.length))||"/"}function xe(e){return(S.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function Ct({url:e,type:t,intent:n,delta:a,event:r,scroll:i}){let o=!1;const s=Qe(_,n,e,t,i??null);a!==void 0&&(s.navigation.delta=a),r!==void 0&&(s.navigation.event=r);const l={...s.navigation,cancel:()=>{o=!0,s.reject(new Error("navigation cancelled"))}};return ne||xt.forEach(c=>c(l)),o?null:s}async function G({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o={},redirect_count:s=0,nav_token:l={},accept:c=j,block:d=j,event:u}){var M;const w=C;C=l;const p=await Ae(t,!1),f=e==="enter"?Qe(_,p,t,e):Ct({url:t,type:e,delta:n==null?void 0:n.delta,intent:p,scroll:n==null?void 0:n.scroll,event:u});if(!f){d(),C===l&&(C=w);return}const m=k,h=L;c(),ne=!0,Se&&f.navigation.type!=="enter"&&N.navigating.set(Q.current=f.navigation);let g=p&&await $t(p);if(!g){if(Ue(t,U,S.hash))return await te(t,i);g=await jt(t,{id:null},await re(new Be(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=(p==null?void 0:p.url)||t,C!==l)return f.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(s<20){await G({type:e,url:new URL(g.location,t),popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o,redirect_count:s+1,nav_token:l}),f.fulfil(void 0);return}g=await Ze({status:500,error:await re(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await N.updated.check()&&(await Rt(),await te(t,i));if(pn(),He(m),Tt(h),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),o=n?n.state:o,!n){const E=i?0:1,H={[K]:k+=E,[Z]:L+=E,[vt]:o};(i?history.replaceState:history.pushState).call(history,H,"",t),i||dn(k,L)}const b=p&&(v==null?void 0:v.id)===p.id?v.fork:null;v!=null&&v.fork&&!b&&ke(),v=null,g.props.page.state=o;let R;if(Se){const E=(await Promise.all(Array.from(hn,W=>W(f.navigation)))).filter(W=>typeof W=="function");if(E.length>0){let W=function(){E.forEach(Ie=>{F.delete(Ie)})};E.push(W),E.forEach(Ie=>{F.add(Ie)})}const H=f.navigation.to;_={...g.state,nav:{params:H.params,route:H.route,url:H.url}},g.props.page&&(g.props.page.url=t);const Te=b&&await b;Te?R=Te.commit():(J=null,At.$set(g.props),J&&Object.assign(g.props.page,J),Et(g.props.page),R=(M=Vt)==null?void 0:M()),Ut=!0}else await Ot(g,De,!1);const{activeElement:$}=document;if(await R,await _e(),await _e(),C!==l)return f.reject(new Error("navigation aborted")),!1;g.props.page&&J&&Object.assign(g.props.page,J);let q=null;if(it){const E=n?n.scroll:r?z():null;E?scrollTo(E.x,E.y):(q=t.hash&&document.getElementById(Nt(t)))?q.scrollIntoView():scrollTo(0,0)}const pe=document.activeElement!==$&&document.activeElement!==document.body;!a&&!pe&&An(t,!q),it=!0,ne=!1,e==="popstate"&&It(L),f.fulfil(void 0),f.navigation.to&&(f.navigation.to.scroll=z()),F.forEach(E=>E(f.navigation)),N.navigating.set(Q.current=null)}async function jt(e,t,n,a,r){return e.origin===Le&&e.pathname===location.pathname&&!Lt?await Ze({status:a,error:n,url:e,route:t}):await te(e,r)}function Sn(){let e,t={element:void 0,href:void 0},n;O.addEventListener("mousemove",s=>{const l=s.target;clearTimeout(e),e=setTimeout(()=>{i(l,V.hover)},20)});function a(s){s.defaultPrevented||i(s.composedPath()[0],V.tap)}O.addEventListener("mousedown",a),O.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(s=>{for(const l of s)l.isIntersecting&&(Ce(new URL(l.target.href)),r.unobserve(l.target))},{threshold:0});async function i(s,l){const c=bt(s,O),d=c===t.element&&(c==null?void 0:c.href)===t.href&&l>=n;if(!c||d)return;const{url:u,external:w,download:p}=je(c,U,S.hash);if(w||p)return;const f=we(c),m=u&&xe(_.url)===xe(u);if(!(f.reload||m))if(l<=f.preload_data){t={element:c,href:c.href},n=V.tap;const h=await Ae(u,!1);if(!h)return;gn(h)}else l<=f.preload_code&&(t={element:c,href:c.href},n=l,Ce(u))}function o(){r.disconnect();for(const s of O.querySelectorAll("a")){const{url:l,external:c,download:d}=je(s,U,S.hash);if(c||d)continue;const u=we(s);u.reload||(u.preload_code===V.viewport&&r.observe(s),u.preload_code===V.eager&&Ce(l))}}F.add(o),o()}function re(e,t){if(e instanceof ze)return e.body;const n=Ge(e),a=ln(e);return S.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function En(e,t){fn(()=>(e.add(t),()=>{e.delete(t)}))}function Dn(e){En(F,e)}function qn(e,t={}){return e=new URL(Fe(e)),e.origin!==Le?Promise.reject(new Error("goto: invalid URL")):Pt(e,t,0)}function Rn(e){if(typeof e=="function")ye.push(e);else{const{href:t}=new URL(e,location.href);ye.push(n=>n.href===t)}}function xn(){var t;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let a=!1;if(ft(),!ne){const r=Qe(_,void 0,null,"leave"),i={...r.navigation,cancel:()=>{a=!0,r.reject(new Error("navigation cancelled"))}};xt.forEach(o=>o(i))}a?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ft()}),(t=navigator.connection)!=null&&t.saveData||Sn(),O.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const a=bt(n.composedPath()[0],O);if(!a)return;const{url:r,external:i,target:o,download:s}=je(a,U,S.hash);if(!r)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const l=we(a);if(!(a instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||s)return;const[d,u]=(S.hash?r.hash.replace(/^#/,""):r.href).split("#"),w=d===Pe(location);if(i||l.reload&&(!w||!u)){Ct({url:r,type:"link",event:n})?ne=!0:n.preventDefault();return}if(u!==void 0&&w){const[,p]=_.url.href.split("#");if(p===u){if(n.preventDefault(),u===""||u==="top"&&a.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const f=a.ownerDocument.getElementById(decodeURIComponent(u));f&&(f.scrollIntoView(),f.focus())}return}if(Y=!0,He(k),e(r),!l.replace_state)return;Y=!1}n.preventDefault(),await new Promise(p=>{requestAnimationFrame(()=>{setTimeout(p,0)}),setTimeout(p,100)}),await G({type:"link",url:r,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??r.href===location.href,event:n})}),O.addEventListener("submit",n=>{if(n.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(n.target),r=n.submitter;if(((r==null?void 0:r.formTarget)||a.target)==="_blank"||((r==null?void 0:r.formMethod)||a.method)!=="get")return;const s=new URL((r==null?void 0:r.hasAttribute("formaction"))&&(r==null?void 0:r.formAction)||a.action);if(Ue(s,U,!1))return;const l=n.target,c=we(l);if(c.reload)return;n.preventDefault(),n.stopPropagation();const d=new FormData(l,r);s.search=new URLSearchParams(d).toString(),G({type:"form",url:s,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??s.href===location.href,event:n})}),addEventListener("popstate",async n=>{var a;if(!qe){if((a=n.state)!=null&&a[K]){const r=n.state[K];if(C={},r===k)return;const i=D[r],o=n.state[vt]??{},s=new URL(n.state[rn]??location.href),l=n.state[Z],c=_.url?Pe(location)===Pe(_.url):!1;if(l===L&&(Ut||c)){o!==x.state&&(x.state=o),e(s),D[k]=z(),i&&scrollTo(i.x,i.y),k=r;return}const u=r-k;await G({type:"popstate",url:s,popped:{state:o,scroll:i,delta:u},accept:()=>{k=r,L=l},block:()=>{history.go(-u)},nav_token:C,event:n})}else if(!Y){const r=new URL(location.href);e(r),S.hash&&location.reload()}}}),addEventListener("hashchange",()=>{Y&&(Y=!1,history.replaceState({...history.state,[K]:++k,[Z]:L},"",location.href))});for(const n of document.querySelectorAll("link"))un.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&N.navigating.set(Q.current=null)});function e(n){_.url=x.url=n,N.page.set(et(x)),N.page.notify()}}async function Ln(e,{status:t=200,error:n,node_ids:a,params:r,route:i,server_route:o,data:s,form:l}){Lt=!0;const c=new URL(location.href);let d;({params:r={},route:i={id:null}}=await Ae(c,!1)||{}),d=We.find(({id:p})=>p===i.id);let u,w=!0;try{const p=a.map(async(m,h)=>{const g=s[h];return g!=null&&g.uses&&(g.uses=Un(g.uses)),Ye({loader:S.nodes[m],url:c,params:r,route:i,parent:async()=>{const b={};for(let R=0;R<h;R+=1)Object.assign(b,(await p[R]).data);return b},server_data_node:Xe(g)})}),f=await Promise.all(p);if(d){const m=d.layouts;for(let h=0;h<m.length;h++)m[h]||f.splice(h,0,void 0)}u=await Re({url:c,params:r,branch:f,status:t,error:n,errors:d==null?void 0:d.errors,form:l,route:d??null})}catch(p){if(p instanceof Me){await te(new URL(p.location,location.href));return}u=await Ze({status:Ge(p),error:await re(p,{url:c,params:r,route:i}),url:c,route:i}),e.textContent="",w=!1}finally{}u.props.page&&(u.props.page.state={}),await Ot(u,e,w)}function Un(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}let qe=!1;function An(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const a=Nt(e);if(a&&document.getElementById(a)){const{x:i,y:o}=z();setTimeout(()=>{const s=history.state;qe=!0,location.replace(new URL(`#${a}`,location.href)),history.replaceState(s,"",e),t&&scrollTo(i,o),qe=!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],l=r.getRangeAt(o);if(s.commonAncestorContainer!==l.commonAncestorContainer||s.startContainer!==l.startContainer||s.endContainer!==l.endContainer||s.startOffset!==l.startOffset||s.endOffset!==l.endOffset)return}r.removeAllRanges()}})}}}function Qe(e,t,n,a,r=null){var c,d;let i,o;const s=new Promise((u,w)=>{i=u,o=w});return s.catch(j),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url,scroll:z()},to:n&&{params:(t==null?void 0:t.params)??null,route:{id:((d=t==null?void 0:t.route)==null?void 0:d.id)??null},url:n,scroll:r},willUnload:!t,type:a,complete:s},fulfil:i,reject:o}}function et(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 Nt(e){let t;if(S.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Dn as a,N as b,qn as g,On as l,x as p,Nn as s};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.
|
|
2
|
-
var F=r=>{throw TypeError(r)};var G=(r,e,a)=>e.has(r)||F("Cannot "+a);var u=(r,e,a)=>(G(r,e,"read from private field"),a?a.call(r):e.get(r)),L=(r,e,a)=>e.has(r)?F("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,a),j=(r,e,a,n)=>(G(r,e,"write to private field"),n?n.call(r,a):e.set(r,a),a);import{ai as N,ag as X,z as Z,h as $,aG as ee,aV as te,aP as re,aQ as W,j as ae,ah as se,aO as S,L as ne,a8 as v,af as oe,as as ie,a5 as ce,W as le,b3 as ue,au as de,aE as fe,b7 as me,b6 as he,az as _e,b1 as ve,a4 as x,aU as ge,w,aB as ye,aX as C,M as B,J as be,aK as Ee,a6 as H,b0 as Re,a$ as Pe,aR as we,b5 as I}from"../chunks/BjY4dxcB.js";import"../chunks/CWj6FrbW.js";import{B as Oe,i as D}from"../chunks/DIEDQ_hk.js";import{p as V,b as U}from"../chunks/C2FuqD3s.js";function p(r,e,a){var n;N&&(n=se,X());var o=new Oe(r);Z(()=>{var i=e()??null;if(N){var s=ee(n),t=s===ae,d=i!==null;if(t!==d){var l=te();re(l),o.anchor=l,W(!1),o.ensure(i,i&&(f=>a(f,i))),W(!0);return}}o.ensure(i,i&&(f=>a(f,i)))},$)}function ke(r){return class extends xe{constructor(e){super({component:r,...e})}}}var g,m;class xe{constructor(e){L(this,g);L(this,m);var i;var a=new Map,n=(s,t)=>{var d=de(t,!1,!1);return a.set(s,d),d};const o=new Proxy({...e.props||{},$$events:{}},{get(s,t){return v(a.get(t)??n(t,Reflect.get(s,t)))},has(s,t){return t===ne?!0:(v(a.get(t)??n(t,Reflect.get(s,t))),Reflect.has(s,t))},set(s,t,d){return S(a.get(t)??n(t,d),d),Reflect.set(s,t,d)}});j(this,m,(e.hydrate?oe:ie)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError})),(!((i=e==null?void 0:e.props)!=null&&i.$$host)||e.sync===!1)&&ce(),j(this,g,o.$$events);for(const s of Object.keys(u(this,m)))s==="$set"||s==="$destroy"||s==="$on"||le(this,s,{get(){return u(this,m)[s]},set(t){u(this,m)[s]=t},enumerable:!0});u(this,m).$set=s=>{Object.assign(o,s)},u(this,m).$destroy=()=>{ue(u(this,m))}}$set(e){u(this,m).$set(e)}$on(e,a){u(this,g)[e]=u(this,g)[e]||[];const n=(...o)=>a.call(this,...o);return u(this,g)[e].push(n),()=>{u(this,g)[e]=u(this,g)[e].filter(o=>o!==n)}}$destroy(){u(this,m).$destroy()}}g=new WeakMap,m=new WeakMap;const Ae="modulepreload",Se=function(r,e){return new URL(r,e).href},Y={},A=function(e,a,n){let o=Promise.resolve();if(a&&a.length>0){const s=document.getElementsByTagName("link"),t=document.querySelector("meta[property=csp-nonce]"),d=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));o=Promise.allSettled(a.map(l=>{if(l=Se(l,n),l in Y)return;Y[l]=!0;const f=l.endsWith(".css"),T=f?'[rel="stylesheet"]':"";if(!!n)for(let y=s.length-1;y>=0;y--){const c=s[y];if(c.href===l&&(!f||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${T}`))return;const _=document.createElement("link");if(_.rel=f?"stylesheet":Ae,f||(_.as="script"),_.crossOrigin="",_.href=l,d&&_.setAttribute("nonce",d),document.head.appendChild(_),f)return new Promise((y,c)=>{_.addEventListener("load",y),_.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(s){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=s,window.dispatchEvent(t),!t.defaultPrevented)throw s}return o.then(s=>{for(const t of s||[])t.status==="rejected"&&i(t.reason);return e().catch(i)})},qe={};var Te=H('<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>'),Le=H("<!> <!>",1);function je(r,e){fe(e,!0);let a=V(e,"components",23,()=>[]),n=V(e,"data_0",3,null),o=V(e,"data_1",3,null);me(()=>e.stores.page.set(e.page)),he(()=>{e.stores,e.page,e.constructors,a(),e.form,n(),o(),e.stores.page.notify()});let i=C(!1),s=C(!1),t=C(null);_e(()=>{const c=e.stores.page.subscribe(()=>{v(i)&&(S(s,!0),ve().then(()=>{S(t,document.title||"untitled page",!0)}))});return S(i,!0),c});const d=I(()=>e.constructors[1]);var l=Le(),f=x(l);{var T=c=>{const b=I(()=>e.constructors[0]);var E=B(),O=x(E);p(O,()=>v(b),(R,P)=>{U(P(R,{get data(){return n()},get form(){return e.form},get params(){return e.page.params},children:(h,Be)=>{var z=B(),K=x(z);p(K,()=>v(d),(M,Q)=>{U(Q(M,{get data(){return o()},get form(){return e.form},get params(){return e.page.params}}),k=>a()[1]=k,()=>{var k;return(k=a())==null?void 0:k[1]})}),w(h,z)},$$slots:{default:!0}}),h=>a()[0]=h,()=>{var h;return(h=a())==null?void 0:h[0]})}),w(c,E)},q=c=>{const b=I(()=>e.constructors[0]);var E=B(),O=x(E);p(O,()=>v(b),(R,P)=>{U(P(R,{get data(){return n()},get form(){return e.form},get params(){return e.page.params}}),h=>a()[0]=h,()=>{var h;return(h=a())==null?void 0:h[0]})}),w(c,E)};D(f,c=>{e.constructors[1]?c(T):c(q,-1)})}var _=ge(f,2);{var y=c=>{var b=Te(),E=be(b);{var O=R=>{var P=Re();Pe(()=>we(P,v(t))),w(R,P)};D(E,R=>{v(s)&&R(O)})}Ee(b),w(c,b)};D(_,c=>{v(i)&&c(y)})}w(r,l),ye()}const ze=ke(je),Fe=[()=>A(()=>import("../nodes/0.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.C6UjvApA.js","../chunks/CWj6FrbW.js","../chunks/TuGPYaVf.js","../chunks/BjY4dxcB.js","../chunks/DIEDQ_hk.js","../chunks/_PK_enp9.js","../chunks/ewK-93nZ.js","../chunks/C2FuqD3s.js","../assets/0.DHm19zMf.css","../nodes/1.duF3KASE.js","../nodes/2.BWOyrvG9.js","../assets/2.BNuGfmZP.css","../nodes/3.AtkoY52t.js","../assets/3.CTDprntu.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var F=r=>{throw TypeError(r)};var G=(r,e,a)=>e.has(r)||F("Cannot "+a);var u=(r,e,a)=>(G(r,e,"read from private field"),a?a.call(r):e.get(r)),L=(r,e,a)=>e.has(r)?F("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,a),j=(r,e,a,n)=>(G(r,e,"write to private field"),n?n.call(r,a):e.set(r,a),a);import{ai as N,ag as X,z as Z,h as $,aG as ee,aV as te,aP as re,aQ as W,j as ae,ah as se,aO as S,L as ne,a8 as v,af as oe,as as ie,a5 as ce,W as le,b3 as ue,au as de,aE as fe,b7 as me,b6 as he,az as _e,b1 as ve,a4 as x,aU as ge,w,aB as ye,aX as C,M as B,J as be,aK as Ee,a6 as H,b0 as Re,a$ as Pe,aR as we,b5 as I}from"../chunks/BjY4dxcB.js";import"../chunks/CWj6FrbW.js";import{B as Oe,i as D}from"../chunks/DIEDQ_hk.js";import{p as V,b as U}from"../chunks/C2FuqD3s.js";function p(r,e,a){var n;N&&(n=se,X());var o=new Oe(r);Z(()=>{var i=e()??null;if(N){var s=ee(n),t=s===ae,d=i!==null;if(t!==d){var l=te();re(l),o.anchor=l,W(!1),o.ensure(i,i&&(f=>a(f,i))),W(!0);return}}o.ensure(i,i&&(f=>a(f,i)))},$)}function ke(r){return class extends xe{constructor(e){super({component:r,...e})}}}var g,m;class xe{constructor(e){L(this,g);L(this,m);var i;var a=new Map,n=(s,t)=>{var d=de(t,!1,!1);return a.set(s,d),d};const o=new Proxy({...e.props||{},$$events:{}},{get(s,t){return v(a.get(t)??n(t,Reflect.get(s,t)))},has(s,t){return t===ne?!0:(v(a.get(t)??n(t,Reflect.get(s,t))),Reflect.has(s,t))},set(s,t,d){return S(a.get(t)??n(t,d),d),Reflect.set(s,t,d)}});j(this,m,(e.hydrate?oe:ie)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError})),(!((i=e==null?void 0:e.props)!=null&&i.$$host)||e.sync===!1)&&ce(),j(this,g,o.$$events);for(const s of Object.keys(u(this,m)))s==="$set"||s==="$destroy"||s==="$on"||le(this,s,{get(){return u(this,m)[s]},set(t){u(this,m)[s]=t},enumerable:!0});u(this,m).$set=s=>{Object.assign(o,s)},u(this,m).$destroy=()=>{ue(u(this,m))}}$set(e){u(this,m).$set(e)}$on(e,a){u(this,g)[e]=u(this,g)[e]||[];const n=(...o)=>a.call(this,...o);return u(this,g)[e].push(n),()=>{u(this,g)[e]=u(this,g)[e].filter(o=>o!==n)}}$destroy(){u(this,m).$destroy()}}g=new WeakMap,m=new WeakMap;const Ae="modulepreload",Se=function(r,e){return new URL(r,e).href},Y={},A=function(e,a,n){let o=Promise.resolve();if(a&&a.length>0){const s=document.getElementsByTagName("link"),t=document.querySelector("meta[property=csp-nonce]"),d=(t==null?void 0:t.nonce)||(t==null?void 0:t.getAttribute("nonce"));o=Promise.allSettled(a.map(l=>{if(l=Se(l,n),l in Y)return;Y[l]=!0;const f=l.endsWith(".css"),T=f?'[rel="stylesheet"]':"";if(!!n)for(let y=s.length-1;y>=0;y--){const c=s[y];if(c.href===l&&(!f||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${T}`))return;const _=document.createElement("link");if(_.rel=f?"stylesheet":Ae,f||(_.as="script"),_.crossOrigin="",_.href=l,d&&_.setAttribute("nonce",d),document.head.appendChild(_),f)return new Promise((y,c)=>{_.addEventListener("load",y),_.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(s){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=s,window.dispatchEvent(t),!t.defaultPrevented)throw s}return o.then(s=>{for(const t of s||[])t.status==="rejected"&&i(t.reason);return e().catch(i)})},qe={};var Te=H('<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>'),Le=H("<!> <!>",1);function je(r,e){fe(e,!0);let a=V(e,"components",23,()=>[]),n=V(e,"data_0",3,null),o=V(e,"data_1",3,null);me(()=>e.stores.page.set(e.page)),he(()=>{e.stores,e.page,e.constructors,a(),e.form,n(),o(),e.stores.page.notify()});let i=C(!1),s=C(!1),t=C(null);_e(()=>{const c=e.stores.page.subscribe(()=>{v(i)&&(S(s,!0),ve().then(()=>{S(t,document.title||"untitled page",!0)}))});return S(i,!0),c});const d=I(()=>e.constructors[1]);var l=Le(),f=x(l);{var T=c=>{const b=I(()=>e.constructors[0]);var E=B(),O=x(E);p(O,()=>v(b),(R,P)=>{U(P(R,{get data(){return n()},get form(){return e.form},get params(){return e.page.params},children:(h,Be)=>{var z=B(),K=x(z);p(K,()=>v(d),(M,Q)=>{U(Q(M,{get data(){return o()},get form(){return e.form},get params(){return e.page.params}}),k=>a()[1]=k,()=>{var k;return(k=a())==null?void 0:k[1]})}),w(h,z)},$$slots:{default:!0}}),h=>a()[0]=h,()=>{var h;return(h=a())==null?void 0:h[0]})}),w(c,E)},q=c=>{const b=I(()=>e.constructors[0]);var E=B(),O=x(E);p(O,()=>v(b),(R,P)=>{U(P(R,{get data(){return n()},get form(){return e.form},get params(){return e.page.params}}),h=>a()[0]=h,()=>{var h;return(h=a())==null?void 0:h[0]})}),w(c,E)};D(f,c=>{e.constructors[1]?c(T):c(q,-1)})}var _=ge(f,2);{var y=c=>{var b=Te(),E=be(b);{var O=R=>{var P=Re();Pe(()=>we(P,v(t))),w(R,P)};D(E,R=>{v(s)&&R(O)})}Ee(b),w(c,b)};D(_,c=>{v(i)&&c(y)})}w(r,l),ye()}const ze=ke(je),Fe=[()=>A(()=>import("../nodes/0.C6UjvApA.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url),()=>A(()=>import("../nodes/1.duF3KASE.js"),__vite__mapDeps([9,1,3,6]),import.meta.url),()=>A(()=>import("../nodes/2.BWOyrvG9.js"),__vite__mapDeps([10,1,2,3,4,6,11]),import.meta.url),()=>A(()=>import("../nodes/3.AtkoY52t.js"),__vite__mapDeps([12,1,2,3,4,5,6,7,13]),import.meta.url)],Ge=[],Ne={"/":[2],"/[sessionId]":[3]},J={handleError:({error:r})=>{console.error(r)},reroute:()=>{},transport:{}},Ce=Object.fromEntries(Object.entries(J.transport).map(([r,e])=>[r,e.decode])),We=Object.fromEntries(Object.entries(J.transport).map(([r,e])=>[r,e.encode])),Ye=!1,He=(r,e)=>Ce[r](e);export{He as decode,Ce as decoders,Ne as dictionary,We as encoders,Ye as hash,J as hooks,qe as matchers,Fe as nodes,ze as root,Ge as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,s as r}from"../chunks/ewK-93nZ.js";export{o as load_css,r as start};
|