shieldcortex 2.4.23 → 2.4.24

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 (97) hide show
  1. package/dashboard/.next/standalone/dashboard/.next/BUILD_ID +1 -1
  2. package/dashboard/.next/standalone/dashboard/.next/build-manifest.json +2 -2
  3. package/dashboard/.next/standalone/dashboard/.next/prerender-manifest.json +3 -3
  4. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.html +2 -2
  5. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.rsc +1 -1
  6. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  7. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  8. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  9. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  10. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  11. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  12. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.html +1 -1
  13. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.rsc +2 -2
  14. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  15. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  16. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  17. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  18. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  19. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  20. package/dashboard/.next/standalone/dashboard/.next/server/app/index.html +1 -1
  21. package/dashboard/.next/standalone/dashboard/.next/server/app/index.rsc +3 -3
  22. package/dashboard/.next/standalone/dashboard/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  23. package/dashboard/.next/standalone/dashboard/.next/server/app/index.segments/_full.segment.rsc +3 -3
  24. package/dashboard/.next/standalone/dashboard/.next/server/app/index.segments/_head.segment.rsc +1 -1
  25. package/dashboard/.next/standalone/dashboard/.next/server/app/index.segments/_index.segment.rsc +2 -2
  26. package/dashboard/.next/standalone/dashboard/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  27. package/dashboard/.next/standalone/dashboard/.next/server/app/page/react-loadable-manifest.json +1 -1
  28. package/dashboard/.next/standalone/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
  29. package/dashboard/.next/standalone/dashboard/.next/server/chunks/ssr/dashboard_25b1b286._.js +1 -1
  30. package/dashboard/.next/standalone/dashboard/.next/server/pages/404.html +1 -1
  31. package/dashboard/.next/standalone/dashboard/.next/server/pages/500.html +2 -2
  32. package/dashboard/.next/standalone/dashboard/.next/server/server-reference-manifest.js +1 -1
  33. package/dashboard/.next/standalone/dashboard/.next/server/server-reference-manifest.json +1 -1
  34. package/dashboard/.next/standalone/dashboard/.next/static/chunks/{0327af3bf4830eac.js → 0ba8a0e679bf5c40.js} +1 -1
  35. package/dashboard/.next/standalone/dashboard/.next/static/chunks/17348ec48b354115.css +3 -0
  36. package/dashboard/.next/standalone/dashboard/.next/static/chunks/{21c4fc7176fbe8ee.js → caa049bd46f24dd8.js} +1 -1
  37. package/dashboard/.next/standalone/dashboard/.next/static/chunks/{511275d9224bafb2.js → cb7d5bff58e77e2c.js} +1 -1
  38. package/dist/api/visualization-server.d.ts.map +1 -1
  39. package/dist/api/visualization-server.js +54 -0
  40. package/dist/api/visualization-server.js.map +1 -1
  41. package/dist/cloud/sync.d.ts.map +1 -1
  42. package/dist/cloud/sync.js +7 -3
  43. package/dist/cloud/sync.js.map +1 -1
  44. package/dist/defence/index.d.ts +2 -0
  45. package/dist/defence/index.d.ts.map +1 -1
  46. package/dist/defence/index.js +2 -0
  47. package/dist/defence/index.js.map +1 -1
  48. package/dist/defence/skill-scanner/__tests__/skill-scanner.test.d.ts +12 -0
  49. package/dist/defence/skill-scanner/__tests__/skill-scanner.test.d.ts.map +1 -0
  50. package/dist/defence/skill-scanner/__tests__/skill-scanner.test.js +471 -0
  51. package/dist/defence/skill-scanner/__tests__/skill-scanner.test.js.map +1 -0
  52. package/dist/defence/skill-scanner/discover.d.ts +16 -0
  53. package/dist/defence/skill-scanner/discover.d.ts.map +1 -0
  54. package/dist/defence/skill-scanner/discover.js +85 -0
  55. package/dist/defence/skill-scanner/discover.js.map +1 -0
  56. package/dist/defence/skill-scanner/index.d.ts +20 -0
  57. package/dist/defence/skill-scanner/index.d.ts.map +1 -0
  58. package/dist/defence/skill-scanner/index.js +17 -0
  59. package/dist/defence/skill-scanner/index.js.map +1 -0
  60. package/dist/defence/skill-scanner/parser.d.ts +45 -0
  61. package/dist/defence/skill-scanner/parser.d.ts.map +1 -0
  62. package/dist/defence/skill-scanner/parser.js +373 -0
  63. package/dist/defence/skill-scanner/parser.js.map +1 -0
  64. package/dist/defence/skill-scanner/patterns.d.ts +37 -0
  65. package/dist/defence/skill-scanner/patterns.d.ts.map +1 -0
  66. package/dist/defence/skill-scanner/patterns.js +240 -0
  67. package/dist/defence/skill-scanner/patterns.js.map +1 -0
  68. package/dist/defence/skill-scanner/scan-skill.d.ts +75 -0
  69. package/dist/defence/skill-scanner/scan-skill.d.ts.map +1 -0
  70. package/dist/defence/skill-scanner/scan-skill.js +397 -0
  71. package/dist/defence/skill-scanner/scan-skill.js.map +1 -0
  72. package/dist/embeddings/generator.d.ts +5 -0
  73. package/dist/embeddings/generator.d.ts.map +1 -1
  74. package/dist/embeddings/generator.js +35 -5
  75. package/dist/embeddings/generator.js.map +1 -1
  76. package/dist/embeddings/index.d.ts +1 -1
  77. package/dist/embeddings/index.d.ts.map +1 -1
  78. package/dist/embeddings/index.js +1 -1
  79. package/dist/embeddings/index.js.map +1 -1
  80. package/dist/index.js +88 -0
  81. package/dist/index.js.map +1 -1
  82. package/dist/memory/contradiction.d.ts.map +1 -1
  83. package/dist/memory/contradiction.js +8 -2
  84. package/dist/memory/contradiction.js.map +1 -1
  85. package/dist/memory/store.d.ts.map +1 -1
  86. package/dist/memory/store.js +27 -0
  87. package/dist/memory/store.js.map +1 -1
  88. package/dist/server.d.ts.map +1 -1
  89. package/dist/server.js +35 -0
  90. package/dist/server.js.map +1 -1
  91. package/hooks/openclaw/cortex-memory/handler.js +75 -0
  92. package/package.json +1 -1
  93. package/scripts/session-start-hook.mjs +67 -1
  94. package/dashboard/.next/standalone/dashboard/.next/static/chunks/8e559e67e3d8782b.css +0 -3
  95. /package/dashboard/.next/standalone/dashboard/.next/static/{Ykr04kZxo_ae93TlaBU55 → G16ww7KrkUyZJT_fvjFk6}/_buildManifest.js +0 -0
  96. /package/dashboard/.next/standalone/dashboard/.next/static/{Ykr04kZxo_ae93TlaBU55 → G16ww7KrkUyZJT_fvjFk6}/_clientMiddlewareManifest.json +0 -0
  97. /package/dashboard/.next/standalone/dashboard/.next/static/{Ykr04kZxo_ae93TlaBU55 → G16ww7KrkUyZJT_fvjFk6}/_ssgManifest.js +0 -0
@@ -1 +1 @@
1
- <!DOCTYPE html><!--Ykr04kZxo_ae93TlaBU55--><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/8e559e67e3d8782b.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/da96df828f9a0188.js"/><script src="/_next/static/chunks/fc4e920d4281c89e.js" async=""></script><script src="/_next/static/chunks/d3d8171bf50ef87e.js" async=""></script><script src="/_next/static/chunks/turbopack-7cf1ece01d32a474.js" async=""></script><script src="/_next/static/chunks/e007ff86847a4042.js" async=""></script><script src="/_next/static/chunks/64ee9622541d967c.js" async=""></script><script src="/_next/static/chunks/d334b69bff7779be.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>ShieldCortex</title><meta name="description" content="AI Memory Security Dashboard — Defence pipeline, audit logs, quarantine review"/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased bg-slate-950"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/da96df828f9a0188.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[36111,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"Providers\"]\n3:I[57043,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n4:I[10445,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\",\"/_next/static/chunks/d334b69bff7779be.js\"],\"default\"]\n5:I[27657,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n6:I[56978,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"OutletBoundary\"]\n7:\"$Sreact.suspense\"\n9:I[56978,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"ViewportBoundary\"]\nb:I[56978,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"MetadataBoundary\"]\nd:I[30687,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n:HL[\"/_next/static/chunks/8e559e67e3d8782b.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"Ykr04kZxo_ae93TlaBU55\",\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/8e559e67e3d8782b.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/e007ff86847a4042.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/64ee9622541d967c.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark\",\"children\":[\"$\",\"body\",null,{\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased bg-slate-950\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$4\",\"errorStyles\":[],\"errorScripts\":[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/d334b69bff7779be.js\",\"async\":true}]],\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@8\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lc\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"8:null\nc:[[\"$\",\"title\",\"0\",{\"children\":\"ShieldCortex\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"AI Memory Security Dashboard — Defence pipeline, audit logs, quarantine review\"}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><!--G16ww7KrkUyZJT_fvjFk6--><html lang="en" class="dark"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/17348ec48b354115.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/da96df828f9a0188.js"/><script src="/_next/static/chunks/fc4e920d4281c89e.js" async=""></script><script src="/_next/static/chunks/d3d8171bf50ef87e.js" async=""></script><script src="/_next/static/chunks/turbopack-7cf1ece01d32a474.js" async=""></script><script src="/_next/static/chunks/e007ff86847a4042.js" async=""></script><script src="/_next/static/chunks/64ee9622541d967c.js" async=""></script><script src="/_next/static/chunks/d334b69bff7779be.js" async=""></script><meta name="robots" content="noindex"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><title>ShieldCortex</title><meta name="description" content="AI Memory Security Dashboard — Defence pipeline, audit logs, quarantine review"/><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body class="geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased bg-slate-950"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/da96df828f9a0188.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[36111,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"Providers\"]\n3:I[57043,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n4:I[10445,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\",\"/_next/static/chunks/d334b69bff7779be.js\"],\"default\"]\n5:I[27657,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n6:I[56978,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"OutletBoundary\"]\n7:\"$Sreact.suspense\"\n9:I[56978,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"ViewportBoundary\"]\nb:I[56978,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"MetadataBoundary\"]\nd:I[30687,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n:HL[\"/_next/static/chunks/17348ec48b354115.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"G16ww7KrkUyZJT_fvjFk6\",\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/17348ec48b354115.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/e007ff86847a4042.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/64ee9622541d967c.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"className\":\"dark\",\"children\":[\"$\",\"body\",null,{\"className\":\"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable antialiased bg-slate-950\",\"children\":[\"$\",\"$L2\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$4\",\"errorStyles\":[],\"errorScripts\":[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/d334b69bff7779be.js\",\"async\":true}]],\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L5\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@8\"}]}]]}],{},null,false,false]},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L9\",null,{\"children\":\"$La\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lb\",null,{\"children\":[\"$\",\"$7\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lc\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$d\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"a:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"8:null\nc:[[\"$\",\"title\",\"0\",{\"children\":\"ShieldCortex\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"AI Memory Security Dashboard — Defence pipeline, audit logs, quarantine review\"}]]\n"])</script></body></html>
@@ -1,2 +1,2 @@
1
- <!DOCTYPE html><!--Ykr04kZxo_ae93TlaBU55--><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/da96df828f9a0188.js"/><script src="/_next/static/chunks/fc4e920d4281c89e.js" async=""></script><script src="/_next/static/chunks/d3d8171bf50ef87e.js" async=""></script><script src="/_next/static/chunks/turbopack-7cf1ece01d32a474.js" async=""></script><script src="/_next/static/chunks/64ee9622541d967c.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: Internal Server Error.</title><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}
2
- @media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/da96df828f9a0188.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[57043,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n3:I[27657,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n4:I[56978,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[56978,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"ViewportBoundary\"]\n9:I[56978,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"MetadataBoundary\"]\nb:I[30687,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"Ykr04kZxo_ae93TlaBU55\",\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"title\",null,{\"children\":\"500: Internal Server Error.\"}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"lineHeight\":\"48px\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"paddingRight\":23,\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\"},\"children\":\"500\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"28px\"},\"children\":\"Internal Server Error.\"}]}]]}]}]}]]}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/64ee9622541d967c.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$La\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\na:[]\n"])</script></body></html>
1
+ <!DOCTYPE html><!--G16ww7KrkUyZJT_fvjFk6--><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/da96df828f9a0188.js"/><script src="/_next/static/chunks/fc4e920d4281c89e.js" async=""></script><script src="/_next/static/chunks/d3d8171bf50ef87e.js" async=""></script><script src="/_next/static/chunks/turbopack-7cf1ece01d32a474.js" async=""></script><script src="/_next/static/chunks/64ee9622541d967c.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: Internal Server Error.</title><script src="/_next/static/chunks/a6dad97d9634a72d.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}
2
+ @media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/da96df828f9a0188.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[57043,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n3:I[27657,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n4:I[56978,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n7:I[56978,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"ViewportBoundary\"]\n9:I[56978,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"MetadataBoundary\"]\nb:I[30687,[\"/_next/static/chunks/64ee9622541d967c.js\"],\"default\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"G16ww7KrkUyZJT_fvjFk6\",\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"title\",null,{\"children\":\"500: Internal Server Error.\"}]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"lineHeight\":\"48px\"},\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}\\n@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"paddingRight\":23,\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\"},\"children\":\"500\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"28px\"},\"children\":\"Internal Server Error.\"}]}]]}]}]}]]}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/64ee9622541d967c.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,false]},null,false,false],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L7\",null,{\"children\":\"$L8\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$L9\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$La\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$b\",\"$undefined\"],\"S\":true}\n"])</script><script>self.__next_f.push([1,"8:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\na:[]\n"])</script></body></html>
@@ -1 +1 @@
1
- self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"PguV23V9taQy5JW5SqfFTcwBZlBZQmyJUKl+XncFaRc=\"\n}"
1
+ self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"AGZlJc4BnHhkXZE43K4WC0y4WqJr7eQfNk/rx9G/+jE=\"\n}"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "node": {},
3
3
  "edge": {},
4
- "encryptionKey": "PguV23V9taQy5JW5SqfFTcwBZlBZQmyJUKl+XncFaRc="
4
+ "encryptionKey": "AGZlJc4BnHhkXZE43K4WC0y4WqJr7eQfNk/rx9G/+jE="
5
5
  }
@@ -839,4 +839,4 @@ No matching component was found for:
839
839
  #include <premultiplied_alpha_fragment>
840
840
 
841
841
  }
842
- `,clipping:!0}),this.isLineMaterial=!0,this.onBeforeCompile=function(){this.transparent?this.defines.USE_LINE_COLOR_ALPHA="1":delete this.defines.USE_LINE_COLOR_ALPHA},Object.defineProperties(this,{color:{enumerable:!0,get:function(){return this.uniforms.diffuse.value},set:function(e){this.uniforms.diffuse.value=e}},worldUnits:{enumerable:!0,get:function(){return"WORLD_UNITS"in this.defines},set:function(e){!0===e?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(e){this.uniforms.linewidth.value=e}},dashed:{enumerable:!0,get:function(){return"USE_DASH"in this.defines},set(e){!!e!="USE_DASH"in this.defines&&(this.needsUpdate=!0),!0===e?this.defines.USE_DASH="":delete this.defines.USE_DASH}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(e){this.uniforms.dashScale.value=e}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(e){this.uniforms.dashSize.value=e}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(e){this.uniforms.dashOffset.value=e}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(e){this.uniforms.gapSize.value=e}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(e){this.uniforms.opacity.value=e}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(e){this.uniforms.resolution.value.copy(e)}},alphaToCoverage:{enumerable:!0,get:function(){return"USE_ALPHA_TO_COVERAGE"in this.defines},set:function(e){!!e!="USE_ALPHA_TO_COVERAGE"in this.defines&&(this.needsUpdate=!0),!0===e?(this.defines.USE_ALPHA_TO_COVERAGE="",this.extensions.derivatives=!0):(delete this.defines.USE_ALPHA_TO_COVERAGE,this.extensions.derivatives=!1)}}}),this.setValues(e)}}let dj=dV>=125?"uv1":"uv2",dG=new e1,dW=new ez,dX=new ez,dq=new e1,dY=new e1,dZ=new e1,dJ=new ez,d$=new tT,dK=new o0,dQ=new ez,d0=new e9,d1=new tg,d2=new e1;function d3(e,t,n){return d2.set(0,0,-t,1).applyMatrix4(e.projectionMatrix),d2.multiplyScalar(1/d2.w),d2.x=d/n.width,d2.y=d/n.height,d2.applyMatrix4(e.projectionMatrixInverse),d2.multiplyScalar(1/d2.w),Math.abs(Math.max(d2.x,d2.y))}class d4 extends nY{constructor(e=new dB,t=new dH({color:0xffffff*Math.random()})){super(e,t),this.isLineSegments2=!0,this.type="LineSegments2"}computeLineDistances(){let e=this.geometry,t=e.attributes.instanceStart,n=e.attributes.instanceEnd,i=new Float32Array(2*t.count);for(let e=0,r=0,a=t.count;e<a;e++,r+=2)dW.fromBufferAttribute(t,e),dX.fromBufferAttribute(n,e),i[r]=0===r?0:i[r-1],i[r+1]=i[r]+dW.distanceTo(dX);let r=new oD(i,2,1);return e.setAttribute("instanceDistanceStart",new iu(r,1,0)),e.setAttribute("instanceDistanceEnd",new iu(r,1,1)),this}raycast(e,t){let n,i,r=this.material.worldUnits,a=e.camera;null!==a||r||console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.');let s=void 0!==e.params.Line2&&e.params.Line2.threshold||0;h=e.ray;let o=this.matrixWorld,l=this.geometry,u=this.material;if(d=u.linewidth+s,null===l.boundingSphere&&l.computeBoundingSphere(),d1.copy(l.boundingSphere).applyMatrix4(o),r)n=.5*d;else{let e=Math.max(a.near,d1.distanceToPoint(h.origin));n=d3(a,e,u.resolution)}if(d1.radius+=n,!1!==h.intersectsSphere(d1)){if(null===l.boundingBox&&l.computeBoundingBox(),d0.copy(l.boundingBox).applyMatrix4(o),r)i=.5*d;else{let e=Math.max(a.near,d0.distanceToPoint(h.origin));i=d3(a,e,u.resolution)}d0.expandByScalar(i),!1!==h.intersectsBox(d0)&&(r?function(e,t){let n=e.matrixWorld,i=e.geometry,r=i.attributes.instanceStart,a=i.attributes.instanceEnd,s=Math.min(i.instanceCount,r.count);for(let i=0;i<s;i++){dK.start.fromBufferAttribute(r,i),dK.end.fromBufferAttribute(a,i),dK.applyMatrix4(n);let s=new ez,o=new ez;h.distanceSqToSegment(dK.start,dK.end,o,s),o.distanceTo(s)<.5*d&&t.push({point:o,pointOnLine:s,distance:h.origin.distanceTo(o),object:e,face:null,faceIndex:i,uv:null,[dj]:null})}}(this,t):function(e,t,n){let i=t.projectionMatrix,r=e.material.resolution,a=e.matrixWorld,s=e.geometry,o=s.attributes.instanceStart,l=s.attributes.instanceEnd,u=Math.min(s.instanceCount,o.count),c=-t.near;h.at(1,dZ),dZ.w=1,dZ.applyMatrix4(t.matrixWorldInverse),dZ.applyMatrix4(i),dZ.multiplyScalar(1/dZ.w),dZ.x*=r.x/2,dZ.y*=r.y/2,dZ.z=0,dJ.copy(dZ),d$.multiplyMatrices(t.matrixWorldInverse,a);for(let t=0;t<u;t++){if(dq.fromBufferAttribute(o,t),dY.fromBufferAttribute(l,t),dq.w=1,dY.w=1,dq.applyMatrix4(d$),dY.applyMatrix4(d$),dq.z>c&&dY.z>c)continue;if(dq.z>c){let e=dq.z-dY.z,t=(dq.z-c)/e;dq.lerp(dY,t)}else if(dY.z>c){let e=dY.z-dq.z,t=(dY.z-c)/e;dY.lerp(dq,t)}dq.applyMatrix4(i),dY.applyMatrix4(i),dq.multiplyScalar(1/dq.w),dY.multiplyScalar(1/dY.w),dq.x*=r.x/2,dq.y*=r.y/2,dY.x*=r.x/2,dY.y*=r.y/2,dK.start.copy(dq),dK.start.z=0,dK.end.copy(dY),dK.end.z=0;let s=dK.closestPointToPointParameter(dJ,!0);dK.at(s,dQ);let u=eU.lerp(dq.z,dY.z,s),p=u>=-1&&u<=1,f=dJ.distanceTo(dQ)<.5*d;if(p&&f){dK.start.fromBufferAttribute(o,t),dK.end.fromBufferAttribute(l,t),dK.start.applyMatrix4(a),dK.end.applyMatrix4(a);let i=new ez,r=new ez;h.distanceSqToSegment(dK.start,dK.end,r,i),n.push({point:r,pointOnLine:i,distance:h.origin.distanceTo(r),object:e,face:null,faceIndex:t,uv:null,[dj]:null})}}}(this,a,t))}}onBeforeRender(e){let t=this.material.uniforms;t&&t.resolution&&(e.getViewport(dG),this.material.uniforms.resolution.value.set(dG.z,dG.w))}}class d5 extends dB{constructor(){super(),this.isLineGeometry=!0,this.type="LineGeometry"}setPositions(e){let t=e.length-3,n=new Float32Array(2*t);for(let i=0;i<t;i+=3)n[2*i]=e[i],n[2*i+1]=e[i+1],n[2*i+2]=e[i+2],n[2*i+3]=e[i+3],n[2*i+4]=e[i+4],n[2*i+5]=e[i+5];return super.setPositions(n),this}setColors(e,t=3){let n=e.length-t,i=new Float32Array(2*n);if(3===t)for(let r=0;r<n;r+=t)i[2*r]=e[r],i[2*r+1]=e[r+1],i[2*r+2]=e[r+2],i[2*r+3]=e[r+3],i[2*r+4]=e[r+4],i[2*r+5]=e[r+5];else for(let r=0;r<n;r+=t)i[2*r]=e[r],i[2*r+1]=e[r+1],i[2*r+2]=e[r+2],i[2*r+3]=e[r+3],i[2*r+4]=e[r+4],i[2*r+5]=e[r+5],i[2*r+6]=e[r+6],i[2*r+7]=e[r+7];return super.setColors(i,t),this}fromLine(e){let t=e.geometry;return this.setPositions(t.attributes.position.array),this}}class d6 extends d4{constructor(e=new d5,t=new dH({color:0xffffff*Math.random()})){super(e,t),this.isLine2=!0,this.type="Line2"}}let d8=P.forwardRef(function({points:e,color:t=0xffffff,vertexColors:n,linewidth:i,lineWidth:r,segments:a,dashed:s,...o},l){var u,c;let h=hA(e=>e.size),d=P.useMemo(()=>a?new d4:new d6,[a]),[p]=P.useState(()=>new dH),f=(null==n||null==(u=n[0])?void 0:u.length)===4?4:3,m=P.useMemo(()=>{let i=a?new dB:new d5,r=e.map(e=>{let t=Array.isArray(e);return e instanceof ez||e instanceof e1?[e.x,e.y,e.z]:e instanceof eO?[e.x,e.y,0]:t&&3===e.length?[e[0],e[1],e[2]]:t&&2===e.length?[e[0],e[1],0]:e});if(i.setPositions(r.flat()),n){t=0xffffff;let e=n.map(e=>e instanceof no?e.toArray():e);i.setColors(e.flat(),f)}return i},[e,a,n,f]);return P.useLayoutEffect(()=>{d.computeLineDistances()},[e,d]),P.useLayoutEffect(()=>{s?p.defines.USE_DASH="":delete p.defines.USE_DASH,p.needsUpdate=!0},[s,p]),P.useEffect(()=>()=>{m.dispose(),p.dispose()},[m]),P.createElement("primitive",dc({object:d,ref:l},o),P.createElement("primitive",{object:m,attach:"geometry"}),P.createElement("primitive",dc({object:p,attach:"material",color:t,vertexColors:!!n,resolution:[h.width,h.height],linewidth:null!=(c=null!=i?i:r)?c:1,dashed:s,transparent:4===f},o)))}),d9=P.forwardRef(function({points:e,closed:t=!1,curveType:n="centripetal",tension:i=.5,segments:r=20,vertexColors:a,...s},o){let l=P.useMemo(()=>new ai(e.map(e=>e instanceof ez?e:new ez(...e)),t,n,i),[e,t,n,i]),u=P.useMemo(()=>l.getPoints(r),[l,r]),c=P.useMemo(()=>{if(!a||a.length<2)return;if(a.length===r+1)return a;let e=a.map(e=>e instanceof no?e:new no(...e));t&&e.push(e[0].clone());let n=[e[0]],i=r/(e.length-1);for(let t=1;t<r;t++){let r=t%i/i,a=Math.floor(t/i);n.push(e[a].clone().lerp(e[a+1],r))}return n.push(e[e.length-1]),n},[a,r]);return P.createElement(d8,dc({ref:o,points:u,vertexColors:c},s))}),d7={references:{color:"#22d3ee",label:"References"},extends:{color:"#34d399",label:"Extends"},contradicts:{color:"#f87171",label:"Contradicts"},related:{color:"#a78bfa",label:"Related"}},pe=d7.related,pt="#22d3ee";function pn({curve:e,speed:t=1,delay:n=0}){let i=(0,P.useRef)(null),r=(0,P.useRef)(null),a=(0,P.useRef)(n);return hC((n,s)=>{if(!i.current)return;a.current+=s*t*1.2,a.current>1&&(a.current=0);let o=e.getPoint(a.current);i.current.position.copy(o);let l=Math.min(5*a.current,1)*Math.min((1-a.current)*5,1);i.current.material.opacity=l,r.current&&(r.current.position.copy(o),r.current.material.opacity=.25*l)}),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("mesh",{ref:i,children:[(0,R.jsx)("sphereGeometry",{args:[.04,8,8]}),(0,R.jsx)("meshBasicMaterial",{color:pt,transparent:!0,opacity:1})]}),(0,R.jsxs)("mesh",{ref:r,children:[(0,R.jsx)("sphereGeometry",{args:[.08,6,6]}),(0,R.jsx)("meshBasicMaterial",{color:pt,transparent:!0,opacity:.2,depthWrite:!1})]})]})}function pi({link:e,sourcePos:t,targetPos:n,isHovered:i,onHover:r,onUnhover:a}){let s=d7[e.relationship]||pe,{curve:o,points:l}=(0,P.useMemo)(()=>{let i=new ez(t.x,t.y,t.z),r=new ez(n.x,n.y,n.z),a=new ez().lerpVectors(i,r,.5),s=new ez().subVectors(r,i),o=s.length(),l=new ez(-s.y,s.x,.5*s.z).normalize(),u=.15*o*(e.strength+.5),c=new ez().lerpVectors(i,a,.33);c.add(l.clone().multiplyScalar(u));let h=new ez().lerpVectors(i,a,.66);h.add(l.clone().multiplyScalar(.5*u));let d=new ez().lerpVectors(a,r,.33);d.add(l.clone().multiplyScalar(-(.5*u)));let p=new ez().lerpVectors(a,r,.66);p.add(l.clone().multiplyScalar(-u));let f=new ai([i,c,h,a,d,p,r]),m=f.getPoints(32);return{curve:f,points:m}},[t,n,e.strength]),u=s.color,c=i?4:1.5+2*e.strength;return(0,R.jsxs)("group",{children:[(0,R.jsx)(d9,{points:l,color:u,lineWidth:c,transparent:!0,opacity:i?1:.35}),(0,R.jsx)(pn,{curve:o,speed:1.2+e.strength,delay:0}),(0,R.jsx)(pn,{curve:o,speed:1.2+e.strength,delay:.5}),e.strength>.3&&(0,R.jsx)(pn,{curve:o,speed:1.5+e.strength,delay:.25}),e.strength>.6&&(0,R.jsx)(pn,{curve:o,speed:1.8+e.strength,delay:.75}),(0,R.jsxs)("mesh",{position:[(t.x+n.x)/2,(t.y+n.y)/2,(t.z+n.z)/2],onPointerEnter:r,onPointerLeave:a,children:[(0,R.jsx)("sphereGeometry",{args:[.5,8,8]}),(0,R.jsx)("meshBasicMaterial",{visible:!1})]}),i&&(0,R.jsx)(dI,{position:[(t.x+n.x)/2,(t.y+n.y)/2+.5,(t.z+n.z)/2],center:!0,style:{pointerEvents:"none"},children:(0,R.jsxs)("div",{className:"px-3 py-2 rounded-lg shadow-xl text-xs whitespace-nowrap backdrop-blur-sm",style:{backgroundColor:"rgba(15, 23, 42, 0.95)",border:`2px solid ${s.color}`,color:"white"},children:[(0,R.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,R.jsx)("span",{className:"w-2 h-2 rounded-full animate-pulse",style:{backgroundColor:s.color}}),(0,R.jsx)("span",{className:"font-semibold",style:{color:s.color},children:s.label})]}),(0,R.jsxs)("div",{className:"text-slate-300 text-[10px] space-y-0.5",children:[(0,R.jsx)("div",{className:"truncate max-w-[180px]",children:e.source_title||`Memory #${e.source_id}`}),(0,R.jsx)("div",{className:"text-slate-500",children:"↓"}),(0,R.jsx)("div",{className:"truncate max-w-[180px]",children:e.target_title||`Memory #${e.target_id}`}),(0,R.jsxs)("div",{className:"mt-1 pt-1 border-t border-slate-700",children:["Strength: ",(0,R.jsxs)("span",{style:{color:s.color},children:[(100*e.strength).toFixed(0),"%"]})]})]})]})})]})}function pr({memories:e,links:t,memoryPositions:n}){let[i,r]=(0,P.useState)(null),a=(0,P.useMemo)(()=>{let i=new Set(e.map(e=>e.id));return t.filter(e=>i.has(e.source_id)&&i.has(e.target_id)&&n.has(e.source_id)&&n.has(e.target_id))},[e,t,n]),s=(0,P.useCallback)(e=>{r(e)},[]),o=(0,P.useCallback)(()=>{r(null)},[]);return 0===a.length?null:(0,R.jsx)("group",{name:"neural-connections",children:a.map(e=>{let t=n.get(e.source_id),r=n.get(e.target_id),a=`${e.source_id}-${e.target_id}`;return(0,R.jsx)(pi,{link:e,sourcePos:t,targetPos:r,isHovered:i===a,onHover:()=>s(a),onUnhover:o},a)})})}let pa=[[1,1,0],[-1,1,0],[1,-1,0],[-1,-1,0],[1,0,1],[-1,0,1],[1,0,-1],[-1,0,-1],[0,1,1],[0,-1,1],[0,1,-1],[0,-1,-1]],ps=new Uint8Array(512),po=new Uint8Array(512);!function(e=0){let t=new Uint8Array(256);for(let e=0;e<256;e++)t[e]=e;let n=e;for(let e=255;e>0;e--){let i=(n=0x41c64e6d*n+12345&0x7fffffff)%(e+1);[t[e],t[i]]=[t[i],t[e]]}for(let e=0;e<512;e++)ps[e]=t[255&e],po[e]=ps[e]%12}(42);let pl=1/3,pu=1/6;function pc(e,t,n,i){return e[0]*t+e[1]*n+e[2]*i}function ph(e,t,n){let i,r,a,s,o,l,u=(e+t+n)*pl,c=Math.floor(e+u),h=Math.floor(t+u),d=Math.floor(n+u),p=(c+h+d)*pu,f=e-(c-p),m=t-(h-p),g=n-(d-p);f>=m?m>=g?(i=1,r=0,a=0,s=1,o=1,l=0):(f>=g?(i=1,r=0,a=0):(i=0,r=0,a=1),s=1,o=0,l=1):m<g?(i=0,r=0,a=1,s=0,o=1,l=1):f<g?(i=0,r=1,a=0,s=0,o=1,l=1):(i=0,r=1,a=0,s=1,o=1,l=0);let v=f-i+pu,x=m-r+pu,y=g-a+pu,_=f-s+2*pu,b=m-o+2*pu,S=g-l+2*pu,M=f-1+3*pu,w=m-1+3*pu,T=g-1+3*pu,E=255&c,A=255&h,C=255&d,R=0,P=0,I=0,L=0,N=.6-f*f-m*m-g*g;if(N>=0){let e=po[E+ps[A+ps[C]]];N*=N,R=N*N*pc(pa[e],f,m,g)}let D=.6-v*v-x*x-y*y;if(D>=0){let e=po[E+i+ps[A+r+ps[C+a]]];D*=D,P=D*D*pc(pa[e],v,x,y)}let U=.6-_*_-b*b-S*S;if(U>=0){let e=po[E+s+ps[A+o+ps[C+l]]];U*=U,I=U*U*pc(pa[e],_,b,S)}let O=.6-M*M-w*w-T*T;if(O>=0){let e=po[E+1+ps[A+1+ps[C+1]]];O*=O,L=O*O*pc(pa[e],M,w,T)}return 32*(R+P+I+L)}function pd(e,t,n,i=4,r=2,a=.5){let s=0,o=1,l=1,u=0;for(let c=0;c<i;c++)s+=o*ph(e*l,t*l,n*l),u+=o,o*=a,l*=r;return s/u}function pp({opacity:e=.05,showWireframe:t=!0}){let n=(0,P.useRef)(null),i=(0,P.useRef)(null),r=(0,P.useMemo)(()=>{let e=function(){let e=new aB(3.5,5),t=e.attributes.position.array,n=new Float32Array(t.length);for(let e=0;e<t.length;e+=3){let i=t[e],r=t[e+1],a=t[e+2],s=Math.sqrt(i*i+r*r+a*a),o=i/s,l=r/s,u=a/s,c=.4*pd(2*o,2*l,2*u,3,2,.5)+.15*pd(4*o,4*l,4*u,2,2,.5)+.5*(.08*function(e,t,n,i=4,r=2,a=.5){let s=0,o=1,l=1,u=1;for(let c=0;c<i;c++){let i=ph(e*l,t*l,n*l);i=1-Math.abs(i),i*=i*u,u=Math.min(1,Math.max(0,2*i)),s+=i*o,o*=a,l*=r}return s}(6*o,6*l,6*u,2,2,.5)),h=1.2+.15*Math.abs(u),d=.85+.1*Math.abs(o),p=1.1-.1*Math.abs(l),f=s*(1+c+(.1>Math.abs(o)?-.15*(1-Math.abs(o)/.1):0)+.15*(Math.abs(o)>.5&&u<0));t[e]=o*f*h,t[e+1]=l*f*d,t[e+2]=u*f*p;let m=(u+1)/2;n[e]=.1+.2*m,n[e+1]=.05+(1-m)*.15,n[e+2]=.2+(1-m)*.3}return e.computeVertexNormals(),e.setAttribute("color",new ny(n,3)),e}();return n.current=e,e},[]),a=(0,P.useMemo)(()=>{let t=new nh({color:"#333333",wireframe:!0,transparent:!0,opacity:e});return i.current=t,t},[e]);return((0,P.useEffect)(()=>()=>{n.current&&(n.current.dispose(),n.current=null),i.current&&(i.current.dispose(),i.current=null)},[]),t)?(0,R.jsx)("mesh",{geometry:r,material:a}):null}let pf=new aG(.1,.15,32),pm=new aX(.1,16,16);function pg({pulse:e,onComplete:t}){let n=(0,P.useRef)(null),i=(0,P.useRef)(null);return hC(r=>{if(!n.current)return;null===i.current&&(i.current=r.clock.elapsedTime);let a=(r.clock.elapsedTime-i.current)/(e.duration/1e3);a>=1?t():(n.current.scale.setScalar(.5+3*a),n.current.material.opacity=(1-a)*.8)}),(0,R.jsx)("mesh",{ref:n,position:e.position,rotation:[Math.PI/2,0,0],geometry:pf,children:(0,R.jsx)("meshBasicMaterial",{color:e.color,transparent:!0,opacity:.8,side:2,depthWrite:!1})})}function pv({pulse:e,onComplete:t}){let n=(0,P.useRef)(null),i=(0,P.useRef)(null);return hC(r=>{if(!n.current)return;null===i.current&&(i.current=r.clock.elapsedTime);let a=(r.clock.elapsedTime-i.current)/(e.duration/1e3);if(a>=1)return void t();let s=Math.sin(a*Math.PI);n.current.scale.setScalar(.8+.6*s),n.current.material.opacity=.9*s}),(0,R.jsx)("mesh",{ref:n,position:e.position,geometry:pm,children:(0,R.jsx)("meshBasicMaterial",{color:e.color,transparent:!0,opacity:.9,depthWrite:!1})})}function px({pulse:e,onComplete:t}){let n=(0,P.useRef)(null),i=(0,P.useRef)(null),r=(0,P.useRef)(null),a=(0,P.useMemo)(()=>{let t=[new ez(...e.position),new ez(...e.targetPosition||e.position)];return new rT(new nO().setFromPoints(t),new rv({color:e.color,transparent:!0,opacity:.8}))},[e.position,e.targetPosition,e.color]);return hC(s=>{if(!r.current){n.current&&!n.current.children.length&&(n.current.add(a),r.current=a);return}null===i.current&&(i.current=s.clock.elapsedTime);let o=(s.clock.elapsedTime-i.current)/(e.duration/1e3);if(o>=1)return void t();let l=Math.sin(o*Math.PI);r.current.material.opacity=.8*l}),(0,R.jsx)("group",{ref:n})}function py({pulses:e,onPulseComplete:t}){return(0,R.jsx)("group",{name:"activity-pulses",children:e.map(e=>{switch(e.type){case"created":return(0,R.jsx)(pg,{pulse:e,onComplete:()=>t(e.id)},e.id);case"accessed":return(0,R.jsx)(pv,{pulse:e,onComplete:()=>t(e.id)},e.id);case"linked":return(0,R.jsx)(px,{pulse:e,onComplete:()=>t(e.id)},e.id);default:return null}})})}var p_=e.i(94156);function pb({memories:e=[],links:t=[],selectedMemory:n,onSelectMemory:i,colorMode:r,pulses:a,onPulseComplete:s,memoryCategoryCounts:o,categoryFilter:l}){let u=(0,P.useMemo)(()=>e&&0!==e.length?Array.from(new Map(e.map(e=>[e.id,e])).values()).map(e=>({memory:e,position:(0,dL.calculateMemoryPosition)(e)})):[],[e]),c=(0,P.useMemo)(()=>{let e=new Map;return u.forEach(({memory:t,position:n})=>{e.set(t.id,n)}),e},[u]);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("ambientLight",{intensity:.6,color:"#ffffff"}),(0,R.jsx)("directionalLight",{position:[5,5,5],intensity:.3,color:"#ffffff"}),(0,R.jsx)(pp,{opacity:.05,showWireframe:!0,pulseIntensity:0}),(0,R.jsx)(pr,{memories:e,links:t,memoryPositions:c}),u.map(({memory:e,position:t})=>(0,R.jsx)(dF,{memory:e,position:[t.x,t.y,t.z],onSelect:i,isSelected:n?.id===e.id,colorMode:r,opacity:l&&e.category!==l?.1:1},e.id)),(0,R.jsx)(py,{pulses:a,onPulseComplete:s}),(0,R.jsx)(d_,{enablePan:!0,enableZoom:!0,enableRotate:!0,minDistance:5,maxDistance:25,autoRotate:!1,dampingFactor:.05,enableDamping:!0})]})}function pS({memories:e=[],links:t=[],selectedMemory:n,onSelectMemory:i,categoryFilter:r}){let[a,s]=(0,P.useState)("category"),[o,l]=(0,P.useState)([]),[u,c]=(0,P.useState)({start:null,end:null}),h={current:0},d=(0,P.useMemo)(()=>{let t={};return e.forEach(e=>{t[e.category]=(t[e.category]||0)+1}),t},[e]),p=(0,P.useMemo)(()=>u.start||u.end?e.filter(e=>{let t=new Date(e.createdAt).getTime();return!(u.start&&t<u.start.getTime()||u.end&&t>u.end.getTime())}):e,[e,u]),f=(0,P.useMemo)(()=>{let t=new Map;return e.forEach(e=>{t.set(e.id,(0,dL.calculateMemoryPosition)(e))}),t},[e]),m=(0,P.useCallback)((e,t,n)=>{let i=f.get(t);if(!i)return;let r=n?f.get(n):void 0,a={id:h.current++,type:e,position:[i.x,i.y,i.z],targetPosition:r?[r.x,r.y,r.z]:void 0,startTime:Date.now(),duration:"created"===e?2e3:"accessed"===e?1e3:1500,color:"created"===e?"#22c55e":"accessed"===e?"#3b82f6":"#a855f7"};l(e=>[...e,a])},[f]),g=(0,P.useCallback)(e=>{l(t=>t.filter(t=>t.id!==e))},[]);return(0,p_.useMemoryWebSocket)({onMessage:e=>{let t=e.data;switch(e.type){case"memory_created":t?.memoryId&&m("created",t.memoryId);break;case"memory_accessed":t?.memoryId&&m("accessed",t.memoryId);break;case"link_discovered":t?.sourceId&&t?.targetId&&m("linked",t.sourceId,t.targetId)}}}),(0,R.jsxs)("div",{className:"w-full h-full bg-slate-950",children:[(0,R.jsx)(du,{camera:{position:[0,2,12],fov:55},gl:{antialias:!0,alpha:!0},onPointerMissed:()=>i(null),children:(0,R.jsx)(P.Suspense,{fallback:null,children:(0,R.jsx)(pb,{memories:p,links:t,selectedMemory:n,onSelectMemory:i,colorMode:a,pulses:o,onPulseComplete:g,memoryCategoryCounts:d,categoryFilter:r})})}),(0,R.jsx)(dD,{memories:e,onTimeRangeChange:c,colorMode:a,onColorModeChange:s})]})}function pM({memories:e,links:t,stats:n,isLoading:i}){let{selectedMemory:r,setSelectedMemory:a,recentEvents:s,showLeftSidebar:o,showRightSidebar:l,toggleLeftSidebar:u,toggleRightSidebar:c,projectFilter:h}=(0,I.useDashboardStore)(),[d,p]=(0,P.useState)(null),[f,m]=(0,P.useState)(!1),{data:g}=(0,L.useContradictions)(h||void 0),{data:v}=(0,N.useQuarantine)("pending",50,h||void 0),{data:x}=(0,L.useWorkerStatus)(),y=(0,L.useConsolidate)(),_=(0,L.useBoostMemory)(),b=(0,L.useDemoteMemory)(),S=(0,L.usePromoteMemory)(),M=(0,L.useDeleteMemory)(),w=(0,L.useQuarantineMemory)(),T=(0,L.useEditMemory)(),E=g?.count??0,A=v?.total??0,C=x?.lastMediumTick??x?.lastLightTick??null,U=(0,P.useCallback)(e=>{a(e)},[a]),O=(0,P.useCallback)(t=>{let n=e.find(e=>e.id===t);n&&a(n)},[e,a]),F=(0,P.useCallback)(e=>_.mutate(e),[_]),k=(0,P.useCallback)(e=>b.mutate(e),[b]),B=(0,P.useCallback)(e=>S.mutate(e),[S]),V=(0,P.useCallback)(e=>{M.mutate(e),a(null)},[M,a]),H=(0,P.useCallback)(e=>{w.mutate({id:e,reason:"Quarantined from Brain Control Centre"}),a(null)},[w,a]),G=(0,P.useCallback)((e,t)=>{T.mutate({id:e,updates:t})},[T]),W=(0,P.useCallback)(()=>{y.mutate()},[y]),X=(0,P.useCallback)(e=>{e?.memoryId?O(e.memoryId):e?.id&&O(e.id)},[O]),q=r?t.filter(e=>e.source_id===r.id||e.target_id===r.id):[];return i?(0,R.jsx)("div",{className:"w-full h-full flex items-center justify-center bg-slate-950",children:(0,R.jsx)("div",{className:"text-slate-400 animate-pulse",children:"Loading Brain..."})}):(0,R.jsxs)("div",{className:"w-full h-full flex flex-col bg-slate-950 relative",children:[(0,R.jsx)(D,{stats:n??{total:0,shortTerm:0,longTerm:0,episodic:0,byCategory:{},averageSalience:0},contradictionCount:E,quarantineCount:A,lastConsolidation:C,workerStatus:x}),(0,R.jsxs)("div",{className:"flex-1 flex overflow-hidden relative",children:[o&&(0,R.jsx)(z,{stats:n??{total:0,shortTerm:0,longTerm:0,episodic:0,byCategory:{},averageSalience:0},memories:e,onCategoryClick:p,activeCategory:d,onConsolidate:W,isConsolidating:y.isPending,workerStatus:x}),(0,R.jsxs)("div",{className:"flex-1 flex flex-col relative",children:[(0,R.jsx)("div",{className:"flex-1 relative",children:(0,R.jsx)(pS,{memories:e,links:t,selectedMemory:r,onSelectMemory:U,categoryFilter:d})}),(0,R.jsx)(Z,{events:s,onClickEvent:X,isCollapsed:f,onToggleCollapse:()=>m(!f)})]}),l&&(0,R.jsx)(j,{memory:r,links:q,onClose:()=>a(null),onBoost:F,onDemote:k,onPromote:B,onDelete:V,onQuarantine:H,onEdit:G,onNavigateToMemory:O})]}),(0,R.jsx)("button",{onClick:u,className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 bg-slate-800/80 hover:bg-slate-700 border border-slate-700 rounded-r px-1 py-3 text-slate-400 hover:text-white transition-colors",title:o?"Hide sidebar":"Show sidebar",children:(0,R.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",children:(0,R.jsx)("path",{d:o?"M8 1L3 6l5 5":"M4 1l5 5-5 5",stroke:"currentColor",strokeWidth:"1.5",fill:"none"})})}),(0,R.jsx)("button",{onClick:c,className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 bg-slate-800/80 hover:bg-slate-700 border border-slate-700 rounded-l px-1 py-3 text-slate-400 hover:text-white transition-colors",title:l?"Hide inspector":"Show inspector",children:(0,R.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",children:(0,R.jsx)("path",{d:l?"M4 1l5 5-5 5":"M8 1L3 6l5 5",stroke:"currentColor",strokeWidth:"1.5",fill:"none"})})})]})}e.s(["BrainControlCentre",()=>pM],28592)},41740,e=>{e.n(e.i(28592))}]);
842
+ `,clipping:!0}),this.isLineMaterial=!0,this.onBeforeCompile=function(){this.transparent?this.defines.USE_LINE_COLOR_ALPHA="1":delete this.defines.USE_LINE_COLOR_ALPHA},Object.defineProperties(this,{color:{enumerable:!0,get:function(){return this.uniforms.diffuse.value},set:function(e){this.uniforms.diffuse.value=e}},worldUnits:{enumerable:!0,get:function(){return"WORLD_UNITS"in this.defines},set:function(e){!0===e?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}},linewidth:{enumerable:!0,get:function(){return this.uniforms.linewidth.value},set:function(e){this.uniforms.linewidth.value=e}},dashed:{enumerable:!0,get:function(){return"USE_DASH"in this.defines},set(e){!!e!="USE_DASH"in this.defines&&(this.needsUpdate=!0),!0===e?this.defines.USE_DASH="":delete this.defines.USE_DASH}},dashScale:{enumerable:!0,get:function(){return this.uniforms.dashScale.value},set:function(e){this.uniforms.dashScale.value=e}},dashSize:{enumerable:!0,get:function(){return this.uniforms.dashSize.value},set:function(e){this.uniforms.dashSize.value=e}},dashOffset:{enumerable:!0,get:function(){return this.uniforms.dashOffset.value},set:function(e){this.uniforms.dashOffset.value=e}},gapSize:{enumerable:!0,get:function(){return this.uniforms.gapSize.value},set:function(e){this.uniforms.gapSize.value=e}},opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(e){this.uniforms.opacity.value=e}},resolution:{enumerable:!0,get:function(){return this.uniforms.resolution.value},set:function(e){this.uniforms.resolution.value.copy(e)}},alphaToCoverage:{enumerable:!0,get:function(){return"USE_ALPHA_TO_COVERAGE"in this.defines},set:function(e){!!e!="USE_ALPHA_TO_COVERAGE"in this.defines&&(this.needsUpdate=!0),!0===e?(this.defines.USE_ALPHA_TO_COVERAGE="",this.extensions.derivatives=!0):(delete this.defines.USE_ALPHA_TO_COVERAGE,this.extensions.derivatives=!1)}}}),this.setValues(e)}}let dj=dV>=125?"uv1":"uv2",dG=new e1,dW=new ez,dX=new ez,dq=new e1,dY=new e1,dZ=new e1,dJ=new ez,d$=new tT,dK=new o0,dQ=new ez,d0=new e9,d1=new tg,d2=new e1;function d3(e,t,n){return d2.set(0,0,-t,1).applyMatrix4(e.projectionMatrix),d2.multiplyScalar(1/d2.w),d2.x=d/n.width,d2.y=d/n.height,d2.applyMatrix4(e.projectionMatrixInverse),d2.multiplyScalar(1/d2.w),Math.abs(Math.max(d2.x,d2.y))}class d4 extends nY{constructor(e=new dB,t=new dH({color:0xffffff*Math.random()})){super(e,t),this.isLineSegments2=!0,this.type="LineSegments2"}computeLineDistances(){let e=this.geometry,t=e.attributes.instanceStart,n=e.attributes.instanceEnd,i=new Float32Array(2*t.count);for(let e=0,r=0,a=t.count;e<a;e++,r+=2)dW.fromBufferAttribute(t,e),dX.fromBufferAttribute(n,e),i[r]=0===r?0:i[r-1],i[r+1]=i[r]+dW.distanceTo(dX);let r=new oD(i,2,1);return e.setAttribute("instanceDistanceStart",new iu(r,1,0)),e.setAttribute("instanceDistanceEnd",new iu(r,1,1)),this}raycast(e,t){let n,i,r=this.material.worldUnits,a=e.camera;null!==a||r||console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.');let s=void 0!==e.params.Line2&&e.params.Line2.threshold||0;h=e.ray;let o=this.matrixWorld,l=this.geometry,u=this.material;if(d=u.linewidth+s,null===l.boundingSphere&&l.computeBoundingSphere(),d1.copy(l.boundingSphere).applyMatrix4(o),r)n=.5*d;else{let e=Math.max(a.near,d1.distanceToPoint(h.origin));n=d3(a,e,u.resolution)}if(d1.radius+=n,!1!==h.intersectsSphere(d1)){if(null===l.boundingBox&&l.computeBoundingBox(),d0.copy(l.boundingBox).applyMatrix4(o),r)i=.5*d;else{let e=Math.max(a.near,d0.distanceToPoint(h.origin));i=d3(a,e,u.resolution)}d0.expandByScalar(i),!1!==h.intersectsBox(d0)&&(r?function(e,t){let n=e.matrixWorld,i=e.geometry,r=i.attributes.instanceStart,a=i.attributes.instanceEnd,s=Math.min(i.instanceCount,r.count);for(let i=0;i<s;i++){dK.start.fromBufferAttribute(r,i),dK.end.fromBufferAttribute(a,i),dK.applyMatrix4(n);let s=new ez,o=new ez;h.distanceSqToSegment(dK.start,dK.end,o,s),o.distanceTo(s)<.5*d&&t.push({point:o,pointOnLine:s,distance:h.origin.distanceTo(o),object:e,face:null,faceIndex:i,uv:null,[dj]:null})}}(this,t):function(e,t,n){let i=t.projectionMatrix,r=e.material.resolution,a=e.matrixWorld,s=e.geometry,o=s.attributes.instanceStart,l=s.attributes.instanceEnd,u=Math.min(s.instanceCount,o.count),c=-t.near;h.at(1,dZ),dZ.w=1,dZ.applyMatrix4(t.matrixWorldInverse),dZ.applyMatrix4(i),dZ.multiplyScalar(1/dZ.w),dZ.x*=r.x/2,dZ.y*=r.y/2,dZ.z=0,dJ.copy(dZ),d$.multiplyMatrices(t.matrixWorldInverse,a);for(let t=0;t<u;t++){if(dq.fromBufferAttribute(o,t),dY.fromBufferAttribute(l,t),dq.w=1,dY.w=1,dq.applyMatrix4(d$),dY.applyMatrix4(d$),dq.z>c&&dY.z>c)continue;if(dq.z>c){let e=dq.z-dY.z,t=(dq.z-c)/e;dq.lerp(dY,t)}else if(dY.z>c){let e=dY.z-dq.z,t=(dY.z-c)/e;dY.lerp(dq,t)}dq.applyMatrix4(i),dY.applyMatrix4(i),dq.multiplyScalar(1/dq.w),dY.multiplyScalar(1/dY.w),dq.x*=r.x/2,dq.y*=r.y/2,dY.x*=r.x/2,dY.y*=r.y/2,dK.start.copy(dq),dK.start.z=0,dK.end.copy(dY),dK.end.z=0;let s=dK.closestPointToPointParameter(dJ,!0);dK.at(s,dQ);let u=eU.lerp(dq.z,dY.z,s),p=u>=-1&&u<=1,f=dJ.distanceTo(dQ)<.5*d;if(p&&f){dK.start.fromBufferAttribute(o,t),dK.end.fromBufferAttribute(l,t),dK.start.applyMatrix4(a),dK.end.applyMatrix4(a);let i=new ez,r=new ez;h.distanceSqToSegment(dK.start,dK.end,r,i),n.push({point:r,pointOnLine:i,distance:h.origin.distanceTo(r),object:e,face:null,faceIndex:t,uv:null,[dj]:null})}}}(this,a,t))}}onBeforeRender(e){let t=this.material.uniforms;t&&t.resolution&&(e.getViewport(dG),this.material.uniforms.resolution.value.set(dG.z,dG.w))}}class d5 extends dB{constructor(){super(),this.isLineGeometry=!0,this.type="LineGeometry"}setPositions(e){let t=e.length-3,n=new Float32Array(2*t);for(let i=0;i<t;i+=3)n[2*i]=e[i],n[2*i+1]=e[i+1],n[2*i+2]=e[i+2],n[2*i+3]=e[i+3],n[2*i+4]=e[i+4],n[2*i+5]=e[i+5];return super.setPositions(n),this}setColors(e,t=3){let n=e.length-t,i=new Float32Array(2*n);if(3===t)for(let r=0;r<n;r+=t)i[2*r]=e[r],i[2*r+1]=e[r+1],i[2*r+2]=e[r+2],i[2*r+3]=e[r+3],i[2*r+4]=e[r+4],i[2*r+5]=e[r+5];else for(let r=0;r<n;r+=t)i[2*r]=e[r],i[2*r+1]=e[r+1],i[2*r+2]=e[r+2],i[2*r+3]=e[r+3],i[2*r+4]=e[r+4],i[2*r+5]=e[r+5],i[2*r+6]=e[r+6],i[2*r+7]=e[r+7];return super.setColors(i,t),this}fromLine(e){let t=e.geometry;return this.setPositions(t.attributes.position.array),this}}class d6 extends d4{constructor(e=new d5,t=new dH({color:0xffffff*Math.random()})){super(e,t),this.isLine2=!0,this.type="Line2"}}let d8=P.forwardRef(function({points:e,color:t=0xffffff,vertexColors:n,linewidth:i,lineWidth:r,segments:a,dashed:s,...o},l){var u,c;let h=hA(e=>e.size),d=P.useMemo(()=>a?new d4:new d6,[a]),[p]=P.useState(()=>new dH),f=(null==n||null==(u=n[0])?void 0:u.length)===4?4:3,m=P.useMemo(()=>{let i=a?new dB:new d5,r=e.map(e=>{let t=Array.isArray(e);return e instanceof ez||e instanceof e1?[e.x,e.y,e.z]:e instanceof eO?[e.x,e.y,0]:t&&3===e.length?[e[0],e[1],e[2]]:t&&2===e.length?[e[0],e[1],0]:e});if(i.setPositions(r.flat()),n){t=0xffffff;let e=n.map(e=>e instanceof no?e.toArray():e);i.setColors(e.flat(),f)}return i},[e,a,n,f]);return P.useLayoutEffect(()=>{d.computeLineDistances()},[e,d]),P.useLayoutEffect(()=>{s?p.defines.USE_DASH="":delete p.defines.USE_DASH,p.needsUpdate=!0},[s,p]),P.useEffect(()=>()=>{m.dispose(),p.dispose()},[m]),P.createElement("primitive",dc({object:d,ref:l},o),P.createElement("primitive",{object:m,attach:"geometry"}),P.createElement("primitive",dc({object:p,attach:"material",color:t,vertexColors:!!n,resolution:[h.width,h.height],linewidth:null!=(c=null!=i?i:r)?c:1,dashed:s,transparent:4===f},o)))}),d9=P.forwardRef(function({points:e,closed:t=!1,curveType:n="centripetal",tension:i=.5,segments:r=20,vertexColors:a,...s},o){let l=P.useMemo(()=>new ai(e.map(e=>e instanceof ez?e:new ez(...e)),t,n,i),[e,t,n,i]),u=P.useMemo(()=>l.getPoints(r),[l,r]),c=P.useMemo(()=>{if(!a||a.length<2)return;if(a.length===r+1)return a;let e=a.map(e=>e instanceof no?e:new no(...e));t&&e.push(e[0].clone());let n=[e[0]],i=r/(e.length-1);for(let t=1;t<r;t++){let r=t%i/i,a=Math.floor(t/i);n.push(e[a].clone().lerp(e[a+1],r))}return n.push(e[e.length-1]),n},[a,r]);return P.createElement(d8,dc({ref:o,points:u,vertexColors:c},s))}),d7={references:{color:"#22d3ee",label:"References"},extends:{color:"#34d399",label:"Extends"},contradicts:{color:"#f87171",label:"Contradicts"},related:{color:"#a78bfa",label:"Related"}},pe=d7.related,pt="#22d3ee";function pn({curve:e,speed:t=1,delay:n=0}){let i=(0,P.useRef)(null),r=(0,P.useRef)(null),a=(0,P.useRef)(n);return hC((n,s)=>{if(!i.current)return;a.current+=s*t*1.2,a.current>1&&(a.current=0);let o=e.getPoint(a.current);i.current.position.copy(o);let l=Math.min(5*a.current,1)*Math.min((1-a.current)*5,1);i.current.material.opacity=l,r.current&&(r.current.position.copy(o),r.current.material.opacity=.25*l)}),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsxs)("mesh",{ref:i,children:[(0,R.jsx)("sphereGeometry",{args:[.04,8,8]}),(0,R.jsx)("meshBasicMaterial",{color:pt,transparent:!0,opacity:1})]}),(0,R.jsxs)("mesh",{ref:r,children:[(0,R.jsx)("sphereGeometry",{args:[.08,6,6]}),(0,R.jsx)("meshBasicMaterial",{color:pt,transparent:!0,opacity:.2,depthWrite:!1})]})]})}function pi({link:e,sourcePos:t,targetPos:n,isHovered:i,onHover:r,onUnhover:a}){let s=d7[e.relationship]||pe,{curve:o,points:l}=(0,P.useMemo)(()=>{let i=new ez(t.x,t.y,t.z),r=new ez(n.x,n.y,n.z),a=new ez().lerpVectors(i,r,.5),s=new ez().subVectors(r,i),o=s.length(),l=new ez(-s.y,s.x,.5*s.z).normalize(),u=.15*o*(e.strength+.5),c=new ez().lerpVectors(i,a,.33);c.add(l.clone().multiplyScalar(u));let h=new ez().lerpVectors(i,a,.66);h.add(l.clone().multiplyScalar(.5*u));let d=new ez().lerpVectors(a,r,.33);d.add(l.clone().multiplyScalar(-(.5*u)));let p=new ez().lerpVectors(a,r,.66);p.add(l.clone().multiplyScalar(-u));let f=new ai([i,c,h,a,d,p,r]),m=f.getPoints(32);return{curve:f,points:m}},[t,n,e.strength]),u=s.color,c=i?4:1.5+2*e.strength;return(0,R.jsxs)("group",{children:[(0,R.jsx)(d9,{points:l,color:u,lineWidth:c,transparent:!0,opacity:i?1:.35}),(0,R.jsx)(pn,{curve:o,speed:1.2+e.strength,delay:0}),(0,R.jsx)(pn,{curve:o,speed:1.2+e.strength,delay:.5}),e.strength>.3&&(0,R.jsx)(pn,{curve:o,speed:1.5+e.strength,delay:.25}),e.strength>.6&&(0,R.jsx)(pn,{curve:o,speed:1.8+e.strength,delay:.75}),(0,R.jsxs)("mesh",{position:[(t.x+n.x)/2,(t.y+n.y)/2,(t.z+n.z)/2],onPointerEnter:r,onPointerLeave:a,children:[(0,R.jsx)("sphereGeometry",{args:[.5,8,8]}),(0,R.jsx)("meshBasicMaterial",{visible:!1})]}),i&&(0,R.jsx)(dI,{position:[(t.x+n.x)/2,(t.y+n.y)/2+.5,(t.z+n.z)/2],center:!0,style:{pointerEvents:"none"},children:(0,R.jsxs)("div",{className:"px-3 py-2 rounded-lg shadow-xl text-xs whitespace-nowrap backdrop-blur-sm",style:{backgroundColor:"rgba(15, 23, 42, 0.95)",border:`2px solid ${s.color}`,color:"white"},children:[(0,R.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,R.jsx)("span",{className:"w-2 h-2 rounded-full animate-pulse",style:{backgroundColor:s.color}}),(0,R.jsx)("span",{className:"font-semibold",style:{color:s.color},children:s.label})]}),(0,R.jsxs)("div",{className:"text-slate-300 text-[10px] space-y-0.5",children:[(0,R.jsx)("div",{className:"truncate max-w-[180px]",children:e.source_title||`Memory #${e.source_id}`}),(0,R.jsx)("div",{className:"text-slate-500",children:"↓"}),(0,R.jsx)("div",{className:"truncate max-w-[180px]",children:e.target_title||`Memory #${e.target_id}`}),(0,R.jsxs)("div",{className:"mt-1 pt-1 border-t border-slate-700",children:["Strength: ",(0,R.jsxs)("span",{style:{color:s.color},children:[(100*e.strength).toFixed(0),"%"]})]})]})]})})]})}function pr({memories:e,links:t,memoryPositions:n}){let[i,r]=(0,P.useState)(null),a=(0,P.useMemo)(()=>{let i=new Set(e.map(e=>e.id));return t.filter(e=>i.has(e.source_id)&&i.has(e.target_id)&&n.has(e.source_id)&&n.has(e.target_id))},[e,t,n]),s=(0,P.useCallback)(e=>{r(e)},[]),o=(0,P.useCallback)(()=>{r(null)},[]);return 0===a.length?null:(0,R.jsx)("group",{name:"neural-connections",children:a.map(e=>{let t=n.get(e.source_id),r=n.get(e.target_id),a=`${e.source_id}-${e.target_id}`;return(0,R.jsx)(pi,{link:e,sourcePos:t,targetPos:r,isHovered:i===a,onHover:()=>s(a),onUnhover:o},a)})})}let pa=[[1,1,0],[-1,1,0],[1,-1,0],[-1,-1,0],[1,0,1],[-1,0,1],[1,0,-1],[-1,0,-1],[0,1,1],[0,-1,1],[0,1,-1],[0,-1,-1]],ps=new Uint8Array(512),po=new Uint8Array(512);!function(e=0){let t=new Uint8Array(256);for(let e=0;e<256;e++)t[e]=e;let n=e;for(let e=255;e>0;e--){let i=(n=0x41c64e6d*n+12345&0x7fffffff)%(e+1);[t[e],t[i]]=[t[i],t[e]]}for(let e=0;e<512;e++)ps[e]=t[255&e],po[e]=ps[e]%12}(42);let pl=1/3,pu=1/6;function pc(e,t,n,i){return e[0]*t+e[1]*n+e[2]*i}function ph(e,t,n){let i,r,a,s,o,l,u=(e+t+n)*pl,c=Math.floor(e+u),h=Math.floor(t+u),d=Math.floor(n+u),p=(c+h+d)*pu,f=e-(c-p),m=t-(h-p),g=n-(d-p);f>=m?m>=g?(i=1,r=0,a=0,s=1,o=1,l=0):(f>=g?(i=1,r=0,a=0):(i=0,r=0,a=1),s=1,o=0,l=1):m<g?(i=0,r=0,a=1,s=0,o=1,l=1):f<g?(i=0,r=1,a=0,s=0,o=1,l=1):(i=0,r=1,a=0,s=1,o=1,l=0);let v=f-i+pu,x=m-r+pu,y=g-a+pu,_=f-s+2*pu,b=m-o+2*pu,S=g-l+2*pu,M=f-1+3*pu,w=m-1+3*pu,T=g-1+3*pu,E=255&c,A=255&h,C=255&d,R=0,P=0,I=0,L=0,N=.6-f*f-m*m-g*g;if(N>=0){let e=po[E+ps[A+ps[C]]];N*=N,R=N*N*pc(pa[e],f,m,g)}let D=.6-v*v-x*x-y*y;if(D>=0){let e=po[E+i+ps[A+r+ps[C+a]]];D*=D,P=D*D*pc(pa[e],v,x,y)}let U=.6-_*_-b*b-S*S;if(U>=0){let e=po[E+s+ps[A+o+ps[C+l]]];U*=U,I=U*U*pc(pa[e],_,b,S)}let O=.6-M*M-w*w-T*T;if(O>=0){let e=po[E+1+ps[A+1+ps[C+1]]];O*=O,L=O*O*pc(pa[e],M,w,T)}return 32*(R+P+I+L)}function pd(e,t,n,i=4,r=2,a=.5){let s=0,o=1,l=1,u=0;for(let c=0;c<i;c++)s+=o*ph(e*l,t*l,n*l),u+=o,o*=a,l*=r;return s/u}function pp({opacity:e=.05,showWireframe:t=!0}){let n=(0,P.useRef)(null),i=(0,P.useRef)(null),r=(0,P.useMemo)(()=>{let e=function(){let e=new aB(3.5,5),t=e.attributes.position.array,n=new Float32Array(t.length);for(let e=0;e<t.length;e+=3){let i=t[e],r=t[e+1],a=t[e+2],s=Math.sqrt(i*i+r*r+a*a),o=i/s,l=r/s,u=a/s,c=.4*pd(2*o,2*l,2*u,3,2,.5)+.15*pd(4*o,4*l,4*u,2,2,.5)+.5*(.08*function(e,t,n,i=4,r=2,a=.5){let s=0,o=1,l=1,u=1;for(let c=0;c<i;c++){let i=ph(e*l,t*l,n*l);i=1-Math.abs(i),i*=i*u,u=Math.min(1,Math.max(0,2*i)),s+=i*o,o*=a,l*=r}return s}(6*o,6*l,6*u,2,2,.5)),h=1.2+.15*Math.abs(u),d=.85+.1*Math.abs(o),p=1.1-.1*Math.abs(l),f=s*(1+c+(.1>Math.abs(o)?-.15*(1-Math.abs(o)/.1):0)+.15*(Math.abs(o)>.5&&u<0));t[e]=o*f*h,t[e+1]=l*f*d,t[e+2]=u*f*p;let m=(u+1)/2;n[e]=.1+.2*m,n[e+1]=.05+(1-m)*.15,n[e+2]=.2+(1-m)*.3}return e.computeVertexNormals(),e.setAttribute("color",new ny(n,3)),e}();return n.current=e,e},[]),a=(0,P.useMemo)(()=>{let t=new nh({color:"#333333",wireframe:!0,transparent:!0,opacity:e});return i.current=t,t},[e]);return((0,P.useEffect)(()=>()=>{n.current&&(n.current.dispose(),n.current=null),i.current&&(i.current.dispose(),i.current=null)},[]),t)?(0,R.jsx)("mesh",{geometry:r,material:a}):null}let pf=new aG(.1,.15,32),pm=new aX(.1,16,16);function pg({pulse:e,onComplete:t}){let n=(0,P.useRef)(null),i=(0,P.useRef)(null);return hC(r=>{if(!n.current)return;null===i.current&&(i.current=r.clock.elapsedTime);let a=(r.clock.elapsedTime-i.current)/(e.duration/1e3);a>=1?t():(n.current.scale.setScalar(.5+3*a),n.current.material.opacity=(1-a)*.8)}),(0,R.jsx)("mesh",{ref:n,position:e.position,rotation:[Math.PI/2,0,0],geometry:pf,children:(0,R.jsx)("meshBasicMaterial",{color:e.color,transparent:!0,opacity:.8,side:2,depthWrite:!1})})}function pv({pulse:e,onComplete:t}){let n=(0,P.useRef)(null),i=(0,P.useRef)(null);return hC(r=>{if(!n.current)return;null===i.current&&(i.current=r.clock.elapsedTime);let a=(r.clock.elapsedTime-i.current)/(e.duration/1e3);if(a>=1)return void t();let s=Math.sin(a*Math.PI);n.current.scale.setScalar(.8+.6*s),n.current.material.opacity=.9*s}),(0,R.jsx)("mesh",{ref:n,position:e.position,geometry:pm,children:(0,R.jsx)("meshBasicMaterial",{color:e.color,transparent:!0,opacity:.9,depthWrite:!1})})}function px({pulse:e,onComplete:t}){let n=(0,P.useRef)(null),i=(0,P.useRef)(null),r=(0,P.useRef)(null),a=(0,P.useMemo)(()=>{let t=[new ez(...e.position),new ez(...e.targetPosition||e.position)];return new rT(new nO().setFromPoints(t),new rv({color:e.color,transparent:!0,opacity:.8}))},[e.position,e.targetPosition,e.color]);return hC(s=>{if(!r.current){n.current&&!n.current.children.length&&(n.current.add(a),r.current=a);return}null===i.current&&(i.current=s.clock.elapsedTime);let o=(s.clock.elapsedTime-i.current)/(e.duration/1e3);if(o>=1)return void t();let l=Math.sin(o*Math.PI);r.current.material.opacity=.8*l}),(0,R.jsx)("group",{ref:n})}function py({pulses:e,onPulseComplete:t}){return(0,R.jsx)("group",{name:"activity-pulses",children:e.map(e=>{switch(e.type){case"created":return(0,R.jsx)(pg,{pulse:e,onComplete:()=>t(e.id)},e.id);case"accessed":return(0,R.jsx)(pv,{pulse:e,onComplete:()=>t(e.id)},e.id);case"linked":return(0,R.jsx)(px,{pulse:e,onComplete:()=>t(e.id)},e.id);default:return null}})})}var p_=e.i(94156);function pb({memories:e=[],links:t=[],selectedMemory:n,onSelectMemory:i,colorMode:r,pulses:a,onPulseComplete:s,memoryCategoryCounts:o,categoryFilter:l}){let u=(0,P.useMemo)(()=>e&&0!==e.length?Array.from(new Map(e.map(e=>[e.id,e])).values()).map(e=>({memory:e,position:(0,dL.calculateMemoryPosition)(e)})):[],[e]),c=(0,P.useMemo)(()=>{let e=new Map;return u.forEach(({memory:t,position:n})=>{e.set(t.id,n)}),e},[u]);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("ambientLight",{intensity:.6,color:"#ffffff"}),(0,R.jsx)("directionalLight",{position:[5,5,5],intensity:.3,color:"#ffffff"}),(0,R.jsx)(pp,{opacity:.05,showWireframe:!0,pulseIntensity:0}),(0,R.jsx)(pr,{memories:e,links:t,memoryPositions:c}),u.map(({memory:e,position:t})=>(0,R.jsx)(dF,{memory:e,position:[t.x,t.y,t.z],onSelect:i,isSelected:n?.id===e.id,colorMode:r,opacity:l&&e.category!==l?.1:1},e.id)),(0,R.jsx)(py,{pulses:a,onPulseComplete:s}),(0,R.jsx)(d_,{enablePan:!0,enableZoom:!0,enableRotate:!0,minDistance:5,maxDistance:25,autoRotate:!1,dampingFactor:.05,enableDamping:!0})]})}function pS({memories:e=[],links:t=[],selectedMemory:n,onSelectMemory:i,categoryFilter:r}){let[a,s]=(0,P.useState)("category"),[o,l]=(0,P.useState)([]),[u,c]=(0,P.useState)({start:null,end:null}),h={current:0},d=(0,P.useMemo)(()=>{let t={};return e.forEach(e=>{t[e.category]=(t[e.category]||0)+1}),t},[e]),p=(0,P.useMemo)(()=>u.start||u.end?e.filter(e=>{let t=new Date(e.createdAt).getTime();return!(u.start&&t<u.start.getTime()||u.end&&t>u.end.getTime())}):e,[e,u]),f=(0,P.useMemo)(()=>{let t=new Map;return e.forEach(e=>{t.set(e.id,(0,dL.calculateMemoryPosition)(e))}),t},[e]),m=(0,P.useCallback)((e,t,n)=>{let i=f.get(t);if(!i)return;let r=n?f.get(n):void 0,a={id:h.current++,type:e,position:[i.x,i.y,i.z],targetPosition:r?[r.x,r.y,r.z]:void 0,startTime:Date.now(),duration:"created"===e?2e3:"accessed"===e?1e3:1500,color:"created"===e?"#22c55e":"accessed"===e?"#3b82f6":"#a855f7"};l(e=>[...e,a])},[f]),g=(0,P.useCallback)(e=>{l(t=>t.filter(t=>t.id!==e))},[]);return(0,p_.useMemoryWebSocket)({onMessage:e=>{let t=e.data;switch(e.type){case"memory_created":t?.memoryId&&m("created",t.memoryId);break;case"memory_accessed":t?.memoryId&&m("accessed",t.memoryId);break;case"link_discovered":t?.sourceId&&t?.targetId&&m("linked",t.sourceId,t.targetId)}}}),(0,R.jsxs)("div",{className:"w-full h-full bg-slate-950",children:[(0,R.jsx)(du,{camera:{position:[0,2,12],fov:55},gl:{antialias:!0,alpha:!0},onPointerMissed:()=>i(null),children:(0,R.jsx)(P.Suspense,{fallback:null,children:(0,R.jsx)(pb,{memories:p,links:t,selectedMemory:n,onSelectMemory:i,colorMode:a,pulses:o,onPulseComplete:g,memoryCategoryCounts:d,categoryFilter:r})})}),(0,R.jsx)(dD,{memories:e,onTimeRangeChange:c,colorMode:a,onColorModeChange:s})]})}function pM({memories:e,links:t,stats:n,isLoading:i}){let{selectedMemory:r,setSelectedMemory:a,recentEvents:s,showLeftSidebar:o,showRightSidebar:l,toggleLeftSidebar:u,toggleRightSidebar:c,projectFilter:h}=(0,I.useDashboardStore)(),[d,p]=(0,P.useState)(null),[f,m]=(0,P.useState)(!1),{data:g}=(0,L.useContradictions)(h||void 0),{data:v}=(0,N.useQuarantine)("pending",50,h||void 0),{data:x}=(0,L.useWorkerStatus)(),y=(0,L.useConsolidate)(),_=(0,L.useBoostMemory)(),b=(0,L.useDemoteMemory)(),S=(0,L.usePromoteMemory)(),M=(0,L.useDeleteMemory)(),w=(0,L.useQuarantineMemory)(),T=(0,L.useEditMemory)(),E=g?.count??0,A=v?.total??0,C=x?.lastMediumTick??x?.lastLightTick??null,U=x?{running:x.isRunning,lastRun:x.lastLightTick??x.lastMediumTick??void 0}:null,O=(0,P.useCallback)(e=>{a(e)},[a]),F=(0,P.useCallback)(t=>{let n=e.find(e=>e.id===t);n&&a(n)},[e,a]),k=(0,P.useCallback)(e=>_.mutate(e),[_]),B=(0,P.useCallback)(e=>b.mutate(e),[b]),V=(0,P.useCallback)(e=>S.mutate(e),[S]),H=(0,P.useCallback)(e=>{M.mutate(e),a(null)},[M,a]),G=(0,P.useCallback)(e=>{w.mutate({id:e,reason:"Quarantined from Brain Control Centre"}),a(null)},[w,a]),W=(0,P.useCallback)((e,t)=>{T.mutate({id:e,updates:t})},[T]),X=(0,P.useCallback)(()=>{y.mutate()},[y]),q=(0,P.useCallback)(e=>{e?.memoryId?F(e.memoryId):e?.id&&F(e.id)},[F]),Y=r?t.filter(e=>e.source_id===r.id||e.target_id===r.id):[];return i?(0,R.jsx)("div",{className:"w-full h-full flex items-center justify-center bg-slate-950",children:(0,R.jsx)("div",{className:"text-slate-400 animate-pulse",children:"Loading Brain..."})}):(0,R.jsxs)("div",{className:"w-full h-full flex flex-col bg-slate-950 relative",children:[(0,R.jsx)(D,{stats:n??{total:0,shortTerm:0,longTerm:0,episodic:0,byCategory:{},averageSalience:0},contradictionCount:E,quarantineCount:A,lastConsolidation:C,workerStatus:U}),(0,R.jsxs)("div",{className:"flex-1 flex overflow-hidden relative",children:[o&&(0,R.jsx)(z,{stats:n??{total:0,shortTerm:0,longTerm:0,episodic:0,byCategory:{},averageSalience:0},memories:e,onCategoryClick:p,activeCategory:d,onConsolidate:X,isConsolidating:y.isPending,workerStatus:U}),(0,R.jsxs)("div",{className:"flex-1 flex flex-col relative",children:[(0,R.jsx)("div",{className:"flex-1 relative",children:(0,R.jsx)(pS,{memories:e,links:t,selectedMemory:r,onSelectMemory:O,categoryFilter:d})}),(0,R.jsx)(Z,{events:s,onClickEvent:q,isCollapsed:f,onToggleCollapse:()=>m(!f)})]}),l&&(0,R.jsx)(j,{memory:r,links:Y,onClose:()=>a(null),onBoost:k,onDemote:B,onPromote:V,onDelete:H,onQuarantine:G,onEdit:W,onNavigateToMemory:F})]}),(0,R.jsx)("button",{onClick:u,className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 bg-slate-800/80 hover:bg-slate-700 border border-slate-700 rounded-r px-1 py-3 text-slate-400 hover:text-white transition-colors",title:o?"Hide sidebar":"Show sidebar",children:(0,R.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",children:(0,R.jsx)("path",{d:o?"M8 1L3 6l5 5":"M4 1l5 5-5 5",stroke:"currentColor",strokeWidth:"1.5",fill:"none"})})}),(0,R.jsx)("button",{onClick:c,className:"absolute right-0 top-1/2 -translate-y-1/2 z-10 bg-slate-800/80 hover:bg-slate-700 border border-slate-700 rounded-l px-1 py-3 text-slate-400 hover:text-white transition-colors",title:l?"Hide inspector":"Show inspector",children:(0,R.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",children:(0,R.jsx)("path",{d:l?"M4 1l5 5-5 5":"M8 1L3 6l5 5",stroke:"currentColor",strokeWidth:"1.5",fill:"none"})})})]})}e.s(["BrainControlCentre",()=>pM],28592)},41740,e=>{e.n(e.i(28592))}]);
@@ -0,0 +1,3 @@
1
+ @font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/8a480f0b521d4e75-s.8e0177b5.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/7178b3e590c64307-s.b97b3418.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/caa3a2e1cccd8315-s.p.853070df.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Geist Fallback;src:local(Arial);ascent-override:95.94%;descent-override:28.16%;line-gap-override:0.0%;size-adjust:104.76%}.geist_a71539c9-module__T19VSG__className{font-family:Geist,Geist Fallback;font-style:normal}.geist_a71539c9-module__T19VSG__variable{--font-geist-sans:"Geist","Geist Fallback"}
2
+ @font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/4fa387ec64143e14-s.c1fdd6c2.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/bbc41e54d2fcbd21-s.799d8ef8.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/797e433ab948586e-s.p.dbea232f.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Geist Mono Fallback;src:local(Arial);ascent-override:74.67%;descent-override:21.92%;line-gap-override:0.0%;size-adjust:134.59%}.geist_mono_8d43a2aa-module__8Li5zG__className{font-family:Geist Mono,Geist Mono Fallback;font-style:normal}.geist_mono_8d43a2aa-module__8Li5zG__variable{--font-geist-mono:"Geist Mono","Geist Mono Fallback"}
3
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:root,:host{--color-red-300:#ffa3a3;--color-red-400:#ff6568;--color-red-500:#fb2c36;--color-red-600:#e40014;--color-orange-300:#ffb96d;--color-orange-400:#ff8b1a;--color-orange-500:#fe6e00;--color-orange-600:#f05100;--color-amber-400:#fcbb00;--color-amber-500:#f99c00;--color-amber-600:#dd7400;--color-yellow-400:#fac800;--color-yellow-500:#edb200;--color-green-300:#7bf1a8;--color-green-400:#05df72;--color-green-500:#00c758;--color-green-600:#00a544;--color-emerald-400:#00d294;--color-emerald-500:#00bb7f;--color-cyan-300:#53eafd;--color-cyan-400:#00d2ef;--color-cyan-500:#00b7d7;--color-cyan-600:#0092b5;--color-cyan-700:#007492;--color-cyan-800:#005f78;--color-cyan-950:#053345;--color-blue-100:#dbeafe;--color-blue-300:#90c5ff;--color-blue-400:#54a2ff;--color-blue-500:#3080ff;--color-blue-600:#155dfc;--color-blue-700:#1447e6;--color-violet-400:#a685ff;--color-purple-300:#d9b3ff;--color-purple-400:#c07eff;--color-purple-500:#ac4bff;--color-purple-600:#9810fa;--color-slate-200:#e2e8f0;--color-slate-300:#cad5e2;--color-slate-400:#90a1b9;--color-slate-500:#62748e;--color-slate-600:#45556c;--color-slate-700:#314158;--color-slate-800:#1d293d;--color-slate-900:#0f172b;--color-slate-950:#020618;--color-gray-400:#99a1af;--color-gray-600:#4a5565;--color-gray-700:#364153;--color-gray-800:#1e2939;--color-gray-900:#101828;--color-gray-950:#030712;--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-md:28rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height:calc(1.5/1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-wider:.05em;--leading-tight:1.25;--leading-snug:1.375;--leading-relaxed:1.625;--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--blur-sm:8px;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-geist-sans);--default-mono-font-family:var(--font-geist-mono)}@supports (color:lab(0% 0 0)){:root,:host{--color-red-300:lab(76.5514% 36.422 15.5335);--color-red-400:lab(63.7053% 60.745 31.3109);--color-red-500:lab(55.4814% 75.0732 48.8528);--color-red-600:lab(48.4493% 77.4328 61.5452);--color-orange-300:lab(80.8059% 21.7313 50.4455);--color-orange-400:lab(70.0429% 42.5156 75.8207);--color-orange-500:lab(64.272% 57.1788 90.3583);--color-orange-600:lab(57.1026% 64.2584 89.8886);--color-amber-400:lab(80.1641% 16.6016 99.2089);--color-amber-500:lab(72.7183% 31.8672 97.9407);--color-amber-600:lab(60.3514% 40.5624 87.1228);--color-yellow-400:lab(83.2664% 8.65132 106.895);--color-yellow-500:lab(76.3898% 14.5258 98.4589);--color-green-300:lab(86.9953% -47.2691 25.0054);--color-green-400:lab(78.503% -64.9265 39.7492);--color-green-500:lab(70.5521% -66.5147 45.8073);--color-green-600:lab(59.0978% -58.6621 41.2579);--color-emerald-400:lab(75.0771% -60.7313 19.4147);--color-emerald-500:lab(66.9756% -58.27 19.5419);--color-cyan-300:lab(85.3886% -36.7636 -21.5716);--color-cyan-400:lab(76.6045% -40.9406 -29.6231);--color-cyan-500:lab(67.805% -35.3952 -30.2018);--color-cyan-600:lab(55.1767% -26.7496 -30.5139);--color-cyan-700:lab(44.7267% -21.5987 -26.118);--color-cyan-800:lab(36.5114% -17.1989 -21.6292);--color-cyan-950:lab(19.1528% -9.68757 -15.5267);--color-blue-100:lab(92.0301% -2.24757 -11.6453);--color-blue-300:lab(77.5052% -6.4629 -36.42);--color-blue-400:lab(65.0361% -1.42065 -56.9802);--color-blue-500:lab(54.1736% 13.3369 -74.6839);--color-blue-600:lab(44.0605% 29.0279 -86.0352);--color-blue-700:lab(36.9089% 35.0961 -85.6872);--color-violet-400:lab(62.8239% 34.9159 -60.0512);--color-purple-300:lab(78.3298% 26.2195 -34.9499);--color-purple-400:lab(63.6946% 47.6127 -59.2066);--color-purple-500:lab(52.0183% 66.11 -78.2316);--color-purple-600:lab(43.0295% 75.21 -86.5669);--color-slate-200:lab(91.7353% -.998765 -4.76968);--color-slate-300:lab(84.7652% -1.94535 -7.93337);--color-slate-400:lab(65.5349% -2.25151 -14.5072);--color-slate-500:lab(48.0876% -2.03595 -16.5814);--color-slate-600:lab(35.5623% -1.74978 -15.4316);--color-slate-700:lab(26.9569% -1.47016 -15.6993);--color-slate-800:lab(16.132% -.318035 -14.6672);--color-slate-900:lab(7.78673% 1.82345 -15.0537);--color-slate-950:lab(1.76974% 1.32743 -9.28855);--color-gray-400:lab(65.9269% -.832707 -8.17473);--color-gray-600:lab(35.6337% -1.58697 -10.8425);--color-gray-700:lab(27.1134% -.956401 -12.3224);--color-gray-800:lab(16.1051% -1.18239 -11.7533);--color-gray-900:lab(8.11897% .811279 -12.254);--color-gray-950:lab(1.90334% .278696 -5.48866)}}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--border);outline-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){*{outline-color:color-mix(in oklab,var(--ring)50%,transparent)}}body{background-color:var(--background);color:var(--foreground)}}@layer components;@layer utilities{.\@container\/card-header{container:card-header/inline-size}.pointer-events-none{pointer-events:none}.\!visible{visibility:visible!important}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.-top-0\.5{top:calc(var(--spacing)*-.5)}.top-0{top:calc(var(--spacing)*0)}.top-1\/2{top:50%}.top-3{top:calc(var(--spacing)*3)}.top-4{top:calc(var(--spacing)*4)}.top-full{top:100%}.-right-0\.5{right:calc(var(--spacing)*-.5)}.right-0{right:calc(var(--spacing)*0)}.right-3{right:calc(var(--spacing)*3)}.right-4{right:calc(var(--spacing)*4)}.bottom-0{bottom:calc(var(--spacing)*0)}.bottom-4{bottom:calc(var(--spacing)*4)}.left-0{left:calc(var(--spacing)*0)}.left-1\/2{left:50%}.left-2{left:calc(var(--spacing)*2)}.left-3{left:calc(var(--spacing)*3)}.left-4{left:calc(var(--spacing)*4)}.z-10{z-index:10}.z-50{z-index:50}.col-start-2{grid-column-start:2}.row-span-2{grid-row:span 2/span 2}.row-start-1{grid-row-start:1}.mx-0\.5{margin-inline:calc(var(--spacing)*.5)}.mx-1{margin-inline:calc(var(--spacing)*1)}.mx-3{margin-inline:calc(var(--spacing)*3)}.mx-4{margin-inline:calc(var(--spacing)*4)}.mx-auto{margin-inline:auto}.-mt-1{margin-top:calc(var(--spacing)*-1)}.mt-0\.5{margin-top:calc(var(--spacing)*.5)}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-1\.5{margin-top:calc(var(--spacing)*1.5)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-6{margin-top:calc(var(--spacing)*6)}.mr-0\.5{margin-right:calc(var(--spacing)*.5)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-0\.5{margin-bottom:calc(var(--spacing)*.5)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-1\.5{margin-bottom:calc(var(--spacing)*1.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-2\.5{margin-bottom:calc(var(--spacing)*2.5)}.mb-3{margin-bottom:calc(var(--spacing)*3)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-10{margin-left:calc(var(--spacing)*10)}.ml-auto{margin-left:auto}.line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.size-8{width:calc(var(--spacing)*8);height:calc(var(--spacing)*8)}.size-9{width:calc(var(--spacing)*9);height:calc(var(--spacing)*9)}.size-10{width:calc(var(--spacing)*10);height:calc(var(--spacing)*10)}.h-0\.5{height:calc(var(--spacing)*.5)}.h-1{height:calc(var(--spacing)*1)}.h-1\.5{height:calc(var(--spacing)*1.5)}.h-2{height:calc(var(--spacing)*2)}.h-2\.5{height:calc(var(--spacing)*2.5)}.h-3{height:calc(var(--spacing)*3)}.h-4{height:calc(var(--spacing)*4)}.h-5{height:calc(var(--spacing)*5)}.h-6{height:calc(var(--spacing)*6)}.h-7{height:calc(var(--spacing)*7)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-10{height:calc(var(--spacing)*10)}.h-12{height:calc(var(--spacing)*12)}.h-14{height:calc(var(--spacing)*14)}.h-24{height:calc(var(--spacing)*24)}.h-32{height:calc(var(--spacing)*32)}.h-48{height:calc(var(--spacing)*48)}.h-96{height:calc(var(--spacing)*96)}.h-\[14px\]{height:14px}.h-\[120px\]{height:120px}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-24{max-height:calc(var(--spacing)*24)}.max-h-32{max-height:calc(var(--spacing)*32)}.max-h-48{max-height:calc(var(--spacing)*48)}.max-h-60{max-height:calc(var(--spacing)*60)}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-screen{min-height:100vh}.w-1\.5{width:calc(var(--spacing)*1.5)}.w-1\/2{width:50%}.w-2{width:calc(var(--spacing)*2)}.w-2\.5{width:calc(var(--spacing)*2.5)}.w-3{width:calc(var(--spacing)*3)}.w-4{width:calc(var(--spacing)*4)}.w-5{width:calc(var(--spacing)*5)}.w-6{width:calc(var(--spacing)*6)}.w-10{width:calc(var(--spacing)*10)}.w-12{width:calc(var(--spacing)*12)}.w-14{width:calc(var(--spacing)*14)}.w-16{width:calc(var(--spacing)*16)}.w-20{width:calc(var(--spacing)*20)}.w-24{width:calc(var(--spacing)*24)}.w-48{width:calc(var(--spacing)*48)}.w-56{width:calc(var(--spacing)*56)}.w-64{width:calc(var(--spacing)*64)}.w-80{width:calc(var(--spacing)*80)}.w-\[14px\]{width:14px}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.max-w-2xl{max-width:var(--container-2xl)}.max-w-\[180px\]{max-width:180px}.max-w-\[200px\]{max-width:200px}.max-w-\[220px\]{max-width:220px}.max-w-\[300px\]{max-width:300px}.max-w-md{max-width:var(--container-md)}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-\[14px\]{min-width:14px}.min-w-\[200px\]{min-width:200px}.flex-1{flex:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-90{rotate:-90deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize-none{resize:none}.resize-y{resize:vertical}.auto-rows-min{grid-auto-rows:min-content}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-\[1fr_80px_60px_60px_70px\]{grid-template-columns:1fr 80px 60px 60px 70px}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-6{gap:calc(var(--spacing)*6)}.gap-px{gap:1px}:where(.space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-1\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1.5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1.5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-3{column-gap:calc(var(--spacing)*3)}.gap-y-1\.5{row-gap:calc(var(--spacing)*1.5)}.self-center{align-self:center}.self-start{align-self:flex-start}.justify-self-end{justify-self:flex-end}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:calc(var(--radius) + 4px)}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-sm{border-top-left-radius:calc(var(--radius) - 4px);border-top-right-radius:calc(var(--radius) - 4px)}.rounded-l{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-r{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-amber-600\/50{border-color:#dd740080}@supports (color:color-mix(in lab, red, red)){.border-amber-600\/50{border-color:color-mix(in oklab,var(--color-amber-600)50%,transparent)}}.border-blue-500{border-color:var(--color-blue-500)}.border-blue-500\/30{border-color:#3080ff4d}@supports (color:color-mix(in lab, red, red)){.border-blue-500\/30{border-color:color-mix(in oklab,var(--color-blue-500)30%,transparent)}}.border-cyan-500{border-color:var(--color-cyan-500)}.border-cyan-800\/30{border-color:#005f784d}@supports (color:color-mix(in lab, red, red)){.border-cyan-800\/30{border-color:color-mix(in oklab,var(--color-cyan-800)30%,transparent)}}.border-emerald-500\/30{border-color:#00bb7f4d}@supports (color:color-mix(in lab, red, red)){.border-emerald-500\/30{border-color:color-mix(in oklab,var(--color-emerald-500)30%,transparent)}}.border-gray-800{border-color:var(--color-gray-800)}.border-green-500\/30{border-color:#00c7584d}@supports (color:color-mix(in lab, red, red)){.border-green-500\/30{border-color:color-mix(in oklab,var(--color-green-500)30%,transparent)}}.border-green-600{border-color:var(--color-green-600)}.border-input{border-color:var(--input)}.border-orange-500{border-color:var(--color-orange-500)}.border-orange-500\/30{border-color:#fe6e004d}@supports (color:color-mix(in lab, red, red)){.border-orange-500\/30{border-color:color-mix(in oklab,var(--color-orange-500)30%,transparent)}}.border-orange-500\/50{border-color:#fe6e0080}@supports (color:color-mix(in lab, red, red)){.border-orange-500\/50{border-color:color-mix(in oklab,var(--color-orange-500)50%,transparent)}}.border-orange-600{border-color:var(--color-orange-600)}.border-purple-500{border-color:var(--color-purple-500)}.border-red-500\/20{border-color:#fb2c3633}@supports (color:color-mix(in lab, red, red)){.border-red-500\/20{border-color:color-mix(in oklab,var(--color-red-500)20%,transparent)}}.border-red-500\/30{border-color:#fb2c364d}@supports (color:color-mix(in lab, red, red)){.border-red-500\/30{border-color:color-mix(in oklab,var(--color-red-500)30%,transparent)}}.border-red-500\/50{border-color:#fb2c3680}@supports (color:color-mix(in lab, red, red)){.border-red-500\/50{border-color:color-mix(in oklab,var(--color-red-500)50%,transparent)}}.border-slate-500\/30{border-color:#62748e4d}@supports (color:color-mix(in lab, red, red)){.border-slate-500\/30{border-color:color-mix(in oklab,var(--color-slate-500)30%,transparent)}}.border-slate-600{border-color:var(--color-slate-600)}.border-slate-700{border-color:var(--color-slate-700)}.border-slate-700\/50{border-color:#31415880}@supports (color:color-mix(in lab, red, red)){.border-slate-700\/50{border-color:color-mix(in oklab,var(--color-slate-700)50%,transparent)}}.border-slate-800{border-color:var(--color-slate-800)}.border-slate-800\/50{border-color:#1d293d80}@supports (color:color-mix(in lab, red, red)){.border-slate-800\/50{border-color:color-mix(in oklab,var(--color-slate-800)50%,transparent)}}.border-transparent{border-color:#0000}.border-yellow-500\/20{border-color:#edb20033}@supports (color:color-mix(in lab, red, red)){.border-yellow-500\/20{border-color:color-mix(in oklab,var(--color-yellow-500)20%,transparent)}}.bg-\[\#0a0a0f\]{background-color:#0a0a0f}.bg-\[\#0a0a12\]{background-color:#0a0a12}.bg-amber-400{background-color:var(--color-amber-400)}.bg-amber-400\/10{background-color:#fcbb001a}@supports (color:color-mix(in lab, red, red)){.bg-amber-400\/10{background-color:color-mix(in oklab,var(--color-amber-400)10%,transparent)}}.bg-amber-500{background-color:var(--color-amber-500)}.bg-background{background-color:var(--background)}.bg-black\/60{background-color:#0009}@supports (color:color-mix(in lab, red, red)){.bg-black\/60{background-color:color-mix(in oklab,var(--color-black)60%,transparent)}}.bg-blue-400{background-color:var(--color-blue-400)}.bg-blue-400\/10{background-color:#54a2ff1a}@supports (color:color-mix(in lab, red, red)){.bg-blue-400\/10{background-color:color-mix(in oklab,var(--color-blue-400)10%,transparent)}}.bg-blue-500\/10{background-color:#3080ff1a}@supports (color:color-mix(in lab, red, red)){.bg-blue-500\/10{background-color:color-mix(in oklab,var(--color-blue-500)10%,transparent)}}.bg-blue-500\/20{background-color:#3080ff33}@supports (color:color-mix(in lab, red, red)){.bg-blue-500\/20{background-color:color-mix(in oklab,var(--color-blue-500)20%,transparent)}}.bg-blue-500\/30{background-color:#3080ff4d}@supports (color:color-mix(in lab, red, red)){.bg-blue-500\/30{background-color:color-mix(in oklab,var(--color-blue-500)30%,transparent)}}.bg-blue-600{background-color:var(--color-blue-600)}.bg-blue-600\/30{background-color:#155dfc4d}@supports (color:color-mix(in lab, red, red)){.bg-blue-600\/30{background-color:color-mix(in oklab,var(--color-blue-600)30%,transparent)}}.bg-blue-600\/80{background-color:#155dfccc}@supports (color:color-mix(in lab, red, red)){.bg-blue-600\/80{background-color:color-mix(in oklab,var(--color-blue-600)80%,transparent)}}.bg-card{background-color:var(--card)}.bg-cyan-400\/10{background-color:#00d2ef1a}@supports (color:color-mix(in lab, red, red)){.bg-cyan-400\/10{background-color:color-mix(in oklab,var(--color-cyan-400)10%,transparent)}}.bg-cyan-500\/10{background-color:#00b7d71a}@supports (color:color-mix(in lab, red, red)){.bg-cyan-500\/10{background-color:color-mix(in oklab,var(--color-cyan-500)10%,transparent)}}.bg-cyan-600{background-color:var(--color-cyan-600)}.bg-cyan-600\/10{background-color:#0092b51a}@supports (color:color-mix(in lab, red, red)){.bg-cyan-600\/10{background-color:color-mix(in oklab,var(--color-cyan-600)10%,transparent)}}.bg-cyan-600\/20{background-color:#0092b533}@supports (color:color-mix(in lab, red, red)){.bg-cyan-600\/20{background-color:color-mix(in oklab,var(--color-cyan-600)20%,transparent)}}.bg-destructive{background-color:var(--destructive)}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-emerald-500\/20{background-color:#00bb7f33}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\/20{background-color:color-mix(in oklab,var(--color-emerald-500)20%,transparent)}}.bg-emerald-500\/60{background-color:#00bb7f99}@supports (color:color-mix(in lab, red, red)){.bg-emerald-500\/60{background-color:color-mix(in oklab,var(--color-emerald-500)60%,transparent)}}.bg-gray-700{background-color:var(--color-gray-700)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-gray-950{background-color:var(--color-gray-950)}.bg-green-400\/10{background-color:#05df721a}@supports (color:color-mix(in lab, red, red)){.bg-green-400\/10{background-color:color-mix(in oklab,var(--color-green-400)10%,transparent)}}.bg-green-500{background-color:var(--color-green-500)}.bg-green-500\/10{background-color:#00c7581a}@supports (color:color-mix(in lab, red, red)){.bg-green-500\/10{background-color:color-mix(in oklab,var(--color-green-500)10%,transparent)}}.bg-green-500\/20{background-color:#00c75833}@supports (color:color-mix(in lab, red, red)){.bg-green-500\/20{background-color:color-mix(in oklab,var(--color-green-500)20%,transparent)}}.bg-green-600{background-color:var(--color-green-600)}.bg-green-600\/10{background-color:#00a5441a}@supports (color:color-mix(in lab, red, red)){.bg-green-600\/10{background-color:color-mix(in oklab,var(--color-green-600)10%,transparent)}}.bg-green-600\/30{background-color:#00a5444d}@supports (color:color-mix(in lab, red, red)){.bg-green-600\/30{background-color:color-mix(in oklab,var(--color-green-600)30%,transparent)}}.bg-orange-400\/10{background-color:#ff8b1a1a}@supports (color:color-mix(in lab, red, red)){.bg-orange-400\/10{background-color:color-mix(in oklab,var(--color-orange-400)10%,transparent)}}.bg-orange-500{background-color:var(--color-orange-500)}.bg-orange-500\/10{background-color:#fe6e001a}@supports (color:color-mix(in lab, red, red)){.bg-orange-500\/10{background-color:color-mix(in oklab,var(--color-orange-500)10%,transparent)}}.bg-orange-500\/20{background-color:#fe6e0033}@supports (color:color-mix(in lab, red, red)){.bg-orange-500\/20{background-color:color-mix(in oklab,var(--color-orange-500)20%,transparent)}}.bg-orange-500\/30{background-color:#fe6e004d}@supports (color:color-mix(in lab, red, red)){.bg-orange-500\/30{background-color:color-mix(in oklab,var(--color-orange-500)30%,transparent)}}.bg-primary{background-color:var(--primary)}.bg-purple-400{background-color:var(--color-purple-400)}.bg-purple-400\/10{background-color:#c07eff1a}@supports (color:color-mix(in lab, red, red)){.bg-purple-400\/10{background-color:color-mix(in oklab,var(--color-purple-400)10%,transparent)}}.bg-purple-500\/10{background-color:#ac4bff1a}@supports (color:color-mix(in lab, red, red)){.bg-purple-500\/10{background-color:color-mix(in oklab,var(--color-purple-500)10%,transparent)}}.bg-purple-500\/30{background-color:#ac4bff4d}@supports (color:color-mix(in lab, red, red)){.bg-purple-500\/30{background-color:color-mix(in oklab,var(--color-purple-500)30%,transparent)}}.bg-purple-600{background-color:var(--color-purple-600)}.bg-purple-600\/30{background-color:#9810fa4d}@supports (color:color-mix(in lab, red, red)){.bg-purple-600\/30{background-color:color-mix(in oklab,var(--color-purple-600)30%,transparent)}}.bg-red-400{background-color:var(--color-red-400)}.bg-red-400\/10{background-color:#ff65681a}@supports (color:color-mix(in lab, red, red)){.bg-red-400\/10{background-color:color-mix(in oklab,var(--color-red-400)10%,transparent)}}.bg-red-500{background-color:var(--color-red-500)}.bg-red-500\/5{background-color:#fb2c360d}@supports (color:color-mix(in lab, red, red)){.bg-red-500\/5{background-color:color-mix(in oklab,var(--color-red-500)5%,transparent)}}.bg-red-500\/10{background-color:#fb2c361a}@supports (color:color-mix(in lab, red, red)){.bg-red-500\/10{background-color:color-mix(in oklab,var(--color-red-500)10%,transparent)}}.bg-red-500\/20{background-color:#fb2c3633}@supports (color:color-mix(in lab, red, red)){.bg-red-500\/20{background-color:color-mix(in oklab,var(--color-red-500)20%,transparent)}}.bg-red-600{background-color:var(--color-red-600)}.bg-red-600\/10{background-color:#e400141a}@supports (color:color-mix(in lab, red, red)){.bg-red-600\/10{background-color:color-mix(in oklab,var(--color-red-600)10%,transparent)}}.bg-red-600\/20{background-color:#e4001433}@supports (color:color-mix(in lab, red, red)){.bg-red-600\/20{background-color:color-mix(in oklab,var(--color-red-600)20%,transparent)}}.bg-secondary{background-color:var(--secondary)}.bg-slate-400{background-color:var(--color-slate-400)}.bg-slate-400\/10{background-color:#90a1b91a}@supports (color:color-mix(in lab, red, red)){.bg-slate-400\/10{background-color:color-mix(in oklab,var(--color-slate-400)10%,transparent)}}.bg-slate-500{background-color:var(--color-slate-500)}.bg-slate-500\/10{background-color:#62748e1a}@supports (color:color-mix(in lab, red, red)){.bg-slate-500\/10{background-color:color-mix(in oklab,var(--color-slate-500)10%,transparent)}}.bg-slate-500\/20{background-color:#62748e33}@supports (color:color-mix(in lab, red, red)){.bg-slate-500\/20{background-color:color-mix(in oklab,var(--color-slate-500)20%,transparent)}}.bg-slate-600{background-color:var(--color-slate-600)}.bg-slate-700{background-color:var(--color-slate-700)}.bg-slate-700\/60{background-color:#31415899}@supports (color:color-mix(in lab, red, red)){.bg-slate-700\/60{background-color:color-mix(in oklab,var(--color-slate-700)60%,transparent)}}.bg-slate-800{background-color:var(--color-slate-800)}.bg-slate-800\/40{background-color:#1d293d66}@supports (color:color-mix(in lab, red, red)){.bg-slate-800\/40{background-color:color-mix(in oklab,var(--color-slate-800)40%,transparent)}}.bg-slate-800\/50{background-color:#1d293d80}@supports (color:color-mix(in lab, red, red)){.bg-slate-800\/50{background-color:color-mix(in oklab,var(--color-slate-800)50%,transparent)}}.bg-slate-800\/80{background-color:#1d293dcc}@supports (color:color-mix(in lab, red, red)){.bg-slate-800\/80{background-color:color-mix(in oklab,var(--color-slate-800)80%,transparent)}}.bg-slate-800\/95{background-color:#1d293df2}@supports (color:color-mix(in lab, red, red)){.bg-slate-800\/95{background-color:color-mix(in oklab,var(--color-slate-800)95%,transparent)}}.bg-slate-900{background-color:var(--color-slate-900)}.bg-slate-900\/30{background-color:#0f172b4d}@supports (color:color-mix(in lab, red, red)){.bg-slate-900\/30{background-color:color-mix(in oklab,var(--color-slate-900)30%,transparent)}}.bg-slate-900\/50{background-color:#0f172b80}@supports (color:color-mix(in lab, red, red)){.bg-slate-900\/50{background-color:color-mix(in oklab,var(--color-slate-900)50%,transparent)}}.bg-slate-900\/80{background-color:#0f172bcc}@supports (color:color-mix(in lab, red, red)){.bg-slate-900\/80{background-color:color-mix(in oklab,var(--color-slate-900)80%,transparent)}}.bg-slate-900\/90{background-color:#0f172be6}@supports (color:color-mix(in lab, red, red)){.bg-slate-900\/90{background-color:color-mix(in oklab,var(--color-slate-900)90%,transparent)}}.bg-slate-900\/95{background-color:#0f172bf2}@supports (color:color-mix(in lab, red, red)){.bg-slate-900\/95{background-color:color-mix(in oklab,var(--color-slate-900)95%,transparent)}}.bg-slate-950{background-color:var(--color-slate-950)}.bg-slate-950\/60{background-color:#02061899}@supports (color:color-mix(in lab, red, red)){.bg-slate-950\/60{background-color:color-mix(in oklab,var(--color-slate-950)60%,transparent)}}.bg-transparent{background-color:#0000}.bg-yellow-400\/10{background-color:#fac8001a}@supports (color:color-mix(in lab, red, red)){.bg-yellow-400\/10{background-color:color-mix(in oklab,var(--color-yellow-400)10%,transparent)}}.bg-yellow-500{background-color:var(--color-yellow-500)}.bg-yellow-500\/5{background-color:#edb2000d}@supports (color:color-mix(in lab, red, red)){.bg-yellow-500\/5{background-color:color-mix(in oklab,var(--color-yellow-500)5%,transparent)}}.bg-yellow-500\/10{background-color:#edb2001a}@supports (color:color-mix(in lab, red, red)){.bg-yellow-500\/10{background-color:color-mix(in oklab,var(--color-yellow-500)10%,transparent)}}.bg-gradient-to-br{--tw-gradient-position:to bottom right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-r{--tw-gradient-position:to right in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.bg-gradient-to-t{--tw-gradient-position:to top in oklab;background-image:linear-gradient(var(--tw-gradient-stops))}.from-blue-600{--tw-gradient-from:var(--color-blue-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-cyan-400{--tw-gradient-from:var(--color-cyan-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-cyan-600{--tw-gradient-from:var(--color-cyan-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-red-500{--tw-gradient-from:var(--color-red-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-slate-900{--tw-gradient-from:var(--color-slate-900);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.via-blue-400{--tw-gradient-via:var(--color-blue-400);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-slate-900{--tw-gradient-via:var(--color-slate-900);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.via-yellow-500{--tw-gradient-via:var(--color-yellow-500);--tw-gradient-via-stops:var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-via)var(--tw-gradient-via-position),var(--tw-gradient-to)var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-via-stops)}.to-cyan-400{--tw-gradient-to:var(--color-cyan-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-cyan-950\/30{--tw-gradient-to:#0533454d}@supports (color:color-mix(in lab, red, red)){.to-cyan-950\/30{--tw-gradient-to:color-mix(in oklab,var(--color-cyan-950)30%,transparent)}}.to-cyan-950\/30{--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-emerald-400{--tw-gradient-to:var(--color-emerald-400);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-green-500{--tw-gradient-to:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-purple-600{--tw-gradient-to:var(--color-purple-600);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.p-0\.5{padding:calc(var(--spacing)*.5)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-2\.5{padding:calc(var(--spacing)*2.5)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-5{padding:calc(var(--spacing)*5)}.p-6{padding:calc(var(--spacing)*6)}.px-0\.5{padding-inline:calc(var(--spacing)*.5)}.px-1{padding-inline:calc(var(--spacing)*1)}.px-1\.5{padding-inline:calc(var(--spacing)*1.5)}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-6{padding-inline:calc(var(--spacing)*6)}.py-0\.5{padding-block:calc(var(--spacing)*.5)}.py-1{padding-block:calc(var(--spacing)*1)}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.py-2\.5{padding-block:calc(var(--spacing)*2.5)}.py-3{padding-block:calc(var(--spacing)*3)}.py-4{padding-block:calc(var(--spacing)*4)}.py-6{padding-block:calc(var(--spacing)*6)}.py-8{padding-block:calc(var(--spacing)*8)}.py-16{padding-block:calc(var(--spacing)*16)}.pt-1{padding-top:calc(var(--spacing)*1)}.pt-2{padding-top:calc(var(--spacing)*2)}.pt-3{padding-top:calc(var(--spacing)*3)}.pr-2{padding-right:calc(var(--spacing)*2)}.pr-4{padding-right:calc(var(--spacing)*4)}.pr-6{padding-right:calc(var(--spacing)*6)}.pb-2{padding-bottom:calc(var(--spacing)*2)}.pb-3{padding-bottom:calc(var(--spacing)*3)}.pl-3{padding-left:calc(var(--spacing)*3)}.pl-6{padding-left:calc(var(--spacing)*6)}.pl-7{padding-left:calc(var(--spacing)*7)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-geist-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[8px\]{font-size:8px}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.break-words{overflow-wrap:break-word}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.text-amber-400{color:var(--color-amber-400)}.text-amber-400\/60{color:#fcbb0099}@supports (color:color-mix(in lab, red, red)){.text-amber-400\/60{color:color-mix(in oklab,var(--color-amber-400)60%,transparent)}}.text-amber-400\/80{color:#fcbb00cc}@supports (color:color-mix(in lab, red, red)){.text-amber-400\/80{color:color-mix(in oklab,var(--color-amber-400)80%,transparent)}}.text-blue-100{color:var(--color-blue-100)}.text-blue-300{color:var(--color-blue-300)}.text-blue-400{color:var(--color-blue-400)}.text-card-foreground{color:var(--card-foreground)}.text-cyan-400{color:var(--color-cyan-400)}.text-emerald-400{color:var(--color-emerald-400)}.text-gray-400{color:var(--color-gray-400)}.text-green-300{color:var(--color-green-300)}.text-green-400{color:var(--color-green-400)}.text-muted-foreground{color:var(--muted-foreground)}.text-orange-300{color:var(--color-orange-300)}.text-orange-400{color:var(--color-orange-400)}.text-primary{color:var(--primary)}.text-primary-foreground{color:var(--primary-foreground)}.text-purple-300{color:var(--color-purple-300)}.text-purple-400{color:var(--color-purple-400)}.text-red-300{color:var(--color-red-300)}.text-red-400{color:var(--color-red-400)}.text-secondary-foreground{color:var(--secondary-foreground)}.text-slate-200{color:var(--color-slate-200)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-transparent{color:#0000}.text-white{color:var(--color-white)}.text-yellow-400{color:var(--color-yellow-400)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.accent-blue-500{accent-color:var(--color-blue-500)}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a),0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring,.ring-1{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-green-500{--tw-ring-color:var(--color-green-500)}.ring-green-500\/50{--tw-ring-color:#00c75880}@supports (color:color-mix(in lab, red, red)){.ring-green-500\/50{--tw-ring-color:color-mix(in oklab,var(--color-green-500)50%,transparent)}}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.backdrop-blur-sm{--tw-backdrop-blur:blur(var(--blur-sm));-webkit-backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,)var(--tw-backdrop-brightness,)var(--tw-backdrop-contrast,)var(--tw-backdrop-grayscale,)var(--tw-backdrop-hue-rotate,)var(--tw-backdrop-invert,)var(--tw-backdrop-opacity,)var(--tw-backdrop-saturate,)var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-\[color\,box-shadow\]{transition-property:color,box-shadow;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.outline-none{--tw-outline-style:none;outline-style:none}.paused{animation-play-state:paused}.running{animation-play-state:running}@media (hover:hover){.group-hover\:text-blue-400:is(:where(.group):hover *){color:var(--color-blue-400)}.group-hover\:text-slate-200:is(:where(.group):hover *){color:var(--color-slate-200)}.group-hover\:text-slate-400:is(:where(.group):hover *){color:var(--color-slate-400)}.group-hover\:text-white:is(:where(.group):hover *){color:var(--color-white)}}.selection\:bg-primary ::selection,.selection\:bg-primary::selection{background-color:var(--primary)}.selection\:text-primary-foreground ::selection,.selection\:text-primary-foreground::selection{color:var(--primary-foreground)}.file\:inline-flex::file-selector-button{display:inline-flex}.file\:h-7::file-selector-button{height:calc(var(--spacing)*7)}.file\:border-0::file-selector-button{border-style:var(--tw-border-style);border-width:0}.file\:bg-transparent::file-selector-button{background-color:#0000}.file\:text-sm::file-selector-button{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.file\:font-medium::file-selector-button{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.file\:text-foreground::file-selector-button{color:var(--foreground)}.placeholder\:text-muted-foreground::placeholder{color:var(--muted-foreground)}.placeholder\:text-slate-400::placeholder{color:var(--color-slate-400)}.placeholder\:text-slate-500::placeholder{color:var(--color-slate-500)}.last\:border-0:last-child{border-style:var(--tw-border-style);border-width:0}@media (hover:hover){.hover\:border-slate-600:hover{border-color:var(--color-slate-600)}.hover\:border-slate-700:hover{border-color:var(--color-slate-700)}.hover\:bg-accent:hover{background-color:var(--accent)}.hover\:bg-blue-600:hover{background-color:var(--color-blue-600)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-cyan-500:hover{background-color:var(--color-cyan-500)}.hover\:bg-cyan-700:hover{background-color:var(--color-cyan-700)}.hover\:bg-destructive\/90:hover{background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-destructive\/90:hover{background-color:color-mix(in oklab,var(--destructive)90%,transparent)}}.hover\:bg-gray-600:hover{background-color:var(--color-gray-600)}.hover\:bg-green-500:hover{background-color:var(--color-green-500)}.hover\:bg-green-600:hover{background-color:var(--color-green-600)}.hover\:bg-green-600\/20:hover{background-color:#00a54433}@supports (color:color-mix(in lab, red, red)){.hover\:bg-green-600\/20:hover{background-color:color-mix(in oklab,var(--color-green-600)20%,transparent)}}.hover\:bg-orange-600\/20:hover{background-color:#f0510033}@supports (color:color-mix(in lab, red, red)){.hover\:bg-orange-600\/20:hover{background-color:color-mix(in oklab,var(--color-orange-600)20%,transparent)}}.hover\:bg-primary\/90:hover{background-color:var(--primary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-primary\/90:hover{background-color:color-mix(in oklab,var(--primary)90%,transparent)}}.hover\:bg-red-500:hover{background-color:var(--color-red-500)}.hover\:bg-red-600\/20:hover{background-color:#e4001433}@supports (color:color-mix(in lab, red, red)){.hover\:bg-red-600\/20:hover{background-color:color-mix(in oklab,var(--color-red-600)20%,transparent)}}.hover\:bg-red-600\/40:hover{background-color:#e4001466}@supports (color:color-mix(in lab, red, red)){.hover\:bg-red-600\/40:hover{background-color:color-mix(in oklab,var(--color-red-600)40%,transparent)}}.hover\:bg-secondary\/80:hover{background-color:var(--secondary)}@supports (color:color-mix(in lab, red, red)){.hover\:bg-secondary\/80:hover{background-color:color-mix(in oklab,var(--secondary)80%,transparent)}}.hover\:bg-slate-600\/20:hover{background-color:#45556c33}@supports (color:color-mix(in lab, red, red)){.hover\:bg-slate-600\/20:hover{background-color:color-mix(in oklab,var(--color-slate-600)20%,transparent)}}.hover\:bg-slate-700:hover{background-color:var(--color-slate-700)}.hover\:bg-slate-800:hover{background-color:var(--color-slate-800)}.hover\:bg-slate-800\/30:hover{background-color:#1d293d4d}@supports (color:color-mix(in lab, red, red)){.hover\:bg-slate-800\/30:hover{background-color:color-mix(in oklab,var(--color-slate-800)30%,transparent)}}.hover\:bg-slate-800\/50:hover{background-color:#1d293d80}@supports (color:color-mix(in lab, red, red)){.hover\:bg-slate-800\/50:hover{background-color:color-mix(in oklab,var(--color-slate-800)50%,transparent)}}.hover\:bg-slate-800\/60:hover{background-color:#1d293d99}@supports (color:color-mix(in lab, red, red)){.hover\:bg-slate-800\/60:hover{background-color:color-mix(in oklab,var(--color-slate-800)60%,transparent)}}.hover\:bg-slate-800\/70:hover{background-color:#1d293db3}@supports (color:color-mix(in lab, red, red)){.hover\:bg-slate-800\/70:hover{background-color:color-mix(in oklab,var(--color-slate-800)70%,transparent)}}.hover\:bg-slate-800\/80:hover{background-color:#1d293dcc}@supports (color:color-mix(in lab, red, red)){.hover\:bg-slate-800\/80:hover{background-color:color-mix(in oklab,var(--color-slate-800)80%,transparent)}}.hover\:text-accent-foreground:hover{color:var(--accent-foreground)}.hover\:text-amber-400:hover{color:var(--color-amber-400)}.hover\:text-blue-400:hover{color:var(--color-blue-400)}.hover\:text-cyan-300:hover{color:var(--color-cyan-300)}.hover\:text-emerald-400:hover{color:var(--color-emerald-400)}.hover\:text-green-300:hover{color:var(--color-green-300)}.hover\:text-orange-300:hover{color:var(--color-orange-300)}.hover\:text-red-300:hover{color:var(--color-red-300)}.hover\:text-red-400:hover{color:var(--color-red-400)}.hover\:text-slate-200:hover{color:var(--color-slate-200)}.hover\:text-slate-300:hover{color:var(--color-slate-300)}.hover\:text-violet-400:hover{color:var(--color-violet-400)}.hover\:text-white:hover{color:var(--color-white)}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}}.focus\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\:border-cyan-500:focus{border-color:var(--color-cyan-500)}.focus\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-cyan-500:focus{--tw-ring-color:var(--color-cyan-500)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.focus-visible\:border-ring:focus-visible{border-color:var(--ring)}.focus-visible\:ring-\[3px\]:focus-visible{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(3px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-destructive\/20:focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:var(--ring)}@supports (color:color-mix(in lab, red, red)){.focus-visible\:ring-ring\/50:focus-visible{--tw-ring-color:color-mix(in oklab,var(--ring)50%,transparent)}}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.has-data-\[slot\=card-action\]\:grid-cols-\[1fr_auto\]:has([data-slot=card-action]){grid-template-columns:1fr auto}.has-\[\>svg\]\:px-2\.5:has(>svg){padding-inline:calc(var(--spacing)*2.5)}.has-\[\>svg\]\:px-3:has(>svg){padding-inline:calc(var(--spacing)*3)}.has-\[\>svg\]\:px-4:has(>svg){padding-inline:calc(var(--spacing)*4)}.aria-invalid\:border-destructive[aria-invalid=true]{border-color:var(--destructive)}.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.aria-invalid\:ring-destructive\/20[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)20%,transparent)}}@media (min-width:48rem){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}}@media (min-width:64rem){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:80rem){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.dark\:border-input:is(.dark *){border-color:var(--input)}.dark\:bg-destructive\/60:is(.dark *){background-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-destructive\/60:is(.dark *){background-color:color-mix(in oklab,var(--destructive)60%,transparent)}}.dark\:bg-input\/30:is(.dark *){background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:bg-input\/30:is(.dark *){background-color:color-mix(in oklab,var(--input)30%,transparent)}}@media (hover:hover){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:var(--accent)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-accent\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--accent)50%,transparent)}}.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:var(--input)}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-input\/50:is(.dark *):hover{background-color:color-mix(in oklab,var(--input)50%,transparent)}}}.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:focus-visible\:ring-destructive\/40:is(.dark *):focus-visible{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:var(--destructive)}@supports (color:color-mix(in lab, red, red)){.dark\:aria-invalid\:ring-destructive\/40:is(.dark *)[aria-invalid=true]{--tw-ring-color:color-mix(in oklab,var(--destructive)40%,transparent)}}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*=size-]){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.\[\.border-b\]\:pb-6.border-b{padding-bottom:calc(var(--spacing)*6)}.\[\.border-t\]\:pt-6.border-t{padding-top:calc(var(--spacing)*6)}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root{--radius:.625rem;--background:#fff;--foreground:#0a0a0a;--card:#fff;--card-foreground:#0a0a0a;--popover:#fff;--popover-foreground:#0a0a0a;--primary:#171717;--primary-foreground:#fafafa;--secondary:#f5f5f5;--secondary-foreground:#171717;--muted:#f5f5f5;--muted-foreground:#737373;--accent:#f5f5f5;--accent-foreground:#171717;--destructive:#e40014;--border:#e5e5e5;--input:#e5e5e5;--ring:#a1a1a1;--chart-1:#f05100;--chart-2:#009588;--chart-3:#104e64;--chart-4:#fcbb00;--chart-5:#f99c00;--sidebar:#fafafa;--sidebar-foreground:#0a0a0a;--sidebar-primary:#171717;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#f5f5f5;--sidebar-accent-foreground:#171717;--sidebar-border:#e5e5e5;--sidebar-ring:#a1a1a1}@supports (color:lab(0% 0 0)){:root{--background:lab(100% 0 0);--foreground:lab(2.75381% 0 0);--card:lab(100% 0 0);--card-foreground:lab(2.75381% 0 0);--popover:lab(100% 0 0);--popover-foreground:lab(2.75381% 0 0);--primary:lab(7.78201% -.0000149012 0);--primary-foreground:lab(98.26% 0 0);--secondary:lab(96.52% -.0000298023 .0000119209);--secondary-foreground:lab(7.78201% -.0000149012 0);--muted:lab(96.52% -.0000298023 .0000119209);--muted-foreground:lab(48.496% 0 0);--accent:lab(96.52% -.0000298023 .0000119209);--accent-foreground:lab(7.78201% -.0000149012 0);--destructive:lab(48.4493% 77.4328 61.5452);--border:lab(90.952% 0 -.0000119209);--input:lab(90.952% 0 -.0000119209);--ring:lab(66.128% -.0000298023 .0000119209);--chart-1:lab(57.1026% 64.2584 89.8886);--chart-2:lab(55.0223% -41.0774 -3.90277);--chart-3:lab(30.372% -13.1853 -18.7887);--chart-4:lab(80.1641% 16.6016 99.2089);--chart-5:lab(72.7183% 31.8672 97.9407);--sidebar:lab(98.26% 0 0);--sidebar-foreground:lab(2.75381% 0 0);--sidebar-primary:lab(7.78201% -.0000149012 0);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(96.52% -.0000298023 .0000119209);--sidebar-accent-foreground:lab(7.78201% -.0000149012 0);--sidebar-border:lab(90.952% 0 -.0000119209);--sidebar-ring:lab(66.128% -.0000298023 .0000119209)}}.dark{--background:#0a0a0a;--foreground:#fafafa;--card:#171717;--card-foreground:#fafafa;--popover:#171717;--popover-foreground:#fafafa;--primary:#e5e5e5;--primary-foreground:#171717;--secondary:#262626;--secondary-foreground:#fafafa;--muted:#262626;--muted-foreground:#a1a1a1;--accent:#262626;--accent-foreground:#fafafa;--destructive:#ff6568;--border:#ffffff1a;--input:#ffffff26;--ring:#737373;--chart-1:#1447e6;--chart-2:#00bb7f;--chart-3:#f99c00;--chart-4:#ac4bff;--chart-5:#ff2357;--sidebar:#171717;--sidebar-foreground:#fafafa;--sidebar-primary:#1447e6;--sidebar-primary-foreground:#fafafa;--sidebar-accent:#262626;--sidebar-accent-foreground:#fafafa;--sidebar-border:#ffffff1a;--sidebar-ring:#737373}@supports (color:lab(0% 0 0)){.dark{--background:lab(2.75381% 0 0);--foreground:lab(98.26% 0 0);--card:lab(7.78201% -.0000149012 0);--card-foreground:lab(98.26% 0 0);--popover:lab(7.78201% -.0000149012 0);--popover-foreground:lab(98.26% 0 0);--primary:lab(90.952% 0 -.0000119209);--primary-foreground:lab(7.78201% -.0000149012 0);--secondary:lab(15.204% 0 -.00000596046);--secondary-foreground:lab(98.26% 0 0);--muted:lab(15.204% 0 -.00000596046);--muted-foreground:lab(66.128% -.0000298023 .0000119209);--accent:lab(15.204% 0 -.00000596046);--accent-foreground:lab(98.26% 0 0);--destructive:lab(63.7053% 60.745 31.3109);--border:lab(100% 0 0/.1);--input:lab(100% 0 0/.15);--ring:lab(48.496% 0 0);--chart-1:lab(36.9089% 35.0961 -85.6872);--chart-2:lab(66.9756% -58.27 19.5419);--chart-3:lab(72.7183% 31.8672 97.9407);--chart-4:lab(52.0183% 66.11 -78.2316);--chart-5:lab(56.101% 79.4328 31.4532);--sidebar:lab(7.78201% -.0000149012 0);--sidebar-foreground:lab(98.26% 0 0);--sidebar-primary:lab(36.9089% 35.0961 -85.6872);--sidebar-primary-foreground:lab(98.26% 0 0);--sidebar-accent:lab(15.204% 0 -.00000596046);--sidebar-accent-foreground:lab(98.26% 0 0);--sidebar-border:lab(100% 0 0/.1);--sidebar-ring:lab(48.496% 0 0)}}.scrollbar-hide::-webkit-scrollbar{display:none}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}
@@ -1 +1 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,97358,e=>{"use strict";let t={architecture:"#FFD700",pattern:"#FFB347",preference:"#FFA500",error:"#FF6B6B",context:"#FFC080",learning:"#FFE4B5",todo:"#FF8C00",note:"#FFCC66",relationship:"#00D4FF",custom:"#FFB347"},r={short_term:"#FFD700",episodic:"#FFB347",long_term:"#FF8C00"};function s(e){return t[e]||t.custom}function i(e){return r[e]||r.short_term}e.s(["CATEGORY_COLORS",0,{architecture:"#3B82F6",pattern:"#8B5CF6",preference:"#EC4899",error:"#EF4444",context:"#10B981",learning:"#F59E0B",todo:"#F97316",note:"#6B7280",relationship:"#06B6D4",custom:"#A855F7"},"getCategoryColor",()=>s,"getTypeColor",()=>i])},25903,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let s=e.r(40909);function i({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new s.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},27601,(e,t,r)=>{"use strict";function s(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return s}})},54220,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return u}});let s=e.r(27493),i=e.r(9854),n=e.r(13595),a=e.r(27601),o=e.r(54218);function u({moduleIds:e}){if("u">typeof window)return null;let t=n.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let s=t.reactLoadableManifest;for(let t of e){if(!s[t])continue;let e=s[t].files;r.push(...e)}}if(0===r.length)return null;let u=(0,o.getDeploymentIdQueryOrEmptyString)();return(0,s.jsx)(s.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,a.encodeURIPath)(e)}${u}`;return e.endsWith(".css")?(0,s.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},73735,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let s=e.r(27493),i=e.r(4),n=e.r(25903),a=e.r(54220);function o(e){return{default:e&&"default"in e?e.default:e}}let u={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},c=function(e){let t={...u,...e},r=(0,i.lazy)(()=>t.loader().then(o)),c=t.loading;function l(e){let o=c?(0,s.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,u=!t.ssr||!!t.loading,l=u?i.Suspense:i.Fragment,h=t.ssr?(0,s.jsxs)(s.Fragment,{children:["u"<typeof window?(0,s.jsx)(a.PreloadChunks,{moduleIds:t.modules}):null,(0,s.jsx)(r,{...e})]}):(0,s.jsx)(n.BailoutToCSR,{reason:"next/dynamic",children:(0,s.jsx)(r,{...e})});return(0,s.jsx)(l,{...u?{fallback:o}:{},children:h})}return l.displayName="LoadableComponent",l}},74133,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}});let s=e.r(77637)._(e.r(73735));function i(e,t){let r={};"function"==typeof e&&(r.loader=e);let i={...r,...t};return(0,s.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88069,45688,71921,94156,e=>{"use strict";let t;var r=e.i(22534),s=e.i(11919),i=e.i(79736),n=e.i(96099),a=e.i(70207),o=e.i(32446),u=e.i(60904),c=e.i(62422),l=class extends a.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,o.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#s=void 0;#i=void 0;#n=void 0;#a;#o;#r;#t;#u;#c;#l;#h;#d;#y;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),h(this.#s,this.options)?this.#p():this.updateResult(),this.#m())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#v(),this.#s.removeObserver(this)}setOptions(e){let t=this.options,r=this.#s;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.resolveEnabled)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#g(),this.#s.setOptions(this.options),t._defaulted&&!(0,u.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let s=this.hasListeners();s&&y(this.#s,r,this.options,t)&&this.#p(),this.updateResult(),s&&(this.#s!==r||(0,u.resolveEnabled)(this.options.enabled,this.#s)!==(0,u.resolveEnabled)(t.enabled,this.#s)||(0,u.resolveStaleTime)(this.options.staleTime,this.#s)!==(0,u.resolveStaleTime)(t.staleTime,this.#s))&&this.#R();let i=this.#S();s&&(this.#s!==r||(0,u.resolveEnabled)(this.options.enabled,this.#s)!==(0,u.resolveEnabled)(t.enabled,this.#s)||i!==this.#y)&&this.#Q(i)}getOptimisticResult(e){var t,r;let s=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(s,e);return t=this,r=i,(0,u.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#n=i,this.#o=this.options,this.#a=this.#s.state),i}getCurrentResult(){return this.#n}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#f.add(e)}getCurrentQuery(){return this.#s}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#p({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#p(e){this.#g();let t=this.#s.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.noop)),t}#R(){this.#b();let e=(0,u.resolveStaleTime)(this.options.staleTime,this.#s);if(u.isServer||this.#n.isStale||!(0,u.isValidTimeout)(e))return;let t=(0,u.timeUntilStale)(this.#n.dataUpdatedAt,e);this.#h=c.timeoutManager.setTimeout(()=>{this.#n.isStale||this.updateResult()},t+1)}#S(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#Q(e){this.#v(),this.#y=e,!u.isServer&&!1!==(0,u.resolveEnabled)(this.options.enabled,this.#s)&&(0,u.isValidTimeout)(this.#y)&&0!==this.#y&&(this.#d=c.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||s.focusManager.isFocused())&&this.#p()},this.#y))}#m(){this.#R(),this.#Q(this.#S())}#b(){this.#h&&(c.timeoutManager.clearTimeout(this.#h),this.#h=void 0)}#v(){this.#d&&(c.timeoutManager.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let r,s=this.#s,i=this.options,a=this.#n,c=this.#a,l=this.#o,d=e!==s?e.state:this.#i,{state:p}=e,m={...p},b=!1;if(t._optimisticResults){let r=this.hasListeners(),a=!r&&h(e,t),o=r&&y(e,s,t,i);(a||o)&&(m={...m,...(0,n.fetchState)(p.data,e.options)}),"isRestoring"===t._optimisticResults&&(m.fetchStatus="idle")}let{error:v,errorUpdatedAt:g,status:R}=m;r=m.data;let S=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===R){let e;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(e=a.data,S=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,void 0!==e&&(R="success",r=(0,u.replaceData)(a?.data,e,t),b=!0)}if(t.select&&void 0!==r&&!S)if(a&&r===c?.data&&t.select===this.#u)r=this.#c;else try{this.#u=t.select,r=t.select(r),r=(0,u.replaceData)(a?.data,r,t),this.#c=r,this.#t=null}catch(e){this.#t=e}this.#t&&(v=this.#t,r=this.#c,g=Date.now(),R="error");let Q="fetching"===m.fetchStatus,w="pending"===R,F="error"===R,E=w&&Q,O=void 0!==r,C={status:R,fetchStatus:m.fetchStatus,isPending:w,isSuccess:"success"===R,isError:F,isInitialLoading:E,isLoading:E,data:r,dataUpdatedAt:m.dataUpdatedAt,error:v,errorUpdatedAt:g,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:Q,isRefetching:Q&&!w,isLoadingError:F&&!O,isPaused:"paused"===m.fetchStatus,isPlaceholderData:b,isRefetchError:F&&O,isStale:f(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,u.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==C.data,r="error"===C.status&&!t,i=e=>{r?e.reject(C.error):t&&e.resolve(C.data)},n=()=>{i(this.#r=C.promise=(0,o.pendingThenable)())},a=this.#r;switch(a.status){case"pending":e.queryHash===s.queryHash&&i(a);break;case"fulfilled":(r||C.data!==a.value)&&n();break;case"rejected":r&&C.error===a.reason||n()}}return C}updateResult(){let e=this.#n,t=this.createResult(this.#s,this.options);if(this.#a=this.#s.state,this.#o=this.options,void 0!==this.#a.data&&(this.#l=this.#s),(0,u.shallowEqualObjects)(t,e))return;this.#n=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#f.size)return!0;let s=new Set(r??this.#f);return this.options.throwOnError&&s.add("error"),Object.keys(this.#n).some(t=>this.#n[t]!==e[t]&&s.has(t))};this.#w({listeners:r()})}#g(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#s)return;let t=this.#s;this.#s=e,this.#i=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#m()}#w(e){i.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#n)}),this.#e.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function h(e,t){return!1!==(0,u.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,r){if(!1!==(0,u.resolveEnabled)(t.enabled,e)&&"static"!==(0,u.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&f(e,t)}return!1}function y(e,t,r,s){return(e!==t||!1===(0,u.resolveEnabled)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&f(e,r)}function f(e,t){return!1!==(0,u.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,u.resolveStaleTime)(t.staleTime,e))}var p=e.i(4),m=e.i(1235);e.i(27493);var b=p.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),v=p.createContext(!1);v.Provider;var g=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function R(e,t){return function(e,t,r){let s,n=p.useContext(v),a=p.useContext(b),o=(0,m.useQueryClient)(r),c=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let l=o.getQueryCache().get(c.queryHash);if(c._optimisticResults=n?"isRestoring":"optimistic",c.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=c.staleTime;c.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof c.gcTime&&(c.gcTime=Math.max(c.gcTime,1e3))}s=l?.state.error&&"function"==typeof c.throwOnError?(0,u.shouldThrowError)(c.throwOnError,[l.state.error,l]):c.throwOnError,(c.suspense||c.experimental_prefetchInRender||s)&&!a.isReset()&&(c.retryOnMount=!1),p.useEffect(()=>{a.clearReset()},[a]);let h=!o.getQueryCache().get(c.queryHash),[d]=p.useState(()=>new t(o,c)),y=d.getOptimisticResult(c),f=!n&&!1!==e.subscribed;if(p.useSyncExternalStore(p.useCallback(e=>{let t=f?d.subscribe(i.notifyManager.batchCalls(e)):u.noop;return d.updateResult(),t},[d,f]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),p.useEffect(()=>{d.setOptions(c)},[c,d]),c?.suspense&&y.isPending)throw g(c,d,a);if((({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&void 0===e.data||(0,u.shouldThrowError)(r,[e.error,s])))({result:y,errorResetBoundary:a,throwOnError:c.throwOnError,query:l,suspense:c.suspense}))throw y.error;if(o.getDefaultOptions().queries?._experimental_afterQuery?.(c,y),c.experimental_prefetchInRender&&!u.isServer&&y.isLoading&&y.isFetching&&!n){let e=h?g(c,d,a):l?.promise;e?.catch(u.noop).finally(()=>{d.updateResult()})}return c.notifyOnChangeProps?y:d.trackResult(y)}(e,l,t)}e.s(["useQuery",()=>R],45688);var S=e.i(21230),Q=a,w=class extends Q.Subscribable{#e;#n=void 0;#F;#E;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#O()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,u.shallowEqualObjects)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#F,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,u.hashKey)(t.mutationKey)!==(0,u.hashKey)(this.options.mutationKey)?this.reset():this.#F?.state.status==="pending"&&this.#F.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#F?.removeObserver(this)}onMutationUpdate(e){this.#O(),this.#w(e)}getCurrentResult(){return this.#n}reset(){this.#F?.removeObserver(this),this.#F=void 0,this.#O(),this.#w()}mutate(e,t){return this.#E=t,this.#F?.removeObserver(this),this.#F=this.#e.getMutationCache().build(this.#e,this.options),this.#F.addObserver(this),this.#F.execute(e)}#O(){let e=this.#F?.state??(0,S.getDefaultState)();this.#n={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#w(e){i.notifyManager.batch(()=>{if(this.#E&&this.hasListeners()){let t=this.#n.variables,r=this.#n.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#E.onSuccess?.(e.data,t,r,s)}catch(e){Promise.reject(e)}try{this.#E.onSettled?.(e.data,null,t,r,s)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#E.onError?.(e.error,t,r,s)}catch(e){Promise.reject(e)}try{this.#E.onSettled?.(void 0,e.error,t,r,s)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#n)})})}};function F(e,t){let r=(0,m.useQueryClient)(t),[s]=p.useState(()=>new w(r,e));p.useEffect(()=>{s.setOptions(e)},[s,e]);let n=p.useSyncExternalStore(p.useCallback(e=>s.subscribe(i.notifyManager.batchCalls(e)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),a=p.useCallback((e,t)=>{s.mutate(e,t).catch(u.noop)},[s]);if(n.error&&(0,u.shouldThrowError)(s.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:a,mutateAsync:n.mutate}}e.s(["useMutation",()=>F],71921);let E=r.default.env.NEXT_PUBLIC_WS_URL||"ws://localhost:3001/ws/events";function O(e={}){let{enabled:t=!0,onMessage:r}=e,s=(0,m.useQueryClient)(),i=(0,p.useRef)(null),n=(0,p.useRef)(null),a=(0,p.useRef)(0),o=(0,p.useRef)(1e3),u=(0,p.useRef)(()=>{}),[c,l]=(0,p.useState)(!1),[h,d]=(0,p.useState)(null),y=(0,p.useRef)(r);(0,p.useEffect)(()=>{y.current=r},[r]);let f=(0,p.useCallback)(()=>{if(t&&i.current?.readyState!==WebSocket.OPEN){n.current&&(clearTimeout(n.current),n.current=null);try{let e=new WebSocket(E);i.current=e,e.onopen=()=>{l(!0),a.current=0,o.current=1e3,console.log("[WebSocket] Connected to memory server")},e.onmessage=e=>{try{let t=JSON.parse(e.data);switch(d({type:t.type,data:t.data,timestamp:t.timestamp||new Date().toISOString()}),y.current?.(t),t.type){case"initial_state":case"consolidation_complete":case"predictive_consolidation":s.invalidateQueries({queryKey:["memories"]}),s.invalidateQueries({queryKey:["stats"]}),s.invalidateQueries({queryKey:["links"]});break;case"memory_created":case"memory_updated":case"memory_deleted":s.invalidateQueries({queryKey:["memories"]}),s.invalidateQueries({queryKey:["stats"]});break;case"decay_tick":case"worker_light_tick":case"worker_medium_tick":break;case"link_discovered":s.invalidateQueries({queryKey:["links"]});break;case"defence_event":s.invalidateQueries({queryKey:["agents"]}),s.invalidateQueries({queryKey:["agent-timeline"]}),s.invalidateQueries({queryKey:["audit-logs"]}),s.invalidateQueries({queryKey:["audit-stats"]});break;case"update_started":case"update_complete":case"update_failed":"update_complete"===t.type&&(s.invalidateQueries({queryKey:["version"]}),s.invalidateQueries({queryKey:["version-check"]}));break;case"server_restarting":console.log("[WebSocket] Server restarting, will reconnect shortly...")}}catch(e){console.error("[WebSocket] Failed to parse message:",e)}},e.onerror=()=>{console.warn("[WebSocket] Connection failed - is the API server running?")},e.onclose=()=>{if(l(!1),console.log("[WebSocket] Disconnected"),t&&a.current<10){let e=o.current;a.current++,o.current=Math.min(2*o.current,3e4),console.log(`[WebSocket] Reconnecting in ${e}ms (attempt ${a.current}/10)...`),n.current=setTimeout(()=>{u.current()},e)}else a.current>=10&&console.error("[WebSocket] Max reconnection attempts reached. Use reconnect() to try again.")}}catch(e){console.error("[WebSocket] Failed to connect:",e)}}},[t,s]);return(0,p.useEffect)(()=>{u.current=f}),(0,p.useEffect)(()=>(t&&f(),()=>{n.current&&clearTimeout(n.current),i.current&&(i.current.close(),i.current=null)}),[t,f]),{isConnected:c,lastEvent:h,reconnect:(0,p.useCallback)(()=>{a.current=0,o.current=1e3,f()},[f])}}e.s(["useMemoryWebSocket",()=>O],94156);let C=r.default.env.NEXT_PUBLIC_API_URL||"http://localhost:3001";async function j(e){let t=new URLSearchParams;e?.project&&t.set("project",e.project),e?.type&&t.set("type",e.type),e?.category&&t.set("category",e.category),e?.limit&&t.set("limit",e.limit.toString()),e?.offset&&t.set("offset",e.offset.toString()),e?.mode&&t.set("mode",e.mode),e?.query&&t.set("query",e.query);let r=await fetch(`${C}/api/memories?${t}`);if(!r.ok)throw Error("Failed to fetch memories");return r.json()}async function T(e){let t=e?`?project=${e}`:"",r=await fetch(`${C}/api/stats${t}`);if(!r.ok)throw Error("Failed to fetch stats");return r.json()}async function P(e){let t=e?`?project=${e}`:"",r=await fetch(`${C}/api/links${t}`);if(!r.ok)throw Error("Failed to fetch links");return r.json()}async function k(){let e=await fetch(`${C}/api/projects`);if(!e.ok)throw Error("Failed to fetch projects");return e.json()}async function q(e){let t=await fetch(`${C}/api/memories/${e}/access`,{method:"POST"});if(!t.ok)throw Error("Failed to access memory");return t.json()}async function M(){let e=await fetch(`${C}/api/consolidate`,{method:"POST"});if(!e.ok)throw Error("Failed to consolidate");return e.json()}function I(e){return R({queryKey:["stats",e],queryFn:()=>T(e),refetchInterval:3e4})}function _(e){return R({queryKey:["links",e],queryFn:()=>P(e),refetchInterval:6e4})}function x(){return R({queryKey:["projects"],queryFn:k,refetchInterval:6e4})}function K(e){let t,r=O();return{...{...t=R({queryKey:["memories",e],queryFn:()=>j(e),refetchInterval:3e4}),data:t.data?.memories,pagination:t.data?.pagination},isConnected:r.isConnected,lastEvent:r.lastEvent}}function $(){let e=(0,m.useQueryClient)();return F({mutationFn:q,onSuccess:()=>{e.invalidateQueries({queryKey:["memories"]}),e.invalidateQueries({queryKey:["stats"]})}})}function D(){let e=(0,m.useQueryClient)();return F({mutationFn:M,onSuccess:()=>{e.invalidateQueries({queryKey:["memories"]}),e.invalidateQueries({queryKey:["stats"]})}})}async function U(){let e=await fetch(`${C}/api/control/status`);if(!e.ok)throw Error("Failed to fetch control status");return e.json()}async function L(){let e=await fetch(`${C}/api/control/pause`,{method:"POST"});if(!e.ok)throw Error("Failed to pause");return e.json()}async function B(){let e=await fetch(`${C}/api/control/resume`,{method:"POST"});if(!e.ok)throw Error("Failed to resume");return e.json()}function A(){return R({queryKey:["control-status"],queryFn:U,refetchInterval:1e4})}function W(){let e=(0,m.useQueryClient)();return F({mutationFn:L,onSuccess:()=>{e.invalidateQueries({queryKey:["control-status"]})}})}function z(){let e=(0,m.useQueryClient)();return F({mutationFn:B,onSuccess:()=>{e.invalidateQueries({queryKey:["control-status"]})}})}async function N(e){let t=e?`?project=${e}`:"",r=await fetch(`${C}/api/contradictions${t}`);if(!r.ok)throw Error("Failed to fetch contradictions");return r.json()}function H(e){return R({queryKey:["contradictions",e],queryFn:()=>N(e),staleTime:3e5})}async function J(e){let t=await fetch(`${C}/api/memories/${e}/boost`,{method:"POST"});if(!t.ok)throw Error("Failed to boost memory");return t.json()}async function V(e){let t=await fetch(`${C}/api/memories/${e}/demote`,{method:"POST"});if(!t.ok)throw Error("Failed to demote memory");return t.json()}async function X(e){let t=await fetch(`${C}/api/memories/${e}/promote`,{method:"POST"});if(!t.ok)throw Error("Failed to promote memory");return t.json()}async function G(e,t){let r=await fetch(`${C}/api/memories/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok)throw Error("Failed to edit memory");return r.json()}async function Y(e){let t=await fetch(`${C}/api/memories/${e}`,{method:"DELETE"});if(!t.ok)throw Error("Failed to delete memory");return t.json()}async function Z(e,t){let r=await fetch(`${C}/api/memories/${e}/quarantine`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reason:t})});if(!r.ok)throw Error("Failed to quarantine memory");return r.json()}async function ee(){let e=await fetch(`${C}/api/worker/status`);if(!e.ok)throw Error("Failed to fetch worker status");return e.json()}function et(){let e=(0,m.useQueryClient)();return F({mutationFn:J,onSuccess:()=>{e.invalidateQueries({queryKey:["memories"]}),e.invalidateQueries({queryKey:["stats"]})}})}function er(){let e=(0,m.useQueryClient)();return F({mutationFn:V,onSuccess:()=>{e.invalidateQueries({queryKey:["memories"]}),e.invalidateQueries({queryKey:["stats"]})}})}function es(){let e=(0,m.useQueryClient)();return F({mutationFn:X,onSuccess:()=>{e.invalidateQueries({queryKey:["memories"]}),e.invalidateQueries({queryKey:["stats"]})}})}function ei(){let e=(0,m.useQueryClient)();return F({mutationFn:({id:e,updates:t})=>G(e,t),onSuccess:()=>{e.invalidateQueries({queryKey:["memories"]}),e.invalidateQueries({queryKey:["stats"]})}})}function en(){let e=(0,m.useQueryClient)();return F({mutationFn:Y,onSuccess:()=>{e.invalidateQueries({queryKey:["memories"]}),e.invalidateQueries({queryKey:["stats"]}),e.invalidateQueries({queryKey:["links"]})}})}function ea(){let e=(0,m.useQueryClient)();return F({mutationFn:({id:e,reason:t})=>Z(e,t),onSuccess:()=>{e.invalidateQueries({queryKey:["memories"]}),e.invalidateQueries({queryKey:["stats"]})}})}function eo(){return R({queryKey:["worker-status"],queryFn:ee,refetchInterval:15e3})}e.s(["useAccessMemory",()=>$,"useBoostMemory",()=>et,"useConsolidate",()=>D,"useContradictions",()=>H,"useControlStatus",()=>A,"useDeleteMemory",()=>en,"useDemoteMemory",()=>er,"useEditMemory",()=>ei,"useMemoriesWithRealtime",()=>K,"useMemoryLinks",()=>_,"usePauseMemory",()=>W,"useProjects",()=>x,"usePromoteMemory",()=>es,"useQuarantineMemory",()=>ea,"useResumeMemory",()=>z,"useStats",()=>I,"useWorkerStatus",()=>eo],88069)},42098,92618,e=>{"use strict";let t;var r=e.i(4);let s=e=>{let t,r=new Set,s=(e,s)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=s?s:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,n={setState:s,getState:i,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e))},a=t=e(s,i,n);return n},i=e=>e?s(e):s;e.s(["createStore",()=>i],92618);let n=e=>{let t=i(e),s=e=>(function(e,t=e=>e){let s=r.default.useSyncExternalStore(e.subscribe,r.default.useCallback(()=>t(e.getState()),[e,t]),r.default.useCallback(()=>t(e.getInitialState()),[e,t]));return r.default.useDebugValue(s),s})(t,e);return Object.assign(s,t),s},a=(t=e=>({selectedMemory:null,setSelectedMemory:t=>e({selectedMemory:t}),viewMode:"shield",setViewMode:t=>e({viewMode:t}),typeFilter:null,categoryFilter:null,projectFilter:null,setTypeFilter:t=>e({typeFilter:t}),setCategoryFilter:t=>e({categoryFilter:t}),setProjectFilter:t=>e({projectFilter:t}),recentEvents:[],addEvent:t=>e(e=>({recentEvents:[t,...e.recentEvents].slice(0,50)})),clearEvents:()=>e({recentEvents:[]}),cameraPosition:[0,0,12],setCameraPosition:t=>e({cameraPosition:t}),showLeftSidebar:!0,showRightSidebar:!0,toggleLeftSidebar:()=>e(e=>({showLeftSidebar:!e.showLeftSidebar})),toggleRightSidebar:()=>e(e=>({showRightSidebar:!e.showRightSidebar})),searchQuery:"",setSearchQuery:t=>e({searchQuery:t})}))?n(t):n;e.s(["useDashboardStore",0,a],42098)},33368,e=>{"use strict";let t={architecture:{basePosition:{x:0,y:1.2,z:2.2},spread:1},pattern:{basePosition:{x:0,y:.3,z:-2.2},spread:.9},preference:{basePosition:{x:1.6,y:-.3,z:0},spread:.7},error:{basePosition:{x:-1.6,y:-.3,z:.3},spread:.8},context:{basePosition:{x:0,y:1.8,z:0},spread:1.2},learning:{basePosition:{x:0,y:-.3,z:0},spread:.8},todo:{basePosition:{x:.6,y:.8,z:1.8},spread:.7},note:{basePosition:{x:1.8,y:0,z:-.3},spread:1},relationship:{basePosition:{x:-1.8,y:.3,z:-.3},spread:.9},custom:{basePosition:{x:0,y:0,z:0},spread:1.5}},r={short_term:.6,episodic:0,long_term:-.4};function s(e){let t=43758.5453*Math.sin(12.9898*e);return t-Math.floor(t)}function i(e){let i=t[e.category]||t.custom,n=r[e.type]||0,a=s(e.id),o=s(e.id+1e3),u=s(e.id+2e3),c=i.spread,l=a*Math.PI*2,h=(o-.5)*Math.PI,d=u*c*.7+.3*c,y=d*Math.cos(h)*Math.cos(l),f=d*Math.sin(h)*.6,p=d*Math.cos(h)*Math.sin(l),m=i.basePosition.x+y,b=i.basePosition.y+f,v=i.basePosition.z+p+n,g=.4*e.salience,R=Math.sqrt(m*m+b*b+v*v);if(R>.1){let e=(R+g)/R;m*=e,b*=e,v*=e}let S=Math.sqrt((m/3.2)**2+(b/2.5)**2+(v/3.5)**2);if(S>.95){let e=.95/S;m*=e,b*=e,v*=e}return{x:m,y:b,z:v}}function n(e){if(!e.lastAccessed)return 1;let t=Date.now(),r=new Date(e.lastAccessed).getTime();return Math.pow({short_term:.995,long_term:.9995,episodic:.998}[e.type]||.995,(t-r)/36e5)}e.s(["calculateDecayFactor",()=>n,"calculateMemoryPosition",()=>i])},87353,e=>{"use strict";var t=e.i(22534),r=e.i(45688),s=e.i(71921),i=e.i(1235);let n=t.default.env.NEXT_PUBLIC_API_URL||"http://localhost:3001";async function a(e){let t=new URLSearchParams;e?.startTime&&t.set("startTime",e.startTime),e?.endTime&&t.set("endTime",e.endTime),e?.source&&t.set("source",e.source),e?.firewallResult&&t.set("firewallResult",e.firewallResult),e?.project&&t.set("project",e.project),e?.limit&&t.set("limit",e.limit.toString());let r=await fetch(`${n}/api/v1/audit?${t}`);if(!r.ok)throw Error("Failed to fetch audit logs");return r.json()}async function o(e,t){let r=new URLSearchParams({timeRange:e});t&&r.set("project",t);let s=await fetch(`${n}/api/v1/audit/stats?${r}`);if(!s.ok)throw Error("Failed to fetch audit stats");return s.json()}async function u(e="pending",t=50,r){let s=new URLSearchParams({status:e,limit:t.toString()});r&&s.set("project",r);let i=await fetch(`${n}/api/v1/quarantine?${s}`);if(!i.ok)throw Error("Failed to fetch quarantine");return i.json()}async function c(e){let t=await fetch(`${n}/api/v1/quarantine/${e}/approve`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reviewedBy:"dashboard"})});if(!t.ok)throw Error("Failed to approve");return t.json()}async function l(e,t){let r=await fetch(`${n}/api/v1/quarantine/${e}/reject`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reviewedBy:"dashboard",notes:t})});if(!r.ok)throw Error("Failed to reject");return r.json()}function h(e){return(0,r.useQuery)({queryKey:["audit-logs",e],queryFn:()=>a(e),refetchInterval:3e4,retry:2})}function d(e="24h",t){return(0,r.useQuery)({queryKey:["audit-stats",e,t],queryFn:()=>o(e,t),refetchInterval:3e4,retry:2})}function y(e="pending",t=50,s){return(0,r.useQuery)({queryKey:["quarantine",e,t,s],queryFn:()=>u(e,t,s),refetchInterval:3e4,retry:2})}function f(){let e=(0,i.useQueryClient)();return(0,s.useMutation)({mutationFn:c,onSuccess:()=>{e.invalidateQueries({queryKey:["quarantine"]}),e.invalidateQueries({queryKey:["audit-stats"]})}})}function p(){let e=(0,i.useQueryClient)();return(0,s.useMutation)({mutationFn:({id:e,notes:t})=>l(e,t),onSuccess:()=>{e.invalidateQueries({queryKey:["quarantine"]}),e.invalidateQueries({queryKey:["audit-stats"]})}})}e.s(["useApproveQuarantine",()=>f,"useAuditLogs",()=>h,"useAuditStats",()=>d,"useQuarantine",()=>y,"useRejectQuarantine",()=>p])},1369,e=>{e.v(t=>Promise.all(["static/chunks/a3989d0e6629bcf8.js"].map(t=>e.l(t))).then(()=>t(11570)))},62838,e=>{e.v(t=>Promise.all(["static/chunks/0327af3bf4830eac.js"].map(t=>e.l(t))).then(()=>t(41740)))}]);
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,97358,e=>{"use strict";let t={architecture:"#FFD700",pattern:"#FFB347",preference:"#FFA500",error:"#FF6B6B",context:"#FFC080",learning:"#FFE4B5",todo:"#FF8C00",note:"#FFCC66",relationship:"#00D4FF",custom:"#FFB347"},r={short_term:"#FFD700",episodic:"#FFB347",long_term:"#FF8C00"};function s(e){return t[e]||t.custom}function i(e){return r[e]||r.short_term}e.s(["CATEGORY_COLORS",0,{architecture:"#3B82F6",pattern:"#8B5CF6",preference:"#EC4899",error:"#EF4444",context:"#10B981",learning:"#F59E0B",todo:"#F97316",note:"#6B7280",relationship:"#06B6D4",custom:"#A855F7"},"getCategoryColor",()=>s,"getTypeColor",()=>i])},25903,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let s=e.r(40909);function i({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new s.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},27601,(e,t,r)=>{"use strict";function s(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return s}})},54220,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return u}});let s=e.r(27493),i=e.r(9854),n=e.r(13595),a=e.r(27601),o=e.r(54218);function u({moduleIds:e}){if("u">typeof window)return null;let t=n.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let s=t.reactLoadableManifest;for(let t of e){if(!s[t])continue;let e=s[t].files;r.push(...e)}}if(0===r.length)return null;let u=(0,o.getDeploymentIdQueryOrEmptyString)();return(0,s.jsx)(s.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,a.encodeURIPath)(e)}${u}`;return e.endsWith(".css")?(0,s.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},73735,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let s=e.r(27493),i=e.r(4),n=e.r(25903),a=e.r(54220);function o(e){return{default:e&&"default"in e?e.default:e}}let u={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},c=function(e){let t={...u,...e},r=(0,i.lazy)(()=>t.loader().then(o)),c=t.loading;function l(e){let o=c?(0,s.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,u=!t.ssr||!!t.loading,l=u?i.Suspense:i.Fragment,h=t.ssr?(0,s.jsxs)(s.Fragment,{children:["u"<typeof window?(0,s.jsx)(a.PreloadChunks,{moduleIds:t.modules}):null,(0,s.jsx)(r,{...e})]}):(0,s.jsx)(n.BailoutToCSR,{reason:"next/dynamic",children:(0,s.jsx)(r,{...e})});return(0,s.jsx)(l,{...u?{fallback:o}:{},children:h})}return l.displayName="LoadableComponent",l}},74133,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}});let s=e.r(77637)._(e.r(73735));function i(e,t){let r={};"function"==typeof e&&(r.loader=e);let i={...r,...t};return(0,s.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},88069,45688,71921,94156,e=>{"use strict";let t;var r=e.i(22534),s=e.i(11919),i=e.i(79736),n=e.i(96099),a=e.i(70207),o=e.i(32446),u=e.i(60904),c=e.i(62422),l=class extends a.Subscribable{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,o.pendingThenable)(),this.bindMethods(),this.setOptions(t)}#e;#s=void 0;#i=void 0;#n=void 0;#a;#o;#r;#t;#u;#c;#l;#h;#d;#y;#f=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#s.addObserver(this),h(this.#s,this.options)?this.#p():this.updateResult(),this.#m())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#s,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#s,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#v(),this.#s.removeObserver(this)}setOptions(e){let t=this.options,r=this.#s;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.resolveEnabled)(this.options.enabled,this.#s))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#g(),this.#s.setOptions(this.options),t._defaulted&&!(0,u.shallowEqualObjects)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#s,observer:this});let s=this.hasListeners();s&&y(this.#s,r,this.options,t)&&this.#p(),this.updateResult(),s&&(this.#s!==r||(0,u.resolveEnabled)(this.options.enabled,this.#s)!==(0,u.resolveEnabled)(t.enabled,this.#s)||(0,u.resolveStaleTime)(this.options.staleTime,this.#s)!==(0,u.resolveStaleTime)(t.staleTime,this.#s))&&this.#R();let i=this.#S();s&&(this.#s!==r||(0,u.resolveEnabled)(this.options.enabled,this.#s)!==(0,u.resolveEnabled)(t.enabled,this.#s)||i!==this.#y)&&this.#Q(i)}getOptimisticResult(e){var t,r;let s=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(s,e);return t=this,r=i,(0,u.shallowEqualObjects)(t.getCurrentResult(),r)||(this.#n=i,this.#o=this.options,this.#a=this.#s.state),i}getCurrentResult(){return this.#n}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#f.add(e)}getCurrentQuery(){return this.#s}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#p({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#p(e){this.#g();let t=this.#s.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.noop)),t}#R(){this.#b();let e=(0,u.resolveStaleTime)(this.options.staleTime,this.#s);if(u.isServer||this.#n.isStale||!(0,u.isValidTimeout)(e))return;let t=(0,u.timeUntilStale)(this.#n.dataUpdatedAt,e);this.#h=c.timeoutManager.setTimeout(()=>{this.#n.isStale||this.updateResult()},t+1)}#S(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#s):this.options.refetchInterval)??!1}#Q(e){this.#v(),this.#y=e,!u.isServer&&!1!==(0,u.resolveEnabled)(this.options.enabled,this.#s)&&(0,u.isValidTimeout)(this.#y)&&0!==this.#y&&(this.#d=c.timeoutManager.setInterval(()=>{(this.options.refetchIntervalInBackground||s.focusManager.isFocused())&&this.#p()},this.#y))}#m(){this.#R(),this.#Q(this.#S())}#b(){this.#h&&(c.timeoutManager.clearTimeout(this.#h),this.#h=void 0)}#v(){this.#d&&(c.timeoutManager.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let r,s=this.#s,i=this.options,a=this.#n,c=this.#a,l=this.#o,d=e!==s?e.state:this.#i,{state:p}=e,m={...p},b=!1;if(t._optimisticResults){let r=this.hasListeners(),a=!r&&h(e,t),o=r&&y(e,s,t,i);(a||o)&&(m={...m,...(0,n.fetchState)(p.data,e.options)}),"isRestoring"===t._optimisticResults&&(m.fetchStatus="idle")}let{error:v,errorUpdatedAt:g,status:R}=m;r=m.data;let S=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===R){let e;a?.isPlaceholderData&&t.placeholderData===l?.placeholderData?(e=a.data,S=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,void 0!==e&&(R="success",r=(0,u.replaceData)(a?.data,e,t),b=!0)}if(t.select&&void 0!==r&&!S)if(a&&r===c?.data&&t.select===this.#u)r=this.#c;else try{this.#u=t.select,r=t.select(r),r=(0,u.replaceData)(a?.data,r,t),this.#c=r,this.#t=null}catch(e){this.#t=e}this.#t&&(v=this.#t,r=this.#c,g=Date.now(),R="error");let Q="fetching"===m.fetchStatus,w="pending"===R,F="error"===R,E=w&&Q,O=void 0!==r,C={status:R,fetchStatus:m.fetchStatus,isPending:w,isSuccess:"success"===R,isError:F,isInitialLoading:E,isLoading:E,data:r,dataUpdatedAt:m.dataUpdatedAt,error:v,errorUpdatedAt:g,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>d.dataUpdateCount||m.errorUpdateCount>d.errorUpdateCount,isFetching:Q,isRefetching:Q&&!w,isLoadingError:F&&!O,isPaused:"paused"===m.fetchStatus,isPlaceholderData:b,isRefetchError:F&&O,isStale:f(e,t),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,u.resolveEnabled)(t.enabled,e)};if(this.options.experimental_prefetchInRender){let t=void 0!==C.data,r="error"===C.status&&!t,i=e=>{r?e.reject(C.error):t&&e.resolve(C.data)},n=()=>{i(this.#r=C.promise=(0,o.pendingThenable)())},a=this.#r;switch(a.status){case"pending":e.queryHash===s.queryHash&&i(a);break;case"fulfilled":(r||C.data!==a.value)&&n();break;case"rejected":r&&C.error===a.reason||n()}}return C}updateResult(){let e=this.#n,t=this.createResult(this.#s,this.options);if(this.#a=this.#s.state,this.#o=this.options,void 0!==this.#a.data&&(this.#l=this.#s),(0,u.shallowEqualObjects)(t,e))return;this.#n=t;let r=()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#f.size)return!0;let s=new Set(r??this.#f);return this.options.throwOnError&&s.add("error"),Object.keys(this.#n).some(t=>this.#n[t]!==e[t]&&s.has(t))};this.#w({listeners:r()})}#g(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#s)return;let t=this.#s;this.#s=e,this.#i=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#m()}#w(e){i.notifyManager.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#n)}),this.#e.getQueryCache().notify({query:this.#s,type:"observerResultsUpdated"})})}};function h(e,t){return!1!==(0,u.resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,r){if(!1!==(0,u.resolveEnabled)(t.enabled,e)&&"static"!==(0,u.resolveStaleTime)(t.staleTime,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&f(e,t)}return!1}function y(e,t,r,s){return(e!==t||!1===(0,u.resolveEnabled)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&f(e,r)}function f(e,t){return!1!==(0,u.resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,u.resolveStaleTime)(t.staleTime,e))}var p=e.i(4),m=e.i(1235);e.i(27493);var b=p.createContext((t=!1,{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t})),v=p.createContext(!1);v.Provider;var g=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function R(e,t){return function(e,t,r){let s,n=p.useContext(v),a=p.useContext(b),o=(0,m.useQueryClient)(r),c=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(c);let l=o.getQueryCache().get(c.queryHash);if(c._optimisticResults=n?"isRestoring":"optimistic",c.suspense){let e=e=>"static"===e?e:Math.max(e??1e3,1e3),t=c.staleTime;c.staleTime="function"==typeof t?(...r)=>e(t(...r)):e(t),"number"==typeof c.gcTime&&(c.gcTime=Math.max(c.gcTime,1e3))}s=l?.state.error&&"function"==typeof c.throwOnError?(0,u.shouldThrowError)(c.throwOnError,[l.state.error,l]):c.throwOnError,(c.suspense||c.experimental_prefetchInRender||s)&&!a.isReset()&&(c.retryOnMount=!1),p.useEffect(()=>{a.clearReset()},[a]);let h=!o.getQueryCache().get(c.queryHash),[d]=p.useState(()=>new t(o,c)),y=d.getOptimisticResult(c),f=!n&&!1!==e.subscribed;if(p.useSyncExternalStore(p.useCallback(e=>{let t=f?d.subscribe(i.notifyManager.batchCalls(e)):u.noop;return d.updateResult(),t},[d,f]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),p.useEffect(()=>{d.setOptions(c)},[c,d]),c?.suspense&&y.isPending)throw g(c,d,a);if((({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&void 0===e.data||(0,u.shouldThrowError)(r,[e.error,s])))({result:y,errorResetBoundary:a,throwOnError:c.throwOnError,query:l,suspense:c.suspense}))throw y.error;if(o.getDefaultOptions().queries?._experimental_afterQuery?.(c,y),c.experimental_prefetchInRender&&!u.isServer&&y.isLoading&&y.isFetching&&!n){let e=h?g(c,d,a):l?.promise;e?.catch(u.noop).finally(()=>{d.updateResult()})}return c.notifyOnChangeProps?y:d.trackResult(y)}(e,l,t)}e.s(["useQuery",()=>R],45688);var S=e.i(21230),Q=a,w=class extends Q.Subscribable{#e;#n=void 0;#F;#E;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#O()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,u.shallowEqualObjects)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#F,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,u.hashKey)(t.mutationKey)!==(0,u.hashKey)(this.options.mutationKey)?this.reset():this.#F?.state.status==="pending"&&this.#F.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#F?.removeObserver(this)}onMutationUpdate(e){this.#O(),this.#w(e)}getCurrentResult(){return this.#n}reset(){this.#F?.removeObserver(this),this.#F=void 0,this.#O(),this.#w()}mutate(e,t){return this.#E=t,this.#F?.removeObserver(this),this.#F=this.#e.getMutationCache().build(this.#e,this.options),this.#F.addObserver(this),this.#F.execute(e)}#O(){let e=this.#F?.state??(0,S.getDefaultState)();this.#n={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#w(e){i.notifyManager.batch(()=>{if(this.#E&&this.hasListeners()){let t=this.#n.variables,r=this.#n.context,s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#E.onSuccess?.(e.data,t,r,s)}catch(e){Promise.reject(e)}try{this.#E.onSettled?.(e.data,null,t,r,s)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#E.onError?.(e.error,t,r,s)}catch(e){Promise.reject(e)}try{this.#E.onSettled?.(void 0,e.error,t,r,s)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#n)})})}};function F(e,t){let r=(0,m.useQueryClient)(t),[s]=p.useState(()=>new w(r,e));p.useEffect(()=>{s.setOptions(e)},[s,e]);let n=p.useSyncExternalStore(p.useCallback(e=>s.subscribe(i.notifyManager.batchCalls(e)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),a=p.useCallback((e,t)=>{s.mutate(e,t).catch(u.noop)},[s]);if(n.error&&(0,u.shouldThrowError)(s.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:a,mutateAsync:n.mutate}}e.s(["useMutation",()=>F],71921);let E=r.default.env.NEXT_PUBLIC_WS_URL||"ws://localhost:3001/ws/events";function O(e={}){let{enabled:t=!0,onMessage:r}=e,s=(0,m.useQueryClient)(),i=(0,p.useRef)(null),n=(0,p.useRef)(null),a=(0,p.useRef)(0),o=(0,p.useRef)(1e3),u=(0,p.useRef)(()=>{}),[c,l]=(0,p.useState)(!1),[h,d]=(0,p.useState)(null),y=(0,p.useRef)(r);(0,p.useEffect)(()=>{y.current=r},[r]);let f=(0,p.useCallback)(()=>{if(t&&i.current?.readyState!==WebSocket.OPEN){n.current&&(clearTimeout(n.current),n.current=null);try{let e=new WebSocket(E);i.current=e,e.onopen=()=>{l(!0),a.current=0,o.current=1e3,console.log("[WebSocket] Connected to memory server")},e.onmessage=e=>{try{let t=JSON.parse(e.data);switch(d({type:t.type,data:t.data,timestamp:t.timestamp||new Date().toISOString()}),y.current?.(t),t.type){case"initial_state":case"consolidation_complete":case"predictive_consolidation":s.invalidateQueries({queryKey:["memories"]}),s.invalidateQueries({queryKey:["stats"]}),s.invalidateQueries({queryKey:["links"]});break;case"memory_created":case"memory_updated":case"memory_deleted":s.invalidateQueries({queryKey:["memories"]}),s.invalidateQueries({queryKey:["stats"]});break;case"decay_tick":case"worker_light_tick":case"worker_medium_tick":break;case"link_discovered":s.invalidateQueries({queryKey:["links"]});break;case"defence_event":s.invalidateQueries({queryKey:["agents"]}),s.invalidateQueries({queryKey:["agent-timeline"]}),s.invalidateQueries({queryKey:["audit-logs"]}),s.invalidateQueries({queryKey:["audit-stats"]});break;case"update_started":case"update_complete":case"update_failed":"update_complete"===t.type&&(s.invalidateQueries({queryKey:["version"]}),s.invalidateQueries({queryKey:["version-check"]}));break;case"server_restarting":console.log("[WebSocket] Server restarting, will reconnect shortly...")}}catch(e){console.error("[WebSocket] Failed to parse message:",e)}},e.onerror=()=>{console.warn("[WebSocket] Connection failed - is the API server running?")},e.onclose=()=>{if(l(!1),console.log("[WebSocket] Disconnected"),t&&a.current<10){let e=o.current;a.current++,o.current=Math.min(2*o.current,3e4),console.log(`[WebSocket] Reconnecting in ${e}ms (attempt ${a.current}/10)...`),n.current=setTimeout(()=>{u.current()},e)}else a.current>=10&&console.error("[WebSocket] Max reconnection attempts reached. Use reconnect() to try again.")}}catch(e){console.error("[WebSocket] Failed to connect:",e)}}},[t,s]);return(0,p.useEffect)(()=>{u.current=f}),(0,p.useEffect)(()=>(t&&f(),()=>{n.current&&clearTimeout(n.current),i.current&&(i.current.close(),i.current=null)}),[t,f]),{isConnected:c,lastEvent:h,reconnect:(0,p.useCallback)(()=>{a.current=0,o.current=1e3,f()},[f])}}e.s(["useMemoryWebSocket",()=>O],94156);let C=r.default.env.NEXT_PUBLIC_API_URL||"http://localhost:3001";async function j(e){let t=new URLSearchParams;e?.project&&t.set("project",e.project),e?.type&&t.set("type",e.type),e?.category&&t.set("category",e.category),e?.limit&&t.set("limit",e.limit.toString()),e?.offset&&t.set("offset",e.offset.toString()),e?.mode&&t.set("mode",e.mode),e?.query&&t.set("query",e.query);let r=await fetch(`${C}/api/memories?${t}`);if(!r.ok)throw Error("Failed to fetch memories");return r.json()}async function T(e){let t=e?`?project=${e}`:"",r=await fetch(`${C}/api/stats${t}`);if(!r.ok)throw Error("Failed to fetch stats");return r.json()}async function P(e){let t=e?`?project=${e}`:"",r=await fetch(`${C}/api/links${t}`);if(!r.ok)throw Error("Failed to fetch links");return r.json()}async function k(){let e=await fetch(`${C}/api/projects`);if(!e.ok)throw Error("Failed to fetch projects");return e.json()}async function q(e){let t=await fetch(`${C}/api/memories/${e}/access`,{method:"POST"});if(!t.ok)throw Error("Failed to access memory");return t.json()}async function M(){let e=await fetch(`${C}/api/consolidate`,{method:"POST"});if(!e.ok)throw Error("Failed to consolidate");return e.json()}function I(e){return R({queryKey:["stats",e],queryFn:()=>T(e),refetchInterval:3e4})}function _(e){return R({queryKey:["links",e],queryFn:()=>P(e),refetchInterval:6e4})}function x(){return R({queryKey:["projects"],queryFn:k,refetchInterval:6e4})}function K(e){let t,r=O();return{...{...t=R({queryKey:["memories",e],queryFn:()=>j(e),refetchInterval:3e4}),data:t.data?.memories,pagination:t.data?.pagination},isConnected:r.isConnected,lastEvent:r.lastEvent}}function $(){let e=(0,m.useQueryClient)();return F({mutationFn:q,onSuccess:()=>{e.invalidateQueries({queryKey:["memories"]}),e.invalidateQueries({queryKey:["stats"]})}})}function D(){let e=(0,m.useQueryClient)();return F({mutationFn:M,onSuccess:()=>{e.invalidateQueries({queryKey:["memories"]}),e.invalidateQueries({queryKey:["stats"]})}})}async function U(){let e=await fetch(`${C}/api/control/status`);if(!e.ok)throw Error("Failed to fetch control status");return e.json()}async function L(){let e=await fetch(`${C}/api/control/pause`,{method:"POST"});if(!e.ok)throw Error("Failed to pause");return e.json()}async function B(){let e=await fetch(`${C}/api/control/resume`,{method:"POST"});if(!e.ok)throw Error("Failed to resume");return e.json()}function A(){return R({queryKey:["control-status"],queryFn:U,refetchInterval:1e4})}function W(){let e=(0,m.useQueryClient)();return F({mutationFn:L,onSuccess:()=>{e.invalidateQueries({queryKey:["control-status"]})}})}function z(){let e=(0,m.useQueryClient)();return F({mutationFn:B,onSuccess:()=>{e.invalidateQueries({queryKey:["control-status"]})}})}async function N(e){let t=e?`?project=${e}`:"",r=await fetch(`${C}/api/contradictions${t}`);if(!r.ok)throw Error("Failed to fetch contradictions");return r.json()}function H(e){return R({queryKey:["contradictions",e],queryFn:()=>N(e),staleTime:3e5})}async function J(e){let t=await fetch(`${C}/api/memories/${e}/boost`,{method:"POST"});if(!t.ok)throw Error("Failed to boost memory");return t.json()}async function V(e){let t=await fetch(`${C}/api/memories/${e}/demote`,{method:"POST"});if(!t.ok)throw Error("Failed to demote memory");return t.json()}async function X(e){let t=await fetch(`${C}/api/memories/${e}/promote`,{method:"POST"});if(!t.ok)throw Error("Failed to promote memory");return t.json()}async function G(e,t){let r=await fetch(`${C}/api/memories/${e}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!r.ok)throw Error("Failed to edit memory");return r.json()}async function Y(e){let t=await fetch(`${C}/api/memories/${e}`,{method:"DELETE"});if(!t.ok)throw Error("Failed to delete memory");return t.json()}async function Z(e,t){let r=await fetch(`${C}/api/memories/${e}/quarantine`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reason:t})});if(!r.ok)throw Error("Failed to quarantine memory");return r.json()}async function ee(){let e=await fetch(`${C}/api/worker/status`);if(!e.ok)throw Error("Failed to fetch worker status");return e.json()}function et(){let e=(0,m.useQueryClient)();return F({mutationFn:J,onSuccess:()=>{e.invalidateQueries({queryKey:["memories"]}),e.invalidateQueries({queryKey:["stats"]})}})}function er(){let e=(0,m.useQueryClient)();return F({mutationFn:V,onSuccess:()=>{e.invalidateQueries({queryKey:["memories"]}),e.invalidateQueries({queryKey:["stats"]})}})}function es(){let e=(0,m.useQueryClient)();return F({mutationFn:X,onSuccess:()=>{e.invalidateQueries({queryKey:["memories"]}),e.invalidateQueries({queryKey:["stats"]})}})}function ei(){let e=(0,m.useQueryClient)();return F({mutationFn:({id:e,updates:t})=>G(e,t),onSuccess:()=>{e.invalidateQueries({queryKey:["memories"]}),e.invalidateQueries({queryKey:["stats"]})}})}function en(){let e=(0,m.useQueryClient)();return F({mutationFn:Y,onSuccess:()=>{e.invalidateQueries({queryKey:["memories"]}),e.invalidateQueries({queryKey:["stats"]}),e.invalidateQueries({queryKey:["links"]})}})}function ea(){let e=(0,m.useQueryClient)();return F({mutationFn:({id:e,reason:t})=>Z(e,t),onSuccess:()=>{e.invalidateQueries({queryKey:["memories"]}),e.invalidateQueries({queryKey:["stats"]})}})}function eo(){return R({queryKey:["worker-status"],queryFn:ee,refetchInterval:15e3})}e.s(["useAccessMemory",()=>$,"useBoostMemory",()=>et,"useConsolidate",()=>D,"useContradictions",()=>H,"useControlStatus",()=>A,"useDeleteMemory",()=>en,"useDemoteMemory",()=>er,"useEditMemory",()=>ei,"useMemoriesWithRealtime",()=>K,"useMemoryLinks",()=>_,"usePauseMemory",()=>W,"useProjects",()=>x,"usePromoteMemory",()=>es,"useQuarantineMemory",()=>ea,"useResumeMemory",()=>z,"useStats",()=>I,"useWorkerStatus",()=>eo],88069)},42098,92618,e=>{"use strict";let t;var r=e.i(4);let s=e=>{let t,r=new Set,s=(e,s)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=s?s:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,n={setState:s,getState:i,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e))},a=t=e(s,i,n);return n},i=e=>e?s(e):s;e.s(["createStore",()=>i],92618);let n=e=>{let t=i(e),s=e=>(function(e,t=e=>e){let s=r.default.useSyncExternalStore(e.subscribe,r.default.useCallback(()=>t(e.getState()),[e,t]),r.default.useCallback(()=>t(e.getInitialState()),[e,t]));return r.default.useDebugValue(s),s})(t,e);return Object.assign(s,t),s},a=(t=e=>({selectedMemory:null,setSelectedMemory:t=>e({selectedMemory:t}),viewMode:"shield",setViewMode:t=>e({viewMode:t}),typeFilter:null,categoryFilter:null,projectFilter:null,setTypeFilter:t=>e({typeFilter:t}),setCategoryFilter:t=>e({categoryFilter:t}),setProjectFilter:t=>e({projectFilter:t}),recentEvents:[],addEvent:t=>e(e=>({recentEvents:[t,...e.recentEvents].slice(0,50)})),clearEvents:()=>e({recentEvents:[]}),cameraPosition:[0,0,12],setCameraPosition:t=>e({cameraPosition:t}),showLeftSidebar:!0,showRightSidebar:!0,toggleLeftSidebar:()=>e(e=>({showLeftSidebar:!e.showLeftSidebar})),toggleRightSidebar:()=>e(e=>({showRightSidebar:!e.showRightSidebar})),searchQuery:"",setSearchQuery:t=>e({searchQuery:t})}))?n(t):n;e.s(["useDashboardStore",0,a],42098)},33368,e=>{"use strict";let t={architecture:{basePosition:{x:0,y:1.2,z:2.2},spread:1},pattern:{basePosition:{x:0,y:.3,z:-2.2},spread:.9},preference:{basePosition:{x:1.6,y:-.3,z:0},spread:.7},error:{basePosition:{x:-1.6,y:-.3,z:.3},spread:.8},context:{basePosition:{x:0,y:1.8,z:0},spread:1.2},learning:{basePosition:{x:0,y:-.3,z:0},spread:.8},todo:{basePosition:{x:.6,y:.8,z:1.8},spread:.7},note:{basePosition:{x:1.8,y:0,z:-.3},spread:1},relationship:{basePosition:{x:-1.8,y:.3,z:-.3},spread:.9},custom:{basePosition:{x:0,y:0,z:0},spread:1.5}},r={short_term:.6,episodic:0,long_term:-.4};function s(e){let t=43758.5453*Math.sin(12.9898*e);return t-Math.floor(t)}function i(e){let i=t[e.category]||t.custom,n=r[e.type]||0,a=s(e.id),o=s(e.id+1e3),u=s(e.id+2e3),c=i.spread,l=a*Math.PI*2,h=(o-.5)*Math.PI,d=u*c*.7+.3*c,y=d*Math.cos(h)*Math.cos(l),f=d*Math.sin(h)*.6,p=d*Math.cos(h)*Math.sin(l),m=i.basePosition.x+y,b=i.basePosition.y+f,v=i.basePosition.z+p+n,g=.4*e.salience,R=Math.sqrt(m*m+b*b+v*v);if(R>.1){let e=(R+g)/R;m*=e,b*=e,v*=e}let S=Math.sqrt((m/3.2)**2+(b/2.5)**2+(v/3.5)**2);if(S>.95){let e=.95/S;m*=e,b*=e,v*=e}return{x:m,y:b,z:v}}function n(e){if(!e.lastAccessed)return 1;let t=Date.now(),r=new Date(e.lastAccessed).getTime();return Math.pow({short_term:.995,long_term:.9995,episodic:.998}[e.type]||.995,(t-r)/36e5)}e.s(["calculateDecayFactor",()=>n,"calculateMemoryPosition",()=>i])},87353,e=>{"use strict";var t=e.i(22534),r=e.i(45688),s=e.i(71921),i=e.i(1235);let n=t.default.env.NEXT_PUBLIC_API_URL||"http://localhost:3001";async function a(e){let t=new URLSearchParams;e?.startTime&&t.set("startTime",e.startTime),e?.endTime&&t.set("endTime",e.endTime),e?.source&&t.set("source",e.source),e?.firewallResult&&t.set("firewallResult",e.firewallResult),e?.project&&t.set("project",e.project),e?.limit&&t.set("limit",e.limit.toString());let r=await fetch(`${n}/api/v1/audit?${t}`);if(!r.ok)throw Error("Failed to fetch audit logs");return r.json()}async function o(e,t){let r=new URLSearchParams({timeRange:e});t&&r.set("project",t);let s=await fetch(`${n}/api/v1/audit/stats?${r}`);if(!s.ok)throw Error("Failed to fetch audit stats");return s.json()}async function u(e="pending",t=50,r){let s=new URLSearchParams({status:e,limit:t.toString()});r&&s.set("project",r);let i=await fetch(`${n}/api/v1/quarantine?${s}`);if(!i.ok)throw Error("Failed to fetch quarantine");return i.json()}async function c(e){let t=await fetch(`${n}/api/v1/quarantine/${e}/approve`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reviewedBy:"dashboard"})});if(!t.ok)throw Error("Failed to approve");return t.json()}async function l(e,t){let r=await fetch(`${n}/api/v1/quarantine/${e}/reject`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reviewedBy:"dashboard",notes:t})});if(!r.ok)throw Error("Failed to reject");return r.json()}function h(e){return(0,r.useQuery)({queryKey:["audit-logs",e],queryFn:()=>a(e),refetchInterval:3e4,retry:2})}function d(e="24h",t){return(0,r.useQuery)({queryKey:["audit-stats",e,t],queryFn:()=>o(e,t),refetchInterval:3e4,retry:2})}function y(e="pending",t=50,s){return(0,r.useQuery)({queryKey:["quarantine",e,t,s],queryFn:()=>u(e,t,s),refetchInterval:3e4,retry:2})}function f(){let e=(0,i.useQueryClient)();return(0,s.useMutation)({mutationFn:c,onSuccess:()=>{e.invalidateQueries({queryKey:["quarantine"]}),e.invalidateQueries({queryKey:["audit-stats"]})}})}function p(){let e=(0,i.useQueryClient)();return(0,s.useMutation)({mutationFn:({id:e,notes:t})=>l(e,t),onSuccess:()=>{e.invalidateQueries({queryKey:["quarantine"]}),e.invalidateQueries({queryKey:["audit-stats"]})}})}e.s(["useApproveQuarantine",()=>f,"useAuditLogs",()=>h,"useAuditStats",()=>d,"useQuarantine",()=>y,"useRejectQuarantine",()=>p])},1369,e=>{e.v(t=>Promise.all(["static/chunks/a3989d0e6629bcf8.js"].map(t=>e.l(t))).then(()=>t(11570)))},62838,e=>{e.v(t=>Promise.all(["static/chunks/0ba8a0e679bf5c40.js"].map(t=>e.l(t))).then(()=>t(41740)))}]);