wiki-viewer 1.5.2 → 1.6.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.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/build-manifest.json +3 -3
- package/.next/standalone/.next/server/app/_global-error.html +1 -1
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/api/app-proxy/[...path]/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/system/browse/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/app/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/api/wiki/upload/route.js.nft.json +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/_0pqaawz._.js +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
- package/.next/standalone/.next/server/middleware-manifest.json +1 -1
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +1 -1
- package/.next/standalone/.next/static/chunks/{17~r3.8awh3qg.js → 0-qve5g~myvo-.js} +1 -1
- package/.next/standalone/package.json +1 -1
- package/.next/standalone/packages/wiki-viewer-mcp/bench-e2e.mjs +166 -0
- package/.next/standalone/packages/wiki-viewer-mcp/bench-latency.mjs +87 -0
- package/.next/standalone/packages/wiki-viewer-mcp/src/index.ts +28 -0
- package/.next/standalone/src/app/page.tsx +11 -1
- package/.next/standalone/src/tests/proof/bench-write.ts +179 -0
- package/.next/standalone/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- /package/.next/standalone/.next/static/{_avhhNXTnEvzPnQc1sIDF → HeeYGbBsAF0r0T0mY60Mo}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{_avhhNXTnEvzPnQc1sIDF → HeeYGbBsAF0r0T0mY60Mo}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{_avhhNXTnEvzPnQc1sIDF → HeeYGbBsAF0r0T0mY60Mo}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/83afe278b6a6bb3c-s.p.0q-301v4kxxnr.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/chunks/0zay6349~v_wc.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0ocp.6r7w_saw.js"/><script src="/_next/static/chunks/0quh-cfcrp2ib.js" async=""></script><script src="/_next/static/chunks/0vp-ahhagxptc.js" async=""></script><script src="/_next/static/chunks/turbopack-12~z-mr7b9b50.js" async=""></script><script src="/_next/static/chunks/0umlolnxs~j3r.js" async=""></script><script src="/_next/static/chunks/057umwogp53v_.js" async=""></script><script src="/_next/static/chunks/0ky8fha87kp0_.js" async=""></script><script src="/_next/static/chunks/135c~rq_ux73w.js" async=""></script><script src="/_next/static/chunks/
|
|
1
|
+
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" href="/_next/static/media/83afe278b6a6bb3c-s.p.0q-301v4kxxnr.woff2" as="font" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/_next/static/chunks/0zay6349~v_wc.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0ocp.6r7w_saw.js"/><script src="/_next/static/chunks/0quh-cfcrp2ib.js" async=""></script><script src="/_next/static/chunks/0vp-ahhagxptc.js" async=""></script><script src="/_next/static/chunks/turbopack-12~z-mr7b9b50.js" async=""></script><script src="/_next/static/chunks/0umlolnxs~j3r.js" async=""></script><script src="/_next/static/chunks/057umwogp53v_.js" async=""></script><script src="/_next/static/chunks/0ky8fha87kp0_.js" async=""></script><script src="/_next/static/chunks/135c~rq_ux73w.js" async=""></script><script src="/_next/static/chunks/0-qve5g~myvo-.js" async=""></script><script src="/_next/static/chunks/07mgvytssm8ww.js" async=""></script><meta name="next-size-adjust" content=""/><title>Wiki Viewer</title><meta name="description" content="Local file browser, viewer, and editor"/><link rel="icon" href="/icon.svg?icon.0_efx.p39qv7r.svg" sizes="any" type="image/svg+xml"/><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body class="inter_5901b7c6-module__ec5Qua__variable font-sans antialiased"><div hidden=""><!--$--><!--/$--></div><script>((a,b,c,d,e,f,g,h)=>{let i=document.documentElement,j=["light","dark"];function k(b){var c;(Array.isArray(a)?a:[a]).forEach(a=>{let c="class"===a,d=c&&f?e.map(a=>f[a]||a):e;c?(i.classList.remove(...d),i.classList.add(f&&f[b]?f[b]:b)):i.setAttribute(a,b)}),c=b,h&&j.includes(c)&&(i.style.colorScheme=c)}if(d)k(d);else try{let a=localStorage.getItem(b)||c,d=g&&"system"===a?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":a;k(d)}catch(a){}})("class","theme","system",null,["light","dark"],null,true,true)</script><div class="flex h-screen gap-0 overflow-hidden bg-background"><div class="flex-1 flex items-center justify-center"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-loader-circle h-5 w-5 animate-spin text-muted-foreground" aria-hidden="true"><path d="M21 12a9 9 0 1 1-6.219-8.56"></path></svg></div></div><!--$--><!--/$--><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><script src="/_next/static/chunks/0ocp.6r7w_saw.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[427423,[\"/_next/static/chunks/0umlolnxs~j3r.js\",\"/_next/static/chunks/057umwogp53v_.js\",\"/_next/static/chunks/0ky8fha87kp0_.js\"],\"ThemeProvider\"]\n3:I[902063,[\"/_next/static/chunks/0umlolnxs~j3r.js\",\"/_next/static/chunks/057umwogp53v_.js\",\"/_next/static/chunks/0ky8fha87kp0_.js\"],\"default\"]\n4:I[259666,[\"/_next/static/chunks/0umlolnxs~j3r.js\",\"/_next/static/chunks/057umwogp53v_.js\",\"/_next/static/chunks/0ky8fha87kp0_.js\"],\"default\"]\n5:I[187014,[\"/_next/static/chunks/0umlolnxs~j3r.js\",\"/_next/static/chunks/057umwogp53v_.js\",\"/_next/static/chunks/0ky8fha87kp0_.js\"],\"Toaster\"]\n6:I[687919,[\"/_next/static/chunks/0umlolnxs~j3r.js\",\"/_next/static/chunks/057umwogp53v_.js\",\"/_next/static/chunks/0ky8fha87kp0_.js\"],\"ClientPageRoot\"]\n7:I[952683,[\"/_next/static/chunks/0umlolnxs~j3r.js\",\"/_next/static/chunks/057umwogp53v_.js\",\"/_next/static/chunks/0ky8fha87kp0_.js\",\"/_next/static/chunks/135c~rq_ux73w.js\",\"/_next/static/chunks/0-qve5g~myvo-.js\",\"/_next/static/chunks/07mgvytssm8ww.js\"],\"default\"]\na:I[62711,[\"/_next/static/chunks/0umlolnxs~j3r.js\",\"/_next/static/chunks/057umwogp53v_.js\",\"/_next/static/chunks/0ky8fha87kp0_.js\"],\"OutletBoundary\"]\nb:\"$Sreact.suspense\"\nd:I[62711,[\"/_next/static/chunks/0umlolnxs~j3r.js\",\"/_next/static/chunks/057umwogp53v_.js\",\"/_next/static/chunks/0ky8fha87kp0_.js\"],\"ViewportBoundary\"]\nf:I[62711,[\"/_next/static/chunks/0umlolnxs~j3r.js\",\"/_next/static/chunks/057umwogp53v_.js\",\"/_next/static/chunks/0ky8fha87kp0_.js\"],\"MetadataBoundary\"]\n11:I[514743,[\"/_next/static/chunks/0umlolnxs~j3r.js\",\"/_next/static/chunks/057umwogp53v_.js\",\"/_next/static/chunks/0ky8fha87kp0_.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/0zay6349~v_wc.css\",\"style\"]\n:HL[\"/_next/static/media/83afe278b6a6bb3c-s.p.0q-301v4kxxnr.woff2\",\"font\",{\"crossOrigin\":\"\",\"type\":\"font/woff2\"}]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0zay6349~v_wc.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/0umlolnxs~j3r.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/057umwogp53v_.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/0ky8fha87kp0_.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"children\":[\"$\",\"body\",null,{\"className\":\"inter_5901b7c6-module__ec5Qua__variable font-sans antialiased\",\"children\":[\"$\",\"$L2\",null,{\"children\":[[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",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\"}],[\"$\",\"$L5\",null,{\"theme\":\"system\",\"position\":\"bottom-right\",\"toastOptions\":{\"className\":\"border-border bg-card text-card-foreground\"}}]]}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"$L6\",null,{\"Component\":\"$7\",\"serverProvidedParams\":{\"searchParams\":{},\"params\":{},\"promises\":[\"$@8\",\"$@9\"]}}],[[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/135c~rq_ux73w.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/0-qve5g~myvo-.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/07mgvytssm8ww.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"$La\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@c\"}]}]]}],{},null,false,null]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Ld\",null,{\"children\":\"$Le\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$Lf\",null,{\"children\":[\"$\",\"$b\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L10\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$11\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0zay6349~v_wc.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"HeeYGbBsAF0r0T0mY60Mo\"}\n"])</script><script>self.__next_f.push([1,"8:{}\n9:\"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params\"\n"])</script><script>self.__next_f.push([1,"e:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"12:I[319772,[\"/_next/static/chunks/0umlolnxs~j3r.js\",\"/_next/static/chunks/057umwogp53v_.js\",\"/_next/static/chunks/0ky8fha87kp0_.js\"],\"IconMark\"]\nc:null\n10:[[\"$\",\"title\",\"0\",{\"children\":\"Wiki Viewer\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Local file browser, viewer, and editor\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/icon.svg?icon.0_efx.p39qv7r.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\"}],[\"$\",\"$L12\",\"3\",{}]]\n"])</script></body></html>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
4:I[259666,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"default"]
|
|
5
5
|
5:I[187014,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"Toaster"]
|
|
6
6
|
6:I[687919,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"ClientPageRoot"]
|
|
7
|
-
7:I[952683,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js","/_next/static/chunks/135c~rq_ux73w.js","/_next/static/chunks/
|
|
7
|
+
7:I[952683,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js","/_next/static/chunks/135c~rq_ux73w.js","/_next/static/chunks/0-qve5g~myvo-.js","/_next/static/chunks/07mgvytssm8ww.js"],"default"]
|
|
8
8
|
a:I[62711,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"OutletBoundary"]
|
|
9
9
|
b:"$Sreact.suspense"
|
|
10
10
|
d:I[62711,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"ViewportBoundary"]
|
|
@@ -12,7 +12,7 @@ f:I[62711,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwo
|
|
|
12
12
|
11:I[514743,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"default",1]
|
|
13
13
|
:HL["/_next/static/chunks/0zay6349~v_wc.css","style"]
|
|
14
14
|
:HL["/_next/static/media/83afe278b6a6bb3c-s.p.0q-301v4kxxnr.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
15
|
-
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0zay6349~v_wc.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0umlolnxs~j3r.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/057umwogp53v_.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/0ky8fha87kp0_.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"inter_5901b7c6-module__ec5Qua__variable font-sans antialiased","children":["$","$L2",null,{"children":[["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",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"}],["$","$L5",null,{"theme":"system","position":"bottom-right","toastOptions":{"className":"border-border bg-card text-card-foreground"}}]]}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L6",null,{"Component":"$7","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@8","$@9"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/135c~rq_ux73w.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/
|
|
15
|
+
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0zay6349~v_wc.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0umlolnxs~j3r.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/057umwogp53v_.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/0ky8fha87kp0_.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"inter_5901b7c6-module__ec5Qua__variable font-sans antialiased","children":["$","$L2",null,{"children":[["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",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"}],["$","$L5",null,{"theme":"system","position":"bottom-right","toastOptions":{"className":"border-border bg-card text-card-foreground"}}]]}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L6",null,{"Component":"$7","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@8","$@9"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/135c~rq_ux73w.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0-qve5g~myvo-.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/07mgvytssm8ww.js","async":true,"nonce":"$undefined"}]],["$","$La",null,{"children":["$","$b",null,{"name":"Next.MetadataOutlet","children":"$@c"}]}]]}],{},null,false,null]},null,false,null],["$","$1","h",{"children":[null,["$","$Ld",null,{"children":"$Le"}],["$","div",null,{"hidden":true,"children":["$","$Lf",null,{"children":["$","$b",null,{"name":"Next.Metadata","children":"$L10"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$11",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0zay6349~v_wc.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"HeeYGbBsAF0r0T0mY60Mo"}
|
|
16
16
|
8:{}
|
|
17
17
|
9:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params"
|
|
18
18
|
e:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[687919,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"ClientPageRoot"]
|
|
3
|
-
3:I[952683,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js","/_next/static/chunks/135c~rq_ux73w.js","/_next/static/chunks/
|
|
3
|
+
3:I[952683,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js","/_next/static/chunks/135c~rq_ux73w.js","/_next/static/chunks/0-qve5g~myvo-.js","/_next/static/chunks/07mgvytssm8ww.js"],"default"]
|
|
4
4
|
6:I[62711,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"OutletBoundary"]
|
|
5
5
|
7:"$Sreact.suspense"
|
|
6
|
-
0:{"rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/135c~rq_ux73w.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/
|
|
6
|
+
0:{"rsc":["$","$1","c",{"children":[["$","$L2",null,{"Component":"$3","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@4","$@5"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/135c~rq_ux73w.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/0-qve5g~myvo-.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/07mgvytssm8ww.js","async":true}]],["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"HeeYGbBsAF0r0T0mY60Mo"}
|
|
7
7
|
4:{}
|
|
8
8
|
5:"$0:rsc:props:children:0:props:serverProvidedParams:params"
|
|
9
9
|
8:null
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
4:I[259666,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"default"]
|
|
5
5
|
5:I[187014,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"Toaster"]
|
|
6
6
|
6:I[687919,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"ClientPageRoot"]
|
|
7
|
-
7:I[952683,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js","/_next/static/chunks/135c~rq_ux73w.js","/_next/static/chunks/
|
|
7
|
+
7:I[952683,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js","/_next/static/chunks/135c~rq_ux73w.js","/_next/static/chunks/0-qve5g~myvo-.js","/_next/static/chunks/07mgvytssm8ww.js"],"default"]
|
|
8
8
|
a:I[62711,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"OutletBoundary"]
|
|
9
9
|
b:"$Sreact.suspense"
|
|
10
10
|
d:I[62711,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"ViewportBoundary"]
|
|
@@ -12,7 +12,7 @@ f:I[62711,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwo
|
|
|
12
12
|
11:I[514743,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"default",1]
|
|
13
13
|
:HL["/_next/static/chunks/0zay6349~v_wc.css","style"]
|
|
14
14
|
:HL["/_next/static/media/83afe278b6a6bb3c-s.p.0q-301v4kxxnr.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
15
|
-
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0zay6349~v_wc.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0umlolnxs~j3r.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/057umwogp53v_.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/0ky8fha87kp0_.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"inter_5901b7c6-module__ec5Qua__variable font-sans antialiased","children":["$","$L2",null,{"children":[["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",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"}],["$","$L5",null,{"theme":"system","position":"bottom-right","toastOptions":{"className":"border-border bg-card text-card-foreground"}}]]}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L6",null,{"Component":"$7","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@8","$@9"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/135c~rq_ux73w.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/
|
|
15
|
+
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0zay6349~v_wc.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/0umlolnxs~j3r.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/057umwogp53v_.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/0ky8fha87kp0_.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"inter_5901b7c6-module__ec5Qua__variable font-sans antialiased","children":["$","$L2",null,{"children":[["$","$L3",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L4",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"}],["$","$L5",null,{"theme":"system","position":"bottom-right","toastOptions":{"className":"border-border bg-card text-card-foreground"}}]]}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L6",null,{"Component":"$7","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@8","$@9"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/135c~rq_ux73w.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/0-qve5g~myvo-.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/07mgvytssm8ww.js","async":true,"nonce":"$undefined"}]],["$","$La",null,{"children":["$","$b",null,{"name":"Next.MetadataOutlet","children":"$@c"}]}]]}],{},null,false,null]},null,false,null],["$","$1","h",{"children":[null,["$","$Ld",null,{"children":"$Le"}],["$","div",null,{"hidden":true,"children":["$","$Lf",null,{"children":["$","$b",null,{"name":"Next.Metadata","children":"$L10"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],false]],"m":"$undefined","G":["$11",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0zay6349~v_wc.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"HeeYGbBsAF0r0T0mY60Mo"}
|
|
16
16
|
8:{}
|
|
17
17
|
9:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params"
|
|
18
18
|
e:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
3:I[62711,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"MetadataBoundary"]
|
|
4
4
|
4:"$Sreact.suspense"
|
|
5
5
|
5:I[319772,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"IconMark"]
|
|
6
|
-
0:{"rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Wiki Viewer"}],["$","meta","1",{"name":"description","content":"Local file browser, viewer, and editor"}],["$","link","2",{"rel":"icon","href":"/icon.svg?icon.0_efx.p39qv7r.svg","sizes":"any","type":"image/svg+xml"}],["$","$L5","3",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"
|
|
6
|
+
0:{"rsc":["$","$1","h",{"children":[null,["$","$L2",null,{"children":[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]}],["$","div",null,{"hidden":true,"children":["$","$L3",null,{"children":["$","$4",null,{"name":"Next.Metadata","children":[["$","title","0",{"children":"Wiki Viewer"}],["$","meta","1",{"name":"description","content":"Local file browser, viewer, and editor"}],["$","link","2",{"rel":"icon","href":"/icon.svg?icon.0_efx.p39qv7r.svg","sizes":"any","type":"image/svg+xml"}],["$","$L5","3",{}]]}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"HeeYGbBsAF0r0T0mY60Mo"}
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
4:I[259666,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"default"]
|
|
5
5
|
5:I[187014,["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"Toaster"]
|
|
6
6
|
:HL["/_next/static/chunks/0zay6349~v_wc.css","style"]
|
|
7
|
-
0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0zay6349~v_wc.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/0umlolnxs~j3r.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/057umwogp53v_.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/0ky8fha87kp0_.js","async":true}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"inter_5901b7c6-module__ec5Qua__variable font-sans antialiased","children":["$","$L2",null,{"children":[["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}],"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."}]}]]}]}]],[]]}],["$","$L5",null,{"theme":"system","position":"bottom-right","toastOptions":{"className":"border-border bg-card text-card-foreground"}}]]}]}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"
|
|
7
|
+
0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/0zay6349~v_wc.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/0umlolnxs~j3r.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/057umwogp53v_.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/0ky8fha87kp0_.js","async":true}]],["$","html",null,{"lang":"en","suppressHydrationWarning":true,"children":["$","body",null,{"className":"inter_5901b7c6-module__ec5Qua__variable font-sans antialiased","children":["$","$L2",null,{"children":[["$","$L3",null,{"parallelRouterKey":"children","template":["$","$L4",null,{}],"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."}]}]]}]}]],[]]}],["$","$L5",null,{"theme":"system","position":"bottom-right","toastOptions":{"className":"border-border bg-card text-card-foreground"}}]]}]}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"HeeYGbBsAF0r0T0mY60Mo"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
:HL["/_next/static/chunks/0zay6349~v_wc.css","style"]
|
|
2
2
|
:HL["/_next/static/media/83afe278b6a6bb3c-s.p.0q-301v4kxxnr.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
|
|
3
|
-
0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}},"staleTime":300,"buildId":"
|
|
3
|
+
0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}},"staleTime":300,"buildId":"HeeYGbBsAF0r0T0mY60Mo"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
globalThis.__RSC_MANIFEST = globalThis.__RSC_MANIFEST || {};
|
|
2
|
-
globalThis.__RSC_MANIFEST["/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":902063,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/layout-router.js":{"id":902063,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":259666,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":259666,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":687919,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/client-page.js":{"id":687919,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":767206,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/client-segment.js":{"id":767206,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":845990,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":845990,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":62711,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":62711,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":319772,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":319772,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/sonner@2.0.7_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/sonner/dist/index.mjs <module evaluation>":{"id":187014,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/sonner@2.0.7_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/sonner/dist/index.mjs":{"id":187014,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/src/components/theme-provider.tsx <module evaluation>":{"id":427423,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/src/components/theme-provider.tsx":{"id":427423,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":514743,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/client/components/builtin/global-error.js":{"id":514743,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/src/app/page.tsx <module evaluation>":{"id":952683,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js","/_next/static/chunks/135c~rq_ux73w.js","/_next/static/chunks/17~r3.8awh3qg.js","/_next/static/chunks/07mgvytssm8ww.js"],"async":false},"[project]/src/app/page.tsx":{"id":952683,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js","/_next/static/chunks/135c~rq_ux73w.js","/_next/static/chunks/17~r3.8awh3qg.js","/_next/static/chunks/07mgvytssm8ww.js"],"async":false}},"ssrModuleMapping":{"902063":{"*":{"id":800569,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js"],"async":false}},"259666":{"*":{"id":692096,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js"],"async":false}},"687919":{"*":{"id":910705,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js"],"async":false}},"767206":{"*":{"id":973597,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js"],"async":false}},"845990":{"*":{"id":456088,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js"],"async":false}},"62711":{"*":{"id":42369,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js"],"async":false}},"319772":{"*":{"id":302990,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js"],"async":false}},"187014":{"*":{"id":263265,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js"],"async":false}},"427423":{"*":{"id":301148,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js"],"async":false}},"514743":{"*":{"id":33695,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js","server/chunks/ssr/node_modules__pnpm_0z5l~h-._.js"],"async":false}},"952683":{"*":{"id":240777,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js","server/chunks/ssr/[root-of-the-server]__12ahxbl._.js","server/chunks/ssr/_0pqaawz._.js","server/chunks/ssr/src_lib_auth_client_ts_0sk~n1k._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"902063":{"*":{"id":898685,"name":"*","chunks":[],"async":false}},"259666":{"*":{"id":595703,"name":"*","chunks":[],"async":false}},"687919":{"*":{"id":608475,"name":"*","chunks":[],"async":false}},"767206":{"*":{"id":701451,"name":"*","chunks":[],"async":false}},"845990":{"*":{"id":210941,"name":"*","chunks":[],"async":false}},"62711":{"*":{"id":335288,"name":"*","chunks":[],"async":false}},"319772":{"*":{"id":385836,"name":"*","chunks":[],"async":false}},"187014":{"*":{"id":508023,"name":"*","chunks":[],"async":false}},"427423":{"*":{"id":425790,"name":"*","chunks":[],"async":false}},"514743":{"*":{"id":316138,"name":"*","chunks":[],"async":false}},"952683":{"*":{"id":256983,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/src/app/layout":[{"path":"static/chunks/0zay6349~v_wc.css","inlined":false}],"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/client/components/builtin/global-error":[{"path":"static/chunks/0zay6349~v_wc.css","inlined":false}],"[project]/src/app/page":[{"path":"static/chunks/0zay6349~v_wc.css","inlined":false}]},"entryJSFiles":{"[project]/src/app/layout":["static/chunks/0umlolnxs~j3r.js","static/chunks/057umwogp53v_.js","static/chunks/0ky8fha87kp0_.js"],"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/client/components/builtin/global-error":["static/chunks/0umlolnxs~j3r.js","static/chunks/057umwogp53v_.js","static/chunks/0ky8fha87kp0_.js"],"[project]/src/app/page":["static/chunks/0umlolnxs~j3r.js","static/chunks/057umwogp53v_.js","static/chunks/0ky8fha87kp0_.js","static/chunks/135c~rq_ux73w.js","static/chunks/17~r3.8awh3qg.js","static/chunks/07mgvytssm8ww.js"]}};
|
|
2
|
+
globalThis.__RSC_MANIFEST["/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":902063,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/layout-router.js":{"id":902063,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":259666,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":259666,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":687919,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/client-page.js":{"id":687919,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":767206,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/client-segment.js":{"id":767206,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":845990,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":845990,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":62711,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":62711,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":319772,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":319772,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/sonner@2.0.7_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/sonner/dist/index.mjs <module evaluation>":{"id":187014,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/sonner@2.0.7_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/sonner/dist/index.mjs":{"id":187014,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/src/components/theme-provider.tsx <module evaluation>":{"id":427423,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/src/components/theme-provider.tsx":{"id":427423,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":514743,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/client/components/builtin/global-error.js":{"id":514743,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js"],"async":false},"[project]/src/app/page.tsx <module evaluation>":{"id":952683,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js","/_next/static/chunks/135c~rq_ux73w.js","/_next/static/chunks/0-qve5g~myvo-.js","/_next/static/chunks/07mgvytssm8ww.js"],"async":false},"[project]/src/app/page.tsx":{"id":952683,"name":"*","chunks":["/_next/static/chunks/0umlolnxs~j3r.js","/_next/static/chunks/057umwogp53v_.js","/_next/static/chunks/0ky8fha87kp0_.js","/_next/static/chunks/135c~rq_ux73w.js","/_next/static/chunks/0-qve5g~myvo-.js","/_next/static/chunks/07mgvytssm8ww.js"],"async":false}},"ssrModuleMapping":{"902063":{"*":{"id":800569,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js"],"async":false}},"259666":{"*":{"id":692096,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js"],"async":false}},"687919":{"*":{"id":910705,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js"],"async":false}},"767206":{"*":{"id":973597,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js"],"async":false}},"845990":{"*":{"id":456088,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js"],"async":false}},"62711":{"*":{"id":42369,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js"],"async":false}},"319772":{"*":{"id":302990,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js"],"async":false}},"187014":{"*":{"id":263265,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js"],"async":false}},"427423":{"*":{"id":301148,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js"],"async":false}},"514743":{"*":{"id":33695,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js","server/chunks/ssr/node_modules__pnpm_0z5l~h-._.js"],"async":false}},"952683":{"*":{"id":240777,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0a3bjyp._.js","server/chunks/ssr/0p91_next_dist_0cdz3_i._.js","server/chunks/ssr/node_modules__pnpm_0bt7d39._.js","server/chunks/ssr/[root-of-the-server]__12ahxbl._.js","server/chunks/ssr/_0pqaawz._.js","server/chunks/ssr/src_lib_auth_client_ts_0sk~n1k._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"902063":{"*":{"id":898685,"name":"*","chunks":[],"async":false}},"259666":{"*":{"id":595703,"name":"*","chunks":[],"async":false}},"687919":{"*":{"id":608475,"name":"*","chunks":[],"async":false}},"767206":{"*":{"id":701451,"name":"*","chunks":[],"async":false}},"845990":{"*":{"id":210941,"name":"*","chunks":[],"async":false}},"62711":{"*":{"id":335288,"name":"*","chunks":[],"async":false}},"319772":{"*":{"id":385836,"name":"*","chunks":[],"async":false}},"187014":{"*":{"id":508023,"name":"*","chunks":[],"async":false}},"427423":{"*":{"id":425790,"name":"*","chunks":[],"async":false}},"514743":{"*":{"id":316138,"name":"*","chunks":[],"async":false}},"952683":{"*":{"id":256983,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/src/app/layout":[{"path":"static/chunks/0zay6349~v_wc.css","inlined":false}],"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/client/components/builtin/global-error":[{"path":"static/chunks/0zay6349~v_wc.css","inlined":false}],"[project]/src/app/page":[{"path":"static/chunks/0zay6349~v_wc.css","inlined":false}]},"entryJSFiles":{"[project]/src/app/layout":["static/chunks/0umlolnxs~j3r.js","static/chunks/057umwogp53v_.js","static/chunks/0ky8fha87kp0_.js"],"[project]/node_modules/.pnpm/next@16.2.4_react-dom@19.2.5_react@19.2.5__react@19.2.5/node_modules/next/dist/client/components/builtin/global-error":["static/chunks/0umlolnxs~j3r.js","static/chunks/057umwogp53v_.js","static/chunks/0ky8fha87kp0_.js"],"[project]/src/app/page":["static/chunks/0umlolnxs~j3r.js","static/chunks/057umwogp53v_.js","static/chunks/0ky8fha87kp0_.js","static/chunks/135c~rq_ux73w.js","static/chunks/0-qve5g~myvo-.js","static/chunks/07mgvytssm8ww.js"]}};
|
|
3
3
|
|
|
@@ -126,6 +126,6 @@ TOKEN=<paste token here>
|
|
|
126
126
|
# 3. Read snapshot
|
|
127
127
|
curl -s -H "Authorization: Bearer $TOKEN" \\
|
|
128
128
|
-H "X-Agent-Id: ai:claude" \\
|
|
129
|
-
${b}/api/agent/files/${a??"<path/to/file.md>"}`;await navigator.clipboard.writeText(d),c(!0),setTimeout(()=>c(!1),1500)},[a])}}(a??null),[i,j]=(0,$.useState)(""),k=(0,$.useRef)(null),l="http://localhost:3000",m=(0,$.useCallback)(()=>Gq,[]),n=(0,$.useCallback)(()=>i.replace(/\$WIKI_URL/g,l),[i,l]),o=(0,$.useCallback)(()=>`npx wiki-viewer-mcp register --url ${l} --id ai:myagent --name "My Agent"`,[l]),p=(0,$.useCallback)(()=>JSON.stringify({servers:{"wiki-viewer":{command:"npx",args:["wiki-viewer-mcp"],env:{WIKI_VIEWER_URL:l,WIKI_VIEWER_TOKEN:"<token from register>",WIKI_VIEWER_AGENT_ID:"ai:myagent"}}}},null,2),[l]),q=Gr(m),r=Gr(n),s=Gr(o),t=Gr(p);return((0,$.useEffect)(()=>{if(b)return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a);function a(a){"Escape"===a.key&&c()}},[b,c]),(0,$.useEffect)(()=>{b&&k.current?.focus()},[b]),(0,$.useEffect)(()=>{if(!b)return;f();let a=setInterval(()=>void f(),1e4);return()=>clearInterval(a)},[b,f]),(0,$.useEffect)(()=>{b&&fetch("/api/agents/install").then(a=>a.json()).then(a=>{a.bootstrapPrompt&&j(a.bootstrapPrompt)}).catch(()=>void 0)},[b]),b)?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)("div",{className:"fixed inset-0 z-40 bg-black/20 backdrop-blur-[1px]",onClick:c,"aria-hidden":!0}),(0,Z.jsxs)("aside",{ref:k,tabIndex:-1,role:"dialog","aria-modal":"true","aria-label":"AI Agent Panel",className:"fixed right-0 top-0 bottom-0 z-50 flex w-80 flex-col border-l border-border bg-background shadow-xl outline-none",children:[(0,Z.jsxs)("div",{className:"flex items-center justify-between border-b border-border px-4 py-3 shrink-0",children:[(0,Z.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Z.jsx)(af,{className:"h-4 w-4 text-muted-foreground"}),(0,Z.jsx)("span",{className:"text-sm font-semibold",children:"AI Agent"})]}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",onClick:c,title:"Close panel (Esc)",children:(0,Z.jsx)(aC,{className:"h-3.5 w-3.5"})})]}),(0,Z.jsxs)("div",{className:"flex-1 overflow-y-auto space-y-5 px-4 py-4",children:[(0,Z.jsxs)("section",{className:"rounded-md border border-border bg-muted/30 p-3",children:[(0,Z.jsx)("p",{className:"text-sm font-medium text-foreground",children:"Work with this wiki using AI"}),(0,Z.jsxs)("p",{className:"mt-1 text-xs leading-relaxed text-muted-foreground",children:["Connect Claude, Cursor, ChatGPT, and more. Pick by what you want — each option gives a copy-paste setup. You approve every assistant in ",(0,Z.jsx)("span",{className:"font-medium text-foreground/80",children:"Agents"})," below before it gets access."]})]}),(0,Z.jsxs)("section",{className:"space-y-3",children:[(0,Z.jsxs)("div",{className:"rounded-md border border-border bg-muted/40 p-3 space-y-1.5",children:[(0,Z.jsx)("p",{className:"text-xs font-semibold text-foreground",children:"Co-write docs with you"}),(0,Z.jsx)("p",{className:"text-[10px] text-muted-foreground/70",children:"Edits arrive as suggestions with comments you accept or revert. No MCP needed."}),(0,Z.jsx)(bT,{size:"sm",variant:"outline",className:"h-7 w-full text-xs gap-1.5",onClick:()=>void r.copy(),disabled:!i,children:r.copied?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ag,{className:"h-3.5 w-3.5 text-green-500"})," Copied!"]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(C9,{className:"h-3.5 w-3.5"})," Paste into any chatbot"]})}),(0,Z.jsxs)("p",{className:"text-[10px] text-muted-foreground/50 pt-1",children:["Or install once so it sticks"," ",(0,Z.jsx)("span",{className:"text-muted-foreground/40",children:"· Claude, OpenCode"}),":"]}),(0,Z.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Z.jsx)("code",{className:"flex-1 text-[10px] font-mono text-foreground/80 truncate bg-muted rounded px-1 py-0.5",children:Gq}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0 shrink-0",title:"Copy this command",onClick:()=>void q.copy(),children:q.copied?(0,Z.jsx)(ag,{className:"h-3.5 w-3.5 text-green-500"}):(0,Z.jsx)(C9,{className:"h-3.5 w-3.5"})})]})]}),(0,Z.jsxs)("div",{className:"rounded-md border border-border bg-muted/40 p-3 space-y-1.5",children:[(0,Z.jsxs)("p",{className:"text-xs font-semibold text-foreground",children:["Edit files directly"," ",(0,Z.jsx)("span",{className:"font-normal text-muted-foreground/60",children:"· Claude Code, Cursor, Codex"})]}),(0,Z.jsx)("p",{className:"text-[10px] text-muted-foreground/70",children:"Native read / search / edit tools over MCP. Run to request access:"}),(0,Z.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Z.jsx)("code",{className:"flex-1 text-[10px] font-mono text-foreground/80 truncate bg-muted rounded px-1 py-0.5",children:o()}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0 shrink-0",title:"Copy this command",onClick:()=>void s.copy(),children:s.copied?(0,Z.jsx)(ag,{className:"h-3.5 w-3.5 text-green-500"}):(0,Z.jsx)(C9,{className:"h-3.5 w-3.5"})})]}),(0,Z.jsxs)("p",{className:"text-[10px] text-muted-foreground/50",children:["Approve in ",(0,Z.jsx)("span",{className:"font-medium text-foreground/70",children:"Agents"}),", then add to your tool:"]}),(0,Z.jsx)(bT,{size:"sm",variant:"outline",className:"h-7 w-full text-xs gap-1.5",onClick:()=>void t.copy(),children:t.copied?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ag,{className:"h-3.5 w-3.5 text-green-500"})," Copied!"]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(C9,{className:"h-3.5 w-3.5"})," Copy config (mcp.json)"]})})]}),(0,Z.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[(0,Z.jsx)("span",{className:"text-[10px] text-muted-foreground/50",children:"For developers:"}),(0,Z.jsxs)("button",{type:"button",onClick:()=>void h(),className:"inline-flex items-center gap-1 text-[10px] text-primary hover:underline",children:[g?(0,Z.jsx)(ag,{className:"h-3 w-3 text-green-500"}):(0,Z.jsx)(C9,{className:"h-3 w-3"})," curl example"]}),(0,Z.jsxs)("a",{href:"/api/agents/skill",target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 text-[10px] text-primary hover:underline",children:[(0,Z.jsx)(wZ,{className:"h-3 w-3"})," skill"]}),(0,Z.jsxs)("a",{href:"/api/agents/install",target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 text-[10px] text-primary hover:underline",children:[(0,Z.jsx)(wZ,{className:"h-3 w-3"})," install JSON"]})]})]}),(0,Z.jsx)(Go,{}),(0,Z.jsxs)("section",{className:"space-y-2",children:[(0,Z.jsxs)("h3",{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground",children:["Active Connections"," ",(0,Z.jsx)("span",{className:"normal-case font-normal text-muted-foreground/50",children:"(last 5 min)"})]}),(0,Z.jsx)("div",{className:"rounded-md border border-border bg-muted/40 p-3",children:0===e.length?(0,Z.jsxs)("p",{className:"text-xs text-muted-foreground/60 flex items-center gap-1.5",children:[(0,Z.jsx)(Gg,{className:"h-3.5 w-3.5"}),"No recent activity"]}):(0,Z.jsx)("ul",{className:"space-y-1.5",children:e.map(a=>(0,Z.jsxs)("li",{className:"flex items-center justify-between text-xs",children:[(0,Z.jsx)("span",{className:"font-mono text-foreground/80 truncate",children:a.by}),(0,Z.jsxs)("span",{className:"text-muted-foreground shrink-0",children:[a.opCount," op",1!==a.opCount?"s":""]})]},a.by))})})]}),(0,Z.jsxs)("section",{className:"space-y-2",children:[(0,Z.jsx)("h3",{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground",children:"Recent Activity"}),(0,Z.jsx)("div",{className:"rounded-md border border-border bg-muted/40 px-3 py-1 max-h-72 overflow-y-auto",children:0===d.length?(0,Z.jsx)("p",{className:"text-xs text-muted-foreground/60 py-2",children:"No events recorded"}):d.map(a=>(0,Z.jsx)(Gp,{event:a},`${a.path}-${a.id}`))})]}),(0,Z.jsx)("section",{children:(0,Z.jsx)("a",{href:"/docs/agent-collab-plan.md",target:"_blank",rel:"noreferrer",className:"text-xs text-primary underline hover:no-underline",children:"Agent collaboration docs →"})})]})]})]}):null}function Gt({className:a}){let b=vg(a=>a.width),c=vg(a=>a.setWidth);return(0,Z.jsxs)(FJ,{children:[(0,Z.jsx)(FL,{asChild:!0,children:(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:`h-7 w-7 p-0 ${a??""}`,title:`Content width: ${ve[b]}`,children:(0,Z.jsx)(wM,{className:"h-3.5 w-3.5"})})}),(0,Z.jsx)(FY,{align:"end",className:"w-36",children:vf.map(a=>(0,Z.jsxs)(FZ,{onClick:()=>c(a),className:"flex items-center justify-between text-xs",children:[ve[a],a===b&&(0,Z.jsx)(ag,{className:"h-3.5 w-3.5"})]},a))})]})}function Gu(a){return a.split(".").pop()?.toLowerCase()??""}function Gv(a,b){if("node-app"===b)return"node-app";if("app"===b)return"app";if("dir"===b)return"fallback";let c=Gu(a);return c?["md","markdown"].includes(c)?"editor":"txt"===c?"text":["csv","tsv"].includes(c)?"csv":"pdf"===c?"pdf":["mmd","mermaid"].includes(c)?"mermaid":"ipynb"===c?"notebook":["png","jpg","jpeg","gif","webp","svg","avif","ico","bmp"].includes(c)?"image":["mp4","webm","mov","m4v","mp3","wav","ogg","m4a","aac"].includes(c)?"media":"docx"===c?"docx":["xlsx","xlsm"].includes(c)?"xlsx":"pptx"===c?"pptx":"html"===c?"html":["py","js","ts","tsx","jsx","go","rs","java","c","cpp","h","sh","bash","zsh","rb","php","swift","kt","lua","sql","yaml","yml","toml","json","xml","css","scss"].includes(c)?"source":"fallback":"fallback"}let Gw=new Set(["txt","md","markdown","json","yaml","yml","toml","csv","tsv","xml","html","css","js","ts","tsx","jsx","sh","bash","zsh","rb","py","go","rs","java","c","cpp","h","php","swift","kt","lua","sql","scss","mmd","mermaid","ini","env","log","conf"]);function Gx(a){let b=Gv(a,"file");return"editor"===b||"text"===b||Gw.has(Gu(a))}function Gy(a){return["md","markdown"].includes(Gu(a))}function Gz(a){return"image"===Gv(a,"file")}async function GA(a){let b=await fetch(`/api/wiki?dir=${encodeURIComponent(a)}`);return b.ok?(await b.json()).entries.map(b=>({name:b.name,path:a?`${a}/${b.name}`:b.name,type:b.type,size:b.size,modifiedAt:b.modifiedAt,expanded:!1})):[]}function GB(a,b,c){return a.map(a=>a.path===b?c(a):a.children?{...a,children:GB(a.children,b,c)}:a)}a.s(["default",0,function(){let a;vh(a=>a.loadedAt),(0,$.useEffect)(()=>{vh.getState().load()},[]);let[b,c]=(0,$.useState)(null),[d,e]=(0,$.useState)(null);(0,$.useEffect)(()=>{fetch("/api/system/root-status").then(a=>a.json()).then(a=>{c(a.configured),e(a.path)}).catch(()=>c(!1))},[]);let f=va(a=>a.currentPath),g=(0,$.useRef)(null),h=(0,$.useRef)(!1),[i,j]=(0,$.useState)([]),[k,l]=(0,$.useState)(!1),[m,n]=(0,$.useState)(!1),o=(0,$.useRef)(!1),[p,q]=(0,$.useState)(!1),[r,s]=(0,$.useState)(!1),[t,u]=(0,$.useState)(null),v=(0,$.useRef)(null),w=(0,$.useRef)(""),[x,y]=(0,$.useState)(null),[z,A]=(0,$.useState)(""),[B,C]=(0,$.useState)(null),[D,E]=(0,$.useState)(null),[F,G]=(0,$.useState)(""),[H,I]=(0,$.useState)(null),[J,K]=(0,$.useState)(null),[L,M]=(0,$.useState)(!1),[N,O]=(0,$.useState)(null),[P,Q]=(0,$.useState)(!1),[R,S]=(0,$.useState)(0),[T,U]=(0,$.useState)(!1),[V,W]=(0,$.useState)(!1),[X,Y]=(0,$.useState)(null),[_,aa]=(0,$.useState)(!1),[ab,ac]=(0,$.useState)(!1),[ad,aD]=(0,$.useState)(""),[aE,aF]=(0,$.useState)(!1),[aG,aH]=(0,$.useState)(null),aI=(0,$.useRef)(null),[aJ,aK]=(0,$.useState)(null),aL=(0,$.useRef)(null),aM=(0,$.useRef)(!1),aN=(0,$.useRef)(async()=>{});(0,$.useEffect)(()=>{k||o.current||(o.current=!0,n(!0),GA("").then(a=>{j(a),l(!0),n(!1)}).catch(()=>{o.current=!1,n(!1)}))},[k]);let aO=(0,$.useCallback)(async a=>{let b=a.split("/");if(b.length<=1)return;let c=[],d="";for(let a=0;a<b.length-1;a++)d=d?`${d}/${b[a]}`:b[a],c.push({prefix:d,children:await GA(d)});j(a=>{let b=a;for(let{prefix:a,children:d}of c)b=GB(b,a,a=>({...a,children:d,expanded:!0}));return b})},[]),aP=(0,$.useCallback)(async a=>{let b=await GA(a);""===a?j(a=>{let c=new Map(a.map(a=>[a.path,a]));return b.map(a=>{let b=c.get(a.path);return b&&("dir"===b.type||"app"===b.type)?{...a,expanded:b.expanded,children:b.children}:a})}):j(c=>GB(c,a,a=>({...a,children:b,expanded:!0})))},[]),aQ=(0,$.useCallback)(a=>{let b=[];for(let c of a)("dir"===c.type||"app"===c.type)&&c.expanded&&c.children&&(b.push(c.path),b.push(...aQ(c.children)));return b},[]),aR=(0,$.useCallback)(async()=>{q(!0);try{let a=aQ(i),b=await GA("");for(let c of(j(b),a)){let a=await GA(c);j(b=>GB(b,c,b=>({...b,children:a,expanded:!0})))}}finally{q(!1)}},[i,aQ]),aS=(0,$.useCallback)(async()=>{if(N&&(["editor","text"].includes(Gv(N.name,N.nodeType))||Gx(N.name))){aa(!0);try{let a=await fetch(`/api/wiki/content?path=${encodeURIComponent(N.path)}`);if(a.ok){let b=await a.json();Y(b.content)}}catch{}aa(!1)}},[N]);async function aT(a){if("dir"===a.type||"app"===a.type)if(a.expanded)j(b=>GB(b,a.path,a=>({...a,expanded:!1})));else if(void 0===a.children){j(b=>GB(b,a.path,a=>({...a,loading:!0})));let b=await GA(a.path);j(c=>GB(c,a.path,a=>({...a,loading:!1,children:b,expanded:!0})))}else j(b=>GB(b,a.path,a=>({...a,expanded:!0})))}async function aU(a){if(O({path:a.path,name:a.name,nodeType:"app"===a.type?"app":"node-app"===a.type?"node-app":"file"}),ac(!1),aH(null),Y(null),["editor","text"].includes(Gv(a.name,a.type))||Gx(a.name)){aa(!0);try{let b=await fetch(`/api/wiki/content?path=${encodeURIComponent(a.path)}`);if(b.ok){let a=await b.json();Y(a.content)}}catch{}aa(!1)}}(0,$.useEffect)(()=>{aL.current=N},[N]),(0,$.useEffect)(()=>{aM.current=ab},[ab]),(0,$.useEffect)(()=>{aN.current=aS},[aS]),(0,$.useEffect)(()=>{if(!b)return;let a=new Map,c=new EventSource("/api/wiki/watch");return c.onmessage=b=>{var c;let d;try{d=JSON.parse(b.data)}catch{return}let{type:e,path:f}=d,g=f.split("/");if(c=g.length>1?g.slice(0,-1).join("/"):"",a.has(c)&&clearTimeout(a.get(c)),a.set(c,setTimeout(()=>{a.delete(c),aP(c)},300)),"change"===e&&aL.current?.path===f&&!aM.current){let b=`__file__${f}`;a.has(b)&&clearTimeout(a.get(b)),a.set(b,setTimeout(()=>{a.delete(b),aN.current()},400))}},()=>{for(let b of(c.close(),a.values()))clearTimeout(b)}},[b,aP]),(0,$.useEffect)(()=>{Q(!1)},[]),(0,$.useEffect)(()=>{if(!f||N&&N.path===f)return;let a=f.split("/").pop()??f;aU({path:f,name:a,type:"file"})},[f]),(0,$.useEffect)(()=>{},[N]),(0,$.useEffect)(()=>{if(h.current||!k)return;let a=g.current;if(!a){h.current=!0;return}h.current=!0,(async()=>{let b=a.split("/"),c=b[b.length-1],d=b.slice(0,-1).join("/"),e=(await GA(d)).find(b=>b.path===a);e&&(await aO(a),aU({path:a,name:c,type:e.type,modifiedAt:e.modifiedAt}))})()},[k,aO]);let aV=async()=>{await fetch("/api/system/clear-root",{method:"POST"}),O(null),Y(null),ac(!1),j([]),l(!1),o.current=!1,e(null),c(!1)};async function aW(){if(!N)return;aF(!0),aH(null);let a=await fetch("/api/wiki/content",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:N.path,content:ad})});a.ok?(Y(ad),ac(!1)):aH((await a.json()).error??"Save failed"),aF(!1)}let aX=(0,$.useCallback)(async(a,b)=>{let c=Array.from(a);if(c.length){s(!0),u(null);try{for(let a of c){let c=new FormData;c.append("file",a),c.append("dir",b);let d=await fetch("/api/wiki/upload",{method:"POST",body:c});if(!d.ok){let a=await d.json();u(a.error??"Upload failed"),CZ(a.error??"Upload failed");break}}await aP(b)}catch{u("Upload failed.")}finally{s(!1),v.current&&(v.current.value="")}}},[aP]);function aY(a){w.current=a,v.current?.click()}async function aZ(){let a=z.trim();if(!a||null===x)return;C(null);let b=x?`${x}/${a}`:a,c=await fetch("/api/wiki/folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:b})});c.ok?(y(null),A(""),await aP(x),""!==x&&j(a=>GB(a,x,a=>({...a,expanded:!0})))):C((await c.json()).error??"Failed")}async function a$(){let a=F.trim();if(!a||null===D)return;I(null);let b=a.includes(".")?a:`${a}.md`,c=D?`${D}/${b}`:b,d=await fetch("/api/wiki/new-file",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:c})});d.ok?(E(null),G(""),await aP(D),""!==D&&j(a=>GB(a,D,a=>({...a,expanded:!0}))),aU({path:c,name:b,type:"file",modifiedAt:new Date().toISOString()})):I((await d.json()).error??"Failed")}async function a_(){J&&(await fetch("/api/wiki",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:J})}),(N?.path===J||N?.path.startsWith(`${J}/`))&&(O(null),Y(null)),j(a=>(function a(b,c){return b.filter(a=>a.path!==c).map(b=>b.children?{...b,children:a(b.children,c)}:b)})(a,J)),K(null))}function a0(a,b,c){a.preventDefault(),a.stopPropagation();let d=aI.current;!d||d.path===b||b.startsWith(`${d.path}/`)||(a.dataTransfer.dropEffect="move",aK("root"===c?"":b))}async function a1(a,b){a.preventDefault(),a.stopPropagation(),aK(null);let c=aI.current;if(aI.current=null,!c||c.path===b||b.startsWith(`${c.path}/`))return;let d=b?`${b}/${c.name}`:c.name;if(d!==c.path&&(await fetch("/api/wiki/move",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({from:c.path,to:d})})).ok){let a=c.path.includes("/")?c.path.split("/").slice(0,-1).join("/"):"";await aP(a),b!==a&&await aP(b),N?.path===c.path&&O({path:d,name:c.name,nodeType:N.nodeType})}}let a2=N?Gv(N.name,N.nodeType):null,a3=vg(a=>a.width),a4=null===a2||"editor"===a2||"text"===a2||"source"===a2||"notebook"===a2||"fallback"===a2,a5=a4?vc[a3]:"";return(0,Z.jsxs)("div",{className:"flex h-screen gap-0 overflow-hidden bg-background",children:[null===b&&(0,Z.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,Z.jsx)(ar,{className:"h-5 w-5 animate-spin text-muted-foreground"})}),!1===b&&(0,Z.jsx)(Ek,{onSelect:a=>{l(!1),o.current=!1,e(a),c(!0)}}),!0===b&&(0,Z.jsxs)(Z.Fragment,{children:[!T&&(0,Z.jsxs)(F8,{className:"flex flex-col w-72 shrink-0 overflow-hidden rounded-none border-r border-l-0 border-t-0 border-b-0",children:[(0,Z.jsxs)("div",{className:"flex items-center justify-between gap-2 px-3 py-2 border-b bg-muted shrink-0",children:[(0,Z.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5",children:[(0,Z.jsx)("img",{src:"/logo.svg",alt:"Wiki Viewer",className:"h-5 w-5 shrink-0"}),(0,Z.jsx)("span",{className:"truncate text-xs font-semibold tracking-tight",children:"Wiki Viewer"})]}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0 shrink-0",title:"Collapse sidebar",onClick:()=>U(!0),children:(0,Z.jsx)(at,{className:"h-3.5 w-3.5"})})]}),(0,Z.jsxs)("div",{className:"flex items-center justify-between gap-1 px-3 py-1.5 border-b bg-muted/50 shrink-0",children:[(0,Z.jsxs)(FJ,{children:[(0,Z.jsx)(FL,{asChild:!0,children:(0,Z.jsxs)(bT,{size:"sm",variant:"ghost",className:"h-7 gap-1 px-2 text-xs",disabled:r,children:[r?(0,Z.jsx)(ar,{className:"h-3.5 w-3.5 animate-spin"}):(0,Z.jsx)(aw,{className:"h-3.5 w-3.5"}),"New",(0,Z.jsx)(ah,{className:"h-3 w-3 opacity-60"})]})}),(0,Z.jsxs)(FY,{align:"start",className:"w-44",children:[(0,Z.jsxs)(FZ,{onClick:()=>{E(""),G(""),I(null)},children:[(0,Z.jsx)(ak,{className:"mr-2 h-3.5 w-3.5"}),"New file"]}),(0,Z.jsxs)(FZ,{onClick:()=>{y(""),A(""),C(null)},children:[(0,Z.jsx)(ao,{className:"mr-2 h-3.5 w-3.5"}),"New folder"]}),(0,Z.jsxs)(FZ,{onClick:()=>aY(""),disabled:r,children:[(0,Z.jsx)(aB,{className:"mr-2 h-3.5 w-3.5"}),"Upload"]})]})]}),(0,Z.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",title:"Refresh tree",onClick:aR,disabled:p,children:p?(0,Z.jsx)(ar,{className:"h-3.5 w-3.5 animate-spin"}):(0,Z.jsx)(ax,{className:"h-3.5 w-3.5"})}),(0,Z.jsx)(F1,{}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",title:"AI Agent panel",onClick:()=>u1.getState().toggle(),children:(0,Z.jsx)(af,{className:"h-3.5 w-3.5"})}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",title:"Settings",onClick:()=>W(!0),children:(0,Z.jsx)(ay,{className:"h-3.5 w-3.5"})})]})]}),t&&(0,Z.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-destructive bg-destructive/10 shrink-0",children:[(0,Z.jsx)(ae,{className:"h-3.5 w-3.5 shrink-0"}),t]}),""===x&&(0,Z.jsxs)("div",{className:"flex items-center gap-1.5 px-2 py-1 border-b shrink-0",children:[(0,Z.jsx)(am,{className:"h-4 w-4 shrink-0 text-warning"}),(0,Z.jsx)("input",{className:"flex-1 bg-transparent text-sm outline-none border-b border-border min-w-0",placeholder:"Folder name",value:z,onChange:a=>A(a.target.value),onKeyDown:a=>{"Enter"===a.key&&aZ(),"Escape"===a.key&&(y(null),A(""))}}),B&&(0,Z.jsx)("span",{className:"text-xs text-destructive",children:B}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:aZ,children:(0,Z.jsx)(ag,{className:"h-3 w-3"})}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:()=>{y(null),A("")},children:(0,Z.jsx)(aC,{className:"h-3 w-3"})})]}),""===D&&(0,Z.jsxs)("div",{className:"flex items-center gap-1.5 px-2 py-1 border-b shrink-0",children:[(0,Z.jsx)(al,{className:"h-4 w-4 shrink-0 text-accent"}),(0,Z.jsx)("input",{autoFocus:!0,className:"flex-1 bg-transparent text-sm outline-none border-b border-border min-w-0",placeholder:"filename (default .md)",value:F,onChange:a=>G(a.target.value),onKeyDown:a=>{"Enter"===a.key&&a$(),"Escape"===a.key&&(E(null),G(""))}}),H&&(0,Z.jsx)("span",{className:"text-xs text-destructive",children:H}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:a$,children:(0,Z.jsx)(ag,{className:"h-3 w-3"})}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:()=>{E(null),G("")},children:(0,Z.jsx)(aC,{className:"h-3 w-3"})})]}),(0,Z.jsx)("div",{className:bR("flex-1 overflow-auto py-1",""===aJ&&"ring-2 ring-inset ring-primary bg-primary/5"),onDragOver:a=>a0(a,"","root"),onDragLeave:a=>{a.currentTarget.contains(a.relatedTarget)||aK(null)},onDrop:a=>a1(a,""),children:m?(0,Z.jsx)("div",{className:"flex justify-center py-6",children:(0,Z.jsx)(ar,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):0===i.length?(0,Z.jsxs)("div",{className:"flex flex-col items-center gap-3 px-4 py-8 text-center",children:[(0,Z.jsx)("div",{className:"rounded-full bg-muted p-3",children:(0,Z.jsx)(al,{className:"h-6 w-6 text-muted-foreground"})}),(0,Z.jsxs)("div",{className:"space-y-1",children:[(0,Z.jsx)("p",{className:"text-sm font-medium",children:"No files yet"}),(0,Z.jsx)("p",{className:"text-xs text-muted-foreground",children:"Upload files or add them to the configured directory"})]}),(0,Z.jsxs)(bT,{size:"sm",variant:"outline",className:"w-full gap-1.5 max-w-[180px]",onClick:()=>aY(""),disabled:r,children:[r?(0,Z.jsx)(ar,{className:"h-3.5 w-3.5 animate-spin"}):(0,Z.jsx)(aB,{className:"h-3.5 w-3.5"}),"Upload Files"]})]}):function a(b,c=0){return b.map(b=>(0,Z.jsxs)("div",{children:[(0,Z.jsxs)("div",{role:"treeitem",tabIndex:0,draggable:!0,onKeyDown:a=>{("Enter"===a.key||" "===a.key)&&(a.preventDefault(),"dir"===b.type?aT(b):"app"===b.type?(aU(b),aT(b)):aU(b))},onDragStart:a=>{aI.current=b,a.dataTransfer.effectAllowed="move",a.dataTransfer.setData("text/plain",b.path)},onDragOver:a=>"dir"===b.type?a0(a,b.path,"dir"):a.preventDefault(),onDragLeave:()=>aK(null),onDrop:a=>"dir"===b.type?a1(a,b.path):a.preventDefault(),className:bR("flex items-center gap-1.5 rounded-sm px-2 py-1 text-sm cursor-pointer group transition-colors select-none",N?.path===b.path?"bg-accent text-accent-foreground":"hover:bg-accent/50",aJ===b.path&&"ring-2 ring-primary bg-primary-soft",b.name.startsWith(".")&&"opacity-40"),style:{paddingLeft:`${14*c+8}px`},onClick:()=>{"dir"===b.type?aT(b):"app"===b.type?(aU(b),aT(b)):aU(b)},children:["dir"===b.type||"app"===b.type?b.loading?(0,Z.jsx)(ar,{className:"h-3.5 w-3.5 shrink-0 animate-spin text-muted-foreground"}):b.expanded?(0,Z.jsx)(ah,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}):(0,Z.jsx)(ai,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}):(0,Z.jsx)("span",{className:"w-3.5 shrink-0"}),"dir"===b.type?b.expanded?(0,Z.jsx)(an,{className:bR("h-4 w-4 shrink-0",N?.path!==b.path&&"text-warning")}):(0,Z.jsx)(am,{className:bR("h-4 w-4 shrink-0",N?.path!==b.path&&"text-warning")}):"app"===b.type?(0,Z.jsx)(ap,{className:bR("h-4 w-4 shrink-0",N?.path!==b.path&&"text-accent")}):"node-app"===b.type?(0,Z.jsx)(az,{className:bR("h-4 w-4 shrink-0",N?.path!==b.path&&"text-emerald-500")}):"html"===Gv(b.name,"file")?(0,Z.jsx)(ap,{className:bR("h-4 w-4 shrink-0",N?.path!==b.path&&"text-accent/70")}):Gz(b.name)?(0,Z.jsx)(aq,{className:bR("h-4 w-4 shrink-0",N?.path!==b.path&&"text-sunshine-700")}):Gx(b.name)?(0,Z.jsx)(al,{className:bR("h-4 w-4 shrink-0",N?.path!==b.path&&"text-accent")}):(0,Z.jsx)(aj,{className:bR("h-4 w-4 shrink-0",N?.path!==b.path&&"text-muted-foreground")}),(0,Z.jsx)("span",{className:"flex-1 truncate",children:b.name}),(0,Z.jsxs)("div",{className:"flex items-center gap-0.5 shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",onClick:a=>a.stopPropagation(),onKeyDown:a=>a.stopPropagation(),children:["dir"===b.type&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0 text-muted-foreground hover:text-foreground",title:"New file here (default .md)",onClick:async()=>{b.expanded||await aT(b),E(b.path),G(""),I(null)},children:(0,Z.jsx)(ak,{className:"h-3 w-3"})}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0 text-muted-foreground hover:text-foreground",title:"Upload here",onClick:()=>aY(b.path),children:(0,Z.jsx)(aB,{className:"h-3 w-3"})}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0 text-muted-foreground hover:text-foreground",title:"New subfolder",onClick:()=>{y(b.path),A(""),C(null)},children:(0,Z.jsx)(ao,{className:"h-3 w-3"})})]}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0 text-destructive hover:text-destructive",title:"Delete",onClick:()=>{K(b.path),M("file"!==b.type)},children:(0,Z.jsx)(aA,{className:"h-3 w-3"})})]})]}),x===b.path&&"dir"===b.type&&(0,Z.jsxs)("div",{className:"flex items-center gap-1.5 px-2 py-1",style:{paddingLeft:`${(c+1)*14+8}px`},children:[(0,Z.jsx)("span",{className:"w-3.5 shrink-0"}),(0,Z.jsx)(am,{className:"h-4 w-4 shrink-0 text-warning"}),(0,Z.jsx)("input",{className:"flex-1 bg-transparent text-sm outline-none border-b border-border min-w-0",placeholder:"Folder name",value:z,onChange:a=>A(a.target.value),onKeyDown:a=>{"Enter"===a.key&&aZ(),"Escape"===a.key&&(y(null),A(""))}}),B&&(0,Z.jsx)("span",{className:"text-xs text-destructive",children:B}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:aZ,children:(0,Z.jsx)(ag,{className:"h-3 w-3"})}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:()=>{y(null),A("")},children:(0,Z.jsx)(aC,{className:"h-3 w-3"})})]}),D===b.path&&"dir"===b.type&&(0,Z.jsxs)("div",{className:"flex items-center gap-1.5 px-2 py-1",style:{paddingLeft:`${(c+1)*14+8}px`},children:[(0,Z.jsx)("span",{className:"w-3.5 shrink-0"}),(0,Z.jsx)(al,{className:"h-4 w-4 shrink-0 text-accent"}),(0,Z.jsx)("input",{autoFocus:!0,className:"flex-1 bg-transparent text-sm outline-none border-b border-border min-w-0",placeholder:"filename (default .md)",value:F,onChange:a=>G(a.target.value),onKeyDown:a=>{"Enter"===a.key&&a$(),"Escape"===a.key&&(E(null),G(""))}}),H&&(0,Z.jsx)("span",{className:"text-xs text-destructive",children:H}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:a$,children:(0,Z.jsx)(ag,{className:"h-3 w-3"})}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:()=>{E(null),G("")},children:(0,Z.jsx)(aC,{className:"h-3 w-3"})})]}),("dir"===b.type||"app"===b.type)&&b.expanded&&b.children&&b.children.length>0&&a(b.children,c+1),("dir"===b.type||"app"===b.type)&&b.expanded&&b.children?.length===0&&(0,Z.jsx)("div",{className:"text-xs text-muted-foreground/50 py-0.5",style:{paddingLeft:`${(c+1)*14+8+14+6+16+6}px`},children:"Empty"})]},b.path))}(i)}),(0,Z.jsxs)("div",{className:"border-t px-3 py-2 flex items-center gap-2 bg-muted shrink-0",children:[(0,Z.jsx)("span",{className:"flex-1 text-xs text-muted-foreground font-mono truncate",title:d??"",children:d??""}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 shrink-0 text-xs px-2 text-muted-foreground hover:text-foreground",onClick:aV,children:"Change"})]})]}),(0,Z.jsxs)("div",{className:"flex-1 flex flex-col min-w-0 relative",children:[T&&(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 h-7 w-7 p-0 rounded-full bg-background/50 backdrop-blur-xl backdrop-saturate-150 border border-white/[0.08] text-foreground/60 hover:text-foreground/90 hover:bg-background/70 shadow-[0_0_12px_rgba(0,0,0,0.15)] [transform:translate(-50%,-50%)_translateZ(0)]",title:"Show sidebar",onClick:()=>U(!1),children:(0,Z.jsx)(au,{className:"h-3.5 w-3.5"})}),N?"node-app"===a2?(0,Z.jsx)(Ef,{path:N.path,title:N.name}):"app"===a2||"html"===a2?(a="html"===a2?`/api/assets/${N.path}`:void 0,P?(0,Z.jsx)(Eb,{path:N.path,title:N.name,src:a,fullscreen:!0,onExit:()=>Q(!1)}):(0,Z.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden min-w-0",children:[(0,Z.jsxs)("div",{className:"flex items-center justify-between px-4 py-2 border-b bg-muted shrink-0",children:[(0,Z.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,Z.jsx)(ap,{className:"h-4 w-4 shrink-0 text-accent"}),(0,Z.jsx)("span",{className:"text-sm font-normal truncate",title:N.path,children:N.path})]}),(0,Z.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:["html"===a2&&!ab&&null!==X&&(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",title:"Edit source",onClick:()=>{ac(!0),aD(X),aH(null)},children:(0,Z.jsx)(av,{className:"h-3.5 w-3.5"})}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",title:"Refresh",onClick:()=>S(a=>a+1),children:(0,Z.jsx)(ax,{className:"h-3.5 w-3.5"})}),(0,Z.jsxs)(bT,{size:"sm",variant:"ghost",className:"h-7 gap-1.5 text-xs",onClick:()=>Q(!0),children:[(0,Z.jsx)(as,{className:"h-3.5 w-3.5"}),"Open fullscreen"]}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",onClick:()=>{O(null),ac(!1)},children:(0,Z.jsx)(aC,{className:"h-3.5 w-3.5"})})]})]}),ab&&"html"===a2?(0,Z.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden min-h-0",children:[(0,Z.jsx)("textarea",{value:ad,onChange:a=>aD(a.target.value),spellCheck:!1,className:"flex-1 w-full min-h-0 resize-none bg-background text-foreground px-4 py-3 font-mono text-[13px] leading-relaxed outline-none border-0"}),(0,Z.jsxs)("div",{className:"border-t px-4 py-2 flex items-center justify-end gap-2 bg-muted shrink-0",children:[aG&&(0,Z.jsx)("span",{className:"text-xs text-destructive mr-auto",children:aG}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",onClick:()=>{ac(!1),aH(null)},children:"Cancel"}),(0,Z.jsxs)(bT,{size:"sm",className:"gap-1",onClick:aW,disabled:aE,children:[aE&&(0,Z.jsx)(ar,{className:"h-3 w-3 animate-spin"}),"Save"]})]})]}):(0,Z.jsx)(Eb,{path:N.path,title:N.name,src:a},R)]})):(0,Z.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden min-w-0",children:[(0,Z.jsxs)("div",{className:"flex items-center justify-between px-4 py-2 border-b bg-muted shrink-0",children:[(0,Z.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[Gz(N.name)?(0,Z.jsx)(aq,{className:"h-4 w-4 shrink-0 text-sunshine-700"}):Gx(N.name)?(0,Z.jsx)(al,{className:"h-4 w-4 shrink-0 text-accent"}):(0,Z.jsx)(aj,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),(0,Z.jsx)("span",{className:"text-sm font-normal truncate",title:N.path,children:N.path})]}),(0,Z.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[Gx(N.name)&&!ab&&null!==X&&(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",onClick:()=>{ac(!0),aD(X),aH(null),Gy(N.name)&&va.getState().loadPage(N.path)},children:(0,Z.jsx)(av,{className:"h-3.5 w-3.5"})}),Gx(N.name)&&!ab&&null!==X&&(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",title:"Refresh",onClick:aS,disabled:_,children:_?(0,Z.jsx)(ar,{className:"h-3.5 w-3.5 animate-spin"}):(0,Z.jsx)(ax,{className:"h-3.5 w-3.5"})}),a4&&(0,Z.jsx)(Gt,{}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",onClick:()=>{O(null),Y(null),ac(!1)},children:(0,Z.jsx)(aC,{className:"h-3.5 w-3.5"})})]})]}),ab?(0,Z.jsx)("div",{className:"flex-1 flex flex-col overflow-hidden min-h-0",children:Gy(N.name)?(0,Z.jsx)(C5,{}):(0,Z.jsx)("textarea",{value:ad,onChange:a=>aD(a.target.value),spellCheck:!1,className:"flex-1 w-full min-h-0 resize-none bg-background text-foreground px-4 py-3 font-mono text-[13px] leading-relaxed outline-none border-0"})}):(0,Z.jsx)("div",{className:"flex-1 overflow-auto p-4 min-h-0",children:(0,Z.jsx)("div",{className:bR("mx-auto w-full",a5),children:_?(0,Z.jsx)("div",{className:"flex justify-center py-8",children:(0,Z.jsx)(ar,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):"csv"===a2?(0,Z.jsx)(dM,{path:N.path,title:N.name}):"pdf"===a2?(0,Z.jsx)(D6,{path:N.path,title:N.name}):"mermaid"===a2?(0,Z.jsx)(De,{path:N.path,title:N.name}):"notebook"===a2?(0,Z.jsx)(D1,{path:N.path,title:N.name}):"image"===a2?(0,Z.jsx)(C7,{path:N.path,title:N.name}):"media"===a2?(0,Z.jsx)(C8,{path:N.path,title:N.name,type:["mp4","webm","mov","m4v"].includes(Gu(N.name))?"video":"audio"}):"docx"===a2?(0,Z.jsx)(D3,{path:N.path,title:N.name}):"xlsx"===a2?(0,Z.jsx)(D5,{path:N.path,title:N.name}):"pptx"===a2?(0,Z.jsx)(D4,{path:N.path,title:N.name}):"source"===a2?(0,Z.jsx)(Ea,{path:N.path,title:N.name}):"fallback"===a2?(0,Z.jsx)(C6,{path:N.path,title:N.name}):null!==X?["md","markdown"].includes(Gu(N.name))?(()=>{let{data:a,body:b}=function(a){let b=Ge.exec(a);if(!b)return{data:{},body:a};let c=b[1],d=a.slice(b[0].length),e=c.split(/\r?\n/).find(a=>""!==a.trim())??"";if(/^\s*(#{1,6}\s|<|>|-\s|\*\s|\d+\.\s)/.test(e))return{data:{},body:a};let f={},g=c.split(/\r?\n/),h=0;for(;h<g.length;){let a=g[h];if(!a||/^\s*#/.test(a)){h+=1;continue}let b=/^([A-Za-z_][\w-]*)\s*:\s*(.*)$/.exec(a);if(!b){h+=1;continue}let c=b[1],d=b[2];if(""===d.trim()){let a=[],b=h+1;for(;b<g.length&&/^\s+-\s+/.test(g[b]);){let c=/^\s+-\s+(.*)$/.exec(g[b]);c&&a.push(Gf(c[1])),b+=1}if(a.length>0){f[c]=a,h=b;continue}f[c]="",h+=1;continue}f[c]=Gf(d),h+=1}return 0===Object.keys(f).length?{data:{},body:a}:{data:f,body:d}}(X);return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Gc,{data:a}),(0,Z.jsx)(Gd,{markdown:b,pagePath:N.path,onNavigate:(a,b)=>{aU({path:a,name:a.split("/").pop()??a,type:"file"}),b&&setTimeout(()=>{document.getElementById(b)?.scrollIntoView({behavior:"smooth"})},200)}})]})})():(0,Z.jsx)("pre",{className:"text-xs font-mono whitespace-pre-wrap break-words leading-relaxed",children:X}):Gx(N.name)?(0,Z.jsx)("p",{className:"text-sm text-muted-foreground",children:"Could not load file."}):(0,Z.jsx)("p",{className:"text-sm text-muted-foreground",children:"Preview not available for this file type."})})}),ab&&(0,Z.jsxs)("div",{className:"border-t px-4 py-2 flex items-center justify-end gap-2 bg-muted shrink-0",children:[aG&&(0,Z.jsx)("span",{className:"text-xs text-destructive mr-auto",children:aG}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",onClick:()=>{ac(!1),aH(null)},children:"Cancel"}),(0,Z.jsxs)(bT,{size:"sm",className:"gap-1",onClick:aW,disabled:aE,children:[aE&&(0,Z.jsx)(ar,{className:"h-3 w-3 animate-spin"}),"Save"]})]})]}):(0,Z.jsx)("div",{className:"flex-1 flex flex-col items-center justify-center",children:(0,Z.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center px-4",children:[(0,Z.jsx)(al,{className:"h-8 w-8 text-muted-foreground"}),(0,Z.jsx)("p",{className:"text-sm text-muted-foreground",children:"Select a file to view or edit"})]})})]}),(0,Z.jsx)(F7,{open:V,onOpenChange:W}),(0,Z.jsx)(Gs,{currentPath:N?.path}),(0,Z.jsx)("input",{ref:v,type:"file",multiple:!0,className:"hidden",onChange:a=>{a.target.files&&aX(a.target.files,w.current)}}),(0,Z.jsx)(dF,{open:!!J,onOpenChange:a=>{a||K(null)},title:L?"Delete folder?":"Delete file?",description:L?`"${J?.split("/").pop()}" and all its contents will be permanently deleted.`:`"${J?.split("/").pop()}" will be permanently removed.`,onConfirm:a_})]})]})}],240777)}];
|
|
129
|
+
${b}/api/agent/files/${a??"<path/to/file.md>"}`;await navigator.clipboard.writeText(d),c(!0),setTimeout(()=>c(!1),1500)},[a])}}(a??null),[i,j]=(0,$.useState)(""),k=(0,$.useRef)(null),l="http://localhost:3000",m=(0,$.useCallback)(()=>Gq,[]),n=(0,$.useCallback)(()=>i.replace(/\$WIKI_URL/g,l),[i,l]),o=(0,$.useCallback)(()=>`npx wiki-viewer-mcp register --url ${l} --id ai:myagent --name "My Agent"`,[l]),p=(0,$.useCallback)(()=>JSON.stringify({servers:{"wiki-viewer":{command:"npx",args:["wiki-viewer-mcp"],env:{WIKI_VIEWER_URL:l,WIKI_VIEWER_TOKEN:"<token from register>",WIKI_VIEWER_AGENT_ID:"ai:myagent"}}}},null,2),[l]),q=Gr(m),r=Gr(n),s=Gr(o),t=Gr(p);return((0,$.useEffect)(()=>{if(b)return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a);function a(a){"Escape"===a.key&&c()}},[b,c]),(0,$.useEffect)(()=>{b&&k.current?.focus()},[b]),(0,$.useEffect)(()=>{if(!b)return;f();let a=setInterval(()=>void f(),1e4);return()=>clearInterval(a)},[b,f]),(0,$.useEffect)(()=>{b&&fetch("/api/agents/install").then(a=>a.json()).then(a=>{a.bootstrapPrompt&&j(a.bootstrapPrompt)}).catch(()=>void 0)},[b]),b)?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)("div",{className:"fixed inset-0 z-40 bg-black/20 backdrop-blur-[1px]",onClick:c,"aria-hidden":!0}),(0,Z.jsxs)("aside",{ref:k,tabIndex:-1,role:"dialog","aria-modal":"true","aria-label":"AI Agent Panel",className:"fixed right-0 top-0 bottom-0 z-50 flex w-80 flex-col border-l border-border bg-background shadow-xl outline-none",children:[(0,Z.jsxs)("div",{className:"flex items-center justify-between border-b border-border px-4 py-3 shrink-0",children:[(0,Z.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Z.jsx)(af,{className:"h-4 w-4 text-muted-foreground"}),(0,Z.jsx)("span",{className:"text-sm font-semibold",children:"AI Agent"})]}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",onClick:c,title:"Close panel (Esc)",children:(0,Z.jsx)(aC,{className:"h-3.5 w-3.5"})})]}),(0,Z.jsxs)("div",{className:"flex-1 overflow-y-auto space-y-5 px-4 py-4",children:[(0,Z.jsxs)("section",{className:"rounded-md border border-border bg-muted/30 p-3",children:[(0,Z.jsx)("p",{className:"text-sm font-medium text-foreground",children:"Work with this wiki using AI"}),(0,Z.jsxs)("p",{className:"mt-1 text-xs leading-relaxed text-muted-foreground",children:["Connect Claude, Cursor, ChatGPT, and more. Pick by what you want — each option gives a copy-paste setup. You approve every assistant in ",(0,Z.jsx)("span",{className:"font-medium text-foreground/80",children:"Agents"})," below before it gets access."]})]}),(0,Z.jsxs)("section",{className:"space-y-3",children:[(0,Z.jsxs)("div",{className:"rounded-md border border-border bg-muted/40 p-3 space-y-1.5",children:[(0,Z.jsx)("p",{className:"text-xs font-semibold text-foreground",children:"Co-write docs with you"}),(0,Z.jsx)("p",{className:"text-[10px] text-muted-foreground/70",children:"Edits arrive as suggestions with comments you accept or revert. No MCP needed."}),(0,Z.jsx)(bT,{size:"sm",variant:"outline",className:"h-7 w-full text-xs gap-1.5",onClick:()=>void r.copy(),disabled:!i,children:r.copied?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ag,{className:"h-3.5 w-3.5 text-green-500"})," Copied!"]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(C9,{className:"h-3.5 w-3.5"})," Paste into any chatbot"]})}),(0,Z.jsxs)("p",{className:"text-[10px] text-muted-foreground/50 pt-1",children:["Or install once so it sticks"," ",(0,Z.jsx)("span",{className:"text-muted-foreground/40",children:"· Claude, OpenCode"}),":"]}),(0,Z.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Z.jsx)("code",{className:"flex-1 text-[10px] font-mono text-foreground/80 truncate bg-muted rounded px-1 py-0.5",children:Gq}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0 shrink-0",title:"Copy this command",onClick:()=>void q.copy(),children:q.copied?(0,Z.jsx)(ag,{className:"h-3.5 w-3.5 text-green-500"}):(0,Z.jsx)(C9,{className:"h-3.5 w-3.5"})})]})]}),(0,Z.jsxs)("div",{className:"rounded-md border border-border bg-muted/40 p-3 space-y-1.5",children:[(0,Z.jsxs)("p",{className:"text-xs font-semibold text-foreground",children:["Edit files directly"," ",(0,Z.jsx)("span",{className:"font-normal text-muted-foreground/60",children:"· Claude Code, Cursor, Codex"})]}),(0,Z.jsx)("p",{className:"text-[10px] text-muted-foreground/70",children:"Native read / search / edit tools over MCP. Run to request access:"}),(0,Z.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Z.jsx)("code",{className:"flex-1 text-[10px] font-mono text-foreground/80 truncate bg-muted rounded px-1 py-0.5",children:o()}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0 shrink-0",title:"Copy this command",onClick:()=>void s.copy(),children:s.copied?(0,Z.jsx)(ag,{className:"h-3.5 w-3.5 text-green-500"}):(0,Z.jsx)(C9,{className:"h-3.5 w-3.5"})})]}),(0,Z.jsxs)("p",{className:"text-[10px] text-muted-foreground/50",children:["Approve in ",(0,Z.jsx)("span",{className:"font-medium text-foreground/70",children:"Agents"}),", then add to your tool:"]}),(0,Z.jsx)(bT,{size:"sm",variant:"outline",className:"h-7 w-full text-xs gap-1.5",onClick:()=>void t.copy(),children:t.copied?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(ag,{className:"h-3.5 w-3.5 text-green-500"})," Copied!"]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(C9,{className:"h-3.5 w-3.5"})," Copy config (mcp.json)"]})})]}),(0,Z.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1",children:[(0,Z.jsx)("span",{className:"text-[10px] text-muted-foreground/50",children:"For developers:"}),(0,Z.jsxs)("button",{type:"button",onClick:()=>void h(),className:"inline-flex items-center gap-1 text-[10px] text-primary hover:underline",children:[g?(0,Z.jsx)(ag,{className:"h-3 w-3 text-green-500"}):(0,Z.jsx)(C9,{className:"h-3 w-3"})," curl example"]}),(0,Z.jsxs)("a",{href:"/api/agents/skill",target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 text-[10px] text-primary hover:underline",children:[(0,Z.jsx)(wZ,{className:"h-3 w-3"})," skill"]}),(0,Z.jsxs)("a",{href:"/api/agents/install",target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 text-[10px] text-primary hover:underline",children:[(0,Z.jsx)(wZ,{className:"h-3 w-3"})," install JSON"]})]})]}),(0,Z.jsx)(Go,{}),(0,Z.jsxs)("section",{className:"space-y-2",children:[(0,Z.jsxs)("h3",{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground",children:["Active Connections"," ",(0,Z.jsx)("span",{className:"normal-case font-normal text-muted-foreground/50",children:"(last 5 min)"})]}),(0,Z.jsx)("div",{className:"rounded-md border border-border bg-muted/40 p-3",children:0===e.length?(0,Z.jsxs)("p",{className:"text-xs text-muted-foreground/60 flex items-center gap-1.5",children:[(0,Z.jsx)(Gg,{className:"h-3.5 w-3.5"}),"No recent activity"]}):(0,Z.jsx)("ul",{className:"space-y-1.5",children:e.map(a=>(0,Z.jsxs)("li",{className:"flex items-center justify-between text-xs",children:[(0,Z.jsx)("span",{className:"font-mono text-foreground/80 truncate",children:a.by}),(0,Z.jsxs)("span",{className:"text-muted-foreground shrink-0",children:[a.opCount," op",1!==a.opCount?"s":""]})]},a.by))})})]}),(0,Z.jsxs)("section",{className:"space-y-2",children:[(0,Z.jsx)("h3",{className:"text-xs font-semibold uppercase tracking-widest text-muted-foreground",children:"Recent Activity"}),(0,Z.jsx)("div",{className:"rounded-md border border-border bg-muted/40 px-3 py-1 max-h-72 overflow-y-auto",children:0===d.length?(0,Z.jsx)("p",{className:"text-xs text-muted-foreground/60 py-2",children:"No events recorded"}):d.map(a=>(0,Z.jsx)(Gp,{event:a},`${a.path}-${a.id}`))})]}),(0,Z.jsx)("section",{children:(0,Z.jsx)("a",{href:"/docs/agent-collab-plan.md",target:"_blank",rel:"noreferrer",className:"text-xs text-primary underline hover:no-underline",children:"Agent collaboration docs →"})})]})]})]}):null}function Gt({className:a}){let b=vg(a=>a.width),c=vg(a=>a.setWidth);return(0,Z.jsxs)(FJ,{children:[(0,Z.jsx)(FL,{asChild:!0,children:(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:`h-7 w-7 p-0 ${a??""}`,title:`Content width: ${ve[b]}`,children:(0,Z.jsx)(wM,{className:"h-3.5 w-3.5"})})}),(0,Z.jsx)(FY,{align:"end",className:"w-36",children:vf.map(a=>(0,Z.jsxs)(FZ,{onClick:()=>c(a),className:"flex items-center justify-between text-xs",children:[ve[a],a===b&&(0,Z.jsx)(ag,{className:"h-3.5 w-3.5"})]},a))})]})}function Gu(a){return a.split(".").pop()?.toLowerCase()??""}function Gv(a,b){if("node-app"===b)return"node-app";if("app"===b)return"app";if("dir"===b)return"fallback";let c=Gu(a);return c?["md","markdown"].includes(c)?"editor":"txt"===c?"text":["csv","tsv"].includes(c)?"csv":"pdf"===c?"pdf":["mmd","mermaid"].includes(c)?"mermaid":"ipynb"===c?"notebook":["png","jpg","jpeg","gif","webp","svg","avif","ico","bmp"].includes(c)?"image":["mp4","webm","mov","m4v","mp3","wav","ogg","m4a","aac"].includes(c)?"media":"docx"===c?"docx":["xlsx","xlsm"].includes(c)?"xlsx":"pptx"===c?"pptx":"html"===c?"html":["py","js","ts","tsx","jsx","go","rs","java","c","cpp","h","sh","bash","zsh","rb","php","swift","kt","lua","sql","yaml","yml","toml","json","xml","css","scss"].includes(c)?"source":"fallback":"fallback"}let Gw=new Set(["txt","md","markdown","json","yaml","yml","toml","csv","tsv","xml","html","css","js","ts","tsx","jsx","sh","bash","zsh","rb","py","go","rs","java","c","cpp","h","php","swift","kt","lua","sql","scss","mmd","mermaid","ini","env","log","conf"]);function Gx(a){let b=Gv(a,"file");return"editor"===b||"text"===b||Gw.has(Gu(a))}function Gy(a){return["md","markdown"].includes(Gu(a))}function Gz(a){return"image"===Gv(a,"file")}async function GA(a){let b=await fetch(`/api/wiki?dir=${encodeURIComponent(a)}`);return b.ok?(await b.json()).entries.map(b=>({name:b.name,path:a?`${a}/${b.name}`:b.name,type:b.type,size:b.size,modifiedAt:b.modifiedAt,expanded:!1})):[]}function GB(a,b,c){return a.map(a=>a.path===b?c(a):a.children?{...a,children:GB(a.children,b,c)}:a)}a.s(["default",0,function(){let a;vh(a=>a.loadedAt),(0,$.useEffect)(()=>{vh.getState().load()},[]);let[b,c]=(0,$.useState)(null),[d,e]=(0,$.useState)(null);(0,$.useEffect)(()=>{fetch("/api/system/root-status").then(a=>a.json()).then(a=>{c(a.configured),e(a.path)}).catch(()=>c(!1))},[]);let f=va(a=>a.currentPath),g=(0,$.useRef)(null),h=(0,$.useRef)(!1),[i,j]=(0,$.useState)([]),[k,l]=(0,$.useState)(!1),[m,n]=(0,$.useState)(!1),o=(0,$.useRef)(!1),[p,q]=(0,$.useState)(!1),[r,s]=(0,$.useState)(!1),[t,u]=(0,$.useState)(null),v=(0,$.useRef)(null),w=(0,$.useRef)(""),[x,y]=(0,$.useState)(null),[z,A]=(0,$.useState)(""),[B,C]=(0,$.useState)(null),[D,E]=(0,$.useState)(null),[F,G]=(0,$.useState)(""),[H,I]=(0,$.useState)(null),[J,K]=(0,$.useState)(null),[L,M]=(0,$.useState)(!1),[N,O]=(0,$.useState)(null),[P,Q]=(0,$.useState)(!1),[R,S]=(0,$.useState)(0),[T,U]=(0,$.useState)(!1),[V,W]=(0,$.useState)(!1),[X,Y]=(0,$.useState)(null),[_,aa]=(0,$.useState)(0),[ab,ac]=(0,$.useState)(!1),[ad,aD]=(0,$.useState)(!1),[aE,aF]=(0,$.useState)(""),[aG,aH]=(0,$.useState)(!1),[aI,aJ]=(0,$.useState)(null),aK=(0,$.useRef)(null),[aL,aM]=(0,$.useState)(null),aN=(0,$.useRef)(null),aO=(0,$.useRef)(!1),aP=(0,$.useRef)(async()=>{});(0,$.useEffect)(()=>{k||o.current||(o.current=!0,n(!0),GA("").then(a=>{j(a),l(!0),n(!1)}).catch(()=>{o.current=!1,n(!1)}))},[k]);let aQ=(0,$.useCallback)(async a=>{let b=a.split("/");if(b.length<=1)return;let c=[],d="";for(let a=0;a<b.length-1;a++)d=d?`${d}/${b[a]}`:b[a],c.push({prefix:d,children:await GA(d)});j(a=>{let b=a;for(let{prefix:a,children:d}of c)b=GB(b,a,a=>({...a,children:d,expanded:!0}));return b})},[]),aR=(0,$.useCallback)(async a=>{let b=await GA(a);""===a?j(a=>{let c=new Map(a.map(a=>[a.path,a]));return b.map(a=>{let b=c.get(a.path);return b&&("dir"===b.type||"app"===b.type)?{...a,expanded:b.expanded,children:b.children}:a})}):j(c=>GB(c,a,a=>({...a,children:b,expanded:!0})))},[]),aS=(0,$.useCallback)(a=>{let b=[];for(let c of a)("dir"===c.type||"app"===c.type)&&c.expanded&&c.children&&(b.push(c.path),b.push(...aS(c.children)));return b},[]),aT=(0,$.useCallback)(async()=>{q(!0);try{let a=aS(i),b=await GA("");for(let c of(j(b),a)){let a=await GA(c);j(b=>GB(b,c,b=>({...b,children:a,expanded:!0})))}}finally{q(!1)}},[i,aS]),aU=(0,$.useCallback)(async()=>{if(N&&(["editor","text"].includes(Gv(N.name,N.nodeType))||Gx(N.name))){ac(!0);try{let a=await fetch(`/api/wiki/content?path=${encodeURIComponent(N.path)}`);if(a.ok){let b=await a.json();Y(b.content),aa(Number(a.headers.get("X-Wiki-Revision")??0))}}catch{}ac(!1)}},[N]);async function aV(a){if("dir"===a.type||"app"===a.type)if(a.expanded)j(b=>GB(b,a.path,a=>({...a,expanded:!1})));else if(void 0===a.children){j(b=>GB(b,a.path,a=>({...a,loading:!0})));let b=await GA(a.path);j(c=>GB(c,a.path,a=>({...a,loading:!1,children:b,expanded:!0})))}else j(b=>GB(b,a.path,a=>({...a,expanded:!0})))}async function aW(a){if(O({path:a.path,name:a.name,nodeType:"app"===a.type?"app":"node-app"===a.type?"node-app":"file"}),aD(!1),aJ(null),Y(null),aa(0),["editor","text"].includes(Gv(a.name,a.type))||Gx(a.name)){ac(!0);try{let b=await fetch(`/api/wiki/content?path=${encodeURIComponent(a.path)}`);if(b.ok){let a=await b.json();Y(a.content),aa(Number(b.headers.get("X-Wiki-Revision")??0))}}catch{}ac(!1)}}(0,$.useEffect)(()=>{aN.current=N},[N]),(0,$.useEffect)(()=>{aO.current=ad},[ad]),(0,$.useEffect)(()=>{aP.current=aU},[aU]),(0,$.useEffect)(()=>{if(!b)return;let a=new Map,c=new EventSource("/api/wiki/watch");return c.onmessage=b=>{var c;let d;try{d=JSON.parse(b.data)}catch{return}let{type:e,path:f}=d,g=f.split("/");if(c=g.length>1?g.slice(0,-1).join("/"):"",a.has(c)&&clearTimeout(a.get(c)),a.set(c,setTimeout(()=>{a.delete(c),aR(c)},300)),"change"===e&&aN.current?.path===f&&!aO.current){let b=`__file__${f}`;a.has(b)&&clearTimeout(a.get(b)),a.set(b,setTimeout(()=>{a.delete(b),aP.current()},400))}},()=>{for(let b of(c.close(),a.values()))clearTimeout(b)}},[b,aR]),(0,$.useEffect)(()=>{Q(!1)},[]),(0,$.useEffect)(()=>{if(!f||N&&N.path===f)return;let a=f.split("/").pop()??f;aW({path:f,name:a,type:"file"})},[f]),(0,$.useEffect)(()=>{},[N]),(0,$.useEffect)(()=>{if(h.current||!k)return;let a=g.current;if(!a){h.current=!0;return}h.current=!0,(async()=>{let b=a.split("/"),c=b[b.length-1],d=b.slice(0,-1).join("/"),e=(await GA(d)).find(b=>b.path===a);e&&(await aQ(a),aW({path:a,name:c,type:e.type,modifiedAt:e.modifiedAt}))})()},[k,aQ]);let aX=async()=>{await fetch("/api/system/clear-root",{method:"POST"}),O(null),Y(null),aD(!1),j([]),l(!1),o.current=!1,e(null),c(!1)};async function aY(){if(!N)return;aH(!0),aJ(null);let a=await fetch("/api/wiki/content",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:N.path,content:aE,baseRevision:_})});if(a.ok){let b=await a.json();"number"==typeof b.revision&&aa(b.revision),Y(aE),aD(!1)}else aJ((await a.json()).error??"Save failed");aH(!1)}let aZ=(0,$.useCallback)(async(a,b)=>{let c=Array.from(a);if(c.length){s(!0),u(null);try{for(let a of c){let c=new FormData;c.append("file",a),c.append("dir",b);let d=await fetch("/api/wiki/upload",{method:"POST",body:c});if(!d.ok){let a=await d.json();u(a.error??"Upload failed"),CZ(a.error??"Upload failed");break}}await aR(b)}catch{u("Upload failed.")}finally{s(!1),v.current&&(v.current.value="")}}},[aR]);function a$(a){w.current=a,v.current?.click()}async function a_(){let a=z.trim();if(!a||null===x)return;C(null);let b=x?`${x}/${a}`:a,c=await fetch("/api/wiki/folder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:b})});c.ok?(y(null),A(""),await aR(x),""!==x&&j(a=>GB(a,x,a=>({...a,expanded:!0})))):C((await c.json()).error??"Failed")}async function a0(){let a=F.trim();if(!a||null===D)return;I(null);let b=a.includes(".")?a:`${a}.md`,c=D?`${D}/${b}`:b,d=await fetch("/api/wiki/new-file",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:c})});d.ok?(E(null),G(""),await aR(D),""!==D&&j(a=>GB(a,D,a=>({...a,expanded:!0}))),aW({path:c,name:b,type:"file",modifiedAt:new Date().toISOString()})):I((await d.json()).error??"Failed")}async function a1(){J&&(await fetch("/api/wiki",{method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:J})}),(N?.path===J||N?.path.startsWith(`${J}/`))&&(O(null),Y(null)),j(a=>(function a(b,c){return b.filter(a=>a.path!==c).map(b=>b.children?{...b,children:a(b.children,c)}:b)})(a,J)),K(null))}function a2(a,b,c){a.preventDefault(),a.stopPropagation();let d=aK.current;!d||d.path===b||b.startsWith(`${d.path}/`)||(a.dataTransfer.dropEffect="move",aM("root"===c?"":b))}async function a3(a,b){a.preventDefault(),a.stopPropagation(),aM(null);let c=aK.current;if(aK.current=null,!c||c.path===b||b.startsWith(`${c.path}/`))return;let d=b?`${b}/${c.name}`:c.name;if(d!==c.path&&(await fetch("/api/wiki/move",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({from:c.path,to:d})})).ok){let a=c.path.includes("/")?c.path.split("/").slice(0,-1).join("/"):"";await aR(a),b!==a&&await aR(b),N?.path===c.path&&O({path:d,name:c.name,nodeType:N.nodeType})}}let a4=N?Gv(N.name,N.nodeType):null,a5=vg(a=>a.width),a6=null===a4||"editor"===a4||"text"===a4||"source"===a4||"notebook"===a4||"fallback"===a4,a7=a6?vc[a5]:"";return(0,Z.jsxs)("div",{className:"flex h-screen gap-0 overflow-hidden bg-background",children:[null===b&&(0,Z.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,Z.jsx)(ar,{className:"h-5 w-5 animate-spin text-muted-foreground"})}),!1===b&&(0,Z.jsx)(Ek,{onSelect:a=>{l(!1),o.current=!1,e(a),c(!0)}}),!0===b&&(0,Z.jsxs)(Z.Fragment,{children:[!T&&(0,Z.jsxs)(F8,{className:"flex flex-col w-72 shrink-0 overflow-hidden rounded-none border-r border-l-0 border-t-0 border-b-0",children:[(0,Z.jsxs)("div",{className:"flex items-center justify-between gap-2 px-3 py-2 border-b bg-muted shrink-0",children:[(0,Z.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5",children:[(0,Z.jsx)("img",{src:"/logo.svg",alt:"Wiki Viewer",className:"h-5 w-5 shrink-0"}),(0,Z.jsx)("span",{className:"truncate text-xs font-semibold tracking-tight",children:"Wiki Viewer"})]}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0 shrink-0",title:"Collapse sidebar",onClick:()=>U(!0),children:(0,Z.jsx)(at,{className:"h-3.5 w-3.5"})})]}),(0,Z.jsxs)("div",{className:"flex items-center justify-between gap-1 px-3 py-1.5 border-b bg-muted/50 shrink-0",children:[(0,Z.jsxs)(FJ,{children:[(0,Z.jsx)(FL,{asChild:!0,children:(0,Z.jsxs)(bT,{size:"sm",variant:"ghost",className:"h-7 gap-1 px-2 text-xs",disabled:r,children:[r?(0,Z.jsx)(ar,{className:"h-3.5 w-3.5 animate-spin"}):(0,Z.jsx)(aw,{className:"h-3.5 w-3.5"}),"New",(0,Z.jsx)(ah,{className:"h-3 w-3 opacity-60"})]})}),(0,Z.jsxs)(FY,{align:"start",className:"w-44",children:[(0,Z.jsxs)(FZ,{onClick:()=>{E(""),G(""),I(null)},children:[(0,Z.jsx)(ak,{className:"mr-2 h-3.5 w-3.5"}),"New file"]}),(0,Z.jsxs)(FZ,{onClick:()=>{y(""),A(""),C(null)},children:[(0,Z.jsx)(ao,{className:"mr-2 h-3.5 w-3.5"}),"New folder"]}),(0,Z.jsxs)(FZ,{onClick:()=>a$(""),disabled:r,children:[(0,Z.jsx)(aB,{className:"mr-2 h-3.5 w-3.5"}),"Upload"]})]})]}),(0,Z.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",title:"Refresh tree",onClick:aT,disabled:p,children:p?(0,Z.jsx)(ar,{className:"h-3.5 w-3.5 animate-spin"}):(0,Z.jsx)(ax,{className:"h-3.5 w-3.5"})}),(0,Z.jsx)(F1,{}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",title:"AI Agent panel",onClick:()=>u1.getState().toggle(),children:(0,Z.jsx)(af,{className:"h-3.5 w-3.5"})}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",title:"Settings",onClick:()=>W(!0),children:(0,Z.jsx)(ay,{className:"h-3.5 w-3.5"})})]})]}),t&&(0,Z.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-1.5 text-xs text-destructive bg-destructive/10 shrink-0",children:[(0,Z.jsx)(ae,{className:"h-3.5 w-3.5 shrink-0"}),t]}),""===x&&(0,Z.jsxs)("div",{className:"flex items-center gap-1.5 px-2 py-1 border-b shrink-0",children:[(0,Z.jsx)(am,{className:"h-4 w-4 shrink-0 text-warning"}),(0,Z.jsx)("input",{className:"flex-1 bg-transparent text-sm outline-none border-b border-border min-w-0",placeholder:"Folder name",value:z,onChange:a=>A(a.target.value),onKeyDown:a=>{"Enter"===a.key&&a_(),"Escape"===a.key&&(y(null),A(""))}}),B&&(0,Z.jsx)("span",{className:"text-xs text-destructive",children:B}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:a_,children:(0,Z.jsx)(ag,{className:"h-3 w-3"})}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:()=>{y(null),A("")},children:(0,Z.jsx)(aC,{className:"h-3 w-3"})})]}),""===D&&(0,Z.jsxs)("div",{className:"flex items-center gap-1.5 px-2 py-1 border-b shrink-0",children:[(0,Z.jsx)(al,{className:"h-4 w-4 shrink-0 text-accent"}),(0,Z.jsx)("input",{autoFocus:!0,className:"flex-1 bg-transparent text-sm outline-none border-b border-border min-w-0",placeholder:"filename (default .md)",value:F,onChange:a=>G(a.target.value),onKeyDown:a=>{"Enter"===a.key&&a0(),"Escape"===a.key&&(E(null),G(""))}}),H&&(0,Z.jsx)("span",{className:"text-xs text-destructive",children:H}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:a0,children:(0,Z.jsx)(ag,{className:"h-3 w-3"})}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:()=>{E(null),G("")},children:(0,Z.jsx)(aC,{className:"h-3 w-3"})})]}),(0,Z.jsx)("div",{className:bR("flex-1 overflow-auto py-1",""===aL&&"ring-2 ring-inset ring-primary bg-primary/5"),onDragOver:a=>a2(a,"","root"),onDragLeave:a=>{a.currentTarget.contains(a.relatedTarget)||aM(null)},onDrop:a=>a3(a,""),children:m?(0,Z.jsx)("div",{className:"flex justify-center py-6",children:(0,Z.jsx)(ar,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):0===i.length?(0,Z.jsxs)("div",{className:"flex flex-col items-center gap-3 px-4 py-8 text-center",children:[(0,Z.jsx)("div",{className:"rounded-full bg-muted p-3",children:(0,Z.jsx)(al,{className:"h-6 w-6 text-muted-foreground"})}),(0,Z.jsxs)("div",{className:"space-y-1",children:[(0,Z.jsx)("p",{className:"text-sm font-medium",children:"No files yet"}),(0,Z.jsx)("p",{className:"text-xs text-muted-foreground",children:"Upload files or add them to the configured directory"})]}),(0,Z.jsxs)(bT,{size:"sm",variant:"outline",className:"w-full gap-1.5 max-w-[180px]",onClick:()=>a$(""),disabled:r,children:[r?(0,Z.jsx)(ar,{className:"h-3.5 w-3.5 animate-spin"}):(0,Z.jsx)(aB,{className:"h-3.5 w-3.5"}),"Upload Files"]})]}):function a(b,c=0){return b.map(b=>(0,Z.jsxs)("div",{children:[(0,Z.jsxs)("div",{role:"treeitem",tabIndex:0,draggable:!0,onKeyDown:a=>{("Enter"===a.key||" "===a.key)&&(a.preventDefault(),"dir"===b.type?aV(b):"app"===b.type?(aW(b),aV(b)):aW(b))},onDragStart:a=>{aK.current=b,a.dataTransfer.effectAllowed="move",a.dataTransfer.setData("text/plain",b.path)},onDragOver:a=>"dir"===b.type?a2(a,b.path,"dir"):a.preventDefault(),onDragLeave:()=>aM(null),onDrop:a=>"dir"===b.type?a3(a,b.path):a.preventDefault(),className:bR("flex items-center gap-1.5 rounded-sm px-2 py-1 text-sm cursor-pointer group transition-colors select-none",N?.path===b.path?"bg-accent text-accent-foreground":"hover:bg-accent/50",aL===b.path&&"ring-2 ring-primary bg-primary-soft",b.name.startsWith(".")&&"opacity-40"),style:{paddingLeft:`${14*c+8}px`},onClick:()=>{"dir"===b.type?aV(b):"app"===b.type?(aW(b),aV(b)):aW(b)},children:["dir"===b.type||"app"===b.type?b.loading?(0,Z.jsx)(ar,{className:"h-3.5 w-3.5 shrink-0 animate-spin text-muted-foreground"}):b.expanded?(0,Z.jsx)(ah,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}):(0,Z.jsx)(ai,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}):(0,Z.jsx)("span",{className:"w-3.5 shrink-0"}),"dir"===b.type?b.expanded?(0,Z.jsx)(an,{className:bR("h-4 w-4 shrink-0",N?.path!==b.path&&"text-warning")}):(0,Z.jsx)(am,{className:bR("h-4 w-4 shrink-0",N?.path!==b.path&&"text-warning")}):"app"===b.type?(0,Z.jsx)(ap,{className:bR("h-4 w-4 shrink-0",N?.path!==b.path&&"text-accent")}):"node-app"===b.type?(0,Z.jsx)(az,{className:bR("h-4 w-4 shrink-0",N?.path!==b.path&&"text-emerald-500")}):"html"===Gv(b.name,"file")?(0,Z.jsx)(ap,{className:bR("h-4 w-4 shrink-0",N?.path!==b.path&&"text-accent/70")}):Gz(b.name)?(0,Z.jsx)(aq,{className:bR("h-4 w-4 shrink-0",N?.path!==b.path&&"text-sunshine-700")}):Gx(b.name)?(0,Z.jsx)(al,{className:bR("h-4 w-4 shrink-0",N?.path!==b.path&&"text-accent")}):(0,Z.jsx)(aj,{className:bR("h-4 w-4 shrink-0",N?.path!==b.path&&"text-muted-foreground")}),(0,Z.jsx)("span",{className:"flex-1 truncate",children:b.name}),(0,Z.jsxs)("div",{className:"flex items-center gap-0.5 shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",onClick:a=>a.stopPropagation(),onKeyDown:a=>a.stopPropagation(),children:["dir"===b.type&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0 text-muted-foreground hover:text-foreground",title:"New file here (default .md)",onClick:async()=>{b.expanded||await aV(b),E(b.path),G(""),I(null)},children:(0,Z.jsx)(ak,{className:"h-3 w-3"})}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0 text-muted-foreground hover:text-foreground",title:"Upload here",onClick:()=>a$(b.path),children:(0,Z.jsx)(aB,{className:"h-3 w-3"})}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0 text-muted-foreground hover:text-foreground",title:"New subfolder",onClick:()=>{y(b.path),A(""),C(null)},children:(0,Z.jsx)(ao,{className:"h-3 w-3"})})]}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0 text-destructive hover:text-destructive",title:"Delete",onClick:()=>{K(b.path),M("file"!==b.type)},children:(0,Z.jsx)(aA,{className:"h-3 w-3"})})]})]}),x===b.path&&"dir"===b.type&&(0,Z.jsxs)("div",{className:"flex items-center gap-1.5 px-2 py-1",style:{paddingLeft:`${(c+1)*14+8}px`},children:[(0,Z.jsx)("span",{className:"w-3.5 shrink-0"}),(0,Z.jsx)(am,{className:"h-4 w-4 shrink-0 text-warning"}),(0,Z.jsx)("input",{className:"flex-1 bg-transparent text-sm outline-none border-b border-border min-w-0",placeholder:"Folder name",value:z,onChange:a=>A(a.target.value),onKeyDown:a=>{"Enter"===a.key&&a_(),"Escape"===a.key&&(y(null),A(""))}}),B&&(0,Z.jsx)("span",{className:"text-xs text-destructive",children:B}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:a_,children:(0,Z.jsx)(ag,{className:"h-3 w-3"})}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:()=>{y(null),A("")},children:(0,Z.jsx)(aC,{className:"h-3 w-3"})})]}),D===b.path&&"dir"===b.type&&(0,Z.jsxs)("div",{className:"flex items-center gap-1.5 px-2 py-1",style:{paddingLeft:`${(c+1)*14+8}px`},children:[(0,Z.jsx)("span",{className:"w-3.5 shrink-0"}),(0,Z.jsx)(al,{className:"h-4 w-4 shrink-0 text-accent"}),(0,Z.jsx)("input",{autoFocus:!0,className:"flex-1 bg-transparent text-sm outline-none border-b border-border min-w-0",placeholder:"filename (default .md)",value:F,onChange:a=>G(a.target.value),onKeyDown:a=>{"Enter"===a.key&&a0(),"Escape"===a.key&&(E(null),G(""))}}),H&&(0,Z.jsx)("span",{className:"text-xs text-destructive",children:H}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:a0,children:(0,Z.jsx)(ag,{className:"h-3 w-3"})}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 w-6 p-0",onClick:()=>{E(null),G("")},children:(0,Z.jsx)(aC,{className:"h-3 w-3"})})]}),("dir"===b.type||"app"===b.type)&&b.expanded&&b.children&&b.children.length>0&&a(b.children,c+1),("dir"===b.type||"app"===b.type)&&b.expanded&&b.children?.length===0&&(0,Z.jsx)("div",{className:"text-xs text-muted-foreground/50 py-0.5",style:{paddingLeft:`${(c+1)*14+8+14+6+16+6}px`},children:"Empty"})]},b.path))}(i)}),(0,Z.jsxs)("div",{className:"border-t px-3 py-2 flex items-center gap-2 bg-muted shrink-0",children:[(0,Z.jsx)("span",{className:"flex-1 text-xs text-muted-foreground font-mono truncate",title:d??"",children:d??""}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-6 shrink-0 text-xs px-2 text-muted-foreground hover:text-foreground",onClick:aX,children:"Change"})]})]}),(0,Z.jsxs)("div",{className:"flex-1 flex flex-col min-w-0 relative",children:[T&&(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"absolute left-0 top-1/2 -translate-y-1/2 z-10 h-7 w-7 p-0 rounded-full bg-background/50 backdrop-blur-xl backdrop-saturate-150 border border-white/[0.08] text-foreground/60 hover:text-foreground/90 hover:bg-background/70 shadow-[0_0_12px_rgba(0,0,0,0.15)] [transform:translate(-50%,-50%)_translateZ(0)]",title:"Show sidebar",onClick:()=>U(!1),children:(0,Z.jsx)(au,{className:"h-3.5 w-3.5"})}),N?"node-app"===a4?(0,Z.jsx)(Ef,{path:N.path,title:N.name}):"app"===a4||"html"===a4?(a="html"===a4?`/api/assets/${N.path}`:void 0,P?(0,Z.jsx)(Eb,{path:N.path,title:N.name,src:a,fullscreen:!0,onExit:()=>Q(!1)}):(0,Z.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden min-w-0",children:[(0,Z.jsxs)("div",{className:"flex items-center justify-between px-4 py-2 border-b bg-muted shrink-0",children:[(0,Z.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,Z.jsx)(ap,{className:"h-4 w-4 shrink-0 text-accent"}),(0,Z.jsx)("span",{className:"text-sm font-normal truncate",title:N.path,children:N.path})]}),(0,Z.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:["html"===a4&&!ad&&null!==X&&(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",title:"Edit source",onClick:()=>{aD(!0),aF(X),aJ(null)},children:(0,Z.jsx)(av,{className:"h-3.5 w-3.5"})}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",title:"Refresh",onClick:()=>S(a=>a+1),children:(0,Z.jsx)(ax,{className:"h-3.5 w-3.5"})}),(0,Z.jsxs)(bT,{size:"sm",variant:"ghost",className:"h-7 gap-1.5 text-xs",onClick:()=>Q(!0),children:[(0,Z.jsx)(as,{className:"h-3.5 w-3.5"}),"Open fullscreen"]}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",onClick:()=>{O(null),aD(!1)},children:(0,Z.jsx)(aC,{className:"h-3.5 w-3.5"})})]})]}),ad&&"html"===a4?(0,Z.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden min-h-0",children:[(0,Z.jsx)("textarea",{value:aE,onChange:a=>aF(a.target.value),spellCheck:!1,className:"flex-1 w-full min-h-0 resize-none bg-background text-foreground px-4 py-3 font-mono text-[13px] leading-relaxed outline-none border-0"}),(0,Z.jsxs)("div",{className:"border-t px-4 py-2 flex items-center justify-end gap-2 bg-muted shrink-0",children:[aI&&(0,Z.jsx)("span",{className:"text-xs text-destructive mr-auto",children:aI}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",onClick:()=>{aD(!1),aJ(null)},children:"Cancel"}),(0,Z.jsxs)(bT,{size:"sm",className:"gap-1",onClick:aY,disabled:aG,children:[aG&&(0,Z.jsx)(ar,{className:"h-3 w-3 animate-spin"}),"Save"]})]})]}):(0,Z.jsx)(Eb,{path:N.path,title:N.name,src:a},R)]})):(0,Z.jsxs)("div",{className:"flex-1 flex flex-col overflow-hidden min-w-0",children:[(0,Z.jsxs)("div",{className:"flex items-center justify-between px-4 py-2 border-b bg-muted shrink-0",children:[(0,Z.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[Gz(N.name)?(0,Z.jsx)(aq,{className:"h-4 w-4 shrink-0 text-sunshine-700"}):Gx(N.name)?(0,Z.jsx)(al,{className:"h-4 w-4 shrink-0 text-accent"}):(0,Z.jsx)(aj,{className:"h-4 w-4 shrink-0 text-muted-foreground"}),(0,Z.jsx)("span",{className:"text-sm font-normal truncate",title:N.path,children:N.path})]}),(0,Z.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[Gx(N.name)&&!ad&&null!==X&&(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",onClick:()=>{aD(!0),aF(X),aJ(null),Gy(N.name)&&va.getState().loadPage(N.path)},children:(0,Z.jsx)(av,{className:"h-3.5 w-3.5"})}),Gx(N.name)&&!ad&&null!==X&&(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",title:"Refresh",onClick:aU,disabled:ab,children:ab?(0,Z.jsx)(ar,{className:"h-3.5 w-3.5 animate-spin"}):(0,Z.jsx)(ax,{className:"h-3.5 w-3.5"})}),a6&&(0,Z.jsx)(Gt,{}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0",onClick:()=>{O(null),Y(null),aD(!1)},children:(0,Z.jsx)(aC,{className:"h-3.5 w-3.5"})})]})]}),ad?(0,Z.jsx)("div",{className:"flex-1 flex flex-col overflow-hidden min-h-0",children:Gy(N.name)?(0,Z.jsx)(C5,{}):(0,Z.jsx)("textarea",{value:aE,onChange:a=>aF(a.target.value),spellCheck:!1,className:"flex-1 w-full min-h-0 resize-none bg-background text-foreground px-4 py-3 font-mono text-[13px] leading-relaxed outline-none border-0"})}):(0,Z.jsx)("div",{className:"flex-1 overflow-auto p-4 min-h-0",children:(0,Z.jsx)("div",{className:bR("mx-auto w-full",a7),children:ab?(0,Z.jsx)("div",{className:"flex justify-center py-8",children:(0,Z.jsx)(ar,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):"csv"===a4?(0,Z.jsx)(dM,{path:N.path,title:N.name}):"pdf"===a4?(0,Z.jsx)(D6,{path:N.path,title:N.name}):"mermaid"===a4?(0,Z.jsx)(De,{path:N.path,title:N.name}):"notebook"===a4?(0,Z.jsx)(D1,{path:N.path,title:N.name}):"image"===a4?(0,Z.jsx)(C7,{path:N.path,title:N.name}):"media"===a4?(0,Z.jsx)(C8,{path:N.path,title:N.name,type:["mp4","webm","mov","m4v"].includes(Gu(N.name))?"video":"audio"}):"docx"===a4?(0,Z.jsx)(D3,{path:N.path,title:N.name}):"xlsx"===a4?(0,Z.jsx)(D5,{path:N.path,title:N.name}):"pptx"===a4?(0,Z.jsx)(D4,{path:N.path,title:N.name}):"source"===a4?(0,Z.jsx)(Ea,{path:N.path,title:N.name}):"fallback"===a4?(0,Z.jsx)(C6,{path:N.path,title:N.name}):null!==X?["md","markdown"].includes(Gu(N.name))?(()=>{let{data:a,body:b}=function(a){let b=Ge.exec(a);if(!b)return{data:{},body:a};let c=b[1],d=a.slice(b[0].length),e=c.split(/\r?\n/).find(a=>""!==a.trim())??"";if(/^\s*(#{1,6}\s|<|>|-\s|\*\s|\d+\.\s)/.test(e))return{data:{},body:a};let f={},g=c.split(/\r?\n/),h=0;for(;h<g.length;){let a=g[h];if(!a||/^\s*#/.test(a)){h+=1;continue}let b=/^([A-Za-z_][\w-]*)\s*:\s*(.*)$/.exec(a);if(!b){h+=1;continue}let c=b[1],d=b[2];if(""===d.trim()){let a=[],b=h+1;for(;b<g.length&&/^\s+-\s+/.test(g[b]);){let c=/^\s+-\s+(.*)$/.exec(g[b]);c&&a.push(Gf(c[1])),b+=1}if(a.length>0){f[c]=a,h=b;continue}f[c]="",h+=1;continue}f[c]=Gf(d),h+=1}return 0===Object.keys(f).length?{data:{},body:a}:{data:f,body:d}}(X);return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Gc,{data:a}),(0,Z.jsx)(Gd,{markdown:b,pagePath:N.path,onNavigate:(a,b)=>{aW({path:a,name:a.split("/").pop()??a,type:"file"}),b&&setTimeout(()=>{document.getElementById(b)?.scrollIntoView({behavior:"smooth"})},200)}})]})})():(0,Z.jsx)("pre",{className:"text-xs font-mono whitespace-pre-wrap break-words leading-relaxed",children:X}):Gx(N.name)?(0,Z.jsx)("p",{className:"text-sm text-muted-foreground",children:"Could not load file."}):(0,Z.jsx)("p",{className:"text-sm text-muted-foreground",children:"Preview not available for this file type."})})}),ad&&(0,Z.jsxs)("div",{className:"border-t px-4 py-2 flex items-center justify-end gap-2 bg-muted shrink-0",children:[aI&&(0,Z.jsx)("span",{className:"text-xs text-destructive mr-auto",children:aI}),(0,Z.jsx)(bT,{size:"sm",variant:"ghost",onClick:()=>{aD(!1),aJ(null)},children:"Cancel"}),(0,Z.jsxs)(bT,{size:"sm",className:"gap-1",onClick:aY,disabled:aG,children:[aG&&(0,Z.jsx)(ar,{className:"h-3 w-3 animate-spin"}),"Save"]})]})]}):(0,Z.jsx)("div",{className:"flex-1 flex flex-col items-center justify-center",children:(0,Z.jsxs)("div",{className:"flex flex-col items-center gap-2 text-center px-4",children:[(0,Z.jsx)(al,{className:"h-8 w-8 text-muted-foreground"}),(0,Z.jsx)("p",{className:"text-sm text-muted-foreground",children:"Select a file to view or edit"})]})})]}),(0,Z.jsx)(F7,{open:V,onOpenChange:W}),(0,Z.jsx)(Gs,{currentPath:N?.path}),(0,Z.jsx)("input",{ref:v,type:"file",multiple:!0,className:"hidden",onChange:a=>{a.target.files&&aZ(a.target.files,w.current)}}),(0,Z.jsx)(dF,{open:!!J,onOpenChange:a=>{a||K(null)},title:L?"Delete folder?":"Delete file?",description:L?`"${J?.split("/").pop()}" and all its contents will be permanently deleted.`:`"${J?.split("/").pop()}" will be permanently removed.`,onConfirm:a1})]})]})}],240777)}];
|
|
130
130
|
|
|
131
131
|
//# sourceMappingURL=_0pqaawz._.js.map
|
|
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
|
|
|
7
7
|
"static/chunks/03~yq9q893hmn.js"
|
|
8
8
|
],
|
|
9
9
|
"lowPriorityFiles": [
|
|
10
|
-
"static/
|
|
11
|
-
"static/
|
|
12
|
-
"static/
|
|
10
|
+
"static/HeeYGbBsAF0r0T0mY60Mo/_buildManifest.js",
|
|
11
|
+
"static/HeeYGbBsAF0r0T0mY60Mo/_ssgManifest.js",
|
|
12
|
+
"static/HeeYGbBsAF0r0T0mY60Mo/_clientMiddlewareManifest.js"
|
|
13
13
|
],
|
|
14
14
|
"rootMainFiles": [
|
|
15
15
|
"static/chunks/0ocp.6r7w_saw.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"wasm": [],
|
|
20
20
|
"assets": [],
|
|
21
21
|
"env": {
|
|
22
|
-
"__NEXT_BUILD_ID": "
|
|
22
|
+
"__NEXT_BUILD_ID": "HeeYGbBsAF0r0T0mY60Mo",
|
|
23
23
|
"NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "NcGn5SQpKinlZ1d9pLXwpVxgOVVdrInnv6gSBBFXNOY=",
|
|
24
24
|
"__NEXT_PREVIEW_MODE_ID": "265348ee7aa5e22ff739219da2595788",
|
|
25
25
|
"__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "b417057af2e579d4a03c546a91ff1475e0309da41087777a34f7400e5a68ead5",
|