@sleep2agi/agent-network-dashboard 0.5.1-preview.111 → 0.5.1-preview.113

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 (141) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/diagnostics/route-bundle-stats.json +4 -4
  4. package/.next/fallback-build-manifest.json +3 -3
  5. package/.next/server/app/_global-error.html +1 -1
  6. package/.next/server/app/_global-error.rsc +1 -1
  7. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/.next/server/app/_not-found.html +1 -1
  13. package/.next/server/app/_not-found.rsc +1 -1
  14. package/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  15. package/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  16. package/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  17. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  18. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  19. package/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  20. package/.next/server/app/admin.html +1 -1
  21. package/.next/server/app/admin.rsc +1 -1
  22. package/.next/server/app/admin.segments/_full.segment.rsc +1 -1
  23. package/.next/server/app/admin.segments/_head.segment.rsc +1 -1
  24. package/.next/server/app/admin.segments/_index.segment.rsc +1 -1
  25. package/.next/server/app/admin.segments/_tree.segment.rsc +1 -1
  26. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +1 -1
  27. package/.next/server/app/admin.segments/admin.segment.rsc +1 -1
  28. package/.next/server/app/index.html +2 -2
  29. package/.next/server/app/index.rsc +2 -2
  30. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  31. package/.next/server/app/index.segments/_full.segment.rsc +2 -2
  32. package/.next/server/app/index.segments/_head.segment.rsc +1 -1
  33. package/.next/server/app/index.segments/_index.segment.rsc +1 -1
  34. package/.next/server/app/index.segments/_tree.segment.rsc +1 -1
  35. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  36. package/.next/server/app/login.html +2 -2
  37. package/.next/server/app/login.rsc +2 -2
  38. package/.next/server/app/login.segments/_full.segment.rsc +2 -2
  39. package/.next/server/app/login.segments/_head.segment.rsc +1 -1
  40. package/.next/server/app/login.segments/_index.segment.rsc +1 -1
  41. package/.next/server/app/login.segments/_tree.segment.rsc +1 -1
  42. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +2 -2
  43. package/.next/server/app/login.segments/login.segment.rsc +1 -1
  44. package/.next/server/app/logs.html +1 -1
  45. package/.next/server/app/logs.rsc +1 -1
  46. package/.next/server/app/logs.segments/_full.segment.rsc +1 -1
  47. package/.next/server/app/logs.segments/_head.segment.rsc +1 -1
  48. package/.next/server/app/logs.segments/_index.segment.rsc +1 -1
  49. package/.next/server/app/logs.segments/_tree.segment.rsc +1 -1
  50. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +1 -1
  51. package/.next/server/app/logs.segments/logs.segment.rsc +1 -1
  52. package/.next/server/app/messages.html +1 -1
  53. package/.next/server/app/messages.rsc +1 -1
  54. package/.next/server/app/messages.segments/_full.segment.rsc +1 -1
  55. package/.next/server/app/messages.segments/_head.segment.rsc +1 -1
  56. package/.next/server/app/messages.segments/_index.segment.rsc +1 -1
  57. package/.next/server/app/messages.segments/_tree.segment.rsc +1 -1
  58. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +1 -1
  59. package/.next/server/app/messages.segments/messages.segment.rsc +1 -1
  60. package/.next/server/app/node.html +1 -1
  61. package/.next/server/app/node.rsc +1 -1
  62. package/.next/server/app/node.segments/_full.segment.rsc +1 -1
  63. package/.next/server/app/node.segments/_head.segment.rsc +1 -1
  64. package/.next/server/app/node.segments/_index.segment.rsc +1 -1
  65. package/.next/server/app/node.segments/_tree.segment.rsc +1 -1
  66. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +1 -1
  67. package/.next/server/app/node.segments/node.segment.rsc +1 -1
  68. package/.next/server/app/nodes.html +1 -1
  69. package/.next/server/app/nodes.rsc +1 -1
  70. package/.next/server/app/nodes.segments/_full.segment.rsc +1 -1
  71. package/.next/server/app/nodes.segments/_head.segment.rsc +1 -1
  72. package/.next/server/app/nodes.segments/_index.segment.rsc +1 -1
  73. package/.next/server/app/nodes.segments/_tree.segment.rsc +1 -1
  74. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +1 -1
  75. package/.next/server/app/nodes.segments/nodes.segment.rsc +1 -1
  76. package/.next/server/app/page_client-reference-manifest.js +1 -1
  77. package/.next/server/app/server-logs.html +1 -1
  78. package/.next/server/app/server-logs.rsc +1 -1
  79. package/.next/server/app/server-logs.segments/_full.segment.rsc +1 -1
  80. package/.next/server/app/server-logs.segments/_head.segment.rsc +1 -1
  81. package/.next/server/app/server-logs.segments/_index.segment.rsc +1 -1
  82. package/.next/server/app/server-logs.segments/_tree.segment.rsc +1 -1
  83. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +1 -1
  84. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +1 -1
  85. package/.next/server/app/settings/networks.html +1 -1
  86. package/.next/server/app/settings/networks.rsc +1 -1
  87. package/.next/server/app/settings/networks.segments/_full.segment.rsc +1 -1
  88. package/.next/server/app/settings/networks.segments/_head.segment.rsc +1 -1
  89. package/.next/server/app/settings/networks.segments/_index.segment.rsc +1 -1
  90. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +1 -1
  91. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +1 -1
  92. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +1 -1
  93. package/.next/server/app/settings/networks.segments/settings.segment.rsc +1 -1
  94. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  95. package/.next/server/app/settings/tokens.html +1 -1
  96. package/.next/server/app/settings/tokens.rsc +1 -1
  97. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +1 -1
  98. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +1 -1
  99. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +1 -1
  100. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +1 -1
  101. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +1 -1
  102. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +1 -1
  103. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +1 -1
  104. package/.next/server/app/settings.html +2 -2
  105. package/.next/server/app/settings.rsc +2 -2
  106. package/.next/server/app/settings.segments/_full.segment.rsc +2 -2
  107. package/.next/server/app/settings.segments/_head.segment.rsc +1 -1
  108. package/.next/server/app/settings.segments/_index.segment.rsc +1 -1
  109. package/.next/server/app/settings.segments/_tree.segment.rsc +1 -1
  110. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +2 -2
  111. package/.next/server/app/settings.segments/settings.segment.rsc +1 -1
  112. package/.next/server/app/tasks.html +1 -1
  113. package/.next/server/app/tasks.rsc +1 -1
  114. package/.next/server/app/tasks.segments/_full.segment.rsc +1 -1
  115. package/.next/server/app/tasks.segments/_head.segment.rsc +1 -1
  116. package/.next/server/app/tasks.segments/_index.segment.rsc +1 -1
  117. package/.next/server/app/tasks.segments/_tree.segment.rsc +1 -1
  118. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +1 -1
  119. package/.next/server/app/tasks.segments/tasks.segment.rsc +1 -1
  120. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +3 -3
  121. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
  122. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
  123. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
  124. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
  125. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
  126. package/.next/server/middleware-build-manifest.js +3 -3
  127. package/.next/server/pages/404.html +1 -1
  128. package/.next/server/pages/500.html +1 -1
  129. package/.next/static/chunks/{059.x2_u04fls.js → 0.if~iq2kc9iv.js} +1 -1
  130. package/.next/static/chunks/{0xvpfbdq_1iwg.js → 0zlficjns17i1.js} +1 -1
  131. package/.next/static/chunks/1814~crcncitu.js +4 -0
  132. package/.next/trace +2 -2
  133. package/.next/trace-build +1 -1
  134. package/app/components/TopoGraph.tsx +53 -5
  135. package/package.json +1 -1
  136. package/scripts/topo-dense-alias-opacity-test.mjs +68 -0
  137. package/scripts/topo-hub-halo-r-hover-test.mjs +82 -0
  138. package/.next/static/chunks/152~t8cc8lw5k.js +0 -4
  139. /package/.next/static/{n0xvBKFL_GMRtCPB1M6VF → kw-JUn0GWFF6m6QLy9RUw}/_buildManifest.js +0 -0
  140. /package/.next/static/{n0xvBKFL_GMRtCPB1M6VF → kw-JUn0GWFF6m6QLy9RUw}/_clientMiddlewareManifest.js +0 -0
  141. /package/.next/static/{n0xvBKFL_GMRtCPB1M6VF → kw-JUn0GWFF6m6QLy9RUw}/_ssgManifest.js +0 -0
@@ -0,0 +1,4 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,136,(e,t,a)=>{},7454,(e,t,a)=>{var n=e.i(20888);e.r(136);var o=e.r(23910),r=o&&"object"==typeof o&&"default"in o?o:{default:o},s=void 0!==n.default&&n.default.env&&!0,i=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,a=t.name,n=void 0===a?"stylesheet":a,o=t.optimizeForSpeed,r=void 0===o?s:o;d(i(n),"`name` must be a string"),this._name=n,this._deletedRulePlaceholder="#"+n+"-deleted-rule____{}",d("boolean"==typeof r,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=r,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l="u">typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,a=e.prototype;return a.setOptimizeForSpeed=function(e){d("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),d(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},a.isOptimizeForSpeed=function(){return this._optimizeForSpeed},a.inject=function(){var e=this;if(d(!this._injected,"sheet already injected"),this._injected=!0,"u">typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,a){return"number"==typeof a?e._serverSheet.cssRules[a]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),a},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},a.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},a.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},a.insertRule=function(e,t){if(d(i(e),"`insertRule` accepts only strings"),"u"<typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var a=this.getSheet();"number"!=typeof t&&(t=a.cssRules.length);try{a.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var n=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,n))}return this._rulesCount++},a.replaceRule=function(e,t){if(this._optimizeForSpeed||"u"<typeof window){var a="u">typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!a.cssRules[e])return e;a.deleteRule(e);try{a.insertRule(t,e)}catch(n){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),a.insertRule(this._deletedRulePlaceholder,e)}}else{var n=this._tags[e];d(n,"old rule at index `"+e+"` not found"),n.textContent=t}return e},a.deleteRule=function(e){if("u"<typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];d(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},a.flush=function(){this._injected=!1,this._rulesCount=0,"u">typeof window?(this._tags.forEach(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},a.cssRules=function(){var e=this;return"u"<typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,a){return a?t=t.concat(Array.prototype.map.call(e.getSheetForTag(a).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},a.makeStyleTag=function(e,t,a){t&&d(i(t),"makeStyleTag accepts only strings as second parameter");var n=document.createElement("style");this._nonce&&n.setAttribute("nonce",this._nonce),n.type="text/css",n.setAttribute("data-"+e,""),t&&n.appendChild(document.createTextNode(t));var o=document.head||document.getElementsByTagName("head")[0];return a?o.insertBefore(n,a):o.appendChild(n),n},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}();function d(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var c=function(e){for(var t=5381,a=e.length;a;)t=33*t^e.charCodeAt(--a);return t>>>0},u={};function h(e,t){if(!t)return"jsx-"+e;var a=String(t),n=e+a;return u[n]||(u[n]="jsx-"+c(e+"-"+a)),u[n]}function p(e,t){"u"<typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var a=e+t;return u[a]||(u[a]=t.replace(/__jsx-style-dynamic-selector/g,e)),u[a]}var m=function(){function e(e){var t=void 0===e?{}:e,a=t.styleSheet,n=void 0===a?null:a,o=t.optimizeForSpeed,r=void 0!==o&&o;this._sheet=n||new l({name:"styled-jsx",optimizeForSpeed:r}),this._sheet.inject(),n&&"boolean"==typeof r&&(this._sheet.setOptimizeForSpeed(r),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"u">typeof window&&!this._fromServer&&(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var a=this.getIdAndRules(e),n=a.styleId,o=a.rules;if(n in this._instancesCounts){this._instancesCounts[n]+=1;return}var r=o.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[n]=r,this._instancesCounts[n]=1},t.remove=function(e){var t=this,a=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(a in this._instancesCounts,"styleId: `"+a+"` not found"),this._instancesCounts[a]-=1,this._instancesCounts[a]<1){var n=this._fromServer&&this._fromServer[a];n?(n.parentNode.removeChild(n),delete this._fromServer[a]):(this._indices[a].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[a]),delete this._instancesCounts[a]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],a=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return a[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,a;return t=this.cssRules(),void 0===(a=e)&&(a={}),t.map(function(e){var t=e[0],n=e[1];return r.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:a.nonce?a.nonce:void 0,dangerouslySetInnerHTML:{__html:n}})})},t.getIdAndRules=function(e){var t=e.children,a=e.dynamic,n=e.id;if(a){var o=h(n,a);return{styleId:o,rules:Array.isArray(t)?t.map(function(e){return p(o,e)}):[p(o,t)]}}return{styleId:h(n),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),f=o.createContext(null);function g(){return new m}function x(){return o.useContext(f)}f.displayName="StyleSheetContext";var y=r.default.useInsertionEffect||r.default.useLayoutEffect,b="u">typeof window?g():void 0;function v(e){var t=b||x();return t&&("u"<typeof window?t.add(e):y(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}v.dynamic=function(e){return e.map(function(e){return h(e[0],e[1])}).join(" ")},a.StyleRegistry=function(e){var t=e.registry,a=e.children,n=o.useContext(f),s=o.useState(function(){return n||t||g()})[0];return r.default.createElement(f.Provider,{value:s},a)},a.createStyleRegistry=g,a.style=v,a.useStyleRegistry=x},6694,(e,t,a)=>{t.exports=e.r(7454).style},18722,e=>{"use strict";var t=e.i(20888),a=e.i(22381),n=e.i(23910),o=e.i(56839),r=e.i(3479);function s({online:e,working:t,total:n,version:o,uptime:r}){let l=n>0?Math.round(e/n*100):0,d=0===n;return(0,a.jsxs)("div",{className:d?"mb-4":"mb-8",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[(0,a.jsx)("h1",{className:"text-2xl font-bold text-white tracking-tight",children:"Agent Network"}),(0,a.jsxs)("span",{className:"text-xs text-gray-500",children:["CommHub ",o," · ",r]})]}),d?(0,a.jsxs)("div",{className:"anet-stat-strip flex flex-wrap items-center gap-x-4 gap-y-1.5 text-xs text-gray-500 border-t border-b border-[#2a2a4a] py-2",children:[(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,a.jsx)("span",{"aria-hidden":!0,className:"inline-block w-1.5 h-1.5 rounded-full bg-gray-600"}),(0,a.jsx)("span",{className:"text-gray-300 tabular-nums",children:"0"})," online"]}),(0,a.jsx)("span",{className:"text-gray-700",children:"·"}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,a.jsx)("span",{"aria-hidden":!0,className:"inline-block w-1.5 h-1.5 rounded-full bg-gray-600"}),(0,a.jsx)("span",{className:"text-gray-300 tabular-nums",children:"0"})," working"]}),(0,a.jsx)("span",{className:"text-gray-700",children:"·"}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,a.jsx)("span",{"aria-hidden":!0,className:"inline-block w-1.5 h-1.5 rounded-full bg-gray-600"}),(0,a.jsx)("span",{className:"text-gray-300 tabular-nums",children:"0"})," registered"]})]}):(0,a.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:[(0,a.jsx)(i,{value:e,label:"Online",sub:`${l}% of fleet`,color:"text-green-400",accent:"from-green-500/20 to-green-500/0",border:"border-green-500/15"}),(0,a.jsx)(i,{value:t,label:"Working",sub:e>0?`${Math.round(t/e*100)}% utilization`:"--",color:"text-cyan-400",accent:"from-cyan-500/20 to-cyan-500/0",border:"border-cyan-500/15"}),(0,a.jsx)(i,{value:n-e,label:"Offline",sub:n-e==0?"All systems go":`${n-e} disconnected`,color:"text-gray-400",accent:"from-gray-500/10 to-gray-500/0",border:"border-gray-500/15"}),(0,a.jsx)(i,{value:n,label:"Total",sub:"Registered nodes",color:"text-white",accent:"from-blue-500/15 to-blue-500/0",border:"border-blue-500/15"})]})]})}function i({value:e,label:t,sub:n,color:o,accent:r,border:s}){let l=o.replace("text-","").split("-")[0];return(0,a.jsxs)("div",{"data-anet-stat-card":l,className:`anet-stat-card relative overflow-hidden rounded-xl border ${s} bg-[#111128] px-4 py-3 transition-all`,children:[(0,a.jsx)("div",{className:`absolute inset-0 bg-gradient-to-br ${r} pointer-events-none`}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:`text-3xl font-bold ${o} tabular-nums leading-tight`,children:e}),(0,a.jsx)("div",{className:"text-sm text-gray-300 mt-0.5",children:t}),(0,a.jsx)("div",{className:"text-xs text-gray-600 mt-1",children:n})]})]})}function l(){let[e,t]=(0,n.useState)(""),[o,r]=(0,n.useState)(!1),[s,i]=(0,n.useState)(""),l=async()=>{if(e.trim()){r(!0),i("");try{let a=await fetch("/api/hub/broadcast",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:e})}),n=await a.json();n.ok?(i(`Broadcast sent to ${n.recipients} node(s)`),t("")):i(`Failed: ${n.error||"Send error"}`)}catch(e){i(`Failed: ${e instanceof Error?e.message:"Send error"}`)}r(!1),setTimeout(()=>i(""),5e3)}};return(0,a.jsxs)("div",{className:"mb-6",children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)("input",{type:"text",value:e,onChange:e=>t(e.target.value),onKeyDown:e=>"Enter"===e.key&&l(),placeholder:"Broadcast message to all online agents...",maxLength:500,"aria-label":"Broadcast message",className:"flex-1 bg-[#111128] border border-[#2a2a4a] rounded-lg px-4 py-2.5 text-sm text-white placeholder-gray-600 focus:border-blue-500/50 focus:ring-1 focus:ring-blue-500/20 focus:outline-none transition-colors"}),(0,a.jsx)("button",{onClick:l,disabled:o||!e.trim(),"aria-label":"Send broadcast",className:"flex items-center gap-2 px-5 py-2.5 bg-blue-600 hover:bg-blue-500 disabled:bg-gray-800 disabled:text-gray-600 text-white text-sm rounded-lg transition-all font-medium cursor-pointer disabled:cursor-not-allowed",children:o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("svg",{"aria-hidden":!0,className:"w-4 h-4 animate-spin",viewBox:"0 0 24 24",fill:"none",children:[(0,a.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"3",opacity:"0.25"}),(0,a.jsx)("path",{d:"M4 12a8 8 0 018-8",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),(0,a.jsx)("span",{children:"Sending…"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("svg",{"aria-hidden":!0,className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,a.jsx)("path",{d:"M3 11v3a1 1 0 0 0 1 1h2l3.29 3.29a1 1 0 0 0 1.71-.71V7.42a1 1 0 0 0-1.71-.71L6 10H4a1 1 0 0 0-1 1Z"}),(0,a.jsx)("path",{d:"M16 8a5 5 0 0 1 0 6",opacity:"0.7"}),(0,a.jsx)("path",{d:"M19 5a9 9 0 0 1 0 12",opacity:"0.45"})]}),(0,a.jsx)("span",{children:"Broadcast"})]})})]}),e.length>0&&(0,a.jsxs)("div",{className:"text-right text-xs text-gray-600 mt-1 tabular-nums",children:[e.length,"/500"]}),s&&(0,a.jsx)("div",{className:`mt-3 text-sm text-center anet-fade-in ${s.startsWith("Failed")?"text-red-400":"text-green-400/80"}`,children:s})]})}var d=e.i(12629),c=e.i(56058),u=e.i(46228),h=e.i(43058),p=e.i(59276),m=e.i(59746);function f({alias:e,onClose:t}){let[o,r]=(0,n.useState)({x:0,y:0}),[s,i]=(0,n.useState)({w:380,h:520}),l=(0,n.useRef)({active:!1,startX:0,startY:0,baseX:0,baseY:0}),d=(0,n.useRef)({active:!1,startX:0,startY:0,baseW:0,baseH:0}),{sessions:c}=(0,p.useSessions)(),g=(0,n.useMemo)(()=>c.find(t=>t.alias===e),[c,e]),x=g&&"offline"!==g.status?null:(0,m.relativeAgo)(g?.last_seen_at),y=(0,n.useCallback)((e,t,a,n)=>({x:Math.min(Math.max(16,e),Math.max(16,window.innerWidth-a-16)),y:Math.min(Math.max(16,t),Math.max(16,window.innerHeight-n-16))}),[]);(0,n.useEffect)(()=>{let e=()=>{let e=window.innerWidth,t=window.innerHeight,a=Math.min(380,e-32),n=Math.min(520,t-96);i({w:a,h:n});let o=e<640;r(y(o?16:e-a-24,o?t-n-16:96,a,n))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[y]),(0,n.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t]);let b=e=>{if(l.current.active){l.current.active=!1;try{e.currentTarget.releasePointerCapture?.(e.pointerId)}catch{}}},v=e=>{if(d.current.active){d.current.active=!1,e.stopPropagation();try{e.currentTarget.releasePointerCapture?.(e.pointerId)}catch{}}};return(0,a.jsxs)("div",{className:"fixed z-50 flex flex-col overflow-hidden rounded-xl border border-[var(--border)] bg-[var(--bg)] shadow-2xl shadow-black/60 anet-fade-in",style:{left:o.x,top:o.y,width:s.w,height:s.h},role:"dialog","aria-label":`Chat with ${e}`,children:[(0,a.jsxs)("div",{onPointerDown:e=>{0===e.button&&(e.currentTarget.setPointerCapture?.(e.pointerId),l.current={active:!0,startX:e.clientX,startY:e.clientY,baseX:o.x,baseY:o.y})},onPointerMove:e=>{let t=l.current;t.active&&r(y(t.baseX+(e.clientX-t.startX),t.baseY+(e.clientY-t.startY),s.w,s.h))},onPointerUp:b,onPointerCancel:b,className:"flex items-center justify-between px-3 py-2.5 border-b border-[var(--border)] bg-[var(--bg-secondary)] rounded-t-xl cursor-grab active:cursor-grabbing select-none touch-none",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2.5 min-w-0",children:[(0,a.jsx)(u.AliasAvatar,{alias:e,size:28}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsx)("div",{className:"text-sm font-semibold text-[var(--fg)] truncate",children:e}),g?.project_dir?(0,a.jsxs)("div",{className:"text-[10px] text-[var(--fg-muted)] truncate font-mono",title:g.project_dir,"data-popover-cwd":!0,children:["cwd: ",g.project_dir]}):null,x?(0,a.jsxs)("div",{className:"text-[10px] text-[var(--fg-muted)] truncate","data-popover-lastseen":!0,children:["last seen: ",x]}):null,g?.project_dir||x?null:(0,a.jsx)("div",{className:"text-[10px] text-[var(--fg-muted)]",children:"Drag to move · Esc to close"})]})]}),(0,a.jsx)("button",{onClick:t,onPointerDown:e=>e.stopPropagation(),"aria-label":"Close chat",className:"text-[var(--fg-muted)] hover:text-[var(--fg)] p-1.5 rounded-lg hover:bg-[var(--bg-elevated)] shrink-0",children:(0,a.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,a.jsx)("div",{className:"flex-1 min-h-0",children:(0,a.jsx)(h.TaskChatPanel,{alias:e,onClose:t,inline:!0})}),(0,a.jsx)("div",{onPointerDown:e=>{0===e.button&&(e.stopPropagation(),e.currentTarget.setPointerCapture?.(e.pointerId),d.current={active:!0,startX:e.clientX,startY:e.clientY,baseW:s.w,baseH:s.h})},onPointerMove:e=>{let t=d.current;if(!t.active)return;e.stopPropagation();let a=Math.max(300,window.innerWidth-o.x-16),n=Math.max(320,window.innerHeight-o.y-16);i({w:Math.min(a,Math.max(300,t.baseW+(e.clientX-t.startX))),h:Math.min(n,Math.max(320,t.baseH+(e.clientY-t.startY)))})},onPointerUp:v,onPointerCancel:v,"aria-label":"Resize chat",className:"absolute bottom-0 right-0 w-5 h-5 cursor-nwse-resize touch-none z-10",style:{touchAction:"none"},children:(0,a.jsx)("svg",{className:"absolute bottom-0.5 right-0.5 w-3 h-3 text-[var(--fg-dim)]",viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":!0,children:(0,a.jsx)("path",{d:"M11 5L5 11M11 9L9 11"})})})]})}let g={id:"unknown",label:"Unknown vendor",mono:{bg:"hsl(220 10% 26%)",ring:"hsl(220 10% 46%)",text:"hsl(220 14% 82%)"},initial:"?",logo:null},x=[{test:e=>e.startsWith("intern"),vendor:{id:"intern",label:"书生 · 上海 AI 实验室",mono:{bg:"hsl(28 38% 24%)",ring:"hsl(32 45% 52%)",text:"hsl(34 60% 82%)"},initial:"书",logo:"/intern_avatar.png"}},{test:e=>e.startsWith("minimax"),vendor:{id:"minimax",label:"MiniMax",mono:{bg:"hsl(18 50% 26%)",ring:"hsl(18 65% 52%)",text:"hsl(20 80% 82%)"},initial:"M",logo:"/vendors/minimax.svg"}},{test:e=>e.startsWith("claude"),vendor:{id:"anthropic",label:"Anthropic",mono:{bg:"hsl(16 32% 26%)",ring:"hsl(16 48% 54%)",text:"hsl(18 60% 84%)"},initial:"A",logo:"/vendors/claude.svg"}},{test:e=>e.startsWith("gpt")||e.startsWith("codex")||e.startsWith("o1")||e.startsWith("o3")||e.startsWith("o4"),vendor:{id:"openai",label:"OpenAI",mono:{bg:"hsl(165 26% 22%)",ring:"hsl(165 40% 44%)",text:"hsl(165 45% 80%)"},initial:"O",logo:"/vendors/openai.svg"}}];function y(e){if(!e)return g;let t=e.toLowerCase();for(let e of x)if(e.test(t))return e.vendor;return g}let b={"claude-code-cli":{label:"Claude Code CLI",iconPath:"M4 5h16v14H4z M7 9l3 3-3 3 M13 15h4",color:"#a78bfa"},"codex-sdk":{label:"Codex SDK",iconPath:"M9 7l-5 5 5 5 M15 7l5 5-5 5",color:"#38bdf8"},"claude-agent-sdk":{label:"Claude Agent SDK",iconPath:"M4 7h16v10H4z M8 11h8 M8 14h5",color:"#34d399"},"http-api":{label:"HTTP API",iconPath:"M7 18a4 4 0 010-8 5 5 0 019.6-1.3A3.5 3.5 0 0118 18z",color:"#fbbf24"}};function v(e){return e?b[e]??null:null}let k=async e=>{let t=await fetch(e);return t.ok?t.json():null};function w(e,t,a,n=0){let o=t<=2?Math.PI:1.78*Math.PI,r=-Math.PI/2-o/2,s=t<=1?-Math.PI/2:r+o*e/(t-1)+n;return{x:500+a*Math.cos(s),y:330+a*Math.sin(s)}}function j(e,t,a=0){let n=(e.x+t.x)/2,o=(e.y+t.y)/2,r=t.x-e.x,s=t.y-e.y,i=Math.hypot(r,s)||1,l={x:n+-s/i*a,y:o+r/i*a};return`M${e.x},${e.y} Q${l.x},${l.y} ${t.x},${t.y}`}function N(e,t){return e.length>t?`${e.slice(0,t-1)}...`:e}function S({sessions:e}){let t=(0,n.useRef)(Date.now()),[o,r]=(0,n.useState)(()=>Date.now());(0,n.useEffect)(()=>{t.current=Date.now()},[e]),(0,n.useEffect)(()=>{let e=setInterval(()=>r(Date.now()),1e3);return()=>clearInterval(e)},[]);let s=Math.max(0,Math.floor((o-t.current)/1e3)),i=s>10;return i?(0,a.jsxs)("span",{className:`hidden sm:inline px-2.5 py-1 rounded-md font-mono font-medium tabular-nums border transition-colors duration-300 ${i?"bg-amber-500/10 text-amber-300 border-amber-500/20":"bg-gray-500/10 text-gray-400 border-gray-500/20"}`,title:i?`Last sync ${s}s ago — SWR refresh may be lagging`:`Live data \xb7 refreshes every 5s \xb7 last sync ${s}s ago`,"data-freshness-chip":!0,"data-freshness-chip-stale":i?"true":"false",children:[i?"lag":"live"," · ",(0,a.jsx)("span",{className:"font-semibold","data-freshness-chip-digit":!0,children:s}),(0,a.jsx)("span",{className:"opacity-70","data-freshness-chip-unit":!0,children:"s"})]}):null}function $(e,t,a){return t?"working"===e.status?{label:"working",primary:a?"#059669":"#22c55e",halo:a?"#d1fae5":"#14532d",text:a?"#065f46":"#dcfce7"}:"idle"===e.status?{label:"idle",primary:a?"#0d9488":"#2dd4bf",halo:a?"#ccfbf1":"#134e4a",text:a?"#115e59":"#ccfbf1"}:{label:e.status||"online",primary:a?"#0284c7":"#38bdf8",halo:a?"#e0f2fe":"#0c4a6e",text:a?"#0c4a6e":"#e0f2fe"}:{label:"offline",primary:a?"#94a3b8":"#6b7280",halo:a?"#e2e8f0":"#111827",text:a?"#475569":"#9ca3af"}}let _={panelStops:["#0b1220","#080814","#101018"],radarStops:[{color:"#22d3ee",opacity:.18},{color:"#22c55e",opacity:.045},{color:"#020617",opacity:0}],arrowFill:"#67e8f9",ringStroke:"#164e63",spokeStroke:{active:"#22d3ee",idle:"#155e75"},flowEdge:"#67e8f9",flowPath:"#e0f2fe",flowParticle:"#fef08a",nodeFill:{online:"#020617",offline:"#080814"},labelBox:{fill:"#020617",stroke:"#1f2937"},legendBox:{fill:"#020617",stroke:"#1f2937"},legendText:"#94a3b8",legendHeadline:"#e5e7eb",legendAccent:"#67e8f9",containerBg:"#080814",containerBorder:"#2a2a4a",topRailGradient:"from-transparent via-cyan-400/70 to-transparent"},M={panelStops:["#f8fafc","#ffffff","#f1f5f9"],radarStops:[{color:"#10b981",opacity:.06},{color:"#3b82f6",opacity:.03},{color:"#ffffff",opacity:0}],arrowFill:"#10b981",ringStroke:"#cbd5e1",spokeStroke:{active:"#10b981",idle:"#cbd5e1"},flowEdge:"#10b981",flowPath:"#475569",flowParticle:"#f59e0b",nodeFill:{online:"#ffffff",offline:"#f8fafc"},labelBox:{fill:"#ffffff",stroke:"#e2e8f0"},legendBox:{fill:"#ffffff",stroke:"#e2e8f0"},legendText:"#475569",legendHeadline:"#0f172a",legendAccent:"#0d9488",containerBg:"#ffffff",containerBorder:"#e3e6eb",topRailGradient:"from-transparent via-emerald-500/40 to-transparent"};function C(e,t){let a=0;for(;a<e.length&&a<t.length&&e[a]===t[a];)a++;return e.slice(0,a)}function E(e){let t=e.length,a=e.map((e,t)=>t),n=e=>{for(;a[e]!==e;)a[e]=a[a[e]],e=a[e];return e},o=(e,t)=>{let o=n(e),r=n(t);o!==r&&(a[o]=r)},r={};for(let t of(e.forEach((e,t)=>{let a=e.project_dir?.trim();a&&(r[a]||=[]).push(t)}),Object.values(r)))for(let e=1;e<t.length;e++)o(t[0],t[e]);let s=e.map((e,t)=>t).sort((t,a)=>e[t].alias.localeCompare(e[a].alias));for(let t=0;t+1<s.length;t++)C(e[s[t]].alias,e[s[t+1]].alias).length>=2&&o(s[t],s[t+1]);let i={};for(let e=0;e<t;e++)(i[n(e)]||=[]).push(e);let l={};for(let t of Object.values(i)){let a;if(1===t.length)a=e[t[0]].alias;else{let n=new Set(t.map(t=>e[t].project_dir?.trim()).filter(Boolean));if(1===n.size){let e=[...n][0];a=e.split("/").filter(Boolean).pop()||e}else(a=t.map(t=>e[t].alias).reduce((e,t)=>C(e,t))).length<2&&(a=e[t[0]].alias)}for(let n of t)l[e[n].alias]=a}return l}function z(e,t){let a=new Map;return e.forEach(e=>{if(!t[e.from_alias]||!t[e.to_alias]||e.from_alias===e.to_alias)return;let n=`${e.from_alias}->${e.to_alias}`,o=a.get(n),r=e.created_at||"",s=o?r>o.last_at?r:o.last_at:r;a.set(n,{key:n,from:e.from_alias,to:e.to_alias,count:(o?.count||0)+1,content:o?.content||e.content,last_at:s})}),[...a.values()].slice(0,18)}function T({sessions:e,sseSessions:t,renameSignal:o}){let r,s,i,l,h,p,g,x,b,C,A,L,F,P,W,D,I,B,R,O,H,Y,X,K,V,U,G,J,q,Z,Q,ee,et,ea,en,eo,er,es,ei,el,ed,ec,eu,eh,ep,em,ef,eg,ex,ey,eb,ev,ek,ew,ej,eN,eS,e$,e_,eM="light"===function(){let[e,t]=(0,n.useState)("dark");return(0,n.useEffect)(()=>{let e=()=>{let e=document.documentElement.getAttribute("data-theme")||"cyber";t("light"===e||"mint"===e?"light":"dark")};e();let a=new MutationObserver(e);return a.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>a.disconnect()},[]),e}(),eC=function(){let[e,t]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(!window.matchMedia)return;let e=window.matchMedia("(prefers-reduced-motion: reduce)");t(e.matches);let a=e=>t(e.matches);return e.addEventListener("change",a),()=>e.removeEventListener("change",a)},[]),e}(),eE=eM?M:_,ez="intern"===function(){let[e,t]=(0,n.useState)(null);return(0,n.useEffect)(()=>{try{let e=new URL(window.location.href).searchParams.get("brand");null!==e?""===e||"none"===e?(localStorage.removeItem("anet-brand"),t(null)):(localStorage.setItem("anet-brand",e),t(e)):t(localStorage.getItem("anet-brand"))}catch{}},[]),e}(),eT=function(){let{data:e}=(0,d.default)("/api/hub/servers",k,{refreshInterval:15e3,dedupingInterval:5e3});return(0,n.useMemo)(()=>{let t=new Map;for(let a of e?.servers??[]){let e=function(e){if("offline"===e.status)return null;let t=[null!=e.cpu_load_1min&&e.cpu_cores>0?e.cpu_load_1min/e.cpu_cores*100:null,null!=e.mem_used_gb&&null!=e.mem_total_gb&&e.mem_total_gb>0?e.mem_used_gb/e.mem_total_gb*100:null,null!=e.disk_used_gb&&null!=e.disk_total_gb&&e.disk_total_gb>0?e.disk_used_gb/e.disk_total_gb*100:null].filter(e=>"number"==typeof e);if(0===t.length)return null;let a=Math.max(...t);return a>=85?"red":a>=60?"amber":"green"}(a);e&&t.set(a.hostname,e)}return t},[e])}(),eA=(0,c.useRouter)(),[eL,eF]=(0,n.useState)([]),[eP,eW]=(0,n.useState)("ring");(0,n.useEffect)(()=>{try{let t=localStorage.getItem("anet-topo-layout");"grid"===t||"ring"===t?eW(t):e.length>=20&&eW("grid")}catch{}},[]);let[eD,eI]=(0,n.useState)(!1),eB=()=>{eI(!0),setTimeout(()=>eI(!1),400),eW(e=>{let t="ring"===e?"grid":"ring";try{localStorage.setItem("anet-topo-layout",t)}catch{}return t})},[eR,eO]=(0,n.useState)(.84);(0,n.useEffect)(()=>{try{let e=parseFloat(localStorage.getItem("anet-topo-nodescale")||"");(.7===e||.84===e||1===e)&&eO(e)}catch{}},[]);let[eH,eY]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/api/hub/messages?limit=50");if(401===e.status)return void window.location.assign("/login");let t=await e.json();eF(t.messages||[])}catch{}};e();let t=setInterval(e,5e3);return()=>clearInterval(t)},[]);let{onlineNodes:eX,offlineNodes:eK,nodePositions:eV,flowLinks:eU,activeAliases:eG,groupKeys:eJ,groupBoxes:eq,gridContentBottom:eZ}=(0,n.useMemo)(()=>{let a=e=>(e.network_id?t[`${e.network_id}:${e.alias}`]:void 0)??t[e.alias],n=(e,t)=>e.alias.localeCompare(t.alias),o=Date.now(),r=e.filter(e=>"offline"!==e.status||a(e)).sort(n),s=e.filter(e=>"offline"===e.status&&!a(e)&&!(e=>{if("offline"!==e.status||a(e)||!e.last_seen_at)return!1;let t=(0,m.parseHubTime)(e.last_seen_at);return null!==t&&o-t>36e5})(e)).sort(n),i={};if("grid"===eP){let e=[...r,...s],t=E(e),n=Math.max(1,Math.ceil(Math.sqrt(e.length))),o=700/n,l=Math.round(26*eR),d=[];for(let a of e){let e=t[a.alias],n=d[d.length-1];n&&n.key===e?n.members.push(a):d.push({key:e,members:[a]})}let c=[],u=0,h=0;for(;h<d.length;)if(d[h].members.length>=2)c.push({members:d[h].members,startRow:u,centred:!1,isGroup:!0}),u+=Math.ceil(d[h].members.length/n),h++;else{let e=[];for(;h<d.length&&d[h].members.length<2;)e.push(d[h].members[0]),h++;c.push({members:e,startRow:u,centred:!0,isGroup:!1}),u+=Math.ceil(e.length/n)}let p=Math.max(1,u),m=l+20,f=Math.max(2*l+22,m+12,l+(eR<.8?12:14)+m+3,Math.min(100,526/p));for(let e of c)e.members.forEach((t,a)=>{let r=Math.floor(a/n),s=a%n,l=Math.min(n,e.members.length-r*n),d=e.centred?(n-l)*o/2:0;i[t.alias]={x:150+d+(s+.5)*o,y:126+(e.startRow+r+.5)*f}});let g=z(eL,i),x=new Set;g.forEach(e=>{x.add(e.from),x.add(e.to)});let y=Math.max(8,Math.min(26,f-m-8)),b=c.filter(e=>e.isGroup).map(e=>{let n=e.members.map(e=>i[e.alias]).filter(Boolean),o=n.map(e=>e.x),r=n.map(e=>e.y),s=Math.min(...o),l=Math.min(...r),d=0,c=0,u=0;for(let t of e.members){let e="offline"!==t.status||!!a(t);"working"===t.status?d++:e?c++:u++}return{key:e.members.length?t[e.members[0].alias]:"",count:e.members.length,statuses:{working:d,idle:c,offline:u},x:s-y,y:l-m,w:Math.max(...o)-s+2*y,h:Math.max(...r)-l+m+y}});return{onlineNodes:r,offlineNodes:s,nodePositions:i,flowLinks:g,activeAliases:x,groupKeys:t,groupBoxes:b,gridContentBottom:126+p*f+8}}let l=r.length>14,d=!l&&r.length>8,c=r.length;if(l){let e=Math.ceil(r.length/3),t=r.slice(0,e),a=r.slice(e,2*e),n=r.slice(2*e);t.forEach((e,a)=>{i[e.alias]=w(a,Math.max(t.length,1),145)});let o=t.length<=2?Math.PI:1.78*Math.PI,s=t.length>1?o/(t.length-1):0;a.forEach((e,t)=>{i[e.alias]=w(t,Math.max(a.length,1),215,s/2)}),n.forEach((e,t)=>{i[e.alias]=w(t,Math.max(n.length,1),285)}),c=n.length}else if(d){let e=Math.ceil(r.length/2),t=r.length-e,a=r.slice(0,e),n=r.slice(e);a.forEach((t,a)=>{i[t.alias]=w(a,Math.max(e,1),175)});let o=e<=2?Math.PI:1.78*Math.PI,s=e>1?o/(e-1):0;n.forEach((e,a)=>{i[e.alias]=w(a,Math.max(t,1),260,s/2)}),c=t}else r.forEach((e,t)=>{i[e.alias]=w(t,Math.max(r.length,1),220)});let u=c<=2?Math.PI:1.78*Math.PI,h=c>1?u/(c-1):0,p=c>0?h/2:0,f=325+6*Math.max(0,s.length-4);s.forEach((e,t)=>{i[e.alias]=w(t,Math.max(s.length,1),f,p)});let g=z(eL,i),x=new Set;g.forEach(e=>{x.add(e.from),x.add(e.to)});let y=E([...r,...s]);return{onlineNodes:r,offlineNodes:s,nodePositions:i,flowLinks:g,activeAliases:x,groupKeys:y,groupBoxes:[],gridContentBottom:0}},[eL,e,t,eP,eR]),eQ=eX.filter(e=>"working"===e.status).length,e0=(0,n.useMemo)(()=>{let e=new Map;for(let t of[...eX,...eK]){let a=y(t.model),n="unknown"===a.id?"?":a.initial,o=e.get(n);o?o.count++:e.set(n,{initial:n,count:1,color:a.mono.text})}return[...e.values()].sort((e,t)=>t.count-e.count)},[eX,eK]),e1=eX.length+eK.length>16,[e2,e5]=(0,n.useState)(null),[e4,e3]=(0,n.useState)(null),e8=e4??(e2?eJ[e2]??e2:null),[e6,e7]=(0,n.useState)(()=>{try{return sessionStorage.getItem("anet-topo-pinned-group")}catch{return null}}),e9=e8??e6;(0,n.useEffect)(()=>{try{e6?sessionStorage.setItem("anet-topo-pinned-group",e6):sessionStorage.removeItem("anet-topo-pinned-group")}catch{}},[e6]),(0,n.useEffect)(()=>{!e6||new Set(Object.values(eJ)).has(e6)||e7(null)},[e6,eJ]);let[te,tt]=(0,n.useState)(null),[ta,tn]=(0,n.useState)(null),to=te??ta,[tr,ts]=(0,n.useState)(!1),[ti,tl]=(0,n.useState)(!1),[td,tc]=(0,n.useState)(!1),[tu,th]=(0,n.useState)(!1),[tp,tm]=(0,n.useState)(!1),[tf,tg]=(0,n.useState)(!1),[tx,ty]=(0,n.useState)(null),[tb,tv]=(0,n.useState)(null),[tk,tw]=(0,n.useState)(()=>{try{return sessionStorage.getItem("anet-topo-pinned-vendor")}catch{return null}}),tj=tb??tk;(0,n.useEffect)(()=>{try{tk?sessionStorage.setItem("anet-topo-pinned-vendor",tk):sessionStorage.removeItem("anet-topo-pinned-vendor")}catch{}},[tk]),(0,n.useEffect)(()=>{tk&&!e0.some(e=>e.initial===tk)&&tw(null)},[tk,e0]);let[tN,tS]=(0,n.useState)(null),[t$,t_]=(0,n.useState)(()=>{try{let e=sessionStorage.getItem("anet-topo-pinned-status");return"working"===e||"idle"===e||"offline"===e?e:null}catch{return null}}),tM=tN??t$;(0,n.useEffect)(()=>{try{t$?sessionStorage.setItem("anet-topo-pinned-status",t$):sessionStorage.removeItem("anet-topo-pinned-status")}catch{}},[t$]),(0,n.useEffect)(()=>{let e=e=>{let t=e.detail||{};if("clear"===t.kind)t_(null),e7(null),tw(null),tn(null);else if("clear-vendor"===t.kind)tw(null);else if("clear-edge"===t.kind)tn(null);else if("status"===t.kind){let e=t.value;("working"===e||"idle"===e||"offline"===e)&&t_(e)}else"group"===t.kind&&"string"==typeof t.value?e7(t.value):"vendor"===t.kind&&"string"==typeof t.value&&tw(t.value)};return window.addEventListener("anet:topo-pin",e),()=>window.removeEventListener("anet:topo-pin",e)},[]);let tC=(0,n.useMemo)(()=>{if(!to)return null;let e=eU.find(e=>e.key===to);return e?new Set([e.from,e.to]):null},[to,eU]),tE=(0,n.useRef)(null),tz=(0,n.useRef)(null),[tT,tA]=(0,n.useState)({zoom:1,x:0,y:0}),tL=(0,n.useRef)(tT),tF=(0,n.useRef)({active:!1,startX:0,startY:0,baseX:0,baseY:0}),[tP,tW]=(0,n.useState)(!1),[tD,tI]=(0,n.useState)(!1),[tB,tR]=(0,n.useState)(null),tO=e=>{tR(e),setTimeout(()=>tR(t=>t===e?null:t),240)},[tH,tY]=(0,n.useState)(null),[tX,tK]=(0,n.useState)(null);(0,n.useEffect)(()=>{o&&o.from===tH&&tY(o.to)},[o]),(0,n.useEffect)(()=>{tL.current=tT},[tT]),(0,n.useEffect)(()=>{try{let e=localStorage.getItem("anet-topo-view");if(e){let t=JSON.parse(e);"number"==typeof t?.zoom&&tA({zoom:Math.min(4,Math.max(.5,t.zoom)),x:"number"==typeof t.x?t.x:0,y:"number"==typeof t.y?t.y:0})}}catch{}},[]);let[tV]=(0,n.useState)(()=>!!localStorage.getItem("anet-topo-view")),tU=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(!tU.current){if(tV){tU.current=!0;return}if("grid"===eP&&0!==e.length&&eZ){if(eZ<=680){tU.current=!0;return}tA({zoom:Math.max(.5,Math.min(1,680/eZ)),x:0,y:0}),tU.current=!0}}},[eP,e.length,eZ,tV]),(0,n.useEffect)(()=>{try{localStorage.setItem("anet-topo-view",JSON.stringify(tT))}catch{}},[tT]),(0,n.useEffect)(()=>{let e=()=>tW(document.fullscreenElement===tE.current);return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[]),(0,n.useEffect)(()=>{let e=tz.current;if(!e)return;let t=t=>{if(!tP&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault();let a=e.getBoundingClientRect(),n=(t.clientX-a.left)/a.width*1e3,o=(t.clientY-a.top)/a.height*680;tA(e=>{let a=Math.min(1.08,Math.max(.926,Math.exp(-(6e-4*t.deltaY)))),r=Math.min(4,Math.max(.5,e.zoom*a)),s=r/e.zoom;return{zoom:r,x:n-(n-e.x)*s,y:o-(o-e.y)*s}})};return e.addEventListener("wheel",t,{passive:!1}),()=>e.removeEventListener("wheel",t)},[tP]);let[tG,tJ]=(0,n.useState)(!1),tq=e=>{if(tF.current.active){tF.current.active=!1,tJ(!1);try{e.currentTarget.releasePointerCapture?.(e.pointerId)}catch{}}},tZ=e=>{t0(!0),setTimeout(()=>t0(!1),350),tA(t=>{let a=Math.min(4,Math.max(.5,t.zoom*e)),n=a/t.zoom;return{zoom:a,x:500-(500-t.x)*n,y:340-(340-t.y)*n}})},[tQ,t0]=(0,n.useState)(!1),t1=()=>{t0(!0),setTimeout(()=>t0(!1),350),tA({zoom:1,x:0,y:0})},t2=(0,n.useCallback)(()=>{let e=!eZ||eZ<=680?1:Math.max(.5,Math.min(1,680/eZ));t0(!0),setTimeout(()=>t0(!1),350),tA({zoom:e,x:0,y:0})},[eZ]);return(0,n.useEffect)(()=>{let e=e=>{"toggle"===(e.detail||{}).kind&&eB()},t=e=>{"fit"===(e.detail||{}).kind&&t2()};return window.addEventListener("anet:topo-layout",e),window.addEventListener("anet:topo-view",t),()=>{window.removeEventListener("anet:topo-layout",e),window.removeEventListener("anet:topo-view",t)}},[t2]),(0,n.useEffect)(()=>{let e=e=>{if(e.ctrlKey||e.metaKey||e.altKey)return;let t=document.activeElement;if(t){let e=t.tagName;if("INPUT"===e||"TEXTAREA"===e||"SELECT"===e||t.isContentEditable)return}"+"===e.key||"="===e.key?(tZ(1.2),e.preventDefault()):"-"===e.key||"_"===e.key?(tZ(1/1.2),e.preventDefault()):"0"===e.key?(t1(),e.preventDefault()):"f"===e.key||"F"===e.key?(t2(),e.preventDefault()):"l"===e.key||"L"===e.key?(eB(),e.preventDefault()):"Escape"===e.key&&!tH&&(t$||e6||tk||ta)&&(t$&&t_(null),e6&&e7(null),tk&&tw(null),ta&&tn(null),e.preventDefault())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t2,tH,t$,e6,tk,ta]),(0,a.jsxs)("section",{className:"w-full max-w-6xl mx-auto mb-8",children:[(0,a.jsxs)("div",{className:`flex flex-col gap-2.5 sm:flex-row sm:items-end sm:justify-between mb-4 px-1${tP?" hidden":""}`,"data-topo-header-row":!0,"data-topo-header-hidden":tP?"true":"false",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,a.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 32 32","aria-hidden":!0,className:"shrink-0","data-topo-brand-logo":!0,style:{color:eM?"#0d9488":"#67e8f9",transition:"color 200ms ease-out"},children:[(0,a.jsxs)("mask",{id:"s2a-titleblock-moon-mask",children:[(0,a.jsx)("rect",{width:"32",height:"32",fill:"black"}),(0,a.jsx)("circle",{cx:"16",cy:"16",r:"13",fill:"white"}),(0,a.jsx)("circle",{cx:"20.5",cy:"14.5",r:"11",fill:"black"})]}),(0,a.jsx)("rect",{width:"32",height:"32",fill:"currentColor",mask:"url(#s2a-titleblock-moon-mask)"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-xs uppercase text-gray-500 tracking-widest leading-tight font-medium","data-topo-section-kicker":!0,children:"Network Topology"}),(0,a.jsx)("h2",{className:"text-lg text-white font-semibold leading-tight tracking-tight","data-topo-section-title":!0,children:"Command mesh"})]})]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5 text-xs",children:[(0,a.jsxs)("div",{className:"mr-0.5 inline-flex rounded-lg border overflow-hidden",style:{borderColor:eE.containerBorder,transition:"border-color 200ms ease-out"},role:"group","aria-label":"Topology layout","data-topo-chrome-layout-trailer":!0,"data-topo-chrome-layout-radius":"rounded-lg",children:[(0,a.jsx)("button",{onClick:()=>{tO("layout-ring"),"ring"!==eP&&eB()},"aria-pressed":"ring"===eP,title:"Ring layout (l to toggle)","data-topo-chrome-layout":"ring","data-topo-chrome-layout-active":"ring"===eP?"true":"false","data-topo-chrome-layout-ring-popping":"layout-ring"===tB?"true":"false",className:`px-2.5 py-1 focus:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset hover:tracking-wide ${"ring"===eP?"bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25":"text-gray-400 hover:text-cyan-300 hover:bg-cyan-500/5 active:bg-cyan-500/15"} ${"layout-ring"===tB?" anet-chrome-pop":""}`,style:{transition:"background-color 150ms ease, color 150ms ease, letter-spacing 200ms ease-out"},children:"Ring"}),(0,a.jsx)("button",{onClick:()=>{tO("layout-grid"),"grid"!==eP&&eB()},"aria-pressed":"grid"===eP,title:"Grid layout (l to toggle)","data-topo-chrome-layout":"grid","data-topo-chrome-layout-active":"grid"===eP?"true":"false","data-topo-chrome-layout-grid-popping":"layout-grid"===tB?"true":"false",className:`px-2.5 py-1 border-l focus:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset hover:tracking-wide ${"grid"===eP?"bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25":"text-gray-400 hover:text-cyan-300 hover:bg-cyan-500/5 active:bg-cyan-500/15"} ${"layout-grid"===tB?" anet-chrome-pop":""}`,style:{borderColor:eE.containerBorder,transition:"background-color 150ms ease, color 150ms ease, border-color 200ms ease-out, letter-spacing 200ms ease-out"},children:"Grid"})]}),(r=eX.filter(e=>"working"===e.status).map(e=>e.alias),s=eX.map(e=>e.alias),i=e=>e.slice(0,8).join(", ")+(e.length>8?` + ${e.length-8} more`:""),l=0===eQ?void 0:"working"===t$?`${i(r)} — pinned, Esc to clear`:`${i(r)} — hover highlights, click to pin`,h=0===eX.length?void 0:"idle"===t$?`${i(s)} — pinned, Esc to clear`:`${i(s)} — hover highlights \xb7 click to open /nodes`,(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:`group tabular-nums font-medium px-2.5 py-1 rounded-md border anet-topo-chip-focus transition-colors transition-transform duration-200 ease-out transform-gpu ${eQ>0?"bg-green-500/10 text-green-300 border-green-500/20 hover:bg-green-500/15 hover:border-green-500/30 hover:-translate-y-px":"bg-green-500/10 text-green-300 border-green-500/20"}`,"data-chip-hover-lift":eQ>0?"true":"false","data-chip-group-hover-brighten":"true","data-working-chip":!0,"data-working-chip-aliases":r.join(","),"data-pin-mirror":"working"===t$?"true":"false","data-working-chip-clickable":eQ>0?"true":"false","data-working-chip-empty":0===eQ?"true":"false",title:l,role:eQ>0?"button":void 0,tabIndex:eQ>0?0:void 0,"aria-pressed":eQ>0?"working"===t$:void 0,style:{cursor:eQ>0?"pointer":void 0,opacity:0===eQ?.5:1,boxShadow:"working"===t$?"inset 0 0 0 1px #4ade80, inset 0 0 0 2px rgba(255,255,255,0.45)":void 0,transition:"box-shadow 150ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out, opacity 200ms ease-out"},onMouseEnter:()=>{eQ>0&&tS("working")},onMouseLeave:()=>tS(e=>"working"===e?null:e),onClick:()=>{eQ>0&&t_(e=>"working"===e?null:"working")},onKeyDown:e=>{0!==eQ&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t_(e=>"working"===e?null:"working"))},children:[(0,a.jsx)("span",{className:"font-semibold transition-[font-weight] duration-200 group-hover:font-bold","data-working-chip-digit":!0,children:eQ}),(0,a.jsx)("span",{className:"opacity-70 transition-opacity duration-200 group-hover:opacity-100","data-working-chip-unit":!0,children:" working"})]}),(0,a.jsxs)("span",{className:`group tabular-nums font-medium px-2.5 py-1 rounded-md border anet-topo-chip-focus transition-colors transition-transform duration-200 ease-out transform-gpu ${eX.length>0?"bg-cyan-500/10 text-cyan-300 border-cyan-500/20 hover:bg-cyan-500/15 hover:border-cyan-500/30 hover:-translate-y-px":"bg-cyan-500/10 text-cyan-300 border-cyan-500/20"}`,"data-chip-hover-lift":eX.length>0?"true":"false","data-chip-group-hover-brighten":"true","data-online-chip":!0,"data-online-chip-aliases":s.join(","),"data-pin-mirror":"idle"===t$?"true":"false","data-online-chip-clickable":eX.length>0?"true":"false","data-online-chip-empty":0===eX.length?"true":"false",title:h,role:eX.length>0?"link":void 0,tabIndex:eX.length>0?0:void 0,style:{cursor:eX.length>0?"pointer":void 0,opacity:0===eX.length?.5:1,boxShadow:"idle"===t$?"inset 0 0 0 1px #67e8f9, inset 0 0 0 2px rgba(255,255,255,0.45)":void 0,transition:"box-shadow 150ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out, opacity 200ms ease-out"},onMouseEnter:()=>{let e=eX.length-eQ;eQ>0?tS("working"):e>0&&tS("idle")},onMouseLeave:()=>tS(e=>"working"===e||"idle"===e?null:e),onClick:()=>{eX.length>0&&eA.push("/nodes")},onKeyDown:e=>{0!==eX.length&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eA.push("/nodes"))},children:[(0,a.jsx)("span",{className:"font-semibold transition-[font-weight] duration-200 group-hover:font-bold","data-online-chip-digit":!0,children:eX.length}),(0,a.jsx)("span",{className:"opacity-70 transition-opacity duration-200 group-hover:opacity-100","data-online-chip-unit":!0,children:" online"})]})]})),(()=>{let e=eX.length-eQ,t=eK.length,n=eQ+e+t;if(0===n)return null;let o=(e,t,o,r)=>{if(0===e)return null;let s=t$===o,i="working"===o?eX.filter(e=>"working"===e.status).map(e=>e.alias):"idle"===o?eX.filter(e=>"working"!==e.status).map(e=>e.alias):eK.map(e=>e.alias),l=i.slice(0,8).join(", "),d=i.length>8?` + ${i.length-8} more`:"",c=s?"click to release filter":"click to highlight";return(0,a.jsx)("span",{"data-pressure-seg":o,"data-pressure-seg-aliases":i.join(","),"data-pressure-seg-hovered":tN===o?"true":"false",role:"button",tabIndex:0,"aria-pressed":s,className:"anet-topo-chip-focus",title:`${e} ${r}
2
+ ${l}${d}
3
+ ${c}`,style:{width:`${e/n*100}%`,background:t,height:"100%",cursor:"pointer",boxShadow:s?`inset 0 0 0 1px ${t}, inset 0 0 0 2px rgba(255,255,255,0.6)`:void 0,filter:tN===o?"brightness(1.2)":void 0,transition:"width 220ms ease-out, box-shadow 150ms ease-out, filter 150ms ease-out"},onClick:e=>{e.stopPropagation(),t_(e=>e===o?null:o)},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t_(e=>e===o?null:o))},onMouseEnter:()=>tS(o),onMouseLeave:()=>tS(e=>e===o?null:e)},o)};return(0,a.jsxs)("span",{className:"hidden sm:inline-flex items-center gap-2 px-2.5 py-1 rounded-md bg-gray-500/10 text-gray-400 border border-gray-500/20 font-mono",title:`${eQ} working \xb7 ${e} idle \xb7 ${t} offline`,"data-fleet-pressure":!0,children:[(0,a.jsx)("span",{className:"text-[10px] tracking-wide font-medium","data-fleet-pressure-kicker":!0,children:"pressure"}),(0,a.jsxs)("span",{className:"inline-flex h-2 w-16 rounded-full overflow-hidden",style:{background:"rgb(75 85 99 / 0.25)"},"data-fleet-pressure-bar-height":"h-2",children:[o(eQ,eM?"#059669":"#22c55e","working","working"),o(e,eM?"#0d9488":"#2dd4bf","idle","idle"),o(t,eM?"#94a3b8":"#6b7280","offline","offline")]})]})})(),t$&&(p="working"===t$?eQ:"idle"===t$?eX.length-eQ:eK.length,x=(g="working"===t$?eX.filter(e=>"working"===e.status).map(e=>e.alias):"idle"===t$?eX.filter(e=>"working"!==e.status).map(e=>e.alias):eK.map(e=>e.alias)).slice(0,8).join(", "),b=g.length>8?` + ${g.length-8} more`:"",(0,a.jsxs)("span",{"data-active-filter":"status","data-filter-match-count":p,"data-filter-match-aliases":g.join(","),className:"group inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md font-mono font-medium text-xs border anet-fade-in anet-topo-chip-focus transition-transform duration-200 ease-out hover:-translate-y-px transform-gpu","data-topo-filter-pill-hover-lift":"true",title:p>0?`${x}${b} — click to clear`:"Click to clear filter",onClick:()=>t_(null),style:{background:"working"===t$?eM?"#05966914":"#22c55e1f":"idle"===t$?eM?"#0d948814":"#2dd4bf1f":eM?"#94a3b814":"#6b72801f",color:"working"===t$?eM?"#047857":"#86efac":"idle"===t$?eM?"#0f766e":"#5eead4":eM?"#475569":"#9ca3af",borderColor:"currentColor",cursor:"pointer"},children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"hidden sm:inline opacity-70 transition-opacity duration-200 group-hover:opacity-100","data-filter-prefix":!0,children:"filter: "}),(0,a.jsx)("span",{className:"font-semibold","data-filter-value":!0,children:t$}),(0,a.jsxs)("span",{className:"opacity-70 tabular-nums transition-opacity duration-200 group-hover:opacity-100","data-filter-pill-count":!0,children:[" · ",p]})]}),(0,a.jsx)("button",{type:"button","aria-label":`Clear ${t$} filter`,onClick:e=>{e.stopPropagation(),t_(null)},className:"ml-0.5 leading-none hover:opacity-70 transition-transform duration-200 ease-out hover:scale-110 transform-gpu",style:{background:"transparent",color:"inherit",cursor:"pointer",padding:0},children:"×"})]})),e6&&(C=Object.values(eJ).filter(e=>e===e6).length,L=(A=Object.entries(eJ).filter(([,e])=>e===e6).map(([e])=>e)).slice(0,8).join(", "),F=A.length>8?` + ${A.length-8} more`:"",(0,a.jsxs)("span",{"data-active-filter":"group","data-filter-match-count":C,"data-filter-match-aliases":A.join(","),className:"group inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md font-mono font-medium text-xs border anet-fade-in anet-topo-chip-focus transition-transform duration-200 ease-out hover:-translate-y-px transform-gpu","data-topo-filter-pill-hover-lift":"true",title:C>0?`${L}${F} — click to clear`:"Click to clear filter",onClick:()=>e7(null),style:{background:eM?"#67e8f914":"#67e8f91f",color:eE.legendAccent,borderColor:"currentColor",cursor:"pointer"},children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"hidden sm:inline opacity-70 transition-opacity duration-200 group-hover:opacity-100","data-filter-prefix":!0,children:"filter: "}),(0,a.jsx)("span",{className:"font-semibold","data-filter-value":!0,children:e6}),(0,a.jsxs)("span",{className:"opacity-70 tabular-nums transition-opacity duration-200 group-hover:opacity-100","data-filter-pill-count":!0,children:[" · ",C]})]}),(0,a.jsx)("button",{type:"button","aria-label":`Clear group filter ${e6}`,onClick:e=>{e.stopPropagation(),e7(null)},className:"ml-0.5 leading-none hover:opacity-70 transition-transform duration-200 ease-out hover:scale-110 transform-gpu",style:{background:"transparent",color:"inherit",cursor:"pointer",padding:0},children:"×"})]})),tk&&(P=e0.find(e=>e.initial===tk),W=P?.count??0,D=P?.color??eE.legendText,B=(I=[...eX,...eK].filter(e=>{let t=y(e.model);return("unknown"===t.id?"?":t.initial)===tk}).map(e=>e.alias)).slice(0,8).join(", "),R=I.length>8?` + ${I.length-8} more`:"",(0,a.jsxs)("span",{"data-active-filter":"vendor","data-filter-match-count":W,"data-filter-match-aliases":I.join(","),className:"group inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md font-mono font-medium text-xs border anet-fade-in anet-topo-chip-focus transition-transform duration-200 ease-out hover:-translate-y-px transform-gpu","data-topo-filter-pill-hover-lift":"true",title:W>0?`${B}${R} — click to clear`:"Click to clear vendor filter",onClick:()=>tw(null),style:{background:`${D}1f`,color:D,borderColor:"currentColor",cursor:"pointer"},children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"hidden sm:inline opacity-70 transition-opacity duration-200 group-hover:opacity-100","data-filter-prefix":!0,children:"filter: "}),(0,a.jsx)("span",{className:"font-semibold","data-filter-value":!0,children:tk}),(0,a.jsxs)("span",{className:"opacity-70 tabular-nums transition-opacity duration-200 group-hover:opacity-100","data-filter-pill-count":!0,children:[" · ",W]})]}),(0,a.jsx)("button",{type:"button","aria-label":`Clear vendor filter ${tk}`,onClick:e=>{e.stopPropagation(),tw(null)},className:"ml-0.5 leading-none hover:opacity-70 transition-transform duration-200 ease-out hover:scale-110 transform-gpu",style:{background:"transparent",color:"inherit",cursor:"pointer",padding:0},children:"×"})]})),ta&&(()=>{let e=eU.find(e=>e.key===ta);if(!e)return null;let t=e.count>=10;return(0,a.jsxs)("span",{"data-active-filter":"edge","data-filter-match-count":e.count,"data-filter-match-aliases":`${e.from},${e.to}`,"data-active-filter-edge-hot":t?"true":"false",className:"inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md font-mono font-medium text-xs border anet-fade-in anet-topo-chip-focus transition-transform duration-200 ease-out hover:-translate-y-px transform-gpu","data-topo-filter-pill-hover-lift":"true",title:`${e.from} → ${e.to} (${e.count} msg${1===e.count?"":"s"}${t?", hot lane · ≥ 10":""}) — click to clear`,onClick:()=>tn(null),style:{background:eM?`${eE.flowEdge}14`:`${eE.flowEdge}1f`,color:eE.flowEdge,borderColor:"currentColor",cursor:"pointer"},children:[(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"hidden sm:inline opacity-70","data-filter-prefix":!0,children:"filter: "}),(0,a.jsxs)("span",{className:"font-semibold","data-filter-value":!0,children:[e.from,"→",e.to]}),t?(0,a.jsxs)("span",{className:"opacity-90 tabular-nums",style:{color:eM?"#d97706":"#fbbf24",fontWeight:700},"data-active-filter-edge-count-hot":!0,children:[" · ",e.count]}):(0,a.jsxs)("span",{className:"opacity-70 tabular-nums","data-active-filter-edge-count":!0,children:[" · ",e.count]})]}),(0,a.jsx)("button",{type:"button","aria-label":`Clear edge filter ${e.from} → ${e.to}`,onClick:e=>{e.stopPropagation(),tn(null)},className:"ml-0.5 leading-none hover:opacity-70 transition-transform duration-200 ease-out hover:scale-110 transform-gpu",style:{background:"transparent",color:"inherit",cursor:"pointer",padding:0},children:"×"})]})})(),(()=>{let e=+!!t$+ +!!e6+ +!!tk+ +!!ta;if(e<2)return null;let t=ta?eU.find(e=>e.key===ta):null,n=t?new Set([t.from,t.to]):null,o=[...eX,...eK].filter(e=>{let t="offline"!==e.status;if("working"===t$&&"working"!==e.status||"idle"===t$&&!(t&&"working"!==e.status)||"offline"===t$&&t||e6&&(eJ[e.alias]??e.alias)!==e6)return!1;if(tk){let t=y(e.model);if(("unknown"===t.id?"?":t.initial)!==tk)return!1}return!n||!!n.has(e.alias)}).map(e=>e.alias),r=o.slice(0,8).join(", "),s=o.length>8?` + ${o.length-8} more`:"",i=0===o.length,l=i?`No nodes pass all ${e} pinned filters — release one to widen (Esc clears all)`:`${r}${s} — nodes passing all ${e} pinned filters`;return(0,a.jsx)("span",{"data-pin-intersection":!0,"data-pin-dim-count":e,"data-pin-intersection-count":o.length,"data-pin-intersection-empty":i?"true":"false","data-pin-intersection-aliases":o.join(","),className:"hidden sm:inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md font-mono tabular-nums text-xs border anet-fade-in anet-topo-chip-focus",title:l,style:{background:i?eM?"#d9770614":"#fbbf241f":eM?"#94a3b814":"#94a3b81f",color:i?eM?"#d97706":"#fbbf24":eM?"#475569":"#9ca3af",borderColor:"currentColor",transition:"background-color 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out"},children:(0,a.jsxs)("span",{children:[(0,a.jsx)("span",{className:"hidden sm:inline opacity-70","data-pin-intersection-prefix":!0,children:"match: "}),(0,a.jsx)("span",{className:"tabular-nums","data-pin-intersection-count-dims":!0,children:e}),(0,a.jsx)("span",{className:"opacity-70","data-pin-intersection-unit":!0,children:" pins"}),(0,a.jsxs)("span",{className:"opacity-70 tabular-nums","data-pin-intersection-count-matches":!0,children:[" · ",o.length]}),(0,a.jsx)("span",{className:"ml-1","aria-hidden":!0,"data-pin-intersection-warning":i?"true":"false",style:{opacity:+!!i,transition:"opacity 200ms ease-out"},children:"⚠"})]})})})(),e0.length>2&&(0,a.jsx)("span",{className:"hidden sm:inline-flex items-center gap-2 px-2.5 py-1 rounded-md bg-gray-500/10 text-gray-400 border border-gray-500/20 font-mono",title:"Hover to highlight; click to pin",children:e0.map(e=>{let t=tk===e.initial,n=[...eX,...eK].filter(t=>{let a=y(t.model);return("unknown"===a.id?"?":a.initial)===e.initial}).map(e=>e.alias),o=n.slice(0,8).join(", "),r=n.length>8?` + ${n.length-8} more`:"",s=t?`${o}${r} — click again or Esc to clear`:`${o}${r} — click to pin`;return(0,a.jsxs)("span",{role:"button",tabIndex:0,"aria-pressed":t,className:"group tabular-nums font-medium inline-flex items-baseline gap-0.5 px-1 rounded anet-topo-chip-focus transition-transform duration-200 ease-out transform-gpu hover:-translate-y-px","data-vendor-letter":e.initial,"data-vendor-letter-count":e.count,"data-vendor-letter-hover-lift":"true","data-vendor-pinned":t?"true":"false","data-vendor-hovered":tb===e.initial?"true":"false","data-vendor-aliases":n.join(","),title:s,style:{cursor:"pointer",backgroundColor:tb!==e.initial||t?"transparent":`color-mix(in srgb, ${e.color} 12%, transparent)`,boxShadow:t?`inset 0 0 0 1px ${e.color}, inset 0 0 0 2px rgba(255,255,255,0.45)`:void 0,transition:"box-shadow 150ms ease-out, background-color 200ms ease-out"},onMouseEnter:()=>tv(e.initial),onMouseLeave:()=>tv(t=>t===e.initial?null:t),onClick:()=>tw(t=>t===e.initial?null:e.initial),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),tw(t=>t===e.initial?null:e.initial))},children:[(0,a.jsx)("span",{"data-vendor-letter-glyph":e.initial,"data-vendor-letter-glyph-hover":tb===e.initial?"true":"false","data-vendor-letter-glyph-font-weight":"600",style:{color:e.color,display:"inline-block",fontWeight:600,transform:tb===e.initial?"scale(1.1)":"scale(1)",transformOrigin:"center",transition:"transform 200ms ease-out"},children:e.initial}),(0,a.jsxs)("span",{className:"text-gray-400 tabular-nums opacity-70 transition-opacity duration-200 group-hover:opacity-100","data-vendor-letter-count-suffix":!0,children:[":",e.count]})]},e.initial)})}),(H=null!==(O=eU.reduce((e,t)=>{if(!t.last_at)return e;let a=(0,m.parseHubTime)(t.last_at);return null===a?e:null===e||a>e?a:e},null))?(0,m.relativeAgo)(new Date(O).toISOString()):null,Y=eU.slice(0,6).map(e=>`${e.from}→${e.to} (${e.count})`).join(", "),X=eU.length>6?` + ${eU.length-6} more`:"",V=(K=eU.length>0)?`${Y}${X} — hover brightens all \xb7 click to open /messages`:void 0,(0,a.jsxs)("span",{className:`group tabular-nums font-medium hidden sm:inline px-2.5 py-1 rounded-md border anet-topo-chip-focus transition-transform duration-200 ease-out transform-gpu ${K?"bg-gray-500/10 text-gray-400 border-gray-500/20 hover:bg-cyan-500/10 hover:text-cyan-200 hover:border-cyan-500/30 hover:-translate-y-px":"bg-gray-500/10 text-gray-400 border-gray-500/20"}`,"data-chip-hover-lift":K?"true":"false","data-chip-group-hover-brighten":"true","data-active-links-chip":!0,"data-active-links-flow-count":eU.length,"data-active-links-clickable":K?"true":"false","data-active-links-empty":K?"false":"true",title:V,role:K?"link":void 0,tabIndex:K?0:void 0,style:{cursor:K?"pointer":void 0,opacity:K?1:.5,transition:"color 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out, opacity 200ms ease-out"},onMouseEnter:()=>{K&&ts(!0)},onMouseLeave:()=>ts(!1),onClick:()=>{K&&eA.push("/messages")},onKeyDown:e=>{K&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eA.push("/messages"))},children:[(0,a.jsx)("span",{className:"font-semibold transition-[font-weight] duration-200 group-hover:font-bold","data-active-links-chip-digit":!0,children:eU.length}),(0,a.jsxs)("span",{className:"opacity-70 transition-opacity duration-200 group-hover:opacity-100","data-active-links-chip-unit":!0,children:[" active link",1===eU.length?"":"s"]}),H?(G=(U=null!==O?Math.max(0,(Date.now()-O)/1e3):999)<=30?1:U<=300?1-(U-30)/270*.7:.3,J=eM?`rgba(13, 148, 136, ${G.toFixed(2)})`:`rgba(34, 211, 238, ${G.toFixed(2)})`,(0,a.jsxs)("span",{className:"text-gray-400 tabular-nums","data-active-links-freshness-wrapper":!0,children:[(0,a.jsx)("span",{"data-active-links-freshness-dot":!0,"data-active-links-freshness-alpha":G.toFixed(2),style:{color:J,fontWeight:G>.7?700:400,transition:"color 200ms ease-out"},children:" · "}),"last ",H]})):null]})),(0,a.jsx)(S,{sessions:e})]})]}),(0,a.jsxs)("div",{ref:tE,className:`relative overflow-hidden rounded-xl border shadow-2xl ${eM?"shadow-zinc-900/5":"shadow-cyan-950/30"} ${tP?"flex items-center justify-center":""}`,"data-topo-wrapper":!0,style:{background:eE.containerBg,borderColor:eE.containerBorder,transition:"background-color 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out"},children:[(0,a.jsx)("div",{className:`absolute inset-x-0 top-0 h-px bg-gradient-to-r ${eE.topRailGradient}`,"data-topo-top-rail":!0,style:{transition:"background-image 200ms ease-out"}}),(0,a.jsxs)("svg",{ref:tz,viewBox:"0 0 1000 680",className:"w-full h-auto block",preserveAspectRatio:"xMidYMid meet","aria-roledescription":"agent network topology","aria-label":(q=eX.length,Z=eK.length,Q=eU.length,(ee=[]).push(`${q} agent${1===q?"":"s"} online`),eQ>0&&ee.push(`${eQ} working`),Z>0&&ee.push(`${Z} offline`),ee.push(`${Q} active link${1===Q?"":"s"}`),`Agent network topology — ${ee.join(" · ")}. Tab to navigate nodes, double-click canvas to reset view.`),"data-topo-canvas-aria":!0,onPointerDown:e=>{0===e.button&&(e.currentTarget.setPointerCapture?.(e.pointerId),tF.current={active:!0,startX:e.clientX,startY:e.clientY,baseX:tL.current.x,baseY:tL.current.y},tJ(!0))},onPointerMove:e=>{let t=tF.current;if(!t.active)return;let a=tz.current;if(!a)return;let n=a.getBoundingClientRect(),o=(e.clientX-t.startX)/n.width*1e3,r=(e.clientY-t.startY)/n.height*680;tA(e=>({...e,x:t.baseX+o,y:t.baseY+r}))},onPointerUp:tq,onPointerLeave:tq,onDoubleClick:e=>{let t=e.target;t?.closest("g[data-node]")||t1()},style:{cursor:tG?"grabbing":"grab",touchAction:"none"},children:[(0,a.jsxs)("defs",{children:[(0,a.jsxs)("linearGradient",{id:"topo-panel",x1:"0",x2:"1",y1:"0",y2:"1",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:eE.panelStops[0]}),(0,a.jsx)("stop",{offset:"48%",stopColor:eE.panelStops[1]}),(0,a.jsx)("stop",{offset:"100%",stopColor:eE.panelStops[2]})]}),(0,a.jsxs)("radialGradient",{id:"topo-radar",cx:"50%",cy:"50%",r:"55%",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:eE.radarStops[0].color,stopOpacity:eE.radarStops[0].opacity}),(0,a.jsx)("stop",{offset:"45%",stopColor:eE.radarStops[1].color,stopOpacity:eE.radarStops[1].opacity}),(0,a.jsx)("stop",{offset:"100%",stopColor:eE.radarStops[2].color,stopOpacity:eE.radarStops[2].opacity})]}),!eM&&(0,a.jsxs)("filter",{id:"topo-glow",children:[(0,a.jsx)("feGaussianBlur",{stdDeviation:"4",result:"blur"}),(0,a.jsxs)("feMerge",{children:[(0,a.jsx)("feMergeNode",{in:"blur"}),(0,a.jsx)("feMergeNode",{in:"SourceGraphic"})]})]}),(0,a.jsx)("filter",{id:"topo-groupbox-lift",x:"-10%",y:"-10%",width:"120%",height:"120%",children:(0,a.jsx)("feDropShadow",{dx:"0",dy:"3",stdDeviation:"4",floodColor:eM?"#0f172a":"#000000",floodOpacity:eM?.18:.55})}),[{id:"topo-arrow-s",size:12},{id:"topo-arrow",size:16},{id:"topo-arrow-l",size:22}].map(e=>(0,a.jsx)("marker",{id:e.id,viewBox:"0 0 10 10",refX:"8",refY:"5",markerWidth:e.size,markerHeight:e.size,markerUnits:"userSpaceOnUse",orient:"auto-start-reverse",children:(0,a.jsx)("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:eE.arrowFill})},e.id)),(0,a.jsxs)("radialGradient",{id:"topo-sweep",cx:"0%",cy:"50%",r:"100%",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:eM?"#0d9488":"#22d3ee",stopOpacity:eM?.18:.32}),(0,a.jsx)("stop",{offset:"70%",stopColor:eM?"#0d9488":"#22d3ee",stopOpacity:eM?.1:.18}),(0,a.jsx)("stop",{offset:"100%",stopColor:eM?"#0d9488":"#22d3ee",stopOpacity:"0"})]})]}),(0,a.jsx)("rect",{width:"1000",height:"680",fill:"url(#topo-panel)"}),(0,a.jsxs)("g",{transform:`translate(${tT.x} ${tT.y}) scale(${tT.zoom})`,"data-topo-viewport":!0,"data-topo-viewport-smooth":tQ?"true":"false","data-topo-viewport-layout-switching":eD?"true":"false","data-topo-viewport-nodesize-switching":eH?"true":"false",style:{transition:tQ?"opacity 250ms ease-out, transform 300ms ease-out":"opacity 250ms ease-out",opacity:eD||eH?.45:1},children:["ring"===eP&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:500,cy:330,r:"330",fill:"url(#topo-radar)",style:{pointerEvents:"none"}}),!eM&&(0,a.jsx)("g",{opacity:"0.5",style:{pointerEvents:"none"},"data-topo-starfield":!0,children:Array.from({length:14}).map((e,t)=>{let n=9301*t+49297,o=t%3==0?1.2:.7;return(0,a.jsx)("circle",{cx:13*n%1e3,cy:7*n%680,r:o,fill:"#a5b4fc",opacity:.35+t%4*.05,"data-topo-starfield-dot":t},t)})}),!1,[170,250,330].map(e=>(0,a.jsx)("circle",{cx:500,cy:330,r:e,fill:"none",stroke:eE.ringStroke,strokeWidth:"1",opacity:eM?.6:.35,"data-topo-radar-ring":e},e)),(et=eX.length>14?[145,215,285]:eX.length>8?[175,260]:eX.length>0?[220]:[],en=(ea=!!(t$||e6||tk))?eE.legendAccent:eE.ringStroke,et.map((e,t)=>{let n=eX.reduce((t,a)=>{let n=eV[a.alias];return n&&15>Math.abs(Math.hypot(n.x-500,n.y-330)-e)?t+1:t},0);if(0===n)return null;let o=n<=2?0:n<=6?1:2,r=[.24,.36,.5][o],s=[.32,.46,.62][o],i=60*Math.min(t,8);return(0,a.jsx)("circle",{cx:500,cy:330,r:e,fill:"none",stroke:en,strokeWidth:"0.7",strokeDasharray:"2 6",opacity:eM?r:s,className:"anet-fade-in",style:{pointerEvents:"none",transition:"stroke 200ms ease-out, opacity 250ms ease-out",animationDelay:`${i}ms`},"data-tier-ring":e,"data-tier-occupancy":n,"data-tier-bucket":o,"data-tier-tinted":ea?"true":"false","data-tier-fade-delay":i},`tier-${e}`)})),!1,!1]}),"ring"===eP&&(er=[2.8,2.4,2,1.6][eo=0===eQ?0:eQ<=2?1:eQ<=5?2:3],eX.map((e,t)=>{let n=eV[e.alias];if(!n)return null;let o=j({x:500,y:330},n,0),r=eG.has(e.alias),s=!eC&&e2===e.alias,i=r?s?.95:.8:s?.7:.5,l=r?s?2.5:2.25:s?1.25:1;return(0,a.jsx)("path",{d:o,fill:"none",stroke:r?eE.spokeStroke.active:eE.spokeStroke.idle,strokeWidth:l,strokeDasharray:r?"none":"6 14",strokeLinecap:"round",opacity:i,className:r?void 0:"anet-topo-spoke-flow","data-topo-spoke-bucket":r?void 0:eo,"data-topo-spoke-dur":r?void 0:er,"data-topo-hub-spoke-active":r?"true":"false","data-topo-hub-spoke-hovered":s?"true":"false","data-topo-hub-spoke-opacity":i,"data-topo-hub-spoke-stroke-width":l,"data-topo-hub-spoke-stroke-width-active":"2.25","data-topo-hub-spoke-linecap":"round",style:{transition:"stroke 250ms ease-out, stroke-width 250ms ease-out, opacity 250ms ease-out",...r?{}:{animationDelay:`${-(.25*t)}s`,...{"--spoke-dur":`${er}s`}}}},`hub-${e.alias}`)})),eq.map((e,t)=>{let n,o,r,s,i=e9===e.key,l=e6===e.key,d=e.statuses.working,c=d>=6?8:d>=4?10:d>=2?12:14;return(0,a.jsxs)("g",{"data-group":e.key,className:"transition-opacity anet-fade-in","data-group-fade-delay":60*Math.min(t,8),style:{opacity:!e9||i?1:.28,animationDelay:`${60*Math.min(t,8)}ms`},children:[(0,a.jsx)("rect",{x:e.x,y:e.y,width:e.w,height:e.h,rx:"14",fill:eM?"#0f172a":"#a5b4fc",fillOpacity:l?eM?.08:.13:i?eM?.05:.09:eM?.025:.045,stroke:l||i?eE.legendAccent:eE.ringStroke,strokeWidth:l?3:i?2:1.5,strokeDasharray:l||i?"none":"6 6",strokeLinecap:"round",strokeLinejoin:"round","data-group-box-pinned":l?"true":"false","data-group-box-linecap":"round","data-group-box-linejoin":"round","data-group-box-live":l||i||!(e.statuses.working>0)?"false":"true","data-group-box-march-dur":c,"data-group-box-lifted":l||i?"true":"false",className:l||i||!(e.statuses.working>0)?void 0:"anet-topo-groupbox-live",filter:l||i?"url(#topo-groupbox-lift)":void 0,style:{transition:"stroke 200ms ease-out, stroke-width 200ms ease-out, fill-opacity 200ms ease-out, filter 200ms ease-out, fill 200ms ease-out",pointerEvents:"none",...{"--march-dur":`${c}s`}}}),(0,a.jsxs)("g",{role:"button",tabIndex:0,"aria-pressed":e6===e.key,"data-group-label-hit":e.key,className:"anet-topo-svg-focus",style:{pointerEvents:"all",cursor:"pointer"},onPointerDown:e=>e.stopPropagation(),onClick:()=>e7(t=>t===e.key?null:e.key),onPointerEnter:()=>e3(e.key),onPointerLeave:()=>e3(t=>t===e.key?null:t),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),e7(t=>t===e.key?null:e.key))},children:[(o=(n=Object.entries(eJ).filter(([,t])=>t===e.key).map(([e])=>e)).slice(0,8).join(", "),r=n.length>8?` + ${n.length-8} more`:"",s=[e.statuses.working>0?`${e.statuses.working} working`:null,e.statuses.idle>0?`${e.statuses.idle} idle`:null,e.statuses.offline>0?`${e.statuses.offline} offline`:null].filter(Boolean).join(" · "),(0,a.jsx)("title",{children:[`${e.key} (${n.length} member${1===n.length?"":"s"})`,s||null,`${o}${r}`,e6===e.key?"click to release pin":"click to pin this group"].filter(Boolean).join("\n")})),(0,a.jsx)("rect",{x:e.x+6,y:e.y+2,width:Math.min(e.w-12,240),height:20,rx:"4",fill:e6===e.key||e4===e.key?eE.legendAccent:"transparent",opacity:e6===e.key?eM?.16:.2:e4===e.key?eM?.09:.13:1,"data-group-label-tinted":e6===e.key?"pinned":e4===e.key?"hover":"none",style:{transition:"fill 150ms ease-out, opacity 150ms ease-out"}}),(0,a.jsxs)("text",{x:e.x+12,y:e.y+14,fill:i?eE.legendHeadline:eE.legendText,fontSize:"13",fontFamily:"monospace",fontWeight:"700","data-group-label-hovered":i&&!l?"true":"false",style:{transition:"fill 200ms ease-out, letter-spacing 200ms ease-out",letterSpacing:l?"0.5px":i?"0.25px":"0px"},"data-group-label":e.key,"data-group-label-pinned":l?"true":"false",children:[e.key,(0,a.jsxs)("tspan",{dx:"6",fontSize:"11",fontWeight:l?"600":"500","data-group-label-count":e.key,"data-group-label-count-value":e.count,"data-group-label-count-pinned":l?"true":"false","data-group-label-count-font-weight":l?"600":"500",style:{fontVariantNumeric:"tabular-nums",transition:"font-weight 200ms ease-out"},children:["· ",e.count]}),e.statuses.working>0&&e.statuses.working!==e.count&&(0,a.jsxs)("tspan",{dx:"8",fill:eM?"#059669":"#22c55e",fontSize:"11",fontWeight:"600",className:"anet-fade-in","data-group-pip":"working",style:{fontVariantNumeric:"tabular-nums",transition:"fill 200ms ease-out"},children:[e.statuses.working,"w"]}),e.statuses.idle>0&&e.statuses.idle!==e.count&&(0,a.jsxs)("tspan",{dx:"4",fill:eM?"#0d9488":"#2dd4bf",fontSize:"11",fontWeight:"600",className:"anet-fade-in","data-group-pip":"idle",style:{fontVariantNumeric:"tabular-nums",transition:"fill 200ms ease-out"},children:[e.statuses.idle,"i"]}),e.statuses.offline>0&&e.statuses.offline!==e.count&&(0,a.jsxs)("tspan",{dx:"4",fill:eM?"#94a3b8":"#6b7280",fontSize:"11",fontWeight:"600",className:"anet-fade-in","data-group-pip":"offline",style:{fontVariantNumeric:"tabular-nums",transition:"fill 200ms ease-out"},children:[e.statuses.offline,"o"]})]})]})]},`grp-${e.key}`)}),eU.map((e,t)=>{let n,o,r,s,i,l,d,c,u,h,p,f=eV[e.from],g=eV[e.to];if(!f||!g)return null;let x=(t%2==0?1:-1)*Math.min(36,.18*Math.hypot(g.x-f.x,g.y-f.y)),y=j(f,g,x),b=Math.min(2+e.count,7),v=Math.max(.9,2.6/Math.sqrt(e.count)),k=Math.max(.4,1-(e.last_at?Math.max(0,Date.now()-Date.parse(e.last_at)):0)/3e5),w=e.count<=2?"topo-arrow-s":e.count<=4?"topo-arrow":"topo-arrow-l",N=(0,m.relativeAgo)(e.last_at),S=`${e.from} → ${e.to}
4
+ ${e.count} message${1===e.count?"":"s"}${N?` \xb7 last ${N}`:""}`,$=to===e.key,_=eJ[e.from]??e.from,M=eJ[e.to]??e.to,C=$?2:to?.35:e2||e9?e.from===e2||e.to===e2?1.7:e9&&_===e9&&M===e9?1.3:.35:tr?1.5:1,E=!!e2&&(e.from===e2||e.to===e2),z=$?Math.min(1.4*b,10):E?Math.min(1.15*b,8):b;return(0,a.jsxs)("g",{className:"anet-fade-in",style:{animationDelay:`${280+35*Math.min(t,20)}ms`},"data-edge-group":e.key,children:[(0,a.jsx)("path",{d:y,fill:"none",stroke:"transparent",strokeWidth:Math.max(b+10,16),style:{pointerEvents:"stroke"},"data-edge-hitbox":!0,onMouseEnter:()=>tt(e.key),onMouseLeave:()=>tt(t=>t===e.key?null:t),children:(0,a.jsx)("title",{children:S})}),(0,a.jsx)("path",{d:y,fill:"none",stroke:eE.flowEdge,strokeWidth:z,strokeLinecap:"round",opacity:Math.min(1,(eM?.22:.28)*k*C),filter:eM?void 0:"url(#topo-glow)",markerEnd:`url(#${w})`,"data-edge-visible":e.key,"data-edge-visible-linecap":"round","data-edge-visible-endpoint-hovered":E?"true":"false","data-edge-visible-stroke-width":z,style:{pointerEvents:"none",transition:"opacity 300ms ease-out, stroke-width 300ms ease-out, stroke 300ms ease-out"}}),(0,a.jsx)("path",{id:`flow-path-${t}`,d:y,fill:"none",stroke:eE.flowPath,strokeWidth:$||E?1.5:1,strokeDasharray:"2 12",strokeLinecap:"round",opacity:Math.min(1,(eM?.4:.75)*k*C),"data-edge-flow-rail":e.key,"data-edge-flow-rail-linecap":"round","data-edge-flow-rail-stroke-width":$||E?1.5:1,"data-edge-flow-rail-lifted":$||E?"true":"false",style:{transition:"opacity 300ms ease-out, stroke 300ms ease-out, stroke-width 300ms ease-out"}}),!eC&&(0,a.jsx)("circle",{r:$||E?5.5:4.5,fill:eE.flowParticle,filter:eM?void 0:"url(#topo-glow)",opacity:Math.min(1,k*C),"data-edge-particle":e.key,"data-edge-particle-radius":$||E?5.5:4.5,"data-edge-particle-lifted":$||E?"true":"false",style:{transition:"fill 200ms ease-out, opacity 200ms ease-out, r 200ms ease-out"},children:(0,a.jsx)("animateMotion",{dur:`${v}s`,begin:`-${(.37*t%v).toFixed(3)}s`,repeatCount:"indefinite",path:y})}),!1,!1,(n=e.count>=3,o=(f.x+g.x)/2,r=(f.y+g.y)/2,s=g.x-f.x,l=Math.hypot(s,i=g.y-f.y)||1,d=o+-i/l*x*.5,c=r+s/l*x*.5,u=n?Math.min(1,k*C):0,h=ta===e.key,p=e.count>=10,(0,a.jsxs)("g",{"data-edge-count-badge":e.key,"data-edge-count-badge-pinned":h?"true":"false","data-edge-count-badge-hot":p?"true":"false","data-edge-count-badge-visible":n?"true":"false",role:n?"button":void 0,tabIndex:n?0:-1,"aria-pressed":n?h:void 0,"aria-hidden":!n||void 0,className:"anet-topo-svg-focus",style:{pointerEvents:n?"all":"none",cursor:n?"pointer":void 0,transition:"opacity 300ms ease-out"},opacity:u,onPointerDown:e=>e.stopPropagation(),onMouseEnter:()=>tt(e.key),onMouseLeave:()=>tt(t=>t===e.key?null:t),onClick:t=>{t.stopPropagation(),tn(t=>t===e.key?null:e.key);let a=Date.now();tK({ts:a,x:d,y:c,r0:10.5,color:eE.flowEdge}),setTimeout(()=>tK(e=>e&&e.ts===a?null:e),600)},onKeyDown:t=>{if("Enter"===t.key||" "===t.key){t.preventDefault(),tn(t=>t===e.key?null:e.key);let a=Date.now();tK({ts:a,x:d,y:c,r0:10.5,color:eE.flowEdge}),setTimeout(()=>tK(e=>e&&e.ts===a?null:e),600)}},children:[(0,a.jsx)("title",{children:h?`${e.from} → ${e.to} (${e.count}) — click to release pin`:`${e.from} → ${e.to} (${e.count}) — click to pin`}),(0,a.jsx)("circle",{cx:d,cy:c,r:$||h?10.5:9,fill:eE.legendBox.fill,stroke:h?eE.legendHeadline:p?eM?"#d97706":"#fbbf24":eE.flowEdge,strokeWidth:h||p?2:$?1.5:1.25,opacity:$||h?1:eM?.95:.85,"data-edge-badge-lifted":$||h?"true":"false","data-edge-badge-stroke-width-rest":"1.25","data-edge-badge-stroke-width-hover":"1.5","data-edge-badge-opacity":$||h?1:eM?.95:.85,"data-edge-badge-opacity-rest":eM?.95:.85,"data-edge-badge-opacity-hover":"1","data-edge-badge-opacity-active":"1",style:{transition:"r 180ms ease-out, stroke 300ms ease-out, stroke-width 300ms ease-out, fill 200ms ease-out, opacity 200ms ease-out"}}),(0,a.jsx)("text",{x:d,y:c+3,textAnchor:"middle",fill:eE.legendHeadline,fontSize:"11",fontFamily:"monospace",fontWeight:h||p?"800":"700","data-edge-badge-text":e.key,"data-edge-badge-text-pin":h||p?"true":"false","data-edge-badge-text-font-size":"11",style:{pointerEvents:"none",fontVariantNumeric:"tabular-nums",letterSpacing:h||p?"0.4px":$?"0.2px":"0px",transition:"letter-spacing 300ms ease-out, font-weight 300ms ease-out"},children:e.count})]}))]},e.key)}),"ring"===eP&&(0,a.jsxs)("g",{"data-topo-hub":!0,"data-topo-hub-hovered":ti?"true":"false",role:"button",tabIndex:0,"aria-label":(es=["Network hub"],eX.length>0&&es.push(`${eX.length} online`),eQ>0&&es.push(`${eQ} working`),eU.length>0&&es.push(`${eU.length} active link${1===eU.length?"":"s"}`),es.join(" · ")+" — Enter to fit view"),className:"anet-topo-svg-focus anet-fade-in","data-topo-hub-fade-delay":0,style:{cursor:"pointer"},onPointerDown:e=>e.stopPropagation(),onMouseEnter:()=>tl(!0),onMouseLeave:()=>tl(!1),onClick:()=>{t2(),tK({ts:Date.now(),x:500,y:330,r0:18,color:eM?"#059669":"#10b981"}),setTimeout(()=>tK(e=>e&&500===e.x&&330===e.y?null:e),600)},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t2(),tK({ts:Date.now(),x:500,y:330,r0:18,color:eM?"#059669":"#10b981"}),setTimeout(()=>tK(e=>e&&500===e.x&&330===e.y?null:e),600))},children:[(0,a.jsx)("title",{children:(ei=e.length,el=["Network hub",`${ei} session${1===ei?"":"s"}`],eX.length>0&&el.push(`${eX.length} online`),eQ>0&&el.push(`${eQ} working`),eU.length>0&&el.push(`${eU.length} active link${1===eU.length?"":"s"}`),el.join(" · ")+"\nclick to fit view")}),(ec=[.52,.58,.65,.72][ed=0===eQ?0:eQ<=2?1:eQ<=5?2:3],eu=[.16,.2,.26,.32][ed],eh=[4,3.2,2.7,2.4][ed],ep=`0.34;${ec};0.34`,em=`0.1;${eu};0.1`,eg=(ef=!eC&&ti)?22:20,(0,a.jsx)("circle",{cx:500,cy:330,fill:eM?"#d1fae5":"#10b981",opacity:eM?.42:.12,"data-hub-busyness":ed,"data-topo-hub-halo-radius":eg,"data-topo-hub-halo-hovered":ef?"true":"false","data-topo-hub-halo-trough":eM?.34:.1,"data-topo-hub-halo-peak":eM?ec:eu,style:{r:`${eg}px`,transition:"fill 200ms ease-out, r 200ms ease-out"},children:!eC&&(0,a.jsx)("animate",{attributeName:"opacity",values:eM?ep:em,dur:`${eh}s`,repeatCount:"indefinite",calcMode:"spline",keyTimes:"0;0.5;1",keySplines:"0.42 0 0.58 1;0.42 0 0.58 1"})})),(ex=!eC&&ti,ey=eM?ex?"#10b981":"#059669":ex?"#34d399":"#10b981",(0,a.jsx)("circle",{cx:500,cy:330,r:"10",fill:ey,"data-topo-hub-core":!0,"data-topo-hub-core-hovered":ex?"true":"false","data-topo-hub-core-fill":ey,style:{transition:"fill 200ms ease-out"}})),(0,a.jsx)("text",{x:500,y:330,textAnchor:"middle",dy:"0.36em",fill:eM?"#d1fae5":"#ecfdf5",fontSize:"12",fontFamily:"monospace",fontWeight:ti?"800":"700",opacity:+(eQ>0),"data-topo-hub-working-count":eQ,"data-topo-hub-working-count-font-size":"12","data-topo-hub-working-count-hovered":ti?"true":"false","data-topo-hub-working-count-visible":eQ>0?"true":"false",style:{pointerEvents:"none",transform:!eC&&ti?"scale(1.08)":"scale(1)",transformBox:"fill-box",transformOrigin:"center",transition:"transform 200ms ease-out, opacity 300ms ease-out, fill 200ms ease-out, font-weight 200ms ease-out",fontVariantNumeric:"tabular-nums"},children:eQ}),(0,a.jsx)("circle",{cx:500,cy:330,r:"5.5",fill:"#d1fae5",opacity:eQ>0?0:.95,"data-topo-hub-highlight":!0,"data-topo-hub-highlight-visible":eQ>0?"false":"true","data-topo-hub-highlight-radius":"5.5","data-topo-hub-highlight-opacity":eQ>0?0:.95,style:{pointerEvents:"none",transition:"opacity 300ms ease-out"}}),(0,a.jsx)("circle",{cx:500,cy:330,r:ti?17:14,fill:"none",stroke:eM?"#059669":"#10b981",strokeWidth:"1.75",opacity:ti?eM?.85:.8:0,"data-topo-hub-hover-ring":!0,"data-topo-hub-hover-ring-radius":ti?17:14,"data-topo-hub-hover-ring-stroke-width":"1.75","data-topo-hub-hover-ring-opacity":ti?eM?.85:.8:0,style:{pointerEvents:"none",transition:"opacity 180ms ease-out, r 180ms ease-out, stroke 200ms ease-out"}})]}),[...eX,...eK].map((e,n)=>{let o,r,s,i,l,d,c,h,p,f,g,x,b,k,w=eV[e.alias];if(!w)return null;let j=(e.network_id?t[`${e.network_id}:${e.alias}`]:void 0)??t[e.alias],S="offline"!==e.status||!!j,_=$(e,S,eM),M=eG.has(e.alias),C=Math.round((S?26:18)*eR),E=!e1||e2===e.alias||tT.zoom>=1.4,z=!e9||(eJ[e.alias]??e.alias)===e9,T=0;if("ring"===eP){let t=eV[e.alias];if(t){let e=Math.hypot(t.x-500,t.y-330);T=e<195?0:e<270?1:e<310?2:3}}return(0,a.jsxs)("g",{"data-node":e.alias,"data-tier-idx":"ring"===eP?T:-1,role:"button",tabIndex:0,"aria-pressed":tH===e.alias,"aria-label":`Chat with ${e.alias} (${e.status})`,onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),tY(e.alias),tK({ts:Date.now(),x:w.x,y:w.y,r0:C,color:_.primary}),setTimeout(()=>tK(e=>e&&Date.now()-e.ts>=590?null:e),600))},className:"group transition-opacity anet-fade-in anet-topo-svg-focus",style:{cursor:"pointer",opacity:tC&&!tC.has(e.alias)&&tH!==e.alias||tj&&tH!==e.alias&&("unknown"===(o=y(e.model)).id?"?":o.initial)!==tj||tM&&tH!==e.alias&&!("working"===tM?"working"===e.status:"idle"===tM?S&&"working"!==e.status:!S)?.28:z?tH===e.alias||S?1:.6:.32,animationDelay:"ring"===eP?`${180*T+n%6*25}ms`:`${25*Math.min(n,24)}ms`,transform:eC||e2!==e.alias?void 0:"translateY(-2px)",transition:"transform 180ms cubic-bezier(0.4,0,0.2,1)"},onPointerDown:e=>e.stopPropagation(),onPointerEnter:()=>e5(e.alias),onPointerLeave:()=>e5(t=>t===e.alias?null:t),onClick:()=>{tY(e.alias),tK({ts:Date.now(),x:w.x,y:w.y,r0:C,color:_.primary}),setTimeout(()=>tK(e=>e&&Date.now()-e.ts>=590?null:e),600)},children:[(()=>{var t,n;let o,r,s,i=!S&&e.last_seen_at?(0,m.relativeAgo)(e.last_seen_at):null,l=eJ[e.alias],d=l?Object.values(eJ).filter(e=>e===l).length:1,c=d>1?`group: ${l} \xb7 ${d}`:null,u=0,h=0,p=new Map,f=new Map;for(let t of eU)t.from===e.alias&&(h+=t.count,f.set(t.to,(f.get(t.to)??0)+t.count)),t.to===e.alias&&(u+=t.count,p.set(t.from,(p.get(t.from)??0)+t.count));let g=e=>{let t=[...e.entries()].sort((e,t)=>t[1]-e[1]);return t.slice(0,6).map(([e,t])=>`${e} (${t})`).join(", ")+(t.length>6?` + ${t.length-6} more`:"")},x=u+h>0?`flows: ${u} in / ${h} out`:null,b=p.size>0?`← from: ${g(p)}`:null,k=f.size>0?`→ to: ${g(f)}`:null;return(0,a.jsx)("title",{children:[`${e.alias} \xb7 ${e.status}`,(t=e.model,n=e.runtime,o=y(t),r=v(n),s=[],"unknown"!==o.id&&s.push(o.label),t&&s.push(t),r&&s.push(r.label),s.join(" · ")),c,e.project_dir?`cwd: ${e.project_dir}`:null,i?`last seen: ${i}`:null,x,b,k].filter(Boolean).join("\n")})})(),(0,a.jsx)("circle",{cx:w.x,cy:w.y,r:C+12,fill:"none",stroke:_.primary,strokeWidth:"2",className:"opacity-0 group-hover:opacity-70 transition-opacity duration-150",style:{pointerEvents:"none"}}),(r=tH===e.alias,(0,a.jsx)("circle",{cx:w.x,cy:w.y,r:C+14,fill:"none",stroke:_.primary,strokeWidth:"2.5",opacity:r?eM?.85:.95:0,filter:!eM&&r?"url(#topo-glow)":void 0,style:{pointerEvents:"none",transition:"opacity 200ms ease-out, stroke 200ms ease-out, filter 200ms ease-out"},"data-chat-target-ring":!0,"data-chat-target-active":r?"true":"false","data-chat-target-breath":!eC&&r?"on":"off",children:!eC&&r&&(0,a.jsx)("animate",{attributeName:"opacity",values:eM?"0.72;0.95;0.72":"0.82;1;0.82",dur:"3s",repeatCount:"indefinite"})})),!eC&&(0,a.jsx)("g",{opacity:+!!M,"data-node-pulse":e.alias,"data-node-pulse-active":M?"true":"false",style:{transition:"opacity 300ms ease-out"},children:(0,a.jsxs)("circle",{cx:w.x,cy:w.y,r:C+14,fill:_.primary,opacity:eM?.08:.12,children:[(0,a.jsx)("animate",{attributeName:"r",values:`${C+8};${C+22};${C+8}`,dur:"2.4s",repeatCount:"indefinite",calcMode:"spline",keyTimes:"0;0.5;1",keySplines:"0.42 0 0.58 1;0.42 0 0.58 1"}),(0,a.jsx)("animate",{attributeName:"opacity",values:eM?"0.14;0.03;0.14":"0.20;0.05;0.20",dur:"2.4s",repeatCount:"indefinite",calcMode:"spline",keyTimes:"0;0.5;1",keySplines:"0.42 0 0.58 1;0.42 0 0.58 1","data-node-pulse-peak":eM?"0.14":"0.20","data-node-pulse-trough":eM?"0.03":"0.05"})]})}),(s=!eC&&e2===e.alias,i=S?eM?s?1:.85:s?.8:.65:eM?s?.6:.45:s?.45:.3,(0,a.jsx)("circle",{cx:w.x,cy:w.y,r:C+8,fill:_.halo,opacity:i,"data-node-halo-offline-opacity":S?void 0:eM?.45:.3,"data-node-halo-hovered":s?"true":"false","data-node-halo-resolved-opacity":i,className:"transition-[fill,opacity] duration-300 ease-out","data-node-halo-breath":eC||"working"!==e.status?"off":"on","data-node-halo-breath-offset":eC||"working"!==e.status?void 0:(.37*n%3).toFixed(3),children:!1})),(d=(l=tC&&tC.has(e.alias))?C+8:C+7,(0,a.jsx)("circle",{cx:w.x,cy:w.y,fill:"none",stroke:eE.flowEdge,strokeWidth:l?2.4:1.6,opacity:l?eM?.9:.85:0,"data-edge-endpoint-ring":!0,"data-edge-endpoint-active":l?"true":"false","data-edge-endpoint-ring-stroke-width":l?2.4:1.6,"data-edge-endpoint-ring-radius":d,style:{pointerEvents:"none",r:`${d}px`,transition:"opacity 180ms ease-out, stroke-width 180ms ease-out, r 180ms ease-out"}})),(c=!eC&&e2===e.alias,h=S?c?3.5:3:c?2:1.5,(0,a.jsx)("circle",{cx:w.x,cy:w.y,r:C,fill:S?eE.nodeFill.online:eE.nodeFill.offline,stroke:_.primary,strokeWidth:h,strokeDasharray:S?"none":"5 5",filter:S&&!eM?"url(#topo-glow)":void 0,"data-node-status-ring":_.label,"data-node-status-ring-hovered":c?"true":"false","data-node-status-ring-stroke-width":h,style:{transition:"fill 300ms ease-out, stroke 300ms ease-out, stroke-width 300ms ease-out"}})),"red"!==eT.get(e.server)?null:(0,a.jsx)("circle",{cx:w.x,cy:w.y,r:C+8,fill:"none",stroke:eM?"#d97706":"#fbbf24",strokeWidth:"2.5",opacity:"0.6","data-node-server-health":"red","data-node-server-host":e.server,style:{pointerEvents:"none",transition:"stroke 200ms ease-out, opacity 200ms ease-out"}}),(()=>{let t=Math.round((S?14:10)*eR),n=2*C,o=y(e.model),r=/书生|书小生|intern/i.test(e.alias);if(ez||r||o.logo)return(0,a.jsx)("image",{href:o.logo??"/intern_avatar.png",x:w.x-n/2,y:w.y-n/2,width:n,height:n,preserveAspectRatio:"xMidYMid meet"});if("unknown"!==o.id)return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:w.x,cy:w.y,r:t,fill:o.mono.bg,stroke:o.mono.ring,strokeWidth:"1.5"}),(0,a.jsx)("text",{x:w.x,y:w.y,dy:"0.34em",textAnchor:"middle",fill:o.mono.text,fontSize:t,fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif",fontWeight:"700","data-monogram-letter":o.initial,children:o.initial})]});let s=(0,u.aliasAvatarColors)(eJ[e.alias]||e.alias);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:w.x,cy:w.y,r:t,fill:s.bg,stroke:s.ring,strokeWidth:"1"}),(0,a.jsx)("text",{x:w.x,y:w.y,dy:"0.34em",textAnchor:"middle",fill:s.text,fontSize:t,fontFamily:"monospace",fontWeight:"700",children:(0,u.aliasInitial)(e.alias)})]})})(),(()=>{let t=v(e.runtime);if(!t)return null;let n=S?7:5.5,o=w.x+.72*C,r=w.y+.72*C,s=2*n*.62,i=!eC&&e2===e.alias;return(0,a.jsxs)("g",{style:{pointerEvents:"none"},children:[(0,a.jsx)("circle",{cx:o,cy:r,r:n,fill:eE.containerBg,stroke:t.color,strokeWidth:"1.5","data-runtime-badge":e.alias,"data-runtime-badge-active":i?"true":"false",style:{r:i?`${n+1}px`:`${n}px`,strokeWidth:i?"2px":"1.5px",transition:"r 150ms ease-out, stroke-width 150ms ease-out"}}),(0,a.jsx)("g",{transform:`translate(${o-s/2} ${r-s/2}) scale(${s/24})`,children:(0,a.jsx)("path",{d:t.iconPath,fill:"none",stroke:t.color,strokeWidth:i?"2.8":"2.4",strokeLinecap:"round",strokeLinejoin:"round","data-runtime-badge-icon":e.alias,"data-runtime-badge-icon-active":i?"true":"false","data-runtime-badge-icon-stroke-width":i?"2.8":"2.4",style:{transition:"stroke-width 150ms ease-out"}})})]})})(),!1,(f=(p=eR<.8)?88:100,E?(0,a.jsxs)("g",{transform:`translate(${w.x}, ${w.y+C+(p?18:22)})`,style:{pointerEvents:"none"},className:"transition-transform duration-200 group-hover:-translate-y-[1.5px]",children:[(0,a.jsx)("rect",{x:-f/2,y:p?-12:-14,width:f,height:p?36:42,rx:"8",fill:eE.labelBox.fill,stroke:eC||e2!==e.alias?eE.labelBox.stroke:eE.legendAccent,opacity:eC||e2!==e.alias?eM?1:.94:1,"data-node-label-card":e.alias,"data-node-label-card-rx":"8","data-node-label-card-elevation":eC||e2!==e.alias?"idle":"hover",style:{filter:eC||e2!==e.alias?eM?"drop-shadow(0 1px 2px rgba(15,23,42,0.08))":"drop-shadow(0 1px 2px rgba(0,0,0,0.30))":eM?"drop-shadow(0 3px 8px rgba(15,23,42,0.20))":"drop-shadow(0 4px 12px rgba(0,0,0,0.60))",transition:"filter 220ms ease-out, stroke 220ms ease-out, fill 220ms ease-out, opacity 220ms ease-out"}}),(0,a.jsx)("text",{x:"0",y:"1",textAnchor:"middle",fill:_.text,fontSize:p?11:12,fontFamily:"monospace",fontWeight:"700","data-node-alias-text":e.alias,"data-node-alias-chat-target":tH===e.alias?"true":"false","data-node-alias-hovered":e2===e.alias?"true":"false",style:{transition:"fill 300ms ease-out, letter-spacing 200ms ease-out",letterSpacing:tH===e.alias?"0.5px":e2===e.alias?"0.3px":"0px"},children:N(e.alias,p?11:12)}),(0,a.jsxs)("text",{x:"0",y:p?15:17,textAnchor:"middle",fill:_.primary,fontSize:p?8:9,fontFamily:"monospace",fontWeight:"500","data-node-sub-text":e.alias,"data-node-sub-text-hovered":e2===e.alias?"true":"false","data-node-sub-text-font-weight":"500",style:{transition:"fill 300ms ease-out, letter-spacing 200ms ease-out",letterSpacing:e2===e.alias?"0.2px":"0px"},children:[_.label,S&&null!=j?` sse:${j}`:""]})]}):(0,a.jsx)("text",{x:w.x,y:w.y+C+(p?12:14),textAnchor:"middle",fill:_.text,fontSize:p?9:10,fontFamily:"monospace",fontWeight:"700",opacity:.95,className:"group-hover:-translate-y-[1.5px]","data-node-dense-alias-text":e.alias,"data-node-dense-alias-text-opacity":"0.95",style:{pointerEvents:"none",paintOrder:"stroke",transition:"transform 200ms ease-out, fill 300ms ease-out"},stroke:eE.containerBg,strokeWidth:"3",children:N(e.alias,p?9:10)})),!eC&&e2===e.alias&&!e1&&(g=y(e.model),x=v(e.runtime),b=w.x>650?w.x-C-18-192:w.x+C+18,k=w.y-44,(0,a.jsxs)("g",{transform:`translate(${b}, ${k})`,"data-topo-hover-detail":e.alias,style:{pointerEvents:"none"},children:[(0,a.jsx)("rect",{x:"0",y:"0",width:192,height:88,rx:"10",fill:eE.labelBox.fill,stroke:eE.legendAccent,opacity:eM?.98:.97,"data-topo-hover-detail-opacity":eM?.98:.97,"data-topo-hover-detail-rx":"10",style:{filter:eM?"drop-shadow(0 4px 12px rgba(15,23,42,0.16))":"drop-shadow(0 4px 12px rgba(0,0,0,0.6))"}}),(0,a.jsx)("text",{x:"10",y:"16",fontSize:"9",fontFamily:"monospace",fill:eE.legendAccent,fontWeight:"700",children:"unknown"!==g.id?g.label:"—"}),(0,a.jsx)("text",{x:"10",y:"32",fontSize:"10",fontFamily:"monospace",fontWeight:"600",fill:eE.legendHeadline,"data-topo-hover-detail-model-fw":"600",children:e.model||"model · pending"}),(0,a.jsx)("text",{x:"10",y:"48",fontSize:"9",fontFamily:"monospace",fontWeight:"500",fill:eE.legendText,"data-topo-hover-detail-body-fw":"500",children:x?x.label:"runtime · pending"}),(0,a.jsxs)("text",{x:"10",y:"64",fontSize:"9",fontFamily:"monospace",fontWeight:"500",fill:eE.legendText,"data-topo-hover-detail-body-fw":"500",children:["host · ",e.server||"unknown"]}),(0,a.jsx)("text",{x:"10",y:"80",fontSize:"9",fontFamily:"monospace",fontWeight:"500",fill:eE.legendText,opacity:"0.7","data-topo-hover-detail-body-fw":"500",children:e.task?N(e.task,28):"no recent task"})]}))]},e.alias)}),tX&&!eC&&(0,a.jsxs)("circle",{cx:tX.x,cy:tX.y,r:tX.r0+4,fill:"none",stroke:tX.color,strokeWidth:"2",opacity:"0","data-click-ripple":!0,style:{pointerEvents:"none"},children:[(0,a.jsx)("animate",{attributeName:"r",values:`${tX.r0+4};${tX.r0+30}`,dur:"0.5s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.25 0.1 0.25 1",fill:"freeze"}),(0,a.jsx)("animate",{attributeName:"opacity",values:"0.8;0",dur:"0.5s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.25 0.1 0.25 1",fill:"freeze","data-click-ripple-start-opacity":"0.8"})]},tX.ts)]}),eU.length>0&&(0,a.jsxs)("g",{transform:"translate(16, 16)","data-topo-panel":"recent","data-topo-panel-hovered":"recent"===tx?"true":"false",className:"anet-fade-in","data-topo-panel-fade-delay":700,style:{animationDelay:"700ms"},onMouseEnter:()=>ty("recent"),onMouseLeave:()=>ty(e=>"recent"===e?null:e),children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"230",height:"88",rx:"10",fill:eE.legendBox.fill,stroke:"recent"===tx?eE.legendAccent:eE.legendBox.stroke,opacity:"recent"===tx?eM?1:.97:eM?.97:.92,style:{filter:"recent"===tx?eM?"drop-shadow(0 4px 12px rgba(15,23,42,0.14))":"drop-shadow(0 4px 12px rgba(0,0,0,0.65))":eM?"drop-shadow(0 2px 6px rgba(15,23,42,0.08))":"drop-shadow(0 2px 6px rgba(0,0,0,0.45))",transition:"filter 200ms ease-out, fill 200ms ease-out, stroke 200ms ease-out, opacity 200ms ease-out"},"data-topo-panel-elevation":"recent"}),(0,a.jsx)("text",{x:"13",y:"21",fill:eE.legendHeadline,fontSize:"12",fontFamily:"monospace",fontWeight:"700",letterSpacing:"recent"===tx?"0.4":"0.3",style:{transition:"fill 200ms ease-out, letter-spacing 200ms ease-out"},"data-recent-panel-title":!0,children:"recent signal"}),(eb=eU.filter(e=>e.count>=10).length,ew=(ek=null!==(ev=eU.reduce((e,t)=>{if(!t.last_at)return e;let a=Date.parse(t.last_at);return Number.isNaN(a)?e:null===e||a>e?a:e},null))?Math.max(0,(Date.now()-ev)/1e3):999)<=30?1:ek<=300?1-(ek-30)/270*.7:.3,ej=eM?`rgba(13, 148, 136, ${ew.toFixed(2)})`:`rgba(34, 211, 238, ${ew.toFixed(2)})`,(0,a.jsxs)("text",{x:"217",y:"21",textAnchor:"end",fontSize:"10",fontFamily:"monospace",letterSpacing:"0.2","data-recent-panel-count-letter-spacing":"0.2",children:[(0,a.jsxs)("tspan",{fill:ej,fontWeight:"recent"===tx?"700":"600","data-recent-panel-count":!0,"data-recent-panel-count-freshness-alpha":ew.toFixed(2),style:{transition:"fill 200ms ease-out, font-weight 200ms ease-out",fontVariantNumeric:"tabular-nums"},children:[eU.length,(0,a.jsx)("tspan",{opacity:"0.7","data-recent-panel-count-unit":!0,children:" flows"})]}),(0,a.jsx)("tspan",{fill:eM?"#d97706":"#fbbf24",fontWeight:"700","data-recent-panel-hot-count":eb,"data-recent-panel-hot-visible":eb>0?"true":"false",className:"anet-fade-in",opacity:+(eb>0),style:{transition:"opacity 300ms ease-out",fontVariantNumeric:"tabular-nums"},children:eb>0?(0,a.jsxs)(a.Fragment,{children:[` \xb7 ${eb}`,(0,a.jsx)("tspan",{opacity:"0.7","data-recent-panel-hot-count-unit":!0,children:" hot"})]}):""})]})),(0,a.jsxs)("g",{"data-recent-signal-empty-wrapper":!0,"data-recent-signal-empty-visible":0===eU.length?"true":"false",style:{opacity:+(0===eU.length),transition:"opacity 300ms ease-out",pointerEvents:"none"},children:[(0,a.jsxs)("text",{x:"115",y:"56",textAnchor:"middle",fill:eE.legendText,fontSize:"10",fontFamily:"monospace",fontStyle:"italic",letterSpacing:"0.2",opacity:.65,"data-recent-signal-empty":!0,"data-recent-signal-empty-breathes":eC?"false":"true",children:["no flow yet",!eC&&(0,a.jsx)("animate",{attributeName:"opacity",values:"0.55;0.78;0.55",dur:"4.4s",repeatCount:"indefinite"})]}),(0,a.jsxs)("text",{x:"115",y:"70",textAnchor:"middle",fill:eE.legendText,fontSize:"9",fontFamily:"monospace",fontStyle:"italic",letterSpacing:"0.15",opacity:.45,"data-recent-signal-empty-hint":!0,"data-recent-signal-empty-hint-breathes":eC?"false":"true",children:["send a message between agents",!eC&&(0,a.jsx)("animate",{attributeName:"opacity",values:"0.36;0.58;0.36",dur:"4.4s",begin:"-1.5s",repeatCount:"indefinite"})]})]}),0===eU.length?null:eU.slice(0,3).map((e,t)=>{let n,o=e.last_at?(0,m.relativeAgo)(e.last_at):null,r=o?o.replace(/\s+ago$/,""):null,s=te===e.key,i=ta===e.key,l=s||i,d=e.last_at?(n=Math.max(0,(Date.now()-Date.parse(e.last_at))/1e3))<=30?.85:n<=300?.85-(n-30)/270*.55:.3:.55,c=e.count>=10;return(0,a.jsxs)("g",{"data-recent-row":e.key,"data-recent-row-hovered":s?"true":"false","data-recent-row-pinned":i?"true":"false","data-recent-row-hot":c?"true":"false","data-recent-row-lifted":s||i?"true":"false",className:"anet-topo-svg-focus anet-fade-in",role:"button",tabIndex:0,"aria-pressed":i,style:{cursor:"pointer",transform:s||i?"translateY(-1px)":void 0,transition:"transform 150ms cubic-bezier(0.4, 0, 0.2, 1)"},onPointerDown:e=>e.stopPropagation(),onMouseEnter:()=>tt(e.key),onMouseLeave:()=>tt(t=>t===e.key?null:t),onClick:()=>tn(t=>t===e.key?null:e.key),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),tn(t=>t===e.key?null:e.key))},children:[(0,a.jsx)("title",{children:[`${e.from} → ${e.to} \xb7 ${e.count} msg${1===e.count?"":"s"}${c?" (hot lane · ≥ 10)":""}`,e.last_at?`last: ${new Date(e.last_at).toLocaleString()}`:null,e.content?`"${e.content}"`:null,i?"click to release pin (Esc to clear)":"click to pin · hover to preview"].filter(Boolean).join("\n")}),(0,a.jsx)("rect",{x:"6",y:38+16*t-10,width:"218",height:"14",rx:"3",fill:l?eE.legendAccent:"transparent",opacity:i?eM?.18:.22:s?eM?.1:.14:1,style:{transition:"fill 150ms ease-out, opacity 150ms ease-out"}}),(()=>{if(!e.last_at)return null;let n=Math.max(0,(Date.now()-Date.parse(e.last_at))/1e3),o=n<=30?1:n<=300?1-(n-30)/270*.7:.3;return(0,a.jsx)("circle",{cx:10,cy:38+16*t-3,fill:eE.legendAccent,opacity:o,"data-recent-row-freshness":e.key,"data-recent-row-freshness-alpha":o.toFixed(2),"data-recent-row-freshness-radius":s||i?2.5:2,"data-recent-row-freshness-lifted":s||i?"true":"false",style:{pointerEvents:"none",r:`${s||i?2.5:2}px`,transition:"opacity 200ms ease-out, r 200ms ease-out"}})})(),(0,a.jsxs)("text",{x:"13",y:38+16*t,fill:l?eE.legendHeadline:eE.legendText,fontSize:"9",fontFamily:"monospace",fontWeight:"500","data-recent-row-text":e.key,"data-recent-row-text-pinned":i?"true":"false","data-recent-row-text-hovered":!i&&s?"true":"false","data-recent-row-text-font-weight":"500",style:{transition:"fill 150ms ease-out, letter-spacing 150ms ease-out",letterSpacing:i?"0.5px":s?"0.25px":"0px"},children:[N(e.from,6)," ","→"," ",N(e.to,6)," "," · ",(0,a.jsx)("tspan",{fill:c?eM?"#d97706":"#fbbf24":void 0,fontWeight:c||i?"700":"600","data-recent-row-count":!0,"data-recent-row-count-pinned":i?"true":"false","data-recent-row-count-font-weight":c||i?"700":"600",...c?{"data-recent-row-count-hot":"true"}:{},style:{transition:"fill 300ms ease-out, font-weight 200ms ease-out",fontVariantNumeric:"tabular-nums"},children:e.count})," · ",(0,a.jsx)("tspan",{opacity:"0.7","data-recent-row-content-tspan":!0,children:N(e.content,8)})]}),r?(0,a.jsx)("text",{x:"217",y:38+16*t,textAnchor:"end",fill:eE.legendText,fontSize:"8",fontFamily:"monospace",opacity:d,"data-recent-row-ts":e.key,"data-recent-row-ts-alpha":d.toFixed(2),style:{pointerEvents:"none",transition:"opacity 200ms ease-out",fontVariantNumeric:"tabular-nums"},children:r}):null]},e.key)}),(eN=eU.length>3,eS=Math.max(0,eU.length-3),e$=`+ ${eS} more flow${1===eS?"":"s"}`,(0,a.jsxs)("g",{"data-recent-panel-more-nav":!0,"data-recent-panel-more-visible":eN?"true":"false",role:eN?"link":void 0,tabIndex:eN?0:-1,"aria-hidden":!eN||void 0,className:"anet-topo-svg-focus",style:{cursor:eN?"pointer":void 0,pointerEvents:eN?"all":"none",opacity:+!!eN,transition:"opacity 300ms ease-out"},onPointerDown:e=>e.stopPropagation(),onMouseEnter:()=>{eN&&tc(!0)},onMouseLeave:()=>tc(!1),onClick:()=>{eN&&eA.push("/messages")},onKeyDown:e=>{eN&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eA.push("/messages"))},children:[(0,a.jsx)("title",{children:`${e$} — open /messages for the full list`}),(0,a.jsxs)("text",{x:"115",y:"82",textAnchor:"middle",fill:td?eE.legendAccent:eE.legendText,fontSize:"9",fontFamily:"monospace",fontStyle:"italic",fontWeight:"500",letterSpacing:td?"0.3":"0.2",opacity:td?.85:.55,textDecoration:td?"underline":"none","data-recent-panel-more":eS,"data-recent-panel-more-hovered":td?"true":"false","data-recent-panel-more-font-weight":"500",style:{transition:"opacity 150ms ease-out, fill 200ms ease-out, letter-spacing 200ms ease-out"},children:[`+ ${eS}`,(0,a.jsx)("tspan",{opacity:"0.7","data-recent-panel-more-unit":!0,children:` more flow${1===eS?"":"s"}`})]})]}))]}),(0,a.jsxs)("g",{transform:"translate(760, 16)","data-topo-panel":"legend","data-topo-panel-hovered":"legend"===tx?"true":"false",className:"anet-fade-in","data-topo-panel-fade-delay":800,style:{animationDelay:"800ms"},onMouseEnter:()=>ty("legend"),onMouseLeave:()=>ty(e=>"legend"===e?null:e),children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"224",height:"88",rx:"10",fill:eE.legendBox.fill,stroke:"legend"===tx?eE.legendAccent:eE.legendBox.stroke,opacity:"legend"===tx?eM?1:.97:eM?.97:.92,style:{filter:"legend"===tx?eM?"drop-shadow(0 4px 12px rgba(15,23,42,0.14))":"drop-shadow(0 4px 12px rgba(0,0,0,0.65))":eM?"drop-shadow(0 2px 6px rgba(15,23,42,0.08))":"drop-shadow(0 2px 6px rgba(0,0,0,0.45))",transition:"filter 200ms ease-out, fill 200ms ease-out, stroke 200ms ease-out, opacity 200ms ease-out"},"data-topo-panel-elevation":"legend"}),(0,a.jsx)("text",{x:"13",y:"21",fill:eE.legendHeadline,fontSize:"12",fontFamily:"monospace",fontWeight:"700",letterSpacing:"legend"===tx?"0.4":"0.3",style:{transition:"fill 200ms ease-out, letter-spacing 200ms ease-out"},"data-legend-panel-title":!0,children:"legend"}),(0,a.jsxs)("text",{x:"211",y:"21",textAnchor:"end",fill:eE.legendAccent,fontSize:"10",fontFamily:"monospace",fontWeight:"legend"===tx?"700":"600",letterSpacing:"0.2","data-legend-panel-count":!0,"data-legend-panel-count-letter-spacing":"0.2",style:{transition:"fill 200ms ease-out, font-weight 200ms ease-out",fontVariantNumeric:"tabular-nums"},children:[e.length,(0,a.jsxs)("tspan",{opacity:"0.7","data-legend-panel-count-unit":!0,children:[" node",1===e.length?"":"s"]})]}),(e_=eX.length-eQ,[{key:"working",y0:32,y1:36,fill:eM?"#059669":"#22c55e",label:"working",count:eQ},{key:"idle",y0:50,y1:54,fill:eM?"#0d9488":"#2dd4bf",label:"idle",count:e_},{key:"offline",y0:68,y1:72,fill:eM?"#94a3b8":"#6b7280",label:"offline",count:eK.length}]).map(e=>{let t,n,o,r=t$===e.key,s=tN===e.key,i=s||r;return(0,a.jsxs)("g",{"data-legend-status":e.key,"data-legend-row-lifted":i?"true":"false",className:"anet-topo-svg-focus",role:"button",tabIndex:0,"aria-pressed":r,style:{cursor:"pointer",transform:i?"translateY(-1px)":void 0,transition:"transform 150ms cubic-bezier(0.4, 0, 0.2, 1)"},onPointerDown:e=>e.stopPropagation(),onMouseEnter:()=>tS(e.key),onMouseLeave:()=>tS(t=>t===e.key?null:t),onClick:()=>t_(t=>t===e.key?null:e.key),children:[(0,a.jsx)("title",{children:(n=(t="working"===e.key?eX.filter(e=>"working"===e.status).map(e=>e.alias):"idle"===e.key?eX.filter(e=>"working"!==e.status).map(e=>e.alias):eK.map(e=>e.alias)).slice(0,8).join(", "),o=t.length>8?` + ${t.length-8} more`:"",[`${e.label} \xb7 ${e.count}`,t.length>0?`${n}${o}`:null,r?"click to release pin (Esc to clear)":"click to pin · hover to preview"].filter(Boolean).join("\n"))}),(0,a.jsx)("rect",{x:"6",y:e.y0-11,width:"170",height:"22",rx:"3",fill:tN===e.key||r?e.fill:"transparent",opacity:r?eM?.14:.18:tN===e.key?eM?.08:.12:1,"data-legend-row-tinted":r?"pinned":tN===e.key?"hover":"none",style:{transition:"fill 150ms ease-out, opacity 150ms ease-out"}}),(0,a.jsx)("circle",{cx:"16",cy:e.y0,r:"6",fill:e.fill,"data-legend-swatch":e.key,"data-legend-swatch-state":r?"pinned":s?"hover":"idle",style:{r:s||r?"7px":"6px",transition:"r 150ms ease-out"}}),(0,a.jsx)("circle",{cx:"16",cy:e.y0,r:"8",fill:"none",stroke:e.fill,strokeWidth:"1.75",opacity:+!!r,"data-legend-pin-ring":e.key,"data-legend-pin-ring-pinned":r?"true":"false","data-legend-pin-ring-stroke-width":"1.75",style:{pointerEvents:"none",transition:"opacity 150ms ease-out"}}),(0,a.jsx)("text",{x:"30",y:e.y1,fill:tN===e.key||r?eE.legendHeadline:eE.legendText,fontSize:"11",fontFamily:"monospace",fontWeight:"500","data-legend-row-label":e.key,"data-legend-row-label-pinned":r?"true":"false","data-legend-row-label-hovered":r||tN!==e.key?"false":"true","data-legend-row-label-font-weight":"500",style:{transition:"fill 150ms ease-out, letter-spacing 150ms ease-out",letterSpacing:r?"0.5px":tN===e.key?"0.25px":"0px"},children:e.label}),(0,a.jsx)("text",{x:"215",y:e.y1,textAnchor:"end",fill:e.count>0&&(tN===e.key||r)?e.fill:eE.legendText,fontSize:"11",fontFamily:"monospace",fontWeight:r?"700":"600",opacity:0===e.count?eM?.28:.3:tN===e.key||r?1:.65,"data-legend-count":e.key,"data-legend-count-empty":0===e.count?"true":"false","data-legend-count-pinned":r?"true":"false","data-legend-count-font-weight":r?"700":"600","data-legend-count-fill":e.count>0&&(tN===e.key||r)?"tier":"neutral",style:{pointerEvents:"none",transition:"opacity 150ms ease-out, fill 150ms ease-out, font-weight 150ms ease-out",fontVariantNumeric:"tabular-nums"},children:e.count})]},e.key)}),(0,a.jsx)("path",{d:"M140,68 Q164,44 196,68",fill:"none",stroke:eE.flowEdge,strokeWidth:"3",markerEnd:"url(#topo-arrow)","data-legend-flow-arrow":!0,style:{pointerEvents:"none",transition:"stroke 200ms ease-out"}})]}),(0,a.jsx)("text",{x:"16",y:"672",fontSize:"11",fontFamily:"monospace",fontWeight:"600",letterSpacing:"0.5",fill:eE.legendText,opacity:"0.4","data-topo-brand-watermark":!0,style:{pointerEvents:"none",transition:"fill 200ms ease-out"},children:"sleep2agi"}),(0,a.jsxs)("g",{opacity:.35*(0===eU.length),"data-topo-brand-canvas-mark":!0,"data-topo-brand-canvas-mark-visible":0===eU.length?"true":"false",style:{pointerEvents:"none",transition:"opacity 300ms ease-out, fill 200ms ease-out"},children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("mask",{id:"s2a-canvas-corner-mask",children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"28",height:"28",fill:"black"}),(0,a.jsx)("circle",{cx:"14",cy:"14",r:"12",fill:"white"}),(0,a.jsx)("circle",{cx:"17.5",cy:"13",r:"10",fill:"black"})]})}),(0,a.jsx)("rect",{x:"16",y:"16",width:"28",height:"28",fill:eE.legendText,mask:"url(#s2a-canvas-corner-mask)"})]})]}),(()=>{if(.01>Math.abs(tT.zoom-1)&&1>Math.abs(tT.x)&&1>Math.abs(tT.y)||eX.length+eK.length===0)return null;let e=-tT.x/tT.zoom*.12,n=-tT.y/tT.zoom*.12058823529411765,o=1e3/tT.zoom*.12,r=680/tT.zoom*.12058823529411765;return(0,a.jsx)("div",{className:"absolute right-4 rounded-lg border shadow-lg shadow-black/30 overflow-hidden anet-fade-in anet-topo-chip-focus",style:{bottom:56,background:eE.legendBox.fill,borderColor:eE.containerBorder,cursor:"crosshair",color:eE.legendAccent,transition:"background-color 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out"},role:"button",tabIndex:0,"aria-label":"Topology minimap — click to recenter, Enter to reset view",title:"Minimap · click to recenter · Enter to reset view",onClick:e=>{let t=e.currentTarget.getBoundingClientRect(),a=(e.clientX-t.left)/t.width,n=(e.clientY-t.top)/t.height;tA(e=>({...e,x:500-1e3*a*e.zoom,y:340-680*n*e.zoom}))},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t1())},onMouseEnter:()=>th(!0),onMouseLeave:()=>th(!1),onFocus:()=>th(!0),onBlur:()=>th(!1),"data-topo-minimap":!0,"data-topo-minimap-hovered":tu?"true":"false",children:(0,a.jsxs)("svg",{width:120,height:82,viewBox:"0 0 120 82",style:{display:"block"},children:[[...eX,...eK].map(e=>{let n=eV[e.alias];if(!n)return null;let o=(e.network_id?t[`${e.network_id}:${e.alias}`]:void 0)??t[e.alias],r="offline"!==e.status||!!o,s=$(e,r,eM);return(0,a.jsx)("circle",{cx:.12*n.x,cy:.12058823529411765*n.y,r:r?1.9:1.2,fill:s.primary,opacity:r?tu?1:.95:.6,"data-topo-minimap-dot":e.alias,"data-topo-minimap-dot-online":r?"true":"false","data-topo-minimap-dot-opacity":r?tu?1:.95:.6,"data-topo-minimap-dot-radius":r?1.9:1.2,style:{transition:"opacity 200ms ease-out, fill 200ms ease-out, r 200ms ease-out"}},e.alias)}),(0,a.jsx)("rect",{x:Math.max(0,e),y:Math.max(0,n),width:Math.max(0,Math.min(120-Math.max(0,e),o)),height:Math.max(0,Math.min(82-Math.max(0,n),r)),rx:"2",fill:"none",stroke:eE.legendAccent,strokeWidth:tu?"1.75":"1.5",strokeLinejoin:"round",opacity:tu?"1":"0.95","data-topo-minimap-viewport":!0,"data-topo-minimap-viewport-rx":"2","data-topo-minimap-viewport-smooth":tQ?"true":"false","data-topo-minimap-viewport-hover":tu?"true":"false","data-topo-minimap-viewport-linejoin":"round",style:{transition:tQ?"x 280ms ease-out, y 280ms ease-out, width 280ms ease-out, height 280ms ease-out, stroke-width 200ms ease-out, opacity 200ms ease-out":"stroke-width 200ms ease-out, opacity 200ms ease-out"}})]})})})(),(0,a.jsxs)("div",{className:"absolute bottom-4 right-4 flex items-center gap-2 text-xs select-none","data-topo-chrome":!0,children:[(0,a.jsx)("div",{className:"flex items-center rounded-lg border overflow-hidden","data-topo-chrome-nodesize-radius":"rounded-lg",style:{background:eE.legendBox.fill,borderColor:eE.containerBorder,transition:"background-color 200ms ease-out, border-color 200ms ease-out"},role:"group","aria-label":"Node size","data-topo-chrome-fleet-group-trailer":!0,children:[["S",.7],["M",.84],["L",1]].map(([e,t],n)=>{let o=`size-${e}`;return(0,a.jsx)("button",{onClick:()=>{tO(o);if(t!==eR){eY(!0),setTimeout(()=>eY(!1),400),eO(t);try{localStorage.setItem("anet-topo-nodescale",String(t))}catch{}}},"aria-pressed":eR===t,"data-topo-chrome-nodesize":e,"data-topo-chrome-nodesize-active":eR===t?"true":"false","data-topo-chrome-nodesize-popping":tB===o?"true":"false",title:`Node size: ${"S"===e?"small":"M"===e?"medium":"large"}`,className:`px-2 py-1 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset ${n>0?"border-l":""} ${eR===t?"bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25":"hover:bg-cyan-500/5 active:bg-cyan-500/15"}${tB===o?" anet-chrome-pop":""}`,style:{color:eR===t?void 0:eE.legendText,borderColor:eE.containerBorder},children:e},e)})}),(0,a.jsxs)("div",{className:"ml-1.5 flex items-center rounded-lg border overflow-hidden","data-topo-chrome-zoom-wrapper-radius":"rounded-lg",style:{background:eE.legendBox.fill,borderColor:eE.containerBorder,transition:"background-color 200ms ease-out, border-color 200ms ease-out"},"data-topo-chrome-view-group-leader":!0,"data-topo-chrome-zoom-wrapper":!0,children:[(0,a.jsx)("button",{onClick:()=>{tO("zoom-out"),tZ(1/1.2)},"data-topo-chrome-zoom-out":!0,"data-topo-chrome-zoom-out-popping":"zoom-out"===tB?"true":"false",className:"group px-2 py-1 hover:bg-white/5 active:bg-white/10 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset",style:{color:eE.legendText},"aria-label":"Zoom out",title:"Zoom out (−)",children:(0,a.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round","aria-hidden":!0,className:`transition-transform duration-200 ease-out group-hover:scale-110 transform-gpu${"zoom-out"===tB?" anet-chrome-pop":""}`,"data-topo-chrome-zoom-out-icon":!0,children:(0,a.jsx)("path",{d:"M5 12h14"})})}),(0,a.jsxs)("span",{className:`px-2 py-1 tabular-nums font-medium border-x text-center${"zoom-in"===tB||"zoom-out"===tB?" anet-chrome-pop":""}`,"data-topo-chrome-zoom-level":!0,"data-topo-chrome-zoom-level-popping":"zoom-in"===tB||"zoom-out"===tB?"true":"false","data-topo-chrome-zoom-level-hover":tp?"true":"false",onMouseEnter:()=>tm(!0),onMouseLeave:()=>tm(!1),style:{color:eE.legendText,borderColor:eE.containerBorder,minWidth:46,display:"inline-block",letterSpacing:tp?"0.5px":"0",fontWeight:tp?600:500,transition:"color 200ms ease-out, border-color 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out"},title:"Current zoom level",children:[Math.round(100*tT.zoom),"%"]}),(0,a.jsx)("button",{onClick:()=>{tO("zoom-in"),tZ(1.2)},"data-topo-chrome-zoom-in":!0,"data-topo-chrome-zoom-in-popping":"zoom-in"===tB?"true":"false",className:"group px-2 py-1 hover:bg-white/5 active:bg-white/10 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset",style:{color:eE.legendText},"aria-label":"Zoom in",title:"Zoom in (+)",children:(0,a.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round","aria-hidden":!0,className:`transition-transform duration-200 ease-out group-hover:scale-110 transform-gpu${"zoom-in"===tB?" anet-chrome-pop":""}`,"data-topo-chrome-zoom-in-icon":!0,children:(0,a.jsx)("path",{d:"M12 5v14M5 12h14"})})})]}),(0,a.jsx)("button",{onClick:()=>{tI(!0),setTimeout(()=>tI(!1),460),t1()},"data-topo-chrome-reset":!0,"data-topo-chrome-reset-spinning":tD?"true":"false","data-topo-chrome-reset-hover":tf?"true":"false",onMouseEnter:()=>tg(!0),onMouseLeave:()=>tg(!1),onFocus:()=>tg(!0),onBlur:()=>tg(!1),className:"p-1.5 rounded-md border hover:bg-white/5 active:bg-white/10 hover:-translate-y-px transition-colors transition-transform duration-200 ease-out transform-gpu focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60","data-topo-chrome-reset-hover-lift":"true",style:{background:eE.legendBox.fill,borderColor:eE.containerBorder,color:eE.legendText},"aria-label":"Reset view",title:"Reset zoom + pan (0, or double-click the canvas)",children:(0,a.jsxs)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:tD?"anet-reset-spin":void 0,"data-topo-chrome-reset-icon":!0,style:{transform:tf&&!tD?"rotate(-8deg)":"rotate(0deg)",transformOrigin:"center",transition:"transform 200ms ease-out"},"data-topo-chrome-reset-icon-hover":tf&&!tD?"true":"false",children:[(0,a.jsx)("path",{d:"M3 12a9 9 0 1 0 9-9 9 9 0 0 0-6.4 2.6L3 8"}),(0,a.jsx)("path",{d:"M3 3v5h5"})]})}),(0,a.jsx)("button",{onClick:()=>{tO("fullscreen");let e=tE.current;if(e)if(document.fullscreenElement)document.exitFullscreen?.();else{let t=e.requestFullscreen||e.webkitRequestFullscreen;t?.call(e)}},"data-topo-chrome-fullscreen":!0,"data-topo-chrome-fullscreen-active":tP?"true":"false","data-topo-chrome-fullscreen-popping":"fullscreen"===tB?"true":"false",className:`group p-1.5 rounded-md border hover:-translate-y-px transition-colors transition-transform duration-200 ease-out transform-gpu focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 ${tP?"bg-cyan-500/15 text-cyan-300 font-medium hover:bg-cyan-500/20 active:bg-cyan-500/25":"hover:bg-cyan-500/5 active:bg-cyan-500/15"}${"fullscreen"===tB?" anet-chrome-pop":""}`,"data-topo-chrome-fullscreen-hover-lift":"true",style:{borderColor:eE.containerBorder,...tP?{}:{background:eE.legendBox.fill,color:eE.legendText}},"aria-label":tP?"Exit fullscreen":"Enter fullscreen",title:tP?"Exit fullscreen":"Fullscreen",children:tP?(0,a.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:"transition-transform duration-200 ease-out group-hover:scale-110 transform-gpu","data-topo-chrome-fullscreen-icon":"exit",children:(0,a.jsx)("path",{d:"M8 3v4a1 1 0 0 1-1 1H3M21 8h-4a1 1 0 0 1-1-1V3M3 16h4a1 1 0 0 1 1 1v4M16 21v-4a1 1 0 0 1 1-1h4"})}):(0,a.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:"transition-transform duration-200 ease-out group-hover:scale-110 transform-gpu","data-topo-chrome-fullscreen-icon":"enter",children:(0,a.jsx)("path",{d:"M3 8V5a2 2 0 0 1 2-2h3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M21 16v3a2 2 0 0 1-2 2h-3"})})})]}),tH&&(0,a.jsx)(f,{alias:tH,onClose:()=>tY(null)})]})]})}let A={working:{bg:"bg-green-900/30 border-green-800/30",text:"text-green-300",dot:"bg-green-500",glow:"shadow-green-500/10"},idle:{bg:"bg-cyan-900/30 border-cyan-800/30",text:"text-cyan-300",dot:"bg-cyan-400",glow:"shadow-cyan-500/5"},blocked:{bg:"bg-yellow-900/30 border-yellow-800/30",text:"text-yellow-300",dot:"bg-yellow-500",glow:""},error:{bg:"bg-red-900/30 border-red-800/30",text:"text-red-300",dot:"bg-red-500",glow:""}},L={bg:"bg-gray-800/50 border-gray-700/30",text:"text-gray-500",dot:"bg-gray-500",glow:""};function F({session:e,hasSse:t,sseCount:n,onChat:s}){let i=t&&A[e.status]||L;return(0,a.jsxs)(o.default,{href:`/node?alias=${encodeURIComponent(e.alias)}`,prefetch:!1,className:`anet-agent-card group relative block rounded-xl border p-4 transition-all duration-300 cursor-pointer hover:-translate-y-0.5 ${t?`bg-[#111128] border-[#2a2a4a] hover:border-cyan-500/30 hover:shadow-lg ${i.glow}`:"bg-[#0d0d1a] border-[#1a1a2a] opacity-40"}`,children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)(u.AliasAvatar,{alias:e.alias,size:22}),(0,a.jsx)("span",{className:"font-semibold text-white truncate text-sm",title:e.alias,children:e.alias}),(0,a.jsx)("span",{className:`inline-block w-1.5 h-1.5 rounded-full shrink-0 ${i.dot} ${t&&"working"===e.status?"animate-pulse":""}`})]}),(0,a.jsx)("span",{className:`text-[11px] px-2 py-0.5 rounded-md border shrink-0 ${i.bg} ${i.text}`,children:t?e.status:"offline"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("span",{className:"text-xs text-gray-600 bg-[#0a0a15] px-2 py-0.5 rounded border border-[#1a1a2a]",children:e.agent||"unknown"}),t&&(0,a.jsxs)("span",{className:"text-[10px] text-green-500",children:["SSE:",n]})]}),e.task?(0,a.jsx)("div",{className:"text-xs text-gray-400 bg-[#0a0a15] rounded-lg px-3 py-2 border border-[#1a1a2a] line-clamp-2",title:e.task,children:e.task}):(0,a.jsx)("div",{className:"text-xs text-gray-700 italic",children:"No active task"}),e.progress>0&&(0,a.jsxs)("div",{className:"mt-3",children:[(0,a.jsxs)("div",{className:"flex justify-between text-[10px] mb-1",children:[(0,a.jsx)("span",{className:"text-gray-600",children:"Progress"}),(0,a.jsxs)("span",{className:i.text,children:[e.progress,"%"]})]}),(0,a.jsx)("div",{className:"w-full bg-gray-800 rounded-full h-1.5 overflow-hidden",children:(0,a.jsx)("div",{className:`h-1.5 rounded-full transition-all duration-700 ${"working"===e.status?"bg-green-500":"bg-cyan-500"}`,style:{width:`${Math.min(e.progress,100)}%`}})})]}),(0,a.jsxs)("div",{className:"mt-3 flex justify-between items-center text-[10px] text-gray-600",children:[(0,a.jsx)("span",{className:"truncate",title:e.server||"",children:e.server||"--"}),(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[s&&t&&(0,a.jsx)("button",{onClick:t=>{t.preventDefault(),t.stopPropagation(),s(e.alias)},className:"text-cyan-400 hover:text-cyan-300 px-1.5 py-0.5 rounded border border-cyan-500/20 hover:bg-cyan-500/10 transition-colors",children:"Chat"}),(0,a.jsx)("span",{children:(0,r.timeAgo)(e.updated_at)}),(0,a.jsx)("svg",{"aria-hidden":!0,className:"w-3 h-3 text-gray-700 opacity-0 -translate-x-1 group-hover:opacity-100 group-hover:translate-x-0 transition-all duration-200",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M9 18l6-6-6-6"})})]})]})]})}function P({messages:e}){return 0===e.length?null:(0,a.jsxs)("div",{className:"mt-8",children:[(0,a.jsxs)("h2",{className:"text-lg font-semibold text-white mb-3 flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-gray-500",children:"Inbox"}),(0,a.jsx)("span",{className:"text-xs bg-blue-900/30 text-blue-400 px-2 py-0.5 rounded-full border border-blue-800/30",children:e.length})]}),(0,a.jsx)("div",{className:"space-y-2 max-h-96 overflow-y-auto pr-1 scrollbar-thin",children:e.map(e=>(0,a.jsxs)("div",{className:"bg-[#111128] border border-[#2a2a4a] rounded-lg px-4 py-3 text-sm transition-colors hover:border-[#3a3a5a]",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs mb-1.5",children:[e.from_session&&(0,a.jsx)(u.AliasAvatar,{alias:e.from_session,size:16}),(0,a.jsx)("span",{className:"text-gray-200 font-medium truncate",children:e.from_session}),(0,a.jsx)("span",{className:"ml-auto text-gray-600 shrink-0",title:e.created_at,children:(0,r.timeAgo)(e.created_at)})]}),(0,a.jsx)("div",{className:"text-gray-300 leading-relaxed line-clamp-3",title:e.content||"",children:(0,r.previewContent)(e.content)})]},e.id))})]})}function W(){return(0,a.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,a.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 mb-8 anet-skeleton-pulse",children:[1,2,3,4].map(e=>(0,a.jsxs)("div",{className:"rounded-xl border border-[#2a2a4a] bg-[#111128] px-4 py-3",children:[(0,a.jsx)(D,{w:"2.5rem",h:"1.75rem"}),(0,a.jsx)(D,{w:"3.5rem",h:"0.75rem",className:"mt-2"}),(0,a.jsx)(D,{w:"5rem",h:"0.625rem",className:"mt-1"})]},e))}),(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-3 anet-skeleton-pulse",children:[(0,a.jsx)(D,{w:"6rem",h:"2.5rem",rounded:"0.75rem"}),(0,a.jsxs)("div",{className:"flex-1 rounded-lg border border-[#2a2a4a] bg-[#111128] px-4 py-2.5 flex items-center gap-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full anet-skeleton-bar"}),(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)(D,{w:"6rem",h:"0.875rem"}),(0,a.jsx)(D,{w:"10rem",h:"0.625rem",className:"mt-1"})]})]})]}),(0,a.jsx)("div",{className:"mb-6 rounded-lg border border-[#2a2a4a] bg-[#111128] px-4 py-3 anet-skeleton-pulse",children:(0,a.jsx)(D,{w:"14rem",h:"0.875rem"})}),(0,a.jsx)("div",{className:"grid grid-cols-3 gap-2 sm:gap-3 mb-3 anet-skeleton-pulse",children:[1,2,3].map(e=>(0,a.jsxs)("div",{className:"rounded-xl border border-[#2a2a4a] bg-[#111128] px-3 py-3",children:[(0,a.jsx)(D,{w:"2rem",h:"1.25rem"}),(0,a.jsx)(D,{w:"2.5rem",h:"0.75rem",className:"mt-1"}),(0,a.jsx)(D,{w:"3.5rem",h:"0.625rem",className:"mt-px"})]},e))}),(0,a.jsx)("div",{className:"grid grid-cols-3 gap-2 sm:gap-3 mb-6 anet-skeleton-pulse",children:[1,2,3].map(e=>(0,a.jsxs)("div",{className:"rounded-xl border border-[#2a2a4a] bg-[#111128] px-3 py-2.5 flex items-center justify-center gap-2",children:[(0,a.jsx)("div",{className:"w-4 h-4 rounded anet-skeleton-bar"}),(0,a.jsx)(D,{w:"4rem",h:"0.75rem"})]},e))}),(0,a.jsxs)("div",{className:"mb-6 flex gap-2 anet-skeleton-pulse",children:[(0,a.jsx)("div",{className:"flex-1 h-10 rounded-lg border border-[#2a2a4a] bg-[#111128]"}),(0,a.jsx)("div",{className:"w-28 h-10 rounded-lg anet-skeleton-bar"})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4 gap-3 sm:gap-4 anet-skeleton-pulse",children:[1,2,3,4].map(e=>(0,a.jsxs)("div",{className:"rounded-xl border border-[#2a2a4a] bg-[#111128] p-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,a.jsx)("div",{className:"w-2 h-2 rounded-full anet-skeleton-bar"}),(0,a.jsx)(D,{w:"6rem",h:"0.875rem"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(D,{w:"100%",h:"0.625rem"}),(0,a.jsx)(D,{w:"75%",h:"0.625rem"}),(0,a.jsx)(D,{w:"55%",h:"0.625rem"})]})]},e))})]})}function D({w:e,h:t,rounded:n,className:o}){return(0,a.jsx)("div",{className:`anet-skeleton-bar ${o||""}`,style:{width:e,height:t,borderRadius:n||"0.375rem"}})}var I=e.i(76161),B=e.i(98025),R=e.i(11449);function O(){let{setNetworkId:e}=(0,R.useNetworkId)(),[t,o]=(0,n.useState)({user:null,networks:[],currentNetwork:"",token:""}),[r,s]=(0,n.useState)(!1),[i,l]=(0,n.useState)(""),[d,c]=(0,n.useState)(""),[u,h]=(0,n.useState)(""),[p,m]=(0,n.useState)(!1);(0,n.useEffect)(()=>{let e=sessionStorage.getItem("anet_v3_auth");if(e)try{o(JSON.parse(e))}catch{}},[]);let[f,g]=(0,n.useState)(!1),[x,y]=(0,n.useState)(""),[b,v]=(0,n.useState)(""),k=async()=>{try{await fetch(`/api/hub/auth?token=${t.token}&endpoint=/api/auth/me`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"update_profile",token:t.token,display_name:x,email:b})});let e=await fetch("/api/hub/auth",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"update_profile",token:t.token,display_name:x,email:b})}),a=await e.json();if(a.ok&&a.user){let e={...t,user:a.user};o(e),sessionStorage.setItem("anet_v3_auth",JSON.stringify(e)),g(!1)}}catch{}};if(!t.user)return null;let w=(t.user.display_name||t.user.username).slice(0,2).toUpperCase();return(0,a.jsxs)("div",{className:"flex items-center justify-between bg-[#111128] border border-[#2a2a4a] rounded-lg px-4 py-2.5 mb-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"w-8 h-8 rounded-full bg-gradient-to-br from-cyan-500 to-blue-600 flex items-center justify-center text-xs font-bold text-white",children:w}),(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"text-sm text-white font-medium",children:t.user.display_name||t.user.username}),(0,a.jsxs)("div",{className:"text-[10px] text-gray-500",children:[t.user.role," · ",t.user.user_id]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[t.networks.length>0&&(0,a.jsx)("select",{value:t.currentNetwork,onChange:a=>{let n={...t,currentNetwork:a.target.value};o(n),e(a.target.value),sessionStorage.setItem("anet_v3_auth",JSON.stringify(n))},className:"bg-[#0a0a15] border border-[#2a2a4a] rounded px-2 py-1 text-xs text-white focus:outline-none",children:t.networks.map(e=>(0,a.jsx)("option",{value:e.network_id,children:e.network_name},e.network_id))}),(0,a.jsxs)("button",{onClick:()=>{y(t.user?.display_name||""),v(""),g(!f)},className:"text-xs text-gray-500 hover:text-gray-300 whitespace-nowrap","aria-label":"Edit profile",children:[(0,a.jsx)("span",{className:"hidden sm:inline",children:"Edit"}),(0,a.jsx)("svg",{className:"sm:hidden w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.5",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.862 4.487z"})})]}),(0,a.jsxs)("button",{onClick:()=>{o({user:null,networks:[],currentNetwork:"",token:""}),sessionStorage.removeItem("anet_v3_auth")},className:"text-xs text-gray-500 hover:text-gray-300 whitespace-nowrap","aria-label":"Sign out",children:[(0,a.jsx)("span",{className:"hidden sm:inline",children:"Sign out"}),(0,a.jsx)("svg",{className:"sm:hidden w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.5",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0013.5 3h-6a2.25 2.25 0 00-2.25 2.25v13.5A2.25 2.25 0 007.5 21h6a2.25 2.25 0 002.25-2.25V15m3 0l3-3m0 0l-3-3m3 3H9"})})]})]}),f&&(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-2 pt-2 border-t border-[#2a2a4a]",children:[(0,a.jsx)("input",{type:"text",value:x,onChange:e=>y(e.target.value),placeholder:"Display name",className:"bg-[#0a0a15] border border-[#2a2a4a] rounded px-2 py-1 text-xs text-white placeholder-gray-600 focus:outline-none w-32"}),(0,a.jsx)("input",{type:"email",value:b,onChange:e=>v(e.target.value),placeholder:"Email",className:"bg-[#0a0a15] border border-[#2a2a4a] rounded px-2 py-1 text-xs text-white placeholder-gray-600 focus:outline-none w-40"}),(0,a.jsx)("button",{onClick:k,className:"px-2 py-1 bg-cyan-600 hover:bg-cyan-500 text-white text-xs rounded",children:"Save"})]})]})}var H=e.i(6694);function Y({tabs:e,activeTab:t,onOpenTab:n,onCloseTab:o,onSetActive:r,onClose:s}){return 0===e.length?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{onClick:s,className:"jsx-f7cf3d1a6fdfc074 fixed inset-0 bg-black/30 z-40 lg:hidden"}),(0,a.jsxs)("div",{className:"jsx-f7cf3d1a6fdfc074 fixed top-0 right-0 h-full w-full lg:w-[500px] bg-[#0a0a1a] border-l border-[#2a2a4a] z-50 flex flex-col shadow-2xl shadow-black/60 animate-slide-in",children:[(0,a.jsxs)("div",{className:"jsx-f7cf3d1a6fdfc074 flex items-center border-b border-[#2a2a4a] bg-[#0d0d1a] overflow-x-auto",children:[(0,a.jsx)("div",{className:"jsx-f7cf3d1a6fdfc074 flex-1 flex min-w-0",children:e.map(e=>(0,a.jsxs)("button",{onClick:()=>r(e),className:`jsx-f7cf3d1a6fdfc074 flex items-center gap-1.5 px-3 py-2.5 text-xs border-b-2 transition-colors shrink-0 ${t===e?"border-cyan-400 text-cyan-300 bg-cyan-500/5":"border-transparent text-gray-500 hover:text-gray-300"}`,children:[(0,a.jsx)("div",{className:`jsx-f7cf3d1a6fdfc074 w-2 h-2 rounded-full ${t===e?"bg-cyan-400":"bg-gray-600"}`}),(0,a.jsx)("span",{className:"jsx-f7cf3d1a6fdfc074 max-w-[80px] truncate",children:e}),(0,a.jsx)("button",{onClick:t=>{t.stopPropagation(),o(e)},className:"jsx-f7cf3d1a6fdfc074 ml-1 text-gray-600 hover:text-gray-300 p-0.5",children:"×"})]},e))}),(0,a.jsx)("button",{onClick:s,className:"jsx-f7cf3d1a6fdfc074 text-gray-500 hover:text-white px-3 py-2.5 shrink-0 border-l border-[#2a2a4a]",children:(0,a.jsx)("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,className:"jsx-f7cf3d1a6fdfc074 w-4 h-4",children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12",className:"jsx-f7cf3d1a6fdfc074"})})})]}),(0,a.jsx)("div",{className:"jsx-f7cf3d1a6fdfc074 flex-1 relative overflow-hidden",children:e.map(e=>(0,a.jsx)("div",{className:`jsx-f7cf3d1a6fdfc074 absolute inset-0 ${t===e?"block":"hidden"}`,children:(0,a.jsx)(X,{alias:e})},e))})]}),(0,a.jsx)(H.default,{id:"f7cf3d1a6fdfc074",children:"@keyframes slide-in{0%{transform:translate(100%)}to{transform:translate(0)}}.animate-slide-in{animation:.2s ease-out slide-in}"})]})}function X({alias:e}){return(0,a.jsx)(h.TaskChatPanel,{alias:e,onClose:()=>{},inline:!0})}function K({sessions:e,onClose:t}){let[o,r]=(0,n.useState)(new Set),[s,i]=(0,n.useState)(""),[l,d]=(0,n.useState)("normal"),[c,h]=(0,n.useState)(!1),[p,m]=(0,n.useState)([]),[f,g]=(0,n.useState)(""),x=e.filter(e=>"offline"!==e.status).filter(e=>!f||e.alias.toLowerCase().includes(f.toLowerCase())||(e.agent||"").toLowerCase().includes(f.toLowerCase())),y=async()=>{if(!s.trim()||0===o.size||c)return;h(!0),m([]);let e=[...o].map(async e=>{try{let t=await fetch("/api/hub/send",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({alias:e,task:s,priority:l})}),a=await t.json();return{alias:e,ok:!!a.ok,error:a.error}}catch(t){return{alias:e,ok:!1,error:"send failed"}}});m(await Promise.all(e)),h(!1)},b=p.filter(e=>e.ok).length;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"fixed inset-0 bg-black/50 z-40 anet-fade-in",onClick:t}),(0,a.jsxs)("div",{className:"fixed inset-4 lg:inset-x-[15%] lg:inset-y-[5%] bg-[#0a0a1a] border border-[#2a2a4a] rounded-2xl z-50 flex flex-col shadow-2xl shadow-black/70 overflow-hidden anet-fade-in",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between px-6 py-4 border-b border-[#2a2a4a] bg-[#0d0d1a]",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-lg font-bold text-white",children:"Dispatch Task"}),(0,a.jsx)("p",{className:"text-xs text-gray-500 mt-0.5",children:"Send a task to one or more agents"})]}),(0,a.jsx)("button",{onClick:t,className:"text-gray-500 hover:text-white p-1.5 rounded-lg hover:bg-[#1a1a2a]",children:(0,a.jsx)("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,a.jsxs)("div",{className:"flex-1 flex flex-col lg:flex-row overflow-hidden",children:[(0,a.jsxs)("div",{className:"lg:w-[280px] border-b lg:border-b-0 lg:border-r border-[#2a2a4a] flex flex-col",children:[(0,a.jsxs)("div",{className:"px-4 py-3 border-b border-[#2a2a4a]",children:[(0,a.jsx)("input",{type:"text",value:f,onChange:e=>g(e.target.value),placeholder:"Filter agents...",className:"w-full bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-xs text-white placeholder-gray-600 focus:border-cyan-500/40 focus:outline-none"}),(0,a.jsxs)("div",{className:"flex items-center justify-between mt-2",children:[(0,a.jsx)("button",{onClick:()=>{o.size===x.length?r(new Set):r(new Set(x.map(e=>e.alias)))},className:"text-[10px] text-cyan-400 hover:text-cyan-300",children:o.size===x.length?"Deselect all":`Select all (${x.length})`}),(0,a.jsxs)("span",{className:"text-[10px] text-gray-600",children:[o.size," selected"]})]})]}),(0,a.jsxs)("div",{className:"flex-1 overflow-y-auto px-2 py-2 space-y-0.5 max-h-[200px] lg:max-h-none",children:[x.map(e=>(0,a.jsxs)("button",{onClick:()=>{var t;return t=e.alias,void r(e=>{let a=new Set(e);return a.has(t)?a.delete(t):a.add(t),a})},className:`w-full flex items-center gap-2 px-3 py-2 rounded-lg text-xs text-left transition-colors ${o.has(e.alias)?"bg-cyan-500/10 text-cyan-300 border border-cyan-500/20":"text-gray-400 hover:bg-[#1a1a2a]"}`,children:[(0,a.jsx)(u.AliasAvatar,{alias:e.alias,size:16}),(0,a.jsx)("div",{className:`w-1.5 h-1.5 rounded-full shrink-0 ${"working"===e.status?"bg-green-400":"idle"===e.status?"bg-cyan-400":"bg-gray-500"}`}),(0,a.jsx)("span",{className:"truncate flex-1",children:e.alias}),(0,a.jsx)("span",{className:"text-[9px] text-gray-600",children:e.agent||"--"})]},e.alias)),0===x.length&&(0,a.jsx)("div",{className:"text-center text-xs text-gray-600 py-4",children:"No online agents"})]})]}),(0,a.jsxs)("div",{className:"flex-1 flex flex-col",children:[(0,a.jsxs)("div",{className:"flex-1 px-6 py-4 flex flex-col",children:[(0,a.jsx)("label",{className:"text-xs text-gray-500 uppercase mb-2",children:"Task Prompt"}),(0,a.jsx)("textarea",{value:s,onChange:e=>i(e.target.value),placeholder:"Enter the task you want to dispatch...",className:"flex-1 min-h-[120px] bg-[#111128] border border-[#2a2a4a] rounded-xl px-4 py-3 text-sm text-white placeholder-gray-600 focus:border-cyan-500/40 focus:outline-none resize-none"}),(0,a.jsxs)("div",{className:"flex items-center gap-3 mt-4",children:[(0,a.jsxs)("select",{value:l,onChange:e=>d(e.target.value),className:"bg-[#111128] border border-[#2a2a4a] rounded-lg px-3 py-2 text-xs text-white focus:outline-none",children:[(0,a.jsx)("option",{value:"normal",children:"Normal priority"}),(0,a.jsx)("option",{value:"high",children:"High priority"}),(0,a.jsx)("option",{value:"low",children:"Low priority"})]}),(0,a.jsx)("div",{className:"flex-1"}),(0,a.jsx)("button",{onClick:y,disabled:c||!s.trim()||0===o.size,className:"px-6 py-2.5 bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 disabled:from-gray-800 disabled:to-gray-800 disabled:text-gray-600 text-white text-sm font-medium rounded-xl transition-all shadow-lg shadow-cyan-500/10 disabled:shadow-none active:scale-95",children:c?(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}),"Sending..."]}):`Dispatch to ${o.size} agent${o.size>1?"s":""}`})]})]}),p.length>0&&(0,a.jsxs)("div",{className:"px-6 py-3 border-t border-[#2a2a4a] bg-[#0d0d1a]",children:[(0,a.jsxs)("div",{className:"text-xs text-gray-500 mb-2",children:[b,"/",p.length," dispatched successfully"]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:p.map(e=>(0,a.jsxs)("span",{className:`flex items-center gap-1.5 text-[10px] pl-1 pr-2 py-0.5 rounded-full border ${e.ok?"text-green-300 border-green-500/20 bg-green-500/5":"text-red-300 border-red-500/20 bg-red-500/5"}`,children:[(0,a.jsx)(u.AliasAvatar,{alias:e.alias,size:14}),(0,a.jsx)("span",{children:e.alias}),(0,a.jsx)("span",{"aria-hidden":!0,children:e.ok?"✓":e.error||"✗"})]},e.alias))})]})]})]})]})]})}var V=e.i(2684),U=e.i(50111);e.s(["default",0,function(){let e,i,d,c,h;(0,n.useEffect)(()=>{sessionStorage.getItem("anet_v3_auth")||(fetch("/api/auth/logout",{method:"POST"}).catch(()=>{}),window.location.assign("/login"))},[]);let{sessions:m,hint:f,error:g,isLoading:x}=(0,p.useSessions)(),{health:y}=(0,p.useHealth)(),{config:b}=(0,p.useAnetConfig)(),{tasks:v}=(0,p.useTasks)({limit:"500"}),{stats:k}=(0,p.useStats)(),[w,j]=(0,n.useState)(window.innerWidth>=1024),[N,S]=(0,n.useState)(!1),$=function(){let[e,t]=(0,n.useState)([]),[a,o]=(0,n.useState)("");return{tabs:e,activeTab:a,openTab:e=>{t(t=>t.includes(e)?t:[...t,e]),o(e)},closeTab:e=>{t(t=>{let n=t.filter(t=>t!==e);return a===e&&o(n[n.length-1]||""),n})},closeAll:()=>{t([]),o("")},setActiveTab:o}}(),[_,M]=(0,n.useState)(!1),[C,E]=(0,n.useState)([]),[z,A]=(0,n.useState)("all"),[L,D]=(0,n.useState)(null),{mutate:R}=(0,U.useSWRConfig)(),H="1"!==t.default.env.NEXT_PUBLIC_DISABLE_SSE,{connected:X,supported:G}=(0,V.useSSE)({url:"/api/hub/events",enabled:H,onEvent:e=>{if("node.renamed"===e.type){R("/api/hub/status");let t=e.data;t?.old_alias&&t?.new_alias&&D({from:t.old_alias,to:t.new_alias,ts:Date.now()});return}["new_task","new_message","new_reply","node_status_changed","broadcast"].includes(e.type)&&(R("/api/hub/status"),R(e=>"string"==typeof e&&e.startsWith("/api/hub/tasks"),void 0,{revalidate:!0}))}});if((0,n.useEffect)(()=>{let e=()=>{fetch("/api/hub/inbox").then(e=>e.json()).then(e=>{e.messages?.length&&E(t=>{let a=new Set(t.map(e=>e.id));return[...e.messages.filter(e=>!a.has(e.id)),...t].slice(0,100)})}).catch(()=>{})};e();let t=setInterval(e,1e4);return()=>clearInterval(t)},[]),x)return(0,a.jsx)(W,{});let J=y?.sse_sessions||{},q=e=>(e.network_id?J[`${e.network_id}:${e.alias}`]:void 0)??J[e.alias],Z=e=>"offline"!==e.status||!!q(e),Q=m.filter(Z).length,ee=m.length,et=m.filter(e=>"working"===e.status).length,ea=y?(0,r.formatUptime)(y.uptime):"--",en=y?.version||"--",eo=!!(b?.hub&&b.tokenConfigured),er=b?.source==="file"?"Local config":b?.source==="runtime-env"?"Runtime env":"Config missing",es={};if(k?.tasks?.by_status?.length)for(let e of k.tasks.by_status)es[e.status]=e.count;else for(let e of v)es[e.status]=(es[e.status]||0)+1;let ei=[...m].sort((e,t)=>{let a=+!!Z(e),n=+!!Z(t);if(a!==n)return n-a;let o=+("working"===e.status);return("working"===t.status)-o}),el=0===m.length&&!g;return(0,a.jsxs)("div",{className:"min-h-screen bg-[#0a0a1a] text-gray-100 p-4 sm:p-6 font-mono",children:[(0,a.jsx)("div",{className:"lg:ml-0 ml-10",children:(0,a.jsx)(s,{online:Q,working:et,total:ee,version:en,uptime:ea})}),(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[!el&&(0,a.jsx)("button",{onClick:()=>M(!0),className:"px-4 py-2 bg-gradient-to-r from-cyan-600 to-blue-600 hover:from-cyan-500 hover:to-blue-500 text-white text-sm font-medium rounded-xl shadow-lg shadow-cyan-500/10 transition-all active:scale-95 shrink-0",children:"⚡ Dispatch"}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(O,{})})]}),(0,a.jsxs)("section",{className:"mb-6 rounded-lg border border-[#2a2a4a] bg-[#111128] px-4 py-3 shadow-lg shadow-black/20",children:[(0,a.jsxs)("button",{onClick:()=>S(!N),className:"w-full flex items-center justify-between text-left",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,a.jsx)("span",{className:"uppercase text-gray-600",children:"Config"}),(0,a.jsx)("span",{className:`w-2 h-2 rounded-full ${eo?"bg-green-400":"bg-red-400"}`}),(0,a.jsx)("span",{className:"text-gray-500",children:er})]}),(0,a.jsx)("svg",{className:`w-4 h-4 text-gray-600 transition-transform ${N?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,a.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),N&&(0,a.jsxs)("div",{className:"mt-3 pt-3 border-t border-[#2a2a4a]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,a.jsx)("div",{className:"min-w-0",children:(0,a.jsxs)("div",{className:"text-gray-100 truncate text-sm",title:b?.hub||void 0,children:["Hub: ",(0,a.jsx)("span",{className:b?.hub?"text-cyan-300":"text-red-300",children:b?.hub?.trim()||"not configured"})]})}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2 text-xs",children:(0,a.jsxs)("span",{className:`px-2.5 py-1 rounded-md border ${b?.tokenConfigured?"bg-blue-500/5 text-blue-300 border-blue-500/20":"bg-gray-500/5 text-gray-400 border-gray-500/20"}`,children:["Token: ",b?.tokenPreview||"not configured"]})})]}),b?.error&&(0,a.jsx)("div",{className:"mt-2 text-xs text-gray-600",children:b.error})]})]}),Object.keys(es).length>0&&(0,a.jsxs)("section",{className:"mb-6 rounded-lg border border-[#2a2a4a] bg-[#111128] px-4 py-3 shadow-lg shadow-black/20",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsx)("div",{className:"text-xs uppercase text-gray-600",children:"Task Status"}),(0,a.jsx)(o.default,{href:"/tasks",prefetch:!1,className:"text-xs text-cyan-400 hover:text-cyan-300",children:"View all →"})]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:["running","delivered","acked","replied","created","failed","cancelled","expired","closed"].filter(e=>es[e]).map(e=>(0,a.jsxs)(o.default,{href:`/tasks?status=${e}`,prefetch:!1,className:`px-2.5 py-1 rounded-md border text-xs ${B.STATUS_CHIP_CLASS[e]} hover:opacity-80 transition-opacity`,children:[e,": ",es[e]]},e))})]}),!el&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"text-[10px] uppercase tracking-[0.12em] text-gray-600 mb-2",children:"Quick navigation"}),(0,a.jsx)("section",{className:"mb-3 grid grid-cols-3 gap-2 sm:gap-3",children:(e=m.filter(e=>Z(e)&&"working"!==e.status).length,i=ee-Q,d=v.filter(e=>"failed"===e.status).length,[{href:"/nodes",label:"Nodes",value:`${Q}/${ee}`,sub:`${ee>0?Math.round(Q/ee*100):0}% online`,color:"text-green-400 border-green-500/20",popover:0===ee?null:[{k:"working",v:et,dot:"",color:"#4ade80"},{k:"idle",v:e,dot:"",color:"#22d3ee"},{k:"offline",v:i,dot:"",color:"#9ca3af"}]},{href:"/tasks",label:"Tasks",value:String(Object.values(es).reduce((e,t)=>e+t,0)||0),sub:"all-time",color:"text-cyan-400 border-cyan-500/20",popover:0===Object.keys(es).length?null:["running","replied","failed","cancelled","expired","closed","created","delivered","acked"].filter(e=>es[e]).map(e=>({k:e,v:es[e],dot:"",color:({running:"#4ade80",replied:"#a78bfa",failed:"#f87171",cancelled:"#facc15",expired:"#fb923c",closed:"#9ca3af",created:"#9ca3af",delivered:"#60a5fa",acked:"#22d3ee"})[e]||"#9ca3af"}))},{href:"/tasks?status=failed",label:"Failed",value:String(es.failed||0),sub:es.failed?"needs review":"none",color:es.failed?"text-red-400 border-red-500/25":"text-gray-500 border-gray-700/30",popover:d?[{k:`${d} in current view`,v:"",dot:"",color:"#f87171"}]:[{k:"no failures yet",v:"",dot:"",color:"#4b5563"}]}].map(e=>(0,a.jsxs)(o.default,{href:e.href,prefetch:!1,className:`anet-stat-link group relative rounded-xl border ${e.color} bg-[#111128] px-3 py-3 transition-all hover:-translate-y-px`,children:[(0,a.jsxs)("div",{className:"flex items-baseline justify-between",children:[(0,a.jsx)("div",{className:`text-xl font-semibold tabular-nums ${e.color.split(" ")[0]}`,children:e.value}),(0,a.jsx)("div",{className:"hidden sm:block text-[10px] text-gray-600 group-hover:text-gray-400 transition-colors",children:"View →"})]}),(0,a.jsx)("div",{className:"text-[11px] text-gray-400 mt-0.5",children:e.label}),(0,a.jsx)("div",{className:"text-[10px] text-gray-600 mt-px",children:e.sub}),e.popover&&e.popover.length>0&&(0,a.jsxs)("div",{className:"anet-stat-popover hidden md:block pointer-events-none absolute left-2 right-2 top-full mt-1 z-20 rounded-lg border border-[#2a2a4a] bg-[#0d0d1a] shadow-lg shadow-black/30 px-3 py-2 opacity-0 translate-y-[-2px] group-hover:opacity-100 group-hover:translate-y-0 transition-all duration-150 delay-100",children:[(0,a.jsx)("div",{className:"text-[10px] text-gray-600 uppercase tracking-wider mb-1.5",children:"Breakdown"}),(0,a.jsx)("ul",{className:"space-y-1",children:e.popover.map(e=>(0,a.jsxs)("li",{className:"flex items-center gap-2 text-[11px]",children:[(0,a.jsx)("span",{className:"inline-block w-1.5 h-1.5 rounded-full shrink-0",style:{backgroundColor:e.color},"aria-hidden":!0}),(0,a.jsx)("span",{className:"text-gray-400 capitalize",children:e.k}),""!==e.v&&(0,a.jsx)("span",{className:"ml-auto text-gray-300 tabular-nums font-medium",children:e.v})]},e.k))})]})]},e.href)))}),(0,a.jsx)("section",{className:"mb-6 grid grid-cols-3 gap-2 sm:gap-3",children:[{href:"/messages",label:"Messages",icon:"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"},{href:"/logs",label:"Audit log",icon:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z M14 2v6h6 M16 13H8 M16 17H8 M10 9H8"},{href:"/admin",label:"Admin",icon:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4z M6 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2"}].map(e=>(0,a.jsxs)(o.default,{href:e.href,prefetch:!1,className:"anet-nav-tile flex items-center justify-center gap-2 rounded-xl border border-[#2a2a4a] bg-[#111128] px-3 py-2.5 text-[12px] text-gray-400 hover:text-gray-200 transition-colors",children:[(0,a.jsx)("svg",{className:"w-4 h-4 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:e.icon})}),(0,a.jsx)("span",{children:e.label})]},e.href))}),(0,a.jsx)(l,{}),v.length>0&&(0,a.jsxs)("section",{className:"mb-6 bg-[#111128] border border-[#2a2a4a] rounded-xl p-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,a.jsx)("h2",{className:"text-sm font-semibold text-gray-300",children:"Recent Activity"}),(0,a.jsx)(o.default,{href:"/tasks",className:"text-xs text-cyan-400 hover:text-cyan-300",children:"All tasks →"})]}),(0,a.jsx)("div",{className:"space-y-2 max-h-40 overflow-y-auto",children:v.slice(0,5).map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,a.jsx)("span",{className:"w-1.5 h-1.5 rounded-full shrink-0",style:{backgroundColor:B.STATUS_DOT_HEX[e.status]||"#6b7280"}}),e.from_name&&(0,a.jsx)(u.AliasAvatar,{alias:e.from_name,size:14}),(0,a.jsx)("span",{className:"text-gray-300 shrink-0 max-w-[20%] truncate",children:e.from_name||"?"}),(0,a.jsx)("span",{className:"text-gray-600",children:"→"}),e.to_name&&(0,a.jsx)(u.AliasAvatar,{alias:e.to_name,size:14}),(0,a.jsx)("span",{className:"text-gray-300 shrink-0 max-w-[20%] truncate",children:e.to_name||"?"}),(0,a.jsx)("span",{className:"text-gray-500 truncate flex-1",title:e.content||"",children:(0,r.previewContent)(e.content).slice(0,60)}),(0,a.jsx)("span",{className:`shrink-0 px-1.5 py-0.5 rounded text-[10px] border ${B.STATUS_CHIP_CLASS[e.status]||"text-gray-500 border-gray-700/30"}`,children:e.status})]},e.task_id))})]})]}),g&&(0,a.jsxs)("div",{className:"bg-red-900/20 border border-red-800/40 text-red-300 px-4 py-3 rounded-lg mb-6 text-sm flex items-center justify-between",role:"alert",children:[(0,a.jsx)("span",{children:String(g)}),(0,a.jsx)("span",{className:"text-gray-500 text-xs",children:"Check CommHub connection"})]}),m.length>0&&(0,a.jsx)("div",{className:"flex justify-center mb-4",children:(0,a.jsx)("button",{onClick:()=>j(!w),className:"text-xs text-gray-500 hover:text-gray-300 border border-gray-700/50 px-4 py-1.5 rounded-lg transition-colors hover:border-gray-600 cursor-pointer",children:w?"Hide Topology":"Show Topology"})}),!w&&m.length>0&&(0,a.jsx)("div",{className:"lg:hidden text-center text-xs text-gray-600 mb-4",children:"Topology hidden on mobile for better readability"}),w&&m.length>0&&(0,a.jsx)(T,{sessions:m,sseSessions:J,renameSignal:L}),0!==m.length||g?(c={all:ei.length,working:ei.filter(e=>Z(e)&&"working"===e.status).length,idle:ei.filter(e=>Z(e)&&"working"!==e.status).length,offline:ei.filter(e=>!Z(e)).length},h=ei.filter(e=>"all"===z||("offline"===z?!Z(e):"working"===z?Z(e)&&"working"===e.status:"idle"!==z||Z(e)&&"working"!==e.status)),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mb-3 flex flex-wrap items-center gap-1",children:[{key:"all",label:"All"},{key:"working",label:"Working",dot:"#4ade80"},{key:"idle",label:"Idle",dot:"#22d3ee"},{key:"offline",label:"Offline",dot:"#6b7280"}].map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>A(e.key),disabled:0===c[e.key]&&"all"!==e.key,className:`flex items-center gap-1.5 rounded-md px-2.5 py-1 text-xs transition-colors disabled:opacity-30 disabled:cursor-not-allowed ${z===e.key?"bg-cyan-500/10 text-cyan-300 border border-cyan-500/30":"text-gray-500 hover:text-gray-200 hover:bg-[#1a1a2a] border border-transparent"}`,children:[e.dot&&(0,a.jsx)("span",{"aria-hidden":!0,className:"inline-block w-1.5 h-1.5 rounded-full",style:{backgroundColor:e.dot}}),(0,a.jsx)("span",{children:e.label}),(0,a.jsx)("span",{className:`text-[10px] tabular-nums ${z===e.key?"text-cyan-400":"text-gray-600"}`,children:c[e.key]})]},e.key))}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 gap-3 sm:gap-4",children:h.map(e=>(0,a.jsx)(F,{session:e,hasSse:Z(e),sseCount:q(e)||0,onChat:$.openTab},e.alias))}),0===h.length&&(0,a.jsxs)("div",{className:"mt-4 text-center text-xs text-gray-600",children:['No agents match "',z,'" — ',(0,a.jsx)("button",{onClick:()=>A("all"),className:"underline hover:text-gray-400",children:"Show all"})]})]})):(0,a.jsx)(I.NodesEmptyState,{hint:f,taskHistoryCount:Object.values(es).reduce((e,t)=>e+t,0)}),(0,a.jsx)(P,{messages:C}),(0,a.jsx)("div",{className:"mt-8 text-center text-xs text-gray-600 flex items-center justify-center gap-2 flex-wrap",children:G&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:`w-1.5 h-1.5 rounded-full ${X?"bg-green-400":"bg-gray-600"}`}),X?"SSE live":"SWR polling"]})}),_&&(0,a.jsx)(K,{sessions:m,onClose:()=>M(!1)}),$.tabs.length>0&&(0,a.jsx)(Y,{tabs:$.tabs,activeTab:$.activeTab,onOpenTab:$.openTab,onCloseTab:$.closeTab,onSetActive:$.setActiveTab,onClose:$.closeAll})]})}],18722)}]);
package/.next/trace CHANGED
@@ -1,2 +1,2 @@
1
- [{"name":"generate-buildid","duration":274,"timestamp":167707887268,"id":4,"parentId":1,"tags":{},"startTime":1778975680134,"traceId":"38adc1852b9097f5"},{"name":"load-custom-routes","duration":504,"timestamp":167707887683,"id":5,"parentId":1,"tags":{},"startTime":1778975680134,"traceId":"38adc1852b9097f5"},{"name":"create-dist-dir","duration":705,"timestamp":167707888239,"id":6,"parentId":1,"tags":{},"startTime":1778975680135,"traceId":"38adc1852b9097f5"},{"name":"clean","duration":33091,"timestamp":167707889653,"id":7,"parentId":1,"tags":{},"startTime":1778975680136,"traceId":"38adc1852b9097f5"},{"name":"discover-routes","duration":28419,"timestamp":167708017827,"id":8,"parentId":1,"tags":{},"startTime":1778975680264,"traceId":"38adc1852b9097f5"},{"name":"create-root-mapping","duration":189,"timestamp":167708046331,"id":9,"parentId":1,"tags":{},"startTime":1778975680293,"traceId":"38adc1852b9097f5"},{"name":"generate-route-types","duration":25040,"timestamp":167708050288,"id":10,"parentId":1,"tags":{},"startTime":1778975680297,"traceId":"38adc1852b9097f5"},{"name":"public-dir-conflict-check","duration":140,"timestamp":167708075531,"id":11,"parentId":1,"tags":{},"startTime":1778975680322,"traceId":"38adc1852b9097f5"},{"name":"generate-routes-manifest","duration":6065,"timestamp":167708075885,"id":12,"parentId":1,"tags":{},"startTime":1778975680322,"traceId":"38adc1852b9097f5"},{"name":"run-turbopack","duration":8093734,"timestamp":167708096959,"id":14,"parentId":1,"tags":{},"startTime":1778975680343,"traceId":"38adc1852b9097f5"},{"name":"turbopack-build-events","duration":113,"timestamp":167708448607,"id":15,"parentId":1,"tags":{},"startTime":1778975680695,"traceId":"38adc1852b9097f5"},{"name":"run-typescript","duration":10441745,"timestamp":167716203173,"id":16,"parentId":1,"tags":{},"startTime":1778975688449,"traceId":"38adc1852b9097f5"},{"name":"generate-required-server-files","duration":3125,"timestamp":167726646299,"id":18,"parentId":1,"tags":{},"startTime":1778975698893,"traceId":"38adc1852b9097f5"},{"name":"check-static-error-page","duration":12868,"timestamp":167726831577,"id":20,"parentId":19,"tags":{},"startTime":1778975699078,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":595775,"timestamp":167726849107,"id":65,"parentId":22,"tags":{},"startTime":1778975699095,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":611837,"timestamp":167726833916,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778975699080,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":612634,"timestamp":167726849540,"id":69,"parentId":28,"tags":{},"startTime":1778975699096,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":625390,"timestamp":167726836879,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778975699083,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":621280,"timestamp":167726850063,"id":72,"parentId":32,"tags":{},"startTime":1778975699096,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":633997,"timestamp":167726837430,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778975699084,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":645125,"timestamp":167726850236,"id":73,"parentId":33,"tags":{},"startTime":1778975699097,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":657918,"timestamp":167726837530,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778975699084,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":662055,"timestamp":167726850314,"id":74,"parentId":34,"tags":{},"startTime":1778975699097,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":674857,"timestamp":167726837605,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778975699084,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":663241,"timestamp":167726849439,"id":68,"parentId":27,"tags":{},"startTime":1778975699096,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":676091,"timestamp":167726836792,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778975699083,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":666043,"timestamp":167726849340,"id":67,"parentId":26,"tags":{},"startTime":1778975699096,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":678745,"timestamp":167726836693,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778975699083,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":670493,"timestamp":167726850397,"id":77,"parentId":37,"tags":{},"startTime":1778975699097,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":682761,"timestamp":167726838183,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778975699084,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":676209,"timestamp":167726850344,"id":75,"parentId":35,"tags":{},"startTime":1778975699097,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":688926,"timestamp":167726837687,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778975699084,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":681059,"timestamp":167726850426,"id":79,"parentId":39,"tags":{},"startTime":1778975699097,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":693205,"timestamp":167726838338,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778975699085,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":685719,"timestamp":167726850440,"id":80,"parentId":40,"tags":{},"startTime":1778975699097,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":697812,"timestamp":167726838399,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778975699085,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":704333,"timestamp":167726848660,"id":64,"parentId":21,"tags":{},"startTime":1778975699095,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":720296,"timestamp":167726832796,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778975699079,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":703008,"timestamp":167726850412,"id":78,"parentId":38,"tags":{},"startTime":1778975699097,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":715190,"timestamp":167726838275,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778975699085,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":709505,"timestamp":167726850451,"id":81,"parentId":42,"tags":{},"startTime":1778975699097,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":721395,"timestamp":167726838639,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778975699085,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":710437,"timestamp":167726850481,"id":83,"parentId":45,"tags":{},"startTime":1778975699097,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":720546,"timestamp":167726840417,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778975699087,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":718233,"timestamp":167726850495,"id":84,"parentId":46,"tags":{},"startTime":1778975699097,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":728221,"timestamp":167726840572,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778975699087,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":718598,"timestamp":167726850366,"id":76,"parentId":36,"tags":{},"startTime":1778975699097,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":730972,"timestamp":167726838054,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778975699084,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":721727,"timestamp":167726850520,"id":86,"parentId":48,"tags":{},"startTime":1778975699097,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":731558,"timestamp":167726840749,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778975699087,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":726649,"timestamp":167726850547,"id":88,"parentId":50,"tags":{},"startTime":1778975699097,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":736357,"timestamp":167726840890,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778975699087,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":728678,"timestamp":167726850506,"id":85,"parentId":47,"tags":{},"startTime":1778975699097,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":738548,"timestamp":167726840678,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778975699087,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":730882,"timestamp":167726855385,"id":90,"parentId":24,"tags":{},"startTime":1778975699102,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":751960,"timestamp":167726834355,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778975699081,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":734330,"timestamp":167726856519,"id":91,"parentId":31,"tags":{},"startTime":1778975699103,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":753695,"timestamp":167726837198,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778975699083,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":749135,"timestamp":167726849823,"id":70,"parentId":29,"tags":{},"startTime":1778975699096,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":762066,"timestamp":167726836958,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778975699083,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":751770,"timestamp":167726849985,"id":71,"parentId":30,"tags":{},"startTime":1778975699096,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":764705,"timestamp":167726837104,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778975699083,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":744592,"timestamp":167726857344,"id":92,"parentId":41,"tags":{},"startTime":1778975699104,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":763511,"timestamp":167726838459,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778975699085,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":753886,"timestamp":167726850537,"id":87,"parentId":49,"tags":{},"startTime":1778975699097,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":763632,"timestamp":167726840838,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778975699087,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":764035,"timestamp":167726850562,"id":89,"parentId":51,"tags":{},"startTime":1778975699097,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":773707,"timestamp":167726840944,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778975699087,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":788753,"timestamp":167726858655,"id":93,"parentId":43,"tags":{},"startTime":1778975699105,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":808747,"timestamp":167726838772,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778975699085,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":815272,"timestamp":167726850466,"id":82,"parentId":44,"tags":{},"startTime":1778975699097,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":826769,"timestamp":167726839067,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778975699085,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":805687,"timestamp":167726860899,"id":96,"parentId":53,"tags":{},"startTime":1778975699107,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":825246,"timestamp":167726841405,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778975699088,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":811822,"timestamp":167726862287,"id":99,"parentId":56,"tags":{},"startTime":1778975699109,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":831929,"timestamp":167726842234,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778975699089,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":810864,"timestamp":167726864209,"id":100,"parentId":58,"tags":{},"startTime":1778975699110,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":832037,"timestamp":167726843085,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778975699089,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":817028,"timestamp":167726864343,"id":101,"parentId":59,"tags":{},"startTime":1778975699111,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":838138,"timestamp":167726843301,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778975699090,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":819569,"timestamp":167726864365,"id":102,"parentId":61,"tags":{},"startTime":1778975699111,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":840077,"timestamp":167726843904,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778975699090,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":823271,"timestamp":167726860910,"id":97,"parentId":54,"tags":{},"startTime":1778975699107,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":842551,"timestamp":167726841672,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778975699088,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":837250,"timestamp":167726849237,"id":66,"parentId":25,"tags":{},"startTime":1778975699096,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":849985,"timestamp":167726836549,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778975699083,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":822902,"timestamp":167726874114,"id":105,"parentId":60,"tags":{},"startTime":1778975699120,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":853576,"timestamp":167726843485,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778975699090,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":832773,"timestamp":167726864378,"id":103,"parentId":62,"tags":{},"startTime":1778975699111,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":853135,"timestamp":167726844044,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778975699090,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":832907,"timestamp":167726864385,"id":104,"parentId":63,"tags":{},"startTime":1778975699111,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":853123,"timestamp":167726844193,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778975699090,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":843439,"timestamp":167726860883,"id":95,"parentId":52,"tags":{},"startTime":1778975699107,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":863112,"timestamp":167726841259,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778975699088,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":848777,"timestamp":167726860851,"id":94,"parentId":23,"tags":{},"startTime":1778975699107,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":875514,"timestamp":167726834156,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778975699080,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":857829,"timestamp":167726860924,"id":98,"parentId":55,"tags":{},"startTime":1778975699108,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":876846,"timestamp":167726841974,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778975699088,"traceId":"38adc1852b9097f5"},{"name":"is-page-static","duration":863219,"timestamp":167726885572,"id":106,"parentId":57,"tags":{},"startTime":1778975699132,"traceId":"38adc1852b9097f5"},{"name":"check-page","duration":906414,"timestamp":167726842446,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778975699089,"traceId":"38adc1852b9097f5"},{"name":"static-check","duration":918172,"timestamp":167726830742,"id":19,"parentId":1,"tags":{},"startTime":1778975699077,"traceId":"38adc1852b9097f5"}]
2
- [{"name":"write-routes-manifest","duration":729,"timestamp":167727761553,"id":108,"parentId":1,"tags":{},"startTime":1778975700008,"traceId":"38adc1852b9097f5"},{"name":"load-dotenv","duration":54,"timestamp":167727774257,"id":111,"parentId":110,"tags":{},"startTime":1778975700021,"traceId":"38adc1852b9097f5"},{"name":"run-export-path-map","duration":832,"timestamp":167727777423,"id":112,"parentId":110,"tags":{},"startTime":1778975700024,"traceId":"38adc1852b9097f5"},{"name":"next-export","duration":627355,"timestamp":167727773051,"id":110,"parentId":1,"tags":{},"startTime":1778975700019,"traceId":"38adc1852b9097f5"},{"name":"move-exported-app-not-found-","duration":661,"timestamp":167728403696,"id":113,"parentId":109,"tags":{},"startTime":1778975700650,"traceId":"38adc1852b9097f5"},{"name":"move-exported-app-global-error-","duration":437,"timestamp":167728404479,"id":114,"parentId":109,"tags":{},"startTime":1778975700651,"traceId":"38adc1852b9097f5"},{"name":"static-generation","duration":640538,"timestamp":167727766458,"id":109,"parentId":1,"tags":{},"startTime":1778975700013,"traceId":"38adc1852b9097f5"},{"name":"write-routes-manifest","duration":572,"timestamp":167728407245,"id":115,"parentId":1,"tags":{},"startTime":1778975700654,"traceId":"38adc1852b9097f5"},{"name":"print-tree-view","duration":5105,"timestamp":167728425617,"id":116,"parentId":1,"tags":{},"startTime":1778975700672,"traceId":"38adc1852b9097f5"},{"name":"write-route-bundle-stats","duration":16018,"timestamp":167728430777,"id":117,"parentId":1,"tags":{},"startTime":1778975700677,"traceId":"38adc1852b9097f5"},{"name":"telemetry-flush","duration":15431,"timestamp":167728446832,"id":118,"parentId":1,"tags":{},"startTime":1778975700693,"traceId":"38adc1852b9097f5"},{"name":"next-build","duration":20632879,"timestamp":167707829427,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778975680076,"traceId":"38adc1852b9097f5"}]
1
+ [{"name":"generate-buildid","duration":417,"timestamp":168397654954,"id":4,"parentId":1,"tags":{},"startTime":1778976369901,"traceId":"9f1e36800796b6ae"},{"name":"load-custom-routes","duration":505,"timestamp":168397655543,"id":5,"parentId":1,"tags":{},"startTime":1778976369902,"traceId":"9f1e36800796b6ae"},{"name":"create-dist-dir","duration":766,"timestamp":168397656094,"id":6,"parentId":1,"tags":{},"startTime":1778976369902,"traceId":"9f1e36800796b6ae"},{"name":"clean","duration":35911,"timestamp":168397657548,"id":7,"parentId":1,"tags":{},"startTime":1778976369904,"traceId":"9f1e36800796b6ae"},{"name":"discover-routes","duration":14659,"timestamp":168397790223,"id":8,"parentId":1,"tags":{},"startTime":1778976370036,"traceId":"9f1e36800796b6ae"},{"name":"create-root-mapping","duration":322,"timestamp":168397804949,"id":9,"parentId":1,"tags":{},"startTime":1778976370051,"traceId":"9f1e36800796b6ae"},{"name":"generate-route-types","duration":41157,"timestamp":168397808831,"id":10,"parentId":1,"tags":{},"startTime":1778976370055,"traceId":"9f1e36800796b6ae"},{"name":"public-dir-conflict-check","duration":150,"timestamp":168397850157,"id":11,"parentId":1,"tags":{},"startTime":1778976370096,"traceId":"9f1e36800796b6ae"},{"name":"generate-routes-manifest","duration":5586,"timestamp":168397850504,"id":12,"parentId":1,"tags":{},"startTime":1778976370097,"traceId":"9f1e36800796b6ae"},{"name":"run-turbopack","duration":7108358,"timestamp":168397862205,"id":14,"parentId":1,"tags":{},"startTime":1778976370108,"traceId":"9f1e36800796b6ae"},{"name":"turbopack-build-events","duration":107,"timestamp":168398199820,"id":15,"parentId":1,"tags":{},"startTime":1778976370446,"traceId":"9f1e36800796b6ae"},{"name":"run-typescript","duration":10594179,"timestamp":168404979648,"id":16,"parentId":1,"tags":{},"startTime":1778976377226,"traceId":"9f1e36800796b6ae"},{"name":"generate-required-server-files","duration":3525,"timestamp":168415575272,"id":18,"parentId":1,"tags":{},"startTime":1778976387822,"traceId":"9f1e36800796b6ae"},{"name":"check-static-error-page","duration":18689,"timestamp":168415850065,"id":20,"parentId":19,"tags":{},"startTime":1778976388096,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":666130,"timestamp":168415873259,"id":65,"parentId":22,"tags":{},"startTime":1778976388120,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":685577,"timestamp":168415853996,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778976388100,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":734132,"timestamp":168415872826,"id":64,"parentId":21,"tags":{},"startTime":1778976388119,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":761489,"timestamp":168415852502,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778976388099,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":757026,"timestamp":168415873651,"id":68,"parentId":27,"tags":{},"startTime":1778976388120,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":773435,"timestamp":168415857356,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778976388104,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":764116,"timestamp":168415875958,"id":73,"parentId":33,"tags":{},"startTime":1778976388122,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":781824,"timestamp":168415858621,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778976388105,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":801578,"timestamp":168415874064,"id":70,"parentId":29,"tags":{},"startTime":1778976388120,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":817851,"timestamp":168415857890,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778976388104,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":801683,"timestamp":168415874303,"id":72,"parentId":32,"tags":{},"startTime":1778976388121,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":817579,"timestamp":168415858480,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778976388105,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":820078,"timestamp":168415873753,"id":69,"parentId":28,"tags":{},"startTime":1778976388120,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":836186,"timestamp":168415857722,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778976388104,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":818123,"timestamp":168415876128,"id":75,"parentId":35,"tags":{},"startTime":1778976388122,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":835403,"timestamp":168415858889,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778976388105,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":824077,"timestamp":168415876201,"id":78,"parentId":38,"tags":{},"startTime":1778976388122,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":840517,"timestamp":168415859817,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778976388106,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":833292,"timestamp":168415876091,"id":74,"parentId":34,"tags":{},"startTime":1778976388122,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":850697,"timestamp":168415858744,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778976388105,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":838330,"timestamp":168415874241,"id":71,"parentId":30,"tags":{},"startTime":1778976388121,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":854553,"timestamp":168415858064,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778976388104,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":836652,"timestamp":168415876148,"id":76,"parentId":36,"tags":{},"startTime":1778976388122,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":853595,"timestamp":168415859447,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778976388106,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":841864,"timestamp":168415876256,"id":82,"parentId":44,"tags":{},"startTime":1778976388123,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":857371,"timestamp":168415860796,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778976388107,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":845096,"timestamp":168415876228,"id":80,"parentId":40,"tags":{},"startTime":1778976388122,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":861357,"timestamp":168415860025,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778976388106,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":846861,"timestamp":168415876265,"id":83,"parentId":45,"tags":{},"startTime":1778976388123,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":862250,"timestamp":168415860926,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778976388107,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":849319,"timestamp":168415876284,"id":84,"parentId":46,"tags":{},"startTime":1778976388123,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":864542,"timestamp":168415861120,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778976388107,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":851621,"timestamp":168415876179,"id":77,"parentId":37,"tags":{},"startTime":1778976388122,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":868205,"timestamp":168415859658,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778976388106,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":853760,"timestamp":168415876308,"id":86,"parentId":48,"tags":{},"startTime":1778976388123,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":866937,"timestamp":168415863178,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778976388109,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":857004,"timestamp":168415876213,"id":79,"parentId":39,"tags":{},"startTime":1778976388122,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":873337,"timestamp":168415859923,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778976388106,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":860874,"timestamp":168415876298,"id":85,"parentId":47,"tags":{},"startTime":1778976388123,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":875969,"timestamp":168415861251,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778976388108,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":863821,"timestamp":168415876335,"id":88,"parentId":50,"tags":{},"startTime":1778976388123,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":876770,"timestamp":168415863442,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778976388110,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":871024,"timestamp":168415876322,"id":87,"parentId":49,"tags":{},"startTime":1778976388123,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":884057,"timestamp":168415863334,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778976388110,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":871446,"timestamp":168415876348,"id":89,"parentId":51,"tags":{},"startTime":1778976388123,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":884307,"timestamp":168415863534,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778976388110,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":867471,"timestamp":168415884735,"id":91,"parentId":31,"tags":{},"startTime":1778976388131,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":894069,"timestamp":168415858179,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778976388104,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":869957,"timestamp":168415882943,"id":90,"parentId":24,"tags":{},"startTime":1778976388129,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":898326,"timestamp":168415854622,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778976388101,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":866996,"timestamp":168415887357,"id":93,"parentId":43,"tags":{},"startTime":1778976388134,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":893890,"timestamp":168415860510,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778976388107,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":884301,"timestamp":168415873416,"id":66,"parentId":25,"tags":{},"startTime":1778976388120,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":900710,"timestamp":168415857060,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778976388103,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":850136,"timestamp":168415912321,"id":95,"parentId":52,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":898498,"timestamp":168415863999,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778976388111,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":881699,"timestamp":168415885728,"id":92,"parentId":41,"tags":{},"startTime":1778976388132,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":907355,"timestamp":168415860128,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778976388106,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":857538,"timestamp":168415912363,"id":98,"parentId":55,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":904956,"timestamp":168415864983,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778976388111,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":867738,"timestamp":168415912383,"id":100,"parentId":58,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":914076,"timestamp":168415866099,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778976388112,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":909475,"timestamp":168415876242,"id":81,"parentId":42,"tags":{},"startTime":1778976388123,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":925411,"timestamp":168415860380,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778976388107,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":878243,"timestamp":168415912501,"id":101,"parentId":59,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":924539,"timestamp":168415866287,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778976388113,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":895542,"timestamp":168415912533,"id":103,"parentId":62,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":939796,"timestamp":168415868345,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778976388115,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":904426,"timestamp":168415912548,"id":104,"parentId":63,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":948561,"timestamp":168415868497,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778976388115,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":916367,"timestamp":168415912337,"id":96,"parentId":53,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":964212,"timestamp":168415864583,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778976388111,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":916345,"timestamp":168415912565,"id":105,"parentId":60,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":962503,"timestamp":168415866442,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778976388113,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":899469,"timestamp":168415937252,"id":106,"parentId":57,"tags":{},"startTime":1778976388184,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":971302,"timestamp":168415865490,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778976388112,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":965658,"timestamp":168415873533,"id":67,"parentId":26,"tags":{},"startTime":1778976388120,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":982016,"timestamp":168415857235,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778976388104,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":927384,"timestamp":168415912371,"id":99,"parentId":56,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":974590,"timestamp":168415865229,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778976388112,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":941968,"timestamp":168415912518,"id":102,"parentId":61,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":986380,"timestamp":168415868172,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778976388114,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":946448,"timestamp":168415912350,"id":97,"parentId":54,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":994103,"timestamp":168415864754,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778976388111,"traceId":"9f1e36800796b6ae"},{"name":"is-page-static","duration":956774,"timestamp":168415912273,"id":94,"parentId":23,"tags":{},"startTime":1778976388159,"traceId":"9f1e36800796b6ae"},{"name":"check-page","duration":1014736,"timestamp":168415854372,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778976388101,"traceId":"9f1e36800796b6ae"},{"name":"static-check","duration":1020045,"timestamp":168415849112,"id":19,"parentId":1,"tags":{},"startTime":1778976388095,"traceId":"9f1e36800796b6ae"}]
2
+ [{"name":"write-routes-manifest","duration":516,"timestamp":168416880306,"id":108,"parentId":1,"tags":{},"startTime":1778976389127,"traceId":"9f1e36800796b6ae"},{"name":"load-dotenv","duration":72,"timestamp":168416893772,"id":111,"parentId":110,"tags":{},"startTime":1778976389140,"traceId":"9f1e36800796b6ae"},{"name":"run-export-path-map","duration":567,"timestamp":168416896956,"id":112,"parentId":110,"tags":{},"startTime":1778976389143,"traceId":"9f1e36800796b6ae"},{"name":"next-export","duration":695300,"timestamp":168416892214,"id":110,"parentId":1,"tags":{},"startTime":1778976389138,"traceId":"9f1e36800796b6ae"},{"name":"move-exported-app-not-found-","duration":543,"timestamp":168417590638,"id":113,"parentId":109,"tags":{},"startTime":1778976389837,"traceId":"9f1e36800796b6ae"},{"name":"move-exported-app-global-error-","duration":389,"timestamp":168417591266,"id":114,"parentId":109,"tags":{},"startTime":1778976389838,"traceId":"9f1e36800796b6ae"},{"name":"static-generation","duration":708059,"timestamp":168416885458,"id":109,"parentId":1,"tags":{},"startTime":1778976389132,"traceId":"9f1e36800796b6ae"},{"name":"write-routes-manifest","duration":519,"timestamp":168417593813,"id":115,"parentId":1,"tags":{},"startTime":1778976389840,"traceId":"9f1e36800796b6ae"},{"name":"print-tree-view","duration":8507,"timestamp":168417617588,"id":116,"parentId":1,"tags":{},"startTime":1778976389864,"traceId":"9f1e36800796b6ae"},{"name":"write-route-bundle-stats","duration":14672,"timestamp":168417626143,"id":117,"parentId":1,"tags":{},"startTime":1778976389872,"traceId":"9f1e36800796b6ae"},{"name":"telemetry-flush","duration":16540,"timestamp":168417640859,"id":118,"parentId":1,"tags":{},"startTime":1778976389887,"traceId":"9f1e36800796b6ae"},{"name":"next-build","duration":20064965,"timestamp":168397592468,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778976369839,"traceId":"9f1e36800796b6ae"}]
package/.next/trace-build CHANGED
@@ -1 +1 @@
1
- [{"name":"run-turbopack","duration":8093734,"timestamp":167708096959,"id":14,"parentId":1,"tags":{},"startTime":1778975680343,"traceId":"38adc1852b9097f5"},{"name":"turbopack-build-events","duration":113,"timestamp":167708448607,"id":15,"parentId":1,"tags":{},"startTime":1778975680695,"traceId":"38adc1852b9097f5"},{"name":"run-typescript","duration":10441745,"timestamp":167716203173,"id":16,"parentId":1,"tags":{},"startTime":1778975688449,"traceId":"38adc1852b9097f5"},{"name":"static-check","duration":918172,"timestamp":167726830742,"id":19,"parentId":1,"tags":{},"startTime":1778975699077,"traceId":"38adc1852b9097f5"},{"name":"static-generation","duration":640538,"timestamp":167727766458,"id":109,"parentId":1,"tags":{},"startTime":1778975700013,"traceId":"38adc1852b9097f5"},{"name":"telemetry-flush","duration":15431,"timestamp":167728446832,"id":118,"parentId":1,"tags":{},"startTime":1778975700693,"traceId":"38adc1852b9097f5"},{"name":"next-build","duration":20632879,"timestamp":167707829427,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778975680076,"traceId":"38adc1852b9097f5"}]
1
+ [{"name":"run-turbopack","duration":7108358,"timestamp":168397862205,"id":14,"parentId":1,"tags":{},"startTime":1778976370108,"traceId":"9f1e36800796b6ae"},{"name":"turbopack-build-events","duration":107,"timestamp":168398199820,"id":15,"parentId":1,"tags":{},"startTime":1778976370446,"traceId":"9f1e36800796b6ae"},{"name":"run-typescript","duration":10594179,"timestamp":168404979648,"id":16,"parentId":1,"tags":{},"startTime":1778976377226,"traceId":"9f1e36800796b6ae"},{"name":"static-check","duration":1020045,"timestamp":168415849112,"id":19,"parentId":1,"tags":{},"startTime":1778976388095,"traceId":"9f1e36800796b6ae"},{"name":"static-generation","duration":708059,"timestamp":168416885458,"id":109,"parentId":1,"tags":{},"startTime":1778976389132,"traceId":"9f1e36800796b6ae"},{"name":"telemetry-flush","duration":16540,"timestamp":168417640859,"id":118,"parentId":1,"tags":{},"startTime":1778976389887,"traceId":"9f1e36800796b6ae"},{"name":"next-build","duration":20064965,"timestamp":168397592468,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778976369839,"traceId":"9f1e36800796b6ae"}]