studiograph 1.3.45 → 1.3.46-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/validation.d.ts +12 -24
- package/dist/core/validation.js +2 -4
- package/dist/core/validation.js.map +1 -1
- package/dist/web/_app/immutable/chunks/{CflqBbYQ.js → 2WDlSsLm.js} +1 -1
- package/dist/web/_app/immutable/chunks/{BaXpp1tf.js → B6V-uubx.js} +1 -1
- package/dist/web/_app/immutable/chunks/{BGX6SPtq.js → BvrZK1hH.js} +1 -1
- package/dist/web/_app/immutable/chunks/{C1CRVEBu.js → Cxx6o9Oj.js} +1 -1
- package/dist/web/_app/immutable/chunks/{DtnQmtrj.js → DdAR16ep.js} +1 -1
- package/dist/web/_app/immutable/chunks/{CB3VviBF.js → DoWxyhBj.js} +1 -1
- package/dist/web/_app/immutable/chunks/{CN32kGRo.js → Dtc6nSB5.js} +1 -1
- package/dist/web/_app/immutable/chunks/{PmJi1YoH.js → DvXcXwP6.js} +1 -1
- package/dist/web/_app/immutable/chunks/{6foq42_N.js → Eqahi7_S.js} +1 -1
- package/dist/web/_app/immutable/chunks/{C9wvsAxP.js → YLG0-nJz.js} +1 -1
- package/dist/web/_app/immutable/chunks/{BKk1XunN.js → j4bvNFcQ.js} +1 -1
- package/dist/web/_app/immutable/entry/{app.Bml5X6q4.js → app.BxYr7SqD.js} +2 -2
- package/dist/web/_app/immutable/entry/start.C_zGdWDX.js +1 -0
- package/dist/web/_app/immutable/nodes/{0.BSe0bdT0.js → 0.DAJB6oNy.js} +2 -2
- package/dist/web/_app/immutable/nodes/{1.MhXGZ4eC.js → 1.C1zO3grb.js} +1 -1
- package/dist/web/_app/immutable/nodes/{10.Cmxl0bHx.js → 10.CF8Nuncc.js} +1 -1
- package/dist/web/_app/immutable/nodes/2.CFrM-7uS.js +168 -0
- package/dist/web/_app/immutable/nodes/{3.DABJovoy.js → 3.DFMmYUhw.js} +1 -1
- package/dist/web/_app/immutable/nodes/{4.C0zHNDfW.js → 4.BJ6W6_eE.js} +4 -4
- package/dist/web/_app/immutable/nodes/{5.DrIZo8Is.js → 5.Dtq0UmKQ.js} +1 -1
- package/dist/web/_app/immutable/nodes/{6.DVp7Tjvy.js → 6.DfCeBULz.js} +1 -1
- package/dist/web/_app/immutable/nodes/{7.PuaFRbuu.js → 7.BWD8NBDu.js} +1 -1
- package/dist/web/_app/immutable/nodes/{8.BiKAeyDU.js → 8.gPodSJtk.js} +1 -1
- package/dist/web/_app/immutable/nodes/{9.Chzs_qMF.js → 9.B6AHrZqQ.js} +1 -1
- package/dist/web/_app/version.json +1 -1
- package/dist/web/index.html +6 -6
- package/package.json +1 -1
- package/dist/web/_app/immutable/entry/start.DrKnYNB_.js +0 -1
- package/dist/web/_app/immutable/nodes/2.DlxkXAnG.js +0 -86
|
@@ -368,10 +368,8 @@ export declare const MeetingSchema: z.ZodObject<{
|
|
|
368
368
|
attendees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
369
369
|
related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
370
370
|
related_organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
action_items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
374
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
371
|
+
location: z.ZodOptional<z.ZodString>;
|
|
372
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
375
373
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
376
374
|
entity_id: z.ZodString;
|
|
377
375
|
created_at: z.ZodString;
|
|
@@ -387,10 +385,8 @@ export declare const MeetingSchema: z.ZodObject<{
|
|
|
387
385
|
attendees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
388
386
|
related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
389
387
|
related_organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
action_items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
393
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
388
|
+
location: z.ZodOptional<z.ZodString>;
|
|
389
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
394
390
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
395
391
|
entity_id: z.ZodString;
|
|
396
392
|
created_at: z.ZodString;
|
|
@@ -406,10 +402,8 @@ export declare const MeetingSchema: z.ZodObject<{
|
|
|
406
402
|
attendees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
407
403
|
related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
408
404
|
related_organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
action_items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
412
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
405
|
+
location: z.ZodOptional<z.ZodString>;
|
|
406
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
413
407
|
}, z.ZodTypeAny, "passthrough">>;
|
|
414
408
|
export type Meeting = z.infer<typeof MeetingSchema>;
|
|
415
409
|
/**
|
|
@@ -1440,10 +1434,8 @@ export declare const ENTITY_SCHEMAS: {
|
|
|
1440
1434
|
attendees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1441
1435
|
related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1442
1436
|
related_organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
action_items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1446
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
1437
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1438
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
1447
1439
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1448
1440
|
entity_id: z.ZodString;
|
|
1449
1441
|
created_at: z.ZodString;
|
|
@@ -1459,10 +1451,8 @@ export declare const ENTITY_SCHEMAS: {
|
|
|
1459
1451
|
attendees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1460
1452
|
related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1461
1453
|
related_organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
action_items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1465
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
1454
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1455
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
1466
1456
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1467
1457
|
entity_id: z.ZodString;
|
|
1468
1458
|
created_at: z.ZodString;
|
|
@@ -1478,10 +1468,8 @@ export declare const ENTITY_SCHEMAS: {
|
|
|
1478
1468
|
attendees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1479
1469
|
related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1480
1470
|
related_organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
action_items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1484
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
1471
|
+
location: z.ZodOptional<z.ZodString>;
|
|
1472
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
1485
1473
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1486
1474
|
readonly decision: z.ZodObject<{
|
|
1487
1475
|
entity_id: z.ZodString;
|
package/dist/core/validation.js
CHANGED
|
@@ -132,10 +132,8 @@ export const MeetingSchema = EntityBaseSchema.extend({
|
|
|
132
132
|
attendees: z.array(z.string()).optional().describe('Attendee wikilinks'),
|
|
133
133
|
related_projects: z.array(z.string()).optional().describe('Related project wikilinks'),
|
|
134
134
|
related_organizations: z.array(z.string()).optional().describe('Related organization wikilinks'),
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
action_items: z.array(z.string()).optional().describe('Action items from the meeting'),
|
|
138
|
-
summary: z.string().optional().describe('Meeting summary'),
|
|
135
|
+
location: z.string().optional().describe('Location or meeting link'),
|
|
136
|
+
duration: z.string().optional().describe('Duration (e.g., 30m, 1h)'),
|
|
139
137
|
});
|
|
140
138
|
/**
|
|
141
139
|
* Decision — structured decision records (ADR-style)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../../src/core/validation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,yBAAyB,CAAC;IACzD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;SAClB,KAAK,CAAC,eAAe,EAAE,sFAAsF,CAAC;SAC9G,GAAG,CAAC,CAAC,EAAE,uBAAuB,CAAC;IAClC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IAC1D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IAC1D,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,wBAAwB,CAAC;IACvD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,wBAAwB,CAAC;IACvD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC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AC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAClF,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC5C,OAAO,IAAI,IAAI,cAAc,CAAC;AAChC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as St,p as he,c as j,a as u,b as D,s as Tt,f as Vt,d as ve,g as X,t as Nt,e as me}from"./iDtAARVW.js";import{e as F,s as d,g as o,u as O,p as _t,h as H,b as yt,c as y,ad as Kt,r as C,l as Ht,d as ot,a as Ut,n as U,m as At,t as ut,aC as ge,a5 as be,i as z}from"./CT6oIU-C.js";import{b as dt,a as ct,r as _e,s as ye}from"./CmCtpZ1Y.js";import{i as N,b as Ce}from"./72bZS3G9.js";import{e as we}from"./CDV5Q7RN.js";import{c as q}from"./CXH6iFbA.js";import{s as Wt}from"./DGbA7IXh.js";import{b as Pe,B as xe}from"./BS2rFAVq.js";import{p as v,s as ne,r as ue,l as Mt}from"./cLyZlkXv.js";import{g as re}from"./PmJi1YoH.js";import{i as Zt}from"./Y90OgS-9.js";import{A as Te,C as se}from"./vSaooFHB.js";import{n as et}from"./4Hhzb6pv.js";import{v as Bt}from"./BGX6SPtq.js";import{w as He}from"./CJ8__CWt.js";import{w as Qt,H as Ae,I as bt,C as Me,a as de,J as Ve,K as Lt,E as Ie,S as Oe,L as ce,c as ke,N as De,O as ie,h as k,d as ze,f as pe,n as xt,P as Fe,p as Ee,m as $t,q as ae,r as Se,F as Ne,A as We,u as Be,v as $e,x as Ke,y as Le,z as Ye,B as Xe,G as qe}from"./CJUKmosC.js";function jt(m,t){const[e,s]=m;let n=!1;const r=t.length;for(let h=0,i=r-1;h<r;i=h++){const[f,x]=t[h]??[0,0],[_,c]=t[i]??[0,0];x>=s!=c>=s&&e<=(_-f)*(s-x)/(c-x)+f&&(n=!n)}return n}function Gt(m,t){return m[0]>=t.left&&m[0]<=t.right&&m[1]>=t.top&&m[1]<=t.bottom}function le(m,t){const e=m.left+m.width/2,s=m.top+m.height/2,n=t.left+t.width/2,r=t.top+t.height/2,h=n-e,i=r-s;return Math.abs(h)>Math.abs(i)?h>0?"right":"left":i>0?"bottom":"top"}class je{#t;#n;#s;#r=null;#e=null;#l=[];#h=null;#o=null;#i=null;#a(){this.#o!==null&&(cancelAnimationFrame(this.#o),this.#o=null)}#d(){this.#a(),this.#o=requestAnimationFrame(()=>{this.#o=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())})}#c(){this.#i!==null&&(clearTimeout(this.#i),this.#i=null)}#f(){this.#s!==null&&(this.#c(),this.#i=window.setTimeout(()=>{this.#i=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())},this.#s))}constructor(t){this.#t=t,this.#n=t.buffer??1;const e=t.transitIntentTimeout;this.#s=typeof e=="number"&&e>0?e:null,Qt([t.triggerNode,t.contentNode,t.enabled],([s,n,r])=>{if(!s||!n||!r){this.#h=null,this.#u();return}this.#h&&this.#h!==s&&this.#u(),this.#h=s;const h=Ae(s),i=a=>{this.#v([a.clientX,a.clientY],s,n)},f=a=>{const p=a.relatedTarget;if(bt(p)&&n.contains(p))return;const T=this.#t.ignoredTargets?.()??[];bt(p)&&T.some(E=>E===p||E.contains(p))||(this.#l=bt(p)&&T.length>0?T.filter(E=>p.contains(E)):[],this.#r=[a.clientX,a.clientY],this.#e="content",this.#d())},x=()=>{this.#u()},_=()=>{this.#u()},c=a=>{const p=a.relatedTarget;bt(p)&&s.contains(p)||(this.#r=[a.clientX,a.clientY],this.#e="trigger",this.#d())};return[St(h,"pointermove",i),St(s,"pointerleave",f),St(s,"pointerenter",x),St(n,"pointerenter",_),St(n,"pointerleave",c)].reduce((a,p)=>()=>{a(),p()},()=>{})})}#v(t,e,s){if(!this.#r||!this.#e)return;this.#a(),this.#f();const n=e.getBoundingClientRect(),r=s.getBoundingClientRect();if(this.#e==="content"&&Gt(t,r)){this.#u();return}if(this.#e==="trigger"&&Gt(t,n)){this.#u();return}if(this.#e==="content"&&this.#l.length>0)for(const _ of this.#l){const c=_.getBoundingClientRect();if(Gt(t,c))return;const a=le(n,c),p=this.#p(n,c,a);if(p&&jt(t,p))return}const h=le(n,r),i=this.#p(n,r,h);if(i&&jt(t,i))return;const f=this.#e==="content"?r:n,x=this.#m(this.#r,f,h,this.#e);jt(t,x)||(this.#u(),this.#t.onPointerExit())}#u(){this.#r=null,this.#e=null,this.#l=[],this.#a(),this.#c()}#p(t,e,s){const n=this.#n;switch(s){case"top":return[[Math.min(t.left,e.left)-n,t.top],[Math.min(t.left,e.left)-n,e.bottom],[Math.max(t.right,e.right)+n,e.bottom],[Math.max(t.right,e.right)+n,t.top]];case"bottom":return[[Math.min(t.left,e.left)-n,t.bottom],[Math.min(t.left,e.left)-n,e.top],[Math.max(t.right,e.right)+n,e.top],[Math.max(t.right,e.right)+n,t.bottom]];case"left":return[[t.left,Math.min(t.top,e.top)-n],[e.right,Math.min(t.top,e.top)-n],[e.right,Math.max(t.bottom,e.bottom)+n],[t.left,Math.max(t.bottom,e.bottom)+n]];case"right":return[[t.right,Math.min(t.top,e.top)-n],[e.left,Math.min(t.top,e.top)-n],[e.left,Math.max(t.bottom,e.bottom)+n],[t.right,Math.max(t.bottom,e.bottom)+n]]}}#m(t,e,s,n){const r=this.#n*4,[h,i]=t;switch(n==="trigger"?this.#g(s):s){case"top":return[[h-r,i+r],[h+r,i+r],[e.right+r,e.bottom],[e.right+r,e.top],[e.left-r,e.top],[e.left-r,e.bottom]];case"bottom":return[[h-r,i-r],[h+r,i-r],[e.right+r,e.top],[e.right+r,e.bottom],[e.left-r,e.bottom],[e.left-r,e.top]];case"left":return[[h+r,i-r],[h+r,i+r],[e.right,e.bottom+r],[e.left,e.bottom+r],[e.left,e.top-r],[e.right,e.top-r]];case"right":return[[h-r,i-r],[h-r,i+r],[e.left,e.bottom+r],[e.right,e.bottom+r],[e.right,e.top-r],[e.left,e.top-r]]}}#g(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const Jt=ze({component:"popover",parts:["root","trigger","content","close","overlay"]}),Rt=new Me("Popover.Root");class te{static create(t){return Rt.set(new te(t))}opts;#t=F(null);get contentNode(){return o(this.#t)}set contentNode(t){d(this.#t,t,!0)}contentPresence;#n=F(null);get triggerNode(){return o(this.#n)}set triggerNode(t){d(this.#n,t,!0)}#s=F(null);get overlayNode(){return o(this.#s)}set overlayNode(t){d(this.#s,t,!0)}overlayPresence;#r=F(!1);get openedViaHover(){return o(this.#r)}set openedViaHover(t){d(this.#r,t,!0)}#e=F(!1);get hasInteractedWithContent(){return o(this.#e)}set hasInteractedWithContent(t){d(this.#e,t,!0)}#l=F(!1);get hoverCooldown(){return o(this.#l)}set hoverCooldown(t){d(this.#l,t,!0)}#h=F(0);get closeDelay(){return o(this.#h)}set closeDelay(t){d(this.#h,t,!0)}#o=null;#i=null;constructor(t){this.opts=t,this.contentPresence=new ie({ref:k(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new ie({ref:k(()=>this.overlayNode),open:this.opts.open}),Qt(()=>this.opts.open.current,e=>{e||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#a())})}setDomContext(t){this.#i=t}#a(){this.#o!==null&&this.#i&&(this.#i.clearTimeout(this.#o),this.#o=null)}toggleOpen(){this.#a(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#a(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#a(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#a(),this.closeDelay<=0?this.opts.open.current=!1:this.#i&&(this.#o=this.#i.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#o=null},this.closeDelay))))}cancelDelayedClose(){this.#a()}markInteraction(){this.hasInteractedWithContent=!0,this.#a()}}class ee{static create(t){return new ee(t,Rt.get())}opts;root;attachment;domContext;#t=null;#n=null;#s=F(!1);constructor(t,e){this.opts=t,this.root=e,this.attachment=de(this.opts.ref,s=>this.root.triggerNode=s),this.domContext=new Ve(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Qt(()=>this.opts.closeDelay.current,s=>{this.root.closeDelay=s})}#r(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#e(){this.#n!==null&&(this.domContext.clearTimeout(this.#n),this.#n=null)}#l(){this.#r(),this.#e()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Lt(t)||(d(this.#s,!0),this.#e(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const e=this.opts.openDelay.current;e<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},e)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Lt(t)||(d(this.#s,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#l(),o(this.#s)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}o(this.#s)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===Ie||t.key===Oe)&&(t.preventDefault(),this.#l(),this.root.toggleOpen())}#h(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#o=O(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":ke(this.root.opts.open.current),"data-state":ce(this.root.opts.open.current),"aria-controls":this.#h(),[Jt.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return o(this.#o)}set props(t){d(this.#o,t)}}class oe{static create(t){return new oe(t,Rt.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=de(this.opts.ref,s=>this.root.contentNode=s),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new je({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const e=t.target;bt(e)&&De(e)&&this.root.markInteraction()}onpointerenter(t){Lt(t)||this.root.cancelDelayedClose()}onpointerleave(t){Lt(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!bt(t.target))return;const e=t.target.closest(Jt.selector("trigger"));if(!(e&&e===this.root.triggerNode)){if(this.opts.customAnchor.current){if(bt(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const s=document.querySelector(this.opts.customAnchor.current);if(s&&s.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=O(()=>({open:this.root.opts.open.current}));get snippetProps(){return o(this.#t)}set snippetProps(t){d(this.#t,t)}#n=O(()=>({id:this.opts.id.current,tabindex:-1,"data-state":ce(this.root.opts.open.current),[Jt.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return o(this.#n)}set props(t){d(this.#n,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var Ge=D("<div><div><!></div></div>"),Je=D("<div><div><!></div></div>");function Ue(m,t){const e=he();_t(t,!0);let s=v(t,"ref",15,null),n=v(t,"id",19,()=>pe(e)),r=v(t,"forceMount",3,!1),h=v(t,"onOpenAutoFocus",3,xt),i=v(t,"onCloseAutoFocus",3,xt),f=v(t,"onEscapeKeydown",3,xt),x=v(t,"onInteractOutside",3,xt),_=v(t,"trapFocus",3,!0),c=v(t,"preventScroll",3,!1),a=v(t,"customAnchor",3,null),p=ue(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const T=oe.create({id:k(()=>n()),ref:k(()=>s(),V=>s(V)),onInteractOutside:k(()=>x()),onEscapeKeydown:k(()=>f()),customAnchor:k(()=>a())}),E=O(()=>$t(p,T.props)),Ct=O(()=>_()&&T.shouldTrapFocus);function wt(V){T.shouldTrapFocus||V.preventDefault(),h()(V)}var W=j(),G=H(W);{var K=V=>{Fe(V,ne(()=>o(E),()=>T.popperProps,{get ref(){return T.opts.ref},get enabled(){return T.root.opts.open.current},get id(){return n()},get trapFocus(){return o(Ct)},get preventScroll(){return c()},loop:!0,forceMount:!0,get customAnchor(){return a()},onOpenAutoFocus:wt,get onCloseAutoFocus(){return i()},get shouldRender(){return T.shouldRender},popper:(pt,rt)=>{let ft=()=>rt?.().props,st=()=>rt?.().wrapperProps;const it=O(()=>$t(ft(),{style:ae("popover")},{style:t.style}));var at=j(),Ot=H(at);{var kt=M=>{var A=j(),S=H(A);{let Z=O(()=>({props:o(it),wrapperProps:st(),...T.snippetProps}));dt(S,()=>t.child,()=>o(Z))}u(M,A)},Pt=M=>{var A=Ge();ct(A,()=>({...st()}));var S=y(A);ct(S,()=>({...o(it)}));var Z=y(S);dt(Z,()=>t.children??Kt),C(S),C(A),u(M,A)};N(Ot,M=>{t.child?M(kt):M(Pt,!1)})}u(pt,at)},$$slots:{popper:!0}}))},nt=V=>{Ee(V,ne(()=>o(E),()=>T.popperProps,{get ref(){return T.opts.ref},get open(){return T.root.opts.open.current},get id(){return n()},get trapFocus(){return o(Ct)},get preventScroll(){return c()},loop:!0,forceMount:!1,get customAnchor(){return a()},onOpenAutoFocus:wt,get onCloseAutoFocus(){return i()},get shouldRender(){return T.shouldRender},popper:(pt,rt)=>{let ft=()=>rt?.().props,st=()=>rt?.().wrapperProps;const it=O(()=>$t(ft(),{style:ae("popover")},{style:t.style}));var at=j(),Ot=H(at);{var kt=M=>{var A=j(),S=H(A);{let Z=O(()=>({props:o(it),wrapperProps:st(),...T.snippetProps}));dt(S,()=>t.child,()=>o(Z))}u(M,A)},Pt=M=>{var A=Je();ct(A,()=>({...st()}));var S=y(A);ct(S,()=>({...o(it)}));var Z=y(S);dt(Z,()=>t.children??Kt),C(S),C(A),u(M,A)};N(Ot,M=>{t.child?M(kt):M(Pt,!1)})}u(pt,at)},$$slots:{popper:!0}}))};N(G,V=>{r()?V(K):r()||V(nt,1)})}u(m,W),yt()}var Ze=D("<button><!></button>");function Qe(m,t){const e=he();_t(t,!0);let s=v(t,"id",19,()=>pe(e)),n=v(t,"ref",15,null),r=v(t,"type",3,"button"),h=v(t,"disabled",3,!1),i=v(t,"openOnHover",3,!1),f=v(t,"openDelay",3,700),x=v(t,"closeDelay",3,300),_=ue(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const c=ee.create({id:k(()=>s()),ref:k(()=>n(),p=>n(p)),disabled:k(()=>!!h()),openOnHover:k(()=>i()),openDelay:k(()=>f()),closeDelay:k(()=>x())}),a=O(()=>$t(_,c.props,{type:r()}));Se(m,{get id(){return s()},get ref(){return c.opts.ref},children:(p,T)=>{var E=j(),Ct=H(E);{var wt=G=>{var K=j(),nt=H(K);dt(nt,()=>t.child,()=>({props:o(a)})),u(G,K)},W=G=>{var K=Ze();ct(K,()=>({...o(a)}));var nt=y(K);dt(nt,()=>t.children??Kt),C(K),u(G,K)};N(Ct,G=>{t.child?G(wt):G(W,!1)})}u(p,E)},$$slots:{default:!0}}),yt()}function Re(m,t){_t(t,!0);let e=v(t,"open",15,!1),s=v(t,"onOpenChange",3,xt),n=v(t,"onOpenChangeComplete",3,xt);te.create({open:k(()=>e(),r=>{e(r),s()(r)}),onOpenChangeComplete:k(()=>n())}),Ne(m,{children:(r,h)=>{var i=j(),f=H(i);dt(f,()=>t.children??Kt),u(r,i)},$$slots:{default:!0}}),yt()}var to=Vt("<title> </title>"),eo=Vt('<svg><!><path d="M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z"></path><path d="M8 10H24V12H8z"></path><path d="M8 16H18V18H8z"></path></svg>');function oo(m,t){const e=Mt(t,["children","$$slots","$$events","$$legacy"]),s=Mt(e,["size","title"]);_t(t,!1);const n=At(),r=At();let h=v(t,"size",8,16),i=v(t,"title",8,void 0);Ht(()=>(ot(e),ot(i())),()=>{d(n,e["aria-label"]||e["aria-labelledby"]||i())}),Ht(()=>(o(n),ot(e)),()=>{d(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Ut(),Zt();var f=eo();ct(f,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:h(),height:h(),...o(r),...s}));var x=y(f);{var _=c=>{var a=to(),p=y(a,!0);C(a),ut(()=>Tt(p,i())),u(c,a)};N(x,c=>{i()&&c(_)})}U(3),C(f),u(m,f),yt()}var no=Vt("<title> </title>"),ro=Vt('<svg><!><path d="M10 6H28V8H10z"></path><path d="M10 24H28V26H10z"></path><path d="M10 15H28V17H10z"></path><path d="M4 15H6V17H4z"></path><path d="M4 6H6V8H4z"></path><path d="M4 24H6V26H4z"></path></svg>');function so(m,t){const e=Mt(t,["children","$$slots","$$events","$$legacy"]),s=Mt(e,["size","title"]);_t(t,!1);const n=At(),r=At();let h=v(t,"size",8,16),i=v(t,"title",8,void 0);Ht(()=>(ot(e),ot(i())),()=>{d(n,e["aria-label"]||e["aria-labelledby"]||i())}),Ht(()=>(o(n),ot(e)),()=>{d(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Ut(),Zt();var f=ro();ct(f,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:h(),height:h(),...o(r),...s}));var x=y(f);{var _=c=>{var a=no(),p=y(a,!0);C(a),ut(()=>Tt(p,i())),u(c,a)};N(x,c=>{i()&&c(_)})}U(6),C(f),u(m,f),yt()}var io=Vt("<title> </title>"),ao=Vt('<svg><!><path d="M26,4h-4V2h-2v2h-8V2h-2v2H6C4.9,4,4,4.9,4,6v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V6C28,4.9,27.1,4,26,4z M26,26H6V12h20 V26z M26,10H6V6h4v2h2V6h8v2h2V6h4V10z"></path></svg>');function lo(m,t){const e=Mt(t,["children","$$slots","$$events","$$legacy"]),s=Mt(e,["size","title"]);_t(t,!1);const n=At(),r=At();let h=v(t,"size",8,16),i=v(t,"title",8,void 0);Ht(()=>(ot(e),ot(i())),()=>{d(n,e["aria-label"]||e["aria-labelledby"]||i())}),Ht(()=>(o(n),ot(e)),()=>{d(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Ut(),Zt();var f=ao();ct(f,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:h(),height:h(),...o(r),...s}));var x=y(f);{var _=c=>{var a=io(),p=y(a,!0);C(a),ut(()=>Tt(p,i())),u(c,a)};N(x,c=>{i()&&c(_)})}U(),C(f),u(m,f),yt()}const ho=Re,uo=Qe,co=Ue;var po=D('<div class="tab active svelte-r6dy5f"><input class="tab-rename-input svelte-r6dy5f"/></div>'),fo=D('<span class="tab-close svelte-r6dy5f" title="Close"><!></span>'),vo=D('<button><span class="tab-label svelte-r6dy5f"> </span> <!></button>'),mo=D('<span class="tab-close svelte-r6dy5f" title="Close"><!></span>'),go=D('<button><span class="tab-label svelte-r6dy5f"> </span> <!></button>'),bo=D("<!> <span>New View</span>",1),_o=D('<button class="add-view-option svelte-r6dy5f"><!> List</button> <button class="add-view-option svelte-r6dy5f"><!> Calendar</button>',1),yo=D("<!> <!>",1),Co=D("<!> <!>",1),wo=D("<!> <!>",1),Po=D("<!> <!>",1),xo=D('<div class="tab-bar svelte-r6dy5f"><div class="tabs-scroll svelte-r6dy5f"><button><span class="tab-label svelte-r6dy5f">Home</span></button> <button><span class="tab-label svelte-r6dy5f">Graph</span></button> <!> <!> <!></div> <div class="bar-right svelte-r6dy5f"><!> <!></div></div> <!>',1);function $o(m,t){_t(t,!0);let e=v(t,"activeView",3,"entity");const s=ge("chat");function n(l){re(l,{noScroll:!0})}const r=O(()=>et.selectedId!==null),h=O(()=>{if(!et.selectedRepo||!et.selectedId)return"";for(const l of He.repos){if(l.name!==et.selectedRepo)continue;const g=l.entities.find(w=>w.id===et.selectedId);if(g)return g.title}return et.selectedId.replace(/-/g," ").replace(/\b\w/g,l=>l.toUpperCase())});function i(){et.deselect(),n("/")}let f=F(!1);async function x(l){d(f,!1);const g=l==="calendar"?"Calendar":"List",w=await Bt.create(g,l);re(`/views/${w.id}`)}let _=F(null),c=F(""),a=F(null),p=F(!1);function T(l){d(p,!1),d(_,l.id,!0),d(c,l.name,!0)}be(()=>{o(_)&&o(a)&&(o(a).focus(),o(a).select(),setTimeout(()=>{d(p,!0)},50))});function E(){o(p)&&(o(_)&&o(c).trim()&&Bt.update(o(_),{name:o(c).trim()}),d(_,null),d(p,!1))}function Ct(){d(_,null),d(p,!1)}function wt(l){l.key==="Enter"&&(l.preventDefault(),d(p,!0),E()),l.key==="Escape"&&(l.preventDefault(),Ct())}let W=F(null);function G(l,g){l.stopPropagation(),d(W,g,!0)}async function K(){o(W)&&(await Bt.remove(o(W).id),d(W,null))}var nt=xo(),V=H(nt),It=y(V),pt=y(It);let rt;var ft=z(pt,2);let st;var it=z(ft,2);we(it,17,()=>Bt.views,l=>l.id,(l,g)=>{var w=j(),Q=H(w);{var R=B=>{var I=po(),b=y(I);_e(b),Ce(b,P=>d(a,P),()=>o(a)),C(I),ut(P=>ye(b,"size",P),[()=>Math.max(o(c).length,1)]),X("keydown",b,wt),X("input",b,P=>{d(c,P.currentTarget.value,!0)}),me("blur",b,E),Pe(b,()=>o(c),P=>d(c,P)),u(B,I)},tt=B=>{const I=O(()=>e()==="view"&&et.activeViewId===o(g).id);var b=vo();let P;var lt=y(b),$=y(lt,!0);C(lt);var L=z(lt,2);{var Dt=Y=>{var J=fo(),zt=y(J);se(zt,{size:12}),C(J),X("click",J,Yt=>G(Yt,o(g))),u(Y,J)};N(L,Y=>{o(I)&&Y(Dt)})}C(b),ut(()=>{P=Wt(b,1,"tab svelte-r6dy5f",null,P,{"tab-permanent":!o(I),active:o(I)}),Tt($,o(g).name)}),X("click",b,()=>n(`/views/${o(g).id}`)),X("dblclick",b,()=>T(o(g))),u(B,b)};N(Q,B=>{o(_)===o(g).id?B(R):B(tt,!1)})}u(l,w)});var at=z(it,2);{var Ot=l=>{const g=O(()=>e()==="entity"&&o(r));var w=go();let Q;var R=y(w),tt=y(R,!0);C(R);var B=z(R,2);{var I=b=>{var P=mo(),lt=y(P);se(lt,{size:12}),C(P),X("click",P,$=>{$.stopPropagation(),i()}),u(b,P)};N(B,b=>{o(g)&&b(I)})}C(w),ut(()=>{Q=Wt(w,1,"tab svelte-r6dy5f",null,Q,{"tab-permanent":!o(g),active:o(g)}),Tt(tt,o(h))}),X("click",w,()=>n(et.entityPath??"/")),u(l,w)};N(at,l=>{o(r)&&l(Ot)})}var kt=z(at,2);q(kt,()=>ho,(l,g)=>{g(l,{get open(){return o(f)},set open(w){d(f,w,!0)},children:(w,Q)=>{var R=yo(),tt=H(R);q(tt,()=>uo,(I,b)=>{b(I,{class:"new-view-btn",title:"New view",children:(P,lt)=>{var $=bo(),L=H($);Te(L,{size:16}),U(2),u(P,$)},$$slots:{default:!0}})});var B=z(tt,2);q(B,()=>co,(I,b)=>{b(I,{class:"add-view-menu",sideOffset:4,align:"start",children:(P,lt)=>{var $=_o(),L=H($),Dt=y(L);so(Dt,{size:14}),U(),C(L);var Y=z(L,2),J=y(Y);lo(J,{size:14}),U(),C(Y),X("click",L,()=>x("list")),X("click",Y,()=>x("calendar")),u(P,$)},$$slots:{default:!0}})}),u(w,R)},$$slots:{default:!0}})}),C(It);var Pt=z(It,2),M=y(Pt);{var A=l=>{var g=j(),w=H(g);dt(w,()=>t.right),u(l,g)};N(M,l=>{t.right&&l(A)})}var S=z(M,2);{var Z=l=>{xe(l,{variant:"accent",size:"icon",class:"chat-toggle",title:"Open Agent",get onclick(){return s.toggle},children:(g,w)=>{oo(g,{size:14})},$$slots:{default:!0}})};N(S,l=>{s.open||l(Z)})}C(Pt),C(V);var fe=z(V,2);{let l=O(()=>!!o(W));q(fe,()=>qe,(g,w)=>{w(g,{get open(){return o(l)},onOpenChange:Q=>{Q||d(W,null)},children:(Q,R)=>{var tt=j(),B=H(tt);q(B,()=>We,(I,b)=>{b(I,{children:(P,lt)=>{var $=Po(),L=H($);q(L,()=>Be,(Y,J)=>{J(Y,{children:(zt,Yt)=>{var Ft=Co(),Et=H(Ft);q(Et,()=>$e,(vt,mt)=>{mt(vt,{children:(gt,qt)=>{U();var ht=Nt("Delete view?");u(gt,ht)},$$slots:{default:!0}})});var Xt=z(Et,2);q(Xt,()=>Ke,(vt,mt)=>{mt(vt,{children:(gt,qt)=>{U();var ht=Nt();ut(()=>Tt(ht,`The view "${o(W)?.name??""}" will be permanently deleted.`)),u(gt,ht)},$$slots:{default:!0}})}),u(zt,Ft)},$$slots:{default:!0}})});var Dt=z(L,2);q(Dt,()=>Le,(Y,J)=>{J(Y,{children:(zt,Yt)=>{var Ft=wo(),Et=H(Ft);q(Et,()=>Ye,(vt,mt)=>{mt(vt,{children:(gt,qt)=>{U();var ht=Nt("Cancel");u(gt,ht)},$$slots:{default:!0}})});var Xt=z(Et,2);q(Xt,()=>Xe,(vt,mt)=>{mt(vt,{onclick:K,children:(gt,qt)=>{U();var ht=Nt("Delete");u(gt,ht)},$$slots:{default:!0}})}),u(zt,Ft)},$$slots:{default:!0}})}),u(P,$)},$$slots:{default:!0}})}),u(Q,tt)},$$slots:{default:!0}})})}ut(()=>{rt=Wt(pt,1,"tab tab-permanent svelte-r6dy5f",null,rt,{active:e()==="home"}),st=Wt(ft,1,"tab tab-permanent svelte-r6dy5f",null,st,{active:e()==="graph"})}),X("click",pt,()=>n("/")),X("click",ft,()=>e()!=="graph"&&n("/graph")),u(m,nt),yt()}ve(["click","keydown","input","dblclick"]);export{co as C,ho as R,uo as T,$o as V,lo as a};
|
|
1
|
+
import{o as St,p as he,c as j,a as u,b as D,s as Tt,f as Vt,d as ve,g as X,t as Nt,e as me}from"./iDtAARVW.js";import{e as F,s as d,g as o,u as O,p as _t,h as H,b as yt,c as y,ad as Kt,r as C,l as Ht,d as ot,a as Ut,n as U,m as At,t as ut,aC as ge,a5 as be,i as z}from"./CT6oIU-C.js";import{b as dt,a as ct,r as _e,s as ye}from"./CmCtpZ1Y.js";import{i as N,b as Ce}from"./72bZS3G9.js";import{e as we}from"./CDV5Q7RN.js";import{c as q}from"./CXH6iFbA.js";import{s as Wt}from"./DGbA7IXh.js";import{b as Pe,B as xe}from"./BS2rFAVq.js";import{p as v,s as ne,r as ue,l as Mt}from"./cLyZlkXv.js";import{g as re}from"./DvXcXwP6.js";import{i as Zt}from"./Y90OgS-9.js";import{A as Te,C as se}from"./vSaooFHB.js";import{n as et}from"./4Hhzb6pv.js";import{v as Bt}from"./BvrZK1hH.js";import{w as He}from"./CJ8__CWt.js";import{w as Qt,H as Ae,I as bt,C as Me,a as de,J as Ve,K as Lt,E as Ie,S as Oe,L as ce,c as ke,N as De,O as ie,h as k,d as ze,f as pe,n as xt,P as Fe,p as Ee,m as $t,q as ae,r as Se,F as Ne,A as We,u as Be,v as $e,x as Ke,y as Le,z as Ye,B as Xe,G as qe}from"./CJUKmosC.js";function jt(m,t){const[e,s]=m;let n=!1;const r=t.length;for(let h=0,i=r-1;h<r;i=h++){const[f,x]=t[h]??[0,0],[_,c]=t[i]??[0,0];x>=s!=c>=s&&e<=(_-f)*(s-x)/(c-x)+f&&(n=!n)}return n}function Gt(m,t){return m[0]>=t.left&&m[0]<=t.right&&m[1]>=t.top&&m[1]<=t.bottom}function le(m,t){const e=m.left+m.width/2,s=m.top+m.height/2,n=t.left+t.width/2,r=t.top+t.height/2,h=n-e,i=r-s;return Math.abs(h)>Math.abs(i)?h>0?"right":"left":i>0?"bottom":"top"}class je{#t;#n;#s;#r=null;#e=null;#l=[];#h=null;#o=null;#i=null;#a(){this.#o!==null&&(cancelAnimationFrame(this.#o),this.#o=null)}#d(){this.#a(),this.#o=requestAnimationFrame(()=>{this.#o=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())})}#c(){this.#i!==null&&(clearTimeout(this.#i),this.#i=null)}#f(){this.#s!==null&&(this.#c(),this.#i=window.setTimeout(()=>{this.#i=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())},this.#s))}constructor(t){this.#t=t,this.#n=t.buffer??1;const e=t.transitIntentTimeout;this.#s=typeof e=="number"&&e>0?e:null,Qt([t.triggerNode,t.contentNode,t.enabled],([s,n,r])=>{if(!s||!n||!r){this.#h=null,this.#u();return}this.#h&&this.#h!==s&&this.#u(),this.#h=s;const h=Ae(s),i=a=>{this.#v([a.clientX,a.clientY],s,n)},f=a=>{const p=a.relatedTarget;if(bt(p)&&n.contains(p))return;const T=this.#t.ignoredTargets?.()??[];bt(p)&&T.some(E=>E===p||E.contains(p))||(this.#l=bt(p)&&T.length>0?T.filter(E=>p.contains(E)):[],this.#r=[a.clientX,a.clientY],this.#e="content",this.#d())},x=()=>{this.#u()},_=()=>{this.#u()},c=a=>{const p=a.relatedTarget;bt(p)&&s.contains(p)||(this.#r=[a.clientX,a.clientY],this.#e="trigger",this.#d())};return[St(h,"pointermove",i),St(s,"pointerleave",f),St(s,"pointerenter",x),St(n,"pointerenter",_),St(n,"pointerleave",c)].reduce((a,p)=>()=>{a(),p()},()=>{})})}#v(t,e,s){if(!this.#r||!this.#e)return;this.#a(),this.#f();const n=e.getBoundingClientRect(),r=s.getBoundingClientRect();if(this.#e==="content"&&Gt(t,r)){this.#u();return}if(this.#e==="trigger"&&Gt(t,n)){this.#u();return}if(this.#e==="content"&&this.#l.length>0)for(const _ of this.#l){const c=_.getBoundingClientRect();if(Gt(t,c))return;const a=le(n,c),p=this.#p(n,c,a);if(p&&jt(t,p))return}const h=le(n,r),i=this.#p(n,r,h);if(i&&jt(t,i))return;const f=this.#e==="content"?r:n,x=this.#m(this.#r,f,h,this.#e);jt(t,x)||(this.#u(),this.#t.onPointerExit())}#u(){this.#r=null,this.#e=null,this.#l=[],this.#a(),this.#c()}#p(t,e,s){const n=this.#n;switch(s){case"top":return[[Math.min(t.left,e.left)-n,t.top],[Math.min(t.left,e.left)-n,e.bottom],[Math.max(t.right,e.right)+n,e.bottom],[Math.max(t.right,e.right)+n,t.top]];case"bottom":return[[Math.min(t.left,e.left)-n,t.bottom],[Math.min(t.left,e.left)-n,e.top],[Math.max(t.right,e.right)+n,e.top],[Math.max(t.right,e.right)+n,t.bottom]];case"left":return[[t.left,Math.min(t.top,e.top)-n],[e.right,Math.min(t.top,e.top)-n],[e.right,Math.max(t.bottom,e.bottom)+n],[t.left,Math.max(t.bottom,e.bottom)+n]];case"right":return[[t.right,Math.min(t.top,e.top)-n],[e.left,Math.min(t.top,e.top)-n],[e.left,Math.max(t.bottom,e.bottom)+n],[t.right,Math.max(t.bottom,e.bottom)+n]]}}#m(t,e,s,n){const r=this.#n*4,[h,i]=t;switch(n==="trigger"?this.#g(s):s){case"top":return[[h-r,i+r],[h+r,i+r],[e.right+r,e.bottom],[e.right+r,e.top],[e.left-r,e.top],[e.left-r,e.bottom]];case"bottom":return[[h-r,i-r],[h+r,i-r],[e.right+r,e.top],[e.right+r,e.bottom],[e.left-r,e.bottom],[e.left-r,e.top]];case"left":return[[h+r,i-r],[h+r,i+r],[e.right,e.bottom+r],[e.left,e.bottom+r],[e.left,e.top-r],[e.right,e.top-r]];case"right":return[[h-r,i-r],[h-r,i+r],[e.left,e.bottom+r],[e.right,e.bottom+r],[e.right,e.top-r],[e.left,e.top-r]]}}#g(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const Jt=ze({component:"popover",parts:["root","trigger","content","close","overlay"]}),Rt=new Me("Popover.Root");class te{static create(t){return Rt.set(new te(t))}opts;#t=F(null);get contentNode(){return o(this.#t)}set contentNode(t){d(this.#t,t,!0)}contentPresence;#n=F(null);get triggerNode(){return o(this.#n)}set triggerNode(t){d(this.#n,t,!0)}#s=F(null);get overlayNode(){return o(this.#s)}set overlayNode(t){d(this.#s,t,!0)}overlayPresence;#r=F(!1);get openedViaHover(){return o(this.#r)}set openedViaHover(t){d(this.#r,t,!0)}#e=F(!1);get hasInteractedWithContent(){return o(this.#e)}set hasInteractedWithContent(t){d(this.#e,t,!0)}#l=F(!1);get hoverCooldown(){return o(this.#l)}set hoverCooldown(t){d(this.#l,t,!0)}#h=F(0);get closeDelay(){return o(this.#h)}set closeDelay(t){d(this.#h,t,!0)}#o=null;#i=null;constructor(t){this.opts=t,this.contentPresence=new ie({ref:k(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new ie({ref:k(()=>this.overlayNode),open:this.opts.open}),Qt(()=>this.opts.open.current,e=>{e||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#a())})}setDomContext(t){this.#i=t}#a(){this.#o!==null&&this.#i&&(this.#i.clearTimeout(this.#o),this.#o=null)}toggleOpen(){this.#a(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#a(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#a(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#a(),this.closeDelay<=0?this.opts.open.current=!1:this.#i&&(this.#o=this.#i.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#o=null},this.closeDelay))))}cancelDelayedClose(){this.#a()}markInteraction(){this.hasInteractedWithContent=!0,this.#a()}}class ee{static create(t){return new ee(t,Rt.get())}opts;root;attachment;domContext;#t=null;#n=null;#s=F(!1);constructor(t,e){this.opts=t,this.root=e,this.attachment=de(this.opts.ref,s=>this.root.triggerNode=s),this.domContext=new Ve(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),Qt(()=>this.opts.closeDelay.current,s=>{this.root.closeDelay=s})}#r(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#e(){this.#n!==null&&(this.domContext.clearTimeout(this.#n),this.#n=null)}#l(){this.#r(),this.#e()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Lt(t)||(d(this.#s,!0),this.#e(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const e=this.opts.openDelay.current;e<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},e)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Lt(t)||(d(this.#s,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#l(),o(this.#s)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}o(this.#s)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===Ie||t.key===Oe)&&(t.preventDefault(),this.#l(),this.root.toggleOpen())}#h(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#o=O(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":ke(this.root.opts.open.current),"data-state":ce(this.root.opts.open.current),"aria-controls":this.#h(),[Jt.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return o(this.#o)}set props(t){d(this.#o,t)}}class oe{static create(t){return new oe(t,Rt.get())}opts;root;attachment;constructor(t,e){this.opts=t,this.root=e,this.attachment=de(this.opts.ref,s=>this.root.contentNode=s),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new je({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const e=t.target;bt(e)&&De(e)&&this.root.markInteraction()}onpointerenter(t){Lt(t)||this.root.cancelDelayedClose()}onpointerleave(t){Lt(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!bt(t.target))return;const e=t.target.closest(Jt.selector("trigger"));if(!(e&&e===this.root.triggerNode)){if(this.opts.customAnchor.current){if(bt(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const s=document.querySelector(this.opts.customAnchor.current);if(s&&s.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=O(()=>({open:this.root.opts.open.current}));get snippetProps(){return o(this.#t)}set snippetProps(t){d(this.#t,t)}#n=O(()=>({id:this.opts.id.current,tabindex:-1,"data-state":ce(this.root.opts.open.current),[Jt.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return o(this.#n)}set props(t){d(this.#n,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var Ge=D("<div><div><!></div></div>"),Je=D("<div><div><!></div></div>");function Ue(m,t){const e=he();_t(t,!0);let s=v(t,"ref",15,null),n=v(t,"id",19,()=>pe(e)),r=v(t,"forceMount",3,!1),h=v(t,"onOpenAutoFocus",3,xt),i=v(t,"onCloseAutoFocus",3,xt),f=v(t,"onEscapeKeydown",3,xt),x=v(t,"onInteractOutside",3,xt),_=v(t,"trapFocus",3,!0),c=v(t,"preventScroll",3,!1),a=v(t,"customAnchor",3,null),p=ue(t,["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]);const T=oe.create({id:k(()=>n()),ref:k(()=>s(),V=>s(V)),onInteractOutside:k(()=>x()),onEscapeKeydown:k(()=>f()),customAnchor:k(()=>a())}),E=O(()=>$t(p,T.props)),Ct=O(()=>_()&&T.shouldTrapFocus);function wt(V){T.shouldTrapFocus||V.preventDefault(),h()(V)}var W=j(),G=H(W);{var K=V=>{Fe(V,ne(()=>o(E),()=>T.popperProps,{get ref(){return T.opts.ref},get enabled(){return T.root.opts.open.current},get id(){return n()},get trapFocus(){return o(Ct)},get preventScroll(){return c()},loop:!0,forceMount:!0,get customAnchor(){return a()},onOpenAutoFocus:wt,get onCloseAutoFocus(){return i()},get shouldRender(){return T.shouldRender},popper:(pt,rt)=>{let ft=()=>rt?.().props,st=()=>rt?.().wrapperProps;const it=O(()=>$t(ft(),{style:ae("popover")},{style:t.style}));var at=j(),Ot=H(at);{var kt=M=>{var A=j(),S=H(A);{let Z=O(()=>({props:o(it),wrapperProps:st(),...T.snippetProps}));dt(S,()=>t.child,()=>o(Z))}u(M,A)},Pt=M=>{var A=Ge();ct(A,()=>({...st()}));var S=y(A);ct(S,()=>({...o(it)}));var Z=y(S);dt(Z,()=>t.children??Kt),C(S),C(A),u(M,A)};N(Ot,M=>{t.child?M(kt):M(Pt,!1)})}u(pt,at)},$$slots:{popper:!0}}))},nt=V=>{Ee(V,ne(()=>o(E),()=>T.popperProps,{get ref(){return T.opts.ref},get open(){return T.root.opts.open.current},get id(){return n()},get trapFocus(){return o(Ct)},get preventScroll(){return c()},loop:!0,forceMount:!1,get customAnchor(){return a()},onOpenAutoFocus:wt,get onCloseAutoFocus(){return i()},get shouldRender(){return T.shouldRender},popper:(pt,rt)=>{let ft=()=>rt?.().props,st=()=>rt?.().wrapperProps;const it=O(()=>$t(ft(),{style:ae("popover")},{style:t.style}));var at=j(),Ot=H(at);{var kt=M=>{var A=j(),S=H(A);{let Z=O(()=>({props:o(it),wrapperProps:st(),...T.snippetProps}));dt(S,()=>t.child,()=>o(Z))}u(M,A)},Pt=M=>{var A=Je();ct(A,()=>({...st()}));var S=y(A);ct(S,()=>({...o(it)}));var Z=y(S);dt(Z,()=>t.children??Kt),C(S),C(A),u(M,A)};N(Ot,M=>{t.child?M(kt):M(Pt,!1)})}u(pt,at)},$$slots:{popper:!0}}))};N(G,V=>{r()?V(K):r()||V(nt,1)})}u(m,W),yt()}var Ze=D("<button><!></button>");function Qe(m,t){const e=he();_t(t,!0);let s=v(t,"id",19,()=>pe(e)),n=v(t,"ref",15,null),r=v(t,"type",3,"button"),h=v(t,"disabled",3,!1),i=v(t,"openOnHover",3,!1),f=v(t,"openDelay",3,700),x=v(t,"closeDelay",3,300),_=ue(t,["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]);const c=ee.create({id:k(()=>s()),ref:k(()=>n(),p=>n(p)),disabled:k(()=>!!h()),openOnHover:k(()=>i()),openDelay:k(()=>f()),closeDelay:k(()=>x())}),a=O(()=>$t(_,c.props,{type:r()}));Se(m,{get id(){return s()},get ref(){return c.opts.ref},children:(p,T)=>{var E=j(),Ct=H(E);{var wt=G=>{var K=j(),nt=H(K);dt(nt,()=>t.child,()=>({props:o(a)})),u(G,K)},W=G=>{var K=Ze();ct(K,()=>({...o(a)}));var nt=y(K);dt(nt,()=>t.children??Kt),C(K),u(G,K)};N(Ct,G=>{t.child?G(wt):G(W,!1)})}u(p,E)},$$slots:{default:!0}}),yt()}function Re(m,t){_t(t,!0);let e=v(t,"open",15,!1),s=v(t,"onOpenChange",3,xt),n=v(t,"onOpenChangeComplete",3,xt);te.create({open:k(()=>e(),r=>{e(r),s()(r)}),onOpenChangeComplete:k(()=>n())}),Ne(m,{children:(r,h)=>{var i=j(),f=H(i);dt(f,()=>t.children??Kt),u(r,i)},$$slots:{default:!0}}),yt()}var to=Vt("<title> </title>"),eo=Vt('<svg><!><path d="M17.74,30,16,29l4-7h6a2,2,0,0,0,2-2V8a2,2,0,0,0-2-2H6A2,2,0,0,0,4,8V20a2,2,0,0,0,2,2h9v2H6a4,4,0,0,1-4-4V8A4,4,0,0,1,6,4H26a4,4,0,0,1,4,4V20a4,4,0,0,1-4,4H21.16Z"></path><path d="M8 10H24V12H8z"></path><path d="M8 16H18V18H8z"></path></svg>');function oo(m,t){const e=Mt(t,["children","$$slots","$$events","$$legacy"]),s=Mt(e,["size","title"]);_t(t,!1);const n=At(),r=At();let h=v(t,"size",8,16),i=v(t,"title",8,void 0);Ht(()=>(ot(e),ot(i())),()=>{d(n,e["aria-label"]||e["aria-labelledby"]||i())}),Ht(()=>(o(n),ot(e)),()=>{d(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Ut(),Zt();var f=eo();ct(f,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:h(),height:h(),...o(r),...s}));var x=y(f);{var _=c=>{var a=to(),p=y(a,!0);C(a),ut(()=>Tt(p,i())),u(c,a)};N(x,c=>{i()&&c(_)})}U(3),C(f),u(m,f),yt()}var no=Vt("<title> </title>"),ro=Vt('<svg><!><path d="M10 6H28V8H10z"></path><path d="M10 24H28V26H10z"></path><path d="M10 15H28V17H10z"></path><path d="M4 15H6V17H4z"></path><path d="M4 6H6V8H4z"></path><path d="M4 24H6V26H4z"></path></svg>');function so(m,t){const e=Mt(t,["children","$$slots","$$events","$$legacy"]),s=Mt(e,["size","title"]);_t(t,!1);const n=At(),r=At();let h=v(t,"size",8,16),i=v(t,"title",8,void 0);Ht(()=>(ot(e),ot(i())),()=>{d(n,e["aria-label"]||e["aria-labelledby"]||i())}),Ht(()=>(o(n),ot(e)),()=>{d(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Ut(),Zt();var f=ro();ct(f,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:h(),height:h(),...o(r),...s}));var x=y(f);{var _=c=>{var a=no(),p=y(a,!0);C(a),ut(()=>Tt(p,i())),u(c,a)};N(x,c=>{i()&&c(_)})}U(6),C(f),u(m,f),yt()}var io=Vt("<title> </title>"),ao=Vt('<svg><!><path d="M26,4h-4V2h-2v2h-8V2h-2v2H6C4.9,4,4,4.9,4,6v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V6C28,4.9,27.1,4,26,4z M26,26H6V12h20 V26z M26,10H6V6h4v2h2V6h8v2h2V6h4V10z"></path></svg>');function lo(m,t){const e=Mt(t,["children","$$slots","$$events","$$legacy"]),s=Mt(e,["size","title"]);_t(t,!1);const n=At(),r=At();let h=v(t,"size",8,16),i=v(t,"title",8,void 0);Ht(()=>(ot(e),ot(i())),()=>{d(n,e["aria-label"]||e["aria-labelledby"]||i())}),Ht(()=>(o(n),ot(e)),()=>{d(r,{"aria-hidden":o(n)?void 0:!0,role:o(n)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),Ut(),Zt();var f=ao();ct(f,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:h(),height:h(),...o(r),...s}));var x=y(f);{var _=c=>{var a=io(),p=y(a,!0);C(a),ut(()=>Tt(p,i())),u(c,a)};N(x,c=>{i()&&c(_)})}U(),C(f),u(m,f),yt()}const ho=Re,uo=Qe,co=Ue;var po=D('<div class="tab active svelte-r6dy5f"><input class="tab-rename-input svelte-r6dy5f"/></div>'),fo=D('<span class="tab-close svelte-r6dy5f" title="Close"><!></span>'),vo=D('<button><span class="tab-label svelte-r6dy5f"> </span> <!></button>'),mo=D('<span class="tab-close svelte-r6dy5f" title="Close"><!></span>'),go=D('<button><span class="tab-label svelte-r6dy5f"> </span> <!></button>'),bo=D("<!> <span>New View</span>",1),_o=D('<button class="add-view-option svelte-r6dy5f"><!> List</button> <button class="add-view-option svelte-r6dy5f"><!> Calendar</button>',1),yo=D("<!> <!>",1),Co=D("<!> <!>",1),wo=D("<!> <!>",1),Po=D("<!> <!>",1),xo=D('<div class="tab-bar svelte-r6dy5f"><div class="tabs-scroll svelte-r6dy5f"><button><span class="tab-label svelte-r6dy5f">Home</span></button> <button><span class="tab-label svelte-r6dy5f">Graph</span></button> <!> <!> <!></div> <div class="bar-right svelte-r6dy5f"><!> <!></div></div> <!>',1);function $o(m,t){_t(t,!0);let e=v(t,"activeView",3,"entity");const s=ge("chat");function n(l){re(l,{noScroll:!0})}const r=O(()=>et.selectedId!==null),h=O(()=>{if(!et.selectedRepo||!et.selectedId)return"";for(const l of He.repos){if(l.name!==et.selectedRepo)continue;const g=l.entities.find(w=>w.id===et.selectedId);if(g)return g.title}return et.selectedId.replace(/-/g," ").replace(/\b\w/g,l=>l.toUpperCase())});function i(){et.deselect(),n("/")}let f=F(!1);async function x(l){d(f,!1);const g=l==="calendar"?"Calendar":"List",w=await Bt.create(g,l);re(`/views/${w.id}`)}let _=F(null),c=F(""),a=F(null),p=F(!1);function T(l){d(p,!1),d(_,l.id,!0),d(c,l.name,!0)}be(()=>{o(_)&&o(a)&&(o(a).focus(),o(a).select(),setTimeout(()=>{d(p,!0)},50))});function E(){o(p)&&(o(_)&&o(c).trim()&&Bt.update(o(_),{name:o(c).trim()}),d(_,null),d(p,!1))}function Ct(){d(_,null),d(p,!1)}function wt(l){l.key==="Enter"&&(l.preventDefault(),d(p,!0),E()),l.key==="Escape"&&(l.preventDefault(),Ct())}let W=F(null);function G(l,g){l.stopPropagation(),d(W,g,!0)}async function K(){o(W)&&(await Bt.remove(o(W).id),d(W,null))}var nt=xo(),V=H(nt),It=y(V),pt=y(It);let rt;var ft=z(pt,2);let st;var it=z(ft,2);we(it,17,()=>Bt.views,l=>l.id,(l,g)=>{var w=j(),Q=H(w);{var R=B=>{var I=po(),b=y(I);_e(b),Ce(b,P=>d(a,P),()=>o(a)),C(I),ut(P=>ye(b,"size",P),[()=>Math.max(o(c).length,1)]),X("keydown",b,wt),X("input",b,P=>{d(c,P.currentTarget.value,!0)}),me("blur",b,E),Pe(b,()=>o(c),P=>d(c,P)),u(B,I)},tt=B=>{const I=O(()=>e()==="view"&&et.activeViewId===o(g).id);var b=vo();let P;var lt=y(b),$=y(lt,!0);C(lt);var L=z(lt,2);{var Dt=Y=>{var J=fo(),zt=y(J);se(zt,{size:12}),C(J),X("click",J,Yt=>G(Yt,o(g))),u(Y,J)};N(L,Y=>{o(I)&&Y(Dt)})}C(b),ut(()=>{P=Wt(b,1,"tab svelte-r6dy5f",null,P,{"tab-permanent":!o(I),active:o(I)}),Tt($,o(g).name)}),X("click",b,()=>n(`/views/${o(g).id}`)),X("dblclick",b,()=>T(o(g))),u(B,b)};N(Q,B=>{o(_)===o(g).id?B(R):B(tt,!1)})}u(l,w)});var at=z(it,2);{var Ot=l=>{const g=O(()=>e()==="entity"&&o(r));var w=go();let Q;var R=y(w),tt=y(R,!0);C(R);var B=z(R,2);{var I=b=>{var P=mo(),lt=y(P);se(lt,{size:12}),C(P),X("click",P,$=>{$.stopPropagation(),i()}),u(b,P)};N(B,b=>{o(g)&&b(I)})}C(w),ut(()=>{Q=Wt(w,1,"tab svelte-r6dy5f",null,Q,{"tab-permanent":!o(g),active:o(g)}),Tt(tt,o(h))}),X("click",w,()=>n(et.entityPath??"/")),u(l,w)};N(at,l=>{o(r)&&l(Ot)})}var kt=z(at,2);q(kt,()=>ho,(l,g)=>{g(l,{get open(){return o(f)},set open(w){d(f,w,!0)},children:(w,Q)=>{var R=yo(),tt=H(R);q(tt,()=>uo,(I,b)=>{b(I,{class:"new-view-btn",title:"New view",children:(P,lt)=>{var $=bo(),L=H($);Te(L,{size:16}),U(2),u(P,$)},$$slots:{default:!0}})});var B=z(tt,2);q(B,()=>co,(I,b)=>{b(I,{class:"add-view-menu",sideOffset:4,align:"start",children:(P,lt)=>{var $=_o(),L=H($),Dt=y(L);so(Dt,{size:14}),U(),C(L);var Y=z(L,2),J=y(Y);lo(J,{size:14}),U(),C(Y),X("click",L,()=>x("list")),X("click",Y,()=>x("calendar")),u(P,$)},$$slots:{default:!0}})}),u(w,R)},$$slots:{default:!0}})}),C(It);var Pt=z(It,2),M=y(Pt);{var A=l=>{var g=j(),w=H(g);dt(w,()=>t.right),u(l,g)};N(M,l=>{t.right&&l(A)})}var S=z(M,2);{var Z=l=>{xe(l,{variant:"accent",size:"icon",class:"chat-toggle",title:"Open Agent",get onclick(){return s.toggle},children:(g,w)=>{oo(g,{size:14})},$$slots:{default:!0}})};N(S,l=>{s.open||l(Z)})}C(Pt),C(V);var fe=z(V,2);{let l=O(()=>!!o(W));q(fe,()=>qe,(g,w)=>{w(g,{get open(){return o(l)},onOpenChange:Q=>{Q||d(W,null)},children:(Q,R)=>{var tt=j(),B=H(tt);q(B,()=>We,(I,b)=>{b(I,{children:(P,lt)=>{var $=Po(),L=H($);q(L,()=>Be,(Y,J)=>{J(Y,{children:(zt,Yt)=>{var Ft=Co(),Et=H(Ft);q(Et,()=>$e,(vt,mt)=>{mt(vt,{children:(gt,qt)=>{U();var ht=Nt("Delete view?");u(gt,ht)},$$slots:{default:!0}})});var Xt=z(Et,2);q(Xt,()=>Ke,(vt,mt)=>{mt(vt,{children:(gt,qt)=>{U();var ht=Nt();ut(()=>Tt(ht,`The view "${o(W)?.name??""}" will be permanently deleted.`)),u(gt,ht)},$$slots:{default:!0}})}),u(zt,Ft)},$$slots:{default:!0}})});var Dt=z(L,2);q(Dt,()=>Le,(Y,J)=>{J(Y,{children:(zt,Yt)=>{var Ft=wo(),Et=H(Ft);q(Et,()=>Ye,(vt,mt)=>{mt(vt,{children:(gt,qt)=>{U();var ht=Nt("Cancel");u(gt,ht)},$$slots:{default:!0}})});var Xt=z(Et,2);q(Xt,()=>Xe,(vt,mt)=>{mt(vt,{onclick:K,children:(gt,qt)=>{U();var ht=Nt("Delete");u(gt,ht)},$$slots:{default:!0}})}),u(zt,Ft)},$$slots:{default:!0}})}),u(P,$)},$$slots:{default:!0}})}),u(Q,tt)},$$slots:{default:!0}})})}ut(()=>{rt=Wt(pt,1,"tab tab-permanent svelte-r6dy5f",null,rt,{active:e()==="home"}),st=Wt(ft,1,"tab tab-permanent svelte-r6dy5f",null,st,{active:e()==="graph"})}),X("click",pt,()=>n("/")),X("click",ft,()=>e()!=="graph"&&n("/graph")),u(m,nt),yt()}ve(["click","keydown","input","dblclick"]);export{co as C,ho as R,uo as T,$o as V,lo as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{O as _,f as P,g as b,e as W,w as m,a as G,t as k,c as A,r as I,b as q,d as j,h as V,i as R,j as z,k as C,l as K,D as Q,p as X,m as Z}from"./CSVbGg_b.js";import{r as O}from"./
|
|
1
|
+
import{O as _,f as P,g as b,e as W,w as m,a as G,t as k,c as A,r as I,b as q,d as j,h as V,i as R,j as z,k as C,l as K,D as Q,p as X,m as Z}from"./CSVbGg_b.js";import{r as O}from"./Dtc6nSB5.js";const T=3e4;class $ extends _{constructor(n){super(),this.doc=n,this.clientID=n.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const e=b();this.getLocalState()!==null&&T/2<=e-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const s=[];this.meta.forEach((a,c)=>{c!==this.clientID&&T<=e-a.lastUpdated&&this.states.has(c)&&s.push(c)}),s.length>0&&Y(this,s,"timeout")},P(T/10)),n.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(n){const e=this.clientID,s=this.meta.get(e),a=s===void 0?0:s.clock+1,c=this.states.get(e);n===null?this.states.delete(e):this.states.set(e,n),this.meta.set(e,{clock:a,lastUpdated:b()});const i=[],u=[],r=[],f=[];n===null?f.push(e):c==null?n!=null&&i.push(e):(u.push(e),W(c,n)||r.push(e)),(i.length>0||r.length>0||f.length>0)&&this.emit("change",[{added:i,updated:r,removed:f},"local"]),this.emit("update",[{added:i,updated:u,removed:f},"local"])}setLocalStateField(n,e){const s=this.getLocalState();s!==null&&this.setLocalState({...s,[n]:e})}getStates(){return this.states}}const Y=(t,n,e)=>{const s=[];for(let a=0;a<n.length;a++){const c=n[a];if(t.states.has(c)){if(t.states.delete(c),c===t.clientID){const i=t.meta.get(c);t.meta.set(c,{clock:i.clock+1,lastUpdated:b()})}s.push(c)}}s.length>0&&(t.emit("change",[{added:[],updated:[],removed:s},e]),t.emit("update",[{added:[],updated:[],removed:s},e]))},H=(t,n,e=t.states)=>{const s=n.length,a=A();m(a,s);for(let c=0;c<s;c++){const i=n[c],u=e.get(i)||null,r=t.meta.get(i).clock;m(a,i),m(a,r),G(a,JSON.stringify(u))}return k(a)},tt=(t,n,e)=>{const s=j(n),a=b(),c=[],i=[],u=[],r=[],f=I(s);for(let w=0;w<f;w++){const d=I(s);let y=I(s);const h=JSON.parse(q(s)),g=t.meta.get(d),U=t.states.get(d),S=g===void 0?0:g.clock;(S<y||S===y&&h===null&&t.states.has(d))&&(h===null?d===t.clientID&&t.getLocalState()!=null?y++:t.states.delete(d):t.states.set(d,h),t.meta.set(d,{clock:y,lastUpdated:a}),g===void 0&&h!==null?c.push(d):g!==void 0&&h===null?r.push(d):h!==null&&(W(h,U)||u.push(d),i.push(d)))}(c.length>0||u.length>0||r.length>0)&&t.emit("change",[{added:c,updated:u,removed:r},e]),(c.length>0||i.length>0||r.length>0)&&t.emit("update",[{added:c,updated:i,removed:r},e])},B=0,M=1,N=2,et=(t,n)=>{m(t,B);const e=R(n);V(t,e)},nt=(t,n,e)=>{m(t,M),V(t,K(n,e))},st=(t,n,e)=>nt(n,e,C(t)),F=(t,n,e,s)=>{try{z(n,C(t),e)}catch(a){s?.(a),console.error("Caught error while handling a Yjs update",a)}},at=(t,n)=>{m(t,N),V(t,n)},ct=F,ot=(t,n,e,s,a)=>{const c=I(t);switch(c){case B:st(t,n,e);break;case M:F(t,e,s,a);break;case N:ct(t,e,s,a);break;default:throw new Error("Unknown message type")}return c},L=0,x=1;function it(t,n,e){const s=new TextEncoder().encode(t),a=new ArrayBuffer(2+s.length+1+e.length);return new DataView(a).setUint16(0,s.length),new Uint8Array(a,2,s.length).set(s),new Uint8Array(a)[2+s.length]=n,new Uint8Array(a,2+s.length+1).set(e),a}function lt(t){if(t.byteLength<3)return null;const e=new DataView(t).getUint16(0);if(t.byteLength<2+e+1)return null;const s=new TextDecoder().decode(new Uint8Array(t,2,e)),a=new Uint8Array(t)[2+e],c=new Uint8Array(t,2+e+1);return{docName:s,msgType:a,payload:c}}function ut(t,n){const e=new Q,s=e.getText("content"),a=new $(e);a.setLocalStateField("user",{name:n.name,color:n.color,colorLight:n.colorLight??n.color+"33"});let c=null,i=!1,u=!1;function r(){return O.ws??null}function f(o,p){const l=r();!l||l.readyState!==WebSocket.OPEN||l.send(it(t,o,p))}function w(){const o=A();et(o,e),f(L,k(o))}function d(o){const p=o??[e.clientID],l=H(a,p);f(x,l)}function y(o){if(i||typeof o.data=="string")return;const p=o.data instanceof ArrayBuffer?o.data:null;if(!p)return;const l=lt(p);if(!(!l||l.docName!==t))if(l.msgType===L){const v=j(l.payload),D=X(v),E=A();ot(v,E,e,"ws-server"),Z(E)>0&&f(L,k(E)),!u&&(D===M||D===N)&&(u=!0,S.synced=!0)}else l.msgType===x&&tt(a,l.payload,"ws-server")}function h(o,p){if(i||p==="ws-server")return;const l=A();at(l,o),f(L,k(l))}function g({added:o,updated:p,removed:l},v){if(i||v==="ws-server")return;const D=o.concat(p,l);d(D)}function U(){if(i)return;const o=r();!o||o.readyState!==WebSocket.OPEN||(o.send(JSON.stringify({type:"collab:join",docName:t})),c&&o.removeEventListener("message",c),c=y,o.addEventListener("message",c),w(),d())}const S={ydoc:e,ytext:s,awareness:a,synced:!1,destroy:J};e.on("update",h),a.on("update",g),U(),O.addConnectHandler(U);function J(){if(i)return;i=!0,Y(a,[e.clientID],"local"),d([e.clientID]);const o=r();o&&o.readyState===WebSocket.OPEN&&o.send(JSON.stringify({type:"collab:leave",docName:t})),c&&o&&(o.removeEventListener("message",c),c=null),e.off("update",h),a.off("update",g),a.destroy(),e.destroy()}return S}export{ut as createCollabSession};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as i,f as y,g as r,s as n}from"./CT6oIU-C.js";import{g as l}from"./
|
|
1
|
+
import{e as i,f as y,g as r,s as n}from"./CT6oIU-C.js";import{g as l}from"./DvXcXwP6.js";import{d as v,u as V,c as F,f as h}from"./CJ8__CWt.js";const d={selectedType:null,groupBy:null,sortKey:"name",sortAsc:!0,filters:{text:{},enum:{},date:{}}};function x(){let a=i(y([])),o=i(null),c=i(!1);async function w(){try{n(a,await h(),!0),n(c,!0)}catch(e){console.error("Failed to load views:",e)}}async function f(e,t="list"){const s=t==="calendar"?{...d,calendar:{dateField:"due_date",year:new Date().getFullYear(),month:new Date().getMonth()+1}}:d,u=await F(e,s,t);return n(a,[...r(a),u],!0),u}async function g(e,t){await V(e,t),n(a,r(a).map(s=>s.id===e?{...s,...t}:s),!0)}async function m(e){if(await v(e),n(a,r(a).filter(t=>t.id!==e),!0),r(o)===e){const t=r(a)[0];t?(n(o,t.id,!0),l(`/views/${t.id}`,{replaceState:!0})):(n(o,null),l("/",{replaceState:!0}))}}function p(e){n(o,e,!0)}return{get views(){return r(a)},get activeViewId(){return r(o)},get loaded(){return r(c)},load:w,create:f,update:g,remove:m,setActive:p}}const D=x();export{D as v};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as m,a,f as l}from"./iDtAARVW.js";import{h as w}from"./CT6oIU-C.js";import{i as n}from"./72bZS3G9.js";import{p as d}from"./cLyZlkXv.js";import{L as b,T as k}from"./
|
|
1
|
+
import{c as m,a,f as l}from"./iDtAARVW.js";import{h as w}from"./CT6oIU-C.js";import{i as n}from"./72bZS3G9.js";import{p as d}from"./cLyZlkXv.js";import{L as b,T as k}from"./YLG0-nJz.js";import{t as y}from"./Dtc6nSB5.js";import{u as S}from"./Dtc6nSB5.js";var u=l('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>'),x=l('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>'),_=l('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>'),z=l('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');function H(s,v){const t=d(v,"type",3,"success");var e=m(),c=w(e);{var i=o=>{var r=u();a(o,r)},p=o=>{var r=x();a(o,r)},h=o=>{var r=_();a(o,r)},g=o=>{var r=z();a(o,r)},f=o=>{};n(c,o=>{t()==="success"?o(i):t()==="error"?o(p,1):t()==="info"?o(h,2):t()==="warning"?o(g,3):o(f,!1)})}a(s,e)}export{H as Icon,b as Loader,k as Toaster,y as toast,S as useSonner};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as h,f as U,s as a,g as t,av as x}from"./CT6oIU-C.js";import{i as L,g as V}from"./
|
|
1
|
+
import{e as h,f as U,s as a,g as t,av as x}from"./CT6oIU-C.js";import{i as L,g as V}from"./DvXcXwP6.js";import{n as y}from"./4Hhzb6pv.js";import{w as W}from"./CJ8__CWt.js";function X(g,c,o){fetch("/api/chat/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g),signal:o}).then(async n=>{if(!n.ok){c({type:"error",message:`HTTP ${n.status}`});return}const r=n.body?.getReader();if(!r){c({type:"error",message:"No response body"});return}const p=new TextDecoder;let m="";for(;;){const{done:k,value:O}=await r.read();if(k)break;m+=p.decode(O,{stream:!0});const A=m.split(`
|
|
2
2
|
`);m=A.pop()??"";for(const C of A)if(C.startsWith("data: "))try{const f=JSON.parse(C.slice(6));c(f)}catch{}}}).catch(n=>{n.name!=="AbortError"&&c({type:"error",message:n.message})})}const D="sg-chat-sessions",J="sg-chat-version",z=14;function b(){try{const g=localStorage.getItem(D);if(!g)return[];if(localStorage.getItem(J)==="2")return JSON.parse(g);const n=JSON.parse(g).map(r=>({id:crypto.randomUUID(),createdAt:r.date+"T00:00:00.000Z",updatedAt:r.date+"T00:00:00.000Z",title:r.messages.find(p=>p.role==="user")?.content.slice(0,50)||"New chat",messages:r.messages}));return localStorage.setItem(D,JSON.stringify(n)),localStorage.setItem(J,"2"),n}catch{return[]}}function _(g){const o=[...g].sort((n,r)=>r.updatedAt.localeCompare(n.updatedAt)).slice(0,z);try{localStorage.setItem(D,JSON.stringify(o)),localStorage.setItem(J,"2")}catch{}}function N(g,c){const o=b(),n=c.map(({streaming:p,...m})=>m),r=o.findIndex(p=>p.id===g);r>=0&&(o[r].messages=n,o[r].updatedAt=new Date().toISOString()),_(o)}function B(){const c=b().sort((e,i)=>i.updatedAt.localeCompare(e.updatedAt))[0];let o=h(U(c?c.messages.map(e=>({...e,streaming:!1})):[])),n=h(U(c?.id??null)),r=h(!1),p=h(0),m=h(0),k=h(0),O=h(null),A=null,C=h(""),f=h(U(!!c));const R=new Set(["create_entity","update_entity","delete_entity","move_entity"]);function M(){$();const e=crypto.randomUUID();a(n,e,!0),a(o,[],!0),a(f,!1)}function E(){if(t(n)&&t(f))return t(n);const e=t(n)||crypto.randomUUID();a(n,e,!0);const i=new Date().toISOString(),d=b();return d.push({id:e,createdAt:i,updatedAt:i,title:"New chat",messages:[]}),_(d),a(f,!0),e}function K(e){if(!e.trim()||t(r))return;a(O,null);const i=E();t(o).push({role:"user",content:e}),t(o).push({role:"agent",content:"",segments:[],streaming:!0}),a(r,!0);const d=b(),l=d.find(s=>s.id===i);l&&l.title==="New chat"&&(l.title=e.slice(0,50),_(d)),N(i,t(o));let T=!1,w=null;A=new AbortController;const G=y.selectedSubPath?`${y.selectedRepo}/${y.selectedType}/${y.selectedId}/${y.selectedSubPath}`:y.selectedId?`${y.selectedRepo}/${y.selectedType}/${y.selectedId}`:null,P=t(o).slice(0,-2).map(s=>({role:s.role==="agent"?"assistant":s.role,content:s.content})),H={message:e,context:G??void 0,sessionId:i,history:P.length>0?P:void 0};X(H,s=>{if(!t(r))return;const u=t(o)[t(o).length-1];if(!u||u.role!=="agent")return;const S=u.segments;switch(s.type){case"token":{u.content+=s.text??"";const I=S[S.length-1];I&&I.type==="text"?I.content+=s.text??"":S.push({type:"text",content:s.text??""}),u.segments=S,x(m);break}case"tool_start":if(s.name){R.has(s.name)&&(T=!0);const I=S[S.length-1];I&&I.type==="tools"?I.names=[...I.names,s.name]:S.push({type:"tools",names:[s.name]}),u.segments=S,x(m)}break;case"mutation":T=!0,s.action==="created"&&s.repo&&s.entityType&&s.entityId&&(w={repo:s.repo,entityType:s.entityType,entityId:s.entityId}),window.StudioChrome?.emitMutation?.({action:s.action,repo:s.repo,entityType:s.entityType,entityId:s.entityId});break;case"highlight":a(O,s.entityIds&&s.entityIds.length>0?new Set(s.entityIds):null,!0);break;case"done":s.message&&!u.content&&(u.content=s.message,u.segments=[{type:"text",content:s.message}]),u.streaming=!1,a(r,!1),N(i,t(o)),T&&(L().then(()=>{x(p)}),W.refreshAll().then(()=>{w&&V(`/${w.repo}/${w.entityType}/${w.entityId}`)}));break;case"error":u.content+=`
|
|
3
3
|
|
|
4
4
|
Error: ${s.message}`,u.streaming=!1,a(r,!1),N(i,t(o));break}},A.signal)}function $(){if(!t(r))return;fetch("/api/chat/abort",{method:"POST",credentials:"include"}).catch(()=>{}),A?.abort(),A=null,a(r,!1);const e=t(o)[t(o).length-1];e?.streaming&&(e.streaming=!1,t(n)&&N(t(n),t(o)))}function Y(){$(),a(o,[],!0),t(n)&&t(f)&&N(t(n),t(o))}function Z(e){const d=b().filter(l=>l.id!==e);if(_(d),t(n)===e){const l=d.sort((T,w)=>w.updatedAt.localeCompare(T.updatedAt));l.length>0?(a(n,l[0].id,!0),a(o,l[0].messages.map(T=>({...T,streaming:!1})),!0),a(f,!0)):(a(n,null),a(o,[],!0),a(f,!1))}}function j(e){const d=b().find(l=>l.id===e);d&&($(),a(n,d.id,!0),a(o,d.messages.map(l=>({...l,streaming:!1})),!0),a(f,!0))}function q(){return b().sort((e,i)=>i.updatedAt.localeCompare(e.updatedAt)).map(e=>({id:e.id,title:e.title,createdAt:e.createdAt,updatedAt:e.updatedAt,preview:e.messages.find(i=>i.role==="user")?.content.slice(0,80)||"",count:e.messages.length,active:e.id===t(n)}))}return{get messages(){return t(o)},get streaming(){return t(r)},get mutationCount(){return t(p)},get scrollTick(){return t(m)},get forceScroll(){return t(k)},triggerScroll(){x(k)},get highlightedIds(){return t(O)},get activeSessionId(){return t(n)},get draftInput(){return t(C)},set draftInput(e){a(C,e,!0)},send:K,stop:$,clear:Y,newSession:M,deleteSession:Z,getSessions:q,loadSession:j}}const te=B();export{te as chatStore};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as e}from"./
|
|
1
|
+
import{s as e}from"./DvXcXwP6.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BTX2Jr8_.js","./CT6oIU-C.js","./CJ8__CWt.js","./DGbA7IXh.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as Y}from"./PPVm8Dsz.js";import{aY as G,aC as A,aX as X,e as S,f as P,g,s as c,a6 as D,u as q}from"./CT6oIU-C.js";import{i as z}from"./
|
|
2
|
+
import{_ as Y}from"./PPVm8Dsz.js";import{aY as G,aC as A,aX as X,e as S,f as P,g,s as c,a6 as D,u as q}from"./CT6oIU-C.js";import{i as z}from"./DvXcXwP6.js";import{i as H,w as h}from"./CJ8__CWt.js";import{a as K}from"./DbbB6Up5.js";import{n as $}from"./4Hhzb6pv.js";import{l as Q,o as N}from"./iDtAARVW.js";function At(...t){return t.filter(Boolean).join(" ")}const Z=typeof document<"u",v=typeof window<"u"?window:void 0;function tt(t){let e=t.activeElement;for(;e?.shadowRoot;){const s=e.shadowRoot.activeElement;if(s===e)break;e=s}return e}class et{#e;#t;constructor(e={}){const{window:s=v,document:i=s?.document}=e;s!==void 0&&(this.#e=i,this.#t=Q(n=>{const r=N(s,"focusin",n),o=N(s,"focusout",n);return()=>{r(),o()}}))}get current(){return this.#t?.(),this.#e?tt(this.#e):null}}new et;class st{#e;#t;constructor(e){this.#e=e,this.#t=Symbol(e)}get key(){return this.#t}exists(){return G(this.#t)}get(){const e=A(this.#t);if(e===void 0)throw new Error(`Context "${this.#e}" not found`);return e}getOr(e){const s=A(this.#t);return s===void 0?e:s}set(e){return X(this.#t,e)}}const it=new st("<Toaster/>");let U=0;class nt{#e=S(P([]));get toasts(){return g(this.#e)}set toasts(e){c(this.#e,e,!0)}#t=S(P([]));get heights(){return g(this.#t)}set heights(e){c(this.#t,e,!0)}#s=e=>{const s=this.toasts.findIndex(i=>i.id===e);return s===-1?null:s};addToast=e=>{Z&&this.toasts.unshift(e)};updateToast=({id:e,data:s,type:i,message:n})=>{const r=this.toasts.findIndex(f=>f.id===e),o=this.toasts[r];this.toasts[r]={...o,...s,id:e,title:n,type:i,updated:!0}};create=e=>{const{message:s,...i}=e,n=typeof e?.id=="number"||e.id&&e.id?.length>0?e.id:U++,r=e.dismissible!==void 0?e.dismissible:e.dismissable!==void 0?e.dismissable:!0,o=e.type===void 0?"default":e.type;return D(()=>{this.toasts.find(E=>E.id===n)?this.updateToast({id:n,data:e,type:o,message:s,dismissible:r}):this.addToast({...i,id:n,title:s,dismissible:r,type:o})}),n};dismiss=e=>(D(()=>{if(e===void 0){this.toasts=this.toasts.map(i=>({...i,dismiss:!0}));return}const s=this.toasts.findIndex(i=>i.id===e);this.toasts[s]&&(this.toasts[s]={...this.toasts[s],dismiss:!0})}),e);remove=e=>{if(e===void 0){this.toasts=[];return}const s=this.#s(e);if(s!==null)return this.toasts.splice(s,1),e};message=(e,s)=>this.create({...s,type:"default",message:e});error=(e,s)=>this.create({...s,type:"error",message:e});success=(e,s)=>this.create({...s,type:"success",message:e});info=(e,s)=>this.create({...s,type:"info",message:e});warning=(e,s)=>this.create({...s,type:"warning",message:e});loading=(e,s)=>this.create({...s,type:"loading",message:e});promise=(e,s)=>{if(!s)return;let i;s.loading!==void 0&&(i=this.create({...s,promise:e,type:"loading",message:typeof s.loading=="string"?s.loading:s.loading()}));const n=e instanceof Promise?e:e();let r=i!==void 0;return n.then(o=>{if(typeof o=="object"&&o&&"ok"in o&&typeof o.ok=="boolean"&&!o.ok){r=!1;const f=rt(o);this.create({id:i,type:"error",message:f})}else if(s.success!==void 0){r=!1;const f=typeof s.success=="function"?s.success(o):s.success;this.create({id:i,type:"success",message:f})}}).catch(o=>{if(s.error!==void 0){r=!1;const f=typeof s.error=="function"?s.error(o):s.error;this.create({id:i,type:"error",message:f})}}).finally(()=>{r&&(this.dismiss(i),i=void 0),s.finally?.()}),i};custom=(e,s)=>{const i=s?.id||U++;return this.create({component:e,id:i,...s}),i};removeHeight=e=>{this.heights=this.heights.filter(s=>s.toastId!==e)};setHeight=e=>{const s=this.#s(e.toastId);if(s===null){this.heights.push(e);return}this.heights[s]=e};reset=()=>{this.toasts=[],this.heights=[]}}function rt(t){return t&&typeof t=="object"&&"status"in t?`HTTP error! Status: ${t.status}`:`Error! ${t}`}const d=new nt;function ot(t,e){return d.create({message:t,...e})}class Pt{#e=q(()=>d.toasts.filter(e=>!e.dismiss));get toasts(){return g(this.#e)}}function Dt(){return it.get()}const ct=ot,u=Object.assign(ct,{success:d.success,info:d.info,warning:d.warning,error:d.error,custom:d.custom,message:d.message,promise:d.promise,dismiss:d.dismiss,loading:d.loading,getActiveToasts:()=>d.toasts.filter(t=>!t.dismiss)}),at=800;function ut(){let t=S(!1),e=S(null),s=S(null),i=null,n=null,r=!1;function o(p,w,m,l){i&&i.repo===p&&i.type===w&&i.id===m?(l.data!==void 0&&(i.payload.data=l.data),l.content!==void 0&&(i.payload.content=l.content)):i={repo:p,type:w,id:m,payload:{...l}},f()}function f(){n&&clearTimeout(n),n=setTimeout(E,at)}async function E(){if(n=null,!r&&i){const{repo:p,type:w,id:m,payload:l}=i;i=null,r=!0,c(t,!0),c(s,null);try{if(await H(p,w,m,l),c(e,new Date,!0),l.data?.name){const b=h.repos.find(C=>C.name===p)?.entities.find(C=>C.id===m);b&&(b.title=l.data.name)}}catch(y){c(s,y.message??"Save failed",!0);const b=y.status??y.statusCode;(!b||b>=500)&&(i={repo:p,type:w,id:m,payload:l})}finally{c(t,!1),r=!1,i&&E()}}}function J(){n&&(clearTimeout(n),n=null),i&&E()}async function L(p,w,m,l){c(t,!0),c(s,null);try{const y=await H(p,w,m,l);return c(e,new Date,!0),y}catch(y){return c(s,y.message??"Save failed",!0),null}finally{c(t,!1)}}function V(){c(s,null),c(e,null),i=null,n&&(clearTimeout(n),n=null)}return{get saving(){return g(t)},get lastSaved(){return g(e)},get error(){return g(s)},get hasPending(){return!!(i||r)},scheduleAutoSave:o,flush:J,saveEntity:L,reset:V}}const lt=ut();let a=null,B=null,R=null,F=[],I=null,_=1e3,k=S(!1),W=S(null);const T=new Map,x={},O={};function j(t,e){T.delete(t);const s=e.entities.length,i=s===1?`${t} updated ${e.entities[0]}`:`${t} updated ${s} entities`;u(i)}function dt(t){for(const[e,s]of T)s.repo===t&&(clearTimeout(s.timer),T.delete(e))}function ft(t){const e=K.user?.displayName;if(t.type==="sync_progress"){const s=x[t.repo];if(s){const i=t.message.trim(),n=i.match(/^Syncing from source:\s*(.+)$/i);n&&(O[t.repo]=`Syncing ${n[1].trim()}…`);const r=O[t.repo]??`Syncing ${t.repo}…`;u.loading(r,{id:s,description:i,duration:36e5})}return}if(t.type==="entity_change"){if(e&&t.actor===e&&t.source==="api"){h.refreshEntities(t.repo);return}if(h.refreshEntities(t.repo),$.selectedRepo===t.repo&&$.selectedType===t.entityType&&$.selectedId===t.entityId){lt.hasPending?u(`${t.actor} also saved changes to this entity`):z();return}const i=T.get(t.actor);if(i)clearTimeout(i.timer),i.entities.includes(t.entityId)||i.entities.push(t.entityId),i.timer=setTimeout(()=>j(t.actor,i),1e4);else{const n={entities:[t.entityId],repo:t.repo,timer:setTimeout(()=>j(t.actor,n),1e4)};T.set(t.actor,n)}return}if(t.type==="session_commit"){if(e&&t.actor===e){c(W,t.timestamp,!0);return}const s=t.entities.length,i=s===1?`${t.actor} saved changes to ${t.entities[0]}`:`${t.actor} saved ${s} changes in ${t.repo}`;u(i),h.refreshEntities(t.repo);return}if(t.type==="sync_complete"){if(dt(t.repo),!x[t.repo]){const s=t.created+t.updated+t.deleted,i=s===0?`Sync complete · no changes in ${t.repo}`:`Sync complete · ${s} ${s===1?"entity":"entities"} from ${t.source}`;u.success(i)}h.refreshEntities(t.repo);return}if(t.type==="collection_created"){u(`${t.actor} created collection ${t.repo}`),h.refreshEntities(t.repo);return}if(t.type==="collection_deleted"){u(`${t.actor} deleted collection ${t.repo}`);return}if(t.type==="repo_sync"){u(`${t.actor} pushed to ${t.repo}`),h.refreshEntities(t.repo);return}if(t.type==="presence"){B?.(t);return}if(t.type==="online"){R?.(t);return}if(t.type==="insights_updated"){Y(()=>import("./BTX2Jr8_.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(s=>s.insightsStore.load());return}if(t.type==="access_granted"||t.type==="access_revoked"){t.type==="access_revoked"&&$.selectedRepo===t.repo&&$.deselect(),h.load();return}}function M(){if(typeof window>"u"||a&&(a.readyState===WebSocket.OPEN||a.readyState===WebSocket.CONNECTING))return;const e=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/ws`;a=new WebSocket(e),a.binaryType="arraybuffer",a.onopen=()=>{c(k,!0),_=1e3,h.refreshAll();for(const s of F)s()},a.onmessage=s=>{if(!(s.data instanceof ArrayBuffer))try{const i=JSON.parse(s.data);if(i?.type==="ping"){a?.send(JSON.stringify({type:"pong"}));return}const n=i;n.type&&n.type!=="toast"&&ft(n)}catch{}},a.onclose=()=>{c(k,!1),a=null,I=setTimeout(()=>{_=Math.min(_*2,1e4),M()},_)},a.onerror=()=>{}}function ht(){I&&(clearTimeout(I),I=null),a&&(a.close(),a=null),c(k,!1);for(const[,t]of T)clearTimeout(t.timer);T.clear()}function pt(t,e=4e3){u(t,{duration:e})}function mt(t,e){const s=crypto.randomUUID();return e?.loading?u.loading(t,{id:s,duration:36e5}):u(t,{id:s}),s}function yt(t,e,s){if(s?.loading){u.loading(e,{id:t});return}/failed|error/i.test(e)?u.error(e,{id:t,duration:s?.duration??6e3}):u.success(e,{id:t,duration:s?.duration??4e3})}function gt(t){const e=crypto.randomUUID();x[t]=e,u.loading(`Syncing ${t}…`,{id:e,duration:36e5})}function wt(t,e,s){const i=x[t];i&&(delete x[t],delete O[t],s?u.error(e,{id:i,duration:6e3}):u.success(e,{id:i,duration:4e3}))}function St(t){B=t}function Tt(t){R=t}function Et(t){F.push(t)}function bt(t){a?.readyState===WebSocket.OPEN&&a.send(JSON.stringify(t))}const Ht={get connected(){return g(k)},get lastAutoSaved(){return g(W)},get ws(){return a},connect:M,disconnect:ht,showToast:pt,showPersistentToast:mt,updateToast:yt,startSyncToast:gt,finishSyncToast:wt,send:bt,setPresenceHandler:St,setOnlineHandler:Tt,addConnectHandler:Et};export{Pt as S,d as a,At as c,lt as e,Ht as r,it as s,u as t,Dt as u};
|