claude-sessions-mcp 0.1.6 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/mcp/index.js +80 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/web/client/_app/immutable/assets/0.bo32IKJI.css +1 -0
- package/dist/web/client/_app/immutable/assets/0.bo32IKJI.css.br +0 -0
- package/dist/web/client/_app/immutable/assets/0.bo32IKJI.css.gz +0 -0
- package/dist/web/client/_app/immutable/chunks/BOlr2Mx0.js +1 -0
- package/dist/web/client/_app/immutable/chunks/BOlr2Mx0.js.br +0 -0
- package/dist/web/client/_app/immutable/chunks/BOlr2Mx0.js.gz +0 -0
- package/dist/web/client/_app/immutable/chunks/BpzfNVdV.js +1 -0
- package/dist/web/client/_app/immutable/chunks/BpzfNVdV.js.br +1 -0
- package/dist/web/client/_app/immutable/chunks/BpzfNVdV.js.gz +0 -0
- package/dist/web/client/_app/immutable/chunks/{DXY2Rq4J.js → CkYrZ5uP.js} +1 -1
- package/dist/web/client/_app/immutable/chunks/CkYrZ5uP.js.br +0 -0
- package/dist/web/client/_app/immutable/chunks/CkYrZ5uP.js.gz +0 -0
- package/dist/web/client/_app/immutable/chunks/DhpCfsq_.js +2 -0
- package/dist/web/client/_app/immutable/chunks/DhpCfsq_.js.br +0 -0
- package/dist/web/client/_app/immutable/chunks/DhpCfsq_.js.gz +0 -0
- package/dist/web/client/_app/immutable/chunks/JuVRPOYA.js +1 -0
- package/dist/web/client/_app/immutable/chunks/JuVRPOYA.js.br +0 -0
- package/dist/web/client/_app/immutable/chunks/JuVRPOYA.js.gz +0 -0
- package/dist/web/client/_app/immutable/chunks/qEz027d4.js +1 -0
- package/dist/web/client/_app/immutable/chunks/qEz027d4.js.br +0 -0
- package/dist/web/client/_app/immutable/chunks/qEz027d4.js.gz +0 -0
- package/dist/web/client/_app/immutable/entry/app.BF3469YR.js +2 -0
- package/dist/web/client/_app/immutable/entry/app.BF3469YR.js.br +0 -0
- package/dist/web/client/_app/immutable/entry/app.BF3469YR.js.gz +0 -0
- package/dist/web/client/_app/immutable/entry/start.1QHkE8aN.js +1 -0
- package/dist/web/client/_app/immutable/entry/start.1QHkE8aN.js.br +2 -0
- package/dist/web/client/_app/immutable/entry/start.1QHkE8aN.js.gz +0 -0
- package/dist/web/client/_app/immutable/nodes/0.0G4u1RwN.js +1 -0
- package/dist/web/client/_app/immutable/nodes/0.0G4u1RwN.js.br +0 -0
- package/dist/web/client/_app/immutable/nodes/0.0G4u1RwN.js.gz +0 -0
- package/dist/web/client/_app/immutable/nodes/1.C1QnsN4y.js +1 -0
- package/dist/web/client/_app/immutable/nodes/1.C1QnsN4y.js.br +0 -0
- package/dist/web/client/_app/immutable/nodes/1.C1QnsN4y.js.gz +0 -0
- package/dist/web/client/_app/immutable/nodes/2.rvNN8qKE.js +69 -0
- package/dist/web/client/_app/immutable/nodes/2.rvNN8qKE.js.br +0 -0
- package/dist/web/client/_app/immutable/nodes/2.rvNN8qKE.js.gz +0 -0
- package/dist/web/client/_app/version.json +1 -1
- package/dist/web/client/_app/version.json.br +0 -0
- package/dist/web/client/_app/version.json.gz +0 -0
- package/dist/web/server/chunks/{0-PRvIjum0.js → 0-CpLgwGZT.js} +3 -3
- package/dist/web/server/chunks/{0-PRvIjum0.js.map → 0-CpLgwGZT.js.map} +1 -1
- package/dist/web/server/chunks/{1-C9LHKX1M.js → 1-BmrRQM7e.js} +2 -2
- package/dist/web/server/chunks/{1-C9LHKX1M.js.map → 1-BmrRQM7e.js.map} +1 -1
- package/dist/web/server/chunks/2-CXKmp7vO.js +9 -0
- package/dist/web/server/chunks/2-CXKmp7vO.js.map +1 -0
- package/dist/web/server/chunks/{_page.svelte-BzYm1sb_.js → _page.svelte-Bu5w4fE4.js} +54 -14
- package/dist/web/server/chunks/_page.svelte-Bu5w4fE4.js.map +1 -0
- package/dist/web/server/chunks/{_server.ts-CpyT5bqO.js → _server.ts-9dSpOSZD.js} +2 -2
- package/dist/web/server/chunks/{_server.ts-CpyT5bqO.js.map → _server.ts-9dSpOSZD.js.map} +1 -1
- package/dist/web/server/chunks/{_server.ts-fWcsgf21.js → _server.ts-Ba06VInL.js} +2 -2
- package/dist/web/server/chunks/{_server.ts-fWcsgf21.js.map → _server.ts-Ba06VInL.js.map} +1 -1
- package/dist/web/server/chunks/_server.ts-BoS0ijI9.js +19 -0
- package/dist/web/server/chunks/_server.ts-BoS0ijI9.js.map +1 -0
- package/dist/web/server/chunks/{_server.ts-BUo23tM8.js → _server.ts-CHX8x48n.js} +9 -5
- package/dist/web/server/chunks/_server.ts-CHX8x48n.js.map +1 -0
- package/dist/web/server/chunks/{_server.ts-DWAZmBHh.js → _server.ts-DCZgqkA_.js} +2 -2
- package/dist/web/server/chunks/{_server.ts-DWAZmBHh.js.map → _server.ts-DCZgqkA_.js.map} +1 -1
- package/dist/web/server/chunks/{_server.ts-D1Ih9YID.js → _server.ts-DNSYjrWg.js} +2 -2
- package/dist/web/server/chunks/{_server.ts-D1Ih9YID.js.map → _server.ts-DNSYjrWg.js.map} +1 -1
- package/dist/web/server/chunks/_server.ts-DmMLJ93T.js +18 -0
- package/dist/web/server/chunks/_server.ts-DmMLJ93T.js.map +1 -0
- package/dist/web/server/chunks/{_server.ts-Bn_98d_y.js → _server.ts-Dq5i1Bg9.js} +2 -2
- package/dist/web/server/chunks/{_server.ts-Bn_98d_y.js.map → _server.ts-Dq5i1Bg9.js.map} +1 -1
- package/dist/web/server/chunks/{_server.ts-CR3BXGRo.js → _server.ts-XEsSs7Il.js} +2 -2
- package/dist/web/server/chunks/{_server.ts-CR3BXGRo.js.map → _server.ts-XEsSs7Il.js.map} +1 -1
- package/dist/web/server/chunks/{_server.ts-CmmN7FJP.js → _server.ts-uDQ4gQW0.js} +2 -2
- package/dist/web/server/chunks/{_server.ts-CmmN7FJP.js.map → _server.ts-uDQ4gQW0.js.map} +1 -1
- package/dist/web/server/chunks/{_server.ts-BzsEPkcX.js → _server.ts-zkRNh3d2.js} +2 -2
- package/dist/web/server/chunks/{_server.ts-BzsEPkcX.js.map → _server.ts-zkRNh3d2.js.map} +1 -1
- package/dist/web/server/chunks/{session--a-xLYU7.js → session-BAE596_s.js} +63 -3
- package/dist/web/server/chunks/session-BAE596_s.js.map +1 -0
- package/dist/web/server/index.js +1 -1
- package/dist/web/server/index.js.map +1 -1
- package/dist/web/server/manifest.js +27 -13
- package/dist/web/server/manifest.js.map +1 -1
- package/package.json +6 -2
- package/dist/web/client/_app/immutable/assets/0.C8nBXjrd.css +0 -1
- package/dist/web/client/_app/immutable/assets/0.C8nBXjrd.css.br +0 -0
- package/dist/web/client/_app/immutable/assets/0.C8nBXjrd.css.gz +0 -0
- package/dist/web/client/_app/immutable/chunks/Bnj9_x4l.js +0 -1
- package/dist/web/client/_app/immutable/chunks/Bnj9_x4l.js.br +0 -0
- package/dist/web/client/_app/immutable/chunks/Bnj9_x4l.js.gz +0 -0
- package/dist/web/client/_app/immutable/chunks/CoYbTZW3.js +0 -1
- package/dist/web/client/_app/immutable/chunks/CoYbTZW3.js.br +0 -0
- package/dist/web/client/_app/immutable/chunks/CoYbTZW3.js.gz +0 -0
- package/dist/web/client/_app/immutable/chunks/DUVCQSoz.js +0 -2
- package/dist/web/client/_app/immutable/chunks/DUVCQSoz.js.br +0 -0
- package/dist/web/client/_app/immutable/chunks/DUVCQSoz.js.gz +0 -0
- package/dist/web/client/_app/immutable/chunks/DXY2Rq4J.js.br +0 -0
- package/dist/web/client/_app/immutable/chunks/DXY2Rq4J.js.gz +0 -0
- package/dist/web/client/_app/immutable/chunks/sCxbWNg5.js +0 -1
- package/dist/web/client/_app/immutable/chunks/sCxbWNg5.js.br +0 -0
- package/dist/web/client/_app/immutable/chunks/sCxbWNg5.js.gz +0 -0
- package/dist/web/client/_app/immutable/entry/app.kqUYTLBh.js +0 -2
- package/dist/web/client/_app/immutable/entry/app.kqUYTLBh.js.br +0 -0
- package/dist/web/client/_app/immutable/entry/app.kqUYTLBh.js.gz +0 -0
- package/dist/web/client/_app/immutable/entry/start.BPGMjvr3.js +0 -1
- package/dist/web/client/_app/immutable/entry/start.BPGMjvr3.js.br +0 -2
- package/dist/web/client/_app/immutable/entry/start.BPGMjvr3.js.gz +0 -0
- package/dist/web/client/_app/immutable/nodes/0.BkssNmeP.js +0 -1
- package/dist/web/client/_app/immutable/nodes/0.BkssNmeP.js.br +0 -0
- package/dist/web/client/_app/immutable/nodes/0.BkssNmeP.js.gz +0 -0
- package/dist/web/client/_app/immutable/nodes/1.nrfaX95H.js +0 -1
- package/dist/web/client/_app/immutable/nodes/1.nrfaX95H.js.br +0 -3
- package/dist/web/client/_app/immutable/nodes/1.nrfaX95H.js.gz +0 -0
- package/dist/web/client/_app/immutable/nodes/2.JRQSNUQJ.js +0 -1
- package/dist/web/client/_app/immutable/nodes/2.JRQSNUQJ.js.br +0 -0
- package/dist/web/client/_app/immutable/nodes/2.JRQSNUQJ.js.gz +0 -0
- package/dist/web/server/chunks/2-CAJqQrr8.js +0 -9
- package/dist/web/server/chunks/2-CAJqQrr8.js.map +0 -1
- package/dist/web/server/chunks/_page.svelte-BzYm1sb_.js.map +0 -1
- package/dist/web/server/chunks/_server.ts-BUo23tM8.js.map +0 -1
- package/dist/web/server/chunks/session--a-xLYU7.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var rn=Object.defineProperty;var ht=e=>{throw TypeError(e)};var fn=(e,t,n)=>t in e?rn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var B=(e,t,n)=>fn(e,typeof t!="symbol"?t+"":t,n),Ke=(e,t,n)=>t.has(e)||ht("Cannot "+n);var w=(e,t,n)=>(Ke(e,t,"read from private field"),n?n.call(e):t.get(e)),Y=(e,t,n)=>t.has(e)?ht("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ce=(e,t,n,r)=>(Ke(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),I=(e,t,n)=>(Ke(e,t,"access private method"),n);var sn=Array.isArray,an=Array.prototype.indexOf,er=Array.from,tr=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,ln=Object.getOwnPropertyDescriptors,on=Object.prototype,un=Array.prototype,Tt=Object.getPrototypeOf,wt=Object.isExtensible;const nr=()=>{};function rr(e){return e()}function cn(e){for(var t=0;t<e.length;t++)e[t]()}function At(){var e,t,n=new Promise((r,f)=>{e=r,t=f});return{promise:n,resolve:e,reject:t}}function fr(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const m=2,ft=4,Ve=8,_n=1<<24,H=16,U=32,oe=64,st=128,F=512,R=1024,O=2048,L=4096,j=8192,K=16384,it=32768,Ie=65536,$e=1<<17,St=1<<18,Oe=1<<19,Rt=1<<20,sr=1<<25,fe=32768,Xe=1<<21,at=1<<22,z=1<<23,Se=Symbol("$state"),ir=Symbol("legacy props"),_e=new class extends Error{constructor(){super(...arguments);B(this,"name","StaleReactionError");B(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},lt=3,kt=8;function vn(e){throw new Error("https://svelte.dev/e/experimental_async_required")}function dn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function pn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function hn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function wn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function yn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function En(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function mn(){throw new Error("https://svelte.dev/e/fork_discarded")}function gn(){throw new Error("https://svelte.dev/e/fork_timing")}function lr(){throw new Error("https://svelte.dev/e/hydration_failed")}function or(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Tn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function An(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Sn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ur(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const cr=1,_r=2,vr=4,dr=8,pr=16,hr=1,wr=2,yr=4,Er=8,mr=16,gr=1,Tr=2,Rn="[",kn="[!",bn="]",ot={},S=Symbol(),Ar="http://www.w3.org/1999/xhtml";function ut(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Sr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let se=!1;function Rr(e){se=e}let g;function we(e){if(e===null)throw ut(),ot;return g=e}function kr(){return we(Z(g))}function br(e){if(se){if(Z(g)!==null)throw ut(),ot;g=e}}function xr(e=1){if(se){for(var t=e,n=g;t--;)n=Z(n);g=n}}function Or(e=!0){for(var t=0,n=g;;){if(n.nodeType===kt){var r=n.data;if(r===bn){if(t===0)return n;t-=1}else(r===Rn||r===kn)&&(t+=1)}var f=Z(n);e&&n.remove(),n=f}}function Dr(e){if(!e||e.nodeType!==kt)throw ut(),ot;return e.data}function bt(e){return e===this.v}function xn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function xt(e){return!xn(e,this.v)}let De=!1;function Nr(){De=!0}let E=null;function Pe(e){E=e}function Cr(e,t=!1,n){E={p:E,i:!1,c:null,e:null,s:e,x:null,l:De&&!t?{s:null,u:null,$:[]}:null}}function Ir(e){var t=E,n=t.e;if(n!==null){t.e=null;for(var r of n)Bt(r)}return t.i=!0,E=t.p,{}}function Ne(){return!De||E!==null&&E.l===null}let Q=[];function Ot(){var e=Q;Q=[],cn(e)}function On(e){if(Q.length===0&&!Re){var t=Q;queueMicrotask(()=>{t===Q&&Ot()})}Q.push(e)}function Dn(){for(;Q.length>0;)Ot()}function Nn(e){var t=h;if(t===null)return _.f|=z,e;if((t.f&it)===0){if((t.f&st)===0)throw e;t.b.error(e)}else Fe(e,t)}function Fe(e,t){for(;t!==null;){if((t.f&st)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const W=new Set;let v=null,y=null,C=[],Be=null,Ze=!1,Re=!1;var ve,de,ee,te,xe,pe,he,T,Je,me,Qe,Dt,Nt;const Ue=class Ue{constructor(){Y(this,T);B(this,"committed",!1);B(this,"current",new Map);B(this,"previous",new Map);Y(this,ve,new Set);Y(this,de,new Set);Y(this,ee,0);Y(this,te,0);Y(this,xe,null);Y(this,pe,new Set);Y(this,he,new Set);B(this,"skipped_effects",new Set);B(this,"is_fork",!1)}is_deferred(){return this.is_fork||w(this,te)>0}process(t){var r;C=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[]};for(const f of t)I(this,T,Je).call(this,f,n);this.is_fork||I(this,T,Dt).call(this),this.is_deferred()?(I(this,T,me).call(this,n.effects),I(this,T,me).call(this,n.render_effects)):(v=null,yt(n.render_effects),yt(n.effects),(r=w(this,xe))==null||r.resolve()),y=null}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&z)===0&&(this.current.set(t,t.v),y==null||y.set(t,t.v))}activate(){v=this,this.apply()}deactivate(){v===this&&(v=null,y=null)}flush(){if(this.activate(),C.length>0){if(et(),v!==null&&v!==this)return}else w(this,ee)===0&&this.process([]);this.deactivate()}discard(){for(const t of w(this,de))t(this);w(this,de).clear()}increment(t){ce(this,ee,w(this,ee)+1),t&&ce(this,te,w(this,te)+1)}decrement(t){ce(this,ee,w(this,ee)-1),t&&ce(this,te,w(this,te)-1),this.revive()}revive(){for(const t of w(this,pe))w(this,he).delete(t),A(t,O),ae(t);for(const t of w(this,he))A(t,L),ae(t);this.flush()}oncommit(t){w(this,ve).add(t)}ondiscard(t){w(this,de).add(t)}settled(){return(w(this,xe)??ce(this,xe,At())).promise}static ensure(){if(v===null){const t=v=new Ue;W.add(v),Re||Ue.enqueue(()=>{v===t&&t.flush()})}return v}static enqueue(t){On(t)}apply(){}};ve=new WeakMap,de=new WeakMap,ee=new WeakMap,te=new WeakMap,xe=new WeakMap,pe=new WeakMap,he=new WeakMap,T=new WeakSet,Je=function(t,n){var u;t.f^=R;for(var r=t.first;r!==null;){var f=r.f,s=(f&(U|oe))!==0,l=s&&(f&R)!==0,o=l||(f&j)!==0||this.skipped_effects.has(r);if((r.f&st)!==0&&((u=r.b)!=null&&u.is_pending())&&(n={parent:n,effect:r,effects:[],render_effects:[]}),!o&&r.fn!==null){s?r.f^=R:(f&ft)!==0?n.effects.push(r):Ce(r)&&((r.f&H)!==0&&w(this,pe).add(r),be(r));var a=r.first;if(a!==null){r=a;continue}}var i=r.parent;for(r=r.next;r===null&&i!==null;)i===n.effect&&(I(this,T,me).call(this,n.effects),I(this,T,me).call(this,n.render_effects),n=n.parent),r=i.next,i=i.parent}},me=function(t){for(const n of t)(n.f&O)!==0?w(this,pe).add(n):(n.f&L)!==0&&w(this,he).add(n),I(this,T,Qe).call(this,n.deps),A(n,R)},Qe=function(t){if(t!==null)for(const n of t)(n.f&m)===0||(n.f&fe)===0||(n.f^=fe,I(this,T,Qe).call(this,n.deps))},Dt=function(){if(w(this,te)===0){for(const t of w(this,ve))t();w(this,ve).clear()}w(this,ee)===0&&I(this,T,Nt).call(this)},Nt=function(){var s;if(W.size>1){this.previous.clear();var t=y,n=!0,r={parent:null,effect:null,effects:[],render_effects:[]};for(const l of W){if(l===this){n=!1;continue}const o=[];for(const[i,u]of this.current){if(l.current.has(i))if(n&&u!==l.current.get(i))l.current.set(i,u);else continue;o.push(i)}if(o.length===0)continue;const a=[...l.current.keys()].filter(i=>!this.current.has(i));if(a.length>0){var f=C;C=[];const i=new Set,u=new Map;for(const c of o)Ct(c,a,i,u);if(C.length>0){v=l,l.apply();for(const c of C)I(s=l,T,Je).call(s,c,r);l.deactivate()}C=f}}v=null,y=t}this.committed=!0,W.delete(this)};let ie=Ue;function We(e){var t=Re;Re=!0;try{var n;for(e&&(v!==null&&et(),n=e());;){if(Dn(),C.length===0&&(v==null||v.flush(),C.length===0))return Be=null,n;et()}}finally{Re=t}}function et(){var e=ne;Ze=!0;var t=null;try{var n=0;for(Ye(!0);C.length>0;){var r=ie.ensure();if(n++>1e3){var f,s;Cn()}r.process(C),$.clear()}}finally{Ze=!1,Ye(e),Be=null}}function Cn(){try{En()}catch(e){Fe(e,Be)}}let P=null;function yt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(K|j))===0&&Ce(r)&&(P=new Set,be(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?zt(r):r.fn=null),(P==null?void 0:P.size)>0)){$.clear();for(const f of P){if((f.f&(K|j))!==0)continue;const s=[f];let l=f.parent;for(;l!==null;)P.has(l)&&(P.delete(l),s.push(l)),l=l.parent;for(let o=s.length-1;o>=0;o--){const a=s[o];(a.f&(K|j))===0&&be(a)}}P.clear()}}P=null}}function Ct(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const f of e.reactions){const s=f.f;(s&m)!==0?Ct(f,t,n,r):(s&(at|H))!==0&&(s&O)===0&&Pt(f,t,r)&&(A(f,O),ae(f))}}function It(e,t){if(e.reactions!==null)for(const n of e.reactions){const r=n.f;(r&m)!==0?It(n,t):(r&$e)!==0&&(A(n,O),t.add(n))}}function Pt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const f of e.deps){if(t.includes(f))return!0;if((f.f&m)!==0&&Pt(f,t,n))return n.set(f,!0),!0}return n.set(e,!1),!1}function ae(e){for(var t=Be=e;t.parent!==null;){t=t.parent;var n=t.f;if(Ze&&t===h&&(n&H)!==0&&(n&St)===0)return;if((n&(oe|U))!==0){if((n&R)===0)return;t.f^=R}}C.push(t)}function Pr(e){vn(),v!==null&&gn();var t=ie.ensure();t.is_fork=!0,y=new Map;var n=!1,r=t.settled();We(e),y=null;for(var[f,s]of t.previous)f.v=s;return{commit:async()=>{if(n){await r;return}W.has(t)||mn(),n=!0,t.is_fork=!1;for(var[l,o]of t.current)l.v=o;We(()=>{var a=new Set;for(var i of t.current.keys())It(i,a);Ln(a),Lt()}),t.revive(),await r},discard:()=>{!n&&W.has(t)&&(W.delete(t),t.discard())}}}function In(e,t,n,r){const f=Ne()?ct:Mn;if(n.length===0&&e.length===0){r(t.map(f));return}var s=v,l=h,o=Pn();function a(){Promise.all(n.map(i=>Fn(i))).then(i=>{o();try{r([...t.map(f),...i])}catch(u){(l.f&K)===0&&Fe(u,l)}s==null||s.deactivate(),Me()}).catch(i=>{Fe(i,l)})}e.length>0?Promise.all(e).then(()=>{o();try{return a()}finally{s==null||s.deactivate(),Me()}}):a()}function Pn(){var e=h,t=_,n=E,r=v;return function(s=!0){ye(e),X(t),Pe(n),s&&(r==null||r.activate())}}function Me(){ye(null),X(null),Pe(null)}function ct(e){var t=m|O,n=_!==null&&(_.f&m)!==0?_:null;return h!==null&&(h.f|=Oe),{ctx:E,deps:null,effects:null,equals:bt,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??h,ac:null}}function Fn(e,t){let n=h;n===null&&pn();var r=n.b,f=void 0,s=vt(S),l=!_,o=new Map;return Bn(()=>{var p;var a=At();f=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{i===v&&i.committed&&i.deactivate(),Me()})}catch(d){a.reject(d),Me()}var i=v;if(l){var u=!r.is_pending();r.update_pending_count(1),i.increment(u),(p=o.get(i))==null||p.reject(_e),o.delete(i),o.set(i,a)}const c=(d,k=void 0)=>{if(i.activate(),k)k!==_e&&(s.f|=z,tt(s,k));else{(s.f&z)!==0&&(s.f^=z),tt(s,d);for(const[V,ue]of o){if(o.delete(V),V===i)break;ue.reject(_e)}}l&&(r.update_pending_count(-1),i.decrement(u))};a.promise.then(c,d=>c(null,d||"unknown"))}),Un(()=>{for(const a of o.values())a.reject(_e)}),new Promise(a=>{function i(u){function c(){u===f?a(s):i(f)}u.then(c,c)}i(f)})}function Fr(e){const t=ct(e);return Zt(t),t}function Mn(e){const t=ct(e);return t.equals=xt,t}function Ft(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)le(t[n])}}function jn(e){for(var t=e.parent;t!==null;){if((t.f&m)===0)return(t.f&K)===0?t:null;t=t.parent}return null}function _t(e){var t,n=h;ye(jn(e));try{e.f&=~fe,Ft(e),t=en(e)}finally{ye(n)}return t}function Mt(e){var t=_t(e);if(e.equals(t)||(v!=null&&v.is_fork||(e.v=t),e.wv=Qt()),!Ee)if(y!==null)(qe()||v!=null&&v.is_fork)&&y.set(e,t);else{var n=(e.f&F)===0?L:R;A(e,n)}}let je=new Set;const $=new Map;function Ln(e){je=e}let jt=!1;function vt(e,t){var n={f:0,v:e,reactions:null,equals:bt,rv:0,wv:0};return n}function G(e,t){const n=vt(e);return Zt(n),n}function Mr(e,t=!1,n=!0){var f;const r=vt(e);return t||(r.equals=xt),De&&n&&E!==null&&E.l!==null&&((f=E.l).s??(f.s=[])).push(r),r}function J(e,t,n=!1){_!==null&&(!M||(_.f&$e)!==0)&&Ne()&&(_.f&(m|H|at|$e))!==0&&!(x!=null&&x.includes(e))&&Sn();let r=n?ge(t):t;return tt(e,r)}function tt(e,t){if(!e.equals(t)){var n=e.v;Ee?$.set(e,t):$.set(e,n),e.v=t;var r=ie.ensure();r.capture(e,n),(e.f&m)!==0&&((e.f&O)!==0&&_t(e),A(e,(e.f&F)!==0?R:L)),e.wv=Qt(),qt(e,O),Ne()&&h!==null&&(h.f&R)!==0&&(h.f&(U|oe))===0&&(N===null?$n([e]):N.push(e)),!r.is_fork&&je.size>0&&!jt&&Lt()}return t}function Lt(){jt=!1;var e=ne;Ye(!0);const t=Array.from(je);try{for(const n of t)(n.f&R)!==0&&A(n,L),Ce(n)&&be(n)}finally{Ye(e)}je.clear()}function ze(e){J(e,e.v+1)}function qt(e,t){var n=e.reactions;if(n!==null)for(var r=Ne(),f=n.length,s=0;s<f;s++){var l=n[s],o=l.f;if(!(!r&&l===h)){var a=(o&O)===0;if(a&&A(l,t),(o&m)!==0){var i=l;y==null||y.delete(i),(o&fe)===0&&(o&F&&(l.f|=fe),qt(i,L))}else a&&((o&H)!==0&&P!==null&&P.add(l),ae(l))}}}function ge(e){if(typeof e!="object"||e===null||Se in e)return e;const t=Tt(e);if(t!==on&&t!==un)return e;var n=new Map,r=sn(e),f=G(0),s=re,l=o=>{if(re===s)return o();var a=_,i=re;X(null),gt(s);var u=o();return X(a),gt(i),u};return r&&n.set("length",G(e.length)),new Proxy(e,{defineProperty(o,a,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&Tn();var u=n.get(a);return u===void 0?u=l(()=>{var c=G(i.value);return n.set(a,c),c}):J(u,i.value,!0),!0},deleteProperty(o,a){var i=n.get(a);if(i===void 0){if(a in o){const u=l(()=>G(S));n.set(a,u),ze(f)}}else J(i,S),ze(f);return!0},get(o,a,i){var d;if(a===Se)return e;var u=n.get(a),c=a in o;if(u===void 0&&(!c||(d=Ae(o,a))!=null&&d.writable)&&(u=l(()=>{var k=ge(c?o[a]:S),V=G(k);return V}),n.set(a,u)),u!==void 0){var p=Te(u);return p===S?void 0:p}return Reflect.get(o,a,i)},getOwnPropertyDescriptor(o,a){var i=Reflect.getOwnPropertyDescriptor(o,a);if(i&&"value"in i){var u=n.get(a);u&&(i.value=Te(u))}else if(i===void 0){var c=n.get(a),p=c==null?void 0:c.v;if(c!==void 0&&p!==S)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return i},has(o,a){var p;if(a===Se)return!0;var i=n.get(a),u=i!==void 0&&i.v!==S||Reflect.has(o,a);if(i!==void 0||h!==null&&(!u||(p=Ae(o,a))!=null&&p.writable)){i===void 0&&(i=l(()=>{var d=u?ge(o[a]):S,k=G(d);return k}),n.set(a,i));var c=Te(i);if(c===S)return!1}return u},set(o,a,i,u){var pt;var c=n.get(a),p=a in o;if(r&&a==="length")for(var d=i;d<c.v;d+=1){var k=n.get(d+"");k!==void 0?J(k,S):d in o&&(k=l(()=>G(S)),n.set(d+"",k))}if(c===void 0)(!p||(pt=Ae(o,a))!=null&&pt.writable)&&(c=l(()=>G(void 0)),J(c,ge(i)),n.set(a,c));else{p=c.v!==S;var V=l(()=>ge(i));J(c,V)}var ue=Reflect.getOwnPropertyDescriptor(o,a);if(ue!=null&&ue.set&&ue.set.call(u,i),!p){if(r&&typeof a=="string"){var dt=n.get("length"),Ge=Number(a);Number.isInteger(Ge)&&Ge>=dt.v&&J(dt,Ge+1)}ze(f)}return!0},ownKeys(o){Te(f);var a=Reflect.ownKeys(o).filter(c=>{var p=n.get(c);return p===void 0||p.v!==S});for(var[i,u]of n)u.v!==S&&!(i in o)&&a.push(i);return a},setPrototypeOf(){An()}})}var Et,qn,Yn,Yt,Ht;function jr(){if(Et===void 0){Et=window,qn=document,Yn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Yt=Ae(t,"firstChild").get,Ht=Ae(t,"nextSibling").get,wt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),wt(n)&&(n.__t=void 0)}}function Le(e=""){return document.createTextNode(e)}function nt(e){return Yt.call(e)}function Z(e){return Ht.call(e)}function Lr(e,t){if(!se)return nt(e);var n=nt(g);if(n===null)n=g.appendChild(Le());else if(t&&n.nodeType!==lt){var r=Le();return n==null||n.before(r),we(r),r}return we(n),n}function qr(e,t=!1){if(!se){var n=nt(e);return n instanceof Comment&&n.data===""?Z(n):n}if(t&&(g==null?void 0:g.nodeType)!==lt){var r=Le();return g==null||g.before(r),we(r),r}return g}function Yr(e,t=1,n=!1){let r=se?g:e;for(var f;t--;)f=r,r=Z(r);if(!se)return r;if(n&&(r==null?void 0:r.nodeType)!==lt){var s=Le();return r===null?f==null||f.after(s):r.before(s),we(s),s}return we(r),r}function Hr(e){e.textContent=""}function Ur(){return!1}function Ut(e){var t=_,n=h;X(null),ye(null);try{return e()}finally{X(t),ye(n)}}function Vt(e){h===null&&(_===null&&yn(),wn()),Ee&&hn()}function Hn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function q(e,t,n){var r=h;r!==null&&(r.f&j)!==0&&(e|=j);var f={ctx:E,deps:null,nodes:null,f:e|O|F,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{be(f),f.f|=it}catch(o){throw le(f),o}else t!==null&&ae(f);var s=f;if(n&&s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&Oe)===0&&(s=s.first,(e&H)!==0&&(e&Ie)!==0&&s!==null&&(s.f|=Ie)),s!==null&&(s.parent=r,r!==null&&Hn(s,r),_!==null&&(_.f&m)!==0&&(e&oe)===0)){var l=_;(l.effects??(l.effects=[])).push(s)}return f}function qe(){return _!==null&&!M}function Un(e){const t=q(Ve,null,!1);return A(t,R),t.teardown=e,t}function Vn(e){Vt();var t=h.f,n=!_&&(t&U)!==0&&(t&it)===0;if(n){var r=E;(r.e??(r.e=[])).push(e)}else return Bt(e)}function Bt(e){return q(ft|Rt,e,!1)}function Vr(e){return Vt(),q(Ve|Rt,e,!0)}function Br(e){ie.ensure();const t=q(oe|Oe,e,!0);return(n={})=>new Promise(r=>{n.outro?zn(t,()=>{le(t),r(void 0)}):(le(t),r(void 0))})}function Gr(e){return q(ft,e,!1)}function Bn(e){return q(at|Oe,e,!0)}function Kr(e,t=0){return q(Ve|t,e,!0)}function zr(e,t=[],n=[],r=[]){In(r,t,n,f=>{q(Ve,()=>e(...f.map(Te)),!0)})}function $r(e,t=0){var n=q(H|t,e,!0);return n}function Xr(e){return q(U|Oe,e,!0)}function Gt(e){var t=e.teardown;if(t!==null){const n=Ee,r=_;mt(!0),X(null);try{t.call(null)}finally{mt(n),X(r)}}}function Kt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const f=n.ac;f!==null&&Ut(()=>{f.abort(_e)});var r=n.next;(n.f&oe)!==0?n.parent=null:le(n,t),n=r}}function Gn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&U)===0&&le(t),t=n}}function le(e,t=!0){var n=!1;(t||(e.f&St)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Kn(e.nodes.start,e.nodes.end),n=!0),Kt(e,t&&!n),He(e,0),A(e,K);var r=e.nodes&&e.nodes.t;if(r!==null)for(const s of r)s.stop();Gt(e);var f=e.parent;f!==null&&f.first!==null&&zt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Kn(e,t){for(;e!==null;){var n=e===t?null:Z(e);e.remove(),e=n}}function zt(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function zn(e,t,n=!0){var r=[];$t(e,r,!0);var f=()=>{n&&le(e),t&&t()},s=r.length;if(s>0){var l=()=>--s||f();for(var o of r)o.out(l)}else f()}function $t(e,t,n){if((e.f&j)===0){e.f^=j;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var f=e.first;f!==null;){var s=f.next,l=(f.f&Ie)!==0||(f.f&U)!==0&&(e.f&H)!==0;$t(f,t,l?n:!1),f=s}}}function Zr(e){Xt(e,!0)}function Xt(e,t){if((e.f&j)!==0){e.f^=j,(e.f&R)===0&&(A(e,O),ae(e));for(var n=e.first;n!==null;){var r=n.next,f=(n.f&Ie)!==0||(n.f&U)!==0;Xt(n,f?t:!1),n=r}var s=e.nodes&&e.nodes.t;if(s!==null)for(const l of s)(l.is_global||t)&&l.in()}}function Jr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var f=n===r?null:Z(n);t.append(n),n=f}}let ne=!1;function Ye(e){ne=e}let Ee=!1;function mt(e){Ee=e}let _=null,M=!1;function X(e){_=e}let h=null;function ye(e){h=e}let x=null;function Zt(e){_!==null&&(x===null?x=[e]:x.push(e))}let b=null,D=0,N=null;function $n(e){N=e}let Jt=1,ke=0,re=ke;function gt(e){re=e}function Qt(){return++Jt}function Ce(e){var t=e.f;if((t&O)!==0)return!0;if(t&m&&(e.f&=~fe),(t&L)!==0){var n=e.deps;if(n!==null)for(var r=n.length,f=0;f<r;f++){var s=n[f];if(Ce(s)&&Mt(s),s.wv>e.wv)return!0}(t&F)!==0&&y===null&&A(e,R)}return!1}function Wt(e,t,n=!0){var r=e.reactions;if(r!==null&&!(x!=null&&x.includes(e)))for(var f=0;f<r.length;f++){var s=r[f];(s.f&m)!==0?Wt(s,t,!1):t===s&&(n?A(s,O):(s.f&R)!==0&&A(s,L),ae(s))}}function en(e){var k;var t=b,n=D,r=N,f=_,s=x,l=E,o=M,a=re,i=e.f;b=null,D=0,N=null,_=(i&(U|oe))===0?e:null,x=null,Pe(e.ctx),M=!1,re=++ke,e.ac!==null&&(Ut(()=>{e.ac.abort(_e)}),e.ac=null);try{e.f|=Xe;var u=e.fn,c=u(),p=e.deps;if(b!==null){var d;if(He(e,D),p!==null&&D>0)for(p.length=D+b.length,d=0;d<b.length;d++)p[D+d]=b[d];else e.deps=p=b;if(qe()&&(e.f&F)!==0)for(d=D;d<p.length;d++)((k=p[d]).reactions??(k.reactions=[])).push(e)}else p!==null&&D<p.length&&(He(e,D),p.length=D);if(Ne()&&N!==null&&!M&&p!==null&&(e.f&(m|L|O))===0)for(d=0;d<N.length;d++)Wt(N[d],e);return f!==null&&f!==e&&(ke++,N!==null&&(r===null?r=N:r.push(...N))),(e.f&z)!==0&&(e.f^=z),c}catch(V){return Nn(V)}finally{e.f^=Xe,b=t,D=n,N=r,_=f,x=s,Pe(l),M=o,re=a}}function Xn(e,t){let n=t.reactions;if(n!==null){var r=an.call(n,e);if(r!==-1){var f=n.length-1;f===0?n=t.reactions=null:(n[r]=n[f],n.pop())}}n===null&&(t.f&m)!==0&&(b===null||!b.includes(t))&&(A(t,L),(t.f&F)!==0&&(t.f^=F,t.f&=~fe),Ft(t),He(t,0))}function He(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Xn(e,n[r])}function be(e){var t=e.f;if((t&K)===0){A(e,R);var n=h,r=ne;h=e,ne=!0;try{(t&(H|_n))!==0?Gn(e):Kt(e),Gt(e);var f=en(e);e.teardown=typeof f=="function"?f:null,e.wv=Jt;var s}finally{ne=r,h=n}}}async function Qr(){await Promise.resolve(),We()}function Wr(){return ie.ensure().settled()}function Te(e){var t=e.f,n=(t&m)!==0;if(_!==null&&!M){var r=h!==null&&(h.f&K)!==0;if(!r&&!(x!=null&&x.includes(e))){var f=_.deps;if((_.f&Xe)!==0)e.rv<ke&&(e.rv=ke,b===null&&f!==null&&f[D]===e?D++:b===null?b=[e]:b.includes(e)||b.push(e));else{(_.deps??(_.deps=[])).push(e);var s=e.reactions;s===null?e.reactions=[_]:s.includes(_)||s.push(_)}}}if(Ee){if($.has(e))return $.get(e);if(n){var l=e,o=l.v;return((l.f&R)===0&&l.reactions!==null||nn(l))&&(o=_t(l)),$.set(l,o),o}}else n&&(!(y!=null&&y.has(e))||v!=null&&v.is_fork&&!qe())&&(l=e,Ce(l)&&Mt(l),ne&&qe()&&(l.f&F)===0&&tn(l));if(y!=null&&y.has(e))return y.get(e);if((e.f&z)!==0)throw e.v;return e.v}function tn(e){if(e.deps!==null){e.f^=F;for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),(t.f&m)!==0&&(t.f&F)===0&&tn(t)}}function nn(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if($.has(t)||(t.f&m)!==0&&nn(t))return!0;return!1}function Zn(e){var t=M;try{return M=!0,e()}finally{M=t}}const Jn=-7169;function A(e,t){e.f=e.f&Jn|t}function ef(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Se in e)rt(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Se in n&&rt(n)}}}function rt(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{rt(e[r],t)}catch{}const n=Tt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=ln(n);for(let f in r){const s=r[f].get;if(s)try{s.call(e)}catch{}}}}}function tf(e){E===null&&dn(),De&&E.l!==null?Qn(E).m.push(e):Vn(()=>{const t=Zn(e);if(typeof t=="function")return t})}function Qn(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}export{qn as $,J as A,G as B,kt as C,Gr as D,Ie as E,Te as F,br as G,kn as H,E as I,Vr as J,Vn as K,Zn as L,cn as M,rr as N,ef as O,ct as P,Nr as Q,Mn as R,bn as S,tt as T,sr as U,vt as V,Mr as W,er as X,sn as Y,cr as Z,pr as _,Le as a,_r as a0,j as a1,Hr as a2,vr as a3,On as a4,dr as a5,Ar as a6,Tt as a7,ln as a8,ge as a9,ot as aA,lr as aB,Br as aC,ut as aD,Se as aE,Ae as aF,or as aG,yr as aH,Ee as aI,K as aJ,Er as aK,De as aL,wr as aM,hr as aN,mr as aO,ir as aP,We as aQ,Qr as aR,nr as aS,xn as aT,Pr as aU,Wr as aV,Fr as aa,fr as ab,qe as ac,Kr as ad,ze as ae,h as af,ie as ag,ye as ah,X as ai,Pe as aj,Nn as ak,_ as al,xr as am,Fe as an,ur as ao,Oe as ap,st as aq,Sr as ar,tr as as,Yn as at,gr as au,Tr as av,it as aw,lt as ax,jr as ay,Rn as az,Xr as b,v as c,le as d,g as e,$r as f,kr as g,se as h,Dr as i,Or as j,we as k,Rr as l,Jr as m,St as n,nt as o,zn as p,Z as q,Zr as r,Ur as s,Cr as t,tf as u,qr as v,Lr as w,Yr as x,zr as y,Ir as z};
|
|
1
|
+
var rn=Object.defineProperty;var ht=e=>{throw TypeError(e)};var sn=(e,t,n)=>t in e?rn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var B=(e,t,n)=>sn(e,typeof t!="symbol"?t+"":t,n),Ke=(e,t,n)=>t.has(e)||ht("Cannot "+n);var w=(e,t,n)=>(Ke(e,t,"read from private field"),n?n.call(e):t.get(e)),Y=(e,t,n)=>t.has(e)?ht("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ce=(e,t,n,r)=>(Ke(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),I=(e,t,n)=>(Ke(e,t,"access private method"),n);var fn=Array.isArray,an=Array.prototype.indexOf,er=Array.from,tr=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,ln=Object.getOwnPropertyDescriptors,on=Object.prototype,un=Array.prototype,Tt=Object.getPrototypeOf,wt=Object.isExtensible;const nr=()=>{};function rr(e){return typeof(e==null?void 0:e.then)=="function"}function sr(e){return e()}function cn(e){for(var t=0;t<e.length;t++)e[t]()}function At(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function fr(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const m=2,st=4,Ve=8,_n=1<<24,H=16,U=32,oe=64,ft=128,F=512,R=1024,O=2048,L=4096,j=8192,K=16384,it=32768,Ie=65536,ze=1<<17,St=1<<18,Oe=1<<19,Rt=1<<20,ir=1<<25,se=32768,Xe=1<<21,at=1<<22,$=1<<23,Se=Symbol("$state"),ar=Symbol("legacy props"),_e=new class extends Error{constructor(){super(...arguments);B(this,"name","StaleReactionError");B(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},lt=3,kt=8;function vn(e){throw new Error("https://svelte.dev/e/experimental_async_required")}function dn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function pn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function hn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function wn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function yn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function En(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function mn(){throw new Error("https://svelte.dev/e/fork_discarded")}function gn(){throw new Error("https://svelte.dev/e/fork_timing")}function or(){throw new Error("https://svelte.dev/e/hydration_failed")}function ur(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Tn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function An(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Sn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function cr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const _r=1,vr=2,dr=4,pr=8,hr=16,wr=1,yr=2,Er=4,mr=8,gr=16,Tr=1,Ar=2,Rn="[",kn="[!",bn="]",ot={},S=Symbol(),Sr="http://www.w3.org/1999/xhtml";function ut(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Rr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let fe=!1;function kr(e){fe=e}let g;function we(e){if(e===null)throw ut(),ot;return g=e}function br(){return we(Z(g))}function xr(e){if(fe){if(Z(g)!==null)throw ut(),ot;g=e}}function Or(e=1){if(fe){for(var t=e,n=g;t--;)n=Z(n);g=n}}function Dr(e=!0){for(var t=0,n=g;;){if(n.nodeType===kt){var r=n.data;if(r===bn){if(t===0)return n;t-=1}else(r===Rn||r===kn)&&(t+=1)}var s=Z(n);e&&n.remove(),n=s}}function Nr(e){if(!e||e.nodeType!==kt)throw ut(),ot;return e.data}function bt(e){return e===this.v}function xn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function xt(e){return!xn(e,this.v)}let De=!1;function Cr(){De=!0}let E=null;function Pe(e){E=e}function Ir(e,t=!1,n){E={p:E,i:!1,c:null,e:null,s:e,x:null,l:De&&!t?{s:null,u:null,$:[]}:null}}function Pr(e){var t=E,n=t.e;if(n!==null){t.e=null;for(var r of n)Bt(r)}return t.i=!0,E=t.p,{}}function Ne(){return!De||E!==null&&E.l===null}let J=[];function Ot(){var e=J;J=[],cn(e)}function On(e){if(J.length===0&&!Re){var t=J;queueMicrotask(()=>{t===J&&Ot()})}J.push(e)}function Dn(){for(;J.length>0;)Ot()}function Nn(e){var t=h;if(t===null)return _.f|=$,e;if((t.f&it)===0){if((t.f&ft)===0)throw e;t.b.error(e)}else Fe(e,t)}function Fe(e,t){for(;t!==null;){if((t.f&ft)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Q=new Set;let v=null,y=null,C=[],Be=null,Ze=!1,Re=!1;var ve,de,ee,te,xe,pe,he,T,We,me,Je,Dt,Nt;const Ue=class Ue{constructor(){Y(this,T);B(this,"committed",!1);B(this,"current",new Map);B(this,"previous",new Map);Y(this,ve,new Set);Y(this,de,new Set);Y(this,ee,0);Y(this,te,0);Y(this,xe,null);Y(this,pe,new Set);Y(this,he,new Set);B(this,"skipped_effects",new Set);B(this,"is_fork",!1)}is_deferred(){return this.is_fork||w(this,te)>0}process(t){var r;C=[],this.apply();var n={parent:null,effect:null,effects:[],render_effects:[]};for(const s of t)I(this,T,We).call(this,s,n);this.is_fork||I(this,T,Dt).call(this),this.is_deferred()?(I(this,T,me).call(this,n.effects),I(this,T,me).call(this,n.render_effects)):(v=null,yt(n.render_effects),yt(n.effects),(r=w(this,xe))==null||r.resolve()),y=null}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&$)===0&&(this.current.set(t,t.v),y==null||y.set(t,t.v))}activate(){v=this,this.apply()}deactivate(){v===this&&(v=null,y=null)}flush(){if(this.activate(),C.length>0){if(et(),v!==null&&v!==this)return}else w(this,ee)===0&&this.process([]);this.deactivate()}discard(){for(const t of w(this,de))t(this);w(this,de).clear()}increment(t){ce(this,ee,w(this,ee)+1),t&&ce(this,te,w(this,te)+1)}decrement(t){ce(this,ee,w(this,ee)-1),t&&ce(this,te,w(this,te)-1),this.revive()}revive(){for(const t of w(this,pe))w(this,he).delete(t),A(t,O),ae(t);for(const t of w(this,he))A(t,L),ae(t);this.flush()}oncommit(t){w(this,ve).add(t)}ondiscard(t){w(this,de).add(t)}settled(){return(w(this,xe)??ce(this,xe,At())).promise}static ensure(){if(v===null){const t=v=new Ue;Q.add(v),Re||Ue.enqueue(()=>{v===t&&t.flush()})}return v}static enqueue(t){On(t)}apply(){}};ve=new WeakMap,de=new WeakMap,ee=new WeakMap,te=new WeakMap,xe=new WeakMap,pe=new WeakMap,he=new WeakMap,T=new WeakSet,We=function(t,n){var u;t.f^=R;for(var r=t.first;r!==null;){var s=r.f,f=(s&(U|oe))!==0,l=f&&(s&R)!==0,o=l||(s&j)!==0||this.skipped_effects.has(r);if((r.f&ft)!==0&&((u=r.b)!=null&&u.is_pending())&&(n={parent:n,effect:r,effects:[],render_effects:[]}),!o&&r.fn!==null){f?r.f^=R:(s&st)!==0?n.effects.push(r):Ce(r)&&((r.f&H)!==0&&w(this,pe).add(r),be(r));var a=r.first;if(a!==null){r=a;continue}}var i=r.parent;for(r=r.next;r===null&&i!==null;)i===n.effect&&(I(this,T,me).call(this,n.effects),I(this,T,me).call(this,n.render_effects),n=n.parent),r=i.next,i=i.parent}},me=function(t){for(const n of t)(n.f&O)!==0?w(this,pe).add(n):(n.f&L)!==0&&w(this,he).add(n),I(this,T,Je).call(this,n.deps),A(n,R)},Je=function(t){if(t!==null)for(const n of t)(n.f&m)===0||(n.f&se)===0||(n.f^=se,I(this,T,Je).call(this,n.deps))},Dt=function(){if(w(this,te)===0){for(const t of w(this,ve))t();w(this,ve).clear()}w(this,ee)===0&&I(this,T,Nt).call(this)},Nt=function(){var f;if(Q.size>1){this.previous.clear();var t=y,n=!0,r={parent:null,effect:null,effects:[],render_effects:[]};for(const l of Q){if(l===this){n=!1;continue}const o=[];for(const[i,u]of this.current){if(l.current.has(i))if(n&&u!==l.current.get(i))l.current.set(i,u);else continue;o.push(i)}if(o.length===0)continue;const a=[...l.current.keys()].filter(i=>!this.current.has(i));if(a.length>0){var s=C;C=[];const i=new Set,u=new Map;for(const c of o)Ct(c,a,i,u);if(C.length>0){v=l,l.apply();for(const c of C)I(f=l,T,We).call(f,c,r);l.deactivate()}C=s}}v=null,y=t}this.committed=!0,Q.delete(this)};let ie=Ue;function Qe(e){var t=Re;Re=!0;try{var n;for(e&&(v!==null&&et(),n=e());;){if(Dn(),C.length===0&&(v==null||v.flush(),C.length===0))return Be=null,n;et()}}finally{Re=t}}function et(){var e=ne;Ze=!0;var t=null;try{var n=0;for(Ye(!0);C.length>0;){var r=ie.ensure();if(n++>1e3){var s,f;Cn()}r.process(C),z.clear()}}finally{Ze=!1,Ye(e),Be=null}}function Cn(){try{En()}catch(e){Fe(e,Be)}}let P=null;function yt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(K|j))===0&&Ce(r)&&(P=new Set,be(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?$t(r):r.fn=null),(P==null?void 0:P.size)>0)){z.clear();for(const s of P){if((s.f&(K|j))!==0)continue;const f=[s];let l=s.parent;for(;l!==null;)P.has(l)&&(P.delete(l),f.push(l)),l=l.parent;for(let o=f.length-1;o>=0;o--){const a=f[o];(a.f&(K|j))===0&&be(a)}}P.clear()}}P=null}}function Ct(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&m)!==0?Ct(s,t,n,r):(f&(at|H))!==0&&(f&O)===0&&Pt(s,t,r)&&(A(s,O),ae(s))}}function It(e,t){if(e.reactions!==null)for(const n of e.reactions){const r=n.f;(r&m)!==0?It(n,t):(r&ze)!==0&&(A(n,O),t.add(n))}}function Pt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&m)!==0&&Pt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function ae(e){for(var t=Be=e;t.parent!==null;){t=t.parent;var n=t.f;if(Ze&&t===h&&(n&H)!==0&&(n&St)===0)return;if((n&(oe|U))!==0){if((n&R)===0)return;t.f^=R}}C.push(t)}function Fr(e){vn(),v!==null&&gn();var t=ie.ensure();t.is_fork=!0,y=new Map;var n=!1,r=t.settled();Qe(e),y=null;for(var[s,f]of t.previous)s.v=f;return{commit:async()=>{if(n){await r;return}Q.has(t)||mn(),n=!0,t.is_fork=!1;for(var[l,o]of t.current)l.v=o;Qe(()=>{var a=new Set;for(var i of t.current.keys())It(i,a);Ln(a),Lt()}),t.revive(),await r},discard:()=>{!n&&Q.has(t)&&(Q.delete(t),t.discard())}}}function In(e,t,n,r){const s=Ne()?ct:Mn;if(n.length===0&&e.length===0){r(t.map(s));return}var f=v,l=h,o=Pn();function a(){Promise.all(n.map(i=>Fn(i))).then(i=>{o();try{r([...t.map(s),...i])}catch(u){(l.f&K)===0&&Fe(u,l)}f==null||f.deactivate(),Me()}).catch(i=>{Fe(i,l)})}e.length>0?Promise.all(e).then(()=>{o();try{return a()}finally{f==null||f.deactivate(),Me()}}):a()}function Pn(){var e=h,t=_,n=E,r=v;return function(f=!0){ye(e),X(t),Pe(n),f&&(r==null||r.activate())}}function Me(){ye(null),X(null),Pe(null)}function ct(e){var t=m|O,n=_!==null&&(_.f&m)!==0?_:null;return h!==null&&(h.f|=Oe),{ctx:E,deps:null,effects:null,equals:bt,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??h,ac:null}}function Fn(e,t){let n=h;n===null&&pn();var r=n.b,s=void 0,f=vt(S),l=!_,o=new Map;return Bn(()=>{var p;var a=At();s=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{i===v&&i.committed&&i.deactivate(),Me()})}catch(d){a.reject(d),Me()}var i=v;if(l){var u=!r.is_pending();r.update_pending_count(1),i.increment(u),(p=o.get(i))==null||p.reject(_e),o.delete(i),o.set(i,a)}const c=(d,k=void 0)=>{if(i.activate(),k)k!==_e&&(f.f|=$,tt(f,k));else{(f.f&$)!==0&&(f.f^=$),tt(f,d);for(const[V,ue]of o){if(o.delete(V),V===i)break;ue.reject(_e)}}l&&(r.update_pending_count(-1),i.decrement(u))};a.promise.then(c,d=>c(null,d||"unknown"))}),Un(()=>{for(const a of o.values())a.reject(_e)}),new Promise(a=>{function i(u){function c(){u===s?a(f):i(s)}u.then(c,c)}i(s)})}function Mr(e){const t=ct(e);return Zt(t),t}function Mn(e){const t=ct(e);return t.equals=xt,t}function Ft(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)le(t[n])}}function jn(e){for(var t=e.parent;t!==null;){if((t.f&m)===0)return(t.f&K)===0?t:null;t=t.parent}return null}function _t(e){var t,n=h;ye(jn(e));try{e.f&=~se,Ft(e),t=en(e)}finally{ye(n)}return t}function Mt(e){var t=_t(e);if(e.equals(t)||(v!=null&&v.is_fork||(e.v=t),e.wv=Jt()),!Ee)if(y!==null)(qe()||v!=null&&v.is_fork)&&y.set(e,t);else{var n=(e.f&F)===0?L:R;A(e,n)}}let je=new Set;const z=new Map;function Ln(e){je=e}let jt=!1;function vt(e,t){var n={f:0,v:e,reactions:null,equals:bt,rv:0,wv:0};return n}function G(e,t){const n=vt(e);return Zt(n),n}function jr(e,t=!1,n=!0){var s;const r=vt(e);return t||(r.equals=xt),De&&n&&E!==null&&E.l!==null&&((s=E.l).s??(s.s=[])).push(r),r}function W(e,t,n=!1){_!==null&&(!M||(_.f&ze)!==0)&&Ne()&&(_.f&(m|H|at|ze))!==0&&!(x!=null&&x.includes(e))&&Sn();let r=n?ge(t):t;return tt(e,r)}function tt(e,t){if(!e.equals(t)){var n=e.v;Ee?z.set(e,t):z.set(e,n),e.v=t;var r=ie.ensure();r.capture(e,n),(e.f&m)!==0&&((e.f&O)!==0&&_t(e),A(e,(e.f&F)!==0?R:L)),e.wv=Jt(),qt(e,O),Ne()&&h!==null&&(h.f&R)!==0&&(h.f&(U|oe))===0&&(N===null?zn([e]):N.push(e)),!r.is_fork&&je.size>0&&!jt&&Lt()}return t}function Lt(){jt=!1;var e=ne;Ye(!0);const t=Array.from(je);try{for(const n of t)(n.f&R)!==0&&A(n,L),Ce(n)&&be(n)}finally{Ye(e)}je.clear()}function $e(e){W(e,e.v+1)}function qt(e,t){var n=e.reactions;if(n!==null)for(var r=Ne(),s=n.length,f=0;f<s;f++){var l=n[f],o=l.f;if(!(!r&&l===h)){var a=(o&O)===0;if(a&&A(l,t),(o&m)!==0){var i=l;y==null||y.delete(i),(o&se)===0&&(o&F&&(l.f|=se),qt(i,L))}else a&&((o&H)!==0&&P!==null&&P.add(l),ae(l))}}}function ge(e){if(typeof e!="object"||e===null||Se in e)return e;const t=Tt(e);if(t!==on&&t!==un)return e;var n=new Map,r=fn(e),s=G(0),f=re,l=o=>{if(re===f)return o();var a=_,i=re;X(null),gt(f);var u=o();return X(a),gt(i),u};return r&&n.set("length",G(e.length)),new Proxy(e,{defineProperty(o,a,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&Tn();var u=n.get(a);return u===void 0?u=l(()=>{var c=G(i.value);return n.set(a,c),c}):W(u,i.value,!0),!0},deleteProperty(o,a){var i=n.get(a);if(i===void 0){if(a in o){const u=l(()=>G(S));n.set(a,u),$e(s)}}else W(i,S),$e(s);return!0},get(o,a,i){var d;if(a===Se)return e;var u=n.get(a),c=a in o;if(u===void 0&&(!c||(d=Ae(o,a))!=null&&d.writable)&&(u=l(()=>{var k=ge(c?o[a]:S),V=G(k);return V}),n.set(a,u)),u!==void 0){var p=Te(u);return p===S?void 0:p}return Reflect.get(o,a,i)},getOwnPropertyDescriptor(o,a){var i=Reflect.getOwnPropertyDescriptor(o,a);if(i&&"value"in i){var u=n.get(a);u&&(i.value=Te(u))}else if(i===void 0){var c=n.get(a),p=c==null?void 0:c.v;if(c!==void 0&&p!==S)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return i},has(o,a){var p;if(a===Se)return!0;var i=n.get(a),u=i!==void 0&&i.v!==S||Reflect.has(o,a);if(i!==void 0||h!==null&&(!u||(p=Ae(o,a))!=null&&p.writable)){i===void 0&&(i=l(()=>{var d=u?ge(o[a]):S,k=G(d);return k}),n.set(a,i));var c=Te(i);if(c===S)return!1}return u},set(o,a,i,u){var pt;var c=n.get(a),p=a in o;if(r&&a==="length")for(var d=i;d<c.v;d+=1){var k=n.get(d+"");k!==void 0?W(k,S):d in o&&(k=l(()=>G(S)),n.set(d+"",k))}if(c===void 0)(!p||(pt=Ae(o,a))!=null&&pt.writable)&&(c=l(()=>G(void 0)),W(c,ge(i)),n.set(a,c));else{p=c.v!==S;var V=l(()=>ge(i));W(c,V)}var ue=Reflect.getOwnPropertyDescriptor(o,a);if(ue!=null&&ue.set&&ue.set.call(u,i),!p){if(r&&typeof a=="string"){var dt=n.get("length"),Ge=Number(a);Number.isInteger(Ge)&&Ge>=dt.v&&W(dt,Ge+1)}$e(s)}return!0},ownKeys(o){Te(s);var a=Reflect.ownKeys(o).filter(c=>{var p=n.get(c);return p===void 0||p.v!==S});for(var[i,u]of n)u.v!==S&&!(i in o)&&a.push(i);return a},setPrototypeOf(){An()}})}var Et,qn,Yn,Yt,Ht;function Lr(){if(Et===void 0){Et=window,qn=document,Yn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Yt=Ae(t,"firstChild").get,Ht=Ae(t,"nextSibling").get,wt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),wt(n)&&(n.__t=void 0)}}function Le(e=""){return document.createTextNode(e)}function nt(e){return Yt.call(e)}function Z(e){return Ht.call(e)}function qr(e,t){if(!fe)return nt(e);var n=nt(g);if(n===null)n=g.appendChild(Le());else if(t&&n.nodeType!==lt){var r=Le();return n==null||n.before(r),we(r),r}return we(n),n}function Yr(e,t=!1){if(!fe){var n=nt(e);return n instanceof Comment&&n.data===""?Z(n):n}if(t&&(g==null?void 0:g.nodeType)!==lt){var r=Le();return g==null||g.before(r),we(r),r}return g}function Hr(e,t=1,n=!1){let r=fe?g:e;for(var s;t--;)s=r,r=Z(r);if(!fe)return r;if(n&&(r==null?void 0:r.nodeType)!==lt){var f=Le();return r===null?s==null||s.after(f):r.before(f),we(f),f}return we(r),r}function Ur(e){e.textContent=""}function Vr(){return!1}function Ut(e){var t=_,n=h;X(null),ye(null);try{return e()}finally{X(t),ye(n)}}function Vt(e){h===null&&(_===null&&yn(),wn()),Ee&&hn()}function Hn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function q(e,t,n){var r=h;r!==null&&(r.f&j)!==0&&(e|=j);var s={ctx:E,deps:null,nodes:null,f:e|O|F,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{be(s),s.f|=it}catch(o){throw le(s),o}else t!==null&&ae(s);var f=s;if(n&&f.deps===null&&f.teardown===null&&f.nodes===null&&f.first===f.last&&(f.f&Oe)===0&&(f=f.first,(e&H)!==0&&(e&Ie)!==0&&f!==null&&(f.f|=Ie)),f!==null&&(f.parent=r,r!==null&&Hn(f,r),_!==null&&(_.f&m)!==0&&(e&oe)===0)){var l=_;(l.effects??(l.effects=[])).push(f)}return s}function qe(){return _!==null&&!M}function Un(e){const t=q(Ve,null,!1);return A(t,R),t.teardown=e,t}function Vn(e){Vt();var t=h.f,n=!_&&(t&U)!==0&&(t&it)===0;if(n){var r=E;(r.e??(r.e=[])).push(e)}else return Bt(e)}function Bt(e){return q(st|Rt,e,!1)}function Br(e){return Vt(),q(Ve|Rt,e,!0)}function Gr(e){ie.ensure();const t=q(oe|Oe,e,!0);return(n={})=>new Promise(r=>{n.outro?$n(t,()=>{le(t),r(void 0)}):(le(t),r(void 0))})}function Kr(e){return q(st,e,!1)}function Bn(e){return q(at|Oe,e,!0)}function $r(e,t=0){return q(Ve|t,e,!0)}function zr(e,t=[],n=[],r=[]){In(r,t,n,s=>{q(Ve,()=>e(...s.map(Te)),!0)})}function Xr(e,t=0){var n=q(H|t,e,!0);return n}function Zr(e){return q(U|Oe,e,!0)}function Gt(e){var t=e.teardown;if(t!==null){const n=Ee,r=_;mt(!0),X(null);try{t.call(null)}finally{mt(n),X(r)}}}function Kt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Ut(()=>{s.abort(_e)});var r=n.next;(n.f&oe)!==0?n.parent=null:le(n,t),n=r}}function Gn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&U)===0&&le(t),t=n}}function le(e,t=!0){var n=!1;(t||(e.f&St)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Kn(e.nodes.start,e.nodes.end),n=!0),Kt(e,t&&!n),He(e,0),A(e,K);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();Gt(e);var s=e.parent;s!==null&&s.first!==null&&$t(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Kn(e,t){for(;e!==null;){var n=e===t?null:Z(e);e.remove(),e=n}}function $t(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function $n(e,t,n=!0){var r=[];zt(e,r,!0);var s=()=>{n&&le(e),t&&t()},f=r.length;if(f>0){var l=()=>--f||s();for(var o of r)o.out(l)}else s()}function zt(e,t,n){if((e.f&j)===0){e.f^=j;var r=e.nodes&&e.nodes.t;if(r!==null)for(const o of r)(o.is_global||n)&&t.push(o);for(var s=e.first;s!==null;){var f=s.next,l=(s.f&Ie)!==0||(s.f&U)!==0&&(e.f&H)!==0;zt(s,t,l?n:!1),s=f}}}function Wr(e){Xt(e,!0)}function Xt(e,t){if((e.f&j)!==0){e.f^=j,(e.f&R)===0&&(A(e,O),ae(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Ie)!==0||(n.f&U)!==0;Xt(n,s?t:!1),n=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const l of f)(l.is_global||t)&&l.in()}}function Jr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:Z(n);t.append(n),n=s}}let ne=!1;function Ye(e){ne=e}let Ee=!1;function mt(e){Ee=e}let _=null,M=!1;function X(e){_=e}let h=null;function ye(e){h=e}let x=null;function Zt(e){_!==null&&(x===null?x=[e]:x.push(e))}let b=null,D=0,N=null;function zn(e){N=e}let Wt=1,ke=0,re=ke;function gt(e){re=e}function Jt(){return++Wt}function Ce(e){var t=e.f;if((t&O)!==0)return!0;if(t&m&&(e.f&=~se),(t&L)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var f=n[s];if(Ce(f)&&Mt(f),f.wv>e.wv)return!0}(t&F)!==0&&y===null&&A(e,R)}return!1}function Qt(e,t,n=!0){var r=e.reactions;if(r!==null&&!(x!=null&&x.includes(e)))for(var s=0;s<r.length;s++){var f=r[s];(f.f&m)!==0?Qt(f,t,!1):t===f&&(n?A(f,O):(f.f&R)!==0&&A(f,L),ae(f))}}function en(e){var k;var t=b,n=D,r=N,s=_,f=x,l=E,o=M,a=re,i=e.f;b=null,D=0,N=null,_=(i&(U|oe))===0?e:null,x=null,Pe(e.ctx),M=!1,re=++ke,e.ac!==null&&(Ut(()=>{e.ac.abort(_e)}),e.ac=null);try{e.f|=Xe;var u=e.fn,c=u(),p=e.deps;if(b!==null){var d;if(He(e,D),p!==null&&D>0)for(p.length=D+b.length,d=0;d<b.length;d++)p[D+d]=b[d];else e.deps=p=b;if(qe()&&(e.f&F)!==0)for(d=D;d<p.length;d++)((k=p[d]).reactions??(k.reactions=[])).push(e)}else p!==null&&D<p.length&&(He(e,D),p.length=D);if(Ne()&&N!==null&&!M&&p!==null&&(e.f&(m|L|O))===0)for(d=0;d<N.length;d++)Qt(N[d],e);return s!==null&&s!==e&&(ke++,N!==null&&(r===null?r=N:r.push(...N))),(e.f&$)!==0&&(e.f^=$),c}catch(V){return Nn(V)}finally{e.f^=Xe,b=t,D=n,N=r,_=s,x=f,Pe(l),M=o,re=a}}function Xn(e,t){let n=t.reactions;if(n!==null){var r=an.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&m)!==0&&(b===null||!b.includes(t))&&(A(t,L),(t.f&F)!==0&&(t.f^=F,t.f&=~se),Ft(t),He(t,0))}function He(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Xn(e,n[r])}function be(e){var t=e.f;if((t&K)===0){A(e,R);var n=h,r=ne;h=e,ne=!0;try{(t&(H|_n))!==0?Gn(e):Kt(e),Gt(e);var s=en(e);e.teardown=typeof s=="function"?s:null,e.wv=Wt;var f}finally{ne=r,h=n}}}async function Qr(){await Promise.resolve(),Qe()}function es(){return ie.ensure().settled()}function Te(e){var t=e.f,n=(t&m)!==0;if(_!==null&&!M){var r=h!==null&&(h.f&K)!==0;if(!r&&!(x!=null&&x.includes(e))){var s=_.deps;if((_.f&Xe)!==0)e.rv<ke&&(e.rv=ke,b===null&&s!==null&&s[D]===e?D++:b===null?b=[e]:b.includes(e)||b.push(e));else{(_.deps??(_.deps=[])).push(e);var f=e.reactions;f===null?e.reactions=[_]:f.includes(_)||f.push(_)}}}if(Ee){if(z.has(e))return z.get(e);if(n){var l=e,o=l.v;return((l.f&R)===0&&l.reactions!==null||nn(l))&&(o=_t(l)),z.set(l,o),o}}else n&&(!(y!=null&&y.has(e))||v!=null&&v.is_fork&&!qe())&&(l=e,Ce(l)&&Mt(l),ne&&qe()&&(l.f&F)===0&&tn(l));if(y!=null&&y.has(e))return y.get(e);if((e.f&$)!==0)throw e.v;return e.v}function tn(e){if(e.deps!==null){e.f^=F;for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),(t.f&m)!==0&&(t.f&F)===0&&tn(t)}}function nn(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(z.has(t)||(t.f&m)!==0&&nn(t))return!0;return!1}function Zn(e){var t=M;try{return M=!0,e()}finally{M=t}}const Wn=-7169;function A(e,t){e.f=e.f&Wn|t}function ts(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Se in e)rt(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Se in n&&rt(n)}}}function rt(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{rt(e[r],t)}catch{}const n=Tt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=ln(n);for(let s in r){const f=r[s].get;if(f)try{f.call(e)}catch{}}}}}function ns(e){E===null&&dn(),De&&E.l!==null?Jn(E).m.push(e):Vn(()=>{const t=Zn(e);if(typeof t=="function")return t})}function Jn(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}export{qn as $,br as A,Nr as B,Dr as C,K as D,Ie as E,we as F,kr as G,kn as H,St as I,nt as J,kt as K,ar as L,Z as M,Ir as N,ns as O,Er as P,Yr as Q,qr as R,Se as S,Hr as T,zr as U,Pr as V,G as W,Kr as X,xr as Y,E as Z,Br as _,Te as a,nr as a$,Vn as a0,cn as a1,sr as a2,ts as a3,Cr as a4,$r as a5,On as a6,Qe as a7,tr as a8,jr as a9,Rn as aA,ot as aB,or as aC,Ur as aD,er as aE,Gr as aF,bn as aG,ut as aH,fn as aI,Tt as aJ,on as aK,Ne as aL,rr as aM,Pn as aN,Me as aO,Re as aP,S as aQ,ir as aR,_r as aS,hr as aT,vr as aU,j as aV,dr as aW,pr as aX,Sr as aY,ln as aZ,fr as a_,Qr as aa,Mr as ab,qe as ac,vt as ad,$e as ae,ie as af,ye as ag,X as ah,Pe as ai,Nn as aj,_ as ak,tt as al,Or as am,Fe as an,cr as ao,Oe as ap,ft as aq,Rr as ar,Un as as,Ut as at,Yn as au,Tr as av,Ar as aw,it as ax,lt as ay,Lr as az,Mn as b,xn as b0,Fr as b1,es as b2,ge as c,ct as d,h as e,mr as f,Ae as g,yr as h,Ee as i,wr as j,gr as k,De as l,v as m,le as n,$n as o,ur as p,Le as q,Wr as r,W as s,Zr as t,Zn as u,fe as v,g as w,Jr as x,Vr as y,Xr as z};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var Dt=Object.defineProperty;var dt=e=>{throw TypeError(e)};var Ft=(e,t,r)=>t in e?Dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var _t=(e,t,r)=>Ft(e,typeof t!="symbol"?t+"":t,r),Q=(e,t,r)=>t.has(e)||dt("Cannot "+r);var s=(e,t,r)=>(Q(e,t,"read from private field"),r?r.call(e):t.get(e)),f=(e,t,r)=>t.has(e)?dt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),i=(e,t,r,a)=>(Q(e,t,"write to private field"),a?a.call(e,r):t.set(e,r),r),p=(e,t,r)=>(Q(e,t,"access private method"),r);import{ac as Ot,a as mt,ad as Tt,a5 as Lt,u as Mt,ae as pt,a6 as ft,w as g,v as T,e as H,z as Ct,A as wt,K as ht,H as kt,t as M,af as j,o as tt,q as W,ag as K,ah as B,ai as vt,aj as Pt,ak as rt,Z as bt,x as Ht,al as It,n as et,F as Y,am as xt,C as Bt,an as gt,ao as Vt,E as qt,ap as Wt,aq as Yt,ar as Gt,a8 as Ut,as as jt,at as zt,J as st,au as $t,av as Jt,aw as Kt,ax as Xt,ay as Zt,az as nt,aA as Qt,M as te,aB as it,G as z,aC as ee,aD as re,aE as se,aF as ne,N as ie,aG as ae,aH as oe,V as le}from"./CkYrZ5uP.js";function ue(e){let t=0,r=Tt(0),a;return()=>{Ot()&&(mt(r),Lt(()=>(t===0&&(a=Mt(()=>e(()=>pt(r)))),t+=1,()=>{ft(()=>{t-=1,t===0&&(a==null||a(),a=void 0,pt(r))})})))}}var fe=qt|Wt|Yt;function he(e,t,r){new ce(e,t,r)}var E,v,G,w,C,b,m,d,N,S,D,k,F,P,O,X,u,Nt,Rt,at,$,J,ot;class ce{constructor(t,r,a){f(this,u);_t(this,"parent");f(this,E,!1);f(this,v);f(this,G,T?g:null);f(this,w);f(this,C);f(this,b);f(this,m,null);f(this,d,null);f(this,N,null);f(this,S,null);f(this,D,null);f(this,k,0);f(this,F,0);f(this,P,!1);f(this,O,null);f(this,X,ue(()=>(i(this,O,Tt(s(this,k))),()=>{i(this,O,null)})));i(this,v,t),i(this,w,r),i(this,C,a),this.parent=H.b,i(this,E,!!s(this,w).pending),i(this,b,Ct(()=>{if(H.b=this,T){const n=s(this,G);wt(),n.nodeType===ht&&n.data===kt?p(this,u,Rt).call(this):p(this,u,Nt).call(this)}else{var o=p(this,u,at).call(this);try{i(this,m,M(()=>a(o)))}catch(n){this.error(n)}s(this,F)>0?p(this,u,J).call(this):i(this,E,!1)}return()=>{var n;(n=s(this,D))==null||n.remove()}},fe)),T&&i(this,v,g)}is_pending(){return s(this,E)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!s(this,w).pending}update_pending_count(t){p(this,u,ot).call(this,t),i(this,k,s(this,k)+t),s(this,O)&&It(s(this,O),s(this,k))}get_effect_pending(){return s(this,X).call(this),mt(s(this,O))}error(t){var r=s(this,w).onerror;let a=s(this,w).failed;if(s(this,P)||!r&&!a)throw t;s(this,m)&&(et(s(this,m)),i(this,m,null)),s(this,d)&&(et(s(this,d)),i(this,d,null)),s(this,N)&&(et(s(this,N)),i(this,N,null)),T&&(Y(s(this,G)),xt(),Y(Bt()));var o=!1,n=!1;const l=()=>{if(o){Gt();return}o=!0,n&&Vt(),j.ensure(),i(this,k,0),s(this,N)!==null&&tt(s(this,N),()=>{i(this,N,null)}),i(this,E,this.has_pending_snippet()),i(this,m,p(this,u,$).call(this,()=>(i(this,P,!1),M(()=>s(this,C).call(this,s(this,v)))))),s(this,F)>0?p(this,u,J).call(this):i(this,E,!1)};var y=rt;try{B(null),n=!0,r==null||r(t,l),n=!1}catch(_){gt(_,s(this,b)&&s(this,b).parent)}finally{B(y)}a&&ft(()=>{i(this,N,p(this,u,$).call(this,()=>{j.ensure(),i(this,P,!0);try{return M(()=>{a(s(this,v),()=>t,()=>l)})}catch(_){return gt(_,s(this,b).parent),null}finally{i(this,P,!1)}}))})}}E=new WeakMap,v=new WeakMap,G=new WeakMap,w=new WeakMap,C=new WeakMap,b=new WeakMap,m=new WeakMap,d=new WeakMap,N=new WeakMap,S=new WeakMap,D=new WeakMap,k=new WeakMap,F=new WeakMap,P=new WeakMap,O=new WeakMap,X=new WeakMap,u=new WeakSet,Nt=function(){try{i(this,m,M(()=>s(this,C).call(this,s(this,v))))}catch(t){this.error(t)}i(this,E,!1)},Rt=function(){const t=s(this,w).pending;t&&(i(this,d,M(()=>t(s(this,v)))),j.enqueue(()=>{var r=p(this,u,at).call(this);i(this,m,p(this,u,$).call(this,()=>(j.ensure(),M(()=>s(this,C).call(this,r))))),s(this,F)>0?p(this,u,J).call(this):(tt(s(this,d),()=>{i(this,d,null)}),i(this,E,!1))}))},at=function(){var t=s(this,v);return s(this,E)&&(i(this,D,W()),s(this,v).before(s(this,D)),t=s(this,D)),t},$=function(t){var r=H,a=rt,o=bt;K(s(this,b)),B(s(this,b)),vt(s(this,b).ctx);try{return t()}catch(n){return Pt(n),null}finally{K(r),B(a),vt(o)}},J=function(){const t=s(this,w).pending;s(this,m)!==null&&(i(this,S,document.createDocumentFragment()),s(this,S).append(s(this,D)),Ht(s(this,m),s(this,S))),s(this,d)===null&&i(this,d,M(()=>t(s(this,v))))},ot=function(t){var r;if(!this.has_pending_snippet()){this.parent&&p(r=this.parent,u,ot).call(r,t);return}i(this,F,s(this,F)+t),s(this,F)===0&&(i(this,E,!1),s(this,d)&&tt(s(this,d),()=>{i(this,d,null)}),s(this,S)&&(s(this,v).before(s(this,S)),i(this,S,null)))};const de=["touchstart","touchmove"];function _e(e){return de.includes(e)}const At=new Set,lt=new Set;function pe(e,t,r,a={}){function o(n){if(a.capture||q.call(t,n),!n.cancelBubble)return zt(()=>r==null?void 0:r.call(this,n))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ft(()=>{t.addEventListener(e,o,a)}):t.addEventListener(e,o,a),o}function Te(e,t,r,a,o){var n={capture:a,passive:o},l=pe(e,t,r,n);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&jt(()=>{t.removeEventListener(e,l,n)})}function we(e){for(var t=0;t<e.length;t++)At.add(e[t]);for(var r of lt)r(e)}let yt=null;function q(e){var ct;var t=this,r=t.ownerDocument,a=e.type,o=((ct=e.composedPath)==null?void 0:ct.call(e))||[],n=o[0]||e.target;yt=e;var l=0,y=yt===e&&e.__root;if(y){var _=o.indexOf(y);if(_!==-1&&(t===document||t===window)){e.__root=t;return}var I=o.indexOf(t);if(I===-1)return;_<=I&&(l=_)}if(n=o[l]||e.target,n!==t){Ut(e,"currentTarget",{configurable:!0,get(){return n||r}});var Z=rt,R=H;B(null),K(null);try{for(var h,c=[];n!==null;){var A=n.assignedSlot||n.parentNode||n.host||null;try{var V=n["__"+a];V!=null&&(!n.disabled||e.target===n)&&V.call(n,e)}catch(U){h?c.push(U):h=U}if(e.cancelBubble||A===t||A===null)break;n=A}if(h){for(let U of c)queueMicrotask(()=>{throw U});throw h}}finally{e.__root=t,delete e.currentTarget,B(Z),K(R)}}}function ve(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function L(e,t){var r=H;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function be(e,t){var r=(t&Jt)!==0,a=(t&Kt)!==0,o,n=!e.startsWith("<!>");return()=>{if(T)return L(g,null),g;o===void 0&&(o=ve(n?e:"<!>"+e),r||(o=st(o)));var l=a||$t?document.importNode(o,!0):o.cloneNode(!0);if(r){var y=st(l),_=l.lastChild;L(y,_)}else L(l,l);return l}}function Ne(e=""){if(!T){var t=W(e+"");return L(t,t),t}var r=g;return r.nodeType!==Zt&&(r.before(r=W()),Y(r)),L(r,r),r}function Re(){if(T)return L(g,null),g;var e=document.createDocumentFragment(),t=document.createComment(""),r=W();return e.append(t,r),L(t,r),e}function Ae(e,t){if(T){var r=H;((r.f&Xt)===0||r.nodes.end===null)&&(r.nodes.end=g),wt();return}e!==null&&e.before(t)}function Se(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function ge(e,t){return St(e,t)}function De(e,t){nt(),t.intro=t.intro??!1;const r=t.target,a=T,o=g;try{for(var n=st(r);n&&(n.nodeType!==ht||n.data!==Qt);)n=te(n);if(!n)throw it;z(!0),Y(n);const l=St(e,{...t,anchor:n});return z(!1),l}catch(l){if(l instanceof Error&&l.message.split(`
|
|
2
|
+
`).some(y=>y.startsWith("https://svelte.dev/e/")))throw l;return l!==it&&console.warn("Failed to hydrate: ",l),t.recover===!1&&ee(),nt(),re(r),z(!1),ge(e,t)}finally{z(a),Y(o)}}const x=new Map;function St(e,{target:t,anchor:r,props:a={},events:o,context:n,intro:l=!0}){nt();var y=new Set,_=R=>{for(var h=0;h<R.length;h++){var c=R[h];if(!y.has(c)){y.add(c);var A=_e(c);t.addEventListener(c,q,{passive:A});var V=x.get(c);V===void 0?(document.addEventListener(c,q,{passive:A}),x.set(c,1)):x.set(c,V+1)}}};_(se(At)),lt.add(_);var I=void 0,Z=ne(()=>{var R=r??t.appendChild(W());return he(R,{pending:()=>{}},h=>{if(n){ie({});var c=bt;c.c=n}if(o&&(a.$$events=o),T&&L(h,null),I=e(h,a)||{},T&&(H.nodes.end=g,g===null||g.nodeType!==ht||g.data!==ae))throw oe(),it;n&&le()}),()=>{var A;for(var h of y){t.removeEventListener(h,q);var c=x.get(h);--c===0?(document.removeEventListener(h,q),x.delete(h)):x.set(h,c)}lt.delete(_),R!==r&&((A=R.parentNode)==null||A.removeChild(R))}});return ut.set(I,Z),I}let ut=new WeakMap;function Fe(e,t){const r=ut.get(e);return r?(ut.delete(e),r(t)):Promise.resolve()}const ye="5";var Et;typeof window<"u"&&((Et=window.__svelte??(window.__svelte={})).v??(Et.v=new Set)).add(ye);export{Ae as a,Re as c,we as d,Te as e,be as f,De as h,ge as m,Se as s,Ne as t,Fe as u};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as D,p as T,P as m,a as g,d as B,b as Y,c as h,s as M,i as N,e as U,D as x,f as y,u as $,l as j,h as q,j as w,k as z,S as C,L as G}from"./CkYrZ5uP.js";let S=!1;function Z(r){var n=S;try{return S=!1,[r(),S]}finally{S=n}}function H(r,n,t,d){var E;var f=!j||(t&q)!==0,v=(t&y)!==0,R=(t&z)!==0,a=d,c=!0,o=()=>(c&&(c=!1,a=R?$(d):d),a),u;if(v){var b=C in r||G in r;u=((E=D(r,n))==null?void 0:E.set)??(b&&n in r?e=>r[n]=e:void 0)}var _,I=!1;v?[_,I]=Z(()=>r[n]):_=r[n],_===void 0&&d!==void 0&&(_=o(),u&&(f&&T(),u(_)));var i;if(f?i=()=>{var e=r[n];return e===void 0?o():(c=!0,e)}:i=()=>{var e=r[n];return e!==void 0&&(a=void 0),e===void 0?a:e},f&&(t&m)===0)return i;if(u){var A=r.$$legacy;return(function(e,l){return arguments.length>0?((!f||!l||A||I)&&u(l?i():e),e):i()})}var P=!1,s=((t&w)!==0?B:Y)(()=>(P=!1,i()));v&&g(s);var L=U;return(function(e,l){if(arguments.length>0){const O=l?g(s):f&&v?h(e):e;return M(s,O),P=!0,a!==void 0&&(a=O),e}return N&&P||(L.f&x)!==0?s.v:g(s)})}export{H as p};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var R=Object.defineProperty;var y=a=>{throw TypeError(a)};var S=(a,e,s)=>e in a?R(a,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[e]=s;var A=(a,e,s)=>S(a,typeof e!="symbol"?e+"":e,s),w=(a,e,s)=>e.has(a)||y("Cannot "+s);var t=(a,e,s)=>(w(a,e,"read from private field"),s?s.call(a):e.get(a)),u=(a,e,s)=>e.has(a)?y("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,s),E=(a,e,s,i)=>(w(a,e,"write to private field"),i?i.call(a,s):e.set(a,s),s);import{m as T,r as B,n as k,o as C,q as F,t as x,v as g,w as D,x as N,y as H,z as q,A as z,E as G,B as I,H as L,C as O,F as P,G as M}from"./CkYrZ5uP.js";var d,l,c,_,v,m,b;class Y{constructor(e,s=!0){A(this,"anchor");u(this,d,new Map);u(this,l,new Map);u(this,c,new Map);u(this,_,new Set);u(this,v,!0);u(this,m,()=>{var e=T;if(t(this,d).has(e)){var s=t(this,d).get(e),i=t(this,l).get(s);if(i)B(i),t(this,_).delete(s);else{var n=t(this,c).get(s);n&&(t(this,l).set(s,n.effect),t(this,c).delete(s),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),i=n.effect)}for(const[f,r]of t(this,d)){if(t(this,d).delete(f),f===e)break;const h=t(this,c).get(r);h&&(k(h.effect),t(this,c).delete(r))}for(const[f,r]of t(this,l)){if(f===s||t(this,_).has(f))continue;const h=()=>{if(Array.from(t(this,d).values()).includes(f)){var p=document.createDocumentFragment();N(r,p),p.append(F()),t(this,c).set(f,{effect:r,fragment:p})}else k(r);t(this,_).delete(f),t(this,l).delete(f)};t(this,v)||!i?(t(this,_).add(f),C(r,h,!1)):h()}}});u(this,b,e=>{t(this,d).delete(e);const s=Array.from(t(this,d).values());for(const[i,n]of t(this,c))s.includes(i)||(k(n.effect),t(this,c).delete(i))});this.anchor=e,E(this,v,s)}ensure(e,s){var i=T,n=H();if(s&&!t(this,l).has(e)&&!t(this,c).has(e))if(n){var f=document.createDocumentFragment(),r=F();f.append(r),t(this,c).set(e,{effect:x(()=>s(r)),fragment:f})}else t(this,l).set(e,x(()=>s(this.anchor)));if(t(this,d).set(i,e),n){for(const[h,o]of t(this,l))h===e?i.skipped_effects.delete(o):i.skipped_effects.add(o);for(const[h,o]of t(this,c))h===e?i.skipped_effects.delete(o.effect):i.skipped_effects.add(o.effect);i.oncommit(t(this,m)),i.ondiscard(t(this,b))}else g&&(this.anchor=D),t(this,m).call(this)}}d=new WeakMap,l=new WeakMap,c=new WeakMap,_=new WeakMap,v=new WeakMap,m=new WeakMap,b=new WeakMap;function K(a,e,s=!1){g&&z();var i=new Y(a),n=s?G:0;function f(r,h){if(g){const p=I(a)===L;if(r===p){var o=O();P(o),i.anchor=o,M(!1),i.ensure(r,h),M(!0);return}}i.ensure(r,h)}q(()=>{var r=!1;e((h,o=!0)=>{r=!0,f(o,h)}),r||f(!1,null)},n)}export{Y as B,K as i};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.0G4u1RwN.js","../chunks/DhpCfsq_.js","../chunks/CkYrZ5uP.js","../chunks/qEz027d4.js","../chunks/BpzfNVdV.js","../assets/0.bo32IKJI.css","../nodes/1.C1QnsN4y.js","../chunks/BOlr2Mx0.js","../nodes/2.rvNN8qKE.js","../chunks/JuVRPOYA.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var N=e=>{throw TypeError(e)};var W=(e,t,r)=>t.has(e)||N("Cannot "+r);var f=(e,t,r)=>(W(e,t,"read from private field"),r?r.call(e):t.get(e)),L=(e,t,r)=>t.has(e)?N("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),T=(e,t,r,o)=>(W(e,t,"write to private field"),o?o.call(e,r):t.set(e,r),r);import{v as K,A as Z,z as p,E as $,X as tt,a5 as et,u as rt,a6 as st,S as at,s as A,L as nt,a as _,a7 as ot,a8 as ct,a9 as it,N as lt,_ as ut,a0 as ft,O as dt,W as j,aa as mt,Q as x,T as ht,V as vt,R as gt,Y as _t,ab as C,U as yt}from"../chunks/CkYrZ5uP.js";import{h as Et,m as bt,u as Pt,f as M,a as k,c as B,t as Rt,s as kt}from"../chunks/DhpCfsq_.js";import{B as wt,i as V}from"../chunks/qEz027d4.js";import{p as q}from"../chunks/JuVRPOYA.js";function D(e,t,r){K&&Z();var o=new wt(e);p(()=>{var n=t()??null;o.ensure(n,n&&(c=>r(c,n)))},$)}function z(e,t){return e===t||(e==null?void 0:e[at])===t}function I(e={},t,r,o){return tt(()=>{var n,c;return et(()=>{n=c,c=[],rt(()=>{e!==r(...c)&&(t(e,...c),n&&z(r(...n),e)&&t(null,...n))})}),()=>{st(()=>{c&&z(r(...c),e)&&t(null,...c)})}}),e}function Ot(e){return class extends St{constructor(t){super({component:e,...t})}}}var y,m;class St{constructor(t){L(this,y);L(this,m);var c;var r=new Map,o=(a,s)=>{var l=it(s,!1,!1);return r.set(a,l),l};const n=new Proxy({...t.props||{},$$events:{}},{get(a,s){return _(r.get(s)??o(s,Reflect.get(a,s)))},has(a,s){return s===nt?!0:(_(r.get(s)??o(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,l){return A(r.get(s)??o(s,l),l),Reflect.set(a,s,l)}});T(this,m,(t.hydrate?Et:bt)(t.component,{target:t.target,anchor:t.anchor,props:n,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((c=t==null?void 0:t.props)!=null&&c.$$host)||t.sync===!1)&&ot(),T(this,y,n.$$events);for(const a of Object.keys(f(this,m)))a==="$set"||a==="$destroy"||a==="$on"||ct(this,a,{get(){return f(this,m)[a]},set(s){f(this,m)[a]=s},enumerable:!0});f(this,m).$set=a=>{Object.assign(n,a)},f(this,m).$destroy=()=>{Pt(f(this,m))}}$set(t){f(this,m).$set(t)}$on(t,r){f(this,y)[t]=f(this,y)[t]||[];const o=(...n)=>r.call(this,...n);return f(this,y)[t].push(o),()=>{f(this,y)[t]=f(this,y)[t].filter(n=>n!==o)}}$destroy(){f(this,m).$destroy()}}y=new WeakMap,m=new WeakMap;const xt="modulepreload",At=function(e,t){return new URL(e,t).href},G={},U=function(t,r,o){let n=Promise.resolve();if(r&&r.length>0){let a=function(u){return Promise.all(u.map(g=>Promise.resolve(g).then(E=>({status:"fulfilled",value:E}),E=>({status:"rejected",reason:E}))))};const s=document.getElementsByTagName("link"),l=document.querySelector("meta[property=csp-nonce]"),w=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));n=a(r.map(u=>{if(u=At(u,o),u in G)return;G[u]=!0;const g=u.endsWith(".css"),E=g?'[rel="stylesheet"]':"";if(!!o)for(let i=s.length-1;i>=0;i--){const d=s[i];if(d.href===u&&(!g||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${E}`))return;const v=document.createElement("link");if(v.rel=g?"stylesheet":xt,g||(v.as="script"),v.crossOrigin="",v.href=u,w&&v.setAttribute("nonce",w),document.head.appendChild(v),g)return new Promise((i,d)=>{v.addEventListener("load",i),v.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${u}`)))})}))}function c(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return n.then(a=>{for(const s of a||[])s.status==="rejected"&&c(s.reason);return t().catch(c)})},Yt={};var Lt=M('<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>'),Tt=M("<!> <!>",1);function jt(e,t){lt(t,!0);let r=q(t,"components",23,()=>[]),o=q(t,"data_0",3,null),n=q(t,"data_1",3,null);ut(()=>t.stores.page.set(t.page)),ft(()=>{t.stores,t.page,t.constructors,r(),t.form,o(),n(),t.stores.page.notify()});let c=j(!1),a=j(!1),s=j(null);dt(()=>{const i=t.stores.page.subscribe(()=>{_(c)&&(A(a,!0),mt().then(()=>{A(s,document.title||"untitled page",!0)}))});return A(c,!0),i});const l=C(()=>t.constructors[1]);var w=Tt(),u=x(w);{var g=i=>{const d=C(()=>t.constructors[0]);var b=B(),O=x(b);D(O,()=>_(d),(P,R)=>{I(R(P,{get data(){return o()},get form(){return t.form},get params(){return t.page.params},children:(h,Bt)=>{var F=B(),X=x(F);D(X,()=>_(l),(H,J)=>{I(J(H,{get data(){return n()},get form(){return t.form},get params(){return t.page.params}}),S=>r()[1]=S,()=>{var S;return(S=r())==null?void 0:S[1]})}),k(h,F)},$$slots:{default:!0}}),h=>r()[0]=h,()=>{var h;return(h=r())==null?void 0:h[0]})}),k(i,b)},E=i=>{const d=C(()=>t.constructors[0]);var b=B(),O=x(b);D(O,()=>_(d),(P,R)=>{I(R(P,{get data(){return o()},get form(){return t.form},get params(){return t.page.params}}),h=>r()[0]=h,()=>{var h;return(h=r())==null?void 0:h[0]})}),k(i,b)};V(u,i=>{t.constructors[1]?i(g):i(E,!1)})}var Y=ht(u,2);{var v=i=>{var d=Lt(),b=gt(d);{var O=P=>{var R=Rt();yt(()=>kt(R,_(s))),k(P,R)};V(b,P=>{_(a)&&P(O)})}_t(d),k(i,d)};V(Y,i=>{_(c)&&i(v)})}k(e,w),vt()}const Ft=Ot(jt),Nt=[()=>U(()=>import("../nodes/0.0G4u1RwN.js"),__vite__mapDeps([0,1,2,3,4,5]),import.meta.url),()=>U(()=>import("../nodes/1.C1QnsN4y.js"),__vite__mapDeps([6,1,2,7]),import.meta.url),()=>U(()=>import("../nodes/2.rvNN8qKE.js"),__vite__mapDeps([8,1,2,3,4,9]),import.meta.url)],Wt=[],zt={"/":[2]},Q={handleError:(({error:e})=>{console.error(e)}),reroute:(()=>{}),transport:{}},Ct=Object.fromEntries(Object.entries(Q.transport).map(([e,t])=>[e,t.decode])),Gt=Object.fromEntries(Object.entries(Q.transport).map(([e,t])=>[e,t.encode])),Mt=!1,Qt=(e,t)=>Ct[e](t);export{Qt as decode,Ct as decoders,zt as dictionary,Gt as encoders,Mt as hash,Q as hooks,Yt as matchers,Nt as nodes,Ft as root,Wt as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/BOlr2Mx0.js";export{o as load_css,r as start};
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as K,f as $,a as m,s as f,t as Q}from"../chunks/DhpCfsq_.js";import{z,E as U,q as W,I as X,v as M,J as Y,K as L,M as O,G as R,F as j,w as Z,N as ee,O as te,Q as ae,R as o,T as v,U as b,V as se,s as c,W as x,X as re,a as r,Y as l,$ as ne}from"../chunks/CkYrZ5uP.js";import{B as oe,i as T}from"../chunks/qEz027d4.js";import{s as le,p as ie,c as de,g as ce}from"../chunks/BpzfNVdV.js";function ue(g,u,...n){var i=new oe(g);z(()=>{const a=u()??null;i.ensure(a,a&&(e=>a(e,...n)))},U)}function ve(g,u){let n=null,i=M;var a;if(M){n=Z;for(var e=Y(document.head);e!==null&&(e.nodeType!==L||e.data!==g);)e=O(e);if(e===null)R(!1);else{var y=O(e);e.remove(),j(y)}}M||(a=document.head.appendChild(W()));try{z(()=>u(a),X)}finally{i&&(R(!0),j(n))}}const ge=!0,_e=Object.freeze(Object.defineProperty({__proto__:null,ssr:ge},Symbol.toStringTag,{value:"Module"}));var pe=$('<span class="text-xs text-gh-text-secondary bg-gh-border px-2 py-0.5 rounded"> </span>'),fe=$('<div class="fixed bottom-4 right-4 bg-gh-green text-white px-5 py-3 rounded-md text-sm z-50"><!> </div>'),he=$('<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"><h1 class="text-2xl font-semibold">Claude Session Manager</h1> <!></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 class="flex-1 p-8 max-w-7xl mx-auto w-full"><!></main></div> <!>',1);function we(g,u){ee(u,!0);let n=x(""),i=x(!1),a=x(!1),e=x(null);te(async()=>{try{const t=await ce();c(n,t.version,!0)}catch{c(n,"unknown")}});const y=async()=>{if(confirm("Shutdown the server?")){c(a,!0);try{await le()}catch{}}},A=async()=>{const s=(await ie()).reduce((d,E)=>d+E.emptySessions.length,0);if(s===0){alert("No empty sessions found");return}if(confirm(`Delete ${s} empty sessions?`)){c(i,!0);try{c(e,await de({clearEmpty:!0,clearInvalid:!1}),!0),setTimeout(()=>{c(e,null),window.location.reload()},2e3)}catch(d){alert(`Error: ${d}`)}finally{c(i,!1)}}};var k=he();ve("12qhfyh",t=>{re(()=>{ne.title="Claude Session Manager"})});var _=ae(k),w=o(_),C=o(w),q=v(o(C),2);{var B=t=>{var s=pe(),d=o(s);l(s),b(()=>f(d,`v${r(n)??""}`)),m(t,s)};T(q,t=>{r(n)&&t(B)})}l(C);var N=v(C,2),p=o(N);p.__click=A;var I=o(p,!0);l(p);var h=v(p,2);h.__click=y;var P=o(h,!0);l(h),l(N),l(w);var D=v(w,2),V=o(D);ue(V,()=>u.children),l(D),l(_);var G=v(_,2);{var H=t=>{var s=fe(),d=o(s);{var E=S=>{var F=Q();b(()=>f(F,`Removed ${r(e).removedMessageCount??""} invalid messages.`)),m(S,F)};T(d,S=>{r(e).removedMessageCount>0&&S(E)})}var J=v(d);l(s),b(()=>f(J,` Deleted ${r(e).deletedCount??""} empty sessions.`)),m(t,s)};T(G,t=>{r(e)&&t(H)})}b(()=>{p.disabled=r(i),f(I,r(i)?"Cleaning...":"Clear Empty Sessions"),h.disabled=r(a),f(P,r(a)?"Shutting down...":"Shutdown")}),m(g,k),se()}K(["click"]);export{we as component,_e as universal};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as b,a as k,s as l}from"../chunks/DhpCfsq_.js";import{Z as x,_ as y,a0 as i,u as $,a1 as u,a2 as E,a as v,a3 as N,d as Q,a4 as R,N as T,Q as U,U as V,V as Y,T as Z,R as _,Y as m}from"../chunks/CkYrZ5uP.js";import{s as j,p as g}from"../chunks/BOlr2Mx0.js";function q(r=!1){const t=x,e=t.l.u;if(!e)return;let a=()=>N(t.s);if(r){let o=0,s={};const c=Q(()=>{let n=!1;const p=t.s;for(const f in p)p[f]!==s[f]&&(s[f]=p[f],n=!0);return n&&o++,o});a=()=>v(c)}e.b.length&&y(()=>{d(t,a),u(e.b)}),i(()=>{const o=$(()=>e.m.map(E));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)v(e);t()}R();const w={get error(){return g.error},get status(){return g.status}};j.updated.check;const h=w;var z=b("<h1> </h1> <p> </p>",1);function D(r,t){T(t,!1),q();var e=z(),a=U(e),o=_(a,!0);m(a);var s=Z(a,2),c=_(s,!0);m(s),V(()=>{var n;l(o,h.status),l(c,(n=h.error)==null?void 0:n.message)}),k(r,e),Y()}export{D as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var mr=Object.defineProperty;var vr=(t,e,r)=>e in t?mr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var j=(t,e,r)=>vr(t,typeof e!="symbol"?e+"":e,r);import{d as yt,f as E,a as S,s as M,c as de,e as Nt}from"../chunks/DhpCfsq_.js";import{aI as Xt,aJ as Jt,aK as wr,v as fe,A as Vt,aL as _r,z as Yt,aM as Mt,H as Kt,F as et,C as dt,G as De,a6 as $t,al as Qe,ad as st,a9 as xt,aN as yr,af as Sr,aO as Tr,aP as Rr,a7 as Ar,aQ as Er,q as pt,J as Ir,a as c,b as zr,B as Pr,w as Je,K as Cr,aG as Lr,m as Nr,aR as Ae,t as kt,y as Mr,aE as St,aS as Br,aT as Dr,aU as jr,r as er,o as tr,aV as ft,M as qr,aD as Or,n as Hr,aW as rr,aX as Zr,aY as Fr,aZ as Qr,N as Ge,U as Q,V as We,T as z,R as w,Y as m,ab as q,Q as ne,W as ye,s as R,a_ as Ur,c as Ve,O as Gr}from"../chunks/CkYrZ5uP.js";import{B as Wr,i as Z}from"../chunks/qEz027d4.js";import{o as Xr,a as Jr,b as Vr,l as Yr,d as Kr,r as $r,e as en,f as tn,h as Bt,u as rn,i as nn}from"../chunks/BpzfNVdV.js";import{p as nr}from"../chunks/JuVRPOYA.js";const sn=[];function an(t,e=!1,r=!1){return tt(t,new Map,"",sn,null,r)}function tt(t,e,r,s,n=null,i=!1){if(typeof t=="object"&&t!==null){var l=e.get(t);if(l!==void 0)return l;if(t instanceof Map)return new Map(t);if(t instanceof Set)return new Set(t);if(Xt(t)){var a=Array(t.length);e.set(t,a),n!==null&&e.set(n,a);for(var u=0;u<t.length;u+=1){var o=t[u];u in t&&(a[u]=tt(o,e,r,s,null,i))}return a}if(Jt(t)===wr){a={},e.set(t,a),n!==null&&e.set(n,a);for(var p in t)a[p]=tt(t[p],e,r,s,null,i);return a}if(t instanceof Date)return structuredClone(t);if(typeof t.toJSON=="function"&&!i)return tt(t.toJSON(),e,r,s,t)}if(t instanceof EventTarget)return t;try{return structuredClone(t)}catch{return t}}const Dt=0,gt=1;function ln(t,e,r,s,n){fe&&Vt();var i=_r(),l=Er,a=i?st(l):xt(l,!1,!1),u=i?st(l):xt(l,!1,!1),o=new Wr(t);Yt(()=>{var p=e(),d=!1;let f=fe&&Mt(p)===(t.data===Kt);if(f&&(et(dt()),De(!1)),Mt(p)){var h=yr(),v=!1;const x=g=>{if(!d){v=!0,h(!1),Sr.ensure(),fe&&De(!1);try{g()}finally{Tr(),Rr||Ar()}}};p.then(g=>{x(()=>{Qe(a,g),o.ensure(gt,s&&(_=>s(_,a)))})},g=>{x(()=>{if(Qe(u,g),o.ensure(gt,n&&(_=>n(_,u))),!n)throw u.v})}),fe?o.ensure(Dt,r):$t(()=>{v||x(()=>{o.ensure(Dt,r)})})}else Qe(a,p),o.ensure(gt,s&&(x=>s(x,a)));return f&&De(!0),()=>{d=!0}})}function bt(t,e){return e}function on(t,e,r){for(var s=[],n=e.length,i,l=e.length,a=0;a<n;a++){let d=e[a];tr(d,()=>{if(i){if(i.pending.delete(d),i.done.add(d),i.pending.size===0){var f=t.outrogroups;mt(St(i.done)),f.delete(i),f.size===0&&(t.outrogroups=null)}}else l-=1},!1)}if(l===0){var u=s.length===0&&r!==null;if(u){var o=r,p=o.parentNode;Or(p),p.append(o),t.items.clear()}mt(e,!u)}else i={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(i)}function mt(t,e=!0){for(var r=0;r<t.length;r++)Hr(t[r],e)}var jt;function at(t,e,r,s,n,i=null){var l=t,a=new Map,u=(e&rr)!==0;if(u){var o=t;l=fe?et(Ir(o)):o.appendChild(pt())}fe&&Vt();var p=null,d=zr(()=>{var _=r();return Xt(_)?_:_==null?[]:St(_)}),f,h=!0;function v(){g.fallback=p,cn(g,f,l,e,s),p!==null&&(f.length===0?(p.f&Ae)===0?er(p):(p.f^=Ae,He(p,null,l)):tr(p,()=>{p=null}))}var x=Yt(()=>{f=c(d);var _=f.length;let U=!1;if(fe){var O=Pr(l)===Kt;O!==(_===0)&&(l=dt(),et(l),De(!1),U=!0)}for(var C=new Set,X=Nr,J=Mr(),L=0;L<_;L+=1){fe&&Je.nodeType===Cr&&Je.data===Lr&&(l=Je,U=!0,De(!1));var y=f[L],A=s(y,L),N=h?null:a.get(A);N?(N.v&&Qe(N.v,y),N.i&&Qe(N.i,L),J&&X.skipped_effects.delete(N.e)):(N=un(a,h?l:jt??(jt=pt()),y,A,L,n,e,r),h||(N.e.f|=Ae),a.set(A,N)),C.add(A)}if(_===0&&i&&!p&&(h?p=kt(()=>i(l)):(p=kt(()=>i(jt??(jt=pt()))),p.f|=Ae)),fe&&_>0&&et(dt()),!h)if(J){for(const[ee,F]of a)C.has(ee)||X.skipped_effects.add(F.e);X.oncommit(v),X.ondiscard(()=>{})}else v();U&&De(!0),c(d)}),g={effect:x,items:a,outrogroups:null,fallback:p};h=!1,fe&&(l=Je)}function cn(t,e,r,s,n){var N,ee,F,G,k,b,T,D,I;var i=(s&Zr)!==0,l=e.length,a=t.items,u=t.effect.first,o,p=null,d,f=[],h=[],v,x,g,_;if(i)for(_=0;_<l;_+=1)v=e[_],x=n(v,_),g=a.get(x).e,(g.f&Ae)===0&&((ee=(N=g.nodes)==null?void 0:N.a)==null||ee.measure(),(d??(d=new Set)).add(g));for(_=0;_<l;_+=1){if(v=e[_],x=n(v,_),g=a.get(x).e,t.outrogroups!==null)for(const H of t.outrogroups)H.pending.delete(g),H.done.delete(g);if((g.f&Ae)!==0)if(g.f^=Ae,g===u)He(g,null,r);else{var U=p?p.next:u;g===t.effect.last&&(t.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),Ee(t,p,g),Ee(t,g,U),He(g,U,r),p=g,f=[],h=[],u=p.next;continue}if((g.f&ft)!==0&&(er(g),i&&((G=(F=g.nodes)==null?void 0:F.a)==null||G.unfix(),(d??(d=new Set)).delete(g))),g!==u){if(o!==void 0&&o.has(g)){if(f.length<h.length){var O=h[0],C;p=O.prev;var X=f[0],J=f[f.length-1];for(C=0;C<f.length;C+=1)He(f[C],O,r);for(C=0;C<h.length;C+=1)o.delete(h[C]);Ee(t,X.prev,J.next),Ee(t,p,X),Ee(t,J,O),u=O,p=J,_-=1,f=[],h=[]}else o.delete(g),He(g,u,r),Ee(t,g.prev,g.next),Ee(t,g,p===null?t.effect.first:p.next),Ee(t,p,g),p=g;continue}for(f=[],h=[];u!==null&&u!==g;)(o??(o=new Set)).add(u),h.push(u),u=u.next;if(u===null)continue}(g.f&Ae)===0&&f.push(g),p=g,u=g.next}if(t.outrogroups!==null){for(const H of t.outrogroups)H.pending.size===0&&(mt(St(H.done)),(k=t.outrogroups)==null||k.delete(H));t.outrogroups.size===0&&(t.outrogroups=null)}if(u!==null||o!==void 0){var L=[];if(o!==void 0)for(g of o)(g.f&ft)===0&&L.push(g);for(;u!==null;)(u.f&ft)===0&&u!==t.fallback&&L.push(u),u=u.next;var y=L.length;if(y>0){var A=(s&rr)!==0&&l===0?r:null;if(i){for(_=0;_<y;_+=1)(T=(b=L[_].nodes)==null?void 0:b.a)==null||T.measure();for(_=0;_<y;_+=1)(I=(D=L[_].nodes)==null?void 0:D.a)==null||I.fix()}on(t,L,A)}}i&&$t(()=>{var H,Y;if(d!==void 0)for(g of d)(Y=(H=g.nodes)==null?void 0:H.a)==null||Y.apply()})}function un(t,e,r,s,n,i,l,a){var u=(l&Br)!==0?(l&Dr)===0?xt(r,!1,!1):st(r):null,o=(l&jr)!==0?st(n):null;return{v:u,i:o,e:kt(()=>(i(e,u??r,o??n,a),()=>{t.delete(s)}))}}function He(t,e,r){if(t.nodes)for(var s=t.nodes.start,n=t.nodes.end,i=e&&(e.f&Ae)===0?e.nodes.start:r;s!==null;){var l=qr(s);if(i.before(s),s===n)return;s=l}}function Ee(t,e,r){e===null?t.effect.first=r:e.next=r,r===null?t.effect.last=e:r.prev=e}function hn(t,e,r){var s=t==null?"":""+t;return s===""?null:s}function rt(t,e,r,s,n,i){var l=t.__className;if(fe||l!==r||l===void 0){var a=hn(r);(!fe||a!==t.getAttribute("class"))&&(a==null?t.removeAttribute("class"):t.className=a),t.__className=r}return i}const pn=Symbol("is custom element"),fn=Symbol("is html");function Ze(t,e,r,s){var n=gn(t);fe&&(n[e]=t.getAttribute(e)),n[e]!==(n[e]=r)&&(r==null?t.removeAttribute(e):typeof r!="string"&&dn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}function gn(t){return t.__attributes??(t.__attributes={[pn]:t.nodeName.includes("-"),[fn]:t.namespaceURI===Fr})}var qt=new Map;function dn(t){var e=t.getAttribute("is")||t.nodeName,r=qt.get(e);if(r)return r;qt.set(e,r=[]);for(var s,n=t,i=Element.prototype;i!==n;){s=Qr(n);for(var l in s)s[l].set&&r.push(l);n=Jt(n)}return r}function Tt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ne=Tt();function sr(t){Ne=t}var Ue={exec:()=>null};function P(t,e=""){let r=typeof t=="string"?t:t.source,s={replace:(n,i)=>{let l=typeof i=="string"?i:i.source;return l=l.replace(se.caret,"$1"),r=r.replace(n,l),s},getRegex:()=>new RegExp(r,e)};return s}var xn=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),se={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>new RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},kn=/^(?:[ \t]*(?:\n|$))+/,bn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,mn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Xe=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,vn=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Rt=/(?:[*+-]|\d{1,9}[.)])/,ar=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ir=P(ar).replace(/bull/g,Rt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),wn=P(ar).replace(/bull/g,Rt).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),At=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,_n=/^[^\n]+/,Et=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,yn=P(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Et).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Sn=P(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Rt).getRegex(),ct="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",It=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Tn=P("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",It).replace("tag",ct).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),lr=P(At).replace("hr",Xe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ct).getRegex(),Rn=P(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",lr).getRegex(),zt={blockquote:Rn,code:bn,def:yn,fences:mn,heading:vn,hr:Xe,html:Tn,lheading:ir,list:Sn,newline:kn,paragraph:lr,table:Ue,text:_n},Ot=P("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Xe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ct).getRegex(),An={...zt,lheading:wn,table:Ot,paragraph:P(At).replace("hr",Xe).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ot).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ct).getRegex()},En={...zt,html:P(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",It).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ue,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:P(At).replace("hr",Xe).replace("heading",` *#{1,6} *[^
|
|
2
|
+
]`).replace("lheading",ir).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},In=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,zn=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,or=/^( {2,}|\\)\n(?!\s*$)/,Pn=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ut=/[\p{P}\p{S}]/u,Pt=/[\s\p{P}\p{S}]/u,cr=/[^\s\p{P}\p{S}]/u,Cn=P(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Pt).getRegex(),ur=/(?!~)[\p{P}\p{S}]/u,Ln=/(?!~)[\s\p{P}\p{S}]/u,Nn=/(?:[^\s\p{P}\p{S}]|~)/u,Mn=P(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",xn?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),hr=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Bn=P(hr,"u").replace(/punct/g,ut).getRegex(),Dn=P(hr,"u").replace(/punct/g,ur).getRegex(),pr="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",jn=P(pr,"gu").replace(/notPunctSpace/g,cr).replace(/punctSpace/g,Pt).replace(/punct/g,ut).getRegex(),qn=P(pr,"gu").replace(/notPunctSpace/g,Nn).replace(/punctSpace/g,Ln).replace(/punct/g,ur).getRegex(),On=P("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,cr).replace(/punctSpace/g,Pt).replace(/punct/g,ut).getRegex(),Hn=P(/\\(punct)/,"gu").replace(/punct/g,ut).getRegex(),Zn=P(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Fn=P(It).replace("(?:-->|$)","-->").getRegex(),Qn=P("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Fn).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),it=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Un=P(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",it).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),fr=P(/^!?\[(label)\]\[(ref)\]/).replace("label",it).replace("ref",Et).getRegex(),gr=P(/^!?\[(ref)\](?:\[\])?/).replace("ref",Et).getRegex(),Gn=P("reflink|nolink(?!\\()","g").replace("reflink",fr).replace("nolink",gr).getRegex(),Ht=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ct={_backpedal:Ue,anyPunctuation:Hn,autolink:Zn,blockSkip:Mn,br:or,code:zn,del:Ue,emStrongLDelim:Bn,emStrongRDelimAst:jn,emStrongRDelimUnd:On,escape:In,link:Un,nolink:gr,punctuation:Cn,reflink:fr,reflinkSearch:Gn,tag:Qn,text:Pn,url:Ue},Wn={...Ct,link:P(/^!?\[(label)\]\((.*?)\)/).replace("label",it).getRegex(),reflink:P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",it).getRegex()},vt={...Ct,emStrongRDelimAst:qn,emStrongLDelim:Dn,url:P(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ht).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:P(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ht).getRegex()},Xn={...vt,br:P(or).replace("{2,}","*").getRegex(),text:P(vt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ye={normal:zt,gfm:An,pedantic:En},qe={normal:Ct,gfm:vt,breaks:Xn,pedantic:Wn},Jn={"&":"&","<":"<",">":">",'"':""","'":"'"},Zt=t=>Jn[t];function Re(t,e){if(e){if(se.escapeTest.test(t))return t.replace(se.escapeReplace,Zt)}else if(se.escapeTestNoEncode.test(t))return t.replace(se.escapeReplaceNoEncode,Zt);return t}function Ft(t){try{t=encodeURI(t).replace(se.percentDecode,"%")}catch{return null}return t}function Qt(t,e){var i;let r=t.replace(se.findPipe,(l,a,u)=>{let o=!1,p=a;for(;--p>=0&&u[p]==="\\";)o=!o;return o?"|":" |"}),s=r.split(se.splitPipe),n=0;if(s[0].trim()||s.shift(),s.length>0&&!((i=s.at(-1))!=null&&i.trim())&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;n<s.length;n++)s[n]=s[n].trim().replace(se.slashPipe,"|");return s}function Oe(t,e,r){let s=t.length;if(s===0)return"";let n=0;for(;n<s&&t.charAt(s-n-1)===e;)n++;return t.slice(0,s-n)}function Vn(t,e){if(t.indexOf(e[1])===-1)return-1;let r=0;for(let s=0;s<t.length;s++)if(t[s]==="\\")s++;else if(t[s]===e[0])r++;else if(t[s]===e[1]&&(r--,r<0))return s;return r>0?-2:-1}function Ut(t,e,r,s,n){let i=e.href,l=e.title||null,a=t[1].replace(n.other.outputLinkReplace,"$1");s.state.inLink=!0;let u={type:t[0].charAt(0)==="!"?"image":"link",raw:r,href:i,title:l,text:a,tokens:s.inlineTokens(a)};return s.state.inLink=!1,u}function Yn(t,e,r){let s=t.match(r.other.indentCodeCompensation);if(s===null)return e;let n=s[1];return e.split(`
|
|
3
|
+
`).map(i=>{let l=i.match(r.other.beginningSpace);if(l===null)return i;let[a]=l;return a.length>=n.length?i.slice(n.length):i}).join(`
|
|
4
|
+
`)}var lt=class{constructor(t){j(this,"options");j(this,"rules");j(this,"lexer");this.options=t||Ne}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let r=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Oe(r,`
|
|
5
|
+
`)}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let r=e[0],s=Yn(r,e[3]||"",this.rules);return{type:"code",raw:r,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:s}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let r=e[2].trim();if(this.rules.other.endingHash.test(r)){let s=Oe(r,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(r=s.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Oe(e[0],`
|
|
6
|
+
`)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let r=Oe(e[0],`
|
|
7
|
+
`).split(`
|
|
8
|
+
`),s="",n="",i=[];for(;r.length>0;){let l=!1,a=[],u;for(u=0;u<r.length;u++)if(this.rules.other.blockquoteStart.test(r[u]))a.push(r[u]),l=!0;else if(!l)a.push(r[u]);else break;r=r.slice(u);let o=a.join(`
|
|
9
|
+
`),p=o.replace(this.rules.other.blockquoteSetextReplace,`
|
|
10
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
|
|
11
|
+
${o}`:o,n=n?`${n}
|
|
12
|
+
${p}`:p;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,i,!0),this.lexer.state.top=d,r.length===0)break;let f=i.at(-1);if((f==null?void 0:f.type)==="code")break;if((f==null?void 0:f.type)==="blockquote"){let h=f,v=h.raw+`
|
|
13
|
+
`+r.join(`
|
|
14
|
+
`),x=this.blockquote(v);i[i.length-1]=x,s=s.substring(0,s.length-h.raw.length)+x.raw,n=n.substring(0,n.length-h.text.length)+x.text;break}else if((f==null?void 0:f.type)==="list"){let h=f,v=h.raw+`
|
|
15
|
+
`+r.join(`
|
|
16
|
+
`),x=this.list(v);i[i.length-1]=x,s=s.substring(0,s.length-f.raw.length)+x.raw,n=n.substring(0,n.length-h.raw.length)+x.raw,r=v.substring(i.at(-1).raw.length).split(`
|
|
17
|
+
`);continue}}return{type:"blockquote",raw:s,tokens:i,text:n}}}list(t){var r,s;let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),i=n.length>1,l={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let a=this.rules.other.listItemRegex(n),u=!1;for(;t;){let p=!1,d="",f="";if(!(e=a.exec(t))||this.rules.block.hr.test(t))break;d=e[0],t=t.substring(d.length);let h=e[2].split(`
|
|
18
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,_=>" ".repeat(3*_.length)),v=t.split(`
|
|
19
|
+
`,1)[0],x=!h.trim(),g=0;if(this.options.pedantic?(g=2,f=h.trimStart()):x?g=e[1].length+1:(g=e[2].search(this.rules.other.nonSpaceChar),g=g>4?1:g,f=h.slice(g),g+=e[1].length),x&&this.rules.other.blankLine.test(v)&&(d+=v+`
|
|
20
|
+
`,t=t.substring(v.length+1),p=!0),!p){let _=this.rules.other.nextBulletRegex(g),U=this.rules.other.hrRegex(g),O=this.rules.other.fencesBeginRegex(g),C=this.rules.other.headingBeginRegex(g),X=this.rules.other.htmlBeginRegex(g);for(;t;){let J=t.split(`
|
|
21
|
+
`,1)[0],L;if(v=J,this.options.pedantic?(v=v.replace(this.rules.other.listReplaceNesting," "),L=v):L=v.replace(this.rules.other.tabCharGlobal," "),O.test(v)||C.test(v)||X.test(v)||_.test(v)||U.test(v))break;if(L.search(this.rules.other.nonSpaceChar)>=g||!v.trim())f+=`
|
|
22
|
+
`+L.slice(g);else{if(x||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||O.test(h)||C.test(h)||U.test(h))break;f+=`
|
|
23
|
+
`+v}!x&&!v.trim()&&(x=!0),d+=J+`
|
|
24
|
+
`,t=t.substring(J.length+1),h=L.slice(g)}}l.loose||(u?l.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(u=!0)),l.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(f),loose:!1,text:f,tokens:[]}),l.raw+=d}let o=l.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let p of l.items){if(this.lexer.state.top=!1,p.tokens=this.lexer.blockTokens(p.text,[]),p.task){if(p.text=p.text.replace(this.rules.other.listReplaceTask,""),((r=p.tokens[0])==null?void 0:r.type)==="text"||((s=p.tokens[0])==null?void 0:s.type)==="paragraph"){p.tokens[0].raw=p.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),p.tokens[0].text=p.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let f=this.lexer.inlineQueue.length-1;f>=0;f--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[f].src)){this.lexer.inlineQueue[f].src=this.lexer.inlineQueue[f].src.replace(this.rules.other.listReplaceTask,"");break}}let d=this.rules.other.listTaskCheckbox.exec(p.raw);if(d){let f={type:"checkbox",raw:d[0]+" ",checked:d[0]!=="[ ]"};p.checked=f.checked,l.loose?p.tokens[0]&&["paragraph","text"].includes(p.tokens[0].type)&&"tokens"in p.tokens[0]&&p.tokens[0].tokens?(p.tokens[0].raw=f.raw+p.tokens[0].raw,p.tokens[0].text=f.raw+p.tokens[0].text,p.tokens[0].tokens.unshift(f)):p.tokens.unshift({type:"paragraph",raw:f.raw,text:f.raw,tokens:[f]}):p.tokens.unshift(f)}}if(!l.loose){let d=p.tokens.filter(h=>h.type==="space"),f=d.length>0&&d.some(h=>this.rules.other.anyLine.test(h.raw));l.loose=f}}if(l.loose)for(let p of l.items){p.loose=!0;for(let d of p.tokens)d.type==="text"&&(d.type="paragraph")}return l}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let r=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:r,raw:e[0],href:s,title:n}}}table(t){var l;let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let r=Qt(e[1]),s=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=(l=e[3])!=null&&l.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
25
|
+
`):[],i={type:"table",raw:e[0],header:[],align:[],rows:[]};if(r.length===s.length){for(let a of s)this.rules.other.tableAlignRight.test(a)?i.align.push("right"):this.rules.other.tableAlignCenter.test(a)?i.align.push("center"):this.rules.other.tableAlignLeft.test(a)?i.align.push("left"):i.align.push(null);for(let a=0;a<r.length;a++)i.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:i.align[a]});for(let a of n)i.rows.push(Qt(a,i.header.length).map((u,o)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:i.align[o]})));return i}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:e[2].charAt(0)==="="?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let r=e[1].charAt(e[1].length-1)===`
|
|
26
|
+
`?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:r,tokens:this.lexer.inline(r)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let r=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let i=Oe(r.slice(0,-1),"\\");if((r.length-i.length)%2===0)return}else{let i=Vn(e[2],"()");if(i===-2)return;if(i>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+i;e[2]=e[2].substring(0,i),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let s=e[2],n="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(s);i&&(s=i[1],n=i[3])}else n=e[3]?e[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?s=s.slice(1):s=s.slice(1,-1)),Ut(e,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let s=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=e[s.toLowerCase()];if(!n){let i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return Ut(r,n,r[0],this.lexer,this.rules)}}emStrong(t,e,r=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!r||this.rules.inline.punctuation.exec(r))){let n=[...s[0]].length-1,i,l,a=n,u=0,o=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(o.lastIndex=0,e=e.slice(-1*t.length+n);(s=o.exec(e))!=null;){if(i=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!i)continue;if(l=[...i].length,s[3]||s[4]){a+=l;continue}else if((s[5]||s[6])&&n%3&&!((n+l)%3)){u+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a+u);let p=[...s[0]][0].length,d=t.slice(0,n+s.index+p+l);if(Math.min(n,l)%2){let h=d.slice(1,-1);return{type:"em",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}let f=d.slice(2,-2);return{type:"strong",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let r=e[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(r),n=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return s&&n&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:e[0],text:r}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let r,s;return e[2]==="@"?(r=e[1],s="mailto:"+r):(r=e[1],s=r),{type:"link",raw:e[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let e;if(e=this.rules.inline.url.exec(t)){let s,n;if(e[2]==="@")s=e[0],n="mailto:"+s;else{let i;do i=e[0],e[0]=((r=this.rules.inline._backpedal.exec(e[0]))==null?void 0:r[0])??"";while(i!==e[0]);s=e[0],e[1]==="www."?n="http://"+e[0]:n=e[0]}return{type:"link",raw:e[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let r=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:r}}}},be=class wt{constructor(e){j(this,"tokens");j(this,"options");j(this,"state");j(this,"inlineQueue");j(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Ne,this.options.tokenizer=this.options.tokenizer||new lt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:se,block:Ye.normal,inline:qe.normal};this.options.pedantic?(r.block=Ye.pedantic,r.inline=qe.pedantic):this.options.gfm&&(r.block=Ye.gfm,this.options.breaks?r.inline=qe.breaks:r.inline=qe.gfm),this.tokenizer.rules=r}static get rules(){return{block:Ye,inline:qe}}static lex(e,r){return new wt(r).lex(e)}static lexInline(e,r){return new wt(r).inlineTokens(e)}lex(e){e=e.replace(se.carriageReturn,`
|
|
27
|
+
`),this.blockTokens(e,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let s=this.inlineQueue[r];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,r=[],s=!1){var n,i,l;for(this.options.pedantic&&(e=e.replace(se.tabCharGlobal," ").replace(se.spaceLine,""));e;){let a;if((i=(n=this.options.extensions)==null?void 0:n.block)!=null&&i.some(o=>(a=o.call({lexer:this},e,r))?(e=e.substring(a.raw.length),r.push(a),!0):!1))continue;if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length);let o=r.at(-1);a.raw.length===1&&o!==void 0?o.raw+=`
|
|
28
|
+
`:r.push(a);continue}if(a=this.tokenizer.code(e)){e=e.substring(a.raw.length);let o=r.at(-1);(o==null?void 0:o.type)==="paragraph"||(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
|
|
29
|
+
`)?"":`
|
|
30
|
+
`)+a.raw,o.text+=`
|
|
31
|
+
`+a.text,this.inlineQueue.at(-1).src=o.text):r.push(a);continue}if(a=this.tokenizer.fences(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.heading(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.hr(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.blockquote(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.list(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.html(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.def(e)){e=e.substring(a.raw.length);let o=r.at(-1);(o==null?void 0:o.type)==="paragraph"||(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
|
|
32
|
+
`)?"":`
|
|
33
|
+
`)+a.raw,o.text+=`
|
|
34
|
+
`+a.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},r.push(a));continue}if(a=this.tokenizer.table(e)){e=e.substring(a.raw.length),r.push(a);continue}if(a=this.tokenizer.lheading(e)){e=e.substring(a.raw.length),r.push(a);continue}let u=e;if((l=this.options.extensions)!=null&&l.startBlock){let o=1/0,p=e.slice(1),d;this.options.extensions.startBlock.forEach(f=>{d=f.call({lexer:this},p),typeof d=="number"&&d>=0&&(o=Math.min(o,d))}),o<1/0&&o>=0&&(u=e.substring(0,o+1))}if(this.state.top&&(a=this.tokenizer.paragraph(u))){let o=r.at(-1);s&&(o==null?void 0:o.type)==="paragraph"?(o.raw+=(o.raw.endsWith(`
|
|
35
|
+
`)?"":`
|
|
36
|
+
`)+a.raw,o.text+=`
|
|
37
|
+
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):r.push(a),s=u.length!==e.length,e=e.substring(a.raw.length);continue}if(a=this.tokenizer.text(e)){e=e.substring(a.raw.length);let o=r.at(-1);(o==null?void 0:o.type)==="text"?(o.raw+=(o.raw.endsWith(`
|
|
38
|
+
`)?"":`
|
|
39
|
+
`)+a.raw,o.text+=`
|
|
40
|
+
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):r.push(a);continue}if(e){let o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,r}inline(e,r=[]){return this.inlineQueue.push({src:e,tokens:r}),r}inlineTokens(e,r=[]){var u,o,p,d,f;let s=e,n=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)h.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!=null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)i=n[2]?n[2].length:0,s=s.slice(0,n.index+i)+"["+"a".repeat(n[0].length-i-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=((o=(u=this.options.hooks)==null?void 0:u.emStrongMask)==null?void 0:o.call({lexer:this},s))??s;let l=!1,a="";for(;e;){l||(a=""),l=!1;let h;if((d=(p=this.options.extensions)==null?void 0:p.inline)!=null&&d.some(x=>(h=x.call({lexer:this},e,r))?(e=e.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.escape(e)){e=e.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.tag(e)){e=e.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.link(e)){e=e.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(h.raw.length);let x=r.at(-1);h.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=h.raw,x.text+=h.text):r.push(h);continue}if(h=this.tokenizer.emStrong(e,s,a)){e=e.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.codespan(e)){e=e.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.br(e)){e=e.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.del(e)){e=e.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.autolink(e)){e=e.substring(h.raw.length),r.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(e))){e=e.substring(h.raw.length),r.push(h);continue}let v=e;if((f=this.options.extensions)!=null&&f.startInline){let x=1/0,g=e.slice(1),_;this.options.extensions.startInline.forEach(U=>{_=U.call({lexer:this},g),typeof _=="number"&&_>=0&&(x=Math.min(x,_))}),x<1/0&&x>=0&&(v=e.substring(0,x+1))}if(h=this.tokenizer.inlineText(v)){e=e.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(a=h.raw.slice(-1)),l=!0;let x=r.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=h.raw,x.text+=h.text):r.push(h);continue}if(e){let x="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(x);break}else throw new Error(x)}}return r}},ot=class{constructor(t){j(this,"options");j(this,"parser");this.options=t||Ne}space(t){return""}code({text:t,lang:e,escaped:r}){var i;let s=(i=(e||"").match(se.notSpaceStart))==null?void 0:i[0],n=t.replace(se.endingNewline,"")+`
|
|
41
|
+
`;return s?'<pre><code class="language-'+Re(s)+'">'+(r?n:Re(n,!0))+`</code></pre>
|
|
42
|
+
`:"<pre><code>"+(r?n:Re(n,!0))+`</code></pre>
|
|
43
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
44
|
+
${this.parser.parse(t)}</blockquote>
|
|
45
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
|
|
46
|
+
`}hr(t){return`<hr>
|
|
47
|
+
`}list(t){let e=t.ordered,r=t.start,s="";for(let l=0;l<t.items.length;l++){let a=t.items[l];s+=this.listitem(a)}let n=e?"ol":"ul",i=e&&r!==1?' start="'+r+'"':"";return"<"+n+i+`>
|
|
48
|
+
`+s+"</"+n+`>
|
|
49
|
+
`}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
|
|
50
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
51
|
+
`}table(t){let e="",r="";for(let n=0;n<t.header.length;n++)r+=this.tablecell(t.header[n]);e+=this.tablerow({text:r});let s="";for(let n=0;n<t.rows.length;n++){let i=t.rows[n];r="";for(let l=0;l<i.length;l++)r+=this.tablecell(i[l]);s+=this.tablerow({text:r})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
|
|
52
|
+
<thead>
|
|
53
|
+
`+e+`</thead>
|
|
54
|
+
`+s+`</table>
|
|
55
|
+
`}tablerow({text:t}){return`<tr>
|
|
56
|
+
${t}</tr>
|
|
57
|
+
`}tablecell(t){let e=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
|
|
58
|
+
`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${Re(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:r}){let s=this.parser.parseInline(r),n=Ft(t);if(n===null)return s;t=n;let i='<a href="'+t+'"';return e&&(i+=' title="'+Re(e)+'"'),i+=">"+s+"</a>",i}image({href:t,title:e,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let n=Ft(t);if(n===null)return Re(r);t=n;let i=`<img src="${t}" alt="${r}"`;return e&&(i+=` title="${Re(e)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Re(t.text)}},Lt=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},me=class _t{constructor(e){j(this,"options");j(this,"renderer");j(this,"textRenderer");this.options=e||Ne,this.options.renderer=this.options.renderer||new ot,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Lt}static parse(e,r){return new _t(r).parse(e)}static parseInline(e,r){return new _t(r).parseInline(e)}parse(e){var s,n;let r="";for(let i=0;i<e.length;i++){let l=e[i];if((n=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&n[l.type]){let u=l,o=this.options.extensions.renderers[u.type].call({parser:this},u);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(u.type)){r+=o||"";continue}}let a=l;switch(a.type){case"space":{r+=this.renderer.space(a);break}case"hr":{r+=this.renderer.hr(a);break}case"heading":{r+=this.renderer.heading(a);break}case"code":{r+=this.renderer.code(a);break}case"table":{r+=this.renderer.table(a);break}case"blockquote":{r+=this.renderer.blockquote(a);break}case"list":{r+=this.renderer.list(a);break}case"checkbox":{r+=this.renderer.checkbox(a);break}case"html":{r+=this.renderer.html(a);break}case"def":{r+=this.renderer.def(a);break}case"paragraph":{r+=this.renderer.paragraph(a);break}case"text":{r+=this.renderer.text(a);break}default:{let u='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}parseInline(e,r=this.renderer){var n,i;let s="";for(let l=0;l<e.length;l++){let a=e[l];if((i=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&i[a.type]){let o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){s+=o||"";continue}}let u=a;switch(u.type){case"escape":{s+=r.text(u);break}case"html":{s+=r.html(u);break}case"link":{s+=r.link(u);break}case"image":{s+=r.image(u);break}case"checkbox":{s+=r.checkbox(u);break}case"strong":{s+=r.strong(u);break}case"em":{s+=r.em(u);break}case"codespan":{s+=r.codespan(u);break}case"br":{s+=r.br(u);break}case"del":{s+=r.del(u);break}case"text":{s+=r.text(u);break}default:{let o='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}},$e,Fe=($e=class{constructor(t){j(this,"options");j(this,"block");this.options=t||Ne}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?be.lex:be.lexInline}provideParser(){return this.block?me.parse:me.parseInline}},j($e,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),j($e,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),$e),Kn=class{constructor(...t){j(this,"defaults",Tt());j(this,"options",this.setOptions);j(this,"parse",this.parseMarkdown(!0));j(this,"parseInline",this.parseMarkdown(!1));j(this,"Parser",me);j(this,"Renderer",ot);j(this,"TextRenderer",Lt);j(this,"Lexer",be);j(this,"Tokenizer",lt);j(this,"Hooks",Fe);this.use(...t)}walkTokens(t,e){var s,n;let r=[];for(let i of t)switch(r=r.concat(e.call(this,i)),i.type){case"table":{let l=i;for(let a of l.header)r=r.concat(this.walkTokens(a.tokens,e));for(let a of l.rows)for(let u of a)r=r.concat(this.walkTokens(u.tokens,e));break}case"list":{let l=i;r=r.concat(this.walkTokens(l.items,e));break}default:{let l=i;(n=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&n[l.type]?this.defaults.extensions.childTokens[l.type].forEach(a=>{let u=l[a].flat(1/0);r=r.concat(this.walkTokens(u,e))}):l.tokens&&(r=r.concat(this.walkTokens(l.tokens,e)))}}return r}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{let s={...r};if(s.async=this.defaults.async||s.async||!1,r.extensions&&(r.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let i=e.renderers[n.name];i?e.renderers[n.name]=function(...l){let a=n.renderer.apply(this,l);return a===!1&&(a=i.apply(this,l)),a}:e.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=e[n.level];i?i.unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),s.extensions=e),r.renderer){let n=this.defaults.renderer||new ot(this.defaults);for(let i in r.renderer){if(!(i in n))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let l=i,a=r.renderer[l],u=n[l];n[l]=(...o)=>{let p=a.apply(n,o);return p===!1&&(p=u.apply(n,o)),p||""}}s.renderer=n}if(r.tokenizer){let n=this.defaults.tokenizer||new lt(this.defaults);for(let i in r.tokenizer){if(!(i in n))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let l=i,a=r.tokenizer[l],u=n[l];n[l]=(...o)=>{let p=a.apply(n,o);return p===!1&&(p=u.apply(n,o)),p}}s.tokenizer=n}if(r.hooks){let n=this.defaults.hooks||new Fe;for(let i in r.hooks){if(!(i in n))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let l=i,a=r.hooks[l],u=n[l];Fe.passThroughHooks.has(i)?n[l]=o=>{if(this.defaults.async&&Fe.passThroughHooksRespectAsync.has(i))return(async()=>{let d=await a.call(n,o);return u.call(n,d)})();let p=a.call(n,o);return u.call(n,p)}:n[l]=(...o)=>{if(this.defaults.async)return(async()=>{let d=await a.apply(n,o);return d===!1&&(d=await u.apply(n,o)),d})();let p=a.apply(n,o);return p===!1&&(p=u.apply(n,o)),p}}s.hooks=n}if(r.walkTokens){let n=this.defaults.walkTokens,i=r.walkTokens;s.walkTokens=function(l){let a=[];return a.push(i.call(this,l)),n&&(a=a.concat(n.call(this,l))),a}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return be.lex(t,e??this.defaults)}parser(t,e){return me.parse(t,e??this.defaults)}parseMarkdown(t){return(e,r)=>{let s={...r},n={...this.defaults,...s},i=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&s.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=t),n.async)return(async()=>{let l=n.hooks?await n.hooks.preprocess(e):e,a=await(n.hooks?await n.hooks.provideLexer():t?be.lex:be.lexInline)(l,n),u=n.hooks?await n.hooks.processAllTokens(a):a;n.walkTokens&&await Promise.all(this.walkTokens(u,n.walkTokens));let o=await(n.hooks?await n.hooks.provideParser():t?me.parse:me.parseInline)(u,n);return n.hooks?await n.hooks.postprocess(o):o})().catch(i);try{n.hooks&&(e=n.hooks.preprocess(e));let l=(n.hooks?n.hooks.provideLexer():t?be.lex:be.lexInline)(e,n);n.hooks&&(l=n.hooks.processAllTokens(l)),n.walkTokens&&this.walkTokens(l,n.walkTokens);let a=(n.hooks?n.hooks.provideParser():t?me.parse:me.parseInline)(l,n);return n.hooks&&(a=n.hooks.postprocess(a)),a}catch(l){return i(l)}}}onError(t,e){return r=>{if(r.message+=`
|
|
59
|
+
Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+Re(r.message+"",!0)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(r);throw r}}},Le=new Kn;function B(t,e){return Le.parse(t,e)}B.options=B.setOptions=function(t){return Le.setOptions(t),B.defaults=Le.defaults,sr(B.defaults),B};B.getDefaults=Tt;B.defaults=Ne;B.use=function(...t){return Le.use(...t),B.defaults=Le.defaults,sr(B.defaults),B};B.walkTokens=function(t,e){return Le.walkTokens(t,e)};B.parseInline=Le.parseInline;B.Parser=me;B.parser=me.parse;B.Renderer=ot;B.TextRenderer=Lt;B.Lexer=be;B.lexer=be.lex;B.Tokenizer=lt;B.Hooks=Fe;B.parse=B;B.options;B.setOptions;B.use;B.walkTokens;B.parseInline;me.parse;be.lex;B.setOptions({breaks:!0,gfm:!0});const Ke=t=>t?new Date(t).toLocaleString():"-",dr=(t,e)=>t.length>e?t.slice(0,e)+"...":t,$n=t=>t.replace(/^\/Users\/[^/]+/,"~"),nt=t=>typeof t=="string"?t:Array.isArray(t)?t.map(nt).join(""):t.type==="text"?t.text??"":t.type==="tool_result"?t.content?nt(t.content):"0":t.content?nt(t.content):"",Gt=t=>{const e=t.message;return e!=null&&e.content?nt(e.content):""};var es=E('<li class="py-2 px-8 text-gh-text-secondary text-sm">Loading...</li>'),ts=E(`<li><button><span class="flex-1 min-w-0 overflow-hidden text-ellipsis whitespace-nowrap"> </span> <span class="flex-shrink-0 text-xs text-gh-text-secondary bg-gh-border
|
|
60
|
+
px-1.5 py-px rounded-lg"> </span></button> <div class="flex gap-0.5 pr-2 opacity-0 group-hover:opacity-100 transition-opacity"><button class="bg-transparent border-none cursor-pointer p-1 rounded
|
|
61
|
+
hover:bg-gh-border text-xs" title="Rename">✏️</button> <button class="bg-transparent border-none cursor-pointer p-1 rounded
|
|
62
|
+
hover:bg-gh-red/20 text-xs" title="Delete">🗑️</button></div></li>`),rs=E('<ul class="bg-gh-bg"><!></ul>'),ns=E('<li class="border-b border-gh-border-subtle"><button><span class="text-xs w-3 text-gh-text-secondary"> </span> <span class="flex-1 overflow-hidden text-ellipsis whitespace-nowrap"> </span> <span class="bg-gh-border px-2 py-0.5 rounded-full text-xs font-normal"> </span></button> <!></li>'),ss=E('<aside class="bg-gh-bg-secondary border border-gh-border rounded-lg overflow-hidden flex flex-col"><h2 class="p-4 text-base font-semibold border-b border-gh-border bg-gh-bg"> </h2> <ul class="overflow-y-auto flex-1"></ul></aside>');function as(t,e){Ge(e,!0);const r=q(()=>e.projects.filter(a=>a.sessionCount>0));var s=ss(),n=w(s),i=w(n);m(n);var l=z(n,2);at(l,21,()=>c(r),bt,(a,u)=>{var o=ns(),p=w(o);p.__click=()=>e.onToggleProject(c(u).name);var d=w(p),f=w(d,!0);m(d);var h=z(d,2),v=w(h,!0);m(h);var x=z(h,2),g=w(x,!0);m(x),m(p);var _=z(p,2);{var U=O=>{var C=rs(),X=w(C);{var J=y=>{var A=es();S(y,A)},L=y=>{var A=de(),N=ne(A);at(N,17,()=>e.projectSessions.get(c(u).name)??[],bt,(ee,F)=>{const G=q(()=>{var V;return((V=e.selectedSession)==null?void 0:V.id)===c(F).id});var k=ts(),b=w(k);b.__click=()=>e.onSelectSession(c(F));var T=w(b),D=w(T,!0);m(T);var I=z(T,2),H=w(I,!0);m(I),m(b);var Y=z(b,2),ae=w(Y);ae.__click=V=>e.onRenameSession(V,c(F));var Se=z(ae,2);Se.__click=V=>e.onDeleteSession(V,c(F)),m(Y),m(k),Q(()=>{rt(k,1,`flex items-center border-t border-gh-border-subtle group ${c(G)?"bg-gh-accent/20 border-l-3 border-l-gh-accent":""}`),rt(b,1,`flex-1 min-w-0 py-2 pr-2 bg-transparent border-none text-gh-text cursor-pointer text-left flex items-center gap-2 text-sm hover:bg-gh-border-subtle ${c(G)?"pl-[calc(2rem-3px)]":"pl-8"}`),M(D,c(F).title??"Untitled"),M(H,c(F).messageCount)}),S(ee,k)}),S(y,A)};Z(X,y=>{e.loadingProject===c(u).name?y(J):y(L,!1)})}m(C),S(O,C)};Z(_,O=>{e.expandedProjects.has(c(u).name)&&O(U)})}m(o),Q((O,C,X)=>{rt(p,1,`w-full py-3 px-4 bg-transparent border-none text-gh-text cursor-pointer text-left flex items-center gap-2 font-medium hover:bg-gh-border-subtle ${O??""}`),M(f,C),Ze(h,"title",c(u).display_name),M(v,X),M(g,c(u).sessionCount)},[()=>e.expandedProjects.has(c(u).name)?"bg-gh-accent/10":"",()=>e.expandedProjects.has(c(u).name)?"▼":"▶",()=>$n(c(u).display_name)]),S(a,o)}),m(l),m(s),Q(()=>M(i,`Projects (${c(r).length??""})`)),S(t,s),We()}yt(["click"]);var is=E('<button class="absolute bottom-1 left-1/2 -translate-x-1/2 px-3 py-1 text-xs bg-gh-border hover:bg-gh-border-muted rounded-full cursor-pointer border-none text-gh-text-secondary transition-all"> </button>'),ls=E('<div class="absolute bottom-0 left-0 right-0 h-8 bg-gradient-to-t from-gh-canvas to-transparent pointer-events-none"></div> <!>',1),os=E('<button class="mt-2 px-3 py-1 text-xs bg-gh-border hover:bg-gh-border-muted rounded-full cursor-pointer border-none text-gh-text-secondary">Collapse</button>'),cs=E('<div class="relative"><pre class="whitespace-pre-wrap font-mono text-xs text-gh-text-secondary overflow-x-auto"> </pre> <!></div>'),us=E('<pre class="whitespace-pre-wrap font-mono text-xs text-gh-text-secondary overflow-x-auto"> </pre>');function Wt(t,e){Ge(e,!0);let r=nr(e,"maxLines",3,10),s=ye(!1),n=ye(!1);const i=q(()=>e.content.split(`
|
|
63
|
+
`)),l=q(()=>c(i).length>r()),a=q(()=>c(l)&&!c(s)?c(i).slice(0,r()).join(`
|
|
64
|
+
`):e.content);var u=de(),o=ne(u);{var p=f=>{var h=cs(),v=w(h),x=w(v,!0);m(v);var g=z(v,2);{var _=O=>{var C=ls(),X=z(ne(C),2);{var J=L=>{var y=is();y.__click=()=>R(s,!0);var A=w(y);m(y),Q(()=>M(A,`Click to expand (${c(i).length-r()} more lines)`)),S(L,y)};Z(X,L=>{c(n)&&L(J)})}S(O,C)},U=O=>{var C=os();C.__click=()=>R(s,!1),S(O,C)};Z(g,O=>{c(s)?O(U,!1):O(_)})}m(h),Q(()=>M(x,c(a))),Nt("mouseenter",h,()=>R(n,!0)),Nt("mouseleave",h,()=>R(n,!1)),S(f,h)},d=f=>{var h=us(),v=w(h,!0);m(h),Q(()=>M(v,e.content)),S(f,h)};Z(o,f=>{c(l)?f(p):f(d,!1)})}S(t,u),We()}yt(["click"]);var hs=E('<button class="opacity-0 group-hover:opacity-100 transition-opacity bg-transparent border-none cursor-pointer p-1 rounded hover:bg-gh-accent/20 text-xs" title="Split session from this message">✂️</button>'),ps=E('<button class="opacity-0 group-hover:opacity-100 transition-opacity bg-transparent border-none cursor-pointer p-1 rounded hover:bg-gh-red/20 text-xs" title="Delete message">🗑️</button>'),fs=E('<button class="text-gh-accent hover:underline cursor-pointer bg-transparent border-none p-0" title="Open backup in VS Code"> </button>'),gs=E('<span class="text-gh-text-secondary"> </span>'),ds=E('<li class="font-mono text-xs truncate"><!></li>'),xs=E('<div class="p-4 rounded-lg bg-amber-500/10 border-l-3 border-l-amber-500 group relative"><div class="flex justify-between mb-2 text-xs text-gh-text-secondary"><span class="uppercase font-semibold text-amber-400"> </span> <div class="flex items-center gap-2"><span> </span> <!> <!></div></div> <ul class="space-y-1"></ul></div>'),ks=E('<p class="mt-1 text-sm text-gh-text-secondary"> </p>'),bs=E('<div class="p-3 rounded-lg bg-cyan-500/10 border-l-3 border-l-cyan-500 group relative"><div class="flex justify-between items-center text-xs text-gh-text-secondary"><span class="font-semibold text-cyan-400"> </span> <div class="flex items-center gap-2"><span> </span> <!> <!></div></div> <!></div>'),ms=E('<button class="mt-1 text-sm text-gh-accent hover:underline cursor-pointer bg-transparent border-none p-0 font-mono truncate block max-w-full text-left"> </button>'),vs=E('<span class="mt-1 text-sm text-gh-text-secondary font-mono"> </span>'),ws=E('<span class="mt-1 text-sm text-gh-text-secondary font-mono"> </span>'),_s=E('<p class="mt-1 text-sm text-gh-text-secondary font-mono truncate"> </p>'),ys=E('<div class="p-3 rounded-lg bg-violet-500/10 border-l-3 border-l-violet-500 group relative"><div class="flex justify-between items-center text-xs text-gh-text-secondary"><span class="font-semibold text-violet-400"> </span> <div class="flex items-center gap-2"><span> </span> <!> <!></div></div> <!></div>'),Ss=E('<button class="opacity-0 group-hover:opacity-100 transition-opacity bg-transparent border-none cursor-pointer p-1 rounded hover:bg-gh-border text-xs" title="Edit title">✏️</button>'),Ts=E('<span class="font-semibold text-purple-400"> </span>'),Rs=E('<p class="whitespace-pre-wrap"> </p>'),As=E('<div class="message-content text-sm"><!></div>'),Es=E('<div><div class="flex justify-between text-xs text-gh-text-secondary"><span class="uppercase font-semibold"> </span> <div class="flex items-center gap-2"><span class="group-hover:hidden"> </span> <span class="hidden group-hover:inline font-mono text-gh-text-secondary/70"> </span> <!> <!> <!></div></div> <!></div>');function Is(t,e){Ge(e,!0);const r=y=>{var A=de(),N=ne(A);{var ee=F=>{var G=hs();G.__click=()=>e.onSplit(e.msg),S(F,G)};Z(N,F=>{e.onSplit&&!n()&&F(ee)})}S(y,A)},s=y=>{var A=ps();A.__click=()=>e.onDelete(e.msg),S(y,A)};let n=nr(e,"isFirst",3,!1);const i=q(()=>e.msg.type==="assistant"),l=q(()=>e.msg.type==="custom-title"),a=q(()=>e.msg.type==="file-history-snapshot"),u=q(()=>e.msg.type==="human"||e.msg.type==="user"),o=q(()=>e.msg.type==="system"&&e.msg.subtype==="local_command"),p=q(()=>e.msg.type==="queue-operation"),d=q(()=>{var y,A,N;return e.msg.type==="user"&&((N=(A=(y=e.msg.message)==null?void 0:y.content)==null?void 0:A[0])==null?void 0:N.type)==="tool_result"}),f=q(()=>{if(!c(a))return null;const y=e.msg.snapshot,A=(y==null?void 0:y.trackedFileBackups)??{};return{files:Object.entries(A),timestamp:y==null?void 0:y.timestamp}}),h=q(()=>{var N,ee,F,G;if(!c(o))return null;const y=((ee=(N=e.msg.content)==null?void 0:N.match(/<command-name>([^<]+)<\/command-name>/))==null?void 0:ee[1])??"",A=((G=(F=e.msg.content)==null?void 0:F.match(/<command-message>([^<]+)<\/command-message>/))==null?void 0:G[1])??"";return{name:y,message:A}}),v=["Read","Write","Edit"],x=q(()=>{if(!c(i))return null;const y=e.msg.message;if(!Array.isArray(y==null?void 0:y.content))return null;const A=y.content.find(N=>typeof N=="object"&&N!==null&&N.type==="tool_use");return A?{name:A.name,input:A.input,filePath:v.includes(A.name)?A.input.file_path:null}:null}),g=q(()=>e.msg.customTitle??""),_=q(()=>e.msg.uuid||e.msg.messageId||""),U=q(()=>c(p)?!1:c(a)||c(o)||c(l)||c(x)||Gt(e.msg).trim().length>0?!0:((e.msg.type==="user"||e.msg.type==="human")&&console.warn("User message without content:",an(e.msg)),!1)),O=q(()=>c(u)?"bg-gh-accent/15 border-l-3 border-l-gh-accent":c(i)?"bg-gh-green/15 border-l-3 border-l-gh-green":c(l)?"bg-purple-500/15 border-l-3 border-l-purple-500":"bg-gh-border-subtle");var C=de(),X=ne(C);{var J=y=>{},L=y=>{var A=de(),N=ne(A);{var ee=G=>{var k=xs(),b=w(k),T=w(b),D=w(T);m(T);var I=z(T,2),H=w(I),Y=w(H,!0);m(H);var ae=z(H,2);r(ae);var Se=z(ae,2);s(Se),m(I),m(b);var V=z(b,2);at(V,21,()=>c(f).files,bt,(K,xe)=>{var ce=q(()=>Ur(c(xe),2));let Te=()=>c(ce)[0],ve=()=>c(ce)[1];const ke=q(()=>!!(ve().backupFileName&&e.sessionId));var ie=ds(),te=w(ie);{var Ie=we=>{var ue=fs();ue.__click=()=>Xr(e.sessionId,ve().backupFileName);var le=w(ue,!0);m(ue),Q(()=>M(le,Te())),S(we,ue)},Me=we=>{var ue=gs(),le=w(ue,!0);m(ue),Q(()=>M(le,Te())),S(we,ue)};Z(te,we=>{c(ke)?we(Ie):we(Me,!1)})}m(ie),Q(()=>Ze(ie,"title",Te())),S(K,ie)}),m(V),m(k),Q(K=>{M(D,`📁 File Backups (${c(f).files.length??""})`),M(Y,K)},[()=>Ke(c(f).timestamp)]),S(G,k)},F=G=>{var k=de(),b=ne(k);{var T=I=>{var H=bs(),Y=w(H),ae=w(Y),Se=w(ae);m(ae);var V=z(ae,2),K=w(V),xe=w(K,!0);m(K);var ce=z(K,2);r(ce);var Te=z(ce,2);s(Te),m(V),m(Y);var ve=z(Y,2);{var ke=ie=>{var te=ks(),Ie=w(te,!0);m(te),Q(()=>M(Ie,c(h).message)),S(ie,te)};Z(ve,ie=>{var te;c(h).message&&c(h).message!==((te=c(h).name)==null?void 0:te.slice(1))&&ie(ke)})}m(H),Q(ie=>{M(Se,`⚡ ${(c(h).name||"Command")??""}`),M(xe,ie)},[()=>Ke(e.msg.timestamp)]),S(I,H)},D=I=>{var H=de(),Y=ne(H);{var ae=V=>{var K=ys(),xe=w(K),ce=w(xe),Te=w(ce);m(ce);var ve=z(ce,2),ke=w(ve),ie=w(ke,!0);m(ke);var te=z(ke,2);r(te);var Ie=z(te,2);s(Ie),m(ve),m(xe);var Me=z(xe,2);{var we=le=>{var ze=de(),je=ne(ze);ln(je,()=>Vr(c(x).filePath),re=>{var oe=ws(),he=w(oe,!0);m(oe),Q(pe=>M(he,pe),[()=>c(x).filePath.split("/").pop()]),S(re,oe)},(re,oe)=>{var he=de(),pe=ne(he);{var Pe=W=>{var $=ms();$.__click=()=>Jr(c(x).filePath);var _e=w($,!0);m($),Q(Ce=>{Ze($,"title",c(x).filePath),M(_e,Ce)},[()=>c(x).filePath.split("/").pop()]),S(W,$)},ge=W=>{var $=vs(),_e=w($,!0);m($),Q(Ce=>{Ze($,"title",c(x).filePath),M(_e,Ce)},[()=>c(x).filePath.split("/").pop()]),S(W,$)};Z(pe,W=>{c(oe)?W(Pe):W(ge,!1)})}S(re,he)}),S(le,ze)},ue=le=>{var ze=de(),je=ne(ze);{var re=he=>{var pe=_s(),Pe=w(pe,!0);m(pe),Q((ge,W)=>{Ze(pe,"title",ge),M(Pe,W)},[()=>String(c(x).input.command),()=>dr(String(c(x).input.command),100)]),S(he,pe)},oe=he=>{var pe=de(),Pe=ne(pe);{var ge=W=>{const $=q(()=>{const{path:_e,...Ce}=c(x).input;return{_path:_e,grepInput:Ce}});{let _e=q(()=>JSON.stringify(c($).grepInput,null,2));Wt(W,{get content(){return c(_e)},maxLines:6})}};Z(Pe,W=>{c(x).name==="Grep"&&W(ge)},!0)}S(he,pe)};Z(je,he=>{c(x).input.command?he(re):he(oe,!1)},!0)}S(le,ze)};Z(Me,le=>{c(x).filePath?le(we):le(ue,!1)})}m(K),Q(le=>{M(Te,`🔧 ${c(x).name??""}`),M(ie,le)},[()=>Ke(e.msg.timestamp)]),S(V,K)},Se=V=>{var K=Es(),xe=w(K),ce=w(xe),Te=w(ce,!0);m(ce);var ve=z(ce,2),ke=w(ve),ie=w(ke,!0);m(ke);var te=z(ke,2),Ie=w(te,!0);m(te);var Me=z(te,2);{var we=re=>{var oe=Ss();oe.__click=()=>e.onEditTitle(e.msg),S(re,oe)};Z(Me,re=>{c(l)&&e.onEditTitle&&re(we)})}var ue=z(Me,2);r(ue);var le=z(ue,2);s(le),m(ve),m(xe);var ze=z(xe,2);{var je=re=>{var oe=As(),he=w(oe);{var pe=ge=>{var W=Ts(),$=w(W,!0);m(W),Q(()=>M($,c(g))),S(ge,W)},Pe=ge=>{const W=q(()=>Gt(e.msg)),$=q(()=>c(W).split(`
|
|
65
|
+
`));var _e=de(),Ce=ne(_e);{var xr=Be=>{Wt(Be,{get content(){return c(W)},maxLines:10})},kr=Be=>{var ht=Rs(),br=w(ht,!0);m(ht),Q(()=>M(br,c(W))),S(Be,ht)};Z(Ce,Be=>{c($).length>10?Be(xr):Be(kr,!1)})}S(ge,_e)};Z(he,ge=>{c(l)?ge(pe):ge(Pe,!1)})}m(oe),S(re,oe)};Z(ze,re=>{c(U)&&re(je)})}m(K),Q(re=>{rt(K,1,`p-4 rounded-lg group relative ${c(O)??""} flex flex-col ${c(U)?"gap-2":""}`),M(Te,c(d)?"OUT":e.msg.type),M(ie,re),M(Ie,c(_))},[()=>Ke(e.msg.timestamp)]),S(V,K)};Z(Y,V=>{c(x)?V(ae):V(Se,!1)},!0)}S(I,H)};Z(b,I=>{c(o)&&c(h)?I(T):I(D,!1)},!0)}S(G,k)};Z(N,G=>{c(a)&&c(f)?G(ee):G(F,!1)},!0)}S(y,A)};Z(X,y=>{c(p)?y(J):y(L,!1)})}S(t,C),We()}yt(["click"]);var zs=E('<h2 class="text-base font-semibold"> </h2> <p class="text-xs text-gh-text-secondary font-mono mt-1"> </p>',1),Ps=E('<h2 class="text-base font-semibold">Messages</h2>'),Cs=E('<div class="overflow-y-auto flex-1 p-4 flex flex-col gap-4"></div>'),Ls=E('<p class="p-8 text-center text-gh-text-secondary">Select a session</p>'),Ns=E('<section class="bg-gh-bg-secondary border border-gh-border rounded-lg overflow-hidden flex flex-col"><div class="p-4 border-b border-gh-border bg-gh-bg"><!></div> <!></section>');function Ms(t,e){Ge(e,!0);const r=q(()=>e.messages.findIndex(d=>d.type==="user"||d.type==="assistant"||d.type==="human"));var s=Ns(),n=w(s),i=w(n);{var l=d=>{var f=zs(),h=ne(f),v=w(h);m(h);var x=z(h,2),g=w(x,!0);m(x),Q(_=>{M(v,`${_??""} (${e.messages.length??""} messages)`),M(g,e.session.id)},[()=>dr(e.session.title??"Untitled",50)]),S(d,f)},a=d=>{var f=Ps();S(d,f)};Z(i,d=>{e.session?d(l):d(a,!1)})}m(n);var u=z(n,2);{var o=d=>{var f=Cs();at(f,23,()=>e.messages,(h,v)=>h.uuid??`idx-${v}`,(h,v,x)=>{{let g=q(()=>c(x)===0||c(x)===c(r));Is(h,{get msg(){return c(v)},get sessionId(){return e.session.id},get isFirst(){return c(g)},get onDelete(){return e.onDeleteMessage},get onEditTitle(){return e.onEditTitle},get onSplit(){return e.onSplitSession}})}}),m(f),S(d,f)},p=d=>{var f=Ls();S(d,f)};Z(u,d=>{e.session?d(o):d(p,!1)})}m(s),S(t,s),We()}var Bs=E('<div class="fixed bottom-4 right-4 bg-gh-accent text-white px-4 py-2 rounded">Loading...</div>'),Ds=E('<div class="fixed bottom-4 right-4 bg-gh-red text-white px-4 py-2 rounded"> </div>'),js=E('<div class="grid grid-cols-[350px_1fr] gap-4 h-[calc(100vh-120px)]"><!> <!></div> <!> <!>',1);function Us(t,e){Ge(e,!0);let r=ye(Ve([])),s=ye(Ve(new Map)),n=ye(Ve(new Set)),i=ye(null),l=ye(Ve([])),a=ye(!1),u=ye(null),o=ye(null);const p=()=>{const k=window.location.hash.slice(1),b=new URLSearchParams(k);return{project:b.get("project")??void 0,session:b.get("session")??void 0}},d=(k,b)=>{const T=new URLSearchParams;k&&T.set("project",k),b&&T.set("session",b);const D=T.toString();window.history.replaceState(null,"",D?`#${D}`:window.location.pathname)},f=async()=>{R(a,!0),R(o,null);try{R(r,await Yr(),!0)}catch(k){R(o,String(k),!0)}finally{R(a,!1)}},h=async k=>{if(!c(s).has(k)){R(u,k,!0);try{const b=await Bt(k);c(s).set(k,b),R(s,new Map(c(s)),!0)}catch(b){R(o,String(b),!0)}finally{R(u,null)}}},v=async()=>{const{project:k,session:b}=p();if(k&&(await h(k),c(n).add(k),R(n,new Set(c(n)),!0),b)){const T=c(s).get(k),D=T==null?void 0:T.find(I=>I.id===b);D&&await g(D,!1)}},x=async k=>{var b,T;c(n).has(k)?(c(n).delete(k),R(n,new Set(c(n)),!0),((b=c(i))==null?void 0:b.projectName)===k&&d()):(await h(k),c(n).add(k),R(n,new Set(c(n)),!0),d(k,((T=c(i))==null?void 0:T.projectName)===k?c(i).id:void 0))},g=async(k,b=!0)=>{R(i,k,!0),R(a,!0),R(o,null);try{R(l,await en(k.projectName,k.id),!0),b&&d(k.projectName,k.id)}catch(T){R(o,String(T),!0)}finally{R(a,!1)}},_=async(k,b)=>{var T;if(k.stopPropagation(),!!confirm(`Delete session "${b.title}"?`))try{await Kr(b.projectName,b.id);const D=c(s).get(b.projectName);D&&(c(s).set(b.projectName,D.filter(I=>I.id!==b.id)),R(s,new Map(c(s)),!0)),((T=c(i))==null?void 0:T.id)===b.id&&(R(i,null),R(l,[],!0),d(b.projectName))}catch(D){R(o,String(D),!0)}},U=async(k,b)=>{k.stopPropagation();const T=prompt("Enter new title:",b.title);if(T)try{await $r(b.projectName,b.id,T),b.title=T,R(s,new Map(c(s)),!0)}catch(D){R(o,String(D),!0)}},O=async k=>{if(!c(i)||!confirm("Delete this message?"))return;const b=k.uuid||k.messageId;if(b)try{await nn(c(i).projectName,c(i).id,b),R(l,c(l).filter(I=>(I.uuid||I.messageId)!==b),!0);const T=c(s).get(c(i).projectName),D=T==null?void 0:T.find(I=>I.id===c(i).id);D&&(D.messageCount=c(l).length,R(s,new Map(c(s)),!0))}catch(T){R(o,String(T),!0)}},C=async k=>{if(!c(i))return;const b=k.customTitle??"",T=prompt("Enter new custom title:",b);if(!(T===null||T===b))try{await rn(c(i).projectName,c(i).id,k.uuid,T),k.customTitle=T,R(l,[...c(l)],!0)}catch(D){R(o,String(D),!0)}},X=async k=>{if(!c(i))return;const b=c(l).findIndex(I=>I.uuid===k.uuid),T=b,D=c(l).length-b;if(confirm(`Split session at this message?
|
|
66
|
+
|
|
67
|
+
This session will keep ${T} messages.
|
|
68
|
+
New session will have ${D} messages.`))try{R(a,!0);const I=await tn(c(i).projectName,c(i).id,k.uuid);if(I.success&&I.newSessionId){const H=await Bt(c(i).projectName);c(s).set(c(i).projectName,H),R(s,new Map(c(s)),!0),R(l,c(l).slice(0,b),!0);const Y=c(s).get(c(i).projectName),ae=Y==null?void 0:Y.find(Se=>Se.id===c(i).id);ae&&(ae.messageCount=c(l).length,R(s,new Map(c(s)),!0)),alert(`Session split successfully!
|
|
69
|
+
New session ID: ${I.newSessionId}`)}else R(o,I.error??"Failed to split session",!0)}catch(I){R(o,String(I),!0)}finally{R(a,!1)}};Gr(async()=>(await f(),await v(),window.addEventListener("hashchange",v),()=>window.removeEventListener("hashchange",v)));var J=js(),L=ne(J),y=w(L);as(y,{get projects(){return c(r)},get projectSessions(){return c(s)},get expandedProjects(){return c(n)},get selectedSession(){return c(i)},get loadingProject(){return c(u)},onToggleProject:x,onSelectSession:g,onRenameSession:U,onDeleteSession:_});var A=z(y,2);Ms(A,{get session(){return c(i)},get messages(){return c(l)},onDeleteMessage:O,onEditTitle:C,onSplitSession:X}),m(L);var N=z(L,2);{var ee=k=>{var b=Bs();S(k,b)};Z(N,k=>{c(a)&&k(ee)})}var F=z(N,2);{var G=k=>{var b=Ds(),T=w(b,!0);m(b),Q(()=>M(T,c(o))),S(k,b)};Z(F,k=>{c(o)&&k(G)})}S(t,J),We()}export{Us as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1765644474818"}
|
|
Binary file
|
|
Binary file
|
|
@@ -9,9 +9,9 @@ const index = 0;
|
|
|
9
9
|
let component_cache;
|
|
10
10
|
const component = async () => component_cache ??= (await import('./_layout.svelte-g4K2eFdi.js')).default;
|
|
11
11
|
const universal_id = "src/routes/+layout.ts";
|
|
12
|
-
const imports = ["_app/immutable/nodes/0.
|
|
13
|
-
const stylesheets = ["_app/immutable/assets/0.
|
|
12
|
+
const imports = ["_app/immutable/nodes/0.0G4u1RwN.js","_app/immutable/chunks/DhpCfsq_.js","_app/immutable/chunks/CkYrZ5uP.js","_app/immutable/chunks/qEz027d4.js","_app/immutable/chunks/BpzfNVdV.js"];
|
|
13
|
+
const stylesheets = ["_app/immutable/assets/0.bo32IKJI.css"];
|
|
14
14
|
const fonts = [];
|
|
15
15
|
|
|
16
16
|
export { component, fonts, imports, index, stylesheets, _layout_ts as universal, universal_id };
|
|
17
|
-
//# sourceMappingURL=0-
|
|
17
|
+
//# sourceMappingURL=0-CpLgwGZT.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0-
|
|
1
|
+
{"version":3,"file":"0-CpLgwGZT.js","sources":["../../../../web/.svelte-kit/adapter-node/entries/pages/_layout.ts.js","../../../../web/.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.0G4u1RwN.js\",\"_app/immutable/chunks/DhpCfsq_.js\",\"_app/immutable/chunks/CkYrZ5uP.js\",\"_app/immutable/chunks/qEz027d4.js\",\"_app/immutable/chunks/BpzfNVdV.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.bo32IKJI.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;AAChM,MAAC,WAAW,GAAG,CAAC,sCAAsC;AACtD,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const index = 1;
|
|
2
2
|
let component_cache;
|
|
3
3
|
const component = async () => component_cache ??= (await import('./error.svelte-DazOwnSn.js')).default;
|
|
4
|
-
const imports = ["_app/immutable/nodes/1.
|
|
4
|
+
const imports = ["_app/immutable/nodes/1.C1QnsN4y.js","_app/immutable/chunks/DhpCfsq_.js","_app/immutable/chunks/CkYrZ5uP.js","_app/immutable/chunks/BOlr2Mx0.js"];
|
|
5
5
|
const stylesheets = [];
|
|
6
6
|
const fonts = [];
|
|
7
7
|
|
|
8
8
|
export { component, fonts, imports, index, stylesheets };
|
|
9
|
-
//# sourceMappingURL=1-
|
|
9
|
+
//# sourceMappingURL=1-BmrRQM7e.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1-
|
|
1
|
+
{"version":3,"file":"1-BmrRQM7e.js","sources":["../../../../web/.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.C1QnsN4y.js\",\"_app/immutable/chunks/DhpCfsq_.js\",\"_app/immutable/chunks/CkYrZ5uP.js\",\"_app/immutable/chunks/BOlr2Mx0.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;AAC5J,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-Bu5w4fE4.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/2.rvNN8qKE.js","_app/immutable/chunks/DhpCfsq_.js","_app/immutable/chunks/CkYrZ5uP.js","_app/immutable/chunks/qEz027d4.js","_app/immutable/chunks/BpzfNVdV.js","_app/immutable/chunks/JuVRPOYA.js"];
|
|
5
|
+
const stylesheets = [];
|
|
6
|
+
const fonts = [];
|
|
7
|
+
|
|
8
|
+
export { component, fonts, imports, index, stylesheets };
|
|
9
|
+
//# sourceMappingURL=2-CXKmp7vO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"2-CXKmp7vO.js","sources":["../../../../web/.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.rvNN8qKE.js\",\"_app/immutable/chunks/DhpCfsq_.js\",\"_app/immutable/chunks/CkYrZ5uP.js\",\"_app/immutable/chunks/qEz027d4.js\",\"_app/immutable/chunks/BpzfNVdV.js\",\"_app/immutable/chunks/JuVRPOYA.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,4BAAkC,CAAC,EAAE;AAChG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpO,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|