@claude-sessions/web 0.4.7 → 0.4.8-beta.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/build/client/_app/immutable/assets/0.CAO2ssDt.css +1 -0
- package/build/client/_app/immutable/assets/0.CAO2ssDt.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CAO2ssDt.css.gz +0 -0
- package/build/client/_app/immutable/chunks/{DB1q-JFC.js → BWi4DUSP.js} +1 -1
- package/build/client/_app/immutable/chunks/{DB1q-JFC.js.br → BWi4DUSP.js.br} +0 -0
- package/build/client/_app/immutable/chunks/{DB1q-JFC.js.gz → BWi4DUSP.js.gz} +0 -0
- package/build/client/_app/immutable/chunks/CIVgrm-h.js +100 -0
- package/build/client/_app/immutable/chunks/CIVgrm-h.js.br +0 -0
- package/build/client/_app/immutable/chunks/CIVgrm-h.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D1duoKAw.js → CV88cyNb.js} +1 -1
- package/build/client/_app/immutable/chunks/CV88cyNb.js.br +0 -0
- package/build/client/_app/immutable/chunks/CV88cyNb.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{WK3b3g7j.js → DBydSc_k.js} +1 -1
- package/build/client/_app/immutable/chunks/DBydSc_k.js.br +0 -0
- package/build/client/_app/immutable/chunks/DBydSc_k.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DXCdBROZ.js +1 -0
- package/build/client/_app/immutable/chunks/DXCdBROZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DXCdBROZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dn1P-MHB.js +1 -0
- package/build/client/_app/immutable/chunks/Dn1P-MHB.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dn1P-MHB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{6j6qgi5m.js → tmOlV5v8.js} +1 -1
- package/build/client/_app/immutable/chunks/tmOlV5v8.js.br +0 -0
- package/build/client/_app/immutable/chunks/tmOlV5v8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{HCtei06b.js → xX_XT4gL.js} +1 -1
- package/build/client/_app/immutable/chunks/xX_XT4gL.js.br +0 -0
- package/build/client/_app/immutable/chunks/xX_XT4gL.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.8EIXmrxu.js → app.916GSB-q.js} +2 -2
- package/build/client/_app/immutable/entry/app.916GSB-q.js.br +0 -0
- package/build/client/_app/immutable/entry/app.916GSB-q.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BlKpwunw.js +1 -0
- package/build/client/_app/immutable/entry/start.BlKpwunw.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BlKpwunw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.C3-EWlLD.js → 0.BNXYVuau.js} +1 -1
- package/build/client/_app/immutable/nodes/0.BNXYVuau.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BNXYVuau.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.LTLF-xkJ.js → 1.DsXY_nT9.js} +1 -1
- package/build/client/_app/immutable/nodes/1.DsXY_nT9.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.DsXY_nT9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CZ0cjprV.js +4 -0
- package/build/client/_app/immutable/nodes/2.CZ0cjprV.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CZ0cjprV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.C2uGzWU7.js +10 -0
- package/build/client/_app/immutable/nodes/3.C2uGzWU7.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.C2uGzWU7.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/server/chunks/0-jdsum4C3.js +17 -0
- package/build/server/chunks/{0-Bmmq9ZM6.js.map → 0-jdsum4C3.js.map} +1 -1
- package/build/server/chunks/1-BYeUhsmD.js +9 -0
- package/build/server/chunks/{1-QC3Sx1LV.js.map → 1-BYeUhsmD.js.map} +1 -1
- package/build/server/chunks/2-DCTjRzoT.js +9 -0
- package/build/server/chunks/{2-Dw5NPnTj.js.map → 2-DCTjRzoT.js.map} +1 -1
- package/build/server/chunks/3-B9BSW5vF.js +9 -0
- package/build/server/chunks/{3-BcDPYoSg.js.map → 3-B9BSW5vF.js.map} +1 -1
- package/build/server/chunks/{Toast-AVuTocXd.js → Toast-DphhBJuq.js} +2 -2
- package/build/server/chunks/{Toast-AVuTocXd.js.map → Toast-DphhBJuq.js.map} +1 -1
- package/build/server/chunks/{_layout.svelte-DaSyc-mf.js → _layout.svelte-Ci8sOmOu.js} +3 -3
- package/build/server/chunks/{_layout.svelte-DaSyc-mf.js.map → _layout.svelte-Ci8sOmOu.js.map} +1 -1
- package/build/server/chunks/{_page.svelte-D0jFzJtD.js → _page.svelte-D_BOH21Z.js} +104 -27
- package/build/server/chunks/_page.svelte-D_BOH21Z.js.map +1 -0
- package/build/server/chunks/{_page.svelte-D3EVHdvH.js → _page.svelte-qf7I4k56.js} +5 -3
- package/build/server/chunks/_page.svelte-qf7I4k56.js.map +1 -0
- package/build/server/chunks/{_server.ts-DbJhWH7w.js → _server.ts-B1KT6hNX.js} +2 -2
- package/build/server/chunks/{_server.ts-DbJhWH7w.js.map → _server.ts-B1KT6hNX.js.map} +1 -1
- package/build/server/chunks/{_server.ts-kBggS0l1.js → _server.ts-B_dPERCt.js} +2 -2
- package/build/server/chunks/{_server.ts-kBggS0l1.js.map → _server.ts-B_dPERCt.js.map} +1 -1
- package/build/server/chunks/{_server.ts-C923Ajq5.js → _server.ts-C81u7vBe.js} +2 -2
- package/build/server/chunks/{_server.ts-C923Ajq5.js.map → _server.ts-C81u7vBe.js.map} +1 -1
- package/build/server/chunks/{_server.ts-27jrx6Uo.js → _server.ts-CJWvO9uu.js} +2 -2
- package/build/server/chunks/{_server.ts-27jrx6Uo.js.map → _server.ts-CJWvO9uu.js.map} +1 -1
- package/build/server/chunks/{_server.ts-ClQdpaTd.js → _server.ts-CTRA41QW.js} +3 -3
- package/build/server/chunks/{_server.ts-ClQdpaTd.js.map → _server.ts-CTRA41QW.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BthX-Q9z.js → _server.ts-CWet6xGL.js} +2 -2
- package/build/server/chunks/{_server.ts-BthX-Q9z.js.map → _server.ts-CWet6xGL.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DousfQCX.js → _server.ts-CapYucgb.js} +3 -3
- package/build/server/chunks/_server.ts-CapYucgb.js.map +1 -0
- package/build/server/chunks/_server.ts-CcSpo97g.js +26 -0
- package/build/server/chunks/_server.ts-CcSpo97g.js.map +1 -0
- package/build/server/chunks/{_server.ts-BhOezmyL.js → _server.ts-CqQ9rWXw.js} +2 -2
- package/build/server/chunks/{_server.ts-BhOezmyL.js.map → _server.ts-CqQ9rWXw.js.map} +1 -1
- package/build/server/chunks/{_server.ts-D3dUenaL.js → _server.ts-CvSLjZQw.js} +2 -2
- package/build/server/chunks/{_server.ts-D3dUenaL.js.map → _server.ts-CvSLjZQw.js.map} +1 -1
- package/build/server/chunks/{_server.ts-DtT_v20j.js → _server.ts-CxiEFRAq.js} +2 -2
- package/build/server/chunks/{_server.ts-DtT_v20j.js.map → _server.ts-CxiEFRAq.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BhQT5YuB.js → _server.ts-DOFfDn1r.js} +2 -2
- package/build/server/chunks/{_server.ts-BhQT5YuB.js.map → _server.ts-DOFfDn1r.js.map} +1 -1
- package/build/server/chunks/{_server.ts-SnEIAk-f.js → _server.ts-DcDUM1Kz.js} +2 -2
- package/build/server/chunks/{_server.ts-SnEIAk-f.js.map → _server.ts-DcDUM1Kz.js.map} +1 -1
- package/build/server/chunks/{_server.ts-D4gj35xA.js → _server.ts-DrOQIgve.js} +3 -3
- package/build/server/chunks/{_server.ts-D4gj35xA.js.map → _server.ts-DrOQIgve.js.map} +1 -1
- package/build/server/chunks/{_server.ts-CqC271AX.js → _server.ts-SD3IG0Nz.js} +2 -2
- package/build/server/chunks/{_server.ts-CqC271AX.js.map → _server.ts-SD3IG0Nz.js.map} +1 -1
- package/build/server/chunks/{_server.ts-BFl5HqTC.js → _server.ts-WHg0iN-X.js} +2 -2
- package/build/server/chunks/{_server.ts-BFl5HqTC.js.map → _server.ts-WHg0iN-X.js.map} +1 -1
- package/build/server/chunks/{_server.ts-Bz6R94Qf.js → _server.ts-fB5v4AVe.js} +2 -2
- package/build/server/chunks/{_server.ts-Bz6R94Qf.js.map → _server.ts-fB5v4AVe.js.map} +1 -1
- package/build/server/chunks/{index2-gxrJEKeb.js → index2-DXtV4Brk.js} +116 -4
- package/build/server/chunks/index2-DXtV4Brk.js.map +1 -0
- package/build/server/chunks/{session-CYkrEqv3.js → session-BBfQJrG5.js} +2 -2
- package/build/server/chunks/{session-CYkrEqv3.js.map → session-BBfQJrG5.js.map} +1 -1
- package/build/server/index.js +1 -1
- package/build/server/index.js.map +1 -1
- package/build/server/manifest.js +28 -21
- package/build/server/manifest.js.map +1 -1
- package/package.json +3 -3
- package/build/client/_app/immutable/assets/0.nXM4xjKW.css +0 -1
- package/build/client/_app/immutable/assets/0.nXM4xjKW.css.br +0 -0
- package/build/client/_app/immutable/assets/0.nXM4xjKW.css.gz +0 -0
- package/build/client/_app/immutable/chunks/6j6qgi5m.js.br +0 -0
- package/build/client/_app/immutable/chunks/6j6qgi5m.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BkKWBf8s.js +0 -1
- package/build/client/_app/immutable/chunks/BkKWBf8s.js.br +0 -0
- package/build/client/_app/immutable/chunks/BkKWBf8s.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CursEjUX.js +0 -1
- package/build/client/_app/immutable/chunks/CursEjUX.js.br +0 -0
- package/build/client/_app/immutable/chunks/CursEjUX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D1duoKAw.js.br +0 -0
- package/build/client/_app/immutable/chunks/D1duoKAw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/HCtei06b.js.br +0 -0
- package/build/client/_app/immutable/chunks/HCtei06b.js.gz +0 -0
- package/build/client/_app/immutable/chunks/WK3b3g7j.js.br +0 -0
- package/build/client/_app/immutable/chunks/WK3b3g7j.js.gz +0 -0
- package/build/client/_app/immutable/chunks/_v9tgGMR.js +0 -100
- package/build/client/_app/immutable/chunks/_v9tgGMR.js.br +0 -0
- package/build/client/_app/immutable/chunks/_v9tgGMR.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.8EIXmrxu.js.br +0 -0
- package/build/client/_app/immutable/entry/app.8EIXmrxu.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.B1RcmDxV.js +0 -1
- package/build/client/_app/immutable/entry/start.B1RcmDxV.js.br +0 -0
- package/build/client/_app/immutable/entry/start.B1RcmDxV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.C3-EWlLD.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.C3-EWlLD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.LTLF-xkJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.LTLF-xkJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.JKvSvrXU.js +0 -4
- package/build/client/_app/immutable/nodes/2.JKvSvrXU.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.JKvSvrXU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.QvG7KcU-.js +0 -8
- package/build/client/_app/immutable/nodes/3.QvG7KcU-.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.QvG7KcU-.js.gz +0 -0
- package/build/server/chunks/0-Bmmq9ZM6.js +0 -17
- package/build/server/chunks/1-QC3Sx1LV.js +0 -9
- package/build/server/chunks/2-Dw5NPnTj.js +0 -9
- package/build/server/chunks/3-BcDPYoSg.js +0 -9
- package/build/server/chunks/_page.svelte-D0jFzJtD.js.map +0 -1
- package/build/server/chunks/_page.svelte-D3EVHdvH.js.map +0 -1
- package/build/server/chunks/_server.ts-DousfQCX.js.map +0 -1
- package/build/server/chunks/index2-gxrJEKeb.js.map +0 -1
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as I,M as Y,N as F,O as C,g as p,P as K,Q as $,b as y,R as k,S,T as q,j as R,U as O,V as z,l as w,w as A,W as G,X as Z,k as j,Y as Q,Z as V,_ as W,a0 as X,v as H,q as T,x as J,K as ee,a1 as re,z as D,a2 as M,a3 as se,a4 as N,a5 as te,a6 as ae,a7 as ne,a as ie,a8 as fe,a9 as ue,F as ce,aa as oe,ab as de,ac as le,ad as he,ae as _e,af as ve,ag as be}from"./
|
|
1
|
+
import{L as I,M as Y,N as F,O as C,g as p,P as K,Q as $,b as y,R as k,S,T as q,j as R,U as O,V as z,l as w,w as A,W as G,X as Z,k as j,Y as Q,Z as V,_ as W,a0 as X,v as H,q as T,x as J,K as ee,a1 as re,z as D,a2 as M,a3 as se,a4 as N,a5 as te,a6 as ae,a7 as ne,a as ie,a8 as fe,a9 as ue,F as ce,aa as oe,ab as de,ac as le,ad as he,ae as _e,af as ve,ag as be}from"./BWi4DUSP.js";let b=!1,P=Symbol();function Pe(r,e,t){const s=t[e]??={store:null,source:Y(void 0),unsubscribe:I};if(s.store!==r&&!(P in t))if(s.unsubscribe(),s.store=r??null,r==null)s.source.v=void 0,s.unsubscribe=I;else{var n=!0;s.unsubscribe=F(r,i=>{n?s.source.v=i:y(s.source,i)}),n=!1}return r&&P in t?C(r):p(s.source)}function me(){const r={};function e(){K(()=>{for(var t in r)r[t].unsubscribe();$(r,P,{enumerable:!1,value:!0})})}return[r,e]}function pe(r){var e=b;try{return b=!1,[r(),b]}finally{b=e}}class ge{anchor;#r=new Map;#s=new Map;#e=new Map;#t=new Set;#a=!0;constructor(e,t=!0){this.anchor=e,this.#a=t}#n=e=>{if(this.#r.has(e)){var t=this.#r.get(e),s=this.#s.get(t);if(s)k(s),this.#t.delete(t);else{var n=this.#e.get(t);n&&(this.#s.set(t,n.effect),this.#e.delete(t),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),s=n.effect)}for(const[i,u]of this.#r){if(this.#r.delete(i),i===e)break;const a=this.#e.get(u);a&&(S(a.effect),this.#e.delete(u))}for(const[i,u]of this.#s){if(i===t||this.#t.has(i))continue;const a=()=>{if(Array.from(this.#r.values()).includes(i)){var o=document.createDocumentFragment();G(u,o),o.append(R()),this.#e.set(i,{effect:u,fragment:o})}else S(u);this.#t.delete(i),this.#s.delete(i)};this.#a||!s?(this.#t.add(i),q(u,a,!1)):a()}}};#i=e=>{this.#r.delete(e);const t=Array.from(this.#r.values());for(const[s,n]of this.#e)t.includes(s)||(S(n.effect),this.#e.delete(s))};ensure(e,t){var s=z,n=Z();if(t&&!this.#s.has(e)&&!this.#e.has(e))if(n){var i=document.createDocumentFragment(),u=R();i.append(u),this.#e.set(e,{effect:O(()=>t(u)),fragment:i})}else this.#s.set(e,O(()=>t(this.anchor)));if(this.#r.set(s,e),n){for(const[a,f]of this.#s)a===e?s.unskip_effect(f):s.skip_effect(f);for(const[a,f]of this.#e)a===e?s.unskip_effect(f.effect):s.skip_effect(f.effect);s.oncommit(this.#n),s.ondiscard(this.#i)}else w&&(this.anchor=A),this.#n(s)}}function Ee(r,e,t=!1){var s;w&&(s=A,Q());var n=new ge(r),i=t?V:0;function u(a,f){if(w){var o=W(s);if(a!==parseInt(o.substring(1))){var d=X();H(d),n.anchor=d,T(!1),n.ensure(a,f),T(!0);return}}n.ensure(a,f)}j(()=>{var a=!1;e((f,o=0)=>{a=!0,u(o,f)}),a||u(-1,null)},i)}function x(r,e){return r===e||r?.[N]===e}function Ie(r={},e,t,s){var n=J.r,i=M;return ee(()=>{var u,a;return re(()=>{u=a,a=[],D(()=>{r!==t(...a)&&(e(r,...a),u&&x(t(...u),r)&&e(null,...u))})}),()=>{let f=i;for(;f!==n&&f.parent!==null&&f.parent.f&se;)f=f.parent;const o=()=>{a&&x(t(...a),r)&&e(null,...a)},d=f.teardown;f.teardown=()=>{o(),d?.()}}}),r}const Se={get(r,e){if(!r.exclude.includes(e))return r.props[e]},set(r,e){return!1},getOwnPropertyDescriptor(r,e){if(!r.exclude.includes(e)&&e in r.props)return{enumerable:!0,configurable:!0,value:r.props[e]}},has(r,e){return r.exclude.includes(e)?!1:e in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(e=>!r.exclude.includes(e))}};function Re(r,e,t){return new Proxy({props:r,exclude:e},Se)}function Oe(r,e,t,s){var n=!le||(t&he)!==0,i=(t&de)!==0,u=(t&ve)!==0,a=s,f=!0,o=()=>(f&&(f=!1,a=u?D(s):s),a);let d;if(i){var L=N in r||be in r;d=te(r,e)?.set??(L&&e in r?c=>r[e]=c:void 0)}var h,m=!1;i?[h,m]=pe(()=>r[e]):h=r[e],h===void 0&&s!==void 0&&(h=o(),d&&(n&&ae(),d(h)));var l;if(n?l=()=>{var c=r[e];return c===void 0?o():(f=!0,c)}:l=()=>{var c=r[e];return c!==void 0&&(a=void 0),c===void 0?a:c},n&&(t&ne)===0)return l;if(d){var B=r.$$legacy;return(function(c,v){return arguments.length>0?((!n||!v||B||m)&&d(v?l():c),c):l()})}var g=!1,_=((t&_e)!==0?ce:oe)(()=>(g=!1,l()));i&&p(_);var U=M;return(function(c,v){if(arguments.length>0){const E=v?p(_):n&&i?ie(c):c;return y(_,E),g=!0,a!==void 0&&(a=E),c}return fe&&g||(U.f&ue)!==0?_.v:p(_)})}export{ge as B,me as a,Ie as b,Ee as i,Oe as p,Re as r,Pe as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{ak as ne,g as G,al as J,a1 as se,z as ae,am as Y,an as N,w as u,l as _,a2 as m,ao as $,k as ie,Y as Q,ap as oe,aq as j,U as y,j as S,T as x,V as q,W as le,ar as ue,as as L,at as M,au as z,av as fe,aw as ce,ax as K,x as X,ay as de,S as P,v as A,az as he,a0 as _e,aA as k,Z as pe,E as ve,aB as ge,aC as me,P as ye,aD as be,Q as Ee,aE as Te,m as R,aF as we,aG as Ne,aH as Se,aI as Ae,aJ as Re,aK as ke,aL as C,C as Z,ah as Oe,n as De,aM as F,q as O,aN as Le,aO as Me,aP as Ie,aQ as xe,p as Pe,aR as Ce,aS as Fe,c as Ve}from"./
|
|
1
|
+
import{ak as ne,g as G,al as J,a1 as se,z as ae,am as Y,an as N,w as u,l as _,a2 as m,ao as $,k as ie,Y as Q,ap as oe,aq as j,U as y,j as S,T as x,V as q,W as le,ar as ue,as as L,at as M,au as z,av as fe,aw as ce,ax as K,x as X,ay as de,S as P,v as A,az as he,a0 as _e,aA as k,Z as pe,E as ve,aB as ge,aC as me,P as ye,aD as be,Q as Ee,aE as Te,m as R,aF as we,aG as Ne,aH as Se,aI as Ae,aJ as Re,aK as ke,aL as C,C as Z,ah as Oe,n as De,aM as F,q as O,aN as Le,aO as Me,aP as Ie,aQ as xe,p as Pe,aR as Ce,aS as Fe,c as Ve}from"./BWi4DUSP.js";function He(t){let e=0,r=J(0),s;return()=>{ne()&&(G(r),se(()=>(e===0&&(s=ae(()=>t(()=>Y(r)))),e+=1,()=>{N(()=>{e-=1,e===0&&(s?.(),s=void 0,Y(r))})})))}}var We=pe|ve;function Be(t,e,r,s){new Ye(t,e,r,s)}class Ye{parent;is_pending=!1;transform_error;#t;#_=_?u:null;#s;#u;#e;#a=null;#r=null;#n=null;#i=null;#f=0;#l=0;#c=!1;#p=new Set;#v=new Set;#o=null;#y=He(()=>(this.#o=J(this.#f),()=>{this.#o=null}));constructor(e,r,s,a){this.#t=e,this.#s=r,this.#u=n=>{var i=m;i.b=this,i.f|=$,s(n)},this.parent=m.b,this.transform_error=a??this.parent?.transform_error??(n=>n),this.#e=ie(()=>{if(_){const n=this.#_;Q();const i=n.data===oe;if(n.data.startsWith(j)){const o=JSON.parse(n.data.slice(j.length));this.#E(o)}else i?this.#T():this.#b()}else this.#g()},We),_&&(this.#t=u)}#b(){try{this.#a=y(()=>this.#u(this.#t))}catch(e){this.error(e)}}#E(e){const r=this.#s.failed;r&&(this.#n=y(()=>{r(this.#t,()=>e,()=>()=>{})}))}#T(){const e=this.#s.pending;e&&(this.is_pending=!0,this.#r=y(()=>e(this.#t)),N(()=>{var r=this.#i=document.createDocumentFragment(),s=S();r.append(s),this.#a=this.#h(()=>y(()=>this.#u(s))),this.#l===0&&(this.#t.before(r),this.#i=null,x(this.#r,()=>{this.#r=null}),this.#d(q))}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#l=0,this.#f=0,this.#a=y(()=>{this.#u(this.#t)}),this.#l>0){var e=this.#i=document.createDocumentFragment();le(this.#a,e);const r=this.#s.pending;this.#r=y(()=>r(this.#t))}else this.#d(q)}catch(r){this.error(r)}}#d(e){this.is_pending=!1,e.transfer_effects(this.#p,this.#v)}defer_effect(e){ue(e,this.#p,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#s.pending}#h(e){var r=m,s=K,a=X;L(this.#e),M(this.#e),z(this.#e.ctx);try{return fe.ensure(),e()}catch(n){return ce(n),null}finally{L(r),M(s),z(a)}}#m(e,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(e,r);return}this.#l+=e,this.#l===0&&(this.#d(r),this.#r&&x(this.#r,()=>{this.#r=null}),this.#i&&(this.#t.before(this.#i),this.#i=null))}update_pending_count(e,r){this.#m(e,r),this.#f+=e,!(!this.#o||this.#c)&&(this.#c=!0,N(()=>{this.#c=!1,this.#o&&de(this.#o,this.#f)}))}get_effect_pending(){return this.#y(),G(this.#o)}error(e){var r=this.#s.onerror;let s=this.#s.failed;if(!r&&!s)throw e;this.#a&&(P(this.#a),this.#a=null),this.#r&&(P(this.#r),this.#r=null),this.#n&&(P(this.#n),this.#n=null),_&&(A(this.#_),he(),A(_e()));var a=!1,n=!1;const i=()=>{if(a){me();return}a=!0,n&&ge(),this.#n!==null&&x(this.#n,()=>{this.#n=null}),this.#h(()=>{this.#g()})},f=o=>{try{n=!0,r?.(o,i),n=!1}catch(l){k(l,this.#e&&this.#e.parent)}s&&(this.#n=this.#h(()=>{try{return y(()=>{var l=m;l.b=this,l.f|=$,s(this.#t,()=>o,()=>i)})}catch(l){return k(l,this.#e.parent),null}}))};N(()=>{var o;try{o=this.transform_error(e)}catch(l){k(l,this.#e&&this.#e.parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(f,l=>k(l,this.#e&&this.#e.parent)):f(o)})}}function et(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const $e=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function tt(t){return $e.includes(t)}const je={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function rt(t){return t=t.toLowerCase(),je[t]??t}const qe=["touchstart","touchmove"];function ze(t){return qe.includes(t)}const w=Symbol("events"),ee=new Set,V=new Set;function Ue(t,e,r,s={}){function a(n){if(s.capture||H.call(e,n),!n.cancelBubble)return be(()=>r?.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?N(()=>{e.addEventListener(t,a,s)}):e.addEventListener(t,a,s),a}function nt(t,e,r,s,a){var n={capture:s,passive:a},i=Ue(t,e,r,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ye(()=>{e.removeEventListener(t,i,n)})}function st(t,e,r){(e[w]??={})[t]=r}function at(t){for(var e=0;e<t.length;e++)ee.add(t[e]);for(var r of V)r(t)}let U=null;function H(t){var e=this,r=e.ownerDocument,s=t.type,a=t.composedPath?.()||[],n=a[0]||t.target;U=t;var i=0,f=U===t&&t[w];if(f){var o=a.indexOf(f);if(o!==-1&&(e===document||e===window)){t[w]=e;return}var l=a.indexOf(e);if(l===-1)return;o<=l&&(i=o)}if(n=a[i]||t.target,n!==e){Ee(t,"currentTarget",{configurable:!0,get(){return n||r}});var b=K,T=m;M(null),L(null);try{for(var g,d=[];n!==null;){var c=n.assignedSlot||n.parentNode||n.host||null;try{var h=n[w]?.[s];h!=null&&(!n.disabled||t.target===n)&&h.call(n,t)}catch(p){g?d.push(p):g=p}if(t.cancelBubble||c===e||c===null)break;n=c}if(g){for(let p of d)queueMicrotask(()=>{throw p});throw g}}finally{t[w]=e,delete t.currentTarget,M(b),L(T)}}}const Ge=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Je(t){return Ge?.createHTML(t)??t}function te(t){var e=Te("template");return e.innerHTML=Je(t.replaceAll("<!>","<!---->")),e.content}function v(t,e){var r=m;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function it(t,e){var r=(e&Ne)!==0,s=(e&Se)!==0,a,n=!t.startsWith("<!>");return()=>{if(_)return v(u,null),u;a===void 0&&(a=te(n?t:"<!>"+t),r||(a=R(a)));var i=s||we?document.importNode(a,!0):a.cloneNode(!0);if(r){var f=R(i),o=i.lastChild;v(f,o)}else v(i,i);return i}}function Qe(t,e,r="svg"){var s=!t.startsWith("<!>"),a=`<${r}>${s?t:"<!>"+t}</${r}>`,n;return()=>{if(_)return v(u,null),u;if(!n){var i=te(a),f=R(i);n=R(f)}var o=n.cloneNode(!0);return v(o,o),o}}function ot(t,e){return Qe(t,e,"svg")}function lt(t=""){if(!_){var e=S(t+"");return v(e,e),e}var r=u;return r.nodeType!==Re?(r.before(r=S()),A(r)):ke(r),v(r,r),r}function ut(){if(_)return v(u,null),u;var t=document.createDocumentFragment(),e=document.createComment(""),r=S();return t.append(e,r),v(e,r),t}function ft(t,e){if(_){var r=m;((r.f&Ae)===0||r.nodes.end===null)&&(r.nodes.end=u),Q();return}t!==null&&t.before(e)}function ct(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t.__t??=t.nodeValue)&&(t.__t=r,t.nodeValue=`${r}`)}function Ke(t,e){return re(t,e)}function dt(t,e){C(),e.intro=e.intro??!1;const r=e.target,s=_,a=u;try{for(var n=R(r);n&&(n.nodeType!==Z||n.data!==Oe);)n=De(n);if(!n)throw F;O(!0),A(n);const i=re(t,{...e,anchor:n});return O(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
|
|
2
2
|
`).some(f=>f.startsWith("https://svelte.dev/e/")))throw i;return i!==F&&console.warn("Failed to hydrate: ",i),e.recover===!1&&Le(),C(),Me(r),O(!1),Ke(t,e)}finally{O(s),A(a)}}const D=new Map;function re(t,{target:e,anchor:r,props:s={},events:a,context:n,intro:i=!0,transformError:f}){C();var o=void 0,l=Ie(()=>{var b=r??e.appendChild(S());Be(b,{pending:()=>{}},d=>{Pe({});var c=X;if(n&&(c.c=n),a&&(s.$$events=a),_&&v(d,null),o=t(d,s)||{},_&&(m.nodes.end=u,u===null||u.nodeType!==Z||u.data!==Ce))throw Fe(),F;Ve()},f);var T=new Set,g=d=>{for(var c=0;c<d.length;c++){var h=d[c];if(!T.has(h)){T.add(h);var p=ze(h);for(const I of[e,document]){var E=D.get(I);E===void 0&&(E=new Map,D.set(I,E));var B=E.get(h);B===void 0?(I.addEventListener(h,H,{passive:p}),E.set(h,1)):E.set(h,B+1)}}}};return g(xe(ee)),V.add(g),()=>{for(var d of T)for(const p of[e,document]){var c=D.get(p),h=c.get(d);--h==0?(p.removeEventListener(d,H),c.delete(d),c.size===0&&D.delete(p)):c.set(d,h)}V.delete(g),b!==r&&b.parentNode?.removeChild(b)}});return W.set(o,l),o}let W=new WeakMap;function ht(t,e){const r=W.get(t);return r?(W.delete(t),r(e)):Promise.resolve()}const Xe="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Xe);export{ft as a,st as b,ot as c,at as d,nt as e,it as f,ut as g,dt as h,et as i,Ue as j,tt as k,Ke as m,rt as n,ct as s,lt as t,ht as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as A,o as b,s as l,g as c,b as u}from"./BWi4DUSP.js";new URL("sveltekit-internal://");function j(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function G(t){return t.split("%25").map(decodeURI).join("%25")}function Y(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function q({href:t}){return t.split("#")[0]}function U(...t){let e=5381;for(const n of t)if(typeof n=="string"){let s=n.length;for(;s;)e=e*33^n.charCodeAt(--s)}else if(ArrayBuffer.isView(n)){const s=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=s.length;for(;r;)e=e*33^s[--r]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}new TextEncoder;new TextDecoder;function x(t){const e=atob(t),n=new Uint8Array(e.length);for(let s=0;s<e.length;s++)n[s]=e.charCodeAt(s);return n}const I=window.fetch;window.fetch=(t,e)=>((t instanceof Request?t.method:e?.method||"GET")!=="GET"&&h.delete(_(t)),I(t,e));const h=new Map;function D(t,e){const n=_(t,e),s=document.querySelector(n);if(s?.textContent){s.remove();let{body:r,...i}=JSON.parse(s.textContent);const a=s.getAttribute("data-ttl");return a&&h.set(n,{body:r,init:i,ttl:1e3*Number(a)}),s.getAttribute("data-b64")!==null&&(r=x(r)),Promise.resolve(new Response(r,i))}return window.fetch(t,e)}function H(t,e,n){if(h.size>0){const s=_(t,n),r=h.get(s);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);h.delete(s)}}return window.fetch(e,n)}function _(t,e){let s=`script[data-sveltekit-fetched][data-url=${JSON.stringify(t instanceof Request?t.url:t)}]`;if(e?.headers||e?.body){const r=[];e.headers&&r.push([...new Headers(e.headers)].join(",")),e.body&&(typeof e.body=="string"||ArrayBuffer.isView(e.body))&&r.push(e.body),s+=`[data-hash="${U(...r)}"]`}return s}const N=globalThis.__sveltekit_6i2xx5?.base??"",L=globalThis.__sveltekit_6i2xx5?.assets??N??"",O="1774802035036",K="sveltekit:snapshot",B="sveltekit:scroll",W="sveltekit:states",X="sveltekit:pageurl",z="sveltekit:history",J="sveltekit:navigation",w={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},R=location.origin;function M(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const n=document.getElementsByTagName("base");e=n.length?n[0].href:document.URL}return new URL(t,e)}function F(){return{x:pageXOffset,y:pageYOffset}}function d(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const v={...w,"":w.hover};function S(t){let e=t.assignedSlot??t.parentNode;return e?.nodeType===11&&(e=e.host),e}function Q(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=S(t)}}function Z(t,e,n){let s;try{if(s=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI),n&&s.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";s.hash=`#${o}${s.hash}`}}catch{}const r=t instanceof SVGAElement?t.target.baseVal:t.target,i=!s||!!r||$(s,e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),a=s?.origin===R&&t.hasAttribute("download");return{url:s,external:i,target:r,download:a}}function ee(t){let e=null,n=null,s=null,r=null,i=null,a=null,o=t;for(;o&&o!==document.documentElement;)s===null&&(s=d(o,"preload-code")),r===null&&(r=d(o,"preload-data")),e===null&&(e=d(o,"keepfocus")),n===null&&(n=d(o,"noscroll")),i===null&&(i=d(o,"reload")),a===null&&(a=d(o,"replacestate")),o=S(o);function f(E){switch(E){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:v[s??"off"],preload_data:v[r??"off"],keepfocus:f(e),noscroll:f(n),reload:f(i),replace_state:f(a)}}function te(t){const e=A(t);let n=!0;function s(){n=!0,e.update(a=>a)}function r(a){n=!1,e.set(a)}function i(a){let o;return e.subscribe(f=>{(o===void 0||n&&f!==o)&&a(o=f)})}return{notify:s,set:r,subscribe:i}}const k={v:()=>{}};function ne(){const{set:t,subscribe:e}=A(!1);let n;async function s(){clearTimeout(n);try{const r=await fetch(`${L}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==O;return a&&(t(!0),k.v(),clearTimeout(n)),a}catch{return!1}}return{subscribe:e,check:s}}function $(t,e,n){return t.origin!==R||!t.pathname.startsWith(e)?!0:n?t.pathname!==location.pathname:!1}function se(t){}const T=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...T];const C=new Set([...T]);[...C];let p,m,g;const P=b.toString().includes("$$")||/function \w+\(\) \{\}/.test(b.toString()),y="a:";P?(p={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(y)},m={current:null},g={current:!1}):(p=new class{#e=l({});get data(){return c(this.#e)}set data(e){u(this.#e,e)}#t=l(null);get form(){return c(this.#t)}set form(e){u(this.#t,e)}#n=l(null);get error(){return c(this.#n)}set error(e){u(this.#n,e)}#s=l({});get params(){return c(this.#s)}set params(e){u(this.#s,e)}#r=l({id:null});get route(){return c(this.#r)}set route(e){u(this.#r,e)}#a=l({});get state(){return c(this.#a)}set state(e){u(this.#a,e)}#o=l(-1);get status(){return c(this.#o)}set status(e){u(this.#o,e)}#i=l(new URL(y));get url(){return c(this.#i)}set url(e){u(this.#i,e)}},m=new class{#e=l(null);get current(){return c(this.#e)}set current(e){u(this.#e,e)}},g=new class{#e=l(!1);get current(){return c(this.#e)}set current(e){u(this.#e,e)}},k.v=()=>g.current=!0);function ie(t){Object.assign(p,t)}export{z as H,J as N,X as P,W as S,ee as a,N as b,ne as c,q as d,te as e,Q as f,Z as g,Y as h,$ as i,j,w as k,G as l,K as m,m as n,R as o,p,H as q,M as r,F as s,D as t,B as u,ie as v,se as w};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aj as G,I as at,bn as nt}from"./BWi4DUSP.js";import{c as rt,H as C,N as M,r as me,i as ge,b as R,s as j,p as x,n as fe,f as $e,g as ue,a as J,d as ie,S as Ne,P as ot,e as Ae,h as st,j as it,o as De,k as q,l as lt,m as qe,q as ct,t as ft,u as Ke,v as ut}from"./DXCdBROZ.js";class ve{constructor(t,a){this.status=t,typeof a=="string"?this.body={message:a}:a?this.body=a:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class we{constructor(t,a){this.status=t,this.location=a}}class ye extends Error{constructor(t,a,n){super(n),this.status=t,this.text=a}}const dt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function ht(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${_t(e).map(n=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(n);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(n);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!n)return;const o=n.split(/\[(.+?)\](?!\])/);return"/"+o.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return le(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return le(String.fromCharCode(...l.slice(2).split("-").map(m=>parseInt(m,16))));const u=dt.exec(l),[,p,v,h,f]=u;return t.push({name:h,matcher:f,optional:!!p,rest:!!v,chained:v?c===1&&o[0]==="":!1}),v?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return le(l)}).join("")}).join("")}/?$`),params:t}}function pt(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function _t(e){return e.slice(1).split("/").filter(pt)}function mt(e,t,a){const n={},r=e.slice(1),s=r.filter(i=>i!==void 0);let o=0;for(let i=0;i<t.length;i+=1){const l=t[i];let c=r[i-o];if(l.chained&&l.rest&&o&&(c=r.slice(i-o,i+1).filter(u=>u).join("/"),o=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||a[l.matcher](c)){n[l.name]=c;const u=t[i+1],p=r[i+1];u&&!u.rest&&u.optional&&p&&l.chained&&(o=0),!u&&!p&&Object.keys(n).length===s.length&&(o=0);continue}if(l.optional&&l.chained){o++;continue}return}if(!o)return n}function le(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function gt({nodes:e,server_loads:t,dictionary:a,matchers:n}){const r=new Set(t);return Object.entries(a).map(([i,[l,c,u]])=>{const{pattern:p,params:v}=ht(i),h={id:i,exec:f=>{const m=p.exec(f);if(m)return mt(m,v,n)},errors:[1,...u||[]].map(f=>e[f]),layouts:[0,...c||[]].map(o),leaf:s(l)};return h.errors.length=h.layouts.length=Math.max(h.errors.length,h.layouts.length),h});function s(i){const l=i<0;return l&&(i=~i),[l,e[i]]}function o(i){return i===void 0?i:[r.has(i),e[i]]}}function Fe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ie(e,t,a=JSON.stringify){const n=a(t);try{sessionStorage[e]=n}catch{}}function vt(e){return e.filter(t=>t!=null)}function be(e){return e instanceof ve||e instanceof ye?e.status:500}function wt(e){return e instanceof ye?e.text:"Internal Error"}const yt=new Set(["icon","shortcut icon","apple-touch-icon"]);let K=null;const T=Fe(Ke)??{},V=Fe(qe)??{},I={url:Ae({}),page:Ae({}),navigating:at(null),updated:rt()};function Ee(e){T[e]=j()}function bt(e,t){let a=e+1;for(;T[a];)delete T[a],a+=1;for(a=t+1;V[a];)delete V[a],a+=1}function H(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function Be(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(R||"/");e&&await e.update()}}function Te(){}let ke,de,X,U,he,y;const Q=[],Z=[];let L=null;function pe(){L?.fork?.then(e=>e?.discard()),L=null}const W=new Map,Me=new Set,Et=new Set,B=new Set;let g={branch:[],error:null,url:null},Ve=!1,ee=!1,Oe=!0,Y=!1,F=!1,He=!1,Se=!1,Ye,w,S,O;const te=new Set,je=new Map;async function Ft(e,t,a){globalThis.__sveltekit_6i2xx5?.data&&globalThis.__sveltekit_6i2xx5.data,document.URL!==location.href&&(location.href=location.href),y=e,await e.hooks.init?.(),ke=gt(e),U=document.documentElement,he=t,de=e.nodes[0],X=e.nodes[1],de(),X(),w=history.state?.[C],S=history.state?.[M],w||(w=S=Date.now(),history.replaceState({...history.state,[C]:w,[M]:S},""));const n=T[w];function r(){n&&(history.scrollRestoration="manual",scrollTo(n.x,n.y))}a?(r(),await Ct(he,a)):(await $({type:"enter",url:me(y.hash?Dt(new URL(location.href)):location.href),replace_state:!0}),r()),jt()}function kt(){Q.length=0,Se=!1}function ze(e){Z.some(t=>t?.snapshot)&&(V[e]=Z.map(t=>t?.snapshot?.capture()))}function We(e){V[e]?.forEach((t,a)=>{Z[a]?.snapshot?.restore(t)})}function Ce(){Ee(w),Ie(Ke,T),ze(S),Ie(qe,V)}async function Ge(e,t,a,n){let r;t.invalidateAll&&pe(),await $({type:"goto",url:me(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:a,nav_token:n,accept:()=>{t.invalidateAll&&(Se=!0,r=[...je.keys()]),t.invalidate&&t.invalidate.forEach(Ot)}}),t.invalidateAll&&G().then(G).then(()=>{je.forEach(({resource:s},o)=>{r?.includes(o)&&s.refresh?.()})})}async function St(e){if(e.id!==L?.id){pe();const t={};te.add(t),L={id:e.id,token:t,promise:Xe({...e,preload:t}).then(a=>(te.delete(t),a.type==="loaded"&&a.state.error&&pe(),a)),fork:null}}return L.promise}async function ce(e){const t=(await re(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(a=>a[1]()))}async function Je(e,t,a){const n={params:g.params,route:{id:g.route?.id??null},url:new URL(location.href)};g={...e.state,nav:n};const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(x,e.props.page),Ye=new y.root({target:t,props:{...e.props,stores:I,components:Z},hydrate:a,sync:!1,transformError:void 0}),await Promise.resolve(),We(S),a){const s={from:null,to:{...n,scroll:T[w]??j()},willUnload:!1,type:"enter",complete:Promise.resolve()};B.forEach(o=>o(s))}ee=!0}async function ae({url:e,params:t,branch:a,errors:n,status:r,error:s,route:o,form:i}){let l="never";if(R&&(e.pathname===R||e.pathname===R+"/"))l="always";else for(const f of a)f?.slash!==void 0&&(l=f.slash);e.pathname=it(e.pathname,l),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:a,error:s,route:o},props:{constructors:vt(a).map(f=>f.node.component),page:Pe(x)}};i!==void 0&&(c.props.form=i);let u={},p=!x,v=0;for(let f=0;f<Math.max(a.length,g.branch.length);f+=1){const m=a[f],_=g.branch[f];m?.data!==_?.data&&(p=!0),m&&(u={...u,...m.data},p&&(c.props[`data_${v}`]=u),v+=1)}return(!g.url||e.href!==g.url.href||g.error!==s||i!==void 0&&i!==x.form||p)&&(c.props.page={error:s,params:t,route:{id:o?.id??null},state:{},status:r,url:new URL(e),form:i??null,data:p?u:x.data}),c}async function xe({loader:e,parent:t,url:a,params:n,route:r,server_data_node:s}){let o=null;const i={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:s,universal:l.universal?.load?{type:"data",data:o,uses:i}:null,data:o??s?.data??null,slash:l.universal?.trailingSlash??s?.slash}}function xt(e,t,a){let n=e instanceof Request?e.url:e;const r=new URL(n,a);r.origin===a.origin&&(n=r.href.slice(a.origin.length));const s=ee?ct(n,r.href,t):ft(n,t);return{resolved:r,promise:s}}function Rt(e,t,a,n,r,s){if(Se)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&a)return!0;for(const o of r.search_params)if(n.has(o))return!0;for(const o of r.params)if(s[o]!==g.params[o])return!0;for(const o of r.dependencies)if(Q.some(i=>i(new URL(o))))return!0;return!1}function Re(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Lt(e,t){if(!e)return new Set(t.searchParams.keys());const a=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const n of a){const r=e.searchParams.getAll(n),s=t.searchParams.getAll(n);r.every(o=>s.includes(o))&&s.every(o=>r.includes(o))&&a.delete(n)}return a}function Ut({error:e,url:t,route:a,params:n}){return{type:"loaded",state:{error:e,url:t,route:a,params:n,branch:[]},props:{page:Pe(x),constructors:[]}}}async function Xe({id:e,invalidating:t,url:a,params:n,route:r,preload:s}){if(L?.id===e)return te.delete(L.token),L.promise;const{errors:o,layouts:i,leaf:l}=r,c=[...i,l];o.forEach(_=>_?.().catch(()=>{})),c.forEach(_=>_?.[1]().catch(()=>{}));const u=g.url?e!==ne(g.url):!1,p=g.route?r.id!==g.route.id:!1,v=Lt(g.url,a);let h=!1;const f=c.map(async(_,d)=>{if(!_)return;const E=g.branch[d];return _[1]===E?.loader&&!Rt(h,p,u,v,E.universal?.uses,n)?E:(h=!0,xe({loader:_[1],url:a,params:n,route:r,parent:async()=>{const P={};for(let A=0;A<d;A+=1)Object.assign(P,(await f[A])?.data);return P},server_data_node:Re(_[0]?{type:"skip"}:null,_[0]?E?.server:void 0)}))});for(const _ of f)_.catch(()=>{});const m=[];for(let _=0;_<c.length;_+=1)if(c[_])try{m.push(await f[_])}catch(d){if(d instanceof we)return{type:"redirect",location:d.location};if(te.has(s))return Ut({error:await z(d,{params:n,url:a,route:{id:r.id}}),url:a,params:n,route:r});let E=be(d),k;if(d instanceof ve)k=d.body;else{if(await I.updated.check())return await Be(),await H(a);k=await z(d,{params:n,url:a,route:{id:r.id}})}const P=await Pt(_,m,o);return P?ae({url:a,params:n,branch:m.slice(0,P.idx).concat(P.node),errors:o,status:E,error:k,route:r}):await Ze(a,{id:r.id},k,E)}else m.push(void 0);return ae({url:a,params:n,branch:m,errors:o,status:200,error:null,route:r,form:t?void 0:null})}async function Pt(e,t,a){for(;e--;)if(a[e]){let n=e;for(;!t[n];)n-=1;try{return{idx:n+1,node:{node:await a[e](),loader:a[e],data:{},server:null,universal:null}}}catch{continue}}}async function Le({status:e,error:t,url:a,route:n}){const r={};let s=null;try{const o=await xe({loader:de,url:a,params:r,route:n,parent:()=>Promise.resolve({}),server_data_node:Re(s)}),i={node:await X(),loader:X,universal:null,server:null,data:null};return ae({url:a,params:r,branch:[o,i],status:e,error:t,errors:[],route:null})}catch(o){if(o instanceof we)return Ge(new URL(o.location,location.href),{},0);throw o}}async function At(e){const t=e.href;if(W.has(t))return W.get(t);let a;try{const n=(async()=>{let r=await y.hooks.reroute({url:new URL(e),fetch:async(s,o)=>xt(s,o,e).promise})??e;if(typeof r=="string"){const s=new URL(e);y.hash?s.hash=r:s.pathname=r,r=s}return r})();W.set(t,n),a=await n}catch{W.delete(t);return}return a}async function re(e,t){if(e&&!ge(e,R,y.hash)){const a=await At(e);if(!a)return;const n=It(a);for(const r of ke){const s=r.exec(n);if(s)return{id:ne(e),invalidating:t,route:r,params:st(s),url:e}}}}function It(e){return lt(y.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(R.length))||"/"}function ne(e){return(y.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function Qe({url:e,type:t,intent:a,delta:n,event:r,scroll:s}){let o=!1;const i=Ue(g,a,e,t,s??null);n!==void 0&&(i.navigation.delta=n),r!==void 0&&(i.navigation.event=r);const l={...i.navigation,cancel:()=>{o=!0,i.reject(new Error("navigation cancelled"))}};return Y||Me.forEach(c=>c(l)),o?null:i}async function $({type:e,url:t,popped:a,keepfocus:n,noscroll:r,replace_state:s,state:o={},redirect_count:i=0,nav_token:l={},accept:c=Te,block:u=Te,event:p}){const v=O;O=l;const h=await re(t,!1),f=e==="enter"?Ue(g,h,t,e):Qe({url:t,type:e,delta:a?.delta,intent:h,scroll:a?.scroll,event:p});if(!f){u(),O===l&&(O=v);return}const m=w,_=S;c(),Y=!0,ee&&f.navigation.type!=="enter"&&I.navigating.set(fe.current=f.navigation);let d=h&&await Xe(h);if(!d){if(ge(t,R,y.hash))return await H(t,s);d=await Ze(t,{id:null},await z(new ye(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=h?.url||t,O!==l)return f.reject(new Error("navigation aborted")),!1;if(d.type==="redirect"){if(i<20){await $({type:e,url:new URL(d.location,t),popped:a,keepfocus:n,noscroll:r,replace_state:s,state:o,redirect_count:i+1,nav_token:l}),f.fulfil(void 0);return}d=await Le({status:500,error:await z(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else d.props.page.status>=400&&await I.updated.check()&&(await Be(),await H(t,s));if(kt(),Ee(m),ze(_),d.props.page.url.pathname!==t.pathname&&(t.pathname=d.props.page.url.pathname),o=a?a.state:o,!a){const b=s?0:1,N={[C]:w+=b,[M]:S+=b,[Ne]:o};(s?history.replaceState:history.pushState).call(history,N,"",t),s||bt(w,S)}const E=h&&L?.id===h.id?L.fork:null;L=null,d.props.page.state=o;let k;if(ee){const b=(await Promise.all(Array.from(Et,D=>D(f.navigation)))).filter(D=>typeof D=="function");if(b.length>0){let D=function(){b.forEach(se=>{B.delete(se)})};b.push(D),b.forEach(se=>{B.add(se)})}const N=f.navigation.to;g={...d.state,nav:{params:N.params,route:N.route,url:N.url}},d.props.page&&(d.props.page.url=t);const oe=E&&await E;oe?k=oe.commit():(K=null,Ye.$set(d.props),K&&Object.assign(d.props.page,K),ut(d.props.page),k=nt?.()),He=!0}else await Je(d,he,!1);const{activeElement:P}=document;await k,await G(),await G();let A=null;if(Oe){const b=a?a.scroll:r?j():null;b?scrollTo(b.x,b.y):(A=t.hash&&document.getElementById(et(t)))?A.scrollIntoView():scrollTo(0,0)}const tt=document.activeElement!==P&&document.activeElement!==document.body;!n&&!tt&&Nt(t,!A),Oe=!0,d.props.page&&(K&&Object.assign(d.props.page,K),Object.assign(x,d.props.page)),Y=!1,e==="popstate"&&We(S),f.fulfil(void 0),f.navigation.to&&(f.navigation.to.scroll=j()),B.forEach(b=>b(f.navigation)),I.navigating.set(fe.current=null)}async function Ze(e,t,a,n,r){return e.origin===De&&e.pathname===location.pathname&&!Ve?await Le({status:n,error:a,url:e,route:t}):await H(e,r)}function Tt(){let e,t={element:void 0,href:void 0},a;U.addEventListener("mousemove",i=>{const l=i.target;clearTimeout(e),e=setTimeout(()=>{s(l,q.hover)},20)});function n(i){i.defaultPrevented||s(i.composedPath()[0],q.tap)}U.addEventListener("mousedown",n),U.addEventListener("touchstart",n,{passive:!0});const r=new IntersectionObserver(i=>{for(const l of i)l.isIntersecting&&(ce(new URL(l.target.href)),r.unobserve(l.target))},{threshold:0});async function s(i,l){const c=$e(i,U),u=c===t.element&&c?.href===t.href&&l>=a;if(!c||u)return;const{url:p,external:v,download:h}=ue(c,R,y.hash);if(v||h)return;const f=J(c),m=p&&ne(g.url)===ne(p);if(!(f.reload||m))if(l<=f.preload_data){t={element:c,href:c.href},a=q.tap;const _=await re(p,!1);if(!_)return;St(_)}else l<=f.preload_code&&(t={element:c,href:c.href},a=l,ce(p))}function o(){r.disconnect();for(const i of U.querySelectorAll("a")){const{url:l,external:c,download:u}=ue(i,R,y.hash);if(c||u)continue;const p=J(i);p.reload||(p.preload_code===q.viewport&&r.observe(i),p.preload_code===q.eager&&ce(l))}}B.add(o),o()}function z(e,t){if(e instanceof ve)return e.body;const a=be(e),n=wt(e);return y.hooks.handleError({error:e,event:t,status:a,message:n})??{message:n}}function Bt(e,t={}){return e=new URL(me(e)),e.origin!==De?Promise.reject(new Error("goto: invalid URL")):Ge(e,t,0)}function Ot(e){if(typeof e=="function")Q.push(e);else{const{href:t}=new URL(e,location.href);Q.push(a=>a.href===t)}}function jt(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let a=!1;if(Ce(),!Y){const n=Ue(g,void 0,null,"leave"),r={...n.navigation,cancel:()=>{a=!0,n.reject(new Error("navigation cancelled"))}};Me.forEach(s=>s(r))}a?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ce()}),navigator.connection?.saveData||Tt(),U.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const a=$e(t.composedPath()[0],U);if(!a)return;const{url:n,external:r,target:s,download:o}=ue(a,R,y.hash);if(!n)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const i=J(a);if(!(a instanceof SVGAElement)&&n.protocol!==location.protocol&&!(n.protocol==="https:"||n.protocol==="http:")||o)return;const[c,u]=(y.hash?n.hash.replace(/^#/,""):n.href).split("#"),p=c===ie(location);if(r||i.reload&&(!p||!u)){Qe({url:n,type:"link",event:t})?Y=!0:t.preventDefault();return}if(u!==void 0&&p){const[,v]=g.url.href.split("#");if(v===u){if(t.preventDefault(),u===""||u==="top"&&a.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const h=a.ownerDocument.getElementById(decodeURIComponent(u));h&&(h.scrollIntoView(),h.focus())}return}if(F=!0,Ee(w),e(n),!i.replace_state)return;F=!1}t.preventDefault(),await new Promise(v=>{requestAnimationFrame(()=>{setTimeout(v,0)}),setTimeout(v,100)}),await $({type:"link",url:n,keepfocus:i.keepfocus,noscroll:i.noscroll,replace_state:i.replace_state??n.href===location.href,event:t})}),U.addEventListener("submit",t=>{if(t.defaultPrevented)return;const a=HTMLFormElement.prototype.cloneNode.call(t.target),n=t.submitter;if((n?.formTarget||a.target)==="_blank"||(n?.formMethod||a.method)!=="get")return;const o=new URL(n?.hasAttribute("formaction")&&n?.formAction||a.action);if(ge(o,R,!1))return;const i=t.target,l=J(i);if(l.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(i,n);o.search=new URLSearchParams(c).toString(),$({type:"form",url:o,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!_e){if(t.state?.[C]){const a=t.state[C];if(O={},a===w)return;const n=T[a],r=t.state[Ne]??{},s=new URL(t.state[ot]??location.href),o=t.state[M],i=g.url?ie(location)===ie(g.url):!1;if(o===S&&(He||i)){r!==x.state&&(x.state=r),e(s),T[w]=j(),n&&scrollTo(n.x,n.y),w=a;return}const c=a-w;await $({type:"popstate",url:s,popped:{state:r,scroll:n,delta:c},accept:()=>{w=a,S=o},block:()=>{history.go(-c)},nav_token:O,event:t})}else if(!F){const a=new URL(location.href);e(a),y.hash&&location.reload()}}}),addEventListener("hashchange",()=>{F&&(F=!1,history.replaceState({...history.state,[C]:++w,[M]:S},"",location.href))});for(const t of document.querySelectorAll("link"))yt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&I.navigating.set(fe.current=null)});function e(t){g.url=x.url=t,I.page.set(Pe(x)),I.page.notify()}}async function Ct(e,{status:t=200,error:a,node_ids:n,params:r,route:s,server_route:o,data:i,form:l}){Ve=!0;const c=new URL(location.href);let u;({params:r={},route:s={id:null}}=await re(c,!1)||{}),u=ke.find(({id:h})=>h===s.id);let p,v=!0;try{const h=n.map(async(m,_)=>{const d=i[_];return d?.uses&&(d.uses=$t(d.uses)),xe({loader:y.nodes[m],url:c,params:r,route:s,parent:async()=>{const E={};for(let k=0;k<_;k+=1)Object.assign(E,(await h[k]).data);return E},server_data_node:Re(d)})}),f=await Promise.all(h);if(u){const m=u.layouts;for(let _=0;_<m.length;_++)m[_]||f.splice(_,0,void 0)}p=await ae({url:c,params:r,branch:f,status:t,error:a,errors:u?.errors,form:l,route:u??null})}catch(h){if(h instanceof we){await H(new URL(h.location,location.href));return}p=await Le({status:be(h),error:await z(h,{url:c,params:r,route:s}),url:c,route:s}),e.textContent="",v=!1}p.props.page&&(p.props.page.state={}),await Je(p,e,v)}function $t(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 _e=!1;function Nt(e,t=!0){const a=document.querySelector("[autofocus]");if(a)a.focus();else{const n=et(e);if(n&&document.getElementById(n)){const{x:s,y:o}=j();setTimeout(()=>{const i=history.state;_e=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(i,"",e),t&&scrollTo(s,o),_e=!1})}else{const s=document.body,o=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),o!==null?s.setAttribute("tabindex",o):s.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const s=[];for(let o=0;o<r.rangeCount;o+=1)s.push(r.getRangeAt(o));setTimeout(()=>{if(r.rangeCount===s.length){for(let o=0;o<r.rangeCount;o+=1){const i=s[o],l=r.getRangeAt(o);if(i.commonAncestorContainer!==l.commonAncestorContainer||i.startContainer!==l.startContainer||i.endContainer!==l.endContainer||i.startOffset!==l.startOffset||i.endOffset!==l.endOffset)return}r.removeAllRanges()}})}}}function Ue(e,t,a,n,r=null){let s,o;const i=new Promise((c,u)=>{s=c,o=u});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:j()},to:a&&{params:t?.params??null,route:{id:t?.route?.id??null},url:a,scroll:r},willUnload:!t,type:n,complete:i},fulfil:s,reject:o}}function Pe(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 Dt(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function et(e){let t;if(y.hash){const[,,a]=e.hash.split("#",3);t=a??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Ft as a,Bt as g,I as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as y,k as u,H as _,E as o,l as t,m as g,C as m,n as l,q as i,v as n,w as p}from"./
|
|
1
|
+
import{j as y,k as u,H as _,E as o,l as t,m as g,C as m,n as l,q as i,v as n,w as p}from"./BWi4DUSP.js";function C(d,r){let s=null,E=t;var a;if(t){s=p;for(var e=g(document.head);e!==null&&(e.nodeType!==m||e.data!==d);)e=l(e);if(e===null)i(!1);else{var f=l(e);e.remove(),n(f)}}t||(a=document.head.appendChild(y()));try{u(()=>r(a),_|o)}finally{E&&(i(!0),n(s))}}export{C as h};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r}from"./
|
|
1
|
+
import{p as r}from"./DXCdBROZ.js";import{s as t}from"./Dn1P-MHB.js";const e={get error(){return r.error},get params(){return r.params},get status(){return r.status},get url(){return r.url}};t.updated.check;const p=e;export{p};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.
|
|
2
|
-
import{l as D,Y as G,k as H,Z as Q,_ as W,a0 as Z,v as z,q as I,ah as J,w as K,b as p,ag as X,g as f,ai as $,Q as ee,M as te,p as re,y as se,u as ae,o as ne,s as x,aj as oe,f as k,e as ce,c as ie,d as le,r as ue,h as A,t as de}from"../chunks/
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.BNXYVuau.js","../chunks/DBydSc_k.js","../chunks/BWi4DUSP.js","../chunks/CV88cyNb.js","../chunks/CIVgrm-h.js","../chunks/DXCdBROZ.js","../assets/Toast.BpcxWUYz.css","../chunks/tmOlV5v8.js","../chunks/Dn1P-MHB.js","../chunks/xX_XT4gL.js","../assets/0.CAO2ssDt.css","../nodes/1.DsXY_nT9.js","../nodes/2.CZ0cjprV.js","../nodes/3.C2uGzWU7.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{l as D,Y as G,k as H,Z as Q,_ as W,a0 as Z,v as z,q as I,ah as J,w as K,b as p,ag as X,g as f,ai as $,Q as ee,M as te,p as re,y as se,u as ae,o as ne,s as x,aj as oe,f as k,e as ce,c as ie,d as le,r as ue,h as A,t as de}from"../chunks/BWi4DUSP.js";import{h as fe,m as me,u as he,f as V,a as P,g as S,t as _e,s as ve}from"../chunks/DBydSc_k.js";import{B as ge,p as T,i as j,b as L}from"../chunks/CV88cyNb.js";function C(o,e,s){var l;D&&(l=K,G());var c=new ge(o);H(()=>{var t=e()??null;if(D){var r=W(l),a=r===J,E=t!==null;if(a!==E){var m=Z();z(m),c.anchor=m,I(!1),c.ensure(t,t&&(n=>s(n,t))),I(!0);return}}c.ensure(t,t&&(n=>s(n,t)))},Q)}function ye(o){return class extends Ee{constructor(e){super({component:o,...e})}}}class Ee{#t;#e;constructor(e){var s=new Map,l=(t,r)=>{var a=te(r,!1,!1);return s.set(t,a),a};const c=new Proxy({...e.props||{},$$events:{}},{get(t,r){return f(s.get(r)??l(r,Reflect.get(t,r)))},has(t,r){return r===X?!0:(f(s.get(r)??l(r,Reflect.get(t,r))),Reflect.has(t,r))},set(t,r,a){return p(s.get(r)??l(r,a),a),Reflect.set(t,r,a)}});this.#e=(e.hydrate?fe:me)(e.component,{target:e.target,anchor:e.anchor,props:c,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),(!e?.props?.$$host||e.sync===!1)&&$(),this.#t=c.$$events;for(const t of Object.keys(this.#e))t==="$set"||t==="$destroy"||t==="$on"||ee(this,t,{get(){return this.#e[t]},set(r){this.#e[t]=r},enumerable:!0});this.#e.$set=t=>{Object.assign(c,t)},this.#e.$destroy=()=>{he(this.#e)}}$set(e){this.#e.$set(e)}$on(e,s){this.#t[e]=this.#t[e]||[];const l=(...c)=>s.call(this,...c);return this.#t[e].push(l),()=>{this.#t[e]=this.#t[e].filter(c=>c!==l)}}$destroy(){this.#e.$destroy()}}const be="modulepreload",Pe=function(o,e){return new URL(o,e).href},M={},O=function(e,s,l){let c=Promise.resolve();if(s&&s.length>0){let m=function(n){return Promise.all(n.map(d=>Promise.resolve(d).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};const r=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),E=a?.nonce||a?.getAttribute("nonce");c=m(s.map(n=>{if(n=Pe(n,l),n in M)return;M[n]=!0;const d=n.endsWith(".css"),h=d?'[rel="stylesheet"]':"";if(l)for(let _=r.length-1;_>=0;_--){const i=r[_];if(i.href===n&&(!d||i.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${n}"]${h}`))return;const u=document.createElement("link");if(u.rel=d?"stylesheet":be,d||(u.as="script"),u.crossOrigin="",u.href=n,E&&u.setAttribute("nonce",E),document.head.appendChild(u),d)return new Promise((_,i)=>{u.addEventListener("load",_),u.addEventListener("error",()=>i(new Error(`Unable to preload CSS for ${n}`)))})}))}function t(r){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r}return c.then(r=>{for(const a of r||[])a.status==="rejected"&&t(a.reason);return e().catch(t)})},Te={};var Re=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>'),we=V("<!> <!>",1);function ke(o,e){re(e,!0);let s=T(e,"components",23,()=>[]),l=T(e,"data_0",3,null),c=T(e,"data_1",3,null);se(()=>e.stores.page.set(e.page)),ae(()=>{e.stores,e.page,e.constructors,s(),e.form,l(),c(),e.stores.page.notify()});let t=x(!1),r=x(!1),a=x(null);ne(()=>{const i=e.stores.page.subscribe(()=>{f(t)&&(p(r,!0),oe().then(()=>{p(a,document.title||"untitled page",!0)}))});return p(t,!0),i});const E=A(()=>e.constructors[1]);var m=we(),n=k(m);{var d=i=>{const v=A(()=>e.constructors[0]);var g=S(),R=k(g);C(R,()=>f(v),(y,b)=>{L(b(y,{get data(){return l()},get form(){return e.form},get params(){return e.page.params},children:(w,pe)=>{var N=S(),B=k(N);C(B,()=>f(E),(Y,F)=>{L(F(Y,{get data(){return c()},get form(){return e.form},get params(){return e.page.params}}),U=>s()[1]=U,()=>s()?.[1])}),P(w,N)},$$slots:{default:!0}}),w=>s()[0]=w,()=>s()?.[0])}),P(i,g)},h=i=>{const v=A(()=>e.constructors[0]);var g=S(),R=k(g);C(R,()=>f(v),(y,b)=>{L(b(y,{get data(){return l()},get form(){return e.form},get params(){return e.page.params}}),w=>s()[0]=w,()=>s()?.[0])}),P(i,g)};j(n,i=>{e.constructors[1]?i(d):i(h,-1)})}var u=ce(n,2);{var _=i=>{var v=Re(),g=le(v);{var R=y=>{var b=_e();de(()=>ve(b,f(a))),P(y,b)};j(g,y=>{f(r)&&y(R)})}ue(v),P(i,v)};j(u,i=>{f(t)&&i(_)})}P(o,m),ie()}const je=ye(ke),Le=[()=>O(()=>import("../nodes/0.BNXYVuau.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url),()=>O(()=>import("../nodes/1.DsXY_nT9.js"),__vite__mapDeps([11,1,2,9,5,8]),import.meta.url),()=>O(()=>import("../nodes/2.CZ0cjprV.js"),__vite__mapDeps([12,1,2,3,4,5,6]),import.meta.url),()=>O(()=>import("../nodes/3.C2uGzWU7.js"),__vite__mapDeps([13,1,2,3,7,8,5,9,4,6]),import.meta.url)],Ce=[],Ne={"/":[2],"/session/[project]/[id]":[3]},q={handleError:(({error:o})=>{console.error(o)}),reroute:(()=>{}),transport:{}},Oe=Object.fromEntries(Object.entries(q.transport).map(([o,e])=>[o,e.decode])),De=Object.fromEntries(Object.entries(q.transport).map(([o,e])=>[o,e.encode])),Ie=!1,Me=(o,e)=>Oe[o](e);export{Me as decode,Oe as decoders,Ne as dictionary,De as encoders,Ie as hash,q as hooks,Te as matchers,Le as nodes,je as root,Ce as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r}from"../chunks/Dn1P-MHB.js";import{w as t}from"../chunks/DXCdBROZ.js";export{t as load_css,r as start};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as Lt,f as b,b as N,e as dt,a as i,s as u,c as Qe,t as W}from"../chunks/WK3b3g7j.js";import{I as qt,J as Jt,p as Kt,s as g,a as ct,o as ht,f as de,t as C,c as Qt,b as s,K as Ft,$ as Gt,d as o,e as a,g as e,r as n,h as L}from"../chunks/DB1q-JFC.js";import{i as v,a as Xt,s as ut}from"../chunks/D1duoKAw.js";import{k as Yt,C as Zt,T as er,n as tr,a as rr,o as ce,p as He,q as ar,t as Le,v as sr,w as qe,x as or,y as Se,z as nr,A as lr,B as ir}from"../chunks/_v9tgGMR.js";import{h as dr}from"../chunks/6j6qgi5m.js";import{g as cr}from"../chunks/BkKWBf8s.js";import{p as vt}from"../chunks/HCtei06b.js";const hr=!0,Br=Object.freeze(Object.defineProperty({__proto__:null,ssr:hr},Symbol.toStringTag,{value:"Module"})),pt=()=>{if(typeof localStorage>"u")return"system";const x=localStorage.getItem("theme");return x==="light"||x==="dark"||x==="system"?x:"system"},Ke=()=>typeof window>"u"?"dark":window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark",he=qt(pt()),gt=Jt(he,x=>x==="system"?Ke():x),Je=x=>{typeof document<"u"&&(document.documentElement.dataset.theme=x)},ur=()=>{const x=pt(),O=x==="system"?Ke():x;Je(O);const U=window.matchMedia("(prefers-color-scheme: light)"),G=()=>{let I="system";he.subscribe(Ie=>I=Ie)(),I==="system"&&Je(Ke())};U.addEventListener("change",G);const ue=gt.subscribe(I=>{Je(I)}),je=he.subscribe(I=>{typeof localStorage<"u"&&localStorage.setItem("theme",I)});return()=>{U.removeEventListener("change",G),ue(),je()}},vr=()=>{he.update(x=>{const O=["light","dark","system"],U=O.indexOf(x);return O[(U+1)%O.length]})};var pr=b('<span class="text-xs text-gh-text-secondary bg-gh-border px-2 py-0.5 rounded hidden sm:inline"> </span>'),gr=Qe('<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"></path></svg>'),mr=Qe('<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path></svg>'),fr=Qe('<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"></path></svg>'),xr=b('<div class="absolute right-3 top-1/2 -translate-y-1/2"><svg class="animate-spin h-4 w-4 text-gh-text-secondary" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" fill="none"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg></div>'),br=b('<div class="px-4 py-3 text-sm text-gh-text-secondary">Searching...</div>'),_r=b('<div class="px-4 py-3 text-sm text-gh-text-secondary">No results found</div>'),yr=b('<div class="text-xs text-gh-text-secondary mt-1 line-clamp-2"> </div>'),wr=b('<button class="w-full text-left px-4 py-2 hover:bg-gh-border-subtle border-b border-gh-border last:border-b-0"><div class="flex items-center gap-2"><span> </span> <span class="text-xs text-gh-text-secondary truncate flex-shrink-0 max-w-[120px]"> </span> <span class="text-sm font-medium truncate"> </span></div> <!></button>'),Cr=b('<div class="px-4 py-2 text-xs text-gh-text-secondary border-t border-gh-border">Searching content...</div>'),kr=b("<!> <!>",1),$r=b('<div class="absolute top-full left-0 right-0 mt-1 bg-gh-bg-secondary border border-gh-border rounded-md shadow-lg max-h-80 overflow-y-auto z-50"><!></div>'),Tr=b(" <!>",1),Sr=b("<!> ",1),jr=b("<!> ",1),Ir=b('<div class="fixed inset-0 bg-black/50 flex items-center justify-center z-50" role="dialog" aria-modal="true" aria-labelledby="cleanup-modal-title"><div class="bg-gh-bg-secondary border border-gh-border rounded-lg p-6 w-[400px] shadow-xl text-gh-text"><h2 id="cleanup-modal-title" class="text-lg font-semibold mb-4">Cleanup Options</h2> <div class="space-y-3 text-gh-text"><label class="flex items-center gap-3 cursor-pointer"><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green"/> <span class="flex-1">Delete empty sessions <span class="text-gh-text-secondary"> </span></span></label> <label><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green disabled:opacity-50"/> <span class="flex-1">Preserve sessions with todos <span class="text-gh-text-secondary"> </span></span></label> <label class="flex items-center gap-3 cursor-pointer"><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green"/> <span class="flex-1">Delete orphan agents <span class="text-gh-text-secondary"> </span></span></label> <label class="flex items-center gap-3 cursor-pointer"><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green"/> <span class="flex-1">Delete orphan todos <span class="text-gh-text-secondary"> </span></span></label></div> <div class="mt-4 pt-4 border-t border-gh-border text-sm text-gh-text-secondary"><!> <!> <!> <!></div> <div class="flex gap-2 mt-6 justify-end"><button class="px-4 py-2 text-sm rounded-md border border-gh-border hover:bg-gh-border-subtle">Cancel</button> <button class="px-4 py-2 text-sm rounded-md bg-gh-red text-white hover:bg-red-700 disabled:opacity-50"> </button></div></div></div>'),Mr=b('<div class="fixed bottom-4 right-4 bg-gh-green text-white px-5 py-3 rounded-md text-sm z-50"><!> <!> <!> <!></div>'),Nr=b('<div class="min-h-screen flex flex-col bg-gh-bg text-gh-text"><header class="bg-gh-bg-secondary border-b border-gh-border px-8 py-4 flex justify-between items-center"><div class="flex items-center gap-3"><a class="flex items-center gap-2 hover:text-gh-accent"><svg class="w-6 h-6 text-gh-accent" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg> <span class="text-2xl font-semibold hidden sm:inline">Claude Sessions</span></a> <!> <button class="p-1.5 rounded-md text-gh-text-secondary hover:text-gh-text hover:bg-gh-border-subtle transition-colors"><!></button></div> <div class="relative flex-1 max-w-md mx-8"><input type="text" placeholder="Search sessions..." class="w-full px-4 py-2 bg-gh-bg border border-gh-border rounded-md text-sm focus:outline-none focus:border-gh-accent"/> <!> <!></div> <div class="flex gap-2"><button class="bg-gh-border-subtle border border-gh-border text-gh-text px-4 py-2 rounded-md text-sm transition-colors hover:bg-gh-border hover:border-gh-text-secondary disabled:opacity-50 disabled:cursor-not-allowed"> </button> <button class="bg-gh-red border border-gh-red text-white px-4 py-2 rounded-md text-sm transition-colors hover:bg-red-700 disabled:opacity-50 disabled:cursor-not-allowed"> </button></div></header> <main><!></main></div> <!> <!> <!> <!>',1);function Wr(x,O){Kt(O,!0);const U=()=>ut(he,"$themePreference",ue),G=()=>ut(gt,"$effectiveTheme",ue),[ue,je]=Xt(),I=L(()=>vt.url.pathname.startsWith("/session/")),Ie=t=>{const r="___DOT___";let d=t.replace(/--/g,r).replace(/-/g,"/").replace(new RegExp(r,"g"),"/.");const m=d.match(/^\/Users\/[^/]+\/(.+)$/);return m?`~/${m[1]}`:d},X=L(()=>{if(!e(I))return null;const t=vt.url.pathname.match(/^\/session\/([^/]+)\/([^/]+)/);return t?{projectName:decodeURIComponent(t[1]),sessionId:decodeURIComponent(t[2])}:null});let ve=g(""),q=g(!1),Me=g(!1),pe=g(!1),R=g(null),T=g(null),Ne=g(null),Fe=g("info"),D=g(ct({show:!1,title:"",message:"",variant:"default",onConfirm:()=>{}}));const Oe=(t,r="info")=>{s(Ne,t,!0),s(Fe,r,!0)},mt=(t,r,d,m="default")=>{s(D,{show:!0,title:t,message:r,variant:m,onConfirm:d},!0)},Ge=()=>{s(D,{...e(D),show:!1},!0)};let ge=g(""),_=g(ct([])),Y=g(!1),me=g(!1),J=g(!1),Re=null,M=g(!0),Z=g(!0),P=g(!0),V=g(!1),De=L(()=>e(R)?.reduce((t,r)=>t+r.emptySessions.length,0)??0),ee=L(()=>e(R)?.reduce((t,r)=>t+r.emptyWithTodosCount,0)??0),fe=L(()=>e(R)?.reduce((t,r)=>t+r.orphanAgentCount,0)??0),xe=L(()=>e(R)?.reduce((t,r)=>t+r.orphanTodoCount,0)??0),be=L(()=>e(Z)?e(De)-e(ee):e(De));ht(()=>ur()),ht(async()=>{try{const t=await tr();s(ve,t.version,!0),rr.set({version:t.version,homeDir:t.homeDir,currentProjectName:t.currentProjectName})}catch{s(ve,"unknown")}});const ft=()=>{mt("Shutdown","Shutdown the server?",async()=>{Ge(),s(Me,!0);try{await or()}catch{}},"danger")},xt=async()=>{try{s(R,await sr(),!0),s(pe,!0)}catch(t){Oe(`Error: ${t}`,"error")}},Pe=()=>{s(pe,!1),s(R,null)},bt=async()=>{if(e(be)===0&&!e(P)&&!e(V)){Oe("Nothing to clean up","warning");return}s(q,!0);try{s(T,await nr({clearEmpty:e(M),clearInvalid:!1,skipWithTodos:e(Z),clearOrphanAgents:e(P),clearOrphanTodos:e(V)}),!0),s(pe,!1),s(R,null),setTimeout(()=>{s(T,null),window.location.reload()},2e3)}catch(t){Oe(`Error: ${t}`,"error")}finally{s(q,!1)}},_t=t=>{const r=t.target.value;if(s(ge,r,!0),Re&&clearTimeout(Re),!r.trim()){s(_,[],!0),s(J,!1);return}Re=setTimeout(()=>yt(r),300)},ze=t=>{const r=e(X);return r?[...t].sort((d,m)=>{const y=d.projectName===r.projectName&&d.sessionId===r.sessionId,p=m.projectName===r.projectName&&m.sessionId===r.sessionId;return y&&!p?-1:!y&&p?1:0}):t},yt=async t=>{if(!t.trim())return;const r=e(X);s(Y,!0),s(J,!0);try{const d=await qe(t,{searchContent:!1,project:r?.projectName});s(_,ze(d),!0)}catch(d){console.error("Title search error:",d)}finally{s(Y,!1)}s(me,!0);try{if(r){const p=await qe(t,{searchContent:!0,project:r.projectName}),f=new Set(e(_).map(k=>`${k.projectName}:${k.sessionId}`)),w=p.filter(k=>!f.has(`${k.projectName}:${k.sessionId}`));s(_,ze([...e(_),...w]),!0)}const d=await qe(t,{searchContent:!0}),m=new Set(e(_).map(p=>`${p.projectName}:${p.sessionId}`)),y=d.filter(p=>!m.has(`${p.projectName}:${p.sessionId}`));s(_,ze([...e(_),...y]),!0)}catch(d){console.error("Content search error:",d)}finally{s(me,!1)}},wt=t=>{s(ge,""),s(_,[],!0),s(J,!1),cr(`/session/${encodeURIComponent(t.projectName)}/${encodeURIComponent(t.sessionId)}`)},Ct=()=>{setTimeout(()=>{s(J,!1)},200)};var Xe=Nr();dr("12qhfyh",t=>{Ft(()=>{Gt.title="Claude Sessions"})});var Ee=de(Xe),Ae=o(Ee),Be=o(Ae),We=o(Be),Ye=a(We,2);{var kt=t=>{var r=pr(),d=o(r);n(r),C(()=>u(d,`v${e(ve)??""}`)),i(t,r)};v(Ye,t=>{e(ve)&&t(kt)})}var _e=a(Ye,2),$t=o(_e);{var Tt=t=>{var r=gr();i(t,r)},St=t=>{var r=mr();i(t,r)},jt=t=>{var r=fr();i(t,r)};v($t,t=>{G()==="light"?t(Tt):U()==="system"?t(St,1):t(jt,-1)})}n(_e),n(Be);var Ue=a(Be,2),K=o(Ue);ce(K);var Ze=a(K,2);{var It=t=>{var r=xr();i(t,r)};v(Ze,t=>{(e(Y)||e(me))&&t(It)})}var Mt=a(Ze,2);{var Nt=t=>{var r=$r(),d=o(r);{var m=f=>{var w=br();i(f,w)},y=f=>{var w=_r();i(f,w)},p=f=>{var w=kr(),k=de(w);lr(k,17,()=>e(_),ir,(c,$)=>{var H=wr(),re=o(H),E=o(re),ae=o(E,!0);n(E);var Q=a(E,2),we=o(Q,!0);n(Q);var Ce=a(Q,2),ke=o(Ce,!0);n(Ce),n(re);var se=a(re,2);{var $e=A=>{var oe=yr(),ne=o(oe,!0);n(oe),C(()=>u(ne,e($).snippet)),i(A,oe)};v(se,A=>{e($).snippet&&A($e)})}n(H),C(A=>{Le(E,1,`text-xs px-1.5 py-0.5 rounded ${e($).matchType==="title"?"bg-gh-green/20 text-gh-green":"bg-gh-accent/20 text-gh-accent"}`),u(ae,e($).matchType==="title"?"Title":"Content"),u(we,A),u(ke,e($).title)},[()=>Ie(e($).projectName)]),N("click",H,()=>wt(e($))),i(c,H)});var z=a(k,2);{var h=c=>{var $=Cr();i(c,$)};v(z,c=>{e(me)&&c(h)})}i(f,w)};v(d,f=>{e(_).length===0&&e(Y)?f(m):e(_).length===0?f(y,1):f(p,-1)})}n(r),i(t,r)};v(Mt,t=>{e(J)&&(e(_).length>0||e(Y))&&t(Nt)})}n(Ue);var et=a(Ue,2),te=o(et),Ot=o(te,!0);n(te);var ye=a(te,2),Rt=o(ye,!0);n(ye),n(et),n(Ae);var Ve=a(Ae,2),Dt=o(Ve);Yt(Dt,()=>O.children),n(Ve),n(Ee);var tt=a(Ee,2);{var Pt=t=>{var r=Ir(),d=o(r),m=a(o(d),2),y=o(m),p=o(y);ce(p);var f=a(p,2),w=a(o(f)),k=o(w);n(w),n(f),n(y);var z=a(y,2);let h;var c=o(z);ce(c);var $=a(c,2),H=a(o($)),re=o(H);n(H),n($),n(z);var E=a(z,2),ae=o(E);ce(ae);var Q=a(ae,2),we=a(o(Q)),Ce=o(we);n(we),n(Q),n(E);var ke=a(E,2),se=o(ke);ce(se);var $e=a(se,2),A=a(o($e)),oe=o(A);n(A),n($e),n(ke),n(m);var ne=a(m,2),st=o(ne);{var At=l=>{var j=Tr(),B=de(j),le=a(B);{var ie=S=>{var F=W();C(()=>u(F,`(skipping ${e(ee)??""} with todos)`)),i(S,F)};v(le,S=>{e(Z)&&e(ee)>0&&S(ie)})}C(()=>u(B,`Will delete ${e(be)??""} session${e(be)!==1?"s":""} `)),i(l,j)};v(st,l=>{e(M)&&l(At)})}var ot=a(st,2);{var Bt=l=>{var j=Sr(),B=de(j);{var le=S=>{var F=W(",");i(S,F)};v(B,S=>{e(M)&&S(le)})}var ie=a(B);C(()=>u(ie,` ${e(fe)??""} orphan agent${e(fe)!==1?"s":""}`)),i(l,j)};v(ot,l=>{e(P)&&e(fe)>0&&l(Bt)})}var nt=a(ot,2);{var Wt=l=>{var j=jr(),B=de(j);{var le=S=>{var F=W(",");i(S,F)};v(B,S=>{(e(M)||e(P))&&S(le)})}var ie=a(B);C(()=>u(ie,` ${e(xe)??""} orphan todo${e(xe)!==1?"s":""}`)),i(l,j)};v(nt,l=>{e(V)&&e(xe)>0&&l(Wt)})}var Ut=a(nt,2);{var Vt=l=>{var j=W("Nothing selected");i(l,j)};v(Ut,l=>{!e(M)&&!e(P)&&!e(V)&&l(Vt)})}n(ne);var lt=a(ne,2),it=o(lt),Te=a(it,2),Ht=o(Te,!0);n(Te),n(lt),n(d),n(r),C(()=>{u(k,`(${e(De)??""})`),h=Le(z,1,"flex items-center gap-3 cursor-pointer ml-6",null,h,{"opacity-50":!e(M)}),c.disabled=!e(M),u(re,`(${e(ee)>0?`-${e(ee)}`:"0"})`),u(Ce,`(${e(fe)??""})`),u(oe,`(${e(xe)??""})`),Te.disabled=e(q)||e(be)===0&&!e(P)&&!e(V),u(Ht,e(q)?"Cleaning...":"Execute Cleanup")}),N("click",r,l=>l.target===l.currentTarget&&Pe()),N("keydown",r,l=>l.key==="Escape"&&Pe()),Se(p,()=>e(M),l=>s(M,l)),Se(c,()=>e(Z),l=>s(Z,l)),Se(ae,()=>e(P),l=>s(P,l)),Se(se,()=>e(V),l=>s(V,l)),N("click",it,Pe),N("click",Te,bt),i(t,r)};v(tt,t=>{e(pe)&&e(R)&&t(Pt)})}var rt=a(tt,2);{var zt=t=>{var r=Mr(),d=o(r);{var m=h=>{var c=W();C(()=>u(c,`Removed ${e(T).removedMessageCount??""} invalid messages.`)),i(h,c)};v(d,h=>{e(T).removedMessageCount>0&&h(m)})}var y=a(d,2);{var p=h=>{var c=W();C(()=>u(c,`Deleted ${e(T).deletedCount??""} empty sessions.`)),i(h,c)};v(y,h=>{e(T).deletedCount>0&&h(p)})}var f=a(y,2);{var w=h=>{var c=W();C(()=>u(c,`Deleted ${e(T).deletedOrphanAgentCount??""} orphan agents.`)),i(h,c)};v(f,h=>{e(T).deletedOrphanAgentCount>0&&h(w)})}var k=a(f,2);{var z=h=>{var c=W();C(()=>u(c,`Deleted ${e(T).deletedOrphanTodoCount??""} orphan todos.`)),i(h,c)};v(k,h=>{e(T).deletedOrphanTodoCount>0&&h(z)})}n(r),i(t,r)};v(rt,t=>{e(T)&&t(zt)})}var at=a(rt,2);Zt(at,{get show(){return e(D).show},get title(){return e(D).title},get message(){return e(D).message},get variant(){return e(D).variant},get onConfirm(){return e(D).onConfirm},onCancel:Ge});var Et=a(at,2);er(Et,{get variant(){return e(Fe)},get message(){return e(Ne)},set message(t){s(Ne,t,!0)}}),C(t=>{He(We,"href",t),He(We,"title",e(X)?"Back to project":"Claude Sessions"),He(_e,"title",`Theme: ${U()??""} (${G()??""})`),ar(K,e(ge)),te.disabled=e(q),u(Ot,e(q)?"Cleaning...":"Cleanup"),ye.disabled=e(Me),u(Rt,e(Me)?"Shutting down...":"Shutdown"),Le(Ve,1,`flex-1 ${e(I)?"":"p-8 max-w-7xl mx-auto"} w-full overflow-y-auto`)},[()=>e(X)?`/#project=${encodeURIComponent(e(X).projectName)}`:"/"]),N("click",_e,function(...t){vr?.apply(this,t)}),N("input",K,_t),dt("focus",K,()=>e(ge)&&s(J,!0)),dt("blur",K,Ct),N("click",te,xt),N("click",ye,ft),i(x,Xe),Qt(),je()}Lt(["click","input","keydown"]);export{Wr as component,Br as universal};
|
|
1
|
+
import{d as Lt,f as b,b as N,e as dt,a as i,s as u,c as Qe,t as W}from"../chunks/DBydSc_k.js";import{I as qt,J as Jt,p as Kt,s as g,a as ct,o as ht,f as de,t as C,c as Qt,b as s,K as Ft,$ as Gt,d as o,e as a,g as e,r as n,h as L}from"../chunks/BWi4DUSP.js";import{i as v,a as Xt,s as ut}from"../chunks/CV88cyNb.js";import{n as Yt,C as Zt,T as er,o as tr,a as rr,p as ce,q as He,t as ar,v as Le,w as sr,x as qe,y as or,z as Se,A as nr,B as lr,D as ir}from"../chunks/CIVgrm-h.js";import{h as dr}from"../chunks/tmOlV5v8.js";import{g as cr}from"../chunks/Dn1P-MHB.js";import{p as vt}from"../chunks/xX_XT4gL.js";const hr=!0,Br=Object.freeze(Object.defineProperty({__proto__:null,ssr:hr},Symbol.toStringTag,{value:"Module"})),pt=()=>{if(typeof localStorage>"u")return"system";const x=localStorage.getItem("theme");return x==="light"||x==="dark"||x==="system"?x:"system"},Ke=()=>typeof window>"u"?"dark":window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark",he=qt(pt()),gt=Jt(he,x=>x==="system"?Ke():x),Je=x=>{typeof document<"u"&&(document.documentElement.dataset.theme=x)},ur=()=>{const x=pt(),O=x==="system"?Ke():x;Je(O);const U=window.matchMedia("(prefers-color-scheme: light)"),G=()=>{let I="system";he.subscribe(Ie=>I=Ie)(),I==="system"&&Je(Ke())};U.addEventListener("change",G);const ue=gt.subscribe(I=>{Je(I)}),je=he.subscribe(I=>{typeof localStorage<"u"&&localStorage.setItem("theme",I)});return()=>{U.removeEventListener("change",G),ue(),je()}},vr=()=>{he.update(x=>{const O=["light","dark","system"],U=O.indexOf(x);return O[(U+1)%O.length]})};var pr=b('<span class="text-xs text-gh-text-secondary bg-gh-border px-2 py-0.5 rounded hidden sm:inline"> </span>'),gr=Qe('<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"></path></svg>'),mr=Qe('<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path></svg>'),fr=Qe('<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"></path></svg>'),xr=b('<div class="absolute right-3 top-1/2 -translate-y-1/2"><svg class="animate-spin h-4 w-4 text-gh-text-secondary" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4" fill="none"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg></div>'),br=b('<div class="px-4 py-3 text-sm text-gh-text-secondary">Searching...</div>'),_r=b('<div class="px-4 py-3 text-sm text-gh-text-secondary">No results found</div>'),yr=b('<div class="text-xs text-gh-text-secondary mt-1 line-clamp-2"> </div>'),wr=b('<button class="w-full text-left px-4 py-2 hover:bg-gh-border-subtle border-b border-gh-border last:border-b-0"><div class="flex items-center gap-2"><span> </span> <span class="text-xs text-gh-text-secondary truncate flex-shrink-0 max-w-[120px]"> </span> <span class="text-sm font-medium truncate"> </span></div> <!></button>'),Cr=b('<div class="px-4 py-2 text-xs text-gh-text-secondary border-t border-gh-border">Searching content...</div>'),kr=b("<!> <!>",1),$r=b('<div class="absolute top-full left-0 right-0 mt-1 bg-gh-bg-secondary border border-gh-border rounded-md shadow-lg max-h-80 overflow-y-auto z-50"><!></div>'),Tr=b(" <!>",1),Sr=b("<!> ",1),jr=b("<!> ",1),Ir=b('<div class="fixed inset-0 bg-black/50 flex items-center justify-center z-50" role="dialog" aria-modal="true" aria-labelledby="cleanup-modal-title"><div class="bg-gh-bg-secondary border border-gh-border rounded-lg p-6 w-[400px] shadow-xl text-gh-text"><h2 id="cleanup-modal-title" class="text-lg font-semibold mb-4">Cleanup Options</h2> <div class="space-y-3 text-gh-text"><label class="flex items-center gap-3 cursor-pointer"><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green"/> <span class="flex-1">Delete empty sessions <span class="text-gh-text-secondary"> </span></span></label> <label><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green disabled:opacity-50"/> <span class="flex-1">Preserve sessions with todos <span class="text-gh-text-secondary"> </span></span></label> <label class="flex items-center gap-3 cursor-pointer"><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green"/> <span class="flex-1">Delete orphan agents <span class="text-gh-text-secondary"> </span></span></label> <label class="flex items-center gap-3 cursor-pointer"><input type="checkbox" class="w-4 h-4 rounded border-gh-border bg-gh-bg text-gh-green focus:ring-gh-green"/> <span class="flex-1">Delete orphan todos <span class="text-gh-text-secondary"> </span></span></label></div> <div class="mt-4 pt-4 border-t border-gh-border text-sm text-gh-text-secondary"><!> <!> <!> <!></div> <div class="flex gap-2 mt-6 justify-end"><button class="px-4 py-2 text-sm rounded-md border border-gh-border hover:bg-gh-border-subtle">Cancel</button> <button class="px-4 py-2 text-sm rounded-md bg-gh-red text-white hover:bg-red-700 disabled:opacity-50"> </button></div></div></div>'),Mr=b('<div class="fixed bottom-4 right-4 bg-gh-green text-white px-5 py-3 rounded-md text-sm z-50"><!> <!> <!> <!></div>'),Nr=b('<div class="min-h-screen flex flex-col bg-gh-bg text-gh-text"><header class="bg-gh-bg-secondary border-b border-gh-border px-8 py-4 flex justify-between items-center"><div class="flex items-center gap-3"><a class="flex items-center gap-2 hover:text-gh-accent"><svg class="w-6 h-6 text-gh-accent" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg> <span class="text-2xl font-semibold hidden sm:inline">Claude Sessions</span></a> <!> <button class="p-1.5 rounded-md text-gh-text-secondary hover:text-gh-text hover:bg-gh-border-subtle transition-colors"><!></button></div> <div class="relative flex-1 max-w-md mx-8"><input type="text" placeholder="Search sessions..." class="w-full px-4 py-2 bg-gh-bg border border-gh-border rounded-md text-sm focus:outline-none focus:border-gh-accent"/> <!> <!></div> <div class="flex gap-2"><button class="bg-gh-border-subtle border border-gh-border text-gh-text px-4 py-2 rounded-md text-sm transition-colors hover:bg-gh-border hover:border-gh-text-secondary disabled:opacity-50 disabled:cursor-not-allowed"> </button> <button class="bg-gh-red border border-gh-red text-white px-4 py-2 rounded-md text-sm transition-colors hover:bg-red-700 disabled:opacity-50 disabled:cursor-not-allowed"> </button></div></header> <main><!></main></div> <!> <!> <!> <!>',1);function Wr(x,O){Kt(O,!0);const U=()=>ut(he,"$themePreference",ue),G=()=>ut(gt,"$effectiveTheme",ue),[ue,je]=Xt(),I=L(()=>vt.url.pathname.startsWith("/session/")),Ie=t=>{const r="___DOT___";let d=t.replace(/--/g,r).replace(/-/g,"/").replace(new RegExp(r,"g"),"/.");const m=d.match(/^\/Users\/[^/]+\/(.+)$/);return m?`~/${m[1]}`:d},X=L(()=>{if(!e(I))return null;const t=vt.url.pathname.match(/^\/session\/([^/]+)\/([^/]+)/);return t?{projectName:decodeURIComponent(t[1]),sessionId:decodeURIComponent(t[2])}:null});let ve=g(""),q=g(!1),Me=g(!1),pe=g(!1),D=g(null),T=g(null),Ne=g(null),Fe=g("info"),R=g(ct({show:!1,title:"",message:"",variant:"default",onConfirm:()=>{}}));const Oe=(t,r="info")=>{s(Ne,t,!0),s(Fe,r,!0)},mt=(t,r,d,m="default")=>{s(R,{show:!0,title:t,message:r,variant:m,onConfirm:d},!0)},Ge=()=>{s(R,{...e(R),show:!1},!0)};let ge=g(""),_=g(ct([])),Y=g(!1),me=g(!1),J=g(!1),De=null,M=g(!0),Z=g(!0),P=g(!0),V=g(!1),Re=L(()=>e(D)?.reduce((t,r)=>t+r.emptySessions.length,0)??0),ee=L(()=>e(D)?.reduce((t,r)=>t+r.emptyWithTodosCount,0)??0),fe=L(()=>e(D)?.reduce((t,r)=>t+r.orphanAgentCount,0)??0),xe=L(()=>e(D)?.reduce((t,r)=>t+r.orphanTodoCount,0)??0),be=L(()=>e(Z)?e(Re)-e(ee):e(Re));ht(()=>ur()),ht(async()=>{try{const t=await tr();s(ve,t.version,!0),rr.set({version:t.version,homeDir:t.homeDir,currentProjectName:t.currentProjectName})}catch{s(ve,"unknown")}});const ft=()=>{mt("Shutdown","Shutdown the server?",async()=>{Ge(),s(Me,!0);try{await or()}catch{}},"danger")},xt=async()=>{try{s(D,await sr(),!0),s(pe,!0)}catch(t){Oe(`Error: ${t}`,"error")}},Pe=()=>{s(pe,!1),s(D,null)},bt=async()=>{if(e(be)===0&&!e(P)&&!e(V)){Oe("Nothing to clean up","warning");return}s(q,!0);try{s(T,await nr({clearEmpty:e(M),clearInvalid:!1,skipWithTodos:e(Z),clearOrphanAgents:e(P),clearOrphanTodos:e(V)}),!0),s(pe,!1),s(D,null),setTimeout(()=>{s(T,null),window.location.reload()},2e3)}catch(t){Oe(`Error: ${t}`,"error")}finally{s(q,!1)}},_t=t=>{const r=t.target.value;if(s(ge,r,!0),De&&clearTimeout(De),!r.trim()){s(_,[],!0),s(J,!1);return}De=setTimeout(()=>yt(r),300)},ze=t=>{const r=e(X);return r?[...t].sort((d,m)=>{const y=d.projectName===r.projectName&&d.sessionId===r.sessionId,p=m.projectName===r.projectName&&m.sessionId===r.sessionId;return y&&!p?-1:!y&&p?1:0}):t},yt=async t=>{if(!t.trim())return;const r=e(X);s(Y,!0),s(J,!0);try{const d=await qe(t,{searchContent:!1,project:r?.projectName});s(_,ze(d),!0)}catch(d){console.error("Title search error:",d)}finally{s(Y,!1)}s(me,!0);try{if(r){const p=await qe(t,{searchContent:!0,project:r.projectName}),f=new Set(e(_).map(k=>`${k.projectName}:${k.sessionId}`)),w=p.filter(k=>!f.has(`${k.projectName}:${k.sessionId}`));s(_,ze([...e(_),...w]),!0)}const d=await qe(t,{searchContent:!0}),m=new Set(e(_).map(p=>`${p.projectName}:${p.sessionId}`)),y=d.filter(p=>!m.has(`${p.projectName}:${p.sessionId}`));s(_,ze([...e(_),...y]),!0)}catch(d){console.error("Content search error:",d)}finally{s(me,!1)}},wt=t=>{s(ge,""),s(_,[],!0),s(J,!1),cr(`/session/${encodeURIComponent(t.projectName)}/${encodeURIComponent(t.sessionId)}`)},Ct=()=>{setTimeout(()=>{s(J,!1)},200)};var Xe=Nr();dr("12qhfyh",t=>{Ft(()=>{Gt.title="Claude Sessions"})});var Ee=de(Xe),Ae=o(Ee),Be=o(Ae),We=o(Be),Ye=a(We,2);{var kt=t=>{var r=pr(),d=o(r);n(r),C(()=>u(d,`v${e(ve)??""}`)),i(t,r)};v(Ye,t=>{e(ve)&&t(kt)})}var _e=a(Ye,2),$t=o(_e);{var Tt=t=>{var r=gr();i(t,r)},St=t=>{var r=mr();i(t,r)},jt=t=>{var r=fr();i(t,r)};v($t,t=>{G()==="light"?t(Tt):U()==="system"?t(St,1):t(jt,-1)})}n(_e),n(Be);var Ue=a(Be,2),K=o(Ue);ce(K);var Ze=a(K,2);{var It=t=>{var r=xr();i(t,r)};v(Ze,t=>{(e(Y)||e(me))&&t(It)})}var Mt=a(Ze,2);{var Nt=t=>{var r=$r(),d=o(r);{var m=f=>{var w=br();i(f,w)},y=f=>{var w=_r();i(f,w)},p=f=>{var w=kr(),k=de(w);lr(k,17,()=>e(_),ir,(c,$)=>{var H=wr(),re=o(H),E=o(re),ae=o(E,!0);n(E);var Q=a(E,2),we=o(Q,!0);n(Q);var Ce=a(Q,2),ke=o(Ce,!0);n(Ce),n(re);var se=a(re,2);{var $e=A=>{var oe=yr(),ne=o(oe,!0);n(oe),C(()=>u(ne,e($).snippet)),i(A,oe)};v(se,A=>{e($).snippet&&A($e)})}n(H),C(A=>{Le(E,1,`text-xs px-1.5 py-0.5 rounded ${e($).matchType==="title"?"bg-gh-green/20 text-gh-green":"bg-gh-accent/20 text-gh-accent"}`),u(ae,e($).matchType==="title"?"Title":"Content"),u(we,A),u(ke,e($).title)},[()=>Ie(e($).projectName)]),N("click",H,()=>wt(e($))),i(c,H)});var z=a(k,2);{var h=c=>{var $=Cr();i(c,$)};v(z,c=>{e(me)&&c(h)})}i(f,w)};v(d,f=>{e(_).length===0&&e(Y)?f(m):e(_).length===0?f(y,1):f(p,-1)})}n(r),i(t,r)};v(Mt,t=>{e(J)&&(e(_).length>0||e(Y))&&t(Nt)})}n(Ue);var et=a(Ue,2),te=o(et),Ot=o(te,!0);n(te);var ye=a(te,2),Dt=o(ye,!0);n(ye),n(et),n(Ae);var Ve=a(Ae,2),Rt=o(Ve);Yt(Rt,()=>O.children),n(Ve),n(Ee);var tt=a(Ee,2);{var Pt=t=>{var r=Ir(),d=o(r),m=a(o(d),2),y=o(m),p=o(y);ce(p);var f=a(p,2),w=a(o(f)),k=o(w);n(w),n(f),n(y);var z=a(y,2);let h;var c=o(z);ce(c);var $=a(c,2),H=a(o($)),re=o(H);n(H),n($),n(z);var E=a(z,2),ae=o(E);ce(ae);var Q=a(ae,2),we=a(o(Q)),Ce=o(we);n(we),n(Q),n(E);var ke=a(E,2),se=o(ke);ce(se);var $e=a(se,2),A=a(o($e)),oe=o(A);n(A),n($e),n(ke),n(m);var ne=a(m,2),st=o(ne);{var At=l=>{var j=Tr(),B=de(j),le=a(B);{var ie=S=>{var F=W();C(()=>u(F,`(skipping ${e(ee)??""} with todos)`)),i(S,F)};v(le,S=>{e(Z)&&e(ee)>0&&S(ie)})}C(()=>u(B,`Will delete ${e(be)??""} session${e(be)!==1?"s":""} `)),i(l,j)};v(st,l=>{e(M)&&l(At)})}var ot=a(st,2);{var Bt=l=>{var j=Sr(),B=de(j);{var le=S=>{var F=W(",");i(S,F)};v(B,S=>{e(M)&&S(le)})}var ie=a(B);C(()=>u(ie,` ${e(fe)??""} orphan agent${e(fe)!==1?"s":""}`)),i(l,j)};v(ot,l=>{e(P)&&e(fe)>0&&l(Bt)})}var nt=a(ot,2);{var Wt=l=>{var j=jr(),B=de(j);{var le=S=>{var F=W(",");i(S,F)};v(B,S=>{(e(M)||e(P))&&S(le)})}var ie=a(B);C(()=>u(ie,` ${e(xe)??""} orphan todo${e(xe)!==1?"s":""}`)),i(l,j)};v(nt,l=>{e(V)&&e(xe)>0&&l(Wt)})}var Ut=a(nt,2);{var Vt=l=>{var j=W("Nothing selected");i(l,j)};v(Ut,l=>{!e(M)&&!e(P)&&!e(V)&&l(Vt)})}n(ne);var lt=a(ne,2),it=o(lt),Te=a(it,2),Ht=o(Te,!0);n(Te),n(lt),n(d),n(r),C(()=>{u(k,`(${e(Re)??""})`),h=Le(z,1,"flex items-center gap-3 cursor-pointer ml-6",null,h,{"opacity-50":!e(M)}),c.disabled=!e(M),u(re,`(${e(ee)>0?`-${e(ee)}`:"0"})`),u(Ce,`(${e(fe)??""})`),u(oe,`(${e(xe)??""})`),Te.disabled=e(q)||e(be)===0&&!e(P)&&!e(V),u(Ht,e(q)?"Cleaning...":"Execute Cleanup")}),N("click",r,l=>l.target===l.currentTarget&&Pe()),N("keydown",r,l=>l.key==="Escape"&&Pe()),Se(p,()=>e(M),l=>s(M,l)),Se(c,()=>e(Z),l=>s(Z,l)),Se(ae,()=>e(P),l=>s(P,l)),Se(se,()=>e(V),l=>s(V,l)),N("click",it,Pe),N("click",Te,bt),i(t,r)};v(tt,t=>{e(pe)&&e(D)&&t(Pt)})}var rt=a(tt,2);{var zt=t=>{var r=Mr(),d=o(r);{var m=h=>{var c=W();C(()=>u(c,`Removed ${e(T).removedMessageCount??""} invalid messages.`)),i(h,c)};v(d,h=>{e(T).removedMessageCount>0&&h(m)})}var y=a(d,2);{var p=h=>{var c=W();C(()=>u(c,`Deleted ${e(T).deletedCount??""} empty sessions.`)),i(h,c)};v(y,h=>{e(T).deletedCount>0&&h(p)})}var f=a(y,2);{var w=h=>{var c=W();C(()=>u(c,`Deleted ${e(T).deletedOrphanAgentCount??""} orphan agents.`)),i(h,c)};v(f,h=>{e(T).deletedOrphanAgentCount>0&&h(w)})}var k=a(f,2);{var z=h=>{var c=W();C(()=>u(c,`Deleted ${e(T).deletedOrphanTodoCount??""} orphan todos.`)),i(h,c)};v(k,h=>{e(T).deletedOrphanTodoCount>0&&h(z)})}n(r),i(t,r)};v(rt,t=>{e(T)&&t(zt)})}var at=a(rt,2);Zt(at,{get show(){return e(R).show},get title(){return e(R).title},get message(){return e(R).message},get variant(){return e(R).variant},get onConfirm(){return e(R).onConfirm},onCancel:Ge});var Et=a(at,2);er(Et,{get variant(){return e(Fe)},get message(){return e(Ne)},set message(t){s(Ne,t,!0)}}),C(t=>{He(We,"href",t),He(We,"title",e(X)?"Back to project":"Claude Sessions"),He(_e,"title",`Theme: ${U()??""} (${G()??""})`),ar(K,e(ge)),te.disabled=e(q),u(Ot,e(q)?"Cleaning...":"Cleanup"),ye.disabled=e(Me),u(Dt,e(Me)?"Shutting down...":"Shutdown"),Le(Ve,1,`flex-1 ${e(I)?"":"p-8 max-w-7xl mx-auto"} w-full overflow-y-auto`)},[()=>e(X)?`/#project=${encodeURIComponent(e(X).projectName)}`:"/"]),N("click",_e,function(...t){vr?.apply(this,t)}),N("input",K,_t),dt("focus",K,()=>e(ge)&&s(J,!0)),dt("blur",K,Ct),N("click",te,xt),N("click",ye,ft),i(x,Xe),Qt(),je()}Lt(["click","input","keydown"]);export{Wr as component,Br as universal};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as v,a as b,s as c}from"../chunks/
|
|
1
|
+
import{f as v,a as b,s as c}from"../chunks/DBydSc_k.js";import{x,y,u as i,z as k,A as u,B as z,g as h,D as A,F as B,G as D,p as E,f as F,t as G,c as j,d as m,r as _,e as q}from"../chunks/BWi4DUSP.js";import{p as g}from"../chunks/xX_XT4gL.js";function w(r=!1){const t=x,e=t.l.u;if(!e)return;let a=()=>A(t.s);if(r){let o=0,s={};const f=B(()=>{let p=!1;const l=t.s;for(const n in l)l[n]!==s[n]&&(s[n]=l[n],p=!0);return p&&o++,o});a=()=>h(f)}e.b.length&&y(()=>{d(t,a),u(e.b)}),i(()=>{const o=k(()=>e.m.map(z));return()=>{for(const s of o)typeof s=="function"&&s()}}),e.a.length&&i(()=>{d(t,a),u(e.a)})}function d(r,t){if(r.l.s)for(const e of r.l.s)h(e);t()}D();var C=v("<h1> </h1> <p> </p>",1);function K(r,t){E(t,!1),w();var e=C(),a=F(e),o=m(a,!0);_(a);var s=q(a,2),f=m(s,!0);_(s),G(()=>{c(o,g.status),c(f,g.error?.message)}),b(r,e),j()}export{K as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{f as q,a as H,s as _e}from"../chunks/DBydSc_k.js";import{p as xe,s as l,a as y,u as De,g as e,b as o,o as $e,f as Ae,c as be,d as oe,e as T,h as ae,r as ne,t as Fe}from"../chunks/BWi4DUSP.js";import{s as Le,i as re,a as Re}from"../chunks/CV88cyNb.js";import{P as Oe,S as Ee,T as Ve,C as ke,I as He,e as U,a as Ue,g as W,l as We,r as qe,b as ze,c as Be,d as Ge,f as Je,h as Ke,i as Qe,u as Xe,s as Ye,m as Ze,j as et}from"../chunks/CIVgrm-h.js";var tt=q('<div class="fixed bottom-4 right-4 bg-gh-accent text-white px-4 py-2 rounded">Loading...</div>'),st=q('<div class="fixed bottom-4 right-4 bg-gh-red text-white px-4 py-2 rounded"> </div>'),ot=q('<div class="grid grid-cols-[350px_1fr] gap-4 h-[calc(100vh-120px)]"><!> <!></div> <!> <!> <!> <!> <!>',1);function ct(ie,ce){xe(ce,!0);const z=()=>Le(Ue,"$appConfig",de),[de,ue]=Re();let h=l(y([])),c=l(y(new Map)),m=l(y(new Map)),f=l(y(new Set)),i=l(null),p=l(y([])),$=l(y([])),A=l(y([])),w=l(!1),N=l(null),u=l(null),_=l(null),I=l("summary"),P=l("desc"),b=l("message"),j=l(y({show:!1,title:"",message:"",variant:"default",onConfirm:()=>{}})),v=l(y({show:!1,title:"",label:"",initialValue:"",onConfirm:()=>{}}));const F=(t,s,a,n="default")=>{o(j,{show:!0,title:t,message:s,variant:n,onConfirm:a},!0)},x=()=>{o(j,{...e(j),show:!1},!0)},B=(t,s,a,n)=>{o(v,{show:!0,title:t,label:s,initialValue:a,onConfirm:n},!0)},L=()=>{o(v,{...e(v),show:!1},!0)},R=()=>{const t=window.location.hash.slice(1),s=new URLSearchParams(t);return{project:s.get("project")??void 0,session:s.get("session")??void 0}},C=(t,s)=>{const a=new URLSearchParams;t&&a.set("project",t),s&&a.set("session",s);const n=a.toString();window.history.replaceState(null,"",n?`#${n}`:window.location.pathname)},le=async()=>{o(w,!0),o(u,null);try{o(h,await We(),!0)}catch(t){o(u,String(t),!0)}finally{o(w,!1)}},O=async t=>{if(!e(c).has(t)){o(N,t,!0);try{const s=await U(t,{field:e(I),order:e(P)}),a=[],n=new Map;for(const r of s)a.push({id:r.id,projectName:t,title:r.title,messageCount:r.messageCount,createdAt:r.createdAt,updatedAt:r.updatedAt}),n.set(r.id,r);e(c).set(t,a),o(c,new Map(e(c)),!0),e(m).set(t,n),o(m,new Map(e(m)),!0)}catch(s){o(u,String(s),!0)}finally{o(N,null)}}},E=async()=>{const{project:t,session:s}=R();if(t&&(await O(t),e(f).add(t),o(f,new Set(e(f)),!0),s)){const n=e(c).get(t)?.find(r=>r.id===s);n&&await G(n,!1)}},pe=async()=>{const{project:t}=R();if(t)return;const s=z().currentProjectName;if(!s)return;e(h).find(n=>n.name===s)&&(await O(s),e(f).add(s),o(f,new Set(e(f)),!0),C(s))},ge=async t=>{e(f).has(t)?(e(f).delete(t),o(f,new Set(e(f)),!0),e(i)?.projectName===t&&C()):(await O(t),e(f).add(t),o(f,new Set(e(f)),!0),C(t,e(i)?.projectName===t?e(i).id:void 0))},G=async(t,s=!0)=>{o(i,t,!0),o(w,!0),o(u,null);try{o(p,await W(t.projectName,t.id),!0);const a=e(m).get(t.projectName)?.get(t.id);if(a){const n=a.todos?.sessionTodos??[],r=a.todos?.agentTodos?.flatMap(g=>g.todos)??[];o($,[...n,...r],!0),o(A,a.agents??[],!0)}else{const n=await Be(t.projectName,t.id),r=n.todos?.sessionTodos??[],g=n.todos?.agentTodos?.flatMap(d=>d.todos)??[];o($,[...r,...g],!0),o(A,n.agents??[],!0)}s&&C(t.projectName,t.id)}catch(a){o(u,String(a),!0)}finally{o(w,!1)}},me=(t,s)=>{t.stopPropagation(),F("Delete Session",`Delete session "${s.title}"?`,async()=>{x();try{await Ke(s.projectName,s.id);const a=e(c).get(s.projectName);a&&(e(c).set(s.projectName,a.filter(n=>n.id!==s.id)),o(c,new Map(e(c)),!0)),e(i)?.id===s.id&&(o(i,null),o(p,[],!0),C(s.projectName))}catch(a){o(u,String(a),!0)}},"danger")},fe=(t,s)=>{t.stopPropagation();const a=e(m).get(s.projectName)?.get(s.id),n=ze(a?.customTitle,a?.currentSummary,s.title,1/0,"");B("Rename Session","Sets custom-title for CLI, first summary for VSCode extension",n,async r=>{if(L(),r!==n)try{await Qe(s.projectName,s.id,r),a&&(a.customTitle=r,a.currentSummary=r,a.summaries.length>0?a.summaries[0]={...a.summaries[0],summary:r}:a.summaries=[{summary:r}]),o(c,new Map(e(c)),!0),o(m,new Map(e(m)),!0),e(i)?.id===s.id&&o(p,await W(s.projectName,s.id),!0)}catch(g){o(u,String(g),!0)}})},he=async t=>{if(!e(i))return;const s=t.uuid||t.messageId||t.leafUuid;if(!s)return;const a=t.type==="file-history-snapshot"?"file-history-snapshot":t.type==="summary"?"summary":void 0,n=[...e(p)];Ge(n,s,a),o(p,n,!0);const g=e(c).get(e(i).projectName)?.find(d=>d.id===e(i).id);g&&(g.messageCount=e(p).length,o(c,new Map(e(c)),!0)),Je(e(i).projectName,e(i).id,s,a).catch(d=>{o(u,String(d),!0)})},Se=t=>{if(!e(i))return;const s=t.customTitle??"";B("Edit Custom Title","Custom title:",s,async a=>{if(L(),a!==s)try{await Xe(e(i).projectName,e(i).id,t.uuid,a),t.customTitle=a,o(p,[...e(p)],!0)}catch(n){o(u,String(n),!0)}})},we=t=>{if(!e(i))return;const s=e(p).findIndex(r=>r.uuid===t.uuid),a=s,n=e(p).length-s;F("Split Session",`Split session at this message?
|
|
2
|
+
|
|
3
|
+
This session will keep ${n} messages (from here onwards).
|
|
4
|
+
Old messages (${a}) will be moved to a new session.`,async()=>{x();const r=e(i).projectName,g=e(i).id;try{o(w,!0);const d=await Ye(r,g,t.uuid);if(d.success&&d.newSessionId){const M=await U(r,{field:e(I),order:e(P)}),D=[],te=new Map;for(const S of M)D.push({id:S.id,projectName:r,title:S.title,messageCount:S.messageCount,createdAt:S.createdAt,updatedAt:S.updatedAt}),te.set(S.id,S);e(c).set(r,D),o(c,new Map(e(c)),!0),e(m).set(r,te),o(m,new Map(e(m)),!0);const se=e(h).find(S=>S.name===r);se&&(se.sessionCount=D.length,o(h,[...e(h)],!0)),o(p,e(p).slice(s),!0);const k=D.find(S=>S.id===g);k&&(k.messageCount=e(p).length,o(i,{...k},!0)),o(_,`Session split! Old messages moved to new session: ${d.newSessionId.slice(0,8)}...`)}else o(u,d.error??"Failed to split session",!0)}catch(d){o(u,String(d),!0)}finally{o(w,!1)}})},ye=(t,s)=>{F("Move Session",`Move session "${t.title}" to ${s.split("-").pop()}?`,async()=>{x();try{o(w,!0);const a=await Ze(t.projectName,t.id,s);if(a.success){const n=e(c).get(t.projectName);n&&e(c).set(t.projectName,n.filter(M=>M.id!==t.id));const r=await et(s);e(c).set(s,r),o(c,new Map(e(c)),!0);const g=e(h).find(M=>M.name===t.projectName),d=e(h).find(M=>M.name===s);g&&g.sessionCount--,d&&d.sessionCount++,o(h,[...e(h)],!0),e(i)?.id===t.id&&(o(i,null),o(p,[],!0),C())}else o(u,a.error??"Failed to move session",!0)}catch(a){o(u,String(a),!0)}finally{o(w,!1)}})},je=async(t,s)=>{t.stopPropagation();try{const a=await qe(s.projectName,s.id);a.success?o(_,`Claude session started (PID: ${a.pid})`):o(u,a.error??"Failed to resume session",!0)}catch(a){o(u,String(a),!0)}};let J=l(!1);De(()=>{if(z().currentProjectName&&e(h).length>0&&!e(J)){const{project:s}=R();s||(o(J,!0),pe())}});const ve=async(t,s)=>{o(I,t,!0),o(P,s,!0),localStorage.setItem("claudeSessionsSortField",t),localStorage.setItem("claudeSessionsSortOrder",s);for(const a of e(f)){o(N,a,!0);try{const n=await U(a,{field:t,order:s}),r=[],g=new Map;for(const d of n)r.push({id:d.id,projectName:a,title:d.title,messageCount:d.messageCount,createdAt:d.createdAt,updatedAt:d.updatedAt}),g.set(d.id,d);e(c).set(a,r),e(m).set(a,g)}catch(n){o(u,String(n),!0)}}o(c,new Map(e(c)),!0),o(m,new Map(e(m)),!0),o(N,null)},Me=t=>{o(b,t,!0),localStorage.setItem("claudeSessionsTitleMode",t)},Ce=()=>{const t=localStorage.getItem("claudeSessionsSortField"),s=localStorage.getItem("claudeSessionsSortOrder"),a=localStorage.getItem("claudeSessionsTitleMode");t&&o(I,t,!0),s&&o(P,s,!0),(a==="message"||a==="datetime")&&o(b,a,!0)};$e(()=>(Ce(),le().then(()=>E()),window.addEventListener("hashchange",E),()=>window.removeEventListener("hashchange",E)));var K=ot(),V=Ae(K),Q=oe(V);Oe(Q,{get projects(){return e(h)},get projectSessions(){return e(c)},get projectSessionData(){return e(m)},get expandedProjects(){return e(f)},get selectedSession(){return e(i)},get loadingProject(){return e(N)},get sortField(){return e(I)},get sortOrder(){return e(P)},get titleDisplayMode(){return e(b)},onToggleProject:ge,onSelectSession:G,onRenameSession:fe,onDeleteSession:me,onMoveSession:ye,onResumeSession:je,onSortChange:ve,onTitleModeChange:Me});var Te=T(Q,2);{let t=ae(()=>e(i)?e(m).get(e(i).projectName)?.get(e(i).id)?.customTitle:void 0),s=ae(()=>e(i)?e(m).get(e(i).projectName)?.get(e(i).id)?.currentSummary:void 0);Ee(Te,{get session(){return e(i)},get messages(){return e(p)},get todos(){return e($)},get agents(){return e(A)},get customTitle(){return e(t)},get currentSummary(){return e(s)},onMessagesChange:a=>o(p,a,!0),onRefresh:async()=>{e(i)&&o(p,await W(e(i).projectName,e(i).id),!0)},onDeleteMessage:he,onEditTitle:Se,onSplitSession:we})}ne(V);var X=T(V,2);{var Ne=t=>{var s=tt();H(t,s)};re(X,t=>{e(w)&&t(Ne)})}var Y=T(X,2);{var Ie=t=>{var s=st(),a=oe(s,!0);ne(s),Fe(()=>_e(a,e(u))),H(t,s)};re(Y,t=>{e(u)&&t(Ie)})}var Z=T(Y,2);Ve(Z,{get message(){return e(_)},set message(t){o(_,t,!0)}});var ee=T(Z,2);ke(ee,{get show(){return e(j).show},get title(){return e(j).title},get message(){return e(j).message},get variant(){return e(j).variant},get onConfirm(){return e(j).onConfirm},onCancel:x});var Pe=T(ee,2);He(Pe,{get show(){return e(v).show},get title(){return e(v).title},get label(){return e(v).label},get initialValue(){return e(v).initialValue},get onConfirm(){return e(v).onConfirm},onCancel:L}),H(ie,K),be(),ue()}export{ct as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{f as z,a as M,s as ie}from"../chunks/DBydSc_k.js";import{p as le,s as i,a as C,o as ue,f as ce,g as e,c as de,i as me,b as s,e as x,$ as pe,h as j,d as $,r as R,t as ge}from"../chunks/BWi4DUSP.js";import{i as fe}from"../chunks/CV88cyNb.js";import{h as he}from"../chunks/tmOlV5v8.js";import{g as Se}from"../chunks/Dn1P-MHB.js";import{p as W}from"../chunks/xX_XT4gL.js";import{T as ve,C as we,I as ye,l as Ce,j as Te,g as k,c as U,S as je,r as _e,u as Ie,s as Ne,i as be,k as De,h as Me}from"../chunks/CIVgrm-h.js";var xe=z('<div class="flex items-center justify-center h-full"><div class="text-gh-muted">Loading...</div></div>'),$e=z('<div class="flex items-center justify-center h-full"><div class="text-gh-red"> </div></div>'),Re=z('<div class="h-screen bg-gh-bg"><!></div> <!> <!> <!>',1);function Fe(q,B){le(B,!0);let o=i(null),u=i(C([])),_=i(C([])),I=i(C([])),g=i(!0),l=i(null),w=i(null),V=i(3e3),E=i(""),f=i(void 0),d=i(void 0),m=i(C({show:!1,title:"",message:"",variant:"default",onConfirm:()=>{}})),p=i(C({show:!1,title:"",label:"",initialValue:"",onConfirm:()=>{}}));const N=(t,n,r,a="default")=>{s(m,{show:!0,title:t,message:n,variant:a,onConfirm:r},!0)},T=()=>{s(m,{...e(m),show:!1},!0)},O=(t,n,r,a)=>{s(p,{show:!0,title:t,label:n,initialValue:r,onConfirm:a},!0)},b=()=>{s(p,{...e(p),show:!1},!0)},h=j(()=>decodeURIComponent(W.params.project??"")),y=j(()=>decodeURIComponent(W.params.id??"")),G=j(()=>e(f)??(e(d)&&e(d).length>50?e(d).slice(0,47)+"...":e(d))??e(o)?.title??"Untitled"),P=j(()=>`/#project=${encodeURIComponent(e(h))}`),H=async()=>{s(g,!0),s(l,null);try{const n=(await Ce()).find(v=>v.name===e(h));s(E,n?.displayName??e(h),!0);const r=await Te(e(h));s(o,r.find(v=>v.id===e(y))??{id:e(y),projectName:e(h),title:e(y),messageCount:0,updatedAt:new Date().toISOString()},!0),s(u,await k(e(h),e(y)),!0);const a=await U(e(h),e(y)),c=a.todos?.sessionTodos??[],S=a.todos?.agentTodos?.flatMap(v=>v.todos)??[];s(_,[...c,...S],!0),s(I,a.agents??[],!0),s(f,a.customTitle,!0),s(d,a.currentSummary,!0)}catch(t){s(l,String(t),!0)}finally{s(g,!1)}},J=t=>{if(!e(o))return;const n=t.customTitle??"";O("Edit Custom Title","Custom title:",n,async r=>{if(b(),r!==n)try{await Ie(e(o).projectName,e(o).id,t.uuid,r),t.customTitle=r,s(u,[...e(u)],!0)}catch(a){s(l,String(a),!0)}})},K=t=>{if(!e(o))return;const n=e(u).findIndex(c=>c.uuid===t.uuid),r=n,a=e(u).length-n;N("Split Session",`Split session at this message?
|
|
2
|
+
|
|
3
|
+
This session will keep ${a} messages (from here onwards).
|
|
4
|
+
Old messages (${r}) will be moved to a new session.`,async()=>{T();try{s(g,!0);const c=await Ne(e(o).projectName,e(o).id,t.uuid);if(c.success&&c.newSessionId){s(u,e(u).slice(n),!0),s(w,`Session split! Old messages moved to new session: ${c.newSessionId.slice(0,8)}...`);try{const S=await U(e(o).projectName,e(o).id);s(d,S.currentSummary,!0),s(f,S.customTitle,!0),s(I,S.agents??[],!0);const v=S.todos?.sessionTodos??[],re=S.todos?.agentTodos?.flatMap(ae=>ae.todos)??[];s(_,[...v,...re],!0)}catch{}}else s(l,c.error??"Failed to split session",!0)}catch(c){s(l,String(c),!0)}finally{s(g,!1)}})},Q=()=>{e(o)&&O("Rename Session","Session title:",e(f)??e(d)??e(o).title??"",async t=>{b();const n=t.trim();if(n)try{await be(e(o).projectName,e(o).id,n),s(f,n,!0);const r=await U(e(o).projectName,e(o).id);s(d,r.currentSummary,!0)}catch(r){s(l,String(r),!0)}})},X=()=>{e(o)&&N("Compress Session",`Compress this session?
|
|
5
|
+
|
|
6
|
+
This will remove redundant data (progress messages and intermediate snapshots, keeping only the first and last) to reduce file size. This action cannot be undone.`,async()=>{T();try{s(g,!0);const t=await De(e(o).projectName,e(o).id);if(t.success){const n=t.originalSize>0?Math.round((1-t.compressedSize/t.originalSize)*100):0;s(V,8e3),s(w,`Session compressed! Saved ~${n}% (removed ${t.removedProgress} progress, ${t.removedSnapshots} snapshots)`),s(u,await k(e(o).projectName,e(o).id),!0)}}catch(t){s(l,String(t),!0)}finally{s(g,!1)}})},Y=async()=>{if(e(o))try{const t=await _e(e(o).projectName,e(o).id);t.success?s(w,`Session resumed (PID: ${t.pid})`):s(l,t.error??"Failed to resume session",!0)}catch(t){s(l,String(t),!0)}},Z=()=>{e(o)&&N("Delete Session",`Delete this session?
|
|
7
|
+
|
|
8
|
+
"${e(f)??e(o).title}"
|
|
9
|
+
|
|
10
|
+
This action cannot be undone.`,async()=>{T();try{await Me(e(o).projectName,e(o).id),Se(e(P))}catch(t){s(l,String(t),!0)}},"danger")};ue(H);var F=Re();he("ik3mmh",t=>{me(()=>{pe.title=`${e(G)??""} - Claude Sessions`})});var D=ce(F),ee=$(D);{var te=t=>{var n=xe();M(t,n)},se=t=>{var n=$e(),r=$(n),a=$(r,!0);R(r),R(n),ge(()=>ie(a,e(l))),M(t,n)},oe=t=>{je(t,{get session(){return e(o)},get messages(){return e(u)},get agents(){return e(I)},get todos(){return e(_)},get customTitle(){return e(f)},get currentSummary(){return e(d)},get projectDisplayName(){return e(E)},get backUrl(){return e(P)},onMessagesChange:n=>s(u,n,!0),onRefresh:async()=>{e(o)&&s(u,await k(e(o).projectName,e(o).id),!0)},onEditTitle:J,onSplitSession:K,onCompressSession:X,onRenameSession:Q,onResumeSession:Y,onDeleteSession:Z,enableScroll:!0,fullWidth:!0})};fe(ee,t=>{e(g)?t(te):e(l)?t(se,1):t(oe,-1)})}R(D);var A=x(D,2);ve(A,{get duration(){return e(V)},get message(){return e(w)},set message(t){s(w,t,!0)}});var L=x(A,2);we(L,{get show(){return e(m).show},get title(){return e(m).title},get message(){return e(m).message},get variant(){return e(m).variant},get onConfirm(){return e(m).onConfirm},onCancel:T});var ne=x(L,2);ye(ne,{get show(){return e(p).show},get title(){return e(p).title},get label(){return e(p).label},get initialValue(){return e(p).initialValue},get onConfirm(){return e(p).onConfirm},onCancel:b}),M(q,F),de()}export{Fe as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1774802035036"}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const ssr = true;
|
|
2
|
+
|
|
3
|
+
var _layout_ts = /*#__PURE__*/Object.freeze({
|
|
4
|
+
__proto__: null,
|
|
5
|
+
ssr: ssr
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
const index = 0;
|
|
9
|
+
let component_cache;
|
|
10
|
+
const component = async () => component_cache ??= (await import('./_layout.svelte-Ci8sOmOu.js')).default;
|
|
11
|
+
const universal_id = "src/routes/+layout.ts";
|
|
12
|
+
const imports = ["_app/immutable/nodes/0.BNXYVuau.js","_app/immutable/chunks/DBydSc_k.js","_app/immutable/chunks/BWi4DUSP.js","_app/immutable/chunks/CV88cyNb.js","_app/immutable/chunks/CIVgrm-h.js","_app/immutable/chunks/DXCdBROZ.js","_app/immutable/chunks/tmOlV5v8.js","_app/immutable/chunks/Dn1P-MHB.js","_app/immutable/chunks/xX_XT4gL.js"];
|
|
13
|
+
const stylesheets = ["_app/immutable/assets/Toast.BpcxWUYz.css","_app/immutable/assets/0.CAO2ssDt.css"];
|
|
14
|
+
const fonts = [];
|
|
15
|
+
|
|
16
|
+
export { component, fonts, imports, index, stylesheets, _layout_ts as universal, universal_id };
|
|
17
|
+
//# sourceMappingURL=0-jdsum4C3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0-
|
|
1
|
+
{"version":3,"file":"0-jdsum4C3.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.ts.js","../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["const ssr = true;\nexport {\n ssr\n};\n","import * as universal from '../entries/pages/_layout.ts.js';\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport { universal };\nexport const universal_id = \"src/routes/+layout.ts\";\nexport const imports = [\"_app/immutable/nodes/0.BNXYVuau.js\",\"_app/immutable/chunks/DBydSc_k.js\",\"_app/immutable/chunks/BWi4DUSP.js\",\"_app/immutable/chunks/CV88cyNb.js\",\"_app/immutable/chunks/CIVgrm-h.js\",\"_app/immutable/chunks/DXCdBROZ.js\",\"_app/immutable/chunks/tmOlV5v8.js\",\"_app/immutable/chunks/Dn1P-MHB.js\",\"_app/immutable/chunks/xX_XT4gL.js\"];\nexport const stylesheets = [\"_app/immutable/assets/Toast.BpcxWUYz.css\",\"_app/immutable/assets/0.CAO2ssDt.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":"AAAA,MAAM,GAAG,GAAG,IAAI;;;;;;;ACEJ,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE;AAElG,MAAC,YAAY,GAAG;AAChB,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAChV,MAAC,WAAW,GAAG,CAAC,0CAA0C,CAAC,sCAAsC;AACjG,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const index = 1;
|
|
2
|
+
let component_cache;
|
|
3
|
+
const component = async () => component_cache ??= (await import('./error.svelte-7ySp2asi.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/1.DsXY_nT9.js","_app/immutable/chunks/DBydSc_k.js","_app/immutable/chunks/BWi4DUSP.js","_app/immutable/chunks/xX_XT4gL.js","_app/immutable/chunks/DXCdBROZ.js","_app/immutable/chunks/Dn1P-MHB.js"];
|
|
5
|
+
const stylesheets = [];
|
|
6
|
+
const fonts = [];
|
|
7
|
+
|
|
8
|
+
export { component, fonts, imports, index, stylesheets };
|
|
9
|
+
//# sourceMappingURL=1-BYeUhsmD.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1-
|
|
1
|
+
{"version":3,"file":"1-BYeUhsmD.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.DsXY_nT9.js\",\"_app/immutable/chunks/DBydSc_k.js\",\"_app/immutable/chunks/BWi4DUSP.js\",\"_app/immutable/chunks/xX_XT4gL.js\",\"_app/immutable/chunks/DXCdBROZ.js\",\"_app/immutable/chunks/Dn1P-MHB.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE;AACpG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpO,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const index = 2;
|
|
2
|
+
let component_cache;
|
|
3
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-D_BOH21Z.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/2.CZ0cjprV.js","_app/immutable/chunks/DBydSc_k.js","_app/immutable/chunks/BWi4DUSP.js","_app/immutable/chunks/CV88cyNb.js","_app/immutable/chunks/CIVgrm-h.js","_app/immutable/chunks/DXCdBROZ.js"];
|
|
5
|
+
const stylesheets = ["_app/immutable/assets/Toast.BpcxWUYz.css"];
|
|
6
|
+
const fonts = [];
|
|
7
|
+
|
|
8
|
+
export { component, fonts, imports, index, stylesheets };
|
|
9
|
+
//# sourceMappingURL=2-DCTjRzoT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2-
|
|
1
|
+
{"version":3,"file":"2-DCTjRzoT.js","sources":["../../../.svelte-kit/adapter-node/nodes/2.js"],"sourcesContent":["\n\nexport const index = 2;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/2.CZ0cjprV.js\",\"_app/immutable/chunks/DBydSc_k.js\",\"_app/immutable/chunks/BWi4DUSP.js\",\"_app/immutable/chunks/CV88cyNb.js\",\"_app/immutable/chunks/CIVgrm-h.js\",\"_app/immutable/chunks/DXCdBROZ.js\"];\nexport const stylesheets = [\"_app/immutable/assets/Toast.BpcxWUYz.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAkC,CAAC,EAAE;AAChG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpO,MAAC,WAAW,GAAG,CAAC,0CAA0C;AAC1D,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const index = 3;
|
|
2
|
+
let component_cache;
|
|
3
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-qf7I4k56.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/3.C2uGzWU7.js","_app/immutable/chunks/DBydSc_k.js","_app/immutable/chunks/BWi4DUSP.js","_app/immutable/chunks/CV88cyNb.js","_app/immutable/chunks/tmOlV5v8.js","_app/immutable/chunks/Dn1P-MHB.js","_app/immutable/chunks/DXCdBROZ.js","_app/immutable/chunks/xX_XT4gL.js","_app/immutable/chunks/CIVgrm-h.js"];
|
|
5
|
+
const stylesheets = ["_app/immutable/assets/Toast.BpcxWUYz.css"];
|
|
6
|
+
const fonts = [];
|
|
7
|
+
|
|
8
|
+
export { component, fonts, imports, index, stylesheets };
|
|
9
|
+
//# sourceMappingURL=3-B9BSW5vF.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3-
|
|
1
|
+
{"version":3,"file":"3-B9BSW5vF.js","sources":["../../../.svelte-kit/adapter-node/nodes/3.js"],"sourcesContent":["\n\nexport const index = 3;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/session/_project_/_id_/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/3.C2uGzWU7.js\",\"_app/immutable/chunks/DBydSc_k.js\",\"_app/immutable/chunks/BWi4DUSP.js\",\"_app/immutable/chunks/CV88cyNb.js\",\"_app/immutable/chunks/tmOlV5v8.js\",\"_app/immutable/chunks/Dn1P-MHB.js\",\"_app/immutable/chunks/DXCdBROZ.js\",\"_app/immutable/chunks/xX_XT4gL.js\",\"_app/immutable/chunks/CIVgrm-h.js\"];\nexport const stylesheets = [\"_app/immutable/assets/Toast.BpcxWUYz.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAyD,CAAC,EAAE;AACvH,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAChV,MAAC,WAAW,GAAG,CAAC,0CAA0C;AAC1D,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { x as escape_html, y as attr_class, q as stringify, M as bind_props, N as ssr_context, l as writable, O as get, A as derived } from './index-Dqbd-Nxp.js';
|
|
2
2
|
import { marked } from 'marked';
|
|
3
|
-
import {
|
|
3
|
+
import { G as maskHomePath$1 } from './index2-DXtV4Brk.js';
|
|
4
4
|
|
|
5
5
|
function onDestroy(fn) {
|
|
6
6
|
/** @type {SSRContext} */
|
|
@@ -76,4 +76,4 @@ function Toast($$renderer, $$props) {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
export { ConfirmModal as C, Toast as T, appConfig as a, formatDate as b, formatProjectName as f, maskHomePath as m, truncate as t };
|
|
79
|
-
//# sourceMappingURL=Toast-
|
|
79
|
+
//# sourceMappingURL=Toast-DphhBJuq.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast-
|
|
1
|
+
{"version":3,"file":"Toast-DphhBJuq.js","sources":["../../../.svelte-kit/adapter-node/chunks/Toast.js"],"sourcesContent":["import { q as ssr_context, e as escape_html, c as attr_class, s as stringify, t as bind_props } from \"./root.js\";\nimport { marked } from \"marked\";\nimport { e as derived, w as writable, g as get } from \"./index.js\";\nimport { G as maskHomePath$1 } from \"./index2.js\";\nfunction onDestroy(fn) {\n /** @type {SSRContext} */\n ssr_context.r.on_destroy(fn);\n}\nconst appConfig = writable({ version: \"\", homeDir: \"\", currentProjectName: \"\" });\nconst maskHomePath = (text, homeDir) => {\n const home = homeDir ?? get(appConfig).homeDir;\n if (!home) {\n return text.replace(\n /(?:\\/Users\\/[^/\\s]+|C:\\\\Users\\\\[^\\\\\\s]+)(?=[/\\\\]|(?=\\s|$|[)\"'\\]}>,:;]))/g,\n \"~\"\n );\n }\n return maskHomePath$1(text, home);\n};\nderived(appConfig, ($config) => {\n return (text) => maskHomePath(text, $config.homeDir);\n});\nfunction ConfirmModal($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let {\n show,\n title,\n message,\n confirmText = \"Confirm\",\n cancelText = \"Cancel\",\n variant = \"default\",\n onConfirm,\n onCancel\n } = $$props;\n if (show) {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<div class=\"fixed inset-0 bg-black/50 flex items-center justify-center z-50\" role=\"dialog\" aria-modal=\"true\" tabindex=\"-1\"><div class=\"bg-gh-bg-secondary border border-gh-border rounded-lg p-6 w-[380px] shadow-xl text-gh-text\"><h2 class=\"text-lg font-semibold mb-3\">${escape_html(title)}</h2> <p class=\"text-sm text-gh-text-secondary mb-6 whitespace-pre-wrap\">${escape_html(message)}</p> <div class=\"flex gap-2 justify-end\"><button class=\"px-4 py-2 text-sm rounded-md border border-gh-border hover:bg-gh-border-subtle\">${escape_html(cancelText)}</button> <button${attr_class(`px-4 py-2 text-sm rounded-md ${stringify(variant === \"danger\" ? \"bg-gh-red text-white hover:bg-red-700\" : \"bg-gh-accent text-white hover:bg-blue-700\")}`)}>${escape_html(confirmText)}</button></div></div></div>`);\n } else {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]-->`);\n });\n}\nmarked.setOptions({\n breaks: true,\n gfm: true\n});\nconst formatDate = (dateStr) => {\n if (!dateStr) return \"-\";\n return new Date(dateStr).toLocaleString();\n};\nconst truncate = (str, len) => str.length > len ? str.slice(0, len) + \"...\" : str;\nconst formatProjectName = (displayName) => {\n return maskHomePath(displayName);\n};\nfunction Toast($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n let { message = void 0, variant = \"success\", duration = 3e3 } = $$props;\n const variantClasses = {\n success: \"bg-gh-green/90\",\n error: \"bg-gh-red/90\",\n info: \"bg-gh-accent/90\",\n warning: \"bg-yellow-600/90\"\n };\n onDestroy(() => {\n });\n if (message) {\n $$renderer2.push(\"<!--[0-->\");\n $$renderer2.push(`<div${attr_class(`fixed bottom-4 left-1/2 -translate-x-1/2 text-white px-4 py-2 rounded-lg shadow-lg z-50 flex items-center gap-3 animate-fade-in ${stringify(variantClasses[variant])}`, \"svelte-1cpok13\")}><span>${escape_html(message)}</span> <button class=\"text-white/70 hover:text-white transition-colors\" title=\"Dismiss\">✕</button></div>`);\n } else {\n $$renderer2.push(\"<!--[-1-->\");\n }\n $$renderer2.push(`<!--]-->`);\n bind_props($$props, { message });\n });\n}\nexport {\n ConfirmModal as C,\n Toast as T,\n formatProjectName as a,\n appConfig as b,\n formatDate as f,\n maskHomePath as m,\n truncate as t\n};\n"],"names":[],"mappings":";;;;AAIA,SAAS,SAAS,CAAC,EAAE,EAAE;AACvB;AACA,EAAE,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,CAAC;AAC9B;AACK,MAAC,SAAS,GAAG,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,kBAAkB,EAAE,EAAE,EAAE;AAC1E,MAAC,YAAY,GAAG,CAAC,IAAI,EAAE,OAAO,KAAK;AACxC,EAAE,MAAM,IAAI,GAAG,OAAO,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,OAAO;AAChD,EAAE,IAAI,CAAC,IAAI,EAAE;AACb,IAAI,OAAO,IAAI,CAAC,OAAO;AACvB,MAAM,0EAA0E;AAChF,MAAM;AACN,KAAK;AACL,EAAE;AACF,EAAE,OAAO,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC;AACnC;AACA,OAAO,CAAC,SAAS,EAAE,CAAC,OAAO,KAAK;AAChC,EAAE,OAAO,CAAC,IAAI,KAAK,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC;AACtD,CAAC,CAAC;AACF,SAAS,YAAY,CAAC,UAAU,EAAE,OAAO,EAAE;AAC3C,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI;AACR,MAAM,IAAI;AACV,MAAM,KAAK;AACX,MAAM,OAAO;AACb,MAAM,WAAW,GAAG,SAAS;AAC7B,MAAM,UAAU,GAAG,QAAQ;AAC3B,MAAM,OAAO,GAAG,SAAS;AACzB,MAAM,SAAS;AACf,MAAM;AACN,KAAK,GAAG,OAAO;AACf,IAAI,IAAI,IAAI,EAAE;AACd,MAAM,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACnC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,0QAA0Q,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,yEAAyE,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,wIAAwI,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC,6BAA6B,EAAE,SAAS,CAAC,OAAO,KAAK,QAAQ,GAAG,uCAAuC,GAAG,2CAA2C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC,2BAA2B,CAAC,CAAC;AAC3yB,IAAI,CAAC,MAAM;AACX,MAAM,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AACpC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAChC,EAAE,CAAC,CAAC;AACJ;AACA,MAAM,CAAC,UAAU,CAAC;AAClB,EAAE,MAAM,EAAE,IAAI;AACd,EAAE,GAAG,EAAE;AACP,CAAC,CAAC;AACG,MAAC,UAAU,GAAG,CAAC,OAAO,KAAK;AAChC,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG;AAC1B,EAAE,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,cAAc,EAAE;AAC3C;AACK,MAAC,QAAQ,GAAG,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,CAAC,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK,GAAG;AACzE,MAAC,iBAAiB,GAAG,CAAC,WAAW,KAAK;AAC3C,EAAE,OAAO,YAAY,CAAC,WAAW,CAAC;AAClC;AACA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,IAAI,EAAE,OAAO,GAAG,MAAM,EAAE,OAAO,GAAG,SAAS,EAAE,QAAQ,GAAG,GAAG,EAAE,GAAG,OAAO;AAC3E,IAAI,MAAM,cAAc,GAAG;AAC3B,MAAM,OAAO,EAAE,gBAAgB;AAC/B,MAAM,KAAK,EAAE,cAAc;AAC3B,MAAM,IAAI,EAAE,iBAAiB;AAC7B,MAAM,OAAO,EAAE;AACf,KAAK;AACL,IAAI,SAAS,CAAC,MAAM;AACpB,IAAI,CAAC,CAAC;AACN,IAAI,IAAI,OAAO,EAAE;AACjB,MAAM,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC;AACnC,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,gIAAgI,EAAE,SAAS,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC,yGAAyG,CAAC,CAAC;AAC7W,IAAI,CAAC,MAAM;AACX,MAAM,WAAW,CAAC,IAAI,CAAC,YAAY,CAAC;AACpC,IAAI;AACJ,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAChC,IAAI,UAAU,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC;AACpC,EAAE,CAAC,CAAC;AACJ;;;;"}
|