shieldcortex 3.0.4 → 3.2.0

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 (102) hide show
  1. package/README.md +21 -2
  2. package/dashboard/.next/standalone/dashboard/.next/BUILD_ID +1 -1
  3. package/dashboard/.next/standalone/dashboard/.next/build-manifest.json +2 -2
  4. package/dashboard/.next/standalone/dashboard/.next/prerender-manifest.json +3 -3
  5. package/dashboard/.next/standalone/dashboard/.next/required-server-files.json +4 -4
  6. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.html +2 -2
  7. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.rsc +1 -1
  8. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  9. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  10. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  11. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  12. package/dashboard/.next/standalone/dashboard/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  13. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  14. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.html +1 -1
  15. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.rsc +2 -2
  16. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  17. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  18. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.segments/_index.segment.rsc +2 -2
  19. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  20. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  21. package/dashboard/.next/standalone/dashboard/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  22. package/dashboard/.next/standalone/dashboard/.next/server/app/index.html +1 -1
  23. package/dashboard/.next/standalone/dashboard/.next/server/app/index.rsc +3 -3
  24. package/dashboard/.next/standalone/dashboard/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  25. package/dashboard/.next/standalone/dashboard/.next/server/app/index.segments/_full.segment.rsc +3 -3
  26. package/dashboard/.next/standalone/dashboard/.next/server/app/index.segments/_head.segment.rsc +1 -1
  27. package/dashboard/.next/standalone/dashboard/.next/server/app/index.segments/_index.segment.rsc +2 -2
  28. package/dashboard/.next/standalone/dashboard/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  29. package/dashboard/.next/standalone/dashboard/.next/server/app/page/react-loadable-manifest.json +1 -1
  30. package/dashboard/.next/standalone/dashboard/.next/server/app/page_client-reference-manifest.js +1 -1
  31. package/dashboard/.next/standalone/dashboard/.next/server/chunks/ssr/dashboard_3051539d._.js +1 -1
  32. package/dashboard/.next/standalone/dashboard/.next/server/pages/404.html +1 -1
  33. package/dashboard/.next/standalone/dashboard/.next/server/pages/500.html +2 -2
  34. package/dashboard/.next/standalone/dashboard/.next/server/server-reference-manifest.js +1 -1
  35. package/dashboard/.next/standalone/dashboard/.next/server/server-reference-manifest.json +1 -1
  36. package/dashboard/.next/standalone/dashboard/.next/static/chunks/9232a2d99b47b21f.js +3 -0
  37. package/dashboard/.next/standalone/dashboard/.next/static/chunks/98e2c181d5c4349f.js +1 -0
  38. package/dashboard/.next/standalone/dashboard/.next/static/chunks/9cb86821c1107fd6.js +9 -0
  39. package/dashboard/.next/standalone/dashboard/.next/static/chunks/a56c497e02afd4ba.css +3 -0
  40. package/dashboard/.next/standalone/dashboard/.next/static/chunks/a90355d73183a5e6.js +1 -0
  41. package/dashboard/.next/standalone/dashboard/node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node +0 -0
  42. package/dashboard/.next/standalone/{node_modules/@img/sharp-linux-x64 → dashboard/node_modules/@img/sharp-darwin-arm64}/package.json +7 -13
  43. package/dashboard/.next/standalone/dashboard/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/README.md +2 -2
  44. package/dashboard/.next/standalone/dashboard/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/lib/glib-2.0/include/glibconfig.h +8 -9
  45. package/dashboard/.next/standalone/dashboard/node_modules/@img/{sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.3 → sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib} +0 -0
  46. package/dashboard/.next/standalone/dashboard/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/package.json +5 -11
  47. package/dashboard/.next/standalone/dashboard/server.js +1 -1
  48. package/dashboard/.next/standalone/{dashboard/node_modules/@img/sharp-linux-x64 → node_modules/@img/sharp-darwin-arm64}/package.json +7 -13
  49. package/dashboard/.next/standalone/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/package.json +5 -11
  50. package/dist/api/routes/memories.js +366 -1
  51. package/dist/api/routes/recall.js +53 -0
  52. package/dist/api/routes/system.js +67 -2
  53. package/dist/cloud/cli.d.ts +1 -0
  54. package/dist/cloud/cli.js +40 -0
  55. package/dist/cloud/config.d.ts +10 -0
  56. package/dist/cloud/config.js +54 -0
  57. package/dist/cloud/graph-sync.d.ts +45 -0
  58. package/dist/cloud/graph-sync.js +260 -0
  59. package/dist/cloud/memory-sync.d.ts +37 -0
  60. package/dist/cloud/memory-sync.js +186 -0
  61. package/dist/cloud/sync-queue.d.ts +24 -0
  62. package/dist/cloud/sync-queue.js +126 -7
  63. package/dist/database/init.js +53 -0
  64. package/dist/graph/backfill.js +3 -5
  65. package/dist/graph/resolve.d.ts +10 -0
  66. package/dist/graph/resolve.js +63 -1
  67. package/dist/index.d.ts +2 -0
  68. package/dist/index.js +61 -4
  69. package/dist/memory/search.d.ts +1 -0
  70. package/dist/memory/search.js +4 -0
  71. package/dist/memory/store.js +188 -30
  72. package/dist/memory/types.d.ts +33 -0
  73. package/dist/service/install.d.ts +1 -0
  74. package/dist/service/install.js +43 -1
  75. package/dist/tools/context.d.ts +4 -4
  76. package/dist/tools/forget.d.ts +6 -6
  77. package/dist/tools/recall.d.ts +11 -11
  78. package/dist/tools/remember.d.ts +19 -4
  79. package/dist/tools/remember.js +17 -1
  80. package/hooks/openclaw/cortex-memory/handler.ts +8 -0
  81. package/package.json +1 -1
  82. package/dashboard/.next/standalone/dashboard/.next/static/chunks/313c0d327bbf244a.js +0 -9
  83. package/dashboard/.next/standalone/dashboard/.next/static/chunks/3cc7e8d4f73cf5d2.js +0 -1
  84. package/dashboard/.next/standalone/dashboard/.next/static/chunks/49c1cec591af1460.js +0 -3
  85. package/dashboard/.next/standalone/dashboard/.next/static/chunks/ca21f348cb163905.js +0 -1
  86. package/dashboard/.next/standalone/dashboard/.next/static/chunks/f4ca424319f58dc7.css +0 -3
  87. package/dashboard/.next/standalone/dashboard/node_modules/@img/sharp-libvips-linuxmusl-x64/README.md +0 -46
  88. package/dashboard/.next/standalone/dashboard/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/glib-2.0/include/glibconfig.h +0 -221
  89. package/dashboard/.next/standalone/dashboard/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/index.js +0 -1
  90. package/dashboard/.next/standalone/dashboard/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.3 +0 -0
  91. package/dashboard/.next/standalone/dashboard/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +0 -42
  92. package/dashboard/.next/standalone/dashboard/node_modules/@img/sharp-libvips-linuxmusl-x64/versions.json +0 -30
  93. package/dashboard/.next/standalone/dashboard/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node +0 -0
  94. package/dashboard/.next/standalone/dashboard/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node +0 -0
  95. package/dashboard/.next/standalone/dashboard/node_modules/@img/sharp-linuxmusl-x64/package.json +0 -46
  96. package/dashboard/.next/standalone/node_modules/@img/sharp-libvips-linuxmusl-x64/package.json +0 -42
  97. package/dashboard/.next/standalone/node_modules/@img/sharp-linuxmusl-x64/package.json +0 -46
  98. /package/dashboard/.next/standalone/dashboard/.next/static/{BEvyMAX62LQMyt5iSb-F9 → ctp9eCBcHDpTWtUYMwJK7}/_buildManifest.js +0 -0
  99. /package/dashboard/.next/standalone/dashboard/.next/static/{BEvyMAX62LQMyt5iSb-F9 → ctp9eCBcHDpTWtUYMwJK7}/_clientMiddlewareManifest.json +0 -0
  100. /package/dashboard/.next/standalone/dashboard/.next/static/{BEvyMAX62LQMyt5iSb-F9 → ctp9eCBcHDpTWtUYMwJK7}/_ssgManifest.js +0 -0
  101. /package/dashboard/.next/standalone/dashboard/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/lib/index.js +0 -0
  102. /package/dashboard/.next/standalone/dashboard/node_modules/@img/{sharp-libvips-linux-x64 → sharp-libvips-darwin-arm64}/versions.json +0 -0
@@ -1 +1 @@
1
- <!DOCTYPE html><!--BEvyMAX62LQMyt5iSb_F9--><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/f4ca424319f58dc7.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/6ba7a5c1a80a6791.js"/><script src="/_next/static/chunks/7d08316952ccdcef.js" async=""></script><script src="/_next/static/chunks/d3d8171bf50ef87e.js" async=""></script><script src="/_next/static/chunks/turbopack-c2d84e7d37269ac1.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/215ce64499260c25.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/6ba7a5c1a80a6791.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[24575,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\",\"/_next/static/chunks/215ce64499260c25.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/f4ca424319f58dc7.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"BEvyMAX62LQMyt5iSb-F9\",\"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/f4ca424319f58dc7.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/215ce64499260c25.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><!--ctp9eCBcHDpTWtUYMwJK7--><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/a56c497e02afd4ba.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/6ba7a5c1a80a6791.js"/><script src="/_next/static/chunks/7d08316952ccdcef.js" async=""></script><script src="/_next/static/chunks/d3d8171bf50ef87e.js" async=""></script><script src="/_next/static/chunks/turbopack-c2d84e7d37269ac1.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/215ce64499260c25.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/6ba7a5c1a80a6791.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[24575,[\"/_next/static/chunks/e007ff86847a4042.js\",\"/_next/static/chunks/64ee9622541d967c.js\",\"/_next/static/chunks/215ce64499260c25.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/a56c497e02afd4ba.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"b\":\"ctp9eCBcHDpTWtUYMwJK7\",\"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/a56c497e02afd4ba.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/215ce64499260c25.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><!--BEvyMAX62LQMyt5iSb_F9--><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/6ba7a5c1a80a6791.js"/><script src="/_next/static/chunks/7d08316952ccdcef.js" async=""></script><script src="/_next/static/chunks/d3d8171bf50ef87e.js" async=""></script><script src="/_next/static/chunks/turbopack-c2d84e7d37269ac1.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/6ba7a5c1a80a6791.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\":\"BEvyMAX62LQMyt5iSb-F9\",\"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><!--ctp9eCBcHDpTWtUYMwJK7--><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/6ba7a5c1a80a6791.js"/><script src="/_next/static/chunks/7d08316952ccdcef.js" async=""></script><script src="/_next/static/chunks/d3d8171bf50ef87e.js" async=""></script><script src="/_next/static/chunks/turbopack-c2d84e7d37269ac1.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/6ba7a5c1a80a6791.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\":\"ctp9eCBcHDpTWtUYMwJK7\",\"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\": \"jku4tYyljmwSDCWFopo3qdKi8G5auAjeDThuP+0EIec=\"\n}"
1
+ self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"moXdXsuCakgsgNsU1jKyXyWtl4zCc7WrM+fIMeFurWA=\"\n}"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "node": {},
3
3
  "edge": {},
4
- "encryptionKey": "jku4tYyljmwSDCWFopo3qdKi8G5auAjeDThuP+0EIec="
4
+ "encryptionKey": "moXdXsuCakgsgNsU1jKyXyWtl4zCc7WrM+fIMeFurWA="
5
5
  }
@@ -0,0 +1,3 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,68595,e=>{"use strict";var t=e.i(22534),s=e.i(27493),a=e.i(4),l=e.i(13132),r=e.i(6847),i=e.i(17278),n=e.i(24929);let c=(0,n.default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),o=(0,n.default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);var d=e.i(22934);let x=(0,n.default)("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),h=(0,n.default)("list-tree",[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]]);var m=e.i(13808),u=e.i(88969);let p=t.default.env.NEXT_PUBLIC_API_URL||"http://localhost:3001",f={tool:"#22d3ee",person:"#34d399",concept:"#f59e0b",language:"#a78bfa",file:"#64748b",service:"#f472b6",pattern:"#fb923c"},b={uses:"#22d3ee",implements:"#34d399",depends_on:"#f59e0b",related_to:"#475569",part_of:"#a78bfa",created_by:"#f472b6",extends:"#fb923c",replaces:"#ef4444",fixes:"#10b981",configures:"#6366f1",prefers:"#f59e0b",avoids:"#ef4444"},y={uses:"uses",implements:"implements",depends_on:"depends on",related_to:"related to",extends:"extends",replaces:"replaces",fixes:"fixes",configures:"configures",prefers:"prefers",avoids:"avoids"},g="#94a3b8",j=(0,l.default)(()=>e.A(23531),{loadableGenerated:{modules:[23272]},ssr:!1});function v(e,t,s,a){return{x:e+Math.cos(a)*s,y:t+Math.sin(a)*s}}function N(){let e=(0,a.useRef)(null),t=(0,a.useRef)(void 0),l=(0,a.useRef)(null),[n,N]=(0,a.useState)({width:800,height:600}),[k,w]=(0,a.useState)(null),[$,M]=(0,a.useState)([]),[C,_]=(0,a.useState)(null),[S,T]=(0,a.useState)([]),[P,R]=(0,a.useState)(!0),[X,Y]=(0,a.useState)(null),[z,F]=(0,a.useState)(""),[L,E]=(0,a.useState)([]),[A,D]=(0,a.useState)(!1),[I,W]=(0,a.useState)("outline"),[B,G]=(0,a.useState)({scale:1,offsetX:0,offsetY:0}),U=(0,a.useRef)(null),O=(0,a.useRef)(null),[Q,q]=(0,a.useState)([]);(0,a.useEffect)(()=>{let t=e.current;if(!t)return;let s=()=>N({width:t.clientWidth,height:t.clientHeight});s();let a=new ResizeObserver(s);return a.observe(t),()=>a.disconnect()},[]);let H=(0,a.useCallback)(e=>{w(t=>(null!==t&&t!==e&&M(e=>[...e,t]),e))},[]);(0,a.useEffect)(()=>{(0,u.authFetch)(`${p}/api/graph/entities?limit=30`).then(e=>e.json()).then(e=>{let t=e.entities||[];q(t),t.length>0&&H(t[0].id),R(!1)}).catch(e=>{Y(e.message),R(!1)})},[]),(0,a.useEffect)(()=>{null!==k&&(R(!0),Promise.all([(0,u.authFetch)(`${p}/api/graph/entities/${k}/neighbourhood`).then(e=>e.json()),(0,u.authFetch)(`${p}/api/graph/entities/${k}/memories`).then(e=>e.json())]).then(([e,t])=>{_(e),T(t.memories||[]),R(!1),Y(null)}).catch(e=>{Y(e.message),R(!1)}))},[k]),(0,a.useEffect)(()=>{if(!C||!t.current)return;let e=setTimeout(()=>{t.current?.zoomToFit(400,60)},500);return()=>clearTimeout(e)},[C]),(0,a.useEffect)(()=>{G({scale:1,offsetX:0,offsetY:0}),l.current=null},[I,k]);let K=(0,a.useCallback)(()=>{M(e=>0===e.length?e:(w(e[e.length-1]),e.slice(0,-1)))},[]),V=(0,a.useCallback)(e=>{e.preventDefault();let t=e.currentTarget.getBoundingClientRect(),s=e.clientX-t.left,a=e.clientY-t.top;G(t=>{let l=e.deltaY<0?1.12:.9,r=Math.min(2.6,Math.max(.65,t.scale*l));if(1e-4>Math.abs(r-t.scale))return t;let i=s-(s-t.offsetX)*r/t.scale,n=a-(a-t.offsetY)*r/t.scale;return{scale:r,offsetX:i,offsetY:n}})},[]),Z=(0,a.useCallback)(e=>{l.current={startX:e.clientX,startY:e.clientY,offsetX:B.offsetX,offsetY:B.offsetY}},[B.offsetX,B.offsetY]),J=(0,a.useCallback)(e=>{let t=l.current;t&&G(s=>({...s,offsetX:t.offsetX+(e.clientX-t.startX),offsetY:t.offsetY+(e.clientY-t.startY)}))},[]),ee=(0,a.useCallback)(()=>{l.current=null},[]);(0,a.useEffect)(()=>z.trim()?(O.current&&clearTimeout(O.current),O.current=setTimeout(()=>{(0,u.authFetch)(`${p}/api/graph/search?q=${encodeURIComponent(z)}&limit=8`).then(e=>e.json()).then(e=>E(e.entities||[])).catch(()=>{})},200),()=>{O.current&&clearTimeout(O.current)}):void E([]),[z]);let et=(0,a.useMemo)(()=>{if(!C)return{nodes:[],links:[]};let e=C.neighbours.map(e=>{let t=C.triples.filter(t=>t.subject_id===e.id||t.object_id===e.id),s=t.filter(e=>"related_to"!==e.predicate),a=s[0]?.predicate??t[0]?.predicate??"related_to",l=10*e.memoryCount+50*s.length+t.length;return{entity:e,strongestPredicate:a,hasMeaningfulLink:s.length>0,score:l}}),t=[...e.filter(e=>e.hasMeaningfulLink).sort((e,t)=>t.score-e.score).slice(0,10),...e.filter(e=>!e.hasMeaningfulLink).sort((e,t)=>t.score-e.score).slice(0,6)],s=new Set(t.map(e=>e.entity.id)),a=[C.focal,...C.neighbours.filter(e=>s.has(e.id))],l=Math.max(1,...a.map(e=>e.memoryCount)),r=new Set(a.map(e=>e.id)),i=new Map;i.set(C.focal.id,{id:C.focal.id,name:C.focal.name,entityType:C.focal.type,memoryCount:C.focal.memoryCount,isFocal:!0,val:28,x:0,y:0,fx:0,fy:0,labelDirection:"center"});let n=(e,t,s)=>{let a=e.entity.memoryCount/l;i.set(e.entity.id,{id:e.entity.id,name:e.entity.name,entityType:e.entity.type,memoryCount:e.entity.memoryCount,isFocal:!1,val:7+14*Math.pow(a,.6),x:t,y:s,fx:t,fy:s,labelDirection:40>Math.abs(t)?"center":t>0?"right":"left"})};if("fractal"===I){let e=[...t.reduce((e,t)=>{let s=t.hasMeaningfulLink?t.strongestPredicate:`ambient:${t.entity.type}`;return e.has(s)||e.set(s,[]),e.get(s).push(t),e},new Map).entries()].sort((e,t)=>t[1].length-e[1].length||e[0].localeCompare(t[0]));e.forEach(([,t],s)=>{let a=-Math.PI/2+s/Math.max(e.length,1)*Math.PI*2;t.sort((e,t)=>t.score-e.score).forEach((e,t)=>{let s=a+(0===t?0:.18*Math.ceil(t/2)*(t%2==0?-1:1)),l=165+78*t,r=(t%3==0?1:-1)*(12+4*t);n(e,Math.cos(s)*l+Math.cos(s+Math.PI/2)*r,Math.sin(s)*l+Math.sin(s+Math.PI/2)*r)})})}else{let e=t.filter(e=>e.hasMeaningfulLink),s=t.filter(e=>!e.hasMeaningfulLink),a=(e,t,s)=>{e.forEach((a,l)=>{let r=1===e.length?-Math.PI/2:-Math.PI/2+l/e.length*Math.PI*2;n(a,Math.cos(r)*t,Math.sin(r)*s)})};a(e,250,180),a(s,360,255)}let c=[...i.values()],o=C.triples.filter(e=>r.has(e.subject_id)&&r.has(e.object_id)).filter(e=>"related_to"!==e.predicate||e.subject_id===C.focal.id||e.object_id===C.focal.id).map(e=>({source:e.subject_id,target:e.object_id,predicate:e.predicate})),d=new Set;return{nodes:c,links:o.filter(e=>{let t=`${e.source}-${e.target}`,s=`${e.target}-${e.source}`;return!(d.has(t)||d.has(s))&&(d.add(t),!0)})}},[I,C]);(0,a.useEffect)(()=>{let e=t.current;e&&0!==et.nodes.length&&(e.d3Force("charge")?.strength(0),e.d3Force("center",null),e.d3Force("link")?.distance(e=>"related_to"===e.predicate?160:120))},[et]);let es=(0,a.useCallback)((e,t,s)=>{let a=e.x,l=e.y;if(null==a||null==l)return;let r=f[e.entityType]||g,i=Math.max(4,e.val);e.isFocal&&(t.beginPath(),t.arc(a,l,i+6,0,2*Math.PI),t.fillStyle=r+"20",t.fill()),t.beginPath(),t.arc(a,l,i,0,2*Math.PI),t.fillStyle=e.isFocal?r:r+"cc",t.fill(),e.isFocal&&(t.lineWidth=3,t.strokeStyle="#ffffff",t.stroke());let n=e.isFocal?40:22,c=e.name.length>n?e.name.slice(0,n)+"…":e.name,o=e.isFocal?Math.max(14,16/s):Math.max(11,13/s);t.font=`${e.isFocal?"bold ":""}${o}px Sans-Serif`;let d=e.labelDirection??"center",x="left"===d,h="right"===d,m=x?a-i-10:h?a+i+10:a,u="center"===d?l+i+6:l-o/2;t.textAlign=x?"right":h?"left":"center",t.textBaseline="center"===d?"top":"middle";let p=t.measureText(c).width,b="center"===d?u-3:u-o/2-3;if(t.fillStyle="rgba(2, 6, 23, 0.9)",t.beginPath(),t.roundRect(x?m-p-3:h?m-3:m-p/2-3,b,p+6,o+6,3),t.fill(),t.fillStyle=e.isFocal?"#ffffff":"#cbd5e1",t.fillText(c,m,u),e.memoryCount>1){let n=`${e.memoryCount}`,c=Math.max(8,10/s);t.font=`${c}px Sans-Serif`;let o=t.measureText(n).width+6,d=a+i-2,x=l-i-2;t.fillStyle=r,t.beginPath(),t.roundRect(d-o/2,x-c/2-2,o,c+4,4),t.fill(),t.fillStyle="#020617",t.textAlign="center",t.textBaseline="middle",t.fillText(n,d,x)}},[]),ea=(0,a.useCallback)((e,t,s)=>{let a=e.source,l=e.target;if(!a?.x||!l?.x)return;let r="related_to"===e.predicate,i="fractal"===I,n=(a.x+l.x)/2,c=(a.y+l.y)/2,o=.14*!!i;if(t.beginPath(),t.moveTo(a.x,a.y),i?t.quadraticCurveTo(n+n*o,c+c*o,l.x,l.y):t.lineTo(l.x,l.y),t.strokeStyle=b[e.predicate]||"#475569",t.lineWidth=r?i?.7:.8:i?1.7:2,t.globalAlpha=r?i?.12:.2:i?.62:.7,t.stroke(),t.globalAlpha=1,!r&&s>.8){let a=y[e.predicate]||e.predicate,l=Math.max(8,10/s);t.font=`${l}px Sans-Serif`,t.textAlign="center",t.textBaseline="middle";let r=t.measureText(a).width;t.fillStyle="rgba(2, 6, 23, 0.85)",t.beginPath(),t.roundRect(n-r/2-2,c-l/2-1,r+4,l+2,2),t.fill(),t.fillStyle=b[e.predicate]||"#94a3b8",t.globalAlpha=.8,t.fillText(a,n,c),t.globalAlpha=1}},[I]),el=(0,a.useCallback)(e=>`${e.name}
2
+ ${e.entityType} \u00b7 ${e.memoryCount} memories
3
+ Click to explore`,[]),er=(0,a.useCallback)(e=>{e.isFocal||H(e.id)},[H]),ei=C?.focal,en=C?.neighbours||[],ec=(0,a.useMemo)(()=>C?C.triples.map(e=>{let t=e.subject_id===C.focal.id,s=t?e.object_id:e.subject_id,a=C.neighbours.find(e=>e.id===s);return a?{key:e.id,direction:t?"out":"in",predicate:e.predicate,sentence:t?`${C.focal.name} ${y[e.predicate]||e.predicate} ${a.name}`:`${a.name} ${y[e.predicate]||e.predicate} ${C.focal.name}`,neighbour:a}:null}).filter(e=>!!e).sort((e,t)=>"related_to"===e.predicate&&"related_to"!==t.predicate?1:"related_to"!==e.predicate&&"related_to"===t.predicate?-1:t.neighbour.memoryCount-e.neighbour.memoryCount):[],[C]),eo=(0,a.useMemo)(()=>{if(!C||n.width<=0||n.height<=0)return null;let e=Math.max(n.width,900),t=Math.max(n.height,620),s=.5*e,a=.72*t,l=C.neighbours.map(e=>{let t=C.triples.filter(t=>t.subject_id===e.id||t.object_id===e.id),s=t.filter(e=>"related_to"!==e.predicate),a=s[0]?.predicate??t[0]?.predicate??e.type,l=10*e.memoryCount+48*s.length+t.length;return{entity:e,strongestPredicate:a,score:l}}).sort((e,t)=>t.score-e.score).slice(0,16),r=[...l.reduce((e,t)=>{let s=t.strongestPredicate;return e.has(s)||e.set(s,[]),e.get(s).push(t),e},new Map).entries()].sort((e,t)=>t[1].length-e[1].length||e[0].localeCompare(t[0])).slice(0,6),i=Math.max(1,C.focal.memoryCount,...l.map(e=>e.entity.memoryCount)),c=r.map(([e,t],l)=>{let n=b[e]||f[t[0]?.entity.type||"tool"]||g,c=1===r.length?-Math.PI/2:-(.88*Math.PI)+l/(r.length-1)*(.76*Math.PI),o=210+18*t.length,d=Math.min(.24,.1+.015*t.length),x=v(s,a,44,c-.08),h=v(s,a,44,c+.08),m=v(s,a,.62*o,c-d),u=v(s,a,.62*o,c+d),p=v(s,a,o,c),j=v(s,a,.42*o,c),N=v(s,a,.35*o,c),k=t.map((e,t)=>{let l=e.entity.memoryCount/i,r=c+(0===t?0:.13*Math.ceil(t/2)*(t%2==0?-1:1)),n=v(s,a,118+50*t,r),o=v(0,0,8+3*t,r+Math.PI/2);return{id:e.entity.id,name:e.entity.name,entityType:e.entity.type,memoryCount:e.entity.memoryCount,x:n.x+o.x,y:n.y+o.y,radius:8+12*Math.pow(l,.55)}}),w=k.map((t,s)=>{let a=v(N.x,N.y,18+8*s,c+(0===s?0:s%2==0?-.18:.18));return{key:`${e}-${t.id}`,path:`M ${N.x} ${N.y} Q ${a.x} ${a.y} ${t.x} ${t.y}`}});return{key:e,label:y[e]||e.replace(/_/g," "),color:n,petalPath:`M ${x.x} ${x.y} Q ${m.x} ${m.y} ${p.x} ${p.y} Q ${u.x} ${u.y} ${h.x} ${h.y} Q ${s} ${a} ${x.x} ${x.y} Z`,stemPath:`M ${s} ${a} Q ${j.x} ${j.y} ${p.x} ${p.y}`,labelX:p.x,labelY:p.y-10,nodeStems:w,nodes:k}}),o=new Map;c.forEach(e=>{e.nodes.forEach(e=>o.set(e.id,e))});let d=new Set(o.keys()),x=C.triples.filter(e=>d.has(e.subject_id)&&d.has(e.object_id)&&e.subject_id!==C.focal.id&&e.object_id!==C.focal.id&&"related_to"!==e.predicate).slice(0,10).map(e=>{let t=o.get(e.subject_id),l=o.get(e.object_id),r=v(s,a,Math.max(Math.hypot(t.x-s,t.y-a),Math.hypot(l.x-s,l.y-a))+55,Math.atan2((t.y+l.y)/2-a,(t.x+l.x)/2-s));return{key:`${e.id}`,color:b[e.predicate]||g,path:`M ${t.x} ${t.y} Q ${r.x} ${r.y} ${l.x} ${l.y}`}});return{width:e,height:t,centerX:s,centerY:a,focalRadius:30,focalGlowRadius:46,branches:c,crossLinks:x}},[n.height,n.width,C]);if(!P&&0===Q.length&&!k)return(0,s.jsx)("div",{className:"w-full h-full flex items-center justify-center",children:(0,s.jsxs)("div",{className:"text-center max-w-md",children:[(0,s.jsx)("div",{className:"text-slate-600 text-4xl mb-4",children:"🕸"}),(0,s.jsx)("h3",{className:"text-lg font-medium text-slate-300 mb-2",children:"No knowledge graph yet"}),(0,s.jsx)("p",{className:"text-sm text-slate-500",children:"As memories are created, ShieldCortex automatically extracts entities and relationships. The graph will appear here once entities are detected."})]})});let ed=(()=>{if(!C)return[];let e=new Map;for(let t of C.triples){let s=t.subject_id===C.focal.id,a=s?t.object_id:t.subject_id,l=C.neighbours.find(e=>e.id===a);if(!l)continue;let r=`${t.predicate}-${s?"out":"in"}`;e.has(r)||e.set(r,{predicate:t.predicate,neighbours:[],direction:s?"out":"in"});let i=e.get(r);i.neighbours.find(e=>e.id===l.id)||i.neighbours.push(l)}return[...e.values()].sort((e,t)=>"related_to"===e.predicate&&"related_to"!==t.predicate?1:"related_to"!==e.predicate&&"related_to"===t.predicate?-1:t.neighbours.length-e.neighbours.length)})();return(0,s.jsxs)("div",{className:"w-full h-full flex flex-col overflow-hidden",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2 border-b border-slate-800 bg-slate-900/50 shrink-0",children:[(0,s.jsx)("button",{onClick:K,disabled:0===$.length,className:"p-1.5 rounded text-slate-400 hover:text-white hover:bg-slate-800 disabled:opacity-30 disabled:cursor-default transition-colors",title:"Go back",children:(0,s.jsx)(c,{size:16})}),ei&&(0,s.jsxs)("div",{className:"flex items-center gap-1.5 text-sm min-w-0",children:[(0,s.jsx)("div",{className:"w-2.5 h-2.5 rounded-full shrink-0",style:{backgroundColor:f[ei.type]||g}}),(0,s.jsx)("span",{className:"font-semibold text-white truncate",children:ei.name}),(0,s.jsx)("span",{className:"text-slate-500 shrink-0",children:ei.type}),(0,s.jsx)("span",{className:"text-slate-600 shrink-0",children:"·"}),(0,s.jsxs)("span",{className:"text-slate-500 shrink-0",children:[ei.memoryCount," memories"]}),C&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"text-slate-600 shrink-0",children:"·"}),(0,s.jsxs)("span",{className:"text-slate-500 shrink-0",children:[en.length," connections"]})]})]}),(0,s.jsx)("div",{className:"flex-1"}),(0,s.jsxs)("div",{className:"flex items-center rounded-lg border border-slate-700 bg-slate-900/80 p-0.5",children:[(0,s.jsxs)("button",{onClick:()=>W("outline"),className:`flex items-center gap-1 rounded-md px-2 py-1 text-xs transition-colors ${"outline"===I?"bg-cyan-500/15 text-cyan-300":"text-slate-400 hover:text-slate-200"}`,title:"Readable relationship outline",children:[(0,s.jsx)(h,{size:12}),"Read"]}),(0,s.jsxs)("button",{onClick:()=>W("map"),className:`flex items-center gap-1 rounded-md px-2 py-1 text-xs transition-colors ${"map"===I?"bg-cyan-500/15 text-cyan-300":"text-slate-400 hover:text-slate-200"}`,title:"Graph canvas",children:[(0,s.jsx)(x,{size:12}),"Map"]}),(0,s.jsxs)("button",{onClick:()=>W("fractal"),className:`flex items-center gap-1 rounded-md px-2 py-1 text-xs transition-colors ${"fractal"===I?"bg-cyan-500/15 text-cyan-300":"text-slate-400 hover:text-slate-200"}`,title:"Fractal bloom layout",children:[(0,s.jsx)(m.Sparkles,{size:12}),"Bloom"]})]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("button",{onClick:()=>{D(!A),setTimeout(()=>U.current?.focus(),100)},className:"p-1.5 rounded text-slate-400 hover:text-white hover:bg-slate-800 transition-colors",title:"Search entities",children:(0,s.jsx)(r.Search,{size:16})}),A&&(0,s.jsxs)("div",{className:"absolute right-0 top-full mt-1 w-72 bg-slate-800 border border-slate-700 rounded-lg shadow-xl z-30",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(r.Search,{size:12,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-500"}),(0,s.jsx)("input",{ref:U,type:"text",placeholder:"Search entities...",value:z,onChange:e=>F(e.target.value),onKeyDown:e=>{"Escape"===e.key&&(D(!1),F(""))},className:"w-full pl-8 pr-8 py-2 text-sm bg-transparent border-b border-slate-700 text-white placeholder:text-slate-500 focus:outline-none"}),z&&(0,s.jsx)("button",{onClick:()=>F(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-slate-500 hover:text-white",children:(0,s.jsx)(i.X,{size:12})})]}),(0,s.jsx)("div",{className:"max-h-64 overflow-y-auto",children:L.length>0?L.map(e=>(0,s.jsxs)("button",{onClick:()=>{H(e.id),D(!1),F("")},className:"w-full flex items-center gap-2 px-3 py-2 text-sm text-slate-300 hover:bg-slate-700 transition-colors",children:[(0,s.jsx)("div",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:f[e.type]||g}}),(0,s.jsx)("span",{className:"truncate flex-1 text-left",children:e.name}),(0,s.jsx)("span",{className:"text-xs text-slate-500 shrink-0",children:e.type}),(0,s.jsx)("span",{className:"text-xs text-slate-600 shrink-0",children:e.memoryCount})]},e.id)):z.trim()?(0,s.jsx)("div",{className:"px-3 py-4 text-xs text-slate-500 text-center",children:"No entities found"}):(0,s.jsx)("div",{className:"px-3 py-2 text-xs text-slate-600",children:"Type to search..."})})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-1 text-xs text-slate-600",title:"Graph shows all projects",children:[(0,s.jsx)(o,{size:11}),(0,s.jsx)("span",{children:"Workspace-wide"})]})]}),(0,s.jsxs)("div",{className:"flex-1 flex min-h-0 overflow-hidden",children:[(0,s.jsxs)("div",{className:"w-[240px] shrink-0 border-r border-slate-800 bg-slate-900/30 flex flex-col overflow-hidden",children:[(0,s.jsxs)("div",{className:"p-3 border-b border-slate-800",children:[(0,s.jsx)("div",{className:"text-[10px] uppercase tracking-wider text-slate-600 mb-2",children:"Top Entities"}),(0,s.jsx)("div",{className:"flex flex-wrap gap-1",children:Q.slice(0,12).map(e=>(0,s.jsxs)("button",{onClick:()=>H(e.id),className:`flex items-center gap-1 px-2 py-0.5 text-xs rounded-full border transition-colors ${k===e.id?"border-transparent text-white":"border-slate-700 text-slate-500 hover:text-slate-300 hover:border-slate-600"}`,style:k===e.id?{backgroundColor:(f[e.type]||g)+"40",color:f[e.type]}:{},children:[(0,s.jsx)("div",{className:"w-1.5 h-1.5 rounded-full",style:{backgroundColor:f[e.type]||g}}),e.name]},e.id))})]}),(0,s.jsx)("div",{className:"flex-1 overflow-y-auto",children:ed.length>0?ed.map(e=>(0,s.jsxs)("div",{className:"border-b border-slate-800/50",children:[(0,s.jsxs)("div",{className:"px-3 py-1.5 text-[10px] uppercase tracking-wider font-medium",style:{color:b[e.predicate]||"#94a3b8"},children:["out"===e.direction?"":"← ",y[e.predicate]||e.predicate,"out"===e.direction?" →":"",(0,s.jsxs)("span",{className:"text-slate-600 ml-1",children:["(",e.neighbours.length,")"]})]}),e.neighbours.map(e=>(0,s.jsxs)("button",{onClick:()=>H(e.id),className:"w-full flex items-center gap-2 px-3 py-1.5 text-xs text-slate-400 hover:text-white hover:bg-slate-800/50 transition-colors",children:[(0,s.jsx)("div",{className:"w-1.5 h-1.5 rounded-full shrink-0",style:{backgroundColor:f[e.type]||g}}),(0,s.jsx)("span",{className:"truncate flex-1 text-left",children:e.name}),(0,s.jsx)("span",{className:"text-slate-600 tabular-nums shrink-0",children:e.memoryCount}),(0,s.jsx)(d.ChevronRight,{size:10,className:"text-slate-700 shrink-0"})]},e.id))]},`${e.predicate}-${e.direction}`)):P?(0,s.jsx)("div",{className:"p-4 text-xs text-slate-500 text-center animate-pulse",children:"Loading..."}):(0,s.jsx)("div",{className:"p-4 text-xs text-slate-500 text-center",children:"No connections"})}),S.length>0&&(0,s.jsxs)("div",{className:"border-t border-slate-800 max-h-[200px] overflow-y-auto",children:[(0,s.jsxs)("div",{className:"px-3 py-1.5 text-[10px] uppercase tracking-wider text-slate-600 sticky top-0 bg-slate-900/80 backdrop-blur-sm",children:["Memories (",S.length,")"]}),S.slice(0,15).map(e=>(0,s.jsxs)("div",{className:"px-3 py-1.5 border-b border-slate-800/30",children:[(0,s.jsx)("div",{className:"text-xs text-slate-300 truncate",children:e.title}),(0,s.jsxs)("div",{className:"flex items-center gap-2 mt-0.5",children:[(0,s.jsx)("span",{className:"text-[10px] text-slate-500",children:e.category}),(0,s.jsx)("span",{className:"text-[10px] text-slate-600 ml-auto",children:new Date(e.created_at).toLocaleDateString()})]})]},e.id))]})]}),"outline"===I?(0,s.jsxs)("div",{className:"flex-1 min-h-0 overflow-y-auto bg-slate-950/20",children:[P&&(0,s.jsx)("div",{className:"h-full flex items-center justify-center",children:(0,s.jsx)("div",{className:"text-slate-400 animate-pulse text-sm",children:"Loading..."})}),X&&(0,s.jsx)("div",{className:"h-full flex items-center justify-center",children:(0,s.jsxs)("div",{className:"text-red-400 text-sm",children:["Error: ",X]})}),!P&&!X&&ei&&(0,s.jsxs)("div",{className:"mx-auto flex max-w-6xl flex-col gap-4 p-4",children:[(0,s.jsxs)("div",{className:"grid gap-4 lg:grid-cols-[1.15fr_0.85fr]",children:[(0,s.jsx)("section",{className:"rounded-2xl border border-slate-800 bg-slate-900/40 p-4",children:(0,s.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-[10px] uppercase tracking-[0.28em] text-slate-600",children:"Focused Entity"}),(0,s.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,s.jsx)("div",{className:"h-3 w-3 rounded-full",style:{backgroundColor:f[ei.type]||g}}),(0,s.jsx)("h2",{className:"text-2xl font-semibold text-white",children:ei.name}),(0,s.jsx)("span",{className:"rounded-full border border-slate-700 px-2 py-0.5 text-xs text-slate-400",children:ei.type})]}),ei.aliases.length>0&&(0,s.jsx)("div",{className:"mt-3 flex flex-wrap gap-1",children:ei.aliases.slice(0,8).map(e=>(0,s.jsx)("span",{className:"rounded-full bg-slate-800 px-2 py-0.5 text-[11px] text-slate-300",children:e},e))})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-2 text-right",children:[(0,s.jsxs)("div",{className:"rounded-xl border border-slate-800 bg-slate-950/50 px-3 py-2",children:[(0,s.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] text-slate-600",children:"Memories"}),(0,s.jsx)("div",{className:"mt-1 text-xl font-semibold text-white",children:ei.memoryCount})]}),(0,s.jsxs)("div",{className:"rounded-xl border border-slate-800 bg-slate-950/50 px-3 py-2",children:[(0,s.jsx)("div",{className:"text-[10px] uppercase tracking-[0.22em] text-slate-600",children:"Direct Links"}),(0,s.jsx)("div",{className:"mt-1 text-xl font-semibold text-white",children:ec.length})]})]})]})}),(0,s.jsxs)("section",{className:"rounded-2xl border border-slate-800 bg-slate-900/40 p-4",children:[(0,s.jsx)("div",{className:"text-[10px] uppercase tracking-[0.28em] text-slate-600",children:"How To Read This"}),(0,s.jsxs)("div",{className:"mt-3 space-y-3 text-sm text-slate-300",children:[(0,s.jsx)("p",{children:"This view turns the graph into readable statements and evidence instead of relying on overlapping labels."}),(0,s.jsxs)("p",{children:["Click any related entity to recenter the graph. Use ",(0,s.jsx)("span",{className:"font-medium text-cyan-300",children:"Map"})," when you want spatial context, and ",(0,s.jsx)("span",{className:"font-medium text-cyan-300",children:"Read"})," when you want meaning."]})]})]})]}),(0,s.jsxs)("div",{className:"grid gap-4 xl:grid-cols-[1.15fr_0.85fr]",children:[(0,s.jsxs)("section",{className:"rounded-2xl border border-slate-800 bg-slate-900/30 p-4",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:"text-[10px] uppercase tracking-[0.28em] text-slate-600",children:"Relationship Outline"}),(0,s.jsx)("div",{className:"mt-1 text-sm text-slate-400",children:"Readable connections grouped by meaning instead of force layout."})]}),(0,s.jsxs)("div",{className:"text-xs text-slate-500",children:[ec.length," statements"]})]}),(0,s.jsx)("div",{className:"mt-4 space-y-4",children:ed.length>0?ed.map(e=>{let t=ec.filter(t=>t.predicate===e.predicate&&t.direction===e.direction);return(0,s.jsxs)("div",{className:"rounded-xl border border-slate-800 bg-slate-950/40",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between border-b border-slate-800 px-4 py-3",children:[(0,s.jsx)("div",{className:"text-sm font-medium",style:{color:b[e.predicate]||"#94a3b8"},children:"out"===e.direction?`${ei.name} ${y[e.predicate]||e.predicate}...`:`... ${y[e.predicate]||e.predicate} ${ei.name}`}),(0,s.jsx)("div",{className:"text-xs text-slate-500",children:t.length})]}),(0,s.jsx)("div",{className:"divide-y divide-slate-800/80",children:t.map(e=>(0,s.jsxs)("button",{onClick:()=>H(e.neighbour.id),className:"flex w-full items-center gap-3 px-4 py-3 text-left transition-colors hover:bg-slate-900/60",children:[(0,s.jsx)("div",{className:"h-2.5 w-2.5 rounded-full shrink-0",style:{backgroundColor:f[e.neighbour.type]||g}}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("div",{className:"truncate text-sm text-white",children:e.sentence}),(0,s.jsxs)("div",{className:"mt-1 flex items-center gap-2 text-[11px] text-slate-500",children:[(0,s.jsx)("span",{children:e.neighbour.type}),(0,s.jsx)("span",{children:"·"}),(0,s.jsxs)("span",{children:[e.neighbour.memoryCount," memories"]})]})]}),(0,s.jsx)(d.ChevronRight,{size:14,className:"shrink-0 text-slate-600"})]},e.key))})]},`${e.predicate}-${e.direction}`)}):(0,s.jsx)("div",{className:"rounded-xl border border-dashed border-slate-800 px-4 py-8 text-center text-sm text-slate-500",children:"No direct relationships for this entity yet."})})]}),(0,s.jsxs)("section",{className:"rounded-2xl border border-slate-800 bg-slate-900/30 p-4",children:[(0,s.jsx)("div",{className:"text-[10px] uppercase tracking-[0.28em] text-slate-600",children:"Evidence Memories"}),(0,s.jsx)("div",{className:"mt-1 text-sm text-slate-400",children:"The actual memories backing this node and its relationships."}),(0,s.jsx)("div",{className:"mt-4 space-y-3",children:S.length>0?S.map(e=>(0,s.jsxs)("div",{className:"rounded-xl border border-slate-800 bg-slate-950/50 px-4 py-3",children:[(0,s.jsx)("div",{className:"truncate text-sm font-medium text-white",children:e.title}),(0,s.jsxs)("div",{className:"mt-2 flex items-center gap-2 text-[11px] text-slate-500",children:[(0,s.jsx)("span",{className:"rounded-full border border-slate-800 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em] text-slate-400",children:e.category}),(0,s.jsx)("span",{children:new Date(e.created_at).toLocaleDateString()}),(0,s.jsxs)("span",{className:"ml-auto",children:["salience ",Math.round(100*e.salience),"%"]})]})]},e.id)):(0,s.jsx)("div",{className:"rounded-xl border border-dashed border-slate-800 px-4 py-8 text-center text-sm text-slate-500",children:"No linked memories found."})})]})]})]})]}):"fractal"===I?(0,s.jsxs)("div",{ref:e,className:"relative flex-1 min-h-0 overflow-hidden bg-[radial-gradient(circle_at_center,rgba(34,211,238,0.08),rgba(2,6,23,0.02)_28%,rgba(2,6,23,0)_56%)]",children:[(0,s.jsxs)("div",{className:"absolute right-4 top-4 z-20 flex items-center gap-2",children:[(0,s.jsx)("div",{className:"rounded-full border border-slate-800 bg-slate-950/70 px-3 py-1 text-[11px] text-slate-400",children:"Wheel to zoom • drag to pan"}),(0,s.jsx)("button",{onClick:()=>G({scale:1,offsetX:0,offsetY:0}),className:"rounded-full border border-slate-700 bg-slate-950/70 px-3 py-1 text-[11px] text-slate-300 transition-colors hover:border-slate-600 hover:text-white",children:"Reset view"})]}),P&&(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center z-10",children:(0,s.jsx)("div",{className:"text-slate-400 animate-pulse text-sm",children:"Loading..."})}),X&&(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center z-10",children:(0,s.jsxs)("div",{className:"text-red-400 text-sm",children:["Error: ",X]})}),!P&&!X&&eo&&ei&&(0,s.jsxs)("svg",{width:n.width,height:n.height,viewBox:`0 0 ${eo.width} ${eo.height}`,className:`h-full w-full ${l.current?"cursor-grabbing":"cursor-grab"}`,onWheel:V,onMouseDown:Z,onMouseMove:J,onMouseUp:ee,onMouseLeave:ee,children:[(0,s.jsx)("defs",{children:(0,s.jsxs)("filter",{id:"bloom-glow",x:"-40%",y:"-40%",width:"180%",height:"180%",children:[(0,s.jsx)("feGaussianBlur",{stdDeviation:"14",result:"blur"}),(0,s.jsx)("feColorMatrix",{in:"blur",type:"matrix",values:"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 18 -8"})]})}),(0,s.jsxs)("g",{transform:`translate(${B.offsetX} ${B.offsetY}) scale(${B.scale})`,children:[eo.branches.map((e,t)=>(0,s.jsxs)("g",{children:[(0,s.jsx)("path",{d:e.petalPath,fill:`${e.color}0a`,stroke:"none"}),(0,s.jsx)("path",{d:e.stemPath,fill:"none",stroke:`${e.color}66`,strokeWidth:2,strokeLinecap:"round"}),e.nodeStems.map(t=>(0,s.jsx)("path",{d:t.path,fill:"none",stroke:`${e.color}52`,strokeWidth:1.2,strokeLinecap:"round"},t.key)),(0,s.jsx)("circle",{cx:e.labelX,cy:e.labelY+8,r:22,fill:`${e.color}0d`}),(0,s.jsx)("text",{x:e.labelX,y:e.labelY,textAnchor:"middle",className:"fill-slate-400 text-[11px] uppercase tracking-[0.22em]",children:e.label}),(0,s.jsx)("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${eo.centerX} ${eo.centerY}; ${t%2==0?1.2:-1.2} ${eo.centerX} ${eo.centerY}; 0 ${eo.centerX} ${eo.centerY}`,dur:`${16+2*t}s`,begin:`${-1.4*t}s`,repeatCount:"indefinite"})]},e.key)),eo.crossLinks.map(e=>(0,s.jsx)("path",{d:e.path,fill:"none",stroke:`${e.color}66`,strokeWidth:1.3,strokeDasharray:"5 6",opacity:.65},e.key)),(0,s.jsx)("circle",{cx:eo.centerX,cy:eo.centerY,r:eo.focalGlowRadius,fill:f[ei.type]||g,opacity:.14,filter:"url(#bloom-glow)"}),(0,s.jsx)("circle",{cx:eo.centerX,cy:eo.centerY,r:eo.focalRadius+8,fill:"none",stroke:`${f[ei.type]||g}55`,strokeWidth:1.5}),(0,s.jsx)("circle",{cx:eo.centerX,cy:eo.centerY,r:eo.focalRadius,fill:f[ei.type]||g,stroke:"#ffffff",strokeWidth:2.5}),(0,s.jsx)("text",{x:eo.centerX,y:eo.centerY+eo.focalRadius+26,textAnchor:"middle",className:"fill-white text-[16px] font-semibold",children:ei.name}),eo.branches.flatMap(e=>e.nodes).map((e,t)=>(0,s.jsxs)("g",{onClick:()=>H(e.id),className:"cursor-pointer",children:[(0,s.jsx)("animateTransform",{attributeName:"transform",type:"translate",values:`0 0; ${e.id%7-3} ${(e.id%5-2)*1.4}; 0 0`,dur:`${6+t%5}s`,begin:`${-(t%6*.8)}s`,repeatCount:"indefinite"}),(0,s.jsx)("circle",{cx:e.x,cy:e.y,r:e.radius+5,fill:f[e.entityType]||g,opacity:.1}),(0,s.jsx)("circle",{cx:e.x,cy:e.y,r:e.radius,fill:f[e.entityType]||g,opacity:.95}),(0,s.jsx)("rect",{x:e.x-14,y:e.y-e.radius-18,rx:8,width:28,height:16,fill:`${f[e.entityType]||g}dd`}),(0,s.jsx)("text",{x:e.x,y:e.y-e.radius-7,textAnchor:"middle",className:"fill-slate-950 text-[10px] font-semibold",children:e.memoryCount}),(0,s.jsx)("text",{x:e.x,y:e.y+e.radius+18,textAnchor:"middle",className:"fill-slate-200 text-[12px]",children:e.name})]},e.id))]})]})]}):(0,s.jsxs)("div",{ref:e,className:"flex-1 min-h-0 relative",children:[P&&(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center z-10",children:(0,s.jsx)("div",{className:"text-slate-400 animate-pulse text-sm",children:"Loading..."})}),X&&(0,s.jsx)("div",{className:"absolute inset-0 flex items-center justify-center z-10",children:(0,s.jsxs)("div",{className:"text-red-400 text-sm",children:["Error: ",X]})}),!P&&!X&&et.nodes.length>0&&n.width>0&&(0,s.jsx)(j,{ref:t,graphData:et,width:n.width,height:n.height,backgroundColor:"rgba(0,0,0,0)",nodeCanvasObject:es,nodeLabel:el,onNodeClick:er,linkCanvasObject:ea,linkDirectionalArrowLength:6,linkDirectionalArrowRelPos:.85,d3AlphaDecay:.05,d3VelocityDecay:.3,warmupTicks:80,cooldownTicks:150})]})]})]})}e.s(["default",()=>N],68595)},13213,e=>{e.n(e.i(68595))},23531,e=>{e.v(t=>Promise.all(["static/chunks/da64d159c042f5ae.js"].map(t=>e.l(t))).then(()=>t(23272)))}]);
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88969,e=>{"use strict";let t=e.i(22534).default.env.NEXT_PUBLIC_API_URL||"http://localhost:3001",r=null,n=null;async function a(){if(r)return r;if(n)return n;n=(async()=>{let e=await fetch(`${t}/api/auth/session-token`);if(!e.ok)throw Error((await e.json().catch(()=>({}))).error||"Failed to fetch session token");let{token:n}=await e.json();return r=n,n})();try{return await n}finally{n=null}}async function i(e,t){let r=await a(),n=new Headers(t?.headers);return n.set("Authorization",`Bearer ${r}`),fetch(e,{...t,headers:n})}class o extends Error{feature;requiredTier;constructor(e,t){super(`Feature locked: ${e}`),this.name="FeatureLockedError",this.feature=e,this.requiredTier=t}}async function l(e,t){let r=await i(e,t);if(403===r.status){let e=await r.json().catch(()=>({}));if("FEATURE_GATED"===e.code)throw new o(e.feature,e.requiredTier)}return r}e.s(["FeatureLockedError",()=>o,"authFetch",()=>i,"gatedFetch",()=>l,"getApiToken",()=>a])},25903,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return a}});let n=e.r(40909);function a({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},27601,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},54220,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return s}});let n=e.r(27493),a=e.r(9854),i=e.r(13595),o=e.r(27601),l=e.r(54218);function s({moduleIds:e}){if("u">typeof window)return null;let t=i.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let s=(0,l.getDeploymentIdQueryOrEmptyString)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,o.encodeURIPath)(e)}${s}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,a.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 u}});let n=e.r(27493),a=e.r(4),i=e.r(25903),o=e.r(54220);function l(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},u=function(e){let t={...s,...e},r=(0,a.lazy)(()=>t.loader().then(l)),u=t.loading;function f(e){let l=u?(0,n.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,s=!t.ssr||!!t.loading,f=s?a.Suspense:a.Fragment,c=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(o.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(f,{...s?{fallback:l}:{},children:c})}return f.displayName="LoadableComponent",f}},13132,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}});let n=e.r(77637)._(e.r(73735));function a(e,t){let r={};"function"==typeof e&&(r.loader=e);let a={...r,...t};return(0,n.default)({...a,modules:a.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)},6847,24929,17278,e=>{"use strict";var t=e.i(4);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},n=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:o,className:l="",children:s,iconNode:u,...f},c)=>(0,t.createElement)("svg",{ref:c,...a,width:r,height:r,stroke:e,strokeWidth:o?24*Number(i)/Number(r):i,className:n("lucide",l),...!s&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(f)&&{"aria-hidden":"true"},...f},[...u.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(s)?s:[s]])),o=(e,a)=>{let o=(0,t.forwardRef)(({className:o,...l},s)=>(0,t.createElement)(i,{ref:s,iconNode:a,className:n(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,o),...l}));return o.displayName=r(e),o};e.s(["default",()=>o],24929);let l=o("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",()=>l],6847);let s=o("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",()=>s],17278)},13808,e=>{"use strict";let t=(0,e.i(24929).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",()=>t],13808)},22934,e=>{"use strict";let t=(0,e.i(24929).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",()=>t],22934)},17603,e=>{"use strict";function t(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function r(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}e.s(["initInterpolator",()=>r,"initRange",()=>t])},294,e=>{"use strict";class t extends Map{constructor(e,t=n){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(r(this,e))}has(e){return super.has(r(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},r){let n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}(this,e))}}function r({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):r}function n(e){return null!==e&&"object"==typeof e?e.valueOf():e}e.s(["InternMap",()=>t])},11276,e=>{"use strict";var t=e.i(294),r=e.i(17603);let n=Symbol("implicit");e.s(["default",()=>function e(){var a=new t.InternMap,i=[],o=[],l=n;function s(e){let t=a.get(e);if(void 0===t){if(l!==n)return l;a.set(e,t=i.push(e)-1)}return o[t%o.length]}return s.domain=function(e){if(!arguments.length)return i.slice();for(let r of(i=[],a=new t.InternMap,e))a.has(r)||a.set(r,i.push(r)-1);return s},s.range=function(e){return arguments.length?(o=Array.from(e),s):o.slice()},s.unknown=function(e){return arguments.length?(l=e,s):l},s.copy=function(){return e(i,o).unknown(l)},r.initRange.apply(s,arguments),s},"implicit",0,n])},82938,2441,e=>{"use strict";function t(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function r(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function n(){}var a="\\s*([+-]?\\d+)\\s*",i="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",o="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,s=RegExp(`^rgb\\(${a},${a},${a}\\)$`),u=RegExp(`^rgb\\(${o},${o},${o}\\)$`),f=RegExp(`^rgba\\(${a},${a},${a},${i}\\)$`),c=RegExp(`^rgba\\(${o},${o},${o},${i}\\)$`),d=RegExp(`^hsl\\(${i},${o},${o}\\)$`),h=RegExp(`^hsla\\(${i},${o},${o},${i}\\)$`),g={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function p(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function x(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=l.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?y(t):3===r?new k(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?m(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?m(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=s.exec(e))?new k(t[1],t[2],t[3],1):(t=u.exec(e))?new k(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=f.exec(e))?m(t[1],t[2],t[3],t[4]):(t=c.exec(e))?m(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=d.exec(e))?R(t[1],t[2]/100,t[3]/100,1):(t=h.exec(e))?R(t[1],t[2]/100,t[3]/100,t[4]):g.hasOwnProperty(e)?y(g[e]):"transparent"===e?new k(NaN,NaN,NaN,0):null}function y(e){return new k(e>>16&255,e>>8&255,255&e,1)}function m(e,t,r,n){return n<=0&&(e=t=r=NaN),new k(e,t,r,n)}function w(e,t,r,a){var i;return 1==arguments.length?((i=e)instanceof n||(i=x(i)),i)?new k((i=i.rgb()).r,i.g,i.b,i.opacity):new k:new k(e,t,r,null==a?1:a)}function k(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function v(){return`#${M(this.r)}${M(this.g)}${M(this.b)}`}function $(){let e=j(this.opacity);return`${1===e?"rgb(":"rgba("}${N(this.r)}, ${N(this.g)}, ${N(this.b)}${1===e?")":`, ${e})`}`}function j(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function N(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function M(e){return((e=N(e))<16?"0":"")+e.toString(16)}function R(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new P(e,t,r,n)}function E(e){if(e instanceof P)return new P(e.h,e.s,e.l,e.opacity);if(e instanceof n||(e=x(e)),!e)return new P;if(e instanceof P)return e;var t=(e=e.rgb()).r/255,r=e.g/255,a=e.b/255,i=Math.min(t,r,a),o=Math.max(t,r,a),l=NaN,s=o-i,u=(o+i)/2;return s?(l=t===o?(r-a)/s+(r<a)*6:r===o?(a-t)/s+2:(t-r)/s+4,s/=u<.5?o+i:2-o-i,l*=60):s=u>0&&u<1?0:l,new P(l,s,u,e.opacity)}function P(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function _(e){return(e=(e||0)%360)<0?e+360:e}function O(e){return Math.max(0,Math.min(1,e||0))}function C(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}t(n,x,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:p,formatHex:p,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return E(this).formatHsl()},formatRgb:b,toString:b}),t(k,w,r(n,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new k(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new k(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new k(N(this.r),N(this.g),N(this.b),j(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:v,formatHex:v,formatHex8:function(){return`#${M(this.r)}${M(this.g)}${M(this.b)}${M((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:$,toString:$})),t(P,function(e,t,r,n){return 1==arguments.length?E(e):new P(e,t,r,null==n?1:n)},r(n,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new P(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new P(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new k(C(e>=240?e-240:e+120,a,n),C(e,a,n),C(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new P(_(this.h),O(this.s),O(this.l),j(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=j(this.opacity);return`${1===e?"hsl(":"hsla("}${_(this.h)}, ${100*O(this.s)}%, ${100*O(this.l)}%${1===e?")":`, ${e})`}`}})),e.s(["default",()=>x,"rgb",()=>w],2441),e.s(["color",()=>x],82938)},208,44936,e=>{"use strict";var t=e.i(2441);function r(e,t,r,n,a){var i=e*e,o=i*e;return((1-3*e+3*i-o)*t+(4-6*i+3*o)*r+(1+3*e+3*i-3*o)*n+o*a)/6}let n=e=>()=>e;function a(e,t){var r=t-e;return r?function(t){return e+t*r}:n(isNaN(e)?t:e)}e.s(["default",0,n],44936);let i=function e(r){var i,o=1==(i=+r)?a:function(e,t){var r,a,o;return t-e?(r=e,a=t,r=Math.pow(r,o=i),a=Math.pow(a,o)-r,o=1/o,function(e){return Math.pow(r+e*a,o)}):n(isNaN(e)?t:e)};function l(e,r){var n=o((e=(0,t.rgb)(e)).r,(r=(0,t.rgb)(r)).r),i=o(e.g,r.g),l=o(e.b,r.b),s=a(e.opacity,r.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=l(t),e.opacity=s(t),e+""}}return l.gamma=e,l}(1);function o(e){return function(r){var n,a,i=r.length,o=Array(i),l=Array(i),s=Array(i);for(n=0;n<i;++n)a=(0,t.rgb)(r[n]),o[n]=a.r||0,l[n]=a.g||0,s[n]=a.b||0;return o=e(o),l=e(l),s=e(s),a.opacity=1,function(e){return a.r=o(e),a.g=l(e),a.b=s(e),a+""}}}o(function(e){var t=e.length-1;return function(n){var a=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[a],o=e[a+1],l=a>0?e[a-1]:2*i-o,s=a<t-1?e[a+2]:2*o-i;return r((n-a/t)*t,l,i,o,s)}}),o(function(e){var t=e.length;return function(n){var a=Math.floor(((n%=1)<0?++n:n)*t),i=e[(a+t-1)%t],o=e[a%t],l=e[(a+1)%t],s=e[(a+2)%t];return r((n-a/t)*t,i,o,l,s)}}),e.s(["default",0,i],208)},6272,e=>{"use strict";e.s(["default",0,function(e,t){return e*=1,t*=1,function(r){return e*(1-r)+t*r}}])},11930,e=>{"use strict";var t=e.i(6272),r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,n=RegExp(r.source,"g");e.s(["default",0,function(e,a){var i,o,l,s,u,f=r.lastIndex=n.lastIndex=0,c=-1,d=[],h=[];for(e+="",a+="";(l=r.exec(e))&&(s=n.exec(a));)(u=s.index)>f&&(u=a.slice(f,u),d[c]?d[c]+=u:d[++c]=u),(l=l[0])===(s=s[0])?d[c]?d[c]+=s:d[++c]=s:(d[++c]=null,h.push({i:c,x:(0,t.default)(l,s)})),f=n.lastIndex;return f<a.length&&(u=a.slice(f),d[c]?d[c]+=u:d[++c]=u),d.length<2?h[0]?(i=h[0].x,function(e){return i(e)+""}):(o=a,function(){return o}):(a=h.length,function(e){for(var t,r=0;r<a;++r)d[(t=h[r]).i]=t.x(e);return d.join("")})}])},25223,e=>{"use strict";var t=e.i(6272);e.s(["interpolateNumber",()=>t.default])},96509,e=>{"use strict";function t(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let a of e)null!=(a=t(a,++n,e))&&(r<a||void 0===r&&a>=a)&&(r=a)}return r}e.s(["default",()=>t])},45583,e=>{"use strict";function t(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let a of e)null!=(a=t(a,++n,e))&&(r>a||void 0===r&&a>=a)&&(r=a)}return r}e.s(["default",()=>t])},9070,e=>{e.v(t=>Promise.all(["static/chunks/9232a2d99b47b21f.js"].map(t=>e.l(t))).then(()=>t(13213)))},62838,e=>{e.v(t=>Promise.all(["static/chunks/39e59c45c12073c2.js"].map(t=>e.l(t))).then(()=>t(41740)))}]);