markshelf 0.1.3 → 0.1.4
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/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +2 -2
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
- 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 +2 -2
- 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 +2 -2
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +3 -3
- package/.next/standalone/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/chunks/ssr/[root-of-the-server]__09qrkq5._.js +1 -1
- package/.next/standalone/.next/server/middleware-build-manifest.js +3 -3
- 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/{00.xwfz0gk8.7.css → 04x.fjh8sw0s1.css} +1 -1
- package/.next/{static/chunks/0rozoj9pfglno.js → standalone/.next/static/chunks/0z_707.y37o2..js} +4 -4
- package/.next/standalone/package.json +1 -1
- package/.next/standalone/src/components/LinkGraph.tsx +69 -13
- package/.next/standalone/tsconfig.tsbuildinfo +1 -1
- package/.next/static/chunks/{00.xwfz0gk8.7.css → 04x.fjh8sw0s1.css} +1 -1
- package/.next/{standalone/.next/static/chunks/0rozoj9pfglno.js → static/chunks/0z_707.y37o2..js} +4 -4
- package/package.json +1 -1
- /package/.next/standalone/.next/static/{eGdxHn4o2ccaRraueWazx → JkyieJgBB2eU8MtnlBGvG}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{eGdxHn4o2ccaRraueWazx → JkyieJgBB2eU8MtnlBGvG}/_clientMiddlewareManifest.js +0 -0
- /package/.next/standalone/.next/static/{eGdxHn4o2ccaRraueWazx → JkyieJgBB2eU8MtnlBGvG}/_ssgManifest.js +0 -0
- /package/.next/static/{eGdxHn4o2ccaRraueWazx → JkyieJgBB2eU8MtnlBGvG}/_buildManifest.js +0 -0
- /package/.next/static/{eGdxHn4o2ccaRraueWazx → JkyieJgBB2eU8MtnlBGvG}/_clientMiddlewareManifest.js +0 -0
- /package/.next/static/{eGdxHn4o2ccaRraueWazx → JkyieJgBB2eU8MtnlBGvG}/_ssgManifest.js +0 -0
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
2:I[39756,["/_next/static/chunks/08zok6.5_1m~9.js"],"default"]
|
|
3
3
|
3:I[37457,["/_next/static/chunks/08zok6.5_1m~9.js"],"default"]
|
|
4
4
|
4:I[47257,["/_next/static/chunks/08zok6.5_1m~9.js"],"ClientPageRoot"]
|
|
5
|
-
5:I[52683,["/_next/static/chunks/08zok6.5_1m~9.js","/_next/static/chunks/0dow.lekjpmyp.js","/_next/static/chunks/07.05twov8012.js","/_next/static/chunks/0e1gsufr5shdc.js","/_next/static/chunks/0pqew2nbfoy2f.js","/_next/static/chunks/0fekzj03ltn5y.js","/_next/static/chunks/
|
|
5
|
+
5:I[52683,["/_next/static/chunks/08zok6.5_1m~9.js","/_next/static/chunks/0dow.lekjpmyp.js","/_next/static/chunks/07.05twov8012.js","/_next/static/chunks/0e1gsufr5shdc.js","/_next/static/chunks/0pqew2nbfoy2f.js","/_next/static/chunks/0fekzj03ltn5y.js","/_next/static/chunks/0z_707.y37o2..js","/_next/static/chunks/0qkram3.9.zhr.js","/_next/static/chunks/0g~f0923b0wjv.js","/_next/static/chunks/113wy2s~ukj5p.js","/_next/static/chunks/0s2ei~z99yg.7.js","/_next/static/chunks/13n60-fppanm4.js"],"default"]
|
|
6
6
|
8:I[97367,["/_next/static/chunks/08zok6.5_1m~9.js"],"OutletBoundary"]
|
|
7
7
|
9:"$Sreact.suspense"
|
|
8
8
|
b:I[97367,["/_next/static/chunks/08zok6.5_1m~9.js"],"ViewportBoundary"]
|
|
9
9
|
d:I[97367,["/_next/static/chunks/08zok6.5_1m~9.js"],"MetadataBoundary"]
|
|
10
10
|
f:I[68027,["/_next/static/chunks/08zok6.5_1m~9.js"],"default",1]
|
|
11
|
-
:HL["/_next/static/chunks/
|
|
12
|
-
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/
|
|
11
|
+
:HL["/_next/static/chunks/04x.fjh8sw0s1.css","style"]
|
|
12
|
+
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/04x.fjh8sw0s1.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/08zok6.5_1m~9.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"ja","className":"h-full antialiased","children":["$","body",null,{"className":"min-h-full flex flex-col","children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L4",null,{"Component":"$5","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@6","$@7"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/0dow.lekjpmyp.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/07.05twov8012.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/0e1gsufr5shdc.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/0pqew2nbfoy2f.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/_next/static/chunks/0fekzj03ltn5y.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/_next/static/chunks/0z_707.y37o2..js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/_next/static/chunks/0qkram3.9.zhr.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/_next/static/chunks/0g~f0923b0wjv.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/_next/static/chunks/113wy2s~ukj5p.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/_next/static/chunks/0s2ei~z99yg.7.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/_next/static/chunks/13n60-fppanm4.js","async":true,"nonce":"$undefined"}]],["$","$L8",null,{"children":["$","$9",null,{"name":"Next.MetadataOutlet","children":"$@a"}]}]]}],{},null,false,null]},null,false,null],["$","$1","h",{"children":[null,["$","$Lb",null,{"children":"$Lc"}],["$","div",null,{"hidden":true,"children":["$","$Ld",null,{"children":["$","$9",null,{"name":"Next.Metadata","children":"$Le"}]}]}],null]}],false]],"m":"$undefined","G":["$f",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/04x.fjh8sw0s1.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"JkyieJgBB2eU8MtnlBGvG"}
|
|
13
13
|
6:{}
|
|
14
14
|
7:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params"
|
|
15
15
|
c:[["$","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[47257,["/_next/static/chunks/08zok6.5_1m~9.js"],"ClientPageRoot"]
|
|
3
|
-
3:I[52683,["/_next/static/chunks/08zok6.5_1m~9.js","/_next/static/chunks/0dow.lekjpmyp.js","/_next/static/chunks/07.05twov8012.js","/_next/static/chunks/0e1gsufr5shdc.js","/_next/static/chunks/0pqew2nbfoy2f.js","/_next/static/chunks/0fekzj03ltn5y.js","/_next/static/chunks/
|
|
3
|
+
3:I[52683,["/_next/static/chunks/08zok6.5_1m~9.js","/_next/static/chunks/0dow.lekjpmyp.js","/_next/static/chunks/07.05twov8012.js","/_next/static/chunks/0e1gsufr5shdc.js","/_next/static/chunks/0pqew2nbfoy2f.js","/_next/static/chunks/0fekzj03ltn5y.js","/_next/static/chunks/0z_707.y37o2..js","/_next/static/chunks/0qkram3.9.zhr.js","/_next/static/chunks/0g~f0923b0wjv.js","/_next/static/chunks/113wy2s~ukj5p.js","/_next/static/chunks/0s2ei~z99yg.7.js","/_next/static/chunks/13n60-fppanm4.js"],"default"]
|
|
4
4
|
6:I[97367,["/_next/static/chunks/08zok6.5_1m~9.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/0dow.lekjpmyp.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/07.05twov8012.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/0e1gsufr5shdc.js","async":true}],["$","script","script-3",{"src":"/_next/static/chunks/0pqew2nbfoy2f.js","async":true}],["$","script","script-4",{"src":"/_next/static/chunks/0fekzj03ltn5y.js","async":true}],["$","script","script-5",{"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/0dow.lekjpmyp.js","async":true}],["$","script","script-1",{"src":"/_next/static/chunks/07.05twov8012.js","async":true}],["$","script","script-2",{"src":"/_next/static/chunks/0e1gsufr5shdc.js","async":true}],["$","script","script-3",{"src":"/_next/static/chunks/0pqew2nbfoy2f.js","async":true}],["$","script","script-4",{"src":"/_next/static/chunks/0fekzj03ltn5y.js","async":true}],["$","script","script-5",{"src":"/_next/static/chunks/0z_707.y37o2..js","async":true}],["$","script","script-6",{"src":"/_next/static/chunks/0qkram3.9.zhr.js","async":true}],["$","script","script-7",{"src":"/_next/static/chunks/0g~f0923b0wjv.js","async":true}],["$","script","script-8",{"src":"/_next/static/chunks/113wy2s~ukj5p.js","async":true}],["$","script","script-9",{"src":"/_next/static/chunks/0s2ei~z99yg.7.js","async":true}],["$","script","script-10",{"src":"/_next/static/chunks/13n60-fppanm4.js","async":true}]],["$","$L6",null,{"children":["$","$7",null,{"name":"Next.MetadataOutlet","children":"$@8"}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"JkyieJgBB2eU8MtnlBGvG"}
|
|
7
7
|
4:{}
|
|
8
8
|
5:"$0:rsc:props:children:0:props:serverProvidedParams:params"
|
|
9
9
|
8:null
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
2:I[39756,["/_next/static/chunks/08zok6.5_1m~9.js"],"default"]
|
|
3
3
|
3:I[37457,["/_next/static/chunks/08zok6.5_1m~9.js"],"default"]
|
|
4
4
|
4:I[47257,["/_next/static/chunks/08zok6.5_1m~9.js"],"ClientPageRoot"]
|
|
5
|
-
5:I[52683,["/_next/static/chunks/08zok6.5_1m~9.js","/_next/static/chunks/0dow.lekjpmyp.js","/_next/static/chunks/07.05twov8012.js","/_next/static/chunks/0e1gsufr5shdc.js","/_next/static/chunks/0pqew2nbfoy2f.js","/_next/static/chunks/0fekzj03ltn5y.js","/_next/static/chunks/
|
|
5
|
+
5:I[52683,["/_next/static/chunks/08zok6.5_1m~9.js","/_next/static/chunks/0dow.lekjpmyp.js","/_next/static/chunks/07.05twov8012.js","/_next/static/chunks/0e1gsufr5shdc.js","/_next/static/chunks/0pqew2nbfoy2f.js","/_next/static/chunks/0fekzj03ltn5y.js","/_next/static/chunks/0z_707.y37o2..js","/_next/static/chunks/0qkram3.9.zhr.js","/_next/static/chunks/0g~f0923b0wjv.js","/_next/static/chunks/113wy2s~ukj5p.js","/_next/static/chunks/0s2ei~z99yg.7.js","/_next/static/chunks/13n60-fppanm4.js"],"default"]
|
|
6
6
|
8:I[97367,["/_next/static/chunks/08zok6.5_1m~9.js"],"OutletBoundary"]
|
|
7
7
|
9:"$Sreact.suspense"
|
|
8
8
|
b:I[97367,["/_next/static/chunks/08zok6.5_1m~9.js"],"ViewportBoundary"]
|
|
9
9
|
d:I[97367,["/_next/static/chunks/08zok6.5_1m~9.js"],"MetadataBoundary"]
|
|
10
10
|
f:I[68027,["/_next/static/chunks/08zok6.5_1m~9.js"],"default",1]
|
|
11
|
-
:HL["/_next/static/chunks/
|
|
12
|
-
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/
|
|
11
|
+
:HL["/_next/static/chunks/04x.fjh8sw0s1.css","style"]
|
|
12
|
+
0:{"P":null,"c":["",""],"q":"","i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/04x.fjh8sw0s1.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/08zok6.5_1m~9.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"ja","className":"h-full antialiased","children":["$","body",null,{"className":"min-h-full flex flex-col","children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}]}]]}],{"children":[["$","$1","c",{"children":[["$","$L4",null,{"Component":"$5","serverProvidedParams":{"searchParams":{},"params":{},"promises":["$@6","$@7"]}}],[["$","script","script-0",{"src":"/_next/static/chunks/0dow.lekjpmyp.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/07.05twov8012.js","async":true,"nonce":"$undefined"}],["$","script","script-2",{"src":"/_next/static/chunks/0e1gsufr5shdc.js","async":true,"nonce":"$undefined"}],["$","script","script-3",{"src":"/_next/static/chunks/0pqew2nbfoy2f.js","async":true,"nonce":"$undefined"}],["$","script","script-4",{"src":"/_next/static/chunks/0fekzj03ltn5y.js","async":true,"nonce":"$undefined"}],["$","script","script-5",{"src":"/_next/static/chunks/0z_707.y37o2..js","async":true,"nonce":"$undefined"}],["$","script","script-6",{"src":"/_next/static/chunks/0qkram3.9.zhr.js","async":true,"nonce":"$undefined"}],["$","script","script-7",{"src":"/_next/static/chunks/0g~f0923b0wjv.js","async":true,"nonce":"$undefined"}],["$","script","script-8",{"src":"/_next/static/chunks/113wy2s~ukj5p.js","async":true,"nonce":"$undefined"}],["$","script","script-9",{"src":"/_next/static/chunks/0s2ei~z99yg.7.js","async":true,"nonce":"$undefined"}],["$","script","script-10",{"src":"/_next/static/chunks/13n60-fppanm4.js","async":true,"nonce":"$undefined"}]],["$","$L8",null,{"children":["$","$9",null,{"name":"Next.MetadataOutlet","children":"$@a"}]}]]}],{},null,false,null]},null,false,null],["$","$1","h",{"children":[null,["$","$Lb",null,{"children":"$Lc"}],["$","div",null,{"hidden":true,"children":["$","$Ld",null,{"children":["$","$9",null,{"name":"Next.Metadata","children":"$Le"}]}]}],null]}],false]],"m":"$undefined","G":["$f",[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/04x.fjh8sw0s1.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"JkyieJgBB2eU8MtnlBGvG"}
|
|
13
13
|
6:{}
|
|
14
14
|
7:"$0:f:0:1:1:children:0:props:children:0:props:serverProvidedParams:params"
|
|
15
15
|
c:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]]
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
3:I[97367,["/_next/static/chunks/08zok6.5_1m~9.js"],"MetadataBoundary"]
|
|
4
4
|
4:"$Sreact.suspense"
|
|
5
5
|
5:I[27201,["/_next/static/chunks/08zok6.5_1m~9.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":"MarkShelf"}],["$","meta","1",{"name":"description","content":"Structured markdown viewer for git repositories"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0x3dzn~oxb6tn.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L5","3",{}]]}]}]}],null]}],"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":"MarkShelf"}],["$","meta","1",{"name":"description","content":"Structured markdown viewer for git repositories"}],["$","link","2",{"rel":"icon","href":"/favicon.ico?favicon.0x3dzn~oxb6tn.ico","sizes":"256x256","type":"image/x-icon"}],["$","$L5","3",{}]]}]}]}],null]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"JkyieJgBB2eU8MtnlBGvG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
1:"$Sreact.fragment"
|
|
2
2
|
2:I[39756,["/_next/static/chunks/08zok6.5_1m~9.js"],"default"]
|
|
3
3
|
3:I[37457,["/_next/static/chunks/08zok6.5_1m~9.js"],"default"]
|
|
4
|
-
:HL["/_next/static/chunks/
|
|
5
|
-
0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/
|
|
4
|
+
:HL["/_next/static/chunks/04x.fjh8sw0s1.css","style"]
|
|
5
|
+
0:{"rsc":["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/04x.fjh8sw0s1.css","precedence":"next"}],["$","script","script-0",{"src":"/_next/static/chunks/08zok6.5_1m~9.js","async":true}]],["$","html",null,{"lang":"ja","className":"h-full antialiased","children":["$","body",null,{"className":"min-h-full flex flex-col","children":["$","$L2",null,{"parallelRouterKey":"children","template":["$","$L3",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."}]}]]}]}]],[]]}]}]}]]}],"isPartial":false,"staleTime":300,"varyParams":null,"buildId":"JkyieJgBB2eU8MtnlBGvG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
:HL["/_next/static/chunks/
|
|
2
|
-
0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}},"staleTime":300,"buildId":"
|
|
1
|
+
:HL["/_next/static/chunks/04x.fjh8sw0s1.css","style"]
|
|
2
|
+
0:{"tree":{"name":"","param":null,"prefetchHints":16,"slots":{"children":{"name":"__PAGE__","param":null,"prefetchHints":0,"slots":null}}},"staleTime":300,"buildId":"JkyieJgBB2eU8MtnlBGvG"}
|
|
@@ -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/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":39756,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":39756,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":37457,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":37457,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":47257,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":47257,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":92825,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":68017,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":68017,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":97367,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":97367,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":27201,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":68027,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js":{"id":68027,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/src/app/page.tsx <module evaluation>":{"id":52683,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js","/_next/static/chunks/0dow.lekjpmyp.js","/_next/static/chunks/07.05twov8012.js","/_next/static/chunks/0e1gsufr5shdc.js","/_next/static/chunks/0pqew2nbfoy2f.js","/_next/static/chunks/0fekzj03ltn5y.js","/_next/static/chunks/
|
|
2
|
+
globalThis.__RSC_MANIFEST["/page"] = {"moduleLoading":{"prefix":"","crossOrigin":null},"clientModules":{"[project]/node_modules/next/dist/esm/client/components/layout-router.js <module evaluation>":{"id":39756,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/layout-router.js":{"id":39756,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js <module evaluation>":{"id":37457,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":37457,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js <module evaluation>":{"id":47257,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-page.js":{"id":47257,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js <module evaluation>":{"id":92825,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/client-segment.js":{"id":92825,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js <module evaluation>":{"id":68017,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":68017,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js <module evaluation>":{"id":97367,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/framework/boundary-components.js":{"id":97367,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js <module evaluation>":{"id":27201,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":27201,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js <module evaluation>":{"id":68027,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/node_modules/next/dist/client/components/builtin/global-error.js":{"id":68027,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js"],"async":false},"[project]/src/app/page.tsx <module evaluation>":{"id":52683,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js","/_next/static/chunks/0dow.lekjpmyp.js","/_next/static/chunks/07.05twov8012.js","/_next/static/chunks/0e1gsufr5shdc.js","/_next/static/chunks/0pqew2nbfoy2f.js","/_next/static/chunks/0fekzj03ltn5y.js","/_next/static/chunks/0z_707.y37o2..js","/_next/static/chunks/0qkram3.9.zhr.js","/_next/static/chunks/0g~f0923b0wjv.js","/_next/static/chunks/113wy2s~ukj5p.js","/_next/static/chunks/0s2ei~z99yg.7.js","/_next/static/chunks/13n60-fppanm4.js"],"async":false},"[project]/src/app/page.tsx":{"id":52683,"name":"*","chunks":["/_next/static/chunks/08zok6.5_1m~9.js","/_next/static/chunks/0dow.lekjpmyp.js","/_next/static/chunks/07.05twov8012.js","/_next/static/chunks/0e1gsufr5shdc.js","/_next/static/chunks/0pqew2nbfoy2f.js","/_next/static/chunks/0fekzj03ltn5y.js","/_next/static/chunks/0z_707.y37o2..js","/_next/static/chunks/0qkram3.9.zhr.js","/_next/static/chunks/0g~f0923b0wjv.js","/_next/static/chunks/113wy2s~ukj5p.js","/_next/static/chunks/0s2ei~z99yg.7.js","/_next/static/chunks/13n60-fppanm4.js"],"async":false}},"ssrModuleMapping":{"39756":{"*":{"id":2420,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0.xiv_y._.js","server/chunks/ssr/node_modules_next_dist_0.jrk~x._.js"],"async":false}},"37457":{"*":{"id":24017,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0.xiv_y._.js","server/chunks/ssr/node_modules_next_dist_0.jrk~x._.js"],"async":false}},"47257":{"*":{"id":77682,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0.xiv_y._.js","server/chunks/ssr/node_modules_next_dist_0.jrk~x._.js"],"async":false}},"92825":{"*":{"id":97296,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0.xiv_y._.js","server/chunks/ssr/node_modules_next_dist_0.jrk~x._.js"],"async":false}},"68017":{"*":{"id":61660,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0.xiv_y._.js","server/chunks/ssr/node_modules_next_dist_0.jrk~x._.js"],"async":false}},"97367":{"*":{"id":90574,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0.xiv_y._.js","server/chunks/ssr/node_modules_next_dist_0.jrk~x._.js"],"async":false}},"27201":{"*":{"id":60704,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0.xiv_y._.js","server/chunks/ssr/node_modules_next_dist_0.jrk~x._.js"],"async":false}},"68027":{"*":{"id":56672,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0.xiv_y._.js","server/chunks/ssr/node_modules_next_dist_0.jrk~x._.js","server/chunks/ssr/node_modules_09w7yel._.js"],"async":false}},"52683":{"*":{"id":40777,"name":"*","chunks":["server/chunks/ssr/[root-of-the-server]__0.xiv_y._.js","server/chunks/ssr/node_modules_next_dist_0.jrk~x._.js","server/chunks/ssr/[root-of-the-server]__0serya4._.js","server/chunks/ssr/node_modules_lodash-es_0tln-y8._.js","server/chunks/ssr/node_modules_02wkjcl._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-5PVQY5BW_mjs_0t4svo2._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-ICPOFSXX_mjs_0y2gnil._.js","server/chunks/ssr/node_modules_roughjs_bundled_rough_esm_0opq-c5.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-XPW4576I_mjs_0h8ib.t._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-5FUZZQ4R_mjs_0jn1166._.js","server/chunks/ssr/node_modules_0j48jbs._.js","server/chunks/ssr/[root-of-the-server]__09qrkq5._.js","server/chunks/ssr/node_modules_cytoscape_dist_cytoscape_esm_mjs_0642y5z._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-U2HBQHQK_mjs_0dxq~mv._.js","server/chunks/ssr/node_modules_mermaid_dist_chunks_mermaid_core_chunk-ENJZ2VHE_mjs_0oqcgz_._.js"],"async":false}}},"edgeSSRModuleMapping":{},"rscModuleMapping":{"39756":{"*":{"id":26768,"name":"*","chunks":[],"async":false}},"37457":{"*":{"id":13778,"name":"*","chunks":[],"async":false}},"47257":{"*":{"id":92977,"name":"*","chunks":[],"async":false}},"92825":{"*":{"id":48552,"name":"*","chunks":[],"async":false}},"68017":{"*":{"id":83919,"name":"*","chunks":[],"async":false}},"97367":{"*":{"id":24150,"name":"*","chunks":[],"async":false}},"27201":{"*":{"id":33249,"name":"*","chunks":[],"async":false}},"68027":{"*":{"id":82509,"name":"*","chunks":[],"async":false}},"52683":{"*":{"id":23495,"name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{},"entryCSSFiles":{"[project]/src/app/layout":[{"path":"static/chunks/04x.fjh8sw0s1.css","inlined":false}],"[project]/node_modules/next/dist/client/components/builtin/global-error":[{"path":"static/chunks/04x.fjh8sw0s1.css","inlined":false}],"[project]/src/app/page":[{"path":"static/chunks/04x.fjh8sw0s1.css","inlined":false}]},"entryJSFiles":{"[project]/src/app/layout":["static/chunks/08zok6.5_1m~9.js"],"[project]/node_modules/next/dist/client/components/builtin/global-error":["static/chunks/08zok6.5_1m~9.js"],"[project]/src/app/page":["static/chunks/08zok6.5_1m~9.js","static/chunks/0dow.lekjpmyp.js","static/chunks/07.05twov8012.js","static/chunks/0e1gsufr5shdc.js","static/chunks/0pqew2nbfoy2f.js","static/chunks/0fekzj03ltn5y.js","static/chunks/0z_707.y37o2..js","static/chunks/0qkram3.9.zhr.js","static/chunks/0g~f0923b0wjv.js","static/chunks/113wy2s~ukj5p.js","static/chunks/0s2ei~z99yg.7.js","static/chunks/13n60-fppanm4.js"]}};
|
|
3
3
|
|
|
@@ -8,6 +8,6 @@ ${a.themeCSS}`),void 0!==a.fontFamily&&(c+=`
|
|
|
8
8
|
:root { --mermaid-font-family: ${a.fontFamily}}`),void 0!==a.altFontFamily&&(c+=`
|
|
9
9
|
:root { --mermaid-alt-font-family: ${a.altFontFamily}}`),b instanceof Map){let d=(0,d0.getEffectiveHtmlLabels)(a)?["> *","span"]:["rect","polygon","ellipse","circle","path"];b.forEach(a=>{(0,eu.default)(a.styles)||d.forEach(b=>{c+=gD(a.id,b,a.styles)}),(0,eu.default)(a.textStyles)||(c+=gD(a.id,"tspan",(a?.textStyles||[]).map(a=>a.replace("color","fill"))))})}return c},"createCssStyles"),gF=(0,d1.__name)((a,b,c,d)=>{var e,f,g;let h=gE(a,c),i=(0,d0.styles_default)(b,h,{...a.themeVariables,theme:a.theme,look:a.look},d);return er((g=function a(b,c,d,e,f,g,h,i,j){for(var k,l,m,n,o,p,q=0,r=0,s=h,t=0,u=0,v=0,w=1,x=1,y=1,z=0,A="",B=f,C=g,D=e,E=A;x;)switch(v=z,z=el()){case 40:if(108!=v&&58==ea(E,s-1)){-1!=(o=E+=d9(eo(z),"&","&\f"),p=d7(q?i[q-1]:0),o.indexOf("&\f",p))&&(y=-1);break}case 34:case 39:case 91:E+=eo(z);break;case 9:case 10:case 13:case 32:E+=function(a){for(;ei=em();)if(ei<33)el();else break;return en(a)>2||en(ei)>3?"":" "}(v);break;case 92:E+=function(a,b){for(var c;--b&&el()&&!(ei<48)&&!(ei>102)&&(!(ei>57)||!(ei<65))&&(!(ei>70)||!(ei<97)););return c=eh+(b<6&&32==em()&&32==el()),eb(ej,a,c)}(eh-1,7);continue;case 47:switch(em()){case 42:case 47:ed((k=function(a,b){for(;el();)if(a+ei===57)break;else if(a+ei===84&&47===em())break;return"/*"+eb(ej,b,eh-1)+"*"+d8(47===a?a:el())}(el(),eh),l=c,m=d,n=j,ek(k,l,m,d4,d8(ei),eb(k,2,-2),0,n)),j),(5==en(v||1)||5==en(em()||1))&&ec(E)&&" "!==eb(E,-1,void 0)&&(E+=" ");break;default:E+="/"}break;case 123*w:i[q++]=ec(E)*y;case 125*w:case 59:case 0:switch(z){case 0:case 125:x=0;case 59+r:-1==y&&(E=d9(E,/\f/g,"")),u>0&&(ec(E)-s||0===w&&47===v)&&ed(u>32?eq(E+";",e,d,s-1,j):eq(d9(E," ","")+";",e,d,s-2,j),j);break;case 59:E+=";";default:if(ed(D=ep(E,c,d,q,r,f,i,A,B=[],C=[],s,g),g),123===z)if(0===r)a(E,c,D,D,B,g,s,i,C);else{switch(t){case 99:if(110===ea(E,3))break;case 108:if(97===ea(E,2))break;default:r=0;case 100:case 109:case 115:}r?a(b,D,D,e&&ed(ep(b,D,D,0,0,f,i,A,f,B=[],s,C),C),f,C,s,i,e?B:C):a(E,D,D,D,[""],C,0,i,C)}}q=r=u=0,w=y=1,A=E="",s=h;break;case 58:s=1+ec(E),u=v;default:if(w<1){if(123==z)--w;else if(125==z&&0==w++&&125==(ei=eh>0?ea(ej,--eh):0,ef--,10===ei&&(ef=1,ee--),ei))continue}switch(E+=d8(z),z*w){case 38:y=r>0?1:(E+="\f",-1);break;case 44:i[q++]=(ec(E)-1)*y,y=1;break;case 64:45===em()&&(E+=eo(el())),t=em(),r=s=ec(A=E+=function(a){for(;!en(em());)el();return eb(ej,a,eh)}(eh)),z++;break;case 45:45===v&&2==ec(E)&&(w=0)}}return g}("",null,null,null,[""],(f=e=`${d}{${i}}`,ee=ef=1,eg=ec(ej=f),eh=0,e=[]),0,[0],e),ej="",g),es)},"createUserStyles"),gG=(0,d1.__name)((a="",b,c)=>{let d=a;return c||b||(d=d.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),d=(d=(0,d_.decodeEntities)(d)).replace(/<br>/g,"<br/>")},"cleanUpSvgCode"),gH=(0,d1.__name)((a="",b)=>{let c=b?.viewBox?.baseVal?.height?b.viewBox.baseVal.height+"px":"100%",d=gy(`<body style="margin:0">${a}</body>`);return`<iframe style="width:100%;height:${c};border:0;margin:0;" src="data:text/html;charset=UTF-8;base64,${d}" sandbox="allow-top-navigation-by-user-activation allow-popups">
|
|
10
10
|
The "iframe" tag is not supported by your browser.
|
|
11
|
-
</iframe>`},"putIntoIFrame"),gI=(0,d1.__name)((a,b,c,d,e)=>{let f=a.append("div");f.attr("id",c),d&&f.attr("style",d);let g=f.append("svg").attr("id",b).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return e&&g.attr("xmlns:xlink",e),g.append("g"),a},"appendDivSvgG");function gJ(a,b){return a.append("iframe").attr("id",b).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,d1.__name)(gJ,"sandboxedIframe");var gK=(0,d1.__name)((a,b,c,d)=>{a.getElementById(b)?.remove(),a.getElementById(c)?.remove(),a.getElementById(d)?.remove()},"removeExistingElements"),gL=(0,d1.__name)(async function(a,b,c){let d,e;gl();let f=gB(b);b=f.code;let g=(0,d0.getConfig)();d1.log.debug(g),b.length>(g?.maxTextSize??5e4)&&(b="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let h="#"+a,i="i"+a,j="#"+i,k="d"+a,l="#"+k,m=(0,d1.__name)(()=>{let a=o?j:l,b=(0,d3.select)(a).node();b&&"remove"in b&&b.remove()},"removeTempElements"),n=(0,d3.select)("body"),o="sandbox"===g.securityLevel,p="loose"===g.securityLevel,q=g.fontFamily;if(void 0!==c){if(c&&(c.innerHTML=""),o){let a=gJ((0,d3.select)(c),i);(n=(0,d3.select)(a.nodes()[0].contentDocument.body)).node().style.margin=0}else n=(0,d3.select)(c);gI(n,a,k,`font-family: ${q}`,"http://www.w3.org/1999/xlink")}else{if(gK(document,a,k,i),o){let a=gJ((0,d3.select)("body"),i);(n=(0,d3.select)(a.nodes()[0].contentDocument.body)).node().style.margin=0}else n=(0,d3.select)("body");gI(n,a,k)}try{d=await gp.fromText(b,{title:f.title})}catch(a){if(g.suppressErrorRendering)throw m(),a;d=await gp.fromText("error"),e=a}let r=n.select(l).node(),s=d.type,t=r.firstChild,u=t.firstChild,v=gF(g,s,d.renderer.getClasses?.(b,d),h),w=document.createElement("style");w.innerHTML=v,t.insertBefore(w,u);try{await d.renderer.draw(b,a,"11.14.0",d)}catch(c){throw g.suppressErrorRendering?m():fq.draw(b,a,"11.14.0"),c}gO(s,n.select(`${l} svg`),d.db.getAccTitle?.(),d.db.getAccDescription?.()),n.select(`[id="${a}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let x=n.select(l).node().innerHTML;if(d1.log.debug("config.arrowMarkerAbsolute",g.arrowMarkerAbsolute),x=gG(x,o,(0,d0.evaluate)(g.arrowMarkerAbsolute)),o?x=gH(x,n.select(l+" svg").node()):p||(x=et.default.sanitize(x,{ADD_TAGS:gz,ADD_ATTR:gA,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),gr(),e)throw e;return m(),{diagramType:s,svg:x,bindFunctions:d.db.bindFunctions}},"render");function gM(a={}){let b=(0,d0.assignWithDepth_default)({},a);b?.fontFamily&&!b.themeVariables?.fontFamily&&(b.themeVariables||(b.themeVariables={}),b.themeVariables.fontFamily=b.fontFamily),(0,d0.saveConfigFromInitialize)(b),b?.theme&&b.theme in d0.themes_default?b.themeVariables=d0.themes_default[b.theme].getThemeVariables(b.themeVariables):b&&(b.themeVariables=d0.themes_default.default.getThemeVariables(b.themeVariables));let c="object"==typeof b?(0,d0.setSiteConfig)(b):(0,d0.getSiteConfig)();(0,d1.setLogLevel)(c.logLevel),gl()}(0,d1.__name)(gM,"initialize");var gN=(0,d1.__name)((a,b={})=>{let{code:c}=gx(a);return gp.fromText(c,b)},"getDiagramFromText");function gO(a,b,c,d){gn(b,a),go(b,c,d,b.attr("id"))}(0,d1.__name)(gO,"addA11yInfo");var gP=Object.freeze({render:gL,parse:gC,getDiagramFromText:gN,initialize:gM,getConfig:d0.getConfig,setConfig:d0.setConfig,getSiteConfig:d0.getSiteConfig,updateSiteConfig:d0.updateSiteConfig,reset:(0,d1.__name)(()=>{(0,d0.reset)()},"reset"),globalReset:(0,d1.__name)(()=>{(0,d0.reset)(d0.defaultConfig)},"globalReset"),defaultConfig:d0.defaultConfig});(0,d1.setLogLevel)((0,d0.getConfig)().logLevel),(0,d0.reset)((0,d0.getConfig)());var gQ=(0,d1.__name)((a,b,c)=>{d1.log.warn(a),(0,d_.isDetailedError)(a)?(c&&c(a.str,a.hash),b.push({...a,message:a.str,error:a})):(c&&c(a),a instanceof Error&&b.push({str:a.message,message:a.message,hash:a.name,error:a}))},"handleError"),gR=(0,d1.__name)(async function(a={querySelector:".mermaid"}){try{await gS(a)}catch(b){if((0,d_.isDetailedError)(b)&&d1.log.error(b.str),g2.parseError&&g2.parseError(b),!a.suppressErrors)throw d1.log.error("Use the suppressErrors option to suppress these errors"),b}},"run"),gS=(0,d1.__name)(async function({postRenderCallback:a,querySelector:b,nodes:c}={querySelector:".mermaid"}){let d,e,f=gP.getConfig();if(d1.log.debug(`${!a?"No ":""}Callback function found`),c)d=c;else if(b)d=document.querySelectorAll(b);else throw Error("Nodes and querySelector are both undefined");d1.log.debug(`Found ${d.length} diagrams`),f?.startOnLoad!==void 0&&(d1.log.debug("Start On Load: "+f?.startOnLoad),gP.updateSiteConfig({startOnLoad:f?.startOnLoad}));let g=new d_.utils_default.InitIDGenerator(f.deterministicIds,f.deterministicIDSeed),h=[];for(let b of Array.from(d)){if(d1.log.info("Rendering diagram: "+b.id),b.getAttribute("data-processed"))continue;b.setAttribute("data-processed","true");let c=`mermaid-${g.next()}`;e=b.innerHTML,e=(0,d2.dedent)(d_.utils_default.entityDecode(e)).trim().replace(/<br\s*\/?>/gi,"<br/>");let d=d_.utils_default.detectInit(e);d&&d1.log.debug("Detected early reinit: ",d);try{let{svg:d,bindFunctions:f}=await g0(c,e,b);b.innerHTML=d,a&&await a(c),f&&f(b)}catch(a){gQ(a,h,g2.parseError)}}if(h.length>0)throw h[0]},"runThrowsErrors"),gT=(0,d1.__name)(function(a){gP.initialize(a)},"initialize"),gU=(0,d1.__name)(async function(a,b,c){d1.log.warn("mermaid.init is deprecated. Please use run instead."),a&&gT(a);let d={postRenderCallback:c,querySelector:".mermaid"};"string"==typeof b?d.querySelector=b:b&&(b instanceof HTMLElement?d.nodes=[b]:d.nodes=b),await gR(d)},"init"),gV=(0,d1.__name)(async(a,{lazyLoad:b=!0}={})=>{gl(),(0,d0.registerLazyLoadedDiagrams)(...a),!1===b&&await gm()},"registerExternalDiagrams"),gW=(0,d1.__name)(function(){if(g2.startOnLoad){let{startOnLoad:a}=gP.getConfig();a&&g2.run().catch(a=>d1.log.error("Mermaid failed to initialize",a))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",gW,!1);var gX=(0,d1.__name)(function(a){g2.parseError=a},"setParseErrorHandler"),gY=[],gZ=!1,g$=(0,d1.__name)(async()=>{if(!gZ){for(gZ=!0;gY.length>0;){let a=gY.shift();if(a)try{await a()}catch(a){d1.log.error("Error executing queue",a)}}gZ=!1}},"executeQueue"),g_=(0,d1.__name)(async(a,b)=>new Promise((c,d)=>{let e=(0,d1.__name)(()=>new Promise((e,f)=>{gP.parse(a,b).then(a=>{e(a),c(a)},a=>{d1.log.error("Error parsing",a),g2.parseError?.(a),f(a),d(a)})}),"performCall");gY.push(e),g$().catch(d)}),"parse"),g0=(0,d1.__name)((a,b,c)=>new Promise((d,e)=>{let f=(0,d1.__name)(()=>new Promise((f,g)=>{gP.render(a,b,c).then(a=>{f(a),d(a)},a=>{d1.log.error("Error parsing",a),g2.parseError?.(a),g(a),e(a)})}),"performCall");gY.push(f),g$().catch(e)}),"render"),g1=(0,d1.__name)(()=>Object.keys(d0.detectors).map(a=>({id:a})),"getRegisteredDiagramsMetadata"),g2={startOnLoad:!0,mermaidAPI:gP,parse:g_,render:g0,init:gU,run:gR,registerExternalDiagrams:gV,registerLayoutLoaders:dZ.registerLayoutLoaders,initialize:gT,parseError:void 0,contentLoaded:gW,setParseErrorHandler:gX,detectType:d0.detectType,registerIconPacks:d$.registerIconPacks,getRegisteredDiagramsMetadata:g1};let g3=!1,g4=0;function g5({code:a}){let d=(0,c.useRef)(null),[e,f]=(0,c.useState)(null),[g,h]=(0,c.useState)(null),i=(0,c.useRef)(`mermaid-${++g4}`);return((0,c.useEffect)(()=>{let b=!1;return g3||(g3=!0,g2.initialize({startOnLoad:!1,theme:"default",securityLevel:"loose",fontFamily:"system-ui, sans-serif"})),(async()=>{try{let{svg:c}=await g2.render(i.current,a);b||(f(c),h(null))}catch(c){b||(h(c instanceof Error?c.message:"Mermaid render error"),f(null));let a=document.getElementById("d"+i.current);a?.remove()}})(),()=>{b=!0}},[a]),g)?(0,b.jsxs)("div",{className:"border border-red-200 bg-red-50 rounded p-3 text-xs text-red-700",children:[(0,b.jsx)("div",{className:"font-medium mb-1",children:"Mermaid エラー"}),(0,b.jsx)("pre",{className:"whitespace-pre-wrap",children:a})]}):e?(0,b.jsx)("div",{ref:d,className:"my-2 overflow-x-auto",dangerouslySetInnerHTML:{__html:e}}):(0,b.jsx)("div",{className:"text-xs text-[var(--text-muted)] py-2",children:"図を描画中..."})}function g6(a){return a.toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()}function g7({children:a,onHeadingsExtracted:d,fileRefs:e,currentPath:f,onNavigate:g,onPreviewShow:h,onPreviewHide:i}){let j=(0,c.useMemo)(()=>(function(a){let b,c=[],d=new Map,e=/^(#{1,4})\s+(.+)$/gm;for(;null!==(b=e.exec(a));){let a=b[1].length,e=b[2].replace(/[#*_`[\]]/g,"").trim(),f=g6(e)||"heading",g=d.get(f)??0;d.set(f,g+1);let h=0===g?f:`${f}-${g}`;c.push({id:h,text:e,level:a})}return c})(a),[a]),k=(0,c.useMemo)(()=>{let a=new Map;for(let b of j){let c=a.get(b.text)??[];c.push(b.id),a.set(b.text,c)}return a},[j]),l=(0,c.useMemo)(()=>new Map,[j]);(0,c.useEffect)(()=>{d?.(j)},[j,d]);let m=(0,c.useMemo)(()=>{if(!e||0===e.length)return null;let a=new Map;for(let b of e.filter(a=>a.displayName.length>2&&a.path!==f).sort((a,b)=>b.displayName.length-a.displayName.length))a.set(b.displayName,b.path);return a},[e,f]),n=(0,c.useMemo)(()=>{if(!m||0===m.size)return null;let a=Array.from(m.keys()).map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return RegExp(`(${a.join("|")})`,"g")},[m]);function o(a){return function(c){let d=function(a){let b=k.get(a);if(!b)return g6(a)||"heading";let c=l.get(a)??0;return l.set(a,c+1),b[c%b.length]}("string"==typeof c.children?c.children:function a(b){return"string"==typeof b?b:"number"==typeof b?String(b):Array.isArray(b)?b.map(a).join(""):b&&"object"==typeof b&&"props"in b?a(b.props.children):""}(c.children)),e={...c,id:d};switch(a){case 1:return(0,b.jsx)("h1",{...e});case 2:return(0,b.jsx)("h2",{...e});case 3:return(0,b.jsx)("h3",{...e});default:return(0,b.jsx)("h4",{...e})}}}let p={h1:o(1),h2:o(2),h3:o(3),h4:o(4),code:({className:a,children:c,...d})=>{if(/language-mermaid/.exec(a||"")){let a=String(c).replace(/\n$/,"");return(0,b.jsx)(g5,{code:a})}return(0,b.jsx)("code",{className:a,...d,children:c})},pre:({children:a})=>a&&"object"==typeof a&&"type"in a&&a.type===g5?(0,b.jsx)(b.Fragment,{children:a}):(0,b.jsx)("pre",{children:a}),a:({href:a,children:c,...d})=>{if(a?.startsWith("autolink:")){let d=a.slice(9);return(0,b.jsx)("span",{className:"text-[var(--brand-primary)] border-b border-dashed border-[var(--brand-primary)] cursor-pointer hover:bg-blue-50 transition-colors",onClick:a=>{a.preventDefault(),i?.(),g?.(d)},onMouseEnter:a=>{let b=a.target.getBoundingClientRect();h?.(d,b)},onMouseLeave:()=>i?.(),children:c})}return(0,b.jsx)("a",{href:a,...d,children:c})},p:({children:a,...c})=>(0,b.jsx)("p",{...c,children:q(a)}),li:({children:a,...c})=>(0,b.jsx)("li",{...c,children:q(a)}),td:({children:a,...c})=>(0,b.jsx)("td",{...c,children:q(a)})};function q(a){return n&&m?"string"==typeof a?r(a):Array.isArray(a)?a.map((a,c)=>"string"==typeof a?(0,b.jsx)("span",{children:r(a)},c):a):a:a}function r(a){let c;if(!n||!m)return a;let d=[],e=0;for(n.lastIndex=0;null!==(c=n.exec(a));){let f=c[0],j=m.get(f);j&&(c.index>e&&d.push(a.slice(e,c.index)),d.push((0,b.jsx)("span",{className:"text-[var(--brand-primary)] border-b border-dashed border-[var(--brand-primary)] cursor-pointer hover:bg-blue-50 transition-colors",onClick:a=>{a.preventDefault(),i?.(),g?.(j)},onMouseEnter:a=>{let b=a.target.getBoundingClientRect();h?.(j,b)},onMouseLeave:()=>i?.(),children:f},`${c.index}-${f}`)),e=c.index+f.length)}return e<a.length&&d.push(a.slice(e)),0===d.length?a:d}return(0,b.jsx)("div",{className:"prose prose-sm max-w-none prose-headings:font-semibold prose-headings:tracking-tight prose-headings:text-[var(--text-primary)] prose-h1:text-lg prose-h1:leading-snug prose-h1:mb-4 prose-h2:text-[15px] prose-h2:leading-snug prose-h2:border-b prose-h2:border-[var(--border-default)] prose-h2:pb-2 prose-h2:mt-8 prose-h2:mb-3 prose-h3:text-[13px] prose-h3:leading-snug prose-h3:mt-6 prose-h3:mb-2 prose-p:text-[var(--text-secondary)] prose-p:text-[13px] prose-p:leading-[1.75] prose-li:text-[var(--text-secondary)] prose-li:text-[13px] prose-li:leading-[1.75] prose-strong:text-[var(--text-primary)] prose-strong:font-semibold prose-a:text-[var(--brand-primary)] prose-a:font-medium prose-a:no-underline hover:prose-a:underline prose-code:text-xs prose-code:text-[var(--text-primary)] prose-code:bg-[var(--bg-muted)] prose-code:px-1 prose-code:py-0.5 prose-code:rounded prose-code:before:content-none prose-code:after:content-none prose-pre:bg-[var(--bg-muted)] prose-pre:text-xs prose-pre:text-[var(--text-primary)] prose-table:text-[12px] prose-th:bg-[var(--bg-muted)] prose-th:text-[var(--text-primary)] prose-th:font-semibold prose-th:px-3 prose-th:py-1.5 prose-th:text-left prose-td:px-3 prose-td:py-1.5 prose-td:border-[var(--border-default)] prose-td:text-[var(--text-secondary)] prose-hr:border-[var(--border-default)] prose-blockquote:border-l-[var(--brand-primary)] prose-blockquote:text-[var(--text-muted)] prose-blockquote:not-italic prose-img:rounded-lg ",children:(0,b.jsx)(cK,{remarkPlugins:[dW],components:p,children:a})})}let g8=i("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);function g9({filePath:a,hash:d}){let[e,f]=(0,c.useState)(null);return((0,c.useEffect)(()=>{f(null),fetch(`/api/diff?path=${encodeURIComponent(a)}&hash=${d}`).then(a=>a.json()).then(a=>f(a.diff)).catch(()=>f("(差分を取得できませんでした)"))},[a,d]),null===e)?(0,b.jsx)("div",{className:"text-[12px] text-[var(--text-muted)] py-2",children:"差分を読み込み中..."}):(0,b.jsx)("pre",{className:"text-[11px] font-[var(--font-mono)] bg-[var(--bg-muted)] rounded-lg p-3 overflow-x-auto leading-[1.7] border border-[var(--border-default)]",children:e.split("\n").filter(a=>!a.startsWith("diff --git")&&!a.startsWith("index ")&&!a.startsWith("new file")&&!a.startsWith("deleted file")&&!a.startsWith("similarity")&&!a.startsWith("rename ")&&!a.startsWith("old mode")&&!a.startsWith("new mode")).map((a,c)=>{let d="var(--text-secondary)",e="transparent";return a.startsWith("+")&&!a.startsWith("+++")?(d="var(--add-color)",e="var(--add-bg)"):a.startsWith("-")&&!a.startsWith("---")?(d="var(--del-color)",e="var(--del-bg)"):a.startsWith("@@")&&(d="var(--brand-primary)"),(0,b.jsx)("div",{style:{color:d,backgroundColor:e},className:"px-1 -mx-1 rounded-sm",children:a},c)})})}function ha({filePath:a}){let[d,e]=(0,c.useState)([]),[f,g]=(0,c.useState)(!0),[h,i]=(0,c.useState)(null);return((0,c.useEffect)(()=>{g(!0),i(null),fetch(`/api/history?path=${encodeURIComponent(a)}`).then(a=>a.json()).then(a=>{e(a),g(!1)}).catch(()=>g(!1))},[a]),f)?(0,b.jsx)("div",{className:"p-4 text-[var(--text-muted)] text-[13px]",children:"読み込み中..."}):0===d.length?(0,b.jsx)("div",{className:"p-4 text-[var(--text-muted)] text-[13px]",children:"変更履歴がありません(git 管理外の可能性)"}):(0,b.jsx)("div",{className:"divide-y divide-[var(--border-default)]",children:d.map(c=>{let d=h===c.hash;return(0,b.jsxs)("div",{children:[(0,b.jsx)("button",{onClick:()=>i(d?null:c.hash),className:"w-full text-left px-4 py-3 hover:bg-[var(--bg-hover)] transition-colors",children:(0,b.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,b.jsx)(g8,{size:13,className:"text-[var(--text-muted)] mt-0.5 shrink-0"}),(0,b.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("span",{className:"text-[11px] font-[var(--font-mono)] text-[var(--brand-primary)] leading-none",children:c.hashShort}),(0,b.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:new Date(c.date).toLocaleString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}),c.author&&(0,b.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:c.author})]}),(0,b.jsx)("p",{className:"text-[12px] text-[var(--text-secondary)] mt-1 leading-snug line-clamp-2",children:c.message})]}),(0,b.jsx)("span",{className:"text-[var(--text-muted)] shrink-0 mt-0.5",children:d?(0,b.jsx)(j,{size:13}):(0,b.jsx)(k,{size:13})})]})}),d&&(0,b.jsx)("div",{className:"px-4 pb-3",children:(0,b.jsx)(g9,{filePath:a,hash:c.hash})})]},c.hash)})})}function hb({headings:a,scrollContainer:d}){let[e,f]=(0,c.useState)(null),g=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!d||0===a.length)return;g.current?.disconnect();let b=new IntersectionObserver(a=>{for(let b of a)b.isIntersecting&&f(b.target.id)},{root:d,rootMargin:"0px 0px -70% 0px",threshold:.1});for(let c of(g.current=b,a)){let a=document.getElementById(c.id);a&&b.observe(a)}return()=>b.disconnect()},[a,d]);let h=(0,c.useCallback)(a=>{let b=document.getElementById(a);b&&(b.scrollIntoView({behavior:"smooth",block:"start"}),f(a))},[]);return 0===a.length?null:(0,b.jsxs)("nav",{className:"py-3 px-2 space-y-px",children:[(0,b.jsx)("div",{className:"text-[10px] font-medium text-[var(--text-muted)] tracking-wider uppercase px-1.5 mb-1.5",children:"目次"}),a.map(a=>(0,b.jsx)("button",{onClick:()=>h(a.id),className:`block w-full text-left text-[11px] leading-relaxed py-0.5 truncate transition-colors rounded px-1.5 ${e===a.id?"text-[var(--brand-primary)] font-medium bg-blue-50":"text-[var(--text-muted)] hover:text-[var(--text-secondary)] hover:bg-[var(--bg-hover)]"}`,style:{paddingLeft:`${(a.level-1)*10+6}px`},title:a.text,children:a.text},a.id))]})}let hc=i("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);function hd({path:a,position:d,onNavigate:e,onMouseEnter:f,onMouseLeave:g,fileRefs:h,depth:i=0}){let[j,k]=(0,c.useState)(null),[l,m]=(0,c.useState)(!1),n=(0,c.useRef)(null),[o,p]=(0,c.useState)(null),[q,r]=(0,c.useState)(null),[s,t]=(0,c.useState)(null),u=(0,c.useRef)(null),v=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(u.current&&clearTimeout(u.current),v.current&&clearTimeout(v.current),!a){k(null),r(null),t(null);return}m(!0),k(null),r(null),t(null),fetch(`/api/file?path=${encodeURIComponent(a)}`).then(a=>a.json()).then(a=>k(a.content??null)).catch(()=>k(null)).finally(()=>m(!1))},[a]),(0,c.useEffect)(()=>{if(!d||!n.current)return void p(d);let a=n.current.getBoundingClientRect(),b=window.innerWidth,c=window.innerHeight,{x:e,y:f}=d;e+a.width>b-16&&(e=b-a.width-16),e<16&&(e=16),f+a.height>c-16&&(f=d.y-a.height-8),p({x:e,y:f})},[d,j]);let w=(0,c.useCallback)((a,b)=>{i>=3||(v.current&&clearTimeout(v.current),u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{r(a),t({x:b.right+8,y:b.top})},200))},[i]),x=(0,c.useCallback)(()=>{u.current&&clearTimeout(u.current),v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{r(null),t(null)},300)},[]),y=(0,c.useCallback)(()=>{v.current&&clearTimeout(v.current),f()},[f]),z=(0,c.useCallback)(()=>{x(),g()},[x,g]);if(!a||!d)return null;let A=a.split("/").pop()?.replace(/\.md$/i,"")||a;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{ref:n,onMouseEnter:f,onMouseLeave:()=>{g(),x()},className:"fixed bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-lg shadow-xl w-[480px] max-h-[420px] overflow-y-auto",style:{left:o?.x??d.x,top:o?.y??d.y,zIndex:50+i},children:[(0,b.jsx)("div",{className:"sticky top-0 bg-[var(--bg-surface)] border-b border-[var(--border-default)] px-3 py-2 flex items-center gap-2",children:(0,b.jsxs)("button",{onClick:()=>e(a),className:"text-xs font-medium text-[var(--brand-primary)] hover:underline truncate flex items-center gap-1",children:[A,(0,b.jsx)(hc,{size:10})]})}),(0,b.jsx)("div",{className:"p-3",children:l?(0,b.jsx)("div",{className:"text-xs text-[var(--text-muted)]",children:"読み込み中..."}):j?(0,b.jsx)("div",{className:"text-[11px]",children:(0,b.jsx)(g7,{fileRefs:h,currentPath:a,onNavigate:e,onPreviewShow:w,onPreviewHide:x,children:j})}):(0,b.jsx)("div",{className:"text-xs text-[var(--text-muted)]",children:"プレビューを表示できません"})})]}),(0,b.jsx)(hd,{path:q,position:s,onNavigate:e,onMouseEnter:y,onMouseLeave:z,fileRefs:h,depth:i+1})]})}var he=a.i(22034);function hf({currentPath:a,onNavigate:d}){let e=(0,c.useRef)(null),f=(0,c.useRef)(null),[g,h]=(0,c.useState)(!0),[i,j]=(0,c.useState)(!1),[k,l]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{let b=!1;return h(!0),j(!1),l(!1),fetch("/api/graph").then(a=>a.json()).then(c=>{if(b||!e.current)return;let g=new Set;for(let b of(g.add(a),c.edges))b.source===a&&g.add(b.target),b.target===a&&g.add(b.source);let i=c.nodes.filter(a=>g.has(a.id)),k=c.edges.filter(a=>g.has(a.source)&&g.has(a.target));if(0===i.length){j(!0),h(!1);return}f.current?.destroy();let m=(0,he.default)({container:e.current,elements:[...i.map(b=>({data:{id:b.id,label:b.label,isCurrent:b.id===a}})),...k.map((a,b)=>({data:{id:`e${b}`,source:a.source,target:a.target}}))],style:[{selector:"node",style:{label:"data(label)","text-valign":"bottom","text-halign":"center","font-size":"11px","font-family":"var(--font-sans)",color:"#4a5060","text-margin-y":6,"background-color":"#e8f0fe","border-width":2,"border-color":"#3b7ddb",width:28,height:28,"text-max-width":"100px","text-wrap":"ellipsis",cursor:"pointer"}},{selector:"node[?isCurrent]",style:{"background-color":"#2563eb","border-color":"#1d4ed8",color:"#1a1d23","font-weight":"bold",width:36,height:36}},{selector:"edge",style:{width:1.5,"line-color":"#c8ccd3","target-arrow-color":"#c8ccd3","target-arrow-shape":"triangle","curve-style":"bezier","arrow-scale":.8}},{selector:"node:active",style:{"overlay-opacity":0}}],layout:{name:"concentric",animate:!1,padding:50,minNodeSpacing:80,concentric:a=>a.data("isCurrent")?10:1,levelWidth:()=>1},userZoomingEnabled:!0,userPanningEnabled:!0,boxSelectionEnabled:!1,autoungrabify:!1});requestAnimationFrame(()=>{m.resize(),m.fit(void 0,50),m.zoom()>1.2&&m.zoom({level:1.2,renderedPosition:{x:e.current.clientWidth/2,y:e.current.clientHeight/2}}),m.center(m.nodes("[?isCurrent]")),l(!0)}),m.on("mouseover","node",a=>{let b=a.target;b.data("isCurrent")||b.style({"background-color":"#dbeafe","border-color":"#2563eb",color:"#1a1d23"}),e.current.style.cursor="pointer"}),m.on("mouseout","node",a=>{let b=a.target;b.data("isCurrent")||b.style({"background-color":"#e8f0fe","border-color":"#3b7ddb",color:"#4a5060"}),e.current.style.cursor="default"}),m.on("tap","node",b=>{let c=b.target.id();c!==a&&d(c)}),f.current=m,h(!1)}).catch(()=>{b||(j(!0),h(!1))}),()=>{b=!0,f.current?.destroy(),f.current=null}},[a,d]),(0,b.jsxs)("div",{className:"h-full flex flex-col relative",children:[(g||i)&&(0,b.jsx)("div",{className:"absolute inset-0 flex items-center justify-center text-[13px] text-[var(--text-muted)] z-10 bg-[var(--bg-surface)]",children:g?"グラフを構築中...":"このドキュメントへのリンクはありません"}),(0,b.jsx)("div",{ref:e,className:"flex-1 min-h-0 transition-opacity duration-150",style:{opacity:+!!k}})]})}let hg=i("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),hh=i("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),hi=i("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);function hj({filePath:a,fileRefs:d,onNavigate:e,onGoBack:f,canGoBack:g}){let[h,i]=(0,c.useState)(null),[j,k]=(0,c.useState)("content"),[l,n]=(0,c.useState)([]),[o,p]=(0,c.useState)(()=>176),q=(0,c.useRef)(null),r=(0,c.useRef)(null),[s,t]=(0,c.useState)(null),[u,v]=(0,c.useState)(null),w=(0,c.useRef)(null),x=(0,c.useRef)(null);(0,c.useEffect)(()=>{i(null),n([]),w.current&&clearTimeout(w.current),x.current&&clearTimeout(x.current),t(null),v(null),fetch(`/api/file?path=${encodeURIComponent(a)}`).then(a=>a.json()).then(a=>i(a.content??null)).catch(()=>i(null))},[a]);let y=(0,c.useCallback)((a,b)=>{x.current&&clearTimeout(x.current),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{t(a),v({x:b.left,y:b.bottom+4})},200)},[]),z=(0,c.useCallback)(()=>{w.current&&clearTimeout(w.current),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{t(null),v(null)},300)},[]),A=(0,c.useCallback)(()=>{x.current&&clearTimeout(x.current)},[]),B=(0,c.useCallback)(()=>{z()},[z]),C=(0,c.useCallback)(a=>{a.preventDefault(),document.body.style.userSelect="none",document.body.style.cursor="col-resize";let b=r.current?.parentElement,c=a=>{if(!b)return;let c=Math.max(120,Math.min(400,b.getBoundingClientRect().right-a.clientX));p(c),localStorage.setItem("markshelf:tocWidth",String(c))},d=()=>{document.body.style.userSelect="",document.body.style.cursor="",document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",d)};document.addEventListener("mousemove",c),document.addEventListener("mouseup",d)},[]),D=a.split("/").pop()?.replace(/\.md$/i,"")||a;return(0,b.jsxs)("div",{className:"flex flex-col h-full",children:[(0,b.jsxs)("div",{className:"border-b border-[var(--border-default)] px-4 py-2.5 shrink-0",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[g&&(0,b.jsx)("button",{onClick:f,className:"shrink-0 p-0.5 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"戻る",children:(0,b.jsx)(hi,{size:14})}),(0,b.jsx)("h2",{className:"font-semibold text-[14px] leading-snug truncate text-[var(--text-primary)]",children:D})]}),(0,b.jsxs)("div",{className:"flex gap-1",children:[(0,b.jsxs)("button",{onClick:()=>k("content"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"content"===j?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,b.jsx)(m,{size:12}),"内容"]}),(0,b.jsxs)("button",{onClick:()=>k("history"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"history"===j?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,b.jsx)(hg,{size:12}),"変更履歴"]}),(0,b.jsxs)("button",{onClick:()=>k("links"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"links"===j?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,b.jsx)(hh,{size:12}),"リンク"]})]})]}),"content"===j?null!==h?(0,b.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,b.jsx)("div",{className:"flex-1 overflow-y-auto",ref:q,children:(0,b.jsx)("div",{className:"p-4",children:(0,b.jsx)(g7,{onHeadingsExtracted:n,fileRefs:d,currentPath:a,onNavigate:e,onPreviewShow:y,onPreviewHide:z,children:h})})}),l.length>0&&(0,b.jsxs)("div",{className:"flex shrink-0",ref:r,children:[(0,b.jsx)("div",{className:"w-1 hover:bg-[var(--brand-primary)] bg-[var(--border-default)] cursor-col-resize shrink-0 transition-colors duration-150",onMouseDown:C}),(0,b.jsx)("div",{className:"overflow-y-auto border-l border-[var(--border-default)]",style:{width:o},children:(0,b.jsx)(hb,{headings:l,scrollContainer:q.current})})]})]}):(0,b.jsx)("div",{className:"flex-1 p-4 text-[var(--text-muted)] text-sm",children:"読み込み中..."}):"history"===j?(0,b.jsx)("div",{className:"flex-1 overflow-y-auto",ref:q,children:(0,b.jsx)(ha,{filePath:a})}):(0,b.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,b.jsx)(hf,{currentPath:a,onNavigate:a=>e?.(a)})}),(0,b.jsx)(hd,{path:s,position:u,onNavigate:a=>{t(null),v(null),e?.(a)},onMouseEnter:A,onMouseLeave:B,fileRefs:d})]})}let hk=i("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),hl=i("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function hm({onSelect:a}){let[d,e]=(0,c.useState)(""),[f,g]=(0,c.useState)([]),[h,i]=(0,c.useState)(!1),[j,k]=(0,c.useState)(!1),l=(0,c.useRef)(null),m=(0,c.useRef)(null),n=(0,c.useRef)(null),o=(0,c.useCallback)(a=>{if(!a.trim()){g([]),k(!1);return}i(!0),fetch(`/api/search?q=${encodeURIComponent(a.trim())}`).then(a=>a.json()).then(a=>{g(a.results??[]),k(!0)}).catch(()=>g([])).finally(()=>i(!1))},[]);return(0,c.useEffect)(()=>{let a=a=>{"Escape"===a.key&&(k(!1),m.current?.blur())},b=a=>{n.current&&!n.current.contains(a.target)&&k(!1)};return window.addEventListener("keydown",a),document.addEventListener("mousedown",b),()=>{window.removeEventListener("keydown",a),document.removeEventListener("mousedown",b)}},[]),(0,b.jsxs)("div",{ref:n,className:"relative px-4 pt-4 pb-2",children:[(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(hk,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-[var(--text-muted)]"}),(0,b.jsx)("input",{ref:m,type:"text",value:d,onChange:a=>{var b;e(b=a.target.value),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>o(b),300)},onFocus:()=>{f.length>0&&k(!0)},placeholder:"ドキュメントを検索...",className:"w-full pl-8 pr-8 py-1.5 text-[12px] leading-normal rounded-md border border-[var(--border-default)] bg-[var(--bg-surface)] text-[var(--text-primary)] placeholder:text-[var(--text-muted)] focus:outline-none focus:ring-1 focus:ring-[var(--brand-primary)] focus:border-[var(--brand-primary)] transition-shadow"}),d&&(0,b.jsx)("button",{onClick:()=>{e(""),g([]),k(!1),m.current?.focus()},className:"absolute right-2 top-1/2 -translate-y-1/2 text-[var(--text-muted)] hover:text-[var(--text-secondary)]",children:(0,b.jsx)(hl,{size:14})})]}),j&&(0,b.jsx)("div",{className:"absolute left-4 right-4 top-full mt-1 z-40 bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-lg shadow-lg max-h-80 overflow-y-auto",children:h?(0,b.jsx)("div",{className:"p-3 text-xs text-[var(--text-muted)] text-center",children:"検索中..."}):0===f.length?(0,b.jsx)("div",{className:"p-3 text-xs text-[var(--text-muted)] text-center",children:"該当するドキュメントが見つかりません"}):f.map(c=>(0,b.jsxs)("button",{onClick:()=>{a(c.path),k(!1)},className:"w-full text-left px-3 py-2 hover:bg-[var(--bg-muted)] border-b border-[var(--border-default)] last:border-b-0 transition-colors",children:[(0,b.jsx)("div",{className:"text-[12px] font-medium text-[var(--text-primary)] truncate leading-snug",children:c.displayName}),(0,b.jsx)("div",{className:"text-[10px] text-[var(--text-muted)] font-[var(--font-mono)] truncate mb-1 leading-normal",children:c.path}),c.matches.slice(0,2).map(a=>(0,b.jsxs)("div",{className:"text-[10px] text-[var(--text-secondary)] truncate leading-relaxed",children:[(0,b.jsxs)("span",{className:"text-[var(--text-muted)] mr-1",children:["L",a.line]}),(0,b.jsx)(hn,{text:a.text,query:d})]},a.line))]},c.path))})]})}function hn({text:a,query:c}){if(!c.trim())return(0,b.jsx)(b.Fragment,{children:a});let d=a.toLowerCase().indexOf(c.toLowerCase());if(-1===d)return(0,b.jsx)(b.Fragment,{children:a});let e=a.slice(0,d),f=a.slice(d,d+c.length),g=a.slice(d+c.length);return(0,b.jsxs)(b.Fragment,{children:[e,(0,b.jsx)("span",{className:"bg-yellow-200 text-yellow-900 rounded px-0.5",children:f}),g]})}let ho=i("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);function hp({onNavigate:a,onClose:d}){let[e,f]=(0,c.useState)([]),[g,h]=(0,c.useState)(!0),[i,l]=(0,c.useState)(null),[n,o]=(0,c.useState)(null);(0,c.useEffect)(()=>{h(!0),fetch("/api/timeline").then(a=>a.json()).then(a=>{f(a.entries??[]),h(!1)}).catch(()=>h(!1))},[]),(0,c.useEffect)(()=>{let a=a=>{"Escape"===a.key&&d()};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[d]);let p=new Map;for(let a of e){let b=new Date(a.date).toLocaleDateString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit"}),c=p.get(b)??[];c.push(a),p.set(b,c)}return(0,b.jsx)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/40 backdrop-blur-sm",onClick:d,children:(0,b.jsxs)("div",{className:"bg-[var(--bg-surface)] rounded-lg shadow-2xl w-[90vw] max-w-4xl h-[85vh] flex flex-col overflow-hidden border border-[var(--border-default)]",onClick:a=>a.stopPropagation(),children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 px-5 py-3 border-b border-[var(--border-default)] shrink-0",children:[(0,b.jsx)(ho,{size:14,className:"text-[var(--brand-primary)]"}),(0,b.jsx)("h2",{className:"font-semibold text-[14px] text-[var(--text-primary)]",children:"変更タイムライン"}),(0,b.jsx)("span",{className:"text-[11px] text-[var(--text-muted)]",children:"リポジトリ全体の変更履歴"}),(0,b.jsx)("button",{onClick:d,className:"ml-auto p-1 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"閉じる (Esc)",children:(0,b.jsx)(hl,{size:16})})]}),(0,b.jsx)("div",{className:"flex-1 overflow-y-auto",children:g?(0,b.jsx)("div",{className:"h-full flex items-center justify-center text-[13px] text-[var(--text-muted)]",children:"タイムラインを読み込み中..."}):0===e.length?(0,b.jsx)("div",{className:"h-full flex items-center justify-center text-[13px] text-[var(--text-muted)]",children:"変更履歴がありません"}):Array.from(p.entries()).map(([c,d])=>(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"sticky top-0 z-10 bg-[var(--bg-base)] border-b border-[var(--border-default)] px-4 py-1.5",children:(0,b.jsx)("span",{className:"text-[11px] font-medium text-[var(--text-muted)] tracking-wide",children:c})}),d.map(c=>{let d=i===c.hash;return(0,b.jsxs)("div",{className:"border-b border-[var(--border-default)]",children:[(0,b.jsx)("button",{onClick:()=>l(d?null:c.hash),className:"w-full text-left px-4 py-2.5 hover:bg-[var(--bg-hover)] transition-colors",children:(0,b.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,b.jsx)(g8,{size:13,className:"text-[var(--text-muted)] mt-0.5 shrink-0"}),(0,b.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("span",{className:"text-[11px] font-[var(--font-mono)] text-[var(--brand-primary)] leading-none",children:c.hashShort}),(0,b.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:new Date(c.date).toLocaleTimeString("ja-JP",{hour:"2-digit",minute:"2-digit"})}),c.author&&(0,b.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:c.author})]}),(0,b.jsx)("p",{className:"text-[12px] text-[var(--text-secondary)] mt-1 leading-snug line-clamp-2",children:c.message}),(0,b.jsx)("div",{className:"flex items-center gap-1 mt-1.5",children:(0,b.jsxs)("span",{className:"text-[10px] text-[var(--text-muted)]",children:[c.files.length,"件のドキュメント変更"]})})]}),(0,b.jsx)("span",{className:"text-[var(--text-muted)] shrink-0 mt-0.5",children:d?(0,b.jsx)(j,{size:13}):(0,b.jsx)(k,{size:13})})]})}),d&&(0,b.jsx)("div",{className:"px-4 pb-3",children:(0,b.jsx)("div",{className:"space-y-1",children:c.files.map(d=>{let e=(d.split("/").pop()||d).replace(/^\d+[_\-.\s]/,"").replace(/\.md$/i,""),f=n?.hash===c.hash&&n?.file===d;return(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center gap-1.5 py-1 px-2 rounded hover:bg-[var(--bg-muted)] group",children:[(0,b.jsx)("button",{onClick:()=>o(f?null:{hash:c.hash,file:d}),className:"shrink-0 text-[var(--text-muted)] hover:text-[var(--text-primary)]",children:f?(0,b.jsx)(j,{size:12}):(0,b.jsx)(k,{size:12})}),(0,b.jsx)(m,{size:12,className:"shrink-0",style:{color:"var(--file-border)"}}),(0,b.jsx)("button",{onClick:()=>a(d),className:"text-[11px] text-[var(--text-secondary)] hover:text-[var(--brand-primary)] truncate text-left",title:d,children:e}),(0,b.jsx)("span",{className:"text-[10px] text-[var(--text-muted)] truncate ml-auto opacity-0 group-hover:opacity-100 transition-opacity",children:d})]}),f&&(0,b.jsx)("div",{className:"ml-6 mt-1 mb-2",children:(0,b.jsx)(g9,{filePath:d,hash:c.hash})})]},d)})})})]},c.hash)})]},c))})]})})}a.s(["default",0,function(){let[a,d]=(0,c.useState)([]),[e,f]=(0,c.useState)(""),[g,h]=(0,c.useState)(null),[i,j]=(0,c.useState)(260),[k,l]=(0,c.useState)(!1),m=(0,c.useRef)([]),o=(0,c.useCallback)(a=>{g&&a!==g&&m.current.push(g),h(a)},[g]),p=(0,c.useCallback)(()=>{let a=m.current.pop();a&&h(a)},[]),q=m.current.length>0;(0,c.useEffect)(()=>{fetch("/api/tree").then(a=>a.json()).then(a=>{d(a.tree??[]),f(a.root??"")})},[]),(0,c.useEffect)(()=>{let a=localStorage.getItem("markshelf:treeWidth");a&&j(Number(a)||260)},[]);let r=(0,c.useMemo)(()=>(function a(b){let c=[];for(let d of b)"file"===d.type&&c.push({path:d.path,displayName:d.displayName}),"folder"===d.type&&(d.hasReadme&&c.push({path:d.path+"/README.md",displayName:d.displayName}),d.children&&c.push(...a(d.children)));return c})(a),[a]),s=(0,c.useCallback)(a=>{a.preventDefault(),document.body.style.userSelect="none",document.body.style.cursor="col-resize";let b=a=>{let b=Math.max(180,Math.min(.4*window.innerWidth,a.clientX));j(b),localStorage.setItem("markshelf:treeWidth",String(b))},c=()=>{document.body.style.userSelect="",document.body.style.cursor="",document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",c)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",c)},[]);return(0,b.jsxs)("div",{className:"h-screen flex flex-col",children:[(0,b.jsxs)("header",{className:"h-11 border-b border-[var(--border-default)] bg-[var(--bg-surface)] flex items-center px-5 shrink-0 gap-3",children:[(0,b.jsxs)("span",{className:"font-semibold text-[15px] tracking-tight leading-none",children:["Mark",(0,b.jsx)("span",{className:"text-[var(--brand-primary)]",children:"Shelf"})]}),e&&(0,b.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] font-[var(--font-mono)] truncate leading-none",children:e}),(0,b.jsx)("div",{className:"ml-auto",children:(0,b.jsxs)("button",{onClick:()=>l(!k),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${k?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,b.jsx)(ho,{size:12}),"タイムライン"]})})]}),(0,b.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[(0,b.jsxs)("div",{className:"overflow-hidden flex flex-col shrink-0",style:{width:i},children:[(0,b.jsx)(hm,{onSelect:o}),(0,b.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,b.jsx)(n,{entries:a,selectedPath:g,onSelect:o})})]}),(0,b.jsx)("div",{className:"w-1.5 hover:bg-[var(--brand-primary)] bg-[var(--border-default)] cursor-col-resize shrink-0 transition-colors duration-150",onMouseDown:s}),(0,b.jsx)("div",{className:"flex-1 border-l border-[var(--border-default)] bg-[var(--bg-surface)] overflow-hidden flex flex-col",children:g?(0,b.jsx)(hj,{filePath:g,fileRefs:r,onNavigate:o,onGoBack:p,canGoBack:q}):(0,b.jsx)("div",{className:"p-6 text-[var(--text-muted)] text-sm flex items-center justify-center h-full",children:"ファイルをクリックして内容を表示"})})]}),k&&(0,b.jsx)(hp,{onNavigate:a=>{o(a),l(!1)},onClose:()=>l(!1)})]})}],40777)}];
|
|
11
|
+
</iframe>`},"putIntoIFrame"),gI=(0,d1.__name)((a,b,c,d,e)=>{let f=a.append("div");f.attr("id",c),d&&f.attr("style",d);let g=f.append("svg").attr("id",b).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg");return e&&g.attr("xmlns:xlink",e),g.append("g"),a},"appendDivSvgG");function gJ(a,b){return a.append("iframe").attr("id",b).attr("style","width: 100%; height: 100%;").attr("sandbox","")}(0,d1.__name)(gJ,"sandboxedIframe");var gK=(0,d1.__name)((a,b,c,d)=>{a.getElementById(b)?.remove(),a.getElementById(c)?.remove(),a.getElementById(d)?.remove()},"removeExistingElements"),gL=(0,d1.__name)(async function(a,b,c){let d,e;gl();let f=gB(b);b=f.code;let g=(0,d0.getConfig)();d1.log.debug(g),b.length>(g?.maxTextSize??5e4)&&(b="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa");let h="#"+a,i="i"+a,j="#"+i,k="d"+a,l="#"+k,m=(0,d1.__name)(()=>{let a=o?j:l,b=(0,d3.select)(a).node();b&&"remove"in b&&b.remove()},"removeTempElements"),n=(0,d3.select)("body"),o="sandbox"===g.securityLevel,p="loose"===g.securityLevel,q=g.fontFamily;if(void 0!==c){if(c&&(c.innerHTML=""),o){let a=gJ((0,d3.select)(c),i);(n=(0,d3.select)(a.nodes()[0].contentDocument.body)).node().style.margin=0}else n=(0,d3.select)(c);gI(n,a,k,`font-family: ${q}`,"http://www.w3.org/1999/xlink")}else{if(gK(document,a,k,i),o){let a=gJ((0,d3.select)("body"),i);(n=(0,d3.select)(a.nodes()[0].contentDocument.body)).node().style.margin=0}else n=(0,d3.select)("body");gI(n,a,k)}try{d=await gp.fromText(b,{title:f.title})}catch(a){if(g.suppressErrorRendering)throw m(),a;d=await gp.fromText("error"),e=a}let r=n.select(l).node(),s=d.type,t=r.firstChild,u=t.firstChild,v=gF(g,s,d.renderer.getClasses?.(b,d),h),w=document.createElement("style");w.innerHTML=v,t.insertBefore(w,u);try{await d.renderer.draw(b,a,"11.14.0",d)}catch(c){throw g.suppressErrorRendering?m():fq.draw(b,a,"11.14.0"),c}gO(s,n.select(`${l} svg`),d.db.getAccTitle?.(),d.db.getAccDescription?.()),n.select(`[id="${a}"]`).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");let x=n.select(l).node().innerHTML;if(d1.log.debug("config.arrowMarkerAbsolute",g.arrowMarkerAbsolute),x=gG(x,o,(0,d0.evaluate)(g.arrowMarkerAbsolute)),o?x=gH(x,n.select(l+" svg").node()):p||(x=et.default.sanitize(x,{ADD_TAGS:gz,ADD_ATTR:gA,HTML_INTEGRATION_POINTS:{foreignobject:!0}})),gr(),e)throw e;return m(),{diagramType:s,svg:x,bindFunctions:d.db.bindFunctions}},"render");function gM(a={}){let b=(0,d0.assignWithDepth_default)({},a);b?.fontFamily&&!b.themeVariables?.fontFamily&&(b.themeVariables||(b.themeVariables={}),b.themeVariables.fontFamily=b.fontFamily),(0,d0.saveConfigFromInitialize)(b),b?.theme&&b.theme in d0.themes_default?b.themeVariables=d0.themes_default[b.theme].getThemeVariables(b.themeVariables):b&&(b.themeVariables=d0.themes_default.default.getThemeVariables(b.themeVariables));let c="object"==typeof b?(0,d0.setSiteConfig)(b):(0,d0.getSiteConfig)();(0,d1.setLogLevel)(c.logLevel),gl()}(0,d1.__name)(gM,"initialize");var gN=(0,d1.__name)((a,b={})=>{let{code:c}=gx(a);return gp.fromText(c,b)},"getDiagramFromText");function gO(a,b,c,d){gn(b,a),go(b,c,d,b.attr("id"))}(0,d1.__name)(gO,"addA11yInfo");var gP=Object.freeze({render:gL,parse:gC,getDiagramFromText:gN,initialize:gM,getConfig:d0.getConfig,setConfig:d0.setConfig,getSiteConfig:d0.getSiteConfig,updateSiteConfig:d0.updateSiteConfig,reset:(0,d1.__name)(()=>{(0,d0.reset)()},"reset"),globalReset:(0,d1.__name)(()=>{(0,d0.reset)(d0.defaultConfig)},"globalReset"),defaultConfig:d0.defaultConfig});(0,d1.setLogLevel)((0,d0.getConfig)().logLevel),(0,d0.reset)((0,d0.getConfig)());var gQ=(0,d1.__name)((a,b,c)=>{d1.log.warn(a),(0,d_.isDetailedError)(a)?(c&&c(a.str,a.hash),b.push({...a,message:a.str,error:a})):(c&&c(a),a instanceof Error&&b.push({str:a.message,message:a.message,hash:a.name,error:a}))},"handleError"),gR=(0,d1.__name)(async function(a={querySelector:".mermaid"}){try{await gS(a)}catch(b){if((0,d_.isDetailedError)(b)&&d1.log.error(b.str),g2.parseError&&g2.parseError(b),!a.suppressErrors)throw d1.log.error("Use the suppressErrors option to suppress these errors"),b}},"run"),gS=(0,d1.__name)(async function({postRenderCallback:a,querySelector:b,nodes:c}={querySelector:".mermaid"}){let d,e,f=gP.getConfig();if(d1.log.debug(`${!a?"No ":""}Callback function found`),c)d=c;else if(b)d=document.querySelectorAll(b);else throw Error("Nodes and querySelector are both undefined");d1.log.debug(`Found ${d.length} diagrams`),f?.startOnLoad!==void 0&&(d1.log.debug("Start On Load: "+f?.startOnLoad),gP.updateSiteConfig({startOnLoad:f?.startOnLoad}));let g=new d_.utils_default.InitIDGenerator(f.deterministicIds,f.deterministicIDSeed),h=[];for(let b of Array.from(d)){if(d1.log.info("Rendering diagram: "+b.id),b.getAttribute("data-processed"))continue;b.setAttribute("data-processed","true");let c=`mermaid-${g.next()}`;e=b.innerHTML,e=(0,d2.dedent)(d_.utils_default.entityDecode(e)).trim().replace(/<br\s*\/?>/gi,"<br/>");let d=d_.utils_default.detectInit(e);d&&d1.log.debug("Detected early reinit: ",d);try{let{svg:d,bindFunctions:f}=await g0(c,e,b);b.innerHTML=d,a&&await a(c),f&&f(b)}catch(a){gQ(a,h,g2.parseError)}}if(h.length>0)throw h[0]},"runThrowsErrors"),gT=(0,d1.__name)(function(a){gP.initialize(a)},"initialize"),gU=(0,d1.__name)(async function(a,b,c){d1.log.warn("mermaid.init is deprecated. Please use run instead."),a&&gT(a);let d={postRenderCallback:c,querySelector:".mermaid"};"string"==typeof b?d.querySelector=b:b&&(b instanceof HTMLElement?d.nodes=[b]:d.nodes=b),await gR(d)},"init"),gV=(0,d1.__name)(async(a,{lazyLoad:b=!0}={})=>{gl(),(0,d0.registerLazyLoadedDiagrams)(...a),!1===b&&await gm()},"registerExternalDiagrams"),gW=(0,d1.__name)(function(){if(g2.startOnLoad){let{startOnLoad:a}=gP.getConfig();a&&g2.run().catch(a=>d1.log.error("Mermaid failed to initialize",a))}},"contentLoaded");"u">typeof document&&window.addEventListener("load",gW,!1);var gX=(0,d1.__name)(function(a){g2.parseError=a},"setParseErrorHandler"),gY=[],gZ=!1,g$=(0,d1.__name)(async()=>{if(!gZ){for(gZ=!0;gY.length>0;){let a=gY.shift();if(a)try{await a()}catch(a){d1.log.error("Error executing queue",a)}}gZ=!1}},"executeQueue"),g_=(0,d1.__name)(async(a,b)=>new Promise((c,d)=>{let e=(0,d1.__name)(()=>new Promise((e,f)=>{gP.parse(a,b).then(a=>{e(a),c(a)},a=>{d1.log.error("Error parsing",a),g2.parseError?.(a),f(a),d(a)})}),"performCall");gY.push(e),g$().catch(d)}),"parse"),g0=(0,d1.__name)((a,b,c)=>new Promise((d,e)=>{let f=(0,d1.__name)(()=>new Promise((f,g)=>{gP.render(a,b,c).then(a=>{f(a),d(a)},a=>{d1.log.error("Error parsing",a),g2.parseError?.(a),g(a),e(a)})}),"performCall");gY.push(f),g$().catch(e)}),"render"),g1=(0,d1.__name)(()=>Object.keys(d0.detectors).map(a=>({id:a})),"getRegisteredDiagramsMetadata"),g2={startOnLoad:!0,mermaidAPI:gP,parse:g_,render:g0,init:gU,run:gR,registerExternalDiagrams:gV,registerLayoutLoaders:dZ.registerLayoutLoaders,initialize:gT,parseError:void 0,contentLoaded:gW,setParseErrorHandler:gX,detectType:d0.detectType,registerIconPacks:d$.registerIconPacks,getRegisteredDiagramsMetadata:g1};let g3=!1,g4=0;function g5({code:a}){let d=(0,c.useRef)(null),[e,f]=(0,c.useState)(null),[g,h]=(0,c.useState)(null),i=(0,c.useRef)(`mermaid-${++g4}`);return((0,c.useEffect)(()=>{let b=!1;return g3||(g3=!0,g2.initialize({startOnLoad:!1,theme:"default",securityLevel:"loose",fontFamily:"system-ui, sans-serif"})),(async()=>{try{let{svg:c}=await g2.render(i.current,a);b||(f(c),h(null))}catch(c){b||(h(c instanceof Error?c.message:"Mermaid render error"),f(null));let a=document.getElementById("d"+i.current);a?.remove()}})(),()=>{b=!0}},[a]),g)?(0,b.jsxs)("div",{className:"border border-red-200 bg-red-50 rounded p-3 text-xs text-red-700",children:[(0,b.jsx)("div",{className:"font-medium mb-1",children:"Mermaid エラー"}),(0,b.jsx)("pre",{className:"whitespace-pre-wrap",children:a})]}):e?(0,b.jsx)("div",{ref:d,className:"my-2 overflow-x-auto",dangerouslySetInnerHTML:{__html:e}}):(0,b.jsx)("div",{className:"text-xs text-[var(--text-muted)] py-2",children:"図を描画中..."})}function g6(a){return a.toLowerCase().replace(/[^\p{L}\p{N}\s-]/gu,"").replace(/\s+/g,"-").replace(/-+/g,"-").trim()}function g7({children:a,onHeadingsExtracted:d,fileRefs:e,currentPath:f,onNavigate:g,onPreviewShow:h,onPreviewHide:i}){let j=(0,c.useMemo)(()=>(function(a){let b,c=[],d=new Map,e=/^(#{1,4})\s+(.+)$/gm;for(;null!==(b=e.exec(a));){let a=b[1].length,e=b[2].replace(/[#*_`[\]]/g,"").trim(),f=g6(e)||"heading",g=d.get(f)??0;d.set(f,g+1);let h=0===g?f:`${f}-${g}`;c.push({id:h,text:e,level:a})}return c})(a),[a]),k=(0,c.useMemo)(()=>{let a=new Map;for(let b of j){let c=a.get(b.text)??[];c.push(b.id),a.set(b.text,c)}return a},[j]),l=(0,c.useMemo)(()=>new Map,[j]);(0,c.useEffect)(()=>{d?.(j)},[j,d]);let m=(0,c.useMemo)(()=>{if(!e||0===e.length)return null;let a=new Map;for(let b of e.filter(a=>a.displayName.length>2&&a.path!==f).sort((a,b)=>b.displayName.length-a.displayName.length))a.set(b.displayName,b.path);return a},[e,f]),n=(0,c.useMemo)(()=>{if(!m||0===m.size)return null;let a=Array.from(m.keys()).map(a=>a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"));return RegExp(`(${a.join("|")})`,"g")},[m]);function o(a){return function(c){let d=function(a){let b=k.get(a);if(!b)return g6(a)||"heading";let c=l.get(a)??0;return l.set(a,c+1),b[c%b.length]}("string"==typeof c.children?c.children:function a(b){return"string"==typeof b?b:"number"==typeof b?String(b):Array.isArray(b)?b.map(a).join(""):b&&"object"==typeof b&&"props"in b?a(b.props.children):""}(c.children)),e={...c,id:d};switch(a){case 1:return(0,b.jsx)("h1",{...e});case 2:return(0,b.jsx)("h2",{...e});case 3:return(0,b.jsx)("h3",{...e});default:return(0,b.jsx)("h4",{...e})}}}let p={h1:o(1),h2:o(2),h3:o(3),h4:o(4),code:({className:a,children:c,...d})=>{if(/language-mermaid/.exec(a||"")){let a=String(c).replace(/\n$/,"");return(0,b.jsx)(g5,{code:a})}return(0,b.jsx)("code",{className:a,...d,children:c})},pre:({children:a})=>a&&"object"==typeof a&&"type"in a&&a.type===g5?(0,b.jsx)(b.Fragment,{children:a}):(0,b.jsx)("pre",{children:a}),a:({href:a,children:c,...d})=>{if(a?.startsWith("autolink:")){let d=a.slice(9);return(0,b.jsx)("span",{className:"text-[var(--brand-primary)] border-b border-dashed border-[var(--brand-primary)] cursor-pointer hover:bg-blue-50 transition-colors",onClick:a=>{a.preventDefault(),i?.(),g?.(d)},onMouseEnter:a=>{let b=a.target.getBoundingClientRect();h?.(d,b)},onMouseLeave:()=>i?.(),children:c})}return(0,b.jsx)("a",{href:a,...d,children:c})},p:({children:a,...c})=>(0,b.jsx)("p",{...c,children:q(a)}),li:({children:a,...c})=>(0,b.jsx)("li",{...c,children:q(a)}),td:({children:a,...c})=>(0,b.jsx)("td",{...c,children:q(a)})};function q(a){return n&&m?"string"==typeof a?r(a):Array.isArray(a)?a.map((a,c)=>"string"==typeof a?(0,b.jsx)("span",{children:r(a)},c):a):a:a}function r(a){let c;if(!n||!m)return a;let d=[],e=0;for(n.lastIndex=0;null!==(c=n.exec(a));){let f=c[0],j=m.get(f);j&&(c.index>e&&d.push(a.slice(e,c.index)),d.push((0,b.jsx)("span",{className:"text-[var(--brand-primary)] border-b border-dashed border-[var(--brand-primary)] cursor-pointer hover:bg-blue-50 transition-colors",onClick:a=>{a.preventDefault(),i?.(),g?.(j)},onMouseEnter:a=>{let b=a.target.getBoundingClientRect();h?.(j,b)},onMouseLeave:()=>i?.(),children:f},`${c.index}-${f}`)),e=c.index+f.length)}return e<a.length&&d.push(a.slice(e)),0===d.length?a:d}return(0,b.jsx)("div",{className:"prose prose-sm max-w-none prose-headings:font-semibold prose-headings:tracking-tight prose-headings:text-[var(--text-primary)] prose-h1:text-lg prose-h1:leading-snug prose-h1:mb-4 prose-h2:text-[15px] prose-h2:leading-snug prose-h2:border-b prose-h2:border-[var(--border-default)] prose-h2:pb-2 prose-h2:mt-8 prose-h2:mb-3 prose-h3:text-[13px] prose-h3:leading-snug prose-h3:mt-6 prose-h3:mb-2 prose-p:text-[var(--text-secondary)] prose-p:text-[13px] prose-p:leading-[1.75] prose-li:text-[var(--text-secondary)] prose-li:text-[13px] prose-li:leading-[1.75] prose-strong:text-[var(--text-primary)] prose-strong:font-semibold prose-a:text-[var(--brand-primary)] prose-a:font-medium prose-a:no-underline hover:prose-a:underline prose-code:text-xs prose-code:text-[var(--text-primary)] prose-code:bg-[var(--bg-muted)] prose-code:px-1 prose-code:py-0.5 prose-code:rounded prose-code:before:content-none prose-code:after:content-none prose-pre:bg-[var(--bg-muted)] prose-pre:text-xs prose-pre:text-[var(--text-primary)] prose-table:text-[12px] prose-th:bg-[var(--bg-muted)] prose-th:text-[var(--text-primary)] prose-th:font-semibold prose-th:px-3 prose-th:py-1.5 prose-th:text-left prose-td:px-3 prose-td:py-1.5 prose-td:border-[var(--border-default)] prose-td:text-[var(--text-secondary)] prose-hr:border-[var(--border-default)] prose-blockquote:border-l-[var(--brand-primary)] prose-blockquote:text-[var(--text-muted)] prose-blockquote:not-italic prose-img:rounded-lg ",children:(0,b.jsx)(cK,{remarkPlugins:[dW],components:p,children:a})})}let g8=i("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);function g9({filePath:a,hash:d}){let[e,f]=(0,c.useState)(null);return((0,c.useEffect)(()=>{f(null),fetch(`/api/diff?path=${encodeURIComponent(a)}&hash=${d}`).then(a=>a.json()).then(a=>f(a.diff)).catch(()=>f("(差分を取得できませんでした)"))},[a,d]),null===e)?(0,b.jsx)("div",{className:"text-[12px] text-[var(--text-muted)] py-2",children:"差分を読み込み中..."}):(0,b.jsx)("pre",{className:"text-[11px] font-[var(--font-mono)] bg-[var(--bg-muted)] rounded-lg p-3 overflow-x-auto leading-[1.7] border border-[var(--border-default)]",children:e.split("\n").filter(a=>!a.startsWith("diff --git")&&!a.startsWith("index ")&&!a.startsWith("new file")&&!a.startsWith("deleted file")&&!a.startsWith("similarity")&&!a.startsWith("rename ")&&!a.startsWith("old mode")&&!a.startsWith("new mode")).map((a,c)=>{let d="var(--text-secondary)",e="transparent";return a.startsWith("+")&&!a.startsWith("+++")?(d="var(--add-color)",e="var(--add-bg)"):a.startsWith("-")&&!a.startsWith("---")?(d="var(--del-color)",e="var(--del-bg)"):a.startsWith("@@")&&(d="var(--brand-primary)"),(0,b.jsx)("div",{style:{color:d,backgroundColor:e},className:"px-1 -mx-1 rounded-sm",children:a},c)})})}function ha({filePath:a}){let[d,e]=(0,c.useState)([]),[f,g]=(0,c.useState)(!0),[h,i]=(0,c.useState)(null);return((0,c.useEffect)(()=>{g(!0),i(null),fetch(`/api/history?path=${encodeURIComponent(a)}`).then(a=>a.json()).then(a=>{e(a),g(!1)}).catch(()=>g(!1))},[a]),f)?(0,b.jsx)("div",{className:"p-4 text-[var(--text-muted)] text-[13px]",children:"読み込み中..."}):0===d.length?(0,b.jsx)("div",{className:"p-4 text-[var(--text-muted)] text-[13px]",children:"変更履歴がありません(git 管理外の可能性)"}):(0,b.jsx)("div",{className:"divide-y divide-[var(--border-default)]",children:d.map(c=>{let d=h===c.hash;return(0,b.jsxs)("div",{children:[(0,b.jsx)("button",{onClick:()=>i(d?null:c.hash),className:"w-full text-left px-4 py-3 hover:bg-[var(--bg-hover)] transition-colors",children:(0,b.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,b.jsx)(g8,{size:13,className:"text-[var(--text-muted)] mt-0.5 shrink-0"}),(0,b.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("span",{className:"text-[11px] font-[var(--font-mono)] text-[var(--brand-primary)] leading-none",children:c.hashShort}),(0,b.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:new Date(c.date).toLocaleString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}),c.author&&(0,b.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:c.author})]}),(0,b.jsx)("p",{className:"text-[12px] text-[var(--text-secondary)] mt-1 leading-snug line-clamp-2",children:c.message})]}),(0,b.jsx)("span",{className:"text-[var(--text-muted)] shrink-0 mt-0.5",children:d?(0,b.jsx)(j,{size:13}):(0,b.jsx)(k,{size:13})})]})}),d&&(0,b.jsx)("div",{className:"px-4 pb-3",children:(0,b.jsx)(g9,{filePath:a,hash:c.hash})})]},c.hash)})})}function hb({headings:a,scrollContainer:d}){let[e,f]=(0,c.useState)(null),g=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(!d||0===a.length)return;g.current?.disconnect();let b=new IntersectionObserver(a=>{for(let b of a)b.isIntersecting&&f(b.target.id)},{root:d,rootMargin:"0px 0px -70% 0px",threshold:.1});for(let c of(g.current=b,a)){let a=document.getElementById(c.id);a&&b.observe(a)}return()=>b.disconnect()},[a,d]);let h=(0,c.useCallback)(a=>{let b=document.getElementById(a);b&&(b.scrollIntoView({behavior:"smooth",block:"start"}),f(a))},[]);return 0===a.length?null:(0,b.jsxs)("nav",{className:"py-3 px-2 space-y-px",children:[(0,b.jsx)("div",{className:"text-[10px] font-medium text-[var(--text-muted)] tracking-wider uppercase px-1.5 mb-1.5",children:"目次"}),a.map(a=>(0,b.jsx)("button",{onClick:()=>h(a.id),className:`block w-full text-left text-[11px] leading-relaxed py-0.5 truncate transition-colors rounded px-1.5 ${e===a.id?"text-[var(--brand-primary)] font-medium bg-blue-50":"text-[var(--text-muted)] hover:text-[var(--text-secondary)] hover:bg-[var(--bg-hover)]"}`,style:{paddingLeft:`${(a.level-1)*10+6}px`},title:a.text,children:a.text},a.id))]})}let hc=i("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);function hd({path:a,position:d,onNavigate:e,onMouseEnter:f,onMouseLeave:g,fileRefs:h,depth:i=0}){let[j,k]=(0,c.useState)(null),[l,m]=(0,c.useState)(!1),n=(0,c.useRef)(null),[o,p]=(0,c.useState)(null),[q,r]=(0,c.useState)(null),[s,t]=(0,c.useState)(null),u=(0,c.useRef)(null),v=(0,c.useRef)(null);(0,c.useEffect)(()=>{if(u.current&&clearTimeout(u.current),v.current&&clearTimeout(v.current),!a){k(null),r(null),t(null);return}m(!0),k(null),r(null),t(null),fetch(`/api/file?path=${encodeURIComponent(a)}`).then(a=>a.json()).then(a=>k(a.content??null)).catch(()=>k(null)).finally(()=>m(!1))},[a]),(0,c.useEffect)(()=>{if(!d||!n.current)return void p(d);let a=n.current.getBoundingClientRect(),b=window.innerWidth,c=window.innerHeight,{x:e,y:f}=d;e+a.width>b-16&&(e=b-a.width-16),e<16&&(e=16),f+a.height>c-16&&(f=d.y-a.height-8),p({x:e,y:f})},[d,j]);let w=(0,c.useCallback)((a,b)=>{i>=3||(v.current&&clearTimeout(v.current),u.current&&clearTimeout(u.current),u.current=setTimeout(()=>{r(a),t({x:b.right+8,y:b.top})},200))},[i]),x=(0,c.useCallback)(()=>{u.current&&clearTimeout(u.current),v.current&&clearTimeout(v.current),v.current=setTimeout(()=>{r(null),t(null)},300)},[]),y=(0,c.useCallback)(()=>{v.current&&clearTimeout(v.current),f()},[f]),z=(0,c.useCallback)(()=>{x(),g()},[x,g]);if(!a||!d)return null;let A=a.split("/").pop()?.replace(/\.md$/i,"")||a;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("div",{ref:n,onMouseEnter:f,onMouseLeave:()=>{g(),x()},className:"fixed bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-lg shadow-xl w-[480px] max-h-[420px] overflow-y-auto",style:{left:o?.x??d.x,top:o?.y??d.y,zIndex:50+i},children:[(0,b.jsx)("div",{className:"sticky top-0 bg-[var(--bg-surface)] border-b border-[var(--border-default)] px-3 py-2 flex items-center gap-2",children:(0,b.jsxs)("button",{onClick:()=>e(a),className:"text-xs font-medium text-[var(--brand-primary)] hover:underline truncate flex items-center gap-1",children:[A,(0,b.jsx)(hc,{size:10})]})}),(0,b.jsx)("div",{className:"p-3",children:l?(0,b.jsx)("div",{className:"text-xs text-[var(--text-muted)]",children:"読み込み中..."}):j?(0,b.jsx)("div",{className:"text-[11px]",children:(0,b.jsx)(g7,{fileRefs:h,currentPath:a,onNavigate:e,onPreviewShow:w,onPreviewHide:x,children:j})}):(0,b.jsx)("div",{className:"text-xs text-[var(--text-muted)]",children:"プレビューを表示できません"})})]}),(0,b.jsx)(hd,{path:q,position:s,onNavigate:e,onMouseEnter:y,onMouseLeave:z,fileRefs:h,depth:i+1})]})}var he=a.i(22034);let hf="markshelf:linkGraphDepth",hg=[{value:1,label:"1階層"},{value:2,label:"2階層"},{value:3,label:"3階層"},{value:1/0,label:"全階層"}];function hh({currentPath:a,onNavigate:d}){let e=(0,c.useRef)(null),f=(0,c.useRef)(null),[g,h]=(0,c.useState)(!0),[i,j]=(0,c.useState)(!1),[k,l]=(0,c.useState)(!1),[m,n]=(0,c.useState)(1);return(0,c.useEffect)(()=>{let a=localStorage.getItem(hf);if(null===a)return;let b="all"===a?1/0:Number(a);(Number.isFinite(b)||b===1/0)&&n(b)},[]),(0,c.useEffect)(()=>{let b=!1;return h(!0),j(!1),l(!1),fetch("/api/graph").then(a=>a.json()).then(c=>{if(b||!e.current)return;let g=new Map;for(let a of c.edges)(g.get(a.source)??g.set(a.source,[]).get(a.source)).push(a.target),(g.get(a.target)??g.set(a.target,[]).get(a.target)).push(a.source);let i=new Set([a]),k=[[a,0]];for(;k.length>0;){let[a,b]=k.shift();if(!(b>=m))for(let c of g.get(a)??[])i.has(c)||(i.add(c),k.push([c,b+1]))}let n=c.nodes.filter(a=>i.has(a.id)),o=c.edges.filter(a=>i.has(a.source)&&i.has(a.target)),p=new Set;for(let a of o)p.add(a.target);let q=n.map(a=>a.id).filter(a=>!p.has(a));if(0===n.length){j(!0),h(!1);return}f.current?.destroy();let r=(0,he.default)({container:e.current,elements:[...n.map(b=>({data:{id:b.id,label:b.label,isCurrent:b.id===a}})),...o.map((a,b)=>({data:{id:`e${b}`,source:a.source,target:a.target}}))],style:[{selector:"node",style:{label:"data(label)","text-valign":"bottom","text-halign":"center","font-size":"11px","font-family":"var(--font-sans)",color:"#4a5060","text-margin-y":6,"background-color":"#e8f0fe","border-width":2,"border-color":"#3b7ddb",width:28,height:28,"text-max-width":"180px","text-wrap":"ellipsis",cursor:"pointer"}},{selector:"node[?isCurrent]",style:{"background-color":"#2563eb","border-color":"#1d4ed8",color:"#1a1d23","font-weight":"bold",width:36,height:36}},{selector:"edge",style:{width:1.5,"line-color":"#c8ccd3","target-arrow-color":"#c8ccd3","target-arrow-shape":"triangle","curve-style":"bezier","arrow-scale":.8}},{selector:"node:active",style:{"overlay-opacity":0}}],layout:{name:"breadthfirst",animate:!1,padding:50,spacingFactor:1.2,directed:!0,grid:!1,roots:q.length>0?q:[a]},userZoomingEnabled:!0,userPanningEnabled:!0,boxSelectionEnabled:!1,autoungrabify:!1});requestAnimationFrame(()=>{r.resize(),r.fit(void 0,50),r.zoom()>1.2&&r.zoom({level:1.2,renderedPosition:{x:e.current.clientWidth/2,y:e.current.clientHeight/2}}),r.center(r.nodes("[?isCurrent]")),l(!0)}),r.on("mouseover","node",a=>{let b=a.target;b.data("isCurrent")||b.style({"background-color":"#dbeafe","border-color":"#2563eb",color:"#1a1d23"}),e.current.style.cursor="pointer"}),r.on("mouseout","node",a=>{let b=a.target;b.data("isCurrent")||b.style({"background-color":"#e8f0fe","border-color":"#3b7ddb",color:"#4a5060"}),e.current.style.cursor="default"}),r.on("tap","node",b=>{let c=b.target.id();c!==a&&d(c)}),f.current=r,h(!1)}).catch(()=>{b||(j(!0),h(!1))}),()=>{b=!0,f.current?.destroy(),f.current=null}},[a,d,m]),(0,b.jsxs)("div",{className:"h-full flex flex-col relative",children:[(0,b.jsxs)("div",{className:"flex items-center gap-1.5 px-3 py-2 shrink-0",children:[(0,b.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] mr-1",children:"表示範囲"}),hg.map(a=>{let c=m===a.value;return(0,b.jsx)("button",{onClick:()=>{var b;n(b=a.value),localStorage.setItem(hf,b===1/0?"all":String(b))},className:`px-2 py-0.5 rounded-md text-[11px] font-medium transition-colors ${c?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:a.label},a.label)})]}),(g||i)&&(0,b.jsx)("div",{className:"absolute inset-0 flex items-center justify-center text-[13px] text-[var(--text-muted)] z-10 bg-[var(--bg-surface)]",children:g?"グラフを構築中...":"このドキュメントへのリンクはありません"}),(0,b.jsx)("div",{ref:e,className:"flex-1 min-h-0 transition-opacity duration-150",style:{opacity:+!!k}})]})}let hi=i("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]),hj=i("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]),hk=i("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);function hl({filePath:a,fileRefs:d,onNavigate:e,onGoBack:f,canGoBack:g}){let[h,i]=(0,c.useState)(null),[j,k]=(0,c.useState)("content"),[l,n]=(0,c.useState)([]),[o,p]=(0,c.useState)(()=>176),q=(0,c.useRef)(null),r=(0,c.useRef)(null),[s,t]=(0,c.useState)(null),[u,v]=(0,c.useState)(null),w=(0,c.useRef)(null),x=(0,c.useRef)(null);(0,c.useEffect)(()=>{i(null),n([]),w.current&&clearTimeout(w.current),x.current&&clearTimeout(x.current),t(null),v(null),fetch(`/api/file?path=${encodeURIComponent(a)}`).then(a=>a.json()).then(a=>i(a.content??null)).catch(()=>i(null))},[a]);let y=(0,c.useCallback)((a,b)=>{x.current&&clearTimeout(x.current),w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{t(a),v({x:b.left,y:b.bottom+4})},200)},[]),z=(0,c.useCallback)(()=>{w.current&&clearTimeout(w.current),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{t(null),v(null)},300)},[]),A=(0,c.useCallback)(()=>{x.current&&clearTimeout(x.current)},[]),B=(0,c.useCallback)(()=>{z()},[z]),C=(0,c.useCallback)(a=>{a.preventDefault(),document.body.style.userSelect="none",document.body.style.cursor="col-resize";let b=r.current?.parentElement,c=a=>{if(!b)return;let c=Math.max(120,Math.min(400,b.getBoundingClientRect().right-a.clientX));p(c),localStorage.setItem("markshelf:tocWidth",String(c))},d=()=>{document.body.style.userSelect="",document.body.style.cursor="",document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",d)};document.addEventListener("mousemove",c),document.addEventListener("mouseup",d)},[]),D=a.split("/").pop()?.replace(/\.md$/i,"")||a;return(0,b.jsxs)("div",{className:"flex flex-col h-full",children:[(0,b.jsxs)("div",{className:"border-b border-[var(--border-default)] px-4 py-2.5 shrink-0",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[g&&(0,b.jsx)("button",{onClick:f,className:"shrink-0 p-0.5 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"戻る",children:(0,b.jsx)(hk,{size:14})}),(0,b.jsx)("h2",{className:"font-semibold text-[14px] leading-snug truncate text-[var(--text-primary)]",children:D})]}),(0,b.jsxs)("div",{className:"flex gap-1",children:[(0,b.jsxs)("button",{onClick:()=>k("content"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"content"===j?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,b.jsx)(m,{size:12}),"内容"]}),(0,b.jsxs)("button",{onClick:()=>k("history"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"history"===j?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,b.jsx)(hi,{size:12}),"変更履歴"]}),(0,b.jsxs)("button",{onClick:()=>k("links"),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${"links"===j?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,b.jsx)(hj,{size:12}),"リンク"]})]})]}),"content"===j?null!==h?(0,b.jsxs)("div",{className:"flex-1 flex overflow-hidden",children:[(0,b.jsx)("div",{className:"flex-1 overflow-y-auto",ref:q,children:(0,b.jsx)("div",{className:"p-4",children:(0,b.jsx)(g7,{onHeadingsExtracted:n,fileRefs:d,currentPath:a,onNavigate:e,onPreviewShow:y,onPreviewHide:z,children:h})})}),l.length>0&&(0,b.jsxs)("div",{className:"flex shrink-0",ref:r,children:[(0,b.jsx)("div",{className:"w-1 hover:bg-[var(--brand-primary)] bg-[var(--border-default)] cursor-col-resize shrink-0 transition-colors duration-150",onMouseDown:C}),(0,b.jsx)("div",{className:"overflow-y-auto border-l border-[var(--border-default)]",style:{width:o},children:(0,b.jsx)(hb,{headings:l,scrollContainer:q.current})})]})]}):(0,b.jsx)("div",{className:"flex-1 p-4 text-[var(--text-muted)] text-sm",children:"読み込み中..."}):"history"===j?(0,b.jsx)("div",{className:"flex-1 overflow-y-auto",ref:q,children:(0,b.jsx)(ha,{filePath:a})}):(0,b.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,b.jsx)(hh,{currentPath:a,onNavigate:a=>e?.(a)})}),(0,b.jsx)(hd,{path:s,position:u,onNavigate:a=>{t(null),v(null),e?.(a)},onMouseEnter:A,onMouseLeave:B,fileRefs:d})]})}let hm=i("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),hn=i("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function ho({onSelect:a}){let[d,e]=(0,c.useState)(""),[f,g]=(0,c.useState)([]),[h,i]=(0,c.useState)(!1),[j,k]=(0,c.useState)(!1),l=(0,c.useRef)(null),m=(0,c.useRef)(null),n=(0,c.useRef)(null),o=(0,c.useCallback)(a=>{if(!a.trim()){g([]),k(!1);return}i(!0),fetch(`/api/search?q=${encodeURIComponent(a.trim())}`).then(a=>a.json()).then(a=>{g(a.results??[]),k(!0)}).catch(()=>g([])).finally(()=>i(!1))},[]);return(0,c.useEffect)(()=>{let a=a=>{"Escape"===a.key&&(k(!1),m.current?.blur())},b=a=>{n.current&&!n.current.contains(a.target)&&k(!1)};return window.addEventListener("keydown",a),document.addEventListener("mousedown",b),()=>{window.removeEventListener("keydown",a),document.removeEventListener("mousedown",b)}},[]),(0,b.jsxs)("div",{ref:n,className:"relative px-4 pt-4 pb-2",children:[(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(hm,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-[var(--text-muted)]"}),(0,b.jsx)("input",{ref:m,type:"text",value:d,onChange:a=>{var b;e(b=a.target.value),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>o(b),300)},onFocus:()=>{f.length>0&&k(!0)},placeholder:"ドキュメントを検索...",className:"w-full pl-8 pr-8 py-1.5 text-[12px] leading-normal rounded-md border border-[var(--border-default)] bg-[var(--bg-surface)] text-[var(--text-primary)] placeholder:text-[var(--text-muted)] focus:outline-none focus:ring-1 focus:ring-[var(--brand-primary)] focus:border-[var(--brand-primary)] transition-shadow"}),d&&(0,b.jsx)("button",{onClick:()=>{e(""),g([]),k(!1),m.current?.focus()},className:"absolute right-2 top-1/2 -translate-y-1/2 text-[var(--text-muted)] hover:text-[var(--text-secondary)]",children:(0,b.jsx)(hn,{size:14})})]}),j&&(0,b.jsx)("div",{className:"absolute left-4 right-4 top-full mt-1 z-40 bg-[var(--bg-surface)] border border-[var(--border-default)] rounded-lg shadow-lg max-h-80 overflow-y-auto",children:h?(0,b.jsx)("div",{className:"p-3 text-xs text-[var(--text-muted)] text-center",children:"検索中..."}):0===f.length?(0,b.jsx)("div",{className:"p-3 text-xs text-[var(--text-muted)] text-center",children:"該当するドキュメントが見つかりません"}):f.map(c=>(0,b.jsxs)("button",{onClick:()=>{a(c.path),k(!1)},className:"w-full text-left px-3 py-2 hover:bg-[var(--bg-muted)] border-b border-[var(--border-default)] last:border-b-0 transition-colors",children:[(0,b.jsx)("div",{className:"text-[12px] font-medium text-[var(--text-primary)] truncate leading-snug",children:c.displayName}),(0,b.jsx)("div",{className:"text-[10px] text-[var(--text-muted)] font-[var(--font-mono)] truncate mb-1 leading-normal",children:c.path}),c.matches.slice(0,2).map(a=>(0,b.jsxs)("div",{className:"text-[10px] text-[var(--text-secondary)] truncate leading-relaxed",children:[(0,b.jsxs)("span",{className:"text-[var(--text-muted)] mr-1",children:["L",a.line]}),(0,b.jsx)(hp,{text:a.text,query:d})]},a.line))]},c.path))})]})}function hp({text:a,query:c}){if(!c.trim())return(0,b.jsx)(b.Fragment,{children:a});let d=a.toLowerCase().indexOf(c.toLowerCase());if(-1===d)return(0,b.jsx)(b.Fragment,{children:a});let e=a.slice(0,d),f=a.slice(d,d+c.length),g=a.slice(d+c.length);return(0,b.jsxs)(b.Fragment,{children:[e,(0,b.jsx)("span",{className:"bg-yellow-200 text-yellow-900 rounded px-0.5",children:f}),g]})}let hq=i("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]);function hr({onNavigate:a,onClose:d}){let[e,f]=(0,c.useState)([]),[g,h]=(0,c.useState)(!0),[i,l]=(0,c.useState)(null),[n,o]=(0,c.useState)(null);(0,c.useEffect)(()=>{h(!0),fetch("/api/timeline").then(a=>a.json()).then(a=>{f(a.entries??[]),h(!1)}).catch(()=>h(!1))},[]),(0,c.useEffect)(()=>{let a=a=>{"Escape"===a.key&&d()};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[d]);let p=new Map;for(let a of e){let b=new Date(a.date).toLocaleDateString("ja-JP",{year:"numeric",month:"2-digit",day:"2-digit"}),c=p.get(b)??[];c.push(a),p.set(b,c)}return(0,b.jsx)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/40 backdrop-blur-sm",onClick:d,children:(0,b.jsxs)("div",{className:"bg-[var(--bg-surface)] rounded-lg shadow-2xl w-[90vw] max-w-4xl h-[85vh] flex flex-col overflow-hidden border border-[var(--border-default)]",onClick:a=>a.stopPropagation(),children:[(0,b.jsxs)("div",{className:"flex items-center gap-2 px-5 py-3 border-b border-[var(--border-default)] shrink-0",children:[(0,b.jsx)(hq,{size:14,className:"text-[var(--brand-primary)]"}),(0,b.jsx)("h2",{className:"font-semibold text-[14px] text-[var(--text-primary)]",children:"変更タイムライン"}),(0,b.jsx)("span",{className:"text-[11px] text-[var(--text-muted)]",children:"リポジトリ全体の変更履歴"}),(0,b.jsx)("button",{onClick:d,className:"ml-auto p-1 rounded hover:bg-[var(--bg-muted)] text-[var(--text-muted)] hover:text-[var(--text-secondary)] transition-colors",title:"閉じる (Esc)",children:(0,b.jsx)(hn,{size:16})})]}),(0,b.jsx)("div",{className:"flex-1 overflow-y-auto",children:g?(0,b.jsx)("div",{className:"h-full flex items-center justify-center text-[13px] text-[var(--text-muted)]",children:"タイムラインを読み込み中..."}):0===e.length?(0,b.jsx)("div",{className:"h-full flex items-center justify-center text-[13px] text-[var(--text-muted)]",children:"変更履歴がありません"}):Array.from(p.entries()).map(([c,d])=>(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:"sticky top-0 z-10 bg-[var(--bg-base)] border-b border-[var(--border-default)] px-4 py-1.5",children:(0,b.jsx)("span",{className:"text-[11px] font-medium text-[var(--text-muted)] tracking-wide",children:c})}),d.map(c=>{let d=i===c.hash;return(0,b.jsxs)("div",{className:"border-b border-[var(--border-default)]",children:[(0,b.jsx)("button",{onClick:()=>l(d?null:c.hash),className:"w-full text-left px-4 py-2.5 hover:bg-[var(--bg-hover)] transition-colors",children:(0,b.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,b.jsx)(g8,{size:13,className:"text-[var(--text-muted)] mt-0.5 shrink-0"}),(0,b.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)("span",{className:"text-[11px] font-[var(--font-mono)] text-[var(--brand-primary)] leading-none",children:c.hashShort}),(0,b.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:new Date(c.date).toLocaleTimeString("ja-JP",{hour:"2-digit",minute:"2-digit"})}),c.author&&(0,b.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] leading-none",children:c.author})]}),(0,b.jsx)("p",{className:"text-[12px] text-[var(--text-secondary)] mt-1 leading-snug line-clamp-2",children:c.message}),(0,b.jsx)("div",{className:"flex items-center gap-1 mt-1.5",children:(0,b.jsxs)("span",{className:"text-[10px] text-[var(--text-muted)]",children:[c.files.length,"件のドキュメント変更"]})})]}),(0,b.jsx)("span",{className:"text-[var(--text-muted)] shrink-0 mt-0.5",children:d?(0,b.jsx)(j,{size:13}):(0,b.jsx)(k,{size:13})})]})}),d&&(0,b.jsx)("div",{className:"px-4 pb-3",children:(0,b.jsx)("div",{className:"space-y-1",children:c.files.map(d=>{let e=(d.split("/").pop()||d).replace(/^\d+[_\-.\s]/,"").replace(/\.md$/i,""),f=n?.hash===c.hash&&n?.file===d;return(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"flex items-center gap-1.5 py-1 px-2 rounded hover:bg-[var(--bg-muted)] group",children:[(0,b.jsx)("button",{onClick:()=>o(f?null:{hash:c.hash,file:d}),className:"shrink-0 text-[var(--text-muted)] hover:text-[var(--text-primary)]",children:f?(0,b.jsx)(j,{size:12}):(0,b.jsx)(k,{size:12})}),(0,b.jsx)(m,{size:12,className:"shrink-0",style:{color:"var(--file-border)"}}),(0,b.jsx)("button",{onClick:()=>a(d),className:"text-[11px] text-[var(--text-secondary)] hover:text-[var(--brand-primary)] truncate text-left",title:d,children:e}),(0,b.jsx)("span",{className:"text-[10px] text-[var(--text-muted)] truncate ml-auto opacity-0 group-hover:opacity-100 transition-opacity",children:d})]}),f&&(0,b.jsx)("div",{className:"ml-6 mt-1 mb-2",children:(0,b.jsx)(g9,{filePath:d,hash:c.hash})})]},d)})})})]},c.hash)})]},c))})]})})}a.s(["default",0,function(){let[a,d]=(0,c.useState)([]),[e,f]=(0,c.useState)(""),[g,h]=(0,c.useState)(null),[i,j]=(0,c.useState)(260),[k,l]=(0,c.useState)(!1),m=(0,c.useRef)([]),o=(0,c.useCallback)(a=>{g&&a!==g&&m.current.push(g),h(a)},[g]),p=(0,c.useCallback)(()=>{let a=m.current.pop();a&&h(a)},[]),q=m.current.length>0;(0,c.useEffect)(()=>{fetch("/api/tree").then(a=>a.json()).then(a=>{d(a.tree??[]),f(a.root??"")})},[]),(0,c.useEffect)(()=>{let a=localStorage.getItem("markshelf:treeWidth");a&&j(Number(a)||260)},[]);let r=(0,c.useMemo)(()=>(function a(b){let c=[];for(let d of b)"file"===d.type&&c.push({path:d.path,displayName:d.displayName}),"folder"===d.type&&(d.hasReadme&&c.push({path:d.path+"/README.md",displayName:d.displayName}),d.children&&c.push(...a(d.children)));return c})(a),[a]),s=(0,c.useCallback)(a=>{a.preventDefault(),document.body.style.userSelect="none",document.body.style.cursor="col-resize";let b=a=>{let b=Math.max(180,Math.min(.4*window.innerWidth,a.clientX));j(b),localStorage.setItem("markshelf:treeWidth",String(b))},c=()=>{document.body.style.userSelect="",document.body.style.cursor="",document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",c)};document.addEventListener("mousemove",b),document.addEventListener("mouseup",c)},[]);return(0,b.jsxs)("div",{className:"h-screen flex flex-col",children:[(0,b.jsxs)("header",{className:"h-11 border-b border-[var(--border-default)] bg-[var(--bg-surface)] flex items-center px-5 shrink-0 gap-3",children:[(0,b.jsxs)("span",{className:"font-semibold text-[15px] tracking-tight leading-none",children:["Mark",(0,b.jsx)("span",{className:"text-[var(--brand-primary)]",children:"Shelf"})]}),e&&(0,b.jsx)("span",{className:"text-[11px] text-[var(--text-muted)] font-[var(--font-mono)] truncate leading-none",children:e}),(0,b.jsx)("div",{className:"ml-auto",children:(0,b.jsxs)("button",{onClick:()=>l(!k),className:`flex items-center gap-1.5 px-2.5 py-1 rounded-md text-[12px] font-medium transition-colors ${k?"bg-[var(--brand-primary)] text-white":"text-[var(--text-muted)] hover:bg-[var(--bg-muted)] hover:text-[var(--text-secondary)]"}`,children:[(0,b.jsx)(hq,{size:12}),"タイムライン"]})})]}),(0,b.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[(0,b.jsxs)("div",{className:"overflow-hidden flex flex-col shrink-0",style:{width:i},children:[(0,b.jsx)(ho,{onSelect:o}),(0,b.jsx)("div",{className:"flex-1 overflow-hidden",children:(0,b.jsx)(n,{entries:a,selectedPath:g,onSelect:o})})]}),(0,b.jsx)("div",{className:"w-1.5 hover:bg-[var(--brand-primary)] bg-[var(--border-default)] cursor-col-resize shrink-0 transition-colors duration-150",onMouseDown:s}),(0,b.jsx)("div",{className:"flex-1 border-l border-[var(--border-default)] bg-[var(--bg-surface)] overflow-hidden flex flex-col",children:g?(0,b.jsx)(hl,{filePath:g,fileRefs:r,onNavigate:o,onGoBack:p,canGoBack:q}):(0,b.jsx)("div",{className:"p-6 text-[var(--text-muted)] text-sm flex items-center justify-center h-full",children:"ファイルをクリックして内容を表示"})})]}),k&&(0,b.jsx)(hr,{onNavigate:a=>{o(a),l(!1)},onClose:()=>l(!1)})]})}],40777)}];
|
|
12
12
|
|
|
13
13
|
//# sourceMappingURL=%5Broot-of-the-server%5D__09qrkq5._.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/JkyieJgBB2eU8MtnlBGvG/_buildManifest.js",
|
|
11
|
+
"static/JkyieJgBB2eU8MtnlBGvG/_ssgManifest.js",
|
|
12
|
+
"static/JkyieJgBB2eU8MtnlBGvG/_clientMiddlewareManifest.js"
|
|
13
13
|
],
|
|
14
14
|
"rootMainFiles": [
|
|
15
15
|
"static/chunks/0j-yjan8jn-8-.js",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html lang="ja" class="h-full antialiased"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/
|
|
1
|
+
<!DOCTYPE html><html lang="ja" class="h-full antialiased"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/04x.fjh8sw0s1.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/0j-yjan8jn-8-.js"/><script src="/_next/static/chunks/15s~ckf06mjoj.js" async=""></script><script src="/_next/static/chunks/0-mgdjw03nw5i.js" async=""></script><script src="/_next/static/chunks/turbopack-0uufb5vlljeny.js" async=""></script><script src="/_next/static/chunks/08zok6.5_1m~9.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><title>MarkShelf</title><meta name="description" content="Structured markdown viewer for git repositories"/><link rel="icon" href="/favicon.ico?favicon.0x3dzn~oxb6tn.ico" sizes="256x256" type="image/x-icon"/><script src="/_next/static/chunks/03~yq9q893hmn.js" noModule=""></script></head><body class="min-h-full flex flex-col"><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><script src="/_next/static/chunks/0j-yjan8jn-8-.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[39756,[\"/_next/static/chunks/08zok6.5_1m~9.js\"],\"default\"]\n3:I[37457,[\"/_next/static/chunks/08zok6.5_1m~9.js\"],\"default\"]\n4:I[97367,[\"/_next/static/chunks/08zok6.5_1m~9.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[97367,[\"/_next/static/chunks/08zok6.5_1m~9.js\"],\"ViewportBoundary\"]\na:I[97367,[\"/_next/static/chunks/08zok6.5_1m~9.js\"],\"MetadataBoundary\"]\nc:I[68027,[\"/_next/static/chunks/08zok6.5_1m~9.js\"],\"default\",1]\n:HL[\"/_next/static/chunks/04x.fjh8sw0s1.css\",\"style\"]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",16],[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/04x.fjh8sw0s1.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/08zok6.5_1m~9.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"ja\",\"className\":\"h-full antialiased\",\"children\":[\"$\",\"body\",null,{\"className\":\"min-h-full flex flex-col\",\"children\":[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:f:0:1:0:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"]},null,false,null],[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],null]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/04x.fjh8sw0s1.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"JkyieJgBB2eU8MtnlBGvG\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"e:I[27201,[\"/_next/static/chunks/08zok6.5_1m~9.js\"],\"IconMark\"]\n6:null\nb:[[\"$\",\"title\",\"0\",{\"children\":\"MarkShelf\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"Structured markdown viewer for git repositories\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.0x3dzn~oxb6tn.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$Le\",\"3\",{}]]\n"])</script></body></html>
|