@origintrail-official/dkg-node-ui 10.0.23 → 10.0.25

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 (42) hide show
  1. package/README.md +4 -0
  2. package/dist-ui/assets/ActivityFeed-vyl2XdLo.js +99 -0
  3. package/dist-ui/assets/{AgentHub-DyF5Pa70.js → AgentHub-CYfAoOWF.js} +1 -1
  4. package/dist-ui/assets/AgentProfilePage-BjQm0je4.js +1 -0
  5. package/dist-ui/assets/{ApproveWalletsModal-Dd_tHLRP.js → ApproveWalletsModal-CzWJ4KyU.js} +1 -1
  6. package/dist-ui/assets/{ContextGraphPrimitives-BXormriD.js → ContextGraphPrimitives-ecppTns4.js} +1 -1
  7. package/dist-ui/assets/{ConvictionDetailView-BsPTd17P.js → ConvictionDetailView-CuLUhbzR.js} +2 -2
  8. package/dist-ui/assets/MemoryLayerView-Dymg_Zf_.js +2 -0
  9. package/dist-ui/assets/MemoryReadStatus-D4HXCImC.js +1 -0
  10. package/dist-ui/assets/MemoryStackView-Bq8Fbh5W.js +1 -0
  11. package/dist-ui/assets/{Network-BKvJttOu.js → Network-F76S9_1V.js} +1 -1
  12. package/dist-ui/assets/{OnChainProvenanceCard-BV9-G1cT.js → OnChainProvenanceCard-CCwK3sRG.js} +1 -1
  13. package/dist-ui/assets/{Operations-LAhUQsnj.js → Operations-aVCBUh8u.js} +1 -1
  14. package/dist-ui/assets/ProjectView-Cb1PQ-jm.js +290 -0
  15. package/dist-ui/assets/{PublishingConviction-CF6352oT.js → PublishingConviction-BnAJjHL8.js} +2 -2
  16. package/dist-ui/assets/{Settings-runaZqPv.js → Settings-rEyPw1oS.js} +1 -1
  17. package/dist-ui/assets/{browserWalletTransaction-CBgx0i4w.js → browserWalletTransaction-BJBFRjXx.js} +3 -3
  18. package/dist-ui/assets/{ccip-BM07w5uU.js → ccip-DYOqJfs7.js} +1 -1
  19. package/dist-ui/assets/index-CAdbSAQK.css +1 -0
  20. package/dist-ui/assets/index-HEpqHVfE.js +1143 -0
  21. package/dist-ui/assets/index-_vQ99L0s.js +192 -0
  22. package/dist-ui/assets/{jsonld-32FQRO67-DBZOBQji.js → jsonld-32FQRO67-DVqZhSL_.js} +2 -2
  23. package/dist-ui/assets/{jsonld-DOX7dKpf.js → jsonld-Dpm03cay.js} +1 -1
  24. package/dist-ui/assets/renderer-3d-IRPVRQWX-DjW_h88e.js +5126 -0
  25. package/dist-ui/assets/{shikiHighlighter-CzU2U2Tx.js → shikiHighlighter-DL7LOds2.js} +1 -1
  26. package/dist-ui/assets/truncate-BWdqLeqV.js +22 -0
  27. package/dist-ui/assets/{useEntityOnChainReceipt-BvWQ6qdT.js → useEntityOnChainReceipt-B_uLyqZc.js} +5 -5
  28. package/dist-ui/index.html +2 -2
  29. package/package.json +4 -4
  30. package/dist-ui/assets/3d-force-graph-DbVwxMKf.js +0 -1015
  31. package/dist-ui/assets/ActivityFeed-Bfg6fmQQ.js +0 -99
  32. package/dist-ui/assets/AgentProfilePage-BPrSuKjV.js +0 -1
  33. package/dist-ui/assets/MemoryLayerView-CloJeM33.js +0 -2
  34. package/dist-ui/assets/MemoryStackView-BbUJ2uiM.js +0 -1
  35. package/dist-ui/assets/ProjectView-0zCSblAV.js +0 -290
  36. package/dist-ui/assets/index-CfVUpsfM.js +0 -192
  37. package/dist-ui/assets/index-MQh8C4aJ.js +0 -1175
  38. package/dist-ui/assets/index-xKO-U_eV.css +0 -1
  39. package/dist-ui/assets/renderer-3d-2EVDZII7-CVCpAmwB.js +0 -2
  40. package/dist-ui/assets/three.module-BXIk8GZS.js +0 -4112
  41. package/dist-ui/assets/truncate-BaiMkAOo.js +0 -1
  42. package/dist-ui/assets/useProjectActivity-Cxr4QGX1.js +0 -1
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-_vQ99L0s.js","assets/index-HEpqHVfE.js","assets/index-CAdbSAQK.css","assets/string-DtUow4KV.js","assets/OnChainProvenanceCard-CCwK3sRG.js","assets/useEntityOnChainReceipt-B_uLyqZc.js"])))=>i.map(i=>d[i]);
2
+ import{bj as i,a3 as be,ao as B,q as de,bN as ge,aU as e,R as K,bG as D,Y as xe,bM as q,ak as fe,bi as je,b7 as Ne,b9 as we,f as ye,bh as re,J as Se,I as ne,_ as Y,b1 as ke}from"./index-HEpqHVfE.js";import{l as he,t as me}from"./truncate-BWdqLeqV.js";const Ce={"application/pdf":"pdf","application/json":"text","text/plain":"text","text/csv":"text","text/markdown":"markdown","image/png":"image","image/jpeg":"image","image/gif":"image","image/webp":"image"};function ce(s){const c=Ce[s];return c?c==="markdown"?"text":c:"binary"}async function oe(s){const c=await fetch(s,{headers:de()});if(!c.ok)throw new Error(`HTTP ${c.status}`);const l=await c.blob();return URL.createObjectURL(l)}function Ee({open:s,onClose:c,assertionName:l,contextGraphId:x,subGraphName:d}){const[r,v]=i.useState(null),[N,C]=i.useState(null),[h,w]=i.useState(null),[y,p]=i.useState(!0),[b,S]=i.useState(null);i.useEffect(()=>{if(s)return p(!0),S(null),v(null),C(null),w(null),be(l,x,d).then(async g=>{v(g);const A=ce(g.detectedContentType),E=B(g.fileHash,g.detectedContentType);if(A==="text"){const t=await fetch(E,{headers:de()});t.ok&&C(await t.text())}else if(A==="pdf"||A==="image"){const t=await oe(E);w(t)}}).catch(g=>S(g.message??"Failed to load file info")).finally(()=>p(!1)),()=>{h&&URL.revokeObjectURL(h)}},[s,l,x,d]),i.useEffect(()=>()=>{h&&URL.revokeObjectURL(h)},[h]);const{dialogRef:n,onBackdropClick:u}=ge(s,c);if(!s)return null;const o=r?ce(r.detectedContentType):null,f=r?B(r.fileHash,r.detectedContentType):null,k=async(g,A)=>{try{const E=await oe(g),t=document.createElement("a");t.href=E,t.download=A,t.click(),URL.revokeObjectURL(E)}catch{window.open(g,"_blank")}};return e.jsx("div",{className:"v10-modal-overlay",onClick:u,role:"presentation",children:e.jsxs("div",{className:"v10-modal-box v10-file-preview-modal",ref:n,role:"dialog","aria-modal":"true","aria-labelledby":"dkg-file-preview-title",children:[e.jsxs("div",{className:"v10-modal-header",children:[e.jsx("div",{id:"dkg-file-preview-title",className:"v10-modal-title",children:l}),e.jsx("button",{type:"button",className:"v10-modal-close",onClick:c,"aria-label":"Close file preview",title:"Close (Esc)",children:"×"})]}),y&&e.jsx("div",{className:"v10-file-preview-loading",children:"Loading file preview..."}),b&&e.jsxs("div",{className:"v10-file-preview-error",children:[e.jsx("p",{children:b}),e.jsx("p",{style:{fontSize:11,marginTop:4},children:"File preview requires the extraction status to still be cached on the node. If the node was restarted, the preview metadata may be unavailable."})]}),r&&!y&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"v10-file-preview-meta",children:[e.jsx("span",{className:"v10-file-preview-meta-item",children:r.detectedContentType}),e.jsxs("span",{className:"v10-file-preview-meta-item",children:[r.tripleCount," triples extracted"]}),e.jsx("span",{className:"v10-file-preview-meta-item",children:r.pipelineUsed}),r.completedAt&&e.jsx("span",{className:"v10-file-preview-meta-item",children:new Date(r.completedAt).toLocaleString()})]}),e.jsxs("div",{className:"v10-file-preview-content",children:[o==="pdf"&&h&&e.jsx("iframe",{src:h,className:"v10-file-preview-iframe",title:`Preview: ${l}`}),o==="image"&&h&&e.jsx("img",{src:h,alt:l,className:"v10-file-preview-image"}),o==="text"&&N!=null&&e.jsx("pre",{className:"v10-file-preview-text",children:N}),o==="binary"&&e.jsxs("div",{className:"v10-file-preview-binary",children:[e.jsx("p",{children:"This file type cannot be previewed directly."}),f&&e.jsx("button",{className:"v10-file-preview-download",onClick:()=>k(f,l),children:"Download file"})]})]}),e.jsxs("div",{className:"v10-file-preview-footer",children:[f&&e.jsx("button",{className:"v10-file-preview-download",onClick:()=>k(f,l),children:"Download original"}),r.mdIntermediateHash&&e.jsx("button",{className:"v10-file-preview-download",onClick:()=>k(B(r.mdIntermediateHash,"text/markdown"),`${l}.md`),children:"Download markdown intermediate"})]})]})]})})}const Le=i.lazy(()=>Y(()=>import("./index-_vQ99L0s.js").then(s=>s.h),__vite__mapDeps([0,1,2,3])).then(s=>({default:s.RdfGraph}))),Pe=i.lazy(()=>Y(()=>import("./index-_vQ99L0s.js").then(s=>s.h),__vite__mapDeps([0,1,2,3])).then(s=>({default:s.NodePanel}))),Ae=i.lazy(()=>Y(()=>import("./OnChainProvenanceCard-CCwK3sRG.js"),__vite__mapDeps([4,1,2,0,3,5])).then(s=>({default:s.OnChainProvenanceCard}))),Re={wm:{label:"Working Memory",color:"var(--layer-working)",icon:"◇",description:"Private agent drafts. Fast local storage."},swm:{label:"Shared Working Memory",color:"var(--layer-shared)",icon:"◈",description:"Shared proposals with collaborators. TTL-bounded."},vm:{label:"Verifiable Memory",color:"var(--layer-verified)",icon:"◉",description:"Endorsed, published, on-chain knowledge."}},Te={labelMode:"humanized",renderer:"2d",labels:ke({extraPredicates:["http://schema.org/text"]}),style:{classColors:{"http://schema.org/Person":"#f472b6","http://schema.org/Organization":"#fb923c","http://schema.org/Place":"#34d399","http://schema.org/Product":"#c084fc","http://schema.org/Event":"#facc15","http://schema.org/CreativeWork":"#7dd3fc","http://schema.org/Thing":"#94a3b8"},defaultNodeColor:"#94a3b8",defaultEdgeColor:"#5f8598",edgeWidth:.9},hexagon:{baseSize:4,minSize:3,maxSize:6,scaleWithDegree:!0},focus:{maxNodes:3e3,hops:999}},Me=e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),e.jsx("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),e.jsx("line",{x1:"3",y1:"15",x2:"21",y2:"15"}),e.jsx("line",{x1:"9",y1:"3",x2:"9",y2:"21"})]}),_e=e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"6",cy:"6",r:"3"}),e.jsx("circle",{cx:"18",cy:"6",r:"3"}),e.jsx("circle",{cx:"6",cy:"18",r:"3"}),e.jsx("circle",{cx:"18",cy:"18",r:"3"}),e.jsx("line",{x1:"8.5",y1:"7.5",x2:"15.5",y2:"16.5"}),e.jsx("line",{x1:"15.5",y1:"7.5",x2:"8.5",y2:"16.5"})]});function Ie({layer:s,contextGraphId:c,externalQuery:l,externalQueryKey:x,queryPresetOptions:d}){var te,ae;const r=Re[s],[v,N]=i.useState("graph"),[C,h]=i.useState(""),[w,y]=i.useState(""),[p,b]=i.useState(""),[S,n]=i.useState(""),[u,o]=i.useState("any"),[f,k]=i.useState(50),[g,A]=i.useState(""),[E,t]=i.useState("any"),[m,L]=i.useState(50),[U,P]=i.useState(s!=="vm"),j=K.useRef(s);K.useEffect(()=>{j.current!==s&&(j.current=s,h(""),P(s!=="vm"),y(""),b(""),n(""),o("any"),k(50),A(""),t("any"),L(50))},[s]),K.useEffect(()=>{l!==void 0&&(h(""),y(l),b(l))},[l,x]);const W=i.useMemo(()=>s==="wm"?`SELECT ?s ?p ?o WHERE { GRAPH <${`did:dkg:context-graph:${c}/_meta`}> { ?g <http://dkg.io/ontology/memoryLayer> "WM" } GRAPH ?g { ?s ?p ?o } FILTER(!CONTAINS(STR(?g), "/meta/assertion/")) } LIMIT 1000`:s==="vm"?We({query:g,field:E,limit:m}):"SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 500",[c,s,E,m,g]),R=p||W,V=s==="swm"?"_shared_memory":void 0,H=s==="swm",J=s==="vm"?"verifiable-memory":void 0,X=s==="wm"&&R===W,Z=!!p,{data:M,loading:O,error:ee,refresh:T}=D(()=>xe(R,{contextGraphId:c,includeSharedMemory:H,graphSuffix:V,view:J,includeContextGraphPartitions:X},Z?{timeoutMs:null,maxResponseBytes:null}:{}),[R,c,H,V,J,X,Z],0);q(c,T,{layers:[s]});const{data:F}=D(fe,[],3e4),ue=F==null?void 0:F.blockExplorerUrl,se=i.useCallback(()=>{const a=w.trim();if(a===p){T();return}b(a)},[p,w,T]),le=i.useCallback(()=>{const a=S!==g||u!==E||f!==m;if(a&&(A(S),t(u),L(f)),p){b("");return}a||T()},[p,E,m,g,u,f,S,T]),_=((te=M==null?void 0:M.result)==null?void 0:te.bindings)??((ae=M==null?void 0:M.results)==null?void 0:ae.bindings)??[],z=i.useMemo(()=>_.map(a=>({subject:$(a.s)??"",predicate:$(a.p)??"",object:$(a.o)??""})).filter(a=>a.subject&&a.predicate&&a.object),[_]),ve=i.useCallback(a=>{a!=null&&a.id&&b(`SELECT (<${a.id}> AS ?s) ?p ?o WHERE { <${a.id}> ?p ?o } LIMIT 100`)},[]);return e.jsxs("div",{className:"v10-memory-layer-view",children:[e.jsxs("div",{className:"v10-mlv-header",children:[e.jsx("span",{className:"v10-mlv-icon",style:{color:r.color},children:r.icon}),e.jsxs("div",{children:[e.jsx("h2",{className:"v10-mlv-title",children:r.label}),e.jsx("p",{className:"v10-mlv-desc",children:r.description})]})]}),s==="wm"&&e.jsx($e,{contextGraphId:c,onPromoted:T}),s==="swm"&&e.jsx(Ue,{contextGraphId:c,onPublished:T}),s==="vm"&&e.jsxs("div",{className:"v10-vm-search-panel",children:[e.jsxs("div",{className:"v10-vm-search-header",children:[e.jsxs("div",{children:[e.jsx("div",{className:"v10-vm-search-title",children:"Search Verifiable Memory"}),e.jsx("div",{className:"v10-vm-search-desc",children:"Search published triples by subject, predicate, object, or across all fields."})]}),e.jsx("button",{className:"v10-vm-search-toggle",type:"button",onClick:()=>P(a=>!a),children:U?"Hide SPARQL":"Advanced SPARQL"})]}),e.jsxs("div",{className:"v10-vm-search-controls",children:[e.jsx("input",{type:"text",className:"v10-mlv-query-input",placeholder:"Search verifiable memory...",value:S,onChange:a=>n(a.target.value),onKeyDown:a=>{a.key==="Enter"&&le()}}),e.jsxs("select",{className:"v10-vm-search-select",value:u,onChange:a=>o(a.target.value),children:[e.jsx("option",{value:"any",children:"Any field"}),e.jsx("option",{value:"subject",children:"Subject"}),e.jsx("option",{value:"predicate",children:"Predicate"}),e.jsx("option",{value:"object",children:"Object"})]}),e.jsxs("select",{className:"v10-vm-search-select",value:String(f),onChange:a=>k(Number.parseInt(a.target.value,10)||50),children:[e.jsx("option",{value:"25",children:"25 rows"}),e.jsx("option",{value:"50",children:"50 rows"}),e.jsx("option",{value:"100",children:"100 rows"}),e.jsx("option",{value:"200",children:"200 rows"})]}),e.jsx("button",{className:"v10-mlv-run-btn",onClick:le,children:"Search"})]})]}),(s!=="vm"||U)&&e.jsxs("div",{className:"v10-mlv-query-bar",children:[d!=null&&d.length?e.jsxs("select",{className:"v10-vm-search-select",value:C,onChange:a=>{const I=a.target.value;h(I);const G=d.find(pe=>pe.label===I),ie=(G==null?void 0:G.query)??"";y(ie),b(ie)},children:[e.jsx("option",{value:"",children:"Select common query..."}),d.map(a=>e.jsx("option",{value:a.label,children:a.label},a.label))]}):e.jsx("input",{type:"text",className:"v10-mlv-query-input",placeholder:"Custom SPARQL query...",value:w,onChange:a=>y(a.target.value),onKeyDown:a=>{a.key==="Enter"&&se()}}),e.jsx("button",{className:"v10-mlv-run-btn",onClick:se,children:"Run"}),p&&e.jsx("button",{className:"v10-mlv-clear-btn",onClick:()=>b(""),title:"Reset to full layer overview",children:"Reset"}),e.jsxs("div",{className:"v10-mlv-view-toggle",children:[e.jsx("button",{className:`v10-mlv-toggle-btn ${v==="table"?"active":""}`,onClick:()=>N("table"),title:"Table view",children:Me}),e.jsx("button",{className:`v10-mlv-toggle-btn ${v==="graph"?"active":""}`,onClick:()=>N("graph"),title:"Graph view",children:_e})]})]}),O&&e.jsx("p",{className:"v10-mlv-status",children:"Loading..."}),ee&&e.jsxs("p",{className:"v10-mlv-status",style:{color:"var(--accent-red)"},children:["Error: ",ee]}),!O&&_.length===0&&e.jsxs("div",{className:"v10-mlv-empty",children:[e.jsxs("p",{children:["No triples found in ",r.label.toLowerCase(),"."]}),e.jsxs("p",{style:{fontSize:11,marginTop:4},children:[s==="wm"&&"Import files or chat with your agent to generate working memory.",s==="swm"&&"Promote assertions from working memory to share with collaborators.",s==="vm"&&"Publish shared memory to create verified on-chain knowledge."]})]}),!O&&_.length>0&&v==="table"&&e.jsxs("div",{className:"v10-mlv-table-wrap",children:[e.jsxs("div",{className:"v10-mlv-result-count",children:[_.length," triples"]}),e.jsxs("table",{className:"v10-mlv-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Subject"}),e.jsx("th",{children:"Predicate"}),e.jsx("th",{children:"Object"})]})}),e.jsx("tbody",{children:_.map((a,I)=>e.jsxs("tr",{children:[e.jsx("td",{className:"v10-mlv-cell",children:Q($(a.s))}),e.jsx("td",{className:"v10-mlv-cell",children:Q($(a.p))}),e.jsx("td",{className:"v10-mlv-cell",children:Q($(a.o))})]},I))})]})]}),!O&&z.length>0&&v==="graph"&&e.jsxs("div",{className:"v10-mlv-graph-container",children:[e.jsxs("div",{className:"v10-mlv-graph-info",children:[e.jsxs("span",{children:[z.length," triples"]}),p&&e.jsx("span",{className:"v10-mlv-graph-info-custom",children:"filtered"})]}),e.jsx(i.Suspense,{fallback:e.jsx("div",{className:"v10-mlv-graph-loading",children:"Loading graph renderer..."}),children:e.jsxs(Le,{data:z,format:"triples",options:Te,style:{width:"100%",height:"100%"},onNodeClick:ve,initialFit:!0,children:[e.jsx(Pe,{className:"v10-mlv-node-panel",showUri:!0,showTypes:!0,showProperties:!0,showMetadata:!1,maxValueLength:150}),e.jsx(Ae,{contextGraphId:c,layer:s,explorerUrl:ue})]})})]})]})}function $e({contextGraphId:s,onPromoted:c}){const{data:l,loading:x,refresh:d}=D(()=>he(s,"wm"),[s],0);q(s,d,{layers:["wm"]});const[r,v]=i.useState(null),[N,C]=i.useState(null),[h,w]=i.useState(null),[y,p]=i.useState(null),b=i.useCallback(async n=>{v(n.graphUri),C(null),w(null);try{const u=await re(s,n.name,n.subGraph?{subGraphName:n.subGraph}:{}),o=Se(n.name,u);C({message:o.message+(n.subGraph?` (in ${n.subGraph})`:""),kind:o.kind==="success"?"success":"noop",subGraph:n.subGraph}),d(),c()}catch(u){const o=ne(n.name,u);w(o?{message:o.message,kind:"not-persisted"}:{message:(u==null?void 0:u.message)??"Promote failed",kind:"other"})}finally{v(null)}},[s,d,c]),S=i.useCallback(async()=>{if(!(l!=null&&l.length))return;v("__all__"),C(null),w(null);let n=0,u=null;try{for(const k of l)u=k.name,(await re(s,k.name,k.subGraph?{subGraphName:k.subGraph}:{})).promotedCount===0&&(n+=1);const o=l.length-n,f=n>0?` (${n} already shared or still committing)`:"";C({message:o>0?`Shared ${o} complete Knowledge Asset${o===1?"":"s"} to Shared Working Memory${f}.`:"No Knowledge Assets were newly shared — all were already in Shared Working Memory or still committing.",kind:o>0?"success":"noop"}),d(),c()}catch(o){const f=ne(u??"selected assertion",o);w(f?{message:f.message,kind:"not-persisted"}:{message:(o==null?void 0:o.message)??"Promote failed",kind:"other"})}finally{v(null)}},[l,s,d,c]);return x?e.jsx("div",{className:"v10-assertion-list-loading",children:"Loading assertions..."}):l!=null&&l.length?e.jsxs("div",{className:"v10-assertion-list",children:[e.jsxs("div",{className:"v10-assertion-list-header",children:[e.jsxs("span",{className:"v10-assertion-list-title",children:["Assertions in Working Memory (",l.length,")"]}),e.jsx("button",{className:"v10-btn-promote-all",disabled:r!==null,onClick:S,children:r==="__all__"?"Sharing...":"Share Complete KAs → SWM"})]}),e.jsx("div",{className:"v10-assertion-items",children:l.map(n=>e.jsxs("div",{className:"v10-assertion-item",children:[e.jsxs("div",{className:"v10-assertion-item-info",children:[e.jsx("button",{className:"v10-assertion-item-name clickable",title:n.graphUri,onClick:()=>p({name:n.name,subGraph:n.subGraph}),children:n.name}),n.tripleCount!=null&&e.jsxs("span",{className:"v10-assertion-item-count",children:[n.tripleCount," triples"]}),n.subGraph&&e.jsxs("span",{className:"v10-item-count v10-item-subgraph",title:`In sub-graph: ${n.subGraph}`,children:["› ",me(n.subGraph,18)]})]}),e.jsx("button",{className:"v10-btn-promote",disabled:r!==null,onClick:()=>b(n),title:"Share this complete Knowledge Asset to Shared Working Memory",children:r===n.graphUri?"Promoting...":"→ SWM"})]},n.graphUri))}),N&&e.jsx("div",{className:N.kind==="success"?"v10-promote-result success":"v10-promote-result info",children:N.message}),h&&e.jsx("div",{className:"v10-promote-result error",children:h.message}),y&&e.jsx(Ee,{open:!0,onClose:()=>p(null),assertionName:y.name,subGraphName:y.subGraph,contextGraphId:s})]}):null}function Ue({contextGraphId:s,onPublished:c}){const{data:l,loading:x,refresh:d}=D(()=>he(s,"swm"),[s],0);q(s,d,{layers:["swm"]});const[r,v]=i.useState(new Set),[N,C]=i.useState(!1),[h,w]=i.useState(null),[y,p]=i.useState(null),b=(l==null?void 0:l.map(t=>t.graphUri))??[],S=b.length>0&&b.every(t=>r.has(t)),n=i.useCallback(t=>{v(m=>{const L=new Set(m);return L.has(t)?L.delete(t):L.add(t),L})},[]),u=i.useCallback(()=>{v(S?new Set:new Set(b))},[S,b]),o=i.useCallback(async t=>{if(t.length!==0){C(!0),w(null),p(null);try{w(await je(s,t)),v(new Set),d(),c()}catch(m){p((m==null?void 0:m.message)??"Publish failed")}finally{C(!1)}}},[s,d,c]),f=i.useCallback(()=>{const t=(l??[]).filter(m=>r.has(m.graphUri));return o(t)},[l,r,o]),k=i.useCallback(()=>o(l??[]),[l,o]),g=(l==null?void 0:l.reduce((t,m)=>t+(m.tripleCount??0),0))??0,A=(l==null?void 0:l.filter(t=>r.has(t.graphUri)).reduce((t,m)=>t+(m.tripleCount??0),0))??0,E=!x&&(!l||l.length===0);return x?e.jsx("div",{className:"v10-assertion-list-loading",children:"Loading SWM contents..."}):E?e.jsxs("div",{className:"v10-publish-panel",children:[e.jsx("div",{className:"v10-publish-panel-header",children:e.jsx("span",{className:"v10-publish-panel-title",children:"Publish to Verifiable Memory"})}),e.jsx("div",{className:"v10-publish-panel-empty",children:"No data in Shared Working Memory yet. Promote assertions from Working Memory first."})]}):e.jsxs("div",{className:"v10-publish-panel",children:[e.jsxs("div",{className:"v10-publish-panel-header",children:[e.jsxs("span",{className:"v10-publish-panel-title",children:["Knowledge assets in Shared Working Memory (",l.length," asset",l.length===1?"":"s"," · ",g," triples)"]}),e.jsxs("div",{className:"v10-publish-panel-header-actions",children:[e.jsx("button",{className:"v10-publish-panel-refresh",onClick:d,title:"Refresh",children:"↻"}),e.jsx("button",{className:"v10-btn-promote-all",disabled:N,onClick:k,children:N&&r.size===0?"Publishing...":"Publish All → VM"})]})]}),e.jsxs("div",{className:"v10-publish-select-bar",children:[e.jsxs("label",{className:"v10-publish-select-all",children:[e.jsx("input",{type:"checkbox",checked:S,onChange:u}),e.jsx("span",{children:"Select all"})]}),r.size>0&&e.jsx("button",{className:"v10-btn-publish",disabled:N,onClick:f,children:N?"Publishing...":`Publish ${r.size} selected (${A} triples) → VM`})]}),e.jsx("div",{className:"v10-assertion-items",children:l.map(t=>e.jsxs("div",{className:`v10-assertion-item ${r.has(t.graphUri)?"selected":""}`,children:[e.jsx("label",{className:"v10-publish-entity-check",children:e.jsx("input",{type:"checkbox",checked:r.has(t.graphUri),onChange:()=>n(t.graphUri)})}),e.jsxs("div",{className:"v10-assertion-item-info",children:[e.jsx("span",{className:"v10-assertion-item-name",title:t.graphUri,children:t.name}),t.subGraph&&e.jsxs("span",{className:"v10-item-count v10-item-subgraph",title:`In sub-graph: ${t.subGraph}`,children:["› ",me(t.subGraph,18)]}),t.tripleCount!=null&&e.jsxs("span",{className:"v10-assertion-item-count",children:[t.tripleCount," triples"]})]})]},t.graphUri))}),h&&(()=>{const{published:t,total:m,partial:L,partialError:U,failures:P,sample:j,convictionCostCovered:W}=h,R=Ne(h),V=t===m&&t>0&&L===0,H=(j==null?void 0:j.status)==="confirmed"&&!!j.txHash;return e.jsxs("div",{className:`v10-publish-result-card ${V?"success":"error"}`,children:[e.jsx("div",{className:"v10-publish-result-title",children:t>0?`Published ${t} of ${m} knowledge asset${m===1?"":"s"} to Verifiable Memory`:R&&P.length===0?"Publish outcome unknown":"NOT published to Verifiable Memory"}),L>0&&e.jsxs("div",{className:"v10-publish-result-details",style:{marginBottom:6},children:["⚠ ",L," asset",L===1?"":"s",": ",we(U)]}),P.length>0&&e.jsxs("div",{className:"v10-publish-result-details",style:{marginBottom:6},children:[P.length," asset",P.length===1?"":"s"," could not be published — ",P[0].name,": ",P[0].error,P.length>1?` (+${P.length-1} more)`:""]}),R&&e.jsxs("div",{className:"v10-publish-result-details",style:{marginBottom:6},children:["⚠ ",R]}),e.jsxs("div",{className:"v10-publish-result-details",children:[(j==null?void 0:j.kaId)!=null&&e.jsxs("div",{children:[e.jsx("span",{className:"v10-publish-result-label",children:"Knowledge Asset:"})," ",j.kaId]}),H?e.jsxs("div",{className:"v10-publish-result-tx",children:[e.jsx("span",{className:"v10-publish-result-label",children:"Tx hash:"})," ",e.jsx("span",{className:"mono",title:j.txHash,children:j.txHash}),j.blockNumber!=null&&e.jsxs("span",{className:"v10-publish-result-block",children:[" (block ",j.blockNumber,")"]})]}):e.jsxs("div",{className:"v10-publish-result-details",children:["Verifiable Memory requires a confirmed ",e.jsx("code",{children:"KCCreated"})," event. If a publish did not land on-chain, check the node logs (typically a missing publisher wallet, an unfunded signer, or a chain adapter that isn't V10-ready)."]}),e.jsx(ye,{convictionCostCovered:W})]})]})})(),y&&e.jsx("div",{className:"v10-publish-result-card error",children:y})]})}function $(s){if(s!=null)return typeof s=="string"?s:typeof s=="object"&&"value"in s?String(s.value):String(s)}function Q(s){if(!s)return"—";const c=s.lastIndexOf("#"),l=s.lastIndexOf("/"),x=Math.max(c,l);return x>=0?s.slice(x+1):s}function We(s){const c=Number.isFinite(s.limit)&&s.limit>0?Math.floor(s.limit):50,l=s.query.trim();if(!l)return`SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT ${c}`;const x=Ve(l.toLowerCase()),d={subject:`CONTAINS(LCASE(STR(?s)), "${x}")`,predicate:`CONTAINS(LCASE(STR(?p)), "${x}")`,object:`CONTAINS(LCASE(STR(?o)), "${x}")`};return`SELECT ?s ?p ?o WHERE { ?s ?p ?o . FILTER(${s.field==="any"?`(${d.subject} || ${d.predicate} || ${d.object})`:d[s.field]}) } LIMIT ${c}`}function Ve(s){return s.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r")}export{Ie as MemoryLayerView,Ue as PublishPanel};
@@ -0,0 +1 @@
1
+ import{bj as v,v as w,bC as M,aU as p}from"./index-HEpqHVfE.js";const E=["http://purl.org/dc/terms/created","http://dkg.io/ontology/github/mergedAt","http://dkg.io/ontology/github/closedAt","http://dkg.io/ontology/decisions/date","http://dkg.io/ontology/tasks/dueDate"],U="http://www.w3.org/ns/prov#wasAttributedTo",I=new Set(["http://dkg.io/ontology/decisions/Decision","http://dkg.io/ontology/tasks/Task","http://dkg.io/ontology/github/PullRequest","http://dkg.io/ontology/github/Issue","http://dkg.io/ontology/github/Commit"]);function m(e){const s=e.replace(/^"|"$/g,"").replace(/^"(.+)"(?:@\w+|\^\^.+)?$/,"$1"),a=new Date(s);return Number.isFinite(a.getTime())?a:null}function y(e,s,a,o){const r=a?a.toISOString():"no-ts";return o&&o!==s?`${e}|${s}|${o}|${r}`:`${e}|${s}|${r}`}function G(e){for(const s of E){const a=e.properties.get(s);if(a!=null&&a.length)for(const o of a){const r=m(o);if(r)return r}}return null}function S(e){for(const s of e.connections)if(s.predicate===U)return s.targetUri;return null}function A(e){for(const s of e.types)if(I.has(s))return s;return null}function $(e){for(const s of e.subGraphs)if(s!=="meta")return s;return null}function x(e,s={}){const{limit:a=200,agentUri:o,typeIri:r,subGraph:d,includeUndated:n=!0,excludeEvents:t}=s,l=t?[...t].sort().join(","):"";return v.useMemo(()=>{const f=t&&t.length>0?new Set(t):null,i=[];for(const u of e){const c=A(u);if(r&&c!==r)continue;const h=G(u);if(!h&&(!n||!c))continue;const b=S(u);if(o&&b!==o)continue;const T=$(u);if(d&&T!==d)continue;const g=c?"typed":"added";if(f&&f.has(g))continue;const k=y(g,u.uri,h);i.push({id:k,entity:u,at:h,authorUri:b,kindUri:c,subGraph:T,layer:u.trustLevel,event:g,clickable:!0})}return i.sort((u,c)=>u.at&&c.at?c.at.getTime()-u.at.getTime():u.at&&!c.at?-1:!u.at&&c.at?1:u.entity.label.localeCompare(c.entity.label)),{items:i.slice(0,a),hasMore:i.length>a}},[e,a,o,r,d,n,l])}function P(e,s=new Date){const a=i=>{const u=new Date(i);return u.setHours(0,0,0,0),u},o=a(s),r=new Date(o.getTime()-1440*60*1e3),d=new Date(o.getTime()-10080*60*1e3),n={},t=[],l=(i,u,c)=>{n[i]||(n[i]={key:i,label:u,items:[]},t.push(i)),n[i].items.push(c)};for(const i of e){if(!i.at){l("undated","Undated",i);continue}const u=a(i.at);if(u.getTime()===o.getTime())l("today","Today",i);else if(u.getTime()===r.getTime())l("yesterday","Yesterday",i);else if(i.at.getTime()>=d.getTime())l("this-week","Earlier this week",i);else{const c=i.at.toLocaleString(void 0,{month:"long",year:"numeric"});l(`m-${c}`,c,i)}}const f=t.indexOf("undated");return f!==-1&&f<t.length-1&&(t.splice(f,1),t.push("undated")),t.map(i=>n[i])}function D(e,s){const{entitiesByUri:a,agentUri:o,subGraph:r,limit:d=200}=s,n=[];for(const t of e){if(o&&t.agent!==o||r&&t.subGraph!==r)continue;const l=m(t.publishedAt);if(!l)continue;const f=w(t.rootUri),i=a.get(f),u=i!=null;n.push({id:y("promoted",t.opUri,l,f),entity:i??C(f),at:l,authorUri:t.agent,kindUri:null,subGraph:t.subGraph??null,layer:"shared",event:"promoted",clickable:u})}return n.sort((t,l)=>t.at&&l.at?l.at.getTime()-t.at.getTime():t.at&&!l.at?-1:!t.at&&l.at?1:t.entity.label.localeCompare(l.entity.label)),n.slice(0,d)}function C(e){return{uri:e,label:M(e),types:[],trustLevel:"shared",layers:new Set(["shared"]),subGraphs:new Set,properties:new Map,connections:[]}}function N(e,s={}){const{agentUri:a,subGraph:o,limit:r=200}=s,d=[];for(const n of e){if(a&&n.agentUri!==a||o&&n.subGraph!==o)continue;const t=m(n.publishedAt);if(!t)continue;const l=n.kind==="promoted"?"promoted":"added",f=n.kind==="promoted"?"shared":"working",i=w(n.assertionUri);d.push({id:y(l,n.eventUri,t,i),entity:{uri:i,label:n.assertionName||M(i),types:[],trustLevel:f,layers:new Set([f]),subGraphs:n.subGraph?new Set([n.subGraph]):new Set,properties:new Map,connections:[]},at:t,authorUri:n.agentUri,kindUri:null,subGraph:n.subGraph??null,layer:f,event:l,entityCount:n.entityCount,clickable:!1})}return d.sort((n,t)=>n.at&&t.at?t.at.getTime()-n.at.getTime():n.at&&!t.at?-1:!n.at&&t.at?1:n.entity.label.localeCompare(t.entity.label)),d.slice(0,r)}function R(e,s={}){const{swmEvents:a,lifecycleEvents:o,...r}=s,d=o!=null,t=x(e,{...r,excludeEvents:d?["added"]:void 0});return v.useMemo(()=>{const l=r.limit??200;if(s.typeIri)return{items:t.items,hasMore:t.hasMore};if(!d&&(!a||a.length===0))return{items:t.items,hasMore:t.hasMore};let f;if(d)f=N(o,{agentUri:r.agentUri,subGraph:r.subGraph,limit:Number.POSITIVE_INFINITY});else{const c=new Map;for(const h of e)c.set(h.uri,h);f=D(a,{entitiesByUri:c,agentUri:r.agentUri,subGraph:r.subGraph,limit:Number.POSITIVE_INFINITY})}const i=[...t.items,...f];i.sort((c,h)=>c.at&&h.at?h.at.getTime()-c.at.getTime():c.at&&!h.at?-1:!c.at&&h.at?1:c.entity.label.localeCompare(h.entity.label));const u=t.hasMore||i.length>l;return{items:i.slice(0,l),hasMore:u}},[t,a,o,d,e,r.agentUri,r.subGraph,r.limit,s.typeIri])}function j(e,s=new Date){if(!e)return"—";const a=s.getTime()-e.getTime(),o=Math.abs(a),r=a<0,d=6e4,n=d*60,t=n*24;return o<d?r?"in a moment":"just now":o<n?r?`in ${Math.floor(o/d)}m`:`${Math.floor(o/d)}m ago`:o<t?r?`in ${Math.floor(o/n)}h`:`${Math.floor(o/n)}h ago`:o<7*t?r?`in ${Math.floor(o/t)}d`:`${Math.floor(o/t)}d ago`:e.toLocaleDateString(void 0,{month:"short",day:"numeric"})}function L({memory:e}){return!e.partial&&!e.pageError?null:p.jsxs("div",{className:"v10-stale-banner",role:"status",children:[p.jsx("span",{children:e.pageError??e.limitMessage??"Only loaded memory is shown. Per-layer counts may change as more memory loads; recent entries are from this preview."}),e.hasMore&&p.jsx("button",{type:"button",className:"v10-retry-btn",disabled:e.loading,onClick:e.loadMore,children:e.loading?"Loading…":"Load more graph data"}),e.canRetry&&p.jsx("button",{type:"button",className:"v10-retry-btn",disabled:e.loading,onClick:e.refresh,children:e.loading?"Loading…":"Retry memory read"})]})}export{L as M,P as b,j as r,R as u};
@@ -0,0 +1 @@
1
+ import{bS as u,bH as x,bj as v,aU as e,bL as j,bT as b,bK as y}from"./index-HEpqHVfE.js";import{M as N,r as f}from"./MemoryReadStatus-D4HXCImC.js";const k=[{key:"working",title:"Working Memory",short:"WM",icon:"◇",color:"#64748b",desc:"Private agent drafts",tabPrefix:"wm"},{key:"shared",title:"Shared Working Memory",short:"SWM",icon:"◈",color:"#f59e0b",desc:"Team proposals",tabPrefix:"swm"},{key:"verified",title:"Verifiable Memory",short:"VM",icon:"◉",color:"#22c55e",desc:"On-chain knowledge",tabPrefix:"vm"}],g=["http://purl.org/dc/terms/created","http://dkg.io/ontology/github/mergedAt","http://dkg.io/ontology/github/closedAt","http://dkg.io/ontology/decisions/date","http://dkg.io/ontology/tasks/dueDate"];function T(){const{contextGraphs:s}=u(),{hidden:t}=x(),i=v.useMemo(()=>s.filter(a=>!t.has(a.id)),[s,t]);return e.jsxs("div",{className:"v10-memstack",children:[e.jsxs("div",{className:"v10-memstack-head",children:[e.jsx("h1",{className:"v10-memstack-title",children:"Memory Stack"}),e.jsxs("p",{className:"v10-memstack-sub",children:["Every layer across every context graph, at a glance. ",i.length," visible context graph",i.length===1?"":"s"," · hidden context graphs are skipped."]})]}),i.length===0?e.jsx("div",{className:"v10-memstack-empty",children:"No visible context graphs. Create one from the sidebar or un-hide dismissed ones."}):e.jsxs("div",{className:"v10-memstack-table",children:[e.jsxs("div",{className:"v10-memstack-colheads",children:[e.jsx("div",{className:"v10-memstack-colhead project"}),k.map(a=>e.jsxs("div",{className:"v10-memstack-colhead",style:{color:a.color},children:[e.jsx("span",{className:"v10-memstack-colhead-icon",children:a.icon}),e.jsx("span",{className:"v10-memstack-colhead-title",children:a.title}),e.jsx("span",{className:"v10-memstack-colhead-desc",children:a.desc})]},a.key))]}),i.map(a=>e.jsx(M,{cg:a},a.id))]})]})}function M({cg:s}){const t=j(s.id),{openTab:i}=b(),a=y(t),r=v.useMemo(()=>{const c={working:{entities:[],tripleCount:a.wm},shared:{entities:[],tripleCount:a.swm},verified:{entities:[],tripleCount:a.vm}};for(const l of t.entityList)c[l.trustLevel].entities.push(l);for(const l of Object.keys(c))c[l].entities.sort((m,o)=>{const n=h(m),p=h(o);return n&&p?p-n:n?-1:p?1:m.label.localeCompare(o.label)});return c},[t.entityList,a]),d=()=>i({id:`project:${s.id}`,label:s.name||s.id.slice(0,16),closable:!0});return e.jsxs("div",{className:"v10-memstack-row",children:[e.jsxs("div",{className:"v10-memstack-project",children:[e.jsxs("button",{type:"button",className:"v10-memstack-project-btn",onClick:d,children:[e.jsx("span",{className:"v10-memstack-project-dot"}),e.jsx("span",{className:"v10-memstack-project-name",children:s.name||s.id})]}),s.description&&e.jsx("div",{className:"v10-memstack-project-desc",title:s.description,children:s.description}),t.loading&&!t.entityList.length&&e.jsx("div",{className:"v10-memstack-project-status",children:"loading…"}),t.error&&e.jsx("div",{className:"v10-memstack-project-status error",children:t.error}),e.jsx(N,{memory:t})]}),k.map(c=>{const l=r[c.key];return e.jsx(w,{cgId:s.id,color:c.color,layerTitle:c.title,tabPrefix:c.tabPrefix,entityCount:l.entities.length,tripleCount:l.tripleCount,recent:l.entities.slice(0,4),partial:t.partial||t.loading,onOpenLayer:()=>i({id:`${c.tabPrefix}:${s.id}`,label:`${c.short} · ${s.name||s.id.slice(0,12)}`,closable:!0})},c.key)})]})}function w({cgId:s,color:t,layerTitle:i,tabPrefix:a,entityCount:r,tripleCount:d,recent:c,partial:l,onOpenLayer:m}){const o=r===0;return e.jsxs("div",{className:`v10-memstack-cell${o?" empty":""}`,style:{"--cell-color":t},children:[e.jsxs("div",{className:"v10-memstack-cell-stats",children:[e.jsx("span",{className:"v10-memstack-cell-n",children:r}),e.jsxs("span",{className:"v10-memstack-cell-n-lbl",children:[l?"loaded ":"","entit",r===1?"y":"ies"]}),e.jsx("span",{className:"v10-memstack-cell-sep",children:"·"}),e.jsx("span",{className:"v10-memstack-cell-t",children:d.toLocaleString()}),e.jsx("span",{className:"v10-memstack-cell-t-lbl",children:l?"loaded triples":"triples"})]}),c.length>0?e.jsx("ul",{className:"v10-memstack-cell-recent",children:c.map(n=>e.jsxs("li",{className:"v10-memstack-cell-recent-item",title:n.label,children:[e.jsx("span",{className:"v10-memstack-cell-recent-bullet"}),e.jsx("span",{className:"v10-memstack-cell-recent-label",children:n.label}),e.jsx("span",{className:"v10-memstack-cell-recent-time",children:f(C(n))})]},n.uri))}):e.jsx("div",{className:"v10-memstack-cell-empty-hint",children:l?"No entries in the loaded preview":`Nothing in ${a.toUpperCase()} yet`}),!o&&e.jsxs("button",{type:"button",className:"v10-memstack-cell-open",onClick:m,title:`Open ${i}`,children:["Open ",a.toUpperCase()," →"]})]})}function h(s){var t;for(const i of g){const a=(t=s.properties.get(i))==null?void 0:t[0];if(!a)continue;const r=new Date(a.replace(/^"|"$/g,"").replace(/^"(.+)"(?:@\w+|\^\^.+)?$/,"$1"));if(Number.isFinite(r.getTime()))return r.getTime()}return null}function C(s){const t=h(s);return t?new Date(t):null}export{T as MemoryStackView};
@@ -1 +1 @@
1
- import{bz as r,aO as e,g as o,bi as d,an as l,V as h,Q as x}from"./index-MQh8C4aJ.js";function j({agent:s}){if(s.connectionStatus==="self")return e.jsx("span",{className:"badge",style:{background:"var(--text-muted)"},children:"Self"});if(s.connectionStatus==="connected"){const n=s.connectionTransport==="relayed"?"Relayed":"Direct",i=s.connectedSinceMs?` · ${l(s.connectedSinceMs)}`:"";return e.jsxs("span",{className:"badge badge-success",title:`${s.connectionDirection??""} ${n.toLowerCase()} connection${i}`,children:[n,i]})}return e.jsx("span",{className:"badge",style:{background:"var(--error)"},children:"Disconnected"})}function v(){const{data:s}=r(h,[],1e4),{data:n}=r(x,[],15e3),i=(s==null?void 0:s.connections)??[],a=(n==null?void 0:n.agents)??[];return e.jsxs("div",{children:[e.jsxs(o,{to:"/",className:"page-back-link",style:{display:"inline-flex",alignItems:"center",gap:6,marginBottom:12,fontSize:13,color:"var(--text-secondary)",textDecoration:"none"},children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M19 12H5"}),e.jsx("path",{d:"M12 19l-7-7 7-7"})]}),"Back to dashboard"]}),e.jsx("h1",{className:"page-title",children:"Network"}),e.jsxs("div",{className:"stats-grid",children:[e.jsxs("div",{className:"stat-card",children:[e.jsx("div",{className:"stat-label",children:"Total Connections"}),e.jsx("div",{className:"stat-value",children:(s==null?void 0:s.total)??"—"})]}),e.jsxs("div",{className:"stat-card",children:[e.jsx("div",{className:"stat-label",children:"Direct"}),e.jsx("div",{className:"stat-value",children:(s==null?void 0:s.direct)??"—"})]}),e.jsxs("div",{className:"stat-card",children:[e.jsx("div",{className:"stat-label",children:"Relayed"}),e.jsx("div",{className:"stat-value",children:(s==null?void 0:s.relayed)??"—"})]}),e.jsxs("div",{className:"stat-card",children:[e.jsx("div",{className:"stat-label",children:"Known Agents"}),e.jsx("div",{className:"stat-value",children:a.length})]})]}),e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"card-title",children:"Active Connections"}),i.length===0?e.jsxs("div",{className:"empty-state empty-state--compact",children:[e.jsx("div",{className:"empty-state-icon",children:e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M5 12h14"}),e.jsx("path",{d:"M12 5l7 7-7 7"})]})}),e.jsx("div",{className:"empty-state-title",children:"No active connections"}),e.jsx("div",{className:"empty-state-desc",children:"Connections will appear here as your node links with peers on the network."})]}):e.jsxs("table",{className:"data-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Peer"}),e.jsx("th",{children:"Transport"}),e.jsx("th",{children:"Direction"}),e.jsx("th",{children:"Remote Address"}),e.jsx("th",{children:"Duration"})]})}),e.jsx("tbody",{children:i.map((t,c)=>e.jsxs("tr",{children:[e.jsx("td",{className:"mono",children:d(t.peerId,12)}),e.jsx("td",{children:e.jsx("span",{className:`badge ${t.transport==="direct"?"badge-success":"badge-info"}`,children:t.transport})}),e.jsx("td",{children:t.direction}),e.jsx("td",{className:"mono",style:{fontSize:11},children:t.remoteAddr}),e.jsx("td",{children:l(t.durationMs)})]},c))})]})]}),e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"card-title",children:"Discovered Agents"}),a.length===0?e.jsxs("div",{className:"empty-state empty-state--compact",children:[e.jsx("div",{className:"empty-state-icon",children:e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"11",cy:"11",r:"8"}),e.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})}),e.jsx("div",{className:"empty-state-title",children:"No agents discovered"}),e.jsx("div",{className:"empty-state-desc",children:"Agents will be listed here as they are discovered through the network."})]}):e.jsxs("table",{className:"data-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Name"}),e.jsx("th",{children:"PeerId"}),e.jsx("th",{children:"Framework"}),e.jsx("th",{children:"Role"}),e.jsx("th",{children:"Connection"})]})}),e.jsx("tbody",{children:a.map((t,c)=>e.jsxs("tr",{children:[e.jsx("td",{style:{fontWeight:600},children:t.name}),e.jsx("td",{className:"mono",children:d(t.peerId,12)}),e.jsx("td",{children:t.framework??"—"}),e.jsx("td",{children:t.nodeRole??"—"}),e.jsx("td",{children:e.jsx(j,{agent:t})})]},c))})]})]})]})}export{v as NetworkPage};
1
+ import{bG as r,aU as e,g as o,bo as d,as as l,$ as h,Z as x}from"./index-HEpqHVfE.js";function j({agent:s}){if(s.connectionStatus==="self")return e.jsx("span",{className:"badge",style:{background:"var(--text-muted)"},children:"Self"});if(s.connectionStatus==="connected"){const n=s.connectionTransport==="relayed"?"Relayed":"Direct",i=s.connectedSinceMs?` · ${l(s.connectedSinceMs)}`:"";return e.jsxs("span",{className:"badge badge-success",title:`${s.connectionDirection??""} ${n.toLowerCase()} connection${i}`,children:[n,i]})}return e.jsx("span",{className:"badge",style:{background:"var(--error)"},children:"Disconnected"})}function v(){const{data:s}=r(h,[],1e4),{data:n}=r(x,[],15e3),i=(s==null?void 0:s.connections)??[],a=(n==null?void 0:n.agents)??[];return e.jsxs("div",{children:[e.jsxs(o,{to:"/",className:"page-back-link",style:{display:"inline-flex",alignItems:"center",gap:6,marginBottom:12,fontSize:13,color:"var(--text-secondary)",textDecoration:"none"},children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M19 12H5"}),e.jsx("path",{d:"M12 19l-7-7 7-7"})]}),"Back to dashboard"]}),e.jsx("h1",{className:"page-title",children:"Network"}),e.jsxs("div",{className:"stats-grid",children:[e.jsxs("div",{className:"stat-card",children:[e.jsx("div",{className:"stat-label",children:"Total Connections"}),e.jsx("div",{className:"stat-value",children:(s==null?void 0:s.total)??"—"})]}),e.jsxs("div",{className:"stat-card",children:[e.jsx("div",{className:"stat-label",children:"Direct"}),e.jsx("div",{className:"stat-value",children:(s==null?void 0:s.direct)??"—"})]}),e.jsxs("div",{className:"stat-card",children:[e.jsx("div",{className:"stat-label",children:"Relayed"}),e.jsx("div",{className:"stat-value",children:(s==null?void 0:s.relayed)??"—"})]}),e.jsxs("div",{className:"stat-card",children:[e.jsx("div",{className:"stat-label",children:"Known Agents"}),e.jsx("div",{className:"stat-value",children:a.length})]})]}),e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"card-title",children:"Active Connections"}),i.length===0?e.jsxs("div",{className:"empty-state empty-state--compact",children:[e.jsx("div",{className:"empty-state-icon",children:e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M5 12h14"}),e.jsx("path",{d:"M12 5l7 7-7 7"})]})}),e.jsx("div",{className:"empty-state-title",children:"No active connections"}),e.jsx("div",{className:"empty-state-desc",children:"Connections will appear here as your node links with peers on the network."})]}):e.jsxs("table",{className:"data-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Peer"}),e.jsx("th",{children:"Transport"}),e.jsx("th",{children:"Direction"}),e.jsx("th",{children:"Remote Address"}),e.jsx("th",{children:"Duration"})]})}),e.jsx("tbody",{children:i.map((t,c)=>e.jsxs("tr",{children:[e.jsx("td",{className:"mono",children:d(t.peerId,12)}),e.jsx("td",{children:e.jsx("span",{className:`badge ${t.transport==="direct"?"badge-success":"badge-info"}`,children:t.transport})}),e.jsx("td",{children:t.direction}),e.jsx("td",{className:"mono",style:{fontSize:11},children:t.remoteAddr}),e.jsx("td",{children:l(t.durationMs)})]},c))})]})]}),e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"card-title",children:"Discovered Agents"}),a.length===0?e.jsxs("div",{className:"empty-state empty-state--compact",children:[e.jsx("div",{className:"empty-state-icon",children:e.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"11",cy:"11",r:"8"}),e.jsx("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})]})}),e.jsx("div",{className:"empty-state-title",children:"No agents discovered"}),e.jsx("div",{className:"empty-state-desc",children:"Agents will be listed here as they are discovered through the network."})]}):e.jsxs("table",{className:"data-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Name"}),e.jsx("th",{children:"PeerId"}),e.jsx("th",{children:"Framework"}),e.jsx("th",{children:"Role"}),e.jsx("th",{children:"Connection"})]})}),e.jsx("tbody",{children:a.map((t,c)=>e.jsxs("tr",{children:[e.jsx("td",{style:{fontWeight:600},children:t.name}),e.jsx("td",{className:"mono",children:d(t.peerId,12)}),e.jsx("td",{children:t.framework??"—"}),e.jsx("td",{children:t.nodeRole??"—"}),e.jsx("td",{children:e.jsx(j,{agent:t})})]},c))})]})]})]})}export{v as NetworkPage};
@@ -1 +1 @@
1
- import{bd as h,aO as e}from"./index-MQh8C4aJ.js";import{u as x}from"./index-CfVUpsfM.js";import{u as N,t as r}from"./useEntityOnChainReceipt-BvWQ6qdT.js";import"./string-DtUow4KV.js";const b={wm:"This entity lives in Working Memory — a private local draft. It gets an on-chain anchor only after it is promoted and published to Verifiable Memory.",swm:"This entity lives in Shared Working Memory. It is not anchored on-chain until it is published to Verifiable Memory.",vm:"No on-chain receipt found for this entity yet. It may still be settling, or it was read back from a pre-cutover graph."},w=({contextGraphId:t,layer:a,explorerUrl:l})=>{const{selectedNode:n}=x(),[p,d]=h.useState(null),s=(n==null?void 0:n.id)??null;h.useEffect(()=>{d(null)},[s]);const v=!!s&&s!==p,i=N(t,s,v);if(!v||!n)return null;const o=y=>{var m;(m=navigator.clipboard)==null||m.writeText(y).catch(()=>{})},u=n.label||n.id,c=i.status==="verified";return e.jsxs("div",{className:`v10-graph-prov-card${c?" verified":""}`,role:"dialog","aria-label":"On-chain provenance",children:[e.jsxs("div",{className:"v10-graph-prov-head",children:[e.jsx("span",{className:"v10-graph-prov-glyph",children:c?"◉":"◌"}),e.jsx("span",{className:"v10-graph-prov-title",children:"On-chain provenance"}),c&&e.jsx("span",{className:"v10-graph-prov-badge",children:"VERIFIED"}),e.jsx("button",{type:"button",className:"v10-graph-prov-close",onClick:()=>d(s),"aria-label":"Dismiss",title:"Dismiss",children:"×"})]}),e.jsx("div",{className:"v10-graph-prov-entity",title:n.id,children:u}),i.status==="loading"&&e.jsx("div",{className:"v10-graph-prov-muted",children:"Resolving on-chain identity…"}),i.status==="error"&&e.jsx("div",{className:"v10-graph-prov-muted",children:"Couldn’t load on-chain identity."}),i.status==="offchain"&&e.jsxs("div",{className:"v10-graph-prov-offchain",children:[e.jsx("span",{className:"v10-graph-prov-offchain-tag",children:"Off-chain"}),e.jsx("p",{children:b[a??"vm"]})]}),c&&e.jsxs("div",{className:"v10-vm-identity",style:{margin:0,background:"none",border:"none",padding:0},children:[i.ual&&e.jsxs("div",{className:"v10-vm-identity-row",children:[e.jsx("span",{className:"v10-vm-identity-lbl",children:"UAL"}),e.jsx("span",{className:"v10-vm-identity-val mono",title:i.ual,children:i.ual}),e.jsx("button",{type:"button",className:"v10-vm-identity-copy",onClick:()=>o(i.ual),title:"Copy UAL",children:"⎘"})]}),i.txHash&&e.jsxs("div",{className:"v10-vm-identity-row",children:[e.jsx("span",{className:"v10-vm-identity-lbl",children:"Tx"}),l?e.jsxs("a",{className:"v10-vm-identity-val mono v10-graph-prov-link",href:`${l}/tx/${i.txHash}`,target:"_blank",rel:"noopener noreferrer",title:i.txHash,children:[r(i.txHash,10,8)," ↗"]}):e.jsx("span",{className:"v10-vm-identity-val mono",title:i.txHash,children:r(i.txHash,10,8)}),e.jsx("button",{type:"button",className:"v10-vm-identity-copy",onClick:()=>o(i.txHash),title:"Copy transaction hash",children:"⎘"})]}),i.blockNumber&&e.jsxs("div",{className:"v10-vm-identity-row",children:[e.jsx("span",{className:"v10-vm-identity-lbl",children:"Block"}),e.jsx("span",{className:"v10-vm-identity-val mono",children:j(i.blockNumber)})]}),i.kaId&&e.jsxs("div",{className:"v10-vm-identity-row",children:[e.jsx("span",{className:"v10-vm-identity-lbl",children:"KA id"}),e.jsx("span",{className:"v10-vm-identity-val mono",title:i.kaId,children:r(i.kaId,8,8)}),e.jsx("button",{type:"button",className:"v10-vm-identity-copy",onClick:()=>o(i.kaId),title:"Copy KA id",children:"⎘"})]}),i.author&&e.jsxs("div",{className:"v10-vm-identity-row",children:[e.jsx("span",{className:"v10-vm-identity-lbl",children:"Author"}),l?e.jsxs("a",{className:"v10-vm-identity-val mono v10-graph-prov-link",href:`${l}/address/${i.author}`,target:"_blank",rel:"noopener noreferrer",title:i.author,children:[r(i.author,6,4)," ↗"]}):e.jsx("span",{className:"v10-vm-identity-val mono",title:i.author,children:r(i.author,6,4)}),e.jsx("button",{type:"button",className:"v10-vm-identity-copy",onClick:()=>o(i.author),title:"Copy author address",children:"⎘"})]}),i.finalizedAt&&e.jsxs("div",{className:"v10-vm-identity-row",children:[e.jsx("span",{className:"v10-vm-identity-lbl",children:"Finalized"}),e.jsx("span",{className:"v10-vm-identity-val",children:f(i.finalizedAt)})]})]})]})};function j(t){const a=Number.parseInt(t,10);return Number.isFinite(a)?a.toLocaleString():t}function f(t){const a=new Date(t.replace(/^"|"$/g,""));return Number.isFinite(a.getTime())?a.toLocaleString(void 0,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}):t}export{w as OnChainProvenanceCard};
1
+ import{bj as h,aU as e}from"./index-HEpqHVfE.js";import{u as x}from"./index-_vQ99L0s.js";import{u as N,t as r}from"./useEntityOnChainReceipt-B_uLyqZc.js";import"./string-DtUow4KV.js";const b={wm:"This entity lives in Working Memory — a private local draft. It gets an on-chain anchor only after it is promoted and published to Verifiable Memory.",swm:"This entity lives in Shared Working Memory. It is not anchored on-chain until it is published to Verifiable Memory.",vm:"No on-chain receipt found for this entity yet. It may still be settling, or it was read back from a pre-cutover graph."},w=({contextGraphId:t,layer:a,explorerUrl:l})=>{const{selectedNode:n}=x(),[p,d]=h.useState(null),s=(n==null?void 0:n.id)??null;h.useEffect(()=>{d(null)},[s]);const v=!!s&&s!==p,i=N(t,s,v);if(!v||!n)return null;const o=y=>{var m;(m=navigator.clipboard)==null||m.writeText(y).catch(()=>{})},u=n.label||n.id,c=i.status==="verified";return e.jsxs("div",{className:`v10-graph-prov-card${c?" verified":""}`,role:"dialog","aria-label":"On-chain provenance",children:[e.jsxs("div",{className:"v10-graph-prov-head",children:[e.jsx("span",{className:"v10-graph-prov-glyph",children:c?"◉":"◌"}),e.jsx("span",{className:"v10-graph-prov-title",children:"On-chain provenance"}),c&&e.jsx("span",{className:"v10-graph-prov-badge",children:"VERIFIED"}),e.jsx("button",{type:"button",className:"v10-graph-prov-close",onClick:()=>d(s),"aria-label":"Dismiss",title:"Dismiss",children:"×"})]}),e.jsx("div",{className:"v10-graph-prov-entity",title:n.id,children:u}),i.status==="loading"&&e.jsx("div",{className:"v10-graph-prov-muted",children:"Resolving on-chain identity…"}),i.status==="error"&&e.jsx("div",{className:"v10-graph-prov-muted",children:"Couldn’t load on-chain identity."}),i.status==="offchain"&&e.jsxs("div",{className:"v10-graph-prov-offchain",children:[e.jsx("span",{className:"v10-graph-prov-offchain-tag",children:"Off-chain"}),e.jsx("p",{children:b[a??"vm"]})]}),c&&e.jsxs("div",{className:"v10-vm-identity",style:{margin:0,background:"none",border:"none",padding:0},children:[i.ual&&e.jsxs("div",{className:"v10-vm-identity-row",children:[e.jsx("span",{className:"v10-vm-identity-lbl",children:"UAL"}),e.jsx("span",{className:"v10-vm-identity-val mono",title:i.ual,children:i.ual}),e.jsx("button",{type:"button",className:"v10-vm-identity-copy",onClick:()=>o(i.ual),title:"Copy UAL",children:"⎘"})]}),i.txHash&&e.jsxs("div",{className:"v10-vm-identity-row",children:[e.jsx("span",{className:"v10-vm-identity-lbl",children:"Tx"}),l?e.jsxs("a",{className:"v10-vm-identity-val mono v10-graph-prov-link",href:`${l}/tx/${i.txHash}`,target:"_blank",rel:"noopener noreferrer",title:i.txHash,children:[r(i.txHash,10,8)," ↗"]}):e.jsx("span",{className:"v10-vm-identity-val mono",title:i.txHash,children:r(i.txHash,10,8)}),e.jsx("button",{type:"button",className:"v10-vm-identity-copy",onClick:()=>o(i.txHash),title:"Copy transaction hash",children:"⎘"})]}),i.blockNumber&&e.jsxs("div",{className:"v10-vm-identity-row",children:[e.jsx("span",{className:"v10-vm-identity-lbl",children:"Block"}),e.jsx("span",{className:"v10-vm-identity-val mono",children:j(i.blockNumber)})]}),i.kaId&&e.jsxs("div",{className:"v10-vm-identity-row",children:[e.jsx("span",{className:"v10-vm-identity-lbl",children:"KA id"}),e.jsx("span",{className:"v10-vm-identity-val mono",title:i.kaId,children:r(i.kaId,8,8)}),e.jsx("button",{type:"button",className:"v10-vm-identity-copy",onClick:()=>o(i.kaId),title:"Copy KA id",children:"⎘"})]}),i.author&&e.jsxs("div",{className:"v10-vm-identity-row",children:[e.jsx("span",{className:"v10-vm-identity-lbl",children:"Author"}),l?e.jsxs("a",{className:"v10-vm-identity-val mono v10-graph-prov-link",href:`${l}/address/${i.author}`,target:"_blank",rel:"noopener noreferrer",title:i.author,children:[r(i.author,6,4)," ↗"]}):e.jsx("span",{className:"v10-vm-identity-val mono",title:i.author,children:r(i.author,6,4)}),e.jsx("button",{type:"button",className:"v10-vm-identity-copy",onClick:()=>o(i.author),title:"Copy author address",children:"⎘"})]}),i.finalizedAt&&e.jsxs("div",{className:"v10-vm-identity-row",children:[e.jsx("span",{className:"v10-vm-identity-lbl",children:"Finalized"}),e.jsx("span",{className:"v10-vm-identity-val",children:f(i.finalizedAt)})]})]})]})};function j(t){const a=Number.parseInt(t,10);return Number.isFinite(a)?a.toLocaleString():t}function f(t){const a=new Date(t.replace(/^"|"$/g,""));return Number.isFinite(a.getTime())?a.toLocaleString(void 0,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}):t}export{w as OnChainProvenanceCard};
@@ -1,4 +1,4 @@
1
- import{x as si,az as le,bd as $,R as P,k as ne,aO as h,bz as Re,ac as Zx,ab as Jx,a9 as Qx,ad as e1,aa as t1,at as vt,a2 as r1,Z as n1,a0 as i1,a4 as a1,ag as o1,a8 as s1,an as lt,a6 as u1,a5 as c1,af as l1,bi}from"./index-MQh8C4aJ.js";import{h as fd,m as dd,o as Lg,d as at,a as f1,e as Gc,c as hd,f as pd,g as d1,b as Pt,i as h1}from"./string-DtUow4KV.js";function qg(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=qg(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function te(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=qg(e))&&(n&&(n+=" "),n+=t);return n}var Xa,vd;function Be(){if(vd)return Xa;vd=1;var e=Array.isArray;return Xa=e,Xa}var Ya,yd;function zg(){if(yd)return Ya;yd=1;var e=typeof si=="object"&&si&&si.Object===Object&&si;return Ya=e,Ya}var Za,md;function ht(){if(md)return Za;md=1;var e=zg(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Za=r,Za}var Ja,gd;function ei(){if(gd)return Ja;gd=1;var e=ht(),t=e.Symbol;return Ja=t,Ja}var Qa,bd;function p1(){if(bd)return Qa;bd=1;var e=ei(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),u=o[i];try{o[i]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(s?o[i]=u:delete o[i]),f}return Qa=a,Qa}var eo,xd;function v1(){if(xd)return eo;xd=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return eo=r,eo}var to,wd;function Tt(){if(wd)return to;wd=1;var e=ei(),t=p1(),r=v1(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return to=o,to}var ro,_d;function Et(){if(_d)return ro;_d=1;function e(t){return t!=null&&typeof t=="object"}return ro=e,ro}var no,Od;function Hr(){if(Od)return no;Od=1;var e=Tt(),t=Et(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return no=n,no}var io,Sd;function sf(){if(Sd)return io;Sd=1;var e=Be(),t=Hr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return io=i,io}var ao,jd;function qt(){if(jd)return ao;jd=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return ao=e,ao}var oo,Ad;function uf(){if(Ad)return oo;Ad=1;var e=Tt(),t=qt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var u=e(s);return u==n||u==i||u==r||u==a}return oo=o,oo}var so,Pd;function y1(){if(Pd)return so;Pd=1;var e=ht(),t=e["__core-js_shared__"];return so=t,so}var uo,Td;function m1(){if(Td)return uo;Td=1;var e=y1(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return uo=r,uo}var co,Ed;function Fg(){if(Ed)return co;Ed=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return co=r,co}var lo,Md;function g1(){if(Md)return lo;Md=1;var e=uf(),t=m1(),r=qt(),n=Fg(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,u=o.toString,c=s.hasOwnProperty,f=RegExp("^"+u.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(d){if(!r(d)||t(d))return!1;var v=e(d)?f:a;return v.test(n(d))}return lo=l,lo}var fo,Cd;function b1(){if(Cd)return fo;Cd=1;function e(t,r){return t==null?void 0:t[r]}return fo=e,fo}var ho,Id;function lr(){if(Id)return ho;Id=1;var e=g1(),t=b1();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return ho=r,ho}var po,kd;function ya(){if(kd)return po;kd=1;var e=lr(),t=e(Object,"create");return po=t,po}var vo,$d;function x1(){if($d)return vo;$d=1;var e=ya();function t(){this.__data__=e?e(null):{},this.size=0}return vo=t,vo}var yo,Nd;function w1(){if(Nd)return yo;Nd=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return yo=e,yo}var mo,Rd;function _1(){if(Rd)return mo;Rd=1;var e=ya(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return mo=i,mo}var go,Dd;function O1(){if(Dd)return go;Dd=1;var e=ya(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return go=n,go}var bo,Bd;function S1(){if(Bd)return bo;Bd=1;var e=ya(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return bo=r,bo}var xo,Ld;function j1(){if(Ld)return xo;Ld=1;var e=x1(),t=w1(),r=_1(),n=O1(),i=S1();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var c=o[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,xo=a,xo}var wo,qd;function A1(){if(qd)return wo;qd=1;function e(){this.__data__=[],this.size=0}return wo=e,wo}var _o,zd;function cf(){if(zd)return _o;zd=1;function e(t,r){return t===r||t!==t&&r!==r}return _o=e,_o}var Oo,Fd;function ma(){if(Fd)return Oo;Fd=1;var e=cf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Oo=t,Oo}var So,Wd;function P1(){if(Wd)return So;Wd=1;var e=ma(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return So=n,So}var jo,Ud;function T1(){if(Ud)return jo;Ud=1;var e=ma();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return jo=t,jo}var Ao,Gd;function E1(){if(Gd)return Ao;Gd=1;var e=ma();function t(r){return e(this.__data__,r)>-1}return Ao=t,Ao}var Po,Hd;function M1(){if(Hd)return Po;Hd=1;var e=ma();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Po=t,Po}var To,Kd;function ga(){if(Kd)return To;Kd=1;var e=A1(),t=P1(),r=T1(),n=E1(),i=M1();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var c=o[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,To=a,To}var Eo,Vd;function lf(){if(Vd)return Eo;Vd=1;var e=lr(),t=ht(),r=e(t,"Map");return Eo=r,Eo}var Mo,Xd;function C1(){if(Xd)return Mo;Xd=1;var e=j1(),t=ga(),r=lf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Mo=n,Mo}var Co,Yd;function I1(){if(Yd)return Co;Yd=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Co=e,Co}var Io,Zd;function ba(){if(Zd)return Io;Zd=1;var e=I1();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Io=t,Io}var ko,Jd;function k1(){if(Jd)return ko;Jd=1;var e=ba();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return ko=t,ko}var $o,Qd;function $1(){if(Qd)return $o;Qd=1;var e=ba();function t(r){return e(this,r).get(r)}return $o=t,$o}var No,eh;function N1(){if(eh)return No;eh=1;var e=ba();function t(r){return e(this,r).has(r)}return No=t,No}var Ro,th;function R1(){if(th)return Ro;th=1;var e=ba();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Ro=t,Ro}var Do,rh;function ff(){if(rh)return Do;rh=1;var e=C1(),t=k1(),r=$1(),n=N1(),i=R1();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var c=o[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Do=a,Do}var Bo,nh;function Wg(){if(nh)return Bo;nh=1;var e=ff(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],u=a.cache;if(u.has(s))return u.get(s);var c=n.apply(this,o);return a.cache=u.set(s,c)||u,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,Bo=r,Bo}var Lo,ih;function D1(){if(ih)return Lo;ih=1;var e=Wg(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Lo=r,Lo}var qo,ah;function B1(){if(ah)return qo;ah=1;var e=D1(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,u,c){a.push(u?c.replace(r,"$1"):s||o)}),a});return qo=n,qo}var zo,oh;function df(){if(oh)return zo;oh=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return zo=e,zo}var Fo,sh;function L1(){if(sh)return Fo;sh=1;var e=ei(),t=df(),r=Be(),n=Hr(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}return Fo=o,Fo}var Wo,uh;function Ug(){if(uh)return Wo;uh=1;var e=L1();function t(r){return r==null?"":e(r)}return Wo=t,Wo}var Uo,ch;function Gg(){if(ch)return Uo;ch=1;var e=Be(),t=sf(),r=B1(),n=Ug();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Uo=i,Uo}var Go,lh;function xa(){if(lh)return Go;lh=1;var e=Hr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Go=t,Go}var Ho,fh;function hf(){if(fh)return Ho;fh=1;var e=Gg(),t=xa();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Ho=r,Ho}var Ko,dh;function Hg(){if(dh)return Ko;dh=1;var e=hf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Ko=t,Ko}var q1=Hg();const Je=le(q1);var Vo,hh;function z1(){if(hh)return Vo;hh=1;function e(t){return t==null}return Vo=e,Vo}var F1=z1();const Q=le(F1);var Xo,ph;function W1(){if(ph)return Xo;ph=1;var e=Tt(),t=Be(),r=Et(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Xo=i,Xo}var U1=W1();const ar=le(U1);var G1=uf();const Y=le(G1);var H1=qt();const Kr=le(H1);var Yo={exports:{}},ie={};/**
1
+ import{y as si,aE as le,bj as $,R as P,k as ne,aU as h,bG as Re,ah as Zx,ag as Jx,ae as Qx,ai as e1,af as t1,ay as vt,a7 as r1,a2 as n1,a4 as i1,a9 as a1,al as o1,ad as s1,as as lt,ab as u1,aa as c1,ak as l1,bo as bi}from"./index-HEpqHVfE.js";import{h as fd,m as dd,o as Lg,d as at,a as f1,e as Gc,c as hd,f as pd,g as d1,b as Pt,i as h1}from"./string-DtUow4KV.js";function qg(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=qg(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function te(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=qg(e))&&(n&&(n+=" "),n+=t);return n}var Xa,vd;function Be(){if(vd)return Xa;vd=1;var e=Array.isArray;return Xa=e,Xa}var Ya,yd;function zg(){if(yd)return Ya;yd=1;var e=typeof si=="object"&&si&&si.Object===Object&&si;return Ya=e,Ya}var Za,md;function ht(){if(md)return Za;md=1;var e=zg(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Za=r,Za}var Ja,gd;function ei(){if(gd)return Ja;gd=1;var e=ht(),t=e.Symbol;return Ja=t,Ja}var Qa,bd;function p1(){if(bd)return Qa;bd=1;var e=ei(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),u=o[i];try{o[i]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(s?o[i]=u:delete o[i]),f}return Qa=a,Qa}var eo,xd;function v1(){if(xd)return eo;xd=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return eo=r,eo}var to,wd;function Tt(){if(wd)return to;wd=1;var e=ei(),t=p1(),r=v1(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return to=o,to}var ro,_d;function Et(){if(_d)return ro;_d=1;function e(t){return t!=null&&typeof t=="object"}return ro=e,ro}var no,Od;function Hr(){if(Od)return no;Od=1;var e=Tt(),t=Et(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return no=n,no}var io,Sd;function sf(){if(Sd)return io;Sd=1;var e=Be(),t=Hr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return io=i,io}var ao,jd;function qt(){if(jd)return ao;jd=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return ao=e,ao}var oo,Ad;function uf(){if(Ad)return oo;Ad=1;var e=Tt(),t=qt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var u=e(s);return u==n||u==i||u==r||u==a}return oo=o,oo}var so,Pd;function y1(){if(Pd)return so;Pd=1;var e=ht(),t=e["__core-js_shared__"];return so=t,so}var uo,Td;function m1(){if(Td)return uo;Td=1;var e=y1(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return uo=r,uo}var co,Ed;function Fg(){if(Ed)return co;Ed=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return co=r,co}var lo,Md;function g1(){if(Md)return lo;Md=1;var e=uf(),t=m1(),r=qt(),n=Fg(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,u=o.toString,c=s.hasOwnProperty,f=RegExp("^"+u.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(d){if(!r(d)||t(d))return!1;var v=e(d)?f:a;return v.test(n(d))}return lo=l,lo}var fo,Cd;function b1(){if(Cd)return fo;Cd=1;function e(t,r){return t==null?void 0:t[r]}return fo=e,fo}var ho,Id;function lr(){if(Id)return ho;Id=1;var e=g1(),t=b1();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return ho=r,ho}var po,kd;function ya(){if(kd)return po;kd=1;var e=lr(),t=e(Object,"create");return po=t,po}var vo,$d;function x1(){if($d)return vo;$d=1;var e=ya();function t(){this.__data__=e?e(null):{},this.size=0}return vo=t,vo}var yo,Nd;function w1(){if(Nd)return yo;Nd=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return yo=e,yo}var mo,Rd;function _1(){if(Rd)return mo;Rd=1;var e=ya(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return mo=i,mo}var go,Dd;function O1(){if(Dd)return go;Dd=1;var e=ya(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return go=n,go}var bo,Bd;function S1(){if(Bd)return bo;Bd=1;var e=ya(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return bo=r,bo}var xo,Ld;function j1(){if(Ld)return xo;Ld=1;var e=x1(),t=w1(),r=_1(),n=O1(),i=S1();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var c=o[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,xo=a,xo}var wo,qd;function A1(){if(qd)return wo;qd=1;function e(){this.__data__=[],this.size=0}return wo=e,wo}var _o,zd;function cf(){if(zd)return _o;zd=1;function e(t,r){return t===r||t!==t&&r!==r}return _o=e,_o}var Oo,Fd;function ma(){if(Fd)return Oo;Fd=1;var e=cf();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Oo=t,Oo}var So,Wd;function P1(){if(Wd)return So;Wd=1;var e=ma(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return So=n,So}var jo,Ud;function T1(){if(Ud)return jo;Ud=1;var e=ma();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return jo=t,jo}var Ao,Gd;function E1(){if(Gd)return Ao;Gd=1;var e=ma();function t(r){return e(this.__data__,r)>-1}return Ao=t,Ao}var Po,Hd;function M1(){if(Hd)return Po;Hd=1;var e=ma();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Po=t,Po}var To,Kd;function ga(){if(Kd)return To;Kd=1;var e=A1(),t=P1(),r=T1(),n=E1(),i=M1();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var c=o[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,To=a,To}var Eo,Vd;function lf(){if(Vd)return Eo;Vd=1;var e=lr(),t=ht(),r=e(t,"Map");return Eo=r,Eo}var Mo,Xd;function C1(){if(Xd)return Mo;Xd=1;var e=j1(),t=ga(),r=lf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Mo=n,Mo}var Co,Yd;function I1(){if(Yd)return Co;Yd=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Co=e,Co}var Io,Zd;function ba(){if(Zd)return Io;Zd=1;var e=I1();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Io=t,Io}var ko,Jd;function k1(){if(Jd)return ko;Jd=1;var e=ba();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return ko=t,ko}var $o,Qd;function $1(){if(Qd)return $o;Qd=1;var e=ba();function t(r){return e(this,r).get(r)}return $o=t,$o}var No,eh;function N1(){if(eh)return No;eh=1;var e=ba();function t(r){return e(this,r).has(r)}return No=t,No}var Ro,th;function R1(){if(th)return Ro;th=1;var e=ba();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Ro=t,Ro}var Do,rh;function ff(){if(rh)return Do;rh=1;var e=C1(),t=k1(),r=$1(),n=N1(),i=R1();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var c=o[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Do=a,Do}var Bo,nh;function Wg(){if(nh)return Bo;nh=1;var e=ff(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],u=a.cache;if(u.has(s))return u.get(s);var c=n.apply(this,o);return a.cache=u.set(s,c)||u,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,Bo=r,Bo}var Lo,ih;function D1(){if(ih)return Lo;ih=1;var e=Wg(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Lo=r,Lo}var qo,ah;function B1(){if(ah)return qo;ah=1;var e=D1(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,u,c){a.push(u?c.replace(r,"$1"):s||o)}),a});return qo=n,qo}var zo,oh;function df(){if(oh)return zo;oh=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return zo=e,zo}var Fo,sh;function L1(){if(sh)return Fo;sh=1;var e=ei(),t=df(),r=Be(),n=Hr(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}return Fo=o,Fo}var Wo,uh;function Ug(){if(uh)return Wo;uh=1;var e=L1();function t(r){return r==null?"":e(r)}return Wo=t,Wo}var Uo,ch;function Gg(){if(ch)return Uo;ch=1;var e=Be(),t=sf(),r=B1(),n=Ug();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Uo=i,Uo}var Go,lh;function xa(){if(lh)return Go;lh=1;var e=Hr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Go=t,Go}var Ho,fh;function hf(){if(fh)return Ho;fh=1;var e=Gg(),t=xa();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Ho=r,Ho}var Ko,dh;function Hg(){if(dh)return Ko;dh=1;var e=hf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Ko=t,Ko}var q1=Hg();const Je=le(q1);var Vo,hh;function z1(){if(hh)return Vo;hh=1;function e(t){return t==null}return Vo=e,Vo}var F1=z1();const Q=le(F1);var Xo,ph;function W1(){if(ph)return Xo;ph=1;var e=Tt(),t=Be(),r=Et(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Xo=i,Xo}var U1=W1();const ar=le(U1);var G1=uf();const Y=le(G1);var H1=qt();const Kr=le(H1);var Yo={exports:{}},ie={};/**
2
2
  * @license React
3
3
  * react-is.production.min.js
4
4
  *