signetai 0.118.3 → 0.118.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dashboard/_app/immutable/chunks/{C2UWZka9.js → 0AVF8_Gg.js} +1 -1
  2. package/dashboard/_app/immutable/chunks/{DsV93Yry.js → 4EGLM9yz.js} +1 -1
  3. package/dashboard/_app/immutable/chunks/{C5FuOllp.js → B2sZx07f.js} +1 -1
  4. package/dashboard/_app/immutable/chunks/{BVDNepQS.js → BNy0U_HA.js} +1 -1
  5. package/dashboard/_app/immutable/chunks/{BPRUlRzH.js → BQzkyN4V.js} +1 -1
  6. package/dashboard/_app/immutable/chunks/{BnG2-ByH.js → BV37vxtv.js} +1 -1
  7. package/dashboard/_app/immutable/chunks/{Cra62VQu.js → Bfm_veDS.js} +1 -1
  8. package/dashboard/_app/immutable/chunks/{C1atDStK.js → Bh9iVBQo.js} +1 -1
  9. package/dashboard/_app/immutable/chunks/{D4_ra06l.js → Bm4t3M2x.js} +1 -1
  10. package/dashboard/_app/immutable/chunks/{C2xjrbbR.js → Bp2S9kAk.js} +1 -1
  11. package/dashboard/_app/immutable/chunks/{Y8bZ_KD_.js → Bqn7FZ-e.js} +1 -1
  12. package/dashboard/_app/immutable/chunks/{BHH6bQLl.js → Br1x1OVK.js} +1 -1
  13. package/dashboard/_app/immutable/chunks/{D51tFohk.js → BvpbA1Pq.js} +2 -2
  14. package/dashboard/_app/immutable/chunks/{BamataAX.js → C34_H_4y.js} +1 -1
  15. package/dashboard/_app/immutable/chunks/{-5kHCZ-0.js → C6hToTcY.js} +1 -1
  16. package/dashboard/_app/immutable/chunks/{D1bViANH.js → C8EDqjr8.js} +1 -1
  17. package/dashboard/_app/immutable/chunks/{BcHyZ64c.js → CBzN2WxE.js} +1 -1
  18. package/dashboard/_app/immutable/chunks/{XAE2vzum.js → CCMS8UjE.js} +1 -1
  19. package/dashboard/_app/immutable/chunks/{Bs3kPGqt.js → CFdGC6PJ.js} +3 -3
  20. package/dashboard/_app/immutable/chunks/{BbDn2tHx.js → CGzrbWCm.js} +1 -1
  21. package/dashboard/_app/immutable/chunks/{rCwmEG5s.js → C_8dsqT0.js} +1 -1
  22. package/dashboard/_app/immutable/chunks/{Bvv2SPXq.js → CbmjOoz-.js} +1 -1
  23. package/dashboard/_app/immutable/chunks/{CQ6ZLhxP.js → CfLS0uX4.js} +1 -1
  24. package/dashboard/_app/immutable/chunks/{-cs3uKo_.js → CnCLOw3G.js} +1 -1
  25. package/dashboard/_app/immutable/chunks/{BOyj7USM.js → CvTMIryv.js} +1 -1
  26. package/dashboard/_app/immutable/chunks/{2esUSatj.js → D5fuK7KZ.js} +1 -1
  27. package/dashboard/_app/immutable/chunks/{BcQA7nzm.js → DApVL4nK.js} +1 -1
  28. package/dashboard/_app/immutable/chunks/{CJdPsq4-.js → DHE7tWST.js} +1 -1
  29. package/dashboard/_app/immutable/chunks/{D-lyOSHA.js → DHXiAwHh.js} +1 -1
  30. package/dashboard/_app/immutable/chunks/{BWF56r8V.js → DWiPdgUb.js} +1 -1
  31. package/dashboard/_app/immutable/chunks/{NzcNGMYt.js → DgvZgI6f.js} +2 -2
  32. package/dashboard/_app/immutable/chunks/{Dmehg7R0.js → DiumYk9R.js} +1 -1
  33. package/dashboard/_app/immutable/chunks/{CewSUTSc.js → DoMPYsG8.js} +1 -1
  34. package/dashboard/_app/immutable/chunks/{BonXV78R.js → DoUR-f7a.js} +1 -1
  35. package/dashboard/_app/immutable/chunks/{Nfy6mm_4.js → DpYqmwFa.js} +1 -1
  36. package/dashboard/_app/immutable/chunks/{DhSBQIH3.js → DyXby7og.js} +1 -1
  37. package/dashboard/_app/immutable/chunks/{DFQzawuY.js → LRO1hwtX.js} +1 -1
  38. package/dashboard/_app/immutable/chunks/{CbaAFpYu.js → PDuBqS_L.js} +1 -1
  39. package/dashboard/_app/immutable/chunks/{CR1xjK9Z.js → ZYegubbX.js} +1 -1
  40. package/dashboard/_app/immutable/chunks/{DSF5NsVF.js → aPlar-Du.js} +1 -1
  41. package/dashboard/_app/immutable/chunks/{6LKQP4XO.js → gRICFZy6.js} +1 -1
  42. package/dashboard/_app/immutable/chunks/{C49MKNSU.js → j-B50HBp.js} +1 -1
  43. package/dashboard/_app/immutable/chunks/{CpTifzMy.js → pV2i0WtX.js} +1 -1
  44. package/dashboard/_app/immutable/chunks/{DdAAA2Cd.js → pYK8rq8X.js} +1 -1
  45. package/dashboard/_app/immutable/chunks/{_Iol3XV9.js → vfg-DMgf.js} +1 -1
  46. package/dashboard/_app/immutable/chunks/{h3N46V2g.js → wd8g3Kd6.js} +1 -1
  47. package/dashboard/_app/immutable/entry/{app.BVeeFvhS.js → app.Bm8oeFct.js} +2 -2
  48. package/dashboard/_app/immutable/entry/start.Ur1QjmZh.js +1 -0
  49. package/dashboard/_app/immutable/nodes/{1.BTL4tQYS.js → 1.CM_fJQiO.js} +1 -1
  50. package/dashboard/_app/immutable/nodes/2.5NphPPlr.js +1 -0
  51. package/dashboard/_app/version.json +1 -1
  52. package/dashboard/index.html +6 -6
  53. package/dist/daemon.js +18 -1
  54. package/dist/extraction-thread.js +18 -1
  55. package/package.json +1 -1
  56. package/dashboard/_app/immutable/entry/start.MlJj3ugx.js +0 -1
  57. package/dashboard/_app/immutable/nodes/2.Bh4Z6I4e.js +0 -1
@@ -1,4 +1,4 @@
1
- import{p as se,s as be,c as G,f as T,a as fe,n as ge,b as c,d as re,r as ke,e as pe,o as me,j as u,A as Y,h as A,i as s,t as y,l as p,k as C,w as ue,x as Z,y as z,z as H,u as ee,a9 as We,M as he,aa as Fe,a2 as Ke,J as Ve,m as w,v as te,R as Ue,N as Qe}from"./BCse5epf.js";import{I as ye,w as Xe,o as ae}from"./Bs3kPGqt.js";import{S as Ye,a as Ze,b as et,c as tt}from"./DdAAA2Cd.js";import{W as at,L as ve}from"./CR1xjK9Z.js";import{T as st}from"./DFQzawuY.js";function rt(P,f){se(f,!0);let _=ke(f,["$$slots","$$events","$$legacy"]);const g=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]];ye(P,be({name:"activity"},()=>_,{get iconNode(){return g},children:(h,O)=>{var x=G(),E=T(x);fe(E,()=>f.children??ge),c(h,x)},$$slots:{default:!0}})),re()}function nt(P,f){se(f,!0);let _=ke(f,["$$slots","$$events","$$legacy"]);const g=[["path",{d:"M12 19h8"}],["path",{d:"m4 17 6-6-6-6"}]];ye(P,be({name:"terminal"},()=>_,{get iconNode(){return g},children:(h,O)=>{var x=G(),E=T(x);fe(E,()=>f.children??ge),c(h,x)},$$slots:{default:!0}})),re()}var it=w('<span class="ts-panel-count svelte-c36e65"> </span>'),lt=w("<!> <!>",1),ot=w('<div class="ts-control svelte-c36e65"><div class="ts-control-head svelte-c36e65"><div class="ts-control-title-wrap svelte-c36e65"><!> <span class="ts-control-title svelte-c36e65"> </span> <!></div> <!></div> <div class="ts-action-bar svelte-c36e65"><!> <button class="ts-run svelte-c36e65"><!></button></div></div>'),ct=w('<button class="ts-clear svelte-c36e65" title="Clear output"><!></button>'),dt=w('<div class="ts-empty svelte-c36e65">no output yet</div>'),pt=w('<div class="ts-line svelte-c36e65"></div>'),mt=w('<div class="ts-root svelte-c36e65"><div class="ts-controls svelte-c36e65"></div> <div class="ts-terminal-wrap svelte-c36e65"><div class="ts-terminal-head svelte-c36e65"><span class="ts-control-title svelte-c36e65">Terminal</span> <!></div> <div class="ts-term svelte-c36e65" role="log"><!></div></div></div>');function yt(P,f){se(f,!0);const _=[{id:"cli",title:"CLI",icon:nt,color:"var(--sig-highlight)",commands:[{label:"Status",kind:"cli",key:"status"},{label:"Daemon Status",kind:"cli",key:"daemon-status"},{label:"Daemon Logs",kind:"cli",key:"daemon-logs"},{label:"Sync",kind:"cli",key:"sync"},{label:"Embed Audit",kind:"cli",key:"embed-audit"},{label:"Skill List",kind:"cli",key:"skill-list"},{label:"Secret List",kind:"cli",key:"secret-list"},{label:"Recall Test",kind:"cli",key:"recall-test"}]},{id:"status",title:"Status",icon:rt,color:"var(--sig-highlight)",commands:[{label:"Health",kind:"api",method:"GET",path:"/health"},{label:"Diagnostics",kind:"api",method:"GET",path:"/api/diagnostics"},{label:"Pipeline",kind:"api",method:"GET",path:"/api/pipeline/status"},{label:"Git",kind:"api",method:"GET",path:"/api/git/status"},{label:"Embeddings",kind:"api",method:"GET",path:"/api/embeddings/health"}]},{id:"info",title:"Info",icon:Xe,color:"var(--sig-highlight)",commands:[{label:"Embed Gaps",kind:"api",method:"GET",path:"/api/repair/embedding-gaps"},{label:"Dedup Stats",kind:"api",method:"GET",path:"/api/repair/dedup-stats"},{label:"Cold Stats",kind:"api",method:"GET",path:"/api/repair/cold-stats"}]},{id:"repair",title:"Repair",icon:at,color:"var(--sig-highlight)",commands:[{label:"Check FTS",kind:"api",method:"POST",path:"/api/repair/check-fts"},{label:"Re-embed",kind:"api",method:"POST",path:"/api/repair/re-embed"},{label:"Resync Vec",kind:"api",method:"POST",path:"/api/repair/resync-vec"},{label:"Clean Orphans",kind:"api",method:"POST",path:"/api/repair/clean-orphans"},{label:"Deduplicate",kind:"api",method:"POST",path:"/api/repair/deduplicate"},{label:"Retention",kind:"api",method:"POST",path:"/api/repair/retention-sweep"},{label:"Requeue Dead",kind:"api",method:"POST",path:"/api/repair/requeue-dead"},{label:"Release Leases",kind:"api",method:"POST",path:"/api/repair/release-leases"},{label:"Backfill Skipped",kind:"api",method:"POST",path:"/api/repair/backfill-skipped"},{label:"Reclassify",kind:"api",method:"POST",path:"/api/repair/reclassify-entities"},{label:"Prune Chunks",kind:"api",method:"POST",path:"/api/repair/prune-chunk-groups"},{label:"Prune Singletons",kind:"api",method:"POST",path:"/api/repair/prune-singleton-entities"},{label:"Stop Daemon",kind:"cli",key:"daemon-stop"},{label:"Restart Daemon",kind:"cli",key:"daemon-restart"},{label:"Update Signet",kind:"cli",key:"update"}]}],g=pe(Object.fromEntries(_.map(e=>[e.id,{lines:[],running:!1,selected:0}])));let h=me(pe([])),O=me(void 0);const x=Object.fromEntries(_.map(e=>[e.id,e]));function E(e){te(O,e,!0)}async function v(e){await Ue(),s(O)?.scrollTo({top:s(O).scrollHeight,behavior:"smooth"})}function o(e,t){const a=g[e];if(!a)return;a.lines=[...a.lines,t];const i=x[e]?.title??e;te(h,[...s(h),t?`[${i}] ${t}`:""],!0)}function _e(){te(h,[],!0);for(const e of _)g[e.id].lines=[]}async function xe(e,t){const a=g[e];if(!a||a.running||!t.key)return;a.running=!0,o(e,`\x1B[32m$\x1B[0m signet ${t.key.replace(/-/g," ")}`),await v();const i=new AbortController;let r=!1;try{const n=await fetch(`${ae}/api/troubleshoot/exec`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({key:t.key}),signal:i.signal});if(!n.ok){const D=await n.json().catch(()=>({error:"request failed"}));o(e,`\x1B[31merror:\x1B[0m ${D.error??n.statusText}`),a.running=!1,await v(e);return}const d=n.body?.getReader();if(!d){o(e,"\x1B[31merror:\x1B[0m no stream"),a.running=!1;return}t.key==="daemon-restart"&&(r=!0);const b=new TextDecoder;let $="";try{for(;;){const{done:D,value:F}=await d.read();if(D)break;$+=b.decode(F,{stream:!0});const N=$.split(`
1
+ import{p as se,s as be,c as G,f as T,a as fe,n as ge,b as c,d as re,r as ke,e as pe,o as me,j as u,A as Y,h as A,i as s,t as y,l as p,k as C,w as ue,x as Z,y as z,z as H,u as ee,a9 as We,M as he,aa as Fe,a2 as Ke,J as Ve,m as w,v as te,R as Ue,N as Qe}from"./BCse5epf.js";import{I as ye,w as Xe,o as ae}from"./CFdGC6PJ.js";import{S as Ye,a as Ze,b as et,c as tt}from"./pYK8rq8X.js";import{W as at,L as ve}from"./ZYegubbX.js";import{T as st}from"./LRO1hwtX.js";function rt(P,f){se(f,!0);let _=ke(f,["$$slots","$$events","$$legacy"]);const g=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]];ye(P,be({name:"activity"},()=>_,{get iconNode(){return g},children:(h,O)=>{var x=G(),E=T(x);fe(E,()=>f.children??ge),c(h,x)},$$slots:{default:!0}})),re()}function nt(P,f){se(f,!0);let _=ke(f,["$$slots","$$events","$$legacy"]);const g=[["path",{d:"M12 19h8"}],["path",{d:"m4 17 6-6-6-6"}]];ye(P,be({name:"terminal"},()=>_,{get iconNode(){return g},children:(h,O)=>{var x=G(),E=T(x);fe(E,()=>f.children??ge),c(h,x)},$$slots:{default:!0}})),re()}var it=w('<span class="ts-panel-count svelte-c36e65"> </span>'),lt=w("<!> <!>",1),ot=w('<div class="ts-control svelte-c36e65"><div class="ts-control-head svelte-c36e65"><div class="ts-control-title-wrap svelte-c36e65"><!> <span class="ts-control-title svelte-c36e65"> </span> <!></div> <!></div> <div class="ts-action-bar svelte-c36e65"><!> <button class="ts-run svelte-c36e65"><!></button></div></div>'),ct=w('<button class="ts-clear svelte-c36e65" title="Clear output"><!></button>'),dt=w('<div class="ts-empty svelte-c36e65">no output yet</div>'),pt=w('<div class="ts-line svelte-c36e65"></div>'),mt=w('<div class="ts-root svelte-c36e65"><div class="ts-controls svelte-c36e65"></div> <div class="ts-terminal-wrap svelte-c36e65"><div class="ts-terminal-head svelte-c36e65"><span class="ts-control-title svelte-c36e65">Terminal</span> <!></div> <div class="ts-term svelte-c36e65" role="log"><!></div></div></div>');function yt(P,f){se(f,!0);const _=[{id:"cli",title:"CLI",icon:nt,color:"var(--sig-highlight)",commands:[{label:"Status",kind:"cli",key:"status"},{label:"Daemon Status",kind:"cli",key:"daemon-status"},{label:"Daemon Logs",kind:"cli",key:"daemon-logs"},{label:"Sync",kind:"cli",key:"sync"},{label:"Embed Audit",kind:"cli",key:"embed-audit"},{label:"Skill List",kind:"cli",key:"skill-list"},{label:"Secret List",kind:"cli",key:"secret-list"},{label:"Recall Test",kind:"cli",key:"recall-test"}]},{id:"status",title:"Status",icon:rt,color:"var(--sig-highlight)",commands:[{label:"Health",kind:"api",method:"GET",path:"/health"},{label:"Diagnostics",kind:"api",method:"GET",path:"/api/diagnostics"},{label:"Pipeline",kind:"api",method:"GET",path:"/api/pipeline/status"},{label:"Git",kind:"api",method:"GET",path:"/api/git/status"},{label:"Embeddings",kind:"api",method:"GET",path:"/api/embeddings/health"}]},{id:"info",title:"Info",icon:Xe,color:"var(--sig-highlight)",commands:[{label:"Embed Gaps",kind:"api",method:"GET",path:"/api/repair/embedding-gaps"},{label:"Dedup Stats",kind:"api",method:"GET",path:"/api/repair/dedup-stats"},{label:"Cold Stats",kind:"api",method:"GET",path:"/api/repair/cold-stats"}]},{id:"repair",title:"Repair",icon:at,color:"var(--sig-highlight)",commands:[{label:"Check FTS",kind:"api",method:"POST",path:"/api/repair/check-fts"},{label:"Re-embed",kind:"api",method:"POST",path:"/api/repair/re-embed"},{label:"Resync Vec",kind:"api",method:"POST",path:"/api/repair/resync-vec"},{label:"Clean Orphans",kind:"api",method:"POST",path:"/api/repair/clean-orphans"},{label:"Deduplicate",kind:"api",method:"POST",path:"/api/repair/deduplicate"},{label:"Retention",kind:"api",method:"POST",path:"/api/repair/retention-sweep"},{label:"Requeue Dead",kind:"api",method:"POST",path:"/api/repair/requeue-dead"},{label:"Release Leases",kind:"api",method:"POST",path:"/api/repair/release-leases"},{label:"Backfill Skipped",kind:"api",method:"POST",path:"/api/repair/backfill-skipped"},{label:"Reclassify",kind:"api",method:"POST",path:"/api/repair/reclassify-entities"},{label:"Prune Chunks",kind:"api",method:"POST",path:"/api/repair/prune-chunk-groups"},{label:"Prune Singletons",kind:"api",method:"POST",path:"/api/repair/prune-singleton-entities"},{label:"Stop Daemon",kind:"cli",key:"daemon-stop"},{label:"Restart Daemon",kind:"cli",key:"daemon-restart"},{label:"Update Signet",kind:"cli",key:"update"}]}],g=pe(Object.fromEntries(_.map(e=>[e.id,{lines:[],running:!1,selected:0}])));let h=me(pe([])),O=me(void 0);const x=Object.fromEntries(_.map(e=>[e.id,e]));function E(e){te(O,e,!0)}async function v(e){await Ue(),s(O)?.scrollTo({top:s(O).scrollHeight,behavior:"smooth"})}function o(e,t){const a=g[e];if(!a)return;a.lines=[...a.lines,t];const i=x[e]?.title??e;te(h,[...s(h),t?`[${i}] ${t}`:""],!0)}function _e(){te(h,[],!0);for(const e of _)g[e.id].lines=[]}async function xe(e,t){const a=g[e];if(!a||a.running||!t.key)return;a.running=!0,o(e,`\x1B[32m$\x1B[0m signet ${t.key.replace(/-/g," ")}`),await v();const i=new AbortController;let r=!1;try{const n=await fetch(`${ae}/api/troubleshoot/exec`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({key:t.key}),signal:i.signal});if(!n.ok){const D=await n.json().catch(()=>({error:"request failed"}));o(e,`\x1B[31merror:\x1B[0m ${D.error??n.statusText}`),a.running=!1,await v(e);return}const d=n.body?.getReader();if(!d){o(e,"\x1B[31merror:\x1B[0m no stream"),a.running=!1;return}t.key==="daemon-restart"&&(r=!0);const b=new TextDecoder;let $="";try{for(;;){const{done:D,value:F}=await d.read();if(D)break;$+=b.decode(F,{stream:!0});const N=$.split(`
2
2
 
3
3
  `);$=N.pop()??"";for(const K of N){const R=K.match(/^data:\s*(.+)$/m);if(R)try{const m=JSON.parse(R[1]);if(m.type==="started"&&(r=!0),m.type==="stdout"||m.type==="stderr"){const S=String(m.data).replace(/\n$/,"");if(S){for(const I of S.split(`
4
4
  `))o(e,m.type==="stderr"?`\x1B[33m${I}\x1B[0m`:I);await v(e)}}else m.type==="exit"?(o(e,m.code===0?"\x1B[32m✓ exit 0\x1B[0m":`\x1B[31m✗ exit ${m.code}\x1B[0m`),await v(e)):m.type==="error"&&(o(e,`\x1B[31merror:\x1B[0m ${m.message}`),await v(e))}catch{}}}}finally{d.releaseLock()}}catch(n){i.signal.aborted||(t.key==="daemon-stop"||t.key==="daemon-restart"?o(e,"\x1B[33mDaemon process ended\x1B[0m"):o(e,`\x1B[31merror:\x1B[0m ${n instanceof Error?n.message:"fetch failed"}`))}if(t.key==="daemon-restart"&&r){o(e,"\x1B[90mWaiting for daemon to restart...\x1B[0m"),await v();let n=!1;for(let d=0;d<15;d++){await new Promise(b=>setTimeout(b,1e3));try{if((await fetch(`${ae}/health`)).ok){n=!0;break}}catch{}}o(e,n?"\x1B[32m✓ Daemon restarted\x1B[0m":"\x1B[31m✗ Daemon did not restart within 15s\x1B[0m"),await v()}o(e,""),a.running=!1,await v()}async function $e(e,t){const a=g[e];if(!a||a.running||!t.path||!t.method)return;a.running=!0;const i=performance.now();o(e,`\x1B[32m$\x1B[0m ${t.method} ${t.path}`),await v();try{const r=await fetch(`${ae}${t.path}`,{method:t.method}),n=Math.round(performance.now()-i),b=(r.headers.get("content-type")??"").includes("json")?JSON.stringify(await r.json(),null,2):await r.text();o(e,r.ok?`\x1B[32m${r.status} OK\x1B[0m \x1B[90m${n}ms\x1B[0m`:`\x1B[31m${r.status} FAILED\x1B[0m \x1B[90m${n}ms\x1B[0m`);for(const $ of b.split(`
@@ -1,3 +1,3 @@
1
- import{e as Bt,p as rt,c as Xe,f as J,h as Oe,k as O,i as e,b as l,w as _e,t as n,x as ue,y as _,z as f,j as a,l as r,A as Ae,B as Be,J as yt,d as at,u as C,ae as zt,m as D,D as u,ag as ve,O as Xt,v as x,M as _t,o as U,N as Jt,L as Mt,q as ur,s as vr,a9 as Ut,G as fr}from"./BCse5epf.js";import{o as gr,ax as pr,W as mr,Y as xr,Z as hr,$ as br,_ as _r,ay as yr,t as Ve,az as wr,f as kr,n as Sr,E as Cr,B as tt,aA as Pr,aB as $r}from"./Bs3kPGqt.js";import{P as Tr}from"./wBVyfFt_.js";import{T as Er}from"./u5qJAtxt.js";import{B as Dt}from"./D1bViANH.js";import{S as Kt}from"./BnG2-ByH.js";import{P as Mr,a as Dr,b as Lr}from"./C1atDStK.js";import{w as Et,s as Qt}from"./DpYYjuCM.js";const De={harness:"#4dabf7",daemon:"#ff922b",pipeline:"#da77f2",db:"#ffd43b",search:"#da77f2",files:"#20c997",configs:"#4dabf7",llm:"#fcc419"},Ge={harness:"AI Harness",daemon:"Signet Daemon",pipeline:"Pipeline Workers",db:"memories.db",search:"Hybrid Recall",files:"~/.agents/",configs:"Harness Configs",llm:"LLM Provider"},Or={harness:{x:20,y:20,w:240,h:120,label:Ge.harness,color:De.harness},daemon:{x:300,y:20,w:340,h:280,label:Ge.daemon,color:De.daemon},pipeline:{x:20,y:360,w:620,h:140,label:Ge.pipeline,color:De.pipeline},db:{x:680,y:160,w:200,h:200,label:Ge.db,color:De.db},search:{x:920,y:160,w:200,h:140,label:Ge.search,color:De.search},files:{x:680,y:400,w:200,h:100,label:Ge.files,color:De.files},configs:{x:920,y:400,w:200,h:100,label:Ge.configs,color:De.configs},llm:{x:680,y:540,w:200,h:80,label:Ge.llm,color:De.llm}},st=[{id:"harness",label:"AI Client",group:"harness",x:40,y:55,w:200,h:50,logCategories:["hooks","session-tracker"],icon:"terminal",description:"Claude Code / OpenCode / OpenClaw — sends session hooks"},{id:"hooks",label:"Hook Handlers",group:"daemon",x:320,y:50,w:140,h:40,logCategories:["hooks"],icon:"webhook",description:"Session lifecycle hooks (start, submit, remember, recall, end)"},{id:"mutex",label:"Session Mutex",group:"daemon",x:320,y:110,w:140,h:40,logCategories:["session-tracker"],icon:"lock",description:"Plugin vs legacy runtime path enforcement"},{id:"queue",label:"Job Queues",group:"daemon",x:320,y:170,w:140,h:40,logCategories:["pipeline"],diagnosticDomain:"queue",icon:"layers",description:"memory_jobs + summary_jobs durable queues"},{id:"watcher",label:"File Watcher",group:"daemon",x:490,y:110,w:130,h:40,logCategories:["watcher"],icon:"eye",description:"Chokidar file change detection on ~/.agents/"},{id:"sync",label:"Harness Sync",group:"daemon",x:490,y:170,w:130,h:40,logCategories:["sync"],diagnosticDomain:"connector",icon:"refresh-cw",description:"Generate CLAUDE.md, AGENTS.md from identity files"},{id:"extraction",label:"Extraction",group:"pipeline",x:40,y:395,w:110,h:40,logCategories:["pipeline"],diagnosticDomain:"queue",icon:"cpu",description:"LLM extracts facts + entities (2s poll)"},{id:"summary",label:"Summary",group:"pipeline",x:165,y:395,w:100,h:40,logCategories:["summary-worker"],icon:"file-text",description:"Session-end transcript summarizer (5s poll)"},{id:"document",label:"Document",group:"pipeline",x:280,y:395,w:100,h:40,logCategories:["document-worker"],icon:"file-plus",description:"Chunk + embed documents (10s poll)"},{id:"retention",label:"Retention",group:"pipeline",x:395,y:395,w:100,h:40,logCategories:["retention"],diagnosticDomain:"mutation",icon:"trash-2",description:"Purge expired data (6h interval)"},{id:"maintenance",label:"Maintenance",group:"pipeline",x:510,y:395,w:110,h:40,logCategories:["maintenance"],icon:"wrench",description:"Self-repair + diagnostics (30min interval)"},{id:"database",label:"SQLite",group:"db",x:710,y:220,w:140,h:80,logCategories:["memory","embedding"],diagnosticDomain:"storage",icon:"database",description:"memories, embeddings, entities, relations, history"},{id:"search",label:"Hybrid Recall",group:"search",x:940,y:200,w:160,h:60,logCategories:["memory"],diagnosticDomain:"index",icon:"search",description:"BM25 + vector similarity + graph boost"},{id:"files",label:"Identity Files",group:"files",x:710,y:430,w:140,h:40,logCategories:["sync"],icon:"folder",description:"AGENTS.md, SOUL.md, IDENTITY.md, USER.md, MEMORY.md"},{id:"configs",label:"CLAUDE.md",group:"configs",x:950,y:430,w:140,h:40,logCategories:["harness"],icon:"file-code",description:"Generated harness config files"},{id:"llm",label:"LLM Provider",group:"llm",x:710,y:560,w:140,h:40,logCategories:["llm"],diagnosticDomain:"provider",icon:"brain",description:"llama.cpp qwen3:4b (or configured provider)"}],Ft=new Map(st.map(g=>[g.id,g])),Ar=[{from:"harness",to:"hooks",label:"POST"},{from:"hooks",to:"mutex"},{from:"hooks",to:"queue",label:"enqueue"},{from:"queue",to:"extraction"},{from:"queue",to:"summary"},{from:"queue",to:"document"},{from:"extraction",to:"database",label:"write"},{from:"summary",to:"database"},{from:"document",to:"database"},{from:"retention",to:"database"},{from:"maintenance",to:"database"},{from:"extraction",to:"llm"},{from:"summary",to:"llm"},{from:"database",to:"search"},{from:"search",to:"harness",dashed:!0,label:"recall"},{from:"watcher",to:"sync"},{from:"files",to:"watcher"},{from:"sync",to:"configs"},{from:"files",to:"sync"},{from:"summary",to:"files",label:".md"},{from:"configs",to:"harness",dashed:!0,label:"next session"}];function Nr(){return{health:"unknown",score:0,lastActivity:null,pulseCount:0,queueDepth:0,processingRate:0,errorCount:0,recentLogs:[],metrics:{}}}const Ht=new Map;for(const g of st)for(const s of g.logCategories){const d=Ht.get(s);d?d.push(g.id):Ht.set(s,[g.id])}const Wt=20;function Ir(){const g={};for(const s of st)g[s.id]=Nr();return g}const Zt=50,y=Bt({nodes:Ir(),mode:"unknown",connected:!1,lastPoll:null,selectedNodeId:null,feed:[]});let be=null;function er(){be&&(be.close(),be=null),be=new EventSource(`${gr}/api/logs/stream`),be.onopen=()=>{y.connected=!0},be.onmessage=g=>{try{const s=JSON.parse(g.data);if(s.type==="connected"){y.connected=!0;return}const d=[...y.feed,s];y.feed=d.length>Zt?d.slice(-Zt):d;const p=Ht.get(s.category);if(!p)return;for(const i of p){const P=y.nodes[i];if(!P)continue;P.pulseCount+=1,P.lastActivity=s.timestamp;const L=[...P.recentLogs,s];P.recentLogs=L.length>Wt?L.slice(-Wt):L,s.level==="error"&&(P.errorCount+=1)}}catch{}},be.onerror=()=>{y.connected=!1,be?.close(),be=null,setTimeout(()=>{be||er()},3e3)}}function Rr(){y.connected=!1,be?.close(),be=null}let wt=null;function jr(g){return g>=.8?"healthy":g>=.5?"degraded":g>0?"unhealthy":"unknown"}function qr(g){for(const s of st){if(!s.diagnosticDomain)continue;const d=g[s.diagnosticDomain];if(!d)continue;const p=y.nodes[s.id];if(!p)continue;const i=typeof d.score=="number"?d.score:0;p.score=i,p.health=jr(i),p.metrics=d}}function Gr(g){const s=y.nodes.queue;if(s){const i=g.memory,P=g.summary;s.queueDepth=i.pending+i.leased+P.pending+P.leased,s.metrics={memory:i,summary:P}}const d=y.nodes.extraction;d&&(d.queueDepth=g.memory.pending);const p=y.nodes.summary;p&&(p.queueDepth=g.summary.pending)}async function Yt(){try{const g=await pr();if(!g)return!1;if(y.mode=g.mode,y.lastPoll=new Date().toISOString(),g.diagnostics&&qr(g.diagnostics),g.queues&&Gr(g.queues),g.workers)for(const[s,d]of Object.entries(g.workers)){const p=y.nodes[s];p&&d.running&&p.health==="unknown"&&(p.health="healthy",p.score=1)}if(g.errorSummary)for(const[s,d]of Object.entries(g.errorSummary)){const p=s==="extraction"||s==="decision"?"extraction":s==="embedding"||s==="mutation"?"database":s==="connector"?"sync":null;if(p){const i=y.nodes[p];i&&(i.errorCount=d)}}return!0}catch{return!1}}function Br(g=5e3){wt||(Yt(),wt=setInterval(()=>{Yt()},g))}function zr(){wt&&(clearInterval(wt),wt=null)}function tr(g){y.selectedNodeId=g}var Fr=D(" <!>",1),Hr=D("<!> <!>",1),Yr=D('<div class="flex justify-between px-2"><span class="text-[var(--sig-text-muted)]"> </span> <span class="text-[var(--sig-text-bright)]"> </span></div>'),Xr=D('<div class="text-[var(--sig-text-muted)] mt-1"> </div> <!>',1),Vr=D('<div class="flex justify-between"><span class="text-[var(--sig-text-muted)]"> </span> <span class="text-[var(--sig-text-bright)]"> </span></div>'),Ur=D('<section><h4 class="text-[10px] uppercase tracking-[0.1em] text-[var(--sig-text-muted)] mb-2 font-display">Queue Details</h4> <div class="space-y-1 text-[11px] font-mono"></div></section>'),Qr=D('<section><h4 class="text-[10px] uppercase tracking-[0.1em] text-[var(--sig-text-muted)] mb-1 font-display">Last Activity</h4> <span class="text-[11px] text-[var(--sig-text)] font-mono"> </span></section>'),Wr=D('<div class="flex gap-2 py-1 px-1 text-[10px] font-mono hover:bg-[var(--sig-surface-raised)] rounded"><span class="text-[var(--sig-text-muted)] shrink-0 w-[52px]"> </span> <span> </span> <span class="text-[var(--sig-text)] truncate"> </span></div>'),Zr=D('<div class="text-[10px] text-[var(--sig-text-muted)] italic py-2">No recent activity</div>'),Jr=D('<!> <div class="mt-4 space-y-4 overflow-y-auto pr-2" style="max-height: calc(100vh - 140px);"><section><h4 class="text-[10px] uppercase tracking-[0.1em] text-[var(--sig-text-muted)] mb-2 font-display">Metrics</h4> <div class="grid grid-cols-3 gap-2"><div class="p-2 rounded bg-[var(--sig-surface)] border border-[var(--sig-border)]"><div class="text-[9px] text-[var(--sig-text-muted)] uppercase">Score</div> <div class="text-[15px] text-[var(--sig-text-bright)] font-mono"> </div></div> <div class="p-2 rounded bg-[var(--sig-surface)] border border-[var(--sig-border)]"><div class="text-[9px] text-[var(--sig-text-muted)] uppercase">Queue</div> <div class="text-[15px] text-[var(--sig-text-bright)] font-mono"> </div></div> <div class="p-2 rounded bg-[var(--sig-surface)] border border-[var(--sig-border)]"><div class="text-[9px] text-[var(--sig-text-muted)] uppercase">Errors</div> <div> </div></div></div></section> <!> <!> <section><h4 class="text-[10px] uppercase tracking-[0.1em] text-[var(--sig-text-muted)] mb-2 font-display"> </h4> <div class="space-y-px max-h-[300px] overflow-y-auto"><!> <!></div></section></div>',1);function Kr(g,s){rt(s,!0);const d=C(()=>y.selectedNodeId),p=C(()=>e(d)?Ft.get(e(d))??null:null),i=C(()=>e(d)?y.nodes[e(d)]??null:null),P=C(()=>e(d)!==null);function L($){$||tr(null)}function I($){try{return new Date($).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return $}}function T($){switch($){case"error":return"text-[#e06c75]";case"warn":return"text-[#e5c07b]";case"debug":return"text-[#6b6b76]";default:return"text-[var(--sig-text)]"}}const M=C(()=>{if(!e(i)?.metrics)return null;const $=e(i).metrics;return $.memory||$.summary||typeof $.depth=="number"?$:null});var R=Xe(),E=J(R);Oe(E,()=>br,($,A)=>{A($,{get open(){return e(P)},onOpenChange:L,children:(G,K)=>{var Y=Xe(),h=J(Y);Oe(h,()=>mr,(k,S)=>{S(k,{side:"right",class:"w-[380px] bg-[var(--sig-bg)] border-l border-[var(--sig-border)]",children:(N,ee)=>{var z=Xe(),j=J(z);{var c=w=>{var B=Jr(),q=J(B);Oe(q,()=>xr,(V,Q)=>{Q(V,{children:(se,Pe)=>{var ye=Hr(),ie=J(ye);Oe(ie,()=>hr,(le,he)=>{he(le,{class:"flex items-center gap-2 font-display text-[var(--sig-text-bright)]",children:($e,Ie)=>{_e();var ge=Fr(),oe=J(ge),pe=n(oe);{let Te=C(()=>e(i).health==="healthy"?"border-[#4a7a5e] text-[#4a7a5e]":e(i).health==="degraded"?"border-[#b8860b] text-[#b8860b]":e(i).health==="unhealthy"?"border-[#8a4a48] text-[#8a4a48]":"border-[var(--sig-border)] text-[var(--sig-text-muted)]");Dt(pe,{variant:"outline",get class(){return`text-[9px] px-1.5 py-0 font-mono
1
+ import{e as Bt,p as rt,c as Xe,f as J,h as Oe,k as O,i as e,b as l,w as _e,t as n,x as ue,y as _,z as f,j as a,l as r,A as Ae,B as Be,J as yt,d as at,u as C,ae as zt,m as D,D as u,ag as ve,O as Xt,v as x,M as _t,o as U,N as Jt,L as Mt,q as ur,s as vr,a9 as Ut,G as fr}from"./BCse5epf.js";import{o as gr,ax as pr,W as mr,Y as xr,Z as hr,$ as br,_ as _r,ay as yr,t as Ve,az as wr,f as kr,n as Sr,E as Cr,B as tt,aA as Pr,aB as $r}from"./CFdGC6PJ.js";import{P as Tr}from"./wBVyfFt_.js";import{T as Er}from"./u5qJAtxt.js";import{B as Dt}from"./C8EDqjr8.js";import{S as Kt}from"./BV37vxtv.js";import{P as Mr,a as Dr,b as Lr}from"./Bh9iVBQo.js";import{w as Et,s as Qt}from"./DpYYjuCM.js";const De={harness:"#4dabf7",daemon:"#ff922b",pipeline:"#da77f2",db:"#ffd43b",search:"#da77f2",files:"#20c997",configs:"#4dabf7",llm:"#fcc419"},Ge={harness:"AI Harness",daemon:"Signet Daemon",pipeline:"Pipeline Workers",db:"memories.db",search:"Hybrid Recall",files:"~/.agents/",configs:"Harness Configs",llm:"LLM Provider"},Or={harness:{x:20,y:20,w:240,h:120,label:Ge.harness,color:De.harness},daemon:{x:300,y:20,w:340,h:280,label:Ge.daemon,color:De.daemon},pipeline:{x:20,y:360,w:620,h:140,label:Ge.pipeline,color:De.pipeline},db:{x:680,y:160,w:200,h:200,label:Ge.db,color:De.db},search:{x:920,y:160,w:200,h:140,label:Ge.search,color:De.search},files:{x:680,y:400,w:200,h:100,label:Ge.files,color:De.files},configs:{x:920,y:400,w:200,h:100,label:Ge.configs,color:De.configs},llm:{x:680,y:540,w:200,h:80,label:Ge.llm,color:De.llm}},st=[{id:"harness",label:"AI Client",group:"harness",x:40,y:55,w:200,h:50,logCategories:["hooks","session-tracker"],icon:"terminal",description:"Claude Code / OpenCode / OpenClaw — sends session hooks"},{id:"hooks",label:"Hook Handlers",group:"daemon",x:320,y:50,w:140,h:40,logCategories:["hooks"],icon:"webhook",description:"Session lifecycle hooks (start, submit, remember, recall, end)"},{id:"mutex",label:"Session Mutex",group:"daemon",x:320,y:110,w:140,h:40,logCategories:["session-tracker"],icon:"lock",description:"Plugin vs legacy runtime path enforcement"},{id:"queue",label:"Job Queues",group:"daemon",x:320,y:170,w:140,h:40,logCategories:["pipeline"],diagnosticDomain:"queue",icon:"layers",description:"memory_jobs + summary_jobs durable queues"},{id:"watcher",label:"File Watcher",group:"daemon",x:490,y:110,w:130,h:40,logCategories:["watcher"],icon:"eye",description:"Chokidar file change detection on ~/.agents/"},{id:"sync",label:"Harness Sync",group:"daemon",x:490,y:170,w:130,h:40,logCategories:["sync"],diagnosticDomain:"connector",icon:"refresh-cw",description:"Generate CLAUDE.md, AGENTS.md from identity files"},{id:"extraction",label:"Extraction",group:"pipeline",x:40,y:395,w:110,h:40,logCategories:["pipeline"],diagnosticDomain:"queue",icon:"cpu",description:"LLM extracts facts + entities (2s poll)"},{id:"summary",label:"Summary",group:"pipeline",x:165,y:395,w:100,h:40,logCategories:["summary-worker"],icon:"file-text",description:"Session-end transcript summarizer (5s poll)"},{id:"document",label:"Document",group:"pipeline",x:280,y:395,w:100,h:40,logCategories:["document-worker"],icon:"file-plus",description:"Chunk + embed documents (10s poll)"},{id:"retention",label:"Retention",group:"pipeline",x:395,y:395,w:100,h:40,logCategories:["retention"],diagnosticDomain:"mutation",icon:"trash-2",description:"Purge expired data (6h interval)"},{id:"maintenance",label:"Maintenance",group:"pipeline",x:510,y:395,w:110,h:40,logCategories:["maintenance"],icon:"wrench",description:"Self-repair + diagnostics (30min interval)"},{id:"database",label:"SQLite",group:"db",x:710,y:220,w:140,h:80,logCategories:["memory","embedding"],diagnosticDomain:"storage",icon:"database",description:"memories, embeddings, entities, relations, history"},{id:"search",label:"Hybrid Recall",group:"search",x:940,y:200,w:160,h:60,logCategories:["memory"],diagnosticDomain:"index",icon:"search",description:"BM25 + vector similarity + graph boost"},{id:"files",label:"Identity Files",group:"files",x:710,y:430,w:140,h:40,logCategories:["sync"],icon:"folder",description:"AGENTS.md, SOUL.md, IDENTITY.md, USER.md, MEMORY.md"},{id:"configs",label:"CLAUDE.md",group:"configs",x:950,y:430,w:140,h:40,logCategories:["harness"],icon:"file-code",description:"Generated harness config files"},{id:"llm",label:"LLM Provider",group:"llm",x:710,y:560,w:140,h:40,logCategories:["llm"],diagnosticDomain:"provider",icon:"brain",description:"llama.cpp qwen3:4b (or configured provider)"}],Ft=new Map(st.map(g=>[g.id,g])),Ar=[{from:"harness",to:"hooks",label:"POST"},{from:"hooks",to:"mutex"},{from:"hooks",to:"queue",label:"enqueue"},{from:"queue",to:"extraction"},{from:"queue",to:"summary"},{from:"queue",to:"document"},{from:"extraction",to:"database",label:"write"},{from:"summary",to:"database"},{from:"document",to:"database"},{from:"retention",to:"database"},{from:"maintenance",to:"database"},{from:"extraction",to:"llm"},{from:"summary",to:"llm"},{from:"database",to:"search"},{from:"search",to:"harness",dashed:!0,label:"recall"},{from:"watcher",to:"sync"},{from:"files",to:"watcher"},{from:"sync",to:"configs"},{from:"files",to:"sync"},{from:"summary",to:"files",label:".md"},{from:"configs",to:"harness",dashed:!0,label:"next session"}];function Nr(){return{health:"unknown",score:0,lastActivity:null,pulseCount:0,queueDepth:0,processingRate:0,errorCount:0,recentLogs:[],metrics:{}}}const Ht=new Map;for(const g of st)for(const s of g.logCategories){const d=Ht.get(s);d?d.push(g.id):Ht.set(s,[g.id])}const Wt=20;function Ir(){const g={};for(const s of st)g[s.id]=Nr();return g}const Zt=50,y=Bt({nodes:Ir(),mode:"unknown",connected:!1,lastPoll:null,selectedNodeId:null,feed:[]});let be=null;function er(){be&&(be.close(),be=null),be=new EventSource(`${gr}/api/logs/stream`),be.onopen=()=>{y.connected=!0},be.onmessage=g=>{try{const s=JSON.parse(g.data);if(s.type==="connected"){y.connected=!0;return}const d=[...y.feed,s];y.feed=d.length>Zt?d.slice(-Zt):d;const p=Ht.get(s.category);if(!p)return;for(const i of p){const P=y.nodes[i];if(!P)continue;P.pulseCount+=1,P.lastActivity=s.timestamp;const L=[...P.recentLogs,s];P.recentLogs=L.length>Wt?L.slice(-Wt):L,s.level==="error"&&(P.errorCount+=1)}}catch{}},be.onerror=()=>{y.connected=!1,be?.close(),be=null,setTimeout(()=>{be||er()},3e3)}}function Rr(){y.connected=!1,be?.close(),be=null}let wt=null;function jr(g){return g>=.8?"healthy":g>=.5?"degraded":g>0?"unhealthy":"unknown"}function qr(g){for(const s of st){if(!s.diagnosticDomain)continue;const d=g[s.diagnosticDomain];if(!d)continue;const p=y.nodes[s.id];if(!p)continue;const i=typeof d.score=="number"?d.score:0;p.score=i,p.health=jr(i),p.metrics=d}}function Gr(g){const s=y.nodes.queue;if(s){const i=g.memory,P=g.summary;s.queueDepth=i.pending+i.leased+P.pending+P.leased,s.metrics={memory:i,summary:P}}const d=y.nodes.extraction;d&&(d.queueDepth=g.memory.pending);const p=y.nodes.summary;p&&(p.queueDepth=g.summary.pending)}async function Yt(){try{const g=await pr();if(!g)return!1;if(y.mode=g.mode,y.lastPoll=new Date().toISOString(),g.diagnostics&&qr(g.diagnostics),g.queues&&Gr(g.queues),g.workers)for(const[s,d]of Object.entries(g.workers)){const p=y.nodes[s];p&&d.running&&p.health==="unknown"&&(p.health="healthy",p.score=1)}if(g.errorSummary)for(const[s,d]of Object.entries(g.errorSummary)){const p=s==="extraction"||s==="decision"?"extraction":s==="embedding"||s==="mutation"?"database":s==="connector"?"sync":null;if(p){const i=y.nodes[p];i&&(i.errorCount=d)}}return!0}catch{return!1}}function Br(g=5e3){wt||(Yt(),wt=setInterval(()=>{Yt()},g))}function zr(){wt&&(clearInterval(wt),wt=null)}function tr(g){y.selectedNodeId=g}var Fr=D(" <!>",1),Hr=D("<!> <!>",1),Yr=D('<div class="flex justify-between px-2"><span class="text-[var(--sig-text-muted)]"> </span> <span class="text-[var(--sig-text-bright)]"> </span></div>'),Xr=D('<div class="text-[var(--sig-text-muted)] mt-1"> </div> <!>',1),Vr=D('<div class="flex justify-between"><span class="text-[var(--sig-text-muted)]"> </span> <span class="text-[var(--sig-text-bright)]"> </span></div>'),Ur=D('<section><h4 class="text-[10px] uppercase tracking-[0.1em] text-[var(--sig-text-muted)] mb-2 font-display">Queue Details</h4> <div class="space-y-1 text-[11px] font-mono"></div></section>'),Qr=D('<section><h4 class="text-[10px] uppercase tracking-[0.1em] text-[var(--sig-text-muted)] mb-1 font-display">Last Activity</h4> <span class="text-[11px] text-[var(--sig-text)] font-mono"> </span></section>'),Wr=D('<div class="flex gap-2 py-1 px-1 text-[10px] font-mono hover:bg-[var(--sig-surface-raised)] rounded"><span class="text-[var(--sig-text-muted)] shrink-0 w-[52px]"> </span> <span> </span> <span class="text-[var(--sig-text)] truncate"> </span></div>'),Zr=D('<div class="text-[10px] text-[var(--sig-text-muted)] italic py-2">No recent activity</div>'),Jr=D('<!> <div class="mt-4 space-y-4 overflow-y-auto pr-2" style="max-height: calc(100vh - 140px);"><section><h4 class="text-[10px] uppercase tracking-[0.1em] text-[var(--sig-text-muted)] mb-2 font-display">Metrics</h4> <div class="grid grid-cols-3 gap-2"><div class="p-2 rounded bg-[var(--sig-surface)] border border-[var(--sig-border)]"><div class="text-[9px] text-[var(--sig-text-muted)] uppercase">Score</div> <div class="text-[15px] text-[var(--sig-text-bright)] font-mono"> </div></div> <div class="p-2 rounded bg-[var(--sig-surface)] border border-[var(--sig-border)]"><div class="text-[9px] text-[var(--sig-text-muted)] uppercase">Queue</div> <div class="text-[15px] text-[var(--sig-text-bright)] font-mono"> </div></div> <div class="p-2 rounded bg-[var(--sig-surface)] border border-[var(--sig-border)]"><div class="text-[9px] text-[var(--sig-text-muted)] uppercase">Errors</div> <div> </div></div></div></section> <!> <!> <section><h4 class="text-[10px] uppercase tracking-[0.1em] text-[var(--sig-text-muted)] mb-2 font-display"> </h4> <div class="space-y-px max-h-[300px] overflow-y-auto"><!> <!></div></section></div>',1);function Kr(g,s){rt(s,!0);const d=C(()=>y.selectedNodeId),p=C(()=>e(d)?Ft.get(e(d))??null:null),i=C(()=>e(d)?y.nodes[e(d)]??null:null),P=C(()=>e(d)!==null);function L($){$||tr(null)}function I($){try{return new Date($).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return $}}function T($){switch($){case"error":return"text-[#e06c75]";case"warn":return"text-[#e5c07b]";case"debug":return"text-[#6b6b76]";default:return"text-[var(--sig-text)]"}}const M=C(()=>{if(!e(i)?.metrics)return null;const $=e(i).metrics;return $.memory||$.summary||typeof $.depth=="number"?$:null});var R=Xe(),E=J(R);Oe(E,()=>br,($,A)=>{A($,{get open(){return e(P)},onOpenChange:L,children:(G,K)=>{var Y=Xe(),h=J(Y);Oe(h,()=>mr,(k,S)=>{S(k,{side:"right",class:"w-[380px] bg-[var(--sig-bg)] border-l border-[var(--sig-border)]",children:(N,ee)=>{var z=Xe(),j=J(z);{var c=w=>{var B=Jr(),q=J(B);Oe(q,()=>xr,(V,Q)=>{Q(V,{children:(se,Pe)=>{var ye=Hr(),ie=J(ye);Oe(ie,()=>hr,(le,he)=>{he(le,{class:"flex items-center gap-2 font-display text-[var(--sig-text-bright)]",children:($e,Ie)=>{_e();var ge=Fr(),oe=J(ge),pe=n(oe);{let Te=C(()=>e(i).health==="healthy"?"border-[#4a7a5e] text-[#4a7a5e]":e(i).health==="degraded"?"border-[#b8860b] text-[#b8860b]":e(i).health==="unhealthy"?"border-[#8a4a48] text-[#8a4a48]":"border-[var(--sig-border)] text-[var(--sig-text-muted)]");Dt(pe,{variant:"outline",get class(){return`text-[9px] px-1.5 py-0 font-mono
2
2
  ${e(Te)??""}`},children:(Le,Re)=>{_e();var Qe=ue();_(()=>f(Qe,e(i).health)),l(Le,Qe)},$$slots:{default:!0}})}_(()=>f(oe,`${e(p).label??""} `)),l($e,ge)},$$slots:{default:!0}})});var Ne=n(ie,2);{var fe=le=>{var he=Xe(),$e=J(he);Oe($e,()=>_r,(Ie,ge)=>{ge(Ie,{class:"text-[11px] text-[var(--sig-text-muted)] font-mono",children:(oe,pe)=>{_e();var Te=ue();_(()=>f(Te,e(p).description)),l(oe,Te)},$$slots:{default:!0}})}),l(le,he)};O(Ne,le=>{e(p).description&&le(fe)})}l(se,ye)},$$slots:{default:!0}})});var te=n(q,2),b=a(te),m=n(a(b),2),X=a(m),re=n(a(X),2),ze=a(re,!0);r(re),r(X);var ae=n(X,2),xe=n(a(ae),2),Ce=a(xe,!0);r(xe),r(ae);var ot=n(ae,2),Fe=n(a(ot),2);let Ue;var nt=a(Fe,!0);r(Fe),r(ot),r(m),r(b);var it=n(b,2);{var kt=V=>{var Q=Ur(),se=n(a(Q),2);Ae(se,21,()=>Object.entries(e(M)),yt,(Pe,ye)=>{var ie=C(()=>zt(e(ye),2));let Ne=()=>e(ie)[0],fe=()=>e(ie)[1];var le=Xe(),he=J(le);{var $e=ge=>{var oe=Xr(),pe=J(oe),Te=a(pe,!0);r(pe);var Le=n(pe,2);Ae(Le,17,()=>Object.entries(fe()),yt,(Re,Qe)=>{var We=C(()=>zt(e(Qe),2));let St=()=>e(We)[0],It=()=>e(We)[1];var Ze=Yr(),ft=a(Ze),Je=a(ft,!0);r(ft);var gt=n(ft,2),Rt=a(gt,!0);r(gt),r(Ze),_(()=>{f(Je,St()),f(Rt,It())}),l(Re,Ze)}),_(()=>f(Te,Ne())),l(ge,oe)},Ie=ge=>{var oe=Vr(),pe=a(oe),Te=a(pe,!0);r(pe);var Le=n(pe,2),Re=a(Le,!0);r(Le),r(oe),_(()=>{f(Te,Ne()),f(Re,fe())}),l(ge,oe)};O(he,ge=>{typeof fe()=="object"&&fe()!==null?ge($e):ge(Ie,-1)})}l(Pe,le)}),r(se),r(Q),l(V,Q)};O(it,V=>{e(M)&&V(kt)})}var lt=n(it,2);{var Lt=V=>{var Q=Qr(),se=n(a(Q),2),Pe=a(se,!0);r(se),r(Q),_(ye=>f(Pe,ye),[()=>I(e(i).lastActivity)]),l(V,Q)};O(lt,V=>{e(i).lastActivity&&V(Lt)})}var dt=n(lt,2),ct=a(dt),Ot=a(ct);r(ct);var ut=n(ct,2),vt=a(ut);Ae(vt,17,()=>e(i).recentLogs,yt,(V,Q)=>{var se=Wr(),Pe=a(se),ye=a(Pe,!0);r(Pe);var ie=n(Pe,2),Ne=a(ie,!0);r(ie);var fe=n(ie,2),le=a(fe,!0);r(fe),r(se),_((he,$e)=>{f(ye,he),Be(ie,1,`${$e??""} shrink-0 w-[34px] uppercase`),f(Ne,e(Q).level),f(le,e(Q).message)},[()=>I(e(Q).timestamp),()=>T(e(Q).level)]),l(V,se)});var At=n(vt,2);{var Nt=V=>{var Q=Zr();l(V,Q)};O(At,V=>{e(i).recentLogs.length===0&&V(Nt)})}r(ut),r(dt),r(te),_(V=>{f(ze,V),f(Ce,e(i).queueDepth),Ue=Be(Fe,1,"text-[15px] font-mono",null,Ue,{"text-[#8a4a48]":e(i).errorCount>0,"text-[var(--sig-text-bright)]":e(i).errorCount===0}),f(nt,e(i).errorCount),f(Ot,`Recent Logs (${e(i).recentLogs.length??""})`)},[()=>e(i).score>0?(e(i).score*100).toFixed(0)+"%":"--"]),l(w,B)};O(j,w=>{e(p)&&e(i)&&w(c)})}l(N,z)},$$slots:{default:!0}})}),l(G,Y)},$$slots:{default:!0}})}),l(g,R),at()}var ea=ve('<path fill="none" stroke-width="4" opacity="0.15" class="edge-glow svelte-kl8ook"></path>'),ta=ve('<circle r="2" opacity="0.6" class="svelte-kl8ook"><animateMotion repeatCount="indefinite" begin="0.5s" class="svelte-kl8ook"></animateMotion></circle>'),ra=ve('<circle class="svelte-kl8ook"><animateMotion repeatCount="indefinite" class="svelte-kl8ook"></animateMotion></circle><!>',1),aa=ve('<text text-anchor="middle" font-size="9" font-family="var(--font-mono)" class="svelte-kl8ook"> </text>'),sa=ve('<g class="pipeline-edge svelte-kl8ook"><path fill="none"></path><!><!><!></g>');function oa(g,s){rt(s,!0);const d=C(()=>Ft.get(s.edge.from)),p=C(()=>Ft.get(s.edge.to)),i=C(()=>e(d)?De[e(d).group]:"#6b6b76"),P=C(()=>{if(!e(d)||!e(p))return"";const h=e(d).x+e(d).w/2,k=e(d).y+e(d).h/2,S=e(p).x+e(p).w/2,N=e(p).y+e(p).h/2,ee=(h+S)/2,z=(k+N)/2,j=Math.abs(S-h),c=Math.abs(N-k);return j>c?`M ${h} ${k} Q ${ee} ${k}, ${ee} ${z} Q ${ee} ${N}, ${S} ${N}`:`M ${h} ${k} Q ${h} ${z}, ${ee} ${z} Q ${S} ${z}, ${S} ${N}`}),L=C(()=>!e(d)||!e(p)?{x:0,y:0}:{x:(e(d).x+e(d).w/2+e(p).x+e(p).w/2)/2,y:(e(d).y+e(d).h/2+e(p).y+e(p).h/2)/2-8}),I=C(()=>s.active?"1s":"3s");var T=sa(),M=a(T);let R;var E=n(M);{var $=h=>{var k=ea();_(()=>{u(k,"d",e(P)),u(k,"stroke",e(i))}),l(h,k)};O(E,h=>{s.active&&!s.edge.dashed&&h($)})}var A=n(E);{var G=h=>{var k=ra(),S=J(k),N=a(S);r(S);var ee=n(S);{var z=j=>{var c=ta(),w=a(c);r(c),_(()=>{u(c,"fill",e(i)),u(w,"dur",e(I)),u(w,"path",e(P))}),l(j,c)};O(ee,j=>{s.active&&j(z)})}_(()=>{u(S,"r",s.active?3.5:2),u(S,"fill",s.active?e(i):"var(--sig-border)"),u(S,"opacity",s.active?1:.3),u(N,"dur",e(I)),u(N,"path",e(P))}),l(h,k)};O(A,h=>{s.edge.dashed||h(G)})}var K=n(A);{var Y=h=>{var k=aa(),S=a(k,!0);r(k),_(()=>{u(k,"x",e(L).x),u(k,"y",e(L).y),u(k,"fill",s.active?e(i):"var(--sig-text-muted)"),u(k,"opacity",s.active?.9:.45),f(S,s.edge.label)}),l(h,k)};O(K,h=>{s.edge.label&&h(Y)})}r(T),_(()=>{u(M,"d",e(P)),u(M,"stroke",s.active?e(i):"var(--sig-border)"),u(M,"stroke-width",s.active?1.5:.8),u(M,"stroke-dasharray",s.edge.dashed?"6 4":"none"),u(M,"opacity",s.active?.8:.25),R=Be(M,0,"svelte-kl8ook",null,R,{"edge-active":s.active})}),l(g,T),at()}var na=ve('<rect class="glow-bg svelte-1tib701" x="-6" y="-6" rx="10" ry="10" opacity="0.12"></rect>'),ia=ve('<rect class="pulse-ring svelte-1tib701" x="-4" y="-4" rx="10" ry="10" fill="none"></rect>'),la=ve('<rect class="flash-overlay svelte-1tib701" rx="6" ry="6"></rect>'),da=ve('<animate attributeName="opacity" values="1;0.4;1" dur="1.5s" repeatCount="indefinite" class="svelte-1tib701"></animate>'),ca=ve('<g class="svelte-1tib701"><rect x="-12" y="-7" width="24" height="14" rx="7" opacity="0.95" class="svelte-1tib701"></rect><text x="0" y="1" text-anchor="middle" dominant-baseline="middle" fill="#fff" font-size="9" font-weight="600" font-family="var(--font-mono)" class="svelte-1tib701"> </text></g>'),ua=ve('<g transform="translate(8, -6)" class="svelte-1tib701"><rect x="-12" y="-7" width="24" height="14" rx="7" fill="#ef4444" opacity="0.95" class="svelte-1tib701"></rect><text x="0" y="1" text-anchor="middle" dominant-baseline="middle" fill="#fff" font-size="9" font-weight="600" font-family="var(--font-mono)" class="svelte-1tib701"> </text></g>'),va=ve('<g style="cursor: pointer"><!><!><rect class="node-rect svelte-1tib701" rx="6" ry="6"></rect><!><circle cx="10" class="svelte-1tib701"><!></circle><text text-anchor="middle" dominant-baseline="middle" font-size="11" font-family="var(--font-mono)" class="svelte-1tib701"> </text><!><!></g>');function fa(g,s){rt(s,!0);const d=C(()=>De[s.def.group]),p={healthy:"#4ade80",degraded:"#fbbf24",unhealthy:"#f87171",unknown:"#6b6b76"},i=C(()=>p[s.nodeState.health]),P=C(()=>s.nodeState.health==="unknown"?`${e(d)}88`:e(i));let L=U(0),I=U(!1),T=U(!1),M=null;Xt(()=>{if(s.nodeState.pulseCount>e(L)){x(L,s.nodeState.pulseCount,!0),x(I,!0);const b=setTimeout(()=>{x(I,!1)},1200);return x(T,!0),M&&clearTimeout(M),M=setTimeout(()=>{x(T,!1)},3e3),()=>{clearTimeout(b),M&&clearTimeout(M)}}});function R(){s.onselectnode(s.def.id)}var E=va();let $;var A=a(E);{var G=b=>{var m=na();_(()=>{u(m,"width",s.def.w+12),u(m,"height",s.def.h+12),u(m,"fill",e(d))}),l(b,m)};O(A,b=>{e(T)&&b(G)})}var K=n(A);{var Y=b=>{var m=ia();_(()=>{u(m,"width",s.def.w+8),u(m,"height",s.def.h+8),u(m,"stroke",e(d))}),l(b,m)};O(K,b=>{e(I)&&b(Y)})}var h=n(K),k=n(h);{var S=b=>{var m=la();_(()=>{u(m,"width",s.def.w),u(m,"height",s.def.h),u(m,"fill",e(d))}),l(b,m)};O(k,b=>{e(I)&&b(S)})}var N=n(k),ee=a(N);{var z=b=>{var m=da();l(b,m)};O(ee,b=>{e(T)&&b(z)})}r(N);var j=n(N),c=a(j,!0);r(j);var w=n(j);{var B=b=>{var m=ca(),X=a(m),re=n(X),ze=a(re,!0);r(re),r(m),_(()=>{u(m,"transform",`translate(${s.def.w-8}, -6)`),u(X,"fill",e(d)),f(ze,s.nodeState.queueDepth)}),l(b,m)};O(w,b=>{s.nodeState.queueDepth>0&&b(B)})}var q=n(w);{var te=b=>{var m=ua(),X=n(a(m)),re=a(X,!0);r(X),r(m),_(()=>f(re,s.nodeState.errorCount)),l(b,m)};O(q,b=>{s.nodeState.errorCount>0&&b(te)})}r(E),_(()=>{$=Be(E,0,"pipeline-node svelte-1tib701",null,$,{"pipeline-node--selected":s.selected,"pipeline-node--active":e(T)}),u(E,"transform",`translate(${s.def.x??""}, ${s.def.y??""})`),u(h,"width",s.def.w),u(h,"height",s.def.h),u(h,"fill",e(T)?e(d)+"18":"var(--sig-surface-raised)"),u(h,"stroke",e(T)?e(d):e(P)),u(h,"stroke-width",s.selected?2.5:e(T)?1.5:1),u(N,"cy",s.def.h/2),u(N,"r",e(T)?4:3),u(N,"fill",e(T)?e(d):e(i)),u(N,"opacity",e(T)?1:.7),u(j,"x",s.def.w/2),u(j,"y",s.def.h/2+1),u(j,"fill",e(T)?e(d):"var(--sig-text-bright)"),u(j,"font-weight",e(T)?"600":"400"),f(c,s.def.label)}),_t("click",E,R),l(g,E),at()}Jt(["click"]);var ga=ve('<g><rect rx="8" ry="8" fill-opacity="0.06" stroke-opacity="0.25" stroke-width="1" stroke-dasharray="4 3"></rect><text font-size="9" font-family="var(--font-mono)" opacity="0.6" letter-spacing="0.08em"> </text></g>'),pa=ve('<svg viewBox="0 0 1160 650" preserveAspectRatio="xMidYMid meet" class="w-full h-full select-none" xmlns="http://www.w3.org/2000/svg" role="application" aria-label="Pipeline graph. Use mouse wheel to zoom, drag background to pan, double-click to reset."><defs><filter id="glow" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="3" result="blur"></feGaussianBlur><feMerge><feMergeNode in="blur"></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><marker id="arrow" viewBox="0 0 10 10" refX="10" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse"><path d="M 0 0 L 10 5 L 0 10 z" fill="var(--sig-border-strong)"></path></marker></defs><g><!><!><!></g></svg>');function ma(g,s){rt(s,!0);const d=Object.entries(Or),p=.7,i=2.4,P=.12;let L=U(1),I=U(0),T=U(0),M=U(!1),R=U(0),E=U(0);function $(c){const w=y.nodes[c];return w?.lastActivity?Date.now()-new Date(w.lastActivity).getTime()<5e3:!1}function A(c){return Math.min(i,Math.max(p,c))}function G(){x(L,1),x(I,0),x(T,0)}function K(c){c.preventDefault();const w=c.currentTarget;if(!(w instanceof SVGSVGElement))return;const B=w.getBoundingClientRect(),q=c.clientX-B.left,te=c.clientY-B.top,b=c.deltaY<0?1:-1,m=A(e(L)+b*P);if(m===e(L))return;const X=(q-e(I))/e(L),re=(te-e(T))/e(L);x(L,m,!0),x(I,q-X*m),x(T,te-re*m)}function Y(c){if(c.button!==0||c.target!==c.currentTarget)return;const w=c.currentTarget;w instanceof SVGSVGElement&&w.setPointerCapture(c.pointerId),x(M,!0),x(R,c.clientX,!0),x(E,c.clientY,!0)}function h(c){if(!e(M))return;const w=c.clientX-e(R),B=c.clientY-e(E);x(R,c.clientX,!0),x(E,c.clientY,!0),x(I,e(I)+w),x(T,e(T)+B)}function k(c){if(!e(M))return;const w=c.currentTarget;w instanceof SVGSVGElement&&w.releasePointerCapture(c.pointerId),x(M,!1)}var S=pa(),N=n(a(S)),ee=a(N);Ae(ee,17,()=>d,yt,(c,w)=>{var B=C(()=>zt(e(w),2));let q=()=>e(B)[1];var te=ga(),b=a(te),m=n(b),X=a(m,!0);r(m),r(te),_(re=>{u(b,"x",q().x),u(b,"y",q().y),u(b,"width",q().w),u(b,"height",q().h),u(b,"fill",q().color),u(b,"stroke",q().color),u(m,"x",q().x+8),u(m,"y",q().y+14),u(m,"fill",q().color),f(X,re)},[()=>q().label.toUpperCase()]),l(c,te)});var z=n(ee);Ae(z,17,()=>Ar,c=>c.from+"-"+c.to,(c,w)=>{{let B=C(()=>$(e(w).from));oa(c,{get edge(){return e(w)},get active(){return e(B)}})}});var j=n(z);Ae(j,17,()=>st,c=>c.id,(c,w)=>{{let B=C(()=>y.selectedNodeId===e(w).id);fa(c,{get def(){return e(w)},get nodeState(){return y.nodes[e(w).id]},get selected(){return e(B)},get onselectnode(){return s.onselectnode}})}}),r(N),r(S),_(()=>u(N,"transform",`translate(${e(I)} ${e(T)}) scale(${e(L)})`)),Mt("wheel",S,K),_t("pointerdown",S,Y),_t("pointermove",S,h),_t("pointerup",S,k),Mt("pointercancel",S,k),Mt("pointerleave",S,k),_t("dblclick",S,G),l(g,S),at()}Jt(["pointerdown","pointermove","pointerup","dblclick"]);var xa=D('<div class="border-t border-[var(--sig-border)]"></div>'),ha=D('<!> <div class="flex items-center justify-between px-3 py-2 gap-3"><div class="flex items-center gap-3 min-w-0"><span class="font-mono text-[var(--font-size-sm)] text-[var(--sig-text)] truncate"> </span> <!> <span class="sig-meta text-[var(--sig-text-muted)] shrink-0"> </span></div> <div class="flex items-center gap-2 shrink-0"><span> </span> <!></div></div>',1),ba=D('<div class="mb-4"><div class="flex items-center gap-2 mb-2"><span class="sig-heading">ACTIVE SESSIONS</span> <!></div> <div class="rounded-md border border-[var(--sig-border)]" style="background: var(--sig-surface)"></div></div>');function _a(g,s){rt(s,!0);let d=U(Bt([])),p=U(!0),i=U(Bt(new Set));async function P(){try{const E=await yr();x(d,[...E.sessions],!0)}catch{Ve("Failed to load sessions","error")}finally{x(p,!1)}}async function L(E,$){if(!e(i).has(E.key)){x(i,new Set([...e(i),E.key]),!0);try{const A=await wr(E.key,$);A?x(d,e(d).map(G=>G.key===E.key?{...G,bypassed:A.bypassed}:G),!0):Ve("Failed to toggle bypass","error")}finally{const A=new Set(e(i));A.delete(E.key),x(i,A,!0)}}}function I(E){const $=Date.now()-new Date(E).getTime();if(!Number.isFinite($)||$<0)return"just now";const A=Math.floor($/1e3);if(A<60)return`${A}s ago`;const G=Math.floor(A/60);if(G<60)return`${G}m ago`;const K=Math.floor(G/60);return K<24?`${K}h ago`:`${Math.floor(K/24)}d ago`}Xt(()=>{P();const E=setInterval(P,3e4);return()=>clearInterval(E)});var T=Xe(),M=J(T);{var R=E=>{var $=ba(),A=a($),G=n(a(A),2);Dt(G,{variant:"outline",class:"sig-badge px-1.5 py-0",children:(Y,h)=>{_e();var k=ue();_(()=>f(k,e(d).length)),l(Y,k)},$$slots:{default:!0}}),r(A);var K=n(A,2);Ae(K,23,()=>e(d),Y=>Y.key,(Y,h,k)=>{var S=ha(),N=J(S);{var ee=ae=>{var xe=xa();l(ae,xe)};O(N,ae=>{e(k)>0&&ae(ee)})}var z=n(N,2),j=a(z),c=a(j),w=a(c,!0);r(c);var B=n(c,2);Dt(B,{variant:"outline",class:"sig-badge px-1.5 py-0 shrink-0",children:(ae,xe)=>{_e();var Ce=ue();_(()=>f(Ce,e(h).runtimePath)),l(ae,Ce)},$$slots:{default:!0}});var q=n(B,2),te=a(q,!0);r(q),r(j);var b=n(j,2),m=a(b);let X;var re=a(m,!0);r(m);var ze=n(m,2);{let ae=C(()=>e(i).has(e(h).key)),xe=C(()=>`Bypass session ${e(h).key}`);Kt(ze,{get checked(){return e(h).bypassed},get disabled(){return e(ae)},onCheckedChange:Ce=>L(e(h),Ce),get"aria-label"(){return e(xe)}})}r(b),r(z),_((ae,xe)=>{u(c,"title",e(h).key),f(w,ae),f(te,xe),X=Be(m,1,"sig-meta",null,X,{"text-[var(--sig-text-muted)]":!e(h).bypassed,"text-[var(--sig-accent)]":e(h).bypassed}),f(re,e(h).bypassed?"bypassed":"active")},[()=>e(h).key.slice(0,12),()=>I(e(h).claimedAt)]),l(Y,S)}),r(K),r($),l(E,$)};O(M,E=>{!e(p)&&e(d).length>0&&E(R)})}l(g,T),at()}var ya=D('<span class="sig-eyebrow text-[#4ade80]"> </span>'),wa=D('<span class="sig-meta"> </span>'),ka=D('<span class="sig-meta text-[var(--sig-text-muted)]">pipeline disabled in config</span>'),Sa=D('<div class="flex flex-col gap-1"><!> <!></div>'),Ca=D("<!> <!>",1),Pa=D('<div class="flex items-start justify-between gap-2 border-b border-[var(--sig-border)]/30 pb-[1px]"><span class="text-[var(--sig-text-muted)]"> </span> <span class="text-[var(--sig-text)] break-all text-right normal-case"> </span></div>'),$a=D('<div class="mt-1 pl-[56px] sig-micro"> </div>'),Ta=D('<div class="mt-1 pl-[56px] sig-meta text-[#f87171] whitespace-pre-wrap break-words"> </div>'),Ea=D('<details class="mt-1 pl-[56px]"><summary class="cursor-pointer sig-micro">Raw payload</summary> <pre class="mt-1 p-2 border border-[var(--sig-border)] bg-[var(--sig-surface)] sig-micro text-[var(--sig-text)] whitespace-pre-wrap break-words normal-case"> </pre></details>'),Ma=D('<div class="mt-1 pl-[56px] inline-flex items-center gap-2 sig-micro"><span class="px-1 py-[1px] border border-[var(--sig-border)]"> </span> <span> </span></div> <div class="sig-eyebrow text-[var(--sig-text)] mt-0.5 pl-[56px] whitespace-pre-wrap break-words normal-case tracking-normal"> </div> <div class="mt-1 pl-[56px] grid grid-cols-1 md:grid-cols-2 gap-x-3 gap-y-1 sig-micro"></div> <!> <!> <!>',1),Da=D('<details class="mt-0.5 pl-[56px] group"><summary class="list-none cursor-pointer sig-eyebrow text-[var(--sig-text)] normal-case tracking-normal line-clamp-2 break-words [&amp;::-webkit-details-marker]:hidden"> </summary> <div class="mt-1 sig-eyebrow text-[var(--sig-text)] normal-case tracking-normal whitespace-pre-wrap break-words"> </div></details>'),La=D('<div class="sig-eyebrow text-[var(--sig-text)] normal-case tracking-normal mt-0.5 pl-[56px] whitespace-pre-wrap break-words"> </div>'),Oa=D('<span class="sig-micro pl-[56px]"> </span>'),Aa=D("<!> <!>",1),Na=D('<div class="feed-entry px-2 py-1.5 rounded hover:bg-[var(--sig-surface-raised)] transition-colors svelte-1kgvdra"><div class="flex items-center gap-1.5"><span class="sig-meta shrink-0 w-[48px]"> </span> <span class="inline-block w-1.5 h-1.5 rounded-full shrink-0"></span> <span class="sig-meta shrink-0"> </span></div> <!></div>'),Ia=D('<div class="flex items-center justify-center h-full sig-label italic">Waiting for events...</div>'),Ra=D('<div class="flex flex-col flex-1 min-h-0 overflow-hidden"><!> <div class="flex items-center justify-between px-4 py-2 border-b border-[var(--sig-border)] shrink-0"><div class="flex items-center gap-3"><div class="flex items-center gap-1.5"><span></span> <span class="sig-eyebrow"> </span></div> <!> <!></div> <div class="flex items-center gap-3"><!> <!></div></div> <div class="px-4 pt-2"><!></div> <div class="flex flex-1 min-h-0 flex-col lg:flex-row"><div class="flex-1 min-w-0 min-h-[46vh] lg:min-h-0 p-4 overflow-auto"><!></div> <div><div class="px-3 py-2 border-b border-[var(--sig-border)] space-y-2"><div class="flex items-center justify-between gap-2"><span class="sig-heading text-[10px]">Live Feed</span> <div class="flex items-center gap-2"><span class="sig-meta"> </span> <span> </span></div></div> <div class="flex items-center justify-between gap-2 min-w-0"><label class="inline-flex items-center gap-1.5 sig-eyebrow text-[var(--sig-text)] cursor-pointer min-w-0"><!> <span>Auto-scroll</span></label> <div class="hidden lg:flex items-center gap-1.5 shrink-0"><!> <!></div> <div class="lg:hidden shrink-0"><!></div></div></div> <div class="flex-1 overflow-y-auto px-1 py-1"><!> <!></div></div></div></div> <!>',1);function Xa(g,s){rt(s,!0);function d(t){tr(y.selectedNodeId===t?null:t)}let p=U(null),i=U(null),P=U(!0),L=U(!1),I=U(!1);const T=24;let M=U(!0),R=U(!0);const E=C(()=>e(L)?"lg:w-[420px]":"lg:w-[320px]"),$=C(()=>e(M)?"Latest":"Oldest"),A=C(()=>e(L)?"Expanded":"Compact");function G(t="smooth"){e(i)&&e(i).scrollTo({top:e(i).scrollHeight,behavior:t})}function K(){return e(i)?e(i).scrollHeight-e(i).scrollTop-e(i).clientHeight<=T:!0}function Y(){if(!(!e(i)||(x(R,K(),!0),!(e(i).scrollHeight-e(i).clientHeight>T)))){if(e(R)){x(M,!0);return}e(i).scrollTop<=T&&x(M,!1)}}function h(t){e(i)&&(e(M)?(x(P,!1),x(R,!1),x(M,!1),e(i).scrollTo({top:0,behavior:"smooth"})):(x(P,!0),x(R,!0),x(M,!0),G("auto")),t?.currentTarget instanceof HTMLElement&&t.currentTarget.blur(),x(I,!1))}function k(t){x(P,t,!0),Et.pipeline.autoScroll=t,Qt(),t&&(x(R,!0),x(M,!0),requestAnimationFrame(()=>{G("auto"),Y()}))}function S(t){x(L,!e(L)),Et.pipeline.feedExpanded=e(L),Qt(),t?.currentTarget instanceof HTMLElement&&t.currentTarget.blur(),x(I,!1)}async function N(){if(e(p))return;if(y.mode==="disabled"){Ve("Pipeline is disabled in config","warning");return}const t=y.mode==="paused"?"resume":"pause";x(p,t,!0);try{const o=t==="pause"?await Pr():await $r();if(!o.success){Ve(o.error??`Failed to ${t} pipeline`,"error");return}o.mode&&(y.mode=o.mode,y.lastPoll=new Date().toISOString());const v=await Yt();if(o.changed===!1){Ve(t==="pause"?"Pipeline already paused":"Pipeline already running");return}if(!v){Ve(`${t==="pause"?"Pipeline paused":"Pipeline resumed"}, but live status refresh failed`,"warning");return}Ve(t==="pause"?"Pipeline paused":"Pipeline resumed","success")}finally{x(p,null)}}function ee(t){if(!t)return"";const o=Object.keys(t);if(o.length===0)return"";const v=o.slice(0,4).join(", ");return o.length>4?`${v} +${o.length-4}`:v}Xt(()=>{if(y.feed.length,Y(),e(P)&&e(i)){if(!e(R))return;requestAnimationFrame(()=>{G("auto"),x(R,!0),x(M,!0),Y()})}}),ur(()=>(er(),Br(),x(P,Et.pipeline.autoScroll,!0),x(L,Et.pipeline.feedExpanded,!0),()=>{Rr(),zr()}));const z={"controlled-write":"border-[#4ade80] text-[#4ade80]",shadow:"border-[#fbbf24] text-[#fbbf24]",frozen:"border-[#94a3b8] text-[#94a3b8]",paused:"border-[#60a5fa] text-[#60a5fa]",disabled:"border-[#f87171] text-[#f87171]",unknown:"border-[var(--sig-border)] text-[var(--sig-text-muted)]"},j=C(()=>z[y.mode]??z.unknown),c=C(()=>st.filter(t=>{const o=y.nodes[t.id];return o?.lastActivity?Date.now()-new Date(o.lastActivity).getTime()<5e3:!1}).length);function w(t){try{return new Date(t).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"})}catch{return t}}const B={error:"#f87171",warn:"#fbbf24",info:"#4ade80",debug:"#6b6b76"},q={hooks:"#4dabf7","session-tracker":"#4dabf7",pipeline:"#da77f2","summary-worker":"#da77f2","document-worker":"#da77f2",retention:"#da77f2",maintenance:"#da77f2",memory:"#ffd43b",embedding:"#ffd43b",sync:"#ff922b",watcher:"#ff922b",harness:"#4dabf7",llm:"#fcc419"},te=["jobId","memoryId","sessionKey","project","attempt","maxRetries","mode","provider","model","facts","entities","proposals","added","updated","deleted","deduped","skippedLowConfidence","blockedDestructive","runId","taskId","path","port","pid","error"];function b(t){const o=Date.now()-new Date(t).getTime();if(!Number.isFinite(o)||o<0)return"just now";const v=Math.floor(o/1e3);if(v<60)return`${v}s ago`;const F=Math.floor(v/60);if(F<60)return`${F}m ago`;const H=Math.floor(F/60);return H<24?`${H}h ago`:`${Math.floor(H/24)}d ago`}function m(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").replace(/^./,o=>o.toUpperCase())}function X(t){return t===null?"null":t===void 0?"undefined":typeof t=="string"?t:typeof t=="number"||typeof t=="boolean"?String(t):Array.isArray(t)?`[${t.length} items]`:typeof t=="object"?"{object}":String(t)}function re(t){const o=t.message.toLowerCase(),v=t.category.replace(/-/g," ");if(o.includes("job failed")){const F=t.data?.attempt;return typeof F=="number"?`${v} failed (attempt ${F})`:`${v} failed`}return o.includes("completed")?`${v} completed`:o.includes("started")||o.includes("starting")?`${v} started`:o.includes("enqueued")?`${v} queued`:o.includes("failed")?`${v} warning`:o.includes("file changed")?"watcher detected file change":`${v} event`}function ze(t){const o=[{label:"Level",value:t.level},{label:"Category",value:t.category}];t.duration!==void 0&&o.push({label:"Duration",value:`${t.duration} ms`});const v=t.data;if(!v)return o;const F=new Set;for(const H of te)H in v&&(o.push({label:m(H),value:X(v[H])}),F.add(H));for(const H of Object.keys(v).sort())F.has(H)||o.push({label:m(H),value:X(v[H])});return o}function ae(t){const o={};if(t.data&&(o.data=t.data),t.error&&(o.error=t.error),Object.keys(o).length===0)return"";const v=JSON.stringify(o,null,2);if(!v)return"";const F=3200;return v.length<=F?v:`${v.slice(0,F)}
3
3
  ...truncated`}var xe=Ra(),Ce=J(xe),ot=a(Ce);Tr(ot,{title:"Pipeline",children:(t,o)=>{Er(t,{group:"engine",get tabs(){return Cr},get activeTab(){return Sr.activeTab},onselect:(v,F)=>kr(F)})}});var Fe=n(ot,2),Ue=a(Fe),nt=a(Ue),it=a(nt);let kt;var lt=n(it,2),Lt=a(lt,!0);r(lt),r(nt);var dt=n(nt,2);Dt(dt,{variant:"outline",get class(){return`sig-badge px-1.5 py-0 ${e(j)??""}`},children:(t,o)=>{_e();var v=ue();_(()=>f(v,y.mode)),l(t,v)},$$slots:{default:!0}});var ct=n(dt,2);{var Ot=t=>{var o=ya(),v=a(o);r(o),_(()=>f(v,`${e(c)??""} active`)),l(t,o)};O(ct,t=>{e(c)>0&&t(Ot)})}r(Ue);var ut=n(Ue,2),vt=a(ut);{var At=t=>{var o=wa(),v=a(o);r(o),_(F=>f(v,`polled ${F??""}`),[()=>w(y.lastPoll)]),l(t,o)};O(vt,t=>{y.lastPoll&&t(At)})}var Nt=n(vt,2);{var V=t=>{var o=ka();l(t,o)},Q=t=>{{let o=C(()=>e(p)!==null);tt(t,{variant:"outline",size:"sm",class:"sig-meta uppercase tracking-[0.08em] px-2.5 py-[5px] h-auto hover:text-[var(--sig-text)] hover:border-[var(--sig-border-strong)]",get disabled(){return e(o)},onclick:N,children:(v,F)=>{var H=Xe(),je=J(H);{var pt=W=>{var Z=ue("Pausing...");l(W,Z)},He=W=>{var Z=ue("Resuming...");l(W,Z)},Ee=W=>{var Z=ue("Resume");l(W,Z)},we=W=>{var Z=ue("Pause");l(W,Z)};O(je,W=>{e(p)==="pause"?W(pt):e(p)==="resume"?W(He,1):y.mode==="paused"?W(Ee,2):W(we,-1)})}l(v,H)},$$slots:{default:!0}})}};O(Nt,t=>{y.mode==="disabled"?t(V):t(Q,-1)})}r(ut),r(Fe);var se=n(Fe,2),Pe=a(se);_a(Pe,{}),r(se);var ye=n(se,2),ie=a(ye),Ne=a(ie);ma(Ne,{onselectnode:d}),r(ie);var fe=n(ie,2),le=a(fe),he=a(le),$e=n(a(he),2),Ie=a($e),ge=a(Ie);r(Ie);var oe=n(Ie,2);let pe;var Te=a(oe,!0);r(oe),r($e),r(he);var Le=n(he,2),Re=a(Le),Qe=a(Re);Oe(Qe,()=>Kt,(t,o)=>{o(t,{get checked(){return e(P)},onCheckedChange:v=>k(v),class:"scale-90"})}),_e(2),r(Re);var We=n(Re,2),St=a(We);tt(St,{variant:"outline",size:"sm",class:"sig-meta uppercase tracking-[0.08em] px-2 py-[3px] h-auto hover:text-[var(--sig-text)] hover:border-[var(--sig-border-strong)]",onclick:t=>h(t),children:(t,o)=>{_e();var v=ue();_(()=>f(v,e($))),l(t,v)},$$slots:{default:!0}});var It=n(St,2);tt(It,{variant:"outline",size:"sm",class:"sig-meta uppercase tracking-[0.08em] px-2 py-[3px] h-auto hover:text-[var(--sig-text)] hover:border-[var(--sig-border-strong)]",onclick:t=>S(t),children:(t,o)=>{_e();var v=ue();_(()=>f(v,e(A))),l(t,v)},$$slots:{default:!0}}),r(We);var Ze=n(We,2),ft=a(Ze);Oe(ft,()=>Lr,(t,o)=>{o(t,{get open(){return e(I)},set open(v){x(I,v,!0)},children:(v,F)=>{var H=Ca(),je=J(H);{const He=(Ee,we)=>{tt(Ee,vr(()=>we?.().props,{variant:"outline",size:"sm",class:"sig-meta uppercase tracking-[0.08em] px-2 py-[3px] h-auto hover:text-[var(--sig-text)] hover:border-[var(--sig-border-strong)]",children:(Z,mt)=>{_e();var Ke=ue("Feed actions");l(Z,Ke)},$$slots:{default:!0}}))};Oe(je,()=>Mr,(Ee,we)=>{we(Ee,{child:He,$$slots:{child:!0}})})}var pt=n(je,2);Oe(pt,()=>Dr,(He,Ee)=>{Ee(He,{align:"end",side:"bottom",class:"w-[170px] p-1 bg-[var(--sig-surface-raised)] border-[var(--sig-border-strong)] rounded-lg",children:(we,W)=>{var Z=Sa(),mt=a(Z);tt(mt,{variant:"outline",size:"sm",class:"w-full justify-start sig-eyebrow tracking-[0.08em] px-2 py-1 h-auto hover:text-[var(--sig-text)] hover:border-[var(--sig-border-strong)]",onclick:ke=>h(ke),children:(ke,jt)=>{_e();var Ye=ue();_(()=>f(Ye,e($))),l(ke,Ye)},$$slots:{default:!0}});var Ke=n(mt,2);tt(Ke,{variant:"outline",size:"sm",class:"w-full justify-start sig-eyebrow tracking-[0.08em] px-2 py-1 h-auto hover:text-[var(--sig-text)] hover:border-[var(--sig-border-strong)]",onclick:ke=>S(ke),children:(ke,jt)=>{_e();var Ye=ue();_(()=>f(Ye,e(A))),l(ke,Ye)},$$slots:{default:!0}}),r(Z),l(we,Z)},$$slots:{default:!0}})}),l(v,H)},$$slots:{default:!0}})}),r(Ze),r(Le),r(le);var Je=n(le,2),gt=a(Je);Ae(gt,19,()=>y.feed,(t,o)=>t.timestamp+"-"+o,(t,o)=>{const v=C(()=>q[e(o).category]??"var(--sig-text-muted)"),F=C(()=>B[e(o).level]??"#6b6b76"),H=C(()=>e(o).message.length>72),je=C(()=>ee(e(o).data)),pt=C(()=>re(e(o))),He=C(()=>ze(e(o))),Ee=C(()=>ae(e(o)));var we=Na(),W=a(we),Z=a(W),mt=a(Z,!0);r(Z);var Ke=n(Z,2),ke=n(Ke,2),jt=a(ke,!0);r(ke),r(W);var Ye=n(W,2);{var sr=qe=>{var xt=Ma(),et=J(xt),ht=a(et),qt=a(ht,!0);r(ht);var Ct=n(ht,2),Gt=a(Ct,!0);r(Ct),r(et);var de=n(et,2),me=a(de,!0);r(de);var Se=n(de,2);Ae(Se,21,()=>e(He),yt,(ne,ce)=>{var Me=Pa(),bt=a(Me),dr=a(bt,!0);r(bt);var Vt=n(bt,2),cr=a(Vt,!0);r(Vt),r(Me),_(()=>{f(dr,e(ce).label),f(cr,e(ce).value)}),l(ne,Me)}),r(Se);var Pt=n(Se,2);{var $t=ne=>{var ce=$a(),Me=a(ce);r(ce),_(()=>f(Me,`Data keys: ${e(je)??""}`)),l(ne,ce)};O(Pt,ne=>{e(je)&&ne($t)})}var Tt=n(Pt,2);{var nr=ne=>{var ce=Ta(),Me=a(ce);r(ce),_(()=>f(Me,`${e(o).error.name??""}: ${e(o).error.message??""}`)),l(ne,ce)};O(Tt,ne=>{e(o).error&&ne(nr)})}var ir=n(Tt,2);{var lr=ne=>{var ce=Ea(),Me=n(a(ce),2),bt=a(Me,!0);r(Me),r(ce),_(()=>f(bt,e(Ee))),l(ne,ce)};O(ir,ne=>{e(Ee)&&ne(lr)})}_(ne=>{f(qt,e(pt)),f(Gt,ne),f(me,e(o).message)},[()=>b(e(o).timestamp)]),l(qe,xt)},or=qe=>{var xt=Aa(),et=J(xt);{var ht=de=>{var me=Da(),Se=a(me),Pt=a(Se,!0);r(Se);var $t=n(Se,2),Tt=a($t,!0);r($t),r(me),_(()=>{f(Pt,e(o).message),f(Tt,e(o).message)}),l(de,me)},qt=de=>{var me=La(),Se=a(me,!0);r(me),_(()=>f(Se,e(o).message)),l(de,me)};O(et,de=>{e(H)?de(ht):de(qt,-1)})}var Ct=n(et,2);{var Gt=de=>{var me=Oa(),Se=a(me);r(me),_(()=>f(Se,`${e(o).duration??""}ms`)),l(de,me)};O(Ct,de=>{e(o).duration&&de(Gt)})}l(qe,xt)};O(Ye,qe=>{e(L)?qe(sr):qe(or,-1)})}r(we),_(qe=>{f(mt,qe),Ut(Ke,`background-color: ${e(F)??""}`),Ut(ke,`color: ${e(v)??""}`),f(jt,e(o).category)},[()=>w(e(o).timestamp)]),l(t,we)});var Rt=n(gt,2);{var rr=t=>{var o=Ia();l(t,o)};O(Rt,t=>{y.feed.length===0&&t(rr)})}r(Je),fr(Je,t=>x(i,t),()=>e(i)),r(fe),r(ye),r(Ce);var ar=n(Ce,2);Kr(ar,{}),_(()=>{kt=Be(it,1,"inline-block w-2 h-2 rounded-full",null,kt,{"bg-[#4ade80]":y.connected,"bg-[#f87171]":!y.connected,"animate-pulse":y.connected}),f(Lt,y.connected?"LIVE":"DISCONNECTED"),Be(fe,1,`w-full shrink-0 border-t lg:border-t-0 border-[var(--sig-border)] flex flex-col bg-[var(--sig-bg)] min-h-[220px] max-h-[40vh] lg:max-h-none ${e(E)}`,"svelte-1kgvdra"),f(ge,`${y.feed.length??""} events`),pe=Be(oe,1,"sig-meta",null,pe,{"text-[#4ade80]":e(P)&&e(R),"text-[var(--sig-text-muted)]":!e(P)||!e(R)}),f(Te,e(P)&&e(R)?"following":"paused")}),Mt("scroll",Je,Y),l(g,xe),at()}export{Xa as default};
@@ -1,4 +1,4 @@
1
- import{p as Je,g as Ft,q as Dr,i as e,v as $,O as St,G as ur,b as s,d as Ye,o as le,m as c,s as Qt,c as $e,f as y,a as At,n as er,r as tr,j as f,t as o,l as v,k as L,w as Be,y as te,z as X,B as Dt,x as nt,u as p,a2 as Lr,e as Zt,L as Mr,$ as Tr,M as We,h as U,ab as Vr,A as Ie,I as Rr,F as Br,a9 as br,N as Lt,aI as Vt,D as zr,aJ as jr,aK as oe,aL as qr,P as Ur}from"./BCse5epf.js";import{i as Hr}from"./BPRUlRzH.js";import{I as rr,B as or,aW as Kr,aX as dr,t as Ot,aY as Gr,aZ as Wr,a_ as Wt,a$ as Jr,b0 as Yr,b1 as Xr,b2 as Zr,b3 as Qr,b4 as _r}from"./Bs3kPGqt.js";import{E as lr,a as xr,C as ea,y as yr,m as $r,k as Sr,l as ta,h as ra,b as aa,c as na,f as sa,d as oa,e as la,g as ia,s as da,i as ca,j as ua,n as va,o as ga,p as pa,q as ma}from"./D6m8EAYN.js";import{g as fa,p as kr,s as wr}from"./CppT_YPm.js";import{P as ha}from"./CQ6ZLhxP.js";import{P as ba,a as _a,b as xa}from"./C1atDStK.js";import{L as ya,T as $a}from"./h3N46V2g.js";import{C as Pr}from"./_Iol3XV9.js";import{I as he}from"./BHH6bQLl.js";import{R as Sa}from"./-cs3uKo_.js";import{c as ut,S as vt,a as gt,b as be}from"./DdAAA2Cd.js";import{C as ka}from"./BOyj7USM.js";import{S as Et}from"./BnG2-ByH.js";var wa=c('<div class="code-editor svelte-c4vs74"></div>');function Pa(d,t){Je(t,!0);let r=Ft(t,"readonly",3,!1),l=le(void 0),n=le(void 0);const k=new ea;function m(){return lr.theme({"&":{backgroundColor:"var(--sig-bg)",color:"var(--sig-text-bright)",fontFamily:"var(--font-mono)",fontSize:"13px",height:"100%"},".cm-content":{caretColor:"var(--sig-text-bright)",fontFamily:"var(--font-mono)",lineHeight:"1.8",padding:"var(--space-md) 0"},".cm-cursor, .cm-dropCursor":{borderLeftColor:"var(--sig-text-bright)"},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground":{backgroundColor:"rgba(255, 255, 255, 0.08) !important"},".cm-activeLine":{backgroundColor:"rgba(255, 255, 255, 0.03)"},".cm-gutters":{backgroundColor:"var(--sig-surface)",color:"var(--sig-text-muted)",border:"none",borderRight:"1px solid var(--sig-border)",fontFamily:"var(--font-mono)",fontSize:"11px"},".cm-activeLineGutter":{backgroundColor:"rgba(255, 255, 255, 0.04)",color:"var(--sig-text)"},".cm-foldGutter":{color:"var(--sig-text-muted)"},"&.cm-focused":{outline:"none"},".cm-matchingBracket":{backgroundColor:"rgba(255, 255, 255, 0.1)",color:"var(--sig-text-bright)"},".cm-searchMatch":{backgroundColor:"rgba(255, 255, 255, 0.12)"},".cm-selectionMatch":{backgroundColor:"rgba(255, 255, 255, 0.06)"},".cm-line":{padding:"0 var(--space-md)"},".cm-scroller":{overflow:"auto"}},{dark:!0})}function _(){return t.language==="yaml"?yr():t.language==="markdown"?$r():[]}function w(){const b=Sr.of([{key:"Mod-s",run:()=>(t.onsave?.(),!0)}]);return[ta(),ra(),aa(),na(),sa(),oa(),la(),ia(),da(ma,{fallback:!0}),Sr.of([...ca,...ua,...va,...ga,...pa]),m(),k.of(_()),b,lr.updateListener.of(u=>{u.docChanged&&t.onchange?.(u.state.doc.toString())}),...r()?[xr.readOnly.of(!0)]:[]]}Dr(()=>{if(e(l))return $(n,new lr({state:xr.create({doc:t.value,extensions:w()}),parent:e(l)}),!0),()=>{e(n)?.destroy(),$(n,void 0)}}),St(()=>{if(!e(n))return;const b=e(n).state.doc.toString();t.value!==b&&e(n).dispatch({changes:{from:0,to:b.length,insert:t.value}})}),St(()=>{const b=t.language;e(n)&&e(n).dispatch({effects:k.reconfigure(b==="yaml"?yr():b==="markdown"?$r():[])})});var P=wa();ur(P,b=>$(l,b),()=>e(l)),s(d,P),Ye()}function Ca(d,t){Je(t,!0);let r=tr(t,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}],["circle",{cx:"12",cy:"12",r:"3"}]];rr(d,Qt({name:"eye"},()=>r,{get iconNode(){return l},children:(n,k)=>{var m=$e(),_=y(m);At(_,()=>t.children??er),s(n,m)},$$slots:{default:!0}})),Ye()}var Ea=c('<span> <span class="md-viewer-budget-pct svelte-ebmw30"> </span></span>'),Aa=c('<span class="md-viewer-budget svelte-ebmw30"> </span>'),Na=c('<span class="md-viewer-save-meta svelte-ebmw30"> </span>'),Ma=c('<span class="md-viewer-save-meta svelte-ebmw30"> </span>'),Ta=c("<!> <span>Preview</span>",1),Ia=c("<!> <span>Edit</span>",1),Oa=c('<div class="md-viewer-prose prose svelte-ebmw30"></div>'),Fa=c('<div class="md-viewer svelte-ebmw30"><div class="md-viewer-toolbar svelte-ebmw30"><span class="md-viewer-filename svelte-ebmw30"><span class="md-viewer-path svelte-ebmw30">~/.agents/</span> </span> <!> <div class="md-viewer-actions svelte-ebmw30"><!> <!> <span> </span> <!> <!> <!></div></div> <!></div>');function Da(d,t){Je(t,!0);let r=Ft(t,"dirty",3,!1),l=Ft(t,"saving",3,!1),n=Ft(t,"saveDisabled",3,!1);function k(x){const T=x.match(/\sclass=(['"])(.*?)\1/i);if(!T)return`${x} class="md-boxed-heading"`;const ce=T[1],se=T[2].split(/\s+/).filter(Boolean);return se.includes("md-boxed-heading")||se.push("md-boxed-heading"),x.replace(/\sclass=(['"])(.*?)\1/i,` class=${ce}${se.join(" ")}${ce}`)}function m(x){return x.replace(/<h([1-6])(\s[^>]*)?>([\s\S]*?)<\/h\1>/gi,(T,ce,se="",Ee="")=>{const ze=k(se);return`<h${ce}${ze}>${Ee}</h${ce}>`})}const _=p(()=>t.content?.length??0),w=p(()=>t.charBudget?Math.round(e(_)/t.charBudget*100):0);let P=le(!1);const b=p(()=>{if(!t.content)return"";const x=fa.parse(t.content,{async:!1});return m(x)});var u=Fa(),j=f(u),N=f(j),E=o(f(N),1,!0);v(N);var O=o(N,2);{var D=x=>{var T=Ea();let ce;var se=f(T),Ee=o(se),ze=f(Ee);v(Ee),v(T),te((je,De)=>{ce=Dt(T,1,"md-viewer-budget svelte-ebmw30",null,ce,{"over-budget":e(_)>t.charBudget,"near-budget":e(w)>=80&&e(_)<=t.charBudget}),X(se,`${je??""} / ${De??""} chars `),X(ze,`(${e(w)??""}%)`)},[()=>e(_).toLocaleString(),()=>t.charBudget.toLocaleString()]),s(x,T)},B=x=>{var T=Aa(),ce=f(T);v(T),te(se=>X(ce,`${se??""} chars`),[()=>e(_).toLocaleString()]),s(x,T)};L(O,x=>{t.charBudget?x(D):x(B,-1)})}var H=o(O,2),F=f(H);{var W=x=>{var T=Na(),ce=f(T,!0);v(T),te(()=>X(ce,t.lastSavedText)),s(x,T)};L(F,x=>{t.lastSavedText&&x(W)})}var g=o(F,2);{var K=x=>{var T=Ma(),ce=f(T,!0);v(T),te(()=>X(ce,t.saveFeedback)),s(x,T)};L(g,x=>{t.saveFeedback&&x(K)})}var q=o(g,2);let h;var V=f(q,!0);v(q);var Z=o(q,2);{var de=x=>{or(x,{variant:"outline",size:"sm",class:`h-auto rounded-lg gap-1 font-mono text-[10px]
1
+ import{p as Je,g as Ft,q as Dr,i as e,v as $,O as St,G as ur,b as s,d as Ye,o as le,m as c,s as Qt,c as $e,f as y,a as At,n as er,r as tr,j as f,t as o,l as v,k as L,w as Be,y as te,z as X,B as Dt,x as nt,u as p,a2 as Lr,e as Zt,L as Mr,$ as Tr,M as We,h as U,ab as Vr,A as Ie,I as Rr,F as Br,a9 as br,N as Lt,aI as Vt,D as zr,aJ as jr,aK as oe,aL as qr,P as Ur}from"./BCse5epf.js";import{i as Hr}from"./BQzkyN4V.js";import{I as rr,B as or,aW as Kr,aX as dr,t as Ot,aY as Gr,aZ as Wr,a_ as Wt,a$ as Jr,b0 as Yr,b1 as Xr,b2 as Zr,b3 as Qr,b4 as _r}from"./CFdGC6PJ.js";import{E as lr,a as xr,C as ea,y as yr,m as $r,k as Sr,l as ta,h as ra,b as aa,c as na,f as sa,d as oa,e as la,g as ia,s as da,i as ca,j as ua,n as va,o as ga,p as pa,q as ma}from"./D6m8EAYN.js";import{g as fa,p as kr,s as wr}from"./CppT_YPm.js";import{P as ha}from"./CfLS0uX4.js";import{P as ba,a as _a,b as xa}from"./Bh9iVBQo.js";import{L as ya,T as $a}from"./wd8g3Kd6.js";import{C as Pr}from"./vfg-DMgf.js";import{I as he}from"./Br1x1OVK.js";import{R as Sa}from"./CnCLOw3G.js";import{c as ut,S as vt,a as gt,b as be}from"./pYK8rq8X.js";import{C as ka}from"./CvTMIryv.js";import{S as Et}from"./BV37vxtv.js";var wa=c('<div class="code-editor svelte-c4vs74"></div>');function Pa(d,t){Je(t,!0);let r=Ft(t,"readonly",3,!1),l=le(void 0),n=le(void 0);const k=new ea;function m(){return lr.theme({"&":{backgroundColor:"var(--sig-bg)",color:"var(--sig-text-bright)",fontFamily:"var(--font-mono)",fontSize:"13px",height:"100%"},".cm-content":{caretColor:"var(--sig-text-bright)",fontFamily:"var(--font-mono)",lineHeight:"1.8",padding:"var(--space-md) 0"},".cm-cursor, .cm-dropCursor":{borderLeftColor:"var(--sig-text-bright)"},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground":{backgroundColor:"rgba(255, 255, 255, 0.08) !important"},".cm-activeLine":{backgroundColor:"rgba(255, 255, 255, 0.03)"},".cm-gutters":{backgroundColor:"var(--sig-surface)",color:"var(--sig-text-muted)",border:"none",borderRight:"1px solid var(--sig-border)",fontFamily:"var(--font-mono)",fontSize:"11px"},".cm-activeLineGutter":{backgroundColor:"rgba(255, 255, 255, 0.04)",color:"var(--sig-text)"},".cm-foldGutter":{color:"var(--sig-text-muted)"},"&.cm-focused":{outline:"none"},".cm-matchingBracket":{backgroundColor:"rgba(255, 255, 255, 0.1)",color:"var(--sig-text-bright)"},".cm-searchMatch":{backgroundColor:"rgba(255, 255, 255, 0.12)"},".cm-selectionMatch":{backgroundColor:"rgba(255, 255, 255, 0.06)"},".cm-line":{padding:"0 var(--space-md)"},".cm-scroller":{overflow:"auto"}},{dark:!0})}function _(){return t.language==="yaml"?yr():t.language==="markdown"?$r():[]}function w(){const b=Sr.of([{key:"Mod-s",run:()=>(t.onsave?.(),!0)}]);return[ta(),ra(),aa(),na(),sa(),oa(),la(),ia(),da(ma,{fallback:!0}),Sr.of([...ca,...ua,...va,...ga,...pa]),m(),k.of(_()),b,lr.updateListener.of(u=>{u.docChanged&&t.onchange?.(u.state.doc.toString())}),...r()?[xr.readOnly.of(!0)]:[]]}Dr(()=>{if(e(l))return $(n,new lr({state:xr.create({doc:t.value,extensions:w()}),parent:e(l)}),!0),()=>{e(n)?.destroy(),$(n,void 0)}}),St(()=>{if(!e(n))return;const b=e(n).state.doc.toString();t.value!==b&&e(n).dispatch({changes:{from:0,to:b.length,insert:t.value}})}),St(()=>{const b=t.language;e(n)&&e(n).dispatch({effects:k.reconfigure(b==="yaml"?yr():b==="markdown"?$r():[])})});var P=wa();ur(P,b=>$(l,b),()=>e(l)),s(d,P),Ye()}function Ca(d,t){Je(t,!0);let r=tr(t,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}],["circle",{cx:"12",cy:"12",r:"3"}]];rr(d,Qt({name:"eye"},()=>r,{get iconNode(){return l},children:(n,k)=>{var m=$e(),_=y(m);At(_,()=>t.children??er),s(n,m)},$$slots:{default:!0}})),Ye()}var Ea=c('<span> <span class="md-viewer-budget-pct svelte-ebmw30"> </span></span>'),Aa=c('<span class="md-viewer-budget svelte-ebmw30"> </span>'),Na=c('<span class="md-viewer-save-meta svelte-ebmw30"> </span>'),Ma=c('<span class="md-viewer-save-meta svelte-ebmw30"> </span>'),Ta=c("<!> <span>Preview</span>",1),Ia=c("<!> <span>Edit</span>",1),Oa=c('<div class="md-viewer-prose prose svelte-ebmw30"></div>'),Fa=c('<div class="md-viewer svelte-ebmw30"><div class="md-viewer-toolbar svelte-ebmw30"><span class="md-viewer-filename svelte-ebmw30"><span class="md-viewer-path svelte-ebmw30">~/.agents/</span> </span> <!> <div class="md-viewer-actions svelte-ebmw30"><!> <!> <span> </span> <!> <!> <!></div></div> <!></div>');function Da(d,t){Je(t,!0);let r=Ft(t,"dirty",3,!1),l=Ft(t,"saving",3,!1),n=Ft(t,"saveDisabled",3,!1);function k(x){const T=x.match(/\sclass=(['"])(.*?)\1/i);if(!T)return`${x} class="md-boxed-heading"`;const ce=T[1],se=T[2].split(/\s+/).filter(Boolean);return se.includes("md-boxed-heading")||se.push("md-boxed-heading"),x.replace(/\sclass=(['"])(.*?)\1/i,` class=${ce}${se.join(" ")}${ce}`)}function m(x){return x.replace(/<h([1-6])(\s[^>]*)?>([\s\S]*?)<\/h\1>/gi,(T,ce,se="",Ee="")=>{const ze=k(se);return`<h${ce}${ze}>${Ee}</h${ce}>`})}const _=p(()=>t.content?.length??0),w=p(()=>t.charBudget?Math.round(e(_)/t.charBudget*100):0);let P=le(!1);const b=p(()=>{if(!t.content)return"";const x=fa.parse(t.content,{async:!1});return m(x)});var u=Fa(),j=f(u),N=f(j),E=o(f(N),1,!0);v(N);var O=o(N,2);{var D=x=>{var T=Ea();let ce;var se=f(T),Ee=o(se),ze=f(Ee);v(Ee),v(T),te((je,De)=>{ce=Dt(T,1,"md-viewer-budget svelte-ebmw30",null,ce,{"over-budget":e(_)>t.charBudget,"near-budget":e(w)>=80&&e(_)<=t.charBudget}),X(se,`${je??""} / ${De??""} chars `),X(ze,`(${e(w)??""}%)`)},[()=>e(_).toLocaleString(),()=>t.charBudget.toLocaleString()]),s(x,T)},B=x=>{var T=Aa(),ce=f(T);v(T),te(se=>X(ce,`${se??""} chars`),[()=>e(_).toLocaleString()]),s(x,T)};L(O,x=>{t.charBudget?x(D):x(B,-1)})}var H=o(O,2),F=f(H);{var W=x=>{var T=Na(),ce=f(T,!0);v(T),te(()=>X(ce,t.lastSavedText)),s(x,T)};L(F,x=>{t.lastSavedText&&x(W)})}var g=o(F,2);{var K=x=>{var T=Ma(),ce=f(T,!0);v(T),te(()=>X(ce,t.saveFeedback)),s(x,T)};L(g,x=>{t.saveFeedback&&x(K)})}var q=o(g,2);let h;var V=f(q,!0);v(q);var Z=o(q,2);{var de=x=>{or(x,{variant:"outline",size:"sm",class:`h-auto rounded-lg gap-1 font-mono text-[10px]
2
2
  font-medium uppercase tracking-[0.1em] px-2 py-[3px]
3
3
  text-[var(--sig-text-muted)] border-[var(--sig-border)]
4
4
  hover:text-[var(--sig-text)] hover:border-[var(--sig-border-strong)]`,get onclick(){return t.ondiscard},children:(T,ce)=>{Be();var se=nt("DISCARD");s(T,se)},$$slots:{default:!0}})};L(Z,x=>{e(P)&&r()&&t.ondiscard&&x(de)})}var G=o(Z,2);{var ae=x=>{or(x,{variant:"outline",size:"sm",class:`h-auto rounded-lg gap-1 font-mono text-[10px]
@@ -1,4 +1,4 @@
1
- import{p as Be,s as wa,c as Ae,f as _e,a as ba,n as Pe,b as i,d as De,r as fa,o as _,e as Hs,q as Js,i as e,af as Gs,v as d,j as l,t as n,l as t,ab as ma,A as ha,y as D,B as X,z as h,M as fe,k as I,D as ze,u as F,w as xa,I as Le,a9 as Zs,Z as Es,L as Za,m as w,ag as m,N as Os}from"./BCse5epf.js";import{I as _a,O as js,P as Us,w as Qs,Q as Ea,X as Oa,R as Ws,T as Xs,U as Ks,V as Ys}from"./Bs3kPGqt.js";import{C as $s}from"./CewSUTSc.js";import{P as et}from"./Bvv2SPXq.js";import{R as ja}from"./Dmehg7R0.js";import{F as at}from"./6LKQP4XO.js";import{F as st}from"./2esUSatj.js";function tt(T,c){Be(c,!0);let L=fa(c,["$$slots","$$events","$$legacy"]);const B=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M8 12h8"}],["path",{d:"M12 8v8"}]];_a(T,wa({name:"circle-plus"},()=>L,{get iconNode(){return B},children:(k,V)=>{var q=Ae(),A=_e(q);ba(A,()=>c.children??Pe),i(k,q)},$$slots:{default:!0}})),De()}function Ua(T,c){Be(c,!0);let L=fa(c,["$$slots","$$events","$$legacy"]);const B=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}],["path",{d:"M3 12A9 3 0 0 0 21 12"}]];_a(T,wa({name:"database"},()=>L,{get iconNode(){return B},children:(k,V)=>{var q=Ae(),A=_e(q);ba(A,()=>c.children??Pe),i(k,q)},$$slots:{default:!0}})),De()}function lt(T,c){Be(c,!0);let L=fa(c,["$$slots","$$events","$$legacy"]);const B=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12"}]];_a(T,wa({name:"link-2"},()=>L,{get iconNode(){return B},children:(k,V)=>{var q=Ae(),A=_e(q);ba(A,()=>c.children??Pe),i(k,q)},$$slots:{default:!0}})),De()}const z=(T,c=Pe)=>{var L=Ae(),B=_e(L);{var k=a=>{var o=rt();i(a,o)},V=a=>{var o=nt();i(a,o)},q=a=>{st(a,{})},A=a=>{var o=ot();i(a,o)},K=a=>{var o=it();i(a,o)},Y=a=>{var o=dt();i(a,o)},O=a=>{var o=vt();i(a,o)},H=a=>{var o=ct();i(a,o)},te=a=>{var o=pt();i(a,o)},le=a=>{var o=ut();i(a,o)},R=a=>{var o=gt();i(a,o)},y=a=>{var o=mt();i(a,o)},J=a=>{var o=ht();i(a,o)},j=a=>{var o=xt();i(a,o)},re=a=>{var o=wt();i(a,o)},ne=a=>{var o=bt();i(a,o)},Fe=a=>{var o=ft();i(a,o)},$=a=>{var o=_t();i(a,o)},Ve=a=>{var o=qt();i(a,o)},Re=a=>{var o=kt();i(a,o)},Ne=a=>{var o=yt();i(a,o)},qe=a=>{var o=Mt();i(a,o)},ke=a=>{var o=Ct();i(a,o)},Te=a=>{var o=St();i(a,o)};I(B,a=>{c()==="obsidian"?a(k):c()==="github"?a(V,1):c()==="folder"?a(q,2):c()==="csv"?a(A,3):c()==="postgres"?a(K,4):c()==="supabase"?a(Y,5):c()==="globe"?a(O,6):c()==="drive"?a(H,7):c()==="gmail"?a(te,8):c()==="nextcloud"?a(le,9):c()==="notion"?a(R,10):c()==="x-bookmarks"?a(y,11):c()==="discord"?a(J,12):c()==="telegram"?a(j,13):c()==="quickbooks"?a(re,14):c()==="polymarket"?a(ne,15):c()==="airtable"?a(Fe,16):c()==="go-high-level"?a($,17):c()==="clickup"?a(Ve,18):c()==="stripe"?a(Re,19):c()==="imap-email"?a(Ne,20):c()==="proton-mail"?a(qe,21):c()==="history"?a(ke,22):a(Te,-1)})}i(T,L)};var rt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo obsidian-logo svelte-xqw5vs"><path fill="#7C3AED" d="M19.355 18.538a68.967 68.959 0 0 0 1.858-2.954.81.81 0 0 0-.062-.9c-.516-.685-1.504-2.075-2.042-3.362-.553-1.321-.636-3.375-.64-4.377a1.707 1.707 0 0 0-.358-1.05l-3.198-4.064a3.744 3.744 0 0 1-.076.543c-.106.503-.307 1.004-.536 1.5-.134.29-.29.6-.446.914l-.31.626c-.516 1.068-.997 2.227-1.132 3.59-.124 1.26.046 2.73.815 4.481.128.011.257.025.386.044a6.363 6.363 0 0 1 3.326 1.505c.916.79 1.744 1.922 2.415 3.5zM8.199 22.569c.073.012.146.02.22.02.78.024 2.095.092 3.16.29.87.16 2.593.64 4.01 1.055 1.083.316 2.198-.548 2.355-1.664.114-.814.33-1.735.725-2.58l-.01.005c-.67-1.87-1.522-3.078-2.416-3.849a5.295 5.295 0 0 0-2.778-1.257c-1.54-.216-2.952.19-3.84.45.532 2.218.368 4.829-1.425 7.531zM5.533 9.938c-.023.1-.056.197-.098.29L2.82 16.059a1.602 1.602 0 0 0 .313 1.772l4.116 4.24c2.103-3.101 1.796-6.02.836-8.3-.728-1.73-1.832-3.081-2.55-3.831zM9.32 14.01c.615-.183 1.606-.465 2.74-.546-.705-1.79-.844-3.322-.71-4.565.157-1.46.686-2.69 1.214-3.756l.32-.633c.153-.303.3-.592.428-.867.266-.57.448-1.077.468-1.556.014-.343-.053-.69-.25-1.075L6.561 8.982c.713.753 1.901 2.196 2.757 4.044.145.313.279.642.4.985z" class="svelte-xqw5vs"></path></svg>'),nt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo github-logo svelte-xqw5vs"><path fill="currentColor" d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" class="svelte-xqw5vs"></path></svg>'),ot=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo csv-logo svelte-xqw5vs"><path fill="currentColor" d="M4 2h12l4 4v16H4z" opacity="0.18" class="svelte-xqw5vs"></path><path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linejoin="miter" d="M4 2h12l4 4v16H4zM16 2v5h4M7 11h10M7 15h10M10 9v10M14 9v10" class="svelte-xqw5vs"></path></svg>'),it=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo postgres-logo svelte-xqw5vs"><path fill="#4169E1" d="M12 2C8.2 2 5.1 3.3 5.1 5v10.2c0 1.7 3.1 3 6.9 3s6.9-1.3 6.9-3V5c0-1.7-3.1-3-6.9-3Zm0 1.9c3 0 4.9.8 4.9 1.1S15 6.1 12 6.1 7.1 5.3 7.1 5 9 3.9 12 3.9Zm4.9 11.1c0 .4-1.9 1.2-4.9 1.2s-4.9-.8-4.9-1.2v-2.1c1.2.7 2.9 1.1 4.9 1.1s3.7-.4 4.9-1.1Zm0-4c0 .4-1.9 1.2-4.9 1.2S7.1 11.4 7.1 11V8.9C8.3 9.6 10 10 12 10s3.7-.4 4.9-1.1Z" class="svelte-xqw5vs"></path></svg>'),dt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo supabase-logo svelte-xqw5vs"><path fill="#3FCF8E" d="M11.9 1.036c-.015-.986-1.26-1.41-1.874-.637L.764 12.05C-.33 13.427.65 15.455 2.409 15.455h9.579l.113 7.51c.014.985 1.259 1.408 1.873.636l9.262-11.653c1.093-1.375.113-3.403-1.645-3.403h-9.642z" class="svelte-xqw5vs"></path></svg>'),vt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo mdn-logo svelte-xqw5vs"><path fill="#000000" d="m21.538 1.1-6.745 21.8h-2.77L18.77 1.1ZM24 1.1v21.8h-2.462V1.1Zm-12 0v21.8H9.538V1.1Zm-2.462 0L2.77 22.9H0L6.746 1.1Z" class="svelte-xqw5vs"></path></svg>'),ct=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo drive-logo svelte-xqw5vs"><path fill="#4285F4" d="M12.01 1.485c-2.082 0-3.754.02-3.743.047.01.02 1.708 3.001 3.774 6.62l3.76 6.574h3.76c2.081 0 3.753-.02 3.742-.047-.005-.02-1.708-3.001-3.775-6.62l-3.76-6.574zm-4.76 1.73a789.828 789.861 0 0 0-3.63 6.319L0 15.868l1.89 3.298 1.885 3.297 3.62-6.335 3.618-6.33-1.88-3.287C8.1 4.704 7.255 3.22 7.25 3.214zm2.259 12.653-.203.348c-.114.198-.96 1.672-1.88 3.287a423.93 423.948 0 0 1-1.698 2.97c-.01.026 3.24.042 7.222.042h7.244l1.796-3.157c.992-1.734 1.85-3.23 1.906-3.323l.104-.167h-7.249z" class="svelte-xqw5vs"></path></svg>'),pt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo gmail-logo svelte-xqw5vs"><path fill="#EA4335" d="M24 5.457v13.909c0 .904-.732 1.636-1.636 1.636h-3.819V11.73L12 16.64l-6.545-4.91v9.273H1.636A1.636 1.636 0 0 1 0 19.366V5.457c0-2.023 2.309-3.178 3.927-1.964L5.455 4.64 12 9.548l6.545-4.91 1.528-1.145C21.69 2.28 24 3.434 24 5.457z" class="svelte-xqw5vs"></path></svg>'),ut=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo nextcloud-logo svelte-xqw5vs"><path fill="#0082C9" d="M12.018 6.537c-2.5 0-4.6 1.712-5.241 4.015-.56-1.232-1.793-2.105-3.225-2.105A3.569 3.569 0 0 0 0 12a3.569 3.569 0 0 0 3.552 3.553c1.432 0 2.664-.874 3.224-2.106.641 2.304 2.742 4.016 5.242 4.016 2.487 0 4.576-1.693 5.231-3.977.569 1.21 1.783 2.067 3.198 2.067A3.568 3.568 0 0 0 24 12a3.569 3.569 0 0 0-3.553-3.553c-1.416 0-2.63.858-3.199 2.067-.654-2.284-2.743-3.978-5.23-3.977zm0 2.085c1.878 0 3.378 1.5 3.378 3.378 0 1.878-1.5 3.378-3.378 3.378A3.362 3.362 0 0 1 8.641 12c0-1.878 1.5-3.378 3.377-3.378zm-8.466 1.91c.822 0 1.467.645 1.467 1.468s-.644 1.467-1.467 1.468A1.452 1.452 0 0 1 2.085 12c0-.823.644-1.467 1.467-1.467zm16.895 0c.823 0 1.468.645 1.468 1.468s-.645 1.468-1.468 1.468A1.452 1.452 0 0 1 18.98 12c0-.823.644-1.467 1.467-1.467z" class="svelte-xqw5vs"></path></svg>'),gt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo notion-logo svelte-xqw5vs"><path fill="#000000" d="M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z" class="svelte-xqw5vs"></path></svg>'),mt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo x-logo svelte-xqw5vs"><path fill="currentColor" d="M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z" class="svelte-xqw5vs"></path></svg>'),ht=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo discord-logo svelte-xqw5vs"><path fill="#5865F2" d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z" class="svelte-xqw5vs"></path></svg>'),xt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo telegram-logo svelte-xqw5vs"><path fill="#26A5E4" d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z" class="svelte-xqw5vs"></path></svg>'),wt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo quickbooks-logo svelte-xqw5vs"><path fill="#2CA01C" d="M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm.642 4.1335c.9554 0 1.7296.776 1.7296 1.7332v9.0667h1.6c1.614 0 2.9275-1.3156 2.9275-2.933 0-1.6173-1.3136-2.9333-2.9276-2.9333h-.6654V7.3334h.6654c2.5722 0 4.6577 2.0897 4.6577 4.667 0 2.5774-2.0855 4.6666-4.6577 4.6666H12.642zM7.9837 7.333h3.3291v12.533c-.9555 0-1.73-.7759-1.73-1.7332V9.0662H7.9837c-1.6146 0-2.9277 1.316-2.9277 2.9334 0 1.6175 1.3131 2.9333 2.9277 2.9333h.6654v1.7332h-.6654c-2.5725 0-4.6577-2.0892-4.6577-4.6665 0-2.5771 2.0852-4.6666 4.6577-4.6666Z" class="svelte-xqw5vs"></path></svg>'),bt=m('<svg viewBox="0 0 2184 2184" role="img" aria-hidden="true" class="brand-logo polymarket-logo svelte-xqw5vs"><g transform="translate(0 2184) scale(0.1 -0.1)" class="svelte-xqw5vs"><path fill="currentColor" d="M10445 15709 c-2667 -764 -4860 -1391 -4872 -1394 l-23 -5 0 -3345 0 -3344 23 -7 c79 -25 9722 -2782 9724 -2780 2 1 2 2761 1 6133 l-3 6129 -4850 -1387z m3915 -1910 c0 -1939 -1 -2041 -17 -2037 -160 43 -7100 2032 -7105 2037 -7 6 7068 2037 7105 2040 16 1 17 -102 17 -2040z m-4263 -1806 c1976 -565 3591 -1028 3590 -1029 -4 -4 -7141 -2045 -7169 -2051 l-28 -5 0 2056 c0 1131 3 2056 8 2056 4 0 1623 -462 3599 -1027z m4263 -3864 l0 -2041 -27 5 c-16 3 -1617 460 -3560 1016 -1942 556 -3535 1011 -3539 1011 -4 0 -4 3 0 7 5 6 7095 2040 7119 2042 4 1 7 -918 7 -2040z" class="svelte-xqw5vs"></path></g></svg>'),ft=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo airtable-logo svelte-xqw5vs"><path fill="#18BFFF" d="M11.992 1.966c-.434 0-.87.086-1.28.257L1.779 5.917c-.503.208-.49.908.012 1.116l8.982 3.558a3.266 3.266 0 0 0 2.454 0l8.982-3.558c.503-.196.503-.908.012-1.116l-8.957-3.694a3.255 3.255 0 0 0-1.272-.257zM23.4 8.056a.589.589 0 0 0-.222.045l-10.012 3.877a.612.612 0 0 0-.38.564v8.896a.6.6 0 0 0 .821.552L23.62 18.1a.583.583 0 0 0 .38-.551V8.653a.6.6 0 0 0-.6-.596zM.676 8.095a.644.644 0 0 0-.48.19C.086 8.396 0 8.53 0 8.69v8.355c0 .442.515.737.908.54l6.27-3.006.307-.147 2.969-1.436c.466-.22.43-.908-.061-1.092L.883 8.138a.57.57 0 0 0-.207-.044z" class="svelte-xqw5vs"></path></svg>'),_t=w('<img src="/source-logos/highlevel-official-help-logo.png" alt="" aria-hidden="true" class="brand-logo ghl-logo svelte-xqw5vs"/>'),qt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo clickup-logo svelte-xqw5vs"><path fill="#7B68EE" d="M2 18.439l3.69-2.828c1.961 2.56 4.044 3.739 6.363 3.739 2.307 0 4.33-1.166 6.203-3.704L22 18.405C19.298 22.065 15.941 24 12.053 24 8.178 24 4.788 22.078 2 18.439zM12.04 6.15l-6.568 5.66-3.036-3.52L12.055 0l9.543 8.296-3.05 3.509z" class="svelte-xqw5vs"></path></svg>'),kt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo stripe-logo svelte-xqw5vs"><path fill="#635BFF" d="M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305h.003z" class="svelte-xqw5vs"></path></svg>'),yt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo imap-logo svelte-xqw5vs"><path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="miter" d="M3 6h18v12H3zM3 7l9 6 9-6" class="svelte-xqw5vs"></path><path fill="currentColor" d="M6 15h2v1.5H6zm3.5 0h2v1.5h-2zm3.5 0h2v1.5h-2zm3.5 0h2v1.5h-2z" class="svelte-xqw5vs"></path></svg>'),Mt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo proton-logo svelte-xqw5vs"><path fill="#6D4AFF" d="m15.24 8.998 3.656-3.073v15.81H2.482C1.11 21.735 0 20.609 0 19.223V6.944l7.58 6.38a2.186 2.186 0 0 0 2.871-.042l4.792-4.284h-.003zm-5.456 3.538 1.809-1.616a2.438 2.438 0 0 1-1.178-.533L.905 2.395A.552.552 0 0 0 0 2.826v2.811l8.226 6.923a1.186 1.186 0 0 0 1.558-.024zM23.871 2.463a.551.551 0 0 0-.776-.068l-3.199 2.688v16.653h1.623c1.371 0 2.481-1.127 2.481-2.513V2.824a.551.551 0 0 0-.129-.36z" class="svelte-xqw5vs"></path></svg>'),Ct=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo chrome-logo svelte-xqw5vs"><path fill="#4285F4" d="M12 0C8.21 0 4.831 1.757 2.632 4.501l3.953 6.848A5.454 5.454 0 0 1 12 6.545h10.691A12 12 0 0 0 12 0zM1.931 5.47A11.943 11.943 0 0 0 0 12c0 6.012 4.42 10.991 10.189 11.864l3.953-6.847a5.45 5.45 0 0 1-6.865-2.29zm13.342 2.166a5.446 5.446 0 0 1 1.45 7.09l.002.001h-.002l-5.344 9.257c.206.01.413.016.621.016 6.627 0 12-5.373 12-12 0-1.54-.29-3.011-.818-4.364zM12 16.364a4.364 4.364 0 1 1 0-8.728 4.364 4.364 0 0 1 0 8.728Z" class="svelte-xqw5vs"></path></svg>'),St=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo linear-logo svelte-xqw5vs"><path fill="#5E6AD2" d="M2.886 4.18A11.982 11.982 0 0 1 11.99 0C18.624 0 24 5.376 24 12.009c0 3.64-1.62 6.903-4.18 9.105L2.887 4.18ZM1.817 5.626l16.556 16.556c-.524.33-1.075.62-1.65.866L.951 7.277c.247-.575.537-1.126.866-1.65ZM.322 9.163l14.515 14.515c-.71.172-1.443.282-2.195.322L0 11.358a12 12 0 0 1 .322-2.195Zm-.17 4.862 9.823 9.824a12.02 12.02 0 0 1-9.824-9.824Z" class="svelte-xqw5vs"></path></svg>'),It=w('<button type="button"> </button>'),zt=w('<em class="svelte-xqw5vs">Planned</em>'),Lt=w('<p class="connected-loading svelte-xqw5vs">Checking source registry...</p>'),Bt=w('<code class="source-index-progress__path svelte-xqw5vs"> </code>'),At=w('<div class="source-index-progress svelte-xqw5vs"><div class="source-index-progress__head svelte-xqw5vs"><span class="svelte-xqw5vs"> </span> <strong class="svelte-xqw5vs"> </strong></div> <div class="source-index-progress__bar svelte-xqw5vs" role="progressbar" aria-valuemin="0" aria-valuemax="100"><span class="svelte-xqw5vs"></span></div> <!></div>'),Pt=w('<div class="exclude-summary svelte-xqw5vs"><span class="svelte-xqw5vs">Ignoring</span> <code class="svelte-xqw5vs"> </code></div>'),Dt=w('<span class="spin svelte-xqw5vs"><!></span>'),Ft=w('<article class="connected-row connected-row--inline svelte-xqw5vs"><div class="connected-main svelte-xqw5vs"><div class="connected-title-row svelte-xqw5vs"><strong class="svelte-xqw5vs"> </strong> <span class="status-badge status-badge--connected svelte-xqw5vs">Connected</span></div> <code class="svelte-xqw5vs"> </code></div> <ul class="svelte-xqw5vs"><li class="svelte-xqw5vs"><!> </li> <li class="svelte-xqw5vs"><!> </li> <li class="svelte-xqw5vs"><!> </li></ul> <!> <!> <button class="disconnect-button svelte-xqw5vs" type="button"><!> </button></article>'),Vt=w('<div class="connected-list connected-list--inline svelte-xqw5vs"></div>'),Rt=w('<button class="connect-button svelte-xqw5vs" type="button"><!> Connect</button>'),Nt=w('<p class="field-error svelte-xqw5vs">Vault folder is required.</p>'),Tt=w('<span class="spin svelte-xqw5vs"><!></span>'),Ht=w('<form class="connect-form svelte-xqw5vs"><label class="svelte-xqw5vs"><span class="svelte-xqw5vs">Display name</span> <input placeholder="Obsidian Vault" class="svelte-xqw5vs"/></label> <label class="svelte-xqw5vs"><span class="svelte-xqw5vs">Vault folder</span> <div class="path-row svelte-xqw5vs"><input placeholder="Choose your vault folder..." class="svelte-xqw5vs"/> <button type="button" class="svelte-xqw5vs"><!> </button></div></label> <!> <label class="svelte-xqw5vs"><span class="svelte-xqw5vs">Ignore globs</span> <textarea rows="5" placeholder="**/.*/** **/node_modules/**" class="svelte-xqw5vs"></textarea> <small class="field-hint svelte-xqw5vs">One glob per line or comma. Default ignores Obsidian internals, trash, Hermes metadata, hidden dot-folders, and hidden files.</small></label> <button class="connect-button svelte-xqw5vs" type="submit"><!> </button></form>'),Jt=w("<!> <!>",1),Gt=w('<p class="form-status form-status--info svelte-xqw5vs">Planned source. Not connectable yet.</p>'),Zt=w('<p class="form-status form-status--info svelte-xqw5vs"> </p>'),Et=w('<p class="form-status form-status--error svelte-xqw5vs"> </p>'),Ot=w('<article><button type="button"><span><!></span> <span class="connector-copy svelte-xqw5vs"><strong class="svelte-xqw5vs"> </strong> <small class="svelte-xqw5vs"> </small></span> <span><!></span></button> <div><p class="connector-description svelte-xqw5vs"> </p> <!> <!> <!></div></article>'),jt=w('<div class="sources-tab svelte-xqw5vs"><div class="sources-shell svelte-xqw5vs"><main class="sources-main svelte-xqw5vs"><header class="sources-masthead svelte-xqw5vs"><span class="eyebrow svelte-xqw5vs">Sources</span> <h1 class="svelte-xqw5vs">Connect knowledge bases</h1> <p class="svelte-xqw5vs">Bring external context into Signet while preserving the original source of truth.</p></header> <section class="source-toolbar svelte-xqw5vs" aria-label="Source filters"><label class="search-box svelte-xqw5vs" for="source-search"><span class="svelte-xqw5vs"><!></span> <input id="source-search" placeholder="Search sources" class="svelte-xqw5vs"/></label> <div class="filter-tabs svelte-xqw5vs" role="group" aria-label="Source type filters"></div> <div class="read-first svelte-xqw5vs"><span class="svelte-xqw5vs">Read-only first</span> <span class="switch svelte-xqw5vs" aria-hidden="true"><span class="svelte-xqw5vs"></span></span> <!></div></section> <section class="recall-map svelte-xqw5vs" aria-label="Source recall diagram"><div class="map-grid svelte-xqw5vs" aria-hidden="true"></div> <div class="map-left map-stack svelte-xqw5vs"><div class="map-node node-obsidian svelte-xqw5vs"><!></div> <div class="map-node node-github svelte-xqw5vs"><!></div> <div class="map-node node-folder svelte-xqw5vs"><!></div> <div class="map-node node-csv svelte-xqw5vs"><!></div> <div class="map-node node-web svelte-xqw5vs"><!></div></div> <svg class="map-connections svelte-xqw5vs" viewBox="0 0 620 240" preserveAspectRatio="none" aria-hidden="true"><defs class="svelte-xqw5vs"><filter id="wire-glow" x="-20%" y="-20%" width="140%" height="140%" class="svelte-xqw5vs"><feGaussianBlur stdDeviation="1.5" result="blur" class="svelte-xqw5vs"></feGaussianBlur><feMerge class="svelte-xqw5vs"><feMergeNode in="blur" class="svelte-xqw5vs"></feMergeNode><feMergeNode in="SourceGraphic" class="svelte-xqw5vs"></feMergeNode></feMerge></filter></defs><path d="M 76 38 C 160 38, 250 120, 310 120" class="map-wire svelte-xqw5vs"></path><path d="M 76 84 C 160 84, 250 120, 310 120" class="map-wire svelte-xqw5vs"></path><path d="M 76 130 C 160 130, 250 120, 310 120" class="map-wire svelte-xqw5vs"></path><path d="M 76 176 C 160 176, 250 120, 310 120" class="map-wire svelte-xqw5vs"></path><path d="M 544 38 C 460 38, 370 120, 310 120" class="map-wire svelte-xqw5vs"></path><path d="M 544 84 C 460 84, 370 120, 310 120" class="map-wire svelte-xqw5vs"></path><path d="M 544 130 C 460 130, 370 120, 310 120" class="map-wire svelte-xqw5vs"></path><path d="M 544 176 C 460 176, 370 120, 310 120" class="map-wire svelte-xqw5vs"></path><path d="M 544 222 C 460 222, 370 120, 310 120" class="map-wire svelte-xqw5vs"></path><path d="M 76 38 C 160 38, 250 120, 310 120" class="map-packet svelte-xqw5vs" style="animation-delay: 0s;"></path><path d="M 76 84 C 160 84, 250 120, 310 120" class="map-packet svelte-xqw5vs" style="animation-delay: -0.6s;"></path><path d="M 76 130 C 160 130, 250 120, 310 120" class="map-packet svelte-xqw5vs" style="animation-delay: -1.2s;"></path><path d="M 76 176 C 160 176, 250 120, 310 120" class="map-packet svelte-xqw5vs" style="animation-delay: -1.8s;"></path><path d="M 544 38 C 460 38, 370 120, 310 120" class="map-packet svelte-xqw5vs" style="animation-delay: -0.3s;"></path><path d="M 544 84 C 460 84, 370 120, 310 120" class="map-packet svelte-xqw5vs" style="animation-delay: -0.9s;"></path><path d="M 544 130 C 460 130, 370 120, 310 120" class="map-packet svelte-xqw5vs" style="animation-delay: -1.5s;"></path><path d="M 544 176 C 460 176, 370 120, 310 120" class="map-packet svelte-xqw5vs" style="animation-delay: -2.1s;"></path><path d="M 544 222 C 460 222, 370 120, 310 120" class="map-packet svelte-xqw5vs" style="animation-delay: -2.7s;"></path></svg> <div class="map-center svelte-xqw5vs"><img src="/logo-dark.png" alt="Signet" class="map-logo svelte-xqw5vs"/> <span class="map-tagline svelte-xqw5vs">Bring context to your agent</span></div> <div class="map-right map-stack svelte-xqw5vs"><div class="map-node node-drive svelte-xqw5vs"><!></div> <div class="map-node node-notion svelte-xqw5vs"><!></div> <div class="map-node node-nextcloud svelte-xqw5vs"><!></div> <div class="map-node node-postgres svelte-xqw5vs"><!></div> <div class="map-node node-supabase svelte-xqw5vs"><!></div> <div class="map-node node-x-bookmarks svelte-xqw5vs"><!></div></div> <div class="map-counts svelte-xqw5vs"><span class="svelte-xqw5vs"> </span><span class="svelte-xqw5vs"> </span></div></section> <section id="featured-sources" class="featured-panel svelte-xqw5vs" aria-label="Featured sources"><header class="section-label svelte-xqw5vs">Featured sources</header> <div></div> <footer class="svelte-xqw5vs"> </footer></section></main></div></div>');function el(T,c){Be(c,!0);let L=_(Hs([])),B=_(!0),k=_(!1),V=_(null),q=_(!1),A=_(""),K=_("all"),Y=_("obsidian"),O=_(!1),H=_(""),te=_("Obsidian Vault"),le=_(`**/.obsidian/**
1
+ import{p as Be,s as wa,c as Ae,f as _e,a as ba,n as Pe,b as i,d as De,r as fa,o as _,e as Hs,q as Js,i as e,af as Gs,v as d,j as l,t as n,l as t,ab as ma,A as ha,y as D,B as X,z as h,M as fe,k as I,D as ze,u as F,w as xa,I as Le,a9 as Zs,Z as Es,L as Za,m as w,ag as m,N as Os}from"./BCse5epf.js";import{I as _a,O as js,P as Us,w as Qs,Q as Ea,X as Oa,R as Ws,T as Xs,U as Ks,V as Ys}from"./CFdGC6PJ.js";import{C as $s}from"./DoMPYsG8.js";import{P as et}from"./CbmjOoz-.js";import{R as ja}from"./DiumYk9R.js";import{F as at}from"./gRICFZy6.js";import{F as st}from"./D5fuK7KZ.js";function tt(T,c){Be(c,!0);let L=fa(c,["$$slots","$$events","$$legacy"]);const B=[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M8 12h8"}],["path",{d:"M12 8v8"}]];_a(T,wa({name:"circle-plus"},()=>L,{get iconNode(){return B},children:(k,V)=>{var q=Ae(),A=_e(q);ba(A,()=>c.children??Pe),i(k,q)},$$slots:{default:!0}})),De()}function Ua(T,c){Be(c,!0);let L=fa(c,["$$slots","$$events","$$legacy"]);const B=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}],["path",{d:"M3 12A9 3 0 0 0 21 12"}]];_a(T,wa({name:"database"},()=>L,{get iconNode(){return B},children:(k,V)=>{var q=Ae(),A=_e(q);ba(A,()=>c.children??Pe),i(k,q)},$$slots:{default:!0}})),De()}function lt(T,c){Be(c,!0);let L=fa(c,["$$slots","$$events","$$legacy"]);const B=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12"}]];_a(T,wa({name:"link-2"},()=>L,{get iconNode(){return B},children:(k,V)=>{var q=Ae(),A=_e(q);ba(A,()=>c.children??Pe),i(k,q)},$$slots:{default:!0}})),De()}const z=(T,c=Pe)=>{var L=Ae(),B=_e(L);{var k=a=>{var o=rt();i(a,o)},V=a=>{var o=nt();i(a,o)},q=a=>{st(a,{})},A=a=>{var o=ot();i(a,o)},K=a=>{var o=it();i(a,o)},Y=a=>{var o=dt();i(a,o)},O=a=>{var o=vt();i(a,o)},H=a=>{var o=ct();i(a,o)},te=a=>{var o=pt();i(a,o)},le=a=>{var o=ut();i(a,o)},R=a=>{var o=gt();i(a,o)},y=a=>{var o=mt();i(a,o)},J=a=>{var o=ht();i(a,o)},j=a=>{var o=xt();i(a,o)},re=a=>{var o=wt();i(a,o)},ne=a=>{var o=bt();i(a,o)},Fe=a=>{var o=ft();i(a,o)},$=a=>{var o=_t();i(a,o)},Ve=a=>{var o=qt();i(a,o)},Re=a=>{var o=kt();i(a,o)},Ne=a=>{var o=yt();i(a,o)},qe=a=>{var o=Mt();i(a,o)},ke=a=>{var o=Ct();i(a,o)},Te=a=>{var o=St();i(a,o)};I(B,a=>{c()==="obsidian"?a(k):c()==="github"?a(V,1):c()==="folder"?a(q,2):c()==="csv"?a(A,3):c()==="postgres"?a(K,4):c()==="supabase"?a(Y,5):c()==="globe"?a(O,6):c()==="drive"?a(H,7):c()==="gmail"?a(te,8):c()==="nextcloud"?a(le,9):c()==="notion"?a(R,10):c()==="x-bookmarks"?a(y,11):c()==="discord"?a(J,12):c()==="telegram"?a(j,13):c()==="quickbooks"?a(re,14):c()==="polymarket"?a(ne,15):c()==="airtable"?a(Fe,16):c()==="go-high-level"?a($,17):c()==="clickup"?a(Ve,18):c()==="stripe"?a(Re,19):c()==="imap-email"?a(Ne,20):c()==="proton-mail"?a(qe,21):c()==="history"?a(ke,22):a(Te,-1)})}i(T,L)};var rt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo obsidian-logo svelte-xqw5vs"><path fill="#7C3AED" d="M19.355 18.538a68.967 68.959 0 0 0 1.858-2.954.81.81 0 0 0-.062-.9c-.516-.685-1.504-2.075-2.042-3.362-.553-1.321-.636-3.375-.64-4.377a1.707 1.707 0 0 0-.358-1.05l-3.198-4.064a3.744 3.744 0 0 1-.076.543c-.106.503-.307 1.004-.536 1.5-.134.29-.29.6-.446.914l-.31.626c-.516 1.068-.997 2.227-1.132 3.59-.124 1.26.046 2.73.815 4.481.128.011.257.025.386.044a6.363 6.363 0 0 1 3.326 1.505c.916.79 1.744 1.922 2.415 3.5zM8.199 22.569c.073.012.146.02.22.02.78.024 2.095.092 3.16.29.87.16 2.593.64 4.01 1.055 1.083.316 2.198-.548 2.355-1.664.114-.814.33-1.735.725-2.58l-.01.005c-.67-1.87-1.522-3.078-2.416-3.849a5.295 5.295 0 0 0-2.778-1.257c-1.54-.216-2.952.19-3.84.45.532 2.218.368 4.829-1.425 7.531zM5.533 9.938c-.023.1-.056.197-.098.29L2.82 16.059a1.602 1.602 0 0 0 .313 1.772l4.116 4.24c2.103-3.101 1.796-6.02.836-8.3-.728-1.73-1.832-3.081-2.55-3.831zM9.32 14.01c.615-.183 1.606-.465 2.74-.546-.705-1.79-.844-3.322-.71-4.565.157-1.46.686-2.69 1.214-3.756l.32-.633c.153-.303.3-.592.428-.867.266-.57.448-1.077.468-1.556.014-.343-.053-.69-.25-1.075L6.561 8.982c.713.753 1.901 2.196 2.757 4.044.145.313.279.642.4.985z" class="svelte-xqw5vs"></path></svg>'),nt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo github-logo svelte-xqw5vs"><path fill="currentColor" d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" class="svelte-xqw5vs"></path></svg>'),ot=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo csv-logo svelte-xqw5vs"><path fill="currentColor" d="M4 2h12l4 4v16H4z" opacity="0.18" class="svelte-xqw5vs"></path><path fill="none" stroke="currentColor" stroke-width="1.4" stroke-linejoin="miter" d="M4 2h12l4 4v16H4zM16 2v5h4M7 11h10M7 15h10M10 9v10M14 9v10" class="svelte-xqw5vs"></path></svg>'),it=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo postgres-logo svelte-xqw5vs"><path fill="#4169E1" d="M12 2C8.2 2 5.1 3.3 5.1 5v10.2c0 1.7 3.1 3 6.9 3s6.9-1.3 6.9-3V5c0-1.7-3.1-3-6.9-3Zm0 1.9c3 0 4.9.8 4.9 1.1S15 6.1 12 6.1 7.1 5.3 7.1 5 9 3.9 12 3.9Zm4.9 11.1c0 .4-1.9 1.2-4.9 1.2s-4.9-.8-4.9-1.2v-2.1c1.2.7 2.9 1.1 4.9 1.1s3.7-.4 4.9-1.1Zm0-4c0 .4-1.9 1.2-4.9 1.2S7.1 11.4 7.1 11V8.9C8.3 9.6 10 10 12 10s3.7-.4 4.9-1.1Z" class="svelte-xqw5vs"></path></svg>'),dt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo supabase-logo svelte-xqw5vs"><path fill="#3FCF8E" d="M11.9 1.036c-.015-.986-1.26-1.41-1.874-.637L.764 12.05C-.33 13.427.65 15.455 2.409 15.455h9.579l.113 7.51c.014.985 1.259 1.408 1.873.636l9.262-11.653c1.093-1.375.113-3.403-1.645-3.403h-9.642z" class="svelte-xqw5vs"></path></svg>'),vt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo mdn-logo svelte-xqw5vs"><path fill="#000000" d="m21.538 1.1-6.745 21.8h-2.77L18.77 1.1ZM24 1.1v21.8h-2.462V1.1Zm-12 0v21.8H9.538V1.1Zm-2.462 0L2.77 22.9H0L6.746 1.1Z" class="svelte-xqw5vs"></path></svg>'),ct=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo drive-logo svelte-xqw5vs"><path fill="#4285F4" d="M12.01 1.485c-2.082 0-3.754.02-3.743.047.01.02 1.708 3.001 3.774 6.62l3.76 6.574h3.76c2.081 0 3.753-.02 3.742-.047-.005-.02-1.708-3.001-3.775-6.62l-3.76-6.574zm-4.76 1.73a789.828 789.861 0 0 0-3.63 6.319L0 15.868l1.89 3.298 1.885 3.297 3.62-6.335 3.618-6.33-1.88-3.287C8.1 4.704 7.255 3.22 7.25 3.214zm2.259 12.653-.203.348c-.114.198-.96 1.672-1.88 3.287a423.93 423.948 0 0 1-1.698 2.97c-.01.026 3.24.042 7.222.042h7.244l1.796-3.157c.992-1.734 1.85-3.23 1.906-3.323l.104-.167h-7.249z" class="svelte-xqw5vs"></path></svg>'),pt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo gmail-logo svelte-xqw5vs"><path fill="#EA4335" d="M24 5.457v13.909c0 .904-.732 1.636-1.636 1.636h-3.819V11.73L12 16.64l-6.545-4.91v9.273H1.636A1.636 1.636 0 0 1 0 19.366V5.457c0-2.023 2.309-3.178 3.927-1.964L5.455 4.64 12 9.548l6.545-4.91 1.528-1.145C21.69 2.28 24 3.434 24 5.457z" class="svelte-xqw5vs"></path></svg>'),ut=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo nextcloud-logo svelte-xqw5vs"><path fill="#0082C9" d="M12.018 6.537c-2.5 0-4.6 1.712-5.241 4.015-.56-1.232-1.793-2.105-3.225-2.105A3.569 3.569 0 0 0 0 12a3.569 3.569 0 0 0 3.552 3.553c1.432 0 2.664-.874 3.224-2.106.641 2.304 2.742 4.016 5.242 4.016 2.487 0 4.576-1.693 5.231-3.977.569 1.21 1.783 2.067 3.198 2.067A3.568 3.568 0 0 0 24 12a3.569 3.569 0 0 0-3.553-3.553c-1.416 0-2.63.858-3.199 2.067-.654-2.284-2.743-3.978-5.23-3.977zm0 2.085c1.878 0 3.378 1.5 3.378 3.378 0 1.878-1.5 3.378-3.378 3.378A3.362 3.362 0 0 1 8.641 12c0-1.878 1.5-3.378 3.377-3.378zm-8.466 1.91c.822 0 1.467.645 1.467 1.468s-.644 1.467-1.467 1.468A1.452 1.452 0 0 1 2.085 12c0-.823.644-1.467 1.467-1.467zm16.895 0c.823 0 1.468.645 1.468 1.468s-.645 1.468-1.468 1.468A1.452 1.452 0 0 1 18.98 12c0-.823.644-1.467 1.467-1.467z" class="svelte-xqw5vs"></path></svg>'),gt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo notion-logo svelte-xqw5vs"><path fill="#000000" d="M4.459 4.208c.746.606 1.026.56 2.428.466l13.215-.793c.28 0 .047-.28-.046-.326L17.86 1.968c-.42-.326-.981-.7-2.055-.607L3.01 2.295c-.466.046-.56.28-.374.466zm.793 3.08v13.904c0 .747.373 1.027 1.214.98l14.523-.84c.841-.046.935-.56.935-1.167V6.354c0-.606-.233-.933-.748-.887l-15.177.887c-.56.047-.747.327-.747.933zm14.337.745c.093.42 0 .84-.42.888l-.7.14v10.264c-.608.327-1.168.514-1.635.514-.748 0-.935-.234-1.495-.933l-4.577-7.186v6.952L12.21 19s0 .84-1.168.84l-3.222.186c-.093-.186 0-.653.327-.746l.84-.233V9.854L7.822 9.76c-.094-.42.14-1.026.793-1.073l3.456-.233 4.764 7.279v-6.44l-1.215-.139c-.093-.514.28-.887.747-.933zM1.936 1.035l13.31-.98c1.634-.14 2.055-.047 3.082.7l4.249 2.986c.7.513.934.653.934 1.213v16.378c0 1.026-.373 1.634-1.68 1.726l-15.458.934c-.98.047-1.448-.093-1.962-.747l-3.129-4.06c-.56-.747-.793-1.306-.793-1.96V2.667c0-.839.374-1.54 1.447-1.632z" class="svelte-xqw5vs"></path></svg>'),mt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo x-logo svelte-xqw5vs"><path fill="currentColor" d="M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z" class="svelte-xqw5vs"></path></svg>'),ht=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo discord-logo svelte-xqw5vs"><path fill="#5865F2" d="M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z" class="svelte-xqw5vs"></path></svg>'),xt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo telegram-logo svelte-xqw5vs"><path fill="#26A5E4" d="M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z" class="svelte-xqw5vs"></path></svg>'),wt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo quickbooks-logo svelte-xqw5vs"><path fill="#2CA01C" d="M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm.642 4.1335c.9554 0 1.7296.776 1.7296 1.7332v9.0667h1.6c1.614 0 2.9275-1.3156 2.9275-2.933 0-1.6173-1.3136-2.9333-2.9276-2.9333h-.6654V7.3334h.6654c2.5722 0 4.6577 2.0897 4.6577 4.667 0 2.5774-2.0855 4.6666-4.6577 4.6666H12.642zM7.9837 7.333h3.3291v12.533c-.9555 0-1.73-.7759-1.73-1.7332V9.0662H7.9837c-1.6146 0-2.9277 1.316-2.9277 2.9334 0 1.6175 1.3131 2.9333 2.9277 2.9333h.6654v1.7332h-.6654c-2.5725 0-4.6577-2.0892-4.6577-4.6665 0-2.5771 2.0852-4.6666 4.6577-4.6666Z" class="svelte-xqw5vs"></path></svg>'),bt=m('<svg viewBox="0 0 2184 2184" role="img" aria-hidden="true" class="brand-logo polymarket-logo svelte-xqw5vs"><g transform="translate(0 2184) scale(0.1 -0.1)" class="svelte-xqw5vs"><path fill="currentColor" d="M10445 15709 c-2667 -764 -4860 -1391 -4872 -1394 l-23 -5 0 -3345 0 -3344 23 -7 c79 -25 9722 -2782 9724 -2780 2 1 2 2761 1 6133 l-3 6129 -4850 -1387z m3915 -1910 c0 -1939 -1 -2041 -17 -2037 -160 43 -7100 2032 -7105 2037 -7 6 7068 2037 7105 2040 16 1 17 -102 17 -2040z m-4263 -1806 c1976 -565 3591 -1028 3590 -1029 -4 -4 -7141 -2045 -7169 -2051 l-28 -5 0 2056 c0 1131 3 2056 8 2056 4 0 1623 -462 3599 -1027z m4263 -3864 l0 -2041 -27 5 c-16 3 -1617 460 -3560 1016 -1942 556 -3535 1011 -3539 1011 -4 0 -4 3 0 7 5 6 7095 2040 7119 2042 4 1 7 -918 7 -2040z" class="svelte-xqw5vs"></path></g></svg>'),ft=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo airtable-logo svelte-xqw5vs"><path fill="#18BFFF" d="M11.992 1.966c-.434 0-.87.086-1.28.257L1.779 5.917c-.503.208-.49.908.012 1.116l8.982 3.558a3.266 3.266 0 0 0 2.454 0l8.982-3.558c.503-.196.503-.908.012-1.116l-8.957-3.694a3.255 3.255 0 0 0-1.272-.257zM23.4 8.056a.589.589 0 0 0-.222.045l-10.012 3.877a.612.612 0 0 0-.38.564v8.896a.6.6 0 0 0 .821.552L23.62 18.1a.583.583 0 0 0 .38-.551V8.653a.6.6 0 0 0-.6-.596zM.676 8.095a.644.644 0 0 0-.48.19C.086 8.396 0 8.53 0 8.69v8.355c0 .442.515.737.908.54l6.27-3.006.307-.147 2.969-1.436c.466-.22.43-.908-.061-1.092L.883 8.138a.57.57 0 0 0-.207-.044z" class="svelte-xqw5vs"></path></svg>'),_t=w('<img src="/source-logos/highlevel-official-help-logo.png" alt="" aria-hidden="true" class="brand-logo ghl-logo svelte-xqw5vs"/>'),qt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo clickup-logo svelte-xqw5vs"><path fill="#7B68EE" d="M2 18.439l3.69-2.828c1.961 2.56 4.044 3.739 6.363 3.739 2.307 0 4.33-1.166 6.203-3.704L22 18.405C19.298 22.065 15.941 24 12.053 24 8.178 24 4.788 22.078 2 18.439zM12.04 6.15l-6.568 5.66-3.036-3.52L12.055 0l9.543 8.296-3.05 3.509z" class="svelte-xqw5vs"></path></svg>'),kt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo stripe-logo svelte-xqw5vs"><path fill="#635BFF" d="M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305h.003z" class="svelte-xqw5vs"></path></svg>'),yt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo imap-logo svelte-xqw5vs"><path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linejoin="miter" d="M3 6h18v12H3zM3 7l9 6 9-6" class="svelte-xqw5vs"></path><path fill="currentColor" d="M6 15h2v1.5H6zm3.5 0h2v1.5h-2zm3.5 0h2v1.5h-2zm3.5 0h2v1.5h-2z" class="svelte-xqw5vs"></path></svg>'),Mt=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo proton-logo svelte-xqw5vs"><path fill="#6D4AFF" d="m15.24 8.998 3.656-3.073v15.81H2.482C1.11 21.735 0 20.609 0 19.223V6.944l7.58 6.38a2.186 2.186 0 0 0 2.871-.042l4.792-4.284h-.003zm-5.456 3.538 1.809-1.616a2.438 2.438 0 0 1-1.178-.533L.905 2.395A.552.552 0 0 0 0 2.826v2.811l8.226 6.923a1.186 1.186 0 0 0 1.558-.024zM23.871 2.463a.551.551 0 0 0-.776-.068l-3.199 2.688v16.653h1.623c1.371 0 2.481-1.127 2.481-2.513V2.824a.551.551 0 0 0-.129-.36z" class="svelte-xqw5vs"></path></svg>'),Ct=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo chrome-logo svelte-xqw5vs"><path fill="#4285F4" d="M12 0C8.21 0 4.831 1.757 2.632 4.501l3.953 6.848A5.454 5.454 0 0 1 12 6.545h10.691A12 12 0 0 0 12 0zM1.931 5.47A11.943 11.943 0 0 0 0 12c0 6.012 4.42 10.991 10.189 11.864l3.953-6.847a5.45 5.45 0 0 1-6.865-2.29zm13.342 2.166a5.446 5.446 0 0 1 1.45 7.09l.002.001h-.002l-5.344 9.257c.206.01.413.016.621.016 6.627 0 12-5.373 12-12 0-1.54-.29-3.011-.818-4.364zM12 16.364a4.364 4.364 0 1 1 0-8.728 4.364 4.364 0 0 1 0 8.728Z" class="svelte-xqw5vs"></path></svg>'),St=m('<svg viewBox="0 0 24 24" role="img" aria-hidden="true" class="brand-logo linear-logo svelte-xqw5vs"><path fill="#5E6AD2" d="M2.886 4.18A11.982 11.982 0 0 1 11.99 0C18.624 0 24 5.376 24 12.009c0 3.64-1.62 6.903-4.18 9.105L2.887 4.18ZM1.817 5.626l16.556 16.556c-.524.33-1.075.62-1.65.866L.951 7.277c.247-.575.537-1.126.866-1.65ZM.322 9.163l14.515 14.515c-.71.172-1.443.282-2.195.322L0 11.358a12 12 0 0 1 .322-2.195Zm-.17 4.862 9.823 9.824a12.02 12.02 0 0 1-9.824-9.824Z" class="svelte-xqw5vs"></path></svg>'),It=w('<button type="button"> </button>'),zt=w('<em class="svelte-xqw5vs">Planned</em>'),Lt=w('<p class="connected-loading svelte-xqw5vs">Checking source registry...</p>'),Bt=w('<code class="source-index-progress__path svelte-xqw5vs"> </code>'),At=w('<div class="source-index-progress svelte-xqw5vs"><div class="source-index-progress__head svelte-xqw5vs"><span class="svelte-xqw5vs"> </span> <strong class="svelte-xqw5vs"> </strong></div> <div class="source-index-progress__bar svelte-xqw5vs" role="progressbar" aria-valuemin="0" aria-valuemax="100"><span class="svelte-xqw5vs"></span></div> <!></div>'),Pt=w('<div class="exclude-summary svelte-xqw5vs"><span class="svelte-xqw5vs">Ignoring</span> <code class="svelte-xqw5vs"> </code></div>'),Dt=w('<span class="spin svelte-xqw5vs"><!></span>'),Ft=w('<article class="connected-row connected-row--inline svelte-xqw5vs"><div class="connected-main svelte-xqw5vs"><div class="connected-title-row svelte-xqw5vs"><strong class="svelte-xqw5vs"> </strong> <span class="status-badge status-badge--connected svelte-xqw5vs">Connected</span></div> <code class="svelte-xqw5vs"> </code></div> <ul class="svelte-xqw5vs"><li class="svelte-xqw5vs"><!> </li> <li class="svelte-xqw5vs"><!> </li> <li class="svelte-xqw5vs"><!> </li></ul> <!> <!> <button class="disconnect-button svelte-xqw5vs" type="button"><!> </button></article>'),Vt=w('<div class="connected-list connected-list--inline svelte-xqw5vs"></div>'),Rt=w('<button class="connect-button svelte-xqw5vs" type="button"><!> Connect</button>'),Nt=w('<p class="field-error svelte-xqw5vs">Vault folder is required.</p>'),Tt=w('<span class="spin svelte-xqw5vs"><!></span>'),Ht=w('<form class="connect-form svelte-xqw5vs"><label class="svelte-xqw5vs"><span class="svelte-xqw5vs">Display name</span> <input placeholder="Obsidian Vault" class="svelte-xqw5vs"/></label> <label class="svelte-xqw5vs"><span class="svelte-xqw5vs">Vault folder</span> <div class="path-row svelte-xqw5vs"><input placeholder="Choose your vault folder..." class="svelte-xqw5vs"/> <button type="button" class="svelte-xqw5vs"><!> </button></div></label> <!> <label class="svelte-xqw5vs"><span class="svelte-xqw5vs">Ignore globs</span> <textarea rows="5" placeholder="**/.*/** **/node_modules/**" class="svelte-xqw5vs"></textarea> <small class="field-hint svelte-xqw5vs">One glob per line or comma. Default ignores Obsidian internals, trash, Hermes metadata, hidden dot-folders, and hidden files.</small></label> <button class="connect-button svelte-xqw5vs" type="submit"><!> </button></form>'),Jt=w("<!> <!>",1),Gt=w('<p class="form-status form-status--info svelte-xqw5vs">Planned source. Not connectable yet.</p>'),Zt=w('<p class="form-status form-status--info svelte-xqw5vs"> </p>'),Et=w('<p class="form-status form-status--error svelte-xqw5vs"> </p>'),Ot=w('<article><button type="button"><span><!></span> <span class="connector-copy svelte-xqw5vs"><strong class="svelte-xqw5vs"> </strong> <small class="svelte-xqw5vs"> </small></span> <span><!></span></button> <div><p class="connector-description svelte-xqw5vs"> </p> <!> <!> <!></div></article>'),jt=w('<div class="sources-tab svelte-xqw5vs"><div class="sources-shell svelte-xqw5vs"><main class="sources-main svelte-xqw5vs"><header class="sources-masthead svelte-xqw5vs"><span class="eyebrow svelte-xqw5vs">Sources</span> <h1 class="svelte-xqw5vs">Connect knowledge bases</h1> <p class="svelte-xqw5vs">Bring external context into Signet while preserving the original source of truth.</p></header> <section class="source-toolbar svelte-xqw5vs" aria-label="Source filters"><label class="search-box svelte-xqw5vs" for="source-search"><span class="svelte-xqw5vs"><!></span> <input id="source-search" placeholder="Search sources" class="svelte-xqw5vs"/></label> <div class="filter-tabs svelte-xqw5vs" role="group" aria-label="Source type filters"></div> <div class="read-first svelte-xqw5vs"><span class="svelte-xqw5vs">Read-only first</span> <span class="switch svelte-xqw5vs" aria-hidden="true"><span class="svelte-xqw5vs"></span></span> <!></div></section> <section class="recall-map svelte-xqw5vs" aria-label="Source recall diagram"><div class="map-grid svelte-xqw5vs" aria-hidden="true"></div> <div class="map-left map-stack svelte-xqw5vs"><div class="map-node node-obsidian svelte-xqw5vs"><!></div> <div class="map-node node-github svelte-xqw5vs"><!></div> <div class="map-node node-folder svelte-xqw5vs"><!></div> <div class="map-node node-csv svelte-xqw5vs"><!></div> <div class="map-node node-web svelte-xqw5vs"><!></div></div> <svg class="map-connections svelte-xqw5vs" viewBox="0 0 620 240" preserveAspectRatio="none" aria-hidden="true"><defs class="svelte-xqw5vs"><filter id="wire-glow" x="-20%" y="-20%" width="140%" height="140%" class="svelte-xqw5vs"><feGaussianBlur stdDeviation="1.5" result="blur" class="svelte-xqw5vs"></feGaussianBlur><feMerge class="svelte-xqw5vs"><feMergeNode in="blur" class="svelte-xqw5vs"></feMergeNode><feMergeNode in="SourceGraphic" class="svelte-xqw5vs"></feMergeNode></feMerge></filter></defs><path d="M 76 38 C 160 38, 250 120, 310 120" class="map-wire svelte-xqw5vs"></path><path d="M 76 84 C 160 84, 250 120, 310 120" class="map-wire svelte-xqw5vs"></path><path d="M 76 130 C 160 130, 250 120, 310 120" class="map-wire svelte-xqw5vs"></path><path d="M 76 176 C 160 176, 250 120, 310 120" class="map-wire svelte-xqw5vs"></path><path d="M 544 38 C 460 38, 370 120, 310 120" class="map-wire svelte-xqw5vs"></path><path d="M 544 84 C 460 84, 370 120, 310 120" class="map-wire svelte-xqw5vs"></path><path d="M 544 130 C 460 130, 370 120, 310 120" class="map-wire svelte-xqw5vs"></path><path d="M 544 176 C 460 176, 370 120, 310 120" class="map-wire svelte-xqw5vs"></path><path d="M 544 222 C 460 222, 370 120, 310 120" class="map-wire svelte-xqw5vs"></path><path d="M 76 38 C 160 38, 250 120, 310 120" class="map-packet svelte-xqw5vs" style="animation-delay: 0s;"></path><path d="M 76 84 C 160 84, 250 120, 310 120" class="map-packet svelte-xqw5vs" style="animation-delay: -0.6s;"></path><path d="M 76 130 C 160 130, 250 120, 310 120" class="map-packet svelte-xqw5vs" style="animation-delay: -1.2s;"></path><path d="M 76 176 C 160 176, 250 120, 310 120" class="map-packet svelte-xqw5vs" style="animation-delay: -1.8s;"></path><path d="M 544 38 C 460 38, 370 120, 310 120" class="map-packet svelte-xqw5vs" style="animation-delay: -0.3s;"></path><path d="M 544 84 C 460 84, 370 120, 310 120" class="map-packet svelte-xqw5vs" style="animation-delay: -0.9s;"></path><path d="M 544 130 C 460 130, 370 120, 310 120" class="map-packet svelte-xqw5vs" style="animation-delay: -1.5s;"></path><path d="M 544 176 C 460 176, 370 120, 310 120" class="map-packet svelte-xqw5vs" style="animation-delay: -2.1s;"></path><path d="M 544 222 C 460 222, 370 120, 310 120" class="map-packet svelte-xqw5vs" style="animation-delay: -2.7s;"></path></svg> <div class="map-center svelte-xqw5vs"><img src="/logo-dark.png" alt="Signet" class="map-logo svelte-xqw5vs"/> <span class="map-tagline svelte-xqw5vs">Bring context to your agent</span></div> <div class="map-right map-stack svelte-xqw5vs"><div class="map-node node-drive svelte-xqw5vs"><!></div> <div class="map-node node-notion svelte-xqw5vs"><!></div> <div class="map-node node-nextcloud svelte-xqw5vs"><!></div> <div class="map-node node-postgres svelte-xqw5vs"><!></div> <div class="map-node node-supabase svelte-xqw5vs"><!></div> <div class="map-node node-x-bookmarks svelte-xqw5vs"><!></div></div> <div class="map-counts svelte-xqw5vs"><span class="svelte-xqw5vs"> </span><span class="svelte-xqw5vs"> </span></div></section> <section id="featured-sources" class="featured-panel svelte-xqw5vs" aria-label="Featured sources"><header class="section-label svelte-xqw5vs">Featured sources</header> <div></div> <footer class="svelte-xqw5vs"> </footer></section></main></div></div>');function el(T,c){Be(c,!0);let L=_(Hs([])),B=_(!0),k=_(!1),V=_(null),q=_(!1),A=_(""),K=_("all"),Y=_("obsidian"),O=_(!1),H=_(""),te=_("Obsidian Vault"),le=_(`**/.obsidian/**
2
2
  **/.trash/**
3
3
  **/.hermes/**
4
4
  **/.*/**
@@ -1 +1 @@
1
- import{bi as Te,q as Ge,o as A,i as U,v as T,R as oe,bj as kt,aL as Et}from"./BCse5epf.js";class Pe{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ie{constructor(t,n){try{new Headers({location:n})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(n)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=n}}class Oe extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function St(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Rt(e){return e.split("%25").map(decodeURI).join("%25")}function xt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ye({href:e}){return e.split("#")[0]}function Lt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return(c,...d)=>(n(c),i[o](c,...d));t();const l=Reflect.get(i,o);return typeof l=="function"?l.bind(i):l}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return t(),e[i]},enumerable:!0,configurable:!0});return a}function P(){}function At(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function Ut(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const Tt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&W.delete($e(e)),Tt(e,t));const W=new Map;function Pt(e,t){const n=$e(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&W.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=Ut(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function It(e,t,n){if(W.size>0){const r=$e(e,n),a=W.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);W.delete(r)}}return window.fetch(t,n)}function $e(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${At(...a)}"]`}return r}const Ot=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function $t(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${jt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return be(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return be(String.fromCharCode(...l.slice(2).split("-").map(v=>parseInt(v,16))));const d=Ot.exec(l),[,p,u,f,h]=d;return t.push({name:f,matcher:h,optional:!!p,rest:!!u,chained:u?c===1&&i[0]==="":!1}),u?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return be(l)}).join("")}).join("")}/?$`),params:t}}function Ct(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function jt(e){return e.slice(1).split("/").filter(Ct)}function Nt(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<t.length;o+=1){const l=t[o];let c=a[o-i];if(l.chained&&l.rest&&i&&(c=a.slice(o-i,o+1).filter(d=>d).join("/"),i=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){r[l.name]=c;const d=t[o+1],p=a[o+1];d&&!d.rest&&d.optional&&p&&l.chained&&(i=0),!d&&!p&&Object.keys(r).length===s.length&&(i=0);continue}if(l.optional&&l.chained){i++;continue}return}if(!i)return r}function be(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function qt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[l,c,d]])=>{const{pattern:p,params:u}=$t(o),f={id:o,exec:h=>{const v=p.exec(h);if(v)return Nt(v,u,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...c||[]].map(i),leaf:s(l)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(o){const l=o<0;return l&&(o=~o),[l,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function et(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Je(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const L=globalThis.__sveltekit_143nq0r?.base??"",Dt=globalThis.__sveltekit_143nq0r?.assets??L??"",Vt="1778692939933",tt="sveltekit:snapshot",nt="sveltekit:scroll",Ce="sveltekit:states",rt="sveltekit:pageurl",D="sveltekit:history",K="sveltekit:navigation",q={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},je=location.origin;function Ne(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function V(){return{x:pageXOffset,y:pageYOffset}}function B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const We={...q,"":q.hover};function at(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function ot(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=at(e)}}function Re(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||ge(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),i=r?.origin===je&&e.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function se(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=B(o,"preload-code")),a===null&&(a=B(o,"preload-data")),t===null&&(t=B(o,"keepfocus")),n===null&&(n=B(o,"noscroll")),s===null&&(s=B(o,"reload")),i===null&&(i=B(o,"replacestate")),o=at(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:We[r??"off"],preload_data:We[a??"off"],keepfocus:l(t),noscroll:l(n),reload:l(s),replace_state:l(i)}}function Ye(e){const t=Te(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(l=>{(o===void 0||n&&l!==o)&&i(o=l)})}return{notify:r,set:a,subscribe:s}}const st={v:P};function Bt(){const{set:e,subscribe:t}=Te(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Dt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==Vt;return i&&(e(!0),st.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function ge(e,t,n){return e.origin!==je||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function pn(e){}const it=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...it];const Ht=new Set([...it]);[...Ht];function Kt(e){return e.filter(t=>t!=null)}function qe(e){return e instanceof Pe||e instanceof Oe?e.status:500}function Mt(e){return e instanceof Oe?e.text:"Internal Error"}let y,z,ke;const Ft=Ge.toString().includes("$$")||/function \w+\(\) \{\}/.test(Ge.toString()),ze="a:";Ft?(y={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(ze)},z={current:null},ke={current:!1}):(y=new class{#e=A({});get data(){return U(this.#e)}set data(t){T(this.#e,t)}#t=A(null);get form(){return U(this.#t)}set form(t){T(this.#t,t)}#n=A(null);get error(){return U(this.#n)}set error(t){T(this.#n,t)}#r=A({});get params(){return U(this.#r)}set params(t){T(this.#r,t)}#a=A({id:null});get route(){return U(this.#a)}set route(t){T(this.#a,t)}#o=A({});get state(){return U(this.#o)}set state(t){T(this.#o,t)}#s=A(-1);get status(){return U(this.#s)}set status(t){T(this.#s,t)}#i=A(new URL(ze));get url(){return U(this.#i)}set url(t){T(this.#i,t)}},z=new class{#e=A(null);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},ke=new class{#e=A(!1);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},st.v=()=>ke.current=!0);function lt(e){Object.assign(y,e)}const Xe={spanContext(){return Gt},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Gt={traceId:"",spanId:"",traceFlags:0},Jt=Et??(e=>e()),Wt=new Set(["icon","shortcut icon","apple-touch-icon"]);let G=null;const N=et(nt)??{},X=et(tt)??{},j={url:Ye({}),page:Ye({}),navigating:Te(null),updated:Bt()};function De(e){N[e]=V()}function Yt(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;X[n];)delete X[n],n+=1}function Q(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(P)}async function ct(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}let Ve,xe,ie,I,Le,b;const le=[],ce=[];let x=null;function Z(){x?.fork?.then(e=>e?.discard()),x=null}const ae=new Map,ut=new Set,zt=new Set,Y=new Set;let m={branch:[],error:null,url:null,nav:null},ft=!1,ue=!1,Qe=!0,ee=!1,J=!1,dt=!1,ne=!1,_e,w,R,O;const fe=new Set;let Ee;const de=new Map;async function vn(e,t,n){globalThis.__sveltekit_143nq0r&&(globalThis.__sveltekit_143nq0r.query,globalThis.__sveltekit_143nq0r.prerender),document.URL!==location.href&&(location.href=location.href),b=e,await e.hooks.init?.(),Ve=qt(e),I=document.documentElement,Le=t,xe=e.nodes[0],ie=e.nodes[1],xe(),ie(),w=history.state?.[D],R=history.state?.[K],w||(w=R=Date.now(),history.replaceState({...history.state,[D]:w,[K]:R},""));const r=N[w];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await cn(Le,n)):(await H({type:"enter",url:Ne(b.hash?dn(new URL(location.href)):location.href),replace_state:!0}),a()),ln()}async function Xt(e=!0,t=!0){if(await(Ee||=Promise.resolve()),!Ee)return;Ee=null;const n=O={},r=await re(m.url,!0);if(Z(),ne&&de.forEach(a=>{a.forEach(({resource:s})=>{s.refresh?.()})}),e){const a=y.state,s=r&&await Ke(r);if(!s||n!==O)return;if(s.type==="redirect")return gt(new URL(s.location,m.url).href,{replaceState:!0},1,n);t||(s.props.page.state=a),lt(s.props.page),m={...s.state,nav:m.nav},Ae(),_e.$set(s.props)}else Ae();await Promise.all([...de.values()].flatMap(a=>[...a.values()].map(({resource:s})=>s))).catch(P)}function Ae(){le.length=0,ne=!1}function ht(e){ce.some(t=>t?.snapshot)&&(X[e]=ce.map(t=>t?.snapshot?.capture()))}function pt(e){X[e]?.forEach((t,n)=>{ce[n]?.snapshot?.restore(t)})}function Ze(){De(w),Je(nt,N),ht(R),Je(tt,X)}async function gt(e,t,n,r){let a;t.invalidateAll&&Z(),await H({type:"goto",url:Ne(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(ne=!0,a=[],de.forEach((s,i)=>{for(const o of s.keys())a.push(i+"/"+o)})),t.invalidate&&t.invalidate.forEach(sn)}}),t.invalidateAll&&oe().then(oe).then(()=>{de.forEach((s,i)=>{s.forEach(({resource:o},l)=>{a?.includes(i+"/"+l)&&o.refresh?.()})})})}async function Qt(e){if(e.id!==x?.id){Z();const t={};fe.add(t),x={id:e.id,token:t,promise:Ke({...e,preload:t}).then(n=>(fe.delete(t),n.type==="loaded"&&n.state.error&&Z(),n)),fork:null}}return x.promise}async function Se(e){const t=(await re(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function _t(e,t,n){const r={params:m.params,route:{id:m.route?.id??null},url:new URL(location.href)};m={...e.state,nav:r};const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(y,e.props.page),_e=new b.root({target:t,props:{...e.props,stores:j,components:ce},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),pt(R),n){const s={from:null,to:{...r,scroll:N[w]??V()},willUnload:!1,type:"enter",complete:Promise.resolve()};Y.forEach(i=>i(s))}ue=!0}async function he({url:e,params:t,branch:n,errors:r,status:a,error:s,route:i,form:o}){let l="never";if(L&&(e.pathname===L||e.pathname===L+"/"))l="always";else for(const h of n)h?.slash!==void 0&&(l=h.slash);e.pathname=St(e.pathname,l),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:s,route:i},props:{constructors:Kt(n).map(h=>h.node.component),page:me(y)}};o!==void 0&&(c.props.form=o);let d={},p=!y,u=0;for(let h=0;h<Math.max(n.length,m.branch.length);h+=1){const v=n[h],_=m.branch[h];v?.data!==_?.data&&(p=!0),v&&(d={...d,...v.data},p&&(c.props[`data_${u}`]=d),u+=1)}return(!m.url||e.href!==m.url.href||m.error!==s||o!==void 0&&o!==y.form||p)&&(c.props.page={error:s,params:t,route:{id:i?.id??null},state:{},status:a,url:new URL(e),form:o??null,data:p?d:y.data}),c}async function Be({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){let i=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(c.universal?.load){let d=function(...u){for(const f of u){const{href:h}=new URL(f,n);l.dependencies.add(h)}};const p={tracing:{enabled:!1,root:Xe,current:Xe},route:new Proxy(a,{get:(u,f)=>(o&&(l.route=!0),u[f])}),params:new Proxy(r,{get:(u,f)=>(o&&l.params.add(f),u[f])}),data:s?.data??null,url:Lt(n,()=>{o&&(l.url=!0)},u=>{o&&l.search_params.add(u)},b.hash),async fetch(u,f){u instanceof Request&&(f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u?.headers:void 0,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...f});const{resolved:h,promise:v}=mt(u,f,n);return o&&d(h.href),v},setHeaders:P,depends:d,parent(){return o&&(l.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};i=await c.universal.load.call(null,p)??null}return{node:c,loader:e,server:s,universal:c.universal?.load?{type:"data",data:i,uses:l}:null,data:i??s?.data??null,slash:c.universal?.trailingSlash??s?.slash}}function mt(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=ue?It(r,a.href,t):Pt(r,t);return{resolved:a,promise:s}}function Zt(e,t,n,r,a,s){if(ne)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==m.params[i])return!0;for(const i of a.dependencies)if(le.some(o=>o(new URL(i))))return!0;return!1}function He(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function en(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function tn({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:me(y),constructors:[]}}}async function Ke({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(x?.id===e)return fe.delete(x.token),x.promise;const{errors:i,layouts:o,leaf:l}=a,c=[...o,l];i.forEach(_=>_?.().catch(P)),c.forEach(_=>_?.[1]().catch(P));const d=m.url?e!==pe(m.url):!1,p=m.route?a.id!==m.route.id:!1,u=en(m.url,n);let f=!1;const h=c.map(async(_,g)=>{if(!_)return;const k=m.branch[g];return _[1]===k?.loader&&!Zt(f,p,d,u,k.universal?.uses,r)?k:(f=!0,Be({loader:_[1],url:n,params:r,route:a,parent:async()=>{const $={};for(let C=0;C<g;C+=1)Object.assign($,(await h[C])?.data);return $},server_data_node:He(_[0]?{type:"skip"}:null,_[0]?k?.server:void 0)}))});for(const _ of h)_.catch(P);const v=[];for(let _=0;_<c.length;_+=1)if(c[_])try{v.push(await h[_])}catch(g){if(g instanceof Ie)return{type:"redirect",location:g.location};if(fe.has(s))return tn({error:await te(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let k=qe(g),S;if(g instanceof Pe)S=g.body;else{if(await j.updated.check())return await ct(),await Q(n);S=await te(g,{params:r,url:n,route:{id:a.id}})}const $=await nn(_,v,i);return $?he({url:n,params:r,branch:v.slice(0,$.idx).concat($.node),errors:i,status:k,error:S,route:a}):await wt(n,{id:a.id},S,k)}else v.push(void 0);return he({url:n,params:r,branch:v,errors:i,status:200,error:null,route:a,form:t?void 0:null})}async function nn(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Me({status:e,error:t,url:n,route:r}){const a={};let s=null;try{const i=await Be({loader:xe,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:He(s)}),o={node:await ie(),loader:ie,universal:null,server:null,data:null};return he({url:n,params:a,branch:[i,o],status:e,error:t,errors:[],route:null})}catch(i){if(i instanceof Ie)return gt(new URL(i.location,location.href),{},0);throw i}}async function rn(e){const t=e.href;if(ae.has(t))return ae.get(t);let n;try{const r=(async()=>{let a=await b.hooks.reroute({url:new URL(e),fetch:async(s,i)=>mt(s,i,e).promise})??e;if(typeof a=="string"){const s=new URL(e);b.hash?s.hash=a:s.pathname=a,a=s}return a})();ae.set(t,r),n=await r}catch{ae.delete(t);return}return n}async function re(e,t){if(e&&!ge(e,L,b.hash)){const n=await rn(e);if(!n)return;const r=an(n);for(const a of Ve){const s=a.exec(r);if(s)return{id:pe(e),invalidating:t,route:a,params:xt(s),url:e}}}}function an(e){return Rt(b.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function pe(e){return(b.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function vt({url:e,type:t,intent:n,delta:r,event:a,scroll:s}){let i=!1;const o=Fe(m,n,e,t,s??null);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const l={...o.navigation,cancel:()=>{i=!0,o.reject(new Error("navigation cancelled"))}};return ee||ut.forEach(c=>c(l)),i?null:o}async function H({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:l={},accept:c=P,block:d=P,event:p}){const u=O;O=l;const f=await re(t,!1),h=e==="enter"?Fe(m,f,t,e):vt({url:t,type:e,delta:n?.delta,intent:f,scroll:n?.scroll,event:p});if(!h){d(),O===l&&(O=u);return}const v=w,_=R;c(),ee=!0,ue&&h.navigation.type!=="enter"&&j.navigating.set(z.current=h.navigation);let g=f&&await Ke(f);if(!g){if(ge(t,L,b.hash))return await Q(t,s);g=await wt(t,{id:null},await te(new Oe(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=f?.url||t,O!==l)return h.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(o<20){await H({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i,redirect_count:o+1,nav_token:l}),h.fulfil(void 0);return}g=await Me({status:500,error:await te(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await j.updated.check()&&(await ct(),await Q(t,s));if(Ae(),De(v),ht(_),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),i=n?n.state:i,!n){const E=s?0:1,M={[D]:w+=E,[K]:R+=E,[Ce]:i};(s?history.replaceState:history.pushState).call(history,M,"",t),s||Yt(w,R)}const k=f&&x?.id===f.id?x.fork:null;x?.fork&&!k&&Z(),x=null,g.props.page.state=i;let S;if(ue){const E=(await Promise.all(Array.from(zt,F=>F(h.navigation)))).filter(F=>typeof F=="function");if(E.length>0){let F=function(){E.forEach(we=>{Y.delete(we)})};E.push(F),E.forEach(we=>{Y.add(we)})}const M=h.navigation.to;m={...g.state,nav:{params:M.params,route:M.route,url:M.url}},g.props.page&&(g.props.page.url=t);const ve=k&&await k;ve?S=ve.commit():(G=null,_e.$set(g.props),G&&Object.assign(g.props.page,G),lt(g.props.page),S=kt?.()),dt=!0}else await _t(g,Le,!1);const{activeElement:$}=document;await S,await oe(),await oe();let C=null;if(Qe){const E=n?n.scroll:a?V():null;E?scrollTo(E.x,E.y):(C=t.hash&&document.getElementById(yt(t)))?C.scrollIntoView():scrollTo(0,0)}const bt=document.activeElement!==$&&document.activeElement!==document.body;!r&&!bt&&fn(t,!C),Qe=!0,g.props.page&&(G&&Object.assign(g.props.page,G),Object.assign(y,g.props.page)),ee=!1,e==="popstate"&&pt(R),h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=V()),Y.forEach(E=>E(h.navigation)),j.navigating.set(z.current=null)}async function wt(e,t,n,r,a){return e.origin===je&&e.pathname===location.pathname&&!ft?await Me({status:r,error:n,url:e,route:t}):await Q(e,a)}function on(){let e,t={element:void 0,href:void 0},n;I.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(e),e=setTimeout(()=>{s(l,q.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],q.tap)}I.addEventListener("mousedown",r),I.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(Se(new URL(l.target.href)),a.unobserve(l.target))},{threshold:0});async function s(o,l){const c=ot(o,I),d=c===t.element&&c?.href===t.href&&l>=n;if(!c||d)return;const{url:p,external:u,download:f}=Re(c,L,b.hash);if(u||f)return;const h=se(c),v=p&&pe(m.url)===pe(p);if(!(h.reload||v))if(l<=h.preload_data){t={element:c,href:c.href},n=q.tap;const _=await re(p,!1);if(!_)return;Qt(_)}else l<=h.preload_code&&(t={element:c,href:c.href},n=l,Se(p))}function i(){a.disconnect();for(const o of I.querySelectorAll("a")){const{url:l,external:c,download:d}=Re(o,L,b.hash);if(c||d)continue;const p=se(o);p.reload||(p.preload_code===q.viewport&&a.observe(o),p.preload_code===q.eager&&Se(l))}}Y.add(i),i()}function te(e,t){if(e instanceof Pe)return e.body;const n=qe(e),r=Mt(e);return b.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function sn(e){if(typeof e=="function")le.push(e);else{const{href:t}=new URL(e,location.href);le.push(n=>n.href===t)}}function wn(){return ne=!0,Xt()}function yn(e,t){const n={[D]:w,[K]:R,[rt]:y.url.href,[Ce]:t};history.replaceState(n,"",Ne(e)),y.state=t,_e.$set({page:Jt(()=>me(y))})}function ln(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Ze(),!ee){const r=Fe(m,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};ut.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ze()}),navigator.connection?.saveData||on(),I.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=ot(t.composedPath()[0],I);if(!n)return;const{url:r,external:a,target:s,download:i}=Re(n,L,b.hash);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const o=se(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;const[c,d]=(b.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=c===ye(location);if(a||o.reload&&(!p||!d)){vt({url:r,type:"link",event:t})?ee=!0:t.preventDefault();return}if(d!==void 0&&p){const[,u]=m.url.href.split("#");if(u===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const f=n.ownerDocument.getElementById(decodeURIComponent(d));f&&(f.scrollIntoView(),f.focus())}return}if(J=!0,De(w),e(r),!o.replace_state)return;J=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await H({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const i=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ge(i,L,!1))return;const o=t.target,l=se(o);if(l.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(o,r);i.search=new URLSearchParams(c).toString(),H({type:"form",url:i,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??i.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ue){if(t.state?.[D]){const n=t.state[D];if(O={},n===w)return;const r=N[n],a=t.state[Ce]??{},s=new URL(t.state[rt]??location.href),i=t.state[K],o=m.url?ye(location)===ye(m.url):!1;if(i===R&&(dt||o)){a!==y.state&&(y.state=a),e(s),N[w]=V(),r&&scrollTo(r.x,r.y),w=n;return}const c=n-w;await H({type:"popstate",url:s,popped:{state:a,scroll:r,delta:c},accept:()=>{w=n,R=i},block:()=>{history.go(-c)},nav_token:O,event:t})}else if(!J){const n=new URL(location.href);e(n),b.hash&&location.reload()}}}),addEventListener("hashchange",()=>{J&&(J=!1,history.replaceState({...history.state,[D]:++w,[K]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Wt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&j.navigating.set(z.current=null)});function e(t){m.url=y.url=t,j.page.set(me(y)),j.page.notify()}}async function cn(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:l}){ft=!0;const c=new URL(location.href);let d;({params:a={},route:s={id:null}}=await re(c,!1)||{}),d=Ve.find(({id:f})=>f===s.id);let p,u=!0;try{const f=r.map(async(v,_)=>{const g=o[_];return g?.uses&&(g.uses=un(g.uses)),Be({loader:b.nodes[v],url:c,params:a,route:s,parent:async()=>{const k={};for(let S=0;S<_;S+=1)Object.assign(k,(await f[S]).data);return k},server_data_node:He(g)})}),h=await Promise.all(f);if(d){const v=d.layouts;for(let _=0;_<v.length;_++)v[_]||h.splice(_,0,void 0)}p=await he({url:c,params:a,branch:h,status:t,error:n,errors:d?.errors,form:l,route:d??null})}catch(f){if(f instanceof Ie){await Q(new URL(f.location,location.href));return}p=await Me({status:qe(f),error:await te(f,{url:c,params:a,route:s}),url:c,route:s}),e.textContent="",u=!1}p.props.page&&(p.props.page.state={}),await _t(p,e,u)}function un(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ue=!1;function fn(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=yt(e);if(r&&document.getElementById(r)){const{x:s,y:i}=V();setTimeout(()=>{const o=history.state;Ue=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(o,"",e),t&&scrollTo(s,i),Ue=!1})}else{const s=document.body,i=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),i!==null?s.setAttribute("tabindex",i):s.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const s=[];for(let i=0;i<a.rangeCount;i+=1)s.push(a.getRangeAt(i));setTimeout(()=>{if(a.rangeCount===s.length){for(let i=0;i<a.rangeCount;i+=1){const o=s[i],l=a.getRangeAt(i);if(o.commonAncestorContainer!==l.commonAncestorContainer||o.startContainer!==l.startContainer||o.endContainer!==l.endContainer||o.startOffset!==l.startOffset||o.endOffset!==l.endOffset)return}a.removeAllRanges()}})}}}function Fe(e,t,n,r,a=null){let s,i;const o=new Promise((c,d)=>{s=c,i=d});return o.catch(P),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:V()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:a},willUnload:!t,type:r,complete:o},fulfil:s,reject:i}}function me(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function dn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function yt(e){let t;if(b.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{vn as a,wn as i,pn as l,y as p,yn as r,j as s};
1
+ import{bi as Te,q as Ge,o as A,i as U,v as T,R as oe,bj as kt,aL as Et}from"./BCse5epf.js";class Pe{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ie{constructor(t,n){try{new Headers({location:n})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(n)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=n}}class Oe extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function St(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Rt(e){return e.split("%25").map(decodeURI).join("%25")}function xt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ye({href:e}){return e.split("#")[0]}function Lt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return(c,...d)=>(n(c),i[o](c,...d));t();const l=Reflect.get(i,o);return typeof l=="function"?l.bind(i):l}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return t(),e[i]},enumerable:!0,configurable:!0});return a}function P(){}function At(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function Ut(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const Tt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&W.delete($e(e)),Tt(e,t));const W=new Map;function Pt(e,t){const n=$e(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&W.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=Ut(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function It(e,t,n){if(W.size>0){const r=$e(e,n),a=W.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);W.delete(r)}}return window.fetch(t,n)}function $e(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${At(...a)}"]`}return r}const Ot=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function $t(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${jt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((l,c)=>{if(c%2){if(l.startsWith("x+"))return be(String.fromCharCode(parseInt(l.slice(2),16)));if(l.startsWith("u+"))return be(String.fromCharCode(...l.slice(2).split("-").map(v=>parseInt(v,16))));const d=Ot.exec(l),[,p,u,f,h]=d;return t.push({name:f,matcher:h,optional:!!p,rest:!!u,chained:u?c===1&&i[0]==="":!1}),u?"([^]*?)":p?"([^/]*)?":"([^/]+?)"}return be(l)}).join("")}).join("")}/?$`),params:t}}function Ct(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function jt(e){return e.slice(1).split("/").filter(Ct)}function Nt(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<t.length;o+=1){const l=t[o];let c=a[o-i];if(l.chained&&l.rest&&i&&(c=a.slice(o-i,o+1).filter(d=>d).join("/"),i=0),c===void 0)if(l.rest)c="";else continue;if(!l.matcher||n[l.matcher](c)){r[l.name]=c;const d=t[o+1],p=a[o+1];d&&!d.rest&&d.optional&&p&&l.chained&&(i=0),!d&&!p&&Object.keys(r).length===s.length&&(i=0);continue}if(l.optional&&l.chained){i++;continue}return}if(!i)return r}function be(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function qt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[l,c,d]])=>{const{pattern:p,params:u}=$t(o),f={id:o,exec:h=>{const v=p.exec(h);if(v)return Nt(v,u,r)},errors:[1,...d||[]].map(h=>e[h]),layouts:[0,...c||[]].map(i),leaf:s(l)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(o){const l=o<0;return l&&(o=~o),[l,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function et(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Je(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const L=globalThis.__sveltekit_1nmw7v9?.base??"",Dt=globalThis.__sveltekit_1nmw7v9?.assets??L??"",Vt="1778757626907",tt="sveltekit:snapshot",nt="sveltekit:scroll",Ce="sveltekit:states",rt="sveltekit:pageurl",D="sveltekit:history",K="sveltekit:navigation",q={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},je=location.origin;function Ne(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function V(){return{x:pageXOffset,y:pageYOffset}}function B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const We={...q,"":q.hover};function at(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function ot(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=at(e)}}function Re(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||ge(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),i=r?.origin===je&&e.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function se(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=B(o,"preload-code")),a===null&&(a=B(o,"preload-data")),t===null&&(t=B(o,"keepfocus")),n===null&&(n=B(o,"noscroll")),s===null&&(s=B(o,"reload")),i===null&&(i=B(o,"replacestate")),o=at(o);function l(c){switch(c){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:We[r??"off"],preload_data:We[a??"off"],keepfocus:l(t),noscroll:l(n),reload:l(s),replace_state:l(i)}}function Ye(e){const t=Te(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(l=>{(o===void 0||n&&l!==o)&&i(o=l)})}return{notify:r,set:a,subscribe:s}}const st={v:P};function Bt(){const{set:e,subscribe:t}=Te(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Dt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==Vt;return i&&(e(!0),st.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function ge(e,t,n){return e.origin!==je||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function pn(e){}const it=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...it];const Ht=new Set([...it]);[...Ht];function Kt(e){return e.filter(t=>t!=null)}function qe(e){return e instanceof Pe||e instanceof Oe?e.status:500}function Mt(e){return e instanceof Oe?e.text:"Internal Error"}let y,z,ke;const Ft=Ge.toString().includes("$$")||/function \w+\(\) \{\}/.test(Ge.toString()),ze="a:";Ft?(y={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(ze)},z={current:null},ke={current:!1}):(y=new class{#e=A({});get data(){return U(this.#e)}set data(t){T(this.#e,t)}#t=A(null);get form(){return U(this.#t)}set form(t){T(this.#t,t)}#n=A(null);get error(){return U(this.#n)}set error(t){T(this.#n,t)}#r=A({});get params(){return U(this.#r)}set params(t){T(this.#r,t)}#a=A({id:null});get route(){return U(this.#a)}set route(t){T(this.#a,t)}#o=A({});get state(){return U(this.#o)}set state(t){T(this.#o,t)}#s=A(-1);get status(){return U(this.#s)}set status(t){T(this.#s,t)}#i=A(new URL(ze));get url(){return U(this.#i)}set url(t){T(this.#i,t)}},z=new class{#e=A(null);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},ke=new class{#e=A(!1);get current(){return U(this.#e)}set current(t){T(this.#e,t)}},st.v=()=>ke.current=!0);function lt(e){Object.assign(y,e)}const Xe={spanContext(){return Gt},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Gt={traceId:"",spanId:"",traceFlags:0},Jt=Et??(e=>e()),Wt=new Set(["icon","shortcut icon","apple-touch-icon"]);let G=null;const N=et(nt)??{},X=et(tt)??{},j={url:Ye({}),page:Ye({}),navigating:Te(null),updated:Bt()};function De(e){N[e]=V()}function Yt(e,t){let n=e+1;for(;N[n];)delete N[n],n+=1;for(n=t+1;X[n];)delete X[n],n+=1}function Q(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(P)}async function ct(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(L||"/");e&&await e.update()}}let Ve,xe,ie,I,Le,b;const le=[],ce=[];let x=null;function Z(){x?.fork?.then(e=>e?.discard()),x=null}const ae=new Map,ut=new Set,zt=new Set,Y=new Set;let _={branch:[],error:null,url:null,nav:null},ft=!1,ue=!1,Qe=!0,ee=!1,J=!1,dt=!1,ne=!1,me,w,R,O;const fe=new Set;let Ee;const de=new Map;async function vn(e,t,n){globalThis.__sveltekit_1nmw7v9&&(globalThis.__sveltekit_1nmw7v9.query,globalThis.__sveltekit_1nmw7v9.prerender),document.URL!==location.href&&(location.href=location.href),b=e,await e.hooks.init?.(),Ve=qt(e),I=document.documentElement,Le=t,xe=e.nodes[0],ie=e.nodes[1],xe(),ie(),w=history.state?.[D],R=history.state?.[K],w||(w=R=Date.now(),history.replaceState({...history.state,[D]:w,[K]:R},""));const r=N[w];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await cn(Le,n)):(await H({type:"enter",url:Ne(b.hash?dn(new URL(location.href)):location.href),replace_state:!0}),a()),ln()}async function Xt(e=!0,t=!0){if(await(Ee||=Promise.resolve()),!Ee)return;Ee=null;const n=O={},r=await re(_.url,!0);if(Z(),ne&&de.forEach(a=>{a.forEach(({resource:s})=>{s.refresh?.()})}),e){const a=y.state,s=r&&await Ke(r);if(!s||n!==O)return;if(s.type==="redirect")return gt(new URL(s.location,_.url).href,{replaceState:!0},1,n);t||(s.props.page.state=a),lt(s.props.page),_={...s.state,nav:_.nav},Ae(),me.$set(s.props)}else Ae();await Promise.all([...de.values()].flatMap(a=>[...a.values()].map(({resource:s})=>s))).catch(P)}function Ae(){le.length=0,ne=!1}function ht(e){ce.some(t=>t?.snapshot)&&(X[e]=ce.map(t=>t?.snapshot?.capture()))}function pt(e){X[e]?.forEach((t,n)=>{ce[n]?.snapshot?.restore(t)})}function Ze(){De(w),Je(nt,N),ht(R),Je(tt,X)}async function gt(e,t,n,r){let a;t.invalidateAll&&Z(),await H({type:"goto",url:Ne(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(ne=!0,a=[],de.forEach((s,i)=>{for(const o of s.keys())a.push(i+"/"+o)})),t.invalidate&&t.invalidate.forEach(sn)}}),t.invalidateAll&&oe().then(oe).then(()=>{de.forEach((s,i)=>{s.forEach(({resource:o},l)=>{a?.includes(i+"/"+l)&&o.refresh?.()})})})}async function Qt(e){if(e.id!==x?.id){Z();const t={};fe.add(t),x={id:e.id,token:t,promise:Ke({...e,preload:t}).then(n=>(fe.delete(t),n.type==="loaded"&&n.state.error&&Z(),n)),fork:null}}return x.promise}async function Se(e){const t=(await re(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function mt(e,t,n){const r={params:_.params,route:{id:_.route?.id??null},url:new URL(location.href)};_={...e.state,nav:r};const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(y,e.props.page),me=new b.root({target:t,props:{...e.props,stores:j,components:ce},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),pt(R),n){const s={from:null,to:{...r,scroll:N[w]??V()},willUnload:!1,type:"enter",complete:Promise.resolve()};Y.forEach(i=>i(s))}ue=!0}async function he({url:e,params:t,branch:n,errors:r,status:a,error:s,route:i,form:o}){let l="never";if(L&&(e.pathname===L||e.pathname===L+"/"))l="always";else for(const h of n)h?.slash!==void 0&&(l=h.slash);e.pathname=St(e.pathname,l),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:s,route:i},props:{constructors:Kt(n).map(h=>h.node.component),page:_e(y)}};o!==void 0&&(c.props.form=o);let d={},p=!y,u=0;for(let h=0;h<Math.max(n.length,_.branch.length);h+=1){const v=n[h],m=_.branch[h];v?.data!==m?.data&&(p=!0),v&&(d={...d,...v.data},p&&(c.props[`data_${u}`]=d),u+=1)}return(!_.url||e.href!==_.url.href||_.error!==s||o!==void 0&&o!==y.form||p)&&(c.props.page={error:s,params:t,route:{id:i?.id??null},state:{},status:a,url:new URL(e),form:o??null,data:p?d:y.data}),c}async function Be({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){let i=null,o=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(c.universal?.load){let d=function(...u){for(const f of u){const{href:h}=new URL(f,n);l.dependencies.add(h)}};const p={tracing:{enabled:!1,root:Xe,current:Xe},route:new Proxy(a,{get:(u,f)=>(o&&(l.route=!0),u[f])}),params:new Proxy(r,{get:(u,f)=>(o&&l.params.add(f),u[f])}),data:s?.data??null,url:Lt(n,()=>{o&&(l.url=!0)},u=>{o&&l.search_params.add(u)},b.hash),async fetch(u,f){u instanceof Request&&(f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u?.headers:void 0,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...f});const{resolved:h,promise:v}=_t(u,f,n);return o&&d(h.href),v},setHeaders:P,depends:d,parent(){return o&&(l.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};i=await c.universal.load.call(null,p)??null}return{node:c,loader:e,server:s,universal:c.universal?.load?{type:"data",data:i,uses:l}:null,data:i??s?.data??null,slash:c.universal?.trailingSlash??s?.slash}}function _t(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=ue?It(r,a.href,t):Pt(r,t);return{resolved:a,promise:s}}function Zt(e,t,n,r,a,s){if(ne)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==_.params[i])return!0;for(const i of a.dependencies)if(le.some(o=>o(new URL(i))))return!0;return!1}function He(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function en(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function tn({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:_e(y),constructors:[]}}}async function Ke({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(x?.id===e)return fe.delete(x.token),x.promise;const{errors:i,layouts:o,leaf:l}=a,c=[...o,l];i.forEach(m=>m?.().catch(P)),c.forEach(m=>m?.[1]().catch(P));const d=_.url?e!==pe(_.url):!1,p=_.route?a.id!==_.route.id:!1,u=en(_.url,n);let f=!1;const h=c.map(async(m,g)=>{if(!m)return;const k=_.branch[g];return m[1]===k?.loader&&!Zt(f,p,d,u,k.universal?.uses,r)?k:(f=!0,Be({loader:m[1],url:n,params:r,route:a,parent:async()=>{const $={};for(let C=0;C<g;C+=1)Object.assign($,(await h[C])?.data);return $},server_data_node:He(m[0]?{type:"skip"}:null,m[0]?k?.server:void 0)}))});for(const m of h)m.catch(P);const v=[];for(let m=0;m<c.length;m+=1)if(c[m])try{v.push(await h[m])}catch(g){if(g instanceof Ie)return{type:"redirect",location:g.location};if(fe.has(s))return tn({error:await te(g,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let k=qe(g),S;if(g instanceof Pe)S=g.body;else{if(await j.updated.check())return await ct(),await Q(n);S=await te(g,{params:r,url:n,route:{id:a.id}})}const $=await nn(m,v,i);return $?he({url:n,params:r,branch:v.slice(0,$.idx).concat($.node),errors:i,status:k,error:S,route:a}):await wt(n,{id:a.id},S,k)}else v.push(void 0);return he({url:n,params:r,branch:v,errors:i,status:200,error:null,route:a,form:t?void 0:null})}async function nn(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Me({status:e,error:t,url:n,route:r}){const a={};let s=null;try{const i=await Be({loader:xe,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:He(s)}),o={node:await ie(),loader:ie,universal:null,server:null,data:null};return he({url:n,params:a,branch:[i,o],status:e,error:t,errors:[],route:null})}catch(i){if(i instanceof Ie)return gt(new URL(i.location,location.href),{},0);throw i}}async function rn(e){const t=e.href;if(ae.has(t))return ae.get(t);let n;try{const r=(async()=>{let a=await b.hooks.reroute({url:new URL(e),fetch:async(s,i)=>_t(s,i,e).promise})??e;if(typeof a=="string"){const s=new URL(e);b.hash?s.hash=a:s.pathname=a,a=s}return a})();ae.set(t,r),n=await r}catch{ae.delete(t);return}return n}async function re(e,t){if(e&&!ge(e,L,b.hash)){const n=await rn(e);if(!n)return;const r=an(n);for(const a of Ve){const s=a.exec(r);if(s)return{id:pe(e),invalidating:t,route:a,params:xt(s),url:e}}}}function an(e){return Rt(b.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(L.length))||"/"}function pe(e){return(b.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function vt({url:e,type:t,intent:n,delta:r,event:a,scroll:s}){let i=!1;const o=Fe(_,n,e,t,s??null);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const l={...o.navigation,cancel:()=>{i=!0,o.reject(new Error("navigation cancelled"))}};return ee||ut.forEach(c=>c(l)),i?null:o}async function H({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:l={},accept:c=P,block:d=P,event:p}){const u=O;O=l;const f=await re(t,!1),h=e==="enter"?Fe(_,f,t,e):vt({url:t,type:e,delta:n?.delta,intent:f,scroll:n?.scroll,event:p});if(!h){d(),O===l&&(O=u);return}const v=w,m=R;c(),ee=!0,ue&&h.navigation.type!=="enter"&&j.navigating.set(z.current=h.navigation);let g=f&&await Ke(f);if(!g){if(ge(t,L,b.hash))return await Q(t,s);g=await wt(t,{id:null},await te(new Oe(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=f?.url||t,O!==l)return h.reject(new Error("navigation aborted")),!1;if(g.type==="redirect"){if(o<20){await H({type:e,url:new URL(g.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i,redirect_count:o+1,nav_token:l}),h.fulfil(void 0);return}g=await Me({status:500,error:await te(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else g.props.page.status>=400&&await j.updated.check()&&(await ct(),await Q(t,s));if(Ae(),De(v),ht(m),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),i=n?n.state:i,!n){const E=s?0:1,M={[D]:w+=E,[K]:R+=E,[Ce]:i};(s?history.replaceState:history.pushState).call(history,M,"",t),s||Yt(w,R)}const k=f&&x?.id===f.id?x.fork:null;x?.fork&&!k&&Z(),x=null,g.props.page.state=i;let S;if(ue){const E=(await Promise.all(Array.from(zt,F=>F(h.navigation)))).filter(F=>typeof F=="function");if(E.length>0){let F=function(){E.forEach(we=>{Y.delete(we)})};E.push(F),E.forEach(we=>{Y.add(we)})}const M=h.navigation.to;_={...g.state,nav:{params:M.params,route:M.route,url:M.url}},g.props.page&&(g.props.page.url=t);const ve=k&&await k;ve?S=ve.commit():(G=null,me.$set(g.props),G&&Object.assign(g.props.page,G),lt(g.props.page),S=kt?.()),dt=!0}else await mt(g,Le,!1);const{activeElement:$}=document;await S,await oe(),await oe();let C=null;if(Qe){const E=n?n.scroll:a?V():null;E?scrollTo(E.x,E.y):(C=t.hash&&document.getElementById(yt(t)))?C.scrollIntoView():scrollTo(0,0)}const bt=document.activeElement!==$&&document.activeElement!==document.body;!r&&!bt&&fn(t,!C),Qe=!0,g.props.page&&(G&&Object.assign(g.props.page,G),Object.assign(y,g.props.page)),ee=!1,e==="popstate"&&pt(R),h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=V()),Y.forEach(E=>E(h.navigation)),j.navigating.set(z.current=null)}async function wt(e,t,n,r,a){return e.origin===je&&e.pathname===location.pathname&&!ft?await Me({status:r,error:n,url:e,route:t}):await Q(e,a)}function on(){let e,t={element:void 0,href:void 0},n;I.addEventListener("mousemove",o=>{const l=o.target;clearTimeout(e),e=setTimeout(()=>{s(l,q.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],q.tap)}I.addEventListener("mousedown",r),I.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const l of o)l.isIntersecting&&(Se(new URL(l.target.href)),a.unobserve(l.target))},{threshold:0});async function s(o,l){const c=ot(o,I),d=c===t.element&&c?.href===t.href&&l>=n;if(!c||d)return;const{url:p,external:u,download:f}=Re(c,L,b.hash);if(u||f)return;const h=se(c),v=p&&pe(_.url)===pe(p);if(!(h.reload||v))if(l<=h.preload_data){t={element:c,href:c.href},n=q.tap;const m=await re(p,!1);if(!m)return;Qt(m)}else l<=h.preload_code&&(t={element:c,href:c.href},n=l,Se(p))}function i(){a.disconnect();for(const o of I.querySelectorAll("a")){const{url:l,external:c,download:d}=Re(o,L,b.hash);if(c||d)continue;const p=se(o);p.reload||(p.preload_code===q.viewport&&a.observe(o),p.preload_code===q.eager&&Se(l))}}Y.add(i),i()}function te(e,t){if(e instanceof Pe)return e.body;const n=qe(e),r=Mt(e);return b.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function sn(e){if(typeof e=="function")le.push(e);else{const{href:t}=new URL(e,location.href);le.push(n=>n.href===t)}}function wn(){return ne=!0,Xt()}function yn(e,t){const n={[D]:w,[K]:R,[rt]:y.url.href,[Ce]:t};history.replaceState(n,"",Ne(e)),y.state=t,me.$set({page:Jt(()=>_e(y))})}function ln(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Ze(),!ee){const r=Fe(_,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};ut.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ze()}),navigator.connection?.saveData||on(),I.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=ot(t.composedPath()[0],I);if(!n)return;const{url:r,external:a,target:s,download:i}=Re(n,L,b.hash);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const o=se(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;const[c,d]=(b.hash?r.hash.replace(/^#/,""):r.href).split("#"),p=c===ye(location);if(a||o.reload&&(!p||!d)){vt({url:r,type:"link",event:t})?ee=!0:t.preventDefault();return}if(d!==void 0&&p){const[,u]=_.url.href.split("#");if(u===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const f=n.ownerDocument.getElementById(decodeURIComponent(d));f&&(f.scrollIntoView(),f.focus())}return}if(J=!0,De(w),e(r),!o.replace_state)return;J=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await H({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href,event:t})}),I.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const i=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ge(i,L,!1))return;const o=t.target,l=se(o);if(l.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(o,r);i.search=new URLSearchParams(c).toString(),H({type:"form",url:i,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??i.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ue){if(t.state?.[D]){const n=t.state[D];if(O={},n===w)return;const r=N[n],a=t.state[Ce]??{},s=new URL(t.state[rt]??location.href),i=t.state[K],o=_.url?ye(location)===ye(_.url):!1;if(i===R&&(dt||o)){a!==y.state&&(y.state=a),e(s),N[w]=V(),r&&scrollTo(r.x,r.y),w=n;return}const c=n-w;await H({type:"popstate",url:s,popped:{state:a,scroll:r,delta:c},accept:()=>{w=n,R=i},block:()=>{history.go(-c)},nav_token:O,event:t})}else if(!J){const n=new URL(location.href);e(n),b.hash&&location.reload()}}}),addEventListener("hashchange",()=>{J&&(J=!1,history.replaceState({...history.state,[D]:++w,[K]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Wt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&j.navigating.set(z.current=null)});function e(t){_.url=y.url=t,j.page.set(_e(y)),j.page.notify()}}async function cn(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:l}){ft=!0;const c=new URL(location.href);let d;({params:a={},route:s={id:null}}=await re(c,!1)||{}),d=Ve.find(({id:f})=>f===s.id);let p,u=!0;try{const f=r.map(async(v,m)=>{const g=o[m];return g?.uses&&(g.uses=un(g.uses)),Be({loader:b.nodes[v],url:c,params:a,route:s,parent:async()=>{const k={};for(let S=0;S<m;S+=1)Object.assign(k,(await f[S]).data);return k},server_data_node:He(g)})}),h=await Promise.all(f);if(d){const v=d.layouts;for(let m=0;m<v.length;m++)v[m]||h.splice(m,0,void 0)}p=await he({url:c,params:a,branch:h,status:t,error:n,errors:d?.errors,form:l,route:d??null})}catch(f){if(f instanceof Ie){await Q(new URL(f.location,location.href));return}p=await Me({status:qe(f),error:await te(f,{url:c,params:a,route:s}),url:c,route:s}),e.textContent="",u=!1}p.props.page&&(p.props.page.state={}),await mt(p,e,u)}function un(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ue=!1;function fn(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=yt(e);if(r&&document.getElementById(r)){const{x:s,y:i}=V();setTimeout(()=>{const o=history.state;Ue=!0,location.replace(new URL(`#${r}`,location.href)),history.replaceState(o,"",e),t&&scrollTo(s,i),Ue=!1})}else{const s=document.body,i=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),i!==null?s.setAttribute("tabindex",i):s.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const s=[];for(let i=0;i<a.rangeCount;i+=1)s.push(a.getRangeAt(i));setTimeout(()=>{if(a.rangeCount===s.length){for(let i=0;i<a.rangeCount;i+=1){const o=s[i],l=a.getRangeAt(i);if(o.commonAncestorContainer!==l.commonAncestorContainer||o.startContainer!==l.startContainer||o.endContainer!==l.endContainer||o.startOffset!==l.startOffset||o.endOffset!==l.endOffset)return}a.removeAllRanges()}})}}}function Fe(e,t,n,r,a=null){let s,i;const o=new Promise((c,d)=>{s=c,i=d});return o.catch(P),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:V()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:a},willUnload:!t,type:r,complete:o},fulfil:s,reject:i}}function _e(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function dn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function yt(e){let t;if(b.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{vn as a,wn as i,pn as l,y as p,yn as r,j as s};
@@ -1 +1 @@
1
- import{p as $,g as c,c as d,f as o,h as i,S as y,s as P,E as z,i as l,b as u,u as h,d as E,r as j}from"./BCse5epf.js";import{c as f}from"./Bs3kPGqt.js";function C(g,e){$(e,!0);let a=c(e,"ref",15,null),r=c(e,"checked",15,!1),p=j(e,["$$slots","$$events","$$legacy","ref","class","checked"]);var s=d(),b=o(s);{let k=h(()=>f("data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e.class));i(b,()=>y,(m,v)=>{v(m,P({"data-slot":"switch",get class(){return l(k)}},()=>p,{get ref(){return a()},set ref(t){a(t)},get checked(){return r()},set checked(t){r(t)},children:(t,q)=>{var n=d(),w=o(n);{let x=h(()=>f("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"));i(w,()=>z,(_,S)=>{S(_,{"data-slot":"switch-thumb",get class(){return l(x)}})})}u(t,n)},$$slots:{default:!0}}))})}u(g,s),E()}export{C as S};
1
+ import{p as $,g as c,c as d,f as o,h as i,S as y,s as P,E as z,i as l,b as u,u as h,d as E,r as j}from"./BCse5epf.js";import{c as f}from"./CFdGC6PJ.js";function C(g,e){$(e,!0);let a=c(e,"ref",15,null),r=c(e,"checked",15,!1),p=j(e,["$$slots","$$events","$$legacy","ref","class","checked"]);var s=d(),b=o(s);{let k=h(()=>f("data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e.class));i(b,()=>y,(m,v)=>{v(m,P({"data-slot":"switch",get class(){return l(k)}},()=>p,{get ref(){return a()},set ref(t){a(t)},get checked(){return r()},set checked(t){r(t)},children:(t,q)=>{var n=d(),w=o(n);{let x=h(()=>f("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"));i(w,()=>z,(_,S)=>{S(_,{"data-slot":"switch-thumb",get class(){return l(x)}})})}u(t,n)},$$slots:{default:!0}}))})}u(g,s),E()}export{C as S};