@sleep2agi/agent-network-dashboard 0.5.3-preview.9 → 0.5.3

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 (177) 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 +32 -32
  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/page_client-reference-manifest.js +1 -1
  13. package/.next/server/app/_not-found.html +2 -2
  14. package/.next/server/app/_not-found.rsc +12 -12
  15. package/.next/server/app/_not-found.segments/_full.segment.rsc +12 -12
  16. package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  17. package/.next/server/app/_not-found.segments/_index.segment.rsc +7 -7
  18. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  19. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +3 -3
  20. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  21. package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  22. package/.next/server/app/admin.html +2 -2
  23. package/.next/server/app/admin.rsc +14 -14
  24. package/.next/server/app/admin.segments/_full.segment.rsc +14 -14
  25. package/.next/server/app/admin.segments/_head.segment.rsc +4 -4
  26. package/.next/server/app/admin.segments/_index.segment.rsc +7 -7
  27. package/.next/server/app/admin.segments/_tree.segment.rsc +2 -2
  28. package/.next/server/app/admin.segments/admin/__PAGE__.segment.rsc +4 -4
  29. package/.next/server/app/admin.segments/admin.segment.rsc +3 -3
  30. package/.next/server/app/index.html +2 -2
  31. package/.next/server/app/index.rsc +14 -14
  32. package/.next/server/app/index.segments/__PAGE__.segment.rsc +4 -4
  33. package/.next/server/app/index.segments/_full.segment.rsc +14 -14
  34. package/.next/server/app/index.segments/_head.segment.rsc +4 -4
  35. package/.next/server/app/index.segments/_index.segment.rsc +7 -7
  36. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  37. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  38. package/.next/server/app/login.html +2 -2
  39. package/.next/server/app/login.rsc +14 -14
  40. package/.next/server/app/login.segments/_full.segment.rsc +14 -14
  41. package/.next/server/app/login.segments/_head.segment.rsc +4 -4
  42. package/.next/server/app/login.segments/_index.segment.rsc +7 -7
  43. package/.next/server/app/login.segments/_tree.segment.rsc +2 -2
  44. package/.next/server/app/login.segments/login/__PAGE__.segment.rsc +4 -4
  45. package/.next/server/app/login.segments/login.segment.rsc +3 -3
  46. package/.next/server/app/logs/page_client-reference-manifest.js +1 -1
  47. package/.next/server/app/logs.html +2 -2
  48. package/.next/server/app/logs.rsc +14 -14
  49. package/.next/server/app/logs.segments/_full.segment.rsc +14 -14
  50. package/.next/server/app/logs.segments/_head.segment.rsc +4 -4
  51. package/.next/server/app/logs.segments/_index.segment.rsc +7 -7
  52. package/.next/server/app/logs.segments/_tree.segment.rsc +2 -2
  53. package/.next/server/app/logs.segments/logs/__PAGE__.segment.rsc +4 -4
  54. package/.next/server/app/logs.segments/logs.segment.rsc +3 -3
  55. package/.next/server/app/messages/page_client-reference-manifest.js +1 -1
  56. package/.next/server/app/messages.html +2 -2
  57. package/.next/server/app/messages.rsc +14 -14
  58. package/.next/server/app/messages.segments/_full.segment.rsc +14 -14
  59. package/.next/server/app/messages.segments/_head.segment.rsc +4 -4
  60. package/.next/server/app/messages.segments/_index.segment.rsc +7 -7
  61. package/.next/server/app/messages.segments/_tree.segment.rsc +2 -2
  62. package/.next/server/app/messages.segments/messages/__PAGE__.segment.rsc +4 -4
  63. package/.next/server/app/messages.segments/messages.segment.rsc +3 -3
  64. package/.next/server/app/node/page_client-reference-manifest.js +1 -1
  65. package/.next/server/app/node.html +2 -2
  66. package/.next/server/app/node.rsc +14 -14
  67. package/.next/server/app/node.segments/_full.segment.rsc +14 -14
  68. package/.next/server/app/node.segments/_head.segment.rsc +4 -4
  69. package/.next/server/app/node.segments/_index.segment.rsc +7 -7
  70. package/.next/server/app/node.segments/_tree.segment.rsc +2 -2
  71. package/.next/server/app/node.segments/node/__PAGE__.segment.rsc +4 -4
  72. package/.next/server/app/node.segments/node.segment.rsc +3 -3
  73. package/.next/server/app/nodes/page_client-reference-manifest.js +1 -1
  74. package/.next/server/app/nodes.html +2 -2
  75. package/.next/server/app/nodes.rsc +14 -14
  76. package/.next/server/app/nodes.segments/_full.segment.rsc +14 -14
  77. package/.next/server/app/nodes.segments/_head.segment.rsc +4 -4
  78. package/.next/server/app/nodes.segments/_index.segment.rsc +7 -7
  79. package/.next/server/app/nodes.segments/_tree.segment.rsc +2 -2
  80. package/.next/server/app/nodes.segments/nodes/__PAGE__.segment.rsc +4 -4
  81. package/.next/server/app/nodes.segments/nodes.segment.rsc +3 -3
  82. package/.next/server/app/page_client-reference-manifest.js +1 -1
  83. package/.next/server/app/server-logs/page_client-reference-manifest.js +1 -1
  84. package/.next/server/app/server-logs.html +2 -2
  85. package/.next/server/app/server-logs.rsc +14 -14
  86. package/.next/server/app/server-logs.segments/_full.segment.rsc +14 -14
  87. package/.next/server/app/server-logs.segments/_head.segment.rsc +4 -4
  88. package/.next/server/app/server-logs.segments/_index.segment.rsc +7 -7
  89. package/.next/server/app/server-logs.segments/_tree.segment.rsc +2 -2
  90. package/.next/server/app/server-logs.segments/server-logs/__PAGE__.segment.rsc +4 -4
  91. package/.next/server/app/server-logs.segments/server-logs.segment.rsc +3 -3
  92. package/.next/server/app/settings/networks/page_client-reference-manifest.js +1 -1
  93. package/.next/server/app/settings/networks.html +2 -2
  94. package/.next/server/app/settings/networks.rsc +14 -14
  95. package/.next/server/app/settings/networks.segments/_full.segment.rsc +14 -14
  96. package/.next/server/app/settings/networks.segments/_head.segment.rsc +4 -4
  97. package/.next/server/app/settings/networks.segments/_index.segment.rsc +7 -7
  98. package/.next/server/app/settings/networks.segments/_tree.segment.rsc +2 -2
  99. package/.next/server/app/settings/networks.segments/settings/networks/__PAGE__.segment.rsc +4 -4
  100. package/.next/server/app/settings/networks.segments/settings/networks.segment.rsc +3 -3
  101. package/.next/server/app/settings/networks.segments/settings.segment.rsc +3 -3
  102. package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
  103. package/.next/server/app/settings/tokens/page_client-reference-manifest.js +1 -1
  104. package/.next/server/app/settings/tokens.html +2 -2
  105. package/.next/server/app/settings/tokens.rsc +14 -14
  106. package/.next/server/app/settings/tokens.segments/_full.segment.rsc +14 -14
  107. package/.next/server/app/settings/tokens.segments/_head.segment.rsc +4 -4
  108. package/.next/server/app/settings/tokens.segments/_index.segment.rsc +7 -7
  109. package/.next/server/app/settings/tokens.segments/_tree.segment.rsc +2 -2
  110. package/.next/server/app/settings/tokens.segments/settings/tokens/__PAGE__.segment.rsc +4 -4
  111. package/.next/server/app/settings/tokens.segments/settings/tokens.segment.rsc +3 -3
  112. package/.next/server/app/settings/tokens.segments/settings.segment.rsc +3 -3
  113. package/.next/server/app/settings.html +2 -2
  114. package/.next/server/app/settings.rsc +14 -14
  115. package/.next/server/app/settings.segments/_full.segment.rsc +14 -14
  116. package/.next/server/app/settings.segments/_head.segment.rsc +4 -4
  117. package/.next/server/app/settings.segments/_index.segment.rsc +7 -7
  118. package/.next/server/app/settings.segments/_tree.segment.rsc +2 -2
  119. package/.next/server/app/settings.segments/settings/__PAGE__.segment.rsc +4 -4
  120. package/.next/server/app/settings.segments/settings.segment.rsc +3 -3
  121. package/.next/server/app/tasks/[id]/page_client-reference-manifest.js +1 -1
  122. package/.next/server/app/tasks/page_client-reference-manifest.js +1 -1
  123. package/.next/server/app/tasks.html +2 -2
  124. package/.next/server/app/tasks.rsc +14 -14
  125. package/.next/server/app/tasks.segments/_full.segment.rsc +14 -14
  126. package/.next/server/app/tasks.segments/_head.segment.rsc +4 -4
  127. package/.next/server/app/tasks.segments/_index.segment.rsc +7 -7
  128. package/.next/server/app/tasks.segments/_tree.segment.rsc +2 -2
  129. package/.next/server/app/tasks.segments/tasks/__PAGE__.segment.rsc +4 -4
  130. package/.next/server/app/tasks.segments/tasks.segment.rsc +3 -3
  131. package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js +1 -1
  132. package/.next/server/chunks/ssr/[root-of-the-server]__0sv~g.o._.js.map +1 -1
  133. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js +3 -3
  134. package/.next/server/chunks/ssr/agent-network-dashboard_09kk21a._.js.map +1 -1
  135. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js +1 -1
  136. package/.next/server/chunks/ssr/agent-network-dashboard_app_01jhlxz._.js.map +1 -1
  137. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js +1 -1
  138. package/.next/server/chunks/ssr/agent-network-dashboard_app_09d29my._.js.map +1 -1
  139. package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0mvyi-4._.js +1 -1
  140. package/.next/server/chunks/ssr/agent-network-dashboard_app_components_0mvyi-4._.js.map +1 -1
  141. package/.next/server/middleware-build-manifest.js +3 -3
  142. package/.next/server/pages/404.html +2 -2
  143. package/.next/server/pages/500.html +1 -1
  144. package/.next/static/chunks/0fuba20p57-zo.js +1 -0
  145. package/.next/static/chunks/{0hndl9yzpqajt.css → 0m.1mvl~t.avc.css} +1 -1
  146. package/.next/static/chunks/{00d~vl~k~7f75.js → 0ph1in3421~o-.js} +1 -1
  147. package/.next/static/chunks/{03a4--7ncekmk.js → 0v4-5tng.uh.7.js} +2 -2
  148. package/.next/static/chunks/10cj-86disers.js +1 -0
  149. package/.next/static/chunks/158h2g7f-nxbt.js +4 -0
  150. package/.next/trace +2 -2
  151. package/.next/trace-build +1 -1
  152. package/app/components/ServersDrawer.tsx +16 -3
  153. package/app/components/TopoGraph.tsx +442 -21
  154. package/app/globals.css +23 -0
  155. package/package.json +4 -4
  156. package/scripts/p157-servers-copy-test.mjs +95 -0
  157. package/scripts/topo-alias-glow-test.mjs +121 -0
  158. package/scripts/topo-avatar-brightness-test.mjs +116 -0
  159. package/scripts/topo-fleet-density-tier-test.mjs +84 -0
  160. package/scripts/topo-freshness-chip-fade-test.mjs +105 -0
  161. package/scripts/topo-hub-highlight-amplify-test.mjs +139 -0
  162. package/scripts/topo-hub-highlight-fill-transition-test.mjs +84 -0
  163. package/scripts/topo-hub-highlight-recede-test.mjs +144 -0
  164. package/scripts/topo-hub-highlight-theme-fill-test.mjs +83 -0
  165. package/scripts/topo-hub-idle-breath-test.mjs +109 -0
  166. package/scripts/topo-hub-recede-test.mjs +124 -0
  167. package/scripts/topo-orphan-box-dash-test.mjs +89 -0
  168. package/scripts/topo-orphan-fill-opacity-test.mjs +91 -0
  169. package/scripts/topo-orphan-label-italic-test.mjs +90 -0
  170. package/scripts/topo-pinned-aspect-test.mjs +89 -0
  171. package/scripts/topo-recent-hot-pulse-test.mjs +102 -0
  172. package/.next/static/chunks/0jn4lbsj97vfl.js +0 -1
  173. package/.next/static/chunks/0rz3-6.xs78~d.js +0 -1
  174. package/.next/static/chunks/0~~xbw42y4m3v.js +0 -4
  175. /package/.next/static/{nbpD7Lhttq59fvvIw9gTX → tQ1EtcEiS7ikgAoAyZWm7}/_buildManifest.js +0 -0
  176. /package/.next/static/{nbpD7Lhttq59fvvIw9gTX → tQ1EtcEiS7ikgAoAyZWm7}/_clientMiddlewareManifest.js +0 -0
  177. /package/.next/static/{nbpD7Lhttq59fvvIw9gTX → tQ1EtcEiS7ikgAoAyZWm7}/_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 o=e.i(20888);e.r(136);var n=e.r(23910),r=n&&"object"==typeof n&&"default"in n?n:{default:n},s=void 0!==o.default&&o.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,o=void 0===a?"stylesheet":a,n=t.optimizeForSpeed,r=void 0===n?s:n;d(i(o),"`name` must be a string"),this._name=o,this._deletedRulePlaceholder="#"+o+"-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 o=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,o))}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(o){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 o=this._tags[e];d(o,"old rule at index `"+e+"` not found"),o.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 o=document.createElement("style");this._nonce&&o.setAttribute("nonce",this._nonce),o.type="text/css",o.setAttribute("data-"+e,""),t&&o.appendChild(document.createTextNode(t));var n=document.head||document.getElementsByTagName("head")[0];return a?n.insertBefore(o,a):n.appendChild(o),o},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var a=0;a<t.length;a++){var o=t[a];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(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),o=e+a;return u[o]||(u[o]="jsx-"+c(e+"-"+a)),u[o]}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,o=void 0===a?null:a,n=t.optimizeForSpeed,r=void 0!==n&&n;this._sheet=o||new l({name:"styled-jsx",optimizeForSpeed:r}),this._sheet.inject(),o&&"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),o=a.styleId,n=a.rules;if(o in this._instancesCounts){this._instancesCounts[o]+=1;return}var r=n.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[o]=r,this._instancesCounts[o]=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 o=this._fromServer&&this._fromServer[a];o?(o.parentNode.removeChild(o),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],o=e[1];return r.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:a.nonce?a.nonce:void 0,dangerouslySetInnerHTML:{__html:o}})})},t.getIdAndRules=function(e){var t=e.children,a=e.dynamic,o=e.id;if(a){var n=h(o,a);return{styleId:n,rules:Array.isArray(t)?t.map(function(e){return p(n,e)}):[p(n,t)]}}return{styleId:h(o),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=n.createContext(null);function g(){return new m}function x(){return n.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,o=n.useContext(f),s=n.useState(function(){return o||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),o=e.i(23910),n=e.i(56839),r=e.i(3479);function s({online:e,working:t,total:o,version:n,uptime:r}){let l=o>0?Math.round(e/o*100):0,d=0===o;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 ",n," · ",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:o-e,label:"Offline",sub:o-e==0?"All systems go":`${o-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:o,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:o,color:n,accent:r,border:s}){let l=n.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 ${n} 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:o})]})]})}function l(){let[e,t]=(0,o.useState)(""),[n,r]=(0,o.useState)(!1),[s,i]=(0,o.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})}),o=await a.json();o.ok?(i(`Broadcast sent to ${o.recipients} node(s)`),t("")):i(`Failed: ${o.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:n||!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:n?(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[n,r]=(0,o.useState)({x:0,y:0}),[s,i]=(0,o.useState)({w:380,h:520}),l=(0,o.useRef)({active:!1,startX:0,startY:0,baseX:0,baseY:0}),d=(0,o.useRef)({active:!1,startX:0,startY:0,baseW:0,baseH:0}),{sessions:c}=(0,p.useSessions)(),g=(0,o.useMemo)(()=>c.find(t=>t.alias===e),[c,e]),x=g&&"offline"!==g.status?null:(0,m.relativeAgo)(g?.last_seen_at),y=(0,o.useCallback)((e,t,a,o)=>({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-o-16))}),[]);(0,o.useEffect)(()=>{let e=()=>{let e=window.innerWidth,t=window.innerHeight,a=Math.min(380,e-32),o=Math.min(520,t-96);i({w:a,h:o});let n=e<640;r(y(n?16:e-a-24,n?t-o-16:96,a,o))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[y]),(0,o.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:n.x,top:n.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:n.x,baseY:n.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-n.x-16),o=Math.max(320,window.innerHeight-n.y-16);i({w:Math.min(a,Math.max(300,t.baseW+(e.clientX-t.startX))),h:Math.min(o,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}var k=e.i(70286);let w=async e=>{let t=await fetch(e);return t.ok?t.json():null};function j(e,t,a,o=0){let n=t<=2?Math.PI:1.78*Math.PI,r=-Math.PI/2-n/2,s=t<=1?-Math.PI/2:r+n*e/(t-1)+o;return{x:500+a*Math.cos(s),y:330+a*Math.sin(s)}}function N(e,t,a=0){let o=(e.x+t.x)/2,n=(e.y+t.y)/2,r=t.x-e.x,s=t.y-e.y,i=Math.hypot(r,s)||1,l={x:o+-s/i*a,y:n+r/i*a};return`M${e.x},${e.y} Q${l.x},${l.y} ${t.x},${t.y}`}function S(e,t){return e.length>t?`${e.slice(0,t-1)}...`:e}function $({sessions:e}){let t=(0,o.useRef)(Date.now()),[n,r]=(0,o.useState)(()=>Date.now());(0,o.useEffect)(()=>{t.current=Date.now()},[e]),(0,o.useEffect)(()=>{let e=setInterval(()=>r(Date.now()),1e3);return()=>clearInterval(e)},[]);let s=Math.max(0,Math.floor((n-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"} anet-fade-in`,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","data-freshness-chip-mount-fade":"true",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 M={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"},C={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 E(e,t){let a=0;for(;a<e.length&&a<t.length&&e[a]===t[a];)a++;return e.slice(0,a)}function z(e){let t=e.length,a=e.map((e,t)=>t),o=e=>{for(;a[e]!==e;)a[e]=a[a[e]],e=a[e];return e},n=(e,t)=>{let n=o(e),r=o(t);n!==r&&(a[n]=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++)n(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++)E(e[s[t]].alias,e[s[t+1]].alias).length>=2&&n(s[t],s[t+1]);let i={};for(let e=0;e<t;e++)(i[o(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 o=new Set(t.map(t=>e[t].project_dir?.trim()).filter(Boolean));if(1===o.size){let e=[...o][0];a=e.split("/").filter(Boolean).pop()||e}else(a=t.map(t=>e[t].alias).reduce((e,t)=>E(e,t))).length<2&&(a=e[t[0]].alias)}for(let o of t)l[e[o].alias]=a}return l}function T(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 o=`${e.from_alias}->${e.to_alias}`,n=a.get(o),r=e.created_at||"",s=n?r>n.last_at?r:n.last_at:r;a.set(o,{key:o,from:e.from_alias,to:e.to_alias,count:(n?.count||0)+1,content:n?.content||e.content,last_at:s})}),[...a.values()].slice(0,18)}function A({sessions:e,sseSessions:t,renameSignal:n}){let r,s,i,l,h,p,g,x,b,E,L,F,D,P,W,I,B,R,O,H,Y,X,K,V,U,G,J,q,Z,Q,ee,et,ea,eo,en,er,es,ei,el,ed,ec,eu,eh,ep,em,ef,eg,ex,ey,eb,ev,ek,ew,ej,eN,eS,e$,e_,eM,eC,eE,ez,eT,eA,eL="light"===function(){let[e,t]=(0,o.useState)("dark");return(0,o.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}(),eF=function(){let[e,t]=(0,o.useState)(!1);return(0,o.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}(),eD=eL?C:M,eP="intern"===function(){let[e,t]=(0,o.useState)(null);return(0,o.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}(),eW=function(){let{data:e}=(0,d.default)("/api/hub/servers",w,{refreshInterval:15e3,dedupingInterval:5e3});return(0,o.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])}(),eI=(0,c.useRouter)(),[eB,eR]=(0,o.useState)([]),[eO,eH]=(0,o.useState)("ring");(0,o.useEffect)(()=>{try{let t=localStorage.getItem("anet-topo-layout");"grid"===t||"ring"===t?eH(t):e.length>=20&&eH("grid")}catch{}},[]);let[eY,eX]=(0,o.useState)(!1),eK=()=>{eX(!0),setTimeout(()=>eX(!1),400),eH(e=>{let t="ring"===e?"grid":"ring";try{localStorage.setItem("anet-topo-layout",t)}catch{}return t})},[eV,eU]=(0,o.useState)(.84);(0,o.useEffect)(()=>{try{let e=parseFloat(localStorage.getItem("anet-topo-nodescale")||"");(.7===e||.84===e||1===e)&&eU(e)}catch{}},[]);let[eG,eJ]=(0,o.useState)(!1);(0,o.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();eR(t.messages||[])}catch{}};e();let t=setInterval(e,5e3);return()=>clearInterval(t)},[]);let{onlineNodes:eq,offlineNodes:eZ,nodePositions:eQ,flowLinks:e0,activeAliases:e1,groupKeys:e2,groupBoxes:e5,gridContentBottom:e3}=(0,o.useMemo)(()=>{let a=e=>(e.network_id?t[`${e.network_id}:${e.alias}`]:void 0)??t[e.alias],o=(e,t)=>e.alias.localeCompare(t.alias),n=Date.now(),r=e.filter(e=>"offline"!==e.status||a(e)).sort(o),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&&n-t>36e5})(e)).sort(o),i={};if("grid"===eO){let e=[...r,...s],t=z(e),o=Math.max(1,Math.ceil(Math.sqrt(e.length))),n=700/o,l=Math.round(26*eV),d=[];for(let a of e){let e=t[a.alias],o=d[d.length-1];o&&o.key===e?o.members.push(a):d.push({key:e,members:[a]})}let c=[],u=0,h=[];for(let e of d)e.members.length>=2?(c.push({members:e.members,startRow:u,centred:!1,isGroup:!0}),u+=Math.ceil(e.members.length/o)):h.push(...e.members);h.length>0&&(c.push({members:h,startRow:u,centred:!1,isGroup:!0,isOrphan:!0}),u+=Math.ceil(h.length/o));let p=Math.max(1,u),m=l+20,f=Math.max(2*l+22,m+12,l+(eV<.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/o),s=a%o,l=Math.min(o,e.members.length-r*o),d=e.centred?(o-l)*n/2:0;i[t.alias]={x:150+d+(s+.5)*n,y:126+(e.startRow+r+.5)*f}});let g=T(eB,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 o=e.members.map(e=>i[e.alias]).filter(Boolean),n=o.map(e=>e.x),r=o.map(e=>e.y),s=Math.min(...n),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.isOrphan?"其他":e.members.length?t[e.members[0].alias]:"",isOrphan:!!e.isOrphan,count:e.members.length,statuses:{working:d,idle:c,offline:u},x:s-y,y:l-m,w:Math.max(...n)-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),o=r.slice(2*e);t.forEach((e,a)=>{i[e.alias]=j(a,Math.max(t.length,1),145)});let n=t.length<=2?Math.PI:1.78*Math.PI,s=t.length>1?n/(t.length-1):0;a.forEach((e,t)=>{i[e.alias]=j(t,Math.max(a.length,1),215,s/2)}),o.forEach((e,t)=>{i[e.alias]=j(t,Math.max(o.length,1),285)}),c=o.length}else if(d){let e=Math.ceil(r.length/2),t=r.length-e,a=r.slice(0,e),o=r.slice(e);a.forEach((t,a)=>{i[t.alias]=j(a,Math.max(e,1),175)});let n=e<=2?Math.PI:1.78*Math.PI,s=e>1?n/(e-1):0;o.forEach((e,a)=>{i[e.alias]=j(a,Math.max(t,1),260,s/2)}),c=t}else r.forEach((e,t)=>{i[e.alias]=j(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]=j(t,Math.max(s.length,1),f,p)});let g=T(eB,i),x=new Set;g.forEach(e=>{x.add(e.from),x.add(e.to)});let y=z([...r,...s]);return{onlineNodes:r,offlineNodes:s,nodePositions:i,flowLinks:g,activeAliases:x,groupKeys:y,groupBoxes:[],gridContentBottom:0}},[eB,e,t,eO,eV]),e4=eq.filter(e=>"working"===e.status).length,e8=(0,o.useMemo)(()=>{let e=new Map;for(let t of[...eq,...eZ]){let a=y(t.model),o="unknown"===a.id?"?":a.initial,n=e.get(o);n?n.count++:e.set(o,{initial:o,count:1,color:a.mono.text})}return[...e.values()].sort((e,t)=>t.count-e.count)},[eq,eZ]),e6=eq.length+eZ.length>16,[e7,e9]=(0,o.useState)(null),[te,tt]=(0,o.useState)(null),ta=te??(e7?e2[e7]??e7:null),[to,tn]=(0,o.useState)(()=>{try{return sessionStorage.getItem("anet-topo-pinned-group")}catch{return null}}),tr=ta??to;(0,o.useEffect)(()=>{try{to?sessionStorage.setItem("anet-topo-pinned-group",to):sessionStorage.removeItem("anet-topo-pinned-group")}catch{}},[to]),(0,o.useEffect)(()=>{!to||new Set(Object.values(e2)).has(to)||tn(null)},[to,e2]);let[ts,ti]=(0,o.useState)(null),[tl,td]=(0,o.useState)(null),tc=ts??tl,[tu,th]=(0,o.useState)(!1),[tp,tm]=(0,o.useState)(!1),[tf,tg]=(0,o.useState)(!1),[tx,ty]=(0,o.useState)(!1),[tb,tv]=(0,o.useState)(!1),[tk,tw]=(0,o.useState)(!1),[tj,tN]=(0,o.useState)(null),[tS,t$]=(0,o.useState)(null),[t_,tM]=(0,o.useState)(()=>{try{return sessionStorage.getItem("anet-topo-pinned-vendor")}catch{return null}}),tC=tS??t_;(0,o.useEffect)(()=>{try{t_?sessionStorage.setItem("anet-topo-pinned-vendor",t_):sessionStorage.removeItem("anet-topo-pinned-vendor")}catch{}},[t_]),(0,o.useEffect)(()=>{t_&&!e8.some(e=>e.initial===t_)&&tM(null)},[t_,e8]);let[tE,tz]=(0,o.useState)(null),[tT,tA]=(0,o.useState)(()=>{try{let e=sessionStorage.getItem("anet-topo-pinned-status");return"working"===e||"idle"===e||"offline"===e?e:null}catch{return null}}),tL=tE??tT;(0,o.useEffect)(()=>{try{tT?sessionStorage.setItem("anet-topo-pinned-status",tT):sessionStorage.removeItem("anet-topo-pinned-status")}catch{}},[tT]),(0,o.useEffect)(()=>{let e=e=>{let t=e.detail||{};if("clear"===t.kind)tA(null),tn(null),tM(null),td(null);else if("clear-vendor"===t.kind)tM(null);else if("clear-edge"===t.kind)td(null);else if("status"===t.kind){let e=t.value;("working"===e||"idle"===e||"offline"===e)&&tA(e)}else"group"===t.kind&&"string"==typeof t.value?tn(t.value):"vendor"===t.kind&&"string"==typeof t.value&&tM(t.value)};return window.addEventListener("anet:topo-pin",e),()=>window.removeEventListener("anet:topo-pin",e)},[]);let tF=(0,o.useMemo)(()=>{if(!tc)return null;let e=e0.find(e=>e.key===tc);return e?new Set([e.from,e.to]):null},[tc,e0]),tD=(0,o.useRef)(null),tP=(0,o.useRef)(null),[tW,tI]=(0,o.useState)({zoom:1,x:0,y:0}),tB=(0,o.useRef)(tW),tR=(0,o.useRef)({active:!1,startX:0,startY:0,baseX:0,baseY:0}),[tO,tH]=(0,o.useState)(!1),[tY,tX]=(0,o.useState)(!1),[tK,tV]=(0,o.useState)(null),tU=e=>{tV(e),setTimeout(()=>tV(t=>t===e?null:t),240)},[tG,tJ]=(0,o.useState)(null),[tq,tZ]=(0,o.useState)(null);(0,o.useEffect)(()=>{n&&n.from===tG&&tJ(n.to)},[n]),(0,o.useEffect)(()=>{tB.current=tW},[tW]),(0,o.useEffect)(()=>{try{let e=localStorage.getItem("anet-topo-view");if(e){let t=JSON.parse(e);"number"==typeof t?.zoom&&tI({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[tQ]=(0,o.useState)(()=>!!localStorage.getItem("anet-topo-view")),t0=(0,o.useRef)(!1);(0,o.useEffect)(()=>{if(!t0.current){if(tQ){t0.current=!0;return}if("grid"===eO&&0!==e.length&&e3){if(e3<=680){t0.current=!0;return}tI({zoom:Math.max(.5,Math.min(1,680/e3)),x:0,y:0}),t0.current=!0}}},[eO,e.length,e3,tQ]),(0,o.useEffect)(()=>{try{localStorage.setItem("anet-topo-view",JSON.stringify(tW))}catch{}},[tW]),(0,o.useEffect)(()=>{let e=()=>tH(document.fullscreenElement===tD.current);return document.addEventListener("fullscreenchange",e),()=>document.removeEventListener("fullscreenchange",e)},[]),(0,o.useEffect)(()=>{let e=tP.current;if(!e)return;let t=t=>{if(!tO&&!t.ctrlKey&&!t.metaKey)return;t.preventDefault();let a=e.getBoundingClientRect(),o=(t.clientX-a.left)/a.width*1e3,n=(t.clientY-a.top)/a.height*680;tI(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:o-(o-e.x)*s,y:n-(n-e.y)*s}})};return e.addEventListener("wheel",t,{passive:!1}),()=>e.removeEventListener("wheel",t)},[tO]);let[t1,t2]=(0,o.useState)(!1),t5=e=>{if(tR.current.active){tR.current.active=!1,t2(!1);try{e.currentTarget.releasePointerCapture?.(e.pointerId)}catch{}}},t3=e=>{t8(!0),setTimeout(()=>t8(!1),350),tI(t=>{let a=Math.min(4,Math.max(.5,t.zoom*e)),o=a/t.zoom;return{zoom:a,x:500-(500-t.x)*o,y:340-(340-t.y)*o}})},[t4,t8]=(0,o.useState)(!1),t6=()=>{t8(!0),setTimeout(()=>t8(!1),350),tI({zoom:1,x:0,y:0})},t7=(0,o.useCallback)(()=>{let e=!e3||e3<=680?1:Math.max(.5,Math.min(1,680/e3));t8(!0),setTimeout(()=>t8(!1),350),tI({zoom:e,x:0,y:0})},[e3]);return(0,o.useEffect)(()=>{let e=e=>{"toggle"===(e.detail||{}).kind&&eK()},t=e=>{"fit"===(e.detail||{}).kind&&t7()};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)}},[t7]),(0,o.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?(t3(1.2),e.preventDefault()):"-"===e.key||"_"===e.key?(t3(1/1.2),e.preventDefault()):"0"===e.key?(t6(),e.preventDefault()):"f"===e.key||"F"===e.key?(t7(),e.preventDefault()):"l"===e.key||"L"===e.key?(eK(),e.preventDefault()):"Escape"===e.key&&!tG&&(tT||to||t_||tl)&&(tT&&tA(null),to&&tn(null),t_&&tM(null),tl&&td(null),e.preventDefault())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t7,tG,tT,to,t_,tl]),(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${tO?" hidden":""}`,"data-topo-header-row":!0,"data-topo-header-hidden":tO?"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:eL?"#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:eD.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:()=>{tU("layout-ring"),"ring"!==eO&&eK()},"aria-pressed":"ring"===eO,title:"Ring layout (l to toggle)","data-topo-chrome-layout":"ring","data-topo-chrome-layout-active":"ring"===eO?"true":"false","data-topo-chrome-layout-ring-popping":"layout-ring"===tK?"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 active:scale-95 transform-gpu ${"ring"===eO?"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"===tK?" anet-chrome-pop":""}`,style:{transition:"background-color 150ms ease, color 150ms ease, letter-spacing 200ms ease-out, transform 150ms ease-out"},children:"Ring"}),(0,a.jsx)("button",{onClick:()=>{tU("layout-grid"),"grid"!==eO&&eK()},"aria-pressed":"grid"===eO,title:"Grid layout (l to toggle)","data-topo-chrome-layout":"grid","data-topo-chrome-layout-active":"grid"===eO?"true":"false","data-topo-chrome-layout-grid-popping":"layout-grid"===tK?"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 active:scale-95 transform-gpu ${"grid"===eO?"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"===tK?" anet-chrome-pop":""}`,style:{borderColor:eD.containerBorder,transition:"background-color 150ms ease, color 150ms ease, border-color 200ms ease-out, letter-spacing 200ms ease-out, transform 150ms ease-out"},children:"Grid"})]}),(r=eq.filter(e=>"working"===e.status).map(e=>e.alias),s=eq.map(e=>e.alias),i=e=>e.slice(0,8).join(", ")+(e.length>8?` + ${e.length-8} more`:""),l=0===e4?void 0:"working"===tT?`${i(r)} — pinned, Esc to clear`:`${i(r)} — hover highlights, click to pin`,h=0===eq.length?void 0:"idle"===tT?`${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 ${e4>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 active:scale-95":"bg-green-500/10 text-green-300 border-green-500/20"}`,"data-chip-hover-lift":e4>0?"true":"false","data-chip-group-hover-brighten":"true","data-working-chip":!0,"data-working-chip-aliases":r.join(","),"data-pin-mirror":"working"===tT?"true":"false","data-working-chip-clickable":e4>0?"true":"false","data-working-chip-empty":0===e4?"true":"false",title:l,role:e4>0?"button":void 0,tabIndex:e4>0?0:void 0,"aria-pressed":e4>0?"working"===tT:void 0,style:{cursor:e4>0?"pointer":void 0,opacity:0===e4?.5:1,boxShadow:"working"===tT?"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:()=>{e4>0&&tz("working")},onMouseLeave:()=>tz(e=>"working"===e?null:e),onClick:()=>{e4>0&&tA(e=>"working"===e?null:"working")},onKeyDown:e=>{0!==e4&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),tA(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:e4}),(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 ${eq.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 active:scale-95":"bg-cyan-500/10 text-cyan-300 border-cyan-500/20"}`,"data-chip-hover-lift":eq.length>0?"true":"false","data-chip-group-hover-brighten":"true","data-online-chip":!0,"data-online-chip-aliases":s.join(","),"data-pin-mirror":"idle"===tT?"true":"false","data-online-chip-clickable":eq.length>0?"true":"false","data-online-chip-empty":0===eq.length?"true":"false",title:h,role:eq.length>0?"link":void 0,tabIndex:eq.length>0?0:void 0,style:{cursor:eq.length>0?"pointer":void 0,opacity:0===eq.length?.5:1,boxShadow:"idle"===tT?"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=eq.length-e4;e4>0?tz("working"):e>0&&tz("idle")},onMouseLeave:()=>tz(e=>"working"===e||"idle"===e?null:e),onClick:()=>{eq.length>0&&eI.push("/nodes")},onKeyDown:e=>{0!==eq.length&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eI.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:eq.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=eq.length-e4,t=eZ.length,o=e4+e+t;if(0===o)return null;let n=(e,t,n,r)=>{if(0===e)return null;let s=tT===n,i="working"===n?eq.filter(e=>"working"===e.status).map(e=>e.alias):"idle"===n?eq.filter(e=>"working"!==e.status).map(e=>e.alias):eZ.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":n,"data-pressure-seg-aliases":i.join(","),"data-pressure-seg-hovered":tE===n?"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/o*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:tE===n?"brightness(1.2)":void 0,transition:"width 220ms ease-out, box-shadow 150ms ease-out, filter 150ms ease-out"},onClick:e=>{e.stopPropagation(),tA(e=>e===n?null:n)},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),tA(e=>e===n?null:n))},onMouseEnter:()=>tz(n),onMouseLeave:()=>tz(e=>e===n?null:e)},n)};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:`${e4} 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:[n(e4,eL?"#059669":"#22c55e","working","working"),n(e,eL?"#0d9488":"#2dd4bf","idle","idle"),n(t,eL?"#94a3b8":"#6b7280","offline","offline")]})]})})(),tT&&(p="working"===tT?e4:"idle"===tT?eq.length-e4:eZ.length,x=(g="working"===tT?eq.filter(e=>"working"===e.status).map(e=>e.alias):"idle"===tT?eq.filter(e=>"working"!==e.status).map(e=>e.alias):eZ.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 active:scale-95 transform-gpu","data-topo-filter-pill-hover-lift":"true",title:p>0?`${x}${b} — click to clear`:"Click to clear filter",onClick:()=>tA(null),style:{background:"working"===tT?eL?"#05966914":"#22c55e1f":"idle"===tT?eL?"#0d948814":"#2dd4bf1f":eL?"#94a3b814":"#6b72801f",color:"working"===tT?eL?"#047857":"#86efac":"idle"===tT?eL?"#0f766e":"#5eead4":eL?"#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:tT}),(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 ${tT} filter`,onClick:e=>{e.stopPropagation(),tA(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:"×"})]})),to&&(E=Object.values(e2).filter(e=>e===to).length,F=(L=Object.entries(e2).filter(([,e])=>e===to).map(([e])=>e)).slice(0,8).join(", "),D=L.length>8?` + ${L.length-8} more`:"",(0,a.jsxs)("span",{"data-active-filter":"group","data-filter-match-count":E,"data-filter-match-aliases":L.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 active:scale-95 transform-gpu","data-topo-filter-pill-hover-lift":"true",title:E>0?`${F}${D} — click to clear`:"Click to clear filter",onClick:()=>tn(null),style:{background:eL?"#67e8f914":"#67e8f91f",color:eD.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:to}),(0,a.jsxs)("span",{className:"opacity-70 tabular-nums transition-opacity duration-200 group-hover:opacity-100","data-filter-pill-count":!0,children:[" · ",E]})]}),(0,a.jsx)("button",{type:"button","aria-label":`Clear group filter ${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:"×"})]})),t_&&(P=e8.find(e=>e.initial===t_),W=P?.count??0,I=P?.color??eD.legendText,R=(B=[...eq,...eZ].filter(e=>{let t=y(e.model);return("unknown"===t.id?"?":t.initial)===t_}).map(e=>e.alias)).slice(0,8).join(", "),O=B.length>8?` + ${B.length-8} more`:"",(0,a.jsxs)("span",{"data-active-filter":"vendor","data-filter-match-count":W,"data-filter-match-aliases":B.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 active:scale-95 transform-gpu","data-topo-filter-pill-hover-lift":"true",title:W>0?`${R}${O} — click to clear`:"Click to clear vendor filter",onClick:()=>tM(null),style:{background:`${I}1f`,color:I,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:[" · ",W]})]}),(0,a.jsx)("button",{type:"button","aria-label":`Clear vendor filter ${t_}`,onClick:e=>{e.stopPropagation(),tM(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:"×"})]})),tl&&(()=>{let e=e0.find(e=>e.key===tl);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 active:scale-95 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:()=>td(null),style:{background:eL?`${eD.flowEdge}14`:`${eD.flowEdge}1f`,color:eD.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:eL?"#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(),td(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=+!!tT+ +!!to+ +!!t_+ +!!tl;if(e<2)return null;let t=tl?e0.find(e=>e.key===tl):null,o=t?new Set([t.from,t.to]):null,n=[...eq,...eZ].filter(e=>{let t="offline"!==e.status;if("working"===tT&&"working"!==e.status||"idle"===tT&&!(t&&"working"!==e.status)||"offline"===tT&&t||to&&(e2[e.alias]??e.alias)!==to)return!1;if(t_){let t=y(e.model);if(("unknown"===t.id?"?":t.initial)!==t_)return!1}return!o||!!o.has(e.alias)}).map(e=>e.alias),r=n.slice(0,8).join(", "),s=n.length>8?` + ${n.length-8} more`:"",i=0===n.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":n.length,"data-pin-intersection-empty":i?"true":"false","data-pin-intersection-aliases":n.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?eL?"#d9770614":"#fbbf241f":eL?"#94a3b814":"#94a3b81f",color:i?eL?"#d97706":"#fbbf24":eL?"#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:[" · ",n.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:"⚠"})]})})})(),e8.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:e8.map(e=>{let t=t_===e.initial,o=[...eq,...eZ].filter(t=>{let a=y(t.model);return("unknown"===a.id?"?":a.initial)===e.initial}).map(e=>e.alias),n=o.slice(0,8).join(", "),r=o.length>8?` + ${o.length-8} more`:"",s=t?`${n}${r} — click again or Esc to clear`:`${n}${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 active:scale-95","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":tS===e.initial?"true":"false","data-vendor-aliases":o.join(","),title:s,style:{cursor:"pointer",backgroundColor:tS!==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:()=>t$(e.initial),onMouseLeave:()=>t$(t=>t===e.initial?null:t),onClick:()=>tM(t=>t===e.initial?null:e.initial),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),tM(t=>t===e.initial?null:e.initial))},children:[(0,a.jsx)("span",{"data-vendor-letter-glyph":e.initial,"data-vendor-letter-glyph-hover":tS===e.initial?"true":"false","data-vendor-letter-glyph-font-weight":"600",style:{color:e.color,display:"inline-block",fontWeight:600,transform:tS===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)})}),(Y=null!==(H=e0.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(H).toISOString()):null,X=e0.slice(0,6).map(e=>`${e.from}→${e.to} (${e.count})`).join(", "),K=e0.length>6?` + ${e0.length-6} more`:"",U=(V=e0.length>0)?`${X}${K} — 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 ${V?"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 active:scale-95":"bg-gray-500/10 text-gray-400 border-gray-500/20"}`,"data-chip-hover-lift":V?"true":"false","data-chip-group-hover-brighten":"true","data-active-links-chip":!0,"data-active-links-flow-count":e0.length,"data-active-links-clickable":V?"true":"false","data-active-links-empty":V?"false":"true",title:U,role:V?"link":void 0,tabIndex:V?0:void 0,style:{cursor:V?"pointer":void 0,opacity:V?1:.5,transition:"color 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out, opacity 200ms ease-out"},onMouseEnter:()=>{V&&th(!0)},onMouseLeave:()=>th(!1),onClick:()=>{V&&eI.push("/messages")},onKeyDown:e=>{V&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eI.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:e0.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===e0.length?"":"s"]}),Y?(J=(G=null!==H?Math.max(0,(Date.now()-H)/1e3):999)<=30?1:G<=300?1-(G-30)/270*.7:.3,q=eL?`rgba(13, 148, 136, ${J.toFixed(2)})`:`rgba(34, 211, 238, ${J.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":J.toFixed(2),style:{color:q,fontWeight:J>.7?700:400,transition:"color 200ms ease-out"},children:" · "}),"last ",Y]})):null]})),(0,a.jsx)($,{sessions:e})]})]}),(0,a.jsxs)("div",{ref:tD,className:`relative overflow-hidden rounded-xl border shadow-2xl ${eL?"shadow-zinc-900/5":"shadow-cyan-950/30"} ${tO?"flex items-center justify-center":""}`,"data-topo-wrapper":!0,style:{background:eD.containerBg,borderColor:eD.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 ${eD.topRailGradient}`,"data-topo-top-rail":!0,style:{transition:"background-image 200ms ease-out"}}),(0,a.jsxs)("svg",{ref:tP,viewBox:"0 0 1000 680",className:"w-full h-auto block",preserveAspectRatio:"xMidYMid meet","aria-roledescription":"agent network topology","aria-label":(Z=eq.length,Q=eZ.length,ee=e0.length,(et=[]).push(`${Z} agent${1===Z?"":"s"} online`),e4>0&&et.push(`${e4} working`),Q>0&&et.push(`${Q} offline`),et.push(`${ee} active link${1===ee?"":"s"}`),`Agent network topology — ${et.join(" · ")}. Tab to navigate nodes, double-click canvas to reset view.`),"data-topo-canvas-aria":!0,"data-topo-fleet-density-tier":0===eq.length?"empty":eq.length<=3?"sparse":eq.length<=15?"normal":eq.length<=30?"dense":"very-dense","data-topo-online-count":eq.length,"data-topo-working-count":e4,"data-topo-offline-count":eZ.length,"data-topo-flow-count":e0.length,"data-topo-layout":eO,"data-topo-theme":eL?"light":"cyber","data-topo-zoom":tW.zoom.toFixed(2),"data-topo-hovered-alias":e7??"","data-topo-pinned-aspect":(ea=[],(tT&&ea.push("status"),to&&ea.push("group"),t_&&ea.push("vendor"),tl&&ea.push("edge"),0===ea.length)?"none":1===ea.length?ea[0]:"multi"),"data-topo-any-hover":e7||tp||ts||te||tE||tS?"true":"false","data-topo-any-pinned":tT||to||t_||tl?"true":"false","data-dashboard-version":k.DASHBOARD_VERSION,onPointerDown:e=>{0===e.button&&(e.currentTarget.setPointerCapture?.(e.pointerId),tR.current={active:!0,startX:e.clientX,startY:e.clientY,baseX:tB.current.x,baseY:tB.current.y},t2(!0))},onPointerMove:e=>{let t=tR.current;if(!t.active)return;let a=tP.current;if(!a)return;let o=a.getBoundingClientRect(),n=(e.clientX-t.startX)/o.width*1e3,r=(e.clientY-t.startY)/o.height*680;tI(e=>({...e,x:t.baseX+n,y:t.baseY+r}))},onPointerUp:t5,onPointerLeave:t5,onDoubleClick:e=>{let t=e.target;t?.closest("g[data-node]")||t6()},style:{cursor:t1?"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:eD.panelStops[0]}),(0,a.jsx)("stop",{offset:"48%",stopColor:eD.panelStops[1]}),(0,a.jsx)("stop",{offset:"100%",stopColor:eD.panelStops[2]})]}),(0,a.jsxs)("radialGradient",{id:"topo-radar",cx:"50%",cy:"50%",r:"55%",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:eD.radarStops[0].color,stopOpacity:eD.radarStops[0].opacity}),(0,a.jsx)("stop",{offset:"45%",stopColor:eD.radarStops[1].color,stopOpacity:eD.radarStops[1].opacity}),(0,a.jsx)("stop",{offset:"100%",stopColor:eD.radarStops[2].color,stopOpacity:eD.radarStops[2].opacity})]}),!eL&&(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:eL?"#0f172a":"#000000",floodOpacity:eL?.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:eD.arrowFill})},e.id)),(0,a.jsxs)("radialGradient",{id:"topo-sweep",cx:"0%",cy:"50%",r:"100%",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:eL?"#0d9488":"#22d3ee",stopOpacity:eL?.18:.32}),(0,a.jsx)("stop",{offset:"70%",stopColor:eL?"#0d9488":"#22d3ee",stopOpacity:eL?.1:.18}),(0,a.jsx)("stop",{offset:"100%",stopColor:eL?"#0d9488":"#22d3ee",stopOpacity:"0"})]})]}),(0,a.jsx)("rect",{width:"1000",height:"680",fill:"url(#topo-panel)"}),(0,a.jsxs)("g",{transform:`translate(${tW.x} ${tW.y}) scale(${tW.zoom})`,"data-topo-viewport":!0,"data-topo-viewport-smooth":t4?"true":"false","data-topo-viewport-layout-switching":eY?"true":"false","data-topo-viewport-nodesize-switching":eG?"true":"false",style:{transition:t4?"opacity 250ms ease-out, transform 300ms ease-out":"opacity 250ms ease-out",opacity:eY||eG?.45:1},children:["ring"===eO&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:500,cy:330,r:"330",fill:"url(#topo-radar)",style:{pointerEvents:"none"}}),!eL&&(0,a.jsx)("g",{opacity:"0.5",style:{pointerEvents:"none"},"data-topo-starfield":!0,children:Array.from({length:14}).map((e,t)=>{let o=9301*t+49297,n=t%3==0?1.2:.7;return(0,a.jsx)("circle",{cx:13*o%1e3,cy:7*o%680,r:n,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:eD.ringStroke,strokeWidth:"1",opacity:eL?.6:.35,"data-topo-radar-ring":e},e)),(eo=eq.length>14?[145,215,285]:eq.length>8?[175,260]:eq.length>0?[220]:[],er=(en=!!(tT||to||t_))?eD.legendAccent:eD.ringStroke,eo.map((e,t)=>{let o=eq.reduce((t,a)=>{let o=eQ[a.alias];return o&&15>Math.abs(Math.hypot(o.x-500,o.y-330)-e)?t+1:t},0);if(0===o)return null;let n=o<=2?0:o<=6?1:2,r=[.24,.36,.5][n],s=[.32,.46,.62][n],i=60*Math.min(t,8);return(0,a.jsx)("circle",{cx:500,cy:330,r:e,fill:"none",stroke:er,strokeWidth:"0.7",strokeDasharray:"2 6",opacity:eL?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":o,"data-tier-bucket":n,"data-tier-tinted":en?"true":"false","data-tier-fade-delay":i},`tier-${e}`)})),!1,!1]}),"ring"===eO&&(ei=[2.8,2.4,2,1.6][es=0===e4?0:e4<=2?1:e4<=5?2:3],eq.map((e,t)=>{let o=eQ[e.alias];if(!o)return null;let n=N({x:500,y:330},o,0),r=e1.has(e.alias),s=!eF&&e7===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:n,fill:"none",stroke:r?eD.spokeStroke.active:eD.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:es,"data-topo-spoke-dur":r?void 0:ei,"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":`${ei}s`}}}},`hub-${e.alias}`)})),e5.map((e,t)=>{let o,n,r,s,i=tr===e.key,l=to===e.key,d=e.statuses.working,c=d>=6?8:d>=4?10:d>=2?12:14,u=e.statuses.working===e.count?"all-working":e.statuses.idle===e.count?"all-idle":e.statuses.offline===e.count?"all-offline":"mixed";return(0,a.jsxs)("g",{"data-group":e.key,"data-group-tier":u,className:"transition-opacity duration-200 ease-out anet-fade-in","data-group-fade-delay":60*Math.min(t,8),"data-group-fade-transition":"200ms",style:{opacity:!tr||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:l?"16":"14","data-group-box-rx":l?"16":"14",fill:eL?"#0f172a":"#a5b4fc",fillOpacity:l?eL?.08:.13:i?eL?.05:.09:e.isOrphan?eL?.015:.028:eL?.025:.045,"data-group-box-fill-opacity":l?eL?.08:.13:i?eL?.05:.09:e.isOrphan?eL?.015:.028:eL?.025:.045,stroke:l||i?eD.legendAccent:eD.ringStroke,strokeWidth:l?3:i?2:1.5,strokeDasharray:l||i?"none":e.isOrphan?"3 6":"6 6","data-group-box-orphan":e.isOrphan?"true":"false",strokeLinecap:"round",strokeLinejoin:"round","data-group-box-pinned":l?"true":"false","data-group-box-linecap":"round","data-group-box-linejoin":"round","data-group-box-geom-transition":"x,y,width,height","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, x 200ms ease-out, y 200ms ease-out, width 200ms ease-out, height 200ms ease-out, rx 200ms ease-out",pointerEvents:"none",...{"--march-dur":`${c}s`}}}),(0,a.jsxs)("g",{role:"button",tabIndex:0,"aria-pressed":to===e.key,"data-group-label-hit":e.key,className:"anet-topo-svg-focus",style:{pointerEvents:"all",cursor:"pointer"},onPointerDown:e=>e.stopPropagation(),onClick:()=>tn(t=>t===e.key?null:e.key),onPointerEnter:()=>tt(e.key),onPointerLeave:()=>tt(t=>t===e.key?null:t),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),tn(t=>t===e.key?null:e.key))},children:[(n=(o=Object.entries(e2).filter(([,t])=>t===e.key).map(([e])=>e)).slice(0,8).join(", "),r=o.length>8?` + ${o.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} (${o.length} member${1===o.length?"":"s"})`,s||null,`${n}${r}`,to===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,160),height:18,rx:to===e.key?"5":"4","data-group-label-tint-rx":to===e.key?"5":"4",fill:to===e.key||te===e.key?eD.legendAccent:"transparent",opacity:to===e.key?eL?.16:.2:te===e.key?eL?.09:.13:1,"data-group-label-tinted":to===e.key?"pinned":te===e.key?"hover":"none","data-group-label-tint-transition":"200ms","data-group-label-tint-geom-transition":"x,width,rx",style:{transition:"fill 200ms ease-out, opacity 200ms ease-out, x 200ms ease-out, width 200ms ease-out, rx 200ms ease-out"}}),(0,a.jsxs)("text",{x:e.x+12,y:e.y+12,fill:i?eD.legendHeadline:eD.legendText,fontSize:"9",fontFamily:"monospace",fontWeight:l?"800":"700",opacity:l||i?1:.55,"data-group-label-hovered":i&&!l?"true":"false","data-group-label-font-weight":l?"800":"700","data-group-label-glow":l?"true":"false",style:{transition:"fill 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out, opacity 200ms ease-out, filter 200ms ease-out",letterSpacing:l?"0.5px":i?"0.25px":"0px",fontStyle:e.isOrphan?"italic":void 0,filter:l?`drop-shadow(0 0 3px ${eD.legendAccent}80)`:void 0},"data-group-label":e.key,"data-group-label-pinned":l?"true":"false","data-group-label-orphan":e.isOrphan?"true":"false",children:[e.key,(0,a.jsxs)("tspan",{dx:"4",fontSize:"8",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:"6",fill:eL?"#059669":"#22c55e",fontSize:"8",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:"3",fill:eL?"#0d9488":"#2dd4bf",fontSize:"8",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:"3",fill:eL?"#94a3b8":"#6b7280",fontSize:"8",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}`)}),e0.map((e,t)=>{let o,n,r,s,i,l,d,c,u,h,p,f,g=eQ[e.from],x=eQ[e.to];if(!g||!x)return null;let y=(t%2==0?1:-1)*Math.min(36,.18*Math.hypot(x.x-g.x,x.y-g.y)),b=N(g,x,y),v=Math.min(2+e.count,7),k=Math.max(.9,2.6/Math.sqrt(e.count)),w=Math.max(.4,1-(e.last_at?Math.max(0,Date.now()-Date.parse(e.last_at)):0)/3e5),j=e.count<=2?"topo-arrow-s":e.count<=4?"topo-arrow":"topo-arrow-l",S=(0,m.relativeAgo)(e.last_at),$=`${e.from} → ${e.to}
4
+ ${e.count} message${1===e.count?"":"s"}${S?` \xb7 last ${S}`:""}`,_=tc===e.key,M=e2[e.from]??e.from,C=e2[e.to]??e.to,E=_?2:tc?.35:e7||tr?e.from===e7||e.to===e7?1.7:tr&&M===tr&&C===tr?1.3:.35:tu?1.5:1,z=!!e7&&(e.from===e7||e.to===e7),T=_?Math.min(1.4*v,10):z?Math.min(1.15*v,8):v;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:b,fill:"none",stroke:"transparent",strokeWidth:Math.max(v+10,16),style:{pointerEvents:"stroke"},"data-edge-hitbox":!0,onMouseEnter:()=>ti(e.key),onMouseLeave:()=>ti(t=>t===e.key?null:t),children:(0,a.jsx)("title",{children:$})}),(0,a.jsx)("path",{d:b,fill:"none",stroke:eD.flowEdge,strokeWidth:T,strokeLinecap:"round",opacity:Math.min(1,(eL?.22:.28)*w*E),filter:eL?void 0:"url(#topo-glow)",markerEnd:`url(#${j})`,"data-edge-visible":e.key,"data-edge-visible-linecap":"round","data-edge-visible-endpoint-hovered":z?"true":"false","data-edge-visible-stroke-width":T,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:b,fill:"none",stroke:eD.flowPath,strokeWidth:_||z?1.5:1,strokeDasharray:"2 12",strokeLinecap:"round",opacity:Math.min(1,(eL?.4:.75)*w*E),"data-edge-flow-rail":e.key,"data-edge-flow-rail-linecap":"round","data-edge-flow-rail-stroke-width":_||z?1.5:1,"data-edge-flow-rail-lifted":_||z?"true":"false",style:{transition:"opacity 300ms ease-out, stroke 300ms ease-out, stroke-width 300ms ease-out"}}),!eF&&(0,a.jsx)("circle",{r:_||z?5.5:4.5,fill:eD.flowParticle,filter:eL?void 0:"url(#topo-glow)",opacity:_||z?1:Math.min(1,w*E),"data-edge-particle":e.key,"data-edge-particle-radius":_||z?5.5:4.5,"data-edge-particle-lifted":_||z?"true":"false","data-edge-particle-opacity-rest":Math.min(1,w*E).toFixed(2),"data-edge-particle-opacity-lifted":_||z?"true":"false",style:{transition:"fill 200ms ease-out, opacity 200ms ease-out, r 200ms ease-out"},children:(0,a.jsx)("animateMotion",{dur:`${k}s`,begin:`-${(.37*t%k).toFixed(3)}s`,repeatCount:"indefinite",path:b})}),!1,!1,(o=e.count>=3,n=(g.x+x.x)/2,r=(g.y+x.y)/2,s=x.x-g.x,l=Math.hypot(s,i=x.y-g.y)||1,d=n+-i/l*y*.5,c=r+s/l*y*.5,u=o?Math.min(1,w*E):0,h=tl===e.key,p=e.count>=10,f=eL?"#d97706":"#fbbf24",(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":o?"true":"false",role:o?"button":void 0,tabIndex:o?0:-1,"aria-pressed":o?h:void 0,"aria-hidden":!o||void 0,className:"anet-topo-svg-focus",style:{pointerEvents:o?"all":"none",cursor:o?"pointer":void 0,transition:"opacity 300ms ease-out"},opacity:u,onPointerDown:e=>e.stopPropagation(),onMouseEnter:()=>ti(e.key),onMouseLeave:()=>ti(t=>t===e.key?null:t),onClick:t=>{t.stopPropagation(),td(t=>t===e.key?null:e.key);let a=Date.now();tZ({ts:a,x:d,y:c,r0:10.5,color:eD.flowEdge}),setTimeout(()=>tZ(e=>e&&e.ts===a?null:e),600)},onKeyDown:t=>{if("Enter"===t.key||" "===t.key){t.preventDefault(),td(t=>t===e.key?null:e.key);let a=Date.now();tZ({ts:a,x:d,y:c,r0:10.5,color:eD.flowEdge}),setTimeout(()=>tZ(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:eD.legendBox.fill,stroke:h?eD.legendHeadline:p?f:eD.flowEdge,strokeWidth:h||p?2:_?1.5:1.25,opacity:_||h?1:eL?.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:eL?.95:.85,"data-edge-badge-opacity-rest":eL?.95:.85,"data-edge-badge-opacity-hover":"1","data-edge-badge-opacity-active":"1","data-edge-badge-glow":p?"true":"false",style:{filter:p?`drop-shadow(0 0 3px ${f}80)`:void 0,transition:"r 180ms ease-out, stroke 300ms ease-out, stroke-width 300ms ease-out, fill 200ms ease-out, opacity 200ms ease-out, filter 200ms ease-out"}}),(0,a.jsx)("text",{x:d,y:c+3,textAnchor:"middle",fill:eD.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"===eO&&(0,a.jsxs)("g",{"data-topo-hub":!0,"data-topo-hub-hovered":tp?"true":"false",role:"button",tabIndex:0,"aria-label":(el=["Network hub"],eq.length>0&&el.push(`${eq.length} online`),e4>0&&el.push(`${e4} working`),e0.length>0&&el.push(`${e0.length} active link${1===e0.length?"":"s"}`),el.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:()=>tm(!0),onMouseLeave:()=>tm(!1),onClick:()=>{t7(),tZ({ts:Date.now(),x:500,y:330,r0:18,color:eL?"#059669":"#10b981"}),setTimeout(()=>tZ(e=>e&&500===e.x&&330===e.y?null:e),600)},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t7(),tZ({ts:Date.now(),x:500,y:330,r0:18,color:eL?"#059669":"#10b981"}),setTimeout(()=>tZ(e=>e&&500===e.x&&330===e.y?null:e),600))},children:[(0,a.jsx)("title",{children:(ed=e.length,ec=["Network hub",`${ed} session${1===ed?"":"s"}`],eq.length>0&&ec.push(`${eq.length} online`),e4>0&&ec.push(`${e4} working`),e0.length>0&&ec.push(`${e0.length} active link${1===e0.length?"":"s"}`),ec.join(" · ")+"\nclick to fit view")}),(eh=[.52,.58,.65,.72][eu=0===e4?0:e4<=2?1:e4<=5?2:3],ep=[.16,.2,.26,.32][eu],em=[4,3.2,2.7,2.4][eu],ef=`0.34;${eh};0.34`,eg=`0.1;${ep};0.1`,ey=(ex=!eF&&tp)?22:20,(0,a.jsx)("circle",{cx:500,cy:330,fill:eL?"#d1fae5":"#10b981",opacity:eL?.42:.12,"data-hub-busyness":eu,"data-topo-hub-halo-radius":ey,"data-topo-hub-halo-hovered":ex?"true":"false","data-topo-hub-halo-trough":eL?.34:.1,"data-topo-hub-halo-peak":eL?eh:ep,style:{r:`${ey}px`,transition:"fill 200ms ease-out, r 200ms ease-out"},children:!eF&&(0,a.jsx)("animate",{attributeName:"opacity",values:eL?ef:eg,dur:`${em}s`,repeatCount:"indefinite",calcMode:"spline",keyTimes:"0;0.5;1",keySplines:"0.42 0 0.58 1;0.42 0 0.58 1"})})),(eb=!eF&&tp,ev=eL?eb?"#10b981":"#059669":eb?"#34d399":"#10b981",(0,a.jsx)("circle",{cx:500,cy:330,r:"10",fill:ev,"data-topo-hub-core":!0,"data-topo-hub-core-hovered":eb?"true":"false","data-topo-hub-core-fill":ev,style:{transition:"fill 200ms ease-out"}})),(0,a.jsx)("text",{x:500,y:330,textAnchor:"middle",dy:"0.36em",fill:eL?"#d1fae5":"#ecfdf5",fontSize:"12",fontFamily:"monospace",fontWeight:tp?"800":"700",opacity:+(e4>0),"data-topo-hub-working-count":e4,"data-topo-hub-working-count-font-size":"12","data-topo-hub-working-count-hovered":tp?"true":"false","data-topo-hub-working-count-visible":e4>0?"true":"false","data-topo-hub-working-count-glow":!eF&&tp?"true":"false","data-topo-hub-recede":(e7||ts||te||tE||tS)&&!tp?"true":"false",style:{pointerEvents:"none",transform:!eF&&tp?"scale(1.08)":"scale(1)",transformBox:"fill-box",transformOrigin:"center",opacity:(e7||ts||te||tE||tS)&&!tp?.85:1,filter:!eF&&tp?eL?"drop-shadow(0 0 2px rgba(16, 185, 129, 0.6))":"drop-shadow(0 0 3px rgba(52, 211, 153, 0.6))":void 0,transition:"transform 200ms ease-out, opacity 300ms ease-out, fill 200ms ease-out, font-weight 200ms ease-out, filter 200ms ease-out",fontVariantNumeric:"tabular-nums"},children:e4}),(ek=!!((e7||ts||te||tE||tS)&&!tp),ew=e4>0?0:tp?1:.95,ej=ek?.85*ew:ew,eN=!eF&&0===e4&&!ek&&!tp,(0,a.jsx)("circle",{cx:500,cy:330,r:"5.5",fill:eL?"#10b981":"#d1fae5",opacity:ej,"data-topo-hub-highlight":!0,"data-topo-hub-highlight-visible":e4>0?"false":"true","data-topo-hub-highlight-radius":"5.5","data-topo-hub-highlight-opacity":ej,"data-topo-hub-highlight-breath":eN?"true":"false","data-topo-hub-highlight-recede":ek?"true":"false",style:{pointerEvents:"none",transition:"opacity 300ms ease-out, fill 200ms ease-out"},children:eN&&(0,a.jsx)("animate",{attributeName:"opacity",values:"0.85;1;0.85",dur:"4s",repeatCount:"indefinite"})})),(0,a.jsx)("circle",{cx:500,cy:330,r:tp?17:14,fill:"none",stroke:eL?"#059669":"#10b981",strokeWidth:"1.75",opacity:tp?eL?.85:.8:0,"data-topo-hub-hover-ring":!0,"data-topo-hub-hover-ring-radius":tp?17:14,"data-topo-hub-hover-ring-stroke-width":"1.75","data-topo-hub-hover-ring-opacity":tp?eL?.85:.8:0,style:{pointerEvents:"none",transition:"opacity 180ms ease-out, r 180ms ease-out, stroke 200ms ease-out"}})]}),[...eq,...eZ].map((e,o)=>{let n,r,s,i,l,d,c,h,p,f,g,x,b,k,w=eQ[e.alias];if(!w)return null;let j=(e.network_id?t[`${e.network_id}:${e.alias}`]:void 0)??t[e.alias],N="offline"!==e.status||!!j,$=_(e,N,eL),M=e1.has(e.alias),C=Math.round((N?26:18)*eV),E=!e6||e7===e.alias||tW.zoom>=1.4,z=!tr||(e2[e.alias]??e.alias)===tr,T=0;if("ring"===eO){let t=eQ[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"===eO?T:-1,role:"button",tabIndex:0,"aria-pressed":tG===e.alias,"aria-label":`Chat with ${e.alias} (${e.status})`,onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),tJ(e.alias),tZ({ts:Date.now(),x:w.x,y:w.y,r0:C,color:$.primary}),setTimeout(()=>tZ(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:tF&&!tF.has(e.alias)&&tG!==e.alias||tC&&tG!==e.alias&&("unknown"===(n=y(e.model)).id?"?":n.initial)!==tC||tL&&tG!==e.alias&&!("working"===tL?"working"===e.status:"idle"===tL?N&&"working"!==e.status:!N)?.28:z?tG===e.alias||N?1:.6:.32,animationDelay:"ring"===eO?`${180*T+o%6*25}ms`:`${25*Math.min(o,24)}ms`,transform:eF||e7!==e.alias?void 0:"translateY(-2px)",transition:"transform 180ms cubic-bezier(0.4,0,0.2,1)"},onPointerDown:e=>e.stopPropagation(),onPointerEnter:()=>e9(e.alias),onPointerLeave:()=>e9(t=>t===e.alias?null:t),onClick:()=>{tJ(e.alias),tZ({ts:Date.now(),x:w.x,y:w.y,r0:C,color:$.primary}),setTimeout(()=>tZ(e=>e&&Date.now()-e.ts>=590?null:e),600)},children:[(()=>{var t,o;let n,r,s,i=!N&&e.last_seen_at?(0,m.relativeAgo)(e.last_seen_at):null,l=e2[e.alias],d=l?Object.values(e2).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 e0)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,o=e.runtime,n=y(t),r=v(o),s=[],"unknown"!==n.id&&s.push(n.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-200",style:{pointerEvents:"none"}}),(r=tG===e.alias,(0,a.jsx)("circle",{cx:w.x,cy:w.y,r:C+14,fill:"none",stroke:$.primary,strokeWidth:"2.5",opacity:r?eL?.85:.95:0,filter:!eL&&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":!eF&&r?"on":"off",children:!eF&&r&&(0,a.jsx)("animate",{attributeName:"opacity",values:eL?"0.72;0.95;0.72":"0.82;1;0.82",dur:"3s",repeatCount:"indefinite"})})),!eF&&(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:eL?.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:eL?"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":eL?"0.14":"0.20","data-node-pulse-trough":eL?"0.03":"0.05"})]})}),(s=!eF&&e7===e.alias,i=N?eL?s?1:.85:s?.8:.65:eL?s?.6:.5: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":N?void 0:eL?.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":eF||"working"!==e.status?"off":"on","data-node-halo-breath-offset":eF||"working"!==e.status?void 0:(.37*o%3).toFixed(3),children:!1})),(d=(l=tF&&tF.has(e.alias))?C+8:C+7,(0,a.jsx)("circle",{cx:w.x,cy:w.y,fill:"none",stroke:eD.flowEdge,strokeWidth:l?2.4:1.6,opacity:l?eL?.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=!eF&&e7===e.alias,h=N?c?3.5:3:c?2:1.5,(0,a.jsx)("circle",{cx:w.x,cy:w.y,r:C,fill:N?eD.nodeFill.online:eD.nodeFill.offline,stroke:$.primary,strokeWidth:h,strokeDasharray:N?"none":"5 5",filter:N&&!eL?"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"!==eW.get(e.server)?null:(0,a.jsx)("circle",{cx:w.x,cy:w.y,r:C+8,fill:"none",stroke:eL?"#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((N?14:10)*eV),o=2*C,n=y(e.model),r=/书生|书小生|intern/i.test(e.alias);if(eP||r||n.logo){let t=!eF&&e7===e.alias;return(0,a.jsx)("image",{href:n.logo??"/intern_avatar.png",x:w.x-o/2,y:w.y-o/2,width:o,height:o,preserveAspectRatio:"xMidYMid meet","data-node-avatar":e.alias,"data-node-avatar-hovered":t?"true":"false",style:{filter:t?"brightness(1.15)":void 0,transition:"filter 200ms ease-out"}})}if("unknown"!==n.id)return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:w.x,cy:w.y,r:t,fill:n.mono.bg,stroke:n.mono.ring,strokeWidth:"1.5"}),(0,a.jsx)("text",{x:w.x,y:w.y,dy:"0.34em",textAnchor:"middle",fill:n.mono.text,fontSize:t,fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif",fontWeight:"700","data-monogram-letter":n.initial,children:n.initial})]});let s=(0,u.aliasAvatarColors)(e2[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 o=N?7:5.5,n=w.x+.72*C,r=w.y+.72*C,s=2*o*.62,i=!eF&&e7===e.alias;return(0,a.jsxs)("g",{style:{pointerEvents:"none"},children:[(0,a.jsx)("circle",{cx:n,cy:r,r:o,fill:eD.containerBg,stroke:t.color,strokeWidth:"1.5","data-runtime-badge":e.alias,"data-runtime-badge-active":i?"true":"false",style:{r:i?`${o+1}px`:`${o}px`,strokeWidth:i?"2px":"1.5px",transition:"r 150ms ease-out, stroke-width 150ms ease-out"}}),(0,a.jsx)("g",{transform:`translate(${n-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=eV<.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:eD.labelBox.fill,stroke:eF||e7!==e.alias?eD.labelBox.stroke:eD.legendAccent,opacity:eF||e7!==e.alias?eL?1:.94:1,"data-node-label-card":e.alias,"data-node-label-card-rx":"8","data-node-label-card-elevation":eF||e7!==e.alias?"idle":"hover",style:{filter:eF||e7!==e.alias?eL?"drop-shadow(0 1px 2px rgba(15,23,42,0.08))":"drop-shadow(0 1px 2px rgba(0,0,0,0.30))":eL?"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":tG===e.alias?"true":"false","data-node-alias-hovered":e7===e.alias?"true":"false","data-node-alias-glow":eF||e7!==e.alias?"false":"true",style:{transition:"fill 300ms ease-out, letter-spacing 200ms ease-out, filter 200ms ease-out",letterSpacing:tG===e.alias?"0.5px":e7===e.alias?"0.3px":"0px",filter:eF||e7!==e.alias?void 0:`drop-shadow(0 0 2px ${$.text}80)`},children:S(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":e7===e.alias?"true":"false","data-node-sub-text-font-weight":"500",style:{transition:"fill 300ms ease-out, letter-spacing 200ms ease-out",letterSpacing:e7===e.alias?"0.2px":"0px"},children:[$.label,N&&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:eD.containerBg,strokeWidth:"3",children:S(e.alias,p?9:10)})),!eF&&e7===e.alias&&!e6&&(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:eD.labelBox.fill,stroke:eD.legendAccent,opacity:eL?.98:.97,"data-topo-hover-detail-opacity":eL?.98:.97,"data-topo-hover-detail-rx":"10",style:{filter:eL?"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:eD.legendAccent,fontWeight:"700",children:"unknown"!==g.id?g.label:"—"}),(0,a.jsx)("text",{x:"10",y:"32",fontSize:"10",fontFamily:"monospace",fontWeight:"600",fill:eD.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:eD.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:eD.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:eD.legendText,opacity:"0.7","data-topo-hover-detail-body-fw":"500",children:e.task?S(e.task,28):"no recent task"})]}))]},e.alias)}),tq&&!eF&&(0,a.jsxs)("circle",{cx:tq.x,cy:tq.y,r:tq.r0+4,fill:"none",stroke:tq.color,strokeWidth:"2",opacity:"0","data-click-ripple":!0,style:{pointerEvents:"none"},children:[(0,a.jsx)("animate",{attributeName:"r",values:`${tq.r0+4};${tq.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"})]},tq.ts)]}),e0.length>0&&(0,a.jsxs)("g",{transform:"translate(16, 16)","data-topo-panel":"recent","data-topo-panel-hovered":"recent"===tj?"true":"false",className:"anet-fade-in","data-topo-panel-fade-delay":700,style:{animationDelay:"700ms"},onMouseEnter:()=>tN("recent"),onMouseLeave:()=>tN(e=>"recent"===e?null:e),children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"230",height:"88",rx:"10",fill:eD.legendBox.fill,stroke:"recent"===tj?eD.legendAccent:eD.legendBox.stroke,opacity:"recent"===tj?eL?1:.97:eL?.97:.92,style:{filter:"recent"===tj?eL?"drop-shadow(0 4px 12px rgba(15,23,42,0.14))":"drop-shadow(0 4px 12px rgba(0,0,0,0.65))":eL?"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:eD.legendHeadline,fontSize:"12",fontFamily:"monospace",fontWeight:tc?"800":"700",letterSpacing:"recent"===tj?"0.4":"0.3",style:{transition:"fill 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out"},"data-recent-panel-title":!0,"data-recent-panel-title-fw":tc?"800":"700","data-recent-panel-title-active":tc?"true":"false",children:"recent signal"}),(eS=e0.filter(e=>e.count>=10).length,eM=(e_=null!==(e$=e0.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()-e$)/1e3):999)<=30?1:e_<=300?1-(e_-30)/270*.7:.3,eC=eL?`rgba(13, 148, 136, ${eM.toFixed(2)})`:`rgba(34, 211, 238, ${eM.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:eC,fontWeight:"recent"===tj?"700":"600","data-recent-panel-count":!0,"data-recent-panel-count-freshness-alpha":eM.toFixed(2),style:{transition:"fill 200ms ease-out, font-weight 200ms ease-out",fontVariantNumeric:"tabular-nums"},children:[e0.length,(0,a.jsx)("tspan",{opacity:"0.7","data-recent-panel-count-unit":!0,children:" flows"})]}),(0,a.jsx)("tspan",{fill:eL?"#d97706":"#fbbf24",fontWeight:"700","data-recent-panel-hot-count":eS,"data-recent-panel-hot-visible":eS>0?"true":"false",className:"anet-fade-in",opacity:+(eS>0),style:{transition:"opacity 300ms ease-out",fontVariantNumeric:"tabular-nums"},children:eS>0?(0,a.jsxs)(a.Fragment,{children:[` \xb7 ${eS}`,(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===e0.length?"true":"false",style:{opacity:+(0===e0.length),transition:"opacity 300ms ease-out",pointerEvents:"none"},children:[(0,a.jsxs)("text",{x:"115",y:"56",textAnchor:"middle",fill:eD.legendText,fontSize:"10",fontFamily:"monospace",fontStyle:"italic",letterSpacing:"0.2",opacity:.65,"data-recent-signal-empty":!0,"data-recent-signal-empty-breathes":eF?"false":"true",children:["no flow yet",!eF&&(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:eD.legendText,fontSize:"9",fontFamily:"monospace",fontStyle:"italic",letterSpacing:"0.15",opacity:.45,"data-recent-signal-empty-hint":!0,"data-recent-signal-empty-hint-breathes":eF?"false":"true",children:["send a message between agents",!eF&&(0,a.jsx)("animate",{attributeName:"opacity",values:"0.36;0.58;0.36",dur:"4.4s",begin:"-1.5s",repeatCount:"indefinite"})]})]}),0===e0.length?null:e0.slice(0,3).map((e,t)=>{let o,n=e.last_at?(0,m.relativeAgo)(e.last_at):null,r=n?n.replace(/\s+ago$/,""):null,s=ts===e.key,i=tl===e.key,l=s||i,d=e.last_at?(o=Math.max(0,(Date.now()-Date.parse(e.last_at))/1e3))<=30?.85:o<=300?.85-(o-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:()=>ti(e.key),onMouseLeave:()=>ti(t=>t===e.key?null:t),onClick:()=>td(t=>t===e.key?null:e.key),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),td(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?eD.legendAccent:"transparent",opacity:i?eL?.18:.22:s?eL?.1:.14:1,"data-recent-row-tint":e.key,"data-recent-row-tint-transition":"200ms",style:{transition:"fill 200ms ease-out, opacity 200ms ease-out"}}),(()=>{if(!e.last_at)return null;let o=Math.max(0,(Date.now()-Date.parse(e.last_at))/1e3),n=o<=30?1:o<=300?1-(o-30)/270*.7:.3;return(0,a.jsx)("circle",{cx:10,cy:38+16*t-3,fill:eD.legendAccent,opacity:n,"data-recent-row-freshness":e.key,"data-recent-row-freshness-alpha":n.toFixed(2),"data-recent-row-freshness-radius":s||i?2.5:2,"data-recent-row-freshness-lifted":s||i?"true":"false","data-recent-row-freshness-glow":n>.7?"true":"false",style:{pointerEvents:"none",r:`${s||i?2.5:2}px`,filter:n>.7?`drop-shadow(0 0 3px ${eD.legendAccent}80)`:void 0,transition:"opacity 200ms ease-out, r 200ms ease-out, filter 200ms ease-out"}})})(),(0,a.jsxs)("text",{x:"13",y:38+16*t,fill:l?eD.legendHeadline:eD.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","data-recent-row-text-transition":"200ms",style:{transition:"fill 200ms ease-out, letter-spacing 200ms ease-out",letterSpacing:i?"0.5px":s?"0.25px":"0px"},children:[S(e.from,6)," ","→"," ",S(e.to,6)," "," · ",(0,a.jsx)("tspan",{fill:c?eL?"#d97706":"#fbbf24":void 0,fontWeight:c||i?"700":"600",className:c&&!eF?"anet-recent-hot-pulse":void 0,"data-recent-row-count":!0,"data-recent-row-count-pinned":i?"true":"false","data-recent-row-count-font-weight":c||i?"700":"600","data-recent-row-count-hot-pulse":c&&!eF?"true":"false",...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:S(e.content,8)})]}),r?(0,a.jsx)("text",{x:"217",y:38+16*t,textAnchor:"end",fill:eD.legendText,fontSize:"8",fontFamily:"monospace",opacity:s||i?1:d,"data-recent-row-ts":e.key,"data-recent-row-ts-alpha":d.toFixed(2),"data-recent-row-ts-lifted":s||i?"true":"false",style:{pointerEvents:"none",transition:"opacity 200ms ease-out",fontVariantNumeric:"tabular-nums"},children:r}):null]},e.key)}),(eE=e0.length>3,ez=Math.max(0,e0.length-3),eT=`+ ${ez} more flow${1===ez?"":"s"}`,(0,a.jsxs)("g",{"data-recent-panel-more-nav":!0,"data-recent-panel-more-visible":eE?"true":"false",role:eE?"link":void 0,tabIndex:eE?0:-1,"aria-hidden":!eE||void 0,className:"anet-topo-svg-focus",style:{cursor:eE?"pointer":void 0,pointerEvents:eE?"all":"none",opacity:+!!eE,transition:"opacity 300ms ease-out"},onPointerDown:e=>e.stopPropagation(),onMouseEnter:()=>{eE&&tg(!0)},onMouseLeave:()=>tg(!1),onClick:()=>{eE&&eI.push("/messages")},onKeyDown:e=>{eE&&("Enter"===e.key||" "===e.key)&&(e.preventDefault(),eI.push("/messages"))},children:[(0,a.jsx)("title",{children:`${eT} — open /messages for the full list`}),(0,a.jsxs)("text",{x:"115",y:"82",textAnchor:"middle",fill:tf?eD.legendAccent:eD.legendText,fontSize:"9",fontFamily:"monospace",fontStyle:"italic",fontWeight:"500",letterSpacing:tf?"0.3":"0.2",opacity:tf?.85:.55,textDecoration:tf?"underline":"none","data-recent-panel-more":ez,"data-recent-panel-more-hovered":tf?"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:[`+ ${ez}`,(0,a.jsx)("tspan",{opacity:"0.7","data-recent-panel-more-unit":!0,children:` more flow${1===ez?"":"s"}`})]})]}))]}),(0,a.jsxs)("g",{transform:"translate(760, 16)","data-topo-panel":"legend","data-topo-panel-hovered":"legend"===tj?"true":"false",className:"anet-fade-in","data-topo-panel-fade-delay":800,style:{animationDelay:"800ms"},onMouseEnter:()=>tN("legend"),onMouseLeave:()=>tN(e=>"legend"===e?null:e),children:[(0,a.jsx)("rect",{x:"0",y:"0",width:"224",height:"88",rx:"10",fill:eD.legendBox.fill,stroke:"legend"===tj?eD.legendAccent:eD.legendBox.stroke,opacity:"legend"===tj?eL?1:.97:eL?.97:.92,style:{filter:"legend"===tj?eL?"drop-shadow(0 4px 12px rgba(15,23,42,0.14))":"drop-shadow(0 4px 12px rgba(0,0,0,0.65))":eL?"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:eD.legendHeadline,fontSize:"12",fontFamily:"monospace",fontWeight:tT?"800":"700",letterSpacing:"legend"===tj?"0.4":"0.3",style:{transition:"fill 200ms ease-out, letter-spacing 200ms ease-out, font-weight 200ms ease-out"},"data-legend-panel-title":!0,"data-legend-panel-title-fw":tT?"800":"700","data-legend-panel-title-active":tT?"true":"false",children:"legend"}),(0,a.jsxs)("text",{x:"211",y:"21",textAnchor:"end",fill:eD.legendAccent,fontSize:"10",fontFamily:"monospace",fontWeight:"legend"===tj?"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"]})]}),(eA=eq.length-e4,[{key:"working",y0:32,y1:36,fill:eL?"#059669":"#22c55e",label:"working",count:e4},{key:"idle",y0:50,y1:54,fill:eL?"#0d9488":"#2dd4bf",label:"idle",count:eA},{key:"offline",y0:68,y1:72,fill:eL?"#94a3b8":"#6b7280",label:"offline",count:eZ.length}]).map(e=>{let t,o,n,r=tT===e.key,s=tE===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:()=>tz(e.key),onMouseLeave:()=>tz(t=>t===e.key?null:t),onClick:()=>tA(t=>t===e.key?null:e.key),children:[(0,a.jsx)("title",{children:(o=(t="working"===e.key?eq.filter(e=>"working"===e.status).map(e=>e.alias):"idle"===e.key?eq.filter(e=>"working"!==e.status).map(e=>e.alias):eZ.map(e=>e.alias)).slice(0,8).join(", "),n=t.length>8?` + ${t.length-8} more`:"",[`${e.label} \xb7 ${e.count}`,t.length>0?`${o}${n}`: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:tE===e.key||r?e.fill:"transparent",opacity:r?eL?.14:.18:tE===e.key?eL?.08:.12:1,"data-legend-row-tinted":r?"pinned":tE===e.key?"hover":"none","data-legend-row-tint-transition":"200ms",style:{transition:"fill 200ms ease-out, opacity 200ms 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","data-legend-pin-ring-glow":r?"true":"false",style:{pointerEvents:"none",filter:r?`drop-shadow(0 0 3px ${e.fill}88)`:void 0,transition:"opacity 150ms ease-out, filter 200ms ease-out"}}),(0,a.jsx)("text",{x:"30",y:e.y1,fill:tE===e.key||r?eD.legendHeadline:eD.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||tE!==e.key?"false":"true","data-legend-row-label-font-weight":"500","data-legend-row-label-transition":"200ms",style:{transition:"fill 200ms ease-out, letter-spacing 200ms ease-out",letterSpacing:r?"0.5px":tE===e.key?"0.25px":"0px"},children:e.label}),(0,a.jsx)("text",{x:"215",y:e.y1,textAnchor:"end",fill:e.count>0&&(tE===e.key||r)?e.fill:eD.legendText,fontSize:"11",fontFamily:"monospace",fontWeight:r?"700":"600",opacity:0===e.count?eL?.28:.3:tE===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&&(tE===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:eD.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:eD.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===e0.length),"data-topo-brand-canvas-mark":!0,"data-topo-brand-canvas-mark-visible":0===e0.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:eD.legendText,mask:"url(#s2a-canvas-corner-mask)"})]})]}),(()=>{if(.01>Math.abs(tW.zoom-1)&&1>Math.abs(tW.x)&&1>Math.abs(tW.y)||eq.length+eZ.length===0)return null;let e=-tW.x/tW.zoom*.12,o=-tW.y/tW.zoom*.12058823529411765,n=1e3/tW.zoom*.12,r=680/tW.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:eD.legendBox.fill,borderColor:eD.containerBorder,cursor:"crosshair",color:eD.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,o=(e.clientY-t.top)/t.height;tI(e=>({...e,x:500-1e3*a*e.zoom,y:340-680*o*e.zoom}))},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),t6())},onMouseEnter:()=>ty(!0),onMouseLeave:()=>ty(!1),onFocus:()=>ty(!0),onBlur:()=>ty(!1),"data-topo-minimap":!0,"data-topo-minimap-hovered":tx?"true":"false",children:(0,a.jsxs)("svg",{width:120,height:82,viewBox:"0 0 120 82",style:{display:"block"},children:[[...eq,...eZ].map(e=>{let o=eQ[e.alias];if(!o)return null;let n=(e.network_id?t[`${e.network_id}:${e.alias}`]:void 0)??t[e.alias],r="offline"!==e.status||!!n,s=_(e,r,eL);return(0,a.jsx)("circle",{cx:.12*o.x,cy:.12058823529411765*o.y,r:r?1.9:1.2,fill:s.primary,opacity:e7===e.alias?1:r?tx?1:.95:.6,"data-topo-minimap-dot":e.alias,"data-topo-minimap-dot-online":r?"true":"false","data-topo-minimap-dot-opacity":e7===e.alias?1:r?tx?1:.95:.6,"data-topo-minimap-dot-opacity-rest":r?tx?1:.95:.6,"data-topo-minimap-dot-lifted":e7===e.alias?"true":"false","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,o),width:Math.max(0,Math.min(120-Math.max(0,e),n)),height:Math.max(0,Math.min(82-Math.max(0,o),r)),rx:"2",fill:"none",stroke:eD.legendAccent,strokeWidth:tx?"1.75":"1.5",strokeLinejoin:"round",opacity:tx?"1":"0.95","data-topo-minimap-viewport":!0,"data-topo-minimap-viewport-rx":"2","data-topo-minimap-viewport-smooth":t4?"true":"false","data-topo-minimap-viewport-hover":tx?"true":"false","data-topo-minimap-viewport-linejoin":"round","data-topo-minimap-viewport-glow":tW.zoom>1.5?"true":"false",style:{filter:tW.zoom>1.5?`drop-shadow(0 0 2px ${eD.legendAccent}80)`:void 0,transition:t4?"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, filter 200ms ease-out":"stroke-width 200ms ease-out, opacity 200ms ease-out, filter 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:eD.legendBox.fill,borderColor:eD.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],o)=>{let n=`size-${e}`;return(0,a.jsx)("button",{onClick:()=>{tU(n);if(t!==eV){eJ(!0),setTimeout(()=>eJ(!1),400),eU(t);try{localStorage.setItem("anet-topo-nodescale",String(t))}catch{}}},"aria-pressed":eV===t,"data-topo-chrome-nodesize":e,"data-topo-chrome-nodesize-active":eV===t?"true":"false","data-topo-chrome-nodesize-popping":tK===n?"true":"false",title:`Node size: ${"S"===e?"small":"M"===e?"medium":"large"}`,className:`px-2 py-1 transition-colors transition-transform duration-200 ease-out transform-gpu active:scale-95 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset ${o>0?"border-l":""} ${eV===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"}${tK===n?" anet-chrome-pop":""}`,style:{color:eV===t?void 0:eD.legendText,borderColor:eD.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:eD.legendBox.fill,borderColor:eD.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:()=>{tU("zoom-out"),t3(1/1.2)},"data-topo-chrome-zoom-out":!0,"data-topo-chrome-zoom-out-popping":"zoom-out"===tK?"true":"false",className:"group px-2 py-1 hover:bg-white/5 active:bg-white/10 transition-colors transition-transform duration-200 ease-out transform-gpu active:scale-95 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset",style:{color:eD.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,stroke-width] duration-200 ease-out group-hover:scale-110 group-hover:[stroke-width:2.8] transform-gpu${"zoom-out"===tK?" 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"===tK||"zoom-out"===tK?" anet-chrome-pop":""}`,"data-topo-chrome-zoom-level":!0,"data-topo-chrome-zoom-level-popping":"zoom-in"===tK||"zoom-out"===tK?"true":"false","data-topo-chrome-zoom-level-hover":tb?"true":"false",onMouseEnter:()=>tv(!0),onMouseLeave:()=>tv(!1),style:{color:eD.legendText,borderColor:eD.containerBorder,minWidth:46,display:"inline-block",letterSpacing:tb?"0.5px":"0",fontWeight:tb?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*tW.zoom),"%"]}),(0,a.jsx)("button",{onClick:()=>{tU("zoom-in"),t3(1.2)},"data-topo-chrome-zoom-in":!0,"data-topo-chrome-zoom-in-popping":"zoom-in"===tK?"true":"false",className:"group px-2 py-1 hover:bg-white/5 active:bg-white/10 transition-colors transition-transform duration-200 ease-out transform-gpu active:scale-95 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 focus-visible:ring-inset",style:{color:eD.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,stroke-width] duration-200 ease-out group-hover:scale-110 group-hover:[stroke-width:2.8] transform-gpu${"zoom-in"===tK?" anet-chrome-pop":""}`,"data-topo-chrome-zoom-in-icon":!0,children:(0,a.jsx)("path",{d:"M12 5v14M5 12h14"})})})]}),(0,a.jsx)("button",{onClick:()=>{tX(!0),setTimeout(()=>tX(!1),460),t6()},"data-topo-chrome-reset":!0,"data-topo-chrome-reset-spinning":tY?"true":"false","data-topo-chrome-reset-hover":tk?"true":"false",onMouseEnter:()=>tw(!0),onMouseLeave:()=>tw(!1),onFocus:()=>tw(!0),onBlur:()=>tw(!1),className:"p-1.5 rounded-md border hover:bg-white/5 active:bg-white/10 hover:-translate-y-px active:scale-95 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:eD.legendBox.fill,borderColor:eD.containerBorder,color:eD.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:tk&&!tY?"2.8":"2.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:tY?"anet-reset-spin":void 0,"data-topo-chrome-reset-icon":!0,"data-topo-chrome-reset-icon-stroke-width":tk&&!tY?"2.8":"2.5",style:{transform:tk&&!tY?"rotate(-8deg)":"rotate(0deg)",transformOrigin:"center",transition:"transform 200ms ease-out, stroke-width 200ms ease-out"},"data-topo-chrome-reset-icon-hover":tk&&!tY?"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:()=>{tU("fullscreen");let e=tD.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":tO?"true":"false","data-topo-chrome-fullscreen-popping":"fullscreen"===tK?"true":"false",className:`group p-1.5 rounded-md border hover:-translate-y-px active:scale-95 transition-colors transition-transform duration-200 ease-out transform-gpu focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-cyan-400/60 ${tO?"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"===tK?" anet-chrome-pop":""}`,"data-topo-chrome-fullscreen-hover-lift":"true",style:{borderColor:eD.containerBorder,...tO?{}:{background:eD.legendBox.fill,color:eD.legendText}},"aria-label":tO?"Exit fullscreen":"Enter fullscreen",title:tO?"Exit fullscreen":"Fullscreen",children:tO?(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,stroke-width] duration-200 ease-out group-hover:scale-110 group-hover:[stroke-width:2.8] 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,stroke-width] duration-200 ease-out group-hover:scale-110 group-hover:[stroke-width:2.8] 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"})})})]}),tG&&(0,a.jsx)(f,{alias:tG,onClose:()=>tJ(null)})]})]})}let L={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:""}},F={bg:"bg-gray-800/50 border-gray-700/30",text:"text-gray-500",dot:"bg-gray-500",glow:""};function D({session:e,hasSse:t,sseCount:o,onChat:s}){let i=t&&L[e.status]||F;return(0,a.jsxs)(n.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:",o]})]}),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)(I,{w:"2.5rem",h:"1.75rem"}),(0,a.jsx)(I,{w:"3.5rem",h:"0.75rem",className:"mt-2"}),(0,a.jsx)(I,{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)(I,{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)(I,{w:"6rem",h:"0.875rem"}),(0,a.jsx)(I,{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)(I,{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)(I,{w:"2rem",h:"1.25rem"}),(0,a.jsx)(I,{w:"2.5rem",h:"0.75rem",className:"mt-1"}),(0,a.jsx)(I,{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)(I,{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)(I,{w:"6rem",h:"0.875rem"})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(I,{w:"100%",h:"0.625rem"}),(0,a.jsx)(I,{w:"75%",h:"0.625rem"}),(0,a.jsx)(I,{w:"55%",h:"0.625rem"})]})]},e))})]})}function I({w:e,h:t,rounded:o,className:n}){return(0,a.jsx)("div",{className:`anet-skeleton-bar ${n||""}`,style:{width:e,height:t,borderRadius:o||"0.375rem"}})}var B=e.i(76161),R=e.i(98025),O=e.i(11449);function H(){let{setNetworkId:e}=(0,O.useNetworkId)(),[t,n]=(0,o.useState)({user:null,networks:[],currentNetwork:"",token:""}),[r,s]=(0,o.useState)(!1),[i,l]=(0,o.useState)(""),[d,c]=(0,o.useState)(""),[u,h]=(0,o.useState)(""),[p,m]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=sessionStorage.getItem("anet_v3_auth");if(e)try{n(JSON.parse(e))}catch{}},[]);let[f,g]=(0,o.useState)(!1),[x,y]=(0,o.useState)(""),[b,v]=(0,o.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};n(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 o={...t,currentNetwork:a.target.value};n(o),e(a.target.value),sessionStorage.setItem("anet_v3_auth",JSON.stringify(o))},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:()=>{n({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 Y=e.i(6694);function X({tabs:e,activeTab:t,onOpenTab:o,onCloseTab:n,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(),n(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)(K,{alias:e})},e))})]}),(0,a.jsx)(Y.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 K({alias:e}){return(0,a.jsx)(h.TaskChatPanel,{alias:e,onClose:()=>{},inline:!0})}function V({sessions:e,onClose:t}){let[n,r]=(0,o.useState)(new Set),[s,i]=(0,o.useState)(""),[l,d]=(0,o.useState)("normal"),[c,h]=(0,o.useState)(!1),[p,m]=(0,o.useState)([]),[f,g]=(0,o.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===n.size||c)return;h(!0),m([]);let e=[...n].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:()=>{n.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:n.size===x.length?"Deselect all":`Select all (${x.length})`}),(0,a.jsxs)("span",{className:"text-[10px] text-gray-600",children:[n.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 ${n.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===n.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 ${n.size} agent${n.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 U=e.i(2684),G=e.i(50111);e.s(["default",0,function(){let e,i,d,c,h;(0,o.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,o.useState)(window.innerWidth>=1024),[N,S]=(0,o.useState)(!1),$=function(){let[e,t]=(0,o.useState)([]),[a,n]=(0,o.useState)("");return{tabs:e,activeTab:a,openTab:e=>{t(t=>t.includes(e)?t:[...t,e]),n(e)},closeTab:e=>{t(t=>{let o=t.filter(t=>t!==e);return a===e&&n(o[o.length-1]||""),o})},closeAll:()=>{t([]),n("")},setActiveTab:n}}(),[_,M]=(0,o.useState)(!1),[C,E]=(0,o.useState)([]),[z,T]=(0,o.useState)("all"),[L,F]=(0,o.useState)(null),{mutate:I}=(0,G.useSWRConfig)(),O="1"!==t.default.env.NEXT_PUBLIC_DISABLE_SSE,{connected:Y,supported:K}=(0,U.useSSE)({url:"/api/hub/events",enabled:O,onEvent:e=>{if("node.renamed"===e.type){I("/api/hub/status");let t=e.data;t?.old_alias&&t?.new_alias&&F({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)&&(I("/api/hub/status"),I(e=>"string"==typeof e&&e.startsWith("/api/hub/tasks"),void 0,{revalidate:!0}))}});if((0,o.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):"--",eo=y?.version||"--",en=!!(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),o=+!!Z(t);if(a!==o)return o-a;let n=+("working"===e.status);return("working"===t.status)-n}),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:eo,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)(H,{})})]}),(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 ${en?"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)(n.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)(n.default,{href:`/tasks?status=${e}`,prefetch:!1,className:`px-2.5 py-1 rounded-md border text-xs ${R.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)(n.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)(n.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)(n.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:R.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 ${R.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)(A,{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:()=>T(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)(D,{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:()=>T("all"),className:"underline hover:text-gray-400",children:"Show all"})]})]})):(0,a.jsx)(B.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:K&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:`w-1.5 h-1.5 rounded-full ${Y?"bg-green-400":"bg-gray-600"}`}),Y?"SSE live":"SWR polling"]})}),_&&(0,a.jsx)(V,{sessions:m,onClose:()=>M(!1)}),$.tabs.length>0&&(0,a.jsx)(X,{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":308,"timestamp":190136877250,"id":4,"parentId":1,"tags":{},"startTime":1778998109124,"traceId":"a61172da4b6d626e"},{"name":"load-custom-routes","duration":571,"timestamp":190136877713,"id":5,"parentId":1,"tags":{},"startTime":1778998109124,"traceId":"a61172da4b6d626e"},{"name":"create-dist-dir","duration":918,"timestamp":190136878327,"id":6,"parentId":1,"tags":{},"startTime":1778998109125,"traceId":"a61172da4b6d626e"},{"name":"clean","duration":43222,"timestamp":190136880293,"id":7,"parentId":1,"tags":{},"startTime":1778998109127,"traceId":"a61172da4b6d626e"},{"name":"discover-routes","duration":11005,"timestamp":190137030487,"id":8,"parentId":1,"tags":{},"startTime":1778998109277,"traceId":"a61172da4b6d626e"},{"name":"create-root-mapping","duration":115,"timestamp":190137041559,"id":9,"parentId":1,"tags":{},"startTime":1778998109288,"traceId":"a61172da4b6d626e"},{"name":"generate-route-types","duration":45300,"timestamp":190137044894,"id":10,"parentId":1,"tags":{},"startTime":1778998109291,"traceId":"a61172da4b6d626e"},{"name":"public-dir-conflict-check","duration":132,"timestamp":190137090315,"id":11,"parentId":1,"tags":{},"startTime":1778998109337,"traceId":"a61172da4b6d626e"},{"name":"generate-routes-manifest","duration":6511,"timestamp":190137090609,"id":12,"parentId":1,"tags":{},"startTime":1778998109337,"traceId":"a61172da4b6d626e"},{"name":"run-turbopack","duration":7108570,"timestamp":190137123558,"id":14,"parentId":1,"tags":{},"startTime":1778998109370,"traceId":"a61172da4b6d626e"},{"name":"turbopack-build-events","duration":80,"timestamp":190137585436,"id":15,"parentId":1,"tags":{},"startTime":1778998109832,"traceId":"a61172da4b6d626e"},{"name":"run-typescript","duration":10780998,"timestamp":190144258686,"id":16,"parentId":1,"tags":{},"startTime":1778998116505,"traceId":"a61172da4b6d626e"},{"name":"generate-required-server-files","duration":2343,"timestamp":190155040759,"id":18,"parentId":1,"tags":{},"startTime":1778998127287,"traceId":"a61172da4b6d626e"},{"name":"check-static-error-page","duration":19719,"timestamp":190155325198,"id":20,"parentId":19,"tags":{},"startTime":1778998127571,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":608830,"timestamp":190155350262,"id":65,"parentId":22,"tags":{},"startTime":1778998127597,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":630171,"timestamp":190155329101,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1778998127575,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":642339,"timestamp":190155349794,"id":64,"parentId":21,"tags":{},"startTime":1778998127596,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":664769,"timestamp":190155327465,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1778998127574,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":707672,"timestamp":190155351184,"id":70,"parentId":29,"tags":{},"startTime":1778998127597,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":725883,"timestamp":190155333071,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1778998127579,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":721848,"timestamp":190155351605,"id":73,"parentId":33,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":739727,"timestamp":190155333805,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1778998127580,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":743923,"timestamp":190155351345,"id":71,"parentId":30,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":762115,"timestamp":190155333232,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1778998127580,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":766418,"timestamp":190155351417,"id":72,"parentId":32,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":784271,"timestamp":190155333654,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1778998127580,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":773308,"timestamp":190155351752,"id":76,"parentId":36,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":789197,"timestamp":190155335945,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1778998127582,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":775709,"timestamp":190155351691,"id":74,"parentId":34,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":793502,"timestamp":190155333948,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1778998127580,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":784115,"timestamp":190155351786,"id":77,"parentId":37,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":799785,"timestamp":190155336179,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1778998127582,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":788445,"timestamp":190155351724,"id":75,"parentId":35,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":804973,"timestamp":190155335249,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1778998127582,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":791473,"timestamp":190155351833,"id":79,"parentId":39,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":806901,"timestamp":190155336450,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1778998127583,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":793289,"timestamp":190155351803,"id":78,"parentId":38,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":808800,"timestamp":190155336341,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1778998127583,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":802084,"timestamp":190155351864,"id":81,"parentId":42,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":818112,"timestamp":190155336956,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1778998127583,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":807277,"timestamp":190155351896,"id":83,"parentId":45,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":821622,"timestamp":190155337596,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1778998127584,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":812199,"timestamp":190155351912,"id":84,"parentId":46,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":826452,"timestamp":190155337702,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1778998127584,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":815136,"timestamp":190155350861,"id":69,"parentId":28,"tags":{},"startTime":1778998127597,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":833143,"timestamp":190155332913,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1778998127579,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":818412,"timestamp":190155351926,"id":85,"parentId":47,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":832708,"timestamp":190155337840,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1778998127584,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":820142,"timestamp":190155350605,"id":67,"parentId":26,"tags":{},"startTime":1778998127597,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":838159,"timestamp":190155332626,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1778998127579,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":819329,"timestamp":190155351942,"id":86,"parentId":48,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":830417,"timestamp":190155340894,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1778998127587,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":825792,"timestamp":190155351880,"id":82,"parentId":44,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":840265,"timestamp":190155337455,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1778998127584,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":825939,"timestamp":190155351957,"id":87,"parentId":49,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":836844,"timestamp":190155341087,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1778998127587,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":827619,"timestamp":190155350483,"id":66,"parentId":25,"tags":{},"startTime":1778998127597,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":845702,"timestamp":190155332433,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1778998127579,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":841196,"timestamp":190155351851,"id":80,"parentId":40,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":856552,"timestamp":190155336556,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1778998127583,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":834680,"timestamp":190155358612,"id":90,"parentId":31,"tags":{},"startTime":1778998127605,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":859966,"timestamp":190155333356,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1778998127580,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":834620,"timestamp":190155361920,"id":93,"parentId":43,"tags":{},"startTime":1778998127608,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":859463,"timestamp":190155337122,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1778998127583,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":858260,"timestamp":190155351969,"id":88,"parentId":50,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":869085,"timestamp":190155341194,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1778998127587,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":855775,"timestamp":190155359914,"id":91,"parentId":24,"tags":{},"startTime":1778998127606,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":886098,"timestamp":190155329638,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1778998127576,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":857076,"timestamp":190155373131,"id":97,"parentId":54,"tags":{},"startTime":1778998127619,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":888159,"timestamp":190155342103,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1778998127588,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":878634,"timestamp":190155351983,"id":89,"parentId":51,"tags":{},"startTime":1778998127598,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":889374,"timestamp":190155341299,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1778998127588,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":872679,"timestamp":190155373149,"id":98,"parentId":55,"tags":{},"startTime":1778998127619,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":903563,"timestamp":190155342328,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1778998127589,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":880676,"timestamp":190155373177,"id":100,"parentId":58,"tags":{},"startTime":1778998127619,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":910517,"timestamp":190155343392,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1778998127590,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":894860,"timestamp":190155360701,"id":92,"parentId":41,"tags":{},"startTime":1778998127607,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":918958,"timestamp":190155336659,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1778998127583,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":896188,"timestamp":190155373315,"id":101,"parentId":59,"tags":{},"startTime":1778998127620,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":925965,"timestamp":190155343617,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1778998127590,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":920010,"timestamp":190155350728,"id":68,"parentId":27,"tags":{},"startTime":1778998127597,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":938031,"timestamp":190155332761,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1778998127579,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":924210,"timestamp":190155372338,"id":94,"parentId":23,"tags":{},"startTime":1778998127619,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":967241,"timestamp":190155329387,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1778998127576,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":926033,"timestamp":190155373347,"id":103,"parentId":62,"tags":{},"startTime":1778998127620,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":954942,"timestamp":190155344496,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1778998127591,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":931290,"timestamp":190155372389,"id":95,"parentId":52,"tags":{},"startTime":1778998127619,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":962103,"timestamp":190155341697,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1778998127588,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":923654,"timestamp":190155380936,"id":105,"parentId":60,"tags":{},"startTime":1778998127627,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":960801,"timestamp":190155343836,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1778998127590,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":896989,"timestamp":190155410983,"id":106,"parentId":57,"tags":{},"startTime":1778998127657,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":965250,"timestamp":190155342780,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1778998127589,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":937381,"timestamp":190155373165,"id":99,"parentId":56,"tags":{},"startTime":1778998127619,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":968059,"timestamp":190155342536,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1778998127589,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":952583,"timestamp":190155373338,"id":102,"parentId":61,"tags":{},"startTime":1778998127620,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":981636,"timestamp":190155344332,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1778998127591,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":956589,"timestamp":190155373086,"id":96,"parentId":53,"tags":{},"startTime":1778998127619,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":987857,"timestamp":190155341875,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1778998127588,"traceId":"a61172da4b6d626e"},{"name":"is-page-static","duration":979308,"timestamp":190155373359,"id":104,"parentId":63,"tags":{},"startTime":1778998127620,"traceId":"a61172da4b6d626e"},{"name":"check-page","duration":1008088,"timestamp":190155344646,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1778998127591,"traceId":"a61172da4b6d626e"},{"name":"static-check","duration":1028848,"timestamp":190155323939,"id":19,"parentId":1,"tags":{},"startTime":1778998127570,"traceId":"a61172da4b6d626e"}]
2
- [{"name":"write-routes-manifest","duration":638,"timestamp":190156366276,"id":108,"parentId":1,"tags":{},"startTime":1778998128613,"traceId":"a61172da4b6d626e"},{"name":"load-dotenv","duration":48,"timestamp":190156379481,"id":111,"parentId":110,"tags":{},"startTime":1778998128626,"traceId":"a61172da4b6d626e"},{"name":"run-export-path-map","duration":793,"timestamp":190156382811,"id":112,"parentId":110,"tags":{},"startTime":1778998128629,"traceId":"a61172da4b6d626e"},{"name":"next-export","duration":661191,"timestamp":190156378160,"id":110,"parentId":1,"tags":{},"startTime":1778998128624,"traceId":"a61172da4b6d626e"},{"name":"move-exported-app-not-found-","duration":550,"timestamp":190157044264,"id":113,"parentId":109,"tags":{},"startTime":1778998129291,"traceId":"a61172da4b6d626e"},{"name":"move-exported-app-global-error-","duration":432,"timestamp":190157044940,"id":114,"parentId":109,"tags":{},"startTime":1778998129291,"traceId":"a61172da4b6d626e"},{"name":"static-generation","duration":675445,"timestamp":190156371940,"id":109,"parentId":1,"tags":{},"startTime":1778998128618,"traceId":"a61172da4b6d626e"},{"name":"write-routes-manifest","duration":477,"timestamp":190157047642,"id":115,"parentId":1,"tags":{},"startTime":1778998129294,"traceId":"a61172da4b6d626e"},{"name":"print-tree-view","duration":4960,"timestamp":190157068461,"id":116,"parentId":1,"tags":{},"startTime":1778998129315,"traceId":"a61172da4b6d626e"},{"name":"write-route-bundle-stats","duration":12754,"timestamp":190157073453,"id":117,"parentId":1,"tags":{},"startTime":1778998129320,"traceId":"a61172da4b6d626e"},{"name":"telemetry-flush","duration":16953,"timestamp":190157086237,"id":118,"parentId":1,"tags":{},"startTime":1778998129333,"traceId":"a61172da4b6d626e"},{"name":"next-build","duration":20286498,"timestamp":190136816719,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1778998109063,"traceId":"a61172da4b6d626e"}]
1
+ [{"name":"generate-buildid","duration":358,"timestamp":202412568219,"id":4,"parentId":1,"tags":{},"startTime":1779010384815,"traceId":"bf6144689cc003d8"},{"name":"load-custom-routes","duration":541,"timestamp":202412568757,"id":5,"parentId":1,"tags":{},"startTime":1779010384815,"traceId":"bf6144689cc003d8"},{"name":"create-dist-dir","duration":6205,"timestamp":202412569449,"id":6,"parentId":1,"tags":{},"startTime":1779010384816,"traceId":"bf6144689cc003d8"},{"name":"clean","duration":36681,"timestamp":202412576566,"id":7,"parentId":1,"tags":{},"startTime":1779010384823,"traceId":"bf6144689cc003d8"},{"name":"discover-routes","duration":12632,"timestamp":202412714968,"id":8,"parentId":1,"tags":{},"startTime":1779010384961,"traceId":"bf6144689cc003d8"},{"name":"create-root-mapping","duration":178,"timestamp":202412727680,"id":9,"parentId":1,"tags":{},"startTime":1779010384974,"traceId":"bf6144689cc003d8"},{"name":"generate-route-types","duration":38942,"timestamp":202412731258,"id":10,"parentId":1,"tags":{},"startTime":1779010384978,"traceId":"bf6144689cc003d8"},{"name":"public-dir-conflict-check","duration":155,"timestamp":202412770328,"id":11,"parentId":1,"tags":{},"startTime":1779010385017,"traceId":"bf6144689cc003d8"},{"name":"generate-routes-manifest","duration":5997,"timestamp":202412770664,"id":12,"parentId":1,"tags":{},"startTime":1779010385017,"traceId":"bf6144689cc003d8"},{"name":"run-turbopack","duration":9293296,"timestamp":202412784691,"id":14,"parentId":1,"tags":{},"startTime":1779010385031,"traceId":"bf6144689cc003d8"},{"name":"turbopack-build-events","duration":130,"timestamp":202413127727,"id":15,"parentId":1,"tags":{},"startTime":1779010385374,"traceId":"bf6144689cc003d8"},{"name":"run-typescript","duration":11991419,"timestamp":202422088287,"id":16,"parentId":1,"tags":{},"startTime":1779010394335,"traceId":"bf6144689cc003d8"},{"name":"generate-required-server-files","duration":2971,"timestamp":202434081067,"id":18,"parentId":1,"tags":{},"startTime":1779010406327,"traceId":"bf6144689cc003d8"},{"name":"check-static-error-page","duration":17280,"timestamp":202434316223,"id":20,"parentId":19,"tags":{},"startTime":1779010406563,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":738984,"timestamp":202434337453,"id":65,"parentId":22,"tags":{},"startTime":1779010406584,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":756949,"timestamp":202434319681,"id":22,"parentId":19,"tags":{"page":"/_global-error"},"startTime":1779010406566,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":798620,"timestamp":202434337782,"id":69,"parentId":28,"tags":{},"startTime":1779010406584,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":813081,"timestamp":202434323443,"id":28,"parentId":19,"tags":{"page":"/api/hub/audit-log"},"startTime":1779010406570,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":843686,"timestamp":202434337720,"id":68,"parentId":27,"tags":{},"startTime":1779010406584,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":858209,"timestamp":202434323306,"id":27,"parentId":19,"tags":{"page":"/api/auth/v3"},"startTime":1779010406570,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":853733,"timestamp":202434338448,"id":73,"parentId":33,"tags":{},"startTime":1779010406585,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":867844,"timestamp":202434324424,"id":33,"parentId":19,"tags":{"page":"/api/hub/inbox"},"startTime":1779010406571,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":854905,"timestamp":202434337572,"id":66,"parentId":25,"tags":{},"startTime":1779010406584,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":869641,"timestamp":202434322961,"id":25,"parentId":19,"tags":{"page":"/api/auth/login"},"startTime":1779010406569,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":884763,"timestamp":202434338541,"id":74,"parentId":34,"tags":{},"startTime":1779010406585,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":898817,"timestamp":202434324572,"id":34,"parentId":19,"tags":{"page":"/api/hub/license"},"startTime":1779010406571,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":892521,"timestamp":202434338282,"id":72,"parentId":32,"tags":{},"startTime":1779010406585,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":906638,"timestamp":202434324261,"id":32,"parentId":19,"tags":{"page":"/api/hub/health"},"startTime":1779010406571,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":903420,"timestamp":202434337044,"id":64,"parentId":21,"tags":{},"startTime":1779010406583,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":922468,"timestamp":202434318064,"id":21,"parentId":19,"tags":{"page":"/_not-found"},"startTime":1779010406564,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":902358,"timestamp":202434338591,"id":76,"parentId":36,"tags":{},"startTime":1779010406585,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":915683,"timestamp":202434325338,"id":36,"parentId":19,"tags":{"page":"/api/hub/networks"},"startTime":1779010406572,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":919285,"timestamp":202434338573,"id":75,"parentId":35,"tags":{},"startTime":1779010406585,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":933213,"timestamp":202434324720,"id":35,"parentId":19,"tags":{"page":"/api/hub/messages"},"startTime":1779010406571,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":919486,"timestamp":202434338652,"id":79,"parentId":39,"tags":{},"startTime":1779010406585,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":932339,"timestamp":202434325839,"id":39,"parentId":19,"tags":{"page":"/api/hub/send"},"startTime":1779010406572,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":928542,"timestamp":202434338661,"id":80,"parentId":40,"tags":{},"startTime":1779010406585,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":941295,"timestamp":202434325967,"id":40,"parentId":19,"tags":{"page":"/api/hub/server-logs"},"startTime":1779010406572,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":940127,"timestamp":202434338687,"id":82,"parentId":44,"tags":{},"startTime":1779010406585,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":951970,"timestamp":202434326909,"id":44,"parentId":19,"tags":{"page":"/api/hub/session"},"startTime":1779010406573,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":940561,"timestamp":202434338673,"id":81,"parentId":42,"tags":{},"startTime":1779010406585,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":952888,"timestamp":202434326400,"id":42,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/health"},"startTime":1779010406573,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":946824,"timestamp":202434338710,"id":84,"parentId":46,"tags":{},"startTime":1779010406585,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":958125,"timestamp":202434327462,"id":46,"parentId":19,"tags":{"page":"/api/hub/status"},"startTime":1779010406574,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":949598,"timestamp":202434338620,"id":77,"parentId":37,"tags":{},"startTime":1779010406585,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":962724,"timestamp":202434325539,"id":37,"parentId":19,"tags":{"page":"/api/hub/nodes"},"startTime":1779010406572,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":951671,"timestamp":202434338696,"id":83,"parentId":45,"tags":{},"startTime":1779010406585,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":963095,"timestamp":202434327327,"id":45,"parentId":19,"tags":{"page":"/api/hub/stats"},"startTime":1779010406574,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":955652,"timestamp":202434338725,"id":85,"parentId":47,"tags":{},"startTime":1779010406585,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":966824,"timestamp":202434327600,"id":47,"parentId":19,"tags":{"page":"/api/hub/task-events"},"startTime":1779010406574,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":955825,"timestamp":202434338738,"id":86,"parentId":48,"tags":{},"startTime":1779010406585,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":965298,"timestamp":202434329298,"id":48,"parentId":19,"tags":{"page":"/api/hub/tasks"},"startTime":1779010406576,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":963317,"timestamp":202434338748,"id":87,"parentId":49,"tags":{},"startTime":1779010406585,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":972598,"timestamp":202434329519,"id":49,"parentId":19,"tags":{"page":"/api/hub/tmux"},"startTime":1779010406576,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":964122,"timestamp":202434338761,"id":88,"parentId":50,"tags":{},"startTime":1779010406585,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":973268,"timestamp":202434329657,"id":50,"parentId":19,"tags":{"page":"/api/hub/tokens"},"startTime":1779010406576,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":953878,"timestamp":202434350226,"id":90,"parentId":24,"tags":{},"startTime":1779010406597,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":983814,"timestamp":202434320334,"id":24,"parentId":19,"tags":{"page":"/api/anet/config"},"startTime":1779010406567,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":956452,"timestamp":202434351482,"id":91,"parentId":31,"tags":{},"startTime":1779010406598,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":984055,"timestamp":202434323923,"id":31,"parentId":19,"tags":{"page":"/api/hub/events"},"startTime":1779010406570,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":954882,"timestamp":202434357275,"id":93,"parentId":43,"tags":{},"startTime":1779010406604,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":985647,"timestamp":202434326560,"id":43,"parentId":19,"tags":{"page":"/api/hub/servers"},"startTime":1779010406573,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":976439,"timestamp":202434338773,"id":89,"parentId":51,"tags":{},"startTime":1779010406585,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":985492,"timestamp":202434329766,"id":51,"parentId":19,"tags":{"page":"/favicon.ico"},"startTime":1779010406576,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":979850,"timestamp":202434338214,"id":71,"parentId":30,"tags":{},"startTime":1779010406584,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":994357,"timestamp":202434323757,"id":30,"parentId":19,"tags":{"page":"/api/hub/broadcast"},"startTime":1779010406570,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":967455,"timestamp":202434355990,"id":92,"parentId":41,"tags":{},"startTime":1779010406602,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":997377,"timestamp":202434326114,"id":41,"parentId":19,"tags":{"page":"/api/hub/server/[hostname]/agents"},"startTime":1779010406572,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":1024832,"timestamp":202434338042,"id":70,"parentId":29,"tags":{},"startTime":1779010406584,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":1039372,"timestamp":202434323586,"id":29,"parentId":19,"tags":{"page":"/api/hub/auth"},"startTime":1779010406570,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":1042748,"timestamp":202434338638,"id":78,"parentId":38,"tags":{},"startTime":1779010406585,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":1055771,"timestamp":202434325701,"id":38,"parentId":19,"tags":{"page":"/api/hub/register"},"startTime":1779010406572,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":1020180,"timestamp":202434369395,"id":99,"parentId":56,"tags":{},"startTime":1779010406616,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":1058534,"timestamp":202434331114,"id":56,"parentId":19,"tags":{"page":"/nodes"},"startTime":1779010406577,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":1022487,"timestamp":202434369359,"id":96,"parentId":53,"tags":{},"startTime":1779010406616,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":1061473,"timestamp":202434330447,"id":53,"parentId":19,"tags":{"page":"/logs"},"startTime":1779010406577,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":1022909,"timestamp":202434369308,"id":94,"parentId":23,"tags":{},"startTime":1779010406616,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":1072229,"timestamp":202434320043,"id":23,"parentId":19,"tags":{"page":"/admin"},"startTime":1779010406566,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":1027634,"timestamp":202434369407,"id":100,"parentId":58,"tags":{},"startTime":1779010406616,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":1065138,"timestamp":202434331973,"id":58,"parentId":19,"tags":{"page":"/server-logs"},"startTime":1779010406578,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":1033398,"timestamp":202434369373,"id":97,"parentId":54,"tags":{},"startTime":1779010406616,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":1072207,"timestamp":202434330626,"id":54,"parentId":19,"tags":{"page":"/messages"},"startTime":1779010406577,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":1037010,"timestamp":202434369536,"id":101,"parentId":59,"tags":{},"startTime":1779010406616,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":1074389,"timestamp":202434332214,"id":59,"parentId":19,"tags":{"page":"/settings/networks"},"startTime":1779010406578,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":1040994,"timestamp":202434369573,"id":103,"parentId":62,"tags":{},"startTime":1779010406616,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":1077547,"timestamp":202434333060,"id":62,"parentId":19,"tags":{"page":"/tasks/[id]"},"startTime":1779010406579,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":1042939,"timestamp":202434369558,"id":102,"parentId":61,"tags":{},"startTime":1779010406616,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":1079664,"timestamp":202434332876,"id":61,"parentId":19,"tags":{"page":"/settings/tokens"},"startTime":1779010406579,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":1043024,"timestamp":202434369586,"id":104,"parentId":63,"tags":{},"startTime":1779010406616,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":1079399,"timestamp":202434333231,"id":63,"parentId":19,"tags":{"page":"/tasks"},"startTime":1779010406580,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":1075981,"timestamp":202434337650,"id":67,"parentId":26,"tags":{},"startTime":1779010406584,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":1090515,"timestamp":202434323163,"id":26,"parentId":19,"tags":{"page":"/api/auth/logout"},"startTime":1779010406569,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":1030865,"timestamp":202434390314,"id":105,"parentId":60,"tags":{},"startTime":1779010406637,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":1088823,"timestamp":202434332414,"id":60,"parentId":19,"tags":{"page":"/settings"},"startTime":1779010406579,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":1009194,"timestamp":202434417888,"id":106,"parentId":57,"tags":{},"startTime":1779010406664,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":1095747,"timestamp":202434331380,"id":57,"parentId":19,"tags":{"page":"/"},"startTime":1779010406578,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":1064883,"timestamp":202434369343,"id":95,"parentId":52,"tags":{},"startTime":1779010406616,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":1104021,"timestamp":202434330254,"id":52,"parentId":19,"tags":{"page":"/login"},"startTime":1779010406577,"traceId":"bf6144689cc003d8"},{"name":"is-page-static","duration":1101016,"timestamp":202434369383,"id":98,"parentId":55,"tags":{},"startTime":1779010406616,"traceId":"bf6144689cc003d8"},{"name":"check-page","duration":1139625,"timestamp":202434330861,"id":55,"parentId":19,"tags":{"page":"/node"},"startTime":1779010406577,"traceId":"bf6144689cc003d8"},{"name":"static-check","duration":1155509,"timestamp":202434315044,"id":19,"parentId":1,"tags":{},"startTime":1779010406561,"traceId":"bf6144689cc003d8"}]
2
+ [{"name":"write-routes-manifest","duration":584,"timestamp":202435485336,"id":108,"parentId":1,"tags":{},"startTime":1779010407732,"traceId":"bf6144689cc003d8"},{"name":"load-dotenv","duration":61,"timestamp":202435501484,"id":111,"parentId":110,"tags":{},"startTime":1779010407748,"traceId":"bf6144689cc003d8"},{"name":"run-export-path-map","duration":992,"timestamp":202435509143,"id":112,"parentId":110,"tags":{},"startTime":1779010407756,"traceId":"bf6144689cc003d8"},{"name":"next-export","duration":776461,"timestamp":202435499566,"id":110,"parentId":1,"tags":{},"startTime":1779010407746,"traceId":"bf6144689cc003d8"},{"name":"move-exported-app-not-found-","duration":696,"timestamp":202436279973,"id":113,"parentId":109,"tags":{},"startTime":1779010408526,"traceId":"bf6144689cc003d8"},{"name":"move-exported-app-global-error-","duration":574,"timestamp":202436280850,"id":114,"parentId":109,"tags":{},"startTime":1779010408527,"traceId":"bf6144689cc003d8"},{"name":"static-generation","duration":792871,"timestamp":202435491023,"id":109,"parentId":1,"tags":{},"startTime":1779010407737,"traceId":"bf6144689cc003d8"},{"name":"write-routes-manifest","duration":496,"timestamp":202436284236,"id":115,"parentId":1,"tags":{},"startTime":1779010408531,"traceId":"bf6144689cc003d8"},{"name":"print-tree-view","duration":4960,"timestamp":202436302029,"id":116,"parentId":1,"tags":{},"startTime":1779010408548,"traceId":"bf6144689cc003d8"},{"name":"write-route-bundle-stats","duration":13581,"timestamp":202436307114,"id":117,"parentId":1,"tags":{},"startTime":1779010408553,"traceId":"bf6144689cc003d8"},{"name":"telemetry-flush","duration":230819,"timestamp":202436320728,"id":118,"parentId":1,"tags":{},"startTime":1779010408567,"traceId":"bf6144689cc003d8"},{"name":"next-build","duration":24041344,"timestamp":202412510263,"id":1,"tags":{"buildMode":"default","version":"16.2.3","bundler":"turbopack","has-custom-webpack-config":"false","use-build-worker":"true"},"startTime":1779010384757,"traceId":"bf6144689cc003d8"}]